@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/chunks/UiText.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
2
|
import { n as preserveRootFocus } from "./host.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as vPropValidity, n as checkedProp } from "./props.js";
|
|
4
4
|
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiText.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = [
|
|
@@ -612,6 +612,6 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
612
612
|
}]]);
|
|
613
613
|
};
|
|
614
614
|
}
|
|
615
|
-
}), [["__scopeId", "data-v-
|
|
615
|
+
}), [["__scopeId", "data-v-d830471c"]]);
|
|
616
616
|
//#endregion
|
|
617
617
|
export { UiText_default as t };
|
package/vue/chunks/UiTextarea.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
2
|
import { r as useComponentHost, t as createDispatch } from "./host.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as vPropValidity, n as checkedProp, r as propValidityState } from "./props.js";
|
|
4
4
|
import { n as readBoundControl, r as vBindControl } from "./control.js";
|
|
5
5
|
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, unref, watchSyncEffect, withDirectives } from "vue";
|
|
6
6
|
//#region .build/vue/UiTextarea.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -290,10 +290,11 @@ var UiTextarea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
290
290
|
tag: "textarea",
|
|
291
291
|
name: "value",
|
|
292
292
|
value: model.value,
|
|
293
|
+
optionalValue: true,
|
|
293
294
|
defaultValue: ""
|
|
294
295
|
}]]);
|
|
295
296
|
};
|
|
296
297
|
}
|
|
297
|
-
}), [["__scopeId", "data-v-
|
|
298
|
+
}), [["__scopeId", "data-v-ce29cce2"]]);
|
|
298
299
|
//#endregion
|
|
299
300
|
export { UiTextarea_default as t };
|
package/vue/chunks/UiToast.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
2
|
import { r as useComponentHost, t as createDispatch } from "./host.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as vPropValidity, n as checkedProp, r as propValidityState } from "./props.js";
|
|
4
4
|
import { t as UiIcon_default } from "./UiIcon.js";
|
|
5
5
|
import { t as UiIconButton_default } from "./UiIconButton.js";
|
|
6
6
|
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, renderSlot, unref, useTemplateRef, watchSyncEffect, withCtx, withDirectives } from "vue";
|
|
@@ -12,10 +12,6 @@ var _hoisted_1 = [
|
|
|
12
12
|
"data-ui-toast-state"
|
|
13
13
|
];
|
|
14
14
|
var _hoisted_2 = { class: "message" };
|
|
15
|
-
var _hoisted_3 = {
|
|
16
|
-
class: "action",
|
|
17
|
-
ref: "action"
|
|
18
|
-
};
|
|
19
15
|
//#endregion
|
|
20
16
|
//#region .build/vue/UiToast.vue
|
|
21
17
|
var UiToast_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -96,7 +92,7 @@ var UiToast_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
96
92
|
const hydrationInstance = getCurrentInstance();
|
|
97
93
|
const emit = __emit;
|
|
98
94
|
const root = ref(null);
|
|
99
|
-
const actionElement = useTemplateRef("
|
|
95
|
+
const actionElement = useTemplateRef("actionElement");
|
|
100
96
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
101
97
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "div")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-toast> has an incompatible root."), {
|
|
102
98
|
name: "HtmlDiagnosticError",
|
|
@@ -157,7 +153,11 @@ var UiToast_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
157
153
|
ref: root
|
|
158
154
|
}), [
|
|
159
155
|
createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
160
|
-
createElementVNode("div",
|
|
156
|
+
createElementVNode("div", {
|
|
157
|
+
class: "action",
|
|
158
|
+
ref_key: "actionElement",
|
|
159
|
+
ref: actionElement
|
|
160
|
+
}, [renderSlot(_ctx.$slots, "action", {}, void 0, true)], 512),
|
|
161
161
|
createVNode(UiIconButton_default, {
|
|
162
162
|
class: "dismiss",
|
|
163
163
|
size: "sm",
|
|
@@ -174,6 +174,6 @@ var UiToast_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
174
174
|
}]]);
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
|
-
}), [["__scopeId", "data-v-
|
|
177
|
+
}), [["__scopeId", "data-v-93ffe07f"]]);
|
|
178
178
|
//#endregion
|
|
179
179
|
export { UiToast_default as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
2
|
import { r as useComponentHost, t as createDispatch } from "./host.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as vPropValidity, n as checkedProp, r as propValidityState, t as acceptsControllerWrite } from "./props.js";
|
|
4
4
|
import { t as UiIcon_default } from "./UiIcon.js";
|
|
5
5
|
import { t as UiIconButton_default } from "./UiIconButton.js";
|
|
6
6
|
import { Fragment, computed, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, h, mergeProps, normalizeClass, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, watchSyncEffect, withCtx, withDirectives } from "vue";
|
|
@@ -32,8 +32,12 @@ var UiToastRegion_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
32
32
|
default: "top"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
-
emits: [
|
|
36
|
-
|
|
35
|
+
emits: [
|
|
36
|
+
"update:duration",
|
|
37
|
+
"dismiss",
|
|
38
|
+
"show-toast"
|
|
39
|
+
],
|
|
40
|
+
setup(__props, { emit: __emit }) {
|
|
37
41
|
const propValidityContract = { props: {
|
|
38
42
|
duration: {
|
|
39
43
|
type: {
|
|
@@ -42,7 +46,7 @@ var UiToastRegion_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
42
46
|
},
|
|
43
47
|
required: false,
|
|
44
48
|
target: { attribute: "duration" },
|
|
45
|
-
description: "Default milliseconds for toasts added with show
|
|
49
|
+
description: "Default milliseconds for toasts added with the show-toast event or command; 0 keeps each until dismissed. Hover or focus pauses a timer.",
|
|
46
50
|
default: 0
|
|
47
51
|
},
|
|
48
52
|
placement: {
|
|
@@ -139,10 +143,85 @@ var UiToastRegion_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
139
143
|
"reason",
|
|
140
144
|
"trigger"
|
|
141
145
|
].includes(key));
|
|
142
|
-
const
|
|
143
|
-
|
|
146
|
+
const isShowToastDetail = (detail) => detail !== null && typeof detail === "object" && !Array.isArray(detail) && typeof detail["message"] === "string" && (detail["id"] === void 0 || typeof detail["id"] === "string") && (detail["tone"] === void 0 || detail["tone"] === "neutral" || detail["tone"] === "info" || detail["tone"] === "success" || detail["tone"] === "warning" || detail["tone"] === "danger") && (detail["duration"] === void 0 || typeof detail["duration"] === "number" && Number.isFinite(detail["duration"])) && Object.keys(detail).every((key) => [
|
|
147
|
+
"message",
|
|
148
|
+
"id",
|
|
149
|
+
"tone",
|
|
150
|
+
"duration"
|
|
151
|
+
].includes(key));
|
|
152
|
+
const dispatch = createDispatch(root, emit, {
|
|
153
|
+
checks: {
|
|
154
|
+
dismiss: isDismissDetail,
|
|
155
|
+
"show-toast": isShowToastDetail
|
|
156
|
+
},
|
|
157
|
+
modeled: ["duration"]
|
|
158
|
+
});
|
|
159
|
+
useComponentHost(() => import("@threadlabs/looma/components/ui-toast-region/ui-toast-region.js"), {
|
|
144
160
|
root,
|
|
145
161
|
dispatch,
|
|
162
|
+
acceptsState: (name, keys, value) => acceptsControllerWrite(value, { toasts: {
|
|
163
|
+
kind: "list",
|
|
164
|
+
item: {
|
|
165
|
+
kind: "object",
|
|
166
|
+
fields: [
|
|
167
|
+
{
|
|
168
|
+
name: "id",
|
|
169
|
+
type: {
|
|
170
|
+
kind: "terminal",
|
|
171
|
+
name: "string"
|
|
172
|
+
},
|
|
173
|
+
optional: false
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: "message",
|
|
177
|
+
type: {
|
|
178
|
+
kind: "terminal",
|
|
179
|
+
name: "string"
|
|
180
|
+
},
|
|
181
|
+
optional: false
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: "tone",
|
|
185
|
+
type: {
|
|
186
|
+
kind: "constrained",
|
|
187
|
+
base: {
|
|
188
|
+
kind: "terminal",
|
|
189
|
+
name: "keyword"
|
|
190
|
+
},
|
|
191
|
+
values: [
|
|
192
|
+
"neutral",
|
|
193
|
+
"info",
|
|
194
|
+
"success",
|
|
195
|
+
"warning",
|
|
196
|
+
"danger"
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
optional: false
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
name: "role",
|
|
203
|
+
type: {
|
|
204
|
+
kind: "constrained",
|
|
205
|
+
base: {
|
|
206
|
+
kind: "terminal",
|
|
207
|
+
name: "keyword"
|
|
208
|
+
},
|
|
209
|
+
values: ["alert", "status"]
|
|
210
|
+
},
|
|
211
|
+
optional: false
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: "closing",
|
|
215
|
+
type: {
|
|
216
|
+
kind: "terminal",
|
|
217
|
+
name: "boolean"
|
|
218
|
+
},
|
|
219
|
+
optional: false
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
open: false
|
|
223
|
+
}
|
|
224
|
+
} }[name], keys),
|
|
146
225
|
controllerSource: {
|
|
147
226
|
specifier: "../components/ui-toast-region/ui-toast-region.js",
|
|
148
227
|
definition: "./components/ui-toast-region/ui-toast-region.html"
|
|
@@ -160,19 +239,6 @@ var UiToastRegion_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
160
239
|
}, name),
|
|
161
240
|
state: { toasts }
|
|
162
241
|
});
|
|
163
|
-
__expose({ show: async (...args) => {
|
|
164
|
-
const controllerModule = await ready();
|
|
165
|
-
if (controllerModule === void 0) throw new TypeError("Controller method `show` is not ready for <ui-toast-region>.");
|
|
166
|
-
const method = Reflect.get(controllerModule, "show");
|
|
167
|
-
if (typeof method !== "function") throw Object.assign(/* @__PURE__ */ new Error("HJ003: Controller does not export method `show`."), {
|
|
168
|
-
name: "HtmlDiagnosticError",
|
|
169
|
-
diagnostic: Object.freeze({
|
|
170
|
-
code: "HJ003",
|
|
171
|
-
message: "Controller does not export method `show`."
|
|
172
|
-
})
|
|
173
|
-
});
|
|
174
|
-
return method(host, ...args);
|
|
175
|
-
} });
|
|
176
242
|
function text(value) {
|
|
177
243
|
if (Array.isArray(value)) return value.map(text).join(" ");
|
|
178
244
|
return value === null || value === void 0 || typeof value === "object" ? "" : String(value);
|
|
@@ -247,6 +313,6 @@ var UiToastRegion_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
247
313
|
}]]);
|
|
248
314
|
};
|
|
249
315
|
}
|
|
250
|
-
}), [["__scopeId", "data-v-
|
|
316
|
+
}), [["__scopeId", "data-v-3ac36321"]]);
|
|
251
317
|
//#endregion
|
|
252
318
|
export { UiToastRegion_default as t };
|
package/vue/chunks/UiTooltip.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
2
|
import { r as useComponentHost, t as createDispatch } from "./host.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as vPropValidity, n as checkedProp, r as propValidityState, t as acceptsControllerWrite } from "./props.js";
|
|
4
4
|
import { computed, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiTooltip.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = [
|
|
@@ -16,6 +16,14 @@ var _hoisted_1 = [
|
|
|
16
16
|
];
|
|
17
17
|
var _hoisted_2 = { class: "surface" };
|
|
18
18
|
var _hoisted_3 = { class: "shortcut" };
|
|
19
|
+
var htmlNextAuthoredCheck2Reported = /* @__PURE__ */ new Set();
|
|
20
|
+
function htmlNextAuthoredCheck2(accepted, location, message) {
|
|
21
|
+
if (!accepted && !htmlNextAuthoredCheck2Reported.has(location)) {
|
|
22
|
+
htmlNextAuthoredCheck2Reported.add(location);
|
|
23
|
+
console.warn(message);
|
|
24
|
+
}
|
|
25
|
+
return accepted;
|
|
26
|
+
}
|
|
19
27
|
//#endregion
|
|
20
28
|
//#region .build/vue/UiTooltip.vue
|
|
21
29
|
var UiTooltip_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -211,7 +219,7 @@ var UiTooltip_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
211
219
|
const internalOpen = ref(false);
|
|
212
220
|
let guardedPrevious;
|
|
213
221
|
const guarded = computed(() => {
|
|
214
|
-
if (!(internalOpen.value == null || typeof internalOpen.value === "boolean")) return guardedPrevious;
|
|
222
|
+
if (!htmlNextAuthoredCheck2(internalOpen.value == null || typeof internalOpen.value === "boolean", "not internalOpen:internalOpen", "./components/ui-tooltip/ui-tooltip.html: HR007: Reference internalOpen does not satisfy its declared type.")) return guardedPrevious;
|
|
215
223
|
return guardedPrevious = !internalOpen.value;
|
|
216
224
|
});
|
|
217
225
|
provide("html-next:ui-tooltip:internalOpen", internalOpen);
|
|
@@ -240,6 +248,10 @@ var UiTooltip_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
240
248
|
useComponentHost(() => import("@threadlabs/looma/components/ui-tooltip/ui-tooltip.js"), {
|
|
241
249
|
root,
|
|
242
250
|
dispatch,
|
|
251
|
+
acceptsState: (name, keys, value) => acceptsControllerWrite(value, { internalOpen: {
|
|
252
|
+
kind: "terminal",
|
|
253
|
+
name: "boolean"
|
|
254
|
+
} }[name], keys),
|
|
243
255
|
controllerSource: {
|
|
244
256
|
specifier: "../components/ui-tooltip/ui-tooltip.js",
|
|
245
257
|
definition: "./components/ui-tooltip/ui-tooltip.html"
|
|
@@ -287,6 +299,6 @@ var UiTooltip_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
287
299
|
}]]);
|
|
288
300
|
};
|
|
289
301
|
}
|
|
290
|
-
}), [["__scopeId", "data-v-
|
|
302
|
+
}), [["__scopeId", "data-v-2b35c0b2"]]);
|
|
291
303
|
//#endregion
|
|
292
304
|
export { UiTooltip_default as t };
|
package/vue/chunks/UiTopBar.js
CHANGED
package/vue/chunks/UiTree.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
2
|
import { r as useComponentHost, t as createDispatch } from "./host.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as vPropValidity, n as checkedProp, r as propValidityState } from "./props.js";
|
|
4
4
|
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiTree.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = [
|
|
@@ -286,6 +286,6 @@ var UiTree_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
286
286
|
}]]);
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
|
-
}), [["__scopeId", "data-v-
|
|
289
|
+
}), [["__scopeId", "data-v-e6ba8ae7"]]);
|
|
290
290
|
//#endregion
|
|
291
291
|
export { UiTree_default as t };
|
package/vue/chunks/UiTreeItem.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
2
|
import { r as useComponentHost, t as createDispatch } from "./host.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as vPropValidity, n as checkedProp, r as propValidityState, t as acceptsControllerWrite } from "./props.js";
|
|
4
4
|
import { t as UiButton_default } from "./UiButton.js";
|
|
5
5
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withCtx, withDirectives } from "vue";
|
|
6
6
|
//#region .build/vue/UiTreeItem.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -25,35 +25,23 @@ var _hoisted_1 = [
|
|
|
25
25
|
"data-subtree-depth",
|
|
26
26
|
"data-ui-tree-item-state"
|
|
27
27
|
];
|
|
28
|
-
var _hoisted_2 =
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
var _hoisted_3 = ["aria-label"];
|
|
33
|
-
var _hoisted_4 = ["disabled", "hidden"];
|
|
34
|
-
var _hoisted_5 = { class: "selection-hit" };
|
|
35
|
-
var _hoisted_6 = [
|
|
28
|
+
var _hoisted_2 = ["aria-label"];
|
|
29
|
+
var _hoisted_3 = ["disabled", "hidden"];
|
|
30
|
+
var _hoisted_4 = { class: "selection-hit" };
|
|
31
|
+
var _hoisted_5 = [
|
|
36
32
|
"^checked",
|
|
37
33
|
"disabled",
|
|
38
34
|
"aria-label"
|
|
39
35
|
];
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
class: "label-text",
|
|
50
|
-
ref: "labelText"
|
|
51
|
-
};
|
|
52
|
-
var _hoisted_10 = {
|
|
53
|
-
class: "actions",
|
|
54
|
-
ref: "actions"
|
|
55
|
-
};
|
|
56
|
-
var _hoisted_11 = ["hidden"];
|
|
36
|
+
var _hoisted_6 = ["hidden"];
|
|
37
|
+
var htmlNextAuthoredCheck2Reported = /* @__PURE__ */ new Set();
|
|
38
|
+
function htmlNextAuthoredCheck2(accepted, location, message) {
|
|
39
|
+
if (!accepted && !htmlNextAuthoredCheck2Reported.has(location)) {
|
|
40
|
+
htmlNextAuthoredCheck2Reported.add(location);
|
|
41
|
+
console.warn(message);
|
|
42
|
+
}
|
|
43
|
+
return accepted;
|
|
44
|
+
}
|
|
57
45
|
//#endregion
|
|
58
46
|
//#region .build/vue/UiTreeItem.vue
|
|
59
47
|
var UiTreeItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -353,14 +341,14 @@ var UiTreeItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
353
341
|
const hydrationInstance = getCurrentInstance();
|
|
354
342
|
const emit = __emit;
|
|
355
343
|
const root = ref(null);
|
|
356
|
-
const rowElement = useTemplateRef("
|
|
357
|
-
const dragHandleElement = useTemplateRef("
|
|
358
|
-
const disclosureElement = useTemplateRef("
|
|
359
|
-
const leadingElement = useTemplateRef("
|
|
360
|
-
const labelElement = useTemplateRef("
|
|
361
|
-
const labelTextElement = useTemplateRef("
|
|
362
|
-
const actionsElement = useTemplateRef("
|
|
363
|
-
const childrenElement = useTemplateRef("
|
|
344
|
+
const rowElement = useTemplateRef("rowElement");
|
|
345
|
+
const dragHandleElement = useTemplateRef("dragHandleElement");
|
|
346
|
+
const disclosureElement = useTemplateRef("disclosureElement");
|
|
347
|
+
const leadingElement = useTemplateRef("leadingElement");
|
|
348
|
+
const labelElement = useTemplateRef("labelElement");
|
|
349
|
+
const labelTextElement = useTemplateRef("labelTextElement");
|
|
350
|
+
const actionsElement = useTemplateRef("actionsElement");
|
|
351
|
+
const childrenElement = useTemplateRef("childrenElement");
|
|
364
352
|
const internalExpanded = ref(false);
|
|
365
353
|
const structuralLevel = ref(1);
|
|
366
354
|
const tabStop = ref(false);
|
|
@@ -368,12 +356,12 @@ var UiTreeItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
368
356
|
const moving = ref(false);
|
|
369
357
|
let guardedPrevious;
|
|
370
358
|
const guarded = computed(() => {
|
|
371
|
-
if (!(structuralLevel.value == null || Number.isInteger(structuralLevel.value))) return guardedPrevious;
|
|
359
|
+
if (!htmlNextAuthoredCheck2(structuralLevel.value == null || Number.isInteger(structuralLevel.value), "structuralLevel:structuralLevel", "./components/ui-tree-item/ui-tree-item.html: HR007: Reference structuralLevel does not satisfy its declared type.")) return guardedPrevious;
|
|
372
360
|
return guardedPrevious = structuralLevel.value;
|
|
373
361
|
});
|
|
374
362
|
let guardedBindingPrevious = null;
|
|
375
363
|
const guardedBinding = computed(() => {
|
|
376
|
-
if (!(moving.value == null || typeof moving.value === "boolean")) return guardedBindingPrevious;
|
|
364
|
+
if (!htmlNextAuthoredCheck2(moving.value == null || typeof moving.value === "boolean", "{ true: concat('Cancel moving ', label), false: concat('Drag ', label, ' to reorder') }[concat(moving)]:moving", "./components/ui-tree-item/ui-tree-item.html: HR007: Reference moving does not satisfy its declared type.")) return guardedBindingPrevious;
|
|
377
365
|
if (((objectValue, indexValue) => objectValue === Symbol.for("html-next.invalid-result") || indexValue === Symbol.for("html-next.invalid-result") ? Symbol.for("html-next.invalid-result") : objectValue[indexValue])((() => {
|
|
378
366
|
const value = {
|
|
379
367
|
true: concat("Cancel moving ", checkedProps.value.label),
|
|
@@ -403,7 +391,7 @@ var UiTreeItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
403
391
|
});
|
|
404
392
|
let guardedBinding2Previous;
|
|
405
393
|
const guardedBinding2 = computed(() => {
|
|
406
|
-
if (!(isContainer.value == null || typeof isContainer.value === "boolean")) return guardedBinding2Previous;
|
|
394
|
+
if (!htmlNextAuthoredCheck2(isContainer.value == null || typeof isContainer.value === "boolean", "not isContainer:isContainer", "./components/ui-tree-item/ui-tree-item.html: HR007: Reference isContainer does not satisfy its declared type.")) return guardedBinding2Previous;
|
|
407
395
|
return guardedBinding2Previous = !isContainer.value;
|
|
408
396
|
});
|
|
409
397
|
let guardedBinding3Previous = null;
|
|
@@ -414,7 +402,7 @@ var UiTreeItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
414
402
|
});
|
|
415
403
|
let guardedBinding4Previous;
|
|
416
404
|
const guardedBinding4 = computed(() => {
|
|
417
|
-
if (!((internalExpanded.value == null || typeof internalExpanded.value === "boolean") && (isContainer.value == null || typeof isContainer.value === "boolean"))) return guardedBinding4Previous;
|
|
405
|
+
if (!(htmlNextAuthoredCheck2(internalExpanded.value == null || typeof internalExpanded.value === "boolean", "not (isContainer and internalExpanded):internalExpanded", "./components/ui-tree-item/ui-tree-item.html: HR007: Reference internalExpanded does not satisfy its declared type.") && htmlNextAuthoredCheck2(isContainer.value == null || typeof isContainer.value === "boolean", "not (isContainer and internalExpanded):isContainer", "./components/ui-tree-item/ui-tree-item.html: HR007: Reference isContainer does not satisfy its declared type."))) return guardedBinding4Previous;
|
|
418
406
|
return guardedBinding4Previous = !(isContainer.value && internalExpanded.value);
|
|
419
407
|
});
|
|
420
408
|
provide("html-next:ui-tree-item:internalExpanded", internalExpanded);
|
|
@@ -453,6 +441,28 @@ var UiTreeItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
453
441
|
useComponentHost(() => import("@threadlabs/looma/components/ui-tree-item/ui-tree-item.js"), {
|
|
454
442
|
root,
|
|
455
443
|
dispatch,
|
|
444
|
+
acceptsState: (name, keys, value) => acceptsControllerWrite(value, {
|
|
445
|
+
internalExpanded: {
|
|
446
|
+
kind: "terminal",
|
|
447
|
+
name: "boolean"
|
|
448
|
+
},
|
|
449
|
+
structuralLevel: {
|
|
450
|
+
kind: "terminal",
|
|
451
|
+
name: "integer"
|
|
452
|
+
},
|
|
453
|
+
tabStop: {
|
|
454
|
+
kind: "terminal",
|
|
455
|
+
name: "boolean"
|
|
456
|
+
},
|
|
457
|
+
isContainer: {
|
|
458
|
+
kind: "terminal",
|
|
459
|
+
name: "boolean"
|
|
460
|
+
},
|
|
461
|
+
moving: {
|
|
462
|
+
kind: "terminal",
|
|
463
|
+
name: "boolean"
|
|
464
|
+
}
|
|
465
|
+
}[name], keys),
|
|
456
466
|
controllerSource: {
|
|
457
467
|
specifier: "../components/ui-tree-item/ui-tree-item.js",
|
|
458
468
|
definition: "./components/ui-tree-item/ui-tree-item.html"
|
|
@@ -542,14 +552,19 @@ var UiTreeItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
542
552
|
ref_key: "root",
|
|
543
553
|
ref: root
|
|
544
554
|
}), [
|
|
545
|
-
createElementVNode("div",
|
|
555
|
+
createElementVNode("div", {
|
|
556
|
+
class: "row",
|
|
557
|
+
ref_key: "rowElement",
|
|
558
|
+
ref: rowElement
|
|
559
|
+
}, [
|
|
546
560
|
checkedProps.value.sortable && !checkedProps.value.disabled ? (openBlock(), createElementBlock("button", {
|
|
547
561
|
key: 0,
|
|
548
562
|
class: "drag-handle",
|
|
549
563
|
type: "button",
|
|
550
564
|
draggable: "true",
|
|
551
565
|
"aria-label": guardedBinding.value,
|
|
552
|
-
|
|
566
|
+
ref_key: "dragHandleElement",
|
|
567
|
+
ref: dragHandleElement
|
|
553
568
|
}, [..._cache[0] || (_cache[0] = [createElementVNode("svg", {
|
|
554
569
|
"aria-hidden": "true",
|
|
555
570
|
focusable: "false",
|
|
@@ -590,28 +605,45 @@ var UiTreeItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
590
605
|
cy: "19",
|
|
591
606
|
r: "1"
|
|
592
607
|
})
|
|
593
|
-
], -1)])], 8,
|
|
608
|
+
], -1)])], 8, _hoisted_2)) : createCommentVNode("v-if", true),
|
|
594
609
|
createElementVNode("button", {
|
|
595
610
|
class: "disclosure",
|
|
596
611
|
type: "button",
|
|
597
612
|
disabled: checkedProps.value.disabled ?? void 0,
|
|
598
613
|
hidden: guardedBinding2.value,
|
|
599
|
-
|
|
614
|
+
ref_key: "disclosureElement",
|
|
615
|
+
ref: disclosureElement
|
|
600
616
|
}, [..._cache[1] || (_cache[1] = [createElementVNode("span", {
|
|
601
617
|
class: "disclosure-icon",
|
|
602
618
|
"aria-hidden": "true"
|
|
603
|
-
}, null, -1)])], 8,
|
|
604
|
-
createElementVNode("label",
|
|
619
|
+
}, null, -1)])], 8, _hoisted_3),
|
|
620
|
+
createElementVNode("label", _hoisted_4, [createElementVNode("input", {
|
|
605
621
|
class: "selection-checkbox",
|
|
606
622
|
type: "checkbox",
|
|
607
623
|
tabindex: "-1",
|
|
608
624
|
"^checked": checkedProps.value.selected ? true : void 0,
|
|
609
625
|
disabled: checkedProps.value.disabled ?? void 0,
|
|
610
626
|
"aria-label": guardedBinding3.value
|
|
611
|
-
}, null, 8,
|
|
612
|
-
createElementVNode("span",
|
|
613
|
-
|
|
614
|
-
|
|
627
|
+
}, null, 8, _hoisted_5)]),
|
|
628
|
+
createElementVNode("span", {
|
|
629
|
+
class: "leading",
|
|
630
|
+
ref_key: "leadingElement",
|
|
631
|
+
ref: leadingElement
|
|
632
|
+
}, [renderSlot(_ctx.$slots, "leading")], 512),
|
|
633
|
+
createElementVNode("span", {
|
|
634
|
+
class: "label",
|
|
635
|
+
ref_key: "labelElement",
|
|
636
|
+
ref: labelElement
|
|
637
|
+
}, [createElementVNode("span", {
|
|
638
|
+
class: "label-text",
|
|
639
|
+
ref_key: "labelTextElement",
|
|
640
|
+
ref: labelTextElement
|
|
641
|
+
}, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(checkedProps.value.label), 1)])], 512)], 512),
|
|
642
|
+
createElementVNode("span", {
|
|
643
|
+
class: "actions",
|
|
644
|
+
ref_key: "actionsElement",
|
|
645
|
+
ref: actionsElement
|
|
646
|
+
}, [moving.value ? (openBlock(), createBlock(UiButton_default, {
|
|
615
647
|
key: 0,
|
|
616
648
|
"data-tree-cancel-move": "",
|
|
617
649
|
variant: "ghost",
|
|
@@ -631,8 +663,9 @@ var UiTreeItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
631
663
|
class: "children",
|
|
632
664
|
role: "group",
|
|
633
665
|
hidden: guardedBinding4.value,
|
|
634
|
-
|
|
635
|
-
|
|
666
|
+
ref_key: "childrenElement",
|
|
667
|
+
ref: childrenElement
|
|
668
|
+
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_6),
|
|
636
669
|
_cache[4] || (_cache[4] = createElementVNode("span", {
|
|
637
670
|
class: "drop-indicator subtree-drop-indicator",
|
|
638
671
|
"aria-hidden": "true"
|
|
@@ -643,6 +676,6 @@ var UiTreeItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
643
676
|
}]]);
|
|
644
677
|
};
|
|
645
678
|
}
|
|
646
|
-
}), [["__scopeId", "data-v-
|
|
679
|
+
}), [["__scopeId", "data-v-4981f1b6"]]);
|
|
647
680
|
//#endregion
|
|
648
681
|
export { UiTreeItem_default as t };
|
package/vue/chunks/control.js
CHANGED
|
@@ -24,6 +24,7 @@ function snapshotValue(value) {
|
|
|
24
24
|
}
|
|
25
25
|
function writeBoundControl(element, binding) {
|
|
26
26
|
const value = binding.value;
|
|
27
|
+
if (binding.optionalValue && value === void 0) return;
|
|
27
28
|
if (binding.name === "checked" && element instanceof HTMLInputElement) {
|
|
28
29
|
const next = Boolean(value);
|
|
29
30
|
if (element.checked !== next) element.checked = next;
|
|
@@ -84,7 +85,8 @@ var SelectedOptions = defineComponent({
|
|
|
84
85
|
props: {
|
|
85
86
|
value: { type: null },
|
|
86
87
|
multiple: Boolean,
|
|
87
|
-
nativeProperty: Boolean
|
|
88
|
+
nativeProperty: Boolean,
|
|
89
|
+
optionalValue: Boolean
|
|
88
90
|
},
|
|
89
91
|
setup(props, { slots }) {
|
|
90
92
|
let defaults = [];
|
|
@@ -101,6 +103,10 @@ var SelectedOptions = defineComponent({
|
|
|
101
103
|
onMounted(restoreDefaults);
|
|
102
104
|
onUpdated(restoreDefaults);
|
|
103
105
|
return () => {
|
|
106
|
+
if (props.optionalValue && props.value === void 0) {
|
|
107
|
+
defaults = [];
|
|
108
|
+
return createVNode(Fragment, null, slots.default?.() ?? []);
|
|
109
|
+
}
|
|
104
110
|
const values = props.nativeProperty ? [String(props.value)] : props.multiple ? Array.isArray(props.value) ? props.value.map(String) : [] : [props.value == null ? "" : String(props.value)];
|
|
105
111
|
defaults = [];
|
|
106
112
|
return createVNode(Fragment, null, selectChildren(slots.default?.() ?? [], new Set(values), defaults));
|
|
@@ -111,7 +117,8 @@ var SelectedOptions = defineComponent({
|
|
|
111
117
|
var vBindControl = {
|
|
112
118
|
deep: true,
|
|
113
119
|
getSSRProps(binding) {
|
|
114
|
-
const { tag, name, value, nativeProperty } = binding.value;
|
|
120
|
+
const { tag, name, value, nativeProperty, optionalValue } = binding.value;
|
|
121
|
+
if (optionalValue && value === void 0) return void 0;
|
|
115
122
|
if (name === "checked") return { checked: Boolean(value) };
|
|
116
123
|
if (tag === "input" || tag === "textarea") return { value: nativeProperty ? String(value) : value == null ? "" : String(value) };
|
|
117
124
|
},
|