2021-05-15 07:59:11 +00:00
|
|
|
import React, { useState } from 'react';
|
|
|
|
|
import { DraggableBox } from './DraggableBox';
|
|
|
|
|
import Fuse from 'fuse.js';
|
2021-09-01 13:11:17 +00:00
|
|
|
import { isEmpty } from 'lodash';
|
2022-09-14 08:04:49 +00:00
|
|
|
import { useTranslation } from 'react-i18next';
|
2023-06-29 10:00:10 +00:00
|
|
|
import { useAppVersionStore } from '@/_stores/appVersionStore';
|
|
|
|
|
import { shallow } from 'zustand/shallow';
|
2023-09-04 08:00:39 +00:00
|
|
|
import { SearchBox } from '@/_components';
|
2024-07-01 03:16:22 +00:00
|
|
|
import { LEGACY_ITEMS } from './WidgetManager/constants';
|
2021-05-15 07:59:11 +00:00
|
|
|
|
2024-01-16 06:06:44 +00:00
|
|
|
export const WidgetManager = function WidgetManager({ componentTypes, zoomLevel, darkMode, disabled }) {
|
2021-06-18 12:23:02 +00:00
|
|
|
const [filteredComponents, setFilteredComponents] = useState(componentTypes);
|
2021-11-15 06:19:27 +00:00
|
|
|
const [searchQuery, setSearchQuery] = useState('');
|
2022-09-14 08:04:49 +00:00
|
|
|
const { t } = useTranslation();
|
2023-06-29 10:00:10 +00:00
|
|
|
const { isVersionReleased } = useAppVersionStore(
|
|
|
|
|
(state) => ({
|
|
|
|
|
isVersionReleased: state.isVersionReleased,
|
|
|
|
|
}),
|
|
|
|
|
shallow
|
|
|
|
|
);
|
2021-11-15 06:19:27 +00:00
|
|
|
|
|
|
|
|
function handleSearchQueryChange(e) {
|
|
|
|
|
const { value } = e.target;
|
|
|
|
|
|
|
|
|
|
setSearchQuery(value);
|
|
|
|
|
filterComponents(value);
|
|
|
|
|
}
|
2021-05-15 07:59:11 +00:00
|
|
|
|
2021-06-18 12:23:02 +00:00
|
|
|
function filterComponents(value) {
|
2021-10-14 08:17:30 +00:00
|
|
|
if (value !== '') {
|
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 fuse = new Fuse(componentTypes, {
|
|
|
|
|
keys: ['displayName'],
|
|
|
|
|
shouldSort: true,
|
|
|
|
|
threshold: 0.4,
|
|
|
|
|
});
|
2021-06-18 12:23:02 +00:00
|
|
|
const results = fuse.search(value);
|
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
|
|
|
|
|
|
|
|
// Find the indices of ToggleSwitchLegacy and ToggleSwitch
|
|
|
|
|
const legacyIndex = componentTypes.findIndex((component) => component?.name === 'ToggleSwitchLegacy');
|
|
|
|
|
const toggleIndex = componentTypes.findIndex((component) => component?.name === 'ToggleSwitch');
|
|
|
|
|
|
|
|
|
|
// Swap the indices (if both are found)
|
|
|
|
|
if (legacyIndex !== -1 && toggleIndex !== -1) {
|
|
|
|
|
[componentTypes[legacyIndex], componentTypes[toggleIndex]] = [
|
|
|
|
|
componentTypes[toggleIndex],
|
|
|
|
|
componentTypes[legacyIndex],
|
|
|
|
|
];
|
|
|
|
|
}
|
2021-06-18 12:23:02 +00:00
|
|
|
setFilteredComponents(results.map((result) => result.item));
|
|
|
|
|
} else {
|
|
|
|
|
setFilteredComponents(componentTypes);
|
2021-05-15 07:59:11 +00:00
|
|
|
}
|
2021-06-18 12:23:02 +00:00
|
|
|
}
|
|
|
|
|
function renderComponentCard(component, index) {
|
2023-07-18 07:41:31 +00:00
|
|
|
return <DraggableBox key={index} index={index} component={component} zoomLevel={zoomLevel} />;
|
2021-06-18 12:23:02 +00:00
|
|
|
}
|
|
|
|
|
|
2021-09-01 13:11:17 +00:00
|
|
|
function renderList(header, items) {
|
|
|
|
|
if (isEmpty(items)) return null;
|
|
|
|
|
return (
|
2023-09-04 08:00:39 +00:00
|
|
|
<div className="component-card-group-container">
|
|
|
|
|
<span className="widget-header">{header}</span>
|
|
|
|
|
<div className="component-card-group-wrapper">
|
|
|
|
|
{items.map((component, i) => renderComponentCard(component, i))}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2021-09-01 13:11:17 +00:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function segregateSections() {
|
|
|
|
|
if (filteredComponents.length === 0) {
|
|
|
|
|
return (
|
2021-09-21 13:48:28 +00:00
|
|
|
<div className="empty">
|
2022-09-14 08:04:49 +00:00
|
|
|
<p className="empty-title">{t('widgetManager.noResults', 'No results found')}</p>
|
2021-10-11 09:36:04 +00:00
|
|
|
<p className={`empty-subtitle ${darkMode ? 'text-white-50' : 'text-secondary'}`}>
|
2022-09-14 08:04:49 +00:00
|
|
|
{t(
|
|
|
|
|
'widgetManager.tryAdjustingFilterMessage',
|
|
|
|
|
"Try adjusting your search or filter to find what you're looking for."
|
|
|
|
|
)}
|
2021-09-21 13:48:28 +00:00
|
|
|
</p>
|
2021-11-15 06:19:27 +00:00
|
|
|
<button
|
2023-09-04 08:00:39 +00:00
|
|
|
className=" btn-sm tj-tertiary-btn mt-3"
|
2021-11-15 06:19:27 +00:00
|
|
|
onClick={() => {
|
|
|
|
|
setFilteredComponents(componentTypes);
|
|
|
|
|
setSearchQuery('');
|
|
|
|
|
}}
|
|
|
|
|
>
|
2022-09-14 08:04:49 +00:00
|
|
|
{t('widgetManager.clearQuery', 'clear query')}
|
2021-11-15 06:19:27 +00:00
|
|
|
</button>
|
2021-09-01 13:11:17 +00:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
2022-09-14 08:04:49 +00:00
|
|
|
const commonSection = { title: t('widgetManager.commonlyUsed', 'commonly used'), items: [] };
|
|
|
|
|
const layoutsSection = { title: t('widgetManager.layouts', 'layouts'), items: [] };
|
|
|
|
|
const formSection = { title: t('widgetManager.forms', 'forms'), items: [] };
|
|
|
|
|
const integrationSection = { title: t('widgetManager.integrations', 'integrations'), items: [] };
|
|
|
|
|
const otherSection = { title: t('widgetManager.others', 'others'), items: [] };
|
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 legacySection = { title: 'Legacy', items: [] };
|
|
|
|
|
|
2022-03-15 06:46:46 +00:00
|
|
|
const allWidgets = [];
|
2021-09-01 13:11:17 +00:00
|
|
|
|
2024-04-19 07:37:46 +00:00
|
|
|
const commonItems = ['Table', 'Button', 'Text', 'TextInput', 'Datepicker', 'Form'];
|
2021-09-13 15:55:57 +00:00
|
|
|
const formItems = [
|
2023-12-11 09:46:03 +00:00
|
|
|
'Form',
|
2021-09-13 15:55:57 +00:00
|
|
|
'TextInput',
|
|
|
|
|
'NumberInput',
|
2021-12-23 16:49:57 +00:00
|
|
|
'PasswordInput',
|
2021-09-13 15:55:57 +00:00
|
|
|
'Textarea',
|
2021-12-23 16:49:57 +00:00
|
|
|
'ToggleSwitch',
|
2021-09-13 15:55:57 +00:00
|
|
|
'Dropdown',
|
|
|
|
|
'Multiselect',
|
|
|
|
|
'RichTextEditor',
|
|
|
|
|
'Checkbox',
|
2024-07-01 03:16:22 +00:00
|
|
|
'RadioButton',
|
2021-09-13 15:55:57 +00:00
|
|
|
'Datepicker',
|
2022-01-27 10:52:46 +00:00
|
|
|
'DateRangePicker',
|
|
|
|
|
'FilePicker',
|
2023-12-11 10:23:50 +00:00
|
|
|
'StarRating',
|
2021-09-13 15:55:57 +00:00
|
|
|
];
|
2021-09-01 13:11:17 +00:00
|
|
|
const integrationItems = ['Map'];
|
2022-01-27 10:52:46 +00:00
|
|
|
const layoutItems = ['Container', 'Listview', 'Tabs', 'Modal'];
|
2021-10-14 02:31:11 +00:00
|
|
|
filteredComponents.forEach((f) => {
|
2022-03-15 06:46:46 +00:00
|
|
|
if (searchQuery) allWidgets.push(f);
|
2021-09-01 13:11:17 +00:00
|
|
|
if (commonItems.includes(f.name)) commonSection.items.push(f);
|
2021-09-05 06:27:22 +00:00
|
|
|
if (formItems.includes(f.name)) formSection.items.push(f);
|
2021-09-01 13:11:17 +00:00
|
|
|
else if (integrationItems.includes(f.name)) integrationSection.items.push(f);
|
2024-07-01 03:16:22 +00:00
|
|
|
else if (LEGACY_ITEMS.includes(f.name)) legacySection.items.push(f);
|
2022-01-27 10:52:46 +00:00
|
|
|
else if (layoutItems.includes(f.name)) layoutsSection.items.push(f);
|
2021-09-01 13:11:17 +00:00
|
|
|
else otherSection.items.push(f);
|
|
|
|
|
});
|
|
|
|
|
|
2022-03-15 06:46:46 +00:00
|
|
|
if (allWidgets.length > 0) {
|
|
|
|
|
return <>{renderList(undefined, allWidgets)}</>;
|
|
|
|
|
} else {
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
{renderList(commonSection.title, commonSection.items)}
|
|
|
|
|
{renderList(layoutsSection.title, layoutsSection.items)}
|
|
|
|
|
{renderList(formSection.title, formSection.items)}
|
|
|
|
|
{renderList(otherSection.title, otherSection.items)}
|
|
|
|
|
{renderList(integrationSection.title, integrationSection.items)}
|
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
|
|
|
{renderList(legacySection.title, legacySection.items)}
|
2022-03-15 06:46:46 +00:00
|
|
|
</>
|
|
|
|
|
);
|
|
|
|
|
}
|
2021-09-01 13:11:17 +00:00
|
|
|
}
|
|
|
|
|
|
2021-06-18 12:23:02 +00:00
|
|
|
return (
|
2024-01-16 06:06:44 +00:00
|
|
|
<div className={`components-container ${(isVersionReleased || disabled) && 'disabled'}`}>
|
2023-09-04 08:00:39 +00:00
|
|
|
<p className="widgets-manager-header">Components</p>
|
|
|
|
|
<div className="input-icon tj-app-input">
|
|
|
|
|
<SearchBox
|
|
|
|
|
dataCy={`widget-search-box`}
|
|
|
|
|
initialValue={''}
|
|
|
|
|
callBack={(e) => handleSearchQueryChange(e)}
|
|
|
|
|
onClearCallback={() => {
|
|
|
|
|
setSearchQuery('');
|
|
|
|
|
filterComponents('');
|
|
|
|
|
}}
|
|
|
|
|
placeholder={t('globals.searchComponents', 'Search widgets')}
|
|
|
|
|
customClass={`tj-widgets-search-input tj-text-xsm`}
|
|
|
|
|
showClearButton={false}
|
|
|
|
|
width={266}
|
2021-06-18 12:23:02 +00:00
|
|
|
/>
|
|
|
|
|
</div>
|
2021-09-01 13:11:17 +00:00
|
|
|
<div className="widgets-list col-sm-12 col-lg-12 row">{segregateSections()}</div>
|
2021-05-15 07:59:11 +00:00
|
|
|
</div>
|
2021-06-18 12:23:02 +00:00
|
|
|
);
|
|
|
|
|
};
|