@threadlabs/looma 0.23.15 → 0.23.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ui-avatar/ui-avatar.html +1 -1
- package/components/ui-avatar-group/ui-avatar-group.html +1 -3
- package/components/ui-breadcrumb-item/ui-breadcrumb-item.html +1 -1
- package/components/ui-button/ui-button.html +4 -4
- package/components/ui-combobox/ui-combobox.html +19 -21
- package/components/ui-description-item/ui-description-item.html +1 -1
- package/components/ui-dialog/ui-dialog.html +1 -1
- package/components/ui-disclosure/ui-disclosure.html +1 -1
- package/components/ui-editable/ui-editable.html +4 -4
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +1 -1
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +2 -2
- package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +2 -2
- package/components/ui-editor-slash-menu-group/ui-editor-slash-menu-group.html +1 -1
- package/components/ui-editor-slash-menu-item/ui-editor-slash-menu-item.html +1 -1
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +2 -2
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +2 -2
- package/components/ui-icon-button/ui-icon-button.html +28 -1
- package/components/ui-listbox/ui-listbox.html +2 -2
- package/components/ui-menu-group/ui-menu-group.html +1 -1
- package/components/ui-menu-item/ui-menu-item.html +1 -1
- package/components/ui-meter/ui-meter.html +7 -8
- package/components/ui-nav-item/ui-nav-item.html +2 -2
- package/components/ui-radio-group/ui-radio-group.html +1 -1
- package/components/ui-section/ui-section.html +1 -1
- package/components/ui-spinner/ui-spinner.html +4 -4
- package/components/ui-status-message/ui-status-message.html +2 -2
- package/components/ui-tabs/ui-tabs.html +1 -1
- package/components/ui-toast-region/ui-toast-region.html +1 -1
- package/components/ui-tree-item/ui-tree-item.html +3 -3
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/styles/ui-action-bar.css +1 -1
- package/styles/ui-affordance-scope.css +1 -1
- package/styles/ui-avatar-group.css +1 -1
- package/styles/ui-avatar.css +1 -1
- package/styles/ui-badge.css +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 +1 -1
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-slash-menu-group.css +1 -1
- package/styles/ui-editor-slash-menu-item.css +1 -1
- package/styles/ui-editor-slash-menu.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +1 -1
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +1 -1
- package/styles/ui-icon-button.css +29 -1
- package/styles/ui-icon.css +1 -1
- package/styles/ui-input-group.css +1 -1
- package/styles/ui-input.css +1 -1
- package/styles/ui-list-item.css +1 -1
- package/styles/ui-list.css +1 -1
- package/styles/ui-listbox.css +1 -1
- package/styles/ui-menu-group.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.css +1 -1
- package/styles/ui-meter.css +1 -1
- package/styles/ui-nav-item.css +1 -1
- package/styles/ui-page-header.css +1 -1
- package/styles/ui-popover.css +1 -1
- package/styles/ui-radio-group.css +1 -1
- package/styles/ui-radio.css +1 -1
- package/styles/ui-reel.css +1 -1
- package/styles/ui-scroll-area.css +1 -1
- package/styles/ui-search-result-row.css +1 -1
- package/styles/ui-search-shell.css +1 -1
- package/styles/ui-section.css +1 -1
- package/styles/ui-select.css +1 -1
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +1 -1
- package/styles/ui-table.css +1 -1
- package/styles/ui-tabs.css +1 -1
- package/styles/ui-text.css +1 -1
- package/styles/ui-textarea.css +1 -1
- package/styles/ui-toast-region.css +1 -1
- package/styles/ui-toast.css +1 -1
- package/styles/ui-tooltip.css +1 -1
- package/styles/ui-top-bar.css +1 -1
- package/styles/ui-tree-item.css +1 -1
- package/styles/ui-tree.css +1 -1
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +1 -1
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +1 -1
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +9 -7
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +4 -4
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +2 -2
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +1 -1
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +2 -2
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +1 -1
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +1 -1
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +29 -25
- 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 +5 -5
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +1 -1
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +16 -14
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +4 -4
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +35 -27
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +20 -18
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +27 -25
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +6 -4
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +1 -1
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +9 -7
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +4 -2
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +2 -2
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +1 -1
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +2 -2
- 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 +2 -1
- package/vanilla/UiIconButton.js +5 -2
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +1 -1
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +1 -1
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +1 -1
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +1 -1
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +2 -2
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +1 -1
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +4 -2
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +2 -2
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +2 -2
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +2 -2
- 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 +4 -4
- 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 +4 -4
- 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 +2 -2
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +1 -1
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +4 -4
- 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 +2 -2
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +1 -1
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +1 -1
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +1 -1
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +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 +4 -4
- package/vue/UiActionBar.vue +1 -1
- package/vue/UiAffordanceScope.vue +1 -1
- package/vue/UiAvatar.vue +1 -1
- package/vue/UiAvatarGroup.vue +9 -2
- package/vue/UiBadge.vue +1 -1
- package/vue/UiBreadcrumbItem.vue +55 -9
- package/vue/UiBreadcrumbs.vue +1 -1
- package/vue/UiButton.vue +162 -37
- package/vue/UiCallout.vue +1 -1
- package/vue/UiCard.vue +1 -1
- package/vue/UiCheckbox.vue +8 -1
- package/vue/UiCluster.vue +1 -1
- package/vue/UiCombobox.d.ts +1 -1
- package/vue/UiCombobox.vue +190 -73
- package/vue/UiContainer.vue +1 -1
- package/vue/UiContextMenu.vue +1 -1
- package/vue/UiCover.vue +1 -1
- package/vue/UiDescriptionItem.vue +1 -1
- package/vue/UiDescriptionList.vue +1 -1
- package/vue/UiDialog.vue +1 -1
- package/vue/UiDisclosure.vue +1 -1
- package/vue/UiEditable.vue +9 -4
- package/vue/UiEditorInsertTableGrid.vue +19 -2
- package/vue/UiEditorMentionMenu.vue +20 -2
- package/vue/UiEditorMentionMenuItem.vue +1 -1
- package/vue/UiEditorSlashMenu.vue +1 -1
- package/vue/UiEditorSlashMenuGroup.vue +1 -1
- package/vue/UiEditorSlashMenuItem.vue +1 -1
- package/vue/UiEditorTableContextMenu.vue +46 -5
- package/vue/UiEditorTableOverlay.vue +55 -26
- package/vue/UiEditorTableToolbar.vue +46 -5
- package/vue/UiEditorToolbar.vue +1 -1
- 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.d.ts +9 -0
- package/vue/UiIconButton.vue +104 -14
- package/vue/UiInput.vue +1 -1
- package/vue/UiInputGroup.vue +1 -1
- package/vue/UiList.vue +1 -1
- package/vue/UiListItem.vue +1 -1
- package/vue/UiListbox.vue +47 -13
- package/vue/UiMenu.vue +1 -1
- package/vue/UiMenuGroup.vue +1 -1
- package/vue/UiMenuItem.vue +46 -10
- package/vue/UiMeter.d.ts +2 -2
- package/vue/UiMeter.vue +675 -97
- package/vue/UiNavItem.vue +97 -39
- package/vue/UiPageHeader.vue +1 -1
- package/vue/UiPopover.vue +1 -1
- package/vue/UiRadio.vue +8 -1
- package/vue/UiRadioGroup.vue +1 -1
- package/vue/UiReel.vue +1 -1
- package/vue/UiScrollArea.vue +1 -1
- package/vue/UiSearchResultRow.vue +1 -1
- package/vue/UiSearchShell.vue +1 -1
- package/vue/UiSection.vue +1 -1
- package/vue/UiSelect.vue +1 -1
- package/vue/UiSeparator.vue +1 -1
- package/vue/UiSidebar.vue +1 -1
- package/vue/UiSpinner.vue +159 -31
- package/vue/UiStack.vue +1 -1
- package/vue/UiStatusMessage.vue +42 -4
- package/vue/UiSwitch.vue +8 -1
- package/vue/UiSwitcher.vue +1 -1
- package/vue/UiTable.vue +1 -1
- package/vue/UiTabs.vue +20 -2
- package/vue/UiText.d.ts +1 -1
- package/vue/UiText.vue +1 -1
- package/vue/UiTextarea.vue +1 -1
- package/vue/UiToast.vue +1 -1
- package/vue/UiToastRegion.vue +20 -2
- package/vue/UiTooltip.vue +1 -1
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.vue +1 -1
- package/vue/UiTreeItem.vue +113 -25
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +1 -1
- package/vue/chunks/UiAvatar.js +1 -1
- package/vue/chunks/UiAvatarGroup.js +7 -2
- package/vue/chunks/UiBadge.js +1 -1
- package/vue/chunks/UiBreadcrumbItem.js +27 -12
- package/vue/chunks/UiBreadcrumbs.js +1 -1
- package/vue/chunks/UiButton.js +67 -29
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiCard.js +1 -1
- package/vue/chunks/UiCheckbox.js +6 -1
- package/vue/chunks/UiCluster.js +1 -1
- package/vue/chunks/UiCombobox.js +155 -56
- package/vue/chunks/UiContainer.js +1 -1
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiCover.js +1 -1
- package/vue/chunks/UiDescriptionItem.js +1 -1
- package/vue/chunks/UiDescriptionList.js +1 -1
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiDisclosure.js +1 -1
- package/vue/chunks/UiEditable.js +10 -5
- package/vue/chunks/UiEditorInsertTableGrid.js +18 -3
- package/vue/chunks/UiEditorMentionMenu.js +8 -2
- package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
- package/vue/chunks/UiEditorSlashMenu.js +1 -1
- package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
- package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
- package/vue/chunks/UiEditorTableContextMenu.js +13 -7
- package/vue/chunks/UiEditorTableOverlay.js +43 -23
- package/vue/chunks/UiEditorTableToolbar.js +13 -7
- package/vue/chunks/UiEditorToolbar.js +1 -1
- package/vue/chunks/UiFloatingActionButton.js +1 -1
- package/vue/chunks/UiFormField.js +1 -1
- package/vue/chunks/UiGrid.js +1 -1
- package/vue/chunks/UiIcon.js +1 -1
- package/vue/chunks/UiIconButton.js +48 -11
- package/vue/chunks/UiInput.js +1 -1
- package/vue/chunks/UiInputGroup.js +1 -1
- package/vue/chunks/UiList.js +1 -1
- package/vue/chunks/UiListItem.js +1 -1
- package/vue/chunks/UiListbox.js +29 -15
- package/vue/chunks/UiMenu.js +1 -1
- package/vue/chunks/UiMenuGroup.js +1 -1
- package/vue/chunks/UiMenuItem.js +23 -9
- package/vue/chunks/UiMeter.js +373 -37
- package/vue/chunks/UiNavItem.js +67 -39
- package/vue/chunks/UiPageHeader.js +1 -1
- package/vue/chunks/UiPopover.js +1 -1
- package/vue/chunks/UiRadio.js +6 -1
- package/vue/chunks/UiRadioGroup.js +1 -1
- package/vue/chunks/UiReel.js +1 -1
- package/vue/chunks/UiScrollArea.js +1 -1
- package/vue/chunks/UiSearchResultRow.js +1 -1
- package/vue/chunks/UiSearchShell.js +1 -1
- package/vue/chunks/UiSection.js +1 -1
- package/vue/chunks/UiSelect.js +1 -1
- package/vue/chunks/UiSeparator.js +1 -1
- package/vue/chunks/UiSidebar.js +1 -1
- package/vue/chunks/UiSpinner.js +75 -36
- package/vue/chunks/UiStack.js +1 -1
- package/vue/chunks/UiStatusMessage.js +21 -6
- package/vue/chunks/UiSwitch.js +6 -1
- package/vue/chunks/UiSwitcher.js +1 -1
- package/vue/chunks/UiTable.js +1 -1
- package/vue/chunks/UiTabs.js +8 -2
- package/vue/chunks/UiText.js +1 -1
- package/vue/chunks/UiTextarea.js +1 -1
- package/vue/chunks/UiToast.js +1 -1
- package/vue/chunks/UiToastRegion.js +8 -2
- package/vue/chunks/UiTooltip.js +1 -1
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +1 -1
- package/vue/chunks/UiTreeItem.js +52 -19
- package/vue/chunks/props.js +11 -6
- package/vue/components.css +1321 -1298
- package/vue/host.ts +15 -3
|
@@ -457,33 +457,53 @@ var UiEditorTableOverlay_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
457
457
|
const activeKey = ref("");
|
|
458
458
|
let guardedPrevious;
|
|
459
459
|
const guarded = computed(() => {
|
|
460
|
-
if (!(hovered.value?.["
|
|
461
|
-
return guardedPrevious = hovered.value?.
|
|
460
|
+
if (!(hovered.value?.["rowOffset"] == null || typeof hovered.value?.["rowOffset"] === "string")) return guardedPrevious;
|
|
461
|
+
return guardedPrevious = hovered.value?.rowOffset;
|
|
462
462
|
});
|
|
463
463
|
let guardedBindingPrevious;
|
|
464
464
|
const guardedBinding = computed(() => {
|
|
465
|
-
if (!(hovered.value?.["
|
|
466
|
-
return guardedBindingPrevious = hovered.value?.
|
|
465
|
+
if (!(hovered.value?.["rowIndex"] == null || Number.isInteger(hovered.value?.["rowIndex"]))) return guardedBindingPrevious;
|
|
466
|
+
return guardedBindingPrevious = hovered.value?.rowIndex;
|
|
467
467
|
});
|
|
468
468
|
let guardedBinding2Previous;
|
|
469
469
|
const guardedBinding2 = computed(() => {
|
|
470
|
-
if (!(hovered.value?.["
|
|
471
|
-
return guardedBinding2Previous = hovered.value?.
|
|
470
|
+
if (!(hovered.value?.["columnIndex"] == null || Number.isInteger(hovered.value?.["columnIndex"]))) return guardedBinding2Previous;
|
|
471
|
+
return guardedBinding2Previous = hovered.value?.columnIndex;
|
|
472
472
|
});
|
|
473
473
|
let guardedBinding3Previous;
|
|
474
474
|
const guardedBinding3 = computed(() => {
|
|
475
|
-
if (!(hovered.value?.["
|
|
476
|
-
return guardedBinding3Previous = hovered.value?.
|
|
475
|
+
if (!(hovered.value?.["columnOffset"] == null || typeof hovered.value?.["columnOffset"] === "string")) return guardedBinding3Previous;
|
|
476
|
+
return guardedBinding3Previous = hovered.value?.columnOffset;
|
|
477
477
|
});
|
|
478
478
|
let guardedBinding4Previous;
|
|
479
479
|
const guardedBinding4 = computed(() => {
|
|
480
|
-
if (!(
|
|
481
|
-
return guardedBinding4Previous =
|
|
480
|
+
if (!(hovered.value?.["rowIndex"] == null || Number.isInteger(hovered.value?.["rowIndex"]))) return guardedBinding4Previous;
|
|
481
|
+
return guardedBinding4Previous = hovered.value?.rowIndex;
|
|
482
482
|
});
|
|
483
483
|
let guardedBinding5Previous;
|
|
484
484
|
const guardedBinding5 = computed(() => {
|
|
485
|
-
if (!(
|
|
486
|
-
return guardedBinding5Previous =
|
|
485
|
+
if (!(hovered.value?.["columnIndex"] == null || Number.isInteger(hovered.value?.["columnIndex"]))) return guardedBinding5Previous;
|
|
486
|
+
return guardedBinding5Previous = hovered.value?.columnIndex;
|
|
487
|
+
});
|
|
488
|
+
let guardedBinding6Previous;
|
|
489
|
+
const guardedBinding6 = computed(() => {
|
|
490
|
+
if (!(active.value?.["menuLeft"] == null || typeof active.value?.["menuLeft"] === "string")) return guardedBinding6Previous;
|
|
491
|
+
return guardedBinding6Previous = active.value?.menuLeft;
|
|
492
|
+
});
|
|
493
|
+
let guardedBinding7Previous;
|
|
494
|
+
const guardedBinding7 = computed(() => {
|
|
495
|
+
if (!(active.value?.["menuTop"] == null || typeof active.value?.["menuTop"] === "string")) return guardedBinding7Previous;
|
|
496
|
+
return guardedBinding7Previous = active.value?.menuTop;
|
|
497
|
+
});
|
|
498
|
+
let guardedBinding8Previous;
|
|
499
|
+
const guardedBinding8 = computed(() => {
|
|
500
|
+
if (!(active.value?.["rowIndex"] == null || Number.isInteger(active.value?.["rowIndex"]))) return guardedBinding8Previous;
|
|
501
|
+
return guardedBinding8Previous = active.value?.rowIndex;
|
|
502
|
+
});
|
|
503
|
+
let guardedBinding9Previous;
|
|
504
|
+
const guardedBinding9 = computed(() => {
|
|
505
|
+
if (!(active.value?.["columnIndex"] == null || Number.isInteger(active.value?.["columnIndex"]))) return guardedBinding9Previous;
|
|
506
|
+
return guardedBinding9Previous = active.value?.columnIndex;
|
|
487
507
|
});
|
|
488
508
|
provide("html-next:ui-editor-table-overlay:rows", rows);
|
|
489
509
|
provide("html-next:ui-editor-table-overlay:cols", cols);
|
|
@@ -652,18 +672,18 @@ var UiEditorTableOverlay_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
652
672
|
"data-action": "select-row",
|
|
653
673
|
title: "Drag row to reorder; click for actions",
|
|
654
674
|
"aria-label": "Row actions",
|
|
655
|
-
"data-row-index":
|
|
656
|
-
"data-column-index":
|
|
657
|
-
style: normalizeStyle({ top:
|
|
675
|
+
"data-row-index": guardedBinding.value,
|
|
676
|
+
"data-column-index": guardedBinding2.value,
|
|
677
|
+
style: normalizeStyle({ top: guarded.value })
|
|
658
678
|
}, [createElementVNode("span", _hoisted_11, [createVNode(UiIcon_default, { name: "grip-vertical" })])], 12, _hoisted_10), createElementVNode("button", {
|
|
659
679
|
type: "button",
|
|
660
680
|
class: "selector column",
|
|
661
681
|
"data-action": "select-column",
|
|
662
682
|
title: "Drag column to reorder; click for actions",
|
|
663
683
|
"aria-label": "Column actions",
|
|
664
|
-
"data-row-index":
|
|
665
|
-
"data-column-index":
|
|
666
|
-
style: normalizeStyle({ left:
|
|
684
|
+
"data-row-index": guardedBinding4.value,
|
|
685
|
+
"data-column-index": guardedBinding5.value,
|
|
686
|
+
style: normalizeStyle({ left: guardedBinding3.value })
|
|
667
687
|
}, [createElementVNode("span", _hoisted_13, [createVNode(UiIcon_default, { name: "grip-horizontal" })])], 12, _hoisted_12)], 64)) : createCommentVNode("v-if", true),
|
|
668
688
|
active.value ? (openBlock(), createElementBlock("button", {
|
|
669
689
|
key: 1,
|
|
@@ -672,11 +692,11 @@ var UiEditorTableOverlay_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
672
692
|
"data-action": "open-cell-menu",
|
|
673
693
|
title: "Cell actions",
|
|
674
694
|
"aria-label": "Cell actions",
|
|
675
|
-
"data-row-index":
|
|
676
|
-
"data-column-index":
|
|
695
|
+
"data-row-index": guardedBinding8.value,
|
|
696
|
+
"data-column-index": guardedBinding9.value,
|
|
677
697
|
style: normalizeStyle({
|
|
678
|
-
left:
|
|
679
|
-
top:
|
|
698
|
+
left: guardedBinding6.value,
|
|
699
|
+
top: guardedBinding7.value
|
|
680
700
|
})
|
|
681
701
|
}, [createVNode(UiIcon_default, { name: "chevron-down" })], 12, _hoisted_14)) : createCommentVNode("v-if", true),
|
|
682
702
|
_cache[4] || (_cache[4] = createElementVNode("span", {
|
|
@@ -691,6 +711,6 @@ var UiEditorTableOverlay_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
691
711
|
}]]);
|
|
692
712
|
};
|
|
693
713
|
}
|
|
694
|
-
}), [["__scopeId", "data-v-
|
|
714
|
+
}), [["__scopeId", "data-v-1f1f8544"]]);
|
|
695
715
|
//#endregion
|
|
696
716
|
export { UiEditorTableOverlay_default as t };
|
|
@@ -386,6 +386,12 @@ var UiEditorTableToolbar_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
386
386
|
if (value === null || value === void 0 || value === false || typeof value === "object" && !Array.isArray(value)) return void 0;
|
|
387
387
|
return value === true ? "" : text(value);
|
|
388
388
|
}
|
|
389
|
+
function concat(...values) {
|
|
390
|
+
if (values.some((value) => value === Symbol.for("html-next.invalid-result"))) return Symbol.for("html-next.invalid-result");
|
|
391
|
+
if (values.some((value) => value === void 0)) return void 0;
|
|
392
|
+
if (values.length === 0 || values.some((value) => typeof value === "object" && value !== null)) return Symbol.for("html-next.invalid-result");
|
|
393
|
+
return values.map((value) => value === null ? "" : String(value)).join("");
|
|
394
|
+
}
|
|
389
395
|
function uniqueKeys(items, keyOf) {
|
|
390
396
|
const seen = /* @__PURE__ */ new Set();
|
|
391
397
|
for (let index = 0; index < items.length; index += 1) {
|
|
@@ -490,20 +496,20 @@ var UiEditorTableToolbar_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
490
496
|
return openBlock(), createElementBlock("button", {
|
|
491
497
|
key: item.action,
|
|
492
498
|
type: "button",
|
|
493
|
-
role: attribute({
|
|
499
|
+
role: attribute(((objectValue, indexValue) => objectValue === Symbol.for("html-next.invalid-result") || indexValue === Symbol.for("html-next.invalid-result") ? Symbol.for("html-next.invalid-result") : objectValue[indexValue])({
|
|
494
500
|
true: "menuitemcheckbox",
|
|
495
501
|
false: "menuitem"
|
|
496
|
-
}
|
|
497
|
-
"aria-checked": typeof {
|
|
502
|
+
}, concat(item.checkable))),
|
|
503
|
+
"aria-checked": typeof ((objectValue, indexValue) => objectValue === Symbol.for("html-next.invalid-result") || indexValue === Symbol.for("html-next.invalid-result") ? Symbol.for("html-next.invalid-result") : objectValue[indexValue])({
|
|
498
504
|
true: item.checked,
|
|
499
505
|
false: null
|
|
500
|
-
}
|
|
506
|
+
}, concat(item.checkable)) === "boolean" ? String(((objectValue, indexValue) => objectValue === Symbol.for("html-next.invalid-result") || indexValue === Symbol.for("html-next.invalid-result") ? Symbol.for("html-next.invalid-result") : objectValue[indexValue])({
|
|
501
507
|
true: item.checked,
|
|
502
508
|
false: null
|
|
503
|
-
}
|
|
509
|
+
}, concat(item.checkable))) : attribute(((objectValue, indexValue) => objectValue === Symbol.for("html-next.invalid-result") || indexValue === Symbol.for("html-next.invalid-result") ? Symbol.for("html-next.invalid-result") : objectValue[indexValue])({
|
|
504
510
|
true: item.checked,
|
|
505
511
|
false: null
|
|
506
|
-
}
|
|
512
|
+
}, concat(item.checkable))),
|
|
507
513
|
"data-action": item.action,
|
|
508
514
|
class: normalizeClass({ danger: item.danger })
|
|
509
515
|
}, [createVNode(UiIcon_default, { name: item.icon }, null, 8, ["name"]), createElementVNode("span", null, toDisplayString(item.label), 1)], 10, _hoisted_16);
|
|
@@ -519,6 +525,6 @@ var UiEditorTableToolbar_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
519
525
|
}]]);
|
|
520
526
|
};
|
|
521
527
|
}
|
|
522
|
-
}), [["__scopeId", "data-v-
|
|
528
|
+
}), [["__scopeId", "data-v-d079b52c"]]);
|
|
523
529
|
//#endregion
|
|
524
530
|
export { UiEditorTableToolbar_default as t };
|
|
@@ -125,6 +125,6 @@ var UiFloatingActionButton_default = /*#__PURE__*/ _plugin_vue_export_helper_def
|
|
|
125
125
|
}]]);
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
}), [["__scopeId", "data-v-
|
|
128
|
+
}), [["__scopeId", "data-v-0f1f83e7"]]);
|
|
129
129
|
//#endregion
|
|
130
130
|
export { UiFloatingActionButton_default as t };
|
package/vue/chunks/UiGrid.js
CHANGED
package/vue/chunks/UiIcon.js
CHANGED
|
@@ -1221,6 +1221,6 @@ var UiIcon_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
1221
1221
|
}]]);
|
|
1222
1222
|
};
|
|
1223
1223
|
}
|
|
1224
|
-
}), [["__scopeId", "data-v-
|
|
1224
|
+
}), [["__scopeId", "data-v-6c9b7b2a"]]);
|
|
1225
1225
|
//#endregion
|
|
1226
1226
|
export { UiIcon_default as t };
|
|
@@ -13,6 +13,7 @@ var _hoisted_1 = [
|
|
|
13
13
|
"data-disabled",
|
|
14
14
|
"data-label",
|
|
15
15
|
"data-loading",
|
|
16
|
+
"data-match-button",
|
|
16
17
|
"data-pending",
|
|
17
18
|
"data-round",
|
|
18
19
|
"data-size",
|
|
@@ -42,6 +43,10 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
42
43
|
type: null,
|
|
43
44
|
default: false
|
|
44
45
|
},
|
|
46
|
+
matchButton: {
|
|
47
|
+
type: null,
|
|
48
|
+
default: false
|
|
49
|
+
},
|
|
45
50
|
pending: {
|
|
46
51
|
type: null,
|
|
47
52
|
default: false
|
|
@@ -100,6 +105,16 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
100
105
|
description: "Keeps the button focusable and named while work is in progress. It shows a spinner, states aria-disabled and aria-busy, and prevents activation until\n cleared.",
|
|
101
106
|
default: false
|
|
102
107
|
},
|
|
108
|
+
matchButton: {
|
|
109
|
+
type: {
|
|
110
|
+
kind: "terminal",
|
|
111
|
+
name: "boolean"
|
|
112
|
+
},
|
|
113
|
+
required: false,
|
|
114
|
+
target: { attribute: "data-match-button" },
|
|
115
|
+
description: "Matches a boxed Button of the same size when the two share a flex row. Uses the control-size theme tokens and stretches to the row's height, including\n touch-sized controls. Leave it off for compact toolbar and inline icon buttons.",
|
|
116
|
+
default: false
|
|
117
|
+
},
|
|
103
118
|
pending: {
|
|
104
119
|
type: {
|
|
105
120
|
kind: "terminal",
|
|
@@ -157,6 +172,7 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
157
172
|
disabled: false,
|
|
158
173
|
label: null,
|
|
159
174
|
loading: false,
|
|
175
|
+
matchButton: false,
|
|
160
176
|
pending: false,
|
|
161
177
|
round: false,
|
|
162
178
|
size: "md",
|
|
@@ -179,6 +195,10 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
179
195
|
kind: "terminal",
|
|
180
196
|
name: "boolean"
|
|
181
197
|
}, false, "loading", acceptedProps),
|
|
198
|
+
matchButton: checkedProp(props["matchButton"], {
|
|
199
|
+
kind: "terminal",
|
|
200
|
+
name: "boolean"
|
|
201
|
+
}, false, "matchButton", acceptedProps),
|
|
182
202
|
pending: checkedProp(props["pending"], {
|
|
183
203
|
kind: "terminal",
|
|
184
204
|
name: "boolean"
|
|
@@ -214,6 +234,23 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
214
234
|
}
|
|
215
235
|
const hydrationInstance = getCurrentInstance();
|
|
216
236
|
const root = ref(null);
|
|
237
|
+
let guardedPrevious = null;
|
|
238
|
+
const guarded = computed(() => {
|
|
239
|
+
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])({
|
|
240
|
+
true: "true",
|
|
241
|
+
false: null
|
|
242
|
+
}, concat(checkedProps.value.loading || checkedProps.value.pending)) === Symbol.for("html-next.invalid-result")) return guardedPrevious;
|
|
243
|
+
return guardedPrevious = typeof ((objectValue, indexValue) => objectValue === Symbol.for("html-next.invalid-result") || indexValue === Symbol.for("html-next.invalid-result") ? Symbol.for("html-next.invalid-result") : objectValue[indexValue])({
|
|
244
|
+
true: "true",
|
|
245
|
+
false: null
|
|
246
|
+
}, concat(checkedProps.value.loading || checkedProps.value.pending)) === "boolean" ? String(((objectValue, indexValue) => objectValue === Symbol.for("html-next.invalid-result") || indexValue === Symbol.for("html-next.invalid-result") ? Symbol.for("html-next.invalid-result") : objectValue[indexValue])({
|
|
247
|
+
true: "true",
|
|
248
|
+
false: null
|
|
249
|
+
}, concat(checkedProps.value.loading || checkedProps.value.pending))) : attribute(((objectValue, indexValue) => objectValue === Symbol.for("html-next.invalid-result") || indexValue === Symbol.for("html-next.invalid-result") ? Symbol.for("html-next.invalid-result") : objectValue[indexValue])({
|
|
250
|
+
true: "true",
|
|
251
|
+
false: null
|
|
252
|
+
}, concat(checkedProps.value.loading || checkedProps.value.pending)));
|
|
253
|
+
});
|
|
217
254
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
218
255
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "button")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-icon-button> has an incompatible root."), {
|
|
219
256
|
name: "HtmlDiagnosticError",
|
|
@@ -231,6 +268,7 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
231
268
|
checkedProps.value.pending && "pending",
|
|
232
269
|
checkedProps.value.size && "size",
|
|
233
270
|
checkedProps.value.size != null && `size=${encodeURIComponent(checkedProps.value.size)}`,
|
|
271
|
+
checkedProps.value.matchButton && "matchButton",
|
|
234
272
|
checkedProps.value.round && "round"
|
|
235
273
|
].filter(Boolean).join(" "));
|
|
236
274
|
const dispatch = createDispatch(root);
|
|
@@ -252,6 +290,7 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
252
290
|
"disabled",
|
|
253
291
|
"label",
|
|
254
292
|
"loading",
|
|
293
|
+
"matchButton",
|
|
255
294
|
"pending",
|
|
256
295
|
"round",
|
|
257
296
|
"size",
|
|
@@ -270,6 +309,12 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
270
309
|
if (value === null || value === void 0 || value === false || typeof value === "object" && !Array.isArray(value)) return void 0;
|
|
271
310
|
return value === true ? "" : text(value);
|
|
272
311
|
}
|
|
312
|
+
function concat(...values) {
|
|
313
|
+
if (values.some((value) => value === Symbol.for("html-next.invalid-result"))) return Symbol.for("html-next.invalid-result");
|
|
314
|
+
if (values.some((value) => value === void 0)) return void 0;
|
|
315
|
+
if (values.length === 0 || values.some((value) => typeof value === "object" && value !== null)) return Symbol.for("html-next.invalid-result");
|
|
316
|
+
return values.map((value) => value === null ? "" : String(value)).join("");
|
|
317
|
+
}
|
|
273
318
|
return (_ctx, _cache) => {
|
|
274
319
|
return withDirectives((openBlock(), createElementBlock("button", mergeProps({
|
|
275
320
|
"data-component": "ui-icon-button",
|
|
@@ -277,21 +322,13 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
277
322
|
}, nativeAttrs(_ctx.$attrs), {
|
|
278
323
|
disabled: checkedProps.value.disabled ?? void 0,
|
|
279
324
|
"aria-label": checkedProps.value.label ?? void 0,
|
|
280
|
-
"aria-disabled":
|
|
281
|
-
true: "true",
|
|
282
|
-
false: null
|
|
283
|
-
}[`${checkedProps.value.loading || checkedProps.value.pending}`] === "boolean" ? String({
|
|
284
|
-
true: "true",
|
|
285
|
-
false: null
|
|
286
|
-
}[`${checkedProps.value.loading || checkedProps.value.pending}`]) : attribute({
|
|
287
|
-
true: "true",
|
|
288
|
-
false: null
|
|
289
|
-
}[`${checkedProps.value.loading || checkedProps.value.pending}`]),
|
|
325
|
+
"aria-disabled": guarded.value,
|
|
290
326
|
"aria-busy": checkedProps.value.loading || checkedProps.value.pending,
|
|
291
327
|
"data-anticipatory": reflectedProp("anticipatory", "anticipatory", checkedProps.value.anticipatory, void 0, false),
|
|
292
328
|
"data-disabled": reflectedProp("disabled", "disabled", checkedProps.value.disabled, void 0, false),
|
|
293
329
|
"data-label": reflectedProp("label", "label", checkedProps.value.label, void 0, false),
|
|
294
330
|
"data-loading": reflectedProp("loading", "loading", checkedProps.value.loading, void 0, false),
|
|
331
|
+
"data-match-button": reflectedProp("matchButton", "match-button", checkedProps.value.matchButton, void 0, true),
|
|
295
332
|
"data-pending": reflectedProp("pending", "pending", checkedProps.value.pending, void 0, false),
|
|
296
333
|
"data-round": reflectedProp("round", "round", checkedProps.value.round, void 0, false),
|
|
297
334
|
"data-size": reflectedProp("size", "size", checkedProps.value.size, void 0, false),
|
|
@@ -308,6 +345,6 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
308
345
|
}]]);
|
|
309
346
|
};
|
|
310
347
|
}
|
|
311
|
-
}), [["__scopeId", "data-v-
|
|
348
|
+
}), [["__scopeId", "data-v-aa0256fc"]]);
|
|
312
349
|
//#endregion
|
|
313
350
|
export { UiIconButton_default as t };
|
package/vue/chunks/UiInput.js
CHANGED
package/vue/chunks/UiList.js
CHANGED
package/vue/chunks/UiListItem.js
CHANGED
package/vue/chunks/UiListbox.js
CHANGED
|
@@ -267,20 +267,31 @@ var UiListbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
267
267
|
const active = ref(-1);
|
|
268
268
|
const uid = ref("");
|
|
269
269
|
const validationError = ref(false);
|
|
270
|
-
let guardedPrevious;
|
|
270
|
+
let guardedPrevious = null;
|
|
271
271
|
const guarded = computed(() => {
|
|
272
|
-
if (
|
|
273
|
-
|
|
272
|
+
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])({
|
|
273
|
+
true: "-1",
|
|
274
|
+
false: "0"
|
|
275
|
+
}, concat(checkedProps.value.disabled)) === Symbol.for("html-next.invalid-result")) return guardedPrevious;
|
|
276
|
+
return guardedPrevious = attribute(((objectValue, indexValue) => objectValue === Symbol.for("html-next.invalid-result") || indexValue === Symbol.for("html-next.invalid-result") ? Symbol.for("html-next.invalid-result") : objectValue[indexValue])({
|
|
277
|
+
true: "-1",
|
|
278
|
+
false: "0"
|
|
279
|
+
}, concat(checkedProps.value.disabled)));
|
|
274
280
|
});
|
|
275
281
|
let guardedBindingPrevious;
|
|
276
282
|
const guardedBinding = computed(() => {
|
|
277
|
-
if (!(
|
|
278
|
-
return guardedBindingPrevious = checkedProps.value.
|
|
283
|
+
if (!(validationError.value == null || typeof validationError.value === "boolean")) return guardedBindingPrevious;
|
|
284
|
+
return guardedBindingPrevious = checkedProps.value.invalid || validationError.value;
|
|
279
285
|
});
|
|
280
286
|
let guardedBinding2Previous;
|
|
281
287
|
const guardedBinding2 = computed(() => {
|
|
282
288
|
if (!(hasSelection.value == null || typeof hasSelection.value === "boolean")) return guardedBinding2Previous;
|
|
283
|
-
return guardedBinding2Previous =
|
|
289
|
+
return guardedBinding2Previous = checkedProps.value.required && !hasSelection.value && !checkedProps.value.disabled;
|
|
290
|
+
});
|
|
291
|
+
let guardedBinding3Previous;
|
|
292
|
+
const guardedBinding3 = computed(() => {
|
|
293
|
+
if (!(hasSelection.value == null || typeof hasSelection.value === "boolean")) return guardedBinding3Previous;
|
|
294
|
+
return guardedBinding3Previous = hasSelection.value ? true : void 0;
|
|
284
295
|
});
|
|
285
296
|
provide("html-next:ui-listbox:choices", choices);
|
|
286
297
|
provide("html-next:ui-listbox:selection", selection);
|
|
@@ -354,6 +365,12 @@ var UiListbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
354
365
|
if (value === null || value === void 0 || value === false || typeof value === "object" && !Array.isArray(value)) return void 0;
|
|
355
366
|
return value === true ? "" : text(value);
|
|
356
367
|
}
|
|
368
|
+
function concat(...values) {
|
|
369
|
+
if (values.some((value) => value === Symbol.for("html-next.invalid-result"))) return Symbol.for("html-next.invalid-result");
|
|
370
|
+
if (values.some((value) => value === void 0)) return void 0;
|
|
371
|
+
if (values.length === 0 || values.some((value) => typeof value === "object" && value !== null)) return Symbol.for("html-next.invalid-result");
|
|
372
|
+
return values.map((value) => value === null ? "" : String(value)).join("");
|
|
373
|
+
}
|
|
357
374
|
function uniqueKeys(items, keyOf) {
|
|
358
375
|
const seen = /* @__PURE__ */ new Set();
|
|
359
376
|
for (let index = 0; index < items.length; index += 1) {
|
|
@@ -382,14 +399,11 @@ var UiListbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
382
399
|
"data-component": "ui-listbox",
|
|
383
400
|
role: "listbox"
|
|
384
401
|
}, nativeAttrs(_ctx.$attrs), {
|
|
385
|
-
tabindex:
|
|
386
|
-
true: "-1",
|
|
387
|
-
false: "0"
|
|
388
|
-
}[`${checkedProps.value.disabled ?? ""}`]),
|
|
402
|
+
tabindex: guarded.value,
|
|
389
403
|
"aria-multiselectable": checkedProps.value.multiple ?? void 0,
|
|
390
404
|
"aria-disabled": checkedProps.value.disabled ?? void 0,
|
|
391
405
|
"aria-required": checkedProps.value.required ?? void 0,
|
|
392
|
-
"aria-invalid":
|
|
406
|
+
"aria-invalid": guardedBinding.value,
|
|
393
407
|
style: { "--_rows": checkedProps.value.rows ?? void 0 },
|
|
394
408
|
"data-disabled": reflectedProp("disabled", "disabled", checkedProps.value.disabled, void 0, false),
|
|
395
409
|
"data-invalid": reflectedProp("invalid", "invalid", checkedProps.value.invalid, void 0, false),
|
|
@@ -415,7 +429,7 @@ var UiListbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
415
429
|
role: "option",
|
|
416
430
|
"data-ui-choice-option": "",
|
|
417
431
|
"data-multiple": checkedProps.value.multiple ? "" : void 0,
|
|
418
|
-
id:
|
|
432
|
+
id: concat(uid.value, "-option-", choice.index),
|
|
419
433
|
"data-index": choice.index,
|
|
420
434
|
"aria-selected": choice.selected,
|
|
421
435
|
"aria-disabled": choice.disabled
|
|
@@ -448,8 +462,8 @@ var UiListbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
448
462
|
type: "checkbox",
|
|
449
463
|
"aria-hidden": "true",
|
|
450
464
|
tabindex: "-1",
|
|
451
|
-
required:
|
|
452
|
-
"^checked":
|
|
465
|
+
required: guardedBinding2.value,
|
|
466
|
+
"^checked": guardedBinding3.value,
|
|
453
467
|
disabled: checkedProps.value.disabled ?? void 0,
|
|
454
468
|
ref: "validity"
|
|
455
469
|
}, null, 8, _hoisted_5)
|
|
@@ -459,6 +473,6 @@ var UiListbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
459
473
|
}]]);
|
|
460
474
|
};
|
|
461
475
|
}
|
|
462
|
-
}), [["__scopeId", "data-v-
|
|
476
|
+
}), [["__scopeId", "data-v-a67b553e"]]);
|
|
463
477
|
//#endregion
|
|
464
478
|
export { UiListbox_default as t };
|
package/vue/chunks/UiMenu.js
CHANGED
package/vue/chunks/UiMenuItem.js
CHANGED
|
@@ -181,10 +181,21 @@ var UiMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
181
181
|
const root = useTemplateRef("@html-next/root");
|
|
182
182
|
preserveRootFocus(root);
|
|
183
183
|
const internalChecked = ref(false);
|
|
184
|
-
let guardedPrevious;
|
|
184
|
+
let guardedPrevious = null;
|
|
185
185
|
const guarded = computed(() => {
|
|
186
|
-
if (
|
|
187
|
-
|
|
186
|
+
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])({
|
|
187
|
+
true: null,
|
|
188
|
+
false: checkedProps.value.href
|
|
189
|
+
}, concat(checkedProps.value.disabled)) === Symbol.for("html-next.invalid-result")) return guardedPrevious;
|
|
190
|
+
return guardedPrevious = attribute(((objectValue, indexValue) => objectValue === Symbol.for("html-next.invalid-result") || indexValue === Symbol.for("html-next.invalid-result") ? Symbol.for("html-next.invalid-result") : objectValue[indexValue])({
|
|
191
|
+
true: null,
|
|
192
|
+
false: checkedProps.value.href
|
|
193
|
+
}, concat(checkedProps.value.disabled)));
|
|
194
|
+
});
|
|
195
|
+
let guardedBindingPrevious;
|
|
196
|
+
const guardedBinding = computed(() => {
|
|
197
|
+
if (!(internalChecked.value == null || typeof internalChecked.value === "boolean")) return guardedBindingPrevious;
|
|
198
|
+
return guardedBindingPrevious = typeof {
|
|
188
199
|
action: null,
|
|
189
200
|
checkbox: internalChecked.value,
|
|
190
201
|
radio: internalChecked.value
|
|
@@ -257,6 +268,12 @@ var UiMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
257
268
|
if (value === null || value === void 0 || value === false || typeof value === "object" && !Array.isArray(value)) return void 0;
|
|
258
269
|
return value === true ? "" : text(value);
|
|
259
270
|
}
|
|
271
|
+
function concat(...values) {
|
|
272
|
+
if (values.some((value) => value === Symbol.for("html-next.invalid-result"))) return Symbol.for("html-next.invalid-result");
|
|
273
|
+
if (values.some((value) => value === void 0)) return void 0;
|
|
274
|
+
if (values.length === 0 || values.some((value) => typeof value === "object" && value !== null)) return Symbol.for("html-next.invalid-result");
|
|
275
|
+
return values.map((value) => value === null ? "" : String(value)).join("");
|
|
276
|
+
}
|
|
260
277
|
return (_ctx, _cache) => {
|
|
261
278
|
return checkedProps.value.href && checkedProps.value.type === "action" ? withDirectives((openBlock(), createElementBlock("a", mergeProps({
|
|
262
279
|
key: 0,
|
|
@@ -265,10 +282,7 @@ var UiMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
265
282
|
tabindex: "-1"
|
|
266
283
|
}, nativeAttrs(_ctx.$attrs), {
|
|
267
284
|
"aria-disabled": checkedProps.value.disabled ?? void 0,
|
|
268
|
-
href:
|
|
269
|
-
true: null,
|
|
270
|
-
false: checkedProps.value.href
|
|
271
|
-
}[`${checkedProps.value.disabled ?? ""}`]),
|
|
285
|
+
href: guarded.value,
|
|
272
286
|
"data-checked": reflectedProp("checked", "checked", checkedProps.value.checked, void 0, false),
|
|
273
287
|
"data-disabled": reflectedProp("disabled", "disabled", checkedProps.value.disabled, void 0, false),
|
|
274
288
|
"data-href": reflectedProp("href", "href", checkedProps.value.href, void 0, false),
|
|
@@ -289,7 +303,7 @@ var UiMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
289
303
|
checkbox: "menuitemcheckbox",
|
|
290
304
|
radio: "menuitemradio"
|
|
291
305
|
}[checkedProps.value.type]),
|
|
292
|
-
"aria-checked":
|
|
306
|
+
"aria-checked": guardedBinding.value,
|
|
293
307
|
"aria-disabled": checkedProps.value.disabled ?? void 0,
|
|
294
308
|
"data-checked": reflectedProp("checked", "checked", checkedProps.value.checked, void 0, false),
|
|
295
309
|
"data-disabled": reflectedProp("disabled", "disabled", checkedProps.value.disabled, void 0, false),
|
|
@@ -311,6 +325,6 @@ var UiMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
311
325
|
}]]);
|
|
312
326
|
};
|
|
313
327
|
}
|
|
314
|
-
}), [["__scopeId", "data-v-
|
|
328
|
+
}), [["__scopeId", "data-v-3029feac"]]);
|
|
315
329
|
//#endregion
|
|
316
330
|
export { UiMenuItem_default as t };
|