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