@threadlabs/looma 0.21.6 → 0.22.1
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 +2 -2
- 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 +1 -1
- package/styles/ui-avatar.css +1 -1
- package/styles/ui-badge.css +1 -1
- package/styles/ui-breadcrumb-item.css +1 -1
- package/styles/ui-breadcrumbs.css +1 -1
- package/styles/ui-button.css +1 -1
- package/styles/ui-callout.css +1 -1
- package/styles/ui-card.css +1 -1
- package/styles/ui-checkbox.css +1 -1
- package/styles/ui-cluster.css +1 -1
- package/styles/ui-combobox.css +1 -1
- package/styles/ui-container.css +1 -1
- package/styles/ui-context-menu.css +1 -1
- package/styles/ui-cover.css +1 -1
- package/styles/ui-description-item.css +1 -1
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +1 -1
- package/styles/ui-disclosure.css +1 -1
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-slash-menu-group.css +1 -1
- package/styles/ui-editor-slash-menu-item.css +1 -1
- package/styles/ui-editor-slash-menu.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +1 -1
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +1 -1
- package/styles/ui-icon-button.css +1 -1
- package/styles/ui-icon.css +1 -1
- package/styles/ui-input-group.css +1 -1
- package/styles/ui-input.css +1 -1
- package/styles/ui-list-item.css +1 -1
- package/styles/ui-list.css +1 -1
- package/styles/ui-listbox.css +1 -1
- package/styles/ui-menu-group.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.css +1 -1
- package/styles/ui-meter.css +1 -1
- package/styles/ui-nav-item.css +1 -1
- package/styles/ui-page-header.css +1 -1
- package/styles/ui-popover.css +1 -1
- package/styles/ui-radio-group.css +1 -1
- package/styles/ui-radio.css +1 -1
- package/styles/ui-reel.css +1 -1
- package/styles/ui-scroll-area.css +1 -1
- package/styles/ui-search-result-row.css +1 -1
- package/styles/ui-search-shell.css +1 -1
- package/styles/ui-section.css +1 -1
- package/styles/ui-select.css +1 -1
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +1 -1
- package/styles/ui-table.css +1 -1
- package/styles/ui-tabs.css +1 -1
- package/styles/ui-text.css +1 -1
- package/styles/ui-textarea.css +1 -1
- package/styles/ui-toast-region.css +1 -1
- package/styles/ui-toast.css +1 -1
- package/styles/ui-tooltip.css +1 -1
- package/styles/ui-top-bar.css +1 -1
- package/styles/ui-tree-item.css +1 -1
- package/styles/ui-tree.css +1 -1
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +1 -1
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +2 -2
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +2 -2
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- 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 +1 -1
- package/vue/UiAvatarGroup.vue +67 -21
- package/vue/UiBadge.vue +34 -8
- package/vue/UiBreadcrumbItem.vue +15 -4
- package/vue/UiBreadcrumbs.vue +14 -4
- package/vue/UiButton.vue +123 -42
- 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 -16
- 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 +1197 -1197
- package/vue/editor/index.js +5 -2
- package/vue/editor/primitives.d.ts +4 -1
- package/vue/host.ts +6 -6
package/vue/chunks/UiCheckbox.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/UiCheckbox.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var _hoisted_1 = [
|
|
8
8
|
"data-checked",
|
|
@@ -75,44 +75,127 @@ var UiCheckbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
75
75
|
"change"
|
|
76
76
|
],
|
|
77
77
|
setup(__props, { emit: __emit }) {
|
|
78
|
+
const propValidityContract = { props: {
|
|
79
|
+
checked: {
|
|
80
|
+
type: {
|
|
81
|
+
kind: "terminal",
|
|
82
|
+
name: "boolean"
|
|
83
|
+
},
|
|
84
|
+
required: false,
|
|
85
|
+
target: { attribute: "checked" },
|
|
86
|
+
description: "Whether the checkbox is checked initially or when set externally. A form reset returns it to this.",
|
|
87
|
+
default: false
|
|
88
|
+
},
|
|
89
|
+
disabled: {
|
|
90
|
+
type: {
|
|
91
|
+
kind: "terminal",
|
|
92
|
+
name: "boolean"
|
|
93
|
+
},
|
|
94
|
+
required: false,
|
|
95
|
+
target: { attribute: "disabled" },
|
|
96
|
+
description: "Disables the native checkbox, so it cannot be toggled or focused.",
|
|
97
|
+
default: false
|
|
98
|
+
},
|
|
99
|
+
indeterminate: {
|
|
100
|
+
type: {
|
|
101
|
+
kind: "terminal",
|
|
102
|
+
name: "boolean"
|
|
103
|
+
},
|
|
104
|
+
required: false,
|
|
105
|
+
target: { property: "indeterminate" },
|
|
106
|
+
description: "Shows the mixed state, for a checkbox that summarises a group whose items are partly checked. It sets the native indeterminate property, which is\n independent of checked, so update it as the group changes.",
|
|
107
|
+
default: false
|
|
108
|
+
},
|
|
109
|
+
invalid: {
|
|
110
|
+
type: {
|
|
111
|
+
kind: "terminal",
|
|
112
|
+
name: "boolean"
|
|
113
|
+
},
|
|
114
|
+
required: false,
|
|
115
|
+
target: { attribute: "aria-invalid" },
|
|
116
|
+
description: "Exposes an externally validated error and styles the checkbox with the field danger colour.",
|
|
117
|
+
default: false
|
|
118
|
+
},
|
|
119
|
+
name: {
|
|
120
|
+
type: {
|
|
121
|
+
kind: "terminal",
|
|
122
|
+
name: "string"
|
|
123
|
+
},
|
|
124
|
+
required: false,
|
|
125
|
+
target: { attribute: "name" },
|
|
126
|
+
description: "The native name the checkbox submits under: a form that contains it sends name=value while it is checked, and nothing while it is unchecked, as a native\n checkbox does. Left empty, it takes no part in form submission.",
|
|
127
|
+
default: ""
|
|
128
|
+
},
|
|
129
|
+
required: {
|
|
130
|
+
type: {
|
|
131
|
+
kind: "terminal",
|
|
132
|
+
name: "boolean"
|
|
133
|
+
},
|
|
134
|
+
required: false,
|
|
135
|
+
target: { attribute: "required" },
|
|
136
|
+
description: "Marks the native checkbox required, so native form validation treats it as invalid until it is checked.",
|
|
137
|
+
default: false
|
|
138
|
+
},
|
|
139
|
+
size: {
|
|
140
|
+
type: {
|
|
141
|
+
kind: "terminal",
|
|
142
|
+
name: "keyword"
|
|
143
|
+
},
|
|
144
|
+
required: false,
|
|
145
|
+
target: { attribute: "size" },
|
|
146
|
+
description: "Aligns the checkbox with fields and buttons of the same size. It keeps its box 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.",
|
|
147
|
+
values: [
|
|
148
|
+
"sm",
|
|
149
|
+
"md",
|
|
150
|
+
"lg"
|
|
151
|
+
],
|
|
152
|
+
default: "md"
|
|
153
|
+
},
|
|
154
|
+
value: {
|
|
155
|
+
type: {
|
|
156
|
+
kind: "terminal",
|
|
157
|
+
name: "string"
|
|
158
|
+
},
|
|
159
|
+
required: false,
|
|
160
|
+
target: { attribute: "value" },
|
|
161
|
+
description: "The value a form submits under name while the checkbox is checked, also reported in the change event's detail so one handler can tell checkboxes apart. on\n by default, as on a native checkbox.",
|
|
162
|
+
default: "on"
|
|
163
|
+
}
|
|
164
|
+
} };
|
|
78
165
|
const props = __props;
|
|
79
166
|
const checkedProps = computed(() => ({
|
|
80
167
|
checked: checkedProp(props["checked"], {
|
|
81
168
|
kind: "terminal",
|
|
82
169
|
name: "boolean"
|
|
83
|
-
}, false, "checked"
|
|
170
|
+
}, false, "checked"),
|
|
84
171
|
disabled: checkedProp(props["disabled"], {
|
|
85
172
|
kind: "terminal",
|
|
86
173
|
name: "boolean"
|
|
87
|
-
}, false, "disabled"
|
|
174
|
+
}, false, "disabled"),
|
|
88
175
|
indeterminate: checkedProp(props["indeterminate"], {
|
|
89
176
|
kind: "terminal",
|
|
90
177
|
name: "boolean"
|
|
91
|
-
}, false, "indeterminate"
|
|
178
|
+
}, false, "indeterminate"),
|
|
92
179
|
invalid: checkedProp(props["invalid"], {
|
|
93
180
|
kind: "terminal",
|
|
94
181
|
name: "boolean"
|
|
95
|
-
}, false, "invalid"
|
|
182
|
+
}, false, "invalid"),
|
|
96
183
|
name: checkedProp(props["name"], {
|
|
97
184
|
kind: "terminal",
|
|
98
185
|
name: "string"
|
|
99
|
-
}, false, "name"
|
|
186
|
+
}, false, "name"),
|
|
100
187
|
required: checkedProp(props["required"], {
|
|
101
188
|
kind: "terminal",
|
|
102
189
|
name: "boolean"
|
|
103
|
-
}, false, "required"
|
|
190
|
+
}, false, "required"),
|
|
104
191
|
size: checkedProp(props["size"], {
|
|
105
192
|
kind: "terminal",
|
|
106
193
|
name: "keyword"
|
|
107
|
-
}, false, "size",
|
|
108
|
-
"sm",
|
|
109
|
-
"md",
|
|
110
|
-
"lg"
|
|
111
|
-
]),
|
|
194
|
+
}, false, "size"),
|
|
112
195
|
value: checkedProp(props["value"], {
|
|
113
196
|
kind: "terminal",
|
|
114
197
|
name: "string"
|
|
115
|
-
}, false, "value"
|
|
198
|
+
}, false, "value")
|
|
116
199
|
}));
|
|
117
200
|
checkedProps.value;
|
|
118
201
|
watchSyncEffect(() => {
|
|
@@ -136,6 +219,7 @@ var UiCheckbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
136
219
|
const inputElement = useTemplateRef("input");
|
|
137
220
|
const descriptionElement = useTemplateRef("description");
|
|
138
221
|
const internalChecked = ref(false);
|
|
222
|
+
provide("html-next:ui-checkbox:internalChecked", internalChecked);
|
|
139
223
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
140
224
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "label")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-checkbox> has an incompatible root."), {
|
|
141
225
|
name: "HtmlDiagnosticError",
|
|
@@ -175,7 +259,7 @@ var UiCheckbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
175
259
|
state: { internalChecked }
|
|
176
260
|
});
|
|
177
261
|
return (_ctx, _cache) => {
|
|
178
|
-
return openBlock(), createElementBlock("label", mergeProps({ "data-component": "ui-checkbox" }, nativeAttrs(_ctx.$attrs), {
|
|
262
|
+
return withDirectives((openBlock(), createElementBlock("label", mergeProps({ "data-component": "ui-checkbox" }, nativeAttrs(_ctx.$attrs), {
|
|
179
263
|
"data-checked": reflectedProp("checked", "checked", checkedProps.value.checked, void 0, false),
|
|
180
264
|
"data-disabled": reflectedProp("disabled", "disabled", checkedProps.value.disabled, void 0, false),
|
|
181
265
|
"data-indeterminate": reflectedProp("indeterminate", "indeterminate", checkedProps.value.indeterminate, void 0, false),
|
|
@@ -202,9 +286,12 @@ var UiCheckbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
202
286
|
value: internalChecked.value,
|
|
203
287
|
nativeProperty: true,
|
|
204
288
|
defaultChecked: false
|
|
205
|
-
}]]), 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)
|
|
289
|
+
}]]), 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), {
|
|
290
|
+
contract: propValidityContract,
|
|
291
|
+
values: { ...checkedProps.value }
|
|
292
|
+
}]]);
|
|
206
293
|
};
|
|
207
294
|
}
|
|
208
|
-
}), [["__scopeId", "data-v-
|
|
295
|
+
}), [["__scopeId", "data-v-2a462a73"]]);
|
|
209
296
|
//#endregion
|
|
210
297
|
export { UiCheckbox_default as t };
|
package/vue/chunks/UiCluster.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import { t as checkedProp } from "./props.js";
|
|
3
|
-
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, watchSyncEffect } from "vue";
|
|
2
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
3
|
+
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiCluster.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
|
6
6
|
"data-align",
|
|
@@ -33,40 +33,82 @@ var UiCluster_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
setup(__props) {
|
|
36
|
+
const propValidityContract = { props: {
|
|
37
|
+
align: {
|
|
38
|
+
type: {
|
|
39
|
+
kind: "terminal",
|
|
40
|
+
name: "keyword"
|
|
41
|
+
},
|
|
42
|
+
required: false,
|
|
43
|
+
target: { attribute: "align" },
|
|
44
|
+
description: "How items line up within each row: center (the default) aligns their middles, start their tops, end their bottoms, and stretch makes every item as tall as\n its row.",
|
|
45
|
+
values: [
|
|
46
|
+
"start",
|
|
47
|
+
"center",
|
|
48
|
+
"end",
|
|
49
|
+
"stretch"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
gap: {
|
|
53
|
+
type: {
|
|
54
|
+
kind: "terminal",
|
|
55
|
+
name: "keyword"
|
|
56
|
+
},
|
|
57
|
+
required: false,
|
|
58
|
+
target: { attribute: "gap" },
|
|
59
|
+
description: "Space between items, on the spacing scale: xs is 0.5rem, s 0.75rem (also the default), m 1rem, l 1.5rem, and xl 2rem. The --ui-cluster-gap custom property,\n set on the cluster itself, overrides it; set on an ancestor, it does nothing.",
|
|
60
|
+
values: [
|
|
61
|
+
"xs",
|
|
62
|
+
"s",
|
|
63
|
+
"m",
|
|
64
|
+
"l",
|
|
65
|
+
"xl"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
justify: {
|
|
69
|
+
type: {
|
|
70
|
+
kind: "terminal",
|
|
71
|
+
name: "keyword"
|
|
72
|
+
},
|
|
73
|
+
required: false,
|
|
74
|
+
target: { attribute: "justify" },
|
|
75
|
+
description: "Where items sit along each row: start (the default), center, end, or between, which pushes the first and last items to the ends of the row and spreads the\n spare space between them, as for a title with its actions.",
|
|
76
|
+
values: [
|
|
77
|
+
"start",
|
|
78
|
+
"center",
|
|
79
|
+
"end",
|
|
80
|
+
"between"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
wrap: {
|
|
84
|
+
type: {
|
|
85
|
+
kind: "terminal",
|
|
86
|
+
name: "keyword"
|
|
87
|
+
},
|
|
88
|
+
required: false,
|
|
89
|
+
target: { attribute: "wrap" },
|
|
90
|
+
description: "Whether items move onto a new row when they run out of space: wrap (the default) or nowrap, which keeps them on one row at their own sizes. Use nowrap for\n a small group that must read as one unit, such as a meter and its value in a table cell, so the cell grows to fit it; a whole row of actions should keep\n wrapping so it fits narrow screens.",
|
|
91
|
+
values: ["wrap", "nowrap"]
|
|
92
|
+
}
|
|
93
|
+
} };
|
|
36
94
|
const props = __props;
|
|
37
95
|
const checkedProps = computed(() => ({
|
|
38
96
|
align: checkedProp(props["align"], {
|
|
39
97
|
kind: "terminal",
|
|
40
98
|
name: "keyword"
|
|
41
|
-
}, false, "align",
|
|
42
|
-
"start",
|
|
43
|
-
"center",
|
|
44
|
-
"end",
|
|
45
|
-
"stretch"
|
|
46
|
-
]),
|
|
99
|
+
}, false, "align"),
|
|
47
100
|
gap: checkedProp(props["gap"], {
|
|
48
101
|
kind: "terminal",
|
|
49
102
|
name: "keyword"
|
|
50
|
-
}, false, "gap",
|
|
51
|
-
"xs",
|
|
52
|
-
"s",
|
|
53
|
-
"m",
|
|
54
|
-
"l",
|
|
55
|
-
"xl"
|
|
56
|
-
]),
|
|
103
|
+
}, false, "gap"),
|
|
57
104
|
justify: checkedProp(props["justify"], {
|
|
58
105
|
kind: "terminal",
|
|
59
106
|
name: "keyword"
|
|
60
|
-
}, false, "justify",
|
|
61
|
-
"start",
|
|
62
|
-
"center",
|
|
63
|
-
"end",
|
|
64
|
-
"between"
|
|
65
|
-
]),
|
|
107
|
+
}, false, "justify"),
|
|
66
108
|
wrap: checkedProp(props["wrap"], {
|
|
67
109
|
kind: "terminal",
|
|
68
110
|
name: "keyword"
|
|
69
|
-
}, false, "wrap"
|
|
111
|
+
}, false, "wrap")
|
|
70
112
|
}));
|
|
71
113
|
checkedProps.value;
|
|
72
114
|
watchSyncEffect(() => {
|
|
@@ -104,15 +146,18 @@ var UiCluster_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
104
146
|
checkedProps.value.wrap != null && `wrap=${encodeURIComponent(checkedProps.value.wrap)}`
|
|
105
147
|
].filter(Boolean).join(" "));
|
|
106
148
|
return (_ctx, _cache) => {
|
|
107
|
-
return openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-cluster" }, nativeAttrs(_ctx.$attrs), {
|
|
149
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-cluster" }, nativeAttrs(_ctx.$attrs), {
|
|
108
150
|
"data-align": reflectedProp("align", "align", checkedProps.value.align, void 0, false),
|
|
109
151
|
"data-gap": reflectedProp("gap", "gap", checkedProps.value.gap, void 0, false),
|
|
110
152
|
"data-justify": reflectedProp("justify", "justify", checkedProps.value.justify, void 0, false),
|
|
111
153
|
"data-wrap": reflectedProp("wrap", "wrap", checkedProps.value.wrap, void 0, false),
|
|
112
154
|
"data-ui-cluster-state": hostState.value || void 0
|
|
113
|
-
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_1)
|
|
155
|
+
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
156
|
+
contract: propValidityContract,
|
|
157
|
+
values: { ...checkedProps.value }
|
|
158
|
+
}]]);
|
|
114
159
|
};
|
|
115
160
|
}
|
|
116
|
-
}), [["__scopeId", "data-v-
|
|
161
|
+
}), [["__scopeId", "data-v-280f6833"]]);
|
|
117
162
|
//#endregion
|
|
118
163
|
export { UiCluster_default as t };
|