@threadlabs/looma 0.21.6 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ui-affordance-scope/ui-affordance-scope.html +1 -1
- package/components/ui-avatar/ui-avatar.html +4 -4
- package/components/ui-avatar-group/ui-avatar-group.html +2 -2
- package/components/ui-checkbox/ui-checkbox.html +1 -1
- package/components/ui-combobox/ui-combobox.html +18 -18
- package/components/ui-context-menu/ui-context-menu.html +1 -1
- package/components/ui-dialog/ui-dialog.html +2 -2
- package/components/ui-disclosure/ui-disclosure.html +4 -4
- package/components/ui-editable/ui-editable.html +3 -3
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +5 -5
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +5 -5
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +3 -3
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +2 -2
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +3 -7
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +6 -6
- package/components/ui-listbox/ui-listbox.html +6 -6
- package/components/ui-menu/ui-menu.html +1 -1
- package/components/ui-menu-item/ui-menu-item.html +1 -1
- package/components/ui-popover/ui-popover.html +1 -1
- package/components/ui-radio/ui-radio.html +1 -1
- package/components/ui-radio-group/ui-radio-group.html +1 -1
- package/components/ui-search-shell/ui-search-shell.html +1 -1
- package/components/ui-sidebar/ui-sidebar.html +2 -2
- package/components/ui-switch/ui-switch.html +1 -1
- package/components/ui-switcher/ui-switcher.html +1 -1
- package/components/ui-tabs/ui-tabs.html +2 -2
- package/components/ui-toast-region/ui-toast-region.html +1 -1
- package/components/ui-tooltip/ui-tooltip.html +1 -1
- package/components/ui-tree-item/ui-tree-item.html +4 -4
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/styles/ui-action-bar.css +1 -1
- package/styles/ui-affordance-scope.css +1 -1
- package/styles/ui-avatar-group.css +1 -1
- package/styles/ui-avatar.css +1 -1
- package/styles/ui-badge.css +1 -1
- package/styles/ui-breadcrumb-item.css +1 -1
- package/styles/ui-breadcrumbs.css +1 -1
- package/styles/ui-button.css +1 -1
- package/styles/ui-callout.css +1 -1
- package/styles/ui-card.css +1 -1
- package/styles/ui-checkbox.css +1 -1
- package/styles/ui-cluster.css +1 -1
- package/styles/ui-combobox.css +1 -1
- package/styles/ui-container.css +1 -1
- package/styles/ui-context-menu.css +1 -1
- package/styles/ui-cover.css +1 -1
- package/styles/ui-description-item.css +1 -1
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +1 -1
- package/styles/ui-disclosure.css +1 -1
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-slash-menu-group.css +1 -1
- package/styles/ui-editor-slash-menu-item.css +1 -1
- package/styles/ui-editor-slash-menu.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +1 -1
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +1 -1
- package/styles/ui-icon-button.css +1 -1
- package/styles/ui-icon.css +1 -1
- package/styles/ui-input-group.css +1 -1
- package/styles/ui-input.css +1 -1
- package/styles/ui-list-item.css +1 -1
- package/styles/ui-list.css +1 -1
- package/styles/ui-listbox.css +1 -1
- package/styles/ui-menu-group.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.css +1 -1
- package/styles/ui-meter.css +1 -1
- package/styles/ui-nav-item.css +1 -1
- package/styles/ui-page-header.css +1 -1
- package/styles/ui-popover.css +1 -1
- package/styles/ui-radio-group.css +1 -1
- package/styles/ui-radio.css +1 -1
- package/styles/ui-reel.css +1 -1
- package/styles/ui-scroll-area.css +1 -1
- package/styles/ui-search-result-row.css +1 -1
- package/styles/ui-search-shell.css +1 -1
- package/styles/ui-section.css +1 -1
- package/styles/ui-select.css +1 -1
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +1 -1
- package/styles/ui-table.css +1 -1
- package/styles/ui-tabs.css +1 -1
- package/styles/ui-text.css +1 -1
- package/styles/ui-textarea.css +1 -1
- package/styles/ui-toast-region.css +1 -1
- package/styles/ui-toast.css +1 -1
- package/styles/ui-tooltip.css +1 -1
- package/styles/ui-top-bar.css +1 -1
- package/styles/ui-tree-item.css +1 -1
- package/styles/ui-tree.css +1 -1
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +1 -1
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +2 -2
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +2 -2
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +2 -2
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +1 -1
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +1 -1
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +1 -1
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +1 -1
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +2 -2
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +2 -2
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +1 -1
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +2 -2
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +1 -1
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +1 -1
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +1 -1
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +2 -2
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +2 -2
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +2 -2
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +2 -2
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +2 -2
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +1 -1
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +2 -2
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +1 -1
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +1 -1
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +2 -2
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +2 -2
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +2 -2
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +1 -1
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +1 -1
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +1 -1
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +1 -1
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +1 -1
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +1 -1
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +1 -1
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +1 -1
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +1 -1
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +1 -1
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +2 -2
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +2 -2
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +1 -1
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +2 -2
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +1 -1
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +1 -1
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +1 -1
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +2 -2
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +2 -2
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +2 -2
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +1 -1
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +1 -1
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +1 -1
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +2 -2
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +1 -1
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +1 -1
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +1 -1
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +2 -2
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +1 -1
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +1 -1
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +1 -1
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +2 -2
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +2 -2
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +1 -1
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +2 -2
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +1 -1
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +1 -1
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +1 -1
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +2 -2
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +2 -2
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +1 -1
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +1 -1
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +2 -2
- package/vue/UiActionBar.vue +1 -1
- package/vue/UiAffordanceScope.vue +25 -7
- package/vue/UiAvatar.vue +125 -30
- package/vue/UiAvatarGroup.d.ts +1 -1
- package/vue/UiAvatarGroup.vue +67 -21
- package/vue/UiBadge.vue +34 -8
- package/vue/UiBreadcrumbItem.vue +15 -4
- package/vue/UiBreadcrumbs.vue +14 -4
- package/vue/UiButton.vue +123 -42
- package/vue/UiCallout.vue +16 -4
- package/vue/UiCard.vue +46 -10
- package/vue/UiCheckbox.d.ts +5 -5
- package/vue/UiCheckbox.vue +73 -19
- package/vue/UiCluster.vue +39 -10
- package/vue/UiCombobox.d.ts +5 -5
- package/vue/UiCombobox.vue +317 -78
- package/vue/UiContainer.vue +23 -6
- package/vue/UiContextMenu.vue +24 -7
- package/vue/UiCover.vue +16 -4
- package/vue/UiDescriptionItem.vue +14 -4
- package/vue/UiDescriptionList.vue +33 -8
- package/vue/UiDialog.vue +79 -26
- package/vue/UiDisclosure.vue +101 -38
- package/vue/UiEditable.d.ts +3 -3
- package/vue/UiEditable.vue +107 -27
- package/vue/UiEditorInsertTableGrid.vue +47 -11
- package/vue/UiEditorMentionMenu.vue +99 -20
- package/vue/UiEditorMentionMenuItem.vue +29 -8
- package/vue/UiEditorSlashMenu.vue +85 -16
- package/vue/UiEditorSlashMenuGroup.vue +14 -4
- package/vue/UiEditorSlashMenuItem.vue +43 -12
- package/vue/UiEditorTableContextMenu.d.ts +1 -1
- package/vue/UiEditorTableContextMenu.vue +95 -19
- package/vue/UiEditorTableOverlay.vue +91 -7
- package/vue/UiEditorTableToolbar.vue +105 -16
- package/vue/UiEditorToolbar.vue +15 -4
- package/vue/UiFloatingActionButton.vue +31 -8
- package/vue/UiFormField.d.ts +1 -1
- package/vue/UiFormField.vue +31 -8
- package/vue/UiGrid.vue +30 -8
- package/vue/UiIcon.vue +15 -4
- package/vue/UiIconButton.vue +70 -24
- package/vue/UiInput.vue +114 -39
- package/vue/UiInputGroup.vue +15 -4
- package/vue/UiList.vue +47 -16
- package/vue/UiListItem.vue +24 -6
- package/vue/UiListbox.d.ts +3 -3
- package/vue/UiListbox.vue +72 -24
- package/vue/UiMenu.vue +55 -15
- package/vue/UiMenuGroup.vue +14 -4
- package/vue/UiMenuItem.d.ts +4 -4
- package/vue/UiMenuItem.vue +77 -27
- package/vue/UiMeter.vue +65 -16
- package/vue/UiNavItem.vue +48 -24
- package/vue/UiPageHeader.vue +16 -4
- package/vue/UiPopover.vue +46 -21
- package/vue/UiRadio.d.ts +4 -4
- package/vue/UiRadio.vue +58 -15
- package/vue/UiRadioGroup.d.ts +3 -3
- package/vue/UiRadioGroup.vue +66 -17
- package/vue/UiReel.d.ts +1 -1
- package/vue/UiReel.vue +31 -8
- package/vue/UiScrollArea.vue +16 -4
- package/vue/UiSearchResultRow.vue +23 -6
- package/vue/UiSearchShell.vue +38 -11
- package/vue/UiSection.vue +33 -8
- package/vue/UiSelect.d.ts +1 -1
- package/vue/UiSelect.vue +45 -20
- package/vue/UiSeparator.vue +16 -4
- package/vue/UiSidebar.d.ts +2 -2
- package/vue/UiSidebar.vue +86 -22
- package/vue/UiSpinner.vue +23 -6
- package/vue/UiStack.vue +31 -8
- package/vue/UiStatusMessage.vue +32 -8
- package/vue/UiSwitch.d.ts +4 -4
- package/vue/UiSwitch.vue +57 -15
- package/vue/UiSwitcher.vue +41 -17
- package/vue/UiTable.vue +24 -6
- package/vue/UiTabs.vue +60 -14
- package/vue/UiText.vue +98 -35
- package/vue/UiTextarea.d.ts +1 -1
- package/vue/UiTextarea.vue +67 -26
- package/vue/UiToast.vue +24 -6
- package/vue/UiToastRegion.vue +41 -13
- package/vue/UiTooltip.d.ts +1 -1
- package/vue/UiTooltip.vue +85 -30
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.vue +56 -14
- package/vue/UiTreeItem.d.ts +3 -3
- package/vue/UiTreeItem.vue +147 -36
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +34 -7
- package/vue/chunks/UiAvatar.js +141 -21
- package/vue/chunks/UiAvatarGroup.js +83 -16
- package/vue/chunks/UiBadge.js +57 -19
- package/vue/chunks/UiBreadcrumbItem.js +19 -6
- package/vue/chunks/UiBreadcrumbs.js +19 -6
- package/vue/chunks/UiButton.js +194 -42
- package/vue/chunks/UiCallout.js +27 -13
- package/vue/chunks/UiCard.js +83 -25
- package/vue/chunks/UiCheckbox.js +104 -17
- package/vue/chunks/UiCluster.js +70 -25
- package/vue/chunks/UiCombobox.js +441 -46
- package/vue/chunks/UiContainer.js +36 -11
- package/vue/chunks/UiContextMenu.js +33 -7
- package/vue/chunks/UiCover.js +20 -6
- package/vue/chunks/UiDescriptionItem.js +18 -5
- package/vue/chunks/UiDescriptionList.js +54 -17
- package/vue/chunks/UiDialog.js +115 -23
- package/vue/chunks/UiDisclosure.js +110 -24
- package/vue/chunks/UiEditable.js +146 -18
- package/vue/chunks/UiEditorInsertTableGrid.js +65 -10
- package/vue/chunks/UiEditorMentionMenu.js +210 -14
- package/vue/chunks/UiEditorMentionMenuItem.js +43 -8
- package/vue/chunks/UiEditorSlashMenu.js +186 -12
- package/vue/chunks/UiEditorSlashMenuGroup.js +19 -6
- package/vue/chunks/UiEditorSlashMenuItem.js +65 -10
- package/vue/chunks/UiEditorTableContextMenu.js +116 -16
- package/vue/chunks/UiEditorTableOverlay.js +188 -7
- package/vue/chunks/UiEditorTableToolbar.js +125 -16
- package/vue/chunks/UiEditorToolbar.js +19 -6
- package/vue/chunks/UiFloatingActionButton.js +43 -8
- package/vue/chunks/UiFormField.js +43 -8
- package/vue/chunks/UiGrid.js +52 -18
- package/vue/chunks/UiIcon.js +19 -6
- package/vue/chunks/UiIconButton.js +107 -21
- package/vue/chunks/UiInput.js +309 -30
- package/vue/chunks/UiInputGroup.js +19 -6
- package/vue/chunks/UiList.js +62 -10
- package/vue/chunks/UiListItem.js +33 -7
- package/vue/chunks/UiListbox.js +105 -13
- package/vue/chunks/UiMenu.js +79 -11
- package/vue/chunks/UiMenuGroup.js +19 -6
- package/vue/chunks/UiMenuItem.js +93 -28
- package/vue/chunks/UiMeter.js +96 -19
- package/vue/chunks/UiNavItem.js +74 -17
- package/vue/chunks/UiPageHeader.js +20 -6
- package/vue/chunks/UiPopover.js +58 -21
- package/vue/chunks/UiRadio.js +82 -15
- package/vue/chunks/UiRadioGroup.js +89 -12
- package/vue/chunks/UiReel.js +53 -18
- package/vue/chunks/UiScrollArea.js +20 -6
- package/vue/chunks/UiSearchResultRow.js +32 -7
- package/vue/chunks/UiSearchShell.js +55 -9
- package/vue/chunks/UiSection.js +49 -12
- package/vue/chunks/UiSelect.js +68 -13
- package/vue/chunks/UiSeparator.js +20 -6
- package/vue/chunks/UiSidebar.js +123 -19
- package/vue/chunks/UiSpinner.js +33 -7
- package/vue/chunks/UiStack.js +59 -24
- package/vue/chunks/UiStatusMessage.js +53 -16
- package/vue/chunks/UiSwitch.js +82 -15
- package/vue/chunks/UiSwitcher.js +70 -25
- package/vue/chunks/UiTable.js +33 -7
- package/vue/chunks/UiTabs.js +81 -11
- package/vue/chunks/UiText.js +169 -58
- package/vue/chunks/UiTextarea.js +101 -16
- package/vue/chunks/UiToast.js +39 -13
- package/vue/chunks/UiToastRegion.js +41 -14
- package/vue/chunks/UiTooltip.js +113 -30
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +82 -15
- package/vue/chunks/UiTreeItem.js +184 -22
- package/vue/chunks/props.js +271 -35
- package/vue/components.css +1197 -1197
- package/vue/editor/index.js +5 -2
- package/vue/editor/primitives.d.ts +4 -1
- package/vue/host.ts +6 -6
package/vue/chunks/UiCombobox.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
2
|
import { r as useComponentHost, t as createDispatch } from "./host.js";
|
|
3
|
-
import { t as checkedProp } from "./props.js";
|
|
3
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
4
4
|
import { t as UiBadge_default } from "./UiBadge.js";
|
|
5
5
|
import { r as vBindControl } from "./control.js";
|
|
6
6
|
import { t as UiTooltip_default } from "./UiTooltip.js";
|
|
7
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, h, mergeProps, normalizeClass, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withCtx, withDirectives } from "vue";
|
|
7
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, h, mergeProps, normalizeClass, normalizeStyle, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withCtx, withDirectives } from "vue";
|
|
8
8
|
//#region .build/vue/UiCombobox.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var _hoisted_1 = [
|
|
10
10
|
"data-allow-create",
|
|
@@ -242,40 +242,378 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
242
242
|
"selected-values-change"
|
|
243
243
|
],
|
|
244
244
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
245
|
+
const propValidityContract = { props: {
|
|
246
|
+
allowCreate: {
|
|
247
|
+
type: {
|
|
248
|
+
kind: "terminal",
|
|
249
|
+
name: "boolean"
|
|
250
|
+
},
|
|
251
|
+
required: false,
|
|
252
|
+
target: { attribute: "allowcreate" },
|
|
253
|
+
description: "Offers the current query as a new option, reported as create-item. When nothing else matches, the offer is highlighted, so Enter creates it; with nothing\n highlighted, Enter in multiple mode commits the typed text as a token separator does.",
|
|
254
|
+
default: false
|
|
255
|
+
},
|
|
256
|
+
allowFreeText: {
|
|
257
|
+
type: {
|
|
258
|
+
kind: "terminal",
|
|
259
|
+
name: "boolean"
|
|
260
|
+
},
|
|
261
|
+
required: false,
|
|
262
|
+
target: { attribute: "allowfreetext" },
|
|
263
|
+
description: "Allows values that do not match an authored option.",
|
|
264
|
+
default: false
|
|
265
|
+
},
|
|
266
|
+
clearable: {
|
|
267
|
+
type: {
|
|
268
|
+
kind: "terminal",
|
|
269
|
+
name: "boolean"
|
|
270
|
+
},
|
|
271
|
+
required: false,
|
|
272
|
+
target: { attribute: "clearable" },
|
|
273
|
+
description: "Adds a clear button to the field that empties the input and clears the selection, reported as value-change with kind \"clear\". It is disabled when there is\n nothing to clear. In multiple mode it clears only the typed text; chosen items stay.",
|
|
274
|
+
default: false
|
|
275
|
+
},
|
|
276
|
+
disabled: {
|
|
277
|
+
type: {
|
|
278
|
+
kind: "terminal",
|
|
279
|
+
name: "boolean"
|
|
280
|
+
},
|
|
281
|
+
required: false,
|
|
282
|
+
target: { attribute: "disabled" },
|
|
283
|
+
description: "Disables the input and every button in the field: the chosen-item badges, the clear and disclosure buttons, and the help button. The list closes and cannot\n be opened, the value cannot be cleared, and a named combobox submits nothing with its form.",
|
|
284
|
+
default: false
|
|
285
|
+
},
|
|
286
|
+
disclosure: {
|
|
287
|
+
type: {
|
|
288
|
+
kind: "terminal",
|
|
289
|
+
name: "boolean"
|
|
290
|
+
},
|
|
291
|
+
required: false,
|
|
292
|
+
target: { attribute: "disclosure" },
|
|
293
|
+
description: "Adds a chevron button that opens and closes the full, unfiltered list of options, for users who would rather browse than type. ArrowDown opens the same\n list with or without it.",
|
|
294
|
+
default: false
|
|
295
|
+
},
|
|
296
|
+
filter: {
|
|
297
|
+
type: {
|
|
298
|
+
kind: "terminal",
|
|
299
|
+
name: "keyword"
|
|
300
|
+
},
|
|
301
|
+
required: false,
|
|
302
|
+
target: { attribute: "filter" },
|
|
303
|
+
description: "How the list narrows as the user types. label lists the options whose label contains the typed text, ignoring case. none lists every authored option, for\n options already narrowed elsewhere, such as a server search, so a result that matched on data other than its label still shows. Leaving the field still\n commits an option whose label matches the text, or the only one listed.",
|
|
304
|
+
values: ["label", "none"],
|
|
305
|
+
default: "label"
|
|
306
|
+
},
|
|
307
|
+
help: {
|
|
308
|
+
type: {
|
|
309
|
+
kind: "terminal",
|
|
310
|
+
name: "string"
|
|
311
|
+
},
|
|
312
|
+
required: false,
|
|
313
|
+
target: { attribute: "help" },
|
|
314
|
+
description: "Help text for the field. When set, a help button appears beside the field and opens a tooltip with this text; while it is open, the input is described by\n it.",
|
|
315
|
+
default: ""
|
|
316
|
+
},
|
|
317
|
+
invalid: {
|
|
318
|
+
type: {
|
|
319
|
+
kind: "terminal",
|
|
320
|
+
name: "boolean"
|
|
321
|
+
},
|
|
322
|
+
required: false,
|
|
323
|
+
target: { attribute: "invalid" },
|
|
324
|
+
description: "Exposes an externally validated error on the input and field. It remains until the consumer clears it, independently of native validation.",
|
|
325
|
+
default: false
|
|
326
|
+
},
|
|
327
|
+
items: {
|
|
328
|
+
type: {
|
|
329
|
+
kind: "list",
|
|
330
|
+
item: {
|
|
331
|
+
kind: "object",
|
|
332
|
+
fields: [
|
|
333
|
+
{
|
|
334
|
+
name: "id",
|
|
335
|
+
type: {
|
|
336
|
+
kind: "terminal",
|
|
337
|
+
name: "string"
|
|
338
|
+
},
|
|
339
|
+
optional: false
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
name: "value",
|
|
343
|
+
type: {
|
|
344
|
+
kind: "terminal",
|
|
345
|
+
name: "string"
|
|
346
|
+
},
|
|
347
|
+
optional: false
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
name: "label",
|
|
351
|
+
type: {
|
|
352
|
+
kind: "terminal",
|
|
353
|
+
name: "string"
|
|
354
|
+
},
|
|
355
|
+
optional: false
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
name: "group",
|
|
359
|
+
type: {
|
|
360
|
+
kind: "terminal",
|
|
361
|
+
name: "string"
|
|
362
|
+
},
|
|
363
|
+
optional: true
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
name: "disabled",
|
|
367
|
+
type: {
|
|
368
|
+
kind: "terminal",
|
|
369
|
+
name: "boolean"
|
|
370
|
+
},
|
|
371
|
+
optional: true
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
name: "description",
|
|
375
|
+
type: {
|
|
376
|
+
kind: "terminal",
|
|
377
|
+
name: "string"
|
|
378
|
+
},
|
|
379
|
+
optional: true
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
name: "tag",
|
|
383
|
+
type: {
|
|
384
|
+
kind: "object",
|
|
385
|
+
fields: [
|
|
386
|
+
{
|
|
387
|
+
name: "label",
|
|
388
|
+
type: {
|
|
389
|
+
kind: "terminal",
|
|
390
|
+
name: "string"
|
|
391
|
+
},
|
|
392
|
+
optional: false
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
name: "tone",
|
|
396
|
+
type: {
|
|
397
|
+
kind: "constrained",
|
|
398
|
+
base: {
|
|
399
|
+
kind: "terminal",
|
|
400
|
+
name: "keyword"
|
|
401
|
+
},
|
|
402
|
+
values: [
|
|
403
|
+
"neutral",
|
|
404
|
+
"accent",
|
|
405
|
+
"info",
|
|
406
|
+
"success",
|
|
407
|
+
"warning",
|
|
408
|
+
"danger"
|
|
409
|
+
]
|
|
410
|
+
},
|
|
411
|
+
optional: true
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
name: "color",
|
|
415
|
+
type: {
|
|
416
|
+
kind: "terminal",
|
|
417
|
+
name: "string"
|
|
418
|
+
},
|
|
419
|
+
optional: true
|
|
420
|
+
}
|
|
421
|
+
],
|
|
422
|
+
open: false
|
|
423
|
+
},
|
|
424
|
+
optional: true
|
|
425
|
+
}
|
|
426
|
+
],
|
|
427
|
+
open: false
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
required: false,
|
|
431
|
+
target: { attribute: "items" },
|
|
432
|
+
description: "The selected items in multiple mode, as JSON; a named combobox submits each one's value. A form reset returns to these items, or to authored selected\n options when unset."
|
|
433
|
+
},
|
|
434
|
+
label: {
|
|
435
|
+
type: {
|
|
436
|
+
kind: "terminal",
|
|
437
|
+
name: "string"
|
|
438
|
+
},
|
|
439
|
+
required: false,
|
|
440
|
+
target: { attribute: "label" },
|
|
441
|
+
description: "The field's label, tied to its input and shown above it; required adds an asterisk. It also names the suggestion list. Pair it with\n labelVisibility=\"sr-only\" when the context already labels the field visibly.",
|
|
442
|
+
default: ""
|
|
443
|
+
},
|
|
444
|
+
labelVisibility: {
|
|
445
|
+
type: {
|
|
446
|
+
kind: "terminal",
|
|
447
|
+
name: "keyword"
|
|
448
|
+
},
|
|
449
|
+
required: false,
|
|
450
|
+
target: { attribute: "labelvisibility" },
|
|
451
|
+
description: "visible shows the label above the field; sr-only hides it visually but keeps it as the input's accessible name. Use sr-only only when the surrounding\n layout already makes the field's purpose clear.",
|
|
452
|
+
values: ["visible", "sr-only"],
|
|
453
|
+
default: "visible"
|
|
454
|
+
},
|
|
455
|
+
loading: {
|
|
456
|
+
type: {
|
|
457
|
+
kind: "terminal",
|
|
458
|
+
name: "boolean"
|
|
459
|
+
},
|
|
460
|
+
required: false,
|
|
461
|
+
target: { attribute: "aria-busy" },
|
|
462
|
+
description: "Marks the suggestion list busy while the consumer loads options. It announces loading and suppresses the empty state and create offer until cleared.",
|
|
463
|
+
default: false
|
|
464
|
+
},
|
|
465
|
+
multiple: {
|
|
466
|
+
type: {
|
|
467
|
+
kind: "terminal",
|
|
468
|
+
name: "boolean"
|
|
469
|
+
},
|
|
470
|
+
required: false,
|
|
471
|
+
target: { attribute: "data-multiple" },
|
|
472
|
+
description: "Lets the user choose several options. Each choice becomes a removable badge before the input, the list stays open between picks, and choosing a checked\n option removes it. items-change then reports the whole list of items, and selected-values-change the list of their values; use selectedValues or items,\n not value, in this mode.",
|
|
473
|
+
default: false
|
|
474
|
+
},
|
|
475
|
+
name: {
|
|
476
|
+
type: {
|
|
477
|
+
kind: "terminal",
|
|
478
|
+
name: "string"
|
|
479
|
+
},
|
|
480
|
+
required: false,
|
|
481
|
+
target: { attribute: "name" },
|
|
482
|
+
description: "The form field name the combobox submits its value under, never the label shown in the field. Single mode sends one entry: the selected option's value, the\n typed text when allowFreeText is set and no option is selected, or an empty string. Multiple mode sends one entry per chosen item's value, and nothing\n when none is chosen. A disabled combobox sends nothing.",
|
|
483
|
+
default: ""
|
|
484
|
+
},
|
|
485
|
+
openOnFocus: {
|
|
486
|
+
type: {
|
|
487
|
+
kind: "terminal",
|
|
488
|
+
name: "boolean"
|
|
489
|
+
},
|
|
490
|
+
required: false,
|
|
491
|
+
target: { attribute: "openonfocus" },
|
|
492
|
+
description: "Opens suggestions when the input receives focus, before typing.",
|
|
493
|
+
default: false
|
|
494
|
+
},
|
|
495
|
+
placeholder: {
|
|
496
|
+
type: {
|
|
497
|
+
kind: "terminal",
|
|
498
|
+
name: "string"
|
|
499
|
+
},
|
|
500
|
+
required: false,
|
|
501
|
+
target: { attribute: "placeholder" },
|
|
502
|
+
description: "Hint text shown in the empty input, as on a native input. It disappears as the user types, so it never replaces label.",
|
|
503
|
+
default: ""
|
|
504
|
+
},
|
|
505
|
+
query: {
|
|
506
|
+
type: {
|
|
507
|
+
kind: "terminal",
|
|
508
|
+
name: "string"
|
|
509
|
+
},
|
|
510
|
+
required: false,
|
|
511
|
+
target: { attribute: "query" },
|
|
512
|
+
description: "The input's text, when the consumer controls it. Once set, the consumer owns the text: typing reports query-change, and the input returns to query unless\n query is updated to match. Leave it unset to let the combobox manage its own text, showing the chosen option's label."
|
|
513
|
+
},
|
|
514
|
+
readonly: {
|
|
515
|
+
type: {
|
|
516
|
+
kind: "terminal",
|
|
517
|
+
name: "boolean"
|
|
518
|
+
},
|
|
519
|
+
required: false,
|
|
520
|
+
target: { attribute: "readonly" },
|
|
521
|
+
description: "Shows the current value without letting it change: the text can be selected but not edited, the list does not open, and the clear, disclosure, and badge\n remove buttons are disabled. A named combobox still submits its value.",
|
|
522
|
+
default: false
|
|
523
|
+
},
|
|
524
|
+
required: {
|
|
525
|
+
type: {
|
|
526
|
+
kind: "terminal",
|
|
527
|
+
name: "boolean"
|
|
528
|
+
},
|
|
529
|
+
required: false,
|
|
530
|
+
target: { attribute: "required" },
|
|
531
|
+
description: "Requires a value: adds an asterisk to the label, marks the input required for native form validation, and makes validation report \"A value is required.\"\n when the field is left empty. In multiple mode a chosen item satisfies it, whatever is left in the input.",
|
|
532
|
+
default: false
|
|
533
|
+
},
|
|
534
|
+
selectedValues: {
|
|
535
|
+
type: {
|
|
536
|
+
kind: "list",
|
|
537
|
+
item: {
|
|
538
|
+
kind: "terminal",
|
|
539
|
+
name: "string"
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
required: false,
|
|
543
|
+
target: { attribute: "selectedvalues" },
|
|
544
|
+
description: "The selected option values in multiple mode, when the consumer controls the selection. Without it or items, authored options with selected set the initial\n selection. Once set, the consumer owns it: each value shows as a badge with its authored option's label, adding or removing one reports\n selected-values-change with the new list, and the badges follow selectedValues, not the user, unless it is updated to match. Setting it reports nothing.\n It takes precedence over items; leave it unset to let the combobox keep its own selection."
|
|
545
|
+
},
|
|
546
|
+
size: {
|
|
547
|
+
type: {
|
|
548
|
+
kind: "terminal",
|
|
549
|
+
name: "keyword"
|
|
550
|
+
},
|
|
551
|
+
required: false,
|
|
552
|
+
target: { attribute: "size" },
|
|
553
|
+
description: "Field height, padding, and type size, matching Button's sizes so a field and a button of one size share a row. sm is the small control height (2rem by\n default) with smaller text, for compact rows such as a table row or a filter bar; md is the standard control height; lg is taller with roomier padding.\n Under a coarse pointer, sm grows to the 44px touch minimum and keeps body-size text. The label keeps its size.",
|
|
554
|
+
values: [
|
|
555
|
+
"sm",
|
|
556
|
+
"md",
|
|
557
|
+
"lg"
|
|
558
|
+
],
|
|
559
|
+
default: "md"
|
|
560
|
+
},
|
|
561
|
+
tokenSeparators: {
|
|
562
|
+
type: {
|
|
563
|
+
kind: "list",
|
|
564
|
+
item: {
|
|
565
|
+
kind: "terminal",
|
|
566
|
+
name: "string"
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
required: false,
|
|
570
|
+
target: { attribute: "tokenseparators" },
|
|
571
|
+
description: "Keys that commit the typed text in multiple mode, as KeyboardEvent key values such as \",\" or \";\". The text is added as the option whose label matches it,\n ignoring case, or with allowCreate is reported as create-item; otherwise it stays in the input."
|
|
572
|
+
},
|
|
573
|
+
value: {
|
|
574
|
+
type: {
|
|
575
|
+
kind: "terminal",
|
|
576
|
+
name: "string"
|
|
577
|
+
},
|
|
578
|
+
required: false,
|
|
579
|
+
target: { attribute: "value" },
|
|
580
|
+
description: "The selected value in single mode, which a named combobox submits with its form. The field shows the matching option's label, and a form reset returns to\n this value. In a strict combobox, typing a search does not change the selection; leaving with no match restores its label. If omitted, the first authored\n option with selected sets the initial value."
|
|
581
|
+
}
|
|
582
|
+
} };
|
|
245
583
|
const props = __props;
|
|
246
584
|
const checkedProps = computed(() => ({
|
|
247
585
|
allowCreate: checkedProp(props["allowCreate"], {
|
|
248
586
|
kind: "terminal",
|
|
249
587
|
name: "boolean"
|
|
250
|
-
}, false, "allowCreate"
|
|
588
|
+
}, false, "allowCreate"),
|
|
251
589
|
allowFreeText: checkedProp(props["allowFreeText"], {
|
|
252
590
|
kind: "terminal",
|
|
253
591
|
name: "boolean"
|
|
254
|
-
}, false, "allowFreeText"
|
|
592
|
+
}, false, "allowFreeText"),
|
|
255
593
|
clearable: checkedProp(props["clearable"], {
|
|
256
594
|
kind: "terminal",
|
|
257
595
|
name: "boolean"
|
|
258
|
-
}, false, "clearable"
|
|
596
|
+
}, false, "clearable"),
|
|
259
597
|
disabled: checkedProp(props["disabled"], {
|
|
260
598
|
kind: "terminal",
|
|
261
599
|
name: "boolean"
|
|
262
|
-
}, false, "disabled"
|
|
600
|
+
}, false, "disabled"),
|
|
263
601
|
disclosure: checkedProp(props["disclosure"], {
|
|
264
602
|
kind: "terminal",
|
|
265
603
|
name: "boolean"
|
|
266
|
-
}, false, "disclosure"
|
|
604
|
+
}, false, "disclosure"),
|
|
267
605
|
filter: checkedProp(props["filter"], {
|
|
268
606
|
kind: "terminal",
|
|
269
607
|
name: "keyword"
|
|
270
|
-
}, false, "filter"
|
|
608
|
+
}, false, "filter"),
|
|
271
609
|
help: checkedProp(props["help"], {
|
|
272
610
|
kind: "terminal",
|
|
273
611
|
name: "string"
|
|
274
|
-
}, false, "help"
|
|
612
|
+
}, false, "help"),
|
|
275
613
|
invalid: checkedProp(props["invalid"], {
|
|
276
614
|
kind: "terminal",
|
|
277
615
|
name: "boolean"
|
|
278
|
-
}, false, "invalid"
|
|
616
|
+
}, false, "invalid"),
|
|
279
617
|
items: checkedProp(props["items"], {
|
|
280
618
|
kind: "list",
|
|
281
619
|
item: {
|
|
@@ -377,73 +715,69 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
377
715
|
],
|
|
378
716
|
open: false
|
|
379
717
|
}
|
|
380
|
-
}, false, "items"
|
|
718
|
+
}, false, "items"),
|
|
381
719
|
label: checkedProp(props["label"], {
|
|
382
720
|
kind: "terminal",
|
|
383
721
|
name: "string"
|
|
384
|
-
}, false, "label"
|
|
722
|
+
}, false, "label"),
|
|
385
723
|
labelVisibility: checkedProp(props["labelVisibility"], {
|
|
386
724
|
kind: "terminal",
|
|
387
725
|
name: "keyword"
|
|
388
|
-
}, false, "labelVisibility"
|
|
726
|
+
}, false, "labelVisibility"),
|
|
389
727
|
loading: checkedProp(props["loading"], {
|
|
390
728
|
kind: "terminal",
|
|
391
729
|
name: "boolean"
|
|
392
|
-
}, false, "loading"
|
|
730
|
+
}, false, "loading"),
|
|
393
731
|
multiple: checkedProp(props["multiple"], {
|
|
394
732
|
kind: "terminal",
|
|
395
733
|
name: "boolean"
|
|
396
|
-
}, false, "multiple"
|
|
734
|
+
}, false, "multiple"),
|
|
397
735
|
name: checkedProp(props["name"], {
|
|
398
736
|
kind: "terminal",
|
|
399
737
|
name: "string"
|
|
400
|
-
}, false, "name"
|
|
738
|
+
}, false, "name"),
|
|
401
739
|
openOnFocus: checkedProp(props["openOnFocus"], {
|
|
402
740
|
kind: "terminal",
|
|
403
741
|
name: "boolean"
|
|
404
|
-
}, false, "openOnFocus"
|
|
742
|
+
}, false, "openOnFocus"),
|
|
405
743
|
placeholder: checkedProp(props["placeholder"], {
|
|
406
744
|
kind: "terminal",
|
|
407
745
|
name: "string"
|
|
408
|
-
}, false, "placeholder"
|
|
746
|
+
}, false, "placeholder"),
|
|
409
747
|
query: checkedProp(props["query"], {
|
|
410
748
|
kind: "terminal",
|
|
411
749
|
name: "string"
|
|
412
|
-
}, false, "query"
|
|
750
|
+
}, false, "query"),
|
|
413
751
|
readonly: checkedProp(props["readonly"], {
|
|
414
752
|
kind: "terminal",
|
|
415
753
|
name: "boolean"
|
|
416
|
-
}, false, "readonly"
|
|
754
|
+
}, false, "readonly"),
|
|
417
755
|
required: checkedProp(props["required"], {
|
|
418
756
|
kind: "terminal",
|
|
419
757
|
name: "boolean"
|
|
420
|
-
}, false, "required"
|
|
758
|
+
}, false, "required"),
|
|
421
759
|
selectedValues: checkedProp(props["selectedValues"], {
|
|
422
760
|
kind: "list",
|
|
423
761
|
item: {
|
|
424
762
|
kind: "terminal",
|
|
425
763
|
name: "string"
|
|
426
764
|
}
|
|
427
|
-
}, false, "selectedValues"
|
|
765
|
+
}, false, "selectedValues"),
|
|
428
766
|
size: checkedProp(props["size"], {
|
|
429
767
|
kind: "terminal",
|
|
430
768
|
name: "keyword"
|
|
431
|
-
}, false, "size",
|
|
432
|
-
"sm",
|
|
433
|
-
"md",
|
|
434
|
-
"lg"
|
|
435
|
-
]),
|
|
769
|
+
}, false, "size"),
|
|
436
770
|
tokenSeparators: checkedProp(props["tokenSeparators"], {
|
|
437
771
|
kind: "list",
|
|
438
772
|
item: {
|
|
439
773
|
kind: "terminal",
|
|
440
774
|
name: "string"
|
|
441
775
|
}
|
|
442
|
-
}, false, "tokenSeparators"
|
|
776
|
+
}, false, "tokenSeparators"),
|
|
443
777
|
value: checkedProp(props["value"], {
|
|
444
778
|
kind: "terminal",
|
|
445
779
|
name: "string"
|
|
446
|
-
}, false, "value"
|
|
780
|
+
}, false, "value")
|
|
447
781
|
}));
|
|
448
782
|
checkedProps.value;
|
|
449
783
|
watchSyncEffect(() => {
|
|
@@ -518,14 +852,72 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
518
852
|
const validationStatus = ref("pristine");
|
|
519
853
|
let guardedPrevious;
|
|
520
854
|
const guarded = computed(() => {
|
|
521
|
-
if (!(
|
|
522
|
-
return guardedPrevious =
|
|
855
|
+
if (!(expanded.value == null || typeof expanded.value === "boolean")) return guardedPrevious;
|
|
856
|
+
return guardedPrevious = expanded.value;
|
|
523
857
|
});
|
|
524
858
|
let guardedBindingPrevious;
|
|
525
859
|
const guardedBinding = computed(() => {
|
|
526
|
-
if (!(
|
|
527
|
-
return guardedBindingPrevious = checkedProps.value.
|
|
860
|
+
if (!(validationStatus.value == null || typeof validationStatus.value === "string")) return guardedBindingPrevious;
|
|
861
|
+
return guardedBindingPrevious = checkedProps.value.invalid || validationStatus.value === "error";
|
|
862
|
+
});
|
|
863
|
+
let guardedBinding2Previous;
|
|
864
|
+
const guardedBinding2 = computed(() => {
|
|
865
|
+
if (!(validationStatus.value == null || typeof validationStatus.value === "string")) return guardedBinding2Previous;
|
|
866
|
+
return guardedBinding2Previous = checkedProps.value.loading || validationStatus.value === "pending";
|
|
867
|
+
});
|
|
868
|
+
let guardedBinding3Previous;
|
|
869
|
+
const guardedBinding3 = computed(() => {
|
|
870
|
+
if (!(internalItems.value?.["0"] == null || typeof internalItems.value?.["0"] === "object" && internalItems.value?.["0"] !== null && !Array.isArray(internalItems.value?.["0"]))) return guardedBinding3Previous;
|
|
871
|
+
return guardedBinding3Previous = checkedProps.value.required && !(checkedProps.value.multiple && internalItems.value[0]);
|
|
872
|
+
});
|
|
873
|
+
let guardedBinding4Previous;
|
|
874
|
+
const guardedBinding4 = computed(() => {
|
|
875
|
+
if (!(submitted.value == null || typeof submitted.value === "string")) return guardedBinding4Previous;
|
|
876
|
+
return guardedBinding4Previous = submitted.value;
|
|
877
|
+
});
|
|
878
|
+
let guardedBinding5Previous;
|
|
879
|
+
const guardedBinding5 = computed(() => {
|
|
880
|
+
if (!((raw.value == null || typeof raw.value === "string") && (selected.value == null || typeof selected.value === "string"))) return guardedBinding5Previous;
|
|
881
|
+
return guardedBinding5Previous = checkedProps.value.disabled || checkedProps.value.readonly || !raw.value && (checkedProps.value.multiple || selected.value === null);
|
|
882
|
+
});
|
|
883
|
+
let guardedBinding6Previous;
|
|
884
|
+
const guardedBinding6 = computed(() => {
|
|
885
|
+
if (!(expanded.value == null || typeof expanded.value === "boolean")) return guardedBinding6Previous;
|
|
886
|
+
return guardedBinding6Previous = !expanded.value;
|
|
887
|
+
});
|
|
888
|
+
let guardedBinding7Previous;
|
|
889
|
+
const guardedBinding7 = computed(() => {
|
|
890
|
+
if (!(createIndex.value == null || Number.isInteger(createIndex.value))) return guardedBinding7Previous;
|
|
891
|
+
return guardedBinding7Previous = createIndex.value;
|
|
892
|
+
});
|
|
893
|
+
let guardedBinding8Previous;
|
|
894
|
+
const guardedBinding8 = computed(() => {
|
|
895
|
+
if (!(message.value == null || typeof message.value === "string")) return guardedBinding8Previous;
|
|
896
|
+
return guardedBinding8Previous = message.value;
|
|
897
|
+
});
|
|
898
|
+
let guardedBinding9Previous;
|
|
899
|
+
const guardedBinding9 = computed(() => {
|
|
900
|
+
if (!(statusText.value == null || typeof statusText.value === "string")) return guardedBinding9Previous;
|
|
901
|
+
return guardedBinding9Previous = statusText.value;
|
|
528
902
|
});
|
|
903
|
+
provide("html-next:ui-combobox:internalItems", internalItems);
|
|
904
|
+
provide("html-next:ui-combobox:raw", raw);
|
|
905
|
+
provide("html-next:ui-combobox:display", display);
|
|
906
|
+
provide("html-next:ui-combobox:selected", selected);
|
|
907
|
+
provide("html-next:ui-combobox:expanded", expanded);
|
|
908
|
+
provide("html-next:ui-combobox:rows", rows);
|
|
909
|
+
provide("html-next:ui-combobox:active", active);
|
|
910
|
+
provide("html-next:ui-combobox:helpOpen", helpOpen);
|
|
911
|
+
provide("html-next:ui-combobox:lookupError", lookupError);
|
|
912
|
+
provide("html-next:ui-combobox:validation", validation);
|
|
913
|
+
provide("html-next:ui-combobox:uid", uid);
|
|
914
|
+
provide("html-next:ui-combobox:submitted", submitted);
|
|
915
|
+
provide("html-next:ui-combobox:groups", groups);
|
|
916
|
+
provide("html-next:ui-combobox:creatable", creatable);
|
|
917
|
+
provide("html-next:ui-combobox:createIndex", createIndex);
|
|
918
|
+
provide("html-next:ui-combobox:message", message);
|
|
919
|
+
provide("html-next:ui-combobox:statusText", statusText);
|
|
920
|
+
provide("html-next:ui-combobox:validationStatus", validationStatus);
|
|
529
921
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
530
922
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "div")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-combobox> has an incompatible root."), {
|
|
531
923
|
name: "HtmlDiagnosticError",
|
|
@@ -722,7 +1114,7 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
722
1114
|
return items;
|
|
723
1115
|
}
|
|
724
1116
|
return (_ctx, _cache) => {
|
|
725
|
-
return openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-combobox" }, nativeAttrs(_ctx.$attrs), {
|
|
1117
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-combobox" }, nativeAttrs(_ctx.$attrs), {
|
|
726
1118
|
"data-allow-create": reflectedProp("allowCreate", "allow-create", checkedProps.value.allowCreate, void 0, false),
|
|
727
1119
|
"data-allow-free-text": reflectedProp("allowFreeText", "allow-free-text", checkedProps.value.allowFreeText, void 0, false),
|
|
728
1120
|
"data-clearable": reflectedProp("clearable", "clearable", checkedProps.value.clearable, void 0, false),
|
|
@@ -780,13 +1172,13 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
780
1172
|
autocomplete: "off",
|
|
781
1173
|
id: `${uid.value}-input`,
|
|
782
1174
|
"aria-controls": `${uid.value}-listbox`,
|
|
783
|
-
"aria-expanded":
|
|
784
|
-
"aria-invalid":
|
|
785
|
-
"aria-busy":
|
|
1175
|
+
"aria-expanded": guarded.value,
|
|
1176
|
+
"aria-invalid": guardedBinding.value,
|
|
1177
|
+
"aria-busy": guardedBinding2.value,
|
|
786
1178
|
placeholder: checkedProps.value.placeholder ?? void 0,
|
|
787
1179
|
disabled: checkedProps.value.disabled ?? void 0,
|
|
788
1180
|
readonly: checkedProps.value.readonly ?? void 0,
|
|
789
|
-
required:
|
|
1181
|
+
required: guardedBinding3.value,
|
|
790
1182
|
ref: "input"
|
|
791
1183
|
}, null, 8, _hoisted_7), [[unref(vBindControl), {
|
|
792
1184
|
tag: "input",
|
|
@@ -800,7 +1192,7 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
800
1192
|
key: 0,
|
|
801
1193
|
type: "hidden",
|
|
802
1194
|
name: checkedProps.value.name ?? void 0,
|
|
803
|
-
"^value":
|
|
1195
|
+
"^value": guardedBinding4.value,
|
|
804
1196
|
disabled: checkedProps.value.disabled ?? void 0
|
|
805
1197
|
}, null, 8, _hoisted_8)) : createCommentVNode("v-if", true),
|
|
806
1198
|
checkedProps.value.name && checkedProps.value.multiple ? (openBlock(), createBlock(unref(KeyedBoundary), { key: 1 }, {
|
|
@@ -820,7 +1212,7 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
820
1212
|
type: "button",
|
|
821
1213
|
"data-combobox-action": "clear",
|
|
822
1214
|
"aria-label": "Clear",
|
|
823
|
-
disabled:
|
|
1215
|
+
disabled: guardedBinding5.value
|
|
824
1216
|
}, [..._cache[0] || (_cache[0] = [createElementVNode("svg", {
|
|
825
1217
|
class: "affordance-icon",
|
|
826
1218
|
"aria-hidden": "true",
|
|
@@ -884,7 +1276,7 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
884
1276
|
}, 8, ["id", "for"])) : createCommentVNode("v-if", true),
|
|
885
1277
|
createElementVNode("div", {
|
|
886
1278
|
class: "popup",
|
|
887
|
-
hidden:
|
|
1279
|
+
hidden: guardedBinding6.value,
|
|
888
1280
|
ref: "popup"
|
|
889
1281
|
}, [createElementVNode("div", {
|
|
890
1282
|
role: "listbox",
|
|
@@ -942,9 +1334,9 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
942
1334
|
"aria-selected": "false",
|
|
943
1335
|
"data-multiple": checkedProps.value.multiple ? "" : void 0,
|
|
944
1336
|
id: `${uid.value}-option-${createIndex.value}`,
|
|
945
|
-
"data-index":
|
|
1337
|
+
"data-index": guardedBinding7.value
|
|
946
1338
|
}, toDisplayString(`Create “${raw.value}”`), 11, _hoisted_24)) : createCommentVNode("v-if", true),
|
|
947
|
-
message.value ? (openBlock(), createElementBlock("div", _hoisted_25, toDisplayString(
|
|
1339
|
+
message.value ? (openBlock(), createElementBlock("div", _hoisted_25, toDisplayString(guardedBinding8.value), 1)) : createCommentVNode("v-if", true),
|
|
948
1340
|
!checkedProps.value.loading && !rows.value[0] && !creatable.value && !lookupError.value ? (openBlock(), createElementBlock("div", _hoisted_26, [renderSlot(_ctx.$slots, "empty", {}, () => [_cache[3] || (_cache[3] = createTextVNode("No suggestions.", -1))], true)])) : createCommentVNode("v-if", true)
|
|
949
1341
|
], 8, _hoisted_14), renderSlot(_ctx.$slots, "footer", {}, void 0, true)], 8, _hoisted_13),
|
|
950
1342
|
createElementVNode("div", {
|
|
@@ -954,11 +1346,14 @@ var UiCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
954
1346
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(validation.value.issues, (issue, indexLoop3) => {
|
|
955
1347
|
return openBlock(), createElementBlock("div", { key: indexLoop3 }, toDisplayString(issue.message), 1);
|
|
956
1348
|
}), 128))], 8, _hoisted_27),
|
|
957
|
-
createElementVNode("div", _hoisted_28, toDisplayString(
|
|
1349
|
+
createElementVNode("div", _hoisted_28, toDisplayString(guardedBinding9.value), 1),
|
|
958
1350
|
createElementVNode("div", _hoisted_29, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 512)
|
|
959
|
-
], 16, _hoisted_1)
|
|
1351
|
+
], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
1352
|
+
contract: propValidityContract,
|
|
1353
|
+
values: { ...checkedProps.value }
|
|
1354
|
+
}]]);
|
|
960
1355
|
};
|
|
961
1356
|
}
|
|
962
|
-
}), [["__scopeId", "data-v-
|
|
1357
|
+
}), [["__scopeId", "data-v-3b711a7b"]]);
|
|
963
1358
|
//#endregion
|
|
964
1359
|
export { UiCombobox_default as t };
|