@dynamicforms/vuetify-inputs 0.3.2 → 0.4.0

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