@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
|
@@ -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, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, watchSyncEffect } from "vue";
|
|
2
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
3
|
+
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiContainer.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
|
6
6
|
"data-gutters",
|
|
@@ -23,20 +23,42 @@ var UiContainer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
setup(__props) {
|
|
26
|
+
const propValidityContract = { props: {
|
|
27
|
+
gutters: {
|
|
28
|
+
type: {
|
|
29
|
+
kind: "terminal",
|
|
30
|
+
name: "keyword"
|
|
31
|
+
},
|
|
32
|
+
required: false,
|
|
33
|
+
target: { attribute: "gutters" },
|
|
34
|
+
description: "Inline padding on both sides, which keeps content off the edges of a narrow screen: s is 0.75rem, m is 1rem (also the default), and l is 1.5rem.",
|
|
35
|
+
values: [
|
|
36
|
+
"s",
|
|
37
|
+
"m",
|
|
38
|
+
"l"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
measure: {
|
|
42
|
+
type: {
|
|
43
|
+
kind: "terminal",
|
|
44
|
+
name: "keyword"
|
|
45
|
+
},
|
|
46
|
+
required: false,
|
|
47
|
+
target: { attribute: "measure" },
|
|
48
|
+
description: "The container's maximum width, in characters of the current font: narrow is 45ch, wide is 80ch, and unset is 65ch, a comfortable reading line. The\n container centres itself when its parent is wider. The --ui-container-measure custom property, set on the container itself, overrides it; set on an\n ancestor, it does nothing.",
|
|
49
|
+
values: ["narrow", "wide"]
|
|
50
|
+
}
|
|
51
|
+
} };
|
|
26
52
|
const props = __props;
|
|
27
53
|
const checkedProps = computed(() => ({
|
|
28
54
|
gutters: checkedProp(props["gutters"], {
|
|
29
55
|
kind: "terminal",
|
|
30
56
|
name: "keyword"
|
|
31
|
-
}, false, "gutters",
|
|
32
|
-
"s",
|
|
33
|
-
"m",
|
|
34
|
-
"l"
|
|
35
|
-
]),
|
|
57
|
+
}, false, "gutters"),
|
|
36
58
|
measure: checkedProp(props["measure"], {
|
|
37
59
|
kind: "terminal",
|
|
38
60
|
name: "keyword"
|
|
39
|
-
}, false, "measure"
|
|
61
|
+
}, false, "measure")
|
|
40
62
|
}));
|
|
41
63
|
checkedProps.value;
|
|
42
64
|
watchSyncEffect(() => {
|
|
@@ -70,13 +92,16 @@ var UiContainer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
70
92
|
checkedProps.value.gutters != null && `gutters=${encodeURIComponent(checkedProps.value.gutters)}`
|
|
71
93
|
].filter(Boolean).join(" "));
|
|
72
94
|
return (_ctx, _cache) => {
|
|
73
|
-
return openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-container" }, nativeAttrs(_ctx.$attrs), {
|
|
95
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-container" }, nativeAttrs(_ctx.$attrs), {
|
|
74
96
|
"data-gutters": reflectedProp("gutters", "gutters", checkedProps.value.gutters, void 0, false),
|
|
75
97
|
"data-measure": reflectedProp("measure", "measure", checkedProps.value.measure, void 0, false),
|
|
76
98
|
"data-ui-container-state": hostState.value || void 0
|
|
77
|
-
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_1)
|
|
99
|
+
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
100
|
+
contract: propValidityContract,
|
|
101
|
+
values: { ...checkedProps.value }
|
|
102
|
+
}]]);
|
|
78
103
|
};
|
|
79
104
|
}
|
|
80
|
-
}), [["__scopeId", "data-v-
|
|
105
|
+
}), [["__scopeId", "data-v-e439a69c"]]);
|
|
81
106
|
//#endregion
|
|
82
107
|
export { UiContainer_default as t };
|
|
@@ -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, useTemplateRef, 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, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiContextMenu.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = ["data-for", "data-open"];
|
|
7
7
|
var _hoisted_2 = {
|
|
@@ -32,16 +32,38 @@ var UiContextMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
32
32
|
"select"
|
|
33
33
|
],
|
|
34
34
|
setup(__props, { emit: __emit }) {
|
|
35
|
+
const propValidityContract = { props: {
|
|
36
|
+
for: {
|
|
37
|
+
type: {
|
|
38
|
+
kind: "terminal",
|
|
39
|
+
name: "string"
|
|
40
|
+
},
|
|
41
|
+
required: false,
|
|
42
|
+
target: { attribute: "for" },
|
|
43
|
+
description: "ID of the element whose context click (right-click, long-press, Shift+F10, or the Menu key) opens the menu.",
|
|
44
|
+
default: ""
|
|
45
|
+
},
|
|
46
|
+
open: {
|
|
47
|
+
type: {
|
|
48
|
+
kind: "terminal",
|
|
49
|
+
name: "boolean"
|
|
50
|
+
},
|
|
51
|
+
required: false,
|
|
52
|
+
target: { attribute: "open" },
|
|
53
|
+
description: "Whether the context menu is open initially or when set externally.",
|
|
54
|
+
default: false
|
|
55
|
+
}
|
|
56
|
+
} };
|
|
35
57
|
const props = __props;
|
|
36
58
|
const checkedProps = computed(() => ({
|
|
37
59
|
for: checkedProp(props["for"], {
|
|
38
60
|
kind: "terminal",
|
|
39
61
|
name: "string"
|
|
40
|
-
}, false, "for"
|
|
62
|
+
}, false, "for"),
|
|
41
63
|
open: checkedProp(props["open"], {
|
|
42
64
|
kind: "terminal",
|
|
43
65
|
name: "boolean"
|
|
44
|
-
}, false, "open"
|
|
66
|
+
}, false, "open")
|
|
45
67
|
}));
|
|
46
68
|
checkedProps.value;
|
|
47
69
|
watchSyncEffect(() => {
|
|
@@ -64,6 +86,7 @@ var UiContextMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
64
86
|
const root = ref(null);
|
|
65
87
|
const menuElement = useTemplateRef("menu");
|
|
66
88
|
const internalOpen = ref(false);
|
|
89
|
+
provide("html-next:ui-context-menu:internalOpen", internalOpen);
|
|
67
90
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
68
91
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "span")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-context-menu> has an incompatible root."), {
|
|
69
92
|
name: "HtmlDiagnosticError",
|
|
@@ -102,14 +125,17 @@ var UiContextMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
102
125
|
state: { internalOpen }
|
|
103
126
|
});
|
|
104
127
|
return (_ctx, _cache) => {
|
|
105
|
-
return openBlock(), createElementBlock("span", mergeProps({ "data-component": "ui-context-menu" }, nativeAttrs(_ctx.$attrs), {
|
|
128
|
+
return withDirectives((openBlock(), createElementBlock("span", mergeProps({ "data-component": "ui-context-menu" }, nativeAttrs(_ctx.$attrs), {
|
|
106
129
|
"data-for": reflectedProp("for", "for", checkedProps.value.for, void 0, false),
|
|
107
130
|
"data-open": reflectedProp("open", "open", checkedProps.value.open, void 0, false),
|
|
108
131
|
ref_key: "root",
|
|
109
132
|
ref: root
|
|
110
|
-
}), [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 512)], 16, _hoisted_1)
|
|
133
|
+
}), [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 512)], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
134
|
+
contract: propValidityContract,
|
|
135
|
+
values: { ...checkedProps.value }
|
|
136
|
+
}]]);
|
|
111
137
|
};
|
|
112
138
|
}
|
|
113
|
-
}), [["__scopeId", "data-v-
|
|
139
|
+
}), [["__scopeId", "data-v-a3df6c42"]]);
|
|
114
140
|
//#endregion
|
|
115
141
|
export { UiContextMenu_default as t };
|
package/vue/chunks/UiCover.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, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, watchSyncEffect } from "vue";
|
|
2
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
3
|
+
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiCover.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = ["data-size", "data-ui-cover-state"];
|
|
6
6
|
//#endregion
|
|
@@ -13,11 +13,22 @@ var UiCover_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
13
13
|
default: "screen"
|
|
14
14
|
} },
|
|
15
15
|
setup(__props) {
|
|
16
|
+
const propValidityContract = { props: { size: {
|
|
17
|
+
type: {
|
|
18
|
+
kind: "terminal",
|
|
19
|
+
name: "keyword"
|
|
20
|
+
},
|
|
21
|
+
required: false,
|
|
22
|
+
target: { attribute: "size" },
|
|
23
|
+
description: "How tall the cover is. screen is at least the viewport's height, for a view that is one centred card, such as sign-in; fill takes the space its parent\n gives it.",
|
|
24
|
+
values: ["screen", "fill"],
|
|
25
|
+
default: "screen"
|
|
26
|
+
} } };
|
|
16
27
|
const props = __props;
|
|
17
28
|
const checkedProps = computed(() => ({ size: checkedProp(props["size"], {
|
|
18
29
|
kind: "terminal",
|
|
19
30
|
name: "keyword"
|
|
20
|
-
}, false, "size"
|
|
31
|
+
}, false, "size") }));
|
|
21
32
|
checkedProps.value;
|
|
22
33
|
watchSyncEffect(() => {
|
|
23
34
|
checkedProps.value;
|
|
@@ -45,12 +56,15 @@ var UiCover_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
45
56
|
/** The values the styles' :host-state() rules test. */
|
|
46
57
|
const hostState = computed(() => [checkedProps.value.size && "size", checkedProps.value.size != null && `size=${encodeURIComponent(checkedProps.value.size)}`].filter(Boolean).join(" "));
|
|
47
58
|
return (_ctx, _cache) => {
|
|
48
|
-
return openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-cover" }, nativeAttrs(_ctx.$attrs), {
|
|
59
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-cover" }, nativeAttrs(_ctx.$attrs), {
|
|
49
60
|
"data-size": reflectedProp("size", "size", checkedProps.value.size, void 0, false),
|
|
50
61
|
"data-ui-cover-state": hostState.value || void 0
|
|
51
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1)
|
|
62
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
63
|
+
contract: propValidityContract,
|
|
64
|
+
values: { ...checkedProps.value }
|
|
65
|
+
}]]);
|
|
52
66
|
};
|
|
53
67
|
}
|
|
54
|
-
}), [["__scopeId", "data-v-
|
|
68
|
+
}), [["__scopeId", "data-v-97ef2767"]]);
|
|
55
69
|
//#endregion
|
|
56
70
|
export { UiCover_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, toDisplayString, watchSyncEffect } from "vue";
|
|
2
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
3
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, toDisplayString, unref, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiDescriptionItem.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = ["data-term"];
|
|
6
6
|
//#endregion
|
|
@@ -13,11 +13,21 @@ var UiDescriptionItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
13
13
|
default: ""
|
|
14
14
|
} },
|
|
15
15
|
setup(__props) {
|
|
16
|
+
const propValidityContract = { props: { term: {
|
|
17
|
+
type: {
|
|
18
|
+
kind: "terminal",
|
|
19
|
+
name: "string"
|
|
20
|
+
},
|
|
21
|
+
required: false,
|
|
22
|
+
target: { attribute: "term" },
|
|
23
|
+
description: "What the value is, such as \"Invited by\". The value is the item's content.",
|
|
24
|
+
default: ""
|
|
25
|
+
} } };
|
|
16
26
|
const props = __props;
|
|
17
27
|
const checkedProps = computed(() => ({ term: checkedProp(props["term"], {
|
|
18
28
|
kind: "terminal",
|
|
19
29
|
name: "string"
|
|
20
|
-
}, false, "term"
|
|
30
|
+
}, false, "term") }));
|
|
21
31
|
checkedProps.value;
|
|
22
32
|
watchSyncEffect(() => {
|
|
23
33
|
checkedProps.value;
|
|
@@ -43,9 +53,12 @@ var UiDescriptionItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
43
53
|
})
|
|
44
54
|
});
|
|
45
55
|
return (_ctx, _cache) => {
|
|
46
|
-
return openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-description-item" }, nativeAttrs(_ctx.$attrs), { "data-term": reflectedProp("term", "term", checkedProps.value.term, void 0, false) }), [createElementVNode("dt", null, toDisplayString(checkedProps.value.term), 1), createElementVNode("dd", null, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])], 16, _hoisted_1)
|
|
56
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-description-item" }, nativeAttrs(_ctx.$attrs), { "data-term": reflectedProp("term", "term", checkedProps.value.term, void 0, false) }), [createElementVNode("dt", null, toDisplayString(checkedProps.value.term), 1), createElementVNode("dd", null, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
57
|
+
contract: propValidityContract,
|
|
58
|
+
values: { ...checkedProps.value }
|
|
59
|
+
}]]);
|
|
47
60
|
};
|
|
48
61
|
}
|
|
49
|
-
}), [["__scopeId", "data-v-
|
|
62
|
+
}), [["__scopeId", "data-v-147189f1"]]);
|
|
50
63
|
//#endregion
|
|
51
64
|
export { UiDescriptionItem_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, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, watchSyncEffect } from "vue";
|
|
2
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
3
|
+
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiDescriptionList.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
|
6
6
|
"data-columns",
|
|
@@ -28,29 +28,63 @@ var UiDescriptionList_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
setup(__props) {
|
|
31
|
+
const propValidityContract = { props: {
|
|
32
|
+
columns: {
|
|
33
|
+
type: {
|
|
34
|
+
kind: "terminal",
|
|
35
|
+
name: "keyword"
|
|
36
|
+
},
|
|
37
|
+
required: false,
|
|
38
|
+
target: { attribute: "columns" },
|
|
39
|
+
description: "The most columns grid and tiles set on a wide list; a narrow list still drops to fewer. Left unset, they fit as many as the width allows.",
|
|
40
|
+
values: [
|
|
41
|
+
"2",
|
|
42
|
+
"3",
|
|
43
|
+
"4"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
density: {
|
|
47
|
+
type: {
|
|
48
|
+
kind: "terminal",
|
|
49
|
+
name: "keyword"
|
|
50
|
+
},
|
|
51
|
+
required: false,
|
|
52
|
+
target: { attribute: "density" },
|
|
53
|
+
description: "How much room each pair takes. comfortable spaces the pairs apart to read; compact sets them close together, for facts inside other content such as a card\n or a table's detail row.",
|
|
54
|
+
values: ["comfortable", "compact"],
|
|
55
|
+
default: "comfortable"
|
|
56
|
+
},
|
|
57
|
+
layout: {
|
|
58
|
+
type: {
|
|
59
|
+
kind: "terminal",
|
|
60
|
+
name: "keyword"
|
|
61
|
+
},
|
|
62
|
+
required: false,
|
|
63
|
+
target: { attribute: "layout" },
|
|
64
|
+
description: "rows sets each term beside its value, one per line, for a short summary; stacked sets every term above its value, one pair per line, for a narrow space;\n grid sets the pairs, term above value, in as many columns as fit, for facts to scan across; tiles sets each pair on its own bordered tile in a grid, for\n figures to compare.",
|
|
65
|
+
values: [
|
|
66
|
+
"rows",
|
|
67
|
+
"stacked",
|
|
68
|
+
"grid",
|
|
69
|
+
"tiles"
|
|
70
|
+
],
|
|
71
|
+
default: "rows"
|
|
72
|
+
}
|
|
73
|
+
} };
|
|
31
74
|
const props = __props;
|
|
32
75
|
const checkedProps = computed(() => ({
|
|
33
76
|
columns: checkedProp(props["columns"], {
|
|
34
77
|
kind: "terminal",
|
|
35
78
|
name: "keyword"
|
|
36
|
-
}, false, "columns",
|
|
37
|
-
"2",
|
|
38
|
-
"3",
|
|
39
|
-
"4"
|
|
40
|
-
]),
|
|
79
|
+
}, false, "columns"),
|
|
41
80
|
density: checkedProp(props["density"], {
|
|
42
81
|
kind: "terminal",
|
|
43
82
|
name: "keyword"
|
|
44
|
-
}, false, "density"
|
|
83
|
+
}, false, "density"),
|
|
45
84
|
layout: checkedProp(props["layout"], {
|
|
46
85
|
kind: "terminal",
|
|
47
86
|
name: "keyword"
|
|
48
|
-
}, false, "layout"
|
|
49
|
-
"rows",
|
|
50
|
-
"stacked",
|
|
51
|
-
"grid",
|
|
52
|
-
"tiles"
|
|
53
|
-
])
|
|
87
|
+
}, false, "layout")
|
|
54
88
|
}));
|
|
55
89
|
checkedProps.value;
|
|
56
90
|
watchSyncEffect(() => {
|
|
@@ -86,14 +120,17 @@ var UiDescriptionList_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
86
120
|
checkedProps.value.density != null && `density=${encodeURIComponent(checkedProps.value.density)}`
|
|
87
121
|
].filter(Boolean).join(" "));
|
|
88
122
|
return (_ctx, _cache) => {
|
|
89
|
-
return openBlock(), createElementBlock("dl", mergeProps({ "data-component": "ui-description-list" }, nativeAttrs(_ctx.$attrs), {
|
|
123
|
+
return withDirectives((openBlock(), createElementBlock("dl", mergeProps({ "data-component": "ui-description-list" }, nativeAttrs(_ctx.$attrs), {
|
|
90
124
|
"data-columns": reflectedProp("columns", "columns", checkedProps.value.columns, void 0, false),
|
|
91
125
|
"data-density": reflectedProp("density", "density", checkedProps.value.density, void 0, false),
|
|
92
126
|
"data-layout": reflectedProp("layout", "layout", checkedProps.value.layout, void 0, false),
|
|
93
127
|
"data-ui-description-list-state": hostState.value || void 0
|
|
94
|
-
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_1)
|
|
128
|
+
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
129
|
+
contract: propValidityContract,
|
|
130
|
+
values: { ...checkedProps.value }
|
|
131
|
+
}]]);
|
|
95
132
|
};
|
|
96
133
|
}
|
|
97
|
-
}), [["__scopeId", "data-v-
|
|
134
|
+
}), [["__scopeId", "data-v-a6c69a42"]]);
|
|
98
135
|
//#endregion
|
|
99
136
|
export { UiDescriptionList_default as t };
|
package/vue/chunks/UiDialog.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 { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, renderSlot, toDisplayString, useTemplateRef, watchSyncEffect, withCtx } from "vue";
|
|
5
|
+
import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withCtx, withDirectives } from "vue";
|
|
6
6
|
//#region .build/vue/UiDialog.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var _hoisted_1 = [
|
|
8
8
|
"aria-label",
|
|
@@ -71,49 +71,131 @@ var UiDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
71
71
|
"close"
|
|
72
72
|
],
|
|
73
73
|
setup(__props, { emit: __emit }) {
|
|
74
|
+
const propValidityContract = { props: {
|
|
75
|
+
alert: {
|
|
76
|
+
type: {
|
|
77
|
+
kind: "terminal",
|
|
78
|
+
name: "boolean"
|
|
79
|
+
},
|
|
80
|
+
required: false,
|
|
81
|
+
target: { attribute: "alert" },
|
|
82
|
+
description: "Use alert dialog semantics and require an explicit action instead of the header close button. An alert dialog is always modal.",
|
|
83
|
+
default: false
|
|
84
|
+
},
|
|
85
|
+
closedby: {
|
|
86
|
+
type: {
|
|
87
|
+
kind: "terminal",
|
|
88
|
+
name: "keyword"
|
|
89
|
+
},
|
|
90
|
+
required: false,
|
|
91
|
+
target: { attribute: "closedby" },
|
|
92
|
+
description: "Which user close requests work: any includes outside presses, closerequest includes Escape, and none requires an action. Unset follows native dialog:\n closerequest when modal, none when not.",
|
|
93
|
+
values: [
|
|
94
|
+
"any",
|
|
95
|
+
"closerequest",
|
|
96
|
+
"none"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
for: {
|
|
100
|
+
type: {
|
|
101
|
+
kind: "terminal",
|
|
102
|
+
name: "string"
|
|
103
|
+
},
|
|
104
|
+
required: false,
|
|
105
|
+
target: { attribute: "for" },
|
|
106
|
+
description: "ID of the control that opens the dialog.",
|
|
107
|
+
default: ""
|
|
108
|
+
},
|
|
109
|
+
label: {
|
|
110
|
+
type: {
|
|
111
|
+
kind: "terminal",
|
|
112
|
+
name: "string"
|
|
113
|
+
},
|
|
114
|
+
required: false,
|
|
115
|
+
target: { attribute: "label" },
|
|
116
|
+
description: "Visible title in the dialog header; also its accessible name."
|
|
117
|
+
},
|
|
118
|
+
modal: {
|
|
119
|
+
type: {
|
|
120
|
+
kind: "terminal",
|
|
121
|
+
name: "boolean"
|
|
122
|
+
},
|
|
123
|
+
required: false,
|
|
124
|
+
target: { attribute: "modal" },
|
|
125
|
+
description: "Open in the top layer with a backdrop and make the rest of the page inert until it closes, like native showModal(). Without it the dialog is non-modal,\n like native show().",
|
|
126
|
+
default: false
|
|
127
|
+
},
|
|
128
|
+
modeless: {
|
|
129
|
+
type: {
|
|
130
|
+
kind: "terminal",
|
|
131
|
+
name: "boolean"
|
|
132
|
+
},
|
|
133
|
+
required: false,
|
|
134
|
+
target: { attribute: "modeless" },
|
|
135
|
+
description: "Deprecated: does nothing, since dialogs are non-modal unless modal is set. Accepted so markup written for 0.15 keeps working; modal wins when both are\n set.",
|
|
136
|
+
default: false
|
|
137
|
+
},
|
|
138
|
+
open: {
|
|
139
|
+
type: {
|
|
140
|
+
kind: "terminal",
|
|
141
|
+
name: "boolean"
|
|
142
|
+
},
|
|
143
|
+
required: false,
|
|
144
|
+
target: { attribute: "open" },
|
|
145
|
+
description: "Whether the dialog is open initially or when set externally.",
|
|
146
|
+
default: false
|
|
147
|
+
},
|
|
148
|
+
size: {
|
|
149
|
+
type: {
|
|
150
|
+
kind: "terminal",
|
|
151
|
+
name: "keyword"
|
|
152
|
+
},
|
|
153
|
+
required: false,
|
|
154
|
+
target: { attribute: "size" },
|
|
155
|
+
description: "Choose a compact, standard, wide, or viewport-filling dialog.",
|
|
156
|
+
values: [
|
|
157
|
+
"sm",
|
|
158
|
+
"md",
|
|
159
|
+
"lg",
|
|
160
|
+
"fullscreen"
|
|
161
|
+
],
|
|
162
|
+
default: "md"
|
|
163
|
+
}
|
|
164
|
+
} };
|
|
74
165
|
const props = __props;
|
|
75
166
|
const checkedProps = computed(() => ({
|
|
76
167
|
alert: checkedProp(props["alert"], {
|
|
77
168
|
kind: "terminal",
|
|
78
169
|
name: "boolean"
|
|
79
|
-
}, false, "alert"
|
|
170
|
+
}, false, "alert"),
|
|
80
171
|
closedby: checkedProp(props["closedby"], {
|
|
81
172
|
kind: "terminal",
|
|
82
173
|
name: "keyword"
|
|
83
|
-
}, false, "closedby",
|
|
84
|
-
"any",
|
|
85
|
-
"closerequest",
|
|
86
|
-
"none"
|
|
87
|
-
]),
|
|
174
|
+
}, false, "closedby"),
|
|
88
175
|
for: checkedProp(props["for"], {
|
|
89
176
|
kind: "terminal",
|
|
90
177
|
name: "string"
|
|
91
|
-
}, false, "for"
|
|
178
|
+
}, false, "for"),
|
|
92
179
|
label: checkedProp(props["label"], {
|
|
93
180
|
kind: "terminal",
|
|
94
181
|
name: "string"
|
|
95
|
-
}, false, "label"
|
|
182
|
+
}, false, "label"),
|
|
96
183
|
modal: checkedProp(props["modal"], {
|
|
97
184
|
kind: "terminal",
|
|
98
185
|
name: "boolean"
|
|
99
|
-
}, false, "modal"
|
|
186
|
+
}, false, "modal"),
|
|
100
187
|
modeless: checkedProp(props["modeless"], {
|
|
101
188
|
kind: "terminal",
|
|
102
189
|
name: "boolean"
|
|
103
|
-
}, false, "modeless"
|
|
190
|
+
}, false, "modeless"),
|
|
104
191
|
open: checkedProp(props["open"], {
|
|
105
192
|
kind: "terminal",
|
|
106
193
|
name: "boolean"
|
|
107
|
-
}, false, "open"
|
|
194
|
+
}, false, "open"),
|
|
108
195
|
size: checkedProp(props["size"], {
|
|
109
196
|
kind: "terminal",
|
|
110
197
|
name: "keyword"
|
|
111
|
-
}, false, "size"
|
|
112
|
-
"sm",
|
|
113
|
-
"md",
|
|
114
|
-
"lg",
|
|
115
|
-
"fullscreen"
|
|
116
|
-
])
|
|
198
|
+
}, false, "size")
|
|
117
199
|
}));
|
|
118
200
|
checkedProps.value;
|
|
119
201
|
watchSyncEffect(() => {
|
|
@@ -137,6 +219,13 @@ var UiDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
137
219
|
const closeElement = useTemplateRef("close");
|
|
138
220
|
const internalOpen = ref(false);
|
|
139
221
|
const accessibleLabel = ref("Dialog");
|
|
222
|
+
let guardedPrevious;
|
|
223
|
+
const guarded = computed(() => {
|
|
224
|
+
if (!(accessibleLabel.value == null || typeof accessibleLabel.value === "string")) return guardedPrevious;
|
|
225
|
+
return guardedPrevious = accessibleLabel.value;
|
|
226
|
+
});
|
|
227
|
+
provide("html-next:ui-dialog:internalOpen", internalOpen);
|
|
228
|
+
provide("html-next:ui-dialog:accessibleLabel", accessibleLabel);
|
|
140
229
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
141
230
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "dialog")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-dialog> has an incompatible root."), {
|
|
142
231
|
name: "HtmlDiagnosticError",
|
|
@@ -183,8 +272,8 @@ var UiDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
183
272
|
}
|
|
184
273
|
});
|
|
185
274
|
return (_ctx, _cache) => {
|
|
186
|
-
return openBlock(), createElementBlock("dialog", mergeProps({ "data-component": "ui-dialog" }, nativeAttrs(_ctx.$attrs), {
|
|
187
|
-
"aria-label":
|
|
275
|
+
return withDirectives((openBlock(), createElementBlock("dialog", mergeProps({ "data-component": "ui-dialog" }, nativeAttrs(_ctx.$attrs), {
|
|
276
|
+
"aria-label": guarded.value,
|
|
188
277
|
"data-alert": reflectedProp("alert", "alert", checkedProps.value.alert, void 0, false),
|
|
189
278
|
"data-closedby": reflectedProp("closedby", "closedby", checkedProps.value.closedby, void 0, false),
|
|
190
279
|
"data-for": reflectedProp("for", "for", checkedProps.value.for, void 0, false),
|
|
@@ -203,9 +292,12 @@ var UiDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
203
292
|
_: 3
|
|
204
293
|
}),
|
|
205
294
|
createElementVNode("footer", null, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])
|
|
206
|
-
], 16, _hoisted_1)
|
|
295
|
+
], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
296
|
+
contract: propValidityContract,
|
|
297
|
+
values: { ...checkedProps.value }
|
|
298
|
+
}]]);
|
|
207
299
|
};
|
|
208
300
|
}
|
|
209
|
-
}), [["__scopeId", "data-v-
|
|
301
|
+
}), [["__scopeId", "data-v-6979641e"]]);
|
|
210
302
|
//#endregion
|
|
211
303
|
export { UiDialog_default as t };
|