@threadlabs/looma 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/components/shared/overlay.js +10 -2
- package/components/ui-affordance-scope/ui-affordance-scope.html +1 -1
- package/components/ui-affordance-scope/ui-affordance-scope.js +6 -1
- package/components/ui-avatar/ui-avatar.html +4 -4
- package/components/ui-avatar/ui-avatar.js +6 -1
- package/components/ui-avatar-group/ui-avatar-group.html +2 -2
- package/components/ui-avatar-group/ui-avatar-group.js +6 -1
- package/components/ui-badge/ui-badge.html +30 -30
- package/components/ui-breadcrumb-item/ui-breadcrumb-item.html +1 -1
- package/components/ui-button/ui-button.html +33 -33
- package/components/ui-button/ui-button.js +6 -1
- package/components/ui-callout/ui-callout.html +4 -4
- package/components/ui-card/ui-card.html +9 -9
- package/components/ui-checkbox/ui-checkbox.html +11 -11
- package/components/ui-checkbox/ui-checkbox.js +6 -1
- package/components/ui-cluster/ui-cluster.html +12 -12
- package/components/ui-combobox/ui-combobox.html +15 -17
- package/components/ui-combobox/ui-combobox.js +13 -15
- package/components/ui-container/ui-container.html +5 -5
- package/components/ui-context-menu/ui-context-menu.js +6 -1
- package/components/ui-cover/ui-cover.html +1 -1
- package/components/ui-description-list/ui-description-list.html +10 -10
- package/components/ui-dialog/ui-dialog.html +4 -4
- package/components/ui-dialog/ui-dialog.js +6 -1
- package/components/ui-disclosure/ui-disclosure.html +13 -13
- package/components/ui-disclosure/ui-disclosure.js +6 -1
- package/components/ui-editable/ui-editable.html +1 -1
- package/components/ui-editable/ui-editable.js +6 -1
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.js +6 -1
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.js +6 -1
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.js +6 -1
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.js +6 -1
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.js +6 -1
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +6 -1
- package/components/ui-editor-toolbar/ui-editor-toolbar.html +4 -4
- package/components/ui-editor-toolbar/ui-editor-toolbar.js +6 -1
- package/components/ui-floating-action-button/ui-floating-action-button.html +1 -1
- package/components/ui-form-field/ui-form-field.html +1 -1
- package/components/ui-form-field/ui-form-field.js +6 -1
- package/components/ui-grid/ui-grid.html +7 -7
- package/components/ui-icon-button/ui-icon-button.html +26 -26
- package/components/ui-icon-button/ui-icon-button.js +6 -1
- package/components/ui-image/ui-image.html +11 -11
- package/components/ui-image/ui-image.js +6 -1
- package/components/ui-input/ui-input.html +9 -7
- package/components/ui-input/ui-input.js +6 -1
- package/components/ui-input-group/ui-input-group.html +3 -3
- package/components/ui-input-group/ui-input-group.js +6 -1
- package/components/ui-list/ui-list.html +6 -6
- package/components/ui-list-item/ui-list-item.html +8 -8
- package/components/ui-listbox/ui-listbox.js +6 -1
- package/components/ui-menu/ui-menu.html +3 -3
- package/components/ui-menu/ui-menu.js +6 -1
- package/components/ui-menu-item/ui-menu-item.html +3 -3
- package/components/ui-menu-item/ui-menu-item.js +6 -1
- package/components/ui-meter/ui-meter.html +7 -7
- package/components/ui-nav-item/ui-nav-item.html +6 -6
- package/components/ui-page-header/ui-page-header.html +2 -2
- package/components/ui-popover/ui-popover.html +3 -3
- package/components/ui-popover/ui-popover.js +6 -1
- package/components/ui-radio/ui-radio.html +10 -10
- package/components/ui-radio/ui-radio.js +6 -1
- package/components/ui-radio-group/ui-radio-group.html +2 -2
- package/components/ui-radio-group/ui-radio-group.js +6 -1
- package/components/ui-reel/ui-reel.html +11 -11
- package/components/ui-scroll-area/ui-scroll-area.html +4 -4
- package/components/ui-scroll-area/ui-scroll-area.js +6 -1
- package/components/ui-search-result-row/ui-search-result-row.html +5 -5
- package/components/ui-search-shell/ui-search-shell.js +6 -1
- package/components/ui-section/ui-section.html +4 -4
- package/components/ui-select/ui-select.html +3 -3
- package/components/ui-select/ui-select.js +6 -1
- package/components/ui-separator/ui-separator.html +4 -4
- package/components/ui-sidebar/ui-sidebar.html +6 -6
- package/components/ui-sidebar/ui-sidebar.js +6 -1
- package/components/ui-spinner/ui-spinner.html +1 -1
- package/components/ui-stack/ui-stack.html +12 -12
- package/components/ui-status-message/ui-status-message.html +4 -4
- package/components/ui-switch/ui-switch.html +11 -11
- package/components/ui-switch/ui-switch.js +6 -1
- package/components/ui-switcher/ui-switcher.html +11 -11
- package/components/ui-switcher/ui-switcher.js +6 -1
- package/components/ui-table/ui-table.html +2 -2
- package/components/ui-table/ui-table.js +6 -1
- package/components/ui-tabs/ui-tabs.html +8 -8
- package/components/ui-tabs/ui-tabs.js +6 -1
- package/components/ui-text/ui-text.html +20 -20
- package/components/ui-textarea/ui-textarea.html +4 -4
- package/components/ui-textarea/ui-textarea.js +6 -1
- package/components/ui-toast/ui-toast.html +4 -4
- package/components/ui-toast/ui-toast.js +6 -1
- package/components/ui-toast-region/ui-toast-region.html +16 -11
- package/components/ui-toast-region/ui-toast-region.js +12 -9
- package/components/ui-tooltip/ui-tooltip.html +1 -1
- package/components/ui-tooltip/ui-tooltip.js +6 -1
- package/components/ui-tree/ui-tree.html +2 -2
- package/components/ui-tree/ui-tree.js +6 -1
- package/components/ui-tree-item/ui-tree-item.html +4 -4
- package/components/ui-tree-item/ui-tree-item.js +6 -1
- package/dist/index.js +10 -4
- 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-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-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 +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 +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-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 +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +1 -1
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +1 -1
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +1 -1
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +1 -1
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +1 -1
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -3
- package/vanilla/UiCombobox.js +2 -2
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +1 -1
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +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/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +1 -1
- package/vanilla/UiInput.d.ts +4 -4
- package/vanilla/UiInput.js +2 -2
- 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 +2 -2
- package/vanilla/UiToastRegion.js +2 -2
- 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 +8 -1
- package/vue/UiAvatar.d.ts +6 -9
- package/vue/UiAvatar.vue +71 -20
- package/vue/UiAvatarGroup.d.ts +7 -10
- package/vue/UiAvatarGroup.vue +45 -12
- package/vue/UiBadge.vue +1 -1
- package/vue/UiBreadcrumbItem.vue +1 -1
- package/vue/UiBreadcrumbs.vue +1 -1
- package/vue/UiButton.vue +1 -1
- package/vue/UiCallout.vue +1 -1
- package/vue/UiCard.vue +1 -1
- package/vue/UiCheckbox.d.ts +8 -11
- package/vue/UiCheckbox.vue +34 -11
- package/vue/UiCluster.vue +1 -1
- package/vue/UiCombobox.d.ts +60 -66
- package/vue/UiCombobox.vue +476 -124
- package/vue/UiContainer.vue +1 -1
- package/vue/UiContextMenu.vue +18 -9
- package/vue/UiCover.vue +1 -1
- package/vue/UiDescriptionItem.vue +1 -1
- package/vue/UiDescriptionList.vue +1 -1
- package/vue/UiDialog.d.ts +8 -11
- package/vue/UiDialog.vue +39 -12
- package/vue/UiDisclosure.d.ts +12 -15
- package/vue/UiDisclosure.vue +70 -24
- package/vue/UiEditable.d.ts +3 -3
- package/vue/UiEditable.vue +60 -21
- package/vue/UiEditorInsertTableGrid.d.ts +2 -2
- package/vue/UiEditorInsertTableGrid.vue +75 -14
- package/vue/UiEditorMentionMenu.d.ts +10 -13
- package/vue/UiEditorMentionMenu.vue +50 -7
- package/vue/UiEditorMentionMenuItem.vue +1 -1
- package/vue/UiEditorSlashMenu.d.ts +12 -15
- package/vue/UiEditorSlashMenu.vue +48 -7
- package/vue/UiEditorSlashMenuGroup.vue +1 -1
- package/vue/UiEditorSlashMenuItem.vue +1 -1
- package/vue/UiEditorTableContextMenu.vue +73 -4
- package/vue/UiEditorTableOverlay.d.ts +2 -2
- package/vue/UiEditorTableOverlay.vue +202 -38
- package/vue/UiEditorTableToolbar.d.ts +2 -2
- package/vue/UiEditorTableToolbar.vue +128 -7
- package/vue/UiEditorToolbar.vue +3 -3
- package/vue/UiFloatingActionButton.vue +1 -1
- package/vue/UiFormField.vue +1 -1
- package/vue/UiGrid.vue +1 -1
- package/vue/UiIcon.vue +1 -1
- package/vue/UiIconButton.vue +1 -1
- package/vue/UiImage.vue +7 -6
- package/vue/UiInput.d.ts +5 -5
- package/vue/UiInput.vue +15 -3
- package/vue/UiInputGroup.vue +1 -1
- package/vue/UiList.vue +1 -1
- package/vue/UiListItem.vue +1 -1
- package/vue/UiListbox.d.ts +6 -9
- package/vue/UiListbox.vue +70 -19
- package/vue/UiMenu.vue +20 -10
- package/vue/UiMenuGroup.vue +1 -1
- package/vue/UiMenuItem.d.ts +13 -16
- package/vue/UiMenuItem.vue +30 -7
- package/vue/UiMeter.vue +1 -1
- package/vue/UiNavItem.vue +1 -1
- package/vue/UiPageHeader.vue +1 -1
- package/vue/UiPopover.vue +12 -4
- package/vue/UiRadio.d.ts +8 -11
- package/vue/UiRadio.vue +34 -11
- package/vue/UiRadioGroup.vue +16 -7
- package/vue/UiReel.vue +1 -1
- package/vue/UiScrollArea.vue +3 -3
- package/vue/UiSearchResultRow.vue +1 -1
- package/vue/UiSearchShell.vue +14 -6
- package/vue/UiSection.vue +1 -1
- package/vue/UiSelect.vue +3 -2
- package/vue/UiSeparator.vue +1 -1
- package/vue/UiSidebar.d.ts +7 -10
- package/vue/UiSidebar.vue +44 -12
- package/vue/UiSpinner.vue +1 -1
- package/vue/UiStack.vue +1 -1
- package/vue/UiStatusMessage.vue +1 -1
- package/vue/UiSwitch.d.ts +8 -11
- package/vue/UiSwitch.vue +34 -11
- package/vue/UiSwitcher.vue +8 -1
- package/vue/UiTable.vue +1 -1
- package/vue/UiTabs.vue +30 -8
- package/vue/UiText.vue +1 -1
- package/vue/UiTextarea.vue +2 -2
- package/vue/UiToast.vue +7 -6
- package/vue/UiToastRegion.d.ts +15 -3
- package/vue/UiToastRegion.vue +90 -45
- package/vue/UiTooltip.d.ts +9 -12
- package/vue/UiTooltip.vue +30 -7
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.vue +17 -13
- package/vue/UiTreeItem.d.ts +15 -18
- package/vue/UiTreeItem.vue +79 -30
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +6 -2
- package/vue/chunks/UiAvatar.js +37 -10
- package/vue/chunks/UiAvatarGroup.js +26 -7
- package/vue/chunks/UiBadge.js +2 -2
- package/vue/chunks/UiBreadcrumbItem.js +2 -2
- package/vue/chunks/UiBreadcrumbs.js +2 -2
- package/vue/chunks/UiButton.js +2 -2
- package/vue/chunks/UiCallout.js +2 -2
- package/vue/chunks/UiCard.js +2 -2
- package/vue/chunks/UiCheckbox.js +25 -12
- package/vue/chunks/UiCluster.js +2 -2
- package/vue/chunks/UiCombobox.js +628 -117
- package/vue/chunks/UiContainer.js +2 -2
- package/vue/chunks/UiContextMenu.js +14 -10
- package/vue/chunks/UiCover.js +2 -2
- package/vue/chunks/UiDescriptionItem.js +2 -2
- package/vue/chunks/UiDescriptionList.js +2 -2
- package/vue/chunks/UiDialog.js +29 -11
- package/vue/chunks/UiDisclosure.js +44 -14
- package/vue/chunks/UiEditable.js +33 -9
- package/vue/chunks/UiEditorInsertTableGrid.js +98 -14
- package/vue/chunks/UiEditorMentionMenu.js +76 -9
- package/vue/chunks/UiEditorMentionMenuItem.js +2 -2
- package/vue/chunks/UiEditorSlashMenu.js +70 -11
- package/vue/chunks/UiEditorSlashMenuGroup.js +2 -2
- package/vue/chunks/UiEditorSlashMenuItem.js +2 -2
- package/vue/chunks/UiEditorTableContextMenu.js +120 -2
- package/vue/chunks/UiEditorTableOverlay.js +306 -12
- package/vue/chunks/UiEditorTableToolbar.js +215 -3
- package/vue/chunks/UiEditorToolbar.js +8 -8
- package/vue/chunks/UiFloatingActionButton.js +2 -2
- package/vue/chunks/UiFormField.js +2 -2
- package/vue/chunks/UiGrid.js +2 -2
- package/vue/chunks/UiIcon.js +2 -2
- package/vue/chunks/UiIconButton.js +2 -2
- package/vue/chunks/UiImage.js +12 -12
- package/vue/chunks/UiInput.js +34 -4
- package/vue/chunks/UiInputGroup.js +2 -2
- package/vue/chunks/UiList.js +2 -2
- package/vue/chunks/UiListItem.js +2 -2
- package/vue/chunks/UiListbox.js +96 -12
- package/vue/chunks/UiMenu.js +6 -2
- package/vue/chunks/UiMenuGroup.js +2 -2
- package/vue/chunks/UiMenuItem.js +15 -3
- package/vue/chunks/UiMeter.js +2 -2
- package/vue/chunks/UiNavItem.js +2 -2
- package/vue/chunks/UiPageHeader.js +2 -2
- package/vue/chunks/UiPopover.js +6 -2
- package/vue/chunks/UiRadio.js +25 -12
- package/vue/chunks/UiRadioGroup.js +6 -2
- package/vue/chunks/UiReel.js +2 -2
- package/vue/chunks/UiScrollArea.js +8 -8
- package/vue/chunks/UiSearchResultRow.js +2 -2
- package/vue/chunks/UiSearchShell.js +9 -4
- package/vue/chunks/UiSection.js +2 -2
- package/vue/chunks/UiSelect.js +5 -3
- package/vue/chunks/UiSeparator.js +2 -2
- package/vue/chunks/UiSidebar.js +28 -5
- package/vue/chunks/UiSpinner.js +2 -2
- package/vue/chunks/UiStack.js +2 -2
- package/vue/chunks/UiStatusMessage.js +2 -2
- package/vue/chunks/UiSwitch.js +25 -12
- package/vue/chunks/UiSwitcher.js +6 -2
- package/vue/chunks/UiTable.js +2 -2
- package/vue/chunks/UiTabs.js +39 -10
- package/vue/chunks/UiText.js +2 -2
- package/vue/chunks/UiTextarea.js +3 -2
- package/vue/chunks/UiToast.js +8 -8
- package/vue/chunks/UiToastRegion.js +86 -20
- package/vue/chunks/UiTooltip.js +15 -3
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +2 -2
- package/vue/chunks/UiTreeItem.js +84 -51
- package/vue/chunks/control.js +9 -2
- package/vue/chunks/host.js +203 -29
- package/vue/chunks/props.js +43 -7
- package/vue/components.css +1345 -1345
- package/vue/editor/index.js +12 -5
- package/vue/host.ts +286 -42
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.29 for Vue 3.5. Do not edit. -->
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
const htmlNextAuthoredCheck2Reported = new Set<string>()
|
|
4
|
+
function htmlNextAuthoredCheck2(accepted: boolean, location: string, message: string): boolean {
|
|
5
|
+
if (!accepted && !htmlNextAuthoredCheck2Reported.has(location)) {
|
|
6
|
+
htmlNextAuthoredCheck2Reported.add(location)
|
|
7
|
+
console.warn(message)
|
|
8
|
+
}
|
|
9
|
+
return accepted
|
|
10
|
+
}
|
|
11
|
+
</script>
|
|
12
|
+
|
|
2
13
|
<script setup lang="ts">
|
|
3
14
|
import {
|
|
4
15
|
computed,
|
|
@@ -13,6 +24,7 @@ import {
|
|
|
13
24
|
import type { PropType, VNode } from 'vue'
|
|
14
25
|
import { vBindControl } from './control'
|
|
15
26
|
import { createDispatch, useComponentHost } from './host'
|
|
27
|
+
import { acceptsControllerWrite } from './props'
|
|
16
28
|
import { checkedProp, propValidityState, vPropValidity } from './props'
|
|
17
29
|
|
|
18
30
|
defineOptions({ inheritAttrs: false })
|
|
@@ -163,8 +175,8 @@ const emit = defineEmits<{
|
|
|
163
175
|
}>()
|
|
164
176
|
|
|
165
177
|
const root = ref<HTMLElement | null>(null)
|
|
166
|
-
const gridElement = useTemplateRef<HTMLElement>('
|
|
167
|
-
const headerElement = useTemplateRef<HTMLElement>('
|
|
178
|
+
const gridElement = useTemplateRef<HTMLElement>('gridElement')
|
|
179
|
+
const headerElement = useTemplateRef<HTMLElement>('headerElement')
|
|
168
180
|
const cells = ref<
|
|
169
181
|
{ key: string; row: number; col: number; label: string; selected: boolean; tabIndex: number }[]
|
|
170
182
|
>([])
|
|
@@ -174,24 +186,46 @@ const hint = ref('')
|
|
|
174
186
|
const withHeaderRow = ref(false)
|
|
175
187
|
let guardedPrevious: any
|
|
176
188
|
const guarded = computed(() => {
|
|
177
|
-
if (
|
|
189
|
+
if (
|
|
190
|
+
!(htmlNextAuthoredCheck2(
|
|
191
|
+
hint.value == null || typeof hint.value === 'string',
|
|
192
|
+
'$hint:hint',
|
|
193
|
+
'./components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html: HR007: Reference hint does not satisfy its declared type.',
|
|
194
|
+
))
|
|
195
|
+
) return guardedPrevious
|
|
178
196
|
return guardedPrevious = hint.value
|
|
179
197
|
})
|
|
180
198
|
let guardedBindingPrevious: any
|
|
181
199
|
const guardedBinding = computed(() => {
|
|
182
|
-
if (
|
|
200
|
+
if (
|
|
201
|
+
!(htmlNextAuthoredCheck2(
|
|
202
|
+
rows.value == null || Number.isInteger(rows.value),
|
|
203
|
+
'rows:rows',
|
|
204
|
+
'./components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html: HR007: Reference rows does not satisfy its declared type.',
|
|
205
|
+
))
|
|
206
|
+
) return guardedBindingPrevious
|
|
183
207
|
return guardedBindingPrevious = rows.value
|
|
184
208
|
})
|
|
185
209
|
let guardedBinding2Previous: any
|
|
186
210
|
const guardedBinding2 = computed(() => {
|
|
187
|
-
if (
|
|
211
|
+
if (
|
|
212
|
+
!(htmlNextAuthoredCheck2(
|
|
213
|
+
cols.value == null || Number.isInteger(cols.value),
|
|
214
|
+
'cols:cols',
|
|
215
|
+
'./components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html: HR007: Reference cols does not satisfy its declared type.',
|
|
216
|
+
))
|
|
217
|
+
) return guardedBinding2Previous
|
|
188
218
|
return guardedBinding2Previous = cols.value
|
|
189
219
|
})
|
|
190
220
|
let guardedBinding3Previous: any
|
|
191
221
|
const guardedBinding3 = computed(() => {
|
|
192
|
-
if (
|
|
193
|
-
|
|
194
|
-
|
|
222
|
+
if (
|
|
223
|
+
!(htmlNextAuthoredCheck2(
|
|
224
|
+
withHeaderRow.value == null || typeof withHeaderRow.value === 'boolean',
|
|
225
|
+
'withHeaderRow:withHeaderRow',
|
|
226
|
+
'./components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html: HR007: Reference withHeaderRow does not satisfy its declared type.',
|
|
227
|
+
))
|
|
228
|
+
) return guardedBinding3Previous
|
|
195
229
|
return guardedBinding3Previous = withHeaderRow.value
|
|
196
230
|
})
|
|
197
231
|
provide('html-next:ui-editor-insert-table-grid:cells', cells)
|
|
@@ -216,12 +250,13 @@ if (
|
|
|
216
250
|
)
|
|
217
251
|
}
|
|
218
252
|
|
|
219
|
-
const isInsertDetail = (
|
|
220
|
-
detail
|
|
253
|
+
const isInsertDetail = (
|
|
254
|
+
detail: unknown,
|
|
255
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
221
256
|
&& Number.isInteger((detail as Record<string, unknown>)['rows'])
|
|
222
257
|
&& Number.isInteger((detail as Record<string, unknown>)['cols'])
|
|
223
258
|
&& typeof (detail as Record<string, unknown>)['withHeaderRow'] === 'boolean'
|
|
224
|
-
&& Object.keys(detail as object).every((key) => ['rows', 'cols', 'withHeaderRow'].includes(key))
|
|
259
|
+
&& Object.keys(detail as object).every((key) => ['rows', 'cols', 'withHeaderRow'].includes(key)))
|
|
225
260
|
const dispatch = createDispatch(root, emit as (name: string, detail: unknown) => void, {
|
|
226
261
|
checks: {
|
|
227
262
|
insert: isInsertDetail,
|
|
@@ -233,6 +268,32 @@ useComponentHost(
|
|
|
233
268
|
{
|
|
234
269
|
root,
|
|
235
270
|
dispatch,
|
|
271
|
+
acceptsState: (name: string, keys: readonly string[], value: unknown) =>
|
|
272
|
+
acceptsControllerWrite(
|
|
273
|
+
value,
|
|
274
|
+
({
|
|
275
|
+
cells: {
|
|
276
|
+
kind: 'list',
|
|
277
|
+
item: {
|
|
278
|
+
kind: 'object',
|
|
279
|
+
fields: [
|
|
280
|
+
{ name: 'key', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
281
|
+
{ name: 'row', type: { kind: 'terminal', name: 'integer' }, optional: false },
|
|
282
|
+
{ name: 'col', type: { kind: 'terminal', name: 'integer' }, optional: false },
|
|
283
|
+
{ name: 'label', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
284
|
+
{ name: 'selected', type: { kind: 'terminal', name: 'boolean' }, optional: false },
|
|
285
|
+
{ name: 'tabIndex', type: { kind: 'terminal', name: 'integer' }, optional: false },
|
|
286
|
+
],
|
|
287
|
+
open: false,
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
rows: { kind: 'terminal', name: 'integer' },
|
|
291
|
+
cols: { kind: 'terminal', name: 'integer' },
|
|
292
|
+
hint: { kind: 'terminal', name: 'string' },
|
|
293
|
+
withHeaderRow: { kind: 'terminal', name: 'boolean' },
|
|
294
|
+
} as Record<string, any>)[name],
|
|
295
|
+
keys,
|
|
296
|
+
),
|
|
236
297
|
controllerSource: {
|
|
237
298
|
specifier: '../components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.js',
|
|
238
299
|
definition: './components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html',
|
|
@@ -305,7 +366,7 @@ function uniqueKeys<T>(
|
|
|
305
366
|
role="group"
|
|
306
367
|
aria-label="Table dimensions"
|
|
307
368
|
:style="{ '--_rows': guardedBinding, '--_cols': guardedBinding2 }"
|
|
308
|
-
ref="
|
|
369
|
+
ref="gridElement"
|
|
309
370
|
>
|
|
310
371
|
<KeyedBoundary><button
|
|
311
372
|
v-for="cell in uniqueKeys(cells, (cell, index, loop) => cell.key)"
|
|
@@ -330,7 +391,7 @@ function uniqueKeys<T>(
|
|
|
330
391
|
nativeProperty: true,
|
|
331
392
|
defaultChecked: false,
|
|
332
393
|
}"
|
|
333
|
-
ref="
|
|
394
|
+
ref="headerElement"
|
|
334
395
|
> Header row</label>
|
|
335
396
|
</div>
|
|
336
397
|
</template>
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} & {
|
|
6
|
-
default?: (props: typeof __VLS_3) => any;
|
|
7
|
-
} & {
|
|
8
|
-
empty?: (props: typeof __VLS_5) => any;
|
|
9
|
-
};
|
|
10
|
-
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
11
5
|
anchorRect: {
|
|
12
6
|
type: PropType<{
|
|
13
7
|
readonly left?: number;
|
|
@@ -142,10 +136,13 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
142
136
|
} | null;
|
|
143
137
|
loadingLabel: string | null;
|
|
144
138
|
selectedIndex: number | null;
|
|
145
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
139
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
140
|
+
header?: (props: {}) => any;
|
|
141
|
+
} & {
|
|
142
|
+
default?: (props: {}) => any;
|
|
143
|
+
} & {
|
|
144
|
+
empty?: (props: {}) => any;
|
|
145
|
+
}>;
|
|
149
146
|
type __VLS_WithSlots<T, S> = T & {
|
|
150
147
|
new (): {
|
|
151
148
|
$slots: S;
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.29 for Vue 3.5. Do not edit. -->
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
const htmlNextAuthoredCheck2Reported = new Set<string>()
|
|
4
|
+
function htmlNextAuthoredCheck2(accepted: boolean, location: string, message: string): boolean {
|
|
5
|
+
if (!accepted && !htmlNextAuthoredCheck2Reported.has(location)) {
|
|
6
|
+
htmlNextAuthoredCheck2Reported.add(location)
|
|
7
|
+
console.warn(message)
|
|
8
|
+
}
|
|
9
|
+
return accepted
|
|
10
|
+
}
|
|
11
|
+
</script>
|
|
12
|
+
|
|
2
13
|
<script setup lang="ts">
|
|
3
14
|
import { computed, getCurrentInstance, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
15
|
import type { PropType } from 'vue'
|
|
5
16
|
import { createDispatch, useComponentHost } from './host'
|
|
17
|
+
import { acceptsControllerWrite } from './props'
|
|
6
18
|
import { checkedProp, propValidityState, vPropValidity } from './props'
|
|
7
19
|
|
|
8
20
|
defineOptions({ inheritAttrs: false })
|
|
@@ -279,7 +291,7 @@ const emit = defineEmits<{
|
|
|
279
291
|
}>()
|
|
280
292
|
|
|
281
293
|
const root = ref<HTMLElement | null>(null)
|
|
282
|
-
const emptyElement = useTemplateRef<HTMLElement>('
|
|
294
|
+
const emptyElement = useTemplateRef<HTMLElement>('emptyElement')
|
|
283
295
|
const visible = ref(false)
|
|
284
296
|
const rows = ref<{ id: string; label: string; detail?: string; initials: string }[]>([])
|
|
285
297
|
const searching = ref(false)
|
|
@@ -287,7 +299,13 @@ const active = ref(0)
|
|
|
287
299
|
const prefix = ref('ui-editor-mention-menu')
|
|
288
300
|
let guardedPrevious: any
|
|
289
301
|
const guarded = computed(() => {
|
|
290
|
-
if (
|
|
302
|
+
if (
|
|
303
|
+
!(htmlNextAuthoredCheck2(
|
|
304
|
+
visible.value == null || typeof visible.value === 'boolean',
|
|
305
|
+
'not visible:visible',
|
|
306
|
+
'./components/ui-editor-mention-menu/ui-editor-mention-menu.html: HR007: Reference visible does not satisfy its declared type.',
|
|
307
|
+
))
|
|
308
|
+
) return guardedPrevious
|
|
291
309
|
return guardedPrevious = !visible.value
|
|
292
310
|
})
|
|
293
311
|
provide('html-next:ui-editor-mention-menu:visible', visible)
|
|
@@ -312,11 +330,12 @@ if (
|
|
|
312
330
|
)
|
|
313
331
|
}
|
|
314
332
|
|
|
315
|
-
const isHighlightDetail = (
|
|
316
|
-
detail
|
|
333
|
+
const isHighlightDetail = (
|
|
334
|
+
detail: unknown,
|
|
335
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
317
336
|
&& Number.isInteger((detail as Record<string, unknown>)['index'])
|
|
318
337
|
&& typeof (detail as Record<string, unknown>)['value'] === 'string'
|
|
319
|
-
&& Object.keys(detail as object).every((key) => ['index', 'value'].includes(key))
|
|
338
|
+
&& Object.keys(detail as object).every((key) => ['index', 'value'].includes(key)))
|
|
320
339
|
const dispatch = createDispatch(root, emit as (name: string, detail: unknown) => void, {
|
|
321
340
|
checks: {
|
|
322
341
|
highlight: isHighlightDetail,
|
|
@@ -327,6 +346,30 @@ const dispatch = createDispatch(root, emit as (name: string, detail: unknown) =>
|
|
|
327
346
|
useComponentHost(() => import('../components/ui-editor-mention-menu/ui-editor-mention-menu.js'), {
|
|
328
347
|
root,
|
|
329
348
|
dispatch,
|
|
349
|
+
acceptsState: (name: string, keys: readonly string[], value: unknown) =>
|
|
350
|
+
acceptsControllerWrite(
|
|
351
|
+
value,
|
|
352
|
+
({
|
|
353
|
+
visible: { kind: 'terminal', name: 'boolean' },
|
|
354
|
+
rows: {
|
|
355
|
+
kind: 'list',
|
|
356
|
+
item: {
|
|
357
|
+
kind: 'object',
|
|
358
|
+
fields: [
|
|
359
|
+
{ name: 'id', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
360
|
+
{ name: 'label', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
361
|
+
{ name: 'detail', type: { kind: 'terminal', name: 'string' }, optional: true },
|
|
362
|
+
{ name: 'initials', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
363
|
+
],
|
|
364
|
+
open: false,
|
|
365
|
+
},
|
|
366
|
+
},
|
|
367
|
+
searching: { kind: 'terminal', name: 'boolean' },
|
|
368
|
+
active: { kind: 'terminal', name: 'integer' },
|
|
369
|
+
prefix: { kind: 'terminal', name: 'string' },
|
|
370
|
+
} as Record<string, any>)[name],
|
|
371
|
+
keys,
|
|
372
|
+
),
|
|
330
373
|
controllerSource: {
|
|
331
374
|
specifier: '../components/ui-editor-mention-menu/ui-editor-mention-menu.js',
|
|
332
375
|
definition: './components/ui-editor-mention-menu/ui-editor-mention-menu.html',
|
|
@@ -412,7 +455,7 @@ function concat<T extends unknown[]>(...values: T): ConcatResult<T> {
|
|
|
412
455
|
</li>
|
|
413
456
|
<slot />
|
|
414
457
|
</ul>
|
|
415
|
-
<div class="empty" ref="
|
|
458
|
+
<div class="empty" ref="emptyElement"><slot name="empty" /></div>
|
|
416
459
|
</div>
|
|
417
460
|
</template>
|
|
418
461
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.29 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'
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} & {
|
|
6
|
-
default?: (props: typeof __VLS_8) => any;
|
|
7
|
-
} & {
|
|
8
|
-
empty?: (props: typeof __VLS_10) => any;
|
|
9
|
-
} & {
|
|
10
|
-
footer?: (props: typeof __VLS_12) => any;
|
|
11
|
-
};
|
|
12
|
-
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
5
|
anchorRect: {
|
|
14
6
|
type: PropType<{
|
|
15
7
|
readonly left?: number;
|
|
@@ -126,10 +118,15 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
126
118
|
readonly height?: number;
|
|
127
119
|
} | null;
|
|
128
120
|
selectedIndex: number | null;
|
|
129
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
121
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
122
|
+
header?: (props: {}) => any;
|
|
123
|
+
} & {
|
|
124
|
+
default?: (props: {}) => any;
|
|
125
|
+
} & {
|
|
126
|
+
empty?: (props: {}) => any;
|
|
127
|
+
} & {
|
|
128
|
+
footer?: (props: {}) => any;
|
|
129
|
+
}>;
|
|
133
130
|
type __VLS_WithSlots<T, S> = T & {
|
|
134
131
|
new (): {
|
|
135
132
|
$slots: S;
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.29 for Vue 3.5. Do not edit. -->
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
const htmlNextAuthoredCheck2Reported = new Set<string>()
|
|
4
|
+
function htmlNextAuthoredCheck2(accepted: boolean, location: string, message: string): boolean {
|
|
5
|
+
if (!accepted && !htmlNextAuthoredCheck2Reported.has(location)) {
|
|
6
|
+
htmlNextAuthoredCheck2Reported.add(location)
|
|
7
|
+
console.warn(message)
|
|
8
|
+
}
|
|
9
|
+
return accepted
|
|
10
|
+
}
|
|
11
|
+
</script>
|
|
12
|
+
|
|
2
13
|
<script setup lang="ts">
|
|
3
14
|
import { computed, getCurrentInstance, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
15
|
import type { PropType } from 'vue'
|
|
5
16
|
import { createDispatch, useComponentHost } from './host'
|
|
17
|
+
import { acceptsControllerWrite } from './props'
|
|
6
18
|
import { checkedProp, propValidityState, vPropValidity } from './props'
|
|
7
19
|
import UiIcon from './UiIcon.vue'
|
|
8
20
|
|
|
@@ -250,13 +262,19 @@ const emit = defineEmits<{
|
|
|
250
262
|
}>()
|
|
251
263
|
|
|
252
264
|
const root = ref<HTMLElement | null>(null)
|
|
253
|
-
const emptyElement = useTemplateRef<HTMLElement>('
|
|
265
|
+
const emptyElement = useTemplateRef<HTMLElement>('emptyElement')
|
|
254
266
|
const visible = ref(false)
|
|
255
267
|
const active = ref(0)
|
|
256
268
|
const rows = ref<{ value: string; title: string; description: string; icon: string }[]>([])
|
|
257
269
|
let guardedPrevious: any
|
|
258
270
|
const guarded = computed(() => {
|
|
259
|
-
if (
|
|
271
|
+
if (
|
|
272
|
+
!(htmlNextAuthoredCheck2(
|
|
273
|
+
visible.value == null || typeof visible.value === 'boolean',
|
|
274
|
+
'not visible:visible',
|
|
275
|
+
'./components/ui-editor-slash-menu/ui-editor-slash-menu.html: HR007: Reference visible does not satisfy its declared type.',
|
|
276
|
+
))
|
|
277
|
+
) return guardedPrevious
|
|
260
278
|
return guardedPrevious = !visible.value
|
|
261
279
|
})
|
|
262
280
|
provide('html-next:ui-editor-slash-menu:visible', visible)
|
|
@@ -279,11 +297,12 @@ if (
|
|
|
279
297
|
)
|
|
280
298
|
}
|
|
281
299
|
|
|
282
|
-
const isHighlightDetail = (
|
|
283
|
-
detail
|
|
300
|
+
const isHighlightDetail = (
|
|
301
|
+
detail: unknown,
|
|
302
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
284
303
|
&& Number.isInteger((detail as Record<string, unknown>)['index'])
|
|
285
304
|
&& typeof (detail as Record<string, unknown>)['value'] === 'string'
|
|
286
|
-
&& Object.keys(detail as object).every((key) => ['index', 'value'].includes(key))
|
|
305
|
+
&& Object.keys(detail as object).every((key) => ['index', 'value'].includes(key)))
|
|
287
306
|
const dispatch = createDispatch(root, emit as (name: string, detail: unknown) => void, {
|
|
288
307
|
checks: {
|
|
289
308
|
highlight: isHighlightDetail,
|
|
@@ -294,6 +313,28 @@ const dispatch = createDispatch(root, emit as (name: string, detail: unknown) =>
|
|
|
294
313
|
useComponentHost(() => import('../components/ui-editor-slash-menu/ui-editor-slash-menu.js'), {
|
|
295
314
|
root,
|
|
296
315
|
dispatch,
|
|
316
|
+
acceptsState: (name: string, keys: readonly string[], value: unknown) =>
|
|
317
|
+
acceptsControllerWrite(
|
|
318
|
+
value,
|
|
319
|
+
({
|
|
320
|
+
visible: { kind: 'terminal', name: 'boolean' },
|
|
321
|
+
active: { kind: 'terminal', name: 'integer' },
|
|
322
|
+
rows: {
|
|
323
|
+
kind: 'list',
|
|
324
|
+
item: {
|
|
325
|
+
kind: 'object',
|
|
326
|
+
fields: [
|
|
327
|
+
{ name: 'value', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
328
|
+
{ name: 'title', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
329
|
+
{ name: 'description', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
330
|
+
{ name: 'icon', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
331
|
+
],
|
|
332
|
+
open: false,
|
|
333
|
+
},
|
|
334
|
+
},
|
|
335
|
+
} as Record<string, any>)[name],
|
|
336
|
+
keys,
|
|
337
|
+
),
|
|
297
338
|
controllerSource: {
|
|
298
339
|
specifier: '../components/ui-editor-slash-menu/ui-editor-slash-menu.js',
|
|
299
340
|
definition: './components/ui-editor-slash-menu/ui-editor-slash-menu.html',
|
|
@@ -347,7 +388,7 @@ useComponentHost(() => import('../components/ui-editor-slash-menu/ui-editor-slas
|
|
|
347
388
|
</li>
|
|
348
389
|
<slot />
|
|
349
390
|
</ul>
|
|
350
|
-
<div class="empty" ref="
|
|
391
|
+
<div class="empty" ref="emptyElement"><slot name="empty" /></div>
|
|
351
392
|
<div class="footer"><slot name="footer" /></div>
|
|
352
393
|
</div>
|
|
353
394
|
</template>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.29 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'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.29 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'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.29 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import {
|
|
4
4
|
computed,
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
} from 'vue'
|
|
12
12
|
import type { PropType, VNode } from 'vue'
|
|
13
13
|
import { createDispatch, useComponentHost } from './host'
|
|
14
|
+
import { acceptsControllerWrite } from './props'
|
|
14
15
|
import { checkedProp, propValidityState, vPropValidity } from './props'
|
|
15
16
|
import UiIcon from './UiIcon.vue'
|
|
16
17
|
|
|
@@ -379,8 +380,9 @@ if (
|
|
|
379
380
|
)
|
|
380
381
|
}
|
|
381
382
|
|
|
382
|
-
const isActionDetail = (
|
|
383
|
-
detail
|
|
383
|
+
const isActionDetail = (
|
|
384
|
+
detail: unknown,
|
|
385
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
384
386
|
&& ((detail as Record<string, unknown>)['action'] === 'align-left'
|
|
385
387
|
|| (detail as Record<string, unknown>)['action'] === 'align-center'
|
|
386
388
|
|| (detail as Record<string, unknown>)['action'] === 'align-right'
|
|
@@ -406,7 +408,7 @@ const isActionDetail = (detail: unknown): boolean =>
|
|
|
406
408
|
|| (detail as Record<string, unknown>)['action'] === 'delete-row'
|
|
407
409
|
|| (detail as Record<string, unknown>)['action'] === 'delete-column'
|
|
408
410
|
|| (detail as Record<string, unknown>)['action'] === 'delete-table')
|
|
409
|
-
&& Object.keys(detail as object).every((key) => ['action'].includes(key))
|
|
411
|
+
&& Object.keys(detail as object).every((key) => ['action'].includes(key)))
|
|
410
412
|
const dispatch = createDispatch(root, emit as (name: string, detail: unknown) => void, {
|
|
411
413
|
checks: {
|
|
412
414
|
action: isActionDetail,
|
|
@@ -418,6 +420,73 @@ useComponentHost(
|
|
|
418
420
|
{
|
|
419
421
|
root,
|
|
420
422
|
dispatch,
|
|
423
|
+
acceptsState: (name: string, keys: readonly string[], value: unknown) =>
|
|
424
|
+
acceptsControllerWrite(
|
|
425
|
+
value,
|
|
426
|
+
({
|
|
427
|
+
swatches: {
|
|
428
|
+
kind: 'list',
|
|
429
|
+
item: {
|
|
430
|
+
kind: 'object',
|
|
431
|
+
fields: [
|
|
432
|
+
{ name: 'action', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
433
|
+
{ name: 'label', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
434
|
+
{ name: 'color', type: { kind: 'terminal', name: 'string' }, optional: false },
|
|
435
|
+
{ name: 'selected', type: { kind: 'terminal', name: 'boolean' }, optional: false },
|
|
436
|
+
],
|
|
437
|
+
open: false,
|
|
438
|
+
},
|
|
439
|
+
},
|
|
440
|
+
sections: {
|
|
441
|
+
kind: 'list',
|
|
442
|
+
item: {
|
|
443
|
+
kind: 'object',
|
|
444
|
+
fields: [{
|
|
445
|
+
name: 'heading',
|
|
446
|
+
type: { kind: 'terminal', name: 'string' },
|
|
447
|
+
optional: false,
|
|
448
|
+
}, {
|
|
449
|
+
name: 'items',
|
|
450
|
+
type: {
|
|
451
|
+
kind: 'list',
|
|
452
|
+
item: {
|
|
453
|
+
kind: 'object',
|
|
454
|
+
fields: [{
|
|
455
|
+
name: 'action',
|
|
456
|
+
type: { kind: 'terminal', name: 'string' },
|
|
457
|
+
optional: false,
|
|
458
|
+
}, {
|
|
459
|
+
name: 'label',
|
|
460
|
+
type: { kind: 'terminal', name: 'string' },
|
|
461
|
+
optional: false,
|
|
462
|
+
}, {
|
|
463
|
+
name: 'icon',
|
|
464
|
+
type: { kind: 'terminal', name: 'string' },
|
|
465
|
+
optional: false,
|
|
466
|
+
}, {
|
|
467
|
+
name: 'danger',
|
|
468
|
+
type: { kind: 'terminal', name: 'boolean' },
|
|
469
|
+
optional: false,
|
|
470
|
+
}, {
|
|
471
|
+
name: 'checkable',
|
|
472
|
+
type: { kind: 'terminal', name: 'boolean' },
|
|
473
|
+
optional: false,
|
|
474
|
+
}, {
|
|
475
|
+
name: 'checked',
|
|
476
|
+
type: { kind: 'terminal', name: 'boolean' },
|
|
477
|
+
optional: false,
|
|
478
|
+
}],
|
|
479
|
+
open: false,
|
|
480
|
+
},
|
|
481
|
+
},
|
|
482
|
+
optional: false,
|
|
483
|
+
}],
|
|
484
|
+
open: false,
|
|
485
|
+
},
|
|
486
|
+
},
|
|
487
|
+
} as Record<string, any>)[name],
|
|
488
|
+
keys,
|
|
489
|
+
),
|
|
421
490
|
controllerSource: {
|
|
422
491
|
specifier: '../components/ui-editor-table-context-menu/ui-editor-table-context-menu.js',
|
|
423
492
|
definition: './components/ui-editor-table-context-menu/ui-editor-table-context-menu.html',
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
2
4
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
5
|
geometry: {
|
|
4
6
|
type: PropType<{
|
|
@@ -196,5 +198,3 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
196
198
|
} | null;
|
|
197
199
|
} | null;
|
|
198
200
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
199
|
-
declare const _default: typeof __VLS_export;
|
|
200
|
-
export default _default;
|