@dynamicforms/vuetify-inputs 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var bt = Object.defineProperty, gt = Object.defineProperties;
|
|
2
2
|
var yt = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var He = Object.getOwnPropertySymbols;
|
|
4
4
|
var wt = Object.prototype.hasOwnProperty, kt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Pe = (e, t, n) => t in e ? bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
5
|
+
var Pe = (e, t, n) => t in e ? bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, B = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
7
|
wt.call(t, n) && Pe(e, n, t[n]);
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
8
|
+
if (He)
|
|
9
|
+
for (var n of He(t))
|
|
10
10
|
kt.call(t, n) && Pe(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, L = (e, t) => gt(e, yt(t));
|
|
@@ -14,51 +14,51 @@ var be = (e, t, n) => Pe(e, typeof t != "symbol" ? t + "" : t, n);
|
|
|
14
14
|
var Te = (e, t, n) => new Promise((l, a) => {
|
|
15
15
|
var i = (v) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
d(n.next(v));
|
|
18
18
|
} catch (r) {
|
|
19
19
|
a(r);
|
|
20
20
|
}
|
|
21
21
|
}, u = (v) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
d(n.throw(v));
|
|
24
24
|
} catch (r) {
|
|
25
25
|
a(r);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, d = (v) => v.done ? l(v.value) : Promise.resolve(v.value).then(i, u);
|
|
28
|
+
d((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as ze from "vue";
|
|
31
|
-
import { defineComponent as
|
|
32
|
-
import { debounce as Dt, isString as re, isEmpty as Ve,
|
|
33
|
-
import ge, { MessagesWidget as
|
|
31
|
+
import { defineComponent as O, useModel as Vt, ref as E, watch as ie, onMounted as tt, markRaw as Ct, onBeforeUnmount as nt, openBlock as C, createBlock as A, resolveDynamicComponent as Ce, mergeModels as Ke, version as jt, isRef as se, computed as h, unref as o, resolveComponent as N, createElementBlock as K, normalizeClass as ee, Fragment as Fe, createCommentVNode as R, createTextVNode as Tt, toDisplayString as Le, inject as Ee, createSlots as Ne, withCtx as g, createVNode as D, renderSlot as me, normalizeProps as le, guardReactiveProps as ae, createElementVNode as ue, renderList as xt, mergeProps as W, withModifiers as _t, mergeDefaults as te, normalizeStyle as ot, toRefs as Ie, withKeys as Xe, useCssVars as Bt, nextTick as qe } from "vue";
|
|
32
|
+
import { debounce as Dt, isString as re, isEmpty as Ve, isPlainObject as It, isObjectLike as St, isBoolean as Ge, clone as Pt, toNumber as Ye, isNaN as Qe, isArray as Ze, castArray as lt, first as at, unionBy as Et } from "lodash-es";
|
|
33
|
+
import ge, { MessagesWidget as At, MdString as $t, ValidationErrorRenderContent as Mt, Action as Ft, DisplayMode as Ae } from "@dynamicforms/vue-forms";
|
|
34
34
|
import { CachedIcon as je } from "vue-cached-icon";
|
|
35
|
-
import
|
|
36
|
-
import { useDisplay as
|
|
37
|
-
import { parse as
|
|
38
|
-
import { AccessibilityHelp as
|
|
39
|
-
import { VAutocomplete as
|
|
40
|
-
import { VBtn as
|
|
41
|
-
import { VCheckbox as
|
|
42
|
-
import { VChip as
|
|
43
|
-
import { VCombobox as
|
|
44
|
-
import { VColorPicker as
|
|
45
|
-
import { VConfirmEdit as
|
|
46
|
-
import { VDatePicker as
|
|
47
|
-
import { VField as
|
|
48
|
-
import { VFileInput as
|
|
49
|
-
import { VCol as
|
|
50
|
-
import { VIcon as
|
|
51
|
-
import { VImg as
|
|
35
|
+
import Nt from "vue-markdown-render";
|
|
36
|
+
import { useDisplay as Lt } from "vuetify";
|
|
37
|
+
import { parse as Rt, format as ye } from "date-fns";
|
|
38
|
+
import { AccessibilityHelp as Ut, Alignment as Wt, AutoImage as Ot, AutoLink as Ht, Autosave as zt, BalloonToolbar as Kt, BlockQuote as Xt, Bold as qt, CloudServices as Gt, Essentials as Yt, GeneralHtmlSupport as Qt, Heading as Zt, HorizontalLine as Jt, ImageBlock as en, ImageCaption as tn, ImageInline as nn, ImageInsertViaUrl as on, ImageResize as ln, ImageStyle as an, ImageToolbar as rn, ImageUpload as sn, Indent as un, IndentBlock as cn, Italic as dn, Link as mn, List as fn, Autoformat as pn, MediaEmbed as vn, Paragraph as hn, PasteFromMarkdownExperimental as bn, PasteFromOffice as gn, SelectAll as yn, Style as wn, Table as kn, TableCellProperties as Vn, TableColumnResize as Cn, TableProperties as jn, TableToolbar as Tn, Undo as xn, TextTransformation as _n, Base64UploadAdapter as Bn, ClassicEditor as Dn } from "ckeditor5";
|
|
39
|
+
import { VAutocomplete as In } from "vuetify/components/VAutocomplete";
|
|
40
|
+
import { VBtn as Sn } from "vuetify/components/VBtn";
|
|
41
|
+
import { VCheckbox as Pn } from "vuetify/components/VCheckbox";
|
|
42
|
+
import { VChip as En } from "vuetify/components/VChip";
|
|
43
|
+
import { VCombobox as An } from "vuetify/components/VCombobox";
|
|
44
|
+
import { VColorPicker as $n } from "vuetify/components/VColorPicker";
|
|
45
|
+
import { VConfirmEdit as Mn } from "vuetify/components/VConfirmEdit";
|
|
46
|
+
import { VDatePicker as Fn } from "vuetify/components/VDatePicker";
|
|
47
|
+
import { VField as Nn } from "vuetify/components/VField";
|
|
48
|
+
import { VFileInput as Ln } from "vuetify/components/VFileInput";
|
|
49
|
+
import { VCol as Rn, VRow as Un } from "vuetify/components/VGrid";
|
|
50
|
+
import { VIcon as Wn } from "vuetify/components/VIcon";
|
|
51
|
+
import { VImg as On } from "vuetify/components/VImg";
|
|
52
52
|
import { VInput as Hn } from "vuetify/components/VInput";
|
|
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
|
|
60
|
-
import { VTextField as
|
|
61
|
-
import { VTimePicker as
|
|
53
|
+
import { VListItem as zn } from "vuetify/components/VList";
|
|
54
|
+
import { VMenu as Kn } from "vuetify/components/VMenu";
|
|
55
|
+
import { VNumberInput as Xn } from "vuetify/components/VNumberInput";
|
|
56
|
+
import { VProgressLinear as qn } from "vuetify/components/VProgressLinear";
|
|
57
|
+
import { VSelect as Gn } from "vuetify/components/VSelect";
|
|
58
|
+
import { VSwitch as Yn } from "vuetify/components/VSwitch";
|
|
59
|
+
import { VTextarea as Qn } from "vuetify/components/VTextarea";
|
|
60
|
+
import { VTextField as Zn } from "vuetify/components/VTextField";
|
|
61
|
+
import { VTimePicker as Jn } from "vuetify/components/VTimePicker";
|
|
62
62
|
new Array(256).fill("").map((e, t) => ("0" + t.toString(16)).slice(-2));
|
|
63
63
|
function Re(e) {
|
|
64
64
|
return !!e && /^\d+\.\d+\.\d+/.test(e);
|
|
@@ -76,19 +76,19 @@ function rt(e) {
|
|
|
76
76
|
function Ue(e) {
|
|
77
77
|
return e ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((t) => e.includes(t)) : !1;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function eo(e) {
|
|
80
80
|
return Re(e) || Ue(e);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function to(e, t) {
|
|
83
83
|
const n = e.extraPlugins || [];
|
|
84
|
-
return L(
|
|
84
|
+
return L(B({}, e), {
|
|
85
85
|
extraPlugins: [
|
|
86
86
|
...n,
|
|
87
87
|
...t.filter((l) => !n.includes(l))
|
|
88
88
|
]
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function no(e) {
|
|
92
92
|
if (Ue(e))
|
|
93
93
|
return 3;
|
|
94
94
|
const { major: t } = rt(e);
|
|
@@ -103,17 +103,17 @@ function to(e) {
|
|
|
103
103
|
}
|
|
104
104
|
function it() {
|
|
105
105
|
const { CKEDITOR_VERSION: e, CKEDITOR: t } = window;
|
|
106
|
-
return
|
|
106
|
+
return eo(e) ? {
|
|
107
107
|
source: t ? "cdn" : "npm",
|
|
108
108
|
version: e
|
|
109
109
|
} : null;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function oo() {
|
|
112
112
|
const e = it();
|
|
113
|
-
return e ?
|
|
113
|
+
return e ? no(e.version) : null;
|
|
114
114
|
}
|
|
115
115
|
function st(e, t) {
|
|
116
|
-
switch (t || (t =
|
|
116
|
+
switch (t || (t = oo() || void 0), t) {
|
|
117
117
|
case 1:
|
|
118
118
|
case 2:
|
|
119
119
|
return e === void 0;
|
|
@@ -123,47 +123,47 @@ function st(e, t) {
|
|
|
123
123
|
return !1;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function lo(e, t) {
|
|
127
127
|
return function(l) {
|
|
128
128
|
st(l.config.get("licenseKey")) || l.on("collectUsageData", (a, { setUsageData: i }) => {
|
|
129
129
|
i(`integration.${e}`, t);
|
|
130
130
|
});
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const ao = lo(
|
|
134
134
|
"vue",
|
|
135
135
|
{
|
|
136
136
|
version: "7.4.0",
|
|
137
137
|
frameworkVersion: jt
|
|
138
138
|
}
|
|
139
139
|
);
|
|
140
|
-
function
|
|
141
|
-
return st(e.licenseKey) ? e :
|
|
140
|
+
function ro(e) {
|
|
141
|
+
return st(e.licenseKey) ? e : to(e, [
|
|
142
142
|
/**
|
|
143
143
|
* This part of the code is not executed in open-source implementations using a GPL key.
|
|
144
144
|
* It only runs when a specific license key is provided. If you are uncertain whether
|
|
145
145
|
* this applies to your installation, please contact our support team.
|
|
146
146
|
*/
|
|
147
|
-
|
|
147
|
+
ao
|
|
148
148
|
]);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function io(e, t) {
|
|
151
151
|
var n;
|
|
152
152
|
if (ut()) {
|
|
153
|
-
const l = L(
|
|
154
|
-
roots: L(
|
|
155
|
-
main: L(
|
|
153
|
+
const l = L(B({}, e), {
|
|
154
|
+
roots: L(B({}, e.roots), {
|
|
155
|
+
main: L(B(B({}, e.root), (n = e.roots) == null ? void 0 : n.main), {
|
|
156
156
|
initialData: t
|
|
157
157
|
})
|
|
158
158
|
})
|
|
159
159
|
});
|
|
160
160
|
return delete l.root, delete l.initialData, l;
|
|
161
161
|
}
|
|
162
|
-
return L(
|
|
162
|
+
return L(B({}, e), {
|
|
163
163
|
initialData: t
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function so(e) {
|
|
167
167
|
var t, n;
|
|
168
168
|
return ut() ? (n = (t = e.roots) == null ? void 0 : t.main) == null ? void 0 : n.initialData : e.initialData;
|
|
169
169
|
}
|
|
@@ -171,7 +171,7 @@ function ut() {
|
|
|
171
171
|
const e = it();
|
|
172
172
|
return e ? !Re(e.version) || Ue(e.version) || rt(e.version).major >= 48 : !1;
|
|
173
173
|
}
|
|
174
|
-
const $e = "Lock from Vue integration (@ckeditor/ckeditor5-vue)",
|
|
174
|
+
const $e = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", uo = 300, co = /* @__PURE__ */ O({
|
|
175
175
|
name: "CKEditor",
|
|
176
176
|
__name: "ckeditor",
|
|
177
177
|
props: /* @__PURE__ */ Ke({
|
|
@@ -186,47 +186,47 @@ const $e = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", so = 300, uo =
|
|
|
186
186
|
}),
|
|
187
187
|
emits: /* @__PURE__ */ Ke(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
|
|
188
188
|
setup(e, { expose: t, emit: n }) {
|
|
189
|
-
const l = Vt(e, "modelValue"), a = e, i = n, u = E(),
|
|
189
|
+
const l = Vt(e, "modelValue"), a = e, i = n, u = E(), d = E(), v = E();
|
|
190
190
|
t({
|
|
191
|
-
instance:
|
|
191
|
+
instance: d,
|
|
192
192
|
lastEditorData: v
|
|
193
|
-
}), ie(l, (
|
|
194
|
-
|
|
195
|
-
}), ie(() => a.disabled, (
|
|
196
|
-
|
|
193
|
+
}), ie(l, (m) => {
|
|
194
|
+
d.value && m !== v.value && d.value.data.set(m);
|
|
195
|
+
}), ie(() => a.disabled, (m) => {
|
|
196
|
+
m ? d.value.enableReadOnlyMode($e) : d.value.disableReadOnlyMode($e);
|
|
197
197
|
});
|
|
198
198
|
function r() {
|
|
199
|
-
const
|
|
200
|
-
if (!
|
|
199
|
+
const m = window.CKEDITOR_VERSION;
|
|
200
|
+
if (!m)
|
|
201
201
|
return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
|
|
202
|
-
const [b] =
|
|
203
|
-
b >= 42 ||
|
|
202
|
+
const [b] = m.split(".").map(Number);
|
|
203
|
+
b >= 42 || m.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
204
204
|
}
|
|
205
|
-
function p(
|
|
205
|
+
function p(m) {
|
|
206
206
|
const b = Dt((k) => {
|
|
207
207
|
if (a.disableTwoWayDataBinding)
|
|
208
208
|
return;
|
|
209
|
-
const V = v.value =
|
|
210
|
-
i("update:modelValue", V, k,
|
|
211
|
-
},
|
|
212
|
-
|
|
213
|
-
i("focus", k,
|
|
214
|
-
}),
|
|
215
|
-
i("blur", k,
|
|
209
|
+
const V = v.value = m.data.get();
|
|
210
|
+
i("update:modelValue", V, k, m), i("input", V, k, m);
|
|
211
|
+
}, uo, { leading: !0 });
|
|
212
|
+
m.model.document.on("change:data", b), m.editing.view.document.on("focus", (k) => {
|
|
213
|
+
i("focus", k, m);
|
|
214
|
+
}), m.editing.view.document.on("blur", (k) => {
|
|
215
|
+
i("blur", k, m);
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
return r(), tt(() => {
|
|
219
|
-
let
|
|
219
|
+
let m = ro(
|
|
220
220
|
Object.assign({}, a.config)
|
|
221
221
|
);
|
|
222
|
-
l.value && (
|
|
223
|
-
|
|
222
|
+
l.value && (m = io(m, l.value)), a.editor.create(u.value, m).then((b) => {
|
|
223
|
+
d.value = Ct(b), p(b), l.value !== so(m) && b.data.set(l.value), a.disabled && b.enableReadOnlyMode($e), i("ready", b);
|
|
224
224
|
}).catch((b) => {
|
|
225
225
|
console.error(b);
|
|
226
226
|
});
|
|
227
227
|
}), nt(() => {
|
|
228
|
-
|
|
229
|
-
}), (
|
|
228
|
+
d.value && (d.value.destroy(), d.value = void 0), i("destroy");
|
|
229
|
+
}), (m, b) => (C(), A(Ce(e.tagName), {
|
|
230
230
|
ref_key: "element",
|
|
231
231
|
ref: u
|
|
232
232
|
}, null, 512));
|
|
@@ -236,20 +236,20 @@ if (!ze.version || !ze.version.startsWith("3."))
|
|
|
236
236
|
throw new Error(
|
|
237
237
|
"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"
|
|
238
238
|
);
|
|
239
|
-
const
|
|
239
|
+
const mo = {
|
|
240
240
|
/**
|
|
241
241
|
* Installs the plugin, registering the `<ckeditor>` component.
|
|
242
242
|
*
|
|
243
243
|
* @param app The application instance.
|
|
244
244
|
*/
|
|
245
245
|
install(e) {
|
|
246
|
-
e.component("Ckeditor",
|
|
246
|
+
e.component("Ckeditor", co);
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
function
|
|
249
|
+
function fo(e) {
|
|
250
250
|
return e.one !== void 0;
|
|
251
251
|
}
|
|
252
|
-
const
|
|
252
|
+
const po = {
|
|
253
253
|
lessThanXSeconds: {
|
|
254
254
|
present: {
|
|
255
255
|
one: "manj kot {{count}} sekunda",
|
|
@@ -526,7 +526,7 @@ const fo = {
|
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
|
-
function
|
|
529
|
+
function vo(e) {
|
|
530
530
|
switch (e % 100) {
|
|
531
531
|
case 1:
|
|
532
532
|
return "one";
|
|
@@ -539,15 +539,15 @@ function po(e) {
|
|
|
539
539
|
return "other";
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
const
|
|
542
|
+
const ho = (e, t, n) => {
|
|
543
543
|
let l = "", a = "present";
|
|
544
544
|
n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (a = "future", l = "čez ") : (a = "past", l = "pred "));
|
|
545
|
-
const i =
|
|
545
|
+
const i = po[e];
|
|
546
546
|
if (typeof i == "string")
|
|
547
547
|
l += i;
|
|
548
548
|
else {
|
|
549
|
-
const u =
|
|
550
|
-
|
|
549
|
+
const u = vo(t);
|
|
550
|
+
fo(i) ? l += i[u].replace("{{count}}", String(t)) : l += i[a][u].replace("{{count}}", String(t));
|
|
551
551
|
}
|
|
552
552
|
return l;
|
|
553
553
|
};
|
|
@@ -557,35 +557,35 @@ function Me(e) {
|
|
|
557
557
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
558
558
|
};
|
|
559
559
|
}
|
|
560
|
-
const
|
|
560
|
+
const bo = {
|
|
561
561
|
full: "EEEE, dd. MMMM y",
|
|
562
562
|
long: "dd. MMMM y",
|
|
563
563
|
medium: "d. MMM y",
|
|
564
564
|
short: "d. MM. yy"
|
|
565
|
-
},
|
|
565
|
+
}, go = {
|
|
566
566
|
full: "HH:mm:ss zzzz",
|
|
567
567
|
long: "HH:mm:ss z",
|
|
568
568
|
medium: "HH:mm:ss",
|
|
569
569
|
short: "HH:mm"
|
|
570
|
-
},
|
|
570
|
+
}, yo = {
|
|
571
571
|
full: "{{date}} {{time}}",
|
|
572
572
|
long: "{{date}} {{time}}",
|
|
573
573
|
medium: "{{date}} {{time}}",
|
|
574
574
|
short: "{{date}} {{time}}"
|
|
575
|
-
},
|
|
575
|
+
}, wo = {
|
|
576
576
|
date: Me({
|
|
577
|
-
formats:
|
|
577
|
+
formats: bo,
|
|
578
578
|
defaultWidth: "full"
|
|
579
579
|
}),
|
|
580
580
|
time: Me({
|
|
581
|
-
formats:
|
|
581
|
+
formats: go,
|
|
582
582
|
defaultWidth: "full"
|
|
583
583
|
}),
|
|
584
584
|
dateTime: Me({
|
|
585
|
-
formats:
|
|
585
|
+
formats: yo,
|
|
586
586
|
defaultWidth: "full"
|
|
587
587
|
})
|
|
588
|
-
},
|
|
588
|
+
}, ko = {
|
|
589
589
|
lastWeek: (e) => {
|
|
590
590
|
switch (e.getDay()) {
|
|
591
591
|
case 0:
|
|
@@ -614,8 +614,8 @@ const ho = {
|
|
|
614
614
|
}
|
|
615
615
|
},
|
|
616
616
|
other: "P"
|
|
617
|
-
},
|
|
618
|
-
const a =
|
|
617
|
+
}, Vo = (e, t, n, l) => {
|
|
618
|
+
const a = ko[e];
|
|
619
619
|
return typeof a == "function" ? a(t) : a;
|
|
620
620
|
};
|
|
621
621
|
function we(e) {
|
|
@@ -623,25 +623,25 @@ function we(e) {
|
|
|
623
623
|
const l = n != null && n.context ? String(n.context) : "standalone";
|
|
624
624
|
let a;
|
|
625
625
|
if (l === "formatting" && e.formattingValues) {
|
|
626
|
-
const u = e.defaultFormattingWidth || e.defaultWidth,
|
|
627
|
-
a = e.formattingValues[
|
|
626
|
+
const u = e.defaultFormattingWidth || e.defaultWidth, d = n != null && n.width ? String(n.width) : u;
|
|
627
|
+
a = e.formattingValues[d] || e.formattingValues[u];
|
|
628
628
|
} else {
|
|
629
|
-
const u = e.defaultWidth,
|
|
630
|
-
a = e.values[
|
|
629
|
+
const u = e.defaultWidth, d = n != null && n.width ? String(n.width) : e.defaultWidth;
|
|
630
|
+
a = e.values[d] || e.values[u];
|
|
631
631
|
}
|
|
632
632
|
const i = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
633
633
|
return a[i];
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
const
|
|
636
|
+
const Co = {
|
|
637
637
|
narrow: ["pr. n. št.", "po n. št."],
|
|
638
638
|
abbreviated: ["pr. n. št.", "po n. št."],
|
|
639
639
|
wide: ["pred našim štetjem", "po našem štetju"]
|
|
640
|
-
},
|
|
640
|
+
}, jo = {
|
|
641
641
|
narrow: ["1", "2", "3", "4"],
|
|
642
642
|
abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."],
|
|
643
643
|
wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"]
|
|
644
|
-
},
|
|
644
|
+
}, To = {
|
|
645
645
|
narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
|
646
646
|
abbreviated: [
|
|
647
647
|
"jan.",
|
|
@@ -671,7 +671,7 @@ const Vo = {
|
|
|
671
671
|
"november",
|
|
672
672
|
"december"
|
|
673
673
|
]
|
|
674
|
-
},
|
|
674
|
+
}, xo = {
|
|
675
675
|
narrow: ["n", "p", "t", "s", "č", "p", "s"],
|
|
676
676
|
short: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
|
677
677
|
abbreviated: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
|
@@ -684,7 +684,7 @@ const Vo = {
|
|
|
684
684
|
"petek",
|
|
685
685
|
"sobota"
|
|
686
686
|
]
|
|
687
|
-
},
|
|
687
|
+
}, _o = {
|
|
688
688
|
narrow: {
|
|
689
689
|
am: "d",
|
|
690
690
|
pm: "p",
|
|
@@ -715,7 +715,7 @@ const Vo = {
|
|
|
715
715
|
evening: "večer",
|
|
716
716
|
night: "noč"
|
|
717
717
|
}
|
|
718
|
-
},
|
|
718
|
+
}, Bo = {
|
|
719
719
|
narrow: {
|
|
720
720
|
am: "d",
|
|
721
721
|
pm: "p",
|
|
@@ -746,29 +746,29 @@ const Vo = {
|
|
|
746
746
|
evening: "zvečer",
|
|
747
747
|
night: "ponoči"
|
|
748
748
|
}
|
|
749
|
-
},
|
|
750
|
-
ordinalNumber:
|
|
749
|
+
}, Do = (e, t) => Number(e) + ".", Io = {
|
|
750
|
+
ordinalNumber: Do,
|
|
751
751
|
era: we({
|
|
752
|
-
values:
|
|
752
|
+
values: Co,
|
|
753
753
|
defaultWidth: "wide"
|
|
754
754
|
}),
|
|
755
755
|
quarter: we({
|
|
756
|
-
values:
|
|
756
|
+
values: jo,
|
|
757
757
|
defaultWidth: "wide",
|
|
758
758
|
argumentCallback: (e) => e - 1
|
|
759
759
|
}),
|
|
760
760
|
month: we({
|
|
761
|
-
values:
|
|
761
|
+
values: To,
|
|
762
762
|
defaultWidth: "wide"
|
|
763
763
|
}),
|
|
764
764
|
day: we({
|
|
765
|
-
values:
|
|
765
|
+
values: xo,
|
|
766
766
|
defaultWidth: "wide"
|
|
767
767
|
}),
|
|
768
768
|
dayPeriod: we({
|
|
769
|
-
values:
|
|
769
|
+
values: _o,
|
|
770
770
|
defaultWidth: "wide",
|
|
771
|
-
formattingValues:
|
|
771
|
+
formattingValues: Bo,
|
|
772
772
|
defaultFormattingWidth: "wide"
|
|
773
773
|
})
|
|
774
774
|
};
|
|
@@ -777,9 +777,9 @@ function ke(e) {
|
|
|
777
777
|
const l = n.width, a = l && e.matchPatterns[l] || e.matchPatterns[e.defaultMatchWidth], i = t.match(a);
|
|
778
778
|
if (!i)
|
|
779
779
|
return null;
|
|
780
|
-
const u = i[0],
|
|
780
|
+
const u = i[0], d = l && e.parsePatterns[l] || e.parsePatterns[e.defaultParseWidth], v = Array.isArray(d) ? Po(d, (m) => m.test(u)) : (
|
|
781
781
|
// [TODO] -- I challenge you to fix the type
|
|
782
|
-
|
|
782
|
+
So(d, (m) => m.test(u))
|
|
783
783
|
);
|
|
784
784
|
let r;
|
|
785
785
|
r = e.valueCallback ? e.valueCallback(v) : v, r = n.valueCallback ? (
|
|
@@ -790,17 +790,17 @@ function ke(e) {
|
|
|
790
790
|
return { value: r, rest: p };
|
|
791
791
|
};
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function So(e, t) {
|
|
794
794
|
for (const n in e)
|
|
795
795
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
796
796
|
return n;
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Po(e, t) {
|
|
799
799
|
for (let n = 0; n < e.length; n++)
|
|
800
800
|
if (t(e[n]))
|
|
801
801
|
return n;
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function Eo(e) {
|
|
804
804
|
return (t, n = {}) => {
|
|
805
805
|
const l = t.match(e.matchPattern);
|
|
806
806
|
if (!l) return null;
|
|
@@ -808,26 +808,26 @@ function Po(e) {
|
|
|
808
808
|
if (!i) return null;
|
|
809
809
|
let u = e.valueCallback ? e.valueCallback(i[0]) : i[0];
|
|
810
810
|
u = n.valueCallback ? n.valueCallback(u) : u;
|
|
811
|
-
const
|
|
812
|
-
return { value: u, rest:
|
|
811
|
+
const d = t.slice(a.length);
|
|
812
|
+
return { value: u, rest: d };
|
|
813
813
|
};
|
|
814
814
|
}
|
|
815
|
-
const
|
|
815
|
+
const Ao = /^(\d+)\./i, $o = /\d+/i, Mo = {
|
|
816
816
|
abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
|
|
817
817
|
wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
|
|
818
|
-
}, Mo = {
|
|
819
|
-
any: [/^pr/i, /^(po|na[sš]em)/i]
|
|
820
818
|
}, Fo = {
|
|
819
|
+
any: [/^pr/i, /^(po|na[sš]em)/i]
|
|
820
|
+
}, No = {
|
|
821
821
|
narrow: /^[1234]/i,
|
|
822
822
|
abbreviated: /^[1234]\.\s?[čc]et\.?/i,
|
|
823
823
|
wide: /^[1234]\. [čc]etrtletje/i
|
|
824
|
-
}, No = {
|
|
825
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
826
824
|
}, Lo = {
|
|
825
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
826
|
+
}, Ro = {
|
|
827
827
|
narrow: /^[jfmasond]/i,
|
|
828
828
|
abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,
|
|
829
829
|
wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i
|
|
830
|
-
},
|
|
830
|
+
}, Uo = {
|
|
831
831
|
narrow: [
|
|
832
832
|
/^j/i,
|
|
833
833
|
/^f/i,
|
|
@@ -870,18 +870,18 @@ const Eo = /^(\d+)\./i, Ao = /\d+/i, $o = {
|
|
|
870
870
|
/^n/i,
|
|
871
871
|
/^d/i
|
|
872
872
|
]
|
|
873
|
-
},
|
|
873
|
+
}, Wo = {
|
|
874
874
|
narrow: /^[nptsčc]/i,
|
|
875
875
|
short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
876
876
|
abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
877
877
|
wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i
|
|
878
|
-
},
|
|
878
|
+
}, Oo = {
|
|
879
879
|
narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i],
|
|
880
880
|
any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i]
|
|
881
881
|
}, Ho = {
|
|
882
882
|
narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
|
|
883
883
|
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
|
|
884
|
-
},
|
|
884
|
+
}, zo = {
|
|
885
885
|
narrow: {
|
|
886
886
|
am: /^d/i,
|
|
887
887
|
pm: /^p/i,
|
|
@@ -902,60 +902,60 @@ const Eo = /^(\d+)\./i, Ao = /\d+/i, $o = {
|
|
|
902
902
|
evening: /^z?ve/i,
|
|
903
903
|
night: /(po)?no/i
|
|
904
904
|
}
|
|
905
|
-
},
|
|
906
|
-
ordinalNumber:
|
|
907
|
-
matchPattern:
|
|
908
|
-
parsePattern:
|
|
905
|
+
}, Ko = {
|
|
906
|
+
ordinalNumber: Eo({
|
|
907
|
+
matchPattern: Ao,
|
|
908
|
+
parsePattern: $o,
|
|
909
909
|
valueCallback: (e) => parseInt(e, 10)
|
|
910
910
|
}),
|
|
911
911
|
era: ke({
|
|
912
|
-
matchPatterns:
|
|
912
|
+
matchPatterns: Mo,
|
|
913
913
|
defaultMatchWidth: "wide",
|
|
914
|
-
parsePatterns:
|
|
914
|
+
parsePatterns: Fo,
|
|
915
915
|
defaultParseWidth: "any"
|
|
916
916
|
}),
|
|
917
917
|
quarter: ke({
|
|
918
|
-
matchPatterns:
|
|
918
|
+
matchPatterns: No,
|
|
919
919
|
defaultMatchWidth: "wide",
|
|
920
|
-
parsePatterns:
|
|
920
|
+
parsePatterns: Lo,
|
|
921
921
|
defaultParseWidth: "any",
|
|
922
922
|
valueCallback: (e) => e + 1
|
|
923
923
|
}),
|
|
924
924
|
month: ke({
|
|
925
|
-
matchPatterns:
|
|
925
|
+
matchPatterns: Ro,
|
|
926
926
|
defaultMatchWidth: "wide",
|
|
927
|
-
parsePatterns:
|
|
927
|
+
parsePatterns: Uo,
|
|
928
928
|
defaultParseWidth: "wide"
|
|
929
929
|
}),
|
|
930
930
|
day: ke({
|
|
931
|
-
matchPatterns:
|
|
931
|
+
matchPatterns: Wo,
|
|
932
932
|
defaultMatchWidth: "wide",
|
|
933
|
-
parsePatterns:
|
|
933
|
+
parsePatterns: Oo,
|
|
934
934
|
defaultParseWidth: "any"
|
|
935
935
|
}),
|
|
936
936
|
dayPeriod: ke({
|
|
937
937
|
matchPatterns: Ho,
|
|
938
938
|
defaultMatchWidth: "any",
|
|
939
|
-
parsePatterns:
|
|
939
|
+
parsePatterns: zo,
|
|
940
940
|
defaultParseWidth: "any"
|
|
941
941
|
})
|
|
942
|
-
},
|
|
942
|
+
}, Xo = {
|
|
943
943
|
code: "sl",
|
|
944
|
-
formatDistance:
|
|
945
|
-
formatLong:
|
|
946
|
-
formatRelative:
|
|
947
|
-
localize:
|
|
948
|
-
match:
|
|
944
|
+
formatDistance: ho,
|
|
945
|
+
formatLong: wo,
|
|
946
|
+
formatRelative: Vo,
|
|
947
|
+
localize: Io,
|
|
948
|
+
match: Ko,
|
|
949
949
|
options: {
|
|
950
950
|
weekStartsOn: 1,
|
|
951
951
|
firstWeekContainsDate: 1
|
|
952
952
|
}
|
|
953
|
-
},
|
|
954
|
-
dateTimeLocale: E(
|
|
953
|
+
}, qo = {
|
|
954
|
+
dateTimeLocale: E(Xo),
|
|
955
955
|
setDateTimeLocale(e) {
|
|
956
956
|
se(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
|
|
957
957
|
}
|
|
958
|
-
}, J = /* @__PURE__ */
|
|
958
|
+
}, J = /* @__PURE__ */ O({
|
|
959
959
|
__name: "df-input-hint",
|
|
960
960
|
props: {
|
|
961
961
|
errors: { default: "" },
|
|
@@ -965,12 +965,12 @@ const Eo = /^(\d+)\./i, Ao = /\d+/i, $o = {
|
|
|
965
965
|
},
|
|
966
966
|
setup(e) {
|
|
967
967
|
const t = e, n = h(() => t.errors ? typeof t.errors == "string" ? t.errors.trim().length > 0 : t.errors.length > 0 : !1), l = h(() => n.value ? t.errors : t.message), a = h(() => n.value ? t.errorClasses : t.messageClasses);
|
|
968
|
-
return (i, u) => (C(), A(o(
|
|
968
|
+
return (i, u) => (C(), A(o(At), {
|
|
969
969
|
message: l.value,
|
|
970
970
|
classes: a.value
|
|
971
971
|
}, null, 8, ["message", "classes"]));
|
|
972
972
|
}
|
|
973
|
-
}), ce = /* @__PURE__ */
|
|
973
|
+
}), ce = /* @__PURE__ */ O({
|
|
974
974
|
__name: "df-label",
|
|
975
975
|
props: {
|
|
976
976
|
data: {},
|
|
@@ -998,7 +998,7 @@ const Eo = /^(\d+)\./i, Ao = /\d+/i, $o = {
|
|
|
998
998
|
src: e.label.icon
|
|
999
999
|
}, null, 8, ["src"]))
|
|
1000
1000
|
], 64)) : R("", !0),
|
|
1001
|
-
n.value instanceof o(
|
|
1001
|
+
n.value instanceof o($t) ? (C(), A(o(Nt), {
|
|
1002
1002
|
key: 1,
|
|
1003
1003
|
class: "markdown",
|
|
1004
1004
|
source: n.value.toString(),
|
|
@@ -1011,7 +1011,7 @@ const Eo = /^(\d+)\./i, Ao = /\d+/i, $o = {
|
|
|
1011
1011
|
};
|
|
1012
1012
|
}
|
|
1013
1013
|
}), ct = /* @__PURE__ */ Symbol("vuetifyInputsSettingsKey");
|
|
1014
|
-
class
|
|
1014
|
+
class Go {
|
|
1015
1015
|
constructor(t, n, l = "v-icon") {
|
|
1016
1016
|
be(this, "text");
|
|
1017
1017
|
be(this, "icon");
|
|
@@ -1038,30 +1038,30 @@ function Q(e, t) {
|
|
|
1038
1038
|
set(s) {
|
|
1039
1039
|
e.control.touched = s;
|
|
1040
1040
|
}
|
|
1041
|
-
}), u = e.control ? i : E(!1),
|
|
1042
|
-
() => e.control ? e.control.errors : (e.errors || []).map((s) => new
|
|
1043
|
-
), r = h(() => u.value && v.value.length > 0 ? " " : void 0), p = h(() => u.value ? v.value : void 0),
|
|
1041
|
+
}), u = e.control ? i : E(!1), d = h(() => e.control ? e.control.valid : !0), v = h(
|
|
1042
|
+
() => e.control ? e.control.errors : (e.errors || []).map((s) => new Mt(s))
|
|
1043
|
+
), r = h(() => u.value && v.value.length > 0 ? " " : void 0), p = h(() => u.value ? v.value : void 0), m = h(() => e.control ? e.control.enabled : e.enabled !== !1), b = h(
|
|
1044
1044
|
() => e.control ? e.control.visibility : e.visibility || ge.DisplayMode.FULL
|
|
1045
1045
|
), k = h(() => b.value !== ge.DisplayMode.SUPPRESS), V = h(() => ({
|
|
1046
1046
|
"d-none": b.value === ge.DisplayMode.HIDDEN,
|
|
1047
1047
|
invisible: b.value === ge.DisplayMode.INVISIBLE
|
|
1048
1048
|
})), w = h(
|
|
1049
|
-
() => re(e.label || "") ? new
|
|
1050
|
-
), j = h(() => e.placeholder || ""), x = h(() => e.helpText || ""),
|
|
1049
|
+
() => re(e.label || "") ? new Go(e.label || "") : e.label
|
|
1050
|
+
), j = h(() => e.placeholder || ""), x = h(() => e.helpText || ""), f = h(() => e.hint || ""), $ = h(() => e.cssClass || ""), P = h(
|
|
1051
1051
|
() => {
|
|
1052
|
-
var s, c,
|
|
1053
|
-
return (
|
|
1052
|
+
var s, c, I;
|
|
1053
|
+
return (I = (c = (s = e.density) != null ? s : Ee("field-density", null)) != null ? c : n.defaultDensity) != null ? I : "default";
|
|
1054
1054
|
}
|
|
1055
1055
|
), M = h(() => P.value === "inline" ? "default" : P.value), U = h(
|
|
1056
1056
|
() => {
|
|
1057
|
-
var s, c,
|
|
1058
|
-
return (
|
|
1057
|
+
var s, c, I;
|
|
1058
|
+
return (I = (c = (s = e.variant) != null ? s : Ee("field-variant", null)) != null ? c : n.defaultVariant) != null ? I : "underlined";
|
|
1059
1059
|
}
|
|
1060
1060
|
);
|
|
1061
1061
|
return {
|
|
1062
1062
|
value: a,
|
|
1063
|
-
valid:
|
|
1064
|
-
enabled:
|
|
1063
|
+
valid: d,
|
|
1064
|
+
enabled: m,
|
|
1065
1065
|
errors: v,
|
|
1066
1066
|
showErrors: p,
|
|
1067
1067
|
visibility: b,
|
|
@@ -1073,7 +1073,7 @@ function Q(e, t) {
|
|
|
1073
1073
|
densityClass: h(() => `df-density-${P.value}`),
|
|
1074
1074
|
vuetifyBindings: h(() => {
|
|
1075
1075
|
var s;
|
|
1076
|
-
return
|
|
1076
|
+
return B({
|
|
1077
1077
|
name: (s = e.control) == null ? void 0 : s.fieldName,
|
|
1078
1078
|
class: $.value,
|
|
1079
1079
|
density: M.value,
|
|
@@ -1081,11 +1081,11 @@ function Q(e, t) {
|
|
|
1081
1081
|
label: w.value.text,
|
|
1082
1082
|
errorMessages: r.value,
|
|
1083
1083
|
// 'error-count': errors?.value.length || 0,
|
|
1084
|
-
readonly: !
|
|
1085
|
-
disabled: !
|
|
1084
|
+
readonly: !m.value,
|
|
1085
|
+
disabled: !m.value,
|
|
1086
1086
|
placeholder: j.value,
|
|
1087
1087
|
"persistent-placeholder": !Ve(j.value),
|
|
1088
|
-
hint:
|
|
1088
|
+
hint: f.value,
|
|
1089
1089
|
persistentHint: !0,
|
|
1090
1090
|
// we want persistent hint always
|
|
1091
1091
|
hideDetails: "auto",
|
|
@@ -1095,7 +1095,7 @@ function Q(e, t) {
|
|
|
1095
1095
|
})
|
|
1096
1096
|
};
|
|
1097
1097
|
}
|
|
1098
|
-
const
|
|
1098
|
+
const Yo = { class: "d-flex w-100 df-style-resetting df-sub-field" }, We = /* @__PURE__ */ O({
|
|
1099
1099
|
__name: "input-base",
|
|
1100
1100
|
props: {
|
|
1101
1101
|
control: {},
|
|
@@ -1116,9 +1116,9 @@ const Go = { class: "d-flex w-100 df-style-resetting df-sub-field" }, We = /* @_
|
|
|
1116
1116
|
},
|
|
1117
1117
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
1118
1118
|
setup(e, { emit: t }) {
|
|
1119
|
-
const n = e, l = t, { isRendered: a, label: i, showErrors: u, touched:
|
|
1119
|
+
const n = e, l = t, { isRendered: a, label: i, showErrors: u, touched: d, value: v, visibilityClass: r, vuetifyBindings: p } = Q(n, l), m = h(() => !!(o(n.clearable) && o(v))), b = E(!1);
|
|
1120
1120
|
function k(V) {
|
|
1121
|
-
b.value = V, V || (
|
|
1121
|
+
b.value = V, V || (d.value = !0, l("blur"));
|
|
1122
1122
|
}
|
|
1123
1123
|
return (V, w) => {
|
|
1124
1124
|
const j = N("v-field"), x = N("v-input");
|
|
@@ -1132,46 +1132,46 @@ const Go = { class: "d-flex w-100 df-style-resetting df-sub-field" }, We = /* @_
|
|
|
1132
1132
|
"error-messages": o(p).errorMessages,
|
|
1133
1133
|
class: ee([e.cssClass, o(r)])
|
|
1134
1134
|
}, Ne({
|
|
1135
|
-
message: g(({ message:
|
|
1136
|
-
|
|
1137
|
-
message:
|
|
1135
|
+
message: g(({ message: f }) => [
|
|
1136
|
+
D(J, {
|
|
1137
|
+
message: f,
|
|
1138
1138
|
errors: o(u)
|
|
1139
1139
|
}, null, 8, ["message", "errors"])
|
|
1140
1140
|
]),
|
|
1141
1141
|
default: g(() => [
|
|
1142
|
-
|
|
1142
|
+
D(j, {
|
|
1143
1143
|
variant: o(p).variant,
|
|
1144
1144
|
density: o(p).density,
|
|
1145
1145
|
label: o(p).label,
|
|
1146
1146
|
disabled: o(p).disabled,
|
|
1147
|
-
clearable:
|
|
1147
|
+
clearable: m.value,
|
|
1148
1148
|
"persistent-clear": !0,
|
|
1149
1149
|
dirty: !!o(v) || !!o(p).placeholder,
|
|
1150
1150
|
active: b.value,
|
|
1151
1151
|
loading: e.loading,
|
|
1152
|
-
"onClick:clear": w[0] || (w[0] = (
|
|
1153
|
-
"onUpdate:focused": w[1] || (w[1] = (
|
|
1152
|
+
"onClick:clear": w[0] || (w[0] = (f) => l("click:clear")),
|
|
1153
|
+
"onUpdate:focused": w[1] || (w[1] = (f) => k(f))
|
|
1154
1154
|
}, Ne({
|
|
1155
|
-
label: g((
|
|
1156
|
-
|
|
1157
|
-
data:
|
|
1155
|
+
label: g((f) => [
|
|
1156
|
+
D(ce, {
|
|
1157
|
+
data: f,
|
|
1158
1158
|
label: o(i)
|
|
1159
1159
|
}, null, 8, ["data", "label"])
|
|
1160
1160
|
]),
|
|
1161
|
-
default: g((
|
|
1162
|
-
ue("div",
|
|
1163
|
-
me(V.$slots, "default", le(ae(
|
|
1161
|
+
default: g((f) => [
|
|
1162
|
+
ue("div", Yo, [
|
|
1163
|
+
me(V.$slots, "default", le(ae(f)))
|
|
1164
1164
|
])
|
|
1165
1165
|
]),
|
|
1166
|
-
loader: g((
|
|
1167
|
-
me(V.$slots, "loader", le(ae(
|
|
1166
|
+
loader: g((f) => [
|
|
1167
|
+
me(V.$slots, "loader", le(ae(f)))
|
|
1168
1168
|
]),
|
|
1169
1169
|
_: 2
|
|
1170
1170
|
}, [
|
|
1171
1171
|
V.$slots["prepend-inner"] ? {
|
|
1172
1172
|
name: "prepend-inner",
|
|
1173
|
-
fn: g((
|
|
1174
|
-
me(V.$slots, "prepend-inner", le(ae(
|
|
1173
|
+
fn: g((f) => [
|
|
1174
|
+
me(V.$slots, "prepend-inner", le(ae(f)))
|
|
1175
1175
|
]),
|
|
1176
1176
|
key: "0"
|
|
1177
1177
|
} : void 0
|
|
@@ -1181,8 +1181,8 @@ const Go = { class: "d-flex w-100 df-style-resetting df-sub-field" }, We = /* @_
|
|
|
1181
1181
|
}, [
|
|
1182
1182
|
V.$slots.prepend ? {
|
|
1183
1183
|
name: "prepend",
|
|
1184
|
-
fn: g((
|
|
1185
|
-
me(V.$slots, "prepend", le(ae(
|
|
1184
|
+
fn: g((f) => [
|
|
1185
|
+
me(V.$slots, "prepend", le(ae(f)))
|
|
1186
1186
|
]),
|
|
1187
1187
|
key: "0"
|
|
1188
1188
|
} : void 0
|
|
@@ -1211,13 +1211,13 @@ const Go = { class: "d-flex w-100 df-style-resetting df-sub-field" }, We = /* @_
|
|
|
1211
1211
|
CodeDark: "Code (dark)",
|
|
1212
1212
|
CodeBright: "Code (bright)"
|
|
1213
1213
|
};
|
|
1214
|
-
function
|
|
1214
|
+
function ea(e) {
|
|
1215
1215
|
Object.keys(F).forEach((t) => {
|
|
1216
1216
|
const n = e(t);
|
|
1217
1217
|
n != null && (F[t] = n);
|
|
1218
1218
|
});
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function ta(e, t) {
|
|
1221
1221
|
Be.language = e, Be.translations = t;
|
|
1222
1222
|
}
|
|
1223
1223
|
const Be = {
|
|
@@ -1244,7 +1244,7 @@ const Je = 0;
|
|
|
1244
1244
|
})(Y || (Y = {}));
|
|
1245
1245
|
Object.freeze(Y);
|
|
1246
1246
|
const et = ["xs", "sm", "md", "lg", "xl"];
|
|
1247
|
-
class
|
|
1247
|
+
class Qo {
|
|
1248
1248
|
constructor(t) {
|
|
1249
1249
|
be(this, "_value");
|
|
1250
1250
|
this._value = this.cleanBreakpoint(t, !0), t && et.forEach((n) => {
|
|
@@ -1256,31 +1256,33 @@ class Yo {
|
|
|
1256
1256
|
const n = this.cleanBreakpoint(this._value), l = Object.keys(n);
|
|
1257
1257
|
for (const a of et) {
|
|
1258
1258
|
const i = this._value[a];
|
|
1259
|
-
for (const u of l)
|
|
1260
|
-
|
|
1259
|
+
for (const u of l) {
|
|
1260
|
+
const d = i == null ? void 0 : i[u];
|
|
1261
|
+
d != null && (It(d) ? n[u] = B(B({}, n[u]), d) : n[u] = d);
|
|
1262
|
+
}
|
|
1261
1263
|
if (a === t) break;
|
|
1262
1264
|
}
|
|
1263
1265
|
return n;
|
|
1264
1266
|
}
|
|
1265
1267
|
}
|
|
1266
|
-
function
|
|
1268
|
+
function Zo(e) {
|
|
1267
1269
|
return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
|
|
1268
1270
|
}
|
|
1269
|
-
function
|
|
1270
|
-
const e =
|
|
1271
|
-
return h(() =>
|
|
1271
|
+
function Jo() {
|
|
1272
|
+
const e = Lt();
|
|
1273
|
+
return h(() => Zo(e));
|
|
1272
1274
|
}
|
|
1273
|
-
class
|
|
1275
|
+
class el extends Qo {
|
|
1274
1276
|
cleanBreakpoint(t, n = !1) {
|
|
1275
|
-
if ((!t || !
|
|
1277
|
+
if ((!t || !St(t)) && !n) return null;
|
|
1276
1278
|
const l = {};
|
|
1277
1279
|
return n && (l.renderAs = Y.BUTTON, l.showLabel = !0, l.showIcon = !0), t && (t.renderAs != null && (l.renderAs = Y.fromAny(t.renderAs)), re(t.label) && (l.label = t.label), re(t.icon) && (l.icon = t.icon), Ge(t.showLabel) && (l.showLabel = t.showLabel), Ge(t.showIcon) && (l.showIcon = t.showIcon)), Object.keys(l).length ? l : null;
|
|
1278
1280
|
}
|
|
1279
1281
|
}
|
|
1280
|
-
class _e extends
|
|
1282
|
+
class _e extends Ft {
|
|
1281
1283
|
getBreakpointValue(t) {
|
|
1282
1284
|
return h(() => {
|
|
1283
|
-
const l = new
|
|
1285
|
+
const l = new el(this.value).getOptionsForBreakpoint(t.value);
|
|
1284
1286
|
return {
|
|
1285
1287
|
name: l.name,
|
|
1286
1288
|
label: l.showLabel ? l.label : void 0,
|
|
@@ -1329,7 +1331,7 @@ class _e extends Mt {
|
|
|
1329
1331
|
}
|
|
1330
1332
|
static closeAction(t) {
|
|
1331
1333
|
var l;
|
|
1332
|
-
const n = L(
|
|
1334
|
+
const n = L(B({}, t != null ? t : {}), {
|
|
1333
1335
|
// any properties in data should overwrite properties in the constant
|
|
1334
1336
|
value: {
|
|
1335
1337
|
name: "close",
|
|
@@ -1340,11 +1342,11 @@ class _e extends Mt {
|
|
|
1340
1342
|
showIcon: !0
|
|
1341
1343
|
}
|
|
1342
1344
|
});
|
|
1343
|
-
return n.value =
|
|
1345
|
+
return n.value = B(B({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), new _e(n);
|
|
1344
1346
|
}
|
|
1345
1347
|
static yesAction(t) {
|
|
1346
1348
|
var l;
|
|
1347
|
-
const n = L(
|
|
1349
|
+
const n = L(B({}, t != null ? t : {}), {
|
|
1348
1350
|
// any properties in data should overwrite properties in the constant
|
|
1349
1351
|
value: {
|
|
1350
1352
|
name: "yes",
|
|
@@ -1355,11 +1357,11 @@ class _e extends Mt {
|
|
|
1355
1357
|
showIcon: !0
|
|
1356
1358
|
}
|
|
1357
1359
|
});
|
|
1358
|
-
return n.value =
|
|
1360
|
+
return n.value = B(B({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), new _e(n);
|
|
1359
1361
|
}
|
|
1360
1362
|
static noAction(t) {
|
|
1361
1363
|
var l;
|
|
1362
|
-
const n = L(
|
|
1364
|
+
const n = L(B({}, t != null ? t : {}), {
|
|
1363
1365
|
// any properties in data should overwrite properties in the constant
|
|
1364
1366
|
value: {
|
|
1365
1367
|
name: "no",
|
|
@@ -1370,13 +1372,13 @@ class _e extends Mt {
|
|
|
1370
1372
|
showIcon: !0
|
|
1371
1373
|
}
|
|
1372
1374
|
});
|
|
1373
|
-
return n.value =
|
|
1375
|
+
return n.value = B(B({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), new _e(n);
|
|
1374
1376
|
}
|
|
1375
1377
|
}
|
|
1376
|
-
const
|
|
1378
|
+
const tl = {
|
|
1377
1379
|
key: 1,
|
|
1378
1380
|
style: { width: "0.5rem" }
|
|
1379
|
-
},
|
|
1381
|
+
}, nl = { key: 2 }, ol = /* @__PURE__ */ O({
|
|
1380
1382
|
__name: "df-actions",
|
|
1381
1383
|
props: {
|
|
1382
1384
|
actions: {},
|
|
@@ -1384,8 +1386,8 @@ const el = {
|
|
|
1384
1386
|
showAsGroup: { default: "no" }
|
|
1385
1387
|
},
|
|
1386
1388
|
setup(e) {
|
|
1387
|
-
const t = e, n =
|
|
1388
|
-
() => l.value.map((u) =>
|
|
1389
|
+
const t = e, n = Jo(), l = h(() => o(t.actions).filter((u) => u.visibility !== Ae.SUPPRESS)), a = h(
|
|
1390
|
+
() => l.value.map((u) => B({
|
|
1389
1391
|
action: u
|
|
1390
1392
|
}, o(u.getBreakpointValue(n))))
|
|
1391
1393
|
);
|
|
@@ -1393,7 +1395,7 @@ const el = {
|
|
|
1393
1395
|
if (u.defaultConfirm) return "primary";
|
|
1394
1396
|
if (u.defaultReject) return "secondary";
|
|
1395
1397
|
}
|
|
1396
|
-
return (u,
|
|
1398
|
+
return (u, d) => {
|
|
1397
1399
|
const v = N("v-btn");
|
|
1398
1400
|
return l.value.length > 0 ? (C(), K("div", {
|
|
1399
1401
|
key: 0,
|
|
@@ -1414,22 +1416,22 @@ const el = {
|
|
|
1414
1416
|
invisible: r.action.visibility === o(Ae).INVISIBLE
|
|
1415
1417
|
}
|
|
1416
1418
|
}, { ref_for: !0 }, r.action.passthroughAttrs, {
|
|
1417
|
-
onClick: _t((
|
|
1419
|
+
onClick: _t((m) => r.action.execute(m), ["stop"])
|
|
1418
1420
|
}), {
|
|
1419
1421
|
default: g(() => [
|
|
1420
1422
|
r.icon ? (C(), A(o(je), {
|
|
1421
1423
|
key: 0,
|
|
1422
1424
|
name: r.icon
|
|
1423
1425
|
}, null, 8, ["name"])) : R("", !0),
|
|
1424
|
-
r.icon && r.label ? (C(), K("span",
|
|
1425
|
-
r.label ? (C(), K("span",
|
|
1426
|
+
r.icon && r.label ? (C(), K("span", tl)) : R("", !0),
|
|
1427
|
+
r.label ? (C(), K("span", nl, Le(r.label), 1)) : R("", !0)
|
|
1426
1428
|
]),
|
|
1427
1429
|
_: 2
|
|
1428
1430
|
}, 1040, ["variant", "color", "disabled", "size", "class", "onClick"]))), 128))
|
|
1429
1431
|
], 2)) : R("", !0);
|
|
1430
1432
|
};
|
|
1431
1433
|
}
|
|
1432
|
-
}),
|
|
1434
|
+
}), ll = /* @__PURE__ */ O({
|
|
1433
1435
|
__name: "df-checkbox",
|
|
1434
1436
|
props: /* @__PURE__ */ te({
|
|
1435
1437
|
allowNull: { type: Boolean },
|
|
@@ -1447,10 +1449,10 @@ const el = {
|
|
|
1447
1449
|
passthroughAttrs: {},
|
|
1448
1450
|
density: {},
|
|
1449
1451
|
variant: {}
|
|
1450
|
-
}, L(
|
|
1452
|
+
}, L(B({}, ne), { allowNull: !1 })),
|
|
1451
1453
|
emits: ["update:modelValue", "click:clear"],
|
|
1452
1454
|
setup(e, { emit: t }) {
|
|
1453
|
-
const n = e, l = t, { densityClass: a, isRendered: i, label: u, showErrors:
|
|
1455
|
+
const n = e, l = t, { densityClass: a, isRendered: i, label: u, showErrors: d, touched: v, value: r, visibilityClass: p, vuetifyBindings: m } = Q(
|
|
1454
1456
|
n,
|
|
1455
1457
|
l
|
|
1456
1458
|
), b = h(() => n.allowNull && r.value == null), k = h({
|
|
@@ -1461,7 +1463,7 @@ const el = {
|
|
|
1461
1463
|
}
|
|
1462
1464
|
});
|
|
1463
1465
|
function V() {
|
|
1464
|
-
const w =
|
|
1466
|
+
const w = Pt(r.value);
|
|
1465
1467
|
w === !0 ? r.value = n.allowNull ? null : !1 : r.value = w === !1;
|
|
1466
1468
|
}
|
|
1467
1469
|
return (w, j) => {
|
|
@@ -1469,34 +1471,34 @@ const el = {
|
|
|
1469
1471
|
return o(i) ? (C(), A(x, W({
|
|
1470
1472
|
key: 0,
|
|
1471
1473
|
modelValue: k.value,
|
|
1472
|
-
"onUpdate:modelValue": j[0] || (j[0] = (
|
|
1474
|
+
"onUpdate:modelValue": j[0] || (j[0] = (f) => k.value = f),
|
|
1473
1475
|
density: "compact",
|
|
1474
1476
|
class: [o(a), o(p)],
|
|
1475
1477
|
indeterminate: b.value,
|
|
1476
1478
|
"false-value": !1,
|
|
1477
1479
|
"true-value": !0
|
|
1478
|
-
}, o(
|
|
1480
|
+
}, o(m), {
|
|
1479
1481
|
onChange: V,
|
|
1480
|
-
onBlur: j[1] || (j[1] = (
|
|
1482
|
+
onBlur: j[1] || (j[1] = (f) => v.value = !0)
|
|
1481
1483
|
}), {
|
|
1482
|
-
label: g((
|
|
1483
|
-
|
|
1484
|
+
label: g((f) => [
|
|
1485
|
+
D(o(ce), {
|
|
1484
1486
|
"allow-wrap": !0,
|
|
1485
|
-
data:
|
|
1487
|
+
data: f,
|
|
1486
1488
|
label: o(u)
|
|
1487
1489
|
}, null, 8, ["data", "label"])
|
|
1488
1490
|
]),
|
|
1489
|
-
message: g(({ message:
|
|
1490
|
-
|
|
1491
|
-
message:
|
|
1492
|
-
errors: o(
|
|
1491
|
+
message: g(({ message: f }) => [
|
|
1492
|
+
D(o(J), {
|
|
1493
|
+
message: f,
|
|
1494
|
+
errors: o(d)
|
|
1493
1495
|
}, null, 8, ["message", "errors"])
|
|
1494
1496
|
]),
|
|
1495
1497
|
_: 1
|
|
1496
1498
|
}, 16, ["modelValue", "class", "indeterminate"])) : R("", !0);
|
|
1497
1499
|
};
|
|
1498
1500
|
}
|
|
1499
|
-
}),
|
|
1501
|
+
}), al = /* @__PURE__ */ O({
|
|
1500
1502
|
__name: "df-color",
|
|
1501
1503
|
props: /* @__PURE__ */ te({
|
|
1502
1504
|
allowNull: { type: Boolean },
|
|
@@ -1514,18 +1516,18 @@ const el = {
|
|
|
1514
1516
|
passthroughAttrs: {},
|
|
1515
1517
|
density: {},
|
|
1516
1518
|
variant: {}
|
|
1517
|
-
}, L(
|
|
1519
|
+
}, L(B({}, ne), { allowNull: !1 })),
|
|
1518
1520
|
emits: ["update:modelValue", "click:clear"],
|
|
1519
1521
|
setup(e, { emit: t }) {
|
|
1520
|
-
const n = e, l = t, { densityClass: a, isRendered: i, label: u, showErrors:
|
|
1522
|
+
const n = e, l = t, { densityClass: a, isRendered: i, label: u, showErrors: d, touched: v, value: r, visibilityClass: p, vuetifyBindings: m } = Q(
|
|
1521
1523
|
n,
|
|
1522
1524
|
l
|
|
1523
1525
|
), b = E(!1), k = h(() => [
|
|
1524
1526
|
(V) => n.control || !V && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(V) ? !0 : "Not a valid hex string."
|
|
1525
1527
|
]);
|
|
1526
1528
|
return (V, w) => {
|
|
1527
|
-
const j = N("v-color-picker"), x = N("v-menu"),
|
|
1528
|
-
return o(i) ? (C(), A(
|
|
1529
|
+
const j = N("v-color-picker"), x = N("v-menu"), f = N("v-text-field");
|
|
1530
|
+
return o(i) ? (C(), A(f, W({
|
|
1529
1531
|
key: 0,
|
|
1530
1532
|
modelValue: o(r),
|
|
1531
1533
|
"onUpdate:modelValue": w[2] || (w[2] = ($) => se(r) ? r.value = $ : null),
|
|
@@ -1533,19 +1535,19 @@ const el = {
|
|
|
1533
1535
|
clearable: e.allowNull,
|
|
1534
1536
|
type: "text",
|
|
1535
1537
|
rules: k.value
|
|
1536
|
-
}, o(
|
|
1538
|
+
}, o(m), {
|
|
1537
1539
|
onBlur: w[3] || (w[3] = ($) => v.value = !0)
|
|
1538
1540
|
}), {
|
|
1539
1541
|
label: g(($) => [
|
|
1540
|
-
|
|
1542
|
+
D(o(ce), {
|
|
1541
1543
|
data: $,
|
|
1542
1544
|
label: o(u)
|
|
1543
1545
|
}, null, 8, ["data", "label"])
|
|
1544
1546
|
]),
|
|
1545
1547
|
message: g(({ message: $ }) => [
|
|
1546
|
-
|
|
1548
|
+
D(o(J), {
|
|
1547
1549
|
message: $,
|
|
1548
|
-
errors: o(
|
|
1550
|
+
errors: o(d)
|
|
1549
1551
|
}, null, 8, ["message", "errors"])
|
|
1550
1552
|
]),
|
|
1551
1553
|
"prepend-inner": g(() => [
|
|
@@ -1554,14 +1556,14 @@ const el = {
|
|
|
1554
1556
|
}, null, 4)
|
|
1555
1557
|
]),
|
|
1556
1558
|
default: g(() => [
|
|
1557
|
-
|
|
1559
|
+
D(x, {
|
|
1558
1560
|
modelValue: b.value,
|
|
1559
1561
|
"onUpdate:modelValue": w[1] || (w[1] = ($) => b.value = $),
|
|
1560
1562
|
"close-on-content-click": !1,
|
|
1561
1563
|
activator: "parent"
|
|
1562
1564
|
}, {
|
|
1563
1565
|
default: g(() => [
|
|
1564
|
-
|
|
1566
|
+
D(j, {
|
|
1565
1567
|
modelValue: o(r),
|
|
1566
1568
|
"onUpdate:modelValue": w[0] || (w[0] = ($) => se(r) ? r.value = $ : null),
|
|
1567
1569
|
mode: "hexa"
|
|
@@ -1574,7 +1576,7 @@ const el = {
|
|
|
1574
1576
|
}, 16, ["modelValue", "class", "clearable", "rules"])) : R("", !0);
|
|
1575
1577
|
};
|
|
1576
1578
|
}
|
|
1577
|
-
}),
|
|
1579
|
+
}), rl = /* @__PURE__ */ O({
|
|
1578
1580
|
__name: "df-datetime",
|
|
1579
1581
|
props: /* @__PURE__ */ te({
|
|
1580
1582
|
inputType: {},
|
|
@@ -1595,7 +1597,7 @@ const el = {
|
|
|
1595
1597
|
passthroughAttrs: {},
|
|
1596
1598
|
density: {},
|
|
1597
1599
|
variant: {}
|
|
1598
|
-
}, L(
|
|
1600
|
+
}, L(B({}, ne), {
|
|
1599
1601
|
inputType: "datetime",
|
|
1600
1602
|
displayFormatDate: "P",
|
|
1601
1603
|
displayFormatTime: "p"
|
|
@@ -1604,11 +1606,11 @@ const el = {
|
|
|
1604
1606
|
setup(e, { emit: t }) {
|
|
1605
1607
|
const n = e, l = t, a = h(() => {
|
|
1606
1608
|
var s;
|
|
1607
|
-
return (s = n.locale) != null ? s : o(
|
|
1609
|
+
return (s = n.locale) != null ? s : o(qo.dateTimeLocale);
|
|
1608
1610
|
}), i = h(() => {
|
|
1609
1611
|
var s, c;
|
|
1610
1612
|
return (c = (s = a.value.options) == null ? void 0 : s.weekStartsOn) != null ? c : 1;
|
|
1611
|
-
}), { densityClass: u, touched:
|
|
1613
|
+
}), { densityClass: u, touched: d, value: v, vuetifyBindings: r } = Q(n, l), { inputType: p, displayFormatDate: m, displayFormatTime: b } = Ie(n), k = E(""), V = h({
|
|
1612
1614
|
get() {
|
|
1613
1615
|
return o(k) === "date";
|
|
1614
1616
|
},
|
|
@@ -1623,23 +1625,23 @@ const el = {
|
|
|
1623
1625
|
k.value = s ? "time" : "";
|
|
1624
1626
|
}
|
|
1625
1627
|
}), j = (s) => `${ye(s, "yyyy-MM-dd")}T${ye(s, "HH:mm")}:00`, x = E(null);
|
|
1626
|
-
function
|
|
1628
|
+
function f(s, c) {
|
|
1627
1629
|
if (s == null)
|
|
1628
1630
|
x.value = null;
|
|
1629
1631
|
else if (c === -1)
|
|
1630
1632
|
if (o(p) === "time")
|
|
1631
|
-
x.value = j(/* @__PURE__ */ new Date()),
|
|
1633
|
+
x.value = j(/* @__PURE__ */ new Date()), f(`T${s}`, 1);
|
|
1632
1634
|
else {
|
|
1633
|
-
const
|
|
1634
|
-
|
|
1635
|
+
const I = j(new Date(s));
|
|
1636
|
+
f(I, 0), f(I, 1);
|
|
1635
1637
|
}
|
|
1636
1638
|
else {
|
|
1637
1639
|
x.value == null && (x.value = j(/* @__PURE__ */ new Date()));
|
|
1638
|
-
const
|
|
1639
|
-
|
|
1640
|
+
const I = x.value.split(/[TZ]/g), z = s.split(/[TZ]/g);
|
|
1641
|
+
I[c] = z[c], x.value = j(/* @__PURE__ */ new Date(`${I[0]}T${I[1].split(".")[0]}`)), o(p) === "date" ? v.value = I[0] : o(p) === "time" ? v.value = I[1] : v.value = o(x) + ye(/* @__PURE__ */ new Date(), "XXX");
|
|
1640
1642
|
}
|
|
1641
1643
|
}
|
|
1642
|
-
ie(v, (s) =>
|
|
1644
|
+
ie(v, (s) => f(s, -1), { immediate: !0 });
|
|
1643
1645
|
const $ = h({
|
|
1644
1646
|
get() {
|
|
1645
1647
|
const s = o(x);
|
|
@@ -1648,7 +1650,7 @@ const el = {
|
|
|
1648
1650
|
return Number.isNaN(c.getTime()) ? null : c;
|
|
1649
1651
|
},
|
|
1650
1652
|
set(s) {
|
|
1651
|
-
|
|
1653
|
+
f(j(s), 0);
|
|
1652
1654
|
}
|
|
1653
1655
|
}), P = h({
|
|
1654
1656
|
get() {
|
|
@@ -1656,17 +1658,17 @@ const el = {
|
|
|
1656
1658
|
return s == null ? "" : s.split(/[TZ]/g)[1].split(".")[0];
|
|
1657
1659
|
},
|
|
1658
1660
|
set(s) {
|
|
1659
|
-
|
|
1661
|
+
f(`T${s}`, 1);
|
|
1660
1662
|
}
|
|
1661
1663
|
}), M = h({
|
|
1662
1664
|
get() {
|
|
1663
1665
|
const s = o($);
|
|
1664
|
-
return s == null ? "" : ye(s, o(
|
|
1666
|
+
return s == null ? "" : ye(s, o(m), { locale: a.value });
|
|
1665
1667
|
},
|
|
1666
1668
|
set(s) {
|
|
1667
1669
|
try {
|
|
1668
|
-
const c =
|
|
1669
|
-
|
|
1670
|
+
const c = Rt(s, o(m), /* @__PURE__ */ new Date(), { locale: a.value });
|
|
1671
|
+
f(j(c), 0);
|
|
1670
1672
|
} catch (c) {
|
|
1671
1673
|
console.error(c);
|
|
1672
1674
|
}
|
|
@@ -1679,18 +1681,18 @@ const el = {
|
|
|
1679
1681
|
set(s) {
|
|
1680
1682
|
const c = s.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
1681
1683
|
if (c == null) return;
|
|
1682
|
-
let
|
|
1684
|
+
let I = Ye(c[1]);
|
|
1683
1685
|
const z = Ye(c[2]);
|
|
1684
|
-
Qe(
|
|
1686
|
+
Qe(I) || Qe(z) || (c[3] && c[3].toLowerCase() === "pm" && I < 13 && (I += 12), f(`T${I.toString().padStart(2, "0")}:${z.toString().padStart(2, "0")}:00`, 1));
|
|
1685
1687
|
}
|
|
1686
1688
|
});
|
|
1687
1689
|
return (s, c) => {
|
|
1688
|
-
const
|
|
1690
|
+
const I = N("v-date-picker"), z = N("v-confirm-edit"), fe = N("v-menu"), Z = N("v-text-field"), de = N("v-time-picker");
|
|
1689
1691
|
return C(), A(o(We), W(n, {
|
|
1690
1692
|
class: o(u),
|
|
1691
1693
|
clearable: e.clearable,
|
|
1692
1694
|
"onClick:clear": c[14] || (c[14] = (X) => v.value = null),
|
|
1693
|
-
onBlur: c[15] || (c[15] = (X) =>
|
|
1695
|
+
onBlur: c[15] || (c[15] = (X) => d.value = !0)
|
|
1694
1696
|
}), {
|
|
1695
1697
|
default: g((X) => [
|
|
1696
1698
|
ue("div", {
|
|
@@ -1722,21 +1724,21 @@ const el = {
|
|
|
1722
1724
|
onBlur: (T) => X.blur()
|
|
1723
1725
|
}), {
|
|
1724
1726
|
default: g(() => [
|
|
1725
|
-
|
|
1727
|
+
D(fe, {
|
|
1726
1728
|
modelValue: V.value,
|
|
1727
1729
|
"onUpdate:modelValue": c[3] || (c[3] = (T) => V.value = T),
|
|
1728
1730
|
"close-on-content-click": !1,
|
|
1729
1731
|
activator: "parent"
|
|
1730
1732
|
}, {
|
|
1731
1733
|
default: g(() => [
|
|
1732
|
-
|
|
1734
|
+
D(z, {
|
|
1733
1735
|
modelValue: $.value,
|
|
1734
1736
|
"onUpdate:modelValue": c[0] || (c[0] = (T) => $.value = T),
|
|
1735
1737
|
onCancel: c[1] || (c[1] = (T) => k.value = ""),
|
|
1736
1738
|
onSave: c[2] || (c[2] = (T) => k.value = "")
|
|
1737
1739
|
}, {
|
|
1738
1740
|
default: g(({ model: T, actions: pe }) => [
|
|
1739
|
-
|
|
1741
|
+
D(I, {
|
|
1740
1742
|
modelValue: T.value,
|
|
1741
1743
|
"onUpdate:modelValue": (ve) => T.value = ve,
|
|
1742
1744
|
"hide-header": !0,
|
|
@@ -1778,21 +1780,21 @@ const el = {
|
|
|
1778
1780
|
onBlur: (T) => X.blur()
|
|
1779
1781
|
}), {
|
|
1780
1782
|
default: g(() => [
|
|
1781
|
-
|
|
1783
|
+
D(fe, {
|
|
1782
1784
|
modelValue: w.value,
|
|
1783
1785
|
"onUpdate:modelValue": c[10] || (c[10] = (T) => w.value = T),
|
|
1784
1786
|
"close-on-content-click": !1,
|
|
1785
1787
|
activator: "parent"
|
|
1786
1788
|
}, {
|
|
1787
1789
|
default: g(() => [
|
|
1788
|
-
|
|
1790
|
+
D(z, {
|
|
1789
1791
|
modelValue: P.value,
|
|
1790
1792
|
"onUpdate:modelValue": c[7] || (c[7] = (T) => P.value = T),
|
|
1791
1793
|
onCancel: c[8] || (c[8] = (T) => k.value = ""),
|
|
1792
1794
|
onSave: c[9] || (c[9] = (T) => k.value = "")
|
|
1793
1795
|
}, {
|
|
1794
1796
|
default: g(({ model: T, actions: pe }) => [
|
|
1795
|
-
|
|
1797
|
+
D(de, {
|
|
1796
1798
|
modelValue: T.value,
|
|
1797
1799
|
"onUpdate:modelValue": (ve) => T.value = ve,
|
|
1798
1800
|
"hide-header": !0,
|
|
@@ -1818,7 +1820,7 @@ const el = {
|
|
|
1818
1820
|
}, 16, ["class", "clearable"]);
|
|
1819
1821
|
};
|
|
1820
1822
|
}
|
|
1821
|
-
}),
|
|
1823
|
+
}), il = /* @__PURE__ */ O({
|
|
1822
1824
|
__name: "df-file",
|
|
1823
1825
|
props: /* @__PURE__ */ te({
|
|
1824
1826
|
comms: {},
|
|
@@ -1839,7 +1841,7 @@ const el = {
|
|
|
1839
1841
|
}, ne),
|
|
1840
1842
|
emits: ["update:modelValue", "click:clear"],
|
|
1841
1843
|
setup(e, { emit: t }) {
|
|
1842
|
-
const n = e, l = t, { densityClass: a, touched: i, value: u, vuetifyBindings:
|
|
1844
|
+
const n = e, l = t, { densityClass: a, touched: i, value: u, vuetifyBindings: d } = Q(n, l), v = E(null), r = E(null), p = E(0), m = E(Math.round(Math.random() * 1e3)), b = E(), k = h(() => r.value && p.value < 100), V = h(() => !b.value && u.value ? n.modelValue : "");
|
|
1843
1845
|
function w() {
|
|
1844
1846
|
v.value && window.clearInterval(v.value);
|
|
1845
1847
|
}
|
|
@@ -1853,10 +1855,10 @@ const el = {
|
|
|
1853
1855
|
});
|
|
1854
1856
|
function x() {
|
|
1855
1857
|
return Te(this, null, function* () {
|
|
1856
|
-
u.value && (yield n.comms.delete(u.value)), u.value = null, p.value = 0,
|
|
1858
|
+
u.value && (yield n.comms.delete(u.value)), u.value = null, p.value = 0, m.value = Math.round(Math.random() * 1e3), r.value = null, b.value = null, w();
|
|
1857
1859
|
});
|
|
1858
1860
|
}
|
|
1859
|
-
function
|
|
1861
|
+
function f(P) {
|
|
1860
1862
|
return Te(this, null, function* () {
|
|
1861
1863
|
p.value = -1, r.value = P;
|
|
1862
1864
|
try {
|
|
@@ -1864,23 +1866,23 @@ const el = {
|
|
|
1864
1866
|
p.value = Math.round(M * 100 / U);
|
|
1865
1867
|
}), p.value = 100, j();
|
|
1866
1868
|
} catch (M) {
|
|
1867
|
-
throw p.value = 0, r.value = null,
|
|
1869
|
+
throw p.value = 0, r.value = null, m.value = Math.round(Math.random() * 1e3), b.value = null, M;
|
|
1868
1870
|
}
|
|
1869
1871
|
});
|
|
1870
1872
|
}
|
|
1871
1873
|
function $(P) {
|
|
1872
|
-
P && (Array.isArray(P) ? console.error("Uploading multiple files not supported right now") :
|
|
1874
|
+
P && (Array.isArray(P) ? console.error("Uploading multiple files not supported right now") : f(P));
|
|
1873
1875
|
}
|
|
1874
1876
|
return (P, M) => {
|
|
1875
1877
|
const U = N("v-progress-linear"), s = N("v-file-input");
|
|
1876
|
-
return C(), A(o(We), W(L(
|
|
1878
|
+
return C(), A(o(We), W(L(B({}, n), { loading: k.value }), {
|
|
1877
1879
|
class: o(a),
|
|
1878
1880
|
clearable: "",
|
|
1879
1881
|
"onClick:clear": x,
|
|
1880
1882
|
onBlur: M[1] || (M[1] = (c) => i.value = !0)
|
|
1881
1883
|
}), {
|
|
1882
1884
|
"prepend-inner": g(() => [
|
|
1883
|
-
|
|
1885
|
+
D(o(je), { name: "mdi-paperclip" })
|
|
1884
1886
|
]),
|
|
1885
1887
|
loader: g(() => [
|
|
1886
1888
|
r.value && p.value < 100 ? (C(), A(U, {
|
|
@@ -1893,15 +1895,15 @@ const el = {
|
|
|
1893
1895
|
ue("div", {
|
|
1894
1896
|
class: ee(["d-flex w-100 position-relative df-input-wrapper", e.density])
|
|
1895
1897
|
}, [
|
|
1896
|
-
|
|
1898
|
+
D(s, W({
|
|
1897
1899
|
modelValue: b.value,
|
|
1898
|
-
"onUpdate:modelValue": M[0] || (M[0] = (
|
|
1900
|
+
"onUpdate:modelValue": M[0] || (M[0] = (I) => b.value = I),
|
|
1899
1901
|
label: V.value,
|
|
1900
1902
|
density: "compact",
|
|
1901
1903
|
variant: "plain",
|
|
1902
|
-
readonly: o(
|
|
1903
|
-
disabled: o(
|
|
1904
|
-
name: o(
|
|
1904
|
+
readonly: o(d).readonly,
|
|
1905
|
+
disabled: o(d).disabled,
|
|
1906
|
+
name: o(d).name,
|
|
1905
1907
|
"hide-details": !0,
|
|
1906
1908
|
"show-size": !0,
|
|
1907
1909
|
multiple: !1,
|
|
@@ -1910,8 +1912,8 @@ const el = {
|
|
|
1910
1912
|
}, e.passthroughAttrs, {
|
|
1911
1913
|
"prepend-icon": "",
|
|
1912
1914
|
"onUpdate:modelValue": $,
|
|
1913
|
-
onFocus: (
|
|
1914
|
-
onBlur: (
|
|
1915
|
+
onFocus: (I) => c.focus(),
|
|
1916
|
+
onBlur: (I) => c.blur()
|
|
1915
1917
|
}), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
|
|
1916
1918
|
], 2)
|
|
1917
1919
|
]),
|
|
@@ -1919,7 +1921,7 @@ const el = {
|
|
|
1919
1921
|
}, 16, ["class"]);
|
|
1920
1922
|
};
|
|
1921
1923
|
}
|
|
1922
|
-
}),
|
|
1924
|
+
}), sl = /* @__PURE__ */ O({
|
|
1923
1925
|
__name: "df-input",
|
|
1924
1926
|
props: /* @__PURE__ */ te({
|
|
1925
1927
|
inputType: {},
|
|
@@ -1941,7 +1943,7 @@ const el = {
|
|
|
1941
1943
|
passthroughAttrs: {},
|
|
1942
1944
|
density: {},
|
|
1943
1945
|
variant: {}
|
|
1944
|
-
}, L(
|
|
1946
|
+
}, L(B({}, ne), {
|
|
1945
1947
|
inputType: "text",
|
|
1946
1948
|
precision: null,
|
|
1947
1949
|
step: void 0,
|
|
@@ -1950,10 +1952,10 @@ const el = {
|
|
|
1950
1952
|
})),
|
|
1951
1953
|
emits: ["update:modelValue", "click:clear"],
|
|
1952
1954
|
setup(e, { emit: t }) {
|
|
1953
|
-
const n = e, l = t, { densityClass: a, isRendered: i, label: u, showErrors:
|
|
1955
|
+
const n = e, l = t, { densityClass: a, isRendered: i, label: u, showErrors: d, touched: v, value: r, visibilityClass: p, vuetifyBindings: m } = Q(
|
|
1954
1956
|
n,
|
|
1955
1957
|
l
|
|
1956
|
-
), { inputType: b, max: k, min: V, precision: w, step: j } = Ie(n), x = h(() => b.value === "number"),
|
|
1958
|
+
), { inputType: b, max: k, min: V, precision: w, step: j } = Ie(n), x = h(() => b.value === "number"), f = h(
|
|
1957
1959
|
() => x.value ? { min: o(V), max: o(k), precision: o(w), step: o(j) } : {}
|
|
1958
1960
|
);
|
|
1959
1961
|
return ($, P) => {
|
|
@@ -1968,17 +1970,17 @@ const el = {
|
|
|
1968
1970
|
"onUpdate:modelValue": P[2] || (P[2] = (s) => se(r) ? r.value = s : null),
|
|
1969
1971
|
density: "compact",
|
|
1970
1972
|
"control-variant": "stacked"
|
|
1971
|
-
},
|
|
1973
|
+
}, B(B({}, o(m)), f.value)), {
|
|
1972
1974
|
label: g((s) => [
|
|
1973
|
-
|
|
1975
|
+
D(o(ce), {
|
|
1974
1976
|
data: s,
|
|
1975
1977
|
label: o(u)
|
|
1976
1978
|
}, null, 8, ["data", "label"])
|
|
1977
1979
|
]),
|
|
1978
1980
|
message: g(({ message: s }) => [
|
|
1979
|
-
|
|
1981
|
+
D(o(J), {
|
|
1980
1982
|
message: s,
|
|
1981
|
-
errors: o(
|
|
1983
|
+
errors: o(d)
|
|
1982
1984
|
}, null, 8, ["message", "errors"])
|
|
1983
1985
|
]),
|
|
1984
1986
|
_: 1
|
|
@@ -1987,19 +1989,19 @@ const el = {
|
|
|
1987
1989
|
modelValue: o(r),
|
|
1988
1990
|
"onUpdate:modelValue": P[0] || (P[0] = (s) => se(r) ? r.value = s : null),
|
|
1989
1991
|
type: o(b)
|
|
1990
|
-
}, o(
|
|
1992
|
+
}, o(m), {
|
|
1991
1993
|
onBlur: P[1] || (P[1] = (s) => v.value = !0)
|
|
1992
1994
|
}), {
|
|
1993
1995
|
label: g((s) => [
|
|
1994
|
-
|
|
1996
|
+
D(o(ce), {
|
|
1995
1997
|
data: s,
|
|
1996
1998
|
label: o(u)
|
|
1997
1999
|
}, null, 8, ["data", "label"])
|
|
1998
2000
|
]),
|
|
1999
2001
|
message: g(({ message: s }) => [
|
|
2000
|
-
|
|
2002
|
+
D(o(J), {
|
|
2001
2003
|
message: s,
|
|
2002
|
-
errors: o(
|
|
2004
|
+
errors: o(d)
|
|
2003
2005
|
}, null, 8, ["message", "errors"])
|
|
2004
2006
|
]),
|
|
2005
2007
|
_: 1
|
|
@@ -2007,7 +2009,7 @@ const el = {
|
|
|
2007
2009
|
], 2)) : R("", !0);
|
|
2008
2010
|
};
|
|
2009
2011
|
}
|
|
2010
|
-
}),
|
|
2012
|
+
}), ul = { class: "editor-container" }, cl = { class: "editor-container__editor" }, dl = { ref: "editorElement" }, ml = /* @__PURE__ */ O({
|
|
2011
2013
|
__name: "ck-editor-custom",
|
|
2012
2014
|
props: {
|
|
2013
2015
|
modelValue: { default: "" },
|
|
@@ -2016,10 +2018,10 @@ const el = {
|
|
|
2016
2018
|
},
|
|
2017
2019
|
emits: ["update:modelValue"],
|
|
2018
2020
|
setup(e, { expose: t, emit: n }) {
|
|
2019
|
-
Bt((
|
|
2020
|
-
v32dcdf6e:
|
|
2021
|
+
Bt((m) => ({
|
|
2022
|
+
v32dcdf6e: m.minHeight
|
|
2021
2023
|
}));
|
|
2022
|
-
const l = n, a = E(!1), i =
|
|
2024
|
+
const l = n, a = E(!1), i = Dn, u = {
|
|
2023
2025
|
items: [
|
|
2024
2026
|
"undo",
|
|
2025
2027
|
"redo",
|
|
@@ -2048,12 +2050,11 @@ const el = {
|
|
|
2048
2050
|
"accessibilityHelp"
|
|
2049
2051
|
],
|
|
2050
2052
|
shouldNotGroupWhenFull: !1
|
|
2051
|
-
},
|
|
2052
|
-
Rt,
|
|
2053
|
+
}, d = [
|
|
2053
2054
|
Ut,
|
|
2054
2055
|
Wt,
|
|
2055
|
-
Ht,
|
|
2056
2056
|
Ot,
|
|
2057
|
+
Ht,
|
|
2057
2058
|
zt,
|
|
2058
2059
|
Kt,
|
|
2059
2060
|
Xt,
|
|
@@ -2089,7 +2090,8 @@ const el = {
|
|
|
2089
2090
|
jn,
|
|
2090
2091
|
Tn,
|
|
2091
2092
|
xn,
|
|
2092
|
-
_n
|
|
2093
|
+
_n,
|
|
2094
|
+
Bn
|
|
2093
2095
|
], v = {
|
|
2094
2096
|
options: [
|
|
2095
2097
|
{ model: "paragraph", title: F.Paragraph, class: "ck-heading_paragraph" },
|
|
@@ -2103,7 +2105,7 @@ const el = {
|
|
|
2103
2105
|
}, r = {
|
|
2104
2106
|
language: Be.language,
|
|
2105
2107
|
toolbar: u,
|
|
2106
|
-
plugins:
|
|
2108
|
+
plugins: d,
|
|
2107
2109
|
balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
|
|
2108
2110
|
heading: v,
|
|
2109
2111
|
htmlSupport: {
|
|
@@ -2153,13 +2155,13 @@ const el = {
|
|
|
2153
2155
|
tt(() => {
|
|
2154
2156
|
a.value = !0;
|
|
2155
2157
|
});
|
|
2156
|
-
const p = (
|
|
2158
|
+
const p = (m) => {
|
|
2157
2159
|
};
|
|
2158
|
-
return t({ onEditorReady: p }), (
|
|
2160
|
+
return t({ onEditorReady: p }), (m, b) => {
|
|
2159
2161
|
const k = N("ckeditor");
|
|
2160
|
-
return C(), K("div",
|
|
2161
|
-
ue("div",
|
|
2162
|
-
ue("div",
|
|
2162
|
+
return C(), K("div", ul, [
|
|
2163
|
+
ue("div", cl, [
|
|
2164
|
+
ue("div", dl, [
|
|
2163
2165
|
a.value ? (C(), A(k, {
|
|
2164
2166
|
key: 0,
|
|
2165
2167
|
"model-value": e.modelValue,
|
|
@@ -2175,7 +2177,7 @@ const el = {
|
|
|
2175
2177
|
]);
|
|
2176
2178
|
};
|
|
2177
2179
|
}
|
|
2178
|
-
}),
|
|
2180
|
+
}), fl = /* @__PURE__ */ O({
|
|
2179
2181
|
__name: "df-rtf-editor",
|
|
2180
2182
|
props: /* @__PURE__ */ te({
|
|
2181
2183
|
minHeight: {},
|
|
@@ -2193,15 +2195,15 @@ const el = {
|
|
|
2193
2195
|
passthroughAttrs: {},
|
|
2194
2196
|
density: {},
|
|
2195
2197
|
variant: {}
|
|
2196
|
-
}, L(
|
|
2198
|
+
}, L(B({}, ne), { minHeight: void 0 })),
|
|
2197
2199
|
emits: ["update:modelValue", "click:clear"],
|
|
2198
2200
|
setup(e, { emit: t }) {
|
|
2199
2201
|
const n = e, l = t, { densityClass: a, value: i, vuetifyBindings: u } = Q(n, l);
|
|
2200
|
-
return (
|
|
2202
|
+
return (d, v) => (C(), A(o(We), W(n, {
|
|
2201
2203
|
class: ["ck-editor-custom", o(a)]
|
|
2202
2204
|
}), {
|
|
2203
2205
|
default: g((r) => [
|
|
2204
|
-
|
|
2206
|
+
D(ml, W({
|
|
2205
2207
|
ref: "$editor",
|
|
2206
2208
|
modelValue: o(i),
|
|
2207
2209
|
"onUpdate:modelValue": v[0] || (v[0] = (p) => se(i) ? i.value = p : null),
|
|
@@ -2217,7 +2219,7 @@ const el = {
|
|
|
2217
2219
|
}, 16, ["class"]));
|
|
2218
2220
|
}
|
|
2219
2221
|
});
|
|
2220
|
-
function
|
|
2222
|
+
function pl(e) {
|
|
2221
2223
|
return e.map((t) => ({ value: t.id, title: t.text, icon: t.icon }));
|
|
2222
2224
|
}
|
|
2223
2225
|
function oe(e, t) {
|
|
@@ -2237,18 +2239,18 @@ function xe(e, t, n, l, a) {
|
|
|
2237
2239
|
return;
|
|
2238
2240
|
}
|
|
2239
2241
|
if (n)
|
|
2240
|
-
l ? t.value = i : t.value = De(a, i).map((
|
|
2242
|
+
l ? t.value = i : t.value = De(a, i).map((d) => d.id);
|
|
2241
2243
|
else if (l)
|
|
2242
2244
|
t.value = i;
|
|
2243
2245
|
else {
|
|
2244
|
-
const
|
|
2245
|
-
t.value = (u =
|
|
2246
|
+
const d = at(De(a, i));
|
|
2247
|
+
t.value = (u = d == null ? void 0 : d.id) != null ? u : null;
|
|
2246
2248
|
}
|
|
2247
2249
|
}
|
|
2248
|
-
const
|
|
2250
|
+
const vl = {
|
|
2249
2251
|
key: 0,
|
|
2250
2252
|
class: "me-1"
|
|
2251
|
-
},
|
|
2253
|
+
}, hl = /* @__PURE__ */ O({
|
|
2252
2254
|
__name: "df-select",
|
|
2253
2255
|
props: /* @__PURE__ */ te({
|
|
2254
2256
|
choices: {},
|
|
@@ -2270,7 +2272,7 @@ const pl = {
|
|
|
2270
2272
|
passthroughAttrs: {},
|
|
2271
2273
|
density: {},
|
|
2272
2274
|
variant: {}
|
|
2273
|
-
}, L(
|
|
2275
|
+
}, L(B({}, ne), {
|
|
2274
2276
|
choices: void 0,
|
|
2275
2277
|
multiple: !1,
|
|
2276
2278
|
allowTags: !1,
|
|
@@ -2279,16 +2281,16 @@ const pl = {
|
|
|
2279
2281
|
})),
|
|
2280
2282
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
2281
2283
|
setup(e, { emit: t }) {
|
|
2282
|
-
const n = e, { choices: l, multiple: a, allowTags: i, allowNull: u, cssClass:
|
|
2284
|
+
const n = e, { choices: l, multiple: a, allowTags: i, allowNull: u, cssClass: d } = Ie(n), v = t, r = E(null), {
|
|
2283
2285
|
densityClass: p,
|
|
2284
|
-
isRendered:
|
|
2286
|
+
isRendered: m,
|
|
2285
2287
|
label: b,
|
|
2286
2288
|
showErrors: k,
|
|
2287
2289
|
touched: V,
|
|
2288
2290
|
value: w,
|
|
2289
2291
|
visibilityClass: j,
|
|
2290
2292
|
vuetifyBindings: x
|
|
2291
|
-
} = Q(n, v),
|
|
2293
|
+
} = Q(n, v), f = E(null), $ = E(!1), P = E([]), M = h(() => o($) ? o(P) : o(l) || []), U = E(!1), s = h(() => pl(M.value)), c = E(null), I = E(0), z = E(!1);
|
|
2292
2294
|
s.value && n.fetchChoices !== void 0 && console.warn("Both options and fetchChoices are set. Only one of them should be set.");
|
|
2293
2295
|
function fe(y) {
|
|
2294
2296
|
v("update:modelValueDisplay", De(M.value, y));
|
|
@@ -2301,19 +2303,19 @@ const pl = {
|
|
|
2301
2303
|
}
|
|
2302
2304
|
function X(y) {
|
|
2303
2305
|
if (!y) return 0;
|
|
2304
|
-
const _ = y.getBoundingClientRect(),
|
|
2305
|
-
return _.width + parseFloat(
|
|
2306
|
+
const _ = y.getBoundingClientRect(), H = window.getComputedStyle(y);
|
|
2307
|
+
return _.width + parseFloat(H.marginLeft) + parseFloat(H.marginRight);
|
|
2306
2308
|
}
|
|
2307
2309
|
function T() {
|
|
2308
2310
|
var y;
|
|
2309
|
-
if (a.value && u.value &&
|
|
2310
|
-
const _ = r.value.$el,
|
|
2311
|
+
if (a.value && u.value && f.value != null && f.value.length > 0 && r.value) {
|
|
2312
|
+
const _ = r.value.$el, H = (y = _.querySelector(".v-input__control")) == null ? void 0 : y.clientWidth, q = _.querySelector(".v-field__input"), S = q.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), G = window.getComputedStyle(q);
|
|
2311
2313
|
let he = parseFloat(G.paddingLeft) + parseFloat(G.paddingRight);
|
|
2312
|
-
|
|
2314
|
+
S.forEach((ht) => {
|
|
2313
2315
|
he += X(ht);
|
|
2314
2316
|
});
|
|
2315
2317
|
const ft = X(_.querySelector(".v-field .v-field__clearable")), pt = X(_.querySelector(".v-field .v-field__append-inner")), vt = 2;
|
|
2316
|
-
z.value =
|
|
2318
|
+
z.value = H - he - S.length * vt - pt < ft;
|
|
2317
2319
|
} else
|
|
2318
2320
|
z.value = !1;
|
|
2319
2321
|
}
|
|
@@ -2322,7 +2324,7 @@ const pl = {
|
|
|
2322
2324
|
_ instanceof HTMLElement && _.closest(".v-chip__close") && (y.stopPropagation(), y.preventDefault());
|
|
2323
2325
|
}
|
|
2324
2326
|
ie(
|
|
2325
|
-
|
|
2327
|
+
f,
|
|
2326
2328
|
(y) => {
|
|
2327
2329
|
x.value.readonly || qe(() => {
|
|
2328
2330
|
const _ = oe(y, a.value);
|
|
@@ -2335,7 +2337,7 @@ const pl = {
|
|
|
2335
2337
|
(y) => {
|
|
2336
2338
|
if (!Z.value) {
|
|
2337
2339
|
const _ = oe(y, a.value);
|
|
2338
|
-
xe(_,
|
|
2340
|
+
xe(_, f, a.value, !1, M.value);
|
|
2339
2341
|
}
|
|
2340
2342
|
},
|
|
2341
2343
|
{ deep: !0 }
|
|
@@ -2347,57 +2349,57 @@ const pl = {
|
|
|
2347
2349
|
}
|
|
2348
2350
|
function dt() {
|
|
2349
2351
|
if (ve(), x.value.readonly || i.value) return;
|
|
2350
|
-
const y = oe(
|
|
2351
|
-
xe(y,
|
|
2352
|
+
const y = oe(f.value, a.value);
|
|
2353
|
+
xe(y, f, a.value, !1, M.value), de(y);
|
|
2352
2354
|
}
|
|
2353
2355
|
function mt(y, _) {
|
|
2354
2356
|
if (y.stopPropagation(), x.value.readonly || i.value) {
|
|
2355
|
-
i.value && (
|
|
2357
|
+
i.value && (f.value = f.value.filter((q) => q !== _));
|
|
2356
2358
|
return;
|
|
2357
2359
|
}
|
|
2358
|
-
let
|
|
2359
|
-
a.value && Array.isArray(
|
|
2360
|
-
|
|
2360
|
+
let H;
|
|
2361
|
+
a.value && Array.isArray(f.value) ? H = oe(
|
|
2362
|
+
f.value.filter((q) => q !== _),
|
|
2361
2363
|
a.value
|
|
2362
|
-
) :
|
|
2364
|
+
) : H = null, xe(H, f, a.value, !1, M.value), de(H);
|
|
2363
2365
|
}
|
|
2364
2366
|
function Se(y, _) {
|
|
2365
2367
|
return Te(this, null, function* () {
|
|
2366
2368
|
if (x.value.readonly || (c.value = y, l.value || n.fetchChoices === void 0)) return;
|
|
2367
|
-
const
|
|
2369
|
+
const H = ++I.value;
|
|
2368
2370
|
U.value = !0;
|
|
2369
2371
|
try {
|
|
2370
2372
|
const q = De(
|
|
2371
2373
|
M.value,
|
|
2372
|
-
oe(
|
|
2373
|
-
),
|
|
2374
|
-
if (
|
|
2375
|
-
P.value =
|
|
2374
|
+
oe(f.value, a.value)
|
|
2375
|
+
), S = yield n.fetchChoices(y, _);
|
|
2376
|
+
if (H !== I.value) return;
|
|
2377
|
+
P.value = Et([...q, ...S], "id"), $.value = !0;
|
|
2376
2378
|
} finally {
|
|
2377
2379
|
U.value = !1;
|
|
2378
2380
|
}
|
|
2379
2381
|
});
|
|
2380
2382
|
}
|
|
2381
|
-
function
|
|
2383
|
+
function Oe() {
|
|
2382
2384
|
let y = w.value;
|
|
2383
|
-
!u.value && y == null && s.value.length && (y = s.value[0].value), y = oe(y, a.value), xe(y,
|
|
2385
|
+
!u.value && y == null && s.value.length && (y = s.value[0].value), y = oe(y, a.value), xe(y, f, a.value, i.value, M.value), fe(y), de(y);
|
|
2384
2386
|
}
|
|
2385
|
-
return
|
|
2386
|
-
|
|
2387
|
+
return Oe(), n.fetchChoices !== void 0 && Se(void 0, w.value).then(() => {
|
|
2388
|
+
Oe();
|
|
2387
2389
|
}), (y, _) => {
|
|
2388
|
-
const
|
|
2389
|
-
return o(
|
|
2390
|
+
const H = N("v-chip"), q = N("v-list-item");
|
|
2391
|
+
return o(m) ? (C(), A(Ce(o(i) ? "v-combobox" : "v-autocomplete"), W({
|
|
2390
2392
|
key: 0,
|
|
2391
2393
|
ref_key: "dfSelectRef",
|
|
2392
2394
|
ref: r,
|
|
2393
|
-
modelValue:
|
|
2394
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
2395
|
-
class: [o(
|
|
2395
|
+
modelValue: f.value,
|
|
2396
|
+
"onUpdate:modelValue": _[0] || (_[0] = (S) => f.value = S),
|
|
2397
|
+
class: [o(d), o(p), o(j), { "df-select-multirow": z.value }],
|
|
2396
2398
|
items: s.value,
|
|
2397
2399
|
"return-object": !1,
|
|
2398
2400
|
chips: "",
|
|
2399
2401
|
"auto-select-first": !0,
|
|
2400
|
-
"closable-chips": o(u) || o(a) &&
|
|
2402
|
+
"closable-chips": o(u) || o(a) && f.value.length > 1,
|
|
2401
2403
|
clearable: o(u),
|
|
2402
2404
|
multiple: o(a),
|
|
2403
2405
|
loading: U.value,
|
|
@@ -2406,53 +2408,53 @@ const pl = {
|
|
|
2406
2408
|
"menu-props": { maxHeight: "400" },
|
|
2407
2409
|
search: c.value
|
|
2408
2410
|
}, o(x), {
|
|
2409
|
-
"onUpdate:search": _[1] || (_[1] = (
|
|
2411
|
+
"onUpdate:search": _[1] || (_[1] = (S) => Se(S, void 0)),
|
|
2410
2412
|
"onUpdate:modelValue": dt,
|
|
2411
|
-
"onClick:clear": _[2] || (_[2] = (
|
|
2412
|
-
onBlur: _[3] || (_[3] = (
|
|
2413
|
-
onMousedownCapture: _[4] || (_[4] = (
|
|
2413
|
+
"onClick:clear": _[2] || (_[2] = (S) => f.value = null),
|
|
2414
|
+
onBlur: _[3] || (_[3] = (S) => V.value = !0),
|
|
2415
|
+
onMousedownCapture: _[4] || (_[4] = (S) => pe(S))
|
|
2414
2416
|
}), Ne({
|
|
2415
|
-
chip: g(({ item:
|
|
2416
|
-
(C(), A(
|
|
2417
|
-
key:
|
|
2417
|
+
chip: g(({ item: S }) => [
|
|
2418
|
+
(C(), A(H, {
|
|
2419
|
+
key: S.value,
|
|
2418
2420
|
label: "",
|
|
2419
2421
|
size: "small",
|
|
2420
2422
|
class: "d-flex align-middle",
|
|
2421
2423
|
variant: o(a) ? "tonal" : "text",
|
|
2422
2424
|
closable: o(a),
|
|
2423
|
-
"onClick:close": (G) => mt(G,
|
|
2425
|
+
"onClick:close": (G) => mt(G, S.value)
|
|
2424
2426
|
}, {
|
|
2425
2427
|
prepend: g(() => {
|
|
2426
2428
|
var G;
|
|
2427
2429
|
return [
|
|
2428
|
-
(G =
|
|
2430
|
+
(G = S.raw) != null && G.icon ? (C(), A(o(je), {
|
|
2429
2431
|
key: 0,
|
|
2430
2432
|
class: "me-1",
|
|
2431
|
-
name:
|
|
2433
|
+
name: S.raw.icon
|
|
2432
2434
|
}, null, 8, ["name"])) : R("", !0)
|
|
2433
2435
|
];
|
|
2434
2436
|
}),
|
|
2435
2437
|
default: g(() => [
|
|
2436
2438
|
ue("span", {
|
|
2437
2439
|
class: ee({ "text-body-1": !o(a) })
|
|
2438
|
-
}, Le(
|
|
2440
|
+
}, Le(S.title), 3)
|
|
2439
2441
|
]),
|
|
2440
2442
|
_: 2
|
|
2441
2443
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
2442
2444
|
]),
|
|
2443
|
-
label: g((
|
|
2444
|
-
|
|
2445
|
-
data:
|
|
2445
|
+
label: g((S) => [
|
|
2446
|
+
D(o(ce), {
|
|
2447
|
+
data: S,
|
|
2446
2448
|
label: o(b)
|
|
2447
2449
|
}, null, 8, ["data", "label"])
|
|
2448
2450
|
]),
|
|
2449
|
-
item: g(({ props:
|
|
2450
|
-
|
|
2451
|
+
item: g(({ props: S, item: G }) => [
|
|
2452
|
+
D(q, le(ae(S)), {
|
|
2451
2453
|
prepend: g(() => {
|
|
2452
2454
|
var he;
|
|
2453
2455
|
return [
|
|
2454
|
-
(he = G.raw) != null && he.icon ? (C(), K("span",
|
|
2455
|
-
|
|
2456
|
+
(he = G.raw) != null && he.icon ? (C(), K("span", vl, [
|
|
2457
|
+
D(o(je), {
|
|
2456
2458
|
class: "action-icon",
|
|
2457
2459
|
name: G.raw.icon
|
|
2458
2460
|
}, null, 8, ["name"])
|
|
@@ -2462,9 +2464,9 @@ const pl = {
|
|
|
2462
2464
|
_: 2
|
|
2463
2465
|
}, 1040)
|
|
2464
2466
|
]),
|
|
2465
|
-
message: g(({ message:
|
|
2466
|
-
|
|
2467
|
-
message:
|
|
2467
|
+
message: g(({ message: S }) => [
|
|
2468
|
+
D(o(J), {
|
|
2469
|
+
message: S,
|
|
2468
2470
|
errors: o(k)
|
|
2469
2471
|
}, null, 8, ["message", "errors"])
|
|
2470
2472
|
]),
|
|
@@ -2472,27 +2474,27 @@ const pl = {
|
|
|
2472
2474
|
}, [
|
|
2473
2475
|
y.$slots["append-inner"] ? {
|
|
2474
2476
|
name: "append-inner",
|
|
2475
|
-
fn: g((
|
|
2476
|
-
me(y.$slots, "append-inner", le(ae(
|
|
2477
|
+
fn: g((S) => [
|
|
2478
|
+
me(y.$slots, "append-inner", le(ae(S)), void 0, !0)
|
|
2477
2479
|
]),
|
|
2478
2480
|
key: "0"
|
|
2479
2481
|
} : void 0,
|
|
2480
2482
|
y.$slots["prepend-inner"] ? {
|
|
2481
2483
|
name: "prepend-inner",
|
|
2482
|
-
fn: g((
|
|
2483
|
-
me(y.$slots, "prepend-inner", le(ae(
|
|
2484
|
+
fn: g((S) => [
|
|
2485
|
+
me(y.$slots, "prepend-inner", le(ae(S)), void 0, !0)
|
|
2484
2486
|
]),
|
|
2485
2487
|
key: "1"
|
|
2486
2488
|
} : void 0
|
|
2487
2489
|
]), 1040, ["modelValue", "class", "items", "closable-chips", "clearable", "multiple", "loading", "aria-describedby", "search"])) : R("", !0);
|
|
2488
2490
|
};
|
|
2489
2491
|
}
|
|
2490
|
-
}),
|
|
2492
|
+
}), bl = (e, t) => {
|
|
2491
2493
|
const n = e.__vccOpts || e;
|
|
2492
2494
|
for (const [l, a] of t)
|
|
2493
2495
|
n[l] = a;
|
|
2494
2496
|
return n;
|
|
2495
|
-
},
|
|
2497
|
+
}, gl = /* @__PURE__ */ bl(hl, [["__scopeId", "data-v-1f5a203c"]]), yl = /* @__PURE__ */ O({
|
|
2496
2498
|
__name: "df-text-area",
|
|
2497
2499
|
props: /* @__PURE__ */ te({
|
|
2498
2500
|
rows: {},
|
|
@@ -2511,13 +2513,13 @@ const pl = {
|
|
|
2511
2513
|
passthroughAttrs: {},
|
|
2512
2514
|
density: {},
|
|
2513
2515
|
variant: {}
|
|
2514
|
-
}, L(
|
|
2516
|
+
}, L(B({}, ne), {
|
|
2515
2517
|
rows: void 0,
|
|
2516
2518
|
maxRows: void 0
|
|
2517
2519
|
})),
|
|
2518
2520
|
emits: ["update:modelValue", "click:clear"],
|
|
2519
2521
|
setup(e, { emit: t }) {
|
|
2520
|
-
const n = e, l = t, { densityClass: a, isRendered: i, label: u, showErrors:
|
|
2522
|
+
const n = e, l = t, { densityClass: a, isRendered: i, label: u, showErrors: d, touched: v, value: r, visibilityClass: p, vuetifyBindings: m } = Q(
|
|
2521
2523
|
n,
|
|
2522
2524
|
l
|
|
2523
2525
|
), { cssClass: b } = Ie(n);
|
|
@@ -2527,26 +2529,26 @@ const pl = {
|
|
|
2527
2529
|
key: 0,
|
|
2528
2530
|
class: ee(["df-textarea-container", [o(a), o(p)]])
|
|
2529
2531
|
}, [
|
|
2530
|
-
|
|
2532
|
+
D(w, W({
|
|
2531
2533
|
modelValue: o(r),
|
|
2532
2534
|
"onUpdate:modelValue": V[0] || (V[0] = (j) => se(r) ? r.value = j : null),
|
|
2533
2535
|
class: o(b),
|
|
2534
2536
|
rows: e.rows,
|
|
2535
2537
|
"auto-grow": (e.maxRows || 0) > 0,
|
|
2536
2538
|
"max-rows": e.maxRows
|
|
2537
|
-
}, o(
|
|
2539
|
+
}, o(m), {
|
|
2538
2540
|
onBlur: V[1] || (V[1] = (j) => v.value = !0)
|
|
2539
2541
|
}), {
|
|
2540
2542
|
label: g((j) => [
|
|
2541
|
-
|
|
2543
|
+
D(o(ce), {
|
|
2542
2544
|
data: j,
|
|
2543
2545
|
label: o(u)
|
|
2544
2546
|
}, null, 8, ["data", "label"])
|
|
2545
2547
|
]),
|
|
2546
2548
|
message: g(({ message: j }) => [
|
|
2547
|
-
|
|
2549
|
+
D(o(J), {
|
|
2548
2550
|
message: j,
|
|
2549
|
-
errors: o(
|
|
2551
|
+
errors: o(d)
|
|
2550
2552
|
}, null, 8, ["message", "errors"])
|
|
2551
2553
|
]),
|
|
2552
2554
|
_: 1
|
|
@@ -2554,84 +2556,84 @@ const pl = {
|
|
|
2554
2556
|
], 2)) : R("", !0);
|
|
2555
2557
|
};
|
|
2556
2558
|
}
|
|
2557
|
-
}),
|
|
2559
|
+
}), wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2558
2560
|
__proto__: null,
|
|
2559
|
-
DfActions:
|
|
2560
|
-
DfCheckbox:
|
|
2561
|
-
DfColor:
|
|
2562
|
-
DfDateTime:
|
|
2563
|
-
DfFile:
|
|
2564
|
-
DfInput:
|
|
2561
|
+
DfActions: ol,
|
|
2562
|
+
DfCheckbox: ll,
|
|
2563
|
+
DfColor: al,
|
|
2564
|
+
DfDateTime: rl,
|
|
2565
|
+
DfFile: il,
|
|
2566
|
+
DfInput: sl,
|
|
2565
2567
|
DfInputHint: J,
|
|
2566
|
-
DfRtfEditor:
|
|
2567
|
-
DfSelect:
|
|
2568
|
-
DfTextArea:
|
|
2569
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2568
|
+
DfRtfEditor: fl,
|
|
2569
|
+
DfSelect: gl,
|
|
2570
|
+
DfTextArea: yl
|
|
2571
|
+
}, Symbol.toStringTag, { value: "Module" })), kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2570
2572
|
__proto__: null,
|
|
2571
|
-
VAutocomplete:
|
|
2572
|
-
VBtn:
|
|
2573
|
-
VCheckbox:
|
|
2574
|
-
VChip:
|
|
2575
|
-
VCol:
|
|
2576
|
-
VColorPicker:
|
|
2577
|
-
VCombobox:
|
|
2578
|
-
VConfirmEdit:
|
|
2579
|
-
VDatePicker:
|
|
2580
|
-
VField:
|
|
2581
|
-
VFileInput:
|
|
2582
|
-
VIcon:
|
|
2583
|
-
VImg:
|
|
2573
|
+
VAutocomplete: In,
|
|
2574
|
+
VBtn: Sn,
|
|
2575
|
+
VCheckbox: Pn,
|
|
2576
|
+
VChip: En,
|
|
2577
|
+
VCol: Rn,
|
|
2578
|
+
VColorPicker: $n,
|
|
2579
|
+
VCombobox: An,
|
|
2580
|
+
VConfirmEdit: Mn,
|
|
2581
|
+
VDatePicker: Fn,
|
|
2582
|
+
VField: Nn,
|
|
2583
|
+
VFileInput: Ln,
|
|
2584
|
+
VIcon: Wn,
|
|
2585
|
+
VImg: On,
|
|
2584
2586
|
VInput: Hn,
|
|
2585
|
-
VListItem:
|
|
2586
|
-
VMenu:
|
|
2587
|
-
VNumberInput:
|
|
2588
|
-
VProgressLinear:
|
|
2589
|
-
VRow:
|
|
2590
|
-
VSelect:
|
|
2591
|
-
VSwitch:
|
|
2592
|
-
VTextField:
|
|
2593
|
-
VTextarea:
|
|
2594
|
-
VTimePicker:
|
|
2595
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2587
|
+
VListItem: zn,
|
|
2588
|
+
VMenu: Kn,
|
|
2589
|
+
VNumberInput: Xn,
|
|
2590
|
+
VProgressLinear: qn,
|
|
2591
|
+
VRow: Un,
|
|
2592
|
+
VSelect: Gn,
|
|
2593
|
+
VSwitch: Yn,
|
|
2594
|
+
VTextField: Zn,
|
|
2595
|
+
VTextarea: Qn,
|
|
2596
|
+
VTimePicker: Jn
|
|
2597
|
+
}, Symbol.toStringTag, { value: "Module" })), na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2596
2598
|
__proto__: null
|
|
2597
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2599
|
+
}, Symbol.toStringTag, { value: "Module" })), oa = {
|
|
2598
2600
|
install: (e, t) => {
|
|
2599
2601
|
var n, l;
|
|
2600
|
-
e.use(
|
|
2602
|
+
e.use(mo), e.provide(ct, t != null ? t : {}), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(wl).map(([a, i]) => e.component(a, i)), (l = t == null ? void 0 : t.registerVuetifyComponents) != null && l && Object.entries(kl).map(([a, i]) => e.component(a, i));
|
|
2601
2603
|
}
|
|
2602
2604
|
};
|
|
2603
2605
|
export {
|
|
2604
2606
|
_e as Action,
|
|
2605
2607
|
Y as ActionDisplayStyle,
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2608
|
+
qo as DateTimeLocaleConfig,
|
|
2609
|
+
ol as DfActions,
|
|
2610
|
+
ll as DfCheckbox,
|
|
2611
|
+
al as DfColor,
|
|
2612
|
+
rl as DfDateTime,
|
|
2613
|
+
il as DfFile,
|
|
2614
|
+
sl as DfInput,
|
|
2615
|
+
na as DfInputComponentProps,
|
|
2616
|
+
wl as DfInputComponents,
|
|
2615
2617
|
J as DfInputHint,
|
|
2616
2618
|
ce as DfLabel,
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2619
|
+
fl as DfRtfEditor,
|
|
2620
|
+
gl as DfSelect,
|
|
2621
|
+
yl as DfTextArea,
|
|
2622
|
+
oa as DynamicFormsInputs,
|
|
2621
2623
|
We as InputBase,
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2624
|
+
Go as Label,
|
|
2625
|
+
el as ResponsiveActionRenderOptions,
|
|
2626
|
+
Qo as ResponsiveRenderOptions,
|
|
2627
|
+
kl as VuetifyComponents,
|
|
2626
2628
|
Be as ckEditorLanguage,
|
|
2627
2629
|
ne as defaultBaseProps,
|
|
2628
2630
|
Je as defaultDisplayStyle,
|
|
2629
|
-
|
|
2631
|
+
Zo as getBreakpointName,
|
|
2630
2632
|
et as responsiveBreakpoints,
|
|
2631
|
-
|
|
2633
|
+
ta as setCkEditorLanguage,
|
|
2632
2634
|
F as translatableStrings,
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
+
ea as translateStrings,
|
|
2636
|
+
Jo as useBreakpoint,
|
|
2635
2637
|
Q as useInputBase,
|
|
2636
2638
|
ct as vuetifyInputsSettingsKey
|
|
2637
2639
|
};
|