ToolJet/frontend/src/Editor/Components/Button.jsx

254 lines
8.1 KiB
React
Raw Normal View History

import React, { useEffect, useState } from 'react';
import cx from 'classnames';
Query manager revamp (#6680) * global store init * Moved query data to new component * Removed unwanted code * Removed data queries prop drilling * Moved query state out of editor * Added unsafe to componentWillReceiveProps * Selected first query when the version is changed * Fixed bug on renaming query * Fixed issue on dark theme * Fixed running query on page load in viewer * Query manager refactor init * Added global data source in store * Disabled devtools on production * Fixed bug on selecting query after deletion * Reset store when editor is loaded * Moved query manager to functional component * Fixed conflict issues * Fixed infinite loop on tooljetDB * Set the store name and updated devtools logic * Fixed issue on displaying draft query from data sources * Updated comments on the store * Fixed bug on changing data source and creating query from data source * Fixed bug on showing unsaved changes popup * Fixed issue on showing confirmation modal everytime without any changes * feat: autosave data query functionality * feat: show publish button only when the status in draft state * Fixed issues on query renaming * feat: removed discard popup for data query create/edit widget * stye: reduced autosave api call timeout and added draft tag * feat: added minor style changes * feat: fixed issues with restapi plugin, removed unused api calls * fix: fixed issue that breaks restapi creation * fix: reload selected query details after update query * perf: reduced debounce time for data query update apis * feat: removed full reloading of query list on query renaming * feat: duplicate data query feature added * Fixed issue on creating restAPI query * fix: fixed issue in transforming response from update queyr api * fix: refresh selected query details when the selected query is updated * fix: rename query on click enter * fix: full refresh of query list on update * fix: style changes * fix: subscribing to state to autsave * feat: updated the query manager styles to new design * feat: revamped the querypane header buttons * fix: fixed the padding for query panel maximize button * feat: updated search box style * refactor: moved function to render data source icon to its own component * fix: fixed querymanager widget breaking issue * merged with feat/query-manager-autosave * refactor: removed unused consoles * refactor: removed unused consoles * refactor: removed unused consoles * fix: removed commented code * fix: removed unused code * refactor: removed unused comments * fix: show change datasource select only if valid ds available * Update frontend/src/Editor/Inspector/EventManager.jsx Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> * Update frontend/src/Editor/QueryManager/Components/DataSourceLister.jsx Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> * Update frontend/src/Editor/QueryManager/Components/DataSourceLister.jsx Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> * Update frontend/src/Editor/QueryManager/Components/QueryManagerBody.jsx Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> * feat: modify behaviour of search icon in query panel * fix: fixed theme color mismatch in query manager * refactor: remove dead code * refactor: updated theme for data source listner * fix: theming in filter and sort popup * refactor: remove unused variables * fix: removed draftQuery logic from query manager * refactor: removed unused varibales * Update frontend/src/Editor/QueryManager/QueryEditors/Restapi/TabParams.jsx Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> * Update frontend/src/Editor/QueryPanel/QueryCard.jsx Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> * feat: diable preview for draft queries * fix: added tooltip for query panel button * fix: fixed issues in saving query manager events * fix: moved query save subscriber to QuerPanel component * feat: converted query run api to save and run * fix: made varibale an optional param in updateDataQuery dto * refactor: cleanup update dataquery status api response * refactor: moved query status to constants file * feat: prompt for queryname when creating new query * fix: store new queryname in state on create query pageload * fix: fixed alignment of Tooljet db component form * fix: correct translation and format file * refactor: removed consoles * merge: merge appbuilder-1.2 * style: updated rename input/button UX * style: revamped dataquery create widget styles * style: revamped data source selector styles * fix: removed code added for debugging * style: updated data query filter design * style: Add prop to control visibility of clear button in search box * style: implement new style for query filter * merge appbuilder-1.2 to feat/query-manager-sort-filter * refactor: remove unintended file change * fix: set default value for method in respapi * style: updated copilot info popup style * style: updated quer panel header icons * style: updated button styles * style: fixed query manager button styles * style: smoothened query preview modal view * fix: correct import for some funs * fix: fixed minor UX bugs * style: fixed styling of REST api GDS * style: fixed styleing of sort and filter popup * style: improved data queries sort filter UI/UX * fix: remove click listner when overlay is closed * fix: moved component declaration out of parent component * fix: set selected datasource for default sources * fix: filter DS based on saerch in create dropdown * fix: restrict draft query running to preview mode * fix: query renamed on input change in create screen * fix: set name to state as soon as user renames query * fix: make query notification message consistent * style: correct s3 bucket plugin layout config * fix: fixed issues with cloning of Static DS queries * fix: made change so that newly created query is reflected immediatly * style: updated spacing for query manager components * fix: hide rename input when no query selected * fix: check bothe selected query and DS before rendering query manager * fix: set isSaving to true only for api calls in querymanager * fix: added success message form in qm * fix: filter out draft queries from viewer on running * fix: fixed inconsistent gutter for runpy and runjs editors * fix: reload dataqueris on LDS deletion * fix: redesigned filter/sort popup * fix: fixed issue that resets filter on search * fix: fixed query manager breaking on plugin select * fix: diable json preview for text output * fix: reset to filter and sort main menu on close filter popup * refactor: rename varibales * stye: redesigned query create panel * feat: revert data query status column from backend * style: redesign query picker section * refactor: removed dead code * style: querypanel expand/collapse btn style * style: add query select and query filter popup style redesign * style: updated filter popup style * feat: removed draft query checks everywhere * style: empty dataqueries style changed * style: updated query selector popup and rest options styles * style: removed 100% height to query option remove btn * feat: added the query runnable status check * style: updated query manager footer style * feat: changed DS filter from kind to DS ID * style: minor ui tweaks in filter popup * style: disable DS filter if no DQs created * style: minor ui change * fix: rerender filter popup post DS api call. fixed rest api copy feature * fix: add local DS to filter popup * refactor: removed dead code/comments * add new row is crashing when no data is fed to table (#7102) * fix: fixed condition that blocked GDS run on load * fix: revert name back to og name if update fails in rename query * feat: added tooltip for show query btn * fix: added click interaction for pill btn as well * fix: minor UI tweaks to make UX better * style: fixed the styling of filter popup * style: minor UI tweaks in query filter popup * fix: fixed minor css issue in ds picker * style: wrap overflowing text in queryname * fix: update updated_at after query update api call success * fix: update remove the caller query from event query dropdown * style: minor ui spacing tweaks * fix: fix issue that cuased app crash when tjdb opened * fix: fixed update row styles * fix: fixed info popup dark theme bg * fix: fixed headers styling according to general QM styles * style: fixed stripe QM UI * fix: added tooltip for quernames * feat: add tooltip for select ds options * added consoles to debug debugger issue * fix: fixed :active style of ds select dropdown in QM * fix: fixed DS kind name in data source selector in QM * fix: fixed border color mismatch for ds select dd * fix: change tooltip msg for maximize/minize QM * Fix automation for query manager revamp. (#7223) * Add data-cy to support modified specs * Fix event handler * Fix RunPy and RunJS specs * Fix event handler label * Fix basic components spec * Fix basic components failure * Fix tabel spec failure. * Fix runjs and runpy actions * Fix table column options * Add data-cy * version: version updated to 2.13.0 * Version bump --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Manish Kushare <37823141+manishkushare@users.noreply.github.com> Co-authored-by: Midhun Kumar E <midhun752@gmail.com>
2023-08-09 12:31:48 +00:00
const tinycolor = require('tinycolor2');
Release: Appbuilder 1.7 (#9875) * Remove date-fns depedency from table datepicker * Revert Remove date-fns depedency from table datepicker * Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545) * fix: headers and action button UI on table (#9626) * fix: delete all children and nested children on component delete (#9182) * fix: delete all children and nested children on component delete * refactor: removed duplicate logics * refactor: reuse functions and remove duplicate functions * fix: update parentid of kanban modal child on version creation * fix: add kanban modal children to delete list * Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567) * chore: fixed vulnerability issues on FE (#9561) Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: Removed unused packages in FE (#9161) * Removed unused packages * Remove date-fns dependency drom table date picker (#9585) --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651) * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 * remove console logs * Add support to add Manual date entry in Datepicker table column (#9631) * Removed unused packages * Add Manual date entry in Datepicker table column * Remove date-fns dependency drom table date picker (#9585) * fix date input issue * Remove consoles --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650) * add: pin and collapsable functionality to pages sidebar * fix: review changes * fix: canvas auto update width on sidebar toggle * fix icon size * Add support to wrap table's column header (#9565) * Add support to wrap table's column header * Resolve code comments * commit * fix: resize page width on window resize (#9164) * feat: Button component revamp (#8361) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * button component revamped * fix :: csa * typo fix * typo * fix :: styling * exposed variables * fix padding * review fixes styles component panel * fix naming * fix padding * default size * fix :: icons position * updates * cleanup * updates events , csa * cleanup * remove border * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * disabled state * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * merge fixes * fix * updates * removing unwanted migrations * fix: box shadow * fix : import export issues * fix : colouring * cleanup * fixes * fix : design review comments * add border color * fix : review changes * fix * change display name to solid * fix label * fix : loader issue * fix : button icon position * fix : qa bugs * feat: Checkbox + Toggle revamp (#8519) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * feat : checkbox completed * update checkbox review changes * feat : toggle component * feat : added new toggle component * fix : colors * updated review changes * update name for old and new version * update * case change * update * update icon * removed padding from checkbox and toggle * fix naming * product review and bugfixes : changes * fix : checkbox setvalue action * Update setvalue action in toggle * fixed: section for legacy and new components * fix : checkbox tick mark not showing on resizing * fix : icon in inspector * fix : box shadow * fix : ismandatory definition * configs update --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * fix : toggle switch import and switch component issues (#9874) * fix : filter order of toggle (#9879) * fix: appbuilder 1.7 integration testing bug fixes (#9880) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Bugfixes componentes 1.7 (#9892) * fix : filter order of toggle (#9879) * fix : Button alignment when label is empty * fix : box shadow added * fix : direction and default box shadow * fix : disable csa not working for checkbox * fix : button padding * added toggle for box shadow check * fixes : integration 1.7 (#9901) * fix : exposed vars not getting exposed on page change * fix : validation error font * fix : dynamic color for button * fix : loading placement during CSA * Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * Move disabled, visibility, tooltip and box shadow to properties * Remove toggleswitch and button * Add down rollbackUpdates * fix : filter order of toggle (#9879) * fix merge issue * fix --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> * fix: use onMouseOver and onMouseLeave together to fix hover event * fix : Validation message to be shown only when use toggles on and off , code refactor (#9905) * Fix naming logic for copying (#9909) --------- Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com> * fix: update animateTransform for cross browser compatibility (#9917) * fix: color transitions on sidebar pages in dark mode (#9920) * Fix table all column editable (#9921) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Fix allColumns editable in Table * Fix clientServer nor working in Table * In widget config, update the total records as 10 --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: bump minor version --------- Co-authored-by: Nakul Nagargade <nakul@tooljet.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: vjaris42 <vjy239@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 12:42:10 +00:00
import * as Icons from '@tabler/icons-react';
import Loader from '@/ToolJetUI/Loader/Loader';
export const Button = function Button(props) {
const { height, properties, styles, fireEvent, id, dataCy, setExposedVariable, setExposedVariables } = props;
Release: Appbuilder 1.7 (#9875) * Remove date-fns depedency from table datepicker * Revert Remove date-fns depedency from table datepicker * Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545) * fix: headers and action button UI on table (#9626) * fix: delete all children and nested children on component delete (#9182) * fix: delete all children and nested children on component delete * refactor: removed duplicate logics * refactor: reuse functions and remove duplicate functions * fix: update parentid of kanban modal child on version creation * fix: add kanban modal children to delete list * Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567) * chore: fixed vulnerability issues on FE (#9561) Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: Removed unused packages in FE (#9161) * Removed unused packages * Remove date-fns dependency drom table date picker (#9585) --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651) * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 * remove console logs * Add support to add Manual date entry in Datepicker table column (#9631) * Removed unused packages * Add Manual date entry in Datepicker table column * Remove date-fns dependency drom table date picker (#9585) * fix date input issue * Remove consoles --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650) * add: pin and collapsable functionality to pages sidebar * fix: review changes * fix: canvas auto update width on sidebar toggle * fix icon size * Add support to wrap table's column header (#9565) * Add support to wrap table's column header * Resolve code comments * commit * fix: resize page width on window resize (#9164) * feat: Button component revamp (#8361) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * button component revamped * fix :: csa * typo fix * typo * fix :: styling * exposed variables * fix padding * review fixes styles component panel * fix naming * fix padding * default size * fix :: icons position * updates * cleanup * updates events , csa * cleanup * remove border * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * disabled state * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * merge fixes * fix * updates * removing unwanted migrations * fix: box shadow * fix : import export issues * fix : colouring * cleanup * fixes * fix : design review comments * add border color * fix : review changes * fix * change display name to solid * fix label * fix : loader issue * fix : button icon position * fix : qa bugs * feat: Checkbox + Toggle revamp (#8519) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * feat : checkbox completed * update checkbox review changes * feat : toggle component * feat : added new toggle component * fix : colors * updated review changes * update name for old and new version * update * case change * update * update icon * removed padding from checkbox and toggle * fix naming * product review and bugfixes : changes * fix : checkbox setvalue action * Update setvalue action in toggle * fixed: section for legacy and new components * fix : checkbox tick mark not showing on resizing * fix : icon in inspector * fix : box shadow * fix : ismandatory definition * configs update --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * fix : toggle switch import and switch component issues (#9874) * fix : filter order of toggle (#9879) * fix: appbuilder 1.7 integration testing bug fixes (#9880) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Bugfixes componentes 1.7 (#9892) * fix : filter order of toggle (#9879) * fix : Button alignment when label is empty * fix : box shadow added * fix : direction and default box shadow * fix : disable csa not working for checkbox * fix : button padding * added toggle for box shadow check * fixes : integration 1.7 (#9901) * fix : exposed vars not getting exposed on page change * fix : validation error font * fix : dynamic color for button * fix : loading placement during CSA * Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * Move disabled, visibility, tooltip and box shadow to properties * Remove toggleswitch and button * Add down rollbackUpdates * fix : filter order of toggle (#9879) * fix merge issue * fix --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> * fix: use onMouseOver and onMouseLeave together to fix hover event * fix : Validation message to be shown only when use toggles on and off , code refactor (#9905) * Fix naming logic for copying (#9909) --------- Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com> * fix: update animateTransform for cross browser compatibility (#9917) * fix: color transitions on sidebar pages in dark mode (#9920) * Fix table all column editable (#9921) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Fix allColumns editable in Table * Fix clientServer nor working in Table * In widget config, update the total records as 10 --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: bump minor version --------- Co-authored-by: Nakul Nagargade <nakul@tooljet.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: vjaris42 <vjy239@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 12:42:10 +00:00
const {
backgroundColor,
textColor,
borderRadius,
loaderColor,
borderColor,
boxShadow,
iconColor,
direction,
type,
padding,
iconVisibility,
} = styles;
2021-04-02 09:24:51 +00:00
Release: Appbuilder 1.7 (#9875) * Remove date-fns depedency from table datepicker * Revert Remove date-fns depedency from table datepicker * Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545) * fix: headers and action button UI on table (#9626) * fix: delete all children and nested children on component delete (#9182) * fix: delete all children and nested children on component delete * refactor: removed duplicate logics * refactor: reuse functions and remove duplicate functions * fix: update parentid of kanban modal child on version creation * fix: add kanban modal children to delete list * Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567) * chore: fixed vulnerability issues on FE (#9561) Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: Removed unused packages in FE (#9161) * Removed unused packages * Remove date-fns dependency drom table date picker (#9585) --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651) * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 * remove console logs * Add support to add Manual date entry in Datepicker table column (#9631) * Removed unused packages * Add Manual date entry in Datepicker table column * Remove date-fns dependency drom table date picker (#9585) * fix date input issue * Remove consoles --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650) * add: pin and collapsable functionality to pages sidebar * fix: review changes * fix: canvas auto update width on sidebar toggle * fix icon size * Add support to wrap table's column header (#9565) * Add support to wrap table's column header * Resolve code comments * commit * fix: resize page width on window resize (#9164) * feat: Button component revamp (#8361) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * button component revamped * fix :: csa * typo fix * typo * fix :: styling * exposed variables * fix padding * review fixes styles component panel * fix naming * fix padding * default size * fix :: icons position * updates * cleanup * updates events , csa * cleanup * remove border * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * disabled state * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * merge fixes * fix * updates * removing unwanted migrations * fix: box shadow * fix : import export issues * fix : colouring * cleanup * fixes * fix : design review comments * add border color * fix : review changes * fix * change display name to solid * fix label * fix : loader issue * fix : button icon position * fix : qa bugs * feat: Checkbox + Toggle revamp (#8519) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * feat : checkbox completed * update checkbox review changes * feat : toggle component * feat : added new toggle component * fix : colors * updated review changes * update name for old and new version * update * case change * update * update icon * removed padding from checkbox and toggle * fix naming * product review and bugfixes : changes * fix : checkbox setvalue action * Update setvalue action in toggle * fixed: section for legacy and new components * fix : checkbox tick mark not showing on resizing * fix : icon in inspector * fix : box shadow * fix : ismandatory definition * configs update --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * fix : toggle switch import and switch component issues (#9874) * fix : filter order of toggle (#9879) * fix: appbuilder 1.7 integration testing bug fixes (#9880) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Bugfixes componentes 1.7 (#9892) * fix : filter order of toggle (#9879) * fix : Button alignment when label is empty * fix : box shadow added * fix : direction and default box shadow * fix : disable csa not working for checkbox * fix : button padding * added toggle for box shadow check * fixes : integration 1.7 (#9901) * fix : exposed vars not getting exposed on page change * fix : validation error font * fix : dynamic color for button * fix : loading placement during CSA * Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * Move disabled, visibility, tooltip and box shadow to properties * Remove toggleswitch and button * Add down rollbackUpdates * fix : filter order of toggle (#9879) * fix merge issue * fix --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> * fix: use onMouseOver and onMouseLeave together to fix hover event * fix : Validation message to be shown only when use toggles on and off , code refactor (#9905) * Fix naming logic for copying (#9909) --------- Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com> * fix: update animateTransform for cross browser compatibility (#9917) * fix: color transitions on sidebar pages in dark mode (#9920) * Fix table all column editable (#9921) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Fix allColumns editable in Table * Fix clientServer nor working in Table * In widget config, update the total records as 10 --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: bump minor version --------- Co-authored-by: Nakul Nagargade <nakul@tooljet.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: vjaris42 <vjy239@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 12:42:10 +00:00
const { loadingState, disabledState } = properties;
2024-05-24 08:50:20 +00:00
const [label, setLabel] = useState(typeof properties.text === 'string' ? properties.text : '');
Release: Appbuilder 1.7 (#9875) * Remove date-fns depedency from table datepicker * Revert Remove date-fns depedency from table datepicker * Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545) * fix: headers and action button UI on table (#9626) * fix: delete all children and nested children on component delete (#9182) * fix: delete all children and nested children on component delete * refactor: removed duplicate logics * refactor: reuse functions and remove duplicate functions * fix: update parentid of kanban modal child on version creation * fix: add kanban modal children to delete list * Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567) * chore: fixed vulnerability issues on FE (#9561) Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: Removed unused packages in FE (#9161) * Removed unused packages * Remove date-fns dependency drom table date picker (#9585) --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651) * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 * remove console logs * Add support to add Manual date entry in Datepicker table column (#9631) * Removed unused packages * Add Manual date entry in Datepicker table column * Remove date-fns dependency drom table date picker (#9585) * fix date input issue * Remove consoles --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650) * add: pin and collapsable functionality to pages sidebar * fix: review changes * fix: canvas auto update width on sidebar toggle * fix icon size * Add support to wrap table's column header (#9565) * Add support to wrap table's column header * Resolve code comments * commit * fix: resize page width on window resize (#9164) * feat: Button component revamp (#8361) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * button component revamped * fix :: csa * typo fix * typo * fix :: styling * exposed variables * fix padding * review fixes styles component panel * fix naming * fix padding * default size * fix :: icons position * updates * cleanup * updates events , csa * cleanup * remove border * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * disabled state * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * merge fixes * fix * updates * removing unwanted migrations * fix: box shadow * fix : import export issues * fix : colouring * cleanup * fixes * fix : design review comments * add border color * fix : review changes * fix * change display name to solid * fix label * fix : loader issue * fix : button icon position * fix : qa bugs * feat: Checkbox + Toggle revamp (#8519) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * feat : checkbox completed * update checkbox review changes * feat : toggle component * feat : added new toggle component * fix : colors * updated review changes * update name for old and new version * update * case change * update * update icon * removed padding from checkbox and toggle * fix naming * product review and bugfixes : changes * fix : checkbox setvalue action * Update setvalue action in toggle * fixed: section for legacy and new components * fix : checkbox tick mark not showing on resizing * fix : icon in inspector * fix : box shadow * fix : ismandatory definition * configs update --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * fix : toggle switch import and switch component issues (#9874) * fix : filter order of toggle (#9879) * fix: appbuilder 1.7 integration testing bug fixes (#9880) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Bugfixes componentes 1.7 (#9892) * fix : filter order of toggle (#9879) * fix : Button alignment when label is empty * fix : box shadow added * fix : direction and default box shadow * fix : disable csa not working for checkbox * fix : button padding * added toggle for box shadow check * fixes : integration 1.7 (#9901) * fix : exposed vars not getting exposed on page change * fix : validation error font * fix : dynamic color for button * fix : loading placement during CSA * Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * Move disabled, visibility, tooltip and box shadow to properties * Remove toggleswitch and button * Add down rollbackUpdates * fix : filter order of toggle (#9879) * fix merge issue * fix --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> * fix: use onMouseOver and onMouseLeave together to fix hover event * fix : Validation message to be shown only when use toggles on and off , code refactor (#9905) * Fix naming logic for copying (#9909) --------- Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com> * fix: update animateTransform for cross browser compatibility (#9917) * fix: color transitions on sidebar pages in dark mode (#9920) * Fix table all column editable (#9921) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Fix allColumns editable in Table * Fix clientServer nor working in Table * In widget config, update the total records as 10 --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: bump minor version --------- Co-authored-by: Nakul Nagargade <nakul@tooljet.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: vjaris42 <vjy239@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 12:42:10 +00:00
const [disable, setDisable] = useState(disabledState || loadingState);
const [visibility, setVisibility] = useState(properties.visibility);
const [loading, setLoading] = useState(loadingState);
const [hovered, setHovered] = useState(false);
const iconName = styles.icon; // Replace with the name of the icon you want
// eslint-disable-next-line import/namespace
const IconElement = Icons[iconName] == undefined ? Icons['IconHome2'] : Icons[iconName];
useEffect(() => {
2024-05-24 08:50:20 +00:00
if (typeof properties.text === 'string') {
setLabel(properties.text);
setExposedVariable('buttonText', properties.text);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [properties.text]);
useEffect(() => {
disable !== disabledState && setDisable(disabledState);
2022-11-03 14:04:37 +00:00
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [disabledState]);
useEffect(() => {
Release: Appbuilder 1.7 (#9875) * Remove date-fns depedency from table datepicker * Revert Remove date-fns depedency from table datepicker * Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545) * fix: headers and action button UI on table (#9626) * fix: delete all children and nested children on component delete (#9182) * fix: delete all children and nested children on component delete * refactor: removed duplicate logics * refactor: reuse functions and remove duplicate functions * fix: update parentid of kanban modal child on version creation * fix: add kanban modal children to delete list * Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567) * chore: fixed vulnerability issues on FE (#9561) Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: Removed unused packages in FE (#9161) * Removed unused packages * Remove date-fns dependency drom table date picker (#9585) --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651) * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 * remove console logs * Add support to add Manual date entry in Datepicker table column (#9631) * Removed unused packages * Add Manual date entry in Datepicker table column * Remove date-fns dependency drom table date picker (#9585) * fix date input issue * Remove consoles --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650) * add: pin and collapsable functionality to pages sidebar * fix: review changes * fix: canvas auto update width on sidebar toggle * fix icon size * Add support to wrap table's column header (#9565) * Add support to wrap table's column header * Resolve code comments * commit * fix: resize page width on window resize (#9164) * feat: Button component revamp (#8361) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * button component revamped * fix :: csa * typo fix * typo * fix :: styling * exposed variables * fix padding * review fixes styles component panel * fix naming * fix padding * default size * fix :: icons position * updates * cleanup * updates events , csa * cleanup * remove border * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * disabled state * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * merge fixes * fix * updates * removing unwanted migrations * fix: box shadow * fix : import export issues * fix : colouring * cleanup * fixes * fix : design review comments * add border color * fix : review changes * fix * change display name to solid * fix label * fix : loader issue * fix : button icon position * fix : qa bugs * feat: Checkbox + Toggle revamp (#8519) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * feat : checkbox completed * update checkbox review changes * feat : toggle component * feat : added new toggle component * fix : colors * updated review changes * update name for old and new version * update * case change * update * update icon * removed padding from checkbox and toggle * fix naming * product review and bugfixes : changes * fix : checkbox setvalue action * Update setvalue action in toggle * fixed: section for legacy and new components * fix : checkbox tick mark not showing on resizing * fix : icon in inspector * fix : box shadow * fix : ismandatory definition * configs update --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * fix : toggle switch import and switch component issues (#9874) * fix : filter order of toggle (#9879) * fix: appbuilder 1.7 integration testing bug fixes (#9880) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Bugfixes componentes 1.7 (#9892) * fix : filter order of toggle (#9879) * fix : Button alignment when label is empty * fix : box shadow added * fix : direction and default box shadow * fix : disable csa not working for checkbox * fix : button padding * added toggle for box shadow check * fixes : integration 1.7 (#9901) * fix : exposed vars not getting exposed on page change * fix : validation error font * fix : dynamic color for button * fix : loading placement during CSA * Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * Move disabled, visibility, tooltip and box shadow to properties * Remove toggleswitch and button * Add down rollbackUpdates * fix : filter order of toggle (#9879) * fix merge issue * fix --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> * fix: use onMouseOver and onMouseLeave together to fix hover event * fix : Validation message to be shown only when use toggles on and off , code refactor (#9905) * Fix naming logic for copying (#9909) --------- Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com> * fix: update animateTransform for cross browser compatibility (#9917) * fix: color transitions on sidebar pages in dark mode (#9920) * Fix table all column editable (#9921) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Fix allColumns editable in Table * Fix clientServer nor working in Table * In widget config, update the total records as 10 --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: bump minor version --------- Co-authored-by: Nakul Nagargade <nakul@tooljet.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: vjaris42 <vjy239@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 12:42:10 +00:00
visibility !== properties.visibility && setVisibility(properties.visibility);
2022-11-03 14:04:37 +00:00
// eslint-disable-next-line react-hooks/exhaustive-deps
Release: Appbuilder 1.7 (#9875) * Remove date-fns depedency from table datepicker * Revert Remove date-fns depedency from table datepicker * Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545) * fix: headers and action button UI on table (#9626) * fix: delete all children and nested children on component delete (#9182) * fix: delete all children and nested children on component delete * refactor: removed duplicate logics * refactor: reuse functions and remove duplicate functions * fix: update parentid of kanban modal child on version creation * fix: add kanban modal children to delete list * Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567) * chore: fixed vulnerability issues on FE (#9561) Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: Removed unused packages in FE (#9161) * Removed unused packages * Remove date-fns dependency drom table date picker (#9585) --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651) * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 * remove console logs * Add support to add Manual date entry in Datepicker table column (#9631) * Removed unused packages * Add Manual date entry in Datepicker table column * Remove date-fns dependency drom table date picker (#9585) * fix date input issue * Remove consoles --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650) * add: pin and collapsable functionality to pages sidebar * fix: review changes * fix: canvas auto update width on sidebar toggle * fix icon size * Add support to wrap table's column header (#9565) * Add support to wrap table's column header * Resolve code comments * commit * fix: resize page width on window resize (#9164) * feat: Button component revamp (#8361) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * button component revamped * fix :: csa * typo fix * typo * fix :: styling * exposed variables * fix padding * review fixes styles component panel * fix naming * fix padding * default size * fix :: icons position * updates * cleanup * updates events , csa * cleanup * remove border * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * disabled state * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * merge fixes * fix * updates * removing unwanted migrations * fix: box shadow * fix : import export issues * fix : colouring * cleanup * fixes * fix : design review comments * add border color * fix : review changes * fix * change display name to solid * fix label * fix : loader issue * fix : button icon position * fix : qa bugs * feat: Checkbox + Toggle revamp (#8519) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * feat : checkbox completed * update checkbox review changes * feat : toggle component * feat : added new toggle component * fix : colors * updated review changes * update name for old and new version * update * case change * update * update icon * removed padding from checkbox and toggle * fix naming * product review and bugfixes : changes * fix : checkbox setvalue action * Update setvalue action in toggle * fixed: section for legacy and new components * fix : checkbox tick mark not showing on resizing * fix : icon in inspector * fix : box shadow * fix : ismandatory definition * configs update --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * fix : toggle switch import and switch component issues (#9874) * fix : filter order of toggle (#9879) * fix: appbuilder 1.7 integration testing bug fixes (#9880) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Bugfixes componentes 1.7 (#9892) * fix : filter order of toggle (#9879) * fix : Button alignment when label is empty * fix : box shadow added * fix : direction and default box shadow * fix : disable csa not working for checkbox * fix : button padding * added toggle for box shadow check * fixes : integration 1.7 (#9901) * fix : exposed vars not getting exposed on page change * fix : validation error font * fix : dynamic color for button * fix : loading placement during CSA * Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * Move disabled, visibility, tooltip and box shadow to properties * Remove toggleswitch and button * Add down rollbackUpdates * fix : filter order of toggle (#9879) * fix merge issue * fix --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> * fix: use onMouseOver and onMouseLeave together to fix hover event * fix : Validation message to be shown only when use toggles on and off , code refactor (#9905) * Fix naming logic for copying (#9909) --------- Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com> * fix: update animateTransform for cross browser compatibility (#9917) * fix: color transitions on sidebar pages in dark mode (#9920) * Fix table all column editable (#9921) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Fix allColumns editable in Table * Fix clientServer nor working in Table * In widget config, update the total records as 10 --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: bump minor version --------- Co-authored-by: Nakul Nagargade <nakul@tooljet.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: vjaris42 <vjy239@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 12:42:10 +00:00
}, [properties.visibility]);
useEffect(() => {
loading !== properties.loadingState && setLoading(properties.loadingState);
2022-11-03 14:04:37 +00:00
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [properties.loadingState]);
Release: Appbuilder 1.7 (#9875) * Remove date-fns depedency from table datepicker * Revert Remove date-fns depedency from table datepicker * Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545) * fix: headers and action button UI on table (#9626) * fix: delete all children and nested children on component delete (#9182) * fix: delete all children and nested children on component delete * refactor: removed duplicate logics * refactor: reuse functions and remove duplicate functions * fix: update parentid of kanban modal child on version creation * fix: add kanban modal children to delete list * Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567) * chore: fixed vulnerability issues on FE (#9561) Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: Removed unused packages in FE (#9161) * Removed unused packages * Remove date-fns dependency drom table date picker (#9585) --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651) * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 * remove console logs * Add support to add Manual date entry in Datepicker table column (#9631) * Removed unused packages * Add Manual date entry in Datepicker table column * Remove date-fns dependency drom table date picker (#9585) * fix date input issue * Remove consoles --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650) * add: pin and collapsable functionality to pages sidebar * fix: review changes * fix: canvas auto update width on sidebar toggle * fix icon size * Add support to wrap table's column header (#9565) * Add support to wrap table's column header * Resolve code comments * commit * fix: resize page width on window resize (#9164) * feat: Button component revamp (#8361) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * button component revamped * fix :: csa * typo fix * typo * fix :: styling * exposed variables * fix padding * review fixes styles component panel * fix naming * fix padding * default size * fix :: icons position * updates * cleanup * updates events , csa * cleanup * remove border * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * disabled state * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * merge fixes * fix * updates * removing unwanted migrations * fix: box shadow * fix : import export issues * fix : colouring * cleanup * fixes * fix : design review comments * add border color * fix : review changes * fix * change display name to solid * fix label * fix : loader issue * fix : button icon position * fix : qa bugs * feat: Checkbox + Toggle revamp (#8519) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * feat : checkbox completed * update checkbox review changes * feat : toggle component * feat : added new toggle component * fix : colors * updated review changes * update name for old and new version * update * case change * update * update icon * removed padding from checkbox and toggle * fix naming * product review and bugfixes : changes * fix : checkbox setvalue action * Update setvalue action in toggle * fixed: section for legacy and new components * fix : checkbox tick mark not showing on resizing * fix : icon in inspector * fix : box shadow * fix : ismandatory definition * configs update --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * fix : toggle switch import and switch component issues (#9874) * fix : filter order of toggle (#9879) * fix: appbuilder 1.7 integration testing bug fixes (#9880) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Bugfixes componentes 1.7 (#9892) * fix : filter order of toggle (#9879) * fix : Button alignment when label is empty * fix : box shadow added * fix : direction and default box shadow * fix : disable csa not working for checkbox * fix : button padding * added toggle for box shadow check * fixes : integration 1.7 (#9901) * fix : exposed vars not getting exposed on page change * fix : validation error font * fix : dynamic color for button * fix : loading placement during CSA * Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * Move disabled, visibility, tooltip and box shadow to properties * Remove toggleswitch and button * Add down rollbackUpdates * fix : filter order of toggle (#9879) * fix merge issue * fix --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> * fix: use onMouseOver and onMouseLeave together to fix hover event * fix : Validation message to be shown only when use toggles on and off , code refactor (#9905) * Fix naming logic for copying (#9909) --------- Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com> * fix: update animateTransform for cross browser compatibility (#9917) * fix: color transitions on sidebar pages in dark mode (#9920) * Fix table all column editable (#9921) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Fix allColumns editable in Table * Fix clientServer nor working in Table * In widget config, update the total records as 10 --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: bump minor version --------- Co-authored-by: Nakul Nagargade <nakul@tooljet.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: vjaris42 <vjy239@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 12:42:10 +00:00
const computedIconColor =
'#FFFFFF' === iconColor ? (type === 'primary' ? iconColor : 'var(--icons-strong)') : iconColor;
const computedBorderColor =
borderColor === '#4368E3' ? (type === 'primary' ? '#4368E3' : 'var(--borders-strong)') : borderColor;
const computedTextColor =
'#FFFFFF' === textColor ? (type === 'primary' ? 'var(--text-on-solid)' : 'var(--text-primary)') : textColor;
const computedLoaderColor =
'#FFFFFF' === loaderColor ? (type === 'primary' ? loaderColor : 'var(--primary-brand)') : loaderColor;
const computedBgColor =
'#4368E3' === backgroundColor
? type === 'primary'
? 'var(--primary-brand)'
: 'transparent'
: type === 'primary'
? backgroundColor
: 'transparent';
2021-04-30 06:31:32 +00:00
const computedStyles = {
Release: Appbuilder 1.7 (#9875) * Remove date-fns depedency from table datepicker * Revert Remove date-fns depedency from table datepicker * Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545) * fix: headers and action button UI on table (#9626) * fix: delete all children and nested children on component delete (#9182) * fix: delete all children and nested children on component delete * refactor: removed duplicate logics * refactor: reuse functions and remove duplicate functions * fix: update parentid of kanban modal child on version creation * fix: add kanban modal children to delete list * Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567) * chore: fixed vulnerability issues on FE (#9561) Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: Removed unused packages in FE (#9161) * Removed unused packages * Remove date-fns dependency drom table date picker (#9585) --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651) * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 * remove console logs * Add support to add Manual date entry in Datepicker table column (#9631) * Removed unused packages * Add Manual date entry in Datepicker table column * Remove date-fns dependency drom table date picker (#9585) * fix date input issue * Remove consoles --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650) * add: pin and collapsable functionality to pages sidebar * fix: review changes * fix: canvas auto update width on sidebar toggle * fix icon size * Add support to wrap table's column header (#9565) * Add support to wrap table's column header * Resolve code comments * commit * fix: resize page width on window resize (#9164) * feat: Button component revamp (#8361) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * button component revamped * fix :: csa * typo fix * typo * fix :: styling * exposed variables * fix padding * review fixes styles component panel * fix naming * fix padding * default size * fix :: icons position * updates * cleanup * updates events , csa * cleanup * remove border * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * disabled state * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * merge fixes * fix * updates * removing unwanted migrations * fix: box shadow * fix : import export issues * fix : colouring * cleanup * fixes * fix : design review comments * add border color * fix : review changes * fix * change display name to solid * fix label * fix : loader issue * fix : button icon position * fix : qa bugs * feat: Checkbox + Toggle revamp (#8519) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * feat : checkbox completed * update checkbox review changes * feat : toggle component * feat : added new toggle component * fix : colors * updated review changes * update name for old and new version * update * case change * update * update icon * removed padding from checkbox and toggle * fix naming * product review and bugfixes : changes * fix : checkbox setvalue action * Update setvalue action in toggle * fixed: section for legacy and new components * fix : checkbox tick mark not showing on resizing * fix : icon in inspector * fix : box shadow * fix : ismandatory definition * configs update --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * fix : toggle switch import and switch component issues (#9874) * fix : filter order of toggle (#9879) * fix: appbuilder 1.7 integration testing bug fixes (#9880) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Bugfixes componentes 1.7 (#9892) * fix : filter order of toggle (#9879) * fix : Button alignment when label is empty * fix : box shadow added * fix : direction and default box shadow * fix : disable csa not working for checkbox * fix : button padding * added toggle for box shadow check * fixes : integration 1.7 (#9901) * fix : exposed vars not getting exposed on page change * fix : validation error font * fix : dynamic color for button * fix : loading placement during CSA * Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * Move disabled, visibility, tooltip and box shadow to properties * Remove toggleswitch and button * Add down rollbackUpdates * fix : filter order of toggle (#9879) * fix merge issue * fix --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> * fix: use onMouseOver and onMouseLeave together to fix hover event * fix : Validation message to be shown only when use toggles on and off , code refactor (#9905) * Fix naming logic for copying (#9909) --------- Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com> * fix: update animateTransform for cross browser compatibility (#9917) * fix: color transitions on sidebar pages in dark mode (#9920) * Fix table all column editable (#9921) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Fix allColumns editable in Table * Fix clientServer nor working in Table * In widget config, update the total records as 10 --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: bump minor version --------- Co-authored-by: Nakul Nagargade <nakul@tooljet.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: vjaris42 <vjy239@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 12:42:10 +00:00
backgroundColor: computedBgColor,
color: computedTextColor,
width: '100%',
borderRadius: `${borderRadius}px`,
Release: Appbuilder 1.7 (#9875) * Remove date-fns depedency from table datepicker * Revert Remove date-fns depedency from table datepicker * Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545) * fix: headers and action button UI on table (#9626) * fix: delete all children and nested children on component delete (#9182) * fix: delete all children and nested children on component delete * refactor: removed duplicate logics * refactor: reuse functions and remove duplicate functions * fix: update parentid of kanban modal child on version creation * fix: add kanban modal children to delete list * Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567) * chore: fixed vulnerability issues on FE (#9561) Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: Removed unused packages in FE (#9161) * Removed unused packages * Remove date-fns dependency drom table date picker (#9585) --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651) * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 * remove console logs * Add support to add Manual date entry in Datepicker table column (#9631) * Removed unused packages * Add Manual date entry in Datepicker table column * Remove date-fns dependency drom table date picker (#9585) * fix date input issue * Remove consoles --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650) * add: pin and collapsable functionality to pages sidebar * fix: review changes * fix: canvas auto update width on sidebar toggle * fix icon size * Add support to wrap table's column header (#9565) * Add support to wrap table's column header * Resolve code comments * commit * fix: resize page width on window resize (#9164) * feat: Button component revamp (#8361) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * button component revamped * fix :: csa * typo fix * typo * fix :: styling * exposed variables * fix padding * review fixes styles component panel * fix naming * fix padding * default size * fix :: icons position * updates * cleanup * updates events , csa * cleanup * remove border * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * disabled state * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * merge fixes * fix * updates * removing unwanted migrations * fix: box shadow * fix : import export issues * fix : colouring * cleanup * fixes * fix : design review comments * add border color * fix : review changes * fix * change display name to solid * fix label * fix : loader issue * fix : button icon position * fix : qa bugs * feat: Checkbox + Toggle revamp (#8519) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * feat : checkbox completed * update checkbox review changes * feat : toggle component * feat : added new toggle component * fix : colors * updated review changes * update name for old and new version * update * case change * update * update icon * removed padding from checkbox and toggle * fix naming * product review and bugfixes : changes * fix : checkbox setvalue action * Update setvalue action in toggle * fixed: section for legacy and new components * fix : checkbox tick mark not showing on resizing * fix : icon in inspector * fix : box shadow * fix : ismandatory definition * configs update --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * fix : toggle switch import and switch component issues (#9874) * fix : filter order of toggle (#9879) * fix: appbuilder 1.7 integration testing bug fixes (#9880) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Bugfixes componentes 1.7 (#9892) * fix : filter order of toggle (#9879) * fix : Button alignment when label is empty * fix : box shadow added * fix : direction and default box shadow * fix : disable csa not working for checkbox * fix : button padding * added toggle for box shadow check * fixes : integration 1.7 (#9901) * fix : exposed vars not getting exposed on page change * fix : validation error font * fix : dynamic color for button * fix : loading placement during CSA * Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * Move disabled, visibility, tooltip and box shadow to properties * Remove toggleswitch and button * Add down rollbackUpdates * fix : filter order of toggle (#9879) * fix merge issue * fix --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> * fix: use onMouseOver and onMouseLeave together to fix hover event * fix : Validation message to be shown only when use toggles on and off , code refactor (#9905) * Fix naming logic for copying (#9909) --------- Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com> * fix: update animateTransform for cross browser compatibility (#9917) * fix: color transitions on sidebar pages in dark mode (#9920) * Fix table all column editable (#9921) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Fix allColumns editable in Table * Fix clientServer nor working in Table * In widget config, update the total records as 10 --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: bump minor version --------- Co-authored-by: Nakul Nagargade <nakul@tooljet.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: vjaris42 <vjy239@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 12:42:10 +00:00
height: height == 36 ? (padding == 'default' ? '36px' : '40px') : padding == 'default' ? height : height + 4,
'--tblr-btn-color-darker': tinycolor(computedBgColor).darken(8).toString(),
'--tblr-btn-color-clicked': tinycolor(computedBgColor).darken(15).toString(),
'--loader-color': tinycolor(computedLoaderColor ?? 'var(--icons-on-solid)').toString(),
borderColor: computedBorderColor,
boxShadow: type == 'primary' && boxShadow,
padding: '0px 12px',
// cursor: 'pointer',
opacity: disable && '50%',
display: visibility ? (loading ? 'flex' : '') : 'none',
justifyContent: 'center',
alignItems: 'center',
2021-04-30 06:31:32 +00:00
};
2021-04-02 09:24:51 +00:00
Feature :: Exposing CSA for child widgets of form and listview (#7142) * feat :: exposing child widget of form and listview , removing register action * feat :: exposing only components and not child items * fix :: removing value of funcation info * lint fixes * reverted * test commit :: lint fix * fix :: initial render showing all components * fix :: data and children values are same * kanban breaking fix * fix for exposed variable not being accessible in initial render * comments * fix :: all components showing up in inspector during initial render for form and listview widget * reduce rerenders in button due to exposed vars * combining useeffects for lesser rerenders * fix showing of child widgets of list and form in inspector during intial render * fix :: ui break * combining useeffects in form * test commit :: reducing rerenders fromsetexposed variable called multipole time * fix :: reduce rerenders by combining multiple setExosedvariable calls * Revert "fix :: reduce rerenders by combining multiple setExosedvariable calls" This reverts commit 78c9e469444843fbbb7b0632632d54f30254c4ee. * bugfix * bugfix :: events not firing * fixes and revertions * fix :: perf checking for parent in box in case of form and listview * fix :: initial render bug * fix :: removed csa functions from listview data key * fix bugs , actions not working * fix :: dependencies * fix :: testing bugs * tabs:: event firing bug * fix :: multiselect not firing event * bugfix :: multiselect csa not triggering * fix :: kanban csa * fix :: table csa , kanban move card * fix :: bug filepicker csa
2023-09-01 08:25:03 +00:00
useEffect(() => {
const exposedVariables = {
click: async function () {
if (!disable) {
fireEvent('onClick');
}
},
setText: async function (text) {
setLabel(text);
setExposedVariable('buttonText', text);
},
disable: async function (value) {
setDisable(value);
},
visibility: async function (value) {
setVisibility(value);
},
loading: async function (value) {
setLoading(value);
},
};
setExposedVariables(exposedVariables);
Feature :: Exposing CSA for child widgets of form and listview (#7142) * feat :: exposing child widget of form and listview , removing register action * feat :: exposing only components and not child items * fix :: removing value of funcation info * lint fixes * reverted * test commit :: lint fix * fix :: initial render showing all components * fix :: data and children values are same * kanban breaking fix * fix for exposed variable not being accessible in initial render * comments * fix :: all components showing up in inspector during initial render for form and listview widget * reduce rerenders in button due to exposed vars * combining useeffects for lesser rerenders * fix showing of child widgets of list and form in inspector during intial render * fix :: ui break * combining useeffects in form * test commit :: reducing rerenders fromsetexposed variable called multipole time * fix :: reduce rerenders by combining multiple setExosedvariable calls * Revert "fix :: reduce rerenders by combining multiple setExosedvariable calls" This reverts commit 78c9e469444843fbbb7b0632632d54f30254c4ee. * bugfix * bugfix :: events not firing * fixes and revertions * fix :: perf checking for parent in box in case of form and listview * fix :: initial render bug * fix :: removed csa functions from listview data key * fix bugs , actions not working * fix :: dependencies * fix :: testing bugs * tabs:: event firing bug * fix :: multiselect not firing event * bugfix :: multiselect csa not triggering * fix :: kanban csa * fix :: table csa , kanban move card * fix :: bug filepicker csa
2023-09-01 08:25:03 +00:00
// eslint-disable-next-line react-hooks/exhaustive-deps
Release: Appbuilder 1.7 (#9875) * Remove date-fns depedency from table datepicker * Revert Remove date-fns depedency from table datepicker * Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545) * fix: headers and action button UI on table (#9626) * fix: delete all children and nested children on component delete (#9182) * fix: delete all children and nested children on component delete * refactor: removed duplicate logics * refactor: reuse functions and remove duplicate functions * fix: update parentid of kanban modal child on version creation * fix: add kanban modal children to delete list * Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567) * chore: fixed vulnerability issues on FE (#9561) Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: Removed unused packages in FE (#9161) * Removed unused packages * Remove date-fns dependency drom table date picker (#9585) --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651) * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 * remove console logs * Add support to add Manual date entry in Datepicker table column (#9631) * Removed unused packages * Add Manual date entry in Datepicker table column * Remove date-fns dependency drom table date picker (#9585) * fix date input issue * Remove consoles --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650) * add: pin and collapsable functionality to pages sidebar * fix: review changes * fix: canvas auto update width on sidebar toggle * fix icon size * Add support to wrap table's column header (#9565) * Add support to wrap table's column header * Resolve code comments * commit * fix: resize page width on window resize (#9164) * feat: Button component revamp (#8361) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * button component revamped * fix :: csa * typo fix * typo * fix :: styling * exposed variables * fix padding * review fixes styles component panel * fix naming * fix padding * default size * fix :: icons position * updates * cleanup * updates events , csa * cleanup * remove border * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * disabled state * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * merge fixes * fix * updates * removing unwanted migrations * fix: box shadow * fix : import export issues * fix : colouring * cleanup * fixes * fix : design review comments * add border color * fix : review changes * fix * change display name to solid * fix label * fix : loader issue * fix : button icon position * fix : qa bugs * feat: Checkbox + Toggle revamp (#8519) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * feat : checkbox completed * update checkbox review changes * feat : toggle component * feat : added new toggle component * fix : colors * updated review changes * update name for old and new version * update * case change * update * update icon * removed padding from checkbox and toggle * fix naming * product review and bugfixes : changes * fix : checkbox setvalue action * Update setvalue action in toggle * fixed: section for legacy and new components * fix : checkbox tick mark not showing on resizing * fix : icon in inspector * fix : box shadow * fix : ismandatory definition * configs update --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * fix : toggle switch import and switch component issues (#9874) * fix : filter order of toggle (#9879) * fix: appbuilder 1.7 integration testing bug fixes (#9880) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Bugfixes componentes 1.7 (#9892) * fix : filter order of toggle (#9879) * fix : Button alignment when label is empty * fix : box shadow added * fix : direction and default box shadow * fix : disable csa not working for checkbox * fix : button padding * added toggle for box shadow check * fixes : integration 1.7 (#9901) * fix : exposed vars not getting exposed on page change * fix : validation error font * fix : dynamic color for button * fix : loading placement during CSA * Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * Move disabled, visibility, tooltip and box shadow to properties * Remove toggleswitch and button * Add down rollbackUpdates * fix : filter order of toggle (#9879) * fix merge issue * fix --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> * fix: use onMouseOver and onMouseLeave together to fix hover event * fix : Validation message to be shown only when use toggles on and off , code refactor (#9905) * Fix naming logic for copying (#9909) --------- Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com> * fix: update animateTransform for cross browser compatibility (#9917) * fix: color transitions on sidebar pages in dark mode (#9920) * Fix table all column editable (#9921) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Fix allColumns editable in Table * Fix clientServer nor working in Table * In widget config, update the total records as 10 --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: bump minor version --------- Co-authored-by: Nakul Nagargade <nakul@tooljet.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: vjaris42 <vjy239@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 12:42:10 +00:00
}, [disable]);
useEffect(() => {
setExposedVariable('setLoading', async function (loading) {
setLoading(loading);
setExposedVariable('isLoading', loading);
});
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [loadingState]);
useEffect(() => {
setExposedVariable('setVisibility', async function (state) {
setVisibility(state);
setExposedVariable('isVisible', state);
});
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [properties.visibility]);
useEffect(() => {
setExposedVariable('setDisable', async function (disable) {
setDisable(disable);
setExposedVariable('isDisabled', disable);
});
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [disabledState]);
useEffect(() => {
setExposedVariable('isLoading', loading);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [loading]);
useEffect(() => {
setExposedVariable('isVisible', visibility);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [visibility]);
useEffect(() => {
setExposedVariable('isDisabled', disable);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [disable]);
useEffect(() => {
if (hovered) {
fireEvent('onHover');
}
}, [hovered]);
Release: Appbuilder 1.7 (#9875) * Remove date-fns depedency from table datepicker * Revert Remove date-fns depedency from table datepicker * Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545) * fix: headers and action button UI on table (#9626) * fix: delete all children and nested children on component delete (#9182) * fix: delete all children and nested children on component delete * refactor: removed duplicate logics * refactor: reuse functions and remove duplicate functions * fix: update parentid of kanban modal child on version creation * fix: add kanban modal children to delete list * Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567) * chore: fixed vulnerability issues on FE (#9561) Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: Removed unused packages in FE (#9161) * Removed unused packages * Remove date-fns dependency drom table date picker (#9585) --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651) * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 * remove console logs * Add support to add Manual date entry in Datepicker table column (#9631) * Removed unused packages * Add Manual date entry in Datepicker table column * Remove date-fns dependency drom table date picker (#9585) * fix date input issue * Remove consoles --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650) * add: pin and collapsable functionality to pages sidebar * fix: review changes * fix: canvas auto update width on sidebar toggle * fix icon size * Add support to wrap table's column header (#9565) * Add support to wrap table's column header * Resolve code comments * commit * fix: resize page width on window resize (#9164) * feat: Button component revamp (#8361) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * button component revamped * fix :: csa * typo fix * typo * fix :: styling * exposed variables * fix padding * review fixes styles component panel * fix naming * fix padding * default size * fix :: icons position * updates * cleanup * updates events , csa * cleanup * remove border * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * disabled state * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * merge fixes * fix * updates * removing unwanted migrations * fix: box shadow * fix : import export issues * fix : colouring * cleanup * fixes * fix : design review comments * add border color * fix : review changes * fix * change display name to solid * fix label * fix : loader issue * fix : button icon position * fix : qa bugs * feat: Checkbox + Toggle revamp (#8519) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * feat : checkbox completed * update checkbox review changes * feat : toggle component * feat : added new toggle component * fix : colors * updated review changes * update name for old and new version * update * case change * update * update icon * removed padding from checkbox and toggle * fix naming * product review and bugfixes : changes * fix : checkbox setvalue action * Update setvalue action in toggle * fixed: section for legacy and new components * fix : checkbox tick mark not showing on resizing * fix : icon in inspector * fix : box shadow * fix : ismandatory definition * configs update --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * fix : toggle switch import and switch component issues (#9874) * fix : filter order of toggle (#9879) * fix: appbuilder 1.7 integration testing bug fixes (#9880) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Bugfixes componentes 1.7 (#9892) * fix : filter order of toggle (#9879) * fix : Button alignment when label is empty * fix : box shadow added * fix : direction and default box shadow * fix : disable csa not working for checkbox * fix : button padding * added toggle for box shadow check * fixes : integration 1.7 (#9901) * fix : exposed vars not getting exposed on page change * fix : validation error font * fix : dynamic color for button * fix : loading placement during CSA * Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * Move disabled, visibility, tooltip and box shadow to properties * Remove toggleswitch and button * Add down rollbackUpdates * fix : filter order of toggle (#9879) * fix merge issue * fix --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> * fix: use onMouseOver and onMouseLeave together to fix hover event * fix : Validation message to be shown only when use toggles on and off , code refactor (#9905) * Fix naming logic for copying (#9909) --------- Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com> * fix: update animateTransform for cross browser compatibility (#9917) * fix: color transitions on sidebar pages in dark mode (#9920) * Fix table all column editable (#9921) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Fix allColumns editable in Table * Fix clientServer nor working in Table * In widget config, update the total records as 10 --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: bump minor version --------- Co-authored-by: Nakul Nagargade <nakul@tooljet.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: vjaris42 <vjy239@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 12:42:10 +00:00
const hasCustomBackground = computedBgColor?.charAt() === '#';
if (hasCustomBackground) {
Release: Appbuilder 1.7 (#9875) * Remove date-fns depedency from table datepicker * Revert Remove date-fns depedency from table datepicker * Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545) * fix: headers and action button UI on table (#9626) * fix: delete all children and nested children on component delete (#9182) * fix: delete all children and nested children on component delete * refactor: removed duplicate logics * refactor: reuse functions and remove duplicate functions * fix: update parentid of kanban modal child on version creation * fix: add kanban modal children to delete list * Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567) * chore: fixed vulnerability issues on FE (#9561) Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: Removed unused packages in FE (#9161) * Removed unused packages * Remove date-fns dependency drom table date picker (#9585) --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651) * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 * remove console logs * Add support to add Manual date entry in Datepicker table column (#9631) * Removed unused packages * Add Manual date entry in Datepicker table column * Remove date-fns dependency drom table date picker (#9585) * fix date input issue * Remove consoles --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650) * add: pin and collapsable functionality to pages sidebar * fix: review changes * fix: canvas auto update width on sidebar toggle * fix icon size * Add support to wrap table's column header (#9565) * Add support to wrap table's column header * Resolve code comments * commit * fix: resize page width on window resize (#9164) * feat: Button component revamp (#8361) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * button component revamped * fix :: csa * typo fix * typo * fix :: styling * exposed variables * fix padding * review fixes styles component panel * fix naming * fix padding * default size * fix :: icons position * updates * cleanup * updates events , csa * cleanup * remove border * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * disabled state * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * merge fixes * fix * updates * removing unwanted migrations * fix: box shadow * fix : import export issues * fix : colouring * cleanup * fixes * fix : design review comments * add border color * fix : review changes * fix * change display name to solid * fix label * fix : loader issue * fix : button icon position * fix : qa bugs * feat: Checkbox + Toggle revamp (#8519) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * feat : checkbox completed * update checkbox review changes * feat : toggle component * feat : added new toggle component * fix : colors * updated review changes * update name for old and new version * update * case change * update * update icon * removed padding from checkbox and toggle * fix naming * product review and bugfixes : changes * fix : checkbox setvalue action * Update setvalue action in toggle * fixed: section for legacy and new components * fix : checkbox tick mark not showing on resizing * fix : icon in inspector * fix : box shadow * fix : ismandatory definition * configs update --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * fix : toggle switch import and switch component issues (#9874) * fix : filter order of toggle (#9879) * fix: appbuilder 1.7 integration testing bug fixes (#9880) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Bugfixes componentes 1.7 (#9892) * fix : filter order of toggle (#9879) * fix : Button alignment when label is empty * fix : box shadow added * fix : direction and default box shadow * fix : disable csa not working for checkbox * fix : button padding * added toggle for box shadow check * fixes : integration 1.7 (#9901) * fix : exposed vars not getting exposed on page change * fix : validation error font * fix : dynamic color for button * fix : loading placement during CSA * Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * Move disabled, visibility, tooltip and box shadow to properties * Remove toggleswitch and button * Add down rollbackUpdates * fix : filter order of toggle (#9879) * fix merge issue * fix --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> * fix: use onMouseOver and onMouseLeave together to fix hover event * fix : Validation message to be shown only when use toggles on and off , code refactor (#9905) * Fix naming logic for copying (#9909) --------- Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com> * fix: update animateTransform for cross browser compatibility (#9917) * fix: color transitions on sidebar pages in dark mode (#9920) * Fix table all column editable (#9921) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Fix allColumns editable in Table * Fix clientServer nor working in Table * In widget config, update the total records as 10 --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: bump minor version --------- Co-authored-by: Nakul Nagargade <nakul@tooljet.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: vjaris42 <vjy239@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 12:42:10 +00:00
computedStyles['--tblr-btn-color-darker'] = tinycolor(computedBgColor).darken(8).toString();
computedStyles['--tblr-btn-color-clicked'] = tinycolor(computedBgColor).darken(15).toString();
}
const handleClick = () => {
const event1 = new CustomEvent('submitForm', { detail: { buttonComponentId: id } });
document.dispatchEvent(event1);
fireEvent('onClick');
};
Release: Appbuilder 1.7 (#9875) * Remove date-fns depedency from table datepicker * Revert Remove date-fns depedency from table datepicker * Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545) * fix: headers and action button UI on table (#9626) * fix: delete all children and nested children on component delete (#9182) * fix: delete all children and nested children on component delete * refactor: removed duplicate logics * refactor: reuse functions and remove duplicate functions * fix: update parentid of kanban modal child on version creation * fix: add kanban modal children to delete list * Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567) * chore: fixed vulnerability issues on FE (#9561) Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: Removed unused packages in FE (#9161) * Removed unused packages * Remove date-fns dependency drom table date picker (#9585) --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651) * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 * remove console logs * Add support to add Manual date entry in Datepicker table column (#9631) * Removed unused packages * Add Manual date entry in Datepicker table column * Remove date-fns dependency drom table date picker (#9585) * fix date input issue * Remove consoles --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650) * add: pin and collapsable functionality to pages sidebar * fix: review changes * fix: canvas auto update width on sidebar toggle * fix icon size * Add support to wrap table's column header (#9565) * Add support to wrap table's column header * Resolve code comments * commit * fix: resize page width on window resize (#9164) * feat: Button component revamp (#8361) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * button component revamped * fix :: csa * typo fix * typo * fix :: styling * exposed variables * fix padding * review fixes styles component panel * fix naming * fix padding * default size * fix :: icons position * updates * cleanup * updates events , csa * cleanup * remove border * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * disabled state * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * merge fixes * fix * updates * removing unwanted migrations * fix: box shadow * fix : import export issues * fix : colouring * cleanup * fixes * fix : design review comments * add border color * fix : review changes * fix * change display name to solid * fix label * fix : loader issue * fix : button icon position * fix : qa bugs * feat: Checkbox + Toggle revamp (#8519) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * feat : checkbox completed * update checkbox review changes * feat : toggle component * feat : added new toggle component * fix : colors * updated review changes * update name for old and new version * update * case change * update * update icon * removed padding from checkbox and toggle * fix naming * product review and bugfixes : changes * fix : checkbox setvalue action * Update setvalue action in toggle * fixed: section for legacy and new components * fix : checkbox tick mark not showing on resizing * fix : icon in inspector * fix : box shadow * fix : ismandatory definition * configs update --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * fix : toggle switch import and switch component issues (#9874) * fix : filter order of toggle (#9879) * fix: appbuilder 1.7 integration testing bug fixes (#9880) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Bugfixes componentes 1.7 (#9892) * fix : filter order of toggle (#9879) * fix : Button alignment when label is empty * fix : box shadow added * fix : direction and default box shadow * fix : disable csa not working for checkbox * fix : button padding * added toggle for box shadow check * fixes : integration 1.7 (#9901) * fix : exposed vars not getting exposed on page change * fix : validation error font * fix : dynamic color for button * fix : loading placement during CSA * Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * Move disabled, visibility, tooltip and box shadow to properties * Remove toggleswitch and button * Add down rollbackUpdates * fix : filter order of toggle (#9879) * fix merge issue * fix --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> * fix: use onMouseOver and onMouseLeave together to fix hover event * fix : Validation message to be shown only when use toggles on and off , code refactor (#9905) * Fix naming logic for copying (#9909) --------- Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com> * fix: update animateTransform for cross browser compatibility (#9917) * fix: color transitions on sidebar pages in dark mode (#9920) * Fix table all column editable (#9921) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Fix allColumns editable in Table * Fix clientServer nor working in Table * In widget config, update the total records as 10 --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: bump minor version --------- Co-authored-by: Nakul Nagargade <nakul@tooljet.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: vjaris42 <vjy239@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 12:42:10 +00:00
const renderButton = () => (
<div
className={`widget-button d-flex align-items-center`}
style={{
position: 'relative',
// height,
}}
disabled={disable || loading}
>
<button
Release: Appbuilder 1.7 (#9875) * Remove date-fns depedency from table datepicker * Revert Remove date-fns depedency from table datepicker * Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545) * fix: headers and action button UI on table (#9626) * fix: delete all children and nested children on component delete (#9182) * fix: delete all children and nested children on component delete * refactor: removed duplicate logics * refactor: reuse functions and remove duplicate functions * fix: update parentid of kanban modal child on version creation * fix: add kanban modal children to delete list * Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567) * chore: fixed vulnerability issues on FE (#9561) Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: Removed unused packages in FE (#9161) * Removed unused packages * Remove date-fns dependency drom table date picker (#9585) --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651) * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 * remove console logs * Add support to add Manual date entry in Datepicker table column (#9631) * Removed unused packages * Add Manual date entry in Datepicker table column * Remove date-fns dependency drom table date picker (#9585) * fix date input issue * Remove consoles --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650) * add: pin and collapsable functionality to pages sidebar * fix: review changes * fix: canvas auto update width on sidebar toggle * fix icon size * Add support to wrap table's column header (#9565) * Add support to wrap table's column header * Resolve code comments * commit * fix: resize page width on window resize (#9164) * feat: Button component revamp (#8361) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * button component revamped * fix :: csa * typo fix * typo * fix :: styling * exposed variables * fix padding * review fixes styles component panel * fix naming * fix padding * default size * fix :: icons position * updates * cleanup * updates events , csa * cleanup * remove border * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * disabled state * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * merge fixes * fix * updates * removing unwanted migrations * fix: box shadow * fix : import export issues * fix : colouring * cleanup * fixes * fix : design review comments * add border color * fix : review changes * fix * change display name to solid * fix label * fix : loader issue * fix : button icon position * fix : qa bugs * feat: Checkbox + Toggle revamp (#8519) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * feat : checkbox completed * update checkbox review changes * feat : toggle component * feat : added new toggle component * fix : colors * updated review changes * update name for old and new version * update * case change * update * update icon * removed padding from checkbox and toggle * fix naming * product review and bugfixes : changes * fix : checkbox setvalue action * Update setvalue action in toggle * fixed: section for legacy and new components * fix : checkbox tick mark not showing on resizing * fix : icon in inspector * fix : box shadow * fix : ismandatory definition * configs update --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * fix : toggle switch import and switch component issues (#9874) * fix : filter order of toggle (#9879) * fix: appbuilder 1.7 integration testing bug fixes (#9880) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Bugfixes componentes 1.7 (#9892) * fix : filter order of toggle (#9879) * fix : Button alignment when label is empty * fix : box shadow added * fix : direction and default box shadow * fix : disable csa not working for checkbox * fix : button padding * added toggle for box shadow check * fixes : integration 1.7 (#9901) * fix : exposed vars not getting exposed on page change * fix : validation error font * fix : dynamic color for button * fix : loading placement during CSA * Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * Move disabled, visibility, tooltip and box shadow to properties * Remove toggleswitch and button * Add down rollbackUpdates * fix : filter order of toggle (#9879) * fix merge issue * fix --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> * fix: use onMouseOver and onMouseLeave together to fix hover event * fix : Validation message to be shown only when use toggles on and off , code refactor (#9905) * Fix naming logic for copying (#9909) --------- Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com> * fix: update animateTransform for cross browser compatibility (#9917) * fix: color transitions on sidebar pages in dark mode (#9920) * Fix table all column editable (#9921) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Fix allColumns editable in Table * Fix clientServer nor working in Table * In widget config, update the total records as 10 --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: bump minor version --------- Co-authored-by: Nakul Nagargade <nakul@tooljet.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: vjaris42 <vjy239@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 12:42:10 +00:00
className={cx('overflow-hidden', {
'btn-custom': hasCustomBackground,
Release: Appbuilder 1.7 (#9875) * Remove date-fns depedency from table datepicker * Revert Remove date-fns depedency from table datepicker * Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545) * fix: headers and action button UI on table (#9626) * fix: delete all children and nested children on component delete (#9182) * fix: delete all children and nested children on component delete * refactor: removed duplicate logics * refactor: reuse functions and remove duplicate functions * fix: update parentid of kanban modal child on version creation * fix: add kanban modal children to delete list * Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567) * chore: fixed vulnerability issues on FE (#9561) Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: Removed unused packages in FE (#9161) * Removed unused packages * Remove date-fns dependency drom table date picker (#9585) --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651) * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 * remove console logs * Add support to add Manual date entry in Datepicker table column (#9631) * Removed unused packages * Add Manual date entry in Datepicker table column * Remove date-fns dependency drom table date picker (#9585) * fix date input issue * Remove consoles --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650) * add: pin and collapsable functionality to pages sidebar * fix: review changes * fix: canvas auto update width on sidebar toggle * fix icon size * Add support to wrap table's column header (#9565) * Add support to wrap table's column header * Resolve code comments * commit * fix: resize page width on window resize (#9164) * feat: Button component revamp (#8361) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * button component revamped * fix :: csa * typo fix * typo * fix :: styling * exposed variables * fix padding * review fixes styles component panel * fix naming * fix padding * default size * fix :: icons position * updates * cleanup * updates events , csa * cleanup * remove border * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * disabled state * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * merge fixes * fix * updates * removing unwanted migrations * fix: box shadow * fix : import export issues * fix : colouring * cleanup * fixes * fix : design review comments * add border color * fix : review changes * fix * change display name to solid * fix label * fix : loader issue * fix : button icon position * fix : qa bugs * feat: Checkbox + Toggle revamp (#8519) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * feat : checkbox completed * update checkbox review changes * feat : toggle component * feat : added new toggle component * fix : colors * updated review changes * update name for old and new version * update * case change * update * update icon * removed padding from checkbox and toggle * fix naming * product review and bugfixes : changes * fix : checkbox setvalue action * Update setvalue action in toggle * fixed: section for legacy and new components * fix : checkbox tick mark not showing on resizing * fix : icon in inspector * fix : box shadow * fix : ismandatory definition * configs update --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * fix : toggle switch import and switch component issues (#9874) * fix : filter order of toggle (#9879) * fix: appbuilder 1.7 integration testing bug fixes (#9880) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Bugfixes componentes 1.7 (#9892) * fix : filter order of toggle (#9879) * fix : Button alignment when label is empty * fix : box shadow added * fix : direction and default box shadow * fix : disable csa not working for checkbox * fix : button padding * added toggle for box shadow check * fixes : integration 1.7 (#9901) * fix : exposed vars not getting exposed on page change * fix : validation error font * fix : dynamic color for button * fix : loading placement during CSA * Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * Move disabled, visibility, tooltip and box shadow to properties * Remove toggleswitch and button * Add down rollbackUpdates * fix : filter order of toggle (#9879) * fix merge issue * fix --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> * fix: use onMouseOver and onMouseLeave together to fix hover event * fix : Validation message to be shown only when use toggles on and off , code refactor (#9905) * Fix naming logic for copying (#9909) --------- Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com> * fix: update animateTransform for cross browser compatibility (#9917) * fix: color transitions on sidebar pages in dark mode (#9920) * Fix table all column editable (#9921) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Fix allColumns editable in Table * Fix clientServer nor working in Table * In widget config, update the total records as 10 --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: bump minor version --------- Co-authored-by: Nakul Nagargade <nakul@tooljet.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: vjaris42 <vjy239@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 12:42:10 +00:00
'jet-button ': type == 'primary',
'jet-outline-button ': type == 'outline',
})}
style={computedStyles}
onClick={handleClick}
data-cy={dataCy}
type="default"
Release: Appbuilder 1.7 (#9875) * Remove date-fns depedency from table datepicker * Revert Remove date-fns depedency from table datepicker * Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545) * fix: headers and action button UI on table (#9626) * fix: delete all children and nested children on component delete (#9182) * fix: delete all children and nested children on component delete * refactor: removed duplicate logics * refactor: reuse functions and remove duplicate functions * fix: update parentid of kanban modal child on version creation * fix: add kanban modal children to delete list * Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567) * chore: fixed vulnerability issues on FE (#9561) Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: Removed unused packages in FE (#9161) * Removed unused packages * Remove date-fns dependency drom table date picker (#9585) --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651) * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 * remove console logs * Add support to add Manual date entry in Datepicker table column (#9631) * Removed unused packages * Add Manual date entry in Datepicker table column * Remove date-fns dependency drom table date picker (#9585) * fix date input issue * Remove consoles --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650) * add: pin and collapsable functionality to pages sidebar * fix: review changes * fix: canvas auto update width on sidebar toggle * fix icon size * Add support to wrap table's column header (#9565) * Add support to wrap table's column header * Resolve code comments * commit * fix: resize page width on window resize (#9164) * feat: Button component revamp (#8361) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * button component revamped * fix :: csa * typo fix * typo * fix :: styling * exposed variables * fix padding * review fixes styles component panel * fix naming * fix padding * default size * fix :: icons position * updates * cleanup * updates events , csa * cleanup * remove border * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * disabled state * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * merge fixes * fix * updates * removing unwanted migrations * fix: box shadow * fix : import export issues * fix : colouring * cleanup * fixes * fix : design review comments * add border color * fix : review changes * fix * change display name to solid * fix label * fix : loader issue * fix : button icon position * fix : qa bugs * feat: Checkbox + Toggle revamp (#8519) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * feat : checkbox completed * update checkbox review changes * feat : toggle component * feat : added new toggle component * fix : colors * updated review changes * update name for old and new version * update * case change * update * update icon * removed padding from checkbox and toggle * fix naming * product review and bugfixes : changes * fix : checkbox setvalue action * Update setvalue action in toggle * fixed: section for legacy and new components * fix : checkbox tick mark not showing on resizing * fix : icon in inspector * fix : box shadow * fix : ismandatory definition * configs update --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * fix : toggle switch import and switch component issues (#9874) * fix : filter order of toggle (#9879) * fix: appbuilder 1.7 integration testing bug fixes (#9880) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Bugfixes componentes 1.7 (#9892) * fix : filter order of toggle (#9879) * fix : Button alignment when label is empty * fix : box shadow added * fix : direction and default box shadow * fix : disable csa not working for checkbox * fix : button padding * added toggle for box shadow check * fixes : integration 1.7 (#9901) * fix : exposed vars not getting exposed on page change * fix : validation error font * fix : dynamic color for button * fix : loading placement during CSA * Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * Move disabled, visibility, tooltip and box shadow to properties * Remove toggleswitch and button * Add down rollbackUpdates * fix : filter order of toggle (#9879) * fix merge issue * fix --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> * fix: use onMouseOver and onMouseLeave together to fix hover event * fix : Validation message to be shown only when use toggles on and off , code refactor (#9905) * Fix naming logic for copying (#9909) --------- Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com> * fix: update animateTransform for cross browser compatibility (#9917) * fix: color transitions on sidebar pages in dark mode (#9920) * Fix table all column editable (#9921) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Fix allColumns editable in Table * Fix clientServer nor working in Table * In widget config, update the total records as 10 --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: bump minor version --------- Co-authored-by: Nakul Nagargade <nakul@tooljet.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: vjaris42 <vjy239@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 12:42:10 +00:00
onMouseOver={() => {
//cannot use mouseEnter here since mouse enter does not trigger consistently. Mouseover gets triggered for all child components
setHovered(true);
}}
onMouseLeave={() => {
setHovered(false);
}}
>
Release: Appbuilder 1.7 (#9875) * Remove date-fns depedency from table datepicker * Revert Remove date-fns depedency from table datepicker * Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545) * fix: headers and action button UI on table (#9626) * fix: delete all children and nested children on component delete (#9182) * fix: delete all children and nested children on component delete * refactor: removed duplicate logics * refactor: reuse functions and remove duplicate functions * fix: update parentid of kanban modal child on version creation * fix: add kanban modal children to delete list * Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567) * chore: fixed vulnerability issues on FE (#9561) Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: Removed unused packages in FE (#9161) * Removed unused packages * Remove date-fns dependency drom table date picker (#9585) --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651) * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 * remove console logs * Add support to add Manual date entry in Datepicker table column (#9631) * Removed unused packages * Add Manual date entry in Datepicker table column * Remove date-fns dependency drom table date picker (#9585) * fix date input issue * Remove consoles --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650) * add: pin and collapsable functionality to pages sidebar * fix: review changes * fix: canvas auto update width on sidebar toggle * fix icon size * Add support to wrap table's column header (#9565) * Add support to wrap table's column header * Resolve code comments * commit * fix: resize page width on window resize (#9164) * feat: Button component revamp (#8361) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * button component revamped * fix :: csa * typo fix * typo * fix :: styling * exposed variables * fix padding * review fixes styles component panel * fix naming * fix padding * default size * fix :: icons position * updates * cleanup * updates events , csa * cleanup * remove border * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * disabled state * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * merge fixes * fix * updates * removing unwanted migrations * fix: box shadow * fix : import export issues * fix : colouring * cleanup * fixes * fix : design review comments * add border color * fix : review changes * fix * change display name to solid * fix label * fix : loader issue * fix : button icon position * fix : qa bugs * feat: Checkbox + Toggle revamp (#8519) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * feat : checkbox completed * update checkbox review changes * feat : toggle component * feat : added new toggle component * fix : colors * updated review changes * update name for old and new version * update * case change * update * update icon * removed padding from checkbox and toggle * fix naming * product review and bugfixes : changes * fix : checkbox setvalue action * Update setvalue action in toggle * fixed: section for legacy and new components * fix : checkbox tick mark not showing on resizing * fix : icon in inspector * fix : box shadow * fix : ismandatory definition * configs update --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * fix : toggle switch import and switch component issues (#9874) * fix : filter order of toggle (#9879) * fix: appbuilder 1.7 integration testing bug fixes (#9880) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Bugfixes componentes 1.7 (#9892) * fix : filter order of toggle (#9879) * fix : Button alignment when label is empty * fix : box shadow added * fix : direction and default box shadow * fix : disable csa not working for checkbox * fix : button padding * added toggle for box shadow check * fixes : integration 1.7 (#9901) * fix : exposed vars not getting exposed on page change * fix : validation error font * fix : dynamic color for button * fix : loading placement during CSA * Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * Move disabled, visibility, tooltip and box shadow to properties * Remove toggleswitch and button * Add down rollbackUpdates * fix : filter order of toggle (#9879) * fix merge issue * fix --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> * fix: use onMouseOver and onMouseLeave together to fix hover event * fix : Validation message to be shown only when use toggles on and off , code refactor (#9905) * Fix naming logic for copying (#9909) --------- Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com> * fix: update animateTransform for cross browser compatibility (#9917) * fix: color transitions on sidebar pages in dark mode (#9920) * Fix table all column editable (#9921) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Fix allColumns editable in Table * Fix clientServer nor working in Table * In widget config, update the total records as 10 --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: bump minor version --------- Co-authored-by: Nakul Nagargade <nakul@tooljet.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: vjaris42 <vjy239@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 12:42:10 +00:00
{!loading ? (
<div
style={{
height: '100%',
width: '100%',
display: !loading ? 'flex' : 'none',
alignItems: 'center',
flexDirection: direction == 'left' ? 'row-reverse' : 'row',
justifyContent: 'center',
gap: label?.length > 0 && '6px',
}}
>
<div
style={{
overflow: 'hidden',
}}
>
<span style={{ maxWidth: ' 100%', minWidth: '0' }}>
<p
className="tj-text-sm"
style={{ fontWeight: '500', margin: '0px', padding: '0px', color: computedTextColor }}
>
{label}
</p>
</span>
</div>
{iconVisibility && (
<div className="d-flex">
{!props.isResizing && !loading && (
<IconElement
style={{
width: '16px',
height: '16px',
color: computedIconColor,
}}
stroke={1.5}
/>
)}
</div>
)}
</div>
) : (
<Loader color={computedLoaderColor} width="16" />
)}
</button>
</div>
2021-04-30 06:31:32 +00:00
);
Release: Appbuilder 1.7 (#9875) * Remove date-fns depedency from table datepicker * Revert Remove date-fns depedency from table datepicker * Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545) * fix: headers and action button UI on table (#9626) * fix: delete all children and nested children on component delete (#9182) * fix: delete all children and nested children on component delete * refactor: removed duplicate logics * refactor: reuse functions and remove duplicate functions * fix: update parentid of kanban modal child on version creation * fix: add kanban modal children to delete list * Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567) * chore: fixed vulnerability issues on FE (#9561) Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: Removed unused packages in FE (#9161) * Removed unused packages * Remove date-fns dependency drom table date picker (#9585) --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651) * Fix Pagination and order of rows malfunction if default selected Id is not on page 1 * remove console logs * Add support to add Manual date entry in Datepicker table column (#9631) * Removed unused packages * Add Manual date entry in Datepicker table column * Remove date-fns dependency drom table date picker (#9585) * fix date input issue * Remove consoles --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650) * add: pin and collapsable functionality to pages sidebar * fix: review changes * fix: canvas auto update width on sidebar toggle * fix icon size * Add support to wrap table's column header (#9565) * Add support to wrap table's column header * Resolve code comments * commit * fix: resize page width on window resize (#9164) * feat: Button component revamp (#8361) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * button component revamped * fix :: csa * typo fix * typo * fix :: styling * exposed variables * fix padding * review fixes styles component panel * fix naming * fix padding * default size * fix :: icons position * updates * cleanup * updates events , csa * cleanup * remove border * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * disabled state * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * merge fixes * fix * updates * removing unwanted migrations * fix: box shadow * fix : import export issues * fix : colouring * cleanup * fixes * fix : design review comments * add border color * fix : review changes * fix * change display name to solid * fix label * fix : loader issue * fix : button icon position * fix : qa bugs * feat: Checkbox + Toggle revamp (#8519) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * feat : checkbox completed * update checkbox review changes * feat : toggle component * feat : added new toggle component * fix : colors * updated review changes * update name for old and new version * update * case change * update * update icon * removed padding from checkbox and toggle * fix naming * product review and bugfixes : changes * fix : checkbox setvalue action * Update setvalue action in toggle * fixed: section for legacy and new components * fix : checkbox tick mark not showing on resizing * fix : icon in inspector * fix : box shadow * fix : ismandatory definition * configs update --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * fix : toggle switch import and switch component issues (#9874) * fix : filter order of toggle (#9879) * fix: appbuilder 1.7 integration testing bug fixes (#9880) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Bugfixes componentes 1.7 (#9892) * fix : filter order of toggle (#9879) * fix : Button alignment when label is empty * fix : box shadow added * fix : direction and default box shadow * fix : disable csa not working for checkbox * fix : button padding * added toggle for box shadow check * fixes : integration 1.7 (#9901) * fix : exposed vars not getting exposed on page change * fix : validation error font * fix : dynamic color for button * fix : loading placement during CSA * Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * feat :: toggle switch revamp * init checkbox * fixes * fixes * switch fixes * validation fix * fixes * cleanup * height fix * fix height toggle * updates * fix :: icons position * updates * cleanup * updates events , csa * cleanup * backward compatibility * clean * backward compatibility fix * label fixed to one line * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * added onchange event for checkbox * fixes placeholder * few updates :: removing label in form * ui in form * fire onchange * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * fix * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * fix :: bugs regarding state update in checbox , slider , slider bug * update slider with radix slider * bugfix * update tooltip * fix toggle switch * fixes : inspector * fix : checkbox label * Move disabled, visibility, tooltip and box shadow to properties * Remove toggleswitch and button * Add down rollbackUpdates * fix : filter order of toggle (#9879) * fix merge issue * fix --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> * fix: use onMouseOver and onMouseLeave together to fix hover event * fix : Validation message to be shown only when use toggles on and off , code refactor (#9905) * Fix naming logic for copying (#9909) --------- Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com> * fix: update animateTransform for cross browser compatibility (#9917) * fix: color transitions on sidebar pages in dark mode (#9920) * Fix table all column editable (#9921) * fix: add only ids in deleted components map for component delete functionality * Fix TableRowHeightInput in codehinter (#9881) * fix: disable drag on calender popup and unblock other input interactions * Fix allColumns editable in Table * Fix clientServer nor working in Table * In widget config, update the total records as 10 --------- Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com> * chore: bump minor version --------- Co-authored-by: Nakul Nagargade <nakul@tooljet.com> Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com> Co-authored-by: vjaris42 <vjy239@gmail.com> Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 12:42:10 +00:00
return <>{renderButton()}</>;
};