@threadlabs/looma 0.22.8 → 0.22.10
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.js +2 -2
- package/components/ui-avatar/ui-avatar.js +5 -5
- package/components/ui-avatar-group/ui-avatar-group.js +5 -5
- package/components/ui-badge/ui-badge.html +10 -0
- package/components/ui-button/ui-button.js +1 -1
- package/components/ui-checkbox/ui-checkbox.js +5 -5
- package/components/ui-combobox/ui-combobox.js +61 -61
- package/components/ui-context-menu/ui-context-menu.js +6 -6
- package/components/ui-dialog/ui-dialog.js +9 -9
- package/components/ui-disclosure/ui-disclosure.js +6 -6
- package/components/ui-editable/ui-editable.js +6 -6
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.js +4 -4
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.js +8 -8
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.js +6 -6
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.js +5 -5
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.js +4 -4
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +5 -5
- package/components/ui-form-field/ui-form-field.js +4 -4
- package/components/ui-icon-button/ui-icon-button.js +2 -2
- package/components/ui-input/ui-input.js +1 -1
- package/components/ui-input-group/ui-input-group.js +1 -1
- package/components/ui-listbox/ui-listbox.js +12 -12
- package/components/ui-menu/ui-menu.js +7 -7
- package/components/ui-menu-item/ui-menu-item.js +7 -7
- package/components/ui-popover/ui-popover.js +4 -4
- package/components/ui-radio/ui-radio.js +5 -5
- package/components/ui-radio-group/ui-radio-group.js +6 -6
- package/components/ui-scroll-area/ui-scroll-area.js +1 -1
- package/components/ui-search-shell/ui-search-shell.js +6 -6
- package/components/ui-select/ui-select.js +1 -1
- package/components/ui-sidebar/ui-sidebar.js +12 -12
- package/components/ui-switch/ui-switch.js +5 -5
- package/components/ui-switcher/ui-switcher.js +1 -1
- package/components/ui-tabs/ui-tabs.js +5 -5
- package/components/ui-textarea/ui-textarea.js +1 -1
- package/components/ui-toast/ui-toast.js +3 -3
- package/components/ui-toast-region/ui-toast-region.js +1 -1
- package/components/ui-tooltip/ui-tooltip.js +9 -9
- package/components/ui-tree/ui-tree.js +4 -4
- package/components/ui-tree-item/ui-tree-item.js +11 -11
- 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 +10 -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 +1 -1
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +1 -1
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +1 -1
- package/vanilla/UiBadge.d.ts +2 -1
- package/vanilla/UiBadge.js +5 -3
- 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 +1 -1
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +1 -1
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +1 -1
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +1 -1
- 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 +1 -1
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +1 -1
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +1 -1
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +1 -1
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +1 -1
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +1 -1
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +1 -1
- 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 +1 -1
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +1 -1
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +1 -1
- 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 +1 -1
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +1 -1
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +1 -1
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +1 -1
- 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 +1 -1
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +1 -1
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +1 -1
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +1 -1
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +1 -1
- 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 +1 -1
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +1 -1
- 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 +1 -1
- package/vue/UiActionBar.vue +1 -1
- package/vue/UiAffordanceScope.vue +17 -4
- package/vue/UiAvatar.vue +38 -5
- package/vue/UiAvatarGroup.vue +32 -5
- package/vue/UiBadge.d.ts +9 -0
- package/vue/UiBadge.vue +41 -3
- package/vue/UiBreadcrumbItem.vue +5 -3
- package/vue/UiBreadcrumbs.vue +5 -3
- package/vue/UiButton.vue +72 -7
- package/vue/UiCallout.vue +5 -3
- package/vue/UiCard.vue +16 -6
- package/vue/UiCheckbox.vue +41 -4
- package/vue/UiCluster.vue +8 -3
- package/vue/UiCombobox.vue +98 -6
- package/vue/UiContainer.vue +6 -3
- package/vue/UiContextMenu.vue +17 -4
- package/vue/UiCover.vue +5 -3
- package/vue/UiDescriptionItem.vue +5 -3
- package/vue/UiDescriptionList.vue +11 -3
- package/vue/UiDialog.vue +38 -5
- package/vue/UiDisclosure.vue +28 -4
- package/vue/UiEditable.vue +50 -4
- package/vue/UiEditorInsertTableGrid.vue +24 -4
- package/vue/UiEditorMentionMenu.vue +41 -4
- package/vue/UiEditorMentionMenuItem.vue +7 -3
- package/vue/UiEditorSlashMenu.vue +28 -4
- package/vue/UiEditorSlashMenuGroup.vue +5 -3
- package/vue/UiEditorSlashMenuItem.vue +15 -3
- package/vue/UiEditorTableContextMenu.vue +28 -4
- package/vue/UiEditorTableOverlay.vue +17 -4
- package/vue/UiEditorTableToolbar.vue +28 -4
- package/vue/UiEditorToolbar.vue +16 -4
- package/vue/UiFloatingActionButton.vue +7 -3
- package/vue/UiFormField.vue +18 -4
- package/vue/UiGrid.vue +7 -3
- package/vue/UiIcon.vue +5 -3
- package/vue/UiIconButton.vue +47 -5
- package/vue/UiInput.vue +90 -37
- package/vue/UiInputGroup.vue +16 -4
- package/vue/UiList.vue +20 -7
- package/vue/UiListItem.vue +6 -3
- package/vue/UiListbox.vue +38 -5
- package/vue/UiMenu.vue +28 -4
- package/vue/UiMenuGroup.vue +5 -3
- package/vue/UiMenuItem.vue +27 -5
- package/vue/UiMeter.vue +19 -3
- package/vue/UiNavItem.vue +28 -6
- package/vue/UiPageHeader.vue +5 -3
- package/vue/UiPopover.vue +18 -5
- package/vue/UiRadio.vue +28 -4
- package/vue/UiRadioGroup.vue +30 -4
- package/vue/UiReel.vue +7 -3
- package/vue/UiScrollArea.vue +16 -4
- package/vue/UiSearchResultRow.d.ts +1 -1
- package/vue/UiSearchResultRow.vue +6 -3
- package/vue/UiSearchShell.vue +24 -4
- package/vue/UiSection.vue +7 -3
- package/vue/UiSelect.vue +33 -5
- package/vue/UiSeparator.vue +5 -3
- package/vue/UiSidebar.vue +44 -4
- package/vue/UiSpinner.vue +6 -3
- package/vue/UiStack.vue +7 -3
- package/vue/UiStatusMessage.vue +7 -3
- package/vue/UiSwitch.vue +28 -4
- package/vue/UiSwitcher.vue +30 -5
- package/vue/UiTable.vue +17 -4
- package/vue/UiTabs.vue +28 -4
- package/vue/UiText.vue +29 -15
- package/vue/UiTextarea.vue +39 -5
- package/vue/UiToast.vue +17 -4
- package/vue/UiToastRegion.vue +17 -5
- package/vue/UiTooltip.vue +30 -5
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.vue +28 -4
- package/vue/UiTreeItem.d.ts +1 -1
- package/vue/UiTreeItem.vue +59 -4
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +19 -5
- package/vue/chunks/UiAvatar.js +40 -11
- package/vue/chunks/UiAvatarGroup.js +31 -8
- package/vue/chunks/UiBadge.js +35 -6
- package/vue/chunks/UiBreadcrumbItem.js +5 -4
- package/vue/chunks/UiBreadcrumbs.js +5 -4
- package/vue/chunks/UiButton.js +60 -19
- package/vue/chunks/UiCallout.js +5 -4
- package/vue/chunks/UiCard.js +16 -10
- package/vue/chunks/UiCheckbox.js +40 -11
- package/vue/chunks/UiCluster.js +13 -7
- package/vue/chunks/UiCombobox.js +85 -26
- package/vue/chunks/UiContainer.js +9 -5
- package/vue/chunks/UiContextMenu.js +19 -5
- package/vue/chunks/UiCover.js +5 -4
- package/vue/chunks/UiDescriptionItem.js +5 -4
- package/vue/chunks/UiDescriptionList.js +11 -6
- package/vue/chunks/UiDialog.js +40 -11
- package/vue/chunks/UiDisclosure.js +34 -9
- package/vue/chunks/UiEditable.js +49 -14
- package/vue/chunks/UiEditorInsertTableGrid.js +28 -7
- package/vue/chunks/UiEditorMentionMenu.js +40 -11
- package/vue/chunks/UiEditorMentionMenuItem.js +11 -6
- package/vue/chunks/UiEditorSlashMenu.js +34 -9
- package/vue/chunks/UiEditorSlashMenuGroup.js +5 -4
- package/vue/chunks/UiEditorSlashMenuItem.js +15 -8
- package/vue/chunks/UiEditorTableContextMenu.js +34 -9
- package/vue/chunks/UiEditorTableOverlay.js +19 -5
- package/vue/chunks/UiEditorTableToolbar.js +34 -9
- package/vue/chunks/UiEditorToolbar.js +15 -4
- package/vue/chunks/UiFloatingActionButton.js +11 -6
- package/vue/chunks/UiFormField.js +26 -7
- package/vue/chunks/UiGrid.js +11 -6
- package/vue/chunks/UiIcon.js +5 -4
- package/vue/chunks/UiIconButton.js +41 -12
- package/vue/chunks/UiInput.js +53 -14
- package/vue/chunks/UiInputGroup.js +16 -5
- package/vue/chunks/UiList.js +14 -8
- package/vue/chunks/UiListItem.js +9 -5
- package/vue/chunks/UiListbox.js +40 -11
- package/vue/chunks/UiMenu.js +34 -9
- package/vue/chunks/UiMenuGroup.js +5 -4
- package/vue/chunks/UiMenuItem.js +32 -9
- package/vue/chunks/UiMeter.js +19 -10
- package/vue/chunks/UiNavItem.js +16 -9
- package/vue/chunks/UiPageHeader.js +5 -4
- package/vue/chunks/UiPopover.js +25 -6
- package/vue/chunks/UiRadio.js +34 -9
- package/vue/chunks/UiRadioGroup.js +37 -10
- package/vue/chunks/UiReel.js +11 -6
- package/vue/chunks/UiScrollArea.js +15 -4
- package/vue/chunks/UiSearchResultRow.js +9 -5
- package/vue/chunks/UiSearchShell.js +28 -7
- package/vue/chunks/UiSection.js +11 -6
- package/vue/chunks/UiSelect.js +33 -10
- package/vue/chunks/UiSeparator.js +5 -4
- package/vue/chunks/UiSidebar.js +43 -12
- package/vue/chunks/UiSpinner.js +9 -5
- package/vue/chunks/UiStack.js +11 -6
- package/vue/chunks/UiStatusMessage.js +11 -6
- package/vue/chunks/UiSwitch.js +34 -9
- package/vue/chunks/UiSwitcher.js +28 -7
- package/vue/chunks/UiTable.js +20 -6
- package/vue/chunks/UiTabs.js +34 -9
- package/vue/chunks/UiText.js +29 -20
- package/vue/chunks/UiTextarea.js +42 -13
- package/vue/chunks/UiToast.js +19 -5
- package/vue/chunks/UiToastRegion.js +19 -5
- package/vue/chunks/UiTooltip.js +37 -10
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +35 -10
- package/vue/chunks/UiTreeItem.js +58 -17
- package/vue/chunks/host.js +22 -4
- package/vue/chunks/props.js +20 -7
- package/vue/components.css +1212 -1204
- package/vue/host.ts +50 -6
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.19 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'
|
|
5
5
|
import { createDispatch, useComponentHost } from './host'
|
|
6
|
-
import { checkedProp, vPropValidity } from './props'
|
|
6
|
+
import { checkedProp, propValidityState, vPropValidity } from './props'
|
|
7
7
|
|
|
8
8
|
defineOptions({ inheritAttrs: false })
|
|
9
9
|
|
|
@@ -90,7 +90,7 @@ const propValidityContract = {
|
|
|
90
90
|
default: 0,
|
|
91
91
|
},
|
|
92
92
|
},
|
|
93
|
-
}
|
|
93
|
+
} as const
|
|
94
94
|
const props = defineProps({
|
|
95
95
|
anchorRect: {
|
|
96
96
|
type: null as unknown as PropType<
|
|
@@ -125,6 +125,16 @@ const props = defineProps({
|
|
|
125
125
|
query: { type: null as unknown as PropType<string | null>, default: '' },
|
|
126
126
|
selectedIndex: { type: null as unknown as PropType<number | null>, default: 0 },
|
|
127
127
|
})
|
|
128
|
+
const acceptedProps: Record<string, unknown> = {
|
|
129
|
+
anchorRect: null,
|
|
130
|
+
items: null,
|
|
131
|
+
label: 'Mentions',
|
|
132
|
+
loading: false,
|
|
133
|
+
loadingLabel: 'Searching…',
|
|
134
|
+
open: false,
|
|
135
|
+
query: '',
|
|
136
|
+
selectedIndex: 0,
|
|
137
|
+
}
|
|
128
138
|
const checkedProps = computed(() => ({
|
|
129
139
|
anchorRect: checkedProp<
|
|
130
140
|
{
|
|
@@ -155,6 +165,7 @@ const checkedProps = computed(() => ({
|
|
|
155
165
|
},
|
|
156
166
|
false,
|
|
157
167
|
'anchorRect',
|
|
168
|
+
acceptedProps,
|
|
158
169
|
),
|
|
159
170
|
items: checkedProp<
|
|
160
171
|
readonly ({
|
|
@@ -180,42 +191,49 @@ const checkedProps = computed(() => ({
|
|
|
180
191
|
},
|
|
181
192
|
false,
|
|
182
193
|
'items',
|
|
194
|
+
acceptedProps,
|
|
183
195
|
),
|
|
184
196
|
label: checkedProp<string>(
|
|
185
197
|
props['label'],
|
|
186
198
|
{ kind: 'terminal', name: 'string' },
|
|
187
199
|
false,
|
|
188
200
|
'label',
|
|
201
|
+
acceptedProps,
|
|
189
202
|
) as string,
|
|
190
203
|
loading: checkedProp<boolean>(
|
|
191
204
|
props['loading'],
|
|
192
205
|
{ kind: 'terminal', name: 'boolean' },
|
|
193
206
|
false,
|
|
194
207
|
'loading',
|
|
208
|
+
acceptedProps,
|
|
195
209
|
) as boolean,
|
|
196
210
|
loadingLabel: checkedProp<string>(
|
|
197
211
|
props['loadingLabel'],
|
|
198
212
|
{ kind: 'terminal', name: 'string' },
|
|
199
213
|
false,
|
|
200
214
|
'loadingLabel',
|
|
215
|
+
acceptedProps,
|
|
201
216
|
) as string,
|
|
202
217
|
open: checkedProp<boolean>(
|
|
203
218
|
props['open'],
|
|
204
219
|
{ kind: 'terminal', name: 'boolean' },
|
|
205
220
|
false,
|
|
206
221
|
'open',
|
|
222
|
+
acceptedProps,
|
|
207
223
|
) as boolean,
|
|
208
224
|
query: checkedProp<string>(
|
|
209
225
|
props['query'],
|
|
210
226
|
{ kind: 'terminal', name: 'string' },
|
|
211
227
|
false,
|
|
212
228
|
'query',
|
|
229
|
+
acceptedProps,
|
|
213
230
|
) as string,
|
|
214
231
|
selectedIndex: checkedProp<number>(
|
|
215
232
|
props['selectedIndex'],
|
|
216
233
|
{ kind: 'terminal', name: 'integer' },
|
|
217
234
|
false,
|
|
218
235
|
'selectedIndex',
|
|
236
|
+
acceptedProps,
|
|
219
237
|
) as number,
|
|
220
238
|
}))
|
|
221
239
|
void checkedProps.value
|
|
@@ -314,6 +332,25 @@ useComponentHost(() => import('../components/ui-editor-mention-menu/ui-editor-me
|
|
|
314
332
|
definition: './components/ui-editor-mention-menu/ui-editor-mention-menu.html',
|
|
315
333
|
},
|
|
316
334
|
props: checkedProps,
|
|
335
|
+
propInputs: (name: string) => {
|
|
336
|
+
const incoming = hydrationInstance?.vnode.props
|
|
337
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
338
|
+
return incoming !== null && incoming !== undefined
|
|
339
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
340
|
+
: null
|
|
341
|
+
},
|
|
342
|
+
propNames: [
|
|
343
|
+
'anchorRect',
|
|
344
|
+
'items',
|
|
345
|
+
'label',
|
|
346
|
+
'loading',
|
|
347
|
+
'loadingLabel',
|
|
348
|
+
'open',
|
|
349
|
+
'query',
|
|
350
|
+
'selectedIndex',
|
|
351
|
+
],
|
|
352
|
+
propValidity: (name: string) =>
|
|
353
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
317
354
|
refs: { empty: emptyElement },
|
|
318
355
|
state: { visible, rows, searching, active, prefix },
|
|
319
356
|
})
|
|
@@ -326,7 +363,7 @@ useComponentHost(() => import('../components/ui-editor-mention-menu/ui-editor-me
|
|
|
326
363
|
v-bind="nativeAttrs($attrs)"
|
|
327
364
|
:aria-busy="checkedProps.loading ?? undefined"
|
|
328
365
|
:hidden="guarded"
|
|
329
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
366
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
330
367
|
:data-anchor-rect="reflectedProp('anchorRect', 'anchor-rect', checkedProps.anchorRect, undefined, false)"
|
|
331
368
|
:data-items="reflectedProp('items', 'items', checkedProps.items, undefined, false)"
|
|
332
369
|
:data-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.19 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -31,30 +31,34 @@ const propValidityContract = {
|
|
|
31
31
|
default: '',
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
|
-
}
|
|
34
|
+
} as const
|
|
35
35
|
const props = defineProps({
|
|
36
36
|
detail: { type: null as unknown as PropType<string | null>, default: '' },
|
|
37
37
|
initials: { type: null as unknown as PropType<string | null>, default: '' },
|
|
38
38
|
value: { type: null as unknown as PropType<string | null>, default: '' },
|
|
39
39
|
})
|
|
40
|
+
const acceptedProps: Record<string, unknown> = { detail: '', initials: '', value: '' }
|
|
40
41
|
const checkedProps = computed(() => ({
|
|
41
42
|
detail: checkedProp<string>(
|
|
42
43
|
props['detail'],
|
|
43
44
|
{ kind: 'terminal', name: 'string' },
|
|
44
45
|
false,
|
|
45
46
|
'detail',
|
|
47
|
+
acceptedProps,
|
|
46
48
|
) as string,
|
|
47
49
|
initials: checkedProp<string>(
|
|
48
50
|
props['initials'],
|
|
49
51
|
{ kind: 'terminal', name: 'string' },
|
|
50
52
|
false,
|
|
51
53
|
'initials',
|
|
54
|
+
acceptedProps,
|
|
52
55
|
) as string,
|
|
53
56
|
value: checkedProp<string>(
|
|
54
57
|
props['value'],
|
|
55
58
|
{ kind: 'terminal', name: 'string' },
|
|
56
59
|
false,
|
|
57
60
|
'value',
|
|
61
|
+
acceptedProps,
|
|
58
62
|
) as string,
|
|
59
63
|
}))
|
|
60
64
|
void checkedProps.value
|
|
@@ -119,7 +123,7 @@ if (
|
|
|
119
123
|
role="option"
|
|
120
124
|
tabindex="-1"
|
|
121
125
|
v-bind="nativeAttrs($attrs)"
|
|
122
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
126
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
123
127
|
:data-detail="reflectedProp('detail', 'detail', checkedProps.detail, undefined, false)"
|
|
124
128
|
:data-initials="reflectedProp('initials', 'initials', checkedProps.initials, undefined, false)"
|
|
125
129
|
:data-value="reflectedProp('value', 'value', checkedProps.value, undefined, true)"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.19 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'
|
|
5
5
|
import { createDispatch, useComponentHost } from './host'
|
|
6
|
-
import { checkedProp, vPropValidity } from './props'
|
|
6
|
+
import { checkedProp, propValidityState, vPropValidity } from './props'
|
|
7
7
|
import UiIcon from './UiIcon.vue'
|
|
8
8
|
|
|
9
9
|
defineOptions({ inheritAttrs: false })
|
|
@@ -79,7 +79,7 @@ const propValidityContract = {
|
|
|
79
79
|
default: 0,
|
|
80
80
|
},
|
|
81
81
|
},
|
|
82
|
-
}
|
|
82
|
+
} as const
|
|
83
83
|
const props = defineProps({
|
|
84
84
|
anchorRect: {
|
|
85
85
|
type: null as unknown as PropType<
|
|
@@ -112,6 +112,14 @@ const props = defineProps({
|
|
|
112
112
|
query: { type: null as unknown as PropType<string | null>, default: '' },
|
|
113
113
|
selectedIndex: { type: null as unknown as PropType<number | null>, default: 0 },
|
|
114
114
|
})
|
|
115
|
+
const acceptedProps: Record<string, unknown> = {
|
|
116
|
+
anchorRect: null,
|
|
117
|
+
items: null,
|
|
118
|
+
label: 'Insert block',
|
|
119
|
+
open: false,
|
|
120
|
+
query: '',
|
|
121
|
+
selectedIndex: 0,
|
|
122
|
+
}
|
|
115
123
|
const checkedProps = computed(() => ({
|
|
116
124
|
anchorRect: checkedProp<
|
|
117
125
|
{
|
|
@@ -142,6 +150,7 @@ const checkedProps = computed(() => ({
|
|
|
142
150
|
},
|
|
143
151
|
false,
|
|
144
152
|
'anchorRect',
|
|
153
|
+
acceptedProps,
|
|
145
154
|
),
|
|
146
155
|
items: checkedProp<
|
|
147
156
|
readonly ({
|
|
@@ -167,30 +176,35 @@ const checkedProps = computed(() => ({
|
|
|
167
176
|
},
|
|
168
177
|
false,
|
|
169
178
|
'items',
|
|
179
|
+
acceptedProps,
|
|
170
180
|
),
|
|
171
181
|
label: checkedProp<string>(
|
|
172
182
|
props['label'],
|
|
173
183
|
{ kind: 'terminal', name: 'string' },
|
|
174
184
|
false,
|
|
175
185
|
'label',
|
|
186
|
+
acceptedProps,
|
|
176
187
|
) as string,
|
|
177
188
|
open: checkedProp<boolean>(
|
|
178
189
|
props['open'],
|
|
179
190
|
{ kind: 'terminal', name: 'boolean' },
|
|
180
191
|
false,
|
|
181
192
|
'open',
|
|
193
|
+
acceptedProps,
|
|
182
194
|
) as boolean,
|
|
183
195
|
query: checkedProp<string>(
|
|
184
196
|
props['query'],
|
|
185
197
|
{ kind: 'terminal', name: 'string' },
|
|
186
198
|
false,
|
|
187
199
|
'query',
|
|
200
|
+
acceptedProps,
|
|
188
201
|
) as string,
|
|
189
202
|
selectedIndex: checkedProp<number>(
|
|
190
203
|
props['selectedIndex'],
|
|
191
204
|
{ kind: 'terminal', name: 'integer' },
|
|
192
205
|
false,
|
|
193
206
|
'selectedIndex',
|
|
207
|
+
acceptedProps,
|
|
194
208
|
) as number,
|
|
195
209
|
}))
|
|
196
210
|
void checkedProps.value
|
|
@@ -285,6 +299,16 @@ useComponentHost(() => import('../components/ui-editor-slash-menu/ui-editor-slas
|
|
|
285
299
|
definition: './components/ui-editor-slash-menu/ui-editor-slash-menu.html',
|
|
286
300
|
},
|
|
287
301
|
props: checkedProps,
|
|
302
|
+
propInputs: (name: string) => {
|
|
303
|
+
const incoming = hydrationInstance?.vnode.props
|
|
304
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
305
|
+
return incoming !== null && incoming !== undefined
|
|
306
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
307
|
+
: null
|
|
308
|
+
},
|
|
309
|
+
propNames: ['anchorRect', 'items', 'label', 'open', 'query', 'selectedIndex'],
|
|
310
|
+
propValidity: (name: string) =>
|
|
311
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
288
312
|
refs: { empty: emptyElement },
|
|
289
313
|
state: { visible, active, rows },
|
|
290
314
|
})
|
|
@@ -296,7 +320,7 @@ useComponentHost(() => import('../components/ui-editor-slash-menu/ui-editor-slas
|
|
|
296
320
|
role="listbox"
|
|
297
321
|
v-bind="nativeAttrs($attrs)"
|
|
298
322
|
:hidden="guarded"
|
|
299
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
323
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
300
324
|
:data-anchor-rect="reflectedProp('anchorRect', 'anchor-rect', checkedProps.anchorRect, undefined, false)"
|
|
301
325
|
:data-items="reflectedProp('items', 'items', checkedProps.items, undefined, false)"
|
|
302
326
|
:data-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.19 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -16,16 +16,18 @@ const propValidityContract = {
|
|
|
16
16
|
default: '',
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
|
-
}
|
|
19
|
+
} as const
|
|
20
20
|
const props = defineProps({
|
|
21
21
|
label: { type: null as unknown as PropType<string | null>, default: '' },
|
|
22
22
|
})
|
|
23
|
+
const acceptedProps: Record<string, unknown> = { label: '' }
|
|
23
24
|
const checkedProps = computed(() => ({
|
|
24
25
|
label: checkedProp<string>(
|
|
25
26
|
props['label'],
|
|
26
27
|
{ kind: 'terminal', name: 'string' },
|
|
27
28
|
false,
|
|
28
29
|
'label',
|
|
30
|
+
acceptedProps,
|
|
29
31
|
) as string,
|
|
30
32
|
}))
|
|
31
33
|
void checkedProps.value
|
|
@@ -89,7 +91,7 @@ if (
|
|
|
89
91
|
data-component="ui-editor-slash-menu-group"
|
|
90
92
|
role="presentation"
|
|
91
93
|
v-bind="nativeAttrs($attrs)"
|
|
92
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
94
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
93
95
|
:data-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
94
96
|
>
|
|
95
97
|
<div role="group" :aria-label="checkedProps.label ?? undefined">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.19 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -46,7 +46,7 @@ const propValidityContract = {
|
|
|
46
46
|
default: '',
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
|
-
}
|
|
49
|
+
} as const
|
|
50
50
|
const props = defineProps({
|
|
51
51
|
description: { type: null as unknown as PropType<string | null>, default: '' },
|
|
52
52
|
disabled: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
@@ -54,36 +54,48 @@ const props = defineProps({
|
|
|
54
54
|
keywords: { type: null as unknown as PropType<string | null>, default: '' },
|
|
55
55
|
value: { type: null as unknown as PropType<string | null>, default: '' },
|
|
56
56
|
})
|
|
57
|
+
const acceptedProps: Record<string, unknown> = {
|
|
58
|
+
description: '',
|
|
59
|
+
disabled: false,
|
|
60
|
+
icon: '',
|
|
61
|
+
keywords: '',
|
|
62
|
+
value: '',
|
|
63
|
+
}
|
|
57
64
|
const checkedProps = computed(() => ({
|
|
58
65
|
description: checkedProp<string>(
|
|
59
66
|
props['description'],
|
|
60
67
|
{ kind: 'terminal', name: 'string' },
|
|
61
68
|
false,
|
|
62
69
|
'description',
|
|
70
|
+
acceptedProps,
|
|
63
71
|
) as string,
|
|
64
72
|
disabled: checkedProp<boolean>(
|
|
65
73
|
props['disabled'],
|
|
66
74
|
{ kind: 'terminal', name: 'boolean' },
|
|
67
75
|
false,
|
|
68
76
|
'disabled',
|
|
77
|
+
acceptedProps,
|
|
69
78
|
) as boolean,
|
|
70
79
|
icon: checkedProp<string>(
|
|
71
80
|
props['icon'],
|
|
72
81
|
{ kind: 'terminal', name: 'string' },
|
|
73
82
|
false,
|
|
74
83
|
'icon',
|
|
84
|
+
acceptedProps,
|
|
75
85
|
) as string,
|
|
76
86
|
keywords: checkedProp<string>(
|
|
77
87
|
props['keywords'],
|
|
78
88
|
{ kind: 'terminal', name: 'string' },
|
|
79
89
|
false,
|
|
80
90
|
'keywords',
|
|
91
|
+
acceptedProps,
|
|
81
92
|
) as string,
|
|
82
93
|
value: checkedProp<string>(
|
|
83
94
|
props['value'],
|
|
84
95
|
{ kind: 'terminal', name: 'string' },
|
|
85
96
|
false,
|
|
86
97
|
'value',
|
|
98
|
+
acceptedProps,
|
|
87
99
|
) as string,
|
|
88
100
|
}))
|
|
89
101
|
void checkedProps.value
|
|
@@ -149,7 +161,7 @@ if (
|
|
|
149
161
|
tabindex="-1"
|
|
150
162
|
v-bind="nativeAttrs($attrs)"
|
|
151
163
|
:aria-disabled="checkedProps.disabled ?? undefined"
|
|
152
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
164
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
153
165
|
:data-description="reflectedProp('description', 'description', checkedProps.description, undefined, false)"
|
|
154
166
|
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
155
167
|
:data-icon="reflectedProp('icon', 'icon', checkedProps.icon, undefined, false)"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.19 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import {
|
|
4
4
|
computed,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from 'vue'
|
|
12
12
|
import type { PropType, VNode } from 'vue'
|
|
13
13
|
import { createDispatch, useComponentHost } from './host'
|
|
14
|
-
import { checkedProp, vPropValidity } from './props'
|
|
14
|
+
import { checkedProp, propValidityState, vPropValidity } from './props'
|
|
15
15
|
import UiIcon from './UiIcon.vue'
|
|
16
16
|
|
|
17
17
|
defineOptions({ inheritAttrs: false })
|
|
@@ -94,7 +94,7 @@ const propValidityContract = {
|
|
|
94
94
|
default: 'cell',
|
|
95
95
|
},
|
|
96
96
|
},
|
|
97
|
-
}
|
|
97
|
+
} as const
|
|
98
98
|
const props = defineProps({
|
|
99
99
|
actions: {
|
|
100
100
|
type: null as unknown as PropType<
|
|
@@ -134,6 +134,14 @@ const props = defineProps({
|
|
|
134
134
|
open: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
135
135
|
scope: { type: null as unknown as PropType<'cell' | 'row' | 'column' | null>, default: 'cell' },
|
|
136
136
|
})
|
|
137
|
+
const acceptedProps: Record<string, unknown> = {
|
|
138
|
+
actions: null,
|
|
139
|
+
cellBackground: '',
|
|
140
|
+
headerColumn: false,
|
|
141
|
+
headerRow: false,
|
|
142
|
+
open: false,
|
|
143
|
+
scope: 'cell',
|
|
144
|
+
}
|
|
137
145
|
const checkedProps = computed(() => ({
|
|
138
146
|
actions: checkedProp<
|
|
139
147
|
readonly (
|
|
@@ -201,36 +209,42 @@ const checkedProps = computed(() => ({
|
|
|
201
209
|
},
|
|
202
210
|
false,
|
|
203
211
|
'actions',
|
|
212
|
+
acceptedProps,
|
|
204
213
|
),
|
|
205
214
|
cellBackground: checkedProp<string>(
|
|
206
215
|
props['cellBackground'],
|
|
207
216
|
{ kind: 'terminal', name: 'string' },
|
|
208
217
|
false,
|
|
209
218
|
'cellBackground',
|
|
219
|
+
acceptedProps,
|
|
210
220
|
) as string,
|
|
211
221
|
headerColumn: checkedProp<boolean>(
|
|
212
222
|
props['headerColumn'],
|
|
213
223
|
{ kind: 'terminal', name: 'boolean' },
|
|
214
224
|
false,
|
|
215
225
|
'headerColumn',
|
|
226
|
+
acceptedProps,
|
|
216
227
|
) as boolean,
|
|
217
228
|
headerRow: checkedProp<boolean>(
|
|
218
229
|
props['headerRow'],
|
|
219
230
|
{ kind: 'terminal', name: 'boolean' },
|
|
220
231
|
false,
|
|
221
232
|
'headerRow',
|
|
233
|
+
acceptedProps,
|
|
222
234
|
) as boolean,
|
|
223
235
|
open: checkedProp<boolean>(
|
|
224
236
|
props['open'],
|
|
225
237
|
{ kind: 'terminal', name: 'boolean' },
|
|
226
238
|
false,
|
|
227
239
|
'open',
|
|
240
|
+
acceptedProps,
|
|
228
241
|
) as boolean,
|
|
229
242
|
scope: checkedProp<'cell' | 'row' | 'column'>(
|
|
230
243
|
props['scope'],
|
|
231
244
|
{ kind: 'terminal', name: 'keyword' },
|
|
232
245
|
false,
|
|
233
246
|
'scope',
|
|
247
|
+
acceptedProps,
|
|
234
248
|
) as 'cell' | 'row' | 'column',
|
|
235
249
|
}))
|
|
236
250
|
void checkedProps.value
|
|
@@ -409,6 +423,16 @@ useComponentHost(
|
|
|
409
423
|
definition: './components/ui-editor-table-context-menu/ui-editor-table-context-menu.html',
|
|
410
424
|
},
|
|
411
425
|
props: checkedProps,
|
|
426
|
+
propInputs: (name: string) => {
|
|
427
|
+
const incoming = hydrationInstance?.vnode.props
|
|
428
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
429
|
+
return incoming !== null && incoming !== undefined
|
|
430
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
431
|
+
: null
|
|
432
|
+
},
|
|
433
|
+
propNames: ['actions', 'cellBackground', 'headerColumn', 'headerRow', 'open', 'scope'],
|
|
434
|
+
propValidity: (name: string) =>
|
|
435
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
412
436
|
state: { swatches, sections },
|
|
413
437
|
},
|
|
414
438
|
)
|
|
@@ -461,7 +485,7 @@ function uniqueKeys<T>(
|
|
|
461
485
|
role="menu"
|
|
462
486
|
v-bind="nativeAttrs($attrs)"
|
|
463
487
|
:hidden="!checkedProps.open"
|
|
464
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
488
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
465
489
|
:data-actions="reflectedProp('actions', 'actions', checkedProps.actions, undefined, false)"
|
|
466
490
|
:data-cell-background="reflectedProp('cellBackground', 'cell-background', checkedProps.cellBackground, undefined, false)"
|
|
467
491
|
:data-header-column="reflectedProp('headerColumn', 'header-column', checkedProps.headerColumn, undefined, false)"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.19 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import {
|
|
4
4
|
computed,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from 'vue'
|
|
12
12
|
import type { PropType, VNode } from 'vue'
|
|
13
13
|
import { createDispatch, useComponentHost } from './host'
|
|
14
|
-
import { checkedProp, vPropValidity } from './props'
|
|
14
|
+
import { checkedProp, propValidityState, vPropValidity } from './props'
|
|
15
15
|
import UiIcon from './UiIcon.vue'
|
|
16
16
|
|
|
17
17
|
defineOptions({ inheritAttrs: false })
|
|
@@ -89,7 +89,7 @@ const propValidityContract = {
|
|
|
89
89
|
default: false,
|
|
90
90
|
},
|
|
91
91
|
},
|
|
92
|
-
}
|
|
92
|
+
} as const
|
|
93
93
|
const props = defineProps({
|
|
94
94
|
geometry: {
|
|
95
95
|
type: null as unknown as PropType<
|
|
@@ -118,6 +118,7 @@ const props = defineProps({
|
|
|
118
118
|
},
|
|
119
119
|
open: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
120
120
|
})
|
|
121
|
+
const acceptedProps: Record<string, unknown> = { geometry: null, open: false }
|
|
121
122
|
const checkedProps = computed(() => ({
|
|
122
123
|
geometry: checkedProp<
|
|
123
124
|
{
|
|
@@ -193,12 +194,14 @@ const checkedProps = computed(() => ({
|
|
|
193
194
|
},
|
|
194
195
|
false,
|
|
195
196
|
'geometry',
|
|
197
|
+
acceptedProps,
|
|
196
198
|
),
|
|
197
199
|
open: checkedProp<boolean>(
|
|
198
200
|
props['open'],
|
|
199
201
|
{ kind: 'terminal', name: 'boolean' },
|
|
200
202
|
false,
|
|
201
203
|
'open',
|
|
204
|
+
acceptedProps,
|
|
202
205
|
) as boolean,
|
|
203
206
|
}))
|
|
204
207
|
void checkedProps.value
|
|
@@ -498,6 +501,16 @@ useComponentHost(() => import('../components/ui-editor-table-overlay/ui-editor-t
|
|
|
498
501
|
definition: './components/ui-editor-table-overlay/ui-editor-table-overlay.html',
|
|
499
502
|
},
|
|
500
503
|
props: checkedProps,
|
|
504
|
+
propInputs: (name: string) => {
|
|
505
|
+
const incoming = hydrationInstance?.vnode.props
|
|
506
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
507
|
+
return incoming !== null && incoming !== undefined
|
|
508
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
509
|
+
: null
|
|
510
|
+
},
|
|
511
|
+
propNames: ['geometry', 'open'],
|
|
512
|
+
propValidity: (name: string) =>
|
|
513
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
501
514
|
state: { rows, cols, hovered, active, activeKey },
|
|
502
515
|
})
|
|
503
516
|
|
|
@@ -541,7 +554,7 @@ function uniqueKeys<T>(
|
|
|
541
554
|
aria-label="Table controls"
|
|
542
555
|
v-bind="nativeAttrs($attrs)"
|
|
543
556
|
:hidden="!checkedProps.open"
|
|
544
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
557
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
545
558
|
:data-geometry="reflectedProp('geometry', 'geometry', checkedProps.geometry, undefined, false)"
|
|
546
559
|
:data-open="reflectedProp('open', 'open', checkedProps.open, undefined, false)"
|
|
547
560
|
ref="root"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.19 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import {
|
|
4
4
|
computed,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from 'vue'
|
|
12
12
|
import type { PropType, VNode } from 'vue'
|
|
13
13
|
import { createDispatch, useComponentHost } from './host'
|
|
14
|
-
import { checkedProp, vPropValidity } from './props'
|
|
14
|
+
import { checkedProp, propValidityState, vPropValidity } from './props'
|
|
15
15
|
import UiIcon from './UiIcon.vue'
|
|
16
16
|
|
|
17
17
|
defineOptions({ inheritAttrs: false })
|
|
@@ -94,7 +94,7 @@ const propValidityContract = {
|
|
|
94
94
|
default: false,
|
|
95
95
|
},
|
|
96
96
|
},
|
|
97
|
-
}
|
|
97
|
+
} as const
|
|
98
98
|
const props = defineProps({
|
|
99
99
|
actions: {
|
|
100
100
|
type: null as unknown as PropType<
|
|
@@ -137,6 +137,14 @@ const props = defineProps({
|
|
|
137
137
|
headerRow: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
138
138
|
open: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
139
139
|
})
|
|
140
|
+
const acceptedProps: Record<string, unknown> = {
|
|
141
|
+
actions: null,
|
|
142
|
+
cellAlignment: 'left',
|
|
143
|
+
cellBackground: '',
|
|
144
|
+
headerColumn: false,
|
|
145
|
+
headerRow: false,
|
|
146
|
+
open: false,
|
|
147
|
+
}
|
|
140
148
|
const checkedProps = computed(() => ({
|
|
141
149
|
actions: checkedProp<
|
|
142
150
|
readonly (
|
|
@@ -204,36 +212,42 @@ const checkedProps = computed(() => ({
|
|
|
204
212
|
},
|
|
205
213
|
false,
|
|
206
214
|
'actions',
|
|
215
|
+
acceptedProps,
|
|
207
216
|
),
|
|
208
217
|
cellAlignment: checkedProp<'left' | 'center' | 'right'>(
|
|
209
218
|
props['cellAlignment'],
|
|
210
219
|
{ kind: 'terminal', name: 'keyword' },
|
|
211
220
|
false,
|
|
212
221
|
'cellAlignment',
|
|
222
|
+
acceptedProps,
|
|
213
223
|
) as 'left' | 'center' | 'right',
|
|
214
224
|
cellBackground: checkedProp<string>(
|
|
215
225
|
props['cellBackground'],
|
|
216
226
|
{ kind: 'terminal', name: 'string' },
|
|
217
227
|
false,
|
|
218
228
|
'cellBackground',
|
|
229
|
+
acceptedProps,
|
|
219
230
|
) as string,
|
|
220
231
|
headerColumn: checkedProp<boolean>(
|
|
221
232
|
props['headerColumn'],
|
|
222
233
|
{ kind: 'terminal', name: 'boolean' },
|
|
223
234
|
false,
|
|
224
235
|
'headerColumn',
|
|
236
|
+
acceptedProps,
|
|
225
237
|
) as boolean,
|
|
226
238
|
headerRow: checkedProp<boolean>(
|
|
227
239
|
props['headerRow'],
|
|
228
240
|
{ kind: 'terminal', name: 'boolean' },
|
|
229
241
|
false,
|
|
230
242
|
'headerRow',
|
|
243
|
+
acceptedProps,
|
|
231
244
|
) as boolean,
|
|
232
245
|
open: checkedProp<boolean>(
|
|
233
246
|
props['open'],
|
|
234
247
|
{ kind: 'terminal', name: 'boolean' },
|
|
235
248
|
false,
|
|
236
249
|
'open',
|
|
250
|
+
acceptedProps,
|
|
237
251
|
) as boolean,
|
|
238
252
|
}))
|
|
239
253
|
void checkedProps.value
|
|
@@ -429,6 +443,16 @@ useComponentHost(() => import('../components/ui-editor-table-toolbar/ui-editor-t
|
|
|
429
443
|
definition: './components/ui-editor-table-toolbar/ui-editor-table-toolbar.html',
|
|
430
444
|
},
|
|
431
445
|
props: checkedProps,
|
|
446
|
+
propInputs: (name: string) => {
|
|
447
|
+
const incoming = hydrationInstance?.vnode.props
|
|
448
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
449
|
+
return incoming !== null && incoming !== undefined
|
|
450
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
451
|
+
: null
|
|
452
|
+
},
|
|
453
|
+
propNames: ['actions', 'cellAlignment', 'cellBackground', 'headerColumn', 'headerRow', 'open'],
|
|
454
|
+
propValidity: (name: string) =>
|
|
455
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
432
456
|
state: { alignments, structure, swatches, sections, hasOverflow, overflowOpen },
|
|
433
457
|
})
|
|
434
458
|
|
|
@@ -481,7 +505,7 @@ function uniqueKeys<T>(
|
|
|
481
505
|
aria-label="Table actions"
|
|
482
506
|
v-bind="nativeAttrs($attrs)"
|
|
483
507
|
:hidden="!checkedProps.open"
|
|
484
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
508
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
485
509
|
:data-actions="reflectedProp('actions', 'actions', checkedProps.actions, undefined, false)"
|
|
486
510
|
:data-cell-alignment="reflectedProp('cellAlignment', 'cell-alignment', checkedProps.cellAlignment, undefined, false)"
|
|
487
511
|
:data-cell-background="reflectedProp('cellBackground', 'cell-background', checkedProps.cellBackground, undefined, false)"
|