@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/UiCard.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: 'outlined',
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
|
-
}
|
|
49
|
+
} as const
|
|
50
50
|
const props = defineProps({
|
|
51
51
|
as: {
|
|
52
52
|
type: null as unknown as PropType<'div' | 'section' | 'article' | 'aside' | null>,
|
|
@@ -59,30 +59,40 @@ const props = defineProps({
|
|
|
59
59
|
default: 'outlined',
|
|
60
60
|
},
|
|
61
61
|
})
|
|
62
|
+
const acceptedProps: Record<string, unknown> = {
|
|
63
|
+
as: 'div',
|
|
64
|
+
padding: 'md',
|
|
65
|
+
tone: 'neutral',
|
|
66
|
+
variant: 'outlined',
|
|
67
|
+
}
|
|
62
68
|
const checkedProps = computed(() => ({
|
|
63
69
|
as: checkedProp<'div' | 'section' | 'article' | 'aside'>(
|
|
64
70
|
props['as'],
|
|
65
71
|
{ kind: 'terminal', name: 'keyword' },
|
|
66
72
|
false,
|
|
67
73
|
'as',
|
|
74
|
+
acceptedProps,
|
|
68
75
|
) as 'div' | 'section' | 'article' | 'aside',
|
|
69
76
|
padding: checkedProp<'sm' | 'md' | 'lg'>(
|
|
70
77
|
props['padding'],
|
|
71
78
|
{ kind: 'terminal', name: 'keyword' },
|
|
72
79
|
false,
|
|
73
80
|
'padding',
|
|
81
|
+
acceptedProps,
|
|
74
82
|
) as 'sm' | 'md' | 'lg',
|
|
75
83
|
tone: checkedProp<'neutral' | 'danger'>(
|
|
76
84
|
props['tone'],
|
|
77
85
|
{ kind: 'terminal', name: 'keyword' },
|
|
78
86
|
false,
|
|
79
87
|
'tone',
|
|
88
|
+
acceptedProps,
|
|
80
89
|
) as 'neutral' | 'danger',
|
|
81
90
|
variant: checkedProp<'outlined' | 'subtle' | 'elevated'>(
|
|
82
91
|
props['variant'],
|
|
83
92
|
{ kind: 'terminal', name: 'keyword' },
|
|
84
93
|
false,
|
|
85
94
|
'variant',
|
|
95
|
+
acceptedProps,
|
|
86
96
|
) as 'outlined' | 'subtle' | 'elevated',
|
|
87
97
|
}))
|
|
88
98
|
void checkedProps.value
|
|
@@ -165,7 +175,7 @@ const hostState = computed(() =>
|
|
|
165
175
|
v-if="checkedProps.as === 'section'"
|
|
166
176
|
data-component="ui-card"
|
|
167
177
|
v-bind="nativeAttrs($attrs)"
|
|
168
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
178
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
169
179
|
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
170
180
|
:data-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
171
181
|
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
@@ -179,7 +189,7 @@ const hostState = computed(() =>
|
|
|
179
189
|
v-else-if="checkedProps.as === 'article'"
|
|
180
190
|
data-component="ui-card"
|
|
181
191
|
v-bind="nativeAttrs($attrs)"
|
|
182
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
192
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
183
193
|
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
184
194
|
:data-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
185
195
|
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
@@ -193,7 +203,7 @@ const hostState = computed(() =>
|
|
|
193
203
|
v-else-if="checkedProps.as === 'aside'"
|
|
194
204
|
data-component="ui-card"
|
|
195
205
|
v-bind="nativeAttrs($attrs)"
|
|
196
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
206
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
197
207
|
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
198
208
|
:data-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
199
209
|
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
@@ -207,7 +217,7 @@ const hostState = computed(() =>
|
|
|
207
217
|
v-else
|
|
208
218
|
data-component="ui-card"
|
|
209
219
|
v-bind="nativeAttrs($attrs)"
|
|
210
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
220
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
211
221
|
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
212
222
|
:data-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
213
223
|
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
package/vue/UiCheckbox.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
|
|
|
@@ -75,7 +75,7 @@ const propValidityContract = {
|
|
|
75
75
|
default: 'on',
|
|
76
76
|
},
|
|
77
77
|
},
|
|
78
|
-
}
|
|
78
|
+
} as const
|
|
79
79
|
const props = defineProps({
|
|
80
80
|
checked: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
81
81
|
disabled: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
@@ -86,54 +86,72 @@ const props = defineProps({
|
|
|
86
86
|
size: { type: null as unknown as PropType<'sm' | 'md' | 'lg' | null>, default: 'md' },
|
|
87
87
|
value: { type: null as unknown as PropType<string | null>, default: 'on' },
|
|
88
88
|
})
|
|
89
|
+
const acceptedProps: Record<string, unknown> = {
|
|
90
|
+
checked: false,
|
|
91
|
+
disabled: false,
|
|
92
|
+
indeterminate: false,
|
|
93
|
+
invalid: false,
|
|
94
|
+
name: '',
|
|
95
|
+
required: false,
|
|
96
|
+
size: 'md',
|
|
97
|
+
value: 'on',
|
|
98
|
+
}
|
|
89
99
|
const checkedProps = computed(() => ({
|
|
90
100
|
checked: checkedProp<boolean>(
|
|
91
101
|
props['checked'],
|
|
92
102
|
{ kind: 'terminal', name: 'boolean' },
|
|
93
103
|
false,
|
|
94
104
|
'checked',
|
|
105
|
+
acceptedProps,
|
|
95
106
|
) as boolean,
|
|
96
107
|
disabled: checkedProp<boolean>(
|
|
97
108
|
props['disabled'],
|
|
98
109
|
{ kind: 'terminal', name: 'boolean' },
|
|
99
110
|
false,
|
|
100
111
|
'disabled',
|
|
112
|
+
acceptedProps,
|
|
101
113
|
) as boolean,
|
|
102
114
|
indeterminate: checkedProp<boolean>(
|
|
103
115
|
props['indeterminate'],
|
|
104
116
|
{ kind: 'terminal', name: 'boolean' },
|
|
105
117
|
false,
|
|
106
118
|
'indeterminate',
|
|
119
|
+
acceptedProps,
|
|
107
120
|
) as boolean,
|
|
108
121
|
invalid: checkedProp<boolean>(
|
|
109
122
|
props['invalid'],
|
|
110
123
|
{ kind: 'terminal', name: 'boolean' },
|
|
111
124
|
false,
|
|
112
125
|
'invalid',
|
|
126
|
+
acceptedProps,
|
|
113
127
|
) as boolean,
|
|
114
128
|
name: checkedProp<string>(
|
|
115
129
|
props['name'],
|
|
116
130
|
{ kind: 'terminal', name: 'string' },
|
|
117
131
|
false,
|
|
118
132
|
'name',
|
|
133
|
+
acceptedProps,
|
|
119
134
|
) as string,
|
|
120
135
|
required: checkedProp<boolean>(
|
|
121
136
|
props['required'],
|
|
122
137
|
{ kind: 'terminal', name: 'boolean' },
|
|
123
138
|
false,
|
|
124
139
|
'required',
|
|
140
|
+
acceptedProps,
|
|
125
141
|
) as boolean,
|
|
126
142
|
size: checkedProp<'sm' | 'md' | 'lg'>(
|
|
127
143
|
props['size'],
|
|
128
144
|
{ kind: 'terminal', name: 'keyword' },
|
|
129
145
|
false,
|
|
130
146
|
'size',
|
|
147
|
+
acceptedProps,
|
|
131
148
|
) as 'sm' | 'md' | 'lg',
|
|
132
149
|
value: checkedProp<string>(
|
|
133
150
|
props['value'],
|
|
134
151
|
{ kind: 'terminal', name: 'string' },
|
|
135
152
|
false,
|
|
136
153
|
'value',
|
|
154
|
+
acceptedProps,
|
|
137
155
|
) as string,
|
|
138
156
|
}))
|
|
139
157
|
void checkedProps.value
|
|
@@ -242,6 +260,25 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
|
|
|
242
260
|
definition: './components/ui-checkbox/ui-checkbox.html',
|
|
243
261
|
},
|
|
244
262
|
props: checkedProps,
|
|
263
|
+
propInputs: (name: string) => {
|
|
264
|
+
const incoming = hydrationInstance?.vnode.props
|
|
265
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
266
|
+
return incoming !== null && incoming !== undefined
|
|
267
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
268
|
+
: null
|
|
269
|
+
},
|
|
270
|
+
propNames: [
|
|
271
|
+
'checked',
|
|
272
|
+
'disabled',
|
|
273
|
+
'indeterminate',
|
|
274
|
+
'invalid',
|
|
275
|
+
'name',
|
|
276
|
+
'required',
|
|
277
|
+
'size',
|
|
278
|
+
'value',
|
|
279
|
+
],
|
|
280
|
+
propValidity: (name: string) =>
|
|
281
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
245
282
|
refs: { input: inputElement, description: descriptionElement },
|
|
246
283
|
state: { internalChecked },
|
|
247
284
|
})
|
|
@@ -251,7 +288,7 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
|
|
|
251
288
|
<label
|
|
252
289
|
data-component="ui-checkbox"
|
|
253
290
|
v-bind="nativeAttrs($attrs)"
|
|
254
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
291
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
255
292
|
:data-checked="reflectedProp('checked', 'checked', checkedProps.checked, undefined, false)"
|
|
256
293
|
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
257
294
|
:data-indeterminate="reflectedProp('indeterminate', 'indeterminate', checkedProps.indeterminate, undefined, false)"
|
package/vue/UiCluster.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'
|
|
@@ -41,7 +41,7 @@ const propValidityContract = {
|
|
|
41
41
|
values: ['wrap', 'nowrap'],
|
|
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>,
|
|
@@ -54,30 +54,35 @@ const props = defineProps({
|
|
|
54
54
|
},
|
|
55
55
|
wrap: { type: null as unknown as PropType<'wrap' | 'nowrap' | null>, default: null },
|
|
56
56
|
})
|
|
57
|
+
const acceptedProps: Record<string, unknown> = { align: null, gap: null, justify: null, wrap: null }
|
|
57
58
|
const checkedProps = computed(() => ({
|
|
58
59
|
align: checkedProp<'start' | 'center' | 'end' | 'stretch'>(
|
|
59
60
|
props['align'],
|
|
60
61
|
{ kind: 'terminal', name: 'keyword' },
|
|
61
62
|
false,
|
|
62
63
|
'align',
|
|
64
|
+
acceptedProps,
|
|
63
65
|
),
|
|
64
66
|
gap: checkedProp<'xs' | 's' | 'm' | 'l' | 'xl'>(
|
|
65
67
|
props['gap'],
|
|
66
68
|
{ kind: 'terminal', name: 'keyword' },
|
|
67
69
|
false,
|
|
68
70
|
'gap',
|
|
71
|
+
acceptedProps,
|
|
69
72
|
),
|
|
70
73
|
justify: checkedProp<'start' | 'center' | 'end' | 'between'>(
|
|
71
74
|
props['justify'],
|
|
72
75
|
{ kind: 'terminal', name: 'keyword' },
|
|
73
76
|
false,
|
|
74
77
|
'justify',
|
|
78
|
+
acceptedProps,
|
|
75
79
|
),
|
|
76
80
|
wrap: checkedProp<'wrap' | 'nowrap'>(
|
|
77
81
|
props['wrap'],
|
|
78
82
|
{ kind: 'terminal', name: 'keyword' },
|
|
79
83
|
false,
|
|
80
84
|
'wrap',
|
|
85
|
+
acceptedProps,
|
|
81
86
|
),
|
|
82
87
|
}))
|
|
83
88
|
void checkedProps.value
|
|
@@ -155,7 +160,7 @@ const hostState = computed(() =>
|
|
|
155
160
|
<div
|
|
156
161
|
data-component="ui-cluster"
|
|
157
162
|
v-bind="nativeAttrs($attrs)"
|
|
158
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
163
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
159
164
|
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
160
165
|
:data-gap="reflectedProp('gap', 'gap', checkedProps.gap, undefined, false)"
|
|
161
166
|
:data-justify="reflectedProp('justify', 'justify', checkedProps.justify, undefined, false)"
|
package/vue/UiCombobox.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.19 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import {
|
|
4
4
|
computed,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import type { PropType, VNode } from 'vue'
|
|
14
14
|
import { vBindControl } from './control'
|
|
15
15
|
import { createDispatch, useComponentHost } from './host'
|
|
16
|
-
import { checkedProp, vPropValidity } from './props'
|
|
16
|
+
import { checkedProp, propValidityState, vPropValidity } from './props'
|
|
17
17
|
import UiBadge from './UiBadge.vue'
|
|
18
18
|
import UiTooltip from './UiTooltip.vue'
|
|
19
19
|
|
|
@@ -237,7 +237,7 @@ const propValidityContract = {
|
|
|
237
237
|
'The selected value in single mode, which a named combobox submits with its form. The field shows the matching option\'s label, and a form reset returns to\n this value. In a strict combobox, typing a search does not change the selection; leaving with no match restores its label. If omitted, the first authored\n option with selected sets the initial value.',
|
|
238
238
|
},
|
|
239
239
|
},
|
|
240
|
-
}
|
|
240
|
+
} as const
|
|
241
241
|
const props = defineProps({
|
|
242
242
|
allowCreate: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
243
243
|
allowFreeText: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
@@ -283,54 +283,87 @@ const props = defineProps({
|
|
|
283
283
|
tokenSeparators: { type: null as unknown as PropType<readonly (string)[] | null>, default: null },
|
|
284
284
|
value: { type: null as unknown as PropType<string | null>, default: null },
|
|
285
285
|
})
|
|
286
|
+
const acceptedProps: Record<string, unknown> = {
|
|
287
|
+
allowCreate: false,
|
|
288
|
+
allowFreeText: false,
|
|
289
|
+
clearable: false,
|
|
290
|
+
disabled: false,
|
|
291
|
+
disclosure: false,
|
|
292
|
+
filter: 'label',
|
|
293
|
+
help: '',
|
|
294
|
+
invalid: false,
|
|
295
|
+
items: null,
|
|
296
|
+
label: '',
|
|
297
|
+
labelVisibility: 'visible',
|
|
298
|
+
loading: false,
|
|
299
|
+
multiple: false,
|
|
300
|
+
name: '',
|
|
301
|
+
openOnFocus: false,
|
|
302
|
+
placeholder: '',
|
|
303
|
+
query: null,
|
|
304
|
+
readonly: false,
|
|
305
|
+
required: false,
|
|
306
|
+
selectedValues: null,
|
|
307
|
+
size: 'md',
|
|
308
|
+
tokenSeparators: null,
|
|
309
|
+
value: null,
|
|
310
|
+
}
|
|
286
311
|
const checkedProps = computed(() => ({
|
|
287
312
|
allowCreate: checkedProp<boolean>(
|
|
288
313
|
props['allowCreate'],
|
|
289
314
|
{ kind: 'terminal', name: 'boolean' },
|
|
290
315
|
false,
|
|
291
316
|
'allowCreate',
|
|
317
|
+
acceptedProps,
|
|
292
318
|
) as boolean,
|
|
293
319
|
allowFreeText: checkedProp<boolean>(
|
|
294
320
|
props['allowFreeText'],
|
|
295
321
|
{ kind: 'terminal', name: 'boolean' },
|
|
296
322
|
false,
|
|
297
323
|
'allowFreeText',
|
|
324
|
+
acceptedProps,
|
|
298
325
|
) as boolean,
|
|
299
326
|
clearable: checkedProp<boolean>(
|
|
300
327
|
props['clearable'],
|
|
301
328
|
{ kind: 'terminal', name: 'boolean' },
|
|
302
329
|
false,
|
|
303
330
|
'clearable',
|
|
331
|
+
acceptedProps,
|
|
304
332
|
) as boolean,
|
|
305
333
|
disabled: checkedProp<boolean>(
|
|
306
334
|
props['disabled'],
|
|
307
335
|
{ kind: 'terminal', name: 'boolean' },
|
|
308
336
|
false,
|
|
309
337
|
'disabled',
|
|
338
|
+
acceptedProps,
|
|
310
339
|
) as boolean,
|
|
311
340
|
disclosure: checkedProp<boolean>(
|
|
312
341
|
props['disclosure'],
|
|
313
342
|
{ kind: 'terminal', name: 'boolean' },
|
|
314
343
|
false,
|
|
315
344
|
'disclosure',
|
|
345
|
+
acceptedProps,
|
|
316
346
|
) as boolean,
|
|
317
347
|
filter: checkedProp<'label' | 'none'>(
|
|
318
348
|
props['filter'],
|
|
319
349
|
{ kind: 'terminal', name: 'keyword' },
|
|
320
350
|
false,
|
|
321
351
|
'filter',
|
|
352
|
+
acceptedProps,
|
|
322
353
|
) as 'label' | 'none',
|
|
323
354
|
help: checkedProp<string>(
|
|
324
355
|
props['help'],
|
|
325
356
|
{ kind: 'terminal', name: 'string' },
|
|
326
357
|
false,
|
|
327
358
|
'help',
|
|
359
|
+
acceptedProps,
|
|
328
360
|
) as string,
|
|
329
361
|
invalid: checkedProp<boolean>(
|
|
330
362
|
props['invalid'],
|
|
331
363
|
{ kind: 'terminal', name: 'boolean' },
|
|
332
364
|
false,
|
|
333
365
|
'invalid',
|
|
366
|
+
acceptedProps,
|
|
334
367
|
) as boolean,
|
|
335
368
|
items: checkedProp<
|
|
336
369
|
readonly ({
|
|
@@ -386,81 +419,106 @@ const checkedProps = computed(() => ({
|
|
|
386
419
|
},
|
|
387
420
|
false,
|
|
388
421
|
'items',
|
|
422
|
+
acceptedProps,
|
|
389
423
|
),
|
|
390
424
|
label: checkedProp<string>(
|
|
391
425
|
props['label'],
|
|
392
426
|
{ kind: 'terminal', name: 'string' },
|
|
393
427
|
false,
|
|
394
428
|
'label',
|
|
429
|
+
acceptedProps,
|
|
395
430
|
) as string,
|
|
396
431
|
labelVisibility: checkedProp<'visible' | 'sr-only'>(
|
|
397
432
|
props['labelVisibility'],
|
|
398
433
|
{ kind: 'terminal', name: 'keyword' },
|
|
399
434
|
false,
|
|
400
435
|
'labelVisibility',
|
|
436
|
+
acceptedProps,
|
|
401
437
|
) as 'visible' | 'sr-only',
|
|
402
438
|
loading: checkedProp<boolean>(
|
|
403
439
|
props['loading'],
|
|
404
440
|
{ kind: 'terminal', name: 'boolean' },
|
|
405
441
|
false,
|
|
406
442
|
'loading',
|
|
443
|
+
acceptedProps,
|
|
407
444
|
) as boolean,
|
|
408
445
|
multiple: checkedProp<boolean>(
|
|
409
446
|
props['multiple'],
|
|
410
447
|
{ kind: 'terminal', name: 'boolean' },
|
|
411
448
|
false,
|
|
412
449
|
'multiple',
|
|
450
|
+
acceptedProps,
|
|
413
451
|
) as boolean,
|
|
414
452
|
name: checkedProp<string>(
|
|
415
453
|
props['name'],
|
|
416
454
|
{ kind: 'terminal', name: 'string' },
|
|
417
455
|
false,
|
|
418
456
|
'name',
|
|
457
|
+
acceptedProps,
|
|
419
458
|
) as string,
|
|
420
459
|
openOnFocus: checkedProp<boolean>(
|
|
421
460
|
props['openOnFocus'],
|
|
422
461
|
{ kind: 'terminal', name: 'boolean' },
|
|
423
462
|
false,
|
|
424
463
|
'openOnFocus',
|
|
464
|
+
acceptedProps,
|
|
425
465
|
) as boolean,
|
|
426
466
|
placeholder: checkedProp<string>(
|
|
427
467
|
props['placeholder'],
|
|
428
468
|
{ kind: 'terminal', name: 'string' },
|
|
429
469
|
false,
|
|
430
470
|
'placeholder',
|
|
471
|
+
acceptedProps,
|
|
431
472
|
) as string,
|
|
432
|
-
query: checkedProp<string>(
|
|
473
|
+
query: checkedProp<string>(
|
|
474
|
+
props['query'],
|
|
475
|
+
{ kind: 'terminal', name: 'string' },
|
|
476
|
+
false,
|
|
477
|
+
'query',
|
|
478
|
+
acceptedProps,
|
|
479
|
+
),
|
|
433
480
|
readonly: checkedProp<boolean>(
|
|
434
481
|
props['readonly'],
|
|
435
482
|
{ kind: 'terminal', name: 'boolean' },
|
|
436
483
|
false,
|
|
437
484
|
'readonly',
|
|
485
|
+
acceptedProps,
|
|
438
486
|
) as boolean,
|
|
439
487
|
required: checkedProp<boolean>(
|
|
440
488
|
props['required'],
|
|
441
489
|
{ kind: 'terminal', name: 'boolean' },
|
|
442
490
|
false,
|
|
443
491
|
'required',
|
|
492
|
+
acceptedProps,
|
|
444
493
|
) as boolean,
|
|
445
494
|
selectedValues: checkedProp<readonly (string)[]>(
|
|
446
495
|
props['selectedValues'],
|
|
447
496
|
{ kind: 'list', item: { kind: 'terminal', name: 'string' } },
|
|
448
497
|
false,
|
|
449
498
|
'selectedValues',
|
|
499
|
+
acceptedProps,
|
|
450
500
|
),
|
|
451
501
|
size: checkedProp<'sm' | 'md' | 'lg'>(
|
|
452
502
|
props['size'],
|
|
453
503
|
{ kind: 'terminal', name: 'keyword' },
|
|
454
504
|
false,
|
|
455
505
|
'size',
|
|
506
|
+
acceptedProps,
|
|
456
507
|
) as 'sm' | 'md' | 'lg',
|
|
457
508
|
tokenSeparators: checkedProp<readonly (string)[]>(
|
|
458
509
|
props['tokenSeparators'],
|
|
459
510
|
{ kind: 'list', item: { kind: 'terminal', name: 'string' } },
|
|
460
511
|
false,
|
|
461
512
|
'tokenSeparators',
|
|
513
|
+
acceptedProps,
|
|
514
|
+
),
|
|
515
|
+
value: checkedProp<string>(
|
|
516
|
+
props['value'],
|
|
517
|
+
{ kind: 'terminal', name: 'string' },
|
|
518
|
+
false,
|
|
519
|
+
'value',
|
|
520
|
+
acceptedProps,
|
|
462
521
|
),
|
|
463
|
-
value: checkedProp<string>(props['value'], { kind: 'terminal', name: 'string' }, false, 'value'),
|
|
464
522
|
}))
|
|
465
523
|
void checkedProps.value
|
|
466
524
|
watchSyncEffect(() => {
|
|
@@ -1203,6 +1261,40 @@ const { host, ready } = useComponentHost(() => import('../components/ui-combobox
|
|
|
1203
1261
|
definition: './components/ui-combobox/ui-combobox.html',
|
|
1204
1262
|
},
|
|
1205
1263
|
props: checkedProps,
|
|
1264
|
+
propInputs: (name: string) => {
|
|
1265
|
+
const incoming = hydrationInstance?.vnode.props
|
|
1266
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
1267
|
+
return incoming !== null && incoming !== undefined
|
|
1268
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
1269
|
+
: null
|
|
1270
|
+
},
|
|
1271
|
+
propNames: [
|
|
1272
|
+
'allowCreate',
|
|
1273
|
+
'allowFreeText',
|
|
1274
|
+
'clearable',
|
|
1275
|
+
'disabled',
|
|
1276
|
+
'disclosure',
|
|
1277
|
+
'filter',
|
|
1278
|
+
'help',
|
|
1279
|
+
'invalid',
|
|
1280
|
+
'items',
|
|
1281
|
+
'label',
|
|
1282
|
+
'labelVisibility',
|
|
1283
|
+
'loading',
|
|
1284
|
+
'multiple',
|
|
1285
|
+
'name',
|
|
1286
|
+
'openOnFocus',
|
|
1287
|
+
'placeholder',
|
|
1288
|
+
'query',
|
|
1289
|
+
'readonly',
|
|
1290
|
+
'required',
|
|
1291
|
+
'selectedValues',
|
|
1292
|
+
'size',
|
|
1293
|
+
'tokenSeparators',
|
|
1294
|
+
'value',
|
|
1295
|
+
],
|
|
1296
|
+
propValidity: (name: string) =>
|
|
1297
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
1206
1298
|
refs: {
|
|
1207
1299
|
field: fieldElement,
|
|
1208
1300
|
input: inputElement,
|
|
@@ -1307,7 +1399,7 @@ function uniqueKeys<T>(
|
|
|
1307
1399
|
<div
|
|
1308
1400
|
data-component="ui-combobox"
|
|
1309
1401
|
v-bind="nativeAttrs($attrs)"
|
|
1310
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
1402
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
1311
1403
|
:data-allow-create="reflectedProp('allowCreate', 'allow-create', checkedProps.allowCreate, undefined, false)"
|
|
1312
1404
|
:data-allow-free-text="reflectedProp('allowFreeText', 'allow-free-text', checkedProps.allowFreeText, undefined, false)"
|
|
1313
1405
|
:data-clearable="reflectedProp('clearable', 'clearable', checkedProps.clearable, undefined, false)"
|
package/vue/UiContainer.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.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
|
values: ['narrow', 'wide'],
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
|
-
}
|
|
28
|
+
} as const
|
|
29
29
|
const props = defineProps({
|
|
30
30
|
gutters: { type: null as unknown as PropType<'s' | 'm' | 'l' | null>, default: null },
|
|
31
31
|
measure: { type: null as unknown as PropType<'narrow' | 'wide' | null>, default: null },
|
|
32
32
|
})
|
|
33
|
+
const acceptedProps: Record<string, unknown> = { gutters: null, measure: null }
|
|
33
34
|
const checkedProps = computed(() => ({
|
|
34
35
|
gutters: checkedProp<'s' | 'm' | 'l'>(
|
|
35
36
|
props['gutters'],
|
|
36
37
|
{ kind: 'terminal', name: 'keyword' },
|
|
37
38
|
false,
|
|
38
39
|
'gutters',
|
|
40
|
+
acceptedProps,
|
|
39
41
|
),
|
|
40
42
|
measure: checkedProp<'narrow' | 'wide'>(
|
|
41
43
|
props['measure'],
|
|
42
44
|
{ kind: 'terminal', name: 'keyword' },
|
|
43
45
|
false,
|
|
44
46
|
'measure',
|
|
47
|
+
acceptedProps,
|
|
45
48
|
),
|
|
46
49
|
}))
|
|
47
50
|
void checkedProps.value
|
|
@@ -116,7 +119,7 @@ const hostState = computed(() =>
|
|
|
116
119
|
<div
|
|
117
120
|
data-component="ui-container"
|
|
118
121
|
v-bind="nativeAttrs($attrs)"
|
|
119
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
122
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
120
123
|
:data-gutters="reflectedProp('gutters', 'gutters', checkedProps.gutters, undefined, false)"
|
|
121
124
|
:data-measure="reflectedProp('measure', 'measure', checkedProps.measure, undefined, false)"
|
|
122
125
|
:data-ui-container-state="hostState || undefined"
|
package/vue/UiContextMenu.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
|
|
|
@@ -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
|
for: { type: null as unknown as PropType<string | null>, default: '' },
|
|
31
31
|
open: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
32
32
|
})
|
|
33
|
+
const acceptedProps: Record<string, unknown> = { for: '', open: false }
|
|
33
34
|
const checkedProps = computed(() => ({
|
|
34
35
|
for: checkedProp<string>(
|
|
35
36
|
props['for'],
|
|
36
37
|
{ kind: 'terminal', name: 'string' },
|
|
37
38
|
false,
|
|
38
39
|
'for',
|
|
40
|
+
acceptedProps,
|
|
39
41
|
) as string,
|
|
40
42
|
open: checkedProp<boolean>(
|
|
41
43
|
props['open'],
|
|
42
44
|
{ kind: 'terminal', name: 'boolean' },
|
|
43
45
|
false,
|
|
44
46
|
'open',
|
|
47
|
+
acceptedProps,
|
|
45
48
|
) as boolean,
|
|
46
49
|
}))
|
|
47
50
|
void checkedProps.value
|
|
@@ -170,6 +173,16 @@ useComponentHost(() => import('../components/ui-context-menu/ui-context-menu.js'
|
|
|
170
173
|
definition: './components/ui-context-menu/ui-context-menu.html',
|
|
171
174
|
},
|
|
172
175
|
props: checkedProps,
|
|
176
|
+
propInputs: (name: string) => {
|
|
177
|
+
const incoming = hydrationInstance?.vnode.props
|
|
178
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
179
|
+
return incoming !== null && incoming !== undefined
|
|
180
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
181
|
+
: null
|
|
182
|
+
},
|
|
183
|
+
propNames: ['for', 'open'],
|
|
184
|
+
propValidity: (name: string) =>
|
|
185
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
173
186
|
refs: { menu: menuElement },
|
|
174
187
|
state: { internalOpen },
|
|
175
188
|
})
|
|
@@ -179,7 +192,7 @@ useComponentHost(() => import('../components/ui-context-menu/ui-context-menu.js'
|
|
|
179
192
|
<span
|
|
180
193
|
data-component="ui-context-menu"
|
|
181
194
|
v-bind="nativeAttrs($attrs)"
|
|
182
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
195
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
183
196
|
:data-for="reflectedProp('for', 'for', checkedProps.for, undefined, false)"
|
|
184
197
|
:data-open="reflectedProp('open', 'open', checkedProps.open, undefined, false)"
|
|
185
198
|
ref="root"
|