@dynamicforms/vuetify-inputs 0.7.12 → 0.7.13

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,41 +1,41 @@
1
1
  var ht = Object.defineProperty, bt = Object.defineProperties;
2
2
  var gt = Object.getOwnPropertyDescriptors;
3
3
  var We = Object.getOwnPropertySymbols;
4
- var wt = Object.prototype.hasOwnProperty, yt = Object.prototype.propertyIsEnumerable;
4
+ var yt = Object.prototype.hasOwnProperty, wt = Object.prototype.propertyIsEnumerable;
5
5
  var Pe = (e, t, n) => t in e ? ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, I = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- wt.call(t, n) && Pe(e, n, t[n]);
7
+ yt.call(t, n) && Pe(e, n, t[n]);
8
8
  if (We)
9
9
  for (var n of We(t))
10
- yt.call(t, n) && Pe(e, n, t[n]);
10
+ wt.call(t, n) && Pe(e, n, t[n]);
11
11
  return e;
12
12
  }, L = (e, t) => bt(e, gt(t));
13
13
  var ge = (e, t, n) => Pe(e, typeof t != "symbol" ? t + "" : t, n);
14
14
  var Te = (e, t, n) => new Promise((l, a) => {
15
- var r = (i) => {
15
+ var r = (u) => {
16
16
  try {
17
- p(n.next(i));
18
- } catch (u) {
19
- a(u);
17
+ p(n.next(u));
18
+ } catch (s) {
19
+ a(s);
20
20
  }
21
- }, s = (i) => {
21
+ }, i = (u) => {
22
22
  try {
23
- p(n.throw(i));
24
- } catch (u) {
25
- a(u);
23
+ p(n.throw(u));
24
+ } catch (s) {
25
+ a(s);
26
26
  }
27
- }, p = (i) => i.done ? l(i.value) : Promise.resolve(i.value).then(r, s);
27
+ }, p = (u) => u.done ? l(u.value) : Promise.resolve(u.value).then(r, i);
28
28
  p((n = n.apply(e, t)).next());
29
29
  });
30
30
  import * as Oe from "vue";
31
- import { defineComponent as R, useModel as kt, ref as E, watch as ue, onMounted as tt, markRaw as Vt, onBeforeUnmount as nt, openBlock as V, createBlock as S, resolveDynamicComponent as Ce, mergeModels as ze, version as Ct, isRef as ce, computed as g, unref as o, resolveComponent as M, createElementBlock as z, normalizeClass as te, Fragment as Fe, createCommentVNode as U, createTextVNode as jt, toDisplayString as Ne, inject as Ee, createSlots as Me, withCtx as w, createVNode as D, renderSlot as fe, normalizeProps as re, guardReactiveProps as ie, createElementVNode as de, renderList as Tt, withModifiers as xt, mergeProps as O, mergeDefaults as ne, normalizeStyle as ot, toRefs as De, withKeys as Ke, useCssVars as _t, nextTick as Xe } from "vue";
31
+ import { defineComponent as H, useModel as kt, ref as E, watch as ue, onMounted as tt, markRaw as Vt, onBeforeUnmount as nt, openBlock as V, createBlock as S, resolveDynamicComponent as Ce, mergeModels as ze, version as Ct, isRef as ce, computed as g, unref as o, resolveComponent as M, createElementBlock as K, normalizeClass as te, Fragment as Fe, createCommentVNode as U, createTextVNode as jt, toDisplayString as Ne, inject as Ee, createSlots as Me, withCtx as y, createVNode as D, renderSlot as fe, normalizeProps as re, guardReactiveProps as ie, createElementVNode as de, renderList as Tt, mergeProps as R, withModifiers as xt, mergeDefaults as ne, normalizeStyle as ot, toRefs as De, withKeys as Ke, useCssVars as _t, nextTick as Xe } from "vue";
32
32
  import { debounce as Bt, isString as se, isEmpty as Ve, isObjectLike as It, isBoolean as qe, clone as Dt, toNumber as Ge, isNaN as Ye, isArray as Qe, castArray as lt, first as at, unionBy as St } from "lodash-es";
33
+ import Ze, { MessagesWidget as Pt, MdString as Et, ValidationErrorRenderContent as At, DisplayMode as z, Action as $t } from "@dynamicforms/vue-forms";
33
34
  import { CachedIcon as je } from "vue-cached-icon";
34
- import Ze, { MessagesWidget as Pt, MdString as Et, ValidationErrorRenderContent as At, DisplayMode as Y, Action as $t } from "@dynamicforms/vue-forms";
35
35
  import Ft from "vue-markdown-render";
36
36
  import { useDisplay as Mt } from "vuetify";
37
- import { parse as Nt, format as we } from "date-fns";
38
- import { AccessibilityHelp as Lt, Alignment as Ut, AutoImage as Rt, AutoLink as Ht, Autosave as Wt, BalloonToolbar as Ot, BlockQuote as zt, Bold as Kt, CloudServices as Xt, Essentials as qt, GeneralHtmlSupport as Gt, Heading as Yt, HorizontalLine as Qt, ImageBlock as Zt, ImageCaption as Jt, ImageInline as en, ImageInsertViaUrl as tn, ImageResize as nn, ImageStyle as on, ImageToolbar as ln, ImageUpload as an, Indent as rn, IndentBlock as sn, Italic as un, Link as cn, List as dn, Autoformat as mn, MediaEmbed as fn, Paragraph as pn, PasteFromMarkdownExperimental as vn, PasteFromOffice as hn, SelectAll as bn, Style as gn, Table as wn, TableCellProperties as yn, TableColumnResize as kn, TableProperties as Vn, TableToolbar as Cn, Undo as jn, TextTransformation as Tn, Base64UploadAdapter as xn, ClassicEditor as _n } from "ckeditor5";
37
+ import { parse as Nt, format as ye } from "date-fns";
38
+ import { AccessibilityHelp as Lt, Alignment as Ut, AutoImage as Rt, AutoLink as Ht, Autosave as Wt, BalloonToolbar as Ot, BlockQuote as zt, Bold as Kt, CloudServices as Xt, Essentials as qt, GeneralHtmlSupport as Gt, Heading as Yt, HorizontalLine as Qt, ImageBlock as Zt, ImageCaption as Jt, ImageInline as en, ImageInsertViaUrl as tn, ImageResize as nn, ImageStyle as on, ImageToolbar as ln, ImageUpload as an, Indent as rn, IndentBlock as sn, Italic as un, Link as cn, List as dn, Autoformat as mn, MediaEmbed as fn, Paragraph as pn, PasteFromMarkdownExperimental as vn, PasteFromOffice as hn, SelectAll as bn, Style as gn, Table as yn, TableCellProperties as wn, TableColumnResize as kn, TableProperties as Vn, TableToolbar as Cn, Undo as jn, TextTransformation as Tn, Base64UploadAdapter as xn, ClassicEditor as _n } from "ckeditor5";
39
39
  import { VAutocomplete as Bn } from "vuetify/components/VAutocomplete";
40
40
  import { VBtn as In } from "vuetify/components/VBtn";
41
41
  import { VCheckbox as Dn } from "vuetify/components/VCheckbox";
@@ -171,7 +171,7 @@ function ut() {
171
171
  const e = it();
172
172
  return e ? !Le(e.version) || Ue(e.version) || rt(e.version).major >= 48 : !1;
173
173
  }
174
- const Ae = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", io = 300, so = /* @__PURE__ */ R({
174
+ const Ae = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", io = 300, so = /* @__PURE__ */ H({
175
175
  name: "CKEditor",
176
176
  __name: "ckeditor",
177
177
  props: /* @__PURE__ */ ze({
@@ -186,49 +186,49 @@ const Ae = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", io = 300, so =
186
186
  }),
187
187
  emits: /* @__PURE__ */ ze(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
188
188
  setup(e, { expose: t, emit: n }) {
189
- const l = kt(e, "modelValue"), a = e, r = n, s = E(), p = E(), i = E();
189
+ const l = kt(e, "modelValue"), a = e, r = n, i = E(), p = E(), u = E();
190
190
  t({
191
191
  instance: p,
192
- lastEditorData: i
193
- }), ue(l, (f) => {
194
- p.value && f !== i.value && p.value.data.set(f);
195
- }), ue(() => a.disabled, (f) => {
196
- f ? p.value.enableReadOnlyMode(Ae) : p.value.disableReadOnlyMode(Ae);
192
+ lastEditorData: u
193
+ }), ue(l, (d) => {
194
+ p.value && d !== u.value && p.value.data.set(d);
195
+ }), ue(() => a.disabled, (d) => {
196
+ d ? p.value.enableReadOnlyMode(Ae) : p.value.disableReadOnlyMode(Ae);
197
197
  });
198
- function u() {
199
- const f = window.CKEDITOR_VERSION;
200
- if (!f)
198
+ function s() {
199
+ const d = window.CKEDITOR_VERSION;
200
+ if (!d)
201
201
  return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
202
- const [k] = f.split(".").map(Number);
203
- k >= 42 || f.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
202
+ const [k] = d.split(".").map(Number);
203
+ k >= 42 || d.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
204
204
  }
205
- function h(f) {
206
- const k = Bt((d) => {
205
+ function h(d) {
206
+ const k = Bt((m) => {
207
207
  if (a.disableTwoWayDataBinding)
208
208
  return;
209
- const T = i.value = f.data.get();
210
- r("update:modelValue", T, d, f), r("input", T, d, f);
209
+ const T = u.value = d.data.get();
210
+ r("update:modelValue", T, m, d), r("input", T, m, d);
211
211
  }, io, { leading: !0 });
212
- f.model.document.on("change:data", k), f.editing.view.document.on("focus", (d) => {
213
- r("focus", d, f);
214
- }), f.editing.view.document.on("blur", (d) => {
215
- r("blur", d, f);
212
+ d.model.document.on("change:data", k), d.editing.view.document.on("focus", (m) => {
213
+ r("focus", m, d);
214
+ }), d.editing.view.document.on("blur", (m) => {
215
+ r("blur", m, d);
216
216
  });
217
217
  }
218
- return u(), tt(() => {
219
- let f = lo(
218
+ return s(), tt(() => {
219
+ let d = lo(
220
220
  Object.assign({}, a.config)
221
221
  );
222
- l.value && (f = ao(f, l.value)), a.editor.create(s.value, f).then((k) => {
223
- p.value = Vt(k), h(k), l.value !== ro(f) && k.data.set(l.value), a.disabled && k.enableReadOnlyMode(Ae), r("ready", k);
222
+ l.value && (d = ao(d, l.value)), a.editor.create(i.value, d).then((k) => {
223
+ p.value = Vt(k), h(k), l.value !== ro(d) && k.data.set(l.value), a.disabled && k.enableReadOnlyMode(Ae), r("ready", k);
224
224
  }).catch((k) => {
225
225
  console.error(k);
226
226
  });
227
227
  }), nt(() => {
228
228
  p.value && (p.value.destroy(), p.value = void 0), r("destroy");
229
- }), (f, k) => (V(), S(Ce(e.tagName), {
229
+ }), (d, k) => (V(), S(Ce(e.tagName), {
230
230
  ref_key: "element",
231
- ref: s
231
+ ref: i
232
232
  }, null, 512));
233
233
  }
234
234
  });
@@ -546,8 +546,8 @@ const po = (e, t, n) => {
546
546
  if (typeof r == "string")
547
547
  l += r;
548
548
  else {
549
- const s = fo(t);
550
- co(r) ? l += r[s].replace("{{count}}", String(t)) : l += r[a][s].replace("{{count}}", String(t));
549
+ const i = fo(t);
550
+ co(r) ? l += r[i].replace("{{count}}", String(t)) : l += r[a][i].replace("{{count}}", String(t));
551
551
  }
552
552
  return l;
553
553
  };
@@ -585,7 +585,7 @@ const vo = {
585
585
  formats: bo,
586
586
  defaultWidth: "full"
587
587
  })
588
- }, wo = {
588
+ }, yo = {
589
589
  lastWeek: (e) => {
590
590
  switch (e.getDay()) {
591
591
  case 0:
@@ -614,20 +614,20 @@ const vo = {
614
614
  }
615
615
  },
616
616
  other: "P"
617
- }, yo = (e, t, n, l) => {
618
- const a = wo[e];
617
+ }, wo = (e, t, n, l) => {
618
+ const a = yo[e];
619
619
  return typeof a == "function" ? a(t) : a;
620
620
  };
621
- function ye(e) {
621
+ function we(e) {
622
622
  return (t, n) => {
623
623
  const l = n != null && n.context ? String(n.context) : "standalone";
624
624
  let a;
625
625
  if (l === "formatting" && e.formattingValues) {
626
- const s = e.defaultFormattingWidth || e.defaultWidth, p = n != null && n.width ? String(n.width) : s;
627
- a = e.formattingValues[p] || e.formattingValues[s];
626
+ const i = e.defaultFormattingWidth || e.defaultWidth, p = n != null && n.width ? String(n.width) : i;
627
+ a = e.formattingValues[p] || e.formattingValues[i];
628
628
  } else {
629
- const s = e.defaultWidth, p = n != null && n.width ? String(n.width) : e.defaultWidth;
630
- a = e.values[p] || e.values[s];
629
+ const i = e.defaultWidth, p = n != null && n.width ? String(n.width) : e.defaultWidth;
630
+ a = e.values[p] || e.values[i];
631
631
  }
632
632
  const r = e.argumentCallback ? e.argumentCallback(t) : t;
633
633
  return a[r];
@@ -748,24 +748,24 @@ const ko = {
748
748
  }
749
749
  }, _o = (e, t) => Number(e) + ".", Bo = {
750
750
  ordinalNumber: _o,
751
- era: ye({
751
+ era: we({
752
752
  values: ko,
753
753
  defaultWidth: "wide"
754
754
  }),
755
- quarter: ye({
755
+ quarter: we({
756
756
  values: Vo,
757
757
  defaultWidth: "wide",
758
758
  argumentCallback: (e) => e - 1
759
759
  }),
760
- month: ye({
760
+ month: we({
761
761
  values: Co,
762
762
  defaultWidth: "wide"
763
763
  }),
764
- day: ye({
764
+ day: we({
765
765
  values: jo,
766
766
  defaultWidth: "wide"
767
767
  }),
768
- dayPeriod: ye({
768
+ dayPeriod: we({
769
769
  values: To,
770
770
  defaultWidth: "wide",
771
771
  formattingValues: xo,
@@ -777,17 +777,17 @@ function ke(e) {
777
777
  const l = n.width, a = l && e.matchPatterns[l] || e.matchPatterns[e.defaultMatchWidth], r = t.match(a);
778
778
  if (!r)
779
779
  return null;
780
- const s = r[0], p = l && e.parsePatterns[l] || e.parsePatterns[e.defaultParseWidth], i = Array.isArray(p) ? Do(p, (f) => f.test(s)) : (
780
+ const i = r[0], p = l && e.parsePatterns[l] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(p) ? Do(p, (d) => d.test(i)) : (
781
781
  // [TODO] -- I challenge you to fix the type
782
- Io(p, (f) => f.test(s))
782
+ Io(p, (d) => d.test(i))
783
783
  );
784
- let u;
785
- u = e.valueCallback ? e.valueCallback(i) : i, u = n.valueCallback ? (
784
+ let s;
785
+ s = e.valueCallback ? e.valueCallback(u) : u, s = n.valueCallback ? (
786
786
  // [TODO] -- I challenge you to fix the type
787
- n.valueCallback(u)
788
- ) : u;
789
- const h = t.slice(s.length);
790
- return { value: u, rest: h };
787
+ n.valueCallback(s)
788
+ ) : s;
789
+ const h = t.slice(i.length);
790
+ return { value: s, rest: h };
791
791
  };
792
792
  }
793
793
  function Io(e, t) {
@@ -806,10 +806,10 @@ function So(e) {
806
806
  if (!l) return null;
807
807
  const a = l[0], r = t.match(e.parsePattern);
808
808
  if (!r) return null;
809
- let s = e.valueCallback ? e.valueCallback(r[0]) : r[0];
810
- s = n.valueCallback ? n.valueCallback(s) : s;
809
+ let i = e.valueCallback ? e.valueCallback(r[0]) : r[0];
810
+ i = n.valueCallback ? n.valueCallback(i) : i;
811
811
  const p = t.slice(a.length);
812
- return { value: s, rest: p };
812
+ return { value: i, rest: p };
813
813
  };
814
814
  }
815
815
  const Po = /^(\d+)\./i, Eo = /\d+/i, Ao = {
@@ -943,7 +943,7 @@ const Po = /^(\d+)\./i, Eo = /\d+/i, Ao = {
943
943
  code: "sl",
944
944
  formatDistance: po,
945
945
  formatLong: go,
946
- formatRelative: yo,
946
+ formatRelative: wo,
947
947
  localize: Bo,
948
948
  match: Oo,
949
949
  options: {
@@ -955,7 +955,7 @@ const Po = /^(\d+)\./i, Eo = /\d+/i, Ao = {
955
955
  setDateTimeLocale(e) {
956
956
  ce(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
957
957
  }
958
- }, ee = /* @__PURE__ */ R({
958
+ }, ee = /* @__PURE__ */ H({
959
959
  __name: "df-input-hint",
960
960
  props: {
961
961
  errors: { default: "" },
@@ -965,12 +965,12 @@ const Po = /^(\d+)\./i, Eo = /\d+/i, Ao = {
965
965
  },
966
966
  setup(e) {
967
967
  const t = e, n = g(() => t.errors ? typeof t.errors == "string" ? t.errors.trim().length > 0 : t.errors.length > 0 : !1), l = g(() => n.value ? t.errors : t.message), a = g(() => n.value ? t.errorClasses : t.messageClasses);
968
- return (r, s) => (V(), S(o(Pt), {
968
+ return (r, i) => (V(), S(o(Pt), {
969
969
  message: l.value,
970
970
  classes: a.value
971
971
  }, null, 8, ["message", "classes"]));
972
972
  }
973
- }), me = /* @__PURE__ */ R({
973
+ }), me = /* @__PURE__ */ H({
974
974
  __name: "df-label",
975
975
  props: {
976
976
  data: {},
@@ -981,10 +981,10 @@ const Po = /^(\d+)\./i, Eo = /\d+/i, Ao = {
981
981
  const t = e, n = g(() => t.data ? t.data.label : t.label.text);
982
982
  return (l, a) => {
983
983
  const r = M("v-img");
984
- return V(), z("div", {
984
+ return V(), K("div", {
985
985
  class: te(["df-label", { "allow-wrap": e.allowWrap }])
986
986
  }, [
987
- e.label.icon ? (V(), z(Fe, { key: 0 }, [
987
+ e.label.icon ? (V(), K(Fe, { key: 0 }, [
988
988
  e.label.iconComponent === "v-icon" ? (V(), S(o(je), {
989
989
  key: 0,
990
990
  name: e.label.icon,
@@ -1004,7 +1004,7 @@ const Po = /^(\d+)\./i, Eo = /\d+/i, Ao = {
1004
1004
  source: n.value.toString(),
1005
1005
  options: n.value.options,
1006
1006
  plugins: n.value.plugins
1007
- }, null, 8, ["source", "options", "plugins"])) : (V(), z(Fe, { key: 2 }, [
1007
+ }, null, 8, ["source", "options", "plugins"])) : (V(), K(Fe, { key: 2 }, [
1008
1008
  jt(Ne(n.value), 1)
1009
1009
  ], 64))
1010
1010
  ], 2);
@@ -1038,18 +1038,18 @@ function Q(e, t) {
1038
1038
  set(b) {
1039
1039
  e.control.touched = b;
1040
1040
  }
1041
- }), s = e.control ? r : E(!1), p = g(() => e.control ? e.control.valid : !0), i = g(
1041
+ }), i = e.control ? r : E(!1), p = g(() => e.control ? e.control.valid : !0), u = g(
1042
1042
  () => e.control ? e.control.errors : (e.errors || []).map((b) => new At(b))
1043
- ), u = g(() => s.value && i.value.length > 0 ? " " : void 0), h = g(() => s.value ? i.value : void 0), f = g(() => e.control ? e.control.enabled : e.enabled !== !1), k = g(
1043
+ ), s = g(() => i.value && u.value.length > 0 ? " " : void 0), h = g(() => i.value ? u.value : void 0), d = g(() => e.control ? e.control.enabled : e.enabled !== !1), k = g(
1044
1044
  () => e.control ? e.control.visibility : e.visibility || Ze.DisplayMode.FULL
1045
- ), d = g(
1045
+ ), m = g(
1046
1046
  () => se(e.label || "") ? new Xo(e.label || "") : e.label
1047
- ), T = g(() => e.placeholder || ""), x = g(() => e.helpText || ""), C = g(() => e.hint || ""), m = g(() => e.cssClass || ""), P = g(
1047
+ ), T = g(() => e.placeholder || ""), x = g(() => e.helpText || ""), C = g(() => e.hint || ""), f = g(() => e.cssClass || ""), P = g(
1048
1048
  () => {
1049
1049
  var b, N, v;
1050
1050
  return (v = (N = (b = e.density) != null ? b : Ee("field-density", null)) != null ? N : n.defaultDensity) != null ? v : "default";
1051
1051
  }
1052
- ), H = g(() => P.value === "inline" ? "default" : P.value), A = g(
1052
+ ), W = g(() => P.value === "inline" ? "default" : P.value), A = g(
1053
1053
  () => {
1054
1054
  var b, N, v;
1055
1055
  return (v = (N = (b = e.variant) != null ? b : Ee("field-variant", null)) != null ? N : n.defaultVariant) != null ? v : "underlined";
@@ -1058,26 +1058,26 @@ function Q(e, t) {
1058
1058
  return {
1059
1059
  value: a,
1060
1060
  valid: p,
1061
- enabled: f,
1062
- errors: i,
1061
+ enabled: d,
1062
+ errors: u,
1063
1063
  showErrors: h,
1064
1064
  visibility: k,
1065
- label: d,
1066
- touched: s,
1065
+ label: m,
1066
+ touched: i,
1067
1067
  density: P.value,
1068
1068
  densityClass: g(() => `df-density-${P.value}`),
1069
1069
  vuetifyBindings: g(() => {
1070
1070
  var b;
1071
1071
  return I({
1072
1072
  name: (b = e.control) == null ? void 0 : b.fieldName,
1073
- class: m.value,
1074
- density: H.value,
1073
+ class: f.value,
1074
+ density: W.value,
1075
1075
  variant: A.value,
1076
- label: d.value.text,
1077
- errorMessages: u.value,
1076
+ label: m.value.text,
1077
+ errorMessages: s.value,
1078
1078
  // 'error-count': errors?.value.length || 0,
1079
- readonly: !f.value,
1080
- disabled: !f.value,
1079
+ readonly: !d.value,
1080
+ disabled: !d.value,
1081
1081
  placeholder: T.value,
1082
1082
  "persistent-placeholder": !Ve(T.value),
1083
1083
  hint: C.value,
@@ -1090,7 +1090,7 @@ function Q(e, t) {
1090
1090
  })
1091
1091
  };
1092
1092
  }
1093
- const qo = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Re = /* @__PURE__ */ R({
1093
+ const qo = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Re = /* @__PURE__ */ H({
1094
1094
  __name: "input-base",
1095
1095
  props: {
1096
1096
  control: {},
@@ -1111,68 +1111,68 @@ const qo = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Re = /* @_
1111
1111
  },
1112
1112
  emits: ["update:modelValue", "click:clear", "blur"],
1113
1113
  setup(e, { emit: t }) {
1114
- const n = e, l = t, { label: a, showErrors: r, touched: s, value: p, visibility: i, vuetifyBindings: u } = Q(n, l), h = g(() => !!(o(n.clearable) && o(p))), f = E(!1);
1115
- function k(d) {
1116
- f.value = d, d || (s.value = !0, l("blur"));
1114
+ const n = e, l = t, { label: a, showErrors: r, touched: i, value: p, visibility: u, vuetifyBindings: s } = Q(n, l), h = g(() => !!(o(n.clearable) && o(p))), d = E(!1);
1115
+ function k(m) {
1116
+ d.value = m, m || (i.value = !0, l("blur"));
1117
1117
  }
1118
- return (d, T) => {
1118
+ return (m, T) => {
1119
1119
  const x = M("v-field"), C = M("v-input");
1120
- return o(i) !== o(Y).SUPPRESS ? (V(), S(C, {
1120
+ return o(u) !== o(z).SUPPRESS ? (V(), S(C, {
1121
1121
  key: 0,
1122
- name: o(u).name,
1123
- density: o(u).density,
1124
- hint: o(u).hint,
1125
- "persistent-hint": o(u).persistentHint,
1126
- "hide-details": o(u).hideDetails,
1127
- "error-messages": o(u).errorMessages,
1122
+ name: o(s).name,
1123
+ density: o(s).density,
1124
+ hint: o(s).hint,
1125
+ "persistent-hint": o(s).persistentHint,
1126
+ "hide-details": o(s).hideDetails,
1127
+ "error-messages": o(s).errorMessages,
1128
1128
  class: te([
1129
1129
  e.cssClass,
1130
1130
  {
1131
- "d-none": o(i) === o(Y).HIDDEN,
1132
- invisible: o(i) === o(Y).INVISIBLE
1131
+ "d-none": o(u) === o(z).HIDDEN,
1132
+ invisible: o(u) === o(z).INVISIBLE
1133
1133
  }
1134
1134
  ])
1135
1135
  }, Me({
1136
- message: w(({ message: m }) => [
1136
+ message: y(({ message: f }) => [
1137
1137
  D(ee, {
1138
- message: m,
1138
+ message: f,
1139
1139
  errors: o(r)
1140
1140
  }, null, 8, ["message", "errors"])
1141
1141
  ]),
1142
- default: w(() => [
1142
+ default: y(() => [
1143
1143
  D(x, {
1144
- variant: o(u).variant,
1145
- density: o(u).density,
1146
- label: o(u).label,
1147
- disabled: o(u).disabled,
1144
+ variant: o(s).variant,
1145
+ density: o(s).density,
1146
+ label: o(s).label,
1147
+ disabled: o(s).disabled,
1148
1148
  clearable: h.value,
1149
1149
  "persistent-clear": !0,
1150
- dirty: !!o(p) || !!o(u).placeholder,
1151
- active: f.value,
1150
+ dirty: !!o(p) || !!o(s).placeholder,
1151
+ active: d.value,
1152
1152
  loading: e.loading,
1153
- "onClick:clear": T[0] || (T[0] = (m) => l("click:clear")),
1154
- "onUpdate:focused": T[1] || (T[1] = (m) => k(m))
1153
+ "onClick:clear": T[0] || (T[0] = (f) => l("click:clear")),
1154
+ "onUpdate:focused": T[1] || (T[1] = (f) => k(f))
1155
1155
  }, Me({
1156
- label: w((m) => [
1156
+ label: y((f) => [
1157
1157
  D(me, {
1158
- data: m,
1158
+ data: f,
1159
1159
  label: o(a)
1160
1160
  }, null, 8, ["data", "label"])
1161
1161
  ]),
1162
- default: w((m) => [
1162
+ default: y((f) => [
1163
1163
  de("div", qo, [
1164
- fe(d.$slots, "default", re(ie(m)))
1164
+ fe(m.$slots, "default", re(ie(f)))
1165
1165
  ])
1166
1166
  ]),
1167
- loader: w((m) => [
1168
- fe(d.$slots, "loader", re(ie(m)))
1167
+ loader: y((f) => [
1168
+ fe(m.$slots, "loader", re(ie(f)))
1169
1169
  ]),
1170
1170
  _: 2
1171
1171
  }, [
1172
- d.$slots["prepend-inner"] ? {
1172
+ m.$slots["prepend-inner"] ? {
1173
1173
  name: "prepend-inner",
1174
- fn: w((m) => [
1175
- fe(d.$slots, "prepend-inner", re(ie(m)))
1174
+ fn: y((f) => [
1175
+ fe(m.$slots, "prepend-inner", re(ie(f)))
1176
1176
  ]),
1177
1177
  key: "0"
1178
1178
  } : void 0
@@ -1180,10 +1180,10 @@ const qo = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Re = /* @_
1180
1180
  ]),
1181
1181
  _: 2
1182
1182
  }, [
1183
- d.$slots.prepend ? {
1183
+ m.$slots.prepend ? {
1184
1184
  name: "prepend",
1185
- fn: w((m) => [
1186
- fe(d.$slots, "prepend", re(ie(m)))
1185
+ fn: y((f) => [
1186
+ fe(m.$slots, "prepend", re(ie(f)))
1187
1187
  ]),
1188
1188
  key: "0"
1189
1189
  } : void 0
@@ -1225,7 +1225,7 @@ const Be = {
1225
1225
  language: "en",
1226
1226
  translations: void 0
1227
1227
  };
1228
- var G = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(G || {});
1228
+ var Y = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(Y || {});
1229
1229
  const Je = 0;
1230
1230
  ((e) => {
1231
1231
  function t(a) {
@@ -1242,8 +1242,8 @@ const Je = 0;
1242
1242
  return Object.values(e).includes(r);
1243
1243
  }
1244
1244
  e.isDefined = l;
1245
- })(G || (G = {}));
1246
- Object.freeze(G);
1245
+ })(Y || (Y = {}));
1246
+ Object.freeze(Y);
1247
1247
  const et = ["xs", "sm", "md", "lg", "xl"];
1248
1248
  class Go {
1249
1249
  constructor(t) {
@@ -1257,8 +1257,8 @@ class Go {
1257
1257
  const n = this.cleanBreakpoint(this._value), l = Object.keys(n);
1258
1258
  for (const a of et) {
1259
1259
  const r = this._value[a];
1260
- for (const s of l)
1261
- (r == null ? void 0 : r[s]) != null && (n[s] = r[s]);
1260
+ for (const i of l)
1261
+ (r == null ? void 0 : r[i]) != null && (n[i] = r[i]);
1262
1262
  if (a === t) break;
1263
1263
  }
1264
1264
  return n;
@@ -1275,7 +1275,7 @@ class Zo extends Go {
1275
1275
  cleanBreakpoint(t, n = !1) {
1276
1276
  if ((!t || !It(t)) && !n) return null;
1277
1277
  const l = {};
1278
- return n && (l.renderAs = G.BUTTON, l.showLabel = !0, l.showIcon = !0), t && (t.renderAs != null && (l.renderAs = G.fromAny(t.renderAs)), se(t.label) && (l.label = t.label), se(t.icon) && (l.icon = t.icon), qe(t.showLabel) && (l.showLabel = t.showLabel), qe(t.showIcon) && (l.showIcon = t.showIcon)), Object.keys(l).length ? l : null;
1278
+ return n && (l.renderAs = Y.BUTTON, l.showLabel = !0, l.showIcon = !0), t && (t.renderAs != null && (l.renderAs = Y.fromAny(t.renderAs)), se(t.label) && (l.label = t.label), se(t.icon) && (l.icon = t.icon), qe(t.showLabel) && (l.showLabel = t.showLabel), qe(t.showIcon) && (l.showIcon = t.showIcon)), Object.keys(l).length ? l : null;
1279
1279
  }
1280
1280
  }
1281
1281
  class _e extends $t {
@@ -1295,24 +1295,42 @@ class _e extends $t {
1295
1295
  };
1296
1296
  });
1297
1297
  }
1298
+ /** @see ActionRenderOptions.name */
1298
1299
  get name() {
1299
1300
  return this.value.name;
1300
1301
  }
1302
+ /** @see ActionRenderOptions.label */
1301
1303
  get label() {
1302
1304
  return this.value.showLabel ? this.value.label : void 0;
1303
1305
  }
1306
+ /** @see ActionRenderOptions.showLabel */
1304
1307
  get showLabel() {
1305
1308
  return se(this.value.label) && !Ve(this.value.label) ? this.value.showLabel : !1;
1306
1309
  }
1310
+ /** @see ActionRenderOptions.icon */
1307
1311
  get icon() {
1308
1312
  return this.value.showIcon ? this.value.icon : void 0;
1309
1313
  }
1314
+ /** @see ActionRenderOptions.showIcon */
1310
1315
  get showIcon() {
1311
1316
  return se(this.value.icon) && !Ve(this.value.icon) ? this.value.showIcon : !1;
1312
1317
  }
1318
+ /** @see ActionRenderOptions.renderAs */
1313
1319
  get renderAs() {
1314
1320
  return this.value.renderAs;
1315
1321
  }
1322
+ /** @see ActionRenderOptions.defaultConfirm */
1323
+ get defaultConfirm() {
1324
+ return this.value.defaultConfirm;
1325
+ }
1326
+ /** @see ActionRenderOptions.defaultReject */
1327
+ get defaultReject() {
1328
+ return this.value.defaultReject;
1329
+ }
1330
+ /** @see ActionRenderOptions.passthroughAttrs */
1331
+ get passthroughAttrs() {
1332
+ return this.value.passthroughAttrs;
1333
+ }
1316
1334
  static closeAction(t) {
1317
1335
  var l;
1318
1336
  const n = L(I({}, t != null ? t : {}), {
@@ -1321,7 +1339,7 @@ class _e extends $t {
1321
1339
  name: "close",
1322
1340
  label: F.Close,
1323
1341
  icon: "ion-close-outline",
1324
- renderAs: G.BUTTON,
1342
+ renderAs: Y.BUTTON,
1325
1343
  showLabel: !0,
1326
1344
  showIcon: !0
1327
1345
  }
@@ -1336,7 +1354,7 @@ class _e extends $t {
1336
1354
  name: "yes",
1337
1355
  label: F.Yes,
1338
1356
  icon: "ion-thumbs-up-outline",
1339
- renderAs: G.BUTTON,
1357
+ renderAs: Y.BUTTON,
1340
1358
  showLabel: !0,
1341
1359
  showIcon: !0
1342
1360
  }
@@ -1351,7 +1369,7 @@ class _e extends $t {
1351
1369
  name: "no",
1352
1370
  label: F.No,
1353
1371
  icon: "ion-thumbs-down-outline",
1354
- renderAs: G.BUTTON,
1372
+ renderAs: Y.BUTTON,
1355
1373
  showLabel: !0,
1356
1374
  showIcon: !0
1357
1375
  }
@@ -1362,7 +1380,7 @@ class _e extends $t {
1362
1380
  const Jo = {
1363
1381
  key: 1,
1364
1382
  style: { width: "0.5rem" }
1365
- }, el = { key: 2 }, tl = /* @__PURE__ */ R({
1383
+ }, el = { key: 2 }, tl = /* @__PURE__ */ H({
1366
1384
  __name: "df-actions",
1367
1385
  props: {
1368
1386
  actions: {},
@@ -1370,41 +1388,52 @@ const Jo = {
1370
1388
  showAsGroup: { default: "no" }
1371
1389
  },
1372
1390
  setup(e) {
1373
- const t = e, n = Qo(), l = g(() => o(t.actions)), a = g(
1374
- () => l.value.map((r) => I({
1375
- action: r
1376
- }, o(r.getBreakpointValue(n))))
1391
+ const t = e, n = Qo(), l = g(() => o(t.actions).filter((i) => i.visibility !== z.SUPPRESS)), a = g(
1392
+ () => l.value.map((i) => I({
1393
+ action: i
1394
+ }, o(i.getBreakpointValue(n))))
1377
1395
  );
1378
- return (r, s) => {
1379
- const p = M("v-btn");
1380
- return l.value.length > 0 ? (V(), z("div", {
1396
+ function r(i) {
1397
+ if (i.defaultConfirm) return "primary";
1398
+ if (i.defaultReject) return "secondary";
1399
+ }
1400
+ return (i, p) => {
1401
+ const u = M("v-btn");
1402
+ return l.value.length > 0 ? (V(), K("div", {
1381
1403
  key: 0,
1382
1404
  class: te(["text-end df-actions", {
1383
1405
  "button-group": e.showAsGroup === "grouped" || e.showAsGroup === "grouped-no-borders",
1384
1406
  "with-border": e.showAsGroup === "grouped"
1385
1407
  }])
1386
1408
  }, [
1387
- (V(!0), z(Fe, null, Tt(a.value, (i, u) => (V(), S(p, {
1388
- key: u,
1389
- variant: i.renderAs === o(G).BUTTON ? "tonal" : "text",
1409
+ (V(!0), K(Fe, null, Tt(a.value, (s, h) => (V(), S(u, R({
1410
+ key: h,
1411
+ variant: s.renderAs === o(Y).BUTTON ? "tonal" : "text",
1412
+ color: r(s.action),
1413
+ disabled: !s.action.enabled,
1390
1414
  elevation: 0,
1391
1415
  size: e.buttonSize,
1392
- onClick: xt((h) => i.action.execute(h), ["stop"])
1393
- }, {
1394
- default: w(() => [
1395
- i.icon ? (V(), S(o(je), {
1416
+ class: {
1417
+ "d-none": s.action.visibility === o(z).HIDDEN,
1418
+ invisible: s.action.visibility === o(z).INVISIBLE
1419
+ }
1420
+ }, { ref_for: !0 }, s.action.passthroughAttrs, {
1421
+ onClick: xt((d) => s.action.execute(d), ["stop"])
1422
+ }), {
1423
+ default: y(() => [
1424
+ s.icon ? (V(), S(o(je), {
1396
1425
  key: 0,
1397
- name: i.icon
1426
+ name: s.icon
1398
1427
  }, null, 8, ["name"])) : U("", !0),
1399
- i.icon && i.label ? (V(), z("span", Jo)) : U("", !0),
1400
- i.label ? (V(), z("span", el, Ne(i.label), 1)) : U("", !0)
1428
+ s.icon && s.label ? (V(), K("span", Jo)) : U("", !0),
1429
+ s.label ? (V(), K("span", el, Ne(s.label), 1)) : U("", !0)
1401
1430
  ]),
1402
1431
  _: 2
1403
- }, 1032, ["variant", "size", "onClick"]))), 128))
1432
+ }, 1040, ["variant", "color", "disabled", "size", "class", "onClick"]))), 128))
1404
1433
  ], 2)) : U("", !0);
1405
1434
  };
1406
1435
  }
1407
- }), nl = /* @__PURE__ */ R({
1436
+ }), nl = /* @__PURE__ */ H({
1408
1437
  __name: "df-checkbox",
1409
1438
  props: /* @__PURE__ */ ne({
1410
1439
  allowNull: { type: Boolean },
@@ -1425,49 +1454,49 @@ const Jo = {
1425
1454
  }, L(I({}, oe), { allowNull: !1 })),
1426
1455
  emits: ["update:modelValue", "click:clear"],
1427
1456
  setup(e, { emit: t }) {
1428
- const n = e, l = t, { densityClass: a, label: r, showErrors: s, touched: p, value: i, vuetifyBindings: u } = Q(n, l), h = g(() => n.allowNull && i.value == null), f = g({
1457
+ const n = e, l = t, { densityClass: a, label: r, showErrors: i, touched: p, value: u, vuetifyBindings: s } = Q(n, l), h = g(() => n.allowNull && u.value == null), d = g({
1429
1458
  get() {
1430
- return i.value;
1459
+ return u.value;
1431
1460
  },
1432
1461
  set() {
1433
1462
  }
1434
1463
  });
1435
1464
  function k() {
1436
- const d = Dt(i.value);
1437
- d === !0 ? i.value = n.allowNull ? null : !1 : i.value = d === !1;
1465
+ const m = Dt(u.value);
1466
+ m === !0 ? u.value = n.allowNull ? null : !1 : u.value = m === !1;
1438
1467
  }
1439
- return (d, T) => {
1468
+ return (m, T) => {
1440
1469
  const x = M("v-checkbox");
1441
- return V(), S(x, O({
1442
- modelValue: f.value,
1443
- "onUpdate:modelValue": T[0] || (T[0] = (C) => f.value = C),
1470
+ return V(), S(x, R({
1471
+ modelValue: d.value,
1472
+ "onUpdate:modelValue": T[0] || (T[0] = (C) => d.value = C),
1444
1473
  density: "compact",
1445
1474
  class: o(a),
1446
1475
  indeterminate: h.value,
1447
1476
  "false-value": !1,
1448
1477
  "true-value": !0
1449
- }, o(u), {
1478
+ }, o(s), {
1450
1479
  onChange: k,
1451
1480
  onBlur: T[1] || (T[1] = (C) => p.value = !0)
1452
1481
  }), {
1453
- label: w((C) => [
1482
+ label: y((C) => [
1454
1483
  D(o(me), {
1455
1484
  "allow-wrap": !0,
1456
1485
  data: C,
1457
1486
  label: o(r)
1458
1487
  }, null, 8, ["data", "label"])
1459
1488
  ]),
1460
- message: w(({ message: C }) => [
1489
+ message: y(({ message: C }) => [
1461
1490
  D(o(ee), {
1462
1491
  message: C,
1463
- errors: o(s)
1492
+ errors: o(i)
1464
1493
  }, null, 8, ["message", "errors"])
1465
1494
  ]),
1466
1495
  _: 1
1467
1496
  }, 16, ["modelValue", "class", "indeterminate"]);
1468
1497
  };
1469
1498
  }
1470
- }), ol = /* @__PURE__ */ R({
1499
+ }), ol = /* @__PURE__ */ H({
1471
1500
  __name: "df-color",
1472
1501
  props: /* @__PURE__ */ ne({
1473
1502
  allowNull: { type: Boolean },
@@ -1488,49 +1517,49 @@ const Jo = {
1488
1517
  }, L(I({}, oe), { allowNull: !1 })),
1489
1518
  emits: ["update:modelValue", "click:clear"],
1490
1519
  setup(e, { emit: t }) {
1491
- const n = e, l = t, { densityClass: a, label: r, showErrors: s, touched: p, value: i, vuetifyBindings: u } = Q(n, l), h = E(!1), f = g(() => [
1520
+ const n = e, l = t, { densityClass: a, label: r, showErrors: i, touched: p, value: u, vuetifyBindings: s } = Q(n, l), h = E(!1), d = g(() => [
1492
1521
  (k) => n.control || !k && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(k) ? !0 : "Not a valid hex string."
1493
1522
  ]);
1494
- return (k, d) => {
1523
+ return (k, m) => {
1495
1524
  const T = M("v-color-picker"), x = M("v-menu"), C = M("v-text-field");
1496
- return V(), S(C, O({
1497
- modelValue: o(i),
1498
- "onUpdate:modelValue": d[2] || (d[2] = (m) => ce(i) ? i.value = m : null),
1525
+ return V(), S(C, R({
1526
+ modelValue: o(u),
1527
+ "onUpdate:modelValue": m[2] || (m[2] = (f) => ce(u) ? u.value = f : null),
1499
1528
  class: o(a),
1500
1529
  clearable: e.allowNull,
1501
1530
  type: "text",
1502
- rules: f.value
1503
- }, o(u), {
1504
- onBlur: d[3] || (d[3] = (m) => p.value = !0)
1531
+ rules: d.value
1532
+ }, o(s), {
1533
+ onBlur: m[3] || (m[3] = (f) => p.value = !0)
1505
1534
  }), {
1506
- label: w((m) => [
1535
+ label: y((f) => [
1507
1536
  D(o(me), {
1508
- data: m,
1537
+ data: f,
1509
1538
  label: o(r)
1510
1539
  }, null, 8, ["data", "label"])
1511
1540
  ]),
1512
- message: w(({ message: m }) => [
1541
+ message: y(({ message: f }) => [
1513
1542
  D(o(ee), {
1514
- message: m,
1515
- errors: o(s)
1543
+ message: f,
1544
+ errors: o(i)
1516
1545
  }, null, 8, ["message", "errors"])
1517
1546
  ]),
1518
- "prepend-inner": w(() => [
1547
+ "prepend-inner": y(() => [
1519
1548
  de("div", {
1520
- style: ot([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: o(i) }])
1549
+ style: ot([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: o(u) }])
1521
1550
  }, null, 4)
1522
1551
  ]),
1523
- default: w(() => [
1552
+ default: y(() => [
1524
1553
  D(x, {
1525
1554
  modelValue: h.value,
1526
- "onUpdate:modelValue": d[1] || (d[1] = (m) => h.value = m),
1555
+ "onUpdate:modelValue": m[1] || (m[1] = (f) => h.value = f),
1527
1556
  "close-on-content-click": !1,
1528
1557
  activator: "parent"
1529
1558
  }, {
1530
- default: w(() => [
1559
+ default: y(() => [
1531
1560
  D(T, {
1532
- modelValue: o(i),
1533
- "onUpdate:modelValue": d[0] || (d[0] = (m) => ce(i) ? i.value = m : null),
1561
+ modelValue: o(u),
1562
+ "onUpdate:modelValue": m[0] || (m[0] = (f) => ce(u) ? u.value = f : null),
1534
1563
  mode: "hexa"
1535
1564
  }, null, 8, ["modelValue"])
1536
1565
  ]),
@@ -1541,7 +1570,7 @@ const Jo = {
1541
1570
  }, 16, ["modelValue", "class", "clearable", "rules"]);
1542
1571
  };
1543
1572
  }
1544
- }), ll = /* @__PURE__ */ R({
1573
+ }), ll = /* @__PURE__ */ H({
1545
1574
  __name: "df-datetime",
1546
1575
  props: /* @__PURE__ */ ne({
1547
1576
  inputType: {},
@@ -1575,41 +1604,41 @@ const Jo = {
1575
1604
  }), r = g(() => {
1576
1605
  var v, c;
1577
1606
  return (c = (v = a.value.options) == null ? void 0 : v.weekStartsOn) != null ? c : 1;
1578
- }), { densityClass: s, touched: p, value: i, vuetifyBindings: u } = Q(n, l), { inputType: h, displayFormatDate: f, displayFormatTime: k } = De(n), d = E(""), T = g({
1607
+ }), { densityClass: i, touched: p, value: u, vuetifyBindings: s } = Q(n, l), { inputType: h, displayFormatDate: d, displayFormatTime: k } = De(n), m = E(""), T = g({
1579
1608
  get() {
1580
- return o(d) === "date";
1609
+ return o(m) === "date";
1581
1610
  },
1582
1611
  set(v) {
1583
- d.value = v ? "date" : "";
1612
+ m.value = v ? "date" : "";
1584
1613
  }
1585
1614
  }), x = g({
1586
1615
  get() {
1587
- return o(d) === "time";
1616
+ return o(m) === "time";
1588
1617
  },
1589
1618
  set(v) {
1590
- d.value = v ? "time" : "";
1619
+ m.value = v ? "time" : "";
1591
1620
  }
1592
- }), C = (v) => `${we(v, "yyyy-MM-dd")}T${we(v, "HH:mm")}:00`, m = E(null);
1621
+ }), C = (v) => `${ye(v, "yyyy-MM-dd")}T${ye(v, "HH:mm")}:00`, f = E(null);
1593
1622
  function P(v, c) {
1594
1623
  if (v == null)
1595
- m.value = null;
1624
+ f.value = null;
1596
1625
  else if (c === -1)
1597
1626
  if (o(h) === "time")
1598
- m.value = C(/* @__PURE__ */ new Date()), P(`T${v}`, 1);
1627
+ f.value = C(/* @__PURE__ */ new Date()), P(`T${v}`, 1);
1599
1628
  else {
1600
1629
  const $ = C(new Date(v));
1601
1630
  P($, 0), P($, 1);
1602
1631
  }
1603
1632
  else {
1604
- m.value == null && (m.value = C(/* @__PURE__ */ new Date()));
1605
- const $ = m.value.split(/[TZ]/g), K = v.split(/[TZ]/g);
1606
- $[c] = K[c], m.value = C(/* @__PURE__ */ new Date(`${$[0]}T${$[1].split(".")[0]}`)), o(h) === "date" ? i.value = $[0] : o(h) === "time" ? i.value = $[1] : i.value = o(m) + we(/* @__PURE__ */ new Date(), "XXX");
1633
+ f.value == null && (f.value = C(/* @__PURE__ */ new Date()));
1634
+ const $ = f.value.split(/[TZ]/g), X = v.split(/[TZ]/g);
1635
+ $[c] = X[c], f.value = C(/* @__PURE__ */ new Date(`${$[0]}T${$[1].split(".")[0]}`)), o(h) === "date" ? u.value = $[0] : o(h) === "time" ? u.value = $[1] : u.value = o(f) + ye(/* @__PURE__ */ new Date(), "XXX");
1607
1636
  }
1608
1637
  }
1609
- ue(i, (v) => P(v, -1), { immediate: !0 });
1610
- const H = g({
1638
+ ue(u, (v) => P(v, -1), { immediate: !0 });
1639
+ const W = g({
1611
1640
  get() {
1612
- const v = o(m);
1641
+ const v = o(f);
1613
1642
  if (v == null) return null;
1614
1643
  const c = new Date(v);
1615
1644
  return Number.isNaN(c.getTime()) ? null : c;
@@ -1619,7 +1648,7 @@ const Jo = {
1619
1648
  }
1620
1649
  }), A = g({
1621
1650
  get() {
1622
- const v = o(m);
1651
+ const v = o(f);
1623
1652
  return v == null ? "" : v.split(/[TZ]/g)[1].split(".")[0];
1624
1653
  },
1625
1654
  set(v) {
@@ -1627,12 +1656,12 @@ const Jo = {
1627
1656
  }
1628
1657
  }), b = g({
1629
1658
  get() {
1630
- const v = o(H);
1631
- return v == null ? "" : we(v, o(f), { locale: a.value });
1659
+ const v = o(W);
1660
+ return v == null ? "" : ye(v, o(d), { locale: a.value });
1632
1661
  },
1633
1662
  set(v) {
1634
1663
  try {
1635
- const c = Nt(v, o(f), /* @__PURE__ */ new Date(), { locale: a.value });
1664
+ const c = Nt(v, o(d), /* @__PURE__ */ new Date(), { locale: a.value });
1636
1665
  P(C(c), 0);
1637
1666
  } catch (c) {
1638
1667
  console.error(c);
@@ -1640,36 +1669,36 @@ const Jo = {
1640
1669
  }
1641
1670
  }), N = g({
1642
1671
  get() {
1643
- const v = o(H);
1644
- return v == null ? "" : we(v, o(k), { locale: a.value });
1672
+ const v = o(W);
1673
+ return v == null ? "" : ye(v, o(k), { locale: a.value });
1645
1674
  },
1646
1675
  set(v) {
1647
1676
  const c = v.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
1648
1677
  if (c == null) return;
1649
1678
  let $ = Ge(c[1]);
1650
- const K = Ge(c[2]);
1651
- Ye($) || Ye(K) || (c[3] && c[3].toLowerCase() === "pm" && $ < 13 && ($ += 12), P(`T${$.toString().padStart(2, "0")}:${K.toString().padStart(2, "0")}:00`, 1));
1679
+ const X = Ge(c[2]);
1680
+ Ye($) || Ye(X) || (c[3] && c[3].toLowerCase() === "pm" && $ < 13 && ($ += 12), P(`T${$.toString().padStart(2, "0")}:${X.toString().padStart(2, "0")}:00`, 1));
1652
1681
  }
1653
1682
  });
1654
1683
  return (v, c) => {
1655
- const $ = M("v-date-picker"), K = M("v-confirm-edit"), Z = M("v-menu"), le = M("v-text-field"), pe = M("v-time-picker");
1656
- return V(), S(o(Re), O(n, {
1657
- class: o(s),
1684
+ const $ = M("v-date-picker"), X = M("v-confirm-edit"), Z = M("v-menu"), le = M("v-text-field"), pe = M("v-time-picker");
1685
+ return V(), S(o(Re), R(n, {
1686
+ class: o(i),
1658
1687
  clearable: e.clearable,
1659
- "onClick:clear": c[14] || (c[14] = (J) => i.value = null),
1688
+ "onClick:clear": c[14] || (c[14] = (J) => u.value = null),
1660
1689
  onBlur: c[15] || (c[15] = (J) => p.value = !0)
1661
1690
  }), {
1662
- default: w((J) => [
1691
+ default: y((J) => [
1663
1692
  de("div", {
1664
1693
  class: te([
1665
1694
  "d-flex",
1666
1695
  "w-100",
1667
- ["plain", "underlined"].includes(o(u).variant) ? void 0 : "ml-4",
1696
+ ["plain", "underlined"].includes(o(s).variant) ? void 0 : "ml-4",
1668
1697
  "df-input-wrapper",
1669
1698
  e.density
1670
1699
  ])
1671
1700
  }, [
1672
- ["date", "datetime"].includes(o(h)) ? (V(), S(le, O({
1701
+ ["date", "datetime"].includes(o(h)) ? (V(), S(le, R({
1673
1702
  key: 0,
1674
1703
  modelValue: b.value,
1675
1704
  "onUpdate:modelValue": c[4] || (c[4] = (j) => b.value = j),
@@ -1678,31 +1707,31 @@ const Jo = {
1678
1707
  variant: "plain",
1679
1708
  clearable: !1,
1680
1709
  "hide-details": !0,
1681
- readonly: o(u).readonly,
1682
- disabled: o(u).disabled,
1683
- name: `${o(u).name}-date`,
1684
- placeholder: o(u).placeholder
1710
+ readonly: o(s).readonly,
1711
+ disabled: o(s).disabled,
1712
+ name: `${o(s).name}-date`,
1713
+ placeholder: o(s).placeholder
1685
1714
  }, e.passthroughAttrs, {
1686
- onClick: c[5] || (c[5] = (j) => d.value = "date"),
1687
- onKeydown: c[6] || (c[6] = Ke((j) => d.value = "date", ["space"])),
1715
+ onClick: c[5] || (c[5] = (j) => m.value = "date"),
1716
+ onKeydown: c[6] || (c[6] = Ke((j) => m.value = "date", ["space"])),
1688
1717
  onFocus: (j) => J.focus(),
1689
1718
  onBlur: (j) => J.blur()
1690
1719
  }), {
1691
- default: w(() => [
1720
+ default: y(() => [
1692
1721
  D(Z, {
1693
1722
  modelValue: T.value,
1694
1723
  "onUpdate:modelValue": c[3] || (c[3] = (j) => T.value = j),
1695
1724
  "close-on-content-click": !1,
1696
1725
  activator: "parent"
1697
1726
  }, {
1698
- default: w(() => [
1699
- D(K, {
1700
- modelValue: H.value,
1701
- "onUpdate:modelValue": c[0] || (c[0] = (j) => H.value = j),
1702
- onCancel: c[1] || (c[1] = (j) => d.value = ""),
1703
- onSave: c[2] || (c[2] = (j) => d.value = "")
1727
+ default: y(() => [
1728
+ D(X, {
1729
+ modelValue: W.value,
1730
+ "onUpdate:modelValue": c[0] || (c[0] = (j) => W.value = j),
1731
+ onCancel: c[1] || (c[1] = (j) => m.value = ""),
1732
+ onSave: c[2] || (c[2] = (j) => m.value = "")
1704
1733
  }, {
1705
- default: w(({ model: j, actions: ve }) => [
1734
+ default: y(({ model: j, actions: ve }) => [
1706
1735
  D($, {
1707
1736
  modelValue: j.value,
1708
1737
  "onUpdate:modelValue": (he) => j.value = he,
@@ -1711,7 +1740,7 @@ const Jo = {
1711
1740
  "show-adjacent-months": !0,
1712
1741
  "show-week": !0
1713
1742
  }, {
1714
- actions: w(() => [
1743
+ actions: y(() => [
1715
1744
  (V(), S(Ce(ve)))
1716
1745
  ]),
1717
1746
  _: 2
@@ -1725,7 +1754,7 @@ const Jo = {
1725
1754
  ]),
1726
1755
  _: 1
1727
1756
  }, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : U("", !0),
1728
- ["time", "datetime"].includes(o(h)) ? (V(), S(le, O({
1757
+ ["time", "datetime"].includes(o(h)) ? (V(), S(le, R({
1729
1758
  key: 1,
1730
1759
  modelValue: N.value,
1731
1760
  "onUpdate:modelValue": c[11] || (c[11] = (j) => N.value = j),
@@ -1734,38 +1763,38 @@ const Jo = {
1734
1763
  variant: "plain",
1735
1764
  clearable: !1,
1736
1765
  "hide-details": !0,
1737
- readonly: o(u).readonly,
1738
- disabled: o(u).disabled,
1739
- name: `${o(u).name}-time`,
1740
- placeholder: o(h) === "time" ? o(u).placeholder : void 0
1766
+ readonly: o(s).readonly,
1767
+ disabled: o(s).disabled,
1768
+ name: `${o(s).name}-time`,
1769
+ placeholder: o(h) === "time" ? o(s).placeholder : void 0
1741
1770
  }, e.passthroughAttrs, {
1742
- onClick: c[12] || (c[12] = (j) => d.value = "time"),
1743
- onKeydown: c[13] || (c[13] = Ke((j) => d.value = "time", ["space"])),
1771
+ onClick: c[12] || (c[12] = (j) => m.value = "time"),
1772
+ onKeydown: c[13] || (c[13] = Ke((j) => m.value = "time", ["space"])),
1744
1773
  onFocus: (j) => J.focus(),
1745
1774
  onBlur: (j) => J.blur()
1746
1775
  }), {
1747
- default: w(() => [
1776
+ default: y(() => [
1748
1777
  D(Z, {
1749
1778
  modelValue: x.value,
1750
1779
  "onUpdate:modelValue": c[10] || (c[10] = (j) => x.value = j),
1751
1780
  "close-on-content-click": !1,
1752
1781
  activator: "parent"
1753
1782
  }, {
1754
- default: w(() => [
1755
- D(K, {
1783
+ default: y(() => [
1784
+ D(X, {
1756
1785
  modelValue: A.value,
1757
1786
  "onUpdate:modelValue": c[7] || (c[7] = (j) => A.value = j),
1758
- onCancel: c[8] || (c[8] = (j) => d.value = ""),
1759
- onSave: c[9] || (c[9] = (j) => d.value = "")
1787
+ onCancel: c[8] || (c[8] = (j) => m.value = ""),
1788
+ onSave: c[9] || (c[9] = (j) => m.value = "")
1760
1789
  }, {
1761
- default: w(({ model: j, actions: ve }) => [
1790
+ default: y(({ model: j, actions: ve }) => [
1762
1791
  D(pe, {
1763
1792
  modelValue: j.value,
1764
1793
  "onUpdate:modelValue": (he) => j.value = he,
1765
1794
  "hide-header": !0,
1766
1795
  format: "24hr"
1767
1796
  }, {
1768
- actions: w(() => [
1797
+ actions: y(() => [
1769
1798
  (V(), S(Ce(ve)))
1770
1799
  ]),
1771
1800
  _: 2
@@ -1785,7 +1814,7 @@ const Jo = {
1785
1814
  }, 16, ["class", "clearable"]);
1786
1815
  };
1787
1816
  }
1788
- }), al = /* @__PURE__ */ R({
1817
+ }), al = /* @__PURE__ */ H({
1789
1818
  __name: "df-file",
1790
1819
  props: /* @__PURE__ */ ne({
1791
1820
  comms: {},
@@ -1806,61 +1835,61 @@ const Jo = {
1806
1835
  }, oe),
1807
1836
  emits: ["update:modelValue", "click:clear"],
1808
1837
  setup(e, { emit: t }) {
1809
- const n = e, l = t, { densityClass: a, touched: r, value: s, vuetifyBindings: p } = Q(n, l), i = E(null), u = E(null), h = E(0), f = E(Math.round(Math.random() * 1e3)), k = E(), d = g(() => u.value && h.value < 100), T = g(() => !k.value && s.value ? n.modelValue : "");
1838
+ const n = e, l = t, { densityClass: a, touched: r, value: i, vuetifyBindings: p } = Q(n, l), u = E(null), s = E(null), h = E(0), d = E(Math.round(Math.random() * 1e3)), k = E(), m = g(() => s.value && h.value < 100), T = g(() => !k.value && i.value ? n.modelValue : "");
1810
1839
  function x() {
1811
- i.value && window.clearInterval(i.value);
1840
+ u.value && window.clearInterval(u.value);
1812
1841
  }
1813
1842
  function C() {
1814
- x(), i.value = window.setInterval(() => {
1815
- s.value && n.comms.touch(s.value);
1843
+ x(), u.value = window.setInterval(() => {
1844
+ i.value && n.comms.touch(i.value);
1816
1845
  }, 60 * 1e3);
1817
1846
  }
1818
- nt(() => x()), ue(s, (A) => {
1847
+ nt(() => x()), ue(i, (A) => {
1819
1848
  A ? C() : x();
1820
1849
  });
1821
- function m() {
1850
+ function f() {
1822
1851
  return Te(this, null, function* () {
1823
- s.value && (yield n.comms.delete(s.value)), s.value = null, h.value = 0, f.value = Math.round(Math.random() * 1e3), u.value = null, k.value = null, x();
1852
+ i.value && (yield n.comms.delete(i.value)), i.value = null, h.value = 0, d.value = Math.round(Math.random() * 1e3), s.value = null, k.value = null, x();
1824
1853
  });
1825
1854
  }
1826
1855
  function P(A) {
1827
1856
  return Te(this, null, function* () {
1828
- h.value = -1, u.value = A;
1857
+ h.value = -1, s.value = A;
1829
1858
  try {
1830
- s.value = yield n.comms.upload(A, (b, N) => {
1859
+ i.value = yield n.comms.upload(A, (b, N) => {
1831
1860
  h.value = Math.round(b * 100 / N);
1832
1861
  }), h.value = 100, C();
1833
1862
  } catch (b) {
1834
- throw h.value = 0, u.value = null, f.value = Math.round(Math.random() * 1e3), k.value = null, b;
1863
+ throw h.value = 0, s.value = null, d.value = Math.round(Math.random() * 1e3), k.value = null, b;
1835
1864
  }
1836
1865
  });
1837
1866
  }
1838
- function H(A) {
1867
+ function W(A) {
1839
1868
  A && (Array.isArray(A) ? console.error("Uploading multiple files not supported right now") : P(A));
1840
1869
  }
1841
1870
  return (A, b) => {
1842
1871
  const N = M("v-progress-linear"), v = M("v-file-input");
1843
- return V(), S(o(Re), O(L(I({}, n), { loading: d.value }), {
1872
+ return V(), S(o(Re), R(L(I({}, n), { loading: m.value }), {
1844
1873
  class: o(a),
1845
1874
  clearable: "",
1846
- "onClick:clear": m,
1875
+ "onClick:clear": f,
1847
1876
  onBlur: b[1] || (b[1] = (c) => r.value = !0)
1848
1877
  }), {
1849
- "prepend-inner": w(() => [
1878
+ "prepend-inner": y(() => [
1850
1879
  D(o(je), { name: "mdi-paperclip" })
1851
1880
  ]),
1852
- loader: w(() => [
1853
- u.value && h.value < 100 ? (V(), S(N, {
1881
+ loader: y(() => [
1882
+ s.value && h.value < 100 ? (V(), S(N, {
1854
1883
  key: 0,
1855
1884
  "model-value": h.value,
1856
1885
  indeterminate: h.value === -1
1857
1886
  }, null, 8, ["model-value", "indeterminate"])) : U("", !0)
1858
1887
  ]),
1859
- default: w((c) => [
1888
+ default: y((c) => [
1860
1889
  de("div", {
1861
1890
  class: te(["d-flex w-100 position-relative df-input-wrapper", e.density])
1862
1891
  }, [
1863
- D(v, O({
1892
+ D(v, R({
1864
1893
  modelValue: k.value,
1865
1894
  "onUpdate:modelValue": b[0] || (b[0] = ($) => k.value = $),
1866
1895
  label: T.value,
@@ -1872,11 +1901,11 @@ const Jo = {
1872
1901
  "hide-details": !0,
1873
1902
  "show-size": !0,
1874
1903
  multiple: !1,
1875
- style: u.value && h.value < 100 ? "visibility: hidden" : "",
1904
+ style: s.value && h.value < 100 ? "visibility: hidden" : "",
1876
1905
  clearable: !1
1877
1906
  }, e.passthroughAttrs, {
1878
1907
  "prepend-icon": "",
1879
- "onUpdate:modelValue": H,
1908
+ "onUpdate:modelValue": W,
1880
1909
  onFocus: ($) => c.focus(),
1881
1910
  onBlur: ($) => c.blur()
1882
1911
  }), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
@@ -1886,7 +1915,7 @@ const Jo = {
1886
1915
  }, 16, ["class"]);
1887
1916
  };
1888
1917
  }
1889
- }), rl = /* @__PURE__ */ R({
1918
+ }), rl = /* @__PURE__ */ H({
1890
1919
  __name: "df-input",
1891
1920
  props: /* @__PURE__ */ ne({
1892
1921
  inputType: {},
@@ -1917,52 +1946,52 @@ const Jo = {
1917
1946
  })),
1918
1947
  emits: ["update:modelValue", "click:clear"],
1919
1948
  setup(e, { emit: t }) {
1920
- const n = e, l = t, { densityClass: a, label: r, showErrors: s, touched: p, value: i, vuetifyBindings: u } = Q(n, l), { inputType: h, max: f, min: k, precision: d, step: T } = De(n), x = g(() => h.value === "number"), C = g(
1921
- () => x.value ? { min: o(k), max: o(f), precision: o(d), step: o(T) } : {}
1949
+ const n = e, l = t, { densityClass: a, label: r, showErrors: i, touched: p, value: u, vuetifyBindings: s } = Q(n, l), { inputType: h, max: d, min: k, precision: m, step: T } = De(n), x = g(() => h.value === "number"), C = g(
1950
+ () => x.value ? { min: o(k), max: o(d), precision: o(m), step: o(T) } : {}
1922
1951
  );
1923
- return (m, P) => {
1924
- const H = M("v-text-field"), A = M("v-number-input");
1925
- return V(), z("div", {
1952
+ return (f, P) => {
1953
+ const W = M("v-text-field"), A = M("v-number-input");
1954
+ return V(), K("div", {
1926
1955
  class: te(["df-input-container", o(a)])
1927
1956
  }, [
1928
- x.value ? (V(), S(A, O({
1957
+ x.value ? (V(), S(A, R({
1929
1958
  key: 1,
1930
- modelValue: o(i),
1931
- "onUpdate:modelValue": P[2] || (P[2] = (b) => ce(i) ? i.value = b : null),
1959
+ modelValue: o(u),
1960
+ "onUpdate:modelValue": P[2] || (P[2] = (b) => ce(u) ? u.value = b : null),
1932
1961
  density: "compact",
1933
1962
  "control-variant": "stacked"
1934
- }, I(I({}, o(u)), C.value)), {
1935
- label: w((b) => [
1963
+ }, I(I({}, o(s)), C.value)), {
1964
+ label: y((b) => [
1936
1965
  D(o(me), {
1937
1966
  data: b,
1938
1967
  label: o(r)
1939
1968
  }, null, 8, ["data", "label"])
1940
1969
  ]),
1941
- message: w(({ message: b }) => [
1970
+ message: y(({ message: b }) => [
1942
1971
  D(o(ee), {
1943
1972
  message: b,
1944
- errors: o(s)
1973
+ errors: o(i)
1945
1974
  }, null, 8, ["message", "errors"])
1946
1975
  ]),
1947
1976
  _: 1
1948
- }, 16, ["modelValue"])) : (V(), S(H, O({
1977
+ }, 16, ["modelValue"])) : (V(), S(W, R({
1949
1978
  key: 0,
1950
- modelValue: o(i),
1951
- "onUpdate:modelValue": P[0] || (P[0] = (b) => ce(i) ? i.value = b : null),
1979
+ modelValue: o(u),
1980
+ "onUpdate:modelValue": P[0] || (P[0] = (b) => ce(u) ? u.value = b : null),
1952
1981
  type: o(h)
1953
- }, o(u), {
1982
+ }, o(s), {
1954
1983
  onBlur: P[1] || (P[1] = (b) => p.value = !0)
1955
1984
  }), {
1956
- label: w((b) => [
1985
+ label: y((b) => [
1957
1986
  D(o(me), {
1958
1987
  data: b,
1959
1988
  label: o(r)
1960
1989
  }, null, 8, ["data", "label"])
1961
1990
  ]),
1962
- message: w(({ message: b }) => [
1991
+ message: y(({ message: b }) => [
1963
1992
  D(o(ee), {
1964
1993
  message: b,
1965
- errors: o(s)
1994
+ errors: o(i)
1966
1995
  }, null, 8, ["message", "errors"])
1967
1996
  ]),
1968
1997
  _: 1
@@ -1970,7 +1999,7 @@ const Jo = {
1970
1999
  ], 2);
1971
2000
  };
1972
2001
  }
1973
- }), il = { class: "editor-container" }, sl = { class: "editor-container__editor" }, ul = { ref: "editorElement" }, cl = /* @__PURE__ */ R({
2002
+ }), il = { class: "editor-container" }, sl = { class: "editor-container__editor" }, ul = { ref: "editorElement" }, cl = /* @__PURE__ */ H({
1974
2003
  __name: "ck-editor-custom",
1975
2004
  props: {
1976
2005
  modelValue: { default: "" },
@@ -1979,10 +2008,10 @@ const Jo = {
1979
2008
  },
1980
2009
  emits: ["update:modelValue"],
1981
2010
  setup(e, { expose: t, emit: n }) {
1982
- _t((f) => ({
1983
- v32dcdf6e: f.minHeight
2011
+ _t((d) => ({
2012
+ v32dcdf6e: d.minHeight
1984
2013
  }));
1985
- const l = n, a = E(!1), r = _n, s = {
2014
+ const l = n, a = E(!1), r = _n, i = {
1986
2015
  items: [
1987
2016
  "undo",
1988
2017
  "redo",
@@ -2045,15 +2074,15 @@ const Jo = {
2045
2074
  hn,
2046
2075
  bn,
2047
2076
  gn,
2048
- wn,
2049
2077
  yn,
2078
+ wn,
2050
2079
  kn,
2051
2080
  Vn,
2052
2081
  Cn,
2053
2082
  jn,
2054
2083
  Tn,
2055
2084
  xn
2056
- ], i = {
2085
+ ], u = {
2057
2086
  options: [
2058
2087
  { model: "paragraph", title: F.Paragraph, class: "ck-heading_paragraph" },
2059
2088
  { model: "heading1", view: "h1", title: F.Heading1, class: "ck-heading_heading1" },
@@ -2063,12 +2092,12 @@ const Jo = {
2063
2092
  { model: "heading5", view: "h5", title: F.Heading5, class: "ck-heading_heading5" },
2064
2093
  { model: "heading6", view: "h6", title: F.Heading6, class: "ck-heading_heading6" }
2065
2094
  ]
2066
- }, u = {
2095
+ }, s = {
2067
2096
  language: Be.language,
2068
- toolbar: s,
2097
+ toolbar: i,
2069
2098
  plugins: p,
2070
2099
  balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
2071
- heading: i,
2100
+ heading: u,
2072
2101
  htmlSupport: {
2073
2102
  allow: [{ name: /^.*$/, styles: !0, attributes: !0, classes: !0 }]
2074
2103
  },
@@ -2116,18 +2145,18 @@ const Jo = {
2116
2145
  tt(() => {
2117
2146
  a.value = !0;
2118
2147
  });
2119
- const h = (f) => {
2148
+ const h = (d) => {
2120
2149
  };
2121
- return t({ onEditorReady: h }), (f, k) => {
2122
- const d = M("ckeditor");
2123
- return V(), z("div", il, [
2150
+ return t({ onEditorReady: h }), (d, k) => {
2151
+ const m = M("ckeditor");
2152
+ return V(), K("div", il, [
2124
2153
  de("div", sl, [
2125
2154
  de("div", ul, [
2126
- a.value ? (V(), S(d, {
2155
+ a.value ? (V(), S(m, {
2127
2156
  key: 0,
2128
2157
  "model-value": e.modelValue,
2129
2158
  editor: o(r),
2130
- config: u,
2159
+ config: s,
2131
2160
  disabled: e.disabled,
2132
2161
  style: ot(`min-height: ${e.minHeight}`),
2133
2162
  onReady: h,
@@ -2138,7 +2167,7 @@ const Jo = {
2138
2167
  ]);
2139
2168
  };
2140
2169
  }
2141
- }), dl = /* @__PURE__ */ R({
2170
+ }), dl = /* @__PURE__ */ H({
2142
2171
  __name: "df-rtf-editor",
2143
2172
  props: /* @__PURE__ */ ne({
2144
2173
  minHeight: {},
@@ -2159,21 +2188,21 @@ const Jo = {
2159
2188
  }, L(I({}, oe), { minHeight: void 0 })),
2160
2189
  emits: ["update:modelValue", "click:clear"],
2161
2190
  setup(e, { emit: t }) {
2162
- const n = e, l = t, { densityClass: a, value: r, vuetifyBindings: s } = Q(n, l);
2163
- return (p, i) => (V(), S(o(Re), O(n, {
2191
+ const n = e, l = t, { densityClass: a, value: r, vuetifyBindings: i } = Q(n, l);
2192
+ return (p, u) => (V(), S(o(Re), R(n, {
2164
2193
  class: ["ck-editor-custom", o(a)]
2165
2194
  }), {
2166
- default: w((u) => [
2167
- D(cl, O({
2195
+ default: y((s) => [
2196
+ D(cl, R({
2168
2197
  ref: "$editor",
2169
2198
  modelValue: o(r),
2170
- "onUpdate:modelValue": i[0] || (i[0] = (h) => ce(r) ? r.value = h : null),
2199
+ "onUpdate:modelValue": u[0] || (u[0] = (h) => ce(r) ? r.value = h : null),
2171
2200
  class: { "mt-6": !!e.label },
2172
2201
  "min-height": e.minHeight,
2173
- disabled: o(s).disabled
2202
+ disabled: o(i).disabled
2174
2203
  }, e.passthroughAttrs, {
2175
- onFocusin: (h) => u.focus(),
2176
- onFocusout: (h) => u.blur()
2204
+ onFocusin: (h) => s.focus(),
2205
+ onFocusout: (h) => s.blur()
2177
2206
  }), null, 16, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
2178
2207
  ]),
2179
2208
  _: 1
@@ -2193,7 +2222,7 @@ function Ie(e, t) {
2193
2222
  return e.filter((l) => n.some((a) => a === l.id));
2194
2223
  }
2195
2224
  function xe(e, t, n, l, a) {
2196
- var s;
2225
+ var i;
2197
2226
  const r = ae(e, n);
2198
2227
  if (r == null) {
2199
2228
  t.value = n ? [] : null;
@@ -2205,13 +2234,13 @@ function xe(e, t, n, l, a) {
2205
2234
  t.value = r;
2206
2235
  else {
2207
2236
  const p = at(Ie(a, r));
2208
- t.value = (s = p == null ? void 0 : p.id) != null ? s : null;
2237
+ t.value = (i = p == null ? void 0 : p.id) != null ? i : null;
2209
2238
  }
2210
2239
  }
2211
2240
  const fl = {
2212
2241
  key: 0,
2213
2242
  class: "me-1"
2214
- }, pl = /* @__PURE__ */ R({
2243
+ }, pl = /* @__PURE__ */ H({
2215
2244
  __name: "df-select",
2216
2245
  props: /* @__PURE__ */ ne({
2217
2246
  choices: {},
@@ -2242,61 +2271,61 @@ const fl = {
2242
2271
  })),
2243
2272
  emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
2244
2273
  setup(e, { emit: t }) {
2245
- const n = e, { choices: l, multiple: a, allowTags: r, allowNull: s, cssClass: p, visibility: i } = De(n), u = t, h = E(null), {
2246
- densityClass: f,
2274
+ const n = e, { choices: l, multiple: a, allowTags: r, allowNull: i, cssClass: p, visibility: u } = De(n), s = t, h = E(null), {
2275
+ densityClass: d,
2247
2276
  label: k,
2248
- showErrors: d,
2277
+ showErrors: m,
2249
2278
  touched: T,
2250
2279
  value: x,
2251
2280
  vuetifyBindings: C
2252
- } = Q(n, u), m = E(null), P = E(!1), H = E([]), A = g(() => o(P) ? o(H) : o(l) || []), b = E(!1), N = g(() => ml(A.value)), v = E(null), c = E(0), $ = E(!1);
2281
+ } = Q(n, s), f = E(null), P = E(!1), W = E([]), A = g(() => o(P) ? o(W) : o(l) || []), b = E(!1), N = g(() => ml(A.value)), v = E(null), c = E(0), $ = E(!1);
2253
2282
  N.value && n.fetchChoices !== void 0 && console.warn("Both options and fetchChoices are set. Only one of them should be set.");
2254
- function K(y) {
2255
- u("update:modelValueDisplay", Ie(A.value, y));
2283
+ function X(w) {
2284
+ s("update:modelValueDisplay", Ie(A.value, w));
2256
2285
  }
2257
2286
  const Z = E(!1);
2258
- function le(y) {
2259
- Z.value = !0, x.value = y, Xe(() => {
2287
+ function le(w) {
2288
+ Z.value = !0, x.value = w, Xe(() => {
2260
2289
  Z.value = !1;
2261
2290
  });
2262
2291
  }
2263
- function pe(y) {
2264
- if (!y) return 0;
2265
- const _ = y.getBoundingClientRect(), W = window.getComputedStyle(y);
2266
- return _.width + parseFloat(W.marginLeft) + parseFloat(W.marginRight);
2292
+ function pe(w) {
2293
+ if (!w) return 0;
2294
+ const _ = w.getBoundingClientRect(), O = window.getComputedStyle(w);
2295
+ return _.width + parseFloat(O.marginLeft) + parseFloat(O.marginRight);
2267
2296
  }
2268
2297
  function J() {
2269
- var y;
2270
- if (a.value && s.value && m.value != null && m.value.length > 0 && h.value) {
2271
- const _ = h.value.$el, W = (y = _.querySelector(".v-input__control")) == null ? void 0 : y.clientWidth, X = _.querySelector(".v-field__input"), B = X.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), q = window.getComputedStyle(X);
2272
- let be = parseFloat(q.paddingLeft) + parseFloat(q.paddingRight);
2298
+ var w;
2299
+ if (a.value && i.value && f.value != null && f.value.length > 0 && h.value) {
2300
+ const _ = h.value.$el, O = (w = _.querySelector(".v-input__control")) == null ? void 0 : w.clientWidth, q = _.querySelector(".v-field__input"), B = q.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), G = window.getComputedStyle(q);
2301
+ let be = parseFloat(G.paddingLeft) + parseFloat(G.paddingRight);
2273
2302
  B.forEach((vt) => {
2274
2303
  be += pe(vt);
2275
2304
  });
2276
2305
  const mt = pe(_.querySelector(".v-field .v-field__clearable")), ft = pe(_.querySelector(".v-field .v-field__append-inner")), pt = 2;
2277
- $.value = W - be - B.length * pt - ft < mt;
2306
+ $.value = O - be - B.length * pt - ft < mt;
2278
2307
  } else
2279
2308
  $.value = !1;
2280
2309
  }
2281
- function j(y) {
2282
- const _ = y.target;
2283
- _ instanceof HTMLElement && _.closest(".v-chip__close") && (y.stopPropagation(), y.preventDefault());
2310
+ function j(w) {
2311
+ const _ = w.target;
2312
+ _ instanceof HTMLElement && _.closest(".v-chip__close") && (w.stopPropagation(), w.preventDefault());
2284
2313
  }
2285
2314
  ue(
2286
- m,
2287
- (y) => {
2315
+ f,
2316
+ (w) => {
2288
2317
  C.value.readonly || Xe(() => {
2289
- const _ = ae(y, a.value);
2290
- K(_), le(_);
2318
+ const _ = ae(w, a.value);
2319
+ X(_), le(_);
2291
2320
  });
2292
2321
  },
2293
2322
  { deep: !0 }
2294
2323
  ), ue(
2295
2324
  x,
2296
- (y) => {
2325
+ (w) => {
2297
2326
  if (!Z.value) {
2298
- const _ = ae(y, a.value);
2299
- xe(_, m, a.value, !1, A.value);
2327
+ const _ = ae(w, a.value);
2328
+ xe(_, f, a.value, !1, A.value);
2300
2329
  }
2301
2330
  },
2302
2331
  { deep: !0 }
@@ -2308,57 +2337,57 @@ const fl = {
2308
2337
  }
2309
2338
  function he() {
2310
2339
  if (ve(), C.value.readonly || r.value) return;
2311
- const y = ae(m.value, a.value);
2312
- xe(y, m, a.value, !1, A.value), le(y);
2340
+ const w = ae(f.value, a.value);
2341
+ xe(w, f, a.value, !1, A.value), le(w);
2313
2342
  }
2314
- function dt(y, _) {
2315
- if (y.stopPropagation(), C.value.readonly || r.value) {
2316
- r.value && (m.value = m.value.filter((X) => X !== _));
2343
+ function dt(w, _) {
2344
+ if (w.stopPropagation(), C.value.readonly || r.value) {
2345
+ r.value && (f.value = f.value.filter((q) => q !== _));
2317
2346
  return;
2318
2347
  }
2319
- let W;
2320
- a.value && Array.isArray(m.value) ? W = ae(
2321
- m.value.filter((X) => X !== _),
2348
+ let O;
2349
+ a.value && Array.isArray(f.value) ? O = ae(
2350
+ f.value.filter((q) => q !== _),
2322
2351
  a.value
2323
- ) : W = null, xe(W, m, a.value, !1, A.value), le(W);
2352
+ ) : O = null, xe(O, f, a.value, !1, A.value), le(O);
2324
2353
  }
2325
- function Se(y, _) {
2354
+ function Se(w, _) {
2326
2355
  return Te(this, null, function* () {
2327
- if (C.value.readonly || (v.value = y, l.value || n.fetchChoices === void 0)) return;
2328
- const W = ++c.value;
2356
+ if (C.value.readonly || (v.value = w, l.value || n.fetchChoices === void 0)) return;
2357
+ const O = ++c.value;
2329
2358
  b.value = !0;
2330
2359
  try {
2331
- const X = Ie(
2360
+ const q = Ie(
2332
2361
  A.value,
2333
- ae(m.value, a.value)
2334
- ), B = yield n.fetchChoices(y, _);
2335
- if (W !== c.value) return;
2336
- H.value = St([...X, ...B], "id"), P.value = !0;
2362
+ ae(f.value, a.value)
2363
+ ), B = yield n.fetchChoices(w, _);
2364
+ if (O !== c.value) return;
2365
+ W.value = St([...q, ...B], "id"), P.value = !0;
2337
2366
  } finally {
2338
2367
  b.value = !1;
2339
2368
  }
2340
2369
  });
2341
2370
  }
2342
2371
  function He() {
2343
- let y = x.value;
2344
- !s.value && y == null && N.value.length && (y = N.value[0].value), y = ae(y, a.value), xe(y, m, a.value, r.value, A.value), K(y), le(y);
2372
+ let w = x.value;
2373
+ !i.value && w == null && N.value.length && (w = N.value[0].value), w = ae(w, a.value), xe(w, f, a.value, r.value, A.value), X(w), le(w);
2345
2374
  }
2346
2375
  return He(), n.fetchChoices !== void 0 && Se(void 0, x.value).then(() => {
2347
2376
  He();
2348
- }), (y, _) => {
2349
- const W = M("v-chip"), X = M("v-list-item");
2350
- return o(i) !== o(Y).SUPPRESS ? (V(), S(Ce(o(r) ? "v-combobox" : "v-autocomplete"), O({
2377
+ }), (w, _) => {
2378
+ const O = M("v-chip"), q = M("v-list-item");
2379
+ return o(u) !== o(z).SUPPRESS ? (V(), S(Ce(o(r) ? "v-combobox" : "v-autocomplete"), R({
2351
2380
  key: 0,
2352
2381
  ref_key: "dfSelectRef",
2353
2382
  ref: h,
2354
- modelValue: m.value,
2355
- "onUpdate:modelValue": _[0] || (_[0] = (B) => m.value = B),
2383
+ modelValue: f.value,
2384
+ "onUpdate:modelValue": _[0] || (_[0] = (B) => f.value = B),
2356
2385
  class: [
2357
2386
  o(p),
2358
- o(f),
2387
+ o(d),
2359
2388
  {
2360
- "d-none": o(i) === o(Y).HIDDEN,
2361
- invisible: o(i) === o(Y).INVISIBLE,
2389
+ "d-none": o(u) === o(z).HIDDEN,
2390
+ invisible: o(u) === o(z).INVISIBLE,
2362
2391
  "df-select-multirow": $.value
2363
2392
  }
2364
2393
  ],
@@ -2366,8 +2395,8 @@ const fl = {
2366
2395
  "return-object": !1,
2367
2396
  chips: "",
2368
2397
  "auto-select-first": !0,
2369
- "closable-chips": o(s) || o(a) && m.value.length > 1,
2370
- clearable: o(s),
2398
+ "closable-chips": o(i) || o(a) && f.value.length > 1,
2399
+ clearable: o(i),
2371
2400
  multiple: o(a),
2372
2401
  loading: b.value,
2373
2402
  "hide-selected": !1,
@@ -2377,31 +2406,31 @@ const fl = {
2377
2406
  }, o(C), {
2378
2407
  "onUpdate:search": _[1] || (_[1] = (B) => Se(B, void 0)),
2379
2408
  "onUpdate:modelValue": he,
2380
- "onClick:clear": _[2] || (_[2] = (B) => m.value = null),
2409
+ "onClick:clear": _[2] || (_[2] = (B) => f.value = null),
2381
2410
  onBlur: _[3] || (_[3] = (B) => T.value = !0),
2382
2411
  onMousedownCapture: _[4] || (_[4] = (B) => j(B))
2383
2412
  }), Me({
2384
- chip: w(({ item: B }) => [
2385
- (V(), S(W, {
2413
+ chip: y(({ item: B }) => [
2414
+ (V(), S(O, {
2386
2415
  key: B.value,
2387
2416
  label: "",
2388
2417
  size: "small",
2389
2418
  class: "d-flex align-middle",
2390
2419
  variant: o(a) ? "tonal" : "text",
2391
2420
  closable: o(a),
2392
- "onClick:close": (q) => dt(q, B.value)
2421
+ "onClick:close": (G) => dt(G, B.value)
2393
2422
  }, {
2394
- prepend: w(() => {
2395
- var q;
2423
+ prepend: y(() => {
2424
+ var G;
2396
2425
  return [
2397
- (q = B.raw) != null && q.icon ? (V(), S(o(je), {
2426
+ (G = B.raw) != null && G.icon ? (V(), S(o(je), {
2398
2427
  key: 0,
2399
2428
  class: "me-1",
2400
2429
  name: B.raw.icon
2401
2430
  }, null, 8, ["name"])) : U("", !0)
2402
2431
  ];
2403
2432
  }),
2404
- default: w(() => [
2433
+ default: y(() => [
2405
2434
  de("span", {
2406
2435
  class: te({ "text-body-1": !o(a) })
2407
2436
  }, Ne(B.title), 3)
@@ -2409,21 +2438,21 @@ const fl = {
2409
2438
  _: 2
2410
2439
  }, 1032, ["variant", "closable", "onClick:close"]))
2411
2440
  ]),
2412
- label: w((B) => [
2441
+ label: y((B) => [
2413
2442
  D(o(me), {
2414
2443
  data: B,
2415
2444
  label: o(k)
2416
2445
  }, null, 8, ["data", "label"])
2417
2446
  ]),
2418
- item: w(({ props: B, item: q }) => [
2419
- D(X, re(ie(B)), {
2420
- prepend: w(() => {
2447
+ item: y(({ props: B, item: G }) => [
2448
+ D(q, re(ie(B)), {
2449
+ prepend: y(() => {
2421
2450
  var be;
2422
2451
  return [
2423
- (be = q.raw) != null && be.icon ? (V(), z("span", fl, [
2452
+ (be = G.raw) != null && be.icon ? (V(), K("span", fl, [
2424
2453
  D(o(je), {
2425
2454
  class: "action-icon",
2426
- name: q.raw.icon
2455
+ name: G.raw.icon
2427
2456
  }, null, 8, ["name"])
2428
2457
  ])) : U("", !0)
2429
2458
  ];
@@ -2431,25 +2460,25 @@ const fl = {
2431
2460
  _: 2
2432
2461
  }, 1040)
2433
2462
  ]),
2434
- message: w(({ message: B }) => [
2463
+ message: y(({ message: B }) => [
2435
2464
  D(o(ee), {
2436
2465
  message: B,
2437
- errors: o(d)
2466
+ errors: o(m)
2438
2467
  }, null, 8, ["message", "errors"])
2439
2468
  ]),
2440
2469
  _: 2
2441
2470
  }, [
2442
- y.$slots["append-inner"] ? {
2471
+ w.$slots["append-inner"] ? {
2443
2472
  name: "append-inner",
2444
- fn: w((B) => [
2445
- fe(y.$slots, "append-inner", re(ie(B)), void 0, !0)
2473
+ fn: y((B) => [
2474
+ fe(w.$slots, "append-inner", re(ie(B)), void 0, !0)
2446
2475
  ]),
2447
2476
  key: "0"
2448
2477
  } : void 0,
2449
- y.$slots["prepend-inner"] ? {
2478
+ w.$slots["prepend-inner"] ? {
2450
2479
  name: "prepend-inner",
2451
- fn: w((B) => [
2452
- fe(y.$slots, "prepend-inner", re(ie(B)), void 0, !0)
2480
+ fn: y((B) => [
2481
+ fe(w.$slots, "prepend-inner", re(ie(B)), void 0, !0)
2453
2482
  ]),
2454
2483
  key: "1"
2455
2484
  } : void 0
@@ -2461,7 +2490,7 @@ const fl = {
2461
2490
  for (const [l, a] of t)
2462
2491
  n[l] = a;
2463
2492
  return n;
2464
- }, hl = /* @__PURE__ */ vl(pl, [["__scopeId", "data-v-bc8c4153"]]), bl = /* @__PURE__ */ R({
2493
+ }, hl = /* @__PURE__ */ vl(pl, [["__scopeId", "data-v-bc8c4153"]]), bl = /* @__PURE__ */ H({
2465
2494
  __name: "df-text-area",
2466
2495
  props: /* @__PURE__ */ ne({
2467
2496
  rows: {},
@@ -2486,39 +2515,39 @@ const fl = {
2486
2515
  })),
2487
2516
  emits: ["update:modelValue", "click:clear"],
2488
2517
  setup(e, { emit: t }) {
2489
- const n = e, l = t, { densityClass: a, label: r, showErrors: s, touched: p, value: i, vuetifyBindings: u } = Q(n, l), { cssClass: h, visibility: f } = De(n);
2490
- return (k, d) => {
2518
+ const n = e, l = t, { densityClass: a, label: r, showErrors: i, touched: p, value: u, vuetifyBindings: s } = Q(n, l), { cssClass: h, visibility: d } = De(n);
2519
+ return (k, m) => {
2491
2520
  const T = M("v-textarea");
2492
- return V(), z("div", {
2521
+ return V(), K("div", {
2493
2522
  class: te(["df-textarea-container", o(a)])
2494
2523
  }, [
2495
- o(f) !== o(Y).SUPPRESS ? (V(), S(T, O({
2524
+ o(d) !== o(z).SUPPRESS ? (V(), S(T, R({
2496
2525
  key: 0,
2497
- modelValue: o(i),
2498
- "onUpdate:modelValue": d[0] || (d[0] = (x) => ce(i) ? i.value = x : null),
2526
+ modelValue: o(u),
2527
+ "onUpdate:modelValue": m[0] || (m[0] = (x) => ce(u) ? u.value = x : null),
2499
2528
  class: [
2500
2529
  o(h),
2501
2530
  {
2502
- "d-none": o(f) === o(Y).HIDDEN,
2503
- invisible: o(f) === o(Y).INVISIBLE
2531
+ "d-none": o(d) === o(z).HIDDEN,
2532
+ invisible: o(d) === o(z).INVISIBLE
2504
2533
  }
2505
2534
  ],
2506
2535
  rows: e.rows,
2507
2536
  "auto-grow": (e.maxRows || 0) > 0,
2508
2537
  "max-rows": e.maxRows
2509
- }, o(u), {
2510
- onBlur: d[1] || (d[1] = (x) => p.value = !0)
2538
+ }, o(s), {
2539
+ onBlur: m[1] || (m[1] = (x) => p.value = !0)
2511
2540
  }), {
2512
- label: w((x) => [
2541
+ label: y((x) => [
2513
2542
  D(o(me), {
2514
2543
  data: x,
2515
2544
  label: o(r)
2516
2545
  }, null, 8, ["data", "label"])
2517
2546
  ]),
2518
- message: w(({ message: x }) => [
2547
+ message: y(({ message: x }) => [
2519
2548
  D(o(ee), {
2520
2549
  message: x,
2521
- errors: o(s)
2550
+ errors: o(i)
2522
2551
  }, null, 8, ["message", "errors"])
2523
2552
  ]),
2524
2553
  _: 1
@@ -2538,7 +2567,7 @@ const fl = {
2538
2567
  DfRtfEditor: dl,
2539
2568
  DfSelect: hl,
2540
2569
  DfTextArea: bl
2541
- }, Symbol.toStringTag, { value: "Module" })), wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2570
+ }, Symbol.toStringTag, { value: "Module" })), yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2542
2571
  __proto__: null,
2543
2572
  VAutocomplete: Bn,
2544
2573
  VBtn: In,
@@ -2569,12 +2598,12 @@ const fl = {
2569
2598
  }, Symbol.toStringTag, { value: "Module" })), ta = {
2570
2599
  install: (e, t) => {
2571
2600
  var n, l;
2572
- e.use(uo), e.provide(ct, t != null ? t : {}), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(gl).map(([a, r]) => e.component(a, r)), (l = t == null ? void 0 : t.registerVuetifyComponents) != null && l && Object.entries(wl).map(([a, r]) => e.component(a, r));
2601
+ e.use(uo), e.provide(ct, t != null ? t : {}), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(gl).map(([a, r]) => e.component(a, r)), (l = t == null ? void 0 : t.registerVuetifyComponents) != null && l && Object.entries(yl).map(([a, r]) => e.component(a, r));
2573
2602
  }
2574
2603
  };
2575
2604
  export {
2576
2605
  _e as Action,
2577
- G as ActionDisplayStyle,
2606
+ Y as ActionDisplayStyle,
2578
2607
  ee as DFInputHint,
2579
2608
  Ko as DateTimeLocaleConfig,
2580
2609
  tl as DfActions,
@@ -2595,7 +2624,7 @@ export {
2595
2624
  Xo as Label,
2596
2625
  Zo as ResponsiveActionRenderOptions,
2597
2626
  Go as ResponsiveRenderOptions,
2598
- wl as VuetifyComponents,
2627
+ yl as VuetifyComponents,
2599
2628
  Be as ckEditorLanguage,
2600
2629
  oe as defaultBaseProps,
2601
2630
  Je as defaultDisplayStyle,