@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,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 { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, normalizeClass, openBlock, ref, renderList, renderSlot, toDisplayString, useTemplateRef, watchSyncEffect } from "vue";
|
|
3
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
4
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, normalizeClass, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiEditorMentionMenu.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = [
|
|
7
7
|
"aria-busy",
|
|
@@ -87,6 +87,189 @@ var UiEditorMentionMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
87
87
|
},
|
|
88
88
|
emits: ["highlight", "select"],
|
|
89
89
|
setup(__props, { emit: __emit }) {
|
|
90
|
+
const propValidityContract = { props: {
|
|
91
|
+
anchorRect: {
|
|
92
|
+
type: {
|
|
93
|
+
kind: "object",
|
|
94
|
+
fields: [
|
|
95
|
+
{
|
|
96
|
+
name: "left",
|
|
97
|
+
type: {
|
|
98
|
+
kind: "terminal",
|
|
99
|
+
name: "number"
|
|
100
|
+
},
|
|
101
|
+
optional: true
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: "top",
|
|
105
|
+
type: {
|
|
106
|
+
kind: "terminal",
|
|
107
|
+
name: "number"
|
|
108
|
+
},
|
|
109
|
+
optional: true
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: "right",
|
|
113
|
+
type: {
|
|
114
|
+
kind: "terminal",
|
|
115
|
+
name: "number"
|
|
116
|
+
},
|
|
117
|
+
optional: true
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: "bottom",
|
|
121
|
+
type: {
|
|
122
|
+
kind: "terminal",
|
|
123
|
+
name: "number"
|
|
124
|
+
},
|
|
125
|
+
optional: true
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "x",
|
|
129
|
+
type: {
|
|
130
|
+
kind: "terminal",
|
|
131
|
+
name: "number"
|
|
132
|
+
},
|
|
133
|
+
optional: true
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: "y",
|
|
137
|
+
type: {
|
|
138
|
+
kind: "terminal",
|
|
139
|
+
name: "number"
|
|
140
|
+
},
|
|
141
|
+
optional: true
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: "width",
|
|
145
|
+
type: {
|
|
146
|
+
kind: "terminal",
|
|
147
|
+
name: "number"
|
|
148
|
+
},
|
|
149
|
+
optional: true
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: "height",
|
|
153
|
+
type: {
|
|
154
|
+
kind: "terminal",
|
|
155
|
+
name: "number"
|
|
156
|
+
},
|
|
157
|
+
optional: true
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
open: false
|
|
161
|
+
},
|
|
162
|
+
required: false,
|
|
163
|
+
target: { attribute: "anchorrect" },
|
|
164
|
+
description: "Where the @ was typed, in viewport coordinates."
|
|
165
|
+
},
|
|
166
|
+
items: {
|
|
167
|
+
type: {
|
|
168
|
+
kind: "list",
|
|
169
|
+
item: {
|
|
170
|
+
kind: "object",
|
|
171
|
+
fields: [
|
|
172
|
+
{
|
|
173
|
+
name: "id",
|
|
174
|
+
type: {
|
|
175
|
+
kind: "terminal",
|
|
176
|
+
name: "string"
|
|
177
|
+
},
|
|
178
|
+
optional: false
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: "label",
|
|
182
|
+
type: {
|
|
183
|
+
kind: "terminal",
|
|
184
|
+
name: "string"
|
|
185
|
+
},
|
|
186
|
+
optional: false
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: "detail",
|
|
190
|
+
type: {
|
|
191
|
+
kind: "terminal",
|
|
192
|
+
name: "string"
|
|
193
|
+
},
|
|
194
|
+
optional: true
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: "initials",
|
|
198
|
+
type: {
|
|
199
|
+
kind: "terminal",
|
|
200
|
+
name: "string"
|
|
201
|
+
},
|
|
202
|
+
optional: true
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
open: false
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
required: false,
|
|
209
|
+
target: { attribute: "items" },
|
|
210
|
+
description: "The people the menu offers."
|
|
211
|
+
},
|
|
212
|
+
label: {
|
|
213
|
+
type: {
|
|
214
|
+
kind: "terminal",
|
|
215
|
+
name: "string"
|
|
216
|
+
},
|
|
217
|
+
required: false,
|
|
218
|
+
target: { attribute: "label" },
|
|
219
|
+
description: "Accessible name of the suggestion list.",
|
|
220
|
+
default: "Mentions"
|
|
221
|
+
},
|
|
222
|
+
loading: {
|
|
223
|
+
type: {
|
|
224
|
+
kind: "terminal",
|
|
225
|
+
name: "boolean"
|
|
226
|
+
},
|
|
227
|
+
required: false,
|
|
228
|
+
target: { attribute: "aria-busy" },
|
|
229
|
+
description: "Whether a search is in progress.",
|
|
230
|
+
default: false
|
|
231
|
+
},
|
|
232
|
+
loadingLabel: {
|
|
233
|
+
type: {
|
|
234
|
+
kind: "terminal",
|
|
235
|
+
name: "string"
|
|
236
|
+
},
|
|
237
|
+
required: false,
|
|
238
|
+
target: { attribute: "loadinglabel" },
|
|
239
|
+
description: "Status text shown while loading an empty result list.",
|
|
240
|
+
default: "Searching…"
|
|
241
|
+
},
|
|
242
|
+
open: {
|
|
243
|
+
type: {
|
|
244
|
+
kind: "terminal",
|
|
245
|
+
name: "boolean"
|
|
246
|
+
},
|
|
247
|
+
required: false,
|
|
248
|
+
target: { attribute: "open" },
|
|
249
|
+
description: "Whether the menu is open.",
|
|
250
|
+
default: false
|
|
251
|
+
},
|
|
252
|
+
query: {
|
|
253
|
+
type: {
|
|
254
|
+
kind: "terminal",
|
|
255
|
+
name: "string"
|
|
256
|
+
},
|
|
257
|
+
required: false,
|
|
258
|
+
target: { attribute: "query" },
|
|
259
|
+
description: "The text typed after the @.",
|
|
260
|
+
default: ""
|
|
261
|
+
},
|
|
262
|
+
selectedIndex: {
|
|
263
|
+
type: {
|
|
264
|
+
kind: "terminal",
|
|
265
|
+
name: "integer"
|
|
266
|
+
},
|
|
267
|
+
required: false,
|
|
268
|
+
target: { attribute: "selectedindex" },
|
|
269
|
+
description: "The zero-based index of the highlighted person, capped at the last one shown, and announced through aria-activedescendant. The menu does not handle arrow\n keys itself: the editor sets this as the user moves, while hovering a person highlights them and reports a highlight event.",
|
|
270
|
+
default: 0
|
|
271
|
+
}
|
|
272
|
+
} };
|
|
90
273
|
const props = __props;
|
|
91
274
|
const checkedProps = computed(() => ({
|
|
92
275
|
anchorRect: checkedProp(props["anchorRect"], {
|
|
@@ -158,7 +341,7 @@ var UiEditorMentionMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
158
341
|
}
|
|
159
342
|
],
|
|
160
343
|
open: false
|
|
161
|
-
}, false, "anchorRect"
|
|
344
|
+
}, false, "anchorRect"),
|
|
162
345
|
items: checkedProp(props["items"], {
|
|
163
346
|
kind: "list",
|
|
164
347
|
item: {
|
|
@@ -199,31 +382,31 @@ var UiEditorMentionMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
199
382
|
],
|
|
200
383
|
open: false
|
|
201
384
|
}
|
|
202
|
-
}, false, "items"
|
|
385
|
+
}, false, "items"),
|
|
203
386
|
label: checkedProp(props["label"], {
|
|
204
387
|
kind: "terminal",
|
|
205
388
|
name: "string"
|
|
206
|
-
}, false, "label"
|
|
389
|
+
}, false, "label"),
|
|
207
390
|
loading: checkedProp(props["loading"], {
|
|
208
391
|
kind: "terminal",
|
|
209
392
|
name: "boolean"
|
|
210
|
-
}, false, "loading"
|
|
393
|
+
}, false, "loading"),
|
|
211
394
|
loadingLabel: checkedProp(props["loadingLabel"], {
|
|
212
395
|
kind: "terminal",
|
|
213
396
|
name: "string"
|
|
214
|
-
}, false, "loadingLabel"
|
|
397
|
+
}, false, "loadingLabel"),
|
|
215
398
|
open: checkedProp(props["open"], {
|
|
216
399
|
kind: "terminal",
|
|
217
400
|
name: "boolean"
|
|
218
|
-
}, false, "open"
|
|
401
|
+
}, false, "open"),
|
|
219
402
|
query: checkedProp(props["query"], {
|
|
220
403
|
kind: "terminal",
|
|
221
404
|
name: "string"
|
|
222
|
-
}, false, "query"
|
|
405
|
+
}, false, "query"),
|
|
223
406
|
selectedIndex: checkedProp(props["selectedIndex"], {
|
|
224
407
|
kind: "terminal",
|
|
225
408
|
name: "integer"
|
|
226
|
-
}, false, "selectedIndex"
|
|
409
|
+
}, false, "selectedIndex")
|
|
227
410
|
}));
|
|
228
411
|
checkedProps.value;
|
|
229
412
|
watchSyncEffect(() => {
|
|
@@ -250,6 +433,16 @@ var UiEditorMentionMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
250
433
|
const searching = ref(false);
|
|
251
434
|
const active = ref(0);
|
|
252
435
|
const prefix = ref("ui-editor-mention-menu");
|
|
436
|
+
let guardedPrevious;
|
|
437
|
+
const guarded = computed(() => {
|
|
438
|
+
if (!(visible.value == null || typeof visible.value === "boolean")) return guardedPrevious;
|
|
439
|
+
return guardedPrevious = !visible.value;
|
|
440
|
+
});
|
|
441
|
+
provide("html-next:ui-editor-mention-menu:visible", visible);
|
|
442
|
+
provide("html-next:ui-editor-mention-menu:rows", rows);
|
|
443
|
+
provide("html-next:ui-editor-mention-menu:searching", searching);
|
|
444
|
+
provide("html-next:ui-editor-mention-menu:active", active);
|
|
445
|
+
provide("html-next:ui-editor-mention-menu:prefix", prefix);
|
|
253
446
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
254
447
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "div")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-editor-mention-menu> has an incompatible root."), {
|
|
255
448
|
name: "HtmlDiagnosticError",
|
|
@@ -281,12 +474,12 @@ var UiEditorMentionMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
281
474
|
}
|
|
282
475
|
});
|
|
283
476
|
return (_ctx, _cache) => {
|
|
284
|
-
return openBlock(), createElementBlock("div", mergeProps({
|
|
477
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({
|
|
285
478
|
"data-component": "ui-editor-mention-menu",
|
|
286
479
|
role: "listbox"
|
|
287
480
|
}, nativeAttrs(_ctx.$attrs), {
|
|
288
481
|
"aria-busy": checkedProps.value.loading ?? void 0,
|
|
289
|
-
hidden:
|
|
482
|
+
hidden: guarded.value,
|
|
290
483
|
"data-anchor-rect": reflectedProp("anchorRect", "anchor-rect", checkedProps.value.anchorRect, void 0, false),
|
|
291
484
|
"data-items": reflectedProp("items", "items", checkedProps.value.items, void 0, false),
|
|
292
485
|
"data-label": reflectedProp("label", "label", checkedProps.value.label, void 0, false),
|
|
@@ -312,9 +505,12 @@ var UiEditorMentionMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
312
505
|
}, [createElementVNode("span", _hoisted_6, toDisplayString(row.initials), 1), createElementVNode("span", _hoisted_7, [createElementVNode("span", _hoisted_8, toDisplayString(row.label), 1), row.detail ? (openBlock(), createElementBlock("span", _hoisted_9, toDisplayString(row.detail), 1)) : createCommentVNode("v-if", true)])], 10, _hoisted_5);
|
|
313
506
|
}), 128)), renderSlot(_ctx.$slots, "default", {}, void 0, true)])) : createCommentVNode("v-if", true),
|
|
314
507
|
createElementVNode("div", _hoisted_10, [renderSlot(_ctx.$slots, "empty", {}, void 0, true)], 512)
|
|
315
|
-
], 16, _hoisted_1)
|
|
508
|
+
], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
509
|
+
contract: propValidityContract,
|
|
510
|
+
values: { ...checkedProps.value }
|
|
511
|
+
}]]);
|
|
316
512
|
};
|
|
317
513
|
}
|
|
318
|
-
}), [["__scopeId", "data-v-
|
|
514
|
+
}), [["__scopeId", "data-v-52514c10"]]);
|
|
319
515
|
//#endregion
|
|
320
516
|
export { UiEditorMentionMenu_default as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import { t as checkedProp } from "./props.js";
|
|
3
|
-
import { computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, toDisplayString, watchSyncEffect } from "vue";
|
|
2
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
3
|
+
import { computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, toDisplayString, unref, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiEditorMentionMenuItem.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
|
6
6
|
"data-detail",
|
|
@@ -37,20 +37,52 @@ var UiEditorMentionMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
setup(__props) {
|
|
40
|
+
const propValidityContract = { props: {
|
|
41
|
+
detail: {
|
|
42
|
+
type: {
|
|
43
|
+
kind: "terminal",
|
|
44
|
+
name: "string"
|
|
45
|
+
},
|
|
46
|
+
required: false,
|
|
47
|
+
target: { attribute: "detail" },
|
|
48
|
+
description: "Secondary text, such as a team or role.",
|
|
49
|
+
default: ""
|
|
50
|
+
},
|
|
51
|
+
initials: {
|
|
52
|
+
type: {
|
|
53
|
+
kind: "terminal",
|
|
54
|
+
name: "string"
|
|
55
|
+
},
|
|
56
|
+
required: false,
|
|
57
|
+
target: { attribute: "initials" },
|
|
58
|
+
description: "Text fallback for the start slot when no avatar is supplied.",
|
|
59
|
+
default: ""
|
|
60
|
+
},
|
|
61
|
+
value: {
|
|
62
|
+
type: {
|
|
63
|
+
kind: "terminal",
|
|
64
|
+
name: "string"
|
|
65
|
+
},
|
|
66
|
+
required: false,
|
|
67
|
+
target: { attribute: "data-value" },
|
|
68
|
+
description: "Stable identifier reported by the containing Mention Menu when this person is chosen.",
|
|
69
|
+
default: ""
|
|
70
|
+
}
|
|
71
|
+
} };
|
|
40
72
|
const props = __props;
|
|
41
73
|
const checkedProps = computed(() => ({
|
|
42
74
|
detail: checkedProp(props["detail"], {
|
|
43
75
|
kind: "terminal",
|
|
44
76
|
name: "string"
|
|
45
|
-
}, false, "detail"
|
|
77
|
+
}, false, "detail"),
|
|
46
78
|
initials: checkedProp(props["initials"], {
|
|
47
79
|
kind: "terminal",
|
|
48
80
|
name: "string"
|
|
49
|
-
}, false, "initials"
|
|
81
|
+
}, false, "initials"),
|
|
50
82
|
value: checkedProp(props["value"], {
|
|
51
83
|
kind: "terminal",
|
|
52
84
|
name: "string"
|
|
53
|
-
}, false, "value"
|
|
85
|
+
}, false, "value")
|
|
54
86
|
}));
|
|
55
87
|
checkedProps.value;
|
|
56
88
|
watchSyncEffect(() => {
|
|
@@ -77,7 +109,7 @@ var UiEditorMentionMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
77
109
|
})
|
|
78
110
|
});
|
|
79
111
|
return (_ctx, _cache) => {
|
|
80
|
-
return openBlock(), createElementBlock("li", mergeProps({
|
|
112
|
+
return withDirectives((openBlock(), createElementBlock("li", mergeProps({
|
|
81
113
|
"data-component": "ui-editor-mention-menu-item",
|
|
82
114
|
role: "option",
|
|
83
115
|
tabindex: "-1"
|
|
@@ -85,9 +117,12 @@ var UiEditorMentionMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
85
117
|
"data-detail": reflectedProp("detail", "detail", checkedProps.value.detail, void 0, false),
|
|
86
118
|
"data-initials": reflectedProp("initials", "initials", checkedProps.value.initials, void 0, false),
|
|
87
119
|
"data-value": reflectedProp("value", "value", checkedProps.value.value, void 0, true)
|
|
88
|
-
}), [createElementVNode("span", _hoisted_2, [renderSlot(_ctx.$slots, "start", {}, () => [createTextVNode(toDisplayString(checkedProps.value.initials), 1)], true)]), createElementVNode("span", _hoisted_3, [createElementVNode("span", _hoisted_4, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]), checkedProps.value.detail ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(checkedProps.value.detail), 1)) : createCommentVNode("v-if", true)])], 16, _hoisted_1)
|
|
120
|
+
}), [createElementVNode("span", _hoisted_2, [renderSlot(_ctx.$slots, "start", {}, () => [createTextVNode(toDisplayString(checkedProps.value.initials), 1)], true)]), createElementVNode("span", _hoisted_3, [createElementVNode("span", _hoisted_4, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]), checkedProps.value.detail ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(checkedProps.value.detail), 1)) : createCommentVNode("v-if", true)])], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
121
|
+
contract: propValidityContract,
|
|
122
|
+
values: { ...checkedProps.value }
|
|
123
|
+
}]]);
|
|
89
124
|
};
|
|
90
125
|
}
|
|
91
|
-
}), [["__scopeId", "data-v-
|
|
126
|
+
}), [["__scopeId", "data-v-050a2a84"]]);
|
|
92
127
|
//#endregion
|
|
93
128
|
export { UiEditorMentionMenuItem_default as t };
|
|
@@ -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 UiIcon_default } from "./UiIcon.js";
|
|
5
|
-
import { Fragment, computed, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, normalizeClass, openBlock, ref, renderList, renderSlot, toDisplayString, useTemplateRef, watchSyncEffect } from "vue";
|
|
5
|
+
import { Fragment, computed, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, normalizeClass, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
6
6
|
//#region .build/vue/UiEditorSlashMenu.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var _hoisted_1 = [
|
|
8
8
|
"hidden",
|
|
@@ -68,6 +68,169 @@ var UiEditorSlashMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
68
68
|
},
|
|
69
69
|
emits: ["highlight", "select"],
|
|
70
70
|
setup(__props, { emit: __emit }) {
|
|
71
|
+
const propValidityContract = { props: {
|
|
72
|
+
anchorRect: {
|
|
73
|
+
type: {
|
|
74
|
+
kind: "object",
|
|
75
|
+
fields: [
|
|
76
|
+
{
|
|
77
|
+
name: "left",
|
|
78
|
+
type: {
|
|
79
|
+
kind: "terminal",
|
|
80
|
+
name: "number"
|
|
81
|
+
},
|
|
82
|
+
optional: true
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "top",
|
|
86
|
+
type: {
|
|
87
|
+
kind: "terminal",
|
|
88
|
+
name: "number"
|
|
89
|
+
},
|
|
90
|
+
optional: true
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: "right",
|
|
94
|
+
type: {
|
|
95
|
+
kind: "terminal",
|
|
96
|
+
name: "number"
|
|
97
|
+
},
|
|
98
|
+
optional: true
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "bottom",
|
|
102
|
+
type: {
|
|
103
|
+
kind: "terminal",
|
|
104
|
+
name: "number"
|
|
105
|
+
},
|
|
106
|
+
optional: true
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: "x",
|
|
110
|
+
type: {
|
|
111
|
+
kind: "terminal",
|
|
112
|
+
name: "number"
|
|
113
|
+
},
|
|
114
|
+
optional: true
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: "y",
|
|
118
|
+
type: {
|
|
119
|
+
kind: "terminal",
|
|
120
|
+
name: "number"
|
|
121
|
+
},
|
|
122
|
+
optional: true
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: "width",
|
|
126
|
+
type: {
|
|
127
|
+
kind: "terminal",
|
|
128
|
+
name: "number"
|
|
129
|
+
},
|
|
130
|
+
optional: true
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: "height",
|
|
134
|
+
type: {
|
|
135
|
+
kind: "terminal",
|
|
136
|
+
name: "number"
|
|
137
|
+
},
|
|
138
|
+
optional: true
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
open: false
|
|
142
|
+
},
|
|
143
|
+
required: false,
|
|
144
|
+
target: { attribute: "anchorrect" },
|
|
145
|
+
description: "Where the slash was typed, in viewport coordinates."
|
|
146
|
+
},
|
|
147
|
+
items: {
|
|
148
|
+
type: {
|
|
149
|
+
kind: "list",
|
|
150
|
+
item: {
|
|
151
|
+
kind: "object",
|
|
152
|
+
fields: [
|
|
153
|
+
{
|
|
154
|
+
name: "value",
|
|
155
|
+
type: {
|
|
156
|
+
kind: "terminal",
|
|
157
|
+
name: "string"
|
|
158
|
+
},
|
|
159
|
+
optional: true
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: "title",
|
|
163
|
+
type: {
|
|
164
|
+
kind: "terminal",
|
|
165
|
+
name: "string"
|
|
166
|
+
},
|
|
167
|
+
optional: false
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: "description",
|
|
171
|
+
type: {
|
|
172
|
+
kind: "terminal",
|
|
173
|
+
name: "string"
|
|
174
|
+
},
|
|
175
|
+
optional: false
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: "icon",
|
|
179
|
+
type: {
|
|
180
|
+
kind: "terminal",
|
|
181
|
+
name: "string"
|
|
182
|
+
},
|
|
183
|
+
optional: false
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
open: false
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
required: false,
|
|
190
|
+
target: { attribute: "items" },
|
|
191
|
+
description: "Integration-supplied commands. Authored Slash Menu Item children are the markup alternative."
|
|
192
|
+
},
|
|
193
|
+
label: {
|
|
194
|
+
type: {
|
|
195
|
+
kind: "terminal",
|
|
196
|
+
name: "string"
|
|
197
|
+
},
|
|
198
|
+
required: false,
|
|
199
|
+
target: { attribute: "label" },
|
|
200
|
+
description: "Accessible name of the suggestion list, used unless an aria-label or aria-labelledby is authored.",
|
|
201
|
+
default: "Insert block"
|
|
202
|
+
},
|
|
203
|
+
open: {
|
|
204
|
+
type: {
|
|
205
|
+
kind: "terminal",
|
|
206
|
+
name: "boolean"
|
|
207
|
+
},
|
|
208
|
+
required: false,
|
|
209
|
+
target: { attribute: "open" },
|
|
210
|
+
description: "Whether the menu is open.",
|
|
211
|
+
default: false
|
|
212
|
+
},
|
|
213
|
+
query: {
|
|
214
|
+
type: {
|
|
215
|
+
kind: "terminal",
|
|
216
|
+
name: "string"
|
|
217
|
+
},
|
|
218
|
+
required: false,
|
|
219
|
+
target: { attribute: "query" },
|
|
220
|
+
description: "The text typed after the slash.",
|
|
221
|
+
default: ""
|
|
222
|
+
},
|
|
223
|
+
selectedIndex: {
|
|
224
|
+
type: {
|
|
225
|
+
kind: "terminal",
|
|
226
|
+
name: "integer"
|
|
227
|
+
},
|
|
228
|
+
required: false,
|
|
229
|
+
target: { attribute: "selectedindex" },
|
|
230
|
+
description: "The zero-based index of the highlighted item. The menu does not handle arrow keys itself: the editor sets this as the user moves, while hovering an item\n highlights it and reports a highlight event.",
|
|
231
|
+
default: 0
|
|
232
|
+
}
|
|
233
|
+
} };
|
|
71
234
|
const props = __props;
|
|
72
235
|
const checkedProps = computed(() => ({
|
|
73
236
|
anchorRect: checkedProp(props["anchorRect"], {
|
|
@@ -139,7 +302,7 @@ var UiEditorSlashMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
139
302
|
}
|
|
140
303
|
],
|
|
141
304
|
open: false
|
|
142
|
-
}, false, "anchorRect"
|
|
305
|
+
}, false, "anchorRect"),
|
|
143
306
|
items: checkedProp(props["items"], {
|
|
144
307
|
kind: "list",
|
|
145
308
|
item: {
|
|
@@ -180,23 +343,23 @@ var UiEditorSlashMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
180
343
|
],
|
|
181
344
|
open: false
|
|
182
345
|
}
|
|
183
|
-
}, false, "items"
|
|
346
|
+
}, false, "items"),
|
|
184
347
|
label: checkedProp(props["label"], {
|
|
185
348
|
kind: "terminal",
|
|
186
349
|
name: "string"
|
|
187
|
-
}, false, "label"
|
|
350
|
+
}, false, "label"),
|
|
188
351
|
open: checkedProp(props["open"], {
|
|
189
352
|
kind: "terminal",
|
|
190
353
|
name: "boolean"
|
|
191
|
-
}, false, "open"
|
|
354
|
+
}, false, "open"),
|
|
192
355
|
query: checkedProp(props["query"], {
|
|
193
356
|
kind: "terminal",
|
|
194
357
|
name: "string"
|
|
195
|
-
}, false, "query"
|
|
358
|
+
}, false, "query"),
|
|
196
359
|
selectedIndex: checkedProp(props["selectedIndex"], {
|
|
197
360
|
kind: "terminal",
|
|
198
361
|
name: "integer"
|
|
199
|
-
}, false, "selectedIndex"
|
|
362
|
+
}, false, "selectedIndex")
|
|
200
363
|
}));
|
|
201
364
|
checkedProps.value;
|
|
202
365
|
watchSyncEffect(() => {
|
|
@@ -221,6 +384,14 @@ var UiEditorSlashMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
221
384
|
const visible = ref(false);
|
|
222
385
|
const active = ref(0);
|
|
223
386
|
const rows = ref([]);
|
|
387
|
+
let guardedPrevious;
|
|
388
|
+
const guarded = computed(() => {
|
|
389
|
+
if (!(visible.value == null || typeof visible.value === "boolean")) return guardedPrevious;
|
|
390
|
+
return guardedPrevious = !visible.value;
|
|
391
|
+
});
|
|
392
|
+
provide("html-next:ui-editor-slash-menu:visible", visible);
|
|
393
|
+
provide("html-next:ui-editor-slash-menu:active", active);
|
|
394
|
+
provide("html-next:ui-editor-slash-menu:rows", rows);
|
|
224
395
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
225
396
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "div")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-editor-slash-menu> has an incompatible root."), {
|
|
226
397
|
name: "HtmlDiagnosticError",
|
|
@@ -250,11 +421,11 @@ var UiEditorSlashMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
250
421
|
}
|
|
251
422
|
});
|
|
252
423
|
return (_ctx, _cache) => {
|
|
253
|
-
return openBlock(), createElementBlock("div", mergeProps({
|
|
424
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({
|
|
254
425
|
"data-component": "ui-editor-slash-menu",
|
|
255
426
|
role: "listbox"
|
|
256
427
|
}, nativeAttrs(_ctx.$attrs), {
|
|
257
|
-
hidden:
|
|
428
|
+
hidden: guarded.value,
|
|
258
429
|
"data-anchor-rect": reflectedProp("anchorRect", "anchor-rect", checkedProps.value.anchorRect, void 0, false),
|
|
259
430
|
"data-items": reflectedProp("items", "items", checkedProps.value.items, void 0, false),
|
|
260
431
|
"data-label": reflectedProp("label", "label", checkedProps.value.label, void 0, false),
|
|
@@ -277,9 +448,12 @@ var UiEditorSlashMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
277
448
|
}), 128)), renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
278
449
|
createElementVNode("div", _hoisted_9, [renderSlot(_ctx.$slots, "empty", {}, void 0, true)], 512),
|
|
279
450
|
createElementVNode("div", _hoisted_10, [renderSlot(_ctx.$slots, "footer", {}, void 0, true)])
|
|
280
|
-
], 16, _hoisted_1)
|
|
451
|
+
], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
452
|
+
contract: propValidityContract,
|
|
453
|
+
values: { ...checkedProps.value }
|
|
454
|
+
}]]);
|
|
281
455
|
};
|
|
282
456
|
}
|
|
283
|
-
}), [["__scopeId", "data-v-
|
|
457
|
+
}), [["__scopeId", "data-v-943d4c31"]]);
|
|
284
458
|
//#endregion
|
|
285
459
|
export { UiEditorSlashMenu_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/UiEditorSlashMenuGroup.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = ["data-label"];
|
|
6
6
|
var _hoisted_2 = ["aria-label"];
|
|
@@ -16,11 +16,21 @@ var UiEditorSlashMenuGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_def
|
|
|
16
16
|
default: ""
|
|
17
17
|
} },
|
|
18
18
|
setup(__props) {
|
|
19
|
+
const propValidityContract = { props: { label: {
|
|
20
|
+
type: {
|
|
21
|
+
kind: "terminal",
|
|
22
|
+
name: "string"
|
|
23
|
+
},
|
|
24
|
+
required: false,
|
|
25
|
+
target: { attribute: "aria-label" },
|
|
26
|
+
description: "Names this group of related slash commands.",
|
|
27
|
+
default: ""
|
|
28
|
+
} } };
|
|
19
29
|
const props = __props;
|
|
20
30
|
const checkedProps = computed(() => ({ label: checkedProp(props["label"], {
|
|
21
31
|
kind: "terminal",
|
|
22
32
|
name: "string"
|
|
23
|
-
}, false, "label"
|
|
33
|
+
}, false, "label") }));
|
|
24
34
|
checkedProps.value;
|
|
25
35
|
watchSyncEffect(() => {
|
|
26
36
|
checkedProps.value;
|
|
@@ -46,15 +56,18 @@ var UiEditorSlashMenuGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_def
|
|
|
46
56
|
})
|
|
47
57
|
});
|
|
48
58
|
return (_ctx, _cache) => {
|
|
49
|
-
return openBlock(), createElementBlock("li", mergeProps({
|
|
59
|
+
return withDirectives((openBlock(), createElementBlock("li", mergeProps({
|
|
50
60
|
"data-component": "ui-editor-slash-menu-group",
|
|
51
61
|
role: "presentation"
|
|
52
62
|
}, nativeAttrs(_ctx.$attrs), { "data-label": reflectedProp("label", "label", checkedProps.value.label, void 0, false) }), [createElementVNode("div", {
|
|
53
63
|
role: "group",
|
|
54
64
|
"aria-label": checkedProps.value.label ?? void 0
|
|
55
|
-
}, [createElementVNode("div", _hoisted_3, toDisplayString(checkedProps.value.label), 1), createElementVNode("ul", _hoisted_4, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])], 8, _hoisted_2)], 16, _hoisted_1)
|
|
65
|
+
}, [createElementVNode("div", _hoisted_3, toDisplayString(checkedProps.value.label), 1), createElementVNode("ul", _hoisted_4, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])], 8, _hoisted_2)], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
66
|
+
contract: propValidityContract,
|
|
67
|
+
values: { ...checkedProps.value }
|
|
68
|
+
}]]);
|
|
56
69
|
};
|
|
57
70
|
}
|
|
58
|
-
}), [["__scopeId", "data-v-
|
|
71
|
+
}), [["__scopeId", "data-v-a7a7bd99"]]);
|
|
59
72
|
//#endregion
|
|
60
73
|
export { UiEditorSlashMenuGroup_default as t };
|