@threadlabs/looma 0.21.6 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ui-affordance-scope/ui-affordance-scope.html +1 -1
- package/components/ui-avatar/ui-avatar.html +4 -4
- package/components/ui-avatar-group/ui-avatar-group.html +2 -2
- package/components/ui-checkbox/ui-checkbox.html +1 -1
- package/components/ui-combobox/ui-combobox.html +18 -18
- package/components/ui-context-menu/ui-context-menu.html +1 -1
- package/components/ui-dialog/ui-dialog.html +2 -2
- package/components/ui-disclosure/ui-disclosure.html +4 -4
- package/components/ui-editable/ui-editable.html +3 -3
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +5 -5
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +5 -5
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +3 -3
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +2 -2
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +3 -7
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +6 -6
- package/components/ui-listbox/ui-listbox.html +6 -6
- package/components/ui-menu/ui-menu.html +1 -1
- package/components/ui-menu-item/ui-menu-item.html +1 -1
- package/components/ui-popover/ui-popover.html +1 -1
- package/components/ui-radio/ui-radio.html +1 -1
- package/components/ui-radio-group/ui-radio-group.html +1 -1
- package/components/ui-search-shell/ui-search-shell.html +1 -1
- package/components/ui-sidebar/ui-sidebar.html +2 -2
- package/components/ui-switch/ui-switch.html +1 -1
- package/components/ui-switcher/ui-switcher.html +1 -1
- package/components/ui-tabs/ui-tabs.html +2 -2
- package/components/ui-toast-region/ui-toast-region.html +1 -1
- package/components/ui-tooltip/ui-tooltip.html +1 -1
- package/components/ui-tree-item/ui-tree-item.html +4 -4
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/styles/ui-action-bar.css +1 -1
- package/styles/ui-affordance-scope.css +1 -1
- package/styles/ui-avatar-group.css +1 -1
- package/styles/ui-avatar.css +1 -1
- package/styles/ui-badge.css +1 -1
- package/styles/ui-breadcrumb-item.css +1 -1
- package/styles/ui-breadcrumbs.css +1 -1
- package/styles/ui-button.css +1 -1
- package/styles/ui-callout.css +1 -1
- package/styles/ui-card.css +1 -1
- package/styles/ui-checkbox.css +1 -1
- package/styles/ui-cluster.css +1 -1
- package/styles/ui-combobox.css +1 -1
- package/styles/ui-container.css +1 -1
- package/styles/ui-context-menu.css +1 -1
- package/styles/ui-cover.css +1 -1
- package/styles/ui-description-item.css +1 -1
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +1 -1
- package/styles/ui-disclosure.css +1 -1
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-slash-menu-group.css +1 -1
- package/styles/ui-editor-slash-menu-item.css +1 -1
- package/styles/ui-editor-slash-menu.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +1 -1
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +1 -1
- package/styles/ui-icon-button.css +1 -1
- package/styles/ui-icon.css +1 -1
- package/styles/ui-input-group.css +1 -1
- package/styles/ui-input.css +1 -1
- package/styles/ui-list-item.css +1 -1
- package/styles/ui-list.css +1 -1
- package/styles/ui-listbox.css +1 -1
- package/styles/ui-menu-group.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.css +1 -1
- package/styles/ui-meter.css +1 -1
- package/styles/ui-nav-item.css +1 -1
- package/styles/ui-page-header.css +1 -1
- package/styles/ui-popover.css +1 -1
- package/styles/ui-radio-group.css +1 -1
- package/styles/ui-radio.css +1 -1
- package/styles/ui-reel.css +1 -1
- package/styles/ui-scroll-area.css +1 -1
- package/styles/ui-search-result-row.css +1 -1
- package/styles/ui-search-shell.css +1 -1
- package/styles/ui-section.css +1 -1
- package/styles/ui-select.css +1 -1
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +1 -1
- package/styles/ui-table.css +1 -1
- package/styles/ui-tabs.css +1 -1
- package/styles/ui-text.css +1 -1
- package/styles/ui-textarea.css +1 -1
- package/styles/ui-toast-region.css +1 -1
- package/styles/ui-toast.css +1 -1
- package/styles/ui-tooltip.css +1 -1
- package/styles/ui-top-bar.css +1 -1
- package/styles/ui-tree-item.css +1 -1
- package/styles/ui-tree.css +1 -1
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +1 -1
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +2 -2
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +2 -2
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +2 -2
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +1 -1
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +1 -1
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +1 -1
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +1 -1
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +2 -2
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +2 -2
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +1 -1
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +2 -2
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +1 -1
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +1 -1
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +1 -1
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +2 -2
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +2 -2
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +2 -2
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +2 -2
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +2 -2
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +1 -1
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +2 -2
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +1 -1
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +1 -1
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +2 -2
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +2 -2
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +2 -2
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +1 -1
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +1 -1
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +1 -1
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +1 -1
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +1 -1
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +1 -1
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +1 -1
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +1 -1
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +1 -1
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +1 -1
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +2 -2
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +2 -2
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +1 -1
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +2 -2
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +1 -1
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +1 -1
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +1 -1
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +2 -2
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +2 -2
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +2 -2
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +1 -1
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +1 -1
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +1 -1
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +2 -2
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +1 -1
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +1 -1
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +1 -1
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +2 -2
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +1 -1
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +1 -1
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +1 -1
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +2 -2
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +2 -2
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +1 -1
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +2 -2
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +1 -1
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +1 -1
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +1 -1
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +2 -2
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +2 -2
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +1 -1
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +1 -1
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +2 -2
- package/vue/UiActionBar.vue +1 -1
- package/vue/UiAffordanceScope.vue +25 -7
- package/vue/UiAvatar.vue +125 -30
- package/vue/UiAvatarGroup.d.ts +1 -1
- package/vue/UiAvatarGroup.vue +67 -21
- package/vue/UiBadge.vue +34 -8
- package/vue/UiBreadcrumbItem.vue +15 -4
- package/vue/UiBreadcrumbs.vue +14 -4
- package/vue/UiButton.vue +123 -42
- package/vue/UiCallout.vue +16 -4
- package/vue/UiCard.vue +46 -10
- package/vue/UiCheckbox.d.ts +5 -5
- package/vue/UiCheckbox.vue +73 -19
- package/vue/UiCluster.vue +39 -10
- package/vue/UiCombobox.d.ts +5 -5
- package/vue/UiCombobox.vue +317 -78
- package/vue/UiContainer.vue +23 -6
- package/vue/UiContextMenu.vue +24 -7
- package/vue/UiCover.vue +16 -4
- package/vue/UiDescriptionItem.vue +14 -4
- package/vue/UiDescriptionList.vue +33 -8
- package/vue/UiDialog.vue +79 -26
- package/vue/UiDisclosure.vue +101 -38
- package/vue/UiEditable.d.ts +3 -3
- package/vue/UiEditable.vue +107 -27
- package/vue/UiEditorInsertTableGrid.vue +47 -11
- package/vue/UiEditorMentionMenu.vue +99 -20
- package/vue/UiEditorMentionMenuItem.vue +29 -8
- package/vue/UiEditorSlashMenu.vue +85 -16
- package/vue/UiEditorSlashMenuGroup.vue +14 -4
- package/vue/UiEditorSlashMenuItem.vue +43 -12
- package/vue/UiEditorTableContextMenu.d.ts +1 -1
- package/vue/UiEditorTableContextMenu.vue +95 -19
- package/vue/UiEditorTableOverlay.vue +91 -7
- package/vue/UiEditorTableToolbar.vue +105 -16
- package/vue/UiEditorToolbar.vue +15 -4
- package/vue/UiFloatingActionButton.vue +31 -8
- package/vue/UiFormField.d.ts +1 -1
- package/vue/UiFormField.vue +31 -8
- package/vue/UiGrid.vue +30 -8
- package/vue/UiIcon.vue +15 -4
- package/vue/UiIconButton.vue +70 -24
- package/vue/UiInput.vue +114 -39
- package/vue/UiInputGroup.vue +15 -4
- package/vue/UiList.vue +47 -16
- package/vue/UiListItem.vue +24 -6
- package/vue/UiListbox.d.ts +3 -3
- package/vue/UiListbox.vue +72 -24
- package/vue/UiMenu.vue +55 -15
- package/vue/UiMenuGroup.vue +14 -4
- package/vue/UiMenuItem.d.ts +4 -4
- package/vue/UiMenuItem.vue +77 -27
- package/vue/UiMeter.vue +65 -16
- package/vue/UiNavItem.vue +48 -24
- package/vue/UiPageHeader.vue +16 -4
- package/vue/UiPopover.vue +46 -21
- package/vue/UiRadio.d.ts +4 -4
- package/vue/UiRadio.vue +58 -15
- package/vue/UiRadioGroup.d.ts +3 -3
- package/vue/UiRadioGroup.vue +66 -17
- package/vue/UiReel.d.ts +1 -1
- package/vue/UiReel.vue +31 -8
- package/vue/UiScrollArea.vue +16 -4
- package/vue/UiSearchResultRow.vue +23 -6
- package/vue/UiSearchShell.vue +38 -11
- package/vue/UiSection.vue +33 -8
- package/vue/UiSelect.d.ts +1 -1
- package/vue/UiSelect.vue +45 -20
- package/vue/UiSeparator.vue +16 -4
- package/vue/UiSidebar.d.ts +2 -2
- package/vue/UiSidebar.vue +86 -22
- package/vue/UiSpinner.vue +23 -6
- package/vue/UiStack.vue +31 -8
- package/vue/UiStatusMessage.vue +32 -8
- package/vue/UiSwitch.d.ts +4 -4
- package/vue/UiSwitch.vue +57 -15
- package/vue/UiSwitcher.vue +41 -17
- package/vue/UiTable.vue +24 -6
- package/vue/UiTabs.vue +60 -14
- package/vue/UiText.vue +98 -35
- package/vue/UiTextarea.d.ts +1 -1
- package/vue/UiTextarea.vue +67 -26
- package/vue/UiToast.vue +24 -6
- package/vue/UiToastRegion.vue +41 -13
- package/vue/UiTooltip.d.ts +1 -1
- package/vue/UiTooltip.vue +85 -30
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.vue +56 -14
- package/vue/UiTreeItem.d.ts +3 -3
- package/vue/UiTreeItem.vue +147 -36
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +34 -7
- package/vue/chunks/UiAvatar.js +141 -21
- package/vue/chunks/UiAvatarGroup.js +83 -16
- package/vue/chunks/UiBadge.js +57 -19
- package/vue/chunks/UiBreadcrumbItem.js +19 -6
- package/vue/chunks/UiBreadcrumbs.js +19 -6
- package/vue/chunks/UiButton.js +194 -42
- package/vue/chunks/UiCallout.js +27 -13
- package/vue/chunks/UiCard.js +83 -25
- package/vue/chunks/UiCheckbox.js +104 -17
- package/vue/chunks/UiCluster.js +70 -25
- package/vue/chunks/UiCombobox.js +441 -46
- package/vue/chunks/UiContainer.js +36 -11
- package/vue/chunks/UiContextMenu.js +33 -7
- package/vue/chunks/UiCover.js +20 -6
- package/vue/chunks/UiDescriptionItem.js +18 -5
- package/vue/chunks/UiDescriptionList.js +54 -17
- package/vue/chunks/UiDialog.js +115 -23
- package/vue/chunks/UiDisclosure.js +110 -24
- package/vue/chunks/UiEditable.js +146 -18
- package/vue/chunks/UiEditorInsertTableGrid.js +65 -10
- package/vue/chunks/UiEditorMentionMenu.js +210 -14
- package/vue/chunks/UiEditorMentionMenuItem.js +43 -8
- package/vue/chunks/UiEditorSlashMenu.js +186 -12
- package/vue/chunks/UiEditorSlashMenuGroup.js +19 -6
- package/vue/chunks/UiEditorSlashMenuItem.js +65 -10
- package/vue/chunks/UiEditorTableContextMenu.js +116 -16
- package/vue/chunks/UiEditorTableOverlay.js +188 -7
- package/vue/chunks/UiEditorTableToolbar.js +125 -16
- package/vue/chunks/UiEditorToolbar.js +19 -6
- package/vue/chunks/UiFloatingActionButton.js +43 -8
- package/vue/chunks/UiFormField.js +43 -8
- package/vue/chunks/UiGrid.js +52 -18
- package/vue/chunks/UiIcon.js +19 -6
- package/vue/chunks/UiIconButton.js +107 -21
- package/vue/chunks/UiInput.js +309 -30
- package/vue/chunks/UiInputGroup.js +19 -6
- package/vue/chunks/UiList.js +62 -10
- package/vue/chunks/UiListItem.js +33 -7
- package/vue/chunks/UiListbox.js +105 -13
- package/vue/chunks/UiMenu.js +79 -11
- package/vue/chunks/UiMenuGroup.js +19 -6
- package/vue/chunks/UiMenuItem.js +93 -28
- package/vue/chunks/UiMeter.js +96 -19
- package/vue/chunks/UiNavItem.js +74 -17
- package/vue/chunks/UiPageHeader.js +20 -6
- package/vue/chunks/UiPopover.js +58 -21
- package/vue/chunks/UiRadio.js +82 -15
- package/vue/chunks/UiRadioGroup.js +89 -12
- package/vue/chunks/UiReel.js +53 -18
- package/vue/chunks/UiScrollArea.js +20 -6
- package/vue/chunks/UiSearchResultRow.js +32 -7
- package/vue/chunks/UiSearchShell.js +55 -9
- package/vue/chunks/UiSection.js +49 -12
- package/vue/chunks/UiSelect.js +68 -13
- package/vue/chunks/UiSeparator.js +20 -6
- package/vue/chunks/UiSidebar.js +123 -19
- package/vue/chunks/UiSpinner.js +33 -7
- package/vue/chunks/UiStack.js +59 -24
- package/vue/chunks/UiStatusMessage.js +53 -16
- package/vue/chunks/UiSwitch.js +82 -15
- package/vue/chunks/UiSwitcher.js +70 -25
- package/vue/chunks/UiTable.js +33 -7
- package/vue/chunks/UiTabs.js +81 -11
- package/vue/chunks/UiText.js +169 -58
- package/vue/chunks/UiTextarea.js +101 -16
- package/vue/chunks/UiToast.js +39 -13
- package/vue/chunks/UiToastRegion.js +41 -14
- package/vue/chunks/UiTooltip.js +113 -30
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +82 -15
- package/vue/chunks/UiTreeItem.js +184 -22
- package/vue/chunks/props.js +271 -35
- package/vue/components.css +1197 -1197
- package/vue/editor/index.js +5 -2
- package/vue/editor/primitives.d.ts +4 -1
- package/vue/host.ts +6 -6
package/vue/chunks/UiList.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
2
|
import { n as preserveRootFocus } from "./host.js";
|
|
3
|
-
import { t as checkedProp } from "./props.js";
|
|
4
|
-
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, useTemplateRef, watchSyncEffect } from "vue";
|
|
3
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
4
|
+
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiList.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = [
|
|
7
7
|
"data-as",
|
|
@@ -41,24 +41,70 @@ var UiList_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
setup(__props) {
|
|
44
|
+
const propValidityContract = { props: {
|
|
45
|
+
as: {
|
|
46
|
+
type: {
|
|
47
|
+
kind: "terminal",
|
|
48
|
+
name: "keyword"
|
|
49
|
+
},
|
|
50
|
+
required: false,
|
|
51
|
+
target: { attribute: "as" },
|
|
52
|
+
description: "The native list element. Use ol when item order matters; its native numbers are shown.",
|
|
53
|
+
values: ["ul", "ol"],
|
|
54
|
+
default: "ul"
|
|
55
|
+
},
|
|
56
|
+
density: {
|
|
57
|
+
type: {
|
|
58
|
+
kind: "terminal",
|
|
59
|
+
name: "keyword"
|
|
60
|
+
},
|
|
61
|
+
required: false,
|
|
62
|
+
target: { attribute: "density" },
|
|
63
|
+
description: "How much room each item takes. comfortable is a full row, easy to point at, for lists of things to open; compact sets items close together with no row\n padding, for a short list of facts inside other content, such as the features a plan includes.",
|
|
64
|
+
values: ["comfortable", "compact"],
|
|
65
|
+
default: "comfortable"
|
|
66
|
+
},
|
|
67
|
+
layout: {
|
|
68
|
+
type: {
|
|
69
|
+
kind: "terminal",
|
|
70
|
+
name: "keyword"
|
|
71
|
+
},
|
|
72
|
+
required: false,
|
|
73
|
+
target: { attribute: "layout" },
|
|
74
|
+
description: "How the items are laid out. Rows stack the items one per line, for a list read top to bottom. Grid sets them in as many columns as fit, each at least\n --ui-list-min-item-width (14rem) wide, for card items such as pinned or featured entries.",
|
|
75
|
+
values: ["rows", "grid"],
|
|
76
|
+
default: "rows"
|
|
77
|
+
},
|
|
78
|
+
markers: {
|
|
79
|
+
type: {
|
|
80
|
+
kind: "terminal",
|
|
81
|
+
name: "keyword"
|
|
82
|
+
},
|
|
83
|
+
required: false,
|
|
84
|
+
target: { attribute: "markers" },
|
|
85
|
+
description: "Show disc bullets for a ul of native li elements. An ol always shows native numbers.",
|
|
86
|
+
values: ["none", "disc"],
|
|
87
|
+
default: "none"
|
|
88
|
+
}
|
|
89
|
+
} };
|
|
44
90
|
const props = __props;
|
|
45
91
|
const checkedProps = computed(() => ({
|
|
46
92
|
as: checkedProp(props["as"], {
|
|
47
93
|
kind: "terminal",
|
|
48
94
|
name: "keyword"
|
|
49
|
-
}, false, "as"
|
|
95
|
+
}, false, "as"),
|
|
50
96
|
density: checkedProp(props["density"], {
|
|
51
97
|
kind: "terminal",
|
|
52
98
|
name: "keyword"
|
|
53
|
-
}, false, "density"
|
|
99
|
+
}, false, "density"),
|
|
54
100
|
layout: checkedProp(props["layout"], {
|
|
55
101
|
kind: "terminal",
|
|
56
102
|
name: "keyword"
|
|
57
|
-
}, false, "layout"
|
|
103
|
+
}, false, "layout"),
|
|
58
104
|
markers: checkedProp(props["markers"], {
|
|
59
105
|
kind: "terminal",
|
|
60
106
|
name: "keyword"
|
|
61
|
-
}, false, "markers"
|
|
107
|
+
}, false, "markers")
|
|
62
108
|
}));
|
|
63
109
|
checkedProps.value;
|
|
64
110
|
watchSyncEffect(() => {
|
|
@@ -99,7 +145,7 @@ var UiList_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
99
145
|
checkedProps.value.layout != null && `layout=${encodeURIComponent(checkedProps.value.layout)}`
|
|
100
146
|
].filter(Boolean).join(" "));
|
|
101
147
|
return (_ctx, _cache) => {
|
|
102
|
-
return checkedProps.value.as === "ol" ? (openBlock(), createElementBlock("ol", mergeProps({
|
|
148
|
+
return checkedProps.value.as === "ol" ? withDirectives((openBlock(), createElementBlock("ol", mergeProps({
|
|
103
149
|
key: 0,
|
|
104
150
|
"data-component": "ui-list"
|
|
105
151
|
}, nativeAttrs(_ctx.$attrs), {
|
|
@@ -109,7 +155,10 @@ var UiList_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
109
155
|
"data-markers": reflectedProp("markers", "markers", checkedProps.value.markers, void 0, false),
|
|
110
156
|
"data-ui-list-state": hostState.value || void 0,
|
|
111
157
|
ref: "@html-next/root"
|
|
112
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1))
|
|
158
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
159
|
+
contract: propValidityContract,
|
|
160
|
+
values: { ...checkedProps.value }
|
|
161
|
+
}]]) : withDirectives((openBlock(), createElementBlock("ul", mergeProps({
|
|
113
162
|
key: 1,
|
|
114
163
|
"data-component": "ui-list",
|
|
115
164
|
role: "list"
|
|
@@ -120,9 +169,12 @@ var UiList_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
120
169
|
"data-markers": reflectedProp("markers", "markers", checkedProps.value.markers, void 0, false),
|
|
121
170
|
"data-ui-list-state": hostState.value || void 0,
|
|
122
171
|
ref: "@html-next/root"
|
|
123
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_2))
|
|
172
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_2)), [[unref(vPropValidity), {
|
|
173
|
+
contract: propValidityContract,
|
|
174
|
+
values: { ...checkedProps.value }
|
|
175
|
+
}]]);
|
|
124
176
|
};
|
|
125
177
|
}
|
|
126
|
-
}), [["__scopeId", "data-v-
|
|
178
|
+
}), [["__scopeId", "data-v-902de7f2"]]);
|
|
127
179
|
//#endregion
|
|
128
180
|
export { UiList_default as t };
|
package/vue/chunks/UiListItem.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import { t as checkedProp } from "./props.js";
|
|
3
|
-
import { computed, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, watchSyncEffect } from "vue";
|
|
2
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
3
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiListItem.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
|
6
6
|
"aria-current",
|
|
@@ -29,16 +29,39 @@ var UiListItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
setup(__props) {
|
|
32
|
+
const propValidityContract = { props: {
|
|
33
|
+
current: {
|
|
34
|
+
type: {
|
|
35
|
+
kind: "terminal",
|
|
36
|
+
name: "boolean"
|
|
37
|
+
},
|
|
38
|
+
required: false,
|
|
39
|
+
target: { attribute: "aria-current" },
|
|
40
|
+
description: "Marks the item as the current one, such as the site you are in: it takes the selected surface and aria-current=\"true\", which assistive technology\n announces. Set it on one item at a time.",
|
|
41
|
+
default: false
|
|
42
|
+
},
|
|
43
|
+
variant: {
|
|
44
|
+
type: {
|
|
45
|
+
kind: "terminal",
|
|
46
|
+
name: "keyword"
|
|
47
|
+
},
|
|
48
|
+
required: false,
|
|
49
|
+
target: { attribute: "variant" },
|
|
50
|
+
description: "How the item is drawn. A row is flat and takes a hover surface when it is a link, for items read down a list. A card sits on a raised, bordered surface,\n for items set in a grid (a List with layout=\"grid\"). Both have the same parts: leading, title, description, and trailing.",
|
|
51
|
+
values: ["row", "card"],
|
|
52
|
+
default: "row"
|
|
53
|
+
}
|
|
54
|
+
} };
|
|
32
55
|
const props = __props;
|
|
33
56
|
const checkedProps = computed(() => ({
|
|
34
57
|
current: checkedProp(props["current"], {
|
|
35
58
|
kind: "terminal",
|
|
36
59
|
name: "boolean"
|
|
37
|
-
}, false, "current"
|
|
60
|
+
}, false, "current"),
|
|
38
61
|
variant: checkedProp(props["variant"], {
|
|
39
62
|
kind: "terminal",
|
|
40
63
|
name: "keyword"
|
|
41
|
-
}, false, "variant"
|
|
64
|
+
}, false, "variant")
|
|
42
65
|
}));
|
|
43
66
|
checkedProps.value;
|
|
44
67
|
watchSyncEffect(() => {
|
|
@@ -71,7 +94,7 @@ var UiListItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
71
94
|
checkedProps.value.current && "current"
|
|
72
95
|
].filter(Boolean).join(" "));
|
|
73
96
|
return (_ctx, _cache) => {
|
|
74
|
-
return openBlock(), createElementBlock("li", mergeProps({ "data-component": "ui-list-item" }, nativeAttrs(_ctx.$attrs), {
|
|
97
|
+
return withDirectives((openBlock(), createElementBlock("li", mergeProps({ "data-component": "ui-list-item" }, nativeAttrs(_ctx.$attrs), {
|
|
75
98
|
"aria-current": checkedProps.value.current ?? void 0,
|
|
76
99
|
"data-current": reflectedProp("current", "current", checkedProps.value.current, void 0, false),
|
|
77
100
|
"data-variant": reflectedProp("variant", "variant", checkedProps.value.variant, void 0, false),
|
|
@@ -80,9 +103,12 @@ var UiListItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
80
103
|
createElementVNode("span", _hoisted_2, [renderSlot(_ctx.$slots, "leading")]),
|
|
81
104
|
createElementVNode("span", _hoisted_3, [createElementVNode("span", _hoisted_4, [renderSlot(_ctx.$slots, "default")]), createElementVNode("span", _hoisted_5, [renderSlot(_ctx.$slots, "description")])]),
|
|
82
105
|
createElementVNode("span", _hoisted_6, [renderSlot(_ctx.$slots, "trailing")])
|
|
83
|
-
], 16, _hoisted_1)
|
|
106
|
+
], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
107
|
+
contract: propValidityContract,
|
|
108
|
+
values: { ...checkedProps.value }
|
|
109
|
+
}]]);
|
|
84
110
|
};
|
|
85
111
|
}
|
|
86
|
-
}), [["__scopeId", "data-v-
|
|
112
|
+
}), [["__scopeId", "data-v-26745cf4"]]);
|
|
87
113
|
//#endregion
|
|
88
114
|
export { UiListItem_default as t };
|
package/vue/chunks/UiListbox.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
2
|
import { r as useComponentHost, t as createDispatch } from "./host.js";
|
|
3
|
-
import { t as checkedProp } from "./props.js";
|
|
3
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
4
4
|
import { t as UiScrollArea_default } from "./UiScrollArea.js";
|
|
5
|
-
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, h, mergeProps, normalizeClass, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withCtx } from "vue";
|
|
5
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, h, mergeProps, normalizeClass, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withCtx, withDirectives } from "vue";
|
|
6
6
|
//#region .build/vue/UiListbox.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var _hoisted_1 = [
|
|
8
8
|
"tabindex",
|
|
@@ -84,43 +84,126 @@ var UiListbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
84
84
|
"change"
|
|
85
85
|
],
|
|
86
86
|
setup(__props, { emit: __emit }) {
|
|
87
|
+
const propValidityContract = { props: {
|
|
88
|
+
disabled: {
|
|
89
|
+
type: {
|
|
90
|
+
kind: "terminal",
|
|
91
|
+
name: "boolean"
|
|
92
|
+
},
|
|
93
|
+
required: false,
|
|
94
|
+
target: { attribute: "aria-disabled" },
|
|
95
|
+
description: "Prevents selection and form submission.",
|
|
96
|
+
default: false
|
|
97
|
+
},
|
|
98
|
+
invalid: {
|
|
99
|
+
type: {
|
|
100
|
+
kind: "terminal",
|
|
101
|
+
name: "boolean"
|
|
102
|
+
},
|
|
103
|
+
required: false,
|
|
104
|
+
target: { attribute: "invalid" },
|
|
105
|
+
description: "Exposes invalid state to assistive technology and styling.",
|
|
106
|
+
default: false
|
|
107
|
+
},
|
|
108
|
+
multiple: {
|
|
109
|
+
type: {
|
|
110
|
+
kind: "terminal",
|
|
111
|
+
name: "boolean"
|
|
112
|
+
},
|
|
113
|
+
required: false,
|
|
114
|
+
target: { attribute: "aria-multiselectable" },
|
|
115
|
+
description: "Allows several choices, each shown with a checkmark when selected.",
|
|
116
|
+
default: false
|
|
117
|
+
},
|
|
118
|
+
name: {
|
|
119
|
+
type: {
|
|
120
|
+
kind: "terminal",
|
|
121
|
+
name: "string"
|
|
122
|
+
},
|
|
123
|
+
required: false,
|
|
124
|
+
target: { attribute: "name" },
|
|
125
|
+
description: "The form field name used for each selected value.",
|
|
126
|
+
default: ""
|
|
127
|
+
},
|
|
128
|
+
required: {
|
|
129
|
+
type: {
|
|
130
|
+
kind: "terminal",
|
|
131
|
+
name: "boolean"
|
|
132
|
+
},
|
|
133
|
+
required: false,
|
|
134
|
+
target: { attribute: "aria-required" },
|
|
135
|
+
description: "Requires at least one choice before form submission.",
|
|
136
|
+
default: false
|
|
137
|
+
},
|
|
138
|
+
rows: {
|
|
139
|
+
type: {
|
|
140
|
+
kind: "terminal",
|
|
141
|
+
name: "number"
|
|
142
|
+
},
|
|
143
|
+
required: false,
|
|
144
|
+
target: { attribute: "size" },
|
|
145
|
+
description: "The maximum number of choices visible before the list scrolls. Use at least two.",
|
|
146
|
+
default: 5
|
|
147
|
+
},
|
|
148
|
+
value: {
|
|
149
|
+
type: {
|
|
150
|
+
kind: "terminal",
|
|
151
|
+
name: "string"
|
|
152
|
+
},
|
|
153
|
+
required: false,
|
|
154
|
+
target: { attribute: "value" },
|
|
155
|
+
description: "The initial or externally set single selection. Authored selected options work when it is omitted."
|
|
156
|
+
},
|
|
157
|
+
values: {
|
|
158
|
+
type: {
|
|
159
|
+
kind: "list",
|
|
160
|
+
item: {
|
|
161
|
+
kind: "terminal",
|
|
162
|
+
name: "string"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
required: false,
|
|
166
|
+
target: { attribute: "values" },
|
|
167
|
+
description: "The initial or externally set selections in multiple mode. Authored selected options work when it is omitted."
|
|
168
|
+
}
|
|
169
|
+
} };
|
|
87
170
|
const props = __props;
|
|
88
171
|
const checkedProps = computed(() => ({
|
|
89
172
|
disabled: checkedProp(props["disabled"], {
|
|
90
173
|
kind: "terminal",
|
|
91
174
|
name: "boolean"
|
|
92
|
-
}, false, "disabled"
|
|
175
|
+
}, false, "disabled"),
|
|
93
176
|
invalid: checkedProp(props["invalid"], {
|
|
94
177
|
kind: "terminal",
|
|
95
178
|
name: "boolean"
|
|
96
|
-
}, false, "invalid"
|
|
179
|
+
}, false, "invalid"),
|
|
97
180
|
multiple: checkedProp(props["multiple"], {
|
|
98
181
|
kind: "terminal",
|
|
99
182
|
name: "boolean"
|
|
100
|
-
}, false, "multiple"
|
|
183
|
+
}, false, "multiple"),
|
|
101
184
|
name: checkedProp(props["name"], {
|
|
102
185
|
kind: "terminal",
|
|
103
186
|
name: "string"
|
|
104
|
-
}, false, "name"
|
|
187
|
+
}, false, "name"),
|
|
105
188
|
required: checkedProp(props["required"], {
|
|
106
189
|
kind: "terminal",
|
|
107
190
|
name: "boolean"
|
|
108
|
-
}, false, "required"
|
|
191
|
+
}, false, "required"),
|
|
109
192
|
rows: checkedProp(props["rows"], {
|
|
110
193
|
kind: "terminal",
|
|
111
194
|
name: "number"
|
|
112
|
-
}, false, "rows"
|
|
195
|
+
}, false, "rows"),
|
|
113
196
|
value: checkedProp(props["value"], {
|
|
114
197
|
kind: "terminal",
|
|
115
198
|
name: "string"
|
|
116
|
-
}, false, "value"
|
|
199
|
+
}, false, "value"),
|
|
117
200
|
values: checkedProp(props["values"], {
|
|
118
201
|
kind: "list",
|
|
119
202
|
item: {
|
|
120
203
|
kind: "terminal",
|
|
121
204
|
name: "string"
|
|
122
205
|
}
|
|
123
|
-
}, false, "values"
|
|
206
|
+
}, false, "values")
|
|
124
207
|
}));
|
|
125
208
|
checkedProps.value;
|
|
126
209
|
watchSyncEffect(() => {
|
|
@@ -189,6 +272,12 @@ var UiListbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
189
272
|
if (!(hasSelection.value == null || typeof hasSelection.value === "boolean")) return guardedBinding2Previous;
|
|
190
273
|
return guardedBinding2Previous = hasSelection.value ? true : void 0;
|
|
191
274
|
});
|
|
275
|
+
provide("html-next:ui-listbox:choices", choices);
|
|
276
|
+
provide("html-next:ui-listbox:selection", selection);
|
|
277
|
+
provide("html-next:ui-listbox:hasSelection", hasSelection);
|
|
278
|
+
provide("html-next:ui-listbox:active", active);
|
|
279
|
+
provide("html-next:ui-listbox:uid", uid);
|
|
280
|
+
provide("html-next:ui-listbox:validationError", validationError);
|
|
192
281
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
193
282
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "div")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-listbox> has an incompatible root."), {
|
|
194
283
|
name: "HtmlDiagnosticError",
|
|
@@ -260,7 +349,7 @@ var UiListbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
260
349
|
return items;
|
|
261
350
|
}
|
|
262
351
|
return (_ctx, _cache) => {
|
|
263
|
-
return openBlock(), createElementBlock("div", mergeProps({
|
|
352
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({
|
|
264
353
|
"data-component": "ui-listbox",
|
|
265
354
|
role: "listbox"
|
|
266
355
|
}, nativeAttrs(_ctx.$attrs), {
|
|
@@ -335,9 +424,12 @@ var UiListbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
335
424
|
disabled: checkedProps.value.disabled ?? void 0,
|
|
336
425
|
ref: "validity"
|
|
337
426
|
}, null, 8, _hoisted_5)
|
|
338
|
-
], 16, _hoisted_1)
|
|
427
|
+
], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
428
|
+
contract: propValidityContract,
|
|
429
|
+
values: { ...checkedProps.value }
|
|
430
|
+
}]]);
|
|
339
431
|
};
|
|
340
432
|
}
|
|
341
|
-
}), [["__scopeId", "data-v-
|
|
433
|
+
}), [["__scopeId", "data-v-90a708c2"]]);
|
|
342
434
|
//#endregion
|
|
343
435
|
export { UiListbox_default as t };
|
package/vue/chunks/UiMenu.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
2
|
import { r as useComponentHost, t as createDispatch } from "./host.js";
|
|
3
|
-
import { t as checkedProp } from "./props.js";
|
|
4
|
-
import { computed, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, renderSlot, watchSyncEffect } from "vue";
|
|
3
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
4
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiMenu.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = [
|
|
7
7
|
"data-density",
|
|
@@ -51,32 +51,96 @@ var UiMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
51
51
|
"close"
|
|
52
52
|
],
|
|
53
53
|
setup(__props, { emit: __emit }) {
|
|
54
|
+
const propValidityContract = { props: {
|
|
55
|
+
density: {
|
|
56
|
+
type: {
|
|
57
|
+
kind: "terminal",
|
|
58
|
+
name: "keyword"
|
|
59
|
+
},
|
|
60
|
+
required: false,
|
|
61
|
+
target: { attribute: "density" },
|
|
62
|
+
description: "Compact trades padding and type size for rows that fit more on screen.",
|
|
63
|
+
values: ["comfortable", "compact"],
|
|
64
|
+
default: "comfortable"
|
|
65
|
+
},
|
|
66
|
+
for: {
|
|
67
|
+
type: {
|
|
68
|
+
kind: "terminal",
|
|
69
|
+
name: "string"
|
|
70
|
+
},
|
|
71
|
+
required: false,
|
|
72
|
+
target: { attribute: "for" },
|
|
73
|
+
description: "ID of the control that toggles and anchors the menu.",
|
|
74
|
+
default: ""
|
|
75
|
+
},
|
|
76
|
+
inline: {
|
|
77
|
+
type: {
|
|
78
|
+
kind: "terminal",
|
|
79
|
+
name: "boolean"
|
|
80
|
+
},
|
|
81
|
+
required: false,
|
|
82
|
+
target: { attribute: "inline" },
|
|
83
|
+
description: "Displays the menu in the page flow without an overlay or trigger, for an embedded list of actions.",
|
|
84
|
+
default: false
|
|
85
|
+
},
|
|
86
|
+
open: {
|
|
87
|
+
type: {
|
|
88
|
+
kind: "terminal",
|
|
89
|
+
name: "boolean"
|
|
90
|
+
},
|
|
91
|
+
required: false,
|
|
92
|
+
target: { attribute: "open" },
|
|
93
|
+
description: "Whether the menu is open initially or when set externally.",
|
|
94
|
+
default: false
|
|
95
|
+
},
|
|
96
|
+
placement: {
|
|
97
|
+
type: {
|
|
98
|
+
kind: "terminal",
|
|
99
|
+
name: "string"
|
|
100
|
+
},
|
|
101
|
+
required: false,
|
|
102
|
+
target: { attribute: "placement" },
|
|
103
|
+
description: "Positions an associated menu relative to its trigger.",
|
|
104
|
+
default: "bottom-start"
|
|
105
|
+
},
|
|
106
|
+
size: {
|
|
107
|
+
type: {
|
|
108
|
+
kind: "terminal",
|
|
109
|
+
name: "keyword"
|
|
110
|
+
},
|
|
111
|
+
required: false,
|
|
112
|
+
target: { attribute: "size" },
|
|
113
|
+
description: "sm sizes the menu to a small trigger, such as an xs or sm button: smallest text, short rows, a small check, and a narrower minimum width. md is the\n standard size.",
|
|
114
|
+
values: ["sm", "md"],
|
|
115
|
+
default: "md"
|
|
116
|
+
}
|
|
117
|
+
} };
|
|
54
118
|
const props = __props;
|
|
55
119
|
const checkedProps = computed(() => ({
|
|
56
120
|
density: checkedProp(props["density"], {
|
|
57
121
|
kind: "terminal",
|
|
58
122
|
name: "keyword"
|
|
59
|
-
}, false, "density"
|
|
123
|
+
}, false, "density"),
|
|
60
124
|
for: checkedProp(props["for"], {
|
|
61
125
|
kind: "terminal",
|
|
62
126
|
name: "string"
|
|
63
|
-
}, false, "for"
|
|
127
|
+
}, false, "for"),
|
|
64
128
|
inline: checkedProp(props["inline"], {
|
|
65
129
|
kind: "terminal",
|
|
66
130
|
name: "boolean"
|
|
67
|
-
}, false, "inline"
|
|
131
|
+
}, false, "inline"),
|
|
68
132
|
open: checkedProp(props["open"], {
|
|
69
133
|
kind: "terminal",
|
|
70
134
|
name: "boolean"
|
|
71
|
-
}, false, "open"
|
|
135
|
+
}, false, "open"),
|
|
72
136
|
placement: checkedProp(props["placement"], {
|
|
73
137
|
kind: "terminal",
|
|
74
138
|
name: "string"
|
|
75
|
-
}, false, "placement"
|
|
139
|
+
}, false, "placement"),
|
|
76
140
|
size: checkedProp(props["size"], {
|
|
77
141
|
kind: "terminal",
|
|
78
142
|
name: "keyword"
|
|
79
|
-
}, false, "size"
|
|
143
|
+
}, false, "size")
|
|
80
144
|
}));
|
|
81
145
|
checkedProps.value;
|
|
82
146
|
watchSyncEffect(() => {
|
|
@@ -98,6 +162,7 @@ var UiMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
98
162
|
const emit = __emit;
|
|
99
163
|
const root = ref(null);
|
|
100
164
|
const internalOpen = ref(false);
|
|
165
|
+
provide("html-next:ui-menu:internalOpen", internalOpen);
|
|
101
166
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
102
167
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "div")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-menu> has an incompatible root."), {
|
|
103
168
|
name: "HtmlDiagnosticError",
|
|
@@ -149,7 +214,7 @@ var UiMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
149
214
|
state: { internalOpen }
|
|
150
215
|
});
|
|
151
216
|
return (_ctx, _cache) => {
|
|
152
|
-
return openBlock(), createElementBlock("div", mergeProps({
|
|
217
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({
|
|
153
218
|
"data-component": "ui-menu",
|
|
154
219
|
role: "menu",
|
|
155
220
|
"aria-orientation": "vertical"
|
|
@@ -163,9 +228,12 @@ var UiMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
163
228
|
"data-ui-menu-state": hostState.value || void 0,
|
|
164
229
|
ref_key: "root",
|
|
165
230
|
ref: root
|
|
166
|
-
}), [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])], 16, _hoisted_1)
|
|
231
|
+
}), [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
232
|
+
contract: propValidityContract,
|
|
233
|
+
values: { ...checkedProps.value }
|
|
234
|
+
}]]);
|
|
167
235
|
};
|
|
168
236
|
}
|
|
169
|
-
}), [["__scopeId", "data-v-
|
|
237
|
+
}), [["__scopeId", "data-v-6ee14753"]]);
|
|
170
238
|
//#endregion
|
|
171
239
|
export { UiMenu_default as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import { t as checkedProp } from "./props.js";
|
|
3
|
-
import { computed, createCommentVNode, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, toDisplayString, watchSyncEffect } from "vue";
|
|
2
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
3
|
+
import { computed, createCommentVNode, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, toDisplayString, unref, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiMenuGroup.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = ["aria-label", "data-label"];
|
|
6
6
|
var _hoisted_2 = {
|
|
@@ -17,11 +17,21 @@ var UiMenuGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
17
17
|
default: ""
|
|
18
18
|
} },
|
|
19
19
|
setup(__props) {
|
|
20
|
+
const propValidityContract = { props: { label: {
|
|
21
|
+
type: {
|
|
22
|
+
kind: "terminal",
|
|
23
|
+
name: "string"
|
|
24
|
+
},
|
|
25
|
+
required: false,
|
|
26
|
+
target: { attribute: "aria-label" },
|
|
27
|
+
description: "Visible heading and accessible name for this group of menu items.",
|
|
28
|
+
default: ""
|
|
29
|
+
} } };
|
|
20
30
|
const props = __props;
|
|
21
31
|
const checkedProps = computed(() => ({ label: checkedProp(props["label"], {
|
|
22
32
|
kind: "terminal",
|
|
23
33
|
name: "string"
|
|
24
|
-
}, false, "label"
|
|
34
|
+
}, false, "label") }));
|
|
25
35
|
checkedProps.value;
|
|
26
36
|
watchSyncEffect(() => {
|
|
27
37
|
checkedProps.value;
|
|
@@ -47,15 +57,18 @@ var UiMenuGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
47
57
|
})
|
|
48
58
|
});
|
|
49
59
|
return (_ctx, _cache) => {
|
|
50
|
-
return openBlock(), createElementBlock("div", mergeProps({
|
|
60
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({
|
|
51
61
|
"data-component": "ui-menu-group",
|
|
52
62
|
role: "group"
|
|
53
63
|
}, nativeAttrs(_ctx.$attrs), {
|
|
54
64
|
"aria-label": checkedProps.value.label ?? void 0,
|
|
55
65
|
"data-label": reflectedProp("label", "label", checkedProps.value.label, void 0, false)
|
|
56
|
-
}), [checkedProps.value.label ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(checkedProps.value.label), 1)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_1)
|
|
66
|
+
}), [checkedProps.value.label ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(checkedProps.value.label), 1)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
67
|
+
contract: propValidityContract,
|
|
68
|
+
values: { ...checkedProps.value }
|
|
69
|
+
}]]);
|
|
57
70
|
};
|
|
58
71
|
}
|
|
59
|
-
}), [["__scopeId", "data-v-
|
|
72
|
+
}), [["__scopeId", "data-v-d0ecd01c"]]);
|
|
60
73
|
//#endregion
|
|
61
74
|
export { UiMenuGroup_default as t };
|