@threadlabs/looma 0.23.16 → 0.23.18
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 +1 -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/ui-tree.js +20 -1
- package/components/ui-tree-item/ui-tree-item.html +3 -3
- package/components/ui-tree-item/ui-tree-item.js +3 -0
- 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 +1 -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 +1 -1
- package/vanilla/UiIconButton.js +2 -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.vue +58 -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 +25 -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 +1302 -1302
- package/vue/editor/index.js +21 -10
- package/vue/host.ts +15 -3
package/vue/UiCombobox.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.25 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import {
|
|
4
4
|
computed,
|
|
@@ -891,77 +891,178 @@ const createIndex = ref(0)
|
|
|
891
891
|
const message = ref('')
|
|
892
892
|
const statusText = ref('')
|
|
893
893
|
const validationStatus = ref('pristine')
|
|
894
|
-
let guardedPrevious: any
|
|
894
|
+
let guardedPrevious: any = null
|
|
895
895
|
const guarded = computed(() => {
|
|
896
|
-
if (!(
|
|
897
|
-
|
|
896
|
+
if (!(uid.value == null || typeof uid.value === 'string')) return guardedPrevious
|
|
897
|
+
const candidate: any = concat(uid.value, '-input')
|
|
898
|
+
if (candidate === Symbol.for('html-next.invalid-result')) return guardedPrevious
|
|
899
|
+
return guardedPrevious = candidate
|
|
898
900
|
})
|
|
899
|
-
let guardedBindingPrevious: any
|
|
901
|
+
let guardedBindingPrevious: any = null
|
|
900
902
|
const guardedBinding = computed(() => {
|
|
903
|
+
if (!(uid.value == null || typeof uid.value === 'string')) return guardedBindingPrevious
|
|
904
|
+
const candidate: any = concat(uid.value, '-input')
|
|
905
|
+
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBindingPrevious
|
|
906
|
+
return guardedBindingPrevious = candidate
|
|
907
|
+
})
|
|
908
|
+
let guardedBinding2Previous: any = null
|
|
909
|
+
const guardedBinding2 = computed(() => {
|
|
910
|
+
if (!(uid.value == null || typeof uid.value === 'string')) return guardedBinding2Previous
|
|
911
|
+
const candidate: any = concat(uid.value, '-listbox')
|
|
912
|
+
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding2Previous
|
|
913
|
+
return guardedBinding2Previous = candidate
|
|
914
|
+
})
|
|
915
|
+
let guardedBinding3Previous: any
|
|
916
|
+
const guardedBinding3 = computed(() => {
|
|
917
|
+
if (!(expanded.value == null || typeof expanded.value === 'boolean')) {
|
|
918
|
+
return guardedBinding3Previous
|
|
919
|
+
}
|
|
920
|
+
return guardedBinding3Previous = expanded.value
|
|
921
|
+
})
|
|
922
|
+
let guardedBinding4Previous: any
|
|
923
|
+
const guardedBinding4 = computed(() => {
|
|
901
924
|
if (!(validationStatus.value == null || typeof validationStatus.value === 'string')) {
|
|
902
|
-
return
|
|
925
|
+
return guardedBinding4Previous
|
|
903
926
|
}
|
|
904
|
-
return
|
|
927
|
+
return guardedBinding4Previous = checkedProps.value.invalid || validationStatus.value === 'error'
|
|
905
928
|
})
|
|
906
|
-
let
|
|
907
|
-
const
|
|
929
|
+
let guardedBinding5Previous: any
|
|
930
|
+
const guardedBinding5 = computed(() => {
|
|
908
931
|
if (!(validationStatus.value == null || typeof validationStatus.value === 'string')) {
|
|
909
|
-
return
|
|
932
|
+
return guardedBinding5Previous
|
|
910
933
|
}
|
|
911
|
-
return
|
|
934
|
+
return guardedBinding5Previous = checkedProps.value.loading
|
|
912
935
|
|| validationStatus.value === 'pending'
|
|
913
936
|
})
|
|
914
|
-
let
|
|
915
|
-
const
|
|
937
|
+
let guardedBinding6Previous: any
|
|
938
|
+
const guardedBinding6 = computed(() => {
|
|
939
|
+
if (!(display.value == null || typeof display.value === 'string')) return guardedBinding6Previous
|
|
940
|
+
return guardedBinding6Previous = display.value
|
|
941
|
+
})
|
|
942
|
+
let guardedBinding7Previous: any
|
|
943
|
+
const guardedBinding7 = computed(() => {
|
|
916
944
|
if (
|
|
917
945
|
!(internalItems.value?.['0'] == null
|
|
918
946
|
|| (typeof internalItems.value?.['0'] === 'object' && internalItems.value?.['0'] !== null
|
|
919
947
|
&& !Array.isArray(internalItems.value?.['0'])))
|
|
920
|
-
) return
|
|
921
|
-
return
|
|
948
|
+
) return guardedBinding7Previous
|
|
949
|
+
return guardedBinding7Previous = checkedProps.value.required
|
|
922
950
|
&& !(checkedProps.value.multiple && internalItems.value[0])
|
|
923
951
|
})
|
|
924
|
-
let
|
|
925
|
-
const
|
|
952
|
+
let guardedBinding8Previous: any
|
|
953
|
+
const guardedBinding8 = computed(() => {
|
|
926
954
|
if (!(submitted.value == null || typeof submitted.value === 'string')) {
|
|
927
|
-
return
|
|
955
|
+
return guardedBinding8Previous
|
|
928
956
|
}
|
|
929
|
-
return
|
|
957
|
+
return guardedBinding8Previous = submitted.value
|
|
930
958
|
})
|
|
931
|
-
let
|
|
932
|
-
const
|
|
959
|
+
let guardedBinding9Previous: any
|
|
960
|
+
const guardedBinding9 = computed(() => {
|
|
933
961
|
if (
|
|
934
962
|
!((raw.value == null || typeof raw.value === 'string')
|
|
935
963
|
&& (selected.value == null || typeof selected.value === 'string'))
|
|
936
|
-
) return
|
|
937
|
-
return
|
|
964
|
+
) return guardedBinding9Previous
|
|
965
|
+
return guardedBinding9Previous = checkedProps.value.disabled || checkedProps.value.readonly
|
|
938
966
|
|| (!raw.value && (checkedProps.value.multiple || selected.value === null))
|
|
939
967
|
})
|
|
940
|
-
let
|
|
941
|
-
const
|
|
968
|
+
let guardedBinding10Previous: any = null
|
|
969
|
+
const guardedBinding10 = computed(() => {
|
|
970
|
+
if (!(uid.value == null || typeof uid.value === 'string')) return guardedBinding10Previous
|
|
971
|
+
const candidate: any = concat(uid.value, '-listbox')
|
|
972
|
+
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding10Previous
|
|
973
|
+
return guardedBinding10Previous = candidate
|
|
974
|
+
})
|
|
975
|
+
let guardedBinding11Previous: any = null
|
|
976
|
+
const guardedBinding11 = computed(() => {
|
|
977
|
+
if (!(uid.value == null || typeof uid.value === 'string')) return guardedBinding11Previous
|
|
978
|
+
const candidate: any = concat(uid.value, '-help')
|
|
979
|
+
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding11Previous
|
|
980
|
+
return guardedBinding11Previous = candidate
|
|
981
|
+
})
|
|
982
|
+
let guardedBinding12Previous: any = null
|
|
983
|
+
const guardedBinding12 = computed(() => {
|
|
984
|
+
if (!(uid.value == null || typeof uid.value === 'string')) return guardedBinding12Previous
|
|
985
|
+
const candidate: any = concat(uid.value, '-help-text')
|
|
986
|
+
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding12Previous
|
|
987
|
+
return guardedBinding12Previous = candidate
|
|
988
|
+
})
|
|
989
|
+
let guardedBinding13Previous: any = null
|
|
990
|
+
const guardedBinding13 = computed(() => {
|
|
991
|
+
if (!(uid.value == null || typeof uid.value === 'string')) return guardedBinding13Previous
|
|
992
|
+
const candidate: any = concat(uid.value, '-help')
|
|
993
|
+
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding13Previous
|
|
994
|
+
return guardedBinding13Previous = candidate
|
|
995
|
+
})
|
|
996
|
+
let guardedBinding14Previous: any
|
|
997
|
+
const guardedBinding14 = computed(() => {
|
|
942
998
|
if (!(expanded.value == null || typeof expanded.value === 'boolean')) {
|
|
943
|
-
return
|
|
999
|
+
return guardedBinding14Previous
|
|
944
1000
|
}
|
|
945
|
-
return
|
|
1001
|
+
return guardedBinding14Previous = !expanded.value
|
|
946
1002
|
})
|
|
947
|
-
let
|
|
948
|
-
const
|
|
1003
|
+
let guardedBinding15Previous: any = null
|
|
1004
|
+
const guardedBinding15 = computed(() => {
|
|
1005
|
+
if (!(uid.value == null || typeof uid.value === 'string')) return guardedBinding15Previous
|
|
1006
|
+
const candidate: any = concat(uid.value, '-listbox')
|
|
1007
|
+
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding15Previous
|
|
1008
|
+
return guardedBinding15Previous = candidate
|
|
1009
|
+
})
|
|
1010
|
+
let guardedBinding16Previous: any = null
|
|
1011
|
+
const guardedBinding16 = computed(() => {
|
|
1012
|
+
const candidate: any = concat(checkedProps.value.label, ' suggestions')
|
|
1013
|
+
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding16Previous
|
|
1014
|
+
return guardedBinding16Previous = candidate
|
|
1015
|
+
})
|
|
1016
|
+
let guardedBinding17Previous: any
|
|
1017
|
+
const guardedBinding17 = computed(() => {
|
|
1018
|
+
if (
|
|
1019
|
+
!((active.value == null || Number.isInteger(active.value))
|
|
1020
|
+
&& (createIndex.value == null || Number.isInteger(createIndex.value)))
|
|
1021
|
+
) return guardedBinding17Previous
|
|
1022
|
+
return guardedBinding17Previous = createIndex.value === active.value
|
|
1023
|
+
})
|
|
1024
|
+
let guardedBinding18Previous: any = null
|
|
1025
|
+
const guardedBinding18 = computed(() => {
|
|
1026
|
+
if (
|
|
1027
|
+
!((createIndex.value == null || Number.isInteger(createIndex.value))
|
|
1028
|
+
&& (uid.value == null || typeof uid.value === 'string'))
|
|
1029
|
+
) return guardedBinding18Previous
|
|
1030
|
+
const candidate: any = concat(uid.value, '-option-', createIndex.value)
|
|
1031
|
+
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding18Previous
|
|
1032
|
+
return guardedBinding18Previous = candidate
|
|
1033
|
+
})
|
|
1034
|
+
let guardedBinding19Previous: any
|
|
1035
|
+
const guardedBinding19 = computed(() => {
|
|
949
1036
|
if (!(createIndex.value == null || Number.isInteger(createIndex.value))) {
|
|
950
|
-
return
|
|
1037
|
+
return guardedBinding19Previous
|
|
951
1038
|
}
|
|
952
|
-
return
|
|
1039
|
+
return guardedBinding19Previous = createIndex.value
|
|
953
1040
|
})
|
|
954
|
-
let
|
|
955
|
-
const
|
|
956
|
-
if (!(
|
|
957
|
-
|
|
1041
|
+
let guardedBinding20Previous: any = null
|
|
1042
|
+
const guardedBinding20 = computed(() => {
|
|
1043
|
+
if (!(raw.value == null || typeof raw.value === 'string')) return guardedBinding20Previous
|
|
1044
|
+
const candidate: any = concat('Create “', raw.value, '”')
|
|
1045
|
+
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding20Previous
|
|
1046
|
+
return guardedBinding20Previous = candidate
|
|
958
1047
|
})
|
|
959
|
-
let
|
|
960
|
-
const
|
|
1048
|
+
let guardedBinding21Previous: any
|
|
1049
|
+
const guardedBinding21 = computed(() => {
|
|
1050
|
+
if (!(message.value == null || typeof message.value === 'string')) return guardedBinding21Previous
|
|
1051
|
+
return guardedBinding21Previous = message.value
|
|
1052
|
+
})
|
|
1053
|
+
let guardedBinding22Previous: any = null
|
|
1054
|
+
const guardedBinding22 = computed(() => {
|
|
1055
|
+
if (!(uid.value == null || typeof uid.value === 'string')) return guardedBinding22Previous
|
|
1056
|
+
const candidate: any = concat(uid.value, '-validation')
|
|
1057
|
+
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding22Previous
|
|
1058
|
+
return guardedBinding22Previous = candidate
|
|
1059
|
+
})
|
|
1060
|
+
let guardedBinding23Previous: any
|
|
1061
|
+
const guardedBinding23 = computed(() => {
|
|
961
1062
|
if (!(statusText.value == null || typeof statusText.value === 'string')) {
|
|
962
|
-
return
|
|
1063
|
+
return guardedBinding23Previous
|
|
963
1064
|
}
|
|
964
|
-
return
|
|
1065
|
+
return guardedBinding23Previous = statusText.value
|
|
965
1066
|
})
|
|
966
1067
|
provide('html-next:ui-combobox:internalItems', internalItems)
|
|
967
1068
|
provide('html-next:ui-combobox:raw', raw)
|
|
@@ -1403,6 +1504,24 @@ function text(value: unknown): string {
|
|
|
1403
1504
|
return value === null || value === undefined || typeof value === 'object' ? '' : String(value)
|
|
1404
1505
|
}
|
|
1405
1506
|
|
|
1507
|
+
// A nonempty scalar call cannot produce the invalid-result sentinel.
|
|
1508
|
+
type ConcatResult<T extends unknown[]> = T extends
|
|
1509
|
+
[
|
|
1510
|
+
string | number | boolean | null | undefined,
|
|
1511
|
+
...(string | number | boolean | null | undefined)[],
|
|
1512
|
+
] ? string | undefined
|
|
1513
|
+
: string | symbol | undefined
|
|
1514
|
+
function concat<T extends unknown[]>(...values: T): ConcatResult<T> {
|
|
1515
|
+
if (values.some(value => value === Symbol.for('html-next.invalid-result'))) {
|
|
1516
|
+
return Symbol.for('html-next.invalid-result') as ConcatResult<T>
|
|
1517
|
+
}
|
|
1518
|
+
if (values.some(value => value === undefined)) return undefined as ConcatResult<T>
|
|
1519
|
+
if (values.length === 0 || values.some(value => typeof value === 'object' && value !== null)) {
|
|
1520
|
+
return Symbol.for('html-next.invalid-result') as ConcatResult<T>
|
|
1521
|
+
}
|
|
1522
|
+
return values.map(value => value === null ? '' : String(value)).join('') as ConcatResult<T>
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1406
1525
|
function uniqueKeys<T>(
|
|
1407
1526
|
items: readonly T[],
|
|
1408
1527
|
keyOf: (
|
|
@@ -1465,11 +1584,9 @@ function uniqueKeys<T>(
|
|
|
1465
1584
|
:data-ui-combobox-state="hostState || undefined"
|
|
1466
1585
|
ref="root"
|
|
1467
1586
|
>
|
|
1468
|
-
<label
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
>{{ checkedProps.label }}
|
|
1472
|
-
<template v-if="checkedProps.required">
|
|
1587
|
+
<label :for="guarded" :class="{ 'sr-only': checkedProps.labelVisibility === 'sr-only' }">{{
|
|
1588
|
+
checkedProps.label
|
|
1589
|
+
}}<template v-if="checkedProps.required">
|
|
1473
1590
|
*</template></label>
|
|
1474
1591
|
<div class="control">
|
|
1475
1592
|
<div class="field" ref="field">
|
|
@@ -1483,24 +1600,24 @@ function uniqueKeys<T>(
|
|
|
1483
1600
|
tabindex="-1"
|
|
1484
1601
|
:data-index="index"
|
|
1485
1602
|
:disabled="checkedProps.disabled || checkedProps.readonly || item.disabled"
|
|
1486
|
-
:aria-label="
|
|
1603
|
+
:aria-label="concat(item.label, ', press Delete or Backspace to remove')"
|
|
1487
1604
|
>
|
|
1488
|
-
<slot :name="
|
|
1605
|
+
<slot :name="concat('item-', item.id)"><UiBadge>{{ item.label }}</UiBadge></slot>
|
|
1489
1606
|
</button></KeyedBoundary></template>
|
|
1490
1607
|
<input
|
|
1491
1608
|
role="combobox"
|
|
1492
1609
|
aria-autocomplete="list"
|
|
1493
1610
|
autocomplete="off"
|
|
1494
1611
|
v-bind-control="{ tag: 'input', name: 'value', value: display, nativeProperty: true, defaultValue: '' }"
|
|
1495
|
-
:id="
|
|
1496
|
-
:aria-controls="
|
|
1497
|
-
:aria-expanded="
|
|
1498
|
-
:aria-invalid="
|
|
1499
|
-
:aria-busy="
|
|
1612
|
+
:id="guardedBinding"
|
|
1613
|
+
:aria-controls="guardedBinding2"
|
|
1614
|
+
:aria-expanded="guardedBinding3"
|
|
1615
|
+
:aria-invalid="guardedBinding4"
|
|
1616
|
+
:aria-busy="guardedBinding5"
|
|
1500
1617
|
:placeholder="checkedProps.placeholder ?? undefined"
|
|
1501
1618
|
:disabled="checkedProps.disabled ?? undefined"
|
|
1502
1619
|
:readonly="checkedProps.readonly ?? undefined"
|
|
1503
|
-
:required="
|
|
1620
|
+
:required="guardedBinding7"
|
|
1504
1621
|
ref="input"
|
|
1505
1622
|
>
|
|
1506
1623
|
</div>
|
|
@@ -1508,7 +1625,7 @@ function uniqueKeys<T>(
|
|
|
1508
1625
|
v-if="checkedProps.name && !checkedProps.multiple"
|
|
1509
1626
|
type="hidden"
|
|
1510
1627
|
:name="checkedProps.name ?? undefined"
|
|
1511
|
-
:value.attr="
|
|
1628
|
+
:value.attr="guardedBinding8"
|
|
1512
1629
|
:disabled="checkedProps.disabled ?? undefined"
|
|
1513
1630
|
>
|
|
1514
1631
|
<template v-if="checkedProps.name && checkedProps.multiple"><KeyedBoundary><input
|
|
@@ -1524,7 +1641,7 @@ function uniqueKeys<T>(
|
|
|
1524
1641
|
type="button"
|
|
1525
1642
|
data-combobox-action="clear"
|
|
1526
1643
|
aria-label="Clear"
|
|
1527
|
-
:disabled="
|
|
1644
|
+
:disabled="guardedBinding9"
|
|
1528
1645
|
>
|
|
1529
1646
|
<svg
|
|
1530
1647
|
class="affordance-icon"
|
|
@@ -1544,7 +1661,7 @@ function uniqueKeys<T>(
|
|
|
1544
1661
|
data-combobox-action="disclosure"
|
|
1545
1662
|
tabindex="-1"
|
|
1546
1663
|
aria-label="Show suggestions"
|
|
1547
|
-
:aria-controls="
|
|
1664
|
+
:aria-controls="guardedBinding10"
|
|
1548
1665
|
:disabled="checkedProps.disabled || checkedProps.readonly"
|
|
1549
1666
|
>
|
|
1550
1667
|
<svg
|
|
@@ -1566,7 +1683,7 @@ function uniqueKeys<T>(
|
|
|
1566
1683
|
class="help"
|
|
1567
1684
|
type="button"
|
|
1568
1685
|
aria-label="Help"
|
|
1569
|
-
:id="
|
|
1686
|
+
:id="guardedBinding11"
|
|
1570
1687
|
:disabled="checkedProps.disabled ?? undefined"
|
|
1571
1688
|
>
|
|
1572
1689
|
<svg
|
|
@@ -1588,14 +1705,14 @@ function uniqueKeys<T>(
|
|
|
1588
1705
|
<UiTooltip
|
|
1589
1706
|
v-if="checkedProps.help"
|
|
1590
1707
|
trigger="click"
|
|
1591
|
-
:id="
|
|
1592
|
-
:for="
|
|
1708
|
+
:id="guardedBinding12"
|
|
1709
|
+
:for="guardedBinding13"
|
|
1593
1710
|
>{{ checkedProps.help }}</UiTooltip>
|
|
1594
|
-
<div class="popup" :hidden="
|
|
1711
|
+
<div class="popup" :hidden="guardedBinding14" ref="popup">
|
|
1595
1712
|
<div
|
|
1596
1713
|
role="listbox"
|
|
1597
|
-
:id="
|
|
1598
|
-
:aria-label="
|
|
1714
|
+
:id="guardedBinding15"
|
|
1715
|
+
:aria-label="guardedBinding16"
|
|
1599
1716
|
:aria-busy="checkedProps.loading ?? undefined"
|
|
1600
1717
|
ref="listbox"
|
|
1601
1718
|
>
|
|
@@ -1613,7 +1730,7 @@ function uniqueKeys<T>(
|
|
|
1613
1730
|
role="option"
|
|
1614
1731
|
data-ui-choice-option=""
|
|
1615
1732
|
:data-multiple="checkedProps.multiple ? '' : undefined"
|
|
1616
|
-
:id="
|
|
1733
|
+
:id="concat(uid, '-option-', row.index)"
|
|
1617
1734
|
:aria-selected="row.selected"
|
|
1618
1735
|
:aria-disabled="row.disabled"
|
|
1619
1736
|
:data-index="row.index"
|
|
@@ -1621,22 +1738,22 @@ function uniqueKeys<T>(
|
|
|
1621
1738
|
:aria-describedby="row.detail ?? undefined"
|
|
1622
1739
|
:class="{ active: row.index === active }"
|
|
1623
1740
|
>
|
|
1624
|
-
<slot :name="
|
|
1741
|
+
<slot :name="concat('option-', row.id)"><span v-if="row.detail" class="detail"><span
|
|
1625
1742
|
class="line"
|
|
1626
|
-
><span class="primary" :id="
|
|
1743
|
+
><span class="primary" :id="concat(uid, '-option-', row.index, '-label')">{{
|
|
1627
1744
|
row.label
|
|
1628
1745
|
}}</span>
|
|
1629
1746
|
<UiBadge
|
|
1630
1747
|
v-if="row.tag"
|
|
1631
1748
|
:tone="row.tag?.tone"
|
|
1632
1749
|
:style="{ '--ui-badge-color': row.tag?.color ?? undefined }"
|
|
1633
|
-
><span :id="
|
|
1750
|
+
><span :id="concat(uid, '-option-', row.index, '-tag')">{{
|
|
1634
1751
|
row.tag?.label
|
|
1635
1752
|
}}</span></UiBadge></span>
|
|
1636
1753
|
<span
|
|
1637
1754
|
v-if="row.description"
|
|
1638
1755
|
class="description"
|
|
1639
|
-
:id="
|
|
1756
|
+
:id="concat(uid, '-option-', row.index, '-description')"
|
|
1640
1757
|
>{{ row.description }}</span></span>
|
|
1641
1758
|
<span v-if="!row.detail" class="primary">{{ row.label }}</span></slot>
|
|
1642
1759
|
</div></KeyedBoundary>
|
|
@@ -1648,13 +1765,13 @@ function uniqueKeys<T>(
|
|
|
1648
1765
|
data-ui-choice-option=""
|
|
1649
1766
|
aria-selected="false"
|
|
1650
1767
|
:data-multiple="checkedProps.multiple ? '' : undefined"
|
|
1651
|
-
:id="
|
|
1652
|
-
:data-index="
|
|
1653
|
-
:class="{ active:
|
|
1768
|
+
:id="guardedBinding18"
|
|
1769
|
+
:data-index="guardedBinding19"
|
|
1770
|
+
:class="{ active: guardedBinding17 }"
|
|
1654
1771
|
>
|
|
1655
|
-
{{
|
|
1772
|
+
{{ guardedBinding20 }}
|
|
1656
1773
|
</div>
|
|
1657
|
-
<div v-if="message" class="message">{{
|
|
1774
|
+
<div v-if="message" class="message">{{ guardedBinding21 }}</div>
|
|
1658
1775
|
<div
|
|
1659
1776
|
v-if="!checkedProps.loading && !(rows[0]) && !creatable && !lookupError"
|
|
1660
1777
|
class="message"
|
|
@@ -1664,13 +1781,13 @@ function uniqueKeys<T>(
|
|
|
1664
1781
|
</div>
|
|
1665
1782
|
<slot name="footer" />
|
|
1666
1783
|
</div>
|
|
1667
|
-
<div class="message" :id="
|
|
1784
|
+
<div class="message" :id="guardedBinding22" :hidden="!validation.issues.length">
|
|
1668
1785
|
<div v-for="(issue, indexLoop3) in validation.issues" :key="indexLoop3">
|
|
1669
1786
|
{{ issue.message }}
|
|
1670
1787
|
</div>
|
|
1671
1788
|
</div>
|
|
1672
1789
|
<div class="sr-only" role="status" aria-live="polite" aria-atomic="true">
|
|
1673
|
-
{{
|
|
1790
|
+
{{ guardedBinding23 }}
|
|
1674
1791
|
</div>
|
|
1675
1792
|
<div class="authored-options" hidden="" aria-hidden="true" ref="options"><slot /></div>
|
|
1676
1793
|
</div>
|
package/vue/UiContainer.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.25 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
package/vue/UiContextMenu.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.25 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
package/vue/UiCover.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.25 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.25 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.25 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
package/vue/UiDialog.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.25 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
package/vue/UiDisclosure.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.25 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
package/vue/UiEditable.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.25 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -283,10 +283,15 @@ const guarded = computed(() => {
|
|
|
283
283
|
})
|
|
284
284
|
let guardedBindingPrevious: any
|
|
285
285
|
const guardedBinding = computed(() => {
|
|
286
|
+
if (!(draft.value == null || typeof draft.value === 'string')) return guardedBindingPrevious
|
|
287
|
+
return guardedBindingPrevious = draft.value
|
|
288
|
+
})
|
|
289
|
+
let guardedBinding2Previous: any
|
|
290
|
+
const guardedBinding2 = computed(() => {
|
|
286
291
|
if (!(internalEdit.value == null || typeof internalEdit.value === 'boolean')) {
|
|
287
|
-
return
|
|
292
|
+
return guardedBinding2Previous
|
|
288
293
|
}
|
|
289
|
-
return
|
|
294
|
+
return guardedBinding2Previous = checkedProps.value.disabled || !internalEdit.value
|
|
290
295
|
})
|
|
291
296
|
provide('html-next:ui-editable:internalEdit', internalEdit)
|
|
292
297
|
provide('html-next:ui-editable:internalValue', internalValue)
|
|
@@ -428,7 +433,7 @@ useComponentHost(() => import('../components/ui-editable/ui-editable.js'), {
|
|
|
428
433
|
:aria-label="checkedProps.label ?? undefined"
|
|
429
434
|
:placeholder="checkedProps.placeholder ?? undefined"
|
|
430
435
|
:required="checkedProps.required ?? undefined"
|
|
431
|
-
:disabled="
|
|
436
|
+
:disabled="guardedBinding2"
|
|
432
437
|
ref="input"
|
|
433
438
|
>
|
|
434
439
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.25 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import {
|
|
4
4
|
computed,
|
|
@@ -177,6 +177,23 @@ const guarded = computed(() => {
|
|
|
177
177
|
if (!(hint.value == null || typeof hint.value === 'string')) return guardedPrevious
|
|
178
178
|
return guardedPrevious = hint.value
|
|
179
179
|
})
|
|
180
|
+
let guardedBindingPrevious: any
|
|
181
|
+
const guardedBinding = computed(() => {
|
|
182
|
+
if (!(rows.value == null || Number.isInteger(rows.value))) return guardedBindingPrevious
|
|
183
|
+
return guardedBindingPrevious = rows.value
|
|
184
|
+
})
|
|
185
|
+
let guardedBinding2Previous: any
|
|
186
|
+
const guardedBinding2 = computed(() => {
|
|
187
|
+
if (!(cols.value == null || Number.isInteger(cols.value))) return guardedBinding2Previous
|
|
188
|
+
return guardedBinding2Previous = cols.value
|
|
189
|
+
})
|
|
190
|
+
let guardedBinding3Previous: any
|
|
191
|
+
const guardedBinding3 = computed(() => {
|
|
192
|
+
if (!(withHeaderRow.value == null || typeof withHeaderRow.value === 'boolean')) {
|
|
193
|
+
return guardedBinding3Previous
|
|
194
|
+
}
|
|
195
|
+
return guardedBinding3Previous = withHeaderRow.value
|
|
196
|
+
})
|
|
180
197
|
provide('html-next:ui-editor-insert-table-grid:cells', cells)
|
|
181
198
|
provide('html-next:ui-editor-insert-table-grid:rows', rows)
|
|
182
199
|
provide('html-next:ui-editor-insert-table-grid:cols', cols)
|
|
@@ -287,7 +304,7 @@ function uniqueKeys<T>(
|
|
|
287
304
|
class="grid"
|
|
288
305
|
role="group"
|
|
289
306
|
aria-label="Table dimensions"
|
|
290
|
-
:style="{ '--_rows':
|
|
307
|
+
:style="{ '--_rows': guardedBinding, '--_cols': guardedBinding2 }"
|
|
291
308
|
ref="grid"
|
|
292
309
|
>
|
|
293
310
|
<KeyedBoundary><button
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.25 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -354,6 +354,24 @@ useComponentHost(() => import('../components/ui-editor-mention-menu/ui-editor-me
|
|
|
354
354
|
refs: { empty: emptyElement },
|
|
355
355
|
state: { visible, rows, searching, active, prefix },
|
|
356
356
|
})
|
|
357
|
+
|
|
358
|
+
// A nonempty scalar call cannot produce the invalid-result sentinel.
|
|
359
|
+
type ConcatResult<T extends unknown[]> = T extends
|
|
360
|
+
[
|
|
361
|
+
string | number | boolean | null | undefined,
|
|
362
|
+
...(string | number | boolean | null | undefined)[],
|
|
363
|
+
] ? string | undefined
|
|
364
|
+
: string | symbol | undefined
|
|
365
|
+
function concat<T extends unknown[]>(...values: T): ConcatResult<T> {
|
|
366
|
+
if (values.some(value => value === Symbol.for('html-next.invalid-result'))) {
|
|
367
|
+
return Symbol.for('html-next.invalid-result') as ConcatResult<T>
|
|
368
|
+
}
|
|
369
|
+
if (values.some(value => value === undefined)) return undefined as ConcatResult<T>
|
|
370
|
+
if (values.length === 0 || values.some(value => typeof value === 'object' && value !== null)) {
|
|
371
|
+
return Symbol.for('html-next.invalid-result') as ConcatResult<T>
|
|
372
|
+
}
|
|
373
|
+
return values.map(value => value === null ? '' : String(value)).join('') as ConcatResult<T>
|
|
374
|
+
}
|
|
357
375
|
</script>
|
|
358
376
|
|
|
359
377
|
<template>
|
|
@@ -382,7 +400,7 @@ useComponentHost(() => import('../components/ui-editor-mention-menu/ui-editor-me
|
|
|
382
400
|
:key="index"
|
|
383
401
|
class="item"
|
|
384
402
|
role="option"
|
|
385
|
-
:id="
|
|
403
|
+
:id="concat(prefix, '-option-', index)"
|
|
386
404
|
:aria-selected="index === active"
|
|
387
405
|
:data-index="index"
|
|
388
406
|
:data-value="row.id"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.25 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.25 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.25 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.25 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|