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