@threadlabs/looma 0.28.13 → 0.28.14
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 +1 -1
- package/components/ui-combobox/ui-combobox.html +1 -1
- package/components/ui-disclosure/ui-disclosure.html +4 -4
- package/components/ui-editable/ui-editable.html +3 -3
- package/components/ui-menu/ui-menu.html +1 -1
- package/components/ui-popover/ui-popover.html +1 -1
- package/components/ui-sidebar/ui-sidebar.html +4 -4
- package/components/ui-switcher/ui-switcher.html +1 -1
- package/components/ui-tree-item/ui-tree-item.html +2 -2
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/styles/ui-action-bar.css +1 -1
- package/styles/ui-affordance-scope.css +1 -1
- package/styles/ui-avatar-group.css +1 -1
- package/styles/ui-avatar.css +1 -1
- package/styles/ui-badge.css +1 -1
- package/styles/ui-breadcrumb-item.css +1 -1
- package/styles/ui-breadcrumbs.css +1 -1
- package/styles/ui-button.css +1 -1
- package/styles/ui-callout.css +1 -1
- package/styles/ui-card.css +1 -1
- package/styles/ui-checkbox.css +1 -1
- package/styles/ui-cluster.css +1 -1
- package/styles/ui-combobox.css +1 -1
- package/styles/ui-container.css +1 -1
- package/styles/ui-context-menu.css +1 -1
- package/styles/ui-cover.css +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 +2 -2
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-block-actions.css +1 -1
- package/styles/ui-editor-chip-editor.css +1 -1
- package/styles/ui-editor-code-language.css +1 -1
- package/styles/ui-editor-image-toolbar.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-link-card.css +1 -1
- package/styles/ui-editor-link-form.css +1 -1
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-slash-menu-group.css +1 -1
- package/styles/ui-editor-slash-menu-item.css +1 -1
- package/styles/ui-editor-slash-menu.css +1 -1
- package/styles/ui-editor-surface.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +1 -1
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +1 -1
- package/styles/ui-icon-button.css +1 -1
- package/styles/ui-icon.css +1 -1
- package/styles/ui-image.css +1 -1
- package/styles/ui-input-group.css +1 -1
- package/styles/ui-input.css +1 -1
- package/styles/ui-list-item.css +1 -1
- package/styles/ui-list.css +1 -1
- package/styles/ui-listbox.css +1 -1
- package/styles/ui-menu-group.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.css +2 -2
- 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 +2 -2
- 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 +2 -2
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-swatch.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +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 +2 -2
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +2 -2
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +2 -2
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +3 -3
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +2 -2
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +3 -3
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +2 -2
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +2 -2
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +2 -2
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +2 -2
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +2 -2
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +2 -2
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +2 -2
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +2 -2
- 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/UiEditorBlockActions.d.ts +1 -1
- package/vanilla/UiEditorBlockActions.js +2 -2
- package/vanilla/UiEditorChipEditor.d.ts +1 -1
- package/vanilla/UiEditorChipEditor.js +2 -2
- package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
- package/vanilla/UiEditorCodeLanguage.js +2 -2
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +2 -2
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +2 -2
- package/vanilla/UiEditorLinkCard.d.ts +1 -1
- package/vanilla/UiEditorLinkCard.js +2 -2
- package/vanilla/UiEditorLinkForm.d.ts +1 -1
- package/vanilla/UiEditorLinkForm.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 +3 -3
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +2 -2
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +2 -2
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +3 -3
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +2 -2
- 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 +2 -2
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +2 -2
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +2 -2
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +2 -2
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +2 -2
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +3 -3
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +2 -2
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +2 -2
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +2 -2
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +3 -3
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +2 -2
- 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 +2 -2
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +4 -4
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +2 -2
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +3 -3
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +2 -2
- 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 +2 -2
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +2 -2
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +2 -2
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +2 -2
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +2 -2
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +2 -2
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +2 -2
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +2 -2
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +2 -2
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +2 -2
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +2 -2
- package/vanilla/UiSwatch.d.ts +1 -1
- package/vanilla/UiSwatch.js +2 -2
- 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 +2 -2
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +2 -2
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +3 -3
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +2 -2
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +2 -2
- 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 +2 -2
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +3 -3
- package/vue/UiActionBar.vue +23 -15
- package/vue/UiAffordanceScope.vue +11 -9
- package/vue/UiAvatar.vue +34 -27
- package/vue/UiAvatarGroup.vue +22 -17
- package/vue/UiBadge.vue +78 -69
- package/vue/UiBreadcrumbItem.vue +17 -14
- package/vue/UiBreadcrumbs.vue +9 -7
- package/vue/UiButton.vue +150 -138
- package/vue/UiCallout.vue +68 -43
- package/vue/UiCard.vue +52 -44
- package/vue/UiCheckbox.vue +48 -40
- package/vue/UiCluster.vue +35 -33
- package/vue/UiCombobox.vue +158 -107
- package/vue/UiContainer.vue +16 -14
- package/vue/UiContextMenu.vue +24 -13
- package/vue/UiCover.vue +10 -8
- package/vue/UiDescriptionItem.vue +11 -9
- package/vue/UiDescriptionList.vue +20 -18
- package/vue/UiDialog.vue +41 -37
- package/vue/UiDisclosure.vue +65 -51
- package/vue/UiEditable.vue +34 -33
- package/vue/UiEditorBlockActions.vue +4 -3
- package/vue/UiEditorChipEditor.vue +4 -3
- package/vue/UiEditorCodeLanguage.vue +5 -4
- package/vue/UiEditorImageToolbar.vue +5 -4
- package/vue/UiEditorInsertTableGrid.vue +19 -18
- package/vue/UiEditorLinkCard.vue +7 -6
- package/vue/UiEditorLinkForm.vue +15 -14
- package/vue/UiEditorMentionMenu.vue +52 -37
- package/vue/UiEditorMentionMenuItem.vue +30 -20
- package/vue/UiEditorSlashMenu.vue +49 -36
- package/vue/UiEditorSlashMenuGroup.vue +16 -10
- package/vue/UiEditorSlashMenuItem.vue +36 -26
- package/vue/UiEditorSurface.vue +8 -6
- package/vue/UiEditorTableContextMenu.vue +26 -25
- package/vue/UiEditorTableOverlay.vue +56 -51
- package/vue/UiEditorTableToolbar.vue +37 -36
- package/vue/UiEditorToolbar.vue +24 -20
- package/vue/UiFloatingActionButton.vue +17 -15
- package/vue/UiFormField.vue +27 -22
- package/vue/UiGrid.vue +17 -15
- package/vue/UiIcon.vue +7 -6
- package/vue/UiIconButton.vue +75 -70
- package/vue/UiImage.vue +61 -46
- package/vue/UiInput.vue +28 -28
- package/vue/UiInputGroup.vue +48 -43
- package/vue/UiList.vue +25 -21
- package/vue/UiListItem.vue +54 -44
- package/vue/UiListbox.vue +29 -22
- package/vue/UiMenu.vue +25 -23
- package/vue/UiMenuGroup.vue +11 -7
- package/vue/UiMenuItem.vue +52 -43
- package/vue/UiMeter.vue +42 -41
- package/vue/UiNavItem.vue +60 -47
- package/vue/UiPageHeader.vue +27 -20
- package/vue/UiPopover.vue +21 -19
- package/vue/UiRadio.vue +32 -28
- package/vue/UiRadioGroup.vue +24 -19
- package/vue/UiReel.vue +24 -22
- package/vue/UiScrollArea.vue +30 -24
- package/vue/UiSearchResultRow.vue +41 -26
- package/vue/UiSearchShell.vue +37 -29
- package/vue/UiSection.vue +31 -24
- package/vue/UiSelect.vue +23 -21
- package/vue/UiSeparator.vue +14 -13
- package/vue/UiSidebar.vue +48 -40
- package/vue/UiSpinner.vue +14 -13
- package/vue/UiStack.vue +26 -24
- package/vue/UiStatusMessage.vue +26 -21
- package/vue/UiSwatch.vue +13 -12
- package/vue/UiSwitch.vue +37 -33
- package/vue/UiSwitcher.vue +27 -22
- package/vue/UiTable.vue +23 -19
- package/vue/UiTabs.vue +48 -33
- package/vue/UiText.vue +173 -151
- package/vue/UiTextarea.vue +27 -27
- package/vue/UiToast.vue +17 -15
- package/vue/UiToastRegion.vue +36 -31
- package/vue/UiTooltip.vue +40 -34
- package/vue/UiTopBar.vue +17 -13
- package/vue/UiTree.vue +17 -15
- package/vue/UiTreeItem.vue +202 -133
- package/vue/chunks/UiActionBar.js +21 -6
- package/vue/chunks/UiAffordanceScope.js +8 -6
- package/vue/chunks/UiAvatar.js +30 -20
- package/vue/chunks/UiAvatarGroup.js +16 -13
- package/vue/chunks/UiBadge.js +19 -13
- package/vue/chunks/UiBreadcrumbItem.js +13 -7
- package/vue/chunks/UiBreadcrumbs.js +9 -4
- package/vue/chunks/UiButton.js +158 -124
- package/vue/chunks/UiCallout.js +105 -37
- package/vue/chunks/UiCard.js +50 -42
- package/vue/chunks/UiCheckbox.js +32 -22
- package/vue/chunks/UiCluster.js +18 -16
- package/vue/chunks/UiCombobox.js +130 -73
- package/vue/chunks/UiContainer.js +10 -8
- package/vue/chunks/UiContextMenu.js +7 -4
- package/vue/chunks/UiCover.js +7 -5
- package/vue/chunks/UiDescriptionItem.js +9 -3
- package/vue/chunks/UiDescriptionList.js +10 -8
- package/vue/chunks/UiDialog.js +26 -19
- package/vue/chunks/UiDisclosure.js +43 -25
- package/vue/chunks/UiEditable.js +25 -24
- package/vue/chunks/UiEditorBlockActions.js +4 -3
- package/vue/chunks/UiEditorChipEditor.js +4 -3
- package/vue/chunks/UiEditorCodeLanguage.js +5 -4
- package/vue/chunks/UiEditorImageToolbar.js +7 -6
- package/vue/chunks/UiEditorInsertTableGrid.js +10 -9
- package/vue/chunks/UiEditorLinkCard.js +11 -10
- package/vue/chunks/UiEditorLinkForm.js +26 -25
- package/vue/chunks/UiEditorMentionMenu.js +41 -24
- package/vue/chunks/UiEditorMentionMenuItem.js +23 -11
- package/vue/chunks/UiEditorSlashMenu.js +41 -20
- package/vue/chunks/UiEditorSlashMenuGroup.js +16 -5
- package/vue/chunks/UiEditorSlashMenuItem.js +28 -14
- package/vue/chunks/UiEditorSurface.js +6 -4
- package/vue/chunks/UiEditorTableContextMenu.js +14 -13
- package/vue/chunks/UiEditorTableOverlay.js +6 -5
- package/vue/chunks/UiEditorTableToolbar.js +14 -13
- package/vue/chunks/UiEditorToolbar.js +8 -5
- package/vue/chunks/UiFloatingActionButton.js +11 -9
- package/vue/chunks/UiFormField.js +30 -16
- package/vue/chunks/UiGrid.js +10 -8
- package/vue/chunks/UiIcon.js +6 -3
- package/vue/chunks/UiIconButton.js +33 -26
- package/vue/chunks/UiImage.js +31 -22
- package/vue/chunks/UiInput.js +17 -16
- package/vue/chunks/UiInputGroup.js +30 -16
- package/vue/chunks/UiList.js +24 -20
- package/vue/chunks/UiListItem.js +39 -22
- package/vue/chunks/UiListbox.js +35 -25
- package/vue/chunks/UiMenu.js +22 -17
- package/vue/chunks/UiMenuGroup.js +7 -4
- package/vue/chunks/UiMenuItem.js +57 -38
- package/vue/chunks/UiMeter.js +22 -21
- package/vue/chunks/UiNavItem.js +78 -42
- package/vue/chunks/UiPageHeader.js +30 -10
- package/vue/chunks/UiPopover.js +16 -11
- package/vue/chunks/UiRadio.js +26 -16
- package/vue/chunks/UiRadioGroup.js +24 -19
- package/vue/chunks/UiReel.js +11 -9
- package/vue/chunks/UiScrollArea.js +16 -13
- package/vue/chunks/UiSearchResultRow.js +39 -19
- package/vue/chunks/UiSearchShell.js +36 -18
- package/vue/chunks/UiSection.js +31 -13
- package/vue/chunks/UiSelect.js +14 -12
- package/vue/chunks/UiSeparator.js +11 -10
- package/vue/chunks/UiSidebar.js +33 -23
- package/vue/chunks/UiSpinner.js +7 -6
- package/vue/chunks/UiStack.js +14 -12
- package/vue/chunks/UiStatusMessage.js +23 -11
- package/vue/chunks/UiSwatch.js +5 -4
- package/vue/chunks/UiSwitch.js +26 -16
- package/vue/chunks/UiSwitcher.js +13 -11
- package/vue/chunks/UiTable.js +9 -7
- package/vue/chunks/UiTabs.js +23 -18
- package/vue/chunks/UiText.js +277 -255
- package/vue/chunks/UiTextarea.js +21 -20
- package/vue/chunks/UiToast.js +13 -7
- package/vue/chunks/UiToastRegion.js +15 -8
- package/vue/chunks/UiTooltip.js +27 -19
- package/vue/chunks/UiTopBar.js +21 -6
- package/vue/chunks/UiTree.js +18 -16
- package/vue/chunks/UiTreeItem.js +82 -45
- package/vue/chunks/_plugin-vue_export-helper.js +17 -4
- package/vue/components.css +1507 -1479
- package/vue/host.ts +26 -6
package/vue/UiEditorLinkCard.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.52 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, provide, ref, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -258,12 +258,13 @@ useComponentHost(() => import('../components/ui-editor-link-card/ui-editor-link-
|
|
|
258
258
|
<template>
|
|
259
259
|
<div
|
|
260
260
|
v-bind="nativeAttrs($attrs)"
|
|
261
|
+
data-hn
|
|
261
262
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
262
|
-
:data-detail="reflectedProp('detail', 'detail', checkedProps.detail, undefined, false)"
|
|
263
|
-
:data-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
264
|
-
:data-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
265
|
-
:data-open-href="reflectedProp('openHref', 'open-href', checkedProps.openHref, undefined, false)"
|
|
266
|
-
:data-target-label="reflectedProp('targetLabel', 'target-label', checkedProps.targetLabel, undefined, false)"
|
|
263
|
+
:data-ui-editor-link-card-prop-detail="reflectedProp('detail', 'detail', checkedProps.detail, undefined, false)"
|
|
264
|
+
:data-ui-editor-link-card-prop-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
265
|
+
:data-ui-editor-link-card-prop-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
266
|
+
:data-ui-editor-link-card-prop-open-href="reflectedProp('openHref', 'open-href', checkedProps.openHref, undefined, false)"
|
|
267
|
+
:data-ui-editor-link-card-prop-target-label="reflectedProp('targetLabel', 'target-label', checkedProps.targetLabel, undefined, false)"
|
|
267
268
|
ref="root"
|
|
268
269
|
>
|
|
269
270
|
<UiCard variant="elevated" padding="xs" size="content"><UiCluster
|
package/vue/UiEditorLinkForm.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.52 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, provide, ref, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -447,19 +447,20 @@ useComponentHost(() => import('../components/ui-editor-link-form/ui-editor-link-
|
|
|
447
447
|
<form
|
|
448
448
|
aria-label="Edit link"
|
|
449
449
|
v-bind="nativeAttrs($attrs)"
|
|
450
|
+
data-hn
|
|
450
451
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
451
|
-
:data-error="reflectedProp('error', 'error', checkedProps.error, undefined, false)"
|
|
452
|
-
:data-existing="reflectedProp('existing', 'existing', checkedProps.existing, undefined, false)"
|
|
453
|
-
:data-mode="reflectedProp('mode', 'mode', checkedProps.mode, undefined, false)"
|
|
454
|
-
:data-new-tab="reflectedProp('newTab', 'new-tab', checkedProps.newTab, undefined, false)"
|
|
455
|
-
:data-placeholder="reflectedProp('placeholder', 'placeholder', checkedProps.placeholder, undefined, false)"
|
|
456
|
-
:data-results="reflectedProp('results', 'results', checkedProps.results, undefined, false)"
|
|
457
|
-
:data-searchable="reflectedProp('searchable', 'searchable', checkedProps.searchable, undefined, false)"
|
|
458
|
-
:data-selected="reflectedProp('selected', 'selected', checkedProps.selected, undefined, false)"
|
|
459
|
-
:data-status="reflectedProp('status', 'status', checkedProps.status, undefined, false)"
|
|
460
|
-
:data-text="reflectedProp('text', 'text', checkedProps.text, undefined, false)"
|
|
461
|
-
:data-text-editable="reflectedProp('textEditable', 'text-editable', checkedProps.textEditable, undefined, false)"
|
|
462
|
-
:data-value="reflectedProp('value', 'value', checkedProps.value, undefined, false)"
|
|
452
|
+
:data-ui-editor-link-form-prop-error="reflectedProp('error', 'error', checkedProps.error, undefined, false)"
|
|
453
|
+
:data-ui-editor-link-form-prop-existing="reflectedProp('existing', 'existing', checkedProps.existing, undefined, false)"
|
|
454
|
+
:data-ui-editor-link-form-prop-mode="reflectedProp('mode', 'mode', checkedProps.mode, undefined, false)"
|
|
455
|
+
:data-ui-editor-link-form-prop-new-tab="reflectedProp('newTab', 'new-tab', checkedProps.newTab, undefined, false)"
|
|
456
|
+
:data-ui-editor-link-form-prop-placeholder="reflectedProp('placeholder', 'placeholder', checkedProps.placeholder, undefined, false)"
|
|
457
|
+
:data-ui-editor-link-form-prop-results="reflectedProp('results', 'results', checkedProps.results, undefined, false)"
|
|
458
|
+
:data-ui-editor-link-form-prop-searchable="reflectedProp('searchable', 'searchable', checkedProps.searchable, undefined, false)"
|
|
459
|
+
:data-ui-editor-link-form-prop-selected="reflectedProp('selected', 'selected', checkedProps.selected, undefined, false)"
|
|
460
|
+
:data-ui-editor-link-form-prop-status="reflectedProp('status', 'status', checkedProps.status, undefined, false)"
|
|
461
|
+
:data-ui-editor-link-form-prop-text="reflectedProp('text', 'text', checkedProps.text, undefined, false)"
|
|
462
|
+
:data-ui-editor-link-form-prop-text-editable="reflectedProp('textEditable', 'text-editable', checkedProps.textEditable, undefined, false)"
|
|
463
|
+
:data-ui-editor-link-form-prop-value="reflectedProp('value', 'value', checkedProps.value, undefined, false)"
|
|
463
464
|
ref="root"
|
|
464
465
|
>
|
|
465
466
|
<UiStack gap="s"><UiText as="h3" size="sm" weight="semibold">{{ text(heading) }}</UiText>
|
|
@@ -506,7 +507,7 @@ useComponentHost(() => import('../components/ui-editor-link-form/ui-editor-link-
|
|
|
506
507
|
checkedProps.status
|
|
507
508
|
}}</UiText>
|
|
508
509
|
<KeyedBoundary><UiSearchResultRow
|
|
509
|
-
v-for="result in uniqueKeys(checkedProps.results, (result, index, loop) => result.id)"
|
|
510
|
+
v-for="result in uniqueKeys(checkedProps.results ?? [], (result, index, loop) => result.id)"
|
|
510
511
|
:key="result.id"
|
|
511
512
|
density="compact"
|
|
512
513
|
data-link-result=""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.52 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -344,56 +344,68 @@ useComponentHost(() => import('../components/ui-editor-mention-menu/ui-editor-me
|
|
|
344
344
|
class="ui-editor-mention-menu"
|
|
345
345
|
role="listbox"
|
|
346
346
|
v-bind="nativeAttrs($attrs)"
|
|
347
|
+
data-hn
|
|
348
|
+
data-hn-ui-editor-mention-menu
|
|
347
349
|
:aria-busy="checkedProps.loading ?? undefined"
|
|
348
350
|
:hidden="!visible"
|
|
349
351
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
350
|
-
:data-anchor-rect="reflectedProp('anchorRect', 'anchor-rect', checkedProps.anchorRect, undefined, false)"
|
|
351
|
-
:data-items="reflectedProp('items', 'items', checkedProps.items, undefined, false)"
|
|
352
|
-
:data-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
353
|
-
:data-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
|
|
354
|
-
:data-loading-label="reflectedProp('loadingLabel', 'loading-label', checkedProps.loadingLabel, undefined, false)"
|
|
355
|
-
:data-open="reflectedProp('open', 'open', checkedProps.open, undefined, false)"
|
|
356
|
-
:data-query="reflectedProp('query', 'query', checkedProps.query, undefined, false)"
|
|
357
|
-
:data-selected-index="reflectedProp('selectedIndex', 'selected-index', checkedProps.selectedIndex, undefined, false)"
|
|
352
|
+
:data-ui-editor-mention-menu-prop-anchor-rect="reflectedProp('anchorRect', 'anchor-rect', checkedProps.anchorRect, undefined, false)"
|
|
353
|
+
:data-ui-editor-mention-menu-prop-items="reflectedProp('items', 'items', checkedProps.items, undefined, false)"
|
|
354
|
+
:data-ui-editor-mention-menu-prop-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
355
|
+
:data-ui-editor-mention-menu-prop-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
|
|
356
|
+
:data-ui-editor-mention-menu-prop-loading-label="reflectedProp('loadingLabel', 'loading-label', checkedProps.loadingLabel, undefined, false)"
|
|
357
|
+
:data-ui-editor-mention-menu-prop-open="reflectedProp('open', 'open', checkedProps.open, undefined, false)"
|
|
358
|
+
:data-ui-editor-mention-menu-prop-query="reflectedProp('query', 'query', checkedProps.query, undefined, false)"
|
|
359
|
+
:data-ui-editor-mention-menu-prop-selected-index="reflectedProp('selectedIndex', 'selected-index', checkedProps.selectedIndex, undefined, false)"
|
|
358
360
|
ref="root"
|
|
359
361
|
>
|
|
360
|
-
<div class="header"><slot name="header" /></div>
|
|
361
|
-
<div v-if="searching" class="loading" role="status"
|
|
362
|
-
|
|
362
|
+
<div class="header" data-hn-ui-editor-mention-menu><slot name="header" /></div>
|
|
363
|
+
<div v-if="searching" class="loading" role="status" data-hn-ui-editor-mention-menu>
|
|
364
|
+
{{ checkedProps.loadingLabel }}
|
|
365
|
+
</div>
|
|
366
|
+
<ul v-if="!searching" class="list" role="presentation" data-hn-ui-editor-mention-menu>
|
|
363
367
|
<li
|
|
364
368
|
v-for="(row, index) in rows"
|
|
365
369
|
:key="index"
|
|
366
370
|
class="item"
|
|
367
371
|
role="option"
|
|
372
|
+
data-hn-ui-editor-mention-menu
|
|
368
373
|
:id="concat(prefix, '-option-', index)"
|
|
369
374
|
:aria-selected="index === active"
|
|
370
375
|
:data-index="index"
|
|
371
376
|
:data-value="row.id"
|
|
372
377
|
:class="{ active: index === active }"
|
|
373
378
|
>
|
|
374
|
-
<span class="avatar" aria-hidden="true">{{
|
|
375
|
-
|
|
376
|
-
|
|
379
|
+
<span class="avatar" aria-hidden="true" data-hn-ui-editor-mention-menu>{{
|
|
380
|
+
row.initials
|
|
381
|
+
}}</span>
|
|
382
|
+
<span class="body" data-hn-ui-editor-mention-menu><span
|
|
383
|
+
class="label"
|
|
384
|
+
data-hn-ui-editor-mention-menu
|
|
385
|
+
>{{ row.label }}</span>
|
|
386
|
+
<span v-if="row.detail" class="detail" data-hn-ui-editor-mention-menu>{{
|
|
387
|
+
row.detail
|
|
388
|
+
}}</span></span>
|
|
377
389
|
</li>
|
|
378
390
|
<slot />
|
|
379
391
|
</ul>
|
|
380
|
-
<div class="empty" ref="emptyElement"><slot name="empty" /></div>
|
|
392
|
+
<div class="empty" data-hn-ui-editor-mention-menu ref="emptyElement"><slot name="empty" /></div>
|
|
381
393
|
</div>
|
|
382
394
|
</template>
|
|
383
395
|
|
|
384
396
|
<style scoped>
|
|
385
397
|
/* The highlight and the initials circle share a tint; on the highlighted row the circle takes
|
|
386
398
|
the surface and a fine accent ring, so the initials stay visible. */
|
|
387
|
-
@scope (.ui-editor-mention-menu) {
|
|
388
|
-
:
|
|
399
|
+
@scope (.ui-editor-mention-menu) to ([data-hn]) {
|
|
400
|
+
:global(:scope[popover]:where([data-hn-ui-editor-mention-menu])) {
|
|
389
401
|
position: fixed;
|
|
390
402
|
inset: auto;
|
|
391
403
|
margin: 0;
|
|
392
404
|
}
|
|
393
|
-
:scope:where(
|
|
405
|
+
:global(:scope:where([data-hn-ui-editor-mention-menu])) {
|
|
394
406
|
user-select: none;
|
|
395
407
|
}
|
|
396
|
-
:scope:where(
|
|
408
|
+
:global(:scope:where([data-hn-ui-editor-mention-menu])) {
|
|
397
409
|
display: flex;
|
|
398
410
|
overflow: hidden;
|
|
399
411
|
flex-direction: column;
|
|
@@ -402,7 +414,7 @@ useComponentHost(() => import('../components/ui-editor-mention-menu/ui-editor-me
|
|
|
402
414
|
border-radius: var(--ui-radius-dialog);
|
|
403
415
|
box-shadow: var(--ui-shadow-lg, 0 8px 24px rgb(0 0 0 / 0.12));
|
|
404
416
|
}
|
|
405
|
-
.header {
|
|
417
|
+
:global(.header:where([data-hn-ui-editor-mention-menu])) {
|
|
406
418
|
display: flex;
|
|
407
419
|
align-items: center;
|
|
408
420
|
justify-content: space-between;
|
|
@@ -413,22 +425,23 @@ useComponentHost(() => import('../components/ui-editor-mention-menu/ui-editor-me
|
|
|
413
425
|
font-size: var(--ui-font-size-xs);
|
|
414
426
|
font-weight: var(--ui-font-semibold);
|
|
415
427
|
}
|
|
416
|
-
:scope > .header:empty,
|
|
428
|
+
:global(:scope > .header:empty:where([data-hn-ui-editor-mention-menu])),
|
|
429
|
+
:global(:scope > .empty:empty:where([data-hn-ui-editor-mention-menu])) {
|
|
417
430
|
display: none;
|
|
418
431
|
}
|
|
419
|
-
.empty {
|
|
432
|
+
:global(.empty:where([data-hn-ui-editor-mention-menu])) {
|
|
420
433
|
padding: var(--ui-space-3);
|
|
421
434
|
color: var(--ui-text-muted);
|
|
422
435
|
font-size: var(--ui-font-size-sm);
|
|
423
436
|
}
|
|
424
|
-
.hint {
|
|
437
|
+
:global(.hint:where([data-hn-ui-editor-mention-menu])) {
|
|
425
438
|
overflow: hidden;
|
|
426
439
|
color: var(--ui-text-muted);
|
|
427
440
|
font-weight: var(--ui-font-normal);
|
|
428
441
|
text-overflow: ellipsis;
|
|
429
442
|
white-space: nowrap;
|
|
430
443
|
}
|
|
431
|
-
.list {
|
|
444
|
+
:global(.list:where([data-hn-ui-editor-mention-menu])) {
|
|
432
445
|
max-height: 280px;
|
|
433
446
|
padding: var(--ui-space-1) 0;
|
|
434
447
|
margin: 0;
|
|
@@ -457,7 +470,7 @@ useComponentHost(() => import('../components/ui-editor-mention-menu/ui-editor-me
|
|
|
457
470
|
-1px calc(100% - var(--_ui-scroll-fade-size)),
|
|
458
471
|
calc(100% - var(--_ui-scroll-fade-size)) 100%;
|
|
459
472
|
}
|
|
460
|
-
.item {
|
|
473
|
+
:global(.item:where([data-hn-ui-editor-mention-menu])) {
|
|
461
474
|
display: flex;
|
|
462
475
|
align-items: center;
|
|
463
476
|
min-height: 44px;
|
|
@@ -465,15 +478,15 @@ useComponentHost(() => import('../components/ui-editor-mention-menu/ui-editor-me
|
|
|
465
478
|
gap: var(--ui-space-3);
|
|
466
479
|
cursor: pointer;
|
|
467
480
|
}
|
|
468
|
-
.item.active {
|
|
481
|
+
:global(.item.active:where([data-hn-ui-editor-mention-menu])) {
|
|
469
482
|
background: var(--ui-accent-subtle, rgb(59 130 246 / 0.1));
|
|
470
483
|
}
|
|
471
|
-
.item.active .avatar {
|
|
484
|
+
:global(.item.active .avatar:where([data-hn-ui-editor-mention-menu])) {
|
|
472
485
|
background: var(--ui-surface);
|
|
473
486
|
box-shadow: inset 0 0 0 1px var(--ui-accent-soft, var(--ui-accent-subtle));
|
|
474
487
|
}
|
|
475
488
|
|
|
476
|
-
.avatar {
|
|
489
|
+
:global(.avatar:where([data-hn-ui-editor-mention-menu])) {
|
|
477
490
|
display: inline-flex;
|
|
478
491
|
align-items: center;
|
|
479
492
|
justify-content: center;
|
|
@@ -487,46 +500,48 @@ useComponentHost(() => import('../components/ui-editor-mention-menu/ui-editor-me
|
|
|
487
500
|
font-weight: var(--ui-font-semibold);
|
|
488
501
|
}
|
|
489
502
|
|
|
490
|
-
.body {
|
|
503
|
+
:global(.body:where([data-hn-ui-editor-mention-menu])) {
|
|
491
504
|
display: flex;
|
|
492
505
|
min-width: 0;
|
|
493
506
|
flex-direction: column;
|
|
494
507
|
}
|
|
495
508
|
|
|
496
|
-
.label,
|
|
509
|
+
:global(.label:where([data-hn-ui-editor-mention-menu])),
|
|
510
|
+
:global(.detail:where([data-hn-ui-editor-mention-menu])) {
|
|
497
511
|
overflow: hidden;
|
|
498
512
|
text-overflow: ellipsis;
|
|
499
513
|
white-space: nowrap;
|
|
500
514
|
}
|
|
501
515
|
|
|
502
|
-
.label {
|
|
516
|
+
:global(.label:where([data-hn-ui-editor-mention-menu])) {
|
|
503
517
|
color: var(--ui-text-primary);
|
|
504
518
|
font-size: var(--ui-font-size-sm);
|
|
505
519
|
font-weight: var(--ui-font-medium);
|
|
506
520
|
}
|
|
507
521
|
|
|
508
|
-
.detail,
|
|
522
|
+
:global(.detail:where([data-hn-ui-editor-mention-menu])),
|
|
523
|
+
:global(.loading:where([data-hn-ui-editor-mention-menu])) {
|
|
509
524
|
color: var(--ui-text-muted);
|
|
510
525
|
font-size: var(--ui-font-size-xs);
|
|
511
526
|
}
|
|
512
527
|
|
|
513
|
-
.loading {
|
|
528
|
+
:global(.loading:where([data-hn-ui-editor-mention-menu])) {
|
|
514
529
|
min-height: 44px;
|
|
515
530
|
padding: var(--ui-space-3);
|
|
516
531
|
}
|
|
517
532
|
|
|
518
533
|
@media (max-width: 767px) {
|
|
519
|
-
:scope:where(
|
|
534
|
+
:global(:scope:where([data-hn-ui-editor-mention-menu])) {
|
|
520
535
|
border-bottom: 0;
|
|
521
536
|
border-radius: var(--ui-radius-dialog) var(--ui-radius-dialog) 0 0;
|
|
522
537
|
}
|
|
523
538
|
|
|
524
|
-
.list {
|
|
539
|
+
:global(.list:where([data-hn-ui-editor-mention-menu])) {
|
|
525
540
|
max-height: calc(60dvh - 48px);
|
|
526
541
|
}
|
|
527
542
|
}
|
|
528
543
|
|
|
529
|
-
:
|
|
544
|
+
:global(:scope[hidden]:where([data-hn-ui-editor-mention-menu])) {
|
|
530
545
|
display: none;
|
|
531
546
|
}
|
|
532
547
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.52 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -77,16 +77,24 @@ checkHydratedRoot('li', 'ui-editor-mention-menu-item')
|
|
|
77
77
|
role="option"
|
|
78
78
|
tabindex="-1"
|
|
79
79
|
v-bind="nativeAttrs($attrs)"
|
|
80
|
+
data-hn
|
|
81
|
+
data-hn-ui-editor-mention-menu-item
|
|
82
|
+
:data-value="checkedProps.value ?? undefined"
|
|
80
83
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
81
|
-
:data-detail="reflectedProp('detail', 'detail', checkedProps.detail, undefined, false)"
|
|
82
|
-
:data-initials="reflectedProp('initials', 'initials', checkedProps.initials, undefined, false)"
|
|
83
|
-
:data-value="reflectedProp('value', 'value', checkedProps.value, undefined,
|
|
84
|
+
:data-ui-editor-mention-menu-item-prop-detail="reflectedProp('detail', 'detail', checkedProps.detail, undefined, false)"
|
|
85
|
+
:data-ui-editor-mention-menu-item-prop-initials="reflectedProp('initials', 'initials', checkedProps.initials, undefined, false)"
|
|
86
|
+
:data-ui-editor-mention-menu-item-prop-value="reflectedProp('value', 'value', checkedProps.value, undefined, false)"
|
|
84
87
|
>
|
|
85
|
-
<span class="avatar" aria-hidden="true"><slot
|
|
86
|
-
|
|
87
|
-
}}</slot></span>
|
|
88
|
-
<span class="body"
|
|
89
|
-
|
|
88
|
+
<span class="avatar" aria-hidden="true" data-hn-ui-editor-mention-menu-item><slot
|
|
89
|
+
name="start"
|
|
90
|
+
>{{ checkedProps.initials }}</slot></span>
|
|
91
|
+
<span class="body" data-hn-ui-editor-mention-menu-item><span
|
|
92
|
+
class="label"
|
|
93
|
+
data-hn-ui-editor-mention-menu-item
|
|
94
|
+
><slot /></span>
|
|
95
|
+
<span v-if="checkedProps.detail" class="detail" data-hn-ui-editor-mention-menu-item>{{
|
|
96
|
+
checkedProps.detail
|
|
97
|
+
}}</span></span>
|
|
90
98
|
</li>
|
|
91
99
|
</template>
|
|
92
100
|
|
|
@@ -97,8 +105,8 @@ checkHydratedRoot('li', 'ui-editor-mention-menu-item')
|
|
|
97
105
|
/* A slotted Avatar (a person's photo) is its own circle. Its root carries data-component in HTML
|
|
98
106
|
and its tag as a class in Vue; neither tool lowers a component tag inside :has(). */
|
|
99
107
|
|
|
100
|
-
@scope (.ui-editor-mention-menu-item) {
|
|
101
|
-
:scope:where(
|
|
108
|
+
@scope (.ui-editor-mention-menu-item) to ([data-hn]) {
|
|
109
|
+
:global(:scope:where([data-hn-ui-editor-mention-menu-item])) {
|
|
102
110
|
display: flex;
|
|
103
111
|
align-items: center;
|
|
104
112
|
min-block-size: 44px;
|
|
@@ -107,19 +115,20 @@ checkHydratedRoot('li', 'ui-editor-mention-menu-item')
|
|
|
107
115
|
cursor: pointer;
|
|
108
116
|
list-style: none;
|
|
109
117
|
}
|
|
110
|
-
:
|
|
118
|
+
:global(:scope[aria-selected="true"]:where([data-hn-ui-editor-mention-menu-item])) {
|
|
111
119
|
background: var(--ui-accent-subtle);
|
|
112
120
|
}
|
|
113
|
-
:scope[aria-selected="true"] .avatar {
|
|
121
|
+
:global(:scope[aria-selected="true"] .avatar:where([data-hn-ui-editor-mention-menu-item])) {
|
|
114
122
|
background: var(--ui-surface);
|
|
115
123
|
box-shadow: inset 0 0 0 1px var(--ui-accent-soft);
|
|
116
124
|
}
|
|
117
|
-
:
|
|
125
|
+
:global(:scope
|
|
126
|
+
.avatar:has(> :is([data-component~="ui-avatar"], .ui-avatar)):where([data-hn-ui-editor-mention-menu-item])) {
|
|
118
127
|
background: none;
|
|
119
128
|
box-shadow: none;
|
|
120
129
|
}
|
|
121
130
|
|
|
122
|
-
.avatar {
|
|
131
|
+
:global(.avatar:where([data-hn-ui-editor-mention-menu-item])) {
|
|
123
132
|
display: inline-flex;
|
|
124
133
|
align-items: center;
|
|
125
134
|
justify-content: center;
|
|
@@ -133,30 +142,31 @@ checkHydratedRoot('li', 'ui-editor-mention-menu-item')
|
|
|
133
142
|
font-weight: var(--ui-font-semibold);
|
|
134
143
|
}
|
|
135
144
|
|
|
136
|
-
.body {
|
|
145
|
+
:global(.body:where([data-hn-ui-editor-mention-menu-item])) {
|
|
137
146
|
display: flex;
|
|
138
147
|
min-inline-size: 0;
|
|
139
148
|
flex-direction: column;
|
|
140
149
|
}
|
|
141
150
|
|
|
142
|
-
.label,
|
|
151
|
+
:global(.label:where([data-hn-ui-editor-mention-menu-item])),
|
|
152
|
+
:global(.detail:where([data-hn-ui-editor-mention-menu-item])) {
|
|
143
153
|
overflow: hidden;
|
|
144
154
|
text-overflow: ellipsis;
|
|
145
155
|
white-space: nowrap;
|
|
146
156
|
}
|
|
147
157
|
|
|
148
|
-
.label {
|
|
158
|
+
:global(.label:where([data-hn-ui-editor-mention-menu-item])) {
|
|
149
159
|
color: var(--ui-text-primary);
|
|
150
160
|
font-size: var(--ui-font-size-sm);
|
|
151
161
|
font-weight: var(--ui-font-medium);
|
|
152
162
|
}
|
|
153
163
|
|
|
154
|
-
.detail {
|
|
164
|
+
:global(.detail:where([data-hn-ui-editor-mention-menu-item])) {
|
|
155
165
|
color: var(--ui-text-muted);
|
|
156
166
|
font-size: var(--ui-font-size-xs);
|
|
157
167
|
}
|
|
158
168
|
|
|
159
|
-
:
|
|
169
|
+
:global(:scope[hidden]:where([data-hn-ui-editor-mention-menu-item])) {
|
|
160
170
|
display: none;
|
|
161
171
|
}
|
|
162
172
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.52 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -299,50 +299,61 @@ useComponentHost(() => import('../components/ui-editor-slash-menu/ui-editor-slas
|
|
|
299
299
|
class="ui-editor-slash-menu"
|
|
300
300
|
role="listbox"
|
|
301
301
|
v-bind="nativeAttrs($attrs)"
|
|
302
|
+
data-hn
|
|
303
|
+
data-hn-ui-editor-slash-menu
|
|
302
304
|
:hidden="!visible"
|
|
303
305
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
304
|
-
:data-anchor-rect="reflectedProp('anchorRect', 'anchor-rect', checkedProps.anchorRect, undefined, false)"
|
|
305
|
-
:data-items="reflectedProp('items', 'items', checkedProps.items, undefined, false)"
|
|
306
|
-
:data-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
307
|
-
:data-open="reflectedProp('open', 'open', checkedProps.open, undefined, false)"
|
|
308
|
-
:data-query="reflectedProp('query', 'query', checkedProps.query, undefined, false)"
|
|
309
|
-
:data-selected-index="reflectedProp('selectedIndex', 'selected-index', checkedProps.selectedIndex, undefined, false)"
|
|
306
|
+
:data-ui-editor-slash-menu-prop-anchor-rect="reflectedProp('anchorRect', 'anchor-rect', checkedProps.anchorRect, undefined, false)"
|
|
307
|
+
:data-ui-editor-slash-menu-prop-items="reflectedProp('items', 'items', checkedProps.items, undefined, false)"
|
|
308
|
+
:data-ui-editor-slash-menu-prop-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
309
|
+
:data-ui-editor-slash-menu-prop-open="reflectedProp('open', 'open', checkedProps.open, undefined, false)"
|
|
310
|
+
:data-ui-editor-slash-menu-prop-query="reflectedProp('query', 'query', checkedProps.query, undefined, false)"
|
|
311
|
+
:data-ui-editor-slash-menu-prop-selected-index="reflectedProp('selectedIndex', 'selected-index', checkedProps.selectedIndex, undefined, false)"
|
|
310
312
|
ref="root"
|
|
311
313
|
>
|
|
312
|
-
<div class="header"><slot name="header" /></div>
|
|
313
|
-
<ul class="list" role="presentation">
|
|
314
|
+
<div class="header" data-hn-ui-editor-slash-menu><slot name="header" /></div>
|
|
315
|
+
<ul class="list" role="presentation" data-hn-ui-editor-slash-menu>
|
|
314
316
|
<li
|
|
315
317
|
v-for="(item, index) in rows"
|
|
316
318
|
:key="index"
|
|
317
319
|
class="item"
|
|
318
320
|
role="option"
|
|
321
|
+
data-hn-ui-editor-slash-menu
|
|
319
322
|
:aria-selected="index === active"
|
|
320
323
|
:data-index="index"
|
|
321
324
|
:data-value="item.value"
|
|
322
325
|
:class="{ active: index === active }"
|
|
323
326
|
>
|
|
324
|
-
<span class="icon" aria-hidden="true"
|
|
325
|
-
|
|
326
|
-
|
|
327
|
+
<span class="icon" aria-hidden="true" data-hn-ui-editor-slash-menu><UiIcon
|
|
328
|
+
class="ui-icon"
|
|
329
|
+
:name="item.icon"
|
|
330
|
+
/></span>
|
|
331
|
+
<span class="body" data-hn-ui-editor-slash-menu><span
|
|
332
|
+
class="title"
|
|
333
|
+
data-hn-ui-editor-slash-menu
|
|
334
|
+
>{{ item.title }}</span>
|
|
335
|
+
<span class="description" data-hn-ui-editor-slash-menu>{{
|
|
336
|
+
item.description
|
|
337
|
+
}}</span></span>
|
|
327
338
|
</li>
|
|
328
339
|
<slot />
|
|
329
340
|
</ul>
|
|
330
|
-
<div class="empty" ref="emptyElement"><slot name="empty" /></div>
|
|
331
|
-
<div class="footer"><slot name="footer" /></div>
|
|
341
|
+
<div class="empty" data-hn-ui-editor-slash-menu ref="emptyElement"><slot name="empty" /></div>
|
|
342
|
+
<div class="footer" data-hn-ui-editor-slash-menu><slot name="footer" /></div>
|
|
332
343
|
</div>
|
|
333
344
|
</template>
|
|
334
345
|
|
|
335
346
|
<style scoped>
|
|
336
|
-
@scope (.ui-editor-slash-menu) to (
|
|
337
|
-
:
|
|
347
|
+
@scope (.ui-editor-slash-menu) to ([data-hn]) {
|
|
348
|
+
:global(:scope[popover]:where([data-hn-ui-editor-slash-menu])) {
|
|
338
349
|
position: fixed;
|
|
339
350
|
inset: auto;
|
|
340
351
|
margin: 0;
|
|
341
352
|
}
|
|
342
|
-
:scope:where(
|
|
353
|
+
:global(:scope:where([data-hn-ui-editor-slash-menu])) {
|
|
343
354
|
user-select: none;
|
|
344
355
|
}
|
|
345
|
-
:scope:where(
|
|
356
|
+
:global(:scope:where([data-hn-ui-editor-slash-menu])) {
|
|
346
357
|
background: var(--ui-surface);
|
|
347
358
|
border: var(--ui-border-width) solid var(--ui-border-strong);
|
|
348
359
|
border-radius: var(--ui-radius-dialog);
|
|
@@ -352,12 +363,12 @@ useComponentHost(() => import('../components/ui-editor-slash-menu/ui-editor-slas
|
|
|
352
363
|
flex-direction: column;
|
|
353
364
|
}
|
|
354
365
|
@media (max-width: 767px) {
|
|
355
|
-
:scope:where(
|
|
366
|
+
:global(:scope:where([data-hn-ui-editor-slash-menu])) {
|
|
356
367
|
border-radius: var(--ui-radius-dialog) var(--ui-radius-dialog) 0 0;
|
|
357
368
|
border-bottom: none;
|
|
358
369
|
}
|
|
359
370
|
}
|
|
360
|
-
.header {
|
|
371
|
+
:global(.header:where([data-hn-ui-editor-slash-menu])) {
|
|
361
372
|
display: none;
|
|
362
373
|
align-items: center;
|
|
363
374
|
gap: var(--ui-space-2);
|
|
@@ -369,20 +380,22 @@ useComponentHost(() => import('../components/ui-editor-slash-menu/ui-editor-slas
|
|
|
369
380
|
text-transform: uppercase;
|
|
370
381
|
letter-spacing: 0.05em;
|
|
371
382
|
}
|
|
372
|
-
:scope > .header:empty
|
|
383
|
+
:global(:scope > .header:empty:where([data-hn-ui-editor-slash-menu])),
|
|
384
|
+
:global(:scope > .footer:empty:where([data-hn-ui-editor-slash-menu])),
|
|
385
|
+
:global(:scope > .empty:empty:where([data-hn-ui-editor-slash-menu])) {
|
|
373
386
|
display: none;
|
|
374
387
|
}
|
|
375
|
-
.empty {
|
|
388
|
+
:global(.empty:where([data-hn-ui-editor-slash-menu])) {
|
|
376
389
|
padding: var(--ui-space-3);
|
|
377
390
|
color: var(--ui-text-muted);
|
|
378
391
|
font-size: var(--ui-font-size-sm);
|
|
379
392
|
}
|
|
380
393
|
@media (max-width: 767px) {
|
|
381
|
-
.header {
|
|
394
|
+
:global(.header:where([data-hn-ui-editor-slash-menu])) {
|
|
382
395
|
display: flex;
|
|
383
396
|
}
|
|
384
397
|
}
|
|
385
|
-
.list {
|
|
398
|
+
:global(.list:where([data-hn-ui-editor-slash-menu])) {
|
|
386
399
|
list-style: none;
|
|
387
400
|
margin: 0;
|
|
388
401
|
padding: var(--ui-space-1) 0;
|
|
@@ -412,12 +425,12 @@ useComponentHost(() => import('../components/ui-editor-slash-menu/ui-editor-slas
|
|
|
412
425
|
calc(100% - var(--_ui-scroll-fade-size)) 100%;
|
|
413
426
|
}
|
|
414
427
|
@media (max-width: 767px) {
|
|
415
|
-
.list {
|
|
428
|
+
:global(.list:where([data-hn-ui-editor-slash-menu])) {
|
|
416
429
|
max-height: calc(60dvh - 80px);
|
|
417
430
|
padding: var(--ui-space-1) 0 var(--ui-space-2);
|
|
418
431
|
}
|
|
419
432
|
}
|
|
420
|
-
.item {
|
|
433
|
+
:global(.item:where([data-hn-ui-editor-slash-menu])) {
|
|
421
434
|
display: flex;
|
|
422
435
|
align-items: center;
|
|
423
436
|
gap: var(--ui-space-3);
|
|
@@ -426,10 +439,10 @@ useComponentHost(() => import('../components/ui-editor-slash-menu/ui-editor-slas
|
|
|
426
439
|
cursor: pointer;
|
|
427
440
|
transition: background-color 120ms ease;
|
|
428
441
|
}
|
|
429
|
-
.item.active {
|
|
442
|
+
:global(.item.active:where([data-hn-ui-editor-slash-menu])) {
|
|
430
443
|
background: var(--ui-accent-subtle, rgb(59 130 246 / 0.1));
|
|
431
444
|
}
|
|
432
|
-
.icon {
|
|
445
|
+
:global(.icon:where([data-hn-ui-editor-slash-menu])) {
|
|
433
446
|
display: flex;
|
|
434
447
|
align-items: center;
|
|
435
448
|
justify-content: center;
|
|
@@ -445,22 +458,22 @@ useComponentHost(() => import('../components/ui-editor-slash-menu/ui-editor-slas
|
|
|
445
458
|
flex-shrink: 0;
|
|
446
459
|
line-height: 1;
|
|
447
460
|
}
|
|
448
|
-
.item.active .icon {
|
|
461
|
+
:global(.item.active .icon:where([data-hn-ui-editor-slash-menu])) {
|
|
449
462
|
background: var(--ui-accent);
|
|
450
463
|
border-color: var(--ui-accent);
|
|
451
464
|
color: var(--ui-accent-contrast);
|
|
452
465
|
}
|
|
453
|
-
.icon {
|
|
466
|
+
:global(.icon:where([data-hn-ui-editor-slash-menu])) {
|
|
454
467
|
--_ui-default-icon-size: 1rem;
|
|
455
468
|
--_ui-default-icon-stroke-width: var(--ui-editor-toolbar-icon-stroke-width, 1.75);
|
|
456
469
|
}
|
|
457
|
-
.body {
|
|
470
|
+
:global(.body:where([data-hn-ui-editor-slash-menu])) {
|
|
458
471
|
display: flex;
|
|
459
472
|
min-width: 0;
|
|
460
473
|
flex-direction: column;
|
|
461
474
|
gap: 1px;
|
|
462
475
|
}
|
|
463
|
-
.title {
|
|
476
|
+
:global(.title:where([data-hn-ui-editor-slash-menu])) {
|
|
464
477
|
font-size: var(--ui-font-size-sm);
|
|
465
478
|
font-weight: var(--ui-font-medium);
|
|
466
479
|
color: var(--ui-text);
|
|
@@ -468,20 +481,20 @@ useComponentHost(() => import('../components/ui-editor-slash-menu/ui-editor-slas
|
|
|
468
481
|
overflow: hidden;
|
|
469
482
|
text-overflow: ellipsis;
|
|
470
483
|
}
|
|
471
|
-
.description {
|
|
484
|
+
:global(.description:where([data-hn-ui-editor-slash-menu])) {
|
|
472
485
|
font-size: var(--ui-font-size-xs);
|
|
473
486
|
color: var(--ui-text-muted);
|
|
474
487
|
white-space: nowrap;
|
|
475
488
|
overflow: hidden;
|
|
476
489
|
text-overflow: ellipsis;
|
|
477
490
|
}
|
|
478
|
-
.footer {
|
|
491
|
+
:global(.footer:where([data-hn-ui-editor-slash-menu])) {
|
|
479
492
|
padding: var(--ui-space-2) var(--ui-space-3);
|
|
480
493
|
border-top: var(--ui-border-width) solid var(--ui-border-divider);
|
|
481
494
|
font-size: var(--ui-font-size-xs);
|
|
482
495
|
color: var(--ui-text-muted);
|
|
483
496
|
}
|
|
484
|
-
:scope kbd {
|
|
497
|
+
:global(:scope kbd:where([data-hn-ui-editor-slash-menu])) {
|
|
485
498
|
display: inline-flex;
|
|
486
499
|
align-items: center;
|
|
487
500
|
justify-content: center;
|
|
@@ -493,7 +506,7 @@ useComponentHost(() => import('../components/ui-editor-slash-menu/ui-editor-slas
|
|
|
493
506
|
padding: 0 3px;
|
|
494
507
|
color: var(--ui-text-secondary);
|
|
495
508
|
}
|
|
496
|
-
:
|
|
509
|
+
:global(:scope[hidden]:where([data-hn-ui-editor-slash-menu])) {
|
|
497
510
|
display: none;
|
|
498
511
|
}
|
|
499
512
|
}
|