@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/UiSidebar.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
|
|
|
@@ -77,7 +77,7 @@ const propValidityContract = {
|
|
|
77
77
|
default: 0,
|
|
78
78
|
},
|
|
79
79
|
},
|
|
80
|
-
}
|
|
80
|
+
} as const
|
|
81
81
|
const props = defineProps({
|
|
82
82
|
breakpoint: { type: null as unknown as PropType<'sm' | 'md' | 'lg' | null>, default: 'md' },
|
|
83
83
|
collapsed: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
@@ -89,60 +89,80 @@ const props = defineProps({
|
|
|
89
89
|
side: { type: null as unknown as PropType<'start' | 'end' | null>, default: 'start' },
|
|
90
90
|
width: { type: null as unknown as PropType<number | null>, default: 0 },
|
|
91
91
|
})
|
|
92
|
+
const acceptedProps: Record<string, unknown> = {
|
|
93
|
+
breakpoint: 'md',
|
|
94
|
+
collapsed: false,
|
|
95
|
+
maxWidth: 480,
|
|
96
|
+
minWidth: 200,
|
|
97
|
+
resizable: false,
|
|
98
|
+
resizeLabel: 'Resize sidebar',
|
|
99
|
+
resizeStep: 16,
|
|
100
|
+
side: 'start',
|
|
101
|
+
width: 0,
|
|
102
|
+
}
|
|
92
103
|
const checkedProps = computed(() => ({
|
|
93
104
|
breakpoint: checkedProp<'sm' | 'md' | 'lg'>(
|
|
94
105
|
props['breakpoint'],
|
|
95
106
|
{ kind: 'terminal', name: 'keyword' },
|
|
96
107
|
false,
|
|
97
108
|
'breakpoint',
|
|
109
|
+
acceptedProps,
|
|
98
110
|
) as 'sm' | 'md' | 'lg',
|
|
99
111
|
collapsed: checkedProp<boolean>(
|
|
100
112
|
props['collapsed'],
|
|
101
113
|
{ kind: 'terminal', name: 'boolean' },
|
|
102
114
|
false,
|
|
103
115
|
'collapsed',
|
|
116
|
+
acceptedProps,
|
|
104
117
|
) as boolean,
|
|
105
118
|
maxWidth: checkedProp<number>(
|
|
106
119
|
props['maxWidth'],
|
|
107
120
|
{ kind: 'terminal', name: 'number' },
|
|
108
121
|
false,
|
|
109
122
|
'maxWidth',
|
|
123
|
+
acceptedProps,
|
|
110
124
|
) as number,
|
|
111
125
|
minWidth: checkedProp<number>(
|
|
112
126
|
props['minWidth'],
|
|
113
127
|
{ kind: 'terminal', name: 'number' },
|
|
114
128
|
false,
|
|
115
129
|
'minWidth',
|
|
130
|
+
acceptedProps,
|
|
116
131
|
) as number,
|
|
117
132
|
resizable: checkedProp<boolean>(
|
|
118
133
|
props['resizable'],
|
|
119
134
|
{ kind: 'terminal', name: 'boolean' },
|
|
120
135
|
false,
|
|
121
136
|
'resizable',
|
|
137
|
+
acceptedProps,
|
|
122
138
|
) as boolean,
|
|
123
139
|
resizeLabel: checkedProp<string>(
|
|
124
140
|
props['resizeLabel'],
|
|
125
141
|
{ kind: 'terminal', name: 'string' },
|
|
126
142
|
false,
|
|
127
143
|
'resizeLabel',
|
|
144
|
+
acceptedProps,
|
|
128
145
|
) as string,
|
|
129
146
|
resizeStep: checkedProp<number>(
|
|
130
147
|
props['resizeStep'],
|
|
131
148
|
{ kind: 'terminal', name: 'number' },
|
|
132
149
|
false,
|
|
133
150
|
'resizeStep',
|
|
151
|
+
acceptedProps,
|
|
134
152
|
) as number,
|
|
135
153
|
side: checkedProp<'start' | 'end'>(
|
|
136
154
|
props['side'],
|
|
137
155
|
{ kind: 'terminal', name: 'keyword' },
|
|
138
156
|
false,
|
|
139
157
|
'side',
|
|
158
|
+
acceptedProps,
|
|
140
159
|
) as 'start' | 'end',
|
|
141
160
|
width: checkedProp<number>(
|
|
142
161
|
props['width'],
|
|
143
162
|
{ kind: 'terminal', name: 'number' },
|
|
144
163
|
false,
|
|
145
164
|
'width',
|
|
165
|
+
acceptedProps,
|
|
146
166
|
) as number,
|
|
147
167
|
}))
|
|
148
168
|
void checkedProps.value
|
|
@@ -273,6 +293,26 @@ useComponentHost(() => import('../components/ui-sidebar/ui-sidebar.js'), {
|
|
|
273
293
|
definition: './components/ui-sidebar/ui-sidebar.html',
|
|
274
294
|
},
|
|
275
295
|
props: checkedProps,
|
|
296
|
+
propInputs: (name: string) => {
|
|
297
|
+
const incoming = hydrationInstance?.vnode.props
|
|
298
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
299
|
+
return incoming !== null && incoming !== undefined
|
|
300
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
301
|
+
: null
|
|
302
|
+
},
|
|
303
|
+
propNames: [
|
|
304
|
+
'breakpoint',
|
|
305
|
+
'collapsed',
|
|
306
|
+
'maxWidth',
|
|
307
|
+
'minWidth',
|
|
308
|
+
'resizable',
|
|
309
|
+
'resizeLabel',
|
|
310
|
+
'resizeStep',
|
|
311
|
+
'side',
|
|
312
|
+
'width',
|
|
313
|
+
],
|
|
314
|
+
propValidity: (name: string) =>
|
|
315
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
276
316
|
refs: { resizer: resizerElement },
|
|
277
317
|
state: { internalCollapsed, drawer },
|
|
278
318
|
})
|
|
@@ -282,7 +322,7 @@ useComponentHost(() => import('../components/ui-sidebar/ui-sidebar.js'), {
|
|
|
282
322
|
<aside
|
|
283
323
|
data-component="ui-sidebar"
|
|
284
324
|
v-bind="nativeAttrs($attrs)"
|
|
285
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
325
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
286
326
|
:data-breakpoint="reflectedProp('breakpoint', 'breakpoint', checkedProps.breakpoint, undefined, false)"
|
|
287
327
|
:data-collapsed="reflectedProp('collapsed', 'collapsed', checkedProps.collapsed, undefined, false)"
|
|
288
328
|
:data-max-width="reflectedProp('maxWidth', 'max-width', checkedProps.maxWidth, undefined, false)"
|
package/vue/UiSpinner.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'
|
|
@@ -25,23 +25,26 @@ const propValidityContract = {
|
|
|
25
25
|
default: 'md',
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
|
-
}
|
|
28
|
+
} as const
|
|
29
29
|
const props = defineProps({
|
|
30
30
|
label: { type: null as unknown as PropType<string | null>, default: '' },
|
|
31
31
|
size: { type: null as unknown as PropType<'sm' | 'md' | null>, default: 'md' },
|
|
32
32
|
})
|
|
33
|
+
const acceptedProps: Record<string, unknown> = { label: '', size: 'md' }
|
|
33
34
|
const checkedProps = computed(() => ({
|
|
34
35
|
label: checkedProp<string>(
|
|
35
36
|
props['label'],
|
|
36
37
|
{ kind: 'terminal', name: 'string' },
|
|
37
38
|
false,
|
|
38
39
|
'label',
|
|
40
|
+
acceptedProps,
|
|
39
41
|
) as string,
|
|
40
42
|
size: checkedProp<'sm' | 'md'>(
|
|
41
43
|
props['size'],
|
|
42
44
|
{ kind: 'terminal', name: 'keyword' },
|
|
43
45
|
false,
|
|
44
46
|
'size',
|
|
47
|
+
acceptedProps,
|
|
45
48
|
) as 'sm' | 'md',
|
|
46
49
|
}))
|
|
47
50
|
void checkedProps.value
|
|
@@ -156,7 +159,7 @@ function attribute(value: unknown): any {
|
|
|
156
159
|
: attribute(
|
|
157
160
|
(({ true: null, false: 'true' }) as Record<string, any>)[`${checkedProps.label !== ''}`],
|
|
158
161
|
)"
|
|
159
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
162
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
160
163
|
:data-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
161
164
|
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
162
165
|
:data-ui-spinner-state="hostState || undefined"
|
package/vue/UiStack.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,7 +33,7 @@ const propValidityContract = {
|
|
|
33
33
|
values: ['start', 'center', 'end', 'between'],
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
|
-
}
|
|
36
|
+
} as const
|
|
37
37
|
const props = defineProps({
|
|
38
38
|
align: {
|
|
39
39
|
type: null as unknown as PropType<'start' | 'center' | 'end' | 'stretch' | null>,
|
|
@@ -45,24 +45,28 @@ const props = defineProps({
|
|
|
45
45
|
default: null,
|
|
46
46
|
},
|
|
47
47
|
})
|
|
48
|
+
const acceptedProps: Record<string, unknown> = { align: null, gap: null, justify: null }
|
|
48
49
|
const checkedProps = computed(() => ({
|
|
49
50
|
align: checkedProp<'start' | 'center' | 'end' | 'stretch'>(
|
|
50
51
|
props['align'],
|
|
51
52
|
{ kind: 'terminal', name: 'keyword' },
|
|
52
53
|
false,
|
|
53
54
|
'align',
|
|
55
|
+
acceptedProps,
|
|
54
56
|
),
|
|
55
57
|
gap: checkedProp<'xs' | 's' | 'm' | 'l' | 'xl'>(
|
|
56
58
|
props['gap'],
|
|
57
59
|
{ kind: 'terminal', name: 'keyword' },
|
|
58
60
|
false,
|
|
59
61
|
'gap',
|
|
62
|
+
acceptedProps,
|
|
60
63
|
),
|
|
61
64
|
justify: checkedProp<'start' | 'center' | 'end' | 'between'>(
|
|
62
65
|
props['justify'],
|
|
63
66
|
{ kind: 'terminal', name: 'keyword' },
|
|
64
67
|
false,
|
|
65
68
|
'justify',
|
|
69
|
+
acceptedProps,
|
|
66
70
|
),
|
|
67
71
|
}))
|
|
68
72
|
void checkedProps.value
|
|
@@ -135,7 +139,7 @@ const hostState = computed(() =>
|
|
|
135
139
|
<div
|
|
136
140
|
data-component="ui-stack"
|
|
137
141
|
v-bind="nativeAttrs($attrs)"
|
|
138
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
142
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
139
143
|
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
140
144
|
:data-gap="reflectedProp('gap', 'gap', checkedProps.gap, undefined, false)"
|
|
141
145
|
:data-justify="reflectedProp('justify', 'justify', checkedProps.justify, undefined, false)"
|
package/vue/UiStatusMessage.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: 'inline',
|
|
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
|
kind: {
|
|
@@ -47,24 +47,28 @@ const props = defineProps({
|
|
|
47
47
|
default: 'inline',
|
|
48
48
|
},
|
|
49
49
|
})
|
|
50
|
+
const acceptedProps: Record<string, unknown> = { heading: '', kind: 'empty', layout: 'inline' }
|
|
50
51
|
const checkedProps = computed(() => ({
|
|
51
52
|
heading: checkedProp<string>(
|
|
52
53
|
props['heading'],
|
|
53
54
|
{ kind: 'terminal', name: 'string' },
|
|
54
55
|
false,
|
|
55
56
|
'heading',
|
|
57
|
+
acceptedProps,
|
|
56
58
|
) as string,
|
|
57
59
|
kind: checkedProp<'empty' | 'loading' | 'error'>(
|
|
58
60
|
props['kind'],
|
|
59
61
|
{ kind: 'terminal', name: 'keyword' },
|
|
60
62
|
false,
|
|
61
63
|
'kind',
|
|
64
|
+
acceptedProps,
|
|
62
65
|
) as 'empty' | 'loading' | 'error',
|
|
63
66
|
layout: checkedProp<'inline' | 'panel' | 'fill'>(
|
|
64
67
|
props['layout'],
|
|
65
68
|
{ kind: 'terminal', name: 'keyword' },
|
|
66
69
|
false,
|
|
67
70
|
'layout',
|
|
71
|
+
acceptedProps,
|
|
68
72
|
) as 'inline' | 'panel' | 'fill',
|
|
69
73
|
}))
|
|
70
74
|
void checkedProps.value
|
|
@@ -153,7 +157,7 @@ function attribute(value: unknown): any {
|
|
|
153
157
|
:role="attribute(
|
|
154
158
|
(({ true: 'alert', false: 'status' }) as Record<string, any>)[`${checkedProps.kind === 'error'}`],
|
|
155
159
|
)"
|
|
156
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
160
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
157
161
|
:data-heading="reflectedProp('heading', 'heading', checkedProps.heading, undefined, false)"
|
|
158
162
|
:data-kind="reflectedProp('kind', 'kind', checkedProps.kind, undefined, false)"
|
|
159
163
|
:data-layout="reflectedProp('layout', 'layout', checkedProps.layout, undefined, false)"
|
package/vue/UiSwitch.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, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
5
5
|
import { 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
|
|
|
@@ -59,7 +59,7 @@ const propValidityContract = {
|
|
|
59
59
|
default: 'on',
|
|
60
60
|
},
|
|
61
61
|
},
|
|
62
|
-
}
|
|
62
|
+
} as const
|
|
63
63
|
const props = defineProps({
|
|
64
64
|
checked: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
65
65
|
disabled: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
@@ -68,42 +68,56 @@ const props = defineProps({
|
|
|
68
68
|
size: { type: null as unknown as PropType<'sm' | 'md' | 'lg' | null>, default: 'md' },
|
|
69
69
|
value: { type: null as unknown as PropType<string | null>, default: 'on' },
|
|
70
70
|
})
|
|
71
|
+
const acceptedProps: Record<string, unknown> = {
|
|
72
|
+
checked: false,
|
|
73
|
+
disabled: false,
|
|
74
|
+
name: '',
|
|
75
|
+
required: false,
|
|
76
|
+
size: 'md',
|
|
77
|
+
value: 'on',
|
|
78
|
+
}
|
|
71
79
|
const checkedProps = computed(() => ({
|
|
72
80
|
checked: checkedProp<boolean>(
|
|
73
81
|
props['checked'],
|
|
74
82
|
{ kind: 'terminal', name: 'boolean' },
|
|
75
83
|
false,
|
|
76
84
|
'checked',
|
|
85
|
+
acceptedProps,
|
|
77
86
|
) as boolean,
|
|
78
87
|
disabled: checkedProp<boolean>(
|
|
79
88
|
props['disabled'],
|
|
80
89
|
{ kind: 'terminal', name: 'boolean' },
|
|
81
90
|
false,
|
|
82
91
|
'disabled',
|
|
92
|
+
acceptedProps,
|
|
83
93
|
) as boolean,
|
|
84
94
|
name: checkedProp<string>(
|
|
85
95
|
props['name'],
|
|
86
96
|
{ kind: 'terminal', name: 'string' },
|
|
87
97
|
false,
|
|
88
98
|
'name',
|
|
99
|
+
acceptedProps,
|
|
89
100
|
) as string,
|
|
90
101
|
required: checkedProp<boolean>(
|
|
91
102
|
props['required'],
|
|
92
103
|
{ kind: 'terminal', name: 'boolean' },
|
|
93
104
|
false,
|
|
94
105
|
'required',
|
|
106
|
+
acceptedProps,
|
|
95
107
|
) as boolean,
|
|
96
108
|
size: checkedProp<'sm' | 'md' | 'lg'>(
|
|
97
109
|
props['size'],
|
|
98
110
|
{ kind: 'terminal', name: 'keyword' },
|
|
99
111
|
false,
|
|
100
112
|
'size',
|
|
113
|
+
acceptedProps,
|
|
101
114
|
) as 'sm' | 'md' | 'lg',
|
|
102
115
|
value: checkedProp<string>(
|
|
103
116
|
props['value'],
|
|
104
117
|
{ kind: 'terminal', name: 'string' },
|
|
105
118
|
false,
|
|
106
119
|
'value',
|
|
120
|
+
acceptedProps,
|
|
107
121
|
) as string,
|
|
108
122
|
}))
|
|
109
123
|
void checkedProps.value
|
|
@@ -208,6 +222,16 @@ useComponentHost(() => import('../components/ui-switch/ui-switch.js'), {
|
|
|
208
222
|
definition: './components/ui-switch/ui-switch.html',
|
|
209
223
|
},
|
|
210
224
|
props: checkedProps,
|
|
225
|
+
propInputs: (name: string) => {
|
|
226
|
+
const incoming = hydrationInstance?.vnode.props
|
|
227
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
228
|
+
return incoming !== null && incoming !== undefined
|
|
229
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
230
|
+
: null
|
|
231
|
+
},
|
|
232
|
+
propNames: ['checked', 'disabled', 'name', 'required', 'size', 'value'],
|
|
233
|
+
propValidity: (name: string) =>
|
|
234
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
211
235
|
refs: { input: inputElement, description: descriptionElement },
|
|
212
236
|
state: { internalChecked },
|
|
213
237
|
})
|
|
@@ -217,7 +241,7 @@ useComponentHost(() => import('../components/ui-switch/ui-switch.js'), {
|
|
|
217
241
|
<label
|
|
218
242
|
data-component="ui-switch"
|
|
219
243
|
v-bind="nativeAttrs($attrs)"
|
|
220
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
244
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
221
245
|
:data-checked="reflectedProp('checked', 'checked', checkedProps.checked, undefined, false)"
|
|
222
246
|
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
223
247
|
:data-name="reflectedProp('name', 'name', checkedProps.name, undefined, false)"
|
package/vue/UiSwitcher.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
|
|
|
@@ -41,7 +41,7 @@ const propValidityContract = {
|
|
|
41
41
|
values: ['xs', 'sm', 'md', 'lg'],
|
|
42
42
|
},
|
|
43
43
|
},
|
|
44
|
-
}
|
|
44
|
+
} as const
|
|
45
45
|
const props = defineProps({
|
|
46
46
|
align: {
|
|
47
47
|
type: null as unknown as PropType<'start' | 'center' | 'end' | 'stretch' | null>,
|
|
@@ -51,25 +51,40 @@ const props = defineProps({
|
|
|
51
51
|
limit: { type: null as unknown as PropType<number | null>, default: null },
|
|
52
52
|
threshold: { type: null as unknown as PropType<'xs' | 'sm' | 'md' | 'lg' | null>, default: null },
|
|
53
53
|
})
|
|
54
|
+
const acceptedProps: Record<string, unknown> = {
|
|
55
|
+
align: null,
|
|
56
|
+
gap: null,
|
|
57
|
+
limit: null,
|
|
58
|
+
threshold: null,
|
|
59
|
+
}
|
|
54
60
|
const checkedProps = computed(() => ({
|
|
55
61
|
align: checkedProp<'start' | 'center' | 'end' | 'stretch'>(
|
|
56
62
|
props['align'],
|
|
57
63
|
{ kind: 'terminal', name: 'keyword' },
|
|
58
64
|
false,
|
|
59
65
|
'align',
|
|
66
|
+
acceptedProps,
|
|
60
67
|
),
|
|
61
68
|
gap: checkedProp<'xs' | 's' | 'm' | 'l' | 'xl'>(
|
|
62
69
|
props['gap'],
|
|
63
70
|
{ kind: 'terminal', name: 'keyword' },
|
|
64
71
|
false,
|
|
65
72
|
'gap',
|
|
73
|
+
acceptedProps,
|
|
74
|
+
),
|
|
75
|
+
limit: checkedProp<number>(
|
|
76
|
+
props['limit'],
|
|
77
|
+
{ kind: 'terminal', name: 'integer' },
|
|
78
|
+
false,
|
|
79
|
+
'limit',
|
|
80
|
+
acceptedProps,
|
|
66
81
|
),
|
|
67
|
-
limit: checkedProp<number>(props['limit'], { kind: 'terminal', name: 'integer' }, false, 'limit'),
|
|
68
82
|
threshold: checkedProp<'xs' | 'sm' | 'md' | 'lg'>(
|
|
69
83
|
props['threshold'],
|
|
70
84
|
{ kind: 'terminal', name: 'keyword' },
|
|
71
85
|
false,
|
|
72
86
|
'threshold',
|
|
87
|
+
acceptedProps,
|
|
73
88
|
),
|
|
74
89
|
}))
|
|
75
90
|
void checkedProps.value
|
|
@@ -154,6 +169,16 @@ useComponentHost(() => import('../components/ui-switcher/ui-switcher.js'), {
|
|
|
154
169
|
definition: './components/ui-switcher/ui-switcher.html',
|
|
155
170
|
},
|
|
156
171
|
props: checkedProps,
|
|
172
|
+
propInputs: (name: string) => {
|
|
173
|
+
const incoming = hydrationInstance?.vnode.props
|
|
174
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
175
|
+
return incoming !== null && incoming !== undefined
|
|
176
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
177
|
+
: null
|
|
178
|
+
},
|
|
179
|
+
propNames: ['align', 'gap', 'limit', 'threshold'],
|
|
180
|
+
propValidity: (name: string) =>
|
|
181
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
157
182
|
state: { overLimit },
|
|
158
183
|
})
|
|
159
184
|
</script>
|
|
@@ -162,7 +187,7 @@ useComponentHost(() => import('../components/ui-switcher/ui-switcher.js'), {
|
|
|
162
187
|
<div
|
|
163
188
|
data-component="ui-switcher"
|
|
164
189
|
v-bind="nativeAttrs($attrs)"
|
|
165
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
190
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
166
191
|
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
167
192
|
:data-gap="reflectedProp('gap', 'gap', checkedProps.gap, undefined, false)"
|
|
168
193
|
:data-limit="reflectedProp('limit', 'limit', checkedProps.limit, undefined, false)"
|
package/vue/UiTable.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, 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
|
|
|
@@ -27,7 +27,7 @@ const propValidityContract = {
|
|
|
27
27
|
default: false,
|
|
28
28
|
},
|
|
29
29
|
},
|
|
30
|
-
}
|
|
30
|
+
} as const
|
|
31
31
|
const props = defineProps({
|
|
32
32
|
density: {
|
|
33
33
|
type: null as unknown as PropType<'comfortable' | 'compact' | null>,
|
|
@@ -35,18 +35,21 @@ const props = defineProps({
|
|
|
35
35
|
},
|
|
36
36
|
stickyHeader: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
37
37
|
})
|
|
38
|
+
const acceptedProps: Record<string, unknown> = { density: 'comfortable', stickyHeader: false }
|
|
38
39
|
const checkedProps = computed(() => ({
|
|
39
40
|
density: checkedProp<'comfortable' | 'compact'>(
|
|
40
41
|
props['density'],
|
|
41
42
|
{ kind: 'terminal', name: 'keyword' },
|
|
42
43
|
false,
|
|
43
44
|
'density',
|
|
45
|
+
acceptedProps,
|
|
44
46
|
) as 'comfortable' | 'compact',
|
|
45
47
|
stickyHeader: checkedProp<boolean>(
|
|
46
48
|
props['stickyHeader'],
|
|
47
49
|
{ kind: 'terminal', name: 'boolean' },
|
|
48
50
|
false,
|
|
49
51
|
'stickyHeader',
|
|
52
|
+
acceptedProps,
|
|
50
53
|
) as boolean,
|
|
51
54
|
}))
|
|
52
55
|
void checkedProps.value
|
|
@@ -122,6 +125,16 @@ useComponentHost(() => import('../components/ui-table/ui-table.js'), {
|
|
|
122
125
|
definition: './components/ui-table/ui-table.html',
|
|
123
126
|
},
|
|
124
127
|
props: checkedProps,
|
|
128
|
+
propInputs: (name: string) => {
|
|
129
|
+
const incoming = hydrationInstance?.vnode.props
|
|
130
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
131
|
+
return incoming !== null && incoming !== undefined
|
|
132
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
133
|
+
: null
|
|
134
|
+
},
|
|
135
|
+
propNames: ['density', 'stickyHeader'],
|
|
136
|
+
propValidity: (name: string) =>
|
|
137
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
125
138
|
})
|
|
126
139
|
</script>
|
|
127
140
|
|
|
@@ -129,7 +142,7 @@ useComponentHost(() => import('../components/ui-table/ui-table.js'), {
|
|
|
129
142
|
<div
|
|
130
143
|
data-component="ui-table"
|
|
131
144
|
v-bind="nativeAttrs($attrs)"
|
|
132
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
145
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
133
146
|
:data-density="reflectedProp('density', 'density', checkedProps.density, undefined, false)"
|
|
134
147
|
:data-sticky-header="reflectedProp('stickyHeader', 'sticky-header', checkedProps.stickyHeader, undefined, false)"
|
|
135
148
|
:data-ui-table-state="hostState || undefined"
|
package/vue/UiTabs.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
|
|
|
17
17
|
defineOptions({ inheritAttrs: false })
|
|
18
18
|
|
|
@@ -69,7 +69,7 @@ const propValidityContract = {
|
|
|
69
69
|
default: '',
|
|
70
70
|
},
|
|
71
71
|
},
|
|
72
|
-
}
|
|
72
|
+
} as const
|
|
73
73
|
const props = defineProps({
|
|
74
74
|
activation: { type: null as unknown as PropType<'auto' | 'manual' | null>, default: 'auto' },
|
|
75
75
|
density: {
|
|
@@ -84,42 +84,56 @@ const props = defineProps({
|
|
|
84
84
|
stretch: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
85
85
|
value: { type: null as unknown as PropType<string | null>, default: '' },
|
|
86
86
|
})
|
|
87
|
+
const acceptedProps: Record<string, unknown> = {
|
|
88
|
+
activation: 'auto',
|
|
89
|
+
density: 'comfortable',
|
|
90
|
+
label: 'Tabs',
|
|
91
|
+
orientation: 'horizontal',
|
|
92
|
+
stretch: false,
|
|
93
|
+
value: '',
|
|
94
|
+
}
|
|
87
95
|
const checkedProps = computed(() => ({
|
|
88
96
|
activation: checkedProp<'auto' | 'manual'>(
|
|
89
97
|
props['activation'],
|
|
90
98
|
{ kind: 'terminal', name: 'keyword' },
|
|
91
99
|
false,
|
|
92
100
|
'activation',
|
|
101
|
+
acceptedProps,
|
|
93
102
|
) as 'auto' | 'manual',
|
|
94
103
|
density: checkedProp<'comfortable' | 'compact'>(
|
|
95
104
|
props['density'],
|
|
96
105
|
{ kind: 'terminal', name: 'keyword' },
|
|
97
106
|
false,
|
|
98
107
|
'density',
|
|
108
|
+
acceptedProps,
|
|
99
109
|
) as 'comfortable' | 'compact',
|
|
100
110
|
label: checkedProp<string>(
|
|
101
111
|
props['label'],
|
|
102
112
|
{ kind: 'terminal', name: 'string' },
|
|
103
113
|
false,
|
|
104
114
|
'label',
|
|
115
|
+
acceptedProps,
|
|
105
116
|
) as string,
|
|
106
117
|
orientation: checkedProp<'horizontal' | 'vertical'>(
|
|
107
118
|
props['orientation'],
|
|
108
119
|
{ kind: 'terminal', name: 'keyword' },
|
|
109
120
|
false,
|
|
110
121
|
'orientation',
|
|
122
|
+
acceptedProps,
|
|
111
123
|
) as 'horizontal' | 'vertical',
|
|
112
124
|
stretch: checkedProp<boolean>(
|
|
113
125
|
props['stretch'],
|
|
114
126
|
{ kind: 'terminal', name: 'boolean' },
|
|
115
127
|
false,
|
|
116
128
|
'stretch',
|
|
129
|
+
acceptedProps,
|
|
117
130
|
) as boolean,
|
|
118
131
|
value: checkedProp<string>(
|
|
119
132
|
props['value'],
|
|
120
133
|
{ kind: 'terminal', name: 'string' },
|
|
121
134
|
false,
|
|
122
135
|
'value',
|
|
136
|
+
acceptedProps,
|
|
123
137
|
) as string,
|
|
124
138
|
}))
|
|
125
139
|
void checkedProps.value
|
|
@@ -257,6 +271,16 @@ useComponentHost(() => import('../components/ui-tabs/ui-tabs.js'), {
|
|
|
257
271
|
definition: './components/ui-tabs/ui-tabs.html',
|
|
258
272
|
},
|
|
259
273
|
props: checkedProps,
|
|
274
|
+
propInputs: (name: string) => {
|
|
275
|
+
const incoming = hydrationInstance?.vnode.props
|
|
276
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
277
|
+
return incoming !== null && incoming !== undefined
|
|
278
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
279
|
+
: null
|
|
280
|
+
},
|
|
281
|
+
propNames: ['activation', 'density', 'label', 'orientation', 'stretch', 'value'],
|
|
282
|
+
propValidity: (name: string) =>
|
|
283
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
260
284
|
refs: { list: listElement, panels: panelsElement },
|
|
261
285
|
state: { internalValue, tabs },
|
|
262
286
|
})
|
|
@@ -299,7 +323,7 @@ function uniqueKeys<T>(
|
|
|
299
323
|
<div
|
|
300
324
|
data-component="ui-tabs"
|
|
301
325
|
v-bind="nativeAttrs($attrs)"
|
|
302
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
326
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
303
327
|
:data-activation="reflectedProp('activation', 'activation', checkedProps.activation, undefined, false)"
|
|
304
328
|
:data-density="reflectedProp('density', 'density', checkedProps.density, undefined, false)"
|
|
305
329
|
:data-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|