@dynamicforms/vuetify-inputs 0.3.1 → 0.3.3

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