@dynamicforms/vuetify-inputs 0.5.6 → 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 +681 -682
- 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 +6 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var et = Object.defineProperty, tt = Object.defineProperties;
|
|
2
|
+
var nt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var xe = Object.getOwnPropertySymbols;
|
|
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
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
at.call(t, n) &&
|
|
7
|
+
ot.call(t, n) && _e(e, n, t[n]);
|
|
8
|
+
if (xe)
|
|
9
|
+
for (var n of xe(t))
|
|
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 Oe, { ValidationErrorRenderContent as
|
|
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
60
|
import { VTextField as Sn } from "vuetify/components/VTextField";
|
|
61
|
-
import { VTimePicker as
|
|
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
|
|
@@ -74,10 +74,10 @@ new Array(256).fill("").map((e, t) => ("0" + t.toString(16)).slice(-2));
|
|
|
74
74
|
*/
|
|
75
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,41 +85,41 @@ function An(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
|
-
function
|
|
99
|
-
return
|
|
98
|
+
function Nn(e) {
|
|
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
|
-
function
|
|
106
|
-
if (!
|
|
105
|
+
function Fn(e) {
|
|
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
|
-
const { major: t } =
|
|
122
|
+
const { major: t } = Fn(e);
|
|
123
123
|
switch (!0) {
|
|
124
124
|
case t >= 44:
|
|
125
125
|
return 3;
|
|
@@ -133,9 +133,9 @@ function Fn(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
|
-
return
|
|
138
|
+
return Nn(e) ? {
|
|
139
139
|
source: t ? "cdn" : "npm",
|
|
140
140
|
version: e
|
|
141
141
|
} : null;
|
|
@@ -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
246
|
return u(), ze(() => {
|
|
247
|
-
const s =
|
|
248
|
-
Object.assign({},
|
|
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:
|
|
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
1037
|
if (e.control && !(e.control instanceof Oe.FieldBase))
|
|
1038
1038
|
throw new Error("control prop is not a vue-form control instance");
|
|
1039
|
-
const r =
|
|
1040
|
-
() => e.control ? e.control.errors : (e.errors || []).map((
|
|
1039
|
+
const r = E(!1), p = _(() => e.control ? e.control.valid : !0), i = _(
|
|
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
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:
|
|
1074
|
+
helpText: v.value
|
|
1075
1075
|
}, e.passthroughAttrs || {});
|
|
1076
1076
|
})
|
|
1077
1077
|
};
|
|
1078
1078
|
}
|
|
1079
|
-
const
|
|
1080
|
-
key: 0,
|
|
1081
|
-
class: "custom-error-display text-error"
|
|
1082
|
-
}, xo = { key: 0 }, Ao = { key: 1 }, Eo = /* @__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: {},
|
|
@@ -1128,35 +1127,35 @@ const So = {
|
|
|
1128
1127
|
},
|
|
1129
1128
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
1130
1129
|
setup(e, { emit: t }) {
|
|
1131
|
-
const n = e,
|
|
1132
|
-
function m(
|
|
1133
|
-
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"));
|
|
1134
1133
|
}
|
|
1135
|
-
return (
|
|
1136
|
-
const
|
|
1137
|
-
return o(c) !== o(H).SUPPRESS ? (
|
|
1134
|
+
return (v, h) => {
|
|
1135
|
+
const g = $("v-field"), y = $("v-input");
|
|
1136
|
+
return o(c) !== o(H).SUPPRESS ? (V(), D(y, {
|
|
1138
1137
|
key: 0,
|
|
1139
1138
|
name: o(u).name,
|
|
1140
1139
|
hint: o(u).hint,
|
|
1141
1140
|
"persistent-hint": o(u).persistentHint,
|
|
1142
1141
|
"hide-details": o(u).hideDetails,
|
|
1143
1142
|
"error-messages": o(u).errorMessages,
|
|
1144
|
-
class:
|
|
1145
|
-
|
|
1143
|
+
class: Ie([
|
|
1144
|
+
v.cssClass,
|
|
1146
1145
|
{
|
|
1147
1146
|
"d-none": o(c) === o(H).HIDDEN,
|
|
1148
1147
|
invisible: o(c) === o(H).INVISIBLE
|
|
1149
1148
|
}
|
|
1150
1149
|
])
|
|
1151
1150
|
}, q({
|
|
1152
|
-
message:
|
|
1153
|
-
B(
|
|
1154
|
-
message:
|
|
1155
|
-
errors: o(
|
|
1151
|
+
message: b(({ message: w }) => [
|
|
1152
|
+
B(ae, {
|
|
1153
|
+
message: w,
|
|
1154
|
+
errors: o(l)
|
|
1156
1155
|
}, null, 8, ["message", "errors"])
|
|
1157
1156
|
]),
|
|
1158
|
-
default:
|
|
1159
|
-
B(
|
|
1157
|
+
default: b(() => [
|
|
1158
|
+
B(g, {
|
|
1160
1159
|
variant: o(u).variant,
|
|
1161
1160
|
label: o(u).label,
|
|
1162
1161
|
disabled: o(u).disabled,
|
|
@@ -1164,34 +1163,34 @@ const So = {
|
|
|
1164
1163
|
"persistent-clear": !0,
|
|
1165
1164
|
dirty: !!o(p),
|
|
1166
1165
|
active: s.value,
|
|
1167
|
-
loading:
|
|
1168
|
-
"onClick:clear":
|
|
1169
|
-
"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))
|
|
1170
1169
|
}, q({
|
|
1171
|
-
default:
|
|
1172
|
-
ne("div",
|
|
1173
|
-
|
|
1170
|
+
default: b((w) => [
|
|
1171
|
+
ne("div", So, [
|
|
1172
|
+
re(v.$slots, "default", X(G(w)), void 0, !0)
|
|
1174
1173
|
])
|
|
1175
1174
|
]),
|
|
1176
|
-
loader:
|
|
1177
|
-
|
|
1175
|
+
loader: b((w) => [
|
|
1176
|
+
re(v.$slots, "loader", X(G(w)), void 0, !0)
|
|
1178
1177
|
]),
|
|
1179
1178
|
_: 2
|
|
1180
1179
|
}, [
|
|
1181
1180
|
o(r).icon ? {
|
|
1182
1181
|
name: "label",
|
|
1183
|
-
fn:
|
|
1182
|
+
fn: b((w) => [
|
|
1184
1183
|
B(oe, {
|
|
1185
|
-
data:
|
|
1184
|
+
data: w,
|
|
1186
1185
|
label: o(r)
|
|
1187
1186
|
}, null, 8, ["data", "label"])
|
|
1188
1187
|
]),
|
|
1189
1188
|
key: "0"
|
|
1190
1189
|
} : void 0,
|
|
1191
|
-
|
|
1190
|
+
v.$slots["prepend-inner"] ? {
|
|
1192
1191
|
name: "prepend-inner",
|
|
1193
|
-
fn:
|
|
1194
|
-
|
|
1192
|
+
fn: b((w) => [
|
|
1193
|
+
re(v.$slots, "prepend-inner", X(G(w)), void 0, !0)
|
|
1195
1194
|
]),
|
|
1196
1195
|
key: "1"
|
|
1197
1196
|
} : void 0
|
|
@@ -1199,94 +1198,94 @@ const So = {
|
|
|
1199
1198
|
]),
|
|
1200
1199
|
_: 2
|
|
1201
1200
|
}, [
|
|
1202
|
-
|
|
1201
|
+
v.$slots.prepend ? {
|
|
1203
1202
|
name: "prepend",
|
|
1204
|
-
fn:
|
|
1205
|
-
|
|
1203
|
+
fn: b((w) => [
|
|
1204
|
+
re(v.$slots, "prepend", X(G(w)), void 0, !0)
|
|
1206
1205
|
]),
|
|
1207
1206
|
key: "0"
|
|
1208
1207
|
} : void 0
|
|
1209
1208
|
]), 1032, ["name", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : L("", !0);
|
|
1210
1209
|
};
|
|
1211
1210
|
}
|
|
1212
|
-
}), Pe = /* @__PURE__ */
|
|
1211
|
+
}), Pe = /* @__PURE__ */ se(Eo, [["__scopeId", "data-v-7ba7207d"]]), ve = {
|
|
1213
1212
|
Yes: "Yes",
|
|
1214
1213
|
No: "No",
|
|
1215
1214
|
Close: "Close"
|
|
1216
1215
|
};
|
|
1217
|
-
function
|
|
1218
|
-
Object.keys(
|
|
1219
|
-
|
|
1216
|
+
function za(e) {
|
|
1217
|
+
Object.keys(ve).forEach((t) => {
|
|
1218
|
+
ve[t] = e(t);
|
|
1220
1219
|
});
|
|
1221
1220
|
}
|
|
1222
1221
|
var W = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(W || {});
|
|
1223
1222
|
const Re = 0;
|
|
1224
1223
|
((e) => {
|
|
1225
|
-
function t(
|
|
1226
|
-
return
|
|
1224
|
+
function t(l) {
|
|
1225
|
+
return l.toUpperCase() === "BUTTON" ? 0 : l.toUpperCase() === "TEXT" ? 1 : Re;
|
|
1227
1226
|
}
|
|
1228
1227
|
e.fromString = t;
|
|
1229
|
-
function n(
|
|
1230
|
-
const r = typeof
|
|
1228
|
+
function n(l) {
|
|
1229
|
+
const r = typeof l == "number" ? l : e.fromString(l);
|
|
1231
1230
|
return Object.values(e).includes(r) ? r : Re;
|
|
1232
1231
|
}
|
|
1233
1232
|
e.fromAny = n;
|
|
1234
|
-
function l
|
|
1235
|
-
const r = typeof
|
|
1233
|
+
function a(l) {
|
|
1234
|
+
const r = typeof l == "number" ? l : e.fromString(l);
|
|
1236
1235
|
return Object.values(e).includes(r);
|
|
1237
1236
|
}
|
|
1238
|
-
e.isDefined =
|
|
1237
|
+
e.isDefined = a;
|
|
1239
1238
|
})(W || (W = {}));
|
|
1240
1239
|
Object.freeze(W);
|
|
1241
1240
|
const We = ["xs", "sm", "md", "lg", "xl"];
|
|
1242
|
-
class
|
|
1241
|
+
class Ao {
|
|
1243
1242
|
constructor(t) {
|
|
1244
|
-
|
|
1243
|
+
$e(this, "_value");
|
|
1245
1244
|
this._value = this.cleanBreakpoint(t, !0), t && We.forEach((n) => {
|
|
1246
|
-
const
|
|
1247
|
-
|
|
1245
|
+
const a = this.cleanBreakpoint(t[n]);
|
|
1246
|
+
a && (this._value[n] = a);
|
|
1248
1247
|
});
|
|
1249
1248
|
}
|
|
1250
1249
|
getOptionsForBreakpoint(t) {
|
|
1251
|
-
const n = this.cleanBreakpoint(this._value),
|
|
1252
|
-
for (const
|
|
1253
|
-
const r = this._value[
|
|
1254
|
-
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)
|
|
1255
1254
|
(r == null ? void 0 : r[p]) != null && (n[p] = r[p]);
|
|
1256
|
-
if (
|
|
1255
|
+
if (l === t) break;
|
|
1257
1256
|
}
|
|
1258
1257
|
return n;
|
|
1259
1258
|
}
|
|
1260
1259
|
}
|
|
1261
|
-
function
|
|
1260
|
+
function No(e) {
|
|
1262
1261
|
return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
|
|
1263
1262
|
}
|
|
1264
|
-
function
|
|
1265
|
-
const e =
|
|
1266
|
-
return _(() =>
|
|
1263
|
+
function Fo() {
|
|
1264
|
+
const e = yt();
|
|
1265
|
+
return _(() => No(e));
|
|
1267
1266
|
}
|
|
1268
|
-
class
|
|
1267
|
+
class Lo extends Ao {
|
|
1269
1268
|
// eslint-disable-next-line class-methods-use-this
|
|
1270
1269
|
cleanBreakpoint(t, n = !1) {
|
|
1271
|
-
if ((!t || !
|
|
1272
|
-
const
|
|
1273
|
-
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;
|
|
1274
1273
|
}
|
|
1275
1274
|
}
|
|
1276
|
-
class ye extends
|
|
1275
|
+
class ye extends gt {
|
|
1277
1276
|
static create(t) {
|
|
1278
1277
|
return super.create(t);
|
|
1279
1278
|
}
|
|
1280
1279
|
getBreakpointValue(t) {
|
|
1281
1280
|
return _(() => {
|
|
1282
|
-
const
|
|
1281
|
+
const a = new Lo(this.value).getOptionsForBreakpoint(t.value);
|
|
1283
1282
|
return {
|
|
1284
|
-
name:
|
|
1285
|
-
label:
|
|
1286
|
-
icon:
|
|
1287
|
-
renderAs:
|
|
1288
|
-
showLabel: ee(
|
|
1289
|
-
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
|
|
1290
1289
|
};
|
|
1291
1290
|
});
|
|
1292
1291
|
}
|
|
@@ -1297,67 +1296,67 @@ class ye extends ht {
|
|
|
1297
1296
|
return this.value.showLabel ? this.value.label : void 0;
|
|
1298
1297
|
}
|
|
1299
1298
|
get showLabel() {
|
|
1300
|
-
return ee(this.value.label) && !
|
|
1299
|
+
return ee(this.value.label) && !fe(this.value.label) ? this.value.showLabel : !1;
|
|
1301
1300
|
}
|
|
1302
1301
|
get icon() {
|
|
1303
1302
|
return this.value.showIcon ? this.value.icon : void 0;
|
|
1304
1303
|
}
|
|
1305
1304
|
get showIcon() {
|
|
1306
|
-
return ee(this.value.icon) && !
|
|
1305
|
+
return ee(this.value.icon) && !fe(this.value.icon) ? this.value.showIcon : !1;
|
|
1307
1306
|
}
|
|
1308
1307
|
get renderAs() {
|
|
1309
1308
|
return this.value.renderAs;
|
|
1310
1309
|
}
|
|
1311
1310
|
static closeAction(t) {
|
|
1312
|
-
var
|
|
1313
|
-
const n =
|
|
1311
|
+
var a;
|
|
1312
|
+
const n = F(x({}, t != null ? t : {}), {
|
|
1314
1313
|
// any properties in data should overwrite properties in the constant
|
|
1315
1314
|
value: {
|
|
1316
1315
|
name: "close",
|
|
1317
|
-
label:
|
|
1316
|
+
label: ve.Close,
|
|
1318
1317
|
icon: "close-outline",
|
|
1319
1318
|
renderAs: W.BUTTON,
|
|
1320
1319
|
showLabel: !0,
|
|
1321
1320
|
showIcon: !0
|
|
1322
1321
|
}
|
|
1323
1322
|
});
|
|
1324
|
-
return n.value =
|
|
1323
|
+
return n.value = x(x({}, n.value), (a = t == null ? void 0 : t.value) != null ? a : {}), ye.create(n);
|
|
1325
1324
|
}
|
|
1326
1325
|
static yesAction(t) {
|
|
1327
|
-
var
|
|
1328
|
-
const n =
|
|
1326
|
+
var a;
|
|
1327
|
+
const n = F(x({}, t != null ? t : {}), {
|
|
1329
1328
|
// any properties in data should overwrite properties in the constant
|
|
1330
1329
|
value: {
|
|
1331
1330
|
name: "yes",
|
|
1332
|
-
label:
|
|
1331
|
+
label: ve.Yes,
|
|
1333
1332
|
icon: "thumbs-up-outline",
|
|
1334
1333
|
renderAs: W.BUTTON,
|
|
1335
1334
|
showLabel: !0,
|
|
1336
1335
|
showIcon: !0
|
|
1337
1336
|
}
|
|
1338
1337
|
});
|
|
1339
|
-
return n.value =
|
|
1338
|
+
return n.value = x(x({}, n.value), (a = t == null ? void 0 : t.value) != null ? a : {}), ye.create(n);
|
|
1340
1339
|
}
|
|
1341
1340
|
static noAction(t) {
|
|
1342
|
-
var
|
|
1343
|
-
const n =
|
|
1341
|
+
var a;
|
|
1342
|
+
const n = F(x({}, t != null ? t : {}), {
|
|
1344
1343
|
// any properties in data should overwrite properties in the constant
|
|
1345
1344
|
value: {
|
|
1346
1345
|
name: "no",
|
|
1347
|
-
label:
|
|
1346
|
+
label: ve.No,
|
|
1348
1347
|
icon: "thumbs-down-outline",
|
|
1349
1348
|
renderAs: W.BUTTON,
|
|
1350
1349
|
showLabel: !0,
|
|
1351
1350
|
showIcon: !0
|
|
1352
1351
|
}
|
|
1353
1352
|
});
|
|
1354
|
-
return n.value =
|
|
1353
|
+
return n.value = x(x({}, n.value), (a = t == null ? void 0 : t.value) != null ? a : {}), ye.create(n);
|
|
1355
1354
|
}
|
|
1356
1355
|
}
|
|
1357
|
-
const
|
|
1356
|
+
const Mo = {
|
|
1358
1357
|
key: 1,
|
|
1359
1358
|
style: { width: ".5rem" }
|
|
1360
|
-
},
|
|
1359
|
+
}, Uo = { key: 2 }, Oo = /* @__PURE__ */ M({
|
|
1361
1360
|
__name: "df-actions",
|
|
1362
1361
|
props: {
|
|
1363
1362
|
actions: {},
|
|
@@ -1365,40 +1364,40 @@ const Ro = {
|
|
|
1365
1364
|
showAsGroup: { default: "no" }
|
|
1366
1365
|
},
|
|
1367
1366
|
setup(e) {
|
|
1368
|
-
const t = e, n =
|
|
1367
|
+
const t = e, n = Fo(), a = _(() => o(t.actions)), l = _(() => a.value.map((r) => x({
|
|
1369
1368
|
action: r
|
|
1370
1369
|
}, o(r.getBreakpointValue(n)))));
|
|
1371
1370
|
return (r, p) => {
|
|
1372
|
-
const i =
|
|
1373
|
-
return
|
|
1371
|
+
const i = $("v-btn");
|
|
1372
|
+
return a.value.length > 0 ? (V(), R("div", {
|
|
1374
1373
|
key: 0,
|
|
1375
|
-
class:
|
|
1374
|
+
class: Ie(["text-end", {
|
|
1376
1375
|
"button-group": r.showAsGroup === "grouped" || r.showAsGroup === "grouped-no-borders",
|
|
1377
1376
|
"with-border": r.showAsGroup === "grouped"
|
|
1378
1377
|
}])
|
|
1379
1378
|
}, [
|
|
1380
|
-
(
|
|
1379
|
+
(V(!0), R(Ke, null, ct(l.value, (c, u) => (V(), D(i, {
|
|
1381
1380
|
key: u,
|
|
1382
1381
|
variant: c.renderAs === o(W).BUTTON ? "tonal" : "text",
|
|
1383
1382
|
elevation: 0,
|
|
1384
1383
|
size: r.buttonSize,
|
|
1385
|
-
onClick:
|
|
1384
|
+
onClick: dt((j) => c.action.execute(j), ["stop"])
|
|
1386
1385
|
}, {
|
|
1387
|
-
default:
|
|
1388
|
-
c.icon ? (
|
|
1386
|
+
default: b(() => [
|
|
1387
|
+
c.icon ? (V(), D(o(Te), {
|
|
1389
1388
|
key: 0,
|
|
1390
1389
|
class: "action-icon",
|
|
1391
1390
|
name: c.icon
|
|
1392
1391
|
}, null, 8, ["name"])) : L("", !0),
|
|
1393
|
-
c.icon && c.label ? (
|
|
1394
|
-
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)
|
|
1395
1394
|
]),
|
|
1396
1395
|
_: 2
|
|
1397
1396
|
}, 1032, ["variant", "size", "onClick"]))), 128))
|
|
1398
1397
|
], 2)) : L("", !0);
|
|
1399
1398
|
};
|
|
1400
1399
|
}
|
|
1401
|
-
}),
|
|
1400
|
+
}), Ro = /* @__PURE__ */ se(Oo, [["__scopeId", "data-v-7f811834"]]), Wo = /* @__PURE__ */ M({
|
|
1402
1401
|
__name: "df-checkbox",
|
|
1403
1402
|
props: /* @__PURE__ */ Y({
|
|
1404
1403
|
allowNull: { type: Boolean },
|
|
@@ -1414,10 +1413,10 @@ const Ro = {
|
|
|
1414
1413
|
cssClass: {},
|
|
1415
1414
|
clearable: { type: Boolean },
|
|
1416
1415
|
passthroughAttrs: {}
|
|
1417
|
-
},
|
|
1416
|
+
}, F(x({}, Q), { allowNull: !1 })),
|
|
1418
1417
|
emits: ["update:modelValue", "click:clear"],
|
|
1419
1418
|
setup(e, { emit: t }) {
|
|
1420
|
-
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 = _({
|
|
1421
1420
|
get() {
|
|
1422
1421
|
return i.value;
|
|
1423
1422
|
},
|
|
@@ -1425,35 +1424,35 @@ const Ro = {
|
|
|
1425
1424
|
}
|
|
1426
1425
|
});
|
|
1427
1426
|
function s() {
|
|
1428
|
-
const m =
|
|
1427
|
+
const m = vt(i.value);
|
|
1429
1428
|
m === !0 ? i.value = n.allowNull ? null : !1 : i.value = m === !1;
|
|
1430
1429
|
}
|
|
1431
|
-
return (m,
|
|
1432
|
-
const
|
|
1433
|
-
return
|
|
1430
|
+
return (m, v) => {
|
|
1431
|
+
const h = $("v-checkbox");
|
|
1432
|
+
return V(), D(h, O({
|
|
1434
1433
|
modelValue: j.value,
|
|
1435
|
-
"onUpdate:modelValue":
|
|
1434
|
+
"onUpdate:modelValue": v[0] || (v[0] = (g) => j.value = g)
|
|
1436
1435
|
}, o(c), {
|
|
1437
1436
|
density: "compact",
|
|
1438
1437
|
indeterminate: u.value,
|
|
1439
1438
|
"false-value": !1,
|
|
1440
1439
|
"true-value": !0,
|
|
1441
1440
|
onChange: s,
|
|
1442
|
-
onBlur:
|
|
1441
|
+
onBlur: v[1] || (v[1] = (g) => p.value = !0)
|
|
1443
1442
|
}), q({
|
|
1444
|
-
message:
|
|
1445
|
-
B(o(
|
|
1446
|
-
message:
|
|
1447
|
-
errors: o(
|
|
1443
|
+
message: b(({ message: g }) => [
|
|
1444
|
+
B(o(ae), {
|
|
1445
|
+
message: g,
|
|
1446
|
+
errors: o(l)
|
|
1448
1447
|
}, null, 8, ["message", "errors"])
|
|
1449
1448
|
]),
|
|
1450
1449
|
_: 2
|
|
1451
1450
|
}, [
|
|
1452
1451
|
o(r).icon ? {
|
|
1453
1452
|
name: "label",
|
|
1454
|
-
fn:
|
|
1453
|
+
fn: b((g) => [
|
|
1455
1454
|
B(o(oe), {
|
|
1456
|
-
data:
|
|
1455
|
+
data: g,
|
|
1457
1456
|
label: o(r)
|
|
1458
1457
|
}, null, 8, ["data", "label"])
|
|
1459
1458
|
]),
|
|
@@ -1462,7 +1461,7 @@ const Ro = {
|
|
|
1462
1461
|
]), 1040, ["modelValue", "indeterminate"]);
|
|
1463
1462
|
};
|
|
1464
1463
|
}
|
|
1465
|
-
}),
|
|
1464
|
+
}), zo = /* @__PURE__ */ M({
|
|
1466
1465
|
__name: "df-color",
|
|
1467
1466
|
props: /* @__PURE__ */ Y({
|
|
1468
1467
|
allowNull: { type: Boolean },
|
|
@@ -1478,45 +1477,45 @@ const Ro = {
|
|
|
1478
1477
|
cssClass: {},
|
|
1479
1478
|
clearable: { type: Boolean },
|
|
1480
1479
|
passthroughAttrs: {}
|
|
1481
|
-
},
|
|
1480
|
+
}, F(x({}, Q), { allowNull: !1 })),
|
|
1482
1481
|
emits: ["update:modelValue", "click:clear"],
|
|
1483
1482
|
setup(e, { emit: t }) {
|
|
1484
|
-
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 = _(() => [
|
|
1485
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."
|
|
1486
1485
|
]);
|
|
1487
1486
|
return (s, m) => {
|
|
1488
|
-
const
|
|
1489
|
-
return
|
|
1487
|
+
const v = $("v-color-picker"), h = $("v-menu"), g = $("v-text-field");
|
|
1488
|
+
return V(), D(g, O({
|
|
1490
1489
|
modelValue: o(i),
|
|
1491
|
-
"onUpdate:modelValue": m[2] || (m[2] = (
|
|
1490
|
+
"onUpdate:modelValue": m[2] || (m[2] = (y) => te(i) ? i.value = y : null)
|
|
1492
1491
|
}, o(c), {
|
|
1493
1492
|
clearable: s.allowNull,
|
|
1494
1493
|
type: "text",
|
|
1495
1494
|
rules: j.value,
|
|
1496
|
-
onBlur: m[3] || (m[3] = (
|
|
1495
|
+
onBlur: m[3] || (m[3] = (y) => p.value = !0)
|
|
1497
1496
|
}), q({
|
|
1498
|
-
message:
|
|
1499
|
-
B(o(
|
|
1500
|
-
message:
|
|
1501
|
-
errors: o(
|
|
1497
|
+
message: b(({ message: y }) => [
|
|
1498
|
+
B(o(ae), {
|
|
1499
|
+
message: y,
|
|
1500
|
+
errors: o(l)
|
|
1502
1501
|
}, null, 8, ["message", "errors"])
|
|
1503
1502
|
]),
|
|
1504
|
-
"prepend-inner":
|
|
1503
|
+
"prepend-inner": b(() => [
|
|
1505
1504
|
ne("div", {
|
|
1506
|
-
style:
|
|
1505
|
+
style: Xe([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: o(i) }])
|
|
1507
1506
|
}, null, 4)
|
|
1508
1507
|
]),
|
|
1509
|
-
default:
|
|
1510
|
-
B(
|
|
1508
|
+
default: b(() => [
|
|
1509
|
+
B(h, {
|
|
1511
1510
|
modelValue: u.value,
|
|
1512
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
1511
|
+
"onUpdate:modelValue": m[1] || (m[1] = (y) => u.value = y),
|
|
1513
1512
|
"close-on-content-click": !1,
|
|
1514
1513
|
activator: "parent"
|
|
1515
1514
|
}, {
|
|
1516
|
-
default:
|
|
1517
|
-
B(
|
|
1515
|
+
default: b(() => [
|
|
1516
|
+
B(v, {
|
|
1518
1517
|
modelValue: o(i),
|
|
1519
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
1518
|
+
"onUpdate:modelValue": m[0] || (m[0] = (y) => te(i) ? i.value = y : null),
|
|
1520
1519
|
mode: "hexa"
|
|
1521
1520
|
}, null, 8, ["modelValue"])
|
|
1522
1521
|
]),
|
|
@@ -1527,9 +1526,9 @@ const Ro = {
|
|
|
1527
1526
|
}, [
|
|
1528
1527
|
o(r).icon ? {
|
|
1529
1528
|
name: "label",
|
|
1530
|
-
fn:
|
|
1529
|
+
fn: b((y) => [
|
|
1531
1530
|
B(o(oe), {
|
|
1532
|
-
data:
|
|
1531
|
+
data: y,
|
|
1533
1532
|
label: o(r)
|
|
1534
1533
|
}, null, 8, ["data", "label"])
|
|
1535
1534
|
]),
|
|
@@ -1538,7 +1537,7 @@ const Ro = {
|
|
|
1538
1537
|
]), 1040, ["modelValue", "clearable", "rules"]);
|
|
1539
1538
|
};
|
|
1540
1539
|
}
|
|
1541
|
-
}),
|
|
1540
|
+
}), Ho = { class: "d-flex w-100 pt-5 pl-2 pb-1" }, Ko = /* @__PURE__ */ M({
|
|
1542
1541
|
__name: "df-datetime",
|
|
1543
1542
|
props: /* @__PURE__ */ Y({
|
|
1544
1543
|
inputType: {},
|
|
@@ -1557,78 +1556,78 @@ const Ro = {
|
|
|
1557
1556
|
cssClass: {},
|
|
1558
1557
|
clearable: { type: Boolean },
|
|
1559
1558
|
passthroughAttrs: {}
|
|
1560
|
-
},
|
|
1559
|
+
}, F(x({}, Q), {
|
|
1561
1560
|
inputType: "datetime",
|
|
1562
1561
|
displayFormatDate: "P",
|
|
1563
1562
|
displayFormatTime: "p"
|
|
1564
1563
|
})),
|
|
1565
1564
|
emits: ["update:modelValue", "click:clear"],
|
|
1566
1565
|
setup(e, { emit: t }) {
|
|
1567
|
-
const n = e,
|
|
1566
|
+
const n = e, a = t, l = _(() => {
|
|
1568
1567
|
var f;
|
|
1569
|
-
return (f = n.locale) != null ? f : o(
|
|
1568
|
+
return (f = n.locale) != null ? f : o(Po.dateTimeLocale);
|
|
1570
1569
|
}), r = _(() => {
|
|
1571
1570
|
var f, d;
|
|
1572
|
-
return (d = (f =
|
|
1573
|
-
}), { 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 = _({
|
|
1574
1573
|
get() {
|
|
1575
1574
|
return o(m) === "date";
|
|
1576
1575
|
},
|
|
1577
1576
|
set(f) {
|
|
1578
1577
|
m.value = f ? "date" : "";
|
|
1579
1578
|
}
|
|
1580
|
-
}),
|
|
1579
|
+
}), h = _({
|
|
1581
1580
|
get() {
|
|
1582
1581
|
return o(m) === "time";
|
|
1583
1582
|
},
|
|
1584
1583
|
set(f) {
|
|
1585
1584
|
m.value = f ? "time" : "";
|
|
1586
1585
|
}
|
|
1587
|
-
}),
|
|
1588
|
-
function
|
|
1586
|
+
}), g = (f) => `${de(f, "yyyy-MM-dd")}T${de(f, "HH:mm")}:00`, y = E(null);
|
|
1587
|
+
function w(f, d) {
|
|
1589
1588
|
if (f == null)
|
|
1590
|
-
|
|
1589
|
+
y.value = null;
|
|
1591
1590
|
else if (d === -1)
|
|
1592
1591
|
if (o(u) === "time")
|
|
1593
|
-
|
|
1592
|
+
y.value = g(/* @__PURE__ */ new Date()), w(`T${f}`, 1);
|
|
1594
1593
|
else {
|
|
1595
|
-
const
|
|
1596
|
-
|
|
1594
|
+
const S = g(new Date(f));
|
|
1595
|
+
w(S, 0), w(S, 1);
|
|
1597
1596
|
}
|
|
1598
1597
|
else {
|
|
1599
|
-
|
|
1600
|
-
const
|
|
1601
|
-
|
|
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");
|
|
1602
1601
|
}
|
|
1603
1602
|
}
|
|
1604
|
-
|
|
1603
|
+
ie(i, (f) => w(f, -1), { immediate: !0 });
|
|
1605
1604
|
const N = _({
|
|
1606
1605
|
get() {
|
|
1607
|
-
const f = o(
|
|
1606
|
+
const f = o(y);
|
|
1608
1607
|
if (f == null) return null;
|
|
1609
1608
|
const d = new Date(f);
|
|
1610
1609
|
return Number.isNaN(d.getTime()) ? null : d;
|
|
1611
1610
|
},
|
|
1612
1611
|
set(f) {
|
|
1613
|
-
|
|
1612
|
+
w(g(f), 0);
|
|
1614
1613
|
}
|
|
1615
|
-
}),
|
|
1614
|
+
}), A = _({
|
|
1616
1615
|
get() {
|
|
1617
|
-
const f = o(
|
|
1616
|
+
const f = o(y);
|
|
1618
1617
|
return f == null ? "" : f.split(/[TZ]/g)[1].split(".")[0];
|
|
1619
1618
|
},
|
|
1620
1619
|
set(f) {
|
|
1621
|
-
|
|
1620
|
+
w(`T${f}`, 1);
|
|
1622
1621
|
}
|
|
1623
1622
|
}), T = _({
|
|
1624
1623
|
get() {
|
|
1625
1624
|
const f = o(N);
|
|
1626
|
-
return f == null ? "" :
|
|
1625
|
+
return f == null ? "" : de(f, o(j), { locale: l.value });
|
|
1627
1626
|
},
|
|
1628
1627
|
set(f) {
|
|
1629
1628
|
try {
|
|
1630
|
-
const d =
|
|
1631
|
-
|
|
1629
|
+
const d = kt(f, o(j), /* @__PURE__ */ new Date(), { locale: l.value });
|
|
1630
|
+
w(g(d), 0);
|
|
1632
1631
|
} catch (d) {
|
|
1633
1632
|
console.error(d);
|
|
1634
1633
|
}
|
|
@@ -1636,29 +1635,29 @@ const Ro = {
|
|
|
1636
1635
|
}), z = _({
|
|
1637
1636
|
get() {
|
|
1638
1637
|
const f = o(N);
|
|
1639
|
-
return f == null ? "" :
|
|
1638
|
+
return f == null ? "" : de(f, o(s), { locale: l.value });
|
|
1640
1639
|
},
|
|
1641
1640
|
set(f) {
|
|
1642
1641
|
const d = f.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
1643
1642
|
if (d == null) return;
|
|
1644
|
-
let
|
|
1643
|
+
let S = Le(d[1]);
|
|
1645
1644
|
const U = Le(d[2]);
|
|
1646
|
-
Me(
|
|
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));
|
|
1647
1646
|
}
|
|
1648
1647
|
});
|
|
1649
1648
|
return (f, d) => {
|
|
1650
|
-
const
|
|
1651
|
-
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, {
|
|
1652
1651
|
clearable: f.clearable,
|
|
1653
1652
|
"onClick:clear": d[14] || (d[14] = (I) => i.value = null),
|
|
1654
1653
|
onBlur: d[15] || (d[15] = (I) => p.value = !0)
|
|
1655
1654
|
}), {
|
|
1656
|
-
default:
|
|
1657
|
-
ne("div",
|
|
1658
|
-
["date", "datetime"].includes(o(u)) ? (
|
|
1655
|
+
default: b((I) => [
|
|
1656
|
+
ne("div", Ho, [
|
|
1657
|
+
["date", "datetime"].includes(o(u)) ? (V(), D(ce, O({
|
|
1659
1658
|
key: 0,
|
|
1660
1659
|
modelValue: T.value,
|
|
1661
|
-
"onUpdate:modelValue": d[4] || (d[4] = (
|
|
1660
|
+
"onUpdate:modelValue": d[4] || (d[4] = (k) => T.value = k),
|
|
1662
1661
|
style: { "flex-grow": "4" },
|
|
1663
1662
|
density: "compact",
|
|
1664
1663
|
variant: "plain",
|
|
@@ -1668,36 +1667,36 @@ const Ro = {
|
|
|
1668
1667
|
disabled: o(c).disabled,
|
|
1669
1668
|
name: `${o(c).name}-date`
|
|
1670
1669
|
}, f.passthroughAttrs, {
|
|
1671
|
-
onClick: d[5] || (d[5] = (
|
|
1672
|
-
onKeydown: d[6] || (d[6] =
|
|
1673
|
-
onFocus: (
|
|
1674
|
-
onBlur: (
|
|
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()
|
|
1675
1674
|
}), {
|
|
1676
|
-
default:
|
|
1677
|
-
B(
|
|
1678
|
-
modelValue:
|
|
1679
|
-
"onUpdate:modelValue": d[3] || (d[3] = (
|
|
1675
|
+
default: b(() => [
|
|
1676
|
+
B(ue, {
|
|
1677
|
+
modelValue: v.value,
|
|
1678
|
+
"onUpdate:modelValue": d[3] || (d[3] = (k) => v.value = k),
|
|
1680
1679
|
"close-on-content-click": !1,
|
|
1681
1680
|
activator: "parent"
|
|
1682
1681
|
}, {
|
|
1683
|
-
default:
|
|
1682
|
+
default: b(() => [
|
|
1684
1683
|
B(U, {
|
|
1685
1684
|
modelValue: N.value,
|
|
1686
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
1687
|
-
onCancel: d[1] || (d[1] = (
|
|
1688
|
-
onSave: d[2] || (d[2] = (
|
|
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 = "")
|
|
1689
1688
|
}, {
|
|
1690
|
-
default:
|
|
1691
|
-
B(
|
|
1692
|
-
modelValue:
|
|
1693
|
-
"onUpdate:modelValue": (
|
|
1689
|
+
default: b(({ model: k, actions: Z }) => [
|
|
1690
|
+
B(S, {
|
|
1691
|
+
modelValue: k.value,
|
|
1692
|
+
"onUpdate:modelValue": (P) => k.value = P,
|
|
1694
1693
|
"hide-header": !0,
|
|
1695
1694
|
"first-day-of-week": r.value,
|
|
1696
1695
|
"show-adjacent-months": !0,
|
|
1697
1696
|
"show-week": !0
|
|
1698
1697
|
}, {
|
|
1699
|
-
actions:
|
|
1700
|
-
(
|
|
1698
|
+
actions: b(() => [
|
|
1699
|
+
(V(), D(be(Z)))
|
|
1701
1700
|
]),
|
|
1702
1701
|
_: 2
|
|
1703
1702
|
}, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
|
|
@@ -1710,10 +1709,10 @@ const Ro = {
|
|
|
1710
1709
|
]),
|
|
1711
1710
|
_: 2
|
|
1712
1711
|
}, 1040, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : L("", !0),
|
|
1713
|
-
["time", "datetime"].includes(o(u)) ? (
|
|
1712
|
+
["time", "datetime"].includes(o(u)) ? (V(), D(ce, O({
|
|
1714
1713
|
key: 1,
|
|
1715
1714
|
modelValue: z.value,
|
|
1716
|
-
"onUpdate:modelValue": d[11] || (d[11] = (
|
|
1715
|
+
"onUpdate:modelValue": d[11] || (d[11] = (k) => z.value = k),
|
|
1717
1716
|
style: { "flex-grow": "3" },
|
|
1718
1717
|
density: "compact",
|
|
1719
1718
|
variant: "plain",
|
|
@@ -1723,34 +1722,34 @@ const Ro = {
|
|
|
1723
1722
|
disabled: o(c).disabled,
|
|
1724
1723
|
name: `${o(c).name}-time`
|
|
1725
1724
|
}, f.passthroughAttrs, {
|
|
1726
|
-
onClick: d[12] || (d[12] = (
|
|
1727
|
-
onKeydown: d[13] || (d[13] =
|
|
1728
|
-
onFocus: (
|
|
1729
|
-
onBlur: (
|
|
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()
|
|
1730
1729
|
}), {
|
|
1731
|
-
default:
|
|
1732
|
-
B(
|
|
1733
|
-
modelValue:
|
|
1734
|
-
"onUpdate:modelValue": d[10] || (d[10] = (
|
|
1730
|
+
default: b(() => [
|
|
1731
|
+
B(ue, {
|
|
1732
|
+
modelValue: h.value,
|
|
1733
|
+
"onUpdate:modelValue": d[10] || (d[10] = (k) => h.value = k),
|
|
1735
1734
|
"close-on-content-click": !1,
|
|
1736
1735
|
activator: "parent"
|
|
1737
1736
|
}, {
|
|
1738
|
-
default:
|
|
1737
|
+
default: b(() => [
|
|
1739
1738
|
B(U, {
|
|
1740
|
-
modelValue:
|
|
1741
|
-
"onUpdate:modelValue": d[7] || (d[7] = (
|
|
1742
|
-
onCancel: d[8] || (d[8] = (
|
|
1743
|
-
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 = "")
|
|
1744
1743
|
}, {
|
|
1745
|
-
default:
|
|
1744
|
+
default: b(({ model: k, actions: Z }) => [
|
|
1746
1745
|
B(C, {
|
|
1747
|
-
modelValue:
|
|
1748
|
-
"onUpdate:modelValue": (
|
|
1746
|
+
modelValue: k.value,
|
|
1747
|
+
"onUpdate:modelValue": (P) => k.value = P,
|
|
1749
1748
|
"hide-header": !0,
|
|
1750
1749
|
format: "24hr"
|
|
1751
1750
|
}, {
|
|
1752
|
-
actions:
|
|
1753
|
-
(
|
|
1751
|
+
actions: b(() => [
|
|
1752
|
+
(V(), D(be(Z)))
|
|
1754
1753
|
]),
|
|
1755
1754
|
_: 2
|
|
1756
1755
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1769,10 +1768,10 @@ const Ro = {
|
|
|
1769
1768
|
}, 16, ["clearable"]);
|
|
1770
1769
|
};
|
|
1771
1770
|
}
|
|
1772
|
-
}),
|
|
1771
|
+
}), Xo = {
|
|
1773
1772
|
class: "d-flex w-100 pt-5 pl-2 pb-1",
|
|
1774
1773
|
style: { position: "relative" }
|
|
1775
|
-
},
|
|
1774
|
+
}, Go = /* @__PURE__ */ M({
|
|
1776
1775
|
__name: "df-file",
|
|
1777
1776
|
props: /* @__PURE__ */ Y({
|
|
1778
1777
|
comms: {},
|
|
@@ -1791,64 +1790,64 @@ const Ro = {
|
|
|
1791
1790
|
}, Q),
|
|
1792
1791
|
emits: ["update:modelValue", "click:clear"],
|
|
1793
1792
|
setup(e, { emit: t }) {
|
|
1794
|
-
const n = e,
|
|
1795
|
-
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() {
|
|
1796
1795
|
i.value && window.clearInterval(i.value);
|
|
1797
1796
|
}
|
|
1798
|
-
function
|
|
1799
|
-
|
|
1797
|
+
function g() {
|
|
1798
|
+
h(), i.value = window.setInterval(() => {
|
|
1800
1799
|
r.value && n.comms.touch(r.value);
|
|
1801
1800
|
}, 60 * 1e3);
|
|
1802
1801
|
}
|
|
1803
|
-
He(() =>
|
|
1804
|
-
|
|
1802
|
+
He(() => h()), ie(r, (A) => {
|
|
1803
|
+
A ? g() : h();
|
|
1805
1804
|
});
|
|
1806
|
-
function
|
|
1807
|
-
return
|
|
1808
|
-
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();
|
|
1809
1808
|
});
|
|
1810
1809
|
}
|
|
1811
|
-
function
|
|
1812
|
-
return
|
|
1813
|
-
u.value = -1, c.value =
|
|
1810
|
+
function w(A) {
|
|
1811
|
+
return he(this, null, function* () {
|
|
1812
|
+
u.value = -1, c.value = A;
|
|
1814
1813
|
try {
|
|
1815
1814
|
r.value = yield n.comms.upload(
|
|
1816
|
-
|
|
1815
|
+
A,
|
|
1817
1816
|
(T, z) => {
|
|
1818
1817
|
u.value = Math.round(T * 100 / z);
|
|
1819
1818
|
}
|
|
1820
|
-
), u.value = 100,
|
|
1819
|
+
), u.value = 100, g();
|
|
1821
1820
|
} catch (T) {
|
|
1822
1821
|
throw u.value = 0, c.value = null, j.value = Math.round(Math.random() * 1e3), s.value = null, T;
|
|
1823
1822
|
}
|
|
1824
1823
|
});
|
|
1825
1824
|
}
|
|
1826
|
-
function N(
|
|
1827
|
-
|
|
1825
|
+
function N(A) {
|
|
1826
|
+
A && (Array.isArray(A) ? console.error("Uploading multiple files not supported right now") : w(A));
|
|
1828
1827
|
}
|
|
1829
|
-
return (
|
|
1830
|
-
const z =
|
|
1831
|
-
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 }), {
|
|
1832
1831
|
clearable: "",
|
|
1833
|
-
"onClick:clear":
|
|
1834
|
-
onBlur: T[1] || (T[1] = (
|
|
1832
|
+
"onClick:clear": y,
|
|
1833
|
+
onBlur: T[1] || (T[1] = (S) => l.value = !0)
|
|
1835
1834
|
}), {
|
|
1836
|
-
"prepend-inner":
|
|
1835
|
+
"prepend-inner": b(() => [
|
|
1837
1836
|
B(z, { icon: "$file" })
|
|
1838
1837
|
]),
|
|
1839
|
-
loader:
|
|
1840
|
-
c.value && u.value < 100 ? (
|
|
1838
|
+
loader: b(() => [
|
|
1839
|
+
c.value && u.value < 100 ? (V(), D(f, {
|
|
1841
1840
|
key: 0,
|
|
1842
1841
|
"model-value": u.value,
|
|
1843
1842
|
indeterminate: u.value === -1
|
|
1844
1843
|
}, null, 8, ["model-value", "indeterminate"])) : L("", !0)
|
|
1845
1844
|
]),
|
|
1846
|
-
default:
|
|
1847
|
-
ne("div",
|
|
1848
|
-
B(d,
|
|
1845
|
+
default: b((S) => [
|
|
1846
|
+
ne("div", Xo, [
|
|
1847
|
+
B(d, O({
|
|
1849
1848
|
modelValue: s.value,
|
|
1850
1849
|
"onUpdate:modelValue": T[0] || (T[0] = (U) => s.value = U),
|
|
1851
|
-
label:
|
|
1850
|
+
label: v.value,
|
|
1852
1851
|
density: "compact",
|
|
1853
1852
|
variant: "plain",
|
|
1854
1853
|
readonly: o(p).readonly,
|
|
@@ -1859,11 +1858,11 @@ const Ro = {
|
|
|
1859
1858
|
multiple: !1,
|
|
1860
1859
|
style: c.value && u.value < 100 ? "visibility: hidden" : "",
|
|
1861
1860
|
clearable: !1
|
|
1862
|
-
},
|
|
1861
|
+
}, A.passthroughAttrs, {
|
|
1863
1862
|
"prepend-icon": "",
|
|
1864
1863
|
"onUpdate:modelValue": N,
|
|
1865
|
-
onFocus: (U) =>
|
|
1866
|
-
onBlur: (U) =>
|
|
1864
|
+
onFocus: (U) => S.focus(),
|
|
1865
|
+
onBlur: (U) => S.blur()
|
|
1867
1866
|
}), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
|
|
1868
1867
|
])
|
|
1869
1868
|
]),
|
|
@@ -1871,7 +1870,7 @@ const Ro = {
|
|
|
1871
1870
|
}, 16);
|
|
1872
1871
|
};
|
|
1873
1872
|
}
|
|
1874
|
-
}),
|
|
1873
|
+
}), qo = { class: "container" }, Yo = /* @__PURE__ */ M({
|
|
1875
1874
|
__name: "df-input",
|
|
1876
1875
|
props: /* @__PURE__ */ Y({
|
|
1877
1876
|
inputType: {},
|
|
@@ -1891,7 +1890,7 @@ const Ro = {
|
|
|
1891
1890
|
cssClass: {},
|
|
1892
1891
|
clearable: { type: Boolean },
|
|
1893
1892
|
passthroughAttrs: {}
|
|
1894
|
-
},
|
|
1893
|
+
}, F(x({}, Q), {
|
|
1895
1894
|
inputType: "text",
|
|
1896
1895
|
precision: null,
|
|
1897
1896
|
step: void 0,
|
|
@@ -1900,29 +1899,29 @@ const Ro = {
|
|
|
1900
1899
|
})),
|
|
1901
1900
|
emits: ["update:modelValue", "click:clear"],
|
|
1902
1901
|
setup(e, { emit: t }) {
|
|
1903
|
-
const n = e,
|
|
1904
|
-
return (
|
|
1905
|
-
const N =
|
|
1906
|
-
return
|
|
1907
|
-
|
|
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({
|
|
1908
1907
|
key: 1,
|
|
1909
1908
|
modelValue: o(i),
|
|
1910
|
-
"onUpdate:modelValue":
|
|
1911
|
-
},
|
|
1909
|
+
"onUpdate:modelValue": w[2] || (w[2] = (T) => te(i) ? i.value = T : null)
|
|
1910
|
+
}, x(x({}, o(c)), g.value), {
|
|
1912
1911
|
density: "compact",
|
|
1913
1912
|
"control-variant": "stacked"
|
|
1914
1913
|
}), q({
|
|
1915
|
-
message:
|
|
1916
|
-
B(o(
|
|
1914
|
+
message: b(({ message: T }) => [
|
|
1915
|
+
B(o(ae), {
|
|
1917
1916
|
message: T,
|
|
1918
|
-
errors: o(
|
|
1917
|
+
errors: o(l)
|
|
1919
1918
|
}, null, 8, ["message", "errors"])
|
|
1920
1919
|
]),
|
|
1921
1920
|
_: 2
|
|
1922
1921
|
}, [
|
|
1923
1922
|
o(r).icon ? {
|
|
1924
1923
|
name: "label",
|
|
1925
|
-
fn:
|
|
1924
|
+
fn: b((T) => [
|
|
1926
1925
|
B(o(oe), {
|
|
1927
1926
|
data: T,
|
|
1928
1927
|
label: o(r)
|
|
@@ -1930,25 +1929,25 @@ const Ro = {
|
|
|
1930
1929
|
]),
|
|
1931
1930
|
key: "0"
|
|
1932
1931
|
} : void 0
|
|
1933
|
-
]), 1040, ["modelValue"])) : (
|
|
1932
|
+
]), 1040, ["modelValue"])) : (V(), D(N, O({
|
|
1934
1933
|
key: 0,
|
|
1935
1934
|
modelValue: o(i),
|
|
1936
|
-
"onUpdate:modelValue":
|
|
1935
|
+
"onUpdate:modelValue": w[0] || (w[0] = (T) => te(i) ? i.value = T : null)
|
|
1937
1936
|
}, o(c), {
|
|
1938
1937
|
type: o(u),
|
|
1939
|
-
onBlur:
|
|
1938
|
+
onBlur: w[1] || (w[1] = (T) => p.value = !0)
|
|
1940
1939
|
}), q({
|
|
1941
|
-
message:
|
|
1942
|
-
B(o(
|
|
1940
|
+
message: b(({ message: T }) => [
|
|
1941
|
+
B(o(ae), {
|
|
1943
1942
|
message: T,
|
|
1944
|
-
errors: o(
|
|
1943
|
+
errors: o(l)
|
|
1945
1944
|
}, null, 8, ["message", "errors"])
|
|
1946
1945
|
]),
|
|
1947
1946
|
_: 2
|
|
1948
1947
|
}, [
|
|
1949
1948
|
o(r).icon ? {
|
|
1950
1949
|
name: "label",
|
|
1951
|
-
fn:
|
|
1950
|
+
fn: b((T) => [
|
|
1952
1951
|
B(o(oe), {
|
|
1953
1952
|
data: T,
|
|
1954
1953
|
label: o(r)
|
|
@@ -1960,7 +1959,7 @@ const Ro = {
|
|
|
1960
1959
|
]);
|
|
1961
1960
|
};
|
|
1962
1961
|
}
|
|
1963
|
-
}),
|
|
1962
|
+
}), Qo = /* @__PURE__ */ se(Yo, [["__scopeId", "data-v-a3a9a978"]]), Zo = { class: "editor-container" }, Jo = { class: "editor-container__editor" }, ea = { ref: "editorElement" }, ta = /* @__PURE__ */ M({
|
|
1964
1963
|
__name: "ck-editor-custom",
|
|
1965
1964
|
props: {
|
|
1966
1965
|
modelValue: { default: "" },
|
|
@@ -1969,10 +1968,10 @@ const Ro = {
|
|
|
1969
1968
|
},
|
|
1970
1969
|
emits: ["update:modelValue"],
|
|
1971
1970
|
setup(e, { expose: t, emit: n }) {
|
|
1972
|
-
|
|
1971
|
+
mt((s) => ({
|
|
1973
1972
|
"3d4d5a06": s.minHeight
|
|
1974
1973
|
}));
|
|
1975
|
-
const
|
|
1974
|
+
const a = n, l = E(!1), r = cn, u = {
|
|
1976
1975
|
toolbar: {
|
|
1977
1976
|
items: [
|
|
1978
1977
|
"undo",
|
|
@@ -2004,7 +2003,6 @@ const Ro = {
|
|
|
2004
2003
|
shouldNotGroupWhenFull: !1
|
|
2005
2004
|
},
|
|
2006
2005
|
plugins: [
|
|
2007
|
-
kt,
|
|
2008
2006
|
Vt,
|
|
2009
2007
|
_t,
|
|
2010
2008
|
jt,
|
|
@@ -2014,11 +2012,11 @@ const Ro = {
|
|
|
2014
2012
|
It,
|
|
2015
2013
|
Pt,
|
|
2016
2014
|
Dt,
|
|
2015
|
+
xt,
|
|
2017
2016
|
$t,
|
|
2018
2017
|
St,
|
|
2019
|
-
xt,
|
|
2020
|
-
At,
|
|
2021
2018
|
Et,
|
|
2019
|
+
At,
|
|
2022
2020
|
Nt,
|
|
2023
2021
|
Ft,
|
|
2024
2022
|
Lt,
|
|
@@ -2041,10 +2039,11 @@ const Ro = {
|
|
|
2041
2039
|
tn,
|
|
2042
2040
|
nn,
|
|
2043
2041
|
on,
|
|
2044
|
-
ln,
|
|
2045
2042
|
an,
|
|
2043
|
+
ln,
|
|
2046
2044
|
rn,
|
|
2047
|
-
sn
|
|
2045
|
+
sn,
|
|
2046
|
+
un
|
|
2048
2047
|
],
|
|
2049
2048
|
balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
|
|
2050
2049
|
heading: {
|
|
@@ -2104,31 +2103,31 @@ const Ro = {
|
|
|
2104
2103
|
table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] }
|
|
2105
2104
|
};
|
|
2106
2105
|
ze(() => {
|
|
2107
|
-
|
|
2106
|
+
l.value = !0;
|
|
2108
2107
|
});
|
|
2109
2108
|
const j = (s) => {
|
|
2110
2109
|
};
|
|
2111
2110
|
return t({ onEditorReady: j }), (s, m) => {
|
|
2112
|
-
const
|
|
2113
|
-
return
|
|
2114
|
-
ne("div",
|
|
2115
|
-
ne("div",
|
|
2116
|
-
|
|
2111
|
+
const v = $("ckeditor");
|
|
2112
|
+
return V(), R("div", Zo, [
|
|
2113
|
+
ne("div", Jo, [
|
|
2114
|
+
ne("div", ea, [
|
|
2115
|
+
l.value ? (V(), D(v, {
|
|
2117
2116
|
key: 0,
|
|
2118
2117
|
"model-value": s.modelValue,
|
|
2119
2118
|
editor: o(r),
|
|
2120
2119
|
config: u,
|
|
2121
2120
|
disabled: s.disabled,
|
|
2122
|
-
style:
|
|
2121
|
+
style: Xe(`min-height: ${s.minHeight}`),
|
|
2123
2122
|
onReady: j,
|
|
2124
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
2123
|
+
"onUpdate:modelValue": m[0] || (m[0] = (h) => a("update:modelValue", h))
|
|
2125
2124
|
}, null, 8, ["model-value", "editor", "disabled", "style"])) : L("", !0)
|
|
2126
2125
|
], 512)
|
|
2127
2126
|
])
|
|
2128
2127
|
]);
|
|
2129
2128
|
};
|
|
2130
2129
|
}
|
|
2131
|
-
}),
|
|
2130
|
+
}), na = /* @__PURE__ */ M({
|
|
2132
2131
|
__name: "df-rtf-editor",
|
|
2133
2132
|
props: /* @__PURE__ */ Y({
|
|
2134
2133
|
minHeight: {},
|
|
@@ -2144,16 +2143,16 @@ const Ro = {
|
|
|
2144
2143
|
cssClass: {},
|
|
2145
2144
|
clearable: { type: Boolean },
|
|
2146
2145
|
passthroughAttrs: {}
|
|
2147
|
-
},
|
|
2146
|
+
}, F(x({}, Q), { minHeight: void 0 })),
|
|
2148
2147
|
emits: ["update:modelValue", "click:clear"],
|
|
2149
2148
|
setup(e, { emit: t }) {
|
|
2150
|
-
const n = e,
|
|
2151
|
-
return (p, i) => (
|
|
2152
|
-
default:
|
|
2153
|
-
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({
|
|
2154
2153
|
ref: "$editor",
|
|
2155
|
-
modelValue: o(
|
|
2156
|
-
"onUpdate:modelValue": i[0] || (i[0] = (u) => te(
|
|
2154
|
+
modelValue: o(l),
|
|
2155
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => te(l) ? l.value = u : null),
|
|
2157
2156
|
class: { "mt-8": !!p.label },
|
|
2158
2157
|
"min-height": p.minHeight,
|
|
2159
2158
|
disabled: o(r).disabled
|
|
@@ -2166,19 +2165,19 @@ const Ro = {
|
|
|
2166
2165
|
}, 16));
|
|
2167
2166
|
}
|
|
2168
2167
|
});
|
|
2169
|
-
function
|
|
2168
|
+
function oa(e) {
|
|
2170
2169
|
return e.map((t) => ({ value: t.id, title: t.text, icon: t.icon }));
|
|
2171
2170
|
}
|
|
2172
2171
|
function J(e, t) {
|
|
2173
2172
|
var n;
|
|
2174
|
-
return e == null || Ue(e) && e.length === 0 ? null : t ?
|
|
2173
|
+
return e == null || Ue(e) && e.length === 0 ? null : t ? Ge(e) : Ue(e) ? (n = qe(e)) != null ? n : null : e;
|
|
2175
2174
|
}
|
|
2176
2175
|
function ke(e, t) {
|
|
2177
2176
|
if (t == null) return [];
|
|
2178
|
-
const n =
|
|
2179
|
-
return e.filter((
|
|
2177
|
+
const n = Ge(t);
|
|
2178
|
+
return e.filter((a) => n.some((l) => l === a.id));
|
|
2180
2179
|
}
|
|
2181
|
-
function we(e, t, n,
|
|
2180
|
+
function we(e, t, n, a, l) {
|
|
2182
2181
|
var p;
|
|
2183
2182
|
const r = J(e, n);
|
|
2184
2183
|
if (r == null) {
|
|
@@ -2186,18 +2185,18 @@ function we(e, t, n, l, a) {
|
|
|
2186
2185
|
return;
|
|
2187
2186
|
}
|
|
2188
2187
|
if (n)
|
|
2189
|
-
|
|
2190
|
-
else if (
|
|
2188
|
+
a ? t.value = r : t.value = ke(l, r).map((i) => i.id);
|
|
2189
|
+
else if (a)
|
|
2191
2190
|
t.value = r;
|
|
2192
2191
|
else {
|
|
2193
|
-
const i =
|
|
2192
|
+
const i = qe(ke(l, r));
|
|
2194
2193
|
t.value = (p = i == null ? void 0 : i.id) != null ? p : null;
|
|
2195
2194
|
}
|
|
2196
2195
|
}
|
|
2197
|
-
const
|
|
2196
|
+
const aa = {
|
|
2198
2197
|
key: 0,
|
|
2199
2198
|
class: "me-1"
|
|
2200
|
-
},
|
|
2199
|
+
}, la = /* @__PURE__ */ M({
|
|
2201
2200
|
__name: "df-select",
|
|
2202
2201
|
props: /* @__PURE__ */ Y({
|
|
2203
2202
|
choices: {},
|
|
@@ -2217,7 +2216,7 @@ const il = {
|
|
|
2217
2216
|
cssClass: {},
|
|
2218
2217
|
clearable: { type: Boolean },
|
|
2219
2218
|
passthroughAttrs: {}
|
|
2220
|
-
},
|
|
2219
|
+
}, F(x({}, Q), {
|
|
2221
2220
|
choices: void 0,
|
|
2222
2221
|
multiple: !1,
|
|
2223
2222
|
allowTags: !1,
|
|
@@ -2226,61 +2225,61 @@ const il = {
|
|
|
2226
2225
|
})),
|
|
2227
2226
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
2228
2227
|
setup(e, { emit: t }) {
|
|
2229
|
-
const n = e, { choices:
|
|
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));
|
|
2230
2229
|
function z(C) {
|
|
2231
2230
|
u("update:modelValueDisplay", ke(N.value, C));
|
|
2232
2231
|
}
|
|
2233
2232
|
let f = !1;
|
|
2234
2233
|
function d(C) {
|
|
2235
|
-
f = !0,
|
|
2234
|
+
f = !0, v.value = C, Ne(() => {
|
|
2236
2235
|
f = !1;
|
|
2237
2236
|
});
|
|
2238
2237
|
}
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
const I = J(C,
|
|
2238
|
+
ie(g, (C) => {
|
|
2239
|
+
h.value.readonly || Ne(() => {
|
|
2240
|
+
const I = J(C, l.value);
|
|
2242
2241
|
z(I), d(I);
|
|
2243
2242
|
});
|
|
2244
|
-
}, { deep: !0 }),
|
|
2243
|
+
}, { deep: !0 }), ie(v, (C) => {
|
|
2245
2244
|
if (!f) {
|
|
2246
|
-
const I = J(C,
|
|
2247
|
-
we(I,
|
|
2245
|
+
const I = J(C, l.value);
|
|
2246
|
+
we(I, g, l.value, !1, N.value);
|
|
2248
2247
|
}
|
|
2249
2248
|
}, { deep: !0 });
|
|
2250
|
-
function
|
|
2251
|
-
if (
|
|
2252
|
-
const C = J(
|
|
2253
|
-
we(C,
|
|
2249
|
+
function S() {
|
|
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);
|
|
2254
2253
|
}
|
|
2255
2254
|
function U(C) {
|
|
2256
2255
|
let I;
|
|
2257
|
-
|
|
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);
|
|
2258
2257
|
}
|
|
2259
|
-
function
|
|
2260
|
-
return
|
|
2261
|
-
if (!(
|
|
2262
|
-
|
|
2258
|
+
function ue(C, I) {
|
|
2259
|
+
return he(this, null, function* () {
|
|
2260
|
+
if (!(a.value || n.fetchChoices === void 0)) {
|
|
2261
|
+
A.value = !0;
|
|
2263
2262
|
try {
|
|
2264
|
-
const
|
|
2265
|
-
|
|
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;
|
|
2266
2265
|
} finally {
|
|
2267
|
-
|
|
2266
|
+
A.value = !1;
|
|
2268
2267
|
}
|
|
2269
2268
|
}
|
|
2270
2269
|
});
|
|
2271
2270
|
}
|
|
2272
|
-
function
|
|
2273
|
-
let C =
|
|
2274
|
-
!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);
|
|
2275
2274
|
}
|
|
2276
|
-
return
|
|
2277
|
-
|
|
2275
|
+
return ce(), n.fetchChoices !== void 0 && ue(void 0, v.value).then(() => {
|
|
2276
|
+
ce();
|
|
2278
2277
|
}), (C, I) => {
|
|
2279
|
-
const
|
|
2280
|
-
return o(c) !== o(H).SUPPRESS ? (
|
|
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({
|
|
2281
2280
|
key: 0,
|
|
2282
|
-
modelValue:
|
|
2283
|
-
"onUpdate:modelValue": I[0] || (I[0] = (
|
|
2281
|
+
modelValue: g.value,
|
|
2282
|
+
"onUpdate:modelValue": I[0] || (I[0] = (P) => g.value = P),
|
|
2284
2283
|
class: [
|
|
2285
2284
|
o(i),
|
|
2286
2285
|
{
|
|
@@ -2290,60 +2289,60 @@ const il = {
|
|
|
2290
2289
|
],
|
|
2291
2290
|
items: T.value,
|
|
2292
2291
|
"return-object": !1
|
|
2293
|
-
}, o(
|
|
2294
|
-
label: o(
|
|
2292
|
+
}, o(h), {
|
|
2293
|
+
label: o(h).label,
|
|
2295
2294
|
chips: "",
|
|
2296
2295
|
"auto-select-first": !0,
|
|
2297
|
-
"closable-chips": o(p) || o(
|
|
2296
|
+
"closable-chips": o(p) || o(l) && g.value.length > 1,
|
|
2298
2297
|
clearable: o(p),
|
|
2299
|
-
multiple: o(
|
|
2300
|
-
loading:
|
|
2298
|
+
multiple: o(l),
|
|
2299
|
+
loading: A.value,
|
|
2301
2300
|
"hide-selected": !1,
|
|
2302
|
-
"aria-describedby": o(
|
|
2301
|
+
"aria-describedby": o(h).helpText ? `${o(h).name}-help` : null,
|
|
2303
2302
|
"menu-props": { maxHeight: "400" },
|
|
2304
2303
|
"hide-details": "auto",
|
|
2305
|
-
"onUpdate:search": I[1] || (I[1] = (
|
|
2306
|
-
"onUpdate:modelValue":
|
|
2307
|
-
"onClick:clear": I[2] || (I[2] = (
|
|
2308
|
-
onBlur: I[3] || (I[3] = (
|
|
2304
|
+
"onUpdate:search": I[1] || (I[1] = (P) => ue(P, void 0)),
|
|
2305
|
+
"onUpdate:modelValue": S,
|
|
2306
|
+
"onClick:clear": I[2] || (I[2] = (P) => g.value = null),
|
|
2307
|
+
onBlur: I[3] || (I[3] = (P) => m.value = !0)
|
|
2309
2308
|
}), q({
|
|
2310
|
-
chip:
|
|
2311
|
-
(
|
|
2312
|
-
key:
|
|
2309
|
+
chip: b(({ item: P }) => [
|
|
2310
|
+
(V(), D(k, {
|
|
2311
|
+
key: P.value,
|
|
2313
2312
|
label: "",
|
|
2314
2313
|
size: "small",
|
|
2315
2314
|
class: "d-flex align-middle",
|
|
2316
|
-
variant: o(
|
|
2317
|
-
closable: o(
|
|
2318
|
-
"onClick:close": (
|
|
2315
|
+
variant: o(l) ? "tonal" : "text",
|
|
2316
|
+
closable: o(l),
|
|
2317
|
+
"onClick:close": (le) => U(P.value)
|
|
2319
2318
|
}, {
|
|
2320
|
-
prepend:
|
|
2321
|
-
var
|
|
2319
|
+
prepend: b(() => {
|
|
2320
|
+
var le;
|
|
2322
2321
|
return [
|
|
2323
|
-
(
|
|
2322
|
+
(le = P.raw) != null && le.icon ? (V(), D(o(Te), {
|
|
2324
2323
|
key: 0,
|
|
2325
2324
|
class: "me-1 action-icon d-inline-block",
|
|
2326
|
-
name:
|
|
2325
|
+
name: P.raw.icon
|
|
2327
2326
|
}, null, 8, ["name"])) : L("", !0)
|
|
2328
2327
|
];
|
|
2329
2328
|
}),
|
|
2330
|
-
default:
|
|
2329
|
+
default: b(() => [
|
|
2331
2330
|
ne("span", {
|
|
2332
|
-
class:
|
|
2333
|
-
},
|
|
2331
|
+
class: Ie({ "text-body-1": !o(l) })
|
|
2332
|
+
}, Be(P.title), 3)
|
|
2334
2333
|
]),
|
|
2335
2334
|
_: 2
|
|
2336
2335
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
2337
2336
|
]),
|
|
2338
|
-
item:
|
|
2339
|
-
B(Z, X(G(
|
|
2340
|
-
prepend:
|
|
2337
|
+
item: b(({ props: P, item: le }) => [
|
|
2338
|
+
B(Z, X(G(P)), {
|
|
2339
|
+
prepend: b(() => {
|
|
2341
2340
|
var De;
|
|
2342
2341
|
return [
|
|
2343
|
-
(De =
|
|
2344
|
-
B(o(
|
|
2342
|
+
(De = le.raw) != null && De.icon ? (V(), R("span", aa, [
|
|
2343
|
+
B(o(Te), {
|
|
2345
2344
|
class: "action-icon d-inline-block",
|
|
2346
|
-
name:
|
|
2345
|
+
name: le.raw.icon
|
|
2347
2346
|
}, null, 8, ["name"])
|
|
2348
2347
|
])) : L("", !0)
|
|
2349
2348
|
];
|
|
@@ -2351,9 +2350,9 @@ const il = {
|
|
|
2351
2350
|
_: 2
|
|
2352
2351
|
}, 1040)
|
|
2353
2352
|
]),
|
|
2354
|
-
message:
|
|
2355
|
-
B(o(
|
|
2356
|
-
message:
|
|
2353
|
+
message: b(({ message: P }) => [
|
|
2354
|
+
B(o(ae), {
|
|
2355
|
+
message: P,
|
|
2357
2356
|
errors: o(j)
|
|
2358
2357
|
}, null, 8, ["message", "errors"])
|
|
2359
2358
|
]),
|
|
@@ -2361,9 +2360,9 @@ const il = {
|
|
|
2361
2360
|
}, [
|
|
2362
2361
|
o(s).icon ? {
|
|
2363
2362
|
name: "label",
|
|
2364
|
-
fn:
|
|
2363
|
+
fn: b((P) => [
|
|
2365
2364
|
B(o(oe), {
|
|
2366
|
-
data:
|
|
2365
|
+
data: P,
|
|
2367
2366
|
label: o(s)
|
|
2368
2367
|
}, null, 8, ["data", "label"])
|
|
2369
2368
|
]),
|
|
@@ -2371,22 +2370,22 @@ const il = {
|
|
|
2371
2370
|
} : void 0,
|
|
2372
2371
|
C.$slots["append-inner"] ? {
|
|
2373
2372
|
name: "append-inner",
|
|
2374
|
-
fn:
|
|
2375
|
-
|
|
2373
|
+
fn: b((P) => [
|
|
2374
|
+
re(C.$slots, "append-inner", X(G(P)), void 0, !0)
|
|
2376
2375
|
]),
|
|
2377
2376
|
key: "1"
|
|
2378
2377
|
} : void 0,
|
|
2379
2378
|
C.$slots["prepend-inner"] ? {
|
|
2380
2379
|
name: "prepend-inner",
|
|
2381
|
-
fn:
|
|
2382
|
-
|
|
2380
|
+
fn: b((P) => [
|
|
2381
|
+
re(C.$slots, "prepend-inner", X(G(P)), void 0, !0)
|
|
2383
2382
|
]),
|
|
2384
2383
|
key: "2"
|
|
2385
2384
|
} : void 0
|
|
2386
2385
|
]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : L("", !0);
|
|
2387
2386
|
};
|
|
2388
2387
|
}
|
|
2389
|
-
}),
|
|
2388
|
+
}), ra = /* @__PURE__ */ se(la, [["__scopeId", "data-v-928dac22"]]), ia = { class: "container" }, sa = /* @__PURE__ */ M({
|
|
2390
2389
|
__name: "df-text-area",
|
|
2391
2390
|
props: /* @__PURE__ */ Y({
|
|
2392
2391
|
rows: {},
|
|
@@ -2403,20 +2402,20 @@ const il = {
|
|
|
2403
2402
|
cssClass: {},
|
|
2404
2403
|
clearable: { type: Boolean },
|
|
2405
2404
|
passthroughAttrs: {}
|
|
2406
|
-
},
|
|
2405
|
+
}, F(x({}, Q), {
|
|
2407
2406
|
rows: void 0,
|
|
2408
2407
|
maxRows: void 0
|
|
2409
2408
|
})),
|
|
2410
2409
|
emits: ["update:modelValue", "click:clear"],
|
|
2411
2410
|
setup(e, { emit: t }) {
|
|
2412
|
-
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);
|
|
2413
2412
|
return (s, m) => {
|
|
2414
|
-
const
|
|
2415
|
-
return
|
|
2416
|
-
o(j) !== o(H).SUPPRESS ? (
|
|
2413
|
+
const v = $("v-textarea");
|
|
2414
|
+
return V(), R("div", ia, [
|
|
2415
|
+
o(j) !== o(H).SUPPRESS ? (V(), D(v, O({
|
|
2417
2416
|
key: 0,
|
|
2418
2417
|
modelValue: o(i),
|
|
2419
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
2418
|
+
"onUpdate:modelValue": m[0] || (m[0] = (h) => te(i) ? i.value = h : null),
|
|
2420
2419
|
class: [
|
|
2421
2420
|
o(u),
|
|
2422
2421
|
{
|
|
@@ -2428,21 +2427,21 @@ const il = {
|
|
|
2428
2427
|
"auto-grow": (s.maxRows || 0) > 0,
|
|
2429
2428
|
"max-rows": s.maxRows
|
|
2430
2429
|
}, o(c), {
|
|
2431
|
-
onBlur: m[1] || (m[1] = (
|
|
2430
|
+
onBlur: m[1] || (m[1] = (h) => p.value = !0)
|
|
2432
2431
|
}), q({
|
|
2433
|
-
message:
|
|
2434
|
-
B(o(
|
|
2435
|
-
message:
|
|
2436
|
-
errors: o(
|
|
2432
|
+
message: b(({ message: h }) => [
|
|
2433
|
+
B(o(ae), {
|
|
2434
|
+
message: h,
|
|
2435
|
+
errors: o(l)
|
|
2437
2436
|
}, null, 8, ["message", "errors"])
|
|
2438
2437
|
]),
|
|
2439
2438
|
_: 2
|
|
2440
2439
|
}, [
|
|
2441
2440
|
o(r).icon ? {
|
|
2442
2441
|
name: "label",
|
|
2443
|
-
fn:
|
|
2442
|
+
fn: b((h) => [
|
|
2444
2443
|
B(o(oe), {
|
|
2445
|
-
data:
|
|
2444
|
+
data: h,
|
|
2446
2445
|
label: o(r)
|
|
2447
2446
|
}, null, 8, ["data", "label"])
|
|
2448
2447
|
]),
|
|
@@ -2452,82 +2451,82 @@ const il = {
|
|
|
2452
2451
|
]);
|
|
2453
2452
|
};
|
|
2454
2453
|
}
|
|
2455
|
-
}),
|
|
2454
|
+
}), ua = /* @__PURE__ */ se(sa, [["__scopeId", "data-v-b2f125f8"]]), ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2456
2455
|
__proto__: null,
|
|
2457
|
-
DfActions:
|
|
2458
|
-
DfCheckbox:
|
|
2459
|
-
DfColor:
|
|
2460
|
-
DfDateTime:
|
|
2461
|
-
DfFile:
|
|
2462
|
-
DfInput:
|
|
2463
|
-
DfRtfEditor:
|
|
2464
|
-
DfSelect:
|
|
2465
|
-
DfTextArea:
|
|
2466
|
-
}, 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({
|
|
2467
2466
|
__proto__: null,
|
|
2468
|
-
VAutocomplete:
|
|
2469
|
-
VBtn:
|
|
2470
|
-
VCheckbox:
|
|
2471
|
-
VChip:
|
|
2472
|
-
VCol:
|
|
2473
|
-
VColorPicker:
|
|
2474
|
-
VCombobox:
|
|
2475
|
-
VConfirmEdit:
|
|
2476
|
-
VDatePicker:
|
|
2477
|
-
VField:
|
|
2478
|
-
VFileInput:
|
|
2479
|
-
VIcon:
|
|
2480
|
-
VImg:
|
|
2481
|
-
VInput:
|
|
2482
|
-
VListItem:
|
|
2483
|
-
VMenu:
|
|
2484
|
-
VNumberInput:
|
|
2485
|
-
VProgressLinear:
|
|
2486
|
-
VRow:
|
|
2487
|
-
VSelect:
|
|
2488
|
-
VSwitch:
|
|
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,
|
|
2489
2488
|
VTextField: Sn,
|
|
2490
2489
|
VTextarea: $n,
|
|
2491
|
-
VTimePicker:
|
|
2492
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2490
|
+
VTimePicker: En
|
|
2491
|
+
}, Symbol.toStringTag, { value: "Module" })), Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2493
2492
|
__proto__: null
|
|
2494
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2493
|
+
}, Symbol.toStringTag, { value: "Module" })), Ka = {
|
|
2495
2494
|
install: (e, t) => {
|
|
2496
|
-
var n,
|
|
2497
|
-
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));
|
|
2498
2497
|
}
|
|
2499
2498
|
};
|
|
2500
2499
|
export {
|
|
2501
2500
|
ye as Action,
|
|
2502
2501
|
W as ActionDisplayStyle,
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
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,
|
|
2512
2511
|
oe as DfLabel,
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2512
|
+
na as DfRtfEditor,
|
|
2513
|
+
ra as DfSelect,
|
|
2514
|
+
ua as DfTextArea,
|
|
2515
|
+
Ka as DynamicFormsInputs,
|
|
2517
2516
|
Pe as InputBase,
|
|
2518
2517
|
$o as Label,
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2518
|
+
ae as MessagesWidget,
|
|
2519
|
+
Lo as ResponsiveActionRenderOptions,
|
|
2520
|
+
Ao as ResponsiveRenderOptions,
|
|
2521
|
+
da as VuetifyComponents,
|
|
2523
2522
|
Q as defaultBaseProps,
|
|
2524
2523
|
Re as defaultDisplayStyle,
|
|
2525
|
-
|
|
2524
|
+
No as getBreakpointName,
|
|
2526
2525
|
We as responsiveBreakpoints,
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2526
|
+
ve as translatableStrings,
|
|
2527
|
+
za as translateStrings,
|
|
2528
|
+
Fo as useBreakpoint,
|
|
2530
2529
|
K as useInputBase,
|
|
2531
|
-
|
|
2530
|
+
Je as vuetifyInputsSettingsKey
|
|
2532
2531
|
};
|
|
2533
2532
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|