@dynamicforms/vuetify-inputs 0.4.0 → 0.4.2

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.
@@ -10,54 +10,55 @@ var ge = (l, e, n) => e in l ? We(l, e, { enumerable: !0, configurable: !0, writ
10
10
  Qe.call(e, n) && ge(l, n, e[n]);
11
11
  return l;
12
12
  }, H = (l, e) => Xe(l, qe(e));
13
- var re = (l, e, n) => ge(l, typeof e != "symbol" ? e + "" : e, n);
14
- var ce = (l, e, n) => new Promise((a, o) => {
15
- var s = (b) => {
13
+ var ue = (l, e, n) => ge(l, typeof e != "symbol" ? e + "" : e, n);
14
+ var me = (l, e, n) => new Promise((a, o) => {
15
+ var i = (g) => {
16
16
  try {
17
- r(n.next(b));
18
- } catch (i) {
19
- o(i);
17
+ r(n.next(g));
18
+ } catch (s) {
19
+ o(s);
20
20
  }
21
- }, g = (b) => {
21
+ }, y = (g) => {
22
22
  try {
23
- r(n.throw(b));
24
- } catch (i) {
25
- o(i);
23
+ r(n.throw(g));
24
+ } catch (s) {
25
+ o(s);
26
26
  }
27
- }, r = (b) => b.done ? a(b.value) : Promise.resolve(b.value).then(s, g);
27
+ }, r = (g) => g.done ? a(g.value) : Promise.resolve(g.value).then(i, y);
28
28
  r((n = n.apply(l, e)).next());
29
29
  });
30
30
  import * as Be from "vue";
31
- import { defineComponent as F, mergeModels as Ie, useModel as Ye, ref as x, watch as de, onMounted as Le, markRaw as Je, onBeforeUnmount as Re, createBlock as I, openBlock as V, resolveDynamicComponent as se, version as el, resolveComponent as A, createElementBlock as U, createCommentVNode as E, createTextVNode as Oe, Fragment as ke, toDisplayString as ae, inject as ll, computed as T, renderList as Pe, normalizeClass as ie, unref as t, mergeProps as K, withCtx as _, createSlots as G, createVNode as C, renderSlot as me, normalizeProps as ne, guardReactiveProps as oe, createElementVNode as Z, isRef as Q, withModifiers as tl, mergeDefaults as W, normalizeStyle as we, toRefs as be, withKeys as $e, useCssVars as nl, nextTick as ol } from "vue";
32
- import { debounce as al, isString as ve, isEmpty as sl, isObjectLike as il, isBoolean as Ae, clone as rl, toNumber as Se, isNaN as xe, isArray as De, castArray as Me, first as He, unionBy as ul } from "lodash-es";
31
+ import { defineComponent as F, mergeModels as Ie, useModel as Ye, ref as D, watch as ce, onMounted as Le, markRaw as Je, onBeforeUnmount as Re, createBlock as I, openBlock as V, resolveDynamicComponent as se, version as el, resolveComponent as A, createElementBlock as U, createCommentVNode as E, createTextVNode as Oe, Fragment as ke, toDisplayString as ie, inject as ll, computed as C, renderList as Pe, normalizeClass as re, unref as t, mergeProps as K, withCtx as _, createSlots as X, createVNode as B, renderSlot as ae, normalizeProps as G, guardReactiveProps as W, createElementVNode as Y, isRef as J, withModifiers as tl, mergeDefaults as q, normalizeStyle as we, toRefs as be, withKeys as $e, useCssVars as nl, nextTick as ol } from "vue";
32
+ import { debounce as al, isString as ve, isEmpty as il, isObjectLike as sl, isBoolean as Ae, clone as rl, toNumber as Se, isNaN as De, isArray as xe, castArray as Me, first as He, unionBy as ul } from "lodash-es";
33
33
  import Ve from "vue-ionicon";
34
34
  import { useDisplay as dl } from "vuetify";
35
35
  import Ne, { ValidationErrorRenderContent as cl, DisplayMode as j, ExecuteAction as ml, Action as ye } from "@dynamicforms/vue-forms";
36
36
  import pl from "vue-markdown-render";
37
- import { format as ue, parse as vl } from "date-fns";
38
- import { AccessibilityHelp as fl, Alignment as bl, AutoImage as gl, AutoLink as yl, Autosave as hl, BalloonToolbar as _l, BlockQuote as Vl, Bold as kl, CloudServices as wl, Essentials as Tl, GeneralHtmlSupport as Cl, Heading as Bl, HorizontalLine as Il, ImageBlock as $l, ImageCaption as Al, ImageInline as Sl, ImageInsertViaUrl as xl, ImageResize as Dl, ImageStyle as Nl, ImageToolbar as Ul, ImageUpload as El, Indent as Fl, IndentBlock as Ll, Italic as Rl, Link as Ol, List as Pl, Autoformat as Ml, MediaEmbed as Hl, Paragraph as jl, PasteFromMarkdownExperimental as Kl, PasteFromOffice as zl, SelectAll as Gl, Style as Wl, Table as Xl, TableCellProperties as ql, TableColumnResize as Zl, TableProperties as Ql, TableToolbar as Yl, Undo as Jl, TextTransformation as et, Base64UploadAdapter as lt, ClassicEditor as tt } from "ckeditor5";
37
+ import { format as de, parse as vl } from "date-fns";
38
+ import { AccessibilityHelp as fl, Alignment as bl, AutoImage as gl, AutoLink as yl, Autosave as hl, BalloonToolbar as _l, BlockQuote as Vl, Bold as kl, CloudServices as wl, Essentials as Tl, GeneralHtmlSupport as Cl, Heading as Bl, HorizontalLine as Il, ImageBlock as $l, ImageCaption as Al, ImageInline as Sl, ImageInsertViaUrl as Dl, ImageResize as xl, ImageStyle as Nl, ImageToolbar as Ul, ImageUpload as El, Indent as Fl, IndentBlock as Ll, Italic as Rl, Link as Ol, List as Pl, Autoformat as Ml, MediaEmbed as Hl, Paragraph as jl, PasteFromMarkdownExperimental as Kl, PasteFromOffice as zl, SelectAll as Gl, Style as Wl, Table as Xl, TableCellProperties as ql, TableColumnResize as Zl, TableProperties as Ql, TableToolbar as Yl, Undo as Jl, TextTransformation as et, Base64UploadAdapter as lt, ClassicEditor as tt } from "ckeditor5";
39
39
  import { VAutocomplete as nt } from "vuetify/components/VAutocomplete";
40
40
  import { VBtn as ot } from "vuetify/components/VBtn";
41
41
  import { VCheckbox as at } from "vuetify/components/VCheckbox";
42
- import { VChip as st } from "vuetify/components/VChip";
43
- import { VCombobox as it } from "vuetify/components/VCombobox";
42
+ import { VChip as it } from "vuetify/components/VChip";
43
+ import { VCombobox as st } from "vuetify/components/VCombobox";
44
44
  import { VColorPicker as rt } from "vuetify/components/VColorPicker";
45
45
  import { VConfirmEdit as ut } from "vuetify/components/VConfirmEdit";
46
46
  import { VDatePicker as dt } from "vuetify/components/VDatePicker";
47
- import { VFileInput as ct } from "vuetify/components/VFileInput";
48
- import { VCol as mt, VRow as pt } from "vuetify/components/VGrid";
49
- import { VIcon as vt } from "vuetify/components/VIcon";
50
- import { VImg as ft } from "vuetify/components/VImg";
51
- import { VInput as bt } from "vuetify/components/VInput";
52
- import { VListItem as gt } from "vuetify/components/VList";
53
- import { VMenu as yt } from "vuetify/components/VMenu";
54
- import { VNumberInput as ht } from "vuetify/components/VNumberInput";
55
- import { VProgressLinear as _t } from "vuetify/components/VProgressLinear";
56
- import { VSelect as Vt } from "vuetify/components/VSelect";
57
- import { VSwitch as kt } from "vuetify/components/VSwitch";
58
- import { VTextarea as wt } from "vuetify/components/VTextarea";
59
- import { VTextField as Tt } from "vuetify/components/VTextField";
60
- import { VTimePicker as Ct } from "vuetify/labs/VTimePicker";
47
+ import { VField as ct } from "vuetify/components/VField";
48
+ import { VFileInput as mt } from "vuetify/components/VFileInput";
49
+ import { VCol as pt, VRow as vt } from "vuetify/components/VGrid";
50
+ import { VIcon as ft } from "vuetify/components/VIcon";
51
+ import { VImg as bt } from "vuetify/components/VImg";
52
+ import { VInput as gt } from "vuetify/components/VInput";
53
+ import { VListItem as yt } from "vuetify/components/VList";
54
+ import { VMenu as ht } from "vuetify/components/VMenu";
55
+ import { VNumberInput as _t } from "vuetify/components/VNumberInput";
56
+ import { VProgressLinear as Vt } from "vuetify/components/VProgressLinear";
57
+ import { VSelect as kt } from "vuetify/components/VSelect";
58
+ import { VSwitch as wt } from "vuetify/components/VSwitch";
59
+ import { VTextarea as Tt } from "vuetify/components/VTextarea";
60
+ import { VTextField as Ct } from "vuetify/components/VTextField";
61
+ import { VTimePicker as Bt } from "vuetify/labs/VTimePicker";
61
62
  /**
62
63
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
63
64
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
@@ -71,7 +72,7 @@ new Array(256).fill("").map((l, e) => ("0" + e.toString(16)).slice(-2));
71
72
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
72
73
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
73
74
  */
74
- function Bt(l, e) {
75
+ function It(l, e) {
75
76
  const n = l.extraPlugins || [];
76
77
  return H(N({}, l), {
77
78
  extraPlugins: [
@@ -94,14 +95,14 @@ function je(l) {
94
95
  function Ke(l) {
95
96
  return l ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((e) => l.includes(e)) : !1;
96
97
  }
97
- function It(l) {
98
+ function $t(l) {
98
99
  return je(l) || Ke(l);
99
100
  }
100
101
  /**
101
102
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
102
103
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
103
104
  */
104
- function $t(l) {
105
+ function At(l) {
105
106
  if (!je(l))
106
107
  throw new Error(`Invalid semantic version: ${l || "<blank>"}.`);
107
108
  const [e, n, a] = l.split(".");
@@ -115,10 +116,10 @@ function $t(l) {
115
116
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
116
117
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
117
118
  */
118
- function At(l) {
119
+ function St(l) {
119
120
  if (Ke(l))
120
121
  return 3;
121
- const { major: e } = $t(l);
122
+ const { major: e } = At(l);
122
123
  switch (!0) {
123
124
  case e >= 44:
124
125
  return 3;
@@ -132,9 +133,9 @@ function At(l) {
132
133
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
133
134
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
134
135
  */
135
- function St() {
136
+ function Dt() {
136
137
  const { CKEDITOR_VERSION: l, CKEDITOR: e } = window;
137
- return It(l) ? {
138
+ return $t(l) ? {
138
139
  source: e ? "cdn" : "npm",
139
140
  version: l
140
141
  } : null;
@@ -144,8 +145,8 @@ function St() {
144
145
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
145
146
  */
146
147
  function xt() {
147
- const l = St();
148
- return l ? At(l.version) : null;
148
+ const l = Dt();
149
+ return l ? St(l.version) : null;
149
150
  }
150
151
  /**
151
152
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
@@ -166,10 +167,10 @@ function ze(l, e) {
166
167
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
167
168
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
168
169
  */
169
- function Dt(l, e) {
170
+ function Nt(l, e) {
170
171
  return function(a) {
171
- ze(a.config.get("licenseKey")) || a.on("collectUsageData", (o, { setUsageData: s }) => {
172
- s(`integration.${l}`, e);
172
+ ze(a.config.get("licenseKey")) || a.on("collectUsageData", (o, { setUsageData: i }) => {
173
+ i(`integration.${l}`, e);
173
174
  });
174
175
  };
175
176
  }
@@ -177,7 +178,7 @@ function Dt(l, e) {
177
178
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
178
179
  * For licensing, see LICENSE.md.
179
180
  */
180
- const Nt = Dt(
181
+ const Ut = Nt(
181
182
  "vue",
182
183
  {
183
184
  version: "7.3.0",
@@ -188,17 +189,17 @@ const Nt = Dt(
188
189
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
189
190
  * For licensing, see LICENSE.md.
190
191
  */
191
- function Ut(l) {
192
- return ze(l.licenseKey) ? l : Bt(l, [
192
+ function Et(l) {
193
+ return ze(l.licenseKey) ? l : It(l, [
193
194
  /**
194
195
  * This part of the code is not executed in open-source implementations using a GPL key.
195
196
  * It only runs when a specific license key is provided. If you are uncertain whether
196
197
  * this applies to your installation, please contact our support team.
197
198
  */
198
- Nt
199
+ Ut
199
200
  ]);
200
201
  }
201
- const he = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Et = 300, Ft = /* @__PURE__ */ F({
202
+ const he = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Ft = 300, Lt = /* @__PURE__ */ F({
202
203
  name: "CKEditor",
203
204
  __name: "ckeditor",
204
205
  props: /* @__PURE__ */ Ie({
@@ -213,16 +214,16 @@ const he = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Et = 300, Ft =
213
214
  }),
214
215
  emits: /* @__PURE__ */ Ie(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
215
216
  setup(l, { expose: e, emit: n }) {
216
- const a = Ye(l, "modelValue"), o = l, s = n, g = x(), r = x(), b = x();
217
+ const a = Ye(l, "modelValue"), o = l, i = n, y = D(), r = D(), g = D();
217
218
  e({
218
219
  instance: r,
219
- lastEditorData: b
220
- }), de(a, (u) => {
221
- r.value && u !== b.value && r.value.data.set(u);
222
- }), de(() => o.disabled, (u) => {
220
+ lastEditorData: g
221
+ }), ce(a, (u) => {
222
+ r.value && u !== g.value && r.value.data.set(u);
223
+ }), ce(() => o.disabled, (u) => {
223
224
  u ? r.value.enableReadOnlyMode(he) : r.value.disableReadOnlyMode(he);
224
225
  });
225
- function i() {
226
+ function s() {
226
227
  const u = window.CKEDITOR_VERSION;
227
228
  if (!u)
228
229
  return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
@@ -233,29 +234,29 @@ const he = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Et = 300, Ft =
233
234
  const c = al((p) => {
234
235
  if (o.disableTwoWayDataBinding)
235
236
  return;
236
- const f = b.value = u.data.get();
237
- s("update:modelValue", f, p, u), s("input", f, p, u);
238
- }, Et, { leading: !0 });
237
+ const b = g.value = u.data.get();
238
+ i("update:modelValue", b, p, u), i("input", b, p, u);
239
+ }, Ft, { leading: !0 });
239
240
  u.model.document.on("change:data", c), u.editing.view.document.on("focus", (p) => {
240
- s("focus", p, u);
241
+ i("focus", p, u);
241
242
  }), u.editing.view.document.on("blur", (p) => {
242
- s("blur", p, u);
243
+ i("blur", p, u);
243
244
  });
244
245
  }
245
- return i(), Le(() => {
246
- const u = Ut(
246
+ return s(), Le(() => {
247
+ const u = Et(
247
248
  Object.assign({}, o.config)
248
249
  );
249
- a.value && (u.initialData = a.value), o.editor.create(g.value, u).then((c) => {
250
- r.value = Je(c), v(c), a.value !== u.initialData && c.data.set(a.value), o.disabled && c.enableReadOnlyMode(he), s("ready", c);
250
+ a.value && (u.initialData = a.value), o.editor.create(y.value, u).then((c) => {
251
+ r.value = Je(c), v(c), a.value !== u.initialData && c.data.set(a.value), o.disabled && c.enableReadOnlyMode(he), i("ready", c);
251
252
  }).catch((c) => {
252
253
  console.error(c);
253
254
  });
254
255
  }), Re(() => {
255
- r.value && (r.value.destroy(), r.value = void 0), s("destroy");
256
+ r.value && (r.value.destroy(), r.value = void 0), i("destroy");
256
257
  }), (u, c) => (V(), I(se(u.tagName), {
257
258
  ref_key: "element",
258
- ref: g
259
+ ref: y
259
260
  }, null, 512));
260
261
  }
261
262
  });
@@ -268,16 +269,16 @@ if (!Be.version || !Be.version.startsWith("3."))
268
269
  throw new Error(
269
270
  "The CKEditor plugin works only with Vue 3+. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v3.html"
270
271
  );
271
- const Lt = {
272
+ const Rt = {
272
273
  /**
273
274
  * Installs the plugin, registering the `<ckeditor>` component.
274
275
  *
275
276
  * @param app The application instance.
276
277
  */
277
278
  install(l) {
278
- l.component("Ckeditor", Ft);
279
+ l.component("Ckeditor", Lt);
279
280
  }
280
- }, Rt = { class: "label" }, Ot = /* @__PURE__ */ F({
281
+ }, Ot = { class: "label" }, Pt = /* @__PURE__ */ F({
281
282
  __name: "df-label",
282
283
  props: {
283
284
  data: {},
@@ -286,7 +287,7 @@ const Lt = {
286
287
  setup(l) {
287
288
  return (e, n) => {
288
289
  const a = A("v-icon"), o = A("v-img");
289
- return V(), U("div", Rt, [
290
+ return V(), U("div", Ot, [
290
291
  e.label.icon ? (V(), U(ke, { key: 0 }, [
291
292
  e.label.iconComponent === "v-icon" ? (V(), I(a, {
292
293
  key: 0,
@@ -301,24 +302,24 @@ const Lt = {
301
302
  src: e.label.icon
302
303
  }, null, 8, ["src"]))
303
304
  ], 64)) : E("", !0),
304
- Oe(" " + ae(e.data ? e.data.label : e.label.text), 1)
305
+ Oe(" " + ie(e.data ? e.data.label : e.label.text), 1)
305
306
  ]);
306
307
  };
307
308
  }
308
- }), ee = (l, e) => {
309
+ }), te = (l, e) => {
309
310
  const n = l.__vccOpts || l;
310
311
  for (const [a, o] of e)
311
312
  n[a] = o;
312
313
  return n;
313
- }, Y = /* @__PURE__ */ ee(Ot, [["__scopeId", "data-v-0034f29f"]]), Ge = Symbol("vuetifyInputsSettingsKey");
314
- class Pt {
314
+ }, ee = /* @__PURE__ */ te(Pt, [["__scopeId", "data-v-0034f29f"]]), Ge = Symbol("vuetifyInputsSettingsKey");
315
+ class Mt {
315
316
  constructor(e, n, a = "v-icon") {
316
317
  this.text = e, this.icon = n, this.iconComponent = a;
317
318
  }
318
319
  }
319
- const X = { enabled: void 0 };
320
+ const Z = { enabled: void 0 };
320
321
  function z(l, e) {
321
- const n = ll(Ge, {}), a = T({
322
+ const n = ll(Ge, {}), a = C({
322
323
  get() {
323
324
  return l.control ? l.control.value : l.modelValue;
324
325
  },
@@ -328,36 +329,36 @@ function z(l, e) {
328
329
  });
329
330
  if (l.control && !(l.control instanceof Ne.FieldBase))
330
331
  throw new Error("control prop is not a vue-form control instance");
331
- const o = x(!1), s = T(() => l.control ? l.control.valid : !0), g = T(
332
+ const o = D(!1), i = C(() => l.control ? l.control.valid : !0), y = C(
332
333
  () => l.control ? l.control.errors : (l.errors || []).map((h) => new cl(h))
333
- ), r = T(() => o.value && g.value.length > 0 ? " " : void 0), b = T(() => l.control ? l.control.enabled : l.enabled !== !1), i = T(
334
+ ), r = C(() => o.value && y.value.length > 0 ? " " : void 0), g = C(() => l.control ? l.control.enabled : l.enabled !== !1), s = C(
334
335
  () => l.control ? l.control.visibility : l.visibility || Ne.DisplayMode.FULL
335
- ), v = T(
336
- () => ve(l.label || "") ? new Pt(l.label || "") : l.label
337
- ), u = T(() => l.placeholder || ""), c = T(() => l.helpText || ""), p = T(() => l.hint || ""), f = T(() => l.cssClass || "");
336
+ ), v = C(
337
+ () => ve(l.label || "") ? new Mt(l.label || "") : l.label
338
+ ), u = C(() => l.placeholder || ""), c = C(() => l.helpText || ""), p = C(() => l.hint || ""), b = C(() => l.cssClass || "");
338
339
  return {
339
340
  value: a,
340
- valid: s,
341
- enabled: b,
342
- errors: g,
343
- visibility: i,
341
+ valid: i,
342
+ enabled: g,
343
+ errors: y,
344
+ visibility: s,
344
345
  label: v,
345
346
  touched: o,
346
- vuetifyBindings: T(() => {
347
+ vuetifyBindings: C(() => {
347
348
  var h, k;
348
349
  return {
349
350
  name: (h = l.control) == null ? void 0 : h.fieldName,
350
- class: f.value,
351
+ class: b.value,
351
352
  density: "default",
352
353
  variant: (k = n.defaultVariant) != null ? k : "underlined",
353
354
  label: v.value.text,
354
355
  messages: r.value,
355
356
  errorMessages: r.value,
356
357
  // 'error-count': errors?.value.length || 0,
357
- readonly: !b.value,
358
- disabled: !b.value,
358
+ readonly: !g.value,
359
+ disabled: !g.value,
359
360
  placeholder: u.value,
360
- "persistent-placeholder": !sl(u.value),
361
+ "persistent-placeholder": !il(u.value),
361
362
  hint: p.value,
362
363
  persistentHint: !0,
363
364
  // we want persistent hint always
@@ -368,40 +369,40 @@ function z(l, e) {
368
369
  })
369
370
  };
370
371
  }
371
- const Mt = {
372
+ const Ht = {
372
373
  key: 0,
373
374
  class: "custom-error-display text-error"
374
- }, Ht = { key: 0 }, jt = { key: 1 }, Kt = /* @__PURE__ */ F({
375
+ }, jt = { key: 0 }, Kt = { key: 1 }, zt = /* @__PURE__ */ F({
375
376
  __name: "messages-widget",
376
377
  props: {
377
378
  errors: {},
378
379
  message: {}
379
380
  },
380
381
  setup(l) {
381
- return (e, n) => e.message === " " ? (V(), U("div", Mt, [
382
+ return (e, n) => e.message === " " ? (V(), U("div", Ht, [
382
383
  (V(!0), U(ke, null, Pe(e.errors, (a, o) => {
383
- var s;
384
+ var i;
384
385
  return V(), U("div", {
385
386
  key: o,
386
- class: ie({ "first-error": o === 0, "last-error": o === e.errors.length - 1 })
387
+ class: re({ "first-error": o === 0, "last-error": o === e.errors.length - 1 })
387
388
  }, [
388
- a.componentName === "template" ? (V(), U("div", Ht, ae(a.componentBody), 1)) : a.componentName === "vue-markdown" ? (V(), I(t(pl), {
389
+ a.componentName === "template" ? (V(), U("div", jt, ie(a.componentBody), 1)) : a.componentName === "vue-markdown" ? (V(), I(t(pl), {
389
390
  key: 1,
390
- source: (s = a.componentBindings) == null ? void 0 : s.source
391
+ source: (i = a.componentBindings) == null ? void 0 : i.source
391
392
  }, null, 8, ["source"])) : (V(), I(se(a.componentName), K({
392
393
  key: 2,
393
394
  ref_for: !0
394
395
  }, a.componentBindings), {
395
396
  default: _(() => [
396
- Oe(ae(a.componentBody), 1)
397
+ Oe(ie(a.componentBody), 1)
397
398
  ]),
398
399
  _: 2
399
400
  }, 1040))
400
401
  ], 2);
401
402
  }), 128))
402
- ])) : (V(), U("span", jt, ae(e.message), 1));
403
+ ])) : (V(), U("span", Kt, ie(e.message), 1));
403
404
  }
404
- }), J = /* @__PURE__ */ ee(Kt, [["__scopeId", "data-v-ff7a8b63"]]), zt = { class: "d-flex w-100 style-resetting" }, Gt = /* @__PURE__ */ F({
405
+ }), le = /* @__PURE__ */ te(zt, [["__scopeId", "data-v-ff7a8b63"]]), Gt = { class: "d-flex w-100 style-resetting" }, Wt = /* @__PURE__ */ F({
405
406
  __name: "input-base",
406
407
  props: {
407
408
  control: {},
@@ -419,62 +420,62 @@ const Mt = {
419
420
  },
420
421
  emits: ["update:modelValue", "click:clear", "blur"],
421
422
  setup(l, { emit: e }) {
422
- const n = l, a = e, { errors: o, label: s, value: g, touched: r, visibility: b, vuetifyBindings: i } = z(n, a), v = T(() => !!(t(n.clearable) && t(g))), u = x(!1);
423
+ const n = l, a = e, { errors: o, label: i, value: y, touched: r, visibility: g, vuetifyBindings: s } = z(n, a), v = C(() => !!(t(n.clearable) && t(y))), u = D(!1);
423
424
  function c(p) {
424
425
  console.log(p), u.value = p, p || (r.value = !0, a("blur"));
425
426
  }
426
- return (p, f) => {
427
+ return (p, b) => {
427
428
  const h = A("v-field"), k = A("v-input");
428
- return t(b) !== t(j).SUPPRESS ? (V(), I(k, {
429
+ return t(g) !== t(j).SUPPRESS ? (V(), I(k, {
429
430
  key: 0,
430
- name: t(i).name,
431
- hint: t(i).hint,
432
- "persistent-hint": t(i).persistentHint,
433
- "hide-details": t(i).hideDetails,
434
- "error-messages": t(i).errorMessages,
435
- class: ie([
431
+ name: t(s).name,
432
+ hint: t(s).hint,
433
+ "persistent-hint": t(s).persistentHint,
434
+ "hide-details": t(s).hideDetails,
435
+ "error-messages": t(s).errorMessages,
436
+ class: re([
436
437
  p.cssClass,
437
438
  {
438
- "d-none": t(b) === t(j).HIDDEN,
439
- invisible: t(b) === t(j).INVISIBLE
439
+ "d-none": t(g) === t(j).HIDDEN,
440
+ invisible: t(g) === t(j).INVISIBLE
440
441
  }
441
442
  ])
442
- }, G({
443
+ }, X({
443
444
  message: _(({ message: w }) => [
444
- C(J, {
445
+ B(le, {
445
446
  message: w,
446
447
  errors: t(o)
447
448
  }, null, 8, ["message", "errors"])
448
449
  ]),
449
450
  default: _(() => [
450
- C(h, {
451
- variant: t(i).variant,
452
- label: t(i).label,
453
- disabled: t(i).disabled,
451
+ B(h, {
452
+ variant: t(s).variant,
453
+ label: t(s).label,
454
+ disabled: t(s).disabled,
454
455
  clearable: v.value,
455
456
  "persistent-clear": !0,
456
- dirty: !!t(g),
457
+ dirty: !!t(y),
457
458
  active: u.value,
458
459
  loading: p.loading,
459
- "onClick:clear": f[0] || (f[0] = (w) => a("click:clear")),
460
- "onUpdate:focused": f[1] || (f[1] = (w) => c(w))
461
- }, G({
460
+ "onClick:clear": b[0] || (b[0] = (w) => a("click:clear")),
461
+ "onUpdate:focused": b[1] || (b[1] = (w) => c(w))
462
+ }, X({
462
463
  default: _((w) => [
463
- Z("div", zt, [
464
- me(p.$slots, "default", ne(oe(w)), void 0, !0)
464
+ Y("div", Gt, [
465
+ ae(p.$slots, "default", G(W(w)), void 0, !0)
465
466
  ])
466
467
  ]),
467
468
  loader: _((w) => [
468
- me(p.$slots, "loader", ne(oe(w)), void 0, !0)
469
+ ae(p.$slots, "loader", G(W(w)), void 0, !0)
469
470
  ]),
470
471
  _: 2
471
472
  }, [
472
- t(s).icon ? {
473
+ t(i).icon ? {
473
474
  name: "label",
474
475
  fn: _((w) => [
475
- C(Y, {
476
+ B(ee, {
476
477
  data: w,
477
- label: t(s)
478
+ label: t(i)
478
479
  }, null, 8, ["data", "label"])
479
480
  ]),
480
481
  key: "0"
@@ -482,7 +483,7 @@ const Mt = {
482
483
  p.$slots["prepend-inner"] ? {
483
484
  name: "prepend-inner",
484
485
  fn: _((w) => [
485
- me(p.$slots, "prepend-inner", ne(oe(w)), void 0, !0)
486
+ ae(p.$slots, "prepend-inner", G(W(w)), void 0, !0)
486
487
  ]),
487
488
  key: "1"
488
489
  } : void 0
@@ -493,14 +494,14 @@ const Mt = {
493
494
  p.$slots.prepend ? {
494
495
  name: "prepend",
495
496
  fn: _((w) => [
496
- me(p.$slots, "prepend", ne(oe(w)), void 0, !0)
497
+ ae(p.$slots, "prepend", G(W(w)), void 0, !0)
497
498
  ]),
498
499
  key: "0"
499
500
  } : void 0
500
501
  ]), 1032, ["name", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : E("", !0);
501
502
  };
502
503
  }
503
- }), Te = /* @__PURE__ */ ee(Gt, [["__scopeId", "data-v-4aab06cf"]]);
504
+ }), Te = /* @__PURE__ */ te(Wt, [["__scopeId", "data-v-4aab06cf"]]);
504
505
  var R = /* @__PURE__ */ ((l) => (l[l.BUTTON = 0] = "BUTTON", l[l.TEXT = 1] = "TEXT", l))(R || {});
505
506
  const Ue = 0;
506
507
  ((l) => {
@@ -509,21 +510,21 @@ const Ue = 0;
509
510
  }
510
511
  l.fromString = e;
511
512
  function n(o) {
512
- const s = typeof o == "number" ? o : l.fromString(o);
513
- return Object.values(l).includes(s) ? s : Ue;
513
+ const i = typeof o == "number" ? o : l.fromString(o);
514
+ return Object.values(l).includes(i) ? i : Ue;
514
515
  }
515
516
  l.fromAny = n;
516
517
  function a(o) {
517
- const s = typeof o == "number" ? o : l.fromString(o);
518
- return Object.values(l).includes(s);
518
+ const i = typeof o == "number" ? o : l.fromString(o);
519
+ return Object.values(l).includes(i);
519
520
  }
520
521
  l.isDefined = a;
521
522
  })(R || (R = {}));
522
523
  Object.freeze(R);
523
524
  const Ee = ["xs", "sm", "md", "lg", "xl"];
524
- class Wt {
525
+ class Xt {
525
526
  constructor(e) {
526
- re(this, "_value");
527
+ ue(this, "_value");
527
528
  this._value = this.cleanBreakpoint(e, !0), e && Ee.forEach((n) => {
528
529
  const a = this.cleanBreakpoint(e[n]);
529
530
  a && (this._value[n] = a);
@@ -532,18 +533,18 @@ class Wt {
532
533
  getOptionsForBreakpoint(e) {
533
534
  const n = this.cleanBreakpoint(this._value), a = Object.keys(n);
534
535
  for (const o of Ee) {
535
- const s = this._value[o];
536
- for (const g of a)
537
- (s == null ? void 0 : s[g]) != null && (n[g] = s[g]);
536
+ const i = this._value[o];
537
+ for (const y of a)
538
+ (i == null ? void 0 : i[y]) != null && (n[y] = i[y]);
538
539
  if (o === e) break;
539
540
  }
540
541
  return n;
541
542
  }
542
543
  }
543
- class Xt extends Wt {
544
+ class qt extends Xt {
544
545
  // eslint-disable-next-line class-methods-use-this
545
546
  cleanBreakpoint(e, n = !1) {
546
- if ((!e || !il(e)) && !n) return null;
547
+ if ((!e || !sl(e)) && !n) return null;
547
548
  const a = {};
548
549
  return n && (a.renderAs = R.BUTTON, a.showLabel = !0, a.showIcon = !0), e && (e.renderAs != null && (a.renderAs = R.fromAny(e.renderAs)), ve(e.label) && (a.label = e.label), Ae(e.showLabel) && (a.showLabel = e.showLabel), Ae(e.showIcon) && (a.showIcon = e.showIcon)), Object.keys(a).length ? a : null;
549
550
  }
@@ -553,12 +554,12 @@ function Fe(l) {
553
554
  }
554
555
  class pe {
555
556
  constructor(e, n) {
556
- re(this, "name");
557
- re(this, "displayStyle");
558
- re(this, "formAction");
557
+ ue(this, "name");
558
+ ue(this, "displayStyle");
559
+ ue(this, "formAction");
559
560
  if (e.name == null) throw new Error(`Action name must not be empty ${e}`);
560
561
  const a = !ve(e.label) || e.label.length === 0 ? void 0 : e.label, o = !ve(e.icon) || e.icon.length === 0 ? void 0 : e.icon;
561
- this.name = e.name, this.displayStyle = new Xt(N({ label: a }, e.displayStyle)), this.formAction = n, this.formAction.icon = o, this.formAction.label = a;
562
+ this.name = e.name, this.displayStyle = new qt(N({ label: a }, e.displayStyle)), this.formAction = n, this.formAction.icon = o, this.formAction.label = a;
562
563
  }
563
564
  get label() {
564
565
  var e;
@@ -626,10 +627,10 @@ class pe {
626
627
  );
627
628
  }
628
629
  }
629
- const qt = {
630
+ const Zt = {
630
631
  key: 1,
631
632
  style: { width: ".5rem" }
632
- }, Zt = { key: 2 }, Qt = /* @__PURE__ */ F({
633
+ }, Qt = { key: 2 }, Yt = /* @__PURE__ */ F({
633
634
  __name: "df-actions",
634
635
  props: {
635
636
  actions: {},
@@ -637,62 +638,62 @@ const qt = {
637
638
  showAsGroup: { default: "no" }
638
639
  },
639
640
  setup(l) {
640
- const e = l, n = Q(e.actions) ? e.actions : x(e.actions), a = dl(), o = T(() => {
641
- const i = {};
642
- i["%breakpoint%"] = Fe(a);
641
+ const e = l, n = J(e.actions) ? e.actions : D(e.actions), a = dl(), o = C(() => {
642
+ const s = {};
643
+ s["%breakpoint%"] = Fe(a);
643
644
  for (const v of n.value)
644
- i[v.name] = v.displayStyle.getOptionsForBreakpoint(Fe(a));
645
- return i;
645
+ s[v.name] = v.displayStyle.getOptionsForBreakpoint(Fe(a));
646
+ return s;
646
647
  });
647
- function s(i) {
648
+ function i(s) {
648
649
  var v;
649
- return (v = o.value[i.name].showIcon && i.iconAvailable) != null ? v : !0;
650
+ return (v = o.value[s.name].showIcon && s.iconAvailable) != null ? v : !0;
650
651
  }
651
- function g(i) {
652
- return o.value[i.name].showLabel && i.labelAvailable ? !0 : !s(i);
652
+ function y(s) {
653
+ return o.value[s.name].showLabel && s.labelAvailable ? !0 : !i(s);
653
654
  }
654
- function r(i) {
655
+ function r(s) {
655
656
  var v;
656
- return (v = o.value[i.name].renderAs) != null ? v : R.BUTTON;
657
+ return (v = o.value[s.name].renderAs) != null ? v : R.BUTTON;
657
658
  }
658
- function b(i) {
659
+ function g(s) {
659
660
  var v;
660
- return i.labelAvailable ? (v = i.formAction.label) != null ? v : "" : i.name;
661
+ return s.labelAvailable ? (v = s.formAction.label) != null ? v : "" : s.name;
661
662
  }
662
- return (i, v) => {
663
+ return (s, v) => {
663
664
  const u = A("v-btn");
664
665
  return t(n).length > 0 ? (V(), U("div", {
665
666
  key: 0,
666
- class: ie(["text-end", {
667
- "button-group": i.showAsGroup === "grouped" || i.showAsGroup === "grouped-no-borders",
668
- "with-border": i.showAsGroup === "grouped"
667
+ class: re(["text-end", {
668
+ "button-group": s.showAsGroup === "grouped" || s.showAsGroup === "grouped-no-borders",
669
+ "with-border": s.showAsGroup === "grouped"
669
670
  }])
670
671
  }, [
671
672
  (V(!0), U(ke, null, Pe(t(n), (c, p) => (V(), I(u, {
672
673
  key: p,
673
674
  variant: r(c) === t(R).BUTTON ? "tonal" : "text",
674
675
  elevation: 0,
675
- class: ie(p !== -1 ? "" : "ms-3"),
676
- size: i.buttonSize,
677
- onClick: tl((f) => c.formAction.execute(f), ["stop"])
676
+ class: re(p !== -1 ? "" : "ms-3"),
677
+ size: s.buttonSize,
678
+ onClick: tl((b) => c.formAction.execute(b), ["stop"])
678
679
  }, {
679
680
  default: _(() => [
680
- s(c) ? (V(), I(t(Ve), {
681
+ i(c) ? (V(), I(t(Ve), {
681
682
  key: 0,
682
683
  class: "action-icon",
683
684
  name: c.formAction.icon
684
685
  }, null, 8, ["name"])) : E("", !0),
685
- s(c) && g(c) ? (V(), U("span", qt)) : E("", !0),
686
- g(c) ? (V(), U("span", Zt, ae(b(c)), 1)) : E("", !0)
686
+ i(c) && y(c) ? (V(), U("span", Zt)) : E("", !0),
687
+ y(c) ? (V(), U("span", Qt, ie(g(c)), 1)) : E("", !0)
687
688
  ]),
688
689
  _: 2
689
690
  }, 1032, ["variant", "class", "size", "onClick"]))), 128))
690
691
  ], 2)) : E("", !0);
691
692
  };
692
693
  }
693
- }), Yt = /* @__PURE__ */ ee(Qt, [["__scopeId", "data-v-d7ba6fac"]]), Jt = /* @__PURE__ */ F({
694
+ }), Jt = /* @__PURE__ */ te(Yt, [["__scopeId", "data-v-d7ba6fac"]]), en = /* @__PURE__ */ F({
694
695
  __name: "df-checkbox",
695
- props: /* @__PURE__ */ W({
696
+ props: /* @__PURE__ */ q({
696
697
  allowNull: { type: Boolean },
697
698
  control: {},
698
699
  modelValue: {},
@@ -705,10 +706,10 @@ const qt = {
705
706
  visibility: {},
706
707
  cssClass: {},
707
708
  clearable: { type: Boolean }
708
- }, H(N({}, X), { allowNull: !1 })),
709
+ }, H(N({}, Z), { allowNull: !1 })),
709
710
  emits: ["update:modelValue", "click:clear"],
710
711
  setup(l, { emit: e }) {
711
- const n = l, a = e, { errors: o, label: s, touched: g, value: r, vuetifyBindings: b } = z(n, a), i = T(() => n.allowNull && r.value == null), v = T({
712
+ const n = l, a = e, { errors: o, label: i, touched: y, value: r, vuetifyBindings: g } = z(n, a), s = C(() => n.allowNull && r.value == null), v = C({
712
713
  get() {
713
714
  return r.value;
714
715
  },
@@ -720,32 +721,32 @@ const qt = {
720
721
  c === !0 ? r.value = n.allowNull ? null : !1 : r.value = c === !1;
721
722
  }
722
723
  return (c, p) => {
723
- const f = A("v-checkbox");
724
- return V(), I(f, K({
724
+ const b = A("v-checkbox");
725
+ return V(), I(b, K({
725
726
  modelValue: v.value,
726
727
  "onUpdate:modelValue": p[0] || (p[0] = (h) => v.value = h)
727
- }, t(b), {
728
+ }, t(g), {
728
729
  density: "compact",
729
- indeterminate: i.value,
730
+ indeterminate: s.value,
730
731
  "false-value": !1,
731
732
  "true-value": !0,
732
733
  onChange: u,
733
- onBlur: p[1] || (p[1] = (h) => g.value = !0)
734
- }), G({
734
+ onBlur: p[1] || (p[1] = (h) => y.value = !0)
735
+ }), X({
735
736
  message: _(({ message: h }) => [
736
- C(t(J), {
737
+ B(t(le), {
737
738
  message: h,
738
739
  errors: t(o)
739
740
  }, null, 8, ["message", "errors"])
740
741
  ]),
741
742
  _: 2
742
743
  }, [
743
- t(s).icon ? {
744
+ t(i).icon ? {
744
745
  name: "label",
745
746
  fn: _((h) => [
746
- C(t(Y), {
747
+ B(t(ee), {
747
748
  data: h,
748
- label: t(s)
749
+ label: t(i)
749
750
  }, null, 8, ["data", "label"])
750
751
  ]),
751
752
  key: "0"
@@ -753,9 +754,9 @@ const qt = {
753
754
  ]), 1040, ["modelValue", "indeterminate"]);
754
755
  };
755
756
  }
756
- }), en = /* @__PURE__ */ F({
757
+ }), ln = /* @__PURE__ */ F({
757
758
  __name: "df-color",
758
- props: /* @__PURE__ */ W({
759
+ props: /* @__PURE__ */ q({
759
760
  allowNull: { type: Boolean },
760
761
  control: {},
761
762
  modelValue: {},
@@ -768,45 +769,45 @@ const qt = {
768
769
  visibility: {},
769
770
  cssClass: {},
770
771
  clearable: { type: Boolean }
771
- }, H(N({}, X), { allowNull: !1 })),
772
+ }, H(N({}, Z), { allowNull: !1 })),
772
773
  emits: ["update:modelValue", "click:clear"],
773
774
  setup(l, { emit: e }) {
774
- const n = l, a = e, { errors: o, label: s, touched: g, value: r, vuetifyBindings: b } = z(n, a), i = x(!1), v = T(() => [
775
+ const n = l, a = e, { errors: o, label: i, touched: y, value: r, vuetifyBindings: g } = z(n, a), s = D(!1), v = C(() => [
775
776
  (u) => n.control || !u && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(u) ? !0 : "Not a valid hex string."
776
777
  ]);
777
778
  return (u, c) => {
778
- const p = A("v-color-picker"), f = A("v-menu"), h = A("v-text-field");
779
+ const p = A("v-color-picker"), b = A("v-menu"), h = A("v-text-field");
779
780
  return V(), I(h, K({
780
781
  modelValue: t(r),
781
- "onUpdate:modelValue": c[2] || (c[2] = (k) => Q(r) ? r.value = k : null)
782
- }, t(b), {
782
+ "onUpdate:modelValue": c[2] || (c[2] = (k) => J(r) ? r.value = k : null)
783
+ }, t(g), {
783
784
  clearable: u.allowNull,
784
785
  type: "text",
785
786
  rules: v.value,
786
- onBlur: c[3] || (c[3] = (k) => g.value = !0)
787
- }), G({
787
+ onBlur: c[3] || (c[3] = (k) => y.value = !0)
788
+ }), X({
788
789
  message: _(({ message: k }) => [
789
- C(t(J), {
790
+ B(t(le), {
790
791
  message: k,
791
792
  errors: t(o)
792
793
  }, null, 8, ["message", "errors"])
793
794
  ]),
794
795
  "prepend-inner": _(() => [
795
- Z("div", {
796
+ Y("div", {
796
797
  style: we([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: t(r) }])
797
798
  }, null, 4)
798
799
  ]),
799
800
  default: _(() => [
800
- C(f, {
801
- modelValue: i.value,
802
- "onUpdate:modelValue": c[1] || (c[1] = (k) => i.value = k),
801
+ B(b, {
802
+ modelValue: s.value,
803
+ "onUpdate:modelValue": c[1] || (c[1] = (k) => s.value = k),
803
804
  "close-on-content-click": !1,
804
805
  activator: "parent"
805
806
  }, {
806
807
  default: _(() => [
807
- C(p, {
808
+ B(p, {
808
809
  modelValue: t(r),
809
- "onUpdate:modelValue": c[0] || (c[0] = (k) => Q(r) ? r.value = k : null),
810
+ "onUpdate:modelValue": c[0] || (c[0] = (k) => J(r) ? r.value = k : null),
810
811
  mode: "hexa"
811
812
  }, null, 8, ["modelValue"])
812
813
  ]),
@@ -815,12 +816,12 @@ const qt = {
815
816
  ]),
816
817
  _: 2
817
818
  }, [
818
- t(s).icon ? {
819
+ t(i).icon ? {
819
820
  name: "label",
820
821
  fn: _((k) => [
821
- C(t(Y), {
822
+ B(t(ee), {
822
823
  data: k,
823
- label: t(s)
824
+ label: t(i)
824
825
  }, null, 8, ["data", "label"])
825
826
  ]),
826
827
  key: "0"
@@ -828,9 +829,9 @@ const qt = {
828
829
  ]), 1040, ["modelValue", "clearable", "rules"]);
829
830
  };
830
831
  }
831
- }), ln = { class: "d-flex w-100 pt-5 pl-2 pb-1" }, tn = /* @__PURE__ */ F({
832
+ }), tn = { class: "d-flex w-100 pt-5 pl-2 pb-1" }, nn = /* @__PURE__ */ F({
832
833
  __name: "df-datetime",
833
- props: /* @__PURE__ */ W({
834
+ props: /* @__PURE__ */ q({
834
835
  inputType: {},
835
836
  displayFormatDate: {},
836
837
  displayFormatTime: {},
@@ -845,48 +846,48 @@ const qt = {
845
846
  visibility: {},
846
847
  cssClass: {},
847
848
  clearable: { type: Boolean }
848
- }, H(N({}, X), {
849
+ }, H(N({}, Z), {
849
850
  inputType: "datetime",
850
851
  displayFormatDate: "P",
851
852
  displayFormatTime: "p"
852
853
  })),
853
854
  emits: ["update:modelValue", "click:clear"],
854
855
  setup(l, { emit: e }) {
855
- const n = l, a = e, { touched: o, value: s, vuetifyBindings: g } = z(n, a), { inputType: r, displayFormatDate: b, displayFormatTime: i } = be(n), v = x(""), u = T({
856
+ const n = l, a = e, { touched: o, value: i, vuetifyBindings: y } = z(n, a), { inputType: r, displayFormatDate: g, displayFormatTime: s } = be(n), v = D(""), u = C({
856
857
  get() {
857
858
  return t(v) === "date";
858
859
  },
859
860
  set(d) {
860
861
  v.value = d ? "date" : "";
861
862
  }
862
- }), c = T({
863
+ }), c = C({
863
864
  get() {
864
865
  return t(v) === "time";
865
866
  },
866
867
  set(d) {
867
868
  v.value = d ? "time" : "";
868
869
  }
869
- }), p = (d) => `${ue(d, "yyyy-MM-dd")}T${ue(d, "HH:mm")}:00`, f = x(null);
870
+ }), p = (d) => `${de(d, "yyyy-MM-dd")}T${de(d, "HH:mm")}:00`, b = D(null);
870
871
  function h(d, m) {
871
872
  if (d == null)
872
- f.value = null;
873
+ b.value = null;
873
874
  else if (m === -1)
874
875
  if (t(r) === "time")
875
- f.value = p(/* @__PURE__ */ new Date()), h(`T${d}`, 1);
876
+ b.value = p(/* @__PURE__ */ new Date()), h(`T${d}`, 1);
876
877
  else {
877
878
  const S = p(new Date(d));
878
879
  h(S, 0), h(S, 1);
879
880
  }
880
881
  else {
881
- f.value == null && (f.value = p(/* @__PURE__ */ new Date()));
882
- const S = f.value.split(/[TZ]/g), L = d.split(/[TZ]/g);
883
- S[m] = L[m], f.value = p(/* @__PURE__ */ new Date(`${S[0]}T${S[1].split(".")[0]}`)), t(r) === "date" ? s.value = S[0] : t(r) === "time" ? s.value = S[1] : s.value = t(f) + ue(/* @__PURE__ */ new Date(), "XXX");
882
+ b.value == null && (b.value = p(/* @__PURE__ */ new Date()));
883
+ const S = b.value.split(/[TZ]/g), L = d.split(/[TZ]/g);
884
+ S[m] = L[m], b.value = p(/* @__PURE__ */ new Date(`${S[0]}T${S[1].split(".")[0]}`)), t(r) === "date" ? i.value = S[0] : t(r) === "time" ? i.value = S[1] : i.value = t(b) + de(/* @__PURE__ */ new Date(), "XXX");
884
885
  }
885
886
  }
886
- de(s, (d) => h(d, -1), { immediate: !0 });
887
- const k = T({
887
+ ce(i, (d) => h(d, -1), { immediate: !0 });
888
+ const k = C({
888
889
  get() {
889
- const d = t(f);
890
+ const d = t(b);
890
891
  if (d == null) return null;
891
892
  const m = new Date(d);
892
893
  return Number.isNaN(m.getTime()) ? null : m;
@@ -894,84 +895,84 @@ const qt = {
894
895
  set(d) {
895
896
  h(p(d), 0);
896
897
  }
897
- }), w = T({
898
+ }), w = C({
898
899
  get() {
899
- const d = t(f);
900
+ const d = t(b);
900
901
  return d == null ? "" : d.split(/[TZ]/g)[1].split(".")[0];
901
902
  },
902
903
  set(d) {
903
904
  h(`T${d}`, 1);
904
905
  }
905
- }), O = T({
906
+ }), O = C({
906
907
  get() {
907
908
  const d = t(k);
908
- return d == null ? "" : ue(d, t(b));
909
+ return d == null ? "" : de(d, t(g));
909
910
  },
910
911
  set(d) {
911
912
  try {
912
- const m = vl(d, t(b), /* @__PURE__ */ new Date());
913
+ const m = vl(d, t(g), /* @__PURE__ */ new Date());
913
914
  h(p(m), 0);
914
915
  } catch (m) {
915
916
  console.error(m);
916
917
  }
917
918
  }
918
- }), D = T({
919
+ }), x = C({
919
920
  get() {
920
921
  const d = t(k);
921
- return d == null ? "" : ue(d, t(i));
922
+ return d == null ? "" : de(d, t(s));
922
923
  },
923
924
  set(d) {
924
925
  const m = d.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
925
926
  if (m == null) return;
926
927
  let S = Se(m[1]);
927
928
  const L = Se(m[2]);
928
- xe(S) || xe(L) || (m[3] && m[3].toLowerCase() === "pm" && S < 13 && (S += 12), h(`T${S.toString().padStart(2, "0")}:${L.toString().padStart(2, "0")}:00`, 1));
929
+ De(S) || De(L) || (m[3] && m[3].toLowerCase() === "pm" && S < 13 && (S += 12), h(`T${S.toString().padStart(2, "0")}:${L.toString().padStart(2, "0")}:00`, 1));
929
930
  }
930
931
  });
931
932
  return (d, m) => {
932
- const S = A("v-date-picker"), L = A("v-confirm-edit"), B = A("v-menu"), $ = A("v-text-field"), q = A("v-time-picker");
933
+ const S = A("v-date-picker"), L = A("v-confirm-edit"), T = A("v-menu"), $ = A("v-text-field"), Q = A("v-time-picker");
933
934
  return V(), I(t(Te), K(n, {
934
935
  clearable: "",
935
- "onClick:clear": m[14] || (m[14] = (P) => s.value = null),
936
+ "onClick:clear": m[14] || (m[14] = (P) => i.value = null),
936
937
  onBlur: m[15] || (m[15] = (P) => o.value = !0)
937
938
  }), {
938
939
  default: _((P) => [
939
- Z("div", ln, [
940
+ Y("div", tn, [
940
941
  ["date", "datetime"].includes(t(r)) ? (V(), I($, {
941
942
  key: 0,
942
943
  modelValue: O.value,
943
- "onUpdate:modelValue": m[4] || (m[4] = (y) => O.value = y),
944
+ "onUpdate:modelValue": m[4] || (m[4] = (f) => O.value = f),
944
945
  style: { "flex-grow": "4" },
945
946
  density: "compact",
946
947
  variant: "plain",
947
948
  clearable: !1,
948
949
  "hide-details": !0,
949
- readonly: t(g).readonly,
950
- disabled: t(g).disabled,
951
- name: `${t(g).name}-date`,
952
- onClick: m[5] || (m[5] = (y) => v.value = "date"),
953
- onKeydown: m[6] || (m[6] = $e((y) => v.value = "date", ["space"])),
954
- onFocus: (y) => P.focus(),
955
- onBlur: (y) => P.blur()
950
+ readonly: t(y).readonly,
951
+ disabled: t(y).disabled,
952
+ name: `${t(y).name}-date`,
953
+ onClick: m[5] || (m[5] = (f) => v.value = "date"),
954
+ onKeydown: m[6] || (m[6] = $e((f) => v.value = "date", ["space"])),
955
+ onFocus: (f) => P.focus(),
956
+ onBlur: (f) => P.blur()
956
957
  }, {
957
958
  default: _(() => [
958
- C(B, {
959
+ B(T, {
959
960
  modelValue: u.value,
960
- "onUpdate:modelValue": m[3] || (m[3] = (y) => u.value = y),
961
+ "onUpdate:modelValue": m[3] || (m[3] = (f) => u.value = f),
961
962
  "close-on-content-click": !1,
962
963
  activator: "parent"
963
964
  }, {
964
965
  default: _(() => [
965
- C(L, {
966
+ B(L, {
966
967
  modelValue: k.value,
967
- "onUpdate:modelValue": m[0] || (m[0] = (y) => k.value = y),
968
- onCancel: m[1] || (m[1] = (y) => v.value = ""),
969
- onSave: m[2] || (m[2] = (y) => v.value = "")
968
+ "onUpdate:modelValue": m[0] || (m[0] = (f) => k.value = f),
969
+ onCancel: m[1] || (m[1] = (f) => v.value = ""),
970
+ onSave: m[2] || (m[2] = (f) => v.value = "")
970
971
  }, {
971
- default: _(({ model: y, actions: M }) => [
972
- C(S, {
973
- modelValue: y.value,
974
- "onUpdate:modelValue": (le) => y.value = le,
972
+ default: _(({ model: f, actions: M }) => [
973
+ B(S, {
974
+ modelValue: f.value,
975
+ "onUpdate:modelValue": (ne) => f.value = ne,
975
976
  "hide-header": !0,
976
977
  "first-day-of-week": 1,
977
978
  "show-adjacent-months": !0,
@@ -993,39 +994,39 @@ const qt = {
993
994
  }, 1032, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : E("", !0),
994
995
  ["time", "datetime"].includes(t(r)) ? (V(), I($, {
995
996
  key: 1,
996
- modelValue: D.value,
997
- "onUpdate:modelValue": m[11] || (m[11] = (y) => D.value = y),
997
+ modelValue: x.value,
998
+ "onUpdate:modelValue": m[11] || (m[11] = (f) => x.value = f),
998
999
  style: { "flex-grow": "3" },
999
1000
  density: "compact",
1000
1001
  variant: "plain",
1001
1002
  clearable: !1,
1002
1003
  "hide-details": !0,
1003
- readonly: t(g).readonly,
1004
- disabled: t(g).disabled,
1005
- name: `${t(g).name}-time`,
1006
- onClick: m[12] || (m[12] = (y) => v.value = "time"),
1007
- onKeydown: m[13] || (m[13] = $e((y) => v.value = "time", ["space"])),
1008
- onFocus: (y) => P.focus(),
1009
- onBlur: (y) => P.blur()
1004
+ readonly: t(y).readonly,
1005
+ disabled: t(y).disabled,
1006
+ name: `${t(y).name}-time`,
1007
+ onClick: m[12] || (m[12] = (f) => v.value = "time"),
1008
+ onKeydown: m[13] || (m[13] = $e((f) => v.value = "time", ["space"])),
1009
+ onFocus: (f) => P.focus(),
1010
+ onBlur: (f) => P.blur()
1010
1011
  }, {
1011
1012
  default: _(() => [
1012
- C(B, {
1013
+ B(T, {
1013
1014
  modelValue: c.value,
1014
- "onUpdate:modelValue": m[10] || (m[10] = (y) => c.value = y),
1015
+ "onUpdate:modelValue": m[10] || (m[10] = (f) => c.value = f),
1015
1016
  "close-on-content-click": !1,
1016
1017
  activator: "parent"
1017
1018
  }, {
1018
1019
  default: _(() => [
1019
- C(L, {
1020
+ B(L, {
1020
1021
  modelValue: w.value,
1021
- "onUpdate:modelValue": m[7] || (m[7] = (y) => w.value = y),
1022
- onCancel: m[8] || (m[8] = (y) => v.value = ""),
1023
- onSave: m[9] || (m[9] = (y) => v.value = "")
1022
+ "onUpdate:modelValue": m[7] || (m[7] = (f) => w.value = f),
1023
+ onCancel: m[8] || (m[8] = (f) => v.value = ""),
1024
+ onSave: m[9] || (m[9] = (f) => v.value = "")
1024
1025
  }, {
1025
- default: _(({ model: y, actions: M }) => [
1026
- C(q, {
1027
- modelValue: y.value,
1028
- "onUpdate:modelValue": (le) => y.value = le,
1026
+ default: _(({ model: f, actions: M }) => [
1027
+ B(Q, {
1028
+ modelValue: f.value,
1029
+ "onUpdate:modelValue": (ne) => f.value = ne,
1029
1030
  "hide-header": !0,
1030
1031
  format: "24hr"
1031
1032
  }, {
@@ -1049,12 +1050,12 @@ const qt = {
1049
1050
  }, 16);
1050
1051
  };
1051
1052
  }
1052
- }), nn = {
1053
+ }), on = {
1053
1054
  class: "d-flex w-100 pt-5 pl-2 pb-1",
1054
1055
  style: { position: "relative" }
1055
- }, on = /* @__PURE__ */ F({
1056
+ }, an = /* @__PURE__ */ F({
1056
1057
  __name: "df-file",
1057
- props: /* @__PURE__ */ W({
1058
+ props: /* @__PURE__ */ q({
1058
1059
  comms: {},
1059
1060
  control: {},
1060
1061
  modelValue: {},
@@ -1067,64 +1068,64 @@ const qt = {
1067
1068
  visibility: {},
1068
1069
  cssClass: {},
1069
1070
  clearable: { type: Boolean }
1070
- }, X),
1071
+ }, Z),
1071
1072
  emits: ["update:modelValue", "click:clear"],
1072
1073
  setup(l, { emit: e }) {
1073
- const n = l, a = e, { touched: o, value: s, vuetifyBindings: g } = z(n, a), r = x(null), b = x(null), i = x(0), v = x(Math.round(Math.random() * 1e3)), u = x(), c = T(() => b.value && i.value < 100), p = T(() => !u.value && s.value ? n.modelValue : "");
1074
- function f() {
1074
+ const n = l, a = e, { touched: o, value: i, vuetifyBindings: y } = z(n, a), r = D(null), g = D(null), s = D(0), v = D(Math.round(Math.random() * 1e3)), u = D(), c = C(() => g.value && s.value < 100), p = C(() => !u.value && i.value ? n.modelValue : "");
1075
+ function b() {
1075
1076
  r.value && window.clearInterval(r.value);
1076
1077
  }
1077
1078
  function h() {
1078
- f(), r.value = window.setInterval(() => {
1079
- s.value && n.comms.touch(s.value);
1079
+ b(), r.value = window.setInterval(() => {
1080
+ i.value && n.comms.touch(i.value);
1080
1081
  }, 60 * 1e3);
1081
1082
  }
1082
- Re(() => f()), de(s, (D) => {
1083
- D ? h() : f();
1083
+ Re(() => b()), ce(i, (x) => {
1084
+ x ? h() : b();
1084
1085
  });
1085
1086
  function k() {
1086
- return ce(this, null, function* () {
1087
- s.value && (yield n.comms.delete(s.value)), s.value = null, i.value = 0, v.value = Math.round(Math.random() * 1e3), b.value = null, u.value = null, f();
1087
+ return me(this, null, function* () {
1088
+ i.value && (yield n.comms.delete(i.value)), i.value = null, s.value = 0, v.value = Math.round(Math.random() * 1e3), g.value = null, u.value = null, b();
1088
1089
  });
1089
1090
  }
1090
- function w(D) {
1091
- return ce(this, null, function* () {
1092
- i.value = -1, b.value = D;
1091
+ function w(x) {
1092
+ return me(this, null, function* () {
1093
+ s.value = -1, g.value = x;
1093
1094
  try {
1094
- s.value = yield n.comms.upload(
1095
- D,
1095
+ i.value = yield n.comms.upload(
1096
+ x,
1096
1097
  (d, m) => {
1097
- i.value = Math.round(d * 100 / m);
1098
+ s.value = Math.round(d * 100 / m);
1098
1099
  }
1099
- ), i.value = 100, h();
1100
+ ), s.value = 100, h();
1100
1101
  } catch (d) {
1101
- throw i.value = 0, b.value = null, v.value = Math.round(Math.random() * 1e3), u.value = null, d;
1102
+ throw s.value = 0, g.value = null, v.value = Math.round(Math.random() * 1e3), u.value = null, d;
1102
1103
  }
1103
1104
  });
1104
1105
  }
1105
- function O(D) {
1106
- D && (Array.isArray(D) ? console.error("Uploading multiple files not supported right now") : w(D));
1106
+ function O(x) {
1107
+ x && (Array.isArray(x) ? console.error("Uploading multiple files not supported right now") : w(x));
1107
1108
  }
1108
- return (D, d) => {
1109
+ return (x, d) => {
1109
1110
  const m = A("v-icon"), S = A("v-progress-linear"), L = A("v-file-input");
1110
1111
  return V(), I(t(Te), K(H(N({}, n), { loading: c.value }), {
1111
1112
  clearable: "",
1112
1113
  "onClick:clear": k,
1113
- onBlur: d[1] || (d[1] = (B) => o.value = !0)
1114
+ onBlur: d[1] || (d[1] = (T) => o.value = !0)
1114
1115
  }), {
1115
1116
  "prepend-inner": _(() => [
1116
- C(m, { icon: "$file" })
1117
+ B(m, { icon: "$file" })
1117
1118
  ]),
1118
1119
  loader: _(() => [
1119
- b.value && i.value < 100 ? (V(), I(S, {
1120
+ g.value && s.value < 100 ? (V(), I(S, {
1120
1121
  key: 0,
1121
- "model-value": i.value,
1122
- indeterminate: i.value === -1
1122
+ "model-value": s.value,
1123
+ indeterminate: s.value === -1
1123
1124
  }, null, 8, ["model-value", "indeterminate"])) : E("", !0)
1124
1125
  ]),
1125
- default: _((B) => [
1126
- Z("div", nn, [
1127
- C(L, {
1126
+ default: _((T) => [
1127
+ Y("div", on, [
1128
+ B(L, {
1128
1129
  modelValue: u.value,
1129
1130
  "onUpdate:modelValue": [
1130
1131
  d[0] || (d[0] = ($) => u.value = $),
@@ -1133,17 +1134,17 @@ const qt = {
1133
1134
  label: p.value,
1134
1135
  density: "compact",
1135
1136
  variant: "plain",
1136
- readonly: t(g).readonly,
1137
- disabled: t(g).disabled,
1138
- name: t(g).name,
1137
+ readonly: t(y).readonly,
1138
+ disabled: t(y).disabled,
1139
+ name: t(y).name,
1139
1140
  "hide-details": !0,
1140
1141
  "show-size": !0,
1141
1142
  multiple: !1,
1142
- style: we(b.value && i.value < 100 ? "visibility: hidden" : ""),
1143
+ style: we(g.value && s.value < 100 ? "visibility: hidden" : ""),
1143
1144
  clearable: !1,
1144
1145
  "prepend-icon": "",
1145
- onFocus: ($) => B.focus(),
1146
- onBlur: ($) => B.blur()
1146
+ onFocus: ($) => T.focus(),
1147
+ onBlur: ($) => T.blur()
1147
1148
  }, null, 8, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
1148
1149
  ])
1149
1150
  ]),
@@ -1151,9 +1152,9 @@ const qt = {
1151
1152
  }, 16);
1152
1153
  };
1153
1154
  }
1154
- }), an = { class: "container" }, sn = /* @__PURE__ */ F({
1155
+ }), sn = { class: "container" }, rn = /* @__PURE__ */ F({
1155
1156
  __name: "df-input",
1156
- props: /* @__PURE__ */ W({
1157
+ props: /* @__PURE__ */ q({
1157
1158
  inputType: {},
1158
1159
  precision: {},
1159
1160
  step: {},
@@ -1170,7 +1171,7 @@ const qt = {
1170
1171
  visibility: {},
1171
1172
  cssClass: {},
1172
1173
  clearable: { type: Boolean }
1173
- }, H(N({}, X), {
1174
+ }, H(N({}, Z), {
1174
1175
  inputType: "text",
1175
1176
  precision: null,
1176
1177
  step: void 0,
@@ -1179,32 +1180,32 @@ const qt = {
1179
1180
  })),
1180
1181
  emits: ["update:modelValue", "click:clear"],
1181
1182
  setup(l, { emit: e }) {
1182
- const n = l, a = e, { errors: o, label: s, touched: g, value: r, vuetifyBindings: b } = z(n, a), { inputType: i, max: v, min: u, precision: c, step: p } = be(n), f = T(() => i.value === "number"), h = T(() => f.value ? { min: t(u), max: t(v), precision: t(c), step: t(p) } : {});
1183
+ const n = l, a = e, { errors: o, label: i, touched: y, value: r, vuetifyBindings: g } = z(n, a), { inputType: s, max: v, min: u, precision: c, step: p } = be(n), b = C(() => s.value === "number"), h = C(() => b.value ? { min: t(u), max: t(v), precision: t(c), step: t(p) } : {});
1183
1184
  return (k, w) => {
1184
- const O = A("v-text-field"), D = A("v-number-input");
1185
- return V(), U("div", an, [
1186
- f.value ? (V(), I(D, K({
1185
+ const O = A("v-text-field"), x = A("v-number-input");
1186
+ return V(), U("div", sn, [
1187
+ b.value ? (V(), I(x, K({
1187
1188
  key: 1,
1188
1189
  modelValue: t(r),
1189
- "onUpdate:modelValue": w[2] || (w[2] = (d) => Q(r) ? r.value = d : null)
1190
- }, N(N({}, t(b)), h.value), {
1190
+ "onUpdate:modelValue": w[2] || (w[2] = (d) => J(r) ? r.value = d : null)
1191
+ }, N(N({}, t(g)), h.value), {
1191
1192
  density: "compact",
1192
1193
  "control-variant": "stacked"
1193
- }), G({
1194
+ }), X({
1194
1195
  message: _(({ message: d }) => [
1195
- C(t(J), {
1196
+ B(t(le), {
1196
1197
  message: d,
1197
1198
  errors: t(o)
1198
1199
  }, null, 8, ["message", "errors"])
1199
1200
  ]),
1200
1201
  _: 2
1201
1202
  }, [
1202
- t(s).icon ? {
1203
+ t(i).icon ? {
1203
1204
  name: "label",
1204
1205
  fn: _((d) => [
1205
- C(t(Y), {
1206
+ B(t(ee), {
1206
1207
  data: d,
1207
- label: t(s)
1208
+ label: t(i)
1208
1209
  }, null, 8, ["data", "label"])
1209
1210
  ]),
1210
1211
  key: "0"
@@ -1212,25 +1213,25 @@ const qt = {
1212
1213
  ]), 1040, ["modelValue"])) : (V(), I(O, K({
1213
1214
  key: 0,
1214
1215
  modelValue: t(r),
1215
- "onUpdate:modelValue": w[0] || (w[0] = (d) => Q(r) ? r.value = d : null)
1216
- }, t(b), {
1217
- type: t(i),
1218
- onBlur: w[1] || (w[1] = (d) => g.value = !0)
1219
- }), G({
1216
+ "onUpdate:modelValue": w[0] || (w[0] = (d) => J(r) ? r.value = d : null)
1217
+ }, t(g), {
1218
+ type: t(s),
1219
+ onBlur: w[1] || (w[1] = (d) => y.value = !0)
1220
+ }), X({
1220
1221
  message: _(({ message: d }) => [
1221
- C(t(J), {
1222
+ B(t(le), {
1222
1223
  message: d,
1223
1224
  errors: t(o)
1224
1225
  }, null, 8, ["message", "errors"])
1225
1226
  ]),
1226
1227
  _: 2
1227
1228
  }, [
1228
- t(s).icon ? {
1229
+ t(i).icon ? {
1229
1230
  name: "label",
1230
1231
  fn: _((d) => [
1231
- C(t(Y), {
1232
+ B(t(ee), {
1232
1233
  data: d,
1233
- label: t(s)
1234
+ label: t(i)
1234
1235
  }, null, 8, ["data", "label"])
1235
1236
  ]),
1236
1237
  key: "0"
@@ -1239,7 +1240,7 @@ const qt = {
1239
1240
  ]);
1240
1241
  };
1241
1242
  }
1242
- }), rn = /* @__PURE__ */ ee(sn, [["__scopeId", "data-v-06be139f"]]), un = { class: "editor-container" }, dn = { class: "editor-container__editor" }, cn = { ref: "editorElement" }, mn = /* @__PURE__ */ F({
1243
+ }), un = /* @__PURE__ */ te(rn, [["__scopeId", "data-v-06be139f"]]), dn = { class: "editor-container" }, cn = { class: "editor-container__editor" }, mn = { ref: "editorElement" }, pn = /* @__PURE__ */ F({
1243
1244
  __name: "ck-editor-custom",
1244
1245
  props: {
1245
1246
  modelValue: { default: "" },
@@ -1251,7 +1252,7 @@ const qt = {
1251
1252
  nl((u) => ({
1252
1253
  "3d4d5a06": u.minHeight
1253
1254
  }));
1254
- const a = n, o = x(!1), s = tt, i = {
1255
+ const a = n, o = D(!1), i = tt, s = {
1255
1256
  toolbar: {
1256
1257
  items: [
1257
1258
  "undo",
@@ -1299,8 +1300,8 @@ const qt = {
1299
1300
  $l,
1300
1301
  Al,
1301
1302
  Sl,
1302
- xl,
1303
1303
  Dl,
1304
+ xl,
1304
1305
  Nl,
1305
1306
  Ul,
1306
1307
  El,
@@ -1389,27 +1390,27 @@ const qt = {
1389
1390
  };
1390
1391
  return e({ onEditorReady: v }), (u, c) => {
1391
1392
  const p = A("ckeditor");
1392
- return V(), U("div", un, [
1393
- Z("div", dn, [
1394
- Z("div", cn, [
1393
+ return V(), U("div", dn, [
1394
+ Y("div", cn, [
1395
+ Y("div", mn, [
1395
1396
  o.value ? (V(), I(p, {
1396
1397
  key: 0,
1397
1398
  "model-value": u.modelValue,
1398
- editor: t(s),
1399
- config: i,
1399
+ editor: t(i),
1400
+ config: s,
1400
1401
  disabled: u.disabled,
1401
1402
  style: we(`min-height: ${u.minHeight}`),
1402
1403
  onReady: v,
1403
- "onUpdate:modelValue": c[0] || (c[0] = (f) => a("update:modelValue", f))
1404
+ "onUpdate:modelValue": c[0] || (c[0] = (b) => a("update:modelValue", b))
1404
1405
  }, null, 8, ["model-value", "editor", "disabled", "style"])) : E("", !0)
1405
1406
  ], 512)
1406
1407
  ])
1407
1408
  ]);
1408
1409
  };
1409
1410
  }
1410
- }), pn = /* @__PURE__ */ F({
1411
+ }), vn = /* @__PURE__ */ F({
1411
1412
  __name: "df-rtf-editor",
1412
- props: /* @__PURE__ */ W({
1413
+ props: /* @__PURE__ */ q({
1413
1414
  minHeight: {},
1414
1415
  control: {},
1415
1416
  modelValue: {},
@@ -1422,33 +1423,33 @@ const qt = {
1422
1423
  visibility: {},
1423
1424
  cssClass: {},
1424
1425
  clearable: { type: Boolean }
1425
- }, H(N({}, X), { minHeight: void 0 })),
1426
+ }, H(N({}, Z), { minHeight: void 0 })),
1426
1427
  emits: ["update:modelValue", "click:clear"],
1427
1428
  setup(l, { emit: e }) {
1428
- const n = l, a = e, { value: o, vuetifyBindings: s } = z(n, a);
1429
- return (g, r) => (V(), I(t(Te), ne(oe(n)), {
1430
- default: _((b) => [
1431
- C(mn, {
1429
+ const n = l, a = e, { value: o, vuetifyBindings: i } = z(n, a);
1430
+ return (y, r) => (V(), I(t(Te), G(W(n)), {
1431
+ default: _((g) => [
1432
+ B(pn, {
1432
1433
  ref: "$editor",
1433
1434
  modelValue: t(o),
1434
- "onUpdate:modelValue": r[0] || (r[0] = (i) => Q(o) ? o.value = i : null),
1435
- class: ie({ "mt-8": !!g.label }),
1436
- "min-height": g.minHeight,
1437
- disabled: t(s).disabled,
1438
- onFocusin: (i) => b.focus(),
1439
- onFocusout: (i) => b.blur()
1435
+ "onUpdate:modelValue": r[0] || (r[0] = (s) => J(o) ? o.value = s : null),
1436
+ class: re({ "mt-8": !!y.label }),
1437
+ "min-height": y.minHeight,
1438
+ disabled: t(i).disabled,
1439
+ onFocusin: (s) => g.focus(),
1440
+ onFocusout: (s) => g.blur()
1440
1441
  }, null, 8, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
1441
1442
  ]),
1442
1443
  _: 1
1443
1444
  }, 16));
1444
1445
  }
1445
1446
  });
1446
- function vn(l) {
1447
+ function fn(l) {
1447
1448
  return l.map((e) => ({ value: e.id, title: e.text, icon: e.icon }));
1448
1449
  }
1449
- function te(l, e) {
1450
+ function oe(l, e) {
1450
1451
  var n;
1451
- return l == null || De(l) && l.length === 0 ? null : e ? Me(l) : De(l) ? (n = He(l)) != null ? n : null : l;
1452
+ return l == null || xe(l) && l.length === 0 ? null : e ? Me(l) : xe(l) ? (n = He(l)) != null ? n : null : l;
1452
1453
  }
1453
1454
  function fe(l, e) {
1454
1455
  if (e == null) return [];
@@ -1456,27 +1457,27 @@ function fe(l, e) {
1456
1457
  return l.filter((a) => n.some((o) => o === a.id));
1457
1458
  }
1458
1459
  function _e(l, e, n, a, o) {
1459
- var g;
1460
- const s = te(l, n);
1461
- if (s == null) {
1460
+ var y;
1461
+ const i = oe(l, n);
1462
+ if (i == null) {
1462
1463
  e.value = n ? [] : null;
1463
1464
  return;
1464
1465
  }
1465
1466
  if (n)
1466
- a ? e.value = s : e.value = fe(o, s).map((r) => r.id);
1467
+ a ? e.value = i : e.value = fe(o, i).map((r) => r.id);
1467
1468
  else if (a)
1468
- e.value = s;
1469
+ e.value = i;
1469
1470
  else {
1470
- const r = He(fe(o, s));
1471
- e.value = (g = r == null ? void 0 : r.id) != null ? g : null;
1471
+ const r = He(fe(o, i));
1472
+ e.value = (y = r == null ? void 0 : r.id) != null ? y : null;
1472
1473
  }
1473
1474
  }
1474
- const fn = {
1475
+ const bn = {
1475
1476
  key: 0,
1476
1477
  class: "me-1"
1477
- }, bn = /* @__PURE__ */ F({
1478
+ }, gn = /* @__PURE__ */ F({
1478
1479
  __name: "df-select",
1479
- props: /* @__PURE__ */ W({
1480
+ props: /* @__PURE__ */ q({
1480
1481
  choices: {},
1481
1482
  multiple: { type: Boolean },
1482
1483
  allowTags: { type: Boolean },
@@ -1493,7 +1494,7 @@ const fn = {
1493
1494
  visibility: {},
1494
1495
  cssClass: {},
1495
1496
  clearable: { type: Boolean }
1496
- }, H(N({}, X), {
1497
+ }, H(N({}, Z), {
1497
1498
  choices: void 0,
1498
1499
  multiple: !1,
1499
1500
  allowTags: !1,
@@ -1502,32 +1503,32 @@ const fn = {
1502
1503
  })),
1503
1504
  emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
1504
1505
  setup(l, { emit: e }) {
1505
- const n = l, { choices: a } = n, { multiple: o, allowTags: s, allowNull: g, cssClass: r, visibility: b } = be(n), i = e, { errors: v, label: u, touched: c, value: p, vuetifyBindings: f } = z(n, i), h = x(null), k = x(a || []), w = x(!1), O = T(() => vn(k.value));
1506
- function D(B) {
1507
- i("update:modelValueDisplay", fe(k.value, B));
1506
+ const n = l, { choices: a } = n, { multiple: o, allowTags: i, allowNull: y, cssClass: r, visibility: g } = be(n), s = e, { errors: v, label: u, touched: c, value: p, vuetifyBindings: b } = z(n, s), h = D(null), k = D(a || []), w = D(!1), O = C(() => fn(k.value));
1507
+ function x(T) {
1508
+ s("update:modelValueDisplay", fe(k.value, T));
1508
1509
  }
1509
- de(h, (B) => {
1510
- f.value.readonly || ol(() => {
1511
- const $ = te(B, o.value);
1512
- D($), p.value = $;
1510
+ ce(h, (T) => {
1511
+ b.value.readonly || ol(() => {
1512
+ const $ = oe(T, o.value);
1513
+ x($), p.value = $;
1513
1514
  });
1514
1515
  }, { deep: !0 });
1515
1516
  function d() {
1516
- if (f.value.readonly || s.value) return;
1517
- const B = te(h.value, o.value);
1518
- _e(B, h, o.value, !1, k.value), p.value = B;
1517
+ if (b.value.readonly || i.value) return;
1518
+ const T = oe(h.value, o.value);
1519
+ _e(T, h, o.value, !1, k.value), p.value = T;
1519
1520
  }
1520
- function m(B) {
1521
+ function m(T) {
1521
1522
  let $;
1522
- o.value && Array.isArray(h.value) ? $ = te(h.value.filter((q) => q !== B), o.value) : $ = null, _e($, h, o.value, !1, k.value), p.value = $;
1523
+ o.value && Array.isArray(h.value) ? $ = oe(h.value.filter((Q) => Q !== T), o.value) : $ = null, _e($, h, o.value, !1, k.value), p.value = $;
1523
1524
  }
1524
- function S(B, $) {
1525
- return ce(this, null, function* () {
1525
+ function S(T, $) {
1526
+ return me(this, null, function* () {
1526
1527
  if (!(a || n.fetchChoices === void 0)) {
1527
1528
  w.value = !0;
1528
1529
  try {
1529
- const q = fe(k.value, te(h.value, o.value)), P = yield n.fetchChoices(B, $);
1530
- k.value = ul([...q, ...P], "id");
1530
+ const Q = fe(k.value, oe(h.value, o.value)), P = yield n.fetchChoices(T, $);
1531
+ k.value = ul([...Q, ...P], "id");
1531
1532
  } finally {
1532
1533
  w.value = !1;
1533
1534
  }
@@ -1535,78 +1536,78 @@ const fn = {
1535
1536
  });
1536
1537
  }
1537
1538
  function L() {
1538
- let B = p.value;
1539
- !g.value && B == null && O.value.length && (B = O.value[0].value), B = te(B, o.value), _e(B, h, o.value, s.value, k.value), D(B), p.value = B;
1539
+ let T = p.value;
1540
+ !y.value && T == null && O.value.length && (T = O.value[0].value), T = oe(T, o.value), _e(T, h, o.value, i.value, k.value), x(T), p.value = T;
1540
1541
  }
1541
1542
  return L(), n.fetchChoices !== void 0 && S(void 0, p.value).then(() => {
1542
1543
  L();
1543
- }), (B, $) => {
1544
- const q = A("v-chip"), P = A("v-list-item");
1545
- return t(b) !== t(j).SUPPRESS ? (V(), I(se(t(s) ? "v-combobox" : "v-autocomplete"), K({
1544
+ }), (T, $) => {
1545
+ const Q = A("v-chip"), P = A("v-list-item");
1546
+ return t(g) !== t(j).SUPPRESS ? (V(), I(se(t(i) ? "v-combobox" : "v-autocomplete"), K({
1546
1547
  key: 0,
1547
1548
  modelValue: h.value,
1548
- "onUpdate:modelValue": $[0] || ($[0] = (y) => h.value = y),
1549
+ "onUpdate:modelValue": $[0] || ($[0] = (f) => h.value = f),
1549
1550
  class: [
1550
1551
  t(r),
1551
1552
  {
1552
- "d-none": t(b) === t(j).HIDDEN,
1553
- invisible: t(b) === t(j).INVISIBLE
1553
+ "d-none": t(g) === t(j).HIDDEN,
1554
+ invisible: t(g) === t(j).INVISIBLE
1554
1555
  }
1555
1556
  ],
1556
1557
  items: O.value,
1557
1558
  "return-object": !1
1558
- }, t(f), {
1559
- label: t(f).label,
1559
+ }, t(b), {
1560
+ label: t(b).label,
1560
1561
  chips: "",
1561
1562
  "auto-select-first": !0,
1562
- "closable-chips": t(g) || t(o) && h.value.length > 1,
1563
- clearable: t(g),
1563
+ "closable-chips": t(y) || t(o) && h.value.length > 1,
1564
+ clearable: t(y),
1564
1565
  multiple: t(o),
1565
1566
  loading: w.value,
1566
1567
  "hide-selected": !1,
1567
- "aria-describedby": t(f).helpText ? `${t(f).name}-help` : null,
1568
+ "aria-describedby": t(b).helpText ? `${t(b).name}-help` : null,
1568
1569
  "menu-props": { maxHeight: "400" },
1569
1570
  "hide-details": "auto",
1570
- "onUpdate:search": $[1] || ($[1] = (y) => S(y, void 0)),
1571
+ "onUpdate:search": $[1] || ($[1] = (f) => S(f, void 0)),
1571
1572
  "onUpdate:modelValue": d,
1572
- "onClick:clear": $[2] || ($[2] = (y) => h.value = null),
1573
- onBlur: $[3] || ($[3] = (y) => c.value = !0)
1574
- }), G({
1575
- chip: _(({ item: y }) => [
1576
- (V(), I(q, {
1577
- key: y.value,
1573
+ "onClick:clear": $[2] || ($[2] = (f) => h.value = null),
1574
+ onBlur: $[3] || ($[3] = (f) => c.value = !0)
1575
+ }), X({
1576
+ chip: _(({ item: f }) => [
1577
+ (V(), I(Q, {
1578
+ key: f.value,
1578
1579
  label: "",
1579
1580
  size: "small",
1580
1581
  class: "d-flex align-middle",
1581
1582
  variant: t(o) ? "tonal" : "text",
1582
1583
  closable: t(o),
1583
- "onClick:close": (M) => m(y.value)
1584
+ "onClick:close": (M) => m(f.value)
1584
1585
  }, {
1585
1586
  prepend: _(() => {
1586
1587
  var M;
1587
1588
  return [
1588
- (M = y.raw) != null && M.icon ? (V(), I(t(Ve), {
1589
+ (M = f.raw) != null && M.icon ? (V(), I(t(Ve), {
1589
1590
  key: 0,
1590
1591
  class: "me-1 action-icon d-inline-block",
1591
- name: y.raw.icon
1592
+ name: f.raw.icon
1592
1593
  }, null, 8, ["name"])) : E("", !0)
1593
1594
  ];
1594
1595
  }),
1595
1596
  default: _(() => [
1596
- Z("span", {
1597
- class: ie({ "text-body-1": !t(o) })
1598
- }, ae(y.title), 3)
1597
+ Y("span", {
1598
+ class: re({ "text-body-1": !t(o) })
1599
+ }, ie(f.title), 3)
1599
1600
  ]),
1600
1601
  _: 2
1601
1602
  }, 1032, ["variant", "closable", "onClick:close"]))
1602
1603
  ]),
1603
- item: _(({ props: y, item: M }) => [
1604
- C(P, ne(oe(y)), {
1604
+ item: _(({ props: f, item: M }) => [
1605
+ B(P, G(W(f)), {
1605
1606
  prepend: _(() => {
1606
- var le;
1607
+ var ne;
1607
1608
  return [
1608
- (le = M.raw) != null && le.icon ? (V(), U("span", fn, [
1609
- C(t(Ve), {
1609
+ (ne = M.raw) != null && ne.icon ? (V(), U("span", bn, [
1610
+ B(t(Ve), {
1610
1611
  class: "action-icon d-inline-block",
1611
1612
  name: M.raw.icon
1612
1613
  }, null, 8, ["name"])
@@ -1616,9 +1617,9 @@ const fn = {
1616
1617
  _: 2
1617
1618
  }, 1040)
1618
1619
  ]),
1619
- message: _(({ message: y }) => [
1620
- C(t(J), {
1621
- message: y,
1620
+ message: _(({ message: f }) => [
1621
+ B(t(le), {
1622
+ message: f,
1622
1623
  errors: t(v)
1623
1624
  }, null, 8, ["message", "errors"])
1624
1625
  ]),
@@ -1626,20 +1627,34 @@ const fn = {
1626
1627
  }, [
1627
1628
  t(u).icon ? {
1628
1629
  name: "label",
1629
- fn: _((y) => [
1630
- C(t(Y), {
1631
- data: y,
1630
+ fn: _((f) => [
1631
+ B(t(ee), {
1632
+ data: f,
1632
1633
  label: t(u)
1633
1634
  }, null, 8, ["data", "label"])
1634
1635
  ]),
1635
1636
  key: "0"
1637
+ } : void 0,
1638
+ T.$slots["append-inner"] ? {
1639
+ name: "append-inner",
1640
+ fn: _((f) => [
1641
+ ae(T.$slots, "append-inner", G(W(f)), void 0, !0)
1642
+ ]),
1643
+ key: "1"
1644
+ } : void 0,
1645
+ T.$slots["prepend-inner"] ? {
1646
+ name: "prepend-inner",
1647
+ fn: _((f) => [
1648
+ ae(T.$slots, "prepend-inner", G(W(f)), void 0, !0)
1649
+ ]),
1650
+ key: "2"
1636
1651
  } : void 0
1637
1652
  ]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : E("", !0);
1638
1653
  };
1639
1654
  }
1640
- }), gn = /* @__PURE__ */ ee(bn, [["__scopeId", "data-v-e7836221"]]), yn = { class: "container" }, hn = /* @__PURE__ */ F({
1655
+ }), yn = /* @__PURE__ */ te(gn, [["__scopeId", "data-v-7e0390c8"]]), hn = { class: "container" }, _n = /* @__PURE__ */ F({
1641
1656
  __name: "df-text-area",
1642
- props: /* @__PURE__ */ W({
1657
+ props: /* @__PURE__ */ q({
1643
1658
  rows: {},
1644
1659
  maxRows: {},
1645
1660
  control: {},
@@ -1653,22 +1668,22 @@ const fn = {
1653
1668
  visibility: {},
1654
1669
  cssClass: {},
1655
1670
  clearable: { type: Boolean }
1656
- }, H(N({}, X), {
1671
+ }, H(N({}, Z), {
1657
1672
  rows: void 0,
1658
1673
  maxRows: void 0
1659
1674
  })),
1660
1675
  emits: ["update:modelValue", "click:clear"],
1661
1676
  setup(l, { emit: e }) {
1662
- const n = l, a = e, { errors: o, label: s, touched: g, value: r, vuetifyBindings: b } = z(n, a), { cssClass: i, visibility: v } = be(n);
1677
+ const n = l, a = e, { errors: o, label: i, touched: y, value: r, vuetifyBindings: g } = z(n, a), { cssClass: s, visibility: v } = be(n);
1663
1678
  return (u, c) => {
1664
1679
  const p = A("v-textarea");
1665
- return V(), U("div", yn, [
1680
+ return V(), U("div", hn, [
1666
1681
  t(v) !== t(j).SUPPRESS ? (V(), I(p, K({
1667
1682
  key: 0,
1668
1683
  modelValue: t(r),
1669
- "onUpdate:modelValue": c[0] || (c[0] = (f) => Q(r) ? r.value = f : null),
1684
+ "onUpdate:modelValue": c[0] || (c[0] = (b) => J(r) ? r.value = b : null),
1670
1685
  class: [
1671
- t(i),
1686
+ t(s),
1672
1687
  {
1673
1688
  "d-none": t(v) === t(j).HIDDEN,
1674
1689
  invisible: t(v) === t(j).INVISIBLE
@@ -1677,23 +1692,23 @@ const fn = {
1677
1692
  rows: u.rows,
1678
1693
  "auto-grow": (u.maxRows || 0) > 0,
1679
1694
  "max-rows": u.maxRows
1680
- }, t(b), {
1681
- onBlur: c[1] || (c[1] = (f) => g.value = !0)
1682
- }), G({
1683
- message: _(({ message: f }) => [
1684
- C(t(J), {
1685
- message: f,
1695
+ }, t(g), {
1696
+ onBlur: c[1] || (c[1] = (b) => y.value = !0)
1697
+ }), X({
1698
+ message: _(({ message: b }) => [
1699
+ B(t(le), {
1700
+ message: b,
1686
1701
  errors: t(o)
1687
1702
  }, null, 8, ["message", "errors"])
1688
1703
  ]),
1689
1704
  _: 2
1690
1705
  }, [
1691
- t(s).icon ? {
1706
+ t(i).icon ? {
1692
1707
  name: "label",
1693
- fn: _((f) => [
1694
- C(t(Y), {
1695
- data: f,
1696
- label: t(s)
1708
+ fn: _((b) => [
1709
+ B(t(ee), {
1710
+ data: b,
1711
+ label: t(i)
1697
1712
  }, null, 8, ["data", "label"])
1698
1713
  ]),
1699
1714
  key: "0"
@@ -1702,69 +1717,70 @@ const fn = {
1702
1717
  ]);
1703
1718
  };
1704
1719
  }
1705
- }), _n = /* @__PURE__ */ ee(hn, [["__scopeId", "data-v-6257d46c"]]), Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1720
+ }), Vn = /* @__PURE__ */ te(_n, [["__scopeId", "data-v-6257d46c"]]), kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1706
1721
  __proto__: null,
1707
- DfActions: Yt,
1708
- DfCheckbox: Jt,
1709
- DfColor: en,
1710
- DfDateTime: tn,
1711
- DfFile: on,
1712
- DfInput: rn,
1713
- DfRtfEditor: pn,
1714
- DfSelect: gn,
1715
- DfTextArea: _n
1716
- }, Symbol.toStringTag, { value: "Module" })), kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1722
+ DfActions: Jt,
1723
+ DfCheckbox: en,
1724
+ DfColor: ln,
1725
+ DfDateTime: nn,
1726
+ DfFile: an,
1727
+ DfInput: un,
1728
+ DfRtfEditor: vn,
1729
+ DfSelect: yn,
1730
+ DfTextArea: Vn
1731
+ }, Symbol.toStringTag, { value: "Module" })), wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1717
1732
  __proto__: null,
1718
1733
  VAutocomplete: nt,
1719
1734
  VBtn: ot,
1720
1735
  VCheckbox: at,
1721
- VChip: st,
1722
- VCol: mt,
1736
+ VChip: it,
1737
+ VCol: pt,
1723
1738
  VColorPicker: rt,
1724
- VCombobox: it,
1739
+ VCombobox: st,
1725
1740
  VConfirmEdit: ut,
1726
1741
  VDatePicker: dt,
1727
- VFileInput: ct,
1728
- VIcon: vt,
1729
- VImg: ft,
1730
- VInput: bt,
1731
- VListItem: gt,
1732
- VMenu: yt,
1733
- VNumberInput: ht,
1734
- VProgressLinear: _t,
1735
- VRow: pt,
1736
- VSelect: Vt,
1737
- VSwitch: kt,
1738
- VTextField: Tt,
1739
- VTextarea: wt,
1740
- VTimePicker: Ct
1741
- }, Symbol.toStringTag, { value: "Module" })), eo = {
1742
+ VField: ct,
1743
+ VFileInput: mt,
1744
+ VIcon: ft,
1745
+ VImg: bt,
1746
+ VInput: gt,
1747
+ VListItem: yt,
1748
+ VMenu: ht,
1749
+ VNumberInput: _t,
1750
+ VProgressLinear: Vt,
1751
+ VRow: vt,
1752
+ VSelect: kt,
1753
+ VSwitch: wt,
1754
+ VTextField: Ct,
1755
+ VTextarea: Tt,
1756
+ VTimePicker: Bt
1757
+ }, Symbol.toStringTag, { value: "Module" })), to = {
1742
1758
  install: (l, e) => {
1743
1759
  var n, a;
1744
- l.use(Lt), l.provide(Ge, e != null ? e : {}), (n = e == null ? void 0 : e.registerComponents) != null && n && Object.entries(Vn).map(([o, s]) => l.component(o, s)), (a = e == null ? void 0 : e.registerVuetifyComponents) != null && a && Object.entries(kn).map(([o, s]) => l.component(o, s));
1760
+ l.use(Rt), l.provide(Ge, e != null ? e : {}), (n = e == null ? void 0 : e.registerComponents) != null && n && Object.entries(kn).map(([o, i]) => l.component(o, i)), (a = e == null ? void 0 : e.registerVuetifyComponents) != null && a && Object.entries(wn).map(([o, i]) => l.component(o, i));
1745
1761
  }
1746
1762
  };
1747
1763
  export {
1748
1764
  pe as Action,
1749
1765
  R as ActionDisplayStyle,
1750
- Yt as DfActions,
1751
- Jt as DfCheckbox,
1752
- en as DfColor,
1753
- tn as DfDateTime,
1754
- on as DfFile,
1755
- rn as DfInput,
1756
- Y as DfLabel,
1757
- pn as DfRtfEditor,
1758
- gn as DfSelect,
1759
- _n as DfTextArea,
1760
- eo as DynamicFormsInputs,
1766
+ Jt as DfActions,
1767
+ en as DfCheckbox,
1768
+ ln as DfColor,
1769
+ nn as DfDateTime,
1770
+ an as DfFile,
1771
+ un as DfInput,
1772
+ ee as DfLabel,
1773
+ vn as DfRtfEditor,
1774
+ yn as DfSelect,
1775
+ Vn as DfTextArea,
1776
+ to as DynamicFormsInputs,
1761
1777
  Te as InputBase,
1762
- Pt as Label,
1763
- J as MessagesWidget,
1764
- Xt as ResponsiveLabelRenderOptions,
1765
- Wt as ResponsiveRenderOptions,
1766
- kn as VuetifyComponents,
1767
- X as defaultBaseProps,
1778
+ Mt as Label,
1779
+ le as MessagesWidget,
1780
+ qt as ResponsiveLabelRenderOptions,
1781
+ Xt as ResponsiveRenderOptions,
1782
+ wn as VuetifyComponents,
1783
+ Z as defaultBaseProps,
1768
1784
  Ue as defaultDisplayStyle,
1769
1785
  Fe as getBreakpointName,
1770
1786
  Ee as responsiveBreakpoints,