@cube-dev/ui-kit 0.0.0-canary-c745805 → 0.0.0-canary-32b8046
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/_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/Button.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/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/index.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.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/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/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.d.ts +14 -14
- 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/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/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/TableView.js +1 -1
- package/dist/components/data/TableBase/column-menu.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-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-order.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-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.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/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/FilterPicker/FilterPicker.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 +1 -1
- package/dist/components/fields/ListBox/optionId.js +1 -1
- 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/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/SearchComboBox/SearchComboBox.js +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.d.ts +10 -2
- package/dist/components/fields/TagInput/TagInput.js +848 -736
- package/dist/components/fields/TagInput/TagInput.js.map +1 -1
- package/dist/components/fields/TagInput/TagList.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/useAutoSizeTextArea.js +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.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/form/FieldWrapper/FieldWrapper.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/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/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/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/Board/Board.js +1 -1
- package/dist/components/layout/Board/BoardProvider.js +1 -1
- package/dist/components/layout/Board/BoardResponsive.js +1 -1
- package/dist/components/layout/Board/Widget.js +1 -1
- package/dist/components/layout/Board/WidgetHost.js +1 -1
- package/dist/components/layout/Board/board-context.js +1 -1
- package/dist/components/layout/Board/board-store.js +1 -1
- package/dist/components/layout/Board/grid-core/calculate.js +1 -1
- package/dist/components/layout/Board/grid-core/collision-modes.js +1 -1
- package/dist/components/layout/Board/grid-core/collision.js +1 -1
- package/dist/components/layout/Board/grid-core/compactors.js +1 -1
- package/dist/components/layout/Board/grid-core/constraints.js +1 -1
- package/dist/components/layout/Board/grid-core/group-move.js +1 -1
- package/dist/components/layout/Board/grid-core/layout.js +1 -1
- package/dist/components/layout/Board/grid-core/placement.js +1 -1
- package/dist/components/layout/Board/grid-core/sort.js +1 -1
- package/dist/components/layout/Board/index.js +1 -1
- package/dist/components/layout/Board/responsive-utils.js +1 -1
- package/dist/components/layout/Board/use-board-layout.js +1 -1
- package/dist/components/layout/Board/use-board-registry.js +1 -1
- package/dist/components/layout/Board/use-board-select-modifier-key.js +1 -1
- package/dist/components/layout/Board/use-board-selection.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/Pagination/Pagination.js +1 -1
- package/dist/components/navigation/Pagination/use-pagination.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/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/use-content-overflow.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.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/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/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 +1 -1
- package/dist/eslint-plugin/index.js +1 -1
- package/dist/eslint-plugin/rules/no-redundant-default-prop.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 +3 -4
- package/dist/i18n/locales/en-US/uikit.js +3 -4
- package/dist/i18n/locales/en-US/uikit.json.d.ts +2 -4
- package/dist/i18n/locales/es-ES/uikit.js +3 -4
- package/dist/i18n/locales/es-MX/uikit.js +3 -4
- package/dist/i18n/locales/fr-FR/uikit.js +3 -4
- package/dist/i18n/locales/it-IT/uikit.js +3 -4
- package/dist/i18n/locales/ja-JP/uikit.js +3 -4
- package/dist/i18n/locales/nb-NO/uikit.js +3 -4
- package/dist/i18n/locales/pt-BR/uikit.js +3 -4
- package/dist/i18n/locales/pt-PT/uikit.js +3 -4
- package/dist/i18n/locales/sv-SE/uikit.js +3 -4
- package/dist/i18n/locales/vi-VN/uikit.js +3 -4
- package/dist/i18n/locales.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/navigationAdapter.default.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/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/disabledProps.js +1 -1
- package/dist/utils/react/escapePropagation.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/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/useOverlayEscapeGuard.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 +2 -2
- package/docs/components/fields/TagInput.md +34 -8
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-32b8046 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { useCombinedRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
@@ -64,7 +64,7 @@ function isComposingKey(e) {
|
|
|
64
64
|
return e.nativeEvent.isComposing || e.keyCode === 229;
|
|
65
65
|
}
|
|
66
66
|
function TagInput(props, ref) {
|
|
67
|
-
const $ = c(
|
|
67
|
+
const $ = c(484);
|
|
68
68
|
let t0;
|
|
69
69
|
if ($[0] !== props) {
|
|
70
70
|
t0 = castNullableArrayValue(props);
|
|
@@ -463,61 +463,75 @@ function TagInput(props, ref) {
|
|
|
463
463
|
const { contains } = useFilter(t11);
|
|
464
464
|
let t12;
|
|
465
465
|
if ($[88] === Symbol.for("react.memo_cache_sentinel")) {
|
|
466
|
-
|
|
467
|
-
t12 = { isEqual: (a, b) => collator.compare(a, b) === 0 };
|
|
466
|
+
t12 = new Intl.Collator(void 0, { sensitivity: "base" });
|
|
468
467
|
$[88] = t12;
|
|
469
468
|
} else t12 = $[88];
|
|
470
|
-
const
|
|
469
|
+
const collator = t12;
|
|
471
470
|
let t13;
|
|
472
|
-
if ($[89]
|
|
473
|
-
t13 =
|
|
474
|
-
$[89] =
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
} else t13 = $[91];
|
|
478
|
-
const textFilterFn = t13;
|
|
479
|
-
const [isFilterActive, setIsFilterActive] = useState(false);
|
|
471
|
+
if ($[89] === Symbol.for("react.memo_cache_sentinel")) {
|
|
472
|
+
t13 = new Intl.Collator(void 0, { numeric: true });
|
|
473
|
+
$[89] = t13;
|
|
474
|
+
} else t13 = $[89];
|
|
475
|
+
const sorter = t13;
|
|
480
476
|
let t14;
|
|
481
|
-
if ($[
|
|
482
|
-
t14 =
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
477
|
+
if ($[90] === Symbol.for("react.memo_cache_sentinel")) {
|
|
478
|
+
t14 = {
|
|
479
|
+
isEqual: (a, b) => collator.compare(a, b) === 0,
|
|
480
|
+
compare: (a_0, b_0) => sorter.compare(a_0, b_0)
|
|
481
|
+
};
|
|
482
|
+
$[90] = t14;
|
|
483
|
+
} else t14 = $[90];
|
|
484
|
+
const { isEqual: isSameText, compare: compareText } = t14;
|
|
488
485
|
let t15;
|
|
489
|
-
if ($[
|
|
490
|
-
t15 =
|
|
491
|
-
$[
|
|
492
|
-
$[
|
|
493
|
-
$[
|
|
494
|
-
} else t15 = $[
|
|
495
|
-
const
|
|
486
|
+
if ($[91] !== contains || $[92] !== filter) {
|
|
487
|
+
t15 = filter === false ? _temp2 : filter || contains;
|
|
488
|
+
$[91] = contains;
|
|
489
|
+
$[92] = filter;
|
|
490
|
+
$[93] = t15;
|
|
491
|
+
} else t15 = $[93];
|
|
492
|
+
const textFilterFn = t15;
|
|
493
|
+
const [isFilterActive, setIsFilterActive] = useState(false);
|
|
496
494
|
let t16;
|
|
497
|
-
if ($[
|
|
498
|
-
t16 = (
|
|
499
|
-
$[
|
|
500
|
-
$[
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
const
|
|
495
|
+
if ($[94] !== draft) {
|
|
496
|
+
t16 = draft.trim();
|
|
497
|
+
$[94] = draft;
|
|
498
|
+
$[95] = t16;
|
|
499
|
+
} else t16 = $[95];
|
|
500
|
+
const term = t16;
|
|
501
|
+
const [knownLabels, setKnownLabels] = useState(_temp3);
|
|
504
502
|
let t17;
|
|
505
|
-
if ($[
|
|
506
|
-
t17 = (
|
|
507
|
-
$[
|
|
508
|
-
$[
|
|
509
|
-
|
|
510
|
-
|
|
503
|
+
if ($[96] !== collection || $[97] !== knownLabels) {
|
|
504
|
+
t17 = (key) => collection.getItem(key)?.textValue || knownLabels.get(key) || key;
|
|
505
|
+
$[96] = collection;
|
|
506
|
+
$[97] = knownLabels;
|
|
507
|
+
$[98] = t17;
|
|
508
|
+
} else t17 = $[98];
|
|
509
|
+
const getOptionLabel = t17;
|
|
511
510
|
let t18;
|
|
512
|
-
if ($[
|
|
513
|
-
t18 =
|
|
514
|
-
$[
|
|
515
|
-
$[
|
|
516
|
-
|
|
517
|
-
|
|
511
|
+
if ($[99] !== getOptionLabel || $[100] !== tagProps) {
|
|
512
|
+
t18 = (key_0) => textLabel(tagProps?.(key_0)?.children) ?? getOptionLabel(key_0);
|
|
513
|
+
$[99] = getOptionLabel;
|
|
514
|
+
$[100] = tagProps;
|
|
515
|
+
$[101] = t18;
|
|
516
|
+
} else t18 = $[101];
|
|
517
|
+
const getTagLabel = t18;
|
|
518
518
|
let t19;
|
|
519
|
-
if ($[
|
|
520
|
-
t19 = (
|
|
519
|
+
if ($[102] !== tagProps) {
|
|
520
|
+
t19 = (key_1) => !!tagProps?.(key_1)?.isDisabled;
|
|
521
|
+
$[102] = tagProps;
|
|
522
|
+
$[103] = t19;
|
|
523
|
+
} else t19 = $[103];
|
|
524
|
+
const isTagLocked = t19;
|
|
525
|
+
let t20;
|
|
526
|
+
if ($[104] !== disabledKeys) {
|
|
527
|
+
t20 = new Set([...disabledKeys ?? []].map(String));
|
|
528
|
+
$[104] = disabledKeys;
|
|
529
|
+
$[105] = t20;
|
|
530
|
+
} else t20 = $[105];
|
|
531
|
+
const disabledKeySet = t20;
|
|
532
|
+
let t21;
|
|
533
|
+
if ($[106] !== collection || $[107] !== knownLabels) {
|
|
534
|
+
t21 = (keys) => {
|
|
521
535
|
let next = null;
|
|
522
536
|
for (const key_2 of keys) {
|
|
523
537
|
const label_0 = collection.getItem(key_2)?.textValue;
|
|
@@ -528,14 +542,14 @@ function TagInput(props, ref) {
|
|
|
528
542
|
}
|
|
529
543
|
if (next) setKnownLabels(next);
|
|
530
544
|
};
|
|
531
|
-
$[
|
|
532
|
-
$[
|
|
533
|
-
$[
|
|
534
|
-
} else
|
|
535
|
-
const rememberLabels = useEvent(
|
|
536
|
-
let
|
|
537
|
-
if ($[
|
|
538
|
-
|
|
545
|
+
$[106] = collection;
|
|
546
|
+
$[107] = knownLabels;
|
|
547
|
+
$[108] = t21;
|
|
548
|
+
} else t21 = $[108];
|
|
549
|
+
const rememberLabels = useEvent(t21);
|
|
550
|
+
let t22;
|
|
551
|
+
if ($[109] !== collection || $[110] !== hasOptions) {
|
|
552
|
+
t22 = (text_0) => {
|
|
539
553
|
if (!hasOptions) return null;
|
|
540
554
|
for (const node of collection) {
|
|
541
555
|
const nodes = node.type === "section" ? [...node.childNodes] : [node];
|
|
@@ -546,186 +560,279 @@ function TagInput(props, ref) {
|
|
|
546
560
|
}
|
|
547
561
|
return null;
|
|
548
562
|
};
|
|
549
|
-
$[
|
|
550
|
-
$[
|
|
551
|
-
$[
|
|
552
|
-
} else
|
|
553
|
-
const findOptionKey =
|
|
554
|
-
let
|
|
555
|
-
if ($[
|
|
556
|
-
|
|
563
|
+
$[109] = collection;
|
|
564
|
+
$[110] = hasOptions;
|
|
565
|
+
$[111] = t22;
|
|
566
|
+
} else t22 = $[111];
|
|
567
|
+
const findOptionKey = t22;
|
|
568
|
+
let t23;
|
|
569
|
+
if ($[112] !== isFilterActive || $[113] !== term || $[114] !== textFilterFn) {
|
|
570
|
+
t23 = (nodes_0) => {
|
|
557
571
|
if (!isFilterActive || !term) return nodes_0;
|
|
558
572
|
return filterCollectionNodes(nodes_0, term, textFilterFn);
|
|
559
573
|
};
|
|
560
|
-
$[
|
|
561
|
-
$[
|
|
562
|
-
$[
|
|
563
|
-
$[
|
|
564
|
-
} else
|
|
565
|
-
const optionFilterFn =
|
|
566
|
-
let
|
|
574
|
+
$[112] = isFilterActive;
|
|
575
|
+
$[113] = term;
|
|
576
|
+
$[114] = textFilterFn;
|
|
577
|
+
$[115] = t23;
|
|
578
|
+
} else t23 = $[115];
|
|
579
|
+
const optionFilterFn = t23;
|
|
580
|
+
let t24;
|
|
567
581
|
bb0: {
|
|
568
582
|
if (!hasOptions) {
|
|
569
|
-
let
|
|
570
|
-
if ($[
|
|
571
|
-
|
|
572
|
-
$[
|
|
573
|
-
} else
|
|
574
|
-
|
|
583
|
+
let t25;
|
|
584
|
+
if ($[116] === Symbol.for("react.memo_cache_sentinel")) {
|
|
585
|
+
t25 = [];
|
|
586
|
+
$[116] = t25;
|
|
587
|
+
} else t25 = $[116];
|
|
588
|
+
t24 = t25;
|
|
575
589
|
break bb0;
|
|
576
590
|
}
|
|
577
591
|
let keys_0;
|
|
578
|
-
if ($[
|
|
592
|
+
if ($[117] !== collection || $[118] !== disabledKeys || $[119] !== optionFilterFn) {
|
|
579
593
|
keys_0 = [];
|
|
580
594
|
collectVisibleKeys(optionFilterFn(collection), keys_0, disabledKeys ? new Set(disabledKeys) : void 0);
|
|
581
|
-
$[
|
|
582
|
-
$[
|
|
583
|
-
$[
|
|
584
|
-
$[
|
|
585
|
-
} else keys_0 = $[
|
|
586
|
-
|
|
595
|
+
$[117] = collection;
|
|
596
|
+
$[118] = disabledKeys;
|
|
597
|
+
$[119] = optionFilterFn;
|
|
598
|
+
$[120] = keys_0;
|
|
599
|
+
} else keys_0 = $[120];
|
|
600
|
+
t24 = keys_0;
|
|
587
601
|
}
|
|
588
|
-
const visibleOptionKeys =
|
|
589
|
-
|
|
590
|
-
|
|
602
|
+
const visibleOptionKeys = t24;
|
|
603
|
+
let t25;
|
|
604
|
+
if ($[121] === Symbol.for("react.memo_cache_sentinel")) {
|
|
605
|
+
t25 = [];
|
|
606
|
+
$[121] = t25;
|
|
607
|
+
} else t25 = $[121];
|
|
608
|
+
const [unpickedCustomValues, setUnpickedCustomValues] = useState(t25);
|
|
609
|
+
let t26;
|
|
591
610
|
bb1: {
|
|
592
|
-
if (!
|
|
593
|
-
|
|
611
|
+
if (!hasOptions || !allowsCustomValue) {
|
|
612
|
+
let t27;
|
|
613
|
+
if ($[122] === Symbol.for("react.memo_cache_sentinel")) {
|
|
614
|
+
t27 = [];
|
|
615
|
+
$[122] = t27;
|
|
616
|
+
} else t27 = $[122];
|
|
617
|
+
t26 = t27;
|
|
594
618
|
break bb1;
|
|
595
619
|
}
|
|
596
|
-
let
|
|
597
|
-
if ($[
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
$[
|
|
603
|
-
$[
|
|
604
|
-
} else
|
|
605
|
-
|
|
620
|
+
let t27;
|
|
621
|
+
if ($[123] !== collection || $[124] !== knownLabels || $[125] !== uniqueValues || $[126] !== unpickedCustomValues) {
|
|
622
|
+
t27 = [...new Set([...uniqueValues, ...unpickedCustomValues].filter((value_0) => collection.getItem(value_0) == null && !knownLabels.has(value_0)))].sort(compareText);
|
|
623
|
+
$[123] = collection;
|
|
624
|
+
$[124] = knownLabels;
|
|
625
|
+
$[125] = uniqueValues;
|
|
626
|
+
$[126] = unpickedCustomValues;
|
|
627
|
+
$[127] = t27;
|
|
628
|
+
} else t27 = $[127];
|
|
629
|
+
t26 = t27;
|
|
630
|
+
}
|
|
631
|
+
const customValueKeys = t26;
|
|
632
|
+
let t27;
|
|
633
|
+
bb2: {
|
|
634
|
+
if (!isFilterActive || !term) {
|
|
635
|
+
t27 = customValueKeys;
|
|
636
|
+
break bb2;
|
|
637
|
+
}
|
|
638
|
+
const matches = typeof filter === "function" ? filter : contains;
|
|
639
|
+
let t28;
|
|
640
|
+
if ($[128] !== customValueKeys || $[129] !== matches || $[130] !== term) {
|
|
641
|
+
let t29;
|
|
642
|
+
if ($[132] !== matches || $[133] !== term) {
|
|
643
|
+
t29 = (key_3) => matches(key_3, term);
|
|
644
|
+
$[132] = matches;
|
|
645
|
+
$[133] = term;
|
|
646
|
+
$[134] = t29;
|
|
647
|
+
} else t29 = $[134];
|
|
648
|
+
t28 = customValueKeys.filter(t29);
|
|
649
|
+
$[128] = customValueKeys;
|
|
650
|
+
$[129] = matches;
|
|
651
|
+
$[130] = term;
|
|
652
|
+
$[131] = t28;
|
|
653
|
+
} else t28 = $[131];
|
|
654
|
+
t27 = t28;
|
|
655
|
+
}
|
|
656
|
+
const visibleCustomKeys = t27;
|
|
657
|
+
let t28;
|
|
658
|
+
if ($[135] !== allowsCustomValue || $[136] !== customValueKeys || $[137] !== findOptionKey || $[138] !== hasOptions || $[139] !== term || $[140] !== uniqueValues) {
|
|
659
|
+
t28 = hasOptions && allowsCustomValue && term && findOptionKey(term) == null && !uniqueValues.includes(term) && !customValueKeys.includes(term) ? term : null;
|
|
660
|
+
$[135] = allowsCustomValue;
|
|
661
|
+
$[136] = customValueKeys;
|
|
662
|
+
$[137] = findOptionKey;
|
|
663
|
+
$[138] = hasOptions;
|
|
664
|
+
$[139] = term;
|
|
665
|
+
$[140] = uniqueValues;
|
|
666
|
+
$[141] = t28;
|
|
667
|
+
} else t28 = $[141];
|
|
668
|
+
const customTerm = t28;
|
|
669
|
+
let t29;
|
|
670
|
+
bb3: {
|
|
671
|
+
if (!customTerm && !visibleCustomKeys.length) {
|
|
672
|
+
t29 = children;
|
|
673
|
+
break bb3;
|
|
674
|
+
}
|
|
675
|
+
let customOptions;
|
|
676
|
+
if ($[142] !== customTerm || $[143] !== visibleCustomKeys) {
|
|
677
|
+
customOptions = visibleCustomKeys.map(_temp4);
|
|
678
|
+
if (customTerm) {
|
|
679
|
+
let t30;
|
|
680
|
+
if ($[145] !== customTerm) {
|
|
681
|
+
t30 = /* @__PURE__ */ jsx(_CollectionItem, {
|
|
682
|
+
textValue: customTerm,
|
|
683
|
+
children: customTerm
|
|
684
|
+
}, customTerm);
|
|
685
|
+
$[145] = customTerm;
|
|
686
|
+
$[146] = t30;
|
|
687
|
+
} else t30 = $[146];
|
|
688
|
+
customOptions.push(t30);
|
|
689
|
+
}
|
|
690
|
+
$[142] = customTerm;
|
|
691
|
+
$[143] = visibleCustomKeys;
|
|
692
|
+
$[144] = customOptions;
|
|
693
|
+
} else customOptions = $[144];
|
|
606
694
|
if (!visibleOptionKeys.length) {
|
|
607
|
-
|
|
608
|
-
break
|
|
695
|
+
t29 = customOptions;
|
|
696
|
+
break bb3;
|
|
609
697
|
}
|
|
610
|
-
let
|
|
611
|
-
if ($[
|
|
612
|
-
|
|
613
|
-
$[
|
|
614
|
-
$[
|
|
615
|
-
} else
|
|
616
|
-
let
|
|
617
|
-
if ($[
|
|
618
|
-
|
|
619
|
-
"aria-label":
|
|
620
|
-
children:
|
|
621
|
-
}, "
|
|
622
|
-
$[
|
|
623
|
-
$[
|
|
624
|
-
$[
|
|
625
|
-
} else
|
|
626
|
-
const customSection =
|
|
627
|
-
if ([...collection].some(
|
|
628
|
-
let
|
|
629
|
-
if ($[
|
|
630
|
-
|
|
631
|
-
$[
|
|
632
|
-
$[
|
|
633
|
-
} else
|
|
634
|
-
let
|
|
635
|
-
if ($[
|
|
636
|
-
|
|
637
|
-
$[
|
|
638
|
-
$[
|
|
639
|
-
$[
|
|
640
|
-
} else
|
|
641
|
-
|
|
642
|
-
break
|
|
698
|
+
let t30;
|
|
699
|
+
if ($[147] !== t) {
|
|
700
|
+
t30 = t("tagInput.customValues", "Custom values");
|
|
701
|
+
$[147] = t;
|
|
702
|
+
$[148] = t30;
|
|
703
|
+
} else t30 = $[148];
|
|
704
|
+
let t31;
|
|
705
|
+
if ($[149] !== customOptions || $[150] !== t30) {
|
|
706
|
+
t31 = /* @__PURE__ */ jsx(Section, {
|
|
707
|
+
"aria-label": t30,
|
|
708
|
+
children: customOptions
|
|
709
|
+
}, "__custom_values__");
|
|
710
|
+
$[149] = customOptions;
|
|
711
|
+
$[150] = t30;
|
|
712
|
+
$[151] = t31;
|
|
713
|
+
} else t31 = $[151];
|
|
714
|
+
const customSection = t31;
|
|
715
|
+
if ([...collection].some(_temp5)) {
|
|
716
|
+
let t32;
|
|
717
|
+
if ($[152] !== children) {
|
|
718
|
+
t32 = Array.isArray(children) ? children : [children];
|
|
719
|
+
$[152] = children;
|
|
720
|
+
$[153] = t32;
|
|
721
|
+
} else t32 = $[153];
|
|
722
|
+
let t33;
|
|
723
|
+
if ($[154] !== customSection || $[155] !== t32) {
|
|
724
|
+
t33 = [...t32, customSection];
|
|
725
|
+
$[154] = customSection;
|
|
726
|
+
$[155] = t32;
|
|
727
|
+
$[156] = t33;
|
|
728
|
+
} else t33 = $[156];
|
|
729
|
+
t29 = t33;
|
|
730
|
+
break bb3;
|
|
643
731
|
}
|
|
644
|
-
let
|
|
645
|
-
if ($[
|
|
646
|
-
|
|
647
|
-
$[
|
|
648
|
-
$[
|
|
649
|
-
} else
|
|
650
|
-
const
|
|
651
|
-
let
|
|
652
|
-
if ($[
|
|
653
|
-
|
|
654
|
-
"aria-label":
|
|
655
|
-
children:
|
|
732
|
+
let t32;
|
|
733
|
+
if ($[157] !== t) {
|
|
734
|
+
t32 = t("tagInput.options", "Options");
|
|
735
|
+
$[157] = t;
|
|
736
|
+
$[158] = t32;
|
|
737
|
+
} else t32 = $[158];
|
|
738
|
+
const t33 = children;
|
|
739
|
+
let t34;
|
|
740
|
+
if ($[159] !== t32 || $[160] !== t33) {
|
|
741
|
+
t34 = /* @__PURE__ */ jsx(Section, {
|
|
742
|
+
"aria-label": t32,
|
|
743
|
+
children: t33
|
|
656
744
|
}, "__options__");
|
|
657
|
-
$[
|
|
658
|
-
$[
|
|
659
|
-
$[
|
|
660
|
-
} else
|
|
661
|
-
let
|
|
662
|
-
if ($[
|
|
663
|
-
|
|
664
|
-
$[
|
|
665
|
-
$[
|
|
666
|
-
$[
|
|
667
|
-
} else
|
|
668
|
-
|
|
745
|
+
$[159] = t32;
|
|
746
|
+
$[160] = t33;
|
|
747
|
+
$[161] = t34;
|
|
748
|
+
} else t34 = $[161];
|
|
749
|
+
let t35;
|
|
750
|
+
if ($[162] !== customSection || $[163] !== t34) {
|
|
751
|
+
t35 = [t34, customSection];
|
|
752
|
+
$[162] = customSection;
|
|
753
|
+
$[163] = t34;
|
|
754
|
+
$[164] = t35;
|
|
755
|
+
} else t35 = $[164];
|
|
756
|
+
t29 = t35;
|
|
669
757
|
}
|
|
670
|
-
const popoverChildren =
|
|
671
|
-
const hasResults = visibleOptionKeys.length > 0 || customTerm != null;
|
|
672
|
-
|
|
758
|
+
const popoverChildren = t29;
|
|
759
|
+
const hasResults = visibleOptionKeys.length > 0 || visibleCustomKeys.length > 0 || customTerm != null;
|
|
760
|
+
let t30;
|
|
761
|
+
if ($[165] !== visibleCustomKeys || $[166] !== visibleOptionKeys) {
|
|
762
|
+
t30 = [...visibleOptionKeys, ...visibleCustomKeys];
|
|
763
|
+
$[165] = visibleCustomKeys;
|
|
764
|
+
$[166] = visibleOptionKeys;
|
|
765
|
+
$[167] = t30;
|
|
766
|
+
} else t30 = $[167];
|
|
767
|
+
const visibleOptionsSignature = t30.join("\0");
|
|
673
768
|
const [isPopoverOpen, setIsPopoverOpen] = useState(false);
|
|
674
769
|
const isInteractive = !isDisabled && !isReadOnly;
|
|
675
770
|
const shouldShowPopover = hasOptions && isInteractive && isPopoverOpen && hasResults;
|
|
676
771
|
const notifiedOpenRef = useRef(false);
|
|
677
|
-
let
|
|
678
|
-
let
|
|
679
|
-
if ($[
|
|
680
|
-
|
|
772
|
+
let t31;
|
|
773
|
+
let t32;
|
|
774
|
+
if ($[168] !== onOpenChange || $[169] !== shouldShowPopover) {
|
|
775
|
+
t31 = () => {
|
|
681
776
|
if (notifiedOpenRef.current === shouldShowPopover) return;
|
|
682
777
|
notifiedOpenRef.current = shouldShowPopover;
|
|
683
778
|
onOpenChange?.(shouldShowPopover);
|
|
684
779
|
};
|
|
685
|
-
|
|
686
|
-
$[
|
|
687
|
-
$[
|
|
688
|
-
$[
|
|
689
|
-
$[
|
|
780
|
+
t32 = [shouldShowPopover, onOpenChange];
|
|
781
|
+
$[168] = onOpenChange;
|
|
782
|
+
$[169] = shouldShowPopover;
|
|
783
|
+
$[170] = t31;
|
|
784
|
+
$[171] = t32;
|
|
690
785
|
} else {
|
|
691
|
-
|
|
692
|
-
|
|
786
|
+
t31 = $[170];
|
|
787
|
+
t32 = $[171];
|
|
693
788
|
}
|
|
694
|
-
useEffect(
|
|
789
|
+
useEffect(t31, t32);
|
|
695
790
|
const [activeOption, setActiveOption] = useState(null);
|
|
696
791
|
const activeOptionKey = activeOption?.key ?? null;
|
|
697
|
-
let
|
|
698
|
-
if ($[
|
|
699
|
-
|
|
792
|
+
let t33;
|
|
793
|
+
if ($[172] === Symbol.for("react.memo_cache_sentinel")) {
|
|
794
|
+
t33 = (key_5, source, forTerm) => {
|
|
700
795
|
const listState = listStateRef.current;
|
|
701
|
-
if (!listState ||
|
|
796
|
+
if (!listState || key_5 == null) return;
|
|
702
797
|
markKeyboardFocus(listState);
|
|
703
|
-
listState.selectionManager.setFocusedKey(
|
|
798
|
+
listState.selectionManager.setFocusedKey(key_5);
|
|
704
799
|
setActiveOption({
|
|
705
|
-
key:
|
|
800
|
+
key: key_5,
|
|
706
801
|
term: forTerm,
|
|
707
802
|
source
|
|
708
803
|
});
|
|
709
804
|
};
|
|
710
|
-
$[
|
|
711
|
-
} else
|
|
712
|
-
const moveVirtualFocus = useEvent(
|
|
805
|
+
$[172] = t33;
|
|
806
|
+
} else t33 = $[172];
|
|
807
|
+
const moveVirtualFocus = useEvent(t33);
|
|
713
808
|
const [popoverMinWidth, setPopoverMinWidth] = useState();
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
$[
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
809
|
+
let exactOptionKey = term ? findOptionKey(term) : null;
|
|
810
|
+
if (exactOptionKey == null && term && customValueKeys.includes(term)) exactOptionKey = term;
|
|
811
|
+
let visibleTargetKeys;
|
|
812
|
+
if ($[173] !== customTerm || $[174] !== visibleCustomKeys || $[175] !== visibleOptionKeys) {
|
|
813
|
+
visibleTargetKeys = [...visibleOptionKeys, ...visibleCustomKeys];
|
|
814
|
+
if (customTerm) visibleTargetKeys.push(customTerm);
|
|
815
|
+
$[173] = customTerm;
|
|
816
|
+
$[174] = visibleCustomKeys;
|
|
817
|
+
$[175] = visibleOptionKeys;
|
|
818
|
+
$[176] = visibleTargetKeys;
|
|
819
|
+
} else visibleTargetKeys = $[176];
|
|
820
|
+
let preferredOptionKey;
|
|
821
|
+
if ($[177] !== exactOptionKey || $[178] !== term || $[179] !== uniqueValues || $[180] !== visibleTargetKeys) {
|
|
822
|
+
preferredOptionKey = null;
|
|
823
|
+
if (exactOptionKey != null && visibleTargetKeys.includes(exactOptionKey)) preferredOptionKey = exactOptionKey;
|
|
824
|
+
else if (term) preferredOptionKey = visibleTargetKeys.find((key_6) => !uniqueValues.includes(String(key_6))) ?? null;
|
|
825
|
+
if (preferredOptionKey == null) preferredOptionKey = visibleTargetKeys[0] ?? null;
|
|
826
|
+
$[177] = exactOptionKey;
|
|
827
|
+
$[178] = term;
|
|
828
|
+
$[179] = uniqueValues;
|
|
829
|
+
$[180] = visibleTargetKeys;
|
|
830
|
+
$[181] = preferredOptionKey;
|
|
831
|
+
} else preferredOptionKey = $[181];
|
|
724
832
|
const focusTermRef = useRef(null);
|
|
725
|
-
let
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
t28 = () => {
|
|
833
|
+
let t34;
|
|
834
|
+
if ($[182] !== customTerm || $[183] !== moveVirtualFocus || $[184] !== preferredOptionKey || $[185] !== shouldShowPopover || $[186] !== term || $[187] !== visibleOptionsSignature || $[188] !== wrapperRef) {
|
|
835
|
+
t34 = () => {
|
|
729
836
|
if (!shouldShowPopover) {
|
|
730
837
|
focusTermRef.current = null;
|
|
731
838
|
return;
|
|
@@ -733,7 +840,6 @@ function TagInput(props, ref) {
|
|
|
733
840
|
setPopoverMinWidth(wrapperRef.current?.offsetWidth);
|
|
734
841
|
const visibleKeys = visibleOptionsSignature ? visibleOptionsSignature.split("\0") : [];
|
|
735
842
|
if (customTerm) visibleKeys.push(customTerm);
|
|
736
|
-
const preferredKey = exactOptionKey != null && visibleKeys.includes(exactOptionKey) ? exactOptionKey : visibleKeys[0] ?? null;
|
|
737
843
|
const isNewTerm = !!term && focusTermRef.current !== term;
|
|
738
844
|
focusTermRef.current = term;
|
|
739
845
|
let attempts = 0;
|
|
@@ -755,60 +861,67 @@ function TagInput(props, ref) {
|
|
|
755
861
|
term,
|
|
756
862
|
source: "auto"
|
|
757
863
|
});
|
|
758
|
-
else moveVirtualFocus(
|
|
864
|
+
else moveVirtualFocus(preferredOptionKey, "auto", term);
|
|
759
865
|
};
|
|
760
866
|
requestAnimationFrame(() => requestAnimationFrame(tick));
|
|
761
867
|
return () => {
|
|
762
868
|
isCancelled = true;
|
|
763
869
|
};
|
|
764
870
|
};
|
|
765
|
-
|
|
871
|
+
$[182] = customTerm;
|
|
872
|
+
$[183] = moveVirtualFocus;
|
|
873
|
+
$[184] = preferredOptionKey;
|
|
874
|
+
$[185] = shouldShowPopover;
|
|
875
|
+
$[186] = term;
|
|
876
|
+
$[187] = visibleOptionsSignature;
|
|
877
|
+
$[188] = wrapperRef;
|
|
878
|
+
$[189] = t34;
|
|
879
|
+
} else t34 = $[189];
|
|
880
|
+
let t35;
|
|
881
|
+
if ($[190] !== customTerm || $[191] !== moveVirtualFocus || $[192] !== preferredOptionKey || $[193] !== shouldShowPopover || $[194] !== term || $[195] !== visibleOptionsSignature || $[196] !== wrapperRef) {
|
|
882
|
+
t35 = [
|
|
766
883
|
shouldShowPopover,
|
|
767
884
|
visibleOptionsSignature,
|
|
768
885
|
customTerm,
|
|
769
886
|
term,
|
|
770
|
-
|
|
887
|
+
preferredOptionKey,
|
|
771
888
|
moveVirtualFocus,
|
|
772
889
|
wrapperRef
|
|
773
890
|
];
|
|
774
|
-
$[
|
|
775
|
-
$[
|
|
776
|
-
$[
|
|
777
|
-
$[
|
|
778
|
-
$[
|
|
779
|
-
$[
|
|
780
|
-
$[
|
|
781
|
-
$[
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
useLayoutEffect(t28, t29);
|
|
788
|
-
let t30;
|
|
789
|
-
if ($[156] !== setDraftState) {
|
|
790
|
-
t30 = (next_0) => {
|
|
891
|
+
$[190] = customTerm;
|
|
892
|
+
$[191] = moveVirtualFocus;
|
|
893
|
+
$[192] = preferredOptionKey;
|
|
894
|
+
$[193] = shouldShowPopover;
|
|
895
|
+
$[194] = term;
|
|
896
|
+
$[195] = visibleOptionsSignature;
|
|
897
|
+
$[196] = wrapperRef;
|
|
898
|
+
$[197] = t35;
|
|
899
|
+
} else t35 = $[197];
|
|
900
|
+
useLayoutEffect(t34, t35);
|
|
901
|
+
let t36;
|
|
902
|
+
if ($[198] !== setDraftState) {
|
|
903
|
+
t36 = (next_0) => {
|
|
791
904
|
setDraftState(next_0);
|
|
792
905
|
setIsFilterActive(!!next_0.trim());
|
|
793
906
|
};
|
|
794
|
-
$[
|
|
795
|
-
$[
|
|
796
|
-
} else
|
|
797
|
-
const setDraft = useEvent(
|
|
798
|
-
let
|
|
799
|
-
if ($[
|
|
800
|
-
|
|
907
|
+
$[198] = setDraftState;
|
|
908
|
+
$[199] = t36;
|
|
909
|
+
} else t36 = $[199];
|
|
910
|
+
const setDraft = useEvent(t36);
|
|
911
|
+
let t37;
|
|
912
|
+
if ($[200] === Symbol.for("react.memo_cache_sentinel")) {
|
|
913
|
+
t37 = (text_1) => {
|
|
801
914
|
setAnnouncement((prev_0) => ({
|
|
802
915
|
id: prev_0.id + 1,
|
|
803
916
|
text: text_1
|
|
804
917
|
}));
|
|
805
918
|
};
|
|
806
|
-
$[
|
|
807
|
-
} else
|
|
808
|
-
const announce = useEvent(
|
|
809
|
-
let
|
|
810
|
-
if ($[
|
|
811
|
-
|
|
919
|
+
$[200] = t37;
|
|
920
|
+
} else t37 = $[200];
|
|
921
|
+
const announce = useEvent(t37);
|
|
922
|
+
let t38;
|
|
923
|
+
if ($[201] !== maxTags || $[202] !== t) {
|
|
924
|
+
t38 = (rejection) => {
|
|
812
925
|
if (rejection.message) return rejection.message;
|
|
813
926
|
switch (rejection.reason) {
|
|
814
927
|
case "duplicate": return t("tagInput.duplicateValue", "\"{{value}}\" is already added", { value: rejection.text });
|
|
@@ -818,16 +931,16 @@ function TagInput(props, ref) {
|
|
|
818
931
|
default: return t("tagInput.invalidValue", "\"{{value}}\" is not a valid value", { value: rejection.text });
|
|
819
932
|
}
|
|
820
933
|
};
|
|
821
|
-
$[
|
|
822
|
-
$[
|
|
823
|
-
$[
|
|
824
|
-
} else
|
|
825
|
-
const rejectionMessage = useEvent(
|
|
934
|
+
$[201] = maxTags;
|
|
935
|
+
$[202] = t;
|
|
936
|
+
$[203] = t38;
|
|
937
|
+
} else t38 = $[203];
|
|
938
|
+
const rejectionMessage = useEvent(t38);
|
|
826
939
|
const joiner = delimiters[0] ? `${delimiters[0]} ` : " ";
|
|
827
940
|
const hasFieldMessage = !!label || !!props.forceField;
|
|
828
|
-
let
|
|
829
|
-
if ($[
|
|
830
|
-
|
|
941
|
+
let t39;
|
|
942
|
+
if ($[204] !== allowsCustomValue || $[205] !== announce || $[206] !== disabledKeySet || $[207] !== findOptionKey || $[208] !== formatList || $[209] !== getTagLabel || $[210] !== hasFieldMessage || $[211] !== hasOptions || $[212] !== joiner || $[213] !== maxTags || $[214] !== normalizeTag || $[215] !== rejectionMessage || $[216] !== rememberLabels || $[217] !== setTagError || $[218] !== setValues || $[219] !== t || $[220] !== uniqueValues || $[221] !== validateTag) {
|
|
943
|
+
t39 = (parts) => {
|
|
831
944
|
if (!parts.length) return "";
|
|
832
945
|
const present = new Set(uniqueValues);
|
|
833
946
|
const accepted = [];
|
|
@@ -893,99 +1006,101 @@ function TagInput(props, ref) {
|
|
|
893
1006
|
if (error && !hasFieldMessage) messages.push(error);
|
|
894
1007
|
if (messages.length) announce(messages.join(" "));
|
|
895
1008
|
setTagError(error);
|
|
896
|
-
return rejected.map(
|
|
1009
|
+
return rejected.map(_temp6).join(joiner);
|
|
897
1010
|
};
|
|
898
|
-
$[
|
|
899
|
-
$[
|
|
900
|
-
$[
|
|
901
|
-
$[
|
|
902
|
-
$[
|
|
903
|
-
$[
|
|
904
|
-
$[
|
|
905
|
-
$[
|
|
906
|
-
$[
|
|
907
|
-
$[
|
|
908
|
-
$[
|
|
909
|
-
$[
|
|
910
|
-
$[
|
|
911
|
-
$[
|
|
912
|
-
$[
|
|
913
|
-
$[
|
|
914
|
-
$[
|
|
915
|
-
$[
|
|
916
|
-
$[
|
|
917
|
-
} else
|
|
918
|
-
const commitParts = useEvent(
|
|
919
|
-
let
|
|
920
|
-
if ($[
|
|
921
|
-
|
|
1011
|
+
$[204] = allowsCustomValue;
|
|
1012
|
+
$[205] = announce;
|
|
1013
|
+
$[206] = disabledKeySet;
|
|
1014
|
+
$[207] = findOptionKey;
|
|
1015
|
+
$[208] = formatList;
|
|
1016
|
+
$[209] = getTagLabel;
|
|
1017
|
+
$[210] = hasFieldMessage;
|
|
1018
|
+
$[211] = hasOptions;
|
|
1019
|
+
$[212] = joiner;
|
|
1020
|
+
$[213] = maxTags;
|
|
1021
|
+
$[214] = normalizeTag;
|
|
1022
|
+
$[215] = rejectionMessage;
|
|
1023
|
+
$[216] = rememberLabels;
|
|
1024
|
+
$[217] = setTagError;
|
|
1025
|
+
$[218] = setValues;
|
|
1026
|
+
$[219] = t;
|
|
1027
|
+
$[220] = uniqueValues;
|
|
1028
|
+
$[221] = validateTag;
|
|
1029
|
+
$[222] = t39;
|
|
1030
|
+
} else t39 = $[222];
|
|
1031
|
+
const commitParts = useEvent(t39);
|
|
1032
|
+
let t40;
|
|
1033
|
+
if ($[223] !== commitParts || $[224] !== delimiters || $[225] !== draft || $[226] !== setDraft) {
|
|
1034
|
+
t40 = () => {
|
|
922
1035
|
setDraft(commitParts(splitTagText(draft, delimiters)));
|
|
923
1036
|
};
|
|
924
|
-
$[
|
|
925
|
-
$[
|
|
926
|
-
$[
|
|
927
|
-
$[
|
|
928
|
-
$[
|
|
929
|
-
} else
|
|
930
|
-
const commitDraft = useEvent(
|
|
931
|
-
let
|
|
932
|
-
if ($[
|
|
933
|
-
|
|
1037
|
+
$[223] = commitParts;
|
|
1038
|
+
$[224] = delimiters;
|
|
1039
|
+
$[225] = draft;
|
|
1040
|
+
$[226] = setDraft;
|
|
1041
|
+
$[227] = t40;
|
|
1042
|
+
} else t40 = $[227];
|
|
1043
|
+
const commitDraft = useEvent(t40);
|
|
1044
|
+
let t41;
|
|
1045
|
+
if ($[228] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1046
|
+
t41 = () => {
|
|
934
1047
|
const rows = tagListRef.current?.querySelectorAll("[role=\"row\"]:not([aria-disabled=\"true\"])");
|
|
935
1048
|
rows?.[rows.length - 1]?.focus();
|
|
936
1049
|
};
|
|
937
|
-
$[
|
|
938
|
-
} else
|
|
939
|
-
const focusLastTag = useEvent(
|
|
940
|
-
let
|
|
941
|
-
if ($[
|
|
942
|
-
|
|
943
|
-
const
|
|
944
|
-
if (!
|
|
945
|
-
const removed = new Set(
|
|
946
|
-
const next_1 = uniqueValues.filter((
|
|
947
|
-
if (!next_1.some((
|
|
1050
|
+
$[228] = t41;
|
|
1051
|
+
} else t41 = $[228];
|
|
1052
|
+
const focusLastTag = useEvent(t41);
|
|
1053
|
+
let t42;
|
|
1054
|
+
if ($[229] !== announce || $[230] !== formatList || $[231] !== getTagLabel || $[232] !== inputRef || $[233] !== isTagLocked || $[234] !== setTagError || $[235] !== setValues || $[236] !== t || $[237] !== uniqueValues) {
|
|
1055
|
+
t42 = (requested) => {
|
|
1056
|
+
const keys_2 = requested.filter((key_7) => !isTagLocked(key_7));
|
|
1057
|
+
if (!keys_2.length) return;
|
|
1058
|
+
const removed = new Set(keys_2);
|
|
1059
|
+
const next_1 = uniqueValues.filter((value_1) => !removed.has(value_1));
|
|
1060
|
+
if (!next_1.some((value_2) => !isTagLocked(value_2))) inputRef.current?.focus();
|
|
948
1061
|
setValues(next_1);
|
|
949
1062
|
setTagError(null);
|
|
950
|
-
announce(t("tagInput.removed", "Removed {{value}}", { value: formatList(
|
|
1063
|
+
announce(t("tagInput.removed", "Removed {{value}}", { value: formatList(keys_2.map(getTagLabel)) }));
|
|
951
1064
|
};
|
|
952
|
-
$[
|
|
953
|
-
$[
|
|
954
|
-
$[
|
|
955
|
-
$[
|
|
956
|
-
$[
|
|
957
|
-
$[
|
|
958
|
-
$[
|
|
959
|
-
$[
|
|
960
|
-
$[
|
|
961
|
-
$[
|
|
962
|
-
} else
|
|
963
|
-
const removeValues = useEvent(
|
|
964
|
-
let
|
|
965
|
-
if ($[
|
|
966
|
-
|
|
967
|
-
if (isTagLocked(
|
|
1065
|
+
$[229] = announce;
|
|
1066
|
+
$[230] = formatList;
|
|
1067
|
+
$[231] = getTagLabel;
|
|
1068
|
+
$[232] = inputRef;
|
|
1069
|
+
$[233] = isTagLocked;
|
|
1070
|
+
$[234] = setTagError;
|
|
1071
|
+
$[235] = setValues;
|
|
1072
|
+
$[236] = t;
|
|
1073
|
+
$[237] = uniqueValues;
|
|
1074
|
+
$[238] = t42;
|
|
1075
|
+
} else t42 = $[238];
|
|
1076
|
+
const removeValues = useEvent(t42);
|
|
1077
|
+
let t43;
|
|
1078
|
+
if ($[239] !== commitParts || $[240] !== customValueKeys || $[241] !== isTagLocked || $[242] !== removeValues || $[243] !== setDraft || $[244] !== setTagError || $[245] !== uniqueValues) {
|
|
1079
|
+
t43 = (key_8) => {
|
|
1080
|
+
if (isTagLocked(key_8)) return;
|
|
968
1081
|
setTagError(null);
|
|
969
|
-
if (uniqueValues.includes(
|
|
970
|
-
removeValues([
|
|
1082
|
+
if (uniqueValues.includes(key_8)) {
|
|
1083
|
+
removeValues([key_8]);
|
|
971
1084
|
setDraft("");
|
|
972
|
-
|
|
1085
|
+
if (customValueKeys.includes(key_8)) setUnpickedCustomValues((prev_1) => prev_1.includes(key_8) ? prev_1 : [...prev_1, key_8]);
|
|
1086
|
+
} else if (!commitParts([key_8])) setDraft("");
|
|
973
1087
|
};
|
|
974
|
-
$[
|
|
975
|
-
$[
|
|
976
|
-
$[
|
|
977
|
-
$[
|
|
978
|
-
$[
|
|
979
|
-
$[
|
|
980
|
-
$[
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
1088
|
+
$[239] = commitParts;
|
|
1089
|
+
$[240] = customValueKeys;
|
|
1090
|
+
$[241] = isTagLocked;
|
|
1091
|
+
$[242] = removeValues;
|
|
1092
|
+
$[243] = setDraft;
|
|
1093
|
+
$[244] = setTagError;
|
|
1094
|
+
$[245] = uniqueValues;
|
|
1095
|
+
$[246] = t43;
|
|
1096
|
+
} else t43 = $[246];
|
|
1097
|
+
const toggleOption = useEvent(t43);
|
|
1098
|
+
let t44;
|
|
1099
|
+
if ($[247] !== collection || $[248] !== inputRef || $[249] !== toggleOption || $[250] !== uniqueValues || $[251] !== visibleCustomKeys) {
|
|
1100
|
+
t44 = (selection) => {
|
|
986
1101
|
if (!Array.isArray(selection)) return;
|
|
987
1102
|
const next_2 = new Set(selection.map(String));
|
|
988
|
-
const changed = [...[...next_2].filter((
|
|
1103
|
+
const changed = [...[...next_2].filter((key_9) => !uniqueValues.includes(key_9)), ...uniqueValues.filter((value_3) => !next_2.has(value_3) && (collection.getItem(value_3) != null || visibleCustomKeys.includes(value_3)))];
|
|
989
1104
|
changed.forEach(toggleOption);
|
|
990
1105
|
const clicked = changed[changed.length - 1];
|
|
991
1106
|
if (clicked != null) {
|
|
@@ -998,18 +1113,18 @@ function TagInput(props, ref) {
|
|
|
998
1113
|
}
|
|
999
1114
|
setTimeout(() => inputRef.current?.focus(), 0);
|
|
1000
1115
|
};
|
|
1001
|
-
$[
|
|
1002
|
-
$[
|
|
1003
|
-
$[
|
|
1004
|
-
$[
|
|
1005
|
-
$[
|
|
1006
|
-
$[
|
|
1007
|
-
} else
|
|
1008
|
-
const handlePopoverSelection = useEvent(
|
|
1116
|
+
$[247] = collection;
|
|
1117
|
+
$[248] = inputRef;
|
|
1118
|
+
$[249] = toggleOption;
|
|
1119
|
+
$[250] = uniqueValues;
|
|
1120
|
+
$[251] = visibleCustomKeys;
|
|
1121
|
+
$[252] = t44;
|
|
1122
|
+
} else t44 = $[252];
|
|
1123
|
+
const handlePopoverSelection = useEvent(t44);
|
|
1009
1124
|
const isTabbingRef = useRef(false);
|
|
1010
|
-
let
|
|
1011
|
-
if ($[
|
|
1012
|
-
|
|
1125
|
+
let t45;
|
|
1126
|
+
if ($[253] !== activeOption || $[254] !== commitDraft || $[255] !== commitParts || $[256] !== delimiters || $[257] !== draft || $[258] !== focusLastTag || $[259] !== getTagLabel || $[260] !== hasOptions || $[261] !== hasResults || $[262] !== isInteractive || $[263] !== isTagLocked || $[264] !== joiner || $[265] !== moveVirtualFocus || $[266] !== onKeyDown || $[267] !== preferredOptionKey || $[268] !== rejectionMessage || $[269] !== setDraft || $[270] !== setTagError || $[271] !== shouldShowPopover || $[272] !== term || $[273] !== toggleOption || $[274] !== uniqueValues) {
|
|
1127
|
+
t45 = (e) => {
|
|
1013
1128
|
onKeyDown?.(e);
|
|
1014
1129
|
isTabbingRef.current = e.key === "Tab" && !e.defaultPrevented;
|
|
1015
1130
|
if (e.defaultPrevented || !isInteractive) return;
|
|
@@ -1030,7 +1145,7 @@ function TagInput(props, ref) {
|
|
|
1030
1145
|
if (listState_1) moveVirtualFocus(getEdgeVisibleKey(listState_1, e.key === "Home" ? "first" : "last"), "user", term);
|
|
1031
1146
|
return;
|
|
1032
1147
|
}
|
|
1033
|
-
if (e.key === "Backspace" && !draft && uniqueValues.some((
|
|
1148
|
+
if (e.key === "Backspace" && !draft && uniqueValues.some((value_4) => !isTagLocked(value_4))) {
|
|
1034
1149
|
if (isComposingKey(e)) return;
|
|
1035
1150
|
e.preventDefault();
|
|
1036
1151
|
if (e.repeat) return;
|
|
@@ -1044,20 +1159,19 @@ function TagInput(props, ref) {
|
|
|
1044
1159
|
const targetKey = shouldShowPopover ? isCurrent ? activeOption.key : preferredOptionKey : null;
|
|
1045
1160
|
if (targetKey != null) {
|
|
1046
1161
|
e.preventDefault();
|
|
1047
|
-
const
|
|
1048
|
-
if (term && uniqueValues.includes(
|
|
1162
|
+
const key_10 = String(targetKey);
|
|
1163
|
+
if (term && uniqueValues.includes(key_10) && !(isCurrent && activeOption.source === "user")) {
|
|
1049
1164
|
setTagError(rejectionMessage({
|
|
1050
|
-
text: getTagLabel(
|
|
1165
|
+
text: getTagLabel(key_10),
|
|
1051
1166
|
reason: "duplicate"
|
|
1052
1167
|
}));
|
|
1053
1168
|
return;
|
|
1054
1169
|
}
|
|
1055
|
-
toggleOption(
|
|
1170
|
+
toggleOption(key_10);
|
|
1056
1171
|
return;
|
|
1057
1172
|
}
|
|
1058
|
-
if (!term) return;
|
|
1059
1173
|
e.preventDefault();
|
|
1060
|
-
commitDraft();
|
|
1174
|
+
if (term) commitDraft();
|
|
1061
1175
|
return;
|
|
1062
1176
|
}
|
|
1063
1177
|
if (delimiters.includes(e.key)) {
|
|
@@ -1083,34 +1197,34 @@ function TagInput(props, ref) {
|
|
|
1083
1197
|
}
|
|
1084
1198
|
}
|
|
1085
1199
|
};
|
|
1086
|
-
$[
|
|
1087
|
-
$[
|
|
1088
|
-
$[
|
|
1089
|
-
$[
|
|
1090
|
-
$[
|
|
1091
|
-
$[
|
|
1092
|
-
$[
|
|
1093
|
-
$[
|
|
1094
|
-
$[
|
|
1095
|
-
$[
|
|
1096
|
-
$[
|
|
1097
|
-
$[
|
|
1098
|
-
$[
|
|
1099
|
-
$[
|
|
1100
|
-
$[
|
|
1101
|
-
$[
|
|
1102
|
-
$[
|
|
1103
|
-
$[
|
|
1104
|
-
$[
|
|
1105
|
-
$[
|
|
1106
|
-
$[
|
|
1107
|
-
$[
|
|
1108
|
-
$[
|
|
1109
|
-
} else
|
|
1110
|
-
const handleKeyDown = useEvent(
|
|
1111
|
-
let
|
|
1112
|
-
if ($[
|
|
1113
|
-
|
|
1200
|
+
$[253] = activeOption;
|
|
1201
|
+
$[254] = commitDraft;
|
|
1202
|
+
$[255] = commitParts;
|
|
1203
|
+
$[256] = delimiters;
|
|
1204
|
+
$[257] = draft;
|
|
1205
|
+
$[258] = focusLastTag;
|
|
1206
|
+
$[259] = getTagLabel;
|
|
1207
|
+
$[260] = hasOptions;
|
|
1208
|
+
$[261] = hasResults;
|
|
1209
|
+
$[262] = isInteractive;
|
|
1210
|
+
$[263] = isTagLocked;
|
|
1211
|
+
$[264] = joiner;
|
|
1212
|
+
$[265] = moveVirtualFocus;
|
|
1213
|
+
$[266] = onKeyDown;
|
|
1214
|
+
$[267] = preferredOptionKey;
|
|
1215
|
+
$[268] = rejectionMessage;
|
|
1216
|
+
$[269] = setDraft;
|
|
1217
|
+
$[270] = setTagError;
|
|
1218
|
+
$[271] = shouldShowPopover;
|
|
1219
|
+
$[272] = term;
|
|
1220
|
+
$[273] = toggleOption;
|
|
1221
|
+
$[274] = uniqueValues;
|
|
1222
|
+
$[275] = t45;
|
|
1223
|
+
} else t45 = $[275];
|
|
1224
|
+
const handleKeyDown = useEvent(t45);
|
|
1225
|
+
let t46;
|
|
1226
|
+
if ($[276] !== commitParts || $[277] !== delimiters || $[278] !== hasOptions || $[279] !== joiner || $[280] !== popoverTrigger || $[281] !== rememberLabels || $[282] !== setDraft || $[283] !== setTagError || $[284] !== uniqueValues) {
|
|
1227
|
+
t46 = (next_3) => {
|
|
1114
1228
|
setTagError(null);
|
|
1115
1229
|
rememberLabels(uniqueValues);
|
|
1116
1230
|
const pattern = delimiterPattern(delimiters);
|
|
@@ -1118,26 +1232,26 @@ function TagInput(props, ref) {
|
|
|
1118
1232
|
let nextDraft = next_3;
|
|
1119
1233
|
if (parts_0.length > 1) {
|
|
1120
1234
|
const rest = (parts_0.pop() ?? "").trimStart();
|
|
1121
|
-
nextDraft = [commitParts(parts_0.map(
|
|
1235
|
+
nextDraft = [commitParts(parts_0.map(_temp7).filter(Boolean)), rest].filter(Boolean).join(joiner);
|
|
1122
1236
|
}
|
|
1123
1237
|
setDraft(nextDraft);
|
|
1124
1238
|
if (hasOptions && popoverTrigger !== "manual" && nextDraft.trim()) setIsPopoverOpen(true);
|
|
1125
1239
|
};
|
|
1126
|
-
$[
|
|
1127
|
-
$[
|
|
1128
|
-
$[
|
|
1129
|
-
$[
|
|
1130
|
-
$[
|
|
1131
|
-
$[
|
|
1132
|
-
$[
|
|
1133
|
-
$[
|
|
1134
|
-
$[
|
|
1135
|
-
$[
|
|
1136
|
-
} else
|
|
1137
|
-
const handleInputChange = useEvent(
|
|
1138
|
-
let
|
|
1139
|
-
if ($[
|
|
1140
|
-
|
|
1240
|
+
$[276] = commitParts;
|
|
1241
|
+
$[277] = delimiters;
|
|
1242
|
+
$[278] = hasOptions;
|
|
1243
|
+
$[279] = joiner;
|
|
1244
|
+
$[280] = popoverTrigger;
|
|
1245
|
+
$[281] = rememberLabels;
|
|
1246
|
+
$[282] = setDraft;
|
|
1247
|
+
$[283] = setTagError;
|
|
1248
|
+
$[284] = uniqueValues;
|
|
1249
|
+
$[285] = t46;
|
|
1250
|
+
} else t46 = $[285];
|
|
1251
|
+
const handleInputChange = useEvent(t46);
|
|
1252
|
+
let t47;
|
|
1253
|
+
if ($[286] !== commitParts || $[287] !== delimiters || $[288] !== draft || $[289] !== isInteractive || $[290] !== setDraft || $[291] !== setTagError) {
|
|
1254
|
+
t47 = (e_0) => {
|
|
1141
1255
|
if (!isInteractive) return;
|
|
1142
1256
|
const pasted = e_0.clipboardData.getData("text");
|
|
1143
1257
|
if (!pasted || splitTagText(pasted, delimiters).length < 2) return;
|
|
@@ -1148,70 +1262,71 @@ function TagInput(props, ref) {
|
|
|
1148
1262
|
setTagError(null);
|
|
1149
1263
|
setDraft(commitParts(splitTagText(`${draft.slice(0, start_0)}\n${pasted}\n${draft.slice(end_0)}`, delimiters)));
|
|
1150
1264
|
};
|
|
1151
|
-
$[
|
|
1152
|
-
$[
|
|
1153
|
-
$[
|
|
1154
|
-
$[
|
|
1155
|
-
$[
|
|
1156
|
-
$[
|
|
1157
|
-
$[
|
|
1158
|
-
} else
|
|
1159
|
-
const handlePaste = useEvent(
|
|
1160
|
-
let
|
|
1161
|
-
if ($[
|
|
1162
|
-
|
|
1265
|
+
$[286] = commitParts;
|
|
1266
|
+
$[287] = delimiters;
|
|
1267
|
+
$[288] = draft;
|
|
1268
|
+
$[289] = isInteractive;
|
|
1269
|
+
$[290] = setDraft;
|
|
1270
|
+
$[291] = setTagError;
|
|
1271
|
+
$[292] = t47;
|
|
1272
|
+
} else t47 = $[292];
|
|
1273
|
+
const handlePaste = useEvent(t47);
|
|
1274
|
+
let t48;
|
|
1275
|
+
if ($[293] !== allowsCustomValue || $[294] !== commitDraft || $[295] !== findOptionKey || $[296] !== hasOptions || $[297] !== isInteractive || $[298] !== setDraft || $[299] !== setTagError || $[300] !== shouldCommitOnBlur || $[301] !== term) {
|
|
1276
|
+
t48 = () => {
|
|
1163
1277
|
if (!term || !shouldCommitOnBlur || !isInteractive) return;
|
|
1164
1278
|
if (hasOptions && !allowsCustomValue && findOptionKey(term) == null) {
|
|
1165
1279
|
setDraft("");
|
|
1166
1280
|
setTagError(null);
|
|
1167
1281
|
} else commitDraft();
|
|
1168
1282
|
};
|
|
1169
|
-
$[
|
|
1170
|
-
$[
|
|
1171
|
-
$[
|
|
1172
|
-
$[
|
|
1173
|
-
$[
|
|
1174
|
-
$[
|
|
1175
|
-
$[
|
|
1176
|
-
$[
|
|
1177
|
-
$[
|
|
1178
|
-
$[
|
|
1179
|
-
} else
|
|
1180
|
-
const settleDraft = useEvent(
|
|
1181
|
-
let
|
|
1182
|
-
if ($[
|
|
1183
|
-
|
|
1283
|
+
$[293] = allowsCustomValue;
|
|
1284
|
+
$[294] = commitDraft;
|
|
1285
|
+
$[295] = findOptionKey;
|
|
1286
|
+
$[296] = hasOptions;
|
|
1287
|
+
$[297] = isInteractive;
|
|
1288
|
+
$[298] = setDraft;
|
|
1289
|
+
$[299] = setTagError;
|
|
1290
|
+
$[300] = shouldCommitOnBlur;
|
|
1291
|
+
$[301] = term;
|
|
1292
|
+
$[302] = t48;
|
|
1293
|
+
} else t48 = $[302];
|
|
1294
|
+
const settleDraft = useEvent(t48);
|
|
1295
|
+
let t49;
|
|
1296
|
+
if ($[303] !== onBlur || $[304] !== settleDraft) {
|
|
1297
|
+
t49 = () => {
|
|
1184
1298
|
setIsPopoverOpen(false);
|
|
1299
|
+
setUnpickedCustomValues([]);
|
|
1185
1300
|
settleDraft();
|
|
1186
1301
|
onBlur?.();
|
|
1187
1302
|
};
|
|
1188
|
-
$[
|
|
1189
|
-
$[
|
|
1190
|
-
$[
|
|
1191
|
-
} else
|
|
1192
|
-
const handleCompositeBlur = useEvent(
|
|
1193
|
-
const
|
|
1194
|
-
const
|
|
1195
|
-
let
|
|
1196
|
-
if ($[
|
|
1197
|
-
|
|
1198
|
-
wrapperRef:
|
|
1199
|
-
popoverRef:
|
|
1303
|
+
$[303] = onBlur;
|
|
1304
|
+
$[304] = settleDraft;
|
|
1305
|
+
$[305] = t49;
|
|
1306
|
+
} else t49 = $[305];
|
|
1307
|
+
const handleCompositeBlur = useEvent(t49);
|
|
1308
|
+
const t50 = rootRef;
|
|
1309
|
+
const t51 = popoverRef;
|
|
1310
|
+
let t52;
|
|
1311
|
+
if ($[306] !== handleCompositeBlur || $[307] !== isDisabled || $[308] !== onFocus || $[309] !== t50 || $[310] !== t51) {
|
|
1312
|
+
t52 = {
|
|
1313
|
+
wrapperRef: t50,
|
|
1314
|
+
popoverRef: t51,
|
|
1200
1315
|
onFocus,
|
|
1201
1316
|
onBlur: handleCompositeBlur,
|
|
1202
1317
|
isDisabled
|
|
1203
1318
|
};
|
|
1204
|
-
$[
|
|
1205
|
-
$[
|
|
1206
|
-
$[
|
|
1207
|
-
$[
|
|
1208
|
-
$[
|
|
1209
|
-
$[
|
|
1210
|
-
} else
|
|
1211
|
-
const { compositeFocusProps } = useCompositeFocus(
|
|
1212
|
-
let
|
|
1213
|
-
if ($[
|
|
1214
|
-
|
|
1319
|
+
$[306] = handleCompositeBlur;
|
|
1320
|
+
$[307] = isDisabled;
|
|
1321
|
+
$[308] = onFocus;
|
|
1322
|
+
$[309] = t50;
|
|
1323
|
+
$[310] = t51;
|
|
1324
|
+
$[311] = t52;
|
|
1325
|
+
} else t52 = $[311];
|
|
1326
|
+
const { compositeFocusProps } = useCompositeFocus(t52);
|
|
1327
|
+
let t53;
|
|
1328
|
+
if ($[312] !== rootRef || $[313] !== settleDraft) {
|
|
1329
|
+
t53 = (e_1) => {
|
|
1215
1330
|
const isTabbing = isTabbingRef.current;
|
|
1216
1331
|
const next_4 = e_1.relatedTarget;
|
|
1217
1332
|
isTabbingRef.current = false;
|
|
@@ -1219,68 +1334,68 @@ function TagInput(props, ref) {
|
|
|
1219
1334
|
setIsPopoverOpen(false);
|
|
1220
1335
|
settleDraft();
|
|
1221
1336
|
};
|
|
1222
|
-
$[
|
|
1223
|
-
$[
|
|
1224
|
-
$[
|
|
1225
|
-
} else
|
|
1226
|
-
const handleInputBlur = useEvent(
|
|
1227
|
-
let
|
|
1228
|
-
if ($[
|
|
1229
|
-
|
|
1337
|
+
$[312] = rootRef;
|
|
1338
|
+
$[313] = settleDraft;
|
|
1339
|
+
$[314] = t53;
|
|
1340
|
+
} else t53 = $[314];
|
|
1341
|
+
const handleInputBlur = useEvent(t53);
|
|
1342
|
+
let t54;
|
|
1343
|
+
if ($[315] !== hasOptions || $[316] !== isInteractive || $[317] !== popoverTrigger) {
|
|
1344
|
+
t54 = () => {
|
|
1230
1345
|
if (hasOptions && popoverTrigger === "focus" && isInteractive) setIsPopoverOpen(true);
|
|
1231
1346
|
};
|
|
1232
|
-
$[
|
|
1233
|
-
$[
|
|
1234
|
-
$[
|
|
1235
|
-
$[
|
|
1236
|
-
} else
|
|
1237
|
-
const handleInputFocus = useEvent(
|
|
1238
|
-
let
|
|
1239
|
-
if ($[
|
|
1240
|
-
|
|
1241
|
-
const ownProps = tagProps?.(
|
|
1242
|
-
const result_0 = !(collection.getItem(
|
|
1243
|
-
const label_1 = textLabel(ownProps?.children) ?? getOptionLabel(
|
|
1347
|
+
$[315] = hasOptions;
|
|
1348
|
+
$[316] = isInteractive;
|
|
1349
|
+
$[317] = popoverTrigger;
|
|
1350
|
+
$[318] = t54;
|
|
1351
|
+
} else t54 = $[318];
|
|
1352
|
+
const handleInputFocus = useEvent(t54);
|
|
1353
|
+
let t55;
|
|
1354
|
+
if ($[319] !== collection || $[320] !== getOptionLabel || $[321] !== knownLabels || $[322] !== t || $[323] !== tagProps || $[324] !== uniqueValues || $[325] !== validateTag) {
|
|
1355
|
+
t55 = uniqueValues.map((value_5) => {
|
|
1356
|
+
const ownProps = tagProps?.(value_5);
|
|
1357
|
+
const result_0 = !(collection.getItem(value_5) != null || knownLabels.has(value_5)) && validateTag ? validateTag(value_5) : true;
|
|
1358
|
+
const label_1 = textLabel(ownProps?.children) ?? getOptionLabel(value_5);
|
|
1244
1359
|
return {
|
|
1245
|
-
key:
|
|
1360
|
+
key: value_5,
|
|
1246
1361
|
label: label_1,
|
|
1247
1362
|
invalidMessage: typeof result_0 === "string" ? result_0 : result_0 === false ? t("tagInput.invalidValue", "\"{{value}}\" is not a valid value", { value: label_1 }) : void 0,
|
|
1248
1363
|
tagProps: ownProps,
|
|
1249
1364
|
isDisabled: !!ownProps?.isDisabled
|
|
1250
1365
|
};
|
|
1251
1366
|
});
|
|
1252
|
-
$[
|
|
1253
|
-
$[
|
|
1254
|
-
$[
|
|
1255
|
-
$[
|
|
1256
|
-
$[
|
|
1257
|
-
$[
|
|
1258
|
-
$[
|
|
1259
|
-
$[
|
|
1260
|
-
} else
|
|
1261
|
-
const tags =
|
|
1367
|
+
$[319] = collection;
|
|
1368
|
+
$[320] = getOptionLabel;
|
|
1369
|
+
$[321] = knownLabels;
|
|
1370
|
+
$[322] = t;
|
|
1371
|
+
$[323] = tagProps;
|
|
1372
|
+
$[324] = uniqueValues;
|
|
1373
|
+
$[325] = validateTag;
|
|
1374
|
+
$[326] = t55;
|
|
1375
|
+
} else t55 = $[326];
|
|
1376
|
+
const tags = t55;
|
|
1262
1377
|
const effectiveIsInvalid = tagError ? true : isInvalid;
|
|
1263
|
-
const hasRemovableTags = tags.some(
|
|
1378
|
+
const hasRemovableTags = tags.some(_temp8);
|
|
1264
1379
|
const hasBackspaceHint = isInteractive && hasRemovableTags;
|
|
1265
|
-
let
|
|
1266
|
-
if ($[
|
|
1267
|
-
|
|
1268
|
-
$[
|
|
1269
|
-
$[
|
|
1270
|
-
} else
|
|
1271
|
-
const locked =
|
|
1272
|
-
let
|
|
1273
|
-
if ($[
|
|
1274
|
-
|
|
1275
|
-
$[
|
|
1276
|
-
$[
|
|
1277
|
-
$[
|
|
1278
|
-
$[
|
|
1279
|
-
} else
|
|
1280
|
-
const optionDisabledKeys =
|
|
1281
|
-
let
|
|
1282
|
-
if ($[
|
|
1283
|
-
|
|
1380
|
+
let t56;
|
|
1381
|
+
if ($[327] !== tags) {
|
|
1382
|
+
t56 = tags.filter(_temp9).map(_temp0);
|
|
1383
|
+
$[327] = tags;
|
|
1384
|
+
$[328] = t56;
|
|
1385
|
+
} else t56 = $[328];
|
|
1386
|
+
const locked = t56;
|
|
1387
|
+
let t57;
|
|
1388
|
+
if ($[329] !== disabledKeySet || $[330] !== disabledKeys || $[331] !== locked) {
|
|
1389
|
+
t57 = locked.length ? [...disabledKeySet, ...locked] : disabledKeys;
|
|
1390
|
+
$[329] = disabledKeySet;
|
|
1391
|
+
$[330] = disabledKeys;
|
|
1392
|
+
$[331] = locked;
|
|
1393
|
+
$[332] = t57;
|
|
1394
|
+
} else t57 = $[332];
|
|
1395
|
+
const optionDisabledKeys = t57;
|
|
1396
|
+
let t58;
|
|
1397
|
+
if ($[333] !== autoFocus || $[334] !== draft || $[335] !== effectiveIsInvalid || $[336] !== handleInputChange || $[337] !== id || $[338] !== isDisabled || $[339] !== isReadOnly || $[340] !== isRequired || $[341] !== label || $[342] !== otherProps || $[343] !== placeholder) {
|
|
1398
|
+
t58 = {
|
|
1284
1399
|
...otherProps,
|
|
1285
1400
|
id,
|
|
1286
1401
|
label,
|
|
@@ -1293,37 +1408,37 @@ function TagInput(props, ref) {
|
|
|
1293
1408
|
autoFocus,
|
|
1294
1409
|
onChange: handleInputChange
|
|
1295
1410
|
};
|
|
1296
|
-
$[
|
|
1297
|
-
$[
|
|
1298
|
-
$[
|
|
1299
|
-
$[
|
|
1300
|
-
$[
|
|
1301
|
-
$[
|
|
1302
|
-
$[
|
|
1303
|
-
$[
|
|
1304
|
-
$[
|
|
1305
|
-
$[
|
|
1306
|
-
$[
|
|
1307
|
-
$[
|
|
1308
|
-
} else
|
|
1309
|
-
const { labelProps, inputProps } = useTextField(
|
|
1411
|
+
$[333] = autoFocus;
|
|
1412
|
+
$[334] = draft;
|
|
1413
|
+
$[335] = effectiveIsInvalid;
|
|
1414
|
+
$[336] = handleInputChange;
|
|
1415
|
+
$[337] = id;
|
|
1416
|
+
$[338] = isDisabled;
|
|
1417
|
+
$[339] = isReadOnly;
|
|
1418
|
+
$[340] = isRequired;
|
|
1419
|
+
$[341] = label;
|
|
1420
|
+
$[342] = otherProps;
|
|
1421
|
+
$[343] = placeholder;
|
|
1422
|
+
$[344] = t58;
|
|
1423
|
+
} else t58 = $[344];
|
|
1424
|
+
const { labelProps, inputProps } = useTextField(t58, inputRef);
|
|
1310
1425
|
const labelId = label ? labelProps.id : void 0;
|
|
1311
1426
|
let describedBy;
|
|
1312
|
-
if ($[
|
|
1427
|
+
if ($[345] !== hasBackspaceHint || $[346] !== hintId || $[347] !== inputProps || $[348] !== summaryId || $[349] !== tags.length) {
|
|
1313
1428
|
describedBy = [];
|
|
1314
1429
|
if (inputProps["aria-describedby"]) describedBy.push(inputProps["aria-describedby"]);
|
|
1315
1430
|
if (tags.length) describedBy.push(summaryId);
|
|
1316
1431
|
if (hasBackspaceHint) describedBy.push(hintId);
|
|
1317
|
-
$[
|
|
1318
|
-
$[
|
|
1319
|
-
$[
|
|
1320
|
-
$[
|
|
1321
|
-
$[
|
|
1322
|
-
$[
|
|
1323
|
-
} else describedBy = $[
|
|
1324
|
-
let
|
|
1325
|
-
if ($[
|
|
1326
|
-
|
|
1432
|
+
$[345] = hasBackspaceHint;
|
|
1433
|
+
$[346] = hintId;
|
|
1434
|
+
$[347] = inputProps;
|
|
1435
|
+
$[348] = summaryId;
|
|
1436
|
+
$[349] = tags.length;
|
|
1437
|
+
$[350] = describedBy;
|
|
1438
|
+
} else describedBy = $[350];
|
|
1439
|
+
let t59;
|
|
1440
|
+
if ($[351] !== activeOptionKey || $[352] !== autoComplete || $[353] !== describedBy || $[354] !== handleInputBlur || $[355] !== handleInputFocus || $[356] !== handleKeyDown || $[357] !== handlePaste || $[358] !== hasOptions || $[359] !== inputProps || $[360] !== shouldShowPopover) {
|
|
1441
|
+
t59 = mergeProps$1(inputProps, {
|
|
1327
1442
|
onKeyDown: handleKeyDown,
|
|
1328
1443
|
onPaste: handlePaste,
|
|
1329
1444
|
onBlur: handleInputBlur,
|
|
@@ -1339,36 +1454,36 @@ function TagInput(props, ref) {
|
|
|
1339
1454
|
"aria-controls": shouldShowPopover ? listBoxId : void 0,
|
|
1340
1455
|
"aria-activedescendant": shouldShowPopover && activeOptionKey != null ? getListBoxOptionId(listBoxId, activeOptionKey) : void 0
|
|
1341
1456
|
} : null);
|
|
1342
|
-
$[
|
|
1343
|
-
$[
|
|
1344
|
-
$[
|
|
1345
|
-
$[
|
|
1346
|
-
$[
|
|
1347
|
-
$[
|
|
1348
|
-
$[
|
|
1349
|
-
$[
|
|
1350
|
-
$[
|
|
1351
|
-
$[
|
|
1352
|
-
$[
|
|
1353
|
-
} else
|
|
1354
|
-
const tagInputProps =
|
|
1355
|
-
let
|
|
1356
|
-
if ($[
|
|
1357
|
-
|
|
1457
|
+
$[351] = activeOptionKey;
|
|
1458
|
+
$[352] = autoComplete;
|
|
1459
|
+
$[353] = describedBy;
|
|
1460
|
+
$[354] = handleInputBlur;
|
|
1461
|
+
$[355] = handleInputFocus;
|
|
1462
|
+
$[356] = handleKeyDown;
|
|
1463
|
+
$[357] = handlePaste;
|
|
1464
|
+
$[358] = hasOptions;
|
|
1465
|
+
$[359] = inputProps;
|
|
1466
|
+
$[360] = shouldShowPopover;
|
|
1467
|
+
$[361] = t59;
|
|
1468
|
+
} else t59 = $[361];
|
|
1469
|
+
const tagInputProps = t59;
|
|
1470
|
+
let t60;
|
|
1471
|
+
if ($[362] !== hasResults || $[363] !== inputRef || $[364] !== shouldShowPopover) {
|
|
1472
|
+
t60 = () => {
|
|
1358
1473
|
const willOpen = !shouldShowPopover;
|
|
1359
1474
|
if (willOpen && !hasResults) setIsFilterActive(false);
|
|
1360
1475
|
setIsPopoverOpen(willOpen);
|
|
1361
1476
|
inputRef.current?.focus();
|
|
1362
1477
|
};
|
|
1363
|
-
$[
|
|
1364
|
-
$[
|
|
1365
|
-
$[
|
|
1366
|
-
$[
|
|
1367
|
-
} else
|
|
1368
|
-
const handleTriggerPress = useEvent(
|
|
1369
|
-
let
|
|
1370
|
-
if ($[
|
|
1371
|
-
|
|
1478
|
+
$[362] = hasResults;
|
|
1479
|
+
$[363] = inputRef;
|
|
1480
|
+
$[364] = shouldShowPopover;
|
|
1481
|
+
$[365] = t60;
|
|
1482
|
+
} else t60 = $[365];
|
|
1483
|
+
const handleTriggerPress = useEvent(t60);
|
|
1484
|
+
let t61;
|
|
1485
|
+
if ($[366] !== handleTriggerPress || $[367] !== hasOptions || $[368] !== hideTrigger || $[369] !== isInteractive || $[370] !== labelId || $[371] !== shouldShowPopover || $[372] !== size || $[373] !== t || $[374] !== triggerId || $[375] !== triggerStyles) {
|
|
1486
|
+
t61 = hasOptions && !hideTrigger ? /* @__PURE__ */ jsx(ItemAction, {
|
|
1372
1487
|
"data-popover-trigger": true,
|
|
1373
1488
|
id: triggerId,
|
|
1374
1489
|
qa: "TagInputTrigger",
|
|
@@ -1384,80 +1499,71 @@ function TagInput(props, ref) {
|
|
|
1384
1499
|
"aria-labelledby": labelId ? `${triggerId} ${labelId}` : void 0,
|
|
1385
1500
|
onPress: handleTriggerPress
|
|
1386
1501
|
}) : null;
|
|
1387
|
-
$[
|
|
1388
|
-
$[
|
|
1389
|
-
$[
|
|
1390
|
-
$[
|
|
1391
|
-
$[
|
|
1392
|
-
$[
|
|
1393
|
-
$[
|
|
1394
|
-
$[
|
|
1395
|
-
$[
|
|
1396
|
-
$[
|
|
1397
|
-
$[
|
|
1398
|
-
} else
|
|
1399
|
-
const trigger =
|
|
1400
|
-
let
|
|
1401
|
-
if ($[
|
|
1402
|
-
|
|
1502
|
+
$[366] = handleTriggerPress;
|
|
1503
|
+
$[367] = hasOptions;
|
|
1504
|
+
$[368] = hideTrigger;
|
|
1505
|
+
$[369] = isInteractive;
|
|
1506
|
+
$[370] = labelId;
|
|
1507
|
+
$[371] = shouldShowPopover;
|
|
1508
|
+
$[372] = size;
|
|
1509
|
+
$[373] = t;
|
|
1510
|
+
$[374] = triggerId;
|
|
1511
|
+
$[375] = triggerStyles;
|
|
1512
|
+
$[376] = t61;
|
|
1513
|
+
} else t61 = $[376];
|
|
1514
|
+
const trigger = t61;
|
|
1515
|
+
let t62;
|
|
1516
|
+
if ($[377] !== inputRef || $[378] !== onClear || $[379] !== setDraft || $[380] !== setTagError) {
|
|
1517
|
+
t62 = () => {
|
|
1403
1518
|
inputRef.current?.focus();
|
|
1404
|
-
const kept = uniqueValues.filter(isTagLocked);
|
|
1405
|
-
if (kept.length !== uniqueValues.length) {
|
|
1406
|
-
setValues(kept);
|
|
1407
|
-
announce(t("tagInput.cleared", "Removed all values"));
|
|
1408
|
-
}
|
|
1409
1519
|
setDraft("");
|
|
1410
1520
|
setTagError(null);
|
|
1411
1521
|
setIsPopoverOpen(false);
|
|
1412
1522
|
onClear?.();
|
|
1413
1523
|
};
|
|
1414
|
-
$[
|
|
1415
|
-
$[
|
|
1416
|
-
$[
|
|
1417
|
-
$[
|
|
1418
|
-
$[
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
const clearAll = useEvent(t56);
|
|
1426
|
-
const canClear = !!isClearable && isInteractive && (hasRemovableTags || draft !== "");
|
|
1427
|
-
let t57;
|
|
1428
|
-
if ($[344] !== canClear || $[345] !== clearAll || $[346] !== clearId || $[347] !== labelId || $[348] !== size || $[349] !== t) {
|
|
1429
|
-
t57 = canClear ? /* @__PURE__ */ jsx(ItemAction, {
|
|
1524
|
+
$[377] = inputRef;
|
|
1525
|
+
$[378] = onClear;
|
|
1526
|
+
$[379] = setDraft;
|
|
1527
|
+
$[380] = setTagError;
|
|
1528
|
+
$[381] = t62;
|
|
1529
|
+
} else t62 = $[381];
|
|
1530
|
+
const clearText = useEvent(t62);
|
|
1531
|
+
const canClear = !!isClearable && isInteractive && draft !== "";
|
|
1532
|
+
let t63;
|
|
1533
|
+
if ($[382] !== canClear || $[383] !== clearId || $[384] !== clearText || $[385] !== labelId || $[386] !== size || $[387] !== t) {
|
|
1534
|
+
t63 = canClear ? /* @__PURE__ */ jsx(ItemAction, {
|
|
1430
1535
|
id: clearId,
|
|
1431
1536
|
qa: "TagInputClearButton",
|
|
1432
1537
|
icon: /* @__PURE__ */ jsx(CloseIcon, {}),
|
|
1433
1538
|
size,
|
|
1434
|
-
|
|
1539
|
+
tabIndex: -1,
|
|
1540
|
+
"aria-label": t("tagInput.clearText", "Clear text"),
|
|
1435
1541
|
"aria-labelledby": labelId ? `${clearId} ${labelId}` : void 0,
|
|
1436
|
-
onPress:
|
|
1542
|
+
onPress: clearText
|
|
1437
1543
|
}) : null;
|
|
1438
|
-
$[
|
|
1439
|
-
$[
|
|
1440
|
-
$[
|
|
1441
|
-
$[
|
|
1442
|
-
$[
|
|
1443
|
-
$[
|
|
1444
|
-
$[
|
|
1445
|
-
} else
|
|
1446
|
-
const clearButton =
|
|
1544
|
+
$[382] = canClear;
|
|
1545
|
+
$[383] = clearId;
|
|
1546
|
+
$[384] = clearText;
|
|
1547
|
+
$[385] = labelId;
|
|
1548
|
+
$[386] = size;
|
|
1549
|
+
$[387] = t;
|
|
1550
|
+
$[388] = t63;
|
|
1551
|
+
} else t63 = $[388];
|
|
1552
|
+
const clearButton = t63;
|
|
1447
1553
|
const hasActions = clearButton != null || trigger != null;
|
|
1448
|
-
const
|
|
1449
|
-
let
|
|
1450
|
-
if ($[
|
|
1451
|
-
|
|
1452
|
-
$[
|
|
1453
|
-
$[
|
|
1454
|
-
$[
|
|
1455
|
-
$[
|
|
1456
|
-
} else
|
|
1457
|
-
let
|
|
1458
|
-
if ($[
|
|
1459
|
-
|
|
1460
|
-
qa:
|
|
1554
|
+
const t64 = qa || "TagInput";
|
|
1555
|
+
let t65;
|
|
1556
|
+
if ($[389] !== clearButton || $[390] !== hasActions || $[391] !== trigger) {
|
|
1557
|
+
t65 = hasActions ? /* @__PURE__ */ jsxs(Fragment$1, { children: [clearButton, trigger] }) : null;
|
|
1558
|
+
$[389] = clearButton;
|
|
1559
|
+
$[390] = hasActions;
|
|
1560
|
+
$[391] = trigger;
|
|
1561
|
+
$[392] = t65;
|
|
1562
|
+
} else t65 = $[392];
|
|
1563
|
+
let t66;
|
|
1564
|
+
if ($[393] !== autoFocus || $[394] !== effectiveIsInvalid || $[395] !== icon || $[396] !== inputRef || $[397] !== inputStyles || $[398] !== isDisabled || $[399] !== isLoading || $[400] !== isValid || $[401] !== mods || $[402] !== prefix || $[403] !== size || $[404] !== suffix || $[405] !== suffixPosition || $[406] !== t64 || $[407] !== t65 || $[408] !== tagInputProps || $[409] !== wrapperRef || $[410] !== wrapperStyles) {
|
|
1565
|
+
t66 = /* @__PURE__ */ jsx(TextInputBase, {
|
|
1566
|
+
qa: t64,
|
|
1461
1567
|
inputRef,
|
|
1462
1568
|
wrapperRef,
|
|
1463
1569
|
inputProps: tagInputProps,
|
|
@@ -1466,7 +1572,7 @@ function TagInput(props, ref) {
|
|
|
1466
1572
|
prefix,
|
|
1467
1573
|
suffix,
|
|
1468
1574
|
suffixPosition,
|
|
1469
|
-
actions:
|
|
1575
|
+
actions: t65,
|
|
1470
1576
|
size,
|
|
1471
1577
|
autoFocus,
|
|
1472
1578
|
isDisabled,
|
|
@@ -1476,29 +1582,29 @@ function TagInput(props, ref) {
|
|
|
1476
1582
|
styles: wrapperStyles,
|
|
1477
1583
|
inputStyles
|
|
1478
1584
|
});
|
|
1479
|
-
$[
|
|
1480
|
-
$[
|
|
1481
|
-
$[
|
|
1482
|
-
$[
|
|
1483
|
-
$[
|
|
1484
|
-
$[
|
|
1485
|
-
$[
|
|
1486
|
-
$[
|
|
1487
|
-
$[
|
|
1488
|
-
$[
|
|
1489
|
-
$[
|
|
1490
|
-
$[
|
|
1491
|
-
$[
|
|
1492
|
-
$[
|
|
1493
|
-
$[
|
|
1494
|
-
$[
|
|
1495
|
-
$[
|
|
1496
|
-
$[
|
|
1497
|
-
$[
|
|
1498
|
-
} else
|
|
1499
|
-
let
|
|
1500
|
-
if ($[
|
|
1501
|
-
|
|
1585
|
+
$[393] = autoFocus;
|
|
1586
|
+
$[394] = effectiveIsInvalid;
|
|
1587
|
+
$[395] = icon;
|
|
1588
|
+
$[396] = inputRef;
|
|
1589
|
+
$[397] = inputStyles;
|
|
1590
|
+
$[398] = isDisabled;
|
|
1591
|
+
$[399] = isLoading;
|
|
1592
|
+
$[400] = isValid;
|
|
1593
|
+
$[401] = mods;
|
|
1594
|
+
$[402] = prefix;
|
|
1595
|
+
$[403] = size;
|
|
1596
|
+
$[404] = suffix;
|
|
1597
|
+
$[405] = suffixPosition;
|
|
1598
|
+
$[406] = t64;
|
|
1599
|
+
$[407] = t65;
|
|
1600
|
+
$[408] = tagInputProps;
|
|
1601
|
+
$[409] = wrapperRef;
|
|
1602
|
+
$[410] = wrapperStyles;
|
|
1603
|
+
$[411] = t66;
|
|
1604
|
+
} else t66 = $[411];
|
|
1605
|
+
let t67;
|
|
1606
|
+
if ($[412] !== inputRef || $[413] !== isDisabled || $[414] !== isReadOnly || $[415] !== labelId || $[416] !== removeValues || $[417] !== size || $[418] !== t || $[419] !== tagListId || $[420] !== tagListStyles || $[421] !== tagStyles || $[422] !== tags) {
|
|
1607
|
+
t67 = tags.length ? /* @__PURE__ */ jsx(TagList, {
|
|
1502
1608
|
id: tagListId,
|
|
1503
1609
|
listRef: tagListRef,
|
|
1504
1610
|
inputRef,
|
|
@@ -1512,71 +1618,71 @@ function TagInput(props, ref) {
|
|
|
1512
1618
|
tagStyles,
|
|
1513
1619
|
onRemove: removeValues
|
|
1514
1620
|
}) : null;
|
|
1515
|
-
$[
|
|
1516
|
-
$[
|
|
1517
|
-
$[
|
|
1518
|
-
$[
|
|
1519
|
-
$[
|
|
1520
|
-
$[
|
|
1521
|
-
$[
|
|
1522
|
-
$[
|
|
1523
|
-
$[
|
|
1524
|
-
$[
|
|
1525
|
-
$[
|
|
1526
|
-
$[
|
|
1527
|
-
} else
|
|
1528
|
-
let
|
|
1529
|
-
if ($[
|
|
1530
|
-
|
|
1531
|
-
$[
|
|
1532
|
-
$[
|
|
1533
|
-
$[
|
|
1534
|
-
$[
|
|
1535
|
-
} else
|
|
1536
|
-
let
|
|
1537
|
-
if ($[
|
|
1538
|
-
|
|
1621
|
+
$[412] = inputRef;
|
|
1622
|
+
$[413] = isDisabled;
|
|
1623
|
+
$[414] = isReadOnly;
|
|
1624
|
+
$[415] = labelId;
|
|
1625
|
+
$[416] = removeValues;
|
|
1626
|
+
$[417] = size;
|
|
1627
|
+
$[418] = t;
|
|
1628
|
+
$[419] = tagListId;
|
|
1629
|
+
$[420] = tagListStyles;
|
|
1630
|
+
$[421] = tagStyles;
|
|
1631
|
+
$[422] = tags;
|
|
1632
|
+
$[423] = t67;
|
|
1633
|
+
} else t67 = $[423];
|
|
1634
|
+
let t68;
|
|
1635
|
+
if ($[424] !== formatList || $[425] !== t || $[426] !== tags) {
|
|
1636
|
+
t68 = tags.length ? t("tagInput.summary", "Selected: {{values}}.", { values: formatList(tags.map(_temp1)) }) : null;
|
|
1637
|
+
$[424] = formatList;
|
|
1638
|
+
$[425] = t;
|
|
1639
|
+
$[426] = tags;
|
|
1640
|
+
$[427] = t68;
|
|
1641
|
+
} else t68 = $[427];
|
|
1642
|
+
let t69;
|
|
1643
|
+
if ($[428] !== summaryId || $[429] !== t68) {
|
|
1644
|
+
t69 = /* @__PURE__ */ jsx("span", {
|
|
1539
1645
|
hidden: true,
|
|
1540
1646
|
id: summaryId,
|
|
1541
|
-
children:
|
|
1647
|
+
children: t68
|
|
1542
1648
|
});
|
|
1543
|
-
$[
|
|
1544
|
-
$[
|
|
1545
|
-
$[
|
|
1546
|
-
} else
|
|
1547
|
-
let
|
|
1548
|
-
if ($[
|
|
1549
|
-
|
|
1550
|
-
$[
|
|
1551
|
-
$[
|
|
1552
|
-
$[
|
|
1553
|
-
} else
|
|
1554
|
-
let
|
|
1555
|
-
if ($[
|
|
1556
|
-
|
|
1649
|
+
$[428] = summaryId;
|
|
1650
|
+
$[429] = t68;
|
|
1651
|
+
$[430] = t69;
|
|
1652
|
+
} else t69 = $[430];
|
|
1653
|
+
let t70;
|
|
1654
|
+
if ($[431] !== hasBackspaceHint || $[432] !== t) {
|
|
1655
|
+
t70 = hasBackspaceHint ? t("tagInput.backspaceHint", "Press Backspace to go to the selected values.") : null;
|
|
1656
|
+
$[431] = hasBackspaceHint;
|
|
1657
|
+
$[432] = t;
|
|
1658
|
+
$[433] = t70;
|
|
1659
|
+
} else t70 = $[433];
|
|
1660
|
+
let t71;
|
|
1661
|
+
if ($[434] !== hintId || $[435] !== t70) {
|
|
1662
|
+
t71 = /* @__PURE__ */ jsx("span", {
|
|
1557
1663
|
hidden: true,
|
|
1558
1664
|
id: hintId,
|
|
1559
|
-
children:
|
|
1665
|
+
children: t70
|
|
1560
1666
|
});
|
|
1561
|
-
$[
|
|
1562
|
-
$[
|
|
1563
|
-
$[
|
|
1564
|
-
} else
|
|
1565
|
-
let
|
|
1566
|
-
if ($[
|
|
1567
|
-
|
|
1667
|
+
$[434] = hintId;
|
|
1668
|
+
$[435] = t70;
|
|
1669
|
+
$[436] = t71;
|
|
1670
|
+
} else t71 = $[436];
|
|
1671
|
+
let t72;
|
|
1672
|
+
if ($[437] !== announcement.id || $[438] !== announcement.text) {
|
|
1673
|
+
t72 = /* @__PURE__ */ jsx(VisuallyHidden, {
|
|
1568
1674
|
role: "status",
|
|
1569
1675
|
"aria-live": "polite",
|
|
1570
1676
|
"aria-atomic": "true",
|
|
1571
1677
|
children: /* @__PURE__ */ jsx("span", { children: announcement.text }, announcement.id)
|
|
1572
1678
|
});
|
|
1573
|
-
$[
|
|
1574
|
-
$[
|
|
1575
|
-
$[
|
|
1576
|
-
} else
|
|
1577
|
-
let
|
|
1578
|
-
if ($[
|
|
1579
|
-
|
|
1679
|
+
$[437] = announcement.id;
|
|
1680
|
+
$[438] = announcement.text;
|
|
1681
|
+
$[439] = t72;
|
|
1682
|
+
} else t72 = $[439];
|
|
1683
|
+
let t73;
|
|
1684
|
+
if ($[440] !== compositeFocusProps || $[441] !== containerPadding || $[442] !== direction || $[443] !== handlePopoverSelection || $[444] !== hasOptions || $[445] !== headingStyles || $[446] !== isDisabled || $[447] !== isFilterActive || $[448] !== label || $[449] !== listBoxRef || $[450] !== listBoxStyles || $[451] !== optionDisabledKeys || $[452] !== optionFilterFn || $[453] !== optionStyles || $[454] !== overlayOffset || $[455] !== overlayStyles || $[456] !== popoverChildren || $[457] !== popoverMinWidth || $[458] !== popoverRef || $[459] !== props || $[460] !== sectionStyles || $[461] !== shouldFlip || $[462] !== shouldShowPopover || $[463] !== size || $[464] !== term || $[465] !== uniqueValues || $[466] !== wrapperRef) {
|
|
1685
|
+
t73 = hasOptions ? /* @__PURE__ */ jsx(ListBoxPopover, {
|
|
1580
1686
|
isOpen: shouldShowPopover,
|
|
1581
1687
|
triggerRef: wrapperRef,
|
|
1582
1688
|
popoverRef,
|
|
@@ -1609,38 +1715,38 @@ function TagInput(props, ref) {
|
|
|
1609
1715
|
onClose: () => setIsPopoverOpen(false),
|
|
1610
1716
|
children: popoverChildren
|
|
1611
1717
|
}) : null;
|
|
1612
|
-
$[
|
|
1613
|
-
$[
|
|
1614
|
-
$[
|
|
1615
|
-
$[
|
|
1616
|
-
$[
|
|
1617
|
-
$[
|
|
1618
|
-
$[
|
|
1619
|
-
$[
|
|
1620
|
-
$[
|
|
1621
|
-
$[
|
|
1622
|
-
$[
|
|
1623
|
-
$[
|
|
1624
|
-
$[
|
|
1625
|
-
$[
|
|
1626
|
-
$[
|
|
1627
|
-
$[
|
|
1628
|
-
$[
|
|
1629
|
-
$[
|
|
1630
|
-
$[
|
|
1631
|
-
$[
|
|
1632
|
-
$[
|
|
1633
|
-
$[
|
|
1634
|
-
$[
|
|
1635
|
-
$[
|
|
1636
|
-
$[
|
|
1637
|
-
$[
|
|
1638
|
-
$[
|
|
1639
|
-
$[
|
|
1640
|
-
} else
|
|
1641
|
-
let
|
|
1642
|
-
if ($[
|
|
1643
|
-
|
|
1718
|
+
$[440] = compositeFocusProps;
|
|
1719
|
+
$[441] = containerPadding;
|
|
1720
|
+
$[442] = direction;
|
|
1721
|
+
$[443] = handlePopoverSelection;
|
|
1722
|
+
$[444] = hasOptions;
|
|
1723
|
+
$[445] = headingStyles;
|
|
1724
|
+
$[446] = isDisabled;
|
|
1725
|
+
$[447] = isFilterActive;
|
|
1726
|
+
$[448] = label;
|
|
1727
|
+
$[449] = listBoxRef;
|
|
1728
|
+
$[450] = listBoxStyles;
|
|
1729
|
+
$[451] = optionDisabledKeys;
|
|
1730
|
+
$[452] = optionFilterFn;
|
|
1731
|
+
$[453] = optionStyles;
|
|
1732
|
+
$[454] = overlayOffset;
|
|
1733
|
+
$[455] = overlayStyles;
|
|
1734
|
+
$[456] = popoverChildren;
|
|
1735
|
+
$[457] = popoverMinWidth;
|
|
1736
|
+
$[458] = popoverRef;
|
|
1737
|
+
$[459] = props;
|
|
1738
|
+
$[460] = sectionStyles;
|
|
1739
|
+
$[461] = shouldFlip;
|
|
1740
|
+
$[462] = shouldShowPopover;
|
|
1741
|
+
$[463] = size;
|
|
1742
|
+
$[464] = term;
|
|
1743
|
+
$[465] = uniqueValues;
|
|
1744
|
+
$[466] = wrapperRef;
|
|
1745
|
+
$[467] = t73;
|
|
1746
|
+
} else t73 = $[467];
|
|
1747
|
+
let t74;
|
|
1748
|
+
if ($[468] !== className || $[469] !== compositeFocusProps || $[470] !== qaVal || $[471] !== rootRef || $[472] !== style || $[473] !== styles || $[474] !== t66 || $[475] !== t67 || $[476] !== t69 || $[477] !== t71 || $[478] !== t72 || $[479] !== t73) {
|
|
1749
|
+
t74 = /* @__PURE__ */ jsxs(TagInputElement, {
|
|
1644
1750
|
ref: rootRef,
|
|
1645
1751
|
className,
|
|
1646
1752
|
style,
|
|
@@ -1648,43 +1754,43 @@ function TagInput(props, ref) {
|
|
|
1648
1754
|
styles,
|
|
1649
1755
|
...compositeFocusProps,
|
|
1650
1756
|
children: [
|
|
1651
|
-
t60,
|
|
1652
|
-
t61,
|
|
1653
|
-
t63,
|
|
1654
|
-
t65,
|
|
1655
1757
|
t66,
|
|
1656
|
-
t67
|
|
1758
|
+
t67,
|
|
1759
|
+
t69,
|
|
1760
|
+
t71,
|
|
1761
|
+
t72,
|
|
1762
|
+
t73
|
|
1657
1763
|
]
|
|
1658
1764
|
});
|
|
1659
|
-
$[
|
|
1660
|
-
$[
|
|
1661
|
-
$[
|
|
1662
|
-
$[
|
|
1663
|
-
$[
|
|
1664
|
-
$[
|
|
1665
|
-
$[
|
|
1666
|
-
$[
|
|
1667
|
-
$[
|
|
1668
|
-
$[
|
|
1669
|
-
$[
|
|
1670
|
-
$[
|
|
1671
|
-
$[
|
|
1672
|
-
} else
|
|
1673
|
-
const tagInputField =
|
|
1765
|
+
$[468] = className;
|
|
1766
|
+
$[469] = compositeFocusProps;
|
|
1767
|
+
$[470] = qaVal;
|
|
1768
|
+
$[471] = rootRef;
|
|
1769
|
+
$[472] = style;
|
|
1770
|
+
$[473] = styles;
|
|
1771
|
+
$[474] = t66;
|
|
1772
|
+
$[475] = t67;
|
|
1773
|
+
$[476] = t69;
|
|
1774
|
+
$[477] = t71;
|
|
1775
|
+
$[478] = t72;
|
|
1776
|
+
$[479] = t73;
|
|
1777
|
+
$[480] = t74;
|
|
1778
|
+
} else t74 = $[480];
|
|
1779
|
+
const tagInputField = t74;
|
|
1674
1780
|
const { children: _children, ...fieldProps } = props;
|
|
1675
1781
|
const fieldRef = useCombinedRefs();
|
|
1676
|
-
let
|
|
1677
|
-
if ($[
|
|
1678
|
-
|
|
1679
|
-
$[
|
|
1680
|
-
$[
|
|
1681
|
-
$[
|
|
1682
|
-
} else
|
|
1782
|
+
let t75;
|
|
1783
|
+
if ($[481] !== message || $[482] !== tagError) {
|
|
1784
|
+
t75 = tagError ? /* @__PURE__ */ jsx("span", { children: tagError.text }, tagError.id) : message;
|
|
1785
|
+
$[481] = message;
|
|
1786
|
+
$[482] = tagError;
|
|
1787
|
+
$[483] = t75;
|
|
1788
|
+
} else t75 = $[483];
|
|
1683
1789
|
return wrapWithField(tagInputField, fieldRef, {
|
|
1684
1790
|
...fieldProps,
|
|
1685
1791
|
labelProps: mergeProps$1(labelProps, userLabelProps),
|
|
1686
1792
|
isInvalid: effectiveIsInvalid,
|
|
1687
|
-
message:
|
|
1793
|
+
message: t75,
|
|
1688
1794
|
errorMessage: tagError ? void 0 : errorMessage
|
|
1689
1795
|
});
|
|
1690
1796
|
}
|
|
@@ -1693,27 +1799,33 @@ function TagInput(props, ref) {
|
|
|
1693
1799
|
* input. Values are typed (Enter or a separator commits them) or picked from
|
|
1694
1800
|
* suggested options.
|
|
1695
1801
|
*/
|
|
1696
|
-
function
|
|
1802
|
+
function _temp1(tag_2) {
|
|
1697
1803
|
return tag_2.label;
|
|
1698
1804
|
}
|
|
1699
|
-
function
|
|
1805
|
+
function _temp0(tag_1) {
|
|
1700
1806
|
return tag_1.key;
|
|
1701
1807
|
}
|
|
1702
|
-
function
|
|
1808
|
+
function _temp9(tag_0) {
|
|
1703
1809
|
return tag_0.isDisabled;
|
|
1704
1810
|
}
|
|
1705
|
-
function
|
|
1811
|
+
function _temp8(tag) {
|
|
1706
1812
|
return !tag.isDisabled;
|
|
1707
1813
|
}
|
|
1708
|
-
function
|
|
1814
|
+
function _temp7(part_0) {
|
|
1709
1815
|
return part_0.trim();
|
|
1710
1816
|
}
|
|
1711
|
-
function
|
|
1817
|
+
function _temp6(rejection_0) {
|
|
1712
1818
|
return rejection_0.text;
|
|
1713
1819
|
}
|
|
1714
|
-
function
|
|
1820
|
+
function _temp5(node_0) {
|
|
1715
1821
|
return node_0.type === "section";
|
|
1716
1822
|
}
|
|
1823
|
+
function _temp4(key_4) {
|
|
1824
|
+
return /* @__PURE__ */ jsx(_CollectionItem, {
|
|
1825
|
+
textValue: key_4,
|
|
1826
|
+
children: key_4
|
|
1827
|
+
}, key_4);
|
|
1828
|
+
}
|
|
1717
1829
|
function _temp3() {
|
|
1718
1830
|
return /* @__PURE__ */ new Map();
|
|
1719
1831
|
}
|