@dynamicforms/vuetify-inputs 0.6.0 → 0.6.2
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.css +1 -1
- package/dist/dynamicforms-vuetify-inputs.js +552 -574
- package/dist/dynamicforms-vuetify-inputs.js.map +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs +3 -3
- package/dist/dynamicforms-vuetify-inputs.umd.cjs.map +1 -1
- package/dist/index.d.ts +4 -2
- package/package.json +1 -1
- package/readme.md +10 -4
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var nt = Object.defineProperty, ot = Object.defineProperties;
|
|
2
|
+
var at = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ee = Object.getOwnPropertySymbols;
|
|
4
|
+
var lt = Object.prototype.hasOwnProperty, rt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ce = (e, t, n) => t in e ? nt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, S = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
lt.call(t, n) && Ce(e, n, t[n]);
|
|
8
|
+
if (Ee)
|
|
9
|
+
for (var n of Ee(t))
|
|
10
|
+
rt.call(t, n) && Ce(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var $e = (e, t, n) =>
|
|
14
|
-
var
|
|
12
|
+
}, L = (e, t) => ot(e, at(t));
|
|
13
|
+
var $e = (e, t, n) => Ce(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
|
+
var ge = (e, t, n) => new Promise((a, l) => {
|
|
15
15
|
var r = (i) => {
|
|
16
16
|
try {
|
|
17
17
|
p(n.next(i));
|
|
@@ -27,38 +27,38 @@ var ye = (e, t, n) => new Promise((a, l) => {
|
|
|
27
27
|
}, p = (i) => i.done ? a(i.value) : Promise.resolve(i.value).then(r, s);
|
|
28
28
|
p((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
31
|
-
import { defineComponent as O, mergeModels as
|
|
32
|
-
import { debounce as
|
|
33
|
-
import { CachedIcon as
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import { useDisplay as
|
|
37
|
-
import { format as
|
|
38
|
-
import { AccessibilityHelp as
|
|
39
|
-
import { VAutocomplete as
|
|
40
|
-
import { VBtn as
|
|
41
|
-
import { VCheckbox as
|
|
42
|
-
import { VChip as
|
|
43
|
-
import { VCombobox as
|
|
44
|
-
import { VColorPicker as
|
|
45
|
-
import { VConfirmEdit as
|
|
46
|
-
import { VDatePicker as
|
|
30
|
+
import * as Ae from "vue";
|
|
31
|
+
import { defineComponent as O, mergeModels as Ne, useModel as it, ref as N, watch as se, onMounted as Ke, markRaw as st, onBeforeUnmount as Xe, createBlock as D, openBlock as V, resolveDynamicComponent as he, version as ut, isRef as ne, computed as w, resolveComponent as A, createElementBlock as W, normalizeClass as G, createCommentVNode as U, Fragment as Ie, unref as o, createTextVNode as ct, toDisplayString as De, inject as Te, h as we, createSlots as Pe, withCtx as g, createVNode as I, renderSlot as ie, normalizeProps as J, guardReactiveProps as ee, createElementVNode as oe, renderList as dt, withModifiers as mt, mergeDefaults as q, mergeProps as R, normalizeStyle as Ge, toRefs as je, withKeys as Fe, useCssVars as pt, nextTick as Me } from "vue";
|
|
32
|
+
import { debounce as ft, isString as te, isEmpty as fe, isObjectLike as vt, isBoolean as Le, clone as ht, toNumber as Ue, isNaN as Oe, isArray as Re, castArray as qe, first as Ye, unionBy as bt } from "lodash-es";
|
|
33
|
+
import { CachedIcon as be } from "vue-cached-icon";
|
|
34
|
+
import We, { MdString as gt, ValidationErrorRenderContent as wt, DisplayMode as K, Action as yt } from "@dynamicforms/vue-forms";
|
|
35
|
+
import Qe from "vue-markdown-render";
|
|
36
|
+
import { useDisplay as kt } from "vuetify";
|
|
37
|
+
import { format as de, parse as Vt } from "date-fns";
|
|
38
|
+
import { AccessibilityHelp as jt, Alignment as Ct, AutoImage as Tt, AutoLink as _t, Autosave as Bt, BalloonToolbar as It, BlockQuote as Pt, Bold as Dt, CloudServices as xt, Essentials as St, GeneralHtmlSupport as Et, Heading as $t, HorizontalLine as At, ImageBlock as Nt, ImageCaption as Ft, ImageInline as Mt, ImageInsertViaUrl as Lt, ImageResize as Ut, ImageStyle as Ot, ImageToolbar as Rt, ImageUpload as Wt, Indent as zt, IndentBlock as Ht, Italic as Kt, Link as Xt, List as Gt, Autoformat as qt, MediaEmbed as Yt, Paragraph as Qt, PasteFromMarkdownExperimental as Zt, PasteFromOffice as Jt, SelectAll as en, Style as tn, Table as nn, TableCellProperties as on, TableColumnResize as an, TableProperties as ln, TableToolbar as rn, Undo as sn, TextTransformation as un, Base64UploadAdapter as cn, ClassicEditor as dn } from "ckeditor5";
|
|
39
|
+
import { VAutocomplete as mn } from "vuetify/components/VAutocomplete";
|
|
40
|
+
import { VBtn as pn } from "vuetify/components/VBtn";
|
|
41
|
+
import { VCheckbox as fn } from "vuetify/components/VCheckbox";
|
|
42
|
+
import { VChip as vn } from "vuetify/components/VChip";
|
|
43
|
+
import { VCombobox as hn } from "vuetify/components/VCombobox";
|
|
44
|
+
import { VColorPicker as bn } from "vuetify/components/VColorPicker";
|
|
45
|
+
import { VConfirmEdit as gn } from "vuetify/components/VConfirmEdit";
|
|
46
|
+
import { VDatePicker as wn } from "vuetify/components/VDatePicker";
|
|
47
47
|
import { VField as yn } from "vuetify/components/VField";
|
|
48
|
-
import { VFileInput as
|
|
49
|
-
import { VCol as
|
|
50
|
-
import { VIcon as
|
|
51
|
-
import { VImg as
|
|
52
|
-
import { VInput as
|
|
53
|
-
import { VListItem as
|
|
54
|
-
import { VMenu as
|
|
55
|
-
import { VNumberInput as
|
|
56
|
-
import { VProgressLinear as
|
|
57
|
-
import { VSelect as
|
|
58
|
-
import { VSwitch as
|
|
59
|
-
import { VTextarea as
|
|
48
|
+
import { VFileInput as kn } from "vuetify/components/VFileInput";
|
|
49
|
+
import { VCol as Vn, VRow as jn } from "vuetify/components/VGrid";
|
|
50
|
+
import { VIcon as Cn } from "vuetify/components/VIcon";
|
|
51
|
+
import { VImg as Tn } from "vuetify/components/VImg";
|
|
52
|
+
import { VInput as _n } from "vuetify/components/VInput";
|
|
53
|
+
import { VListItem as Bn } from "vuetify/components/VList";
|
|
54
|
+
import { VMenu as In } from "vuetify/components/VMenu";
|
|
55
|
+
import { VNumberInput as Pn } from "vuetify/components/VNumberInput";
|
|
56
|
+
import { VProgressLinear as Dn } from "vuetify/components/VProgressLinear";
|
|
57
|
+
import { VSelect as xn } from "vuetify/components/VSelect";
|
|
58
|
+
import { VSwitch as Sn } from "vuetify/components/VSwitch";
|
|
59
|
+
import { VTextarea as En } from "vuetify/components/VTextarea";
|
|
60
60
|
import { VTextField as $n } from "vuetify/components/VTextField";
|
|
61
|
-
import { VTimePicker as
|
|
61
|
+
import { VTimePicker as An } from "vuetify/components/VTimePicker";
|
|
62
62
|
/**
|
|
63
63
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
64
64
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -72,9 +72,9 @@ new Array(256).fill("").map((e, t) => ("0" + t.toString(16)).slice(-2));
|
|
|
72
72
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
73
73
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
74
74
|
*/
|
|
75
|
-
function
|
|
75
|
+
function Nn(e, t) {
|
|
76
76
|
const n = e.extraPlugins || [];
|
|
77
|
-
return
|
|
77
|
+
return L(S({}, e), {
|
|
78
78
|
extraPlugins: [
|
|
79
79
|
...n,
|
|
80
80
|
...t.filter((a) => !n.includes(a))
|
|
@@ -85,25 +85,25 @@ function An(e, t) {
|
|
|
85
85
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
86
86
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
87
87
|
*/
|
|
88
|
-
function
|
|
88
|
+
function Ze(e) {
|
|
89
89
|
return !!e && /^\d+\.\d+\.\d+/.test(e);
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
93
93
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
94
94
|
*/
|
|
95
|
-
function
|
|
95
|
+
function Je(e) {
|
|
96
96
|
return e ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((t) => e.includes(t)) : !1;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
98
|
+
function Fn(e) {
|
|
99
|
+
return Ze(e) || Je(e);
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
102
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
103
103
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
104
104
|
*/
|
|
105
|
-
function
|
|
106
|
-
if (!
|
|
105
|
+
function Mn(e) {
|
|
106
|
+
if (!Ze(e))
|
|
107
107
|
throw new Error(`Invalid semantic version: ${e || "<blank>"}.`);
|
|
108
108
|
const [t, n, a] = e.split(".");
|
|
109
109
|
return {
|
|
@@ -117,9 +117,9 @@ function Fn(e) {
|
|
|
117
117
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
118
118
|
*/
|
|
119
119
|
function Ln(e) {
|
|
120
|
-
if (
|
|
120
|
+
if (Je(e))
|
|
121
121
|
return 3;
|
|
122
|
-
const { major: t } =
|
|
122
|
+
const { major: t } = Mn(e);
|
|
123
123
|
switch (!0) {
|
|
124
124
|
case t >= 44:
|
|
125
125
|
return 3;
|
|
@@ -133,9 +133,9 @@ function Ln(e) {
|
|
|
133
133
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
134
134
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
135
135
|
*/
|
|
136
|
-
function
|
|
136
|
+
function Un() {
|
|
137
137
|
const { CKEDITOR_VERSION: e, CKEDITOR: t } = window;
|
|
138
|
-
return
|
|
138
|
+
return Fn(e) ? {
|
|
139
139
|
source: t ? "cdn" : "npm",
|
|
140
140
|
version: e
|
|
141
141
|
} : null;
|
|
@@ -144,16 +144,16 @@ function Mn() {
|
|
|
144
144
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
145
145
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
146
146
|
*/
|
|
147
|
-
function
|
|
148
|
-
const e =
|
|
147
|
+
function On() {
|
|
148
|
+
const e = Un();
|
|
149
149
|
return e ? Ln(e.version) : null;
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
152
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
153
153
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
154
154
|
*/
|
|
155
|
-
function
|
|
156
|
-
switch (t || (t =
|
|
155
|
+
function et(e, t) {
|
|
156
|
+
switch (t || (t = On() || void 0), t) {
|
|
157
157
|
case 1:
|
|
158
158
|
case 2:
|
|
159
159
|
return e === void 0;
|
|
@@ -167,9 +167,9 @@ function Je(e, t) {
|
|
|
167
167
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
168
168
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
169
169
|
*/
|
|
170
|
-
function
|
|
170
|
+
function Rn(e, t) {
|
|
171
171
|
return function(a) {
|
|
172
|
-
|
|
172
|
+
et(a.config.get("licenseKey")) || a.on("collectUsageData", (l, { setUsageData: r }) => {
|
|
173
173
|
r(`integration.${e}`, t);
|
|
174
174
|
});
|
|
175
175
|
};
|
|
@@ -178,31 +178,31 @@ function On(e, t) {
|
|
|
178
178
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
179
179
|
* For licensing, see LICENSE.md.
|
|
180
180
|
*/
|
|
181
|
-
const
|
|
181
|
+
const Wn = Rn(
|
|
182
182
|
"vue",
|
|
183
183
|
{
|
|
184
184
|
version: "7.3.0",
|
|
185
|
-
frameworkVersion:
|
|
185
|
+
frameworkVersion: ut
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
/**
|
|
189
189
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
190
190
|
* For licensing, see LICENSE.md.
|
|
191
191
|
*/
|
|
192
|
-
function
|
|
193
|
-
return
|
|
192
|
+
function zn(e) {
|
|
193
|
+
return et(e.licenseKey) ? e : Nn(e, [
|
|
194
194
|
/**
|
|
195
195
|
* This part of the code is not executed in open-source implementations using a GPL key.
|
|
196
196
|
* It only runs when a specific license key is provided. If you are uncertain whether
|
|
197
197
|
* this applies to your installation, please contact our support team.
|
|
198
198
|
*/
|
|
199
|
-
|
|
199
|
+
Wn
|
|
200
200
|
]);
|
|
201
201
|
}
|
|
202
|
-
const
|
|
202
|
+
const _e = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Hn = 300, Kn = /* @__PURE__ */ O({
|
|
203
203
|
name: "CKEditor",
|
|
204
204
|
__name: "ckeditor",
|
|
205
|
-
props: /* @__PURE__ */
|
|
205
|
+
props: /* @__PURE__ */ Ne({
|
|
206
206
|
editor: {},
|
|
207
207
|
config: { default: () => ({}) },
|
|
208
208
|
tagName: { default: "div" },
|
|
@@ -212,16 +212,16 @@ const Be = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", zn = 300, Hn =
|
|
|
212
212
|
modelValue: { type: String, default: "" },
|
|
213
213
|
modelModifiers: {}
|
|
214
214
|
}),
|
|
215
|
-
emits: /* @__PURE__ */
|
|
215
|
+
emits: /* @__PURE__ */ Ne(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
|
|
216
216
|
setup(e, { expose: t, emit: n }) {
|
|
217
|
-
const a =
|
|
217
|
+
const a = it(e, "modelValue"), l = e, r = n, s = N(), p = N(), i = N();
|
|
218
218
|
t({
|
|
219
219
|
instance: p,
|
|
220
220
|
lastEditorData: i
|
|
221
|
-
}),
|
|
221
|
+
}), se(a, (m) => {
|
|
222
222
|
p.value && m !== i.value && p.value.data.set(m);
|
|
223
|
-
}),
|
|
224
|
-
m ? p.value.enableReadOnlyMode(
|
|
223
|
+
}), se(() => l.disabled, (m) => {
|
|
224
|
+
m ? p.value.enableReadOnlyMode(_e) : p.value.disableReadOnlyMode(_e);
|
|
225
225
|
});
|
|
226
226
|
function d() {
|
|
227
227
|
const m = window.CKEDITOR_VERSION;
|
|
@@ -231,30 +231,30 @@ const Be = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", zn = 300, Hn =
|
|
|
231
231
|
b >= 42 || m.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
232
232
|
}
|
|
233
233
|
function v(m) {
|
|
234
|
-
const b =
|
|
234
|
+
const b = ft((c) => {
|
|
235
235
|
if (l.disableTwoWayDataBinding)
|
|
236
236
|
return;
|
|
237
237
|
const T = i.value = m.data.get();
|
|
238
238
|
r("update:modelValue", T, c, m), r("input", T, c, m);
|
|
239
|
-
},
|
|
239
|
+
}, Hn, { leading: !0 });
|
|
240
240
|
m.model.document.on("change:data", b), m.editing.view.document.on("focus", (c) => {
|
|
241
241
|
r("focus", c, m);
|
|
242
242
|
}), m.editing.view.document.on("blur", (c) => {
|
|
243
243
|
r("blur", c, m);
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
|
-
return d(),
|
|
247
|
-
const m =
|
|
246
|
+
return d(), Ke(() => {
|
|
247
|
+
const m = zn(
|
|
248
248
|
Object.assign({}, l.config)
|
|
249
249
|
);
|
|
250
250
|
a.value && (m.initialData = a.value), l.editor.create(s.value, m).then((b) => {
|
|
251
|
-
p.value =
|
|
251
|
+
p.value = st(b), v(b), a.value !== m.initialData && b.data.set(a.value), l.disabled && b.enableReadOnlyMode(_e), r("ready", b);
|
|
252
252
|
}).catch((b) => {
|
|
253
253
|
console.error(b);
|
|
254
254
|
});
|
|
255
|
-
}),
|
|
255
|
+
}), Xe(() => {
|
|
256
256
|
p.value && (p.value.destroy(), p.value = void 0), r("destroy");
|
|
257
|
-
}), (m, b) => (
|
|
257
|
+
}), (m, b) => (V(), D(he(m.tagName), {
|
|
258
258
|
ref_key: "element",
|
|
259
259
|
ref: s
|
|
260
260
|
}, null, 512));
|
|
@@ -265,24 +265,24 @@ const Be = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", zn = 300, Hn =
|
|
|
265
265
|
* For licensing, see LICENSE.md.
|
|
266
266
|
*/
|
|
267
267
|
/* istanbul ignore if -- @preserve */
|
|
268
|
-
if (!
|
|
268
|
+
if (!Ae.version || !Ae.version.startsWith("3."))
|
|
269
269
|
throw new Error(
|
|
270
270
|
"The CKEditor plugin works only with Vue 3+. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v3.html"
|
|
271
271
|
);
|
|
272
|
-
const
|
|
272
|
+
const Xn = {
|
|
273
273
|
/**
|
|
274
274
|
* Installs the plugin, registering the `<ckeditor>` component.
|
|
275
275
|
*
|
|
276
276
|
* @param app The application instance.
|
|
277
277
|
*/
|
|
278
278
|
install(e) {
|
|
279
|
-
e.component("Ckeditor",
|
|
279
|
+
e.component("Ckeditor", Kn);
|
|
280
280
|
}
|
|
281
281
|
};
|
|
282
|
-
function
|
|
282
|
+
function Gn(e) {
|
|
283
283
|
return e.one !== void 0;
|
|
284
284
|
}
|
|
285
|
-
const
|
|
285
|
+
const qn = {
|
|
286
286
|
lessThanXSeconds: {
|
|
287
287
|
present: {
|
|
288
288
|
one: "manj kot {{count}} sekunda",
|
|
@@ -559,7 +559,7 @@ const Gn = {
|
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
};
|
|
562
|
-
function
|
|
562
|
+
function Yn(e) {
|
|
563
563
|
switch (e % 100) {
|
|
564
564
|
case 1:
|
|
565
565
|
return "one";
|
|
@@ -572,53 +572,53 @@ function qn(e) {
|
|
|
572
572
|
return "other";
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
const
|
|
575
|
+
const Qn = (e, t, n) => {
|
|
576
576
|
let a = "", l = "present";
|
|
577
577
|
n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (l = "future", a = "čez ") : (l = "past", a = "pred "));
|
|
578
|
-
const r =
|
|
578
|
+
const r = qn[e];
|
|
579
579
|
if (typeof r == "string")
|
|
580
580
|
a += r;
|
|
581
581
|
else {
|
|
582
|
-
const s =
|
|
583
|
-
|
|
582
|
+
const s = Yn(t);
|
|
583
|
+
Gn(r) ? a += r[s].replace("{{count}}", String(t)) : a += r[l][s].replace("{{count}}", String(t));
|
|
584
584
|
}
|
|
585
585
|
return a;
|
|
586
586
|
};
|
|
587
|
-
function
|
|
587
|
+
function Be(e) {
|
|
588
588
|
return (t = {}) => {
|
|
589
589
|
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
590
590
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
591
591
|
};
|
|
592
592
|
}
|
|
593
|
-
const
|
|
593
|
+
const Zn = {
|
|
594
594
|
full: "EEEE, dd. MMMM y",
|
|
595
595
|
long: "dd. MMMM y",
|
|
596
596
|
medium: "d. MMM y",
|
|
597
597
|
short: "d. MM. yy"
|
|
598
|
-
},
|
|
598
|
+
}, Jn = {
|
|
599
599
|
full: "HH:mm:ss zzzz",
|
|
600
600
|
long: "HH:mm:ss z",
|
|
601
601
|
medium: "HH:mm:ss",
|
|
602
602
|
short: "HH:mm"
|
|
603
|
-
},
|
|
603
|
+
}, eo = {
|
|
604
604
|
full: "{{date}} {{time}}",
|
|
605
605
|
long: "{{date}} {{time}}",
|
|
606
606
|
medium: "{{date}} {{time}}",
|
|
607
607
|
short: "{{date}} {{time}}"
|
|
608
|
-
},
|
|
609
|
-
date:
|
|
610
|
-
formats: Qn,
|
|
611
|
-
defaultWidth: "full"
|
|
612
|
-
}),
|
|
613
|
-
time: Ie({
|
|
608
|
+
}, to = {
|
|
609
|
+
date: Be({
|
|
614
610
|
formats: Zn,
|
|
615
611
|
defaultWidth: "full"
|
|
616
612
|
}),
|
|
617
|
-
|
|
613
|
+
time: Be({
|
|
618
614
|
formats: Jn,
|
|
619
615
|
defaultWidth: "full"
|
|
616
|
+
}),
|
|
617
|
+
dateTime: Be({
|
|
618
|
+
formats: eo,
|
|
619
|
+
defaultWidth: "full"
|
|
620
620
|
})
|
|
621
|
-
},
|
|
621
|
+
}, no = {
|
|
622
622
|
lastWeek: (e) => {
|
|
623
623
|
switch (e.getDay()) {
|
|
624
624
|
case 0:
|
|
@@ -647,11 +647,11 @@ const Qn = {
|
|
|
647
647
|
}
|
|
648
648
|
},
|
|
649
649
|
other: "P"
|
|
650
|
-
},
|
|
651
|
-
const l =
|
|
650
|
+
}, oo = (e, t, n, a) => {
|
|
651
|
+
const l = no[e];
|
|
652
652
|
return typeof l == "function" ? l(t) : l;
|
|
653
653
|
};
|
|
654
|
-
function
|
|
654
|
+
function me(e) {
|
|
655
655
|
return (t, n) => {
|
|
656
656
|
const a = n != null && n.context ? String(n.context) : "standalone";
|
|
657
657
|
let l;
|
|
@@ -666,15 +666,15 @@ function pe(e) {
|
|
|
666
666
|
return l[r];
|
|
667
667
|
};
|
|
668
668
|
}
|
|
669
|
-
const
|
|
669
|
+
const ao = {
|
|
670
670
|
narrow: ["pr. n. št.", "po n. št."],
|
|
671
671
|
abbreviated: ["pr. n. št.", "po n. št."],
|
|
672
672
|
wide: ["pred našim štetjem", "po našem štetju"]
|
|
673
|
-
},
|
|
673
|
+
}, lo = {
|
|
674
674
|
narrow: ["1", "2", "3", "4"],
|
|
675
675
|
abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."],
|
|
676
676
|
wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"]
|
|
677
|
-
},
|
|
677
|
+
}, ro = {
|
|
678
678
|
narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
|
679
679
|
abbreviated: [
|
|
680
680
|
"jan.",
|
|
@@ -704,7 +704,7 @@ const oo = {
|
|
|
704
704
|
"november",
|
|
705
705
|
"december"
|
|
706
706
|
]
|
|
707
|
-
},
|
|
707
|
+
}, io = {
|
|
708
708
|
narrow: ["n", "p", "t", "s", "č", "p", "s"],
|
|
709
709
|
short: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
|
710
710
|
abbreviated: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
|
@@ -717,7 +717,7 @@ const oo = {
|
|
|
717
717
|
"petek",
|
|
718
718
|
"sobota"
|
|
719
719
|
]
|
|
720
|
-
},
|
|
720
|
+
}, so = {
|
|
721
721
|
narrow: {
|
|
722
722
|
am: "d",
|
|
723
723
|
pm: "p",
|
|
@@ -748,7 +748,7 @@ const oo = {
|
|
|
748
748
|
evening: "večer",
|
|
749
749
|
night: "noč"
|
|
750
750
|
}
|
|
751
|
-
},
|
|
751
|
+
}, uo = {
|
|
752
752
|
narrow: {
|
|
753
753
|
am: "d",
|
|
754
754
|
pm: "p",
|
|
@@ -779,40 +779,40 @@ const oo = {
|
|
|
779
779
|
evening: "zvečer",
|
|
780
780
|
night: "ponoči"
|
|
781
781
|
}
|
|
782
|
-
},
|
|
783
|
-
ordinalNumber:
|
|
784
|
-
era:
|
|
785
|
-
values:
|
|
782
|
+
}, co = (e, t) => Number(e) + ".", mo = {
|
|
783
|
+
ordinalNumber: co,
|
|
784
|
+
era: me({
|
|
785
|
+
values: ao,
|
|
786
786
|
defaultWidth: "wide"
|
|
787
787
|
}),
|
|
788
|
-
quarter:
|
|
789
|
-
values:
|
|
788
|
+
quarter: me({
|
|
789
|
+
values: lo,
|
|
790
790
|
defaultWidth: "wide",
|
|
791
791
|
argumentCallback: (e) => e - 1
|
|
792
792
|
}),
|
|
793
|
-
month:
|
|
794
|
-
values: lo,
|
|
795
|
-
defaultWidth: "wide"
|
|
796
|
-
}),
|
|
797
|
-
day: pe({
|
|
793
|
+
month: me({
|
|
798
794
|
values: ro,
|
|
799
795
|
defaultWidth: "wide"
|
|
800
796
|
}),
|
|
801
|
-
|
|
797
|
+
day: me({
|
|
802
798
|
values: io,
|
|
799
|
+
defaultWidth: "wide"
|
|
800
|
+
}),
|
|
801
|
+
dayPeriod: me({
|
|
802
|
+
values: so,
|
|
803
803
|
defaultWidth: "wide",
|
|
804
|
-
formattingValues:
|
|
804
|
+
formattingValues: uo,
|
|
805
805
|
defaultFormattingWidth: "wide"
|
|
806
806
|
})
|
|
807
807
|
};
|
|
808
|
-
function
|
|
808
|
+
function pe(e) {
|
|
809
809
|
return (t, n = {}) => {
|
|
810
810
|
const a = n.width, l = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth], r = t.match(l);
|
|
811
811
|
if (!r)
|
|
812
812
|
return null;
|
|
813
|
-
const s = r[0], p = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], i = Array.isArray(p) ?
|
|
813
|
+
const s = r[0], p = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], i = Array.isArray(p) ? fo(p, (m) => m.test(s)) : (
|
|
814
814
|
// [TODO] -- I challenge you to fix the type
|
|
815
|
-
|
|
815
|
+
po(p, (m) => m.test(s))
|
|
816
816
|
);
|
|
817
817
|
let d;
|
|
818
818
|
d = e.valueCallback ? e.valueCallback(i) : i, d = n.valueCallback ? (
|
|
@@ -823,17 +823,17 @@ function fe(e) {
|
|
|
823
823
|
return { value: d, rest: v };
|
|
824
824
|
};
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function po(e, t) {
|
|
827
827
|
for (const n in e)
|
|
828
828
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
829
829
|
return n;
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function fo(e, t) {
|
|
832
832
|
for (let n = 0; n < e.length; n++)
|
|
833
833
|
if (t(e[n]))
|
|
834
834
|
return n;
|
|
835
835
|
}
|
|
836
|
-
function
|
|
836
|
+
function vo(e) {
|
|
837
837
|
return (t, n = {}) => {
|
|
838
838
|
const a = t.match(e.matchPattern);
|
|
839
839
|
if (!a) return null;
|
|
@@ -845,22 +845,22 @@ function fo(e) {
|
|
|
845
845
|
return { value: s, rest: p };
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
|
-
const
|
|
848
|
+
const ho = /^(\d+)\./i, bo = /\d+/i, go = {
|
|
849
849
|
abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
|
|
850
850
|
wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
|
|
851
|
-
},
|
|
851
|
+
}, wo = {
|
|
852
852
|
any: [/^pr/i, /^(po|na[sš]em)/i]
|
|
853
853
|
}, yo = {
|
|
854
854
|
narrow: /^[1234]/i,
|
|
855
855
|
abbreviated: /^[1234]\.\s?[čc]et\.?/i,
|
|
856
856
|
wide: /^[1234]\. [čc]etrtletje/i
|
|
857
|
-
}, wo = {
|
|
858
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
859
857
|
}, ko = {
|
|
858
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
859
|
+
}, Vo = {
|
|
860
860
|
narrow: /^[jfmasond]/i,
|
|
861
861
|
abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,
|
|
862
862
|
wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i
|
|
863
|
-
},
|
|
863
|
+
}, jo = {
|
|
864
864
|
narrow: [
|
|
865
865
|
/^j/i,
|
|
866
866
|
/^f/i,
|
|
@@ -903,18 +903,18 @@ const vo = /^(\d+)\./i, ho = /\d+/i, bo = {
|
|
|
903
903
|
/^n/i,
|
|
904
904
|
/^d/i
|
|
905
905
|
]
|
|
906
|
-
},
|
|
906
|
+
}, Co = {
|
|
907
907
|
narrow: /^[nptsčc]/i,
|
|
908
908
|
short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
909
909
|
abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
910
910
|
wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i
|
|
911
|
-
},
|
|
911
|
+
}, To = {
|
|
912
912
|
narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i],
|
|
913
913
|
any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i]
|
|
914
|
-
},
|
|
914
|
+
}, _o = {
|
|
915
915
|
narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
|
|
916
916
|
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
|
|
917
|
-
},
|
|
917
|
+
}, Bo = {
|
|
918
918
|
narrow: {
|
|
919
919
|
am: /^d/i,
|
|
920
920
|
pm: /^p/i,
|
|
@@ -935,88 +935,98 @@ const vo = /^(\d+)\./i, ho = /\d+/i, bo = {
|
|
|
935
935
|
evening: /^z?ve/i,
|
|
936
936
|
night: /(po)?no/i
|
|
937
937
|
}
|
|
938
|
-
},
|
|
939
|
-
ordinalNumber:
|
|
940
|
-
matchPattern:
|
|
941
|
-
parsePattern:
|
|
938
|
+
}, Io = {
|
|
939
|
+
ordinalNumber: vo({
|
|
940
|
+
matchPattern: ho,
|
|
941
|
+
parsePattern: bo,
|
|
942
942
|
valueCallback: (e) => parseInt(e, 10)
|
|
943
943
|
}),
|
|
944
|
-
era:
|
|
945
|
-
matchPatterns:
|
|
944
|
+
era: pe({
|
|
945
|
+
matchPatterns: go,
|
|
946
946
|
defaultMatchWidth: "wide",
|
|
947
|
-
parsePatterns:
|
|
947
|
+
parsePatterns: wo,
|
|
948
948
|
defaultParseWidth: "any"
|
|
949
949
|
}),
|
|
950
|
-
quarter:
|
|
950
|
+
quarter: pe({
|
|
951
951
|
matchPatterns: yo,
|
|
952
952
|
defaultMatchWidth: "wide",
|
|
953
|
-
parsePatterns:
|
|
953
|
+
parsePatterns: ko,
|
|
954
954
|
defaultParseWidth: "any",
|
|
955
955
|
valueCallback: (e) => e + 1
|
|
956
956
|
}),
|
|
957
|
-
month:
|
|
958
|
-
matchPatterns:
|
|
957
|
+
month: pe({
|
|
958
|
+
matchPatterns: Vo,
|
|
959
959
|
defaultMatchWidth: "wide",
|
|
960
|
-
parsePatterns:
|
|
960
|
+
parsePatterns: jo,
|
|
961
961
|
defaultParseWidth: "wide"
|
|
962
962
|
}),
|
|
963
|
-
day:
|
|
964
|
-
matchPatterns:
|
|
963
|
+
day: pe({
|
|
964
|
+
matchPatterns: Co,
|
|
965
965
|
defaultMatchWidth: "wide",
|
|
966
|
-
parsePatterns:
|
|
966
|
+
parsePatterns: To,
|
|
967
967
|
defaultParseWidth: "any"
|
|
968
968
|
}),
|
|
969
|
-
dayPeriod:
|
|
970
|
-
matchPatterns:
|
|
969
|
+
dayPeriod: pe({
|
|
970
|
+
matchPatterns: _o,
|
|
971
971
|
defaultMatchWidth: "any",
|
|
972
|
-
parsePatterns:
|
|
972
|
+
parsePatterns: Bo,
|
|
973
973
|
defaultParseWidth: "any"
|
|
974
974
|
})
|
|
975
|
-
},
|
|
975
|
+
}, Po = {
|
|
976
976
|
code: "sl",
|
|
977
|
-
formatDistance:
|
|
978
|
-
formatLong:
|
|
979
|
-
formatRelative:
|
|
980
|
-
localize:
|
|
981
|
-
match:
|
|
977
|
+
formatDistance: Qn,
|
|
978
|
+
formatLong: to,
|
|
979
|
+
formatRelative: oo,
|
|
980
|
+
localize: mo,
|
|
981
|
+
match: Io,
|
|
982
982
|
options: {
|
|
983
983
|
weekStartsOn: 1,
|
|
984
984
|
firstWeekContainsDate: 1
|
|
985
985
|
}
|
|
986
|
-
},
|
|
987
|
-
dateTimeLocale: N(
|
|
986
|
+
}, Do = {
|
|
987
|
+
dateTimeLocale: N(Po),
|
|
988
988
|
setDateTimeLocale(e) {
|
|
989
989
|
ne(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
|
|
990
990
|
}
|
|
991
|
-
},
|
|
991
|
+
}, ae = /* @__PURE__ */ O({
|
|
992
992
|
__name: "df-label",
|
|
993
993
|
props: {
|
|
994
994
|
data: {},
|
|
995
|
-
label: {}
|
|
995
|
+
label: {},
|
|
996
|
+
allowWrap: { type: Boolean }
|
|
996
997
|
},
|
|
997
998
|
setup(e) {
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
999
|
+
const t = e, n = w(() => t.data ? t.data.label : t.label.text);
|
|
1000
|
+
return (a, l) => {
|
|
1001
|
+
const r = A("v-img");
|
|
1002
|
+
return V(), W("div", {
|
|
1003
|
+
class: G(["df-label", { "allow-wrap": a.allowWrap }])
|
|
1004
|
+
}, [
|
|
1005
|
+
a.label.icon ? (V(), W(Ie, { key: 0 }, [
|
|
1006
|
+
a.label.iconComponent === "v-icon" ? (V(), D(o(be), {
|
|
1003
1007
|
key: 0,
|
|
1004
|
-
name:
|
|
1008
|
+
name: a.label.icon,
|
|
1005
1009
|
size: "1.25em"
|
|
1006
|
-
}, null, 8, ["name"])) :
|
|
1010
|
+
}, null, 8, ["name"])) : a.label.iconComponent === "v-img" ? (V(), D(r, {
|
|
1007
1011
|
key: 1,
|
|
1008
1012
|
class: "icon",
|
|
1009
|
-
src:
|
|
1010
|
-
}, null, 8, ["src"])) : (
|
|
1013
|
+
src: a.label.icon
|
|
1014
|
+
}, null, 8, ["src"])) : (V(), D(he(a.label.iconComponent), {
|
|
1011
1015
|
key: 2,
|
|
1012
|
-
src:
|
|
1016
|
+
src: a.label.icon
|
|
1013
1017
|
}, null, 8, ["src"]))
|
|
1014
1018
|
], 64)) : U("", !0),
|
|
1015
|
-
|
|
1016
|
-
|
|
1019
|
+
n.value instanceof o(gt) ? (V(), D(o(Qe), {
|
|
1020
|
+
key: 1,
|
|
1021
|
+
class: "markdown",
|
|
1022
|
+
source: n.value.toString()
|
|
1023
|
+
}, null, 8, ["source"])) : (V(), W(Ie, { key: 2 }, [
|
|
1024
|
+
ct(De(n.value), 1)
|
|
1025
|
+
], 64))
|
|
1026
|
+
], 2);
|
|
1017
1027
|
};
|
|
1018
1028
|
}
|
|
1019
|
-
}),
|
|
1029
|
+
}), tt = Symbol("vuetifyInputsSettingsKey");
|
|
1020
1030
|
class xo {
|
|
1021
1031
|
constructor(t, n, a = "v-icon") {
|
|
1022
1032
|
this.text = t, this.icon = n, this.iconComponent = a;
|
|
@@ -1024,7 +1034,7 @@ class xo {
|
|
|
1024
1034
|
}
|
|
1025
1035
|
const Y = { enabled: void 0, clearable: !0 };
|
|
1026
1036
|
function X(e, t) {
|
|
1027
|
-
const n =
|
|
1037
|
+
const n = Te(tt, {}), a = N(null), l = w({
|
|
1028
1038
|
get() {
|
|
1029
1039
|
return e.control ? e.control.value : e.modelValue === void 0 ? a.value : e.modelValue;
|
|
1030
1040
|
},
|
|
@@ -1032,30 +1042,30 @@ function X(e, t) {
|
|
|
1032
1042
|
e.control && (e.control.value = k), e.modelValue === void 0 && (a.value = k), t("update:modelValue", k);
|
|
1033
1043
|
}
|
|
1034
1044
|
});
|
|
1035
|
-
if (e.control && !(e.control instanceof
|
|
1045
|
+
if (e.control && !(e.control instanceof We.FieldBase))
|
|
1036
1046
|
throw new Error("control prop is not a vue-form control instance");
|
|
1037
|
-
const r =
|
|
1047
|
+
const r = w({
|
|
1038
1048
|
get() {
|
|
1039
1049
|
return e.control.touched;
|
|
1040
1050
|
},
|
|
1041
1051
|
set(k) {
|
|
1042
1052
|
e.control.touched = k;
|
|
1043
1053
|
}
|
|
1044
|
-
}), s = e.control ? r : N(!1), p =
|
|
1045
|
-
() => e.control ? e.control.errors : (e.errors || []).map((k) => new
|
|
1046
|
-
), d =
|
|
1047
|
-
() => e.control ? e.control.visibility : e.visibility ||
|
|
1048
|
-
), b =
|
|
1054
|
+
}), s = e.control ? r : N(!1), p = w(() => e.control ? e.control.valid : !0), i = w(
|
|
1055
|
+
() => e.control ? e.control.errors : (e.errors || []).map((k) => new wt(k))
|
|
1056
|
+
), d = w(() => s.value && i.value.length > 0 ? " " : void 0), v = w(() => e.control ? e.control.enabled : e.enabled !== !1), m = w(
|
|
1057
|
+
() => e.control ? e.control.visibility : e.visibility || We.DisplayMode.FULL
|
|
1058
|
+
), b = w(
|
|
1049
1059
|
() => te(e.label || "") ? new xo(e.label || "") : e.label
|
|
1050
|
-
), c =
|
|
1060
|
+
), c = w(() => e.placeholder || ""), T = w(() => e.helpText || ""), _ = w(() => e.hint || ""), y = w(() => e.cssClass || ""), h = w(
|
|
1051
1061
|
() => {
|
|
1052
|
-
var k,
|
|
1053
|
-
return (
|
|
1062
|
+
var k, j, M;
|
|
1063
|
+
return (M = (j = (k = e.density) != null ? k : Te("field-density", null)) != null ? j : n.defaultDensity) != null ? M : "default";
|
|
1054
1064
|
}
|
|
1055
|
-
),
|
|
1065
|
+
), E = w(() => h.value === "inline" ? "default" : h.value), F = w(
|
|
1056
1066
|
() => {
|
|
1057
|
-
var k,
|
|
1058
|
-
return (
|
|
1067
|
+
var k, j, M;
|
|
1068
|
+
return (M = (j = (k = e.variant) != null ? k : Te("field-variant", null)) != null ? j : n.defaultVariant) != null ? M : "underlined";
|
|
1059
1069
|
}
|
|
1060
1070
|
);
|
|
1061
1071
|
return {
|
|
@@ -1067,13 +1077,13 @@ function X(e, t) {
|
|
|
1067
1077
|
label: b,
|
|
1068
1078
|
touched: s,
|
|
1069
1079
|
density: h.value,
|
|
1070
|
-
densityClass:
|
|
1071
|
-
vuetifyBindings:
|
|
1080
|
+
densityClass: w(() => `df-density-${h.value}`),
|
|
1081
|
+
vuetifyBindings: w(() => {
|
|
1072
1082
|
var k;
|
|
1073
1083
|
return S({
|
|
1074
1084
|
name: (k = e.control) == null ? void 0 : k.fieldName,
|
|
1075
|
-
class:
|
|
1076
|
-
density:
|
|
1085
|
+
class: y.value,
|
|
1086
|
+
density: E.value,
|
|
1077
1087
|
variant: F.value,
|
|
1078
1088
|
label: b.value.text,
|
|
1079
1089
|
messages: d.value,
|
|
@@ -1082,7 +1092,7 @@ function X(e, t) {
|
|
|
1082
1092
|
readonly: !v.value,
|
|
1083
1093
|
disabled: !v.value,
|
|
1084
1094
|
placeholder: c.value,
|
|
1085
|
-
"persistent-placeholder": !
|
|
1095
|
+
"persistent-placeholder": !fe(c.value),
|
|
1086
1096
|
hint: _.value,
|
|
1087
1097
|
persistentHint: !0,
|
|
1088
1098
|
// we want persistent hint always
|
|
@@ -1111,7 +1121,7 @@ const le = /* @__PURE__ */ O({
|
|
|
1111
1121
|
break;
|
|
1112
1122
|
case "vue-markdown":
|
|
1113
1123
|
a.push(
|
|
1114
|
-
we(
|
|
1124
|
+
we(Qe, {
|
|
1115
1125
|
class: [t.classes, "df-messages-widget-markdown"],
|
|
1116
1126
|
source: l.componentBindings.source
|
|
1117
1127
|
})
|
|
@@ -1119,15 +1129,15 @@ const le = /* @__PURE__ */ O({
|
|
|
1119
1129
|
break;
|
|
1120
1130
|
default:
|
|
1121
1131
|
a.push(
|
|
1122
|
-
we(l.componentName,
|
|
1132
|
+
we(l.componentName, L(S({ class: t.classes }, l.componentBindings), { innerHTML: l.componentBody }))
|
|
1123
1133
|
);
|
|
1124
1134
|
break;
|
|
1125
1135
|
}
|
|
1126
1136
|
}), a;
|
|
1127
1137
|
};
|
|
1128
|
-
return (a, l) => (
|
|
1138
|
+
return (a, l) => (V(), D(n));
|
|
1129
1139
|
}
|
|
1130
|
-
}), So = { class: "d-flex w-100 df-style-resetting" },
|
|
1140
|
+
}), So = { class: "d-flex w-100 df-style-resetting" }, xe = /* @__PURE__ */ O({
|
|
1131
1141
|
__name: "input-base",
|
|
1132
1142
|
props: {
|
|
1133
1143
|
control: {},
|
|
@@ -1148,13 +1158,13 @@ const le = /* @__PURE__ */ O({
|
|
|
1148
1158
|
},
|
|
1149
1159
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
1150
1160
|
setup(e, { emit: t }) {
|
|
1151
|
-
const n = e, a = t, { errors: l, label: r, value: s, touched: p, visibility: i, vuetifyBindings: d } = X(n, a), v =
|
|
1161
|
+
const n = e, a = t, { errors: l, label: r, value: s, touched: p, visibility: i, vuetifyBindings: d } = X(n, a), v = w(() => !!(o(n.clearable) && o(s))), m = N(!1);
|
|
1152
1162
|
function b(c) {
|
|
1153
1163
|
m.value = c, c || (p.value = !0, a("blur"));
|
|
1154
1164
|
}
|
|
1155
1165
|
return (c, T) => {
|
|
1156
|
-
const _ = A("v-field"),
|
|
1157
|
-
return o(i) !== o(K).SUPPRESS ? (
|
|
1166
|
+
const _ = A("v-field"), y = A("v-input");
|
|
1167
|
+
return o(i) !== o(K).SUPPRESS ? (V(), D(y, {
|
|
1158
1168
|
key: 0,
|
|
1159
1169
|
name: o(d).name,
|
|
1160
1170
|
density: o(d).density,
|
|
@@ -1162,14 +1172,14 @@ const le = /* @__PURE__ */ O({
|
|
|
1162
1172
|
"persistent-hint": o(d).persistentHint,
|
|
1163
1173
|
"hide-details": o(d).hideDetails,
|
|
1164
1174
|
"error-messages": o(d).errorMessages,
|
|
1165
|
-
class:
|
|
1175
|
+
class: G([
|
|
1166
1176
|
c.cssClass,
|
|
1167
1177
|
{
|
|
1168
1178
|
"d-none": o(i) === o(K).HIDDEN,
|
|
1169
1179
|
invisible: o(i) === o(K).INVISIBLE
|
|
1170
1180
|
}
|
|
1171
1181
|
])
|
|
1172
|
-
},
|
|
1182
|
+
}, Pe({
|
|
1173
1183
|
message: g(({ message: h }) => [
|
|
1174
1184
|
I(le, {
|
|
1175
1185
|
message: h,
|
|
@@ -1189,33 +1199,29 @@ const le = /* @__PURE__ */ O({
|
|
|
1189
1199
|
loading: c.loading,
|
|
1190
1200
|
"onClick:clear": T[0] || (T[0] = (h) => a("click:clear")),
|
|
1191
1201
|
"onUpdate:focused": T[1] || (T[1] = (h) => b(h))
|
|
1192
|
-
},
|
|
1202
|
+
}, Pe({
|
|
1203
|
+
label: g((h) => [
|
|
1204
|
+
I(ae, {
|
|
1205
|
+
data: h,
|
|
1206
|
+
label: o(r)
|
|
1207
|
+
}, null, 8, ["data", "label"])
|
|
1208
|
+
]),
|
|
1193
1209
|
default: g((h) => [
|
|
1194
1210
|
oe("div", So, [
|
|
1195
|
-
|
|
1211
|
+
ie(c.$slots, "default", J(ee(h)))
|
|
1196
1212
|
])
|
|
1197
1213
|
]),
|
|
1198
1214
|
loader: g((h) => [
|
|
1199
|
-
|
|
1215
|
+
ie(c.$slots, "loader", J(ee(h)))
|
|
1200
1216
|
]),
|
|
1201
1217
|
_: 2
|
|
1202
1218
|
}, [
|
|
1203
|
-
o(r).icon ? {
|
|
1204
|
-
name: "label",
|
|
1205
|
-
fn: g((h) => [
|
|
1206
|
-
I(ae, {
|
|
1207
|
-
data: h,
|
|
1208
|
-
label: o(r)
|
|
1209
|
-
}, null, 8, ["data", "label"])
|
|
1210
|
-
]),
|
|
1211
|
-
key: "0"
|
|
1212
|
-
} : void 0,
|
|
1213
1219
|
c.$slots["prepend-inner"] ? {
|
|
1214
1220
|
name: "prepend-inner",
|
|
1215
1221
|
fn: g((h) => [
|
|
1216
|
-
|
|
1222
|
+
ie(c.$slots, "prepend-inner", J(ee(h)))
|
|
1217
1223
|
]),
|
|
1218
|
-
key: "
|
|
1224
|
+
key: "0"
|
|
1219
1225
|
} : void 0
|
|
1220
1226
|
]), 1032, ["variant", "density", "label", "disabled", "clearable", "dirty", "active", "loading"])
|
|
1221
1227
|
]),
|
|
@@ -1224,33 +1230,33 @@ const le = /* @__PURE__ */ O({
|
|
|
1224
1230
|
c.$slots.prepend ? {
|
|
1225
1231
|
name: "prepend",
|
|
1226
1232
|
fn: g((h) => [
|
|
1227
|
-
|
|
1233
|
+
ie(c.$slots, "prepend", J(ee(h)))
|
|
1228
1234
|
]),
|
|
1229
1235
|
key: "0"
|
|
1230
1236
|
} : void 0
|
|
1231
1237
|
]), 1032, ["name", "density", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : U("", !0);
|
|
1232
1238
|
};
|
|
1233
1239
|
}
|
|
1234
|
-
}),
|
|
1240
|
+
}), ve = {
|
|
1235
1241
|
Yes: "Yes",
|
|
1236
1242
|
No: "No",
|
|
1237
1243
|
Close: "Close"
|
|
1238
1244
|
};
|
|
1239
|
-
function
|
|
1240
|
-
Object.keys(
|
|
1241
|
-
|
|
1245
|
+
function $a(e) {
|
|
1246
|
+
Object.keys(ve).forEach((t) => {
|
|
1247
|
+
ve[t] = e(t);
|
|
1242
1248
|
});
|
|
1243
1249
|
}
|
|
1244
1250
|
var z = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(z || {});
|
|
1245
|
-
const
|
|
1251
|
+
const ze = 0;
|
|
1246
1252
|
((e) => {
|
|
1247
1253
|
function t(l) {
|
|
1248
|
-
return l.toUpperCase() === "BUTTON" ? 0 : l.toUpperCase() === "TEXT" ? 1 :
|
|
1254
|
+
return l.toUpperCase() === "BUTTON" ? 0 : l.toUpperCase() === "TEXT" ? 1 : ze;
|
|
1249
1255
|
}
|
|
1250
1256
|
e.fromString = t;
|
|
1251
1257
|
function n(l) {
|
|
1252
1258
|
const r = typeof l == "number" ? l : e.fromString(l);
|
|
1253
|
-
return Object.values(e).includes(r) ? r :
|
|
1259
|
+
return Object.values(e).includes(r) ? r : ze;
|
|
1254
1260
|
}
|
|
1255
1261
|
e.fromAny = n;
|
|
1256
1262
|
function a(l) {
|
|
@@ -1260,18 +1266,18 @@ const We = 0;
|
|
|
1260
1266
|
e.isDefined = a;
|
|
1261
1267
|
})(z || (z = {}));
|
|
1262
1268
|
Object.freeze(z);
|
|
1263
|
-
const
|
|
1264
|
-
class
|
|
1269
|
+
const He = ["xs", "sm", "md", "lg", "xl"];
|
|
1270
|
+
class Eo {
|
|
1265
1271
|
constructor(t) {
|
|
1266
1272
|
$e(this, "_value");
|
|
1267
|
-
this._value = this.cleanBreakpoint(t, !0), t &&
|
|
1273
|
+
this._value = this.cleanBreakpoint(t, !0), t && He.forEach((n) => {
|
|
1268
1274
|
const a = this.cleanBreakpoint(t[n]);
|
|
1269
1275
|
a && (this._value[n] = a);
|
|
1270
1276
|
});
|
|
1271
1277
|
}
|
|
1272
1278
|
getOptionsForBreakpoint(t) {
|
|
1273
1279
|
const n = this.cleanBreakpoint(this._value), a = Object.keys(n);
|
|
1274
|
-
for (const l of
|
|
1280
|
+
for (const l of He) {
|
|
1275
1281
|
const r = this._value[l];
|
|
1276
1282
|
for (const s of a)
|
|
1277
1283
|
(r == null ? void 0 : r[s]) != null && (n[s] = r[s]);
|
|
@@ -1280,34 +1286,34 @@ class $o {
|
|
|
1280
1286
|
return n;
|
|
1281
1287
|
}
|
|
1282
1288
|
}
|
|
1283
|
-
function
|
|
1289
|
+
function $o(e) {
|
|
1284
1290
|
return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
|
|
1285
1291
|
}
|
|
1286
1292
|
function Ao() {
|
|
1287
|
-
const e =
|
|
1288
|
-
return
|
|
1293
|
+
const e = kt();
|
|
1294
|
+
return w(() => $o(e));
|
|
1289
1295
|
}
|
|
1290
|
-
class No extends
|
|
1296
|
+
class No extends Eo {
|
|
1291
1297
|
cleanBreakpoint(t, n = !1) {
|
|
1292
|
-
if ((!t || !
|
|
1298
|
+
if ((!t || !vt(t)) && !n) return null;
|
|
1293
1299
|
const a = {};
|
|
1294
1300
|
return n && (a.renderAs = z.BUTTON, a.showLabel = !0, a.showIcon = !0), t && (t.renderAs != null && (a.renderAs = z.fromAny(t.renderAs)), te(t.label) && (a.label = t.label), te(t.icon) && (a.icon = t.icon), Le(t.showLabel) && (a.showLabel = t.showLabel), Le(t.showIcon) && (a.showIcon = t.showIcon)), Object.keys(a).length ? a : null;
|
|
1295
1301
|
}
|
|
1296
1302
|
}
|
|
1297
|
-
class
|
|
1303
|
+
class ke extends yt {
|
|
1298
1304
|
static create(t) {
|
|
1299
1305
|
return super.create(t);
|
|
1300
1306
|
}
|
|
1301
1307
|
getBreakpointValue(t) {
|
|
1302
|
-
return
|
|
1308
|
+
return w(() => {
|
|
1303
1309
|
const a = new No(this.value).getOptionsForBreakpoint(t.value);
|
|
1304
1310
|
return {
|
|
1305
1311
|
name: a.name,
|
|
1306
1312
|
label: a.showLabel ? a.label : void 0,
|
|
1307
1313
|
icon: a.showIcon ? a.icon : void 0,
|
|
1308
1314
|
renderAs: a.renderAs,
|
|
1309
|
-
showLabel: te(a.label) && !
|
|
1310
|
-
showIcon: te(a.icon) && !
|
|
1315
|
+
showLabel: te(a.label) && !fe(a.label) ? a.showLabel : !1,
|
|
1316
|
+
showIcon: te(a.icon) && !fe(a.icon) ? a.showIcon : !1
|
|
1311
1317
|
};
|
|
1312
1318
|
});
|
|
1313
1319
|
}
|
|
@@ -1318,67 +1324,67 @@ class Ve extends gt {
|
|
|
1318
1324
|
return this.value.showLabel ? this.value.label : void 0;
|
|
1319
1325
|
}
|
|
1320
1326
|
get showLabel() {
|
|
1321
|
-
return te(this.value.label) && !
|
|
1327
|
+
return te(this.value.label) && !fe(this.value.label) ? this.value.showLabel : !1;
|
|
1322
1328
|
}
|
|
1323
1329
|
get icon() {
|
|
1324
1330
|
return this.value.showIcon ? this.value.icon : void 0;
|
|
1325
1331
|
}
|
|
1326
1332
|
get showIcon() {
|
|
1327
|
-
return te(this.value.icon) && !
|
|
1333
|
+
return te(this.value.icon) && !fe(this.value.icon) ? this.value.showIcon : !1;
|
|
1328
1334
|
}
|
|
1329
1335
|
get renderAs() {
|
|
1330
1336
|
return this.value.renderAs;
|
|
1331
1337
|
}
|
|
1332
1338
|
static closeAction(t) {
|
|
1333
1339
|
var a;
|
|
1334
|
-
const n =
|
|
1340
|
+
const n = L(S({}, t != null ? t : {}), {
|
|
1335
1341
|
// any properties in data should overwrite properties in the constant
|
|
1336
1342
|
value: {
|
|
1337
1343
|
name: "close",
|
|
1338
|
-
label:
|
|
1344
|
+
label: ve.Close,
|
|
1339
1345
|
icon: "close-outline",
|
|
1340
1346
|
renderAs: z.BUTTON,
|
|
1341
1347
|
showLabel: !0,
|
|
1342
1348
|
showIcon: !0
|
|
1343
1349
|
}
|
|
1344
1350
|
});
|
|
1345
|
-
return n.value = S(S({}, n.value), (a = t == null ? void 0 : t.value) != null ? a : {}),
|
|
1351
|
+
return n.value = S(S({}, n.value), (a = t == null ? void 0 : t.value) != null ? a : {}), ke.create(n);
|
|
1346
1352
|
}
|
|
1347
1353
|
static yesAction(t) {
|
|
1348
1354
|
var a;
|
|
1349
|
-
const n =
|
|
1355
|
+
const n = L(S({}, t != null ? t : {}), {
|
|
1350
1356
|
// any properties in data should overwrite properties in the constant
|
|
1351
1357
|
value: {
|
|
1352
1358
|
name: "yes",
|
|
1353
|
-
label:
|
|
1359
|
+
label: ve.Yes,
|
|
1354
1360
|
icon: "thumbs-up-outline",
|
|
1355
1361
|
renderAs: z.BUTTON,
|
|
1356
1362
|
showLabel: !0,
|
|
1357
1363
|
showIcon: !0
|
|
1358
1364
|
}
|
|
1359
1365
|
});
|
|
1360
|
-
return n.value = S(S({}, n.value), (a = t == null ? void 0 : t.value) != null ? a : {}),
|
|
1366
|
+
return n.value = S(S({}, n.value), (a = t == null ? void 0 : t.value) != null ? a : {}), ke.create(n);
|
|
1361
1367
|
}
|
|
1362
1368
|
static noAction(t) {
|
|
1363
1369
|
var a;
|
|
1364
|
-
const n =
|
|
1370
|
+
const n = L(S({}, t != null ? t : {}), {
|
|
1365
1371
|
// any properties in data should overwrite properties in the constant
|
|
1366
1372
|
value: {
|
|
1367
1373
|
name: "no",
|
|
1368
|
-
label:
|
|
1374
|
+
label: ve.No,
|
|
1369
1375
|
icon: "thumbs-down-outline",
|
|
1370
1376
|
renderAs: z.BUTTON,
|
|
1371
1377
|
showLabel: !0,
|
|
1372
1378
|
showIcon: !0
|
|
1373
1379
|
}
|
|
1374
1380
|
});
|
|
1375
|
-
return n.value = S(S({}, n.value), (a = t == null ? void 0 : t.value) != null ? a : {}),
|
|
1381
|
+
return n.value = S(S({}, n.value), (a = t == null ? void 0 : t.value) != null ? a : {}), ke.create(n);
|
|
1376
1382
|
}
|
|
1377
1383
|
}
|
|
1378
1384
|
const Fo = {
|
|
1379
1385
|
key: 1,
|
|
1380
1386
|
style: { width: "0.5rem" }
|
|
1381
|
-
},
|
|
1387
|
+
}, Mo = { key: 2 }, Lo = /* @__PURE__ */ O({
|
|
1382
1388
|
__name: "df-actions",
|
|
1383
1389
|
props: {
|
|
1384
1390
|
actions: {},
|
|
@@ -1386,34 +1392,34 @@ const Fo = {
|
|
|
1386
1392
|
showAsGroup: { default: "no" }
|
|
1387
1393
|
},
|
|
1388
1394
|
setup(e) {
|
|
1389
|
-
const t = e, n = Ao(), a =
|
|
1395
|
+
const t = e, n = Ao(), a = w(() => o(t.actions)), l = w(
|
|
1390
1396
|
() => a.value.map((r) => S({
|
|
1391
1397
|
action: r
|
|
1392
1398
|
}, o(r.getBreakpointValue(n))))
|
|
1393
1399
|
);
|
|
1394
1400
|
return (r, s) => {
|
|
1395
1401
|
const p = A("v-btn");
|
|
1396
|
-
return a.value.length > 0 ? (
|
|
1402
|
+
return a.value.length > 0 ? (V(), W("div", {
|
|
1397
1403
|
key: 0,
|
|
1398
|
-
class:
|
|
1404
|
+
class: G(["text-end df-actions", {
|
|
1399
1405
|
"button-group": r.showAsGroup === "grouped" || r.showAsGroup === "grouped-no-borders",
|
|
1400
1406
|
"with-border": r.showAsGroup === "grouped"
|
|
1401
1407
|
}])
|
|
1402
1408
|
}, [
|
|
1403
|
-
(
|
|
1409
|
+
(V(!0), W(Ie, null, dt(l.value, (i, d) => (V(), D(p, {
|
|
1404
1410
|
key: d,
|
|
1405
1411
|
variant: i.renderAs === o(z).BUTTON ? "tonal" : "text",
|
|
1406
1412
|
elevation: 0,
|
|
1407
1413
|
size: r.buttonSize,
|
|
1408
|
-
onClick:
|
|
1414
|
+
onClick: mt((v) => i.action.execute(v), ["stop"])
|
|
1409
1415
|
}, {
|
|
1410
1416
|
default: g(() => [
|
|
1411
|
-
i.icon ? (
|
|
1417
|
+
i.icon ? (V(), D(o(be), {
|
|
1412
1418
|
key: 0,
|
|
1413
1419
|
name: i.icon
|
|
1414
1420
|
}, null, 8, ["name"])) : U("", !0),
|
|
1415
|
-
i.icon && i.label ? (
|
|
1416
|
-
i.label ? (
|
|
1421
|
+
i.icon && i.label ? (V(), W("span", Fo)) : U("", !0),
|
|
1422
|
+
i.label ? (V(), W("span", Mo, De(i.label), 1)) : U("", !0)
|
|
1417
1423
|
]),
|
|
1418
1424
|
_: 2
|
|
1419
1425
|
}, 1032, ["variant", "size", "onClick"]))), 128))
|
|
@@ -1438,10 +1444,10 @@ const Fo = {
|
|
|
1438
1444
|
passthroughAttrs: {},
|
|
1439
1445
|
density: {},
|
|
1440
1446
|
variant: {}
|
|
1441
|
-
},
|
|
1447
|
+
}, L(S({}, Y), { allowNull: !1 })),
|
|
1442
1448
|
emits: ["update:modelValue", "click:clear"],
|
|
1443
1449
|
setup(e, { emit: t }) {
|
|
1444
|
-
const n = e, a = t, { densityClass: l, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, a), v =
|
|
1450
|
+
const n = e, a = t, { densityClass: l, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, a), v = w(() => n.allowNull && i.value == null), m = w({
|
|
1445
1451
|
get() {
|
|
1446
1452
|
return i.value;
|
|
1447
1453
|
},
|
|
@@ -1449,14 +1455,14 @@ const Fo = {
|
|
|
1449
1455
|
}
|
|
1450
1456
|
});
|
|
1451
1457
|
function b() {
|
|
1452
|
-
const c =
|
|
1458
|
+
const c = ht(i.value);
|
|
1453
1459
|
c === !0 ? i.value = n.allowNull ? null : !1 : i.value = c === !1;
|
|
1454
1460
|
}
|
|
1455
1461
|
return (c, T) => {
|
|
1456
1462
|
const _ = A("v-checkbox");
|
|
1457
|
-
return
|
|
1463
|
+
return V(), D(_, R({
|
|
1458
1464
|
modelValue: m.value,
|
|
1459
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
1465
|
+
"onUpdate:modelValue": T[0] || (T[0] = (y) => m.value = y)
|
|
1460
1466
|
}, o(d), {
|
|
1461
1467
|
density: "compact",
|
|
1462
1468
|
class: o(l),
|
|
@@ -1464,27 +1470,23 @@ const Fo = {
|
|
|
1464
1470
|
"false-value": !1,
|
|
1465
1471
|
"true-value": !0,
|
|
1466
1472
|
onChange: b,
|
|
1467
|
-
onBlur: T[1] || (T[1] = (
|
|
1468
|
-
}),
|
|
1469
|
-
|
|
1473
|
+
onBlur: T[1] || (T[1] = (y) => p.value = !0)
|
|
1474
|
+
}), {
|
|
1475
|
+
label: g((y) => [
|
|
1476
|
+
I(o(ae), {
|
|
1477
|
+
"allow-wrap": !0,
|
|
1478
|
+
data: y,
|
|
1479
|
+
label: o(s)
|
|
1480
|
+
}, null, 8, ["data", "label"])
|
|
1481
|
+
]),
|
|
1482
|
+
message: g(({ message: y }) => [
|
|
1470
1483
|
I(o(le), {
|
|
1471
|
-
message:
|
|
1484
|
+
message: y,
|
|
1472
1485
|
errors: o(r)
|
|
1473
1486
|
}, null, 8, ["message", "errors"])
|
|
1474
1487
|
]),
|
|
1475
|
-
_:
|
|
1476
|
-
}, [
|
|
1477
|
-
o(s).icon ? {
|
|
1478
|
-
name: "label",
|
|
1479
|
-
fn: g((w) => [
|
|
1480
|
-
I(o(ae), {
|
|
1481
|
-
data: w,
|
|
1482
|
-
label: o(s)
|
|
1483
|
-
}, null, 8, ["data", "label"])
|
|
1484
|
-
]),
|
|
1485
|
-
key: "0"
|
|
1486
|
-
} : void 0
|
|
1487
|
-
]), 1040, ["modelValue", "class", "indeterminate"]);
|
|
1488
|
+
_: 1
|
|
1489
|
+
}, 16, ["modelValue", "class", "indeterminate"]);
|
|
1488
1490
|
};
|
|
1489
1491
|
}
|
|
1490
1492
|
}), Oo = /* @__PURE__ */ O({
|
|
@@ -1505,15 +1507,15 @@ const Fo = {
|
|
|
1505
1507
|
passthroughAttrs: {},
|
|
1506
1508
|
density: {},
|
|
1507
1509
|
variant: {}
|
|
1508
|
-
},
|
|
1510
|
+
}, L(S({}, Y), { allowNull: !1 })),
|
|
1509
1511
|
emits: ["update:modelValue", "click:clear"],
|
|
1510
1512
|
setup(e, { emit: t }) {
|
|
1511
|
-
const n = e, a = t, { densityClass: l, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, a), v = N(!1), m =
|
|
1513
|
+
const n = e, a = t, { densityClass: l, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, a), v = N(!1), m = w(() => [
|
|
1512
1514
|
(b) => n.control || !b && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(b) ? !0 : "Not a valid hex string."
|
|
1513
1515
|
]);
|
|
1514
1516
|
return (b, c) => {
|
|
1515
|
-
const T = A("v-color-picker"), _ = A("v-menu"),
|
|
1516
|
-
return
|
|
1517
|
+
const T = A("v-color-picker"), _ = A("v-menu"), y = A("v-text-field");
|
|
1518
|
+
return V(), D(y, R({
|
|
1517
1519
|
modelValue: o(i),
|
|
1518
1520
|
"onUpdate:modelValue": c[2] || (c[2] = (h) => ne(i) ? i.value = h : null)
|
|
1519
1521
|
}, o(d), {
|
|
@@ -1522,7 +1524,13 @@ const Fo = {
|
|
|
1522
1524
|
type: "text",
|
|
1523
1525
|
rules: m.value,
|
|
1524
1526
|
onBlur: c[3] || (c[3] = (h) => p.value = !0)
|
|
1525
|
-
}),
|
|
1527
|
+
}), {
|
|
1528
|
+
label: g((h) => [
|
|
1529
|
+
I(o(ae), {
|
|
1530
|
+
data: h,
|
|
1531
|
+
label: o(s)
|
|
1532
|
+
}, null, 8, ["data", "label"])
|
|
1533
|
+
]),
|
|
1526
1534
|
message: g(({ message: h }) => [
|
|
1527
1535
|
I(o(le), {
|
|
1528
1536
|
message: h,
|
|
@@ -1551,19 +1559,8 @@ const Fo = {
|
|
|
1551
1559
|
_: 1
|
|
1552
1560
|
}, 8, ["modelValue"])
|
|
1553
1561
|
]),
|
|
1554
|
-
_:
|
|
1555
|
-
}, [
|
|
1556
|
-
o(s).icon ? {
|
|
1557
|
-
name: "label",
|
|
1558
|
-
fn: g((h) => [
|
|
1559
|
-
I(o(ae), {
|
|
1560
|
-
data: h,
|
|
1561
|
-
label: o(s)
|
|
1562
|
-
}, null, 8, ["data", "label"])
|
|
1563
|
-
]),
|
|
1564
|
-
key: "0"
|
|
1565
|
-
} : void 0
|
|
1566
|
-
]), 1040, ["modelValue", "class", "clearable", "rules"]);
|
|
1562
|
+
_: 1
|
|
1563
|
+
}, 16, ["modelValue", "class", "clearable", "rules"]);
|
|
1567
1564
|
};
|
|
1568
1565
|
}
|
|
1569
1566
|
}), Ro = /* @__PURE__ */ O({
|
|
@@ -1587,52 +1584,52 @@ const Fo = {
|
|
|
1587
1584
|
passthroughAttrs: {},
|
|
1588
1585
|
density: {},
|
|
1589
1586
|
variant: {}
|
|
1590
|
-
},
|
|
1587
|
+
}, L(S({}, Y), {
|
|
1591
1588
|
inputType: "datetime",
|
|
1592
1589
|
displayFormatDate: "P",
|
|
1593
1590
|
displayFormatTime: "p"
|
|
1594
1591
|
})),
|
|
1595
1592
|
emits: ["update:modelValue", "click:clear"],
|
|
1596
1593
|
setup(e, { emit: t }) {
|
|
1597
|
-
const n = e, a = t, l =
|
|
1594
|
+
const n = e, a = t, l = w(() => {
|
|
1598
1595
|
var f;
|
|
1599
|
-
return (f = n.locale) != null ? f : o(
|
|
1600
|
-
}), r =
|
|
1596
|
+
return (f = n.locale) != null ? f : o(Do.dateTimeLocale);
|
|
1597
|
+
}), r = w(() => {
|
|
1601
1598
|
var f, u;
|
|
1602
1599
|
return (u = (f = l.value.options) == null ? void 0 : f.weekStartsOn) != null ? u : 1;
|
|
1603
|
-
}), { densityClass: s, touched: p, value: i, vuetifyBindings: d } = X(n, a), { inputType: v, displayFormatDate: m, displayFormatTime: b } =
|
|
1600
|
+
}), { densityClass: s, touched: p, value: i, vuetifyBindings: d } = X(n, a), { inputType: v, displayFormatDate: m, displayFormatTime: b } = je(n), c = N(""), T = w({
|
|
1604
1601
|
get() {
|
|
1605
1602
|
return o(c) === "date";
|
|
1606
1603
|
},
|
|
1607
1604
|
set(f) {
|
|
1608
1605
|
c.value = f ? "date" : "";
|
|
1609
1606
|
}
|
|
1610
|
-
}), _ =
|
|
1607
|
+
}), _ = w({
|
|
1611
1608
|
get() {
|
|
1612
1609
|
return o(c) === "time";
|
|
1613
1610
|
},
|
|
1614
1611
|
set(f) {
|
|
1615
1612
|
c.value = f ? "time" : "";
|
|
1616
1613
|
}
|
|
1617
|
-
}),
|
|
1618
|
-
function
|
|
1614
|
+
}), y = (f) => `${de(f, "yyyy-MM-dd")}T${de(f, "HH:mm")}:00`, h = N(null);
|
|
1615
|
+
function E(f, u) {
|
|
1619
1616
|
if (f == null)
|
|
1620
1617
|
h.value = null;
|
|
1621
1618
|
else if (u === -1)
|
|
1622
1619
|
if (o(v) === "time")
|
|
1623
|
-
h.value =
|
|
1620
|
+
h.value = y(/* @__PURE__ */ new Date()), E(`T${f}`, 1);
|
|
1624
1621
|
else {
|
|
1625
|
-
const
|
|
1626
|
-
|
|
1622
|
+
const $ = y(new Date(f));
|
|
1623
|
+
E($, 0), E($, 1);
|
|
1627
1624
|
}
|
|
1628
1625
|
else {
|
|
1629
|
-
h.value == null && (h.value =
|
|
1630
|
-
const
|
|
1631
|
-
|
|
1626
|
+
h.value == null && (h.value = y(/* @__PURE__ */ new Date()));
|
|
1627
|
+
const $ = h.value.split(/[TZ]/g), H = f.split(/[TZ]/g);
|
|
1628
|
+
$[u] = H[u], h.value = y(/* @__PURE__ */ new Date(`${$[0]}T${$[1].split(".")[0]}`)), o(v) === "date" ? i.value = $[0] : o(v) === "time" ? i.value = $[1] : i.value = o(h) + de(/* @__PURE__ */ new Date(), "XXX");
|
|
1632
1629
|
}
|
|
1633
1630
|
}
|
|
1634
|
-
|
|
1635
|
-
const F =
|
|
1631
|
+
se(i, (f) => E(f, -1), { immediate: !0 });
|
|
1632
|
+
const F = w({
|
|
1636
1633
|
get() {
|
|
1637
1634
|
const f = o(h);
|
|
1638
1635
|
if (f == null) return null;
|
|
@@ -1640,45 +1637,45 @@ const Fo = {
|
|
|
1640
1637
|
return Number.isNaN(u.getTime()) ? null : u;
|
|
1641
1638
|
},
|
|
1642
1639
|
set(f) {
|
|
1643
|
-
|
|
1640
|
+
E(y(f), 0);
|
|
1644
1641
|
}
|
|
1645
|
-
}), k =
|
|
1642
|
+
}), k = w({
|
|
1646
1643
|
get() {
|
|
1647
1644
|
const f = o(h);
|
|
1648
1645
|
return f == null ? "" : f.split(/[TZ]/g)[1].split(".")[0];
|
|
1649
1646
|
},
|
|
1650
1647
|
set(f) {
|
|
1651
|
-
|
|
1648
|
+
E(`T${f}`, 1);
|
|
1652
1649
|
}
|
|
1653
|
-
}),
|
|
1650
|
+
}), j = w({
|
|
1654
1651
|
get() {
|
|
1655
1652
|
const f = o(F);
|
|
1656
|
-
return f == null ? "" :
|
|
1653
|
+
return f == null ? "" : de(f, o(m), { locale: l.value });
|
|
1657
1654
|
},
|
|
1658
1655
|
set(f) {
|
|
1659
1656
|
try {
|
|
1660
|
-
const u =
|
|
1661
|
-
|
|
1657
|
+
const u = Vt(f, o(m), /* @__PURE__ */ new Date(), { locale: l.value });
|
|
1658
|
+
E(y(u), 0);
|
|
1662
1659
|
} catch (u) {
|
|
1663
1660
|
console.error(u);
|
|
1664
1661
|
}
|
|
1665
1662
|
}
|
|
1666
|
-
}),
|
|
1663
|
+
}), M = w({
|
|
1667
1664
|
get() {
|
|
1668
1665
|
const f = o(F);
|
|
1669
|
-
return f == null ? "" :
|
|
1666
|
+
return f == null ? "" : de(f, o(b), { locale: l.value });
|
|
1670
1667
|
},
|
|
1671
1668
|
set(f) {
|
|
1672
1669
|
const u = f.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
1673
1670
|
if (u == null) return;
|
|
1674
|
-
let
|
|
1675
|
-
const H =
|
|
1676
|
-
|
|
1671
|
+
let $ = Ue(u[1]);
|
|
1672
|
+
const H = Ue(u[2]);
|
|
1673
|
+
Oe($) || Oe(H) || (u[3] && u[3].toLowerCase() === "pm" && $ < 13 && ($ += 12), E(`T${$.toString().padStart(2, "0")}:${H.toString().padStart(2, "0")}:00`, 1));
|
|
1677
1674
|
}
|
|
1678
1675
|
});
|
|
1679
1676
|
return (f, u) => {
|
|
1680
|
-
const
|
|
1681
|
-
return
|
|
1677
|
+
const $ = A("v-date-picker"), H = A("v-confirm-edit"), ue = A("v-menu"), ce = A("v-text-field"), B = A("v-time-picker");
|
|
1678
|
+
return V(), D(o(xe), R(n, {
|
|
1682
1679
|
class: o(s),
|
|
1683
1680
|
clearable: f.clearable,
|
|
1684
1681
|
"onClick:clear": u[14] || (u[14] = (P) => i.value = null),
|
|
@@ -1686,12 +1683,12 @@ const Fo = {
|
|
|
1686
1683
|
}), {
|
|
1687
1684
|
default: g((P) => [
|
|
1688
1685
|
oe("div", {
|
|
1689
|
-
class:
|
|
1686
|
+
class: G(["d-flex w-100 ml-4 df-input-wrapper", f.density])
|
|
1690
1687
|
}, [
|
|
1691
|
-
["date", "datetime"].includes(o(v)) ? (
|
|
1688
|
+
["date", "datetime"].includes(o(v)) ? (V(), D(ce, R({
|
|
1692
1689
|
key: 0,
|
|
1693
|
-
modelValue:
|
|
1694
|
-
"onUpdate:modelValue": u[4] || (u[4] = (
|
|
1690
|
+
modelValue: j.value,
|
|
1691
|
+
"onUpdate:modelValue": u[4] || (u[4] = (C) => j.value = C),
|
|
1695
1692
|
style: { "flex-grow": "4" },
|
|
1696
1693
|
density: "compact",
|
|
1697
1694
|
variant: "plain",
|
|
@@ -1701,36 +1698,36 @@ const Fo = {
|
|
|
1701
1698
|
disabled: o(d).disabled,
|
|
1702
1699
|
name: `${o(d).name}-date`
|
|
1703
1700
|
}, f.passthroughAttrs, {
|
|
1704
|
-
onClick: u[5] || (u[5] = (
|
|
1705
|
-
onKeydown: u[6] || (u[6] =
|
|
1706
|
-
onFocus: (
|
|
1707
|
-
onBlur: (
|
|
1701
|
+
onClick: u[5] || (u[5] = (C) => c.value = "date"),
|
|
1702
|
+
onKeydown: u[6] || (u[6] = Fe((C) => c.value = "date", ["space"])),
|
|
1703
|
+
onFocus: (C) => P.focus(),
|
|
1704
|
+
onBlur: (C) => P.blur()
|
|
1708
1705
|
}), {
|
|
1709
1706
|
default: g(() => [
|
|
1710
|
-
I(
|
|
1707
|
+
I(ue, {
|
|
1711
1708
|
modelValue: T.value,
|
|
1712
|
-
"onUpdate:modelValue": u[3] || (u[3] = (
|
|
1709
|
+
"onUpdate:modelValue": u[3] || (u[3] = (C) => T.value = C),
|
|
1713
1710
|
"close-on-content-click": !1,
|
|
1714
1711
|
activator: "parent"
|
|
1715
1712
|
}, {
|
|
1716
1713
|
default: g(() => [
|
|
1717
1714
|
I(H, {
|
|
1718
1715
|
modelValue: F.value,
|
|
1719
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1720
|
-
onCancel: u[1] || (u[1] = (
|
|
1721
|
-
onSave: u[2] || (u[2] = (
|
|
1716
|
+
"onUpdate:modelValue": u[0] || (u[0] = (C) => F.value = C),
|
|
1717
|
+
onCancel: u[1] || (u[1] = (C) => c.value = ""),
|
|
1718
|
+
onSave: u[2] || (u[2] = (C) => c.value = "")
|
|
1722
1719
|
}, {
|
|
1723
|
-
default: g(({ model:
|
|
1724
|
-
I(
|
|
1725
|
-
modelValue:
|
|
1726
|
-
"onUpdate:modelValue": (
|
|
1720
|
+
default: g(({ model: C, actions: Q }) => [
|
|
1721
|
+
I($, {
|
|
1722
|
+
modelValue: C.value,
|
|
1723
|
+
"onUpdate:modelValue": (x) => C.value = x,
|
|
1727
1724
|
"hide-header": !0,
|
|
1728
1725
|
"first-day-of-week": r.value,
|
|
1729
1726
|
"show-adjacent-months": !0,
|
|
1730
1727
|
"show-week": !0
|
|
1731
1728
|
}, {
|
|
1732
1729
|
actions: g(() => [
|
|
1733
|
-
(
|
|
1730
|
+
(V(), D(he(Q)))
|
|
1734
1731
|
]),
|
|
1735
1732
|
_: 2
|
|
1736
1733
|
}, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
|
|
@@ -1743,10 +1740,10 @@ const Fo = {
|
|
|
1743
1740
|
]),
|
|
1744
1741
|
_: 1
|
|
1745
1742
|
}, 16, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : U("", !0),
|
|
1746
|
-
["time", "datetime"].includes(o(v)) ? (
|
|
1743
|
+
["time", "datetime"].includes(o(v)) ? (V(), D(ce, R({
|
|
1747
1744
|
key: 1,
|
|
1748
|
-
modelValue:
|
|
1749
|
-
"onUpdate:modelValue": u[11] || (u[11] = (
|
|
1745
|
+
modelValue: M.value,
|
|
1746
|
+
"onUpdate:modelValue": u[11] || (u[11] = (C) => M.value = C),
|
|
1750
1747
|
style: { "flex-grow": "3" },
|
|
1751
1748
|
density: "compact",
|
|
1752
1749
|
variant: "plain",
|
|
@@ -1756,34 +1753,34 @@ const Fo = {
|
|
|
1756
1753
|
disabled: o(d).disabled,
|
|
1757
1754
|
name: `${o(d).name}-time`
|
|
1758
1755
|
}, f.passthroughAttrs, {
|
|
1759
|
-
onClick: u[12] || (u[12] = (
|
|
1760
|
-
onKeydown: u[13] || (u[13] =
|
|
1761
|
-
onFocus: (
|
|
1762
|
-
onBlur: (
|
|
1756
|
+
onClick: u[12] || (u[12] = (C) => c.value = "time"),
|
|
1757
|
+
onKeydown: u[13] || (u[13] = Fe((C) => c.value = "time", ["space"])),
|
|
1758
|
+
onFocus: (C) => P.focus(),
|
|
1759
|
+
onBlur: (C) => P.blur()
|
|
1763
1760
|
}), {
|
|
1764
1761
|
default: g(() => [
|
|
1765
|
-
I(
|
|
1762
|
+
I(ue, {
|
|
1766
1763
|
modelValue: _.value,
|
|
1767
|
-
"onUpdate:modelValue": u[10] || (u[10] = (
|
|
1764
|
+
"onUpdate:modelValue": u[10] || (u[10] = (C) => _.value = C),
|
|
1768
1765
|
"close-on-content-click": !1,
|
|
1769
1766
|
activator: "parent"
|
|
1770
1767
|
}, {
|
|
1771
1768
|
default: g(() => [
|
|
1772
1769
|
I(H, {
|
|
1773
1770
|
modelValue: k.value,
|
|
1774
|
-
"onUpdate:modelValue": u[7] || (u[7] = (
|
|
1775
|
-
onCancel: u[8] || (u[8] = (
|
|
1776
|
-
onSave: u[9] || (u[9] = (
|
|
1771
|
+
"onUpdate:modelValue": u[7] || (u[7] = (C) => k.value = C),
|
|
1772
|
+
onCancel: u[8] || (u[8] = (C) => c.value = ""),
|
|
1773
|
+
onSave: u[9] || (u[9] = (C) => c.value = "")
|
|
1777
1774
|
}, {
|
|
1778
|
-
default: g(({ model:
|
|
1775
|
+
default: g(({ model: C, actions: Q }) => [
|
|
1779
1776
|
I(B, {
|
|
1780
|
-
modelValue:
|
|
1781
|
-
"onUpdate:modelValue": (
|
|
1777
|
+
modelValue: C.value,
|
|
1778
|
+
"onUpdate:modelValue": (x) => C.value = x,
|
|
1782
1779
|
"hide-header": !0,
|
|
1783
1780
|
format: "24hr"
|
|
1784
1781
|
}, {
|
|
1785
1782
|
actions: g(() => [
|
|
1786
|
-
(
|
|
1783
|
+
(V(), D(he(Q)))
|
|
1787
1784
|
]),
|
|
1788
1785
|
_: 2
|
|
1789
1786
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1823,51 +1820,51 @@ const Fo = {
|
|
|
1823
1820
|
}, Y),
|
|
1824
1821
|
emits: ["update:modelValue", "click:clear"],
|
|
1825
1822
|
setup(e, { emit: t }) {
|
|
1826
|
-
const n = e, a = t, { densityClass: l, touched: r, value: s, vuetifyBindings: p } = X(n, a), i = N(null), d = N(null), v = N(0), m = N(Math.round(Math.random() * 1e3)), b = N(), c =
|
|
1823
|
+
const n = e, a = t, { densityClass: l, touched: r, value: s, vuetifyBindings: p } = X(n, a), i = N(null), d = N(null), v = N(0), m = N(Math.round(Math.random() * 1e3)), b = N(), c = w(() => d.value && v.value < 100), T = w(() => !b.value && s.value ? n.modelValue : "");
|
|
1827
1824
|
function _() {
|
|
1828
1825
|
i.value && window.clearInterval(i.value);
|
|
1829
1826
|
}
|
|
1830
|
-
function
|
|
1827
|
+
function y() {
|
|
1831
1828
|
_(), i.value = window.setInterval(() => {
|
|
1832
1829
|
s.value && n.comms.touch(s.value);
|
|
1833
1830
|
}, 60 * 1e3);
|
|
1834
1831
|
}
|
|
1835
|
-
|
|
1836
|
-
k ?
|
|
1832
|
+
Xe(() => _()), se(s, (k) => {
|
|
1833
|
+
k ? y() : _();
|
|
1837
1834
|
});
|
|
1838
1835
|
function h() {
|
|
1839
|
-
return
|
|
1836
|
+
return ge(this, null, function* () {
|
|
1840
1837
|
s.value && (yield n.comms.delete(s.value)), s.value = null, v.value = 0, m.value = Math.round(Math.random() * 1e3), d.value = null, b.value = null, _();
|
|
1841
1838
|
});
|
|
1842
1839
|
}
|
|
1843
|
-
function
|
|
1844
|
-
return
|
|
1840
|
+
function E(k) {
|
|
1841
|
+
return ge(this, null, function* () {
|
|
1845
1842
|
v.value = -1, d.value = k;
|
|
1846
1843
|
try {
|
|
1847
|
-
s.value = yield n.comms.upload(k, (
|
|
1848
|
-
v.value = Math.round(
|
|
1849
|
-
}), v.value = 100,
|
|
1850
|
-
} catch (
|
|
1851
|
-
throw v.value = 0, d.value = null, m.value = Math.round(Math.random() * 1e3), b.value = null,
|
|
1844
|
+
s.value = yield n.comms.upload(k, (j, M) => {
|
|
1845
|
+
v.value = Math.round(j * 100 / M);
|
|
1846
|
+
}), v.value = 100, y();
|
|
1847
|
+
} catch (j) {
|
|
1848
|
+
throw v.value = 0, d.value = null, m.value = Math.round(Math.random() * 1e3), b.value = null, j;
|
|
1852
1849
|
}
|
|
1853
1850
|
});
|
|
1854
1851
|
}
|
|
1855
1852
|
function F(k) {
|
|
1856
|
-
k && (Array.isArray(k) ? console.error("Uploading multiple files not supported right now") :
|
|
1853
|
+
k && (Array.isArray(k) ? console.error("Uploading multiple files not supported right now") : E(k));
|
|
1857
1854
|
}
|
|
1858
|
-
return (k,
|
|
1859
|
-
const
|
|
1860
|
-
return
|
|
1855
|
+
return (k, j) => {
|
|
1856
|
+
const M = A("v-progress-linear"), f = A("v-file-input");
|
|
1857
|
+
return V(), D(o(xe), R(L(S({}, n), { loading: c.value }), {
|
|
1861
1858
|
class: o(l),
|
|
1862
1859
|
clearable: "",
|
|
1863
1860
|
"onClick:clear": h,
|
|
1864
|
-
onBlur:
|
|
1861
|
+
onBlur: j[1] || (j[1] = (u) => r.value = !0)
|
|
1865
1862
|
}), {
|
|
1866
1863
|
"prepend-inner": g(() => [
|
|
1867
|
-
I(o(
|
|
1864
|
+
I(o(be), { name: "mdi-paperclip" })
|
|
1868
1865
|
]),
|
|
1869
1866
|
loader: g(() => [
|
|
1870
|
-
d.value && v.value < 100 ? (
|
|
1867
|
+
d.value && v.value < 100 ? (V(), D(M, {
|
|
1871
1868
|
key: 0,
|
|
1872
1869
|
"model-value": v.value,
|
|
1873
1870
|
indeterminate: v.value === -1
|
|
@@ -1875,11 +1872,11 @@ const Fo = {
|
|
|
1875
1872
|
]),
|
|
1876
1873
|
default: g((u) => [
|
|
1877
1874
|
oe("div", {
|
|
1878
|
-
class:
|
|
1875
|
+
class: G(["d-flex w-100 position-relative df-input-wrapper", k.density])
|
|
1879
1876
|
}, [
|
|
1880
1877
|
I(f, R({
|
|
1881
1878
|
modelValue: b.value,
|
|
1882
|
-
"onUpdate:modelValue":
|
|
1879
|
+
"onUpdate:modelValue": j[0] || (j[0] = ($) => b.value = $),
|
|
1883
1880
|
label: T.value,
|
|
1884
1881
|
density: "compact",
|
|
1885
1882
|
variant: "plain",
|
|
@@ -1894,8 +1891,8 @@ const Fo = {
|
|
|
1894
1891
|
}, k.passthroughAttrs, {
|
|
1895
1892
|
"prepend-icon": "",
|
|
1896
1893
|
"onUpdate:modelValue": F,
|
|
1897
|
-
onFocus: (
|
|
1898
|
-
onBlur: (
|
|
1894
|
+
onFocus: ($) => u.focus(),
|
|
1895
|
+
onBlur: ($) => u.blur()
|
|
1899
1896
|
}), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
|
|
1900
1897
|
], 2)
|
|
1901
1898
|
]),
|
|
@@ -1925,7 +1922,7 @@ const Fo = {
|
|
|
1925
1922
|
passthroughAttrs: {},
|
|
1926
1923
|
density: {},
|
|
1927
1924
|
variant: {}
|
|
1928
|
-
},
|
|
1925
|
+
}, L(S({}, Y), {
|
|
1929
1926
|
inputType: "text",
|
|
1930
1927
|
precision: null,
|
|
1931
1928
|
step: void 0,
|
|
@@ -1934,67 +1931,57 @@ const Fo = {
|
|
|
1934
1931
|
})),
|
|
1935
1932
|
emits: ["update:modelValue", "click:clear"],
|
|
1936
1933
|
setup(e, { emit: t }) {
|
|
1937
|
-
const n = e, a = t, { densityClass: l, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, a), { inputType: v, max: m, min: b, precision: c, step: T } =
|
|
1934
|
+
const n = e, a = t, { densityClass: l, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, a), { inputType: v, max: m, min: b, precision: c, step: T } = je(n), _ = w(() => v.value === "number"), y = w(
|
|
1938
1935
|
() => _.value ? { min: o(b), max: o(m), precision: o(c), step: o(T) } : {}
|
|
1939
1936
|
);
|
|
1940
|
-
return (h,
|
|
1937
|
+
return (h, E) => {
|
|
1941
1938
|
const F = A("v-text-field"), k = A("v-number-input");
|
|
1942
|
-
return
|
|
1943
|
-
class:
|
|
1939
|
+
return V(), W("div", {
|
|
1940
|
+
class: G(["df-input-container", o(l)])
|
|
1944
1941
|
}, [
|
|
1945
|
-
_.value ? (
|
|
1942
|
+
_.value ? (V(), D(k, R({
|
|
1946
1943
|
key: 1,
|
|
1947
1944
|
modelValue: o(i),
|
|
1948
|
-
"onUpdate:modelValue":
|
|
1949
|
-
}, S(S({}, o(d)),
|
|
1945
|
+
"onUpdate:modelValue": E[2] || (E[2] = (j) => ne(i) ? i.value = j : null)
|
|
1946
|
+
}, S(S({}, o(d)), y.value), {
|
|
1950
1947
|
density: "compact",
|
|
1951
1948
|
"control-variant": "stacked"
|
|
1952
|
-
}),
|
|
1953
|
-
|
|
1949
|
+
}), {
|
|
1950
|
+
label: g((j) => [
|
|
1951
|
+
I(o(ae), {
|
|
1952
|
+
data: j,
|
|
1953
|
+
label: o(s)
|
|
1954
|
+
}, null, 8, ["data", "label"])
|
|
1955
|
+
]),
|
|
1956
|
+
message: g(({ message: j }) => [
|
|
1954
1957
|
I(o(le), {
|
|
1955
|
-
message:
|
|
1958
|
+
message: j,
|
|
1956
1959
|
errors: o(r)
|
|
1957
1960
|
}, null, 8, ["message", "errors"])
|
|
1958
1961
|
]),
|
|
1959
|
-
_:
|
|
1960
|
-
}, [
|
|
1961
|
-
o(s).icon ? {
|
|
1962
|
-
name: "label",
|
|
1963
|
-
fn: g((V) => [
|
|
1964
|
-
I(o(ae), {
|
|
1965
|
-
data: V,
|
|
1966
|
-
label: o(s)
|
|
1967
|
-
}, null, 8, ["data", "label"])
|
|
1968
|
-
]),
|
|
1969
|
-
key: "0"
|
|
1970
|
-
} : void 0
|
|
1971
|
-
]), 1040, ["modelValue"])) : (C(), x(F, R({
|
|
1962
|
+
_: 1
|
|
1963
|
+
}, 16, ["modelValue"])) : (V(), D(F, R({
|
|
1972
1964
|
key: 0,
|
|
1973
1965
|
modelValue: o(i),
|
|
1974
|
-
"onUpdate:modelValue":
|
|
1966
|
+
"onUpdate:modelValue": E[0] || (E[0] = (j) => ne(i) ? i.value = j : null)
|
|
1975
1967
|
}, o(d), {
|
|
1976
1968
|
type: o(v),
|
|
1977
|
-
onBlur:
|
|
1978
|
-
}),
|
|
1979
|
-
|
|
1969
|
+
onBlur: E[1] || (E[1] = (j) => p.value = !0)
|
|
1970
|
+
}), {
|
|
1971
|
+
label: g((j) => [
|
|
1972
|
+
I(o(ae), {
|
|
1973
|
+
data: j,
|
|
1974
|
+
label: o(s)
|
|
1975
|
+
}, null, 8, ["data", "label"])
|
|
1976
|
+
]),
|
|
1977
|
+
message: g(({ message: j }) => [
|
|
1980
1978
|
I(o(le), {
|
|
1981
|
-
message:
|
|
1979
|
+
message: j,
|
|
1982
1980
|
errors: o(r)
|
|
1983
1981
|
}, null, 8, ["message", "errors"])
|
|
1984
1982
|
]),
|
|
1985
|
-
_:
|
|
1986
|
-
}, [
|
|
1987
|
-
o(s).icon ? {
|
|
1988
|
-
name: "label",
|
|
1989
|
-
fn: g((V) => [
|
|
1990
|
-
I(o(ae), {
|
|
1991
|
-
data: V,
|
|
1992
|
-
label: o(s)
|
|
1993
|
-
}, null, 8, ["data", "label"])
|
|
1994
|
-
]),
|
|
1995
|
-
key: "0"
|
|
1996
|
-
} : void 0
|
|
1997
|
-
]), 1040, ["modelValue", "type"]))
|
|
1983
|
+
_: 1
|
|
1984
|
+
}, 16, ["modelValue", "type"]))
|
|
1998
1985
|
], 2);
|
|
1999
1986
|
};
|
|
2000
1987
|
}
|
|
@@ -2007,10 +1994,10 @@ const Fo = {
|
|
|
2007
1994
|
},
|
|
2008
1995
|
emits: ["update:modelValue"],
|
|
2009
1996
|
setup(e, { expose: t, emit: n }) {
|
|
2010
|
-
|
|
1997
|
+
pt((m) => ({
|
|
2011
1998
|
"5f8a2e8c": m.minHeight
|
|
2012
1999
|
}));
|
|
2013
|
-
const a = n, l = N(!1), r =
|
|
2000
|
+
const a = n, l = N(!1), r = dn, d = {
|
|
2014
2001
|
toolbar: {
|
|
2015
2002
|
items: [
|
|
2016
2003
|
"undo",
|
|
@@ -2042,7 +2029,6 @@ const Fo = {
|
|
|
2042
2029
|
shouldNotGroupWhenFull: !1
|
|
2043
2030
|
},
|
|
2044
2031
|
plugins: [
|
|
2045
|
-
Vt,
|
|
2046
2032
|
jt,
|
|
2047
2033
|
Ct,
|
|
2048
2034
|
Tt,
|
|
@@ -2053,13 +2039,13 @@ const Fo = {
|
|
|
2053
2039
|
Dt,
|
|
2054
2040
|
xt,
|
|
2055
2041
|
St,
|
|
2056
|
-
$t,
|
|
2057
2042
|
Et,
|
|
2043
|
+
$t,
|
|
2058
2044
|
At,
|
|
2059
2045
|
Nt,
|
|
2060
2046
|
Ft,
|
|
2061
|
-
Lt,
|
|
2062
2047
|
Mt,
|
|
2048
|
+
Lt,
|
|
2063
2049
|
Ut,
|
|
2064
2050
|
Ot,
|
|
2065
2051
|
Rt,
|
|
@@ -2082,7 +2068,8 @@ const Fo = {
|
|
|
2082
2068
|
ln,
|
|
2083
2069
|
rn,
|
|
2084
2070
|
sn,
|
|
2085
|
-
un
|
|
2071
|
+
un,
|
|
2072
|
+
cn
|
|
2086
2073
|
],
|
|
2087
2074
|
balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
|
|
2088
2075
|
heading: {
|
|
@@ -2139,17 +2126,17 @@ const Fo = {
|
|
|
2139
2126
|
},
|
|
2140
2127
|
table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] }
|
|
2141
2128
|
};
|
|
2142
|
-
|
|
2129
|
+
Ke(() => {
|
|
2143
2130
|
l.value = !0;
|
|
2144
2131
|
});
|
|
2145
2132
|
const v = (m) => {
|
|
2146
2133
|
};
|
|
2147
2134
|
return t({ onEditorReady: v }), (m, b) => {
|
|
2148
2135
|
const c = A("ckeditor");
|
|
2149
|
-
return
|
|
2136
|
+
return V(), W("div", Ho, [
|
|
2150
2137
|
oe("div", Ko, [
|
|
2151
2138
|
oe("div", Xo, [
|
|
2152
|
-
l.value ? (
|
|
2139
|
+
l.value ? (V(), D(c, {
|
|
2153
2140
|
key: 0,
|
|
2154
2141
|
"model-value": m.modelValue,
|
|
2155
2142
|
editor: o(r),
|
|
@@ -2182,11 +2169,11 @@ const Fo = {
|
|
|
2182
2169
|
passthroughAttrs: {},
|
|
2183
2170
|
density: {},
|
|
2184
2171
|
variant: {}
|
|
2185
|
-
},
|
|
2172
|
+
}, L(S({}, Y), { minHeight: void 0 })),
|
|
2186
2173
|
emits: ["update:modelValue", "click:clear"],
|
|
2187
2174
|
setup(e, { emit: t }) {
|
|
2188
2175
|
const n = e, a = t, { densityClass: l, value: r, vuetifyBindings: s } = X(n, a);
|
|
2189
|
-
return (p, i) => (
|
|
2176
|
+
return (p, i) => (V(), D(o(xe), R(n, {
|
|
2190
2177
|
class: ["ck-editor-custom", o(l)]
|
|
2191
2178
|
}), {
|
|
2192
2179
|
default: g((d) => [
|
|
@@ -2212,14 +2199,14 @@ function Yo(e) {
|
|
|
2212
2199
|
}
|
|
2213
2200
|
function Z(e, t) {
|
|
2214
2201
|
var n;
|
|
2215
|
-
return e == null ||
|
|
2202
|
+
return e == null || Re(e) && e.length === 0 ? null : t ? qe(e) : Re(e) ? (n = Ye(e)) != null ? n : null : e;
|
|
2216
2203
|
}
|
|
2217
|
-
function
|
|
2204
|
+
function Ve(e, t) {
|
|
2218
2205
|
if (t == null) return [];
|
|
2219
2206
|
const n = qe(t);
|
|
2220
2207
|
return e.filter((a) => n.some((l) => l === a.id));
|
|
2221
2208
|
}
|
|
2222
|
-
function
|
|
2209
|
+
function ye(e, t, n, a, l) {
|
|
2223
2210
|
var s;
|
|
2224
2211
|
const r = Z(e, n);
|
|
2225
2212
|
if (r == null) {
|
|
@@ -2227,11 +2214,11 @@ function ke(e, t, n, a, l) {
|
|
|
2227
2214
|
return;
|
|
2228
2215
|
}
|
|
2229
2216
|
if (n)
|
|
2230
|
-
a ? t.value = r : t.value =
|
|
2217
|
+
a ? t.value = r : t.value = Ve(l, r).map((p) => p.id);
|
|
2231
2218
|
else if (a)
|
|
2232
2219
|
t.value = r;
|
|
2233
2220
|
else {
|
|
2234
|
-
const p = Ye(
|
|
2221
|
+
const p = Ye(Ve(l, r));
|
|
2235
2222
|
t.value = (s = p == null ? void 0 : p.id) != null ? s : null;
|
|
2236
2223
|
}
|
|
2237
2224
|
}
|
|
@@ -2260,7 +2247,7 @@ const Qo = {
|
|
|
2260
2247
|
passthroughAttrs: {},
|
|
2261
2248
|
density: {},
|
|
2262
2249
|
variant: {}
|
|
2263
|
-
},
|
|
2250
|
+
}, L(S({}, Y), {
|
|
2264
2251
|
choices: void 0,
|
|
2265
2252
|
multiple: !1,
|
|
2266
2253
|
allowTags: !1,
|
|
@@ -2269,83 +2256,83 @@ const Qo = {
|
|
|
2269
2256
|
})),
|
|
2270
2257
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
2271
2258
|
setup(e, { emit: t }) {
|
|
2272
|
-
const n = e, { choices: a, multiple: l, allowTags: r, allowNull: s, cssClass: p, visibility: i } =
|
|
2259
|
+
const n = e, { choices: a, multiple: l, allowTags: r, allowNull: s, cssClass: p, visibility: i } = je(n), d = t, {
|
|
2273
2260
|
densityClass: v,
|
|
2274
2261
|
errors: m,
|
|
2275
2262
|
label: b,
|
|
2276
2263
|
touched: c,
|
|
2277
2264
|
value: T,
|
|
2278
2265
|
vuetifyBindings: _
|
|
2279
|
-
} = X(n, d),
|
|
2280
|
-
|
|
2281
|
-
function
|
|
2282
|
-
d("update:modelValueDisplay",
|
|
2266
|
+
} = X(n, d), y = N(null), h = N(!1), E = N([]), F = w(() => o(h) ? o(E) : o(a) || []), k = N(!1), j = w(() => Yo(F.value));
|
|
2267
|
+
j.value && n.fetchChoices !== void 0 && console.warn("Both options and fetchChoices are set. Only one of them should be set.");
|
|
2268
|
+
function M(B) {
|
|
2269
|
+
d("update:modelValueDisplay", Ve(F.value, B));
|
|
2283
2270
|
}
|
|
2284
2271
|
let f = !1;
|
|
2285
2272
|
function u(B) {
|
|
2286
|
-
f = !0, T.value = B,
|
|
2273
|
+
f = !0, T.value = B, Me(() => {
|
|
2287
2274
|
f = !1;
|
|
2288
2275
|
});
|
|
2289
2276
|
}
|
|
2290
|
-
|
|
2291
|
-
|
|
2277
|
+
se(
|
|
2278
|
+
y,
|
|
2292
2279
|
(B) => {
|
|
2293
|
-
_.value.readonly ||
|
|
2280
|
+
_.value.readonly || Me(() => {
|
|
2294
2281
|
const P = Z(B, l.value);
|
|
2295
|
-
|
|
2282
|
+
M(P), u(P);
|
|
2296
2283
|
});
|
|
2297
2284
|
},
|
|
2298
2285
|
{ deep: !0 }
|
|
2299
|
-
),
|
|
2286
|
+
), se(
|
|
2300
2287
|
T,
|
|
2301
2288
|
(B) => {
|
|
2302
2289
|
if (!f) {
|
|
2303
2290
|
const P = Z(B, l.value);
|
|
2304
|
-
|
|
2291
|
+
ye(P, y, l.value, !1, F.value);
|
|
2305
2292
|
}
|
|
2306
2293
|
},
|
|
2307
2294
|
{ deep: !0 }
|
|
2308
2295
|
);
|
|
2309
|
-
function
|
|
2296
|
+
function $() {
|
|
2310
2297
|
if (_.value.readonly || r.value) return;
|
|
2311
|
-
const B = Z(
|
|
2312
|
-
|
|
2298
|
+
const B = Z(y.value, l.value);
|
|
2299
|
+
ye(B, y, l.value, !1, F.value), u(B);
|
|
2313
2300
|
}
|
|
2314
2301
|
function H(B) {
|
|
2315
2302
|
let P;
|
|
2316
|
-
l.value && Array.isArray(
|
|
2317
|
-
|
|
2303
|
+
l.value && Array.isArray(y.value) ? P = Z(
|
|
2304
|
+
y.value.filter((C) => C !== B),
|
|
2318
2305
|
l.value
|
|
2319
|
-
) : P = null,
|
|
2306
|
+
) : P = null, ye(P, y, l.value, !1, F.value), u(P);
|
|
2320
2307
|
}
|
|
2321
|
-
function
|
|
2322
|
-
return
|
|
2308
|
+
function ue(B, P) {
|
|
2309
|
+
return ge(this, null, function* () {
|
|
2323
2310
|
if (!(a.value || n.fetchChoices === void 0)) {
|
|
2324
2311
|
k.value = !0;
|
|
2325
2312
|
try {
|
|
2326
|
-
const
|
|
2313
|
+
const C = Ve(
|
|
2327
2314
|
F.value,
|
|
2328
|
-
Z(
|
|
2315
|
+
Z(y.value, l.value)
|
|
2329
2316
|
), Q = yield n.fetchChoices(B, P);
|
|
2330
|
-
|
|
2317
|
+
E.value = bt([...C, ...Q], "id"), h.value = !0;
|
|
2331
2318
|
} finally {
|
|
2332
2319
|
k.value = !1;
|
|
2333
2320
|
}
|
|
2334
2321
|
}
|
|
2335
2322
|
});
|
|
2336
2323
|
}
|
|
2337
|
-
function
|
|
2324
|
+
function ce() {
|
|
2338
2325
|
let B = T.value;
|
|
2339
|
-
!s.value && B == null &&
|
|
2326
|
+
!s.value && B == null && j.value.length && (B = j.value[0].value), B = Z(B, l.value), ye(B, y, l.value, r.value, F.value), M(B), u(B);
|
|
2340
2327
|
}
|
|
2341
|
-
return
|
|
2342
|
-
|
|
2328
|
+
return ce(), n.fetchChoices !== void 0 && ue(void 0, T.value).then(() => {
|
|
2329
|
+
ce();
|
|
2343
2330
|
}), (B, P) => {
|
|
2344
|
-
const
|
|
2345
|
-
return o(i) !== o(K).SUPPRESS ? (
|
|
2331
|
+
const C = A("v-chip"), Q = A("v-list-item");
|
|
2332
|
+
return o(i) !== o(K).SUPPRESS ? (V(), D(he(o(r) ? "v-combobox" : "v-autocomplete"), R({
|
|
2346
2333
|
key: 0,
|
|
2347
|
-
modelValue:
|
|
2348
|
-
"onUpdate:modelValue": P[0] || (P[0] = (
|
|
2334
|
+
modelValue: y.value,
|
|
2335
|
+
"onUpdate:modelValue": P[0] || (P[0] = (x) => y.value = x),
|
|
2349
2336
|
class: [
|
|
2350
2337
|
o(p),
|
|
2351
2338
|
o(v),
|
|
@@ -2354,13 +2341,13 @@ const Qo = {
|
|
|
2354
2341
|
invisible: o(i) === o(K).INVISIBLE
|
|
2355
2342
|
}
|
|
2356
2343
|
],
|
|
2357
|
-
items:
|
|
2344
|
+
items: j.value,
|
|
2358
2345
|
"return-object": !1
|
|
2359
2346
|
}, o(_), {
|
|
2360
2347
|
label: o(_).label,
|
|
2361
2348
|
chips: "",
|
|
2362
2349
|
"auto-select-first": !0,
|
|
2363
|
-
"closable-chips": o(s) || o(l) &&
|
|
2350
|
+
"closable-chips": o(s) || o(l) && y.value.length > 1,
|
|
2364
2351
|
clearable: o(s),
|
|
2365
2352
|
multiple: o(l),
|
|
2366
2353
|
loading: k.value,
|
|
@@ -2368,48 +2355,54 @@ const Qo = {
|
|
|
2368
2355
|
"aria-describedby": o(_).helpText ? `${o(_).name}-help` : null,
|
|
2369
2356
|
"menu-props": { maxHeight: "400" },
|
|
2370
2357
|
"hide-details": "auto",
|
|
2371
|
-
"onUpdate:search": P[1] || (P[1] = (
|
|
2372
|
-
"onUpdate:modelValue":
|
|
2373
|
-
"onClick:clear": P[2] || (P[2] = (
|
|
2374
|
-
onBlur: P[3] || (P[3] = (
|
|
2375
|
-
}),
|
|
2376
|
-
chip: g(({ item:
|
|
2377
|
-
(
|
|
2378
|
-
key:
|
|
2358
|
+
"onUpdate:search": P[1] || (P[1] = (x) => ue(x, void 0)),
|
|
2359
|
+
"onUpdate:modelValue": $,
|
|
2360
|
+
"onClick:clear": P[2] || (P[2] = (x) => y.value = null),
|
|
2361
|
+
onBlur: P[3] || (P[3] = (x) => c.value = !0)
|
|
2362
|
+
}), Pe({
|
|
2363
|
+
chip: g(({ item: x }) => [
|
|
2364
|
+
(V(), D(C, {
|
|
2365
|
+
key: x.value,
|
|
2379
2366
|
label: "",
|
|
2380
2367
|
size: "small",
|
|
2381
2368
|
class: "d-flex align-middle",
|
|
2382
2369
|
variant: o(l) ? "tonal" : "text",
|
|
2383
2370
|
closable: o(l),
|
|
2384
|
-
"onClick:close": (
|
|
2371
|
+
"onClick:close": (re) => H(x.value)
|
|
2385
2372
|
}, {
|
|
2386
2373
|
prepend: g(() => {
|
|
2387
|
-
var
|
|
2374
|
+
var re;
|
|
2388
2375
|
return [
|
|
2389
|
-
(
|
|
2376
|
+
(re = x.raw) != null && re.icon ? (V(), D(o(be), {
|
|
2390
2377
|
key: 0,
|
|
2391
2378
|
class: "me-1",
|
|
2392
|
-
name:
|
|
2379
|
+
name: x.raw.icon
|
|
2393
2380
|
}, null, 8, ["name"])) : U("", !0)
|
|
2394
2381
|
];
|
|
2395
2382
|
}),
|
|
2396
2383
|
default: g(() => [
|
|
2397
2384
|
oe("span", {
|
|
2398
|
-
class:
|
|
2399
|
-
},
|
|
2385
|
+
class: G({ "text-body-1": !o(l) })
|
|
2386
|
+
}, De(x.title), 3)
|
|
2400
2387
|
]),
|
|
2401
2388
|
_: 2
|
|
2402
2389
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
2403
2390
|
]),
|
|
2404
|
-
|
|
2405
|
-
I(
|
|
2391
|
+
label: g((x) => [
|
|
2392
|
+
I(o(ae), {
|
|
2393
|
+
data: x,
|
|
2394
|
+
label: o(b)
|
|
2395
|
+
}, null, 8, ["data", "label"])
|
|
2396
|
+
]),
|
|
2397
|
+
item: g(({ props: x, item: re }) => [
|
|
2398
|
+
I(Q, J(ee(x)), {
|
|
2406
2399
|
prepend: g(() => {
|
|
2407
|
-
var
|
|
2400
|
+
var Se;
|
|
2408
2401
|
return [
|
|
2409
|
-
(
|
|
2410
|
-
I(o(
|
|
2402
|
+
(Se = re.raw) != null && Se.icon ? (V(), W("span", Qo, [
|
|
2403
|
+
I(o(be), {
|
|
2411
2404
|
class: "action-icon",
|
|
2412
|
-
name:
|
|
2405
|
+
name: re.raw.icon
|
|
2413
2406
|
}, null, 8, ["name"])
|
|
2414
2407
|
])) : U("", !0)
|
|
2415
2408
|
];
|
|
@@ -2417,37 +2410,27 @@ const Qo = {
|
|
|
2417
2410
|
_: 2
|
|
2418
2411
|
}, 1040)
|
|
2419
2412
|
]),
|
|
2420
|
-
message: g(({ message:
|
|
2413
|
+
message: g(({ message: x }) => [
|
|
2421
2414
|
I(o(le), {
|
|
2422
|
-
message:
|
|
2415
|
+
message: x,
|
|
2423
2416
|
errors: o(m)
|
|
2424
2417
|
}, null, 8, ["message", "errors"])
|
|
2425
2418
|
]),
|
|
2426
2419
|
_: 2
|
|
2427
2420
|
}, [
|
|
2428
|
-
o(b).icon ? {
|
|
2429
|
-
name: "label",
|
|
2430
|
-
fn: g((D) => [
|
|
2431
|
-
I(o(ae), {
|
|
2432
|
-
data: D,
|
|
2433
|
-
label: o(b)
|
|
2434
|
-
}, null, 8, ["data", "label"])
|
|
2435
|
-
]),
|
|
2436
|
-
key: "0"
|
|
2437
|
-
} : void 0,
|
|
2438
2421
|
B.$slots["append-inner"] ? {
|
|
2439
2422
|
name: "append-inner",
|
|
2440
|
-
fn: g((
|
|
2441
|
-
|
|
2423
|
+
fn: g((x) => [
|
|
2424
|
+
ie(B.$slots, "append-inner", J(ee(x)))
|
|
2442
2425
|
]),
|
|
2443
|
-
key: "
|
|
2426
|
+
key: "0"
|
|
2444
2427
|
} : void 0,
|
|
2445
2428
|
B.$slots["prepend-inner"] ? {
|
|
2446
2429
|
name: "prepend-inner",
|
|
2447
|
-
fn: g((
|
|
2448
|
-
|
|
2430
|
+
fn: g((x) => [
|
|
2431
|
+
ie(B.$slots, "prepend-inner", J(ee(x)))
|
|
2449
2432
|
]),
|
|
2450
|
-
key: "
|
|
2433
|
+
key: "1"
|
|
2451
2434
|
} : void 0
|
|
2452
2435
|
]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : U("", !0);
|
|
2453
2436
|
};
|
|
@@ -2471,19 +2454,19 @@ const Qo = {
|
|
|
2471
2454
|
passthroughAttrs: {},
|
|
2472
2455
|
density: {},
|
|
2473
2456
|
variant: {}
|
|
2474
|
-
},
|
|
2457
|
+
}, L(S({}, Y), {
|
|
2475
2458
|
rows: void 0,
|
|
2476
2459
|
maxRows: void 0
|
|
2477
2460
|
})),
|
|
2478
2461
|
emits: ["update:modelValue", "click:clear"],
|
|
2479
2462
|
setup(e, { emit: t }) {
|
|
2480
|
-
const n = e, a = t, { densityClass: l, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, a), { cssClass: v, visibility: m } =
|
|
2463
|
+
const n = e, a = t, { densityClass: l, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, a), { cssClass: v, visibility: m } = je(n);
|
|
2481
2464
|
return (b, c) => {
|
|
2482
2465
|
const T = A("v-textarea");
|
|
2483
|
-
return
|
|
2484
|
-
class:
|
|
2466
|
+
return V(), W("div", {
|
|
2467
|
+
class: G(["df-textarea-container", o(l)])
|
|
2485
2468
|
}, [
|
|
2486
|
-
o(m) !== o(K).SUPPRESS ? (
|
|
2469
|
+
o(m) !== o(K).SUPPRESS ? (V(), D(T, R({
|
|
2487
2470
|
key: 0,
|
|
2488
2471
|
modelValue: o(i),
|
|
2489
2472
|
"onUpdate:modelValue": c[0] || (c[0] = (_) => ne(i) ? i.value = _ : null),
|
|
@@ -2499,32 +2482,27 @@ const Qo = {
|
|
|
2499
2482
|
"max-rows": b.maxRows
|
|
2500
2483
|
}, o(d), {
|
|
2501
2484
|
onBlur: c[1] || (c[1] = (_) => p.value = !0)
|
|
2502
|
-
}),
|
|
2485
|
+
}), {
|
|
2486
|
+
label: g((_) => [
|
|
2487
|
+
I(o(ae), {
|
|
2488
|
+
data: _,
|
|
2489
|
+
label: o(s)
|
|
2490
|
+
}, null, 8, ["data", "label"])
|
|
2491
|
+
]),
|
|
2503
2492
|
message: g(({ message: _ }) => [
|
|
2504
2493
|
I(o(le), {
|
|
2505
2494
|
message: _,
|
|
2506
2495
|
errors: o(r)
|
|
2507
2496
|
}, null, 8, ["message", "errors"])
|
|
2508
2497
|
]),
|
|
2509
|
-
_:
|
|
2510
|
-
}, [
|
|
2511
|
-
o(s).icon ? {
|
|
2512
|
-
name: "label",
|
|
2513
|
-
fn: g((_) => [
|
|
2514
|
-
I(o(ae), {
|
|
2515
|
-
data: _,
|
|
2516
|
-
label: o(s)
|
|
2517
|
-
}, null, 8, ["data", "label"])
|
|
2518
|
-
]),
|
|
2519
|
-
key: "0"
|
|
2520
|
-
} : void 0
|
|
2521
|
-
]), 1040, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) : U("", !0)
|
|
2498
|
+
_: 1
|
|
2499
|
+
}, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) : U("", !0)
|
|
2522
2500
|
], 2);
|
|
2523
2501
|
};
|
|
2524
2502
|
}
|
|
2525
2503
|
}), ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2526
2504
|
__proto__: null,
|
|
2527
|
-
DfActions:
|
|
2505
|
+
DfActions: Lo,
|
|
2528
2506
|
DfCheckbox: Uo,
|
|
2529
2507
|
DfColor: Oo,
|
|
2530
2508
|
DfDateTime: Ro,
|
|
@@ -2535,43 +2513,43 @@ const Qo = {
|
|
|
2535
2513
|
DfTextArea: Jo
|
|
2536
2514
|
}, Symbol.toStringTag, { value: "Module" })), ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2537
2515
|
__proto__: null,
|
|
2538
|
-
VAutocomplete:
|
|
2539
|
-
VBtn:
|
|
2540
|
-
VCheckbox:
|
|
2541
|
-
VChip:
|
|
2542
|
-
VCol:
|
|
2543
|
-
VColorPicker:
|
|
2544
|
-
VCombobox:
|
|
2545
|
-
VConfirmEdit:
|
|
2546
|
-
VDatePicker:
|
|
2516
|
+
VAutocomplete: mn,
|
|
2517
|
+
VBtn: pn,
|
|
2518
|
+
VCheckbox: fn,
|
|
2519
|
+
VChip: vn,
|
|
2520
|
+
VCol: Vn,
|
|
2521
|
+
VColorPicker: bn,
|
|
2522
|
+
VCombobox: hn,
|
|
2523
|
+
VConfirmEdit: gn,
|
|
2524
|
+
VDatePicker: wn,
|
|
2547
2525
|
VField: yn,
|
|
2548
|
-
VFileInput:
|
|
2549
|
-
VIcon:
|
|
2550
|
-
VImg:
|
|
2551
|
-
VInput:
|
|
2552
|
-
VListItem:
|
|
2553
|
-
VMenu:
|
|
2554
|
-
VNumberInput:
|
|
2555
|
-
VProgressLinear:
|
|
2556
|
-
VRow:
|
|
2557
|
-
VSelect:
|
|
2558
|
-
VSwitch:
|
|
2526
|
+
VFileInput: kn,
|
|
2527
|
+
VIcon: Cn,
|
|
2528
|
+
VImg: Tn,
|
|
2529
|
+
VInput: _n,
|
|
2530
|
+
VListItem: Bn,
|
|
2531
|
+
VMenu: In,
|
|
2532
|
+
VNumberInput: Pn,
|
|
2533
|
+
VProgressLinear: Dn,
|
|
2534
|
+
VRow: jn,
|
|
2535
|
+
VSelect: xn,
|
|
2536
|
+
VSwitch: Sn,
|
|
2559
2537
|
VTextField: $n,
|
|
2560
|
-
VTextarea:
|
|
2561
|
-
VTimePicker:
|
|
2538
|
+
VTextarea: En,
|
|
2539
|
+
VTimePicker: An
|
|
2562
2540
|
}, Symbol.toStringTag, { value: "Module" })), Aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2563
2541
|
__proto__: null
|
|
2564
2542
|
}, Symbol.toStringTag, { value: "Module" })), Na = {
|
|
2565
2543
|
install: (e, t) => {
|
|
2566
2544
|
var n, a;
|
|
2567
|
-
e.use(
|
|
2545
|
+
e.use(Xn), e.provide(tt, t != null ? t : {}), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(ea).map(([l, r]) => e.component(l, r)), (a = t == null ? void 0 : t.registerVuetifyComponents) != null && a && Object.entries(ta).map(([l, r]) => e.component(l, r));
|
|
2568
2546
|
}
|
|
2569
2547
|
};
|
|
2570
2548
|
export {
|
|
2571
|
-
|
|
2549
|
+
ke as Action,
|
|
2572
2550
|
z as ActionDisplayStyle,
|
|
2573
|
-
|
|
2574
|
-
|
|
2551
|
+
Do as DateTimeLocaleConfig,
|
|
2552
|
+
Lo as DfActions,
|
|
2575
2553
|
Uo as DfCheckbox,
|
|
2576
2554
|
Oo as DfColor,
|
|
2577
2555
|
Ro as DfDateTime,
|
|
@@ -2584,20 +2562,20 @@ export {
|
|
|
2584
2562
|
Zo as DfSelect,
|
|
2585
2563
|
Jo as DfTextArea,
|
|
2586
2564
|
Na as DynamicFormsInputs,
|
|
2587
|
-
|
|
2565
|
+
xe as InputBase,
|
|
2588
2566
|
xo as Label,
|
|
2589
2567
|
le as MessagesWidget,
|
|
2590
2568
|
No as ResponsiveActionRenderOptions,
|
|
2591
|
-
|
|
2569
|
+
Eo as ResponsiveRenderOptions,
|
|
2592
2570
|
ta as VuetifyComponents,
|
|
2593
2571
|
Y as defaultBaseProps,
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2572
|
+
ze as defaultDisplayStyle,
|
|
2573
|
+
$o as getBreakpointName,
|
|
2574
|
+
He as responsiveBreakpoints,
|
|
2575
|
+
ve as translatableStrings,
|
|
2576
|
+
$a as translateStrings,
|
|
2599
2577
|
Ao as useBreakpoint,
|
|
2600
2578
|
X as useInputBase,
|
|
2601
|
-
|
|
2579
|
+
tt as vuetifyInputsSettingsKey
|
|
2602
2580
|
};
|
|
2603
2581
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|