@qualtrics/ui-react 2.23.1-alpha.1 → 2.23.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__node_modules/style-inject/dist/style-inject.es.js +28 -0
- package/dist/__shared/cjs/index-d609f942.js +2058 -0
- package/dist/__shared/cjs/index-da3cbfe3.js +12502 -0
- package/dist/components/Accordion/Accordion.js +90 -0
- package/dist/components/Accordion/Accordion2.js +8 -0
- package/dist/components/Accordion/AccordionContext.js +13 -0
- package/dist/components/Accordion/AccordionHeader.js +72 -0
- package/dist/components/Accordion/AccordionPanel.js +30 -0
- package/dist/components/Accordion/AccordionSection.js +40 -0
- package/dist/components/Accordion/index.js +4 -0
- package/dist/components/Banner/Banner.css.js +21 -0
- package/dist/components/Banner/Banner.css.ts.vanilla.js +8 -0
- package/dist/components/Banner/Banner.js +105 -0
- package/dist/components/Banner/index.js +1 -0
- package/dist/components/BreakpointSwitch/Breakpoint.js +16 -0
- package/dist/components/BreakpointSwitch/BreakpointContext.js +9 -0
- package/dist/components/BreakpointSwitch/BreakpointSwitch.js +34 -0
- package/dist/components/BreakpointSwitch/index.js +2 -0
- package/dist/components/Button/Button.js +8 -0
- package/dist/components/Button/Button2.js +51 -0
- package/dist/components/Button/index.js +1 -0
- package/dist/components/ButtonGroup/ButtonGroup.js +40 -0
- package/dist/components/ButtonGroup/ButtonGroup2.js +8 -0
- package/dist/components/ButtonGroup/index.js +1 -0
- package/dist/components/Checkbox/Check.js +18 -0
- package/dist/components/Checkbox/Checkbox.js +54 -0
- package/dist/components/Checkbox/Checkbox2.js +8 -0
- package/dist/components/Checkbox/CheckboxField.js +42 -0
- package/dist/components/Checkbox/VisualCheckbox.js +31 -0
- package/dist/components/Checkbox/VisualCheckbox2.js +8 -0
- package/dist/components/Checkbox/index.js +2 -0
- package/dist/components/ColorPicker/Alpha.js +106 -0
- package/dist/components/ColorPicker/ColorPicker.js +306 -0
- package/dist/components/ColorPicker/ColorPicker2.js +8 -0
- package/dist/components/ColorPicker/ColorPickerFlyout.js +100 -0
- package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +204 -0
- package/dist/components/ColorPicker/Hue.js +107 -0
- package/dist/components/ColorPicker/Palette.js +137 -0
- package/dist/components/ColorPicker/Saturation.js +129 -0
- package/dist/components/ColorPicker/index.js +1 -0
- package/dist/components/ColorPicker/utils/calculateTargetId.js +43 -0
- package/dist/components/ColorPicker/utils/defaultColorPalette.js +57 -0
- package/dist/components/ColorPicker/utils/getMousePosition.js +20 -0
- package/dist/components/ColorPicker/utils/hexToHsv.js +44 -0
- package/dist/components/ColorPicker/utils/hexToRgb.js +12 -0
- package/dist/components/ColorPicker/utils/hexToRgbaString.js +10 -0
- package/dist/components/ColorPicker/utils/hsvToHex.js +58 -0
- package/dist/components/ColorPicker/utils/index.js +9 -0
- package/dist/components/ColorPicker/utils/rgbToHex.js +13 -0
- package/dist/components/ColorPicker/utils/validateHex.js +43 -0
- package/dist/components/Combobox/Combobox.js +455 -0
- package/dist/components/Combobox/Combobox2.js +8 -0
- package/dist/components/Combobox/ComboboxContext.js +9 -0
- package/dist/components/Combobox/ComboboxHeader.js +21 -0
- package/dist/components/Combobox/ComboboxIcon.js +47 -0
- package/dist/components/Combobox/ComboboxInput.js +90 -0
- package/dist/components/Combobox/ComboboxList.js +57 -0
- package/dist/components/Combobox/ComboboxOption.js +25 -0
- package/dist/components/Combobox/index.js +5 -0
- package/dist/components/ConfigPane/ConfigPane.js +176 -0
- package/dist/components/ConfigPane/ConfigPane2.js +8 -0
- package/dist/components/ConfigPane/constants.js +9 -0
- package/dist/components/ConfigPane/index.js +1 -0
- package/dist/components/Divider/Divider.js +18 -0
- package/dist/components/Divider/Divider2.js +8 -0
- package/dist/components/Divider/index.js +1 -0
- package/dist/components/Dropdown/ChildIndexContext/index.js +34 -0
- package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +178 -0
- package/dist/components/Dropdown/Dropdown.js +285 -0
- package/dist/components/Dropdown/Dropdown2.js +8 -0
- package/dist/components/Dropdown/DropdownButton.js +161 -0
- package/dist/components/Dropdown/DropdownContext.js +9 -0
- package/dist/components/Dropdown/DropdownHeader.js +32 -0
- package/dist/components/Dropdown/DropdownHeaderContext.js +9 -0
- package/dist/components/Dropdown/DropdownList.js +106 -0
- package/dist/components/Dropdown/DropdownOption.js +112 -0
- package/dist/components/Dropdown/DropdownSearch.js +108 -0
- package/dist/components/Dropdown/index.js +5 -0
- package/dist/components/FilePicker/FilePicker.js +119 -0
- package/dist/components/FilePicker/FilePicker2.js +8 -0
- package/dist/components/FilePicker/index.js +1 -0
- package/dist/components/FormField/Caption.js +8 -0
- package/dist/components/FormField/ErrorText.js +25 -0
- package/dist/components/FormField/FormField.js +64 -0
- package/dist/components/FormField/FormField2.js +8 -0
- package/dist/components/FormField/FormFieldContext.js +40 -0
- package/dist/components/FormField/HelperText.js +19 -0
- package/dist/components/FormField/ReadOnlyText.js +28 -0
- package/dist/components/FormField/index.js +3 -0
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +79 -0
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +8 -0
- package/dist/components/FullScreenTakeover/index.js +1 -0
- package/dist/components/Icon/Icon.js +52 -0
- package/dist/components/Icon/IconTypes.js +499 -0
- package/dist/components/Icon/index.js +2 -0
- package/dist/components/IconButton/IconButton.js +58 -0
- package/dist/components/IconButton/IconButton2.js +8 -0
- package/dist/components/IconButton/index.js +3 -0
- package/dist/components/InlineInput/InlineInput.js +131 -0
- package/dist/components/InlineInput/InlineInput2.js +8 -0
- package/dist/components/InlineInput/index.js +1 -0
- package/dist/components/Input/Input.js +59 -0
- package/dist/components/Input/Input2.js +8 -0
- package/dist/components/Input/InputField.js +57 -0
- package/dist/components/Input/index.js +2 -0
- package/dist/components/InputGroup/InputGroup.js +33 -0
- package/dist/components/InputGroup/InputGroup2.js +8 -0
- package/dist/components/InputGroup/InputGroupAddon.js +23 -0
- package/dist/components/InputGroup/InputGroupProvider.js +33 -0
- package/dist/components/InputGroup/index.js +2 -0
- package/dist/components/Label/Label.js +27 -0
- package/dist/components/Label/Label2.js +8 -0
- package/dist/components/Label/index.js +1 -0
- package/dist/components/Link/Link.js +25 -0
- package/dist/components/Link/Link2.js +8 -0
- package/dist/components/Link/index.js +1 -0
- package/dist/components/LoadingSpinner/LoadingSpinner.js +51 -0
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +8 -0
- package/dist/components/LoadingSpinner/index.js +1 -0
- package/dist/components/LogicEditor/ConditionContainer.js +33 -0
- package/dist/components/LogicEditor/ConditionSet.js +181 -0
- package/dist/components/LogicEditor/Controls.js +99 -0
- package/dist/components/LogicEditor/LogicEditor.js +126 -0
- package/dist/components/LogicEditor/LogicEditor2.js +8 -0
- package/dist/components/LogicEditor/LogicEditorContext.js +9 -0
- package/dist/components/LogicEditor/index.js +1 -0
- package/dist/components/LogicEditor/utils.js +140 -0
- package/dist/components/Modal/Modal.js +270 -0
- package/dist/components/Modal/Modal2.js +8 -0
- package/dist/components/Modal/ModalContext.js +9 -0
- package/dist/components/Modal/index.js +1 -0
- package/dist/components/NewMenu/BaseMenu.js +429 -0
- package/dist/components/NewMenu/Menu/Menu.js +24 -0
- package/dist/components/NewMenu/Menu/index.js +1 -0
- package/dist/components/NewMenu/NewMenu.js +8 -0
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +27 -0
- package/dist/components/NewMenu/SelectMenu/index.js +1 -0
- package/dist/components/NewMenu/index.js +3 -0
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +169 -0
- package/dist/components/NewMenu/parts/ArrowNav/index.js +1 -0
- package/dist/components/NewMenu/parts/MenuAnchor.js +55 -0
- package/dist/components/NewMenu/parts/MenuContext.js +9 -0
- package/dist/components/NewMenu/parts/MenuItem.js +64 -0
- package/dist/components/NewMenu/parts/MenuSearchBox.js +34 -0
- package/dist/components/NewMenu/parts/MenuSpinner.js +13 -0
- package/dist/components/NewMenu/parts/SubmenuAnchor.js +25 -0
- package/dist/components/NewMenu/parts/index.js +7 -0
- package/dist/components/NumberStepper/NumberStepper.js +284 -0
- package/dist/components/NumberStepper/NumberStepper2.js +8 -0
- package/dist/components/NumberStepper/NumberStepperContext.js +9 -0
- package/dist/components/NumberStepper/NumberStepperDecrement.js +65 -0
- package/dist/components/NumberStepper/NumberStepperIncrement.js +65 -0
- package/dist/components/NumberStepper/NumberStepperInput.js +136 -0
- package/dist/components/NumberStepper/index.js +4 -0
- package/dist/components/PageLayout/MainContent.js +17 -0
- package/dist/components/PageLayout/PageContainer.js +17 -0
- package/dist/components/PageLayout/PageHeader.js +17 -0
- package/dist/components/PageLayout/PageLayout.js +8 -0
- package/dist/components/PageLayout/index.js +3 -0
- package/dist/components/Pagination/Pagination.js +87 -0
- package/dist/components/Pagination/Pagination2.js +8 -0
- package/dist/components/Pagination/PaginationContext.js +9 -0
- package/dist/components/Pagination/PaginationNextButton.js +67 -0
- package/dist/components/Pagination/PaginationPageInput.js +125 -0
- package/dist/components/Pagination/PaginationPreviousButton.js +66 -0
- package/dist/components/Pagination/index.js +4 -0
- package/dist/components/Popover/Popover.js +126 -0
- package/dist/components/Popover/Popover2.js +8 -0
- package/dist/components/Popover/index.js +1 -0
- package/dist/components/QuickSearch/QuickSearch.js +66 -0
- package/dist/components/QuickSearch/QuickSearch2.js +8 -0
- package/dist/components/QuickSearch/QuickSearchInput.js +135 -0
- package/dist/components/QuickSearch/index.js +1 -0
- package/dist/components/Radio/Radio.js +61 -0
- package/dist/components/Radio/Radio2.js +8 -0
- package/dist/components/Radio/RadioGroup.js +34 -0
- package/dist/components/Radio/RadioGroupContext.js +9 -0
- package/dist/components/Radio/RadioOption.js +36 -0
- package/dist/components/Radio/index.js +3 -0
- package/dist/components/SearchInput/SearchInput.js +113 -0
- package/dist/components/SearchInput/SearchInput2.js +8 -0
- package/dist/components/SearchInput/index.js +3 -0
- package/dist/components/SidebarNav/ExpandCollapseButton.js +52 -0
- package/dist/components/SidebarNav/SidebarNav.js +69 -0
- package/dist/components/SidebarNav/SidebarNav2.js +8 -0
- package/dist/components/SidebarNav/SidebarNavContext.js +9 -0
- package/dist/components/SidebarNav/SidebarNavLink.js +59 -0
- package/dist/components/SidebarNav/constants.js +9 -0
- package/dist/components/SidebarNav/index.js +2 -0
- package/dist/components/Slider/RangeSlider.js +139 -0
- package/dist/components/Slider/Slider.js +137 -0
- package/dist/components/Slider/Slider2.js +8 -0
- package/dist/components/Slider/SliderButton.js +80 -0
- package/dist/components/Slider/index.js +2 -0
- package/dist/components/Switch/Switch.js +54 -0
- package/dist/components/Switch/Switch2.js +8 -0
- package/dist/components/Switch/SwitchField.js +42 -0
- package/dist/components/Switch/index.js +2 -0
- package/dist/components/Table/Table.js +18 -0
- package/dist/components/Table/Table2.js +8 -0
- package/dist/components/Table/TableBody.js +18 -0
- package/dist/components/Table/TableCell.js +18 -0
- package/dist/components/Table/TableHead.js +18 -0
- package/dist/components/Table/TableHeaderCell.js +18 -0
- package/dist/components/Table/TableRow.js +18 -0
- package/dist/components/Table/index.js +6 -0
- package/dist/components/Tabs/Tab.js +51 -0
- package/dist/components/Tabs/TabContextProvider.js +33 -0
- package/dist/components/Tabs/TabList.js +108 -0
- package/dist/components/Tabs/TabPanel.js +35 -0
- package/dist/components/Tabs/TabPanels.js +19 -0
- package/dist/components/Tabs/Tabs.js +37 -0
- package/dist/components/Tabs/Tabs2.js +8 -0
- package/dist/components/Tabs/index.js +5 -0
- package/dist/components/Tooltip/Tooltip.js +238 -0
- package/dist/components/Tooltip/Tooltip2.js +8 -0
- package/dist/components/Tooltip/index.js +1 -0
- package/dist/components/UIProvider/PortalTargetContext.js +19 -0
- package/dist/components/UIProvider/UIProvider.js +19 -0
- package/dist/components/UIProvider/index.js +2 -0
- package/dist/components/deprecated_ColorPicker/Alpha.js +90 -0
- package/dist/components/deprecated_ColorPicker/Color.js +275 -0
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +128 -0
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +8 -0
- package/dist/components/deprecated_ColorPicker/DEFAULT_SWATCH_COLORS.js +4 -0
- package/dist/components/deprecated_ColorPicker/HexInput.js +66 -0
- package/dist/components/deprecated_ColorPicker/Hue.js +87 -0
- package/dist/components/deprecated_ColorPicker/Saturation.js +120 -0
- package/dist/components/deprecated_ColorPicker/Swatch.js +30 -0
- package/dist/components/deprecated_ColorPicker/index.js +4 -0
- package/dist/components/deprecated_ColorPicker/isMouseEvent.js +5 -0
- package/dist/components/deprecated_ColorPicker/useMouseDrag.js +24 -0
- package/dist/components/deprecated_NumberStepper/NumberStepper.js +195 -0
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +8 -0
- package/dist/components/deprecated_NumberStepper/NumberStepperContext.js +9 -0
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +71 -0
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +71 -0
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +147 -0
- package/dist/components/deprecated_NumberStepper/index.js +6 -0
- package/dist/components/deprecated_Tabs/Tab.js +37 -0
- package/dist/components/deprecated_Tabs/TabContextProvider.js +9 -0
- package/dist/components/deprecated_Tabs/Tabs.js +131 -0
- package/dist/components/deprecated_Tabs/Tabs2.js +8 -0
- package/dist/components/deprecated_Tabs/index.js +4 -0
- package/dist/components/deprecated_Toolbar/IconButtonWithLabel.js +26 -0
- package/dist/components/deprecated_Toolbar/Toolbar.js +44 -0
- package/dist/components/deprecated_Toolbar/Toolbar2.js +8 -0
- package/dist/components/deprecated_Toolbar/ToolbarContext.js +9 -0
- package/dist/components/deprecated_Toolbar/ToolbarPanel.js +46 -0
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +140 -0
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +141 -0
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +150 -0
- package/dist/components/deprecated_Toolbar/index.js +7 -0
- package/dist/components/index.js +43 -0
- package/dist/hooks/index.js +19 -0
- package/dist/hooks/useBreakpoints/index.js +1 -0
- package/dist/hooks/useBreakpoints/useBreakpoints.js +46 -0
- package/dist/hooks/useClickOutside/index.js +1 -0
- package/dist/hooks/useClickOutside/useClickOutside.js +30 -0
- package/dist/hooks/useClickOutsidePortals/index.js +1 -0
- package/dist/hooks/useClickOutsidePortals/useClickOutsidePortals.js +34 -0
- package/dist/hooks/useControllableState/index.js +1 -0
- package/dist/hooks/useControllableState/useControllableState.js +88 -0
- package/dist/hooks/useDidUpdate/index.js +1 -0
- package/dist/hooks/useDidUpdate/useDidUpdate.js +30 -0
- package/dist/hooks/useEventCallback/index.js +1 -0
- package/dist/hooks/useEventCallback/useEventCallback.js +22 -0
- package/dist/hooks/useEventListener/index.js +1 -0
- package/dist/hooks/useEventListener/useEventListener.js +40 -0
- package/dist/hooks/useFocusSequence/index.js +1 -0
- package/dist/hooks/useFocusSequence/useFocusSequence.js +123 -0
- package/dist/hooks/useId/index.js +1 -0
- package/dist/hooks/useId/useId.js +14 -0
- package/dist/hooks/useIsFocused/index.js +1 -0
- package/dist/hooks/useIsFocused/useIsFocused.js +17 -0
- package/dist/hooks/useIsHovered/index.js +1 -0
- package/dist/hooks/useIsHovered/useIsHovered.js +17 -0
- package/dist/hooks/useIsTruncated/index.js +1 -0
- package/dist/hooks/useIsTruncated/useIsTruncated.js +40 -0
- package/dist/hooks/useLatest/index.js +1 -0
- package/dist/hooks/useLatest/useLatest.js +16 -0
- package/dist/hooks/useMounted/index.js +1 -0
- package/dist/hooks/useMounted/useMounted.js +20 -0
- package/dist/hooks/useMouseDrag/index.js +1 -0
- package/dist/hooks/useMouseDrag/useMouseDrag.js +29 -0
- package/dist/hooks/useOverlay/index.js +1 -0
- package/dist/hooks/useOverlay/useOverlay.js +68 -0
- package/dist/hooks/useOverlay/useOverlay2.js +8 -0
- package/dist/hooks/usePrevious/index.js +1 -0
- package/dist/hooks/usePrevious/usePrevious.js +16 -0
- package/dist/hooks/useResponsiveValue/index.js +1 -0
- package/dist/hooks/useResponsiveValue/useResponsiveValue.js +19 -0
- package/dist/hooks/useSSRLayoutEffect/index.js +1 -0
- package/dist/hooks/useSSRLayoutEffect/useSSRLayoutEffect.js +10 -0
- package/dist/hooks/useScreenReaderAnnouncement/index.js +1 -0
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +72 -0
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +8 -0
- package/dist/icons/Icon.js +8 -0
- package/dist/icons/components/ABCIcon.js +6 -0
- package/dist/icons/components/AIIcon.js +6 -0
- package/dist/icons/components/AccessibilityIcon.js +6 -0
- package/dist/icons/components/AccountIcon.js +6 -0
- package/dist/icons/components/AccountsTableIcon.js +6 -0
- package/dist/icons/components/ActionPlanningIcon.js +6 -0
- package/dist/icons/components/ActiveIcon.js +6 -0
- package/dist/icons/components/AddIcon.js +6 -0
- package/dist/icons/components/AddItemIcon.js +6 -0
- package/dist/icons/components/AddonsIcon.js +6 -0
- package/dist/icons/components/AdminGearsIcon.js +6 -0
- package/dist/icons/components/AgentLeftIcon.js +6 -0
- package/dist/icons/components/AgentPerformanceIcon.js +6 -0
- package/dist/icons/components/AgentRightIcon.js +6 -0
- package/dist/icons/components/AggregateFunctionIcon.js +6 -0
- package/dist/icons/components/AlignImageBottomIcon.js +6 -0
- package/dist/icons/components/AlignImageCenterIcon.js +6 -0
- package/dist/icons/components/AlignImageLeftIcon.js +6 -0
- package/dist/icons/components/AlignImageMiddleIcon.js +6 -0
- package/dist/icons/components/AlignImageRightIcon.js +6 -0
- package/dist/icons/components/AlignImageTopIcon.js +6 -0
- package/dist/icons/components/AlignTextBottomIcon.js +6 -0
- package/dist/icons/components/AlignTextLeftIcon.js +6 -0
- package/dist/icons/components/AlignTextRightIcon.js +6 -0
- package/dist/icons/components/AlignTextTopIcon.js +6 -0
- package/dist/icons/components/AnimationIcon.js +6 -0
- package/dist/icons/components/AreaChartIcon.js +6 -0
- package/dist/icons/components/ArrayIcon.js +6 -0
- package/dist/icons/components/ArrowDownIcon.js +6 -0
- package/dist/icons/components/ArrowLeftIcon.js +6 -0
- package/dist/icons/components/ArrowRightIcon.js +6 -0
- package/dist/icons/components/ArrowUpIcon.js +6 -0
- package/dist/icons/components/AssignUserIcon.js +6 -0
- package/dist/icons/components/AutomatedSetupIcon.js +6 -0
- package/dist/icons/components/BarChartIcon.js +6 -0
- package/dist/icons/components/BellIcon.js +6 -0
- package/dist/icons/components/BellSnoozeIcon.js +6 -0
- package/dist/icons/components/BenchmarkGraphIcon.js +6 -0
- package/dist/icons/components/BinderClipIcon.js +6 -0
- package/dist/icons/components/BinocularsIcon.js +6 -0
- package/dist/icons/components/BlogIcon.js +6 -0
- package/dist/icons/components/BookmarkFillIcon.js +6 -0
- package/dist/icons/components/BookmarkIcon.js +6 -0
- package/dist/icons/components/BooksIcon.js +6 -0
- package/dist/icons/components/BooleanIcon.js +6 -0
- package/dist/icons/components/BorderColorElement1Icon.js +6 -0
- package/dist/icons/components/BorderColorIcon.js +6 -0
- package/dist/icons/components/BranchContinueIcon.js +6 -0
- package/dist/icons/components/BranchEndIcon.js +6 -0
- package/dist/icons/components/BranchExtensionIcon.js +6 -0
- package/dist/icons/components/BubbleCashIcon.js +6 -0
- package/dist/icons/components/BubbleChartIcon.js +6 -0
- package/dist/icons/components/BubbleClockIcon.js +6 -0
- package/dist/icons/components/BubbleDotsIcon.js +6 -0
- package/dist/icons/components/BubbleHelpIcon.js +6 -0
- package/dist/icons/components/BubbleIcon.js +6 -0
- package/dist/icons/components/BubbleInfoIcon.js +6 -0
- package/dist/icons/components/BubbleTranslateIcon.js +6 -0
- package/dist/icons/components/BugsIcon.js +6 -0
- package/dist/icons/components/BusinessImpactIcon.js +6 -0
- package/dist/icons/components/ButtonIcon.js +6 -0
- package/dist/icons/components/BxLogoIcon.js +6 -0
- package/dist/icons/components/CalendarAddIcon.js +6 -0
- package/dist/icons/components/CalendarCheckIcon.js +6 -0
- package/dist/icons/components/CalendarIcon.js +6 -0
- package/dist/icons/components/CameraIcon.js +6 -0
- package/dist/icons/components/CaretDownIcon.js +6 -0
- package/dist/icons/components/CaretLeftIcon.js +6 -0
- package/dist/icons/components/CaretRightIcon.js +6 -0
- package/dist/icons/components/CaretUpIcon.js +6 -0
- package/dist/icons/components/CarryForwardChoicesIcon.js +6 -0
- package/dist/icons/components/CatalogIcon.js +6 -0
- package/dist/icons/components/CenterXIcon.js +6 -0
- package/dist/icons/components/CenterYIcon.js +6 -0
- package/dist/icons/components/Chart19Icon.js +6 -0
- package/dist/icons/components/ChartImpactIcon.js +6 -0
- package/dist/icons/components/ChartParetoIcon.js +6 -0
- package/dist/icons/components/ChartPolarIcon.js +6 -0
- package/dist/icons/components/CheckIcon.js +6 -0
- package/dist/icons/components/ChevronDownIcon.js +6 -0
- package/dist/icons/components/ChevronLeftIcon.js +6 -0
- package/dist/icons/components/ChevronRightIcon.js +6 -0
- package/dist/icons/components/ChevronSetIcon.js +6 -0
- package/dist/icons/components/ChevronSkipBackIcon.js +6 -0
- package/dist/icons/components/ChevronSkipForwardIcon.js +6 -0
- package/dist/icons/components/ChevronUpIcon.js +6 -0
- package/dist/icons/components/ClassIcon.js +6 -0
- package/dist/icons/components/ClearFormattingIcon.js +6 -0
- package/dist/icons/components/ClipboardIcon.js +6 -0
- package/dist/icons/components/ClockIcon.js +6 -0
- package/dist/icons/components/CloseCaptioningIcon.js +6 -0
- package/dist/icons/components/CloseIcon.js +6 -0
- package/dist/icons/components/ClosePanelLeftIcon.js +6 -0
- package/dist/icons/components/ClosePanelRightIcon.js +6 -0
- package/dist/icons/components/CloudyIcon.js +6 -0
- package/dist/icons/components/CoachingPrioritiesIcon.js +6 -0
- package/dist/icons/components/CodeBracketsIcon.js +6 -0
- package/dist/icons/components/CoffeeIcon.js +6 -0
- package/dist/icons/components/ColumnFilterIcon.js +6 -0
- package/dist/icons/components/ColumnsIcon.js +6 -0
- package/dist/icons/components/CommentsIcon.js +6 -0
- package/dist/icons/components/ConditionIcon.js +6 -0
- package/dist/icons/components/ConstantSumIcon.js +6 -0
- package/dist/icons/components/ContactIcon.js +6 -0
- package/dist/icons/components/ContactListIcon.js +6 -0
- package/dist/icons/components/ContactsIcon.js +6 -0
- package/dist/icons/components/ConversationAgentIcon.js +6 -0
- package/dist/icons/components/ConversationCustomerIcon.js +6 -0
- package/dist/icons/components/ConversationSilenceIcon.js +6 -0
- package/dist/icons/components/ConversionIcon.js +6 -0
- package/dist/icons/components/CopyIcon.js +6 -0
- package/dist/icons/components/CoreXMIcon.js +6 -0
- package/dist/icons/components/CreditCardIcon.js +6 -0
- package/dist/icons/components/CrossAnalyticsIcon.js +6 -0
- package/dist/icons/components/CustomMetricIcon.js +6 -0
- package/dist/icons/components/CustomerLeftIcon.js +6 -0
- package/dist/icons/components/CustomerRightIcon.js +6 -0
- package/dist/icons/components/CxLogoIcon.js +6 -0
- package/dist/icons/components/DashboardIcon.js +6 -0
- package/dist/icons/components/DataAnalysisIcon.js +6 -0
- package/dist/icons/components/DataSourceIcon.js +6 -0
- package/dist/icons/components/DatabaseIcon.js +6 -0
- package/dist/icons/components/DeadClickIcon.js +6 -0
- package/dist/icons/components/DecimalIcon.js +6 -0
- package/dist/icons/components/DefaultChoiceIcon.js +6 -0
- package/dist/icons/components/DeltaIcon.js +6 -0
- package/dist/icons/components/DeniedIcon.js +6 -0
- package/dist/icons/components/DescriptiveTextIcon.js +6 -0
- package/dist/icons/components/DesktopIcon.js +6 -0
- package/dist/icons/components/DetectedIcon.js +6 -0
- package/dist/icons/components/DiamondIcon.js +6 -0
- package/dist/icons/components/DirectoryIcon.js +6 -0
- package/dist/icons/components/DisplayLogicIcon.js +6 -0
- package/dist/icons/components/DistributionSummaryIcon.js +6 -0
- package/dist/icons/components/DocumentAlertIcon.js +6 -0
- package/dist/icons/components/DogIcon.js +6 -0
- package/dist/icons/components/DonutChartIcon.js +6 -0
- package/dist/icons/components/DownloadIcon.js +6 -0
- package/dist/icons/components/DownvoteFilledIcon.js +6 -0
- package/dist/icons/components/DownvoteIcon.js +6 -0
- package/dist/icons/components/DraftIcon.js +6 -0
- package/dist/icons/components/DragAndDropIcon.js +6 -0
- package/dist/icons/components/DragIcon.js +6 -0
- package/dist/icons/components/DrilldownIcon.js +6 -0
- package/dist/icons/components/DropIcon.js +6 -0
- package/dist/icons/components/EXCOVIDReturnToWorkIcon.js +6 -0
- package/dist/icons/components/EXCOVIDSolutionIcon.js +6 -0
- package/dist/icons/components/EditorGenericIcon.js +6 -0
- package/dist/icons/components/EffortEasyIcon.js +6 -0
- package/dist/icons/components/EffortHardIcon.js +6 -0
- package/dist/icons/components/EffortIcon.js +6 -0
- package/dist/icons/components/EffortMixedIcon.js +6 -0
- package/dist/icons/components/EffortNegativeIcon.js +6 -0
- package/dist/icons/components/EffortNeutralIcon.js +6 -0
- package/dist/icons/components/EffortPositiveIcon.js +6 -0
- package/dist/icons/components/EffortVeryEasyIcon.js +6 -0
- package/dist/icons/components/EffortVeryHardIcon.js +6 -0
- package/dist/icons/components/EllipsisHorizontalIcon.js +6 -0
- package/dist/icons/components/EllipsisVerticalIcon.js +6 -0
- package/dist/icons/components/EmojiColorAngryIcon.js +6 -0
- package/dist/icons/components/EmojiColorHappiestIcon.js +6 -0
- package/dist/icons/components/EmojiColorHappyIcon.js +6 -0
- package/dist/icons/components/EmojiColorNotGreatIcon.js +6 -0
- package/dist/icons/components/EmojiColorOKIcon.js +6 -0
- package/dist/icons/components/EmojiColorPrettyGoodIcon.js +6 -0
- package/dist/icons/components/EmojiColorSadIcon.js +6 -0
- package/dist/icons/components/EmojiColorUnhappyIcon.js +6 -0
- package/dist/icons/components/EmojiMonoAngryIcon.js +6 -0
- package/dist/icons/components/EmojiMonoHappiestIcon.js +6 -0
- package/dist/icons/components/EmojiMonoHappyIcon.js +6 -0
- package/dist/icons/components/EmojiMonoNotGreatIcon.js +6 -0
- package/dist/icons/components/EmojiMonoOKIcon.js +6 -0
- package/dist/icons/components/EmojiMonoPrettyGoodIcon.js +6 -0
- package/dist/icons/components/EmojiMonoUnhappyIcon.js +6 -0
- package/dist/icons/components/Employee360Icon.js +6 -0
- package/dist/icons/components/EmployeeAdHocIcon.js +6 -0
- package/dist/icons/components/EmployeeEngagementIcon.js +6 -0
- package/dist/icons/components/EmployeeLifecycleIcon.js +6 -0
- package/dist/icons/components/EmployeePulseIcon.js +6 -0
- package/dist/icons/components/EmptyBoxIcon.js +6 -0
- package/dist/icons/components/EnvelopeClosedIcon.js +6 -0
- package/dist/icons/components/EnvelopeOpenedIcon.js +6 -0
- package/dist/icons/components/EnvelopeOptedOutIcon.js +6 -0
- package/dist/icons/components/ErrorClickIcon.js +6 -0
- package/dist/icons/components/ErrorIcon.js +6 -0
- package/dist/icons/components/EventTriggerIcon.js +6 -0
- package/dist/icons/components/ExLogoIcon.js +6 -0
- package/dist/icons/components/ExampleProjectIcon.js +6 -0
- package/dist/icons/components/ExcludeIcon.js +6 -0
- package/dist/icons/components/ExclusiveAnswerIcon.js +6 -0
- package/dist/icons/components/ExternalLinkIcon.js +6 -0
- package/dist/icons/components/EyeDropperIcon.js +6 -0
- package/dist/icons/components/FastForwardIcon.js +6 -0
- package/dist/icons/components/FastReplyIcon.js +6 -0
- package/dist/icons/components/FeedbackIcon.js +6 -0
- package/dist/icons/components/FileAudioIcon.js +6 -0
- package/dist/icons/components/FileExcelIcon.js +6 -0
- package/dist/icons/components/FileIcon.js +6 -0
- package/dist/icons/components/FilePdfIcon.js +6 -0
- package/dist/icons/components/FilterIcon.js +6 -0
- package/dist/icons/components/FingerprintIcon.js +6 -0
- package/dist/icons/components/FireIcon.js +6 -0
- package/dist/icons/components/FlagIcon.js +6 -0
- package/dist/icons/components/FolderFullIcon.js +6 -0
- package/dist/icons/components/FolderIcon.js +6 -0
- package/dist/icons/components/FolderOpenFullIcon.js +6 -0
- package/dist/icons/components/FolderOpenIcon.js +6 -0
- package/dist/icons/components/FontSizeIcon.js +6 -0
- package/dist/icons/components/FormFieldIcon.js +6 -0
- package/dist/icons/components/GalleryIcon.js +6 -0
- package/dist/icons/components/GaugeChartIcon.js +6 -0
- package/dist/icons/components/GlobeIcon.js +6 -0
- package/dist/icons/components/GraphicSliderIcon.js +6 -0
- package/dist/icons/components/GridViewIcon.js +6 -0
- package/dist/icons/components/HamburgerMenuIcon.js +6 -0
- package/dist/icons/components/HeadphonesIcon.js +6 -0
- package/dist/icons/components/HeadsetIcon.js +6 -0
- package/dist/icons/components/HealthWellnessIcon.js +6 -0
- package/dist/icons/components/HeatMapIcon.js +6 -0
- package/dist/icons/components/HelpIcon.js +6 -0
- package/dist/icons/components/HighVolumeIcon.js +6 -0
- package/dist/icons/components/HighlightIcon.js +6 -0
- package/dist/icons/components/HistoryIcon.js +6 -0
- package/dist/icons/components/HomeIcon.js +6 -0
- package/dist/icons/components/HotspotIcon.js +6 -0
- package/dist/icons/components/HyperlinkIcon.js +6 -0
- package/dist/icons/components/IceCreamIcon.js +6 -0
- package/dist/icons/components/IgnoredIcon.js +6 -0
- package/dist/icons/components/ImageIcon.js +6 -0
- package/dist/icons/components/ImportedDataIcon.js +6 -0
- package/dist/icons/components/InactiveIcon.js +6 -0
- package/dist/icons/components/IncompleteTranslationsIcon.js +6 -0
- package/dist/icons/components/IndentMoreIcon.js +6 -0
- package/dist/icons/components/InformationIcon.js +6 -0
- package/dist/icons/components/InlineQuestionIcon.js +6 -0
- package/dist/icons/components/InsertLineIcon.js +6 -0
- package/dist/icons/components/IntegerIcon.js +6 -0
- package/dist/icons/components/IntegrationIcon.js +6 -0
- package/dist/icons/components/IntensityHighIcon.js +6 -0
- package/dist/icons/components/IntensityLowIcon.js +6 -0
- package/dist/icons/components/IntensityMediumIcon.js +6 -0
- package/dist/icons/components/InterceptIcon.js +6 -0
- package/dist/icons/components/JoinInnerIcon.js +6 -0
- package/dist/icons/components/JoinLeftOuterIcon.js +6 -0
- package/dist/icons/components/JoinOuterIcon.js +6 -0
- package/dist/icons/components/JoinRightOuterIcon.js +6 -0
- package/dist/icons/components/JourneyMapIcon.js +6 -0
- package/dist/icons/components/KeyboardIcon.js +6 -0
- package/dist/icons/components/LibrariesIcon.js +6 -0
- package/dist/icons/components/LibraryLinkIcon.js +6 -0
- package/dist/icons/components/LightBulbIcon.js +6 -0
- package/dist/icons/components/LightningBoltIcon.js +6 -0
- package/dist/icons/components/LineChartIcon.js +6 -0
- package/dist/icons/components/ListBulletsIcon.js +6 -0
- package/dist/icons/components/ListCheckedIcon.js +6 -0
- package/dist/icons/components/ListNumbersIcon.js +6 -0
- package/dist/icons/components/LocationIcon.js +6 -0
- package/dist/icons/components/LockIcon.js +6 -0
- package/dist/icons/components/LogicTreeIcon.js +6 -0
- package/dist/icons/components/LookAndFeelIcon.js +6 -0
- package/dist/icons/components/LoopAndMergeIcon.js +6 -0
- package/dist/icons/components/LowerCaseIcon.js +6 -0
- package/dist/icons/components/MailboxIcon.js +6 -0
- package/dist/icons/components/MarkerIcon.js +6 -0
- package/dist/icons/components/MatrixTableIcon.js +6 -0
- package/dist/icons/components/MaximizeIcon.js +6 -0
- package/dist/icons/components/MegaphoneIcon.js +6 -0
- package/dist/icons/components/MergeIcon.js +6 -0
- package/dist/icons/components/MetadataIcon.js +6 -0
- package/dist/icons/components/MicrophoneIcon.js +6 -0
- package/dist/icons/components/MicrophoneMuteIcon.js +6 -0
- package/dist/icons/components/MinimizeIcon.js +6 -0
- package/dist/icons/components/MobileLandscapeIcon.js +6 -0
- package/dist/icons/components/MobilePortraitIcon.js +6 -0
- package/dist/icons/components/ModelsIcon.js +6 -0
- package/dist/icons/components/MoonIcon.js +6 -0
- package/dist/icons/components/MouseThrashIcon.js +6 -0
- package/dist/icons/components/MouseTrailIcon.js +6 -0
- package/dist/icons/components/MoveIcon.js +6 -0
- package/dist/icons/components/MultipleChoiceIcon.js +6 -0
- package/dist/icons/components/MusicNoteIcon.js +6 -0
- package/dist/icons/components/NPSIcon.js +6 -0
- package/dist/icons/components/NewCustomerIcon.js +6 -0
- package/dist/icons/components/NewTemplateIcon.js +6 -0
- package/dist/icons/components/NewspaperIcon.js +6 -0
- package/dist/icons/components/NotInFlowIcon.js +6 -0
- package/dist/icons/components/NumbersIcon.js +6 -0
- package/dist/icons/components/ObjectIcon.js +6 -0
- package/dist/icons/components/OnlinePanelIcon.js +6 -0
- package/dist/icons/components/OpenPanelLeftIcon.js +6 -0
- package/dist/icons/components/OpenPanelRightIcon.js +6 -0
- package/dist/icons/components/OrgHierarchyIcon.js +6 -0
- package/dist/icons/components/OutboxIcon.js +6 -0
- package/dist/icons/components/OutdentIcon.js +6 -0
- package/dist/icons/components/PageBreakIcon.js +6 -0
- package/dist/icons/components/PagesIcon.js +6 -0
- package/dist/icons/components/PaginateFilterIcon.js +6 -0
- package/dist/icons/components/PaintBrushIcon.js +6 -0
- package/dist/icons/components/PaintBrushRoundIcon.js +6 -0
- package/dist/icons/components/PaintBucketIcon.js +6 -0
- package/dist/icons/components/PaperClipIcon.js +6 -0
- package/dist/icons/components/ParagraphIcon.js +6 -0
- package/dist/icons/components/ParticipantInviteAutomationIcon.js +6 -0
- package/dist/icons/components/ParticipantPortalIcon.js +6 -0
- package/dist/icons/components/PartlyCloudyIcon.js +6 -0
- package/dist/icons/components/PasswordLockIcon.js +6 -0
- package/dist/icons/components/PauseCircleIcon.js +6 -0
- package/dist/icons/components/PauseIcon.js +6 -0
- package/dist/icons/components/PencilIcon.js +6 -0
- package/dist/icons/components/PercentageIcon.js +6 -0
- package/dist/icons/components/PhoneIcon.js +6 -0
- package/dist/icons/components/PickGroupRankIcon.js +6 -0
- package/dist/icons/components/PieChartIcon.js +6 -0
- package/dist/icons/components/PinIcon.js +6 -0
- package/dist/icons/components/PinToIcon.js +6 -0
- package/dist/icons/components/PipedTextIcon.js +6 -0
- package/dist/icons/components/PlayIcon.js +6 -0
- package/dist/icons/components/PlaybookIcon.js +6 -0
- package/dist/icons/components/PodcastIcon.js +6 -0
- package/dist/icons/components/PointerHandCursorIcon.js +6 -0
- package/dist/icons/components/PortalConfigIcon.js +6 -0
- package/dist/icons/components/PostcardIcon.js +6 -0
- package/dist/icons/components/PowerIcon.js +6 -0
- package/dist/icons/components/PreIcon.js +6 -0
- package/dist/icons/components/PresentationIcon.js +6 -0
- package/dist/icons/components/PrinterIcon.js +6 -0
- package/dist/icons/components/Priority1Icon.js +6 -0
- package/dist/icons/components/Priority2Icon.js +6 -0
- package/dist/icons/components/Priority3Icon.js +6 -0
- package/dist/icons/components/Priority4Icon.js +6 -0
- package/dist/icons/components/PrivateDataIcon.js +6 -0
- package/dist/icons/components/ProgramIcon.js +6 -0
- package/dist/icons/components/ProjectBarIcon.js +6 -0
- package/dist/icons/components/ProjectIcon.js +6 -0
- package/dist/icons/components/PublishIcon.js +6 -0
- package/dist/icons/components/PxLogoIcon.js +6 -0
- package/dist/icons/components/QRCodeIcon.js +6 -0
- package/dist/icons/components/QuestionBlockIcon.js +6 -0
- package/dist/icons/components/QuoteBoxIcon.js +6 -0
- package/dist/icons/components/QuotesIcon.js +6 -0
- package/dist/icons/components/RSSIcon.js +6 -0
- package/dist/icons/components/RageClickIcon.js +6 -0
- package/dist/icons/components/RainyIcon.js +6 -0
- package/dist/icons/components/RaiseHandIcon.js +6 -0
- package/dist/icons/components/RecodedValuesIcon.js +6 -0
- package/dist/icons/components/RecordIcon.js +6 -0
- package/dist/icons/components/RedoIcon.js +6 -0
- package/dist/icons/components/ReferenceBlockIcon.js +6 -0
- package/dist/icons/components/RefreshIcon.js +6 -0
- package/dist/icons/components/RemoveItemIcon.js +6 -0
- package/dist/icons/components/RemoveLinkIcon.js +6 -0
- package/dist/icons/components/ReplyIcon.js +6 -0
- package/dist/icons/components/ReportIcon.js +6 -0
- package/dist/icons/components/ReputationManagementIcon.js +6 -0
- package/dist/icons/components/RetweetIcon.js +6 -0
- package/dist/icons/components/ReusableChoicesIcon.js +6 -0
- package/dist/icons/components/ReverseIcon.js +6 -0
- package/dist/icons/components/RhoIcon.js +6 -0
- package/dist/icons/components/RichTextEditorIcon.js +6 -0
- package/dist/icons/components/RiskIcon.js +6 -0
- package/dist/icons/components/RobotIcon.js +6 -0
- package/dist/icons/components/RolesIcon.js +6 -0
- package/dist/icons/components/SMSIcon.js +6 -0
- package/dist/icons/components/SatisfactionChartsIcon.js +6 -0
- package/dist/icons/components/SaveIcon.js +6 -0
- package/dist/icons/components/ScheduledIcon.js +6 -0
- package/dist/icons/components/SchemaDataIcon.js +6 -0
- package/dist/icons/components/SchemaEditorIcon.js +6 -0
- package/dist/icons/components/ScorecardIcon.js +6 -0
- package/dist/icons/components/ScreenCaptureIcon.js +6 -0
- package/dist/icons/components/SearchAddIcon.js +6 -0
- package/dist/icons/components/SearchIcon.js +6 -0
- package/dist/icons/components/SegmentIcon.js +6 -0
- package/dist/icons/components/SelectColumnIcon.js +6 -0
- package/dist/icons/components/SendIcon.js +6 -0
- package/dist/icons/components/SentenceCaseIcon.js +6 -0
- package/dist/icons/components/SentimentMixedIcon.js +6 -0
- package/dist/icons/components/SentimentNegativeIcon.js +6 -0
- package/dist/icons/components/SentimentNeutralIcon.js +6 -0
- package/dist/icons/components/SentimentPositiveIcon.js +6 -0
- package/dist/icons/components/SentimentVeryNegativeIcon.js +6 -0
- package/dist/icons/components/SentimentVeryPositiveIcon.js +6 -0
- package/dist/icons/components/SettingsIcon.js +6 -0
- package/dist/icons/components/ShareIcon.js +6 -0
- package/dist/icons/components/SharedFolderIcon.js +6 -0
- package/dist/icons/components/ShieldIcon.js +6 -0
- package/dist/icons/components/ShuffleIcon.js +6 -0
- package/dist/icons/components/SideBySideIcon.js +6 -0
- package/dist/icons/components/SignatureIcon.js +6 -0
- package/dist/icons/components/SkipBackIcon.js +6 -0
- package/dist/icons/components/SkipForwardIcon.js +6 -0
- package/dist/icons/components/SkipIcon.js +6 -0
- package/dist/icons/components/SliderIcon.js +6 -0
- package/dist/icons/components/SliderOptionsIcon.js +6 -0
- package/dist/icons/components/SmallCapsIcon.js +6 -0
- package/dist/icons/components/SocialResponseIcon.js +6 -0
- package/dist/icons/components/SortAlphabeticAscendingIcon.js +6 -0
- package/dist/icons/components/SortAlphabeticDescendingIcon.js +6 -0
- package/dist/icons/components/SortBothIcon.js +6 -0
- package/dist/icons/components/SortDownIcon.js +6 -0
- package/dist/icons/components/SortNumberAscendingIcon.js +6 -0
- package/dist/icons/components/SortNumberDescendingIcon.js +6 -0
- package/dist/icons/components/SortUpIcon.js +6 -0
- package/dist/icons/components/SparkleIcon.js +6 -0
- package/dist/icons/components/SpecialCharactersIcon.js +6 -0
- package/dist/icons/components/SpinnerIcon.js +6 -0
- package/dist/icons/components/SquareMinusIcon.js +6 -0
- package/dist/icons/components/SquarePlusIcon.js +6 -0
- package/dist/icons/components/StarFilledIcon.js +6 -0
- package/dist/icons/components/StarHalfIcon.js +6 -0
- package/dist/icons/components/StarOutlinedIcon.js +6 -0
- package/dist/icons/components/StarRankingIcon.js +6 -0
- package/dist/icons/components/StatsAnalysisIcon.js +6 -0
- package/dist/icons/components/StopRecordingIcon.js +6 -0
- package/dist/icons/components/StormyIcon.js +6 -0
- package/dist/icons/components/StrategicAccountsIcon.js +6 -0
- package/dist/icons/components/StudentIcon.js +6 -0
- package/dist/icons/components/SubscriptIcon.js +6 -0
- package/dist/icons/components/SubtractIcon.js +6 -0
- package/dist/icons/components/SuccessIcon.js +6 -0
- package/dist/icons/components/SumIcon.js +6 -0
- package/dist/icons/components/SunnyIcon.js +6 -0
- package/dist/icons/components/SuperscriptIcon.js +6 -0
- package/dist/icons/components/SurveyCompleteIcon.js +6 -0
- package/dist/icons/components/SurveyDirectorIcon.js +6 -0
- package/dist/icons/components/SurveyExpiredIcon.js +6 -0
- package/dist/icons/components/SurveyIQIcon.js +6 -0
- package/dist/icons/components/SurveyIcon.js +6 -0
- package/dist/icons/components/SurveyInviteIcon.js +6 -0
- package/dist/icons/components/TableAppendIcon.js +6 -0
- package/dist/icons/components/TableIcon.js +6 -0
- package/dist/icons/components/TabletIcon.js +6 -0
- package/dist/icons/components/TagIcon.js +6 -0
- package/dist/icons/components/TeacherIcon.js +6 -0
- package/dist/icons/components/TemplateIcon.js +6 -0
- package/dist/icons/components/TextAlignCenterIcon.js +6 -0
- package/dist/icons/components/TextAlignJustifiedIcon.js +6 -0
- package/dist/icons/components/TextAlignLeftIcon.js +6 -0
- package/dist/icons/components/TextAlignRightIcon.js +6 -0
- package/dist/icons/components/TextAnalysisIcon.js +6 -0
- package/dist/icons/components/TextBlockIcon.js +6 -0
- package/dist/icons/components/TextBoldIcon.js +6 -0
- package/dist/icons/components/TextBottomToTopIcon.js +6 -0
- package/dist/icons/components/TextColorIcon.js +6 -0
- package/dist/icons/components/TextColorLetterIcon.js +6 -0
- package/dist/icons/components/TextColorSwatchIcon.js +6 -0
- package/dist/icons/components/TextEntryIcon.js +6 -0
- package/dist/icons/components/TextItalicIcon.js +6 -0
- package/dist/icons/components/TextLeftToRightIcon.js +6 -0
- package/dist/icons/components/TextRightToLeftIcon.js +6 -0
- package/dist/icons/components/TextStrikeThroughIcon.js +6 -0
- package/dist/icons/components/TextUnderlineIcon.js +6 -0
- package/dist/icons/components/ThirdPartyQuestionIcon.js +6 -0
- package/dist/icons/components/ThreeSixtyProjectIcon.js +6 -0
- package/dist/icons/components/ThumbsDownIcon.js +6 -0
- package/dist/icons/components/ThumbsUpIcon.js +6 -0
- package/dist/icons/components/TicketsIcon.js +6 -0
- package/dist/icons/components/TimingIcon.js +6 -0
- package/dist/icons/components/ToolsIcon.js +6 -0
- package/dist/icons/components/TransactionIcon.js +6 -0
- package/dist/icons/components/TranslationIcon.js +6 -0
- package/dist/icons/components/TrashIcon.js +6 -0
- package/dist/icons/components/UndetectedIcon.js +6 -0
- package/dist/icons/components/UndoIcon.js +6 -0
- package/dist/icons/components/UnionIcon.js +6 -0
- package/dist/icons/components/UniqueLinkIcon.js +6 -0
- package/dist/icons/components/UnlinkIcon.js +6 -0
- package/dist/icons/components/UnlockIcon.js +6 -0
- package/dist/icons/components/UnpinIcon.js +6 -0
- package/dist/icons/components/UpDownIcon.js +6 -0
- package/dist/icons/components/UploadIcon.js +6 -0
- package/dist/icons/components/UpperCaseIcon.js +6 -0
- package/dist/icons/components/UpvoteFilledIcon.js +6 -0
- package/dist/icons/components/UpvoteIcon.js +6 -0
- package/dist/icons/components/UserGroupIcon.js +6 -0
- package/dist/icons/components/UserIcon.js +6 -0
- package/dist/icons/components/UserLockedIcon.js +6 -0
- package/dist/icons/components/ValidationIcon.js +6 -0
- package/dist/icons/components/VariableNamingIcon.js +6 -0
- package/dist/icons/components/VideoIcon.js +6 -0
- package/dist/icons/components/ViewOffIcon.js +6 -0
- package/dist/icons/components/ViewOnIcon.js +6 -0
- package/dist/icons/components/VocalizeDashboardIcon.js +6 -0
- package/dist/icons/components/VolumeIcon.js +6 -0
- package/dist/icons/components/VolumeLowIcon.js +6 -0
- package/dist/icons/components/VolumeMuteIcon.js +6 -0
- package/dist/icons/components/WaffleMenuIcon.js +6 -0
- package/dist/icons/components/WarningIcon.js +6 -0
- package/dist/icons/components/WebhookIcon.js +6 -0
- package/dist/icons/components/WhatsAppIcon.js +6 -0
- package/dist/icons/components/WidgetsIcon.js +6 -0
- package/dist/icons/components/WifiIcon.js +6 -0
- package/dist/icons/components/WorkflowsIcon.js +6 -0
- package/dist/icons/components/WorkingFromHomeIcon.js +6 -0
- package/dist/icons/createIconComponent.js +41 -0
- package/dist/icons/index.d.ts +1004 -0
- package/dist/icons/index.es.js +496 -0
- package/dist/icons/index.js +505 -0
- package/dist/index.d.ts +2100 -0
- package/dist/index.es.js +106 -0
- package/dist/index.js +128 -0
- package/dist/next/AdvancedTable/AdvancedTable.js +920 -0
- package/dist/next/AdvancedTable/AdvancedTable2.js +8 -0
- package/dist/next/AdvancedTable/AdvancedTableCell.js +104 -0
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +57 -0
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +330 -0
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +141 -0
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaders.js +24 -0
- package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +35 -0
- package/dist/next/AdvancedTable/AdvancedTableHiddenDescription.js +20 -0
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +36 -0
- package/dist/next/AdvancedTable/AdvancedTableRow.js +37 -0
- package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +50 -0
- package/dist/next/AdvancedTable/AdvancedTableTypes.js +18 -0
- package/dist/next/AdvancedTable/index.js +3 -0
- package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +171 -0
- package/dist/next/AdvancedTable/useComputedWidth.js +9 -0
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +133 -0
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +8 -0
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInputIconButton.js +30 -0
- package/dist/next/CollapsibleSearchInput/index.js +1 -0
- package/dist/next/Combobox/Combobox.js +85 -0
- package/dist/next/Combobox/Combobox2.js +8 -0
- package/dist/next/Combobox/ComboboxContext.js +9 -0
- package/dist/next/Combobox/ComboboxFlyout.js +53 -0
- package/dist/next/Combobox/ComboboxGroup.js +55 -0
- package/dist/next/Combobox/ComboboxGroupContext.js +19 -0
- package/dist/next/Combobox/ComboboxInput.js +154 -0
- package/dist/next/Combobox/ComboboxOption.js +76 -0
- package/dist/next/Combobox/hooks/index.js +7 -0
- package/dist/next/Combobox/hooks/useComboboxFilteredGroup/index.js +1 -0
- package/dist/next/Combobox/hooks/useComboboxFilteredGroup/useComboboxFilteredGroup.js +43 -0
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/index.js +1 -0
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +290 -0
- package/dist/next/Combobox/hooks/useComboboxLoadingState/index.js +1 -0
- package/dist/next/Combobox/hooks/useComboboxLoadingState/useComboboxLoadingState.js +56 -0
- package/dist/next/Combobox/hooks/useComboboxValue/index.js +1 -0
- package/dist/next/Combobox/hooks/useComboboxValue/useComboboxValue.js +35 -0
- package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/index.js +1 -0
- package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js +54 -0
- package/dist/next/Combobox/hooks/useSelectedOptionScroll/index.js +1 -0
- package/dist/next/Combobox/hooks/useSelectedOptionScroll/useSelectedOptionScroll.js +32 -0
- package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/index.js +1 -0
- package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +28 -0
- package/dist/next/Combobox/index.js +5 -0
- package/dist/next/Combobox/utils/index.js +1 -0
- package/dist/next/Combobox/utils/nodeRegistration/index.js +1 -0
- package/dist/next/Combobox/utils/nodeRegistration/nodeRegistration.js +35 -0
- package/dist/next/Drawer/Drawer.js +134 -0
- package/dist/next/Drawer/Drawer2.js +8 -0
- package/dist/next/Drawer/index.js +1 -0
- package/dist/next/FilterAnchor/FilterAnchor.js +101 -0
- package/dist/next/FilterAnchor/FilterAnchor2.js +8 -0
- package/dist/next/FilterAnchor/index.js +1 -0
- package/dist/next/Input/Input.js +75 -0
- package/dist/next/Input/Input2.js +8 -0
- package/dist/next/Input/index.js +1 -0
- package/dist/next/Menu/Menu.js +90 -0
- package/dist/next/Menu/Menu2.js +8 -0
- package/dist/next/Menu/MenuButton.js +64 -0
- package/dist/next/Menu/MenuContext.js +39 -0
- package/dist/next/Menu/MenuItem.js +81 -0
- package/dist/next/Menu/MenuPane.js +178 -0
- package/dist/next/Menu/MenuSearch.js +37 -0
- package/dist/next/Menu/SubMenu.js +208 -0
- package/dist/next/Menu/constants.js +19 -0
- package/dist/next/Menu/index.js +5 -0
- package/dist/next/Menu/useCSSVariable.js +10 -0
- package/dist/next/Menu/useMutationObserver.js +17 -0
- package/dist/next/Menu/usePaneSearch.js +126 -0
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +121 -0
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +8 -0
- package/dist/next/PhoneNumberInput/index.js +1 -0
- package/dist/next/SplitButton/SplitButton.js +96 -0
- package/dist/next/SplitButton/SplitButton2.js +8 -0
- package/dist/next/SplitButton/SplitButtonOption.js +22 -0
- package/dist/next/SplitButton/index.js +2 -0
- package/dist/next/Stack/HStack.js +11 -0
- package/dist/next/Stack/Stack.js +95 -0
- package/dist/next/Stack/StackItem.js +37 -0
- package/dist/next/Stack/VStack.js +11 -0
- package/dist/next/Stack/index.js +3 -0
- package/dist/next/TimePicker/TimeDropdown.js +77 -0
- package/dist/next/TimePicker/TimeInput.js +86 -0
- package/dist/next/TimePicker/TimePicker.js +234 -0
- package/dist/next/TimePicker/TimePicker2.js +8 -0
- package/dist/next/TimePicker/TimePickerIcon.js +35 -0
- package/dist/next/TimePicker/index.js +1 -0
- package/dist/next/TimePicker/utils.js +176 -0
- package/dist/next/ToggleButton/ToggleButton.js +74 -0
- package/dist/next/ToggleButton/ToggleButtonGroup.js +40 -0
- package/dist/next/ToggleButton/ToggleButtonGroupContext.js +9 -0
- package/dist/next/ToggleButton/index.js +2 -0
- package/dist/next/ToggleButton/styles.js +8 -0
- package/dist/next/index.d.ts +471 -0
- package/dist/next/index.es.js +38 -0
- package/dist/next/index.js +4988 -0
- package/dist/translations-en.js +69 -0
- package/dist/utils/Flyout/Flyout.js +58 -0
- package/dist/utils/Flyout/Flyout2.js +8 -0
- package/dist/utils/Flyout/FlyoutHeader.js +24 -0
- package/dist/utils/Flyout/FlyoutOption.js +31 -0
- package/dist/utils/Flyout/index.js +3 -0
- package/dist/utils/Popper/Popper.js +191 -0
- package/dist/utils/Popper/Popper2.js +8 -0
- package/dist/utils/Popper/PopperContext.js +11 -0
- package/dist/utils/Popper/index.js +1 -0
- package/dist/utils/Portal/Portal.js +26 -0
- package/dist/utils/Portal/index.js +1 -0
- package/dist/utils/Text/Text.js +38 -0
- package/dist/utils/Text/index.js +1 -0
- package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +50 -0
- package/dist/utils/TextOverflowTooltip/index.js +1 -0
- package/dist/utils/Translation/Translate.js +65 -0
- package/dist/utils/Translation/TranslationProvider.js +26 -0
- package/dist/utils/Translation/containsComponentOrElement.js +22 -0
- package/dist/utils/Translation/index.js +3 -0
- package/dist/utils/Translation/insertPlaceholders.js +13 -0
- package/dist/utils/Translation/useTranslation.js +50 -0
- package/dist/utils/canUseDOM/canUseDOM.js +9 -0
- package/dist/utils/canUseDOM/index.js +1 -0
- package/dist/utils/concatIds/concatIds.js +13 -0
- package/dist/utils/concatIds/index.js +1 -0
- package/dist/utils/constants.js +25 -0
- package/dist/utils/createContextUtilities/createContextUtilities.js +19 -0
- package/dist/utils/createContextUtilities/index.js +1 -0
- package/dist/utils/filterChildren/filterChildren.js +53 -0
- package/dist/utils/filterChildren/index.js +1 -0
- package/dist/utils/getSubDataTestId/getSubDataTestId.js +14 -0
- package/dist/utils/getSubDataTestId/index.js +1 -0
- package/dist/utils/index.js +16 -0
- package/dist/utils/mediaQueryManager/index.js +1 -0
- package/dist/utils/mediaQueryManager/mediaQueryManager.js +48 -0
- package/dist/utils/mergeRefs/index.js +1 -0
- package/dist/utils/mergeRefs/mergeRefs.js +27 -0
- package/dist/utils/sharedTypes.js +1 -0
- package/dist/utils/wrapAround/index.js +1 -0
- package/dist/utils/wrapAround/wrapAround.js +23 -0
- package/dist/utils/wrapEvent/index.js +1 -0
- package/dist/utils/wrapEvent/wrapEvent.js +18 -0
- package/icons/package.json +24 -0
- package/next/package.json +27 -0
- package/package.json +1 -1
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import React__default, { useMemo, useCallback } from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import styles from './LogicEditor2.js';
|
|
4
|
+
import { LOGIC_TYPE_CONDITION, LOGIC_TYPE_SET, SET_VALUE_ANY, SET_VALUE_ALL } from './utils.js';
|
|
5
|
+
import ConditionContainer from './ConditionContainer.js';
|
|
6
|
+
import '../Dropdown/index.js';
|
|
7
|
+
import { useLogicEditorContext } from './LogicEditorContext.js';
|
|
8
|
+
import Controls from './Controls.js';
|
|
9
|
+
import '../../hooks/index.js';
|
|
10
|
+
import '../../utils/index.js';
|
|
11
|
+
import useEventListener from '../../hooks/useEventListener/useEventListener.js';
|
|
12
|
+
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
13
|
+
import Dropdown from '../Dropdown/Dropdown.js';
|
|
14
|
+
import DropdownButton from '../Dropdown/DropdownButton.js';
|
|
15
|
+
import DropdownList from '../Dropdown/DropdownList.js';
|
|
16
|
+
import DropdownOption from '../Dropdown/DropdownOption.js';
|
|
17
|
+
|
|
18
|
+
const ConditionSet = function ConditionSet(_ref) {
|
|
19
|
+
let {
|
|
20
|
+
level,
|
|
21
|
+
index,
|
|
22
|
+
parent,
|
|
23
|
+
value,
|
|
24
|
+
firstFocusableElementRef
|
|
25
|
+
} = _ref;
|
|
26
|
+
const {
|
|
27
|
+
fixedSet,
|
|
28
|
+
onNewLogicItem,
|
|
29
|
+
onSetChange,
|
|
30
|
+
translations,
|
|
31
|
+
readOnly,
|
|
32
|
+
rootDataTestId
|
|
33
|
+
} = useLogicEditorContext();
|
|
34
|
+
const position = useMemo(() => ({
|
|
35
|
+
parent,
|
|
36
|
+
index
|
|
37
|
+
}), [parent, index]);
|
|
38
|
+
const conditionRef = React__default.useRef(null);
|
|
39
|
+
const lastConnectionRef = React__default.useRef();
|
|
40
|
+
const lastItemRef = React__default.useRef();
|
|
41
|
+
function setupLastLine() {
|
|
42
|
+
if (lastConnectionRef.current && conditionRef.current && lastItemRef.current) {
|
|
43
|
+
let {
|
|
44
|
+
height
|
|
45
|
+
} = conditionRef.current.getBoundingClientRect();
|
|
46
|
+
const {
|
|
47
|
+
height: lastItemHeight
|
|
48
|
+
} = lastItemRef.current.getBoundingClientRect();
|
|
49
|
+
if (lastItemHeight > 52) {
|
|
50
|
+
height -= lastItemHeight - 52;
|
|
51
|
+
if (fixedSet) {
|
|
52
|
+
height -= 18;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if (fixedSet) {
|
|
56
|
+
lastConnectionRef.current.style.height = "".concat(height - 38, "px");
|
|
57
|
+
lastConnectionRef.current.style.top = "-".concat(height - 56, "px");
|
|
58
|
+
} else {
|
|
59
|
+
lastConnectionRef.current.style.height = "".concat(height - 18, "px");
|
|
60
|
+
lastConnectionRef.current.style.top = "-".concat(height - 52, "px");
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
useEventListener(window, 'resize', setupLastLine);
|
|
65
|
+
React__default.useLayoutEffect(setupLastLine);
|
|
66
|
+
const handleNewLogicItem = useCallback((item, newItemIndex) => {
|
|
67
|
+
onNewLogicItem(item, {
|
|
68
|
+
parent: position,
|
|
69
|
+
index: newItemIndex
|
|
70
|
+
});
|
|
71
|
+
}, [position, onNewLogicItem]);
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Returns a data-testid unique to the current position in the tree.
|
|
75
|
+
* @param prefix - A string that is injected between the root data-testid and the index list.
|
|
76
|
+
* @returns A `-` separated string of indices where the left-most number is the root index and the right-most number is the index of the current controls menu. The string is prefixed with the root data-testid and the string passed to `prefix`;
|
|
77
|
+
*/
|
|
78
|
+
const getDataTestId = useCallback((prefix, elementPosition) => {
|
|
79
|
+
const indices = [elementPosition.index];
|
|
80
|
+
let currentParent = elementPosition.parent;
|
|
81
|
+
while (currentParent) {
|
|
82
|
+
indices.unshift(currentParent.index);
|
|
83
|
+
currentParent = currentParent.parent;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Fixed sets still include a root index (which would account for a set dropdown that doesn't actually exist) so the root index is removed from the list
|
|
87
|
+
if (fixedSet) {
|
|
88
|
+
indices.shift();
|
|
89
|
+
}
|
|
90
|
+
return getSubDataTestId(rootDataTestId, "".concat(prefix, "-").concat(indices.join('-')));
|
|
91
|
+
}, [fixedSet, rootDataTestId]);
|
|
92
|
+
function renderControls(itemType, itemPosition, itemLevel, numberOfSetItems, itemId) {
|
|
93
|
+
return /*#__PURE__*/React__default.createElement(Controls, {
|
|
94
|
+
handleNewLogicItem: handleNewLogicItem,
|
|
95
|
+
itemType: itemType,
|
|
96
|
+
parent: itemPosition.parent,
|
|
97
|
+
itemIndex: itemPosition.index,
|
|
98
|
+
itemLevel: itemLevel,
|
|
99
|
+
numberOfSetItems: numberOfSetItems,
|
|
100
|
+
itemId: itemId,
|
|
101
|
+
"data-testid": getDataTestId('condition-actions', itemPosition)
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
const renderSetChildren = () => value.conditions.map((item, i, items) => {
|
|
105
|
+
let itemConnectionRef;
|
|
106
|
+
let itemRef;
|
|
107
|
+
if (i === items.length - 1) {
|
|
108
|
+
if (lastConnectionRef.current) {
|
|
109
|
+
// Remove previous last-line styles
|
|
110
|
+
lastConnectionRef.current.style.height = '';
|
|
111
|
+
lastConnectionRef.current.style.top = '';
|
|
112
|
+
}
|
|
113
|
+
itemConnectionRef = lastConnectionRef;
|
|
114
|
+
itemRef = lastItemRef;
|
|
115
|
+
}
|
|
116
|
+
if (item.logicType === LOGIC_TYPE_CONDITION) {
|
|
117
|
+
const conditionPosition = {
|
|
118
|
+
parent: position,
|
|
119
|
+
index: i
|
|
120
|
+
};
|
|
121
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
122
|
+
role: "group",
|
|
123
|
+
key: item.id,
|
|
124
|
+
className: styles.branch,
|
|
125
|
+
ref: itemRef
|
|
126
|
+
}, (!fixedSet || value.conditions.length > 1) && /*#__PURE__*/React__default.createElement("span", {
|
|
127
|
+
className: styles.connection,
|
|
128
|
+
ref: itemConnectionRef
|
|
129
|
+
}), /*#__PURE__*/React__default.createElement(ConditionContainer, {
|
|
130
|
+
position: conditionPosition,
|
|
131
|
+
condition: item,
|
|
132
|
+
firstFocusableElementRef: fixedSet && firstFocusableElementRef && i === 0 ? firstFocusableElementRef : undefined,
|
|
133
|
+
conditionControls: !readOnly ? renderControls(LOGIC_TYPE_CONDITION, conditionPosition, level + 1, value.conditions.length, item.id) : undefined
|
|
134
|
+
}));
|
|
135
|
+
}
|
|
136
|
+
if (item.logicType === LOGIC_TYPE_SET) {
|
|
137
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
138
|
+
key: item.id,
|
|
139
|
+
className: styles.branch,
|
|
140
|
+
ref: itemRef
|
|
141
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
142
|
+
className: styles.connection,
|
|
143
|
+
ref: itemConnectionRef
|
|
144
|
+
}), /*#__PURE__*/React__default.createElement(ConditionSet, {
|
|
145
|
+
value: item,
|
|
146
|
+
level: level + 1,
|
|
147
|
+
index: i,
|
|
148
|
+
parent: position
|
|
149
|
+
}));
|
|
150
|
+
}
|
|
151
|
+
return undefined;
|
|
152
|
+
});
|
|
153
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
154
|
+
className: classNames(styles.set, {
|
|
155
|
+
[styles.fixedSet]: !!fixedSet
|
|
156
|
+
})
|
|
157
|
+
}, !fixedSet && /*#__PURE__*/React__default.createElement("div", {
|
|
158
|
+
className: styles.setWrapper
|
|
159
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
160
|
+
disabled: readOnly,
|
|
161
|
+
defaultValue: value.value,
|
|
162
|
+
onChange: v => onSetChange(v, position)
|
|
163
|
+
}, /*#__PURE__*/React__default.createElement(DropdownButton, {
|
|
164
|
+
"data-testid": getDataTestId('set-dropdown', {
|
|
165
|
+
parent,
|
|
166
|
+
index
|
|
167
|
+
}),
|
|
168
|
+
ref: firstFocusableElementRef
|
|
169
|
+
}), /*#__PURE__*/React__default.createElement(DropdownList, null, /*#__PURE__*/React__default.createElement(DropdownOption, {
|
|
170
|
+
value: SET_VALUE_ANY,
|
|
171
|
+
label: String(translations.any)
|
|
172
|
+
}), /*#__PURE__*/React__default.createElement(DropdownOption, {
|
|
173
|
+
value: SET_VALUE_ALL,
|
|
174
|
+
label: String(translations.all)
|
|
175
|
+
}))), !readOnly && renderControls(LOGIC_TYPE_SET, position, level, value.conditions.length, value.id)), /*#__PURE__*/React__default.createElement("div", {
|
|
176
|
+
role: "group",
|
|
177
|
+
ref: conditionRef
|
|
178
|
+
}, renderSetChildren()));
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
export { ConditionSet as default };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import React__default, { useMemo } from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import styles from './LogicEditor2.js';
|
|
4
|
+
import '../../icons/index.es.js';
|
|
5
|
+
import { LOGIC_TYPE_CONDITION, LOGIC_TYPE_SET, newCondition, newConditionSet } from './utils.js';
|
|
6
|
+
import '../NewMenu/index.js';
|
|
7
|
+
import '../IconButton/index.js';
|
|
8
|
+
import { useLogicEditorContext } from './LogicEditorContext.js';
|
|
9
|
+
import Menu from '../NewMenu/Menu/Menu.js';
|
|
10
|
+
import IconButton from '../IconButton/IconButton.js';
|
|
11
|
+
import EllipsisHorizontalIcon from '../../icons/components/EllipsisHorizontalIcon.js';
|
|
12
|
+
import MenuItem from '../NewMenu/parts/MenuItem.js';
|
|
13
|
+
import AddItemIcon from '../../icons/components/AddItemIcon.js';
|
|
14
|
+
import FilterIcon from '../../icons/components/FilterIcon.js';
|
|
15
|
+
import RemoveItemIcon from '../../icons/components/RemoveItemIcon.js';
|
|
16
|
+
|
|
17
|
+
const Controls = function Controls(_ref) {
|
|
18
|
+
let {
|
|
19
|
+
handleNewLogicItem,
|
|
20
|
+
itemType,
|
|
21
|
+
parent,
|
|
22
|
+
itemIndex,
|
|
23
|
+
itemLevel,
|
|
24
|
+
itemId,
|
|
25
|
+
numberOfSetItems,
|
|
26
|
+
'data-testid': dataTestId
|
|
27
|
+
} = _ref;
|
|
28
|
+
const {
|
|
29
|
+
translations,
|
|
30
|
+
fixedSet,
|
|
31
|
+
onDelete,
|
|
32
|
+
defaultSetValue,
|
|
33
|
+
maxNestedSets,
|
|
34
|
+
maxConditions,
|
|
35
|
+
controlsRef
|
|
36
|
+
} = useLogicEditorContext();
|
|
37
|
+
const canAddNewSet = useMemo(() => {
|
|
38
|
+
// If "insert condition set below" is clicked on a logic item's control, it's added at the same level.
|
|
39
|
+
// If "insert condition set below" is clicked on a logic set's control, it's added a level deeper.
|
|
40
|
+
const levelOfNewSet = itemType === LOGIC_TYPE_CONDITION ? itemLevel : itemLevel + 1;
|
|
41
|
+
return !fixedSet && levelOfNewSet <= maxNestedSets;
|
|
42
|
+
}, [fixedSet, itemLevel, maxNestedSets, itemType]);
|
|
43
|
+
const indexOfNewItem = useMemo(() => itemType === LOGIC_TYPE_SET ? 0 : itemIndex + 1, [itemType, itemIndex]);
|
|
44
|
+
const menu = useMemo(() => /*#__PURE__*/React__default.createElement(Menu, {
|
|
45
|
+
anchor: /*#__PURE__*/React__default.createElement(IconButton, {
|
|
46
|
+
"aria-label": translations.conditionActions,
|
|
47
|
+
className: styles.controls,
|
|
48
|
+
"data-testid": dataTestId
|
|
49
|
+
}, /*#__PURE__*/React__default.createElement(EllipsisHorizontalIcon, null)),
|
|
50
|
+
ref: node => {
|
|
51
|
+
if (node) {
|
|
52
|
+
controlsRef.current[itemId] = node;
|
|
53
|
+
} else {
|
|
54
|
+
controlsRef.current[itemId] = null;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}, !(fixedSet && maxConditions && numberOfSetItems >= maxConditions) && /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
58
|
+
value: "add-condition",
|
|
59
|
+
onSelect: () => handleNewLogicItem(newCondition(), indexOfNewItem)
|
|
60
|
+
}, /*#__PURE__*/React__default.createElement(AddItemIcon, {
|
|
61
|
+
"aria-hidden": "true"
|
|
62
|
+
}), /*#__PURE__*/React__default.createElement("span", {
|
|
63
|
+
className: styles.controlMenuItem
|
|
64
|
+
}, translations.insertConditionBelow)), canAddNewSet && /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
65
|
+
value: "add-set",
|
|
66
|
+
onSelect: () => handleNewLogicItem(newConditionSet(defaultSetValue), indexOfNewItem)
|
|
67
|
+
}, /*#__PURE__*/React__default.createElement(FilterIcon, {
|
|
68
|
+
"aria-hidden": "true"
|
|
69
|
+
}), /*#__PURE__*/React__default.createElement("span", {
|
|
70
|
+
className: styles.controlMenuItem
|
|
71
|
+
}, translations.insertSetBelow)), (fixedSet && numberOfSetItems > 1 || !fixedSet && itemLevel > 0) && /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
72
|
+
value: "delete",
|
|
73
|
+
onSelect: e => {
|
|
74
|
+
onDelete({
|
|
75
|
+
parent,
|
|
76
|
+
index: itemIndex
|
|
77
|
+
});
|
|
78
|
+
// We want to move focus to the previous control
|
|
79
|
+
// item when this one is deleted, so we need to
|
|
80
|
+
// prevent Menu's default focus behavior
|
|
81
|
+
e.preventDefault();
|
|
82
|
+
}
|
|
83
|
+
}, /*#__PURE__*/React__default.createElement(RemoveItemIcon, {
|
|
84
|
+
"aria-hidden": "true"
|
|
85
|
+
}), /*#__PURE__*/React__default.createElement("span", {
|
|
86
|
+
className: styles.controlMenuItem
|
|
87
|
+
}, translations.delete))), [
|
|
88
|
+
// context
|
|
89
|
+
translations, fixedSet, onDelete, defaultSetValue, maxConditions, controlsRef,
|
|
90
|
+
// props
|
|
91
|
+
handleNewLogicItem, parent, itemIndex, itemLevel, itemId, numberOfSetItems, dataTestId, canAddNewSet, indexOfNewItem]);
|
|
92
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
93
|
+
className: classNames({
|
|
94
|
+
[styles.conditionControlsContainer]: itemType === LOGIC_TYPE_CONDITION
|
|
95
|
+
})
|
|
96
|
+
}, menu);
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export { Controls as default };
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import React__default, { useMemo, useState, useCallback, useRef } from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import styles from './LogicEditor2.js';
|
|
5
|
+
import ConditionSet from './ConditionSet.js';
|
|
6
|
+
import { SET_VALUE_ANY, constructValidDefaultState, shallowCopy, getParentSet, getPreviousItemId } from './utils.js';
|
|
7
|
+
import { LogicEditorContextProvider } from './LogicEditorContext.js';
|
|
8
|
+
import '../../utils/index.js';
|
|
9
|
+
import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
10
|
+
|
|
11
|
+
const LogicEditor = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
12
|
+
let {
|
|
13
|
+
className,
|
|
14
|
+
conditionTemplate,
|
|
15
|
+
defaultSetValue = SET_VALUE_ANY,
|
|
16
|
+
defaultValue,
|
|
17
|
+
fixedSet,
|
|
18
|
+
onChange,
|
|
19
|
+
readOnly = false,
|
|
20
|
+
maxNestedSets = 2,
|
|
21
|
+
maxConditions,
|
|
22
|
+
firstFocusableElementRef,
|
|
23
|
+
'data-testid': dataTestId,
|
|
24
|
+
...rest
|
|
25
|
+
} = _ref;
|
|
26
|
+
const {
|
|
27
|
+
translate
|
|
28
|
+
} = useTranslation();
|
|
29
|
+
const translations = useMemo(() => ({
|
|
30
|
+
any: translate('logicEditor.any'),
|
|
31
|
+
all: translate('logicEditor.all'),
|
|
32
|
+
insertConditionBelow: translate('logicEditor.insertConditionBelow'),
|
|
33
|
+
insertSetBelow: translate('logicEditor.insertSetBelow'),
|
|
34
|
+
delete: translate('logicEditor.delete'),
|
|
35
|
+
conditionActions: translate('logicEditor.conditionActions')
|
|
36
|
+
}), [translate]);
|
|
37
|
+
const [state, setState] = useState(constructValidDefaultState({
|
|
38
|
+
defaultValue,
|
|
39
|
+
defaultSetValue,
|
|
40
|
+
fixedSet,
|
|
41
|
+
maxNestedSets
|
|
42
|
+
}));
|
|
43
|
+
const classes = classNames(className, styles.editor);
|
|
44
|
+
const update = useCallback(setStateCallback => {
|
|
45
|
+
setState(prevState => {
|
|
46
|
+
const newState = setStateCallback(prevState);
|
|
47
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newState);
|
|
48
|
+
return newState;
|
|
49
|
+
});
|
|
50
|
+
}, [onChange]);
|
|
51
|
+
const handleNewLogicItem = useCallback((item, position) => {
|
|
52
|
+
update(prevState => {
|
|
53
|
+
const newState = shallowCopy(prevState);
|
|
54
|
+
const parent = getParentSet(newState, position);
|
|
55
|
+
parent.conditions.splice(position.index, 0, item);
|
|
56
|
+
return newState;
|
|
57
|
+
});
|
|
58
|
+
}, [update]);
|
|
59
|
+
const handleSetChange = (newSetValue, position) => {
|
|
60
|
+
update(prevState => {
|
|
61
|
+
const rootState = shallowCopy(prevState);
|
|
62
|
+
const parent = getParentSet(rootState, position);
|
|
63
|
+
if (!position.parent) {
|
|
64
|
+
// root set
|
|
65
|
+
parent.value = newSetValue;
|
|
66
|
+
} else {
|
|
67
|
+
parent.conditions[position.index].value = newSetValue;
|
|
68
|
+
}
|
|
69
|
+
return rootState;
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
const handleConditionChange = (newCondition, position) => {
|
|
73
|
+
update(prevState => {
|
|
74
|
+
const newState = shallowCopy(prevState);
|
|
75
|
+
const parent = getParentSet(newState, position);
|
|
76
|
+
parent.conditions[position.index] = newCondition;
|
|
77
|
+
return newState;
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
const controlsRef = useRef({});
|
|
81
|
+
const handleDelete = useCallback(position => {
|
|
82
|
+
update(prevState => {
|
|
83
|
+
let previousItemId = getPreviousItemId(prevState, position);
|
|
84
|
+
const newState = shallowCopy(prevState);
|
|
85
|
+
const parent = getParentSet(newState, position);
|
|
86
|
+
parent.conditions.splice(position.index, 1);
|
|
87
|
+
|
|
88
|
+
// If the last condition in a set was deleted, also delete the set.
|
|
89
|
+
if (parent.conditions.length === 0) {
|
|
90
|
+
previousItemId = getPreviousItemId(newState, position.parent);
|
|
91
|
+
getParentSet(newState, position.parent).conditions.splice(position.parent.index, 1);
|
|
92
|
+
}
|
|
93
|
+
controlsRef.current[previousItemId].focus();
|
|
94
|
+
return newState;
|
|
95
|
+
});
|
|
96
|
+
}, [update, controlsRef]);
|
|
97
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
|
98
|
+
role: "group",
|
|
99
|
+
className: classes,
|
|
100
|
+
ref: ref,
|
|
101
|
+
"data-testid": dataTestId
|
|
102
|
+
}), /*#__PURE__*/React__default.createElement(LogicEditorContextProvider, {
|
|
103
|
+
value: {
|
|
104
|
+
onNewLogicItem: handleNewLogicItem,
|
|
105
|
+
onSetChange: handleSetChange,
|
|
106
|
+
onConditionChange: handleConditionChange,
|
|
107
|
+
onDelete: handleDelete,
|
|
108
|
+
defaultSetValue,
|
|
109
|
+
fixedSet,
|
|
110
|
+
conditionTemplate,
|
|
111
|
+
translations,
|
|
112
|
+
maxNestedSets,
|
|
113
|
+
maxConditions,
|
|
114
|
+
readOnly,
|
|
115
|
+
rootDataTestId: dataTestId,
|
|
116
|
+
controlsRef
|
|
117
|
+
}
|
|
118
|
+
}, /*#__PURE__*/React__default.createElement(ConditionSet, {
|
|
119
|
+
value: state,
|
|
120
|
+
level: 0,
|
|
121
|
+
index: 0,
|
|
122
|
+
firstFocusableElementRef: firstFocusableElementRef
|
|
123
|
+
})));
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
export { LogicEditor as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
+
|
|
3
|
+
var css_248z = "._LjLea{width:100%}._kZvpq{display:flex;align-items:center}._-mbh6{display:flex;flex-wrap:wrap;grid-gap:4px}._-mbh6 :nth-last-child(2){margin-right:42px}._HSDHp{position:relative;padding-left:32px;padding-top:16px;display:flex}._7yi1r ._HSDHp{padding-top:0;padding-left:16px}._7yi1r ._HSDHp+._HSDHp{margin-top:16px}._DhAWv{position:absolute;left:16px;top:0;height:34px;width:16px;border-left:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;border-bottom-left-radius:4px}._7yi1r ._HSDHp:first-of-type ._DhAWv{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._7yi1r ._DhAWv{top:-16px;left:0}._7yi1r ._HSDHp:not(:first-of-type):not(:last-of-type) ._DhAWv{border-bottom-left-radius:0}._SvVJq{margin-left:-46px}._Bhnx9{margin:0 2px 0 4px}._Bhnx9.focus-visible,._Bhnx9:focus-visible{outline-width:2px}._B0QBq{margin-left:4px}";
|
|
4
|
+
var styles = {"set":"_LjLea","setWrapper":"_kZvpq","condition":"_-mbh6","branch":"_HSDHp","fixedSet":"_7yi1r","connection":"_DhAWv","conditionControlsContainer":"_SvVJq","controls":"_Bhnx9","controlMenuItem":"_B0QBq"};
|
|
5
|
+
var stylesheet="._LjLea{width:100%}._kZvpq{display:flex;align-items:center}._-mbh6{display:flex;flex-wrap:wrap;grid-gap:4px}._-mbh6 :nth-last-child(2){margin-right:42px}._HSDHp{position:relative;padding-left:32px;padding-top:16px;display:flex}._7yi1r ._HSDHp{padding-top:0;padding-left:16px}._7yi1r ._HSDHp+._HSDHp{margin-top:16px}._DhAWv{position:absolute;left:16px;top:0;height:34px;width:16px;border-left:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;border-bottom-left-radius:4px}._7yi1r ._HSDHp:first-of-type ._DhAWv{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._7yi1r ._DhAWv{top:-16px;left:0}._7yi1r ._HSDHp:not(:first-of-type):not(:last-of-type) ._DhAWv{border-bottom-left-radius:0}._SvVJq{margin-left:-46px}._Bhnx9{margin:0 2px 0 4px}._Bhnx9.focus-visible,._Bhnx9:focus-visible{outline-width:2px}._B0QBq{margin-left:4px}";
|
|
6
|
+
if(typeof window !== 'undefined' || typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
|
+
|
|
8
|
+
export { styles as default, stylesheet };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../../utils/index.js';
|
|
2
|
+
import createContextUtilities from '../../utils/createContextUtilities/createContextUtilities.js';
|
|
3
|
+
|
|
4
|
+
const {
|
|
5
|
+
Provider: LogicEditorContextProvider,
|
|
6
|
+
useContext: useLogicEditorContext
|
|
7
|
+
} = createContextUtilities();
|
|
8
|
+
|
|
9
|
+
export { LogicEditorContextProvider, useLogicEditorContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LogicEditor } from './LogicEditor.js';
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
2
|
+
const LOGIC_TYPE_CONDITION = 'condition';
|
|
3
|
+
const LOGIC_TYPE_SET = 'set';
|
|
4
|
+
const SET_VALUE_ANY = 'any';
|
|
5
|
+
const SET_VALUE_ALL = 'all';
|
|
6
|
+
function constructValidDefaultState(_ref) {
|
|
7
|
+
let {
|
|
8
|
+
defaultValue,
|
|
9
|
+
defaultSetValue,
|
|
10
|
+
fixedSet,
|
|
11
|
+
maxNestedSets
|
|
12
|
+
} = _ref;
|
|
13
|
+
let clone;
|
|
14
|
+
if (defaultValue) {
|
|
15
|
+
clone = deepCopy(defaultValue);
|
|
16
|
+
} else {
|
|
17
|
+
clone = newConditionSet(defaultSetValue);
|
|
18
|
+
}
|
|
19
|
+
let internalMaxNestedSets = maxNestedSets;
|
|
20
|
+
if (fixedSet) {
|
|
21
|
+
internalMaxNestedSets = 0;
|
|
22
|
+
}
|
|
23
|
+
ensureFixedSetHasOneCondition(clone, fixedSet);
|
|
24
|
+
pruneSets(clone, 0, internalMaxNestedSets);
|
|
25
|
+
assignIdentifiersAndSetValues(clone, defaultSetValue);
|
|
26
|
+
return clone;
|
|
27
|
+
}
|
|
28
|
+
function fixedSetHasNoConditions(defaultValue, fixedSet) {
|
|
29
|
+
var _defaultValue$conditi;
|
|
30
|
+
return fixedSet && defaultValue && (!(defaultValue !== null && defaultValue !== void 0 && defaultValue.conditions) || !((defaultValue === null || defaultValue === void 0 || (_defaultValue$conditi = defaultValue.conditions) === null || _defaultValue$conditi === void 0 ? void 0 : _defaultValue$conditi.length) >= 1));
|
|
31
|
+
}
|
|
32
|
+
function ensureFixedSetHasOneCondition(defaultValue, fixedSet) {
|
|
33
|
+
if (fixedSetHasNoConditions(defaultValue, fixedSet)) {
|
|
34
|
+
// eslint-disable-next-line no-param-reassign
|
|
35
|
+
defaultValue.conditions = [newCondition()];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function pruneSets(set, level, maxNestedSets) {
|
|
39
|
+
if (level === maxNestedSets) {
|
|
40
|
+
// eslint-disable-next-line no-param-reassign
|
|
41
|
+
set.conditions = set.conditions.filter(condition => condition.logicType !== LOGIC_TYPE_SET);
|
|
42
|
+
} else {
|
|
43
|
+
set.conditions.forEach(condition => {
|
|
44
|
+
if (condition.logicType === LOGIC_TYPE_SET) {
|
|
45
|
+
pruneSets(condition, level + 1, maxNestedSets);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function uuidv4() {
|
|
51
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => {
|
|
52
|
+
// eslint-disable-next-line no-bitwise
|
|
53
|
+
const r = Math.random() * 16 | 0;
|
|
54
|
+
// eslint-disable-next-line no-bitwise
|
|
55
|
+
const v = c === 'x' ? r : r & 0x3 | 0x8;
|
|
56
|
+
return v.toString(16);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function deepCopy(object) {
|
|
60
|
+
return JSON.parse(JSON.stringify(object));
|
|
61
|
+
}
|
|
62
|
+
function shallowCopy(object) {
|
|
63
|
+
return {
|
|
64
|
+
...object
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function newCondition() {
|
|
68
|
+
return {
|
|
69
|
+
id: uuidv4(),
|
|
70
|
+
logicType: LOGIC_TYPE_CONDITION
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function newConditionSet(value) {
|
|
74
|
+
return {
|
|
75
|
+
id: uuidv4(),
|
|
76
|
+
logicType: LOGIC_TYPE_SET,
|
|
77
|
+
value,
|
|
78
|
+
conditions: [newCondition()]
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function assignIdentifiersAndSetValues(tree, defaultSetValue) {
|
|
82
|
+
const queue = [];
|
|
83
|
+
queue.push(tree);
|
|
84
|
+
while (queue.length > 0) {
|
|
85
|
+
const node = queue.pop();
|
|
86
|
+
if (!node.id) {
|
|
87
|
+
node.id = uuidv4();
|
|
88
|
+
}
|
|
89
|
+
if (node.logicType === LOGIC_TYPE_SET && !node.value) {
|
|
90
|
+
node.value = defaultSetValue;
|
|
91
|
+
}
|
|
92
|
+
if (node.conditions) {
|
|
93
|
+
queue.push(...node.conditions);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return tree;
|
|
97
|
+
}
|
|
98
|
+
function walkToRoot(position) {
|
|
99
|
+
let root = {
|
|
100
|
+
level: position.level,
|
|
101
|
+
index: position.index
|
|
102
|
+
};
|
|
103
|
+
for (let current = position.parent; current; current = current.parent) {
|
|
104
|
+
root = {
|
|
105
|
+
level: current.level,
|
|
106
|
+
index: current.index,
|
|
107
|
+
child: {
|
|
108
|
+
...root
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
return root;
|
|
113
|
+
}
|
|
114
|
+
function getPreviousItemId(conditionRoot, position) {
|
|
115
|
+
const parentSet = getParentSet(conditionRoot, position);
|
|
116
|
+
if (position.index === 0) {
|
|
117
|
+
// The previous item is the parent
|
|
118
|
+
return parentSet.id;
|
|
119
|
+
}
|
|
120
|
+
// The previous item is the previous sibling's deepest child
|
|
121
|
+
let previousIndex = position.index - 1;
|
|
122
|
+
let previousItem = parentSet.conditions[previousIndex];
|
|
123
|
+
while (previousItem.conditions) {
|
|
124
|
+
previousIndex = previousItem.conditions.length - 1;
|
|
125
|
+
previousItem = previousItem.conditions[previousIndex];
|
|
126
|
+
}
|
|
127
|
+
return previousItem.id;
|
|
128
|
+
}
|
|
129
|
+
function getParentSet(conditionRoot, position) {
|
|
130
|
+
const positionFromRoot = walkToRoot(position);
|
|
131
|
+
let set = conditionRoot;
|
|
132
|
+
for (let {
|
|
133
|
+
child
|
|
134
|
+
} = positionFromRoot; child && child.child; child = child.child) {
|
|
135
|
+
set = set.conditions[child.index];
|
|
136
|
+
}
|
|
137
|
+
return set;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export { LOGIC_TYPE_CONDITION, LOGIC_TYPE_SET, SET_VALUE_ALL, SET_VALUE_ANY, assignIdentifiersAndSetValues, constructValidDefaultState, getParentSet, getPreviousItemId, newCondition, newConditionSet, shallowCopy };
|