@oneb/ui-vue 0.3.28 → 0.3.30
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/dist/dropdown/index.cjs +1 -1
- package/dist/dropdown/index.js +1 -1
- package/dist/entityPicker/index.cjs +1 -1
- package/dist/entityPicker/index.js +198 -175
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/modal/index.cjs +1 -1
- package/dist/modal/index.js +2 -2
- package/dist/modal/modal.d.ts +5 -0
- package/dist/periodPicker/index.cjs +1 -1
- package/dist/periodPicker/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/tailwind.config.cjs +1 -1
- package/dist/tailwind.config.d.ts +0 -4
- package/dist/tailwind.config.js +5 -2
- package/dist/useModal-0c73777f.cjs +1 -0
- package/dist/useModal-7fe9444b.js +194 -0
- package/package.json +1 -1
- package/dist/useModal-85f57682.js +0 -177
- package/dist/useModal-98810f6a.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as M, openBlock as a, createBlock as F, unref as d, withCtx as
|
|
2
|
-
import { O as ue, u as ce } from "../useModal-
|
|
1
|
+
import { defineComponent as M, openBlock as a, createBlock as F, unref as d, createSlots as R, withCtx as x, createElementBlock as o, renderSlot as c, createCommentVNode as C, computed as S, normalizeClass as m, toDisplayString as E, createElementVNode as r, normalizeStyle as X, resolveDynamicComponent as H, withModifiers as Q, createTextVNode as G, ref as I, onMounted as ne, onUnmounted as ae, watch as Y, nextTick as ie, createVNode as q, Fragment as Z, renderList as se, normalizeProps as oe, guardReactiveProps as re, isRef as de } from "vue";
|
|
2
|
+
import { O as ue, u as ce } from "../useModal-7fe9444b.js";
|
|
3
3
|
import { _ as D } from "../OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
|
|
4
4
|
import "vue-markdown-render";
|
|
5
5
|
import "../OneMarkdown.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
@@ -26,6 +26,7 @@ const fe = {
|
|
|
26
26
|
required: !0
|
|
27
27
|
},
|
|
28
28
|
title: { type: String, default: "" },
|
|
29
|
+
subtitle: { type: String, default: "" },
|
|
29
30
|
titleCenter: { type: Boolean, default: !1 },
|
|
30
31
|
size: {
|
|
31
32
|
type: String,
|
|
@@ -42,27 +43,36 @@ const fe = {
|
|
|
42
43
|
key: 0,
|
|
43
44
|
useModal: e.useModal,
|
|
44
45
|
title: e.title,
|
|
46
|
+
subtitle: e.subtitle,
|
|
45
47
|
size: e.size,
|
|
46
48
|
classModal: e.mobileView,
|
|
47
49
|
titleCenter: e.titleCenter
|
|
48
|
-
}, {
|
|
49
|
-
default:
|
|
50
|
+
}, R({
|
|
51
|
+
default: x(() => [
|
|
50
52
|
e.view === "create" ? (a(), o("div", fe, [
|
|
51
|
-
|
|
53
|
+
c(l.$slots, "create")
|
|
52
54
|
])) : e.view === "edit" ? (a(), o("div", ve, [
|
|
53
|
-
|
|
55
|
+
c(l.$slots, "edit")
|
|
54
56
|
])) : (a(), o("div", me, [
|
|
55
57
|
l.$slots.header ? (a(), o("div", ge, [
|
|
56
|
-
|
|
58
|
+
c(l.$slots, "header")
|
|
57
59
|
])) : C("", !0),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
c(l.$slots, "search"),
|
|
61
|
+
c(l.$slots, "prepend"),
|
|
62
|
+
c(l.$slots, "createButton"),
|
|
63
|
+
c(l.$slots, "list")
|
|
62
64
|
]))
|
|
63
65
|
]),
|
|
64
|
-
_:
|
|
65
|
-
},
|
|
66
|
+
_: 2
|
|
67
|
+
}, [
|
|
68
|
+
l.$slots.subtitle ? {
|
|
69
|
+
name: "subtitle",
|
|
70
|
+
fn: x(() => [
|
|
71
|
+
c(l.$slots, "subtitle")
|
|
72
|
+
]),
|
|
73
|
+
key: "0"
|
|
74
|
+
} : void 0
|
|
75
|
+
]), 1032, ["useModal", "title", "subtitle", "size", "classModal", "titleCenter"])) : C("", !0);
|
|
66
76
|
}
|
|
67
77
|
}), he = {
|
|
68
78
|
key: 0,
|
|
@@ -81,10 +91,10 @@ const fe = {
|
|
|
81
91
|
viewBox: "0 0 24 24",
|
|
82
92
|
stroke: "currentColor",
|
|
83
93
|
"stroke-width": "2"
|
|
84
|
-
}, Ee = { key: 0 }, Le = { class: "" },
|
|
94
|
+
}, Ee = { key: 0 }, Le = { class: "" }, $e = {
|
|
85
95
|
key: 0,
|
|
86
96
|
class: "space-y-1 flex flex-col"
|
|
87
|
-
},
|
|
97
|
+
}, we = {
|
|
88
98
|
key: 0,
|
|
89
99
|
class: "text-gray-400 text-xs font-light"
|
|
90
100
|
}, Ve = {
|
|
@@ -113,40 +123,40 @@ const fe = {
|
|
|
113
123
|
},
|
|
114
124
|
emits: ["open", "clear"],
|
|
115
125
|
setup(e, { emit: l }) {
|
|
116
|
-
const t = e, n = l,
|
|
126
|
+
const t = e, n = l, g = () => n("open"), i = S(() => t.variant === "compact" || t.variant === "minimal"), b = S(() => t.variant === "compact"), y = S(() => t.variant === "pill"), f = S(() => t.modelValue == null ? {} : { backgroundColor: `${t.tagColor}1A` }), L = S(
|
|
117
127
|
() => t.modelValue != null ? t.tagColor : "#979CA9"
|
|
118
128
|
);
|
|
119
129
|
return (s, h) => e.variant === "tag" ? (a(), o("div", he, [
|
|
120
|
-
|
|
130
|
+
c(s.$slots, "button", {
|
|
121
131
|
title: e.title,
|
|
122
132
|
modelValue: e.modelValue,
|
|
123
|
-
openModal:
|
|
133
|
+
openModal: g
|
|
124
134
|
}, () => [
|
|
125
135
|
e.title ? (a(), o("p", {
|
|
126
136
|
key: 0,
|
|
127
|
-
class:
|
|
128
|
-
},
|
|
137
|
+
class: m(["font-semibold text-black", e.labelClass])
|
|
138
|
+
}, E(e.title), 3)) : C("", !0),
|
|
129
139
|
r("div", {
|
|
130
|
-
class:
|
|
140
|
+
class: m([
|
|
131
141
|
"flex items-center gap-2 h-10 px-3 rounded-xl transition-colors",
|
|
132
142
|
e.readonly ? "" : "cursor-pointer",
|
|
133
143
|
e.modelValue == null ? "bg-[#FAFAFA] hover:bg-gray-100 text-[#979CA9]" : "hover:opacity-90 text-black"
|
|
134
144
|
]),
|
|
135
|
-
style: X(
|
|
136
|
-
onClick:
|
|
145
|
+
style: X(f.value),
|
|
146
|
+
onClick: g
|
|
137
147
|
}, [
|
|
138
148
|
e.icon ? (a(), F(H(e.icon), {
|
|
139
149
|
key: 0,
|
|
140
|
-
class:
|
|
150
|
+
class: m(["w-5 h-5 flex-shrink-0", e.iconClass]),
|
|
141
151
|
style: X({ color: L.value })
|
|
142
152
|
}, null, 8, ["style", "class"])) : C("", !0),
|
|
143
|
-
r("span", ke,
|
|
153
|
+
r("span", ke, E(e.modelValue != null ? e.resolvers.getEntityLabel(e.modelValue) : e.labelSelect), 1),
|
|
144
154
|
e.readonly ? C("", !0) : (a(), o("button", {
|
|
145
155
|
key: 1,
|
|
146
156
|
type: "button",
|
|
147
157
|
class: "text-[#979CA9] hover:text-gray-700 flex-shrink-0 -mr-1",
|
|
148
158
|
"aria-label": e.changeLabel,
|
|
149
|
-
onClick: h[0] || (h[0] = Q((
|
|
159
|
+
onClick: h[0] || (h[0] = Q(($) => e.modelValue != null ? s.$emit("clear") : g(), ["stop"]))
|
|
150
160
|
}, [
|
|
151
161
|
e.modelValue != null ? (a(), o("svg", Ce, [...h[2] || (h[2] = [
|
|
152
162
|
r("path", {
|
|
@@ -166,37 +176,37 @@ const fe = {
|
|
|
166
176
|
])
|
|
167
177
|
])) : (a(), o("div", {
|
|
168
178
|
key: 1,
|
|
169
|
-
class:
|
|
179
|
+
class: m(["relative select-none", i.value ? "space-y-1.5" : "space-y-3"])
|
|
170
180
|
}, [
|
|
171
|
-
|
|
181
|
+
c(s.$slots, "button", {
|
|
172
182
|
title: e.title,
|
|
173
183
|
modelValue: e.modelValue,
|
|
174
|
-
openModal:
|
|
184
|
+
openModal: g
|
|
175
185
|
}, () => [
|
|
176
186
|
e.title ? (a(), o("p", {
|
|
177
187
|
key: 0,
|
|
178
|
-
class:
|
|
179
|
-
},
|
|
188
|
+
class: m(["font-semibold pb-0", e.labelClass])
|
|
189
|
+
}, E(e.title), 3)) : C("", !0),
|
|
180
190
|
r("div", {
|
|
181
|
-
class:
|
|
191
|
+
class: m(["flex justify-between z-10 items-center", [
|
|
182
192
|
e.readonly ? "" : "cursor-pointer hover:bg-gray-50",
|
|
183
|
-
i.value ? ["rounded-full",
|
|
184
|
-
|
|
185
|
-
|
|
193
|
+
i.value ? ["rounded-full", b.value ? "bg-[#4089E01A]" : ""] : "border px-3 pr-3 py-3 rounded-lg h-[72px]",
|
|
194
|
+
y.value ? "border-none !py-0 h-max !rounded-full" : "",
|
|
195
|
+
y.value && e.modelValue !== null ? "bg-[#4089E01A]" : ""
|
|
186
196
|
]])
|
|
187
197
|
}, [
|
|
188
198
|
r("div", {
|
|
189
|
-
class:
|
|
190
|
-
onClick:
|
|
199
|
+
class: m(["flex items-center w-full gap-x-3", [i.value ? "!gap-x-1 px-0.5 py-0.5" : "", y.value ? "h-9 p-0" : ""]]),
|
|
200
|
+
onClick: g
|
|
191
201
|
}, [
|
|
192
|
-
!e.noIcon && (
|
|
202
|
+
!e.noIcon && (y.value || i.value || e.icon || e.modelValue) ? (a(), o("div", {
|
|
193
203
|
key: 0,
|
|
194
|
-
class:
|
|
204
|
+
class: m(["w-10 h-10 flex items-center justify-center", e.iconClassBlock])
|
|
195
205
|
}, [
|
|
196
|
-
|
|
206
|
+
y.value ? (a(), o("div", Ee, [
|
|
197
207
|
e.modelValue == null ? (a(), o("svg", {
|
|
198
208
|
key: 0,
|
|
199
|
-
class:
|
|
209
|
+
class: m(["w-3 text-blue-600", e.iconClass]),
|
|
200
210
|
fill: "none",
|
|
201
211
|
viewBox: "0 0 24 24",
|
|
202
212
|
stroke: "currentColor",
|
|
@@ -209,14 +219,14 @@ const fe = {
|
|
|
209
219
|
}, null, -1)
|
|
210
220
|
])], 2)) : (a(), F(H(e.icon), {
|
|
211
221
|
key: 1,
|
|
212
|
-
class:
|
|
222
|
+
class: m(["w-5", e.iconClass])
|
|
213
223
|
}, null, 8, ["class"]))
|
|
214
224
|
])) : e.icon != null && e.modelValue == null || i.value ? (a(), o("div", {
|
|
215
225
|
key: 1,
|
|
216
|
-
class:
|
|
226
|
+
class: m(i.value ? "" : "bg-gray-50 p-2.5 rounded-lg")
|
|
217
227
|
}, [
|
|
218
228
|
(a(), F(H(e.icon), {
|
|
219
|
-
class:
|
|
229
|
+
class: m([["w-5", e.iconClass], "text-gray-600"])
|
|
220
230
|
}, null, 8, ["class"]))
|
|
221
231
|
], 2)) : e.modelValue ? (a(), F(d(D), {
|
|
222
232
|
key: 2,
|
|
@@ -228,39 +238,39 @@ const fe = {
|
|
|
228
238
|
}, null, 8, ["text", "src"])) : C("", !0)
|
|
229
239
|
], 2)) : C("", !0),
|
|
230
240
|
r("div", Le, [
|
|
231
|
-
e.modelValue == null ? (a(), o("div",
|
|
241
|
+
e.modelValue == null ? (a(), o("div", $e, [
|
|
232
242
|
r("div", {
|
|
233
|
-
class:
|
|
243
|
+
class: m(["font-medium text-gray-600 truncate overflow-hidden whitespace-nowrap", [
|
|
234
244
|
i.value ? "text-xs truncate max-w-[120px] text-[#525B66]" : "text-sm",
|
|
235
|
-
|
|
245
|
+
y.value ? "!text-xs truncate max-w-[120px] text-[#4089E0]" : ""
|
|
236
246
|
]])
|
|
237
|
-
},
|
|
238
|
-
e.labelSelectNote && !i.value && !
|
|
247
|
+
}, E(e.labelSelect), 3),
|
|
248
|
+
e.labelSelectNote && !i.value && !y.value ? (a(), o("span", we, E(e.labelSelectNote), 1)) : C("", !0)
|
|
239
249
|
])) : (a(), o("div", {
|
|
240
250
|
key: 1,
|
|
241
|
-
class:
|
|
251
|
+
class: m(["grid items-center pr-2", i.value ? "" : "py-1"])
|
|
242
252
|
}, [
|
|
243
253
|
r("div", {
|
|
244
|
-
class:
|
|
254
|
+
class: m(["break-all leading-4 truncate !text-sm", {
|
|
245
255
|
"text-sm font-medium": e.resolvers.getEntityLabel(e.modelValue).length < 20,
|
|
246
256
|
"text-xs font-semibold": e.resolvers.getEntityLabel(e.modelValue).length > 20,
|
|
247
257
|
"truncate text-[#525B66] text-xs": i.value,
|
|
248
|
-
"truncate text-xs":
|
|
258
|
+
"truncate text-xs": y.value
|
|
249
259
|
}])
|
|
250
260
|
}, [
|
|
251
|
-
G(
|
|
252
|
-
!e.readonly && !i.value && !
|
|
261
|
+
G(E(e.resolvers.getEntityLabel(e.modelValue)) + " ", 1),
|
|
262
|
+
!e.readonly && !i.value && !y.value ? (a(), o("span", Ve, E(e.changeLabel), 1)) : C("", !0)
|
|
253
263
|
], 2),
|
|
254
264
|
e.resolvers.getEntityAdditional(e.modelValue) ? (a(), o("div", {
|
|
255
265
|
key: 0,
|
|
256
|
-
class:
|
|
266
|
+
class: m(["font-thin leading-3 break-all line-clamp-2 pt-1 truncate !text-xs", {
|
|
257
267
|
"text-xs": e.resolvers.getEntityAdditional(e.modelValue).length < 20,
|
|
258
268
|
"text-[10px]": e.resolvers.getEntityAdditional(e.modelValue).length > 20 && e.resolvers.getEntityAdditional(e.modelValue).length < 35,
|
|
259
269
|
"text-[9px]": e.resolvers.getEntityAdditional(e.modelValue).length > 35
|
|
260
270
|
}])
|
|
261
271
|
}, [
|
|
262
|
-
|
|
263
|
-
G(
|
|
272
|
+
c(s.$slots, "entityAdditional", { item: e.modelValue }, () => [
|
|
273
|
+
G(E(e.resolvers.getEntityAdditional(e.modelValue)), 1)
|
|
264
274
|
])
|
|
265
275
|
], 2)) : C("", !0)
|
|
266
276
|
], 2))
|
|
@@ -269,8 +279,8 @@ const fe = {
|
|
|
269
279
|
e.modelValue != null && !e.readonly ? (a(), o("button", {
|
|
270
280
|
key: 0,
|
|
271
281
|
type: "button",
|
|
272
|
-
class:
|
|
273
|
-
onClick: h[1] || (h[1] = Q((
|
|
282
|
+
class: m(["rounded-full hover:text-gray-900 text-gray-500", { "mr-2 text-[#525B66] p-0.5": i.value }]),
|
|
283
|
+
onClick: h[1] || (h[1] = Q(($) => s.$emit("clear"), ["stop"]))
|
|
274
284
|
}, [...h[5] || (h[5] = [
|
|
275
285
|
r("svg", {
|
|
276
286
|
class: "w-4 h-4",
|
|
@@ -285,11 +295,11 @@ const fe = {
|
|
|
285
295
|
d: "M6 18L18 6M6 6l12 12"
|
|
286
296
|
})
|
|
287
297
|
], -1)
|
|
288
|
-
])], 2)) : !e.readonly && !i.value && !
|
|
298
|
+
])], 2)) : !e.readonly && !i.value && !y.value ? (a(), o("button", {
|
|
289
299
|
key: 1,
|
|
290
300
|
type: "button",
|
|
291
301
|
class: "py-2.5 text-gray-500",
|
|
292
|
-
onClick:
|
|
302
|
+
onClick: g
|
|
293
303
|
}, [...h[6] || (h[6] = [
|
|
294
304
|
r("svg", {
|
|
295
305
|
class: "w-5 h-5",
|
|
@@ -311,36 +321,36 @@ const fe = {
|
|
|
311
321
|
}
|
|
312
322
|
});
|
|
313
323
|
function Ie(e) {
|
|
314
|
-
const l = (s) => s ? String(s[e.entityLabel] || "") : "", t = (s) => !s || !e.entityAvatar ? "" : String(s[e.entityAvatar] || ""), n = (s) => !s || !e.entityAdditional ? "" : String(s[e.entityAdditional] || ""),
|
|
324
|
+
const l = (s) => s ? String(s[e.entityLabel] || "") : "", t = (s) => !s || !e.entityAvatar ? "" : String(s[e.entityAvatar] || ""), n = (s) => !s || !e.entityAdditional ? "" : String(s[e.entityAdditional] || ""), g = (s) => s ? s[e.entityKey] : "", i = (s) => s[e.entityListKey];
|
|
315
325
|
return {
|
|
316
326
|
getEntityLabel: l,
|
|
317
327
|
getEntityAvatar: t,
|
|
318
328
|
getEntityAdditional: n,
|
|
319
|
-
getEntityKey:
|
|
329
|
+
getEntityKey: g,
|
|
320
330
|
getEntityListKey: i,
|
|
321
331
|
getEntityListLabel: (s) => String(s[e.entityListLabel] || ""),
|
|
322
332
|
getEntityListAvatar: (s) => e.entityListAvatar ? String(s[e.entityListAvatar] || "") : "",
|
|
323
333
|
getEntityListAdditional: (s) => e.entityListAdditional ? String(s[e.entityListAdditional] || "") : "",
|
|
324
|
-
isSelected: (s) =>
|
|
334
|
+
isSelected: (s) => g(e.modelValue) === i(s)
|
|
325
335
|
};
|
|
326
336
|
}
|
|
327
337
|
function Be(e, l) {
|
|
328
|
-
const t = e.listEntityUse ? e.listEntityUse() : null, n = t == null ? void 0 : t.nodes,
|
|
329
|
-
|
|
330
|
-
},
|
|
331
|
-
get: () => (i == null ? void 0 : i.value) ??
|
|
338
|
+
const t = e.listEntityUse ? e.listEntityUse() : null, n = t == null ? void 0 : t.nodes, g = t == null ? void 0 : t.load, i = t == null ? void 0 : t.searchTerm, b = t == null ? void 0 : t.isLoading, y = t == null ? void 0 : t.isLoad, f = t == null ? void 0 : t.group, L = I(null), s = S(() => (f == null ? void 0 : f.value) ?? L.value), h = (k) => {
|
|
339
|
+
f ? f.value = k : L.value = k;
|
|
340
|
+
}, $ = I(""), T = S({
|
|
341
|
+
get: () => (i == null ? void 0 : i.value) ?? $.value,
|
|
332
342
|
set: (k) => {
|
|
333
|
-
i ? i.value = k :
|
|
343
|
+
i ? i.value = k : $.value = k;
|
|
334
344
|
}
|
|
335
345
|
}), O = () => {
|
|
336
|
-
|
|
337
|
-
}, P = S(() => (
|
|
346
|
+
$.value = "", i && (i.value = "");
|
|
347
|
+
}, P = S(() => (b == null ? void 0 : b.value) ?? e.isLoading), z = S(() => (n == null ? void 0 : n.value) ?? e.items), u = S(() => {
|
|
338
348
|
const k = z.value;
|
|
339
349
|
if (e.modelValue == null)
|
|
340
350
|
return k;
|
|
341
351
|
const B = l.getEntityKey(e.modelValue);
|
|
342
352
|
return k.some(
|
|
343
|
-
(
|
|
353
|
+
(w) => l.getEntityListKey(w) === B
|
|
344
354
|
) ? k : [e.modelValue, ...k];
|
|
345
355
|
}), j = S(() => {
|
|
346
356
|
if (!T.value)
|
|
@@ -349,8 +359,8 @@ function Be(e, l) {
|
|
|
349
359
|
return u.value.filter((V) => {
|
|
350
360
|
if (B != null && l.getEntityListKey(V) === B)
|
|
351
361
|
return !0;
|
|
352
|
-
const
|
|
353
|
-
return
|
|
362
|
+
const w = l.getEntityListLabel(V).toLowerCase(), K = l.getEntityListAdditional(V).toLowerCase();
|
|
363
|
+
return w.includes(k) || K.includes(k);
|
|
354
364
|
});
|
|
355
365
|
}), W = S(() => {
|
|
356
366
|
const k = j.value;
|
|
@@ -361,13 +371,13 @@ function Be(e, l) {
|
|
|
361
371
|
);
|
|
362
372
|
if (V <= 0)
|
|
363
373
|
return k;
|
|
364
|
-
const
|
|
365
|
-
return
|
|
374
|
+
const w = k.slice(), [K] = w.splice(V, 1);
|
|
375
|
+
return w.unshift(K), w;
|
|
366
376
|
});
|
|
367
377
|
return {
|
|
368
378
|
// dynamic data hooks (exposed for modal lifecycle watchers)
|
|
369
|
-
load:
|
|
370
|
-
dynamicIsLoad:
|
|
379
|
+
load: g,
|
|
380
|
+
dynamicIsLoad: y,
|
|
371
381
|
nodes: n,
|
|
372
382
|
// search
|
|
373
383
|
searchTerm: T,
|
|
@@ -385,7 +395,7 @@ function Be(e, l) {
|
|
|
385
395
|
};
|
|
386
396
|
}
|
|
387
397
|
function Me(e, l, t) {
|
|
388
|
-
const n = ce(),
|
|
398
|
+
const n = ce(), g = I(null), i = I(!1), b = I(null), y = I(!1), f = I(e.modalSize), L = I(!1);
|
|
389
399
|
let s = null;
|
|
390
400
|
ne(() => {
|
|
391
401
|
s = window.matchMedia("(max-width: 767px)"), L.value = s.matches;
|
|
@@ -397,23 +407,23 @@ function Me(e, l, t) {
|
|
|
397
407
|
});
|
|
398
408
|
});
|
|
399
409
|
const h = () => {
|
|
400
|
-
e.readonly || (l.clearSearchTerm(), i.value = !1,
|
|
410
|
+
e.readonly || (l.clearSearchTerm(), i.value = !1, b.value = null, y.value = !1, f.value = e.modalSize, n.open(), ie(() => {
|
|
401
411
|
var u;
|
|
402
|
-
(u =
|
|
412
|
+
(u = g.value) == null || u.focus();
|
|
403
413
|
}));
|
|
404
|
-
},
|
|
414
|
+
}, $ = (u) => {
|
|
405
415
|
t("update:modelValue", u), n.close();
|
|
406
416
|
}, T = () => {
|
|
407
417
|
t("update:modelValue", null);
|
|
408
418
|
}, O = () => {
|
|
409
|
-
i.value = !0,
|
|
419
|
+
i.value = !0, f.value = e.sizeModalCreateEntity;
|
|
410
420
|
}, P = (u) => {
|
|
411
|
-
|
|
421
|
+
b.value = u, f.value = e.sizeModalCreateEntity;
|
|
412
422
|
}, z = (u) => {
|
|
413
|
-
i.value = !1,
|
|
423
|
+
i.value = !1, b.value = null, y.value = !1, f.value = e.modalSize, u ? (n.close(), t("update:modelValue", u)) : !l.loading.value && l.availableItems.value.length === 0 && !l.searchTerm.value && n.close();
|
|
414
424
|
};
|
|
415
425
|
return Y(n.isOpened, (u) => {
|
|
416
|
-
u && l.load && l.load(), u || (i.value = !1,
|
|
426
|
+
u && l.load && l.load(), u || (i.value = !1, f.value = e.modalSize);
|
|
417
427
|
}), Y(
|
|
418
428
|
() => {
|
|
419
429
|
var u;
|
|
@@ -421,18 +431,18 @@ function Me(e, l, t) {
|
|
|
421
431
|
},
|
|
422
432
|
() => {
|
|
423
433
|
var u;
|
|
424
|
-
l.dynamicIsLoad && !l.loading.value && l.dynamicIsLoad.value && !l.searchTerm.value && ((u = l.nodes) == null ? void 0 : u.value.length) === 0 && (
|
|
434
|
+
l.dynamicIsLoad && !l.loading.value && l.dynamicIsLoad.value && !l.searchTerm.value && ((u = l.nodes) == null ? void 0 : u.value.length) === 0 && (y.value = !0, f.value = e.sizeModalCreateEntity);
|
|
425
435
|
}
|
|
426
436
|
), {
|
|
427
437
|
modal: n,
|
|
428
|
-
searchInput:
|
|
438
|
+
searchInput: g,
|
|
429
439
|
creatingEntity: i,
|
|
430
|
-
editEntity:
|
|
431
|
-
startCreate:
|
|
432
|
-
currentModalSize:
|
|
440
|
+
editEntity: b,
|
|
441
|
+
startCreate: y,
|
|
442
|
+
currentModalSize: f,
|
|
433
443
|
isMobileView: L,
|
|
434
444
|
openPicker: h,
|
|
435
|
-
selectItem:
|
|
445
|
+
selectItem: $,
|
|
436
446
|
onClear: T,
|
|
437
447
|
onCreateEntity: O,
|
|
438
448
|
onEditEntity: P,
|
|
@@ -453,17 +463,17 @@ const Te = { class: "relative px-4 pt-3 pb-2" }, ze = { class: "relative" }, qe
|
|
|
453
463
|
},
|
|
454
464
|
emits: ["update:modelValue"],
|
|
455
465
|
setup(e, { expose: l, emit: t }) {
|
|
456
|
-
const n = t,
|
|
457
|
-
n("update:modelValue",
|
|
466
|
+
const n = t, g = I(null), i = (b) => {
|
|
467
|
+
n("update:modelValue", b.target.value);
|
|
458
468
|
};
|
|
459
469
|
return l({
|
|
460
470
|
focus: () => {
|
|
461
|
-
var
|
|
462
|
-
return (
|
|
471
|
+
var b;
|
|
472
|
+
return (b = g.value) == null ? void 0 : b.focus();
|
|
463
473
|
}
|
|
464
|
-
}), (
|
|
474
|
+
}), (b, y) => (a(), o("div", Te, [
|
|
465
475
|
r("div", ze, [
|
|
466
|
-
|
|
476
|
+
y[0] || (y[0] = r("svg", {
|
|
467
477
|
class: "absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-[#979CA9]",
|
|
468
478
|
fill: "none",
|
|
469
479
|
viewBox: "0 0 24 24",
|
|
@@ -478,7 +488,7 @@ const Te = { class: "relative px-4 pt-3 pb-2" }, ze = { class: "relative" }, qe
|
|
|
478
488
|
], -1)),
|
|
479
489
|
r("input", {
|
|
480
490
|
ref_key: "inputRef",
|
|
481
|
-
ref:
|
|
491
|
+
ref: g,
|
|
482
492
|
value: e.modelValue,
|
|
483
493
|
type: "text",
|
|
484
494
|
class: "w-full h-10 pl-11 pr-3 border border-[#E2E7EF] rounded-[10px] text-sm placeholder:text-[#979CA9] focus:outline-none focus:ring-2 focus:ring-primary-base focus:border-transparent",
|
|
@@ -514,7 +524,7 @@ const Te = { class: "relative px-4 pt-3 pb-2" }, ze = { class: "relative" }, qe
|
|
|
514
524
|
d: "M12 4.5v15m7.5-7.5h-15"
|
|
515
525
|
})
|
|
516
526
|
], -1)),
|
|
517
|
-
r("span", Oe,
|
|
527
|
+
r("span", Oe, E(e.label), 1)
|
|
518
528
|
])
|
|
519
529
|
]));
|
|
520
530
|
}
|
|
@@ -591,13 +601,13 @@ const Te = { class: "relative px-4 pt-3 pb-2" }, ze = { class: "relative" }, qe
|
|
|
591
601
|
emits: ["select", "edit"],
|
|
592
602
|
setup(e) {
|
|
593
603
|
return (l, t) => (a(), o("div", {
|
|
594
|
-
class:
|
|
604
|
+
class: m(["flex items-center gap-3 py-3 px-4 hover:bg-secondary-body-hover cursor-pointer", [{ "bg-gray-50": e.selected }, e.itemClass]]),
|
|
595
605
|
onClick: t[1] || (t[1] = (n) => l.$emit("select"))
|
|
596
606
|
}, [
|
|
597
607
|
r("div", {
|
|
598
|
-
class:
|
|
608
|
+
class: m(["flex-shrink-0", e.iconWrapperClass])
|
|
599
609
|
}, [
|
|
600
|
-
|
|
610
|
+
c(l.$slots, "icon", {}, () => [
|
|
601
611
|
q(d(D), {
|
|
602
612
|
text: e.avatarText,
|
|
603
613
|
src: e.avatarSrc,
|
|
@@ -609,14 +619,14 @@ const Te = { class: "relative px-4 pt-3 pb-2" }, ze = { class: "relative" }, qe
|
|
|
609
619
|
], 2),
|
|
610
620
|
r("div", Ge, [
|
|
611
621
|
r("p", {
|
|
612
|
-
class:
|
|
613
|
-
},
|
|
622
|
+
class: m(e.titleClass)
|
|
623
|
+
}, E(e.title), 3),
|
|
614
624
|
e.subtitle ? (a(), o("div", {
|
|
615
625
|
key: 0,
|
|
616
|
-
class:
|
|
626
|
+
class: m(e.subtitleClass)
|
|
617
627
|
}, [
|
|
618
|
-
|
|
619
|
-
G(
|
|
628
|
+
c(l.$slots, "additional", {}, () => [
|
|
629
|
+
G(E(e.subtitle), 1)
|
|
620
630
|
])
|
|
621
631
|
], 2)) : C("", !0)
|
|
622
632
|
]),
|
|
@@ -625,7 +635,7 @@ const Te = { class: "relative px-4 pt-3 pb-2" }, ze = { class: "relative" }, qe
|
|
|
625
635
|
type: "button",
|
|
626
636
|
class: "text-xs font-semibold text-[#4089E0] hover:text-primary-active flex-shrink-0 tracking-[0.4px]",
|
|
627
637
|
onClick: t[0] || (t[0] = Q((n) => l.$emit("edit"), ["stop"]))
|
|
628
|
-
},
|
|
638
|
+
}, E(e.editLabel), 1)) : C("", !0),
|
|
629
639
|
q(Re, {
|
|
630
640
|
variant: e.indicator,
|
|
631
641
|
selected: e.selected
|
|
@@ -673,25 +683,25 @@ const Te = { class: "relative px-4 pt-3 pb-2" }, ze = { class: "relative" }, qe
|
|
|
673
683
|
emits: ["select", "edit", "create"],
|
|
674
684
|
setup(e) {
|
|
675
685
|
return (l, t) => (a(), o("div", {
|
|
676
|
-
class:
|
|
686
|
+
class: m(["divide-y divide-[#E3ECF2] overflow-auto", e.scrollHeightClass])
|
|
677
687
|
}, [
|
|
678
688
|
e.loading ? (a(), o("div", He, [...t[1] || (t[1] = [
|
|
679
689
|
r("div", { class: "animate-spin w-6 h-6 border-2 border-primary-base border-t-transparent rounded-full" }, null, -1)
|
|
680
690
|
])])) : e.items.length === 0 && !e.searchTerm ? (a(), o("div", Qe, [
|
|
681
|
-
|
|
682
|
-
r("p", Je,
|
|
691
|
+
c(l.$slots, "empty", {}, () => [
|
|
692
|
+
r("p", Je, E(e.emptyMessage), 1)
|
|
683
693
|
])
|
|
684
694
|
])) : e.items.length === 0 && e.searchTerm ? (a(), o("div", Xe, [
|
|
685
695
|
r("p", Ye, [
|
|
686
|
-
G(
|
|
687
|
-
r("b", null,
|
|
696
|
+
G(E(e.notFoundLabel) + " ", 1),
|
|
697
|
+
r("b", null, E(e.searchTerm), 1)
|
|
688
698
|
]),
|
|
689
699
|
e.canCreate ? (a(), o("button", {
|
|
690
700
|
key: 0,
|
|
691
701
|
type: "button",
|
|
692
702
|
class: "w-full text-xs text-blue-400 hover:text-blue-300 mt-2",
|
|
693
703
|
onClick: t[0] || (t[0] = (n) => l.$emit("create"))
|
|
694
|
-
},
|
|
704
|
+
}, E(e.createWithQueryLabel), 1)) : C("", !0)
|
|
695
705
|
])) : (a(!0), o(Z, { key: 3 }, se(e.items, (n) => (a(), F(We, {
|
|
696
706
|
key: e.resolvers.getEntityListKey(n),
|
|
697
707
|
selected: e.resolvers.isSelected(n),
|
|
@@ -706,20 +716,20 @@ const Te = { class: "relative px-4 pt-3 pb-2" }, ze = { class: "relative" }, qe
|
|
|
706
716
|
indicator: e.itemIndicator,
|
|
707
717
|
"show-edit": e.resolvers.isSelected(n) && e.canEdit,
|
|
708
718
|
"edit-label": e.editLabel,
|
|
709
|
-
onSelect: (
|
|
710
|
-
onEdit: (
|
|
719
|
+
onSelect: (g) => l.$emit("select", n),
|
|
720
|
+
onEdit: (g) => l.$emit("edit", e.resolvers.getEntityKey(n))
|
|
711
721
|
}, R({ _: 2 }, [
|
|
712
722
|
l.$slots.itemIcon ? {
|
|
713
723
|
name: "icon",
|
|
714
|
-
fn:
|
|
715
|
-
|
|
724
|
+
fn: x(() => [
|
|
725
|
+
c(l.$slots, "itemIcon", { item: n })
|
|
716
726
|
]),
|
|
717
727
|
key: "0"
|
|
718
728
|
} : void 0,
|
|
719
729
|
l.$slots.itemAdditional ? {
|
|
720
730
|
name: "additional",
|
|
721
|
-
fn:
|
|
722
|
-
|
|
731
|
+
fn: x(() => [
|
|
732
|
+
c(l.$slots, "itemAdditional", { item: n })
|
|
723
733
|
]),
|
|
724
734
|
key: "1"
|
|
725
735
|
} : void 0
|
|
@@ -872,6 +882,11 @@ const Te = { class: "relative px-4 pt-3 pb-2" }, ze = { class: "relative" }, qe
|
|
|
872
882
|
type: String,
|
|
873
883
|
default: ""
|
|
874
884
|
},
|
|
885
|
+
modalSubtitle: {
|
|
886
|
+
required: !1,
|
|
887
|
+
type: String,
|
|
888
|
+
default: ""
|
|
889
|
+
},
|
|
875
890
|
modalTitlePosition: {
|
|
876
891
|
required: !1,
|
|
877
892
|
type: String,
|
|
@@ -943,7 +958,7 @@ const Te = { class: "relative px-4 pt-3 pb-2" }, ze = { class: "relative" }, qe
|
|
|
943
958
|
},
|
|
944
959
|
emits: ["update:modelValue", "onSetEntity"],
|
|
945
960
|
setup(e, { emit: l }) {
|
|
946
|
-
const t = ye(), n = e,
|
|
961
|
+
const t = ye(), n = e, g = l, i = S(() => n.t ?? t), b = Ie(n), y = Be(n, b), { searchTerm: f, selectedGroup: L, setSelectedGroup: s, sortedItems: h, loading: $ } = y, {
|
|
947
962
|
modal: T,
|
|
948
963
|
searchInput: O,
|
|
949
964
|
creatingEntity: P,
|
|
@@ -954,10 +969,10 @@ const Te = { class: "relative px-4 pt-3 pb-2" }, ze = { class: "relative" }, qe
|
|
|
954
969
|
openPicker: k,
|
|
955
970
|
selectItem: B,
|
|
956
971
|
onClear: V,
|
|
957
|
-
onCreateEntity:
|
|
972
|
+
onCreateEntity: w,
|
|
958
973
|
onEditEntity: K,
|
|
959
974
|
onCloseCreateEntity: N
|
|
960
|
-
} = Me(n,
|
|
975
|
+
} = Me(n, y, g), p = S(
|
|
961
976
|
() => n.modalTitle || i.value("ui.entity_picker.Select")
|
|
962
977
|
), _ = S(
|
|
963
978
|
() => n.listItemTitleClass || pe
|
|
@@ -966,12 +981,12 @@ const Te = { class: "relative px-4 pt-3 pb-2" }, ze = { class: "relative" }, qe
|
|
|
966
981
|
), te = S(
|
|
967
982
|
() => n.noSearch ? "sm:h-[52vh] h-[86dvh] min-h-[300px]" : "sm:h-[40vh] h-[60dvh]"
|
|
968
983
|
), le = S(() => P.value || u.value ? "create" : z.value ? "edit" : "browse"), J = S(() => {
|
|
969
|
-
const
|
|
984
|
+
const v = [];
|
|
970
985
|
return n.validation == null || n.validationIndex == null || Object.keys(n.validation).forEach((U) => {
|
|
971
|
-
U.startsWith(n.validationIndex) &&
|
|
972
|
-
}),
|
|
986
|
+
U.startsWith(n.validationIndex) && v.push(...n.validation[U]);
|
|
987
|
+
}), v;
|
|
973
988
|
});
|
|
974
|
-
return (
|
|
989
|
+
return (v, U) => (a(), o(Z, null, [
|
|
975
990
|
q(Ae, {
|
|
976
991
|
variant: e.variant,
|
|
977
992
|
"model-value": e.modelValue,
|
|
@@ -986,21 +1001,21 @@ const Te = { class: "relative px-4 pt-3 pb-2" }, ze = { class: "relative" }, qe
|
|
|
986
1001
|
readonly: e.readonly,
|
|
987
1002
|
"tag-color": e.tagColor,
|
|
988
1003
|
"change-label": i.value("ui.entity_picker.Change"),
|
|
989
|
-
resolvers: d(
|
|
1004
|
+
resolvers: d(b),
|
|
990
1005
|
onOpen: d(k),
|
|
991
1006
|
onClear: d(V)
|
|
992
1007
|
}, R({ _: 2 }, [
|
|
993
|
-
|
|
1008
|
+
v.$slots.button ? {
|
|
994
1009
|
name: "button",
|
|
995
|
-
fn:
|
|
996
|
-
|
|
1010
|
+
fn: x((A) => [
|
|
1011
|
+
c(v.$slots, "button", oe(re(A)))
|
|
997
1012
|
]),
|
|
998
1013
|
key: "0"
|
|
999
1014
|
} : void 0,
|
|
1000
|
-
|
|
1015
|
+
v.$slots.entityAdditional ? {
|
|
1001
1016
|
name: "entityAdditional",
|
|
1002
|
-
fn:
|
|
1003
|
-
|
|
1017
|
+
fn: x(({ item: A }) => [
|
|
1018
|
+
c(v.$slots, "entityAdditional", { item: A })
|
|
1004
1019
|
]),
|
|
1005
1020
|
key: "1"
|
|
1006
1021
|
} : void 0
|
|
@@ -1008,66 +1023,67 @@ const Te = { class: "relative px-4 pt-3 pb-2" }, ze = { class: "relative" }, qe
|
|
|
1008
1023
|
q(be, {
|
|
1009
1024
|
useModal: d(T),
|
|
1010
1025
|
title: p.value,
|
|
1026
|
+
subtitle: e.modalSubtitle,
|
|
1011
1027
|
"title-center": e.modalTitlePosition === "center",
|
|
1012
1028
|
size: d(j),
|
|
1013
1029
|
"mobile-view": d(W),
|
|
1014
1030
|
view: le.value
|
|
1015
1031
|
}, R({
|
|
1016
|
-
create:
|
|
1017
|
-
|
|
1032
|
+
create: x(() => [
|
|
1033
|
+
c(v.$slots, "creating", {
|
|
1018
1034
|
onCloseCreateEntity: d(N),
|
|
1019
|
-
find: d(
|
|
1035
|
+
find: d(f)
|
|
1020
1036
|
})
|
|
1021
1037
|
]),
|
|
1022
|
-
edit:
|
|
1023
|
-
|
|
1038
|
+
edit: x(() => [
|
|
1039
|
+
c(v.$slots, "edit", {
|
|
1024
1040
|
onCloseCreateEntity: d(N),
|
|
1025
1041
|
editId: d(z)
|
|
1026
1042
|
})
|
|
1027
1043
|
]),
|
|
1028
|
-
list:
|
|
1044
|
+
list: x(() => [
|
|
1029
1045
|
q(Ze, {
|
|
1030
|
-
loading: d(
|
|
1046
|
+
loading: d($),
|
|
1031
1047
|
items: d(h),
|
|
1032
|
-
"search-term": d(
|
|
1048
|
+
"search-term": d(f),
|
|
1033
1049
|
"scroll-height-class": te.value,
|
|
1034
|
-
resolvers: d(
|
|
1050
|
+
resolvers: d(b),
|
|
1035
1051
|
"empty-message": e.listEmptyMessage || i.value("ui.entity_picker.List empty"),
|
|
1036
1052
|
"not-found-label": i.value("ui.entity_picker.Nothing found for"),
|
|
1037
|
-
"create-with-query-label": `${e.labelCreateButton} «${d(
|
|
1053
|
+
"create-with-query-label": `${e.labelCreateButton} «${d(f)}»`,
|
|
1038
1054
|
"can-create": !e.noCreate && !!e.labelCreateButton,
|
|
1039
1055
|
"item-size": e.listItemSize,
|
|
1040
1056
|
"item-icon-class": e.listItemIconClass,
|
|
1041
1057
|
"item-title-class": _.value,
|
|
1042
1058
|
"item-subtitle-class": ee.value,
|
|
1043
1059
|
"item-indicator": e.listItemIndicator,
|
|
1044
|
-
"can-edit": !!
|
|
1060
|
+
"can-edit": !!v.$slots.edit && !e.noEdit,
|
|
1045
1061
|
"edit-label": e.editButtonLabel || i.value("ui.entity_picker.Edit"),
|
|
1046
1062
|
onSelect: d(B),
|
|
1047
1063
|
onEdit: d(K),
|
|
1048
|
-
onCreate: d(
|
|
1064
|
+
onCreate: d(w)
|
|
1049
1065
|
}, R({ _: 2 }, [
|
|
1050
|
-
|
|
1066
|
+
v.$slots.creating ? {
|
|
1051
1067
|
name: "empty",
|
|
1052
|
-
fn:
|
|
1053
|
-
|
|
1068
|
+
fn: x(() => [
|
|
1069
|
+
c(v.$slots, "creating", {
|
|
1054
1070
|
onCloseCreateEntity: d(N),
|
|
1055
|
-
find: d(
|
|
1071
|
+
find: d(f)
|
|
1056
1072
|
})
|
|
1057
1073
|
]),
|
|
1058
1074
|
key: "0"
|
|
1059
1075
|
} : void 0,
|
|
1060
|
-
|
|
1076
|
+
v.$slots.entityListIcon ? {
|
|
1061
1077
|
name: "itemIcon",
|
|
1062
|
-
fn:
|
|
1063
|
-
|
|
1078
|
+
fn: x(({ item: A }) => [
|
|
1079
|
+
c(v.$slots, "entityListIcon", { item: A })
|
|
1064
1080
|
]),
|
|
1065
1081
|
key: "1"
|
|
1066
1082
|
} : void 0,
|
|
1067
|
-
|
|
1083
|
+
v.$slots.entityAdditional ? {
|
|
1068
1084
|
name: "itemAdditional",
|
|
1069
|
-
fn:
|
|
1070
|
-
|
|
1085
|
+
fn: x(({ item: A }) => [
|
|
1086
|
+
c(v.$slots, "entityAdditional", { item: A })
|
|
1071
1087
|
]),
|
|
1072
1088
|
key: "2"
|
|
1073
1089
|
} : void 0
|
|
@@ -1075,48 +1091,55 @@ const Te = { class: "relative px-4 pt-3 pb-2" }, ze = { class: "relative" }, qe
|
|
|
1075
1091
|
]),
|
|
1076
1092
|
_: 2
|
|
1077
1093
|
}, [
|
|
1078
|
-
|
|
1079
|
-
name: "
|
|
1080
|
-
fn:
|
|
1081
|
-
|
|
1094
|
+
v.$slots.modalSubtitle ? {
|
|
1095
|
+
name: "subtitle",
|
|
1096
|
+
fn: x(() => [
|
|
1097
|
+
c(v.$slots, "modalSubtitle")
|
|
1082
1098
|
]),
|
|
1083
1099
|
key: "0"
|
|
1084
1100
|
} : void 0,
|
|
1101
|
+
v.$slots.modalHeader ? {
|
|
1102
|
+
name: "header",
|
|
1103
|
+
fn: x(() => [
|
|
1104
|
+
c(v.$slots, "modalHeader")
|
|
1105
|
+
]),
|
|
1106
|
+
key: "1"
|
|
1107
|
+
} : void 0,
|
|
1085
1108
|
e.noSearch ? void 0 : {
|
|
1086
1109
|
name: "search",
|
|
1087
|
-
fn:
|
|
1110
|
+
fn: x(() => [
|
|
1088
1111
|
q(je, {
|
|
1089
1112
|
ref_key: "searchInput",
|
|
1090
1113
|
ref: O,
|
|
1091
|
-
modelValue: d(
|
|
1092
|
-
"onUpdate:modelValue": U[0] || (U[0] = (A) => de(
|
|
1114
|
+
modelValue: d(f),
|
|
1115
|
+
"onUpdate:modelValue": U[0] || (U[0] = (A) => de(f) ? f.value = A : null),
|
|
1093
1116
|
placeholder: e.searchPlaceholder || i.value("ui.entity_picker.Search")
|
|
1094
1117
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1095
1118
|
]),
|
|
1096
|
-
key: "
|
|
1119
|
+
key: "2"
|
|
1097
1120
|
},
|
|
1098
|
-
|
|
1121
|
+
v.$slots.prepend ? {
|
|
1099
1122
|
name: "prepend",
|
|
1100
|
-
fn:
|
|
1101
|
-
|
|
1123
|
+
fn: x(() => [
|
|
1124
|
+
c(v.$slots, "prepend", {
|
|
1102
1125
|
selectedGroup: d(L),
|
|
1103
1126
|
setSelectedGroup: d(s)
|
|
1104
1127
|
})
|
|
1105
1128
|
]),
|
|
1106
|
-
key: "
|
|
1129
|
+
key: "3"
|
|
1107
1130
|
} : void 0,
|
|
1108
|
-
!d(
|
|
1131
|
+
!d($) && !e.noCreate && e.labelCreateButton ? {
|
|
1109
1132
|
name: "createButton",
|
|
1110
|
-
fn:
|
|
1133
|
+
fn: x(() => [
|
|
1111
1134
|
q(Pe, {
|
|
1112
1135
|
label: e.labelCreateButton,
|
|
1113
|
-
onClick: d(
|
|
1136
|
+
onClick: d(w)
|
|
1114
1137
|
}, null, 8, ["label", "onClick"])
|
|
1115
1138
|
]),
|
|
1116
|
-
key: "
|
|
1139
|
+
key: "4"
|
|
1117
1140
|
} : void 0
|
|
1118
|
-
]), 1032, ["useModal", "title", "title-center", "size", "mobile-view", "view"]),
|
|
1119
|
-
J.value.length > 0 ? (a(), o("div", De,
|
|
1141
|
+
]), 1032, ["useModal", "title", "subtitle", "title-center", "size", "mobile-view", "view"]),
|
|
1142
|
+
J.value.length > 0 ? (a(), o("div", De, E(J.value.join(" ")), 1)) : C("", !0)
|
|
1120
1143
|
], 64));
|
|
1121
1144
|
}
|
|
1122
1145
|
}), dt = {
|