@threadlabs/looma 0.30.2 → 0.30.3
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-combobox/ui-combobox.html +10 -10
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +2 -4
- package/components/ui-image/ui-image.html +2 -2
- package/components/ui-listbox/ui-listbox.html +1 -1
- package/components/ui-tree-item/ui-tree-item.html +4 -2
- package/dist/index.js +5 -4
- package/package.json +3 -3
- package/styles/ui-action-bar.css +1 -1
- package/styles/ui-affordance-scope.css +1 -1
- package/styles/ui-avatar-group.css +1 -1
- package/styles/ui-avatar.css +1 -1
- package/styles/ui-badge.css +1 -1
- package/styles/ui-breadcrumb-item.css +1 -1
- package/styles/ui-breadcrumbs.css +1 -1
- package/styles/ui-button.css +1 -1
- package/styles/ui-callout.css +1 -1
- package/styles/ui-card.css +1 -1
- package/styles/ui-checkbox.css +1 -1
- package/styles/ui-cluster.css +1 -1
- package/styles/ui-combobox.css +1 -1
- package/styles/ui-container.css +1 -1
- package/styles/ui-context-menu.css +1 -1
- package/styles/ui-cover.css +1 -1
- package/styles/ui-description-item.css +1 -1
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +1 -1
- package/styles/ui-disclosure.css +1 -1
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-block-actions.css +1 -1
- package/styles/ui-editor-chip-editor.css +1 -1
- package/styles/ui-editor-code-language.css +1 -1
- package/styles/ui-editor-image-toolbar.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-link-card.css +1 -1
- package/styles/ui-editor-link-form.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-surface.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-image.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-swatch.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 +4 -4
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +4 -4
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +4 -4
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +4 -4
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +3 -3
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +3 -3
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +6 -6
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +4 -4
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +6 -6
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +4 -4
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +4 -4
- package/vanilla/UiCombobox.d.ts +12 -12
- package/vanilla/UiCombobox.js +12 -10
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +4 -4
- package/vanilla/UiContextMenu.d.ts +2 -2
- package/vanilla/UiContextMenu.js +3 -3
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +4 -4
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +3 -3
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +4 -4
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +4 -4
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +4 -4
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +3 -3
- package/vanilla/UiEditorBlockActions.d.ts +1 -1
- package/vanilla/UiEditorBlockActions.js +4 -4
- package/vanilla/UiEditorChipEditor.d.ts +1 -1
- package/vanilla/UiEditorChipEditor.js +4 -4
- package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
- package/vanilla/UiEditorCodeLanguage.js +3 -3
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +4 -4
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +3 -3
- package/vanilla/UiEditorLinkCard.d.ts +1 -1
- package/vanilla/UiEditorLinkCard.js +8 -6
- package/vanilla/UiEditorLinkForm.d.ts +2 -2
- package/vanilla/UiEditorLinkForm.js +9 -7
- package/vanilla/UiEditorMentionMenu.d.ts +3 -3
- package/vanilla/UiEditorMentionMenu.js +3 -3
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +3 -3
- package/vanilla/UiEditorSlashMenu.d.ts +3 -3
- package/vanilla/UiEditorSlashMenu.js +3 -3
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +3 -3
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +3 -3
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +4 -4
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +4 -4
- package/vanilla/UiEditorTableOverlay.d.ts +2 -2
- package/vanilla/UiEditorTableOverlay.js +4 -4
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +4 -4
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +3 -3
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +3 -3
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +3 -3
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +4 -4
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +9 -7
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +4 -4
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +4 -4
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +4 -4
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +4 -4
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +6 -6
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +4 -4
- package/vanilla/UiListbox.d.ts +2 -2
- package/vanilla/UiListbox.js +3 -3
- package/vanilla/UiMenu.d.ts +2 -2
- package/vanilla/UiMenu.js +4 -4
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +3 -3
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +6 -6
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +9 -7
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +6 -6
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +4 -4
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +4 -4
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +4 -4
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +4 -4
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +4 -4
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +4 -4
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +4 -4
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +3 -3
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +4 -4
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +4 -4
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +4 -4
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +4 -4
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +4 -4
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +4 -4
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +4 -4
- package/vanilla/UiSwatch.d.ts +1 -1
- package/vanilla/UiSwatch.js +9 -7
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +4 -4
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +4 -4
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +4 -4
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +4 -4
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +6 -6
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +4 -4
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +4 -4
- package/vanilla/UiToastRegion.d.ts +2 -2
- package/vanilla/UiToastRegion.js +4 -4
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +4 -4
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +1 -1
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +4 -4
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +35 -23
- package/vue/UiActionBar.vue +1 -1
- package/vue/UiAffordanceScope.d.ts +8 -8
- package/vue/UiAffordanceScope.vue +57 -20
- package/vue/UiAvatar.d.ts +9 -27
- package/vue/UiAvatar.vue +100 -68
- package/vue/UiAvatarGroup.d.ts +9 -18
- package/vue/UiAvatarGroup.vue +73 -44
- package/vue/UiBadge.d.ts +9 -15
- package/vue/UiBadge.vue +67 -39
- package/vue/UiBreadcrumbItem.d.ts +8 -5
- package/vue/UiBreadcrumbItem.vue +45 -12
- package/vue/UiBreadcrumbs.d.ts +8 -5
- package/vue/UiBreadcrumbs.vue +45 -12
- package/vue/UiButton.d.ts +9 -45
- package/vue/UiButton.vue +148 -119
- package/vue/UiCallout.d.ts +8 -8
- package/vue/UiCallout.vue +68 -25
- package/vue/UiCard.d.ts +8 -17
- package/vue/UiCard.vue +77 -53
- package/vue/UiCheckbox.d.ts +8 -29
- package/vue/UiCheckbox.vue +118 -76
- package/vue/UiCluster.d.ts +9 -24
- package/vue/UiCluster.vue +91 -66
- package/vue/UiCombobox.d.ts +135 -219
- package/vue/UiCombobox.vue +528 -496
- package/vue/UiContainer.d.ts +8 -11
- package/vue/UiContainer.vue +61 -28
- package/vue/UiContextMenu.d.ts +10 -10
- package/vue/UiContextMenu.vue +55 -22
- package/vue/UiCover.d.ts +8 -5
- package/vue/UiCover.vue +45 -12
- package/vue/UiDescriptionItem.d.ts +8 -5
- package/vue/UiDescriptionItem.vue +40 -12
- package/vue/UiDescriptionList.d.ts +8 -11
- package/vue/UiDescriptionList.vue +61 -34
- package/vue/UiDialog.d.ts +8 -26
- package/vue/UiDialog.vue +99 -74
- package/vue/UiDisclosure.d.ts +8 -29
- package/vue/UiDisclosure.vue +118 -79
- package/vue/UiEditable.d.ts +8 -35
- package/vue/UiEditable.vue +136 -92
- package/vue/UiEditorBlockActions.d.ts +8 -8
- package/vue/UiEditorBlockActions.vue +58 -23
- package/vue/UiEditorChipEditor.d.ts +8 -8
- package/vue/UiEditorChipEditor.vue +65 -20
- package/vue/UiEditorCodeLanguage.d.ts +8 -11
- package/vue/UiEditorCodeLanguage.vue +74 -31
- package/vue/UiEditorImageToolbar.d.ts +8 -11
- package/vue/UiEditorImageToolbar.vue +175 -144
- package/vue/UiEditorInsertTableGrid.d.ts +8 -14
- package/vue/UiEditorInsertTableGrid.vue +73 -36
- package/vue/UiEditorLinkCard.d.ts +8 -17
- package/vue/UiEditorLinkCard.vue +157 -90
- package/vue/UiEditorLinkForm.d.ts +10 -44
- package/vue/UiEditorLinkForm.vue +336 -228
- package/vue/UiEditorMentionMenu.d.ts +28 -60
- package/vue/UiEditorMentionMenu.vue +166 -121
- package/vue/UiEditorMentionMenuItem.d.ts +8 -11
- package/vue/UiEditorMentionMenuItem.vue +61 -28
- package/vue/UiEditorSlashMenu.d.ts +26 -52
- package/vue/UiEditorSlashMenu.vue +141 -104
- package/vue/UiEditorSlashMenuGroup.d.ts +8 -5
- package/vue/UiEditorSlashMenuGroup.vue +40 -12
- package/vue/UiEditorSlashMenuItem.d.ts +8 -17
- package/vue/UiEditorSlashMenuItem.vue +90 -48
- package/vue/UiEditorSurface.d.ts +8 -5
- package/vue/UiEditorSurface.vue +45 -15
- package/vue/UiEditorTableContextMenu.d.ts +8 -20
- package/vue/UiEditorTableContextMenu.vue +151 -113
- package/vue/UiEditorTableOverlay.d.ts +10 -29
- package/vue/UiEditorTableOverlay.vue +180 -153
- package/vue/UiEditorTableToolbar.d.ts +8 -20
- package/vue/UiEditorTableToolbar.vue +158 -116
- package/vue/UiEditorToolbar.d.ts +8 -5
- package/vue/UiEditorToolbar.vue +48 -12
- package/vue/UiFloatingActionButton.d.ts +8 -11
- package/vue/UiFloatingActionButton.vue +60 -28
- package/vue/UiFormField.d.ts +8 -11
- package/vue/UiFormField.vue +63 -28
- package/vue/UiGrid.d.ts +8 -11
- package/vue/UiGrid.vue +56 -28
- package/vue/UiIcon.d.ts +8 -8
- package/vue/UiIcon.vue +444 -395
- package/vue/UiIconButton.d.ts +9 -39
- package/vue/UiIconButton.vue +138 -103
- package/vue/UiImage.d.ts +8 -23
- package/vue/UiImage.vue +80 -60
- package/vue/UiInput.d.ts +4 -7
- package/vue/UiInput.vue +169 -149
- package/vue/UiInputGroup.d.ts +8 -17
- package/vue/UiInputGroup.vue +81 -47
- package/vue/UiList.d.ts +9 -15
- package/vue/UiList.vue +67 -39
- package/vue/UiListItem.d.ts +8 -20
- package/vue/UiListItem.vue +87 -52
- package/vue/UiListbox.d.ts +10 -28
- package/vue/UiListbox.vue +111 -71
- package/vue/UiMenu.d.ts +10 -25
- package/vue/UiMenu.vue +96 -65
- package/vue/UiMenuGroup.d.ts +8 -5
- package/vue/UiMenuGroup.vue +40 -12
- package/vue/UiMenuItem.d.ts +8 -20
- package/vue/UiMenuItem.vue +91 -55
- package/vue/UiMeter.d.ts +9 -33
- package/vue/UiMeter.vue +202 -147
- package/vue/UiNavItem.d.ts +9 -24
- package/vue/UiNavItem.vue +78 -63
- package/vue/UiPageHeader.d.ts +8 -5
- package/vue/UiPageHeader.vue +45 -12
- package/vue/UiPopover.d.ts +8 -14
- package/vue/UiPopover.vue +90 -58
- package/vue/UiRadio.d.ts +8 -20
- package/vue/UiRadio.vue +91 -52
- package/vue/UiRadioGroup.d.ts +8 -26
- package/vue/UiRadioGroup.vue +109 -74
- package/vue/UiReel.d.ts +8 -11
- package/vue/UiReel.vue +56 -28
- package/vue/UiScrollArea.d.ts +9 -18
- package/vue/UiScrollArea.vue +81 -53
- package/vue/UiSearchResultRow.d.ts +8 -11
- package/vue/UiSearchResultRow.vue +60 -31
- package/vue/UiSearchShell.d.ts +8 -14
- package/vue/UiSearchShell.vue +73 -36
- package/vue/UiSection.d.ts +8 -11
- package/vue/UiSection.vue +60 -31
- package/vue/UiSelect.d.ts +8 -17
- package/vue/UiSelect.vue +83 -51
- package/vue/UiSeparator.d.ts +9 -15
- package/vue/UiSeparator.vue +69 -39
- package/vue/UiSidebar.d.ts +8 -29
- package/vue/UiSidebar.vue +118 -76
- package/vue/UiSpinner.d.ts +8 -8
- package/vue/UiSpinner.vue +51 -20
- package/vue/UiStack.d.ts +9 -18
- package/vue/UiStack.vue +73 -53
- package/vue/UiStatusMessage.d.ts +8 -11
- package/vue/UiStatusMessage.vue +60 -33
- package/vue/UiSwatch.d.ts +8 -5
- package/vue/UiSwatch.vue +64 -22
- package/vue/UiSwitch.d.ts +8 -20
- package/vue/UiSwitch.vue +91 -52
- package/vue/UiSwitcher.d.ts +9 -15
- package/vue/UiSwitcher.vue +64 -39
- package/vue/UiTable.d.ts +8 -8
- package/vue/UiTable.vue +56 -23
- package/vue/UiTabs.d.ts +8 -23
- package/vue/UiTabs.vue +100 -66
- package/vue/UiText.d.ts +9 -36
- package/vue/UiText.vue +152 -109
- package/vue/UiTextarea.d.ts +8 -29
- package/vue/UiTextarea.vue +118 -83
- package/vue/UiToast.d.ts +8 -8
- package/vue/UiToast.vue +55 -20
- package/vue/UiToastRegion.d.ts +14 -14
- package/vue/UiToastRegion.vue +66 -28
- package/vue/UiTooltip.d.ts +8 -23
- package/vue/UiTooltip.vue +117 -82
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.d.ts +8 -23
- package/vue/UiTree.vue +99 -69
- package/vue/UiTreeItem.d.ts +8 -47
- package/vue/UiTreeItem.vue +178 -127
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +35 -22
- package/vue/chunks/UiAvatar.js +81 -70
- package/vue/chunks/UiAvatarGroup.js +58 -46
- package/vue/chunks/UiBadge.js +46 -38
- package/vue/chunks/UiBreadcrumbItem.js +22 -11
- package/vue/chunks/UiBreadcrumbs.js +22 -11
- package/vue/chunks/UiButton.js +115 -118
- package/vue/chunks/UiCallout.js +32 -22
- package/vue/chunks/UiCard.js +53 -46
- package/vue/chunks/UiCheckbox.js +84 -78
- package/vue/chunks/UiCluster.js +63 -62
- package/vue/chunks/UiCombobox.js +359 -382
- package/vue/chunks/UiContainer.js +35 -30
- package/vue/chunks/UiContextMenu.js +36 -23
- package/vue/chunks/UiCover.js +22 -11
- package/vue/chunks/UiDescriptionItem.js +22 -11
- package/vue/chunks/UiDescriptionList.js +38 -30
- package/vue/chunks/UiDialog.js +78 -70
- package/vue/chunks/UiDisclosure.js +87 -78
- package/vue/chunks/UiEditable.js +102 -94
- package/vue/chunks/UiEditorBlockActions.js +49 -23
- package/vue/chunks/UiEditorChipEditor.js +48 -25
- package/vue/chunks/UiEditorCodeLanguage.js +58 -41
- package/vue/chunks/UiEditorImageToolbar.js +153 -148
- package/vue/chunks/UiEditorInsertTableGrid.js +55 -38
- package/vue/chunks/UiEditorLinkCard.js +104 -82
- package/vue/chunks/UiEditorLinkForm.js +282 -258
- package/vue/chunks/UiEditorMentionMenu.js +156 -145
- package/vue/chunks/UiEditorMentionMenuItem.js +39 -30
- package/vue/chunks/UiEditorSlashMenu.js +141 -130
- package/vue/chunks/UiEditorSlashMenuGroup.js +22 -11
- package/vue/chunks/UiEditorSlashMenuItem.js +62 -47
- package/vue/chunks/UiEditorSurface.js +22 -11
- package/vue/chunks/UiEditorTableContextMenu.js +98 -87
- package/vue/chunks/UiEditorTableOverlay.js +286 -308
- package/vue/chunks/UiEditorTableToolbar.js +102 -87
- package/vue/chunks/UiEditorToolbar.js +24 -11
- package/vue/chunks/UiFloatingActionButton.js +39 -30
- package/vue/chunks/UiFormField.js +41 -30
- package/vue/chunks/UiGrid.js +35 -30
- package/vue/chunks/UiIcon.js +38 -25
- package/vue/chunks/UiIconButton.js +102 -102
- package/vue/chunks/UiImage.js +67 -62
- package/vue/chunks/UiInput.js +275 -274
- package/vue/chunks/UiInputGroup.js +55 -46
- package/vue/chunks/UiList.js +46 -38
- package/vue/chunks/UiListItem.js +60 -54
- package/vue/chunks/UiListbox.js +83 -72
- package/vue/chunks/UiMenu.js +71 -63
- package/vue/chunks/UiMenuGroup.js +22 -11
- package/vue/chunks/UiMenuItem.js +63 -54
- package/vue/chunks/UiMeter.js +124 -119
- package/vue/chunks/UiNavItem.js +64 -62
- package/vue/chunks/UiPageHeader.js +22 -11
- package/vue/chunks/UiPopover.js +49 -38
- package/vue/chunks/UiRadio.js +63 -54
- package/vue/chunks/UiRadioGroup.js +77 -70
- package/vue/chunks/UiReel.js +35 -30
- package/vue/chunks/UiScrollArea.js +55 -46
- package/vue/chunks/UiSearchResultRow.js +39 -30
- package/vue/chunks/UiSearchShell.js +49 -38
- package/vue/chunks/UiSection.js +39 -30
- package/vue/chunks/UiSelect.js +57 -48
- package/vue/chunks/UiSeparator.js +46 -38
- package/vue/chunks/UiSidebar.js +88 -78
- package/vue/chunks/UiSpinner.js +32 -22
- package/vue/chunks/UiStack.js +47 -46
- package/vue/chunks/UiStatusMessage.js +39 -30
- package/vue/chunks/UiSwatch.js +28 -14
- package/vue/chunks/UiSwitch.js +63 -54
- package/vue/chunks/UiSwitcher.js +44 -38
- package/vue/chunks/UiTable.js +34 -22
- package/vue/chunks/UiTabs.js +73 -62
- package/vue/chunks/UiText.js +95 -94
- package/vue/chunks/UiTextarea.js +84 -80
- package/vue/chunks/UiToast.js +34 -22
- package/vue/chunks/UiToastRegion.js +36 -23
- package/vue/chunks/UiTooltip.js +70 -62
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +69 -62
- package/vue/chunks/UiTreeItem.js +154 -151
- package/vue/chunks/_plugin-vue_export-helper.js +185 -36
- package/vue/chunks/control.js +6 -1
- package/vue/chunks/props.js +435 -11
- package/vue/components.css +39 -39
- package/vue/editor/index.js +129 -291
- package/vue/host.ts +320 -14
- package/vue/props.d.ts +272 -0
package/vue/UiEditorLinkForm.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.63 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, provide, ref, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -15,7 +15,22 @@ import {
|
|
|
15
15
|
useReflectedProp,
|
|
16
16
|
} from './host'
|
|
17
17
|
import { acceptsControllerWrite } from './props'
|
|
18
|
-
import {
|
|
18
|
+
import {
|
|
19
|
+
BINDING_INPUTS_PROP,
|
|
20
|
+
checkedProp,
|
|
21
|
+
checkPropInput,
|
|
22
|
+
evaluateInput,
|
|
23
|
+
type InputBindings,
|
|
24
|
+
inputComputed,
|
|
25
|
+
inputDefault,
|
|
26
|
+
inputRead,
|
|
27
|
+
propValidityState,
|
|
28
|
+
READY_INPUT,
|
|
29
|
+
requireInputStatus,
|
|
30
|
+
UNRESOLVED_INPUT,
|
|
31
|
+
vPropValidity,
|
|
32
|
+
vuePropInputs,
|
|
33
|
+
} from './props'
|
|
19
34
|
import UiCheckbox from './UiCheckbox.vue'
|
|
20
35
|
import UiFormField from './UiFormField.vue'
|
|
21
36
|
import UiIcon from './UiIcon.vue'
|
|
@@ -133,23 +148,28 @@ const propValidityContract = {
|
|
|
133
148
|
},
|
|
134
149
|
} as const
|
|
135
150
|
const props = defineProps({
|
|
136
|
-
error: { type: null as unknown as PropType<string | null
|
|
137
|
-
existing: { type: null as unknown as PropType<boolean | null
|
|
138
|
-
mode: { type: null as unknown as PropType<'url' | 'target' | null
|
|
139
|
-
newTab: { type: null as unknown as PropType<boolean | null
|
|
140
|
-
placeholder: { type: null as unknown as PropType<string | null
|
|
151
|
+
error: { type: null as unknown as PropType<string | null> },
|
|
152
|
+
existing: { type: null as unknown as PropType<boolean | null> },
|
|
153
|
+
mode: { type: null as unknown as PropType<'url' | 'target' | null> },
|
|
154
|
+
newTab: { type: null as unknown as PropType<boolean | null> },
|
|
155
|
+
placeholder: { type: null as unknown as PropType<string | null> },
|
|
141
156
|
results: {
|
|
142
157
|
type: null as unknown as PropType<
|
|
143
|
-
readonly ({
|
|
158
|
+
| readonly ({
|
|
159
|
+
readonly id: string
|
|
160
|
+
readonly label: string
|
|
161
|
+
readonly detail?: string | null
|
|
162
|
+
})[]
|
|
163
|
+
| null
|
|
144
164
|
>,
|
|
145
|
-
default: null,
|
|
146
165
|
},
|
|
147
|
-
searchable: { type: null as unknown as PropType<boolean | null
|
|
148
|
-
selected: { type: null as unknown as PropType<string | null
|
|
149
|
-
status: { type: null as unknown as PropType<string | null
|
|
150
|
-
text: { type: null as unknown as PropType<string | null
|
|
151
|
-
textEditable: { type: null as unknown as PropType<boolean | null
|
|
152
|
-
value: { type: null as unknown as PropType<string | null
|
|
166
|
+
searchable: { type: null as unknown as PropType<boolean | null> },
|
|
167
|
+
selected: { type: null as unknown as PropType<string | null> },
|
|
168
|
+
status: { type: null as unknown as PropType<string | null> },
|
|
169
|
+
text: { type: null as unknown as PropType<string | null> },
|
|
170
|
+
textEditable: { type: null as unknown as PropType<boolean | null> },
|
|
171
|
+
value: { type: null as unknown as PropType<string | null> },
|
|
172
|
+
[BINDING_INPUTS_PROP]: { type: null as unknown as PropType<InputBindings> },
|
|
153
173
|
})
|
|
154
174
|
const acceptedProps: Record<string, unknown> = {
|
|
155
175
|
error: '',
|
|
@@ -165,105 +185,140 @@ const acceptedProps: Record<string, unknown> = {
|
|
|
165
185
|
textEditable: false,
|
|
166
186
|
value: '',
|
|
167
187
|
}
|
|
168
|
-
const
|
|
169
|
-
error:
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
'
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
188
|
+
const inputTracking = vuePropInputs(acceptedProps, {
|
|
189
|
+
error: '',
|
|
190
|
+
existing: false,
|
|
191
|
+
mode: 'url',
|
|
192
|
+
newTab: false,
|
|
193
|
+
placeholder: 'https://example.com',
|
|
194
|
+
searchable: false,
|
|
195
|
+
selected: '',
|
|
196
|
+
status: '',
|
|
197
|
+
text: '',
|
|
198
|
+
textEditable: false,
|
|
199
|
+
value: '',
|
|
200
|
+
}, (name, value, source, values) => {
|
|
201
|
+
switch (name) {
|
|
202
|
+
case 'error':
|
|
203
|
+
return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
|
|
204
|
+
case 'existing':
|
|
205
|
+
return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
|
|
206
|
+
case 'mode':
|
|
207
|
+
return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
|
|
208
|
+
case 'newTab':
|
|
209
|
+
return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
|
|
210
|
+
case 'placeholder':
|
|
211
|
+
return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
|
|
212
|
+
case 'results':
|
|
213
|
+
return checkPropInput(
|
|
214
|
+
value,
|
|
215
|
+
{
|
|
216
|
+
kind: 'list',
|
|
217
|
+
item: {
|
|
218
|
+
kind: 'object',
|
|
219
|
+
fields: [{ name: 'id', type: { kind: 'terminal', name: 'string' }, optional: false }, {
|
|
220
|
+
name: 'label',
|
|
221
|
+
type: { kind: 'terminal', name: 'string' },
|
|
222
|
+
optional: false,
|
|
223
|
+
}, { name: 'detail', type: { kind: 'terminal', name: 'string' }, optional: true }],
|
|
224
|
+
open: false,
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
true,
|
|
228
|
+
true,
|
|
229
|
+
)
|
|
230
|
+
case 'searchable':
|
|
231
|
+
return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
|
|
232
|
+
case 'selected':
|
|
233
|
+
return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
|
|
234
|
+
case 'status':
|
|
235
|
+
return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
|
|
236
|
+
case 'text':
|
|
237
|
+
return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
|
|
238
|
+
case 'textEditable':
|
|
239
|
+
return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
|
|
240
|
+
case 'value':
|
|
241
|
+
return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
|
|
242
|
+
default:
|
|
243
|
+
return { ok: false }
|
|
244
|
+
}
|
|
245
|
+
}, () => {
|
|
246
|
+
void checkedProps.value
|
|
247
|
+
})
|
|
248
|
+
const propInputs = inputTracking.inputs
|
|
249
|
+
const checkedProps = computed(() => {
|
|
250
|
+
void inputTracking.version.value
|
|
251
|
+
return ({
|
|
252
|
+
error: propInputs.value<string | null>(
|
|
253
|
+
'error',
|
|
254
|
+
props['error'],
|
|
255
|
+
props[BINDING_INPUTS_PROP],
|
|
256
|
+
) as string,
|
|
257
|
+
existing: propInputs.value<boolean | null>(
|
|
258
|
+
'existing',
|
|
259
|
+
props['existing'],
|
|
260
|
+
props[BINDING_INPUTS_PROP],
|
|
261
|
+
) as boolean,
|
|
262
|
+
mode: propInputs.value<'url' | 'target' | null>(
|
|
263
|
+
'mode',
|
|
264
|
+
props['mode'],
|
|
265
|
+
props[BINDING_INPUTS_PROP],
|
|
266
|
+
) as 'url' | 'target',
|
|
267
|
+
newTab: propInputs.value<boolean | null>(
|
|
268
|
+
'newTab',
|
|
269
|
+
props['newTab'],
|
|
270
|
+
props[BINDING_INPUTS_PROP],
|
|
271
|
+
) as boolean,
|
|
272
|
+
placeholder: propInputs.value<string | null>(
|
|
273
|
+
'placeholder',
|
|
274
|
+
props['placeholder'],
|
|
275
|
+
props[BINDING_INPUTS_PROP],
|
|
276
|
+
) as string,
|
|
277
|
+
results: propInputs.value<
|
|
278
|
+
| readonly ({
|
|
279
|
+
readonly id: string
|
|
280
|
+
readonly label: string
|
|
281
|
+
readonly detail?: string | null
|
|
282
|
+
})[]
|
|
283
|
+
| null
|
|
284
|
+
>('results', props['results'], props[BINDING_INPUTS_PROP]),
|
|
285
|
+
searchable: propInputs.value<boolean | null>(
|
|
286
|
+
'searchable',
|
|
287
|
+
props['searchable'],
|
|
288
|
+
props[BINDING_INPUTS_PROP],
|
|
289
|
+
) as boolean,
|
|
290
|
+
selected: propInputs.value<string | null>(
|
|
291
|
+
'selected',
|
|
292
|
+
props['selected'],
|
|
293
|
+
props[BINDING_INPUTS_PROP],
|
|
294
|
+
) as string,
|
|
295
|
+
status: propInputs.value<string | null>(
|
|
296
|
+
'status',
|
|
297
|
+
props['status'],
|
|
298
|
+
props[BINDING_INPUTS_PROP],
|
|
299
|
+
) as string,
|
|
300
|
+
text: propInputs.value<string | null>(
|
|
301
|
+
'text',
|
|
302
|
+
props['text'],
|
|
303
|
+
props[BINDING_INPUTS_PROP],
|
|
304
|
+
) as string,
|
|
305
|
+
textEditable: propInputs.value<boolean | null>(
|
|
306
|
+
'textEditable',
|
|
307
|
+
props['textEditable'],
|
|
308
|
+
props[BINDING_INPUTS_PROP],
|
|
309
|
+
) as boolean,
|
|
310
|
+
value: propInputs.value<string | null>(
|
|
311
|
+
'value',
|
|
312
|
+
props['value'],
|
|
313
|
+
props[BINDING_INPUTS_PROP],
|
|
314
|
+
) as string,
|
|
315
|
+
})
|
|
316
|
+
})
|
|
317
|
+
const inputStatus = (name: string, handlesError: boolean) => {
|
|
318
|
+
void checkedProps.value
|
|
319
|
+
void inputTracking.version.value
|
|
320
|
+
return requireInputStatus(propInputs.status(name), handlesError)
|
|
321
|
+
}
|
|
267
322
|
void checkedProps.value
|
|
268
323
|
watchSyncEffect(() => {
|
|
269
324
|
void checkedProps.value
|
|
@@ -286,35 +341,47 @@ const emit = defineEmits<{
|
|
|
286
341
|
const root = ref<HTMLElement | null>(null)
|
|
287
342
|
const base = ref('ui-editor-link-form')
|
|
288
343
|
let headingPrevious: any = null
|
|
289
|
-
const heading =
|
|
290
|
-
|
|
291
|
-
objectValue
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
}
|
|
344
|
+
const heading: ReturnType<typeof inputComputed<any>> = inputComputed<any>(
|
|
345
|
+
() => {
|
|
346
|
+
return ((objectValue: any, indexValue: any) =>
|
|
347
|
+
objectValue === Symbol.for('html-next.invalid-result')
|
|
348
|
+
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
349
|
+
? Symbol.for('html-next.invalid-result')
|
|
350
|
+
: objectValue[indexValue])(
|
|
351
|
+
{ true: 'Edit link', false: 'Add link' },
|
|
352
|
+
concat(inputRead(checkedProps.value.existing, propInputs.status('existing'))),
|
|
353
|
+
) as any
|
|
354
|
+
},
|
|
355
|
+
(read) => {
|
|
356
|
+
const value = cycleCheckedComputed(read)
|
|
357
|
+
return { get: () => value.value }
|
|
358
|
+
},
|
|
359
|
+
next =>
|
|
360
|
+
(next as unknown) === Symbol.for('html-next.invalid-result')
|
|
361
|
+
? headingPrevious
|
|
362
|
+
: (headingPrevious = next),
|
|
363
|
+
)
|
|
303
364
|
let fieldLabelPrevious: any = null
|
|
304
|
-
const fieldLabel =
|
|
305
|
-
|
|
306
|
-
objectValue
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
}
|
|
365
|
+
const fieldLabel: ReturnType<typeof inputComputed<any>> = inputComputed<any>(
|
|
366
|
+
() => {
|
|
367
|
+
return ((objectValue: any, indexValue: any) =>
|
|
368
|
+
objectValue === Symbol.for('html-next.invalid-result')
|
|
369
|
+
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
370
|
+
? Symbol.for('html-next.invalid-result')
|
|
371
|
+
: objectValue[indexValue])(
|
|
372
|
+
{ true: 'Link destination', false: 'URL' },
|
|
373
|
+
concat(inputRead(checkedProps.value.searchable, propInputs.status('searchable'))),
|
|
374
|
+
) as any
|
|
375
|
+
},
|
|
376
|
+
(read) => {
|
|
377
|
+
const value = cycleCheckedComputed(read)
|
|
378
|
+
return { get: () => value.value }
|
|
379
|
+
},
|
|
380
|
+
next =>
|
|
381
|
+
(next as unknown) === Symbol.for('html-next.invalid-result')
|
|
382
|
+
? fieldLabelPrevious
|
|
383
|
+
: (fieldLabelPrevious = next),
|
|
384
|
+
)
|
|
318
385
|
let guardedPrevious: any = null
|
|
319
386
|
const guarded = computed(() => {
|
|
320
387
|
const candidate: any = concat(base.value, '-destination')
|
|
@@ -323,17 +390,8 @@ const guarded = computed(() => {
|
|
|
323
390
|
})
|
|
324
391
|
let guardedBindingPrevious: any = null
|
|
325
392
|
const guardedBinding = computed(() => {
|
|
326
|
-
const candidate: any = (
|
|
327
|
-
|
|
328
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
329
|
-
? Symbol.for('html-next.invalid-result')
|
|
330
|
-
: objectValue[indexValue])(
|
|
331
|
-
{ true: 'search', false: 'link' },
|
|
332
|
-
concat(checkedProps.value.mode === 'target'),
|
|
333
|
-
)
|
|
334
|
-
if (candidate === Symbol.for('html-next.invalid-result')) {
|
|
335
|
-
return guardedBindingPrevious
|
|
336
|
-
}
|
|
393
|
+
const candidate: any = concat(base.value, '-destination')
|
|
394
|
+
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBindingPrevious
|
|
337
395
|
return guardedBindingPrevious = candidate
|
|
338
396
|
})
|
|
339
397
|
let guardedBinding2Previous: any = null
|
|
@@ -344,7 +402,7 @@ const guardedBinding2 = computed(() => {
|
|
|
344
402
|
})
|
|
345
403
|
let guardedBinding3Previous: any = null
|
|
346
404
|
const guardedBinding3 = computed(() => {
|
|
347
|
-
const candidate: any = concat(base.value, '-
|
|
405
|
+
const candidate: any = concat(base.value, '-text')
|
|
348
406
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding3Previous
|
|
349
407
|
return guardedBinding3Previous = candidate
|
|
350
408
|
})
|
|
@@ -354,12 +412,6 @@ const guardedBinding4 = computed(() => {
|
|
|
354
412
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding4Previous
|
|
355
413
|
return guardedBinding4Previous = candidate
|
|
356
414
|
})
|
|
357
|
-
let guardedBinding5Previous: any = null
|
|
358
|
-
const guardedBinding5 = computed(() => {
|
|
359
|
-
const candidate: any = concat(base.value, '-text')
|
|
360
|
-
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding5Previous
|
|
361
|
-
return guardedBinding5Previous = candidate
|
|
362
|
-
})
|
|
363
415
|
provide('html-next:ui-editor-link-form:base', base)
|
|
364
416
|
checkHydratedRoot('form', 'ui-editor-link-form')
|
|
365
417
|
|
|
@@ -409,11 +461,14 @@ useComponentHost(() => import('../components/ui-editor-link-form/ui-editor-link-
|
|
|
409
461
|
({ base: { kind: 'terminal', name: 'string' } } as Record<string, any>)[name],
|
|
410
462
|
keys,
|
|
411
463
|
),
|
|
464
|
+
initials: { base: 'ui-editor-link-form' },
|
|
412
465
|
controllerSource: {
|
|
413
466
|
specifier: '../components/ui-editor-link-form/ui-editor-link-form.js',
|
|
414
467
|
definition: './components/ui-editor-link-form/ui-editor-link-form.html',
|
|
415
468
|
},
|
|
416
469
|
props: checkedProps,
|
|
470
|
+
inputs: propInputs,
|
|
471
|
+
inputTracking,
|
|
417
472
|
propInputs: (name: string) => {
|
|
418
473
|
const incoming = hydrationInstance?.vnode.props
|
|
419
474
|
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
@@ -439,6 +494,7 @@ useComponentHost(() => import('../components/ui-editor-link-form/ui-editor-link-
|
|
|
439
494
|
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
440
495
|
state: { base },
|
|
441
496
|
computed: { heading, fieldLabel },
|
|
497
|
+
availability: { heading: () => heading.status(), fieldLabel: () => fieldLabel.status() },
|
|
442
498
|
})
|
|
443
499
|
</script>
|
|
444
500
|
|
|
@@ -462,89 +518,141 @@ useComponentHost(() => import('../components/ui-editor-link-form/ui-editor-link-
|
|
|
462
518
|
:data-ui-editor-link-form-prop-value="reflectedProp('value', 'value', checkedProps.value, undefined, false)"
|
|
463
519
|
ref="root"
|
|
464
520
|
>
|
|
465
|
-
<UiStack gap="s"><UiText as="h3" size="sm" weight="semibold">{{
|
|
466
|
-
|
|
467
|
-
}}<UiStack gap="s"><
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
521
|
+
<UiStack gap="s"><UiText as="h3" size="sm" weight="semibold">{{
|
|
522
|
+
text(heading.get())
|
|
523
|
+
}}</UiText>{{ ' ' }}<UiStack gap="s"><template
|
|
524
|
+
v-for="boundInput in [evaluateInput(
|
|
525
|
+
() => (inputRead(checkedProps.error, inputStatus('error', true)) !== '') as any,
|
|
526
|
+
READY_INPUT,
|
|
527
|
+
)]"
|
|
528
|
+
><UiFormField
|
|
529
|
+
:invalid="boundInput.value"
|
|
530
|
+
v-bind="{ [BINDING_INPUTS_PROP]: { invalid: () => boundInput } }"
|
|
531
|
+
><UiInputGroup v-if="checkedProps.searchable" prefix-kind="icon"><UiInput
|
|
532
|
+
data-link-destination=""
|
|
533
|
+
data-link-search=""
|
|
534
|
+
type="text"
|
|
535
|
+
role="searchbox"
|
|
536
|
+
autocomplete="off"
|
|
537
|
+
:id="guardedBinding"
|
|
538
|
+
:placeholder="checkedProps.placeholder"
|
|
539
|
+
:value="checkedProps.value"
|
|
540
|
+
v-bind="{
|
|
541
|
+
[BINDING_INPUTS_PROP]: {
|
|
542
|
+
value: () => ({ value: checkedProps.value, status: inputStatus('value', true) }),
|
|
543
|
+
},
|
|
544
|
+
}"
|
|
545
|
+
/>
|
|
546
|
+
<template #prefix><template
|
|
547
|
+
v-for="boundInputSnapshot in [evaluateInput(
|
|
548
|
+
() =>
|
|
549
|
+
(((objectValue: any, indexValue: any) =>
|
|
550
|
+
objectValue === Symbol.for('html-next.invalid-result')
|
|
551
|
+
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
552
|
+
? Symbol.for('html-next.invalid-result')
|
|
553
|
+
: objectValue[indexValue])(
|
|
554
|
+
{ true: 'search', false: 'link' },
|
|
555
|
+
concat(inputRead(checkedProps.mode, inputStatus('mode', true)) === 'target'),
|
|
556
|
+
)) as any,
|
|
557
|
+
READY_INPUT,
|
|
558
|
+
)]"
|
|
559
|
+
><UiIcon
|
|
560
|
+
slot="prefix"
|
|
561
|
+
:name="boundInputSnapshot.value"
|
|
562
|
+
v-bind="{ [BINDING_INPUTS_PROP]: { name: () => boundInputSnapshot } }"
|
|
563
|
+
/></template></template>
|
|
564
|
+
<template #action><UiIconButton
|
|
565
|
+
v-if="checkedProps.value !== ''"
|
|
566
|
+
slot="action"
|
|
567
|
+
label="Clear search"
|
|
568
|
+
variant="ghost"
|
|
569
|
+
size="sm"
|
|
570
|
+
data-link-clear=""
|
|
571
|
+
><UiIcon name="x" /></UiIconButton></template></UiInputGroup>{{ ' ' }}<template
|
|
572
|
+
v-if="!checkedProps.searchable"
|
|
573
|
+
>{{ ' ' }}<UiInput
|
|
574
|
+
data-link-destination=""
|
|
575
|
+
type="text"
|
|
576
|
+
inputmode="url"
|
|
486
577
|
size="sm"
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
<template #label><label slot="label" :for="guarded">{{
|
|
500
|
-
text(fieldLabel)
|
|
501
|
-
}}</label></template></UiFormField>{{ ' ' }}<UiScrollArea
|
|
578
|
+
:id="guardedBinding2"
|
|
579
|
+
:placeholder="checkedProps.placeholder"
|
|
580
|
+
:value="checkedProps.value"
|
|
581
|
+
v-bind="{
|
|
582
|
+
[BINDING_INPUTS_PROP]: {
|
|
583
|
+
value: () => ({ value: checkedProps.value, status: inputStatus('value', true) }),
|
|
584
|
+
},
|
|
585
|
+
}"
|
|
586
|
+
/>{{ ' ' }}</template>
|
|
587
|
+
<template #label><label slot="label" :for="guarded">{{
|
|
588
|
+
text(fieldLabel.get())
|
|
589
|
+
}}</label></template></UiFormField></template>{{ ' ' }}<UiScrollArea
|
|
502
590
|
v-if="checkedProps.mode === 'target'"
|
|
503
591
|
size="sm"
|
|
504
592
|
aria-label="Destination search results"
|
|
505
593
|
><UiText v-if="checkedProps.status !== ''" size="sm" tone="secondary" role="status">{{
|
|
506
594
|
checkedProps.status
|
|
507
|
-
}}</UiText>{{ ' ' }}<KeyedBoundary><
|
|
595
|
+
}}</UiText>{{ ' ' }}<KeyedBoundary><template
|
|
508
596
|
v-for="result in uniqueKeys(checkedProps.results ?? [], (result, index, loop) => result.id)"
|
|
509
597
|
:key="result.id"
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
598
|
+
><template
|
|
599
|
+
v-for="boundInputSnapshot2 in [evaluateInput(
|
|
600
|
+
() => (result.id === inputRead(checkedProps.selected, inputStatus('selected', true))) as any,
|
|
601
|
+
READY_INPUT,
|
|
602
|
+
)]"
|
|
603
|
+
><UiSearchResultRow
|
|
604
|
+
density="compact"
|
|
605
|
+
data-link-result=""
|
|
606
|
+
:selected="boundInputSnapshot2.value"
|
|
607
|
+
:data-link-id="result.id"
|
|
608
|
+
v-bind="{ [BINDING_INPUTS_PROP]: { selected: () => boundInputSnapshot2 } }"
|
|
609
|
+
><template #leading><UiIcon slot="leading" name="file-text" /></template>
|
|
610
|
+
<template #title><UiText
|
|
611
|
+
slot="title"
|
|
612
|
+
as="strong"
|
|
613
|
+
size="sm"
|
|
614
|
+
weight="medium"
|
|
615
|
+
:truncate="true"
|
|
616
|
+
:title="result.label"
|
|
617
|
+
>{{ result.label }}</UiText></template>
|
|
618
|
+
<template #meta><UiText
|
|
619
|
+
v-if="result.detail"
|
|
620
|
+
slot="meta"
|
|
621
|
+
as="span"
|
|
622
|
+
size="xs"
|
|
623
|
+
tone="secondary"
|
|
624
|
+
:truncate="true"
|
|
625
|
+
:title="result.detail"
|
|
626
|
+
>{{ result.detail }}</UiText></template>
|
|
627
|
+
<template #trailing><UiIcon
|
|
628
|
+
v-if="result.id === checkedProps.selected"
|
|
629
|
+
slot="trailing"
|
|
630
|
+
name="check"
|
|
631
|
+
/></template></UiSearchResultRow></template></template></KeyedBoundary></UiScrollArea>{{
|
|
632
|
+
' '
|
|
633
|
+
}}<template v-if="checkedProps.mode === 'url'">{{ ' ' }}<UiCheckbox
|
|
634
|
+
size="sm"
|
|
635
|
+
data-link-new-tab=""
|
|
636
|
+
:checked="checkedProps.newTab"
|
|
637
|
+
v-bind="{
|
|
638
|
+
[BINDING_INPUTS_PROP]: {
|
|
639
|
+
checked: () => ({ value: checkedProps.newTab, status: inputStatus('newTab', true) }),
|
|
640
|
+
},
|
|
641
|
+
}"
|
|
539
642
|
>Open in new tab</UiCheckbox>{{ ' ' }}</template></UiStack>{{ ' ' }}<template
|
|
540
643
|
v-if="checkedProps.textEditable"
|
|
541
644
|
>{{ ' ' }}<UiFormField><UiInput
|
|
542
645
|
data-link-text=""
|
|
543
646
|
size="sm"
|
|
544
|
-
:id="
|
|
647
|
+
:id="guardedBinding4"
|
|
545
648
|
:value="checkedProps.text"
|
|
649
|
+
v-bind="{
|
|
650
|
+
[BINDING_INPUTS_PROP]: {
|
|
651
|
+
value: () => ({ value: checkedProps.text, status: inputStatus('text', true) }),
|
|
652
|
+
},
|
|
653
|
+
}"
|
|
546
654
|
/>
|
|
547
|
-
<template #label><label slot="label" :for="
|
|
655
|
+
<template #label><label slot="label" :for="guardedBinding3"
|
|
548
656
|
>Text</label></template></UiFormField>{{ ' ' }}</template>{{ ' ' }}<UiText
|
|
549
657
|
v-if="checkedProps.error !== ''"
|
|
550
658
|
size="sm"
|