@cube-dev/ui-kit 0.0.0-canary-1014689 → 0.0.0-canary-72ce8c3
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 +111 -108
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js.map +1 -1
- package/dist/components/fields/ListBoxPopover/listNavigation.js +4 -3
- package/dist/components/fields/ListBoxPopover/listNavigation.js.map +1 -1
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.d.ts +1 -1
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +110 -64
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.js.map +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 +9 -2
- package/dist/components/fields/TagInput/TagInput.js +487 -403
- 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/reset-unbound-controls.js +1 -1
- package/dist/components/form/Form/use-field/use-field-binding.js +1 -1
- package/dist/components/form/Form/use-field/use-field-props.js +1 -1
- package/dist/components/form/Form/use-field/use-field.js +1 -1
- package/dist/components/form/Form/use-form.js +1 -1
- package/dist/components/form/Form/validation.js +1 -1
- package/dist/components/form/Label.js +1 -1
- package/dist/components/form/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 +1 -1
- package/dist/i18n/locales/en-US/uikit.js +1 -1
- package/dist/i18n/locales/es-ES/uikit.js +1 -1
- package/dist/i18n/locales/es-MX/uikit.js +1 -1
- package/dist/i18n/locales/fr-FR/uikit.js +1 -1
- package/dist/i18n/locales/it-IT/uikit.js +1 -1
- package/dist/i18n/locales/ja-JP/uikit.js +1 -1
- package/dist/i18n/locales/nb-NO/uikit.js +1 -1
- package/dist/i18n/locales/pt-BR/uikit.js +1 -1
- package/dist/i18n/locales/pt-PT/uikit.js +1 -1
- package/dist/i18n/locales/sv-SE/uikit.js +1 -1
- package/dist/i18n/locales/vi-VN/uikit.js +1 -1
- package/dist/i18n/locales.js +1 -1
- package/dist/i18n/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 +8 -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-72ce8c3 | 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";
|
|
@@ -69,6 +69,33 @@ function compareText(a, b) {
|
|
|
69
69
|
return textSorter.compare(a, b);
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
|
+
* The options typed text names. The label comes first, since it is what the
|
|
73
|
+
* user sees, then the key. An exact match is looked for in the whole list
|
|
74
|
+
* before a loose one counts, so `active` finds `active` even after `Active`.
|
|
75
|
+
*/
|
|
76
|
+
function matchOptionText(collection, text) {
|
|
77
|
+
let byKey = null;
|
|
78
|
+
let loose = null;
|
|
79
|
+
for (const node of collection) {
|
|
80
|
+
const nodes = node.type === "section" ? [...node.childNodes] : [node];
|
|
81
|
+
for (const child of nodes) {
|
|
82
|
+
if (child.type !== "item") continue;
|
|
83
|
+
const key = String(child.key);
|
|
84
|
+
const label = child.textValue || "";
|
|
85
|
+
if (label === text) return {
|
|
86
|
+
exact: key,
|
|
87
|
+
loose
|
|
88
|
+
};
|
|
89
|
+
if (byKey == null && key === text) byKey = key;
|
|
90
|
+
if (loose == null && isSameText(label, text)) loose = key;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
exact: byKey,
|
|
95
|
+
loose
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
72
99
|
* The popover's rows: the options, then the user's own values and the typed
|
|
73
100
|
* text. Those go in a section of their own when there are options to set them
|
|
74
101
|
* apart from.
|
|
@@ -98,7 +125,7 @@ function isComposingKey(e) {
|
|
|
98
125
|
return e.nativeEvent.isComposing || e.keyCode === 229;
|
|
99
126
|
}
|
|
100
127
|
function TagInput(props, ref) {
|
|
101
|
-
const $ = c(
|
|
128
|
+
const $ = c(279);
|
|
102
129
|
let t0;
|
|
103
130
|
if ($[0] !== props) {
|
|
104
131
|
t0 = castNullableArrayValue(props);
|
|
@@ -530,39 +557,73 @@ function TagInput(props, ref) {
|
|
|
530
557
|
} else t13 = $[94];
|
|
531
558
|
const rememberLabels = useEvent(t13);
|
|
532
559
|
let t14;
|
|
533
|
-
if ($[95] !==
|
|
560
|
+
if ($[95] !== allowsCustomValue || $[96] !== collection || $[97] !== hasOptions) {
|
|
534
561
|
t14 = (text_0) => {
|
|
535
562
|
if (!hasOptions) return null;
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
for (const child of nodes) {
|
|
539
|
-
if (child.type !== "item") continue;
|
|
540
|
-
if (String(child.key) === text_0 || isSameText(child.textValue || "", text_0)) return String(child.key);
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
return null;
|
|
563
|
+
const match = matchOptionText(collection, text_0);
|
|
564
|
+
return match.exact ?? (allowsCustomValue ? null : match.loose);
|
|
544
565
|
};
|
|
545
|
-
$[95] =
|
|
546
|
-
$[96] =
|
|
547
|
-
$[97] =
|
|
548
|
-
|
|
566
|
+
$[95] = allowsCustomValue;
|
|
567
|
+
$[96] = collection;
|
|
568
|
+
$[97] = hasOptions;
|
|
569
|
+
$[98] = t14;
|
|
570
|
+
} else t14 = $[98];
|
|
549
571
|
const findOptionKey = t14;
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
572
|
+
let t15;
|
|
573
|
+
if ($[99] !== findOptionKey || $[100] !== normalizeTag) {
|
|
574
|
+
t15 = (text_1) => {
|
|
575
|
+
const optionKey = findOptionKey(text_1);
|
|
576
|
+
if (optionKey != null || !normalizeTag) return {
|
|
577
|
+
optionKey,
|
|
578
|
+
typed: text_1
|
|
579
|
+
};
|
|
580
|
+
const typed = normalizeTag(text_1).trim();
|
|
581
|
+
return {
|
|
582
|
+
optionKey: typed ? findOptionKey(typed) : null,
|
|
583
|
+
typed
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
$[99] = findOptionKey;
|
|
587
|
+
$[100] = normalizeTag;
|
|
588
|
+
$[101] = t15;
|
|
589
|
+
} else t15 = $[101];
|
|
590
|
+
const resolveTypedText = t15;
|
|
591
|
+
let t16;
|
|
592
|
+
if ($[102] !== normalizeTag || $[103] !== resolveTypedText) {
|
|
593
|
+
t16 = (part, t17) => {
|
|
594
|
+
const source = t17 === void 0 ? "text" : t17;
|
|
595
|
+
if (source === "text") return resolveTypedText(part);
|
|
596
|
+
if (source === "option") return {
|
|
597
|
+
optionKey: part,
|
|
598
|
+
typed: part
|
|
599
|
+
};
|
|
600
|
+
return {
|
|
601
|
+
optionKey: null,
|
|
602
|
+
typed: normalizeTag ? normalizeTag(part).trim() : part
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
$[102] = normalizeTag;
|
|
606
|
+
$[103] = resolveTypedText;
|
|
607
|
+
$[104] = t16;
|
|
608
|
+
} else t16 = $[104];
|
|
609
|
+
const resolvePart = t16;
|
|
610
|
+
const termOptionKey = term ? resolveTypedText(term).optionKey : null;
|
|
611
|
+
const optionFilterFn = (nodes) => {
|
|
612
|
+
if (!isFilterActive || !term) return nodes;
|
|
613
|
+
return filterCollectionNodes(nodes, term, textFilterFn, { keep: termOptionKey == null ? void 0 : (node) => String(node.key) === termOptionKey });
|
|
553
614
|
};
|
|
554
615
|
const visibleOptionKeys = [];
|
|
555
616
|
if (hasOptions) collectVisibleKeys(optionFilterFn(collection), visibleOptionKeys, disabledKeys ? new Set(disabledKeys) : void 0);
|
|
556
|
-
let
|
|
557
|
-
if ($[
|
|
558
|
-
|
|
559
|
-
$[
|
|
560
|
-
} else
|
|
561
|
-
const [unpickedCustomValues, setUnpickedCustomValues] = useState(
|
|
617
|
+
let t17;
|
|
618
|
+
if ($[105] === Symbol.for("react.memo_cache_sentinel")) {
|
|
619
|
+
t17 = [];
|
|
620
|
+
$[105] = t17;
|
|
621
|
+
} else t17 = $[105];
|
|
622
|
+
const [unpickedCustomValues, setUnpickedCustomValues] = useState(t17);
|
|
562
623
|
const customValueKeys = hasOptions && allowsCustomValue ? [...new Set([...uniqueValues, ...unpickedCustomValues].filter((value_0) => collection.getItem(value_0) == null && !knownLabels.has(value_0)))].sort(compareText) : [];
|
|
563
624
|
const matchesTerm = typeof filter === "function" ? filter : contains;
|
|
564
625
|
const visibleCustomKeys = isFilterActive && term ? customValueKeys.filter((key_3) => matchesTerm(key_3, term)) : customValueKeys;
|
|
565
|
-
const customTerm = hasOptions && allowsCustomValue && term &&
|
|
626
|
+
const customTerm = hasOptions && allowsCustomValue && term && termOptionKey == null && !uniqueValues.includes(term) && !customValueKeys.includes(term) ? term : null;
|
|
566
627
|
const popoverChildren = withCustomOptions(children, {
|
|
567
628
|
customKeys: visibleCustomKeys,
|
|
568
629
|
customTerm,
|
|
@@ -577,29 +638,29 @@ function TagInput(props, ref) {
|
|
|
577
638
|
const isInteractive = !isDisabled && !isReadOnly;
|
|
578
639
|
const shouldShowPopover = hasOptions && isInteractive && isPopoverOpen && hasResults;
|
|
579
640
|
const notifiedOpenRef = useRef(false);
|
|
580
|
-
let
|
|
581
|
-
let
|
|
582
|
-
if ($[
|
|
583
|
-
|
|
641
|
+
let t18;
|
|
642
|
+
let t19;
|
|
643
|
+
if ($[106] !== onOpenChange || $[107] !== shouldShowPopover) {
|
|
644
|
+
t18 = () => {
|
|
584
645
|
if (notifiedOpenRef.current === shouldShowPopover) return;
|
|
585
646
|
notifiedOpenRef.current = shouldShowPopover;
|
|
586
647
|
onOpenChange?.(shouldShowPopover);
|
|
587
648
|
};
|
|
588
|
-
|
|
589
|
-
$[
|
|
590
|
-
$[
|
|
591
|
-
$[
|
|
592
|
-
$[
|
|
649
|
+
t19 = [shouldShowPopover, onOpenChange];
|
|
650
|
+
$[106] = onOpenChange;
|
|
651
|
+
$[107] = shouldShowPopover;
|
|
652
|
+
$[108] = t18;
|
|
653
|
+
$[109] = t19;
|
|
593
654
|
} else {
|
|
594
|
-
|
|
595
|
-
|
|
655
|
+
t18 = $[108];
|
|
656
|
+
t19 = $[109];
|
|
596
657
|
}
|
|
597
|
-
useEffect(
|
|
658
|
+
useEffect(t18, t19);
|
|
598
659
|
const [activeOption, setActiveOption] = useState(null);
|
|
599
660
|
const activeOptionKey = activeOption?.key ?? null;
|
|
600
|
-
let
|
|
601
|
-
if ($[
|
|
602
|
-
|
|
661
|
+
let t20;
|
|
662
|
+
if ($[110] !== setActiveOption) {
|
|
663
|
+
t20 = (key_4, source_0, forTerm) => {
|
|
603
664
|
const listState = listStateRef.current;
|
|
604
665
|
if (!listState || key_4 == null) return;
|
|
605
666
|
markKeyboardFocus(listState);
|
|
@@ -607,26 +668,27 @@ function TagInput(props, ref) {
|
|
|
607
668
|
setActiveOption({
|
|
608
669
|
key: key_4,
|
|
609
670
|
term: forTerm,
|
|
610
|
-
source
|
|
671
|
+
source: source_0
|
|
611
672
|
});
|
|
612
673
|
};
|
|
613
|
-
$[
|
|
614
|
-
$[
|
|
615
|
-
} else
|
|
616
|
-
const moveVirtualFocus = useEvent(
|
|
674
|
+
$[110] = setActiveOption;
|
|
675
|
+
$[111] = t20;
|
|
676
|
+
} else t20 = $[111];
|
|
677
|
+
const moveVirtualFocus = useEvent(t20);
|
|
617
678
|
const [popoverMinWidth, setPopoverMinWidth] = useState();
|
|
618
|
-
let exactOptionKey =
|
|
679
|
+
let exactOptionKey = termOptionKey;
|
|
619
680
|
if (exactOptionKey == null && term && customValueKeys.includes(term)) exactOptionKey = term;
|
|
681
|
+
if (exactOptionKey == null && customTerm && (matchOptionText(collection, customTerm).loose != null || customValueKeys.some((key_5) => isSameText(key_5, customTerm)))) exactOptionKey = customTerm;
|
|
620
682
|
const visibleTargetKeys = [...visibleOptionKeys, ...visibleCustomKeys];
|
|
621
683
|
if (customTerm) visibleTargetKeys.push(customTerm);
|
|
622
684
|
let preferredOptionKey = null;
|
|
623
685
|
if (exactOptionKey != null && visibleTargetKeys.includes(exactOptionKey)) preferredOptionKey = exactOptionKey;
|
|
624
|
-
else if (term) preferredOptionKey = visibleTargetKeys.find((
|
|
686
|
+
else if (term) preferredOptionKey = visibleTargetKeys.find((key_6) => !uniqueValues.includes(String(key_6))) ?? null;
|
|
625
687
|
if (preferredOptionKey == null) preferredOptionKey = visibleTargetKeys[0] ?? null;
|
|
626
688
|
const focusTermRef = useRef(null);
|
|
627
|
-
let
|
|
628
|
-
if ($[
|
|
629
|
-
|
|
689
|
+
let t21;
|
|
690
|
+
if ($[112] !== customTerm || $[113] !== moveVirtualFocus || $[114] !== preferredOptionKey || $[115] !== setActiveOption || $[116] !== setPopoverMinWidth || $[117] !== shouldShowPopover || $[118] !== term || $[119] !== visibleOptionsSignature || $[120] !== wrapperRef) {
|
|
691
|
+
t21 = () => {
|
|
630
692
|
if (!shouldShowPopover) {
|
|
631
693
|
focusTermRef.current = null;
|
|
632
694
|
return;
|
|
@@ -662,20 +724,20 @@ function TagInput(props, ref) {
|
|
|
662
724
|
isCancelled = true;
|
|
663
725
|
};
|
|
664
726
|
};
|
|
665
|
-
$[
|
|
666
|
-
$[
|
|
667
|
-
$[
|
|
668
|
-
$[
|
|
669
|
-
$[
|
|
670
|
-
$[
|
|
671
|
-
$[
|
|
672
|
-
$[
|
|
673
|
-
$[
|
|
674
|
-
$[
|
|
675
|
-
} else
|
|
676
|
-
let
|
|
677
|
-
if ($[
|
|
678
|
-
|
|
727
|
+
$[112] = customTerm;
|
|
728
|
+
$[113] = moveVirtualFocus;
|
|
729
|
+
$[114] = preferredOptionKey;
|
|
730
|
+
$[115] = setActiveOption;
|
|
731
|
+
$[116] = setPopoverMinWidth;
|
|
732
|
+
$[117] = shouldShowPopover;
|
|
733
|
+
$[118] = term;
|
|
734
|
+
$[119] = visibleOptionsSignature;
|
|
735
|
+
$[120] = wrapperRef;
|
|
736
|
+
$[121] = t21;
|
|
737
|
+
} else t21 = $[121];
|
|
738
|
+
let t22;
|
|
739
|
+
if ($[122] !== customTerm || $[123] !== moveVirtualFocus || $[124] !== preferredOptionKey || $[125] !== shouldShowPopover || $[126] !== term || $[127] !== visibleOptionsSignature || $[128] !== wrapperRef) {
|
|
740
|
+
t22 = [
|
|
679
741
|
shouldShowPopover,
|
|
680
742
|
visibleOptionsSignature,
|
|
681
743
|
customTerm,
|
|
@@ -684,42 +746,42 @@ function TagInput(props, ref) {
|
|
|
684
746
|
moveVirtualFocus,
|
|
685
747
|
wrapperRef
|
|
686
748
|
];
|
|
687
|
-
$[
|
|
688
|
-
$[
|
|
689
|
-
$[
|
|
690
|
-
$[
|
|
691
|
-
$[
|
|
692
|
-
$[
|
|
693
|
-
$[
|
|
694
|
-
$[
|
|
695
|
-
} else
|
|
696
|
-
useLayoutEffect(
|
|
697
|
-
let
|
|
698
|
-
if ($[
|
|
699
|
-
|
|
749
|
+
$[122] = customTerm;
|
|
750
|
+
$[123] = moveVirtualFocus;
|
|
751
|
+
$[124] = preferredOptionKey;
|
|
752
|
+
$[125] = shouldShowPopover;
|
|
753
|
+
$[126] = term;
|
|
754
|
+
$[127] = visibleOptionsSignature;
|
|
755
|
+
$[128] = wrapperRef;
|
|
756
|
+
$[129] = t22;
|
|
757
|
+
} else t22 = $[129];
|
|
758
|
+
useLayoutEffect(t21, t22);
|
|
759
|
+
let t23;
|
|
760
|
+
if ($[130] !== setDraftState || $[131] !== setIsFilterActive) {
|
|
761
|
+
t23 = (next_0) => {
|
|
700
762
|
setDraftState(next_0);
|
|
701
763
|
setIsFilterActive(!!next_0.trim());
|
|
702
764
|
};
|
|
703
|
-
$[
|
|
704
|
-
$[
|
|
705
|
-
$[
|
|
706
|
-
} else
|
|
707
|
-
const setDraft = useEvent(
|
|
708
|
-
let
|
|
709
|
-
if ($[
|
|
710
|
-
|
|
765
|
+
$[130] = setDraftState;
|
|
766
|
+
$[131] = setIsFilterActive;
|
|
767
|
+
$[132] = t23;
|
|
768
|
+
} else t23 = $[132];
|
|
769
|
+
const setDraft = useEvent(t23);
|
|
770
|
+
let t24;
|
|
771
|
+
if ($[133] !== setAnnouncement) {
|
|
772
|
+
t24 = (text_2) => {
|
|
711
773
|
setAnnouncement((prev_0) => ({
|
|
712
774
|
id: prev_0.id + 1,
|
|
713
|
-
text:
|
|
775
|
+
text: text_2
|
|
714
776
|
}));
|
|
715
777
|
};
|
|
716
|
-
$[
|
|
717
|
-
$[
|
|
718
|
-
} else
|
|
719
|
-
const announce = useEvent(
|
|
720
|
-
let
|
|
721
|
-
if ($[
|
|
722
|
-
|
|
778
|
+
$[133] = setAnnouncement;
|
|
779
|
+
$[134] = t24;
|
|
780
|
+
} else t24 = $[134];
|
|
781
|
+
const announce = useEvent(t24);
|
|
782
|
+
let t25;
|
|
783
|
+
if ($[135] !== maxTags || $[136] !== t) {
|
|
784
|
+
t25 = (rejection) => {
|
|
723
785
|
if (rejection.message) return rejection.message;
|
|
724
786
|
switch (rejection.reason) {
|
|
725
787
|
case "duplicate": return t("tagInput.duplicateValue", "\"{{value}}\" is already added", { value: rejection.text });
|
|
@@ -729,60 +791,62 @@ function TagInput(props, ref) {
|
|
|
729
791
|
default: return t("tagInput.invalidValue", "\"{{value}}\" is not a valid value", { value: rejection.text });
|
|
730
792
|
}
|
|
731
793
|
};
|
|
732
|
-
$[
|
|
733
|
-
$[
|
|
734
|
-
$[
|
|
735
|
-
} else
|
|
736
|
-
const rejectionMessage = useEvent(
|
|
737
|
-
|
|
794
|
+
$[135] = maxTags;
|
|
795
|
+
$[136] = t;
|
|
796
|
+
$[137] = t25;
|
|
797
|
+
} else t25 = $[137];
|
|
798
|
+
const rejectionMessage = useEvent(t25);
|
|
799
|
+
let t26;
|
|
800
|
+
if ($[138] !== delimiters) {
|
|
801
|
+
t26 = delimiters.find(_temp5);
|
|
802
|
+
$[138] = delimiters;
|
|
803
|
+
$[139] = t26;
|
|
804
|
+
} else t26 = $[139];
|
|
805
|
+
const joinDelimiter = t26;
|
|
806
|
+
const joiner = joinDelimiter ? `${joinDelimiter} ` : " ";
|
|
738
807
|
const hasFieldMessage = !!label || !!props.forceField;
|
|
739
|
-
const commitParts = useEvent((parts) => {
|
|
808
|
+
const commitParts = useEvent((parts, source_1) => {
|
|
740
809
|
if (!parts.length) return "";
|
|
741
810
|
const present = new Set(uniqueValues);
|
|
742
811
|
const accepted = [];
|
|
743
812
|
const rejected = [];
|
|
744
|
-
for (const
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
if (!typed) continue;
|
|
750
|
-
optionKey = findOptionKey(typed);
|
|
751
|
-
}
|
|
752
|
-
const nextValue = optionKey ?? typed;
|
|
753
|
-
if (optionKey != null && disabledKeySet.has(optionKey)) {
|
|
813
|
+
for (const part_0 of parts) {
|
|
814
|
+
const { optionKey: optionKey_0, typed: typed_0 } = resolvePart(part_0, source_1);
|
|
815
|
+
if (!typed_0) continue;
|
|
816
|
+
const nextValue = optionKey_0 ?? typed_0;
|
|
817
|
+
if (optionKey_0 != null && disabledKeySet.has(optionKey_0)) {
|
|
754
818
|
rejected.push({
|
|
755
|
-
text:
|
|
819
|
+
text: part_0,
|
|
756
820
|
reason: "unavailable"
|
|
757
821
|
});
|
|
758
822
|
continue;
|
|
759
823
|
}
|
|
760
|
-
if (
|
|
824
|
+
if (optionKey_0 == null && hasOptions && !allowsCustomValue) {
|
|
761
825
|
rejected.push({
|
|
762
|
-
text:
|
|
826
|
+
text: part_0,
|
|
763
827
|
reason: "unknown"
|
|
764
828
|
});
|
|
765
829
|
continue;
|
|
766
830
|
}
|
|
767
831
|
if (present.has(nextValue)) {
|
|
768
832
|
rejected.push({
|
|
769
|
-
text:
|
|
833
|
+
text: part_0,
|
|
770
834
|
reason: "duplicate"
|
|
771
835
|
});
|
|
772
836
|
continue;
|
|
773
837
|
}
|
|
774
838
|
if (maxTags != null && present.size >= maxTags) {
|
|
775
839
|
rejected.push({
|
|
776
|
-
text:
|
|
840
|
+
text: part_0,
|
|
777
841
|
reason: "limit"
|
|
778
842
|
});
|
|
779
843
|
continue;
|
|
780
844
|
}
|
|
781
|
-
if (
|
|
845
|
+
if (optionKey_0 == null && validateTag) {
|
|
782
846
|
const result = validateTag(nextValue);
|
|
783
847
|
if (result === false || typeof result === "string") {
|
|
784
848
|
rejected.push({
|
|
785
|
-
text:
|
|
849
|
+
text: part_0,
|
|
786
850
|
reason: "invalid",
|
|
787
851
|
message: typeof result === "string" ? result : void 0
|
|
788
852
|
});
|
|
@@ -792,7 +856,10 @@ function TagInput(props, ref) {
|
|
|
792
856
|
present.add(nextValue);
|
|
793
857
|
accepted.push(nextValue);
|
|
794
858
|
}
|
|
795
|
-
const
|
|
859
|
+
const returned = rejected.filter(_temp6);
|
|
860
|
+
const kept = joinDelimiter ? returned : returned.slice(0, 1);
|
|
861
|
+
const shown = kept[0] ?? rejected[0];
|
|
862
|
+
const error = shown ? rejectionMessage(shown) : null;
|
|
796
863
|
const messages = [];
|
|
797
864
|
if (accepted.length) {
|
|
798
865
|
rememberLabels(accepted);
|
|
@@ -802,31 +869,33 @@ function TagInput(props, ref) {
|
|
|
802
869
|
if (error && !hasFieldMessage) messages.push(error);
|
|
803
870
|
if (messages.length) announce(messages.join(" "));
|
|
804
871
|
setTagError(error);
|
|
805
|
-
return
|
|
872
|
+
return kept.map(_temp7).join(joiner);
|
|
806
873
|
});
|
|
807
|
-
let
|
|
808
|
-
if ($[
|
|
809
|
-
|
|
810
|
-
|
|
874
|
+
let t27;
|
|
875
|
+
if ($[140] !== commitParts || $[141] !== delimiters || $[142] !== draft || $[143] !== setDraft) {
|
|
876
|
+
t27 = () => {
|
|
877
|
+
const rest = commitParts(splitTagText(draft, delimiters));
|
|
878
|
+
setDraft(rest);
|
|
879
|
+
return rest;
|
|
811
880
|
};
|
|
812
|
-
$[
|
|
813
|
-
$[
|
|
814
|
-
$[
|
|
815
|
-
$[
|
|
816
|
-
$[
|
|
817
|
-
} else
|
|
818
|
-
const commitDraft = useEvent(
|
|
819
|
-
let
|
|
820
|
-
if ($[
|
|
821
|
-
|
|
881
|
+
$[140] = commitParts;
|
|
882
|
+
$[141] = delimiters;
|
|
883
|
+
$[142] = draft;
|
|
884
|
+
$[143] = setDraft;
|
|
885
|
+
$[144] = t27;
|
|
886
|
+
} else t27 = $[144];
|
|
887
|
+
const commitDraft = useEvent(t27);
|
|
888
|
+
let t28;
|
|
889
|
+
if ($[145] === Symbol.for("react.memo_cache_sentinel")) {
|
|
890
|
+
t28 = () => {
|
|
822
891
|
const rows = tagListRef.current?.querySelectorAll("[role=\"row\"]:not([aria-disabled=\"true\"])");
|
|
823
892
|
rows?.[rows.length - 1]?.focus();
|
|
824
893
|
};
|
|
825
|
-
$[
|
|
826
|
-
} else
|
|
827
|
-
const focusLastTag = useEvent(
|
|
894
|
+
$[145] = t28;
|
|
895
|
+
} else t28 = $[145];
|
|
896
|
+
const focusLastTag = useEvent(t28);
|
|
828
897
|
const removeValues = useEvent((requested) => {
|
|
829
|
-
const keys_0 = requested.filter((
|
|
898
|
+
const keys_0 = requested.filter((key_7) => !isTagLocked(key_7));
|
|
830
899
|
if (!keys_0.length) return;
|
|
831
900
|
const removed = new Set(keys_0);
|
|
832
901
|
const next_1 = uniqueValues.filter((value_1) => !removed.has(value_1));
|
|
@@ -835,19 +904,20 @@ function TagInput(props, ref) {
|
|
|
835
904
|
setTagError(null);
|
|
836
905
|
announce(t("tagInput.removed", "Removed {{value}}", { value: formatList(keys_0.map(getTagLabel)) }));
|
|
837
906
|
});
|
|
838
|
-
const toggleOption = useEvent((
|
|
839
|
-
if (isTagLocked(
|
|
907
|
+
const toggleOption = useEvent((key_8) => {
|
|
908
|
+
if (isTagLocked(key_8)) return;
|
|
909
|
+
const source_2 = collection.getItem(key_8) != null ? "option" : customValueKeys.includes(key_8) ? "custom" : "text";
|
|
840
910
|
setTagError(null);
|
|
841
|
-
if (uniqueValues.includes(
|
|
842
|
-
removeValues([
|
|
911
|
+
if (uniqueValues.includes(key_8)) {
|
|
912
|
+
removeValues([key_8]);
|
|
843
913
|
setDraft("");
|
|
844
|
-
if (customValueKeys.includes(
|
|
845
|
-
} else if (!commitParts([
|
|
914
|
+
if (customValueKeys.includes(key_8)) setUnpickedCustomValues((prev_1) => prev_1.includes(key_8) ? prev_1 : [...prev_1, key_8]);
|
|
915
|
+
} else if (!commitParts([key_8], source_2)) setDraft("");
|
|
846
916
|
});
|
|
847
917
|
const handlePopoverSelection = useEvent((selection) => {
|
|
848
918
|
if (!Array.isArray(selection)) return;
|
|
849
919
|
const next_2 = new Set(selection.map(String));
|
|
850
|
-
const changed = [...[...next_2].filter((
|
|
920
|
+
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)))];
|
|
851
921
|
changed.forEach(toggleOption);
|
|
852
922
|
const clicked = changed[changed.length - 1];
|
|
853
923
|
if (clicked != null) {
|
|
@@ -896,15 +966,16 @@ function TagInput(props, ref) {
|
|
|
896
966
|
const targetKey = shouldShowPopover ? isCurrent ? activeOption.key : preferredOptionKey : null;
|
|
897
967
|
if (targetKey != null) {
|
|
898
968
|
e.preventDefault();
|
|
899
|
-
const
|
|
900
|
-
if (term && uniqueValues.includes(
|
|
969
|
+
const key_10 = String(targetKey);
|
|
970
|
+
if (term && uniqueValues.includes(key_10) && !(isCurrent && activeOption.source === "user")) {
|
|
971
|
+
setDraft("");
|
|
901
972
|
setTagError(rejectionMessage({
|
|
902
|
-
text: getTagLabel(
|
|
973
|
+
text: getTagLabel(key_10),
|
|
903
974
|
reason: "duplicate"
|
|
904
975
|
}));
|
|
905
976
|
return;
|
|
906
977
|
}
|
|
907
|
-
toggleOption(
|
|
978
|
+
toggleOption(key_10);
|
|
908
979
|
return;
|
|
909
980
|
}
|
|
910
981
|
e.preventDefault();
|
|
@@ -925,7 +996,8 @@ function TagInput(props, ref) {
|
|
|
925
996
|
e.preventDefault();
|
|
926
997
|
e.stopPropagation();
|
|
927
998
|
setIsPopoverOpen(false);
|
|
928
|
-
|
|
999
|
+
setTagError(null);
|
|
1000
|
+
} else if (draft || tagError) {
|
|
929
1001
|
e.preventDefault();
|
|
930
1002
|
e.stopPropagation();
|
|
931
1003
|
setDraft("");
|
|
@@ -941,15 +1013,15 @@ function TagInput(props, ref) {
|
|
|
941
1013
|
const parts_0 = pattern ? next_3.split(pattern) : [next_3];
|
|
942
1014
|
let nextDraft = next_3;
|
|
943
1015
|
if (parts_0.length > 1) {
|
|
944
|
-
const
|
|
945
|
-
nextDraft = [commitParts(parts_0.map(
|
|
1016
|
+
const rest_0 = (parts_0.pop() ?? "").trimStart();
|
|
1017
|
+
nextDraft = [commitParts(parts_0.map(_temp8).filter(Boolean)), rest_0].filter(Boolean).join(joiner);
|
|
946
1018
|
}
|
|
947
1019
|
setDraft(nextDraft);
|
|
948
1020
|
if (hasOptions && popoverTrigger !== "manual" && nextDraft.trim()) setIsPopoverOpen(true);
|
|
949
1021
|
});
|
|
950
|
-
let
|
|
951
|
-
if ($[
|
|
952
|
-
|
|
1022
|
+
let t29;
|
|
1023
|
+
if ($[146] !== commitParts || $[147] !== delimiters || $[148] !== draft || $[149] !== isInteractive || $[150] !== setDraft || $[151] !== setTagError) {
|
|
1024
|
+
t29 = (e_0) => {
|
|
953
1025
|
if (!isInteractive) return;
|
|
954
1026
|
const pasted = e_0.clipboardData.getData("text");
|
|
955
1027
|
if (!pasted || splitTagText(pasted, delimiters).length < 2) return;
|
|
@@ -960,73 +1032,78 @@ function TagInput(props, ref) {
|
|
|
960
1032
|
setTagError(null);
|
|
961
1033
|
setDraft(commitParts(splitTagText(`${draft.slice(0, start_0)}\n${pasted}\n${draft.slice(end_0)}`, delimiters)));
|
|
962
1034
|
};
|
|
963
|
-
$[
|
|
964
|
-
$[
|
|
965
|
-
$[
|
|
966
|
-
$[
|
|
967
|
-
$[
|
|
968
|
-
$[
|
|
969
|
-
$[
|
|
970
|
-
} else
|
|
971
|
-
const handlePaste = useEvent(
|
|
972
|
-
let
|
|
973
|
-
if ($[
|
|
974
|
-
|
|
975
|
-
if (!term
|
|
976
|
-
if (
|
|
1035
|
+
$[146] = commitParts;
|
|
1036
|
+
$[147] = delimiters;
|
|
1037
|
+
$[148] = draft;
|
|
1038
|
+
$[149] = isInteractive;
|
|
1039
|
+
$[150] = setDraft;
|
|
1040
|
+
$[151] = setTagError;
|
|
1041
|
+
$[152] = t29;
|
|
1042
|
+
} else t29 = $[152];
|
|
1043
|
+
const handlePaste = useEvent(t29);
|
|
1044
|
+
let t30;
|
|
1045
|
+
if ($[153] !== allowsCustomValue || $[154] !== commitDraft || $[155] !== draft || $[156] !== hasOptions || $[157] !== isInteractive || $[158] !== setDraft || $[159] !== setTagError || $[160] !== shouldCommitOnBlur || $[161] !== term || $[162] !== termOptionKey) {
|
|
1046
|
+
t30 = () => {
|
|
1047
|
+
if (!term) return "";
|
|
1048
|
+
if (!shouldCommitOnBlur || !isInteractive) return draft;
|
|
1049
|
+
if (hasOptions && !allowsCustomValue && termOptionKey == null) {
|
|
977
1050
|
setDraft("");
|
|
978
1051
|
setTagError(null);
|
|
979
|
-
|
|
1052
|
+
return "";
|
|
1053
|
+
}
|
|
1054
|
+
return commitDraft();
|
|
980
1055
|
};
|
|
981
|
-
$[
|
|
982
|
-
$[
|
|
983
|
-
$[
|
|
984
|
-
$[
|
|
985
|
-
$[
|
|
986
|
-
$[
|
|
987
|
-
$[
|
|
988
|
-
$[
|
|
989
|
-
$[
|
|
990
|
-
$[
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
1056
|
+
$[153] = allowsCustomValue;
|
|
1057
|
+
$[154] = commitDraft;
|
|
1058
|
+
$[155] = draft;
|
|
1059
|
+
$[156] = hasOptions;
|
|
1060
|
+
$[157] = isInteractive;
|
|
1061
|
+
$[158] = setDraft;
|
|
1062
|
+
$[159] = setTagError;
|
|
1063
|
+
$[160] = shouldCommitOnBlur;
|
|
1064
|
+
$[161] = term;
|
|
1065
|
+
$[162] = termOptionKey;
|
|
1066
|
+
$[163] = t30;
|
|
1067
|
+
} else t30 = $[163];
|
|
1068
|
+
const settleDraft = useEvent(t30);
|
|
1069
|
+
let t31;
|
|
1070
|
+
if ($[164] !== onBlur || $[165] !== setIsPopoverOpen || $[166] !== setTagError || $[167] !== setUnpickedCustomValues || $[168] !== settleDraft) {
|
|
1071
|
+
t31 = () => {
|
|
996
1072
|
setIsPopoverOpen(false);
|
|
997
1073
|
setUnpickedCustomValues([]);
|
|
998
|
-
settleDraft();
|
|
1074
|
+
if (!settleDraft()) setTagError(null);
|
|
999
1075
|
onBlur?.();
|
|
1000
1076
|
};
|
|
1001
|
-
$[
|
|
1002
|
-
$[
|
|
1003
|
-
$[
|
|
1004
|
-
$[
|
|
1005
|
-
$[
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
const
|
|
1009
|
-
const
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1077
|
+
$[164] = onBlur;
|
|
1078
|
+
$[165] = setIsPopoverOpen;
|
|
1079
|
+
$[166] = setTagError;
|
|
1080
|
+
$[167] = setUnpickedCustomValues;
|
|
1081
|
+
$[168] = settleDraft;
|
|
1082
|
+
$[169] = t31;
|
|
1083
|
+
} else t31 = $[169];
|
|
1084
|
+
const handleCompositeBlur = useEvent(t31);
|
|
1085
|
+
const t32 = rootRef;
|
|
1086
|
+
const t33 = popoverRef;
|
|
1087
|
+
let t34;
|
|
1088
|
+
if ($[170] !== handleCompositeBlur || $[171] !== isDisabled || $[172] !== onFocus || $[173] !== t32 || $[174] !== t33) {
|
|
1089
|
+
t34 = {
|
|
1090
|
+
wrapperRef: t32,
|
|
1091
|
+
popoverRef: t33,
|
|
1015
1092
|
onFocus,
|
|
1016
1093
|
onBlur: handleCompositeBlur,
|
|
1017
1094
|
isDisabled
|
|
1018
1095
|
};
|
|
1019
|
-
$[
|
|
1020
|
-
$[
|
|
1021
|
-
$[
|
|
1022
|
-
$[
|
|
1023
|
-
$[
|
|
1024
|
-
$[
|
|
1025
|
-
} else
|
|
1026
|
-
const { compositeFocusProps } = useCompositeFocus(
|
|
1027
|
-
let
|
|
1028
|
-
if ($[
|
|
1029
|
-
|
|
1096
|
+
$[170] = handleCompositeBlur;
|
|
1097
|
+
$[171] = isDisabled;
|
|
1098
|
+
$[172] = onFocus;
|
|
1099
|
+
$[173] = t32;
|
|
1100
|
+
$[174] = t33;
|
|
1101
|
+
$[175] = t34;
|
|
1102
|
+
} else t34 = $[175];
|
|
1103
|
+
const { compositeFocusProps } = useCompositeFocus(t34);
|
|
1104
|
+
let t35;
|
|
1105
|
+
if ($[176] !== rootRef || $[177] !== setIsPopoverOpen || $[178] !== settleDraft) {
|
|
1106
|
+
t35 = (e_1) => {
|
|
1030
1107
|
const isTabbing = isTabbingRef.current;
|
|
1031
1108
|
const next_4 = e_1.relatedTarget;
|
|
1032
1109
|
isTabbingRef.current = false;
|
|
@@ -1034,24 +1111,24 @@ function TagInput(props, ref) {
|
|
|
1034
1111
|
setIsPopoverOpen(false);
|
|
1035
1112
|
settleDraft();
|
|
1036
1113
|
};
|
|
1037
|
-
$[
|
|
1038
|
-
$[
|
|
1039
|
-
$[
|
|
1040
|
-
$[
|
|
1041
|
-
} else
|
|
1042
|
-
const handleInputBlur = useEvent(
|
|
1043
|
-
let
|
|
1044
|
-
if ($[
|
|
1045
|
-
|
|
1114
|
+
$[176] = rootRef;
|
|
1115
|
+
$[177] = setIsPopoverOpen;
|
|
1116
|
+
$[178] = settleDraft;
|
|
1117
|
+
$[179] = t35;
|
|
1118
|
+
} else t35 = $[179];
|
|
1119
|
+
const handleInputBlur = useEvent(t35);
|
|
1120
|
+
let t36;
|
|
1121
|
+
if ($[180] !== hasOptions || $[181] !== isInteractive || $[182] !== popoverTrigger || $[183] !== setIsPopoverOpen) {
|
|
1122
|
+
t36 = () => {
|
|
1046
1123
|
if (hasOptions && popoverTrigger === "focus" && isInteractive) setIsPopoverOpen(true);
|
|
1047
1124
|
};
|
|
1048
|
-
$[
|
|
1049
|
-
$[
|
|
1050
|
-
$[
|
|
1051
|
-
$[
|
|
1052
|
-
$[
|
|
1053
|
-
} else
|
|
1054
|
-
const handleInputFocus = useEvent(
|
|
1125
|
+
$[180] = hasOptions;
|
|
1126
|
+
$[181] = isInteractive;
|
|
1127
|
+
$[182] = popoverTrigger;
|
|
1128
|
+
$[183] = setIsPopoverOpen;
|
|
1129
|
+
$[184] = t36;
|
|
1130
|
+
} else t36 = $[184];
|
|
1131
|
+
const handleInputFocus = useEvent(t36);
|
|
1055
1132
|
const tags = uniqueValues.map((value_5) => {
|
|
1056
1133
|
const ownProps = tagProps?.(value_5);
|
|
1057
1134
|
const result_0 = !(collection.getItem(value_5) != null || knownLabels.has(value_5)) && validateTag ? validateTag(value_5) : true;
|
|
@@ -1065,13 +1142,13 @@ function TagInput(props, ref) {
|
|
|
1065
1142
|
};
|
|
1066
1143
|
});
|
|
1067
1144
|
const effectiveIsInvalid = tagError ? true : isInvalid;
|
|
1068
|
-
const hasRemovableTags = tags.some(
|
|
1145
|
+
const hasRemovableTags = tags.some(_temp9);
|
|
1069
1146
|
const hasBackspaceHint = isInteractive && hasRemovableTags;
|
|
1070
|
-
const lockedKeys = tags.filter(
|
|
1147
|
+
const lockedKeys = tags.filter(_temp0).map(_temp1);
|
|
1071
1148
|
const optionDisabledKeys = lockedKeys.length ? [...disabledKeySet, ...lockedKeys] : disabledKeys;
|
|
1072
|
-
let
|
|
1073
|
-
if ($[
|
|
1074
|
-
|
|
1149
|
+
let t37;
|
|
1150
|
+
if ($[185] !== autoFocus || $[186] !== draft || $[187] !== effectiveIsInvalid || $[188] !== handleInputChange || $[189] !== id || $[190] !== isDisabled || $[191] !== isReadOnly || $[192] !== isRequired || $[193] !== label || $[194] !== otherProps || $[195] !== placeholder) {
|
|
1151
|
+
t37 = {
|
|
1075
1152
|
...otherProps,
|
|
1076
1153
|
id,
|
|
1077
1154
|
label,
|
|
@@ -1084,20 +1161,20 @@ function TagInput(props, ref) {
|
|
|
1084
1161
|
autoFocus,
|
|
1085
1162
|
onChange: handleInputChange
|
|
1086
1163
|
};
|
|
1087
|
-
$[
|
|
1088
|
-
$[
|
|
1089
|
-
$[
|
|
1090
|
-
$[
|
|
1091
|
-
$[
|
|
1092
|
-
$[
|
|
1093
|
-
$[
|
|
1094
|
-
$[
|
|
1095
|
-
$[
|
|
1096
|
-
$[
|
|
1097
|
-
$[
|
|
1098
|
-
$[
|
|
1099
|
-
} else
|
|
1100
|
-
const { labelProps, inputProps } = useTextField(
|
|
1164
|
+
$[185] = autoFocus;
|
|
1165
|
+
$[186] = draft;
|
|
1166
|
+
$[187] = effectiveIsInvalid;
|
|
1167
|
+
$[188] = handleInputChange;
|
|
1168
|
+
$[189] = id;
|
|
1169
|
+
$[190] = isDisabled;
|
|
1170
|
+
$[191] = isReadOnly;
|
|
1171
|
+
$[192] = isRequired;
|
|
1172
|
+
$[193] = label;
|
|
1173
|
+
$[194] = otherProps;
|
|
1174
|
+
$[195] = placeholder;
|
|
1175
|
+
$[196] = t37;
|
|
1176
|
+
} else t37 = $[196];
|
|
1177
|
+
const { labelProps, inputProps } = useTextField(t37, inputRef);
|
|
1101
1178
|
const labelId = label ? labelProps.id : void 0;
|
|
1102
1179
|
const describedBy = [];
|
|
1103
1180
|
if (inputProps["aria-describedby"]) describedBy.push(inputProps["aria-describedby"]);
|
|
@@ -1119,25 +1196,25 @@ function TagInput(props, ref) {
|
|
|
1119
1196
|
"aria-controls": shouldShowPopover ? listBoxId : void 0,
|
|
1120
1197
|
"aria-activedescendant": shouldShowPopover && activeOptionKey != null ? getListBoxOptionId(listBoxId, activeOptionKey) : void 0
|
|
1121
1198
|
} : null);
|
|
1122
|
-
let
|
|
1123
|
-
if ($[
|
|
1124
|
-
|
|
1199
|
+
let t38;
|
|
1200
|
+
if ($[197] !== hasResults || $[198] !== inputRef || $[199] !== setIsFilterActive || $[200] !== setIsPopoverOpen || $[201] !== shouldShowPopover) {
|
|
1201
|
+
t38 = () => {
|
|
1125
1202
|
const willOpen = !shouldShowPopover;
|
|
1126
1203
|
if (willOpen && !hasResults) setIsFilterActive(false);
|
|
1127
1204
|
setIsPopoverOpen(willOpen);
|
|
1128
1205
|
inputRef.current?.focus();
|
|
1129
1206
|
};
|
|
1130
|
-
$[
|
|
1131
|
-
$[
|
|
1132
|
-
$[
|
|
1133
|
-
$[
|
|
1134
|
-
$[
|
|
1135
|
-
$[
|
|
1136
|
-
} else
|
|
1137
|
-
const handleTriggerPress = useEvent(
|
|
1138
|
-
let
|
|
1139
|
-
if ($[
|
|
1140
|
-
|
|
1207
|
+
$[197] = hasResults;
|
|
1208
|
+
$[198] = inputRef;
|
|
1209
|
+
$[199] = setIsFilterActive;
|
|
1210
|
+
$[200] = setIsPopoverOpen;
|
|
1211
|
+
$[201] = shouldShowPopover;
|
|
1212
|
+
$[202] = t38;
|
|
1213
|
+
} else t38 = $[202];
|
|
1214
|
+
const handleTriggerPress = useEvent(t38);
|
|
1215
|
+
let t39;
|
|
1216
|
+
if ($[203] !== handleTriggerPress || $[204] !== hasOptions || $[205] !== hideTrigger || $[206] !== isInteractive || $[207] !== labelId || $[208] !== shouldShowPopover || $[209] !== size || $[210] !== t || $[211] !== triggerId || $[212] !== triggerStyles) {
|
|
1217
|
+
t39 = hasOptions && !hideTrigger ? /* @__PURE__ */ jsx(ItemAction, {
|
|
1141
1218
|
"data-popover-trigger": true,
|
|
1142
1219
|
id: triggerId,
|
|
1143
1220
|
qa: "TagInputTrigger",
|
|
@@ -1153,40 +1230,40 @@ function TagInput(props, ref) {
|
|
|
1153
1230
|
"aria-labelledby": labelId ? `${triggerId} ${labelId}` : void 0,
|
|
1154
1231
|
onPress: handleTriggerPress
|
|
1155
1232
|
}) : null;
|
|
1156
|
-
$[
|
|
1157
|
-
$[
|
|
1158
|
-
$[
|
|
1159
|
-
$[
|
|
1160
|
-
$[
|
|
1161
|
-
$[
|
|
1162
|
-
$[
|
|
1163
|
-
$[
|
|
1164
|
-
$[
|
|
1165
|
-
$[
|
|
1166
|
-
$[
|
|
1167
|
-
} else
|
|
1168
|
-
const trigger =
|
|
1169
|
-
let
|
|
1170
|
-
if ($[
|
|
1171
|
-
|
|
1233
|
+
$[203] = handleTriggerPress;
|
|
1234
|
+
$[204] = hasOptions;
|
|
1235
|
+
$[205] = hideTrigger;
|
|
1236
|
+
$[206] = isInteractive;
|
|
1237
|
+
$[207] = labelId;
|
|
1238
|
+
$[208] = shouldShowPopover;
|
|
1239
|
+
$[209] = size;
|
|
1240
|
+
$[210] = t;
|
|
1241
|
+
$[211] = triggerId;
|
|
1242
|
+
$[212] = triggerStyles;
|
|
1243
|
+
$[213] = t39;
|
|
1244
|
+
} else t39 = $[213];
|
|
1245
|
+
const trigger = t39;
|
|
1246
|
+
let t40;
|
|
1247
|
+
if ($[214] !== inputRef || $[215] !== onClear || $[216] !== setDraft || $[217] !== setIsPopoverOpen || $[218] !== setTagError) {
|
|
1248
|
+
t40 = () => {
|
|
1172
1249
|
inputRef.current?.focus();
|
|
1173
1250
|
setDraft("");
|
|
1174
1251
|
setTagError(null);
|
|
1175
1252
|
setIsPopoverOpen(false);
|
|
1176
1253
|
onClear?.();
|
|
1177
1254
|
};
|
|
1178
|
-
$[
|
|
1179
|
-
$[
|
|
1180
|
-
$[
|
|
1181
|
-
$[
|
|
1182
|
-
$[
|
|
1183
|
-
$[
|
|
1184
|
-
} else
|
|
1185
|
-
const clearText = useEvent(
|
|
1255
|
+
$[214] = inputRef;
|
|
1256
|
+
$[215] = onClear;
|
|
1257
|
+
$[216] = setDraft;
|
|
1258
|
+
$[217] = setIsPopoverOpen;
|
|
1259
|
+
$[218] = setTagError;
|
|
1260
|
+
$[219] = t40;
|
|
1261
|
+
} else t40 = $[219];
|
|
1262
|
+
const clearText = useEvent(t40);
|
|
1186
1263
|
const canClear = !!isClearable && isInteractive && draft !== "";
|
|
1187
|
-
let
|
|
1188
|
-
if ($[
|
|
1189
|
-
|
|
1264
|
+
let t41;
|
|
1265
|
+
if ($[220] !== canClear || $[221] !== clearId || $[222] !== clearText || $[223] !== labelId || $[224] !== size || $[225] !== t) {
|
|
1266
|
+
t41 = canClear ? /* @__PURE__ */ jsx(ItemAction, {
|
|
1190
1267
|
id: clearId,
|
|
1191
1268
|
qa: "TagInputClearButton",
|
|
1192
1269
|
icon: /* @__PURE__ */ jsx(CloseIcon, {}),
|
|
@@ -1196,30 +1273,30 @@ function TagInput(props, ref) {
|
|
|
1196
1273
|
"aria-labelledby": labelId ? `${clearId} ${labelId}` : void 0,
|
|
1197
1274
|
onPress: clearText
|
|
1198
1275
|
}) : null;
|
|
1199
|
-
$[
|
|
1200
|
-
$[
|
|
1201
|
-
$[
|
|
1202
|
-
$[
|
|
1203
|
-
$[
|
|
1204
|
-
$[
|
|
1205
|
-
$[
|
|
1206
|
-
} else
|
|
1207
|
-
const clearButton =
|
|
1276
|
+
$[220] = canClear;
|
|
1277
|
+
$[221] = clearId;
|
|
1278
|
+
$[222] = clearText;
|
|
1279
|
+
$[223] = labelId;
|
|
1280
|
+
$[224] = size;
|
|
1281
|
+
$[225] = t;
|
|
1282
|
+
$[226] = t41;
|
|
1283
|
+
} else t41 = $[226];
|
|
1284
|
+
const clearButton = t41;
|
|
1208
1285
|
const hasActions = clearButton != null || trigger != null;
|
|
1209
1286
|
const T0 = TagInputElement;
|
|
1210
|
-
const
|
|
1211
|
-
let
|
|
1212
|
-
if ($[
|
|
1213
|
-
|
|
1214
|
-
$[
|
|
1215
|
-
$[
|
|
1216
|
-
$[
|
|
1217
|
-
$[
|
|
1218
|
-
} else
|
|
1219
|
-
let
|
|
1220
|
-
if ($[
|
|
1221
|
-
|
|
1222
|
-
qa:
|
|
1287
|
+
const t42 = qa || "TagInput";
|
|
1288
|
+
let t43;
|
|
1289
|
+
if ($[227] !== clearButton || $[228] !== hasActions || $[229] !== trigger) {
|
|
1290
|
+
t43 = hasActions ? /* @__PURE__ */ jsxs(Fragment$1, { children: [clearButton, trigger] }) : null;
|
|
1291
|
+
$[227] = clearButton;
|
|
1292
|
+
$[228] = hasActions;
|
|
1293
|
+
$[229] = trigger;
|
|
1294
|
+
$[230] = t43;
|
|
1295
|
+
} else t43 = $[230];
|
|
1296
|
+
let t44;
|
|
1297
|
+
if ($[231] !== autoFocus || $[232] !== effectiveIsInvalid || $[233] !== icon || $[234] !== inputRef || $[235] !== inputStyles || $[236] !== isDisabled || $[237] !== isLoading || $[238] !== isValid || $[239] !== mods || $[240] !== prefix || $[241] !== size || $[242] !== suffix || $[243] !== suffixPosition || $[244] !== t42 || $[245] !== t43 || $[246] !== tagInputProps || $[247] !== wrapperRef || $[248] !== wrapperStyles) {
|
|
1298
|
+
t44 = /* @__PURE__ */ jsx(TextInputBase, {
|
|
1299
|
+
qa: t42,
|
|
1223
1300
|
inputRef,
|
|
1224
1301
|
wrapperRef,
|
|
1225
1302
|
inputProps: tagInputProps,
|
|
@@ -1228,7 +1305,7 @@ function TagInput(props, ref) {
|
|
|
1228
1305
|
prefix,
|
|
1229
1306
|
suffix,
|
|
1230
1307
|
suffixPosition,
|
|
1231
|
-
actions:
|
|
1308
|
+
actions: t43,
|
|
1232
1309
|
size,
|
|
1233
1310
|
autoFocus,
|
|
1234
1311
|
isDisabled,
|
|
@@ -1238,27 +1315,27 @@ function TagInput(props, ref) {
|
|
|
1238
1315
|
styles: wrapperStyles,
|
|
1239
1316
|
inputStyles
|
|
1240
1317
|
});
|
|
1241
|
-
$[
|
|
1242
|
-
$[
|
|
1243
|
-
$[
|
|
1244
|
-
$[
|
|
1245
|
-
$[
|
|
1246
|
-
$[
|
|
1247
|
-
$[
|
|
1248
|
-
$[
|
|
1249
|
-
$[
|
|
1250
|
-
$[
|
|
1251
|
-
$[
|
|
1252
|
-
$[
|
|
1253
|
-
$[
|
|
1254
|
-
$[
|
|
1255
|
-
$[
|
|
1256
|
-
$[
|
|
1257
|
-
$[
|
|
1258
|
-
$[
|
|
1259
|
-
$[
|
|
1260
|
-
} else
|
|
1261
|
-
const
|
|
1318
|
+
$[231] = autoFocus;
|
|
1319
|
+
$[232] = effectiveIsInvalid;
|
|
1320
|
+
$[233] = icon;
|
|
1321
|
+
$[234] = inputRef;
|
|
1322
|
+
$[235] = inputStyles;
|
|
1323
|
+
$[236] = isDisabled;
|
|
1324
|
+
$[237] = isLoading;
|
|
1325
|
+
$[238] = isValid;
|
|
1326
|
+
$[239] = mods;
|
|
1327
|
+
$[240] = prefix;
|
|
1328
|
+
$[241] = size;
|
|
1329
|
+
$[242] = suffix;
|
|
1330
|
+
$[243] = suffixPosition;
|
|
1331
|
+
$[244] = t42;
|
|
1332
|
+
$[245] = t43;
|
|
1333
|
+
$[246] = tagInputProps;
|
|
1334
|
+
$[247] = wrapperRef;
|
|
1335
|
+
$[248] = wrapperStyles;
|
|
1336
|
+
$[249] = t44;
|
|
1337
|
+
} else t44 = $[249];
|
|
1338
|
+
const t45 = tags.length ? /* @__PURE__ */ jsx(TagList, {
|
|
1262
1339
|
id: tagListId,
|
|
1263
1340
|
listRef: tagListRef,
|
|
1264
1341
|
inputRef,
|
|
@@ -1272,50 +1349,50 @@ function TagInput(props, ref) {
|
|
|
1272
1349
|
tagStyles,
|
|
1273
1350
|
onRemove: removeValues
|
|
1274
1351
|
}) : null;
|
|
1275
|
-
const
|
|
1276
|
-
const
|
|
1277
|
-
let
|
|
1278
|
-
if ($[
|
|
1279
|
-
|
|
1280
|
-
hidden:
|
|
1352
|
+
const t46 = true;
|
|
1353
|
+
const t47 = tags.length ? t("tagInput.summary", "Selected: {{values}}.", { values: formatList(tags.map(_temp10)) }) : null;
|
|
1354
|
+
let t48;
|
|
1355
|
+
if ($[250] !== summaryId || $[251] !== t47) {
|
|
1356
|
+
t48 = /* @__PURE__ */ jsx("span", {
|
|
1357
|
+
hidden: t46,
|
|
1281
1358
|
id: summaryId,
|
|
1282
|
-
children:
|
|
1359
|
+
children: t47
|
|
1283
1360
|
});
|
|
1284
|
-
$[
|
|
1285
|
-
$[
|
|
1286
|
-
$[
|
|
1287
|
-
} else
|
|
1288
|
-
let
|
|
1289
|
-
if ($[
|
|
1290
|
-
|
|
1291
|
-
$[
|
|
1292
|
-
$[
|
|
1293
|
-
$[
|
|
1294
|
-
} else
|
|
1295
|
-
let
|
|
1296
|
-
if ($[
|
|
1297
|
-
|
|
1361
|
+
$[250] = summaryId;
|
|
1362
|
+
$[251] = t47;
|
|
1363
|
+
$[252] = t48;
|
|
1364
|
+
} else t48 = $[252];
|
|
1365
|
+
let t49;
|
|
1366
|
+
if ($[253] !== hasBackspaceHint || $[254] !== t) {
|
|
1367
|
+
t49 = hasBackspaceHint ? t("tagInput.backspaceHint", "Press Backspace to go to the selected values.") : null;
|
|
1368
|
+
$[253] = hasBackspaceHint;
|
|
1369
|
+
$[254] = t;
|
|
1370
|
+
$[255] = t49;
|
|
1371
|
+
} else t49 = $[255];
|
|
1372
|
+
let t50;
|
|
1373
|
+
if ($[256] !== hintId || $[257] !== t49) {
|
|
1374
|
+
t50 = /* @__PURE__ */ jsx("span", {
|
|
1298
1375
|
hidden: true,
|
|
1299
1376
|
id: hintId,
|
|
1300
|
-
children:
|
|
1377
|
+
children: t49
|
|
1301
1378
|
});
|
|
1302
|
-
$[
|
|
1303
|
-
$[
|
|
1304
|
-
$[
|
|
1305
|
-
} else
|
|
1306
|
-
let
|
|
1307
|
-
if ($[
|
|
1308
|
-
|
|
1379
|
+
$[256] = hintId;
|
|
1380
|
+
$[257] = t49;
|
|
1381
|
+
$[258] = t50;
|
|
1382
|
+
} else t50 = $[258];
|
|
1383
|
+
let t51;
|
|
1384
|
+
if ($[259] !== announcement.id || $[260] !== announcement.text) {
|
|
1385
|
+
t51 = /* @__PURE__ */ jsx(VisuallyHidden, {
|
|
1309
1386
|
role: "status",
|
|
1310
1387
|
"aria-live": "polite",
|
|
1311
1388
|
"aria-atomic": "true",
|
|
1312
1389
|
children: /* @__PURE__ */ jsx("span", { children: announcement.text }, announcement.id)
|
|
1313
1390
|
});
|
|
1314
|
-
$[
|
|
1315
|
-
$[
|
|
1316
|
-
$[
|
|
1317
|
-
} else
|
|
1318
|
-
const
|
|
1391
|
+
$[259] = announcement.id;
|
|
1392
|
+
$[260] = announcement.text;
|
|
1393
|
+
$[261] = t51;
|
|
1394
|
+
} else t51 = $[261];
|
|
1395
|
+
const t52 = hasOptions ? /* @__PURE__ */ jsx(ListBoxPopover, {
|
|
1319
1396
|
isOpen: shouldShowPopover,
|
|
1320
1397
|
triggerRef: wrapperRef,
|
|
1321
1398
|
popoverRef,
|
|
@@ -1336,6 +1413,7 @@ function TagInput(props, ref) {
|
|
|
1336
1413
|
selectedKeys: uniqueValues,
|
|
1337
1414
|
isCheckable: true,
|
|
1338
1415
|
shouldCloseOnTriggerInteraction: false,
|
|
1416
|
+
shouldPassControlPresses: true,
|
|
1339
1417
|
isDisabled,
|
|
1340
1418
|
disabledKeys: optionDisabledKeys,
|
|
1341
1419
|
listStateRef,
|
|
@@ -1348,9 +1426,9 @@ function TagInput(props, ref) {
|
|
|
1348
1426
|
onClose: () => setIsPopoverOpen(false),
|
|
1349
1427
|
children: popoverChildren
|
|
1350
1428
|
}) : null;
|
|
1351
|
-
let
|
|
1352
|
-
if ($[
|
|
1353
|
-
|
|
1429
|
+
let t53;
|
|
1430
|
+
if ($[262] !== T0 || $[263] !== className || $[264] !== compositeFocusProps || $[265] !== qaVal || $[266] !== rootRef || $[267] !== style || $[268] !== styles || $[269] !== t44 || $[270] !== t45 || $[271] !== t48 || $[272] !== t50 || $[273] !== t51 || $[274] !== t52) {
|
|
1431
|
+
t53 = /* @__PURE__ */ jsxs(T0, {
|
|
1354
1432
|
ref: rootRef,
|
|
1355
1433
|
className,
|
|
1356
1434
|
style,
|
|
@@ -1358,44 +1436,44 @@ function TagInput(props, ref) {
|
|
|
1358
1436
|
styles,
|
|
1359
1437
|
...compositeFocusProps,
|
|
1360
1438
|
children: [
|
|
1361
|
-
|
|
1362
|
-
t42,
|
|
1439
|
+
t44,
|
|
1363
1440
|
t45,
|
|
1364
|
-
t47,
|
|
1365
1441
|
t48,
|
|
1366
|
-
|
|
1442
|
+
t50,
|
|
1443
|
+
t51,
|
|
1444
|
+
t52
|
|
1367
1445
|
]
|
|
1368
1446
|
});
|
|
1369
|
-
$[
|
|
1370
|
-
$[
|
|
1371
|
-
$[
|
|
1372
|
-
$[
|
|
1373
|
-
$[
|
|
1374
|
-
$[
|
|
1375
|
-
$[
|
|
1376
|
-
$[
|
|
1377
|
-
$[
|
|
1378
|
-
$[
|
|
1379
|
-
$[
|
|
1380
|
-
$[
|
|
1381
|
-
$[
|
|
1382
|
-
$[
|
|
1383
|
-
} else
|
|
1384
|
-
const tagInputField =
|
|
1447
|
+
$[262] = T0;
|
|
1448
|
+
$[263] = className;
|
|
1449
|
+
$[264] = compositeFocusProps;
|
|
1450
|
+
$[265] = qaVal;
|
|
1451
|
+
$[266] = rootRef;
|
|
1452
|
+
$[267] = style;
|
|
1453
|
+
$[268] = styles;
|
|
1454
|
+
$[269] = t44;
|
|
1455
|
+
$[270] = t45;
|
|
1456
|
+
$[271] = t48;
|
|
1457
|
+
$[272] = t50;
|
|
1458
|
+
$[273] = t51;
|
|
1459
|
+
$[274] = t52;
|
|
1460
|
+
$[275] = t53;
|
|
1461
|
+
} else t53 = $[275];
|
|
1462
|
+
const tagInputField = t53;
|
|
1385
1463
|
const { children: _children, ...fieldProps } = props;
|
|
1386
1464
|
const fieldRef = useCombinedRefs();
|
|
1387
|
-
let
|
|
1388
|
-
if ($[
|
|
1389
|
-
|
|
1390
|
-
$[
|
|
1391
|
-
$[
|
|
1392
|
-
$[
|
|
1393
|
-
} else
|
|
1465
|
+
let t54;
|
|
1466
|
+
if ($[276] !== message || $[277] !== tagError) {
|
|
1467
|
+
t54 = tagError ? /* @__PURE__ */ jsx("span", { children: tagError.text }, tagError.id) : message;
|
|
1468
|
+
$[276] = message;
|
|
1469
|
+
$[277] = tagError;
|
|
1470
|
+
$[278] = t54;
|
|
1471
|
+
} else t54 = $[278];
|
|
1394
1472
|
return wrapWithField(tagInputField, fieldRef, {
|
|
1395
1473
|
...fieldProps,
|
|
1396
1474
|
labelProps: mergeProps$1(labelProps, userLabelProps),
|
|
1397
1475
|
isInvalid: effectiveIsInvalid,
|
|
1398
|
-
message:
|
|
1476
|
+
message: t54,
|
|
1399
1477
|
errorMessage: tagError ? void 0 : errorMessage
|
|
1400
1478
|
});
|
|
1401
1479
|
}
|
|
@@ -1404,23 +1482,29 @@ function TagInput(props, ref) {
|
|
|
1404
1482
|
* input. Values are typed (Enter or a separator commits them) or picked from
|
|
1405
1483
|
* suggested options.
|
|
1406
1484
|
*/
|
|
1407
|
-
function
|
|
1485
|
+
function _temp10(tag_2) {
|
|
1408
1486
|
return tag_2.label;
|
|
1409
1487
|
}
|
|
1410
|
-
function
|
|
1488
|
+
function _temp1(tag_1) {
|
|
1411
1489
|
return tag_1.key;
|
|
1412
1490
|
}
|
|
1413
|
-
function
|
|
1491
|
+
function _temp0(tag_0) {
|
|
1414
1492
|
return tag_0.isDisabled;
|
|
1415
1493
|
}
|
|
1416
|
-
function
|
|
1494
|
+
function _temp9(tag) {
|
|
1417
1495
|
return !tag.isDisabled;
|
|
1418
1496
|
}
|
|
1419
|
-
function
|
|
1420
|
-
return
|
|
1497
|
+
function _temp8(part_1) {
|
|
1498
|
+
return part_1.trim();
|
|
1499
|
+
}
|
|
1500
|
+
function _temp7(rejection_1) {
|
|
1501
|
+
return rejection_1.text;
|
|
1502
|
+
}
|
|
1503
|
+
function _temp6(rejection_0) {
|
|
1504
|
+
return rejection_0.reason !== "duplicate";
|
|
1421
1505
|
}
|
|
1422
|
-
function _temp5(
|
|
1423
|
-
return
|
|
1506
|
+
function _temp5(delimiter) {
|
|
1507
|
+
return delimiter && !LINE_BREAK.test(delimiter);
|
|
1424
1508
|
}
|
|
1425
1509
|
function _temp4(node_0) {
|
|
1426
1510
|
return node_0.type === "section";
|