@dynamicforms/vuetify-inputs 0.1.10 → 0.1.12

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.
@@ -28,7 +28,7 @@ var ne = (t, e, l) => new Promise((r, n) => {
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 k, 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 R, 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";
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
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";
33
33
  import fe from "vue-ionicon";
34
34
  import { useDisplay as at } from "vuetify";
@@ -216,43 +216,43 @@ const de = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Al = 300, Dl =
216
216
  e({
217
217
  instance: u,
218
218
  lastEditorData: c
219
- }), J(r, (i) => {
220
- u.value && i !== c.value && u.value.data.set(i);
221
- }), J(() => n.disabled, (i) => {
222
- i ? u.value.enableReadOnlyMode(de) : u.value.disableReadOnlyMode(de);
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);
223
223
  });
224
224
  function v() {
225
- const i = window.CKEDITOR_VERSION;
226
- if (!i)
225
+ const s = window.CKEDITOR_VERSION;
226
+ if (!s)
227
227
  return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
228
- const [m] = i.split(".").map(Number);
229
- m >= 42 || i.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
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.");
230
230
  }
231
- function s(i) {
231
+ function i(s) {
232
232
  const m = tt((p) => {
233
233
  if (n.disableTwoWayDataBinding)
234
234
  return;
235
- const g = c.value = i.data.get();
236
- a("update:modelValue", g, p, i), a("input", g, p, i);
235
+ const g = c.value = s.data.get();
236
+ a("update:modelValue", g, p, s), a("input", g, p, s);
237
237
  }, Al, { leading: !0 });
238
- i.model.document.on("change:data", m), i.editing.view.document.on("focus", (p) => {
239
- a("focus", p, i);
240
- }), i.editing.view.document.on("blur", (p) => {
241
- a("blur", p, i);
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);
242
242
  });
243
243
  }
244
244
  return v(), Se(() => {
245
- const i = xl(
245
+ const s = xl(
246
246
  Object.assign({}, n.config)
247
247
  );
248
- r.value && (i.initialData = r.value), n.editor.create(f.value, i).then((m) => {
249
- u.value = Xe(m), s(m), r.value !== i.initialData && m.data.set(r.value), n.disabled && m.enableReadOnlyMode(de), a("ready", m);
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);
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
- }), (i, m) => (h(), k(ee(i.tagName), {
255
+ }), (s, m) => (h(), V(ee(s.tagName), {
256
256
  ref_key: "element",
257
257
  ref: f
258
258
  }, null, 512));
@@ -292,7 +292,7 @@ function j(t, e) {
292
292
  () => t.control ? t.control.errors : (t.errors || []).map((p) => new rt(p))
293
293
  ), a = _(() => n.value.length > 0 ? " " : void 0), f = _(() => t.control ? t.control.enabled : t.enabled !== !1), u = _(
294
294
  () => t.control ? t.control.visibility : t.visibility || xe.DisplayMode.FULL
295
- ), c = _(() => t.label || ""), v = _(() => t.placeholder || ""), s = _(() => t.helpText || ""), i = _(() => t.hint || ""), m = _(() => t.cssClass || "");
295
+ ), c = _(() => t.label || ""), v = _(() => t.placeholder || ""), i = _(() => t.helpText || ""), s = _(() => t.hint || ""), m = _(() => t.cssClass || "");
296
296
  return {
297
297
  value: l,
298
298
  valid: r,
@@ -311,12 +311,12 @@ function j(t, e) {
311
311
  disabled: !f.value,
312
312
  placeholder: v.value,
313
313
  "persistent-placeholder": !lt(v.value),
314
- hint: i.value,
314
+ hint: s.value,
315
315
  persistentHint: !0,
316
316
  // we want persistent hint always
317
317
  hideDetails: "auto",
318
318
  // we want to hide the hint element when hint isn't there
319
- helpText: s.value
319
+ helpText: i.value
320
320
  };
321
321
  })
322
322
  };
@@ -334,10 +334,10 @@ const Nl = { class: "custom-error-display text-error" }, $l = { key: 0 }, El = /
334
334
  key: n,
335
335
  class: re({ "first-error": n === 0, "last-error": n === e.errors.length - 1 })
336
336
  }, [
337
- r.componentName === "template" ? (h(), E("div", $l, te(r.componentBody), 1)) : r.componentName === "vue-markdown" ? (h(), k(o(st), {
337
+ r.componentName === "template" ? (h(), E("div", $l, te(r.componentBody), 1)) : r.componentName === "vue-markdown" ? (h(), V(o(st), {
338
338
  key: 1,
339
339
  source: (a = r.componentBindings) == null ? void 0 : a.source
340
- }, null, 8, ["source"])) : (h(), k(ee(r.componentName), R({
340
+ }, null, 8, ["source"])) : (h(), V(ee(r.componentName), P({
341
341
  key: 2,
342
342
  ref_for: !0
343
343
  }, r.componentBindings), {
@@ -376,8 +376,8 @@ const Nl = { class: "custom-error-display text-error" }, $l = { key: 0 }, El = /
376
376
  emits: ["update:modelValue", "click:clear"],
377
377
  setup(t, { emit: e }) {
378
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, s) => {
380
- const i = x("v-icon"), m = x("v-input");
379
+ return (v, i) => {
380
+ const s = x("v-icon"), m = x("v-input");
381
381
  return o(f) !== o(M).SUPPRESS ? (h(), E("div", {
382
382
  key: 0,
383
383
  class: re([
@@ -405,10 +405,10 @@ const Nl = { class: "custom-error-display text-error" }, $l = { key: 0 }, El = /
405
405
  c.value ? {
406
406
  name: "append",
407
407
  fn: y(() => [
408
- A(i, {
409
- onClick: s[0] || (s[0] = (p) => r("click:clear"))
408
+ A(s, {
409
+ onClick: i[0] || (i[0] = (p) => r("click:clear"))
410
410
  }, {
411
- default: y(() => s[1] || (s[1] = [
411
+ default: y(() => i[1] || (i[1] = [
412
412
  be("mdi-close-circle")
413
413
  ])),
414
414
  _: 1
@@ -421,7 +421,7 @@ const Nl = { class: "custom-error-display text-error" }, $l = { key: 0 }, El = /
421
421
  };
422
422
  }
423
423
  });
424
- var O = /* @__PURE__ */ ((t) => (t[t.BUTTON = 0] = "BUTTON", t[t.TEXT = 1] = "TEXT", t))(O || {});
424
+ var R = /* @__PURE__ */ ((t) => (t[t.BUTTON = 0] = "BUTTON", t[t.TEXT = 1] = "TEXT", t))(R || {});
425
425
  const Ae = 0;
426
426
  ((t) => {
427
427
  function e(n) {
@@ -438,8 +438,8 @@ const Ae = 0;
438
438
  return Object.values(t).includes(a);
439
439
  }
440
440
  t.isDefined = r;
441
- })(O || (O = {}));
442
- Object.freeze(O);
441
+ })(R || (R = {}));
442
+ Object.freeze(R);
443
443
  const De = ["xl", "lg", "md", "sm", "xs"];
444
444
  class ie {
445
445
  constructor(e, l) {
@@ -455,7 +455,7 @@ class ie {
455
455
  var n, a, f;
456
456
  const l = {
457
457
  label: this._value.label,
458
- renderAs: (n = this._value.renderAs) != null ? n : O.BUTTON,
458
+ renderAs: (n = this._value.renderAs) != null ? n : R.BUTTON,
459
459
  showLabel: (a = this._value.showLabel) != null ? a : !0,
460
460
  showIcon: (f = this._value.showIcon) != null ? f : !0
461
461
  }, r = [...De].reverse();
@@ -468,7 +468,7 @@ class ie {
468
468
  static cleanBreakpoint(e) {
469
469
  if (!e || !ot(e)) return null;
470
470
  const l = {};
471
- return e.renderAs !== void 0 && (l.renderAs = O.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;
471
+ 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
472
  }
473
473
  }
474
474
  class ae {
@@ -516,7 +516,7 @@ class ae {
516
516
  label: "Close",
517
517
  // TODO: needs translation
518
518
  icon: "close-outline",
519
- displayStyle: { renderAs: O.BUTTON, showLabel: !0, showIcon: !0 }
519
+ displayStyle: { renderAs: R.BUTTON, showLabel: !0, showIcon: !0 }
520
520
  }, e),
521
521
  this.makeFormAction(l)
522
522
  );
@@ -528,7 +528,7 @@ class ae {
528
528
  label: "Yes",
529
529
  // TODO: needs translation
530
530
  icon: "thumbs-up-outline",
531
- displayStyle: { renderAs: O.BUTTON, showLabel: !0, showIcon: !0 }
531
+ displayStyle: { renderAs: R.BUTTON, showLabel: !0, showIcon: !0 }
532
532
  }, e),
533
533
  this.makeFormAction(l)
534
534
  );
@@ -540,7 +540,7 @@ class ae {
540
540
  label: "No",
541
541
  // TODO: needs translation
542
542
  icon: "thumbs-down-outline",
543
- displayStyle: { renderAs: O.BUTTON, showLabel: !0, showIcon: !0 }
543
+ displayStyle: { renderAs: R.BUTTON, showLabel: !0, showIcon: !0 }
544
544
  }, e),
545
545
  this.makeFormAction(l)
546
546
  );
@@ -558,50 +558,50 @@ const Fl = {
558
558
  },
559
559
  setup(t) {
560
560
  const e = t, l = G(e.actions) ? e.actions : S(e.actions);
561
- function r(s) {
562
- return s.xlAndUp.value ? "xl" : s.lgAndUp.value ? "lg" : s.mdAndUp.value ? "md" : s.smAndUp.value ? "sm" : "xs";
561
+ function r(i) {
562
+ return i.xlAndUp.value ? "xl" : i.lgAndUp.value ? "lg" : i.mdAndUp.value ? "md" : i.smAndUp.value ? "sm" : "xs";
563
563
  }
564
564
  const n = at(), a = _(() => {
565
- const s = {};
566
- s["%breakpoint%"] = r(n);
567
- for (const i of l.value)
568
- s[i.name] = i.displayStyle.getOptionsForBreakpoint(r(n));
569
- return s;
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;
570
570
  });
571
- function f(s) {
572
- var i;
573
- return (i = a.value[s.name].showIcon && s.iconAvailable) != null ? i : !0;
571
+ function f(i) {
572
+ var s;
573
+ return (s = a.value[i.name].showIcon && i.iconAvailable) != null ? s : !0;
574
574
  }
575
- function u(s) {
576
- return a.value[s.name].showLabel && s.labelAvailable ? !0 : !f(s);
575
+ function u(i) {
576
+ return a.value[i.name].showLabel && i.labelAvailable ? !0 : !f(i);
577
577
  }
578
- function c(s) {
579
- var i;
580
- return (i = a.value[s.name].renderAs) != null ? i : O.BUTTON;
578
+ function c(i) {
579
+ var s;
580
+ return (s = a.value[i.name].renderAs) != null ? s : R.BUTTON;
581
581
  }
582
- function v(s) {
583
- var i;
584
- return s.labelAvailable ? (i = s.formAction.label) != null ? i : "" : s.name;
582
+ function v(i) {
583
+ var s;
584
+ return i.labelAvailable ? (s = i.formAction.label) != null ? s : "" : i.name;
585
585
  }
586
- return (s, i) => {
586
+ return (i, s) => {
587
587
  const m = x("v-btn");
588
588
  return o(l).length > 0 ? (h(), E("div", {
589
589
  key: 0,
590
590
  class: re(["text-end", {
591
- "button-group": s.showAsGroup === "grouped" || s.showAsGroup === "grouped-no-borders",
592
- "with-border": s.showAsGroup === "grouped"
591
+ "button-group": i.showAsGroup === "grouped" || i.showAsGroup === "grouped-no-borders",
592
+ "with-border": i.showAsGroup === "grouped"
593
593
  }])
594
594
  }, [
595
- (h(!0), E($e, null, Ee(o(l), (p, g) => (h(), k(m, {
595
+ (h(!0), E($e, null, Ee(o(l), (p, g) => (h(), V(m, {
596
596
  key: g,
597
- variant: c(p) === o(O).BUTTON ? "tonal" : "text",
597
+ variant: c(p) === o(R).BUTTON ? "tonal" : "text",
598
598
  elevation: 0,
599
599
  class: re(g !== -1 ? "" : "ms-3"),
600
- size: s.buttonSize,
601
- onClick: Qe((w) => p.formAction.execute(w), ["stop"])
600
+ size: i.buttonSize,
601
+ onClick: Qe((I) => p.formAction.execute(I), ["stop"])
602
602
  }, {
603
603
  default: y(() => [
604
- f(p) ? (h(), k(o(fe), {
604
+ f(p) ? (h(), V(o(fe), {
605
605
  key: 0,
606
606
  class: "action-icon",
607
607
  name: p.formAction.icon
@@ -640,14 +640,14 @@ const Fl = {
640
640
  }
641
641
  });
642
642
  function v() {
643
- const s = nt(a.value);
644
- s === !0 ? a.value = l.allowNull ? null : !1 : a.value = s === !1;
643
+ const i = nt(a.value);
644
+ i === !0 ? a.value = l.allowNull ? null : !1 : a.value = i === !1;
645
645
  }
646
- return (s, i) => {
646
+ return (i, s) => {
647
647
  const m = x("v-checkbox");
648
- return h(), k(m, R({
648
+ return h(), V(m, P({
649
649
  modelValue: c.value,
650
- "onUpdate:modelValue": i[0] || (i[0] = (p) => c.value = p)
650
+ "onUpdate:modelValue": s[0] || (s[0] = (p) => c.value = p)
651
651
  }, o(f), {
652
652
  density: "compact",
653
653
  indeterminate: u.value,
@@ -681,26 +681,23 @@ const Fl = {
681
681
  emits: ["update:modelValue", "click:clear"],
682
682
  setup(t, { emit: e }) {
683
683
  const l = t, r = e, { errors: n, value: a, vuetifyBindings: f } = j(l, r), u = S(!1), c = _(() => [
684
- (s) => !s && l.allowNull || /^#?([a-fA-F0-9]{6}[a-fA-F0-9]{0,2})$/.test(s) ? !0 : "Not a valid hex string."
684
+ (v) => !v && l.allowNull || /^#?([a-fA-F0-9]{6}[a-fA-F0-9]{0,2})$/.test(v) ? !0 : "Not a valid hex string."
685
685
  ]);
686
- function v() {
687
- u.value = !1;
688
- }
689
- return (s, i) => {
690
- const m = x("v-text-field"), p = x("v-color-picker"), g = x("v-menu");
691
- return h(), k(g, {
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, {
692
689
  modelValue: u.value,
693
- "onUpdate:modelValue": i[2] || (i[2] = (w) => u.value = w),
690
+ "onUpdate:modelValue": i[2] || (i[2] = (g) => u.value = g),
694
691
  location: "top start",
695
692
  origin: "bottom start",
696
693
  "close-on-content-click": !1
697
694
  }, {
698
- activator: y(({ props: w }) => [
699
- A(m, R({
695
+ activator: y(({ props: g }) => [
696
+ A(s, P({
700
697
  modelValue: o(a),
701
- "onUpdate:modelValue": i[0] || (i[0] = (L) => G(a) ? a.value = L : null)
702
- }, N(N({}, o(f)), w), {
703
- clearable: s.allowNull,
698
+ "onUpdate:modelValue": i[0] || (i[0] = (I) => G(a) ? a.value = I : null)
699
+ }, N(N({}, o(f)), g), {
700
+ clearable: v.allowNull,
704
701
  type: "text",
705
702
  variant: "underlined",
706
703
  rules: c.value
@@ -717,12 +714,9 @@ const Fl = {
717
714
  }, 1040, ["modelValue", "clearable", "rules"])
718
715
  ]),
719
716
  default: y(() => [
720
- A(p, {
717
+ A(m, {
721
718
  modelValue: o(a),
722
- "onUpdate:modelValue": [
723
- i[1] || (i[1] = (w) => G(a) ? a.value = w : null),
724
- v
725
- ],
719
+ "onUpdate:modelValue": i[1] || (i[1] = (g) => G(a) ? a.value = g : null),
726
720
  mode: "hexa"
727
721
  }, null, 8, ["modelValue"])
728
722
  ]),
@@ -754,28 +748,28 @@ const Fl = {
754
748
  })),
755
749
  emits: ["update:modelValue", "click:clear"],
756
750
  setup(t, { emit: e }) {
757
- const l = t, r = e, { value: n, vuetifyBindings: a } = j(l, r), { inputType: f, displayFormatDate: u, displayFormatTime: c } = se(l), v = S(""), s = _({
751
+ const l = t, r = e, { value: n, vuetifyBindings: a } = j(l, r), { inputType: f, displayFormatDate: u, displayFormatTime: c } = se(l), v = S(""), i = _({
758
752
  get() {
759
753
  return o(v) !== "";
760
754
  },
761
755
  set(b) {
762
756
  b ? v.value = "date" : v.value = "";
763
757
  }
764
- }), i = (b) => `${Y(b, "yyyy-MM-dd")}T${Y(b, "HH:mm")}:00`, m = S(null);
758
+ }), s = (b) => `${Y(b, "yyyy-MM-dd")}T${Y(b, "HH:mm")}:00`, m = S(null);
765
759
  function p(b, d) {
766
760
  if (b == null)
767
761
  m.value = null;
768
762
  else if (d === -1)
769
763
  if (o(f) === "time")
770
- m.value = i(/* @__PURE__ */ new Date()), p(`T${b}`, 1);
764
+ m.value = s(/* @__PURE__ */ new Date()), p(`T${b}`, 1);
771
765
  else {
772
- const T = i(new Date(b));
773
- p(T, 0), p(T, 1);
766
+ const k = s(new Date(b));
767
+ p(k, 0), p(k, 1);
774
768
  }
775
769
  else {
776
- m.value == null && (m.value = i(/* @__PURE__ */ new Date()));
777
- const T = m.value.split(/[TZ]/g), P = b.split(/[TZ]/g);
778
- T[d] = P[d], m.value = i(/* @__PURE__ */ new Date(`${T[0]}T${T[1].split(".")[0]}`)), o(f) === "date" ? n.value = T[0] : o(f) === "time" ? n.value = T[1] : n.value = o(m) + Y(/* @__PURE__ */ new Date(), "XXX");
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");
779
773
  }
780
774
  }
781
775
  J(n, (b) => p(b, -1), { immediate: !0 });
@@ -787,9 +781,9 @@ const Fl = {
787
781
  return Number.isNaN(d.getTime()) ? null : d;
788
782
  },
789
783
  set(b) {
790
- p(i(b), 0);
784
+ p(s(b), 0);
791
785
  }
792
- }), w = _({
786
+ }), I = _({
793
787
  get() {
794
788
  const b = o(m);
795
789
  return b == null ? "" : b.split(/[TZ]/g)[1].split(".")[0];
@@ -797,7 +791,7 @@ const Fl = {
797
791
  set(b) {
798
792
  p(`T${b}`, 1);
799
793
  }
800
- }), L = _({
794
+ }), O = _({
801
795
  get() {
802
796
  const b = o(g);
803
797
  return b == null ? "" : Y(b, o(u));
@@ -805,7 +799,7 @@ const Fl = {
805
799
  set(b) {
806
800
  try {
807
801
  const d = ut(b, o(u), /* @__PURE__ */ new Date());
808
- p(i(d), 0);
802
+ p(s(d), 0);
809
803
  } catch (d) {
810
804
  console.error(d);
811
805
  }
@@ -818,31 +812,31 @@ const Fl = {
818
812
  set(b) {
819
813
  const d = b.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
820
814
  if (d == null) return;
821
- let T = Ce(d[1]);
822
- const P = Ce(d[2]);
823
- Ie(T) || Ie(P) || (d[3] && d[3].toLowerCase() === "pm" && T < 13 && (T += 12), p(`T${T.toString().padStart(2, "0")}:${P.toString().padStart(2, "0")}:00`, 1));
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));
824
818
  }
825
819
  });
826
820
  return (b, d) => {
827
- const T = x("v-text-field"), P = x("v-date-picker"), q = x("v-confirm-edit"), I = x("v-time-picker"), C = x("v-menu");
828
- return h(), k(o(ge), R(l, {
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, {
829
823
  clearable: "",
830
- "onClick:clear": d[13] || (d[13] = (V) => n.value = null)
824
+ "onClick:clear": d[13] || (d[13] = (w) => n.value = null)
831
825
  }), {
832
826
  default: y(() => [
833
- A(C, {
834
- modelValue: s.value,
835
- "onUpdate:modelValue": d[12] || (d[12] = (V) => s.value = V),
827
+ A(T, {
828
+ modelValue: i.value,
829
+ "onUpdate:modelValue": d[12] || (d[12] = (w) => i.value = w),
836
830
  location: "top start",
837
831
  origin: `bottom ${o(f) === "datetime" ? "center" : "start"}`,
838
832
  "close-on-content-click": !1
839
833
  }, {
840
- activator: y(({ props: V }) => [
834
+ activator: y(({ props: w }) => [
841
835
  le("div", Ml, [
842
- ["date", "datetime"].includes(o(f)) ? (h(), k(T, R({
836
+ ["date", "datetime"].includes(o(f)) ? (h(), V(k, P({
843
837
  key: 0,
844
- modelValue: L.value,
845
- "onUpdate:modelValue": d[0] || (d[0] = (U) => L.value = U),
838
+ modelValue: O.value,
839
+ "onUpdate:modelValue": d[0] || (d[0] = (U) => O.value = U),
846
840
  style: { "flex-grow": "4" },
847
841
  density: "compact",
848
842
  clearable: !1,
@@ -850,11 +844,11 @@ const Fl = {
850
844
  readonly: o(a).readonly,
851
845
  disabled: o(a).disabled,
852
846
  name: `${o(a).name}-date`
853
- }, V, {
847
+ }, w, {
854
848
  onClick: d[1] || (d[1] = (U) => v.value = "date"),
855
849
  onKeydown: d[2] || (d[2] = ke((U) => v.value = "date", ["space"]))
856
850
  }), null, 16, ["modelValue", "readonly", "disabled", "name"])) : $("", !0),
857
- ["time", "datetime"].includes(o(f)) ? (h(), k(T, R({
851
+ ["time", "datetime"].includes(o(f)) ? (h(), V(k, P({
858
852
  key: 1,
859
853
  modelValue: B.value,
860
854
  "onUpdate:modelValue": d[3] || (d[3] = (U) => B.value = U),
@@ -865,53 +859,53 @@ const Fl = {
865
859
  readonly: o(a).readonly,
866
860
  disabled: o(a).disabled,
867
861
  name: `${o(a).name}-time`
868
- }, V, {
862
+ }, w, {
869
863
  onClick: d[4] || (d[4] = (U) => v.value = "time"),
870
864
  onKeydown: d[5] || (d[5] = ke((U) => v.value = "time", ["space"]))
871
865
  }), null, 16, ["modelValue", "readonly", "disabled", "name"])) : $("", !0)
872
866
  ])
873
867
  ]),
874
868
  default: y(() => [
875
- v.value === "date" ? (h(), k(q, {
869
+ v.value === "date" ? (h(), V(q, {
876
870
  key: 0,
877
871
  modelValue: g.value,
878
- "onUpdate:modelValue": d[6] || (d[6] = (V) => g.value = V),
879
- onCancel: d[7] || (d[7] = (V) => v.value = ""),
880
- onSave: d[8] || (d[8] = (V) => v.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 = "")
881
875
  }, {
882
- default: y(({ model: V, actions: U }) => [
883
- A(P, {
884
- modelValue: V.value,
885
- "onUpdate:modelValue": (D) => V.value = D,
876
+ default: y(({ model: w, actions: U }) => [
877
+ A(L, {
878
+ modelValue: w.value,
879
+ "onUpdate:modelValue": (D) => w.value = D,
886
880
  "hide-header": !0,
887
881
  "first-day-of-week": 1,
888
882
  "show-adjacent-months": !0,
889
883
  "show-week": !0
890
884
  }, {
891
885
  actions: y(() => [
892
- (h(), k(ee(U)))
886
+ (h(), V(ee(U)))
893
887
  ]),
894
888
  _: 2
895
889
  }, 1032, ["modelValue", "onUpdate:modelValue"])
896
890
  ]),
897
891
  _: 1
898
892
  }, 8, ["modelValue"])) : $("", !0),
899
- v.value === "time" ? (h(), k(q, {
893
+ v.value === "time" ? (h(), V(q, {
900
894
  key: 1,
901
- modelValue: w.value,
902
- "onUpdate:modelValue": d[9] || (d[9] = (V) => w.value = V),
903
- onCancel: d[10] || (d[10] = (V) => v.value = ""),
904
- onSave: d[11] || (d[11] = (V) => v.value = "")
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 = "")
905
899
  }, {
906
- default: y(({ model: V, actions: U }) => [
907
- A(I, {
908
- modelValue: V.value,
909
- "onUpdate:modelValue": (D) => V.value = D,
900
+ default: y(({ model: w, actions: U }) => [
901
+ A(C, {
902
+ modelValue: w.value,
903
+ "onUpdate:modelValue": (D) => w.value = D,
910
904
  "hide-header": !0,
911
905
  format: "24hr"
912
906
  }, {
913
907
  actions: y(() => [
914
- (h(), k(ee(U)))
908
+ (h(), V(ee(U)))
915
909
  ]),
916
910
  _: 2
917
911
  }, 1032, ["modelValue", "onUpdate:modelValue"])
@@ -944,7 +938,7 @@ const Fl = {
944
938
  }, K),
945
939
  emits: ["update:modelValue", "click:clear"],
946
940
  setup(t, { emit: e }) {
947
- 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)), s = S(), i = _(() => !s.value && n.value ? l.modelValue : "");
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 : "");
948
942
  function m() {
949
943
  f.value && window.clearInterval(f.value);
950
944
  }
@@ -958,49 +952,49 @@ const Fl = {
958
952
  });
959
953
  function g() {
960
954
  return ne(this, null, function* () {
961
- n.value && (yield l.comms.delete(n.value)), n.value = null, c.value = 0, v.value = Math.round(Math.random() * 1e3), u.value = null, s.value = null, m();
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();
962
956
  });
963
957
  }
964
- function w(B) {
958
+ function I(B) {
965
959
  return ne(this, null, function* () {
966
960
  c.value = -1, u.value = B, new FormData().append("file", B, B.name);
967
961
  try {
968
962
  n.value = yield l.comms.upload(
969
963
  B,
970
- (d, T) => {
971
- c.value = Math.round(d * 100 / T);
964
+ (d, k) => {
965
+ c.value = Math.round(d * 100 / k);
972
966
  }
973
967
  ), c.value = 100, p();
974
968
  } catch (d) {
975
- throw c.value = 0, u.value = null, v.value = Math.round(Math.random() * 1e3), s.value = null, d;
969
+ throw c.value = 0, u.value = null, v.value = Math.round(Math.random() * 1e3), i.value = null, d;
976
970
  }
977
971
  });
978
972
  }
979
- function L(B) {
980
- B && (Array.isArray(B) ? console.error("Uploading multiple files not supported right now") : w(B));
973
+ function O(B) {
974
+ B && (Array.isArray(B) ? console.error("Uploading multiple files not supported right now") : I(B));
981
975
  }
982
976
  return (B, b) => {
983
- const d = x("v-progress-linear"), T = x("v-file-input");
984
- return h(), k(o(ge), R(l, {
977
+ const d = x("v-progress-linear"), k = x("v-file-input");
978
+ return h(), V(o(ge), P(l, {
985
979
  clearable: "",
986
980
  "onClick:clear": g
987
981
  }), {
988
982
  default: y(() => [
989
983
  le("div", zl, [
990
- u.value && c.value < 100 ? (h(), k(d, {
984
+ u.value && c.value < 100 ? (h(), V(d, {
991
985
  key: 0,
992
986
  "model-value": c.value,
993
987
  indeterminate: c.value === -1,
994
988
  height: "10",
995
989
  style: { position: "absolute", top: "50%", transform: "translateY(-50%)", width: "100%" }
996
990
  }, null, 8, ["model-value", "indeterminate"])) : $("", !0),
997
- A(T, {
998
- modelValue: s.value,
991
+ A(k, {
992
+ modelValue: i.value,
999
993
  "onUpdate:modelValue": [
1000
- b[0] || (b[0] = (P) => s.value = P),
1001
- L
994
+ b[0] || (b[0] = (L) => i.value = L),
995
+ O
1002
996
  ],
1003
- label: i.value,
997
+ label: s.value,
1004
998
  readonly: o(a).readonly,
1005
999
  disabled: o(a).disabled,
1006
1000
  name: o(a).name,
@@ -1044,14 +1038,14 @@ const Fl = {
1044
1038
  })),
1045
1039
  emits: ["update:modelValue", "click:clear"],
1046
1040
  setup(t, { emit: e }) {
1047
- const l = t, r = e, { errors: n, value: a, vuetifyBindings: f } = j(l, r), { inputType: u, max: c, min: v, precision: s, step: i } = se(l), m = _(() => u.value === "number"), p = _(() => m.value ? { min: v.value, max: c.value, precision: s.value, step: i.value } : {});
1048
- return (g, w) => {
1049
- const L = x("v-text-field"), B = x("v-number-input");
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: v.value, max: c.value, precision: i.value, step: s.value } : {});
1042
+ return (g, I) => {
1043
+ const O = x("v-text-field"), B = x("v-number-input");
1050
1044
  return h(), E("div", Gl, [
1051
- m.value ? (h(), k(B, R({
1045
+ m.value ? (h(), V(B, P({
1052
1046
  key: 1,
1053
1047
  modelValue: o(a),
1054
- "onUpdate:modelValue": w[1] || (w[1] = (b) => G(a) ? a.value = b : null)
1048
+ "onUpdate:modelValue": I[1] || (I[1] = (b) => G(a) ? a.value = b : null)
1055
1049
  }, N(N({}, o(f)), p.value), {
1056
1050
  density: "compact",
1057
1051
  "control-variant": "stacked",
@@ -1061,10 +1055,10 @@ const Fl = {
1061
1055
  A(o(W), { errors: o(n) }, null, 8, ["errors"])
1062
1056
  ]),
1063
1057
  _: 1
1064
- }, 16, ["modelValue"])) : (h(), k(L, R({
1058
+ }, 16, ["modelValue"])) : (h(), V(O, P({
1065
1059
  key: 0,
1066
1060
  modelValue: o(a),
1067
- "onUpdate:modelValue": w[0] || (w[0] = (b) => G(a) ? a.value = b : null)
1061
+ "onUpdate:modelValue": I[0] || (I[0] = (b) => G(a) ? a.value = b : null)
1068
1062
  }, o(f), {
1069
1063
  variant: "underlined",
1070
1064
  type: o(u)
@@ -1086,8 +1080,8 @@ const Fl = {
1086
1080
  },
1087
1081
  emits: ["update:modelValue"],
1088
1082
  setup(t, { expose: e, emit: l }) {
1089
- Je((i) => ({
1090
- "3d4d5a06": i.minHeight
1083
+ Je((s) => ({
1084
+ "3d4d5a06": s.minHeight
1091
1085
  }));
1092
1086
  const r = l, n = S(!1), a = Yt, v = {
1093
1087
  toolbar: {
@@ -1223,21 +1217,21 @@ const Fl = {
1223
1217
  Se(() => {
1224
1218
  n.value = !0;
1225
1219
  });
1226
- const s = (i) => {
1220
+ const i = (s) => {
1227
1221
  };
1228
- return e({ onEditorReady: s }), (i, m) => {
1222
+ return e({ onEditorReady: i }), (s, m) => {
1229
1223
  const p = x("ckeditor");
1230
1224
  return h(), E("div", ql, [
1231
1225
  le("div", Zl, [
1232
1226
  le("div", Yl, [
1233
- n.value ? (h(), k(p, {
1227
+ n.value ? (h(), V(p, {
1234
1228
  key: 0,
1235
- "model-value": i.modelValue,
1229
+ "model-value": s.modelValue,
1236
1230
  editor: o(a),
1237
1231
  config: v,
1238
- disabled: i.disabled,
1239
- style: he(`min-height: ${i.minHeight}`),
1240
- onReady: s,
1232
+ disabled: s.disabled,
1233
+ style: he(`min-height: ${s.minHeight}`),
1234
+ onReady: i,
1241
1235
  "onUpdate:modelValue": m[0] || (m[0] = (g) => r("update:modelValue", g))
1242
1236
  }, null, 8, ["model-value", "editor", "disabled", "style"])) : $("", !0)
1243
1237
  ], 512)
@@ -1264,7 +1258,7 @@ const Fl = {
1264
1258
  emits: ["update:modelValue", "click:clear"],
1265
1259
  setup(t, { emit: e }) {
1266
1260
  const l = t, r = e, { value: n, vuetifyBindings: a } = j(l, r);
1267
- return (f, u) => (h(), k(o(ge), Ue(Fe(l)), {
1261
+ return (f, u) => (h(), V(o(ge), Ue(Fe(l)), {
1268
1262
  default: y(() => [
1269
1263
  A(Ql, {
1270
1264
  ref: "$editor",
@@ -1340,49 +1334,49 @@ const to = {
1340
1334
  })),
1341
1335
  emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
1342
1336
  setup(t, { emit: e }) {
1343
- const l = t, { choices: r } = l, { multiple: n, allowTags: a, allowNull: f, cssClass: u, visibility: c } = se(l), v = S(!1), s = e, { errors: i, value: m, vuetifyBindings: p } = j(l, s), g = S(null), w = S(r || []), L = S(!1), B = _(() => eo(w.value));
1344
- function b(I) {
1345
- s("update:modelValueDisplay", ve(w.value, I));
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));
1346
1340
  }
1347
- J(g, (I) => {
1341
+ J(g, (C) => {
1348
1342
  p.value.readonly || et(() => {
1349
- const C = Q(I, n.value);
1350
- b(C), m.value = C;
1343
+ const T = Q(C, n.value);
1344
+ b(T), m.value = T;
1351
1345
  });
1352
1346
  }, { deep: !0 });
1353
1347
  function d() {
1354
1348
  if (p.value.readonly || a.value) return;
1355
- const I = Q(g.value, n.value);
1356
- me(I, g, n.value, !1, w.value), m.value = I;
1349
+ const C = Q(g.value, n.value);
1350
+ me(C, g, n.value, !1, I.value), m.value = C;
1357
1351
  }
1358
- function T(I) {
1359
- let C;
1360
- n.value && Array.isArray(g.value) ? C = Q(g.value.filter((V) => V !== I), n.value) : C = null, me(C, g, n.value, !1, w.value), m.value = C;
1352
+ function k(C) {
1353
+ 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;
1361
1355
  }
1362
- function P(I, C) {
1356
+ function L(C, T) {
1363
1357
  return ne(this, null, function* () {
1364
1358
  if (!(r || l.fetchChoices === void 0)) {
1365
- L.value = !0;
1359
+ O.value = !0;
1366
1360
  try {
1367
- w.value = yield l.fetchChoices(I, C);
1361
+ I.value = yield l.fetchChoices(C, T);
1368
1362
  } finally {
1369
- L.value = !1;
1363
+ O.value = !1;
1370
1364
  }
1371
1365
  }
1372
1366
  });
1373
1367
  }
1374
1368
  function q() {
1375
- let I = m.value;
1376
- !f.value && I == null && B.value.length && (I = B.value[0].value), I = Q(I, n.value), me(I, g, n.value, a.value, w.value), b(I), m.value = I;
1369
+ 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;
1377
1371
  }
1378
- return q(), l.fetchChoices !== void 0 && P(void 0, m.value).then(() => {
1372
+ return q(), l.fetchChoices !== void 0 && L(void 0, m.value).then(() => {
1379
1373
  q();
1380
- }), (I, C) => {
1381
- const V = x("v-chip"), U = x("v-list-item");
1382
- return o(c) !== o(M).SUPPRESS ? (h(), k(ee(o(a) ? "v-combobox" : "v-autocomplete"), R({
1374
+ }), (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({
1383
1377
  key: 0,
1384
1378
  modelValue: g.value,
1385
- "onUpdate:modelValue": C[0] || (C[0] = (D) => g.value = D),
1379
+ "onUpdate:modelValue": T[0] || (T[0] = (D) => g.value = D),
1386
1380
  class: [
1387
1381
  o(u),
1388
1382
  {
@@ -1400,25 +1394,25 @@ const to = {
1400
1394
  "closable-chips": o(f) || o(n) && g.value.length > 1,
1401
1395
  clearable: o(f),
1402
1396
  multiple: o(n),
1403
- loading: L.value,
1397
+ loading: O.value,
1404
1398
  "hide-selected": !1,
1405
1399
  "aria-describedby": o(p).helpText ? `${o(p).name}-help` : null,
1406
1400
  "menu-props": { maxHeight: "400" },
1407
1401
  "hide-details": "auto",
1408
- "onUpdate:search": C[1] || (C[1] = (D) => P(D, void 0)),
1402
+ "onUpdate:search": T[1] || (T[1] = (D) => L(D, void 0)),
1409
1403
  "onUpdate:modelValue": d,
1410
- "onClick:clear": C[2] || (C[2] = (D) => g.value.value = null),
1411
- onFocus: C[3] || (C[3] = (D) => v.value = !0),
1412
- onBlur: C[4] || (C[4] = (D) => v.value = !1)
1404
+ "onClick:clear": T[2] || (T[2] = (D) => g.value.value = null),
1405
+ onFocus: T[3] || (T[3] = (D) => v.value = !0),
1406
+ onBlur: T[4] || (T[4] = (D) => v.value = !1)
1413
1407
  }), {
1414
1408
  chip: y(({ item: D }) => [
1415
- (h(), k(V, {
1409
+ (h(), V(w, {
1416
1410
  key: D.value,
1417
1411
  label: "",
1418
1412
  size: "small",
1419
1413
  variant: o(n) ? "tonal" : "text",
1420
1414
  closable: o(n),
1421
- "onClick:close": (X) => T(D.value)
1415
+ "onClick:close": (X) => k(D.value)
1422
1416
  }, {
1423
1417
  prepend: y(() => {
1424
1418
  var X;
@@ -1454,7 +1448,7 @@ const to = {
1454
1448
  }, 1040)
1455
1449
  ]),
1456
1450
  message: y(() => [
1457
- A(o(W), { errors: o(i) }, null, 8, ["errors"])
1451
+ A(o(W), { errors: o(s) }, null, 8, ["errors"])
1458
1452
  ]),
1459
1453
  _: 1
1460
1454
  }, 16, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : $("", !0);
@@ -1483,13 +1477,13 @@ const to = {
1483
1477
  emits: ["update:modelValue", "click:clear"],
1484
1478
  setup(t, { emit: e }) {
1485
1479
  const l = t, r = e, { errors: n, value: a, vuetifyBindings: f } = j(l, r), { cssClass: u, visibility: c } = se(l);
1486
- return (v, s) => {
1487
- const i = x("v-textarea");
1480
+ return (v, i) => {
1481
+ const s = x("v-textarea");
1488
1482
  return h(), E("div", ao, [
1489
- o(c) !== o(M).SUPPRESS ? (h(), k(i, R({
1483
+ o(c) !== o(M).SUPPRESS ? (h(), V(s, P({
1490
1484
  key: 0,
1491
1485
  modelValue: o(a),
1492
- "onUpdate:modelValue": s[0] || (s[0] = (m) => G(a) ? a.value = m : null),
1486
+ "onUpdate:modelValue": i[0] || (i[0] = (m) => G(a) ? a.value = m : null),
1493
1487
  class: [
1494
1488
  o(u),
1495
1489
  {
@@ -1553,7 +1547,7 @@ const to = {
1553
1547
  };
1554
1548
  export {
1555
1549
  ae as Action,
1556
- O as ActionDisplayStyle,
1550
+ R as ActionDisplayStyle,
1557
1551
  Rl as DfActions,
1558
1552
  Ol as DfCheckbox,
1559
1553
  Hl as DfColor,