@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
package/vue/UiContainer.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, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
package/vue/UiContextMenu.vue
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
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, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
5
5
|
import { createDispatch, useComponentHost } from './host'
|
|
6
|
+
import { acceptsControllerWrite } from './props'
|
|
6
7
|
import { checkedProp, propValidityState, vPropValidity } from './props'
|
|
7
8
|
|
|
8
9
|
defineOptions({ inheritAttrs: false })
|
|
@@ -116,7 +117,7 @@ const emit = defineEmits<{
|
|
|
116
117
|
}>()
|
|
117
118
|
|
|
118
119
|
const root = ref<HTMLElement | null>(null)
|
|
119
|
-
const menuElement = useTemplateRef<HTMLElement>('
|
|
120
|
+
const menuElement = useTemplateRef<HTMLElement>('menuElement')
|
|
120
121
|
const internalOpen = ref(false)
|
|
121
122
|
provide('html-next:ui-context-menu:internalOpen', internalOpen)
|
|
122
123
|
const hydrationNode = hydrationInstance?.vnode.el
|
|
@@ -136,8 +137,9 @@ if (
|
|
|
136
137
|
)
|
|
137
138
|
}
|
|
138
139
|
|
|
139
|
-
const isOpenDetail = (
|
|
140
|
-
detail
|
|
140
|
+
const isOpenDetail = (
|
|
141
|
+
detail: unknown,
|
|
142
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
141
143
|
&& typeof (detail as Record<string, unknown>)['open'] === 'boolean'
|
|
142
144
|
&& ((detail as Record<string, unknown>)['reason'] === 'action'
|
|
143
145
|
|| (detail as Record<string, unknown>)['reason'] === 'programmatic'
|
|
@@ -146,16 +148,17 @@ const isOpenDetail = (detail: unknown): boolean =>
|
|
|
146
148
|
&& ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
|
|
147
149
|
|| (detail as Record<string, unknown>)['trigger'] === 'pointer'
|
|
148
150
|
|| (detail as Record<string, unknown>)['trigger'] === 'programmatic')
|
|
149
|
-
&& Object.keys(detail as object).every((key) => ['open', 'reason', 'trigger'].includes(key))
|
|
150
|
-
const isSelectDetail = (
|
|
151
|
-
detail
|
|
151
|
+
&& Object.keys(detail as object).every((key) => ['open', 'reason', 'trigger'].includes(key)))
|
|
152
|
+
const isSelectDetail = (
|
|
153
|
+
detail: unknown,
|
|
154
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
152
155
|
&& typeof (detail as Record<string, unknown>)['value'] === 'string'
|
|
153
156
|
&& ((detail as Record<string, unknown>)['checked'] === undefined
|
|
154
157
|
|| typeof (detail as Record<string, unknown>)['checked'] === 'boolean')
|
|
155
158
|
&& ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
|
|
156
159
|
|| (detail as Record<string, unknown>)['trigger'] === 'pointer'
|
|
157
160
|
|| (detail as Record<string, unknown>)['trigger'] === 'programmatic')
|
|
158
|
-
&& Object.keys(detail as object).every((key) => ['value', 'checked', 'trigger'].includes(key))
|
|
161
|
+
&& Object.keys(detail as object).every((key) => ['value', 'checked', 'trigger'].includes(key)))
|
|
159
162
|
const dispatch = createDispatch(root, emit as (name: string, detail: unknown) => void, {
|
|
160
163
|
checks: {
|
|
161
164
|
open: isOpenDetail,
|
|
@@ -168,6 +171,12 @@ const dispatch = createDispatch(root, emit as (name: string, detail: unknown) =>
|
|
|
168
171
|
useComponentHost(() => import('../components/ui-context-menu/ui-context-menu.js'), {
|
|
169
172
|
root,
|
|
170
173
|
dispatch,
|
|
174
|
+
acceptsState: (name: string, keys: readonly string[], value: unknown) =>
|
|
175
|
+
acceptsControllerWrite(
|
|
176
|
+
value,
|
|
177
|
+
({ internalOpen: { kind: 'terminal', name: 'boolean' } } as Record<string, any>)[name],
|
|
178
|
+
keys,
|
|
179
|
+
),
|
|
171
180
|
controllerSource: {
|
|
172
181
|
specifier: '../components/ui-context-menu/ui-context-menu.js',
|
|
173
182
|
definition: './components/ui-context-menu/ui-context-menu.html',
|
|
@@ -196,7 +205,7 @@ useComponentHost(() => import('../components/ui-context-menu/ui-context-menu.js'
|
|
|
196
205
|
:data-for="reflectedProp('for', 'for', checkedProps.for, undefined, false)"
|
|
197
206
|
:data-open="reflectedProp('open', 'open', checkedProps.open, undefined, false)"
|
|
198
207
|
ref="root"
|
|
199
|
-
><div class="menu" role="menu" aria-orientation="vertical" ref="
|
|
208
|
+
><div class="menu" role="menu" aria-orientation="vertical" ref="menuElement"><slot /></div></span>
|
|
200
209
|
</template>
|
|
201
210
|
|
|
202
211
|
<style scoped>
|
package/vue/UiCover.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, 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 { computed, getCurrentInstance, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
package/vue/UiDialog.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} & {
|
|
6
|
-
actions?: (props: typeof __VLS_9) => 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
|
alert: {
|
|
10
6
|
type: PropType<boolean | null>;
|
|
11
7
|
default: boolean;
|
|
@@ -104,10 +100,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
104
100
|
closedby: "none" | "any" | "closerequest" | null;
|
|
105
101
|
modal: boolean | null;
|
|
106
102
|
modeless: boolean | null;
|
|
107
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
103
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
104
|
+
default?: (props: {}) => any;
|
|
105
|
+
} & {
|
|
106
|
+
actions?: (props: {}) => any;
|
|
107
|
+
}>;
|
|
111
108
|
type __VLS_WithSlots<T, S> = T & {
|
|
112
109
|
new (): {
|
|
113
110
|
$slots: S;
|
package/vue/UiDialog.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 UiScrollArea from './UiScrollArea.vue'
|
|
8
20
|
|
|
@@ -216,14 +228,18 @@ const emit = defineEmits<{
|
|
|
216
228
|
}>()
|
|
217
229
|
|
|
218
230
|
const root = ref<HTMLElement | null>(null)
|
|
219
|
-
const closeElement = useTemplateRef<HTMLElement>('
|
|
231
|
+
const closeElement = useTemplateRef<HTMLElement>('closeElement')
|
|
220
232
|
const internalOpen = ref(false)
|
|
221
233
|
const accessibleLabel = ref('Dialog')
|
|
222
234
|
let guardedPrevious: any
|
|
223
235
|
const guarded = computed(() => {
|
|
224
|
-
if (
|
|
225
|
-
|
|
226
|
-
|
|
236
|
+
if (
|
|
237
|
+
!(htmlNextAuthoredCheck2(
|
|
238
|
+
accessibleLabel.value == null || typeof accessibleLabel.value === 'string',
|
|
239
|
+
'accessibleLabel:accessibleLabel',
|
|
240
|
+
'./components/ui-dialog/ui-dialog.html: HR007: Reference accessibleLabel does not satisfy its declared type.',
|
|
241
|
+
))
|
|
242
|
+
) return guardedPrevious
|
|
227
243
|
return guardedPrevious = accessibleLabel.value
|
|
228
244
|
})
|
|
229
245
|
provide('html-next:ui-dialog:internalOpen', internalOpen)
|
|
@@ -251,17 +267,19 @@ const hostState = computed(() =>
|
|
|
251
267
|
].filter(Boolean).join(' ')
|
|
252
268
|
)
|
|
253
269
|
|
|
254
|
-
const isOpenDetail = (
|
|
255
|
-
detail
|
|
270
|
+
const isOpenDetail = (
|
|
271
|
+
detail: unknown,
|
|
272
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
256
273
|
&& typeof (detail as Record<string, unknown>)['open'] === 'boolean'
|
|
257
274
|
&& ((detail as Record<string, unknown>)['reason'] === 'action'
|
|
258
275
|
|| (detail as Record<string, unknown>)['reason'] === 'programmatic')
|
|
259
276
|
&& ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
|
|
260
277
|
|| (detail as Record<string, unknown>)['trigger'] === 'pointer'
|
|
261
278
|
|| (detail as Record<string, unknown>)['trigger'] === 'programmatic')
|
|
262
|
-
&& Object.keys(detail as object).every((key) => ['open', 'reason', 'trigger'].includes(key))
|
|
263
|
-
const isCloseDetail = (
|
|
264
|
-
detail
|
|
279
|
+
&& Object.keys(detail as object).every((key) => ['open', 'reason', 'trigger'].includes(key)))
|
|
280
|
+
const isCloseDetail = (
|
|
281
|
+
detail: unknown,
|
|
282
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
265
283
|
&& typeof (detail as Record<string, unknown>)['open'] === 'boolean'
|
|
266
284
|
&& ((detail as Record<string, unknown>)['reason'] === 'action'
|
|
267
285
|
|| (detail as Record<string, unknown>)['reason'] === 'programmatic'
|
|
@@ -270,7 +288,7 @@ const isCloseDetail = (detail: unknown): boolean =>
|
|
|
270
288
|
&& ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
|
|
271
289
|
|| (detail as Record<string, unknown>)['trigger'] === 'pointer'
|
|
272
290
|
|| (detail as Record<string, unknown>)['trigger'] === 'programmatic')
|
|
273
|
-
&& Object.keys(detail as object).every((key) => ['open', 'reason', 'trigger'].includes(key))
|
|
291
|
+
&& Object.keys(detail as object).every((key) => ['open', 'reason', 'trigger'].includes(key)))
|
|
274
292
|
const dispatch = createDispatch(root, emit as (name: string, detail: unknown) => void, {
|
|
275
293
|
checks: {
|
|
276
294
|
open: isOpenDetail,
|
|
@@ -282,6 +300,15 @@ const dispatch = createDispatch(root, emit as (name: string, detail: unknown) =>
|
|
|
282
300
|
useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
|
|
283
301
|
root,
|
|
284
302
|
dispatch,
|
|
303
|
+
acceptsState: (name: string, keys: readonly string[], value: unknown) =>
|
|
304
|
+
acceptsControllerWrite(
|
|
305
|
+
value,
|
|
306
|
+
({
|
|
307
|
+
internalOpen: { kind: 'terminal', name: 'boolean' },
|
|
308
|
+
accessibleLabel: { kind: 'terminal', name: 'string' },
|
|
309
|
+
} as Record<string, any>)[name],
|
|
310
|
+
keys,
|
|
311
|
+
),
|
|
285
312
|
controllerSource: {
|
|
286
313
|
specifier: '../components/ui-dialog/ui-dialog.js',
|
|
287
314
|
definition: './components/ui-dialog/ui-dialog.html',
|
|
@@ -321,7 +348,7 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
|
|
|
321
348
|
>
|
|
322
349
|
<header>
|
|
323
350
|
<h2 v-if="checkedProps.label" class="title">{{ checkedProps.label }}</h2>
|
|
324
|
-
<button class="close" type="button" aria-label="Close" ref="
|
|
351
|
+
<button class="close" type="button" aria-label="Close" ref="closeElement"></button>
|
|
325
352
|
</header>
|
|
326
353
|
<UiScrollArea class="body"><slot /></UiScrollArea>
|
|
327
354
|
<footer><slot name="actions" /></footer>
|
package/vue/UiDisclosure.d.ts
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} & {
|
|
6
|
-
summary?: (props: typeof __VLS_3) => any;
|
|
7
|
-
} & {
|
|
8
|
-
indicator?: (props: typeof __VLS_5) => any;
|
|
9
|
-
} & {
|
|
10
|
-
default?: (props: typeof __VLS_7) => 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
|
density: {
|
|
14
6
|
type: PropType<"comfortable" | "compact" | null>;
|
|
15
7
|
default: string;
|
|
@@ -117,10 +109,15 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
117
109
|
density: "comfortable" | "compact" | null;
|
|
118
110
|
headingLevel: number | null;
|
|
119
111
|
requiredOpen: boolean | null;
|
|
120
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
112
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
113
|
+
leading?: (props: {}) => any;
|
|
114
|
+
} & {
|
|
115
|
+
summary?: (props: {}) => any;
|
|
116
|
+
} & {
|
|
117
|
+
indicator?: (props: {}) => any;
|
|
118
|
+
} & {
|
|
119
|
+
default?: (props: {}) => any;
|
|
120
|
+
}>;
|
|
124
121
|
type __VLS_WithSlots<T, S> = T & {
|
|
125
122
|
new (): {
|
|
126
123
|
$slots: S;
|
package/vue/UiDisclosure.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
|
|
|
8
20
|
defineOptions({ inheritAttrs: false })
|
|
@@ -234,44 +246,66 @@ const emit = defineEmits<{
|
|
|
234
246
|
}>()
|
|
235
247
|
|
|
236
248
|
const root = ref<HTMLElement | null>(null)
|
|
237
|
-
const headingElement = useTemplateRef<HTMLElement>('
|
|
238
|
-
const triggerElement = useTemplateRef<HTMLElement>('
|
|
239
|
-
const panelElement = useTemplateRef<HTMLElement>('
|
|
249
|
+
const headingElement = useTemplateRef<HTMLElement>('headingElement')
|
|
250
|
+
const triggerElement = useTemplateRef<HTMLElement>('triggerElement')
|
|
251
|
+
const panelElement = useTemplateRef<HTMLElement>('panelElement')
|
|
240
252
|
const internalOpen = ref(false)
|
|
241
253
|
const contentId = ref('')
|
|
242
254
|
const headingRole = ref<string | null>(null)
|
|
243
255
|
const headingAriaLevel = ref<number | null>(null)
|
|
244
256
|
let guardedPrevious: any
|
|
245
257
|
const guarded = computed(() => {
|
|
246
|
-
if (
|
|
258
|
+
if (
|
|
259
|
+
!(htmlNextAuthoredCheck2(
|
|
260
|
+
headingRole.value == null || true,
|
|
261
|
+
'headingRole:headingRole',
|
|
262
|
+
'./components/ui-disclosure/ui-disclosure.html: HR007: Reference headingRole does not satisfy its declared type.',
|
|
263
|
+
))
|
|
264
|
+
) return guardedPrevious
|
|
247
265
|
return guardedPrevious = headingRole.value ?? undefined
|
|
248
266
|
})
|
|
249
267
|
let guardedBindingPrevious: any
|
|
250
268
|
const guardedBinding = computed(() => {
|
|
251
|
-
if (
|
|
252
|
-
|
|
253
|
-
|
|
269
|
+
if (
|
|
270
|
+
!(htmlNextAuthoredCheck2(
|
|
271
|
+
headingAriaLevel.value == null || Number.isInteger(headingAriaLevel.value),
|
|
272
|
+
'headingAriaLevel:headingAriaLevel',
|
|
273
|
+
'./components/ui-disclosure/ui-disclosure.html: HR007: Reference headingAriaLevel does not satisfy its declared type.',
|
|
274
|
+
))
|
|
275
|
+
) return guardedBindingPrevious
|
|
254
276
|
return guardedBindingPrevious = headingAriaLevel.value ?? undefined
|
|
255
277
|
})
|
|
256
278
|
let guardedBinding2Previous: any
|
|
257
279
|
const guardedBinding2 = computed(() => {
|
|
258
|
-
if (
|
|
259
|
-
|
|
260
|
-
|
|
280
|
+
if (
|
|
281
|
+
!(htmlNextAuthoredCheck2(
|
|
282
|
+
contentId.value == null || typeof contentId.value === 'string',
|
|
283
|
+
'contentId:contentId',
|
|
284
|
+
'./components/ui-disclosure/ui-disclosure.html: HR007: Reference contentId does not satisfy its declared type.',
|
|
285
|
+
))
|
|
286
|
+
) return guardedBinding2Previous
|
|
261
287
|
return guardedBinding2Previous = contentId.value
|
|
262
288
|
})
|
|
263
289
|
let guardedBinding3Previous: any
|
|
264
290
|
const guardedBinding3 = computed(() => {
|
|
265
|
-
if (
|
|
266
|
-
|
|
267
|
-
|
|
291
|
+
if (
|
|
292
|
+
!(htmlNextAuthoredCheck2(
|
|
293
|
+
internalOpen.value == null || typeof internalOpen.value === 'boolean',
|
|
294
|
+
'internalOpen:internalOpen',
|
|
295
|
+
'./components/ui-disclosure/ui-disclosure.html: HR007: Reference internalOpen does not satisfy its declared type.',
|
|
296
|
+
))
|
|
297
|
+
) return guardedBinding3Previous
|
|
268
298
|
return guardedBinding3Previous = internalOpen.value
|
|
269
299
|
})
|
|
270
300
|
let guardedBinding4Previous: any
|
|
271
301
|
const guardedBinding4 = computed(() => {
|
|
272
|
-
if (
|
|
273
|
-
|
|
274
|
-
|
|
302
|
+
if (
|
|
303
|
+
!(htmlNextAuthoredCheck2(
|
|
304
|
+
contentId.value == null || typeof contentId.value === 'string',
|
|
305
|
+
'contentId:contentId',
|
|
306
|
+
'./components/ui-disclosure/ui-disclosure.html: HR007: Reference contentId does not satisfy its declared type.',
|
|
307
|
+
))
|
|
308
|
+
) return guardedBinding4Previous
|
|
275
309
|
return guardedBinding4Previous = contentId.value
|
|
276
310
|
})
|
|
277
311
|
provide('html-next:ui-disclosure:internalOpen', internalOpen)
|
|
@@ -309,8 +343,9 @@ const hostState = computed(() =>
|
|
|
309
343
|
].filter(Boolean).join(' ')
|
|
310
344
|
)
|
|
311
345
|
|
|
312
|
-
const isOpenDetail = (
|
|
313
|
-
detail
|
|
346
|
+
const isOpenDetail = (
|
|
347
|
+
detail: unknown,
|
|
348
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
314
349
|
&& typeof (detail as Record<string, unknown>)['open'] === 'boolean'
|
|
315
350
|
&& ((detail as Record<string, unknown>)['reason'] === 'action'
|
|
316
351
|
|| (detail as Record<string, unknown>)['reason'] === 'programmatic'
|
|
@@ -319,7 +354,7 @@ const isOpenDetail = (detail: unknown): boolean =>
|
|
|
319
354
|
&& ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
|
|
320
355
|
|| (detail as Record<string, unknown>)['trigger'] === 'pointer'
|
|
321
356
|
|| (detail as Record<string, unknown>)['trigger'] === 'programmatic')
|
|
322
|
-
&& Object.keys(detail as object).every((key) => ['open', 'reason', 'trigger'].includes(key))
|
|
357
|
+
&& Object.keys(detail as object).every((key) => ['open', 'reason', 'trigger'].includes(key)))
|
|
323
358
|
const dispatch = createDispatch(root, emit as (name: string, detail: unknown) => void, {
|
|
324
359
|
checks: {
|
|
325
360
|
open: isOpenDetail,
|
|
@@ -331,6 +366,17 @@ const dispatch = createDispatch(root, emit as (name: string, detail: unknown) =>
|
|
|
331
366
|
useComponentHost(() => import('../components/ui-disclosure/ui-disclosure.js'), {
|
|
332
367
|
root,
|
|
333
368
|
dispatch,
|
|
369
|
+
acceptsState: (name: string, keys: readonly string[], value: unknown) =>
|
|
370
|
+
acceptsControllerWrite(
|
|
371
|
+
value,
|
|
372
|
+
({
|
|
373
|
+
internalOpen: { kind: 'terminal', name: 'boolean' },
|
|
374
|
+
contentId: { kind: 'terminal', name: 'string' },
|
|
375
|
+
headingRole: { kind: 'terminal', name: 'keyword' },
|
|
376
|
+
headingAriaLevel: { kind: 'terminal', name: 'integer' },
|
|
377
|
+
} as Record<string, any>)[name],
|
|
378
|
+
keys,
|
|
379
|
+
),
|
|
334
380
|
controllerSource: {
|
|
335
381
|
specifier: '../components/ui-disclosure/ui-disclosure.js',
|
|
336
382
|
definition: './components/ui-disclosure/ui-disclosure.html',
|
|
@@ -378,14 +424,14 @@ useComponentHost(() => import('../components/ui-disclosure/ui-disclosure.js'), {
|
|
|
378
424
|
:data-ui-disclosure-state="hostState || undefined"
|
|
379
425
|
ref="root"
|
|
380
426
|
>
|
|
381
|
-
<div class="heading" :role="guarded" :aria-level="guardedBinding" ref="
|
|
427
|
+
<div class="heading" :role="guarded" :aria-level="guardedBinding" ref="headingElement">
|
|
382
428
|
<button
|
|
383
429
|
class="trigger"
|
|
384
430
|
type="button"
|
|
385
431
|
:aria-controls="guardedBinding2"
|
|
386
432
|
:aria-expanded="guardedBinding3"
|
|
387
433
|
:disabled="checkedProps.disabled ?? undefined"
|
|
388
|
-
ref="
|
|
434
|
+
ref="triggerElement"
|
|
389
435
|
>
|
|
390
436
|
<span class="leading"><slot name="leading" /></span>
|
|
391
437
|
<span class="summary"><slot name="summary">{{ checkedProps.summary }}</slot></span>
|
|
@@ -394,7 +440,7 @@ useComponentHost(() => import('../components/ui-disclosure/ui-disclosure.js'), {
|
|
|
394
440
|
></span></slot></span>
|
|
395
441
|
</button>
|
|
396
442
|
</div>
|
|
397
|
-
<div class="panel" :id="guardedBinding4" ref="
|
|
443
|
+
<div class="panel" :id="guardedBinding4" ref="panelElement">
|
|
398
444
|
<div class="panel-inner"><slot /></div>
|
|
399
445
|
</div>
|
|
400
446
|
</div>
|
|
@@ -539,7 +585,7 @@ useComponentHost(() => import('../components/ui-disclosure/ui-disclosure.js'), {
|
|
|
539
585
|
border-block-end: 0;
|
|
540
586
|
border-block-start: var(--ui-border-width) solid var(--ui-border-divider);
|
|
541
587
|
}
|
|
542
|
-
[data-component~="ui-disclosure"][data-ui-disclosure-state~="fill"][data-ui-disclosure-state~="internalOpen"] {
|
|
588
|
+
[data-component~="ui-disclosure"][data-ui-disclosure-state~="fill"][data-component~="ui-disclosure"][data-ui-disclosure-state~="internalOpen"] {
|
|
543
589
|
flex-grow: 1;
|
|
544
590
|
}
|
|
545
591
|
[data-component~="ui-disclosure"][data-ui-disclosure-state~="fill"] .heading {
|
package/vue/UiEditable.d.ts
CHANGED
|
@@ -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
|
actions: {
|
|
4
6
|
type: PropType<boolean | null>;
|
|
@@ -130,11 +132,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
130
132
|
required: boolean | null;
|
|
131
133
|
placeholder: string | null;
|
|
132
134
|
actions: boolean | null;
|
|
135
|
+
cancelLabel: string | null;
|
|
133
136
|
edit: boolean | null;
|
|
134
137
|
hint: string | null;
|
|
135
|
-
cancelLabel: string | null;
|
|
136
138
|
maxLength: number | null;
|
|
137
139
|
saveLabel: string | null;
|
|
138
140
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
139
|
-
declare const _default: typeof __VLS_export;
|
|
140
|
-
export default _default;
|
package/vue/UiEditable.vue
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
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 { vBindControl } from './control'
|
|
6
17
|
import { createDispatch, useComponentHost } from './host'
|
|
18
|
+
import { acceptsControllerWrite } from './props'
|
|
7
19
|
import { checkedProp, propValidityState, vPropValidity } from './props'
|
|
8
20
|
|
|
9
21
|
defineOptions({ inheritAttrs: false })
|
|
@@ -269,28 +281,42 @@ const emit = defineEmits<{
|
|
|
269
281
|
}>()
|
|
270
282
|
|
|
271
283
|
const root = ref<HTMLElement | null>(null)
|
|
272
|
-
const previewElement = useTemplateRef<HTMLElement>('
|
|
273
|
-
const inputElement = useTemplateRef<HTMLElement>('
|
|
284
|
+
const previewElement = useTemplateRef<HTMLElement>('previewElement')
|
|
285
|
+
const inputElement = useTemplateRef<HTMLElement>('inputElement')
|
|
274
286
|
const internalEdit = ref(false)
|
|
275
287
|
const internalValue = ref('')
|
|
276
288
|
const draft = ref('')
|
|
277
289
|
let guardedPrevious: any
|
|
278
290
|
const guarded = computed(() => {
|
|
279
|
-
if (
|
|
280
|
-
|
|
281
|
-
|
|
291
|
+
if (
|
|
292
|
+
!(htmlNextAuthoredCheck2(
|
|
293
|
+
internalValue.value == null || typeof internalValue.value === 'string',
|
|
294
|
+
'$internalValue:internalValue',
|
|
295
|
+
'./components/ui-editable/ui-editable.html: HR007: Reference internalValue does not satisfy its declared type.',
|
|
296
|
+
))
|
|
297
|
+
) return guardedPrevious
|
|
282
298
|
return guardedPrevious = internalValue.value
|
|
283
299
|
})
|
|
284
300
|
let guardedBindingPrevious: any
|
|
285
301
|
const guardedBinding = computed(() => {
|
|
286
|
-
if (
|
|
302
|
+
if (
|
|
303
|
+
!(htmlNextAuthoredCheck2(
|
|
304
|
+
draft.value == null || typeof draft.value === 'string',
|
|
305
|
+
'draft:draft',
|
|
306
|
+
'./components/ui-editable/ui-editable.html: HR007: Reference draft does not satisfy its declared type.',
|
|
307
|
+
))
|
|
308
|
+
) return guardedBindingPrevious
|
|
287
309
|
return guardedBindingPrevious = draft.value
|
|
288
310
|
})
|
|
289
311
|
let guardedBinding2Previous: any
|
|
290
312
|
const guardedBinding2 = computed(() => {
|
|
291
|
-
if (
|
|
292
|
-
|
|
293
|
-
|
|
313
|
+
if (
|
|
314
|
+
!(htmlNextAuthoredCheck2(
|
|
315
|
+
internalEdit.value == null || typeof internalEdit.value === 'boolean',
|
|
316
|
+
'disabled or not internalEdit:internalEdit',
|
|
317
|
+
'./components/ui-editable/ui-editable.html: HR007: Reference internalEdit does not satisfy its declared type.',
|
|
318
|
+
))
|
|
319
|
+
) return guardedBinding2Previous
|
|
294
320
|
return guardedBinding2Previous = checkedProps.value.disabled || !internalEdit.value
|
|
295
321
|
})
|
|
296
322
|
provide('html-next:ui-editable:internalEdit', internalEdit)
|
|
@@ -321,15 +347,17 @@ const hostState = computed(() =>
|
|
|
321
347
|
].filter(Boolean).join(' ')
|
|
322
348
|
)
|
|
323
349
|
|
|
324
|
-
const isInputDetail = (
|
|
325
|
-
detail
|
|
350
|
+
const isInputDetail = (
|
|
351
|
+
detail: unknown,
|
|
352
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
326
353
|
&& typeof (detail as Record<string, unknown>)['value'] === 'string'
|
|
327
354
|
&& ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
|
|
328
355
|
|| (detail as Record<string, unknown>)['trigger'] === 'pointer'
|
|
329
356
|
|| (detail as Record<string, unknown>)['trigger'] === 'programmatic')
|
|
330
|
-
&& Object.keys(detail as object).every((key) => ['value', 'trigger'].includes(key))
|
|
331
|
-
const isChangeDetail = (
|
|
332
|
-
detail
|
|
357
|
+
&& Object.keys(detail as object).every((key) => ['value', 'trigger'].includes(key)))
|
|
358
|
+
const isChangeDetail = (
|
|
359
|
+
detail: unknown,
|
|
360
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
333
361
|
&& typeof (detail as Record<string, unknown>)['value'] === 'string'
|
|
334
362
|
&& typeof (detail as Record<string, unknown>)['previousValue'] === 'string'
|
|
335
363
|
&& ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
|
|
@@ -337,9 +365,10 @@ const isChangeDetail = (detail: unknown): boolean =>
|
|
|
337
365
|
|| (detail as Record<string, unknown>)['trigger'] === 'programmatic')
|
|
338
366
|
&& Object.keys(detail as object).every((key) =>
|
|
339
367
|
['value', 'previousValue', 'trigger'].includes(key)
|
|
340
|
-
)
|
|
341
|
-
const isEditChangeDetail = (
|
|
342
|
-
detail
|
|
368
|
+
))
|
|
369
|
+
const isEditChangeDetail = (
|
|
370
|
+
detail: unknown,
|
|
371
|
+
): boolean => (detail !== null && typeof detail === 'object' && !Array.isArray(detail)
|
|
343
372
|
&& typeof (detail as Record<string, unknown>)['edit'] === 'boolean'
|
|
344
373
|
&& ((detail as Record<string, unknown>)['reason'] === 'activate'
|
|
345
374
|
|| (detail as Record<string, unknown>)['reason'] === 'commit'
|
|
@@ -350,7 +379,7 @@ const isEditChangeDetail = (detail: unknown): boolean =>
|
|
|
350
379
|
&& ((detail as Record<string, unknown>)['trigger'] === 'keyboard'
|
|
351
380
|
|| (detail as Record<string, unknown>)['trigger'] === 'pointer'
|
|
352
381
|
|| (detail as Record<string, unknown>)['trigger'] === 'programmatic')
|
|
353
|
-
&& Object.keys(detail as object).every((key) => ['edit', 'reason', 'trigger'].includes(key))
|
|
382
|
+
&& Object.keys(detail as object).every((key) => ['edit', 'reason', 'trigger'].includes(key)))
|
|
354
383
|
const dispatch = createDispatch(root, emit as (name: string, detail: unknown) => void, {
|
|
355
384
|
checks: {
|
|
356
385
|
input: isInputDetail,
|
|
@@ -363,6 +392,16 @@ const dispatch = createDispatch(root, emit as (name: string, detail: unknown) =>
|
|
|
363
392
|
useComponentHost(() => import('../components/ui-editable/ui-editable.js'), {
|
|
364
393
|
root,
|
|
365
394
|
dispatch,
|
|
395
|
+
acceptsState: (name: string, keys: readonly string[], value: unknown) =>
|
|
396
|
+
acceptsControllerWrite(
|
|
397
|
+
value,
|
|
398
|
+
({
|
|
399
|
+
internalEdit: { kind: 'terminal', name: 'boolean' },
|
|
400
|
+
internalValue: { kind: 'terminal', name: 'string' },
|
|
401
|
+
draft: { kind: 'terminal', name: 'string' },
|
|
402
|
+
} as Record<string, any>)[name],
|
|
403
|
+
keys,
|
|
404
|
+
),
|
|
366
405
|
controllerSource: {
|
|
367
406
|
specifier: '../components/ui-editable/ui-editable.js',
|
|
368
407
|
definition: './components/ui-editable/ui-editable.html',
|
|
@@ -419,7 +458,7 @@ useComponentHost(() => import('../components/ui-editable/ui-editable.js'), {
|
|
|
419
458
|
class="preview"
|
|
420
459
|
type="button"
|
|
421
460
|
:disabled="checkedProps.disabled ?? undefined"
|
|
422
|
-
ref="
|
|
461
|
+
ref="previewElement"
|
|
423
462
|
>
|
|
424
463
|
<span class="text">{{ guarded }}</span>
|
|
425
464
|
<span v-if="checkedProps.hint" class="hint" aria-hidden="true">{{
|
|
@@ -434,7 +473,7 @@ useComponentHost(() => import('../components/ui-editable/ui-editable.js'), {
|
|
|
434
473
|
:placeholder="checkedProps.placeholder ?? undefined"
|
|
435
474
|
:required="checkedProps.required ?? undefined"
|
|
436
475
|
:disabled="guardedBinding2"
|
|
437
|
-
ref="
|
|
476
|
+
ref="inputElement"
|
|
438
477
|
>
|
|
439
478
|
</div>
|
|
440
479
|
<div v-if="checkedProps.actions" class="actions">
|
|
@@ -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
|
headerRow: {
|
|
4
6
|
type: PropType<boolean | null>;
|
|
@@ -51,5 +53,3 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
51
53
|
maxCols: number | null;
|
|
52
54
|
maxRows: number | null;
|
|
53
55
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
54
|
-
declare const _default: typeof __VLS_export;
|
|
55
|
-
export default _default;
|