@threadlabs/looma 0.29.18 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ui-combobox/ui-combobox.html +47 -2
- package/components/ui-combobox/ui-combobox.js +2 -1
- package/components/ui-cover/ui-cover.html +2 -5
- package/components/ui-form-field/ui-form-field.html +1 -1
- package/components/ui-menu/ui-menu.js +2 -1
- package/components/ui-popover/ui-popover.js +2 -1
- package/components/ui-reel/ui-reel.html +7 -10
- package/components/ui-switcher/ui-switcher.html +17 -22
- package/components/ui-tooltip/ui-tooltip.js +2 -0
- package/dist/index.js +1 -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 +3 -6
- package/styles/ui-description-item.css +1 -1
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +1 -1
- package/styles/ui-disclosure.css +1 -1
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-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 +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 +8 -11
- package/styles/ui-scroll-area.css +1 -1
- package/styles/ui-search-result-row.css +1 -1
- package/styles/ui-search-shell.css +1 -1
- package/styles/ui-section.css +1 -1
- package/styles/ui-select.css +1 -1
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-swatch.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +23 -28
- 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 +10 -1
- package/vanilla/UiActionBar.js +3 -2
- package/vanilla/UiAffordanceScope.d.ts +10 -1
- package/vanilla/UiAffordanceScope.js +3 -2
- package/vanilla/UiAvatar.d.ts +10 -1
- package/vanilla/UiAvatar.js +3 -2
- package/vanilla/UiAvatarGroup.d.ts +10 -1
- package/vanilla/UiAvatarGroup.js +3 -2
- package/vanilla/UiBadge.d.ts +10 -1
- package/vanilla/UiBadge.js +3 -2
- package/vanilla/UiBreadcrumbItem.d.ts +10 -1
- package/vanilla/UiBreadcrumbItem.js +3 -2
- package/vanilla/UiBreadcrumbs.d.ts +10 -1
- package/vanilla/UiBreadcrumbs.js +3 -2
- package/vanilla/UiButton.d.ts +10 -1
- package/vanilla/UiButton.js +3 -2
- package/vanilla/UiCallout.d.ts +10 -1
- package/vanilla/UiCallout.js +3 -2
- package/vanilla/UiCard.d.ts +10 -1
- package/vanilla/UiCard.js +3 -2
- package/vanilla/UiCheckbox.d.ts +10 -1
- package/vanilla/UiCheckbox.js +3 -2
- package/vanilla/UiCluster.d.ts +10 -1
- package/vanilla/UiCluster.js +3 -2
- package/vanilla/UiCombobox.d.ts +14 -1
- package/vanilla/UiCombobox.js +34 -11
- package/vanilla/UiContainer.d.ts +10 -1
- package/vanilla/UiContainer.js +3 -2
- package/vanilla/UiContextMenu.d.ts +10 -1
- package/vanilla/UiContextMenu.js +3 -2
- package/vanilla/UiCover.d.ts +10 -1
- package/vanilla/UiCover.js +3 -2
- package/vanilla/UiDescriptionItem.d.ts +10 -1
- package/vanilla/UiDescriptionItem.js +3 -2
- package/vanilla/UiDescriptionList.d.ts +10 -1
- package/vanilla/UiDescriptionList.js +3 -2
- package/vanilla/UiDialog.d.ts +10 -1
- package/vanilla/UiDialog.js +3 -2
- package/vanilla/UiDisclosure.d.ts +10 -1
- package/vanilla/UiDisclosure.js +3 -2
- package/vanilla/UiEditable.d.ts +10 -1
- package/vanilla/UiEditable.js +3 -2
- package/vanilla/UiEditorBlockActions.d.ts +10 -1
- package/vanilla/UiEditorBlockActions.js +3 -2
- package/vanilla/UiEditorChipEditor.d.ts +10 -1
- package/vanilla/UiEditorChipEditor.js +3 -2
- package/vanilla/UiEditorCodeLanguage.d.ts +10 -1
- package/vanilla/UiEditorCodeLanguage.js +3 -2
- package/vanilla/UiEditorImageToolbar.d.ts +10 -1
- package/vanilla/UiEditorImageToolbar.js +3 -2
- package/vanilla/UiEditorInsertTableGrid.d.ts +10 -1
- package/vanilla/UiEditorInsertTableGrid.js +3 -2
- package/vanilla/UiEditorLinkCard.d.ts +10 -1
- package/vanilla/UiEditorLinkCard.js +3 -2
- package/vanilla/UiEditorLinkForm.d.ts +10 -1
- package/vanilla/UiEditorLinkForm.js +3 -2
- package/vanilla/UiEditorMentionMenu.d.ts +10 -1
- package/vanilla/UiEditorMentionMenu.js +3 -2
- package/vanilla/UiEditorMentionMenuItem.d.ts +10 -1
- package/vanilla/UiEditorMentionMenuItem.js +3 -2
- package/vanilla/UiEditorSlashMenu.d.ts +10 -1
- package/vanilla/UiEditorSlashMenu.js +3 -2
- package/vanilla/UiEditorSlashMenuGroup.d.ts +10 -1
- package/vanilla/UiEditorSlashMenuGroup.js +3 -2
- package/vanilla/UiEditorSlashMenuItem.d.ts +10 -1
- package/vanilla/UiEditorSlashMenuItem.js +3 -2
- package/vanilla/UiEditorSurface.d.ts +10 -1
- package/vanilla/UiEditorSurface.js +3 -2
- package/vanilla/UiEditorTableContextMenu.d.ts +10 -1
- package/vanilla/UiEditorTableContextMenu.js +3 -2
- package/vanilla/UiEditorTableOverlay.d.ts +10 -1
- package/vanilla/UiEditorTableOverlay.js +3 -2
- package/vanilla/UiEditorTableToolbar.d.ts +10 -1
- package/vanilla/UiEditorTableToolbar.js +3 -2
- package/vanilla/UiEditorToolbar.d.ts +10 -1
- package/vanilla/UiEditorToolbar.js +3 -2
- package/vanilla/UiFloatingActionButton.d.ts +10 -1
- package/vanilla/UiFloatingActionButton.js +3 -2
- package/vanilla/UiFormField.d.ts +10 -1
- package/vanilla/UiFormField.js +4 -3
- package/vanilla/UiGrid.d.ts +10 -1
- package/vanilla/UiGrid.js +3 -2
- package/vanilla/UiIcon.d.ts +10 -1
- package/vanilla/UiIcon.js +3 -2
- package/vanilla/UiIconButton.d.ts +10 -1
- package/vanilla/UiIconButton.js +3 -2
- package/vanilla/UiImage.d.ts +10 -1
- package/vanilla/UiImage.js +3 -2
- package/vanilla/UiInput.d.ts +10 -1
- package/vanilla/UiInput.js +3 -2
- package/vanilla/UiInputGroup.d.ts +10 -1
- package/vanilla/UiInputGroup.js +3 -2
- package/vanilla/UiList.d.ts +10 -1
- package/vanilla/UiList.js +3 -2
- package/vanilla/UiListItem.d.ts +10 -1
- package/vanilla/UiListItem.js +3 -2
- package/vanilla/UiListbox.d.ts +10 -1
- package/vanilla/UiListbox.js +3 -2
- package/vanilla/UiMenu.d.ts +10 -1
- package/vanilla/UiMenu.js +3 -2
- package/vanilla/UiMenuGroup.d.ts +10 -1
- package/vanilla/UiMenuGroup.js +3 -2
- package/vanilla/UiMenuItem.d.ts +10 -1
- package/vanilla/UiMenuItem.js +3 -2
- package/vanilla/UiMeter.d.ts +10 -1
- package/vanilla/UiMeter.js +3 -2
- package/vanilla/UiNavItem.d.ts +10 -1
- package/vanilla/UiNavItem.js +3 -2
- package/vanilla/UiPageHeader.d.ts +10 -1
- package/vanilla/UiPageHeader.js +3 -2
- package/vanilla/UiPopover.d.ts +10 -1
- package/vanilla/UiPopover.js +3 -2
- package/vanilla/UiRadio.d.ts +10 -1
- package/vanilla/UiRadio.js +3 -2
- package/vanilla/UiRadioGroup.d.ts +10 -1
- package/vanilla/UiRadioGroup.js +3 -2
- package/vanilla/UiReel.d.ts +10 -1
- package/vanilla/UiReel.js +3 -2
- package/vanilla/UiScrollArea.d.ts +10 -1
- package/vanilla/UiScrollArea.js +3 -2
- package/vanilla/UiSearchResultRow.d.ts +10 -1
- package/vanilla/UiSearchResultRow.js +3 -2
- package/vanilla/UiSearchShell.d.ts +10 -1
- package/vanilla/UiSearchShell.js +3 -2
- package/vanilla/UiSection.d.ts +10 -1
- package/vanilla/UiSection.js +3 -2
- package/vanilla/UiSelect.d.ts +10 -1
- package/vanilla/UiSelect.js +3 -2
- package/vanilla/UiSeparator.d.ts +10 -1
- package/vanilla/UiSeparator.js +3 -2
- package/vanilla/UiSidebar.d.ts +10 -1
- package/vanilla/UiSidebar.js +3 -2
- package/vanilla/UiSpinner.d.ts +10 -1
- package/vanilla/UiSpinner.js +3 -2
- package/vanilla/UiStack.d.ts +10 -1
- package/vanilla/UiStack.js +3 -2
- package/vanilla/UiStatusMessage.d.ts +10 -1
- package/vanilla/UiStatusMessage.js +3 -2
- package/vanilla/UiSwatch.d.ts +10 -1
- package/vanilla/UiSwatch.js +3 -2
- package/vanilla/UiSwitch.d.ts +10 -1
- package/vanilla/UiSwitch.js +3 -2
- package/vanilla/UiSwitcher.d.ts +10 -1
- package/vanilla/UiSwitcher.js +4 -3
- package/vanilla/UiTable.d.ts +10 -1
- package/vanilla/UiTable.js +3 -2
- package/vanilla/UiTabs.d.ts +10 -1
- package/vanilla/UiTabs.js +3 -2
- package/vanilla/UiText.d.ts +10 -1
- package/vanilla/UiText.js +3 -2
- package/vanilla/UiTextarea.d.ts +10 -1
- package/vanilla/UiTextarea.js +3 -2
- package/vanilla/UiToast.d.ts +10 -1
- package/vanilla/UiToast.js +3 -2
- package/vanilla/UiToastRegion.d.ts +10 -1
- package/vanilla/UiToastRegion.js +3 -2
- package/vanilla/UiTooltip.d.ts +10 -1
- package/vanilla/UiTooltip.js +3 -2
- package/vanilla/UiTopBar.d.ts +10 -1
- package/vanilla/UiTopBar.js +3 -2
- package/vanilla/UiTree.d.ts +10 -1
- package/vanilla/UiTree.js +3 -2
- package/vanilla/UiTreeItem.d.ts +10 -1
- package/vanilla/UiTreeItem.js +3 -2
- package/vue/UiActionBar.vue +1 -1
- package/vue/UiAffordanceScope.vue +2 -2
- package/vue/UiAvatar.vue +2 -2
- package/vue/UiAvatarGroup.vue +2 -2
- package/vue/UiBadge.vue +2 -2
- package/vue/UiBreadcrumbItem.vue +2 -2
- package/vue/UiBreadcrumbs.vue +1 -1
- package/vue/UiButton.vue +2 -2
- package/vue/UiCallout.vue +2 -2
- package/vue/UiCard.vue +2 -2
- package/vue/UiCheckbox.vue +2 -2
- package/vue/UiCluster.vue +2 -2
- package/vue/UiCombobox.d.ts +36 -13
- package/vue/UiCombobox.vue +130 -4
- package/vue/UiContainer.vue +2 -2
- package/vue/UiContextMenu.vue +1 -1
- package/vue/UiCover.vue +4 -7
- package/vue/UiDescriptionItem.vue +1 -1
- package/vue/UiDescriptionList.vue +2 -2
- package/vue/UiDialog.vue +2 -2
- package/vue/UiDisclosure.vue +2 -2
- package/vue/UiEditable.vue +2 -2
- package/vue/UiEditorBlockActions.vue +1 -1
- package/vue/UiEditorChipEditor.vue +1 -1
- package/vue/UiEditorCodeLanguage.vue +1 -1
- package/vue/UiEditorImageToolbar.vue +7 -4
- package/vue/UiEditorInsertTableGrid.vue +1 -1
- package/vue/UiEditorLinkCard.vue +1 -1
- package/vue/UiEditorLinkForm.vue +45 -45
- package/vue/UiEditorMentionMenu.vue +1 -1
- package/vue/UiEditorMentionMenuItem.vue +1 -1
- package/vue/UiEditorSlashMenu.vue +1 -1
- package/vue/UiEditorSlashMenuGroup.vue +1 -1
- package/vue/UiEditorSlashMenuItem.vue +1 -1
- package/vue/UiEditorSurface.vue +2 -2
- package/vue/UiEditorTableContextMenu.vue +1 -1
- package/vue/UiEditorTableOverlay.vue +1 -1
- package/vue/UiEditorTableToolbar.vue +1 -1
- package/vue/UiEditorToolbar.vue +2 -2
- package/vue/UiFloatingActionButton.vue +2 -2
- package/vue/UiFormField.d.ts +1 -1
- package/vue/UiFormField.vue +3 -3
- package/vue/UiGrid.vue +2 -2
- package/vue/UiIcon.vue +2 -2
- package/vue/UiIconButton.vue +2 -2
- package/vue/UiImage.vue +2 -2
- package/vue/UiInput.vue +2 -2
- package/vue/UiInputGroup.vue +2 -2
- package/vue/UiList.vue +2 -2
- package/vue/UiListItem.vue +2 -2
- package/vue/UiListbox.vue +1 -1
- package/vue/UiMenu.vue +2 -2
- package/vue/UiMenuGroup.vue +1 -1
- package/vue/UiMenuItem.vue +2 -2
- package/vue/UiMeter.vue +2 -2
- package/vue/UiNavItem.vue +2 -2
- package/vue/UiPageHeader.vue +2 -2
- package/vue/UiPopover.vue +2 -2
- package/vue/UiRadio.vue +2 -2
- package/vue/UiRadioGroup.vue +2 -2
- package/vue/UiReel.vue +9 -12
- package/vue/UiScrollArea.vue +3 -3
- package/vue/UiSearchResultRow.vue +2 -2
- package/vue/UiSearchShell.vue +1 -1
- package/vue/UiSection.vue +2 -2
- package/vue/UiSelect.vue +2 -2
- package/vue/UiSeparator.vue +2 -2
- package/vue/UiSidebar.vue +2 -2
- package/vue/UiSpinner.vue +2 -2
- package/vue/UiStack.vue +2 -2
- package/vue/UiStatusMessage.vue +2 -2
- package/vue/UiSwatch.vue +2 -2
- package/vue/UiSwitch.vue +2 -2
- package/vue/UiSwitcher.vue +23 -27
- package/vue/UiTable.vue +2 -2
- package/vue/UiTabs.vue +2 -2
- package/vue/UiText.vue +2 -2
- package/vue/UiTextarea.vue +2 -2
- package/vue/UiToast.vue +2 -2
- package/vue/UiToastRegion.vue +2 -2
- package/vue/UiTooltip.vue +2 -2
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.vue +2 -2
- package/vue/UiTreeItem.vue +2 -2
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +2 -2
- package/vue/chunks/UiAvatar.js +2 -2
- package/vue/chunks/UiAvatarGroup.js +2 -2
- package/vue/chunks/UiBadge.js +2 -2
- package/vue/chunks/UiBreadcrumbItem.js +2 -2
- package/vue/chunks/UiBreadcrumbs.js +1 -1
- 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 +2 -2
- package/vue/chunks/UiCluster.js +2 -2
- package/vue/chunks/UiCombobox.js +117 -5
- package/vue/chunks/UiContainer.js +2 -2
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiCover.js +2 -2
- package/vue/chunks/UiDescriptionItem.js +1 -1
- package/vue/chunks/UiDescriptionList.js +2 -2
- package/vue/chunks/UiDialog.js +2 -2
- package/vue/chunks/UiDisclosure.js +3 -3
- package/vue/chunks/UiEditable.js +2 -2
- package/vue/chunks/UiEditorImageToolbar.js +3 -2
- package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
- package/vue/chunks/UiEditorLinkForm.js +68 -71
- package/vue/chunks/UiEditorMentionMenu.js +1 -1
- package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
- package/vue/chunks/UiEditorSlashMenu.js +1 -1
- package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
- package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
- package/vue/chunks/UiEditorSurface.js +2 -2
- package/vue/chunks/UiEditorTableContextMenu.js +1 -1
- package/vue/chunks/UiEditorTableOverlay.js +2 -2
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/UiEditorToolbar.js +2 -2
- package/vue/chunks/UiFloatingActionButton.js +2 -2
- package/vue/chunks/UiFormField.js +3 -3
- 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 +2 -2
- package/vue/chunks/UiInput.js +2 -2
- package/vue/chunks/UiInputGroup.js +2 -2
- package/vue/chunks/UiList.js +2 -2
- package/vue/chunks/UiListItem.js +2 -2
- package/vue/chunks/UiListbox.js +1 -1
- package/vue/chunks/UiMenu.js +2 -2
- package/vue/chunks/UiMenuGroup.js +1 -1
- package/vue/chunks/UiMenuItem.js +2 -2
- 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 +2 -2
- package/vue/chunks/UiRadio.js +2 -2
- package/vue/chunks/UiRadioGroup.js +2 -2
- package/vue/chunks/UiReel.js +2 -2
- package/vue/chunks/UiScrollArea.js +4 -4
- package/vue/chunks/UiSearchResultRow.js +2 -2
- package/vue/chunks/UiSearchShell.js +1 -1
- package/vue/chunks/UiSection.js +2 -2
- package/vue/chunks/UiSelect.js +2 -2
- package/vue/chunks/UiSeparator.js +2 -2
- package/vue/chunks/UiSidebar.js +2 -2
- package/vue/chunks/UiSpinner.js +2 -2
- package/vue/chunks/UiStack.js +2 -2
- package/vue/chunks/UiStatusMessage.js +2 -2
- package/vue/chunks/UiSwatch.js +2 -2
- package/vue/chunks/UiSwitch.js +2 -2
- package/vue/chunks/UiSwitcher.js +2 -2
- package/vue/chunks/UiTable.js +2 -2
- package/vue/chunks/UiTabs.js +2 -2
- package/vue/chunks/UiText.js +2 -2
- package/vue/chunks/UiTextarea.js +2 -2
- package/vue/chunks/UiToast.js +2 -2
- package/vue/chunks/UiToastRegion.js +2 -2
- package/vue/chunks/UiTooltip.js +2 -2
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +2 -2
- package/vue/chunks/UiTreeItem.js +2 -2
- package/vue/chunks/_plugin-vue_export-helper.js +13 -3
- package/vue/components.css +69 -76
- package/vue/editor/index.js +169 -17
- package/vue/host.ts +9 -5
|
@@ -187,6 +187,20 @@
|
|
|
187
187
|
<prop name="index" required type="integer"></prop>
|
|
188
188
|
<prop name="labelledBy" required nullable type="string"></prop>
|
|
189
189
|
<prop name="detail" required nullable type="string"></prop>
|
|
190
|
+
<prop name="option" required type="object">
|
|
191
|
+
<prop name="id" required type="string"></prop>
|
|
192
|
+
<prop name="value" required type="string"></prop>
|
|
193
|
+
<prop name="label" required type="string"></prop>
|
|
194
|
+
<prop name="group" type="string"></prop>
|
|
195
|
+
<prop name="disabled" type="boolean"></prop>
|
|
196
|
+
<prop name="description" type="string"></prop>
|
|
197
|
+
<prop name="tag" type="object">
|
|
198
|
+
<prop name="label" required type="string"></prop>
|
|
199
|
+
<prop name="tone" type="keyword" values="neutral, accent, info, success, warning, danger"></prop>
|
|
200
|
+
<prop name="color" type="string"></prop>
|
|
201
|
+
</prop>
|
|
202
|
+
<prop name="selected" type="boolean"></prop>
|
|
203
|
+
</prop>
|
|
190
204
|
</prop>
|
|
191
205
|
</prop>
|
|
192
206
|
</prop>
|
|
@@ -371,6 +385,37 @@
|
|
|
371
385
|
</prop>
|
|
372
386
|
<prop name="trigger" required type="keyword" values="keyboard, pointer, programmatic"></prop>
|
|
373
387
|
</event>
|
|
388
|
+
<slot name="item">
|
|
389
|
+
<prop name="item" type="object" required>A chosen item in a multiple combobox: replaces its default badge.
|
|
390
|
+
<prop name="id" required type="string"></prop>
|
|
391
|
+
<prop name="value" required type="string"></prop>
|
|
392
|
+
<prop name="label" required type="string"></prop>
|
|
393
|
+
<prop name="group" type="string"></prop>
|
|
394
|
+
<prop name="disabled" type="boolean"></prop>
|
|
395
|
+
<prop name="description" type="string"></prop>
|
|
396
|
+
<prop name="tag" type="object">
|
|
397
|
+
<prop name="label" required type="string"></prop>
|
|
398
|
+
<prop name="tone" type="keyword" values="neutral, accent, info, success, warning, danger"></prop>
|
|
399
|
+
<prop name="color" type="string"></prop>
|
|
400
|
+
</prop>
|
|
401
|
+
</prop>
|
|
402
|
+
</slot>
|
|
403
|
+
<slot name="option">
|
|
404
|
+
<prop name="option" type="object" required>A suggestion in the list: replaces its default label, description and tag.
|
|
405
|
+
<prop name="id" required type="string"></prop>
|
|
406
|
+
<prop name="value" required type="string"></prop>
|
|
407
|
+
<prop name="label" required type="string"></prop>
|
|
408
|
+
<prop name="group" type="string"></prop>
|
|
409
|
+
<prop name="disabled" type="boolean"></prop>
|
|
410
|
+
<prop name="description" type="string"></prop>
|
|
411
|
+
<prop name="tag" type="object">
|
|
412
|
+
<prop name="label" required type="string"></prop>
|
|
413
|
+
<prop name="tone" type="keyword" values="neutral, accent, info, success, warning, danger"></prop>
|
|
414
|
+
<prop name="color" type="string"></prop>
|
|
415
|
+
</prop>
|
|
416
|
+
<prop name="selected" type="boolean"></prop>
|
|
417
|
+
</prop>
|
|
418
|
+
</slot>
|
|
374
419
|
</defs>
|
|
375
420
|
<div>
|
|
376
421
|
<label from:for="concat($uid, '-input')" class:sr-only="$labelVisibility = 'sr-only'">{$label}<template $if="$required">
|
|
@@ -390,7 +435,7 @@
|
|
|
390
435
|
from:disabled="$disabled or $readonly or $item.disabled"
|
|
391
436
|
from:aria-label="concat($item.label, ', press Delete or Backspace to remove')"
|
|
392
437
|
>
|
|
393
|
-
<slot
|
|
438
|
+
<slot name="item" from:item="$item"><ui-badge>{$item.label}</ui-badge></slot>
|
|
394
439
|
</button>
|
|
395
440
|
</template>
|
|
396
441
|
<input
|
|
@@ -485,7 +530,7 @@
|
|
|
485
530
|
from:aria-labelledby="$row.labelledBy"
|
|
486
531
|
from:aria-describedby="$row.detail"
|
|
487
532
|
>
|
|
488
|
-
<slot
|
|
533
|
+
<slot name="option" from:option="$row.option">
|
|
489
534
|
<span $if="$row.detail" class="detail">
|
|
490
535
|
<span class="line">
|
|
491
536
|
<span class="primary" from:id="concat($uid, '-option-', $row.index, '-label')">{$row.label}</span>
|
|
@@ -384,7 +384,8 @@ function connect(host) {
|
|
|
384
384
|
// The label names the option and the tag and description describe it, as a listbox option's
|
|
385
385
|
// label and description parts do; a row without either keeps its name from its content.
|
|
386
386
|
const detail = [row.tag ? `${uid}-option-${index}-tag` : "", row.description ? `${uid}-option-${index}-description` : ""].filter(Boolean).join(" ");
|
|
387
|
-
|
|
387
|
+
// The option slot receives the row as the consumer gave it, without the parts the listbox adds.
|
|
388
|
+
group.rows.push({ ...row, index, labelledBy: detail ? `${uid}-option-${index}-label` : null, detail: detail || null, option: row });
|
|
388
389
|
});
|
|
389
390
|
host.state.groups = groups;
|
|
390
391
|
host.state.creatable = canCreate();
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
:host {
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: column;
|
|
14
|
-
|
|
14
|
+
/* Safe: a child wider than the cover keeps its start edge in view instead of overflowing both ways. */
|
|
15
|
+
align-items: safe center;
|
|
15
16
|
justify-content: center;
|
|
16
17
|
gap: var(--ui-space-6);
|
|
17
18
|
box-sizing: border-box;
|
|
@@ -24,10 +25,6 @@
|
|
|
24
25
|
min-block-size: 100%;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
:host > :slotted(*) {
|
|
28
|
-
max-inline-size: 100%;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
28
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
32
29
|
:host[hidden] {
|
|
33
30
|
display: none;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<div>
|
|
14
14
|
<div class="label">
|
|
15
15
|
<slot name="label"></slot>
|
|
16
|
-
<span class="label-action"><slot name="
|
|
16
|
+
<span class="label-action"><slot name="labelAction"></slot></span>
|
|
17
17
|
</div>
|
|
18
18
|
<slot></slot>
|
|
19
19
|
<div class="help"><slot name="help"></slot></div>
|
|
@@ -43,9 +43,10 @@ function connect(host) {
|
|
|
43
43
|
const releaseAnchor = () => {
|
|
44
44
|
if (!anchor) return;
|
|
45
45
|
anchor.removeEventListener("click", onAnchorClick);
|
|
46
|
+
// Restore metadata without restoring a consumer's stale open state.
|
|
46
47
|
for (const [name, value] of Object.entries(anchorAria ?? {})) {
|
|
47
48
|
if (value === null) anchor.removeAttribute(name);
|
|
48
|
-
else anchor.setAttribute(name, value);
|
|
49
|
+
else anchor.setAttribute(name, name === "aria-expanded" ? "false" : value);
|
|
49
50
|
}
|
|
50
51
|
anchor = null;
|
|
51
52
|
anchorAria = null;
|
|
@@ -42,7 +42,8 @@ function connect(host) {
|
|
|
42
42
|
if (!anchor) return;
|
|
43
43
|
anchor.removeEventListener("click", onAnchorClick);
|
|
44
44
|
if (anchorExpanded === null) anchor.removeAttribute("aria-expanded");
|
|
45
|
-
|
|
45
|
+
// A consumer may have mounted us after setting true; released anchors are collapsed.
|
|
46
|
+
else anchor.setAttribute("aria-expanded", "false");
|
|
46
47
|
anchor = null;
|
|
47
48
|
anchorExpanded = null;
|
|
48
49
|
};
|
|
@@ -23,12 +23,14 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
:host {
|
|
26
|
-
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
27
|
-
--_ui-reel-item-width: var(--ui-reel-item-width);
|
|
28
|
-
|
|
29
26
|
--_reel-gap: var(--ui-space-4);
|
|
30
|
-
--_reel-item-width:
|
|
31
|
-
|
|
27
|
+
--_reel-item-width: max-content;
|
|
28
|
+
/* Sizes its children from its own box: one row of columns, each the item width, that never
|
|
29
|
+
shrinks to fit, so the reel scrolls once they overflow. */
|
|
30
|
+
display: grid;
|
|
31
|
+
grid-auto-flow: column;
|
|
32
|
+
grid-auto-columns: var(--ui-reel-item-width, var(--_reel-item-width));
|
|
33
|
+
justify-content: start;
|
|
32
34
|
inline-size: 100%;
|
|
33
35
|
gap: var(--ui-reel-gap, var(--_reel-gap));
|
|
34
36
|
min-inline-size: 0;
|
|
@@ -63,11 +65,6 @@
|
|
|
63
65
|
--_ui-scroll-fade-direction: to left;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
|
-
:host > :slotted(*) {
|
|
67
|
-
min-inline-size: 0;
|
|
68
|
-
flex: 0 0 var(--_ui-reel-item-width, var(--_reel-item-width));
|
|
69
|
-
}
|
|
70
|
-
|
|
71
68
|
:host([gap="xs"]) {
|
|
72
69
|
--_reel-gap: var(--ui-space-2);
|
|
73
70
|
}
|
|
@@ -26,27 +26,22 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
:host {
|
|
29
|
-
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
30
|
-
--_ui-switcher-threshold: var(--ui-switcher-threshold);
|
|
31
|
-
|
|
32
29
|
--_switcher-gap: var(--ui-space-4);
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
--_switcher-threshold: 30rem;
|
|
31
|
+
--_switcher-track: clamp(1px, (var(--ui-switcher-threshold, var(--_switcher-threshold)) - 100%) * 999, 100%);
|
|
32
|
+
/* Lays its children out from its own box: below the threshold each track takes the full width;
|
|
33
|
+
at or above it, tracks shrink to 1px so every child fits one row and empty tracks collapse.
|
|
34
|
+
The large multiplier makes the whole row flip at once. */
|
|
35
|
+
display: grid;
|
|
36
|
+
grid-template-columns: repeat(auto-fit, minmax(var(--_switcher-track), 1fr));
|
|
35
37
|
gap: var(--ui-switcher-gap, var(--_switcher-gap));
|
|
36
38
|
min-inline-size: 0;
|
|
37
39
|
max-inline-size: 100%;
|
|
38
40
|
margin: 0;
|
|
39
41
|
}
|
|
40
42
|
|
|
41
|
-
:host
|
|
42
|
-
|
|
43
|
-
flex-grow: 1;
|
|
44
|
-
/* The large multiplier makes the basis flip as a group at the intrinsic threshold. */
|
|
45
|
-
flex-basis: calc((var(--_ui-switcher-threshold, 30rem) - 100%) * 999);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
:host(:state(overLimit)) > :slotted(*) {
|
|
49
|
-
flex-basis: 100%;
|
|
43
|
+
:host(:state(overLimit)) {
|
|
44
|
+
grid-template-columns: minmax(0, 1fr);
|
|
50
45
|
}
|
|
51
46
|
|
|
52
47
|
:host([gap="xs"]) {
|
|
@@ -64,23 +59,23 @@
|
|
|
64
59
|
:host([gap="xl"]) {
|
|
65
60
|
--_switcher-gap: var(--ui-space-6);
|
|
66
61
|
}
|
|
67
|
-
:host([threshold="xs"])
|
|
68
|
-
|
|
62
|
+
:host([threshold="xs"]) {
|
|
63
|
+
--_switcher-threshold: 20rem;
|
|
69
64
|
}
|
|
70
|
-
:host([threshold="md"])
|
|
71
|
-
|
|
65
|
+
:host([threshold="md"]) {
|
|
66
|
+
--_switcher-threshold: 45rem;
|
|
72
67
|
}
|
|
73
|
-
:host([threshold="lg"])
|
|
74
|
-
|
|
68
|
+
:host([threshold="lg"]) {
|
|
69
|
+
--_switcher-threshold: 60rem;
|
|
75
70
|
}
|
|
76
71
|
:host([align="start"]) {
|
|
77
|
-
align-items:
|
|
72
|
+
align-items: start;
|
|
78
73
|
}
|
|
79
74
|
:host([align="center"]) {
|
|
80
75
|
align-items: center;
|
|
81
76
|
}
|
|
82
77
|
:host([align="end"]) {
|
|
83
|
-
align-items:
|
|
78
|
+
align-items: end;
|
|
84
79
|
}
|
|
85
80
|
|
|
86
81
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
@@ -137,6 +137,8 @@ function connect(host) {
|
|
|
137
137
|
}
|
|
138
138
|
trigger.addEventListener("focusin", onFocusin);
|
|
139
139
|
trigger.addEventListener("focusout", onFocusout);
|
|
140
|
+
// A trigger that already had focus sent its focusin before this listener; treat it as arriving now.
|
|
141
|
+
onFocusin();
|
|
140
142
|
};
|
|
141
143
|
const ids = createIdResolver(document, () => {
|
|
142
144
|
lastFor = undefined;
|