Commit graph

91 commits

Author SHA1 Message Date
Srisuma Atluri
8824c00896
Enhancement : [RangeSlider widget] Bind onChange event (#4192)
* add onChange event and its handler

* add handler for slider change as well

* fix lint

* added onChange fire event when slider value is changed

Co-authored-by: manishkushare <[email protected]>
2022-11-17 18:18:44 +05:30
Rahul Sunil
14e4593578
Added Background Color to Text Input (#4194)
* Added Background Color to Text Input

* Added Default Value for Background Color

* added default value and make background of text input consistent with the dark theme

Co-authored-by: manishkushare <[email protected]>
Co-authored-by: Kavin Venkatachalam <[email protected]>
2022-11-17 15:08:36 +05:30
Abhushan Gautam
e1ef96ce7a
Added default value for backgroundColor In NumberInput (#4378)
* fix: added background styles for number input

* fix: removed additional f from the background color property

* fix: added backgroundColor property from styles

* fixes: default bg color for dark mode

Co-authored-by: arpitnath <[email protected]>
Co-authored-by: Kavin Venkatachalam <[email protected]>
2022-11-17 14:42:02 +05:30
Manthan Kuber
0aeab09c2a
[Feature] :: Option to customise the error message styles for validations :: [Text input widget] (#4616)
* feat: add error text color property in styles

* feat: add default value to error text color

* fix: lint errors

* Update TextInput.jsx

* Remove errTextColor

Co-authored-by: Kavin Venkatachalam <[email protected]>

* add style prop from computed styles

Co-authored-by: Kavin Venkatachalam <[email protected]>

* Revert Package Lock changes

* Fixed bug on showing error message

Co-authored-by: Kavin Venkatachalam <[email protected]>
Co-authored-by: Kavin Venkatachalam <[email protected]>
2022-11-17 11:52:09 +05:30
Appledora
dd7b743143
adds On change event in color picker component (#4203)
* #issue4174

* #issue-4174

* #issue-4174

* bug fixed : event is getting fired on reloading the component

* bug fixed : event getting fired on changing default value of the color picker from the inspector widget

Co-authored-by: manishkushare <[email protected]>
2022-11-15 14:11:29 +05:30
Dmitriy Danilov
e848316137
Small fixes for Server-side filter button (#4571) (#4580)
* Small fixes for Server-side filter button (#4571)

* fixes: show/hide server side filter toggle button when with resp to show filter button toggle

Co-authored-by: arpitnath <[email protected]>
Co-authored-by: Sherfin Shamsudeen <[email protected]>
2022-11-03 17:38:21 +05:30
Mohammed Bajuaifer
daeada1b00
Add onChange event to passwordInput (#4218)
* closes #4173

* fix lint errors

* fix lint

* Update frontend/src/Editor/Components/PasswordInput.jsx

Co-authored-by: Kavin Venkatachalam <[email protected]>

* Update PasswordInput.jsx

Co-authored-by: Kavin Venkatachalam <[email protected]>
Co-authored-by: Arpit <[email protected]>
2022-11-03 17:02:38 +05:30
Kiran Ashok
361f3c164b
feat :: changed naming from disable -> enabledSort , serverside sort only active when sort enabled (#4477) 2022-11-03 16:53:09 +05:30
Srisuma Atluri
4c4749af0a
Add border color property to number input widget (#4175)
* add border color property to number input widget

* fix lint

* adds default value

* fixes

* fix lint
2022-11-03 11:02:00 +05:30
Daniele Vilela
a920811cb4
Feature: Number input text color (#4193)
* Number input text color

* Default value and missing commit

* Update widgetConfig.js

* Update NumberInput.jsx

* Update NumberInput.jsx

* Update NumberInput.jsx

Co-authored-by: Midhun G S <[email protected]>
2022-11-03 07:45:54 +05:30
Santosh Bhandari
0c895e2e4e
feat: Add customizable border color for text input component (#4191)
* feat: Add customizable border color for text input component

* Update widgetConfig.js

* chore: Fix linter issues
2022-10-26 10:45:43 +05:30
Kumar Aggarrwal
0853685c24
toggle button added for time selection and date selection in date picker widget, related to #3576 (#4255)
* toggle button added for time selection and date selection in date picker widget, related to #3576

* Added validation for toggle values

Added validation for toggle values for enableTime and enableDate
2022-10-26 10:21:53 +05:30
Srisuma Atluri
ff00f744ba
Adds background color property to password input editor (#4190)
* adds background color to password input editor

* fix lint and add default

* add ,

* adds default color #fff

* add default value for background color in config

* delete space

* adds default in definitions obj

* fix lint
2022-10-26 10:05:23 +05:30
Henrique Gouvêa Bonfim
7c5ff0f7fa
Renamed "Bulk Update" event to "Save changes" in table (#4516) 2022-10-19 14:35:59 +05:30
Mike
89f56410bd
On Change added to NumberInput (#4198)
* On Change added to NumberInput

* fixes lint errors

Co-authored-by: arpitnath <[email protected]>
2022-10-18 12:58:30 +05:30
3t8
2c856aae8d
Changed "on sorting columns" label in table (#4500) 2022-10-18 09:40:57 +05:30
Arpit
fe0858fa49
[Chore] widget fixes (#4411)
* fixes: button bg color

* fixes: loader color

* container default bg color

* listview bg color

* fixes darkmode fro text widget

* default color for star rating
2022-10-14 13:31:22 +05:30
abhishekpatil4
0826c32302
Fixed the buttons default text color to #000 (#4361)
* fixed the buttons default text color

* fix

Co-authored-by: arpitnath <[email protected]>
2022-10-13 20:51:30 +05:30
Kiran Ashok
544f6c403f
[ Improvement ] :: Table widget (#4092)
* fix :: resizing columns lead to sorting bugfix

* table width set to 100% always

* fix :: if filter is applied- download filtered data only

* add option to change number of results per page - client side pagination

* style fix

* removing space

* added option to show total records in serverside pagination , disableing navigation buttons

* number type

* name update

* updating position and conditional  adding of new properties

* fix :: name change , only visible on clientside pagination

* fix :: removing scrollbar table

* updated with for borderless table

* fix :: removing scrollbar on 100 % width

* fix :: sort bug

* remove rowsper page on server side pagination

* update fix:: enable next and prev buttons - pagination

* fix :: name change , default set to true for server side pagination buttons

* Have enablePrevButton and enableNextButton fallback to true

Co-authored-by: Sherfin Shamsudeen <[email protected]>
2022-10-13 17:21:14 +05:30
Kiran Ashok
e99fff4508
Enhancements :: Table bugfixes and option for pagination number added (#4083)
* fix :: resizing columns lead to sorting bugfix

* table width set to 100% always

* fix :: if filter is applied- download filtered data only

* add option to change number of results per page - client side pagination

* style fix

* removing space

* number type

* fix :: name change , only visible on clientside pagination

* fix :: removing scrollbar table

* updated with for borderless table

* fix :: removing scrollbar on 100 % width

* fix :: sort bug

* remove rowsper page on server side pagination

* Enhancement :: table events :: onHover (#4104)

* adding over event

* added event to utils

* changed to mouseover

* fix :: limiting multiple hover triggers

* fix case :: when row is hovered and cursor moved out and in to same row , trigger event

* attaching ref to mouseover event

* restricting hover only if hover event is added

* using check for events

* code bugfix

* optimize

* fix :: filter download

* revert :: lock files frontend
2022-10-13 15:16:37 +05:30
Kiran Ashok
5a88464600
Feature :: Table sort disable/enable (#4142)
* feat :: disable sorting

* disable action buttons

* cleanup

* cleanup

* revert :: unwanted changes
2022-10-13 14:32:44 +05:30
Kiran Ashok
f734ba0d3a
[ Feature ] :: Table :: event on discard changes :: (#4158)
* discard changes :: event added

* develop merge
2022-10-13 14:25:47 +05:30
Sherfin Shamsudeen
c1adcc9e2c
Feature/automatic columns generation (Task ID: CU-2vjwn7r) (#4149)
* Remove unnecessary setting of columnSizes in table inpector

* Rough implementation of autogeneration of table columns

* Use custom mapping for autogeneration of table columns

* Use setTimeout to prevent race conditions while storing autogenerated columns

* Autogenerate columns only on new tables

* Do not generate columns that were deleted previously

* Autogenerate columns only in edit mode

* Re-render Inspector whenever app definition is updated

* Refactor table column auto-generation

* Remove unnecessary console.log

* Add Number data type support for table column auto-generation

* Remove unnecessary console.log

* Ensure that column key is stored in deletion history if it is available
2022-10-12 22:26:10 +05:30
prateek565
70a90b2443
Added Border color style property to Container widgets (#4202)
* Update Container.jsx

* Update widgetConfig.js

* Update frontend/src/Editor/Components/Container.jsx

small edit

Co-authored-by: Arpit <[email protected]>

* Update frontend/src/Editor/WidgetManager/widgetConfig.js

small edit

Co-authored-by: Arpit <[email protected]>

* Update widgetConfig.js

shifted border color next to border sradius

* Update Container.jsx

small changes

* Update widgetConfig.js

Co-authored-by: Arpit <[email protected]>
2022-10-11 13:47:15 +05:30
John Bampton
ca5fe39751
all: fix spelling (#4326)
Fixes typos, fixes a file name.

Minor whitespace removal from link
2022-10-11 13:46:40 +05:30
Froosty
082be1b63d
Feature/list view border color (#4300)
* Update widgetConfig.js

* Update Listview.jsx

* Update widgetConfig.js

* Update Listview.jsx

* Update frontend/src/Editor/Components/Listview.jsx

Co-authored-by: Kavin Venkatachalam <[email protected]>

Co-authored-by: Kavin Venkatachalam <[email protected]>
2022-10-11 09:10:30 +05:30
Vedant Borkar
e647ae3acb
Added border color property to button styles (#4356)
* Update Button.jsx

* Update widgetConfig.js

* Update widgetConfig.js
2022-10-11 09:08:34 +05:30
Arpit
8c4c7249a8
[Improvements] Table: Adds Support for Server side filtering (#4349)
* init

* adds server side filtering ability

* clean up

* fixes: on clearing filters, the event should triggered with latest update

* fixes: handle multi-filters

* debounce the fireEvent
2022-10-11 09:05:40 +05:30
Paarth Agarwal
04cc884bbc
Updated default text color for table widget (#4247) 2022-10-10 08:14:52 +05:30
kushal-gopal
be77b6f35c
Fixed bug - default marker color value for the chart widget is added (#4306) 2022-10-10 08:09:40 +05:30
Arpit
e441db9665
adds option for server sort (#4337) 2022-10-07 12:45:51 +05:30
Arpit
3af3835e7d
[improvements] Table - exposed active sort options and add an event (#4151)
* exposed sorted options

* adds onSort event

* clean up
2022-10-06 11:50:53 +05:30
Arpit
22c87762e4
adds new event cell value changed (#4155) 2022-10-06 11:47:33 +05:30
Arpit
0274398d2b
[improvements] Table - exposed active filters and add an event (#4138)
* exposed active filters

* adds onFilterChanged event

* default value for filters should be an empty array

* remove column id from exposed filter variables
2022-10-06 11:42:18 +05:30
Prabesh Bista
de576fd858
Added text widget default color (#4228) 2022-10-02 21:08:58 +05:30
Alvaro Cabrera Durán
c824eb362b
chore: apply primary-color in more places (#4025)
* chore: apply primary-color in more places, ensure svg use currentColor too

* fix: remove hard-coded colors to use defaults

* fix: those images were intruducing noise when switch to dark-mode

* fix: setup colors for rc-slider

* fix: empty all predefined-colors to use defaults

* Use primary-rgb-darker
2022-09-29 13:33:01 +05:30
Manish Kushare
f4f29172f3
Enhancement : [ text input widget ] refactor (#4036)
* added loading, disable, hidden states in the properties

* added onfocus and unfocus events

* added new csa

* added text color prop

* changed placeholder text

* bug fixed

* changed the type of action for visibility,loading and disable  to toggle

* changed the default text color to black

* cleanup code

* reverting change - moving register action back to it's original space, out of useeffect

* removed unwanted loading action

* bug fix: app was crashing due to added array dependencies for blur and focus actions
2022-09-28 17:51:09 +05:30
Kavin Venkatachalam
3a78cf6155
[Feature]: Icon Widget (#3936)
* Created Icon Widget

* Installed tabler icons

* Updated visibility logic for icon widget

* Added doc for icon widget

* Updated hidden field & moved hidden logic to cx

* Dark theme for icon widget & updated visibility

* Moved visibility logic to useEffect

* Updated visibility CSA label

* Removed resolveWidgetFieldValuekey usage in the Icon widget

* Moved register action to useEffect

* Removed registerActions on useEffect

* Add setIconVisibility to dependency array of registerAction

Co-authored-by: Sherfin Shamsudeen <[email protected]>
2022-09-27 11:18:32 +05:30
Kavin Venkatachalam
2ffda26f38
[Feature]: Link Widget (#3905)
* Created Link Widget

* Added empty line at the end in theme file

* Fixed overflow issue in Link widget

* Updated visibility in the link widget

* Added doc for link widget

* Updated link widget doc

* Set fxActive on by default for visibility

* Fixed variable typo in link widget

* Updated hidden property

* Updated visibility logic for link widget

* Moved visibility to styles section

* Moved register action to useEffect

* Removed registerActions on useEffect

* Removed dependencies in registerAction function as it is breaking inspector

* updated link doc

* Add clickRef of link component as dependency of registerAction

Co-authored-by: Shubhendra <[email protected]>
Co-authored-by: Sherfin Shamsudeen <[email protected]>
2022-09-27 11:12:14 +05:30
Manish Kushare
d3c0f8d635
Enhancement : [ Button Widget ] 2.0 (#4024)
* moved disbale and visible state to properties tab from styles and made fx default for each

* added hover event

* added loading,visible, and disable csa props and handled them in widget

* made General and layout menus open by default in widget inspector

* added migration for visibility and disabled prop

* removed unwanted visible prop in the properties object

* made fxActive true in migration file

* added loadingState active fx in migration

* refactored widget

* refactored button widget

* bug fixed

* bug fixed

* bug fixes

* replaced onMouseMove with onMouseOver event

* changed the type of action for loading, visibility and disable to toggle

* moved all register action inside useEffect

* removed register action function from useEffect and made the requested changes

* fixed visibility bug

* avoiding extra render

* made changes for better readability

* removed unused import
2022-09-26 15:47:55 +05:30
Arpit
decc924ba2
[improvement] Modal widget (#4045)
* init

* fixes: config-handler clickEvents

* fixes: position attributes for open state modal config handler

* modal body scrollable

* adds loadingState

* adds onOpen and onClose events for modal

* adds visibility property

* open general and layout Options by default

* adds styling options for modal header and body

* adds style options for show button and conditional rendering of button styles

* refactor conditional rendering styles

* clean up

* fixes typos

* remove footer

* modal size

* handles dark theme

* update naming convention for modal: trigger button

* modal size:updates

* updates modal close icon

* adds comments for conditionally rendering style options

* only vertical scrolling inside modals

* clean up

* custom UI for widget config handle for modal

* backfil

* resolves: event should not fire on mount

* modal improvements doc

* hide modal on clicking outside for viewer mode

* Remove unnecessary modification of modal property schema

Co-authored-by: Shubhendra <[email protected]>
Co-authored-by: Sherfin Shamsudeen <[email protected]>
2022-09-26 15:46:21 +05:30
Manish Kushare
e838d3e96b
Enhancement : [ Text widget ] refactor (#4038)
* refactor Text widget

* refactored text widget

* bug fixed

* changed the type of action for visibility to toggle

* changed the default value of background color to transparent

* made event menu open by default in widget inspector

* made the suggested changes

* bug fixed : app was crashing due to visibility

* made changes to improve readability
2022-09-26 15:05:46 +05:30
Manish Kushare
8f3abb5609
added onSelect event, when date are selected (#4058) 2022-09-26 14:21:03 +05:30
Sherfin Shamsudeen
b5507b4ac5
Refactor table component (#3933)
* Updated the table UI

* made the search bar in sync with current applied theme in the application

* updated the UI of the table widget

* adjust x axis in the footer

* made the search text vertically center

* Load text color using new api in Table

* Load action buttons data using new api in table

* Revert usage of new api for table actions

* Use new api to load most properties and styles

* Move logic for loading styles and propeties to another file

* Table: Move loading of actions to separate file

* Move functions to expose data to codehinter to Box.jsx

* Table: Get loadingState from new api

* Table: Use reducer for storing table column properties

* Table: minor refactoring on reducer

* Table: Replace the use of internal state variable componentState

* Abstract out Filter as a separate component

* Move table column definitions to a separate file

* Move action column definition to a separate file

* Move IndeterminateCheckbox to a separate file

* Completely remove any requirement of loading from definition inside loadPropertiesAndStyles

* Reduce the use of reducer dispatch calls in Table.jsx

* Remove the usage of __TjDoNotResolve__

* Load actions without new API

* Update migration to make columnSizes follow default format

* Fix migration to restructure table column sizes data

* Do not update columnSizes property if incoming value is empty

* Remove unnecessary code

* Remove unnecessary linting

* Remove unnecessary reducer action

* Remove unnecessary code

* Merge table changeSet data into table details reducer instead of filter reducer

* Make compact and spacious cell sizing work for table

* Remove custom handling of onRowClicked for Table

* Fix issues with table visibility, border radius and disabled state

* Resolve the issue with invalid date crashing the table

* fixes:widget crash is only for those tables which do not have any actions associated with it yet. (#4078)

* Remove unnecessary code

Co-authored-by: Manish Kushare <[email protected]>
Co-authored-by: Arpit <[email protected]>
2022-09-21 16:23:02 +05:30
Manish Kushare
4cc239661e
Bug fixed : dark theme issues (#4009)
* bug fixed : file picker is not consistent with the dark theme

* bug fixed : Map widget is not consistent with the dark theme

* bug fixed : Steps widget is not consistent with the dark theme

* bug fixed : Multi select widget label is not consistent with the dark theme

* bug fixed : search bar in widget manager and label params in Code Hinter is not consistent with the dark theme

* removed unwanted comma in the chart inspector

* bug fix : app dropdown inside go to app in event manager is not consistent with the dark theme

* bug fixed : search select dropdown is not consistent with the dark theme in table inspector

* bug fixed : Organization and Profile avatar in HomePage is not consistent with the dark theme

* bug fixed : search box in the homepage is not consistent with the dark theme

* bug fixed : select dropdown input placeholder is not consistent with the dark theme

* bug fixed :Text area in the Modal to  Share the app link is not consistent with the dark theme

* bug fixed : p tag in pagination in the homepage is not consistent with the dark theme

* replaced undefined to false as default value of darkMode if not defined

* bug fixed : multiselect input placeholder is not consistent with the dark theme

* removed duplicate code from custom.scss and changed rgb to hex in theme.scss
2022-09-12 14:17:04 +05:30
mikebarr24
5dc1b88f23
Fix test in Listview (#4012) 2022-09-12 12:02:41 +05:30
Kavin Venkatachalam
d8195ec718
[Hotfix]: Render Only Active Tab Toggle (#3980)
* Added render only active tab toggle

* Added a comment for renderOnlyActiveTab
2022-09-08 16:22:01 +05:30
Arpit
c259bf487f
[improvement] handle xlsx parsing for filepicker (#3842)
* featureL handle xlsx parsing for filepicker

* support for xlsx file
2022-08-24 15:44:29 +05:30
Manish Kushare
e10f993d47
Added transparent as default value for background Color (#3817)
* added transparent as default value in background prop

* reverting back the changes

* bug fixed : background color field in Image widget inspector is compressed by default

* removing changes made in Color.jsx

* removing unwanted changes made in Color.jsx
2022-08-23 12:28:53 +05:30
Sherfin Shamsudeen
9798c6e444 Merge branch 'main' into develop 2022-08-22 19:42:19 +05:30