@threadlabs/looma 0.21.6 → 0.22.0
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/host.ts +6 -6
package/vue/chunks/UiMenuItem.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 { n as preserveRootFocus, 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 UiIcon_default } from "./UiIcon.js";
|
|
5
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, renderSlot, useTemplateRef, watchSyncEffect } from "vue";
|
|
5
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderSlot, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
6
6
|
//#region .build/vue/UiMenuItem.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var _hoisted_1 = [
|
|
8
8
|
"aria-disabled",
|
|
@@ -73,32 +73,85 @@ var UiMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
73
73
|
"change"
|
|
74
74
|
],
|
|
75
75
|
setup(__props, { emit: __emit }) {
|
|
76
|
+
const propValidityContract = { props: {
|
|
77
|
+
checked: {
|
|
78
|
+
type: {
|
|
79
|
+
kind: "terminal",
|
|
80
|
+
name: "boolean"
|
|
81
|
+
},
|
|
82
|
+
required: false,
|
|
83
|
+
target: { attribute: "checked" },
|
|
84
|
+
description: "Initial or externally controlled checked state of a checkbox or radio item.",
|
|
85
|
+
default: false
|
|
86
|
+
},
|
|
87
|
+
disabled: {
|
|
88
|
+
type: {
|
|
89
|
+
kind: "terminal",
|
|
90
|
+
name: "boolean"
|
|
91
|
+
},
|
|
92
|
+
required: false,
|
|
93
|
+
target: { attribute: "aria-disabled" },
|
|
94
|
+
description: "Makes the item unavailable: it is faded, skipped by the arrow keys, and choosing it does nothing. It stays visible and is announced as disabled.",
|
|
95
|
+
default: false
|
|
96
|
+
},
|
|
97
|
+
href: {
|
|
98
|
+
type: {
|
|
99
|
+
kind: "terminal",
|
|
100
|
+
name: "string"
|
|
101
|
+
},
|
|
102
|
+
required: false,
|
|
103
|
+
target: { attribute: "href" },
|
|
104
|
+
description: "A destination makes an action item a real link, with native navigation and link context actions.",
|
|
105
|
+
default: ""
|
|
106
|
+
},
|
|
107
|
+
type: {
|
|
108
|
+
type: {
|
|
109
|
+
kind: "terminal",
|
|
110
|
+
name: "keyword"
|
|
111
|
+
},
|
|
112
|
+
required: false,
|
|
113
|
+
target: { attribute: "type" },
|
|
114
|
+
description: "An action closes its menu; a checkbox toggles, and a radio chooses one item within its nearest Menu Group. Checkable items keep the menu open.",
|
|
115
|
+
values: [
|
|
116
|
+
"action",
|
|
117
|
+
"checkbox",
|
|
118
|
+
"radio"
|
|
119
|
+
],
|
|
120
|
+
default: "action"
|
|
121
|
+
},
|
|
122
|
+
value: {
|
|
123
|
+
type: {
|
|
124
|
+
kind: "terminal",
|
|
125
|
+
name: "string"
|
|
126
|
+
},
|
|
127
|
+
required: false,
|
|
128
|
+
target: { attribute: "data-value" },
|
|
129
|
+
description: "The value the enclosing menu reports in its select event when this item is chosen. Give each item a distinct value so one handler can tell them\n apart.",
|
|
130
|
+
default: ""
|
|
131
|
+
}
|
|
132
|
+
} };
|
|
76
133
|
const props = __props;
|
|
77
134
|
const checkedProps = computed(() => ({
|
|
78
135
|
checked: checkedProp(props["checked"], {
|
|
79
136
|
kind: "terminal",
|
|
80
137
|
name: "boolean"
|
|
81
|
-
}, false, "checked"
|
|
138
|
+
}, false, "checked"),
|
|
82
139
|
disabled: checkedProp(props["disabled"], {
|
|
83
140
|
kind: "terminal",
|
|
84
141
|
name: "boolean"
|
|
85
|
-
}, false, "disabled"
|
|
142
|
+
}, false, "disabled"),
|
|
86
143
|
href: checkedProp(props["href"], {
|
|
87
144
|
kind: "terminal",
|
|
88
145
|
name: "string"
|
|
89
|
-
}, false, "href"
|
|
146
|
+
}, false, "href"),
|
|
90
147
|
type: checkedProp(props["type"], {
|
|
91
148
|
kind: "terminal",
|
|
92
149
|
name: "keyword"
|
|
93
|
-
}, false, "type",
|
|
94
|
-
"action",
|
|
95
|
-
"checkbox",
|
|
96
|
-
"radio"
|
|
97
|
-
]),
|
|
150
|
+
}, false, "type"),
|
|
98
151
|
value: checkedProp(props["value"], {
|
|
99
152
|
kind: "terminal",
|
|
100
153
|
name: "string"
|
|
101
|
-
}, false, "value"
|
|
154
|
+
}, false, "value")
|
|
102
155
|
}));
|
|
103
156
|
checkedProps.value;
|
|
104
157
|
watchSyncEffect(() => {
|
|
@@ -121,6 +174,24 @@ var UiMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
121
174
|
const root = useTemplateRef("@html-next/root");
|
|
122
175
|
preserveRootFocus(root);
|
|
123
176
|
const internalChecked = ref(false);
|
|
177
|
+
let guardedPrevious;
|
|
178
|
+
const guarded = computed(() => {
|
|
179
|
+
if (!(internalChecked.value == null || typeof internalChecked.value === "boolean")) return guardedPrevious;
|
|
180
|
+
return guardedPrevious = typeof {
|
|
181
|
+
action: null,
|
|
182
|
+
checkbox: internalChecked.value,
|
|
183
|
+
radio: internalChecked.value
|
|
184
|
+
}[checkedProps.value.type] === "boolean" ? String({
|
|
185
|
+
action: null,
|
|
186
|
+
checkbox: internalChecked.value,
|
|
187
|
+
radio: internalChecked.value
|
|
188
|
+
}[checkedProps.value.type]) : attribute({
|
|
189
|
+
action: null,
|
|
190
|
+
checkbox: internalChecked.value,
|
|
191
|
+
radio: internalChecked.value
|
|
192
|
+
}[checkedProps.value.type]);
|
|
193
|
+
});
|
|
194
|
+
provide("html-next:ui-menu-item:internalChecked", internalChecked);
|
|
124
195
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
125
196
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== (checkedProps.value.href && checkedProps.value.type === "action" ? "a" : "div"))) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-menu-item> has an incompatible root."), {
|
|
126
197
|
name: "HtmlDiagnosticError",
|
|
@@ -164,7 +235,7 @@ var UiMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
164
235
|
return value === true ? "" : text(value);
|
|
165
236
|
}
|
|
166
237
|
return (_ctx, _cache) => {
|
|
167
|
-
return checkedProps.value.href && checkedProps.value.type === "action" ? (openBlock(), createElementBlock("a", mergeProps({
|
|
238
|
+
return checkedProps.value.href && checkedProps.value.type === "action" ? withDirectives((openBlock(), createElementBlock("a", mergeProps({
|
|
168
239
|
key: 0,
|
|
169
240
|
"data-component": "ui-menu-item",
|
|
170
241
|
role: "menuitem",
|
|
@@ -182,7 +253,10 @@ var UiMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
182
253
|
"data-value": reflectedProp("value", "value", checkedProps.value.value, void 0, true),
|
|
183
254
|
"data-ui-menu-item-state": hostState.value || void 0,
|
|
184
255
|
ref: "@html-next/root"
|
|
185
|
-
}), [createElementVNode("span", _hoisted_2, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]), createElementVNode("span", _hoisted_3, [renderSlot(_ctx.$slots, "shortcut", {}, void 0, true)])], 16, _hoisted_1))
|
|
256
|
+
}), [createElementVNode("span", _hoisted_2, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]), createElementVNode("span", _hoisted_3, [renderSlot(_ctx.$slots, "shortcut", {}, void 0, true)])], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
257
|
+
contract: propValidityContract,
|
|
258
|
+
values: { ...checkedProps.value }
|
|
259
|
+
}]]) : withDirectives((openBlock(), createElementBlock("div", mergeProps({
|
|
186
260
|
key: 1,
|
|
187
261
|
"data-component": "ui-menu-item",
|
|
188
262
|
tabindex: "-1"
|
|
@@ -192,19 +266,7 @@ var UiMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
192
266
|
checkbox: "menuitemcheckbox",
|
|
193
267
|
radio: "menuitemradio"
|
|
194
268
|
}[checkedProps.value.type]),
|
|
195
|
-
"aria-checked":
|
|
196
|
-
action: null,
|
|
197
|
-
checkbox: internalChecked.value,
|
|
198
|
-
radio: internalChecked.value
|
|
199
|
-
}[checkedProps.value.type] === "boolean" ? String({
|
|
200
|
-
action: null,
|
|
201
|
-
checkbox: internalChecked.value,
|
|
202
|
-
radio: internalChecked.value
|
|
203
|
-
}[checkedProps.value.type]) : attribute({
|
|
204
|
-
action: null,
|
|
205
|
-
checkbox: internalChecked.value,
|
|
206
|
-
radio: internalChecked.value
|
|
207
|
-
}[checkedProps.value.type]),
|
|
269
|
+
"aria-checked": guarded.value,
|
|
208
270
|
"aria-disabled": checkedProps.value.disabled ?? void 0,
|
|
209
271
|
"data-checked": reflectedProp("checked", "checked", checkedProps.value.checked, void 0, false),
|
|
210
272
|
"data-disabled": reflectedProp("disabled", "disabled", checkedProps.value.disabled, void 0, false),
|
|
@@ -220,9 +282,12 @@ var UiMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
220
282
|
})) : createCommentVNode("v-if", true)]),
|
|
221
283
|
createElementVNode("span", _hoisted_6, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
222
284
|
createElementVNode("span", _hoisted_7, [renderSlot(_ctx.$slots, "shortcut", {}, void 0, true)])
|
|
223
|
-
], 16, _hoisted_4))
|
|
285
|
+
], 16, _hoisted_4)), [[unref(vPropValidity), {
|
|
286
|
+
contract: propValidityContract,
|
|
287
|
+
values: { ...checkedProps.value }
|
|
288
|
+
}]]);
|
|
224
289
|
};
|
|
225
290
|
}
|
|
226
|
-
}), [["__scopeId", "data-v-
|
|
291
|
+
}), [["__scopeId", "data-v-bfe18c4b"]]);
|
|
227
292
|
//#endregion
|
|
228
293
|
export { UiMenuItem_default as t };
|
package/vue/chunks/UiMeter.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, normalizeStyle, openBlock, unref, watchSyncEffect } from "vue";
|
|
2
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
3
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, normalizeStyle, openBlock, unref, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiMeter.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
|
6
6
|
"aria-valuemax",
|
|
@@ -53,43 +53,117 @@ var UiMeter_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
setup(__props) {
|
|
56
|
+
const propValidityContract = { props: {
|
|
57
|
+
label: {
|
|
58
|
+
type: {
|
|
59
|
+
kind: "terminal",
|
|
60
|
+
name: "string"
|
|
61
|
+
},
|
|
62
|
+
required: false,
|
|
63
|
+
target: { attribute: "label" },
|
|
64
|
+
description: "What the meter measures, as its accessible name (\"Collected\"). Leave it empty only when aria-labelledby names the meter from visible text.",
|
|
65
|
+
default: ""
|
|
66
|
+
},
|
|
67
|
+
max: {
|
|
68
|
+
type: {
|
|
69
|
+
kind: "terminal",
|
|
70
|
+
name: "number"
|
|
71
|
+
},
|
|
72
|
+
required: false,
|
|
73
|
+
target: { attribute: "aria-valuemax" },
|
|
74
|
+
description: "The value of a full bar, as on a native meter: 1 for a fraction, or the whole amount (a total, a count of items) with value as the part of it. Must be\n above 0; otherwise the bar is empty.",
|
|
75
|
+
default: 1
|
|
76
|
+
},
|
|
77
|
+
segments: {
|
|
78
|
+
type: {
|
|
79
|
+
kind: "terminal",
|
|
80
|
+
name: "number"
|
|
81
|
+
},
|
|
82
|
+
required: false,
|
|
83
|
+
target: { attribute: "segments" },
|
|
84
|
+
description: "How many equal segments to draw the bar as, from 2 to 12, for a count of steps: set max to the same number and value to the steps done, so whole segments\n fill, and say the step in valueText (\"Shipped, step 4 of 6\"). A value between steps fills part of a segment. 0 draws one continuous bar, as does any other\n number.",
|
|
85
|
+
default: 0
|
|
86
|
+
},
|
|
87
|
+
size: {
|
|
88
|
+
type: {
|
|
89
|
+
kind: "terminal",
|
|
90
|
+
name: "keyword"
|
|
91
|
+
},
|
|
92
|
+
required: false,
|
|
93
|
+
target: { attribute: "size" },
|
|
94
|
+
description: "Thickness. sm is a thin bar that sits in a line of text, such as a table cell beside an amount; md stands on its own.",
|
|
95
|
+
values: ["sm", "md"],
|
|
96
|
+
default: "md"
|
|
97
|
+
},
|
|
98
|
+
tone: {
|
|
99
|
+
type: {
|
|
100
|
+
kind: "terminal",
|
|
101
|
+
name: "keyword"
|
|
102
|
+
},
|
|
103
|
+
required: false,
|
|
104
|
+
target: { attribute: "tone" },
|
|
105
|
+
description: "Which colour the filled part speaks in, as on Badge: neutral is a quiet grey, accent draws the eye, and info, success, warning, and danger mark a state\n (such as nothing yet, partial, complete, or needs attention). Colour alone says nothing to assistive technology or in forced colours, so say the state in\n valueText or in text beside the meter too.",
|
|
106
|
+
values: [
|
|
107
|
+
"neutral",
|
|
108
|
+
"accent",
|
|
109
|
+
"info",
|
|
110
|
+
"success",
|
|
111
|
+
"warning",
|
|
112
|
+
"danger"
|
|
113
|
+
],
|
|
114
|
+
default: "neutral"
|
|
115
|
+
},
|
|
116
|
+
value: {
|
|
117
|
+
type: {
|
|
118
|
+
kind: "terminal",
|
|
119
|
+
name: "number"
|
|
120
|
+
},
|
|
121
|
+
required: false,
|
|
122
|
+
target: { attribute: "value" },
|
|
123
|
+
description: "How far along, from 0 to max. A value outside that range draws at the nearer end: below 0 is an empty track, above max a full bar.",
|
|
124
|
+
default: 0
|
|
125
|
+
},
|
|
126
|
+
valueText: {
|
|
127
|
+
type: {
|
|
128
|
+
kind: "terminal",
|
|
129
|
+
name: "string"
|
|
130
|
+
},
|
|
131
|
+
required: false,
|
|
132
|
+
target: { attribute: "valuetext" },
|
|
133
|
+
description: "The value as assistive technology reads it (\"$750 of $1,240 collected\", \"3 of 5 done, overdue\"). Empty reads the percentage.",
|
|
134
|
+
default: ""
|
|
135
|
+
}
|
|
136
|
+
} };
|
|
56
137
|
const props = __props;
|
|
57
138
|
const checkedProps = computed(() => ({
|
|
58
139
|
label: checkedProp(props["label"], {
|
|
59
140
|
kind: "terminal",
|
|
60
141
|
name: "string"
|
|
61
|
-
}, false, "label"
|
|
142
|
+
}, false, "label"),
|
|
62
143
|
max: checkedProp(props["max"], {
|
|
63
144
|
kind: "terminal",
|
|
64
145
|
name: "number"
|
|
65
|
-
}, false, "max"
|
|
146
|
+
}, false, "max"),
|
|
66
147
|
segments: checkedProp(props["segments"], {
|
|
67
148
|
kind: "terminal",
|
|
68
149
|
name: "number"
|
|
69
|
-
}, false, "segments"
|
|
150
|
+
}, false, "segments"),
|
|
70
151
|
size: checkedProp(props["size"], {
|
|
71
152
|
kind: "terminal",
|
|
72
153
|
name: "keyword"
|
|
73
|
-
}, false, "size"
|
|
154
|
+
}, false, "size"),
|
|
74
155
|
tone: checkedProp(props["tone"], {
|
|
75
156
|
kind: "terminal",
|
|
76
157
|
name: "keyword"
|
|
77
|
-
}, false, "tone",
|
|
78
|
-
"neutral",
|
|
79
|
-
"accent",
|
|
80
|
-
"info",
|
|
81
|
-
"success",
|
|
82
|
-
"warning",
|
|
83
|
-
"danger"
|
|
84
|
-
]),
|
|
158
|
+
}, false, "tone"),
|
|
85
159
|
value: checkedProp(props["value"], {
|
|
86
160
|
kind: "terminal",
|
|
87
161
|
name: "number"
|
|
88
|
-
}, false, "value"
|
|
162
|
+
}, false, "value"),
|
|
89
163
|
valueText: checkedProp(props["valueText"], {
|
|
90
164
|
kind: "terminal",
|
|
91
165
|
name: "string"
|
|
92
|
-
}, false, "valueText"
|
|
166
|
+
}, false, "valueText")
|
|
93
167
|
}));
|
|
94
168
|
checkedProps.value;
|
|
95
169
|
watchSyncEffect(() => {
|
|
@@ -168,7 +242,7 @@ var UiMeter_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
168
242
|
return typeof value === "number" && !Number.isNaN(value) ? value : void 0;
|
|
169
243
|
}
|
|
170
244
|
return (_ctx, _cache) => {
|
|
171
|
-
return openBlock(), createElementBlock("span", mergeProps({
|
|
245
|
+
return withDirectives((openBlock(), createElementBlock("span", mergeProps({
|
|
172
246
|
"data-component": "ui-meter",
|
|
173
247
|
role: "meter",
|
|
174
248
|
"aria-valuemin": "0"
|
|
@@ -210,9 +284,12 @@ var UiMeter_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
210
284
|
}), [createElementVNode("span", {
|
|
211
285
|
class: "fill",
|
|
212
286
|
style: normalizeStyle({ "inline-size": `${text(unref(percent))}%` })
|
|
213
|
-
}, null, 4)], 16, _hoisted_1)
|
|
287
|
+
}, null, 4)], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
288
|
+
contract: propValidityContract,
|
|
289
|
+
values: { ...checkedProps.value }
|
|
290
|
+
}]]);
|
|
214
291
|
};
|
|
215
292
|
}
|
|
216
|
-
}), [["__scopeId", "data-v-
|
|
293
|
+
}), [["__scopeId", "data-v-0409eee2"]]);
|
|
217
294
|
//#endregion
|
|
218
295
|
export { UiMeter_default as t };
|
package/vue/chunks/UiNavItem.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, createElementVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, useTemplateRef, watchSyncEffect } from "vue";
|
|
3
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
4
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiNavItem.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = [
|
|
7
7
|
"href",
|
|
@@ -58,34 +58,85 @@ var UiNavItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
setup(__props) {
|
|
61
|
+
const propValidityContract = { props: {
|
|
62
|
+
as: {
|
|
63
|
+
type: {
|
|
64
|
+
kind: "terminal",
|
|
65
|
+
name: "keyword"
|
|
66
|
+
},
|
|
67
|
+
required: false,
|
|
68
|
+
target: { attribute: "as" },
|
|
69
|
+
description: "The native element the item renders: a button, or a link (a) that navigates to href.",
|
|
70
|
+
values: ["button", "a"],
|
|
71
|
+
default: "button"
|
|
72
|
+
},
|
|
73
|
+
current: {
|
|
74
|
+
type: {
|
|
75
|
+
kind: "terminal",
|
|
76
|
+
name: "keyword"
|
|
77
|
+
},
|
|
78
|
+
required: false,
|
|
79
|
+
target: { attribute: "current" },
|
|
80
|
+
description: "Marks the item as where you are: it takes the selected surface, a stronger label, and a bar on its start edge, and states aria-current, which assistive\n technology announces. \"true\" means the current page (aria-current=\"page\"); \"step\" marks the current step of a process, and \"location\" the current place in\n a set, such as a section of a record. Set it on one item at a time.",
|
|
81
|
+
values: [
|
|
82
|
+
"true",
|
|
83
|
+
"false",
|
|
84
|
+
"page",
|
|
85
|
+
"step",
|
|
86
|
+
"location"
|
|
87
|
+
],
|
|
88
|
+
default: "false"
|
|
89
|
+
},
|
|
90
|
+
href: {
|
|
91
|
+
type: {
|
|
92
|
+
kind: "terminal",
|
|
93
|
+
name: "string"
|
|
94
|
+
},
|
|
95
|
+
required: false,
|
|
96
|
+
target: { attribute: "href" },
|
|
97
|
+
description: "The link's destination. Pair it with as=\"a\" so the item renders as a real link: a router, a modified click, and \"open in new tab\" all work. Without it the\n item is a button, for switching views inside the app."
|
|
98
|
+
},
|
|
99
|
+
rel: {
|
|
100
|
+
type: {
|
|
101
|
+
kind: "terminal",
|
|
102
|
+
name: "string"
|
|
103
|
+
},
|
|
104
|
+
required: false,
|
|
105
|
+
target: { attribute: "rel" },
|
|
106
|
+
description: "The link's relationship to its destination, as on a native link. Only meaningful with as=\"a\"."
|
|
107
|
+
},
|
|
108
|
+
target: {
|
|
109
|
+
type: {
|
|
110
|
+
kind: "terminal",
|
|
111
|
+
name: "string"
|
|
112
|
+
},
|
|
113
|
+
required: false,
|
|
114
|
+
target: { attribute: "target" },
|
|
115
|
+
description: "Where a link opens, as on a native link. Only meaningful with as=\"a\"."
|
|
116
|
+
}
|
|
117
|
+
} };
|
|
61
118
|
const props = __props;
|
|
62
119
|
const checkedProps = computed(() => ({
|
|
63
120
|
as: checkedProp(props["as"], {
|
|
64
121
|
kind: "terminal",
|
|
65
122
|
name: "keyword"
|
|
66
|
-
}, false, "as"
|
|
123
|
+
}, false, "as"),
|
|
67
124
|
current: checkedProp(props["current"], {
|
|
68
125
|
kind: "terminal",
|
|
69
126
|
name: "keyword"
|
|
70
|
-
}, false, "current",
|
|
71
|
-
"true",
|
|
72
|
-
"false",
|
|
73
|
-
"page",
|
|
74
|
-
"step",
|
|
75
|
-
"location"
|
|
76
|
-
]),
|
|
127
|
+
}, false, "current"),
|
|
77
128
|
href: checkedProp(props["href"], {
|
|
78
129
|
kind: "terminal",
|
|
79
130
|
name: "string"
|
|
80
|
-
}, false, "href"
|
|
131
|
+
}, false, "href"),
|
|
81
132
|
rel: checkedProp(props["rel"], {
|
|
82
133
|
kind: "terminal",
|
|
83
134
|
name: "string"
|
|
84
|
-
}, false, "rel"
|
|
135
|
+
}, false, "rel"),
|
|
85
136
|
target: checkedProp(props["target"], {
|
|
86
137
|
kind: "terminal",
|
|
87
138
|
name: "string"
|
|
88
|
-
}, false, "target"
|
|
139
|
+
}, false, "target")
|
|
89
140
|
}));
|
|
90
141
|
checkedProps.value;
|
|
91
142
|
watchSyncEffect(() => {
|
|
@@ -123,7 +174,7 @@ var UiNavItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
123
174
|
return value === true ? "" : text(value);
|
|
124
175
|
}
|
|
125
176
|
return (_ctx, _cache) => {
|
|
126
|
-
return checkedProps.value.as === "a" ? (openBlock(), createElementBlock("a", mergeProps({
|
|
177
|
+
return checkedProps.value.as === "a" ? withDirectives((openBlock(), createElementBlock("a", mergeProps({
|
|
127
178
|
key: 0,
|
|
128
179
|
"data-component": "ui-nav-item"
|
|
129
180
|
}, nativeAttrs(_ctx.$attrs), {
|
|
@@ -162,7 +213,10 @@ var UiNavItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
162
213
|
}, null, -1)),
|
|
163
214
|
createElementVNode("span", _hoisted_2, [renderSlot(_ctx.$slots, "leading", {}, void 0, true)]),
|
|
164
215
|
createElementVNode("span", _hoisted_3, [createElementVNode("span", _hoisted_4, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]), createElementVNode("span", _hoisted_5, [renderSlot(_ctx.$slots, "description", {}, void 0, true)])])
|
|
165
|
-
], 16, _hoisted_1))
|
|
216
|
+
], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
217
|
+
contract: propValidityContract,
|
|
218
|
+
values: { ...checkedProps.value }
|
|
219
|
+
}]]) : withDirectives((openBlock(), createElementBlock("button", mergeProps({
|
|
166
220
|
key: 1,
|
|
167
221
|
"data-component": "ui-nav-item",
|
|
168
222
|
type: "button"
|
|
@@ -199,9 +253,12 @@ var UiNavItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
199
253
|
}, null, -1)),
|
|
200
254
|
createElementVNode("span", _hoisted_7, [renderSlot(_ctx.$slots, "leading", {}, void 0, true)]),
|
|
201
255
|
createElementVNode("span", _hoisted_8, [createElementVNode("span", _hoisted_9, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]), createElementVNode("span", _hoisted_10, [renderSlot(_ctx.$slots, "description", {}, void 0, true)])])
|
|
202
|
-
], 16, _hoisted_6))
|
|
256
|
+
], 16, _hoisted_6)), [[unref(vPropValidity), {
|
|
257
|
+
contract: propValidityContract,
|
|
258
|
+
values: { ...checkedProps.value }
|
|
259
|
+
}]]);
|
|
203
260
|
};
|
|
204
261
|
}
|
|
205
|
-
}), [["__scopeId", "data-v-
|
|
262
|
+
}), [["__scopeId", "data-v-8e20083c"]]);
|
|
206
263
|
//#endregion
|
|
207
264
|
export { UiNavItem_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, 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/UiPageHeader.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = ["data-align", "data-ui-page-header-state"];
|
|
6
6
|
var _hoisted_2 = { class: "leading" };
|
|
@@ -19,11 +19,22 @@ var UiPageHeader_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
19
19
|
default: "start"
|
|
20
20
|
} },
|
|
21
21
|
setup(__props) {
|
|
22
|
+
const propValidityContract = { props: { align: {
|
|
23
|
+
type: {
|
|
24
|
+
kind: "terminal",
|
|
25
|
+
name: "keyword"
|
|
26
|
+
},
|
|
27
|
+
required: false,
|
|
28
|
+
target: { attribute: "align" },
|
|
29
|
+
description: "Where the header sits. start runs along the page's start edge with actions at the end; center stacks everything centred, for a standalone card such as\n sign-in.",
|
|
30
|
+
values: ["start", "center"],
|
|
31
|
+
default: "start"
|
|
32
|
+
} } };
|
|
22
33
|
const props = __props;
|
|
23
34
|
const checkedProps = computed(() => ({ align: checkedProp(props["align"], {
|
|
24
35
|
kind: "terminal",
|
|
25
36
|
name: "keyword"
|
|
26
|
-
}, false, "align"
|
|
37
|
+
}, false, "align") }));
|
|
27
38
|
checkedProps.value;
|
|
28
39
|
watchSyncEffect(() => {
|
|
29
40
|
checkedProps.value;
|
|
@@ -51,7 +62,7 @@ var UiPageHeader_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
51
62
|
/** The values the styles' :host-state() rules test. */
|
|
52
63
|
const hostState = computed(() => [checkedProps.value.align && "align", checkedProps.value.align != null && `align=${encodeURIComponent(checkedProps.value.align)}`].filter(Boolean).join(" "));
|
|
53
64
|
return (_ctx, _cache) => {
|
|
54
|
-
return openBlock(), createElementBlock("header", mergeProps({ "data-component": "ui-page-header" }, nativeAttrs(_ctx.$attrs), {
|
|
65
|
+
return withDirectives((openBlock(), createElementBlock("header", mergeProps({ "data-component": "ui-page-header" }, nativeAttrs(_ctx.$attrs), {
|
|
55
66
|
"data-align": reflectedProp("align", "align", checkedProps.value.align, void 0, false),
|
|
56
67
|
"data-ui-page-header-state": hostState.value || void 0
|
|
57
68
|
}), [
|
|
@@ -62,9 +73,12 @@ var UiPageHeader_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
62
73
|
createElementVNode("span", _hoisted_6, [renderSlot(_ctx.$slots, "description", {}, void 0, true)])
|
|
63
74
|
]),
|
|
64
75
|
createElementVNode("span", _hoisted_7, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])
|
|
65
|
-
], 16, _hoisted_1)
|
|
76
|
+
], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
77
|
+
contract: propValidityContract,
|
|
78
|
+
values: { ...checkedProps.value }
|
|
79
|
+
}]]);
|
|
66
80
|
};
|
|
67
81
|
}
|
|
68
|
-
}), [["__scopeId", "data-v-
|
|
82
|
+
}), [["__scopeId", "data-v-530d7117"]]);
|
|
69
83
|
//#endregion
|
|
70
84
|
export { UiPageHeader_default as t };
|
package/vue/chunks/UiPopover.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/UiPopover.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = [
|
|
7
7
|
"data-for",
|
|
@@ -35,33 +35,66 @@ var UiPopover_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
35
35
|
"close"
|
|
36
36
|
],
|
|
37
37
|
setup(__props, { emit: __emit }) {
|
|
38
|
+
const propValidityContract = { props: {
|
|
39
|
+
for: {
|
|
40
|
+
type: {
|
|
41
|
+
kind: "terminal",
|
|
42
|
+
name: "string"
|
|
43
|
+
},
|
|
44
|
+
required: false,
|
|
45
|
+
target: { attribute: "for" },
|
|
46
|
+
description: "ID of the control that toggles and anchors the popover.",
|
|
47
|
+
default: ""
|
|
48
|
+
},
|
|
49
|
+
open: {
|
|
50
|
+
type: {
|
|
51
|
+
kind: "terminal",
|
|
52
|
+
name: "boolean"
|
|
53
|
+
},
|
|
54
|
+
required: false,
|
|
55
|
+
target: { attribute: "open" },
|
|
56
|
+
description: "Whether the popover is open initially or when set externally.",
|
|
57
|
+
default: false
|
|
58
|
+
},
|
|
59
|
+
placement: {
|
|
60
|
+
type: {
|
|
61
|
+
kind: "terminal",
|
|
62
|
+
name: "keyword"
|
|
63
|
+
},
|
|
64
|
+
required: false,
|
|
65
|
+
target: { attribute: "placement" },
|
|
66
|
+
description: "Positions the surface around its trigger. Start and end on top or bottom follow the writing direction.",
|
|
67
|
+
values: [
|
|
68
|
+
"top",
|
|
69
|
+
"top-start",
|
|
70
|
+
"top-end",
|
|
71
|
+
"bottom",
|
|
72
|
+
"bottom-start",
|
|
73
|
+
"bottom-end",
|
|
74
|
+
"left",
|
|
75
|
+
"left-start",
|
|
76
|
+
"left-end",
|
|
77
|
+
"right",
|
|
78
|
+
"right-start",
|
|
79
|
+
"right-end"
|
|
80
|
+
],
|
|
81
|
+
default: "bottom-start"
|
|
82
|
+
}
|
|
83
|
+
} };
|
|
38
84
|
const props = __props;
|
|
39
85
|
const checkedProps = computed(() => ({
|
|
40
86
|
for: checkedProp(props["for"], {
|
|
41
87
|
kind: "terminal",
|
|
42
88
|
name: "string"
|
|
43
|
-
}, false, "for"
|
|
89
|
+
}, false, "for"),
|
|
44
90
|
open: checkedProp(props["open"], {
|
|
45
91
|
kind: "terminal",
|
|
46
92
|
name: "boolean"
|
|
47
|
-
}, false, "open"
|
|
93
|
+
}, false, "open"),
|
|
48
94
|
placement: checkedProp(props["placement"], {
|
|
49
95
|
kind: "terminal",
|
|
50
96
|
name: "keyword"
|
|
51
|
-
}, false, "placement"
|
|
52
|
-
"top",
|
|
53
|
-
"top-start",
|
|
54
|
-
"top-end",
|
|
55
|
-
"bottom",
|
|
56
|
-
"bottom-start",
|
|
57
|
-
"bottom-end",
|
|
58
|
-
"left",
|
|
59
|
-
"left-start",
|
|
60
|
-
"left-end",
|
|
61
|
-
"right",
|
|
62
|
-
"right-start",
|
|
63
|
-
"right-end"
|
|
64
|
-
])
|
|
97
|
+
}, false, "placement")
|
|
65
98
|
}));
|
|
66
99
|
checkedProps.value;
|
|
67
100
|
watchSyncEffect(() => {
|
|
@@ -83,6 +116,7 @@ var UiPopover_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
83
116
|
const emit = __emit;
|
|
84
117
|
const root = ref(null);
|
|
85
118
|
const internalOpen = ref(false);
|
|
119
|
+
provide("html-next:ui-popover:internalOpen", internalOpen);
|
|
86
120
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
87
121
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "span")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-popover> has an incompatible root."), {
|
|
88
122
|
name: "HtmlDiagnosticError",
|
|
@@ -116,16 +150,19 @@ var UiPopover_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
116
150
|
state: { internalOpen }
|
|
117
151
|
});
|
|
118
152
|
return (_ctx, _cache) => {
|
|
119
|
-
return openBlock(), createElementBlock("span", mergeProps({ "data-component": "ui-popover" }, nativeAttrs(_ctx.$attrs), {
|
|
153
|
+
return withDirectives((openBlock(), createElementBlock("span", mergeProps({ "data-component": "ui-popover" }, nativeAttrs(_ctx.$attrs), {
|
|
120
154
|
"data-for": reflectedProp("for", "for", checkedProps.value.for, void 0, false),
|
|
121
155
|
"data-open": reflectedProp("open", "open", checkedProps.value.open, void 0, false),
|
|
122
156
|
"data-placement": reflectedProp("placement", "placement", checkedProps.value.placement, void 0, false),
|
|
123
157
|
"data-ui-popover-state": hostState.value || void 0,
|
|
124
158
|
ref_key: "root",
|
|
125
159
|
ref: root
|
|
126
|
-
}), [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])], 16, _hoisted_1)
|
|
160
|
+
}), [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
161
|
+
contract: propValidityContract,
|
|
162
|
+
values: { ...checkedProps.value }
|
|
163
|
+
}]]);
|
|
127
164
|
};
|
|
128
165
|
}
|
|
129
|
-
}), [["__scopeId", "data-v-
|
|
166
|
+
}), [["__scopeId", "data-v-91a3eb1a"]]);
|
|
130
167
|
//#endregion
|
|
131
168
|
export { UiPopover_default as t };
|