@threadlabs/looma 0.24.1 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/components/ui-affordance-scope/ui-affordance-scope.html +1 -1
- package/components/ui-affordance-scope/ui-affordance-scope.js +6 -1
- package/components/ui-avatar/ui-avatar.html +4 -4
- package/components/ui-avatar/ui-avatar.js +6 -1
- package/components/ui-avatar-group/ui-avatar-group.html +2 -2
- package/components/ui-avatar-group/ui-avatar-group.js +6 -1
- package/components/ui-badge/ui-badge.html +30 -30
- package/components/ui-breadcrumb-item/ui-breadcrumb-item.html +1 -1
- package/components/ui-button/ui-button.html +33 -33
- package/components/ui-button/ui-button.js +6 -1
- package/components/ui-callout/ui-callout.html +4 -4
- package/components/ui-card/ui-card.html +9 -9
- package/components/ui-checkbox/ui-checkbox.html +11 -11
- package/components/ui-checkbox/ui-checkbox.js +6 -1
- package/components/ui-cluster/ui-cluster.html +12 -12
- package/components/ui-combobox/ui-combobox.html +15 -17
- package/components/ui-combobox/ui-combobox.js +13 -15
- package/components/ui-container/ui-container.html +5 -5
- package/components/ui-context-menu/ui-context-menu.js +6 -1
- package/components/ui-cover/ui-cover.html +1 -1
- package/components/ui-description-list/ui-description-list.html +10 -10
- package/components/ui-dialog/ui-dialog.html +4 -4
- package/components/ui-dialog/ui-dialog.js +6 -1
- package/components/ui-disclosure/ui-disclosure.html +13 -13
- package/components/ui-disclosure/ui-disclosure.js +6 -1
- package/components/ui-editable/ui-editable.html +1 -1
- package/components/ui-editable/ui-editable.js +6 -1
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.js +6 -1
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.js +6 -1
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.js +6 -1
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.js +6 -1
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.js +6 -1
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +6 -1
- package/components/ui-editor-toolbar/ui-editor-toolbar.html +4 -4
- package/components/ui-editor-toolbar/ui-editor-toolbar.js +6 -1
- package/components/ui-floating-action-button/ui-floating-action-button.html +1 -1
- package/components/ui-form-field/ui-form-field.html +1 -1
- package/components/ui-form-field/ui-form-field.js +6 -1
- package/components/ui-grid/ui-grid.html +7 -7
- package/components/ui-icon-button/ui-icon-button.html +26 -26
- package/components/ui-icon-button/ui-icon-button.js +6 -1
- package/components/ui-image/ui-image.html +11 -11
- package/components/ui-image/ui-image.js +6 -1
- package/components/ui-input/ui-input.html +9 -7
- package/components/ui-input/ui-input.js +6 -1
- package/components/ui-input-group/ui-input-group.html +37 -8
- package/components/ui-input-group/ui-input-group.js +8 -3
- package/components/ui-list/ui-list.html +6 -6
- package/components/ui-list-item/ui-list-item.html +8 -8
- package/components/ui-listbox/ui-listbox.js +6 -1
- package/components/ui-menu/ui-menu.html +3 -3
- package/components/ui-menu/ui-menu.js +6 -1
- package/components/ui-menu-item/ui-menu-item.html +3 -3
- package/components/ui-menu-item/ui-menu-item.js +6 -1
- package/components/ui-meter/ui-meter.html +7 -7
- package/components/ui-nav-item/ui-nav-item.html +6 -6
- package/components/ui-page-header/ui-page-header.html +2 -2
- package/components/ui-popover/ui-popover.html +3 -3
- package/components/ui-popover/ui-popover.js +6 -1
- package/components/ui-radio/ui-radio.html +10 -10
- package/components/ui-radio/ui-radio.js +6 -1
- package/components/ui-radio-group/ui-radio-group.html +2 -2
- package/components/ui-radio-group/ui-radio-group.js +6 -1
- package/components/ui-reel/ui-reel.html +11 -11
- package/components/ui-scroll-area/ui-scroll-area.html +4 -4
- package/components/ui-scroll-area/ui-scroll-area.js +6 -1
- package/components/ui-search-result-row/ui-search-result-row.html +5 -5
- package/components/ui-search-shell/ui-search-shell.js +6 -1
- package/components/ui-section/ui-section.html +4 -4
- package/components/ui-select/ui-select.html +3 -3
- package/components/ui-select/ui-select.js +6 -1
- package/components/ui-separator/ui-separator.html +4 -4
- package/components/ui-sidebar/ui-sidebar.html +6 -6
- package/components/ui-sidebar/ui-sidebar.js +6 -1
- package/components/ui-spinner/ui-spinner.html +1 -1
- package/components/ui-stack/ui-stack.html +12 -12
- package/components/ui-status-message/ui-status-message.html +4 -4
- package/components/ui-switch/ui-switch.html +11 -11
- package/components/ui-switch/ui-switch.js +6 -1
- package/components/ui-switcher/ui-switcher.html +11 -11
- package/components/ui-switcher/ui-switcher.js +6 -1
- package/components/ui-table/ui-table.html +2 -2
- package/components/ui-table/ui-table.js +6 -1
- package/components/ui-tabs/ui-tabs.html +8 -8
- package/components/ui-tabs/ui-tabs.js +6 -1
- package/components/ui-text/ui-text.html +20 -20
- package/components/ui-textarea/ui-textarea.html +46 -18
- package/components/ui-textarea/ui-textarea.js +6 -1
- package/components/ui-toast/ui-toast.html +4 -4
- package/components/ui-toast/ui-toast.js +6 -1
- package/components/ui-toast-region/ui-toast-region.html +16 -11
- package/components/ui-toast-region/ui-toast-region.js +12 -9
- package/components/ui-tooltip/ui-tooltip.html +1 -1
- package/components/ui-tooltip/ui-tooltip.js +6 -1
- package/components/ui-tree/ui-tree.html +2 -2
- package/components/ui-tree/ui-tree.js +6 -1
- package/components/ui-tree-item/ui-tree-item.html +4 -4
- package/components/ui-tree-item/ui-tree-item.js +6 -1
- package/dist/index.js +10 -4
- 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-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-image.css +1 -1
- package/styles/ui-input-group.css +36 -6
- 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 +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-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 +43 -15
- 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 +1 -1
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +1 -1
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +1 -1
- 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 +1 -1
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -3
- 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 +1 -1
- 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 +1 -1
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +1 -1
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +1 -1
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +1 -1
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +1 -1
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +1 -1
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +1 -1
- 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 +1 -1
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +1 -1
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +1 -1
- 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/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +1 -1
- package/vanilla/UiInput.d.ts +4 -4
- package/vanilla/UiInput.js +2 -2
- package/vanilla/UiInputGroup.d.ts +2 -1
- package/vanilla/UiInputGroup.js +2 -2
- 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 +1 -1
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +1 -1
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +1 -1
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +1 -1
- 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 +1 -1
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +1 -1
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +1 -1
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +1 -1
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +1 -1
- 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 +2 -2
- package/vanilla/UiToastRegion.js +2 -2
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +1 -1
- 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 +1 -1
- package/vue/UiActionBar.vue +1 -1
- package/vue/UiAffordanceScope.vue +8 -1
- package/vue/UiAvatar.d.ts +6 -9
- package/vue/UiAvatar.vue +71 -20
- package/vue/UiAvatarGroup.d.ts +7 -10
- package/vue/UiAvatarGroup.vue +45 -12
- package/vue/UiBadge.vue +1 -1
- package/vue/UiBreadcrumbItem.vue +1 -1
- package/vue/UiBreadcrumbs.vue +1 -1
- package/vue/UiButton.vue +1 -1
- package/vue/UiCallout.vue +1 -1
- package/vue/UiCard.vue +1 -1
- package/vue/UiCheckbox.d.ts +8 -11
- package/vue/UiCheckbox.vue +34 -11
- package/vue/UiCluster.vue +1 -1
- package/vue/UiCombobox.d.ts +60 -66
- package/vue/UiCombobox.vue +476 -124
- package/vue/UiContainer.vue +1 -1
- package/vue/UiContextMenu.vue +18 -9
- package/vue/UiCover.vue +1 -1
- package/vue/UiDescriptionItem.vue +1 -1
- package/vue/UiDescriptionList.vue +1 -1
- package/vue/UiDialog.d.ts +8 -11
- package/vue/UiDialog.vue +39 -12
- package/vue/UiDisclosure.d.ts +12 -15
- package/vue/UiDisclosure.vue +70 -24
- package/vue/UiEditable.d.ts +3 -3
- package/vue/UiEditable.vue +60 -21
- package/vue/UiEditorInsertTableGrid.d.ts +2 -2
- package/vue/UiEditorInsertTableGrid.vue +75 -14
- package/vue/UiEditorMentionMenu.d.ts +10 -13
- package/vue/UiEditorMentionMenu.vue +50 -7
- package/vue/UiEditorMentionMenuItem.vue +1 -1
- package/vue/UiEditorSlashMenu.d.ts +12 -15
- package/vue/UiEditorSlashMenu.vue +48 -7
- package/vue/UiEditorSlashMenuGroup.vue +1 -1
- package/vue/UiEditorSlashMenuItem.vue +1 -1
- package/vue/UiEditorTableContextMenu.vue +73 -4
- package/vue/UiEditorTableOverlay.d.ts +2 -2
- package/vue/UiEditorTableOverlay.vue +202 -38
- package/vue/UiEditorTableToolbar.d.ts +2 -2
- package/vue/UiEditorTableToolbar.vue +128 -7
- package/vue/UiEditorToolbar.vue +3 -3
- package/vue/UiFloatingActionButton.vue +1 -1
- package/vue/UiFormField.vue +1 -1
- package/vue/UiGrid.vue +1 -1
- package/vue/UiIcon.vue +1 -1
- package/vue/UiIconButton.vue +1 -1
- package/vue/UiImage.vue +7 -6
- package/vue/UiInput.d.ts +5 -5
- package/vue/UiInput.vue +15 -3
- package/vue/UiInputGroup.d.ts +9 -0
- package/vue/UiInputGroup.vue +57 -8
- package/vue/UiList.vue +1 -1
- package/vue/UiListItem.vue +1 -1
- package/vue/UiListbox.d.ts +6 -9
- package/vue/UiListbox.vue +70 -19
- package/vue/UiMenu.vue +20 -10
- package/vue/UiMenuGroup.vue +1 -1
- package/vue/UiMenuItem.d.ts +13 -16
- package/vue/UiMenuItem.vue +30 -7
- package/vue/UiMeter.vue +1 -1
- package/vue/UiNavItem.vue +1 -1
- package/vue/UiPageHeader.vue +1 -1
- package/vue/UiPopover.vue +12 -4
- package/vue/UiRadio.d.ts +8 -11
- package/vue/UiRadio.vue +34 -11
- package/vue/UiRadioGroup.vue +16 -7
- package/vue/UiReel.vue +1 -1
- package/vue/UiScrollArea.vue +3 -3
- package/vue/UiSearchResultRow.vue +1 -1
- package/vue/UiSearchShell.vue +14 -6
- package/vue/UiSection.vue +1 -1
- package/vue/UiSelect.vue +3 -2
- package/vue/UiSeparator.vue +1 -1
- package/vue/UiSidebar.d.ts +7 -10
- package/vue/UiSidebar.vue +44 -12
- package/vue/UiSpinner.vue +1 -1
- package/vue/UiStack.vue +1 -1
- package/vue/UiStatusMessage.vue +1 -1
- package/vue/UiSwitch.d.ts +8 -11
- package/vue/UiSwitch.vue +34 -11
- package/vue/UiSwitcher.vue +8 -1
- package/vue/UiTable.vue +1 -1
- package/vue/UiTabs.vue +30 -8
- package/vue/UiText.vue +1 -1
- package/vue/UiTextarea.vue +78 -17
- package/vue/UiToast.vue +7 -6
- package/vue/UiToastRegion.d.ts +15 -3
- package/vue/UiToastRegion.vue +90 -45
- package/vue/UiTooltip.d.ts +9 -12
- package/vue/UiTooltip.vue +30 -7
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.vue +17 -13
- package/vue/UiTreeItem.d.ts +15 -18
- package/vue/UiTreeItem.vue +79 -30
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +6 -2
- package/vue/chunks/UiAvatar.js +37 -10
- package/vue/chunks/UiAvatarGroup.js +26 -7
- package/vue/chunks/UiBadge.js +2 -2
- package/vue/chunks/UiBreadcrumbItem.js +2 -2
- package/vue/chunks/UiBreadcrumbs.js +2 -2
- package/vue/chunks/UiButton.js +2 -2
- package/vue/chunks/UiCallout.js +2 -2
- package/vue/chunks/UiCard.js +2 -2
- package/vue/chunks/UiCheckbox.js +25 -12
- package/vue/chunks/UiCluster.js +2 -2
- package/vue/chunks/UiCombobox.js +628 -117
- package/vue/chunks/UiContainer.js +2 -2
- package/vue/chunks/UiContextMenu.js +14 -10
- package/vue/chunks/UiCover.js +2 -2
- package/vue/chunks/UiDescriptionItem.js +2 -2
- package/vue/chunks/UiDescriptionList.js +2 -2
- package/vue/chunks/UiDialog.js +29 -11
- package/vue/chunks/UiDisclosure.js +44 -14
- package/vue/chunks/UiEditable.js +33 -9
- package/vue/chunks/UiEditorInsertTableGrid.js +98 -14
- package/vue/chunks/UiEditorMentionMenu.js +76 -9
- package/vue/chunks/UiEditorMentionMenuItem.js +2 -2
- package/vue/chunks/UiEditorSlashMenu.js +70 -11
- package/vue/chunks/UiEditorSlashMenuGroup.js +2 -2
- package/vue/chunks/UiEditorSlashMenuItem.js +2 -2
- package/vue/chunks/UiEditorTableContextMenu.js +120 -2
- package/vue/chunks/UiEditorTableOverlay.js +306 -12
- package/vue/chunks/UiEditorTableToolbar.js +215 -3
- package/vue/chunks/UiEditorToolbar.js +8 -8
- package/vue/chunks/UiFloatingActionButton.js +2 -2
- package/vue/chunks/UiFormField.js +2 -2
- package/vue/chunks/UiGrid.js +2 -2
- package/vue/chunks/UiIcon.js +2 -2
- package/vue/chunks/UiIconButton.js +2 -2
- package/vue/chunks/UiImage.js +12 -12
- package/vue/chunks/UiInput.js +34 -4
- package/vue/chunks/UiInputGroup.js +30 -4
- package/vue/chunks/UiList.js +2 -2
- package/vue/chunks/UiListItem.js +2 -2
- package/vue/chunks/UiListbox.js +96 -12
- package/vue/chunks/UiMenu.js +6 -2
- package/vue/chunks/UiMenuGroup.js +2 -2
- package/vue/chunks/UiMenuItem.js +15 -3
- package/vue/chunks/UiMeter.js +2 -2
- package/vue/chunks/UiNavItem.js +2 -2
- package/vue/chunks/UiPageHeader.js +2 -2
- package/vue/chunks/UiPopover.js +6 -2
- package/vue/chunks/UiRadio.js +25 -12
- package/vue/chunks/UiRadioGroup.js +6 -2
- package/vue/chunks/UiReel.js +2 -2
- package/vue/chunks/UiScrollArea.js +8 -8
- package/vue/chunks/UiSearchResultRow.js +2 -2
- package/vue/chunks/UiSearchShell.js +9 -4
- package/vue/chunks/UiSection.js +2 -2
- package/vue/chunks/UiSelect.js +5 -3
- package/vue/chunks/UiSeparator.js +2 -2
- package/vue/chunks/UiSidebar.js +28 -5
- package/vue/chunks/UiSpinner.js +2 -2
- package/vue/chunks/UiStack.js +2 -2
- package/vue/chunks/UiStatusMessage.js +2 -2
- package/vue/chunks/UiSwitch.js +25 -12
- package/vue/chunks/UiSwitcher.js +6 -2
- package/vue/chunks/UiTable.js +2 -2
- package/vue/chunks/UiTabs.js +39 -10
- package/vue/chunks/UiText.js +2 -2
- package/vue/chunks/UiTextarea.js +3 -2
- package/vue/chunks/UiToast.js +8 -8
- package/vue/chunks/UiToastRegion.js +86 -20
- package/vue/chunks/UiTooltip.js +15 -3
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +2 -2
- package/vue/chunks/UiTreeItem.js +84 -51
- package/vue/chunks/control.js +9 -2
- package/vue/chunks/host.js +203 -29
- package/vue/chunks/props.js +43 -7
- package/vue/components.css +1447 -1360
- package/vue/host.ts +286 -42
package/vue/UiCombobox.vue
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.29 for Vue 3.5. Do not edit. -->
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
const htmlNextAuthoredCheck2Reported = new Set<string>()
|
|
4
|
+
function htmlNextAuthoredCheck2(accepted: boolean, location: string, message: string): boolean {
|
|
5
|
+
if (!accepted && !htmlNextAuthoredCheck2Reported.has(location)) {
|
|
6
|
+
htmlNextAuthoredCheck2Reported.add(location)
|
|
7
|
+
console.warn(message)
|
|
8
|
+
}
|
|
9
|
+
return accepted
|
|
10
|
+
}
|
|
11
|
+
</script>
|
|
12
|
+
|
|
2
13
|
<script setup lang="ts">
|
|
3
14
|
import {
|
|
4
15
|
computed,
|
|
@@ -13,6 +24,7 @@ import {
|
|
|
13
24
|
import type { PropType, VNode } from 'vue'
|
|
14
25
|
import { vBindControl } from './control'
|
|
15
26
|
import { createDispatch, useComponentHost } from './host'
|
|
27
|
+
import { acceptsControllerWrite } from './props'
|
|
16
28
|
import { checkedProp, propValidityState, vPropValidity } from './props'
|
|
17
29
|
import UiBadge from './UiBadge.vue'
|
|
18
30
|
import UiTooltip from './UiTooltip.vue'
|
|
@@ -808,11 +820,11 @@ const emit = defineEmits<{
|
|
|
808
820
|
}>()
|
|
809
821
|
|
|
810
822
|
const root = ref<HTMLElement | null>(null)
|
|
811
|
-
const fieldElement = useTemplateRef<HTMLElement>('
|
|
812
|
-
const inputElement = useTemplateRef<HTMLElement>('
|
|
813
|
-
const popupElement = useTemplateRef<HTMLElement>('
|
|
814
|
-
const listboxElement = useTemplateRef<HTMLElement>('
|
|
815
|
-
const optionsElement = useTemplateRef<HTMLElement>('
|
|
823
|
+
const fieldElement = useTemplateRef<HTMLElement>('fieldElement')
|
|
824
|
+
const inputElement = useTemplateRef<HTMLElement>('inputElement')
|
|
825
|
+
const popupElement = useTemplateRef<HTMLElement>('popupElement')
|
|
826
|
+
const listboxElement = useTemplateRef<HTMLElement>('listboxElement')
|
|
827
|
+
const optionsElement = useTemplateRef<HTMLElement>('optionsElement')
|
|
816
828
|
const internalItems = ref<
|
|
817
829
|
{
|
|
818
830
|
id: string
|
|
@@ -893,116 +905,202 @@ const statusText = ref('')
|
|
|
893
905
|
const validationStatus = ref('pristine')
|
|
894
906
|
let guardedPrevious: any = null
|
|
895
907
|
const guarded = computed(() => {
|
|
896
|
-
if (
|
|
908
|
+
if (
|
|
909
|
+
!(htmlNextAuthoredCheck2(
|
|
910
|
+
uid.value == null || typeof uid.value === 'string',
|
|
911
|
+
'concat(uid, \'-input\'):uid',
|
|
912
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.',
|
|
913
|
+
))
|
|
914
|
+
) return guardedPrevious
|
|
897
915
|
const candidate: any = concat(uid.value, '-input')
|
|
898
916
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedPrevious
|
|
899
917
|
return guardedPrevious = candidate
|
|
900
918
|
})
|
|
901
919
|
let guardedBindingPrevious: any = null
|
|
902
920
|
const guardedBinding = computed(() => {
|
|
903
|
-
if (
|
|
921
|
+
if (
|
|
922
|
+
!(htmlNextAuthoredCheck2(
|
|
923
|
+
uid.value == null || typeof uid.value === 'string',
|
|
924
|
+
'concat(uid, \'-input\'):uid',
|
|
925
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.',
|
|
926
|
+
))
|
|
927
|
+
) return guardedBindingPrevious
|
|
904
928
|
const candidate: any = concat(uid.value, '-input')
|
|
905
929
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBindingPrevious
|
|
906
930
|
return guardedBindingPrevious = candidate
|
|
907
931
|
})
|
|
908
932
|
let guardedBinding2Previous: any = null
|
|
909
933
|
const guardedBinding2 = computed(() => {
|
|
910
|
-
if (
|
|
934
|
+
if (
|
|
935
|
+
!(htmlNextAuthoredCheck2(
|
|
936
|
+
uid.value == null || typeof uid.value === 'string',
|
|
937
|
+
'concat(uid, \'-listbox\'):uid',
|
|
938
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.',
|
|
939
|
+
))
|
|
940
|
+
) return guardedBinding2Previous
|
|
911
941
|
const candidate: any = concat(uid.value, '-listbox')
|
|
912
942
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding2Previous
|
|
913
943
|
return guardedBinding2Previous = candidate
|
|
914
944
|
})
|
|
915
945
|
let guardedBinding3Previous: any
|
|
916
946
|
const guardedBinding3 = computed(() => {
|
|
917
|
-
if (
|
|
918
|
-
|
|
919
|
-
|
|
947
|
+
if (
|
|
948
|
+
!(htmlNextAuthoredCheck2(
|
|
949
|
+
expanded.value == null || typeof expanded.value === 'boolean',
|
|
950
|
+
'expanded:expanded',
|
|
951
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference expanded does not satisfy its declared type.',
|
|
952
|
+
))
|
|
953
|
+
) return guardedBinding3Previous
|
|
920
954
|
return guardedBinding3Previous = expanded.value
|
|
921
955
|
})
|
|
922
956
|
let guardedBinding4Previous: any
|
|
923
957
|
const guardedBinding4 = computed(() => {
|
|
924
|
-
if (
|
|
925
|
-
|
|
926
|
-
|
|
958
|
+
if (
|
|
959
|
+
!(htmlNextAuthoredCheck2(
|
|
960
|
+
validationStatus.value == null || typeof validationStatus.value === 'string',
|
|
961
|
+
'invalid or validationStatus = \'error\':validationStatus',
|
|
962
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference validationStatus does not satisfy its declared type.',
|
|
963
|
+
))
|
|
964
|
+
) return guardedBinding4Previous
|
|
927
965
|
return guardedBinding4Previous = checkedProps.value.invalid || validationStatus.value === 'error'
|
|
928
966
|
})
|
|
929
967
|
let guardedBinding5Previous: any
|
|
930
968
|
const guardedBinding5 = computed(() => {
|
|
931
|
-
if (
|
|
932
|
-
|
|
933
|
-
|
|
969
|
+
if (
|
|
970
|
+
!(htmlNextAuthoredCheck2(
|
|
971
|
+
validationStatus.value == null || typeof validationStatus.value === 'string',
|
|
972
|
+
'loading or validationStatus = \'pending\':validationStatus',
|
|
973
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference validationStatus does not satisfy its declared type.',
|
|
974
|
+
))
|
|
975
|
+
) return guardedBinding5Previous
|
|
934
976
|
return guardedBinding5Previous = checkedProps.value.loading
|
|
935
977
|
|| validationStatus.value === 'pending'
|
|
936
978
|
})
|
|
937
979
|
let guardedBinding6Previous: any
|
|
938
980
|
const guardedBinding6 = computed(() => {
|
|
939
|
-
if (
|
|
981
|
+
if (
|
|
982
|
+
!(htmlNextAuthoredCheck2(
|
|
983
|
+
display.value == null || typeof display.value === 'string',
|
|
984
|
+
'display:display',
|
|
985
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference display does not satisfy its declared type.',
|
|
986
|
+
))
|
|
987
|
+
) return guardedBinding6Previous
|
|
940
988
|
return guardedBinding6Previous = display.value
|
|
941
989
|
})
|
|
942
990
|
let guardedBinding7Previous: any
|
|
943
991
|
const guardedBinding7 = computed(() => {
|
|
944
992
|
if (
|
|
945
|
-
!(
|
|
993
|
+
!(htmlNextAuthoredCheck2(
|
|
994
|
+
internalItems.value?.['0'] == null
|
|
946
995
|
|| (typeof internalItems.value?.['0'] === 'object' && internalItems.value?.['0'] !== null
|
|
947
|
-
&& !Array.isArray(internalItems.value?.['0']))
|
|
996
|
+
&& !Array.isArray(internalItems.value?.['0'])),
|
|
997
|
+
'required and not (multiple and internalItems.0):internalItems.0',
|
|
998
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference internalItems.0 does not satisfy its declared type.',
|
|
999
|
+
))
|
|
948
1000
|
) return guardedBinding7Previous
|
|
949
1001
|
return guardedBinding7Previous = checkedProps.value.required
|
|
950
1002
|
&& !(checkedProps.value.multiple && internalItems.value[0])
|
|
951
1003
|
})
|
|
952
1004
|
let guardedBinding8Previous: any
|
|
953
1005
|
const guardedBinding8 = computed(() => {
|
|
954
|
-
if (
|
|
955
|
-
|
|
956
|
-
|
|
1006
|
+
if (
|
|
1007
|
+
!(htmlNextAuthoredCheck2(
|
|
1008
|
+
submitted.value == null || typeof submitted.value === 'string',
|
|
1009
|
+
'submitted:submitted',
|
|
1010
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference submitted does not satisfy its declared type.',
|
|
1011
|
+
))
|
|
1012
|
+
) return guardedBinding8Previous
|
|
957
1013
|
return guardedBinding8Previous = submitted.value
|
|
958
1014
|
})
|
|
959
1015
|
let guardedBinding9Previous: any
|
|
960
1016
|
const guardedBinding9 = computed(() => {
|
|
961
1017
|
if (
|
|
962
|
-
!((
|
|
963
|
-
|
|
1018
|
+
!(htmlNextAuthoredCheck2(
|
|
1019
|
+
raw.value == null || typeof raw.value === 'string',
|
|
1020
|
+
'disabled or readonly or (not raw and (multiple or selected = null)):raw',
|
|
1021
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference raw does not satisfy its declared type.',
|
|
1022
|
+
)
|
|
1023
|
+
&& htmlNextAuthoredCheck2(
|
|
1024
|
+
selected.value == null || (typeof selected.value === 'string' || selected.value === null),
|
|
1025
|
+
'disabled or readonly or (not raw and (multiple or selected = null)):selected',
|
|
1026
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference selected does not satisfy its declared type.',
|
|
1027
|
+
))
|
|
964
1028
|
) return guardedBinding9Previous
|
|
965
1029
|
return guardedBinding9Previous = checkedProps.value.disabled || checkedProps.value.readonly
|
|
966
1030
|
|| (!raw.value && (checkedProps.value.multiple || selected.value === null))
|
|
967
1031
|
})
|
|
968
1032
|
let guardedBinding10Previous: any = null
|
|
969
1033
|
const guardedBinding10 = computed(() => {
|
|
970
|
-
if (
|
|
1034
|
+
if (
|
|
1035
|
+
!(htmlNextAuthoredCheck2(
|
|
1036
|
+
uid.value == null || typeof uid.value === 'string',
|
|
1037
|
+
'concat(uid, \'-listbox\'):uid',
|
|
1038
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.',
|
|
1039
|
+
))
|
|
1040
|
+
) return guardedBinding10Previous
|
|
971
1041
|
const candidate: any = concat(uid.value, '-listbox')
|
|
972
1042
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding10Previous
|
|
973
1043
|
return guardedBinding10Previous = candidate
|
|
974
1044
|
})
|
|
975
1045
|
let guardedBinding11Previous: any = null
|
|
976
1046
|
const guardedBinding11 = computed(() => {
|
|
977
|
-
if (
|
|
1047
|
+
if (
|
|
1048
|
+
!(htmlNextAuthoredCheck2(
|
|
1049
|
+
uid.value == null || typeof uid.value === 'string',
|
|
1050
|
+
'concat(uid, \'-help\'):uid',
|
|
1051
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.',
|
|
1052
|
+
))
|
|
1053
|
+
) return guardedBinding11Previous
|
|
978
1054
|
const candidate: any = concat(uid.value, '-help')
|
|
979
1055
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding11Previous
|
|
980
1056
|
return guardedBinding11Previous = candidate
|
|
981
1057
|
})
|
|
982
1058
|
let guardedBinding12Previous: any = null
|
|
983
1059
|
const guardedBinding12 = computed(() => {
|
|
984
|
-
if (
|
|
1060
|
+
if (
|
|
1061
|
+
!(htmlNextAuthoredCheck2(
|
|
1062
|
+
uid.value == null || typeof uid.value === 'string',
|
|
1063
|
+
'concat(uid, \'-help-text\'):uid',
|
|
1064
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.',
|
|
1065
|
+
))
|
|
1066
|
+
) return guardedBinding12Previous
|
|
985
1067
|
const candidate: any = concat(uid.value, '-help-text')
|
|
986
1068
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding12Previous
|
|
987
1069
|
return guardedBinding12Previous = candidate
|
|
988
1070
|
})
|
|
989
1071
|
let guardedBinding13Previous: any = null
|
|
990
1072
|
const guardedBinding13 = computed(() => {
|
|
991
|
-
if (
|
|
1073
|
+
if (
|
|
1074
|
+
!(htmlNextAuthoredCheck2(
|
|
1075
|
+
uid.value == null || typeof uid.value === 'string',
|
|
1076
|
+
'concat(uid, \'-help\'):uid',
|
|
1077
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.',
|
|
1078
|
+
))
|
|
1079
|
+
) return guardedBinding13Previous
|
|
992
1080
|
const candidate: any = concat(uid.value, '-help')
|
|
993
1081
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding13Previous
|
|
994
1082
|
return guardedBinding13Previous = candidate
|
|
995
1083
|
})
|
|
996
1084
|
let guardedBinding14Previous: any
|
|
997
1085
|
const guardedBinding14 = computed(() => {
|
|
998
|
-
if (
|
|
999
|
-
|
|
1000
|
-
|
|
1086
|
+
if (
|
|
1087
|
+
!(htmlNextAuthoredCheck2(
|
|
1088
|
+
expanded.value == null || typeof expanded.value === 'boolean',
|
|
1089
|
+
'not expanded:expanded',
|
|
1090
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference expanded does not satisfy its declared type.',
|
|
1091
|
+
))
|
|
1092
|
+
) return guardedBinding14Previous
|
|
1001
1093
|
return guardedBinding14Previous = !expanded.value
|
|
1002
1094
|
})
|
|
1003
1095
|
let guardedBinding15Previous: any = null
|
|
1004
1096
|
const guardedBinding15 = computed(() => {
|
|
1005
|
-
if (
|
|
1097
|
+
if (
|
|
1098
|
+
!(htmlNextAuthoredCheck2(
|
|
1099
|
+
uid.value == null || typeof uid.value === 'string',
|
|
1100
|
+
'concat(uid, \'-listbox\'):uid',
|
|
1101
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.',
|
|
1102
|
+
))
|
|
1103
|
+
) return guardedBinding15Previous
|
|
1006
1104
|
const candidate: any = concat(uid.value, '-listbox')
|
|
1007
1105
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding15Previous
|
|
1008
1106
|
return guardedBinding15Previous = candidate
|
|
@@ -1016,16 +1114,32 @@ const guardedBinding16 = computed(() => {
|
|
|
1016
1114
|
let guardedBinding17Previous: any
|
|
1017
1115
|
const guardedBinding17 = computed(() => {
|
|
1018
1116
|
if (
|
|
1019
|
-
!((
|
|
1020
|
-
|
|
1117
|
+
!(htmlNextAuthoredCheck2(
|
|
1118
|
+
active.value == null || Number.isInteger(active.value),
|
|
1119
|
+
'createIndex = active:active',
|
|
1120
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference active does not satisfy its declared type.',
|
|
1121
|
+
)
|
|
1122
|
+
&& htmlNextAuthoredCheck2(
|
|
1123
|
+
createIndex.value == null || Number.isInteger(createIndex.value),
|
|
1124
|
+
'createIndex = active:createIndex',
|
|
1125
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference createIndex does not satisfy its declared type.',
|
|
1126
|
+
))
|
|
1021
1127
|
) return guardedBinding17Previous
|
|
1022
1128
|
return guardedBinding17Previous = createIndex.value === active.value
|
|
1023
1129
|
})
|
|
1024
1130
|
let guardedBinding18Previous: any = null
|
|
1025
1131
|
const guardedBinding18 = computed(() => {
|
|
1026
1132
|
if (
|
|
1027
|
-
!((
|
|
1028
|
-
|
|
1133
|
+
!(htmlNextAuthoredCheck2(
|
|
1134
|
+
createIndex.value == null || Number.isInteger(createIndex.value),
|
|
1135
|
+
'concat(uid, \'-option-\', createIndex):createIndex',
|
|
1136
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference createIndex does not satisfy its declared type.',
|
|
1137
|
+
)
|
|
1138
|
+
&& htmlNextAuthoredCheck2(
|
|
1139
|
+
uid.value == null || typeof uid.value === 'string',
|
|
1140
|
+
'concat(uid, \'-option-\', createIndex):uid',
|
|
1141
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.',
|
|
1142
|
+
))
|
|
1029
1143
|
) return guardedBinding18Previous
|
|
1030
1144
|
const candidate: any = concat(uid.value, '-option-', createIndex.value)
|
|
1031
1145
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding18Previous
|
|
@@ -1033,35 +1147,61 @@ const guardedBinding18 = computed(() => {
|
|
|
1033
1147
|
})
|
|
1034
1148
|
let guardedBinding19Previous: any
|
|
1035
1149
|
const guardedBinding19 = computed(() => {
|
|
1036
|
-
if (
|
|
1037
|
-
|
|
1038
|
-
|
|
1150
|
+
if (
|
|
1151
|
+
!(htmlNextAuthoredCheck2(
|
|
1152
|
+
createIndex.value == null || Number.isInteger(createIndex.value),
|
|
1153
|
+
'createIndex:createIndex',
|
|
1154
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference createIndex does not satisfy its declared type.',
|
|
1155
|
+
))
|
|
1156
|
+
) return guardedBinding19Previous
|
|
1039
1157
|
return guardedBinding19Previous = createIndex.value
|
|
1040
1158
|
})
|
|
1041
1159
|
let guardedBinding20Previous: any = null
|
|
1042
1160
|
const guardedBinding20 = computed(() => {
|
|
1043
|
-
if (
|
|
1161
|
+
if (
|
|
1162
|
+
!(htmlNextAuthoredCheck2(
|
|
1163
|
+
raw.value == null || typeof raw.value === 'string',
|
|
1164
|
+
'concat(\'Create “\', raw, \'”\'):raw',
|
|
1165
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference raw does not satisfy its declared type.',
|
|
1166
|
+
))
|
|
1167
|
+
) return guardedBinding20Previous
|
|
1044
1168
|
const candidate: any = concat('Create “', raw.value, '”')
|
|
1045
1169
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding20Previous
|
|
1046
1170
|
return guardedBinding20Previous = candidate
|
|
1047
1171
|
})
|
|
1048
1172
|
let guardedBinding21Previous: any
|
|
1049
1173
|
const guardedBinding21 = computed(() => {
|
|
1050
|
-
if (
|
|
1174
|
+
if (
|
|
1175
|
+
!(htmlNextAuthoredCheck2(
|
|
1176
|
+
message.value == null || typeof message.value === 'string',
|
|
1177
|
+
'$message:message',
|
|
1178
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference message does not satisfy its declared type.',
|
|
1179
|
+
))
|
|
1180
|
+
) return guardedBinding21Previous
|
|
1051
1181
|
return guardedBinding21Previous = message.value
|
|
1052
1182
|
})
|
|
1053
1183
|
let guardedBinding22Previous: any = null
|
|
1054
1184
|
const guardedBinding22 = computed(() => {
|
|
1055
|
-
if (
|
|
1185
|
+
if (
|
|
1186
|
+
!(htmlNextAuthoredCheck2(
|
|
1187
|
+
uid.value == null || typeof uid.value === 'string',
|
|
1188
|
+
'concat(uid, \'-validation\'):uid',
|
|
1189
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference uid does not satisfy its declared type.',
|
|
1190
|
+
))
|
|
1191
|
+
) return guardedBinding22Previous
|
|
1056
1192
|
const candidate: any = concat(uid.value, '-validation')
|
|
1057
1193
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding22Previous
|
|
1058
1194
|
return guardedBinding22Previous = candidate
|
|
1059
1195
|
})
|
|
1060
1196
|
let guardedBinding23Previous: any
|
|
1061
1197
|
const guardedBinding23 = computed(() => {
|
|
1062
|
-
if (
|
|
1063
|
-
|
|
1064
|
-
|
|
1198
|
+
if (
|
|
1199
|
+
!(htmlNextAuthoredCheck2(
|
|
1200
|
+
statusText.value == null || typeof statusText.value === 'string',
|
|
1201
|
+
'$statusText:statusText',
|
|
1202
|
+
'./components/ui-combobox/ui-combobox.html: HR007: Reference statusText does not satisfy its declared type.',
|
|
1203
|
+
))
|
|
1204
|
+
) return guardedBinding23Previous
|
|
1065
1205
|
return guardedBinding23Previous = statusText.value
|
|
1066
1206
|
})
|
|
1067
1207
|
provide('html-next:ui-combobox:internalItems', internalItems)
|
|
@@ -1111,16 +1251,18 @@ const hostState = computed(() =>
|
|
|
1111
1251
|
].filter(Boolean).join(' ')
|
|
1112
1252
|
)
|
|
1113
1253
|
|
|
1114
|
-
const isQueryChangeDetail = (
|
|
1115
|
-
detail
|
|
1254
|
+
const isQueryChangeDetail = (
|
|
1255
|
+
detail: unknown,
|
|
1256
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
1116
1257
|
&& typeof (detail as Record<string, unknown>)['query'] === 'string'
|
|
1117
1258
|
&& typeof (detail as Record<string, unknown>)['display'] === 'string'
|
|
1118
1259
|
&& ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
|
|
1119
1260
|
|| (detail as Record<string, unknown>)['trigger'] === 'pointer'
|
|
1120
1261
|
|| (detail as Record<string, unknown>)['trigger'] === 'programmatic')
|
|
1121
|
-
&& Object.keys(detail as object).every((key) => ['query', 'display', 'trigger'].includes(key))
|
|
1122
|
-
const isValueChangeDetail = (
|
|
1123
|
-
detail
|
|
1262
|
+
&& Object.keys(detail as object).every((key) => ['query', 'display', 'trigger'].includes(key)))
|
|
1263
|
+
const isValueChangeDetail = (
|
|
1264
|
+
detail: unknown,
|
|
1265
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
1124
1266
|
&& (typeof (detail as Record<string, unknown>)['value'] === 'string'
|
|
1125
1267
|
|| (detail as Record<string, unknown>)['value'] === null)
|
|
1126
1268
|
&& typeof (detail as Record<string, unknown>)['query'] === 'string'
|
|
@@ -1154,7 +1296,8 @@ const isValueChangeDetail = (detail: unknown): boolean =>
|
|
|
1154
1296
|
=== 'object'
|
|
1155
1297
|
&& !Array.isArray(
|
|
1156
1298
|
((detail as Record<string, unknown>)['option'] as Record<string, unknown>)['tag'],
|
|
1157
|
-
)
|
|
1299
|
+
)
|
|
1300
|
+
&& typeof (((detail as Record<string, unknown>)['option'] as Record<string, unknown>)[
|
|
1158
1301
|
'tag'
|
|
1159
1302
|
] as Record<string, unknown>)['label'] === 'string'
|
|
1160
1303
|
&& ((((detail as Record<string, unknown>)['option'] as Record<string, unknown>)[
|
|
@@ -1188,9 +1331,7 @@ const isValueChangeDetail = (detail: unknown): boolean =>
|
|
|
1188
1331
|
((detail as Record<string, unknown>)['option'] as Record<string, unknown>)[
|
|
1189
1332
|
'tag'
|
|
1190
1333
|
] as object,
|
|
1191
|
-
).every((key) =>
|
|
1192
|
-
['label', 'tone', 'color'].includes(key)
|
|
1193
|
-
)))
|
|
1334
|
+
).every((key) => ['label', 'tone', 'color'].includes(key))))
|
|
1194
1335
|
&& Object.keys((detail as Record<string, unknown>)['option'] as object).every((key) =>
|
|
1195
1336
|
['id', 'value', 'label', 'group', 'disabled', 'description', 'tag'].includes(key)
|
|
1196
1337
|
)) || (detail as Record<string, unknown>)['option'] === null)
|
|
@@ -1203,9 +1344,10 @@ const isValueChangeDetail = (detail: unknown): boolean =>
|
|
|
1203
1344
|
|| (detail as Record<string, unknown>)['trigger'] === 'programmatic')
|
|
1204
1345
|
&& Object.keys(detail as object).every((key) =>
|
|
1205
1346
|
['value', 'query', 'option', 'kind', 'trigger'].includes(key)
|
|
1206
|
-
)
|
|
1207
|
-
const isItemsChangeDetail = (
|
|
1208
|
-
|
|
1347
|
+
))
|
|
1348
|
+
const isItemsChangeDetail = (
|
|
1349
|
+
detail: unknown,
|
|
1350
|
+
): boolean => (Array.isArray(detail)
|
|
1209
1351
|
&& (detail as unknown[]).every((
|
|
1210
1352
|
item: unknown,
|
|
1211
1353
|
) => (item !== null && typeof item === 'object' && !Array.isArray(item)
|
|
@@ -1248,9 +1390,10 @@ const isItemsChangeDetail = (detail: unknown): boolean =>
|
|
|
1248
1390
|
&& Object.keys(item as object).every((key) =>
|
|
1249
1391
|
['id', 'value', 'label', 'group', 'disabled', 'description', 'tag'].includes(key)
|
|
1250
1392
|
))
|
|
1251
|
-
)
|
|
1252
|
-
const isValidationChangeDetail = (
|
|
1253
|
-
detail
|
|
1393
|
+
))
|
|
1394
|
+
const isValidationChangeDetail = (
|
|
1395
|
+
detail: unknown,
|
|
1396
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
1254
1397
|
&& ((detail as Record<string, unknown>)['status'] === 'pristine'
|
|
1255
1398
|
|| (detail as Record<string, unknown>)['status'] === 'pending'
|
|
1256
1399
|
|| (detail as Record<string, unknown>)['status'] === 'valid'
|
|
@@ -1271,16 +1414,15 @@ const isValidationChangeDetail = (detail: unknown): boolean =>
|
|
|
1271
1414
|
&& ((item as Record<string, unknown>)['severity'] === undefined
|
|
1272
1415
|
|| ((item as Record<string, unknown>)['severity'] === 'error'
|
|
1273
1416
|
|| (item as Record<string, unknown>)['severity'] === 'warning'))
|
|
1274
|
-
&& Object.keys(item as object).every((key) =>
|
|
1275
|
-
['message', 'path', 'severity'].includes(key)
|
|
1276
|
-
))
|
|
1417
|
+
&& Object.keys(item as object).every((key) => ['message', 'path', 'severity'].includes(key)))
|
|
1277
1418
|
))
|
|
1278
1419
|
&& ((detail as Record<string, unknown>)['output'] === undefined || true)
|
|
1279
1420
|
&& Object.keys(detail as object).every((key) =>
|
|
1280
1421
|
['status', 'touched', 'dirty', 'issues', 'output'].includes(key)
|
|
1281
|
-
)
|
|
1282
|
-
const isAddItemDetail = (
|
|
1283
|
-
detail
|
|
1422
|
+
))
|
|
1423
|
+
const isAddItemDetail = (
|
|
1424
|
+
detail: unknown,
|
|
1425
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
1284
1426
|
&& ((detail as Record<string, unknown>)['item'] !== null
|
|
1285
1427
|
&& typeof (detail as Record<string, unknown>)['item'] === 'object'
|
|
1286
1428
|
&& !Array.isArray((detail as Record<string, unknown>)['item'])
|
|
@@ -1310,7 +1452,8 @@ const isAddItemDetail = (detail: unknown): boolean =>
|
|
|
1310
1452
|
=== 'object'
|
|
1311
1453
|
&& !Array.isArray(
|
|
1312
1454
|
((detail as Record<string, unknown>)['item'] as Record<string, unknown>)['tag'],
|
|
1313
|
-
)
|
|
1455
|
+
)
|
|
1456
|
+
&& typeof (((detail as Record<string, unknown>)['item'] as Record<string, unknown>)[
|
|
1314
1457
|
'tag'
|
|
1315
1458
|
] as Record<string, unknown>)['label'] === 'string'
|
|
1316
1459
|
&& ((((detail as Record<string, unknown>)['item'] as Record<string, unknown>)[
|
|
@@ -1342,9 +1485,7 @@ const isAddItemDetail = (detail: unknown): boolean =>
|
|
|
1342
1485
|
] as Record<string, unknown>)['color'] === 'string')
|
|
1343
1486
|
&& Object.keys(
|
|
1344
1487
|
((detail as Record<string, unknown>)['item'] as Record<string, unknown>)['tag'] as object,
|
|
1345
|
-
).every((key) =>
|
|
1346
|
-
['label', 'tone', 'color'].includes(key)
|
|
1347
|
-
)))
|
|
1488
|
+
).every((key) => ['label', 'tone', 'color'].includes(key))))
|
|
1348
1489
|
&& Object.keys((detail as Record<string, unknown>)['item'] as object).every((key) =>
|
|
1349
1490
|
['id', 'value', 'label', 'group', 'disabled', 'description', 'tag'].includes(key)
|
|
1350
1491
|
))
|
|
@@ -1352,18 +1493,18 @@ const isAddItemDetail = (detail: unknown): boolean =>
|
|
|
1352
1493
|
&& ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
|
|
1353
1494
|
|| (detail as Record<string, unknown>)['trigger'] === 'pointer'
|
|
1354
1495
|
|| (detail as Record<string, unknown>)['trigger'] === 'programmatic')
|
|
1355
|
-
&& Object.keys(detail as object).every((key) =>
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
1496
|
+
&& Object.keys(detail as object).every((key) => ['item', 'index', 'trigger'].includes(key)))
|
|
1497
|
+
const isCreateItemDetail = (
|
|
1498
|
+
detail: unknown,
|
|
1499
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
1360
1500
|
&& typeof (detail as Record<string, unknown>)['query'] === 'string'
|
|
1361
1501
|
&& ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
|
|
1362
1502
|
|| (detail as Record<string, unknown>)['trigger'] === 'pointer'
|
|
1363
1503
|
|| (detail as Record<string, unknown>)['trigger'] === 'programmatic')
|
|
1364
|
-
&& Object.keys(detail as object).every((key) => ['query', 'trigger'].includes(key))
|
|
1365
|
-
const isSelectedValuesChangeDetail = (
|
|
1366
|
-
detail
|
|
1504
|
+
&& Object.keys(detail as object).every((key) => ['query', 'trigger'].includes(key)))
|
|
1505
|
+
const isSelectedValuesChangeDetail = (
|
|
1506
|
+
detail: unknown,
|
|
1507
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
1367
1508
|
&& (Array.isArray((detail as Record<string, unknown>)['selectedValues'])
|
|
1368
1509
|
&& ((detail as Record<string, unknown>)['selectedValues'] as unknown[]).every((item: unknown) =>
|
|
1369
1510
|
typeof item === 'string'
|
|
@@ -1371,7 +1512,7 @@ const isSelectedValuesChangeDetail = (detail: unknown): boolean =>
|
|
|
1371
1512
|
&& ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
|
|
1372
1513
|
|| (detail as Record<string, unknown>)['trigger'] === 'pointer'
|
|
1373
1514
|
|| (detail as Record<string, unknown>)['trigger'] === 'programmatic')
|
|
1374
|
-
&& Object.keys(detail as object).every((key) => ['selectedValues', 'trigger'].includes(key))
|
|
1515
|
+
&& Object.keys(detail as object).every((key) => ['selectedValues', 'trigger'].includes(key)))
|
|
1375
1516
|
const dispatch = createDispatch(root, emit as (name: string, detail: unknown) => void, {
|
|
1376
1517
|
checks: {
|
|
1377
1518
|
'query-change': isQueryChangeDetail,
|
|
@@ -1389,9 +1530,257 @@ const dispatch = createDispatch(root, emit as (name: string, detail: unknown) =>
|
|
|
1389
1530
|
modeled: ['query', 'selectedValues', 'value'],
|
|
1390
1531
|
})
|
|
1391
1532
|
|
|
1392
|
-
|
|
1533
|
+
useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
1393
1534
|
root,
|
|
1394
1535
|
dispatch,
|
|
1536
|
+
acceptsState: (name: string, keys: readonly string[], value: unknown) =>
|
|
1537
|
+
acceptsControllerWrite(
|
|
1538
|
+
value,
|
|
1539
|
+
({
|
|
1540
|
+
internalItems: {
|
|
1541
|
+
kind: 'list',
|
|
1542
|
+
item: {
|
|
1543
|
+
kind: 'object',
|
|
1544
|
+
fields: [
|
|
1545
|
+
{ name: 'id', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
1546
|
+
{ name: 'value', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
1547
|
+
{ name: 'label', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
1548
|
+
{ name: 'group', type: { kind: 'terminal', name: 'string' }, optional: true },
|
|
1549
|
+
{ name: 'disabled', type: { kind: 'terminal', name: 'boolean' }, optional: true },
|
|
1550
|
+
{ name: 'description', type: { kind: 'terminal', name: 'string' }, optional: true },
|
|
1551
|
+
{
|
|
1552
|
+
name: 'tag',
|
|
1553
|
+
type: {
|
|
1554
|
+
kind: 'object',
|
|
1555
|
+
fields: [{
|
|
1556
|
+
name: 'label',
|
|
1557
|
+
type: { kind: 'terminal', name: 'string' },
|
|
1558
|
+
optional: false,
|
|
1559
|
+
}, {
|
|
1560
|
+
name: 'tone',
|
|
1561
|
+
type: {
|
|
1562
|
+
kind: 'constrained',
|
|
1563
|
+
base: { kind: 'terminal', name: 'keyword' },
|
|
1564
|
+
values: ['neutral', 'accent', 'info', 'success', 'warning', 'danger'],
|
|
1565
|
+
},
|
|
1566
|
+
optional: true,
|
|
1567
|
+
}, { name: 'color', type: { kind: 'terminal', name: 'string' }, optional: true }],
|
|
1568
|
+
open: false,
|
|
1569
|
+
},
|
|
1570
|
+
optional: true,
|
|
1571
|
+
},
|
|
1572
|
+
],
|
|
1573
|
+
open: false,
|
|
1574
|
+
},
|
|
1575
|
+
},
|
|
1576
|
+
raw: { kind: 'terminal', name: 'string' },
|
|
1577
|
+
display: { kind: 'terminal', name: 'string' },
|
|
1578
|
+
selected: {
|
|
1579
|
+
kind: 'union',
|
|
1580
|
+
members: [{ kind: 'terminal', name: 'string' }, { kind: 'terminal', name: 'null' }],
|
|
1581
|
+
},
|
|
1582
|
+
expanded: { kind: 'terminal', name: 'boolean' },
|
|
1583
|
+
rows: {
|
|
1584
|
+
kind: 'list',
|
|
1585
|
+
item: {
|
|
1586
|
+
kind: 'object',
|
|
1587
|
+
fields: [
|
|
1588
|
+
{ name: 'id', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
1589
|
+
{ name: 'value', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
1590
|
+
{ name: 'label', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
1591
|
+
{ name: 'group', type: { kind: 'terminal', name: 'string' }, optional: true },
|
|
1592
|
+
{ name: 'disabled', type: { kind: 'terminal', name: 'boolean' }, optional: false },
|
|
1593
|
+
{ name: 'selected', type: { kind: 'terminal', name: 'boolean' }, optional: false },
|
|
1594
|
+
{ name: 'description', type: { kind: 'terminal', name: 'string' }, optional: true },
|
|
1595
|
+
{
|
|
1596
|
+
name: 'tag',
|
|
1597
|
+
type: {
|
|
1598
|
+
kind: 'object',
|
|
1599
|
+
fields: [{
|
|
1600
|
+
name: 'label',
|
|
1601
|
+
type: { kind: 'terminal', name: 'string' },
|
|
1602
|
+
optional: false,
|
|
1603
|
+
}, {
|
|
1604
|
+
name: 'tone',
|
|
1605
|
+
type: {
|
|
1606
|
+
kind: 'constrained',
|
|
1607
|
+
base: { kind: 'terminal', name: 'keyword' },
|
|
1608
|
+
values: ['neutral', 'accent', 'info', 'success', 'warning', 'danger'],
|
|
1609
|
+
},
|
|
1610
|
+
optional: true,
|
|
1611
|
+
}, { name: 'color', type: { kind: 'terminal', name: 'string' }, optional: true }],
|
|
1612
|
+
open: false,
|
|
1613
|
+
},
|
|
1614
|
+
optional: true,
|
|
1615
|
+
},
|
|
1616
|
+
],
|
|
1617
|
+
open: false,
|
|
1618
|
+
},
|
|
1619
|
+
},
|
|
1620
|
+
active: { kind: 'terminal', name: 'integer' },
|
|
1621
|
+
helpOpen: { kind: 'terminal', name: 'boolean' },
|
|
1622
|
+
lookupError: { kind: 'terminal', name: 'string' },
|
|
1623
|
+
validation: {
|
|
1624
|
+
kind: 'object',
|
|
1625
|
+
fields: [
|
|
1626
|
+
{
|
|
1627
|
+
name: 'status',
|
|
1628
|
+
type: {
|
|
1629
|
+
kind: 'constrained',
|
|
1630
|
+
base: { kind: 'terminal', name: 'keyword' },
|
|
1631
|
+
values: ['pristine', 'pending', 'valid', 'warning', 'error'],
|
|
1632
|
+
},
|
|
1633
|
+
optional: false,
|
|
1634
|
+
},
|
|
1635
|
+
{ name: 'touched', type: { kind: 'terminal', name: 'boolean' }, optional: false },
|
|
1636
|
+
{ name: 'dirty', type: { kind: 'terminal', name: 'boolean' }, optional: false },
|
|
1637
|
+
{
|
|
1638
|
+
name: 'issues',
|
|
1639
|
+
type: {
|
|
1640
|
+
kind: 'list',
|
|
1641
|
+
item: {
|
|
1642
|
+
kind: 'object',
|
|
1643
|
+
fields: [{
|
|
1644
|
+
name: 'message',
|
|
1645
|
+
type: { kind: 'terminal', name: 'string' },
|
|
1646
|
+
optional: false,
|
|
1647
|
+
}],
|
|
1648
|
+
open: false,
|
|
1649
|
+
},
|
|
1650
|
+
},
|
|
1651
|
+
optional: false,
|
|
1652
|
+
},
|
|
1653
|
+
],
|
|
1654
|
+
open: true,
|
|
1655
|
+
},
|
|
1656
|
+
uid: { kind: 'terminal', name: 'string' },
|
|
1657
|
+
submitted: { kind: 'terminal', name: 'string' },
|
|
1658
|
+
groups: {
|
|
1659
|
+
kind: 'list',
|
|
1660
|
+
item: {
|
|
1661
|
+
kind: 'object',
|
|
1662
|
+
fields: [
|
|
1663
|
+
{ name: 'name', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
1664
|
+
{
|
|
1665
|
+
name: 'role',
|
|
1666
|
+
type: {
|
|
1667
|
+
kind: 'constrained',
|
|
1668
|
+
base: { kind: 'terminal', name: 'keyword' },
|
|
1669
|
+
values: ['group', 'presentation'],
|
|
1670
|
+
},
|
|
1671
|
+
optional: false,
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
name: 'label',
|
|
1675
|
+
type: {
|
|
1676
|
+
kind: 'union',
|
|
1677
|
+
members: [{ kind: 'terminal', name: 'string' }, {
|
|
1678
|
+
kind: 'terminal',
|
|
1679
|
+
name: 'null',
|
|
1680
|
+
}],
|
|
1681
|
+
},
|
|
1682
|
+
optional: false,
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
name: 'rows',
|
|
1686
|
+
type: {
|
|
1687
|
+
kind: 'list',
|
|
1688
|
+
item: {
|
|
1689
|
+
kind: 'object',
|
|
1690
|
+
fields: [{
|
|
1691
|
+
name: 'id',
|
|
1692
|
+
type: { kind: 'terminal', name: 'string' },
|
|
1693
|
+
optional: false,
|
|
1694
|
+
}, {
|
|
1695
|
+
name: 'value',
|
|
1696
|
+
type: { kind: 'terminal', name: 'string' },
|
|
1697
|
+
optional: false,
|
|
1698
|
+
}, {
|
|
1699
|
+
name: 'label',
|
|
1700
|
+
type: { kind: 'terminal', name: 'string' },
|
|
1701
|
+
optional: false,
|
|
1702
|
+
}, {
|
|
1703
|
+
name: 'group',
|
|
1704
|
+
type: { kind: 'terminal', name: 'string' },
|
|
1705
|
+
optional: true,
|
|
1706
|
+
}, {
|
|
1707
|
+
name: 'disabled',
|
|
1708
|
+
type: { kind: 'terminal', name: 'boolean' },
|
|
1709
|
+
optional: false,
|
|
1710
|
+
}, {
|
|
1711
|
+
name: 'selected',
|
|
1712
|
+
type: { kind: 'terminal', name: 'boolean' },
|
|
1713
|
+
optional: false,
|
|
1714
|
+
}, {
|
|
1715
|
+
name: 'description',
|
|
1716
|
+
type: { kind: 'terminal', name: 'string' },
|
|
1717
|
+
optional: true,
|
|
1718
|
+
}, {
|
|
1719
|
+
name: 'tag',
|
|
1720
|
+
type: {
|
|
1721
|
+
kind: 'object',
|
|
1722
|
+
fields: [{
|
|
1723
|
+
name: 'label',
|
|
1724
|
+
type: { kind: 'terminal', name: 'string' },
|
|
1725
|
+
optional: false,
|
|
1726
|
+
}, {
|
|
1727
|
+
name: 'tone',
|
|
1728
|
+
type: {
|
|
1729
|
+
kind: 'constrained',
|
|
1730
|
+
base: { kind: 'terminal', name: 'keyword' },
|
|
1731
|
+
values: ['neutral', 'accent', 'info', 'success', 'warning', 'danger'],
|
|
1732
|
+
},
|
|
1733
|
+
optional: true,
|
|
1734
|
+
}, {
|
|
1735
|
+
name: 'color',
|
|
1736
|
+
type: { kind: 'terminal', name: 'string' },
|
|
1737
|
+
optional: true,
|
|
1738
|
+
}],
|
|
1739
|
+
open: false,
|
|
1740
|
+
},
|
|
1741
|
+
optional: true,
|
|
1742
|
+
}, {
|
|
1743
|
+
name: 'index',
|
|
1744
|
+
type: { kind: 'terminal', name: 'integer' },
|
|
1745
|
+
optional: false,
|
|
1746
|
+
}, {
|
|
1747
|
+
name: 'labelledBy',
|
|
1748
|
+
type: {
|
|
1749
|
+
kind: 'union',
|
|
1750
|
+
members: [{ kind: 'terminal', name: 'string' }, {
|
|
1751
|
+
kind: 'terminal',
|
|
1752
|
+
name: 'null',
|
|
1753
|
+
}],
|
|
1754
|
+
},
|
|
1755
|
+
optional: false,
|
|
1756
|
+
}, {
|
|
1757
|
+
name: 'detail',
|
|
1758
|
+
type: {
|
|
1759
|
+
kind: 'union',
|
|
1760
|
+
members: [{ kind: 'terminal', name: 'string' }, {
|
|
1761
|
+
kind: 'terminal',
|
|
1762
|
+
name: 'null',
|
|
1763
|
+
}],
|
|
1764
|
+
},
|
|
1765
|
+
optional: false,
|
|
1766
|
+
}],
|
|
1767
|
+
open: false,
|
|
1768
|
+
},
|
|
1769
|
+
},
|
|
1770
|
+
optional: false,
|
|
1771
|
+
},
|
|
1772
|
+
],
|
|
1773
|
+
open: false,
|
|
1774
|
+
},
|
|
1775
|
+
},
|
|
1776
|
+
creatable: { kind: 'terminal', name: 'boolean' },
|
|
1777
|
+
createIndex: { kind: 'terminal', name: 'integer' },
|
|
1778
|
+
message: { kind: 'terminal', name: 'string' },
|
|
1779
|
+
statusText: { kind: 'terminal', name: 'string' },
|
|
1780
|
+
validationStatus: { kind: 'terminal', name: 'string' },
|
|
1781
|
+
} as Record<string, any>)[name],
|
|
1782
|
+
keys,
|
|
1783
|
+
),
|
|
1395
1784
|
controllerSource: {
|
|
1396
1785
|
specifier: '../components/ui-combobox/ui-combobox.js',
|
|
1397
1786
|
definition: './components/ui-combobox/ui-combobox.html',
|
|
@@ -1462,43 +1851,6 @@ const { host, ready } = useComponentHost(() => import('../components/ui-combobox
|
|
|
1462
1851
|
},
|
|
1463
1852
|
})
|
|
1464
1853
|
|
|
1465
|
-
defineExpose({
|
|
1466
|
-
validate: async (...args: unknown[]) => {
|
|
1467
|
-
const controllerModule = await ready()
|
|
1468
|
-
if (controllerModule === undefined) {
|
|
1469
|
-
throw new TypeError('Controller method `validate` is not ready for <ui-combobox>.')
|
|
1470
|
-
}
|
|
1471
|
-
const method = Reflect.get(controllerModule, 'validate')
|
|
1472
|
-
if (typeof method !== 'function') {
|
|
1473
|
-
throw Object.assign(new Error('HJ003: Controller does not export method `validate`.'), {
|
|
1474
|
-
name: 'HtmlDiagnosticError',
|
|
1475
|
-
diagnostic: Object.freeze({
|
|
1476
|
-
code: 'HJ003',
|
|
1477
|
-
message: 'Controller does not export method `validate`.',
|
|
1478
|
-
}),
|
|
1479
|
-
})
|
|
1480
|
-
}
|
|
1481
|
-
return method(host, ...args)
|
|
1482
|
-
},
|
|
1483
|
-
focusInput: async (...args: unknown[]) => {
|
|
1484
|
-
const controllerModule = await ready()
|
|
1485
|
-
if (controllerModule === undefined) {
|
|
1486
|
-
throw new TypeError('Controller method `focusInput` is not ready for <ui-combobox>.')
|
|
1487
|
-
}
|
|
1488
|
-
const method = Reflect.get(controllerModule, 'focusInput')
|
|
1489
|
-
if (typeof method !== 'function') {
|
|
1490
|
-
throw Object.assign(new Error('HJ003: Controller does not export method `focusInput`.'), {
|
|
1491
|
-
name: 'HtmlDiagnosticError',
|
|
1492
|
-
diagnostic: Object.freeze({
|
|
1493
|
-
code: 'HJ003',
|
|
1494
|
-
message: 'Controller does not export method `focusInput`.',
|
|
1495
|
-
}),
|
|
1496
|
-
})
|
|
1497
|
-
}
|
|
1498
|
-
return method(host, ...args)
|
|
1499
|
-
},
|
|
1500
|
-
})
|
|
1501
|
-
|
|
1502
1854
|
function text(value: unknown): string {
|
|
1503
1855
|
if (Array.isArray(value)) return value.map(text).join(' ')
|
|
1504
1856
|
return value === null || value === undefined || typeof value === 'object' ? '' : String(value)
|
|
@@ -1589,7 +1941,7 @@ function uniqueKeys<T>(
|
|
|
1589
1941
|
}}<template v-if="checkedProps.required">
|
|
1590
1942
|
*</template></label>
|
|
1591
1943
|
<div class="control">
|
|
1592
|
-
<div class="field" ref="
|
|
1944
|
+
<div class="field" ref="fieldElement">
|
|
1593
1945
|
<div class="entry">
|
|
1594
1946
|
<slot name="start" />
|
|
1595
1947
|
<template v-if="checkedProps.multiple"><KeyedBoundary><button
|
|
@@ -1618,7 +1970,7 @@ function uniqueKeys<T>(
|
|
|
1618
1970
|
:disabled="checkedProps.disabled ?? undefined"
|
|
1619
1971
|
:readonly="checkedProps.readonly ?? undefined"
|
|
1620
1972
|
:required="guardedBinding7"
|
|
1621
|
-
ref="
|
|
1973
|
+
ref="inputElement"
|
|
1622
1974
|
>
|
|
1623
1975
|
</div>
|
|
1624
1976
|
<input
|
|
@@ -1708,13 +2060,13 @@ function uniqueKeys<T>(
|
|
|
1708
2060
|
:id="guardedBinding12"
|
|
1709
2061
|
:for="guardedBinding13"
|
|
1710
2062
|
>{{ checkedProps.help }}</UiTooltip>
|
|
1711
|
-
<div class="popup" :hidden="guardedBinding14" ref="
|
|
2063
|
+
<div class="popup" :hidden="guardedBinding14" ref="popupElement">
|
|
1712
2064
|
<div
|
|
1713
2065
|
role="listbox"
|
|
1714
2066
|
:id="guardedBinding15"
|
|
1715
2067
|
:aria-label="guardedBinding16"
|
|
1716
2068
|
:aria-busy="checkedProps.loading ?? undefined"
|
|
1717
|
-
ref="
|
|
2069
|
+
ref="listboxElement"
|
|
1718
2070
|
>
|
|
1719
2071
|
<KeyedBoundary><div
|
|
1720
2072
|
v-for="group in uniqueKeys(groups, (group, indexLoop, loop) => group.name)"
|
|
@@ -1789,7 +2141,7 @@ function uniqueKeys<T>(
|
|
|
1789
2141
|
<div class="sr-only" role="status" aria-live="polite" aria-atomic="true">
|
|
1790
2142
|
{{ guardedBinding23 }}
|
|
1791
2143
|
</div>
|
|
1792
|
-
<div class="authored-options" hidden="" aria-hidden="true" ref="
|
|
2144
|
+
<div class="authored-options" hidden="" aria-hidden="true" ref="optionsElement"><slot /></div>
|
|
1793
2145
|
</div>
|
|
1794
2146
|
</template>
|
|
1795
2147
|
|