@dynamicforms/vuetify-inputs 0.9.1 → 0.9.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.
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var It = Object.defineProperty, St = Object.defineProperties;
|
|
2
|
+
var Pt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var Et = Object.prototype.hasOwnProperty, At = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ae = (e, t, n) => t in e ? It(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, x = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
Et.call(t, n) && Ae(e, n, t[n]);
|
|
8
|
+
if (qe)
|
|
9
|
+
for (var n of qe(t))
|
|
10
|
+
At.call(t, n) && Ae(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, W = (e, t) =>
|
|
13
|
-
var ye = (e, t, n) =>
|
|
12
|
+
}, W = (e, t) => St(e, Pt(t));
|
|
13
|
+
var ye = (e, t, n) => Ae(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
14
|
var _e = (e, t, n) => new Promise((l, a) => {
|
|
15
|
-
var r = (
|
|
15
|
+
var r = (p) => {
|
|
16
16
|
try {
|
|
17
|
-
c(n.next(
|
|
17
|
+
c(n.next(p));
|
|
18
18
|
} catch (i) {
|
|
19
19
|
a(i);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, u = (p) => {
|
|
22
22
|
try {
|
|
23
|
-
c(n.throw(
|
|
23
|
+
c(n.throw(p));
|
|
24
24
|
} catch (i) {
|
|
25
25
|
a(i);
|
|
26
26
|
}
|
|
27
|
-
}, c = (
|
|
27
|
+
}, c = (p) => p.done ? l(p.value) : Promise.resolve(p.value).then(r, u);
|
|
28
28
|
c((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
31
|
-
import { defineComponent as K, useModel as
|
|
32
|
-
import { debounce as
|
|
33
|
-
import ve, { MessagesWidget as
|
|
30
|
+
import * as Ge from "vue";
|
|
31
|
+
import { defineComponent as K, useModel as $t, ref as R, watch as de, onMounted as lt, markRaw as Mt, onBeforeUnmount as at, openBlock as V, createBlock as F, resolveDynamicComponent as je, mergeModels as Ye, version as Rt, isRef as me, computed as g, unref as o, resolveComponent as N, createElementBlock as Y, normalizeClass as re, Fragment as Le, createCommentVNode as H, createTextVNode as Ft, toDisplayString as Oe, inject as $e, shallowRef as Lt, toRaw as Qe, nextTick as Ne, createSlots as Ue, withCtx as y, createVNode as I, renderSlot as pe, normalizeProps as ue, guardReactiveProps as ce, createElementVNode as fe, renderList as Nt, mergeProps as z, withModifiers as Ut, mergeDefaults as ie, normalizeStyle as rt, toRefs as Pe, withKeys as Ze, useCssVars as Ot } from "vue";
|
|
32
|
+
import { debounce as Wt, isString as ae, isEmpty as Te, isPlainObject as it, isObjectLike as Ht, isBoolean as Be, clone as zt, toNumber as Je, isNaN as et, isArray as tt, castArray as st, first as ut, isEqual as Kt, unionBy as Xt } from "lodash-es";
|
|
33
|
+
import ve, { MessagesWidget as qt, MdString as Gt, ValidationErrorRenderContent as Yt, Action as Qt, DisplayMode as Me } from "@dynamicforms/vue-forms";
|
|
34
34
|
import { CachedIcon as xe } 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
|
|
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
|
|
60
|
-
import { VTextField as
|
|
61
|
-
import { VTimePicker as
|
|
35
|
+
import Zt from "vue-markdown-render";
|
|
36
|
+
import { useDisplay as Jt } from "vuetify";
|
|
37
|
+
import { parse as en, format as we } from "date-fns";
|
|
38
|
+
import { AccessibilityHelp as tn, Alignment as nn, AutoImage as on, AutoLink as ln, Autosave as an, BalloonToolbar as rn, BlockQuote as sn, Bold as un, CloudServices as cn, Essentials as dn, GeneralHtmlSupport as mn, Heading as fn, HorizontalLine as vn, ImageBlock as pn, ImageCaption as hn, ImageInline as bn, ImageInsertViaUrl as gn, ImageResize as yn, ImageStyle as wn, ImageToolbar as kn, ImageUpload as Cn, Indent as Vn, IndentBlock as jn, Italic as Tn, Link as xn, List as _n, Autoformat as Bn, MediaEmbed as Dn, Paragraph as In, PasteFromMarkdownExperimental as Sn, PasteFromOffice as Pn, SelectAll as En, Style as An, Table as $n, TableCellProperties as Mn, TableColumnResize as Rn, TableProperties as Fn, TableToolbar as Ln, Undo as Nn, TextTransformation as Un, Base64UploadAdapter as On, ClassicEditor as Wn } from "ckeditor5";
|
|
39
|
+
import { VAutocomplete as Hn } from "vuetify/components/VAutocomplete";
|
|
40
|
+
import { VBtn as zn } from "vuetify/components/VBtn";
|
|
41
|
+
import { VCheckbox as Kn } from "vuetify/components/VCheckbox";
|
|
42
|
+
import { VChip as Xn } from "vuetify/components/VChip";
|
|
43
|
+
import { VCombobox as qn } from "vuetify/components/VCombobox";
|
|
44
|
+
import { VColorPicker as Gn } from "vuetify/components/VColorPicker";
|
|
45
|
+
import { VConfirmEdit as Yn } from "vuetify/components/VConfirmEdit";
|
|
46
|
+
import { VDatePicker as Qn } from "vuetify/components/VDatePicker";
|
|
47
|
+
import { VField as Zn } from "vuetify/components/VField";
|
|
48
|
+
import { VFileInput as Jn } from "vuetify/components/VFileInput";
|
|
49
|
+
import { VCol as eo, VRow as to } from "vuetify/components/VGrid";
|
|
50
|
+
import { VIcon as no } from "vuetify/components/VIcon";
|
|
51
|
+
import { VImg as oo } from "vuetify/components/VImg";
|
|
52
|
+
import { VInput as lo } from "vuetify/components/VInput";
|
|
53
|
+
import { VListItem as ao } from "vuetify/components/VList";
|
|
54
|
+
import { VMenu as ro } from "vuetify/components/VMenu";
|
|
55
|
+
import { VNumberInput as io } from "vuetify/components/VNumberInput";
|
|
56
|
+
import { VProgressLinear as so } from "vuetify/components/VProgressLinear";
|
|
57
|
+
import { VSelect as uo } from "vuetify/components/VSelect";
|
|
58
|
+
import { VSwitch as co } from "vuetify/components/VSwitch";
|
|
59
|
+
import { VTextarea as mo } from "vuetify/components/VTextarea";
|
|
60
|
+
import { VTextField as fo } from "vuetify/components/VTextField";
|
|
61
|
+
import { VTimePicker as vo } from "vuetify/components/VTimePicker";
|
|
62
62
|
new Array(256).fill("").map((e, t) => ("0" + t.toString(16)).slice(-2));
|
|
63
|
-
function
|
|
63
|
+
function We(e) {
|
|
64
64
|
return !!e && /^\d+\.\d+\.\d+/.test(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
if (!
|
|
66
|
+
function ct(e) {
|
|
67
|
+
if (!We(e))
|
|
68
68
|
throw new Error(`Invalid semantic version: ${e || "<blank>"}.`);
|
|
69
69
|
const [t, n, l] = e.split(".");
|
|
70
70
|
return {
|
|
@@ -73,25 +73,25 @@ function ut(e) {
|
|
|
73
73
|
patch: Number.parseInt(l, 10)
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function He(e) {
|
|
77
77
|
return e ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((t) => e.includes(t)) : !1;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function po(e) {
|
|
80
|
+
return We(e) || He(e);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function ho(e, t) {
|
|
83
83
|
const n = e.extraPlugins || [];
|
|
84
|
-
return W(
|
|
84
|
+
return W(x({}, e), {
|
|
85
85
|
extraPlugins: [
|
|
86
86
|
...n,
|
|
87
87
|
...t.filter((l) => !n.includes(l))
|
|
88
88
|
]
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
if (
|
|
91
|
+
function bo(e) {
|
|
92
|
+
if (He(e))
|
|
93
93
|
return 3;
|
|
94
|
-
const { major: t } =
|
|
94
|
+
const { major: t } = ct(e);
|
|
95
95
|
switch (!0) {
|
|
96
96
|
case t >= 44:
|
|
97
97
|
return 3;
|
|
@@ -101,19 +101,19 @@ function io(e) {
|
|
|
101
101
|
return 1;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function dt() {
|
|
105
105
|
const { CKEDITOR_VERSION: e, CKEDITOR: t } = window;
|
|
106
|
-
return
|
|
106
|
+
return po(e) ? {
|
|
107
107
|
source: t ? "cdn" : "npm",
|
|
108
108
|
version: e
|
|
109
109
|
} : null;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
const e =
|
|
113
|
-
return e ?
|
|
111
|
+
function go() {
|
|
112
|
+
const e = dt();
|
|
113
|
+
return e ? bo(e.version) : null;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
switch (t || (t =
|
|
115
|
+
function mt(e, t) {
|
|
116
|
+
switch (t || (t = go() || void 0), t) {
|
|
117
117
|
case 1:
|
|
118
118
|
case 2:
|
|
119
119
|
return e === void 0;
|
|
@@ -123,58 +123,58 @@ function dt(e, t) {
|
|
|
123
123
|
return !1;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function yo(e, t) {
|
|
127
127
|
return function(l) {
|
|
128
|
-
|
|
128
|
+
mt(l.config.get("licenseKey")) || l.on("collectUsageData", (a, { setUsageData: r }) => {
|
|
129
129
|
r(`integration.${e}`, t);
|
|
130
130
|
});
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const wo = yo(
|
|
134
134
|
"vue",
|
|
135
135
|
{
|
|
136
136
|
version: "7.4.0",
|
|
137
|
-
frameworkVersion:
|
|
137
|
+
frameworkVersion: Rt
|
|
138
138
|
}
|
|
139
139
|
);
|
|
140
|
-
function
|
|
141
|
-
return
|
|
140
|
+
function ko(e) {
|
|
141
|
+
return mt(e.licenseKey) ? e : ho(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
|
+
wo
|
|
148
148
|
]);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Co(e, t) {
|
|
151
151
|
var n;
|
|
152
|
-
if (
|
|
153
|
-
const l = W(
|
|
154
|
-
roots: W(
|
|
155
|
-
main: W(
|
|
152
|
+
if (ft()) {
|
|
153
|
+
const l = W(x({}, e), {
|
|
154
|
+
roots: W(x({}, e.roots), {
|
|
155
|
+
main: W(x(x({}, 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 W(
|
|
162
|
+
return W(x({}, e), {
|
|
163
163
|
initialData: t
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function Vo(e) {
|
|
167
167
|
var t, n;
|
|
168
|
-
return
|
|
168
|
+
return ft() ? (n = (t = e.roots) == null ? void 0 : t.main) == null ? void 0 : n.initialData : e.initialData;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
const e =
|
|
172
|
-
return e ? !
|
|
170
|
+
function ft() {
|
|
171
|
+
const e = dt();
|
|
172
|
+
return e ? !We(e.version) || He(e.version) || ct(e.version).major >= 48 : !1;
|
|
173
173
|
}
|
|
174
|
-
const
|
|
174
|
+
const Re = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", jo = 300, To = /* @__PURE__ */ K({
|
|
175
175
|
name: "CKEditor",
|
|
176
176
|
__name: "ckeditor",
|
|
177
|
-
props: /* @__PURE__ */
|
|
177
|
+
props: /* @__PURE__ */ Ye({
|
|
178
178
|
editor: {},
|
|
179
179
|
config: { default: () => ({}) },
|
|
180
180
|
tagName: { default: "div" },
|
|
@@ -184,72 +184,72 @@ const Me = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", po = 300, ho =
|
|
|
184
184
|
modelValue: { type: String, default: "" },
|
|
185
185
|
modelModifiers: {}
|
|
186
186
|
}),
|
|
187
|
-
emits: /* @__PURE__ */
|
|
187
|
+
emits: /* @__PURE__ */ Ye(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
|
|
188
188
|
setup(e, { expose: t, emit: n }) {
|
|
189
|
-
const l =
|
|
189
|
+
const l = $t(e, "modelValue"), a = e, r = n, u = R(), c = R(), p = R();
|
|
190
190
|
t({
|
|
191
191
|
instance: c,
|
|
192
|
-
lastEditorData:
|
|
193
|
-
}),
|
|
194
|
-
c.value &&
|
|
195
|
-
}),
|
|
196
|
-
|
|
192
|
+
lastEditorData: p
|
|
193
|
+
}), de(l, (s) => {
|
|
194
|
+
c.value && s !== p.value && c.value.data.set(s);
|
|
195
|
+
}), de(() => a.disabled, (s) => {
|
|
196
|
+
s ? c.value.enableReadOnlyMode(Re) : c.value.disableReadOnlyMode(Re);
|
|
197
197
|
});
|
|
198
198
|
function i() {
|
|
199
|
-
const
|
|
200
|
-
if (!
|
|
199
|
+
const s = window.CKEDITOR_VERSION;
|
|
200
|
+
if (!s)
|
|
201
201
|
return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
|
|
202
|
-
const [C] =
|
|
203
|
-
C >= 42 ||
|
|
202
|
+
const [C] = s.split(".").map(Number);
|
|
203
|
+
C >= 42 || s.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
204
204
|
}
|
|
205
|
-
function f(
|
|
206
|
-
const C =
|
|
205
|
+
function f(s) {
|
|
206
|
+
const C = Wt((_) => {
|
|
207
207
|
if (a.disableTwoWayDataBinding)
|
|
208
208
|
return;
|
|
209
|
-
const
|
|
210
|
-
r("update:modelValue",
|
|
211
|
-
},
|
|
212
|
-
|
|
213
|
-
r("focus",
|
|
214
|
-
}),
|
|
215
|
-
r("blur",
|
|
209
|
+
const h = p.value = s.data.get();
|
|
210
|
+
r("update:modelValue", h, _, s), r("input", h, _, s);
|
|
211
|
+
}, jo, { leading: !0 });
|
|
212
|
+
s.model.document.on("change:data", C), s.editing.view.document.on("focus", (_) => {
|
|
213
|
+
r("focus", _, s);
|
|
214
|
+
}), s.editing.view.document.on("blur", (_) => {
|
|
215
|
+
r("blur", _, s);
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
return i(), lt(() => {
|
|
219
|
-
let
|
|
219
|
+
let s = ko(
|
|
220
220
|
Object.assign({}, a.config)
|
|
221
221
|
);
|
|
222
|
-
l.value && (
|
|
223
|
-
c.value =
|
|
222
|
+
l.value && (s = Co(s, l.value)), a.editor.create(u.value, s).then((C) => {
|
|
223
|
+
c.value = Mt(C), f(C), l.value !== Vo(s) && C.data.set(l.value), a.disabled && C.enableReadOnlyMode(Re), r("ready", C);
|
|
224
224
|
}).catch((C) => {
|
|
225
225
|
console.error(C);
|
|
226
226
|
});
|
|
227
227
|
}), at(() => {
|
|
228
228
|
c.value && (c.value.destroy(), c.value = void 0), r("destroy");
|
|
229
|
-
}), (
|
|
229
|
+
}), (s, C) => (V(), F(je(e.tagName), {
|
|
230
230
|
ref_key: "element",
|
|
231
|
-
ref:
|
|
231
|
+
ref: u
|
|
232
232
|
}, null, 512));
|
|
233
233
|
}
|
|
234
234
|
});
|
|
235
|
-
if (!
|
|
235
|
+
if (!Ge.version || !Ge.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 xo = {
|
|
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", To);
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
function
|
|
249
|
+
function _o(e) {
|
|
250
250
|
return e.one !== void 0;
|
|
251
251
|
}
|
|
252
|
-
const
|
|
252
|
+
const Bo = {
|
|
253
253
|
lessThanXSeconds: {
|
|
254
254
|
present: {
|
|
255
255
|
one: "manj kot {{count}} sekunda",
|
|
@@ -526,7 +526,7 @@ const yo = {
|
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
|
-
function
|
|
529
|
+
function Do(e) {
|
|
530
530
|
switch (e % 100) {
|
|
531
531
|
case 1:
|
|
532
532
|
return "one";
|
|
@@ -539,15 +539,15 @@ function wo(e) {
|
|
|
539
539
|
return "other";
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
const
|
|
542
|
+
const Io = (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 r =
|
|
545
|
+
const r = Bo[e];
|
|
546
546
|
if (typeof r == "string")
|
|
547
547
|
l += r;
|
|
548
548
|
else {
|
|
549
|
-
const
|
|
550
|
-
|
|
549
|
+
const u = Do(t);
|
|
550
|
+
_o(r) ? l += r[u].replace("{{count}}", String(t)) : l += r[a][u].replace("{{count}}", String(t));
|
|
551
551
|
}
|
|
552
552
|
return l;
|
|
553
553
|
};
|
|
@@ -557,35 +557,35 @@ function Fe(e) {
|
|
|
557
557
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
558
558
|
};
|
|
559
559
|
}
|
|
560
|
-
const
|
|
560
|
+
const So = {
|
|
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
|
+
}, Po = {
|
|
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
|
+
}, Eo = {
|
|
571
571
|
full: "{{date}} {{time}}",
|
|
572
572
|
long: "{{date}} {{time}}",
|
|
573
573
|
medium: "{{date}} {{time}}",
|
|
574
574
|
short: "{{date}} {{time}}"
|
|
575
|
-
},
|
|
575
|
+
}, Ao = {
|
|
576
576
|
date: Fe({
|
|
577
|
-
formats:
|
|
577
|
+
formats: So,
|
|
578
578
|
defaultWidth: "full"
|
|
579
579
|
}),
|
|
580
580
|
time: Fe({
|
|
581
|
-
formats:
|
|
581
|
+
formats: Po,
|
|
582
582
|
defaultWidth: "full"
|
|
583
583
|
}),
|
|
584
584
|
dateTime: Fe({
|
|
585
|
-
formats:
|
|
585
|
+
formats: Eo,
|
|
586
586
|
defaultWidth: "full"
|
|
587
587
|
})
|
|
588
|
-
},
|
|
588
|
+
}, $o = {
|
|
589
589
|
lastWeek: (e) => {
|
|
590
590
|
switch (e.getDay()) {
|
|
591
591
|
case 0:
|
|
@@ -614,8 +614,8 @@ const Co = {
|
|
|
614
614
|
}
|
|
615
615
|
},
|
|
616
616
|
other: "P"
|
|
617
|
-
},
|
|
618
|
-
const a =
|
|
617
|
+
}, Mo = (e, t, n, l) => {
|
|
618
|
+
const a = $o[e];
|
|
619
619
|
return typeof a == "function" ? a(t) : a;
|
|
620
620
|
};
|
|
621
621
|
function ke(e) {
|
|
@@ -623,25 +623,25 @@ function ke(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
|
|
627
|
-
a = e.formattingValues[c] || e.formattingValues[
|
|
626
|
+
const u = e.defaultFormattingWidth || e.defaultWidth, c = n != null && n.width ? String(n.width) : u;
|
|
627
|
+
a = e.formattingValues[c] || e.formattingValues[u];
|
|
628
628
|
} else {
|
|
629
|
-
const
|
|
630
|
-
a = e.values[c] || e.values[
|
|
629
|
+
const u = e.defaultWidth, c = n != null && n.width ? String(n.width) : e.defaultWidth;
|
|
630
|
+
a = e.values[c] || e.values[u];
|
|
631
631
|
}
|
|
632
632
|
const r = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
633
633
|
return a[r];
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
const
|
|
636
|
+
const Ro = {
|
|
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
|
+
}, Fo = {
|
|
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
|
+
}, Lo = {
|
|
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 Bo = {
|
|
|
671
671
|
"november",
|
|
672
672
|
"december"
|
|
673
673
|
]
|
|
674
|
-
},
|
|
674
|
+
}, No = {
|
|
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 Bo = {
|
|
|
684
684
|
"petek",
|
|
685
685
|
"sobota"
|
|
686
686
|
]
|
|
687
|
-
},
|
|
687
|
+
}, Uo = {
|
|
688
688
|
narrow: {
|
|
689
689
|
am: "d",
|
|
690
690
|
pm: "p",
|
|
@@ -715,7 +715,7 @@ const Bo = {
|
|
|
715
715
|
evening: "večer",
|
|
716
716
|
night: "noč"
|
|
717
717
|
}
|
|
718
|
-
},
|
|
718
|
+
}, Oo = {
|
|
719
719
|
narrow: {
|
|
720
720
|
am: "d",
|
|
721
721
|
pm: "p",
|
|
@@ -746,29 +746,29 @@ const Bo = {
|
|
|
746
746
|
evening: "zvečer",
|
|
747
747
|
night: "ponoči"
|
|
748
748
|
}
|
|
749
|
-
},
|
|
750
|
-
ordinalNumber:
|
|
749
|
+
}, Wo = (e, t) => Number(e) + ".", Ho = {
|
|
750
|
+
ordinalNumber: Wo,
|
|
751
751
|
era: ke({
|
|
752
|
-
values:
|
|
752
|
+
values: Ro,
|
|
753
753
|
defaultWidth: "wide"
|
|
754
754
|
}),
|
|
755
755
|
quarter: ke({
|
|
756
|
-
values:
|
|
756
|
+
values: Fo,
|
|
757
757
|
defaultWidth: "wide",
|
|
758
758
|
argumentCallback: (e) => e - 1
|
|
759
759
|
}),
|
|
760
760
|
month: ke({
|
|
761
|
-
values:
|
|
761
|
+
values: Lo,
|
|
762
762
|
defaultWidth: "wide"
|
|
763
763
|
}),
|
|
764
764
|
day: ke({
|
|
765
|
-
values:
|
|
765
|
+
values: No,
|
|
766
766
|
defaultWidth: "wide"
|
|
767
767
|
}),
|
|
768
768
|
dayPeriod: ke({
|
|
769
|
-
values:
|
|
769
|
+
values: Uo,
|
|
770
770
|
defaultWidth: "wide",
|
|
771
|
-
formattingValues:
|
|
771
|
+
formattingValues: Oo,
|
|
772
772
|
defaultFormattingWidth: "wide"
|
|
773
773
|
})
|
|
774
774
|
};
|
|
@@ -777,57 +777,57 @@ function Ce(e) {
|
|
|
777
777
|
const l = n.width, a = l && e.matchPatterns[l] || e.matchPatterns[e.defaultMatchWidth], r = t.match(a);
|
|
778
778
|
if (!r)
|
|
779
779
|
return null;
|
|
780
|
-
const
|
|
780
|
+
const u = r[0], c = l && e.parsePatterns[l] || e.parsePatterns[e.defaultParseWidth], p = Array.isArray(c) ? Ko(c, (s) => s.test(u)) : (
|
|
781
781
|
// [TODO] -- I challenge you to fix the type
|
|
782
|
-
|
|
782
|
+
zo(c, (s) => s.test(u))
|
|
783
783
|
);
|
|
784
784
|
let i;
|
|
785
|
-
i = e.valueCallback ? e.valueCallback(
|
|
785
|
+
i = e.valueCallback ? e.valueCallback(p) : p, i = n.valueCallback ? (
|
|
786
786
|
// [TODO] -- I challenge you to fix the type
|
|
787
787
|
n.valueCallback(i)
|
|
788
788
|
) : i;
|
|
789
|
-
const f = t.slice(
|
|
789
|
+
const f = t.slice(u.length);
|
|
790
790
|
return { value: i, rest: f };
|
|
791
791
|
};
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function zo(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 Ko(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 Xo(e) {
|
|
804
804
|
return (t, n = {}) => {
|
|
805
805
|
const l = t.match(e.matchPattern);
|
|
806
806
|
if (!l) return null;
|
|
807
807
|
const a = l[0], r = t.match(e.parsePattern);
|
|
808
808
|
if (!r) return null;
|
|
809
|
-
let
|
|
810
|
-
|
|
809
|
+
let u = e.valueCallback ? e.valueCallback(r[0]) : r[0];
|
|
810
|
+
u = n.valueCallback ? n.valueCallback(u) : u;
|
|
811
811
|
const c = t.slice(a.length);
|
|
812
|
-
return { value:
|
|
812
|
+
return { value: u, rest: c };
|
|
813
813
|
};
|
|
814
814
|
}
|
|
815
|
-
const
|
|
815
|
+
const qo = /^(\d+)\./i, Go = /\d+/i, Yo = {
|
|
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
|
-
},
|
|
818
|
+
}, Qo = {
|
|
819
819
|
any: [/^pr/i, /^(po|na[sš]em)/i]
|
|
820
|
-
},
|
|
820
|
+
}, Zo = {
|
|
821
821
|
narrow: /^[1234]/i,
|
|
822
822
|
abbreviated: /^[1234]\.\s?[čc]et\.?/i,
|
|
823
823
|
wide: /^[1234]\. [čc]etrtletje/i
|
|
824
|
-
},
|
|
824
|
+
}, Jo = {
|
|
825
825
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
826
|
-
},
|
|
826
|
+
}, el = {
|
|
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
|
+
}, tl = {
|
|
831
831
|
narrow: [
|
|
832
832
|
/^j/i,
|
|
833
833
|
/^f/i,
|
|
@@ -870,18 +870,18 @@ const Lo = /^(\d+)\./i, No = /\d+/i, Uo = {
|
|
|
870
870
|
/^n/i,
|
|
871
871
|
/^d/i
|
|
872
872
|
]
|
|
873
|
-
},
|
|
873
|
+
}, nl = {
|
|
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
|
+
}, ol = {
|
|
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
|
+
}, ll = {
|
|
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
|
+
}, al = {
|
|
885
885
|
narrow: {
|
|
886
886
|
am: /^d/i,
|
|
887
887
|
pm: /^p/i,
|
|
@@ -902,60 +902,60 @@ const Lo = /^(\d+)\./i, No = /\d+/i, Uo = {
|
|
|
902
902
|
evening: /^z?ve/i,
|
|
903
903
|
night: /(po)?no/i
|
|
904
904
|
}
|
|
905
|
-
},
|
|
906
|
-
ordinalNumber:
|
|
907
|
-
matchPattern:
|
|
908
|
-
parsePattern:
|
|
905
|
+
}, rl = {
|
|
906
|
+
ordinalNumber: Xo({
|
|
907
|
+
matchPattern: qo,
|
|
908
|
+
parsePattern: Go,
|
|
909
909
|
valueCallback: (e) => parseInt(e, 10)
|
|
910
910
|
}),
|
|
911
911
|
era: Ce({
|
|
912
|
-
matchPatterns:
|
|
912
|
+
matchPatterns: Yo,
|
|
913
913
|
defaultMatchWidth: "wide",
|
|
914
|
-
parsePatterns:
|
|
914
|
+
parsePatterns: Qo,
|
|
915
915
|
defaultParseWidth: "any"
|
|
916
916
|
}),
|
|
917
917
|
quarter: Ce({
|
|
918
|
-
matchPatterns:
|
|
918
|
+
matchPatterns: Zo,
|
|
919
919
|
defaultMatchWidth: "wide",
|
|
920
|
-
parsePatterns:
|
|
920
|
+
parsePatterns: Jo,
|
|
921
921
|
defaultParseWidth: "any",
|
|
922
922
|
valueCallback: (e) => e + 1
|
|
923
923
|
}),
|
|
924
924
|
month: Ce({
|
|
925
|
-
matchPatterns:
|
|
925
|
+
matchPatterns: el,
|
|
926
926
|
defaultMatchWidth: "wide",
|
|
927
|
-
parsePatterns:
|
|
927
|
+
parsePatterns: tl,
|
|
928
928
|
defaultParseWidth: "wide"
|
|
929
929
|
}),
|
|
930
930
|
day: Ce({
|
|
931
|
-
matchPatterns:
|
|
931
|
+
matchPatterns: nl,
|
|
932
932
|
defaultMatchWidth: "wide",
|
|
933
|
-
parsePatterns:
|
|
933
|
+
parsePatterns: ol,
|
|
934
934
|
defaultParseWidth: "any"
|
|
935
935
|
}),
|
|
936
936
|
dayPeriod: Ce({
|
|
937
|
-
matchPatterns:
|
|
937
|
+
matchPatterns: ll,
|
|
938
938
|
defaultMatchWidth: "any",
|
|
939
|
-
parsePatterns:
|
|
939
|
+
parsePatterns: al,
|
|
940
940
|
defaultParseWidth: "any"
|
|
941
941
|
})
|
|
942
|
-
},
|
|
942
|
+
}, il = {
|
|
943
943
|
code: "sl",
|
|
944
|
-
formatDistance:
|
|
945
|
-
formatLong:
|
|
946
|
-
formatRelative:
|
|
947
|
-
localize:
|
|
948
|
-
match:
|
|
944
|
+
formatDistance: Io,
|
|
945
|
+
formatLong: Ao,
|
|
946
|
+
formatRelative: Mo,
|
|
947
|
+
localize: Ho,
|
|
948
|
+
match: rl,
|
|
949
949
|
options: {
|
|
950
950
|
weekStartsOn: 1,
|
|
951
951
|
firstWeekContainsDate: 1
|
|
952
952
|
}
|
|
953
|
-
},
|
|
954
|
-
dateTimeLocale:
|
|
953
|
+
}, sl = {
|
|
954
|
+
dateTimeLocale: R(il),
|
|
955
955
|
setDateTimeLocale(e) {
|
|
956
|
-
|
|
956
|
+
me(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
|
|
957
957
|
}
|
|
958
|
-
},
|
|
958
|
+
}, te = /* @__PURE__ */ K({
|
|
959
959
|
__name: "df-input-hint",
|
|
960
960
|
props: {
|
|
961
961
|
errors: { default: "" },
|
|
@@ -964,13 +964,13 @@ const Lo = /^(\d+)\./i, No = /\d+/i, Uo = {
|
|
|
964
964
|
messageClasses: { default: "" }
|
|
965
965
|
},
|
|
966
966
|
setup(e) {
|
|
967
|
-
const t = e, n =
|
|
968
|
-
return (r,
|
|
967
|
+
const t = e, n = g(() => t.errors ? typeof t.errors == "string" ? t.errors.trim().length > 0 : t.errors.length > 0 : !1), l = g(() => n.value ? t.errors : t.message), a = g(() => n.value ? t.errorClasses : t.messageClasses);
|
|
968
|
+
return (r, u) => (V(), F(o(qt), {
|
|
969
969
|
message: l.value,
|
|
970
970
|
classes: a.value
|
|
971
971
|
}, null, 8, ["message", "classes"]));
|
|
972
972
|
}
|
|
973
|
-
}),
|
|
973
|
+
}), ne = /* @__PURE__ */ K({
|
|
974
974
|
__name: "df-label",
|
|
975
975
|
props: {
|
|
976
976
|
data: {},
|
|
@@ -978,40 +978,40 @@ const Lo = /^(\d+)\./i, No = /\d+/i, Uo = {
|
|
|
978
978
|
allowWrap: { type: Boolean }
|
|
979
979
|
},
|
|
980
980
|
setup(e) {
|
|
981
|
-
const t = e, n =
|
|
981
|
+
const t = e, n = g(() => t.data ? t.data.label : t.label.text);
|
|
982
982
|
return (l, a) => {
|
|
983
983
|
const r = N("v-img");
|
|
984
984
|
return V(), Y("div", {
|
|
985
|
-
class:
|
|
985
|
+
class: re(["df-label", { "allow-wrap": e.allowWrap }])
|
|
986
986
|
}, [
|
|
987
|
-
e.label.icon ? (V(), Y(
|
|
988
|
-
e.label.iconComponent === "v-icon" ? (V(),
|
|
987
|
+
e.label.icon ? (V(), Y(Le, { key: 0 }, [
|
|
988
|
+
e.label.iconComponent === "v-icon" ? (V(), F(o(xe), {
|
|
989
989
|
key: 0,
|
|
990
990
|
name: e.label.icon,
|
|
991
991
|
size: "1.25em"
|
|
992
|
-
}, null, 8, ["name"])) : e.label.iconComponent === "v-img" ? (V(),
|
|
992
|
+
}, null, 8, ["name"])) : e.label.iconComponent === "v-img" ? (V(), F(r, {
|
|
993
993
|
key: 1,
|
|
994
994
|
class: "icon",
|
|
995
995
|
src: e.label.icon
|
|
996
|
-
}, null, 8, ["src"])) : (V(),
|
|
996
|
+
}, null, 8, ["src"])) : (V(), F(je(e.label.iconComponent), {
|
|
997
997
|
key: 2,
|
|
998
998
|
src: e.label.icon
|
|
999
999
|
}, null, 8, ["src"]))
|
|
1000
1000
|
], 64)) : H("", !0),
|
|
1001
|
-
n.value instanceof o(
|
|
1001
|
+
n.value instanceof o(Gt) ? (V(), F(o(Zt), {
|
|
1002
1002
|
key: 1,
|
|
1003
1003
|
class: "markdown",
|
|
1004
1004
|
source: n.value.toString(),
|
|
1005
1005
|
options: n.value.options,
|
|
1006
1006
|
plugins: n.value.plugins
|
|
1007
|
-
}, null, 8, ["source", "options", "plugins"])) : (V(), Y(
|
|
1008
|
-
|
|
1007
|
+
}, null, 8, ["source", "options", "plugins"])) : (V(), Y(Le, { key: 2 }, [
|
|
1008
|
+
Ft(Oe(n.value), 1)
|
|
1009
1009
|
], 64))
|
|
1010
1010
|
], 2);
|
|
1011
1011
|
};
|
|
1012
1012
|
}
|
|
1013
|
-
}),
|
|
1014
|
-
class
|
|
1013
|
+
}), vt = /* @__PURE__ */ Symbol("vuetifyInputsSettingsKey");
|
|
1014
|
+
class ul {
|
|
1015
1015
|
constructor(t, n, l = "v-icon") {
|
|
1016
1016
|
ye(this, "text");
|
|
1017
1017
|
ye(this, "icon");
|
|
@@ -1019,92 +1019,92 @@ class el {
|
|
|
1019
1019
|
this.text = t, this.icon = n, this.iconComponent = l;
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
|
-
const
|
|
1023
|
-
function
|
|
1024
|
-
const n =
|
|
1022
|
+
const se = { enabled: void 0, clearable: !0 };
|
|
1023
|
+
function oe(e, t) {
|
|
1024
|
+
const n = $e(vt, {}), l = $e("field-density", null), a = $e("field-variant", null), r = R(null), u = Lt(null), c = g({
|
|
1025
1025
|
get() {
|
|
1026
|
-
return
|
|
1026
|
+
return u.value ? u.value.value : e.control ? e.control.value : e.modelValue === void 0 ? r.value : e.modelValue;
|
|
1027
1027
|
},
|
|
1028
|
-
set(
|
|
1028
|
+
set(b) {
|
|
1029
1029
|
try {
|
|
1030
|
-
e.control && (e.control.value =
|
|
1030
|
+
e.control && (e.control.value = b);
|
|
1031
1031
|
} finally {
|
|
1032
|
-
e.control && !Object.is(
|
|
1033
|
-
|
|
1032
|
+
e.control && !Object.is(Qe(e.control.value), Qe(b)) && (u.value = { value: b }, Ne(() => {
|
|
1033
|
+
u.value = null;
|
|
1034
1034
|
}));
|
|
1035
1035
|
}
|
|
1036
|
-
e.modelValue === void 0 && (r.value =
|
|
1036
|
+
e.modelValue === void 0 && (r.value = b), t("update:modelValue", e.control ? e.control.value : b);
|
|
1037
1037
|
}
|
|
1038
1038
|
});
|
|
1039
1039
|
if (e.control && !(e.control instanceof ve.FieldBase))
|
|
1040
1040
|
throw new Error("control prop is not a vue-form control instance");
|
|
1041
|
-
const
|
|
1041
|
+
const p = g({
|
|
1042
1042
|
get() {
|
|
1043
1043
|
return e.control.touched;
|
|
1044
1044
|
},
|
|
1045
|
-
set(
|
|
1046
|
-
e.control.touched =
|
|
1045
|
+
set(b) {
|
|
1046
|
+
e.control.touched = b;
|
|
1047
1047
|
}
|
|
1048
|
-
}), i = e.control ?
|
|
1049
|
-
() => e.control ? e.control.errors : (e.errors || []).map((
|
|
1050
|
-
), C =
|
|
1048
|
+
}), i = e.control ? p : R(!1), f = g(() => e.control ? e.control.valid : !0), s = g(
|
|
1049
|
+
() => e.control ? e.control.errors : (e.errors || []).map((b) => new Yt(b))
|
|
1050
|
+
), C = g(() => i.value && s.value.length > 0 ? " " : void 0), _ = g(() => i.value ? s.value : void 0), h = g(() => e.control ? e.control.effectiveEnabled : e.enabled !== !1), k = g(() => e.control ? e.control.visibility : e.visibility == null ? ve.DisplayMode.FULL : ve.DisplayMode.fromAny(e.visibility)), D = g(() => k.value !== ve.DisplayMode.SUPPRESS), S = g(() => ({
|
|
1051
1051
|
"d-none": k.value === ve.DisplayMode.HIDDEN,
|
|
1052
1052
|
invisible: k.value === ve.DisplayMode.INVISIBLE
|
|
1053
|
-
})), d =
|
|
1054
|
-
var
|
|
1055
|
-
return (j = (
|
|
1056
|
-
}), P =
|
|
1053
|
+
})), d = g(() => {
|
|
1054
|
+
var b, j;
|
|
1055
|
+
return (j = (b = e.control) == null ? void 0 : b.extra) != null ? j : {};
|
|
1056
|
+
}), P = g(() => {
|
|
1057
1057
|
var j;
|
|
1058
|
-
const
|
|
1059
|
-
return
|
|
1060
|
-
}), U =
|
|
1061
|
-
var
|
|
1062
|
-
return (j = (
|
|
1063
|
-
}), A =
|
|
1064
|
-
var
|
|
1065
|
-
return (j = (
|
|
1066
|
-
}), O =
|
|
1067
|
-
var
|
|
1068
|
-
return (j = (
|
|
1069
|
-
}), $ =
|
|
1070
|
-
var
|
|
1071
|
-
return (j = (
|
|
1072
|
-
}), v =
|
|
1058
|
+
const b = (j = e.label) != null ? j : d.value.label;
|
|
1059
|
+
return ae(b || "") ? new ul(b || "") : b;
|
|
1060
|
+
}), U = g(() => {
|
|
1061
|
+
var b, j;
|
|
1062
|
+
return (j = (b = e.placeholder) != null ? b : d.value.placeholder) != null ? j : "";
|
|
1063
|
+
}), A = g(() => {
|
|
1064
|
+
var b, j;
|
|
1065
|
+
return (j = (b = e.helpText) != null ? b : d.value.helpText) != null ? j : "";
|
|
1066
|
+
}), O = g(() => {
|
|
1067
|
+
var b, j;
|
|
1068
|
+
return (j = (b = e.hint) != null ? b : d.value.hint) != null ? j : "";
|
|
1069
|
+
}), $ = g(() => {
|
|
1070
|
+
var b, j;
|
|
1071
|
+
return (j = (b = e.cssClass) != null ? b : d.value.cssClass) != null ? j : "";
|
|
1072
|
+
}), v = g(
|
|
1073
1073
|
() => {
|
|
1074
|
-
var
|
|
1075
|
-
return (G = (X = (j = (
|
|
1074
|
+
var b, j, X, G;
|
|
1075
|
+
return (G = (X = (j = (b = e.density) != null ? b : d.value.density) != null ? j : l) != null ? X : n.defaultDensity) != null ? G : "default";
|
|
1076
1076
|
}
|
|
1077
|
-
), m =
|
|
1077
|
+
), m = g(() => v.value === "inline" ? "default" : v.value), M = g(
|
|
1078
1078
|
() => {
|
|
1079
|
-
var
|
|
1080
|
-
return (G = (X = (j = (
|
|
1079
|
+
var b, j, X, G;
|
|
1080
|
+
return (G = (X = (j = (b = e.variant) != null ? b : d.value.variant) != null ? j : a) != null ? X : n.defaultVariant) != null ? G : "underlined";
|
|
1081
1081
|
}
|
|
1082
1082
|
);
|
|
1083
1083
|
return {
|
|
1084
1084
|
value: c,
|
|
1085
1085
|
valid: f,
|
|
1086
|
-
enabled:
|
|
1087
|
-
errors:
|
|
1088
|
-
showErrors:
|
|
1086
|
+
enabled: h,
|
|
1087
|
+
errors: s,
|
|
1088
|
+
showErrors: _,
|
|
1089
1089
|
visibility: k,
|
|
1090
1090
|
isRendered: D,
|
|
1091
1091
|
visibilityClass: S,
|
|
1092
1092
|
label: P,
|
|
1093
1093
|
touched: i,
|
|
1094
1094
|
density: v,
|
|
1095
|
-
densityClass:
|
|
1096
|
-
vuetifyBindings:
|
|
1097
|
-
var
|
|
1098
|
-
return
|
|
1099
|
-
name: (
|
|
1095
|
+
densityClass: g(() => `df-density-${v.value}`),
|
|
1096
|
+
vuetifyBindings: g(() => {
|
|
1097
|
+
var b;
|
|
1098
|
+
return x({
|
|
1099
|
+
name: (b = e.control) == null ? void 0 : b.fieldName,
|
|
1100
1100
|
class: $.value,
|
|
1101
1101
|
density: m.value,
|
|
1102
1102
|
variant: M.value,
|
|
1103
1103
|
label: P.value.text,
|
|
1104
1104
|
errorMessages: C.value,
|
|
1105
1105
|
// 'error-count': errors?.value.length || 0,
|
|
1106
|
-
readonly: !
|
|
1107
|
-
disabled: !
|
|
1106
|
+
readonly: !h.value,
|
|
1107
|
+
disabled: !h.value,
|
|
1108
1108
|
placeholder: U.value,
|
|
1109
1109
|
"persistent-placeholder": !Te(U.value),
|
|
1110
1110
|
hint: O.value,
|
|
@@ -1117,7 +1117,7 @@ function te(e, t) {
|
|
|
1117
1117
|
})
|
|
1118
1118
|
};
|
|
1119
1119
|
}
|
|
1120
|
-
const
|
|
1120
|
+
const cl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, ze = /* @__PURE__ */ K({
|
|
1121
1121
|
__name: "input-base",
|
|
1122
1122
|
props: {
|
|
1123
1123
|
control: {},
|
|
@@ -1138,13 +1138,13 @@ const tl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @_
|
|
|
1138
1138
|
},
|
|
1139
1139
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
1140
1140
|
setup(e, { emit: t }) {
|
|
1141
|
-
const n = e, l = t, { isRendered: a, label: r, showErrors:
|
|
1142
|
-
function
|
|
1143
|
-
C.value =
|
|
1141
|
+
const n = e, l = t, { isRendered: a, label: r, showErrors: u, touched: c, value: p, visibilityClass: i, vuetifyBindings: f } = oe(n, l), s = g(() => !!(o(n.clearable) && o(p))), C = R(!1);
|
|
1142
|
+
function _(h) {
|
|
1143
|
+
C.value = h, h || (c.value = !0, l("blur"));
|
|
1144
1144
|
}
|
|
1145
|
-
return (
|
|
1145
|
+
return (h, k) => {
|
|
1146
1146
|
const D = N("v-field"), S = N("v-input");
|
|
1147
|
-
return o(a) ? (V(),
|
|
1147
|
+
return o(a) ? (V(), F(S, {
|
|
1148
1148
|
key: 0,
|
|
1149
1149
|
name: o(f).name,
|
|
1150
1150
|
density: o(f).density,
|
|
@@ -1152,12 +1152,12 @@ const tl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @_
|
|
|
1152
1152
|
"persistent-hint": o(f).persistentHint,
|
|
1153
1153
|
"hide-details": o(f).hideDetails,
|
|
1154
1154
|
"error-messages": o(f).errorMessages,
|
|
1155
|
-
class:
|
|
1156
|
-
},
|
|
1155
|
+
class: re([e.cssClass, o(i)])
|
|
1156
|
+
}, Ue({
|
|
1157
1157
|
message: y(({ message: d }) => [
|
|
1158
|
-
I(
|
|
1158
|
+
I(te, {
|
|
1159
1159
|
message: d,
|
|
1160
|
-
errors: o(
|
|
1160
|
+
errors: o(u)
|
|
1161
1161
|
}, null, 8, ["message", "errors"])
|
|
1162
1162
|
]),
|
|
1163
1163
|
default: y(() => [
|
|
@@ -1166,34 +1166,34 @@ const tl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @_
|
|
|
1166
1166
|
density: o(f).density,
|
|
1167
1167
|
label: o(f).label,
|
|
1168
1168
|
disabled: o(f).disabled,
|
|
1169
|
-
clearable:
|
|
1169
|
+
clearable: s.value,
|
|
1170
1170
|
"persistent-clear": !0,
|
|
1171
|
-
dirty: !!o(
|
|
1171
|
+
dirty: !!o(p) || !!o(f).placeholder,
|
|
1172
1172
|
active: C.value,
|
|
1173
1173
|
loading: e.loading,
|
|
1174
1174
|
"onClick:clear": k[0] || (k[0] = (d) => l("click:clear")),
|
|
1175
|
-
"onUpdate:focused": k[1] || (k[1] = (d) =>
|
|
1176
|
-
},
|
|
1175
|
+
"onUpdate:focused": k[1] || (k[1] = (d) => _(d))
|
|
1176
|
+
}, Ue({
|
|
1177
1177
|
label: y((d) => [
|
|
1178
|
-
I(
|
|
1178
|
+
I(ne, {
|
|
1179
1179
|
data: d,
|
|
1180
1180
|
label: o(r)
|
|
1181
1181
|
}, null, 8, ["data", "label"])
|
|
1182
1182
|
]),
|
|
1183
1183
|
default: y((d) => [
|
|
1184
|
-
|
|
1185
|
-
pe(
|
|
1184
|
+
fe("div", cl, [
|
|
1185
|
+
pe(h.$slots, "default", ue(ce(d)))
|
|
1186
1186
|
])
|
|
1187
1187
|
]),
|
|
1188
1188
|
loader: y((d) => [
|
|
1189
|
-
pe(
|
|
1189
|
+
pe(h.$slots, "loader", ue(ce(d)))
|
|
1190
1190
|
]),
|
|
1191
1191
|
_: 2
|
|
1192
1192
|
}, [
|
|
1193
|
-
|
|
1193
|
+
h.$slots["prepend-inner"] ? {
|
|
1194
1194
|
name: "prepend-inner",
|
|
1195
1195
|
fn: y((d) => [
|
|
1196
|
-
pe(
|
|
1196
|
+
pe(h.$slots, "prepend-inner", ue(ce(d)))
|
|
1197
1197
|
]),
|
|
1198
1198
|
key: "0"
|
|
1199
1199
|
} : void 0
|
|
@@ -1201,10 +1201,10 @@ const tl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @_
|
|
|
1201
1201
|
]),
|
|
1202
1202
|
_: 2
|
|
1203
1203
|
}, [
|
|
1204
|
-
|
|
1204
|
+
h.$slots.prepend ? {
|
|
1205
1205
|
name: "prepend",
|
|
1206
1206
|
fn: y((d) => [
|
|
1207
|
-
pe(
|
|
1207
|
+
pe(h.$slots, "prepend", ue(ce(d)))
|
|
1208
1208
|
]),
|
|
1209
1209
|
key: "0"
|
|
1210
1210
|
} : void 0
|
|
@@ -1240,9 +1240,9 @@ function aa(e) {
|
|
|
1240
1240
|
});
|
|
1241
1241
|
}
|
|
1242
1242
|
function ra(e, t) {
|
|
1243
|
-
|
|
1243
|
+
Ie.language = e, Ie.translations = t;
|
|
1244
1244
|
}
|
|
1245
|
-
const
|
|
1245
|
+
const Ie = {
|
|
1246
1246
|
language: "en",
|
|
1247
1247
|
translations: void 0
|
|
1248
1248
|
};
|
|
@@ -1266,7 +1266,7 @@ const nt = 0;
|
|
|
1266
1266
|
})(J || (J = {}));
|
|
1267
1267
|
Object.freeze(J);
|
|
1268
1268
|
const ot = ["xs", "sm", "md", "lg", "xl"];
|
|
1269
|
-
class
|
|
1269
|
+
class dl {
|
|
1270
1270
|
constructor(t) {
|
|
1271
1271
|
ye(this, "_value");
|
|
1272
1272
|
this._value = this.cleanBreakpoint(t, !0), t && ot.forEach((n) => {
|
|
@@ -1275,47 +1275,51 @@ class nl {
|
|
|
1275
1275
|
});
|
|
1276
1276
|
}
|
|
1277
1277
|
getOptionsForBreakpoint(t) {
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1278
|
+
var l, a;
|
|
1279
|
+
const n = (l = this.cleanBreakpoint(this._value)) != null ? l : {};
|
|
1280
|
+
for (const r of ot) {
|
|
1281
|
+
const u = (a = this._value[r]) != null ? a : {};
|
|
1282
|
+
for (const c of Object.keys(u)) {
|
|
1283
|
+
const p = u[c];
|
|
1284
|
+
p != null && (it(p) ? n[c] = x(x({}, n[c]), p) : n[c] = p);
|
|
1284
1285
|
}
|
|
1285
|
-
if (
|
|
1286
|
+
if (r === t) break;
|
|
1286
1287
|
}
|
|
1287
1288
|
return n;
|
|
1288
1289
|
}
|
|
1289
1290
|
}
|
|
1290
|
-
function
|
|
1291
|
+
function ml(e) {
|
|
1291
1292
|
return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
|
|
1292
1293
|
}
|
|
1293
|
-
function
|
|
1294
|
-
const e =
|
|
1295
|
-
return
|
|
1294
|
+
function fl() {
|
|
1295
|
+
const e = Jt();
|
|
1296
|
+
return g(() => ml(e));
|
|
1296
1297
|
}
|
|
1297
|
-
class
|
|
1298
|
+
class vl extends dl {
|
|
1298
1299
|
cleanBreakpoint(t, n = !1) {
|
|
1299
|
-
if ((!t ||
|
|
1300
|
+
if ((!t || !Ht(t)) && !n) return null;
|
|
1300
1301
|
const l = {};
|
|
1301
|
-
return n && (l.renderAs = J.BUTTON, l.showLabel = !0, l.showIcon = !0), t && (t.renderAs != null && (l.renderAs = J.fromAny(t.renderAs)),
|
|
1302
|
+
return n && (l.renderAs = J.BUTTON, l.showLabel = !0, l.showIcon = !0), t && (t.renderAs != null && (l.renderAs = J.fromAny(t.renderAs)), ae(t.label) && (l.label = t.label), ae(t.icon) && (l.icon = t.icon), Be(t.showLabel) && (l.showLabel = t.showLabel), Be(t.showIcon) && (l.showIcon = t.showIcon), ae(t.name) && (l.name = t.name), Be(t.defaultConfirm) && (l.defaultConfirm = t.defaultConfirm), Be(t.defaultReject) && (l.defaultReject = t.defaultReject), it(t.passthroughAttrs) && (l.passthroughAttrs = x({}, t.passthroughAttrs))), Object.keys(l).length ? l : null;
|
|
1302
1303
|
}
|
|
1303
1304
|
}
|
|
1304
|
-
function
|
|
1305
|
-
const l = new
|
|
1305
|
+
function pt(e, t) {
|
|
1306
|
+
const l = new vl(e).getOptionsForBreakpoint(t);
|
|
1306
1307
|
return {
|
|
1307
1308
|
name: l.name,
|
|
1308
1309
|
label: l.showLabel ? l.label : void 0,
|
|
1309
1310
|
icon: l.showIcon ? l.icon : void 0,
|
|
1310
1311
|
renderAs: l.renderAs,
|
|
1311
|
-
showLabel:
|
|
1312
|
-
showIcon:
|
|
1312
|
+
showLabel: ae(l.label) && !Te(l.label) ? l.showLabel : !1,
|
|
1313
|
+
showIcon: ae(l.icon) && !Te(l.icon) ? l.showIcon : !1,
|
|
1314
|
+
defaultConfirm: l.defaultConfirm,
|
|
1315
|
+
defaultReject: l.defaultReject,
|
|
1316
|
+
passthroughAttrs: l.passthroughAttrs
|
|
1313
1317
|
};
|
|
1314
1318
|
}
|
|
1315
|
-
class
|
|
1319
|
+
class De extends Qt {
|
|
1316
1320
|
/** @see getRenderOptionsForBreakpoint, which answers the same for the value of any `Action` */
|
|
1317
1321
|
getBreakpointValue(t) {
|
|
1318
|
-
return
|
|
1322
|
+
return g(() => pt(this.value, t.value));
|
|
1319
1323
|
}
|
|
1320
1324
|
/** @see ActionRenderOptions.name */
|
|
1321
1325
|
get name() {
|
|
@@ -1330,7 +1334,7 @@ class Be extends Ot {
|
|
|
1330
1334
|
}
|
|
1331
1335
|
/** @see ActionRenderOptions.showLabel */
|
|
1332
1336
|
get showLabel() {
|
|
1333
|
-
return
|
|
1337
|
+
return ae(this.value.label) && !Te(this.value.label) ? this.value.showLabel : !1;
|
|
1334
1338
|
}
|
|
1335
1339
|
/**
|
|
1336
1340
|
* The icon as this action renders it: the name where {@link ActionRenderOptions.showIcon} states it is shown,
|
|
@@ -1341,7 +1345,7 @@ class Be extends Ot {
|
|
|
1341
1345
|
}
|
|
1342
1346
|
/** @see ActionRenderOptions.showIcon */
|
|
1343
1347
|
get showIcon() {
|
|
1344
|
-
return
|
|
1348
|
+
return ae(this.value.icon) && !Te(this.value.icon) ? this.value.showIcon : !1;
|
|
1345
1349
|
}
|
|
1346
1350
|
/** @see ActionRenderOptions.renderAs */
|
|
1347
1351
|
get renderAs() {
|
|
@@ -1361,7 +1365,7 @@ class Be extends Ot {
|
|
|
1361
1365
|
}
|
|
1362
1366
|
static closeAction(t) {
|
|
1363
1367
|
var l;
|
|
1364
|
-
const n = W(
|
|
1368
|
+
const n = W(x({}, t != null ? t : {}), {
|
|
1365
1369
|
// any properties in data should overwrite properties in the constant
|
|
1366
1370
|
value: {
|
|
1367
1371
|
name: "close",
|
|
@@ -1372,11 +1376,11 @@ class Be extends Ot {
|
|
|
1372
1376
|
showIcon: !0
|
|
1373
1377
|
}
|
|
1374
1378
|
});
|
|
1375
|
-
return n.value =
|
|
1379
|
+
return n.value = x(x({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), new De(n);
|
|
1376
1380
|
}
|
|
1377
1381
|
static yesAction(t) {
|
|
1378
1382
|
var l;
|
|
1379
|
-
const n = W(
|
|
1383
|
+
const n = W(x({}, t != null ? t : {}), {
|
|
1380
1384
|
// any properties in data should overwrite properties in the constant
|
|
1381
1385
|
value: {
|
|
1382
1386
|
name: "yes",
|
|
@@ -1387,11 +1391,11 @@ class Be extends Ot {
|
|
|
1387
1391
|
showIcon: !0
|
|
1388
1392
|
}
|
|
1389
1393
|
});
|
|
1390
|
-
return n.value =
|
|
1394
|
+
return n.value = x(x({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), new De(n);
|
|
1391
1395
|
}
|
|
1392
1396
|
static noAction(t) {
|
|
1393
1397
|
var l;
|
|
1394
|
-
const n = W(
|
|
1398
|
+
const n = W(x({}, t != null ? t : {}), {
|
|
1395
1399
|
// any properties in data should overwrite properties in the constant
|
|
1396
1400
|
value: {
|
|
1397
1401
|
name: "no",
|
|
@@ -1402,13 +1406,13 @@ class Be extends Ot {
|
|
|
1402
1406
|
showIcon: !0
|
|
1403
1407
|
}
|
|
1404
1408
|
});
|
|
1405
|
-
return n.value =
|
|
1409
|
+
return n.value = x(x({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), new De(n);
|
|
1406
1410
|
}
|
|
1407
1411
|
}
|
|
1408
|
-
const
|
|
1412
|
+
const pl = {
|
|
1409
1413
|
key: 1,
|
|
1410
1414
|
style: { width: "0.5rem" }
|
|
1411
|
-
},
|
|
1415
|
+
}, hl = { key: 2 }, ht = /* @__PURE__ */ K({
|
|
1412
1416
|
__name: "df-actions",
|
|
1413
1417
|
props: {
|
|
1414
1418
|
actions: {},
|
|
@@ -1416,56 +1420,55 @@ const rl = {
|
|
|
1416
1420
|
showAsGroup: { default: "no" }
|
|
1417
1421
|
},
|
|
1418
1422
|
setup(e) {
|
|
1419
|
-
const t = e, n =
|
|
1420
|
-
() => l.value.map((
|
|
1421
|
-
action:
|
|
1422
|
-
|
|
1423
|
-
}, vt(s.value, n.value)))
|
|
1423
|
+
const t = e, n = fl(), l = g(() => o(t.actions).filter((u) => u.visibility !== Me.SUPPRESS)), a = g(
|
|
1424
|
+
() => l.value.map((u) => x({
|
|
1425
|
+
action: u
|
|
1426
|
+
}, pt(u.value, n.value)))
|
|
1424
1427
|
);
|
|
1425
|
-
function r(
|
|
1426
|
-
if (
|
|
1427
|
-
if (
|
|
1428
|
+
function r(u) {
|
|
1429
|
+
if (u.defaultConfirm) return "primary";
|
|
1430
|
+
if (u.defaultReject) return "secondary";
|
|
1428
1431
|
}
|
|
1429
|
-
return (
|
|
1430
|
-
const
|
|
1432
|
+
return (u, c) => {
|
|
1433
|
+
const p = N("v-btn");
|
|
1431
1434
|
return l.value.length > 0 ? (V(), Y("div", {
|
|
1432
1435
|
key: 0,
|
|
1433
|
-
class:
|
|
1436
|
+
class: re(["text-end df-actions", {
|
|
1434
1437
|
"button-group": e.showAsGroup === "grouped" || e.showAsGroup === "grouped-no-borders",
|
|
1435
1438
|
"with-border": e.showAsGroup === "grouped"
|
|
1436
1439
|
}])
|
|
1437
1440
|
}, [
|
|
1438
|
-
(V(!0), Y(
|
|
1441
|
+
(V(!0), Y(Le, null, Nt(a.value, (i, f) => (V(), F(p, z({
|
|
1439
1442
|
key: f,
|
|
1440
1443
|
variant: i.renderAs === o(J).BUTTON ? "tonal" : "text",
|
|
1441
|
-
color: r(i
|
|
1444
|
+
color: r(i),
|
|
1442
1445
|
disabled: !i.action.effectiveEnabled || i.action.busy,
|
|
1443
1446
|
loading: i.action.busy,
|
|
1444
1447
|
elevation: 0,
|
|
1445
1448
|
size: e.buttonSize,
|
|
1446
1449
|
class: {
|
|
1447
|
-
"d-none": i.action.visibility === o(
|
|
1448
|
-
invisible: i.action.visibility === o(
|
|
1450
|
+
"d-none": i.action.visibility === o(Me).HIDDEN,
|
|
1451
|
+
invisible: i.action.visibility === o(Me).INVISIBLE
|
|
1449
1452
|
}
|
|
1450
|
-
}, { ref_for: !0 }, i.
|
|
1451
|
-
onClick:
|
|
1453
|
+
}, { ref_for: !0 }, i.passthroughAttrs, {
|
|
1454
|
+
onClick: Ut((s) => i.action.execute(s), ["stop"])
|
|
1452
1455
|
}), {
|
|
1453
1456
|
default: y(() => [
|
|
1454
|
-
i.icon ? (V(),
|
|
1457
|
+
i.icon ? (V(), F(o(xe), {
|
|
1455
1458
|
key: 0,
|
|
1456
1459
|
name: i.icon
|
|
1457
1460
|
}, null, 8, ["name"])) : H("", !0),
|
|
1458
|
-
i.icon && i.label ? (V(), Y("span",
|
|
1459
|
-
i.label ? (V(), Y("span",
|
|
1461
|
+
i.icon && i.label ? (V(), Y("span", pl)) : H("", !0),
|
|
1462
|
+
i.label ? (V(), Y("span", hl, Oe(i.label), 1)) : H("", !0)
|
|
1460
1463
|
]),
|
|
1461
1464
|
_: 2
|
|
1462
1465
|
}, 1040, ["variant", "color", "disabled", "loading", "size", "class", "onClick"]))), 128))
|
|
1463
1466
|
], 2)) : H("", !0);
|
|
1464
1467
|
};
|
|
1465
1468
|
}
|
|
1466
|
-
}),
|
|
1469
|
+
}), bt = /* @__PURE__ */ K({
|
|
1467
1470
|
__name: "df-checkbox",
|
|
1468
|
-
props: /* @__PURE__ */
|
|
1471
|
+
props: /* @__PURE__ */ ie({
|
|
1469
1472
|
allowNull: { type: Boolean },
|
|
1470
1473
|
control: {},
|
|
1471
1474
|
modelValue: {},
|
|
@@ -1481,47 +1484,47 @@ const rl = {
|
|
|
1481
1484
|
passthroughAttrs: {},
|
|
1482
1485
|
density: {},
|
|
1483
1486
|
variant: {}
|
|
1484
|
-
}, W(
|
|
1487
|
+
}, W(x({}, se), { allowNull: !1 })),
|
|
1485
1488
|
emits: ["update:modelValue", "click:clear"],
|
|
1486
1489
|
setup(e, { emit: t }) {
|
|
1487
|
-
const n = e, l = t, { densityClass: a, isRendered: r, label:
|
|
1490
|
+
const n = e, l = t, { densityClass: a, isRendered: r, label: u, showErrors: c, touched: p, value: i, visibilityClass: f, vuetifyBindings: s } = oe(
|
|
1488
1491
|
n,
|
|
1489
1492
|
l
|
|
1490
|
-
), C =
|
|
1493
|
+
), C = g(() => n.allowNull && i.value == null), _ = g({
|
|
1491
1494
|
get() {
|
|
1492
1495
|
return i.value;
|
|
1493
1496
|
},
|
|
1494
1497
|
set() {
|
|
1495
1498
|
}
|
|
1496
1499
|
});
|
|
1497
|
-
function
|
|
1498
|
-
const k =
|
|
1500
|
+
function h() {
|
|
1501
|
+
const k = zt(i.value);
|
|
1499
1502
|
k === !0 ? i.value = n.allowNull ? null : !1 : i.value = k === !1;
|
|
1500
1503
|
}
|
|
1501
1504
|
return (k, D) => {
|
|
1502
1505
|
const S = N("v-checkbox");
|
|
1503
|
-
return o(r) ? (V(),
|
|
1506
|
+
return o(r) ? (V(), F(S, z({
|
|
1504
1507
|
key: 0,
|
|
1505
|
-
modelValue:
|
|
1506
|
-
"onUpdate:modelValue": D[0] || (D[0] = (d) =>
|
|
1508
|
+
modelValue: _.value,
|
|
1509
|
+
"onUpdate:modelValue": D[0] || (D[0] = (d) => _.value = d),
|
|
1507
1510
|
density: "compact",
|
|
1508
1511
|
class: [o(a), o(f)],
|
|
1509
1512
|
indeterminate: C.value,
|
|
1510
1513
|
"false-value": !1,
|
|
1511
1514
|
"true-value": !0
|
|
1512
|
-
}, o(
|
|
1513
|
-
onChange:
|
|
1514
|
-
onBlur: D[1] || (D[1] = (d) =>
|
|
1515
|
+
}, o(s), {
|
|
1516
|
+
onChange: h,
|
|
1517
|
+
onBlur: D[1] || (D[1] = (d) => p.value = !0)
|
|
1515
1518
|
}), {
|
|
1516
1519
|
label: y((d) => [
|
|
1517
|
-
I(o(
|
|
1520
|
+
I(o(ne), {
|
|
1518
1521
|
"allow-wrap": !0,
|
|
1519
1522
|
data: d,
|
|
1520
|
-
label: o(
|
|
1523
|
+
label: o(u)
|
|
1521
1524
|
}, null, 8, ["data", "label"])
|
|
1522
1525
|
]),
|
|
1523
1526
|
message: y(({ message: d }) => [
|
|
1524
|
-
I(o(
|
|
1527
|
+
I(o(te), {
|
|
1525
1528
|
message: d,
|
|
1526
1529
|
errors: o(c)
|
|
1527
1530
|
}, null, 8, ["message", "errors"])
|
|
@@ -1530,9 +1533,9 @@ const rl = {
|
|
|
1530
1533
|
}, 16, ["modelValue", "class", "indeterminate"])) : H("", !0);
|
|
1531
1534
|
};
|
|
1532
1535
|
}
|
|
1533
|
-
}),
|
|
1536
|
+
}), gt = /* @__PURE__ */ K({
|
|
1534
1537
|
__name: "df-color",
|
|
1535
|
-
props: /* @__PURE__ */
|
|
1538
|
+
props: /* @__PURE__ */ ie({
|
|
1536
1539
|
allowNull: { type: Boolean },
|
|
1537
1540
|
control: {},
|
|
1538
1541
|
modelValue: {},
|
|
@@ -1548,42 +1551,42 @@ const rl = {
|
|
|
1548
1551
|
passthroughAttrs: {},
|
|
1549
1552
|
density: {},
|
|
1550
1553
|
variant: {}
|
|
1551
|
-
}, W(
|
|
1554
|
+
}, W(x({}, se), { allowNull: !1 })),
|
|
1552
1555
|
emits: ["update:modelValue", "click:clear"],
|
|
1553
1556
|
setup(e, { emit: t }) {
|
|
1554
|
-
const n = e, l = t, { densityClass: a, isRendered: r, label:
|
|
1557
|
+
const n = e, l = t, { densityClass: a, isRendered: r, label: u, showErrors: c, touched: p, value: i, visibilityClass: f, vuetifyBindings: s } = oe(
|
|
1555
1558
|
n,
|
|
1556
1559
|
l
|
|
1557
|
-
), C =
|
|
1558
|
-
(
|
|
1560
|
+
), C = R(!1), _ = g(() => [
|
|
1561
|
+
(h) => n.control || !h && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(h) ? !0 : "Not a valid hex string."
|
|
1559
1562
|
]);
|
|
1560
|
-
return (
|
|
1563
|
+
return (h, k) => {
|
|
1561
1564
|
const D = N("v-color-picker"), S = N("v-menu"), d = N("v-text-field");
|
|
1562
|
-
return o(r) ? (V(),
|
|
1565
|
+
return o(r) ? (V(), F(d, z({
|
|
1563
1566
|
key: 0,
|
|
1564
1567
|
modelValue: o(i),
|
|
1565
|
-
"onUpdate:modelValue": k[2] || (k[2] = (P) =>
|
|
1568
|
+
"onUpdate:modelValue": k[2] || (k[2] = (P) => me(i) ? i.value = P : null),
|
|
1566
1569
|
class: [o(a), o(f)],
|
|
1567
1570
|
clearable: e.allowNull,
|
|
1568
1571
|
type: "text",
|
|
1569
|
-
rules:
|
|
1570
|
-
}, o(
|
|
1571
|
-
onBlur: k[3] || (k[3] = (P) =>
|
|
1572
|
+
rules: _.value
|
|
1573
|
+
}, o(s), {
|
|
1574
|
+
onBlur: k[3] || (k[3] = (P) => p.value = !0)
|
|
1572
1575
|
}), {
|
|
1573
1576
|
label: y((P) => [
|
|
1574
|
-
I(o(
|
|
1577
|
+
I(o(ne), {
|
|
1575
1578
|
data: P,
|
|
1576
|
-
label: o(
|
|
1579
|
+
label: o(u)
|
|
1577
1580
|
}, null, 8, ["data", "label"])
|
|
1578
1581
|
]),
|
|
1579
1582
|
message: y(({ message: P }) => [
|
|
1580
|
-
I(o(
|
|
1583
|
+
I(o(te), {
|
|
1581
1584
|
message: P,
|
|
1582
1585
|
errors: o(c)
|
|
1583
1586
|
}, null, 8, ["message", "errors"])
|
|
1584
1587
|
]),
|
|
1585
1588
|
"prepend-inner": y(() => [
|
|
1586
|
-
|
|
1589
|
+
fe("div", {
|
|
1587
1590
|
style: rt([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: o(i) }])
|
|
1588
1591
|
}, null, 4)
|
|
1589
1592
|
]),
|
|
@@ -1597,7 +1600,7 @@ const rl = {
|
|
|
1597
1600
|
default: y(() => [
|
|
1598
1601
|
I(D, {
|
|
1599
1602
|
modelValue: o(i),
|
|
1600
|
-
"onUpdate:modelValue": k[0] || (k[0] = (P) =>
|
|
1603
|
+
"onUpdate:modelValue": k[0] || (k[0] = (P) => me(i) ? i.value = P : null),
|
|
1601
1604
|
mode: "hexa"
|
|
1602
1605
|
}, null, 8, ["modelValue"])
|
|
1603
1606
|
]),
|
|
@@ -1608,9 +1611,9 @@ const rl = {
|
|
|
1608
1611
|
}, 16, ["modelValue", "class", "clearable", "rules"])) : H("", !0);
|
|
1609
1612
|
};
|
|
1610
1613
|
}
|
|
1611
|
-
}),
|
|
1614
|
+
}), yt = /* @__PURE__ */ K({
|
|
1612
1615
|
__name: "df-datetime",
|
|
1613
|
-
props: /* @__PURE__ */
|
|
1616
|
+
props: /* @__PURE__ */ ie({
|
|
1614
1617
|
inputType: {},
|
|
1615
1618
|
displayFormatDate: {},
|
|
1616
1619
|
displayFormatTime: {},
|
|
@@ -1629,39 +1632,39 @@ const rl = {
|
|
|
1629
1632
|
passthroughAttrs: {},
|
|
1630
1633
|
density: {},
|
|
1631
1634
|
variant: {}
|
|
1632
|
-
}, W(
|
|
1635
|
+
}, W(x({}, se), {
|
|
1633
1636
|
inputType: "datetime",
|
|
1634
1637
|
displayFormatDate: "P",
|
|
1635
1638
|
displayFormatTime: "p"
|
|
1636
1639
|
})),
|
|
1637
1640
|
emits: ["update:modelValue", "click:clear"],
|
|
1638
1641
|
setup(e, { emit: t }) {
|
|
1639
|
-
const n = e, l = t, a =
|
|
1642
|
+
const n = e, l = t, a = g(() => {
|
|
1640
1643
|
var v;
|
|
1641
|
-
return (v = n.locale) != null ? v : o(
|
|
1642
|
-
}), r =
|
|
1644
|
+
return (v = n.locale) != null ? v : o(sl.dateTimeLocale);
|
|
1645
|
+
}), r = g(() => {
|
|
1643
1646
|
var v, m;
|
|
1644
1647
|
return (m = (v = a.value.options) == null ? void 0 : v.weekStartsOn) != null ? m : 1;
|
|
1645
|
-
}), { density:
|
|
1648
|
+
}), { density: u, densityClass: c, touched: p, value: i, vuetifyBindings: f } = oe(n, l), { inputType: s, displayFormatDate: C, displayFormatTime: _ } = Pe(n), h = R(""), k = g({
|
|
1646
1649
|
get() {
|
|
1647
|
-
return o(
|
|
1650
|
+
return o(h) === "date";
|
|
1648
1651
|
},
|
|
1649
1652
|
set(v) {
|
|
1650
|
-
|
|
1653
|
+
h.value = v ? "date" : "";
|
|
1651
1654
|
}
|
|
1652
|
-
}), D =
|
|
1655
|
+
}), D = g({
|
|
1653
1656
|
get() {
|
|
1654
|
-
return o(
|
|
1657
|
+
return o(h) === "time";
|
|
1655
1658
|
},
|
|
1656
1659
|
set(v) {
|
|
1657
|
-
|
|
1660
|
+
h.value = v ? "time" : "";
|
|
1658
1661
|
}
|
|
1659
|
-
}), S = (v) => `${we(v, "yyyy-MM-dd")}T${we(v, "HH:mm")}:00`, d =
|
|
1662
|
+
}), S = (v) => `${we(v, "yyyy-MM-dd")}T${we(v, "HH:mm")}:00`, d = R(null);
|
|
1660
1663
|
function P(v, m) {
|
|
1661
1664
|
if (v == null)
|
|
1662
1665
|
d.value = null;
|
|
1663
1666
|
else if (m === -1)
|
|
1664
|
-
if (o(
|
|
1667
|
+
if (o(s) === "time")
|
|
1665
1668
|
d.value = S(/* @__PURE__ */ new Date()), P(`T${v}`, 1);
|
|
1666
1669
|
else {
|
|
1667
1670
|
const M = S(new Date(v));
|
|
@@ -1669,12 +1672,12 @@ const rl = {
|
|
|
1669
1672
|
}
|
|
1670
1673
|
else {
|
|
1671
1674
|
d.value == null && (d.value = S(/* @__PURE__ */ new Date()));
|
|
1672
|
-
const M = d.value.split(/[TZ]/g),
|
|
1673
|
-
M[m] =
|
|
1675
|
+
const M = d.value.split(/[TZ]/g), b = v.split(/[TZ]/g);
|
|
1676
|
+
M[m] = b[m], d.value = S(/* @__PURE__ */ new Date(`${M[0]}T${M[1].split(".")[0]}`)), o(s) === "date" ? i.value = M[0] : o(s) === "time" ? i.value = M[1] : i.value = o(d) + we(/* @__PURE__ */ new Date(), "XXX");
|
|
1674
1677
|
}
|
|
1675
1678
|
}
|
|
1676
|
-
|
|
1677
|
-
const U =
|
|
1679
|
+
de(i, (v) => P(v, -1), { immediate: !0 });
|
|
1680
|
+
const U = g({
|
|
1678
1681
|
get() {
|
|
1679
1682
|
const v = o(d);
|
|
1680
1683
|
if (v == null) return null;
|
|
@@ -1684,7 +1687,7 @@ const rl = {
|
|
|
1684
1687
|
set(v) {
|
|
1685
1688
|
P(S(v), 0);
|
|
1686
1689
|
}
|
|
1687
|
-
}), A =
|
|
1690
|
+
}), A = g({
|
|
1688
1691
|
get() {
|
|
1689
1692
|
const v = o(d);
|
|
1690
1693
|
return v == null ? "" : v.split(/[TZ]/g)[1].split(".")[0];
|
|
@@ -1692,51 +1695,51 @@ const rl = {
|
|
|
1692
1695
|
set(v) {
|
|
1693
1696
|
P(`T${v}`, 1);
|
|
1694
1697
|
}
|
|
1695
|
-
}), O =
|
|
1698
|
+
}), O = g({
|
|
1696
1699
|
get() {
|
|
1697
1700
|
const v = o(U);
|
|
1698
1701
|
return v == null ? "" : we(v, o(C), { locale: a.value });
|
|
1699
1702
|
},
|
|
1700
1703
|
set(v) {
|
|
1701
1704
|
try {
|
|
1702
|
-
const m =
|
|
1705
|
+
const m = en(v, o(C), /* @__PURE__ */ new Date(), { locale: a.value });
|
|
1703
1706
|
P(S(m), 0);
|
|
1704
1707
|
} catch (m) {
|
|
1705
1708
|
console.error(m);
|
|
1706
1709
|
}
|
|
1707
1710
|
}
|
|
1708
|
-
}), $ =
|
|
1711
|
+
}), $ = g({
|
|
1709
1712
|
get() {
|
|
1710
1713
|
const v = o(U);
|
|
1711
|
-
return v == null ? "" : we(v, o(
|
|
1714
|
+
return v == null ? "" : we(v, o(_), { locale: a.value });
|
|
1712
1715
|
},
|
|
1713
1716
|
set(v) {
|
|
1714
1717
|
const m = v.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
1715
1718
|
if (m == null) return;
|
|
1716
1719
|
let M = Je(m[1]);
|
|
1717
|
-
const
|
|
1718
|
-
et(M) || et(
|
|
1720
|
+
const b = Je(m[2]);
|
|
1721
|
+
et(M) || et(b) || (m[3] && m[3].toLowerCase() === "pm" && M < 13 && (M += 12), P(`T${M.toString().padStart(2, "0")}:${b.toString().padStart(2, "0")}:00`, 1));
|
|
1719
1722
|
}
|
|
1720
1723
|
});
|
|
1721
1724
|
return (v, m) => {
|
|
1722
|
-
const M = N("v-date-picker"),
|
|
1723
|
-
return V(),
|
|
1725
|
+
const M = N("v-date-picker"), b = N("v-confirm-edit"), j = N("v-menu"), X = N("v-text-field"), G = N("v-time-picker");
|
|
1726
|
+
return V(), F(o(ze), z(n, {
|
|
1724
1727
|
class: o(c),
|
|
1725
1728
|
clearable: e.clearable,
|
|
1726
|
-
"onClick:clear": m[14] || (m[14] = (
|
|
1727
|
-
onBlur: m[15] || (m[15] = (
|
|
1729
|
+
"onClick:clear": m[14] || (m[14] = (le) => i.value = null),
|
|
1730
|
+
onBlur: m[15] || (m[15] = (le) => p.value = !0)
|
|
1728
1731
|
}), {
|
|
1729
|
-
default: y((
|
|
1730
|
-
|
|
1731
|
-
class:
|
|
1732
|
+
default: y((le) => [
|
|
1733
|
+
fe("div", {
|
|
1734
|
+
class: re([
|
|
1732
1735
|
"d-flex",
|
|
1733
1736
|
"w-100",
|
|
1734
1737
|
["plain", "underlined"].includes(o(f).variant) ? void 0 : "ml-4",
|
|
1735
1738
|
"df-input-wrapper",
|
|
1736
|
-
o(
|
|
1739
|
+
o(u)
|
|
1737
1740
|
])
|
|
1738
1741
|
}, [
|
|
1739
|
-
["date", "datetime"].includes(o(
|
|
1742
|
+
["date", "datetime"].includes(o(s)) ? (V(), F(X, z({
|
|
1740
1743
|
key: 0,
|
|
1741
1744
|
modelValue: O.value,
|
|
1742
1745
|
"onUpdate:modelValue": m[4] || (m[4] = (T) => O.value = T),
|
|
@@ -1750,10 +1753,10 @@ const rl = {
|
|
|
1750
1753
|
name: `${o(f).name}-date`,
|
|
1751
1754
|
placeholder: o(f).placeholder
|
|
1752
1755
|
}, e.passthroughAttrs, {
|
|
1753
|
-
onClick: m[5] || (m[5] = (T) =>
|
|
1754
|
-
onKeydown: m[6] || (m[6] =
|
|
1755
|
-
onFocus: (T) =>
|
|
1756
|
-
onBlur: (T) =>
|
|
1756
|
+
onClick: m[5] || (m[5] = (T) => h.value = "date"),
|
|
1757
|
+
onKeydown: m[6] || (m[6] = Ze((T) => h.value = "date", ["space"])),
|
|
1758
|
+
onFocus: (T) => le.focus(),
|
|
1759
|
+
onBlur: (T) => le.blur()
|
|
1757
1760
|
}), {
|
|
1758
1761
|
default: y(() => [
|
|
1759
1762
|
I(j, {
|
|
@@ -1763,11 +1766,11 @@ const rl = {
|
|
|
1763
1766
|
activator: "parent"
|
|
1764
1767
|
}, {
|
|
1765
1768
|
default: y(() => [
|
|
1766
|
-
I(
|
|
1769
|
+
I(b, {
|
|
1767
1770
|
modelValue: U.value,
|
|
1768
1771
|
"onUpdate:modelValue": m[0] || (m[0] = (T) => U.value = T),
|
|
1769
|
-
onCancel: m[1] || (m[1] = (T) =>
|
|
1770
|
-
onSave: m[2] || (m[2] = (T) =>
|
|
1772
|
+
onCancel: m[1] || (m[1] = (T) => h.value = ""),
|
|
1773
|
+
onSave: m[2] || (m[2] = (T) => h.value = "")
|
|
1771
1774
|
}, {
|
|
1772
1775
|
default: y(({ model: T, actions: he }) => [
|
|
1773
1776
|
I(M, {
|
|
@@ -1779,7 +1782,7 @@ const rl = {
|
|
|
1779
1782
|
"show-week": !0
|
|
1780
1783
|
}, {
|
|
1781
1784
|
actions: y(() => [
|
|
1782
|
-
(V(),
|
|
1785
|
+
(V(), F(je(he)))
|
|
1783
1786
|
]),
|
|
1784
1787
|
_: 2
|
|
1785
1788
|
}, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
|
|
@@ -1792,7 +1795,7 @@ const rl = {
|
|
|
1792
1795
|
]),
|
|
1793
1796
|
_: 1
|
|
1794
1797
|
}, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : H("", !0),
|
|
1795
|
-
["time", "datetime"].includes(o(
|
|
1798
|
+
["time", "datetime"].includes(o(s)) ? (V(), F(X, z({
|
|
1796
1799
|
key: 1,
|
|
1797
1800
|
modelValue: $.value,
|
|
1798
1801
|
"onUpdate:modelValue": m[11] || (m[11] = (T) => $.value = T),
|
|
@@ -1804,12 +1807,12 @@ const rl = {
|
|
|
1804
1807
|
readonly: o(f).readonly,
|
|
1805
1808
|
disabled: o(f).disabled,
|
|
1806
1809
|
name: `${o(f).name}-time`,
|
|
1807
|
-
placeholder: o(
|
|
1810
|
+
placeholder: o(s) === "time" ? o(f).placeholder : void 0
|
|
1808
1811
|
}, e.passthroughAttrs, {
|
|
1809
|
-
onClick: m[12] || (m[12] = (T) =>
|
|
1810
|
-
onKeydown: m[13] || (m[13] =
|
|
1811
|
-
onFocus: (T) =>
|
|
1812
|
-
onBlur: (T) =>
|
|
1812
|
+
onClick: m[12] || (m[12] = (T) => h.value = "time"),
|
|
1813
|
+
onKeydown: m[13] || (m[13] = Ze((T) => h.value = "time", ["space"])),
|
|
1814
|
+
onFocus: (T) => le.focus(),
|
|
1815
|
+
onBlur: (T) => le.blur()
|
|
1813
1816
|
}), {
|
|
1814
1817
|
default: y(() => [
|
|
1815
1818
|
I(j, {
|
|
@@ -1819,11 +1822,11 @@ const rl = {
|
|
|
1819
1822
|
activator: "parent"
|
|
1820
1823
|
}, {
|
|
1821
1824
|
default: y(() => [
|
|
1822
|
-
I(
|
|
1825
|
+
I(b, {
|
|
1823
1826
|
modelValue: A.value,
|
|
1824
1827
|
"onUpdate:modelValue": m[7] || (m[7] = (T) => A.value = T),
|
|
1825
|
-
onCancel: m[8] || (m[8] = (T) =>
|
|
1826
|
-
onSave: m[9] || (m[9] = (T) =>
|
|
1828
|
+
onCancel: m[8] || (m[8] = (T) => h.value = ""),
|
|
1829
|
+
onSave: m[9] || (m[9] = (T) => h.value = "")
|
|
1827
1830
|
}, {
|
|
1828
1831
|
default: y(({ model: T, actions: he }) => [
|
|
1829
1832
|
I(G, {
|
|
@@ -1833,7 +1836,7 @@ const rl = {
|
|
|
1833
1836
|
format: "24hr"
|
|
1834
1837
|
}, {
|
|
1835
1838
|
actions: y(() => [
|
|
1836
|
-
(V(),
|
|
1839
|
+
(V(), F(je(he)))
|
|
1837
1840
|
]),
|
|
1838
1841
|
_: 2
|
|
1839
1842
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1852,9 +1855,9 @@ const rl = {
|
|
|
1852
1855
|
}, 16, ["class", "clearable"]);
|
|
1853
1856
|
};
|
|
1854
1857
|
}
|
|
1855
|
-
}),
|
|
1858
|
+
}), wt = /* @__PURE__ */ K({
|
|
1856
1859
|
__name: "df-file",
|
|
1857
|
-
props: /* @__PURE__ */
|
|
1860
|
+
props: /* @__PURE__ */ ie({
|
|
1858
1861
|
comms: {},
|
|
1859
1862
|
control: {},
|
|
1860
1863
|
modelValue: {},
|
|
@@ -1870,10 +1873,10 @@ const rl = {
|
|
|
1870
1873
|
passthroughAttrs: {},
|
|
1871
1874
|
density: {},
|
|
1872
1875
|
variant: {}
|
|
1873
|
-
},
|
|
1876
|
+
}, se),
|
|
1874
1877
|
emits: ["update:modelValue", "click:clear"],
|
|
1875
1878
|
setup(e, { emit: t }) {
|
|
1876
|
-
const n = e, l = t, { density: a, densityClass: r, touched:
|
|
1879
|
+
const n = e, l = t, { density: a, densityClass: r, touched: u, value: c, vuetifyBindings: p } = oe(n, l), i = R(null), f = R(null), s = R(0), C = R(Math.round(Math.random() * 1e3)), _ = R(), h = g(() => f.value && s.value < 100), k = g(() => !_.value && c.value ? n.modelValue : "");
|
|
1877
1880
|
function D() {
|
|
1878
1881
|
i.value && window.clearInterval(i.value);
|
|
1879
1882
|
}
|
|
@@ -1882,23 +1885,23 @@ const rl = {
|
|
|
1882
1885
|
c.value && n.comms.touch(c.value);
|
|
1883
1886
|
}, 60 * 1e3);
|
|
1884
1887
|
}
|
|
1885
|
-
at(() => D()),
|
|
1888
|
+
at(() => D()), de(c, (A) => {
|
|
1886
1889
|
A ? S() : D();
|
|
1887
1890
|
});
|
|
1888
1891
|
function d() {
|
|
1889
1892
|
return _e(this, null, function* () {
|
|
1890
|
-
c.value && (yield n.comms.delete(c.value)), c.value = null,
|
|
1893
|
+
c.value && (yield n.comms.delete(c.value)), c.value = null, s.value = 0, C.value = Math.round(Math.random() * 1e3), f.value = null, _.value = null, D();
|
|
1891
1894
|
});
|
|
1892
1895
|
}
|
|
1893
1896
|
function P(A) {
|
|
1894
1897
|
return _e(this, null, function* () {
|
|
1895
|
-
|
|
1898
|
+
s.value = -1, f.value = A;
|
|
1896
1899
|
try {
|
|
1897
1900
|
c.value = yield n.comms.upload(A, (O, $) => {
|
|
1898
|
-
|
|
1899
|
-
}),
|
|
1901
|
+
s.value = Math.round(O * 100 / $);
|
|
1902
|
+
}), s.value = 100, S();
|
|
1900
1903
|
} catch (O) {
|
|
1901
|
-
throw
|
|
1904
|
+
throw s.value = 0, f.value = null, C.value = Math.round(Math.random() * 1e3), _.value = null, O;
|
|
1902
1905
|
}
|
|
1903
1906
|
});
|
|
1904
1907
|
}
|
|
@@ -1907,39 +1910,39 @@ const rl = {
|
|
|
1907
1910
|
}
|
|
1908
1911
|
return (A, O) => {
|
|
1909
1912
|
const $ = N("v-progress-linear"), v = N("v-file-input");
|
|
1910
|
-
return V(),
|
|
1913
|
+
return V(), F(o(ze), z(W(x({}, n), { loading: h.value }), {
|
|
1911
1914
|
class: o(r),
|
|
1912
1915
|
clearable: "",
|
|
1913
1916
|
"onClick:clear": d,
|
|
1914
|
-
onBlur: O[1] || (O[1] = (m) =>
|
|
1917
|
+
onBlur: O[1] || (O[1] = (m) => u.value = !0)
|
|
1915
1918
|
}), {
|
|
1916
1919
|
"prepend-inner": y(() => [
|
|
1917
1920
|
I(o(xe), { name: "mdi-paperclip" })
|
|
1918
1921
|
]),
|
|
1919
1922
|
loader: y(() => [
|
|
1920
|
-
f.value &&
|
|
1923
|
+
f.value && s.value < 100 ? (V(), F($, {
|
|
1921
1924
|
key: 0,
|
|
1922
|
-
"model-value":
|
|
1923
|
-
indeterminate:
|
|
1925
|
+
"model-value": s.value,
|
|
1926
|
+
indeterminate: s.value === -1
|
|
1924
1927
|
}, null, 8, ["model-value", "indeterminate"])) : H("", !0)
|
|
1925
1928
|
]),
|
|
1926
1929
|
default: y((m) => [
|
|
1927
|
-
|
|
1928
|
-
class:
|
|
1930
|
+
fe("div", {
|
|
1931
|
+
class: re(["d-flex w-100 position-relative df-input-wrapper", o(a)])
|
|
1929
1932
|
}, [
|
|
1930
1933
|
I(v, z({
|
|
1931
|
-
modelValue:
|
|
1932
|
-
"onUpdate:modelValue": O[0] || (O[0] = (M) =>
|
|
1934
|
+
modelValue: _.value,
|
|
1935
|
+
"onUpdate:modelValue": O[0] || (O[0] = (M) => _.value = M),
|
|
1933
1936
|
label: k.value,
|
|
1934
1937
|
density: "compact",
|
|
1935
1938
|
variant: "plain",
|
|
1936
|
-
readonly: o(
|
|
1937
|
-
disabled: o(
|
|
1938
|
-
name: o(
|
|
1939
|
+
readonly: o(p).readonly,
|
|
1940
|
+
disabled: o(p).disabled,
|
|
1941
|
+
name: o(p).name,
|
|
1939
1942
|
"hide-details": !0,
|
|
1940
1943
|
"show-size": !0,
|
|
1941
1944
|
multiple: !1,
|
|
1942
|
-
style: f.value &&
|
|
1945
|
+
style: f.value && s.value < 100 ? "visibility: hidden" : "",
|
|
1943
1946
|
clearable: !1
|
|
1944
1947
|
}, e.passthroughAttrs, {
|
|
1945
1948
|
"prepend-icon": "",
|
|
@@ -1953,9 +1956,9 @@ const rl = {
|
|
|
1953
1956
|
}, 16, ["class"]);
|
|
1954
1957
|
};
|
|
1955
1958
|
}
|
|
1956
|
-
}),
|
|
1959
|
+
}), kt = /* @__PURE__ */ K({
|
|
1957
1960
|
__name: "df-input",
|
|
1958
|
-
props: /* @__PURE__ */
|
|
1961
|
+
props: /* @__PURE__ */ ie({
|
|
1959
1962
|
inputType: {},
|
|
1960
1963
|
precision: {},
|
|
1961
1964
|
step: {},
|
|
@@ -1975,7 +1978,7 @@ const rl = {
|
|
|
1975
1978
|
passthroughAttrs: {},
|
|
1976
1979
|
density: {},
|
|
1977
1980
|
variant: {}
|
|
1978
|
-
}, W(
|
|
1981
|
+
}, W(x({}, se), {
|
|
1979
1982
|
inputType: "text",
|
|
1980
1983
|
precision: null,
|
|
1981
1984
|
step: void 0,
|
|
@@ -1984,54 +1987,54 @@ const rl = {
|
|
|
1984
1987
|
})),
|
|
1985
1988
|
emits: ["update:modelValue", "click:clear"],
|
|
1986
1989
|
setup(e, { emit: t }) {
|
|
1987
|
-
const n = e, l = t, { densityClass: a, isRendered: r, label:
|
|
1990
|
+
const n = e, l = t, { densityClass: a, isRendered: r, label: u, showErrors: c, touched: p, value: i, visibilityClass: f, vuetifyBindings: s } = oe(
|
|
1988
1991
|
n,
|
|
1989
1992
|
l
|
|
1990
|
-
), { inputType: C, max:
|
|
1991
|
-
() => S.value ? { min: o(
|
|
1993
|
+
), { inputType: C, max: _, min: h, precision: k, step: D } = Pe(n), S = g(() => C.value === "number"), d = g(
|
|
1994
|
+
() => S.value ? { min: o(h), max: o(_), precision: o(k), step: o(D) } : {}
|
|
1992
1995
|
);
|
|
1993
1996
|
return (P, U) => {
|
|
1994
1997
|
const A = N("v-text-field"), O = N("v-number-input");
|
|
1995
1998
|
return o(r) ? (V(), Y("div", {
|
|
1996
1999
|
key: 0,
|
|
1997
|
-
class:
|
|
2000
|
+
class: re(["df-input-container", [o(a), o(f)]])
|
|
1998
2001
|
}, [
|
|
1999
|
-
S.value ? (V(),
|
|
2002
|
+
S.value ? (V(), F(O, z({
|
|
2000
2003
|
key: 1,
|
|
2001
2004
|
modelValue: o(i),
|
|
2002
|
-
"onUpdate:modelValue": U[2] || (U[2] = ($) =>
|
|
2005
|
+
"onUpdate:modelValue": U[2] || (U[2] = ($) => me(i) ? i.value = $ : null),
|
|
2003
2006
|
density: "compact",
|
|
2004
2007
|
"control-variant": "stacked"
|
|
2005
|
-
},
|
|
2008
|
+
}, x(x({}, o(s)), d.value)), {
|
|
2006
2009
|
label: y(($) => [
|
|
2007
|
-
I(o(
|
|
2010
|
+
I(o(ne), {
|
|
2008
2011
|
data: $,
|
|
2009
|
-
label: o(
|
|
2012
|
+
label: o(u)
|
|
2010
2013
|
}, null, 8, ["data", "label"])
|
|
2011
2014
|
]),
|
|
2012
2015
|
message: y(({ message: $ }) => [
|
|
2013
|
-
I(o(
|
|
2016
|
+
I(o(te), {
|
|
2014
2017
|
message: $,
|
|
2015
2018
|
errors: o(c)
|
|
2016
2019
|
}, null, 8, ["message", "errors"])
|
|
2017
2020
|
]),
|
|
2018
2021
|
_: 1
|
|
2019
|
-
}, 16, ["modelValue"])) : (V(),
|
|
2022
|
+
}, 16, ["modelValue"])) : (V(), F(A, z({
|
|
2020
2023
|
key: 0,
|
|
2021
2024
|
modelValue: o(i),
|
|
2022
|
-
"onUpdate:modelValue": U[0] || (U[0] = ($) =>
|
|
2025
|
+
"onUpdate:modelValue": U[0] || (U[0] = ($) => me(i) ? i.value = $ : null),
|
|
2023
2026
|
type: o(C)
|
|
2024
|
-
}, o(
|
|
2025
|
-
onBlur: U[1] || (U[1] = ($) =>
|
|
2027
|
+
}, o(s), {
|
|
2028
|
+
onBlur: U[1] || (U[1] = ($) => p.value = !0)
|
|
2026
2029
|
}), {
|
|
2027
2030
|
label: y(($) => [
|
|
2028
|
-
I(o(
|
|
2031
|
+
I(o(ne), {
|
|
2029
2032
|
data: $,
|
|
2030
|
-
label: o(
|
|
2033
|
+
label: o(u)
|
|
2031
2034
|
}, null, 8, ["data", "label"])
|
|
2032
2035
|
]),
|
|
2033
2036
|
message: y(({ message: $ }) => [
|
|
2034
|
-
I(o(
|
|
2037
|
+
I(o(te), {
|
|
2035
2038
|
message: $,
|
|
2036
2039
|
errors: o(c)
|
|
2037
2040
|
}, null, 8, ["message", "errors"])
|
|
@@ -2041,7 +2044,7 @@ const rl = {
|
|
|
2041
2044
|
], 2)) : H("", !0);
|
|
2042
2045
|
};
|
|
2043
2046
|
}
|
|
2044
|
-
}),
|
|
2047
|
+
}), bl = { class: "editor-container" }, gl = { class: "editor-container__editor" }, yl = { ref: "editorElement" }, wl = /* @__PURE__ */ K({
|
|
2045
2048
|
__name: "ck-editor-custom",
|
|
2046
2049
|
props: {
|
|
2047
2050
|
modelValue: { default: "" },
|
|
@@ -2050,10 +2053,10 @@ const rl = {
|
|
|
2050
2053
|
},
|
|
2051
2054
|
emits: ["update:modelValue"],
|
|
2052
2055
|
setup(e, { expose: t, emit: n }) {
|
|
2053
|
-
|
|
2054
|
-
v32dcdf6e:
|
|
2056
|
+
Ot((s) => ({
|
|
2057
|
+
v32dcdf6e: s.minHeight
|
|
2055
2058
|
}));
|
|
2056
|
-
const l = n, a =
|
|
2059
|
+
const l = n, a = R(!1), r = Wn, u = {
|
|
2057
2060
|
items: [
|
|
2058
2061
|
"undo",
|
|
2059
2062
|
"redo",
|
|
@@ -2083,15 +2086,6 @@ const rl = {
|
|
|
2083
2086
|
],
|
|
2084
2087
|
shouldNotGroupWhenFull: !1
|
|
2085
2088
|
}, c = [
|
|
2086
|
-
Kt,
|
|
2087
|
-
Xt,
|
|
2088
|
-
qt,
|
|
2089
|
-
Gt,
|
|
2090
|
-
Yt,
|
|
2091
|
-
Qt,
|
|
2092
|
-
Zt,
|
|
2093
|
-
Jt,
|
|
2094
|
-
en,
|
|
2095
2089
|
tn,
|
|
2096
2090
|
nn,
|
|
2097
2091
|
on,
|
|
@@ -2123,8 +2117,17 @@ const rl = {
|
|
|
2123
2117
|
In,
|
|
2124
2118
|
Sn,
|
|
2125
2119
|
Pn,
|
|
2126
|
-
En
|
|
2127
|
-
|
|
2120
|
+
En,
|
|
2121
|
+
An,
|
|
2122
|
+
$n,
|
|
2123
|
+
Mn,
|
|
2124
|
+
Rn,
|
|
2125
|
+
Fn,
|
|
2126
|
+
Ln,
|
|
2127
|
+
Nn,
|
|
2128
|
+
Un,
|
|
2129
|
+
On
|
|
2130
|
+
], p = {
|
|
2128
2131
|
options: [
|
|
2129
2132
|
{ model: "paragraph", title: L.Paragraph, class: "ck-heading_paragraph" },
|
|
2130
2133
|
{ model: "heading1", view: "h1", title: L.Heading1, class: "ck-heading_heading1" },
|
|
@@ -2135,11 +2138,11 @@ const rl = {
|
|
|
2135
2138
|
{ model: "heading6", view: "h6", title: L.Heading6, class: "ck-heading_heading6" }
|
|
2136
2139
|
]
|
|
2137
2140
|
}, i = {
|
|
2138
|
-
language:
|
|
2139
|
-
toolbar:
|
|
2141
|
+
language: Ie.language,
|
|
2142
|
+
toolbar: u,
|
|
2140
2143
|
plugins: c,
|
|
2141
2144
|
balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
|
|
2142
|
-
heading:
|
|
2145
|
+
heading: p,
|
|
2143
2146
|
htmlSupport: {
|
|
2144
2147
|
allow: [{ name: /^.*$/, styles: !0, attributes: !0, classes: !0 }]
|
|
2145
2148
|
},
|
|
@@ -2182,19 +2185,19 @@ const rl = {
|
|
|
2182
2185
|
]
|
|
2183
2186
|
},
|
|
2184
2187
|
table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] },
|
|
2185
|
-
translations:
|
|
2188
|
+
translations: Ie.translations
|
|
2186
2189
|
};
|
|
2187
2190
|
lt(() => {
|
|
2188
2191
|
a.value = !0;
|
|
2189
2192
|
});
|
|
2190
|
-
const f = (
|
|
2193
|
+
const f = (s) => {
|
|
2191
2194
|
};
|
|
2192
|
-
return t({ onEditorReady: f }), (
|
|
2193
|
-
const
|
|
2194
|
-
return V(), Y("div",
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
a.value ? (V(),
|
|
2195
|
+
return t({ onEditorReady: f }), (s, C) => {
|
|
2196
|
+
const _ = N("ckeditor");
|
|
2197
|
+
return V(), Y("div", bl, [
|
|
2198
|
+
fe("div", gl, [
|
|
2199
|
+
fe("div", yl, [
|
|
2200
|
+
a.value ? (V(), F(_, {
|
|
2198
2201
|
key: 0,
|
|
2199
2202
|
"model-value": e.modelValue,
|
|
2200
2203
|
editor: o(r),
|
|
@@ -2202,16 +2205,16 @@ const rl = {
|
|
|
2202
2205
|
disabled: e.disabled,
|
|
2203
2206
|
style: rt(`min-height: ${e.minHeight}`),
|
|
2204
2207
|
onReady: f,
|
|
2205
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
2208
|
+
"onUpdate:modelValue": C[0] || (C[0] = (h) => l("update:modelValue", h))
|
|
2206
2209
|
}, null, 8, ["model-value", "editor", "disabled", "style"])) : H("", !0)
|
|
2207
2210
|
], 512)
|
|
2208
2211
|
])
|
|
2209
2212
|
]);
|
|
2210
2213
|
};
|
|
2211
2214
|
}
|
|
2212
|
-
}),
|
|
2215
|
+
}), Ct = /* @__PURE__ */ K({
|
|
2213
2216
|
__name: "df-rtf-editor",
|
|
2214
|
-
props: /* @__PURE__ */
|
|
2217
|
+
props: /* @__PURE__ */ ie({
|
|
2215
2218
|
minHeight: {},
|
|
2216
2219
|
control: {},
|
|
2217
2220
|
modelValue: {},
|
|
@@ -2227,21 +2230,21 @@ const rl = {
|
|
|
2227
2230
|
passthroughAttrs: {},
|
|
2228
2231
|
density: {},
|
|
2229
2232
|
variant: {}
|
|
2230
|
-
}, W(
|
|
2233
|
+
}, W(x({}, se), { minHeight: void 0 })),
|
|
2231
2234
|
emits: ["update:modelValue", "click:clear"],
|
|
2232
2235
|
setup(e, { emit: t }) {
|
|
2233
|
-
const n = e, l = t, { densityClass: a, value: r, vuetifyBindings:
|
|
2234
|
-
return (c,
|
|
2236
|
+
const n = e, l = t, { densityClass: a, value: r, vuetifyBindings: u } = oe(n, l);
|
|
2237
|
+
return (c, p) => (V(), F(o(ze), z(n, {
|
|
2235
2238
|
class: ["ck-editor-custom", o(a)]
|
|
2236
2239
|
}), {
|
|
2237
2240
|
default: y((i) => [
|
|
2238
|
-
I(
|
|
2241
|
+
I(wl, z({
|
|
2239
2242
|
ref: "$editor",
|
|
2240
2243
|
modelValue: o(r),
|
|
2241
|
-
"onUpdate:modelValue":
|
|
2244
|
+
"onUpdate:modelValue": p[0] || (p[0] = (f) => me(r) ? r.value = f : null),
|
|
2242
2245
|
class: { "mt-6": !!e.label },
|
|
2243
2246
|
"min-height": e.minHeight,
|
|
2244
|
-
disabled: o(
|
|
2247
|
+
disabled: o(u).disabled
|
|
2245
2248
|
}, e.passthroughAttrs, {
|
|
2246
2249
|
onFocusin: (f) => i.focus(),
|
|
2247
2250
|
onFocusout: (f) => i.blur()
|
|
@@ -2251,40 +2254,40 @@ const rl = {
|
|
|
2251
2254
|
}, 16, ["class"]));
|
|
2252
2255
|
}
|
|
2253
2256
|
});
|
|
2254
|
-
function
|
|
2257
|
+
function kl(e) {
|
|
2255
2258
|
return e.map((t) => ({ value: t.id, title: t.text, icon: t.icon }));
|
|
2256
2259
|
}
|
|
2257
2260
|
function ee(e, t) {
|
|
2258
2261
|
var n;
|
|
2259
|
-
return e == null || tt(e) && e.length === 0 ? null : t ?
|
|
2262
|
+
return e == null || tt(e) && e.length === 0 ? null : t ? st(e) : tt(e) ? (n = ut(e)) != null ? n : null : e;
|
|
2260
2263
|
}
|
|
2261
|
-
function
|
|
2264
|
+
function Se(e, t) {
|
|
2262
2265
|
if (t == null) return [];
|
|
2263
|
-
const n =
|
|
2266
|
+
const n = st(t);
|
|
2264
2267
|
return e.filter((l) => n.some((a) => a === l.id));
|
|
2265
2268
|
}
|
|
2266
2269
|
function Ve(e, t, n, l, a) {
|
|
2267
|
-
var
|
|
2270
|
+
var u;
|
|
2268
2271
|
const r = ee(e, n);
|
|
2269
2272
|
if (r == null) {
|
|
2270
2273
|
t.value = n ? [] : null;
|
|
2271
2274
|
return;
|
|
2272
2275
|
}
|
|
2273
2276
|
if (n)
|
|
2274
|
-
l ? t.value = r : t.value =
|
|
2277
|
+
l ? t.value = r : t.value = Se(a, r).map((c) => c.id);
|
|
2275
2278
|
else if (l)
|
|
2276
2279
|
t.value = r;
|
|
2277
2280
|
else {
|
|
2278
|
-
const c =
|
|
2279
|
-
t.value = (
|
|
2281
|
+
const c = ut(Se(a, r));
|
|
2282
|
+
t.value = (u = c == null ? void 0 : c.id) != null ? u : null;
|
|
2280
2283
|
}
|
|
2281
2284
|
}
|
|
2282
|
-
const
|
|
2285
|
+
const Cl = {
|
|
2283
2286
|
key: 0,
|
|
2284
2287
|
class: "me-1"
|
|
2285
|
-
},
|
|
2288
|
+
}, Vl = /* @__PURE__ */ K({
|
|
2286
2289
|
__name: "df-select",
|
|
2287
|
-
props: /* @__PURE__ */
|
|
2290
|
+
props: /* @__PURE__ */ ie({
|
|
2288
2291
|
choices: {},
|
|
2289
2292
|
multiple: { type: Boolean },
|
|
2290
2293
|
allowTags: { type: Boolean },
|
|
@@ -2304,7 +2307,7 @@ const wl = {
|
|
|
2304
2307
|
passthroughAttrs: {},
|
|
2305
2308
|
density: {},
|
|
2306
2309
|
variant: {}
|
|
2307
|
-
}, W(
|
|
2310
|
+
}, W(x({}, se), {
|
|
2308
2311
|
choices: void 0,
|
|
2309
2312
|
multiple: !1,
|
|
2310
2313
|
allowTags: !1,
|
|
@@ -2313,138 +2316,138 @@ const wl = {
|
|
|
2313
2316
|
})),
|
|
2314
2317
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
2315
2318
|
setup(e, { emit: t }) {
|
|
2316
|
-
var
|
|
2317
|
-
const n = e, { choices: l, multiple: a, allowTags: r, allowNull:
|
|
2319
|
+
var Xe;
|
|
2320
|
+
const n = e, { choices: l, multiple: a, allowTags: r, allowNull: u, cssClass: c } = Pe(n), p = t, i = R(null), {
|
|
2318
2321
|
densityClass: f,
|
|
2319
|
-
isRendered:
|
|
2322
|
+
isRendered: s,
|
|
2320
2323
|
label: C,
|
|
2321
|
-
showErrors:
|
|
2322
|
-
touched:
|
|
2324
|
+
showErrors: _,
|
|
2325
|
+
touched: h,
|
|
2323
2326
|
value: k,
|
|
2324
2327
|
visibilityClass: D,
|
|
2325
2328
|
vuetifyBindings: S
|
|
2326
|
-
} =
|
|
2327
|
-
(
|
|
2328
|
-
function
|
|
2329
|
-
|
|
2329
|
+
} = oe(n, p), d = R(null), P = R(!1), U = R([]), A = g(() => o(P) ? o(U) : o(l) || []), O = R(!1), $ = g(() => kl(A.value)), v = R(null), m = R(0), M = R(!1);
|
|
2330
|
+
(Xe = l.value) != null && Xe.length && n.fetchChoices !== void 0 && console.warn("Both choices and fetchChoices are set. Only one of them should be set.");
|
|
2331
|
+
function b(w) {
|
|
2332
|
+
p("update:modelValueDisplay", Se(A.value, w));
|
|
2330
2333
|
}
|
|
2331
|
-
const j =
|
|
2334
|
+
const j = R(!1);
|
|
2332
2335
|
function X(w) {
|
|
2333
2336
|
j.value = !0;
|
|
2334
2337
|
try {
|
|
2335
2338
|
k.value = w;
|
|
2336
2339
|
} finally {
|
|
2337
|
-
|
|
2340
|
+
Kt(ee(k.value, a.value), w) || Ve(
|
|
2338
2341
|
ee(k.value, a.value),
|
|
2339
2342
|
d,
|
|
2340
2343
|
a.value,
|
|
2341
2344
|
r.value,
|
|
2342
2345
|
A.value
|
|
2343
|
-
),
|
|
2346
|
+
), Ne(() => {
|
|
2344
2347
|
j.value = !1;
|
|
2345
2348
|
});
|
|
2346
2349
|
}
|
|
2347
2350
|
}
|
|
2348
2351
|
function G(w) {
|
|
2349
2352
|
if (!w) return 0;
|
|
2350
|
-
const
|
|
2351
|
-
return
|
|
2353
|
+
const B = w.getBoundingClientRect(), q = window.getComputedStyle(w);
|
|
2354
|
+
return B.width + parseFloat(q.marginLeft) + parseFloat(q.marginRight);
|
|
2352
2355
|
}
|
|
2353
|
-
function
|
|
2356
|
+
function le() {
|
|
2354
2357
|
var w;
|
|
2355
|
-
if (a.value &&
|
|
2356
|
-
const
|
|
2358
|
+
if (a.value && u.value && d.value != null && d.value.length > 0 && i.value) {
|
|
2359
|
+
const B = i.value.$el, q = (w = B.querySelector(".v-input__control")) == null ? void 0 : w.clientWidth, Q = B.querySelector(".v-field__input"), E = Q.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), Z = window.getComputedStyle(Q);
|
|
2357
2360
|
let ge = parseFloat(Z.paddingLeft) + parseFloat(Z.paddingRight);
|
|
2358
|
-
E.forEach((
|
|
2359
|
-
ge += G(
|
|
2361
|
+
E.forEach((Dt) => {
|
|
2362
|
+
ge += G(Dt);
|
|
2360
2363
|
});
|
|
2361
|
-
const
|
|
2362
|
-
M.value = q - ge - E.length *
|
|
2364
|
+
const xt = G(B.querySelector(".v-field .v-field__clearable")), _t = G(B.querySelector(".v-field .v-field__append-inner")), Bt = 2;
|
|
2365
|
+
M.value = q - ge - E.length * Bt - _t < xt;
|
|
2363
2366
|
} else
|
|
2364
2367
|
M.value = !1;
|
|
2365
2368
|
}
|
|
2366
2369
|
function T(w) {
|
|
2367
|
-
const
|
|
2368
|
-
|
|
2370
|
+
const B = w.target;
|
|
2371
|
+
B instanceof HTMLElement && B.closest(".v-chip__close") && (w.stopPropagation(), w.preventDefault());
|
|
2369
2372
|
}
|
|
2370
|
-
|
|
2373
|
+
de(
|
|
2371
2374
|
d,
|
|
2372
2375
|
(w) => {
|
|
2373
|
-
S.value.readonly ||
|
|
2374
|
-
const
|
|
2375
|
-
|
|
2376
|
+
S.value.readonly || Ne(() => {
|
|
2377
|
+
const B = ee(w, a.value);
|
|
2378
|
+
b(B), X(B);
|
|
2376
2379
|
});
|
|
2377
2380
|
},
|
|
2378
2381
|
{ deep: !0 }
|
|
2379
|
-
),
|
|
2382
|
+
), de(
|
|
2380
2383
|
k,
|
|
2381
2384
|
(w) => {
|
|
2382
2385
|
if (!j.value) {
|
|
2383
|
-
const
|
|
2384
|
-
Ve(
|
|
2386
|
+
const B = ee(w, a.value);
|
|
2387
|
+
Ve(B, d, a.value, !1, A.value);
|
|
2385
2388
|
}
|
|
2386
2389
|
},
|
|
2387
2390
|
{ deep: !0 }
|
|
2388
|
-
),
|
|
2389
|
-
j.value ||
|
|
2391
|
+
), de(j, () => {
|
|
2392
|
+
j.value || le();
|
|
2390
2393
|
});
|
|
2391
2394
|
function he() {
|
|
2392
|
-
v.value != null && v.value.length > 0 && (v.value = null,
|
|
2395
|
+
v.value != null && v.value.length > 0 && (v.value = null, Ee());
|
|
2393
2396
|
}
|
|
2394
2397
|
function be() {
|
|
2395
2398
|
if (he(), S.value.readonly || r.value) return;
|
|
2396
2399
|
const w = ee(d.value, a.value);
|
|
2397
2400
|
Ve(w, d, a.value, !1, A.value), X(w);
|
|
2398
2401
|
}
|
|
2399
|
-
function
|
|
2402
|
+
function Tt(w, B) {
|
|
2400
2403
|
if (w.stopPropagation(), S.value.readonly || r.value) {
|
|
2401
|
-
r.value && (d.value = d.value.filter((Q) => Q !==
|
|
2404
|
+
r.value && (d.value = d.value.filter((Q) => Q !== B));
|
|
2402
2405
|
return;
|
|
2403
2406
|
}
|
|
2404
2407
|
let q;
|
|
2405
2408
|
a.value && Array.isArray(d.value) ? q = ee(
|
|
2406
|
-
d.value.filter((Q) => Q !==
|
|
2409
|
+
d.value.filter((Q) => Q !== B),
|
|
2407
2410
|
a.value
|
|
2408
2411
|
) : q = null, Ve(q, d, a.value, !1, A.value), X(q);
|
|
2409
2412
|
}
|
|
2410
|
-
function
|
|
2413
|
+
function Ee(w, B) {
|
|
2411
2414
|
return _e(this, null, function* () {
|
|
2412
2415
|
if (S.value.readonly || (v.value = w, l.value || n.fetchChoices === void 0)) return;
|
|
2413
2416
|
const q = ++m.value;
|
|
2414
2417
|
O.value = !0;
|
|
2415
2418
|
try {
|
|
2416
|
-
const Q =
|
|
2419
|
+
const Q = Se(
|
|
2417
2420
|
A.value,
|
|
2418
2421
|
ee(d.value, a.value)
|
|
2419
|
-
), E = yield n.fetchChoices(w,
|
|
2422
|
+
), E = yield n.fetchChoices(w, B);
|
|
2420
2423
|
if (q !== m.value) return;
|
|
2421
|
-
U.value =
|
|
2424
|
+
U.value = Xt([...Q, ...E], "id"), P.value = !0;
|
|
2422
2425
|
} finally {
|
|
2423
2426
|
O.value = !1;
|
|
2424
2427
|
}
|
|
2425
2428
|
});
|
|
2426
2429
|
}
|
|
2427
|
-
function
|
|
2430
|
+
function Ke() {
|
|
2428
2431
|
let w = k.value;
|
|
2429
|
-
!
|
|
2432
|
+
!u.value && w == null && $.value.length && (w = $.value[0].value), w = ee(w, a.value), Ve(w, d, a.value, r.value, A.value), b(w), X(w);
|
|
2430
2433
|
}
|
|
2431
|
-
return
|
|
2432
|
-
|
|
2433
|
-
}), (w,
|
|
2434
|
+
return Ke(), n.fetchChoices !== void 0 && Ee(void 0, k.value).then(() => {
|
|
2435
|
+
Ke();
|
|
2436
|
+
}), (w, B) => {
|
|
2434
2437
|
const q = N("v-chip"), Q = N("v-list-item");
|
|
2435
|
-
return o(
|
|
2438
|
+
return o(s) ? (V(), F(je(o(r) ? "v-combobox" : "v-autocomplete"), z({
|
|
2436
2439
|
key: 0,
|
|
2437
2440
|
ref_key: "dfSelectRef",
|
|
2438
2441
|
ref: i,
|
|
2439
2442
|
modelValue: d.value,
|
|
2440
|
-
"onUpdate:modelValue":
|
|
2443
|
+
"onUpdate:modelValue": B[0] || (B[0] = (E) => d.value = E),
|
|
2441
2444
|
class: [o(c), o(f), o(D), { "df-select-multirow": M.value }],
|
|
2442
2445
|
items: $.value,
|
|
2443
2446
|
"return-object": !1,
|
|
2444
2447
|
chips: "",
|
|
2445
2448
|
"auto-select-first": !0,
|
|
2446
|
-
"closable-chips": o(
|
|
2447
|
-
clearable: o(
|
|
2449
|
+
"closable-chips": o(u) || o(a) && d.value.length > 1,
|
|
2450
|
+
clearable: o(u),
|
|
2448
2451
|
multiple: o(a),
|
|
2449
2452
|
loading: O.value,
|
|
2450
2453
|
"hide-selected": !1,
|
|
@@ -2452,26 +2455,26 @@ const wl = {
|
|
|
2452
2455
|
"menu-props": { maxHeight: "400" },
|
|
2453
2456
|
search: v.value
|
|
2454
2457
|
}, o(S), {
|
|
2455
|
-
"onUpdate:search":
|
|
2458
|
+
"onUpdate:search": B[1] || (B[1] = (E) => Ee(E, void 0)),
|
|
2456
2459
|
"onUpdate:modelValue": be,
|
|
2457
|
-
"onClick:clear":
|
|
2458
|
-
onBlur:
|
|
2459
|
-
onMousedownCapture:
|
|
2460
|
-
}),
|
|
2460
|
+
"onClick:clear": B[2] || (B[2] = (E) => d.value = null),
|
|
2461
|
+
onBlur: B[3] || (B[3] = (E) => h.value = !0),
|
|
2462
|
+
onMousedownCapture: B[4] || (B[4] = (E) => T(E))
|
|
2463
|
+
}), Ue({
|
|
2461
2464
|
chip: y(({ item: E }) => [
|
|
2462
|
-
(V(),
|
|
2465
|
+
(V(), F(q, {
|
|
2463
2466
|
key: E.value,
|
|
2464
2467
|
label: "",
|
|
2465
2468
|
size: "small",
|
|
2466
2469
|
class: "d-flex align-middle",
|
|
2467
2470
|
variant: o(a) ? "tonal" : "text",
|
|
2468
2471
|
closable: o(a),
|
|
2469
|
-
"onClick:close": (Z) =>
|
|
2472
|
+
"onClick:close": (Z) => Tt(Z, E.value)
|
|
2470
2473
|
}, {
|
|
2471
2474
|
prepend: y(() => {
|
|
2472
2475
|
var Z;
|
|
2473
2476
|
return [
|
|
2474
|
-
(Z = E.raw) != null && Z.icon ? (V(),
|
|
2477
|
+
(Z = E.raw) != null && Z.icon ? (V(), F(o(xe), {
|
|
2475
2478
|
key: 0,
|
|
2476
2479
|
class: "me-1",
|
|
2477
2480
|
name: E.raw.icon
|
|
@@ -2479,25 +2482,25 @@ const wl = {
|
|
|
2479
2482
|
];
|
|
2480
2483
|
}),
|
|
2481
2484
|
default: y(() => [
|
|
2482
|
-
|
|
2483
|
-
class:
|
|
2484
|
-
},
|
|
2485
|
+
fe("span", {
|
|
2486
|
+
class: re({ "text-body-1": !o(a) })
|
|
2487
|
+
}, Oe(E.title), 3)
|
|
2485
2488
|
]),
|
|
2486
2489
|
_: 2
|
|
2487
2490
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
2488
2491
|
]),
|
|
2489
2492
|
label: y((E) => [
|
|
2490
|
-
I(o(
|
|
2493
|
+
I(o(ne), {
|
|
2491
2494
|
data: E,
|
|
2492
2495
|
label: o(C)
|
|
2493
2496
|
}, null, 8, ["data", "label"])
|
|
2494
2497
|
]),
|
|
2495
2498
|
item: y(({ props: E, item: Z }) => [
|
|
2496
|
-
I(Q,
|
|
2499
|
+
I(Q, ue(ce(E)), {
|
|
2497
2500
|
prepend: y(() => {
|
|
2498
2501
|
var ge;
|
|
2499
2502
|
return [
|
|
2500
|
-
(ge = Z.raw) != null && ge.icon ? (V(), Y("span",
|
|
2503
|
+
(ge = Z.raw) != null && ge.icon ? (V(), Y("span", Cl, [
|
|
2501
2504
|
I(o(xe), {
|
|
2502
2505
|
class: "action-icon",
|
|
2503
2506
|
name: Z.raw.icon
|
|
@@ -2509,9 +2512,9 @@ const wl = {
|
|
|
2509
2512
|
}, 1040)
|
|
2510
2513
|
]),
|
|
2511
2514
|
message: y(({ message: E }) => [
|
|
2512
|
-
I(o(
|
|
2515
|
+
I(o(te), {
|
|
2513
2516
|
message: E,
|
|
2514
|
-
errors: o(
|
|
2517
|
+
errors: o(_)
|
|
2515
2518
|
}, null, 8, ["message", "errors"])
|
|
2516
2519
|
]),
|
|
2517
2520
|
_: 2
|
|
@@ -2519,28 +2522,28 @@ const wl = {
|
|
|
2519
2522
|
w.$slots["append-inner"] ? {
|
|
2520
2523
|
name: "append-inner",
|
|
2521
2524
|
fn: y((E) => [
|
|
2522
|
-
pe(w.$slots, "append-inner",
|
|
2525
|
+
pe(w.$slots, "append-inner", ue(ce(E)), void 0, !0)
|
|
2523
2526
|
]),
|
|
2524
2527
|
key: "0"
|
|
2525
2528
|
} : void 0,
|
|
2526
2529
|
w.$slots["prepend-inner"] ? {
|
|
2527
2530
|
name: "prepend-inner",
|
|
2528
2531
|
fn: y((E) => [
|
|
2529
|
-
pe(w.$slots, "prepend-inner",
|
|
2532
|
+
pe(w.$slots, "prepend-inner", ue(ce(E)), void 0, !0)
|
|
2530
2533
|
]),
|
|
2531
2534
|
key: "1"
|
|
2532
2535
|
} : void 0
|
|
2533
2536
|
]), 1040, ["modelValue", "class", "items", "closable-chips", "clearable", "multiple", "loading", "aria-describedby", "search"])) : H("", !0);
|
|
2534
2537
|
};
|
|
2535
2538
|
}
|
|
2536
|
-
}),
|
|
2539
|
+
}), jl = (e, t) => {
|
|
2537
2540
|
const n = e.__vccOpts || e;
|
|
2538
2541
|
for (const [l, a] of t)
|
|
2539
2542
|
n[l] = a;
|
|
2540
2543
|
return n;
|
|
2541
|
-
},
|
|
2544
|
+
}, Vt = /* @__PURE__ */ jl(Vl, [["__scopeId", "data-v-7e5aa3b6"]]), jt = /* @__PURE__ */ K({
|
|
2542
2545
|
__name: "df-text-area",
|
|
2543
|
-
props: /* @__PURE__ */
|
|
2546
|
+
props: /* @__PURE__ */ ie({
|
|
2544
2547
|
rows: {},
|
|
2545
2548
|
maxRows: {},
|
|
2546
2549
|
control: {},
|
|
@@ -2557,40 +2560,40 @@ const wl = {
|
|
|
2557
2560
|
passthroughAttrs: {},
|
|
2558
2561
|
density: {},
|
|
2559
2562
|
variant: {}
|
|
2560
|
-
}, W(
|
|
2563
|
+
}, W(x({}, se), {
|
|
2561
2564
|
rows: void 0,
|
|
2562
2565
|
maxRows: void 0
|
|
2563
2566
|
})),
|
|
2564
2567
|
emits: ["update:modelValue", "click:clear"],
|
|
2565
2568
|
setup(e, { emit: t }) {
|
|
2566
|
-
const n = e, l = t, { densityClass: a, isRendered: r, label:
|
|
2569
|
+
const n = e, l = t, { densityClass: a, isRendered: r, label: u, showErrors: c, touched: p, value: i, visibilityClass: f, vuetifyBindings: s } = oe(
|
|
2567
2570
|
n,
|
|
2568
2571
|
l
|
|
2569
|
-
), { cssClass: C } =
|
|
2570
|
-
return (
|
|
2572
|
+
), { cssClass: C } = Pe(n);
|
|
2573
|
+
return (_, h) => {
|
|
2571
2574
|
const k = N("v-textarea");
|
|
2572
2575
|
return o(r) ? (V(), Y("div", {
|
|
2573
2576
|
key: 0,
|
|
2574
|
-
class:
|
|
2577
|
+
class: re(["df-textarea-container", [o(a), o(f)]])
|
|
2575
2578
|
}, [
|
|
2576
2579
|
I(k, z({
|
|
2577
2580
|
modelValue: o(i),
|
|
2578
|
-
"onUpdate:modelValue":
|
|
2581
|
+
"onUpdate:modelValue": h[0] || (h[0] = (D) => me(i) ? i.value = D : null),
|
|
2579
2582
|
class: o(C),
|
|
2580
2583
|
rows: e.rows,
|
|
2581
2584
|
"auto-grow": (e.maxRows || 0) > 0,
|
|
2582
2585
|
"max-rows": e.maxRows
|
|
2583
|
-
}, o(
|
|
2584
|
-
onBlur:
|
|
2586
|
+
}, o(s), {
|
|
2587
|
+
onBlur: h[1] || (h[1] = (D) => p.value = !0)
|
|
2585
2588
|
}), {
|
|
2586
2589
|
label: y((D) => [
|
|
2587
|
-
I(o(
|
|
2590
|
+
I(o(ne), {
|
|
2588
2591
|
data: D,
|
|
2589
|
-
label: o(
|
|
2592
|
+
label: o(u)
|
|
2590
2593
|
}, null, 8, ["data", "label"])
|
|
2591
2594
|
]),
|
|
2592
2595
|
message: y(({ message: D }) => [
|
|
2593
|
-
I(o(
|
|
2596
|
+
I(o(te), {
|
|
2594
2597
|
message: D,
|
|
2595
2598
|
errors: o(c)
|
|
2596
2599
|
}, null, 8, ["message", "errors"])
|
|
@@ -2602,84 +2605,98 @@ const wl = {
|
|
|
2602
2605
|
}
|
|
2603
2606
|
}), Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2604
2607
|
__proto__: null,
|
|
2605
|
-
DfActions:
|
|
2606
|
-
DfCheckbox:
|
|
2607
|
-
DfColor:
|
|
2608
|
-
DfDateTime:
|
|
2609
|
-
DfFile:
|
|
2610
|
-
DfInput:
|
|
2611
|
-
DfInputHint:
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2608
|
+
DfActions: ht,
|
|
2609
|
+
DfCheckbox: bt,
|
|
2610
|
+
DfColor: gt,
|
|
2611
|
+
DfDateTime: yt,
|
|
2612
|
+
DfFile: wt,
|
|
2613
|
+
DfInput: kt,
|
|
2614
|
+
DfInputHint: te,
|
|
2615
|
+
DfLabel: ne,
|
|
2616
|
+
DfRtfEditor: Ct,
|
|
2617
|
+
DfSelect: Vt,
|
|
2618
|
+
DfTextArea: jt
|
|
2615
2619
|
}, Symbol.toStringTag, { value: "Module" })), xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2616
2620
|
__proto__: null,
|
|
2617
|
-
VAutocomplete:
|
|
2618
|
-
VBtn:
|
|
2619
|
-
VCheckbox:
|
|
2620
|
-
VChip:
|
|
2621
|
-
VCol:
|
|
2622
|
-
VColorPicker:
|
|
2623
|
-
VCombobox:
|
|
2624
|
-
VConfirmEdit:
|
|
2625
|
-
VDatePicker:
|
|
2626
|
-
VField:
|
|
2627
|
-
VFileInput:
|
|
2628
|
-
VIcon:
|
|
2629
|
-
VImg:
|
|
2630
|
-
VInput:
|
|
2631
|
-
VListItem:
|
|
2632
|
-
VMenu:
|
|
2633
|
-
VNumberInput:
|
|
2634
|
-
VProgressLinear:
|
|
2635
|
-
VRow:
|
|
2636
|
-
VSelect:
|
|
2637
|
-
VSwitch:
|
|
2638
|
-
VTextField:
|
|
2639
|
-
VTextarea:
|
|
2640
|
-
VTimePicker:
|
|
2641
|
-
}, Symbol.toStringTag, { value: "Module" })), ia =
|
|
2621
|
+
VAutocomplete: Hn,
|
|
2622
|
+
VBtn: zn,
|
|
2623
|
+
VCheckbox: Kn,
|
|
2624
|
+
VChip: Xn,
|
|
2625
|
+
VCol: eo,
|
|
2626
|
+
VColorPicker: Gn,
|
|
2627
|
+
VCombobox: qn,
|
|
2628
|
+
VConfirmEdit: Yn,
|
|
2629
|
+
VDatePicker: Qn,
|
|
2630
|
+
VField: Zn,
|
|
2631
|
+
VFileInput: Jn,
|
|
2632
|
+
VIcon: no,
|
|
2633
|
+
VImg: oo,
|
|
2634
|
+
VInput: lo,
|
|
2635
|
+
VListItem: ao,
|
|
2636
|
+
VMenu: ro,
|
|
2637
|
+
VNumberInput: io,
|
|
2638
|
+
VProgressLinear: so,
|
|
2639
|
+
VRow: to,
|
|
2640
|
+
VSelect: uo,
|
|
2641
|
+
VSwitch: co,
|
|
2642
|
+
VTextField: fo,
|
|
2643
|
+
VTextarea: mo,
|
|
2644
|
+
VTimePicker: vo
|
|
2645
|
+
}, Symbol.toStringTag, { value: "Module" })), ia = {
|
|
2646
|
+
"df-actions": ht,
|
|
2647
|
+
"df-checkbox": bt,
|
|
2648
|
+
"df-color": gt,
|
|
2649
|
+
"df-date-time": yt,
|
|
2650
|
+
"df-file": wt,
|
|
2651
|
+
"df-input": kt,
|
|
2652
|
+
"df-input-hint": te,
|
|
2653
|
+
"df-label": ne,
|
|
2654
|
+
"df-rtf-editor": Ct,
|
|
2655
|
+
"df-select": Vt,
|
|
2656
|
+
"df-text-area": jt
|
|
2657
|
+
}, sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2642
2658
|
__proto__: null
|
|
2643
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2659
|
+
}, Symbol.toStringTag, { value: "Module" })), ua = {
|
|
2644
2660
|
install: (e, t) => {
|
|
2645
2661
|
var n, l;
|
|
2646
|
-
e.use(
|
|
2662
|
+
e.use(xo), e.provide(vt, t != null ? t : {}), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(Tl).map(([a, r]) => e.component(a, r)), (l = t == null ? void 0 : t.registerVuetifyComponents) != null && l && Object.entries(xl).map(([a, r]) => e.component(a, r));
|
|
2647
2663
|
}
|
|
2648
2664
|
};
|
|
2649
2665
|
export {
|
|
2650
|
-
|
|
2666
|
+
De as Action,
|
|
2651
2667
|
J as ActionDisplayStyle,
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2668
|
+
sl as DateTimeLocaleConfig,
|
|
2669
|
+
ht as DfActions,
|
|
2670
|
+
bt as DfCheckbox,
|
|
2671
|
+
gt as DfColor,
|
|
2672
|
+
yt as DfDateTime,
|
|
2673
|
+
wt as DfFile,
|
|
2674
|
+
kt as DfInput,
|
|
2675
|
+
sa as DfInputComponentProps,
|
|
2660
2676
|
Tl as DfInputComponents,
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2677
|
+
te as DfInputHint,
|
|
2678
|
+
ne as DfLabel,
|
|
2679
|
+
Ct as DfRtfEditor,
|
|
2680
|
+
Vt as DfSelect,
|
|
2681
|
+
jt as DfTextArea,
|
|
2682
|
+
ua as DynamicFormsInputs,
|
|
2683
|
+
ze as InputBase,
|
|
2684
|
+
ul as Label,
|
|
2685
|
+
vl as ResponsiveActionRenderOptions,
|
|
2686
|
+
dl as ResponsiveRenderOptions,
|
|
2671
2687
|
xl as VuetifyComponents,
|
|
2672
|
-
|
|
2673
|
-
|
|
2688
|
+
Ie as ckEditorLanguage,
|
|
2689
|
+
se as defaultBaseProps,
|
|
2674
2690
|
nt as defaultDisplayStyle,
|
|
2675
|
-
|
|
2676
|
-
|
|
2691
|
+
ia as dfInputComponentsByTag,
|
|
2692
|
+
ml as getBreakpointName,
|
|
2693
|
+
pt as getRenderOptionsForBreakpoint,
|
|
2677
2694
|
ot as responsiveBreakpoints,
|
|
2678
2695
|
ra as setCkEditorLanguage,
|
|
2679
2696
|
L as translatableStrings,
|
|
2680
2697
|
aa as translateStrings,
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2698
|
+
fl as useBreakpoint,
|
|
2699
|
+
oe as useInputBase,
|
|
2700
|
+
vt as vuetifyInputsSettingsKey
|
|
2684
2701
|
};
|
|
2685
2702
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|