@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
|
@@ -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, createElementVNode, createTextVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, renderSlot, toDisplayString, useTemplateRef, watchSyncEffect } from "vue";
|
|
3
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
4
|
+
import { computed, createElementBlock, createElementVNode, createTextVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiDisclosure.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = [
|
|
7
7
|
"data-density",
|
|
@@ -58,32 +58,95 @@ var UiDisclosure_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
58
58
|
"close"
|
|
59
59
|
],
|
|
60
60
|
setup(__props, { emit: __emit }) {
|
|
61
|
+
const propValidityContract = { props: {
|
|
62
|
+
density: {
|
|
63
|
+
type: {
|
|
64
|
+
kind: "terminal",
|
|
65
|
+
name: "keyword"
|
|
66
|
+
},
|
|
67
|
+
required: false,
|
|
68
|
+
target: { attribute: "density" },
|
|
69
|
+
description: "Compact trades padding and type size for rows that fit more on screen.",
|
|
70
|
+
values: ["comfortable", "compact"],
|
|
71
|
+
default: "comfortable"
|
|
72
|
+
},
|
|
73
|
+
disabled: {
|
|
74
|
+
type: {
|
|
75
|
+
kind: "terminal",
|
|
76
|
+
name: "boolean"
|
|
77
|
+
},
|
|
78
|
+
required: false,
|
|
79
|
+
target: { attribute: "disabled" },
|
|
80
|
+
description: "Disables the trigger and mutes its text, so the disclosure keeps its current state and the user cannot toggle it.",
|
|
81
|
+
default: false
|
|
82
|
+
},
|
|
83
|
+
headingLevel: {
|
|
84
|
+
type: {
|
|
85
|
+
kind: "terminal",
|
|
86
|
+
name: "integer"
|
|
87
|
+
},
|
|
88
|
+
required: false,
|
|
89
|
+
target: { attribute: "headinglevel" },
|
|
90
|
+
description: "Adds heading semantics around the trigger at level 2 through 6. Zero leaves it a plain disclosure; choose a level that matches the page outline.",
|
|
91
|
+
default: 0
|
|
92
|
+
},
|
|
93
|
+
name: {
|
|
94
|
+
type: {
|
|
95
|
+
kind: "terminal",
|
|
96
|
+
name: "string"
|
|
97
|
+
},
|
|
98
|
+
required: false,
|
|
99
|
+
target: { attribute: "name" },
|
|
100
|
+
description: "Disclosures with the same nonempty name form an exclusive group in one document: opening one closes the others. An empty name allows multiple open\n items.",
|
|
101
|
+
default: ""
|
|
102
|
+
},
|
|
103
|
+
open: {
|
|
104
|
+
type: {
|
|
105
|
+
kind: "terminal",
|
|
106
|
+
name: "boolean"
|
|
107
|
+
},
|
|
108
|
+
required: false,
|
|
109
|
+
target: { attribute: "open" },
|
|
110
|
+
description: "Whether the disclosure is open initially or when set externally. The trigger toggles it from there, reporting each change as an open or close event.",
|
|
111
|
+
default: false
|
|
112
|
+
},
|
|
113
|
+
summary: {
|
|
114
|
+
type: {
|
|
115
|
+
kind: "terminal",
|
|
116
|
+
name: "string"
|
|
117
|
+
},
|
|
118
|
+
required: false,
|
|
119
|
+
target: { attribute: "summary" },
|
|
120
|
+
description: "The text of the trigger row that opens and closes the disclosure. It is the trigger button's accessible name, so name what the content is.",
|
|
121
|
+
default: "Details"
|
|
122
|
+
}
|
|
123
|
+
} };
|
|
61
124
|
const props = __props;
|
|
62
125
|
const checkedProps = computed(() => ({
|
|
63
126
|
density: checkedProp(props["density"], {
|
|
64
127
|
kind: "terminal",
|
|
65
128
|
name: "keyword"
|
|
66
|
-
}, false, "density"
|
|
129
|
+
}, false, "density"),
|
|
67
130
|
disabled: checkedProp(props["disabled"], {
|
|
68
131
|
kind: "terminal",
|
|
69
132
|
name: "boolean"
|
|
70
|
-
}, false, "disabled"
|
|
133
|
+
}, false, "disabled"),
|
|
71
134
|
headingLevel: checkedProp(props["headingLevel"], {
|
|
72
135
|
kind: "terminal",
|
|
73
136
|
name: "integer"
|
|
74
|
-
}, false, "headingLevel"
|
|
137
|
+
}, false, "headingLevel"),
|
|
75
138
|
name: checkedProp(props["name"], {
|
|
76
139
|
kind: "terminal",
|
|
77
140
|
name: "string"
|
|
78
|
-
}, false, "name"
|
|
141
|
+
}, false, "name"),
|
|
79
142
|
open: checkedProp(props["open"], {
|
|
80
143
|
kind: "terminal",
|
|
81
144
|
name: "boolean"
|
|
82
|
-
}, false, "open"
|
|
145
|
+
}, false, "open"),
|
|
83
146
|
summary: checkedProp(props["summary"], {
|
|
84
147
|
kind: "terminal",
|
|
85
148
|
name: "string"
|
|
86
|
-
}, false, "summary"
|
|
149
|
+
}, false, "summary")
|
|
87
150
|
}));
|
|
88
151
|
checkedProps.value;
|
|
89
152
|
watchSyncEffect(() => {
|
|
@@ -110,6 +173,34 @@ var UiDisclosure_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
110
173
|
const contentId = ref("");
|
|
111
174
|
const headingRole = ref(null);
|
|
112
175
|
const headingAriaLevel = ref(null);
|
|
176
|
+
const guarded = computed(() => {
|
|
177
|
+
if (!(headingRole.value == null || true));
|
|
178
|
+
return headingRole.value ?? void 0;
|
|
179
|
+
});
|
|
180
|
+
let guardedBindingPrevious;
|
|
181
|
+
const guardedBinding = computed(() => {
|
|
182
|
+
if (!(headingAriaLevel.value == null || Number.isInteger(headingAriaLevel.value))) return guardedBindingPrevious;
|
|
183
|
+
return guardedBindingPrevious = headingAriaLevel.value ?? void 0;
|
|
184
|
+
});
|
|
185
|
+
let guardedBinding2Previous;
|
|
186
|
+
const guardedBinding2 = computed(() => {
|
|
187
|
+
if (!(contentId.value == null || typeof contentId.value === "string")) return guardedBinding2Previous;
|
|
188
|
+
return guardedBinding2Previous = contentId.value;
|
|
189
|
+
});
|
|
190
|
+
let guardedBinding3Previous;
|
|
191
|
+
const guardedBinding3 = computed(() => {
|
|
192
|
+
if (!(internalOpen.value == null || typeof internalOpen.value === "boolean")) return guardedBinding3Previous;
|
|
193
|
+
return guardedBinding3Previous = internalOpen.value;
|
|
194
|
+
});
|
|
195
|
+
let guardedBinding4Previous;
|
|
196
|
+
const guardedBinding4 = computed(() => {
|
|
197
|
+
if (!(contentId.value == null || typeof contentId.value === "string")) return guardedBinding4Previous;
|
|
198
|
+
return guardedBinding4Previous = contentId.value;
|
|
199
|
+
});
|
|
200
|
+
provide("html-next:ui-disclosure:internalOpen", internalOpen);
|
|
201
|
+
provide("html-next:ui-disclosure:contentId", contentId);
|
|
202
|
+
provide("html-next:ui-disclosure:headingRole", headingRole);
|
|
203
|
+
provide("html-next:ui-disclosure:headingAriaLevel", headingAriaLevel);
|
|
113
204
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
114
205
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "div")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-disclosure> has an incompatible root."), {
|
|
115
206
|
name: "HtmlDiagnosticError",
|
|
@@ -155,16 +246,8 @@ var UiDisclosure_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
155
246
|
headingAriaLevel
|
|
156
247
|
}
|
|
157
248
|
});
|
|
158
|
-
function text(value) {
|
|
159
|
-
if (Array.isArray(value)) return value.map(text).join(" ");
|
|
160
|
-
return value === null || value === void 0 || typeof value === "object" ? "" : String(value);
|
|
161
|
-
}
|
|
162
|
-
function attribute(value) {
|
|
163
|
-
if (value === null || value === void 0 || value === false || typeof value === "object" && !Array.isArray(value)) return void 0;
|
|
164
|
-
return value === true ? "" : text(value);
|
|
165
|
-
}
|
|
166
249
|
return (_ctx, _cache) => {
|
|
167
|
-
return openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-disclosure" }, nativeAttrs(_ctx.$attrs), {
|
|
250
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-disclosure" }, nativeAttrs(_ctx.$attrs), {
|
|
168
251
|
"data-density": reflectedProp("density", "density", checkedProps.value.density, void 0, false),
|
|
169
252
|
"data-disabled": reflectedProp("disabled", "disabled", checkedProps.value.disabled, void 0, false),
|
|
170
253
|
"data-heading-level": reflectedProp("headingLevel", "heading-level", checkedProps.value.headingLevel, void 0, false),
|
|
@@ -176,13 +259,13 @@ var UiDisclosure_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
176
259
|
ref: root
|
|
177
260
|
}), [createElementVNode("div", {
|
|
178
261
|
class: "heading",
|
|
179
|
-
role:
|
|
180
|
-
"aria-level":
|
|
262
|
+
role: guarded.value,
|
|
263
|
+
"aria-level": guardedBinding.value
|
|
181
264
|
}, [createElementVNode("button", {
|
|
182
265
|
class: "trigger",
|
|
183
266
|
type: "button",
|
|
184
|
-
"aria-controls":
|
|
185
|
-
"aria-expanded":
|
|
267
|
+
"aria-controls": guardedBinding2.value,
|
|
268
|
+
"aria-expanded": guardedBinding3.value,
|
|
186
269
|
disabled: checkedProps.value.disabled ?? void 0,
|
|
187
270
|
ref: "trigger"
|
|
188
271
|
}, [createElementVNode("span", _hoisted_4, [renderSlot(_ctx.$slots, "summary", {}, () => [createTextVNode(toDisplayString(checkedProps.value.summary), 1)], true)]), _cache[0] || (_cache[0] = createElementVNode("span", {
|
|
@@ -190,11 +273,14 @@ var UiDisclosure_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
190
273
|
"aria-hidden": "true"
|
|
191
274
|
}, null, -1))], 8, _hoisted_3)], 8, _hoisted_2), createElementVNode("div", {
|
|
192
275
|
class: "panel",
|
|
193
|
-
id:
|
|
276
|
+
id: guardedBinding4.value,
|
|
194
277
|
ref: "panel"
|
|
195
|
-
}, [createElementVNode("div", _hoisted_6, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])], 8, _hoisted_5)], 16, _hoisted_1)
|
|
278
|
+
}, [createElementVNode("div", _hoisted_6, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])], 8, _hoisted_5)], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
279
|
+
contract: propValidityContract,
|
|
280
|
+
values: { ...checkedProps.value }
|
|
281
|
+
}]]);
|
|
196
282
|
};
|
|
197
283
|
}
|
|
198
|
-
}), [["__scopeId", "data-v-
|
|
284
|
+
}), [["__scopeId", "data-v-19148588"]]);
|
|
199
285
|
//#endregion
|
|
200
286
|
export { UiDisclosure_default as t };
|
package/vue/chunks/UiEditable.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, createCommentVNode, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, toDisplayString, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
5
|
+
import { computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, toDisplayString, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
6
6
|
//#region .build/vue/UiEditable.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var _hoisted_1 = [
|
|
8
8
|
"data-actions",
|
|
@@ -103,52 +103,164 @@ var UiEditable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
103
103
|
"edit-change"
|
|
104
104
|
],
|
|
105
105
|
setup(__props, { emit: __emit }) {
|
|
106
|
+
const propValidityContract = { props: {
|
|
107
|
+
actions: {
|
|
108
|
+
type: {
|
|
109
|
+
kind: "terminal",
|
|
110
|
+
name: "boolean"
|
|
111
|
+
},
|
|
112
|
+
required: false,
|
|
113
|
+
target: { attribute: "actions" },
|
|
114
|
+
description: "Show explicit Save and Cancel buttons while editing. Without them, Enter or leaving the field saves and Escape cancels.",
|
|
115
|
+
default: false
|
|
116
|
+
},
|
|
117
|
+
cancelLabel: {
|
|
118
|
+
type: {
|
|
119
|
+
kind: "terminal",
|
|
120
|
+
name: "string"
|
|
121
|
+
},
|
|
122
|
+
required: false,
|
|
123
|
+
target: { attribute: "cancellabel" },
|
|
124
|
+
description: "Visible text for the Cancel action.",
|
|
125
|
+
default: "Cancel"
|
|
126
|
+
},
|
|
127
|
+
disabled: {
|
|
128
|
+
type: {
|
|
129
|
+
kind: "terminal",
|
|
130
|
+
name: "boolean"
|
|
131
|
+
},
|
|
132
|
+
required: false,
|
|
133
|
+
target: { attribute: "disabled" },
|
|
134
|
+
description: "Prevents entering or changing edit mode.",
|
|
135
|
+
default: false
|
|
136
|
+
},
|
|
137
|
+
edit: {
|
|
138
|
+
type: {
|
|
139
|
+
kind: "terminal",
|
|
140
|
+
name: "boolean"
|
|
141
|
+
},
|
|
142
|
+
required: false,
|
|
143
|
+
target: { attribute: "edit" },
|
|
144
|
+
description: "Whether edit mode is active initially or when set externally.",
|
|
145
|
+
default: false
|
|
146
|
+
},
|
|
147
|
+
hint: {
|
|
148
|
+
type: {
|
|
149
|
+
kind: "terminal",
|
|
150
|
+
name: "string"
|
|
151
|
+
},
|
|
152
|
+
required: false,
|
|
153
|
+
target: { attribute: "hint" },
|
|
154
|
+
description: "Optional text shown beside the value to signal it is editable (for example \"Edit\").",
|
|
155
|
+
default: ""
|
|
156
|
+
},
|
|
157
|
+
label: {
|
|
158
|
+
type: {
|
|
159
|
+
kind: "terminal",
|
|
160
|
+
name: "string"
|
|
161
|
+
},
|
|
162
|
+
required: false,
|
|
163
|
+
target: { attribute: "aria-label" },
|
|
164
|
+
description: "Accessible name for the editor.",
|
|
165
|
+
default: "Edit value"
|
|
166
|
+
},
|
|
167
|
+
maxLength: {
|
|
168
|
+
type: {
|
|
169
|
+
kind: "terminal",
|
|
170
|
+
name: "number"
|
|
171
|
+
},
|
|
172
|
+
required: false,
|
|
173
|
+
target: { attribute: "maxlength" },
|
|
174
|
+
description: "Maximum draft length; 0 leaves the length unrestricted.",
|
|
175
|
+
default: 0
|
|
176
|
+
},
|
|
177
|
+
placeholder: {
|
|
178
|
+
type: {
|
|
179
|
+
kind: "terminal",
|
|
180
|
+
name: "string"
|
|
181
|
+
},
|
|
182
|
+
required: false,
|
|
183
|
+
target: { attribute: "placeholder" },
|
|
184
|
+
description: "Hint shown in the text input while the draft is empty.",
|
|
185
|
+
default: ""
|
|
186
|
+
},
|
|
187
|
+
required: {
|
|
188
|
+
type: {
|
|
189
|
+
kind: "terminal",
|
|
190
|
+
name: "boolean"
|
|
191
|
+
},
|
|
192
|
+
required: false,
|
|
193
|
+
target: { attribute: "required" },
|
|
194
|
+
description: "Prevent an empty draft from being saved.",
|
|
195
|
+
default: false
|
|
196
|
+
},
|
|
197
|
+
saveLabel: {
|
|
198
|
+
type: {
|
|
199
|
+
kind: "terminal",
|
|
200
|
+
name: "string"
|
|
201
|
+
},
|
|
202
|
+
required: false,
|
|
203
|
+
target: { attribute: "savelabel" },
|
|
204
|
+
description: "Visible text for the Save action.",
|
|
205
|
+
default: "Save"
|
|
206
|
+
},
|
|
207
|
+
value: {
|
|
208
|
+
type: {
|
|
209
|
+
kind: "terminal",
|
|
210
|
+
name: "string"
|
|
211
|
+
},
|
|
212
|
+
required: false,
|
|
213
|
+
target: { attribute: "value" },
|
|
214
|
+
description: "The displayed value, and the text the editor starts from. It is not a form field: nothing is submitted with a form, so a form that needs the value copies\n it from the change event into a field of its own.",
|
|
215
|
+
default: ""
|
|
216
|
+
}
|
|
217
|
+
} };
|
|
106
218
|
const props = __props;
|
|
107
219
|
const checkedProps = computed(() => ({
|
|
108
220
|
actions: checkedProp(props["actions"], {
|
|
109
221
|
kind: "terminal",
|
|
110
222
|
name: "boolean"
|
|
111
|
-
}, false, "actions"
|
|
223
|
+
}, false, "actions"),
|
|
112
224
|
cancelLabel: checkedProp(props["cancelLabel"], {
|
|
113
225
|
kind: "terminal",
|
|
114
226
|
name: "string"
|
|
115
|
-
}, false, "cancelLabel"
|
|
227
|
+
}, false, "cancelLabel"),
|
|
116
228
|
disabled: checkedProp(props["disabled"], {
|
|
117
229
|
kind: "terminal",
|
|
118
230
|
name: "boolean"
|
|
119
|
-
}, false, "disabled"
|
|
231
|
+
}, false, "disabled"),
|
|
120
232
|
edit: checkedProp(props["edit"], {
|
|
121
233
|
kind: "terminal",
|
|
122
234
|
name: "boolean"
|
|
123
|
-
}, false, "edit"
|
|
235
|
+
}, false, "edit"),
|
|
124
236
|
hint: checkedProp(props["hint"], {
|
|
125
237
|
kind: "terminal",
|
|
126
238
|
name: "string"
|
|
127
|
-
}, false, "hint"
|
|
239
|
+
}, false, "hint"),
|
|
128
240
|
label: checkedProp(props["label"], {
|
|
129
241
|
kind: "terminal",
|
|
130
242
|
name: "string"
|
|
131
|
-
}, false, "label"
|
|
243
|
+
}, false, "label"),
|
|
132
244
|
maxLength: checkedProp(props["maxLength"], {
|
|
133
245
|
kind: "terminal",
|
|
134
246
|
name: "number"
|
|
135
|
-
}, false, "maxLength"
|
|
247
|
+
}, false, "maxLength"),
|
|
136
248
|
placeholder: checkedProp(props["placeholder"], {
|
|
137
249
|
kind: "terminal",
|
|
138
250
|
name: "string"
|
|
139
|
-
}, false, "placeholder"
|
|
251
|
+
}, false, "placeholder"),
|
|
140
252
|
required: checkedProp(props["required"], {
|
|
141
253
|
kind: "terminal",
|
|
142
254
|
name: "boolean"
|
|
143
|
-
}, false, "required"
|
|
255
|
+
}, false, "required"),
|
|
144
256
|
saveLabel: checkedProp(props["saveLabel"], {
|
|
145
257
|
kind: "terminal",
|
|
146
258
|
name: "string"
|
|
147
|
-
}, false, "saveLabel"
|
|
259
|
+
}, false, "saveLabel"),
|
|
148
260
|
value: checkedProp(props["value"], {
|
|
149
261
|
kind: "terminal",
|
|
150
262
|
name: "string"
|
|
151
|
-
}, false, "value"
|
|
263
|
+
}, false, "value")
|
|
152
264
|
}));
|
|
153
265
|
checkedProps.value;
|
|
154
266
|
watchSyncEffect(() => {
|
|
@@ -174,6 +286,19 @@ var UiEditable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
174
286
|
const internalEdit = ref(false);
|
|
175
287
|
const internalValue = ref("");
|
|
176
288
|
const draft = ref("");
|
|
289
|
+
let guardedPrevious;
|
|
290
|
+
const guarded = computed(() => {
|
|
291
|
+
if (!(internalValue.value == null || typeof internalValue.value === "string")) return guardedPrevious;
|
|
292
|
+
return guardedPrevious = internalValue.value;
|
|
293
|
+
});
|
|
294
|
+
let guardedBindingPrevious;
|
|
295
|
+
const guardedBinding = computed(() => {
|
|
296
|
+
if (!(internalEdit.value == null || typeof internalEdit.value === "boolean")) return guardedBindingPrevious;
|
|
297
|
+
return guardedBindingPrevious = checkedProps.value.disabled || !internalEdit.value;
|
|
298
|
+
});
|
|
299
|
+
provide("html-next:ui-editable:internalEdit", internalEdit);
|
|
300
|
+
provide("html-next:ui-editable:internalValue", internalValue);
|
|
301
|
+
provide("html-next:ui-editable:draft", draft);
|
|
177
302
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
178
303
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "div")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-editable> has an incompatible root."), {
|
|
179
304
|
name: "HtmlDiagnosticError",
|
|
@@ -222,7 +347,7 @@ var UiEditable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
222
347
|
}
|
|
223
348
|
});
|
|
224
349
|
return (_ctx, _cache) => {
|
|
225
|
-
return openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-editable" }, nativeAttrs(_ctx.$attrs), {
|
|
350
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-editable" }, nativeAttrs(_ctx.$attrs), {
|
|
226
351
|
"data-actions": reflectedProp("actions", "actions", checkedProps.value.actions, void 0, false),
|
|
227
352
|
"data-cancel-label": reflectedProp("cancelLabel", "cancel-label", checkedProps.value.cancelLabel, void 0, false),
|
|
228
353
|
"data-disabled": reflectedProp("disabled", "disabled", checkedProps.value.disabled, void 0, false),
|
|
@@ -242,13 +367,13 @@ var UiEditable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
242
367
|
type: "button",
|
|
243
368
|
disabled: checkedProps.value.disabled ?? void 0,
|
|
244
369
|
ref: "preview"
|
|
245
|
-
}, [createElementVNode("span", _hoisted_4, toDisplayString(
|
|
370
|
+
}, [createElementVNode("span", _hoisted_4, toDisplayString(guarded.value), 1), checkedProps.value.hint ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(checkedProps.value.hint), 1)) : createCommentVNode("v-if", true)], 8, _hoisted_3), withDirectives(createElementVNode("input", {
|
|
246
371
|
class: "input",
|
|
247
372
|
type: "text",
|
|
248
373
|
"aria-label": checkedProps.value.label ?? void 0,
|
|
249
374
|
placeholder: checkedProps.value.placeholder ?? void 0,
|
|
250
375
|
required: checkedProps.value.required ?? void 0,
|
|
251
|
-
disabled:
|
|
376
|
+
disabled: guardedBinding.value,
|
|
252
377
|
ref: "input"
|
|
253
378
|
}, null, 8, _hoisted_6), [[unref(vBindControl), {
|
|
254
379
|
tag: "input",
|
|
@@ -256,9 +381,12 @@ var UiEditable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
256
381
|
value: draft.value,
|
|
257
382
|
nativeProperty: true,
|
|
258
383
|
defaultValue: ""
|
|
259
|
-
}]])]), checkedProps.value.actions ? (openBlock(), createElementBlock("div", _hoisted_7, [createElementVNode("button", _hoisted_8, toDisplayString(checkedProps.value.saveLabel), 1), createElementVNode("button", _hoisted_9, toDisplayString(checkedProps.value.cancelLabel), 1)])) : createCommentVNode("v-if", true)], 16, _hoisted_1)
|
|
384
|
+
}]])]), checkedProps.value.actions ? (openBlock(), createElementBlock("div", _hoisted_7, [createElementVNode("button", _hoisted_8, toDisplayString(checkedProps.value.saveLabel), 1), createElementVNode("button", _hoisted_9, toDisplayString(checkedProps.value.cancelLabel), 1)])) : createCommentVNode("v-if", true)], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
385
|
+
contract: propValidityContract,
|
|
386
|
+
values: { ...checkedProps.value }
|
|
387
|
+
}]]);
|
|
260
388
|
};
|
|
261
389
|
}
|
|
262
|
-
}), [["__scopeId", "data-v-
|
|
390
|
+
}), [["__scopeId", "data-v-4d133148"]]);
|
|
263
391
|
//#endregion
|
|
264
392
|
export { UiEditable_default as t };
|
|
@@ -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 { Fragment, computed, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, h, mergeProps, normalizeClass, normalizeStyle, openBlock, ref, renderList, toDisplayString, unref, useTemplateRef, watchSyncEffect, withCtx, withDirectives } from "vue";
|
|
5
|
+
import { Fragment, computed, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, h, mergeProps, normalizeClass, normalizeStyle, openBlock, provide, ref, renderList, toDisplayString, unref, useTemplateRef, watchSyncEffect, withCtx, withDirectives } from "vue";
|
|
6
6
|
//#region .build/vue/UiEditorInsertTableGrid.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var _hoisted_1 = [
|
|
8
8
|
"hidden",
|
|
@@ -49,24 +49,66 @@ var UiEditorInsertTableGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
49
49
|
},
|
|
50
50
|
emits: ["insert"],
|
|
51
51
|
setup(__props, { emit: __emit }) {
|
|
52
|
+
const propValidityContract = { props: {
|
|
53
|
+
headerRow: {
|
|
54
|
+
type: {
|
|
55
|
+
kind: "terminal",
|
|
56
|
+
name: "boolean"
|
|
57
|
+
},
|
|
58
|
+
required: false,
|
|
59
|
+
target: { attribute: "headerrow" },
|
|
60
|
+
description: "Whether table insertion initially includes a header row.",
|
|
61
|
+
default: false
|
|
62
|
+
},
|
|
63
|
+
maxCols: {
|
|
64
|
+
type: {
|
|
65
|
+
kind: "terminal",
|
|
66
|
+
name: "integer"
|
|
67
|
+
},
|
|
68
|
+
required: false,
|
|
69
|
+
target: { attribute: "maxcols" },
|
|
70
|
+
description: "The most columns the grid offers (at most 10).",
|
|
71
|
+
default: 8
|
|
72
|
+
},
|
|
73
|
+
maxRows: {
|
|
74
|
+
type: {
|
|
75
|
+
kind: "terminal",
|
|
76
|
+
name: "integer"
|
|
77
|
+
},
|
|
78
|
+
required: false,
|
|
79
|
+
target: { attribute: "maxrows" },
|
|
80
|
+
description: "The most rows the grid offers (at most 10).",
|
|
81
|
+
default: 8
|
|
82
|
+
},
|
|
83
|
+
open: {
|
|
84
|
+
type: {
|
|
85
|
+
kind: "terminal",
|
|
86
|
+
name: "boolean"
|
|
87
|
+
},
|
|
88
|
+
required: false,
|
|
89
|
+
target: { attribute: "open" },
|
|
90
|
+
description: "Whether the grid is shown.",
|
|
91
|
+
default: false
|
|
92
|
+
}
|
|
93
|
+
} };
|
|
52
94
|
const props = __props;
|
|
53
95
|
const checkedProps = computed(() => ({
|
|
54
96
|
headerRow: checkedProp(props["headerRow"], {
|
|
55
97
|
kind: "terminal",
|
|
56
98
|
name: "boolean"
|
|
57
|
-
}, false, "headerRow"
|
|
99
|
+
}, false, "headerRow"),
|
|
58
100
|
maxCols: checkedProp(props["maxCols"], {
|
|
59
101
|
kind: "terminal",
|
|
60
102
|
name: "integer"
|
|
61
|
-
}, false, "maxCols"
|
|
103
|
+
}, false, "maxCols"),
|
|
62
104
|
maxRows: checkedProp(props["maxRows"], {
|
|
63
105
|
kind: "terminal",
|
|
64
106
|
name: "integer"
|
|
65
|
-
}, false, "maxRows"
|
|
107
|
+
}, false, "maxRows"),
|
|
66
108
|
open: checkedProp(props["open"], {
|
|
67
109
|
kind: "terminal",
|
|
68
110
|
name: "boolean"
|
|
69
|
-
}, false, "open"
|
|
111
|
+
}, false, "open")
|
|
70
112
|
}));
|
|
71
113
|
checkedProps.value;
|
|
72
114
|
watchSyncEffect(() => {
|
|
@@ -118,6 +160,16 @@ var UiEditorInsertTableGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
118
160
|
const cols = ref(8);
|
|
119
161
|
const hint = ref("");
|
|
120
162
|
const withHeaderRow = ref(false);
|
|
163
|
+
let guardedPrevious;
|
|
164
|
+
const guarded = computed(() => {
|
|
165
|
+
if (!(hint.value == null || typeof hint.value === "string")) return guardedPrevious;
|
|
166
|
+
return guardedPrevious = hint.value;
|
|
167
|
+
});
|
|
168
|
+
provide("html-next:ui-editor-insert-table-grid:cells", cells);
|
|
169
|
+
provide("html-next:ui-editor-insert-table-grid:rows", rows);
|
|
170
|
+
provide("html-next:ui-editor-insert-table-grid:cols", cols);
|
|
171
|
+
provide("html-next:ui-editor-insert-table-grid:hint", hint);
|
|
172
|
+
provide("html-next:ui-editor-insert-table-grid:withHeaderRow", withHeaderRow);
|
|
121
173
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
122
174
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "div")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-editor-insert-table-grid> has an incompatible root."), {
|
|
123
175
|
name: "HtmlDiagnosticError",
|
|
@@ -180,7 +232,7 @@ var UiEditorInsertTableGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
180
232
|
return items;
|
|
181
233
|
}
|
|
182
234
|
return (_ctx, _cache) => {
|
|
183
|
-
return openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-editor-insert-table-grid" }, nativeAttrs(_ctx.$attrs), {
|
|
235
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-editor-insert-table-grid" }, nativeAttrs(_ctx.$attrs), {
|
|
184
236
|
hidden: !checkedProps.value.open,
|
|
185
237
|
"data-header-row": reflectedProp("headerRow", "header-row", checkedProps.value.headerRow, void 0, false),
|
|
186
238
|
"data-max-cols": reflectedProp("maxCols", "max-cols", checkedProps.value.maxCols, void 0, false),
|
|
@@ -189,7 +241,7 @@ var UiEditorInsertTableGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
189
241
|
ref_key: "root",
|
|
190
242
|
ref: root
|
|
191
243
|
}), [
|
|
192
|
-
createElementVNode("p", _hoisted_2, toDisplayString(
|
|
244
|
+
createElementVNode("p", _hoisted_2, toDisplayString(guarded.value), 1),
|
|
193
245
|
createElementVNode("div", {
|
|
194
246
|
class: "grid",
|
|
195
247
|
role: "group",
|
|
@@ -221,9 +273,12 @@ var UiEditorInsertTableGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
221
273
|
nativeProperty: true,
|
|
222
274
|
defaultChecked: false
|
|
223
275
|
}]]), _cache[0] || (_cache[0] = createTextVNode(" Header row", -1))])
|
|
224
|
-
], 16, _hoisted_1)
|
|
276
|
+
], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
277
|
+
contract: propValidityContract,
|
|
278
|
+
values: { ...checkedProps.value }
|
|
279
|
+
}]]);
|
|
225
280
|
};
|
|
226
281
|
}
|
|
227
|
-
}), [["__scopeId", "data-v-
|
|
282
|
+
}), [["__scopeId", "data-v-1dfb5104"]]);
|
|
228
283
|
//#endregion
|
|
229
284
|
export { UiEditorInsertTableGrid_default as t };
|