@dynamicforms/vuetify-inputs 0.4.5 → 0.5.0

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