@threadlabs/looma 0.24.1 → 0.25.1
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/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 +37 -8
- package/components/ui-input-group/ui-input-group.js +8 -3
- 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 +46 -18
- 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 +36 -6
- 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 +43 -15
- 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 +2 -1
- package/vanilla/UiInputGroup.js +2 -2
- 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.d.ts +9 -0
- package/vue/UiInputGroup.vue +57 -8
- 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 +78 -17
- 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 +30 -4
- 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 +1447 -1360
- package/vue/host.ts +286 -42
package/vue/UiToastRegion.vue
CHANGED
|
@@ -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
|
import UiIconButton from './UiIconButton.vue'
|
|
@@ -24,7 +25,7 @@ const propValidityContract = {
|
|
|
24
25
|
required: false,
|
|
25
26
|
target: { attribute: 'duration' },
|
|
26
27
|
description:
|
|
27
|
-
'Default milliseconds for toasts added with show
|
|
28
|
+
'Default milliseconds for toasts added with the show-toast event or command; 0 keeps each until dismissed. Hover or focus pauses a timer.',
|
|
28
29
|
default: 0,
|
|
29
30
|
},
|
|
30
31
|
placement: {
|
|
@@ -130,6 +131,7 @@ function reflectedProp(
|
|
|
130
131
|
}
|
|
131
132
|
const hydrationInstance = getCurrentInstance()
|
|
132
133
|
const emit = defineEmits<{
|
|
134
|
+
'update:duration': [value: number]
|
|
133
135
|
dismiss: [
|
|
134
136
|
event: CustomEvent<
|
|
135
137
|
{
|
|
@@ -139,6 +141,16 @@ const emit = defineEmits<{
|
|
|
139
141
|
}
|
|
140
142
|
>,
|
|
141
143
|
]
|
|
144
|
+
'show-toast': [
|
|
145
|
+
event: CustomEvent<
|
|
146
|
+
{
|
|
147
|
+
readonly message: string
|
|
148
|
+
readonly id?: string
|
|
149
|
+
readonly tone?: 'neutral' | 'info' | 'success' | 'warning' | 'danger'
|
|
150
|
+
readonly duration?: number
|
|
151
|
+
}
|
|
152
|
+
>,
|
|
153
|
+
]
|
|
142
154
|
}>()
|
|
143
155
|
|
|
144
156
|
const root = ref<HTMLElement | null>(null)
|
|
@@ -178,63 +190,96 @@ const hostState = computed(() =>
|
|
|
178
190
|
].filter(Boolean).join(' ')
|
|
179
191
|
)
|
|
180
192
|
|
|
181
|
-
const isDismissDetail = (
|
|
182
|
-
detail
|
|
193
|
+
const isDismissDetail = (
|
|
194
|
+
detail: unknown,
|
|
195
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
183
196
|
&& typeof (detail as Record<string, unknown>)['id'] === 'string'
|
|
184
197
|
&& ((detail as Record<string, unknown>)['reason'] === 'action'
|
|
185
198
|
|| (detail as Record<string, unknown>)['reason'] === 'timeout')
|
|
186
199
|
&& ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
|
|
187
200
|
|| (detail as Record<string, unknown>)['trigger'] === 'pointer'
|
|
188
201
|
|| (detail as Record<string, unknown>)['trigger'] === 'programmatic')
|
|
189
|
-
&& Object.keys(detail as object).every((key) => ['id', 'reason', 'trigger'].includes(key))
|
|
202
|
+
&& Object.keys(detail as object).every((key) => ['id', 'reason', 'trigger'].includes(key)))
|
|
203
|
+
const isShowToastDetail = (
|
|
204
|
+
detail: unknown,
|
|
205
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
206
|
+
&& typeof (detail as Record<string, unknown>)['message'] === 'string'
|
|
207
|
+
&& ((detail as Record<string, unknown>)['id'] === undefined
|
|
208
|
+
|| typeof (detail as Record<string, unknown>)['id'] === 'string')
|
|
209
|
+
&& ((detail as Record<string, unknown>)['tone'] === undefined
|
|
210
|
+
|| ((detail as Record<string, unknown>)['tone'] === 'neutral'
|
|
211
|
+
|| (detail as Record<string, unknown>)['tone'] === 'info'
|
|
212
|
+
|| (detail as Record<string, unknown>)['tone'] === 'success'
|
|
213
|
+
|| (detail as Record<string, unknown>)['tone'] === 'warning'
|
|
214
|
+
|| (detail as Record<string, unknown>)['tone'] === 'danger'))
|
|
215
|
+
&& ((detail as Record<string, unknown>)['duration'] === undefined
|
|
216
|
+
|| (typeof (detail as Record<string, unknown>)['duration'] === 'number'
|
|
217
|
+
&& Number.isFinite((detail as Record<string, unknown>)['duration'])))
|
|
218
|
+
&& Object.keys(detail as object).every((key) =>
|
|
219
|
+
['message', 'id', 'tone', 'duration'].includes(key)
|
|
220
|
+
))
|
|
190
221
|
const dispatch = createDispatch(root, emit as (name: string, detail: unknown) => void, {
|
|
191
222
|
checks: {
|
|
192
223
|
dismiss: isDismissDetail,
|
|
224
|
+
'show-toast': isShowToastDetail,
|
|
193
225
|
},
|
|
226
|
+
modeled: ['duration'],
|
|
194
227
|
})
|
|
195
228
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
229
|
+
useComponentHost(() => import('../components/ui-toast-region/ui-toast-region.js'), {
|
|
230
|
+
root,
|
|
231
|
+
dispatch,
|
|
232
|
+
acceptsState: (name: string, keys: readonly string[], value: unknown) =>
|
|
233
|
+
acceptsControllerWrite(
|
|
234
|
+
value,
|
|
235
|
+
({
|
|
236
|
+
toasts: {
|
|
237
|
+
kind: 'list',
|
|
238
|
+
item: {
|
|
239
|
+
kind: 'object',
|
|
240
|
+
fields: [{ name: 'id', type: { kind: 'terminal', name: 'string' }, optional: false }, {
|
|
241
|
+
name: 'message',
|
|
242
|
+
type: { kind: 'terminal', name: 'string' },
|
|
243
|
+
optional: false,
|
|
244
|
+
}, {
|
|
245
|
+
name: 'tone',
|
|
246
|
+
type: {
|
|
247
|
+
kind: 'constrained',
|
|
248
|
+
base: { kind: 'terminal', name: 'keyword' },
|
|
249
|
+
values: ['neutral', 'info', 'success', 'warning', 'danger'],
|
|
250
|
+
},
|
|
251
|
+
optional: false,
|
|
252
|
+
}, {
|
|
253
|
+
name: 'role',
|
|
254
|
+
type: {
|
|
255
|
+
kind: 'constrained',
|
|
256
|
+
base: { kind: 'terminal', name: 'keyword' },
|
|
257
|
+
values: ['alert', 'status'],
|
|
258
|
+
},
|
|
259
|
+
optional: false,
|
|
260
|
+
}, { name: 'closing', type: { kind: 'terminal', name: 'boolean' }, optional: false }],
|
|
261
|
+
open: false,
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
} as Record<string, any>)[name],
|
|
265
|
+
keys,
|
|
266
|
+
),
|
|
267
|
+
controllerSource: {
|
|
268
|
+
specifier: '../components/ui-toast-region/ui-toast-region.js',
|
|
269
|
+
definition: './components/ui-toast-region/ui-toast-region.html',
|
|
217
270
|
},
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}
|
|
226
|
-
const method = Reflect.get(controllerModule, 'show')
|
|
227
|
-
if (typeof method !== 'function') {
|
|
228
|
-
throw Object.assign(new Error('HJ003: Controller does not export method `show`.'), {
|
|
229
|
-
name: 'HtmlDiagnosticError',
|
|
230
|
-
diagnostic: Object.freeze({
|
|
231
|
-
code: 'HJ003',
|
|
232
|
-
message: 'Controller does not export method `show`.',
|
|
233
|
-
}),
|
|
234
|
-
})
|
|
235
|
-
}
|
|
236
|
-
return method(host, ...args)
|
|
271
|
+
props: checkedProps,
|
|
272
|
+
propInputs: (name: string) => {
|
|
273
|
+
const incoming = hydrationInstance?.vnode.props
|
|
274
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
275
|
+
return incoming !== null && incoming !== undefined
|
|
276
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
277
|
+
: null
|
|
237
278
|
},
|
|
279
|
+
propNames: ['duration', 'placement'],
|
|
280
|
+
propValidity: (name: string) =>
|
|
281
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
282
|
+
state: { toasts },
|
|
238
283
|
})
|
|
239
284
|
|
|
240
285
|
function text(value: unknown): string {
|
package/vue/UiTooltip.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} & {
|
|
6
|
-
shortcut?: (props: typeof __VLS_3) => any;
|
|
7
|
-
};
|
|
8
|
-
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<{
|
|
9
5
|
for: {
|
|
10
6
|
type: PropType<string | null>;
|
|
11
7
|
default: string;
|
|
@@ -93,14 +89,15 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
93
89
|
open: boolean | null;
|
|
94
90
|
trigger: "hover" | "click" | "focus" | null;
|
|
95
91
|
for: string | null;
|
|
92
|
+
hideDelay: number | null;
|
|
96
93
|
inverse: boolean | null;
|
|
97
94
|
placement: "left" | "right" | "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end" | null;
|
|
98
|
-
hideDelay: number | null;
|
|
99
95
|
showDelay: number | null;
|
|
100
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
96
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
97
|
+
default?: (props: {}) => any;
|
|
98
|
+
} & {
|
|
99
|
+
shortcut?: (props: {}) => any;
|
|
100
|
+
}>;
|
|
104
101
|
type __VLS_WithSlots<T, S> = T & {
|
|
105
102
|
new (): {
|
|
106
103
|
$slots: S;
|
package/vue/UiTooltip.vue
CHANGED
|
@@ -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, 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 })
|
|
@@ -250,9 +262,13 @@ const root = ref<HTMLElement | null>(null)
|
|
|
250
262
|
const internalOpen = ref(false)
|
|
251
263
|
let guardedPrevious: any
|
|
252
264
|
const guarded = computed(() => {
|
|
253
|
-
if (
|
|
254
|
-
|
|
255
|
-
|
|
265
|
+
if (
|
|
266
|
+
!(htmlNextAuthoredCheck2(
|
|
267
|
+
internalOpen.value == null || typeof internalOpen.value === 'boolean',
|
|
268
|
+
'not internalOpen:internalOpen',
|
|
269
|
+
'./components/ui-tooltip/ui-tooltip.html: HR007: Reference internalOpen does not satisfy its declared type.',
|
|
270
|
+
))
|
|
271
|
+
) return guardedPrevious
|
|
256
272
|
return guardedPrevious = !internalOpen.value
|
|
257
273
|
})
|
|
258
274
|
provide('html-next:ui-tooltip:internalOpen', internalOpen)
|
|
@@ -280,8 +296,9 @@ const hostState = computed(() =>
|
|
|
280
296
|
].filter(Boolean).join(' ')
|
|
281
297
|
)
|
|
282
298
|
|
|
283
|
-
const isOpenDetail = (
|
|
284
|
-
detail
|
|
299
|
+
const isOpenDetail = (
|
|
300
|
+
detail: unknown,
|
|
301
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
285
302
|
&& typeof (detail as Record<string, unknown>)['open'] === 'boolean'
|
|
286
303
|
&& ((detail as Record<string, unknown>)['reason'] === 'action'
|
|
287
304
|
|| (detail as Record<string, unknown>)['reason'] === 'programmatic'
|
|
@@ -290,7 +307,7 @@ const isOpenDetail = (detail: unknown): boolean =>
|
|
|
290
307
|
&& ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
|
|
291
308
|
|| (detail as Record<string, unknown>)['trigger'] === 'pointer'
|
|
292
309
|
|| (detail as Record<string, unknown>)['trigger'] === 'programmatic')
|
|
293
|
-
&& Object.keys(detail as object).every((key) => ['open', 'reason', 'trigger'].includes(key))
|
|
310
|
+
&& Object.keys(detail as object).every((key) => ['open', 'reason', 'trigger'].includes(key)))
|
|
294
311
|
const dispatch = createDispatch(root, emit as (name: string, detail: unknown) => void, {
|
|
295
312
|
checks: {
|
|
296
313
|
open: isOpenDetail,
|
|
@@ -302,6 +319,12 @@ const dispatch = createDispatch(root, emit as (name: string, detail: unknown) =>
|
|
|
302
319
|
useComponentHost(() => import('../components/ui-tooltip/ui-tooltip.js'), {
|
|
303
320
|
root,
|
|
304
321
|
dispatch,
|
|
322
|
+
acceptsState: (name: string, keys: readonly string[], value: unknown) =>
|
|
323
|
+
acceptsControllerWrite(
|
|
324
|
+
value,
|
|
325
|
+
({ internalOpen: { kind: 'terminal', name: 'boolean' } } as Record<string, any>)[name],
|
|
326
|
+
keys,
|
|
327
|
+
),
|
|
305
328
|
controllerSource: {
|
|
306
329
|
specifier: '../components/ui-tooltip/ui-tooltip.js',
|
|
307
330
|
definition: './components/ui-tooltip/ui-tooltip.html',
|
package/vue/UiTopBar.vue
CHANGED
package/vue/UiTree.vue
CHANGED
|
@@ -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, ref, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -249,8 +249,9 @@ const hostState = computed(() =>
|
|
|
249
249
|
].filter(Boolean).join(' ')
|
|
250
250
|
)
|
|
251
251
|
|
|
252
|
-
const isReorderDetail = (
|
|
253
|
-
detail
|
|
252
|
+
const isReorderDetail = (
|
|
253
|
+
detail: unknown,
|
|
254
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
254
255
|
&& typeof (detail as Record<string, unknown>)['sourceId'] === 'string'
|
|
255
256
|
&& typeof (detail as Record<string, unknown>)['targetId'] === 'string'
|
|
256
257
|
&& ((detail as Record<string, unknown>)['position'] === 'before'
|
|
@@ -274,9 +275,10 @@ const isReorderDetail = (detail: unknown): boolean =>
|
|
|
274
275
|
'targetScope',
|
|
275
276
|
'trigger',
|
|
276
277
|
].includes(key)
|
|
277
|
-
)
|
|
278
|
-
const isReorderRejectedDetail = (
|
|
279
|
-
detail
|
|
278
|
+
))
|
|
279
|
+
const isReorderRejectedDetail = (
|
|
280
|
+
detail: unknown,
|
|
281
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
280
282
|
&& typeof (detail as Record<string, unknown>)['sourceId'] === 'string'
|
|
281
283
|
&& typeof (detail as Record<string, unknown>)['targetId'] === 'string'
|
|
282
284
|
&& ((detail as Record<string, unknown>)['position'] === 'before'
|
|
@@ -291,15 +293,17 @@ const isReorderRejectedDetail = (detail: unknown): boolean =>
|
|
|
291
293
|
&& Object.keys(detail as object).every((key) =>
|
|
292
294
|
['sourceId', 'targetId', 'position', 'reason', 'maxDepth', 'resultingDepth', 'trigger']
|
|
293
295
|
.includes(key)
|
|
294
|
-
)
|
|
295
|
-
const isActivateDetail = (
|
|
296
|
-
detail
|
|
296
|
+
))
|
|
297
|
+
const isActivateDetail = (
|
|
298
|
+
detail: unknown,
|
|
299
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
297
300
|
&& typeof (detail as Record<string, unknown>)['id'] === 'string'
|
|
298
301
|
&& ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
|
|
299
302
|
|| (detail as Record<string, unknown>)['trigger'] === 'pointer')
|
|
300
|
-
&& Object.keys(detail as object).every((key) => ['id', 'trigger'].includes(key))
|
|
301
|
-
const isSelectDetail = (
|
|
302
|
-
detail
|
|
303
|
+
&& Object.keys(detail as object).every((key) => ['id', 'trigger'].includes(key)))
|
|
304
|
+
const isSelectDetail = (
|
|
305
|
+
detail: unknown,
|
|
306
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
303
307
|
&& (Array.isArray((detail as Record<string, unknown>)['ids'])
|
|
304
308
|
&& ((detail as Record<string, unknown>)['ids'] as unknown[]).every((item: unknown) =>
|
|
305
309
|
typeof item === 'string'
|
|
@@ -307,7 +311,7 @@ const isSelectDetail = (detail: unknown): boolean =>
|
|
|
307
311
|
&& ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
|
|
308
312
|
|| (detail as Record<string, unknown>)['trigger'] === 'pointer'
|
|
309
313
|
|| (detail as Record<string, unknown>)['trigger'] === 'programmatic')
|
|
310
|
-
&& Object.keys(detail as object).every((key) => ['ids', 'trigger'].includes(key))
|
|
314
|
+
&& Object.keys(detail as object).every((key) => ['ids', 'trigger'].includes(key)))
|
|
311
315
|
const dispatch = createDispatch(root, emit as (name: string, detail: unknown) => void, {
|
|
312
316
|
checks: {
|
|
313
317
|
reorder: isReorderDetail,
|
package/vue/UiTreeItem.d.ts
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} & {
|
|
6
|
-
label?: (props: typeof __VLS_3) => any;
|
|
7
|
-
} & {
|
|
8
|
-
actions?: (props: typeof __VLS_11) => any;
|
|
9
|
-
} & {
|
|
10
|
-
default?: (props: typeof __VLS_13) => 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
|
accepts: {
|
|
14
6
|
type: PropType<string | null>;
|
|
15
7
|
default: string;
|
|
@@ -143,19 +135,24 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
143
135
|
selected: boolean | null;
|
|
144
136
|
disabled: boolean | null;
|
|
145
137
|
expanded: boolean | null;
|
|
146
|
-
container: boolean | null;
|
|
147
|
-
lazy: boolean | null;
|
|
148
|
-
sortable: boolean | null;
|
|
149
138
|
accepts: string | null;
|
|
139
|
+
container: boolean | null;
|
|
150
140
|
dragType: string | null;
|
|
151
141
|
dropDepth: number | null;
|
|
152
142
|
dropScope: string | null;
|
|
153
143
|
itemId: string | null;
|
|
144
|
+
lazy: boolean | null;
|
|
145
|
+
sortable: boolean | null;
|
|
154
146
|
subtreeDepth: number | null;
|
|
155
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
147
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
148
|
+
leading?: (props: {}) => any;
|
|
149
|
+
} & {
|
|
150
|
+
label?: (props: {}) => any;
|
|
151
|
+
} & {
|
|
152
|
+
actions?: (props: {}) => any;
|
|
153
|
+
} & {
|
|
154
|
+
default?: (props: {}) => any;
|
|
155
|
+
}>;
|
|
159
156
|
type __VLS_WithSlots<T, S> = T & {
|
|
160
157
|
new (): {
|
|
161
158
|
$slots: S;
|
package/vue/UiTreeItem.vue
CHANGED
|
@@ -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 UiButton from './UiButton.vue'
|
|
8
20
|
|
|
@@ -305,14 +317,14 @@ const emit = defineEmits<{
|
|
|
305
317
|
}>()
|
|
306
318
|
|
|
307
319
|
const root = ref<HTMLElement | null>(null)
|
|
308
|
-
const rowElement = useTemplateRef<HTMLElement>('
|
|
309
|
-
const dragHandleElement = useTemplateRef<HTMLElement>('
|
|
310
|
-
const disclosureElement = useTemplateRef<HTMLElement>('
|
|
311
|
-
const leadingElement = useTemplateRef<HTMLElement>('
|
|
312
|
-
const labelElement = useTemplateRef<HTMLElement>('
|
|
313
|
-
const labelTextElement = useTemplateRef<HTMLElement>('
|
|
314
|
-
const actionsElement = useTemplateRef<HTMLElement>('
|
|
315
|
-
const childrenElement = useTemplateRef<HTMLElement>('
|
|
320
|
+
const rowElement = useTemplateRef<HTMLElement>('rowElement')
|
|
321
|
+
const dragHandleElement = useTemplateRef<HTMLElement>('dragHandleElement')
|
|
322
|
+
const disclosureElement = useTemplateRef<HTMLElement>('disclosureElement')
|
|
323
|
+
const leadingElement = useTemplateRef<HTMLElement>('leadingElement')
|
|
324
|
+
const labelElement = useTemplateRef<HTMLElement>('labelElement')
|
|
325
|
+
const labelTextElement = useTemplateRef<HTMLElement>('labelTextElement')
|
|
326
|
+
const actionsElement = useTemplateRef<HTMLElement>('actionsElement')
|
|
327
|
+
const childrenElement = useTemplateRef<HTMLElement>('childrenElement')
|
|
316
328
|
const internalExpanded = ref(false)
|
|
317
329
|
const structuralLevel = ref(1)
|
|
318
330
|
const tabStop = ref(false)
|
|
@@ -320,14 +332,24 @@ const isContainer = ref(false)
|
|
|
320
332
|
const moving = ref(false)
|
|
321
333
|
let guardedPrevious: any
|
|
322
334
|
const guarded = computed(() => {
|
|
323
|
-
if (
|
|
324
|
-
|
|
325
|
-
|
|
335
|
+
if (
|
|
336
|
+
!(htmlNextAuthoredCheck2(
|
|
337
|
+
structuralLevel.value == null || Number.isInteger(structuralLevel.value),
|
|
338
|
+
'structuralLevel:structuralLevel',
|
|
339
|
+
'./components/ui-tree-item/ui-tree-item.html: HR007: Reference structuralLevel does not satisfy its declared type.',
|
|
340
|
+
))
|
|
341
|
+
) return guardedPrevious
|
|
326
342
|
return guardedPrevious = structuralLevel.value
|
|
327
343
|
})
|
|
328
344
|
let guardedBindingPrevious: any = null
|
|
329
345
|
const guardedBinding = computed(() => {
|
|
330
|
-
if (
|
|
346
|
+
if (
|
|
347
|
+
!(htmlNextAuthoredCheck2(
|
|
348
|
+
moving.value == null || typeof moving.value === 'boolean',
|
|
349
|
+
'{ true: concat(\'Cancel moving \', label), false: concat(\'Drag \', label, \' to reorder\') }[concat(moving)]:moving',
|
|
350
|
+
'./components/ui-tree-item/ui-tree-item.html: HR007: Reference moving does not satisfy its declared type.',
|
|
351
|
+
))
|
|
352
|
+
) return guardedBindingPrevious
|
|
331
353
|
const candidate: any = ((objectValue: any, indexValue: any) =>
|
|
332
354
|
objectValue === Symbol.for('html-next.invalid-result')
|
|
333
355
|
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
@@ -406,9 +428,13 @@ const guardedBinding = computed(() => {
|
|
|
406
428
|
})
|
|
407
429
|
let guardedBinding2Previous: any
|
|
408
430
|
const guardedBinding2 = computed(() => {
|
|
409
|
-
if (
|
|
410
|
-
|
|
411
|
-
|
|
431
|
+
if (
|
|
432
|
+
!(htmlNextAuthoredCheck2(
|
|
433
|
+
isContainer.value == null || typeof isContainer.value === 'boolean',
|
|
434
|
+
'not isContainer:isContainer',
|
|
435
|
+
'./components/ui-tree-item/ui-tree-item.html: HR007: Reference isContainer does not satisfy its declared type.',
|
|
436
|
+
))
|
|
437
|
+
) return guardedBinding2Previous
|
|
412
438
|
return guardedBinding2Previous = !isContainer.value
|
|
413
439
|
})
|
|
414
440
|
let guardedBinding3Previous: any = null
|
|
@@ -420,8 +446,16 @@ const guardedBinding3 = computed(() => {
|
|
|
420
446
|
let guardedBinding4Previous: any
|
|
421
447
|
const guardedBinding4 = computed(() => {
|
|
422
448
|
if (
|
|
423
|
-
!((
|
|
424
|
-
|
|
449
|
+
!(htmlNextAuthoredCheck2(
|
|
450
|
+
internalExpanded.value == null || typeof internalExpanded.value === 'boolean',
|
|
451
|
+
'not (isContainer and internalExpanded):internalExpanded',
|
|
452
|
+
'./components/ui-tree-item/ui-tree-item.html: HR007: Reference internalExpanded does not satisfy its declared type.',
|
|
453
|
+
)
|
|
454
|
+
&& htmlNextAuthoredCheck2(
|
|
455
|
+
isContainer.value == null || typeof isContainer.value === 'boolean',
|
|
456
|
+
'not (isContainer and internalExpanded):isContainer',
|
|
457
|
+
'./components/ui-tree-item/ui-tree-item.html: HR007: Reference isContainer does not satisfy its declared type.',
|
|
458
|
+
))
|
|
425
459
|
) return guardedBinding4Previous
|
|
426
460
|
return guardedBinding4Previous = !(isContainer.value && internalExpanded.value)
|
|
427
461
|
})
|
|
@@ -456,14 +490,15 @@ const hostState = computed(() =>
|
|
|
456
490
|
].filter(Boolean).join(' ')
|
|
457
491
|
)
|
|
458
492
|
|
|
459
|
-
const isExpandDetail = (
|
|
460
|
-
detail
|
|
493
|
+
const isExpandDetail = (
|
|
494
|
+
detail: unknown,
|
|
495
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
461
496
|
&& typeof (detail as Record<string, unknown>)['id'] === 'string'
|
|
462
497
|
&& typeof (detail as Record<string, unknown>)['expanded'] === 'boolean'
|
|
463
498
|
&& ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
|
|
464
499
|
|| (detail as Record<string, unknown>)['trigger'] === 'pointer'
|
|
465
500
|
|| (detail as Record<string, unknown>)['trigger'] === 'programmatic')
|
|
466
|
-
&& Object.keys(detail as object).every((key) => ['id', 'expanded', 'trigger'].includes(key))
|
|
501
|
+
&& Object.keys(detail as object).every((key) => ['id', 'expanded', 'trigger'].includes(key)))
|
|
467
502
|
const dispatch = createDispatch(root, emit as (name: string, detail: unknown) => void, {
|
|
468
503
|
declared: { expand: { bubbles: false, composed: true, cancelable: false } },
|
|
469
504
|
checks: {
|
|
@@ -475,6 +510,18 @@ const dispatch = createDispatch(root, emit as (name: string, detail: unknown) =>
|
|
|
475
510
|
useComponentHost(() => import('../components/ui-tree-item/ui-tree-item.js'), {
|
|
476
511
|
root,
|
|
477
512
|
dispatch,
|
|
513
|
+
acceptsState: (name: string, keys: readonly string[], value: unknown) =>
|
|
514
|
+
acceptsControllerWrite(
|
|
515
|
+
value,
|
|
516
|
+
({
|
|
517
|
+
internalExpanded: { kind: 'terminal', name: 'boolean' },
|
|
518
|
+
structuralLevel: { kind: 'terminal', name: 'integer' },
|
|
519
|
+
tabStop: { kind: 'terminal', name: 'boolean' },
|
|
520
|
+
isContainer: { kind: 'terminal', name: 'boolean' },
|
|
521
|
+
moving: { kind: 'terminal', name: 'boolean' },
|
|
522
|
+
} as Record<string, any>)[name],
|
|
523
|
+
keys,
|
|
524
|
+
),
|
|
478
525
|
controllerSource: {
|
|
479
526
|
specifier: '../components/ui-tree-item/ui-tree-item.js',
|
|
480
527
|
definition: './components/ui-tree-item/ui-tree-item.html',
|
|
@@ -577,14 +624,14 @@ function concat<T extends unknown[]>(...values: T): ConcatResult<T> {
|
|
|
577
624
|
:data-ui-tree-item-state="hostState || undefined"
|
|
578
625
|
ref="root"
|
|
579
626
|
>
|
|
580
|
-
<div class="row" ref="
|
|
627
|
+
<div class="row" ref="rowElement">
|
|
581
628
|
<button
|
|
582
629
|
v-if="checkedProps.sortable && !checkedProps.disabled"
|
|
583
630
|
class="drag-handle"
|
|
584
631
|
type="button"
|
|
585
632
|
draggable="true"
|
|
586
633
|
:aria-label="guardedBinding"
|
|
587
|
-
ref="
|
|
634
|
+
ref="dragHandleElement"
|
|
588
635
|
>
|
|
589
636
|
<svg
|
|
590
637
|
aria-hidden="true"
|
|
@@ -609,7 +656,7 @@ function concat<T extends unknown[]>(...values: T): ConcatResult<T> {
|
|
|
609
656
|
type="button"
|
|
610
657
|
:disabled="checkedProps.disabled ?? undefined"
|
|
611
658
|
:hidden="guardedBinding2"
|
|
612
|
-
ref="
|
|
659
|
+
ref="disclosureElement"
|
|
613
660
|
>
|
|
614
661
|
<span class="disclosure-icon" aria-hidden="true"></span>
|
|
615
662
|
</button>
|
|
@@ -621,11 +668,11 @@ function concat<T extends unknown[]>(...values: T): ConcatResult<T> {
|
|
|
621
668
|
:disabled="checkedProps.disabled ?? undefined"
|
|
622
669
|
:aria-label="guardedBinding3"
|
|
623
670
|
></label>
|
|
624
|
-
<span class="leading" ref="
|
|
625
|
-
<span class="label" ref="
|
|
626
|
-
|
|
627
|
-
}}</slot></span></span>
|
|
628
|
-
<span class="actions" ref="
|
|
671
|
+
<span class="leading" ref="leadingElement"><slot name="leading" /></span>
|
|
672
|
+
<span class="label" ref="labelElement"><span class="label-text" ref="labelTextElement"><slot
|
|
673
|
+
name="label"
|
|
674
|
+
>{{ checkedProps.label }}</slot></span></span>
|
|
675
|
+
<span class="actions" ref="actionsElement"><UiButton
|
|
629
676
|
v-if="moving"
|
|
630
677
|
data-tree-cancel-move=""
|
|
631
678
|
variant="ghost"
|
|
@@ -636,7 +683,9 @@ function concat<T extends unknown[]>(...values: T): ConcatResult<T> {
|
|
|
636
683
|
<span><slot name="actions" /></span></span>
|
|
637
684
|
<span class="drop-indicator row-drop-indicator" aria-hidden="true"></span>
|
|
638
685
|
</div>
|
|
639
|
-
<div class="children" role="group" :hidden="guardedBinding4" ref="
|
|
686
|
+
<div class="children" role="group" :hidden="guardedBinding4" ref="childrenElement">
|
|
687
|
+
<slot />
|
|
688
|
+
</div>
|
|
640
689
|
<span class="drop-indicator subtree-drop-indicator" aria-hidden="true"></span>
|
|
641
690
|
</div>
|
|
642
691
|
</template>
|