@threadlabs/looma 0.22.9 → 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-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/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 +1 -1
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +1 -1
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +1 -1
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +1 -1
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +1 -1
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +1 -1
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +1 -1
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -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.vue +13 -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 +13 -7
- 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 +1205 -1205
- package/vue/host.ts +50 -6
package/vue/UiRadioGroup.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
|
|
|
@@ -67,7 +67,7 @@ const propValidityContract = {
|
|
|
67
67
|
default: '',
|
|
68
68
|
},
|
|
69
69
|
},
|
|
70
|
-
}
|
|
70
|
+
} as const
|
|
71
71
|
const props = defineProps({
|
|
72
72
|
disabled: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
73
73
|
invalid: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
@@ -80,48 +80,64 @@ const props = defineProps({
|
|
|
80
80
|
required: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
81
81
|
value: { type: null as unknown as PropType<string | null>, default: '' },
|
|
82
82
|
})
|
|
83
|
+
const acceptedProps: Record<string, unknown> = {
|
|
84
|
+
disabled: false,
|
|
85
|
+
invalid: false,
|
|
86
|
+
label: 'Options',
|
|
87
|
+
name: '',
|
|
88
|
+
orientation: 'horizontal',
|
|
89
|
+
required: false,
|
|
90
|
+
value: '',
|
|
91
|
+
}
|
|
83
92
|
const checkedProps = computed(() => ({
|
|
84
93
|
disabled: checkedProp<boolean>(
|
|
85
94
|
props['disabled'],
|
|
86
95
|
{ kind: 'terminal', name: 'boolean' },
|
|
87
96
|
false,
|
|
88
97
|
'disabled',
|
|
98
|
+
acceptedProps,
|
|
89
99
|
) as boolean,
|
|
90
100
|
invalid: checkedProp<boolean>(
|
|
91
101
|
props['invalid'],
|
|
92
102
|
{ kind: 'terminal', name: 'boolean' },
|
|
93
103
|
false,
|
|
94
104
|
'invalid',
|
|
105
|
+
acceptedProps,
|
|
95
106
|
) as boolean,
|
|
96
107
|
label: checkedProp<string>(
|
|
97
108
|
props['label'],
|
|
98
109
|
{ kind: 'terminal', name: 'string' },
|
|
99
110
|
false,
|
|
100
111
|
'label',
|
|
112
|
+
acceptedProps,
|
|
101
113
|
) as string,
|
|
102
114
|
name: checkedProp<string>(
|
|
103
115
|
props['name'],
|
|
104
116
|
{ kind: 'terminal', name: 'string' },
|
|
105
117
|
false,
|
|
106
118
|
'name',
|
|
119
|
+
acceptedProps,
|
|
107
120
|
) as string,
|
|
108
121
|
orientation: checkedProp<'horizontal' | 'vertical'>(
|
|
109
122
|
props['orientation'],
|
|
110
123
|
{ kind: 'terminal', name: 'keyword' },
|
|
111
124
|
false,
|
|
112
125
|
'orientation',
|
|
126
|
+
acceptedProps,
|
|
113
127
|
) as 'horizontal' | 'vertical',
|
|
114
128
|
required: checkedProp<boolean>(
|
|
115
129
|
props['required'],
|
|
116
130
|
{ kind: 'terminal', name: 'boolean' },
|
|
117
131
|
false,
|
|
118
132
|
'required',
|
|
133
|
+
acceptedProps,
|
|
119
134
|
) as boolean,
|
|
120
135
|
value: checkedProp<string>(
|
|
121
136
|
props['value'],
|
|
122
137
|
{ kind: 'terminal', name: 'string' },
|
|
123
138
|
false,
|
|
124
139
|
'value',
|
|
140
|
+
acceptedProps,
|
|
125
141
|
) as string,
|
|
126
142
|
}))
|
|
127
143
|
void checkedProps.value
|
|
@@ -247,6 +263,16 @@ useComponentHost(() => import('../components/ui-radio-group/ui-radio-group.js'),
|
|
|
247
263
|
definition: './components/ui-radio-group/ui-radio-group.html',
|
|
248
264
|
},
|
|
249
265
|
props: checkedProps,
|
|
266
|
+
propInputs: (name: string) => {
|
|
267
|
+
const incoming = hydrationInstance?.vnode.props
|
|
268
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
269
|
+
return incoming !== null && incoming !== undefined
|
|
270
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
271
|
+
: null
|
|
272
|
+
},
|
|
273
|
+
propNames: ['disabled', 'invalid', 'label', 'name', 'orientation', 'required', 'value'],
|
|
274
|
+
propValidity: (name: string) =>
|
|
275
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
250
276
|
state: { internalValue },
|
|
251
277
|
})
|
|
252
278
|
</script>
|
|
@@ -259,7 +285,7 @@ useComponentHost(() => import('../components/ui-radio-group/ui-radio-group.js'),
|
|
|
259
285
|
:aria-required="checkedProps.required ?? undefined"
|
|
260
286
|
:aria-invalid="checkedProps.invalid ?? undefined"
|
|
261
287
|
:disabled="checkedProps.disabled ?? undefined"
|
|
262
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
288
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
263
289
|
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
264
290
|
:data-invalid="reflectedProp('invalid', 'invalid', checkedProps.invalid, undefined, false)"
|
|
265
291
|
:data-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
package/vue/UiReel.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'
|
|
@@ -33,30 +33,34 @@ const propValidityContract = {
|
|
|
33
33
|
values: ['start', 'center'],
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
|
-
}
|
|
36
|
+
} as const
|
|
37
37
|
const props = defineProps({
|
|
38
38
|
gap: { type: null as unknown as PropType<'xs' | 's' | 'm' | 'l' | 'xl' | null>, default: null },
|
|
39
39
|
itemWidth: { type: null as unknown as PropType<'sm' | 'md' | 'lg' | null>, default: null },
|
|
40
40
|
snap: { type: null as unknown as PropType<'start' | 'center' | null>, default: null },
|
|
41
41
|
})
|
|
42
|
+
const acceptedProps: Record<string, unknown> = { gap: null, itemWidth: null, snap: null }
|
|
42
43
|
const checkedProps = computed(() => ({
|
|
43
44
|
gap: checkedProp<'xs' | 's' | 'm' | 'l' | 'xl'>(
|
|
44
45
|
props['gap'],
|
|
45
46
|
{ kind: 'terminal', name: 'keyword' },
|
|
46
47
|
false,
|
|
47
48
|
'gap',
|
|
49
|
+
acceptedProps,
|
|
48
50
|
),
|
|
49
51
|
itemWidth: checkedProp<'sm' | 'md' | 'lg'>(
|
|
50
52
|
props['itemWidth'],
|
|
51
53
|
{ kind: 'terminal', name: 'keyword' },
|
|
52
54
|
false,
|
|
53
55
|
'itemWidth',
|
|
56
|
+
acceptedProps,
|
|
54
57
|
),
|
|
55
58
|
snap: checkedProp<'start' | 'center'>(
|
|
56
59
|
props['snap'],
|
|
57
60
|
{ kind: 'terminal', name: 'keyword' },
|
|
58
61
|
false,
|
|
59
62
|
'snap',
|
|
63
|
+
acceptedProps,
|
|
60
64
|
),
|
|
61
65
|
}))
|
|
62
66
|
void checkedProps.value
|
|
@@ -131,7 +135,7 @@ const hostState = computed(() =>
|
|
|
131
135
|
role="region"
|
|
132
136
|
tabindex="0"
|
|
133
137
|
v-bind="nativeAttrs($attrs)"
|
|
134
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
138
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
135
139
|
:data-gap="reflectedProp('gap', 'gap', checkedProps.gap, undefined, false)"
|
|
136
140
|
:data-item-width="reflectedProp('itemWidth', 'item-width', checkedProps.itemWidth, undefined, false)"
|
|
137
141
|
:data-snap="reflectedProp('snap', 'snap', checkedProps.snap, undefined, false)"
|
package/vue/UiScrollArea.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, ref, useTemplateRef, 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
|
|
|
@@ -19,19 +19,21 @@ const propValidityContract = {
|
|
|
19
19
|
default: 'vertical',
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
|
-
}
|
|
22
|
+
} as const
|
|
23
23
|
const props = defineProps({
|
|
24
24
|
orientation: {
|
|
25
25
|
type: null as unknown as PropType<'vertical' | 'horizontal' | null>,
|
|
26
26
|
default: 'vertical',
|
|
27
27
|
},
|
|
28
28
|
})
|
|
29
|
+
const acceptedProps: Record<string, unknown> = { orientation: 'vertical' }
|
|
29
30
|
const checkedProps = computed(() => ({
|
|
30
31
|
orientation: checkedProp<'vertical' | 'horizontal'>(
|
|
31
32
|
props['orientation'],
|
|
32
33
|
{ kind: 'terminal', name: 'keyword' },
|
|
33
34
|
false,
|
|
34
35
|
'orientation',
|
|
36
|
+
acceptedProps,
|
|
35
37
|
) as 'vertical' | 'horizontal',
|
|
36
38
|
}))
|
|
37
39
|
void checkedProps.value
|
|
@@ -110,6 +112,16 @@ useComponentHost(() => import('../components/ui-scroll-area/ui-scroll-area.js'),
|
|
|
110
112
|
definition: './components/ui-scroll-area/ui-scroll-area.html',
|
|
111
113
|
},
|
|
112
114
|
props: checkedProps,
|
|
115
|
+
propInputs: (name: string) => {
|
|
116
|
+
const incoming = hydrationInstance?.vnode.props
|
|
117
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
118
|
+
return incoming !== null && incoming !== undefined
|
|
119
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
120
|
+
: null
|
|
121
|
+
},
|
|
122
|
+
propNames: ['orientation'],
|
|
123
|
+
propValidity: (name: string) =>
|
|
124
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
113
125
|
refs: { content: contentElement },
|
|
114
126
|
})
|
|
115
127
|
</script>
|
|
@@ -118,7 +130,7 @@ useComponentHost(() => import('../components/ui-scroll-area/ui-scroll-area.js'),
|
|
|
118
130
|
<div
|
|
119
131
|
data-component="ui-scroll-area"
|
|
120
132
|
v-bind="nativeAttrs($attrs)"
|
|
121
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
133
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
122
134
|
:data-orientation="reflectedProp('orientation', 'orientation', checkedProps.orientation, undefined, false)"
|
|
123
135
|
:data-ui-scroll-area-state="hostState || undefined"
|
|
124
136
|
ref="root"
|
|
@@ -30,8 +30,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
30
30
|
default: boolean;
|
|
31
31
|
};
|
|
32
32
|
}>> & Readonly<{}>, {
|
|
33
|
-
disabled: boolean | null;
|
|
34
33
|
selected: boolean | null;
|
|
34
|
+
disabled: boolean | null;
|
|
35
35
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
36
36
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
37
37
|
declare const _default: typeof __VLS_export;
|
|
@@ -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'
|
|
@@ -25,23 +25,26 @@ const propValidityContract = {
|
|
|
25
25
|
default: false,
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
|
-
}
|
|
28
|
+
} as const
|
|
29
29
|
const props = defineProps({
|
|
30
30
|
disabled: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
31
31
|
selected: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
32
32
|
})
|
|
33
|
+
const acceptedProps: Record<string, unknown> = { disabled: false, selected: false }
|
|
33
34
|
const checkedProps = computed(() => ({
|
|
34
35
|
disabled: checkedProp<boolean>(
|
|
35
36
|
props['disabled'],
|
|
36
37
|
{ kind: 'terminal', name: 'boolean' },
|
|
37
38
|
false,
|
|
38
39
|
'disabled',
|
|
40
|
+
acceptedProps,
|
|
39
41
|
) as boolean,
|
|
40
42
|
selected: checkedProp<boolean>(
|
|
41
43
|
props['selected'],
|
|
42
44
|
{ kind: 'terminal', name: 'boolean' },
|
|
43
45
|
false,
|
|
44
46
|
'selected',
|
|
47
|
+
acceptedProps,
|
|
45
48
|
) as boolean,
|
|
46
49
|
}))
|
|
47
50
|
void checkedProps.value
|
|
@@ -114,7 +117,7 @@ const hostState = computed(() =>
|
|
|
114
117
|
v-bind="nativeAttrs($attrs)"
|
|
115
118
|
:disabled="checkedProps.disabled ?? undefined"
|
|
116
119
|
:aria-current="checkedProps.selected ?? undefined"
|
|
117
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
120
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
118
121
|
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
119
122
|
:data-selected="reflectedProp('selected', 'selected', checkedProps.selected, undefined, false)"
|
|
120
123
|
:data-ui-search-result-row-state="hostState || undefined"
|
package/vue/UiSearchShell.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, 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
|
|
|
@@ -39,37 +39,47 @@ const propValidityContract = {
|
|
|
39
39
|
default: false,
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
|
-
}
|
|
42
|
+
} as const
|
|
43
43
|
const props = defineProps({
|
|
44
44
|
dismissible: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
45
45
|
label: { type: null as unknown as PropType<string | null>, default: 'Search' },
|
|
46
46
|
modal: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
47
47
|
open: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
48
48
|
})
|
|
49
|
+
const acceptedProps: Record<string, unknown> = {
|
|
50
|
+
dismissible: false,
|
|
51
|
+
label: 'Search',
|
|
52
|
+
modal: false,
|
|
53
|
+
open: false,
|
|
54
|
+
}
|
|
49
55
|
const checkedProps = computed(() => ({
|
|
50
56
|
dismissible: checkedProp<boolean>(
|
|
51
57
|
props['dismissible'],
|
|
52
58
|
{ kind: 'terminal', name: 'boolean' },
|
|
53
59
|
false,
|
|
54
60
|
'dismissible',
|
|
61
|
+
acceptedProps,
|
|
55
62
|
) as boolean,
|
|
56
63
|
label: checkedProp<string>(
|
|
57
64
|
props['label'],
|
|
58
65
|
{ kind: 'terminal', name: 'string' },
|
|
59
66
|
false,
|
|
60
67
|
'label',
|
|
68
|
+
acceptedProps,
|
|
61
69
|
) as string,
|
|
62
70
|
modal: checkedProp<boolean>(
|
|
63
71
|
props['modal'],
|
|
64
72
|
{ kind: 'terminal', name: 'boolean' },
|
|
65
73
|
false,
|
|
66
74
|
'modal',
|
|
75
|
+
acceptedProps,
|
|
67
76
|
) as boolean,
|
|
68
77
|
open: checkedProp<boolean>(
|
|
69
78
|
props['open'],
|
|
70
79
|
{ kind: 'terminal', name: 'boolean' },
|
|
71
80
|
false,
|
|
72
81
|
'open',
|
|
82
|
+
acceptedProps,
|
|
73
83
|
) as boolean,
|
|
74
84
|
}))
|
|
75
85
|
void checkedProps.value
|
|
@@ -169,6 +179,16 @@ useComponentHost(() => import('../components/ui-search-shell/ui-search-shell.js'
|
|
|
169
179
|
definition: './components/ui-search-shell/ui-search-shell.html',
|
|
170
180
|
},
|
|
171
181
|
props: checkedProps,
|
|
182
|
+
propInputs: (name: string) => {
|
|
183
|
+
const incoming = hydrationInstance?.vnode.props
|
|
184
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
185
|
+
return incoming !== null && incoming !== undefined
|
|
186
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
187
|
+
: null
|
|
188
|
+
},
|
|
189
|
+
propNames: ['dismissible', 'label', 'modal', 'open'],
|
|
190
|
+
propValidity: (name: string) =>
|
|
191
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
172
192
|
refs: { dialog: dialogElement },
|
|
173
193
|
state: { internalOpen },
|
|
174
194
|
})
|
|
@@ -178,7 +198,7 @@ useComponentHost(() => import('../components/ui-search-shell/ui-search-shell.js'
|
|
|
178
198
|
<div
|
|
179
199
|
data-component="ui-search-shell"
|
|
180
200
|
v-bind="nativeAttrs($attrs)"
|
|
181
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
201
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
182
202
|
:data-dismissible="reflectedProp('dismissible', 'dismissible', checkedProps.dismissible, undefined, false)"
|
|
183
203
|
:data-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
184
204
|
:data-modal="reflectedProp('modal', 'modal', checkedProps.modal, undefined, false)"
|
package/vue/UiSection.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'
|
|
@@ -35,7 +35,7 @@ const propValidityContract = {
|
|
|
35
35
|
default: 'plain',
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
|
-
}
|
|
38
|
+
} as const
|
|
39
39
|
const props = defineProps({
|
|
40
40
|
heading: { type: null as unknown as PropType<string | null>, default: '' },
|
|
41
41
|
tone: { type: null as unknown as PropType<'neutral' | 'danger' | null>, default: 'neutral' },
|
|
@@ -44,24 +44,28 @@ const props = defineProps({
|
|
|
44
44
|
default: 'plain',
|
|
45
45
|
},
|
|
46
46
|
})
|
|
47
|
+
const acceptedProps: Record<string, unknown> = { heading: '', tone: 'neutral', variant: 'plain' }
|
|
47
48
|
const checkedProps = computed(() => ({
|
|
48
49
|
heading: checkedProp<string>(
|
|
49
50
|
props['heading'],
|
|
50
51
|
{ kind: 'terminal', name: 'string' },
|
|
51
52
|
false,
|
|
52
53
|
'heading',
|
|
54
|
+
acceptedProps,
|
|
53
55
|
) as string,
|
|
54
56
|
tone: checkedProp<'neutral' | 'danger'>(
|
|
55
57
|
props['tone'],
|
|
56
58
|
{ kind: 'terminal', name: 'keyword' },
|
|
57
59
|
false,
|
|
58
60
|
'tone',
|
|
61
|
+
acceptedProps,
|
|
59
62
|
) as 'neutral' | 'danger',
|
|
60
63
|
variant: checkedProp<'plain' | 'card' | 'divided'>(
|
|
61
64
|
props['variant'],
|
|
62
65
|
{ kind: 'terminal', name: 'keyword' },
|
|
63
66
|
false,
|
|
64
67
|
'variant',
|
|
68
|
+
acceptedProps,
|
|
65
69
|
) as 'plain' | 'card' | 'divided',
|
|
66
70
|
}))
|
|
67
71
|
void checkedProps.value
|
|
@@ -135,7 +139,7 @@ const hostState = computed(() =>
|
|
|
135
139
|
<section
|
|
136
140
|
data-component="ui-section"
|
|
137
141
|
v-bind="nativeAttrs($attrs)"
|
|
138
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
142
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
139
143
|
:data-heading="reflectedProp('heading', 'heading', checkedProps.heading, undefined, false)"
|
|
140
144
|
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
141
145
|
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
package/vue/UiSelect.vue
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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, ref, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
5
5
|
import { readBoundControl, SelectedOptions, vBindControl } from './control'
|
|
6
6
|
import { createDispatch, useComponentHost } from './host'
|
|
7
|
-
import { checkedProp, vPropValidity } from './props'
|
|
7
|
+
import { checkedProp, propValidityState, vPropValidity } from './props'
|
|
8
8
|
|
|
9
9
|
defineOptions({ inheritAttrs: false })
|
|
10
10
|
|
|
@@ -48,7 +48,7 @@ const propValidityContract = {
|
|
|
48
48
|
'The value of the selected option, initially or when set externally. It is also the default, so a form reset returns to it rather than to the first\n option.',
|
|
49
49
|
},
|
|
50
50
|
},
|
|
51
|
-
}
|
|
51
|
+
} as const
|
|
52
52
|
const props = defineProps({
|
|
53
53
|
disabled: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
54
54
|
invalid: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
@@ -57,37 +57,55 @@ const props = defineProps({
|
|
|
57
57
|
value: { type: null as unknown as PropType<string | null>, default: null },
|
|
58
58
|
modelValue: { type: null as unknown as PropType<string | null | undefined> },
|
|
59
59
|
})
|
|
60
|
+
const acceptedProps: Record<string, unknown> = {
|
|
61
|
+
disabled: false,
|
|
62
|
+
invalid: false,
|
|
63
|
+
required: false,
|
|
64
|
+
size: 'md',
|
|
65
|
+
value: null,
|
|
66
|
+
}
|
|
60
67
|
const checkedProps = computed(() => ({
|
|
61
68
|
disabled: checkedProp<boolean>(
|
|
62
69
|
props['disabled'],
|
|
63
70
|
{ kind: 'terminal', name: 'boolean' },
|
|
64
71
|
false,
|
|
65
72
|
'disabled',
|
|
73
|
+
acceptedProps,
|
|
66
74
|
) as boolean,
|
|
67
75
|
invalid: checkedProp<boolean>(
|
|
68
76
|
props['invalid'],
|
|
69
77
|
{ kind: 'terminal', name: 'boolean' },
|
|
70
78
|
false,
|
|
71
79
|
'invalid',
|
|
80
|
+
acceptedProps,
|
|
72
81
|
) as boolean,
|
|
73
82
|
required: checkedProp<boolean>(
|
|
74
83
|
props['required'],
|
|
75
84
|
{ kind: 'terminal', name: 'boolean' },
|
|
76
85
|
false,
|
|
77
86
|
'required',
|
|
87
|
+
acceptedProps,
|
|
78
88
|
) as boolean,
|
|
79
89
|
size: checkedProp<'sm' | 'md' | 'lg'>(
|
|
80
90
|
props['size'],
|
|
81
91
|
{ kind: 'terminal', name: 'keyword' },
|
|
82
92
|
false,
|
|
83
93
|
'size',
|
|
94
|
+
acceptedProps,
|
|
84
95
|
) as 'sm' | 'md' | 'lg',
|
|
85
|
-
value: checkedProp<string>(
|
|
96
|
+
value: checkedProp<string>(
|
|
97
|
+
props['value'],
|
|
98
|
+
{ kind: 'terminal', name: 'string' },
|
|
99
|
+
false,
|
|
100
|
+
'value',
|
|
101
|
+
acceptedProps,
|
|
102
|
+
),
|
|
86
103
|
modelValue: checkedProp<string | null>(
|
|
87
104
|
props.modelValue,
|
|
88
105
|
{ kind: 'terminal', name: 'string' },
|
|
89
106
|
false,
|
|
90
107
|
'modelValue',
|
|
108
|
+
acceptedProps,
|
|
91
109
|
),
|
|
92
110
|
}))
|
|
93
111
|
void checkedProps.value
|
|
@@ -168,6 +186,16 @@ useComponentHost(() => import('../components/ui-select/ui-select.js'), {
|
|
|
168
186
|
definition: './components/ui-select/ui-select.html',
|
|
169
187
|
},
|
|
170
188
|
props: checkedProps,
|
|
189
|
+
propInputs: (name: string) => {
|
|
190
|
+
const incoming = hydrationInstance?.vnode.props
|
|
191
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
192
|
+
return incoming !== null && incoming !== undefined
|
|
193
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
194
|
+
: null
|
|
195
|
+
},
|
|
196
|
+
propNames: ['disabled', 'invalid', 'required', 'size', 'value'],
|
|
197
|
+
propValidity: (name: string) =>
|
|
198
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
171
199
|
})
|
|
172
200
|
</script>
|
|
173
201
|
|
|
@@ -178,7 +206,7 @@ useComponentHost(() => import('../components/ui-select/ui-select.js'), {
|
|
|
178
206
|
:disabled="checkedProps.disabled ?? undefined"
|
|
179
207
|
:required="checkedProps.required ?? undefined"
|
|
180
208
|
:aria-invalid="checkedProps.invalid ?? undefined"
|
|
181
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
209
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
182
210
|
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
183
211
|
:data-invalid="reflectedProp('invalid', 'invalid', checkedProps.invalid, undefined, false)"
|
|
184
212
|
:data-required="reflectedProp('required', 'required', checkedProps.required, undefined, false)"
|
package/vue/UiSeparator.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'
|
|
@@ -18,19 +18,21 @@ const propValidityContract = {
|
|
|
18
18
|
default: 'horizontal',
|
|
19
19
|
},
|
|
20
20
|
},
|
|
21
|
-
}
|
|
21
|
+
} as const
|
|
22
22
|
const props = defineProps({
|
|
23
23
|
orientation: {
|
|
24
24
|
type: null as unknown as PropType<'horizontal' | 'vertical' | null>,
|
|
25
25
|
default: 'horizontal',
|
|
26
26
|
},
|
|
27
27
|
})
|
|
28
|
+
const acceptedProps: Record<string, unknown> = { orientation: 'horizontal' }
|
|
28
29
|
const checkedProps = computed(() => ({
|
|
29
30
|
orientation: checkedProp<'horizontal' | 'vertical'>(
|
|
30
31
|
props['orientation'],
|
|
31
32
|
{ kind: 'terminal', name: 'keyword' },
|
|
32
33
|
false,
|
|
33
34
|
'orientation',
|
|
35
|
+
acceptedProps,
|
|
34
36
|
) as 'horizontal' | 'vertical',
|
|
35
37
|
}))
|
|
36
38
|
void checkedProps.value
|
|
@@ -94,7 +96,7 @@ if (
|
|
|
94
96
|
data-component="ui-separator"
|
|
95
97
|
v-bind="nativeAttrs($attrs)"
|
|
96
98
|
:aria-orientation="checkedProps.orientation ?? undefined"
|
|
97
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
99
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
98
100
|
:data-orientation="reflectedProp('orientation', 'orientation', checkedProps.orientation, undefined, false)"
|
|
99
101
|
>
|
|
100
102
|
</template>
|