@dynamicforms/vuetify-inputs 0.1.5 → 0.1.7

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