@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/UiCover.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.19 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -18,16 +18,18 @@ const propValidityContract = {
|
|
|
18
18
|
default: 'screen',
|
|
19
19
|
},
|
|
20
20
|
},
|
|
21
|
-
}
|
|
21
|
+
} as const
|
|
22
22
|
const props = defineProps({
|
|
23
23
|
size: { type: null as unknown as PropType<'screen' | 'fill' | null>, default: 'screen' },
|
|
24
24
|
})
|
|
25
|
+
const acceptedProps: Record<string, unknown> = { size: 'screen' }
|
|
25
26
|
const checkedProps = computed(() => ({
|
|
26
27
|
size: checkedProp<'screen' | 'fill'>(
|
|
27
28
|
props['size'],
|
|
28
29
|
{ kind: 'terminal', name: 'keyword' },
|
|
29
30
|
false,
|
|
30
31
|
'size',
|
|
32
|
+
acceptedProps,
|
|
31
33
|
) as 'screen' | 'fill',
|
|
32
34
|
}))
|
|
33
35
|
void checkedProps.value
|
|
@@ -95,7 +97,7 @@ const hostState = computed(() =>
|
|
|
95
97
|
<div
|
|
96
98
|
data-component="ui-cover"
|
|
97
99
|
v-bind="nativeAttrs($attrs)"
|
|
98
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
100
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
99
101
|
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
100
102
|
:data-ui-cover-state="hostState || undefined"
|
|
101
103
|
>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.19 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -16,16 +16,18 @@ const propValidityContract = {
|
|
|
16
16
|
default: '',
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
|
-
}
|
|
19
|
+
} as const
|
|
20
20
|
const props = defineProps({
|
|
21
21
|
term: { type: null as unknown as PropType<string | null>, default: '' },
|
|
22
22
|
})
|
|
23
|
+
const acceptedProps: Record<string, unknown> = { term: '' }
|
|
23
24
|
const checkedProps = computed(() => ({
|
|
24
25
|
term: checkedProp<string>(
|
|
25
26
|
props['term'],
|
|
26
27
|
{ kind: 'terminal', name: 'string' },
|
|
27
28
|
false,
|
|
28
29
|
'term',
|
|
30
|
+
acceptedProps,
|
|
29
31
|
) as string,
|
|
30
32
|
}))
|
|
31
33
|
void checkedProps.value
|
|
@@ -88,7 +90,7 @@ if (
|
|
|
88
90
|
<div
|
|
89
91
|
data-component="ui-description-item"
|
|
90
92
|
v-bind="nativeAttrs($attrs)"
|
|
91
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
93
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
92
94
|
:data-term="reflectedProp('term', 'term', checkedProps.term, undefined, false)"
|
|
93
95
|
>
|
|
94
96
|
<dt>{{ checkedProps.term }}</dt>
|
|
@@ -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: 'rows',
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
|
-
}
|
|
38
|
+
} as const
|
|
39
39
|
const props = defineProps({
|
|
40
40
|
columns: { type: null as unknown as PropType<'2' | '3' | '4' | null>, default: null },
|
|
41
41
|
density: {
|
|
@@ -47,24 +47,32 @@ const props = defineProps({
|
|
|
47
47
|
default: 'rows',
|
|
48
48
|
},
|
|
49
49
|
})
|
|
50
|
+
const acceptedProps: Record<string, unknown> = {
|
|
51
|
+
columns: null,
|
|
52
|
+
density: 'comfortable',
|
|
53
|
+
layout: 'rows',
|
|
54
|
+
}
|
|
50
55
|
const checkedProps = computed(() => ({
|
|
51
56
|
columns: checkedProp<'2' | '3' | '4'>(
|
|
52
57
|
props['columns'],
|
|
53
58
|
{ kind: 'terminal', name: 'keyword' },
|
|
54
59
|
false,
|
|
55
60
|
'columns',
|
|
61
|
+
acceptedProps,
|
|
56
62
|
),
|
|
57
63
|
density: checkedProp<'comfortable' | 'compact'>(
|
|
58
64
|
props['density'],
|
|
59
65
|
{ kind: 'terminal', name: 'keyword' },
|
|
60
66
|
false,
|
|
61
67
|
'density',
|
|
68
|
+
acceptedProps,
|
|
62
69
|
) as 'comfortable' | 'compact',
|
|
63
70
|
layout: checkedProp<'rows' | 'stacked' | 'grid' | 'tiles'>(
|
|
64
71
|
props['layout'],
|
|
65
72
|
{ kind: 'terminal', name: 'keyword' },
|
|
66
73
|
false,
|
|
67
74
|
'layout',
|
|
75
|
+
acceptedProps,
|
|
68
76
|
) as 'rows' | 'stacked' | 'grid' | 'tiles',
|
|
69
77
|
}))
|
|
70
78
|
void checkedProps.value
|
|
@@ -141,7 +149,7 @@ const hostState = computed(() =>
|
|
|
141
149
|
<dl
|
|
142
150
|
data-component="ui-description-list"
|
|
143
151
|
v-bind="nativeAttrs($attrs)"
|
|
144
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
152
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
145
153
|
:data-columns="reflectedProp('columns', 'columns', checkedProps.columns, undefined, false)"
|
|
146
154
|
:data-density="reflectedProp('density', 'density', checkedProps.density, undefined, false)"
|
|
147
155
|
:data-layout="reflectedProp('layout', 'layout', checkedProps.layout, undefined, false)"
|
package/vue/UiDialog.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
|
import UiScrollArea from './UiScrollArea.vue'
|
|
8
8
|
|
|
9
9
|
defineOptions({ inheritAttrs: false })
|
|
@@ -71,7 +71,7 @@ const propValidityContract = {
|
|
|
71
71
|
default: 'md',
|
|
72
72
|
},
|
|
73
73
|
},
|
|
74
|
-
}
|
|
74
|
+
} as const
|
|
75
75
|
const props = defineProps({
|
|
76
76
|
alert: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
77
77
|
closedby: {
|
|
@@ -88,49 +88,72 @@ const props = defineProps({
|
|
|
88
88
|
default: 'md',
|
|
89
89
|
},
|
|
90
90
|
})
|
|
91
|
+
const acceptedProps: Record<string, unknown> = {
|
|
92
|
+
alert: false,
|
|
93
|
+
closedby: null,
|
|
94
|
+
for: '',
|
|
95
|
+
label: null,
|
|
96
|
+
modal: false,
|
|
97
|
+
modeless: false,
|
|
98
|
+
open: false,
|
|
99
|
+
size: 'md',
|
|
100
|
+
}
|
|
91
101
|
const checkedProps = computed(() => ({
|
|
92
102
|
alert: checkedProp<boolean>(
|
|
93
103
|
props['alert'],
|
|
94
104
|
{ kind: 'terminal', name: 'boolean' },
|
|
95
105
|
false,
|
|
96
106
|
'alert',
|
|
107
|
+
acceptedProps,
|
|
97
108
|
) as boolean,
|
|
98
109
|
closedby: checkedProp<'any' | 'closerequest' | 'none'>(
|
|
99
110
|
props['closedby'],
|
|
100
111
|
{ kind: 'terminal', name: 'keyword' },
|
|
101
112
|
false,
|
|
102
113
|
'closedby',
|
|
114
|
+
acceptedProps,
|
|
103
115
|
),
|
|
104
116
|
for: checkedProp<string>(
|
|
105
117
|
props['for'],
|
|
106
118
|
{ kind: 'terminal', name: 'string' },
|
|
107
119
|
false,
|
|
108
120
|
'for',
|
|
121
|
+
acceptedProps,
|
|
109
122
|
) as string,
|
|
110
|
-
label: checkedProp<string>(
|
|
123
|
+
label: checkedProp<string>(
|
|
124
|
+
props['label'],
|
|
125
|
+
{ kind: 'terminal', name: 'string' },
|
|
126
|
+
false,
|
|
127
|
+
'label',
|
|
128
|
+
acceptedProps,
|
|
129
|
+
),
|
|
111
130
|
modal: checkedProp<boolean>(
|
|
112
131
|
props['modal'],
|
|
113
132
|
{ kind: 'terminal', name: 'boolean' },
|
|
114
133
|
false,
|
|
115
134
|
'modal',
|
|
135
|
+
acceptedProps,
|
|
116
136
|
) as boolean,
|
|
117
137
|
modeless: checkedProp<boolean>(
|
|
118
138
|
props['modeless'],
|
|
119
139
|
{ kind: 'terminal', name: 'boolean' },
|
|
120
140
|
false,
|
|
121
141
|
'modeless',
|
|
142
|
+
acceptedProps,
|
|
122
143
|
) as boolean,
|
|
123
144
|
open: checkedProp<boolean>(
|
|
124
145
|
props['open'],
|
|
125
146
|
{ kind: 'terminal', name: 'boolean' },
|
|
126
147
|
false,
|
|
127
148
|
'open',
|
|
149
|
+
acceptedProps,
|
|
128
150
|
) as boolean,
|
|
129
151
|
size: checkedProp<'sm' | 'md' | 'lg' | 'fullscreen'>(
|
|
130
152
|
props['size'],
|
|
131
153
|
{ kind: 'terminal', name: 'keyword' },
|
|
132
154
|
false,
|
|
133
155
|
'size',
|
|
156
|
+
acceptedProps,
|
|
134
157
|
) as 'sm' | 'md' | 'lg' | 'fullscreen',
|
|
135
158
|
}))
|
|
136
159
|
void checkedProps.value
|
|
@@ -264,6 +287,16 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
|
|
|
264
287
|
definition: './components/ui-dialog/ui-dialog.html',
|
|
265
288
|
},
|
|
266
289
|
props: checkedProps,
|
|
290
|
+
propInputs: (name: string) => {
|
|
291
|
+
const incoming = hydrationInstance?.vnode.props
|
|
292
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
293
|
+
return incoming !== null && incoming !== undefined
|
|
294
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
295
|
+
: null
|
|
296
|
+
},
|
|
297
|
+
propNames: ['alert', 'closedby', 'for', 'label', 'modal', 'modeless', 'open', 'size'],
|
|
298
|
+
propValidity: (name: string) =>
|
|
299
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
267
300
|
refs: { close: closeElement },
|
|
268
301
|
state: { internalOpen, accessibleLabel },
|
|
269
302
|
})
|
|
@@ -274,7 +307,7 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
|
|
|
274
307
|
data-component="ui-dialog"
|
|
275
308
|
v-bind="nativeAttrs($attrs)"
|
|
276
309
|
:aria-label="guarded"
|
|
277
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
310
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
278
311
|
:data-alert="reflectedProp('alert', 'alert', checkedProps.alert, undefined, false)"
|
|
279
312
|
:data-closedby="reflectedProp('closedby', 'closedby', checkedProps.closedby, undefined, false)"
|
|
280
313
|
:data-for="reflectedProp('for', 'for', checkedProps.for, undefined, false)"
|
package/vue/UiDisclosure.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
|
|
|
@@ -58,7 +58,7 @@ const propValidityContract = {
|
|
|
58
58
|
default: 'Details',
|
|
59
59
|
},
|
|
60
60
|
},
|
|
61
|
-
}
|
|
61
|
+
} as const
|
|
62
62
|
const props = defineProps({
|
|
63
63
|
density: {
|
|
64
64
|
type: null as unknown as PropType<'comfortable' | 'compact' | null>,
|
|
@@ -70,42 +70,56 @@ const props = defineProps({
|
|
|
70
70
|
open: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
71
71
|
summary: { type: null as unknown as PropType<string | null>, default: 'Details' },
|
|
72
72
|
})
|
|
73
|
+
const acceptedProps: Record<string, unknown> = {
|
|
74
|
+
density: 'comfortable',
|
|
75
|
+
disabled: false,
|
|
76
|
+
headingLevel: 0,
|
|
77
|
+
name: '',
|
|
78
|
+
open: false,
|
|
79
|
+
summary: 'Details',
|
|
80
|
+
}
|
|
73
81
|
const checkedProps = computed(() => ({
|
|
74
82
|
density: checkedProp<'comfortable' | 'compact'>(
|
|
75
83
|
props['density'],
|
|
76
84
|
{ kind: 'terminal', name: 'keyword' },
|
|
77
85
|
false,
|
|
78
86
|
'density',
|
|
87
|
+
acceptedProps,
|
|
79
88
|
) as 'comfortable' | 'compact',
|
|
80
89
|
disabled: checkedProp<boolean>(
|
|
81
90
|
props['disabled'],
|
|
82
91
|
{ kind: 'terminal', name: 'boolean' },
|
|
83
92
|
false,
|
|
84
93
|
'disabled',
|
|
94
|
+
acceptedProps,
|
|
85
95
|
) as boolean,
|
|
86
96
|
headingLevel: checkedProp<number>(
|
|
87
97
|
props['headingLevel'],
|
|
88
98
|
{ kind: 'terminal', name: 'integer' },
|
|
89
99
|
false,
|
|
90
100
|
'headingLevel',
|
|
101
|
+
acceptedProps,
|
|
91
102
|
) as number,
|
|
92
103
|
name: checkedProp<string>(
|
|
93
104
|
props['name'],
|
|
94
105
|
{ kind: 'terminal', name: 'string' },
|
|
95
106
|
false,
|
|
96
107
|
'name',
|
|
108
|
+
acceptedProps,
|
|
97
109
|
) as string,
|
|
98
110
|
open: checkedProp<boolean>(
|
|
99
111
|
props['open'],
|
|
100
112
|
{ kind: 'terminal', name: 'boolean' },
|
|
101
113
|
false,
|
|
102
114
|
'open',
|
|
115
|
+
acceptedProps,
|
|
103
116
|
) as boolean,
|
|
104
117
|
summary: checkedProp<string>(
|
|
105
118
|
props['summary'],
|
|
106
119
|
{ kind: 'terminal', name: 'string' },
|
|
107
120
|
false,
|
|
108
121
|
'summary',
|
|
122
|
+
acceptedProps,
|
|
109
123
|
) as string,
|
|
110
124
|
}))
|
|
111
125
|
void checkedProps.value
|
|
@@ -265,6 +279,16 @@ useComponentHost(() => import('../components/ui-disclosure/ui-disclosure.js'), {
|
|
|
265
279
|
definition: './components/ui-disclosure/ui-disclosure.html',
|
|
266
280
|
},
|
|
267
281
|
props: checkedProps,
|
|
282
|
+
propInputs: (name: string) => {
|
|
283
|
+
const incoming = hydrationInstance?.vnode.props
|
|
284
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
285
|
+
return incoming !== null && incoming !== undefined
|
|
286
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
287
|
+
: null
|
|
288
|
+
},
|
|
289
|
+
propNames: ['density', 'disabled', 'headingLevel', 'name', 'open', 'summary'],
|
|
290
|
+
propValidity: (name: string) =>
|
|
291
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
268
292
|
refs: { trigger: triggerElement, panel: panelElement },
|
|
269
293
|
state: { internalOpen, contentId, headingRole, headingAriaLevel },
|
|
270
294
|
})
|
|
@@ -274,7 +298,7 @@ useComponentHost(() => import('../components/ui-disclosure/ui-disclosure.js'), {
|
|
|
274
298
|
<div
|
|
275
299
|
data-component="ui-disclosure"
|
|
276
300
|
v-bind="nativeAttrs($attrs)"
|
|
277
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
301
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
278
302
|
:data-density="reflectedProp('density', 'density', checkedProps.density, undefined, false)"
|
|
279
303
|
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
280
304
|
:data-heading-level="reflectedProp('headingLevel', 'heading-level', checkedProps.headingLevel, undefined, false)"
|
package/vue/UiEditable.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
|
|
|
@@ -91,7 +91,7 @@ const propValidityContract = {
|
|
|
91
91
|
default: '',
|
|
92
92
|
},
|
|
93
93
|
},
|
|
94
|
-
}
|
|
94
|
+
} as const
|
|
95
95
|
const props = defineProps({
|
|
96
96
|
actions: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
97
97
|
cancelLabel: { type: null as unknown as PropType<string | null>, default: 'Cancel' },
|
|
@@ -105,72 +105,96 @@ const props = defineProps({
|
|
|
105
105
|
saveLabel: { type: null as unknown as PropType<string | null>, default: 'Save' },
|
|
106
106
|
value: { type: null as unknown as PropType<string | null>, default: '' },
|
|
107
107
|
})
|
|
108
|
+
const acceptedProps: Record<string, unknown> = {
|
|
109
|
+
actions: false,
|
|
110
|
+
cancelLabel: 'Cancel',
|
|
111
|
+
disabled: false,
|
|
112
|
+
edit: false,
|
|
113
|
+
hint: '',
|
|
114
|
+
label: 'Edit value',
|
|
115
|
+
maxLength: 0,
|
|
116
|
+
placeholder: '',
|
|
117
|
+
required: false,
|
|
118
|
+
saveLabel: 'Save',
|
|
119
|
+
value: '',
|
|
120
|
+
}
|
|
108
121
|
const checkedProps = computed(() => ({
|
|
109
122
|
actions: checkedProp<boolean>(
|
|
110
123
|
props['actions'],
|
|
111
124
|
{ kind: 'terminal', name: 'boolean' },
|
|
112
125
|
false,
|
|
113
126
|
'actions',
|
|
127
|
+
acceptedProps,
|
|
114
128
|
) as boolean,
|
|
115
129
|
cancelLabel: checkedProp<string>(
|
|
116
130
|
props['cancelLabel'],
|
|
117
131
|
{ kind: 'terminal', name: 'string' },
|
|
118
132
|
false,
|
|
119
133
|
'cancelLabel',
|
|
134
|
+
acceptedProps,
|
|
120
135
|
) as string,
|
|
121
136
|
disabled: checkedProp<boolean>(
|
|
122
137
|
props['disabled'],
|
|
123
138
|
{ kind: 'terminal', name: 'boolean' },
|
|
124
139
|
false,
|
|
125
140
|
'disabled',
|
|
141
|
+
acceptedProps,
|
|
126
142
|
) as boolean,
|
|
127
143
|
edit: checkedProp<boolean>(
|
|
128
144
|
props['edit'],
|
|
129
145
|
{ kind: 'terminal', name: 'boolean' },
|
|
130
146
|
false,
|
|
131
147
|
'edit',
|
|
148
|
+
acceptedProps,
|
|
132
149
|
) as boolean,
|
|
133
150
|
hint: checkedProp<string>(
|
|
134
151
|
props['hint'],
|
|
135
152
|
{ kind: 'terminal', name: 'string' },
|
|
136
153
|
false,
|
|
137
154
|
'hint',
|
|
155
|
+
acceptedProps,
|
|
138
156
|
) as string,
|
|
139
157
|
label: checkedProp<string>(
|
|
140
158
|
props['label'],
|
|
141
159
|
{ kind: 'terminal', name: 'string' },
|
|
142
160
|
false,
|
|
143
161
|
'label',
|
|
162
|
+
acceptedProps,
|
|
144
163
|
) as string,
|
|
145
164
|
maxLength: checkedProp<number>(
|
|
146
165
|
props['maxLength'],
|
|
147
166
|
{ kind: 'terminal', name: 'number' },
|
|
148
167
|
false,
|
|
149
168
|
'maxLength',
|
|
169
|
+
acceptedProps,
|
|
150
170
|
) as number,
|
|
151
171
|
placeholder: checkedProp<string>(
|
|
152
172
|
props['placeholder'],
|
|
153
173
|
{ kind: 'terminal', name: 'string' },
|
|
154
174
|
false,
|
|
155
175
|
'placeholder',
|
|
176
|
+
acceptedProps,
|
|
156
177
|
) as string,
|
|
157
178
|
required: checkedProp<boolean>(
|
|
158
179
|
props['required'],
|
|
159
180
|
{ kind: 'terminal', name: 'boolean' },
|
|
160
181
|
false,
|
|
161
182
|
'required',
|
|
183
|
+
acceptedProps,
|
|
162
184
|
) as boolean,
|
|
163
185
|
saveLabel: checkedProp<string>(
|
|
164
186
|
props['saveLabel'],
|
|
165
187
|
{ kind: 'terminal', name: 'string' },
|
|
166
188
|
false,
|
|
167
189
|
'saveLabel',
|
|
190
|
+
acceptedProps,
|
|
168
191
|
) as string,
|
|
169
192
|
value: checkedProp<string>(
|
|
170
193
|
props['value'],
|
|
171
194
|
{ kind: 'terminal', name: 'string' },
|
|
172
195
|
false,
|
|
173
196
|
'value',
|
|
197
|
+
acceptedProps,
|
|
174
198
|
) as string,
|
|
175
199
|
}))
|
|
176
200
|
void checkedProps.value
|
|
@@ -339,6 +363,28 @@ useComponentHost(() => import('../components/ui-editable/ui-editable.js'), {
|
|
|
339
363
|
definition: './components/ui-editable/ui-editable.html',
|
|
340
364
|
},
|
|
341
365
|
props: checkedProps,
|
|
366
|
+
propInputs: (name: string) => {
|
|
367
|
+
const incoming = hydrationInstance?.vnode.props
|
|
368
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
369
|
+
return incoming !== null && incoming !== undefined
|
|
370
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
371
|
+
: null
|
|
372
|
+
},
|
|
373
|
+
propNames: [
|
|
374
|
+
'actions',
|
|
375
|
+
'cancelLabel',
|
|
376
|
+
'disabled',
|
|
377
|
+
'edit',
|
|
378
|
+
'hint',
|
|
379
|
+
'label',
|
|
380
|
+
'maxLength',
|
|
381
|
+
'placeholder',
|
|
382
|
+
'required',
|
|
383
|
+
'saveLabel',
|
|
384
|
+
'value',
|
|
385
|
+
],
|
|
386
|
+
propValidity: (name: string) =>
|
|
387
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
342
388
|
refs: { preview: previewElement, input: inputElement },
|
|
343
389
|
state: { internalEdit, internalValue, draft },
|
|
344
390
|
})
|
|
@@ -348,7 +394,7 @@ useComponentHost(() => import('../components/ui-editable/ui-editable.js'), {
|
|
|
348
394
|
<div
|
|
349
395
|
data-component="ui-editable"
|
|
350
396
|
v-bind="nativeAttrs($attrs)"
|
|
351
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
397
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
352
398
|
:data-actions="reflectedProp('actions', 'actions', checkedProps.actions, undefined, false)"
|
|
353
399
|
:data-cancel-label="reflectedProp('cancelLabel', 'cancel-label', checkedProps.cancelLabel, undefined, false)"
|
|
354
400
|
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
@@ -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
|
|
|
18
18
|
defineOptions({ inheritAttrs: false })
|
|
19
19
|
|
|
@@ -48,37 +48,47 @@ const propValidityContract = {
|
|
|
48
48
|
default: false,
|
|
49
49
|
},
|
|
50
50
|
},
|
|
51
|
-
}
|
|
51
|
+
} as const
|
|
52
52
|
const props = defineProps({
|
|
53
53
|
headerRow: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
54
54
|
maxCols: { type: null as unknown as PropType<number | null>, default: 8 },
|
|
55
55
|
maxRows: { type: null as unknown as PropType<number | null>, default: 8 },
|
|
56
56
|
open: { type: null as unknown as PropType<boolean | null>, default: false },
|
|
57
57
|
})
|
|
58
|
+
const acceptedProps: Record<string, unknown> = {
|
|
59
|
+
headerRow: false,
|
|
60
|
+
maxCols: 8,
|
|
61
|
+
maxRows: 8,
|
|
62
|
+
open: false,
|
|
63
|
+
}
|
|
58
64
|
const checkedProps = computed(() => ({
|
|
59
65
|
headerRow: checkedProp<boolean>(
|
|
60
66
|
props['headerRow'],
|
|
61
67
|
{ kind: 'terminal', name: 'boolean' },
|
|
62
68
|
false,
|
|
63
69
|
'headerRow',
|
|
70
|
+
acceptedProps,
|
|
64
71
|
) as boolean,
|
|
65
72
|
maxCols: checkedProp<number>(
|
|
66
73
|
props['maxCols'],
|
|
67
74
|
{ kind: 'terminal', name: 'integer' },
|
|
68
75
|
false,
|
|
69
76
|
'maxCols',
|
|
77
|
+
acceptedProps,
|
|
70
78
|
) as number,
|
|
71
79
|
maxRows: checkedProp<number>(
|
|
72
80
|
props['maxRows'],
|
|
73
81
|
{ kind: 'terminal', name: 'integer' },
|
|
74
82
|
false,
|
|
75
83
|
'maxRows',
|
|
84
|
+
acceptedProps,
|
|
76
85
|
) as number,
|
|
77
86
|
open: checkedProp<boolean>(
|
|
78
87
|
props['open'],
|
|
79
88
|
{ kind: 'terminal', name: 'boolean' },
|
|
80
89
|
false,
|
|
81
90
|
'open',
|
|
91
|
+
acceptedProps,
|
|
82
92
|
) as boolean,
|
|
83
93
|
}))
|
|
84
94
|
void checkedProps.value
|
|
@@ -211,6 +221,16 @@ useComponentHost(
|
|
|
211
221
|
definition: './components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html',
|
|
212
222
|
},
|
|
213
223
|
props: checkedProps,
|
|
224
|
+
propInputs: (name: string) => {
|
|
225
|
+
const incoming = hydrationInstance?.vnode.props
|
|
226
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
227
|
+
return incoming !== null && incoming !== undefined
|
|
228
|
+
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
229
|
+
: null
|
|
230
|
+
},
|
|
231
|
+
propNames: ['headerRow', 'maxCols', 'maxRows', 'open'],
|
|
232
|
+
propValidity: (name: string) =>
|
|
233
|
+
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
214
234
|
refs: { grid: gridElement, header: headerElement },
|
|
215
235
|
state: { cells, rows, cols, hint, withHeaderRow },
|
|
216
236
|
},
|
|
@@ -255,7 +275,7 @@ function uniqueKeys<T>(
|
|
|
255
275
|
data-component="ui-editor-insert-table-grid"
|
|
256
276
|
v-bind="nativeAttrs($attrs)"
|
|
257
277
|
:hidden="!checkedProps.open"
|
|
258
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...
|
|
278
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
259
279
|
:data-header-row="reflectedProp('headerRow', 'header-row', checkedProps.headerRow, undefined, false)"
|
|
260
280
|
:data-max-cols="reflectedProp('maxCols', 'max-cols', checkedProps.maxCols, undefined, false)"
|
|
261
281
|
:data-max-rows="reflectedProp('maxRows', 'max-rows', checkedProps.maxRows, undefined, false)"
|