@dynamicforms/vuetify-inputs 0.2.3 → 0.2.4

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.
@@ -2,40 +2,40 @@ var Me = Object.defineProperty, He = Object.defineProperties;
2
2
  var je = Object.getOwnPropertyDescriptors;
3
3
  var ge = Object.getOwnPropertySymbols;
4
4
  var ze = Object.prototype.hasOwnProperty, Ke = Object.prototype.propertyIsEnumerable;
5
- var se = (t, e, l) => e in t ? Me(t, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[e] = l, D = (t, e) => {
5
+ var re = (t, e, l) => e in t ? Me(t, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[e] = l, N = (t, e) => {
6
6
  for (var l in e || (e = {}))
7
- ze.call(e, l) && se(t, l, e[l]);
7
+ ze.call(e, l) && re(t, l, e[l]);
8
8
  if (ge)
9
9
  for (var l of ge(e))
10
- Ke.call(e, l) && se(t, l, e[l]);
10
+ Ke.call(e, l) && re(t, l, e[l]);
11
11
  return t;
12
- }, M = (t, e) => He(t, je(e));
13
- var Y = (t, e, l) => se(t, typeof e != "symbol" ? e + "" : e, l);
12
+ }, R = (t, e) => He(t, je(e));
13
+ var Y = (t, e, l) => re(t, typeof e != "symbol" ? e + "" : e, l);
14
14
  var oe = (t, e, l) => new Promise((i, o) => {
15
- var a = (b) => {
15
+ var a = (v) => {
16
16
  try {
17
- c(l.next(b));
17
+ c(l.next(v));
18
18
  } catch (s) {
19
19
  o(s);
20
20
  }
21
- }, f = (b) => {
21
+ }, f = (v) => {
22
22
  try {
23
- c(l.throw(b));
23
+ c(l.throw(v));
24
24
  } catch (s) {
25
25
  o(s);
26
26
  }
27
- }, c = (b) => b.done ? i(b.value) : Promise.resolve(b.value).then(a, f);
27
+ }, c = (v) => v.done ? i(v.value) : Promise.resolve(v.value).then(a, f);
28
28
  c((l = l.apply(t, e)).next());
29
29
  });
30
30
  import * as he from "vue";
31
- import { defineComponent as U, mergeModels as ye, useModel as Ge, ref as N, watch as ee, onMounted as Ae, markRaw as We, onBeforeUnmount as Se, createBlock as w, openBlock as g, resolveDynamicComponent as te, version as Xe, computed as V, createElementBlock as E, Fragment as De, renderList as Ne, normalizeClass as le, toDisplayString as X, unref as n, mergeProps as L, withCtx as h, createTextVNode as $e, resolveComponent as I, createCommentVNode as $, createVNode as x, createSlots as qe, renderSlot as Ze, isRef as G, withModifiers as Ye, mergeDefaults as z, createElementVNode as q, normalizeStyle as fe, toRefs as ie, withKeys as _e, useCssVars as Qe, normalizeProps as Ee, guardReactiveProps as Ue, nextTick as Je } from "vue";
32
- import { debounce as et, isEmpty as tt, isObjectLike as lt, isString as de, isBoolean as Ve, clone as nt, toNumber as we, isNaN as ke, isArray as Te, castArray as Fe, first as Le } from "lodash-es";
33
- import me from "vue-ionicon";
31
+ import { defineComponent as U, mergeModels as ye, useModel as Ge, ref as S, watch as ee, onMounted as Ae, markRaw as We, onBeforeUnmount as Se, createBlock as k, openBlock as h, resolveDynamicComponent as te, version as Xe, computed as w, createElementBlock as $, Fragment as De, renderList as Ne, normalizeClass as le, toDisplayString as q, unref as n, mergeProps as M, withCtx as _, createTextVNode as $e, resolveComponent as I, createCommentVNode as E, createVNode as T, createSlots as qe, renderSlot as Ze, isRef as K, withModifiers as Ye, mergeDefaults as j, createElementVNode as Z, normalizeStyle as ve, toRefs as ie, withKeys as _e, useCssVars as Qe, normalizeProps as Ee, guardReactiveProps as Ue, nextTick as Je } from "vue";
32
+ import { debounce as et, isEmpty as tt, isObjectLike as lt, isString as me, isBoolean as Ve, clone as nt, toNumber as we, isNaN as ke, isArray as Te, castArray as Fe, first as Le } from "lodash-es";
33
+ import pe from "vue-ionicon";
34
34
  import { useDisplay as ot } from "vuetify";
35
- import Ce, { ValidationErrorRenderContent as at, DisplayMode as H, ExecuteAction as it, Action as re } from "@dynamicforms/vue-forms";
35
+ import Ce, { ValidationErrorRenderContent as at, DisplayMode as O, ExecuteAction as it, Action as ue } from "@dynamicforms/vue-forms";
36
36
  import st from "vue-markdown-render";
37
37
  import { format as Q, parse as rt } from "date-fns";
38
- import { AccessibilityHelp as ut, Alignment as ct, AutoImage as dt, AutoLink as mt, Autosave as pt, BalloonToolbar as ft, BlockQuote as vt, Bold as bt, CloudServices as gt, Essentials as ht, GeneralHtmlSupport as yt, Heading as _t, HorizontalLine as Vt, ImageBlock as wt, ImageCaption as kt, ImageInline as Tt, ImageInsertViaUrl as Ct, ImageResize as It, ImageStyle as Bt, ImageToolbar as xt, ImageUpload as At, Indent as St, IndentBlock as Dt, Italic as Nt, Link as $t, List as Et, Autoformat as Ut, MediaEmbed as Ft, Paragraph as Lt, PasteFromMarkdownExperimental as Rt, PasteFromOffice as Pt, SelectAll as Ot, Style as Mt, Table as Ht, TableCellProperties as jt, TableColumnResize as zt, TableProperties as Kt, TableToolbar as Gt, Undo as Wt, TextTransformation as Xt, Base64UploadAdapter as qt, ClassicEditor as Zt } from "ckeditor5";
38
+ import { AccessibilityHelp as ut, Alignment as dt, AutoImage as ct, AutoLink as mt, Autosave as pt, BalloonToolbar as ft, BlockQuote as vt, Bold as bt, CloudServices as gt, Essentials as ht, GeneralHtmlSupport as yt, Heading as _t, HorizontalLine as Vt, ImageBlock as wt, ImageCaption as kt, ImageInline as Tt, ImageInsertViaUrl as Ct, ImageResize as It, ImageStyle as Bt, ImageToolbar as xt, ImageUpload as At, Indent as St, IndentBlock as Dt, Italic as Nt, Link as $t, List as Et, Autoformat as Ut, MediaEmbed as Ft, Paragraph as Lt, PasteFromMarkdownExperimental as Pt, PasteFromOffice as Rt, SelectAll as Ot, Style as Mt, Table as Ht, TableCellProperties as jt, TableColumnResize as zt, TableProperties as Kt, TableToolbar as Gt, Undo as Wt, TextTransformation as Xt, Base64UploadAdapter as qt, ClassicEditor as Zt } from "ckeditor5";
39
39
  import { VAutocomplete as Yt } from "vuetify/components/VAutocomplete";
40
40
  import { VBtn as Qt } from "vuetify/components/VBtn";
41
41
  import { VCheckbox as Jt } from "vuetify/components/VCheckbox";
@@ -48,8 +48,8 @@ import { VFileInput as al } from "vuetify/components/VFileInput";
48
48
  import { VCol as il, VRow as sl } from "vuetify/components/VGrid";
49
49
  import { VIcon as rl } from "vuetify/components/VIcon";
50
50
  import { VInput as ul } from "vuetify/components/VInput";
51
- import { VListItem as cl } from "vuetify/components/VList";
52
- import { VMenu as dl } from "vuetify/components/VMenu";
51
+ import { VListItem as dl } from "vuetify/components/VList";
52
+ import { VMenu as cl } from "vuetify/components/VMenu";
53
53
  import { VNumberInput as ml } from "vuetify/components/VNumberInput";
54
54
  import { VProgressLinear as pl } from "vuetify/components/VProgressLinear";
55
55
  import { VSelect as fl } from "vuetify/components/VSelect";
@@ -72,7 +72,7 @@ new Array(256).fill("").map((t, e) => ("0" + e.toString(16)).slice(-2));
72
72
  */
73
73
  function yl(t, e) {
74
74
  const l = t.extraPlugins || [];
75
- return M(D({}, t), {
75
+ return R(N({}, t), {
76
76
  extraPlugins: [
77
77
  ...l,
78
78
  ...e.filter((i) => !l.includes(i))
@@ -83,25 +83,25 @@ function yl(t, e) {
83
83
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
84
84
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
85
85
  */
86
- function Re(t) {
86
+ function Pe(t) {
87
87
  return !!t && /^\d+\.\d+\.\d+/.test(t);
88
88
  }
89
89
  /**
90
90
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
91
91
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
92
92
  */
93
- function Pe(t) {
93
+ function Re(t) {
94
94
  return t ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((e) => t.includes(e)) : !1;
95
95
  }
96
96
  function _l(t) {
97
- return Re(t) || Pe(t);
97
+ return Pe(t) || Re(t);
98
98
  }
99
99
  /**
100
100
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
101
101
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
102
102
  */
103
103
  function Vl(t) {
104
- if (!Re(t))
104
+ if (!Pe(t))
105
105
  throw new Error(`Invalid semantic version: ${t || "<blank>"}.`);
106
106
  const [e, l, i] = t.split(".");
107
107
  return {
@@ -115,7 +115,7 @@ function Vl(t) {
115
115
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
116
116
  */
117
117
  function wl(t) {
118
- if (Pe(t))
118
+ if (Re(t))
119
119
  return 3;
120
120
  const { major: e } = Vl(t);
121
121
  switch (!0) {
@@ -197,7 +197,7 @@ function Bl(t) {
197
197
  Il
198
198
  ]);
199
199
  }
200
- const ue = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", xl = 300, Al = /* @__PURE__ */ U({
200
+ const de = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", xl = 300, Al = /* @__PURE__ */ U({
201
201
  name: "CKEditor",
202
202
  __name: "ckeditor",
203
203
  props: /* @__PURE__ */ ye({
@@ -212,47 +212,47 @@ const ue = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", xl = 300, Al =
212
212
  }),
213
213
  emits: /* @__PURE__ */ ye(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
214
214
  setup(t, { expose: e, emit: l }) {
215
- const i = Ge(t, "modelValue"), o = t, a = l, f = N(), c = N(), b = N();
215
+ const i = Ge(t, "modelValue"), o = t, a = l, f = S(), c = S(), v = S();
216
216
  e({
217
217
  instance: c,
218
- lastEditorData: b
219
- }), ee(i, (r) => {
220
- c.value && r !== b.value && c.value.data.set(r);
221
- }), ee(() => o.disabled, (r) => {
222
- r ? c.value.enableReadOnlyMode(ue) : c.value.disableReadOnlyMode(ue);
218
+ lastEditorData: v
219
+ }), ee(i, (u) => {
220
+ c.value && u !== v.value && c.value.data.set(u);
221
+ }), ee(() => o.disabled, (u) => {
222
+ u ? c.value.enableReadOnlyMode(de) : c.value.disableReadOnlyMode(de);
223
223
  });
224
224
  function s() {
225
- const r = window.CKEDITOR_VERSION;
226
- if (!r)
225
+ const u = window.CKEDITOR_VERSION;
226
+ if (!u)
227
227
  return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
228
- const [u] = r.split(".").map(Number);
229
- u >= 42 || r.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
228
+ const [r] = u.split(".").map(Number);
229
+ r >= 42 || u.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
230
230
  }
231
- function m(r) {
232
- const u = et((d) => {
231
+ function p(u) {
232
+ const r = et((d) => {
233
233
  if (o.disableTwoWayDataBinding)
234
234
  return;
235
- const y = b.value = r.data.get();
236
- a("update:modelValue", y, d, r), a("input", y, d, r);
235
+ const y = v.value = u.data.get();
236
+ a("update:modelValue", y, d, u), a("input", y, d, u);
237
237
  }, xl, { leading: !0 });
238
- r.model.document.on("change:data", u), r.editing.view.document.on("focus", (d) => {
239
- a("focus", d, r);
240
- }), r.editing.view.document.on("blur", (d) => {
241
- a("blur", d, r);
238
+ u.model.document.on("change:data", r), u.editing.view.document.on("focus", (d) => {
239
+ a("focus", d, u);
240
+ }), u.editing.view.document.on("blur", (d) => {
241
+ a("blur", d, u);
242
242
  });
243
243
  }
244
244
  return s(), Ae(() => {
245
- const r = Bl(
245
+ const u = Bl(
246
246
  Object.assign({}, o.config)
247
247
  );
248
- i.value && (r.initialData = i.value), o.editor.create(f.value, r).then((u) => {
249
- c.value = We(u), m(u), i.value !== r.initialData && u.data.set(i.value), o.disabled && u.enableReadOnlyMode(ue), a("ready", u);
250
- }).catch((u) => {
251
- console.error(u);
248
+ i.value && (u.initialData = i.value), o.editor.create(f.value, u).then((r) => {
249
+ c.value = We(r), p(r), i.value !== u.initialData && r.data.set(i.value), o.disabled && r.enableReadOnlyMode(de), a("ready", r);
250
+ }).catch((r) => {
251
+ console.error(r);
252
252
  });
253
253
  }), Se(() => {
254
254
  c.value && (c.value.destroy(), c.value = void 0), a("destroy");
255
- }), (r, u) => (g(), w(te(r.tagName), {
255
+ }), (u, r) => (h(), k(te(u.tagName), {
256
256
  ref_key: "element",
257
257
  ref: f
258
258
  }, null, 512));
@@ -276,9 +276,9 @@ const Sl = {
276
276
  install(t) {
277
277
  t.component("Ckeditor", Al);
278
278
  }
279
- }, K = { enabled: void 0 };
280
- function j(t, e) {
281
- const l = V({
279
+ }, z = { enabled: void 0 };
280
+ function H(t, e) {
281
+ const l = w({
282
282
  get() {
283
283
  return t.control ? t.control.value : t.modelValue;
284
284
  },
@@ -288,37 +288,37 @@ function j(t, e) {
288
288
  });
289
289
  if (t.control && !(t.control instanceof Ce.FieldBase))
290
290
  throw new Error("control prop is not a vue-form control instance");
291
- const i = V(() => t.control ? t.control.valid : !0), o = V(
291
+ const i = w(() => t.control ? t.control.valid : !0), o = w(
292
292
  () => t.control ? t.control.errors : (t.errors || []).map((d) => new at(d))
293
- ), a = V(() => o.value.length > 0 ? " " : void 0), f = V(() => t.control ? t.control.enabled : t.enabled !== !1), c = V(
293
+ ), a = w(() => o.value.length > 0 ? " " : void 0), f = w(() => t.control ? t.control.enabled : t.enabled !== !1), c = w(
294
294
  () => t.control ? t.control.visibility : t.visibility || Ce.DisplayMode.FULL
295
- ), b = V(() => t.label || ""), s = V(() => t.placeholder || ""), m = V(() => t.helpText || ""), r = V(() => t.hint || ""), u = V(() => t.cssClass || "");
295
+ ), v = w(() => t.label || ""), s = w(() => t.placeholder || ""), p = w(() => t.helpText || ""), u = w(() => t.hint || ""), r = w(() => t.cssClass || "");
296
296
  return {
297
297
  value: l,
298
298
  valid: i,
299
299
  enabled: f,
300
300
  errors: o,
301
301
  visibility: c,
302
- vuetifyBindings: V(() => {
302
+ vuetifyBindings: w(() => {
303
303
  var d;
304
304
  return {
305
305
  name: (d = t.control) == null ? void 0 : d.fieldName,
306
- class: u.value,
306
+ class: r.value,
307
307
  density: "default",
308
308
  variant: "underlined",
309
- label: b.value,
309
+ label: v.value,
310
310
  messages: a.value,
311
311
  // 'error-count': errors?.value.length || 0,
312
312
  readonly: !f.value,
313
313
  disabled: !f.value,
314
314
  placeholder: s.value,
315
315
  "persistent-placeholder": !tt(s.value),
316
- hint: r.value,
316
+ hint: u.value,
317
317
  persistentHint: !0,
318
318
  // we want persistent hint always
319
319
  hideDetails: "auto",
320
320
  // we want to hide the hint element when hint isn't there
321
- helpText: m.value
321
+ helpText: p.value
322
322
  };
323
323
  })
324
324
  };
@@ -333,38 +333,38 @@ const Dl = {
333
333
  message: {}
334
334
  },
335
335
  setup(t) {
336
- return (e, l) => e.message === " " ? (g(), E("div", Dl, [
337
- (g(!0), E(De, null, Ne(e.errors, (i, o) => {
336
+ return (e, l) => e.message === " " ? (h(), $("div", Dl, [
337
+ (h(!0), $(De, null, Ne(e.errors, (i, o) => {
338
338
  var a;
339
- return g(), E("div", {
339
+ return h(), $("div", {
340
340
  key: o,
341
341
  class: le({ "first-error": o === 0, "last-error": o === e.errors.length - 1 })
342
342
  }, [
343
- i.componentName === "template" ? (g(), E("div", Nl, X(i.componentBody), 1)) : i.componentName === "vue-markdown" ? (g(), w(n(st), {
343
+ i.componentName === "template" ? (h(), $("div", Nl, q(i.componentBody), 1)) : i.componentName === "vue-markdown" ? (h(), k(n(st), {
344
344
  key: 1,
345
345
  source: (a = i.componentBindings) == null ? void 0 : a.source
346
- }, null, 8, ["source"])) : (g(), w(te(i.componentName), L({
346
+ }, null, 8, ["source"])) : (h(), k(te(i.componentName), M({
347
347
  key: 2,
348
348
  ref_for: !0
349
349
  }, i.componentBindings), {
350
- default: h(() => [
351
- $e(X(i.componentBody), 1)
350
+ default: _(() => [
351
+ $e(q(i.componentBody), 1)
352
352
  ]),
353
353
  _: 2
354
354
  }, 1040))
355
355
  ], 2);
356
356
  }), 128))
357
- ])) : (g(), E("span", $l, X(e.message), 1));
357
+ ])) : (h(), $("span", $l, q(e.message), 1));
358
358
  }
359
359
  }), ne = (t, e) => {
360
360
  const l = t.__vccOpts || t;
361
361
  for (const [i, o] of e)
362
362
  l[i] = o;
363
363
  return l;
364
- }, W = /* @__PURE__ */ ne(El, [["__scopeId", "data-v-ff7a8b63"]]), Ul = {
364
+ }, G = /* @__PURE__ */ ne(El, [["__scopeId", "data-v-ff7a8b63"]]), Ul = {
365
365
  key: 0,
366
366
  for: "#following-v-input"
367
- }, ve = /* @__PURE__ */ U({
367
+ }, be = /* @__PURE__ */ U({
368
368
  __name: "input-base",
369
369
  props: {
370
370
  control: {},
@@ -381,43 +381,43 @@ const Dl = {
381
381
  },
382
382
  emits: ["update:modelValue", "click:clear"],
383
383
  setup(t, { emit: e }) {
384
- const l = t, i = e, { errors: o, value: a, visibility: f, vuetifyBindings: c } = j(l, i), b = V(() => n(l.clearable) && n(a));
385
- return (s, m) => {
386
- const r = I("v-icon"), u = I("v-input");
387
- return n(f) !== n(H).SUPPRESS ? (g(), E("div", {
384
+ const l = t, i = e, { errors: o, value: a, visibility: f, vuetifyBindings: c } = H(l, i), v = w(() => n(l.clearable) && n(a));
385
+ return (s, p) => {
386
+ const u = I("v-icon"), r = I("v-input");
387
+ return n(f) !== n(O).SUPPRESS ? (h(), $("div", {
388
388
  key: 0,
389
389
  class: le([
390
390
  s.cssClass,
391
391
  {
392
- "d-none": n(f) === n(H).HIDDEN,
393
- invisible: n(f) === n(H).INVISIBLE
392
+ "d-none": n(f) === n(O).HIDDEN,
393
+ invisible: n(f) === n(O).INVISIBLE
394
394
  }
395
395
  ])
396
396
  }, [
397
- n(c).label ? (g(), E("label", Ul, X(n(c).label), 1)) : $("", !0),
398
- x(u, {
397
+ n(c).label ? (h(), $("label", Ul, q(n(c).label), 1)) : E("", !0),
398
+ T(r, {
399
399
  hint: n(c).hint,
400
400
  "persistent-hint": n(c).persistentHint,
401
401
  "hide-details": n(c).hideDetails
402
402
  }, qe({
403
- message: h(({ message: d }) => [
404
- x(W, {
403
+ message: _(({ message: d }) => [
404
+ T(G, {
405
405
  message: d,
406
406
  errors: n(o)
407
407
  }, null, 8, ["message", "errors"])
408
408
  ]),
409
- default: h(() => [
409
+ default: _(() => [
410
410
  Ze(s.$slots, "default")
411
411
  ]),
412
412
  _: 2
413
413
  }, [
414
- b.value ? {
414
+ v.value ? {
415
415
  name: "append",
416
- fn: h(() => [
417
- x(r, {
418
- onClick: m[0] || (m[0] = (d) => i("click:clear"))
416
+ fn: _(() => [
417
+ T(u, {
418
+ onClick: p[0] || (p[0] = (d) => i("click:clear"))
419
419
  }, {
420
- default: h(() => m[1] || (m[1] = [
420
+ default: _(() => p[1] || (p[1] = [
421
421
  $e("mdi-close-circle")
422
422
  ])),
423
423
  _: 1
@@ -426,11 +426,11 @@ const Dl = {
426
426
  key: "0"
427
427
  } : void 0
428
428
  ]), 1032, ["hint", "persistent-hint", "hide-details"])
429
- ], 2)) : $("", !0);
429
+ ], 2)) : E("", !0);
430
430
  };
431
431
  }
432
432
  });
433
- var R = /* @__PURE__ */ ((t) => (t[t.BUTTON = 0] = "BUTTON", t[t.TEXT = 1] = "TEXT", t))(R || {});
433
+ var F = /* @__PURE__ */ ((t) => (t[t.BUTTON = 0] = "BUTTON", t[t.TEXT = 1] = "TEXT", t))(F || {});
434
434
  const Ie = 0;
435
435
  ((t) => {
436
436
  function e(o) {
@@ -447,8 +447,8 @@ const Ie = 0;
447
447
  return Object.values(t).includes(a);
448
448
  }
449
449
  t.isDefined = i;
450
- })(R || (R = {}));
451
- Object.freeze(R);
450
+ })(F || (F = {}));
451
+ Object.freeze(F);
452
452
  const Be = ["xs", "sm", "md", "lg", "xl"];
453
453
  class Fl {
454
454
  constructor(e) {
@@ -474,7 +474,7 @@ class Ll extends Fl {
474
474
  cleanBreakpoint(e, l = !1) {
475
475
  if ((!e || !lt(e)) && !l) return null;
476
476
  const i = {};
477
- return l && (i.renderAs = R.BUTTON, i.showLabel = !0, i.showIcon = !0), e && (e.renderAs != null && (i.renderAs = R.fromAny(e.renderAs)), de(e.label) && (i.label = e.label), Ve(e.showLabel) && (i.showLabel = e.showLabel), Ve(e.showIcon) && (i.showIcon = e.showIcon)), Object.keys(i).length ? i : null;
477
+ return l && (i.renderAs = F.BUTTON, i.showLabel = !0, i.showIcon = !0), e && (e.renderAs != null && (i.renderAs = F.fromAny(e.renderAs)), me(e.label) && (i.label = e.label), Ve(e.showLabel) && (i.showLabel = e.showLabel), Ve(e.showIcon) && (i.showIcon = e.showIcon)), Object.keys(i).length ? i : null;
478
478
  }
479
479
  }
480
480
  function xe(t) {
@@ -486,8 +486,8 @@ class ae {
486
486
  Y(this, "displayStyle");
487
487
  Y(this, "formAction");
488
488
  if (e.name == null) throw new Error(`Action name must not be empty ${e}`);
489
- const i = !de(e.label) || e.label.length === 0 ? void 0 : e.label, o = !de(e.icon) || e.icon.length === 0 ? void 0 : e.icon;
490
- this.name = e.name, this.displayStyle = new Ll(D({ label: i }, e.displayStyle)), this.formAction = l, this.formAction.icon = o, this.formAction.label = i;
489
+ const i = !me(e.label) || e.label.length === 0 ? void 0 : e.label, o = !me(e.icon) || e.icon.length === 0 ? void 0 : e.icon;
490
+ this.name = e.name, this.displayStyle = new Ll(N({ label: i }, e.displayStyle)), this.formAction = l, this.formAction.icon = o, this.formAction.label = i;
491
491
  }
492
492
  get label() {
493
493
  var e;
@@ -509,10 +509,10 @@ class ae {
509
509
  static makeFormAction(e) {
510
510
  let l;
511
511
  if (e instanceof it)
512
- l = re.create().registerAction(e);
512
+ l = ue.create().registerAction(e);
513
513
  else if (e === void 0)
514
- l = re.create();
515
- else if (e instanceof re)
514
+ l = ue.create();
515
+ else if (e instanceof ue)
516
516
  l = e;
517
517
  else
518
518
  throw new Error("actionOrExecuteHandler is not of any of supported types");
@@ -520,45 +520,45 @@ class ae {
520
520
  }
521
521
  static closeAction(e, l) {
522
522
  return new ae(
523
- D({
523
+ N({
524
524
  name: "close",
525
525
  label: "Close",
526
526
  // TODO: needs translation
527
527
  icon: "close-outline",
528
- displayStyle: { renderAs: R.BUTTON, showLabel: !0, showIcon: !0 }
528
+ displayStyle: { renderAs: F.BUTTON, showLabel: !0, showIcon: !0 }
529
529
  }, e),
530
530
  this.makeFormAction(l)
531
531
  );
532
532
  }
533
533
  static yesAction(e, l) {
534
534
  return new ae(
535
- D({
535
+ N({
536
536
  name: "yes",
537
537
  label: "Yes",
538
538
  // TODO: needs translation
539
539
  icon: "thumbs-up-outline",
540
- displayStyle: { renderAs: R.BUTTON, showLabel: !0, showIcon: !0 }
540
+ displayStyle: { renderAs: F.BUTTON, showLabel: !0, showIcon: !0 }
541
541
  }, e),
542
542
  this.makeFormAction(l)
543
543
  );
544
544
  }
545
545
  static noAction(e, l) {
546
546
  return new ae(
547
- D({
547
+ N({
548
548
  name: "no",
549
549
  label: "No",
550
550
  // TODO: needs translation
551
551
  icon: "thumbs-down-outline",
552
- displayStyle: { renderAs: R.BUTTON, showLabel: !0, showIcon: !0 }
552
+ displayStyle: { renderAs: F.BUTTON, showLabel: !0, showIcon: !0 }
553
553
  }, e),
554
554
  this.makeFormAction(l)
555
555
  );
556
556
  }
557
557
  }
558
- const Rl = {
558
+ const Pl = {
559
559
  key: 1,
560
560
  style: { width: ".5rem" }
561
- }, Pl = { key: 2 }, Ol = /* @__PURE__ */ U({
561
+ }, Rl = { key: 2 }, Ol = /* @__PURE__ */ U({
562
562
  __name: "df-actions",
563
563
  props: {
564
564
  actions: {},
@@ -566,62 +566,62 @@ const Rl = {
566
566
  showAsGroup: { default: "no" }
567
567
  },
568
568
  setup(t) {
569
- const e = t, l = G(e.actions) ? e.actions : N(e.actions), i = ot(), o = V(() => {
569
+ const e = t, l = K(e.actions) ? e.actions : S(e.actions), i = ot(), o = w(() => {
570
570
  const s = {};
571
571
  s["%breakpoint%"] = xe(i);
572
- for (const m of l.value)
573
- s[m.name] = m.displayStyle.getOptionsForBreakpoint(xe(i));
572
+ for (const p of l.value)
573
+ s[p.name] = p.displayStyle.getOptionsForBreakpoint(xe(i));
574
574
  return s;
575
575
  });
576
576
  function a(s) {
577
- var m;
578
- return (m = o.value[s.name].showIcon && s.iconAvailable) != null ? m : !0;
577
+ var p;
578
+ return (p = o.value[s.name].showIcon && s.iconAvailable) != null ? p : !0;
579
579
  }
580
580
  function f(s) {
581
581
  return o.value[s.name].showLabel && s.labelAvailable ? !0 : !a(s);
582
582
  }
583
583
  function c(s) {
584
- var m;
585
- return (m = o.value[s.name].renderAs) != null ? m : R.BUTTON;
584
+ var p;
585
+ return (p = o.value[s.name].renderAs) != null ? p : F.BUTTON;
586
586
  }
587
- function b(s) {
588
- var m;
589
- return s.labelAvailable ? (m = s.formAction.label) != null ? m : "" : s.name;
587
+ function v(s) {
588
+ var p;
589
+ return s.labelAvailable ? (p = s.formAction.label) != null ? p : "" : s.name;
590
590
  }
591
- return (s, m) => {
592
- const r = I("v-btn");
593
- return n(l).length > 0 ? (g(), E("div", {
591
+ return (s, p) => {
592
+ const u = I("v-btn");
593
+ return n(l).length > 0 ? (h(), $("div", {
594
594
  key: 0,
595
595
  class: le(["text-end", {
596
596
  "button-group": s.showAsGroup === "grouped" || s.showAsGroup === "grouped-no-borders",
597
597
  "with-border": s.showAsGroup === "grouped"
598
598
  }])
599
599
  }, [
600
- (g(!0), E(De, null, Ne(n(l), (u, d) => (g(), w(r, {
600
+ (h(!0), $(De, null, Ne(n(l), (r, d) => (h(), k(u, {
601
601
  key: d,
602
- variant: c(u) === n(R).BUTTON ? "tonal" : "text",
602
+ variant: c(r) === n(F).BUTTON ? "tonal" : "text",
603
603
  elevation: 0,
604
604
  class: le(d !== -1 ? "" : "ms-3"),
605
605
  size: s.buttonSize,
606
- onClick: Ye((y) => u.formAction.execute(y), ["stop"])
606
+ onClick: Ye((y) => r.formAction.execute(y), ["stop"])
607
607
  }, {
608
- default: h(() => [
609
- a(u) ? (g(), w(n(me), {
608
+ default: _(() => [
609
+ a(r) ? (h(), k(n(pe), {
610
610
  key: 0,
611
611
  class: "action-icon",
612
- name: u.formAction.icon
613
- }, null, 8, ["name"])) : $("", !0),
614
- a(u) && f(u) ? (g(), E("span", Rl)) : $("", !0),
615
- f(u) ? (g(), E("span", Pl, X(b(u)), 1)) : $("", !0)
612
+ name: r.formAction.icon
613
+ }, null, 8, ["name"])) : E("", !0),
614
+ a(r) && f(r) ? (h(), $("span", Pl)) : E("", !0),
615
+ f(r) ? (h(), $("span", Rl, q(v(r)), 1)) : E("", !0)
616
616
  ]),
617
617
  _: 2
618
618
  }, 1032, ["variant", "class", "size", "onClick"]))), 128))
619
- ], 2)) : $("", !0);
619
+ ], 2)) : E("", !0);
620
620
  };
621
621
  }
622
622
  }), Ml = /* @__PURE__ */ ne(Ol, [["__scopeId", "data-v-d7ba6fac"]]), Hl = /* @__PURE__ */ U({
623
623
  __name: "df-checkbox",
624
- props: /* @__PURE__ */ z({
624
+ props: /* @__PURE__ */ j({
625
625
  allowNull: { type: Boolean },
626
626
  control: {},
627
627
  modelValue: {},
@@ -634,10 +634,10 @@ const Rl = {
634
634
  visibility: {},
635
635
  cssClass: {},
636
636
  clearable: { type: Boolean }
637
- }, M(D({}, K), { allowNull: !1 })),
637
+ }, R(N({}, z), { allowNull: !1 })),
638
638
  emits: ["update:modelValue", "click:clear"],
639
639
  setup(t, { emit: e }) {
640
- const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } = j(l, i), c = V(() => l.allowNull && a.value == null), b = V({
640
+ const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } = H(l, i), c = w(() => l.allowNull && a.value == null), v = w({
641
641
  get() {
642
642
  return a.value;
643
643
  },
@@ -645,14 +645,14 @@ const Rl = {
645
645
  }
646
646
  });
647
647
  function s() {
648
- const m = nt(a.value);
649
- m === !0 ? a.value = l.allowNull ? null : !1 : a.value = m === !1;
648
+ const p = nt(a.value);
649
+ p === !0 ? a.value = l.allowNull ? null : !1 : a.value = p === !1;
650
650
  }
651
- return (m, r) => {
652
- const u = I("v-checkbox");
653
- return g(), w(u, L({
654
- modelValue: b.value,
655
- "onUpdate:modelValue": r[0] || (r[0] = (d) => b.value = d)
651
+ return (p, u) => {
652
+ const r = I("v-checkbox");
653
+ return h(), k(r, M({
654
+ modelValue: v.value,
655
+ "onUpdate:modelValue": u[0] || (u[0] = (d) => v.value = d)
656
656
  }, n(f), {
657
657
  density: "compact",
658
658
  indeterminate: c.value,
@@ -660,8 +660,8 @@ const Rl = {
660
660
  "true-value": !0,
661
661
  onChange: s
662
662
  }), {
663
- message: h(({ message: d }) => [
664
- x(n(W), {
663
+ message: _(({ message: d }) => [
664
+ T(n(G), {
665
665
  message: d,
666
666
  errors: n(o)
667
667
  }, null, 8, ["message", "errors"])
@@ -672,7 +672,7 @@ const Rl = {
672
672
  }
673
673
  }), jl = /* @__PURE__ */ U({
674
674
  __name: "df-color",
675
- props: /* @__PURE__ */ z({
675
+ props: /* @__PURE__ */ j({
676
676
  allowNull: { type: Boolean },
677
677
  control: {},
678
678
  modelValue: {},
@@ -685,58 +685,57 @@ const Rl = {
685
685
  visibility: {},
686
686
  cssClass: {},
687
687
  clearable: { type: Boolean }
688
- }, M(D({}, K), { allowNull: !1 })),
688
+ }, R(N({}, z), { allowNull: !1 })),
689
689
  emits: ["update:modelValue", "click:clear"],
690
690
  setup(t, { emit: e }) {
691
- const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } = j(l, i), c = N(!1), b = V(() => [
692
- (s) => !s && l.allowNull || /^#?([a-fA-F0-9]{6}[a-fA-F0-9]{0,2})$/.test(s) ? !0 : "Not a valid hex string."
691
+ const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } = H(l, i), c = S(!1), v = w(() => [
692
+ (s) => l.control || !s && l.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(s) ? !0 : "Not a valid hex string."
693
693
  ]);
694
- return (s, m) => {
695
- const r = I("v-text-field"), u = I("v-color-picker"), d = I("v-menu");
696
- return g(), w(d, {
697
- modelValue: c.value,
698
- "onUpdate:modelValue": m[2] || (m[2] = (y) => c.value = y),
699
- location: "top start",
700
- origin: "bottom start",
701
- "close-on-content-click": !1
702
- }, {
703
- activator: h(({ props: y }) => [
704
- x(r, L({
705
- modelValue: n(a),
706
- "onUpdate:modelValue": m[0] || (m[0] = (A) => G(a) ? a.value = A : null)
707
- }, D(D({}, n(f)), y), {
708
- clearable: s.allowNull,
709
- type: "text",
710
- rules: b.value
711
- }), {
712
- message: h(({ message: A }) => [
713
- x(n(W), {
714
- message: A,
715
- errors: n(o)
716
- }, null, 8, ["message", "errors"])
717
- ]),
718
- "prepend-inner": h(() => [
719
- q("div", {
720
- style: fe([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: n(a) }])
721
- }, null, 4)
722
- ]),
723
- _: 2
724
- }, 1040, ["modelValue", "clearable", "rules"])
694
+ return (s, p) => {
695
+ const u = I("v-color-picker"), r = I("v-menu"), d = I("v-text-field");
696
+ return h(), k(d, M({
697
+ modelValue: n(a),
698
+ "onUpdate:modelValue": p[2] || (p[2] = (y) => K(a) ? a.value = y : null)
699
+ }, n(f), {
700
+ clearable: s.allowNull,
701
+ type: "text",
702
+ rules: v.value
703
+ }), {
704
+ message: _(({ message: y }) => [
705
+ T(n(G), {
706
+ message: y,
707
+ errors: n(o)
708
+ }, null, 8, ["message", "errors"])
725
709
  ]),
726
- default: h(() => [
727
- x(u, {
728
- modelValue: n(a),
729
- "onUpdate:modelValue": m[1] || (m[1] = (y) => G(a) ? a.value = y : null),
730
- mode: "hexa"
731
- }, null, 8, ["modelValue"])
710
+ "prepend-inner": _(() => [
711
+ Z("div", {
712
+ style: ve([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: n(a) }])
713
+ }, null, 4)
714
+ ]),
715
+ default: _(() => [
716
+ T(r, {
717
+ modelValue: c.value,
718
+ "onUpdate:modelValue": p[1] || (p[1] = (y) => c.value = y),
719
+ "close-on-content-click": !1,
720
+ activator: "parent"
721
+ }, {
722
+ default: _(() => [
723
+ T(u, {
724
+ modelValue: n(a),
725
+ "onUpdate:modelValue": p[0] || (p[0] = (y) => K(a) ? a.value = y : null),
726
+ mode: "hexa"
727
+ }, null, 8, ["modelValue"])
728
+ ]),
729
+ _: 1
730
+ }, 8, ["modelValue"])
732
731
  ]),
733
732
  _: 1
734
- }, 8, ["modelValue"]);
733
+ }, 16, ["modelValue", "clearable", "rules"]);
735
734
  };
736
735
  }
737
736
  }), zl = { class: "d-flex w-100" }, Kl = /* @__PURE__ */ U({
738
737
  __name: "df-datetime",
739
- props: /* @__PURE__ */ z({
738
+ props: /* @__PURE__ */ j({
740
739
  inputType: {},
741
740
  displayFormatDate: {},
742
741
  displayFormatTime: {},
@@ -751,182 +750,200 @@ const Rl = {
751
750
  visibility: {},
752
751
  cssClass: {},
753
752
  clearable: { type: Boolean }
754
- }, M(D({}, K), {
753
+ }, R(N({}, z), {
755
754
  inputType: "datetime",
756
755
  displayFormatDate: "P",
757
756
  displayFormatTime: "p"
758
757
  })),
759
758
  emits: ["update:modelValue", "click:clear"],
760
759
  setup(t, { emit: e }) {
761
- const l = t, i = e, { value: o, vuetifyBindings: a } = j(l, i), { inputType: f, displayFormatDate: c, displayFormatTime: b } = ie(l), s = N(""), m = V({
760
+ const l = t, i = e, { value: o, vuetifyBindings: a } = H(l, i), { inputType: f, displayFormatDate: c, displayFormatTime: v } = ie(l), s = S(""), p = w({
762
761
  get() {
763
- return n(s) !== "";
762
+ return n(s) === "date";
764
763
  },
765
- set(v) {
766
- v ? s.value = "date" : s.value = "";
764
+ set(g) {
765
+ s.value = g ? "date" : "";
767
766
  }
768
- }), r = (v) => `${Q(v, "yyyy-MM-dd")}T${Q(v, "HH:mm")}:00`, u = N(null);
769
- function d(v, p) {
770
- if (v == null)
771
- u.value = null;
772
- else if (p === -1)
767
+ }), u = w({
768
+ get() {
769
+ return n(s) === "time";
770
+ },
771
+ set(g) {
772
+ s.value = g ? "time" : "";
773
+ }
774
+ }), r = (g) => `${Q(g, "yyyy-MM-dd")}T${Q(g, "HH:mm")}:00`, d = S(null);
775
+ function y(g, m) {
776
+ if (g == null)
777
+ d.value = null;
778
+ else if (m === -1)
773
779
  if (n(f) === "time")
774
- u.value = r(/* @__PURE__ */ new Date()), d(`T${v}`, 1);
780
+ d.value = r(/* @__PURE__ */ new Date()), y(`T${g}`, 1);
775
781
  else {
776
- const T = r(new Date(v));
777
- d(T, 0), d(T, 1);
782
+ const C = r(new Date(g));
783
+ y(C, 0), y(C, 1);
778
784
  }
779
785
  else {
780
- u.value == null && (u.value = r(/* @__PURE__ */ new Date()));
781
- const T = u.value.split(/[TZ]/g), F = v.split(/[TZ]/g);
782
- T[p] = F[p], u.value = r(/* @__PURE__ */ new Date(`${T[0]}T${T[1].split(".")[0]}`)), n(f) === "date" ? o.value = T[0] : n(f) === "time" ? o.value = T[1] : o.value = n(u) + Q(/* @__PURE__ */ new Date(), "XXX");
786
+ d.value == null && (d.value = r(/* @__PURE__ */ new Date()));
787
+ const C = d.value.split(/[TZ]/g), V = g.split(/[TZ]/g);
788
+ C[m] = V[m], d.value = r(/* @__PURE__ */ new Date(`${C[0]}T${C[1].split(".")[0]}`)), n(f) === "date" ? o.value = C[0] : n(f) === "time" ? o.value = C[1] : o.value = n(d) + Q(/* @__PURE__ */ new Date(), "XXX");
783
789
  }
784
790
  }
785
- ee(o, (v) => d(v, -1), { immediate: !0 });
786
- const y = V({
791
+ ee(o, (g) => y(g, -1), { immediate: !0 });
792
+ const D = w({
787
793
  get() {
788
- const v = n(u);
789
- if (v == null) return null;
790
- const p = new Date(v);
791
- return Number.isNaN(p.getTime()) ? null : p;
794
+ const g = n(d);
795
+ if (g == null) return null;
796
+ const m = new Date(g);
797
+ return Number.isNaN(m.getTime()) ? null : m;
792
798
  },
793
- set(v) {
794
- d(r(v), 0);
799
+ set(g) {
800
+ y(r(g), 0);
795
801
  }
796
- }), A = V({
802
+ }), L = w({
797
803
  get() {
798
- const v = n(u);
799
- return v == null ? "" : v.split(/[TZ]/g)[1].split(".")[0];
804
+ const g = n(d);
805
+ return g == null ? "" : g.split(/[TZ]/g)[1].split(".")[0];
800
806
  },
801
- set(v) {
802
- d(`T${v}`, 1);
807
+ set(g) {
808
+ y(`T${g}`, 1);
803
809
  }
804
- }), P = V({
810
+ }), A = w({
805
811
  get() {
806
- const v = n(y);
807
- return v == null ? "" : Q(v, n(c));
812
+ const g = n(D);
813
+ return g == null ? "" : Q(g, n(c));
808
814
  },
809
- set(v) {
815
+ set(g) {
810
816
  try {
811
- const p = rt(v, n(c), /* @__PURE__ */ new Date());
812
- d(r(p), 0);
813
- } catch (p) {
814
- console.error(p);
817
+ const m = rt(g, n(c), /* @__PURE__ */ new Date());
818
+ y(r(m), 0);
819
+ } catch (m) {
820
+ console.error(m);
815
821
  }
816
822
  }
817
- }), S = V({
823
+ }), B = w({
818
824
  get() {
819
- const v = n(y);
820
- return v == null ? "" : Q(v, n(b));
825
+ const g = n(D);
826
+ return g == null ? "" : Q(g, n(v));
821
827
  },
822
- set(v) {
823
- const p = v.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
824
- if (p == null) return;
825
- let T = we(p[1]);
826
- const F = we(p[2]);
827
- ke(T) || ke(F) || (p[3] && p[3].toLowerCase() === "pm" && T < 13 && (T += 12), d(`T${T.toString().padStart(2, "0")}:${F.toString().padStart(2, "0")}:00`, 1));
828
+ set(g) {
829
+ const m = g.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
830
+ if (m == null) return;
831
+ let C = we(m[1]);
832
+ const V = we(m[2]);
833
+ ke(C) || ke(V) || (m[3] && m[3].toLowerCase() === "pm" && C < 13 && (C += 12), y(`T${C.toString().padStart(2, "0")}:${V.toString().padStart(2, "0")}:00`, 1));
828
834
  }
829
835
  });
830
- return (v, p) => {
831
- const T = I("v-text-field"), F = I("v-date-picker"), k = I("v-confirm-edit"), B = I("v-time-picker"), Z = I("v-menu");
832
- return g(), w(n(ve), L(l, {
836
+ return (g, m) => {
837
+ const C = I("v-date-picker"), V = I("v-confirm-edit"), x = I("v-menu"), W = I("v-text-field"), se = I("v-time-picker");
838
+ return h(), k(n(be), M(l, {
833
839
  clearable: "",
834
- "onClick:clear": p[13] || (p[13] = (C) => o.value = null)
840
+ "onClick:clear": m[14] || (m[14] = (b) => o.value = null)
835
841
  }), {
836
- default: h(() => [
837
- x(Z, {
838
- modelValue: m.value,
839
- "onUpdate:modelValue": p[12] || (p[12] = (C) => m.value = C),
840
- location: "top start",
841
- origin: `bottom ${n(f) === "datetime" ? "center" : "start"}`,
842
- "close-on-content-click": !1
843
- }, {
844
- activator: h(({ props: C }) => [
845
- q("div", zl, [
846
- ["date", "datetime"].includes(n(f)) ? (g(), w(T, L({
847
- key: 0,
848
- modelValue: P.value,
849
- "onUpdate:modelValue": p[0] || (p[0] = (_) => P.value = _),
850
- style: { "flex-grow": "4" },
851
- density: n(a).density,
852
- variant: n(a).variant,
853
- clearable: !1,
854
- "hide-details": !0,
855
- readonly: n(a).readonly,
856
- disabled: n(a).disabled,
857
- name: `${n(a).name}-date`
858
- }, C, {
859
- onClick: p[1] || (p[1] = (_) => s.value = "date"),
860
- onKeydown: p[2] || (p[2] = _e((_) => s.value = "date", ["space"]))
861
- }), null, 16, ["modelValue", "density", "variant", "readonly", "disabled", "name"])) : $("", !0),
862
- ["time", "datetime"].includes(n(f)) ? (g(), w(T, L({
863
- key: 1,
864
- modelValue: S.value,
865
- "onUpdate:modelValue": p[3] || (p[3] = (_) => S.value = _),
866
- style: { "flex-grow": "3" },
867
- density: n(a).density,
868
- variant: n(a).variant,
869
- clearable: !1,
870
- "hide-details": !0,
871
- readonly: n(a).readonly,
872
- disabled: n(a).disabled,
873
- name: `${n(a).name}-time`
874
- }, C, {
875
- onClick: p[4] || (p[4] = (_) => s.value = "time"),
876
- onKeydown: p[5] || (p[5] = _e((_) => s.value = "time", ["space"]))
877
- }), null, 16, ["modelValue", "density", "variant", "readonly", "disabled", "name"])) : $("", !0)
878
- ])
879
- ]),
880
- default: h(() => [
881
- s.value === "date" ? (g(), w(k, {
882
- key: 0,
883
- modelValue: y.value,
884
- "onUpdate:modelValue": p[6] || (p[6] = (C) => y.value = C),
885
- onCancel: p[7] || (p[7] = (C) => s.value = ""),
886
- onSave: p[8] || (p[8] = (C) => s.value = "")
887
- }, {
888
- default: h(({ model: C, actions: _ }) => [
889
- x(F, {
890
- modelValue: C.value,
891
- "onUpdate:modelValue": (O) => C.value = O,
892
- "hide-header": !0,
893
- "first-day-of-week": 1,
894
- "show-adjacent-months": !0,
895
- "show-week": !0
896
- }, {
897
- actions: h(() => [
898
- (g(), w(te(_)))
899
- ]),
900
- _: 2
901
- }, 1032, ["modelValue", "onUpdate:modelValue"])
902
- ]),
903
- _: 1
904
- }, 8, ["modelValue"])) : $("", !0),
905
- s.value === "time" ? (g(), w(k, {
906
- key: 1,
907
- modelValue: A.value,
908
- "onUpdate:modelValue": p[9] || (p[9] = (C) => A.value = C),
909
- onCancel: p[10] || (p[10] = (C) => s.value = ""),
910
- onSave: p[11] || (p[11] = (C) => s.value = "")
911
- }, {
912
- default: h(({ model: C, actions: _ }) => [
913
- x(B, {
914
- modelValue: C.value,
915
- "onUpdate:modelValue": (O) => C.value = O,
916
- "hide-header": !0,
917
- format: "24hr"
918
- }, {
919
- actions: h(() => [
920
- (g(), w(te(_)))
921
- ]),
922
- _: 2
923
- }, 1032, ["modelValue", "onUpdate:modelValue"])
924
- ]),
925
- _: 1
926
- }, 8, ["modelValue"])) : $("", !0)
927
- ]),
928
- _: 1
929
- }, 8, ["modelValue", "origin"])
842
+ default: _(() => [
843
+ Z("div", zl, [
844
+ ["date", "datetime"].includes(n(f)) ? (h(), k(W, {
845
+ key: 0,
846
+ modelValue: A.value,
847
+ "onUpdate:modelValue": m[4] || (m[4] = (b) => A.value = b),
848
+ style: { "flex-grow": "4" },
849
+ density: n(a).density,
850
+ variant: n(a).variant,
851
+ clearable: !1,
852
+ "hide-details": !0,
853
+ readonly: n(a).readonly,
854
+ disabled: n(a).disabled,
855
+ name: `${n(a).name}-date`,
856
+ onClick: m[5] || (m[5] = (b) => s.value = "date"),
857
+ onKeydown: m[6] || (m[6] = _e((b) => s.value = "date", ["space"]))
858
+ }, {
859
+ default: _(() => [
860
+ T(x, {
861
+ modelValue: p.value,
862
+ "onUpdate:modelValue": m[3] || (m[3] = (b) => p.value = b),
863
+ "close-on-content-click": !1,
864
+ activator: "parent"
865
+ }, {
866
+ default: _(() => [
867
+ T(V, {
868
+ modelValue: D.value,
869
+ "onUpdate:modelValue": m[0] || (m[0] = (b) => D.value = b),
870
+ onCancel: m[1] || (m[1] = (b) => s.value = ""),
871
+ onSave: m[2] || (m[2] = (b) => s.value = "")
872
+ }, {
873
+ default: _(({ model: b, actions: P }) => [
874
+ T(C, {
875
+ modelValue: b.value,
876
+ "onUpdate:modelValue": (X) => b.value = X,
877
+ "hide-header": !0,
878
+ "first-day-of-week": 1,
879
+ "show-adjacent-months": !0,
880
+ "show-week": !0
881
+ }, {
882
+ actions: _(() => [
883
+ (h(), k(te(P)))
884
+ ]),
885
+ _: 2
886
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
887
+ ]),
888
+ _: 1
889
+ }, 8, ["modelValue"])
890
+ ]),
891
+ _: 1
892
+ }, 8, ["modelValue"])
893
+ ]),
894
+ _: 1
895
+ }, 8, ["modelValue", "density", "variant", "readonly", "disabled", "name"])) : E("", !0),
896
+ ["time", "datetime"].includes(n(f)) ? (h(), k(W, {
897
+ key: 1,
898
+ modelValue: B.value,
899
+ "onUpdate:modelValue": m[11] || (m[11] = (b) => B.value = b),
900
+ style: { "flex-grow": "3" },
901
+ density: n(a).density,
902
+ variant: n(a).variant,
903
+ clearable: !1,
904
+ "hide-details": !0,
905
+ readonly: n(a).readonly,
906
+ disabled: n(a).disabled,
907
+ name: `${n(a).name}-time`,
908
+ onClick: m[12] || (m[12] = (b) => s.value = "time"),
909
+ onKeydown: m[13] || (m[13] = _e((b) => s.value = "time", ["space"]))
910
+ }, {
911
+ default: _(() => [
912
+ T(x, {
913
+ modelValue: u.value,
914
+ "onUpdate:modelValue": m[10] || (m[10] = (b) => u.value = b),
915
+ "close-on-content-click": !1,
916
+ activator: "parent"
917
+ }, {
918
+ default: _(() => [
919
+ T(V, {
920
+ modelValue: L.value,
921
+ "onUpdate:modelValue": m[7] || (m[7] = (b) => L.value = b),
922
+ onCancel: m[8] || (m[8] = (b) => s.value = ""),
923
+ onSave: m[9] || (m[9] = (b) => s.value = "")
924
+ }, {
925
+ default: _(({ model: b, actions: P }) => [
926
+ T(se, {
927
+ modelValue: b.value,
928
+ "onUpdate:modelValue": (X) => b.value = X,
929
+ "hide-header": !0,
930
+ format: "24hr"
931
+ }, {
932
+ actions: _(() => [
933
+ (h(), k(te(P)))
934
+ ]),
935
+ _: 2
936
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
937
+ ]),
938
+ _: 1
939
+ }, 8, ["modelValue"])
940
+ ]),
941
+ _: 1
942
+ }, 8, ["modelValue"])
943
+ ]),
944
+ _: 1
945
+ }, 8, ["modelValue", "density", "variant", "readonly", "disabled", "name"])) : E("", !0)
946
+ ])
930
947
  ]),
931
948
  _: 1
932
949
  }, 16);
@@ -934,7 +951,7 @@ const Rl = {
934
951
  }
935
952
  }), Gl = { style: { position: "relative", width: "100%" } }, Wl = /* @__PURE__ */ U({
936
953
  __name: "df-file",
937
- props: /* @__PURE__ */ z({
954
+ props: /* @__PURE__ */ j({
938
955
  comms: {},
939
956
  control: {},
940
957
  modelValue: {},
@@ -947,66 +964,66 @@ const Rl = {
947
964
  visibility: {},
948
965
  cssClass: {},
949
966
  clearable: { type: Boolean }
950
- }, K),
967
+ }, z),
951
968
  emits: ["update:modelValue", "click:clear"],
952
969
  setup(t, { emit: e }) {
953
- const l = t, i = e, { value: o, vuetifyBindings: a } = j(l, i), f = N(null), c = N(null), b = N(0), s = N(Math.round(Math.random() * 1e3)), m = N(), r = V(() => !m.value && o.value ? l.modelValue : "");
954
- function u() {
970
+ const l = t, i = e, { value: o, vuetifyBindings: a } = H(l, i), f = S(null), c = S(null), v = S(0), s = S(Math.round(Math.random() * 1e3)), p = S(), u = w(() => !p.value && o.value ? l.modelValue : "");
971
+ function r() {
955
972
  f.value && window.clearInterval(f.value);
956
973
  }
957
974
  function d() {
958
- u(), f.value = window.setInterval(() => {
975
+ r(), f.value = window.setInterval(() => {
959
976
  o.value && l.comms.touch(o.value);
960
977
  }, 60 * 1e3);
961
978
  }
962
- Se(() => u()), ee(o, (S) => {
963
- S ? d() : u();
979
+ Se(() => r()), ee(o, (A) => {
980
+ A ? d() : r();
964
981
  });
965
982
  function y() {
966
983
  return oe(this, null, function* () {
967
- o.value && (yield l.comms.delete(o.value)), o.value = null, b.value = 0, s.value = Math.round(Math.random() * 1e3), c.value = null, m.value = null, u();
984
+ o.value && (yield l.comms.delete(o.value)), o.value = null, v.value = 0, s.value = Math.round(Math.random() * 1e3), c.value = null, p.value = null, r();
968
985
  });
969
986
  }
970
- function A(S) {
987
+ function D(A) {
971
988
  return oe(this, null, function* () {
972
- b.value = -1, c.value = S;
989
+ v.value = -1, c.value = A;
973
990
  try {
974
991
  o.value = yield l.comms.upload(
975
- S,
976
- (v, p) => {
977
- b.value = Math.round(v * 100 / p);
992
+ A,
993
+ (B, g) => {
994
+ v.value = Math.round(B * 100 / g);
978
995
  }
979
- ), b.value = 100, d();
980
- } catch (v) {
981
- throw b.value = 0, c.value = null, s.value = Math.round(Math.random() * 1e3), m.value = null, v;
996
+ ), v.value = 100, d();
997
+ } catch (B) {
998
+ throw v.value = 0, c.value = null, s.value = Math.round(Math.random() * 1e3), p.value = null, B;
982
999
  }
983
1000
  });
984
1001
  }
985
- function P(S) {
986
- S && (Array.isArray(S) ? console.error("Uploading multiple files not supported right now") : A(S));
1002
+ function L(A) {
1003
+ A && (Array.isArray(A) ? console.error("Uploading multiple files not supported right now") : D(A));
987
1004
  }
988
- return (S, v) => {
989
- const p = I("v-progress-linear"), T = I("v-file-input");
990
- return g(), w(n(ve), L(l, {
1005
+ return (A, B) => {
1006
+ const g = I("v-progress-linear"), m = I("v-file-input");
1007
+ return h(), k(n(be), M(l, {
991
1008
  clearable: "",
992
1009
  "onClick:clear": y
993
1010
  }), {
994
- default: h(() => [
995
- q("div", Gl, [
996
- c.value && b.value < 100 ? (g(), w(p, {
1011
+ default: _(() => [
1012
+ Z("div", Gl, [
1013
+ c.value && v.value < 100 ? (h(), k(g, {
997
1014
  key: 0,
998
- "model-value": b.value,
999
- indeterminate: b.value === -1,
1015
+ "model-value": v.value,
1016
+ indeterminate: v.value === -1,
1000
1017
  height: "10",
1001
1018
  style: { position: "absolute", top: "50%", transform: "translateY(-50%)", width: "100%" }
1002
- }, null, 8, ["model-value", "indeterminate"])) : $("", !0),
1003
- x(T, {
1004
- modelValue: m.value,
1019
+ }, null, 8, ["model-value", "indeterminate"])) : E("", !0),
1020
+ T(m, {
1021
+ modelValue: p.value,
1005
1022
  "onUpdate:modelValue": [
1006
- v[0] || (v[0] = (F) => m.value = F),
1007
- P
1023
+ B[0] || (B[0] = (C) => p.value = C),
1024
+ L
1008
1025
  ],
1009
- label: r.value,
1026
+ label: u.value,
1010
1027
  density: n(a).density,
1011
1028
  variant: n(a).variant,
1012
1029
  readonly: n(a).readonly,
@@ -1015,7 +1032,7 @@ const Rl = {
1015
1032
  "hide-details": !0,
1016
1033
  "show-size": !0,
1017
1034
  multiple: !1,
1018
- style: fe(c.value && b.value < 100 ? "visibility: hidden" : ""),
1035
+ style: ve(c.value && v.value < 100 ? "visibility: hidden" : ""),
1019
1036
  clearable: !1
1020
1037
  }, null, 8, ["modelValue", "label", "density", "variant", "readonly", "disabled", "name", "style"])
1021
1038
  ])
@@ -1026,7 +1043,7 @@ const Rl = {
1026
1043
  }
1027
1044
  }), Xl = { class: "container" }, ql = /* @__PURE__ */ U({
1028
1045
  __name: "df-input",
1029
- props: /* @__PURE__ */ z({
1046
+ props: /* @__PURE__ */ j({
1030
1047
  inputType: {},
1031
1048
  precision: {},
1032
1049
  step: {},
@@ -1043,7 +1060,7 @@ const Rl = {
1043
1060
  visibility: {},
1044
1061
  cssClass: {},
1045
1062
  clearable: { type: Boolean }
1046
- }, M(D({}, K), {
1063
+ }, R(N({}, z), {
1047
1064
  inputType: "text",
1048
1065
  precision: null,
1049
1066
  step: void 0,
@@ -1052,33 +1069,33 @@ const Rl = {
1052
1069
  })),
1053
1070
  emits: ["update:modelValue", "click:clear"],
1054
1071
  setup(t, { emit: e }) {
1055
- const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } = j(l, i), { inputType: c, max: b, min: s, precision: m, step: r } = ie(l), u = V(() => c.value === "number"), d = V(() => u.value ? { min: n(s), max: n(b), precision: n(m), step: n(r) } : {});
1056
- return (y, A) => {
1057
- const P = I("v-text-field"), S = I("v-number-input");
1058
- return g(), E("div", Xl, [
1059
- u.value ? (g(), w(S, L({
1072
+ const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } = H(l, i), { inputType: c, max: v, min: s, precision: p, step: u } = ie(l), r = w(() => c.value === "number"), d = w(() => r.value ? { min: n(s), max: n(v), precision: n(p), step: n(u) } : {});
1073
+ return (y, D) => {
1074
+ const L = I("v-text-field"), A = I("v-number-input");
1075
+ return h(), $("div", Xl, [
1076
+ r.value ? (h(), k(A, M({
1060
1077
  key: 1,
1061
1078
  modelValue: n(a),
1062
- "onUpdate:modelValue": A[1] || (A[1] = (v) => G(a) ? a.value = v : null)
1063
- }, D(D({}, n(f)), d.value), {
1079
+ "onUpdate:modelValue": D[1] || (D[1] = (B) => K(a) ? a.value = B : null)
1080
+ }, N(N({}, n(f)), d.value), {
1064
1081
  density: "compact",
1065
1082
  "control-variant": "stacked"
1066
1083
  }), {
1067
- message: h(({ message: v }) => [
1068
- x(n(W), {
1069
- message: v,
1084
+ message: _(({ message: B }) => [
1085
+ T(n(G), {
1086
+ message: B,
1070
1087
  errors: n(o)
1071
1088
  }, null, 8, ["message", "errors"])
1072
1089
  ]),
1073
1090
  _: 1
1074
- }, 16, ["modelValue"])) : (g(), w(P, L({
1091
+ }, 16, ["modelValue"])) : (h(), k(L, M({
1075
1092
  key: 0,
1076
1093
  modelValue: n(a),
1077
- "onUpdate:modelValue": A[0] || (A[0] = (v) => G(a) ? a.value = v : null)
1094
+ "onUpdate:modelValue": D[0] || (D[0] = (B) => K(a) ? a.value = B : null)
1078
1095
  }, n(f), { type: n(c) }), {
1079
- message: h(({ message: v }) => [
1080
- x(n(W), {
1081
- message: v,
1096
+ message: _(({ message: B }) => [
1097
+ T(n(G), {
1098
+ message: B,
1082
1099
  errors: n(o)
1083
1100
  }, null, 8, ["message", "errors"])
1084
1101
  ]),
@@ -1096,10 +1113,10 @@ const Rl = {
1096
1113
  },
1097
1114
  emits: ["update:modelValue"],
1098
1115
  setup(t, { expose: e, emit: l }) {
1099
- Qe((r) => ({
1100
- "3d4d5a06": r.minHeight
1116
+ Qe((u) => ({
1117
+ "3d4d5a06": u.minHeight
1101
1118
  }));
1102
- const i = l, o = N(!1), a = Zt, s = {
1119
+ const i = l, o = S(!1), a = Zt, s = {
1103
1120
  toolbar: {
1104
1121
  items: [
1105
1122
  "undo",
@@ -1132,8 +1149,8 @@ const Rl = {
1132
1149
  },
1133
1150
  plugins: [
1134
1151
  ut,
1135
- ct,
1136
1152
  dt,
1153
+ ct,
1137
1154
  mt,
1138
1155
  pt,
1139
1156
  ft,
@@ -1160,8 +1177,8 @@ const Rl = {
1160
1177
  Ut,
1161
1178
  Ft,
1162
1179
  Lt,
1163
- Rt,
1164
1180
  Pt,
1181
+ Rt,
1165
1182
  Ot,
1166
1183
  Mt,
1167
1184
  Ht,
@@ -1233,23 +1250,23 @@ const Rl = {
1233
1250
  Ae(() => {
1234
1251
  o.value = !0;
1235
1252
  });
1236
- const m = (r) => {
1253
+ const p = (u) => {
1237
1254
  };
1238
- return e({ onEditorReady: m }), (r, u) => {
1255
+ return e({ onEditorReady: p }), (u, r) => {
1239
1256
  const d = I("ckeditor");
1240
- return g(), E("div", Yl, [
1241
- q("div", Ql, [
1242
- q("div", Jl, [
1243
- o.value ? (g(), w(d, {
1257
+ return h(), $("div", Yl, [
1258
+ Z("div", Ql, [
1259
+ Z("div", Jl, [
1260
+ o.value ? (h(), k(d, {
1244
1261
  key: 0,
1245
- "model-value": r.modelValue,
1262
+ "model-value": u.modelValue,
1246
1263
  editor: n(a),
1247
1264
  config: s,
1248
- disabled: r.disabled,
1249
- style: fe(`min-height: ${r.minHeight}`),
1250
- onReady: m,
1251
- "onUpdate:modelValue": u[0] || (u[0] = (y) => i("update:modelValue", y))
1252
- }, null, 8, ["model-value", "editor", "disabled", "style"])) : $("", !0)
1265
+ disabled: u.disabled,
1266
+ style: ve(`min-height: ${u.minHeight}`),
1267
+ onReady: p,
1268
+ "onUpdate:modelValue": r[0] || (r[0] = (y) => i("update:modelValue", y))
1269
+ }, null, 8, ["model-value", "editor", "disabled", "style"])) : E("", !0)
1253
1270
  ], 512)
1254
1271
  ])
1255
1272
  ]);
@@ -1257,7 +1274,7 @@ const Rl = {
1257
1274
  }
1258
1275
  }), tn = /* @__PURE__ */ U({
1259
1276
  __name: "df-rtf-editor",
1260
- props: /* @__PURE__ */ z({
1277
+ props: /* @__PURE__ */ j({
1261
1278
  minHeight: {},
1262
1279
  control: {},
1263
1280
  modelValue: {},
@@ -1270,16 +1287,16 @@ const Rl = {
1270
1287
  visibility: {},
1271
1288
  cssClass: {},
1272
1289
  clearable: { type: Boolean }
1273
- }, M(D({}, K), { minHeight: void 0 })),
1290
+ }, R(N({}, z), { minHeight: void 0 })),
1274
1291
  emits: ["update:modelValue", "click:clear"],
1275
1292
  setup(t, { emit: e }) {
1276
- const l = t, i = e, { value: o, vuetifyBindings: a } = j(l, i);
1277
- return (f, c) => (g(), w(n(ve), Ee(Ue(l)), {
1278
- default: h(() => [
1279
- x(en, {
1293
+ const l = t, i = e, { value: o, vuetifyBindings: a } = H(l, i);
1294
+ return (f, c) => (h(), k(n(be), Ee(Ue(l)), {
1295
+ default: _(() => [
1296
+ T(en, {
1280
1297
  ref: "$editor",
1281
1298
  modelValue: n(o),
1282
- "onUpdate:modelValue": c[0] || (c[0] = (b) => G(o) ? o.value = b : null),
1299
+ "onUpdate:modelValue": c[0] || (c[0] = (v) => K(o) ? o.value = v : null),
1283
1300
  "min-height": f.minHeight,
1284
1301
  disabled: n(a).disabled
1285
1302
  }, null, 8, ["modelValue", "min-height", "disabled"])
@@ -1295,7 +1312,7 @@ function J(t, e) {
1295
1312
  var l;
1296
1313
  return t == null || Te(t) && t.length === 0 ? null : e ? Fe(t) : Te(t) ? (l = Le(t)) != null ? l : null : t;
1297
1314
  }
1298
- function pe(t, e) {
1315
+ function fe(t, e) {
1299
1316
  if (e == null) return [];
1300
1317
  const l = Fe(e);
1301
1318
  return t.filter((i) => l.some((o) => o === i.id));
@@ -1308,11 +1325,11 @@ function ce(t, e, l, i, o) {
1308
1325
  return;
1309
1326
  }
1310
1327
  if (l)
1311
- i ? e.value = a : e.value = pe(o, a).map((c) => c.id);
1328
+ i ? e.value = a : e.value = fe(o, a).map((c) => c.id);
1312
1329
  else if (i)
1313
1330
  e.value = a;
1314
1331
  else {
1315
- const c = Le(pe(o, a));
1332
+ const c = Le(fe(o, a));
1316
1333
  e.value = (f = c == null ? void 0 : c.id) != null ? f : null;
1317
1334
  }
1318
1335
  }
@@ -1321,7 +1338,7 @@ const nn = {
1321
1338
  class: "me-1"
1322
1339
  }, on = /* @__PURE__ */ U({
1323
1340
  __name: "df-select",
1324
- props: /* @__PURE__ */ z({
1341
+ props: /* @__PURE__ */ j({
1325
1342
  choices: {},
1326
1343
  multiple: { type: Boolean },
1327
1344
  allowTags: { type: Boolean },
@@ -1338,7 +1355,7 @@ const nn = {
1338
1355
  visibility: {},
1339
1356
  cssClass: {},
1340
1357
  clearable: { type: Boolean }
1341
- }, M(D({}, K), {
1358
+ }, R(N({}, z), {
1342
1359
  choices: void 0,
1343
1360
  multiple: !1,
1344
1361
  allowTags: !1,
@@ -1347,131 +1364,131 @@ const nn = {
1347
1364
  })),
1348
1365
  emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
1349
1366
  setup(t, { emit: e }) {
1350
- const l = t, { choices: i } = l, { multiple: o, allowTags: a, allowNull: f, cssClass: c, visibility: b } = ie(l), s = e, { errors: m, value: r, vuetifyBindings: u } = j(l, s), d = N(null), y = N(i || []), A = N(!1), P = V(() => ln(y.value));
1351
- function S(k) {
1352
- s("update:modelValueDisplay", pe(y.value, k));
1367
+ const l = t, { choices: i } = l, { multiple: o, allowTags: a, allowNull: f, cssClass: c, visibility: v } = ie(l), s = e, { errors: p, value: u, vuetifyBindings: r } = H(l, s), d = S(null), y = S(i || []), D = S(!1), L = w(() => ln(y.value));
1368
+ function A(V) {
1369
+ s("update:modelValueDisplay", fe(y.value, V));
1353
1370
  }
1354
- ee(d, (k) => {
1355
- u.value.readonly || Je(() => {
1356
- const B = J(k, o.value);
1357
- S(B), r.value = B;
1371
+ ee(d, (V) => {
1372
+ r.value.readonly || Je(() => {
1373
+ const x = J(V, o.value);
1374
+ A(x), u.value = x;
1358
1375
  });
1359
1376
  }, { deep: !0 });
1360
- function v() {
1361
- if (u.value.readonly || a.value) return;
1362
- const k = J(d.value, o.value);
1363
- ce(k, d, o.value, !1, y.value), r.value = k;
1377
+ function B() {
1378
+ if (r.value.readonly || a.value) return;
1379
+ const V = J(d.value, o.value);
1380
+ ce(V, d, o.value, !1, y.value), u.value = V;
1364
1381
  }
1365
- function p(k) {
1366
- let B;
1367
- o.value && Array.isArray(d.value) ? B = J(d.value.filter((Z) => Z !== k), o.value) : B = null, ce(B, d, o.value, !1, y.value), r.value = B;
1382
+ function g(V) {
1383
+ let x;
1384
+ o.value && Array.isArray(d.value) ? x = J(d.value.filter((W) => W !== V), o.value) : x = null, ce(x, d, o.value, !1, y.value), u.value = x;
1368
1385
  }
1369
- function T(k, B) {
1386
+ function m(V, x) {
1370
1387
  return oe(this, null, function* () {
1371
1388
  if (!(i || l.fetchChoices === void 0)) {
1372
- A.value = !0;
1389
+ D.value = !0;
1373
1390
  try {
1374
- y.value = yield l.fetchChoices(k, B);
1391
+ y.value = yield l.fetchChoices(V, x);
1375
1392
  } finally {
1376
- A.value = !1;
1393
+ D.value = !1;
1377
1394
  }
1378
1395
  }
1379
1396
  });
1380
1397
  }
1381
- function F() {
1382
- let k = r.value;
1383
- !f.value && k == null && P.value.length && (k = P.value[0].value), k = J(k, o.value), ce(k, d, o.value, a.value, y.value), S(k), r.value = k;
1398
+ function C() {
1399
+ let V = u.value;
1400
+ !f.value && V == null && L.value.length && (V = L.value[0].value), V = J(V, o.value), ce(V, d, o.value, a.value, y.value), A(V), u.value = V;
1384
1401
  }
1385
- return F(), l.fetchChoices !== void 0 && T(void 0, r.value).then(() => {
1386
- F();
1387
- }), (k, B) => {
1388
- const Z = I("v-chip"), C = I("v-list-item");
1389
- return n(b) !== n(H).SUPPRESS ? (g(), w(te(n(a) ? "v-combobox" : "v-autocomplete"), L({
1402
+ return C(), l.fetchChoices !== void 0 && m(void 0, u.value).then(() => {
1403
+ C();
1404
+ }), (V, x) => {
1405
+ const W = I("v-chip"), se = I("v-list-item");
1406
+ return n(v) !== n(O).SUPPRESS ? (h(), k(te(n(a) ? "v-combobox" : "v-autocomplete"), M({
1390
1407
  key: 0,
1391
1408
  modelValue: d.value,
1392
- "onUpdate:modelValue": B[0] || (B[0] = (_) => d.value = _),
1409
+ "onUpdate:modelValue": x[0] || (x[0] = (b) => d.value = b),
1393
1410
  class: [
1394
1411
  n(c),
1395
1412
  {
1396
- "d-none": n(b) === n(H).HIDDEN,
1397
- invisible: n(b) === n(H).INVISIBLE
1413
+ "d-none": n(v) === n(O).HIDDEN,
1414
+ invisible: n(v) === n(O).INVISIBLE
1398
1415
  }
1399
1416
  ],
1400
- items: P.value,
1417
+ items: L.value,
1401
1418
  "return-object": !1
1402
- }, n(u), {
1403
- label: n(u).label,
1419
+ }, n(r), {
1420
+ label: n(r).label,
1404
1421
  chips: "",
1405
1422
  "auto-select-first": !0,
1406
1423
  "closable-chips": n(f) || n(o) && d.value.length > 1,
1407
1424
  clearable: n(f),
1408
1425
  multiple: n(o),
1409
- loading: A.value,
1426
+ loading: D.value,
1410
1427
  "hide-selected": !1,
1411
- "aria-describedby": n(u).helpText ? `${n(u).name}-help` : null,
1428
+ "aria-describedby": n(r).helpText ? `${n(r).name}-help` : null,
1412
1429
  "menu-props": { maxHeight: "400" },
1413
1430
  "hide-details": "auto",
1414
- "onUpdate:search": B[1] || (B[1] = (_) => T(_, void 0)),
1415
- "onUpdate:modelValue": v,
1416
- "onClick:clear": B[2] || (B[2] = (_) => d.value = null)
1431
+ "onUpdate:search": x[1] || (x[1] = (b) => m(b, void 0)),
1432
+ "onUpdate:modelValue": B,
1433
+ "onClick:clear": x[2] || (x[2] = (b) => d.value = null)
1417
1434
  }), {
1418
- chip: h(({ item: _ }) => [
1419
- (g(), w(Z, {
1420
- key: _.value,
1435
+ chip: _(({ item: b }) => [
1436
+ (h(), k(W, {
1437
+ key: b.value,
1421
1438
  label: "",
1422
1439
  size: "small",
1423
1440
  class: "d-flex align-middle",
1424
1441
  variant: n(o) ? "tonal" : "text",
1425
1442
  closable: n(o),
1426
- "onClick:close": (O) => p(_.value)
1443
+ "onClick:close": (P) => g(b.value)
1427
1444
  }, {
1428
- prepend: h(() => {
1429
- var O;
1445
+ prepend: _(() => {
1446
+ var P;
1430
1447
  return [
1431
- (O = _.raw) != null && O.icon ? (g(), w(n(me), {
1448
+ (P = b.raw) != null && P.icon ? (h(), k(n(pe), {
1432
1449
  key: 0,
1433
1450
  class: "me-1 action-icon d-inline-block",
1434
- name: _.raw.icon
1435
- }, null, 8, ["name"])) : $("", !0)
1451
+ name: b.raw.icon
1452
+ }, null, 8, ["name"])) : E("", !0)
1436
1453
  ];
1437
1454
  }),
1438
- default: h(() => [
1439
- q("span", {
1455
+ default: _(() => [
1456
+ Z("span", {
1440
1457
  class: le({ "text-body-1": !n(o) })
1441
- }, X(_.title), 3)
1458
+ }, q(b.title), 3)
1442
1459
  ]),
1443
1460
  _: 2
1444
1461
  }, 1032, ["variant", "closable", "onClick:close"]))
1445
1462
  ]),
1446
- item: h(({ props: _, item: O }) => [
1447
- x(C, Ee(Ue(_)), {
1448
- prepend: h(() => {
1449
- var be;
1463
+ item: _(({ props: b, item: P }) => [
1464
+ T(se, Ee(Ue(b)), {
1465
+ prepend: _(() => {
1466
+ var X;
1450
1467
  return [
1451
- (be = O.raw) != null && be.icon ? (g(), E("span", nn, [
1452
- x(n(me), {
1468
+ (X = P.raw) != null && X.icon ? (h(), $("span", nn, [
1469
+ T(n(pe), {
1453
1470
  class: "action-icon d-inline-block",
1454
- name: O.raw.icon
1471
+ name: P.raw.icon
1455
1472
  }, null, 8, ["name"])
1456
- ])) : $("", !0)
1473
+ ])) : E("", !0)
1457
1474
  ];
1458
1475
  }),
1459
1476
  _: 2
1460
1477
  }, 1040)
1461
1478
  ]),
1462
- message: h(({ message: _ }) => [
1463
- x(n(W), {
1464
- message: _,
1465
- errors: n(m)
1479
+ message: _(({ message: b }) => [
1480
+ T(n(G), {
1481
+ message: b,
1482
+ errors: n(p)
1466
1483
  }, null, 8, ["message", "errors"])
1467
1484
  ]),
1468
1485
  _: 1
1469
- }, 16, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : $("", !0);
1486
+ }, 16, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : E("", !0);
1470
1487
  };
1471
1488
  }
1472
1489
  }), an = /* @__PURE__ */ ne(on, [["__scopeId", "data-v-efe3f250"]]), sn = { class: "container" }, rn = /* @__PURE__ */ U({
1473
1490
  __name: "df-text-area",
1474
- props: /* @__PURE__ */ z({
1491
+ props: /* @__PURE__ */ j({
1475
1492
  rows: {},
1476
1493
  maxRows: {},
1477
1494
  control: {},
@@ -1485,43 +1502,43 @@ const nn = {
1485
1502
  visibility: {},
1486
1503
  cssClass: {},
1487
1504
  clearable: { type: Boolean }
1488
- }, M(D({}, K), {
1505
+ }, R(N({}, z), {
1489
1506
  rows: void 0,
1490
1507
  maxRows: void 0
1491
1508
  })),
1492
1509
  emits: ["update:modelValue", "click:clear"],
1493
1510
  setup(t, { emit: e }) {
1494
- const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } = j(l, i), { cssClass: c, visibility: b } = ie(l);
1495
- return (s, m) => {
1496
- const r = I("v-textarea");
1497
- return g(), E("div", sn, [
1498
- n(b) !== n(H).SUPPRESS ? (g(), w(r, L({
1511
+ const l = t, i = e, { errors: o, value: a, vuetifyBindings: f } = H(l, i), { cssClass: c, visibility: v } = ie(l);
1512
+ return (s, p) => {
1513
+ const u = I("v-textarea");
1514
+ return h(), $("div", sn, [
1515
+ n(v) !== n(O).SUPPRESS ? (h(), k(u, M({
1499
1516
  key: 0,
1500
1517
  modelValue: n(a),
1501
- "onUpdate:modelValue": m[0] || (m[0] = (u) => G(a) ? a.value = u : null),
1518
+ "onUpdate:modelValue": p[0] || (p[0] = (r) => K(a) ? a.value = r : null),
1502
1519
  class: [
1503
1520
  n(c),
1504
1521
  {
1505
- "d-none": n(b) === n(H).HIDDEN,
1506
- invisible: n(b) === n(H).INVISIBLE
1522
+ "d-none": n(v) === n(O).HIDDEN,
1523
+ invisible: n(v) === n(O).INVISIBLE
1507
1524
  }
1508
1525
  ],
1509
1526
  rows: s.rows,
1510
1527
  "auto-grow": (s.maxRows || 0) > 0,
1511
1528
  "max-rows": s.maxRows
1512
1529
  }, n(f)), {
1513
- message: h(({ message: u }) => [
1514
- x(n(W), {
1515
- message: u,
1530
+ message: _(({ message: r }) => [
1531
+ T(n(G), {
1532
+ message: r,
1516
1533
  errors: n(o)
1517
1534
  }, null, 8, ["message", "errors"])
1518
1535
  ]),
1519
1536
  _: 1
1520
- }, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) : $("", !0)
1537
+ }, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) : E("", !0)
1521
1538
  ]);
1522
1539
  };
1523
1540
  }
1524
- }), un = /* @__PURE__ */ ne(rn, [["__scopeId", "data-v-1a04c9b5"]]), cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1541
+ }), un = /* @__PURE__ */ ne(rn, [["__scopeId", "data-v-1a04c9b5"]]), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1525
1542
  __proto__: null,
1526
1543
  DfActions: Ml,
1527
1544
  DfCheckbox: Hl,
@@ -1532,7 +1549,7 @@ const nn = {
1532
1549
  DfRtfEditor: tn,
1533
1550
  DfSelect: an,
1534
1551
  DfTextArea: un
1535
- }, Symbol.toStringTag, { value: "Module" })), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1552
+ }, Symbol.toStringTag, { value: "Module" })), cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1536
1553
  __proto__: null,
1537
1554
  VAutocomplete: Yt,
1538
1555
  VBtn: Qt,
@@ -1546,8 +1563,8 @@ const nn = {
1546
1563
  VFileInput: al,
1547
1564
  VIcon: rl,
1548
1565
  VInput: ul,
1549
- VListItem: cl,
1550
- VMenu: dl,
1566
+ VListItem: dl,
1567
+ VMenu: cl,
1551
1568
  VNumberInput: ml,
1552
1569
  VProgressLinear: pl,
1553
1570
  VRow: sl,
@@ -1559,12 +1576,12 @@ const nn = {
1559
1576
  }, Symbol.toStringTag, { value: "Module" })), Hn = {
1560
1577
  install: (t, e) => {
1561
1578
  var l, i;
1562
- t.use(Sl), (l = e == null ? void 0 : e.registerComponents) != null && l && Object.entries(cn).map(([o, a]) => t.component(o, a)), (i = e == null ? void 0 : e.registerVuetifyComponents) != null && i && Object.entries(dn).map(([o, a]) => t.component(o, a));
1579
+ t.use(Sl), (l = e == null ? void 0 : e.registerComponents) != null && l && Object.entries(dn).map(([o, a]) => t.component(o, a)), (i = e == null ? void 0 : e.registerVuetifyComponents) != null && i && Object.entries(cn).map(([o, a]) => t.component(o, a));
1563
1580
  }
1564
1581
  };
1565
1582
  export {
1566
1583
  ae as Action,
1567
- R as ActionDisplayStyle,
1584
+ F as ActionDisplayStyle,
1568
1585
  Ml as DfActions,
1569
1586
  Hl as DfCheckbox,
1570
1587
  jl as DfColor,
@@ -1575,15 +1592,15 @@ export {
1575
1592
  an as DfSelect,
1576
1593
  un as DfTextArea,
1577
1594
  Hn as DynamicFormsInputs,
1578
- ve as InputBase,
1579
- W as MessagesWidget,
1595
+ be as InputBase,
1596
+ G as MessagesWidget,
1580
1597
  Ll as ResponsiveLabelRenderOptions,
1581
1598
  Fl as ResponsiveRenderOptions,
1582
- dn as VuetifyComponents,
1583
- K as defaultBaseProps,
1599
+ cn as VuetifyComponents,
1600
+ z as defaultBaseProps,
1584
1601
  Ie as defaultDisplayStyle,
1585
1602
  xe as getBreakpointName,
1586
1603
  Be as responsiveBreakpoints,
1587
- j as useInputBase
1604
+ H as useInputBase
1588
1605
  };
1589
1606
  //# sourceMappingURL=dynamicforms-vuetify-inputs.js.map