@dynamicforms/vuetify-inputs 0.1.15 → 0.1.17

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,51 +1,51 @@
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) => {
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
15
  var a = (c) => {
16
16
  try {
17
17
  u(l.next(c));
18
- } catch (v) {
19
- n(v);
18
+ } catch (b) {
19
+ o(b);
20
20
  }
21
- }, f = (c) => {
21
+ }, v = (c) => {
22
22
  try {
23
23
  u(l.throw(c));
24
- } catch (v) {
25
- n(v);
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 = (c) => c.done ? i(c.value) : Promise.resolve(c.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 ce } 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 ct, Alignment as dt, 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
50
  import { VInput as cl } from "vuetify/components/VInput";
51
51
  import { VListItem as dl } from "vuetify/components/VList";
@@ -54,8 +54,8 @@ 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 de = "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(), c = S();
216
216
  e({
217
217
  instance: u,
218
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);
219
+ }), ee(i, (r) => {
220
+ u.value && r !== c.value && u.value.data.set(r);
221
+ }), ee(() => o.disabled, (r) => {
222
+ r ? u.value.enableReadOnlyMode(de) : u.value.disableReadOnlyMode(de);
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((d) => {
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 = c.value = r.data.get();
236
+ a("update:modelValue", h, d, r), a("input", h, d, r);
237
+ }, xl, { leading: !0 });
238
+ r.model.document.on("change:data", m), 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);
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(de), 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(d) {
286
+ t.control && (t.control.value = d), e("update:modelValue", d);
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((d) => new it(d))
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
+ ), c = _(() => 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 d;
304
304
  return {
305
- name: (p = t.control) == null ? void 0 : p.fieldName,
305
+ name: (d = t.control) == null ? void 0 : d.fieldName,
306
306
  class: m.value,
307
+ density: "default",
308
+ variant: "underlined",
307
309
  label: c.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), c = _(() => 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: d }) => [
404
+ x(W, {
405
+ message: d,
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
414
  c.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] = (d) => 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) {
469
+ showIcon: (v = this._value.showIcon) != null ? v : !0
470
+ }, i = [...De].reverse();
471
+ for (const u of i) {
463
472
  const c = this._value[u];
464
473
  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;
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,7 +508,7 @@ class ae {
499
508
  }
500
509
  static makeFormAction(e) {
501
510
  let l;
502
- if (e instanceof it)
511
+ if (e instanceof st)
503
512
  l = ce.create().registerAction(e);
504
513
  else if (e === void 0)
505
514
  l = ce.create();
@@ -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 c(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), (d, h) => (g(), V(m, {
605
+ key: h,
606
+ variant: c(d) === 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) => d.formAction.execute(k), ["stop"])
602
611
  }, {
603
612
  default: y(() => [
604
- f(p) ? (h(), V(o(fe), {
613
+ v(d) ? (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: d.formAction.icon
617
+ }, null, 8, ["name"])) : E("", !0),
618
+ v(d) && u(d) ? (g(), $("span", Fl)) : E("", !0),
619
+ u(d) ? (g(), $("span", Pl, q(b(d)), 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), c = _({
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({
655
+ return (s, r) => {
656
+ const m = A("v-checkbox");
657
+ return g(), V(m, P({
649
658
  modelValue: c.value,
650
- "onUpdate:modelValue": s[0] || (s[0] = (p) => c.value = p)
651
- }, o(f), {
659
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => c.value = d)
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: d }) => [
668
+ x(n(W), {
669
+ message: d,
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), c = _(() => [
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"), d = A("v-menu");
700
+ return g(), V(d, {
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
714
  rules: c.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: c } = 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 d(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()), d(`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
+ d(I, 0), d(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) => d(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
+ d(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
+ d(`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
+ d(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(c));
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), d(`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), c = 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 d() {
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 ? d() : 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, c.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
+ c.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
+ c.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
+ ), c.value = 100, d();
984
+ } catch (f) {
985
+ throw c.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 && c.value < 100 ? (g(), V(p, {
985
1001
  key: 0,
986
1002
  "model-value": c.value,
987
1003
  indeterminate: c.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 && c.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,42 @@ 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: c, min: b, precision: s, step: r } = re(l), m = _(() => u.value === "number"), d = _(() => m.value ? { min: n(b), max: n(c), 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), {
1065
+ modelValue: n(a),
1066
+ "onUpdate:modelValue": k[1] || (k[1] = (f) => G(a) ? a.value = f : null)
1067
+ }, N(N({}, n(v)), d.value), {
1050
1068
  density: "compact",
1051
- "control-variant": "stacked",
1052
- variant: "underlined"
1069
+ "control-variant": "stacked"
1053
1070
  }), {
1054
- message: y(() => [
1055
- A(o(W), { errors: o(n) }, null, 8, ["errors"])
1071
+ message: y(({ message: f }) => [
1072
+ x(n(W), {
1073
+ message: f,
1074
+ errors: n(o)
1075
+ }, null, 8, ["message", "errors"])
1056
1076
  ]),
1057
1077
  _: 1
1058
- }, 16, ["modelValue"])) : (h(), V(O, P({
1078
+ }, 16, ["modelValue"])) : (g(), V(O, P({
1059
1079
  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"])
1080
+ modelValue: n(a),
1081
+ "onUpdate:modelValue": k[0] || (k[0] = (f) => G(a) ? a.value = f : null)
1082
+ }, n(v), { type: n(u) }), {
1083
+ message: y(({ message: f }) => [
1084
+ x(n(W), {
1085
+ message: f,
1086
+ errors: n(o)
1087
+ }, null, 8, ["message", "errors"])
1068
1088
  ]),
1069
1089
  _: 1
1070
1090
  }, 16, ["modelValue", "type"]))
1071
1091
  ]);
1072
1092
  };
1073
1093
  }
1074
- }), Xl = /* @__PURE__ */ oe(Wl, [["__scopeId", "data-v-e1917d98"]]), ql = { class: "editor-container" }, Zl = { class: "editor-container__editor" }, Yl = { ref: "editorElement" }, Ql = /* @__PURE__ */ F({
1094
+ }), ql = /* @__PURE__ */ ne(Xl, [["__scopeId", "data-v-aa68213c"]]), Zl = { class: "editor-container" }, Yl = { class: "editor-container__editor" }, Ql = { ref: "editorElement" }, Jl = /* @__PURE__ */ L({
1075
1095
  __name: "ck-editor-custom",
1076
1096
  props: {
1077
1097
  modelValue: { default: "" },
@@ -1080,10 +1100,10 @@ const Fl = {
1080
1100
  },
1081
1101
  emits: ["update:modelValue"],
1082
1102
  setup(t, { expose: e, emit: l }) {
1083
- Je((s) => ({
1084
- "3d4d5a06": s.minHeight
1103
+ Je((r) => ({
1104
+ "3d4d5a06": r.minHeight
1085
1105
  }));
1086
- const r = l, n = S(!1), a = Yt, v = {
1106
+ const i = l, o = S(!1), a = Yt, b = {
1087
1107
  toolbar: {
1088
1108
  items: [
1089
1109
  "undo",
@@ -1122,8 +1142,8 @@ const Fl = {
1122
1142
  ft,
1123
1143
  vt,
1124
1144
  bt,
1125
- ht,
1126
1145
  gt,
1146
+ ht,
1127
1147
  yt,
1128
1148
  _t,
1129
1149
  wt,
@@ -1133,21 +1153,21 @@ const Fl = {
1133
1153
  Ct,
1134
1154
  It,
1135
1155
  Bt,
1136
- xt,
1137
1156
  At,
1157
+ xt,
1138
1158
  Dt,
1139
1159
  St,
1140
1160
  Nt,
1141
1161
  $t,
1142
1162
  Et,
1143
1163
  Ut,
1144
- Ft,
1145
1164
  Lt,
1165
+ Ft,
1146
1166
  Pt,
1147
1167
  Rt,
1148
1168
  Ot,
1149
- Ht,
1150
1169
  Mt,
1170
+ Ht,
1151
1171
  jt,
1152
1172
  zt,
1153
1173
  Kt,
@@ -1215,31 +1235,31 @@ const Fl = {
1215
1235
  table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] }
1216
1236
  };
1217
1237
  Se(() => {
1218
- n.value = !0;
1238
+ o.value = !0;
1219
1239
  });
1220
- const i = (s) => {
1240
+ const s = (r) => {
1221
1241
  };
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, {
1242
+ return e({ onEditorReady: s }), (r, m) => {
1243
+ const d = A("ckeditor");
1244
+ return g(), $("div", Zl, [
1245
+ le("div", Yl, [
1246
+ le("div", Ql, [
1247
+ o.value ? (g(), V(d, {
1228
1248
  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)
1249
+ "model-value": r.modelValue,
1250
+ editor: n(a),
1251
+ config: b,
1252
+ disabled: r.disabled,
1253
+ style: ge(`min-height: ${r.minHeight}`),
1254
+ onReady: s,
1255
+ "onUpdate:modelValue": m[0] || (m[0] = (h) => i("update:modelValue", h))
1256
+ }, null, 8, ["model-value", "editor", "disabled", "style"])) : E("", !0)
1237
1257
  ], 512)
1238
1258
  ])
1239
1259
  ]);
1240
1260
  };
1241
1261
  }
1242
- }), Jl = /* @__PURE__ */ F({
1262
+ }), en = /* @__PURE__ */ L({
1243
1263
  __name: "df-rtf-editor",
1244
1264
  props: /* @__PURE__ */ z({
1245
1265
  minHeight: {},
@@ -1254,59 +1274,59 @@ const Fl = {
1254
1274
  visibility: {},
1255
1275
  cssClass: {},
1256
1276
  clearable: { type: Boolean }
1257
- }, H(N({}, K), { minHeight: void 0 })),
1277
+ }, M(N({}, K), { minHeight: void 0 })),
1258
1278
  emits: ["update:modelValue", "click:clear"],
1259
1279
  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)), {
1280
+ const l = t, i = e, { value: o, vuetifyBindings: a } = j(l, i);
1281
+ return (v, u) => (g(), V(n(he), Ue(Le(l)), {
1262
1282
  default: y(() => [
1263
- A(Ql, {
1283
+ x(Jl, {
1264
1284
  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
1285
+ modelValue: n(o),
1286
+ "onUpdate:modelValue": u[0] || (u[0] = (c) => G(o) ? o.value = c : null),
1287
+ "min-height": v.minHeight,
1288
+ disabled: n(a).disabled
1269
1289
  }, null, 8, ["modelValue", "min-height", "disabled"])
1270
1290
  ]),
1271
1291
  _: 1
1272
1292
  }, 16));
1273
1293
  }
1274
1294
  });
1275
- function eo(t) {
1295
+ function tn(t) {
1276
1296
  return t.map((e) => ({ value: e.id, title: e.text, icon: e.icon }));
1277
1297
  }
1278
- function Q(t, e) {
1298
+ function J(t, e) {
1279
1299
  var l;
1280
- return t == null || Be(t) && t.length === 0 ? null : e ? Le(t) : Be(t) ? (l = Pe(t)) != null ? l : null : t;
1300
+ return t == null || Be(t) && t.length === 0 ? null : e ? Fe(t) : Be(t) ? (l = Pe(t)) != null ? l : null : t;
1281
1301
  }
1282
1302
  function ve(t, e) {
1283
1303
  if (e == null) return [];
1284
- const l = Le(e);
1285
- return t.filter((r) => l.some((n) => n === r.id));
1304
+ const l = Fe(e);
1305
+ return t.filter((i) => l.some((o) => o === i.id));
1286
1306
  }
1287
- function me(t, e, l, r, n) {
1288
- var f;
1289
- const a = Q(t, l);
1307
+ function me(t, e, l, i, o) {
1308
+ var v;
1309
+ const a = J(t, l);
1290
1310
  if (a == null) {
1291
1311
  e.value = l ? [] : null;
1292
1312
  return;
1293
1313
  }
1294
1314
  if (l)
1295
- r ? e.value = a : e.value = ve(n, a).map((u) => u.id);
1296
- else if (r)
1315
+ i ? e.value = a : e.value = ve(o, a).map((u) => u.id);
1316
+ else if (i)
1297
1317
  e.value = a;
1298
1318
  else {
1299
- const u = Pe(ve(n, a));
1300
- e.value = (f = u == null ? void 0 : u.id) != null ? f : null;
1319
+ const u = Pe(ve(o, a));
1320
+ e.value = (v = u == null ? void 0 : u.id) != null ? v : null;
1301
1321
  }
1302
1322
  }
1303
- const to = {
1323
+ const ln = {
1304
1324
  key: 0,
1305
1325
  class: "me-1"
1306
- }, lo = {
1326
+ }, nn = {
1307
1327
  key: 0,
1308
1328
  class: "me-1"
1309
- }, oo = /* @__PURE__ */ F({
1329
+ }, on = /* @__PURE__ */ L({
1310
1330
  __name: "df-select",
1311
1331
  props: /* @__PURE__ */ z({
1312
1332
  choices: {},
@@ -1325,7 +1345,7 @@ const to = {
1325
1345
  visibility: {},
1326
1346
  cssClass: {},
1327
1347
  clearable: { type: Boolean }
1328
- }, H(N({}, K), {
1348
+ }, M(N({}, K), {
1329
1349
  choices: void 0,
1330
1350
  multiple: !1,
1331
1351
  allowTags: !1,
@@ -1334,127 +1354,129 @@ const to = {
1334
1354
  })),
1335
1355
  emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
1336
1356
  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));
1357
+ const l = t, { choices: i } = l, { multiple: o, allowTags: a, allowNull: v, cssClass: u, visibility: c } = re(l), b = S(!1), s = e, { errors: r, value: m, vuetifyBindings: d } = j(l, s), h = S(null), k = S(i || []), O = S(!1), D = _(() => tn(k.value));
1358
+ function f(C) {
1359
+ s("update:modelValueDisplay", ve(k.value, C));
1340
1360
  }
1341
- J(g, (C) => {
1342
- p.value.readonly || et(() => {
1343
- const T = Q(C, n.value);
1344
- b(T), m.value = T;
1361
+ ee(h, (C) => {
1362
+ d.value.readonly || et(() => {
1363
+ const T = J(C, o.value);
1364
+ f(T), m.value = T;
1345
1365
  });
1346
1366
  }, { 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;
1367
+ function p() {
1368
+ if (d.value.readonly || a.value) return;
1369
+ const C = J(h.value, o.value);
1370
+ me(C, h, o.value, !1, k.value), m.value = C;
1351
1371
  }
1352
- function k(C) {
1372
+ function I(C) {
1353
1373
  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;
1374
+ 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
1375
  }
1356
- function L(C, T) {
1357
- return ne(this, null, function* () {
1358
- if (!(r || l.fetchChoices === void 0)) {
1376
+ function F(C, T) {
1377
+ return oe(this, null, function* () {
1378
+ if (!(i || l.fetchChoices === void 0)) {
1359
1379
  O.value = !0;
1360
1380
  try {
1361
- I.value = yield l.fetchChoices(C, T);
1381
+ k.value = yield l.fetchChoices(C, T);
1362
1382
  } finally {
1363
1383
  O.value = !1;
1364
1384
  }
1365
1385
  }
1366
1386
  });
1367
1387
  }
1368
- function q() {
1388
+ function Z() {
1369
1389
  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;
1390
+ !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
1391
  }
1372
- return q(), l.fetchChoices !== void 0 && L(void 0, m.value).then(() => {
1373
- q();
1392
+ return Z(), l.fetchChoices !== void 0 && F(void 0, m.value).then(() => {
1393
+ Z();
1374
1394
  }), (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({
1395
+ const w = A("v-chip"), U = A("v-list-item");
1396
+ return n(c) !== n(H).SUPPRESS ? (g(), V(te(n(a) ? "v-combobox" : "v-autocomplete"), P({
1377
1397
  key: 0,
1378
- modelValue: g.value,
1379
- "onUpdate:modelValue": T[0] || (T[0] = (D) => g.value = D),
1398
+ modelValue: h.value,
1399
+ "onUpdate:modelValue": T[0] || (T[0] = (B) => h.value = B),
1380
1400
  class: [
1381
- o(u),
1401
+ n(u),
1382
1402
  {
1383
- "d-none": o(c) === o(M).HIDDEN,
1384
- invisible: o(c) === o(M).INVISIBLE
1403
+ "d-none": n(c) === n(H).HIDDEN,
1404
+ invisible: n(c) === n(H).INVISIBLE
1385
1405
  }
1386
1406
  ],
1387
- density: "compact",
1388
- items: B.value,
1407
+ items: D.value,
1389
1408
  "return-object": !1
1390
- }, o(p), {
1391
- label: v.value ? "" : o(p).label,
1409
+ }, n(d), {
1410
+ label: b.value ? "" : n(d).label,
1392
1411
  chips: "",
1393
1412
  "auto-select-first": !0,
1394
- "closable-chips": o(f) || o(n) && g.value.length > 1,
1395
- clearable: o(f),
1396
- multiple: o(n),
1413
+ "closable-chips": n(v) || n(o) && h.value.length > 1,
1414
+ clearable: n(v),
1415
+ multiple: n(o),
1397
1416
  loading: O.value,
1398
1417
  "hide-selected": !1,
1399
- "aria-describedby": o(p).helpText ? `${o(p).name}-help` : null,
1418
+ "aria-describedby": n(d).helpText ? `${n(d).name}-help` : null,
1400
1419
  "menu-props": { maxHeight: "400" },
1401
1420
  "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)
1421
+ "onUpdate:search": T[1] || (T[1] = (B) => F(B, void 0)),
1422
+ "onUpdate:modelValue": p,
1423
+ "onClick:clear": T[2] || (T[2] = (B) => h.value = null),
1424
+ onFocus: T[3] || (T[3] = (B) => b.value = !0),
1425
+ onBlur: T[4] || (T[4] = (B) => b.value = !1)
1407
1426
  }), {
1408
- chip: y(({ item: D }) => [
1409
- (h(), V(w, {
1410
- key: D.value,
1427
+ chip: y(({ item: B }) => [
1428
+ (g(), V(w, {
1429
+ key: B.value,
1411
1430
  label: "",
1412
1431
  size: "small",
1413
- variant: o(n) ? "tonal" : "text",
1414
- closable: o(n),
1415
- "onClick:close": (X) => k(D.value)
1432
+ variant: n(o) ? "tonal" : "text",
1433
+ closable: n(o),
1434
+ "onClick:close": (X) => I(B.value)
1416
1435
  }, {
1417
1436
  prepend: y(() => {
1418
1437
  var X;
1419
1438
  return [
1420
- (X = D.raw) != null && X.icon ? (h(), E("span", to, [
1421
- A(o(fe), {
1439
+ (X = B.raw) != null && X.icon ? (g(), $("span", ln, [
1440
+ x(n(fe), {
1422
1441
  class: "action-icon d-inline-block",
1423
- name: D.raw.icon
1442
+ name: B.raw.icon
1424
1443
  }, null, 8, ["name"])
1425
- ])) : $("", !0)
1444
+ ])) : E("", !0)
1426
1445
  ];
1427
1446
  }),
1428
1447
  default: y(() => [
1429
- be(" " + te(D.title), 1)
1448
+ be(" " + q(B.title), 1)
1430
1449
  ]),
1431
1450
  _: 2
1432
1451
  }, 1032, ["variant", "closable", "onClick:close"]))
1433
1452
  ]),
1434
- item: y(({ props: D, item: X }) => [
1435
- A(U, Ue(Fe(D)), {
1453
+ item: y(({ props: B, item: X }) => [
1454
+ x(U, Ue(Le(B)), {
1436
1455
  prepend: y(() => {
1437
1456
  var ye;
1438
1457
  return [
1439
- (ye = X.raw) != null && ye.icon ? (h(), E("span", lo, [
1440
- A(o(fe), {
1458
+ (ye = X.raw) != null && ye.icon ? (g(), $("span", nn, [
1459
+ x(n(fe), {
1441
1460
  class: "action-icon d-inline-block",
1442
1461
  name: X.raw.icon
1443
1462
  }, null, 8, ["name"])
1444
- ])) : $("", !0)
1463
+ ])) : E("", !0)
1445
1464
  ];
1446
1465
  }),
1447
1466
  _: 2
1448
1467
  }, 1040)
1449
1468
  ]),
1450
- message: y(() => [
1451
- A(o(W), { errors: o(s) }, null, 8, ["errors"])
1469
+ message: y(({ message: B }) => [
1470
+ x(n(W), {
1471
+ message: B,
1472
+ errors: n(r)
1473
+ }, null, 8, ["message", "errors"])
1452
1474
  ]),
1453
1475
  _: 1
1454
- }, 16, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : $("", !0);
1476
+ }, 16, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : E("", !0);
1455
1477
  };
1456
1478
  }
1457
- }), no = /* @__PURE__ */ oe(oo, [["__scopeId", "data-v-a038c365"]]), ao = { class: "container" }, ro = /* @__PURE__ */ F({
1479
+ }), an = /* @__PURE__ */ ne(on, [["__scopeId", "data-v-75dcb518"]]), sn = { class: "container" }, rn = /* @__PURE__ */ L({
1458
1480
  __name: "df-text-area",
1459
1481
  props: /* @__PURE__ */ z({
1460
1482
  rows: {},
@@ -1470,99 +1492,101 @@ const to = {
1470
1492
  visibility: {},
1471
1493
  cssClass: {},
1472
1494
  clearable: { type: Boolean }
1473
- }, H(N({}, K), {
1495
+ }, M(N({}, K), {
1474
1496
  rows: void 0,
1475
1497
  maxRows: void 0
1476
1498
  })),
1477
1499
  emits: ["update:modelValue", "click:clear"],
1478
1500
  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({
1501
+ const l = t, i = e, { errors: o, value: a, vuetifyBindings: v } = j(l, i), { cssClass: u, visibility: c } = re(l);
1502
+ return (b, s) => {
1503
+ const r = A("v-textarea");
1504
+ return g(), $("div", sn, [
1505
+ n(c) !== n(H).SUPPRESS ? (g(), V(r, P({
1484
1506
  key: 0,
1485
- modelValue: o(a),
1486
- "onUpdate:modelValue": i[0] || (i[0] = (m) => G(a) ? a.value = m : null),
1507
+ modelValue: n(a),
1508
+ "onUpdate:modelValue": s[0] || (s[0] = (m) => G(a) ? a.value = m : null),
1487
1509
  class: [
1488
- o(u),
1510
+ n(u),
1489
1511
  {
1490
- "d-none": o(c) === o(M).HIDDEN,
1491
- invisible: o(c) === o(M).INVISIBLE
1512
+ "d-none": n(c) === n(H).HIDDEN,
1513
+ invisible: n(c) === n(H).INVISIBLE
1492
1514
  }
1493
1515
  ],
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"])
1516
+ rows: b.rows,
1517
+ "auto-grow": (b.maxRows || 0) > 0,
1518
+ "max-rows": b.maxRows
1519
+ }, n(v)), {
1520
+ message: y(({ message: m }) => [
1521
+ x(n(W), {
1522
+ message: m,
1523
+ errors: n(o)
1524
+ }, null, 8, ["message", "errors"])
1501
1525
  ]),
1502
1526
  _: 1
1503
- }, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) : $("", !0)
1527
+ }, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) : E("", !0)
1504
1528
  ]);
1505
1529
  };
1506
1530
  }
1507
- }), io = /* @__PURE__ */ oe(ro, [["__scopeId", "data-v-2dc106f6"]]), so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1531
+ }), un = /* @__PURE__ */ ne(rn, [["__scopeId", "data-v-1a04c9b5"]]), cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1508
1532
  __proto__: null,
1509
- DfActions: Rl,
1510
- DfCheckbox: Ol,
1533
+ DfActions: Ol,
1534
+ DfCheckbox: Ml,
1511
1535
  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({
1536
+ DfDateTime: zl,
1537
+ DfFile: Gl,
1538
+ DfInput: ql,
1539
+ DfRtfEditor: en,
1540
+ DfSelect: an,
1541
+ DfTextArea: un
1542
+ }, Symbol.toStringTag, { value: "Module" })), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1519
1543
  __proto__: null,
1520
1544
  VAutocomplete: Qt,
1521
1545
  VBtn: Jt,
1522
1546
  VCheckbox: el,
1523
1547
  VChip: tl,
1524
- VCol: il,
1525
- VColorPicker: ol,
1548
+ VCol: sl,
1549
+ VColorPicker: nl,
1526
1550
  VCombobox: ll,
1527
- VConfirmEdit: nl,
1551
+ VConfirmEdit: ol,
1528
1552
  VDatePicker: al,
1529
- VFileInput: rl,
1553
+ VFileInput: il,
1530
1554
  VIcon: ul,
1531
1555
  VInput: cl,
1532
1556
  VListItem: dl,
1533
1557
  VMenu: ml,
1534
1558
  VNumberInput: pl,
1535
1559
  VProgressLinear: fl,
1536
- VRow: sl,
1560
+ VRow: rl,
1537
1561
  VSelect: vl,
1538
1562
  VSwitch: bl,
1539
- VTextField: gl,
1540
- VTextarea: hl,
1563
+ VTextField: hl,
1564
+ VTextarea: gl,
1541
1565
  VTimePicker: yl
1542
- }, Symbol.toStringTag, { value: "Module" })), Ho = {
1566
+ }, Symbol.toStringTag, { value: "Module" })), Hn = {
1543
1567
  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));
1568
+ var l, i;
1569
+ 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));
1546
1570
  }
1547
1571
  };
1548
1572
  export {
1549
1573
  ae as Action,
1550
1574
  R as ActionDisplayStyle,
1551
- Rl as DfActions,
1552
- Ol as DfCheckbox,
1575
+ Ol as DfActions,
1576
+ Ml as DfCheckbox,
1553
1577
  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,
1578
+ zl as DfDateTime,
1579
+ Gl as DfFile,
1580
+ ql as DfInput,
1581
+ en as DfRtfEditor,
1582
+ an as DfSelect,
1583
+ un as DfTextArea,
1584
+ Hn as DynamicFormsInputs,
1585
+ he as InputBase,
1586
+ W as MessagesWidget,
1587
+ dn as VuetifyComponents,
1564
1588
  K as defaultBaseProps,
1565
- Ae as defaultDisplayStyle,
1589
+ xe as defaultDisplayStyle,
1566
1590
  j as useInputBase
1567
1591
  };
1568
1592
  //# sourceMappingURL=dynamicforms-vuetify-inputs.js.map