Commit graph

550 commits

Author SHA1 Message Date
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
251fe37c1e
Add support for programatically setting table cell color (#3458) 2022-07-02 15:49:47 +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
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
Manish Kushare
6b6cb5fc32
[Improvement] : Filepicker widget (#3021)
* solve the bug- now only 1 message is shown for exceeding max file count

* added edge case to only show unique error message

* persisting previous accepted files upon rejecting a file

* fixes: retain existing selected files on rejection

* cleanup

* fixes: dropzone active even with listed selected files

* handles rejected files sizes for error msgs

* on dialogue box closed, should list files if exits

* fixes: show list of files if exits when files are rejected

* fixes: show list of files if exits when files are rejected

* fixes reject message for file sizes

* clean up

Co-authored-by: arpitnath <arpitnath42@gmail.com>
2022-05-24 15:49:33 +05:30
Manish Kushare
57da2b640c
added default value in the toggle widget (#3059)
* added default value in the toggle widget

* make sure existing apps do not get crashed if they don't have default value prop

* removed unwanted code

* changing defaultValue prop display name to Default Status

* added value key in exposedVariables prop
2022-05-24 03:45:03 +05:30
Kavin Venkatachalam
d6b941227e
Updated cursor on hovering image widget (#3080) 2022-05-24 03:37:51 +05:30
Ajith KV
2db14dd9f5
Cypress test for button widget (#2989)
* Added cypress test for button widget

* Added custom commands

* Updated common selectors

* data-cy attributes for the elements

* Updated the login end point

* Updated new login end point

* Added data-cy attribute for autosave indicator

* Updated login end point

* Updated test for auto save indicator

* Updated custom commands for skipping instruction modal
2022-05-16 15:39:10 +05:30
Kiran Ashok
e0e8b6f50b
Feature :: Image widget enhancements (#3007)
* adding loadingstate and object fit style

* adding zoom functionality

* pan image function

* fixing pan for image

* pan and drag fix image

* library install

* pr changes:: hover button , object fit made dropdown

* fix for old apps

* updated docs
2022-05-16 14:40:44 +05:30
Manish Kushare
145f4d81db
solved border radius & alignment issue after selecting file (#3032) 2022-05-16 14:32:10 +05:30
lewisyng
dc16faa0b2
Fixes typo in file picker widget (#3048) 2022-05-12 06:52:26 +05:30
Kavin Venkatachalam
b16a74dcf1
[Feature]: PDF Widget (#3035)
* Created PDF Widget

* Added color to page number to support dark mode
2022-05-11 18:51:10 +05:30
Kavin Venkatachalam
7c30a830db
[Feature]: Custom Component Widget (#2960)
* Created custom component widget

* Updated the custom component key

* Added doc for custom component

* Update iframe.html

* Installed HTML parse in dependencies

* Updated script source

* Added scripts to CSP

* Added Skypack to CSP

* Fixed Run Query issue in Viewer
2022-05-10 15:09:09 +05:30
Manish Kushare
acd9ae26cf
Made timeline scrollable on shrinking the height or width (#3013) 2022-05-09 18:55:31 +05:30
Muhsin Shah C P
197f313f66
[Feature] Added textSize style to the text widget (#2948)
* Added textSize style to text widget

* Added new migration

* Edited the migration file
2022-05-09 13:35:02 +05:30
Manish Kushare
03f400bf52
Added loading state for statistics widget (#2882)
* added loading state in Statistics Widget

* removed unwanted uses of hooks and destructured loadingState from the properties
2022-05-08 05:10:51 +05:30
Kavin Venkatachalam
e32819e57b
Fixed default value issue in dropdown widget (#2988) 2022-05-06 18:11:26 +05:30
Manish Kushare
817e367fdd
New widget: vertical divider (#2971)
* created VerticalDivider widget

* updated widget icon

* changed the width of the widget container, placed the vertical separator at the center of the widget
2022-05-05 20:03:12 +05:30
Manish Kushare
c6aa14ce72
Exposed variable of timer is set to default value after reset (#2950) 2022-05-04 08:11:27 +05:30
Arpit
7126beb14a
[chore] fixes eslint warning and errors (#2917)
* chore: lint warning and error fixes

* reverts changes to daterangepicker.jsx
2022-04-28 15:03:05 +05:30
Manish Kushare
9eed9b1134
Fixes text widget not showing zero and false (#2877)
* fixed Text Widget not showing zero and false

* made the required changes
2022-04-26 19:34:39 +05:30
Muhsin Shah C P
efeef4d0db
Resolved tabs highlight color issue (#2900) 2022-04-26 19:30:36 +05:30
Olaleye Blessing
1ee27bb004
bugfix :: disable cursor when pagination icons are disabled (#2867) 2022-04-21 15:35:46 +05:30
Kiran Ashok
dae2cc3379
[ enhancement ] :: added on select event (#2707)
* added on select event

* docs updated
2022-04-21 15:31:57 +05:30
Kiran Ashok
772c3bd56a
Bugfix :: datepicker widget shows current date when default date is set as empty (#2875)
* fixing default date bug

* Set arbitrary default date for datepicker, and empty default exluded dates

* If set date is invalid, ensure exposed value is undefined on Datepicker

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-04-21 14:18:51 +05:30
Arpit
9b285dacf5
[Bugfix]: Allow firing onSearch event of Table widget irrespective of server-side search is set to true or false. (#2660)
* resolves onsearch event for cliendside search

* removes un-used props
2022-04-18 23:39:41 +05:30
Kiran Ashok
5c3d8ffa71
[ Feature ]:: Datepicker exlcudedates addition (#2751)
* adding excluded dates property

* updates :: writing date parse function

* update parser

* logic update

* logic updated

* reimplemented logic for excluded dates

* typos updated

* pr changes

* pr changes

* cleanup

* docs updated

* default value changed

* cleanup
2022-04-18 23:12:50 +05:30
Muhsin Shah C P
f98c087e99
[Bug-fix] Date picker dropdown breaks table row (#2803)
* Solved a style issue

* Solved the date picker issue

* Solved table date picker ui issue
2022-04-18 23:02:58 +05:30
Kiran Ashok
58893c5139
[ Feature ] :: svg widget (#2806)
* svg icon

* svg component

* cleanup

* name updated

* name updated

* fixing overflow issue

* dafault image
2022-04-18 19:08:50 +05:30
Sherfin Shamsudeen
18ee640496 Merge branch 'main' into develop 2022-04-15 19:09:06 +05:30
Kiran Ashok
ec0bd7d2f4
fix for button loading state bug (#2823) 2022-04-14 14:41:30 +05:30