treqit-ui-library 1.4.14 → 1.4.16

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 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 = {
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 a = e, t = m(() => [
33
+ const t = e, a = i(() => [
34
34
  "avatar",
35
35
  {
36
- "avatar--rounded-sm": a.rounded === "sm",
37
- "avatar--rounded-lg": a.rounded === "lg"
36
+ "avatar--rounded-sm": t.rounded === "sm",
37
+ "avatar--rounded-lg": t.rounded === "lg"
38
38
  }
39
- ]), l = m(() => {
39
+ ]), l = i(() => {
40
40
  const o = {
41
- width: `${a.size}px`,
42
- height: `${a.size}px`,
43
- backgroundColor: a.color
41
+ width: `${t.size}px`,
42
+ height: `${t.size}px`,
43
+ backgroundColor: t.color
44
44
  };
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;
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(), i("div", {
48
- class: h(t.value),
49
- style: _(l.value)
47
+ return (o, s) => (n(), r("div", {
48
+ class: y(a.value),
49
+ style: x(l.value)
50
50
  }, [
51
- w(o.$slots, "default", {}, () => [
52
- e.initials ? (n(), i("span", J, b(e.initials), 1)) : d("", !0)
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
- }, Z = /* @__PURE__ */ p(Q, [["__scopeId", "data-v-2e02a766"]]), ee = ["type", "disabled"], te = {
56
+ }, Y = /* @__PURE__ */ p(Q, [["__scopeId", "data-v-2e02a766"]]), Z = ["type", "disabled"], ee = {
57
57
  key: 0,
58
58
  class: "btn-loader"
59
- }, ae = {
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 a = e, t = m(() => [
93
+ const t = e, a = i(() => [
94
94
  "btn",
95
- `btn--${a.variant}`,
96
- `btn--${a.size === "sm" ? "small" : a.size}`,
95
+ `btn--${t.variant}`,
96
+ `btn--${t.size === "sm" ? "small" : t.size}`,
97
97
  {
98
- "btn--loading": a.loading,
99
- "btn--full": a.full
98
+ "btn--loading": t.loading,
99
+ "btn--full": t.full
100
100
  }
101
101
  ]);
102
- return (l, o) => (n(), i("button", {
102
+ return (l, o) => (n(), r("button", {
103
103
  type: e.type,
104
- class: h(t.value),
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(), 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 }])
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
- w(l.$slots, "default", {}, void 0, !0)
114
+ b(l.$slots, "default", {}, void 0, !0)
115
115
  ], 2)
116
- ], 10, ee));
116
+ ], 10, Z));
117
117
  }
118
- }, le = /* @__PURE__ */ p(ae, [["__scopeId", "data-v-8db92d47"]]), ne = { class: "card" }, oe = {
118
+ }, ae = /* @__PURE__ */ p(te, [["__scopeId", "data-v-8db92d47"]]), le = { class: "card" }, ne = {
119
119
  __name: "Card",
120
120
  setup(e) {
121
- return (a, t) => (n(), i("div", ne, [
122
- w(a.$slots, "default", {}, void 0, !0)
121
+ return (t, a) => (n(), r("div", le, [
122
+ b(t.$slots, "default", {}, void 0, !0)
123
123
  ]));
124
124
  }
125
- }, se = /* @__PURE__ */ p(oe, [["__scopeId", "data-v-09430cb2"]]), ie = {
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 a = e, t = m(() => [
141
+ const t = e, a = i(() => [
142
142
  "chip",
143
- `chip--${a.variant}`
143
+ `chip--${t.variant}`
144
144
  ]);
145
145
  return (l, o) => {
146
- const s = D("Icon");
147
- return n(), i("div", {
148
- class: h(t.value)
146
+ const s = q("Icon");
147
+ return n(), r("div", {
148
+ class: y(a.value)
149
149
  }, [
150
- w(l.$slots, "default", {}, void 0, !0),
151
- e.removable ? (n(), i("button", {
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] = C((r) => l.$emit("remove"), ["stop"])),
154
+ onClick: o[0] || (o[0] = M((d) => l.$emit("remove"), ["stop"])),
155
155
  "aria-label": "Remove"
156
156
  }, [
157
- x(s, {
157
+ _(s, {
158
158
  name: "close",
159
159
  size: "14",
160
160
  "stroke-width": "2.5"
161
161
  })
162
- ])) : d("", !0)
162
+ ])) : u("", !0)
163
163
  ], 2);
164
164
  };
165
165
  }
166
- }, re = /* @__PURE__ */ p(ie, [["__scopeId", "data-v-6b6b7ae9"]]), de = /* @__PURE__ */ L({
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 a = e, t = m(() => {
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
- a[s] && l.push(`${o[s]}${a[s]}`);
187
+ t[s] && l.push(`${o[s]}${t[s]}`);
188
188
  return l;
189
189
  });
190
- return (l, o) => (n(), i("div", {
191
- class: h(t.value)
190
+ return (l, o) => (n(), r("div", {
191
+ class: y(a.value)
192
192
  }, [
193
- w(l.$slots, "default", {}, void 0, !0)
193
+ b(l.$slots, "default", {}, void 0, !0)
194
194
  ], 2));
195
195
  }
196
- }), ue = /* @__PURE__ */ p(de, [["__scopeId", "data-v-a5db8165"]]), ce = {
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 a = e, t = {
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 = 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 = {
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 a.color && (r.color = a.color), r;
225
+ return t.color && (d.color = t.color), d;
226
226
  });
227
- return (s, r) => (n(), i("i", {
228
- class: h(l.value),
229
- style: _(o.value),
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
- }, q = /* @__PURE__ */ p(ce, [["__scopeId", "data-v-4a07735a"]]), me = ["for"], fe = {
233
+ }, E = /* @__PURE__ */ p(ue, [["__scopeId", "data-v-4a07735a"]]), ce = ["for"], me = {
234
234
  key: 0,
235
235
  class: "date-picker__required"
236
- }, pe = { class: "date-picker__input-wrapper" }, ye = ["id", "value", "disabled", "readonly", "min", "max", "required"], he = {
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__ */ L({
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: a }) {
261
- const t = e, l = a, o = m(() => `date-picker-${Math.random().toString(36).substr(2, 9)}`), s = m(() => [
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--${t.size}`,
264
- `date-picker--${t.variant}`,
263
+ `date-picker--${a.size}`,
264
+ `date-picker--${a.variant}`,
265
265
  {
266
- "date-picker--disabled": t.disabled,
267
- "date-picker--readonly": t.readonly,
268
- "date-picker--error": t.errorMessage,
269
- "date-picker--required": t.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
- ]), r = m(() => [
271
+ ]), d = i(() => [
272
272
  "date-picker__input",
273
273
  {
274
- "date-picker__input--with-icon": t.showIcon
274
+ "date-picker__input--with-icon": a.showIcon
275
275
  }
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
- l("blur", g);
284
- }, S = (g) => {
285
- l("focus", g);
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 (g, k) => (n(), i("div", {
288
- class: h(["date-picker", s.value])
287
+ return (h, w) => (n(), r("div", {
288
+ class: y(["date-picker", s.value])
289
289
  }, [
290
- e.label ? (n(), i("label", {
290
+ e.label ? (n(), r("label", {
291
291
  key: 0,
292
292
  for: o.value,
293
293
  class: "date-picker__label"
294
294
  }, [
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", {
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: h(r.value),
308
+ class: y(d.value),
309
309
  onInput: f,
310
- onChange: c,
311
- onBlur: v,
310
+ onChange: m,
311
+ onBlur: g,
312
312
  onFocus: S
313
- }, null, 42, ye),
314
- e.showIcon ? (n(), B(q, {
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
- })) : d("", !0)
318
+ })) : u("", !0)
319
319
  ]),
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)
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
- }), be = /* @__PURE__ */ p(ge, [["__scopeId", "data-v-f09e8bb1"]]), xe = ["aria-labelledby"], we = {
324
+ }), he = /* @__PURE__ */ p(ge, [["__scopeId", "data-v-f09e8bb1"]]), be = ["aria-labelledby"], xe = {
325
325
  key: 0,
326
326
  class: "dialog-header"
327
- }, Se = {
327
+ }, $e = {
328
328
  id: "dialog-title",
329
329
  class: "dialog-title"
330
- }, $e = {
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: a }) {
365
- const t = e, l = a, o = () => {
364
+ setup(e, { emit: t }) {
365
+ const a = e, l = t, o = () => {
366
366
  l("update:modelValue", !1);
367
367
  }, s = () => {
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;
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 A(() => t.modelValue, (c) => {
374
- typeof document < "u" && (document.body.style.overflow = c ? "hidden" : "");
375
- }), E(() => {
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
- }), (c, v) => {
378
- const S = D("Icon");
379
- return n(), B(F, { to: "body" }, [
380
- x(N, { name: "dialog-fade" }, {
381
- default: T(() => [
382
- e.modelValue ? (n(), i("div", {
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
- u("div", {
388
- class: h(["dialog-content", r.value]),
389
- style: _(f.value),
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: v[0] || (v[0] = C(() => {
393
+ onClick: g[0] || (g[0] = M(() => {
394
394
  }, ["stop"]))
395
395
  }, [
396
- e.title ? (n(), i("header", we, [
397
- u("h2", Se, b(e.title), 1),
398
- u("button", {
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
- x(S, {
403
+ _(S, {
404
404
  icon: "mdi-close",
405
405
  size: "24"
406
406
  })
407
407
  ])
408
- ])) : d("", !0),
409
- u("main", {
410
- class: h(["dialog-body", { scrollable: e.scrollable }])
408
+ ])) : u("", !0),
409
+ c("main", {
410
+ class: y(["dialog-body", { scrollable: e.scrollable }])
411
411
  }, [
412
- w(c.$slots, "default", {}, void 0, !0)
412
+ b(m.$slots, "default", {}, void 0, !0)
413
413
  ], 2)
414
- ], 14, xe)
415
- ])) : d("", !0)
414
+ ], 14, be)
415
+ ])) : u("", !0)
416
416
  ]),
417
417
  _: 3
418
418
  })
419
419
  ]);
420
420
  };
421
421
  }
422
- }, _e = /* @__PURE__ */ p($e, [["__scopeId", "data-v-b9e605dc"]]), ke = {
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 a = e, t = m(() => [
435
+ const t = e, a = i(() => [
436
436
  "divider",
437
- a.vertical ? "divider--vertical" : "divider--horizontal"
438
- ]), l = m(() => a.vertical ? {} : { height: `${a.height}px` });
439
- return (o, s) => (n(), i("hr", {
440
- class: h(t.value),
441
- style: _(l.value)
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
- }, Ie = /* @__PURE__ */ p(ke, [["__scopeId", "data-v-cbf66f89"]]), Ve = { class: "spinner-container" }, Ce = {
444
+ }, ke = /* @__PURE__ */ p(we, [["__scopeId", "data-v-cbf66f89"]]), Ve = { class: "spinner-container" }, Ie = {
445
445
  __name: "ProgressSpinner",
446
446
  setup(e) {
447
- return (a, t) => (n(), i("div", Ve, [...t[0] || (t[0] = [
448
- u("div", { class: "spinner" }, null, -1)
447
+ return (t, a) => (n(), r("div", Ve, [...a[0] || (a[0] = [
448
+ c("div", { class: "spinner" }, null, -1)
449
449
  ])]));
450
450
  }
451
- }, H = /* @__PURE__ */ p(Ce, [["__scopeId", "data-v-69bc6c98"]]), Be = {
451
+ }, R = /* @__PURE__ */ p(Ie, [["__scopeId", "data-v-69bc6c98"]]), Ce = {
452
452
  key: 0,
453
453
  class: "placeholder"
454
- }, ze = ["src", "alt"], Ne = {
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 a = e, t = V(!0), l = V(!1), o = () => {
485
- t.value = !1, l.value = !1;
484
+ const t = e, a = z(!0), l = z(!1), o = () => {
485
+ a.value = !1, l.value = !1;
486
486
  }, s = () => {
487
- t.value = !1, l.value = !0;
487
+ a.value = !1, l.value = !0;
488
488
  };
489
- A(() => a.src, () => {
490
- t.value = !0, l.value = !1;
489
+ D(() => t.src, () => {
490
+ a.value = !0, l.value = !1;
491
491
  }, { immediate: !0 });
492
- const r = m(() => ({
493
- width: a.width,
494
- height: a.height,
495
- minWidth: a.width,
496
- minHeight: a.height,
497
- maxHeight: a.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, c) => {
500
- const v = D("Icon");
501
- return n(), i("div", {
499
+ return (f, m) => {
500
+ const g = q("Icon");
501
+ return n(), r("div", {
502
502
  class: "image-container",
503
- style: _(r.value)
503
+ style: x(d.value)
504
504
  }, [
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, {
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
- })) : d("", !0)
512
- ])) : d("", !0),
513
- U(u("img", {
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: _({ objectFit: e.fit, maxHeight: e.maxHeight }),
517
+ style: x({ objectFit: e.fit, maxHeight: e.maxHeight }),
518
518
  onLoad: o,
519
519
  onError: s
520
- }, null, 44, ze), [
521
- [X, !t.value && !l.value]
520
+ }, null, 44, Be), [
521
+ [L, !a.value && !l.value]
522
522
  ])
523
523
  ], 4);
524
524
  };
525
525
  }
526
- }, Te = /* @__PURE__ */ p(Ne, [["__scopeId", "data-v-a3997b8b"]]), Me = ["src"], qe = {
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: a }) {
685
- const t = e, l = a, o = (s) => {
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, r) => (n(), i("div", {
689
- class: h(["input-wrapper", t.class])
563
+ return (s, d) => (n(), r("div", {
564
+ class: y(["input-wrapper", a.class])
690
565
  }, [
691
- e.label ? (n(), i("label", {
566
+ e.label ? (n(), r("label", {
692
567
  key: 0,
693
568
  for: e.id,
694
569
  class: "input-label"
695
- }, b(e.label), 9, Le)) : d("", !0),
696
- u("div", Fe, [
697
- u("input", {
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, Oe)
580
+ }, null, 40, Me)
706
581
  ])
707
582
  ], 2));
708
583
  }
709
- }, He = /* @__PURE__ */ p(Re, [["__scopeId", "data-v-9c7a100f"]]), je = {
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: a }) {
729
- const t = e, l = a, o = () => {
603
+ setup(e, { emit: t }) {
604
+ const a = e, l = t, o = () => {
730
605
  l("update:modelValue", !1);
731
- }, s = m(() => [
606
+ }, s = i(() => [
732
607
  "navigation-drawer",
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(() => {
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
- }), (c, v) => (n(), B(F, { to: "body" }, [
742
- x(N, { name: "fade" }, {
743
- default: T(() => [
744
- e.modelValue ? (n(), i("div", {
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
- })) : d("", !0)
624
+ })) : u("", !0)
750
625
  ]),
751
626
  _: 1
752
627
  }),
753
- x(N, { name: f.value }, {
754
- default: T(() => [
755
- e.modelValue ? (n(), i("aside", {
628
+ _(C, { name: f.value }, {
629
+ default: B(() => [
630
+ e.modelValue ? (n(), r("aside", {
756
631
  key: 0,
757
- class: h(s.value),
758
- style: _(r.value),
632
+ class: y(s.value),
633
+ style: x(d.value),
759
634
  role: "dialog",
760
635
  "aria-modal": "true"
761
636
  }, [
762
- w(c.$slots, "default", {}, void 0, !0)
763
- ], 6)) : d("", !0)
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
- }, 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 = {
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
- }, I = 44, Je = {
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 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
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 = m(() => a.width / a.size * I), r = m(() => a.indeterminate ? null : l.value * (1 - a.modelValue / 100));
804
- return (f, c) => (n(), i("div", {
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: _(o.value),
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(), i("svg", {
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 ${I} ${I}`
691
+ viewBox: `0 0 ${$} ${$}`
817
692
  }, [
818
- u("circle", {
693
+ c("circle", {
819
694
  class: "progress-circular__underlay",
820
695
  fill: "transparent",
821
- cx: I / 2,
822
- cy: I / 2,
823
- r: t.value,
696
+ cx: $ / 2,
697
+ cy: $ / 2,
698
+ r: a.value,
824
699
  "stroke-width": s.value
825
- }, null, 8, We),
826
- u("circle", {
700
+ }, null, 8, Re),
701
+ c("circle", {
827
702
  class: "progress-circular__overlay",
828
703
  fill: "transparent",
829
- cx: I / 2,
830
- cy: I / 2,
831
- r: t.value,
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": 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)
840
- ], 12, Ue));
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
- }, Qe = /* @__PURE__ */ p(Je, [["__scopeId", "data-v-bdb14b7f"]]), Ze = {
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 a = e, t = m(() => ({
867
- justifyContent: a.justify,
868
- alignItems: a.align,
869
- gap: a.gap,
870
- flexWrap: a.wrap ? "wrap" : "nowrap"
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(), i("div", {
747
+ return (l, o) => (n(), r("div", {
873
748
  class: "flex-row",
874
- style: _(t.value)
749
+ style: x(a.value)
875
750
  }, [
876
- w(l.$slots, "default", {}, void 0, !0)
751
+ b(l.$slots, "default", {}, void 0, !0)
877
752
  ], 4));
878
753
  }
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 = {
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
- }, it = {
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: 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);
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 (t.multiple) {
929
- const r = Array.from(s.target.selectedOptions).map((f) => f.value);
930
- l("update:modelValue", r);
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, r) => {
935
- const f = D("Icon");
936
- return n(), i("div", {
937
- class: h(["select-wrapper", t.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(), i("label", {
814
+ e.label ? (n(), r("label", {
940
815
  key: 0,
941
816
  for: e.id,
942
817
  class: "select-label"
943
- }, b(e.label), 9, tt)) : d("", !0),
944
- u("div", at, [
945
- u("select", {
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: h([{ "no-arrow": e.hideArrow }, "select-input"])
826
+ class: y([{ "no-arrow": e.hideArrow }, "select-input"])
952
827
  }, [
953
- e.placeholder ? (n(), i("option", {
828
+ e.placeholder ? (n(), r("option", {
954
829
  key: 0,
955
830
  value: "",
956
831
  disabled: "",
957
832
  selected: !e.modelValue
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, {
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
- }, rt = /* @__PURE__ */ p(it, [["__scopeId", "data-v-d4f9136e"]]), dt = { class: "spacer" }, ut = {
849
+ }, tt = /* @__PURE__ */ p(et, [["__scopeId", "data-v-d4f9136e"]]), at = { class: "spacer" }, lt = {
975
850
  __name: "Spacer",
976
851
  setup(e) {
977
- return (a, t) => (n(), i("div", dt));
852
+ return (t, a) => (n(), r("div", at));
978
853
  }
979
- }, ct = /* @__PURE__ */ p(ut, [["__scopeId", "data-v-370a82d1"]]), mt = { class: "textarea-wrapper" }, ft = ["for"], pt = ["id", "value", "placeholder", "rows", "maxlength"], yt = {
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
- }, ht = {
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 (a, t) => (n(), i("div", mt, [
1017
- e.label ? (n(), i("label", {
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
- }, b(e.label), 9, ft)) : d("", !0),
1022
- u("textarea", {
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: 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)
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
- }, vt = /* @__PURE__ */ p(ht, [["__scopeId", "data-v-a2a785c2"]]);
1035
- class gt {
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(a) {
1038
- const t = Math.random() * 16 | 0;
1039
- return (a == "x" ? t : t & 3 | 8).toString(16);
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 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);
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(a) {
1049
- return a === "00000000-0000-0000-0000-000000000000";
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 bt = { class: "input-container" }, xt = ["id", "type", "value", "autocomplete", "maxlength"], wt = ["for"], St = { class: "error-container" }, $t = /* @__PURE__ */ L({
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-${gt.newGuid()}`
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: a, emit: t }) {
1097
- const l = e, o = t, s = V([]), r = V(!0), f = W("form", null), c = Y(), v = async () => {
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 y = !0;
1100
- for (const $ of l.rules) {
1101
- const z = $(l.modelValue);
1102
- z !== !0 && (y = !1, s.value.push(z));
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: y, errors: s.value };
979
+ return { valid: I, errors: s.value };
1105
980
  }, S = () => {
1106
- o("update:modelValue", ""), g();
1107
- }, g = () => {
1108
- s.value = [], r.value = !0;
1109
- }, k = (y) => {
1110
- const $ = y.target;
1111
- o("update:modelValue", $.value), r.value || v();
1112
- }, P = () => {
1113
- r.value = !1, l.trim && typeof l.modelValue == "string" && o("update:modelValue", l.modelValue.trim()), v();
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 K(() => {
1116
- f && c && f.register({
990
+ return J(() => {
991
+ f && m && f.register({
1117
992
  id: l.id,
1118
- validate: v,
993
+ validate: g,
1119
994
  reset: S,
1120
- resetValidation: g
995
+ resetValidation: h
1121
996
  });
1122
- }), E(() => {
1123
- f && c && f.unregister({ id: l.id });
1124
- }), a({
1125
- validate: v,
997
+ }), A(() => {
998
+ f && m && f.unregister({ id: l.id });
999
+ }), t({
1000
+ validate: g,
1126
1001
  reset: S,
1127
- resetValidation: g,
1002
+ resetValidation: h,
1128
1003
  id: l.id,
1129
1004
  errors: s
1130
- }), (y, $) => (n(), i("div", {
1131
- class: h(["text-field-wrapper", { "has-value": e.modelValue }])
1005
+ }), (I, k) => (n(), r("div", {
1006
+ class: y(["text-field-wrapper", { "has-value": e.modelValue }])
1132
1007
  }, [
1133
- u("div", bt, [
1134
- u("input", {
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: k,
1140
- onBlur: P,
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, xt),
1145
- e.label ? (n(), i("label", {
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
- }, b(e.placeholder ? e.placeholder : e.label), 9, wt)) : d("", !0),
1150
- u("fieldset", {
1024
+ }, v(e.placeholder ? e.placeholder : e.label), 9, pt)) : u("", !0),
1025
+ c("fieldset", {
1151
1026
  "aria-hidden": "true",
1152
- class: h(["text-field-fieldset", { "has-error": s.value.length > 0 }])
1153
- }, [...$[0] || ($[0] = [
1154
- u("legend", { class: "text-field-legend" }, null, -1)
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
- u("div", St, [
1158
- (n(!0), i(O, null, R(s.value, (z, M) => (n(), i("p", {
1159
- key: M,
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
- }, b(z), 1))), 128))
1036
+ }, v(N), 1))), 128))
1162
1037
  ])
1163
1038
  ], 2));
1164
1039
  }
1165
- }), _t = /* @__PURE__ */ p($t, [["__scopeId", "data-v-02dabc6c"]]), kt = ["aria-label"], It = { class: "tooltip-content" }, Vt = {
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 a = e, t = V(!1), l = () => {
1185
- a.disabled || (t.value = !0);
1059
+ const t = e, a = z(!1), l = () => {
1060
+ t.disabled || (a.value = !0);
1186
1061
  }, o = () => {
1187
- t.value = !1;
1188
- }, s = m(() => [
1062
+ a.value = !1;
1063
+ }, s = i(() => [
1189
1064
  "tooltip",
1190
- `tooltip--${a.location}`
1065
+ `tooltip--${t.location}`
1191
1066
  ]);
1192
- return (r, f) => (n(), i("div", {
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
- w(r.$slots, "default", {}, void 0, !0),
1202
- x(N, { name: "tooltip-fade" }, {
1203
- default: T(() => [
1204
- t.value ? (n(), i("div", {
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: h(s.value)
1081
+ class: y(s.value)
1207
1082
  }, [
1208
- u("div", It, b(e.text), 1),
1209
- f[0] || (f[0] = u("div", { class: "tooltip-arrow" }, null, -1))
1210
- ], 2)) : d("", !0)
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, kt));
1089
+ ], 40, ht));
1215
1090
  }
1216
- }, Ct = /* @__PURE__ */ p(Vt, [["__scopeId", "data-v-a7533144"]]), Bt = {
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: a }) {
1230
- const t = e, l = a;
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 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(() => [
1238
- e.modelValue ? (n(), i("div", {
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: h(["overlay", { "overlay--contained": e.contained }]),
1241
- onClick: C(o, ["self"])
1115
+ class: y(["overlay", { "overlay--contained": e.contained }]),
1116
+ onClick: M(o, ["self"])
1242
1117
  }, [
1243
- w(s.$slots, "default", {}, void 0, !0)
1244
- ], 2)) : d("", !0)
1118
+ b(s.$slots, "default", {}, void 0, !0)
1119
+ ], 2)) : u("", !0)
1245
1120
  ]),
1246
1121
  _: 3
1247
1122
  }));
1248
1123
  }
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 };
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
- Z as Avatar,
1254
- le as Button,
1255
- se as Card,
1128
+ Y as Avatar,
1129
+ ae as Button,
1130
+ oe as Card,
1256
1131
  re as Chip,
1257
- ue as Column,
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
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
  };