@threadlabs/looma 0.28.13 → 0.28.15
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 +1 -1
- package/components/ui-combobox/ui-combobox.html +1 -1
- package/components/ui-disclosure/ui-disclosure.html +4 -4
- package/components/ui-editable/ui-editable.html +3 -3
- package/components/ui-menu/ui-menu.html +1 -1
- package/components/ui-popover/ui-popover.html +1 -1
- package/components/ui-sidebar/ui-sidebar.html +4 -4
- package/components/ui-switcher/ui-switcher.html +1 -1
- package/components/ui-tree-item/ui-tree-item.html +2 -2
- package/dist/index.js +1 -1
- package/editor/image-delivery.d.ts +10 -1
- package/package.json +3 -3
- 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 +2 -2
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-block-actions.css +1 -1
- package/styles/ui-editor-chip-editor.css +1 -1
- package/styles/ui-editor-code-language.css +1 -1
- package/styles/ui-editor-image-toolbar.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-link-card.css +1 -1
- package/styles/ui-editor-link-form.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-surface.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-image.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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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-swatch.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 +2 -2
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +2 -2
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +2 -2
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +3 -3
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +2 -2
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +3 -3
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +2 -2
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +2 -2
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +2 -2
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +2 -2
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +2 -2
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +2 -2
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +2 -2
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +2 -2
- 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/UiEditorBlockActions.d.ts +1 -1
- package/vanilla/UiEditorBlockActions.js +2 -2
- package/vanilla/UiEditorChipEditor.d.ts +1 -1
- package/vanilla/UiEditorChipEditor.js +2 -2
- package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
- package/vanilla/UiEditorCodeLanguage.js +2 -2
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +2 -2
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +2 -2
- package/vanilla/UiEditorLinkCard.d.ts +1 -1
- package/vanilla/UiEditorLinkCard.js +2 -2
- package/vanilla/UiEditorLinkForm.d.ts +1 -1
- package/vanilla/UiEditorLinkForm.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 +3 -3
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +2 -2
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +2 -2
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +3 -3
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +2 -2
- 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 +2 -2
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +2 -2
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +2 -2
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +2 -2
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +2 -2
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +3 -3
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +2 -2
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +2 -2
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +2 -2
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +3 -3
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +2 -2
- 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 +2 -2
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +4 -4
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +2 -2
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +3 -3
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +2 -2
- 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 +2 -2
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +2 -2
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +2 -2
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +2 -2
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +2 -2
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +2 -2
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +2 -2
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +2 -2
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +2 -2
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +2 -2
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +2 -2
- package/vanilla/UiSwatch.d.ts +1 -1
- package/vanilla/UiSwatch.js +2 -2
- 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 +2 -2
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +2 -2
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +3 -3
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +2 -2
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +2 -2
- 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 +2 -2
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +3 -3
- package/vue/UiActionBar.vue +23 -15
- package/vue/UiAffordanceScope.vue +11 -9
- package/vue/UiAvatar.vue +34 -27
- package/vue/UiAvatarGroup.vue +22 -17
- package/vue/UiBadge.vue +78 -69
- package/vue/UiBreadcrumbItem.vue +17 -14
- package/vue/UiBreadcrumbs.vue +9 -7
- package/vue/UiButton.vue +150 -138
- package/vue/UiCallout.vue +68 -43
- package/vue/UiCard.vue +52 -44
- package/vue/UiCheckbox.vue +48 -40
- package/vue/UiCluster.vue +35 -33
- package/vue/UiCombobox.vue +158 -107
- package/vue/UiContainer.vue +16 -14
- package/vue/UiContextMenu.vue +24 -13
- package/vue/UiCover.vue +10 -8
- package/vue/UiDescriptionItem.vue +11 -9
- package/vue/UiDescriptionList.vue +20 -18
- package/vue/UiDialog.vue +41 -37
- package/vue/UiDisclosure.vue +65 -51
- package/vue/UiEditable.vue +34 -33
- package/vue/UiEditorBlockActions.vue +4 -3
- package/vue/UiEditorChipEditor.vue +4 -3
- package/vue/UiEditorCodeLanguage.vue +5 -4
- package/vue/UiEditorImageToolbar.vue +5 -4
- package/vue/UiEditorInsertTableGrid.vue +19 -18
- package/vue/UiEditorLinkCard.vue +7 -6
- package/vue/UiEditorLinkForm.vue +15 -14
- package/vue/UiEditorMentionMenu.vue +52 -37
- package/vue/UiEditorMentionMenuItem.vue +30 -20
- package/vue/UiEditorSlashMenu.vue +49 -36
- package/vue/UiEditorSlashMenuGroup.vue +16 -10
- package/vue/UiEditorSlashMenuItem.vue +36 -26
- package/vue/UiEditorSurface.vue +8 -6
- package/vue/UiEditorTableContextMenu.vue +26 -25
- package/vue/UiEditorTableOverlay.vue +56 -51
- package/vue/UiEditorTableToolbar.vue +37 -36
- package/vue/UiEditorToolbar.vue +24 -20
- package/vue/UiFloatingActionButton.vue +17 -15
- package/vue/UiFormField.vue +27 -22
- package/vue/UiGrid.vue +17 -15
- package/vue/UiIcon.vue +7 -6
- package/vue/UiIconButton.vue +75 -70
- package/vue/UiImage.vue +61 -46
- package/vue/UiInput.vue +28 -28
- package/vue/UiInputGroup.vue +48 -43
- package/vue/UiList.vue +25 -21
- package/vue/UiListItem.vue +54 -44
- package/vue/UiListbox.vue +29 -22
- package/vue/UiMenu.vue +25 -23
- package/vue/UiMenuGroup.vue +11 -7
- package/vue/UiMenuItem.vue +52 -43
- package/vue/UiMeter.vue +42 -41
- package/vue/UiNavItem.vue +60 -47
- package/vue/UiPageHeader.vue +27 -20
- package/vue/UiPopover.vue +21 -19
- package/vue/UiRadio.vue +32 -28
- package/vue/UiRadioGroup.vue +24 -19
- package/vue/UiReel.vue +24 -22
- package/vue/UiScrollArea.vue +30 -24
- package/vue/UiSearchResultRow.vue +41 -26
- package/vue/UiSearchShell.vue +37 -29
- package/vue/UiSection.vue +31 -24
- package/vue/UiSelect.vue +23 -21
- package/vue/UiSeparator.vue +14 -13
- package/vue/UiSidebar.vue +48 -40
- package/vue/UiSpinner.vue +14 -13
- package/vue/UiStack.vue +26 -24
- package/vue/UiStatusMessage.vue +26 -21
- package/vue/UiSwatch.vue +13 -12
- package/vue/UiSwitch.vue +37 -33
- package/vue/UiSwitcher.vue +27 -22
- package/vue/UiTable.vue +23 -19
- package/vue/UiTabs.vue +48 -33
- package/vue/UiText.vue +173 -151
- package/vue/UiTextarea.vue +27 -27
- package/vue/UiToast.vue +17 -15
- package/vue/UiToastRegion.vue +36 -31
- package/vue/UiTooltip.vue +40 -34
- package/vue/UiTopBar.vue +17 -13
- package/vue/UiTree.vue +17 -15
- package/vue/UiTreeItem.vue +202 -133
- package/vue/chunks/UiActionBar.js +21 -6
- package/vue/chunks/UiAffordanceScope.js +8 -6
- package/vue/chunks/UiAvatar.js +30 -20
- package/vue/chunks/UiAvatarGroup.js +16 -13
- package/vue/chunks/UiBadge.js +19 -13
- package/vue/chunks/UiBreadcrumbItem.js +13 -7
- package/vue/chunks/UiBreadcrumbs.js +9 -4
- package/vue/chunks/UiButton.js +158 -124
- package/vue/chunks/UiCallout.js +105 -37
- package/vue/chunks/UiCard.js +50 -42
- package/vue/chunks/UiCheckbox.js +32 -22
- package/vue/chunks/UiCluster.js +18 -16
- package/vue/chunks/UiCombobox.js +130 -73
- package/vue/chunks/UiContainer.js +10 -8
- package/vue/chunks/UiContextMenu.js +7 -4
- package/vue/chunks/UiCover.js +7 -5
- package/vue/chunks/UiDescriptionItem.js +9 -3
- package/vue/chunks/UiDescriptionList.js +10 -8
- package/vue/chunks/UiDialog.js +26 -19
- package/vue/chunks/UiDisclosure.js +43 -25
- package/vue/chunks/UiEditable.js +25 -24
- package/vue/chunks/UiEditorBlockActions.js +4 -3
- package/vue/chunks/UiEditorChipEditor.js +4 -3
- package/vue/chunks/UiEditorCodeLanguage.js +5 -4
- package/vue/chunks/UiEditorImageToolbar.js +7 -6
- package/vue/chunks/UiEditorInsertTableGrid.js +10 -9
- package/vue/chunks/UiEditorLinkCard.js +11 -10
- package/vue/chunks/UiEditorLinkForm.js +26 -25
- package/vue/chunks/UiEditorMentionMenu.js +41 -24
- package/vue/chunks/UiEditorMentionMenuItem.js +23 -11
- package/vue/chunks/UiEditorSlashMenu.js +41 -20
- package/vue/chunks/UiEditorSlashMenuGroup.js +16 -5
- package/vue/chunks/UiEditorSlashMenuItem.js +28 -14
- package/vue/chunks/UiEditorSurface.js +6 -4
- package/vue/chunks/UiEditorTableContextMenu.js +14 -13
- package/vue/chunks/UiEditorTableOverlay.js +6 -5
- package/vue/chunks/UiEditorTableToolbar.js +14 -13
- package/vue/chunks/UiEditorToolbar.js +8 -5
- package/vue/chunks/UiFloatingActionButton.js +11 -9
- package/vue/chunks/UiFormField.js +30 -16
- package/vue/chunks/UiGrid.js +10 -8
- package/vue/chunks/UiIcon.js +6 -3
- package/vue/chunks/UiIconButton.js +33 -26
- package/vue/chunks/UiImage.js +31 -22
- package/vue/chunks/UiInput.js +17 -16
- package/vue/chunks/UiInputGroup.js +30 -16
- package/vue/chunks/UiList.js +24 -20
- package/vue/chunks/UiListItem.js +39 -22
- package/vue/chunks/UiListbox.js +35 -25
- package/vue/chunks/UiMenu.js +22 -17
- package/vue/chunks/UiMenuGroup.js +7 -4
- package/vue/chunks/UiMenuItem.js +57 -38
- package/vue/chunks/UiMeter.js +22 -21
- package/vue/chunks/UiNavItem.js +78 -42
- package/vue/chunks/UiPageHeader.js +30 -10
- package/vue/chunks/UiPopover.js +16 -11
- package/vue/chunks/UiRadio.js +26 -16
- package/vue/chunks/UiRadioGroup.js +24 -19
- package/vue/chunks/UiReel.js +11 -9
- package/vue/chunks/UiScrollArea.js +16 -13
- package/vue/chunks/UiSearchResultRow.js +39 -19
- package/vue/chunks/UiSearchShell.js +36 -18
- package/vue/chunks/UiSection.js +31 -13
- package/vue/chunks/UiSelect.js +14 -12
- package/vue/chunks/UiSeparator.js +11 -10
- package/vue/chunks/UiSidebar.js +33 -23
- package/vue/chunks/UiSpinner.js +7 -6
- package/vue/chunks/UiStack.js +14 -12
- package/vue/chunks/UiStatusMessage.js +23 -11
- package/vue/chunks/UiSwatch.js +5 -4
- package/vue/chunks/UiSwitch.js +26 -16
- package/vue/chunks/UiSwitcher.js +13 -11
- package/vue/chunks/UiTable.js +9 -7
- package/vue/chunks/UiTabs.js +23 -18
- package/vue/chunks/UiText.js +277 -255
- package/vue/chunks/UiTextarea.js +21 -20
- package/vue/chunks/UiToast.js +13 -7
- package/vue/chunks/UiToastRegion.js +15 -8
- package/vue/chunks/UiTooltip.js +27 -19
- package/vue/chunks/UiTopBar.js +21 -6
- package/vue/chunks/UiTree.js +18 -16
- package/vue/chunks/UiTreeItem.js +82 -45
- package/vue/chunks/_plugin-vue_export-helper.js +17 -4
- package/vue/components.css +1507 -1479
- package/vue/editor/LoomaEditor.d.ts +10 -1
- package/vue/editor/index.d.ts +1 -1
- package/vue/editor/index.js +25 -11
- package/vue/host.ts +26 -6
package/vue/UiCombobox.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.52 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -983,7 +983,7 @@ provide('html-next:ui-combobox:statusText', statusText)
|
|
|
983
983
|
provide('html-next:ui-combobox:validationStatus', validationStatus)
|
|
984
984
|
checkHydratedRoot('div', 'ui-combobox')
|
|
985
985
|
|
|
986
|
-
/** The values the styles' :host
|
|
986
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
987
987
|
const hostState = computed(() =>
|
|
988
988
|
[
|
|
989
989
|
checkedProps.value.size && 'size',
|
|
@@ -1601,49 +1601,53 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1601
1601
|
<div
|
|
1602
1602
|
class="ui-combobox"
|
|
1603
1603
|
v-bind="nativeAttrs($attrs)"
|
|
1604
|
+
data-hn
|
|
1605
|
+
data-hn-ui-combobox
|
|
1604
1606
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
1605
|
-
:data-allow-create="reflectedProp('allowCreate', 'allow-create', checkedProps.allowCreate, undefined, false)"
|
|
1606
|
-
:data-allow-free-text="reflectedProp('allowFreeText', 'allow-free-text', checkedProps.allowFreeText, undefined, false)"
|
|
1607
|
-
:data-auto-highlight="reflectedProp('autoHighlight', 'auto-highlight', checkedProps.autoHighlight, undefined, false)"
|
|
1608
|
-
:data-clear-query-on-blur="reflectedProp(
|
|
1607
|
+
:data-ui-combobox-prop-allow-create="reflectedProp('allowCreate', 'allow-create', checkedProps.allowCreate, undefined, false)"
|
|
1608
|
+
:data-ui-combobox-prop-allow-free-text="reflectedProp('allowFreeText', 'allow-free-text', checkedProps.allowFreeText, undefined, false)"
|
|
1609
|
+
:data-ui-combobox-prop-auto-highlight="reflectedProp('autoHighlight', 'auto-highlight', checkedProps.autoHighlight, undefined, false)"
|
|
1610
|
+
:data-ui-combobox-prop-clear-query-on-blur="reflectedProp(
|
|
1609
1611
|
'clearQueryOnBlur',
|
|
1610
1612
|
'clear-query-on-blur',
|
|
1611
1613
|
checkedProps.clearQueryOnBlur,
|
|
1612
1614
|
undefined,
|
|
1613
1615
|
false,
|
|
1614
1616
|
)"
|
|
1615
|
-
:data-clearable="reflectedProp('clearable', 'clearable', checkedProps.clearable, undefined, false)"
|
|
1616
|
-
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
1617
|
-
:data-disclosure="reflectedProp('disclosure', 'disclosure', checkedProps.disclosure, undefined, false)"
|
|
1618
|
-
:data-filter="reflectedProp('filter', 'filter', checkedProps.filter, undefined, false)"
|
|
1619
|
-
:data-help="reflectedProp('help', 'help', checkedProps.help, undefined, false)"
|
|
1620
|
-
:data-invalid="reflectedProp('invalid', 'invalid', checkedProps.invalid, undefined, false)"
|
|
1621
|
-
:data-items="reflectedProp('items', 'items', checkedProps.items, undefined, false)"
|
|
1622
|
-
:data-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
1623
|
-
:data-label-visibility="reflectedProp('labelVisibility', 'label-visibility', checkedProps.labelVisibility, undefined, false)"
|
|
1624
|
-
:data-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
|
|
1625
|
-
:data-multiple="reflectedProp('multiple', 'multiple', checkedProps.multiple, undefined, false)"
|
|
1626
|
-
:data-name="reflectedProp('name', 'name', checkedProps.name, undefined, false)"
|
|
1627
|
-
:data-open-on-focus="reflectedProp('openOnFocus', 'open-on-focus', checkedProps.openOnFocus, undefined, false)"
|
|
1628
|
-
:data-placeholder="reflectedProp('placeholder', 'placeholder', checkedProps.placeholder, undefined, false)"
|
|
1629
|
-
:data-query="reflectedProp('query', 'query', checkedProps.query, undefined, false)"
|
|
1630
|
-
:data-readonly="reflectedProp('readonly', 'readonly', checkedProps.readonly, undefined, false)"
|
|
1631
|
-
:data-required="reflectedProp('required', 'required', checkedProps.required, undefined, false)"
|
|
1632
|
-
:data-select-on-tab="reflectedProp('selectOnTab', 'select-on-tab', checkedProps.selectOnTab, undefined, false)"
|
|
1633
|
-
:data-selected-values="reflectedProp('selectedValues', 'selected-values', checkedProps.selectedValues, undefined, false)"
|
|
1634
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
1635
|
-
:data-token-separators="reflectedProp('tokenSeparators', 'token-separators', checkedProps.tokenSeparators, undefined, false)"
|
|
1636
|
-
:data-value="reflectedProp('value', 'value', checkedProps.value, undefined, false)"
|
|
1617
|
+
:data-ui-combobox-prop-clearable="reflectedProp('clearable', 'clearable', checkedProps.clearable, undefined, false)"
|
|
1618
|
+
:data-ui-combobox-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
1619
|
+
:data-ui-combobox-prop-disclosure="reflectedProp('disclosure', 'disclosure', checkedProps.disclosure, undefined, false)"
|
|
1620
|
+
:data-ui-combobox-prop-filter="reflectedProp('filter', 'filter', checkedProps.filter, undefined, false)"
|
|
1621
|
+
:data-ui-combobox-prop-help="reflectedProp('help', 'help', checkedProps.help, undefined, false)"
|
|
1622
|
+
:data-ui-combobox-prop-invalid="reflectedProp('invalid', 'invalid', checkedProps.invalid, undefined, false)"
|
|
1623
|
+
:data-ui-combobox-prop-items="reflectedProp('items', 'items', checkedProps.items, undefined, false)"
|
|
1624
|
+
:data-ui-combobox-prop-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
1625
|
+
:data-ui-combobox-prop-label-visibility="reflectedProp('labelVisibility', 'label-visibility', checkedProps.labelVisibility, undefined, false)"
|
|
1626
|
+
:data-ui-combobox-prop-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
|
|
1627
|
+
:data-ui-combobox-prop-multiple="reflectedProp('multiple', 'multiple', checkedProps.multiple, undefined, false)"
|
|
1628
|
+
:data-ui-combobox-prop-name="reflectedProp('name', 'name', checkedProps.name, undefined, false)"
|
|
1629
|
+
:data-ui-combobox-prop-open-on-focus="reflectedProp('openOnFocus', 'open-on-focus', checkedProps.openOnFocus, undefined, false)"
|
|
1630
|
+
:data-ui-combobox-prop-placeholder="reflectedProp('placeholder', 'placeholder', checkedProps.placeholder, undefined, false)"
|
|
1631
|
+
:data-ui-combobox-prop-query="reflectedProp('query', 'query', checkedProps.query, undefined, false)"
|
|
1632
|
+
:data-ui-combobox-prop-readonly="reflectedProp('readonly', 'readonly', checkedProps.readonly, undefined, false)"
|
|
1633
|
+
:data-ui-combobox-prop-required="reflectedProp('required', 'required', checkedProps.required, undefined, false)"
|
|
1634
|
+
:data-ui-combobox-prop-select-on-tab="reflectedProp('selectOnTab', 'select-on-tab', checkedProps.selectOnTab, undefined, false)"
|
|
1635
|
+
:data-ui-combobox-prop-selected-values="reflectedProp('selectedValues', 'selected-values', checkedProps.selectedValues, undefined, false)"
|
|
1636
|
+
:data-ui-combobox-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
1637
|
+
:data-ui-combobox-prop-token-separators="reflectedProp('tokenSeparators', 'token-separators', checkedProps.tokenSeparators, undefined, false)"
|
|
1638
|
+
:data-ui-combobox-prop-value="reflectedProp('value', 'value', checkedProps.value, undefined, false)"
|
|
1637
1639
|
:data-ui-combobox-state="hostState || undefined"
|
|
1638
1640
|
ref="root"
|
|
1639
1641
|
>
|
|
1640
|
-
<label
|
|
1641
|
-
|
|
1642
|
-
|
|
1642
|
+
<label
|
|
1643
|
+
data-hn-ui-combobox
|
|
1644
|
+
:for="guarded"
|
|
1645
|
+
:class="{ 'sr-only': checkedProps.labelVisibility === 'sr-only' }"
|
|
1646
|
+
>{{ checkedProps.label }}<template v-if="checkedProps.required">
|
|
1643
1647
|
*</template></label>
|
|
1644
|
-
<div class="control">
|
|
1645
|
-
<div class="field" ref="fieldElement">
|
|
1646
|
-
<div class="entry">
|
|
1648
|
+
<div class="control" data-hn-ui-combobox>
|
|
1649
|
+
<div class="field" data-hn-ui-combobox ref="fieldElement">
|
|
1650
|
+
<div class="entry" data-hn-ui-combobox>
|
|
1647
1651
|
<slot name="start" />
|
|
1648
1652
|
<template v-if="checkedProps.multiple"><KeyedBoundary><button
|
|
1649
1653
|
v-for="(item, index) in uniqueKeys(internalItems, (item, index, loop) => item.id)"
|
|
@@ -1651,6 +1655,7 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1651
1655
|
class="item"
|
|
1652
1656
|
type="button"
|
|
1653
1657
|
tabindex="-1"
|
|
1658
|
+
data-hn-ui-combobox
|
|
1654
1659
|
:data-index="index"
|
|
1655
1660
|
:disabled="checkedProps.disabled || checkedProps.readonly || item.disabled"
|
|
1656
1661
|
:aria-label="concat(item.label, ', press Delete or Backspace to remove')"
|
|
@@ -1663,6 +1668,7 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1663
1668
|
role="combobox"
|
|
1664
1669
|
aria-autocomplete="list"
|
|
1665
1670
|
autocomplete="off"
|
|
1671
|
+
data-hn-ui-combobox
|
|
1666
1672
|
v-bind-control="{ tag: 'input', name: 'value', value: display, nativeProperty: true, defaultValue: '' }"
|
|
1667
1673
|
:id="guardedBinding"
|
|
1668
1674
|
:aria-controls="guardedBinding2"
|
|
@@ -1679,6 +1685,7 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1679
1685
|
<input
|
|
1680
1686
|
v-if="checkedProps.name && !checkedProps.multiple"
|
|
1681
1687
|
type="hidden"
|
|
1688
|
+
data-hn-ui-combobox
|
|
1682
1689
|
:name="checkedProps.name ?? undefined"
|
|
1683
1690
|
:value.attr="submitted"
|
|
1684
1691
|
:disabled="checkedProps.disabled ?? undefined"
|
|
@@ -1687,6 +1694,7 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1687
1694
|
v-for="item in uniqueKeys(internalItems, (item, index, loop) => item.id)"
|
|
1688
1695
|
:key="item.id"
|
|
1689
1696
|
type="hidden"
|
|
1697
|
+
data-hn-ui-combobox
|
|
1690
1698
|
:name="checkedProps.name ?? undefined"
|
|
1691
1699
|
:value.attr="item.value"
|
|
1692
1700
|
:disabled="checkedProps.disabled ?? undefined"
|
|
@@ -1696,6 +1704,7 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1696
1704
|
type="button"
|
|
1697
1705
|
data-combobox-action="clear"
|
|
1698
1706
|
aria-label="Clear"
|
|
1707
|
+
data-hn-ui-combobox
|
|
1699
1708
|
:disabled="guardedBinding4"
|
|
1700
1709
|
>
|
|
1701
1710
|
<svg
|
|
@@ -1706,8 +1715,9 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1706
1715
|
stroke="currentColor"
|
|
1707
1716
|
stroke-width="2"
|
|
1708
1717
|
stroke-linecap="round"
|
|
1718
|
+
data-hn-ui-combobox
|
|
1709
1719
|
>
|
|
1710
|
-
<path d="M7 7l10 10M17 7 7 17"></path>
|
|
1720
|
+
<path d="M7 7l10 10M17 7 7 17" data-hn-ui-combobox></path>
|
|
1711
1721
|
</svg>
|
|
1712
1722
|
</button>
|
|
1713
1723
|
<button
|
|
@@ -1716,6 +1726,7 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1716
1726
|
data-combobox-action="disclosure"
|
|
1717
1727
|
tabindex="-1"
|
|
1718
1728
|
aria-label="Show suggestions"
|
|
1729
|
+
data-hn-ui-combobox
|
|
1719
1730
|
:aria-controls="guardedBinding5"
|
|
1720
1731
|
:disabled="checkedProps.disabled || checkedProps.readonly"
|
|
1721
1732
|
>
|
|
@@ -1728,8 +1739,9 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1728
1739
|
stroke-width="2.25"
|
|
1729
1740
|
stroke-linecap="round"
|
|
1730
1741
|
stroke-linejoin="round"
|
|
1742
|
+
data-hn-ui-combobox
|
|
1731
1743
|
>
|
|
1732
|
-
<path d="m6 9 6 6 6-6"></path>
|
|
1744
|
+
<path d="m6 9 6 6 6-6" data-hn-ui-combobox></path>
|
|
1733
1745
|
</svg>
|
|
1734
1746
|
</button>
|
|
1735
1747
|
</div>
|
|
@@ -1738,6 +1750,7 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1738
1750
|
class="help"
|
|
1739
1751
|
type="button"
|
|
1740
1752
|
aria-label="Help"
|
|
1753
|
+
data-hn-ui-combobox
|
|
1741
1754
|
:id="guardedBinding6"
|
|
1742
1755
|
:disabled="checkedProps.disabled ?? undefined"
|
|
1743
1756
|
>
|
|
@@ -1750,10 +1763,11 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1750
1763
|
stroke-width="2"
|
|
1751
1764
|
stroke-linecap="round"
|
|
1752
1765
|
stroke-linejoin="round"
|
|
1766
|
+
data-hn-ui-combobox
|
|
1753
1767
|
>
|
|
1754
|
-
<circle cx="12" cy="12" r="10"></circle>
|
|
1755
|
-
<path d="M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3"></path>
|
|
1756
|
-
<path d="M12 17h.01"></path>
|
|
1768
|
+
<circle cx="12" cy="12" r="10" data-hn-ui-combobox></circle>
|
|
1769
|
+
<path d="M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3" data-hn-ui-combobox></path>
|
|
1770
|
+
<path d="M12 17h.01" data-hn-ui-combobox></path>
|
|
1757
1771
|
</svg>
|
|
1758
1772
|
</button>
|
|
1759
1773
|
</div>
|
|
@@ -1764,9 +1778,10 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1764
1778
|
:id="guardedBinding7"
|
|
1765
1779
|
:for="guardedBinding8"
|
|
1766
1780
|
>{{ checkedProps.help }}</UiTooltip>
|
|
1767
|
-
<div class="popup" :hidden="!expanded" ref="popupElement">
|
|
1781
|
+
<div class="popup" data-hn-ui-combobox :hidden="!expanded" ref="popupElement">
|
|
1768
1782
|
<div
|
|
1769
1783
|
role="listbox"
|
|
1784
|
+
data-hn-ui-combobox
|
|
1770
1785
|
:id="guardedBinding9"
|
|
1771
1786
|
:aria-label="guardedBinding10"
|
|
1772
1787
|
:aria-busy="checkedProps.loading ?? undefined"
|
|
@@ -1775,16 +1790,18 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1775
1790
|
<KeyedBoundary><div
|
|
1776
1791
|
v-for="group in uniqueKeys(groups, (group, indexLoop, loop) => group.name)"
|
|
1777
1792
|
:key="group.name"
|
|
1793
|
+
data-hn-ui-combobox
|
|
1778
1794
|
:role="group.role"
|
|
1779
1795
|
:aria-label="group.label ?? undefined"
|
|
1780
1796
|
>
|
|
1781
|
-
<div v-if="group.name" class="group">{{ group.name }}</div>
|
|
1797
|
+
<div v-if="group.name" class="group" data-hn-ui-combobox>{{ group.name }}</div>
|
|
1782
1798
|
<KeyedBoundary><div
|
|
1783
1799
|
v-for="row in uniqueKeys(group.rows, (row, indexLoop2, loop) => row.id)"
|
|
1784
1800
|
:key="row.id"
|
|
1785
1801
|
class="option"
|
|
1786
1802
|
role="option"
|
|
1787
1803
|
data-ui-choice-option=""
|
|
1804
|
+
data-hn-ui-combobox
|
|
1788
1805
|
:data-multiple="checkedProps.multiple ? '' : undefined"
|
|
1789
1806
|
:id="concat(uid, '-option-', row.index)"
|
|
1790
1807
|
:aria-selected="row.selected"
|
|
@@ -1794,25 +1811,32 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1794
1811
|
:aria-describedby="row.detail ?? undefined"
|
|
1795
1812
|
:class="{ active: row.index === active }"
|
|
1796
1813
|
>
|
|
1797
|
-
<slot :name="concat('option-', row.id)"><span
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1814
|
+
<slot :name="concat('option-', row.id)"><span
|
|
1815
|
+
v-if="row.detail"
|
|
1816
|
+
class="detail"
|
|
1817
|
+
data-hn-ui-combobox
|
|
1818
|
+
><span class="line" data-hn-ui-combobox><span
|
|
1819
|
+
class="primary"
|
|
1820
|
+
data-hn-ui-combobox
|
|
1821
|
+
:id="concat(uid, '-option-', row.index, '-label')"
|
|
1822
|
+
>{{ row.label }}</span>
|
|
1802
1823
|
<UiBadge
|
|
1803
1824
|
v-if="row.tag"
|
|
1804
1825
|
class="ui-badge"
|
|
1805
1826
|
:tone="row.tag?.tone"
|
|
1806
1827
|
:style="{ '--ui-badge-color': row.tag?.color ?? undefined }"
|
|
1807
|
-
><span :id="concat(uid, '-option-', row.index, '-tag')">{{
|
|
1828
|
+
><span data-hn-ui-combobox :id="concat(uid, '-option-', row.index, '-tag')">{{
|
|
1808
1829
|
row.tag?.label
|
|
1809
1830
|
}}</span></UiBadge></span>
|
|
1810
1831
|
<span
|
|
1811
1832
|
v-if="row.description"
|
|
1812
1833
|
class="description"
|
|
1834
|
+
data-hn-ui-combobox
|
|
1813
1835
|
:id="concat(uid, '-option-', row.index, '-description')"
|
|
1814
1836
|
>{{ row.description }}</span></span>
|
|
1815
|
-
<span v-if="!row.detail" class="primary">{{
|
|
1837
|
+
<span v-if="!row.detail" class="primary" data-hn-ui-combobox>{{
|
|
1838
|
+
row.label
|
|
1839
|
+
}}</span></slot>
|
|
1816
1840
|
</div></KeyedBoundary>
|
|
1817
1841
|
</div></KeyedBoundary>
|
|
1818
1842
|
<div
|
|
@@ -1821,6 +1845,7 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1821
1845
|
role="option"
|
|
1822
1846
|
data-ui-choice-option=""
|
|
1823
1847
|
aria-selected="false"
|
|
1848
|
+
data-hn-ui-combobox
|
|
1824
1849
|
:data-multiple="checkedProps.multiple ? '' : undefined"
|
|
1825
1850
|
:id="guardedBinding12"
|
|
1826
1851
|
:data-index="createIndex"
|
|
@@ -1828,23 +1853,39 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1828
1853
|
>
|
|
1829
1854
|
{{ guardedBinding13 }}
|
|
1830
1855
|
</div>
|
|
1831
|
-
<div v-if="message" class="message">{{ message }}</div>
|
|
1856
|
+
<div v-if="message" class="message" data-hn-ui-combobox>{{ message }}</div>
|
|
1832
1857
|
<div
|
|
1833
1858
|
v-if="!checkedProps.loading && !(rows[0]) && !creatable && !lookupError"
|
|
1834
1859
|
class="message"
|
|
1860
|
+
data-hn-ui-combobox
|
|
1835
1861
|
>
|
|
1836
1862
|
<slot name="empty">No suggestions.</slot>
|
|
1837
1863
|
</div>
|
|
1838
1864
|
</div>
|
|
1839
1865
|
<slot name="footer" />
|
|
1840
1866
|
</div>
|
|
1841
|
-
<div
|
|
1842
|
-
|
|
1867
|
+
<div
|
|
1868
|
+
class="message"
|
|
1869
|
+
data-hn-ui-combobox
|
|
1870
|
+
:id="guardedBinding14"
|
|
1871
|
+
:hidden="!validation.issues.length"
|
|
1872
|
+
>
|
|
1873
|
+
<div v-for="(issue, indexLoop3) in validation.issues" :key="indexLoop3" data-hn-ui-combobox>
|
|
1843
1874
|
{{ issue.message }}
|
|
1844
1875
|
</div>
|
|
1845
1876
|
</div>
|
|
1846
|
-
<div class="sr-only" role="status" aria-live="polite" aria-atomic="true"
|
|
1847
|
-
|
|
1877
|
+
<div class="sr-only" role="status" aria-live="polite" aria-atomic="true" data-hn-ui-combobox>
|
|
1878
|
+
{{ statusText }}
|
|
1879
|
+
</div>
|
|
1880
|
+
<div
|
|
1881
|
+
class="authored-options"
|
|
1882
|
+
hidden=""
|
|
1883
|
+
aria-hidden="true"
|
|
1884
|
+
data-hn-ui-combobox
|
|
1885
|
+
ref="optionsElement"
|
|
1886
|
+
>
|
|
1887
|
+
<slot />
|
|
1888
|
+
</div>
|
|
1848
1889
|
</div>
|
|
1849
1890
|
</template>
|
|
1850
1891
|
|
|
@@ -1926,8 +1967,8 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1926
1967
|
|
|
1927
1968
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
1928
1969
|
|
|
1929
|
-
@scope (.ui-combobox) to (
|
|
1930
|
-
:scope:where(
|
|
1970
|
+
@scope (.ui-combobox) to ([data-hn]) {
|
|
1971
|
+
:global(:scope:where([data-hn-ui-combobox])) {
|
|
1931
1972
|
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
1932
1973
|
--_ui-combobox-label-text: var(--ui-combobox-label-text);
|
|
1933
1974
|
--_ui-combobox-label-font-size: var(--ui-combobox-label-font-size);
|
|
@@ -1953,19 +1994,19 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1953
1994
|
color: var(--ui-text-primary);
|
|
1954
1995
|
font: inherit;
|
|
1955
1996
|
}
|
|
1956
|
-
label {
|
|
1997
|
+
:global(label:where([data-hn-ui-combobox])) {
|
|
1957
1998
|
color: var(--_ui-combobox-label-text, var(--ui-text-primary));
|
|
1958
1999
|
font-size: var(--_ui-combobox-label-font-size, var(--ui-font-size-sm));
|
|
1959
2000
|
font-weight: 500;
|
|
1960
2001
|
}
|
|
1961
|
-
.control {
|
|
2002
|
+
:global(.control:where([data-hn-ui-combobox])) {
|
|
1962
2003
|
display: flex;
|
|
1963
2004
|
align-items: center;
|
|
1964
2005
|
gap: var(--ui-space-2);
|
|
1965
2006
|
min-inline-size: 0;
|
|
1966
2007
|
}
|
|
1967
2008
|
|
|
1968
|
-
.field {
|
|
2009
|
+
:global(.field:where([data-hn-ui-combobox])) {
|
|
1969
2010
|
box-sizing: border-box;
|
|
1970
2011
|
min-block-size: var(--_row);
|
|
1971
2012
|
flex: 1 1 auto;
|
|
@@ -1979,18 +2020,18 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
1979
2020
|
border-color var(--ui-motion-fast) var(--ui-motion-ease),
|
|
1980
2021
|
box-shadow var(--ui-motion-fast) var(--ui-motion-ease);
|
|
1981
2022
|
}
|
|
1982
|
-
.field:focus-within {
|
|
2023
|
+
:global(.field:focus-within:where([data-hn-ui-combobox])) {
|
|
1983
2024
|
border-color: var(--ui-control-focus, var(--ui-accent-solid));
|
|
1984
2025
|
box-shadow:
|
|
1985
2026
|
var(--ui-control-inset),
|
|
1986
2027
|
var(--ui-control-focus-halo-shadow);
|
|
1987
2028
|
}
|
|
1988
|
-
.entry {
|
|
2029
|
+
:global(.entry:where([data-hn-ui-combobox])) {
|
|
1989
2030
|
display: flex;
|
|
1990
2031
|
flex: 1 1 auto;
|
|
1991
2032
|
min-inline-size: 0;
|
|
1992
2033
|
}
|
|
1993
|
-
.help {
|
|
2034
|
+
:global(.help:where([data-hn-ui-combobox])) {
|
|
1994
2035
|
flex: none;
|
|
1995
2036
|
display: inline-flex;
|
|
1996
2037
|
align-items: center;
|
|
@@ -2008,31 +2049,32 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
2008
2049
|
color var(--ui-motion-fast) var(--ui-motion-ease);
|
|
2009
2050
|
}
|
|
2010
2051
|
|
|
2011
|
-
.help:hover:enabled
|
|
2052
|
+
:global(.help:hover:enabled:where([data-hn-ui-combobox])),
|
|
2053
|
+
:global(.help[aria-expanded="true"]:where([data-hn-ui-combobox])) {
|
|
2012
2054
|
background: color-mix(in srgb, currentColor 8%, transparent);
|
|
2013
2055
|
color: var(--ui-text-primary);
|
|
2014
2056
|
}
|
|
2015
2057
|
|
|
2016
|
-
.help:focus-visible {
|
|
2058
|
+
:global(.help:focus-visible:where([data-hn-ui-combobox])) {
|
|
2017
2059
|
outline: none;
|
|
2018
2060
|
box-shadow: var(--ui-focus-halo);
|
|
2019
2061
|
}
|
|
2020
2062
|
|
|
2021
|
-
.help:disabled {
|
|
2063
|
+
:global(.help:disabled:where([data-hn-ui-combobox])) {
|
|
2022
2064
|
color: var(--ui-disabled-text);
|
|
2023
2065
|
cursor: not-allowed;
|
|
2024
2066
|
}
|
|
2025
2067
|
|
|
2026
|
-
.help-icon {
|
|
2068
|
+
:global(.help-icon:where([data-hn-ui-combobox])) {
|
|
2027
2069
|
inline-size: var(--ui-icon-size-sm);
|
|
2028
2070
|
block-size: var(--ui-icon-size-sm);
|
|
2029
2071
|
}
|
|
2030
2072
|
|
|
2031
|
-
input::selection {
|
|
2073
|
+
:global(input:where([data-hn-ui-combobox])::selection) {
|
|
2032
2074
|
background: color-mix(in srgb, var(--ui-accent-solid) 20%, transparent);
|
|
2033
2075
|
color: inherit;
|
|
2034
2076
|
}
|
|
2035
|
-
input {
|
|
2077
|
+
:global(input:where([data-hn-ui-combobox])) {
|
|
2036
2078
|
appearance: none;
|
|
2037
2079
|
width: 100%;
|
|
2038
2080
|
min-inline-size: 0;
|
|
@@ -2048,21 +2090,21 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
2048
2090
|
margin: 0;
|
|
2049
2091
|
outline: none;
|
|
2050
2092
|
}
|
|
2051
|
-
:
|
|
2093
|
+
:global(:scope[data-ui-combobox-state~="size=sm"]:where([data-hn-ui-combobox])) {
|
|
2052
2094
|
--_row: var(--ui-control-size-sm);
|
|
2053
2095
|
}
|
|
2054
|
-
:scope[data-ui-combobox-state~="size=sm"] input {
|
|
2096
|
+
:global(:scope[data-ui-combobox-state~="size=sm"] input:where([data-hn-ui-combobox])) {
|
|
2055
2097
|
padding: var(--ui-space-1) var(--ui-space-2);
|
|
2056
2098
|
font-size: var(--ui-font-size-sm);
|
|
2057
2099
|
}
|
|
2058
|
-
:
|
|
2100
|
+
:global(:scope[data-ui-combobox-state~="size=lg"]:where([data-hn-ui-combobox])) {
|
|
2059
2101
|
--_row: var(--ui-control-size-lg);
|
|
2060
2102
|
}
|
|
2061
|
-
:scope[data-ui-combobox-state~="size=lg"] input {
|
|
2103
|
+
:global(:scope[data-ui-combobox-state~="size=lg"] input:where([data-hn-ui-combobox])) {
|
|
2062
2104
|
padding: var(--ui-space-3) var(--ui-space-4);
|
|
2063
2105
|
font-size: var(--ui-font-size-md);
|
|
2064
2106
|
}
|
|
2065
|
-
button {
|
|
2107
|
+
:global(button:where([data-hn-ui-combobox])) {
|
|
2066
2108
|
appearance: none;
|
|
2067
2109
|
display: inline-grid;
|
|
2068
2110
|
place-items: center;
|
|
@@ -2077,36 +2119,38 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
2077
2119
|
padding: 0 var(--ui-space-1);
|
|
2078
2120
|
cursor: pointer;
|
|
2079
2121
|
}
|
|
2080
|
-
.affordance-icon {
|
|
2122
|
+
:global(.affordance-icon:where([data-hn-ui-combobox])) {
|
|
2081
2123
|
display: block;
|
|
2082
2124
|
inline-size: var(--ui-icon-size-sm);
|
|
2083
2125
|
block-size: var(--ui-icon-size-sm);
|
|
2084
2126
|
}
|
|
2085
|
-
button:hover:enabled {
|
|
2127
|
+
:global(button:hover:enabled:where([data-hn-ui-combobox])) {
|
|
2086
2128
|
background: var(--ui-surface-muted);
|
|
2087
2129
|
color: var(--ui-text-primary);
|
|
2088
2130
|
}
|
|
2089
|
-
button:focus-visible {
|
|
2131
|
+
:global(button:focus-visible:where([data-hn-ui-combobox])) {
|
|
2090
2132
|
outline: none;
|
|
2091
2133
|
background: var(--ui-surface-muted);
|
|
2092
2134
|
box-shadow: inset 0 0 0 var(--ui-focus-width)
|
|
2093
2135
|
color-mix(in srgb, var(--ui-focus-ring) 45%, transparent);
|
|
2094
2136
|
}
|
|
2095
|
-
input:disabled,
|
|
2137
|
+
:global(input:disabled:where([data-hn-ui-combobox])),
|
|
2138
|
+
:global(button:disabled:where([data-hn-ui-combobox])) {
|
|
2096
2139
|
color: var(--ui-disabled-text);
|
|
2097
2140
|
cursor: not-allowed;
|
|
2098
2141
|
}
|
|
2099
|
-
.field:has(input:disabled) {
|
|
2142
|
+
:global(.field:has(input:disabled):where([data-hn-ui-combobox])) {
|
|
2100
2143
|
background: var(--ui-control-surface-disabled, var(--ui-surface-muted));
|
|
2101
2144
|
}
|
|
2102
|
-
:scope[data-ui-combobox-state~="validationStatus=error"]
|
|
2103
|
-
|
|
2145
|
+
:global(:scope[data-ui-combobox-state~="validationStatus=error"]
|
|
2146
|
+
.field:where([data-hn-ui-combobox])),
|
|
2147
|
+
:global(:scope[data-ui-combobox-state~="invalid"] .field:where([data-hn-ui-combobox])) {
|
|
2104
2148
|
border-color: var(
|
|
2105
2149
|
--_ui-combobox-invalid-border,
|
|
2106
2150
|
var(--ui-field-danger, var(--ui-danger-solid, var(--ui-accent-active)))
|
|
2107
2151
|
);
|
|
2108
2152
|
}
|
|
2109
|
-
.popup {
|
|
2153
|
+
:global(.popup:where([data-hn-ui-combobox])) {
|
|
2110
2154
|
box-sizing: border-box;
|
|
2111
2155
|
min-inline-size: 12rem;
|
|
2112
2156
|
max-inline-size: calc(100vw - 1rem);
|
|
@@ -2127,44 +2171,46 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
2127
2171
|
var(--ui-overlay-shadow, var(--ui-elevation-overlay, var(--ui-shadow-lg)))
|
|
2128
2172
|
);
|
|
2129
2173
|
}
|
|
2130
|
-
[hidden] {
|
|
2174
|
+
:global([hidden]:where([data-hn-ui-combobox])) {
|
|
2131
2175
|
display: none;
|
|
2132
2176
|
}
|
|
2133
|
-
.option[aria-disabled="true"] .primary
|
|
2177
|
+
:global(.option[aria-disabled="true"] .primary:where([data-hn-ui-combobox])),
|
|
2178
|
+
:global(.option[aria-disabled="true"] .secondary:where([data-hn-ui-combobox])) {
|
|
2134
2179
|
color: var(--ui-disabled-text);
|
|
2135
2180
|
}
|
|
2136
|
-
.primary {
|
|
2181
|
+
:global(.primary:where([data-hn-ui-combobox])) {
|
|
2137
2182
|
display: block;
|
|
2138
2183
|
color: var(--_ui-combobox-option-text, inherit);
|
|
2139
2184
|
font-weight: 500;
|
|
2140
2185
|
}
|
|
2141
|
-
.detail {
|
|
2186
|
+
:global(.detail:where([data-hn-ui-combobox])) {
|
|
2142
2187
|
display: grid;
|
|
2143
2188
|
gap: var(--ui-space-0-5);
|
|
2144
2189
|
min-inline-size: 0;
|
|
2145
2190
|
}
|
|
2146
|
-
.line {
|
|
2191
|
+
:global(.line:where([data-hn-ui-combobox])) {
|
|
2147
2192
|
display: flex;
|
|
2148
2193
|
flex-wrap: wrap;
|
|
2149
2194
|
align-items: center;
|
|
2150
2195
|
gap: var(--ui-space-2);
|
|
2151
2196
|
}
|
|
2152
|
-
.description {
|
|
2197
|
+
:global(.description:where([data-hn-ui-combobox])) {
|
|
2153
2198
|
color: var(--ui-text-muted);
|
|
2154
2199
|
font-size: var(--ui-font-size-sm);
|
|
2155
2200
|
line-height: var(--ui-line-height-md);
|
|
2156
2201
|
}
|
|
2157
|
-
.message, .group {
|
|
2202
|
+
:global(.message:where([data-hn-ui-combobox])), :global(.group:where([data-hn-ui-combobox])) {
|
|
2158
2203
|
color: var(--_ui-combobox-message-text, var(--ui-text-secondary));
|
|
2159
2204
|
font-weight: 400;
|
|
2160
2205
|
font-size: var(--ui-font-size-sm);
|
|
2161
2206
|
line-height: var(--ui-line-height-md);
|
|
2162
2207
|
overflow-wrap: anywhere;
|
|
2163
2208
|
}
|
|
2164
|
-
.group,
|
|
2209
|
+
:global(.group:where([data-hn-ui-combobox])),
|
|
2210
|
+
:global(.popup .message:where([data-hn-ui-combobox])) {
|
|
2165
2211
|
padding: var(--ui-space-2) var(--ui-space-3);
|
|
2166
2212
|
}
|
|
2167
|
-
.sr-only {
|
|
2213
|
+
:global(.sr-only:where([data-hn-ui-combobox])) {
|
|
2168
2214
|
position: absolute;
|
|
2169
2215
|
inline-size: 1px;
|
|
2170
2216
|
block-size: 1px;
|
|
@@ -2173,67 +2219,72 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
2173
2219
|
white-space: nowrap;
|
|
2174
2220
|
}
|
|
2175
2221
|
@media (pointer: coarse) {
|
|
2176
|
-
:scope:where(
|
|
2222
|
+
:global(:scope:where([data-hn-ui-combobox])) {
|
|
2177
2223
|
--_row: max(var(--ui-control-size-md), var(--ui-control-min-block-size));
|
|
2178
2224
|
}
|
|
2179
|
-
button {
|
|
2225
|
+
:global(button:where([data-hn-ui-combobox])) {
|
|
2180
2226
|
min-inline-size: 2.75rem;
|
|
2181
2227
|
min-block-size: calc(var(--_row) - 2 * var(--ui-border-width));
|
|
2182
2228
|
}
|
|
2183
2229
|
/* Under touch a small field is still a touch-sized target, as a small button is, and keeps
|
|
2184
2230
|
body-size text: below 16px, iOS zooms the page into the focused field. */
|
|
2185
|
-
:
|
|
2231
|
+
:global(:scope[data-ui-combobox-state~="size=sm"]:where([data-hn-ui-combobox])) {
|
|
2186
2232
|
--_row: var(--ui-control-min-block-size);
|
|
2187
2233
|
}
|
|
2188
|
-
:scope[data-ui-combobox-state~="size=sm"] input {
|
|
2234
|
+
:global(:scope[data-ui-combobox-state~="size=sm"] input:where([data-hn-ui-combobox])) {
|
|
2189
2235
|
font-size: inherit;
|
|
2190
2236
|
}
|
|
2191
2237
|
}
|
|
2192
2238
|
@media (forced-colors: active) {
|
|
2193
|
-
.field, .popup {
|
|
2239
|
+
:global(.field:where([data-hn-ui-combobox])), :global(.popup:where([data-hn-ui-combobox])) {
|
|
2194
2240
|
border-color: CanvasText;
|
|
2195
2241
|
}
|
|
2196
|
-
.option.active {
|
|
2242
|
+
:global(.option.active:where([data-hn-ui-combobox])) {
|
|
2197
2243
|
outline-color: Highlight;
|
|
2198
2244
|
}
|
|
2199
2245
|
}
|
|
2200
|
-
:scope[data-ui-combobox-state~="multiple"] .field {
|
|
2246
|
+
:global(:scope[data-ui-combobox-state~="multiple"] .field:where([data-hn-ui-combobox])) {
|
|
2201
2247
|
align-items: center;
|
|
2202
2248
|
min-block-size: var(--_ui-combobox-item-min-block-size, var(--_row));
|
|
2203
2249
|
padding: var(--ui-space-1);
|
|
2204
2250
|
}
|
|
2205
|
-
:scope[data-ui-combobox-state~="multiple"] .entry {
|
|
2251
|
+
:global(:scope[data-ui-combobox-state~="multiple"] .entry:where([data-hn-ui-combobox])) {
|
|
2206
2252
|
align-items: center;
|
|
2207
2253
|
gap: var(--ui-space-1);
|
|
2208
2254
|
overflow-x: auto;
|
|
2209
2255
|
scrollbar-width: none;
|
|
2210
2256
|
}
|
|
2211
|
-
:scope[data-ui-combobox-state~="multiple"]
|
|
2257
|
+
:global(:scope[data-ui-combobox-state~="multiple"]
|
|
2258
|
+
.entry:where([data-hn-ui-combobox])::-webkit-scrollbar) {
|
|
2212
2259
|
display: none;
|
|
2213
2260
|
}
|
|
2214
|
-
:scope[data-ui-combobox-state~="multiple"] input {
|
|
2261
|
+
:global(:scope[data-ui-combobox-state~="multiple"] input:where([data-hn-ui-combobox])) {
|
|
2215
2262
|
flex: 1 0 var(--_ui-combobox-item-input-min-inline-size, 5rem);
|
|
2216
2263
|
width: auto;
|
|
2217
2264
|
min-block-size: 1.75rem;
|
|
2218
2265
|
padding: var(--ui-space-0-5) var(--ui-space-1);
|
|
2219
2266
|
}
|
|
2220
|
-
:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=sm"]
|
|
2267
|
+
:global(:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=sm"]
|
|
2268
|
+
.field:where([data-hn-ui-combobox])) {
|
|
2221
2269
|
min-block-size: 0;
|
|
2222
2270
|
padding: var(--ui-space-0-5);
|
|
2223
2271
|
}
|
|
2224
|
-
:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=sm"]
|
|
2272
|
+
:global(:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=sm"]
|
|
2273
|
+
input:where([data-hn-ui-combobox])) {
|
|
2225
2274
|
min-block-size: calc(var(--_row) - 2 * var(--ui-border-width) - 2 * var(--ui-space-0-5));
|
|
2226
2275
|
padding: 0 var(--ui-space-1);
|
|
2227
2276
|
}
|
|
2228
|
-
:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=lg"]
|
|
2277
|
+
:global(:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=lg"]
|
|
2278
|
+
.field:where([data-hn-ui-combobox])) {
|
|
2229
2279
|
min-block-size: 0;
|
|
2230
2280
|
}
|
|
2231
|
-
:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=lg"]
|
|
2281
|
+
:global(:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=lg"]
|
|
2282
|
+
input:where([data-hn-ui-combobox])) {
|
|
2232
2283
|
min-block-size: calc(
|
|
2233
2284
|
var(--ui-control-size-lg) - 2 * var(--ui-border-width) - 2 * var(--ui-space-1)
|
|
2234
2285
|
);
|
|
2235
2286
|
}
|
|
2236
|
-
.item {
|
|
2287
|
+
:global(.item:where([data-hn-ui-combobox])) {
|
|
2237
2288
|
appearance: none;
|
|
2238
2289
|
display: inline-flex;
|
|
2239
2290
|
flex: none;
|
|
@@ -2248,14 +2299,14 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
2248
2299
|
font: inherit;
|
|
2249
2300
|
cursor: default;
|
|
2250
2301
|
}
|
|
2251
|
-
.item:focus-visible {
|
|
2302
|
+
:global(.item:focus-visible:where([data-hn-ui-combobox])) {
|
|
2252
2303
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring);
|
|
2253
2304
|
outline-offset: var(--ui-border-width);
|
|
2254
2305
|
}
|
|
2255
|
-
.item:disabled {
|
|
2306
|
+
:global(.item:disabled:where([data-hn-ui-combobox])) {
|
|
2256
2307
|
color: var(--ui-disabled-text);
|
|
2257
2308
|
}
|
|
2258
|
-
:
|
|
2309
|
+
:global(:scope[hidden]:where([data-hn-ui-combobox])) {
|
|
2259
2310
|
display: none;
|
|
2260
2311
|
}
|
|
2261
2312
|
}
|