@dynamicforms/vuetify-inputs 0.3.3 → 0.4.1

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