@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
|
@@ -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, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -11,7 +11,21 @@ import {
|
|
|
11
11
|
useReflectedProp,
|
|
12
12
|
} from './host'
|
|
13
13
|
import { acceptsControllerWrite } from './props'
|
|
14
|
-
import {
|
|
14
|
+
import {
|
|
15
|
+
BINDING_INPUTS_PROP,
|
|
16
|
+
checkedProp,
|
|
17
|
+
checkPropInput,
|
|
18
|
+
evaluateInput,
|
|
19
|
+
type InputBindings,
|
|
20
|
+
inputDefault,
|
|
21
|
+
inputRead,
|
|
22
|
+
propValidityState,
|
|
23
|
+
READY_INPUT,
|
|
24
|
+
requireInputStatus,
|
|
25
|
+
UNRESOLVED_INPUT,
|
|
26
|
+
vPropValidity,
|
|
27
|
+
vuePropInputs,
|
|
28
|
+
} from './props'
|
|
15
29
|
import UiButton from './UiButton.vue'
|
|
16
30
|
import UiCluster from './UiCluster.vue'
|
|
17
31
|
import UiEditorToolbar from './UiEditorToolbar.vue'
|
|
@@ -54,37 +68,55 @@ const propValidityContract = {
|
|
|
54
68
|
},
|
|
55
69
|
} as const
|
|
56
70
|
const props = defineProps({
|
|
57
|
-
alt: { type: null as unknown as PropType<string | null
|
|
71
|
+
alt: { type: null as unknown as PropType<string | null> },
|
|
58
72
|
placement: {
|
|
59
73
|
type: null as unknown as PropType<'block' | 'center' | 'wrap-left' | 'wrap-right' | null>,
|
|
60
|
-
default: 'block',
|
|
61
74
|
},
|
|
62
|
-
target: { type: null as unknown as PropType<string | null
|
|
75
|
+
target: { type: null as unknown as PropType<string | null> },
|
|
76
|
+
[BINDING_INPUTS_PROP]: { type: null as unknown as PropType<InputBindings> },
|
|
63
77
|
})
|
|
64
78
|
const acceptedProps: Record<string, unknown> = { alt: '', placement: 'block', target: '' }
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
79
|
+
const inputTracking = vuePropInputs(
|
|
80
|
+
acceptedProps,
|
|
81
|
+
{ alt: '', placement: 'block', target: '' },
|
|
82
|
+
(name, value, source, values) => {
|
|
83
|
+
switch (name) {
|
|
84
|
+
case 'alt':
|
|
85
|
+
return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
|
|
86
|
+
case 'placement':
|
|
87
|
+
return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
|
|
88
|
+
case 'target':
|
|
89
|
+
return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
|
|
90
|
+
default:
|
|
91
|
+
return { ok: false }
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
() => {
|
|
95
|
+
void checkedProps.value
|
|
96
|
+
},
|
|
97
|
+
)
|
|
98
|
+
const propInputs = inputTracking.inputs
|
|
99
|
+
const checkedProps = computed(() => {
|
|
100
|
+
void inputTracking.version.value
|
|
101
|
+
return ({
|
|
102
|
+
alt: propInputs.value<string | null>('alt', props['alt'], props[BINDING_INPUTS_PROP]) as string,
|
|
103
|
+
placement: propInputs.value<'block' | 'center' | 'wrap-left' | 'wrap-right' | null>(
|
|
104
|
+
'placement',
|
|
105
|
+
props['placement'],
|
|
106
|
+
props[BINDING_INPUTS_PROP],
|
|
107
|
+
) as 'block' | 'center' | 'wrap-left' | 'wrap-right',
|
|
108
|
+
target: propInputs.value<string | null>(
|
|
109
|
+
'target',
|
|
110
|
+
props['target'],
|
|
111
|
+
props[BINDING_INPUTS_PROP],
|
|
112
|
+
) as string,
|
|
113
|
+
})
|
|
114
|
+
})
|
|
115
|
+
const inputStatus = (name: string, handlesError: boolean) => {
|
|
116
|
+
void checkedProps.value
|
|
117
|
+
void inputTracking.version.value
|
|
118
|
+
return requireInputStatus(propInputs.status(name), handlesError)
|
|
119
|
+
}
|
|
88
120
|
void checkedProps.value
|
|
89
121
|
watchSyncEffect(() => {
|
|
90
122
|
void checkedProps.value
|
|
@@ -115,154 +147,94 @@ const guarded = computed(() => {
|
|
|
115
147
|
})
|
|
116
148
|
let guardedBindingPrevious: any = null
|
|
117
149
|
const guardedBinding = computed(() => {
|
|
118
|
-
const candidate: any = (
|
|
119
|
-
|
|
120
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
121
|
-
? Symbol.for('html-next.invalid-result')
|
|
122
|
-
: objectValue[indexValue])(
|
|
123
|
-
{ true: 'outline', false: 'ghost' },
|
|
124
|
-
concat(checkedProps.value.placement === 'block'),
|
|
125
|
-
)
|
|
126
|
-
if (candidate === Symbol.for('html-next.invalid-result')) {
|
|
127
|
-
return guardedBindingPrevious
|
|
128
|
-
}
|
|
150
|
+
const candidate: any = concat(checkedProps.value.placement === 'block')
|
|
151
|
+
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBindingPrevious
|
|
129
152
|
return guardedBindingPrevious = candidate
|
|
130
153
|
})
|
|
131
154
|
let guardedBinding2Previous: any = null
|
|
132
155
|
const guardedBinding2 = computed(() => {
|
|
133
|
-
const candidate: any = concat(
|
|
156
|
+
const candidate: any = concat(base.value, '-center')
|
|
134
157
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding2Previous
|
|
135
158
|
return guardedBinding2Previous = candidate
|
|
136
159
|
})
|
|
137
160
|
let guardedBinding3Previous: any = null
|
|
138
161
|
const guardedBinding3 = computed(() => {
|
|
139
|
-
const candidate: any = concat(
|
|
162
|
+
const candidate: any = concat(checkedProps.value.placement === 'center')
|
|
140
163
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding3Previous
|
|
141
164
|
return guardedBinding3Previous = candidate
|
|
142
165
|
})
|
|
143
166
|
let guardedBinding4Previous: any = null
|
|
144
167
|
const guardedBinding4 = computed(() => {
|
|
145
|
-
const candidate: any = (
|
|
146
|
-
|
|
147
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
148
|
-
? Symbol.for('html-next.invalid-result')
|
|
149
|
-
: objectValue[indexValue])(
|
|
150
|
-
{ true: 'outline', false: 'ghost' },
|
|
151
|
-
concat(checkedProps.value.placement === 'center'),
|
|
152
|
-
)
|
|
153
|
-
if (candidate === Symbol.for('html-next.invalid-result')) {
|
|
154
|
-
return guardedBinding4Previous
|
|
155
|
-
}
|
|
168
|
+
const candidate: any = concat(base.value, '-wrap-left')
|
|
169
|
+
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding4Previous
|
|
156
170
|
return guardedBinding4Previous = candidate
|
|
157
171
|
})
|
|
158
172
|
let guardedBinding5Previous: any = null
|
|
159
173
|
const guardedBinding5 = computed(() => {
|
|
160
|
-
const candidate: any = concat(checkedProps.value.placement === '
|
|
174
|
+
const candidate: any = concat(checkedProps.value.placement === 'wrap-left')
|
|
161
175
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding5Previous
|
|
162
176
|
return guardedBinding5Previous = candidate
|
|
163
177
|
})
|
|
164
178
|
let guardedBinding6Previous: any = null
|
|
165
179
|
const guardedBinding6 = computed(() => {
|
|
166
|
-
const candidate: any = concat(base.value, '-wrap-
|
|
180
|
+
const candidate: any = concat(base.value, '-wrap-right')
|
|
167
181
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding6Previous
|
|
168
182
|
return guardedBinding6Previous = candidate
|
|
169
183
|
})
|
|
170
184
|
let guardedBinding7Previous: any = null
|
|
171
185
|
const guardedBinding7 = computed(() => {
|
|
172
|
-
const candidate: any = (
|
|
173
|
-
|
|
174
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
175
|
-
? Symbol.for('html-next.invalid-result')
|
|
176
|
-
: objectValue[indexValue])(
|
|
177
|
-
{ true: 'outline', false: 'ghost' },
|
|
178
|
-
concat(checkedProps.value.placement === 'wrap-left'),
|
|
179
|
-
)
|
|
180
|
-
if (candidate === Symbol.for('html-next.invalid-result')) {
|
|
181
|
-
return guardedBinding7Previous
|
|
182
|
-
}
|
|
186
|
+
const candidate: any = concat(checkedProps.value.placement === 'wrap-right')
|
|
187
|
+
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding7Previous
|
|
183
188
|
return guardedBinding7Previous = candidate
|
|
184
189
|
})
|
|
185
190
|
let guardedBinding8Previous: any = null
|
|
186
191
|
const guardedBinding8 = computed(() => {
|
|
187
|
-
const candidate: any = concat(
|
|
192
|
+
const candidate: any = concat(base.value, '-delete')
|
|
188
193
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding8Previous
|
|
189
194
|
return guardedBinding8Previous = candidate
|
|
190
195
|
})
|
|
191
196
|
let guardedBinding9Previous: any = null
|
|
192
197
|
const guardedBinding9 = computed(() => {
|
|
193
|
-
const candidate: any = concat(base.value, '-
|
|
198
|
+
const candidate: any = concat(base.value, '-block')
|
|
194
199
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding9Previous
|
|
195
200
|
return guardedBinding9Previous = candidate
|
|
196
201
|
})
|
|
197
202
|
let guardedBinding10Previous: any = null
|
|
198
203
|
const guardedBinding10 = computed(() => {
|
|
199
|
-
const candidate: any = (
|
|
200
|
-
|
|
201
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
202
|
-
? Symbol.for('html-next.invalid-result')
|
|
203
|
-
: objectValue[indexValue])(
|
|
204
|
-
{ true: 'outline', false: 'ghost' },
|
|
205
|
-
concat(checkedProps.value.placement === 'wrap-right'),
|
|
206
|
-
)
|
|
207
|
-
if (candidate === Symbol.for('html-next.invalid-result')) {
|
|
208
|
-
return guardedBinding10Previous
|
|
209
|
-
}
|
|
204
|
+
const candidate: any = concat(base.value, '-center')
|
|
205
|
+
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding10Previous
|
|
210
206
|
return guardedBinding10Previous = candidate
|
|
211
207
|
})
|
|
212
208
|
let guardedBinding11Previous: any = null
|
|
213
209
|
const guardedBinding11 = computed(() => {
|
|
214
|
-
const candidate: any = concat(
|
|
210
|
+
const candidate: any = concat(base.value, '-wrap-left')
|
|
215
211
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding11Previous
|
|
216
212
|
return guardedBinding11Previous = candidate
|
|
217
213
|
})
|
|
218
214
|
let guardedBinding12Previous: any = null
|
|
219
215
|
const guardedBinding12 = computed(() => {
|
|
220
|
-
const candidate: any = concat(base.value, '-
|
|
216
|
+
const candidate: any = concat(base.value, '-wrap-right')
|
|
221
217
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding12Previous
|
|
222
218
|
return guardedBinding12Previous = candidate
|
|
223
219
|
})
|
|
224
220
|
let guardedBinding13Previous: any = null
|
|
225
221
|
const guardedBinding13 = computed(() => {
|
|
226
|
-
const candidate: any = concat(base.value, '-
|
|
222
|
+
const candidate: any = concat(base.value, '-delete')
|
|
227
223
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding13Previous
|
|
228
224
|
return guardedBinding13Previous = candidate
|
|
229
225
|
})
|
|
230
226
|
let guardedBinding14Previous: any = null
|
|
231
227
|
const guardedBinding14 = computed(() => {
|
|
232
|
-
const candidate: any = concat(base.value, '-
|
|
228
|
+
const candidate: any = concat(base.value, '-alt')
|
|
233
229
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding14Previous
|
|
234
230
|
return guardedBinding14Previous = candidate
|
|
235
231
|
})
|
|
236
232
|
let guardedBinding15Previous: any = null
|
|
237
233
|
const guardedBinding15 = computed(() => {
|
|
238
|
-
const candidate: any = concat(base.value, '-
|
|
234
|
+
const candidate: any = concat(base.value, '-alt')
|
|
239
235
|
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding15Previous
|
|
240
236
|
return guardedBinding15Previous = candidate
|
|
241
237
|
})
|
|
242
|
-
let guardedBinding16Previous: any = null
|
|
243
|
-
const guardedBinding16 = computed(() => {
|
|
244
|
-
const candidate: any = concat(base.value, '-wrap-right')
|
|
245
|
-
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding16Previous
|
|
246
|
-
return guardedBinding16Previous = candidate
|
|
247
|
-
})
|
|
248
|
-
let guardedBinding17Previous: any = null
|
|
249
|
-
const guardedBinding17 = computed(() => {
|
|
250
|
-
const candidate: any = concat(base.value, '-delete')
|
|
251
|
-
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding17Previous
|
|
252
|
-
return guardedBinding17Previous = candidate
|
|
253
|
-
})
|
|
254
|
-
let guardedBinding18Previous: any = null
|
|
255
|
-
const guardedBinding18 = computed(() => {
|
|
256
|
-
const candidate: any = concat(base.value, '-alt')
|
|
257
|
-
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding18Previous
|
|
258
|
-
return guardedBinding18Previous = candidate
|
|
259
|
-
})
|
|
260
|
-
let guardedBinding19Previous: any = null
|
|
261
|
-
const guardedBinding19 = computed(() => {
|
|
262
|
-
const candidate: any = concat(base.value, '-alt')
|
|
263
|
-
if (candidate === Symbol.for('html-next.invalid-result')) return guardedBinding19Previous
|
|
264
|
-
return guardedBinding19Previous = candidate
|
|
265
|
-
})
|
|
266
238
|
provide('html-next:ui-editor-image-toolbar:base', base)
|
|
267
239
|
provide('html-next:ui-editor-image-toolbar:describing', describing)
|
|
268
240
|
provide('html-next:ui-editor-image-toolbar:draft', draft)
|
|
@@ -307,11 +279,14 @@ useComponentHost(() => import('../components/ui-editor-image-toolbar/ui-editor-i
|
|
|
307
279
|
} as Record<string, any>)[name],
|
|
308
280
|
keys,
|
|
309
281
|
),
|
|
282
|
+
initials: { base: 'ui-editor-image-toolbar', describing: false, draft: '' },
|
|
310
283
|
controllerSource: {
|
|
311
284
|
specifier: '../components/ui-editor-image-toolbar/ui-editor-image-toolbar.js',
|
|
312
285
|
definition: './components/ui-editor-image-toolbar/ui-editor-image-toolbar.html',
|
|
313
286
|
},
|
|
314
287
|
props: checkedProps,
|
|
288
|
+
inputs: propInputs,
|
|
289
|
+
inputTracking,
|
|
315
290
|
propInputs: (name: string) => {
|
|
316
291
|
const incoming = hydrationInstance?.vnode.props
|
|
317
292
|
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
@@ -340,35 +315,91 @@ useComponentHost(() => import('../components/ui-editor-image-toolbar/ui-editor-i
|
|
|
340
315
|
<UiText as="div" font="sans"><UiEditorToolbar
|
|
341
316
|
:floating="true"
|
|
342
317
|
aria-label="Image actions"
|
|
343
|
-
><
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
318
|
+
><template
|
|
319
|
+
v-for="boundInput in [evaluateInput(
|
|
320
|
+
() =>
|
|
321
|
+
(((objectValue: any, indexValue: any) =>
|
|
322
|
+
objectValue === Symbol.for('html-next.invalid-result')
|
|
323
|
+
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
324
|
+
? Symbol.for('html-next.invalid-result')
|
|
325
|
+
: objectValue[indexValue])(
|
|
326
|
+
{ true: 'outline', false: 'ghost' },
|
|
327
|
+
concat(inputRead(checkedProps.placement, inputStatus('placement', true)) === 'block'),
|
|
328
|
+
)) as any,
|
|
329
|
+
READY_INPUT,
|
|
330
|
+
)]"
|
|
331
|
+
><UiIconButton
|
|
332
|
+
label="Image in line"
|
|
333
|
+
size="sm"
|
|
334
|
+
data-placement="block"
|
|
335
|
+
:id="guarded"
|
|
336
|
+
:variant="boundInput.value"
|
|
337
|
+
:aria-pressed="guardedBinding"
|
|
338
|
+
v-bind="{ [BINDING_INPUTS_PROP]: { variant: () => boundInput } }"
|
|
339
|
+
><UiIcon name="panel-top" /></UiIconButton></template>{{ ' ' }}<template
|
|
340
|
+
v-for="boundInputSnapshot in [evaluateInput(
|
|
341
|
+
() =>
|
|
342
|
+
(((objectValue: any, indexValue: any) =>
|
|
343
|
+
objectValue === Symbol.for('html-next.invalid-result')
|
|
344
|
+
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
345
|
+
? Symbol.for('html-next.invalid-result')
|
|
346
|
+
: objectValue[indexValue])(
|
|
347
|
+
{ true: 'outline', false: 'ghost' },
|
|
348
|
+
concat(inputRead(checkedProps.placement, inputStatus('placement', true)) === 'center'),
|
|
349
|
+
)) as any,
|
|
350
|
+
READY_INPUT,
|
|
351
|
+
)]"
|
|
352
|
+
><UiIconButton
|
|
353
|
+
label="Center image"
|
|
354
|
+
size="sm"
|
|
355
|
+
data-placement="center"
|
|
356
|
+
:id="guardedBinding2"
|
|
357
|
+
:variant="boundInputSnapshot.value"
|
|
358
|
+
:aria-pressed="guardedBinding3"
|
|
359
|
+
v-bind="{ [BINDING_INPUTS_PROP]: { variant: () => boundInputSnapshot } }"
|
|
360
|
+
><UiIcon name="align-center" /></UiIconButton></template>{{ ' ' }}<template
|
|
361
|
+
v-for="boundInputSnapshot2 in [evaluateInput(
|
|
362
|
+
() =>
|
|
363
|
+
(((objectValue: any, indexValue: any) =>
|
|
364
|
+
objectValue === Symbol.for('html-next.invalid-result')
|
|
365
|
+
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
366
|
+
? Symbol.for('html-next.invalid-result')
|
|
367
|
+
: objectValue[indexValue])(
|
|
368
|
+
{ true: 'outline', false: 'ghost' },
|
|
369
|
+
concat(inputRead(checkedProps.placement, inputStatus('placement', true)) === 'wrap-left'),
|
|
370
|
+
)) as any,
|
|
371
|
+
READY_INPUT,
|
|
372
|
+
)]"
|
|
373
|
+
><UiIconButton
|
|
374
|
+
label="Wrap text to the right"
|
|
375
|
+
size="sm"
|
|
376
|
+
data-placement="wrap-left"
|
|
377
|
+
:id="guardedBinding4"
|
|
378
|
+
:variant="boundInputSnapshot2.value"
|
|
379
|
+
:aria-pressed="guardedBinding5"
|
|
380
|
+
v-bind="{ [BINDING_INPUTS_PROP]: { variant: () => boundInputSnapshot2 } }"
|
|
381
|
+
><UiIcon name="panel-left" /></UiIconButton></template>{{ ' ' }}<template
|
|
382
|
+
v-for="boundInputSnapshot3 in [evaluateInput(
|
|
383
|
+
() =>
|
|
384
|
+
(((objectValue: any, indexValue: any) =>
|
|
385
|
+
objectValue === Symbol.for('html-next.invalid-result')
|
|
386
|
+
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
387
|
+
? Symbol.for('html-next.invalid-result')
|
|
388
|
+
: objectValue[indexValue])(
|
|
389
|
+
{ true: 'outline', false: 'ghost' },
|
|
390
|
+
concat(inputRead(checkedProps.placement, inputStatus('placement', true)) === 'wrap-right'),
|
|
391
|
+
)) as any,
|
|
392
|
+
READY_INPUT,
|
|
393
|
+
)]"
|
|
394
|
+
><UiIconButton
|
|
395
|
+
label="Wrap text to the left"
|
|
396
|
+
size="sm"
|
|
397
|
+
data-placement="wrap-right"
|
|
398
|
+
:id="guardedBinding6"
|
|
399
|
+
:variant="boundInputSnapshot3.value"
|
|
400
|
+
:aria-pressed="guardedBinding7"
|
|
401
|
+
v-bind="{ [BINDING_INPUTS_PROP]: { variant: () => boundInputSnapshot3 } }"
|
|
402
|
+
><UiIcon name="panel-right" /></UiIconButton></template>{{ ' ' }}<UiIconButton
|
|
372
403
|
label="Image description"
|
|
373
404
|
size="sm"
|
|
374
405
|
variant="ghost"
|
|
@@ -378,14 +409,14 @@ useComponentHost(() => import('../components/ui-editor-image-toolbar/ui-editor-i
|
|
|
378
409
|
size="sm"
|
|
379
410
|
variant="ghost"
|
|
380
411
|
data-action="delete"
|
|
381
|
-
:id="
|
|
412
|
+
:id="guardedBinding8"
|
|
382
413
|
><UiIcon name="trash" /></UiIconButton></UiEditorToolbar>{{ ' ' }}<UiTooltip
|
|
383
|
-
:for="
|
|
384
|
-
>Image in line</UiTooltip>{{ ' ' }}<UiTooltip :for="
|
|
385
|
-
>Center image</UiTooltip>{{ ' ' }}<UiTooltip :for="
|
|
386
|
-
>Wrap text to the right</UiTooltip>{{ ' ' }}<UiTooltip :for="
|
|
414
|
+
:for="guardedBinding9"
|
|
415
|
+
>Image in line</UiTooltip>{{ ' ' }}<UiTooltip :for="guardedBinding10"
|
|
416
|
+
>Center image</UiTooltip>{{ ' ' }}<UiTooltip :for="guardedBinding11"
|
|
417
|
+
>Wrap text to the right</UiTooltip>{{ ' ' }}<UiTooltip :for="guardedBinding12"
|
|
387
418
|
>Wrap text to the left</UiTooltip>{{ ' ' }}<UiTooltip :for="base"
|
|
388
|
-
>Image description</UiTooltip>{{ ' ' }}<UiTooltip :for="
|
|
419
|
+
>Image description</UiTooltip>{{ ' ' }}<UiTooltip :for="guardedBinding13"
|
|
389
420
|
>Delete image</UiTooltip>{{ ' ' }}<UiPopover
|
|
390
421
|
size="sm"
|
|
391
422
|
aria-label="Image description"
|
|
@@ -395,11 +426,11 @@ useComponentHost(() => import('../components/ui-editor-image-toolbar/ui-editor-i
|
|
|
395
426
|
><form aria-label="Image description">
|
|
396
427
|
<UiStack gap="s"><UiFormField><UiInput
|
|
397
428
|
size="sm"
|
|
398
|
-
:id="
|
|
429
|
+
:id="guardedBinding15"
|
|
399
430
|
:value="draft"
|
|
400
431
|
ref="altElement"
|
|
401
432
|
/>
|
|
402
|
-
<template #label><label slot="label" :for="
|
|
433
|
+
<template #label><label slot="label" :for="guardedBinding14"
|
|
403
434
|
>Alt text</label></template></UiFormField>{{ ' ' }}<UiText
|
|
404
435
|
size="xs"
|
|
405
436
|
tone="secondary"
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
+
import { type InputBindings } from './props.js';
|
|
2
3
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
4
|
headerRow: {
|
|
4
5
|
type: PropType<boolean | null>;
|
|
5
|
-
default: boolean;
|
|
6
6
|
};
|
|
7
7
|
maxCols: {
|
|
8
8
|
type: PropType<number | null>;
|
|
9
|
-
default: number;
|
|
10
9
|
};
|
|
11
10
|
maxRows: {
|
|
12
11
|
type: PropType<number | null>;
|
|
13
|
-
default: number;
|
|
14
12
|
};
|
|
15
13
|
open: {
|
|
16
14
|
type: PropType<boolean | null>;
|
|
17
|
-
|
|
15
|
+
};
|
|
16
|
+
"\0htmlNextInputStatus": {
|
|
17
|
+
type: PropType<InputBindings>;
|
|
18
18
|
};
|
|
19
19
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
20
|
insert: (event: CustomEvent<{
|
|
@@ -25,19 +25,18 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
25
25
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
26
|
headerRow: {
|
|
27
27
|
type: PropType<boolean | null>;
|
|
28
|
-
default: boolean;
|
|
29
28
|
};
|
|
30
29
|
maxCols: {
|
|
31
30
|
type: PropType<number | null>;
|
|
32
|
-
default: number;
|
|
33
31
|
};
|
|
34
32
|
maxRows: {
|
|
35
33
|
type: PropType<number | null>;
|
|
36
|
-
default: number;
|
|
37
34
|
};
|
|
38
35
|
open: {
|
|
39
36
|
type: PropType<boolean | null>;
|
|
40
|
-
|
|
37
|
+
};
|
|
38
|
+
"\0htmlNextInputStatus": {
|
|
39
|
+
type: PropType<InputBindings>;
|
|
41
40
|
};
|
|
42
41
|
}>> & Readonly<{
|
|
43
42
|
onInsert?: ((event: CustomEvent<{
|
|
@@ -45,11 +44,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
45
44
|
readonly cols: number;
|
|
46
45
|
readonly withHeaderRow: boolean;
|
|
47
46
|
}>) => any) | undefined;
|
|
48
|
-
}>, {
|
|
49
|
-
open: boolean | null;
|
|
50
|
-
headerRow: boolean | null;
|
|
51
|
-
maxCols: number | null;
|
|
52
|
-
maxRows: number | null;
|
|
53
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
47
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
54
48
|
declare const _default: typeof __VLS_export;
|
|
55
49
|
export default _default;
|
|
@@ -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, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -14,7 +14,18 @@ import {
|
|
|
14
14
|
useReflectedProp,
|
|
15
15
|
} from './host'
|
|
16
16
|
import { acceptsControllerWrite } from './props'
|
|
17
|
-
import {
|
|
17
|
+
import {
|
|
18
|
+
BINDING_INPUTS_PROP,
|
|
19
|
+
checkedProp,
|
|
20
|
+
checkPropInput,
|
|
21
|
+
type InputBindings,
|
|
22
|
+
propValidityState,
|
|
23
|
+
READY_INPUT,
|
|
24
|
+
requireInputStatus,
|
|
25
|
+
UNRESOLVED_INPUT,
|
|
26
|
+
vPropValidity,
|
|
27
|
+
vuePropInputs,
|
|
28
|
+
} from './props'
|
|
18
29
|
|
|
19
30
|
defineOptions({ inheritAttrs: false })
|
|
20
31
|
|
|
@@ -51,10 +62,11 @@ const propValidityContract = {
|
|
|
51
62
|
},
|
|
52
63
|
} as const
|
|
53
64
|
const props = defineProps({
|
|
54
|
-
headerRow: { type: null as unknown as PropType<boolean | null
|
|
55
|
-
maxCols: { type: null as unknown as PropType<number | null
|
|
56
|
-
maxRows: { type: null as unknown as PropType<number | null
|
|
57
|
-
open: { type: null as unknown as PropType<boolean | null
|
|
65
|
+
headerRow: { type: null as unknown as PropType<boolean | null> },
|
|
66
|
+
maxCols: { type: null as unknown as PropType<number | null> },
|
|
67
|
+
maxRows: { type: null as unknown as PropType<number | null> },
|
|
68
|
+
open: { type: null as unknown as PropType<boolean | null> },
|
|
69
|
+
[BINDING_INPUTS_PROP]: { type: null as unknown as PropType<InputBindings> },
|
|
58
70
|
})
|
|
59
71
|
const acceptedProps: Record<string, unknown> = {
|
|
60
72
|
headerRow: false,
|
|
@@ -62,36 +74,58 @@ const acceptedProps: Record<string, unknown> = {
|
|
|
62
74
|
maxRows: 8,
|
|
63
75
|
open: false,
|
|
64
76
|
}
|
|
65
|
-
const
|
|
66
|
-
headerRow:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
77
|
+
const inputTracking = vuePropInputs(acceptedProps, {
|
|
78
|
+
headerRow: false,
|
|
79
|
+
maxCols: 8,
|
|
80
|
+
maxRows: 8,
|
|
81
|
+
open: false,
|
|
82
|
+
}, (name, value, source, values) => {
|
|
83
|
+
switch (name) {
|
|
84
|
+
case 'headerRow':
|
|
85
|
+
return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
|
|
86
|
+
case 'maxCols':
|
|
87
|
+
return checkPropInput(value, { kind: 'terminal', name: 'integer' }, true, true)
|
|
88
|
+
case 'maxRows':
|
|
89
|
+
return checkPropInput(value, { kind: 'terminal', name: 'integer' }, true, true)
|
|
90
|
+
case 'open':
|
|
91
|
+
return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
|
|
92
|
+
default:
|
|
93
|
+
return { ok: false }
|
|
94
|
+
}
|
|
95
|
+
}, () => {
|
|
96
|
+
void checkedProps.value
|
|
97
|
+
})
|
|
98
|
+
const propInputs = inputTracking.inputs
|
|
99
|
+
const checkedProps = computed(() => {
|
|
100
|
+
void inputTracking.version.value
|
|
101
|
+
return ({
|
|
102
|
+
headerRow: propInputs.value<boolean | null>(
|
|
103
|
+
'headerRow',
|
|
104
|
+
props['headerRow'],
|
|
105
|
+
props[BINDING_INPUTS_PROP],
|
|
106
|
+
) as boolean,
|
|
107
|
+
maxCols: propInputs.value<number | null>(
|
|
108
|
+
'maxCols',
|
|
109
|
+
props['maxCols'],
|
|
110
|
+
props[BINDING_INPUTS_PROP],
|
|
111
|
+
) as number,
|
|
112
|
+
maxRows: propInputs.value<number | null>(
|
|
113
|
+
'maxRows',
|
|
114
|
+
props['maxRows'],
|
|
115
|
+
props[BINDING_INPUTS_PROP],
|
|
116
|
+
) as number,
|
|
117
|
+
open: propInputs.value<boolean | null>(
|
|
118
|
+
'open',
|
|
119
|
+
props['open'],
|
|
120
|
+
props[BINDING_INPUTS_PROP],
|
|
121
|
+
) as boolean,
|
|
122
|
+
})
|
|
123
|
+
})
|
|
124
|
+
const inputStatus = (name: string, handlesError: boolean) => {
|
|
125
|
+
void checkedProps.value
|
|
126
|
+
void inputTracking.version.value
|
|
127
|
+
return requireInputStatus(propInputs.status(name), handlesError)
|
|
128
|
+
}
|
|
95
129
|
void checkedProps.value
|
|
96
130
|
watchSyncEffect(() => {
|
|
97
131
|
void checkedProps.value
|
|
@@ -167,11 +201,14 @@ useComponentHost(
|
|
|
167
201
|
} as Record<string, any>)[name],
|
|
168
202
|
keys,
|
|
169
203
|
),
|
|
204
|
+
initials: { cells: [], rows: 8, cols: 8, hint: '', withHeaderRow: false },
|
|
170
205
|
controllerSource: {
|
|
171
206
|
specifier: '../components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.js',
|
|
172
207
|
definition: './components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html',
|
|
173
208
|
},
|
|
174
209
|
props: checkedProps,
|
|
210
|
+
inputs: propInputs,
|
|
211
|
+
inputTracking,
|
|
175
212
|
propInputs: (name: string) => {
|
|
176
213
|
const incoming = hydrationInstance?.vnode.props
|
|
177
214
|
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|