@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
package/vue/chunks/UiText.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 { n as preserveRootFocus } from "./host.js";
|
|
3
|
-
import { t as checkedProp } from "./props.js";
|
|
4
|
-
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, useTemplateRef, watchSyncEffect } from "vue";
|
|
3
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
4
|
+
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiText.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = [
|
|
7
7
|
"data-align",
|
|
@@ -149,72 +149,150 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
151
|
setup(__props) {
|
|
152
|
+
const propValidityContract = { props: {
|
|
153
|
+
align: {
|
|
154
|
+
type: {
|
|
155
|
+
kind: "terminal",
|
|
156
|
+
name: "keyword"
|
|
157
|
+
},
|
|
158
|
+
required: false,
|
|
159
|
+
target: { attribute: "align" },
|
|
160
|
+
description: "Aligns the text within its line.",
|
|
161
|
+
values: ["start", "center"],
|
|
162
|
+
default: "start"
|
|
163
|
+
},
|
|
164
|
+
as: {
|
|
165
|
+
type: {
|
|
166
|
+
kind: "terminal",
|
|
167
|
+
name: "keyword"
|
|
168
|
+
},
|
|
169
|
+
required: false,
|
|
170
|
+
target: { attribute: "as" },
|
|
171
|
+
description: "The native element the text renders: a paragraph by default, inline span, small, or strong within a line, a div for a block, a label for a control, or a\n heading, h2 to h6, below a Page Header's h1 and a Section's h2. A heading takes its size and weight from size and weight, like any other text.",
|
|
172
|
+
values: [
|
|
173
|
+
"p",
|
|
174
|
+
"span",
|
|
175
|
+
"div",
|
|
176
|
+
"small",
|
|
177
|
+
"strong",
|
|
178
|
+
"label",
|
|
179
|
+
"h2",
|
|
180
|
+
"h3",
|
|
181
|
+
"h4",
|
|
182
|
+
"h5",
|
|
183
|
+
"h6"
|
|
184
|
+
],
|
|
185
|
+
default: "p"
|
|
186
|
+
},
|
|
187
|
+
size: {
|
|
188
|
+
type: {
|
|
189
|
+
kind: "terminal",
|
|
190
|
+
name: "keyword"
|
|
191
|
+
},
|
|
192
|
+
required: false,
|
|
193
|
+
target: { attribute: "size" },
|
|
194
|
+
description: "The step on the type scale. inherit (the default) keeps the size of the text around it; xs is for fine print, sm for supporting text such as help and\n metadata, md is body text, and lg is a lead paragraph.",
|
|
195
|
+
values: [
|
|
196
|
+
"inherit",
|
|
197
|
+
"xs",
|
|
198
|
+
"sm",
|
|
199
|
+
"md",
|
|
200
|
+
"lg"
|
|
201
|
+
],
|
|
202
|
+
default: "inherit"
|
|
203
|
+
},
|
|
204
|
+
tone: {
|
|
205
|
+
type: {
|
|
206
|
+
kind: "terminal",
|
|
207
|
+
name: "keyword"
|
|
208
|
+
},
|
|
209
|
+
required: false,
|
|
210
|
+
target: { attribute: "tone" },
|
|
211
|
+
description: "The text's colour, by meaning. secondary is supporting prose such as a description; muted is quieter still, for metadata and hints; accent draws the eye;\n danger states an error; success confirms one; info marks something moving forward normally; warning marks something that needs attention. Colour alone\n does not carry the meaning, so the words must say it too.",
|
|
212
|
+
values: [
|
|
213
|
+
"default",
|
|
214
|
+
"secondary",
|
|
215
|
+
"muted",
|
|
216
|
+
"accent",
|
|
217
|
+
"danger",
|
|
218
|
+
"success",
|
|
219
|
+
"info",
|
|
220
|
+
"warning"
|
|
221
|
+
],
|
|
222
|
+
default: "default"
|
|
223
|
+
},
|
|
224
|
+
truncate: {
|
|
225
|
+
type: {
|
|
226
|
+
kind: "terminal",
|
|
227
|
+
name: "boolean"
|
|
228
|
+
},
|
|
229
|
+
required: false,
|
|
230
|
+
target: { attribute: "truncate" },
|
|
231
|
+
description: "Keeps the text on one line, ending in an ellipsis when it does not fit.",
|
|
232
|
+
default: false
|
|
233
|
+
},
|
|
234
|
+
variant: {
|
|
235
|
+
type: {
|
|
236
|
+
kind: "terminal",
|
|
237
|
+
name: "keyword"
|
|
238
|
+
},
|
|
239
|
+
required: false,
|
|
240
|
+
target: { attribute: "variant" },
|
|
241
|
+
description: "body is running text. eyebrow is a short, uppercase, tracked label that names what follows, such as a group of links; code sets a value to copy or read\n exactly, such as an address, in the monospace face.",
|
|
242
|
+
values: [
|
|
243
|
+
"body",
|
|
244
|
+
"eyebrow",
|
|
245
|
+
"code"
|
|
246
|
+
],
|
|
247
|
+
default: "body"
|
|
248
|
+
},
|
|
249
|
+
weight: {
|
|
250
|
+
type: {
|
|
251
|
+
kind: "terminal",
|
|
252
|
+
name: "keyword"
|
|
253
|
+
},
|
|
254
|
+
required: false,
|
|
255
|
+
target: { attribute: "weight" },
|
|
256
|
+
description: "The weight. inherit keeps the surrounding weight; medium and semibold emphasise a name or a figure.",
|
|
257
|
+
values: [
|
|
258
|
+
"inherit",
|
|
259
|
+
"normal",
|
|
260
|
+
"medium",
|
|
261
|
+
"semibold"
|
|
262
|
+
],
|
|
263
|
+
default: "inherit"
|
|
264
|
+
}
|
|
265
|
+
} };
|
|
152
266
|
const props = __props;
|
|
153
267
|
const checkedProps = computed(() => ({
|
|
154
268
|
align: checkedProp(props["align"], {
|
|
155
269
|
kind: "terminal",
|
|
156
270
|
name: "keyword"
|
|
157
|
-
}, false, "align"
|
|
271
|
+
}, false, "align"),
|
|
158
272
|
as: checkedProp(props["as"], {
|
|
159
273
|
kind: "terminal",
|
|
160
274
|
name: "keyword"
|
|
161
|
-
}, false, "as",
|
|
162
|
-
"p",
|
|
163
|
-
"span",
|
|
164
|
-
"div",
|
|
165
|
-
"small",
|
|
166
|
-
"strong",
|
|
167
|
-
"label",
|
|
168
|
-
"h2",
|
|
169
|
-
"h3",
|
|
170
|
-
"h4",
|
|
171
|
-
"h5",
|
|
172
|
-
"h6"
|
|
173
|
-
]),
|
|
275
|
+
}, false, "as"),
|
|
174
276
|
size: checkedProp(props["size"], {
|
|
175
277
|
kind: "terminal",
|
|
176
278
|
name: "keyword"
|
|
177
|
-
}, false, "size",
|
|
178
|
-
"inherit",
|
|
179
|
-
"xs",
|
|
180
|
-
"sm",
|
|
181
|
-
"md",
|
|
182
|
-
"lg"
|
|
183
|
-
]),
|
|
279
|
+
}, false, "size"),
|
|
184
280
|
tone: checkedProp(props["tone"], {
|
|
185
281
|
kind: "terminal",
|
|
186
282
|
name: "keyword"
|
|
187
|
-
}, false, "tone",
|
|
188
|
-
"default",
|
|
189
|
-
"secondary",
|
|
190
|
-
"muted",
|
|
191
|
-
"accent",
|
|
192
|
-
"danger",
|
|
193
|
-
"success",
|
|
194
|
-
"info",
|
|
195
|
-
"warning"
|
|
196
|
-
]),
|
|
283
|
+
}, false, "tone"),
|
|
197
284
|
truncate: checkedProp(props["truncate"], {
|
|
198
285
|
kind: "terminal",
|
|
199
286
|
name: "boolean"
|
|
200
|
-
}, false, "truncate"
|
|
287
|
+
}, false, "truncate"),
|
|
201
288
|
variant: checkedProp(props["variant"], {
|
|
202
289
|
kind: "terminal",
|
|
203
290
|
name: "keyword"
|
|
204
|
-
}, false, "variant",
|
|
205
|
-
"body",
|
|
206
|
-
"eyebrow",
|
|
207
|
-
"code"
|
|
208
|
-
]),
|
|
291
|
+
}, false, "variant"),
|
|
209
292
|
weight: checkedProp(props["weight"], {
|
|
210
293
|
kind: "terminal",
|
|
211
294
|
name: "keyword"
|
|
212
|
-
}, false, "weight"
|
|
213
|
-
"inherit",
|
|
214
|
-
"normal",
|
|
215
|
-
"medium",
|
|
216
|
-
"semibold"
|
|
217
|
-
])
|
|
295
|
+
}, false, "weight")
|
|
218
296
|
}));
|
|
219
297
|
checkedProps.value;
|
|
220
298
|
watchSyncEffect(() => {
|
|
@@ -258,7 +336,7 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
258
336
|
checkedProps.value.align != null && `align=${encodeURIComponent(checkedProps.value.align)}`
|
|
259
337
|
].filter(Boolean).join(" "));
|
|
260
338
|
return (_ctx, _cache) => {
|
|
261
|
-
return checkedProps.value.as === "span" ? (openBlock(), createElementBlock("span", mergeProps({
|
|
339
|
+
return checkedProps.value.as === "span" ? withDirectives((openBlock(), createElementBlock("span", mergeProps({
|
|
262
340
|
key: 0,
|
|
263
341
|
"data-component": "ui-text"
|
|
264
342
|
}, nativeAttrs(_ctx.$attrs), {
|
|
@@ -271,7 +349,10 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
271
349
|
"data-weight": reflectedProp("weight", "weight", checkedProps.value.weight, void 0, false),
|
|
272
350
|
"data-ui-text-state": hostState.value || void 0,
|
|
273
351
|
ref: "@html-next/root"
|
|
274
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1))
|
|
352
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
353
|
+
contract: propValidityContract,
|
|
354
|
+
values: { ...checkedProps.value }
|
|
355
|
+
}]]) : checkedProps.value.as === "div" ? withDirectives((openBlock(), createElementBlock("div", mergeProps({
|
|
275
356
|
key: 1,
|
|
276
357
|
"data-component": "ui-text"
|
|
277
358
|
}, nativeAttrs(_ctx.$attrs), {
|
|
@@ -284,7 +365,10 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
284
365
|
"data-weight": reflectedProp("weight", "weight", checkedProps.value.weight, void 0, false),
|
|
285
366
|
"data-ui-text-state": hostState.value || void 0,
|
|
286
367
|
ref: "@html-next/root"
|
|
287
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_2))
|
|
368
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_2)), [[unref(vPropValidity), {
|
|
369
|
+
contract: propValidityContract,
|
|
370
|
+
values: { ...checkedProps.value }
|
|
371
|
+
}]]) : checkedProps.value.as === "small" ? withDirectives((openBlock(), createElementBlock("small", mergeProps({
|
|
288
372
|
key: 2,
|
|
289
373
|
"data-component": "ui-text"
|
|
290
374
|
}, nativeAttrs(_ctx.$attrs), {
|
|
@@ -297,7 +381,10 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
297
381
|
"data-weight": reflectedProp("weight", "weight", checkedProps.value.weight, void 0, false),
|
|
298
382
|
"data-ui-text-state": hostState.value || void 0,
|
|
299
383
|
ref: "@html-next/root"
|
|
300
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_3))
|
|
384
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_3)), [[unref(vPropValidity), {
|
|
385
|
+
contract: propValidityContract,
|
|
386
|
+
values: { ...checkedProps.value }
|
|
387
|
+
}]]) : checkedProps.value.as === "strong" ? withDirectives((openBlock(), createElementBlock("strong", mergeProps({
|
|
301
388
|
key: 3,
|
|
302
389
|
"data-component": "ui-text"
|
|
303
390
|
}, nativeAttrs(_ctx.$attrs), {
|
|
@@ -310,7 +397,10 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
310
397
|
"data-weight": reflectedProp("weight", "weight", checkedProps.value.weight, void 0, false),
|
|
311
398
|
"data-ui-text-state": hostState.value || void 0,
|
|
312
399
|
ref: "@html-next/root"
|
|
313
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_4))
|
|
400
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_4)), [[unref(vPropValidity), {
|
|
401
|
+
contract: propValidityContract,
|
|
402
|
+
values: { ...checkedProps.value }
|
|
403
|
+
}]]) : checkedProps.value.as === "label" ? withDirectives((openBlock(), createElementBlock("label", mergeProps({
|
|
314
404
|
key: 4,
|
|
315
405
|
"data-component": "ui-text"
|
|
316
406
|
}, nativeAttrs(_ctx.$attrs), {
|
|
@@ -323,7 +413,10 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
323
413
|
"data-weight": reflectedProp("weight", "weight", checkedProps.value.weight, void 0, false),
|
|
324
414
|
"data-ui-text-state": hostState.value || void 0,
|
|
325
415
|
ref: "@html-next/root"
|
|
326
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_5))
|
|
416
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_5)), [[unref(vPropValidity), {
|
|
417
|
+
contract: propValidityContract,
|
|
418
|
+
values: { ...checkedProps.value }
|
|
419
|
+
}]]) : checkedProps.value.as === "h2" ? withDirectives((openBlock(), createElementBlock("h2", mergeProps({
|
|
327
420
|
key: 5,
|
|
328
421
|
"data-component": "ui-text"
|
|
329
422
|
}, nativeAttrs(_ctx.$attrs), {
|
|
@@ -336,7 +429,10 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
336
429
|
"data-weight": reflectedProp("weight", "weight", checkedProps.value.weight, void 0, false),
|
|
337
430
|
"data-ui-text-state": hostState.value || void 0,
|
|
338
431
|
ref: "@html-next/root"
|
|
339
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_6))
|
|
432
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_6)), [[unref(vPropValidity), {
|
|
433
|
+
contract: propValidityContract,
|
|
434
|
+
values: { ...checkedProps.value }
|
|
435
|
+
}]]) : checkedProps.value.as === "h3" ? withDirectives((openBlock(), createElementBlock("h3", mergeProps({
|
|
340
436
|
key: 6,
|
|
341
437
|
"data-component": "ui-text"
|
|
342
438
|
}, nativeAttrs(_ctx.$attrs), {
|
|
@@ -349,7 +445,10 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
349
445
|
"data-weight": reflectedProp("weight", "weight", checkedProps.value.weight, void 0, false),
|
|
350
446
|
"data-ui-text-state": hostState.value || void 0,
|
|
351
447
|
ref: "@html-next/root"
|
|
352
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_7))
|
|
448
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_7)), [[unref(vPropValidity), {
|
|
449
|
+
contract: propValidityContract,
|
|
450
|
+
values: { ...checkedProps.value }
|
|
451
|
+
}]]) : checkedProps.value.as === "h4" ? withDirectives((openBlock(), createElementBlock("h4", mergeProps({
|
|
353
452
|
key: 7,
|
|
354
453
|
"data-component": "ui-text"
|
|
355
454
|
}, nativeAttrs(_ctx.$attrs), {
|
|
@@ -362,7 +461,10 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
362
461
|
"data-weight": reflectedProp("weight", "weight", checkedProps.value.weight, void 0, false),
|
|
363
462
|
"data-ui-text-state": hostState.value || void 0,
|
|
364
463
|
ref: "@html-next/root"
|
|
365
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_8))
|
|
464
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_8)), [[unref(vPropValidity), {
|
|
465
|
+
contract: propValidityContract,
|
|
466
|
+
values: { ...checkedProps.value }
|
|
467
|
+
}]]) : checkedProps.value.as === "h5" ? withDirectives((openBlock(), createElementBlock("h5", mergeProps({
|
|
366
468
|
key: 8,
|
|
367
469
|
"data-component": "ui-text"
|
|
368
470
|
}, nativeAttrs(_ctx.$attrs), {
|
|
@@ -375,7 +477,10 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
375
477
|
"data-weight": reflectedProp("weight", "weight", checkedProps.value.weight, void 0, false),
|
|
376
478
|
"data-ui-text-state": hostState.value || void 0,
|
|
377
479
|
ref: "@html-next/root"
|
|
378
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_9))
|
|
480
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_9)), [[unref(vPropValidity), {
|
|
481
|
+
contract: propValidityContract,
|
|
482
|
+
values: { ...checkedProps.value }
|
|
483
|
+
}]]) : checkedProps.value.as === "h6" ? withDirectives((openBlock(), createElementBlock("h6", mergeProps({
|
|
379
484
|
key: 9,
|
|
380
485
|
"data-component": "ui-text"
|
|
381
486
|
}, nativeAttrs(_ctx.$attrs), {
|
|
@@ -388,7 +493,10 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
388
493
|
"data-weight": reflectedProp("weight", "weight", checkedProps.value.weight, void 0, false),
|
|
389
494
|
"data-ui-text-state": hostState.value || void 0,
|
|
390
495
|
ref: "@html-next/root"
|
|
391
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_10))
|
|
496
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_10)), [[unref(vPropValidity), {
|
|
497
|
+
contract: propValidityContract,
|
|
498
|
+
values: { ...checkedProps.value }
|
|
499
|
+
}]]) : withDirectives((openBlock(), createElementBlock("p", mergeProps({
|
|
392
500
|
key: 10,
|
|
393
501
|
"data-component": "ui-text"
|
|
394
502
|
}, nativeAttrs(_ctx.$attrs), {
|
|
@@ -401,9 +509,12 @@ var UiText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
401
509
|
"data-weight": reflectedProp("weight", "weight", checkedProps.value.weight, void 0, false),
|
|
402
510
|
"data-ui-text-state": hostState.value || void 0,
|
|
403
511
|
ref: "@html-next/root"
|
|
404
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_11))
|
|
512
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_11)), [[unref(vPropValidity), {
|
|
513
|
+
contract: propValidityContract,
|
|
514
|
+
values: { ...checkedProps.value }
|
|
515
|
+
}]]);
|
|
405
516
|
};
|
|
406
517
|
}
|
|
407
|
-
}), [["__scopeId", "data-v-
|
|
518
|
+
}), [["__scopeId", "data-v-2d046497"]]);
|
|
408
519
|
//#endregion
|
|
409
520
|
export { UiText_default as t };
|
package/vue/chunks/UiTextarea.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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 { n as readBoundControl, r as vBindControl } from "./control.js";
|
|
5
5
|
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, unref, watchSyncEffect, withDirectives } from "vue";
|
|
6
6
|
//#region .build/vue/UiTextarea.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -62,48 +62,130 @@ var UiTextarea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
62
62
|
},
|
|
63
63
|
emits: ["update:modelValue"],
|
|
64
64
|
setup(__props, { emit: __emit }) {
|
|
65
|
+
const propValidityContract = { props: {
|
|
66
|
+
autosize: {
|
|
67
|
+
type: {
|
|
68
|
+
kind: "terminal",
|
|
69
|
+
name: "boolean"
|
|
70
|
+
},
|
|
71
|
+
required: false,
|
|
72
|
+
target: { attribute: "autosize" },
|
|
73
|
+
description: "Grow with the text while keeping rows as the minimum visible height. Uses CSS field sizing where supported; other browsers keep the native rows\n behavior.",
|
|
74
|
+
default: false
|
|
75
|
+
},
|
|
76
|
+
disabled: {
|
|
77
|
+
type: {
|
|
78
|
+
kind: "terminal",
|
|
79
|
+
name: "boolean"
|
|
80
|
+
},
|
|
81
|
+
required: false,
|
|
82
|
+
target: { attribute: "disabled" },
|
|
83
|
+
description: "Prevents editing and form submission.",
|
|
84
|
+
default: false
|
|
85
|
+
},
|
|
86
|
+
invalid: {
|
|
87
|
+
type: {
|
|
88
|
+
kind: "terminal",
|
|
89
|
+
name: "boolean"
|
|
90
|
+
},
|
|
91
|
+
required: false,
|
|
92
|
+
target: { attribute: "aria-invalid" },
|
|
93
|
+
description: "Exposes invalid state to assistive technology and styling.",
|
|
94
|
+
default: false
|
|
95
|
+
},
|
|
96
|
+
readonly: {
|
|
97
|
+
type: {
|
|
98
|
+
kind: "terminal",
|
|
99
|
+
name: "boolean"
|
|
100
|
+
},
|
|
101
|
+
required: false,
|
|
102
|
+
target: { attribute: "readonly" },
|
|
103
|
+
description: "Allows selection without allowing edits.",
|
|
104
|
+
default: false
|
|
105
|
+
},
|
|
106
|
+
required: {
|
|
107
|
+
type: {
|
|
108
|
+
kind: "terminal",
|
|
109
|
+
name: "boolean"
|
|
110
|
+
},
|
|
111
|
+
required: false,
|
|
112
|
+
target: { attribute: "required" },
|
|
113
|
+
description: "Marks the control as required for form validation.",
|
|
114
|
+
default: false
|
|
115
|
+
},
|
|
116
|
+
rows: {
|
|
117
|
+
type: {
|
|
118
|
+
kind: "terminal",
|
|
119
|
+
name: "integer"
|
|
120
|
+
},
|
|
121
|
+
required: false,
|
|
122
|
+
target: { attribute: "rows" },
|
|
123
|
+
description: "Initial number of visible text rows.",
|
|
124
|
+
default: 4
|
|
125
|
+
},
|
|
126
|
+
size: {
|
|
127
|
+
type: {
|
|
128
|
+
kind: "terminal",
|
|
129
|
+
name: "keyword"
|
|
130
|
+
},
|
|
131
|
+
required: false,
|
|
132
|
+
target: { attribute: "size" },
|
|
133
|
+
description: "Padding and type size, matching Input's sizes so a textarea sits with fields of the same size; rows sets its height. sm has tighter padding and smaller\n text, for compact forms; lg has roomier padding. Under a coarse pointer, sm keeps body-size text.",
|
|
134
|
+
values: [
|
|
135
|
+
"sm",
|
|
136
|
+
"md",
|
|
137
|
+
"lg"
|
|
138
|
+
],
|
|
139
|
+
default: "md"
|
|
140
|
+
},
|
|
141
|
+
value: {
|
|
142
|
+
type: {
|
|
143
|
+
kind: "terminal",
|
|
144
|
+
name: "string"
|
|
145
|
+
},
|
|
146
|
+
required: false,
|
|
147
|
+
target: { attribute: "value" },
|
|
148
|
+
description: "The textarea's text. Setting or changing it replaces the live text; between changes the user's typing stands, so follow input events to keep it in step. It\n is also the textarea's default, so a form reset returns to it."
|
|
149
|
+
}
|
|
150
|
+
} };
|
|
65
151
|
const props = __props;
|
|
66
152
|
const checkedProps = computed(() => ({
|
|
67
153
|
autosize: checkedProp(props["autosize"], {
|
|
68
154
|
kind: "terminal",
|
|
69
155
|
name: "boolean"
|
|
70
|
-
}, false, "autosize"
|
|
156
|
+
}, false, "autosize"),
|
|
71
157
|
disabled: checkedProp(props["disabled"], {
|
|
72
158
|
kind: "terminal",
|
|
73
159
|
name: "boolean"
|
|
74
|
-
}, false, "disabled"
|
|
160
|
+
}, false, "disabled"),
|
|
75
161
|
invalid: checkedProp(props["invalid"], {
|
|
76
162
|
kind: "terminal",
|
|
77
163
|
name: "boolean"
|
|
78
|
-
}, false, "invalid"
|
|
164
|
+
}, false, "invalid"),
|
|
79
165
|
readonly: checkedProp(props["readonly"], {
|
|
80
166
|
kind: "terminal",
|
|
81
167
|
name: "boolean"
|
|
82
|
-
}, false, "readonly"
|
|
168
|
+
}, false, "readonly"),
|
|
83
169
|
required: checkedProp(props["required"], {
|
|
84
170
|
kind: "terminal",
|
|
85
171
|
name: "boolean"
|
|
86
|
-
}, false, "required"
|
|
172
|
+
}, false, "required"),
|
|
87
173
|
rows: checkedProp(props["rows"], {
|
|
88
174
|
kind: "terminal",
|
|
89
175
|
name: "integer"
|
|
90
|
-
}, false, "rows"
|
|
176
|
+
}, false, "rows"),
|
|
91
177
|
size: checkedProp(props["size"], {
|
|
92
178
|
kind: "terminal",
|
|
93
179
|
name: "keyword"
|
|
94
|
-
}, false, "size",
|
|
95
|
-
"sm",
|
|
96
|
-
"md",
|
|
97
|
-
"lg"
|
|
98
|
-
]),
|
|
180
|
+
}, false, "size"),
|
|
99
181
|
value: checkedProp(props["value"], {
|
|
100
182
|
kind: "terminal",
|
|
101
183
|
name: "string"
|
|
102
|
-
}, false, "value"
|
|
184
|
+
}, false, "value"),
|
|
103
185
|
modelValue: checkedProp(props.modelValue, {
|
|
104
186
|
kind: "terminal",
|
|
105
187
|
name: "string"
|
|
106
|
-
}, false, "modelValue"
|
|
188
|
+
}, false, "modelValue")
|
|
107
189
|
}));
|
|
108
190
|
checkedProps.value;
|
|
109
191
|
watchSyncEffect(() => {
|
|
@@ -172,7 +254,10 @@ var UiTextarea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
172
254
|
"data-ui-textarea-state": hostState.value || void 0,
|
|
173
255
|
ref_key: "root",
|
|
174
256
|
ref: root
|
|
175
|
-
}), null, 16, _hoisted_1)), [[unref(
|
|
257
|
+
}), null, 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
258
|
+
contract: propValidityContract,
|
|
259
|
+
values: { ...checkedProps.value }
|
|
260
|
+
}], [unref(vBindControl), {
|
|
176
261
|
tag: "textarea",
|
|
177
262
|
name: "value",
|
|
178
263
|
value: model.value,
|
|
@@ -180,6 +265,6 @@ var UiTextarea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
180
265
|
}]]);
|
|
181
266
|
};
|
|
182
267
|
}
|
|
183
|
-
}), [["__scopeId", "data-v-
|
|
268
|
+
}), [["__scopeId", "data-v-7b06d21e"]]);
|
|
184
269
|
//#endregion
|
|
185
270
|
export { UiTextarea_default as t };
|
package/vue/chunks/UiToast.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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 { t as UiIcon_default } from "./UiIcon.js";
|
|
5
5
|
import { t as UiIconButton_default } from "./UiIconButton.js";
|
|
6
|
-
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, renderSlot, useTemplateRef, watchSyncEffect, withCtx } from "vue";
|
|
6
|
+
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, renderSlot, unref, useTemplateRef, watchSyncEffect, withCtx, withDirectives } from "vue";
|
|
7
7
|
//#region .build/vue/UiToast.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var _hoisted_1 = [
|
|
9
9
|
"role",
|
|
@@ -33,22 +33,45 @@ var UiToast_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["dismiss"],
|
|
35
35
|
setup(__props, { emit: __emit }) {
|
|
36
|
+
const propValidityContract = { props: {
|
|
37
|
+
duration: {
|
|
38
|
+
type: {
|
|
39
|
+
kind: "terminal",
|
|
40
|
+
name: "number"
|
|
41
|
+
},
|
|
42
|
+
required: false,
|
|
43
|
+
target: { attribute: "duration" },
|
|
44
|
+
description: "Milliseconds before requesting dismissal; 0 keeps the toast until an action dismisses it. The timer pauses on hover or focus.",
|
|
45
|
+
default: 0
|
|
46
|
+
},
|
|
47
|
+
tone: {
|
|
48
|
+
type: {
|
|
49
|
+
kind: "terminal",
|
|
50
|
+
name: "keyword"
|
|
51
|
+
},
|
|
52
|
+
required: false,
|
|
53
|
+
target: { attribute: "tone" },
|
|
54
|
+
description: "Semantic accent for this message. Danger uses an assertive alert role; the other tones use polite status semantics.",
|
|
55
|
+
values: [
|
|
56
|
+
"neutral",
|
|
57
|
+
"info",
|
|
58
|
+
"success",
|
|
59
|
+
"warning",
|
|
60
|
+
"danger"
|
|
61
|
+
],
|
|
62
|
+
default: "neutral"
|
|
63
|
+
}
|
|
64
|
+
} };
|
|
36
65
|
const props = __props;
|
|
37
66
|
const checkedProps = computed(() => ({
|
|
38
67
|
duration: checkedProp(props["duration"], {
|
|
39
68
|
kind: "terminal",
|
|
40
69
|
name: "number"
|
|
41
|
-
}, false, "duration"
|
|
70
|
+
}, false, "duration"),
|
|
42
71
|
tone: checkedProp(props["tone"], {
|
|
43
72
|
kind: "terminal",
|
|
44
73
|
name: "keyword"
|
|
45
|
-
}, false, "tone"
|
|
46
|
-
"neutral",
|
|
47
|
-
"info",
|
|
48
|
-
"success",
|
|
49
|
-
"warning",
|
|
50
|
-
"danger"
|
|
51
|
-
])
|
|
74
|
+
}, false, "tone")
|
|
52
75
|
}));
|
|
53
76
|
checkedProps.value;
|
|
54
77
|
watchSyncEffect(() => {
|
|
@@ -105,7 +128,7 @@ var UiToast_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
105
128
|
return value === true ? "" : text(value);
|
|
106
129
|
}
|
|
107
130
|
return (_ctx, _cache) => {
|
|
108
|
-
return openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-toast" }, nativeAttrs(_ctx.$attrs), {
|
|
131
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-toast" }, nativeAttrs(_ctx.$attrs), {
|
|
109
132
|
role: attribute({
|
|
110
133
|
neutral: "status",
|
|
111
134
|
info: "status",
|
|
@@ -131,9 +154,12 @@ var UiToast_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
131
154
|
default: withCtx(() => [createVNode(UiIcon_default, { name: "x" })]),
|
|
132
155
|
_: 1
|
|
133
156
|
})
|
|
134
|
-
], 16, _hoisted_1)
|
|
157
|
+
], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
158
|
+
contract: propValidityContract,
|
|
159
|
+
values: { ...checkedProps.value }
|
|
160
|
+
}]]);
|
|
135
161
|
};
|
|
136
162
|
}
|
|
137
|
-
}), [["__scopeId", "data-v-
|
|
163
|
+
}), [["__scopeId", "data-v-bbd857f1"]]);
|
|
138
164
|
//#endregion
|
|
139
165
|
export { UiToast_default as t };
|