@cube-dev/ui-kit 0.223.0 → 0.224.1
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/README.md +1 -1
- package/dist/CHANGELOG.md +22 -0
- package/dist/README.md +1 -1
- package/dist/_internal/hooks/use-debounced-value.js +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.js +1 -1
- package/dist/components/CollectionItem.js +1 -1
- package/dist/components/GlobalStyles.js +1 -1
- package/dist/components/GridProvider.js +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/Root.js +1 -1
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.js +1 -1
- package/dist/components/actions/Button/AutoCollapseObserver.js +1 -1
- package/dist/components/actions/Button/Button.js +1 -1
- package/dist/components/actions/Button/index.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.js +1 -1
- package/dist/components/actions/CommandMenu/styled.js +1 -1
- package/dist/components/actions/ItemAction/ItemAction.js +1 -1
- package/dist/components/actions/ItemActionContext.js +1 -1
- package/dist/components/actions/ItemActionsWrapper.js +1 -1
- package/dist/components/actions/ItemButton/ItemButton.js +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.js +1 -1
- package/dist/components/actions/Menu/MenuCollectionItem.js +1 -1
- package/dist/components/actions/Menu/MenuItem.js +1 -1
- package/dist/components/actions/Menu/MenuSection.js +1 -1
- package/dist/components/actions/Menu/MenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/actions/Menu/context.js +1 -1
- package/dist/components/actions/Menu/styled.js +1 -1
- package/dist/components/actions/actions-run.js +1 -1
- package/dist/components/actions/touch-context-menu.js +1 -1
- package/dist/components/actions/use-action.js +1 -1
- package/dist/components/actions/use-anchored-menu.js +1 -1
- package/dist/components/actions/use-context-menu.js +1 -1
- package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/content/Alert/Alert.js +1 -1
- package/dist/components/content/Alert/use-alert.js +1 -1
- package/dist/components/content/Avatar/Avatar.js +1 -1
- package/dist/components/content/Badge/Badge.js +1 -1
- package/dist/components/content/Card/Card.js +1 -1
- package/dist/components/content/Content.js +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +1 -1
- package/dist/components/content/Divider/Divider.js +1 -1
- package/dist/components/content/Footer.js +1 -1
- package/dist/components/content/Header.js +1 -1
- package/dist/components/content/HotKeys/HotKeys.js +1 -1
- package/dist/components/content/InfoBadge/InfoBadge.js +1 -1
- package/dist/components/content/InlineInput/InlineInput.js +1 -1
- package/dist/components/content/Item/Item.js +1 -1
- package/dist/components/content/Item/ItemWithNativeLinks.js +1 -1
- package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
- package/dist/components/content/ItemCard/ItemCard.js +1 -1
- package/dist/components/content/Layout/GridLayout.js +1 -1
- package/dist/components/content/Layout/Layout.js +1 -1
- package/dist/components/content/Layout/LayoutBlock.js +1 -1
- package/dist/components/content/Layout/LayoutCenter.js +1 -1
- package/dist/components/content/Layout/LayoutContainer.js +1 -1
- package/dist/components/content/Layout/LayoutContent.js +1 -1
- package/dist/components/content/Layout/LayoutContext.js +1 -1
- package/dist/components/content/Layout/LayoutFlex.js +1 -1
- package/dist/components/content/Layout/LayoutFooter.js +1 -1
- package/dist/components/content/Layout/LayoutGrid.js +1 -1
- package/dist/components/content/Layout/LayoutHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPane.js +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPanelTransition.js +1 -1
- package/dist/components/content/Layout/LayoutResizeHandle.js +1 -1
- package/dist/components/content/Layout/LayoutToolbar.js +1 -1
- package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
- package/dist/components/content/Layout/index.js +1 -1
- package/dist/components/content/Layout/utils.js +1 -1
- package/dist/components/content/Paragraph.js +1 -1
- package/dist/components/content/Placeholder/Placeholder.js +1 -1
- package/dist/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/components/content/PrismCode/prismSetup.js +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/content/Result/Result.js +1 -1
- package/dist/components/content/Skeleton/Skeleton.js +1 -1
- package/dist/components/content/Tag/Tag.js +1 -1
- package/dist/components/content/Text.js +1 -1
- package/dist/components/content/TextItem/TextItem.js +1 -1
- package/dist/components/content/Title.js +1 -1
- package/dist/components/content/Tree/Tree.js +1 -1
- package/dist/components/content/Tree/TreeNode.js +1 -1
- package/dist/components/content/Tree/checked-keys.js +1 -1
- package/dist/components/content/Tree/rowId.js +1 -1
- package/dist/components/content/Tree/styled.js +1 -1
- package/dist/components/content/Tree/tree-index.js +1 -1
- package/dist/components/content/Tree/use-checkbox-tree.js +1 -1
- package/dist/components/content/Tree/use-load-data.js +1 -1
- package/dist/components/content/highlightText.js +1 -1
- package/dist/components/content/use-auto-tooltip.js +1 -1
- package/dist/components/data/DataTable/DataTable.js +1 -1
- package/dist/components/data/ItemTable/ItemTable.js +1 -1
- package/dist/components/data/ItemTable/ItemTableBulkBar.js +1 -1
- package/dist/components/data/ItemTable/ItemTableDragPreview.js +1 -1
- package/dist/components/data/ItemTable/ItemTableFooter.js +1 -1
- package/dist/components/data/ItemTable/ItemTableToolbar.js +1 -1
- package/dist/components/data/ItemTable/item-table-sections.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-column-widths.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-drag-drop.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-pagination.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-selection.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-sort.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-tree-model.js +1 -1
- package/dist/components/data/TableBase/ColumnResizer.js +1 -1
- package/dist/components/data/TableBase/RowCollection.js +1 -1
- package/dist/components/data/TableBase/TableHeaderCell.js +1 -1
- package/dist/components/data/TableBase/TableRow.js +1 -1
- package/dist/components/data/TableBase/TableRowLink.js +1 -1
- package/dist/components/data/TableBase/TableView.js +1 -1
- package/dist/components/data/TableBase/TreeGridTable.js +1 -1
- package/dist/components/data/TableBase/column-header.js +1 -1
- package/dist/components/data/TableBase/column-menu.js +1 -1
- package/dist/components/data/TableBase/column-styles.js +1 -1
- package/dist/components/data/TableBase/column-tint.js +1 -1
- package/dist/components/data/TableBase/row-menu.js +1 -1
- package/dist/components/data/TableBase/styled.js +1 -1
- package/dist/components/data/TableBase/table-body-sections.js +1 -1
- package/dist/components/data/TableBase/table-tree.js +1 -1
- package/dist/components/data/TableBase/types.js +1 -1
- package/dist/components/data/TableBase/use-cell-selection.js +0 -0
- package/dist/components/data/TableBase/use-column-menu.js +1 -1
- package/dist/components/data/TableBase/use-column-order.js +1 -1
- package/dist/components/data/TableBase/use-column-window.js +1 -1
- package/dist/components/data/TableBase/use-container-width.js +1 -1
- package/dist/components/data/TableBase/use-row-move-animation.js +1 -1
- package/dist/components/data/TableBase/use-scrollability.js +1 -1
- package/dist/components/data/TableBase/use-table-columns.js +1 -1
- package/dist/components/data/TableBase/use-table-search.js +1 -1
- package/dist/components/data/TableBase/use-table-selection.js +1 -1
- package/dist/components/data/TableBase/use-table-sort.js +1 -1
- package/dist/components/data/TableBase/use-table-sorts.js +1 -1
- package/dist/components/data/TableBase/use-table-storage.js +1 -1
- package/dist/components/data/TableBase/use-table-tooltip-refresh.js +1 -1
- package/dist/components/data/TableBase/use-table-tree-state.js +1 -1
- package/dist/components/fields/Checkbox/Checkbox.js +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ColorInput/ColorInput.js +1 -1
- package/dist/components/fields/ColorPicker/ColorPicker.js +1 -1
- package/dist/components/fields/ColorSwatch/ColorSwatch.js +1 -1
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
- package/dist/components/fields/ComboBox/ComboBox.d.ts +20 -2
- package/dist/components/fields/ComboBox/ComboBox.js +601 -643
- package/dist/components/fields/ComboBox/ComboBox.js.map +1 -1
- package/dist/components/fields/ComboBox/comboBoxOptions.js +1 -1
- package/dist/components/fields/CommandTextArea/CommandTextArea.js +1 -1
- package/dist/components/fields/CommandTextArea/caretPosition.js +1 -1
- package/dist/components/fields/CommandTextArea/useCaretAnchor.js +1 -1
- package/dist/components/fields/DatePicker/CalendarPopover.js +1 -1
- package/dist/components/fields/DatePicker/DateInput.js +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
- package/dist/components/fields/DatePicker/DatePicker.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
- package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
- package/dist/components/fields/DatePicker/PeriodPicker.js +1 -1
- package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
- package/dist/components/fields/DatePicker/TimeInput.js +1 -1
- package/dist/components/fields/DatePicker/WeekPicker.js +1 -1
- package/dist/components/fields/DatePicker/YearPicker.js +1 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/period.js +1 -1
- package/dist/components/fields/DatePicker/props.js +1 -1
- package/dist/components/fields/DatePicker/utils.js +1 -1
- package/dist/components/fields/FileInput/FileInput.js +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +1 -1
- package/dist/components/fields/FilterListBox/styled.js +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.js +1 -1
- package/dist/components/fields/FilterPicker/FilterTree.js +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
- package/dist/components/fields/ListBox/ListBox.js +23 -2
- package/dist/components/fields/ListBox/ListBox.js.map +1 -1
- package/dist/components/fields/ListBox/empty-row.js +1 -1
- package/dist/components/fields/ListBox/optionId.js +1 -1
- package/dist/components/fields/ListBox/use-disabled-focus-reset.js +1 -1
- package/dist/components/fields/ListBoxPopover/EmptyLabelStatus.js +40 -0
- package/dist/components/fields/ListBoxPopover/EmptyLabelStatus.js.map +1 -0
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +1 -1
- package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +1 -1
- package/dist/components/fields/ListBoxPopover/useDelayedLoading.js +44 -0
- package/dist/components/fields/ListBoxPopover/useDelayedLoading.js.map +1 -0
- package/dist/components/fields/NumberInput/NumberInput.js +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/fields/Picker/Picker.js +1 -1
- package/dist/components/fields/RadioGroup/Radio.js +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/RadioGroup/joined-styles.js +1 -1
- package/dist/components/fields/SearchComboBox/SearchComboBox.d.ts +4 -2
- package/dist/components/fields/SearchComboBox/SearchComboBox.js +15 -38
- package/dist/components/fields/SearchComboBox/SearchComboBox.js.map +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +1 -1
- package/dist/components/fields/Select/Select.js +1 -1
- package/dist/components/fields/Slider/Gradation.js +1 -1
- package/dist/components/fields/Slider/HueSlider.js +1 -1
- package/dist/components/fields/Slider/RangeSlider.js +1 -1
- package/dist/components/fields/Slider/Slider.js +1 -1
- package/dist/components/fields/Slider/SliderBase.js +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +1 -1
- package/dist/components/fields/Slider/SliderTrack.js +1 -1
- package/dist/components/fields/Slider/elements.js +1 -1
- package/dist/components/fields/Slider/index.js +1 -1
- package/dist/components/fields/Switch/Switch.js +1 -1
- package/dist/components/fields/TagInput/TagInput.js +1 -1
- package/dist/components/fields/TagInput/TagList.js +1 -1
- package/dist/components/fields/TagInput/useActiveOption.js +1 -1
- package/dist/components/fields/TagInput/useSuffixSpace.js +1 -1
- package/dist/components/fields/TagInput/useTagError.js +1 -1
- package/dist/components/fields/TextArea/TextArea.js +1 -1
- package/dist/components/fields/TextInput/TextInput.js +1 -1
- package/dist/components/fields/TextInput/TextInputBase.js +1 -1
- package/dist/components/fields/TextInput/displayed-validation.js +1 -1
- package/dist/components/fields/TextInput/identifier-text-services.js +1 -1
- package/dist/components/fields/TextInput/password-manager-ignore.js +1 -1
- package/dist/components/fields/TextInput/useAutoSizeTextArea.js +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
- package/dist/components/fields/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/fields/ToggleGroup/ToggleGroupItem.js +1 -1
- package/dist/components/fields/ToggleGroup/context.js +1 -1
- package/dist/components/fields/TriggerActions.js +1 -1
- package/dist/components/fields/color/ColorPanel.js +1 -1
- package/dist/components/fields/color/channels.js +1 -1
- package/dist/components/fields/color/color.js +1 -1
- package/dist/components/fields/color/context.js +1 -1
- package/dist/components/fields/option-origin-press.js +1 -1
- package/dist/components/fields/popover-width.js +1 -1
- package/dist/components/fields/search-text-services.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.js +1 -1
- package/dist/components/form/FieldWrapper/field-description.js +1 -1
- package/dist/components/form/Form/Field.js +1 -1
- package/dist/components/form/Form/Form.js +1 -1
- package/dist/components/form/Form/FormContext.js +1 -1
- package/dist/components/form/Form/FormElement.js +1 -1
- package/dist/components/form/Form/ModernFormRoot.js +1 -1
- package/dist/components/form/Form/ResetButton/ResetButton.js +1 -1
- package/dist/components/form/Form/SubmitButton/SubmitButton.js +1 -1
- package/dist/components/form/Form/SubmitError.js +1 -1
- package/dist/components/form/Form/backend.js +1 -1
- package/dist/components/form/Form/index.js +1 -1
- package/dist/components/form/Form/modern/actions.js +1 -1
- package/dist/components/form/Form/modern/context.js +1 -1
- package/dist/components/form/Form/modern/controller.js +1 -1
- package/dist/components/form/Form/modern/field-binding.js +1 -1
- package/dist/components/form/Form/modern/field.js +1 -1
- package/dist/components/form/Form/modern/react.js +1 -1
- package/dist/components/form/Form/modern/store.js +1 -1
- package/dist/components/form/Form/modern/validation.js +1 -1
- package/dist/components/form/Form/modern/values.js +1 -1
- package/dist/components/form/Form/reset-unbound-controls.js +1 -1
- package/dist/components/form/Form/use-field/use-field-binding.js +1 -1
- package/dist/components/form/Form/use-field/use-field-props.js +1 -1
- package/dist/components/form/Form/use-field/use-field.js +1 -1
- package/dist/components/form/Form/use-form.js +1 -1
- package/dist/components/form/Form/validation.js +1 -1
- package/dist/components/form/Label.js +1 -1
- package/dist/components/form/field-chrome.js +1 -1
- package/dist/components/form/field-layout.js +1 -1
- package/dist/components/form/legacy-tooltip.js +1 -1
- package/dist/components/form/validation/ValidationIndicator.js +1 -1
- package/dist/components/form/validation/resolve-validation-props.js +1 -1
- package/dist/components/form/validation/use-validation-props.js +1 -1
- package/dist/components/form/wrapper.js +1 -1
- package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
- package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
- package/dist/components/layout/Flex.js +1 -1
- package/dist/components/layout/Flow.js +1 -1
- package/dist/components/layout/Grid.js +1 -1
- package/dist/components/layout/Panel.js +1 -1
- package/dist/components/layout/Prefix.js +1 -1
- package/dist/components/layout/ResizablePanel.js +1 -1
- package/dist/components/layout/Space.js +1 -1
- package/dist/components/layout/Suffix.js +1 -1
- package/dist/components/navigation/NavTabs/NavTabs.js +1 -1
- package/dist/components/navigation/Pagination/Pagination.js +1 -1
- package/dist/components/navigation/Pagination/use-pagination.js +1 -1
- package/dist/components/navigation/Tabs/BoardDragActiveProvider.js +1 -1
- package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +1 -1
- package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
- package/dist/components/navigation/Tabs/TabPanel.js +1 -1
- package/dist/components/navigation/Tabs/TabPicker.js +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +1 -1
- package/dist/components/navigation/Tabs/TabsContext.js +1 -1
- package/dist/components/navigation/Tabs/popover-placement.js +1 -1
- package/dist/components/navigation/Tabs/scroll-tab-into-strip.js +1 -1
- package/dist/components/navigation/Tabs/segmented-styles.js +1 -1
- package/dist/components/navigation/Tabs/styled.js +1 -1
- package/dist/components/navigation/Tabs/types.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
- package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
- package/dist/components/other/Calendar/Calendar.js +1 -1
- package/dist/components/other/Calendar/CalendarCell.js +1 -1
- package/dist/components/other/Calendar/CalendarGrid.js +1 -1
- package/dist/components/other/Calendar/CalendarHeader.js +1 -1
- package/dist/components/other/Calendar/CalendarPanel.js +1 -1
- package/dist/components/other/Calendar/PeriodCalendar.js +1 -1
- package/dist/components/other/Calendar/PeriodGrid.js +1 -1
- package/dist/components/other/Calendar/RangeCalendar.js +1 -1
- package/dist/components/other/Calendar/styled.js +1 -1
- package/dist/components/other/CubeLogo/CubeLogo.js +1 -1
- package/dist/components/other/NoDataIcon/NoDataIcon.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/dist/components/overlays/Dialog/Dialog.js +1 -1
- package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/components/overlays/Dialog/DialogForm.js +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
- package/dist/components/overlays/Dialog/ModernDialogForm.js +1 -1
- package/dist/components/overlays/Dialog/context.js +1 -1
- package/dist/components/overlays/Dialog/default-button-text.js +1 -1
- package/dist/components/overlays/Dialog/use-content-overflow.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-open-sync.js +1 -1
- package/dist/components/overlays/Dialog/use-dismiss-confirmation.js +1 -1
- package/dist/components/overlays/Dialog/use-retained-dialog-focus.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +1 -1
- package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
- package/dist/components/overlays/Modal/Overlay.js +1 -1
- package/dist/components/overlays/Modal/Popover.js +1 -1
- package/dist/components/overlays/Modal/Tray.js +1 -1
- package/dist/components/overlays/Modal/Underlay.js +1 -1
- package/dist/components/overlays/Modal/modal-containment.js +1 -1
- package/dist/components/overlays/Notifications/Notification.js +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/overlays/Tooltip/split-trigger-props.js +1 -1
- package/dist/components/portal/Portal.js +1 -1
- package/dist/components/portal/PortalProvider.js +1 -1
- package/dist/components/portal/usePortal.js +1 -1
- package/dist/components/shared/DraggableCollection.js +1 -1
- package/dist/components/shared/InvalidIcon.js +1 -1
- package/dist/components/shared/ValidIcon.js +1 -1
- package/dist/components/shared/disabled-behavior.js +1 -1
- package/dist/components/shared/virtual-width.js +1 -1
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/components/status/Spin/Cube.js +1 -1
- package/dist/components/status/Spin/InternalSpinner.js +1 -1
- package/dist/components/status/Spin/Spin.js +1 -1
- package/dist/components/status/Spin/SpinsContainer.js +1 -1
- package/dist/data/item-themes.js +1 -1
- package/dist/data/themes.js +1 -1
- package/dist/eslint-plugin/defaults.generated.js +5 -1
- package/dist/eslint-plugin/defaults.generated.js.map +1 -1
- package/dist/eslint-plugin/index.js +1 -1
- package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
- package/dist/harness/colors-deps.js +1 -1
- package/dist/i18n/I18nProvider.js +1 -1
- package/dist/i18n/createFormatter.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/instance.js +1 -1
- package/dist/i18n/locales/de-DE/uikit.js +1 -1
- package/dist/i18n/locales/en-US/uikit.js +1 -1
- package/dist/i18n/locales/es-ES/uikit.js +1 -1
- package/dist/i18n/locales/es-MX/uikit.js +1 -1
- package/dist/i18n/locales/fr-FR/uikit.js +1 -1
- package/dist/i18n/locales/it-IT/uikit.js +1 -1
- package/dist/i18n/locales/ja-JP/uikit.js +1 -1
- package/dist/i18n/locales/nb-NO/uikit.js +1 -1
- package/dist/i18n/locales/pt-BR/uikit.js +1 -1
- package/dist/i18n/locales/pt-PT/uikit.js +1 -1
- package/dist/i18n/locales/sv-SE/uikit.js +1 -1
- package/dist/i18n/locales/vi-VN/uikit.js +1 -1
- package/dist/i18n/locales.js +1 -1
- package/dist/i18n/namespace.js +1 -1
- package/dist/i18n/useFormatter.js +1 -1
- package/dist/i18n/useI18n.js +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/ArrowNarrowDownIcon.js +1 -1
- package/dist/icons/ArrowNarrowUpIcon.js +1 -1
- package/dist/icons/BackwardIcon.js +1 -1
- package/dist/icons/BarChartIcon.js +1 -1
- package/dist/icons/BellFilledIcon.js +1 -1
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/BooleanIcon.js +1 -1
- package/dist/icons/CalendarEditIcon.js +1 -1
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CaretDownIcon.js +1 -1
- package/dist/icons/CaretUpIcon.js +1 -1
- package/dist/icons/ChartAreaStackedIcon.js +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarGroupedIcon.js +1 -1
- package/dist/icons/ChartBarHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarLineIcon.js +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBoxPlot2Icon.js +1 -1
- package/dist/icons/ChartBoxPlotIcon.js +1 -1
- package/dist/icons/ChartBubbleIcon.js +1 -1
- package/dist/icons/ChartDonut2Icon.js +1 -1
- package/dist/icons/ChartFunnelIcon.js +1 -1
- package/dist/icons/ChartHeatmapIcon.js +1 -1
- package/dist/icons/ChartKPIIcon.js +1 -1
- package/dist/icons/ChartPie2Icon.js +1 -1
- package/dist/icons/ChartScatterIcon.js +1 -1
- package/dist/icons/CheckCircleFilledIcon.js +1 -1
- package/dist/icons/CheckCircleIcon.js +1 -1
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CircleFilledIcon.js +1 -1
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/CloseCircleFilledIcon.js +1 -1
- package/dist/icons/CloseCircleIcon.js +1 -1
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/CodeIcon.js +1 -1
- package/dist/icons/ColumnTotalIcon.js +1 -1
- package/dist/icons/CopyIcon.js +1 -1
- package/dist/icons/CountIcon.js +1 -1
- package/dist/icons/CubeIcon.js +1 -1
- package/dist/icons/CubePauseIcon.js +1 -1
- package/dist/icons/CubePlayIcon.js +1 -1
- package/dist/icons/CurrencyDollarIcon.js +1 -1
- package/dist/icons/DangerIcon.js +1 -1
- package/dist/icons/DashboardIcon.js +1 -1
- package/dist/icons/DatabaseIcon.js +1 -1
- package/dist/icons/DecimalDecreaseIcon.js +1 -1
- package/dist/icons/DecimalIncreaseIcon.js +1 -1
- package/dist/icons/DirectionIcon.js +1 -1
- package/dist/icons/DonutIcon.js +1 -1
- package/dist/icons/DownIcon.js +1 -1
- package/dist/icons/EditIcon.js +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
- package/dist/icons/ExclamationCircleIcon.js +1 -1
- package/dist/icons/ExclamationIcon.js +1 -1
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeInvisibleIcon.js +1 -1
- package/dist/icons/FilterIcon.js +1 -1
- package/dist/icons/FolderFilledIcon.js +1 -1
- package/dist/icons/FolderIcon.js +1 -1
- package/dist/icons/FolderOpenFilledIcon.js +1 -1
- package/dist/icons/FolderOpenIcon.js +1 -1
- package/dist/icons/ForwardIcon.js +1 -1
- package/dist/icons/GripVerticalIcon.js +1 -1
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/InfoCircleIcon.js +1 -1
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/KeyIcon.js +1 -1
- package/dist/icons/LeftIcon.js +1 -1
- package/dist/icons/LineChartIcon.js +1 -1
- package/dist/icons/LoadingIcon.js +1 -1
- package/dist/icons/LockFilledIcon.js +1 -1
- package/dist/icons/LockIcon.js +1 -1
- package/dist/icons/MoreIcon.js +1 -1
- package/dist/icons/NotAllowedIcon.js +1 -1
- package/dist/icons/Number123Icon.js +1 -1
- package/dist/icons/NumberIcon.js +1 -1
- package/dist/icons/PauseCircleFilledIcon.js +1 -1
- package/dist/icons/PauseCircleIcon.js +1 -1
- package/dist/icons/PauseIcon.js +1 -1
- package/dist/icons/PercentageIcon.js +1 -1
- package/dist/icons/PieChartIcon.js +1 -1
- package/dist/icons/PipetteIcon.js +1 -1
- package/dist/icons/PlayCircleIcon.js +1 -1
- package/dist/icons/PlayIcon.js +1 -1
- package/dist/icons/PlusIcon.js +1 -1
- package/dist/icons/ProgressBarIcon.js +1 -1
- package/dist/icons/ReloadIcon.js +1 -1
- package/dist/icons/ReportIcon.js +1 -1
- package/dist/icons/ReturnIcon.js +1 -1
- package/dist/icons/RightIcon.js +1 -1
- package/dist/icons/RowTotalsIcon.js +1 -1
- package/dist/icons/SchemeIcon.js +1 -1
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/SemanticQueryIcon.js +1 -1
- package/dist/icons/SettingsIcon.js +1 -1
- package/dist/icons/ShieldFilledIcon.js +1 -1
- package/dist/icons/ShieldIcon.js +1 -1
- package/dist/icons/SlashIcon.js +1 -1
- package/dist/icons/SparklesIcon.js +1 -1
- package/dist/icons/SqlIcon.js +1 -1
- package/dist/icons/StatsIcon.js +1 -1
- package/dist/icons/StopIcon.js +1 -1
- package/dist/icons/StringIcon.js +1 -1
- package/dist/icons/SubtotalsIcon.js +1 -1
- package/dist/icons/SwitchIcon.js +1 -1
- package/dist/icons/TableIcon.js +1 -1
- package/dist/icons/ThumbsDownIcon.js +1 -1
- package/dist/icons/ThumbsUpIcon.js +1 -1
- package/dist/icons/ThunderboltCrossedIcon.js +1 -1
- package/dist/icons/ThunderboltFilledIcon.js +1 -1
- package/dist/icons/ThunderboltIcon.js +1 -1
- package/dist/icons/TimeIcon.js +1 -1
- package/dist/icons/TrashIcon.js +1 -1
- package/dist/icons/UnlockIcon.js +1 -1
- package/dist/icons/UpIcon.js +1 -1
- package/dist/icons/UserGroupIcon.js +1 -1
- package/dist/icons/UserIcon.js +1 -1
- package/dist/icons/UserLockIcon.js +1 -1
- package/dist/icons/ViewIcon.js +1 -1
- package/dist/icons/WarningFilledIcon.js +1 -1
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/icons/wrap-icon.js +1 -1
- package/dist/index.js +1 -1
- package/dist/probe/canonicalize.js +1 -1
- package/dist/probe/css.js +1 -1
- package/dist/probe/index.js +1 -1
- package/dist/provider.js +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigation-url.js +1 -1
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/providers/use-navigation.js +1 -1
- package/dist/tokens/all-tokens.js +1 -1
- package/dist/tokens/base.js +1 -1
- package/dist/tokens/color-seed.js +1 -1
- package/dist/tokens/color-theme.js +1 -1
- package/dist/tokens/colors.js +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/lazy-styles.js +1 -1
- package/dist/tokens/legacy-color.js +1 -1
- package/dist/tokens/palette-config.js +1 -1
- package/dist/tokens/palette.js +1 -1
- package/dist/tokens/resolve.js +1 -1
- package/dist/tokens/shadows.js +1 -1
- package/dist/tokens/sizes.js +1 -1
- package/dist/tokens/spacing.js +1 -1
- package/dist/tokens/typography.js +1 -1
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/dotize.js +1 -1
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/layout-scale.js +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/promise.js +1 -1
- package/dist/utils/raf.js +1 -1
- package/dist/utils/random.js +1 -1
- package/dist/utils/range.js +1 -1
- package/dist/utils/react/RenderCache.js +1 -1
- package/dist/utils/react/Slots.js +1 -1
- package/dist/utils/react/chain.js +1 -1
- package/dist/utils/react/componentBaseProps.js +1 -1
- package/dist/utils/react/disabledProps.js +1 -1
- package/dist/utils/react/forwardRefWithGenerics.js +1 -1
- package/dist/utils/react/index.js +1 -1
- package/dist/utils/react/interactions.js +1 -1
- package/dist/utils/react/isTextOnly.js +1 -1
- package/dist/utils/react/mapProps.js +1 -1
- package/dist/utils/react/mergeProps.js +1 -1
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/overlayKeyPropagation.js +1 -1
- package/dist/utils/react/pickBaseCustomizationProps.js +1 -1
- package/dist/utils/react/programmaticFocus.js +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/sharedStore.js +1 -1
- package/dist/utils/react/useBufferedValue.js +1 -1
- package/dist/utils/react/useCombinedRefs.js +1 -1
- package/dist/utils/react/useControlledFocusVisible.js +1 -1
- package/dist/utils/react/useEventBus.js +1 -1
- package/dist/utils/react/useId.js +1 -1
- package/dist/utils/react/useIsDarwin.js +1 -1
- package/dist/utils/react/useKeySymbols.js +1 -1
- package/dist/utils/react/useLayoutEffect.js +1 -1
- package/dist/utils/react/useLocalStorage.js +1 -1
- package/dist/utils/react/useMergeStyles.js +1 -1
- package/dist/utils/react/useOpenKey.js +1 -1
- package/dist/utils/react/useOverlayEscapeGuard.js +1 -1
- package/dist/utils/react/useOverlayPosition.js +1 -1
- package/dist/utils/react/usePopoverSync.js +1 -1
- package/dist/utils/react/useQaProps.js +1 -1
- package/dist/utils/react/useScheme.js +1 -1
- package/dist/utils/react/useViewportSize.js +1 -1
- package/dist/utils/react/wrapNodeIfPlain.js +1 -1
- package/dist/utils/selection.js +1 -1
- package/dist/utils/styles.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/version.js +3 -3
- package/docs/Usage.md +2 -2
- package/docs/components/fields/ComboBox.md +73 -4
- package/docs/components/fields/SearchComboBox.md +11 -5
- package/harness/dev.harnesspm/scripts/colors.mjs +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.224.1 | Cube Dev Team */
|
|
2
2
|
import { useLayoutEffect as useLayoutEffect$1 } from "../../../utils/react/useLayoutEffect.js";
|
|
3
3
|
import { pickBaseCustomizationProps } from "../../../utils/react/pickBaseCustomizationProps.js";
|
|
4
4
|
import { useCombinedRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
@@ -24,6 +24,8 @@ import { DEFAULT_INPUT_STYLES, INPUT_WRAPPER_STYLES } from "../TextInput/TextInp
|
|
|
24
24
|
import { getIdentifierTextServices } from "../TextInput/identifier-text-services.js";
|
|
25
25
|
import { ListBoxPopover } from "../ListBoxPopover/ListBoxPopover.js";
|
|
26
26
|
import { useCompositeFocus } from "../ListBoxPopover/useCompositeFocus.js";
|
|
27
|
+
import { EmptyLabelStatus } from "../ListBoxPopover/EmptyLabelStatus.js";
|
|
28
|
+
import { useDelayedLoading } from "../ListBoxPopover/useDelayedLoading.js";
|
|
27
29
|
import { collectOptions, findTypedOption, getItemLabel, highlightOption, resolveHighlightedKey, sortSelectedFirst } from "./comboBoxOptions.js";
|
|
28
30
|
import { c } from "react/compiler-runtime";
|
|
29
31
|
import { tasty } from "@tenphi/tasty";
|
|
@@ -303,6 +305,7 @@ function useComboBoxKeyboard(t0) {
|
|
|
303
305
|
inputRef.current?.focus();
|
|
304
306
|
return true;
|
|
305
307
|
}
|
|
308
|
+
onCloseList();
|
|
306
309
|
if (effectiveInputValue && isClearable) {
|
|
307
310
|
e_2.preventDefault();
|
|
308
311
|
onClearValue();
|
|
@@ -480,7 +483,7 @@ const ComboBoxInput = forwardRef(function ComboBoxInput(t0, ref) {
|
|
|
480
483
|
return t6;
|
|
481
484
|
});
|
|
482
485
|
const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
483
|
-
const $ = c(
|
|
486
|
+
const $ = c(266);
|
|
484
487
|
let t0;
|
|
485
488
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
486
489
|
t0 = { valuePropsMapper: _temp2 };
|
|
@@ -488,7 +491,7 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
488
491
|
} else t0 = $[0];
|
|
489
492
|
props = useFieldProps(props, t0);
|
|
490
493
|
const { t } = useI18n();
|
|
491
|
-
let { qa, label, isRequired, isInvalid, isValid, id, icon, prefix, isDisabled, autoFocus, autoComplete: t1, isIdentifier, wrapperRef: t2, inputRef: t3, triggerRef, popoverRef, listBoxRef, isLoading, inputStyles, optionStyles, triggerStyles, listBoxStyles, overlayStyles, suffix, hideTrigger, size: t4, direction: t5, shouldFlip: t6, popoverTrigger: t7, suffixPosition: t8, filter, styles, selectedKey, defaultSelectedKey, inputValue, defaultInputValue, onInputChange, isClearable, onClear, placeholder, allowsCustomValue, shouldCommitOnBlur: t9, clearOnBlur, items, children: renderChildren, sectionStyles, headingStyles, listGap, isReadOnly, overlayOffset: t10, containerPadding: t11, onSelectionChange: externalOnSelectionChange, sortSelectedToTop: sortSelectedToTopProp, onOpenChange, onFocus, onBlur, onKeyDown } = props;
|
|
494
|
+
let { qa, label, isRequired, isInvalid, isValid, id, icon, prefix, isDisabled, autoFocus, autoComplete: t1, isIdentifier, wrapperRef: t2, inputRef: t3, triggerRef, popoverRef, listBoxRef, isLoading, emptyLabel, inputStyles, optionStyles, triggerStyles, listBoxStyles, overlayStyles, suffix, hideTrigger, size: t4, direction: t5, shouldFlip: t6, popoverTrigger: t7, suffixPosition: t8, filter, styles, selectedKey, defaultSelectedKey, inputValue, defaultInputValue, onInputChange, isClearable, onClear, placeholder, allowsCustomValue, shouldCommitOnBlur: t9, clearOnBlur, items, children: renderChildren, sectionStyles, headingStyles, listGap, isReadOnly, overlayOffset: t10, containerPadding: t11, onSelectionChange: externalOnSelectionChange, sortSelectedToTop: sortSelectedToTopProp, onOpenChange, onFocus, onBlur, onKeyDown } = props;
|
|
492
495
|
const autoComplete = t1 === void 0 ? "off" : t1;
|
|
493
496
|
let wrapperRef = t2;
|
|
494
497
|
let inputRef = t3;
|
|
@@ -508,28 +511,15 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
508
511
|
const comboBoxId = t12;
|
|
509
512
|
wrapperRef = useCombinedRefs(wrapperRef, ref);
|
|
510
513
|
popoverRef = useCombinedRefs(popoverRef);
|
|
511
|
-
const
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
comboBoxId,
|
|
521
|
-
triggerRef: t13,
|
|
522
|
-
popoverRef: t14
|
|
523
|
-
};
|
|
524
|
-
$[2] = defaultInputValue;
|
|
525
|
-
$[3] = defaultSelectedKey;
|
|
526
|
-
$[4] = inputValue;
|
|
527
|
-
$[5] = selectedKey;
|
|
528
|
-
$[6] = t13;
|
|
529
|
-
$[7] = t14;
|
|
530
|
-
$[8] = t15;
|
|
531
|
-
} else t15 = $[8];
|
|
532
|
-
const { effectiveSelectedKey, internalInputValue, isPopoverOpen, setIsPopoverOpen, setInternalSelectedKey, setInternalInputValue, isControlledKey, isControlledInput } = useComboBoxState(t15);
|
|
514
|
+
const { effectiveSelectedKey, internalInputValue, isPopoverOpen, setIsPopoverOpen, setInternalSelectedKey, setInternalInputValue, isControlledKey, isControlledInput } = useComboBoxState({
|
|
515
|
+
selectedKey,
|
|
516
|
+
defaultSelectedKey,
|
|
517
|
+
inputValue,
|
|
518
|
+
defaultInputValue,
|
|
519
|
+
comboBoxId,
|
|
520
|
+
triggerRef: wrapperRef,
|
|
521
|
+
popoverRef
|
|
522
|
+
});
|
|
533
523
|
const sortSelectedToTop = sortSelectedToTopProp ?? (items ? true : false);
|
|
534
524
|
const fieldLayout = splitFieldLayout(props);
|
|
535
525
|
styles = fieldLayout.styles;
|
|
@@ -540,7 +530,7 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
540
530
|
if (!isPopoverOpen && sortKey !== effectiveSelectedKey) setSortKey(effectiveSelectedKey);
|
|
541
531
|
let children;
|
|
542
532
|
let sortedItems;
|
|
543
|
-
if ($[
|
|
533
|
+
if ($[2] !== items || $[3] !== renderChildren || $[4] !== sortKey || $[5] !== sortSelectedToTop) {
|
|
544
534
|
sortedItems = items && sortSelectedToTop ? sortSelectedFirst(items, sortKey) : items;
|
|
545
535
|
children = renderChildren;
|
|
546
536
|
const renderFn = renderChildren;
|
|
@@ -551,125 +541,130 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
551
541
|
return rendered;
|
|
552
542
|
});
|
|
553
543
|
} catch {}
|
|
554
|
-
$[
|
|
555
|
-
$[
|
|
556
|
-
$[
|
|
557
|
-
$[
|
|
558
|
-
$[
|
|
559
|
-
$[
|
|
544
|
+
$[2] = items;
|
|
545
|
+
$[3] = renderChildren;
|
|
546
|
+
$[4] = sortKey;
|
|
547
|
+
$[5] = sortSelectedToTop;
|
|
548
|
+
$[6] = children;
|
|
549
|
+
$[7] = sortedItems;
|
|
560
550
|
} else {
|
|
561
|
-
children = $[
|
|
562
|
-
sortedItems = $[
|
|
551
|
+
children = $[6];
|
|
552
|
+
sortedItems = $[7];
|
|
563
553
|
}
|
|
564
|
-
const
|
|
565
|
-
let
|
|
566
|
-
if ($[
|
|
567
|
-
|
|
568
|
-
children:
|
|
554
|
+
const t13 = children;
|
|
555
|
+
let t14;
|
|
556
|
+
if ($[8] !== props.disabledKeys || $[9] !== sortedItems || $[10] !== t13) {
|
|
557
|
+
t14 = {
|
|
558
|
+
children: t13,
|
|
569
559
|
items: sortedItems,
|
|
570
560
|
disabledKeys: props.disabledKeys,
|
|
571
561
|
selectionMode: "none"
|
|
572
562
|
};
|
|
573
|
-
$[
|
|
574
|
-
$[
|
|
575
|
-
$[
|
|
576
|
-
$[
|
|
577
|
-
} else
|
|
578
|
-
const localCollectionState = useListState(
|
|
563
|
+
$[8] = props.disabledKeys;
|
|
564
|
+
$[9] = sortedItems;
|
|
565
|
+
$[10] = t13;
|
|
566
|
+
$[11] = t14;
|
|
567
|
+
} else t14 = $[11];
|
|
568
|
+
const localCollectionState = useListState(t14);
|
|
579
569
|
const { selectedLabel, pickLabel } = useSelectedLabel(localCollectionState.collection, effectiveSelectedKey);
|
|
580
570
|
const effectiveInputValue = isControlledInput ? inputValue : internalInputValue ?? selectedLabel;
|
|
581
|
-
let
|
|
582
|
-
if ($[
|
|
583
|
-
|
|
571
|
+
let t15;
|
|
572
|
+
if ($[12] !== effectiveInputValue || $[13] !== filter) {
|
|
573
|
+
t15 = {
|
|
584
574
|
effectiveInputValue,
|
|
585
575
|
filter
|
|
586
576
|
};
|
|
587
|
-
$[
|
|
588
|
-
$[
|
|
589
|
-
$[
|
|
590
|
-
} else
|
|
591
|
-
const { filterFn, matchTypedText, isSameText, setIsFilterActive } = useComboBoxFiltering(
|
|
577
|
+
$[12] = effectiveInputValue;
|
|
578
|
+
$[13] = filter;
|
|
579
|
+
$[14] = t15;
|
|
580
|
+
} else t15 = $[14];
|
|
581
|
+
const { filterFn, matchTypedText, isSameText, setIsFilterActive } = useComboBoxFiltering(t15);
|
|
592
582
|
const filteredOptions = collectOptions(filterFn(localCollectionState.collection));
|
|
593
|
-
let
|
|
594
|
-
if ($[
|
|
595
|
-
|
|
596
|
-
$[
|
|
597
|
-
$[
|
|
598
|
-
$[
|
|
599
|
-
} else
|
|
600
|
-
const getTypedOptions =
|
|
583
|
+
let t16;
|
|
584
|
+
if ($[15] !== localCollectionState.collection || $[16] !== matchTypedText) {
|
|
585
|
+
t16 = () => collectOptions(matchTypedText(localCollectionState.collection));
|
|
586
|
+
$[15] = localCollectionState.collection;
|
|
587
|
+
$[16] = matchTypedText;
|
|
588
|
+
$[17] = t16;
|
|
589
|
+
} else t16 = $[17];
|
|
590
|
+
const getTypedOptions = t16;
|
|
601
591
|
const hasResults = filteredOptions.length > 0;
|
|
602
|
-
const
|
|
592
|
+
const hasEmptyLabel = emptyLabel != null && emptyLabel !== false && emptyLabel !== "";
|
|
593
|
+
const hasLongLoad = useDelayedLoading(!!isLoading);
|
|
594
|
+
const [wasListShown, setWasListShown] = useState(false);
|
|
595
|
+
const shouldShowPopover = isPopoverOpen && (hasResults || hasEmptyLabel && (!isLoading || hasLongLoad || wasListShown));
|
|
596
|
+
if (wasListShown !== shouldShowPopover) setWasListShown(shouldShowPopover);
|
|
597
|
+
const announcesEmptyLabel = shouldShowPopover && !hasResults && !isLoading;
|
|
603
598
|
const reportedOpenRef = useRef(shouldShowPopover);
|
|
604
|
-
let
|
|
605
|
-
let
|
|
606
|
-
if ($[
|
|
607
|
-
|
|
599
|
+
let t17;
|
|
600
|
+
let t18;
|
|
601
|
+
if ($[18] !== onOpenChange || $[19] !== shouldShowPopover) {
|
|
602
|
+
t17 = () => {
|
|
608
603
|
if (reportedOpenRef.current === shouldShowPopover) return;
|
|
609
604
|
reportedOpenRef.current = shouldShowPopover;
|
|
610
605
|
onOpenChange?.(shouldShowPopover);
|
|
611
606
|
};
|
|
612
|
-
|
|
613
|
-
$[
|
|
614
|
-
$[
|
|
615
|
-
$[
|
|
616
|
-
$[
|
|
607
|
+
t18 = [shouldShowPopover, onOpenChange];
|
|
608
|
+
$[18] = onOpenChange;
|
|
609
|
+
$[19] = shouldShowPopover;
|
|
610
|
+
$[20] = t17;
|
|
611
|
+
$[21] = t18;
|
|
617
612
|
} else {
|
|
618
|
-
|
|
619
|
-
|
|
613
|
+
t17 = $[20];
|
|
614
|
+
t18 = $[21];
|
|
620
615
|
}
|
|
621
|
-
useEffect(
|
|
616
|
+
useEffect(t17, t18);
|
|
622
617
|
const { isFocused, focusProps } = useFocus$1();
|
|
623
|
-
let
|
|
624
|
-
if ($[
|
|
625
|
-
|
|
618
|
+
let t19;
|
|
619
|
+
if ($[22] !== isControlledKey || $[23] !== setInternalSelectedKey) {
|
|
620
|
+
t19 = (key) => {
|
|
626
621
|
if (!isControlledKey) setInternalSelectedKey(key);
|
|
627
622
|
};
|
|
628
|
-
$[
|
|
629
|
-
$[
|
|
630
|
-
$[
|
|
631
|
-
} else
|
|
632
|
-
const setSelectedKey =
|
|
633
|
-
let
|
|
634
|
-
if ($[
|
|
635
|
-
|
|
623
|
+
$[22] = isControlledKey;
|
|
624
|
+
$[23] = setInternalSelectedKey;
|
|
625
|
+
$[24] = t19;
|
|
626
|
+
} else t19 = $[24];
|
|
627
|
+
const setSelectedKey = t19;
|
|
628
|
+
let t20;
|
|
629
|
+
if ($[25] !== effectiveInputValue || $[26] !== isControlledInput || $[27] !== onInputChange || $[28] !== setInternalInputValue) {
|
|
630
|
+
t20 = (label_0) => {
|
|
636
631
|
if (!isControlledInput) setInternalInputValue(null);
|
|
637
632
|
if (label_0 !== effectiveInputValue) onInputChange?.(label_0);
|
|
638
633
|
};
|
|
639
|
-
$[
|
|
640
|
-
$[
|
|
641
|
-
$[
|
|
642
|
-
$[
|
|
643
|
-
$[
|
|
644
|
-
} else
|
|
645
|
-
const showSelectionLabel =
|
|
646
|
-
let
|
|
647
|
-
if ($[
|
|
648
|
-
|
|
634
|
+
$[25] = effectiveInputValue;
|
|
635
|
+
$[26] = isControlledInput;
|
|
636
|
+
$[27] = onInputChange;
|
|
637
|
+
$[28] = setInternalInputValue;
|
|
638
|
+
$[29] = t20;
|
|
639
|
+
} else t20 = $[29];
|
|
640
|
+
const showSelectionLabel = t20;
|
|
641
|
+
let t21;
|
|
642
|
+
if ($[30] !== effectiveSelectedKey || $[31] !== externalOnSelectionChange || $[32] !== setSelectedKey || $[33] !== showSelectionLabel) {
|
|
643
|
+
t21 = () => {
|
|
649
644
|
if (effectiveSelectedKey != null) {
|
|
650
645
|
externalOnSelectionChange?.(null);
|
|
651
646
|
setSelectedKey(null);
|
|
652
647
|
}
|
|
653
648
|
showSelectionLabel("");
|
|
654
649
|
};
|
|
655
|
-
$[
|
|
656
|
-
$[
|
|
657
|
-
$[
|
|
658
|
-
$[
|
|
659
|
-
$[
|
|
660
|
-
} else
|
|
661
|
-
const clearSelectionAndInput =
|
|
662
|
-
let
|
|
663
|
-
if ($[
|
|
664
|
-
|
|
665
|
-
$[
|
|
666
|
-
$[
|
|
667
|
-
$[
|
|
668
|
-
} else
|
|
669
|
-
const restoreSelectedLabel =
|
|
670
|
-
let
|
|
671
|
-
if ($[
|
|
672
|
-
|
|
650
|
+
$[30] = effectiveSelectedKey;
|
|
651
|
+
$[31] = externalOnSelectionChange;
|
|
652
|
+
$[32] = setSelectedKey;
|
|
653
|
+
$[33] = showSelectionLabel;
|
|
654
|
+
$[34] = t21;
|
|
655
|
+
} else t21 = $[34];
|
|
656
|
+
const clearSelectionAndInput = t21;
|
|
657
|
+
let t22;
|
|
658
|
+
if ($[35] !== selectedLabel || $[36] !== showSelectionLabel) {
|
|
659
|
+
t22 = () => showSelectionLabel(selectedLabel);
|
|
660
|
+
$[35] = selectedLabel;
|
|
661
|
+
$[36] = showSelectionLabel;
|
|
662
|
+
$[37] = t22;
|
|
663
|
+
} else t22 = $[37];
|
|
664
|
+
const restoreSelectedLabel = t22;
|
|
665
|
+
let t23;
|
|
666
|
+
if ($[38] !== clearSelectionAndInput || $[39] !== effectiveInputValue || $[40] !== effectiveSelectedKey || $[41] !== externalOnSelectionChange || $[42] !== restoreSelectedLabel || $[43] !== setSelectedKey || $[44] !== shouldCommitOnBlur || $[45] !== showSelectionLabel) {
|
|
667
|
+
t23 = () => {
|
|
673
668
|
const value_0 = effectiveInputValue.trim();
|
|
674
669
|
if (shouldCommitOnBlur && value_0 && effectiveSelectedKey == null) {
|
|
675
670
|
externalOnSelectionChange?.(value_0);
|
|
@@ -678,20 +673,20 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
678
673
|
} else if (!value_0) clearSelectionAndInput();
|
|
679
674
|
else restoreSelectedLabel();
|
|
680
675
|
};
|
|
681
|
-
$[
|
|
682
|
-
$[
|
|
683
|
-
$[
|
|
684
|
-
$[
|
|
685
|
-
$[
|
|
686
|
-
$[
|
|
687
|
-
$[
|
|
688
|
-
$[
|
|
689
|
-
$[
|
|
690
|
-
} else
|
|
691
|
-
const settleCustomValueOnBlur =
|
|
692
|
-
let
|
|
693
|
-
if ($[
|
|
694
|
-
|
|
676
|
+
$[38] = clearSelectionAndInput;
|
|
677
|
+
$[39] = effectiveInputValue;
|
|
678
|
+
$[40] = effectiveSelectedKey;
|
|
679
|
+
$[41] = externalOnSelectionChange;
|
|
680
|
+
$[42] = restoreSelectedLabel;
|
|
681
|
+
$[43] = setSelectedKey;
|
|
682
|
+
$[44] = shouldCommitOnBlur;
|
|
683
|
+
$[45] = showSelectionLabel;
|
|
684
|
+
$[46] = t23;
|
|
685
|
+
} else t23 = $[46];
|
|
686
|
+
const settleCustomValueOnBlur = t23;
|
|
687
|
+
let t24;
|
|
688
|
+
if ($[47] !== clearOnBlur || $[48] !== clearSelectionAndInput || $[49] !== effectiveInputValue || $[50] !== effectiveSelectedKey || $[51] !== externalOnSelectionChange || $[52] !== getTypedOptions || $[53] !== isSameText || $[54] !== localCollectionState || $[55] !== pickLabel || $[56] !== restoreSelectedLabel || $[57] !== setSelectedKey || $[58] !== showSelectionLabel) {
|
|
689
|
+
t24 = () => {
|
|
695
690
|
const matchKey = findTypedOption(getTypedOptions(), effectiveInputValue, effectiveSelectedKey, (key_0) => isItemDisabled(localCollectionState, key_0), isSameText);
|
|
696
691
|
if (matchKey != null && matchKey !== effectiveSelectedKey) {
|
|
697
692
|
setSelectedKey(matchKey);
|
|
@@ -700,99 +695,76 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
700
695
|
} else if (matchKey == null && (clearOnBlur || !effectiveInputValue.trim())) clearSelectionAndInput();
|
|
701
696
|
else restoreSelectedLabel();
|
|
702
697
|
};
|
|
703
|
-
$[
|
|
704
|
-
$[
|
|
705
|
-
$[
|
|
706
|
-
$[
|
|
707
|
-
$[
|
|
708
|
-
$[
|
|
709
|
-
$[
|
|
710
|
-
$[
|
|
711
|
-
$[
|
|
712
|
-
$[
|
|
713
|
-
$[
|
|
714
|
-
$[
|
|
715
|
-
$[
|
|
716
|
-
} else
|
|
717
|
-
const settleTypedOption =
|
|
718
|
-
let
|
|
719
|
-
if ($[
|
|
720
|
-
|
|
698
|
+
$[47] = clearOnBlur;
|
|
699
|
+
$[48] = clearSelectionAndInput;
|
|
700
|
+
$[49] = effectiveInputValue;
|
|
701
|
+
$[50] = effectiveSelectedKey;
|
|
702
|
+
$[51] = externalOnSelectionChange;
|
|
703
|
+
$[52] = getTypedOptions;
|
|
704
|
+
$[53] = isSameText;
|
|
705
|
+
$[54] = localCollectionState;
|
|
706
|
+
$[55] = pickLabel;
|
|
707
|
+
$[56] = restoreSelectedLabel;
|
|
708
|
+
$[57] = setSelectedKey;
|
|
709
|
+
$[58] = showSelectionLabel;
|
|
710
|
+
$[59] = t24;
|
|
711
|
+
} else t24 = $[59];
|
|
712
|
+
const settleTypedOption = t24;
|
|
713
|
+
let t25;
|
|
714
|
+
if ($[60] !== allowsCustomValue || $[61] !== isReadOnly || $[62] !== onBlur || $[63] !== setIsFilterActive || $[64] !== setIsPopoverOpen || $[65] !== settleCustomValueOnBlur || $[66] !== settleTypedOption) {
|
|
715
|
+
t25 = () => {
|
|
721
716
|
setIsPopoverOpen(false);
|
|
722
717
|
if (isReadOnly) {} else if (allowsCustomValue) settleCustomValueOnBlur();
|
|
723
718
|
else settleTypedOption();
|
|
724
719
|
onBlur?.();
|
|
725
720
|
setIsFilterActive(false);
|
|
726
721
|
};
|
|
727
|
-
$[
|
|
728
|
-
$[
|
|
729
|
-
$[
|
|
730
|
-
$[
|
|
731
|
-
$[
|
|
732
|
-
$[
|
|
733
|
-
$[
|
|
734
|
-
$[
|
|
735
|
-
} else
|
|
736
|
-
const handleCompositeBlur = useEvent(
|
|
737
|
-
const
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
$[75] = handleCompositeBlur;
|
|
748
|
-
$[76] = isDisabled;
|
|
749
|
-
$[77] = onFocus;
|
|
750
|
-
$[78] = popoverRef;
|
|
751
|
-
$[79] = t29;
|
|
752
|
-
$[80] = t30;
|
|
753
|
-
} else t30 = $[80];
|
|
754
|
-
const { compositeFocusProps } = useCompositeFocus(t30);
|
|
755
|
-
let t31;
|
|
756
|
-
if ($[81] !== isInvalid || $[82] !== isValid) {
|
|
757
|
-
t31 = getValidationIcon({
|
|
722
|
+
$[60] = allowsCustomValue;
|
|
723
|
+
$[61] = isReadOnly;
|
|
724
|
+
$[62] = onBlur;
|
|
725
|
+
$[63] = setIsFilterActive;
|
|
726
|
+
$[64] = setIsPopoverOpen;
|
|
727
|
+
$[65] = settleCustomValueOnBlur;
|
|
728
|
+
$[66] = settleTypedOption;
|
|
729
|
+
$[67] = t25;
|
|
730
|
+
} else t25 = $[67];
|
|
731
|
+
const handleCompositeBlur = useEvent(t25);
|
|
732
|
+
const { compositeFocusProps } = useCompositeFocus({
|
|
733
|
+
wrapperRef,
|
|
734
|
+
popoverRef,
|
|
735
|
+
onFocus,
|
|
736
|
+
onBlur: handleCompositeBlur,
|
|
737
|
+
isDisabled
|
|
738
|
+
});
|
|
739
|
+
let t26;
|
|
740
|
+
if ($[68] !== isInvalid || $[69] !== isValid) {
|
|
741
|
+
t26 = getValidationIcon({
|
|
758
742
|
isInvalid,
|
|
759
743
|
isValid
|
|
760
744
|
});
|
|
761
|
-
$[
|
|
762
|
-
$[
|
|
763
|
-
$[
|
|
764
|
-
} else
|
|
765
|
-
const validationIcon =
|
|
745
|
+
$[68] = isInvalid;
|
|
746
|
+
$[69] = isValid;
|
|
747
|
+
$[70] = t26;
|
|
748
|
+
} else t26 = $[70];
|
|
749
|
+
const validationIcon = t26;
|
|
766
750
|
const listStateRef = useRef(null);
|
|
767
751
|
const [activeOptionKey, setActiveOptionKey] = useState(null);
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
}, 0);
|
|
780
|
-
};
|
|
781
|
-
$[84] = externalOnSelectionChange;
|
|
782
|
-
$[85] = inputRef;
|
|
783
|
-
$[86] = pickLabel;
|
|
784
|
-
$[87] = setIsFilterActive;
|
|
785
|
-
$[88] = setIsPopoverOpen;
|
|
786
|
-
$[89] = setSelectedKey;
|
|
787
|
-
$[90] = showSelectionLabel;
|
|
788
|
-
$[91] = t32;
|
|
789
|
-
} else t32 = $[91];
|
|
790
|
-
const handleSelectionChange = useEvent(t32);
|
|
752
|
+
const handleSelectionChange = useEvent((selection) => {
|
|
753
|
+
const key_1 = Array.isArray(selection) ? selection[0] : selection;
|
|
754
|
+
setSelectedKey(key_1 ?? null);
|
|
755
|
+
setIsFilterActive(false);
|
|
756
|
+
showSelectionLabel(key_1 != null ? pickLabel(key_1) : "");
|
|
757
|
+
externalOnSelectionChange?.(key_1);
|
|
758
|
+
setIsPopoverOpen(false);
|
|
759
|
+
setTimeout(() => {
|
|
760
|
+
inputRef.current?.focus();
|
|
761
|
+
}, 0);
|
|
762
|
+
});
|
|
791
763
|
const lastSyncedSelectedKey = useRef(void 0);
|
|
792
764
|
const selectionClearedByTyping = useRef(false);
|
|
793
|
-
let
|
|
794
|
-
if ($[
|
|
795
|
-
|
|
765
|
+
let t27;
|
|
766
|
+
if ($[71] !== allowsCustomValue || $[72] !== effectiveSelectedKey || $[73] !== externalOnSelectionChange || $[74] !== isControlledInput || $[75] !== isControlledKey || $[76] !== isPopoverOpen || $[77] !== onInputChange || $[78] !== popoverTrigger || $[79] !== setInternalInputValue || $[80] !== setInternalSelectedKey || $[81] !== setIsFilterActive || $[82] !== setIsPopoverOpen) {
|
|
767
|
+
t27 = (e) => {
|
|
796
768
|
const value_1 = e.target.value;
|
|
797
769
|
if (!isControlledInput) setInternalInputValue(value_1);
|
|
798
770
|
onInputChange?.(value_1);
|
|
@@ -805,24 +777,24 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
805
777
|
}
|
|
806
778
|
if (popoverTrigger !== "manual" && value_1 && !isPopoverOpen) setIsPopoverOpen(true);
|
|
807
779
|
};
|
|
808
|
-
$[
|
|
809
|
-
$[
|
|
810
|
-
$[
|
|
811
|
-
$[
|
|
812
|
-
$[
|
|
813
|
-
$[
|
|
814
|
-
$[
|
|
815
|
-
$[
|
|
816
|
-
$[
|
|
817
|
-
$[
|
|
818
|
-
$[
|
|
819
|
-
$[
|
|
820
|
-
$[
|
|
821
|
-
} else
|
|
822
|
-
const handleInputChange = useEvent(
|
|
823
|
-
let
|
|
824
|
-
if ($[
|
|
825
|
-
|
|
780
|
+
$[71] = allowsCustomValue;
|
|
781
|
+
$[72] = effectiveSelectedKey;
|
|
782
|
+
$[73] = externalOnSelectionChange;
|
|
783
|
+
$[74] = isControlledInput;
|
|
784
|
+
$[75] = isControlledKey;
|
|
785
|
+
$[76] = isPopoverOpen;
|
|
786
|
+
$[77] = onInputChange;
|
|
787
|
+
$[78] = popoverTrigger;
|
|
788
|
+
$[79] = setInternalInputValue;
|
|
789
|
+
$[80] = setInternalSelectedKey;
|
|
790
|
+
$[81] = setIsFilterActive;
|
|
791
|
+
$[82] = setIsPopoverOpen;
|
|
792
|
+
$[83] = t27;
|
|
793
|
+
} else t27 = $[83];
|
|
794
|
+
const handleInputChange = useEvent(t27);
|
|
795
|
+
let t28;
|
|
796
|
+
if ($[84] !== effectiveSelectedKey || $[85] !== isControlledInput || $[86] !== isControlledKey || $[87] !== setInternalInputValue) {
|
|
797
|
+
t28 = () => {
|
|
826
798
|
const preserveTypedInput = selectionClearedByTyping.current;
|
|
827
799
|
selectionClearedByTyping.current = false;
|
|
828
800
|
if (!isControlledKey || isControlledInput) return;
|
|
@@ -831,364 +803,327 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
831
803
|
if (preserveTypedInput && effectiveSelectedKey == null) return;
|
|
832
804
|
setInternalInputValue(null);
|
|
833
805
|
};
|
|
834
|
-
$[
|
|
835
|
-
$[
|
|
836
|
-
$[
|
|
837
|
-
$[
|
|
838
|
-
$[
|
|
839
|
-
} else
|
|
840
|
-
let
|
|
841
|
-
if ($[
|
|
842
|
-
|
|
806
|
+
$[84] = effectiveSelectedKey;
|
|
807
|
+
$[85] = isControlledInput;
|
|
808
|
+
$[86] = isControlledKey;
|
|
809
|
+
$[87] = setInternalInputValue;
|
|
810
|
+
$[88] = t28;
|
|
811
|
+
} else t28 = $[88];
|
|
812
|
+
let t29;
|
|
813
|
+
if ($[89] !== effectiveInputValue || $[90] !== effectiveSelectedKey || $[91] !== isControlledInput || $[92] !== isControlledKey || $[93] !== setInternalInputValue) {
|
|
814
|
+
t29 = [
|
|
843
815
|
isControlledKey,
|
|
844
816
|
isControlledInput,
|
|
845
817
|
effectiveSelectedKey,
|
|
846
818
|
effectiveInputValue,
|
|
847
819
|
setInternalInputValue
|
|
848
820
|
];
|
|
849
|
-
$[
|
|
850
|
-
$[
|
|
851
|
-
$[
|
|
852
|
-
$[
|
|
853
|
-
$[
|
|
854
|
-
$[
|
|
855
|
-
} else
|
|
856
|
-
useEffect(
|
|
821
|
+
$[89] = effectiveInputValue;
|
|
822
|
+
$[90] = effectiveSelectedKey;
|
|
823
|
+
$[91] = isControlledInput;
|
|
824
|
+
$[92] = isControlledKey;
|
|
825
|
+
$[93] = setInternalInputValue;
|
|
826
|
+
$[94] = t29;
|
|
827
|
+
} else t29 = $[94];
|
|
828
|
+
useEffect(t28, t29);
|
|
857
829
|
const showClearButton = isClearable && (allowsCustomValue ? effectiveInputValue !== "" : effectiveSelectedKey != null) && !isDisabled && !isReadOnly;
|
|
858
|
-
let
|
|
859
|
-
if ($[
|
|
860
|
-
|
|
830
|
+
let t30;
|
|
831
|
+
if ($[95] !== hasResults || $[96] !== isDisabled || $[97] !== isReadOnly || $[98] !== setIsFilterActive || $[99] !== setIsPopoverOpen) {
|
|
832
|
+
t30 = () => {
|
|
861
833
|
if (isReadOnly || isDisabled) return;
|
|
862
834
|
if (!hasResults) setIsFilterActive(false);
|
|
863
835
|
setIsPopoverOpen(true);
|
|
864
836
|
};
|
|
865
|
-
$[
|
|
866
|
-
$[
|
|
867
|
-
$[
|
|
868
|
-
$[
|
|
869
|
-
$[
|
|
870
|
-
$[
|
|
871
|
-
} else
|
|
872
|
-
const openList =
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
$[123] = openList;
|
|
882
|
-
$[124] = setIsPopoverOpen;
|
|
883
|
-
$[125] = shouldShowPopover;
|
|
884
|
-
$[126] = t37;
|
|
885
|
-
} else t37 = $[126];
|
|
886
|
-
const toggleList = t37;
|
|
887
|
-
let t38;
|
|
888
|
-
if ($[127] !== focusProps || $[128] !== isPopoverOpen || $[129] !== openList || $[130] !== popoverTrigger) {
|
|
889
|
-
t38 = (e_0) => {
|
|
837
|
+
$[95] = hasResults;
|
|
838
|
+
$[96] = isDisabled;
|
|
839
|
+
$[97] = isReadOnly;
|
|
840
|
+
$[98] = setIsFilterActive;
|
|
841
|
+
$[99] = setIsPopoverOpen;
|
|
842
|
+
$[100] = t30;
|
|
843
|
+
} else t30 = $[100];
|
|
844
|
+
const openList = t30;
|
|
845
|
+
const toggleList = () => {
|
|
846
|
+
if (shouldShowPopover) setIsPopoverOpen(false);
|
|
847
|
+
else openList();
|
|
848
|
+
inputRef.current?.focus();
|
|
849
|
+
};
|
|
850
|
+
let t31;
|
|
851
|
+
if ($[101] !== focusProps || $[102] !== isPopoverOpen || $[103] !== openList || $[104] !== popoverTrigger) {
|
|
852
|
+
t31 = (e_0) => {
|
|
890
853
|
focusProps.onFocus?.(e_0);
|
|
891
854
|
if (popoverTrigger === "focus" && !isPopoverOpen) openList();
|
|
892
855
|
};
|
|
893
|
-
$[
|
|
894
|
-
$[
|
|
895
|
-
$[
|
|
896
|
-
$[
|
|
897
|
-
$[
|
|
898
|
-
} else
|
|
899
|
-
const handleInputFocus = useEvent(
|
|
856
|
+
$[101] = focusProps;
|
|
857
|
+
$[102] = isPopoverOpen;
|
|
858
|
+
$[103] = openList;
|
|
859
|
+
$[104] = popoverTrigger;
|
|
860
|
+
$[105] = t31;
|
|
861
|
+
} else t31 = $[105];
|
|
862
|
+
const handleInputFocus = useEvent(t31);
|
|
900
863
|
const pressStartedOnInputRef = useRef(false);
|
|
901
|
-
let
|
|
902
|
-
if ($[
|
|
903
|
-
|
|
864
|
+
let t32;
|
|
865
|
+
if ($[106] !== hasResults || $[107] !== openList || $[108] !== popoverTrigger || $[109] !== shouldShowPopover) {
|
|
866
|
+
t32 = () => {
|
|
904
867
|
const isInputPress = pressStartedOnInputRef.current;
|
|
905
868
|
pressStartedOnInputRef.current = false;
|
|
906
869
|
if (!isInputPress || popoverTrigger === "manual") return;
|
|
907
870
|
if (!shouldShowPopover && hasResults) openList();
|
|
908
871
|
};
|
|
909
|
-
$[
|
|
910
|
-
$[
|
|
911
|
-
$[
|
|
912
|
-
$[
|
|
913
|
-
$[
|
|
914
|
-
} else
|
|
915
|
-
const handleInputClick =
|
|
916
|
-
let
|
|
917
|
-
if ($[
|
|
918
|
-
|
|
872
|
+
$[106] = hasResults;
|
|
873
|
+
$[107] = openList;
|
|
874
|
+
$[108] = popoverTrigger;
|
|
875
|
+
$[109] = shouldShowPopover;
|
|
876
|
+
$[110] = t32;
|
|
877
|
+
} else t32 = $[110];
|
|
878
|
+
const handleInputClick = t32;
|
|
879
|
+
let t33;
|
|
880
|
+
if ($[111] !== focusProps) {
|
|
881
|
+
t33 = (e_1) => {
|
|
919
882
|
focusProps.onBlur?.(e_1);
|
|
920
883
|
};
|
|
921
|
-
$[
|
|
922
|
-
$[
|
|
923
|
-
} else
|
|
924
|
-
const handleInputBlur = useEvent(
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
$[
|
|
938
|
-
$[
|
|
939
|
-
$[
|
|
940
|
-
$[
|
|
941
|
-
$[
|
|
942
|
-
$[
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
const clearValue = useEvent(t41);
|
|
948
|
-
let t42;
|
|
949
|
-
if ($[149] !== effectiveInputValue || $[150] !== effectiveSelectedKey || $[151] !== getTypedOptions || $[152] !== isSameText || $[153] !== selectedLabel) {
|
|
950
|
-
t42 = () => effectiveSelectedKey != null && isSameText(selectedLabel, effectiveInputValue.trim()) || getTypedOptions().length > 0;
|
|
951
|
-
$[149] = effectiveInputValue;
|
|
952
|
-
$[150] = effectiveSelectedKey;
|
|
953
|
-
$[151] = getTypedOptions;
|
|
954
|
-
$[152] = isSameText;
|
|
955
|
-
$[153] = selectedLabel;
|
|
956
|
-
$[154] = t42;
|
|
957
|
-
} else t42 = $[154];
|
|
958
|
-
let t43;
|
|
959
|
-
if ($[155] !== setIsFilterActive || $[156] !== settleTypedOption) {
|
|
960
|
-
t43 = () => {
|
|
884
|
+
$[111] = focusProps;
|
|
885
|
+
$[112] = t33;
|
|
886
|
+
} else t33 = $[112];
|
|
887
|
+
const handleInputBlur = useEvent(t33);
|
|
888
|
+
const clearValue = useEvent(() => {
|
|
889
|
+
if (!isControlledInput) setInternalInputValue(null);
|
|
890
|
+
onInputChange?.("");
|
|
891
|
+
setSelectedKey(null);
|
|
892
|
+
externalOnSelectionChange?.(null);
|
|
893
|
+
if (isPopoverOpen) setIsPopoverOpen(false);
|
|
894
|
+
inputRef.current?.focus();
|
|
895
|
+
onClear?.();
|
|
896
|
+
});
|
|
897
|
+
let t34;
|
|
898
|
+
if ($[113] !== effectiveInputValue || $[114] !== effectiveSelectedKey || $[115] !== getTypedOptions || $[116] !== isSameText || $[117] !== selectedLabel) {
|
|
899
|
+
t34 = () => effectiveSelectedKey != null && isSameText(selectedLabel, effectiveInputValue.trim()) || getTypedOptions().length > 0;
|
|
900
|
+
$[113] = effectiveInputValue;
|
|
901
|
+
$[114] = effectiveSelectedKey;
|
|
902
|
+
$[115] = getTypedOptions;
|
|
903
|
+
$[116] = isSameText;
|
|
904
|
+
$[117] = selectedLabel;
|
|
905
|
+
$[118] = t34;
|
|
906
|
+
} else t34 = $[118];
|
|
907
|
+
let t35;
|
|
908
|
+
if ($[119] !== setIsFilterActive || $[120] !== settleTypedOption) {
|
|
909
|
+
t35 = () => {
|
|
961
910
|
settleTypedOption();
|
|
962
911
|
setIsFilterActive(false);
|
|
963
912
|
};
|
|
964
|
-
$[
|
|
965
|
-
$[
|
|
966
|
-
$[
|
|
967
|
-
} else
|
|
968
|
-
let
|
|
969
|
-
if ($[
|
|
970
|
-
|
|
971
|
-
$[
|
|
972
|
-
$[
|
|
973
|
-
} else
|
|
974
|
-
const
|
|
975
|
-
let
|
|
976
|
-
if ($[
|
|
977
|
-
|
|
913
|
+
$[119] = setIsFilterActive;
|
|
914
|
+
$[120] = settleTypedOption;
|
|
915
|
+
$[121] = t35;
|
|
916
|
+
} else t35 = $[121];
|
|
917
|
+
let t36;
|
|
918
|
+
if ($[122] !== setIsPopoverOpen) {
|
|
919
|
+
t36 = () => setIsPopoverOpen(false);
|
|
920
|
+
$[122] = setIsPopoverOpen;
|
|
921
|
+
$[123] = t36;
|
|
922
|
+
} else t36 = $[123];
|
|
923
|
+
const t37 = inputRef;
|
|
924
|
+
let t38;
|
|
925
|
+
if ($[124] !== allowsCustomValue || $[125] !== clearValue || $[126] !== effectiveInputValue || $[127] !== effectiveSelectedKey || $[128] !== handleSelectionChange || $[129] !== isClearable || $[130] !== isReadOnly || $[131] !== onKeyDown || $[132] !== openList || $[133] !== selectedLabel || $[134] !== shouldShowPopover || $[135] !== t34 || $[136] !== t35 || $[137] !== t36 || $[138] !== t37) {
|
|
926
|
+
t38 = {
|
|
978
927
|
isListShown: shouldShowPopover,
|
|
979
928
|
isReadOnly,
|
|
980
929
|
listStateRef,
|
|
981
|
-
hasTypedMatch:
|
|
930
|
+
hasTypedMatch: t34,
|
|
982
931
|
allowsCustomValue,
|
|
983
932
|
effectiveInputValue,
|
|
984
933
|
selectedKey: effectiveSelectedKey,
|
|
985
934
|
selectedLabel,
|
|
986
935
|
isClearable,
|
|
987
936
|
onSelectionChange: handleSelectionChange,
|
|
988
|
-
onSettleTypedText:
|
|
937
|
+
onSettleTypedText: t35,
|
|
989
938
|
onClearValue: clearValue,
|
|
990
939
|
onOpenList: openList,
|
|
991
|
-
onCloseList:
|
|
992
|
-
inputRef:
|
|
940
|
+
onCloseList: t36,
|
|
941
|
+
inputRef: t37,
|
|
993
942
|
onVirtualFocus: setActiveOptionKey,
|
|
994
943
|
onKeyDown
|
|
995
944
|
};
|
|
996
|
-
$[
|
|
997
|
-
$[
|
|
998
|
-
$[
|
|
999
|
-
$[
|
|
1000
|
-
$[
|
|
1001
|
-
$[
|
|
1002
|
-
$[
|
|
1003
|
-
$[
|
|
1004
|
-
$[
|
|
1005
|
-
$[
|
|
1006
|
-
$[
|
|
1007
|
-
$[
|
|
1008
|
-
$[
|
|
1009
|
-
$[
|
|
1010
|
-
$[
|
|
1011
|
-
$[
|
|
1012
|
-
} else
|
|
1013
|
-
const { keyboardProps } = useComboBoxKeyboard(
|
|
945
|
+
$[124] = allowsCustomValue;
|
|
946
|
+
$[125] = clearValue;
|
|
947
|
+
$[126] = effectiveInputValue;
|
|
948
|
+
$[127] = effectiveSelectedKey;
|
|
949
|
+
$[128] = handleSelectionChange;
|
|
950
|
+
$[129] = isClearable;
|
|
951
|
+
$[130] = isReadOnly;
|
|
952
|
+
$[131] = onKeyDown;
|
|
953
|
+
$[132] = openList;
|
|
954
|
+
$[133] = selectedLabel;
|
|
955
|
+
$[134] = shouldShowPopover;
|
|
956
|
+
$[135] = t34;
|
|
957
|
+
$[136] = t35;
|
|
958
|
+
$[137] = t36;
|
|
959
|
+
$[138] = t37;
|
|
960
|
+
$[139] = t38;
|
|
961
|
+
} else t38 = $[139];
|
|
962
|
+
const { keyboardProps } = useComboBoxKeyboard(t38);
|
|
1014
963
|
if (icon) {
|
|
1015
|
-
let
|
|
1016
|
-
if ($[
|
|
1017
|
-
|
|
964
|
+
let t39;
|
|
965
|
+
if ($[140] !== icon) {
|
|
966
|
+
t39 = /* @__PURE__ */ jsx("div", {
|
|
1018
967
|
"data-element": "InputIcon",
|
|
1019
968
|
children: icon
|
|
1020
969
|
});
|
|
1021
|
-
$[
|
|
1022
|
-
$[
|
|
1023
|
-
} else
|
|
1024
|
-
icon =
|
|
970
|
+
$[140] = icon;
|
|
971
|
+
$[141] = t39;
|
|
972
|
+
} else t39 = $[141];
|
|
973
|
+
icon = t39;
|
|
1025
974
|
if (prefix) {
|
|
1026
|
-
let
|
|
1027
|
-
if ($[
|
|
1028
|
-
|
|
1029
|
-
$[
|
|
1030
|
-
$[
|
|
1031
|
-
$[
|
|
1032
|
-
} else
|
|
1033
|
-
prefix =
|
|
975
|
+
let t40;
|
|
976
|
+
if ($[142] !== icon || $[143] !== prefix) {
|
|
977
|
+
t40 = /* @__PURE__ */ jsxs(Fragment$1, { children: [icon, prefix] });
|
|
978
|
+
$[142] = icon;
|
|
979
|
+
$[143] = prefix;
|
|
980
|
+
$[144] = t40;
|
|
981
|
+
} else t40 = $[144];
|
|
982
|
+
prefix = t40;
|
|
1034
983
|
} else prefix = icon;
|
|
1035
984
|
}
|
|
1036
|
-
let
|
|
1037
|
-
if ($[
|
|
1038
|
-
|
|
985
|
+
let t39;
|
|
986
|
+
if ($[145] !== isInvalid || $[146] !== isValid) {
|
|
987
|
+
t39 = getValidationMods({
|
|
1039
988
|
isInvalid,
|
|
1040
989
|
isValid
|
|
1041
990
|
});
|
|
1042
|
-
$[
|
|
1043
|
-
$[
|
|
1044
|
-
$[
|
|
1045
|
-
} else
|
|
1046
|
-
const
|
|
1047
|
-
const
|
|
1048
|
-
let
|
|
1049
|
-
if ($[
|
|
1050
|
-
|
|
1051
|
-
...
|
|
991
|
+
$[145] = isInvalid;
|
|
992
|
+
$[146] = isValid;
|
|
993
|
+
$[147] = t39;
|
|
994
|
+
} else t39 = $[147];
|
|
995
|
+
const t40 = !!isReadOnly;
|
|
996
|
+
const t41 = !!prefix;
|
|
997
|
+
let t42;
|
|
998
|
+
if ($[148] !== isDisabled || $[149] !== isFocused || $[150] !== isLoading || $[151] !== props.mods || $[152] !== showClearButton || $[153] !== t39 || $[154] !== t40 || $[155] !== t41) {
|
|
999
|
+
t42 = {
|
|
1000
|
+
...t39,
|
|
1052
1001
|
disabled: isDisabled,
|
|
1053
|
-
readonly:
|
|
1002
|
+
readonly: t40,
|
|
1054
1003
|
hovered: false,
|
|
1055
1004
|
focused: isFocused,
|
|
1056
1005
|
loading: isLoading,
|
|
1057
|
-
prefix:
|
|
1006
|
+
prefix: t41,
|
|
1058
1007
|
suffix: true,
|
|
1059
1008
|
clearable: showClearButton,
|
|
1060
1009
|
...props.mods
|
|
1061
1010
|
};
|
|
1062
|
-
$[
|
|
1063
|
-
$[
|
|
1064
|
-
$[
|
|
1065
|
-
$[
|
|
1066
|
-
$[
|
|
1067
|
-
$[
|
|
1068
|
-
$[
|
|
1069
|
-
$[
|
|
1070
|
-
$[
|
|
1071
|
-
} else
|
|
1072
|
-
const mods =
|
|
1011
|
+
$[148] = isDisabled;
|
|
1012
|
+
$[149] = isFocused;
|
|
1013
|
+
$[150] = isLoading;
|
|
1014
|
+
$[151] = props.mods;
|
|
1015
|
+
$[152] = showClearButton;
|
|
1016
|
+
$[153] = t39;
|
|
1017
|
+
$[154] = t40;
|
|
1018
|
+
$[155] = t41;
|
|
1019
|
+
$[156] = t42;
|
|
1020
|
+
} else t42 = $[156];
|
|
1021
|
+
const mods = t42;
|
|
1073
1022
|
const [comboBoxWidth, setComboBoxWidth] = useState();
|
|
1074
|
-
let
|
|
1075
|
-
let
|
|
1076
|
-
if ($[
|
|
1077
|
-
|
|
1078
|
-
if (isPopoverOpen && !hasResults) setIsPopoverOpen(false);
|
|
1023
|
+
let t43;
|
|
1024
|
+
let t44;
|
|
1025
|
+
if ($[157] !== hasEmptyLabel || $[158] !== hasResults || $[159] !== isPopoverOpen || $[160] !== setIsPopoverOpen) {
|
|
1026
|
+
t43 = () => {
|
|
1027
|
+
if (isPopoverOpen && !hasResults && !hasEmptyLabel) setIsPopoverOpen(false);
|
|
1079
1028
|
};
|
|
1080
|
-
|
|
1029
|
+
t44 = [
|
|
1081
1030
|
isPopoverOpen,
|
|
1082
1031
|
hasResults,
|
|
1032
|
+
hasEmptyLabel,
|
|
1083
1033
|
setIsPopoverOpen
|
|
1084
1034
|
];
|
|
1085
|
-
$[
|
|
1086
|
-
$[
|
|
1087
|
-
$[
|
|
1088
|
-
$[
|
|
1089
|
-
$[
|
|
1035
|
+
$[157] = hasEmptyLabel;
|
|
1036
|
+
$[158] = hasResults;
|
|
1037
|
+
$[159] = isPopoverOpen;
|
|
1038
|
+
$[160] = setIsPopoverOpen;
|
|
1039
|
+
$[161] = t43;
|
|
1040
|
+
$[162] = t44;
|
|
1090
1041
|
} else {
|
|
1091
|
-
|
|
1092
|
-
|
|
1042
|
+
t43 = $[161];
|
|
1043
|
+
t44 = $[162];
|
|
1093
1044
|
}
|
|
1094
|
-
useEffect(
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
const
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
if (key_2 == null && attempts < 8) frame = requestAnimationFrame(tick);
|
|
1107
|
-
};
|
|
1108
|
-
frame = requestAnimationFrame(() => {
|
|
1109
|
-
frame = requestAnimationFrame(tick);
|
|
1110
|
-
});
|
|
1111
|
-
return () => cancelAnimationFrame(frame);
|
|
1045
|
+
useEffect(t43, t44);
|
|
1046
|
+
const shownOptionKeys = filteredOptions.map(_temp3).join("\0");
|
|
1047
|
+
useLayoutEffect$1(() => {
|
|
1048
|
+
if (!shouldShowPopover) return;
|
|
1049
|
+
setComboBoxWidth(wrapperRef.current?.offsetWidth);
|
|
1050
|
+
let attempts = 0;
|
|
1051
|
+
let frame = 0;
|
|
1052
|
+
const tick = () => {
|
|
1053
|
+
const key_2 = highlightOption(listStateRef.current, effectiveSelectedKey);
|
|
1054
|
+
if (key_2 != null) setActiveOptionKey(key_2);
|
|
1055
|
+
attempts = attempts + 1;
|
|
1056
|
+
if (key_2 == null && attempts < 8) frame = requestAnimationFrame(tick);
|
|
1112
1057
|
};
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
$[205] = t54;
|
|
1131
|
-
$[206] = t55;
|
|
1132
|
-
} else t55 = $[206];
|
|
1133
|
-
useLayoutEffect$1(t53, t55);
|
|
1134
|
-
const activeDescendant = shouldShowPopover && activeOptionKey != null && filteredOptions.some((option) => option.key === activeOptionKey) ? getListBoxOptionId(`ComboBoxListBox-${comboBoxId}`, activeOptionKey) : void 0;
|
|
1135
|
-
const t56 = wrapperRef;
|
|
1136
|
-
const t57 = styles;
|
|
1137
|
-
let t58;
|
|
1138
|
-
if ($[207] !== prefix) {
|
|
1139
|
-
t58 = prefix ? /* @__PURE__ */ jsx("div", {
|
|
1058
|
+
frame = requestAnimationFrame(() => {
|
|
1059
|
+
frame = requestAnimationFrame(tick);
|
|
1060
|
+
});
|
|
1061
|
+
return () => cancelAnimationFrame(frame);
|
|
1062
|
+
}, [
|
|
1063
|
+
shouldShowPopover,
|
|
1064
|
+
effectiveSelectedKey,
|
|
1065
|
+
effectiveInputValue,
|
|
1066
|
+
shownOptionKeys,
|
|
1067
|
+
wrapperRef
|
|
1068
|
+
]);
|
|
1069
|
+
const activeDescendant = shouldShowPopover && activeOptionKey != null && filteredOptions.some((option_0) => option_0.key === activeOptionKey) ? getListBoxOptionId(`ComboBoxListBox-${comboBoxId}`, activeOptionKey) : void 0;
|
|
1070
|
+
const t45 = wrapperRef;
|
|
1071
|
+
const t46 = styles;
|
|
1072
|
+
let t47;
|
|
1073
|
+
if ($[163] !== prefix) {
|
|
1074
|
+
t47 = prefix ? /* @__PURE__ */ jsx("div", {
|
|
1140
1075
|
"data-element": "Prefix",
|
|
1141
1076
|
children: prefix
|
|
1142
1077
|
}) : null;
|
|
1143
|
-
$[
|
|
1144
|
-
$[
|
|
1145
|
-
} else
|
|
1146
|
-
let
|
|
1147
|
-
if ($[
|
|
1148
|
-
|
|
1149
|
-
$[
|
|
1150
|
-
$[
|
|
1151
|
-
} else
|
|
1152
|
-
const
|
|
1153
|
-
const
|
|
1154
|
-
let
|
|
1155
|
-
if ($[
|
|
1156
|
-
|
|
1078
|
+
$[163] = prefix;
|
|
1079
|
+
$[164] = t47;
|
|
1080
|
+
} else t47 = $[164];
|
|
1081
|
+
let t48;
|
|
1082
|
+
if ($[165] !== props) {
|
|
1083
|
+
t48 = pickBaseCustomizationProps(props);
|
|
1084
|
+
$[165] = props;
|
|
1085
|
+
$[166] = t48;
|
|
1086
|
+
} else t48 = $[166];
|
|
1087
|
+
const t49 = qa || "ComboBox";
|
|
1088
|
+
const t50 = inputRef;
|
|
1089
|
+
let t51;
|
|
1090
|
+
if ($[167] !== focusProps || $[168] !== handleInputBlur) {
|
|
1091
|
+
t51 = {
|
|
1157
1092
|
...focusProps,
|
|
1158
1093
|
onBlur: handleInputBlur
|
|
1159
1094
|
};
|
|
1160
|
-
$[
|
|
1161
|
-
$[
|
|
1162
|
-
$[
|
|
1163
|
-
} else
|
|
1164
|
-
let
|
|
1165
|
-
if ($[
|
|
1166
|
-
|
|
1095
|
+
$[167] = focusProps;
|
|
1096
|
+
$[168] = handleInputBlur;
|
|
1097
|
+
$[169] = t51;
|
|
1098
|
+
} else t51 = $[169];
|
|
1099
|
+
let t52;
|
|
1100
|
+
if ($[170] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1101
|
+
t52 = () => {
|
|
1167
1102
|
pressStartedOnInputRef.current = true;
|
|
1168
1103
|
};
|
|
1169
|
-
$[
|
|
1170
|
-
} else
|
|
1171
|
-
const
|
|
1172
|
-
const
|
|
1173
|
-
const
|
|
1174
|
-
let
|
|
1175
|
-
if ($[
|
|
1176
|
-
|
|
1177
|
-
"aria-label":
|
|
1178
|
-
"aria-labelledby":
|
|
1179
|
-
"aria-describedby":
|
|
1104
|
+
$[170] = t52;
|
|
1105
|
+
} else t52 = $[170];
|
|
1106
|
+
const t53 = props["aria-label"];
|
|
1107
|
+
const t54 = props["aria-labelledby"];
|
|
1108
|
+
const t55 = props["aria-describedby"];
|
|
1109
|
+
let t56;
|
|
1110
|
+
if ($[171] !== t53 || $[172] !== t54 || $[173] !== t55) {
|
|
1111
|
+
t56 = {
|
|
1112
|
+
"aria-label": t53,
|
|
1113
|
+
"aria-labelledby": t54,
|
|
1114
|
+
"aria-describedby": t55
|
|
1180
1115
|
};
|
|
1181
|
-
$[
|
|
1182
|
-
$[
|
|
1183
|
-
$[
|
|
1184
|
-
$[
|
|
1185
|
-
} else
|
|
1186
|
-
let
|
|
1187
|
-
if ($[
|
|
1188
|
-
|
|
1189
|
-
customizationProps:
|
|
1190
|
-
qa:
|
|
1191
|
-
inputRef:
|
|
1116
|
+
$[171] = t53;
|
|
1117
|
+
$[172] = t54;
|
|
1118
|
+
$[173] = t55;
|
|
1119
|
+
$[174] = t56;
|
|
1120
|
+
} else t56 = $[174];
|
|
1121
|
+
let t57;
|
|
1122
|
+
if ($[175] !== activeDescendant || $[176] !== autoComplete || $[177] !== autoFocus || $[178] !== effectiveInputValue || $[179] !== handleInputChange || $[180] !== handleInputClick || $[181] !== handleInputFocus || $[182] !== id || $[183] !== inputStyles || $[184] !== isDisabled || $[185] !== isIdentifier || $[186] !== isInvalid || $[187] !== isReadOnly || $[188] !== isRequired || $[189] !== keyboardProps || $[190] !== mods || $[191] !== placeholder || $[192] !== shouldShowPopover || $[193] !== size || $[194] !== t48 || $[195] !== t49 || $[196] !== t50 || $[197] !== t51 || $[198] !== t56) {
|
|
1123
|
+
t57 = /* @__PURE__ */ jsx(ComboBoxInput, {
|
|
1124
|
+
customizationProps: t48,
|
|
1125
|
+
qa: t49,
|
|
1126
|
+
inputRef: t50,
|
|
1192
1127
|
id,
|
|
1193
1128
|
value: effectiveInputValue,
|
|
1194
1129
|
placeholder,
|
|
@@ -1202,68 +1137,75 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
1202
1137
|
mods,
|
|
1203
1138
|
inputStyles,
|
|
1204
1139
|
keyboardProps,
|
|
1205
|
-
focusProps:
|
|
1140
|
+
focusProps: t51,
|
|
1206
1141
|
isListShown: shouldShowPopover,
|
|
1207
1142
|
comboBoxId,
|
|
1208
1143
|
activeDescendant,
|
|
1209
1144
|
onChange: handleInputChange,
|
|
1210
1145
|
onFocus: handleInputFocus,
|
|
1211
|
-
onPointerDown:
|
|
1146
|
+
onPointerDown: t52,
|
|
1212
1147
|
onClick: handleInputClick,
|
|
1213
|
-
ariaProps:
|
|
1148
|
+
ariaProps: t56,
|
|
1214
1149
|
isInvalid
|
|
1215
1150
|
});
|
|
1216
|
-
$[
|
|
1217
|
-
$[
|
|
1218
|
-
$[
|
|
1219
|
-
$[
|
|
1220
|
-
$[
|
|
1221
|
-
$[
|
|
1222
|
-
$[
|
|
1223
|
-
$[
|
|
1224
|
-
$[
|
|
1225
|
-
$[
|
|
1226
|
-
$[
|
|
1227
|
-
$[
|
|
1228
|
-
$[
|
|
1229
|
-
$[
|
|
1230
|
-
$[
|
|
1231
|
-
$[
|
|
1232
|
-
$[
|
|
1233
|
-
$[
|
|
1234
|
-
$[
|
|
1235
|
-
$[
|
|
1236
|
-
$[
|
|
1237
|
-
$[
|
|
1238
|
-
$[
|
|
1239
|
-
$[
|
|
1240
|
-
$[
|
|
1241
|
-
} else
|
|
1242
|
-
let
|
|
1243
|
-
if ($[
|
|
1244
|
-
|
|
1151
|
+
$[175] = activeDescendant;
|
|
1152
|
+
$[176] = autoComplete;
|
|
1153
|
+
$[177] = autoFocus;
|
|
1154
|
+
$[178] = effectiveInputValue;
|
|
1155
|
+
$[179] = handleInputChange;
|
|
1156
|
+
$[180] = handleInputClick;
|
|
1157
|
+
$[181] = handleInputFocus;
|
|
1158
|
+
$[182] = id;
|
|
1159
|
+
$[183] = inputStyles;
|
|
1160
|
+
$[184] = isDisabled;
|
|
1161
|
+
$[185] = isIdentifier;
|
|
1162
|
+
$[186] = isInvalid;
|
|
1163
|
+
$[187] = isReadOnly;
|
|
1164
|
+
$[188] = isRequired;
|
|
1165
|
+
$[189] = keyboardProps;
|
|
1166
|
+
$[190] = mods;
|
|
1167
|
+
$[191] = placeholder;
|
|
1168
|
+
$[192] = shouldShowPopover;
|
|
1169
|
+
$[193] = size;
|
|
1170
|
+
$[194] = t48;
|
|
1171
|
+
$[195] = t49;
|
|
1172
|
+
$[196] = t50;
|
|
1173
|
+
$[197] = t51;
|
|
1174
|
+
$[198] = t56;
|
|
1175
|
+
$[199] = t57;
|
|
1176
|
+
} else t57 = $[199];
|
|
1177
|
+
let t58;
|
|
1178
|
+
if ($[200] !== effectiveSelectedKey || $[201] !== isDisabled || $[202] !== props.name) {
|
|
1179
|
+
t58 = props.name ? /* @__PURE__ */ jsx("input", {
|
|
1245
1180
|
type: "hidden",
|
|
1246
1181
|
name: props.name,
|
|
1247
1182
|
value: effectiveSelectedKey ?? "",
|
|
1248
1183
|
disabled: isDisabled
|
|
1249
1184
|
}) : null;
|
|
1250
|
-
$[
|
|
1251
|
-
$[
|
|
1252
|
-
$[
|
|
1253
|
-
$[
|
|
1254
|
-
} else
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
$[
|
|
1260
|
-
$[
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1185
|
+
$[200] = effectiveSelectedKey;
|
|
1186
|
+
$[201] = isDisabled;
|
|
1187
|
+
$[202] = props.name;
|
|
1188
|
+
$[203] = t58;
|
|
1189
|
+
} else t58 = $[203];
|
|
1190
|
+
let t59;
|
|
1191
|
+
if ($[204] !== announcesEmptyLabel || $[205] !== emptyLabel) {
|
|
1192
|
+
t59 = emptyLabel !== void 0 ? /* @__PURE__ */ jsx(EmptyLabelStatus, { children: announcesEmptyLabel ? emptyLabel : null }) : null;
|
|
1193
|
+
$[204] = announcesEmptyLabel;
|
|
1194
|
+
$[205] = emptyLabel;
|
|
1195
|
+
$[206] = t59;
|
|
1196
|
+
} else t59 = $[206];
|
|
1197
|
+
const t60 = suffixPosition === "before" ? suffix : null;
|
|
1198
|
+
let t61;
|
|
1199
|
+
if ($[207] !== isLoading || $[208] !== validationIcon) {
|
|
1200
|
+
t61 = isLoading ? /* @__PURE__ */ jsx(LoadingIcon, { "data-element": "InputIcon" }) : validationIcon;
|
|
1201
|
+
$[207] = isLoading;
|
|
1202
|
+
$[208] = validationIcon;
|
|
1203
|
+
$[209] = t61;
|
|
1204
|
+
} else t61 = $[209];
|
|
1205
|
+
const t62 = suffixPosition === "after" ? suffix : null;
|
|
1206
|
+
let t63;
|
|
1207
|
+
if ($[210] !== clearValue || $[211] !== hideTrigger || $[212] !== showClearButton || $[213] !== size || $[214] !== t) {
|
|
1208
|
+
t63 = showClearButton && /* @__PURE__ */ jsx(_CollectionItem.Action, {
|
|
1267
1209
|
excludeFromTabOrder: true,
|
|
1268
1210
|
icon: /* @__PURE__ */ jsx(CloseIcon, {}),
|
|
1269
1211
|
size,
|
|
@@ -1273,16 +1215,16 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
1273
1215
|
"aria-label": t("comboBox.clearValue", "Clear value"),
|
|
1274
1216
|
onPress: clearValue
|
|
1275
1217
|
});
|
|
1276
|
-
$[
|
|
1277
|
-
$[
|
|
1278
|
-
$[
|
|
1279
|
-
$[
|
|
1280
|
-
$[
|
|
1281
|
-
$[
|
|
1282
|
-
} else
|
|
1283
|
-
let
|
|
1284
|
-
if ($[
|
|
1285
|
-
|
|
1218
|
+
$[210] = clearValue;
|
|
1219
|
+
$[211] = hideTrigger;
|
|
1220
|
+
$[212] = showClearButton;
|
|
1221
|
+
$[213] = size;
|
|
1222
|
+
$[214] = t;
|
|
1223
|
+
$[215] = t63;
|
|
1224
|
+
} else t63 = $[215];
|
|
1225
|
+
let t64;
|
|
1226
|
+
if ($[216] !== hideTrigger || $[217] !== isDisabled || $[218] !== isLoading || $[219] !== shouldShowPopover || $[220] !== size || $[221] !== t || $[222] !== toggleList || $[223] !== triggerRef || $[224] !== triggerStyles) {
|
|
1227
|
+
t64 = !hideTrigger ? /* @__PURE__ */ jsx(_CollectionItem.Action, {
|
|
1286
1228
|
ref: triggerRef,
|
|
1287
1229
|
excludeFromTabOrder: true,
|
|
1288
1230
|
"data-popover-trigger": true,
|
|
@@ -1301,49 +1243,56 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
1301
1243
|
"aria-label": t("comboBox.showOptions", "Show options"),
|
|
1302
1244
|
onPress: toggleList
|
|
1303
1245
|
}) : null;
|
|
1304
|
-
$[
|
|
1305
|
-
$[
|
|
1306
|
-
$[
|
|
1307
|
-
$[
|
|
1308
|
-
$[
|
|
1309
|
-
$[
|
|
1310
|
-
$[
|
|
1311
|
-
$[
|
|
1312
|
-
$[
|
|
1313
|
-
$[
|
|
1314
|
-
} else
|
|
1315
|
-
let
|
|
1316
|
-
if ($[
|
|
1317
|
-
|
|
1246
|
+
$[216] = hideTrigger;
|
|
1247
|
+
$[217] = isDisabled;
|
|
1248
|
+
$[218] = isLoading;
|
|
1249
|
+
$[219] = shouldShowPopover;
|
|
1250
|
+
$[220] = size;
|
|
1251
|
+
$[221] = t;
|
|
1252
|
+
$[222] = toggleList;
|
|
1253
|
+
$[223] = triggerRef;
|
|
1254
|
+
$[224] = triggerStyles;
|
|
1255
|
+
$[225] = t64;
|
|
1256
|
+
} else t64 = $[225];
|
|
1257
|
+
let t65;
|
|
1258
|
+
if ($[226] !== t60 || $[227] !== t61 || $[228] !== t62 || $[229] !== t63 || $[230] !== t64) {
|
|
1259
|
+
t65 = /* @__PURE__ */ jsxs("div", {
|
|
1318
1260
|
"data-element": "Suffix",
|
|
1319
1261
|
children: [
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1262
|
+
t60,
|
|
1263
|
+
t61,
|
|
1264
|
+
t62,
|
|
1265
|
+
t63,
|
|
1266
|
+
t64
|
|
1325
1267
|
]
|
|
1326
1268
|
});
|
|
1327
|
-
$[
|
|
1328
|
-
$[
|
|
1329
|
-
$[
|
|
1330
|
-
$[
|
|
1331
|
-
$[
|
|
1332
|
-
$[
|
|
1333
|
-
} else
|
|
1334
|
-
const
|
|
1335
|
-
const
|
|
1336
|
-
let
|
|
1337
|
-
if ($[
|
|
1338
|
-
|
|
1339
|
-
$[
|
|
1340
|
-
$[
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1269
|
+
$[226] = t60;
|
|
1270
|
+
$[227] = t61;
|
|
1271
|
+
$[228] = t62;
|
|
1272
|
+
$[229] = t63;
|
|
1273
|
+
$[230] = t64;
|
|
1274
|
+
$[231] = t65;
|
|
1275
|
+
} else t65 = $[231];
|
|
1276
|
+
const t66 = wrapperRef;
|
|
1277
|
+
const t67 = props["aria-label"];
|
|
1278
|
+
let t68;
|
|
1279
|
+
if ($[232] !== filterFn || $[233] !== hasResults) {
|
|
1280
|
+
t68 = hasResults ? filterFn : _temp4;
|
|
1281
|
+
$[232] = filterFn;
|
|
1282
|
+
$[233] = hasResults;
|
|
1283
|
+
$[234] = t68;
|
|
1284
|
+
} else t68 = $[234];
|
|
1285
|
+
let t69;
|
|
1286
|
+
if ($[235] !== setIsPopoverOpen) {
|
|
1287
|
+
t69 = () => setIsPopoverOpen(false);
|
|
1288
|
+
$[235] = setIsPopoverOpen;
|
|
1289
|
+
$[236] = t69;
|
|
1290
|
+
} else t69 = $[236];
|
|
1291
|
+
let t70;
|
|
1292
|
+
if ($[237] !== children || $[238] !== comboBoxWidth || $[239] !== compositeFocusProps || $[240] !== containerPadding || $[241] !== direction || $[242] !== effectiveSelectedKey || $[243] !== emptyLabel || $[244] !== handleSelectionChange || $[245] !== headingStyles || $[246] !== isDisabled || $[247] !== label || $[248] !== listBoxRef || $[249] !== listBoxStyles || $[250] !== listGap || $[251] !== optionStyles || $[252] !== overlayOffset || $[253] !== overlayStyles || $[254] !== popoverRef || $[255] !== props.disabledKeys || $[256] !== sectionStyles || $[257] !== shouldFlip || $[258] !== shouldShowPopover || $[259] !== size || $[260] !== sortedItems || $[261] !== t66 || $[262] !== t67 || $[263] !== t68 || $[264] !== t69) {
|
|
1293
|
+
t70 = /* @__PURE__ */ jsx(ListBoxPopover, {
|
|
1345
1294
|
isOpen: shouldShowPopover,
|
|
1346
|
-
triggerRef:
|
|
1295
|
+
triggerRef: t66,
|
|
1347
1296
|
popoverRef,
|
|
1348
1297
|
listBoxRef,
|
|
1349
1298
|
direction,
|
|
@@ -1365,55 +1314,58 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
1365
1314
|
items: sortedItems,
|
|
1366
1315
|
listStateRef,
|
|
1367
1316
|
label,
|
|
1368
|
-
ariaLabel:
|
|
1317
|
+
ariaLabel: t67,
|
|
1369
1318
|
compositeFocusProps,
|
|
1370
|
-
filter:
|
|
1319
|
+
filter: t68,
|
|
1371
1320
|
size,
|
|
1321
|
+
emptyLabel,
|
|
1372
1322
|
onSelectionChange: handleSelectionChange,
|
|
1373
|
-
onClose:
|
|
1323
|
+
onClose: t69,
|
|
1374
1324
|
children
|
|
1375
1325
|
});
|
|
1376
|
-
$[
|
|
1377
|
-
$[
|
|
1378
|
-
$[
|
|
1379
|
-
$[
|
|
1380
|
-
$[
|
|
1381
|
-
$[
|
|
1382
|
-
$[
|
|
1383
|
-
$[
|
|
1384
|
-
$[
|
|
1385
|
-
$[
|
|
1386
|
-
$[
|
|
1387
|
-
$[
|
|
1388
|
-
$[
|
|
1389
|
-
$[
|
|
1390
|
-
$[
|
|
1391
|
-
$[
|
|
1392
|
-
$[
|
|
1393
|
-
$[
|
|
1394
|
-
$[
|
|
1395
|
-
$[
|
|
1396
|
-
$[
|
|
1397
|
-
$[
|
|
1398
|
-
$[
|
|
1399
|
-
$[
|
|
1400
|
-
$[
|
|
1401
|
-
$[
|
|
1402
|
-
$[
|
|
1403
|
-
$[
|
|
1404
|
-
|
|
1326
|
+
$[237] = children;
|
|
1327
|
+
$[238] = comboBoxWidth;
|
|
1328
|
+
$[239] = compositeFocusProps;
|
|
1329
|
+
$[240] = containerPadding;
|
|
1330
|
+
$[241] = direction;
|
|
1331
|
+
$[242] = effectiveSelectedKey;
|
|
1332
|
+
$[243] = emptyLabel;
|
|
1333
|
+
$[244] = handleSelectionChange;
|
|
1334
|
+
$[245] = headingStyles;
|
|
1335
|
+
$[246] = isDisabled;
|
|
1336
|
+
$[247] = label;
|
|
1337
|
+
$[248] = listBoxRef;
|
|
1338
|
+
$[249] = listBoxStyles;
|
|
1339
|
+
$[250] = listGap;
|
|
1340
|
+
$[251] = optionStyles;
|
|
1341
|
+
$[252] = overlayOffset;
|
|
1342
|
+
$[253] = overlayStyles;
|
|
1343
|
+
$[254] = popoverRef;
|
|
1344
|
+
$[255] = props.disabledKeys;
|
|
1345
|
+
$[256] = sectionStyles;
|
|
1346
|
+
$[257] = shouldFlip;
|
|
1347
|
+
$[258] = shouldShowPopover;
|
|
1348
|
+
$[259] = size;
|
|
1349
|
+
$[260] = sortedItems;
|
|
1350
|
+
$[261] = t66;
|
|
1351
|
+
$[262] = t67;
|
|
1352
|
+
$[263] = t68;
|
|
1353
|
+
$[264] = t69;
|
|
1354
|
+
$[265] = t70;
|
|
1355
|
+
} else t70 = $[265];
|
|
1405
1356
|
const comboBoxField = /* @__PURE__ */ jsxs(ComboBoxWrapperElement, {
|
|
1406
|
-
ref:
|
|
1357
|
+
ref: t45,
|
|
1407
1358
|
mods,
|
|
1408
|
-
styles:
|
|
1359
|
+
styles: t46,
|
|
1409
1360
|
"data-size": size,
|
|
1410
1361
|
...compositeFocusProps,
|
|
1411
1362
|
children: [
|
|
1363
|
+
t47,
|
|
1364
|
+
t57,
|
|
1412
1365
|
t58,
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
t79
|
|
1366
|
+
t59,
|
|
1367
|
+
t65,
|
|
1368
|
+
t70
|
|
1417
1369
|
]
|
|
1418
1370
|
});
|
|
1419
1371
|
const { children: _, ...propsWithoutChildren } = props;
|
|
@@ -1438,6 +1390,12 @@ function _temp2(t0) {
|
|
|
1438
1390
|
}
|
|
1439
1391
|
};
|
|
1440
1392
|
}
|
|
1393
|
+
function _temp3(option) {
|
|
1394
|
+
return String(option.key);
|
|
1395
|
+
}
|
|
1396
|
+
function _temp4() {
|
|
1397
|
+
return [];
|
|
1398
|
+
}
|
|
1441
1399
|
//#endregion
|
|
1442
1400
|
export { ComboBox };
|
|
1443
1401
|
|