@threadlabs/looma 0.22.8 → 0.22.10
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-affordance-scope/ui-affordance-scope.js +2 -2
- package/components/ui-avatar/ui-avatar.js +5 -5
- package/components/ui-avatar-group/ui-avatar-group.js +5 -5
- package/components/ui-badge/ui-badge.html +10 -0
- package/components/ui-button/ui-button.js +1 -1
- package/components/ui-checkbox/ui-checkbox.js +5 -5
- package/components/ui-combobox/ui-combobox.js +61 -61
- package/components/ui-context-menu/ui-context-menu.js +6 -6
- package/components/ui-dialog/ui-dialog.js +9 -9
- package/components/ui-disclosure/ui-disclosure.js +6 -6
- package/components/ui-editable/ui-editable.js +6 -6
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.js +4 -4
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.js +8 -8
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.js +6 -6
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.js +5 -5
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.js +4 -4
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +5 -5
- package/components/ui-form-field/ui-form-field.js +4 -4
- package/components/ui-icon-button/ui-icon-button.js +2 -2
- package/components/ui-input/ui-input.js +1 -1
- package/components/ui-input-group/ui-input-group.js +1 -1
- package/components/ui-listbox/ui-listbox.js +12 -12
- package/components/ui-menu/ui-menu.js +7 -7
- package/components/ui-menu-item/ui-menu-item.js +7 -7
- package/components/ui-popover/ui-popover.js +4 -4
- package/components/ui-radio/ui-radio.js +5 -5
- package/components/ui-radio-group/ui-radio-group.js +6 -6
- package/components/ui-scroll-area/ui-scroll-area.js +1 -1
- package/components/ui-search-shell/ui-search-shell.js +6 -6
- package/components/ui-select/ui-select.js +1 -1
- package/components/ui-sidebar/ui-sidebar.js +12 -12
- package/components/ui-switch/ui-switch.js +5 -5
- package/components/ui-switcher/ui-switcher.js +1 -1
- package/components/ui-tabs/ui-tabs.js +5 -5
- package/components/ui-textarea/ui-textarea.js +1 -1
- package/components/ui-toast/ui-toast.js +3 -3
- package/components/ui-toast-region/ui-toast-region.js +1 -1
- package/components/ui-tooltip/ui-tooltip.js +9 -9
- package/components/ui-tree/ui-tree.js +4 -4
- package/components/ui-tree-item/ui-tree-item.js +11 -11
- 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 +10 -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 +1 -1
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +1 -1
- package/vanilla/UiBadge.d.ts +2 -1
- package/vanilla/UiBadge.js +5 -3
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +1 -1
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +1 -1
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +1 -1
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +1 -1
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +1 -1
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +1 -1
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +1 -1
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +1 -1
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +1 -1
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +1 -1
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +1 -1
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +1 -1
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +1 -1
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +1 -1
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +1 -1
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +1 -1
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +1 -1
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +1 -1
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +1 -1
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +1 -1
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +1 -1
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +1 -1
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +1 -1
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +1 -1
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +1 -1
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +1 -1
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +1 -1
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +1 -1
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +1 -1
- package/vanilla/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 +1 -1
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +1 -1
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +1 -1
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +1 -1
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +1 -1
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +1 -1
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +1 -1
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +1 -1
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +1 -1
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +1 -1
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +1 -1
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +1 -1
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +1 -1
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +1 -1
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +1 -1
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +1 -1
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +1 -1
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +1 -1
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +1 -1
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +1 -1
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +1 -1
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +1 -1
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +1 -1
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +1 -1
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +1 -1
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +1 -1
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +1 -1
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +1 -1
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +1 -1
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +1 -1
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +1 -1
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +1 -1
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +1 -1
- package/vue/UiActionBar.vue +1 -1
- package/vue/UiAffordanceScope.vue +17 -4
- package/vue/UiAvatar.vue +38 -5
- package/vue/UiAvatarGroup.vue +32 -5
- package/vue/UiBadge.d.ts +9 -0
- package/vue/UiBadge.vue +41 -3
- package/vue/UiBreadcrumbItem.vue +5 -3
- package/vue/UiBreadcrumbs.vue +5 -3
- package/vue/UiButton.vue +72 -7
- package/vue/UiCallout.vue +5 -3
- package/vue/UiCard.vue +16 -6
- package/vue/UiCheckbox.vue +41 -4
- package/vue/UiCluster.vue +8 -3
- package/vue/UiCombobox.vue +98 -6
- package/vue/UiContainer.vue +6 -3
- package/vue/UiContextMenu.vue +17 -4
- package/vue/UiCover.vue +5 -3
- package/vue/UiDescriptionItem.vue +5 -3
- package/vue/UiDescriptionList.vue +11 -3
- package/vue/UiDialog.vue +38 -5
- package/vue/UiDisclosure.vue +28 -4
- package/vue/UiEditable.vue +50 -4
- package/vue/UiEditorInsertTableGrid.vue +24 -4
- package/vue/UiEditorMentionMenu.vue +41 -4
- package/vue/UiEditorMentionMenuItem.vue +7 -3
- package/vue/UiEditorSlashMenu.vue +28 -4
- package/vue/UiEditorSlashMenuGroup.vue +5 -3
- package/vue/UiEditorSlashMenuItem.vue +15 -3
- package/vue/UiEditorTableContextMenu.vue +28 -4
- package/vue/UiEditorTableOverlay.vue +17 -4
- package/vue/UiEditorTableToolbar.vue +28 -4
- package/vue/UiEditorToolbar.vue +16 -4
- package/vue/UiFloatingActionButton.vue +7 -3
- package/vue/UiFormField.vue +18 -4
- package/vue/UiGrid.vue +7 -3
- package/vue/UiIcon.vue +5 -3
- package/vue/UiIconButton.vue +47 -5
- package/vue/UiInput.vue +90 -37
- package/vue/UiInputGroup.vue +16 -4
- package/vue/UiList.vue +20 -7
- package/vue/UiListItem.vue +6 -3
- package/vue/UiListbox.vue +38 -5
- package/vue/UiMenu.vue +28 -4
- package/vue/UiMenuGroup.vue +5 -3
- package/vue/UiMenuItem.vue +27 -5
- package/vue/UiMeter.vue +19 -3
- package/vue/UiNavItem.vue +28 -6
- package/vue/UiPageHeader.vue +5 -3
- package/vue/UiPopover.vue +18 -5
- package/vue/UiRadio.vue +28 -4
- package/vue/UiRadioGroup.vue +30 -4
- package/vue/UiReel.vue +7 -3
- package/vue/UiScrollArea.vue +16 -4
- package/vue/UiSearchResultRow.d.ts +1 -1
- package/vue/UiSearchResultRow.vue +6 -3
- package/vue/UiSearchShell.vue +24 -4
- package/vue/UiSection.vue +7 -3
- package/vue/UiSelect.vue +33 -5
- package/vue/UiSeparator.vue +5 -3
- package/vue/UiSidebar.vue +44 -4
- package/vue/UiSpinner.vue +6 -3
- package/vue/UiStack.vue +7 -3
- package/vue/UiStatusMessage.vue +7 -3
- package/vue/UiSwitch.vue +28 -4
- package/vue/UiSwitcher.vue +30 -5
- package/vue/UiTable.vue +17 -4
- package/vue/UiTabs.vue +28 -4
- package/vue/UiText.vue +29 -15
- package/vue/UiTextarea.vue +39 -5
- package/vue/UiToast.vue +17 -4
- package/vue/UiToastRegion.vue +17 -5
- package/vue/UiTooltip.vue +30 -5
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.vue +28 -4
- package/vue/UiTreeItem.d.ts +1 -1
- package/vue/UiTreeItem.vue +59 -4
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +19 -5
- package/vue/chunks/UiAvatar.js +40 -11
- package/vue/chunks/UiAvatarGroup.js +31 -8
- package/vue/chunks/UiBadge.js +35 -6
- package/vue/chunks/UiBreadcrumbItem.js +5 -4
- package/vue/chunks/UiBreadcrumbs.js +5 -4
- package/vue/chunks/UiButton.js +60 -19
- package/vue/chunks/UiCallout.js +5 -4
- package/vue/chunks/UiCard.js +16 -10
- package/vue/chunks/UiCheckbox.js +40 -11
- package/vue/chunks/UiCluster.js +13 -7
- package/vue/chunks/UiCombobox.js +85 -26
- package/vue/chunks/UiContainer.js +9 -5
- package/vue/chunks/UiContextMenu.js +19 -5
- package/vue/chunks/UiCover.js +5 -4
- package/vue/chunks/UiDescriptionItem.js +5 -4
- package/vue/chunks/UiDescriptionList.js +11 -6
- package/vue/chunks/UiDialog.js +40 -11
- package/vue/chunks/UiDisclosure.js +34 -9
- package/vue/chunks/UiEditable.js +49 -14
- package/vue/chunks/UiEditorInsertTableGrid.js +28 -7
- package/vue/chunks/UiEditorMentionMenu.js +40 -11
- package/vue/chunks/UiEditorMentionMenuItem.js +11 -6
- package/vue/chunks/UiEditorSlashMenu.js +34 -9
- package/vue/chunks/UiEditorSlashMenuGroup.js +5 -4
- package/vue/chunks/UiEditorSlashMenuItem.js +15 -8
- package/vue/chunks/UiEditorTableContextMenu.js +34 -9
- package/vue/chunks/UiEditorTableOverlay.js +19 -5
- package/vue/chunks/UiEditorTableToolbar.js +34 -9
- package/vue/chunks/UiEditorToolbar.js +15 -4
- package/vue/chunks/UiFloatingActionButton.js +11 -6
- package/vue/chunks/UiFormField.js +26 -7
- package/vue/chunks/UiGrid.js +11 -6
- package/vue/chunks/UiIcon.js +5 -4
- package/vue/chunks/UiIconButton.js +41 -12
- package/vue/chunks/UiInput.js +53 -14
- package/vue/chunks/UiInputGroup.js +16 -5
- package/vue/chunks/UiList.js +14 -8
- package/vue/chunks/UiListItem.js +9 -5
- package/vue/chunks/UiListbox.js +40 -11
- package/vue/chunks/UiMenu.js +34 -9
- package/vue/chunks/UiMenuGroup.js +5 -4
- package/vue/chunks/UiMenuItem.js +32 -9
- package/vue/chunks/UiMeter.js +19 -10
- package/vue/chunks/UiNavItem.js +16 -9
- package/vue/chunks/UiPageHeader.js +5 -4
- package/vue/chunks/UiPopover.js +25 -6
- package/vue/chunks/UiRadio.js +34 -9
- package/vue/chunks/UiRadioGroup.js +37 -10
- package/vue/chunks/UiReel.js +11 -6
- package/vue/chunks/UiScrollArea.js +15 -4
- package/vue/chunks/UiSearchResultRow.js +9 -5
- package/vue/chunks/UiSearchShell.js +28 -7
- package/vue/chunks/UiSection.js +11 -6
- package/vue/chunks/UiSelect.js +33 -10
- package/vue/chunks/UiSeparator.js +5 -4
- package/vue/chunks/UiSidebar.js +43 -12
- package/vue/chunks/UiSpinner.js +9 -5
- package/vue/chunks/UiStack.js +11 -6
- package/vue/chunks/UiStatusMessage.js +11 -6
- package/vue/chunks/UiSwitch.js +34 -9
- package/vue/chunks/UiSwitcher.js +28 -7
- package/vue/chunks/UiTable.js +20 -6
- package/vue/chunks/UiTabs.js +34 -9
- package/vue/chunks/UiText.js +29 -20
- package/vue/chunks/UiTextarea.js +42 -13
- package/vue/chunks/UiToast.js +19 -5
- package/vue/chunks/UiToastRegion.js +19 -5
- package/vue/chunks/UiTooltip.js +37 -10
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +35 -10
- package/vue/chunks/UiTreeItem.js +58 -17
- package/vue/chunks/host.js +22 -4
- package/vue/chunks/props.js +20 -7
- package/vue/components.css +1212 -1204
- package/vue/host.ts +50 -6
package/vue/UiList.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.19 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -46,7 +46,7 @@ const propValidityContract = {
|
|
|
46
46
|
default: 'none',
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
|
-
}
|
|
49
|
+
} as const
|
|
50
50
|
const props = defineProps({
|
|
51
51
|
as: { type: null as unknown as PropType<'ul' | 'ol' | null>, default: 'ul' },
|
|
52
52
|
density: {
|
|
@@ -56,27 +56,40 @@ const props = defineProps({
|
|
|
56
56
|
layout: { type: null as unknown as PropType<'rows' | 'grid' | null>, default: 'rows' },
|
|
57
57
|
markers: { type: null as unknown as PropType<'none' | 'disc' | null>, default: 'none' },
|
|
58
58
|
})
|
|
59
|
+
const acceptedProps: Record<string, unknown> = {
|
|
60
|
+
as: 'ul',
|
|
61
|
+
density: 'comfortable',
|
|
62
|
+
layout: 'rows',
|
|
63
|
+
markers: 'none',
|
|
64
|
+
}
|
|
59
65
|
const checkedProps = computed(() => ({
|
|
60
|
-
as: checkedProp<'ul' | 'ol'>(
|
|
61
|
-
|
|
62
|
-
|
|
66
|
+
as: checkedProp<'ul' | 'ol'>(
|
|
67
|
+
props['as'],
|
|
68
|
+
{ kind: 'terminal', name: 'keyword' },
|
|
69
|
+
false,
|
|
70
|
+
'as',
|
|
71
|
+
acceptedProps,
|
|
72
|
+
) as 'ul' | 'ol',
|
|
63
73
|
density: checkedProp<'comfortable' | 'compact'>(
|
|
64
74
|
props['density'],
|
|
65
75
|
{ kind: 'terminal', name: 'keyword' },
|
|
66
76
|
false,
|
|
67
77
|
'density',
|
|
78
|
+
acceptedProps,
|
|
68
79
|
) as 'comfortable' | 'compact',
|
|
69
80
|
layout: checkedProp<'rows' | 'grid'>(
|
|
70
81
|
props['layout'],
|
|
71
82
|
{ kind: 'terminal', name: 'keyword' },
|
|
72
83
|
false,
|
|
73
84
|
'layout',
|
|
85
|
+
acceptedProps,
|
|
74
86
|
) as 'rows' | 'grid',
|
|
75
87
|
markers: checkedProp<'none' | 'disc'>(
|
|
76
88
|
props['markers'],
|
|
77
89
|
{ kind: 'terminal', name: 'keyword' },
|
|
78
90
|
false,
|
|
79
91
|
'markers',
|
|
92
|
+
acceptedProps,
|
|
80
93
|
) as 'none' | 'disc',
|
|
81
94
|
}))
|
|
82
95
|
void checkedProps.value
|
|
@@ -157,7 +170,7 @@ const hostState = computed(() =>
|
|
|
157
170
|
v-if="checkedProps.as === 'ol'"
|
|
158
171
|
data-component="ui-list"
|
|
159
172
|
v-bind="nativeAttrs($attrs)"
|
|
160
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
173
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
161
174
|
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
162
175
|
:data-density="reflectedProp('density', 'density', checkedProps.density, undefined, false)"
|
|
163
176
|
:data-layout="reflectedProp('layout', 'layout', checkedProps.layout, undefined, false)"
|
|
@@ -172,7 +185,7 @@ const hostState = computed(() =>
|
|
|
172
185
|
data-component="ui-list"
|
|
173
186
|
role="list"
|
|
174
187
|
v-bind="nativeAttrs($attrs)"
|
|
175
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
188
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
176
189
|
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
177
190
|
:data-density="reflectedProp('density', 'density', checkedProps.density, undefined, false)"
|
|
178
191
|
:data-layout="reflectedProp('layout', 'layout', checkedProps.layout, undefined, false)"
|
package/vue/UiListItem.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.19 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'
|
|
@@ -26,23 +26,26 @@ const propValidityContract = {
|
|
|
26
26
|
default: 'row',
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
|
-
}
|
|
29
|
+
} as const
|
|
30
30
|
const props = defineProps({
|
|
31
31
|
current: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
32
32
|
variant: { type: null as unknown as PropType<'row' | 'card' | null>, default: 'row' },
|
|
33
33
|
})
|
|
34
|
+
const acceptedProps: Record<string, unknown> = { current: false, variant: 'row' }
|
|
34
35
|
const checkedProps = computed(() => ({
|
|
35
36
|
current: checkedProp<boolean>(
|
|
36
37
|
props['current'],
|
|
37
38
|
{ kind: 'terminal', name: 'boolean' },
|
|
38
39
|
false,
|
|
39
40
|
'current',
|
|
41
|
+
acceptedProps,
|
|
40
42
|
) as boolean,
|
|
41
43
|
variant: checkedProp<'row' | 'card'>(
|
|
42
44
|
props['variant'],
|
|
43
45
|
{ kind: 'terminal', name: 'keyword' },
|
|
44
46
|
false,
|
|
45
47
|
'variant',
|
|
48
|
+
acceptedProps,
|
|
46
49
|
) as 'row' | 'card',
|
|
47
50
|
}))
|
|
48
51
|
void checkedProps.value
|
|
@@ -116,7 +119,7 @@ const hostState = computed(() =>
|
|
|
116
119
|
data-component="ui-list-item"
|
|
117
120
|
v-bind="nativeAttrs($attrs)"
|
|
118
121
|
:aria-current="checkedProps.current ?? undefined"
|
|
119
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
122
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
120
123
|
:data-current="reflectedProp('current', 'current', checkedProps.current, undefined, false)"
|
|
121
124
|
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
122
125
|
:data-ui-list-item-state="hostState || undefined"
|
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.19 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import {
|
|
4
4
|
computed,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from 'vue'
|
|
13
13
|
import type { PropType, VNode } from 'vue'
|
|
14
14
|
import { createDispatch, useComponentHost } from './host'
|
|
15
|
-
import { checkedProp, vPropValidity } from './props'
|
|
15
|
+
import { checkedProp, propValidityState, vPropValidity } from './props'
|
|
16
16
|
import UiScrollArea from './UiScrollArea.vue'
|
|
17
17
|
|
|
18
18
|
defineOptions({ inheritAttrs: false })
|
|
@@ -77,7 +77,7 @@ const propValidityContract = {
|
|
|
77
77
|
'The initial or externally set selections in multiple mode. Authored selected options work when it is omitted.',
|
|
78
78
|
},
|
|
79
79
|
},
|
|
80
|
-
}
|
|
80
|
+
} as const
|
|
81
81
|
const props = defineProps({
|
|
82
82
|
disabled: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
83
83
|
invalid: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
@@ -88,49 +88,72 @@ const props = defineProps({
|
|
|
88
88
|
value: { type: null as unknown as PropType<string | null>, default: null },
|
|
89
89
|
values: { type: null as unknown as PropType<readonly (string)[] | null>, default: null },
|
|
90
90
|
})
|
|
91
|
+
const acceptedProps: Record<string, unknown> = {
|
|
92
|
+
disabled: false,
|
|
93
|
+
invalid: false,
|
|
94
|
+
multiple: false,
|
|
95
|
+
name: '',
|
|
96
|
+
required: false,
|
|
97
|
+
rows: 5,
|
|
98
|
+
value: null,
|
|
99
|
+
values: null,
|
|
100
|
+
}
|
|
91
101
|
const checkedProps = computed(() => ({
|
|
92
102
|
disabled: checkedProp<boolean>(
|
|
93
103
|
props['disabled'],
|
|
94
104
|
{ kind: 'terminal', name: 'boolean' },
|
|
95
105
|
false,
|
|
96
106
|
'disabled',
|
|
107
|
+
acceptedProps,
|
|
97
108
|
) as boolean,
|
|
98
109
|
invalid: checkedProp<boolean>(
|
|
99
110
|
props['invalid'],
|
|
100
111
|
{ kind: 'terminal', name: 'boolean' },
|
|
101
112
|
false,
|
|
102
113
|
'invalid',
|
|
114
|
+
acceptedProps,
|
|
103
115
|
) as boolean,
|
|
104
116
|
multiple: checkedProp<boolean>(
|
|
105
117
|
props['multiple'],
|
|
106
118
|
{ kind: 'terminal', name: 'boolean' },
|
|
107
119
|
false,
|
|
108
120
|
'multiple',
|
|
121
|
+
acceptedProps,
|
|
109
122
|
) as boolean,
|
|
110
123
|
name: checkedProp<string>(
|
|
111
124
|
props['name'],
|
|
112
125
|
{ kind: 'terminal', name: 'string' },
|
|
113
126
|
false,
|
|
114
127
|
'name',
|
|
128
|
+
acceptedProps,
|
|
115
129
|
) as string,
|
|
116
130
|
required: checkedProp<boolean>(
|
|
117
131
|
props['required'],
|
|
118
132
|
{ kind: 'terminal', name: 'boolean' },
|
|
119
133
|
false,
|
|
120
134
|
'required',
|
|
135
|
+
acceptedProps,
|
|
121
136
|
) as boolean,
|
|
122
137
|
rows: checkedProp<number>(
|
|
123
138
|
props['rows'],
|
|
124
139
|
{ kind: 'terminal', name: 'number' },
|
|
125
140
|
false,
|
|
126
141
|
'rows',
|
|
142
|
+
acceptedProps,
|
|
127
143
|
) as number,
|
|
128
|
-
value: checkedProp<string>(
|
|
144
|
+
value: checkedProp<string>(
|
|
145
|
+
props['value'],
|
|
146
|
+
{ kind: 'terminal', name: 'string' },
|
|
147
|
+
false,
|
|
148
|
+
'value',
|
|
149
|
+
acceptedProps,
|
|
150
|
+
),
|
|
129
151
|
values: checkedProp<readonly (string)[]>(
|
|
130
152
|
props['values'],
|
|
131
153
|
{ kind: 'list', item: { kind: 'terminal', name: 'string' } },
|
|
132
154
|
false,
|
|
133
155
|
'values',
|
|
156
|
+
acceptedProps,
|
|
134
157
|
),
|
|
135
158
|
}))
|
|
136
159
|
void checkedProps.value
|
|
@@ -293,6 +316,16 @@ useComponentHost(() => import('../components/ui-listbox/ui-listbox.js'), {
|
|
|
293
316
|
definition: './components/ui-listbox/ui-listbox.html',
|
|
294
317
|
},
|
|
295
318
|
props: checkedProps,
|
|
319
|
+
propInputs: (name: string) => {
|
|
320
|
+
const incoming = hydrationInstance?.vnode.props
|
|
321
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
322
|
+
return incoming !== null && incoming !== undefined
|
|
323
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
324
|
+
: null
|
|
325
|
+
},
|
|
326
|
+
propNames: ['disabled', 'invalid', 'multiple', 'name', 'required', 'rows', 'value', 'values'],
|
|
327
|
+
propValidity: (name: string) =>
|
|
328
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
296
329
|
refs: { choices: choicesElement, options: optionsElement, validity: validityElement },
|
|
297
330
|
state: { choices, selection, hasSelection, active, uid, validationError },
|
|
298
331
|
})
|
|
@@ -350,7 +383,7 @@ function uniqueKeys<T>(
|
|
|
350
383
|
:aria-required="checkedProps.required ?? undefined"
|
|
351
384
|
:aria-invalid="guarded"
|
|
352
385
|
:style="{ '--_rows': checkedProps.rows ?? undefined }"
|
|
353
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
386
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
354
387
|
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
355
388
|
:data-invalid="reflectedProp('invalid', 'invalid', checkedProps.invalid, undefined, false)"
|
|
356
389
|
:data-multiple="reflectedProp('multiple', 'multiple', checkedProps.multiple, undefined, false)"
|
package/vue/UiMenu.vue
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.19 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'
|
|
5
5
|
import { createDispatch, useComponentHost } from './host'
|
|
6
|
-
import { checkedProp, vPropValidity } from './props'
|
|
6
|
+
import { checkedProp, propValidityState, vPropValidity } from './props'
|
|
7
7
|
|
|
8
8
|
defineOptions({ inheritAttrs: false })
|
|
9
9
|
|
|
@@ -56,7 +56,7 @@ const propValidityContract = {
|
|
|
56
56
|
default: 'md',
|
|
57
57
|
},
|
|
58
58
|
},
|
|
59
|
-
}
|
|
59
|
+
} as const
|
|
60
60
|
const props = defineProps({
|
|
61
61
|
density: {
|
|
62
62
|
type: null as unknown as PropType<'comfortable' | 'compact' | null>,
|
|
@@ -68,42 +68,56 @@ const props = defineProps({
|
|
|
68
68
|
placement: { type: null as unknown as PropType<string | null>, default: 'bottom-start' },
|
|
69
69
|
size: { type: null as unknown as PropType<'sm' | 'md' | null>, default: 'md' },
|
|
70
70
|
})
|
|
71
|
+
const acceptedProps: Record<string, unknown> = {
|
|
72
|
+
density: 'comfortable',
|
|
73
|
+
for: '',
|
|
74
|
+
inline: false,
|
|
75
|
+
open: false,
|
|
76
|
+
placement: 'bottom-start',
|
|
77
|
+
size: 'md',
|
|
78
|
+
}
|
|
71
79
|
const checkedProps = computed(() => ({
|
|
72
80
|
density: checkedProp<'comfortable' | 'compact'>(
|
|
73
81
|
props['density'],
|
|
74
82
|
{ kind: 'terminal', name: 'keyword' },
|
|
75
83
|
false,
|
|
76
84
|
'density',
|
|
85
|
+
acceptedProps,
|
|
77
86
|
) as 'comfortable' | 'compact',
|
|
78
87
|
for: checkedProp<string>(
|
|
79
88
|
props['for'],
|
|
80
89
|
{ kind: 'terminal', name: 'string' },
|
|
81
90
|
false,
|
|
82
91
|
'for',
|
|
92
|
+
acceptedProps,
|
|
83
93
|
) as string,
|
|
84
94
|
inline: checkedProp<boolean>(
|
|
85
95
|
props['inline'],
|
|
86
96
|
{ kind: 'terminal', name: 'boolean' },
|
|
87
97
|
false,
|
|
88
98
|
'inline',
|
|
99
|
+
acceptedProps,
|
|
89
100
|
) as boolean,
|
|
90
101
|
open: checkedProp<boolean>(
|
|
91
102
|
props['open'],
|
|
92
103
|
{ kind: 'terminal', name: 'boolean' },
|
|
93
104
|
false,
|
|
94
105
|
'open',
|
|
106
|
+
acceptedProps,
|
|
95
107
|
) as boolean,
|
|
96
108
|
placement: checkedProp<string>(
|
|
97
109
|
props['placement'],
|
|
98
110
|
{ kind: 'terminal', name: 'string' },
|
|
99
111
|
false,
|
|
100
112
|
'placement',
|
|
113
|
+
acceptedProps,
|
|
101
114
|
) as string,
|
|
102
115
|
size: checkedProp<'sm' | 'md'>(
|
|
103
116
|
props['size'],
|
|
104
117
|
{ kind: 'terminal', name: 'keyword' },
|
|
105
118
|
false,
|
|
106
119
|
'size',
|
|
120
|
+
acceptedProps,
|
|
107
121
|
) as 'sm' | 'md',
|
|
108
122
|
}))
|
|
109
123
|
void checkedProps.value
|
|
@@ -250,6 +264,16 @@ useComponentHost(() => import('../components/ui-menu/ui-menu.js'), {
|
|
|
250
264
|
definition: './components/ui-menu/ui-menu.html',
|
|
251
265
|
},
|
|
252
266
|
props: checkedProps,
|
|
267
|
+
propInputs: (name: string) => {
|
|
268
|
+
const incoming = hydrationInstance?.vnode.props
|
|
269
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
270
|
+
return incoming !== null && incoming !== undefined
|
|
271
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
272
|
+
: null
|
|
273
|
+
},
|
|
274
|
+
propNames: ['density', 'for', 'inline', 'open', 'placement', 'size'],
|
|
275
|
+
propValidity: (name: string) =>
|
|
276
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
253
277
|
state: { internalOpen },
|
|
254
278
|
})
|
|
255
279
|
</script>
|
|
@@ -260,7 +284,7 @@ useComponentHost(() => import('../components/ui-menu/ui-menu.js'), {
|
|
|
260
284
|
role="menu"
|
|
261
285
|
aria-orientation="vertical"
|
|
262
286
|
v-bind="nativeAttrs($attrs)"
|
|
263
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
287
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
264
288
|
:data-density="reflectedProp('density', 'density', checkedProps.density, undefined, false)"
|
|
265
289
|
:data-for="reflectedProp('for', 'for', checkedProps.for, undefined, false)"
|
|
266
290
|
:data-inline="reflectedProp('inline', 'inline', checkedProps.inline, undefined, false)"
|
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.19 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'
|
|
@@ -16,16 +16,18 @@ const propValidityContract = {
|
|
|
16
16
|
default: '',
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
|
-
}
|
|
19
|
+
} as const
|
|
20
20
|
const props = defineProps({
|
|
21
21
|
label: { type: null as unknown as PropType<string | null>, default: '' },
|
|
22
22
|
})
|
|
23
|
+
const acceptedProps: Record<string, unknown> = { label: '' }
|
|
23
24
|
const checkedProps = computed(() => ({
|
|
24
25
|
label: checkedProp<string>(
|
|
25
26
|
props['label'],
|
|
26
27
|
{ kind: 'terminal', name: 'string' },
|
|
27
28
|
false,
|
|
28
29
|
'label',
|
|
30
|
+
acceptedProps,
|
|
29
31
|
) as string,
|
|
30
32
|
}))
|
|
31
33
|
void checkedProps.value
|
|
@@ -90,7 +92,7 @@ if (
|
|
|
90
92
|
role="group"
|
|
91
93
|
v-bind="nativeAttrs($attrs)"
|
|
92
94
|
:aria-label="checkedProps.label ?? undefined"
|
|
93
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
95
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
94
96
|
:data-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
95
97
|
>
|
|
96
98
|
<div v-if="checkedProps.label" class="heading">{{ checkedProps.label }}</div>
|
package/vue/UiMenuItem.vue
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.19 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
5
5
|
import { createDispatch, preserveRootFocus, useComponentHost } from './host'
|
|
6
|
-
import { checkedProp, vPropValidity } from './props'
|
|
6
|
+
import { checkedProp, propValidityState, vPropValidity } from './props'
|
|
7
7
|
import UiIcon from './UiIcon.vue'
|
|
8
8
|
|
|
9
9
|
defineOptions({ inheritAttrs: false })
|
|
@@ -51,7 +51,7 @@ const propValidityContract = {
|
|
|
51
51
|
default: '',
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
|
-
}
|
|
54
|
+
} as const
|
|
55
55
|
const props = defineProps({
|
|
56
56
|
checked: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
57
57
|
disabled: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
@@ -62,36 +62,48 @@ const props = defineProps({
|
|
|
62
62
|
},
|
|
63
63
|
value: { type: null as unknown as PropType<string | null>, default: '' },
|
|
64
64
|
})
|
|
65
|
+
const acceptedProps: Record<string, unknown> = {
|
|
66
|
+
checked: false,
|
|
67
|
+
disabled: false,
|
|
68
|
+
href: '',
|
|
69
|
+
type: 'action',
|
|
70
|
+
value: '',
|
|
71
|
+
}
|
|
65
72
|
const checkedProps = computed(() => ({
|
|
66
73
|
checked: checkedProp<boolean>(
|
|
67
74
|
props['checked'],
|
|
68
75
|
{ kind: 'terminal', name: 'boolean' },
|
|
69
76
|
false,
|
|
70
77
|
'checked',
|
|
78
|
+
acceptedProps,
|
|
71
79
|
) as boolean,
|
|
72
80
|
disabled: checkedProp<boolean>(
|
|
73
81
|
props['disabled'],
|
|
74
82
|
{ kind: 'terminal', name: 'boolean' },
|
|
75
83
|
false,
|
|
76
84
|
'disabled',
|
|
85
|
+
acceptedProps,
|
|
77
86
|
) as boolean,
|
|
78
87
|
href: checkedProp<string>(
|
|
79
88
|
props['href'],
|
|
80
89
|
{ kind: 'terminal', name: 'string' },
|
|
81
90
|
false,
|
|
82
91
|
'href',
|
|
92
|
+
acceptedProps,
|
|
83
93
|
) as string,
|
|
84
94
|
type: checkedProp<'action' | 'checkbox' | 'radio'>(
|
|
85
95
|
props['type'],
|
|
86
96
|
{ kind: 'terminal', name: 'keyword' },
|
|
87
97
|
false,
|
|
88
98
|
'type',
|
|
99
|
+
acceptedProps,
|
|
89
100
|
) as 'action' | 'checkbox' | 'radio',
|
|
90
101
|
value: checkedProp<string>(
|
|
91
102
|
props['value'],
|
|
92
103
|
{ kind: 'terminal', name: 'string' },
|
|
93
104
|
false,
|
|
94
105
|
'value',
|
|
106
|
+
acceptedProps,
|
|
95
107
|
) as string,
|
|
96
108
|
}))
|
|
97
109
|
void checkedProps.value
|
|
@@ -232,6 +244,16 @@ useComponentHost(() => import('../components/ui-menu-item/ui-menu-item.js'), {
|
|
|
232
244
|
definition: './components/ui-menu-item/ui-menu-item.html',
|
|
233
245
|
},
|
|
234
246
|
props: checkedProps,
|
|
247
|
+
propInputs: (name: string) => {
|
|
248
|
+
const incoming = hydrationInstance?.vnode.props
|
|
249
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
250
|
+
return incoming !== null && incoming !== undefined
|
|
251
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
252
|
+
: null
|
|
253
|
+
},
|
|
254
|
+
propNames: ['checked', 'disabled', 'href', 'type', 'value'],
|
|
255
|
+
propValidity: (name: string) =>
|
|
256
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
235
257
|
state: { internalChecked },
|
|
236
258
|
})
|
|
237
259
|
|
|
@@ -262,7 +284,7 @@ function attribute(value: unknown): any {
|
|
|
262
284
|
`${checkedProps.disabled ?? ''}`
|
|
263
285
|
],
|
|
264
286
|
)"
|
|
265
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
287
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
266
288
|
:data-checked="reflectedProp('checked', 'checked', checkedProps.checked, undefined, false)"
|
|
267
289
|
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
268
290
|
:data-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
@@ -285,7 +307,7 @@ function attribute(value: unknown): any {
|
|
|
285
307
|
)"
|
|
286
308
|
:aria-checked="guarded"
|
|
287
309
|
:aria-disabled="checkedProps.disabled ?? undefined"
|
|
288
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
310
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
289
311
|
:data-checked="reflectedProp('checked', 'checked', checkedProps.checked, undefined, false)"
|
|
290
312
|
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
291
313
|
:data-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
package/vue/UiMeter.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.19 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'
|
|
@@ -67,7 +67,7 @@ const propValidityContract = {
|
|
|
67
67
|
default: '',
|
|
68
68
|
},
|
|
69
69
|
},
|
|
70
|
-
}
|
|
70
|
+
} as const
|
|
71
71
|
const props = defineProps({
|
|
72
72
|
label: { type: null as unknown as PropType<string | null>, default: '' },
|
|
73
73
|
max: { type: null as unknown as PropType<number | null>, default: 1 },
|
|
@@ -82,48 +82,64 @@ const props = defineProps({
|
|
|
82
82
|
value: { type: null as unknown as PropType<number | null>, default: 0 },
|
|
83
83
|
valueText: { type: null as unknown as PropType<string | null>, default: '' },
|
|
84
84
|
})
|
|
85
|
+
const acceptedProps: Record<string, unknown> = {
|
|
86
|
+
label: '',
|
|
87
|
+
max: 1,
|
|
88
|
+
segments: 0,
|
|
89
|
+
size: 'md',
|
|
90
|
+
tone: 'neutral',
|
|
91
|
+
value: 0,
|
|
92
|
+
valueText: '',
|
|
93
|
+
}
|
|
85
94
|
const checkedProps = computed(() => ({
|
|
86
95
|
label: checkedProp<string>(
|
|
87
96
|
props['label'],
|
|
88
97
|
{ kind: 'terminal', name: 'string' },
|
|
89
98
|
false,
|
|
90
99
|
'label',
|
|
100
|
+
acceptedProps,
|
|
91
101
|
) as string,
|
|
92
102
|
max: checkedProp<number>(
|
|
93
103
|
props['max'],
|
|
94
104
|
{ kind: 'terminal', name: 'number' },
|
|
95
105
|
false,
|
|
96
106
|
'max',
|
|
107
|
+
acceptedProps,
|
|
97
108
|
) as number,
|
|
98
109
|
segments: checkedProp<number>(
|
|
99
110
|
props['segments'],
|
|
100
111
|
{ kind: 'terminal', name: 'number' },
|
|
101
112
|
false,
|
|
102
113
|
'segments',
|
|
114
|
+
acceptedProps,
|
|
103
115
|
) as number,
|
|
104
116
|
size: checkedProp<'sm' | 'md'>(
|
|
105
117
|
props['size'],
|
|
106
118
|
{ kind: 'terminal', name: 'keyword' },
|
|
107
119
|
false,
|
|
108
120
|
'size',
|
|
121
|
+
acceptedProps,
|
|
109
122
|
) as 'sm' | 'md',
|
|
110
123
|
tone: checkedProp<'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger'>(
|
|
111
124
|
props['tone'],
|
|
112
125
|
{ kind: 'terminal', name: 'keyword' },
|
|
113
126
|
false,
|
|
114
127
|
'tone',
|
|
128
|
+
acceptedProps,
|
|
115
129
|
) as 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'danger',
|
|
116
130
|
value: checkedProp<number>(
|
|
117
131
|
props['value'],
|
|
118
132
|
{ kind: 'terminal', name: 'number' },
|
|
119
133
|
false,
|
|
120
134
|
'value',
|
|
135
|
+
acceptedProps,
|
|
121
136
|
) as number,
|
|
122
137
|
valueText: checkedProp<string>(
|
|
123
138
|
props['valueText'],
|
|
124
139
|
{ kind: 'terminal', name: 'string' },
|
|
125
140
|
false,
|
|
126
141
|
'valueText',
|
|
142
|
+
acceptedProps,
|
|
127
143
|
) as string,
|
|
128
144
|
}))
|
|
129
145
|
void checkedProps.value
|
|
@@ -337,7 +353,7 @@ function number(value: unknown): number | undefined {
|
|
|
337
353
|
: number(checkedProps.segments)! > number(1)!)}`
|
|
338
354
|
],
|
|
339
355
|
)"
|
|
340
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
356
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
341
357
|
:data-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
342
358
|
:data-max="reflectedProp('max', 'max', checkedProps.max, undefined, false)"
|
|
343
359
|
:data-segments="reflectedProp('segments', 'segments', checkedProps.segments, undefined, false)"
|
package/vue/UiNavItem.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.19 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -48,7 +48,7 @@ const propValidityContract = {
|
|
|
48
48
|
description: 'Where a link opens, as on a native link. Only meaningful with as="a".',
|
|
49
49
|
},
|
|
50
50
|
},
|
|
51
|
-
}
|
|
51
|
+
} as const
|
|
52
52
|
const props = defineProps({
|
|
53
53
|
as: { type: null as unknown as PropType<'button' | 'a' | null>, default: 'button' },
|
|
54
54
|
current: {
|
|
@@ -59,26 +59,48 @@ const props = defineProps({
|
|
|
59
59
|
rel: { type: null as unknown as PropType<string | null>, default: null },
|
|
60
60
|
target: { type: null as unknown as PropType<string | null>, default: null },
|
|
61
61
|
})
|
|
62
|
+
const acceptedProps: Record<string, unknown> = {
|
|
63
|
+
as: 'button',
|
|
64
|
+
current: 'false',
|
|
65
|
+
href: null,
|
|
66
|
+
rel: null,
|
|
67
|
+
target: null,
|
|
68
|
+
}
|
|
62
69
|
const checkedProps = computed(() => ({
|
|
63
70
|
as: checkedProp<'button' | 'a'>(
|
|
64
71
|
props['as'],
|
|
65
72
|
{ kind: 'terminal', name: 'keyword' },
|
|
66
73
|
false,
|
|
67
74
|
'as',
|
|
75
|
+
acceptedProps,
|
|
68
76
|
) as 'button' | 'a',
|
|
69
77
|
current: checkedProp<'true' | 'false' | 'page' | 'step' | 'location'>(
|
|
70
78
|
props['current'],
|
|
71
79
|
{ kind: 'terminal', name: 'keyword' },
|
|
72
80
|
false,
|
|
73
81
|
'current',
|
|
82
|
+
acceptedProps,
|
|
74
83
|
) as 'true' | 'false' | 'page' | 'step' | 'location',
|
|
75
|
-
href: checkedProp<string>(
|
|
76
|
-
|
|
84
|
+
href: checkedProp<string>(
|
|
85
|
+
props['href'],
|
|
86
|
+
{ kind: 'terminal', name: 'string' },
|
|
87
|
+
false,
|
|
88
|
+
'href',
|
|
89
|
+
acceptedProps,
|
|
90
|
+
),
|
|
91
|
+
rel: checkedProp<string>(
|
|
92
|
+
props['rel'],
|
|
93
|
+
{ kind: 'terminal', name: 'string' },
|
|
94
|
+
false,
|
|
95
|
+
'rel',
|
|
96
|
+
acceptedProps,
|
|
97
|
+
),
|
|
77
98
|
target: checkedProp<string>(
|
|
78
99
|
props['target'],
|
|
79
100
|
{ kind: 'terminal', name: 'string' },
|
|
80
101
|
false,
|
|
81
102
|
'target',
|
|
103
|
+
acceptedProps,
|
|
82
104
|
),
|
|
83
105
|
}))
|
|
84
106
|
void checkedProps.value
|
|
@@ -181,7 +203,7 @@ function attribute(value: unknown): any {
|
|
|
181
203
|
any
|
|
182
204
|
>)[`${checkedProps.current ?? ''}`],
|
|
183
205
|
)"
|
|
184
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
206
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
185
207
|
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
186
208
|
:data-current="reflectedProp('current', 'current', checkedProps.current, undefined, false)"
|
|
187
209
|
:data-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
@@ -216,7 +238,7 @@ function attribute(value: unknown): any {
|
|
|
216
238
|
any
|
|
217
239
|
>)[`${checkedProps.current ?? ''}`],
|
|
218
240
|
)"
|
|
219
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
241
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
220
242
|
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
221
243
|
:data-current="reflectedProp('current', 'current', checkedProps.current, undefined, false)"
|
|
222
244
|
:data-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|