@dynamicforms/vuetify-inputs 0.5.5 → 0.5.7
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.
- package/dist/dynamicforms-vuetify-inputs.js +747 -737
- package/dist/dynamicforms-vuetify-inputs.js.map +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs +6 -6
- package/dist/dynamicforms-vuetify-inputs.umd.cjs.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/style.css +1 -1
- package/package.json +5 -3
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var et = Object.defineProperty, tt = Object.defineProperties;
|
|
2
|
+
var nt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var xe = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var ot = Object.prototype.hasOwnProperty, at = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var _e = (e, t, n) => t in e ? et(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, x = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
ot.call(t, n) && _e(e, n, t[n]);
|
|
8
8
|
if (xe)
|
|
9
9
|
for (var n of xe(t))
|
|
10
|
-
at.call(t, n) &&
|
|
10
|
+
at.call(t, n) && _e(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, F = (e, t) => tt(e, nt(t));
|
|
13
|
+
var $e = (e, t, n) => _e(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
|
+
var he = (e, t, n) => new Promise((a, l) => {
|
|
15
15
|
var r = (c) => {
|
|
16
16
|
try {
|
|
17
17
|
i(n.next(c));
|
|
18
18
|
} catch (u) {
|
|
19
|
-
|
|
19
|
+
l(u);
|
|
20
20
|
}
|
|
21
21
|
}, p = (c) => {
|
|
22
22
|
try {
|
|
23
23
|
i(n.throw(c));
|
|
24
24
|
} catch (u) {
|
|
25
|
-
|
|
25
|
+
l(u);
|
|
26
26
|
}
|
|
27
|
-
}, i = (c) => c.done ?
|
|
27
|
+
}, i = (c) => c.done ? a(c.value) : Promise.resolve(c.value).then(r, p);
|
|
28
28
|
i((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
31
|
-
import { defineComponent as M, mergeModels as
|
|
32
|
-
import { debounce as
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import { useDisplay as
|
|
37
|
-
import { format as
|
|
38
|
-
import { AccessibilityHelp as
|
|
39
|
-
import { VAutocomplete as
|
|
40
|
-
import { VBtn as
|
|
41
|
-
import { VCheckbox as
|
|
42
|
-
import { VChip as
|
|
43
|
-
import { VCombobox as
|
|
44
|
-
import { VColorPicker as
|
|
45
|
-
import { VConfirmEdit as
|
|
46
|
-
import { VDatePicker as
|
|
47
|
-
import { VField as
|
|
48
|
-
import { VFileInput as
|
|
49
|
-
import { VCol as
|
|
50
|
-
import { VIcon as
|
|
51
|
-
import { VImg as
|
|
52
|
-
import { VInput as
|
|
53
|
-
import { VListItem as
|
|
54
|
-
import { VMenu as
|
|
55
|
-
import { VNumberInput as
|
|
56
|
-
import { VProgressLinear as
|
|
57
|
-
import { VSelect as
|
|
58
|
-
import { VSwitch as
|
|
30
|
+
import * as Se from "vue";
|
|
31
|
+
import { defineComponent as M, mergeModels as Ee, useModel as lt, ref as E, watch as ie, onMounted as ze, markRaw as rt, onBeforeUnmount as He, createBlock as D, openBlock as V, resolveDynamicComponent as be, version as it, isRef as te, resolveComponent as $, createElementBlock as R, createCommentVNode as L, createTextVNode as st, Fragment as Ke, toDisplayString as Be, inject as ut, computed as _, h as ge, unref as o, normalizeClass as Ie, createSlots as q, withCtx as b, createVNode as B, renderSlot as re, normalizeProps as X, guardReactiveProps as G, createElementVNode as ne, renderList as ct, withModifiers as dt, mergeDefaults as Y, mergeProps as O, normalizeStyle as Xe, toRefs as Ve, withKeys as Ae, useCssVars as mt, nextTick as Ne } from "vue";
|
|
32
|
+
import { debounce as pt, isString as ee, isEmpty as fe, isObjectLike as ft, isBoolean as Fe, clone as vt, toNumber as Le, isNaN as Me, isArray as Ue, castArray as Ge, first as qe, unionBy as bt } from "lodash-es";
|
|
33
|
+
import Te from "vue-ionicon";
|
|
34
|
+
import Oe, { ValidationErrorRenderContent as ht, DisplayMode as H, Action as gt } from "@dynamicforms/vue-forms";
|
|
35
|
+
import wt from "vue-markdown-render";
|
|
36
|
+
import { useDisplay as yt } from "vuetify";
|
|
37
|
+
import { format as de, parse as kt } from "date-fns";
|
|
38
|
+
import { AccessibilityHelp as Vt, Alignment as _t, AutoImage as jt, AutoLink as Ct, Autosave as Tt, BalloonToolbar as Bt, BlockQuote as It, Bold as Pt, CloudServices as Dt, Essentials as xt, GeneralHtmlSupport as $t, Heading as St, HorizontalLine as Et, ImageBlock as At, ImageCaption as Nt, ImageInline as Ft, ImageInsertViaUrl as Lt, ImageResize as Mt, ImageStyle as Ut, ImageToolbar as Ot, ImageUpload as Rt, Indent as Wt, IndentBlock as zt, Italic as Ht, Link as Kt, List as Xt, Autoformat as Gt, MediaEmbed as qt, Paragraph as Yt, PasteFromMarkdownExperimental as Qt, PasteFromOffice as Zt, SelectAll as Jt, Style as en, Table as tn, TableCellProperties as nn, TableColumnResize as on, TableProperties as an, TableToolbar as ln, Undo as rn, TextTransformation as sn, Base64UploadAdapter as un, ClassicEditor as cn } from "ckeditor5";
|
|
39
|
+
import { VAutocomplete as dn } from "vuetify/components/VAutocomplete";
|
|
40
|
+
import { VBtn as mn } from "vuetify/components/VBtn";
|
|
41
|
+
import { VCheckbox as pn } from "vuetify/components/VCheckbox";
|
|
42
|
+
import { VChip as fn } from "vuetify/components/VChip";
|
|
43
|
+
import { VCombobox as vn } from "vuetify/components/VCombobox";
|
|
44
|
+
import { VColorPicker as bn } from "vuetify/components/VColorPicker";
|
|
45
|
+
import { VConfirmEdit as hn } from "vuetify/components/VConfirmEdit";
|
|
46
|
+
import { VDatePicker as gn } from "vuetify/components/VDatePicker";
|
|
47
|
+
import { VField as wn } from "vuetify/components/VField";
|
|
48
|
+
import { VFileInput as yn } from "vuetify/components/VFileInput";
|
|
49
|
+
import { VCol as kn, VRow as Vn } from "vuetify/components/VGrid";
|
|
50
|
+
import { VIcon as _n } from "vuetify/components/VIcon";
|
|
51
|
+
import { VImg as jn } from "vuetify/components/VImg";
|
|
52
|
+
import { VInput as Cn } from "vuetify/components/VInput";
|
|
53
|
+
import { VListItem as Tn } from "vuetify/components/VList";
|
|
54
|
+
import { VMenu as Bn } from "vuetify/components/VMenu";
|
|
55
|
+
import { VNumberInput as In } from "vuetify/components/VNumberInput";
|
|
56
|
+
import { VProgressLinear as Pn } from "vuetify/components/VProgressLinear";
|
|
57
|
+
import { VSelect as Dn } from "vuetify/components/VSelect";
|
|
58
|
+
import { VSwitch as xn } from "vuetify/components/VSwitch";
|
|
59
59
|
import { VTextarea as $n } from "vuetify/components/VTextarea";
|
|
60
|
-
import { VTextField as
|
|
61
|
-
import { VTimePicker as
|
|
60
|
+
import { VTextField as Sn } from "vuetify/components/VTextField";
|
|
61
|
+
import { VTimePicker as En } 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
|
|
@@ -72,12 +72,12 @@ new Array(256).fill("").map((e, t) => ("0" + t.toString(16)).slice(-2));
|
|
|
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
|
|
75
|
+
function An(e, t) {
|
|
76
76
|
const n = e.extraPlugins || [];
|
|
77
|
-
return
|
|
77
|
+
return F(x({}, e), {
|
|
78
78
|
extraPlugins: [
|
|
79
79
|
...n,
|
|
80
|
-
...t.filter((
|
|
80
|
+
...t.filter((a) => !n.includes(a))
|
|
81
81
|
]
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -85,39 +85,39 @@ function En(e, t) {
|
|
|
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
|
|
88
|
+
function Ye(e) {
|
|
89
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
|
|
95
|
+
function Qe(e) {
|
|
96
96
|
return e ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((t) => e.includes(t)) : !1;
|
|
97
97
|
}
|
|
98
98
|
function Nn(e) {
|
|
99
|
-
return
|
|
99
|
+
return Ye(e) || Qe(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
105
|
function Fn(e) {
|
|
106
|
-
if (!
|
|
106
|
+
if (!Ye(e))
|
|
107
107
|
throw new Error(`Invalid semantic version: ${e || "<blank>"}.`);
|
|
108
|
-
const [t, n,
|
|
108
|
+
const [t, n, a] = e.split(".");
|
|
109
109
|
return {
|
|
110
110
|
major: Number.parseInt(t, 10),
|
|
111
111
|
minor: Number.parseInt(n, 10),
|
|
112
|
-
patch: Number.parseInt(
|
|
112
|
+
patch: Number.parseInt(a, 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
|
|
120
|
-
if (
|
|
119
|
+
function Ln(e) {
|
|
120
|
+
if (Qe(e))
|
|
121
121
|
return 3;
|
|
122
122
|
const { major: t } = Fn(e);
|
|
123
123
|
switch (!0) {
|
|
@@ -133,7 +133,7 @@ function An(e) {
|
|
|
133
133
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
134
134
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
135
135
|
*/
|
|
136
|
-
function
|
|
136
|
+
function Mn() {
|
|
137
137
|
const { CKEDITOR_VERSION: e, CKEDITOR: t } = window;
|
|
138
138
|
return Nn(e) ? {
|
|
139
139
|
source: t ? "cdn" : "npm",
|
|
@@ -144,16 +144,16 @@ function Ln() {
|
|
|
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
|
|
148
|
-
const e =
|
|
149
|
-
return e ?
|
|
147
|
+
function Un() {
|
|
148
|
+
const e = Mn();
|
|
149
|
+
return e ? Ln(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
|
|
156
|
-
switch (t || (t =
|
|
155
|
+
function Ze(e, t) {
|
|
156
|
+
switch (t || (t = Un() || void 0), t) {
|
|
157
157
|
case 1:
|
|
158
158
|
case 2:
|
|
159
159
|
return e === void 0;
|
|
@@ -167,9 +167,9 @@ function Je(e, t) {
|
|
|
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
|
|
171
|
-
return function(
|
|
172
|
-
|
|
170
|
+
function On(e, t) {
|
|
171
|
+
return function(a) {
|
|
172
|
+
Ze(a.config.get("licenseKey")) || a.on("collectUsageData", (l, { setUsageData: r }) => {
|
|
173
173
|
r(`integration.${e}`, t);
|
|
174
174
|
});
|
|
175
175
|
};
|
|
@@ -178,31 +178,31 @@ function Un(e, t) {
|
|
|
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
|
|
181
|
+
const Rn = On(
|
|
182
182
|
"vue",
|
|
183
183
|
{
|
|
184
184
|
version: "7.3.0",
|
|
185
|
-
frameworkVersion:
|
|
185
|
+
frameworkVersion: it
|
|
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
|
|
193
|
-
return
|
|
192
|
+
function Wn(e) {
|
|
193
|
+
return Ze(e.licenseKey) ? e : An(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
|
-
|
|
199
|
+
Rn
|
|
200
200
|
]);
|
|
201
201
|
}
|
|
202
|
-
const
|
|
202
|
+
const je = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", zn = 300, Hn = /* @__PURE__ */ M({
|
|
203
203
|
name: "CKEditor",
|
|
204
204
|
__name: "ckeditor",
|
|
205
|
-
props: /* @__PURE__ */
|
|
205
|
+
props: /* @__PURE__ */ Ee({
|
|
206
206
|
editor: {},
|
|
207
207
|
config: { default: () => ({}) },
|
|
208
208
|
tagName: { default: "div" },
|
|
@@ -212,16 +212,16 @@ const Ce = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Wn = 300, zn =
|
|
|
212
212
|
modelValue: { type: String, default: "" },
|
|
213
213
|
modelModifiers: {}
|
|
214
214
|
}),
|
|
215
|
-
emits: /* @__PURE__ */
|
|
215
|
+
emits: /* @__PURE__ */ Ee(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
|
|
216
216
|
setup(e, { expose: t, emit: n }) {
|
|
217
|
-
const
|
|
217
|
+
const a = lt(e, "modelValue"), l = e, r = n, p = E(), i = E(), c = E();
|
|
218
218
|
t({
|
|
219
219
|
instance: i,
|
|
220
220
|
lastEditorData: c
|
|
221
|
-
}),
|
|
221
|
+
}), ie(a, (s) => {
|
|
222
222
|
i.value && s !== c.value && i.value.data.set(s);
|
|
223
|
-
}),
|
|
224
|
-
s ? i.value.enableReadOnlyMode(
|
|
223
|
+
}), ie(() => l.disabled, (s) => {
|
|
224
|
+
s ? i.value.enableReadOnlyMode(je) : i.value.disableReadOnlyMode(je);
|
|
225
225
|
});
|
|
226
226
|
function u() {
|
|
227
227
|
const s = window.CKEDITOR_VERSION;
|
|
@@ -231,30 +231,30 @@ const Ce = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Wn = 300, zn =
|
|
|
231
231
|
m >= 42 || s.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
232
232
|
}
|
|
233
233
|
function j(s) {
|
|
234
|
-
const m =
|
|
235
|
-
if (
|
|
234
|
+
const m = pt((v) => {
|
|
235
|
+
if (l.disableTwoWayDataBinding)
|
|
236
236
|
return;
|
|
237
|
-
const
|
|
238
|
-
r("update:modelValue",
|
|
239
|
-
},
|
|
240
|
-
s.model.document.on("change:data", m), s.editing.view.document.on("focus", (
|
|
241
|
-
r("focus",
|
|
242
|
-
}), s.editing.view.document.on("blur", (
|
|
243
|
-
r("blur",
|
|
237
|
+
const h = c.value = s.data.get();
|
|
238
|
+
r("update:modelValue", h, v, s), r("input", h, v, s);
|
|
239
|
+
}, zn, { leading: !0 });
|
|
240
|
+
s.model.document.on("change:data", m), s.editing.view.document.on("focus", (v) => {
|
|
241
|
+
r("focus", v, s);
|
|
242
|
+
}), s.editing.view.document.on("blur", (v) => {
|
|
243
|
+
r("blur", v, s);
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
|
-
return u(),
|
|
247
|
-
const s =
|
|
248
|
-
Object.assign({},
|
|
246
|
+
return u(), ze(() => {
|
|
247
|
+
const s = Wn(
|
|
248
|
+
Object.assign({}, l.config)
|
|
249
249
|
);
|
|
250
|
-
|
|
251
|
-
i.value =
|
|
250
|
+
a.value && (s.initialData = a.value), l.editor.create(p.value, s).then((m) => {
|
|
251
|
+
i.value = rt(m), j(m), a.value !== s.initialData && m.data.set(a.value), l.disabled && m.enableReadOnlyMode(je), r("ready", m);
|
|
252
252
|
}).catch((m) => {
|
|
253
253
|
console.error(m);
|
|
254
254
|
});
|
|
255
|
-
}),
|
|
255
|
+
}), He(() => {
|
|
256
256
|
i.value && (i.value.destroy(), i.value = void 0), r("destroy");
|
|
257
|
-
}), (s, m) => (
|
|
257
|
+
}), (s, m) => (V(), D(be(s.tagName), {
|
|
258
258
|
ref_key: "element",
|
|
259
259
|
ref: p
|
|
260
260
|
}, null, 512));
|
|
@@ -265,49 +265,49 @@ const Ce = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Wn = 300, zn =
|
|
|
265
265
|
* For licensing, see LICENSE.md.
|
|
266
266
|
*/
|
|
267
267
|
/* istanbul ignore if -- @preserve */
|
|
268
|
-
if (!
|
|
268
|
+
if (!Se.version || !Se.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
|
|
272
|
+
const Kn = {
|
|
273
273
|
/**
|
|
274
274
|
* Installs the plugin, registering the `<ckeditor>` component.
|
|
275
275
|
*
|
|
276
276
|
* @param app The application instance.
|
|
277
277
|
*/
|
|
278
278
|
install(e) {
|
|
279
|
-
e.component("Ckeditor",
|
|
279
|
+
e.component("Ckeditor", Hn);
|
|
280
280
|
}
|
|
281
281
|
};
|
|
282
|
-
function
|
|
282
|
+
function Ce(e) {
|
|
283
283
|
return (t = {}) => {
|
|
284
284
|
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
285
285
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function me(e) {
|
|
289
289
|
return (t, n) => {
|
|
290
|
-
const
|
|
291
|
-
let
|
|
292
|
-
if (
|
|
290
|
+
const a = n != null && n.context ? String(n.context) : "standalone";
|
|
291
|
+
let l;
|
|
292
|
+
if (a === "formatting" && e.formattingValues) {
|
|
293
293
|
const p = e.defaultFormattingWidth || e.defaultWidth, i = n != null && n.width ? String(n.width) : p;
|
|
294
|
-
|
|
294
|
+
l = e.formattingValues[i] || e.formattingValues[p];
|
|
295
295
|
} else {
|
|
296
296
|
const p = e.defaultWidth, i = n != null && n.width ? String(n.width) : e.defaultWidth;
|
|
297
|
-
|
|
297
|
+
l = e.values[i] || e.values[p];
|
|
298
298
|
}
|
|
299
299
|
const r = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
300
|
-
return
|
|
300
|
+
return l[r];
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function pe(e) {
|
|
304
304
|
return (t, n = {}) => {
|
|
305
|
-
const
|
|
305
|
+
const a = n.width, l = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth], r = t.match(l);
|
|
306
306
|
if (!r)
|
|
307
307
|
return null;
|
|
308
|
-
const p = r[0], i =
|
|
308
|
+
const p = r[0], i = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(i) ? Gn(i, (s) => s.test(p)) : (
|
|
309
309
|
// [TODO] -- I challenge you to fix the type
|
|
310
|
-
|
|
310
|
+
Xn(i, (s) => s.test(p))
|
|
311
311
|
);
|
|
312
312
|
let u;
|
|
313
313
|
u = e.valueCallback ? e.valueCallback(c) : c, u = n.valueCallback ? (
|
|
@@ -318,32 +318,32 @@ function ve(e) {
|
|
|
318
318
|
return { value: u, rest: j };
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function Xn(e, t) {
|
|
322
322
|
for (const n in e)
|
|
323
323
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
324
324
|
return n;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function Gn(e, t) {
|
|
327
327
|
for (let n = 0; n < e.length; n++)
|
|
328
328
|
if (t(e[n]))
|
|
329
329
|
return n;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function qn(e) {
|
|
332
332
|
return (t, n = {}) => {
|
|
333
|
-
const
|
|
334
|
-
if (!
|
|
335
|
-
const
|
|
333
|
+
const a = t.match(e.matchPattern);
|
|
334
|
+
if (!a) return null;
|
|
335
|
+
const l = a[0], r = t.match(e.parsePattern);
|
|
336
336
|
if (!r) return null;
|
|
337
337
|
let p = e.valueCallback ? e.valueCallback(r[0]) : r[0];
|
|
338
338
|
p = n.valueCallback ? n.valueCallback(p) : p;
|
|
339
|
-
const i = t.slice(
|
|
339
|
+
const i = t.slice(l.length);
|
|
340
340
|
return { value: p, rest: i };
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Yn(e) {
|
|
344
344
|
return e.one !== void 0;
|
|
345
345
|
}
|
|
346
|
-
const
|
|
346
|
+
const Qn = {
|
|
347
347
|
lessThanXSeconds: {
|
|
348
348
|
present: {
|
|
349
349
|
one: "manj kot {{count}} sekunda",
|
|
@@ -620,7 +620,7 @@ const Yn = {
|
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
};
|
|
623
|
-
function
|
|
623
|
+
function Zn(e) {
|
|
624
624
|
switch (e % 100) {
|
|
625
625
|
case 1:
|
|
626
626
|
return "one";
|
|
@@ -633,46 +633,46 @@ function Qn(e) {
|
|
|
633
633
|
return "other";
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
|
-
const
|
|
637
|
-
let
|
|
638
|
-
n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (
|
|
639
|
-
const r =
|
|
636
|
+
const Jn = (e, t, n) => {
|
|
637
|
+
let a = "", l = "present";
|
|
638
|
+
n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (l = "future", a = "čez ") : (l = "past", a = "pred "));
|
|
639
|
+
const r = Qn[e];
|
|
640
640
|
if (typeof r == "string")
|
|
641
|
-
|
|
641
|
+
a += r;
|
|
642
642
|
else {
|
|
643
|
-
const p =
|
|
644
|
-
|
|
643
|
+
const p = Zn(t);
|
|
644
|
+
Yn(r) ? a += r[p].replace("{{count}}", String(t)) : a += r[l][p].replace("{{count}}", String(t));
|
|
645
645
|
}
|
|
646
|
-
return
|
|
647
|
-
},
|
|
646
|
+
return a;
|
|
647
|
+
}, eo = {
|
|
648
648
|
full: "EEEE, dd. MMMM y",
|
|
649
649
|
long: "dd. MMMM y",
|
|
650
650
|
medium: "d. MMM y",
|
|
651
651
|
short: "d. MM. yy"
|
|
652
|
-
},
|
|
652
|
+
}, to = {
|
|
653
653
|
full: "HH:mm:ss zzzz",
|
|
654
654
|
long: "HH:mm:ss z",
|
|
655
655
|
medium: "HH:mm:ss",
|
|
656
656
|
short: "HH:mm"
|
|
657
|
-
},
|
|
657
|
+
}, no = {
|
|
658
658
|
full: "{{date}} {{time}}",
|
|
659
659
|
long: "{{date}} {{time}}",
|
|
660
660
|
medium: "{{date}} {{time}}",
|
|
661
661
|
short: "{{date}} {{time}}"
|
|
662
|
-
},
|
|
663
|
-
date:
|
|
664
|
-
formats: Jn,
|
|
665
|
-
defaultWidth: "full"
|
|
666
|
-
}),
|
|
667
|
-
time: Te({
|
|
662
|
+
}, oo = {
|
|
663
|
+
date: Ce({
|
|
668
664
|
formats: eo,
|
|
669
665
|
defaultWidth: "full"
|
|
670
666
|
}),
|
|
671
|
-
|
|
667
|
+
time: Ce({
|
|
672
668
|
formats: to,
|
|
673
669
|
defaultWidth: "full"
|
|
670
|
+
}),
|
|
671
|
+
dateTime: Ce({
|
|
672
|
+
formats: no,
|
|
673
|
+
defaultWidth: "full"
|
|
674
674
|
})
|
|
675
|
-
},
|
|
675
|
+
}, ao = {
|
|
676
676
|
lastWeek: (e) => {
|
|
677
677
|
switch (e.getDay()) {
|
|
678
678
|
case 0:
|
|
@@ -701,18 +701,18 @@ const Zn = (e, t, n) => {
|
|
|
701
701
|
}
|
|
702
702
|
},
|
|
703
703
|
other: "P"
|
|
704
|
-
}, lo = (e, t, n,
|
|
705
|
-
const
|
|
706
|
-
return typeof
|
|
707
|
-
},
|
|
704
|
+
}, lo = (e, t, n, a) => {
|
|
705
|
+
const l = ao[e];
|
|
706
|
+
return typeof l == "function" ? l(t) : l;
|
|
707
|
+
}, ro = {
|
|
708
708
|
narrow: ["pr. n. št.", "po n. št."],
|
|
709
709
|
abbreviated: ["pr. n. št.", "po n. št."],
|
|
710
710
|
wide: ["pred našim štetjem", "po našem štetju"]
|
|
711
|
-
},
|
|
711
|
+
}, io = {
|
|
712
712
|
narrow: ["1", "2", "3", "4"],
|
|
713
713
|
abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."],
|
|
714
714
|
wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"]
|
|
715
|
-
},
|
|
715
|
+
}, so = {
|
|
716
716
|
narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
|
717
717
|
abbreviated: [
|
|
718
718
|
"jan.",
|
|
@@ -742,7 +742,7 @@ const Zn = (e, t, n) => {
|
|
|
742
742
|
"november",
|
|
743
743
|
"december"
|
|
744
744
|
]
|
|
745
|
-
},
|
|
745
|
+
}, uo = {
|
|
746
746
|
narrow: ["n", "p", "t", "s", "č", "p", "s"],
|
|
747
747
|
short: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
|
748
748
|
abbreviated: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
|
@@ -755,7 +755,7 @@ const Zn = (e, t, n) => {
|
|
|
755
755
|
"petek",
|
|
756
756
|
"sobota"
|
|
757
757
|
]
|
|
758
|
-
},
|
|
758
|
+
}, co = {
|
|
759
759
|
narrow: {
|
|
760
760
|
am: "d",
|
|
761
761
|
pm: "p",
|
|
@@ -786,7 +786,7 @@ const Zn = (e, t, n) => {
|
|
|
786
786
|
evening: "večer",
|
|
787
787
|
night: "noč"
|
|
788
788
|
}
|
|
789
|
-
},
|
|
789
|
+
}, mo = {
|
|
790
790
|
narrow: {
|
|
791
791
|
am: "d",
|
|
792
792
|
pm: "p",
|
|
@@ -817,47 +817,47 @@ const Zn = (e, t, n) => {
|
|
|
817
817
|
evening: "zvečer",
|
|
818
818
|
night: "ponoči"
|
|
819
819
|
}
|
|
820
|
-
},
|
|
821
|
-
ordinalNumber:
|
|
822
|
-
era:
|
|
823
|
-
values:
|
|
820
|
+
}, po = (e, t) => Number(e) + ".", fo = {
|
|
821
|
+
ordinalNumber: po,
|
|
822
|
+
era: me({
|
|
823
|
+
values: ro,
|
|
824
824
|
defaultWidth: "wide"
|
|
825
825
|
}),
|
|
826
|
-
quarter:
|
|
827
|
-
values:
|
|
826
|
+
quarter: me({
|
|
827
|
+
values: io,
|
|
828
828
|
defaultWidth: "wide",
|
|
829
829
|
argumentCallback: (e) => e - 1
|
|
830
830
|
}),
|
|
831
|
-
month:
|
|
832
|
-
values: io,
|
|
833
|
-
defaultWidth: "wide"
|
|
834
|
-
}),
|
|
835
|
-
day: fe({
|
|
831
|
+
month: me({
|
|
836
832
|
values: so,
|
|
837
833
|
defaultWidth: "wide"
|
|
838
834
|
}),
|
|
839
|
-
|
|
835
|
+
day: me({
|
|
840
836
|
values: uo,
|
|
837
|
+
defaultWidth: "wide"
|
|
838
|
+
}),
|
|
839
|
+
dayPeriod: me({
|
|
840
|
+
values: co,
|
|
841
841
|
defaultWidth: "wide",
|
|
842
|
-
formattingValues:
|
|
842
|
+
formattingValues: mo,
|
|
843
843
|
defaultFormattingWidth: "wide"
|
|
844
844
|
})
|
|
845
|
-
},
|
|
845
|
+
}, vo = /^(\d+)\./i, bo = /\d+/i, ho = {
|
|
846
846
|
abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
|
|
847
847
|
wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
|
|
848
|
-
}, ho = {
|
|
849
|
-
any: [/^pr/i, /^(po|na[sš]em)/i]
|
|
850
848
|
}, go = {
|
|
849
|
+
any: [/^pr/i, /^(po|na[sš]em)/i]
|
|
850
|
+
}, wo = {
|
|
851
851
|
narrow: /^[1234]/i,
|
|
852
852
|
abbreviated: /^[1234]\.\s?[čc]et\.?/i,
|
|
853
853
|
wide: /^[1234]\. [čc]etrtletje/i
|
|
854
|
-
}, wo = {
|
|
855
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
856
854
|
}, yo = {
|
|
855
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
856
|
+
}, ko = {
|
|
857
857
|
narrow: /^[jfmasond]/i,
|
|
858
858
|
abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,
|
|
859
859
|
wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i
|
|
860
|
-
},
|
|
860
|
+
}, Vo = {
|
|
861
861
|
narrow: [
|
|
862
862
|
/^j/i,
|
|
863
863
|
/^f/i,
|
|
@@ -900,18 +900,18 @@ const Zn = (e, t, n) => {
|
|
|
900
900
|
/^n/i,
|
|
901
901
|
/^d/i
|
|
902
902
|
]
|
|
903
|
-
},
|
|
903
|
+
}, _o = {
|
|
904
904
|
narrow: /^[nptsčc]/i,
|
|
905
905
|
short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
906
906
|
abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
907
907
|
wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i
|
|
908
|
-
},
|
|
908
|
+
}, jo = {
|
|
909
909
|
narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i],
|
|
910
910
|
any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i]
|
|
911
|
-
},
|
|
911
|
+
}, Co = {
|
|
912
912
|
narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
|
|
913
913
|
any: /^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i
|
|
914
|
-
},
|
|
914
|
+
}, To = {
|
|
915
915
|
narrow: {
|
|
916
916
|
am: /^d/i,
|
|
917
917
|
pm: /^p/i,
|
|
@@ -932,60 +932,60 @@ const Zn = (e, t, n) => {
|
|
|
932
932
|
evening: /^z?ve/i,
|
|
933
933
|
night: /(po)?no/i
|
|
934
934
|
}
|
|
935
|
-
},
|
|
936
|
-
ordinalNumber:
|
|
937
|
-
matchPattern:
|
|
938
|
-
parsePattern:
|
|
935
|
+
}, Bo = {
|
|
936
|
+
ordinalNumber: qn({
|
|
937
|
+
matchPattern: vo,
|
|
938
|
+
parsePattern: bo,
|
|
939
939
|
valueCallback: (e) => parseInt(e, 10)
|
|
940
940
|
}),
|
|
941
|
-
era:
|
|
942
|
-
matchPatterns:
|
|
941
|
+
era: pe({
|
|
942
|
+
matchPatterns: ho,
|
|
943
943
|
defaultMatchWidth: "wide",
|
|
944
|
-
parsePatterns:
|
|
944
|
+
parsePatterns: go,
|
|
945
945
|
defaultParseWidth: "any"
|
|
946
946
|
}),
|
|
947
|
-
quarter:
|
|
948
|
-
matchPatterns:
|
|
947
|
+
quarter: pe({
|
|
948
|
+
matchPatterns: wo,
|
|
949
949
|
defaultMatchWidth: "wide",
|
|
950
|
-
parsePatterns:
|
|
950
|
+
parsePatterns: yo,
|
|
951
951
|
defaultParseWidth: "any",
|
|
952
952
|
valueCallback: (e) => e + 1
|
|
953
953
|
}),
|
|
954
|
-
month:
|
|
955
|
-
matchPatterns:
|
|
954
|
+
month: pe({
|
|
955
|
+
matchPatterns: ko,
|
|
956
956
|
defaultMatchWidth: "wide",
|
|
957
|
-
parsePatterns:
|
|
957
|
+
parsePatterns: Vo,
|
|
958
958
|
defaultParseWidth: "wide"
|
|
959
959
|
}),
|
|
960
|
-
day:
|
|
961
|
-
matchPatterns:
|
|
960
|
+
day: pe({
|
|
961
|
+
matchPatterns: _o,
|
|
962
962
|
defaultMatchWidth: "wide",
|
|
963
|
-
parsePatterns:
|
|
963
|
+
parsePatterns: jo,
|
|
964
964
|
defaultParseWidth: "any"
|
|
965
965
|
}),
|
|
966
|
-
dayPeriod:
|
|
967
|
-
matchPatterns:
|
|
966
|
+
dayPeriod: pe({
|
|
967
|
+
matchPatterns: Co,
|
|
968
968
|
defaultMatchWidth: "any",
|
|
969
|
-
parsePatterns:
|
|
969
|
+
parsePatterns: To,
|
|
970
970
|
defaultParseWidth: "any"
|
|
971
971
|
})
|
|
972
|
-
},
|
|
972
|
+
}, Io = {
|
|
973
973
|
code: "sl",
|
|
974
|
-
formatDistance:
|
|
975
|
-
formatLong:
|
|
974
|
+
formatDistance: Jn,
|
|
975
|
+
formatLong: oo,
|
|
976
976
|
formatRelative: lo,
|
|
977
|
-
localize:
|
|
978
|
-
match:
|
|
977
|
+
localize: fo,
|
|
978
|
+
match: Bo,
|
|
979
979
|
options: {
|
|
980
980
|
weekStartsOn: 1,
|
|
981
981
|
firstWeekContainsDate: 1
|
|
982
982
|
}
|
|
983
|
-
},
|
|
984
|
-
dateTimeLocale: E(
|
|
983
|
+
}, Po = {
|
|
984
|
+
dateTimeLocale: E(Io),
|
|
985
985
|
setDateTimeLocale(e) {
|
|
986
986
|
te(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
|
|
987
987
|
}
|
|
988
|
-
},
|
|
988
|
+
}, Do = { class: "label" }, xo = /* @__PURE__ */ M({
|
|
989
989
|
__name: "df-label",
|
|
990
990
|
props: {
|
|
991
991
|
data: {},
|
|
@@ -993,58 +993,58 @@ const Zn = (e, t, n) => {
|
|
|
993
993
|
},
|
|
994
994
|
setup(e) {
|
|
995
995
|
return (t, n) => {
|
|
996
|
-
const
|
|
997
|
-
return
|
|
998
|
-
t.label.icon ? (
|
|
999
|
-
t.label.iconComponent === "v-icon" ? (
|
|
996
|
+
const a = $("v-icon"), l = $("v-img");
|
|
997
|
+
return V(), R("div", Do, [
|
|
998
|
+
t.label.icon ? (V(), R(Ke, { key: 0 }, [
|
|
999
|
+
t.label.iconComponent === "v-icon" ? (V(), D(a, {
|
|
1000
1000
|
key: 0,
|
|
1001
1001
|
icon: t.label.icon,
|
|
1002
1002
|
size: "1.25em"
|
|
1003
|
-
}, null, 8, ["icon"])) : t.label.iconComponent === "v-img" ? (
|
|
1003
|
+
}, null, 8, ["icon"])) : t.label.iconComponent === "v-img" ? (V(), D(l, {
|
|
1004
1004
|
key: 1,
|
|
1005
1005
|
class: "icon",
|
|
1006
1006
|
src: t.label.icon
|
|
1007
|
-
}, null, 8, ["src"])) : (
|
|
1007
|
+
}, null, 8, ["src"])) : (V(), D(be(t.label.iconComponent), {
|
|
1008
1008
|
key: 2,
|
|
1009
1009
|
src: t.label.icon
|
|
1010
1010
|
}, null, 8, ["src"]))
|
|
1011
1011
|
], 64)) : L("", !0),
|
|
1012
|
-
|
|
1012
|
+
st(" " + Be(t.data ? t.data.label : t.label.text), 1)
|
|
1013
1013
|
]);
|
|
1014
1014
|
};
|
|
1015
1015
|
}
|
|
1016
|
-
}),
|
|
1016
|
+
}), se = (e, t) => {
|
|
1017
1017
|
const n = e.__vccOpts || e;
|
|
1018
|
-
for (const [
|
|
1019
|
-
n[
|
|
1018
|
+
for (const [a, l] of t)
|
|
1019
|
+
n[a] = l;
|
|
1020
1020
|
return n;
|
|
1021
|
-
}, oe = /* @__PURE__ */
|
|
1021
|
+
}, oe = /* @__PURE__ */ se(xo, [["__scopeId", "data-v-0034f29f"]]), Je = Symbol("vuetifyInputsSettingsKey");
|
|
1022
1022
|
class $o {
|
|
1023
|
-
constructor(t, n,
|
|
1024
|
-
this.text = t, this.icon = n, this.iconComponent =
|
|
1023
|
+
constructor(t, n, a = "v-icon") {
|
|
1024
|
+
this.text = t, this.icon = n, this.iconComponent = a;
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
1027
|
const Q = { enabled: void 0, clearable: !0 };
|
|
1028
1028
|
function K(e, t) {
|
|
1029
|
-
const n = ut(
|
|
1029
|
+
const n = ut(Je, {}), a = E(null), l = _({
|
|
1030
1030
|
get() {
|
|
1031
|
-
return e.control ? e.control.value : e.modelValue === void 0 ?
|
|
1031
|
+
return e.control ? e.control.value : e.modelValue === void 0 ? a.value : e.modelValue;
|
|
1032
1032
|
},
|
|
1033
|
-
set(
|
|
1034
|
-
e.control && (e.control.value =
|
|
1033
|
+
set(y) {
|
|
1034
|
+
e.control && (e.control.value = y), e.modelValue === void 0 && (a.value = y), t("update:modelValue", y);
|
|
1035
1035
|
}
|
|
1036
1036
|
});
|
|
1037
|
-
if (e.control && !(e.control instanceof
|
|
1037
|
+
if (e.control && !(e.control instanceof Oe.FieldBase))
|
|
1038
1038
|
throw new Error("control prop is not a vue-form control instance");
|
|
1039
1039
|
const r = E(!1), p = _(() => e.control ? e.control.valid : !0), i = _(
|
|
1040
|
-
() => e.control ? e.control.errors : (e.errors || []).map((
|
|
1040
|
+
() => e.control ? e.control.errors : (e.errors || []).map((y) => new ht(y))
|
|
1041
1041
|
), c = _(() => r.value && i.value.length > 0 ? " " : void 0), u = _(() => e.control ? e.control.enabled : e.enabled !== !1), j = _(
|
|
1042
|
-
() => e.control ? e.control.visibility : e.visibility ||
|
|
1042
|
+
() => e.control ? e.control.visibility : e.visibility || Oe.DisplayMode.FULL
|
|
1043
1043
|
), s = _(
|
|
1044
1044
|
() => ee(e.label || "") ? new $o(e.label || "") : e.label
|
|
1045
|
-
), m = _(() => e.placeholder || ""),
|
|
1045
|
+
), m = _(() => e.placeholder || ""), v = _(() => e.helpText || ""), h = _(() => e.hint || ""), g = _(() => e.cssClass || "");
|
|
1046
1046
|
return {
|
|
1047
|
-
value:
|
|
1047
|
+
value: l,
|
|
1048
1048
|
valid: p,
|
|
1049
1049
|
enabled: u,
|
|
1050
1050
|
errors: i,
|
|
@@ -1052,12 +1052,12 @@ function K(e, t) {
|
|
|
1052
1052
|
label: s,
|
|
1053
1053
|
touched: r,
|
|
1054
1054
|
vuetifyBindings: _(() => {
|
|
1055
|
-
var
|
|
1056
|
-
return {
|
|
1057
|
-
name: (
|
|
1058
|
-
class:
|
|
1055
|
+
var y, w;
|
|
1056
|
+
return x({
|
|
1057
|
+
name: (y = e.control) == null ? void 0 : y.fieldName,
|
|
1058
|
+
class: g.value,
|
|
1059
1059
|
density: "default",
|
|
1060
|
-
variant: (
|
|
1060
|
+
variant: (w = n.defaultVariant) != null ? w : "underlined",
|
|
1061
1061
|
label: s.value.text,
|
|
1062
1062
|
messages: c.value,
|
|
1063
1063
|
errorMessages: c.value,
|
|
@@ -1065,51 +1065,50 @@ function K(e, t) {
|
|
|
1065
1065
|
readonly: !u.value,
|
|
1066
1066
|
disabled: !u.value,
|
|
1067
1067
|
placeholder: m.value,
|
|
1068
|
-
"persistent-placeholder": !
|
|
1069
|
-
hint:
|
|
1068
|
+
"persistent-placeholder": !fe(m.value),
|
|
1069
|
+
hint: h.value,
|
|
1070
1070
|
persistentHint: !0,
|
|
1071
1071
|
// we want persistent hint always
|
|
1072
1072
|
hideDetails: "auto",
|
|
1073
1073
|
// we want to hide the hint element when hint isn't there
|
|
1074
|
-
helpText:
|
|
1075
|
-
};
|
|
1074
|
+
helpText: v.value
|
|
1075
|
+
}, e.passthroughAttrs || {});
|
|
1076
1076
|
})
|
|
1077
1077
|
};
|
|
1078
1078
|
}
|
|
1079
|
-
const
|
|
1080
|
-
key: 0,
|
|
1081
|
-
class: "custom-error-display text-error"
|
|
1082
|
-
}, So = { key: 0 }, Eo = { key: 1 }, No = /* @__PURE__ */ M({
|
|
1079
|
+
const ae = /* @__PURE__ */ M({
|
|
1083
1080
|
__name: "messages-widget",
|
|
1084
1081
|
props: {
|
|
1085
1082
|
errors: {},
|
|
1086
|
-
message: {}
|
|
1083
|
+
message: {},
|
|
1084
|
+
classes: { default: "text-error" }
|
|
1087
1085
|
},
|
|
1088
1086
|
setup(e) {
|
|
1089
|
-
|
|
1090
|
-
(
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
}),
|
|
1110
|
-
|
|
1087
|
+
const t = e, n = () => {
|
|
1088
|
+
if (t.message !== " ") return ge("span", { class: t.classes }, t.message);
|
|
1089
|
+
const a = [];
|
|
1090
|
+
return t.errors.forEach((l) => {
|
|
1091
|
+
switch (l.componentName) {
|
|
1092
|
+
case "template":
|
|
1093
|
+
a.push(ge("div", { class: t.classes }, l.componentBody));
|
|
1094
|
+
break;
|
|
1095
|
+
case "vue-markdown":
|
|
1096
|
+
a.push(ge(
|
|
1097
|
+
wt,
|
|
1098
|
+
{ class: [t.classes, "df-messages-widget-markdown"], source: l.componentBindings.source }
|
|
1099
|
+
));
|
|
1100
|
+
break;
|
|
1101
|
+
default:
|
|
1102
|
+
a.push(
|
|
1103
|
+
ge(l.componentName, F(x({ class: t.classes }, l.componentBindings), { innerHTML: l.componentBody }))
|
|
1104
|
+
);
|
|
1105
|
+
break;
|
|
1106
|
+
}
|
|
1107
|
+
}), a;
|
|
1108
|
+
};
|
|
1109
|
+
return (a, l) => (V(), D(n));
|
|
1111
1110
|
}
|
|
1112
|
-
}),
|
|
1111
|
+
}), So = { class: "d-flex w-100 style-resetting" }, Eo = /* @__PURE__ */ M({
|
|
1113
1112
|
__name: "input-base",
|
|
1114
1113
|
props: {
|
|
1115
1114
|
control: {},
|
|
@@ -1123,39 +1122,40 @@ const xo = {
|
|
|
1123
1122
|
visibility: {},
|
|
1124
1123
|
cssClass: {},
|
|
1125
1124
|
clearable: { type: Boolean },
|
|
1125
|
+
passthroughAttrs: {},
|
|
1126
1126
|
loading: { type: Boolean }
|
|
1127
1127
|
},
|
|
1128
1128
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
1129
1129
|
setup(e, { emit: t }) {
|
|
1130
|
-
const n = e,
|
|
1131
|
-
function m(
|
|
1132
|
-
s.value =
|
|
1130
|
+
const n = e, a = t, { errors: l, label: r, value: p, touched: i, visibility: c, vuetifyBindings: u } = K(n, a), j = _(() => !!(o(n.clearable) && o(p))), s = E(!1);
|
|
1131
|
+
function m(v) {
|
|
1132
|
+
s.value = v, v || (i.value = !0, a("blur"));
|
|
1133
1133
|
}
|
|
1134
|
-
return (
|
|
1135
|
-
const
|
|
1136
|
-
return o(c) !== o(
|
|
1134
|
+
return (v, h) => {
|
|
1135
|
+
const g = $("v-field"), y = $("v-input");
|
|
1136
|
+
return o(c) !== o(H).SUPPRESS ? (V(), D(y, {
|
|
1137
1137
|
key: 0,
|
|
1138
1138
|
name: o(u).name,
|
|
1139
1139
|
hint: o(u).hint,
|
|
1140
1140
|
"persistent-hint": o(u).persistentHint,
|
|
1141
1141
|
"hide-details": o(u).hideDetails,
|
|
1142
1142
|
"error-messages": o(u).errorMessages,
|
|
1143
|
-
class:
|
|
1144
|
-
|
|
1143
|
+
class: Ie([
|
|
1144
|
+
v.cssClass,
|
|
1145
1145
|
{
|
|
1146
|
-
"d-none": o(c) === o(
|
|
1147
|
-
invisible: o(c) === o(
|
|
1146
|
+
"d-none": o(c) === o(H).HIDDEN,
|
|
1147
|
+
invisible: o(c) === o(H).INVISIBLE
|
|
1148
1148
|
}
|
|
1149
1149
|
])
|
|
1150
1150
|
}, q({
|
|
1151
|
-
message:
|
|
1152
|
-
B(
|
|
1153
|
-
message:
|
|
1154
|
-
errors: o(
|
|
1151
|
+
message: b(({ message: w }) => [
|
|
1152
|
+
B(ae, {
|
|
1153
|
+
message: w,
|
|
1154
|
+
errors: o(l)
|
|
1155
1155
|
}, null, 8, ["message", "errors"])
|
|
1156
1156
|
]),
|
|
1157
|
-
default:
|
|
1158
|
-
B(
|
|
1157
|
+
default: b(() => [
|
|
1158
|
+
B(g, {
|
|
1159
1159
|
variant: o(u).variant,
|
|
1160
1160
|
label: o(u).label,
|
|
1161
1161
|
disabled: o(u).disabled,
|
|
@@ -1163,34 +1163,34 @@ const xo = {
|
|
|
1163
1163
|
"persistent-clear": !0,
|
|
1164
1164
|
dirty: !!o(p),
|
|
1165
1165
|
active: s.value,
|
|
1166
|
-
loading:
|
|
1167
|
-
"onClick:clear":
|
|
1168
|
-
"onUpdate:focused":
|
|
1166
|
+
loading: v.loading,
|
|
1167
|
+
"onClick:clear": h[0] || (h[0] = (w) => a("click:clear")),
|
|
1168
|
+
"onUpdate:focused": h[1] || (h[1] = (w) => m(w))
|
|
1169
1169
|
}, q({
|
|
1170
|
-
default:
|
|
1171
|
-
ne("div",
|
|
1172
|
-
|
|
1170
|
+
default: b((w) => [
|
|
1171
|
+
ne("div", So, [
|
|
1172
|
+
re(v.$slots, "default", X(G(w)), void 0, !0)
|
|
1173
1173
|
])
|
|
1174
1174
|
]),
|
|
1175
|
-
loader:
|
|
1176
|
-
|
|
1175
|
+
loader: b((w) => [
|
|
1176
|
+
re(v.$slots, "loader", X(G(w)), void 0, !0)
|
|
1177
1177
|
]),
|
|
1178
1178
|
_: 2
|
|
1179
1179
|
}, [
|
|
1180
1180
|
o(r).icon ? {
|
|
1181
1181
|
name: "label",
|
|
1182
|
-
fn:
|
|
1182
|
+
fn: b((w) => [
|
|
1183
1183
|
B(oe, {
|
|
1184
|
-
data:
|
|
1184
|
+
data: w,
|
|
1185
1185
|
label: o(r)
|
|
1186
1186
|
}, null, 8, ["data", "label"])
|
|
1187
1187
|
]),
|
|
1188
1188
|
key: "0"
|
|
1189
1189
|
} : void 0,
|
|
1190
|
-
|
|
1190
|
+
v.$slots["prepend-inner"] ? {
|
|
1191
1191
|
name: "prepend-inner",
|
|
1192
|
-
fn:
|
|
1193
|
-
|
|
1192
|
+
fn: b((w) => [
|
|
1193
|
+
re(v.$slots, "prepend-inner", X(G(w)), void 0, !0)
|
|
1194
1194
|
]),
|
|
1195
1195
|
key: "1"
|
|
1196
1196
|
} : void 0
|
|
@@ -1198,94 +1198,94 @@ const xo = {
|
|
|
1198
1198
|
]),
|
|
1199
1199
|
_: 2
|
|
1200
1200
|
}, [
|
|
1201
|
-
|
|
1201
|
+
v.$slots.prepend ? {
|
|
1202
1202
|
name: "prepend",
|
|
1203
|
-
fn:
|
|
1204
|
-
|
|
1203
|
+
fn: b((w) => [
|
|
1204
|
+
re(v.$slots, "prepend", X(G(w)), void 0, !0)
|
|
1205
1205
|
]),
|
|
1206
1206
|
key: "0"
|
|
1207
1207
|
} : void 0
|
|
1208
1208
|
]), 1032, ["name", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : L("", !0);
|
|
1209
1209
|
};
|
|
1210
1210
|
}
|
|
1211
|
-
}),
|
|
1211
|
+
}), Pe = /* @__PURE__ */ se(Eo, [["__scopeId", "data-v-7ba7207d"]]), ve = {
|
|
1212
1212
|
Yes: "Yes",
|
|
1213
1213
|
No: "No",
|
|
1214
1214
|
Close: "Close"
|
|
1215
1215
|
};
|
|
1216
|
-
function
|
|
1217
|
-
Object.keys(
|
|
1218
|
-
|
|
1216
|
+
function za(e) {
|
|
1217
|
+
Object.keys(ve).forEach((t) => {
|
|
1218
|
+
ve[t] = e(t);
|
|
1219
1219
|
});
|
|
1220
1220
|
}
|
|
1221
|
-
var
|
|
1222
|
-
const
|
|
1221
|
+
var W = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(W || {});
|
|
1222
|
+
const Re = 0;
|
|
1223
1223
|
((e) => {
|
|
1224
|
-
function t(
|
|
1225
|
-
return
|
|
1224
|
+
function t(l) {
|
|
1225
|
+
return l.toUpperCase() === "BUTTON" ? 0 : l.toUpperCase() === "TEXT" ? 1 : Re;
|
|
1226
1226
|
}
|
|
1227
1227
|
e.fromString = t;
|
|
1228
|
-
function n(
|
|
1229
|
-
const r = typeof
|
|
1230
|
-
return Object.values(e).includes(r) ? r :
|
|
1228
|
+
function n(l) {
|
|
1229
|
+
const r = typeof l == "number" ? l : e.fromString(l);
|
|
1230
|
+
return Object.values(e).includes(r) ? r : Re;
|
|
1231
1231
|
}
|
|
1232
1232
|
e.fromAny = n;
|
|
1233
|
-
function l
|
|
1234
|
-
const r = typeof
|
|
1233
|
+
function a(l) {
|
|
1234
|
+
const r = typeof l == "number" ? l : e.fromString(l);
|
|
1235
1235
|
return Object.values(e).includes(r);
|
|
1236
1236
|
}
|
|
1237
|
-
e.isDefined =
|
|
1238
|
-
})(
|
|
1239
|
-
Object.freeze(
|
|
1240
|
-
const
|
|
1241
|
-
class
|
|
1237
|
+
e.isDefined = a;
|
|
1238
|
+
})(W || (W = {}));
|
|
1239
|
+
Object.freeze(W);
|
|
1240
|
+
const We = ["xs", "sm", "md", "lg", "xl"];
|
|
1241
|
+
class Ao {
|
|
1242
1242
|
constructor(t) {
|
|
1243
|
-
|
|
1244
|
-
this._value = this.cleanBreakpoint(t, !0), t &&
|
|
1245
|
-
const
|
|
1246
|
-
|
|
1243
|
+
$e(this, "_value");
|
|
1244
|
+
this._value = this.cleanBreakpoint(t, !0), t && We.forEach((n) => {
|
|
1245
|
+
const a = this.cleanBreakpoint(t[n]);
|
|
1246
|
+
a && (this._value[n] = a);
|
|
1247
1247
|
});
|
|
1248
1248
|
}
|
|
1249
1249
|
getOptionsForBreakpoint(t) {
|
|
1250
|
-
const n = this.cleanBreakpoint(this._value),
|
|
1251
|
-
for (const
|
|
1252
|
-
const r = this._value[
|
|
1253
|
-
for (const p of
|
|
1250
|
+
const n = this.cleanBreakpoint(this._value), a = Object.keys(n);
|
|
1251
|
+
for (const l of We) {
|
|
1252
|
+
const r = this._value[l];
|
|
1253
|
+
for (const p of a)
|
|
1254
1254
|
(r == null ? void 0 : r[p]) != null && (n[p] = r[p]);
|
|
1255
|
-
if (
|
|
1255
|
+
if (l === t) break;
|
|
1256
1256
|
}
|
|
1257
1257
|
return n;
|
|
1258
1258
|
}
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1260
|
+
function No(e) {
|
|
1261
1261
|
return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1264
|
-
const e =
|
|
1265
|
-
return _(() =>
|
|
1263
|
+
function Fo() {
|
|
1264
|
+
const e = yt();
|
|
1265
|
+
return _(() => No(e));
|
|
1266
1266
|
}
|
|
1267
|
-
class
|
|
1267
|
+
class Lo extends Ao {
|
|
1268
1268
|
// eslint-disable-next-line class-methods-use-this
|
|
1269
1269
|
cleanBreakpoint(t, n = !1) {
|
|
1270
|
-
if ((!t || !
|
|
1271
|
-
const
|
|
1272
|
-
return n && (
|
|
1270
|
+
if ((!t || !ft(t)) && !n) return null;
|
|
1271
|
+
const a = {};
|
|
1272
|
+
return n && (a.renderAs = W.BUTTON, a.showLabel = !0, a.showIcon = !0), t && (t.renderAs != null && (a.renderAs = W.fromAny(t.renderAs)), ee(t.label) && (a.label = t.label), ee(t.icon) && (a.icon = t.icon), Fe(t.showLabel) && (a.showLabel = t.showLabel), Fe(t.showIcon) && (a.showIcon = t.showIcon)), Object.keys(a).length ? a : null;
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
|
-
class
|
|
1275
|
+
class ye extends gt {
|
|
1276
1276
|
static create(t) {
|
|
1277
1277
|
return super.create(t);
|
|
1278
1278
|
}
|
|
1279
1279
|
getBreakpointValue(t) {
|
|
1280
1280
|
return _(() => {
|
|
1281
|
-
const
|
|
1281
|
+
const a = new Lo(this.value).getOptionsForBreakpoint(t.value);
|
|
1282
1282
|
return {
|
|
1283
|
-
name:
|
|
1284
|
-
label:
|
|
1285
|
-
icon:
|
|
1286
|
-
renderAs:
|
|
1287
|
-
showLabel: ee(
|
|
1288
|
-
showIcon: ee(
|
|
1283
|
+
name: a.name,
|
|
1284
|
+
label: a.showLabel ? a.label : void 0,
|
|
1285
|
+
icon: a.showIcon ? a.icon : void 0,
|
|
1286
|
+
renderAs: a.renderAs,
|
|
1287
|
+
showLabel: ee(a.label) && !fe(a.label) ? a.showLabel : !1,
|
|
1288
|
+
showIcon: ee(a.icon) && !fe(a.icon) ? a.showIcon : !1
|
|
1289
1289
|
};
|
|
1290
1290
|
});
|
|
1291
1291
|
}
|
|
@@ -1296,67 +1296,67 @@ class ke extends ht {
|
|
|
1296
1296
|
return this.value.showLabel ? this.value.label : void 0;
|
|
1297
1297
|
}
|
|
1298
1298
|
get showLabel() {
|
|
1299
|
-
return ee(this.value.label) && !
|
|
1299
|
+
return ee(this.value.label) && !fe(this.value.label) ? this.value.showLabel : !1;
|
|
1300
1300
|
}
|
|
1301
1301
|
get icon() {
|
|
1302
1302
|
return this.value.showIcon ? this.value.icon : void 0;
|
|
1303
1303
|
}
|
|
1304
1304
|
get showIcon() {
|
|
1305
|
-
return ee(this.value.icon) && !
|
|
1305
|
+
return ee(this.value.icon) && !fe(this.value.icon) ? this.value.showIcon : !1;
|
|
1306
1306
|
}
|
|
1307
1307
|
get renderAs() {
|
|
1308
1308
|
return this.value.renderAs;
|
|
1309
1309
|
}
|
|
1310
1310
|
static closeAction(t) {
|
|
1311
|
-
var
|
|
1312
|
-
const n =
|
|
1311
|
+
var a;
|
|
1312
|
+
const n = F(x({}, t != null ? t : {}), {
|
|
1313
1313
|
// any properties in data should overwrite properties in the constant
|
|
1314
1314
|
value: {
|
|
1315
1315
|
name: "close",
|
|
1316
|
-
label:
|
|
1316
|
+
label: ve.Close,
|
|
1317
1317
|
icon: "close-outline",
|
|
1318
|
-
renderAs:
|
|
1318
|
+
renderAs: W.BUTTON,
|
|
1319
1319
|
showLabel: !0,
|
|
1320
1320
|
showIcon: !0
|
|
1321
1321
|
}
|
|
1322
1322
|
});
|
|
1323
|
-
return n.value = x(x({}, n.value), (
|
|
1323
|
+
return n.value = x(x({}, n.value), (a = t == null ? void 0 : t.value) != null ? a : {}), ye.create(n);
|
|
1324
1324
|
}
|
|
1325
1325
|
static yesAction(t) {
|
|
1326
|
-
var
|
|
1327
|
-
const n =
|
|
1326
|
+
var a;
|
|
1327
|
+
const n = F(x({}, t != null ? t : {}), {
|
|
1328
1328
|
// any properties in data should overwrite properties in the constant
|
|
1329
1329
|
value: {
|
|
1330
1330
|
name: "yes",
|
|
1331
|
-
label:
|
|
1331
|
+
label: ve.Yes,
|
|
1332
1332
|
icon: "thumbs-up-outline",
|
|
1333
|
-
renderAs:
|
|
1333
|
+
renderAs: W.BUTTON,
|
|
1334
1334
|
showLabel: !0,
|
|
1335
1335
|
showIcon: !0
|
|
1336
1336
|
}
|
|
1337
1337
|
});
|
|
1338
|
-
return n.value = x(x({}, n.value), (
|
|
1338
|
+
return n.value = x(x({}, n.value), (a = t == null ? void 0 : t.value) != null ? a : {}), ye.create(n);
|
|
1339
1339
|
}
|
|
1340
1340
|
static noAction(t) {
|
|
1341
|
-
var
|
|
1342
|
-
const n =
|
|
1341
|
+
var a;
|
|
1342
|
+
const n = F(x({}, t != null ? t : {}), {
|
|
1343
1343
|
// any properties in data should overwrite properties in the constant
|
|
1344
1344
|
value: {
|
|
1345
1345
|
name: "no",
|
|
1346
|
-
label:
|
|
1346
|
+
label: ve.No,
|
|
1347
1347
|
icon: "thumbs-down-outline",
|
|
1348
|
-
renderAs:
|
|
1348
|
+
renderAs: W.BUTTON,
|
|
1349
1349
|
showLabel: !0,
|
|
1350
1350
|
showIcon: !0
|
|
1351
1351
|
}
|
|
1352
1352
|
});
|
|
1353
|
-
return n.value = x(x({}, n.value), (
|
|
1353
|
+
return n.value = x(x({}, n.value), (a = t == null ? void 0 : t.value) != null ? a : {}), ye.create(n);
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
|
-
const
|
|
1356
|
+
const Mo = {
|
|
1357
1357
|
key: 1,
|
|
1358
1358
|
style: { width: ".5rem" }
|
|
1359
|
-
},
|
|
1359
|
+
}, Uo = { key: 2 }, Oo = /* @__PURE__ */ M({
|
|
1360
1360
|
__name: "df-actions",
|
|
1361
1361
|
props: {
|
|
1362
1362
|
actions: {},
|
|
@@ -1364,40 +1364,40 @@ const Ro = {
|
|
|
1364
1364
|
showAsGroup: { default: "no" }
|
|
1365
1365
|
},
|
|
1366
1366
|
setup(e) {
|
|
1367
|
-
const t = e, n =
|
|
1367
|
+
const t = e, n = Fo(), a = _(() => o(t.actions)), l = _(() => a.value.map((r) => x({
|
|
1368
1368
|
action: r
|
|
1369
1369
|
}, o(r.getBreakpointValue(n)))));
|
|
1370
1370
|
return (r, p) => {
|
|
1371
1371
|
const i = $("v-btn");
|
|
1372
|
-
return
|
|
1372
|
+
return a.value.length > 0 ? (V(), R("div", {
|
|
1373
1373
|
key: 0,
|
|
1374
|
-
class:
|
|
1374
|
+
class: Ie(["text-end", {
|
|
1375
1375
|
"button-group": r.showAsGroup === "grouped" || r.showAsGroup === "grouped-no-borders",
|
|
1376
1376
|
"with-border": r.showAsGroup === "grouped"
|
|
1377
1377
|
}])
|
|
1378
1378
|
}, [
|
|
1379
|
-
(
|
|
1379
|
+
(V(!0), R(Ke, null, ct(l.value, (c, u) => (V(), D(i, {
|
|
1380
1380
|
key: u,
|
|
1381
|
-
variant: c.renderAs === o(
|
|
1381
|
+
variant: c.renderAs === o(W).BUTTON ? "tonal" : "text",
|
|
1382
1382
|
elevation: 0,
|
|
1383
1383
|
size: r.buttonSize,
|
|
1384
|
-
onClick:
|
|
1384
|
+
onClick: dt((j) => c.action.execute(j), ["stop"])
|
|
1385
1385
|
}, {
|
|
1386
|
-
default:
|
|
1387
|
-
c.icon ? (
|
|
1386
|
+
default: b(() => [
|
|
1387
|
+
c.icon ? (V(), D(o(Te), {
|
|
1388
1388
|
key: 0,
|
|
1389
1389
|
class: "action-icon",
|
|
1390
1390
|
name: c.icon
|
|
1391
1391
|
}, null, 8, ["name"])) : L("", !0),
|
|
1392
|
-
c.icon && c.label ? (
|
|
1393
|
-
c.label ? (
|
|
1392
|
+
c.icon && c.label ? (V(), R("span", Mo)) : L("", !0),
|
|
1393
|
+
c.label ? (V(), R("span", Uo, Be(c.label), 1)) : L("", !0)
|
|
1394
1394
|
]),
|
|
1395
1395
|
_: 2
|
|
1396
1396
|
}, 1032, ["variant", "size", "onClick"]))), 128))
|
|
1397
1397
|
], 2)) : L("", !0);
|
|
1398
1398
|
};
|
|
1399
1399
|
}
|
|
1400
|
-
}),
|
|
1400
|
+
}), Ro = /* @__PURE__ */ se(Oo, [["__scopeId", "data-v-7f811834"]]), Wo = /* @__PURE__ */ M({
|
|
1401
1401
|
__name: "df-checkbox",
|
|
1402
1402
|
props: /* @__PURE__ */ Y({
|
|
1403
1403
|
allowNull: { type: Boolean },
|
|
@@ -1411,11 +1411,12 @@ const Ro = {
|
|
|
1411
1411
|
enabled: { type: Boolean },
|
|
1412
1412
|
visibility: {},
|
|
1413
1413
|
cssClass: {},
|
|
1414
|
-
clearable: { type: Boolean }
|
|
1415
|
-
|
|
1414
|
+
clearable: { type: Boolean },
|
|
1415
|
+
passthroughAttrs: {}
|
|
1416
|
+
}, F(x({}, Q), { allowNull: !1 })),
|
|
1416
1417
|
emits: ["update:modelValue", "click:clear"],
|
|
1417
1418
|
setup(e, { emit: t }) {
|
|
1418
|
-
const n = e,
|
|
1419
|
+
const n = e, a = t, { errors: l, label: r, touched: p, value: i, vuetifyBindings: c } = K(n, a), u = _(() => n.allowNull && i.value == null), j = _({
|
|
1419
1420
|
get() {
|
|
1420
1421
|
return i.value;
|
|
1421
1422
|
},
|
|
@@ -1423,35 +1424,35 @@ const Ro = {
|
|
|
1423
1424
|
}
|
|
1424
1425
|
});
|
|
1425
1426
|
function s() {
|
|
1426
|
-
const m =
|
|
1427
|
+
const m = vt(i.value);
|
|
1427
1428
|
m === !0 ? i.value = n.allowNull ? null : !1 : i.value = m === !1;
|
|
1428
1429
|
}
|
|
1429
|
-
return (m,
|
|
1430
|
-
const
|
|
1431
|
-
return
|
|
1430
|
+
return (m, v) => {
|
|
1431
|
+
const h = $("v-checkbox");
|
|
1432
|
+
return V(), D(h, O({
|
|
1432
1433
|
modelValue: j.value,
|
|
1433
|
-
"onUpdate:modelValue":
|
|
1434
|
+
"onUpdate:modelValue": v[0] || (v[0] = (g) => j.value = g)
|
|
1434
1435
|
}, o(c), {
|
|
1435
1436
|
density: "compact",
|
|
1436
1437
|
indeterminate: u.value,
|
|
1437
1438
|
"false-value": !1,
|
|
1438
1439
|
"true-value": !0,
|
|
1439
1440
|
onChange: s,
|
|
1440
|
-
onBlur:
|
|
1441
|
+
onBlur: v[1] || (v[1] = (g) => p.value = !0)
|
|
1441
1442
|
}), q({
|
|
1442
|
-
message:
|
|
1443
|
-
B(o(
|
|
1444
|
-
message:
|
|
1445
|
-
errors: o(
|
|
1443
|
+
message: b(({ message: g }) => [
|
|
1444
|
+
B(o(ae), {
|
|
1445
|
+
message: g,
|
|
1446
|
+
errors: o(l)
|
|
1446
1447
|
}, null, 8, ["message", "errors"])
|
|
1447
1448
|
]),
|
|
1448
1449
|
_: 2
|
|
1449
1450
|
}, [
|
|
1450
1451
|
o(r).icon ? {
|
|
1451
1452
|
name: "label",
|
|
1452
|
-
fn:
|
|
1453
|
+
fn: b((g) => [
|
|
1453
1454
|
B(o(oe), {
|
|
1454
|
-
data:
|
|
1455
|
+
data: g,
|
|
1455
1456
|
label: o(r)
|
|
1456
1457
|
}, null, 8, ["data", "label"])
|
|
1457
1458
|
]),
|
|
@@ -1460,7 +1461,7 @@ const Ro = {
|
|
|
1460
1461
|
]), 1040, ["modelValue", "indeterminate"]);
|
|
1461
1462
|
};
|
|
1462
1463
|
}
|
|
1463
|
-
}),
|
|
1464
|
+
}), zo = /* @__PURE__ */ M({
|
|
1464
1465
|
__name: "df-color",
|
|
1465
1466
|
props: /* @__PURE__ */ Y({
|
|
1466
1467
|
allowNull: { type: Boolean },
|
|
@@ -1474,46 +1475,47 @@ const Ro = {
|
|
|
1474
1475
|
enabled: { type: Boolean },
|
|
1475
1476
|
visibility: {},
|
|
1476
1477
|
cssClass: {},
|
|
1477
|
-
clearable: { type: Boolean }
|
|
1478
|
-
|
|
1478
|
+
clearable: { type: Boolean },
|
|
1479
|
+
passthroughAttrs: {}
|
|
1480
|
+
}, F(x({}, Q), { allowNull: !1 })),
|
|
1479
1481
|
emits: ["update:modelValue", "click:clear"],
|
|
1480
1482
|
setup(e, { emit: t }) {
|
|
1481
|
-
const n = e,
|
|
1483
|
+
const n = e, a = t, { errors: l, label: r, touched: p, value: i, vuetifyBindings: c } = K(n, a), u = E(!1), j = _(() => [
|
|
1482
1484
|
(s) => n.control || !s && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(s) ? !0 : "Not a valid hex string."
|
|
1483
1485
|
]);
|
|
1484
1486
|
return (s, m) => {
|
|
1485
|
-
const
|
|
1486
|
-
return
|
|
1487
|
+
const v = $("v-color-picker"), h = $("v-menu"), g = $("v-text-field");
|
|
1488
|
+
return V(), D(g, O({
|
|
1487
1489
|
modelValue: o(i),
|
|
1488
|
-
"onUpdate:modelValue": m[2] || (m[2] = (
|
|
1490
|
+
"onUpdate:modelValue": m[2] || (m[2] = (y) => te(i) ? i.value = y : null)
|
|
1489
1491
|
}, o(c), {
|
|
1490
1492
|
clearable: s.allowNull,
|
|
1491
1493
|
type: "text",
|
|
1492
1494
|
rules: j.value,
|
|
1493
|
-
onBlur: m[3] || (m[3] = (
|
|
1495
|
+
onBlur: m[3] || (m[3] = (y) => p.value = !0)
|
|
1494
1496
|
}), q({
|
|
1495
|
-
message:
|
|
1496
|
-
B(o(
|
|
1497
|
-
message:
|
|
1498
|
-
errors: o(
|
|
1497
|
+
message: b(({ message: y }) => [
|
|
1498
|
+
B(o(ae), {
|
|
1499
|
+
message: y,
|
|
1500
|
+
errors: o(l)
|
|
1499
1501
|
}, null, 8, ["message", "errors"])
|
|
1500
1502
|
]),
|
|
1501
|
-
"prepend-inner":
|
|
1503
|
+
"prepend-inner": b(() => [
|
|
1502
1504
|
ne("div", {
|
|
1503
|
-
style:
|
|
1505
|
+
style: Xe([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: o(i) }])
|
|
1504
1506
|
}, null, 4)
|
|
1505
1507
|
]),
|
|
1506
|
-
default:
|
|
1507
|
-
B(
|
|
1508
|
+
default: b(() => [
|
|
1509
|
+
B(h, {
|
|
1508
1510
|
modelValue: u.value,
|
|
1509
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
1511
|
+
"onUpdate:modelValue": m[1] || (m[1] = (y) => u.value = y),
|
|
1510
1512
|
"close-on-content-click": !1,
|
|
1511
1513
|
activator: "parent"
|
|
1512
1514
|
}, {
|
|
1513
|
-
default:
|
|
1514
|
-
B(
|
|
1515
|
+
default: b(() => [
|
|
1516
|
+
B(v, {
|
|
1515
1517
|
modelValue: o(i),
|
|
1516
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
1518
|
+
"onUpdate:modelValue": m[0] || (m[0] = (y) => te(i) ? i.value = y : null),
|
|
1517
1519
|
mode: "hexa"
|
|
1518
1520
|
}, null, 8, ["modelValue"])
|
|
1519
1521
|
]),
|
|
@@ -1524,9 +1526,9 @@ const Ro = {
|
|
|
1524
1526
|
}, [
|
|
1525
1527
|
o(r).icon ? {
|
|
1526
1528
|
name: "label",
|
|
1527
|
-
fn:
|
|
1529
|
+
fn: b((y) => [
|
|
1528
1530
|
B(o(oe), {
|
|
1529
|
-
data:
|
|
1531
|
+
data: y,
|
|
1530
1532
|
label: o(r)
|
|
1531
1533
|
}, null, 8, ["data", "label"])
|
|
1532
1534
|
]),
|
|
@@ -1535,7 +1537,7 @@ const Ro = {
|
|
|
1535
1537
|
]), 1040, ["modelValue", "clearable", "rules"]);
|
|
1536
1538
|
};
|
|
1537
1539
|
}
|
|
1538
|
-
}),
|
|
1540
|
+
}), Ho = { class: "d-flex w-100 pt-5 pl-2 pb-1" }, Ko = /* @__PURE__ */ M({
|
|
1539
1541
|
__name: "df-datetime",
|
|
1540
1542
|
props: /* @__PURE__ */ Y({
|
|
1541
1543
|
inputType: {},
|
|
@@ -1552,109 +1554,110 @@ const Ro = {
|
|
|
1552
1554
|
enabled: { type: Boolean },
|
|
1553
1555
|
visibility: {},
|
|
1554
1556
|
cssClass: {},
|
|
1555
|
-
clearable: { type: Boolean }
|
|
1556
|
-
|
|
1557
|
+
clearable: { type: Boolean },
|
|
1558
|
+
passthroughAttrs: {}
|
|
1559
|
+
}, F(x({}, Q), {
|
|
1557
1560
|
inputType: "datetime",
|
|
1558
1561
|
displayFormatDate: "P",
|
|
1559
1562
|
displayFormatTime: "p"
|
|
1560
1563
|
})),
|
|
1561
1564
|
emits: ["update:modelValue", "click:clear"],
|
|
1562
1565
|
setup(e, { emit: t }) {
|
|
1563
|
-
const n = e,
|
|
1566
|
+
const n = e, a = t, l = _(() => {
|
|
1564
1567
|
var f;
|
|
1565
|
-
return (f = n.locale) != null ? f : o(
|
|
1568
|
+
return (f = n.locale) != null ? f : o(Po.dateTimeLocale);
|
|
1566
1569
|
}), r = _(() => {
|
|
1567
1570
|
var f, d;
|
|
1568
|
-
return (d = (f =
|
|
1569
|
-
}), { touched: p, value: i, vuetifyBindings: c } = K(n,
|
|
1571
|
+
return (d = (f = l.value.options) == null ? void 0 : f.weekStartsOn) != null ? d : 1;
|
|
1572
|
+
}), { touched: p, value: i, vuetifyBindings: c } = K(n, a), { inputType: u, displayFormatDate: j, displayFormatTime: s } = Ve(n), m = E(""), v = _({
|
|
1570
1573
|
get() {
|
|
1571
1574
|
return o(m) === "date";
|
|
1572
1575
|
},
|
|
1573
1576
|
set(f) {
|
|
1574
1577
|
m.value = f ? "date" : "";
|
|
1575
1578
|
}
|
|
1576
|
-
}),
|
|
1579
|
+
}), h = _({
|
|
1577
1580
|
get() {
|
|
1578
1581
|
return o(m) === "time";
|
|
1579
1582
|
},
|
|
1580
1583
|
set(f) {
|
|
1581
1584
|
m.value = f ? "time" : "";
|
|
1582
1585
|
}
|
|
1583
|
-
}),
|
|
1584
|
-
function
|
|
1586
|
+
}), g = (f) => `${de(f, "yyyy-MM-dd")}T${de(f, "HH:mm")}:00`, y = E(null);
|
|
1587
|
+
function w(f, d) {
|
|
1585
1588
|
if (f == null)
|
|
1586
|
-
|
|
1589
|
+
y.value = null;
|
|
1587
1590
|
else if (d === -1)
|
|
1588
1591
|
if (o(u) === "time")
|
|
1589
|
-
|
|
1592
|
+
y.value = g(/* @__PURE__ */ new Date()), w(`T${f}`, 1);
|
|
1590
1593
|
else {
|
|
1591
|
-
const S =
|
|
1592
|
-
|
|
1594
|
+
const S = g(new Date(f));
|
|
1595
|
+
w(S, 0), w(S, 1);
|
|
1593
1596
|
}
|
|
1594
1597
|
else {
|
|
1595
|
-
|
|
1596
|
-
const S =
|
|
1597
|
-
S[d] = U[d],
|
|
1598
|
+
y.value == null && (y.value = g(/* @__PURE__ */ new Date()));
|
|
1599
|
+
const S = y.value.split(/[TZ]/g), U = f.split(/[TZ]/g);
|
|
1600
|
+
S[d] = U[d], y.value = g(/* @__PURE__ */ new Date(`${S[0]}T${S[1].split(".")[0]}`)), o(u) === "date" ? i.value = S[0] : o(u) === "time" ? i.value = S[1] : i.value = o(y) + de(/* @__PURE__ */ new Date(), "XXX");
|
|
1598
1601
|
}
|
|
1599
1602
|
}
|
|
1600
|
-
|
|
1601
|
-
const
|
|
1603
|
+
ie(i, (f) => w(f, -1), { immediate: !0 });
|
|
1604
|
+
const N = _({
|
|
1602
1605
|
get() {
|
|
1603
|
-
const f = o(
|
|
1606
|
+
const f = o(y);
|
|
1604
1607
|
if (f == null) return null;
|
|
1605
1608
|
const d = new Date(f);
|
|
1606
1609
|
return Number.isNaN(d.getTime()) ? null : d;
|
|
1607
1610
|
},
|
|
1608
1611
|
set(f) {
|
|
1609
|
-
|
|
1612
|
+
w(g(f), 0);
|
|
1610
1613
|
}
|
|
1611
|
-
}),
|
|
1614
|
+
}), A = _({
|
|
1612
1615
|
get() {
|
|
1613
|
-
const f = o(
|
|
1616
|
+
const f = o(y);
|
|
1614
1617
|
return f == null ? "" : f.split(/[TZ]/g)[1].split(".")[0];
|
|
1615
1618
|
},
|
|
1616
1619
|
set(f) {
|
|
1617
|
-
|
|
1620
|
+
w(`T${f}`, 1);
|
|
1618
1621
|
}
|
|
1619
1622
|
}), T = _({
|
|
1620
1623
|
get() {
|
|
1621
|
-
const f = o(
|
|
1622
|
-
return f == null ? "" :
|
|
1624
|
+
const f = o(N);
|
|
1625
|
+
return f == null ? "" : de(f, o(j), { locale: l.value });
|
|
1623
1626
|
},
|
|
1624
1627
|
set(f) {
|
|
1625
1628
|
try {
|
|
1626
|
-
const d =
|
|
1627
|
-
|
|
1629
|
+
const d = kt(f, o(j), /* @__PURE__ */ new Date(), { locale: l.value });
|
|
1630
|
+
w(g(d), 0);
|
|
1628
1631
|
} catch (d) {
|
|
1629
1632
|
console.error(d);
|
|
1630
1633
|
}
|
|
1631
1634
|
}
|
|
1632
|
-
}),
|
|
1635
|
+
}), z = _({
|
|
1633
1636
|
get() {
|
|
1634
|
-
const f = o(
|
|
1635
|
-
return f == null ? "" :
|
|
1637
|
+
const f = o(N);
|
|
1638
|
+
return f == null ? "" : de(f, o(s), { locale: l.value });
|
|
1636
1639
|
},
|
|
1637
1640
|
set(f) {
|
|
1638
1641
|
const d = f.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
1639
1642
|
if (d == null) return;
|
|
1640
|
-
let S =
|
|
1641
|
-
const U =
|
|
1642
|
-
|
|
1643
|
+
let S = Le(d[1]);
|
|
1644
|
+
const U = Le(d[2]);
|
|
1645
|
+
Me(S) || Me(U) || (d[3] && d[3].toLowerCase() === "pm" && S < 13 && (S += 12), w(`T${S.toString().padStart(2, "0")}:${U.toString().padStart(2, "0")}:00`, 1));
|
|
1643
1646
|
}
|
|
1644
1647
|
});
|
|
1645
1648
|
return (f, d) => {
|
|
1646
|
-
const S = $("v-date-picker"), U = $("v-confirm-edit"),
|
|
1647
|
-
return
|
|
1649
|
+
const S = $("v-date-picker"), U = $("v-confirm-edit"), ue = $("v-menu"), ce = $("v-text-field"), C = $("v-time-picker");
|
|
1650
|
+
return V(), D(o(Pe), O(n, {
|
|
1648
1651
|
clearable: f.clearable,
|
|
1649
1652
|
"onClick:clear": d[14] || (d[14] = (I) => i.value = null),
|
|
1650
1653
|
onBlur: d[15] || (d[15] = (I) => p.value = !0)
|
|
1651
1654
|
}), {
|
|
1652
|
-
default:
|
|
1653
|
-
ne("div",
|
|
1654
|
-
["date", "datetime"].includes(o(u)) ? (
|
|
1655
|
+
default: b((I) => [
|
|
1656
|
+
ne("div", Ho, [
|
|
1657
|
+
["date", "datetime"].includes(o(u)) ? (V(), D(ce, O({
|
|
1655
1658
|
key: 0,
|
|
1656
1659
|
modelValue: T.value,
|
|
1657
|
-
"onUpdate:modelValue": d[4] || (d[4] = (
|
|
1660
|
+
"onUpdate:modelValue": d[4] || (d[4] = (k) => T.value = k),
|
|
1658
1661
|
style: { "flex-grow": "4" },
|
|
1659
1662
|
density: "compact",
|
|
1660
1663
|
variant: "plain",
|
|
@@ -1662,37 +1665,38 @@ const Ro = {
|
|
|
1662
1665
|
"hide-details": !0,
|
|
1663
1666
|
readonly: o(c).readonly,
|
|
1664
1667
|
disabled: o(c).disabled,
|
|
1665
|
-
name: `${o(c).name}-date
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1668
|
+
name: `${o(c).name}-date`
|
|
1669
|
+
}, f.passthroughAttrs, {
|
|
1670
|
+
onClick: d[5] || (d[5] = (k) => m.value = "date"),
|
|
1671
|
+
onKeydown: d[6] || (d[6] = Ae((k) => m.value = "date", ["space"])),
|
|
1672
|
+
onFocus: (k) => I.focus(),
|
|
1673
|
+
onBlur: (k) => I.blur()
|
|
1674
|
+
}), {
|
|
1675
|
+
default: b(() => [
|
|
1676
|
+
B(ue, {
|
|
1677
|
+
modelValue: v.value,
|
|
1678
|
+
"onUpdate:modelValue": d[3] || (d[3] = (k) => v.value = k),
|
|
1675
1679
|
"close-on-content-click": !1,
|
|
1676
1680
|
activator: "parent"
|
|
1677
1681
|
}, {
|
|
1678
|
-
default:
|
|
1682
|
+
default: b(() => [
|
|
1679
1683
|
B(U, {
|
|
1680
|
-
modelValue:
|
|
1681
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
1682
|
-
onCancel: d[1] || (d[1] = (
|
|
1683
|
-
onSave: d[2] || (d[2] = (
|
|
1684
|
+
modelValue: N.value,
|
|
1685
|
+
"onUpdate:modelValue": d[0] || (d[0] = (k) => N.value = k),
|
|
1686
|
+
onCancel: d[1] || (d[1] = (k) => m.value = ""),
|
|
1687
|
+
onSave: d[2] || (d[2] = (k) => m.value = "")
|
|
1684
1688
|
}, {
|
|
1685
|
-
default:
|
|
1689
|
+
default: b(({ model: k, actions: Z }) => [
|
|
1686
1690
|
B(S, {
|
|
1687
|
-
modelValue:
|
|
1688
|
-
"onUpdate:modelValue": (
|
|
1691
|
+
modelValue: k.value,
|
|
1692
|
+
"onUpdate:modelValue": (P) => k.value = P,
|
|
1689
1693
|
"hide-header": !0,
|
|
1690
1694
|
"first-day-of-week": r.value,
|
|
1691
1695
|
"show-adjacent-months": !0,
|
|
1692
1696
|
"show-week": !0
|
|
1693
1697
|
}, {
|
|
1694
|
-
actions:
|
|
1695
|
-
(
|
|
1698
|
+
actions: b(() => [
|
|
1699
|
+
(V(), D(be(Z)))
|
|
1696
1700
|
]),
|
|
1697
1701
|
_: 2
|
|
1698
1702
|
}, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
|
|
@@ -1704,11 +1708,11 @@ const Ro = {
|
|
|
1704
1708
|
}, 8, ["modelValue"])
|
|
1705
1709
|
]),
|
|
1706
1710
|
_: 2
|
|
1707
|
-
},
|
|
1708
|
-
["time", "datetime"].includes(o(u)) ? (
|
|
1711
|
+
}, 1040, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : L("", !0),
|
|
1712
|
+
["time", "datetime"].includes(o(u)) ? (V(), D(ce, O({
|
|
1709
1713
|
key: 1,
|
|
1710
|
-
modelValue:
|
|
1711
|
-
"onUpdate:modelValue": d[11] || (d[11] = (
|
|
1714
|
+
modelValue: z.value,
|
|
1715
|
+
"onUpdate:modelValue": d[11] || (d[11] = (k) => z.value = k),
|
|
1712
1716
|
style: { "flex-grow": "3" },
|
|
1713
1717
|
density: "compact",
|
|
1714
1718
|
variant: "plain",
|
|
@@ -1716,35 +1720,36 @@ const Ro = {
|
|
|
1716
1720
|
"hide-details": !0,
|
|
1717
1721
|
readonly: o(c).readonly,
|
|
1718
1722
|
disabled: o(c).disabled,
|
|
1719
|
-
name: `${o(c).name}-time
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1723
|
+
name: `${o(c).name}-time`
|
|
1724
|
+
}, f.passthroughAttrs, {
|
|
1725
|
+
onClick: d[12] || (d[12] = (k) => m.value = "time"),
|
|
1726
|
+
onKeydown: d[13] || (d[13] = Ae((k) => m.value = "time", ["space"])),
|
|
1727
|
+
onFocus: (k) => I.focus(),
|
|
1728
|
+
onBlur: (k) => I.blur()
|
|
1729
|
+
}), {
|
|
1730
|
+
default: b(() => [
|
|
1731
|
+
B(ue, {
|
|
1732
|
+
modelValue: h.value,
|
|
1733
|
+
"onUpdate:modelValue": d[10] || (d[10] = (k) => h.value = k),
|
|
1729
1734
|
"close-on-content-click": !1,
|
|
1730
1735
|
activator: "parent"
|
|
1731
1736
|
}, {
|
|
1732
|
-
default:
|
|
1737
|
+
default: b(() => [
|
|
1733
1738
|
B(U, {
|
|
1734
|
-
modelValue:
|
|
1735
|
-
"onUpdate:modelValue": d[7] || (d[7] = (
|
|
1736
|
-
onCancel: d[8] || (d[8] = (
|
|
1737
|
-
onSave: d[9] || (d[9] = (
|
|
1739
|
+
modelValue: A.value,
|
|
1740
|
+
"onUpdate:modelValue": d[7] || (d[7] = (k) => A.value = k),
|
|
1741
|
+
onCancel: d[8] || (d[8] = (k) => m.value = ""),
|
|
1742
|
+
onSave: d[9] || (d[9] = (k) => m.value = "")
|
|
1738
1743
|
}, {
|
|
1739
|
-
default:
|
|
1744
|
+
default: b(({ model: k, actions: Z }) => [
|
|
1740
1745
|
B(C, {
|
|
1741
|
-
modelValue:
|
|
1742
|
-
"onUpdate:modelValue": (
|
|
1746
|
+
modelValue: k.value,
|
|
1747
|
+
"onUpdate:modelValue": (P) => k.value = P,
|
|
1743
1748
|
"hide-header": !0,
|
|
1744
1749
|
format: "24hr"
|
|
1745
1750
|
}, {
|
|
1746
|
-
actions:
|
|
1747
|
-
(
|
|
1751
|
+
actions: b(() => [
|
|
1752
|
+
(V(), D(be(Z)))
|
|
1748
1753
|
]),
|
|
1749
1754
|
_: 2
|
|
1750
1755
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1756,17 +1761,17 @@ const Ro = {
|
|
|
1756
1761
|
}, 8, ["modelValue"])
|
|
1757
1762
|
]),
|
|
1758
1763
|
_: 2
|
|
1759
|
-
},
|
|
1764
|
+
}, 1040, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : L("", !0)
|
|
1760
1765
|
])
|
|
1761
1766
|
]),
|
|
1762
1767
|
_: 1
|
|
1763
1768
|
}, 16, ["clearable"]);
|
|
1764
1769
|
};
|
|
1765
1770
|
}
|
|
1766
|
-
}),
|
|
1771
|
+
}), Xo = {
|
|
1767
1772
|
class: "d-flex w-100 pt-5 pl-2 pb-1",
|
|
1768
1773
|
style: { position: "relative" }
|
|
1769
|
-
},
|
|
1774
|
+
}, Go = /* @__PURE__ */ M({
|
|
1770
1775
|
__name: "df-file",
|
|
1771
1776
|
props: /* @__PURE__ */ Y({
|
|
1772
1777
|
comms: {},
|
|
@@ -1780,71 +1785,69 @@ const Ro = {
|
|
|
1780
1785
|
enabled: { type: Boolean },
|
|
1781
1786
|
visibility: {},
|
|
1782
1787
|
cssClass: {},
|
|
1783
|
-
clearable: { type: Boolean }
|
|
1788
|
+
clearable: { type: Boolean },
|
|
1789
|
+
passthroughAttrs: {}
|
|
1784
1790
|
}, Q),
|
|
1785
1791
|
emits: ["update:modelValue", "click:clear"],
|
|
1786
1792
|
setup(e, { emit: t }) {
|
|
1787
|
-
const n = e,
|
|
1788
|
-
function
|
|
1793
|
+
const n = e, a = t, { touched: l, value: r, vuetifyBindings: p } = K(n, a), i = E(null), c = E(null), u = E(0), j = E(Math.round(Math.random() * 1e3)), s = E(), m = _(() => c.value && u.value < 100), v = _(() => !s.value && r.value ? n.modelValue : "");
|
|
1794
|
+
function h() {
|
|
1789
1795
|
i.value && window.clearInterval(i.value);
|
|
1790
1796
|
}
|
|
1791
|
-
function
|
|
1792
|
-
|
|
1797
|
+
function g() {
|
|
1798
|
+
h(), i.value = window.setInterval(() => {
|
|
1793
1799
|
r.value && n.comms.touch(r.value);
|
|
1794
1800
|
}, 60 * 1e3);
|
|
1795
1801
|
}
|
|
1796
|
-
|
|
1797
|
-
|
|
1802
|
+
He(() => h()), ie(r, (A) => {
|
|
1803
|
+
A ? g() : h();
|
|
1798
1804
|
});
|
|
1799
|
-
function
|
|
1800
|
-
return
|
|
1801
|
-
r.value && (yield n.comms.delete(r.value)), r.value = null, u.value = 0, j.value = Math.round(Math.random() * 1e3), c.value = null, s.value = null,
|
|
1805
|
+
function y() {
|
|
1806
|
+
return he(this, null, function* () {
|
|
1807
|
+
r.value && (yield n.comms.delete(r.value)), r.value = null, u.value = 0, j.value = Math.round(Math.random() * 1e3), c.value = null, s.value = null, h();
|
|
1802
1808
|
});
|
|
1803
1809
|
}
|
|
1804
|
-
function
|
|
1805
|
-
return
|
|
1806
|
-
u.value = -1, c.value =
|
|
1810
|
+
function w(A) {
|
|
1811
|
+
return he(this, null, function* () {
|
|
1812
|
+
u.value = -1, c.value = A;
|
|
1807
1813
|
try {
|
|
1808
1814
|
r.value = yield n.comms.upload(
|
|
1809
|
-
|
|
1810
|
-
(T,
|
|
1811
|
-
u.value = Math.round(T * 100 /
|
|
1815
|
+
A,
|
|
1816
|
+
(T, z) => {
|
|
1817
|
+
u.value = Math.round(T * 100 / z);
|
|
1812
1818
|
}
|
|
1813
|
-
), u.value = 100,
|
|
1819
|
+
), u.value = 100, g();
|
|
1814
1820
|
} catch (T) {
|
|
1815
1821
|
throw u.value = 0, c.value = null, j.value = Math.round(Math.random() * 1e3), s.value = null, T;
|
|
1816
1822
|
}
|
|
1817
1823
|
});
|
|
1818
1824
|
}
|
|
1819
|
-
function
|
|
1820
|
-
|
|
1825
|
+
function N(A) {
|
|
1826
|
+
A && (Array.isArray(A) ? console.error("Uploading multiple files not supported right now") : w(A));
|
|
1821
1827
|
}
|
|
1822
|
-
return (
|
|
1823
|
-
const
|
|
1824
|
-
return
|
|
1828
|
+
return (A, T) => {
|
|
1829
|
+
const z = $("v-icon"), f = $("v-progress-linear"), d = $("v-file-input");
|
|
1830
|
+
return V(), D(o(Pe), O(F(x({}, n), { loading: m.value }), {
|
|
1825
1831
|
clearable: "",
|
|
1826
|
-
"onClick:clear":
|
|
1827
|
-
onBlur: T[1] || (T[1] = (S) =>
|
|
1832
|
+
"onClick:clear": y,
|
|
1833
|
+
onBlur: T[1] || (T[1] = (S) => l.value = !0)
|
|
1828
1834
|
}), {
|
|
1829
|
-
"prepend-inner":
|
|
1830
|
-
B(
|
|
1835
|
+
"prepend-inner": b(() => [
|
|
1836
|
+
B(z, { icon: "$file" })
|
|
1831
1837
|
]),
|
|
1832
|
-
loader:
|
|
1833
|
-
c.value && u.value < 100 ? (
|
|
1838
|
+
loader: b(() => [
|
|
1839
|
+
c.value && u.value < 100 ? (V(), D(f, {
|
|
1834
1840
|
key: 0,
|
|
1835
1841
|
"model-value": u.value,
|
|
1836
1842
|
indeterminate: u.value === -1
|
|
1837
1843
|
}, null, 8, ["model-value", "indeterminate"])) : L("", !0)
|
|
1838
1844
|
]),
|
|
1839
|
-
default:
|
|
1840
|
-
ne("div",
|
|
1841
|
-
B(d, {
|
|
1845
|
+
default: b((S) => [
|
|
1846
|
+
ne("div", Xo, [
|
|
1847
|
+
B(d, O({
|
|
1842
1848
|
modelValue: s.value,
|
|
1843
|
-
"onUpdate:modelValue": [
|
|
1844
|
-
|
|
1845
|
-
F
|
|
1846
|
-
],
|
|
1847
|
-
label: b.value,
|
|
1849
|
+
"onUpdate:modelValue": T[0] || (T[0] = (U) => s.value = U),
|
|
1850
|
+
label: v.value,
|
|
1848
1851
|
density: "compact",
|
|
1849
1852
|
variant: "plain",
|
|
1850
1853
|
readonly: o(p).readonly,
|
|
@@ -1853,19 +1856,21 @@ const Ro = {
|
|
|
1853
1856
|
"hide-details": !0,
|
|
1854
1857
|
"show-size": !0,
|
|
1855
1858
|
multiple: !1,
|
|
1856
|
-
style:
|
|
1857
|
-
clearable: !1
|
|
1859
|
+
style: c.value && u.value < 100 ? "visibility: hidden" : "",
|
|
1860
|
+
clearable: !1
|
|
1861
|
+
}, A.passthroughAttrs, {
|
|
1858
1862
|
"prepend-icon": "",
|
|
1863
|
+
"onUpdate:modelValue": N,
|
|
1859
1864
|
onFocus: (U) => S.focus(),
|
|
1860
1865
|
onBlur: (U) => S.blur()
|
|
1861
|
-
}, null,
|
|
1866
|
+
}), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
|
|
1862
1867
|
])
|
|
1863
1868
|
]),
|
|
1864
1869
|
_: 1
|
|
1865
1870
|
}, 16);
|
|
1866
1871
|
};
|
|
1867
1872
|
}
|
|
1868
|
-
}),
|
|
1873
|
+
}), qo = { class: "container" }, Yo = /* @__PURE__ */ M({
|
|
1869
1874
|
__name: "df-input",
|
|
1870
1875
|
props: /* @__PURE__ */ Y({
|
|
1871
1876
|
inputType: {},
|
|
@@ -1883,8 +1888,9 @@ const Ro = {
|
|
|
1883
1888
|
enabled: { type: Boolean },
|
|
1884
1889
|
visibility: {},
|
|
1885
1890
|
cssClass: {},
|
|
1886
|
-
clearable: { type: Boolean }
|
|
1887
|
-
|
|
1891
|
+
clearable: { type: Boolean },
|
|
1892
|
+
passthroughAttrs: {}
|
|
1893
|
+
}, F(x({}, Q), {
|
|
1888
1894
|
inputType: "text",
|
|
1889
1895
|
precision: null,
|
|
1890
1896
|
step: void 0,
|
|
@@ -1893,29 +1899,29 @@ const Ro = {
|
|
|
1893
1899
|
})),
|
|
1894
1900
|
emits: ["update:modelValue", "click:clear"],
|
|
1895
1901
|
setup(e, { emit: t }) {
|
|
1896
|
-
const n = e,
|
|
1897
|
-
return (
|
|
1898
|
-
const
|
|
1899
|
-
return
|
|
1900
|
-
|
|
1902
|
+
const n = e, a = t, { errors: l, label: r, touched: p, value: i, vuetifyBindings: c } = K(n, a), { inputType: u, max: j, min: s, precision: m, step: v } = Ve(n), h = _(() => u.value === "number"), g = _(() => h.value ? { min: o(s), max: o(j), precision: o(m), step: o(v) } : {});
|
|
1903
|
+
return (y, w) => {
|
|
1904
|
+
const N = $("v-text-field"), A = $("v-number-input");
|
|
1905
|
+
return V(), R("div", qo, [
|
|
1906
|
+
h.value ? (V(), D(A, O({
|
|
1901
1907
|
key: 1,
|
|
1902
1908
|
modelValue: o(i),
|
|
1903
|
-
"onUpdate:modelValue":
|
|
1904
|
-
}, x(x({}, o(c)),
|
|
1909
|
+
"onUpdate:modelValue": w[2] || (w[2] = (T) => te(i) ? i.value = T : null)
|
|
1910
|
+
}, x(x({}, o(c)), g.value), {
|
|
1905
1911
|
density: "compact",
|
|
1906
1912
|
"control-variant": "stacked"
|
|
1907
1913
|
}), q({
|
|
1908
|
-
message:
|
|
1909
|
-
B(o(
|
|
1914
|
+
message: b(({ message: T }) => [
|
|
1915
|
+
B(o(ae), {
|
|
1910
1916
|
message: T,
|
|
1911
|
-
errors: o(
|
|
1917
|
+
errors: o(l)
|
|
1912
1918
|
}, null, 8, ["message", "errors"])
|
|
1913
1919
|
]),
|
|
1914
1920
|
_: 2
|
|
1915
1921
|
}, [
|
|
1916
1922
|
o(r).icon ? {
|
|
1917
1923
|
name: "label",
|
|
1918
|
-
fn:
|
|
1924
|
+
fn: b((T) => [
|
|
1919
1925
|
B(o(oe), {
|
|
1920
1926
|
data: T,
|
|
1921
1927
|
label: o(r)
|
|
@@ -1923,25 +1929,25 @@ const Ro = {
|
|
|
1923
1929
|
]),
|
|
1924
1930
|
key: "0"
|
|
1925
1931
|
} : void 0
|
|
1926
|
-
]), 1040, ["modelValue"])) : (
|
|
1932
|
+
]), 1040, ["modelValue"])) : (V(), D(N, O({
|
|
1927
1933
|
key: 0,
|
|
1928
1934
|
modelValue: o(i),
|
|
1929
|
-
"onUpdate:modelValue":
|
|
1935
|
+
"onUpdate:modelValue": w[0] || (w[0] = (T) => te(i) ? i.value = T : null)
|
|
1930
1936
|
}, o(c), {
|
|
1931
1937
|
type: o(u),
|
|
1932
|
-
onBlur:
|
|
1938
|
+
onBlur: w[1] || (w[1] = (T) => p.value = !0)
|
|
1933
1939
|
}), q({
|
|
1934
|
-
message:
|
|
1935
|
-
B(o(
|
|
1940
|
+
message: b(({ message: T }) => [
|
|
1941
|
+
B(o(ae), {
|
|
1936
1942
|
message: T,
|
|
1937
|
-
errors: o(
|
|
1943
|
+
errors: o(l)
|
|
1938
1944
|
}, null, 8, ["message", "errors"])
|
|
1939
1945
|
]),
|
|
1940
1946
|
_: 2
|
|
1941
1947
|
}, [
|
|
1942
1948
|
o(r).icon ? {
|
|
1943
1949
|
name: "label",
|
|
1944
|
-
fn:
|
|
1950
|
+
fn: b((T) => [
|
|
1945
1951
|
B(o(oe), {
|
|
1946
1952
|
data: T,
|
|
1947
1953
|
label: o(r)
|
|
@@ -1953,7 +1959,7 @@ const Ro = {
|
|
|
1953
1959
|
]);
|
|
1954
1960
|
};
|
|
1955
1961
|
}
|
|
1956
|
-
}),
|
|
1962
|
+
}), Qo = /* @__PURE__ */ se(Yo, [["__scopeId", "data-v-a3a9a978"]]), Zo = { class: "editor-container" }, Jo = { class: "editor-container__editor" }, ea = { ref: "editorElement" }, ta = /* @__PURE__ */ M({
|
|
1957
1963
|
__name: "ck-editor-custom",
|
|
1958
1964
|
props: {
|
|
1959
1965
|
modelValue: { default: "" },
|
|
@@ -1962,10 +1968,10 @@ const Ro = {
|
|
|
1962
1968
|
},
|
|
1963
1969
|
emits: ["update:modelValue"],
|
|
1964
1970
|
setup(e, { expose: t, emit: n }) {
|
|
1965
|
-
|
|
1971
|
+
mt((s) => ({
|
|
1966
1972
|
"3d4d5a06": s.minHeight
|
|
1967
1973
|
}));
|
|
1968
|
-
const
|
|
1974
|
+
const a = n, l = E(!1), r = cn, u = {
|
|
1969
1975
|
toolbar: {
|
|
1970
1976
|
items: [
|
|
1971
1977
|
"undo",
|
|
@@ -1997,7 +2003,6 @@ const Ro = {
|
|
|
1997
2003
|
shouldNotGroupWhenFull: !1
|
|
1998
2004
|
},
|
|
1999
2005
|
plugins: [
|
|
2000
|
-
kt,
|
|
2001
2006
|
Vt,
|
|
2002
2007
|
_t,
|
|
2003
2008
|
jt,
|
|
@@ -2007,13 +2012,13 @@ const Ro = {
|
|
|
2007
2012
|
It,
|
|
2008
2013
|
Pt,
|
|
2009
2014
|
Dt,
|
|
2010
|
-
$t,
|
|
2011
2015
|
xt,
|
|
2016
|
+
$t,
|
|
2012
2017
|
St,
|
|
2013
2018
|
Et,
|
|
2019
|
+
At,
|
|
2014
2020
|
Nt,
|
|
2015
2021
|
Ft,
|
|
2016
|
-
At,
|
|
2017
2022
|
Lt,
|
|
2018
2023
|
Mt,
|
|
2019
2024
|
Ut,
|
|
@@ -2034,10 +2039,11 @@ const Ro = {
|
|
|
2034
2039
|
tn,
|
|
2035
2040
|
nn,
|
|
2036
2041
|
on,
|
|
2037
|
-
ln,
|
|
2038
2042
|
an,
|
|
2043
|
+
ln,
|
|
2039
2044
|
rn,
|
|
2040
|
-
sn
|
|
2045
|
+
sn,
|
|
2046
|
+
un
|
|
2041
2047
|
],
|
|
2042
2048
|
balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
|
|
2043
2049
|
heading: {
|
|
@@ -2096,32 +2102,32 @@ const Ro = {
|
|
|
2096
2102
|
},
|
|
2097
2103
|
table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] }
|
|
2098
2104
|
};
|
|
2099
|
-
|
|
2100
|
-
|
|
2105
|
+
ze(() => {
|
|
2106
|
+
l.value = !0;
|
|
2101
2107
|
});
|
|
2102
2108
|
const j = (s) => {
|
|
2103
2109
|
};
|
|
2104
2110
|
return t({ onEditorReady: j }), (s, m) => {
|
|
2105
|
-
const
|
|
2106
|
-
return
|
|
2107
|
-
ne("div",
|
|
2108
|
-
ne("div",
|
|
2109
|
-
|
|
2111
|
+
const v = $("ckeditor");
|
|
2112
|
+
return V(), R("div", Zo, [
|
|
2113
|
+
ne("div", Jo, [
|
|
2114
|
+
ne("div", ea, [
|
|
2115
|
+
l.value ? (V(), D(v, {
|
|
2110
2116
|
key: 0,
|
|
2111
2117
|
"model-value": s.modelValue,
|
|
2112
2118
|
editor: o(r),
|
|
2113
2119
|
config: u,
|
|
2114
2120
|
disabled: s.disabled,
|
|
2115
|
-
style:
|
|
2121
|
+
style: Xe(`min-height: ${s.minHeight}`),
|
|
2116
2122
|
onReady: j,
|
|
2117
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
2123
|
+
"onUpdate:modelValue": m[0] || (m[0] = (h) => a("update:modelValue", h))
|
|
2118
2124
|
}, null, 8, ["model-value", "editor", "disabled", "style"])) : L("", !0)
|
|
2119
2125
|
], 512)
|
|
2120
2126
|
])
|
|
2121
2127
|
]);
|
|
2122
2128
|
};
|
|
2123
2129
|
}
|
|
2124
|
-
}),
|
|
2130
|
+
}), na = /* @__PURE__ */ M({
|
|
2125
2131
|
__name: "df-rtf-editor",
|
|
2126
2132
|
props: /* @__PURE__ */ Y({
|
|
2127
2133
|
minHeight: {},
|
|
@@ -2135,41 +2141,43 @@ const Ro = {
|
|
|
2135
2141
|
enabled: { type: Boolean },
|
|
2136
2142
|
visibility: {},
|
|
2137
2143
|
cssClass: {},
|
|
2138
|
-
clearable: { type: Boolean }
|
|
2139
|
-
|
|
2144
|
+
clearable: { type: Boolean },
|
|
2145
|
+
passthroughAttrs: {}
|
|
2146
|
+
}, F(x({}, Q), { minHeight: void 0 })),
|
|
2140
2147
|
emits: ["update:modelValue", "click:clear"],
|
|
2141
2148
|
setup(e, { emit: t }) {
|
|
2142
|
-
const n = e,
|
|
2143
|
-
return (p, i) => (
|
|
2144
|
-
default:
|
|
2145
|
-
B(
|
|
2149
|
+
const n = e, a = t, { value: l, vuetifyBindings: r } = K(n, a);
|
|
2150
|
+
return (p, i) => (V(), D(o(Pe), X(G(n)), {
|
|
2151
|
+
default: b((c) => [
|
|
2152
|
+
B(ta, O({
|
|
2146
2153
|
ref: "$editor",
|
|
2147
|
-
modelValue: o(
|
|
2148
|
-
"onUpdate:modelValue": i[0] || (i[0] = (u) => te(
|
|
2149
|
-
class:
|
|
2154
|
+
modelValue: o(l),
|
|
2155
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => te(l) ? l.value = u : null),
|
|
2156
|
+
class: { "mt-8": !!p.label },
|
|
2150
2157
|
"min-height": p.minHeight,
|
|
2151
|
-
disabled: o(r).disabled
|
|
2158
|
+
disabled: o(r).disabled
|
|
2159
|
+
}, p.passthroughAttrs, {
|
|
2152
2160
|
onFocusin: (u) => c.focus(),
|
|
2153
2161
|
onFocusout: (u) => c.blur()
|
|
2154
|
-
}, null,
|
|
2162
|
+
}), null, 16, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
|
|
2155
2163
|
]),
|
|
2156
2164
|
_: 1
|
|
2157
2165
|
}, 16));
|
|
2158
2166
|
}
|
|
2159
2167
|
});
|
|
2160
|
-
function
|
|
2168
|
+
function oa(e) {
|
|
2161
2169
|
return e.map((t) => ({ value: t.id, title: t.text, icon: t.icon }));
|
|
2162
2170
|
}
|
|
2163
2171
|
function J(e, t) {
|
|
2164
2172
|
var n;
|
|
2165
|
-
return e == null ||
|
|
2173
|
+
return e == null || Ue(e) && e.length === 0 ? null : t ? Ge(e) : Ue(e) ? (n = qe(e)) != null ? n : null : e;
|
|
2166
2174
|
}
|
|
2167
|
-
function
|
|
2175
|
+
function ke(e, t) {
|
|
2168
2176
|
if (t == null) return [];
|
|
2169
|
-
const n =
|
|
2170
|
-
return e.filter((
|
|
2177
|
+
const n = Ge(t);
|
|
2178
|
+
return e.filter((a) => n.some((l) => l === a.id));
|
|
2171
2179
|
}
|
|
2172
|
-
function
|
|
2180
|
+
function we(e, t, n, a, l) {
|
|
2173
2181
|
var p;
|
|
2174
2182
|
const r = J(e, n);
|
|
2175
2183
|
if (r == null) {
|
|
@@ -2177,18 +2185,18 @@ function ye(e, t, n, l, a) {
|
|
|
2177
2185
|
return;
|
|
2178
2186
|
}
|
|
2179
2187
|
if (n)
|
|
2180
|
-
|
|
2181
|
-
else if (
|
|
2188
|
+
a ? t.value = r : t.value = ke(l, r).map((i) => i.id);
|
|
2189
|
+
else if (a)
|
|
2182
2190
|
t.value = r;
|
|
2183
2191
|
else {
|
|
2184
|
-
const i =
|
|
2192
|
+
const i = qe(ke(l, r));
|
|
2185
2193
|
t.value = (p = i == null ? void 0 : i.id) != null ? p : null;
|
|
2186
2194
|
}
|
|
2187
2195
|
}
|
|
2188
|
-
const
|
|
2196
|
+
const aa = {
|
|
2189
2197
|
key: 0,
|
|
2190
2198
|
class: "me-1"
|
|
2191
|
-
},
|
|
2199
|
+
}, la = /* @__PURE__ */ M({
|
|
2192
2200
|
__name: "df-select",
|
|
2193
2201
|
props: /* @__PURE__ */ Y({
|
|
2194
2202
|
choices: {},
|
|
@@ -2206,8 +2214,9 @@ const il = {
|
|
|
2206
2214
|
enabled: { type: Boolean },
|
|
2207
2215
|
visibility: {},
|
|
2208
2216
|
cssClass: {},
|
|
2209
|
-
clearable: { type: Boolean }
|
|
2210
|
-
|
|
2217
|
+
clearable: { type: Boolean },
|
|
2218
|
+
passthroughAttrs: {}
|
|
2219
|
+
}, F(x({}, Q), {
|
|
2211
2220
|
choices: void 0,
|
|
2212
2221
|
multiple: !1,
|
|
2213
2222
|
allowTags: !1,
|
|
@@ -2216,124 +2225,124 @@ const il = {
|
|
|
2216
2225
|
})),
|
|
2217
2226
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
2218
2227
|
setup(e, { emit: t }) {
|
|
2219
|
-
const n = e, { choices:
|
|
2220
|
-
function
|
|
2221
|
-
u("update:modelValueDisplay",
|
|
2228
|
+
const n = e, { choices: a, multiple: l, allowTags: r, allowNull: p, cssClass: i, visibility: c } = Ve(n), u = t, { errors: j, label: s, touched: m, value: v, vuetifyBindings: h } = K(n, u), g = E(null), y = E(!1), w = E([]), N = _(() => o(y) ? o(w) : o(a) || []), A = E(!1), T = _(() => oa(N.value));
|
|
2229
|
+
function z(C) {
|
|
2230
|
+
u("update:modelValueDisplay", ke(N.value, C));
|
|
2222
2231
|
}
|
|
2223
2232
|
let f = !1;
|
|
2224
2233
|
function d(C) {
|
|
2225
|
-
f = !0,
|
|
2234
|
+
f = !0, v.value = C, Ne(() => {
|
|
2226
2235
|
f = !1;
|
|
2227
2236
|
});
|
|
2228
2237
|
}
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
const I = J(C,
|
|
2232
|
-
|
|
2238
|
+
ie(g, (C) => {
|
|
2239
|
+
h.value.readonly || Ne(() => {
|
|
2240
|
+
const I = J(C, l.value);
|
|
2241
|
+
z(I), d(I);
|
|
2233
2242
|
});
|
|
2234
|
-
}, { deep: !0 }),
|
|
2243
|
+
}, { deep: !0 }), ie(v, (C) => {
|
|
2235
2244
|
if (!f) {
|
|
2236
|
-
const I = J(C,
|
|
2237
|
-
|
|
2245
|
+
const I = J(C, l.value);
|
|
2246
|
+
we(I, g, l.value, !1, N.value);
|
|
2238
2247
|
}
|
|
2239
2248
|
}, { deep: !0 });
|
|
2240
2249
|
function S() {
|
|
2241
|
-
if (
|
|
2242
|
-
const C = J(
|
|
2243
|
-
|
|
2250
|
+
if (h.value.readonly || r.value) return;
|
|
2251
|
+
const C = J(g.value, l.value);
|
|
2252
|
+
we(C, g, l.value, !1, N.value), d(C);
|
|
2244
2253
|
}
|
|
2245
2254
|
function U(C) {
|
|
2246
2255
|
let I;
|
|
2247
|
-
|
|
2256
|
+
l.value && Array.isArray(g.value) ? I = J(g.value.filter((k) => k !== C), l.value) : I = null, we(I, g, l.value, !1, N.value), d(I);
|
|
2248
2257
|
}
|
|
2249
|
-
function
|
|
2250
|
-
return
|
|
2251
|
-
if (!(
|
|
2252
|
-
|
|
2258
|
+
function ue(C, I) {
|
|
2259
|
+
return he(this, null, function* () {
|
|
2260
|
+
if (!(a.value || n.fetchChoices === void 0)) {
|
|
2261
|
+
A.value = !0;
|
|
2253
2262
|
try {
|
|
2254
|
-
const
|
|
2255
|
-
|
|
2263
|
+
const k = ke(N.value, J(g.value, l.value)), Z = yield n.fetchChoices(C, I);
|
|
2264
|
+
w.value = bt([...k, ...Z], "id"), y.value = !0;
|
|
2256
2265
|
} finally {
|
|
2257
|
-
|
|
2266
|
+
A.value = !1;
|
|
2258
2267
|
}
|
|
2259
2268
|
}
|
|
2260
2269
|
});
|
|
2261
2270
|
}
|
|
2262
|
-
function
|
|
2263
|
-
let C =
|
|
2264
|
-
!p.value && C == null && T.value.length && (C = T.value[0].value), C = J(C,
|
|
2271
|
+
function ce() {
|
|
2272
|
+
let C = v.value;
|
|
2273
|
+
!p.value && C == null && T.value.length && (C = T.value[0].value), C = J(C, l.value), we(C, g, l.value, r.value, N.value), z(C), d(C);
|
|
2265
2274
|
}
|
|
2266
|
-
return
|
|
2267
|
-
|
|
2275
|
+
return ce(), n.fetchChoices !== void 0 && ue(void 0, v.value).then(() => {
|
|
2276
|
+
ce();
|
|
2268
2277
|
}), (C, I) => {
|
|
2269
|
-
const
|
|
2270
|
-
return o(c) !== o(
|
|
2278
|
+
const k = $("v-chip"), Z = $("v-list-item");
|
|
2279
|
+
return o(c) !== o(H).SUPPRESS ? (V(), D(be(o(r) ? "v-combobox" : "v-autocomplete"), O({
|
|
2271
2280
|
key: 0,
|
|
2272
|
-
modelValue:
|
|
2273
|
-
"onUpdate:modelValue": I[0] || (I[0] = (
|
|
2281
|
+
modelValue: g.value,
|
|
2282
|
+
"onUpdate:modelValue": I[0] || (I[0] = (P) => g.value = P),
|
|
2274
2283
|
class: [
|
|
2275
2284
|
o(i),
|
|
2276
2285
|
{
|
|
2277
|
-
"d-none": o(c) === o(
|
|
2278
|
-
invisible: o(c) === o(
|
|
2286
|
+
"d-none": o(c) === o(H).HIDDEN,
|
|
2287
|
+
invisible: o(c) === o(H).INVISIBLE
|
|
2279
2288
|
}
|
|
2280
2289
|
],
|
|
2281
2290
|
items: T.value,
|
|
2282
2291
|
"return-object": !1
|
|
2283
|
-
}, o(
|
|
2284
|
-
label: o(
|
|
2292
|
+
}, o(h), {
|
|
2293
|
+
label: o(h).label,
|
|
2285
2294
|
chips: "",
|
|
2286
2295
|
"auto-select-first": !0,
|
|
2287
|
-
"closable-chips": o(p) || o(
|
|
2296
|
+
"closable-chips": o(p) || o(l) && g.value.length > 1,
|
|
2288
2297
|
clearable: o(p),
|
|
2289
|
-
multiple: o(
|
|
2290
|
-
loading:
|
|
2298
|
+
multiple: o(l),
|
|
2299
|
+
loading: A.value,
|
|
2291
2300
|
"hide-selected": !1,
|
|
2292
|
-
"aria-describedby": o(
|
|
2301
|
+
"aria-describedby": o(h).helpText ? `${o(h).name}-help` : null,
|
|
2293
2302
|
"menu-props": { maxHeight: "400" },
|
|
2294
2303
|
"hide-details": "auto",
|
|
2295
|
-
"onUpdate:search": I[1] || (I[1] = (
|
|
2304
|
+
"onUpdate:search": I[1] || (I[1] = (P) => ue(P, void 0)),
|
|
2296
2305
|
"onUpdate:modelValue": S,
|
|
2297
|
-
"onClick:clear": I[2] || (I[2] = (
|
|
2298
|
-
onBlur: I[3] || (I[3] = (
|
|
2306
|
+
"onClick:clear": I[2] || (I[2] = (P) => g.value = null),
|
|
2307
|
+
onBlur: I[3] || (I[3] = (P) => m.value = !0)
|
|
2299
2308
|
}), q({
|
|
2300
|
-
chip:
|
|
2301
|
-
(
|
|
2302
|
-
key:
|
|
2309
|
+
chip: b(({ item: P }) => [
|
|
2310
|
+
(V(), D(k, {
|
|
2311
|
+
key: P.value,
|
|
2303
2312
|
label: "",
|
|
2304
2313
|
size: "small",
|
|
2305
2314
|
class: "d-flex align-middle",
|
|
2306
|
-
variant: o(
|
|
2307
|
-
closable: o(
|
|
2308
|
-
"onClick:close": (
|
|
2315
|
+
variant: o(l) ? "tonal" : "text",
|
|
2316
|
+
closable: o(l),
|
|
2317
|
+
"onClick:close": (le) => U(P.value)
|
|
2309
2318
|
}, {
|
|
2310
|
-
prepend:
|
|
2311
|
-
var
|
|
2319
|
+
prepend: b(() => {
|
|
2320
|
+
var le;
|
|
2312
2321
|
return [
|
|
2313
|
-
(
|
|
2322
|
+
(le = P.raw) != null && le.icon ? (V(), D(o(Te), {
|
|
2314
2323
|
key: 0,
|
|
2315
2324
|
class: "me-1 action-icon d-inline-block",
|
|
2316
|
-
name:
|
|
2325
|
+
name: P.raw.icon
|
|
2317
2326
|
}, null, 8, ["name"])) : L("", !0)
|
|
2318
2327
|
];
|
|
2319
2328
|
}),
|
|
2320
|
-
default:
|
|
2329
|
+
default: b(() => [
|
|
2321
2330
|
ne("span", {
|
|
2322
|
-
class:
|
|
2323
|
-
},
|
|
2331
|
+
class: Ie({ "text-body-1": !o(l) })
|
|
2332
|
+
}, Be(P.title), 3)
|
|
2324
2333
|
]),
|
|
2325
2334
|
_: 2
|
|
2326
2335
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
2327
2336
|
]),
|
|
2328
|
-
item:
|
|
2329
|
-
B(Z, X(G(
|
|
2330
|
-
prepend:
|
|
2331
|
-
var
|
|
2337
|
+
item: b(({ props: P, item: le }) => [
|
|
2338
|
+
B(Z, X(G(P)), {
|
|
2339
|
+
prepend: b(() => {
|
|
2340
|
+
var De;
|
|
2332
2341
|
return [
|
|
2333
|
-
(
|
|
2334
|
-
B(o(
|
|
2342
|
+
(De = le.raw) != null && De.icon ? (V(), R("span", aa, [
|
|
2343
|
+
B(o(Te), {
|
|
2335
2344
|
class: "action-icon d-inline-block",
|
|
2336
|
-
name:
|
|
2345
|
+
name: le.raw.icon
|
|
2337
2346
|
}, null, 8, ["name"])
|
|
2338
2347
|
])) : L("", !0)
|
|
2339
2348
|
];
|
|
@@ -2341,9 +2350,9 @@ const il = {
|
|
|
2341
2350
|
_: 2
|
|
2342
2351
|
}, 1040)
|
|
2343
2352
|
]),
|
|
2344
|
-
message:
|
|
2345
|
-
B(o(
|
|
2346
|
-
message:
|
|
2353
|
+
message: b(({ message: P }) => [
|
|
2354
|
+
B(o(ae), {
|
|
2355
|
+
message: P,
|
|
2347
2356
|
errors: o(j)
|
|
2348
2357
|
}, null, 8, ["message", "errors"])
|
|
2349
2358
|
]),
|
|
@@ -2351,9 +2360,9 @@ const il = {
|
|
|
2351
2360
|
}, [
|
|
2352
2361
|
o(s).icon ? {
|
|
2353
2362
|
name: "label",
|
|
2354
|
-
fn:
|
|
2363
|
+
fn: b((P) => [
|
|
2355
2364
|
B(o(oe), {
|
|
2356
|
-
data:
|
|
2365
|
+
data: P,
|
|
2357
2366
|
label: o(s)
|
|
2358
2367
|
}, null, 8, ["data", "label"])
|
|
2359
2368
|
]),
|
|
@@ -2361,22 +2370,22 @@ const il = {
|
|
|
2361
2370
|
} : void 0,
|
|
2362
2371
|
C.$slots["append-inner"] ? {
|
|
2363
2372
|
name: "append-inner",
|
|
2364
|
-
fn:
|
|
2365
|
-
|
|
2373
|
+
fn: b((P) => [
|
|
2374
|
+
re(C.$slots, "append-inner", X(G(P)), void 0, !0)
|
|
2366
2375
|
]),
|
|
2367
2376
|
key: "1"
|
|
2368
2377
|
} : void 0,
|
|
2369
2378
|
C.$slots["prepend-inner"] ? {
|
|
2370
2379
|
name: "prepend-inner",
|
|
2371
|
-
fn:
|
|
2372
|
-
|
|
2380
|
+
fn: b((P) => [
|
|
2381
|
+
re(C.$slots, "prepend-inner", X(G(P)), void 0, !0)
|
|
2373
2382
|
]),
|
|
2374
2383
|
key: "2"
|
|
2375
2384
|
} : void 0
|
|
2376
2385
|
]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : L("", !0);
|
|
2377
2386
|
};
|
|
2378
2387
|
}
|
|
2379
|
-
}),
|
|
2388
|
+
}), ra = /* @__PURE__ */ se(la, [["__scopeId", "data-v-928dac22"]]), ia = { class: "container" }, sa = /* @__PURE__ */ M({
|
|
2380
2389
|
__name: "df-text-area",
|
|
2381
2390
|
props: /* @__PURE__ */ Y({
|
|
2382
2391
|
rows: {},
|
|
@@ -2391,47 +2400,48 @@ const il = {
|
|
|
2391
2400
|
enabled: { type: Boolean },
|
|
2392
2401
|
visibility: {},
|
|
2393
2402
|
cssClass: {},
|
|
2394
|
-
clearable: { type: Boolean }
|
|
2395
|
-
|
|
2403
|
+
clearable: { type: Boolean },
|
|
2404
|
+
passthroughAttrs: {}
|
|
2405
|
+
}, F(x({}, Q), {
|
|
2396
2406
|
rows: void 0,
|
|
2397
2407
|
maxRows: void 0
|
|
2398
2408
|
})),
|
|
2399
2409
|
emits: ["update:modelValue", "click:clear"],
|
|
2400
2410
|
setup(e, { emit: t }) {
|
|
2401
|
-
const n = e,
|
|
2411
|
+
const n = e, a = t, { errors: l, label: r, touched: p, value: i, vuetifyBindings: c } = K(n, a), { cssClass: u, visibility: j } = Ve(n);
|
|
2402
2412
|
return (s, m) => {
|
|
2403
|
-
const
|
|
2404
|
-
return
|
|
2405
|
-
o(j) !== o(
|
|
2413
|
+
const v = $("v-textarea");
|
|
2414
|
+
return V(), R("div", ia, [
|
|
2415
|
+
o(j) !== o(H).SUPPRESS ? (V(), D(v, O({
|
|
2406
2416
|
key: 0,
|
|
2407
2417
|
modelValue: o(i),
|
|
2408
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
2418
|
+
"onUpdate:modelValue": m[0] || (m[0] = (h) => te(i) ? i.value = h : null),
|
|
2409
2419
|
class: [
|
|
2410
2420
|
o(u),
|
|
2411
2421
|
{
|
|
2412
|
-
"d-none": o(j) === o(
|
|
2413
|
-
invisible: o(j) === o(
|
|
2422
|
+
"d-none": o(j) === o(H).HIDDEN,
|
|
2423
|
+
invisible: o(j) === o(H).INVISIBLE
|
|
2414
2424
|
}
|
|
2415
2425
|
],
|
|
2416
2426
|
rows: s.rows,
|
|
2417
2427
|
"auto-grow": (s.maxRows || 0) > 0,
|
|
2418
2428
|
"max-rows": s.maxRows
|
|
2419
2429
|
}, o(c), {
|
|
2420
|
-
onBlur: m[1] || (m[1] = (
|
|
2430
|
+
onBlur: m[1] || (m[1] = (h) => p.value = !0)
|
|
2421
2431
|
}), q({
|
|
2422
|
-
message:
|
|
2423
|
-
B(o(
|
|
2424
|
-
message:
|
|
2425
|
-
errors: o(
|
|
2432
|
+
message: b(({ message: h }) => [
|
|
2433
|
+
B(o(ae), {
|
|
2434
|
+
message: h,
|
|
2435
|
+
errors: o(l)
|
|
2426
2436
|
}, null, 8, ["message", "errors"])
|
|
2427
2437
|
]),
|
|
2428
2438
|
_: 2
|
|
2429
2439
|
}, [
|
|
2430
2440
|
o(r).icon ? {
|
|
2431
2441
|
name: "label",
|
|
2432
|
-
fn:
|
|
2442
|
+
fn: b((h) => [
|
|
2433
2443
|
B(o(oe), {
|
|
2434
|
-
data:
|
|
2444
|
+
data: h,
|
|
2435
2445
|
label: o(r)
|
|
2436
2446
|
}, null, 8, ["data", "label"])
|
|
2437
2447
|
]),
|
|
@@ -2441,82 +2451,82 @@ const il = {
|
|
|
2441
2451
|
]);
|
|
2442
2452
|
};
|
|
2443
2453
|
}
|
|
2444
|
-
}),
|
|
2454
|
+
}), ua = /* @__PURE__ */ se(sa, [["__scopeId", "data-v-b2f125f8"]]), ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2445
2455
|
__proto__: null,
|
|
2446
|
-
DfActions:
|
|
2447
|
-
DfCheckbox:
|
|
2448
|
-
DfColor:
|
|
2449
|
-
DfDateTime:
|
|
2450
|
-
DfFile:
|
|
2451
|
-
DfInput:
|
|
2452
|
-
DfRtfEditor:
|
|
2453
|
-
DfSelect:
|
|
2454
|
-
DfTextArea:
|
|
2455
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2456
|
+
DfActions: Ro,
|
|
2457
|
+
DfCheckbox: Wo,
|
|
2458
|
+
DfColor: zo,
|
|
2459
|
+
DfDateTime: Ko,
|
|
2460
|
+
DfFile: Go,
|
|
2461
|
+
DfInput: Qo,
|
|
2462
|
+
DfRtfEditor: na,
|
|
2463
|
+
DfSelect: ra,
|
|
2464
|
+
DfTextArea: ua
|
|
2465
|
+
}, Symbol.toStringTag, { value: "Module" })), da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2456
2466
|
__proto__: null,
|
|
2457
|
-
VAutocomplete:
|
|
2458
|
-
VBtn:
|
|
2459
|
-
VCheckbox:
|
|
2460
|
-
VChip:
|
|
2461
|
-
VCol:
|
|
2462
|
-
VColorPicker:
|
|
2463
|
-
VCombobox:
|
|
2464
|
-
VConfirmEdit:
|
|
2465
|
-
VDatePicker:
|
|
2466
|
-
VField:
|
|
2467
|
-
VFileInput:
|
|
2468
|
-
VIcon:
|
|
2469
|
-
VImg:
|
|
2470
|
-
VInput:
|
|
2471
|
-
VListItem:
|
|
2472
|
-
VMenu:
|
|
2473
|
-
VNumberInput:
|
|
2474
|
-
VProgressLinear:
|
|
2475
|
-
VRow:
|
|
2476
|
-
VSelect:
|
|
2477
|
-
VSwitch:
|
|
2478
|
-
VTextField:
|
|
2467
|
+
VAutocomplete: dn,
|
|
2468
|
+
VBtn: mn,
|
|
2469
|
+
VCheckbox: pn,
|
|
2470
|
+
VChip: fn,
|
|
2471
|
+
VCol: kn,
|
|
2472
|
+
VColorPicker: bn,
|
|
2473
|
+
VCombobox: vn,
|
|
2474
|
+
VConfirmEdit: hn,
|
|
2475
|
+
VDatePicker: gn,
|
|
2476
|
+
VField: wn,
|
|
2477
|
+
VFileInput: yn,
|
|
2478
|
+
VIcon: _n,
|
|
2479
|
+
VImg: jn,
|
|
2480
|
+
VInput: Cn,
|
|
2481
|
+
VListItem: Tn,
|
|
2482
|
+
VMenu: Bn,
|
|
2483
|
+
VNumberInput: In,
|
|
2484
|
+
VProgressLinear: Pn,
|
|
2485
|
+
VRow: Vn,
|
|
2486
|
+
VSelect: Dn,
|
|
2487
|
+
VSwitch: xn,
|
|
2488
|
+
VTextField: Sn,
|
|
2479
2489
|
VTextarea: $n,
|
|
2480
|
-
VTimePicker:
|
|
2481
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2490
|
+
VTimePicker: En
|
|
2491
|
+
}, Symbol.toStringTag, { value: "Module" })), Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2482
2492
|
__proto__: null
|
|
2483
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2493
|
+
}, Symbol.toStringTag, { value: "Module" })), Ka = {
|
|
2484
2494
|
install: (e, t) => {
|
|
2485
|
-
var n,
|
|
2486
|
-
e.use(
|
|
2495
|
+
var n, a;
|
|
2496
|
+
e.use(Kn), e.provide(Je, t != null ? t : {}), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(ca).map(([l, r]) => e.component(l, r)), (a = t == null ? void 0 : t.registerVuetifyComponents) != null && a && Object.entries(da).map(([l, r]) => e.component(l, r));
|
|
2487
2497
|
}
|
|
2488
2498
|
};
|
|
2489
2499
|
export {
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2500
|
+
ye as Action,
|
|
2501
|
+
W as ActionDisplayStyle,
|
|
2502
|
+
Po as DateTimeLocaleConfig,
|
|
2503
|
+
Ro as DfActions,
|
|
2504
|
+
Wo as DfCheckbox,
|
|
2505
|
+
zo as DfColor,
|
|
2506
|
+
Ko as DfDateTime,
|
|
2507
|
+
Go as DfFile,
|
|
2508
|
+
Qo as DfInput,
|
|
2509
|
+
Ha as DfInputComponentProps,
|
|
2510
|
+
ca as DfInputComponents,
|
|
2501
2511
|
oe as DfLabel,
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2512
|
+
na as DfRtfEditor,
|
|
2513
|
+
ra as DfSelect,
|
|
2514
|
+
ua as DfTextArea,
|
|
2515
|
+
Ka as DynamicFormsInputs,
|
|
2516
|
+
Pe as InputBase,
|
|
2507
2517
|
$o as Label,
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2518
|
+
ae as MessagesWidget,
|
|
2519
|
+
Lo as ResponsiveActionRenderOptions,
|
|
2520
|
+
Ao as ResponsiveRenderOptions,
|
|
2521
|
+
da as VuetifyComponents,
|
|
2512
2522
|
Q as defaultBaseProps,
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2523
|
+
Re as defaultDisplayStyle,
|
|
2524
|
+
No as getBreakpointName,
|
|
2525
|
+
We as responsiveBreakpoints,
|
|
2526
|
+
ve as translatableStrings,
|
|
2527
|
+
za as translateStrings,
|
|
2528
|
+
Fo as useBreakpoint,
|
|
2519
2529
|
K as useInputBase,
|
|
2520
|
-
|
|
2530
|
+
Je as vuetifyInputsSettingsKey
|
|
2521
2531
|
};
|
|
2522
2532
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|