@threadlabs/looma 0.21.5 → 0.22.0
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.html +1 -1
- package/components/ui-avatar/ui-avatar.html +4 -4
- package/components/ui-avatar-group/ui-avatar-group.html +14 -4
- package/components/ui-avatar-group/ui-avatar-group.js +1 -1
- package/components/ui-button/ui-button.html +10 -7
- package/components/ui-checkbox/ui-checkbox.html +1 -1
- package/components/ui-combobox/ui-combobox.html +18 -18
- package/components/ui-context-menu/ui-context-menu.html +1 -1
- package/components/ui-dialog/ui-dialog.html +2 -2
- package/components/ui-disclosure/ui-disclosure.html +4 -4
- package/components/ui-editable/ui-editable.html +3 -3
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +5 -5
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +5 -5
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +3 -3
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +2 -2
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +3 -7
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +6 -6
- package/components/ui-listbox/ui-listbox.html +6 -6
- package/components/ui-menu/ui-menu.html +1 -1
- package/components/ui-menu-item/ui-menu-item.html +1 -1
- package/components/ui-popover/ui-popover.html +1 -1
- package/components/ui-radio/ui-radio.html +1 -1
- package/components/ui-radio-group/ui-radio-group.html +1 -1
- package/components/ui-search-shell/ui-search-shell.html +1 -1
- package/components/ui-sidebar/ui-sidebar.html +2 -2
- package/components/ui-switch/ui-switch.html +1 -1
- package/components/ui-switcher/ui-switcher.html +1 -1
- package/components/ui-tabs/ui-tabs.html +2 -2
- package/components/ui-toast-region/ui-toast-region.html +1 -1
- package/components/ui-tooltip/ui-tooltip.html +1 -1
- package/components/ui-tree-item/ui-tree-item.html +4 -4
- 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 +10 -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 +11 -7
- 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 +2 -2
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +2 -2
- package/vanilla/UiAvatarGroup.d.ts +2 -2
- package/vanilla/UiAvatarGroup.js +2 -2
- 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 +2 -2
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +2 -2
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +1 -1
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +2 -2
- 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 +2 -2
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +2 -2
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +2 -2
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +2 -2
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +2 -2
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +1 -1
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +2 -2
- 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 +2 -2
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +2 -2
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +2 -2
- 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 +2 -2
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +2 -2
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +1 -1
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +2 -2
- 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 +2 -2
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +2 -2
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +2 -2
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +1 -1
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +2 -2
- 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 +2 -2
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +2 -2
- 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 +2 -2
- package/vue/UiActionBar.vue +1 -1
- package/vue/UiAffordanceScope.vue +25 -7
- package/vue/UiAvatar.vue +125 -30
- package/vue/UiAvatarGroup.d.ts +4 -4
- package/vue/UiAvatarGroup.vue +79 -24
- package/vue/UiBadge.vue +34 -8
- package/vue/UiBreadcrumbItem.vue +15 -4
- package/vue/UiBreadcrumbs.vue +14 -4
- package/vue/UiButton.vue +133 -49
- package/vue/UiCallout.vue +16 -4
- package/vue/UiCard.vue +46 -10
- package/vue/UiCheckbox.d.ts +5 -5
- package/vue/UiCheckbox.vue +73 -19
- package/vue/UiCluster.vue +39 -10
- package/vue/UiCombobox.d.ts +5 -5
- package/vue/UiCombobox.vue +317 -78
- package/vue/UiContainer.vue +23 -6
- package/vue/UiContextMenu.vue +24 -7
- package/vue/UiCover.vue +16 -4
- package/vue/UiDescriptionItem.vue +14 -4
- package/vue/UiDescriptionList.vue +33 -8
- package/vue/UiDialog.vue +79 -26
- package/vue/UiDisclosure.vue +101 -38
- package/vue/UiEditable.d.ts +3 -3
- package/vue/UiEditable.vue +107 -27
- package/vue/UiEditorInsertTableGrid.vue +47 -11
- package/vue/UiEditorMentionMenu.vue +99 -20
- package/vue/UiEditorMentionMenuItem.vue +29 -8
- package/vue/UiEditorSlashMenu.vue +85 -16
- package/vue/UiEditorSlashMenuGroup.vue +14 -4
- package/vue/UiEditorSlashMenuItem.vue +43 -12
- package/vue/UiEditorTableContextMenu.d.ts +1 -1
- package/vue/UiEditorTableContextMenu.vue +95 -19
- package/vue/UiEditorTableOverlay.vue +91 -7
- package/vue/UiEditorTableToolbar.vue +105 -16
- package/vue/UiEditorToolbar.vue +15 -4
- package/vue/UiFloatingActionButton.vue +31 -8
- package/vue/UiFormField.d.ts +1 -1
- package/vue/UiFormField.vue +31 -8
- package/vue/UiGrid.vue +30 -8
- package/vue/UiIcon.vue +15 -4
- package/vue/UiIconButton.vue +70 -24
- package/vue/UiInput.vue +114 -39
- package/vue/UiInputGroup.vue +15 -4
- package/vue/UiList.vue +47 -16
- package/vue/UiListItem.vue +24 -6
- package/vue/UiListbox.d.ts +3 -3
- package/vue/UiListbox.vue +72 -24
- package/vue/UiMenu.vue +55 -15
- package/vue/UiMenuGroup.vue +14 -4
- package/vue/UiMenuItem.d.ts +4 -4
- package/vue/UiMenuItem.vue +77 -27
- package/vue/UiMeter.vue +65 -16
- package/vue/UiNavItem.vue +48 -24
- package/vue/UiPageHeader.vue +16 -4
- package/vue/UiPopover.vue +46 -21
- package/vue/UiRadio.d.ts +4 -4
- package/vue/UiRadio.vue +58 -15
- package/vue/UiRadioGroup.d.ts +3 -3
- package/vue/UiRadioGroup.vue +66 -17
- package/vue/UiReel.d.ts +1 -1
- package/vue/UiReel.vue +31 -8
- package/vue/UiScrollArea.vue +16 -4
- package/vue/UiSearchResultRow.vue +23 -6
- package/vue/UiSearchShell.vue +38 -11
- package/vue/UiSection.vue +33 -8
- package/vue/UiSelect.d.ts +1 -1
- package/vue/UiSelect.vue +45 -20
- package/vue/UiSeparator.vue +16 -4
- package/vue/UiSidebar.d.ts +2 -2
- package/vue/UiSidebar.vue +86 -22
- package/vue/UiSpinner.vue +23 -6
- package/vue/UiStack.vue +31 -8
- package/vue/UiStatusMessage.vue +32 -8
- package/vue/UiSwitch.d.ts +4 -4
- package/vue/UiSwitch.vue +57 -15
- package/vue/UiSwitcher.vue +41 -17
- package/vue/UiTable.vue +24 -6
- package/vue/UiTabs.vue +60 -14
- package/vue/UiText.vue +98 -35
- package/vue/UiTextarea.d.ts +1 -1
- package/vue/UiTextarea.vue +67 -26
- package/vue/UiToast.vue +24 -6
- package/vue/UiToastRegion.vue +41 -13
- package/vue/UiTooltip.d.ts +1 -1
- package/vue/UiTooltip.vue +85 -30
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.vue +56 -14
- package/vue/UiTreeItem.d.ts +3 -3
- package/vue/UiTreeItem.vue +147 -36
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +34 -7
- package/vue/chunks/UiAvatar.js +141 -21
- package/vue/chunks/UiAvatarGroup.js +83 -12
- package/vue/chunks/UiBadge.js +57 -19
- package/vue/chunks/UiBreadcrumbItem.js +19 -6
- package/vue/chunks/UiBreadcrumbs.js +19 -6
- package/vue/chunks/UiButton.js +194 -42
- package/vue/chunks/UiCallout.js +27 -13
- package/vue/chunks/UiCard.js +83 -25
- package/vue/chunks/UiCheckbox.js +104 -17
- package/vue/chunks/UiCluster.js +70 -25
- package/vue/chunks/UiCombobox.js +441 -46
- package/vue/chunks/UiContainer.js +36 -11
- package/vue/chunks/UiContextMenu.js +33 -7
- package/vue/chunks/UiCover.js +20 -6
- package/vue/chunks/UiDescriptionItem.js +18 -5
- package/vue/chunks/UiDescriptionList.js +54 -17
- package/vue/chunks/UiDialog.js +115 -23
- package/vue/chunks/UiDisclosure.js +110 -24
- package/vue/chunks/UiEditable.js +146 -18
- package/vue/chunks/UiEditorInsertTableGrid.js +65 -10
- package/vue/chunks/UiEditorMentionMenu.js +210 -14
- package/vue/chunks/UiEditorMentionMenuItem.js +43 -8
- package/vue/chunks/UiEditorSlashMenu.js +186 -12
- package/vue/chunks/UiEditorSlashMenuGroup.js +19 -6
- package/vue/chunks/UiEditorSlashMenuItem.js +65 -10
- package/vue/chunks/UiEditorTableContextMenu.js +116 -16
- package/vue/chunks/UiEditorTableOverlay.js +188 -7
- package/vue/chunks/UiEditorTableToolbar.js +125 -16
- package/vue/chunks/UiEditorToolbar.js +19 -6
- package/vue/chunks/UiFloatingActionButton.js +43 -8
- package/vue/chunks/UiFormField.js +43 -8
- package/vue/chunks/UiGrid.js +52 -18
- package/vue/chunks/UiIcon.js +19 -6
- package/vue/chunks/UiIconButton.js +107 -21
- package/vue/chunks/UiInput.js +309 -30
- package/vue/chunks/UiInputGroup.js +19 -6
- package/vue/chunks/UiList.js +62 -10
- package/vue/chunks/UiListItem.js +33 -7
- package/vue/chunks/UiListbox.js +105 -13
- package/vue/chunks/UiMenu.js +79 -11
- package/vue/chunks/UiMenuGroup.js +19 -6
- package/vue/chunks/UiMenuItem.js +93 -28
- package/vue/chunks/UiMeter.js +96 -19
- package/vue/chunks/UiNavItem.js +74 -17
- package/vue/chunks/UiPageHeader.js +20 -6
- package/vue/chunks/UiPopover.js +58 -21
- package/vue/chunks/UiRadio.js +82 -15
- package/vue/chunks/UiRadioGroup.js +89 -12
- package/vue/chunks/UiReel.js +53 -18
- package/vue/chunks/UiScrollArea.js +20 -6
- package/vue/chunks/UiSearchResultRow.js +32 -7
- package/vue/chunks/UiSearchShell.js +55 -9
- package/vue/chunks/UiSection.js +49 -12
- package/vue/chunks/UiSelect.js +68 -13
- package/vue/chunks/UiSeparator.js +20 -6
- package/vue/chunks/UiSidebar.js +123 -19
- package/vue/chunks/UiSpinner.js +33 -7
- package/vue/chunks/UiStack.js +59 -24
- package/vue/chunks/UiStatusMessage.js +53 -16
- package/vue/chunks/UiSwitch.js +82 -15
- package/vue/chunks/UiSwitcher.js +70 -25
- package/vue/chunks/UiTable.js +33 -7
- package/vue/chunks/UiTabs.js +81 -11
- package/vue/chunks/UiText.js +169 -58
- package/vue/chunks/UiTextarea.js +101 -16
- package/vue/chunks/UiToast.js +39 -13
- package/vue/chunks/UiToastRegion.js +41 -14
- package/vue/chunks/UiTooltip.js +113 -30
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +82 -15
- package/vue/chunks/UiTreeItem.js +184 -22
- package/vue/chunks/props.js +271 -35
- package/vue/components.css +1209 -1198
- package/vue/host.ts +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import { t as checkedProp } from "./props.js";
|
|
2
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
3
3
|
import { t as UiSpinner_default } from "./UiSpinner.js";
|
|
4
|
-
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, toDisplayString, watchSyncEffect } from "vue";
|
|
4
|
+
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, toDisplayString, unref, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiStatusMessage.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = [
|
|
7
7
|
"role",
|
|
@@ -34,28 +34,62 @@ var UiStatusMessage_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
setup(__props) {
|
|
37
|
+
const propValidityContract = { props: {
|
|
38
|
+
heading: {
|
|
39
|
+
type: {
|
|
40
|
+
kind: "terminal",
|
|
41
|
+
name: "string"
|
|
42
|
+
},
|
|
43
|
+
required: false,
|
|
44
|
+
target: { attribute: "heading" },
|
|
45
|
+
description: "A short heading above the message, such as \"No pages yet\". Optional.",
|
|
46
|
+
default: ""
|
|
47
|
+
},
|
|
48
|
+
kind: {
|
|
49
|
+
type: {
|
|
50
|
+
kind: "terminal",
|
|
51
|
+
name: "keyword"
|
|
52
|
+
},
|
|
53
|
+
required: false,
|
|
54
|
+
target: { attribute: "kind" },
|
|
55
|
+
description: "What the view is saying. empty: there is nothing here yet (announced politely); loading: it is on its way, with a spinner (announced politely); error: it\n could not be shown, in the danger tone (announced at once).",
|
|
56
|
+
values: [
|
|
57
|
+
"empty",
|
|
58
|
+
"loading",
|
|
59
|
+
"error"
|
|
60
|
+
],
|
|
61
|
+
default: "empty"
|
|
62
|
+
},
|
|
63
|
+
layout: {
|
|
64
|
+
type: {
|
|
65
|
+
kind: "terminal",
|
|
66
|
+
name: "keyword"
|
|
67
|
+
},
|
|
68
|
+
required: false,
|
|
69
|
+
target: { attribute: "layout" },
|
|
70
|
+
description: "Where it sits. inline takes its place in the view's flow; panel sits it on a dashed surface, for an empty area in a page; fill centres it in all the space\n it is given, for a whole view that is loading or failed.",
|
|
71
|
+
values: [
|
|
72
|
+
"inline",
|
|
73
|
+
"panel",
|
|
74
|
+
"fill"
|
|
75
|
+
],
|
|
76
|
+
default: "inline"
|
|
77
|
+
}
|
|
78
|
+
} };
|
|
37
79
|
const props = __props;
|
|
38
80
|
const checkedProps = computed(() => ({
|
|
39
81
|
heading: checkedProp(props["heading"], {
|
|
40
82
|
kind: "terminal",
|
|
41
83
|
name: "string"
|
|
42
|
-
}, false, "heading"
|
|
84
|
+
}, false, "heading"),
|
|
43
85
|
kind: checkedProp(props["kind"], {
|
|
44
86
|
kind: "terminal",
|
|
45
87
|
name: "keyword"
|
|
46
|
-
}, false, "kind",
|
|
47
|
-
"empty",
|
|
48
|
-
"loading",
|
|
49
|
-
"error"
|
|
50
|
-
]),
|
|
88
|
+
}, false, "kind"),
|
|
51
89
|
layout: checkedProp(props["layout"], {
|
|
52
90
|
kind: "terminal",
|
|
53
91
|
name: "keyword"
|
|
54
|
-
}, false, "layout"
|
|
55
|
-
"inline",
|
|
56
|
-
"panel",
|
|
57
|
-
"fill"
|
|
58
|
-
])
|
|
92
|
+
}, false, "layout")
|
|
59
93
|
}));
|
|
60
94
|
checkedProps.value;
|
|
61
95
|
watchSyncEffect(() => {
|
|
@@ -97,7 +131,7 @@ var UiStatusMessage_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
97
131
|
return value === true ? "" : text(value);
|
|
98
132
|
}
|
|
99
133
|
return (_ctx, _cache) => {
|
|
100
|
-
return openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-status-message" }, nativeAttrs(_ctx.$attrs), {
|
|
134
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-status-message" }, nativeAttrs(_ctx.$attrs), {
|
|
101
135
|
role: attribute({
|
|
102
136
|
true: "alert",
|
|
103
137
|
false: "status"
|
|
@@ -116,9 +150,12 @@ var UiStatusMessage_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
116
150
|
hidden: !checkedProps.value.heading
|
|
117
151
|
}, toDisplayString(checkedProps.value.heading), 9, _hoisted_3), createElementVNode("span", _hoisted_4, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])]),
|
|
118
152
|
createElementVNode("span", _hoisted_5, [renderSlot(_ctx.$slots, "action", {}, void 0, true)])
|
|
119
|
-
], 16, _hoisted_1)
|
|
153
|
+
], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
154
|
+
contract: propValidityContract,
|
|
155
|
+
values: { ...checkedProps.value }
|
|
156
|
+
}]]);
|
|
120
157
|
};
|
|
121
158
|
}
|
|
122
|
-
}), [["__scopeId", "data-v-
|
|
159
|
+
}), [["__scopeId", "data-v-80a22081"]]);
|
|
123
160
|
//#endregion
|
|
124
161
|
export { UiStatusMessage_default as t };
|
package/vue/chunks/UiSwitch.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
2
|
import { r as useComponentHost, t as createDispatch } from "./host.js";
|
|
3
|
-
import { t as checkedProp } from "./props.js";
|
|
3
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
4
4
|
import { r as vBindControl } from "./control.js";
|
|
5
|
-
import { computed, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, renderSlot, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
5
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderSlot, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
6
6
|
//#region .build/vue/UiSwitch.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var _hoisted_1 = [
|
|
8
8
|
"data-checked",
|
|
@@ -63,36 +63,99 @@ var UiSwitch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
63
63
|
"change"
|
|
64
64
|
],
|
|
65
65
|
setup(__props, { emit: __emit }) {
|
|
66
|
+
const propValidityContract = { props: {
|
|
67
|
+
checked: {
|
|
68
|
+
type: {
|
|
69
|
+
kind: "terminal",
|
|
70
|
+
name: "boolean"
|
|
71
|
+
},
|
|
72
|
+
required: false,
|
|
73
|
+
target: { attribute: "checked" },
|
|
74
|
+
description: "Whether the switch is checked initially or when set externally. A form reset returns it to this.",
|
|
75
|
+
default: false
|
|
76
|
+
},
|
|
77
|
+
disabled: {
|
|
78
|
+
type: {
|
|
79
|
+
kind: "terminal",
|
|
80
|
+
name: "boolean"
|
|
81
|
+
},
|
|
82
|
+
required: false,
|
|
83
|
+
target: { attribute: "disabled" },
|
|
84
|
+
description: "Disables the native switch, so it cannot be toggled or focused.",
|
|
85
|
+
default: false
|
|
86
|
+
},
|
|
87
|
+
name: {
|
|
88
|
+
type: {
|
|
89
|
+
kind: "terminal",
|
|
90
|
+
name: "string"
|
|
91
|
+
},
|
|
92
|
+
required: false,
|
|
93
|
+
target: { attribute: "name" },
|
|
94
|
+
description: "The native name the switch submits under: a form that contains it sends name=value while it is on, and nothing while it is off, as a native checkbox does.\n Left empty, it takes no part in form submission.",
|
|
95
|
+
default: ""
|
|
96
|
+
},
|
|
97
|
+
required: {
|
|
98
|
+
type: {
|
|
99
|
+
kind: "terminal",
|
|
100
|
+
name: "boolean"
|
|
101
|
+
},
|
|
102
|
+
required: false,
|
|
103
|
+
target: { attribute: "required" },
|
|
104
|
+
description: "Marks the native switch required, so native form validation treats it as invalid until it is on.",
|
|
105
|
+
default: false
|
|
106
|
+
},
|
|
107
|
+
size: {
|
|
108
|
+
type: {
|
|
109
|
+
kind: "terminal",
|
|
110
|
+
name: "keyword"
|
|
111
|
+
},
|
|
112
|
+
required: false,
|
|
113
|
+
target: { attribute: "size" },
|
|
114
|
+
description: "Aligns the switch with fields and buttons of the same size. It keeps its track size; the label takes that size's field type size and its first line centres\n in that control height (sm 2rem, lg 3rem by default), so in a row of inputs, selects, and buttons of one size it shares their height and their text\n baseline. Under a coarse pointer an sm row grows to the 44px touch minimum, as they do. md is the standard layout.",
|
|
115
|
+
values: [
|
|
116
|
+
"sm",
|
|
117
|
+
"md",
|
|
118
|
+
"lg"
|
|
119
|
+
],
|
|
120
|
+
default: "md"
|
|
121
|
+
},
|
|
122
|
+
value: {
|
|
123
|
+
type: {
|
|
124
|
+
kind: "terminal",
|
|
125
|
+
name: "string"
|
|
126
|
+
},
|
|
127
|
+
required: false,
|
|
128
|
+
target: { attribute: "value" },
|
|
129
|
+
description: "The value a form submits under name while the switch is on, also reported in the change event's detail so one handler can tell switches apart. on by\n default, as on a native checkbox.",
|
|
130
|
+
default: "on"
|
|
131
|
+
}
|
|
132
|
+
} };
|
|
66
133
|
const props = __props;
|
|
67
134
|
const checkedProps = computed(() => ({
|
|
68
135
|
checked: checkedProp(props["checked"], {
|
|
69
136
|
kind: "terminal",
|
|
70
137
|
name: "boolean"
|
|
71
|
-
}, false, "checked"
|
|
138
|
+
}, false, "checked"),
|
|
72
139
|
disabled: checkedProp(props["disabled"], {
|
|
73
140
|
kind: "terminal",
|
|
74
141
|
name: "boolean"
|
|
75
|
-
}, false, "disabled"
|
|
142
|
+
}, false, "disabled"),
|
|
76
143
|
name: checkedProp(props["name"], {
|
|
77
144
|
kind: "terminal",
|
|
78
145
|
name: "string"
|
|
79
|
-
}, false, "name"
|
|
146
|
+
}, false, "name"),
|
|
80
147
|
required: checkedProp(props["required"], {
|
|
81
148
|
kind: "terminal",
|
|
82
149
|
name: "boolean"
|
|
83
|
-
}, false, "required"
|
|
150
|
+
}, false, "required"),
|
|
84
151
|
size: checkedProp(props["size"], {
|
|
85
152
|
kind: "terminal",
|
|
86
153
|
name: "keyword"
|
|
87
|
-
}, false, "size",
|
|
88
|
-
"sm",
|
|
89
|
-
"md",
|
|
90
|
-
"lg"
|
|
91
|
-
]),
|
|
154
|
+
}, false, "size"),
|
|
92
155
|
value: checkedProp(props["value"], {
|
|
93
156
|
kind: "terminal",
|
|
94
157
|
name: "string"
|
|
95
|
-
}, false, "value"
|
|
158
|
+
}, false, "value")
|
|
96
159
|
}));
|
|
97
160
|
checkedProps.value;
|
|
98
161
|
watchSyncEffect(() => {
|
|
@@ -116,6 +179,7 @@ var UiSwitch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
116
179
|
const inputElement = useTemplateRef("input");
|
|
117
180
|
const descriptionElement = useTemplateRef("description");
|
|
118
181
|
const internalChecked = ref(false);
|
|
182
|
+
provide("html-next:ui-switch:internalChecked", internalChecked);
|
|
119
183
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
120
184
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "label")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-switch> has an incompatible root."), {
|
|
121
185
|
name: "HtmlDiagnosticError",
|
|
@@ -154,7 +218,7 @@ var UiSwitch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
154
218
|
state: { internalChecked }
|
|
155
219
|
});
|
|
156
220
|
return (_ctx, _cache) => {
|
|
157
|
-
return openBlock(), createElementBlock("label", mergeProps({ "data-component": "ui-switch" }, nativeAttrs(_ctx.$attrs), {
|
|
221
|
+
return withDirectives((openBlock(), createElementBlock("label", mergeProps({ "data-component": "ui-switch" }, nativeAttrs(_ctx.$attrs), {
|
|
158
222
|
"data-checked": reflectedProp("checked", "checked", checkedProps.value.checked, void 0, false),
|
|
159
223
|
"data-disabled": reflectedProp("disabled", "disabled", checkedProps.value.disabled, void 0, false),
|
|
160
224
|
"data-name": reflectedProp("name", "name", checkedProps.value.name, void 0, false),
|
|
@@ -178,9 +242,12 @@ var UiSwitch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
178
242
|
value: internalChecked.value,
|
|
179
243
|
nativeProperty: true,
|
|
180
244
|
defaultChecked: false
|
|
181
|
-
}]]), createElementVNode("span", _hoisted_3, [createElementVNode("span", _hoisted_4, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]), createElementVNode("span", _hoisted_5, [renderSlot(_ctx.$slots, "description", {}, void 0, true)], 512)])], 16, _hoisted_1)
|
|
245
|
+
}]]), createElementVNode("span", _hoisted_3, [createElementVNode("span", _hoisted_4, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]), createElementVNode("span", _hoisted_5, [renderSlot(_ctx.$slots, "description", {}, void 0, true)], 512)])], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
246
|
+
contract: propValidityContract,
|
|
247
|
+
values: { ...checkedProps.value }
|
|
248
|
+
}]]);
|
|
182
249
|
};
|
|
183
250
|
}
|
|
184
|
-
}), [["__scopeId", "data-v-
|
|
251
|
+
}), [["__scopeId", "data-v-0588367a"]]);
|
|
185
252
|
//#endregion
|
|
186
253
|
export { UiSwitch_default as t };
|
package/vue/chunks/UiSwitcher.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
2
|
import { r as useComponentHost, t as createDispatch } from "./host.js";
|
|
3
|
-
import { t as checkedProp } from "./props.js";
|
|
4
|
-
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, renderSlot, watchSyncEffect } from "vue";
|
|
3
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
4
|
+
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiSwitcher.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = [
|
|
7
7
|
"data-align",
|
|
@@ -34,40 +34,81 @@ var UiSwitcher_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
setup(__props) {
|
|
37
|
+
const propValidityContract = { props: {
|
|
38
|
+
align: {
|
|
39
|
+
type: {
|
|
40
|
+
kind: "terminal",
|
|
41
|
+
name: "keyword"
|
|
42
|
+
},
|
|
43
|
+
required: false,
|
|
44
|
+
target: { attribute: "align" },
|
|
45
|
+
description: "How items line up while they sit in a row: stretch (the default) makes them equally tall; start, center, and end align their tops, middles, or\n bottoms.",
|
|
46
|
+
values: [
|
|
47
|
+
"start",
|
|
48
|
+
"center",
|
|
49
|
+
"end",
|
|
50
|
+
"stretch"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
gap: {
|
|
54
|
+
type: {
|
|
55
|
+
kind: "terminal",
|
|
56
|
+
name: "keyword"
|
|
57
|
+
},
|
|
58
|
+
required: false,
|
|
59
|
+
target: { attribute: "gap" },
|
|
60
|
+
description: "Space between items, on the spacing scale: xs is 0.5rem, s 0.75rem, m 1rem (also the default), l 1.5rem, and xl 2rem. The --ui-switcher-gap custom\n property, set on the switcher itself, overrides it; set on an ancestor, it does nothing.",
|
|
61
|
+
values: [
|
|
62
|
+
"xs",
|
|
63
|
+
"s",
|
|
64
|
+
"m",
|
|
65
|
+
"l",
|
|
66
|
+
"xl"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
limit: {
|
|
70
|
+
type: {
|
|
71
|
+
kind: "terminal",
|
|
72
|
+
name: "integer"
|
|
73
|
+
},
|
|
74
|
+
required: false,
|
|
75
|
+
target: { attribute: "limit" },
|
|
76
|
+
description: "Most children allowed in a horizontal row. When the count exceeds this value, every child stacks regardless of width. Omit it for no count limit."
|
|
77
|
+
},
|
|
78
|
+
threshold: {
|
|
79
|
+
type: {
|
|
80
|
+
kind: "terminal",
|
|
81
|
+
name: "keyword"
|
|
82
|
+
},
|
|
83
|
+
required: false,
|
|
84
|
+
target: { attribute: "threshold" },
|
|
85
|
+
description: "The container width at which items switch between a row and a stack: wider, they all sit side by side; narrower, each takes the full width. xs is 20rem, sm\n is 30rem (also the default), md is 45rem, and lg is 60rem.",
|
|
86
|
+
values: [
|
|
87
|
+
"xs",
|
|
88
|
+
"sm",
|
|
89
|
+
"md",
|
|
90
|
+
"lg"
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
} };
|
|
37
94
|
const props = __props;
|
|
38
95
|
const checkedProps = computed(() => ({
|
|
39
96
|
align: checkedProp(props["align"], {
|
|
40
97
|
kind: "terminal",
|
|
41
98
|
name: "keyword"
|
|
42
|
-
}, false, "align",
|
|
43
|
-
"start",
|
|
44
|
-
"center",
|
|
45
|
-
"end",
|
|
46
|
-
"stretch"
|
|
47
|
-
]),
|
|
99
|
+
}, false, "align"),
|
|
48
100
|
gap: checkedProp(props["gap"], {
|
|
49
101
|
kind: "terminal",
|
|
50
102
|
name: "keyword"
|
|
51
|
-
}, false, "gap",
|
|
52
|
-
"xs",
|
|
53
|
-
"s",
|
|
54
|
-
"m",
|
|
55
|
-
"l",
|
|
56
|
-
"xl"
|
|
57
|
-
]),
|
|
103
|
+
}, false, "gap"),
|
|
58
104
|
limit: checkedProp(props["limit"], {
|
|
59
105
|
kind: "terminal",
|
|
60
106
|
name: "integer"
|
|
61
|
-
}, false, "limit"
|
|
107
|
+
}, false, "limit"),
|
|
62
108
|
threshold: checkedProp(props["threshold"], {
|
|
63
109
|
kind: "terminal",
|
|
64
110
|
name: "keyword"
|
|
65
|
-
}, false, "threshold"
|
|
66
|
-
"xs",
|
|
67
|
-
"sm",
|
|
68
|
-
"md",
|
|
69
|
-
"lg"
|
|
70
|
-
])
|
|
111
|
+
}, false, "threshold")
|
|
71
112
|
}));
|
|
72
113
|
checkedProps.value;
|
|
73
114
|
watchSyncEffect(() => {
|
|
@@ -88,6 +129,7 @@ var UiSwitcher_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
88
129
|
const hydrationInstance = getCurrentInstance();
|
|
89
130
|
const root = ref(null);
|
|
90
131
|
const overLimit = ref(false);
|
|
132
|
+
provide("html-next:ui-switcher:overLimit", overLimit);
|
|
91
133
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
92
134
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "div")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-switcher> has an incompatible root."), {
|
|
93
135
|
name: "HtmlDiagnosticError",
|
|
@@ -118,7 +160,7 @@ var UiSwitcher_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
118
160
|
state: { overLimit }
|
|
119
161
|
});
|
|
120
162
|
return (_ctx, _cache) => {
|
|
121
|
-
return openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-switcher" }, nativeAttrs(_ctx.$attrs), {
|
|
163
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-switcher" }, nativeAttrs(_ctx.$attrs), {
|
|
122
164
|
"data-align": reflectedProp("align", "align", checkedProps.value.align, void 0, false),
|
|
123
165
|
"data-gap": reflectedProp("gap", "gap", checkedProps.value.gap, void 0, false),
|
|
124
166
|
"data-limit": reflectedProp("limit", "limit", checkedProps.value.limit, void 0, false),
|
|
@@ -126,9 +168,12 @@ var UiSwitcher_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
126
168
|
"data-ui-switcher-state": hostState.value || void 0,
|
|
127
169
|
ref_key: "root",
|
|
128
170
|
ref: root
|
|
129
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1)
|
|
171
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
172
|
+
contract: propValidityContract,
|
|
173
|
+
values: { ...checkedProps.value }
|
|
174
|
+
}]]);
|
|
130
175
|
};
|
|
131
176
|
}
|
|
132
|
-
}), [["__scopeId", "data-v-
|
|
177
|
+
}), [["__scopeId", "data-v-3773d175"]]);
|
|
133
178
|
//#endregion
|
|
134
179
|
export { UiSwitcher_default as t };
|
package/vue/chunks/UiTable.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
2
|
import { r as useComponentHost, t as createDispatch } from "./host.js";
|
|
3
|
-
import { t as checkedProp } from "./props.js";
|
|
4
|
-
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, renderSlot, watchSyncEffect } from "vue";
|
|
3
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
4
|
+
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiTable.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = [
|
|
7
7
|
"data-density",
|
|
@@ -24,16 +24,39 @@ var UiTable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
setup(__props) {
|
|
27
|
+
const propValidityContract = { props: {
|
|
28
|
+
density: {
|
|
29
|
+
type: {
|
|
30
|
+
kind: "terminal",
|
|
31
|
+
name: "keyword"
|
|
32
|
+
},
|
|
33
|
+
required: false,
|
|
34
|
+
target: { attribute: "density" },
|
|
35
|
+
description: "How tall each row is. Every row is at least one control tall, so a row holding a control lines up with the rows around it. comfortable fits a control of\n the standard height (2.5rem), for tables read or edited at a glance; compact fits a small one (2rem), such as a Checkbox or a Button with size=\"sm\", for\n long tables to scan.",
|
|
36
|
+
values: ["comfortable", "compact"],
|
|
37
|
+
default: "comfortable"
|
|
38
|
+
},
|
|
39
|
+
stickyHeader: {
|
|
40
|
+
type: {
|
|
41
|
+
kind: "terminal",
|
|
42
|
+
name: "boolean"
|
|
43
|
+
},
|
|
44
|
+
required: false,
|
|
45
|
+
target: { attribute: "stickyheader" },
|
|
46
|
+
description: "Keeps the header row in view while the rows scroll beneath it. The table scrolls inside its own box, so this needs a bounded height, such as a table that\n fills a fixed-height panel.",
|
|
47
|
+
default: false
|
|
48
|
+
}
|
|
49
|
+
} };
|
|
27
50
|
const props = __props;
|
|
28
51
|
const checkedProps = computed(() => ({
|
|
29
52
|
density: checkedProp(props["density"], {
|
|
30
53
|
kind: "terminal",
|
|
31
54
|
name: "keyword"
|
|
32
|
-
}, false, "density"
|
|
55
|
+
}, false, "density"),
|
|
33
56
|
stickyHeader: checkedProp(props["stickyHeader"], {
|
|
34
57
|
kind: "terminal",
|
|
35
58
|
name: "boolean"
|
|
36
|
-
}, false, "stickyHeader"
|
|
59
|
+
}, false, "stickyHeader")
|
|
37
60
|
}));
|
|
38
61
|
checkedProps.value;
|
|
39
62
|
watchSyncEffect(() => {
|
|
@@ -78,15 +101,18 @@ var UiTable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
78
101
|
props: checkedProps
|
|
79
102
|
});
|
|
80
103
|
return (_ctx, _cache) => {
|
|
81
|
-
return openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-table" }, nativeAttrs(_ctx.$attrs), {
|
|
104
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-table" }, nativeAttrs(_ctx.$attrs), {
|
|
82
105
|
"data-density": reflectedProp("density", "density", checkedProps.value.density, void 0, false),
|
|
83
106
|
"data-sticky-header": reflectedProp("stickyHeader", "sticky-header", checkedProps.value.stickyHeader, void 0, false),
|
|
84
107
|
"data-ui-table-state": hostState.value || void 0,
|
|
85
108
|
ref_key: "root",
|
|
86
109
|
ref: root
|
|
87
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1)
|
|
110
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
111
|
+
contract: propValidityContract,
|
|
112
|
+
values: { ...checkedProps.value }
|
|
113
|
+
}]]);
|
|
88
114
|
};
|
|
89
115
|
}
|
|
90
|
-
}), [["__scopeId", "data-v-
|
|
116
|
+
}), [["__scopeId", "data-v-b35c07bf"]]);
|
|
91
117
|
//#endregion
|
|
92
118
|
export { UiTable_default as t };
|
package/vue/chunks/UiTabs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
2
|
import { r as useComponentHost, t as createDispatch } from "./host.js";
|
|
3
|
-
import { t as checkedProp } from "./props.js";
|
|
4
|
-
import { Fragment, computed, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, h, mergeProps, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withCtx } from "vue";
|
|
3
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
4
|
+
import { Fragment, computed, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, h, mergeProps, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withCtx, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiTabs.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = [
|
|
7
7
|
"data-activation",
|
|
@@ -56,32 +56,97 @@ var UiTabs_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
56
56
|
},
|
|
57
57
|
emits: ["update:value", "select"],
|
|
58
58
|
setup(__props, { emit: __emit }) {
|
|
59
|
+
const propValidityContract = { props: {
|
|
60
|
+
activation: {
|
|
61
|
+
type: {
|
|
62
|
+
kind: "terminal",
|
|
63
|
+
name: "keyword"
|
|
64
|
+
},
|
|
65
|
+
required: false,
|
|
66
|
+
target: { attribute: "activation" },
|
|
67
|
+
description: "In auto mode, arrow keys move focus and select the next panel. In manual mode, arrows move focus while Enter or Space selects a panel. Use manual when\n displaying a panel takes time.",
|
|
68
|
+
values: ["auto", "manual"],
|
|
69
|
+
default: "auto"
|
|
70
|
+
},
|
|
71
|
+
density: {
|
|
72
|
+
type: {
|
|
73
|
+
kind: "terminal",
|
|
74
|
+
name: "keyword"
|
|
75
|
+
},
|
|
76
|
+
required: false,
|
|
77
|
+
target: { attribute: "density" },
|
|
78
|
+
description: "Compact trades padding and type size for rows that fit more on screen.",
|
|
79
|
+
values: ["comfortable", "compact"],
|
|
80
|
+
default: "comfortable"
|
|
81
|
+
},
|
|
82
|
+
label: {
|
|
83
|
+
type: {
|
|
84
|
+
kind: "terminal",
|
|
85
|
+
name: "string"
|
|
86
|
+
},
|
|
87
|
+
required: false,
|
|
88
|
+
target: { attribute: "aria-label" },
|
|
89
|
+
description: "The tab list's accessible name, announced when focus enters the list. Name what the tabs switch between.",
|
|
90
|
+
default: "Tabs"
|
|
91
|
+
},
|
|
92
|
+
orientation: {
|
|
93
|
+
type: {
|
|
94
|
+
kind: "terminal",
|
|
95
|
+
name: "keyword"
|
|
96
|
+
},
|
|
97
|
+
required: false,
|
|
98
|
+
target: { attribute: "aria-orientation" },
|
|
99
|
+
description: "horizontal puts the tabs in a row above the panels, moved between with the Left and Right arrow keys; vertical puts them in a column beside the panels,\n moved between with Up and Down.",
|
|
100
|
+
values: ["horizontal", "vertical"],
|
|
101
|
+
default: "horizontal"
|
|
102
|
+
},
|
|
103
|
+
stretch: {
|
|
104
|
+
type: {
|
|
105
|
+
kind: "terminal",
|
|
106
|
+
name: "boolean"
|
|
107
|
+
},
|
|
108
|
+
required: false,
|
|
109
|
+
target: { attribute: "stretch" },
|
|
110
|
+
description: "Share the full width of the tab list equally between tabs instead of sizing each to its label.",
|
|
111
|
+
default: false
|
|
112
|
+
},
|
|
113
|
+
value: {
|
|
114
|
+
type: {
|
|
115
|
+
kind: "terminal",
|
|
116
|
+
name: "string"
|
|
117
|
+
},
|
|
118
|
+
required: false,
|
|
119
|
+
target: { attribute: "value" },
|
|
120
|
+
description: "The id of the selected panel, initially or when set externally; empty selects the first panel. Choosing a tab updates it from there and reports a select\n event. A panel without an id is given a generated one.",
|
|
121
|
+
default: ""
|
|
122
|
+
}
|
|
123
|
+
} };
|
|
59
124
|
const props = __props;
|
|
60
125
|
const checkedProps = computed(() => ({
|
|
61
126
|
activation: checkedProp(props["activation"], {
|
|
62
127
|
kind: "terminal",
|
|
63
128
|
name: "keyword"
|
|
64
|
-
}, false, "activation"
|
|
129
|
+
}, false, "activation"),
|
|
65
130
|
density: checkedProp(props["density"], {
|
|
66
131
|
kind: "terminal",
|
|
67
132
|
name: "keyword"
|
|
68
|
-
}, false, "density"
|
|
133
|
+
}, false, "density"),
|
|
69
134
|
label: checkedProp(props["label"], {
|
|
70
135
|
kind: "terminal",
|
|
71
136
|
name: "string"
|
|
72
|
-
}, false, "label"
|
|
137
|
+
}, false, "label"),
|
|
73
138
|
orientation: checkedProp(props["orientation"], {
|
|
74
139
|
kind: "terminal",
|
|
75
140
|
name: "keyword"
|
|
76
|
-
}, false, "orientation"
|
|
141
|
+
}, false, "orientation"),
|
|
77
142
|
stretch: checkedProp(props["stretch"], {
|
|
78
143
|
kind: "terminal",
|
|
79
144
|
name: "boolean"
|
|
80
|
-
}, false, "stretch"
|
|
145
|
+
}, false, "stretch"),
|
|
81
146
|
value: checkedProp(props["value"], {
|
|
82
147
|
kind: "terminal",
|
|
83
148
|
name: "string"
|
|
84
|
-
}, false, "value"
|
|
149
|
+
}, false, "value")
|
|
85
150
|
}));
|
|
86
151
|
checkedProps.value;
|
|
87
152
|
watchSyncEffect(() => {
|
|
@@ -130,6 +195,8 @@ var UiTabs_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
130
195
|
const panelsElement = useTemplateRef("panels");
|
|
131
196
|
const internalValue = ref("");
|
|
132
197
|
const tabs = ref([]);
|
|
198
|
+
provide("html-next:ui-tabs:internalValue", internalValue);
|
|
199
|
+
provide("html-next:ui-tabs:tabs", tabs);
|
|
133
200
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
134
201
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "div")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-tabs> has an incompatible root."), {
|
|
135
202
|
name: "HtmlDiagnosticError",
|
|
@@ -200,7 +267,7 @@ var UiTabs_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
200
267
|
return items;
|
|
201
268
|
}
|
|
202
269
|
return (_ctx, _cache) => {
|
|
203
|
-
return openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-tabs" }, nativeAttrs(_ctx.$attrs), {
|
|
270
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-tabs" }, nativeAttrs(_ctx.$attrs), {
|
|
204
271
|
"data-activation": reflectedProp("activation", "activation", checkedProps.value.activation, void 0, false),
|
|
205
272
|
"data-density": reflectedProp("density", "density", checkedProps.value.density, void 0, false),
|
|
206
273
|
"data-label": reflectedProp("label", "label", checkedProps.value.label, void 0, false),
|
|
@@ -229,9 +296,12 @@ var UiTabs_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
229
296
|
}, toDisplayString(tab.label), 9, _hoisted_3);
|
|
230
297
|
}), 128))]),
|
|
231
298
|
_: 1
|
|
232
|
-
})])], 8, _hoisted_2), createElementVNode("div", _hoisted_4, [renderSlot(_ctx.$slots, "default")], 512)], 16, _hoisted_1)
|
|
299
|
+
})])], 8, _hoisted_2), createElementVNode("div", _hoisted_4, [renderSlot(_ctx.$slots, "default")], 512)], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
300
|
+
contract: propValidityContract,
|
|
301
|
+
values: { ...checkedProps.value }
|
|
302
|
+
}]]);
|
|
233
303
|
};
|
|
234
304
|
}
|
|
235
|
-
}), [["__scopeId", "data-v-
|
|
305
|
+
}), [["__scopeId", "data-v-be58bc21"]]);
|
|
236
306
|
//#endregion
|
|
237
307
|
export { UiTabs_default as t };
|