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