@threadlabs/looma 0.21.5 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ui-affordance-scope/ui-affordance-scope.html +1 -1
- package/components/ui-avatar/ui-avatar.html +4 -4
- package/components/ui-avatar-group/ui-avatar-group.html +14 -4
- package/components/ui-avatar-group/ui-avatar-group.js +1 -1
- package/components/ui-button/ui-button.html +10 -7
- package/components/ui-checkbox/ui-checkbox.html +1 -1
- package/components/ui-combobox/ui-combobox.html +18 -18
- package/components/ui-context-menu/ui-context-menu.html +1 -1
- package/components/ui-dialog/ui-dialog.html +2 -2
- package/components/ui-disclosure/ui-disclosure.html +4 -4
- package/components/ui-editable/ui-editable.html +3 -3
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +5 -5
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +5 -5
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +3 -3
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +2 -2
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +3 -7
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +6 -6
- package/components/ui-listbox/ui-listbox.html +6 -6
- package/components/ui-menu/ui-menu.html +1 -1
- package/components/ui-menu-item/ui-menu-item.html +1 -1
- package/components/ui-popover/ui-popover.html +1 -1
- package/components/ui-radio/ui-radio.html +1 -1
- package/components/ui-radio-group/ui-radio-group.html +1 -1
- package/components/ui-search-shell/ui-search-shell.html +1 -1
- package/components/ui-sidebar/ui-sidebar.html +2 -2
- package/components/ui-switch/ui-switch.html +1 -1
- package/components/ui-switcher/ui-switcher.html +1 -1
- package/components/ui-tabs/ui-tabs.html +2 -2
- package/components/ui-toast-region/ui-toast-region.html +1 -1
- package/components/ui-tooltip/ui-tooltip.html +1 -1
- package/components/ui-tree-item/ui-tree-item.html +4 -4
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/styles/ui-action-bar.css +1 -1
- package/styles/ui-affordance-scope.css +1 -1
- package/styles/ui-avatar-group.css +10 -1
- package/styles/ui-avatar.css +1 -1
- package/styles/ui-badge.css +1 -1
- package/styles/ui-breadcrumb-item.css +1 -1
- package/styles/ui-breadcrumbs.css +1 -1
- package/styles/ui-button.css +11 -7
- package/styles/ui-callout.css +1 -1
- package/styles/ui-card.css +1 -1
- package/styles/ui-checkbox.css +1 -1
- package/styles/ui-cluster.css +1 -1
- package/styles/ui-combobox.css +1 -1
- package/styles/ui-container.css +1 -1
- package/styles/ui-context-menu.css +1 -1
- package/styles/ui-cover.css +1 -1
- package/styles/ui-description-item.css +1 -1
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +1 -1
- package/styles/ui-disclosure.css +1 -1
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-slash-menu-group.css +1 -1
- package/styles/ui-editor-slash-menu-item.css +1 -1
- package/styles/ui-editor-slash-menu.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +1 -1
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +1 -1
- package/styles/ui-icon-button.css +1 -1
- package/styles/ui-icon.css +1 -1
- package/styles/ui-input-group.css +1 -1
- package/styles/ui-input.css +1 -1
- package/styles/ui-list-item.css +1 -1
- package/styles/ui-list.css +1 -1
- package/styles/ui-listbox.css +1 -1
- package/styles/ui-menu-group.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.css +1 -1
- package/styles/ui-meter.css +1 -1
- package/styles/ui-nav-item.css +1 -1
- package/styles/ui-page-header.css +1 -1
- package/styles/ui-popover.css +1 -1
- package/styles/ui-radio-group.css +1 -1
- package/styles/ui-radio.css +1 -1
- package/styles/ui-reel.css +1 -1
- package/styles/ui-scroll-area.css +1 -1
- package/styles/ui-search-result-row.css +1 -1
- package/styles/ui-search-shell.css +1 -1
- package/styles/ui-section.css +1 -1
- package/styles/ui-select.css +1 -1
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +1 -1
- package/styles/ui-table.css +1 -1
- package/styles/ui-tabs.css +1 -1
- package/styles/ui-text.css +1 -1
- package/styles/ui-textarea.css +1 -1
- package/styles/ui-toast-region.css +1 -1
- package/styles/ui-toast.css +1 -1
- package/styles/ui-tooltip.css +1 -1
- package/styles/ui-top-bar.css +1 -1
- package/styles/ui-tree-item.css +1 -1
- package/styles/ui-tree.css +1 -1
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +1 -1
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +2 -2
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +2 -2
- package/vanilla/UiAvatarGroup.d.ts +2 -2
- package/vanilla/UiAvatarGroup.js +2 -2
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +1 -1
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +1 -1
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +1 -1
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +1 -1
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +2 -2
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +2 -2
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +1 -1
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +2 -2
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +1 -1
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +1 -1
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +1 -1
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +2 -2
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +2 -2
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +2 -2
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +2 -2
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +2 -2
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +1 -1
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +2 -2
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +1 -1
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +1 -1
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +2 -2
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +2 -2
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +2 -2
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +1 -1
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +1 -1
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +1 -1
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +1 -1
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +1 -1
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +1 -1
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +1 -1
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +1 -1
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +1 -1
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +1 -1
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +2 -2
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +2 -2
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +1 -1
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +2 -2
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +1 -1
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +1 -1
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +1 -1
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +2 -2
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +2 -2
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +2 -2
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +1 -1
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +1 -1
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +1 -1
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +2 -2
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +1 -1
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +1 -1
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +1 -1
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +2 -2
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +1 -1
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +1 -1
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +1 -1
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +2 -2
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +2 -2
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +1 -1
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +2 -2
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +1 -1
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +1 -1
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +1 -1
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +2 -2
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +2 -2
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +1 -1
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +1 -1
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +2 -2
- package/vue/UiActionBar.vue +1 -1
- package/vue/UiAffordanceScope.vue +25 -7
- package/vue/UiAvatar.vue +125 -30
- package/vue/UiAvatarGroup.d.ts +4 -4
- package/vue/UiAvatarGroup.vue +79 -24
- package/vue/UiBadge.vue +34 -8
- package/vue/UiBreadcrumbItem.vue +15 -4
- package/vue/UiBreadcrumbs.vue +14 -4
- package/vue/UiButton.vue +133 -49
- package/vue/UiCallout.vue +16 -4
- package/vue/UiCard.vue +46 -10
- package/vue/UiCheckbox.d.ts +5 -5
- package/vue/UiCheckbox.vue +73 -19
- package/vue/UiCluster.vue +39 -10
- package/vue/UiCombobox.d.ts +5 -5
- package/vue/UiCombobox.vue +317 -78
- package/vue/UiContainer.vue +23 -6
- package/vue/UiContextMenu.vue +24 -7
- package/vue/UiCover.vue +16 -4
- package/vue/UiDescriptionItem.vue +14 -4
- package/vue/UiDescriptionList.vue +33 -8
- package/vue/UiDialog.vue +79 -26
- package/vue/UiDisclosure.vue +101 -38
- package/vue/UiEditable.d.ts +3 -3
- package/vue/UiEditable.vue +107 -27
- package/vue/UiEditorInsertTableGrid.vue +47 -11
- package/vue/UiEditorMentionMenu.vue +99 -20
- package/vue/UiEditorMentionMenuItem.vue +29 -8
- package/vue/UiEditorSlashMenu.vue +85 -16
- package/vue/UiEditorSlashMenuGroup.vue +14 -4
- package/vue/UiEditorSlashMenuItem.vue +43 -12
- package/vue/UiEditorTableContextMenu.d.ts +1 -1
- package/vue/UiEditorTableContextMenu.vue +95 -19
- package/vue/UiEditorTableOverlay.vue +91 -7
- package/vue/UiEditorTableToolbar.vue +105 -16
- package/vue/UiEditorToolbar.vue +15 -4
- package/vue/UiFloatingActionButton.vue +31 -8
- package/vue/UiFormField.d.ts +1 -1
- package/vue/UiFormField.vue +31 -8
- package/vue/UiGrid.vue +30 -8
- package/vue/UiIcon.vue +15 -4
- package/vue/UiIconButton.vue +70 -24
- package/vue/UiInput.vue +114 -39
- package/vue/UiInputGroup.vue +15 -4
- package/vue/UiList.vue +47 -16
- package/vue/UiListItem.vue +24 -6
- package/vue/UiListbox.d.ts +3 -3
- package/vue/UiListbox.vue +72 -24
- package/vue/UiMenu.vue +55 -15
- package/vue/UiMenuGroup.vue +14 -4
- package/vue/UiMenuItem.d.ts +4 -4
- package/vue/UiMenuItem.vue +77 -27
- package/vue/UiMeter.vue +65 -16
- package/vue/UiNavItem.vue +48 -24
- package/vue/UiPageHeader.vue +16 -4
- package/vue/UiPopover.vue +46 -21
- package/vue/UiRadio.d.ts +4 -4
- package/vue/UiRadio.vue +58 -15
- package/vue/UiRadioGroup.d.ts +3 -3
- package/vue/UiRadioGroup.vue +66 -17
- package/vue/UiReel.d.ts +1 -1
- package/vue/UiReel.vue +31 -8
- package/vue/UiScrollArea.vue +16 -4
- package/vue/UiSearchResultRow.vue +23 -6
- package/vue/UiSearchShell.vue +38 -11
- package/vue/UiSection.vue +33 -8
- package/vue/UiSelect.d.ts +1 -1
- package/vue/UiSelect.vue +45 -20
- package/vue/UiSeparator.vue +16 -4
- package/vue/UiSidebar.d.ts +2 -2
- package/vue/UiSidebar.vue +86 -22
- package/vue/UiSpinner.vue +23 -6
- package/vue/UiStack.vue +31 -8
- package/vue/UiStatusMessage.vue +32 -8
- package/vue/UiSwitch.d.ts +4 -4
- package/vue/UiSwitch.vue +57 -15
- package/vue/UiSwitcher.vue +41 -17
- package/vue/UiTable.vue +24 -6
- package/vue/UiTabs.vue +60 -14
- package/vue/UiText.vue +98 -35
- package/vue/UiTextarea.d.ts +1 -1
- package/vue/UiTextarea.vue +67 -26
- package/vue/UiToast.vue +24 -6
- package/vue/UiToastRegion.vue +41 -13
- package/vue/UiTooltip.d.ts +1 -1
- package/vue/UiTooltip.vue +85 -30
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.vue +56 -14
- package/vue/UiTreeItem.d.ts +3 -3
- package/vue/UiTreeItem.vue +147 -36
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +34 -7
- package/vue/chunks/UiAvatar.js +141 -21
- package/vue/chunks/UiAvatarGroup.js +83 -12
- package/vue/chunks/UiBadge.js +57 -19
- package/vue/chunks/UiBreadcrumbItem.js +19 -6
- package/vue/chunks/UiBreadcrumbs.js +19 -6
- package/vue/chunks/UiButton.js +194 -42
- package/vue/chunks/UiCallout.js +27 -13
- package/vue/chunks/UiCard.js +83 -25
- package/vue/chunks/UiCheckbox.js +104 -17
- package/vue/chunks/UiCluster.js +70 -25
- package/vue/chunks/UiCombobox.js +441 -46
- package/vue/chunks/UiContainer.js +36 -11
- package/vue/chunks/UiContextMenu.js +33 -7
- package/vue/chunks/UiCover.js +20 -6
- package/vue/chunks/UiDescriptionItem.js +18 -5
- package/vue/chunks/UiDescriptionList.js +54 -17
- package/vue/chunks/UiDialog.js +115 -23
- package/vue/chunks/UiDisclosure.js +110 -24
- package/vue/chunks/UiEditable.js +146 -18
- package/vue/chunks/UiEditorInsertTableGrid.js +65 -10
- package/vue/chunks/UiEditorMentionMenu.js +210 -14
- package/vue/chunks/UiEditorMentionMenuItem.js +43 -8
- package/vue/chunks/UiEditorSlashMenu.js +186 -12
- package/vue/chunks/UiEditorSlashMenuGroup.js +19 -6
- package/vue/chunks/UiEditorSlashMenuItem.js +65 -10
- package/vue/chunks/UiEditorTableContextMenu.js +116 -16
- package/vue/chunks/UiEditorTableOverlay.js +188 -7
- package/vue/chunks/UiEditorTableToolbar.js +125 -16
- package/vue/chunks/UiEditorToolbar.js +19 -6
- package/vue/chunks/UiFloatingActionButton.js +43 -8
- package/vue/chunks/UiFormField.js +43 -8
- package/vue/chunks/UiGrid.js +52 -18
- package/vue/chunks/UiIcon.js +19 -6
- package/vue/chunks/UiIconButton.js +107 -21
- package/vue/chunks/UiInput.js +309 -30
- package/vue/chunks/UiInputGroup.js +19 -6
- package/vue/chunks/UiList.js +62 -10
- package/vue/chunks/UiListItem.js +33 -7
- package/vue/chunks/UiListbox.js +105 -13
- package/vue/chunks/UiMenu.js +79 -11
- package/vue/chunks/UiMenuGroup.js +19 -6
- package/vue/chunks/UiMenuItem.js +93 -28
- package/vue/chunks/UiMeter.js +96 -19
- package/vue/chunks/UiNavItem.js +74 -17
- package/vue/chunks/UiPageHeader.js +20 -6
- package/vue/chunks/UiPopover.js +58 -21
- package/vue/chunks/UiRadio.js +82 -15
- package/vue/chunks/UiRadioGroup.js +89 -12
- package/vue/chunks/UiReel.js +53 -18
- package/vue/chunks/UiScrollArea.js +20 -6
- package/vue/chunks/UiSearchResultRow.js +32 -7
- package/vue/chunks/UiSearchShell.js +55 -9
- package/vue/chunks/UiSection.js +49 -12
- package/vue/chunks/UiSelect.js +68 -13
- package/vue/chunks/UiSeparator.js +20 -6
- package/vue/chunks/UiSidebar.js +123 -19
- package/vue/chunks/UiSpinner.js +33 -7
- package/vue/chunks/UiStack.js +59 -24
- package/vue/chunks/UiStatusMessage.js +53 -16
- package/vue/chunks/UiSwitch.js +82 -15
- package/vue/chunks/UiSwitcher.js +70 -25
- package/vue/chunks/UiTable.js +33 -7
- package/vue/chunks/UiTabs.js +81 -11
- package/vue/chunks/UiText.js +169 -58
- package/vue/chunks/UiTextarea.js +101 -16
- package/vue/chunks/UiToast.js +39 -13
- package/vue/chunks/UiToastRegion.js +41 -14
- package/vue/chunks/UiTooltip.js +113 -30
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +82 -15
- package/vue/chunks/UiTreeItem.js +184 -22
- package/vue/chunks/props.js +271 -35
- package/vue/components.css +1209 -1198
- package/vue/host.ts +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
2
|
import { r as useComponentHost, t as createDispatch } from "./host.js";
|
|
3
|
-
import { t as checkedProp } from "./props.js";
|
|
4
|
-
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, renderSlot, watchSyncEffect } from "vue";
|
|
3
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
4
|
+
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiAffordanceScope.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = [
|
|
7
7
|
"data-guide",
|
|
@@ -24,16 +24,39 @@ var UiAffordanceScope_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
setup(__props) {
|
|
27
|
+
const propValidityContract = { props: {
|
|
28
|
+
guide: {
|
|
29
|
+
type: {
|
|
30
|
+
kind: "terminal",
|
|
31
|
+
name: "keyword"
|
|
32
|
+
},
|
|
33
|
+
required: false,
|
|
34
|
+
target: { attribute: "guide" },
|
|
35
|
+
description: "What marks an anticipatory control at rest. dot shows a small guide dot where it will appear; none shows nothing until the pointer nears it, it is hovered,\n or it takes focus. Every guide inside the scope follows it, including a sidebar's resize line and the editor table's handles.",
|
|
36
|
+
values: ["dot", "none"],
|
|
37
|
+
default: "dot"
|
|
38
|
+
},
|
|
39
|
+
nearRadius: {
|
|
40
|
+
type: {
|
|
41
|
+
kind: "terminal",
|
|
42
|
+
name: "number"
|
|
43
|
+
},
|
|
44
|
+
required: false,
|
|
45
|
+
target: { attribute: "nearradius" },
|
|
46
|
+
description: "How close, in pixels, the pointer must come to reveal an affordance.",
|
|
47
|
+
default: 16
|
|
48
|
+
}
|
|
49
|
+
} };
|
|
27
50
|
const props = __props;
|
|
28
51
|
const checkedProps = computed(() => ({
|
|
29
52
|
guide: checkedProp(props["guide"], {
|
|
30
53
|
kind: "terminal",
|
|
31
54
|
name: "keyword"
|
|
32
|
-
}, false, "guide"
|
|
55
|
+
}, false, "guide"),
|
|
33
56
|
nearRadius: checkedProp(props["nearRadius"], {
|
|
34
57
|
kind: "terminal",
|
|
35
58
|
name: "number"
|
|
36
|
-
}, false, "nearRadius"
|
|
59
|
+
}, false, "nearRadius")
|
|
37
60
|
}));
|
|
38
61
|
checkedProps.value;
|
|
39
62
|
watchSyncEffect(() => {
|
|
@@ -54,6 +77,7 @@ var UiAffordanceScope_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
54
77
|
const hydrationInstance = getCurrentInstance();
|
|
55
78
|
const root = ref(null);
|
|
56
79
|
const engaged = ref(false);
|
|
80
|
+
provide("html-next:ui-affordance-scope:engaged", engaged);
|
|
57
81
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
58
82
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "span")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-affordance-scope> has an incompatible root."), {
|
|
59
83
|
name: "HtmlDiagnosticError",
|
|
@@ -80,15 +104,18 @@ var UiAffordanceScope_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
80
104
|
state: { engaged }
|
|
81
105
|
});
|
|
82
106
|
return (_ctx, _cache) => {
|
|
83
|
-
return openBlock(), createElementBlock("span", mergeProps({ "data-component": "ui-affordance-scope" }, nativeAttrs(_ctx.$attrs), {
|
|
107
|
+
return withDirectives((openBlock(), createElementBlock("span", mergeProps({ "data-component": "ui-affordance-scope" }, nativeAttrs(_ctx.$attrs), {
|
|
84
108
|
"data-guide": reflectedProp("guide", "guide", checkedProps.value.guide, void 0, false),
|
|
85
109
|
"data-near-radius": reflectedProp("nearRadius", "near-radius", checkedProps.value.nearRadius, void 0, false),
|
|
86
110
|
"data-ui-affordance-scope-state": hostState.value || void 0,
|
|
87
111
|
ref_key: "root",
|
|
88
112
|
ref: root
|
|
89
|
-
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_1)
|
|
113
|
+
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
114
|
+
contract: propValidityContract,
|
|
115
|
+
values: { ...checkedProps.value }
|
|
116
|
+
}]]);
|
|
90
117
|
};
|
|
91
118
|
}
|
|
92
|
-
}), [["__scopeId", "data-v-
|
|
119
|
+
}), [["__scopeId", "data-v-b83bd2ec"]]);
|
|
93
120
|
//#endregion
|
|
94
121
|
export { UiAffordanceScope_default as t };
|
package/vue/chunks/UiAvatar.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 { t as UiIcon_default } from "./UiIcon.js";
|
|
5
|
-
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, renderSlot, toDisplayString, useTemplateRef, watchSyncEffect } from "vue";
|
|
5
|
+
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
6
6
|
//#region .build/vue/UiAvatar.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var _hoisted_1 = [
|
|
8
8
|
"data-active",
|
|
@@ -59,44 +59,127 @@ var UiAvatar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
setup(__props) {
|
|
62
|
+
const propValidityContract = { props: {
|
|
63
|
+
active: {
|
|
64
|
+
type: {
|
|
65
|
+
kind: "terminal",
|
|
66
|
+
name: "boolean"
|
|
67
|
+
},
|
|
68
|
+
required: false,
|
|
69
|
+
target: { attribute: "active" },
|
|
70
|
+
description: "Marks the person as active now, such as editing the same page: a fine accent ring around the avatar. The ring is not announced, so say what it means in alt\n (\"Ada Lovelace, editing\").",
|
|
71
|
+
default: false
|
|
72
|
+
},
|
|
73
|
+
alt: {
|
|
74
|
+
type: {
|
|
75
|
+
kind: "terminal",
|
|
76
|
+
name: "string"
|
|
77
|
+
},
|
|
78
|
+
required: false,
|
|
79
|
+
target: { attribute: "alt" },
|
|
80
|
+
description: "The avatar's accessible name, announced for it as an image. When empty, name is used, then \"Avatar\". Initials come from name first, so alt supplies them\n only when name is empty. An authored img carries its own alt instead.",
|
|
81
|
+
default: ""
|
|
82
|
+
},
|
|
83
|
+
decorative: {
|
|
84
|
+
type: {
|
|
85
|
+
kind: "terminal",
|
|
86
|
+
name: "boolean"
|
|
87
|
+
},
|
|
88
|
+
required: false,
|
|
89
|
+
target: { attribute: "decorative" },
|
|
90
|
+
description: "Hides the avatar from assistive technology when adjacent text already identifies the person.",
|
|
91
|
+
default: false
|
|
92
|
+
},
|
|
93
|
+
fallback: {
|
|
94
|
+
type: {
|
|
95
|
+
kind: "terminal",
|
|
96
|
+
name: "string"
|
|
97
|
+
},
|
|
98
|
+
required: false,
|
|
99
|
+
target: { attribute: "fallback" },
|
|
100
|
+
description: "Text shown instead of the initials derived from name or alt, whenever there is no image. It is uppercased; keep it to a couple of characters, because the\n circle clips anything wider.",
|
|
101
|
+
default: ""
|
|
102
|
+
},
|
|
103
|
+
name: {
|
|
104
|
+
type: {
|
|
105
|
+
kind: "terminal",
|
|
106
|
+
name: "string"
|
|
107
|
+
},
|
|
108
|
+
required: false,
|
|
109
|
+
target: { attribute: "name" },
|
|
110
|
+
description: "The person's name. The initials are drawn from it: the first letters of the first two words, or the first two letters of a single word. It is also the\n accessible name when alt is empty.",
|
|
111
|
+
default: ""
|
|
112
|
+
},
|
|
113
|
+
shape: {
|
|
114
|
+
type: {
|
|
115
|
+
kind: "terminal",
|
|
116
|
+
name: "keyword"
|
|
117
|
+
},
|
|
118
|
+
required: false,
|
|
119
|
+
target: { attribute: "shape" },
|
|
120
|
+
description: "Circle by default; square uses the theme's medium radius.",
|
|
121
|
+
values: ["circle", "square"],
|
|
122
|
+
default: "circle"
|
|
123
|
+
},
|
|
124
|
+
size: {
|
|
125
|
+
type: {
|
|
126
|
+
kind: "terminal",
|
|
127
|
+
name: "keyword"
|
|
128
|
+
},
|
|
129
|
+
required: false,
|
|
130
|
+
target: { attribute: "size" },
|
|
131
|
+
description: "md is 2.5rem, for a person on their own (a profile, a comment); sm is 1.75rem with smaller initials, for a row of people in a toolbar or header; xs is\n 1.25rem with small initials, for a person named inline in a line of small text.",
|
|
132
|
+
values: [
|
|
133
|
+
"xs",
|
|
134
|
+
"sm",
|
|
135
|
+
"md"
|
|
136
|
+
],
|
|
137
|
+
default: "md"
|
|
138
|
+
},
|
|
139
|
+
src: {
|
|
140
|
+
type: {
|
|
141
|
+
kind: "terminal",
|
|
142
|
+
name: "string"
|
|
143
|
+
},
|
|
144
|
+
required: false,
|
|
145
|
+
target: { attribute: "src" },
|
|
146
|
+
description: "The image to show, cropped to fill the circle. Until it loads, or if it fails, the avatar shows initials instead. An img element authored inside the avatar\n takes precedence over src."
|
|
147
|
+
}
|
|
148
|
+
} };
|
|
62
149
|
const props = __props;
|
|
63
150
|
const checkedProps = computed(() => ({
|
|
64
151
|
active: checkedProp(props["active"], {
|
|
65
152
|
kind: "terminal",
|
|
66
153
|
name: "boolean"
|
|
67
|
-
}, false, "active"
|
|
154
|
+
}, false, "active"),
|
|
68
155
|
alt: checkedProp(props["alt"], {
|
|
69
156
|
kind: "terminal",
|
|
70
157
|
name: "string"
|
|
71
|
-
}, false, "alt"
|
|
158
|
+
}, false, "alt"),
|
|
72
159
|
decorative: checkedProp(props["decorative"], {
|
|
73
160
|
kind: "terminal",
|
|
74
161
|
name: "boolean"
|
|
75
|
-
}, false, "decorative"
|
|
162
|
+
}, false, "decorative"),
|
|
76
163
|
fallback: checkedProp(props["fallback"], {
|
|
77
164
|
kind: "terminal",
|
|
78
165
|
name: "string"
|
|
79
|
-
}, false, "fallback"
|
|
166
|
+
}, false, "fallback"),
|
|
80
167
|
name: checkedProp(props["name"], {
|
|
81
168
|
kind: "terminal",
|
|
82
169
|
name: "string"
|
|
83
|
-
}, false, "name"
|
|
170
|
+
}, false, "name"),
|
|
84
171
|
shape: checkedProp(props["shape"], {
|
|
85
172
|
kind: "terminal",
|
|
86
173
|
name: "keyword"
|
|
87
|
-
}, false, "shape"
|
|
174
|
+
}, false, "shape"),
|
|
88
175
|
size: checkedProp(props["size"], {
|
|
89
176
|
kind: "terminal",
|
|
90
177
|
name: "keyword"
|
|
91
|
-
}, false, "size",
|
|
92
|
-
"xs",
|
|
93
|
-
"sm",
|
|
94
|
-
"md"
|
|
95
|
-
]),
|
|
178
|
+
}, false, "size"),
|
|
96
179
|
src: checkedProp(props["src"], {
|
|
97
180
|
kind: "terminal",
|
|
98
181
|
name: "string"
|
|
99
|
-
}, false, "src"
|
|
182
|
+
}, false, "src")
|
|
100
183
|
}));
|
|
101
184
|
checkedProps.value;
|
|
102
185
|
watchSyncEffect(() => {
|
|
@@ -121,6 +204,40 @@ var UiAvatar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
121
204
|
const hasAuthoredImage = ref(false);
|
|
122
205
|
const initials = ref("?");
|
|
123
206
|
const showGlyph = ref(false);
|
|
207
|
+
let guardedPrevious;
|
|
208
|
+
const guarded = computed(() => {
|
|
209
|
+
if (!((hasAuthoredImage.value == null || typeof hasAuthoredImage.value === "boolean") && (hasImage.value == null || typeof hasImage.value === "boolean"))) return guardedPrevious;
|
|
210
|
+
return guardedPrevious = hasAuthoredImage.value || !hasImage.value;
|
|
211
|
+
});
|
|
212
|
+
let guardedBindingPrevious;
|
|
213
|
+
const guardedBinding = computed(() => {
|
|
214
|
+
if (!(hasImage.value == null || typeof hasImage.value === "boolean")) return guardedBindingPrevious;
|
|
215
|
+
return guardedBindingPrevious = hasImage.value;
|
|
216
|
+
});
|
|
217
|
+
let guardedBinding2Previous;
|
|
218
|
+
const guardedBinding2 = computed(() => {
|
|
219
|
+
if (!(hasImage.value == null || typeof hasImage.value === "boolean")) return guardedBinding2Previous;
|
|
220
|
+
return guardedBinding2Previous = hasImage.value;
|
|
221
|
+
});
|
|
222
|
+
let guardedBinding3Previous;
|
|
223
|
+
const guardedBinding3 = computed(() => {
|
|
224
|
+
if (!(showGlyph.value == null || typeof showGlyph.value === "boolean")) return guardedBinding3Previous;
|
|
225
|
+
return guardedBinding3Previous = showGlyph.value;
|
|
226
|
+
});
|
|
227
|
+
let guardedBinding4Previous;
|
|
228
|
+
const guardedBinding4 = computed(() => {
|
|
229
|
+
if (!(initials.value == null || typeof initials.value === "string")) return guardedBinding4Previous;
|
|
230
|
+
return guardedBinding4Previous = initials.value;
|
|
231
|
+
});
|
|
232
|
+
let guardedBinding5Previous;
|
|
233
|
+
const guardedBinding5 = computed(() => {
|
|
234
|
+
if (!(showGlyph.value == null || typeof showGlyph.value === "boolean")) return guardedBinding5Previous;
|
|
235
|
+
return guardedBinding5Previous = !showGlyph.value;
|
|
236
|
+
});
|
|
237
|
+
provide("html-next:ui-avatar:hasImage", hasImage);
|
|
238
|
+
provide("html-next:ui-avatar:hasAuthoredImage", hasAuthoredImage);
|
|
239
|
+
provide("html-next:ui-avatar:initials", initials);
|
|
240
|
+
provide("html-next:ui-avatar:showGlyph", showGlyph);
|
|
124
241
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
125
242
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "span")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-avatar> has an incompatible root."), {
|
|
126
243
|
name: "HtmlDiagnosticError",
|
|
@@ -156,7 +273,7 @@ var UiAvatar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
156
273
|
}
|
|
157
274
|
});
|
|
158
275
|
return (_ctx, _cache) => {
|
|
159
|
-
return openBlock(), createElementBlock("span", mergeProps({ "data-component": "ui-avatar" }, nativeAttrs(_ctx.$attrs), {
|
|
276
|
+
return withDirectives((openBlock(), createElementBlock("span", mergeProps({ "data-component": "ui-avatar" }, nativeAttrs(_ctx.$attrs), {
|
|
160
277
|
"data-active": reflectedProp("active", "active", checkedProps.value.active, void 0, false),
|
|
161
278
|
"data-alt": reflectedProp("alt", "alt", checkedProps.value.alt, void 0, false),
|
|
162
279
|
"data-decorative": reflectedProp("decorative", "decorative", checkedProps.value.decorative, void 0, false),
|
|
@@ -175,17 +292,20 @@ var UiAvatar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
175
292
|
alt: "",
|
|
176
293
|
"aria-hidden": "true",
|
|
177
294
|
src: checkedProps.value.src ?? void 0,
|
|
178
|
-
hidden:
|
|
295
|
+
hidden: guarded.value,
|
|
179
296
|
ref: "image"
|
|
180
297
|
}, null, 8, _hoisted_2),
|
|
181
298
|
createElementVNode("span", {
|
|
182
299
|
class: "fallback",
|
|
183
|
-
"aria-hidden":
|
|
184
|
-
hidden:
|
|
185
|
-
}, [createElementVNode("span", { hidden:
|
|
186
|
-
], 16, _hoisted_1)
|
|
300
|
+
"aria-hidden": guardedBinding.value,
|
|
301
|
+
hidden: guardedBinding2.value
|
|
302
|
+
}, [createElementVNode("span", { hidden: guardedBinding3.value }, toDisplayString(guardedBinding4.value), 9, _hoisted_4), createElementVNode("span", { hidden: guardedBinding5.value }, [createVNode(UiIcon_default, { name: "user-round" })], 8, _hoisted_5)], 8, _hoisted_3)
|
|
303
|
+
], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
304
|
+
contract: propValidityContract,
|
|
305
|
+
values: { ...checkedProps.value }
|
|
306
|
+
}]]);
|
|
187
307
|
};
|
|
188
308
|
}
|
|
189
|
-
}), [["__scopeId", "data-v-
|
|
309
|
+
}), [["__scopeId", "data-v-de00ac16"]]);
|
|
190
310
|
//#endregion
|
|
191
311
|
export { UiAvatar_default as t };
|
|
@@ -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, 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, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiAvatarGroup.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = [
|
|
7
7
|
"aria-label",
|
|
@@ -41,28 +41,84 @@ var UiAvatarGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
setup(__props) {
|
|
44
|
+
const propValidityContract = { props: {
|
|
45
|
+
label: {
|
|
46
|
+
type: {
|
|
47
|
+
kind: "terminal",
|
|
48
|
+
name: "string"
|
|
49
|
+
},
|
|
50
|
+
required: false,
|
|
51
|
+
target: { attribute: "aria-label" },
|
|
52
|
+
description: "The group's accessible name, announced for the set of avatars as a whole. Name who they are rather than repeating the default.",
|
|
53
|
+
default: "People"
|
|
54
|
+
},
|
|
55
|
+
max: {
|
|
56
|
+
type: {
|
|
57
|
+
kind: "terminal",
|
|
58
|
+
name: "number"
|
|
59
|
+
},
|
|
60
|
+
required: false,
|
|
61
|
+
target: { attribute: "max" },
|
|
62
|
+
description: "How many avatars to show. The rest are hidden and counted in a +N badge after the last visible one. Fractions round down, and 0 hides every avatar behind\n the badge.",
|
|
63
|
+
default: 5
|
|
64
|
+
},
|
|
65
|
+
overflowLabel: {
|
|
66
|
+
type: {
|
|
67
|
+
kind: "terminal",
|
|
68
|
+
name: "string"
|
|
69
|
+
},
|
|
70
|
+
required: false,
|
|
71
|
+
target: { attribute: "overflowlabel" },
|
|
72
|
+
description: "Accessible label for the overflow badge. Replace {count} with the number of people beyond the visible avatars.",
|
|
73
|
+
default: "{count} more"
|
|
74
|
+
},
|
|
75
|
+
size: {
|
|
76
|
+
type: {
|
|
77
|
+
kind: "terminal",
|
|
78
|
+
name: "keyword"
|
|
79
|
+
},
|
|
80
|
+
required: false,
|
|
81
|
+
target: { attribute: "size" },
|
|
82
|
+
description: "The size of the avatars inside, matched by the +N badge and the overlap. Give each Avatar the same size. xs suits a group inside a line of small text, such\n as the people listed under a title.",
|
|
83
|
+
values: [
|
|
84
|
+
"xs",
|
|
85
|
+
"sm",
|
|
86
|
+
"md"
|
|
87
|
+
],
|
|
88
|
+
default: "md"
|
|
89
|
+
},
|
|
90
|
+
total: {
|
|
91
|
+
type: {
|
|
92
|
+
kind: "terminal",
|
|
93
|
+
name: "integer"
|
|
94
|
+
},
|
|
95
|
+
required: false,
|
|
96
|
+
target: { attribute: "total" },
|
|
97
|
+
description: "The true number of people when only some avatars are authored. The overflow badge counts the people beyond the visible avatars; it never counts fewer than\n the authored avatars."
|
|
98
|
+
}
|
|
99
|
+
} };
|
|
44
100
|
const props = __props;
|
|
45
101
|
const checkedProps = computed(() => ({
|
|
46
102
|
label: checkedProp(props["label"], {
|
|
47
103
|
kind: "terminal",
|
|
48
104
|
name: "string"
|
|
49
|
-
}, false, "label"
|
|
105
|
+
}, false, "label"),
|
|
50
106
|
max: checkedProp(props["max"], {
|
|
51
107
|
kind: "terminal",
|
|
52
108
|
name: "number"
|
|
53
|
-
}, false, "max"
|
|
109
|
+
}, false, "max"),
|
|
54
110
|
overflowLabel: checkedProp(props["overflowLabel"], {
|
|
55
111
|
kind: "terminal",
|
|
56
112
|
name: "string"
|
|
57
|
-
}, false, "overflowLabel"
|
|
113
|
+
}, false, "overflowLabel"),
|
|
58
114
|
size: checkedProp(props["size"], {
|
|
59
115
|
kind: "terminal",
|
|
60
116
|
name: "keyword"
|
|
61
|
-
}, false, "size"
|
|
117
|
+
}, false, "size"),
|
|
62
118
|
total: checkedProp(props["total"], {
|
|
63
119
|
kind: "terminal",
|
|
64
120
|
name: "integer"
|
|
65
|
-
}, false, "total"
|
|
121
|
+
}, false, "total")
|
|
66
122
|
}));
|
|
67
123
|
checkedProps.value;
|
|
68
124
|
watchSyncEffect(() => {
|
|
@@ -85,6 +141,18 @@ var UiAvatarGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
85
141
|
const overflowElement = useTemplateRef("overflow");
|
|
86
142
|
const overflowCount = ref(0);
|
|
87
143
|
const overflowAnnouncement = ref("");
|
|
144
|
+
let guardedPrevious;
|
|
145
|
+
const guarded = computed(() => {
|
|
146
|
+
if (!(overflowCount.value == null || Number.isInteger(overflowCount.value))) return guardedPrevious;
|
|
147
|
+
return guardedPrevious = !overflowCount.value;
|
|
148
|
+
});
|
|
149
|
+
let guardedBindingPrevious;
|
|
150
|
+
const guardedBinding = computed(() => {
|
|
151
|
+
if (!(overflowAnnouncement.value == null || typeof overflowAnnouncement.value === "string")) return guardedBindingPrevious;
|
|
152
|
+
return guardedBindingPrevious = overflowAnnouncement.value;
|
|
153
|
+
});
|
|
154
|
+
provide("html-next:ui-avatar-group:overflowCount", overflowCount);
|
|
155
|
+
provide("html-next:ui-avatar-group:overflowAnnouncement", overflowAnnouncement);
|
|
88
156
|
const hydrationNode = hydrationInstance?.vnode.el;
|
|
89
157
|
if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "div")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-avatar-group> has an incompatible root."), {
|
|
90
158
|
name: "HtmlDiagnosticError",
|
|
@@ -111,7 +179,7 @@ var UiAvatarGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
111
179
|
}
|
|
112
180
|
});
|
|
113
181
|
return (_ctx, _cache) => {
|
|
114
|
-
return openBlock(), createElementBlock("div", mergeProps({
|
|
182
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps({
|
|
115
183
|
"data-component": "ui-avatar-group",
|
|
116
184
|
role: "group"
|
|
117
185
|
}, nativeAttrs(_ctx.$attrs), {
|
|
@@ -127,12 +195,15 @@ var UiAvatarGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
127
195
|
}), [renderSlot(_ctx.$slots, "default"), createElementVNode("span", {
|
|
128
196
|
class: "overflow",
|
|
129
197
|
role: "img",
|
|
130
|
-
hidden:
|
|
131
|
-
"aria-label":
|
|
198
|
+
hidden: guarded.value,
|
|
199
|
+
"aria-label": guardedBinding.value,
|
|
132
200
|
ref: "overflow"
|
|
133
|
-
}, toDisplayString(`+${overflowCount.value}`), 9, _hoisted_2)], 16, _hoisted_1)
|
|
201
|
+
}, toDisplayString(`+${overflowCount.value}`), 9, _hoisted_2)], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
202
|
+
contract: propValidityContract,
|
|
203
|
+
values: { ...checkedProps.value }
|
|
204
|
+
}]]);
|
|
134
205
|
};
|
|
135
206
|
}
|
|
136
|
-
}), [["__scopeId", "data-v-
|
|
207
|
+
}), [["__scopeId", "data-v-c5dfd357"]]);
|
|
137
208
|
//#endregion
|
|
138
209
|
export { UiAvatarGroup_default as t };
|
package/vue/chunks/UiBadge.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/UiBadge.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
|
6
6
|
"data-shape",
|
|
@@ -28,31 +28,66 @@ var UiBadge_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
setup(__props) {
|
|
31
|
+
const propValidityContract = { props: {
|
|
32
|
+
shape: {
|
|
33
|
+
type: {
|
|
34
|
+
kind: "terminal",
|
|
35
|
+
name: "keyword"
|
|
36
|
+
},
|
|
37
|
+
required: false,
|
|
38
|
+
target: { attribute: "shape" },
|
|
39
|
+
description: "Silhouette. pill is rounded at both ends; tag is a label: flat at the start and coming to a point at the end, for a tag or a chosen chip.",
|
|
40
|
+
values: ["pill", "tag"],
|
|
41
|
+
default: "pill"
|
|
42
|
+
},
|
|
43
|
+
tone: {
|
|
44
|
+
type: {
|
|
45
|
+
kind: "terminal",
|
|
46
|
+
name: "keyword"
|
|
47
|
+
},
|
|
48
|
+
required: false,
|
|
49
|
+
target: { attribute: "tone" },
|
|
50
|
+
description: "Which colour the badge speaks in. neutral is a quiet grey for plain labels; accent draws the eye in the accent colour; info, success, warning, and danger\n mark a status, so match the tone to what the badge says. For a category rather than a status, set the --ui-badge-color hook on the badge instead: any CSS\n colour, which overrides the tone.",
|
|
51
|
+
values: [
|
|
52
|
+
"neutral",
|
|
53
|
+
"accent",
|
|
54
|
+
"info",
|
|
55
|
+
"success",
|
|
56
|
+
"warning",
|
|
57
|
+
"danger"
|
|
58
|
+
],
|
|
59
|
+
default: "neutral"
|
|
60
|
+
},
|
|
61
|
+
variant: {
|
|
62
|
+
type: {
|
|
63
|
+
kind: "terminal",
|
|
64
|
+
name: "keyword"
|
|
65
|
+
},
|
|
66
|
+
required: false,
|
|
67
|
+
target: { attribute: "variant" },
|
|
68
|
+
description: "Emphasis. subtle sets toned text over a soft wash; solid fills with the tone and uses contrasting text; outline keeps the surface with a toned edge.\n Neutral looks the same in solid and subtle.",
|
|
69
|
+
values: [
|
|
70
|
+
"solid",
|
|
71
|
+
"subtle",
|
|
72
|
+
"outline"
|
|
73
|
+
],
|
|
74
|
+
default: "subtle"
|
|
75
|
+
}
|
|
76
|
+
} };
|
|
31
77
|
const props = __props;
|
|
32
78
|
const checkedProps = computed(() => ({
|
|
33
79
|
shape: checkedProp(props["shape"], {
|
|
34
80
|
kind: "terminal",
|
|
35
81
|
name: "keyword"
|
|
36
|
-
}, false, "shape"
|
|
82
|
+
}, false, "shape"),
|
|
37
83
|
tone: checkedProp(props["tone"], {
|
|
38
84
|
kind: "terminal",
|
|
39
85
|
name: "keyword"
|
|
40
|
-
}, false, "tone",
|
|
41
|
-
"neutral",
|
|
42
|
-
"accent",
|
|
43
|
-
"info",
|
|
44
|
-
"success",
|
|
45
|
-
"warning",
|
|
46
|
-
"danger"
|
|
47
|
-
]),
|
|
86
|
+
}, false, "tone"),
|
|
48
87
|
variant: checkedProp(props["variant"], {
|
|
49
88
|
kind: "terminal",
|
|
50
89
|
name: "keyword"
|
|
51
|
-
}, false, "variant"
|
|
52
|
-
"solid",
|
|
53
|
-
"subtle",
|
|
54
|
-
"outline"
|
|
55
|
-
])
|
|
90
|
+
}, false, "variant")
|
|
56
91
|
}));
|
|
57
92
|
checkedProps.value;
|
|
58
93
|
watchSyncEffect(() => {
|
|
@@ -88,14 +123,17 @@ var UiBadge_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
88
123
|
checkedProps.value.shape != null && `shape=${encodeURIComponent(checkedProps.value.shape)}`
|
|
89
124
|
].filter(Boolean).join(" "));
|
|
90
125
|
return (_ctx, _cache) => {
|
|
91
|
-
return openBlock(), createElementBlock("span", mergeProps({ "data-component": "ui-badge" }, nativeAttrs(_ctx.$attrs), {
|
|
126
|
+
return withDirectives((openBlock(), createElementBlock("span", mergeProps({ "data-component": "ui-badge" }, nativeAttrs(_ctx.$attrs), {
|
|
92
127
|
"data-shape": reflectedProp("shape", "shape", checkedProps.value.shape, void 0, false),
|
|
93
128
|
"data-tone": reflectedProp("tone", "tone", checkedProps.value.tone, void 0, false),
|
|
94
129
|
"data-variant": reflectedProp("variant", "variant", checkedProps.value.variant, void 0, false),
|
|
95
130
|
"data-ui-badge-state": hostState.value || void 0
|
|
96
|
-
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_1)
|
|
131
|
+
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
132
|
+
contract: propValidityContract,
|
|
133
|
+
values: { ...checkedProps.value }
|
|
134
|
+
}]]);
|
|
97
135
|
};
|
|
98
136
|
}
|
|
99
|
-
}), [["__scopeId", "data-v-
|
|
137
|
+
}), [["__scopeId", "data-v-30ff44b9"]]);
|
|
100
138
|
//#endregion
|
|
101
139
|
export { UiBadge_default as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import { t as checkedProp } from "./props.js";
|
|
2
|
+
import { r as vPropValidity, t as checkedProp } from "./props.js";
|
|
3
3
|
import { t as UiIcon_default } from "./UiIcon.js";
|
|
4
|
-
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, watchSyncEffect } from "vue";
|
|
4
|
+
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiBreadcrumbItem.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _hoisted_1 = [
|
|
7
7
|
"aria-current",
|
|
@@ -23,11 +23,21 @@ var UiBreadcrumbItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
23
23
|
default: false
|
|
24
24
|
} },
|
|
25
25
|
setup(__props) {
|
|
26
|
+
const propValidityContract = { props: { current: {
|
|
27
|
+
type: {
|
|
28
|
+
kind: "terminal",
|
|
29
|
+
name: "boolean"
|
|
30
|
+
},
|
|
31
|
+
required: false,
|
|
32
|
+
target: { attribute: "current" },
|
|
33
|
+
description: "Marks the step as the view you are on: it is plain text with aria-current=\"page\". Every other step holds a link.",
|
|
34
|
+
default: false
|
|
35
|
+
} } };
|
|
26
36
|
const props = __props;
|
|
27
37
|
const checkedProps = computed(() => ({ current: checkedProp(props["current"], {
|
|
28
38
|
kind: "terminal",
|
|
29
39
|
name: "boolean"
|
|
30
|
-
}, false, "current"
|
|
40
|
+
}, false, "current") }));
|
|
31
41
|
checkedProps.value;
|
|
32
42
|
watchSyncEffect(() => {
|
|
33
43
|
checkedProps.value;
|
|
@@ -63,7 +73,7 @@ var UiBreadcrumbItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
63
73
|
return value === true ? "" : text(value);
|
|
64
74
|
}
|
|
65
75
|
return (_ctx, _cache) => {
|
|
66
|
-
return openBlock(), createElementBlock("li", mergeProps({ "data-component": "ui-breadcrumb-item" }, nativeAttrs(_ctx.$attrs), {
|
|
76
|
+
return withDirectives((openBlock(), createElementBlock("li", mergeProps({ "data-component": "ui-breadcrumb-item" }, nativeAttrs(_ctx.$attrs), {
|
|
67
77
|
"aria-current": typeof {
|
|
68
78
|
true: "page",
|
|
69
79
|
false: null
|
|
@@ -76,9 +86,12 @@ var UiBreadcrumbItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
76
86
|
}[`${checkedProps.value.current ?? ""}`]),
|
|
77
87
|
"data-current": reflectedProp("current", "current", checkedProps.value.current, void 0, false),
|
|
78
88
|
"data-ui-breadcrumb-item-state": hostState.value || void 0
|
|
79
|
-
}), [createElementVNode("span", _hoisted_2, [createVNode(UiIcon_default, { name: "chevron-right" })]), createElementVNode("span", _hoisted_3, [renderSlot(_ctx.$slots, "default")])], 16, _hoisted_1)
|
|
89
|
+
}), [createElementVNode("span", _hoisted_2, [createVNode(UiIcon_default, { name: "chevron-right" })]), createElementVNode("span", _hoisted_3, [renderSlot(_ctx.$slots, "default")])], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
90
|
+
contract: propValidityContract,
|
|
91
|
+
values: { ...checkedProps.value }
|
|
92
|
+
}]]);
|
|
80
93
|
};
|
|
81
94
|
}
|
|
82
|
-
}), [["__scopeId", "data-v-
|
|
95
|
+
}), [["__scopeId", "data-v-09112412"]]);
|
|
83
96
|
//#endregion
|
|
84
97
|
export { UiBreadcrumbItem_default as t };
|