@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
package/vue/UiListbox.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,
|
|
@@ -245,27 +245,43 @@ const hasSelection = ref(false)
|
|
|
245
245
|
const active = ref(-1)
|
|
246
246
|
const uid = ref('')
|
|
247
247
|
const validationError = ref(false)
|
|
248
|
-
let guardedPrevious: any
|
|
248
|
+
let guardedPrevious: any = null
|
|
249
249
|
const guarded = computed(() => {
|
|
250
|
-
|
|
250
|
+
const candidate: any = ((objectValue: any, indexValue: any) =>
|
|
251
|
+
objectValue === Symbol.for('html-next.invalid-result')
|
|
252
|
+
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
253
|
+
? Symbol.for('html-next.invalid-result')
|
|
254
|
+
: objectValue[indexValue])({ true: '-1', false: '0' }, concat(checkedProps.value.disabled))
|
|
255
|
+
if (candidate === Symbol.for('html-next.invalid-result')) {
|
|
251
256
|
return guardedPrevious
|
|
252
257
|
}
|
|
253
|
-
return guardedPrevious =
|
|
258
|
+
return guardedPrevious = attribute(((objectValue: any, indexValue: any) =>
|
|
259
|
+
objectValue === Symbol.for('html-next.invalid-result')
|
|
260
|
+
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
261
|
+
? Symbol.for('html-next.invalid-result')
|
|
262
|
+
: objectValue[indexValue])({ true: '-1', false: '0' }, concat(checkedProps.value.disabled)))
|
|
254
263
|
})
|
|
255
264
|
let guardedBindingPrevious: any
|
|
256
265
|
const guardedBinding = computed(() => {
|
|
257
|
-
if (!(
|
|
266
|
+
if (!(validationError.value == null || typeof validationError.value === 'boolean')) {
|
|
258
267
|
return guardedBindingPrevious
|
|
259
268
|
}
|
|
260
|
-
return guardedBindingPrevious = checkedProps.value.
|
|
261
|
-
&& !checkedProps.value.disabled
|
|
269
|
+
return guardedBindingPrevious = checkedProps.value.invalid || validationError.value
|
|
262
270
|
})
|
|
263
271
|
let guardedBinding2Previous: any
|
|
264
272
|
const guardedBinding2 = computed(() => {
|
|
265
273
|
if (!(hasSelection.value == null || typeof hasSelection.value === 'boolean')) {
|
|
266
274
|
return guardedBinding2Previous
|
|
267
275
|
}
|
|
268
|
-
return guardedBinding2Previous =
|
|
276
|
+
return guardedBinding2Previous = checkedProps.value.required && !hasSelection.value
|
|
277
|
+
&& !checkedProps.value.disabled
|
|
278
|
+
})
|
|
279
|
+
let guardedBinding3Previous: any
|
|
280
|
+
const guardedBinding3 = computed(() => {
|
|
281
|
+
if (!(hasSelection.value == null || typeof hasSelection.value === 'boolean')) {
|
|
282
|
+
return guardedBinding3Previous
|
|
283
|
+
}
|
|
284
|
+
return guardedBinding3Previous = hasSelection.value ? true : undefined
|
|
269
285
|
})
|
|
270
286
|
provide('html-next:ui-listbox:choices', choices)
|
|
271
287
|
provide('html-next:ui-listbox:selection', selection)
|
|
@@ -343,6 +359,24 @@ function attribute(value: unknown): any {
|
|
|
343
359
|
return value === true ? '' : text(value)
|
|
344
360
|
}
|
|
345
361
|
|
|
362
|
+
// A nonempty scalar call cannot produce the invalid-result sentinel.
|
|
363
|
+
type ConcatResult<T extends unknown[]> = T extends
|
|
364
|
+
[
|
|
365
|
+
string | number | boolean | null | undefined,
|
|
366
|
+
...(string | number | boolean | null | undefined)[],
|
|
367
|
+
] ? string | undefined
|
|
368
|
+
: string | symbol | undefined
|
|
369
|
+
function concat<T extends unknown[]>(...values: T): ConcatResult<T> {
|
|
370
|
+
if (values.some(value => value === Symbol.for('html-next.invalid-result'))) {
|
|
371
|
+
return Symbol.for('html-next.invalid-result') as ConcatResult<T>
|
|
372
|
+
}
|
|
373
|
+
if (values.some(value => value === undefined)) return undefined as ConcatResult<T>
|
|
374
|
+
if (values.length === 0 || values.some(value => typeof value === 'object' && value !== null)) {
|
|
375
|
+
return Symbol.for('html-next.invalid-result') as ConcatResult<T>
|
|
376
|
+
}
|
|
377
|
+
return values.map(value => value === null ? '' : String(value)).join('') as ConcatResult<T>
|
|
378
|
+
}
|
|
379
|
+
|
|
346
380
|
function uniqueKeys<T>(
|
|
347
381
|
items: readonly T[],
|
|
348
382
|
keyOf: (
|
|
@@ -377,11 +411,11 @@ function uniqueKeys<T>(
|
|
|
377
411
|
data-component="ui-listbox"
|
|
378
412
|
role="listbox"
|
|
379
413
|
v-bind="nativeAttrs($attrs)"
|
|
380
|
-
:tabindex="
|
|
414
|
+
:tabindex="guarded"
|
|
381
415
|
:aria-multiselectable="checkedProps.multiple ?? undefined"
|
|
382
416
|
:aria-disabled="checkedProps.disabled ?? undefined"
|
|
383
417
|
:aria-required="checkedProps.required ?? undefined"
|
|
384
|
-
:aria-invalid="
|
|
418
|
+
:aria-invalid="guardedBinding"
|
|
385
419
|
:style="{ '--_rows': checkedProps.rows ?? undefined }"
|
|
386
420
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
387
421
|
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
@@ -401,7 +435,7 @@ function uniqueKeys<T>(
|
|
|
401
435
|
role="option"
|
|
402
436
|
data-ui-choice-option=""
|
|
403
437
|
:data-multiple="checkedProps.multiple ? '' : undefined"
|
|
404
|
-
:id="
|
|
438
|
+
:id="concat(uid, '-option-', choice.index)"
|
|
405
439
|
:data-index="choice.index"
|
|
406
440
|
:aria-selected="choice.selected"
|
|
407
441
|
:aria-disabled="choice.disabled"
|
|
@@ -433,8 +467,8 @@ function uniqueKeys<T>(
|
|
|
433
467
|
type="checkbox"
|
|
434
468
|
aria-hidden="true"
|
|
435
469
|
tabindex="-1"
|
|
436
|
-
:required="
|
|
437
|
-
:checked.attr="
|
|
470
|
+
:required="guardedBinding2"
|
|
471
|
+
:checked.attr="guardedBinding3"
|
|
438
472
|
:disabled="checkedProps.disabled ?? undefined"
|
|
439
473
|
ref="validity"
|
|
440
474
|
>
|
package/vue/UiMenu.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, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
package/vue/UiMenuGroup.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/UiMenuItem.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'
|
|
@@ -163,12 +163,34 @@ const rootArmElement = useTemplateRef<HTMLElement>('@html-next/root')
|
|
|
163
163
|
const root = rootArmElement
|
|
164
164
|
preserveRootFocus(root)
|
|
165
165
|
const internalChecked = ref(false)
|
|
166
|
-
let guardedPrevious: any
|
|
166
|
+
let guardedPrevious: any = null
|
|
167
167
|
const guarded = computed(() => {
|
|
168
|
-
|
|
168
|
+
const candidate: any = ((objectValue: any, indexValue: any) =>
|
|
169
|
+
objectValue === Symbol.for('html-next.invalid-result')
|
|
170
|
+
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
171
|
+
? Symbol.for('html-next.invalid-result')
|
|
172
|
+
: objectValue[indexValue])(
|
|
173
|
+
{ true: null, false: checkedProps.value.href },
|
|
174
|
+
concat(checkedProps.value.disabled),
|
|
175
|
+
)
|
|
176
|
+
if (candidate === Symbol.for('html-next.invalid-result')) {
|
|
169
177
|
return guardedPrevious
|
|
170
178
|
}
|
|
171
|
-
return guardedPrevious =
|
|
179
|
+
return guardedPrevious = attribute(((objectValue: any, indexValue: any) =>
|
|
180
|
+
objectValue === Symbol.for('html-next.invalid-result')
|
|
181
|
+
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
182
|
+
? Symbol.for('html-next.invalid-result')
|
|
183
|
+
: objectValue[indexValue])(
|
|
184
|
+
{ true: null, false: checkedProps.value.href },
|
|
185
|
+
concat(checkedProps.value.disabled),
|
|
186
|
+
))
|
|
187
|
+
})
|
|
188
|
+
let guardedBindingPrevious: any
|
|
189
|
+
const guardedBinding = computed(() => {
|
|
190
|
+
if (!(internalChecked.value == null || typeof internalChecked.value === 'boolean')) {
|
|
191
|
+
return guardedBindingPrevious
|
|
192
|
+
}
|
|
193
|
+
return guardedBindingPrevious =
|
|
172
194
|
typeof ((({
|
|
173
195
|
action: null,
|
|
174
196
|
checkbox: internalChecked.value,
|
|
@@ -269,6 +291,24 @@ function attribute(value: unknown): any {
|
|
|
269
291
|
) return undefined
|
|
270
292
|
return value === true ? '' : text(value)
|
|
271
293
|
}
|
|
294
|
+
|
|
295
|
+
// A nonempty scalar call cannot produce the invalid-result sentinel.
|
|
296
|
+
type ConcatResult<T extends unknown[]> = T extends
|
|
297
|
+
[
|
|
298
|
+
string | number | boolean | null | undefined,
|
|
299
|
+
...(string | number | boolean | null | undefined)[],
|
|
300
|
+
] ? string | undefined
|
|
301
|
+
: string | symbol | undefined
|
|
302
|
+
function concat<T extends unknown[]>(...values: T): ConcatResult<T> {
|
|
303
|
+
if (values.some(value => value === Symbol.for('html-next.invalid-result'))) {
|
|
304
|
+
return Symbol.for('html-next.invalid-result') as ConcatResult<T>
|
|
305
|
+
}
|
|
306
|
+
if (values.some(value => value === undefined)) return undefined as ConcatResult<T>
|
|
307
|
+
if (values.length === 0 || values.some(value => typeof value === 'object' && value !== null)) {
|
|
308
|
+
return Symbol.for('html-next.invalid-result') as ConcatResult<T>
|
|
309
|
+
}
|
|
310
|
+
return values.map(value => value === null ? '' : String(value)).join('') as ConcatResult<T>
|
|
311
|
+
}
|
|
272
312
|
</script>
|
|
273
313
|
|
|
274
314
|
<template>
|
|
@@ -279,11 +319,7 @@ function attribute(value: unknown): any {
|
|
|
279
319
|
tabindex="-1"
|
|
280
320
|
v-bind="nativeAttrs($attrs)"
|
|
281
321
|
:aria-disabled="checkedProps.disabled ?? undefined"
|
|
282
|
-
:href="
|
|
283
|
-
(({ true: null, false: checkedProps.href }) as Record<string, any>)[
|
|
284
|
-
`${checkedProps.disabled ?? ''}`
|
|
285
|
-
],
|
|
286
|
-
)"
|
|
322
|
+
:href="guarded"
|
|
287
323
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
288
324
|
:data-checked="reflectedProp('checked', 'checked', checkedProps.checked, undefined, false)"
|
|
289
325
|
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
@@ -305,7 +341,7 @@ function attribute(value: unknown): any {
|
|
|
305
341
|
any
|
|
306
342
|
>)[checkedProps.type],
|
|
307
343
|
)"
|
|
308
|
-
:aria-checked="
|
|
344
|
+
:aria-checked="guardedBinding"
|
|
309
345
|
:aria-disabled="checkedProps.disabled ?? undefined"
|
|
310
346
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
311
347
|
:data-checked="reflectedProp('checked', 'checked', checkedProps.checked, undefined, false)"
|
package/vue/UiMeter.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
2
4
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
5
|
label: {
|
|
4
6
|
type: PropType<string | null>;
|
|
@@ -66,5 +68,3 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
66
68
|
segments: number | null;
|
|
67
69
|
valueText: string | null;
|
|
68
70
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
69
|
-
declare const _default: typeof __VLS_export;
|
|
70
|
-
export default _default;
|