@threadlabs/looma 0.10.9 → 0.10.10
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-dialog/ui-dialog.html +17 -0
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +17 -0
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +17 -0
- package/components/ui-editor-toolbar/ui-editor-toolbar.html +24 -43
- package/components/ui-reel/ui-reel.html +24 -0
- package/components/ui-scroll-area/ui-scroll-area.html +56 -0
- package/components/ui-search-shell/ui-search-shell.html +17 -0
- package/components/ui-sidebar/ui-sidebar.html +18 -0
- package/dist/index.js +19 -20
- package/package.json +1 -1
- package/styles/ui-dialog.css +17 -0
- package/styles/ui-editor-mention-menu.css +17 -0
- package/styles/ui-editor-slash-menu.css +17 -0
- package/styles/ui-editor-toolbar.css +25 -42
- package/styles/ui-reel.css +27 -1
- package/styles/ui-scroll-area.css +57 -0
- package/styles/ui-search-shell.css +17 -0
- package/styles/ui-sidebar.css +22 -1
- package/tokens.css +44 -0
- package/vanilla/UiEditorToolbar.js +1 -3
- package/vanilla/UiScrollArea.d.ts +14 -0
- package/vanilla/UiScrollArea.js +28 -0
- package/vanilla/index.js +1 -0
- package/vue/UiDialog.vue +21 -0
- package/vue/UiEditorMentionMenu.vue +21 -0
- package/vue/UiEditorSlashMenu.vue +21 -0
- package/vue/UiEditorToolbar.vue +26 -57
- package/vue/UiReel.vue +28 -0
- package/vue/UiScrollArea.d.ts +18 -0
- package/vue/UiScrollArea.js +2 -0
- package/vue/UiScrollArea.vue +85 -0
- package/vue/UiSearchShell.vue +21 -0
- package/vue/UiSidebar.vue +22 -0
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiEditorMentionMenu.js +1 -1
- package/vue/chunks/UiEditorSlashMenu.js +1 -1
- package/vue/chunks/UiEditorToolbar.js +5 -29
- package/vue/chunks/UiReel.js +1 -1
- package/vue/chunks/UiScrollArea.js +21 -0
- package/vue/chunks/UiSearchShell.js +1 -1
- package/vue/chunks/UiSidebar.js +1 -1
- package/vue/components.css +335 -161
- package/vue/index.d.ts +1 -0
- package/vue/index.js +2 -1
- package/components/ui-editor-toolbar/ui-editor-toolbar.js +0 -24
package/vue/UiEditorToolbar.vue
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
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,
|
|
4
|
-
import * as controllerModule from '../components/ui-editor-toolbar/ui-editor-toolbar.js'
|
|
5
|
-
import { createDispatch, useComponentHost } from './host'
|
|
3
|
+
import { computed, useTemplateRef } from 'vue'
|
|
6
4
|
|
|
7
5
|
defineOptions({ inheritAttrs: false })
|
|
8
6
|
|
|
@@ -15,29 +13,14 @@ const props = withDefaults(
|
|
|
15
13
|
},
|
|
16
14
|
)
|
|
17
15
|
|
|
18
|
-
const root = ref<HTMLElement | null>(null)
|
|
19
16
|
const stripElement = useTemplateRef<HTMLElement>('strip')
|
|
20
|
-
const overflowStart = ref(false)
|
|
21
|
-
const overflowEnd = ref(false)
|
|
22
17
|
|
|
23
18
|
/** The values the styles' :host-state() rules test. */
|
|
24
19
|
const hostState = computed(() =>
|
|
25
20
|
[
|
|
26
|
-
overflowStart.value && 'overflowStart',
|
|
27
|
-
overflowEnd.value && 'overflowEnd',
|
|
28
21
|
props.floating && 'floating',
|
|
29
22
|
].filter(Boolean).join(' ')
|
|
30
23
|
)
|
|
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
|
-
})
|
|
41
24
|
</script>
|
|
42
25
|
|
|
43
26
|
<template>
|
|
@@ -47,7 +30,6 @@ useComponentHost(controllerModule.default, {
|
|
|
47
30
|
aria-label="Editor toolbar"
|
|
48
31
|
v-bind="$attrs"
|
|
49
32
|
:data-ui-editor-toolbar-state="hostState || undefined"
|
|
50
|
-
ref="root"
|
|
51
33
|
>
|
|
52
34
|
<div class="strip" ref="strip"><slot /></div>
|
|
53
35
|
</div>
|
|
@@ -55,9 +37,6 @@ useComponentHost(controllerModule.default, {
|
|
|
55
37
|
|
|
56
38
|
<style scoped>
|
|
57
39
|
[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
|
-
|
|
61
40
|
position: sticky;
|
|
62
41
|
top: 0;
|
|
63
42
|
z-index: var(--ui-editor-toolbar-z-index, 10);
|
|
@@ -93,41 +72,33 @@ useComponentHost(controllerModule.default, {
|
|
|
93
72
|
flex: 0 0 auto;
|
|
94
73
|
}
|
|
95
74
|
|
|
96
|
-
/* The fades are
|
|
97
|
-
toolbar's border and shadow stay whole.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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);
|
|
75
|
+
/* The edge fades are the scroll fade every Looma scroller uses (see ui-scroll-area), a mask on the
|
|
76
|
+
strip, so a floating toolbar's border and shadow stay whole. */
|
|
77
|
+
.strip {
|
|
78
|
+
--_ui-scroll-fade-direction: to right;
|
|
79
|
+
--_ui-scroll-fade-size: var(--ui-editor-toolbar-fade-size, var(--ui-scroll-fade-size, 24px));
|
|
80
|
+
mask-image: linear-gradient(
|
|
81
|
+
var(--_ui-scroll-fade-direction),
|
|
82
|
+
transparent,
|
|
83
|
+
#000 var(--_ui-scroll-fade-start),
|
|
84
|
+
#000 calc(100% - var(--_ui-scroll-fade-end)),
|
|
85
|
+
transparent
|
|
86
|
+
);
|
|
87
|
+
animation:
|
|
88
|
+
ui-scroll-fade-start linear,
|
|
89
|
+
ui-scroll-fade-start-hold linear,
|
|
90
|
+
ui-scroll-fade-end-hold linear,
|
|
91
|
+
ui-scroll-fade-end linear;
|
|
92
|
+
animation-timeline: scroll(self inline);
|
|
93
|
+
animation-range:
|
|
94
|
+
0 var(--_ui-scroll-fade-size),
|
|
95
|
+
var(--_ui-scroll-fade-size) calc(100% + 1px),
|
|
96
|
+
-1px calc(100% - var(--_ui-scroll-fade-size)),
|
|
97
|
+
calc(100% - var(--_ui-scroll-fade-size)) 100%;
|
|
126
98
|
}
|
|
127
99
|
|
|
128
|
-
[data-component~="ui-editor-toolbar"]
|
|
129
|
-
|
|
130
|
-
opacity: 1;
|
|
100
|
+
[data-component~="ui-editor-toolbar"]:dir(rtl) .strip {
|
|
101
|
+
--_ui-scroll-fade-direction: to left;
|
|
131
102
|
}
|
|
132
103
|
|
|
133
104
|
:slotted(.divider) {
|
|
@@ -187,8 +158,6 @@ useComponentHost(controllerModule.default, {
|
|
|
187
158
|
|
|
188
159
|
/* Inside LoomaEditor's sticky shell, the shell is the sticky surface. */
|
|
189
160
|
.looma-editor__sticky-toolbar-shell [data-component~="ui-editor-toolbar"] {
|
|
190
|
-
--_matte: var(--ui-editor-toolbar-surface, var(--ui-surface));
|
|
191
|
-
|
|
192
161
|
position: relative;
|
|
193
162
|
min-height: var(--ui-editor-toolbar-min-height, 48px);
|
|
194
163
|
background: transparent;
|
package/vue/UiReel.vue
CHANGED
|
@@ -47,6 +47,34 @@ const hostState = computed(() =>
|
|
|
47
47
|
overscroll-behavior-inline: contain;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
/* Each end that hides items fades: the scroll fade every Looma scroller uses (see ui-scroll-area). */
|
|
51
|
+
[data-component~="ui-reel"] {
|
|
52
|
+
--_ui-scroll-fade-direction: to right;
|
|
53
|
+
--_ui-scroll-fade-size: var(--ui-scroll-fade-size, 24px);
|
|
54
|
+
mask-image: linear-gradient(
|
|
55
|
+
var(--_ui-scroll-fade-direction),
|
|
56
|
+
transparent,
|
|
57
|
+
#000 var(--_ui-scroll-fade-start),
|
|
58
|
+
#000 calc(100% - var(--_ui-scroll-fade-end)),
|
|
59
|
+
transparent
|
|
60
|
+
);
|
|
61
|
+
animation:
|
|
62
|
+
ui-scroll-fade-start linear,
|
|
63
|
+
ui-scroll-fade-start-hold linear,
|
|
64
|
+
ui-scroll-fade-end-hold linear,
|
|
65
|
+
ui-scroll-fade-end linear;
|
|
66
|
+
animation-timeline: scroll(self inline);
|
|
67
|
+
animation-range:
|
|
68
|
+
0 var(--_ui-scroll-fade-size),
|
|
69
|
+
var(--_ui-scroll-fade-size) calc(100% + 1px),
|
|
70
|
+
-1px calc(100% - var(--_ui-scroll-fade-size)),
|
|
71
|
+
calc(100% - var(--_ui-scroll-fade-size)) 100%;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[data-component~="ui-reel"]:dir(rtl) {
|
|
75
|
+
--_ui-scroll-fade-direction: to left;
|
|
76
|
+
}
|
|
77
|
+
|
|
50
78
|
[data-component~="ui-reel"] > :slotted(*) {
|
|
51
79
|
min-inline-size: 0;
|
|
52
80
|
flex: 0 0 var(--ui-reel-item-width, var(--_reel-item-width));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
orientation?: 'vertical' | 'horizontal';
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
+
orientation: "vertical" | "horizontal";
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
|
+
<script setup lang="ts">
|
|
3
|
+
import { computed } from 'vue'
|
|
4
|
+
|
|
5
|
+
defineOptions({ inheritAttrs: false })
|
|
6
|
+
|
|
7
|
+
const props = withDefaults(
|
|
8
|
+
defineProps<{
|
|
9
|
+
orientation?: 'vertical' | 'horizontal'
|
|
10
|
+
}>(),
|
|
11
|
+
{
|
|
12
|
+
orientation: 'vertical',
|
|
13
|
+
},
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
/** The values the styles' :host-state() rules test. */
|
|
17
|
+
const hostState = computed(() =>
|
|
18
|
+
[
|
|
19
|
+
props.orientation && `orientation orientation=${props.orientation}`,
|
|
20
|
+
].filter(Boolean).join(' ')
|
|
21
|
+
)
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<div
|
|
26
|
+
data-component="ui-scroll-area"
|
|
27
|
+
v-bind="$attrs"
|
|
28
|
+
:data-ui-scroll-area-state="hostState || undefined"
|
|
29
|
+
>
|
|
30
|
+
<slot />
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<style scoped>
|
|
35
|
+
/* A region that scrolls when its content outgrows it. Each edge that hides content fades, growing
|
|
36
|
+
in as the content leaves that edge (the scroll fade in tokens.css), so the reader can tell there
|
|
37
|
+
is more; an edge with nothing past it stays crisp, and content that fits shows no fade. The
|
|
38
|
+
fade is a mask, so it blends into whatever is behind the area without knowing its colour. */
|
|
39
|
+
[data-component~="ui-scroll-area"] {
|
|
40
|
+
display: block;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
min-block-size: 0;
|
|
43
|
+
min-inline-size: 0;
|
|
44
|
+
overflow-x: hidden;
|
|
45
|
+
overflow-y: auto;
|
|
46
|
+
overscroll-behavior: contain;
|
|
47
|
+
--_ui-scroll-fade-direction: to bottom;
|
|
48
|
+
--_ui-scroll-fade-inline: to right;
|
|
49
|
+
--_ui-scroll-fade-size: var(--ui-scroll-fade-size, 24px);
|
|
50
|
+
mask-image: linear-gradient(
|
|
51
|
+
var(--_ui-scroll-fade-direction),
|
|
52
|
+
transparent,
|
|
53
|
+
#000 var(--_ui-scroll-fade-start),
|
|
54
|
+
#000 calc(100% - var(--_ui-scroll-fade-end)),
|
|
55
|
+
transparent
|
|
56
|
+
);
|
|
57
|
+
animation:
|
|
58
|
+
ui-scroll-fade-start linear,
|
|
59
|
+
ui-scroll-fade-start-hold linear,
|
|
60
|
+
ui-scroll-fade-end-hold linear,
|
|
61
|
+
ui-scroll-fade-end linear;
|
|
62
|
+
animation-timeline: scroll(self block);
|
|
63
|
+
animation-range:
|
|
64
|
+
0 var(--_ui-scroll-fade-size),
|
|
65
|
+
var(--_ui-scroll-fade-size) calc(100% + 1px),
|
|
66
|
+
-1px calc(100% - var(--_ui-scroll-fade-size)),
|
|
67
|
+
calc(100% - var(--_ui-scroll-fade-size)) 100%;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[data-component~="ui-scroll-area"][data-ui-scroll-area-state~="orientation=horizontal"] {
|
|
71
|
+
overflow-x: auto;
|
|
72
|
+
overflow-y: hidden;
|
|
73
|
+
--_ui-scroll-fade-direction: var(--_ui-scroll-fade-inline);
|
|
74
|
+
animation-timeline: scroll(self inline);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[data-component~="ui-scroll-area"]:dir(rtl) {
|
|
78
|
+
--_ui-scroll-fade-inline: to left;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
82
|
+
[data-component~="ui-scroll-area"][hidden] {
|
|
83
|
+
display: none;
|
|
84
|
+
}
|
|
85
|
+
</style>
|
package/vue/UiSearchShell.vue
CHANGED
|
@@ -183,6 +183,27 @@ dialog::backdrop {
|
|
|
183
183
|
min-block-size: 0;
|
|
184
184
|
overflow: auto;
|
|
185
185
|
padding: var(--ui-space-2);
|
|
186
|
+
/* Each edge that hides content fades: the scroll fade every Looma scroller uses (see ui-scroll-area). */
|
|
187
|
+
--_ui-scroll-fade-direction: to bottom;
|
|
188
|
+
--_ui-scroll-fade-size: var(--ui-scroll-fade-size, 24px);
|
|
189
|
+
mask-image: linear-gradient(
|
|
190
|
+
var(--_ui-scroll-fade-direction),
|
|
191
|
+
transparent,
|
|
192
|
+
#000 var(--_ui-scroll-fade-start),
|
|
193
|
+
#000 calc(100% - var(--_ui-scroll-fade-end)),
|
|
194
|
+
transparent
|
|
195
|
+
);
|
|
196
|
+
animation:
|
|
197
|
+
ui-scroll-fade-start linear,
|
|
198
|
+
ui-scroll-fade-start-hold linear,
|
|
199
|
+
ui-scroll-fade-end-hold linear,
|
|
200
|
+
ui-scroll-fade-end linear;
|
|
201
|
+
animation-timeline: scroll(self block);
|
|
202
|
+
animation-range:
|
|
203
|
+
0 var(--_ui-scroll-fade-size),
|
|
204
|
+
var(--_ui-scroll-fade-size) calc(100% + 1px),
|
|
205
|
+
-1px calc(100% - var(--_ui-scroll-fade-size)),
|
|
206
|
+
calc(100% - var(--_ui-scroll-fade-size)) 100%;
|
|
186
207
|
}
|
|
187
208
|
|
|
188
209
|
@media (max-width: 47.9375rem) {
|
package/vue/UiSidebar.vue
CHANGED
|
@@ -133,10 +133,32 @@ useComponentHost(controllerModule.default, {
|
|
|
133
133
|
border-inline-start: 1px solid var(--ui-sidebar-border, var(--ui-border-default));
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
/* The panel's content scrolls, and each edge that hides content fades: the scroll fade every
|
|
137
|
+
Looma scroller uses (see ui-scroll-area). */
|
|
136
138
|
.content {
|
|
137
139
|
flex: 1;
|
|
138
140
|
min-block-size: 0;
|
|
139
141
|
overflow: auto;
|
|
142
|
+
--_ui-scroll-fade-direction: to bottom;
|
|
143
|
+
--_ui-scroll-fade-size: var(--ui-scroll-fade-size, 24px);
|
|
144
|
+
mask-image: linear-gradient(
|
|
145
|
+
var(--_ui-scroll-fade-direction),
|
|
146
|
+
transparent,
|
|
147
|
+
#000 var(--_ui-scroll-fade-start),
|
|
148
|
+
#000 calc(100% - var(--_ui-scroll-fade-end)),
|
|
149
|
+
transparent
|
|
150
|
+
);
|
|
151
|
+
animation:
|
|
152
|
+
ui-scroll-fade-start linear,
|
|
153
|
+
ui-scroll-fade-start-hold linear,
|
|
154
|
+
ui-scroll-fade-end-hold linear,
|
|
155
|
+
ui-scroll-fade-end linear;
|
|
156
|
+
animation-timeline: scroll(self block);
|
|
157
|
+
animation-range:
|
|
158
|
+
0 var(--_ui-scroll-fade-size),
|
|
159
|
+
var(--_ui-scroll-fade-size) calc(100% + 1px),
|
|
160
|
+
-1px calc(100% - var(--_ui-scroll-fade-size)),
|
|
161
|
+
calc(100% - var(--_ui-scroll-fade-size)) 100%;
|
|
140
162
|
}
|
|
141
163
|
|
|
142
164
|
/* Collapsed while docked. */
|
package/vue/chunks/UiDialog.js
CHANGED
|
@@ -101,6 +101,6 @@ var UiEditorMentionMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
101
101
|
], 16, _hoisted_1);
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
}), [["__scopeId", "data-v-
|
|
104
|
+
}), [["__scopeId", "data-v-a6db8e19"]]);
|
|
105
105
|
//#endregion
|
|
106
106
|
export { UiEditorMentionMenu_default as t };
|
|
@@ -95,6 +95,6 @@ var UiEditorSlashMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
95
95
|
], 16, _hoisted_1);
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
}), [["__scopeId", "data-v-
|
|
98
|
+
}), [["__scopeId", "data-v-dcc1f07d"]]);
|
|
99
99
|
//#endregion
|
|
100
100
|
export { UiEditorSlashMenu_default as t };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { n as useComponentHost, t as createDispatch } from "./host.js";
|
|
2
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
3
|
-
import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, openBlock,
|
|
4
|
-
import * as controllerModule from "@threadlabs/looma/components/ui-editor-toolbar/ui-editor-toolbar.js";
|
|
2
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, openBlock, renderSlot, useTemplateRef } from "vue";
|
|
5
3
|
//#region .build/vue/UiEditorToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
6
4
|
var _hoisted_1 = ["data-ui-editor-toolbar-state"];
|
|
7
5
|
var _hoisted_2 = {
|
|
@@ -19,39 +17,17 @@ var UiEditorToolbar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
19
17
|
} },
|
|
20
18
|
setup(__props) {
|
|
21
19
|
const props = __props;
|
|
22
|
-
|
|
23
|
-
const stripElement = useTemplateRef("strip");
|
|
24
|
-
const overflowStart = ref(false);
|
|
25
|
-
const overflowEnd = ref(false);
|
|
20
|
+
useTemplateRef("strip");
|
|
26
21
|
/** The values the styles' :host-state() rules test. */
|
|
27
|
-
const hostState = computed(() => [
|
|
28
|
-
overflowStart.value && "overflowStart",
|
|
29
|
-
overflowEnd.value && "overflowEnd",
|
|
30
|
-
props.floating && "floating"
|
|
31
|
-
].filter(Boolean).join(" "));
|
|
32
|
-
const dispatch = createDispatch(root);
|
|
33
|
-
useComponentHost(controllerModule.default, {
|
|
34
|
-
root,
|
|
35
|
-
dispatch,
|
|
36
|
-
props,
|
|
37
|
-
refs: { strip: stripElement },
|
|
38
|
-
state: {
|
|
39
|
-
overflowStart,
|
|
40
|
-
overflowEnd
|
|
41
|
-
}
|
|
42
|
-
});
|
|
22
|
+
const hostState = computed(() => [props.floating && "floating"].filter(Boolean).join(" "));
|
|
43
23
|
return (_ctx, _cache) => {
|
|
44
24
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
45
25
|
"data-component": "ui-editor-toolbar",
|
|
46
26
|
role: "toolbar",
|
|
47
27
|
"aria-label": "Editor toolbar"
|
|
48
|
-
}, _ctx.$attrs, {
|
|
49
|
-
"data-ui-editor-toolbar-state": hostState.value || void 0,
|
|
50
|
-
ref_key: "root",
|
|
51
|
-
ref: root
|
|
52
|
-
}), [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default")], 512)], 16, _hoisted_1);
|
|
28
|
+
}, _ctx.$attrs, { "data-ui-editor-toolbar-state": hostState.value || void 0 }), [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default")], 512)], 16, _hoisted_1);
|
|
53
29
|
};
|
|
54
30
|
}
|
|
55
|
-
}), [["__scopeId", "data-v-
|
|
31
|
+
}), [["__scopeId", "data-v-3076bb8c"]]);
|
|
56
32
|
//#endregion
|
|
57
33
|
export { UiEditorToolbar_default as t };
|
package/vue/chunks/UiReel.js
CHANGED
|
@@ -28,6 +28,6 @@ var UiReel_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
28
28
|
}, _ctx.$attrs, { "data-ui-reel-state": hostState.value || void 0 }), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1);
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
}), [["__scopeId", "data-v-
|
|
31
|
+
}), [["__scopeId", "data-v-eb18d6be"]]);
|
|
32
32
|
//#endregion
|
|
33
33
|
export { UiReel_default as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
+
import { computed, createElementBlock, defineComponent, mergeProps, openBlock, renderSlot } from "vue";
|
|
3
|
+
//#region .build/vue/UiScrollArea.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var _hoisted_1 = ["data-ui-scroll-area-state"];
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region .build/vue/UiScrollArea.vue
|
|
7
|
+
var UiScrollArea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
8
|
+
inheritAttrs: false,
|
|
9
|
+
__name: "UiScrollArea",
|
|
10
|
+
props: { orientation: { default: "vertical" } },
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const props = __props;
|
|
13
|
+
/** The values the styles' :host-state() rules test. */
|
|
14
|
+
const hostState = computed(() => [props.orientation && `orientation orientation=${props.orientation}`].filter(Boolean).join(" "));
|
|
15
|
+
return (_ctx, _cache) => {
|
|
16
|
+
return openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-scroll-area" }, _ctx.$attrs, { "data-ui-scroll-area-state": hostState.value || void 0 }), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_1);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}), [["__scopeId", "data-v-858d7508"]]);
|
|
20
|
+
//#endregion
|
|
21
|
+
export { UiScrollArea_default as t };
|
|
@@ -67,6 +67,6 @@ var UiSearchShell_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
67
67
|
])], 8, _hoisted_1)], 16);
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
}), [["__scopeId", "data-v-
|
|
70
|
+
}), [["__scopeId", "data-v-2ba71171"]]);
|
|
71
71
|
//#endregion
|
|
72
72
|
export { UiSearchShell_default as t };
|
package/vue/chunks/UiSidebar.js
CHANGED
|
@@ -85,6 +85,6 @@ var UiSidebar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
85
85
|
}, null, -1)])], 8, _hoisted_3)], 16, _hoisted_1);
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
}), [["__scopeId", "data-v-
|
|
88
|
+
}), [["__scopeId", "data-v-20117052"]]);
|
|
89
89
|
//#endregion
|
|
90
90
|
export { UiSidebar_default as t };
|