Commit graph

577 commits

Author SHA1 Message Date
Kiran Ashok
24cda4d577
[ Feature ] :: component specific action :: multiselect widget (#3523)
* widget actions multiselect

* completed :: actions and fireevent

* removing logs

* CSA docs

* bugfix :: event fired 2 times

* clear action updated

* Use dependencies on selectOption action

* Use dependencies for deselectOption and clear

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-07-19 15:36:00 +05:30
Kiran Ashok
bc56e1db97
Component specific action for :: checkbox widget (#3505)
* checkbox component specific action for checkbox

* checkbox CSA updated

* exposing check value
2022-07-18 18:47:38 +05:30
Manish Kushare
40953cbfca
added component specific action to Dropdown Widget (#3496)
* added component specific action

* remove the type from params of the action object

* changed action and handle name

* fire event on select

* If the value is not a part of the set of available options, then the exposed value should be undefined

* fixed the logic to set exposed variable to undefined for invalid option

* removed console's

* expose and use updateRegisteredAction to update action whenever dependencies change

* Add support for dependencies in registerAction callback

If dependencies are provided, the registerAction callback will update
the action whenever the dependencies are updates. This is similar to
how useEffect works.

* Remove unnecesary code

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-07-18 17:51:21 +05:30
Manish Kushare
844ef5a81c
added component-specific action to set and clear value (#3487)
* added component-specific action to set and clear value

* updating exposed variable

* updated docs

* update the docs

* set exposed variable to empty string upon clear action using controlled components

* onChange event is fired for the actions
2022-07-15 15:53:35 +05:30
Manish Kushare
482ce5ab3c
Modal : added component specific actions (#3494)
* added component specific actions

* updated docs

* changed the action name from show to open
2022-07-14 18:26:53 +05:30
Muhsin Shah C P
d14b4a4d86
[Component specific action] Added setTab component action to Tabs widget (#3507)
* Added setTab component action to Tabs widget

* added the event

* resolved css syntax error
2022-07-14 17:18:12 +05:30
Sherfin Shamsudeen
c46e2f0c78 Merge branch 'main' into develop 2022-07-14 15:33:12 +05:30
Manish Kushare
8dc7711fa8
hotfix : Rename Button's setLabel action's name to setText (#3609) 2022-07-14 15:31:26 +05:30
Muhsin Shah C P
454e7b07b1
Added a component action for selecting an option from radio button widget (#3512) 2022-07-13 15:50:45 +05:30
Manish Kushare
706ae3fd82
added component specific action - setText and clear (#3489)
* added component specific action - setText and clear

* updated the docs
2022-07-13 15:42:19 +05:30
Manish Kushare
d19f4aab6a
Added component specific 'setColor' action to Color Picker (#3480)
* Added component specific action to Color Picker

* updated docs

* Remove unnecessary console.log

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-07-12 16:59:18 +05:30
Sherfin Shamsudeen
e3917a13f1 Merge branch 'main' into develop 2022-07-12 16:11:37 +05:30
Arpit
c8b6b2843c
fixes Number widget: min and max value updates inside listview (#3571) 2022-07-12 15:56:03 +05:30
Muhsin Shah C P
0722f5d67c
Added setLocation component action to map widget (#3503) 2022-07-11 16:47:31 +05:30
Muhsin Shah C P
2549bc0d7d
Added clearFiles action (#3491) 2022-07-11 16:34:02 +05:30
Eyuel Berga Woldemichael
a321ac9ee5
Fix "Invalid date" on empty values in table date-picker column (#3450) 2022-07-08 19:36:30 +05:30
Kiran Ashok
6880d99d75
Feature :: Tabs widget enhancement (#3390)
* tabs widget :: included tab width and disable property

* tabs docs updated

* migration

* migration script added
2022-07-08 17:42:34 +05:30
Sherfin Shamsudeen
0bc3a02bde
Expose dropdown value as undefined if it is not present in options (#3501) 2022-07-07 18:26:05 +05:30
Sherfin Shamsudeen
8b966711e1
Expose actions of list view children only once (#3518) 2022-07-07 18:25:22 +05:30
Akshay Sasidharan
cee03a1394 Merge branch 'main' into develop 2022-07-05 15:11:33 +05:30
Sherfin Shamsudeen
87f71624f1
Feature/modal updates rebased to main (#3465)
* modal docs

* modal enhancement , added more properties

* widget properties updates

* revert unwanted change

* bugfix close

* renaming as "hideTitleBar"

* migration

* revert unwanted code

* temp stash

* updates

* migration tested

Co-authored-by: stepinfwd <stepinfwd@gmail.com>
2022-07-04 14:43:36 +05:30
Sherfin Shamsudeen
ff0397f1ef Merge branch 'main' into develop 2022-07-03 16:22:33 +05:30
Sherfin Shamsudeen
4bd2fd74d0
Add support for ListView inside ListView (#3454)
* Add support for ListView inside ListView

* Remove unnecessary triggering mechanism for useEffect in ListView

* Remove unnecessary extraProps param
2022-07-02 18:00:30 +05:30
Sherfin Shamsudeen
79b10679d7 Merge branch 'main' into develop 2022-07-02 15:53:17 +05:30
Sherfin Shamsudeen
251fe37c1e
Add support for programatically setting table cell color (#3458) 2022-07-02 15:49:47 +05:30
Kavin Venkatachalam
126bdcd7af
[Feature]: Component Specific Actions (#3448)
* Build architecture for component specific actions

* Resolve references component action variables

* Add architecture to read component action params from widgetConfig.js

* Add Set table page to component specific actions

* List only components with actions for control component action

* Make component specific actions async

* fx button styles

* fx in action types

* Improve zIndex for component action param select

* fix for select component width

* adding margin to remove height toggle during fx

* Updated SelectSearch with Select

* Added component specific action to Text widget

* Fixed bug on showing the component with actions

* fix :: fx should align neatly inside the empty space designated for it,If type is not specified, codehinter full width

* removing bug :: popover closes on select

* height toggle bug

* Ensure that action is cleared when a different component is selected

* bugfix :: select width issue

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
Co-authored-by: stepinfwd <stepinfwd@gmail.com>
2022-07-01 16:54:34 +05:30
Manish Kushare
a224187f5d
Feature : Color Picker Widget (#3274)
* Feature : Color picker

* added border to the widget,handled theme changes, positioned color picker

* updated widget icon

* Bug fixed : color picker pop-up vanishes, if we don't manoeuvre the cursor surgically.

* changed default color type to color

* fixed bug: app getting crashed for undefined default value, if default value is not valid hex color code, widget will show invalid color instead of crashing

* removed highlighting invalid color with redcolor, for invalid color set exposed values to undefined
2022-06-28 15:43:27 +05:30
Sherfin Shamsudeen
97b45c9e97 Merge branch 'main' into develop 2022-06-23 15:14:07 +05:30
Sherfin Shamsudeen
65db1f4d5b
Compute visibility of children of inner tabs in nested tabs scenario (#3349) 2022-06-23 15:12:42 +05:30
Manish Kushare
4a78949aa4
Enhancement : added border radius property in the styles property of the List View Widget (#3287)
* added border radius property in the styles prop

* added migration file to add border-radius as 0 in the existing applications
2022-06-21 02:34:42 +05:30
Manish Kushare
22f9e1f97c
added HTML-CSS widget (#2938)
* added HTML widget

* removed console

* removed injecting css to the html page

* Shorten the div of default code for HTML widget

* Updated widget icon from tabler icons

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-06-16 17:58:11 +05:30
Sherfin Shamsudeen
1e9c22dcd5 Merge branch 'main' into develop 2022-06-16 17:55:37 +05:30
Manish Kushare
29db040eea
added instruction text property in file picker widget to add custom instructions (#2731)
* added instruction text property  in file pciker to make user unable to provide custom instructions

* Added default instruction text

* made the changes to make sure existing app do not crashes because of instructionText prop

* Solve issue -  existing file pickers wont display anything if we don't default to the default instruction text

* changes in operation.json file

* migration script for adding instructionText prop

* removed unwanted operations.json file

Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>
2022-06-16 17:53:31 +05:30
Muhsin Shah C P
48a3f701aa
[hotfix] Date range picker is showing error inside the modal (#3289)
* Fixed issue

* Expose range picker dates on load and on default dates change

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-06-16 16:33:44 +05:30
Muhsin Shah C P
bcd62d874e
Fixed textColor issue (#3298) 2022-06-16 15:29:03 +05:30
Sherfin Shamsudeen
b705157f46
Do not fire event when step is programatically changed in step widget (#3280) 2022-06-14 14:01:24 +05:30
Arpit
b48fd53ec2
[Feature] Kanban board widget (#3049)
* init kanban board widget

* kanban board

* reverts to beautifully

* kanban UI updates and dnd fixes

* bugfix: when dropped outside the col, should return back to it inital position

* updates min-width of the column

* container and widget styles

* style fixes: column container onDrag

* adds button for new group

* fixes new card overflow

* add btn for adding cards

* groups and cards updated

* add property definition

* improves draggable card position while drag is active

* handle delete group/col

* handle col/group title updates

* handles editing card title

* style fixes for input cursor

* cleanup

* card popover with codehinter fields

* minor card fixes

* updates exposed variable

* simplify boardData into cols and cards

* adds width and min-width style definations

* build board from queries

* handle draggable rbd-id

* removes add group card and delete group option

* fixes typos

* show empty state message

* fixes typos

* removes card extra border color

* fixes column typi and cards updates issue

* adds enableAddCard property defination

* adds accent color options

* default style accent color

* accent color fix

* revets popover with hinter

* fixes card drag and drop

* removes hook

* fixes: state synced with property defination updates(col and cards data)

* fixes: on re-arranging the card via dnd, update the card content

* handles if card columnId is updated

* adds card container layer

* clean up

* dark theme

* fixes card onDrop issue

* renamed the exposed variable data --> lists

* adds custom resolvers to the popover

* handle widget crash when non iterables are passed

* updates default card and col value

* fixes dnd issues for dynamic card values

* refactor: cleanup

* handles empty and undefined cardData

* fixes Height of widget is changing when popover thing is displayed.

* fixes: updating card data in widget inspector

* fixes: updating column data in widget inspector

* fixes adding cards for newly created groups/columns

* clean up

* Add kanban event onCardAdded and expose lastAddedCard

* Add onCardRemoved action and expsed lastRemovedCard variable

* Add events and variables for card movement and selection

* Add card edit feature for kanban widget

* Rename lastAddedRemoved to lastRemovedCard in kanban

* Rename lists to columns on kanban board

* Set max height of kanban column to respond to widget height

* Have "Add description" link if there is no description for Kanban cards

* kanban docs

* Change text from "add +" to "Add card" on kanban

* Validate card data before update

* Add tip about card id type on kanban documentation

* Add default min width and width for kanban

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
Co-authored-by: Shubhendra <withshubh@gmail.com>
2022-06-14 11:06:36 +05:30
Kiran Ashok
bb6fc26f7e
[ Feature ]:: steps widget (#3200)
* tabs event

* completed event firing on selection tab

* steps widget basic structure & code

* active item logic

* logic for currentstep

* logic for steps theme

* event onSelect handled and exposed currentStepId

* fixing tooltip

* logic for colour updated

* updates

* bugfixes and color theme fix

* darkmode fixes

* some bugfixes

* cleanup

* reverting

* reverting unwanted change

* updating green theme

* pr changes : style changes

* pr change :: color style made dynamic :rocket

* style fix 🚀

* docs updated

* bugfix
2022-06-13 17:44:03 +05:30
Sherfin Shamsudeen
ad3a9ddec7
Do not zoom image on scroll if zoom buttons are not turned on (#3266) 2022-06-13 14:11:35 +05:30
Kiran Ashok
002ae8cea6
Support for background colour for tabs widget (#3254)
* style fix :: added bg colour option

* bg colour for content

* colour fix

* realtime fix
2022-06-13 14:11:09 +05:30
Sherfin Shamsudeen
037bdb5ed8
Substract 4 from canvas container widget of tabs subcontainer (#3264) 2022-06-13 12:26:43 +05:30
Sherfin Shamsudeen
0d4d8f4448
Use visibility instead of opacity to hide non-active tabs (#3243) 2022-06-09 16:37:15 +05:30
Sherfin Shamsudeen
65cc6b562e
Feature/tabs tabs (#3235)
* Fix

* Fix

* Fix

* Fix

Co-authored-by: Navaneeth Pk <navaneeth@tooljet.io>
2022-06-09 11:45:48 +05:30
Kiran Ashok
5664803194
Feature :: event firing on tab selection in Tabs widget (#3193)
* tabs event

* completed event firing on selection tab

* pr changes :: renaming event

* updated event
2022-06-08 12:20:51 +05:30
Manish Kushare
675e87157b
added default prop in checkbox widget (#3063)
* added default prop in checkbox widget

* removed unwanted code

* changing defaultValue prop display name to Default Status

* added value key in exposedVariables prop

* Fixed :  the issue where checkbox is getting filled instead of checked

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-06-02 13:08:47 +05:30
Kavin Venkatachalam
ed43ca844a
[Feature]: Added universal props for widgets with Tooltip (#3096)
* Added universal props for widget

* Fixed lint issues

* Updated export name

* Fixed lint errors

* Updated genral variable name

* Updated file name in doc
2022-06-02 11:51:52 +05:30
Kiran Ashok
9b557d11b9
Feature :: Button group widget (#2977)
* button group initial

* updates

* updating value logic

* updating all selection and normal styles

* bugfixes and icon change

* cleanup

* fixing button width

* changing non dynamic styles to theme

* updating padding

* PR changes :: updating with same margin for label

* pr changes :: updating default bg colour for selected

* exposing selected items

* fixing alignment to column

* fixing issue with default active

* updating transition

* initial selected element

* initial selection

* updating with documentation

* intermediate update fixing labels

* fixing multiple edge cases

* cleanup

* updating label

* fixing pending pr issues :: changing default selected as array

* multislection toggle fix

* fixing label padding
2022-06-01 13:50:02 +05:30
Manish Kushare
cacce68713
Added default table type prop to table-bordererd in component.js (#3161)
* added default table type prop to table-bordererd in component.js

* shifted back  to previous logic
2022-06-01 06:36:34 +05:30
Kavin Venkatachalam
7a419796e3
PDF url null check added (#3142) 2022-05-30 14:06:10 +05:30
Arpit
9da311c68f
[Improvement] Filepicker widget : The file picker should reject files with existing file names. (#3046)
* fixes: multiple files with same file name can be uploaded

* removes unwanted logs

* compare file paths for validating existing selected files

* disable picker if max count is reched

* fixes loading spinner postions

* max file count for single selection

* disables the dropzone on max count only when multiple is true

* show max count msg for dnd file to the dropzone

* clean up

* check already selectedFile count with max file count on adding new files

* reverts accepted file data for singly selected files

* Remove validation for existing files on filepicker

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-05-25 17:05:32 +05:30