@threadlabs/looma 0.10.0 → 0.10.2
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-editor-toolbar/ui-editor-toolbar.html +70 -20
- package/components/ui-editor-toolbar/ui-editor-toolbar.js +24 -0
- package/dist/index.js +20 -19
- package/package.json +2 -2
- 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-button.css +1 -1
- package/styles/ui-callout.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-dialog.css +1 -1
- package/styles/ui-disclosure.css +1 -1
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-slash-menu.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +73 -19
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +1 -1
- package/styles/ui-icon-button.css +1 -1
- package/styles/ui-icon.css +1 -1
- package/styles/ui-input.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.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-search-result-row.css +1 -1
- package/styles/ui-search-shell.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-stack.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +1 -1
- package/styles/ui-tabs.css +1 -1
- package/styles/ui-textarea.css +1 -1
- package/styles/ui-toast-region.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/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +1 -1
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +1 -1
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +1 -1
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +1 -1
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +1 -1
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +1 -1
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +1 -1
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +1 -1
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +1 -1
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +1 -1
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +1 -1
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +1 -1
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +1 -1
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +1 -1
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +1 -1
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +1 -1
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +1 -1
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +1 -1
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +12 -7
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +1 -1
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +1 -1
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +1 -1
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +1 -1
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +1 -1
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +1 -1
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +1 -1
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +1 -1
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +1 -1
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +1 -1
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +1 -1
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +1 -1
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +1 -1
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +1 -1
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +1 -1
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +1 -1
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +1 -1
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +1 -1
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +1 -1
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +1 -1
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +1 -1
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +1 -1
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +1 -1
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +1 -1
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +1 -1
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +1 -1
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +1 -1
- package/vue/UiAffordanceScope.vue +1 -1
- package/vue/UiAvatar.vue +1 -1
- package/vue/UiAvatarGroup.vue +1 -1
- package/vue/UiBadge.vue +1 -1
- package/vue/UiButton.vue +1 -1
- package/vue/UiCallout.vue +1 -1
- package/vue/UiCheckbox.vue +1 -1
- package/vue/UiCluster.vue +1 -1
- package/vue/UiCombobox.vue +1 -1
- package/vue/UiContainer.vue +1 -1
- package/vue/UiContextMenu.vue +1 -1
- package/vue/UiDialog.vue +1 -1
- package/vue/UiDisclosure.vue +1 -1
- package/vue/UiEditable.vue +1 -1
- package/vue/UiEditorInsertTableGrid.vue +1 -1
- package/vue/UiEditorMentionMenu.vue +1 -1
- package/vue/UiEditorSlashMenu.vue +1 -1
- package/vue/UiEditorTableContextMenu.vue +1 -1
- package/vue/UiEditorTableOverlay.vue +1 -1
- package/vue/UiEditorTableToolbar.vue +1 -1
- package/vue/UiEditorToolbar.vue +91 -21
- package/vue/UiFloatingActionButton.vue +1 -1
- package/vue/UiFormField.vue +1 -1
- package/vue/UiGrid.vue +1 -1
- package/vue/UiIcon.vue +1 -1
- package/vue/UiIconButton.vue +1 -1
- package/vue/UiInput.vue +1 -1
- package/vue/UiMenu.vue +1 -1
- package/vue/UiMenuItem.vue +1 -1
- package/vue/UiPopover.vue +1 -1
- package/vue/UiRadio.vue +1 -1
- package/vue/UiRadioGroup.vue +1 -1
- package/vue/UiReel.vue +1 -1
- package/vue/UiSearchResultRow.vue +1 -1
- package/vue/UiSearchShell.vue +1 -1
- package/vue/UiSelect.vue +1 -1
- package/vue/UiSeparator.vue +1 -1
- package/vue/UiSidebar.vue +1 -1
- package/vue/UiStack.vue +1 -1
- package/vue/UiSwitch.vue +1 -1
- package/vue/UiSwitcher.vue +1 -1
- package/vue/UiTabs.vue +1 -1
- package/vue/UiTextarea.vue +1 -1
- package/vue/UiToastRegion.vue +1 -1
- package/vue/UiTooltip.vue +1 -1
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.vue +1 -1
- package/vue/UiTreeItem.vue +1 -1
- package/vue/chunks/UiAffordanceScope.js +1 -1
- package/vue/chunks/UiAvatar.js +1 -1
- package/vue/chunks/UiAvatarGroup.js +1 -1
- package/vue/chunks/UiBadge.js +1 -1
- package/vue/chunks/UiButton.js +1 -1
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiCheckbox.js +1 -1
- package/vue/chunks/UiCluster.js +1 -1
- package/vue/chunks/UiCombobox.js +1 -1
- package/vue/chunks/UiContainer.js +1 -1
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiDisclosure.js +1 -1
- package/vue/chunks/UiEditable.js +1 -1
- package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
- package/vue/chunks/UiEditorMentionMenu.js +1 -1
- package/vue/chunks/UiEditorSlashMenu.js +1 -1
- package/vue/chunks/UiEditorTableContextMenu.js +1 -1
- package/vue/chunks/UiEditorTableOverlay.js +1 -1
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/UiEditorToolbar.js +33 -4
- package/vue/chunks/UiFloatingActionButton.js +1 -1
- package/vue/chunks/UiFormField.js +1 -1
- package/vue/chunks/UiGrid.js +1 -1
- package/vue/chunks/UiIcon.js +1 -1
- package/vue/chunks/UiIconButton.js +1 -1
- package/vue/chunks/UiInput.js +1 -1
- package/vue/chunks/UiMenu.js +1 -1
- package/vue/chunks/UiMenuItem.js +1 -1
- package/vue/chunks/UiPopover.js +1 -1
- package/vue/chunks/UiRadio.js +1 -1
- package/vue/chunks/UiRadioGroup.js +1 -1
- package/vue/chunks/UiReel.js +1 -1
- package/vue/chunks/UiSearchResultRow.js +1 -1
- package/vue/chunks/UiSearchShell.js +1 -1
- package/vue/chunks/UiSelect.js +1 -1
- package/vue/chunks/UiSeparator.js +1 -1
- package/vue/chunks/UiSidebar.js +1 -1
- package/vue/chunks/UiStack.js +1 -1
- package/vue/chunks/UiSwitch.js +1 -1
- package/vue/chunks/UiSwitcher.js +1 -1
- package/vue/chunks/UiTabs.js +1 -1
- package/vue/chunks/UiTextarea.js +1 -1
- package/vue/chunks/UiToastRegion.js +1 -1
- package/vue/chunks/UiTooltip.js +1 -1
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +1 -1
- package/vue/chunks/UiTreeItem.js +1 -1
- package/vue/chunks/host.js +8 -2
- package/vue/components.css +769 -725
- package/vue/host.ts +11 -2
package/vanilla/UiTopBar.d.ts
CHANGED
package/vanilla/UiTopBar.js
CHANGED
package/vanilla/UiTree.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiTreeEventMap {
|
|
3
3
|
reorder: CustomEvent<{ readonly sourceId: string; readonly targetId: string; readonly position: "before" | "inside" | "after"; readonly sourceType: string; readonly targetType: string; readonly sourceScope: string; readonly targetScope: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
4
4
|
"reorder-rejected": CustomEvent<{ readonly sourceId: string; readonly targetId: string; readonly position: "before" | "inside" | "after"; readonly reason: "max-depth"; readonly maxDepth: number; readonly resultingDepth: number; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
package/vanilla/UiTree.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
|
|
3
3
|
import * as controller from "../components/ui-tree/ui-tree.js";
|
|
4
4
|
import "../styles/ui-tree.css";
|
package/vanilla/UiTreeItem.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiTreeItemEventMap {
|
|
3
3
|
expand: CustomEvent<{ readonly id: string; readonly expanded: boolean; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
4
4
|
}
|
package/vanilla/UiTreeItem.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
|
|
3
3
|
import * as controller from "../components/ui-tree-item/ui-tree-item.js";
|
|
4
4
|
import "../styles/ui-tree-item.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-affordance-scope/ui-affordance-scope.js'
|
package/vue/UiAvatar.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { ref, useTemplateRef } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-avatar/ui-avatar.js'
|
package/vue/UiAvatarGroup.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { ref, useTemplateRef } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-avatar-group/ui-avatar-group.js'
|
package/vue/UiBadge.vue
CHANGED
package/vue/UiButton.vue
CHANGED
package/vue/UiCallout.vue
CHANGED
package/vue/UiCheckbox.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref, useTemplateRef } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-checkbox/ui-checkbox.js'
|
package/vue/UiCluster.vue
CHANGED
package/vue/UiCombobox.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref, useTemplateRef } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-combobox/ui-combobox.js'
|
package/vue/UiContainer.vue
CHANGED
package/vue/UiContextMenu.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { ref, useTemplateRef } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-context-menu/ui-context-menu.js'
|
package/vue/UiDialog.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { ref, useTemplateRef } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-dialog/ui-dialog.js'
|
package/vue/UiDisclosure.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref, useTemplateRef } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-disclosure/ui-disclosure.js'
|
package/vue/UiEditable.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref, useTemplateRef } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-editable/ui-editable.js'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { ref, useTemplateRef } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.js'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { ref } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-editor-mention-menu/ui-editor-mention-menu.js'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { ref } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-editor-slash-menu/ui-editor-slash-menu.js'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { ref } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-editor-table-context-menu/ui-editor-table-context-menu.js'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { ref } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-editor-table-overlay/ui-editor-table-overlay.js'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { ref } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-editor-table-toolbar/ui-editor-table-toolbar.js'
|
package/vue/UiEditorToolbar.vue
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
|
-
import { computed } from 'vue'
|
|
3
|
+
import { computed, ref, useTemplateRef } from 'vue'
|
|
4
|
+
import * as controllerModule from '../components/ui-editor-toolbar/ui-editor-toolbar.js'
|
|
5
|
+
import { createDispatch, useComponentHost } from './host'
|
|
4
6
|
|
|
5
7
|
defineOptions({ inheritAttrs: false })
|
|
6
8
|
|
|
@@ -13,12 +15,29 @@ const props = withDefaults(
|
|
|
13
15
|
},
|
|
14
16
|
)
|
|
15
17
|
|
|
18
|
+
const root = ref<HTMLElement | null>(null)
|
|
19
|
+
const stripElement = useTemplateRef<HTMLElement>('strip')
|
|
20
|
+
const overflowStart = ref(false)
|
|
21
|
+
const overflowEnd = ref(false)
|
|
22
|
+
|
|
16
23
|
/** The values the styles' :host-state() rules test. */
|
|
17
24
|
const hostState = computed(() =>
|
|
18
25
|
[
|
|
26
|
+
overflowStart.value && 'overflowStart',
|
|
27
|
+
overflowEnd.value && 'overflowEnd',
|
|
19
28
|
props.floating && 'floating',
|
|
20
29
|
].filter(Boolean).join(' ')
|
|
21
30
|
)
|
|
31
|
+
|
|
32
|
+
const dispatch = createDispatch(root)
|
|
33
|
+
|
|
34
|
+
useComponentHost(controllerModule.default, {
|
|
35
|
+
root,
|
|
36
|
+
dispatch,
|
|
37
|
+
props,
|
|
38
|
+
refs: { strip: stripElement },
|
|
39
|
+
state: { overflowStart, overflowEnd },
|
|
40
|
+
})
|
|
22
41
|
</script>
|
|
23
42
|
|
|
24
43
|
<template>
|
|
@@ -28,39 +47,89 @@ const hostState = computed(() =>
|
|
|
28
47
|
aria-label="Editor toolbar"
|
|
29
48
|
v-bind="$attrs"
|
|
30
49
|
:data-ui-editor-toolbar-state="hostState || undefined"
|
|
50
|
+
ref="root"
|
|
31
51
|
>
|
|
32
|
-
<slot
|
|
52
|
+
<div class="strip" ref="strip"><slot /></div>
|
|
33
53
|
</div>
|
|
34
54
|
</template>
|
|
35
55
|
|
|
36
56
|
<style scoped>
|
|
37
57
|
[data-component~="ui-editor-toolbar"] {
|
|
58
|
+
/* The colour the edge fades blend into: whatever the toolbar is painted with. */
|
|
59
|
+
--_matte: var(--ui-editor-toolbar-surface, var(--ui-surface));
|
|
60
|
+
|
|
38
61
|
position: sticky;
|
|
39
62
|
top: 0;
|
|
40
63
|
z-index: var(--ui-editor-toolbar-z-index, 10);
|
|
41
64
|
display: flex;
|
|
42
65
|
align-items: center;
|
|
43
|
-
justify-content: flex-start;
|
|
44
|
-
gap: var(--ui-editor-toolbar-gap, 2px);
|
|
45
66
|
padding: var(--ui-editor-toolbar-padding-block, 6px)
|
|
46
67
|
var(--ui-editor-toolbar-padding-inline, 12px);
|
|
47
68
|
min-height: var(--ui-editor-toolbar-min-height, 48px);
|
|
48
|
-
/* More controls than the column is wide is normal at a readable measure, so the row wraps.
|
|
49
|
-
Scrolling hid the tail behind an invisible scrollbar. */
|
|
50
|
-
flex-wrap: wrap;
|
|
51
|
-
row-gap: var(--ui-editor-toolbar-row-gap, var(--ui-editor-toolbar-gap, 2px));
|
|
52
69
|
background: var(--ui-editor-toolbar-surface, var(--ui-surface));
|
|
53
70
|
border-bottom: 1px solid var(--ui-editor-toolbar-border, var(--ui-border));
|
|
54
71
|
}
|
|
55
72
|
|
|
56
|
-
|
|
73
|
+
/* One row, always. When the controls outgrow the space, the row scrolls sideways rather than
|
|
74
|
+
wrapping into several lines, and a fade at each edge that has more to show says so. */
|
|
75
|
+
.strip {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex: 1 1 auto;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: flex-start;
|
|
80
|
+
gap: var(--ui-editor-toolbar-gap, 2px);
|
|
81
|
+
min-width: 0;
|
|
82
|
+
overflow-x: auto;
|
|
83
|
+
overflow-y: hidden;
|
|
84
|
+
overscroll-behavior-inline: contain;
|
|
85
|
+
scrollbar-width: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.strip::-webkit-scrollbar {
|
|
57
89
|
display: none;
|
|
58
90
|
}
|
|
59
91
|
|
|
60
|
-
|
|
92
|
+
.strip > :slotted(*) {
|
|
61
93
|
flex: 0 0 auto;
|
|
62
94
|
}
|
|
63
95
|
|
|
96
|
+
/* The fades are mattes laid over the strip in the toolbar's own colour, not a mask, so a floating
|
|
97
|
+
toolbar's border and shadow stay whole. Each appears only while that edge hides controls. */
|
|
98
|
+
[data-component~="ui-editor-toolbar"]::before,
|
|
99
|
+
[data-component~="ui-editor-toolbar"]::after {
|
|
100
|
+
position: absolute;
|
|
101
|
+
z-index: 1;
|
|
102
|
+
inset-block: 0;
|
|
103
|
+
inline-size: var(--ui-editor-toolbar-fade-size, 32px);
|
|
104
|
+
content: "";
|
|
105
|
+
opacity: 0;
|
|
106
|
+
pointer-events: none;
|
|
107
|
+
transition: opacity var(--ui-motion-fast, 120ms) var(--ui-motion-ease, ease);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
[data-component~="ui-editor-toolbar"]::before {
|
|
111
|
+
inset-inline-start: 0;
|
|
112
|
+
background: linear-gradient(to right, var(--_matte), transparent);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
[data-component~="ui-editor-toolbar"]::after {
|
|
116
|
+
inset-inline-end: 0;
|
|
117
|
+
background: linear-gradient(to left, var(--_matte), transparent);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
[data-component~="ui-editor-toolbar"]:dir(rtl)::before {
|
|
121
|
+
background: linear-gradient(to left, var(--_matte), transparent);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
[data-component~="ui-editor-toolbar"]:dir(rtl)::after {
|
|
125
|
+
background: linear-gradient(to right, var(--_matte), transparent);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[data-component~="ui-editor-toolbar"][data-ui-editor-toolbar-state~="overflowStart"]::before,
|
|
129
|
+
[data-component~="ui-editor-toolbar"][data-ui-editor-toolbar-state~="overflowEnd"]::after {
|
|
130
|
+
opacity: 1;
|
|
131
|
+
}
|
|
132
|
+
|
|
64
133
|
:slotted(.divider) {
|
|
65
134
|
width: 1px;
|
|
66
135
|
height: 20px;
|
|
@@ -70,14 +139,12 @@ const hostState = computed(() =>
|
|
|
70
139
|
}
|
|
71
140
|
|
|
72
141
|
[data-component~="ui-editor-toolbar"][data-ui-editor-toolbar-state~="floating"] {
|
|
73
|
-
|
|
74
|
-
position: static;
|
|
142
|
+
position: relative;
|
|
75
143
|
top: auto;
|
|
76
144
|
width: max-content;
|
|
77
145
|
max-width: min(calc(100vw - 24px), 100%);
|
|
78
146
|
min-height: auto;
|
|
79
147
|
padding: var(--ui-editor-toolbar-floating-padding, 4px);
|
|
80
|
-
overflow-x: visible;
|
|
81
148
|
background: color-mix(
|
|
82
149
|
in srgb,
|
|
83
150
|
var(--ui-editor-toolbar-surface, var(--ui-surface)) 96%,
|
|
@@ -106,7 +173,7 @@ const hostState = computed(() =>
|
|
|
106
173
|
}
|
|
107
174
|
|
|
108
175
|
[data-component~="ui-editor-toolbar"][data-ui-editor-toolbar-state~="floating"] {
|
|
109
|
-
position:
|
|
176
|
+
position: relative;
|
|
110
177
|
inset: auto;
|
|
111
178
|
min-height: auto;
|
|
112
179
|
border: 1px solid var(--ui-editor-toolbar-border, var(--ui-border));
|
|
@@ -120,9 +187,10 @@ const hostState = computed(() =>
|
|
|
120
187
|
|
|
121
188
|
/* Inside LoomaEditor's sticky shell, the shell is the sticky surface. */
|
|
122
189
|
.looma-editor__sticky-toolbar-shell [data-component~="ui-editor-toolbar"] {
|
|
123
|
-
|
|
190
|
+
--_matte: var(--ui-editor-toolbar-surface, var(--ui-surface));
|
|
191
|
+
|
|
192
|
+
position: relative;
|
|
124
193
|
min-height: var(--ui-editor-toolbar-min-height, 48px);
|
|
125
|
-
overscroll-behavior-inline: contain;
|
|
126
194
|
background: transparent;
|
|
127
195
|
border: 0;
|
|
128
196
|
box-shadow: none;
|
|
@@ -135,10 +203,6 @@ const hostState = computed(() =>
|
|
|
135
203
|
max-width: none;
|
|
136
204
|
min-height: 100%;
|
|
137
205
|
padding: 0;
|
|
138
|
-
overflow-x: auto;
|
|
139
|
-
overflow-y: hidden;
|
|
140
|
-
overscroll-behavior-inline: contain;
|
|
141
|
-
scroll-snap-type: x mandatory;
|
|
142
206
|
background: transparent;
|
|
143
207
|
border: 0;
|
|
144
208
|
border-radius: 0;
|
|
@@ -146,6 +210,12 @@ const hostState = computed(() =>
|
|
|
146
210
|
backdrop-filter: none;
|
|
147
211
|
}
|
|
148
212
|
|
|
213
|
+
.looma-editor__mobile-toolbar-shell
|
|
214
|
+
[data-component~="ui-editor-toolbar"][data-ui-editor-toolbar-state~="floating"]
|
|
215
|
+
.strip {
|
|
216
|
+
scroll-snap-type: x mandatory;
|
|
217
|
+
}
|
|
218
|
+
|
|
149
219
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
150
220
|
[data-component~="ui-editor-toolbar"][hidden] {
|
|
151
221
|
display: none;
|
package/vue/UiFormField.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { ref } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-form-field/ui-form-field.js'
|
package/vue/UiGrid.vue
CHANGED
package/vue/UiIcon.vue
CHANGED
package/vue/UiIconButton.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-icon-button/ui-icon-button.js'
|
package/vue/UiInput.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-input/ui-input.js'
|
package/vue/UiMenu.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-menu/ui-menu.js'
|
package/vue/UiMenuItem.vue
CHANGED
package/vue/UiPopover.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-popover/ui-popover.js'
|
package/vue/UiRadio.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref, useTemplateRef } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-radio/ui-radio.js'
|
package/vue/UiRadioGroup.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-radio-group/ui-radio-group.js'
|
package/vue/UiReel.vue
CHANGED
package/vue/UiSearchShell.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { ref, useTemplateRef } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-search-shell/ui-search-shell.js'
|
package/vue/UiSelect.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-select/ui-select.js'
|
package/vue/UiSeparator.vue
CHANGED
package/vue/UiSidebar.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref, useTemplateRef } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-sidebar/ui-sidebar.js'
|
package/vue/UiStack.vue
CHANGED
package/vue/UiSwitch.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref, useTemplateRef } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-switch/ui-switch.js'
|
package/vue/UiSwitcher.vue
CHANGED
package/vue/UiTabs.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref, useTemplateRef } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-tabs/ui-tabs.js'
|
package/vue/UiTextarea.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-textarea/ui-textarea.js'
|
package/vue/UiToastRegion.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { ref } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-toast-region/ui-toast-region.js'
|
package/vue/UiTooltip.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-tooltip/ui-tooltip.js'
|
package/vue/UiTopBar.vue
CHANGED
package/vue/UiTree.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-tree/ui-tree.js'
|
package/vue/UiTreeItem.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, ref, useTemplateRef } from 'vue'
|
|
4
4
|
import * as controllerModule from '../components/ui-tree-item/ui-tree-item.js'
|
|
@@ -31,6 +31,6 @@ var UiAffordanceScope_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
31
31
|
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_1);
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
}), [["__scopeId", "data-v-
|
|
34
|
+
}), [["__scopeId", "data-v-c9fe5e81"]]);
|
|
35
35
|
//#endregion
|
|
36
36
|
export { UiAffordanceScope_default as t };
|
package/vue/chunks/UiAvatar.js
CHANGED
|
@@ -44,6 +44,6 @@ var UiAvatarGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
44
44
|
}, toDisplayString(`+${overflowCount.value}`), 9, _hoisted_2)], 16, _hoisted_1);
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
}), [["__scopeId", "data-v-
|
|
47
|
+
}), [["__scopeId", "data-v-9d727004"]]);
|
|
48
48
|
//#endregion
|
|
49
49
|
export { UiAvatarGroup_default as t };
|
package/vue/chunks/UiBadge.js
CHANGED
|
@@ -24,6 +24,6 @@ var UiBadge_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
24
24
|
return openBlock(), createElementBlock("span", mergeProps({ "data-component": "ui-badge" }, _ctx.$attrs, { "data-ui-badge-state": hostState.value || void 0 }), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_1);
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
}), [["__scopeId", "data-v-
|
|
27
|
+
}), [["__scopeId", "data-v-0dbc98f0"]]);
|
|
28
28
|
//#endregion
|
|
29
29
|
export { UiBadge_default as t };
|