@dynamicforms/vuetify-inputs 0.3.3 → 0.4.0

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