treqit-ui-library 1.4.12 → 1.4.13
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.
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { computed as m, createElementBlock as i, openBlock as n, normalizeStyle as _, normalizeClass as
|
|
2
|
-
const p = (e,
|
|
3
|
-
const
|
|
4
|
-
for (const [l, o] of
|
|
5
|
-
|
|
6
|
-
return
|
|
7
|
-
},
|
|
1
|
+
import { computed as m, createElementBlock as i, openBlock as n, normalizeStyle as _, normalizeClass as h, renderSlot as w, createCommentVNode as d, toDisplayString as b, createElementVNode as u, resolveComponent as D, withModifiers as C, createVNode as x, defineComponent as L, createTextVNode as G, createBlock as B, watch as A, onUnmounted as E, Teleport as F, Transition as N, withCtx as T, ref as V, withDirectives as U, vShow as X, Fragment as O, renderList as R, inject as W, getCurrentInstance as Y, onMounted as K } from "vue";
|
|
2
|
+
const p = (e, a) => {
|
|
3
|
+
const t = e.__vccOpts || e;
|
|
4
|
+
for (const [l, o] of a)
|
|
5
|
+
t[l] = o;
|
|
6
|
+
return t;
|
|
7
|
+
}, J = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "avatar-initials"
|
|
10
|
-
},
|
|
10
|
+
}, Q = {
|
|
11
11
|
__name: "Avatar",
|
|
12
12
|
props: {
|
|
13
13
|
size: {
|
|
@@ -30,33 +30,33 @@ const p = (e, t) => {
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
setup(e) {
|
|
33
|
-
const
|
|
33
|
+
const a = e, t = m(() => [
|
|
34
34
|
"avatar",
|
|
35
35
|
{
|
|
36
|
-
"avatar--rounded-sm":
|
|
37
|
-
"avatar--rounded-lg":
|
|
36
|
+
"avatar--rounded-sm": a.rounded === "sm",
|
|
37
|
+
"avatar--rounded-lg": a.rounded === "lg"
|
|
38
38
|
}
|
|
39
39
|
]), l = m(() => {
|
|
40
40
|
const o = {
|
|
41
|
-
width: `${
|
|
42
|
-
height: `${
|
|
43
|
-
backgroundColor:
|
|
41
|
+
width: `${a.size}px`,
|
|
42
|
+
height: `${a.size}px`,
|
|
43
|
+
backgroundColor: a.color
|
|
44
44
|
};
|
|
45
|
-
return
|
|
45
|
+
return a.rounded === !0 || a.rounded === "" ? o.borderRadius = "50%" : a.rounded === !1 || a.rounded === 0 || a.rounded === "0" ? o.borderRadius = "0px" : typeof a.rounded == "number" && (o.borderRadius = `${a.rounded}px`), o;
|
|
46
46
|
});
|
|
47
47
|
return (o, s) => (n(), i("div", {
|
|
48
|
-
class:
|
|
48
|
+
class: h(t.value),
|
|
49
49
|
style: _(l.value)
|
|
50
50
|
}, [
|
|
51
51
|
w(o.$slots, "default", {}, () => [
|
|
52
|
-
e.initials ? (n(), i("span",
|
|
52
|
+
e.initials ? (n(), i("span", J, b(e.initials), 1)) : d("", !0)
|
|
53
53
|
], !0)
|
|
54
54
|
], 6));
|
|
55
55
|
}
|
|
56
|
-
},
|
|
56
|
+
}, Z = /* @__PURE__ */ p(Q, [["__scopeId", "data-v-2e02a766"]]), ee = ["type", "disabled"], te = {
|
|
57
57
|
key: 0,
|
|
58
58
|
class: "btn-loader"
|
|
59
|
-
},
|
|
59
|
+
}, ae = {
|
|
60
60
|
__name: "Button",
|
|
61
61
|
props: {
|
|
62
62
|
variant: {
|
|
@@ -90,39 +90,39 @@ const p = (e, t) => {
|
|
|
90
90
|
},
|
|
91
91
|
emits: ["click"],
|
|
92
92
|
setup(e) {
|
|
93
|
-
const
|
|
93
|
+
const a = e, t = m(() => [
|
|
94
94
|
"btn",
|
|
95
|
-
`btn--${
|
|
96
|
-
`btn--${
|
|
95
|
+
`btn--${a.variant}`,
|
|
96
|
+
`btn--${a.size === "sm" ? "small" : a.size}`,
|
|
97
97
|
{
|
|
98
|
-
"btn--loading":
|
|
99
|
-
"btn--full":
|
|
98
|
+
"btn--loading": a.loading,
|
|
99
|
+
"btn--full": a.full
|
|
100
100
|
}
|
|
101
101
|
]);
|
|
102
102
|
return (l, o) => (n(), i("button", {
|
|
103
103
|
type: e.type,
|
|
104
|
-
class:
|
|
104
|
+
class: h(t.value),
|
|
105
105
|
disabled: e.disabled || e.loading,
|
|
106
106
|
onClick: o[0] || (o[0] = (s) => l.$emit("click"))
|
|
107
107
|
}, [
|
|
108
|
-
e.loading ? (n(), i("div",
|
|
109
|
-
|
|
110
|
-
])])) :
|
|
111
|
-
|
|
112
|
-
class:
|
|
108
|
+
e.loading ? (n(), i("div", te, [...o[1] || (o[1] = [
|
|
109
|
+
u("div", { class: "simple-spinner" }, null, -1)
|
|
110
|
+
])])) : d("", !0),
|
|
111
|
+
u("span", {
|
|
112
|
+
class: h(["btn-content", { "content-hidden": e.loading }])
|
|
113
113
|
}, [
|
|
114
114
|
w(l.$slots, "default", {}, void 0, !0)
|
|
115
115
|
], 2)
|
|
116
|
-
], 10,
|
|
116
|
+
], 10, ee));
|
|
117
117
|
}
|
|
118
|
-
},
|
|
118
|
+
}, le = /* @__PURE__ */ p(ae, [["__scopeId", "data-v-8db92d47"]]), ne = { class: "card" }, oe = {
|
|
119
119
|
__name: "Card",
|
|
120
120
|
setup(e) {
|
|
121
|
-
return (
|
|
122
|
-
w(
|
|
121
|
+
return (a, t) => (n(), i("div", ne, [
|
|
122
|
+
w(a.$slots, "default", {}, void 0, !0)
|
|
123
123
|
]));
|
|
124
124
|
}
|
|
125
|
-
},
|
|
125
|
+
}, se = /* @__PURE__ */ p(oe, [["__scopeId", "data-v-09430cb2"]]), ie = {
|
|
126
126
|
__name: "Chip",
|
|
127
127
|
props: {
|
|
128
128
|
variant: {
|
|
@@ -138,20 +138,20 @@ const p = (e, t) => {
|
|
|
138
138
|
},
|
|
139
139
|
emits: ["remove"],
|
|
140
140
|
setup(e) {
|
|
141
|
-
const
|
|
141
|
+
const a = e, t = m(() => [
|
|
142
142
|
"chip",
|
|
143
|
-
`chip--${
|
|
143
|
+
`chip--${a.variant}`
|
|
144
144
|
]);
|
|
145
145
|
return (l, o) => {
|
|
146
|
-
const s =
|
|
146
|
+
const s = D("Icon");
|
|
147
147
|
return n(), i("div", {
|
|
148
|
-
class:
|
|
148
|
+
class: h(t.value)
|
|
149
149
|
}, [
|
|
150
150
|
w(l.$slots, "default", {}, void 0, !0),
|
|
151
151
|
e.removable ? (n(), i("button", {
|
|
152
152
|
key: 0,
|
|
153
153
|
class: "remove-btn",
|
|
154
|
-
onClick: o[0] || (o[0] =
|
|
154
|
+
onClick: o[0] || (o[0] = C((r) => l.$emit("remove"), ["stop"])),
|
|
155
155
|
"aria-label": "Remove"
|
|
156
156
|
}, [
|
|
157
157
|
x(s, {
|
|
@@ -159,11 +159,11 @@ const p = (e, t) => {
|
|
|
159
159
|
size: "14",
|
|
160
160
|
"stroke-width": "2.5"
|
|
161
161
|
})
|
|
162
|
-
])) :
|
|
162
|
+
])) : d("", !0)
|
|
163
163
|
], 2);
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
|
-
},
|
|
166
|
+
}, re = /* @__PURE__ */ p(ie, [["__scopeId", "data-v-6b6b7ae9"]]), de = /* @__PURE__ */ L({
|
|
167
167
|
__name: "Column",
|
|
168
168
|
props: {
|
|
169
169
|
cols: { type: [String, Number], default: null },
|
|
@@ -174,7 +174,7 @@ const p = (e, t) => {
|
|
|
174
174
|
xl: { type: [String, Number], default: null }
|
|
175
175
|
},
|
|
176
176
|
setup(e) {
|
|
177
|
-
const
|
|
177
|
+
const a = e, t = m(() => {
|
|
178
178
|
const l = ["col"], o = {
|
|
179
179
|
cols: "col-",
|
|
180
180
|
xs: "col-xs-",
|
|
@@ -184,16 +184,16 @@ const p = (e, t) => {
|
|
|
184
184
|
xl: "col-xl-"
|
|
185
185
|
};
|
|
186
186
|
for (const s in o)
|
|
187
|
-
|
|
187
|
+
a[s] && l.push(`${o[s]}${a[s]}`);
|
|
188
188
|
return l;
|
|
189
189
|
});
|
|
190
190
|
return (l, o) => (n(), i("div", {
|
|
191
|
-
class:
|
|
191
|
+
class: h(t.value)
|
|
192
192
|
}, [
|
|
193
193
|
w(l.$slots, "default", {}, void 0, !0)
|
|
194
194
|
], 2));
|
|
195
195
|
}
|
|
196
|
-
}), ue = /* @__PURE__ */ p(
|
|
196
|
+
}), ue = /* @__PURE__ */ p(de, [["__scopeId", "data-v-a5db8165"]]), ce = {
|
|
197
197
|
__name: "Icon",
|
|
198
198
|
props: {
|
|
199
199
|
icon: {
|
|
@@ -210,36 +210,36 @@ const p = (e, t) => {
|
|
|
210
210
|
}
|
|
211
211
|
},
|
|
212
212
|
setup(e) {
|
|
213
|
-
const
|
|
213
|
+
const a = e, t = {
|
|
214
214
|
"x-small": 12,
|
|
215
215
|
small: 16,
|
|
216
216
|
medium: 24,
|
|
217
217
|
large: 32,
|
|
218
218
|
"x-large": 40
|
|
219
|
-
}, l = m(() =>
|
|
220
|
-
let s =
|
|
221
|
-
typeof
|
|
222
|
-
const
|
|
219
|
+
}, l = m(() => a.icon ? ["icon", "mdi", a.icon] : ["icon"]), o = m(() => {
|
|
220
|
+
let s = a.size;
|
|
221
|
+
typeof a.size == "string" && t[a.size] && (s = t[a.size]);
|
|
222
|
+
const r = {
|
|
223
223
|
fontSize: `${s}px`
|
|
224
224
|
};
|
|
225
|
-
return
|
|
225
|
+
return a.color && (r.color = a.color), r;
|
|
226
226
|
});
|
|
227
|
-
return (s,
|
|
228
|
-
class:
|
|
227
|
+
return (s, r) => (n(), i("i", {
|
|
228
|
+
class: h(l.value),
|
|
229
229
|
style: _(o.value),
|
|
230
230
|
"aria-hidden": "true"
|
|
231
231
|
}, null, 6));
|
|
232
232
|
}
|
|
233
|
-
},
|
|
233
|
+
}, q = /* @__PURE__ */ p(ce, [["__scopeId", "data-v-4a07735a"]]), me = ["for"], fe = {
|
|
234
234
|
key: 0,
|
|
235
235
|
class: "date-picker__required"
|
|
236
|
-
},
|
|
236
|
+
}, pe = { class: "date-picker__input-wrapper" }, ye = ["id", "value", "disabled", "readonly", "min", "max", "required"], he = {
|
|
237
237
|
key: 1,
|
|
238
238
|
class: "date-picker__error"
|
|
239
|
-
},
|
|
239
|
+
}, ve = {
|
|
240
240
|
key: 2,
|
|
241
241
|
class: "date-picker__help"
|
|
242
|
-
},
|
|
242
|
+
}, ge = /* @__PURE__ */ L({
|
|
243
243
|
__name: "DatePicker",
|
|
244
244
|
props: {
|
|
245
245
|
modelValue: { default: "" },
|
|
@@ -257,46 +257,46 @@ const p = (e, t) => {
|
|
|
257
257
|
showIcon: { type: Boolean, default: !0 }
|
|
258
258
|
},
|
|
259
259
|
emits: ["update:modelValue", "change", "blur", "focus"],
|
|
260
|
-
setup(e, { emit:
|
|
261
|
-
const
|
|
260
|
+
setup(e, { emit: a }) {
|
|
261
|
+
const t = e, l = a, o = m(() => `date-picker-${Math.random().toString(36).substr(2, 9)}`), s = m(() => [
|
|
262
262
|
"date-picker",
|
|
263
|
-
`date-picker--${
|
|
264
|
-
`date-picker--${
|
|
263
|
+
`date-picker--${t.size}`,
|
|
264
|
+
`date-picker--${t.variant}`,
|
|
265
265
|
{
|
|
266
|
-
"date-picker--disabled":
|
|
267
|
-
"date-picker--readonly":
|
|
268
|
-
"date-picker--error":
|
|
269
|
-
"date-picker--required":
|
|
266
|
+
"date-picker--disabled": t.disabled,
|
|
267
|
+
"date-picker--readonly": t.readonly,
|
|
268
|
+
"date-picker--error": t.errorMessage,
|
|
269
|
+
"date-picker--required": t.required
|
|
270
270
|
}
|
|
271
|
-
]),
|
|
271
|
+
]), r = m(() => [
|
|
272
272
|
"date-picker__input",
|
|
273
273
|
{
|
|
274
|
-
"date-picker__input--with-icon":
|
|
274
|
+
"date-picker__input--with-icon": t.showIcon
|
|
275
275
|
}
|
|
276
|
-
]),
|
|
277
|
-
const
|
|
278
|
-
l("update:modelValue",
|
|
279
|
-
},
|
|
280
|
-
const
|
|
281
|
-
l("change",
|
|
282
|
-
},
|
|
276
|
+
]), f = (g) => {
|
|
277
|
+
const k = g.target;
|
|
278
|
+
l("update:modelValue", k.value);
|
|
279
|
+
}, c = (g) => {
|
|
280
|
+
const k = g.target;
|
|
281
|
+
l("change", k.value);
|
|
282
|
+
}, v = (g) => {
|
|
283
283
|
l("blur", g);
|
|
284
284
|
}, $ = (g) => {
|
|
285
285
|
l("focus", g);
|
|
286
286
|
};
|
|
287
|
-
return (g,
|
|
288
|
-
class:
|
|
287
|
+
return (g, k) => (n(), i("div", {
|
|
288
|
+
class: h(["date-picker", s.value])
|
|
289
289
|
}, [
|
|
290
290
|
e.label ? (n(), i("label", {
|
|
291
291
|
key: 0,
|
|
292
292
|
for: o.value,
|
|
293
293
|
class: "date-picker__label"
|
|
294
294
|
}, [
|
|
295
|
-
|
|
296
|
-
e.required ? (n(), i("span",
|
|
297
|
-
], 8,
|
|
298
|
-
|
|
299
|
-
|
|
295
|
+
G(b(e.label) + " ", 1),
|
|
296
|
+
e.required ? (n(), i("span", fe, "*")) : d("", !0)
|
|
297
|
+
], 8, me)) : d("", !0),
|
|
298
|
+
u("div", pe, [
|
|
299
|
+
u("input", {
|
|
300
300
|
id: o.value,
|
|
301
301
|
type: "date",
|
|
302
302
|
value: e.modelValue,
|
|
@@ -305,29 +305,29 @@ const p = (e, t) => {
|
|
|
305
305
|
min: e.min,
|
|
306
306
|
max: e.max,
|
|
307
307
|
required: e.required,
|
|
308
|
-
class:
|
|
309
|
-
onInput:
|
|
310
|
-
onChange:
|
|
311
|
-
onBlur:
|
|
308
|
+
class: h(r.value),
|
|
309
|
+
onInput: f,
|
|
310
|
+
onChange: c,
|
|
311
|
+
onBlur: v,
|
|
312
312
|
onFocus: $
|
|
313
|
-
}, null, 42,
|
|
314
|
-
e.showIcon ? (n(),
|
|
313
|
+
}, null, 42, ye),
|
|
314
|
+
e.showIcon ? (n(), B(q, {
|
|
315
315
|
key: 0,
|
|
316
316
|
icon: "mdi-calendar",
|
|
317
317
|
class: "date-picker__icon"
|
|
318
|
-
})) :
|
|
318
|
+
})) : d("", !0)
|
|
319
319
|
]),
|
|
320
|
-
e.errorMessage ? (n(), i("div",
|
|
321
|
-
e.helpText && !e.errorMessage ? (n(), i("div",
|
|
320
|
+
e.errorMessage ? (n(), i("div", he, b(e.errorMessage), 1)) : d("", !0),
|
|
321
|
+
e.helpText && !e.errorMessage ? (n(), i("div", ve, b(e.helpText), 1)) : d("", !0)
|
|
322
322
|
], 2));
|
|
323
323
|
}
|
|
324
|
-
}),
|
|
324
|
+
}), be = /* @__PURE__ */ p(ge, [["__scopeId", "data-v-f09e8bb1"]]), xe = ["aria-labelledby"], we = {
|
|
325
325
|
key: 0,
|
|
326
326
|
class: "dialog-header"
|
|
327
|
-
},
|
|
327
|
+
}, $e = {
|
|
328
328
|
id: "dialog-title",
|
|
329
329
|
class: "dialog-title"
|
|
330
|
-
},
|
|
330
|
+
}, Se = {
|
|
331
331
|
__name: "Dialog",
|
|
332
332
|
props: {
|
|
333
333
|
modelValue: {
|
|
@@ -361,41 +361,41 @@ const p = (e, t) => {
|
|
|
361
361
|
}
|
|
362
362
|
},
|
|
363
363
|
emits: ["update:modelValue", "ok"],
|
|
364
|
-
setup(e, { emit:
|
|
365
|
-
const
|
|
364
|
+
setup(e, { emit: a }) {
|
|
365
|
+
const t = e, l = a, o = () => {
|
|
366
366
|
l("update:modelValue", !1);
|
|
367
367
|
}, s = () => {
|
|
368
|
-
|
|
369
|
-
},
|
|
370
|
-
const
|
|
371
|
-
return
|
|
368
|
+
t.persistent || o();
|
|
369
|
+
}, r = m(() => t.width ? "" : `dialog-content--${t.size}`), f = m(() => {
|
|
370
|
+
const c = {};
|
|
371
|
+
return t.width && (c.maxWidth = typeof t.width == "number" || !isNaN(Number(t.width)) ? `${t.width}px` : t.width, c.width = c.maxWidth), c;
|
|
372
372
|
});
|
|
373
|
-
return A(() =>
|
|
374
|
-
typeof document < "u" && (document.body.style.overflow =
|
|
375
|
-
}),
|
|
373
|
+
return A(() => t.modelValue, (c) => {
|
|
374
|
+
typeof document < "u" && (document.body.style.overflow = c ? "hidden" : "");
|
|
375
|
+
}), E(() => {
|
|
376
376
|
typeof document < "u" && (document.body.style.overflow = "");
|
|
377
|
-
}), (
|
|
378
|
-
const $ =
|
|
379
|
-
return n(),
|
|
380
|
-
x(
|
|
381
|
-
default:
|
|
377
|
+
}), (c, v) => {
|
|
378
|
+
const $ = D("Icon");
|
|
379
|
+
return n(), B(F, { to: "body" }, [
|
|
380
|
+
x(N, { name: "dialog-fade" }, {
|
|
381
|
+
default: T(() => [
|
|
382
382
|
e.modelValue ? (n(), i("div", {
|
|
383
383
|
key: 0,
|
|
384
384
|
class: "dialog-overlay",
|
|
385
385
|
onClick: s
|
|
386
386
|
}, [
|
|
387
|
-
|
|
388
|
-
class:
|
|
389
|
-
style: _(
|
|
387
|
+
u("div", {
|
|
388
|
+
class: h(["dialog-content", r.value]),
|
|
389
|
+
style: _(f.value),
|
|
390
390
|
role: "dialog",
|
|
391
391
|
"aria-modal": "true",
|
|
392
392
|
"aria-labelledby": e.title ? "dialog-title" : void 0,
|
|
393
|
-
onClick:
|
|
393
|
+
onClick: v[0] || (v[0] = C(() => {
|
|
394
394
|
}, ["stop"]))
|
|
395
395
|
}, [
|
|
396
|
-
e.title ? (n(), i("header",
|
|
397
|
-
|
|
398
|
-
|
|
396
|
+
e.title ? (n(), i("header", we, [
|
|
397
|
+
u("h2", $e, b(e.title), 1),
|
|
398
|
+
u("button", {
|
|
399
399
|
onClick: o,
|
|
400
400
|
class: "dialog-close-btn",
|
|
401
401
|
"aria-label": "Close dialog"
|
|
@@ -405,21 +405,21 @@ const p = (e, t) => {
|
|
|
405
405
|
size: "24"
|
|
406
406
|
})
|
|
407
407
|
])
|
|
408
|
-
])) :
|
|
409
|
-
|
|
410
|
-
class:
|
|
408
|
+
])) : d("", !0),
|
|
409
|
+
u("main", {
|
|
410
|
+
class: h(["dialog-body", { scrollable: e.scrollable }])
|
|
411
411
|
}, [
|
|
412
|
-
w(
|
|
412
|
+
w(c.$slots, "default", {}, void 0, !0)
|
|
413
413
|
], 2)
|
|
414
|
-
], 14,
|
|
415
|
-
])) :
|
|
414
|
+
], 14, xe)
|
|
415
|
+
])) : d("", !0)
|
|
416
416
|
]),
|
|
417
417
|
_: 3
|
|
418
418
|
})
|
|
419
419
|
]);
|
|
420
420
|
};
|
|
421
421
|
}
|
|
422
|
-
},
|
|
422
|
+
}, _e = /* @__PURE__ */ p(Se, [["__scopeId", "data-v-b9e605dc"]]), ke = {
|
|
423
423
|
__name: "Divider",
|
|
424
424
|
props: {
|
|
425
425
|
vertical: {
|
|
@@ -432,26 +432,26 @@ const p = (e, t) => {
|
|
|
432
432
|
}
|
|
433
433
|
},
|
|
434
434
|
setup(e) {
|
|
435
|
-
const
|
|
435
|
+
const a = e, t = m(() => [
|
|
436
436
|
"divider",
|
|
437
|
-
|
|
438
|
-
]), l = m(() =>
|
|
437
|
+
a.vertical ? "divider--vertical" : "divider--horizontal"
|
|
438
|
+
]), l = m(() => a.vertical ? {} : { height: `${a.height}px` });
|
|
439
439
|
return (o, s) => (n(), i("hr", {
|
|
440
|
-
class:
|
|
440
|
+
class: h(t.value),
|
|
441
441
|
style: _(l.value)
|
|
442
442
|
}, null, 6));
|
|
443
443
|
}
|
|
444
|
-
},
|
|
444
|
+
}, Ie = /* @__PURE__ */ p(ke, [["__scopeId", "data-v-cbf66f89"]]), Ve = { class: "spinner-container" }, Ce = {
|
|
445
445
|
__name: "ProgressSpinner",
|
|
446
446
|
setup(e) {
|
|
447
|
-
return (
|
|
448
|
-
|
|
447
|
+
return (a, t) => (n(), i("div", Ve, [...t[0] || (t[0] = [
|
|
448
|
+
u("div", { class: "spinner" }, null, -1)
|
|
449
449
|
])]));
|
|
450
450
|
}
|
|
451
|
-
},
|
|
451
|
+
}, H = /* @__PURE__ */ p(Ce, [["__scopeId", "data-v-69bc6c98"]]), Be = {
|
|
452
452
|
key: 0,
|
|
453
453
|
class: "placeholder"
|
|
454
|
-
},
|
|
454
|
+
}, ze = ["src", "alt"], Ne = {
|
|
455
455
|
__name: "Image",
|
|
456
456
|
props: {
|
|
457
457
|
src: {
|
|
@@ -481,56 +481,56 @@ const p = (e, t) => {
|
|
|
481
481
|
}
|
|
482
482
|
},
|
|
483
483
|
setup(e) {
|
|
484
|
-
const
|
|
485
|
-
|
|
484
|
+
const a = e, t = V(!0), l = V(!1), o = () => {
|
|
485
|
+
t.value = !1, l.value = !1;
|
|
486
486
|
}, s = () => {
|
|
487
|
-
|
|
487
|
+
t.value = !1, l.value = !0;
|
|
488
488
|
};
|
|
489
|
-
A(() =>
|
|
490
|
-
|
|
489
|
+
A(() => a.src, () => {
|
|
490
|
+
t.value = !0, l.value = !1;
|
|
491
491
|
}, { immediate: !0 });
|
|
492
|
-
const
|
|
493
|
-
width:
|
|
494
|
-
height:
|
|
495
|
-
minWidth:
|
|
496
|
-
minHeight:
|
|
497
|
-
maxHeight:
|
|
492
|
+
const r = m(() => ({
|
|
493
|
+
width: a.width,
|
|
494
|
+
height: a.height,
|
|
495
|
+
minWidth: a.width,
|
|
496
|
+
minHeight: a.height,
|
|
497
|
+
maxHeight: a.maxHeight
|
|
498
498
|
}));
|
|
499
|
-
return (
|
|
500
|
-
const
|
|
499
|
+
return (f, c) => {
|
|
500
|
+
const v = D("Icon");
|
|
501
501
|
return n(), i("div", {
|
|
502
502
|
class: "image-container",
|
|
503
|
-
style: _(
|
|
503
|
+
style: _(r.value)
|
|
504
504
|
}, [
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
l.value ? (n(),
|
|
505
|
+
t.value || l.value ? (n(), i("div", Be, [
|
|
506
|
+
t.value ? (n(), B(H, { key: 0 })) : d("", !0),
|
|
507
|
+
l.value ? (n(), B(v, {
|
|
508
508
|
key: 1,
|
|
509
509
|
name: "image-off",
|
|
510
510
|
size: 48
|
|
511
|
-
})) :
|
|
512
|
-
])) :
|
|
513
|
-
U(
|
|
511
|
+
})) : d("", !0)
|
|
512
|
+
])) : d("", !0),
|
|
513
|
+
U(u("img", {
|
|
514
514
|
src: e.src,
|
|
515
515
|
alt: e.alt,
|
|
516
516
|
class: "image",
|
|
517
517
|
style: _({ objectFit: e.fit, maxHeight: e.maxHeight }),
|
|
518
518
|
onLoad: o,
|
|
519
519
|
onError: s
|
|
520
|
-
}, null, 44,
|
|
521
|
-
[
|
|
520
|
+
}, null, 44, ze), [
|
|
521
|
+
[X, !t.value && !l.value]
|
|
522
522
|
])
|
|
523
523
|
], 4);
|
|
524
524
|
};
|
|
525
525
|
}
|
|
526
|
-
},
|
|
526
|
+
}, Te = /* @__PURE__ */ p(Ne, [["__scopeId", "data-v-a3997b8b"]]), Me = ["src"], qe = {
|
|
527
527
|
key: 0,
|
|
528
528
|
class: "slideshow-text-content"
|
|
529
|
-
},
|
|
529
|
+
}, Ae = {
|
|
530
530
|
key: 0,
|
|
531
531
|
class: "slideshow-title"
|
|
532
|
-
},
|
|
533
|
-
__name: "
|
|
532
|
+
}, De = ["innerHTML"], Ee = {
|
|
533
|
+
__name: "ImageSlideShow",
|
|
534
534
|
props: {
|
|
535
535
|
modelValue: {
|
|
536
536
|
type: Boolean,
|
|
@@ -551,103 +551,104 @@ const p = (e, t) => {
|
|
|
551
551
|
description: {
|
|
552
552
|
type: String,
|
|
553
553
|
default: ""
|
|
554
|
+
},
|
|
555
|
+
baseUrl: {
|
|
556
|
+
type: String,
|
|
557
|
+
default: ""
|
|
554
558
|
}
|
|
555
559
|
},
|
|
556
560
|
emits: ["update:modelValue"],
|
|
557
|
-
setup(e, { emit:
|
|
558
|
-
const
|
|
559
|
-
A(() =>
|
|
560
|
-
|
|
561
|
+
setup(e, { emit: a }) {
|
|
562
|
+
const t = e, l = a, o = V(0), s = V(0), r = V(t.startIndex);
|
|
563
|
+
A(() => t.modelValue, (y) => {
|
|
564
|
+
y ? (r.value = t.startIndex, window.addEventListener("keydown", g), document.body.style.overflow = "hidden") : (window.removeEventListener("keydown", g), document.body.style.overflow = "");
|
|
561
565
|
});
|
|
562
566
|
const f = m(() => {
|
|
563
|
-
if (!
|
|
564
|
-
const
|
|
565
|
-
return `${
|
|
566
|
-
}),
|
|
567
|
-
|
|
567
|
+
if (!t.images || t.images.length === 0) return "";
|
|
568
|
+
const y = t.images[r.value];
|
|
569
|
+
return `${t.baseUrl}${y}.jpg`;
|
|
570
|
+
}), c = () => {
|
|
571
|
+
l("update:modelValue", !1);
|
|
572
|
+
}, v = () => {
|
|
573
|
+
r.value = (r.value + 1) % t.images.length;
|
|
568
574
|
}, $ = () => {
|
|
569
|
-
|
|
570
|
-
}, g = () => {
|
|
571
|
-
|
|
572
|
-
},
|
|
573
|
-
|
|
574
|
-
},
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
const C = h.changedTouches[0].clientX, B = h.changedTouches[0].clientY, P = C - s.value, G = B - c.value;
|
|
578
|
-
Math.abs(P) > Math.abs(G) && (P > 50 ? g() : P < -50 && $());
|
|
575
|
+
r.value = (r.value - 1 + t.images.length) % t.images.length;
|
|
576
|
+
}, g = (y) => {
|
|
577
|
+
y.key === "Escape" && c(), y.key === "ArrowRight" && v(), y.key === "ArrowLeft" && $();
|
|
578
|
+
}, k = (y) => {
|
|
579
|
+
o.value = y.touches[0].clientX, s.value = y.touches[0].clientY;
|
|
580
|
+
}, P = (y) => {
|
|
581
|
+
const S = y.changedTouches[0].clientX, z = y.changedTouches[0].clientY, M = S - o.value, j = z - s.value;
|
|
582
|
+
Math.abs(M) > Math.abs(j) && (M > 50 ? $() : M < -50 && v());
|
|
579
583
|
};
|
|
580
|
-
return
|
|
581
|
-
window.removeEventListener("keydown",
|
|
582
|
-
}), (
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
584
|
+
return E(() => {
|
|
585
|
+
window.removeEventListener("keydown", g), document.body.style.overflow = "";
|
|
586
|
+
}), (y, S) => (n(), B(F, { to: "body" }, [
|
|
587
|
+
x(N, { name: "slideshow-fade" }, {
|
|
588
|
+
default: T(() => [
|
|
589
|
+
e.modelValue ? (n(), i("div", {
|
|
590
|
+
key: 0,
|
|
591
|
+
class: "slideshow-overlay",
|
|
592
|
+
onClick: C(c, ["self"])
|
|
593
|
+
}, [
|
|
594
|
+
u("button", {
|
|
595
|
+
class: "slideshow-close-btn",
|
|
596
|
+
onClick: C(c, ["stop"]),
|
|
597
|
+
"aria-label": "Close slideshow"
|
|
591
598
|
}, [
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
599
|
+
x(q, {
|
|
600
|
+
icon: "mdi-close",
|
|
601
|
+
size: "48"
|
|
602
|
+
})
|
|
603
|
+
]),
|
|
604
|
+
u("div", {
|
|
605
|
+
class: "slideshow-content",
|
|
606
|
+
onTouchstartPassive: k,
|
|
607
|
+
onTouchendPassive: P
|
|
608
|
+
}, [
|
|
609
|
+
u("button", {
|
|
610
|
+
class: "slideshow-nav-btn prev",
|
|
611
|
+
onClick: C($, ["stop"]),
|
|
612
|
+
"aria-label": "Previous image",
|
|
613
|
+
style: { fontSize: "48px" }
|
|
596
614
|
}, [
|
|
597
|
-
x(
|
|
598
|
-
icon: "mdi-
|
|
599
|
-
size: "
|
|
615
|
+
x(q, {
|
|
616
|
+
icon: "mdi-chevron-left",
|
|
617
|
+
size: "80"
|
|
600
618
|
})
|
|
601
619
|
]),
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
620
|
+
u("img", {
|
|
621
|
+
src: f.value,
|
|
622
|
+
class: "slideshow-image",
|
|
623
|
+
alt: "Slideshow image"
|
|
624
|
+
}, null, 8, Me),
|
|
625
|
+
u("button", {
|
|
626
|
+
class: "slideshow-nav-btn next",
|
|
627
|
+
onClick: C(v, ["stop"]),
|
|
628
|
+
"aria-label": "Next image",
|
|
629
|
+
style: { fontSize: "48px" }
|
|
606
630
|
}, [
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
d("
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
"aria-label": "Next image",
|
|
627
|
-
style: { fontSize: "48px" }
|
|
628
|
-
}, [
|
|
629
|
-
x(B, {
|
|
630
|
-
icon: "mdi-chevron-right",
|
|
631
|
-
size: "80"
|
|
632
|
-
})
|
|
633
|
-
]),
|
|
634
|
-
e.name || e.description ? (n(), i("div", Ae, [
|
|
635
|
-
e.name ? (n(), i("h3", De, b(e.name), 1)) : r("", !0),
|
|
636
|
-
e.description ? (n(), i("div", {
|
|
637
|
-
key: 1,
|
|
638
|
-
class: "slideshow-description",
|
|
639
|
-
innerHTML: e.description
|
|
640
|
-
}, null, 8, Ee)) : r("", !0)
|
|
641
|
-
])) : r("", !0)
|
|
642
|
-
], 32)
|
|
643
|
-
])) : r("", !0)
|
|
644
|
-
]),
|
|
645
|
-
_: 1
|
|
646
|
-
})
|
|
647
|
-
]);
|
|
648
|
-
};
|
|
631
|
+
x(q, {
|
|
632
|
+
icon: "mdi-chevron-right",
|
|
633
|
+
size: "80"
|
|
634
|
+
})
|
|
635
|
+
]),
|
|
636
|
+
e.name || e.description ? (n(), i("div", qe, [
|
|
637
|
+
e.name ? (n(), i("h3", Ae, b(e.name), 1)) : d("", !0),
|
|
638
|
+
e.description ? (n(), i("div", {
|
|
639
|
+
key: 1,
|
|
640
|
+
class: "slideshow-description",
|
|
641
|
+
innerHTML: e.description
|
|
642
|
+
}, null, 8, De)) : d("", !0)
|
|
643
|
+
])) : d("", !0)
|
|
644
|
+
], 32)
|
|
645
|
+
])) : d("", !0)
|
|
646
|
+
]),
|
|
647
|
+
_: 1
|
|
648
|
+
})
|
|
649
|
+
]));
|
|
649
650
|
}
|
|
650
|
-
},
|
|
651
|
+
}, Pe = /* @__PURE__ */ p(Ee, [["__scopeId", "data-v-ff74117f"]]), Le = ["for"], Fe = { class: "input-container" }, Oe = ["id", "type", "value", "placeholder", "disabled"], Re = {
|
|
651
652
|
__name: "Input",
|
|
652
653
|
props: {
|
|
653
654
|
modelValue: {
|
|
@@ -680,20 +681,20 @@ const p = (e, t) => {
|
|
|
680
681
|
}
|
|
681
682
|
},
|
|
682
683
|
emits: ["update:modelValue"],
|
|
683
|
-
setup(e, { emit:
|
|
684
|
-
const
|
|
684
|
+
setup(e, { emit: a }) {
|
|
685
|
+
const t = e, l = a, o = (s) => {
|
|
685
686
|
l("update:modelValue", s.target.value);
|
|
686
687
|
};
|
|
687
|
-
return (s,
|
|
688
|
-
class:
|
|
688
|
+
return (s, r) => (n(), i("div", {
|
|
689
|
+
class: h(["input-wrapper", t.class])
|
|
689
690
|
}, [
|
|
690
691
|
e.label ? (n(), i("label", {
|
|
691
692
|
key: 0,
|
|
692
693
|
for: e.id,
|
|
693
694
|
class: "input-label"
|
|
694
|
-
}, b(e.label), 9,
|
|
695
|
-
|
|
696
|
-
|
|
695
|
+
}, b(e.label), 9, Le)) : d("", !0),
|
|
696
|
+
u("div", Fe, [
|
|
697
|
+
u("input", {
|
|
697
698
|
id: e.id,
|
|
698
699
|
type: e.type,
|
|
699
700
|
value: e.modelValue,
|
|
@@ -705,7 +706,7 @@ const p = (e, t) => {
|
|
|
705
706
|
])
|
|
706
707
|
], 2));
|
|
707
708
|
}
|
|
708
|
-
},
|
|
709
|
+
}, He = /* @__PURE__ */ p(Re, [["__scopeId", "data-v-9c7a100f"]]), je = {
|
|
709
710
|
__name: "NavigationDrawer",
|
|
710
711
|
props: {
|
|
711
712
|
modelValue: {
|
|
@@ -724,51 +725,51 @@ const p = (e, t) => {
|
|
|
724
725
|
}
|
|
725
726
|
},
|
|
726
727
|
emits: ["update:modelValue"],
|
|
727
|
-
setup(e, { emit:
|
|
728
|
-
const
|
|
728
|
+
setup(e, { emit: a }) {
|
|
729
|
+
const t = e, l = a, o = () => {
|
|
729
730
|
l("update:modelValue", !1);
|
|
730
731
|
}, s = m(() => [
|
|
731
732
|
"navigation-drawer",
|
|
732
|
-
`navigation-drawer--${
|
|
733
|
-
]),
|
|
734
|
-
width: `${
|
|
735
|
-
})),
|
|
736
|
-
return A(() =>
|
|
737
|
-
typeof document < "u" && (
|
|
738
|
-
}),
|
|
733
|
+
`navigation-drawer--${t.location}`
|
|
734
|
+
]), r = m(() => ({
|
|
735
|
+
width: `${t.width}px`
|
|
736
|
+
})), f = m(() => `slide-from-${t.location}`);
|
|
737
|
+
return A(() => t.modelValue, (c) => {
|
|
738
|
+
typeof document < "u" && (c ? document.body.style.overflow = "hidden" : document.body.style.overflow = "");
|
|
739
|
+
}), E(() => {
|
|
739
740
|
typeof document < "u" && (document.body.style.overflow = "");
|
|
740
|
-
}), (
|
|
741
|
-
x(
|
|
742
|
-
default:
|
|
741
|
+
}), (c, v) => (n(), B(F, { to: "body" }, [
|
|
742
|
+
x(N, { name: "fade" }, {
|
|
743
|
+
default: T(() => [
|
|
743
744
|
e.modelValue ? (n(), i("div", {
|
|
744
745
|
key: 0,
|
|
745
746
|
class: "overlay",
|
|
746
747
|
onClick: o,
|
|
747
748
|
"aria-hidden": "true"
|
|
748
|
-
})) :
|
|
749
|
+
})) : d("", !0)
|
|
749
750
|
]),
|
|
750
751
|
_: 1
|
|
751
752
|
}),
|
|
752
|
-
x(
|
|
753
|
-
default:
|
|
753
|
+
x(N, { name: f.value }, {
|
|
754
|
+
default: T(() => [
|
|
754
755
|
e.modelValue ? (n(), i("aside", {
|
|
755
756
|
key: 0,
|
|
756
|
-
class:
|
|
757
|
-
style: _(
|
|
757
|
+
class: h(s.value),
|
|
758
|
+
style: _(r.value),
|
|
758
759
|
role: "dialog",
|
|
759
760
|
"aria-modal": "true"
|
|
760
761
|
}, [
|
|
761
|
-
w(
|
|
762
|
-
], 6)) :
|
|
762
|
+
w(c.$slots, "default", {}, void 0, !0)
|
|
763
|
+
], 6)) : d("", !0)
|
|
763
764
|
]),
|
|
764
765
|
_: 3
|
|
765
766
|
}, 8, ["name"])
|
|
766
767
|
]));
|
|
767
768
|
}
|
|
768
|
-
},
|
|
769
|
+
}, Ge = /* @__PURE__ */ p(je, [["__scopeId", "data-v-a13e59a5"]]), Ue = ["aria-valuenow"], Xe = ["width", "height", "viewBox"], We = ["cx", "cy", "r", "stroke-width"], Ye = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ke = {
|
|
769
770
|
key: 0,
|
|
770
771
|
class: "progress-circular__content"
|
|
771
|
-
},
|
|
772
|
+
}, I = 44, Je = {
|
|
772
773
|
__name: "Progress",
|
|
773
774
|
props: {
|
|
774
775
|
modelValue: {
|
|
@@ -794,13 +795,13 @@ const p = (e, t) => {
|
|
|
794
795
|
}
|
|
795
796
|
},
|
|
796
797
|
setup(e) {
|
|
797
|
-
const
|
|
798
|
-
width: `${
|
|
799
|
-
height: `${
|
|
800
|
-
color:
|
|
798
|
+
const a = e, t = m(() => (I - a.width) / 2), l = m(() => 2 * Math.PI * t.value), o = m(() => ({
|
|
799
|
+
width: `${a.size}px`,
|
|
800
|
+
height: `${a.size}px`,
|
|
801
|
+
color: a.color === "primary" ? "#3C9273" : a.color
|
|
801
802
|
// Use primary green color
|
|
802
|
-
})), s = m(() =>
|
|
803
|
-
return (
|
|
803
|
+
})), s = m(() => a.width / a.size * I), r = m(() => a.indeterminate ? null : l.value * (1 - a.modelValue / 100));
|
|
804
|
+
return (f, c) => (n(), i("div", {
|
|
804
805
|
class: "progress-circular",
|
|
805
806
|
style: _(o.value),
|
|
806
807
|
role: "progressbar",
|
|
@@ -812,33 +813,33 @@ const p = (e, t) => {
|
|
|
812
813
|
xmlns: "http://www.w3.org/2000/svg",
|
|
813
814
|
width: e.size,
|
|
814
815
|
height: e.size,
|
|
815
|
-
viewBox: `0 0 ${
|
|
816
|
+
viewBox: `0 0 ${I} ${I}`
|
|
816
817
|
}, [
|
|
817
|
-
|
|
818
|
+
u("circle", {
|
|
818
819
|
class: "progress-circular__underlay",
|
|
819
820
|
fill: "transparent",
|
|
820
|
-
cx:
|
|
821
|
-
cy:
|
|
822
|
-
r:
|
|
821
|
+
cx: I / 2,
|
|
822
|
+
cy: I / 2,
|
|
823
|
+
r: t.value,
|
|
823
824
|
"stroke-width": s.value
|
|
824
|
-
}, null, 8,
|
|
825
|
-
|
|
825
|
+
}, null, 8, We),
|
|
826
|
+
u("circle", {
|
|
826
827
|
class: "progress-circular__overlay",
|
|
827
828
|
fill: "transparent",
|
|
828
|
-
cx:
|
|
829
|
-
cy:
|
|
830
|
-
r:
|
|
829
|
+
cx: I / 2,
|
|
830
|
+
cy: I / 2,
|
|
831
|
+
r: t.value,
|
|
831
832
|
"stroke-width": s.value,
|
|
832
833
|
"stroke-dasharray": l.value,
|
|
833
|
-
"stroke-dashoffset":
|
|
834
|
-
}, null, 8,
|
|
835
|
-
], 8,
|
|
836
|
-
|
|
837
|
-
w(
|
|
838
|
-
])) :
|
|
834
|
+
"stroke-dashoffset": r.value
|
|
835
|
+
}, null, 8, Ye)
|
|
836
|
+
], 8, Xe)),
|
|
837
|
+
f.$slots.default ? (n(), i("div", Ke, [
|
|
838
|
+
w(f.$slots, "default", {}, void 0, !0)
|
|
839
|
+
])) : d("", !0)
|
|
839
840
|
], 12, Ue));
|
|
840
841
|
}
|
|
841
|
-
},
|
|
842
|
+
}, Qe = /* @__PURE__ */ p(Je, [["__scopeId", "data-v-bdb14b7f"]]), Ze = {
|
|
842
843
|
__name: "Row",
|
|
843
844
|
props: {
|
|
844
845
|
justify: {
|
|
@@ -862,24 +863,24 @@ const p = (e, t) => {
|
|
|
862
863
|
}
|
|
863
864
|
},
|
|
864
865
|
setup(e) {
|
|
865
|
-
const
|
|
866
|
-
justifyContent:
|
|
867
|
-
alignItems:
|
|
868
|
-
gap:
|
|
869
|
-
flexWrap:
|
|
866
|
+
const a = e, t = m(() => ({
|
|
867
|
+
justifyContent: a.justify,
|
|
868
|
+
alignItems: a.align,
|
|
869
|
+
gap: a.gap,
|
|
870
|
+
flexWrap: a.wrap ? "wrap" : "nowrap"
|
|
870
871
|
}));
|
|
871
872
|
return (l, o) => (n(), i("div", {
|
|
872
873
|
class: "flex-row",
|
|
873
|
-
style: _(
|
|
874
|
+
style: _(t.value)
|
|
874
875
|
}, [
|
|
875
876
|
w(l.$slots, "default", {}, void 0, !0)
|
|
876
877
|
], 4));
|
|
877
878
|
}
|
|
878
|
-
},
|
|
879
|
+
}, et = /* @__PURE__ */ p(Ze, [["__scopeId", "data-v-fc69ad3e"]]), tt = ["for"], at = { class: "select-container" }, lt = ["id", "value", "disabled", "multiple"], nt = ["selected"], ot = ["value"], st = {
|
|
879
880
|
key: 0,
|
|
880
881
|
class: "select-icon",
|
|
881
882
|
"aria-hidden": "true"
|
|
882
|
-
},
|
|
883
|
+
}, it = {
|
|
883
884
|
__name: "Select",
|
|
884
885
|
props: {
|
|
885
886
|
modelValue: {
|
|
@@ -920,48 +921,48 @@ const p = (e, t) => {
|
|
|
920
921
|
}
|
|
921
922
|
},
|
|
922
923
|
emits: ["update:modelValue"],
|
|
923
|
-
setup(e, { emit:
|
|
924
|
-
const
|
|
925
|
-
m(() => !
|
|
924
|
+
setup(e, { emit: a }) {
|
|
925
|
+
const t = e, l = a;
|
|
926
|
+
m(() => !t.options || t.options.length === 0 ? [] : typeof t.options[0] == "string" ? t.options.map((s) => ({ text: s, value: s })) : t.options);
|
|
926
927
|
const o = (s) => {
|
|
927
|
-
if (
|
|
928
|
-
const
|
|
929
|
-
l("update:modelValue",
|
|
928
|
+
if (t.multiple) {
|
|
929
|
+
const r = Array.from(s.target.selectedOptions).map((f) => f.value);
|
|
930
|
+
l("update:modelValue", r);
|
|
930
931
|
} else
|
|
931
932
|
l("update:modelValue", s.target.value);
|
|
932
933
|
};
|
|
933
|
-
return (s,
|
|
934
|
-
const
|
|
934
|
+
return (s, r) => {
|
|
935
|
+
const f = D("Icon");
|
|
935
936
|
return n(), i("div", {
|
|
936
|
-
class:
|
|
937
|
+
class: h(["select-wrapper", t.class])
|
|
937
938
|
}, [
|
|
938
939
|
e.label ? (n(), i("label", {
|
|
939
940
|
key: 0,
|
|
940
941
|
for: e.id,
|
|
941
942
|
class: "select-label"
|
|
942
|
-
}, b(e.label), 9,
|
|
943
|
-
|
|
944
|
-
|
|
943
|
+
}, b(e.label), 9, tt)) : d("", !0),
|
|
944
|
+
u("div", at, [
|
|
945
|
+
u("select", {
|
|
945
946
|
id: e.id,
|
|
946
947
|
value: e.modelValue,
|
|
947
948
|
onChange: o,
|
|
948
949
|
disabled: e.disabled,
|
|
949
950
|
multiple: e.multiple,
|
|
950
|
-
class:
|
|
951
|
+
class: h([{ "no-arrow": e.hideArrow }, "select-input"])
|
|
951
952
|
}, [
|
|
952
953
|
e.placeholder ? (n(), i("option", {
|
|
953
954
|
key: 0,
|
|
954
955
|
value: "",
|
|
955
956
|
disabled: "",
|
|
956
957
|
selected: !e.modelValue
|
|
957
|
-
}, b(e.placeholder), 9,
|
|
958
|
-
(n(!0), i(
|
|
959
|
-
key:
|
|
960
|
-
value:
|
|
961
|
-
}, b(
|
|
962
|
-
], 42,
|
|
963
|
-
e.hideArrow ?
|
|
964
|
-
x(
|
|
958
|
+
}, b(e.placeholder), 9, nt)) : d("", !0),
|
|
959
|
+
(n(!0), i(O, null, R(e.options, (c) => (n(), i("option", {
|
|
960
|
+
key: c.value,
|
|
961
|
+
value: c.value
|
|
962
|
+
}, b(c.text), 9, ot))), 128))
|
|
963
|
+
], 42, lt),
|
|
964
|
+
e.hideArrow ? d("", !0) : (n(), i("div", st, [
|
|
965
|
+
x(f, {
|
|
965
966
|
icon: "mdi-chevron-down",
|
|
966
967
|
size: "20"
|
|
967
968
|
})
|
|
@@ -970,15 +971,15 @@ const p = (e, t) => {
|
|
|
970
971
|
], 2);
|
|
971
972
|
};
|
|
972
973
|
}
|
|
973
|
-
},
|
|
974
|
+
}, rt = /* @__PURE__ */ p(it, [["__scopeId", "data-v-d4f9136e"]]), dt = { class: "spacer" }, ut = {
|
|
974
975
|
__name: "Spacer",
|
|
975
976
|
setup(e) {
|
|
976
|
-
return (
|
|
977
|
+
return (a, t) => (n(), i("div", dt));
|
|
977
978
|
}
|
|
978
|
-
},
|
|
979
|
+
}, ct = /* @__PURE__ */ p(ut, [["__scopeId", "data-v-370a82d1"]]), mt = { class: "textarea-wrapper" }, ft = ["for"], pt = ["id", "value", "placeholder", "rows", "maxlength"], yt = {
|
|
979
980
|
key: 1,
|
|
980
981
|
class: "error-message"
|
|
981
|
-
},
|
|
982
|
+
}, ht = {
|
|
982
983
|
__name: "TextArea",
|
|
983
984
|
props: {
|
|
984
985
|
id: {
|
|
@@ -1012,51 +1013,51 @@ const p = (e, t) => {
|
|
|
1012
1013
|
},
|
|
1013
1014
|
emits: ["update:modelValue"],
|
|
1014
1015
|
setup(e) {
|
|
1015
|
-
return (
|
|
1016
|
+
return (a, t) => (n(), i("div", mt, [
|
|
1016
1017
|
e.label ? (n(), i("label", {
|
|
1017
1018
|
key: 0,
|
|
1018
1019
|
for: e.id,
|
|
1019
1020
|
class: "textarea-label"
|
|
1020
|
-
}, b(e.label), 9,
|
|
1021
|
-
|
|
1021
|
+
}, b(e.label), 9, ft)) : d("", !0),
|
|
1022
|
+
u("textarea", {
|
|
1022
1023
|
id: e.id,
|
|
1023
1024
|
value: e.modelValue,
|
|
1024
1025
|
placeholder: e.placeholder,
|
|
1025
1026
|
rows: e.rows,
|
|
1026
1027
|
maxlength: e.maxlength,
|
|
1027
|
-
onInput:
|
|
1028
|
-
class:
|
|
1029
|
-
}, null, 42,
|
|
1030
|
-
e.error ? (n(), i("p",
|
|
1028
|
+
onInput: t[0] || (t[0] = (l) => a.$emit("update:modelValue", l.target.value)),
|
|
1029
|
+
class: h(["textarea-input", { "has-error": e.error }])
|
|
1030
|
+
}, null, 42, pt),
|
|
1031
|
+
e.error ? (n(), i("p", yt, b(e.error), 1)) : d("", !0)
|
|
1031
1032
|
]));
|
|
1032
1033
|
}
|
|
1033
|
-
},
|
|
1034
|
-
class
|
|
1034
|
+
}, vt = /* @__PURE__ */ p(ht, [["__scopeId", "data-v-a2a785c2"]]);
|
|
1035
|
+
class gt {
|
|
1035
1036
|
static newGuid() {
|
|
1036
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(
|
|
1037
|
-
const
|
|
1038
|
-
return (
|
|
1037
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(a) {
|
|
1038
|
+
const t = Math.random() * 16 | 0;
|
|
1039
|
+
return (a == "x" ? t : t & 3 | 8).toString(16);
|
|
1039
1040
|
});
|
|
1040
1041
|
}
|
|
1041
1042
|
static isValidGuid() {
|
|
1042
|
-
const
|
|
1043
|
-
return function(
|
|
1044
|
-
return
|
|
1043
|
+
const a = /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;
|
|
1044
|
+
return function(t) {
|
|
1045
|
+
return t && a.test(t);
|
|
1045
1046
|
};
|
|
1046
1047
|
}
|
|
1047
|
-
static isEmptyGuid(
|
|
1048
|
-
return
|
|
1048
|
+
static isEmptyGuid(a) {
|
|
1049
|
+
return a === "00000000-0000-0000-0000-000000000000";
|
|
1049
1050
|
}
|
|
1050
1051
|
static emptyGuid() {
|
|
1051
1052
|
return "00000000-0000-0000-0000-000000000000";
|
|
1052
1053
|
}
|
|
1053
1054
|
}
|
|
1054
|
-
const
|
|
1055
|
+
const bt = { class: "input-container" }, xt = ["id", "type", "value", "autocomplete", "maxlength"], wt = ["for"], $t = { class: "error-container" }, St = /* @__PURE__ */ L({
|
|
1055
1056
|
__name: "TextField",
|
|
1056
1057
|
props: {
|
|
1057
1058
|
id: {
|
|
1058
1059
|
type: String,
|
|
1059
|
-
default: () => `textfield-${
|
|
1060
|
+
default: () => `textfield-${gt.newGuid()}`
|
|
1060
1061
|
},
|
|
1061
1062
|
label: {
|
|
1062
1063
|
type: String,
|
|
@@ -1092,76 +1093,76 @@ const xt = { class: "input-container" }, wt = ["id", "type", "value", "autocompl
|
|
|
1092
1093
|
}
|
|
1093
1094
|
},
|
|
1094
1095
|
emits: ["update:modelValue"],
|
|
1095
|
-
setup(e, { expose:
|
|
1096
|
-
const l = e, o =
|
|
1096
|
+
setup(e, { expose: a, emit: t }) {
|
|
1097
|
+
const l = e, o = t, s = V([]), r = V(!0), f = W("form", null), c = Y(), v = async () => {
|
|
1097
1098
|
s.value = [];
|
|
1098
|
-
let
|
|
1099
|
-
for (const
|
|
1100
|
-
const
|
|
1101
|
-
|
|
1099
|
+
let y = !0;
|
|
1100
|
+
for (const S of l.rules) {
|
|
1101
|
+
const z = S(l.modelValue);
|
|
1102
|
+
z !== !0 && (y = !1, s.value.push(z));
|
|
1102
1103
|
}
|
|
1103
|
-
return { valid:
|
|
1104
|
+
return { valid: y, errors: s.value };
|
|
1104
1105
|
}, $ = () => {
|
|
1105
1106
|
o("update:modelValue", ""), g();
|
|
1106
1107
|
}, g = () => {
|
|
1107
|
-
s.value = [],
|
|
1108
|
-
},
|
|
1109
|
-
const
|
|
1110
|
-
o("update:modelValue",
|
|
1111
|
-
},
|
|
1112
|
-
|
|
1108
|
+
s.value = [], r.value = !0;
|
|
1109
|
+
}, k = (y) => {
|
|
1110
|
+
const S = y.target;
|
|
1111
|
+
o("update:modelValue", S.value), r.value || v();
|
|
1112
|
+
}, P = () => {
|
|
1113
|
+
r.value = !1, l.trim && typeof l.modelValue == "string" && o("update:modelValue", l.modelValue.trim()), v();
|
|
1113
1114
|
};
|
|
1114
|
-
return
|
|
1115
|
-
|
|
1115
|
+
return K(() => {
|
|
1116
|
+
f && c && f.register({
|
|
1116
1117
|
id: l.id,
|
|
1117
|
-
validate:
|
|
1118
|
+
validate: v,
|
|
1118
1119
|
reset: $,
|
|
1119
1120
|
resetValidation: g
|
|
1120
1121
|
});
|
|
1121
|
-
}),
|
|
1122
|
-
|
|
1123
|
-
}),
|
|
1124
|
-
validate:
|
|
1122
|
+
}), E(() => {
|
|
1123
|
+
f && c && f.unregister({ id: l.id });
|
|
1124
|
+
}), a({
|
|
1125
|
+
validate: v,
|
|
1125
1126
|
reset: $,
|
|
1126
1127
|
resetValidation: g,
|
|
1127
1128
|
id: l.id,
|
|
1128
1129
|
errors: s
|
|
1129
|
-
}), (
|
|
1130
|
-
class:
|
|
1130
|
+
}), (y, S) => (n(), i("div", {
|
|
1131
|
+
class: h(["text-field-wrapper", { "has-value": e.modelValue }])
|
|
1131
1132
|
}, [
|
|
1132
|
-
|
|
1133
|
-
|
|
1133
|
+
u("div", bt, [
|
|
1134
|
+
u("input", {
|
|
1134
1135
|
id: e.id,
|
|
1135
1136
|
type: e.type,
|
|
1136
1137
|
value: e.modelValue,
|
|
1137
1138
|
placeholder: " ",
|
|
1138
|
-
onInput:
|
|
1139
|
-
onBlur:
|
|
1139
|
+
onInput: k,
|
|
1140
|
+
onBlur: P,
|
|
1140
1141
|
class: "text-field-input",
|
|
1141
1142
|
autocomplete: e.autocomplete,
|
|
1142
1143
|
maxlength: e.maxlength
|
|
1143
|
-
}, null, 40,
|
|
1144
|
+
}, null, 40, xt),
|
|
1144
1145
|
e.label ? (n(), i("label", {
|
|
1145
1146
|
key: 0,
|
|
1146
1147
|
for: e.id,
|
|
1147
1148
|
class: "text-field-label"
|
|
1148
|
-
}, b(e.placeholder ? e.placeholder : e.label), 9,
|
|
1149
|
-
|
|
1149
|
+
}, b(e.placeholder ? e.placeholder : e.label), 9, wt)) : d("", !0),
|
|
1150
|
+
u("fieldset", {
|
|
1150
1151
|
"aria-hidden": "true",
|
|
1151
|
-
class:
|
|
1152
|
-
}, [...
|
|
1153
|
-
|
|
1152
|
+
class: h(["text-field-fieldset", { "has-error": s.value.length > 0 }])
|
|
1153
|
+
}, [...S[0] || (S[0] = [
|
|
1154
|
+
u("legend", { class: "text-field-legend" }, null, -1)
|
|
1154
1155
|
])], 2)
|
|
1155
1156
|
]),
|
|
1156
|
-
|
|
1157
|
-
(n(!0), i(
|
|
1158
|
-
key:
|
|
1157
|
+
u("div", $t, [
|
|
1158
|
+
(n(!0), i(O, null, R(s.value, (z, M) => (n(), i("p", {
|
|
1159
|
+
key: M,
|
|
1159
1160
|
class: "error-message"
|
|
1160
|
-
}, b(
|
|
1161
|
+
}, b(z), 1))), 128))
|
|
1161
1162
|
])
|
|
1162
1163
|
], 2));
|
|
1163
1164
|
}
|
|
1164
|
-
}),
|
|
1165
|
+
}), _t = /* @__PURE__ */ p(St, [["__scopeId", "data-v-02dabc6c"]]), kt = ["aria-label"], It = { class: "tooltip-content" }, Vt = {
|
|
1165
1166
|
__name: "Tooltip",
|
|
1166
1167
|
props: {
|
|
1167
1168
|
text: {
|
|
@@ -1180,15 +1181,15 @@ const xt = { class: "input-container" }, wt = ["id", "type", "value", "autocompl
|
|
|
1180
1181
|
}
|
|
1181
1182
|
},
|
|
1182
1183
|
setup(e) {
|
|
1183
|
-
const
|
|
1184
|
-
|
|
1184
|
+
const a = e, t = V(!1), l = () => {
|
|
1185
|
+
a.disabled || (t.value = !0);
|
|
1185
1186
|
}, o = () => {
|
|
1186
|
-
|
|
1187
|
+
t.value = !1;
|
|
1187
1188
|
}, s = m(() => [
|
|
1188
1189
|
"tooltip",
|
|
1189
|
-
`tooltip--${
|
|
1190
|
+
`tooltip--${a.location}`
|
|
1190
1191
|
]);
|
|
1191
|
-
return (
|
|
1192
|
+
return (r, f) => (n(), i("div", {
|
|
1192
1193
|
class: "tooltip-container",
|
|
1193
1194
|
onMouseenter: l,
|
|
1194
1195
|
onMouseleave: o,
|
|
@@ -1197,22 +1198,22 @@ const xt = { class: "input-container" }, wt = ["id", "type", "value", "autocompl
|
|
|
1197
1198
|
role: "tooltip",
|
|
1198
1199
|
"aria-label": e.text
|
|
1199
1200
|
}, [
|
|
1200
|
-
w(
|
|
1201
|
-
x(
|
|
1202
|
-
default:
|
|
1203
|
-
|
|
1201
|
+
w(r.$slots, "default", {}, void 0, !0),
|
|
1202
|
+
x(N, { name: "tooltip-fade" }, {
|
|
1203
|
+
default: T(() => [
|
|
1204
|
+
t.value ? (n(), i("div", {
|
|
1204
1205
|
key: 0,
|
|
1205
|
-
class:
|
|
1206
|
+
class: h(s.value)
|
|
1206
1207
|
}, [
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
], 2)) :
|
|
1208
|
+
u("div", It, b(e.text), 1),
|
|
1209
|
+
f[0] || (f[0] = u("div", { class: "tooltip-arrow" }, null, -1))
|
|
1210
|
+
], 2)) : d("", !0)
|
|
1210
1211
|
]),
|
|
1211
1212
|
_: 1
|
|
1212
1213
|
})
|
|
1213
|
-
], 40,
|
|
1214
|
+
], 40, kt));
|
|
1214
1215
|
}
|
|
1215
|
-
},
|
|
1216
|
+
}, Ct = /* @__PURE__ */ p(Vt, [["__scopeId", "data-v-a7533144"]]), Bt = {
|
|
1216
1217
|
__name: "Overlay",
|
|
1217
1218
|
props: {
|
|
1218
1219
|
modelValue: {
|
|
@@ -1225,52 +1226,52 @@ const xt = { class: "input-container" }, wt = ["id", "type", "value", "autocompl
|
|
|
1225
1226
|
}
|
|
1226
1227
|
},
|
|
1227
1228
|
emits: ["update:modelValue"],
|
|
1228
|
-
setup(e, { emit:
|
|
1229
|
-
const
|
|
1229
|
+
setup(e, { emit: a }) {
|
|
1230
|
+
const t = e, l = a;
|
|
1230
1231
|
function o() {
|
|
1231
1232
|
l("update:modelValue", !1);
|
|
1232
1233
|
}
|
|
1233
|
-
return A(() =>
|
|
1234
|
-
!
|
|
1235
|
-
}), (s,
|
|
1236
|
-
default:
|
|
1234
|
+
return A(() => t.modelValue, (s) => {
|
|
1235
|
+
!t.contained && typeof document < "u" && (document.body.style.overflow = s ? "hidden" : "");
|
|
1236
|
+
}), (s, r) => (n(), B(N, { name: "overlay-fade" }, {
|
|
1237
|
+
default: T(() => [
|
|
1237
1238
|
e.modelValue ? (n(), i("div", {
|
|
1238
1239
|
key: 0,
|
|
1239
|
-
class:
|
|
1240
|
-
onClick:
|
|
1240
|
+
class: h(["overlay", { "overlay--contained": e.contained }]),
|
|
1241
|
+
onClick: C(o, ["self"])
|
|
1241
1242
|
}, [
|
|
1242
1243
|
w(s.$slots, "default", {}, void 0, !0)
|
|
1243
|
-
], 2)) :
|
|
1244
|
+
], 2)) : d("", !0)
|
|
1244
1245
|
]),
|
|
1245
1246
|
_: 3
|
|
1246
1247
|
}));
|
|
1247
1248
|
}
|
|
1248
|
-
},
|
|
1249
|
-
e.component("Avatar",
|
|
1250
|
-
},
|
|
1249
|
+
}, zt = /* @__PURE__ */ p(Bt, [["__scopeId", "data-v-11b69f56"]]), Nt = (e) => {
|
|
1250
|
+
e.component("Avatar", Z), e.component("Button", le), e.component("Card", se), e.component("Chip", re), e.component("Column", ue), e.component("DatePicker", be), e.component("Dialog", _e), e.component("Divider", Ie), e.component("Icon", q), e.component("Overlay", zt), e.component("Image", Te), e.component("ImageSlideShow", Pe), e.component("Input", He), e.component("NavigationDrawer", Ge), e.component("Progress", Qe), e.component("ProgressSpinner", H), e.component("Row", et), e.component("Select", rt), e.component("Spacer", ct), e.component("TextArea", vt), e.component("TextField", _t), e.component("Tooltip", Ct);
|
|
1251
|
+
}, Mt = { install: Nt };
|
|
1251
1252
|
export {
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1253
|
+
Z as Avatar,
|
|
1254
|
+
le as Button,
|
|
1255
|
+
se as Card,
|
|
1256
|
+
re as Chip,
|
|
1256
1257
|
ue as Column,
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1258
|
+
be as DatePicker,
|
|
1259
|
+
_e as Dialog,
|
|
1260
|
+
Ie as Divider,
|
|
1261
|
+
q as Icon,
|
|
1262
|
+
Te as Image,
|
|
1263
|
+
Pe as ImageSlideshow,
|
|
1264
|
+
He as Input,
|
|
1265
|
+
Ge as NavigationDrawer,
|
|
1266
|
+
zt as Overlay,
|
|
1267
|
+
Qe as Progress,
|
|
1268
|
+
H as ProgressSpinner,
|
|
1269
|
+
et as Row,
|
|
1270
|
+
rt as Select,
|
|
1271
|
+
ct as Spacer,
|
|
1272
|
+
vt as TextArea,
|
|
1273
|
+
_t as TextField,
|
|
1274
|
+
Ct as Tooltip,
|
|
1275
|
+
Mt as default,
|
|
1276
|
+
Nt as install
|
|
1276
1277
|
};
|