@dynamicforms/vuetify-inputs 0.7.9 → 0.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dynamicforms-vuetify-inputs.css +1 -1
- package/dist/dynamicforms-vuetify-inputs.js +1019 -950
- package/dist/dynamicforms-vuetify-inputs.js.map +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs.map +1 -1
- package/dist/index.d.ts +10 -3
- package/package.json +2 -1
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var ht = Object.defineProperty, bt = Object.defineProperties;
|
|
2
|
+
var gt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var We = Object.getOwnPropertySymbols;
|
|
4
|
+
var wt = Object.prototype.hasOwnProperty, yt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Pe = (e, t, n) => t in e ? ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, I = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
wt.call(t, n) && Pe(e, n, t[n]);
|
|
8
|
+
if (We)
|
|
9
|
+
for (var n of We(t))
|
|
10
|
+
yt.call(t, n) && Pe(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, L = (e, t) => bt(e, gt(t));
|
|
13
|
+
var ge = (e, t, n) => Pe(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
|
+
var Te = (e, t, n) => new Promise((l, a) => {
|
|
15
15
|
var r = (i) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
p(n.next(i));
|
|
18
|
+
} catch (u) {
|
|
19
|
+
a(u);
|
|
20
20
|
}
|
|
21
21
|
}, s = (i) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
p(n.throw(i));
|
|
24
|
+
} catch (u) {
|
|
25
|
+
a(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, p = (i) => i.done ? l(i.value) : Promise.resolve(i.value).then(r, s);
|
|
28
|
+
p((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
31
|
-
import { defineComponent as
|
|
32
|
-
import { debounce as
|
|
33
|
-
import { CachedIcon as
|
|
34
|
-
import
|
|
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
|
|
30
|
+
import * as Oe from "vue";
|
|
31
|
+
import { defineComponent as R, useModel as kt, ref as E, watch as ue, onMounted as tt, markRaw as Vt, onBeforeUnmount as nt, openBlock as V, createBlock as S, resolveDynamicComponent as Ce, mergeModels as ze, version as Ct, isRef as ce, computed as g, unref as o, resolveComponent as M, createElementBlock as z, normalizeClass as te, Fragment as Fe, createCommentVNode as U, createTextVNode as jt, toDisplayString as Ne, inject as Ee, createSlots as Me, withCtx as w, createVNode as D, renderSlot as fe, normalizeProps as re, guardReactiveProps as ie, createElementVNode as de, renderList as Tt, withModifiers as xt, mergeProps as O, mergeDefaults as ne, normalizeStyle as ot, toRefs as De, withKeys as Ke, useCssVars as _t, nextTick as Xe } from "vue";
|
|
32
|
+
import { debounce as Bt, isString as se, isEmpty as Ve, isObjectLike as It, isBoolean as qe, clone as Dt, toNumber as Ge, isNaN as Ye, isArray as Qe, castArray as lt, first as at, unionBy as St } from "lodash-es";
|
|
33
|
+
import { CachedIcon as je } from "vue-cached-icon";
|
|
34
|
+
import Ze, { MessagesWidget as Pt, MdString as Et, ValidationErrorRenderContent as At, DisplayMode as Y, Action as $t } from "@dynamicforms/vue-forms";
|
|
35
|
+
import Ft from "vue-markdown-render";
|
|
36
|
+
import { useDisplay as Mt } from "vuetify";
|
|
37
|
+
import { parse as Nt, format as we } from "date-fns";
|
|
38
|
+
import { AccessibilityHelp as Lt, Alignment as Ut, AutoImage as Rt, AutoLink as Ht, Autosave as Wt, BalloonToolbar as Ot, BlockQuote as zt, Bold as Kt, CloudServices as Xt, Essentials as qt, GeneralHtmlSupport as Gt, Heading as Yt, HorizontalLine as Qt, ImageBlock as Zt, ImageCaption as Jt, ImageInline as en, ImageInsertViaUrl as tn, ImageResize as nn, ImageStyle as on, ImageToolbar as ln, ImageUpload as an, Indent as rn, IndentBlock as sn, Italic as un, Link as cn, List as dn, Autoformat as mn, MediaEmbed as fn, Paragraph as pn, PasteFromMarkdownExperimental as vn, PasteFromOffice as hn, SelectAll as bn, Style as gn, Table as wn, TableCellProperties as yn, TableColumnResize as kn, TableProperties as Vn, TableToolbar as Cn, Undo as jn, TextTransformation as Tn, Base64UploadAdapter as xn, ClassicEditor as _n } from "ckeditor5";
|
|
39
|
+
import { VAutocomplete as Bn } from "vuetify/components/VAutocomplete";
|
|
40
|
+
import { VBtn as In } from "vuetify/components/VBtn";
|
|
41
|
+
import { VCheckbox as Dn } from "vuetify/components/VCheckbox";
|
|
42
|
+
import { VChip as Sn } from "vuetify/components/VChip";
|
|
43
|
+
import { VCombobox as Pn } from "vuetify/components/VCombobox";
|
|
44
|
+
import { VColorPicker as En } from "vuetify/components/VColorPicker";
|
|
45
|
+
import { VConfirmEdit as An } from "vuetify/components/VConfirmEdit";
|
|
46
|
+
import { VDatePicker as $n } from "vuetify/components/VDatePicker";
|
|
47
|
+
import { VField as Fn } from "vuetify/components/VField";
|
|
48
|
+
import { VFileInput as Mn } from "vuetify/components/VFileInput";
|
|
49
|
+
import { VCol as Nn, VRow as Ln } from "vuetify/components/VGrid";
|
|
50
|
+
import { VIcon as Un } from "vuetify/components/VIcon";
|
|
51
|
+
import { VImg as Rn } from "vuetify/components/VImg";
|
|
52
|
+
import { VInput as Hn } from "vuetify/components/VInput";
|
|
53
|
+
import { VListItem as Wn } from "vuetify/components/VList";
|
|
54
|
+
import { VMenu as On } from "vuetify/components/VMenu";
|
|
55
|
+
import { VNumberInput as zn } from "vuetify/components/VNumberInput";
|
|
56
|
+
import { VProgressLinear as Kn } from "vuetify/components/VProgressLinear";
|
|
57
|
+
import { VSelect as Xn } from "vuetify/components/VSelect";
|
|
58
|
+
import { VSwitch as qn } from "vuetify/components/VSwitch";
|
|
59
|
+
import { VTextarea as Gn } from "vuetify/components/VTextarea";
|
|
60
|
+
import { VTextField as Yn } from "vuetify/components/VTextField";
|
|
61
|
+
import { VTimePicker as Qn } from "vuetify/components/VTimePicker";
|
|
62
62
|
new Array(256).fill("").map((e, t) => ("0" + t.toString(16)).slice(-2));
|
|
63
|
-
function
|
|
64
|
-
const n = e.extraPlugins || [];
|
|
65
|
-
return O(S({}, e), {
|
|
66
|
-
extraPlugins: [
|
|
67
|
-
...n,
|
|
68
|
-
...t.filter((a) => !n.includes(a))
|
|
69
|
-
]
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
function Qe(e) {
|
|
63
|
+
function Le(e) {
|
|
73
64
|
return !!e && /^\d+\.\d+\.\d+/.test(e);
|
|
74
65
|
}
|
|
75
|
-
function
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
function Mn(e) {
|
|
79
|
-
return Qe(e) || Ze(e);
|
|
80
|
-
}
|
|
81
|
-
function Ln(e) {
|
|
82
|
-
if (!Qe(e))
|
|
66
|
+
function rt(e) {
|
|
67
|
+
if (!Le(e))
|
|
83
68
|
throw new Error(`Invalid semantic version: ${e || "<blank>"}.`);
|
|
84
|
-
const [t, n,
|
|
69
|
+
const [t, n, l] = e.split(".");
|
|
85
70
|
return {
|
|
86
71
|
major: Number.parseInt(t, 10),
|
|
87
72
|
minor: Number.parseInt(n, 10),
|
|
88
|
-
patch: Number.parseInt(
|
|
73
|
+
patch: Number.parseInt(l, 10)
|
|
89
74
|
};
|
|
90
75
|
}
|
|
91
|
-
function
|
|
92
|
-
|
|
76
|
+
function Ue(e) {
|
|
77
|
+
return e ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((t) => e.includes(t)) : !1;
|
|
78
|
+
}
|
|
79
|
+
function Zn(e) {
|
|
80
|
+
return Le(e) || Ue(e);
|
|
81
|
+
}
|
|
82
|
+
function Jn(e, t) {
|
|
83
|
+
const n = e.extraPlugins || [];
|
|
84
|
+
return L(I({}, e), {
|
|
85
|
+
extraPlugins: [
|
|
86
|
+
...n,
|
|
87
|
+
...t.filter((l) => !n.includes(l))
|
|
88
|
+
]
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function eo(e) {
|
|
92
|
+
if (Ue(e))
|
|
93
93
|
return 3;
|
|
94
|
-
const { major: t } =
|
|
94
|
+
const { major: t } = rt(e);
|
|
95
95
|
switch (!0) {
|
|
96
96
|
case t >= 44:
|
|
97
97
|
return 3;
|
|
@@ -101,19 +101,19 @@ function Un(e) {
|
|
|
101
101
|
return 1;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function it() {
|
|
105
105
|
const { CKEDITOR_VERSION: e, CKEDITOR: t } = window;
|
|
106
|
-
return
|
|
106
|
+
return Zn(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 to() {
|
|
112
|
+
const e = it();
|
|
113
|
+
return e ? eo(e.version) : null;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
switch (t || (t =
|
|
115
|
+
function st(e, t) {
|
|
116
|
+
switch (t || (t = to() || void 0), t) {
|
|
117
117
|
case 1:
|
|
118
118
|
case 2:
|
|
119
119
|
return e === void 0;
|
|
@@ -123,34 +123,58 @@ function Je(e, t) {
|
|
|
123
123
|
return !1;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
return function(
|
|
128
|
-
|
|
126
|
+
function no(e, t) {
|
|
127
|
+
return function(l) {
|
|
128
|
+
st(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 oo = no(
|
|
134
134
|
"vue",
|
|
135
135
|
{
|
|
136
|
-
version: "7.
|
|
137
|
-
frameworkVersion:
|
|
136
|
+
version: "7.4.0",
|
|
137
|
+
frameworkVersion: Ct
|
|
138
138
|
}
|
|
139
139
|
);
|
|
140
|
-
function
|
|
141
|
-
return
|
|
140
|
+
function lo(e) {
|
|
141
|
+
return st(e.licenseKey) ? e : Jn(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
|
+
oo
|
|
148
148
|
]);
|
|
149
149
|
}
|
|
150
|
-
|
|
150
|
+
function ao(e, t) {
|
|
151
|
+
var n;
|
|
152
|
+
if (ut()) {
|
|
153
|
+
const l = L(I({}, e), {
|
|
154
|
+
roots: L(I({}, e.roots), {
|
|
155
|
+
main: L(I(I({}, e.root), (n = e.roots) == null ? void 0 : n.main), {
|
|
156
|
+
initialData: t
|
|
157
|
+
})
|
|
158
|
+
})
|
|
159
|
+
});
|
|
160
|
+
return delete l.root, delete l.initialData, l;
|
|
161
|
+
}
|
|
162
|
+
return L(I({}, e), {
|
|
163
|
+
initialData: t
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
function ro(e) {
|
|
167
|
+
var t, n;
|
|
168
|
+
return ut() ? (n = (t = e.roots) == null ? void 0 : t.main) == null ? void 0 : n.initialData : e.initialData;
|
|
169
|
+
}
|
|
170
|
+
function ut() {
|
|
171
|
+
const e = it();
|
|
172
|
+
return e ? !Le(e.version) || Ue(e.version) || rt(e.version).major >= 48 : !1;
|
|
173
|
+
}
|
|
174
|
+
const Ae = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", io = 300, so = /* @__PURE__ */ R({
|
|
151
175
|
name: "CKEditor",
|
|
152
176
|
__name: "ckeditor",
|
|
153
|
-
props: /* @__PURE__ */
|
|
177
|
+
props: /* @__PURE__ */ ze({
|
|
154
178
|
editor: {},
|
|
155
179
|
config: { default: () => ({}) },
|
|
156
180
|
tagName: { default: "div" },
|
|
@@ -160,72 +184,72 @@ const xe = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Kn = 300, Xn =
|
|
|
160
184
|
modelValue: { type: String, default: "" },
|
|
161
185
|
modelModifiers: {}
|
|
162
186
|
}),
|
|
163
|
-
emits: /* @__PURE__ */
|
|
187
|
+
emits: /* @__PURE__ */ ze(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
|
|
164
188
|
setup(e, { expose: t, emit: n }) {
|
|
165
|
-
const
|
|
189
|
+
const l = kt(e, "modelValue"), a = e, r = n, s = E(), p = E(), i = E();
|
|
166
190
|
t({
|
|
167
|
-
instance:
|
|
191
|
+
instance: p,
|
|
168
192
|
lastEditorData: i
|
|
169
|
-
}), ue(
|
|
170
|
-
|
|
171
|
-
}), ue(() =>
|
|
172
|
-
|
|
193
|
+
}), ue(l, (f) => {
|
|
194
|
+
p.value && f !== i.value && p.value.data.set(f);
|
|
195
|
+
}), ue(() => a.disabled, (f) => {
|
|
196
|
+
f ? p.value.enableReadOnlyMode(Ae) : p.value.disableReadOnlyMode(Ae);
|
|
173
197
|
});
|
|
174
|
-
function
|
|
175
|
-
const
|
|
176
|
-
if (!
|
|
198
|
+
function u() {
|
|
199
|
+
const f = window.CKEDITOR_VERSION;
|
|
200
|
+
if (!f)
|
|
177
201
|
return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
|
|
178
|
-
const [
|
|
179
|
-
|
|
202
|
+
const [k] = f.split(".").map(Number);
|
|
203
|
+
k >= 42 || f.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
180
204
|
}
|
|
181
|
-
function
|
|
182
|
-
const
|
|
183
|
-
if (
|
|
205
|
+
function h(f) {
|
|
206
|
+
const k = Bt((d) => {
|
|
207
|
+
if (a.disableTwoWayDataBinding)
|
|
184
208
|
return;
|
|
185
|
-
const
|
|
186
|
-
r("update:modelValue",
|
|
187
|
-
},
|
|
188
|
-
|
|
189
|
-
r("focus", d,
|
|
190
|
-
}),
|
|
191
|
-
r("blur", d,
|
|
209
|
+
const T = i.value = f.data.get();
|
|
210
|
+
r("update:modelValue", T, d, f), r("input", T, d, f);
|
|
211
|
+
}, io, { leading: !0 });
|
|
212
|
+
f.model.document.on("change:data", k), f.editing.view.document.on("focus", (d) => {
|
|
213
|
+
r("focus", d, f);
|
|
214
|
+
}), f.editing.view.document.on("blur", (d) => {
|
|
215
|
+
r("blur", d, f);
|
|
192
216
|
});
|
|
193
217
|
}
|
|
194
|
-
return
|
|
195
|
-
|
|
196
|
-
Object.assign({},
|
|
218
|
+
return u(), tt(() => {
|
|
219
|
+
let f = lo(
|
|
220
|
+
Object.assign({}, a.config)
|
|
197
221
|
);
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}).catch((
|
|
201
|
-
console.error(
|
|
222
|
+
l.value && (f = ao(f, l.value)), a.editor.create(s.value, f).then((k) => {
|
|
223
|
+
p.value = Vt(k), h(k), l.value !== ro(f) && k.data.set(l.value), a.disabled && k.enableReadOnlyMode(Ae), r("ready", k);
|
|
224
|
+
}).catch((k) => {
|
|
225
|
+
console.error(k);
|
|
202
226
|
});
|
|
203
|
-
}),
|
|
204
|
-
|
|
205
|
-
}), (
|
|
227
|
+
}), nt(() => {
|
|
228
|
+
p.value && (p.value.destroy(), p.value = void 0), r("destroy");
|
|
229
|
+
}), (f, k) => (V(), S(Ce(e.tagName), {
|
|
206
230
|
ref_key: "element",
|
|
207
231
|
ref: s
|
|
208
232
|
}, null, 512));
|
|
209
233
|
}
|
|
210
234
|
});
|
|
211
|
-
if (!
|
|
235
|
+
if (!Oe.version || !Oe.version.startsWith("3."))
|
|
212
236
|
throw new Error(
|
|
213
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"
|
|
214
238
|
);
|
|
215
|
-
const
|
|
239
|
+
const uo = {
|
|
216
240
|
/**
|
|
217
241
|
* Installs the plugin, registering the `<ckeditor>` component.
|
|
218
242
|
*
|
|
219
243
|
* @param app The application instance.
|
|
220
244
|
*/
|
|
221
245
|
install(e) {
|
|
222
|
-
e.component("Ckeditor",
|
|
246
|
+
e.component("Ckeditor", so);
|
|
223
247
|
}
|
|
224
248
|
};
|
|
225
|
-
function
|
|
249
|
+
function co(e) {
|
|
226
250
|
return e.one !== void 0;
|
|
227
251
|
}
|
|
228
|
-
const
|
|
252
|
+
const mo = {
|
|
229
253
|
lessThanXSeconds: {
|
|
230
254
|
present: {
|
|
231
255
|
one: "manj kot {{count}} sekunda",
|
|
@@ -502,7 +526,7 @@ const Yn = {
|
|
|
502
526
|
}
|
|
503
527
|
}
|
|
504
528
|
};
|
|
505
|
-
function
|
|
529
|
+
function fo(e) {
|
|
506
530
|
switch (e % 100) {
|
|
507
531
|
case 1:
|
|
508
532
|
return "one";
|
|
@@ -515,53 +539,53 @@ function Qn(e) {
|
|
|
515
539
|
return "other";
|
|
516
540
|
}
|
|
517
541
|
}
|
|
518
|
-
const
|
|
519
|
-
let
|
|
520
|
-
n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (
|
|
521
|
-
const r =
|
|
542
|
+
const po = (e, t, n) => {
|
|
543
|
+
let l = "", a = "present";
|
|
544
|
+
n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (a = "future", l = "čez ") : (a = "past", l = "pred "));
|
|
545
|
+
const r = mo[e];
|
|
522
546
|
if (typeof r == "string")
|
|
523
|
-
|
|
547
|
+
l += r;
|
|
524
548
|
else {
|
|
525
|
-
const s =
|
|
526
|
-
|
|
549
|
+
const s = fo(t);
|
|
550
|
+
co(r) ? l += r[s].replace("{{count}}", String(t)) : l += r[a][s].replace("{{count}}", String(t));
|
|
527
551
|
}
|
|
528
|
-
return
|
|
552
|
+
return l;
|
|
529
553
|
};
|
|
530
|
-
function
|
|
554
|
+
function $e(e) {
|
|
531
555
|
return (t = {}) => {
|
|
532
556
|
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
533
557
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
534
558
|
};
|
|
535
559
|
}
|
|
536
|
-
const
|
|
560
|
+
const vo = {
|
|
537
561
|
full: "EEEE, dd. MMMM y",
|
|
538
562
|
long: "dd. MMMM y",
|
|
539
563
|
medium: "d. MMM y",
|
|
540
564
|
short: "d. MM. yy"
|
|
541
|
-
},
|
|
565
|
+
}, ho = {
|
|
542
566
|
full: "HH:mm:ss zzzz",
|
|
543
567
|
long: "HH:mm:ss z",
|
|
544
568
|
medium: "HH:mm:ss",
|
|
545
569
|
short: "HH:mm"
|
|
546
|
-
},
|
|
570
|
+
}, bo = {
|
|
547
571
|
full: "{{date}} {{time}}",
|
|
548
572
|
long: "{{date}} {{time}}",
|
|
549
573
|
medium: "{{date}} {{time}}",
|
|
550
574
|
short: "{{date}} {{time}}"
|
|
551
|
-
},
|
|
552
|
-
date:
|
|
553
|
-
formats:
|
|
575
|
+
}, go = {
|
|
576
|
+
date: $e({
|
|
577
|
+
formats: vo,
|
|
554
578
|
defaultWidth: "full"
|
|
555
579
|
}),
|
|
556
|
-
time:
|
|
557
|
-
formats:
|
|
580
|
+
time: $e({
|
|
581
|
+
formats: ho,
|
|
558
582
|
defaultWidth: "full"
|
|
559
583
|
}),
|
|
560
|
-
dateTime:
|
|
561
|
-
formats:
|
|
584
|
+
dateTime: $e({
|
|
585
|
+
formats: bo,
|
|
562
586
|
defaultWidth: "full"
|
|
563
587
|
})
|
|
564
|
-
},
|
|
588
|
+
}, wo = {
|
|
565
589
|
lastWeek: (e) => {
|
|
566
590
|
switch (e.getDay()) {
|
|
567
591
|
case 0:
|
|
@@ -590,34 +614,34 @@ const Jn = {
|
|
|
590
614
|
}
|
|
591
615
|
},
|
|
592
616
|
other: "P"
|
|
593
|
-
},
|
|
594
|
-
const
|
|
595
|
-
return typeof
|
|
617
|
+
}, yo = (e, t, n, l) => {
|
|
618
|
+
const a = wo[e];
|
|
619
|
+
return typeof a == "function" ? a(t) : a;
|
|
596
620
|
};
|
|
597
|
-
function
|
|
621
|
+
function ye(e) {
|
|
598
622
|
return (t, n) => {
|
|
599
|
-
const
|
|
600
|
-
let
|
|
601
|
-
if (
|
|
602
|
-
const s = e.defaultFormattingWidth || e.defaultWidth,
|
|
603
|
-
|
|
623
|
+
const l = n != null && n.context ? String(n.context) : "standalone";
|
|
624
|
+
let a;
|
|
625
|
+
if (l === "formatting" && e.formattingValues) {
|
|
626
|
+
const s = e.defaultFormattingWidth || e.defaultWidth, p = n != null && n.width ? String(n.width) : s;
|
|
627
|
+
a = e.formattingValues[p] || e.formattingValues[s];
|
|
604
628
|
} else {
|
|
605
|
-
const s = e.defaultWidth,
|
|
606
|
-
|
|
629
|
+
const s = e.defaultWidth, p = n != null && n.width ? String(n.width) : e.defaultWidth;
|
|
630
|
+
a = e.values[p] || e.values[s];
|
|
607
631
|
}
|
|
608
632
|
const r = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
609
|
-
return
|
|
633
|
+
return a[r];
|
|
610
634
|
};
|
|
611
635
|
}
|
|
612
|
-
const
|
|
636
|
+
const ko = {
|
|
613
637
|
narrow: ["pr. n. št.", "po n. št."],
|
|
614
638
|
abbreviated: ["pr. n. št.", "po n. št."],
|
|
615
639
|
wide: ["pred našim štetjem", "po našem štetju"]
|
|
616
|
-
},
|
|
640
|
+
}, Vo = {
|
|
617
641
|
narrow: ["1", "2", "3", "4"],
|
|
618
642
|
abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."],
|
|
619
643
|
wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"]
|
|
620
|
-
},
|
|
644
|
+
}, Co = {
|
|
621
645
|
narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
|
622
646
|
abbreviated: [
|
|
623
647
|
"jan.",
|
|
@@ -647,7 +671,7 @@ const lo = {
|
|
|
647
671
|
"november",
|
|
648
672
|
"december"
|
|
649
673
|
]
|
|
650
|
-
},
|
|
674
|
+
}, jo = {
|
|
651
675
|
narrow: ["n", "p", "t", "s", "č", "p", "s"],
|
|
652
676
|
short: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
|
653
677
|
abbreviated: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
|
@@ -660,7 +684,7 @@ const lo = {
|
|
|
660
684
|
"petek",
|
|
661
685
|
"sobota"
|
|
662
686
|
]
|
|
663
|
-
},
|
|
687
|
+
}, To = {
|
|
664
688
|
narrow: {
|
|
665
689
|
am: "d",
|
|
666
690
|
pm: "p",
|
|
@@ -691,7 +715,7 @@ const lo = {
|
|
|
691
715
|
evening: "večer",
|
|
692
716
|
night: "noč"
|
|
693
717
|
}
|
|
694
|
-
},
|
|
718
|
+
}, xo = {
|
|
695
719
|
narrow: {
|
|
696
720
|
am: "d",
|
|
697
721
|
pm: "p",
|
|
@@ -722,88 +746,88 @@ const lo = {
|
|
|
722
746
|
evening: "zvečer",
|
|
723
747
|
night: "ponoči"
|
|
724
748
|
}
|
|
725
|
-
},
|
|
726
|
-
ordinalNumber:
|
|
727
|
-
era:
|
|
728
|
-
values:
|
|
749
|
+
}, _o = (e, t) => Number(e) + ".", Bo = {
|
|
750
|
+
ordinalNumber: _o,
|
|
751
|
+
era: ye({
|
|
752
|
+
values: ko,
|
|
729
753
|
defaultWidth: "wide"
|
|
730
754
|
}),
|
|
731
|
-
quarter:
|
|
732
|
-
values:
|
|
755
|
+
quarter: ye({
|
|
756
|
+
values: Vo,
|
|
733
757
|
defaultWidth: "wide",
|
|
734
758
|
argumentCallback: (e) => e - 1
|
|
735
759
|
}),
|
|
736
|
-
month:
|
|
737
|
-
values:
|
|
760
|
+
month: ye({
|
|
761
|
+
values: Co,
|
|
738
762
|
defaultWidth: "wide"
|
|
739
763
|
}),
|
|
740
|
-
day:
|
|
741
|
-
values:
|
|
764
|
+
day: ye({
|
|
765
|
+
values: jo,
|
|
742
766
|
defaultWidth: "wide"
|
|
743
767
|
}),
|
|
744
|
-
dayPeriod:
|
|
745
|
-
values:
|
|
768
|
+
dayPeriod: ye({
|
|
769
|
+
values: To,
|
|
746
770
|
defaultWidth: "wide",
|
|
747
|
-
formattingValues:
|
|
771
|
+
formattingValues: xo,
|
|
748
772
|
defaultFormattingWidth: "wide"
|
|
749
773
|
})
|
|
750
774
|
};
|
|
751
|
-
function
|
|
775
|
+
function ke(e) {
|
|
752
776
|
return (t, n = {}) => {
|
|
753
|
-
const
|
|
777
|
+
const l = n.width, a = l && e.matchPatterns[l] || e.matchPatterns[e.defaultMatchWidth], r = t.match(a);
|
|
754
778
|
if (!r)
|
|
755
779
|
return null;
|
|
756
|
-
const s = r[0],
|
|
780
|
+
const s = r[0], p = l && e.parsePatterns[l] || e.parsePatterns[e.defaultParseWidth], i = Array.isArray(p) ? Do(p, (f) => f.test(s)) : (
|
|
757
781
|
// [TODO] -- I challenge you to fix the type
|
|
758
|
-
|
|
782
|
+
Io(p, (f) => f.test(s))
|
|
759
783
|
);
|
|
760
|
-
let
|
|
761
|
-
|
|
784
|
+
let u;
|
|
785
|
+
u = e.valueCallback ? e.valueCallback(i) : i, u = n.valueCallback ? (
|
|
762
786
|
// [TODO] -- I challenge you to fix the type
|
|
763
|
-
n.valueCallback(
|
|
764
|
-
) :
|
|
765
|
-
const
|
|
766
|
-
return { value:
|
|
787
|
+
n.valueCallback(u)
|
|
788
|
+
) : u;
|
|
789
|
+
const h = t.slice(s.length);
|
|
790
|
+
return { value: u, rest: h };
|
|
767
791
|
};
|
|
768
792
|
}
|
|
769
|
-
function
|
|
793
|
+
function Io(e, t) {
|
|
770
794
|
for (const n in e)
|
|
771
795
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
772
796
|
return n;
|
|
773
797
|
}
|
|
774
|
-
function
|
|
798
|
+
function Do(e, t) {
|
|
775
799
|
for (let n = 0; n < e.length; n++)
|
|
776
800
|
if (t(e[n]))
|
|
777
801
|
return n;
|
|
778
802
|
}
|
|
779
|
-
function
|
|
803
|
+
function So(e) {
|
|
780
804
|
return (t, n = {}) => {
|
|
781
|
-
const
|
|
782
|
-
if (!
|
|
783
|
-
const
|
|
805
|
+
const l = t.match(e.matchPattern);
|
|
806
|
+
if (!l) return null;
|
|
807
|
+
const a = l[0], r = t.match(e.parsePattern);
|
|
784
808
|
if (!r) return null;
|
|
785
809
|
let s = e.valueCallback ? e.valueCallback(r[0]) : r[0];
|
|
786
810
|
s = n.valueCallback ? n.valueCallback(s) : s;
|
|
787
|
-
const
|
|
788
|
-
return { value: s, rest:
|
|
811
|
+
const p = t.slice(a.length);
|
|
812
|
+
return { value: s, rest: p };
|
|
789
813
|
};
|
|
790
814
|
}
|
|
791
|
-
const
|
|
815
|
+
const Po = /^(\d+)\./i, Eo = /\d+/i, Ao = {
|
|
792
816
|
abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
|
|
793
817
|
wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
|
|
794
|
-
},
|
|
818
|
+
}, $o = {
|
|
795
819
|
any: [/^pr/i, /^(po|na[sš]em)/i]
|
|
796
|
-
},
|
|
820
|
+
}, Fo = {
|
|
797
821
|
narrow: /^[1234]/i,
|
|
798
822
|
abbreviated: /^[1234]\.\s?[čc]et\.?/i,
|
|
799
823
|
wide: /^[1234]\. [čc]etrtletje/i
|
|
800
|
-
},
|
|
824
|
+
}, Mo = {
|
|
801
825
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
802
|
-
},
|
|
826
|
+
}, No = {
|
|
803
827
|
narrow: /^[jfmasond]/i,
|
|
804
828
|
abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,
|
|
805
829
|
wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i
|
|
806
|
-
},
|
|
830
|
+
}, Lo = {
|
|
807
831
|
narrow: [
|
|
808
832
|
/^j/i,
|
|
809
833
|
/^f/i,
|
|
@@ -846,18 +870,18 @@ const bo = /^(\d+)\./i, go = /\d+/i, wo = {
|
|
|
846
870
|
/^n/i,
|
|
847
871
|
/^d/i
|
|
848
872
|
]
|
|
849
|
-
},
|
|
873
|
+
}, Uo = {
|
|
850
874
|
narrow: /^[nptsčc]/i,
|
|
851
875
|
short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
852
876
|
abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
853
877
|
wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i
|
|
854
|
-
},
|
|
878
|
+
}, Ro = {
|
|
855
879
|
narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i],
|
|
856
880
|
any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i]
|
|
857
|
-
},
|
|
881
|
+
}, Ho = {
|
|
858
882
|
narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
|
|
859
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
|
|
860
|
-
},
|
|
884
|
+
}, Wo = {
|
|
861
885
|
narrow: {
|
|
862
886
|
am: /^d/i,
|
|
863
887
|
pm: /^p/i,
|
|
@@ -878,60 +902,60 @@ const bo = /^(\d+)\./i, go = /\d+/i, wo = {
|
|
|
878
902
|
evening: /^z?ve/i,
|
|
879
903
|
night: /(po)?no/i
|
|
880
904
|
}
|
|
881
|
-
},
|
|
882
|
-
ordinalNumber:
|
|
883
|
-
matchPattern:
|
|
884
|
-
parsePattern:
|
|
905
|
+
}, Oo = {
|
|
906
|
+
ordinalNumber: So({
|
|
907
|
+
matchPattern: Po,
|
|
908
|
+
parsePattern: Eo,
|
|
885
909
|
valueCallback: (e) => parseInt(e, 10)
|
|
886
910
|
}),
|
|
887
|
-
era:
|
|
888
|
-
matchPatterns:
|
|
911
|
+
era: ke({
|
|
912
|
+
matchPatterns: Ao,
|
|
889
913
|
defaultMatchWidth: "wide",
|
|
890
|
-
parsePatterns:
|
|
914
|
+
parsePatterns: $o,
|
|
891
915
|
defaultParseWidth: "any"
|
|
892
916
|
}),
|
|
893
|
-
quarter:
|
|
894
|
-
matchPatterns:
|
|
917
|
+
quarter: ke({
|
|
918
|
+
matchPatterns: Fo,
|
|
895
919
|
defaultMatchWidth: "wide",
|
|
896
|
-
parsePatterns:
|
|
920
|
+
parsePatterns: Mo,
|
|
897
921
|
defaultParseWidth: "any",
|
|
898
922
|
valueCallback: (e) => e + 1
|
|
899
923
|
}),
|
|
900
|
-
month:
|
|
901
|
-
matchPatterns:
|
|
924
|
+
month: ke({
|
|
925
|
+
matchPatterns: No,
|
|
902
926
|
defaultMatchWidth: "wide",
|
|
903
|
-
parsePatterns:
|
|
927
|
+
parsePatterns: Lo,
|
|
904
928
|
defaultParseWidth: "wide"
|
|
905
929
|
}),
|
|
906
|
-
day:
|
|
907
|
-
matchPatterns:
|
|
930
|
+
day: ke({
|
|
931
|
+
matchPatterns: Uo,
|
|
908
932
|
defaultMatchWidth: "wide",
|
|
909
|
-
parsePatterns:
|
|
933
|
+
parsePatterns: Ro,
|
|
910
934
|
defaultParseWidth: "any"
|
|
911
935
|
}),
|
|
912
|
-
dayPeriod:
|
|
913
|
-
matchPatterns:
|
|
936
|
+
dayPeriod: ke({
|
|
937
|
+
matchPatterns: Ho,
|
|
914
938
|
defaultMatchWidth: "any",
|
|
915
|
-
parsePatterns:
|
|
939
|
+
parsePatterns: Wo,
|
|
916
940
|
defaultParseWidth: "any"
|
|
917
941
|
})
|
|
918
|
-
},
|
|
942
|
+
}, zo = {
|
|
919
943
|
code: "sl",
|
|
920
|
-
formatDistance:
|
|
921
|
-
formatLong:
|
|
922
|
-
formatRelative:
|
|
923
|
-
localize:
|
|
924
|
-
match:
|
|
944
|
+
formatDistance: po,
|
|
945
|
+
formatLong: go,
|
|
946
|
+
formatRelative: yo,
|
|
947
|
+
localize: Bo,
|
|
948
|
+
match: Oo,
|
|
925
949
|
options: {
|
|
926
950
|
weekStartsOn: 1,
|
|
927
951
|
firstWeekContainsDate: 1
|
|
928
952
|
}
|
|
929
|
-
},
|
|
930
|
-
dateTimeLocale:
|
|
953
|
+
}, Ko = {
|
|
954
|
+
dateTimeLocale: E(zo),
|
|
931
955
|
setDateTimeLocale(e) {
|
|
932
|
-
|
|
956
|
+
ce(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
|
|
933
957
|
}
|
|
934
|
-
},
|
|
958
|
+
}, ee = /* @__PURE__ */ R({
|
|
935
959
|
__name: "df-input-hint",
|
|
936
960
|
props: {
|
|
937
961
|
errors: { default: "" },
|
|
@@ -940,13 +964,13 @@ const bo = /^(\d+)\./i, go = /\d+/i, wo = {
|
|
|
940
964
|
messageClasses: { default: "" }
|
|
941
965
|
},
|
|
942
966
|
setup(e) {
|
|
943
|
-
const t = e, n =
|
|
944
|
-
return (r, s) => (V(),
|
|
945
|
-
message:
|
|
946
|
-
classes:
|
|
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, s) => (V(), S(o(Pt), {
|
|
969
|
+
message: l.value,
|
|
970
|
+
classes: a.value
|
|
947
971
|
}, null, 8, ["message", "classes"]));
|
|
948
972
|
}
|
|
949
|
-
}),
|
|
973
|
+
}), me = /* @__PURE__ */ R({
|
|
950
974
|
__name: "df-label",
|
|
951
975
|
props: {
|
|
952
976
|
data: {},
|
|
@@ -954,116 +978,119 @@ const bo = /^(\d+)\./i, go = /\d+/i, wo = {
|
|
|
954
978
|
allowWrap: { type: Boolean }
|
|
955
979
|
},
|
|
956
980
|
setup(e) {
|
|
957
|
-
const t = e, n =
|
|
958
|
-
return (
|
|
959
|
-
const r =
|
|
960
|
-
return V(),
|
|
961
|
-
class:
|
|
981
|
+
const t = e, n = g(() => t.data ? t.data.label : t.label.text);
|
|
982
|
+
return (l, a) => {
|
|
983
|
+
const r = M("v-img");
|
|
984
|
+
return V(), z("div", {
|
|
985
|
+
class: te(["df-label", { "allow-wrap": e.allowWrap }])
|
|
962
986
|
}, [
|
|
963
|
-
e.label.icon ? (V(),
|
|
964
|
-
e.label.iconComponent === "v-icon" ? (V(),
|
|
987
|
+
e.label.icon ? (V(), z(Fe, { key: 0 }, [
|
|
988
|
+
e.label.iconComponent === "v-icon" ? (V(), S(o(je), {
|
|
965
989
|
key: 0,
|
|
966
990
|
name: e.label.icon,
|
|
967
991
|
size: "1.25em"
|
|
968
|
-
}, null, 8, ["name"])) : e.label.iconComponent === "v-img" ? (V(),
|
|
992
|
+
}, null, 8, ["name"])) : e.label.iconComponent === "v-img" ? (V(), S(r, {
|
|
969
993
|
key: 1,
|
|
970
994
|
class: "icon",
|
|
971
995
|
src: e.label.icon
|
|
972
|
-
}, null, 8, ["src"])) : (V(),
|
|
996
|
+
}, null, 8, ["src"])) : (V(), S(Ce(e.label.iconComponent), {
|
|
973
997
|
key: 2,
|
|
974
998
|
src: e.label.icon
|
|
975
999
|
}, null, 8, ["src"]))
|
|
976
1000
|
], 64)) : U("", !0),
|
|
977
|
-
n.value instanceof o(
|
|
1001
|
+
n.value instanceof o(Et) ? (V(), S(o(Ft), {
|
|
978
1002
|
key: 1,
|
|
979
1003
|
class: "markdown",
|
|
980
1004
|
source: n.value.toString(),
|
|
981
1005
|
options: n.value.options,
|
|
982
1006
|
plugins: n.value.plugins
|
|
983
|
-
}, null, 8, ["source", "options", "plugins"])) : (V(),
|
|
984
|
-
|
|
1007
|
+
}, null, 8, ["source", "options", "plugins"])) : (V(), z(Fe, { key: 2 }, [
|
|
1008
|
+
jt(Ne(n.value), 1)
|
|
985
1009
|
], 64))
|
|
986
1010
|
], 2);
|
|
987
1011
|
};
|
|
988
1012
|
}
|
|
989
|
-
}),
|
|
990
|
-
class
|
|
991
|
-
constructor(t, n,
|
|
992
|
-
this
|
|
1013
|
+
}), ct = /* @__PURE__ */ Symbol("vuetifyInputsSettingsKey");
|
|
1014
|
+
class Xo {
|
|
1015
|
+
constructor(t, n, l = "v-icon") {
|
|
1016
|
+
ge(this, "text");
|
|
1017
|
+
ge(this, "icon");
|
|
1018
|
+
ge(this, "iconComponent");
|
|
1019
|
+
this.text = t, this.icon = n, this.iconComponent = l;
|
|
993
1020
|
}
|
|
994
1021
|
}
|
|
995
|
-
const
|
|
996
|
-
function
|
|
997
|
-
const n =
|
|
1022
|
+
const oe = { enabled: void 0, clearable: !0 };
|
|
1023
|
+
function Q(e, t) {
|
|
1024
|
+
const n = Ee(ct, {}), l = E(null), a = g({
|
|
998
1025
|
get() {
|
|
999
|
-
return e.control ? e.control.value : e.modelValue === void 0 ?
|
|
1026
|
+
return e.control ? e.control.value : e.modelValue === void 0 ? l.value : e.modelValue;
|
|
1000
1027
|
},
|
|
1001
|
-
set(
|
|
1002
|
-
e.control && (e.control.value =
|
|
1028
|
+
set(b) {
|
|
1029
|
+
e.control && (e.control.value = b), e.modelValue === void 0 && (l.value = b), t("update:modelValue", b);
|
|
1003
1030
|
}
|
|
1004
1031
|
});
|
|
1005
|
-
if (e.control && !(e.control instanceof
|
|
1032
|
+
if (e.control && !(e.control instanceof Ze.FieldBase))
|
|
1006
1033
|
throw new Error("control prop is not a vue-form control instance");
|
|
1007
|
-
const r =
|
|
1034
|
+
const r = g({
|
|
1008
1035
|
get() {
|
|
1009
1036
|
return e.control.touched;
|
|
1010
1037
|
},
|
|
1011
|
-
set(
|
|
1012
|
-
e.control.touched =
|
|
1038
|
+
set(b) {
|
|
1039
|
+
e.control.touched = b;
|
|
1013
1040
|
}
|
|
1014
|
-
}), s = e.control ? r :
|
|
1015
|
-
() => e.control ? e.control.errors : (e.errors || []).map((
|
|
1016
|
-
),
|
|
1017
|
-
() => e.control ? e.control.visibility : e.visibility ||
|
|
1018
|
-
), d =
|
|
1019
|
-
() =>
|
|
1020
|
-
),
|
|
1041
|
+
}), s = e.control ? r : E(!1), p = g(() => e.control ? e.control.valid : !0), i = g(
|
|
1042
|
+
() => e.control ? e.control.errors : (e.errors || []).map((b) => new At(b))
|
|
1043
|
+
), u = g(() => s.value && i.value.length > 0 ? " " : void 0), h = g(() => s.value ? i.value : void 0), f = g(() => e.control ? e.control.enabled : e.enabled !== !1), k = g(
|
|
1044
|
+
() => e.control ? e.control.visibility : e.visibility || Ze.DisplayMode.FULL
|
|
1045
|
+
), d = g(
|
|
1046
|
+
() => se(e.label || "") ? new Xo(e.label || "") : e.label
|
|
1047
|
+
), T = g(() => e.placeholder || ""), x = g(() => e.helpText || ""), C = g(() => e.hint || ""), m = g(() => e.cssClass || ""), P = g(
|
|
1021
1048
|
() => {
|
|
1022
|
-
var
|
|
1023
|
-
return (
|
|
1049
|
+
var b, N, v;
|
|
1050
|
+
return (v = (N = (b = e.density) != null ? b : Ee("field-density", null)) != null ? N : n.defaultDensity) != null ? v : "default";
|
|
1024
1051
|
}
|
|
1025
|
-
),
|
|
1052
|
+
), H = g(() => P.value === "inline" ? "default" : P.value), A = g(
|
|
1026
1053
|
() => {
|
|
1027
|
-
var
|
|
1028
|
-
return (
|
|
1054
|
+
var b, N, v;
|
|
1055
|
+
return (v = (N = (b = e.variant) != null ? b : Ee("field-variant", null)) != null ? N : n.defaultVariant) != null ? v : "underlined";
|
|
1029
1056
|
}
|
|
1030
1057
|
);
|
|
1031
1058
|
return {
|
|
1032
|
-
value:
|
|
1033
|
-
valid:
|
|
1034
|
-
enabled:
|
|
1059
|
+
value: a,
|
|
1060
|
+
valid: p,
|
|
1061
|
+
enabled: f,
|
|
1035
1062
|
errors: i,
|
|
1036
|
-
showErrors:
|
|
1037
|
-
visibility:
|
|
1063
|
+
showErrors: h,
|
|
1064
|
+
visibility: k,
|
|
1038
1065
|
label: d,
|
|
1039
1066
|
touched: s,
|
|
1040
|
-
density:
|
|
1041
|
-
densityClass:
|
|
1042
|
-
vuetifyBindings:
|
|
1043
|
-
var
|
|
1044
|
-
return
|
|
1045
|
-
name: (
|
|
1046
|
-
class:
|
|
1047
|
-
density:
|
|
1048
|
-
variant:
|
|
1067
|
+
density: P.value,
|
|
1068
|
+
densityClass: g(() => `df-density-${P.value}`),
|
|
1069
|
+
vuetifyBindings: g(() => {
|
|
1070
|
+
var b;
|
|
1071
|
+
return I({
|
|
1072
|
+
name: (b = e.control) == null ? void 0 : b.fieldName,
|
|
1073
|
+
class: m.value,
|
|
1074
|
+
density: H.value,
|
|
1075
|
+
variant: A.value,
|
|
1049
1076
|
label: d.value.text,
|
|
1050
|
-
errorMessages:
|
|
1077
|
+
errorMessages: u.value,
|
|
1051
1078
|
// 'error-count': errors?.value.length || 0,
|
|
1052
|
-
readonly: !
|
|
1053
|
-
disabled: !
|
|
1054
|
-
placeholder:
|
|
1055
|
-
"persistent-placeholder": !
|
|
1056
|
-
hint:
|
|
1079
|
+
readonly: !f.value,
|
|
1080
|
+
disabled: !f.value,
|
|
1081
|
+
placeholder: T.value,
|
|
1082
|
+
"persistent-placeholder": !Ve(T.value),
|
|
1083
|
+
hint: C.value,
|
|
1057
1084
|
persistentHint: !0,
|
|
1058
1085
|
// we want persistent hint always
|
|
1059
1086
|
hideDetails: "auto",
|
|
1060
1087
|
// we want to hide the hint element when hint isn't there
|
|
1061
|
-
helpText:
|
|
1088
|
+
helpText: x.value
|
|
1062
1089
|
}, e.passthroughAttrs || {});
|
|
1063
1090
|
})
|
|
1064
1091
|
};
|
|
1065
1092
|
}
|
|
1066
|
-
const
|
|
1093
|
+
const qo = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Re = /* @__PURE__ */ R({
|
|
1067
1094
|
__name: "input-base",
|
|
1068
1095
|
props: {
|
|
1069
1096
|
control: {},
|
|
@@ -1084,68 +1111,68 @@ const Eo = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Pe = /* @_
|
|
|
1084
1111
|
},
|
|
1085
1112
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
1086
1113
|
setup(e, { emit: t }) {
|
|
1087
|
-
const n = e,
|
|
1088
|
-
function
|
|
1089
|
-
|
|
1114
|
+
const n = e, l = t, { label: a, showErrors: r, touched: s, value: p, visibility: i, vuetifyBindings: u } = Q(n, l), h = g(() => !!(o(n.clearable) && o(p))), f = E(!1);
|
|
1115
|
+
function k(d) {
|
|
1116
|
+
f.value = d, d || (s.value = !0, l("blur"));
|
|
1090
1117
|
}
|
|
1091
|
-
return (d,
|
|
1092
|
-
const
|
|
1093
|
-
return o(i) !== o(
|
|
1118
|
+
return (d, T) => {
|
|
1119
|
+
const x = M("v-field"), C = M("v-input");
|
|
1120
|
+
return o(i) !== o(Y).SUPPRESS ? (V(), S(C, {
|
|
1094
1121
|
key: 0,
|
|
1095
|
-
name: o(
|
|
1096
|
-
density: o(
|
|
1097
|
-
hint: o(
|
|
1098
|
-
"persistent-hint": o(
|
|
1099
|
-
"hide-details": o(
|
|
1100
|
-
"error-messages": o(
|
|
1101
|
-
class:
|
|
1122
|
+
name: o(u).name,
|
|
1123
|
+
density: o(u).density,
|
|
1124
|
+
hint: o(u).hint,
|
|
1125
|
+
"persistent-hint": o(u).persistentHint,
|
|
1126
|
+
"hide-details": o(u).hideDetails,
|
|
1127
|
+
"error-messages": o(u).errorMessages,
|
|
1128
|
+
class: te([
|
|
1102
1129
|
e.cssClass,
|
|
1103
1130
|
{
|
|
1104
|
-
"d-none": o(i) === o(
|
|
1105
|
-
invisible: o(i) === o(
|
|
1131
|
+
"d-none": o(i) === o(Y).HIDDEN,
|
|
1132
|
+
invisible: o(i) === o(Y).INVISIBLE
|
|
1106
1133
|
}
|
|
1107
1134
|
])
|
|
1108
|
-
},
|
|
1109
|
-
message: w(({ message:
|
|
1110
|
-
|
|
1111
|
-
message:
|
|
1135
|
+
}, Me({
|
|
1136
|
+
message: w(({ message: m }) => [
|
|
1137
|
+
D(ee, {
|
|
1138
|
+
message: m,
|
|
1112
1139
|
errors: o(r)
|
|
1113
1140
|
}, null, 8, ["message", "errors"])
|
|
1114
1141
|
]),
|
|
1115
1142
|
default: w(() => [
|
|
1116
|
-
|
|
1117
|
-
variant: o(
|
|
1118
|
-
density: o(
|
|
1119
|
-
label: o(
|
|
1120
|
-
disabled: o(
|
|
1121
|
-
clearable:
|
|
1143
|
+
D(x, {
|
|
1144
|
+
variant: o(u).variant,
|
|
1145
|
+
density: o(u).density,
|
|
1146
|
+
label: o(u).label,
|
|
1147
|
+
disabled: o(u).disabled,
|
|
1148
|
+
clearable: h.value,
|
|
1122
1149
|
"persistent-clear": !0,
|
|
1123
|
-
dirty: !!o(
|
|
1124
|
-
active:
|
|
1150
|
+
dirty: !!o(p) || !!o(u).placeholder,
|
|
1151
|
+
active: f.value,
|
|
1125
1152
|
loading: e.loading,
|
|
1126
|
-
"onClick:clear":
|
|
1127
|
-
"onUpdate:focused":
|
|
1128
|
-
},
|
|
1129
|
-
label: w((
|
|
1130
|
-
|
|
1131
|
-
data:
|
|
1132
|
-
label: o(
|
|
1153
|
+
"onClick:clear": T[0] || (T[0] = (m) => l("click:clear")),
|
|
1154
|
+
"onUpdate:focused": T[1] || (T[1] = (m) => k(m))
|
|
1155
|
+
}, Me({
|
|
1156
|
+
label: w((m) => [
|
|
1157
|
+
D(me, {
|
|
1158
|
+
data: m,
|
|
1159
|
+
label: o(a)
|
|
1133
1160
|
}, null, 8, ["data", "label"])
|
|
1134
1161
|
]),
|
|
1135
|
-
default: w((
|
|
1136
|
-
|
|
1137
|
-
|
|
1162
|
+
default: w((m) => [
|
|
1163
|
+
de("div", qo, [
|
|
1164
|
+
fe(d.$slots, "default", re(ie(m)))
|
|
1138
1165
|
])
|
|
1139
1166
|
]),
|
|
1140
|
-
loader: w((
|
|
1141
|
-
|
|
1167
|
+
loader: w((m) => [
|
|
1168
|
+
fe(d.$slots, "loader", re(ie(m)))
|
|
1142
1169
|
]),
|
|
1143
1170
|
_: 2
|
|
1144
1171
|
}, [
|
|
1145
1172
|
d.$slots["prepend-inner"] ? {
|
|
1146
1173
|
name: "prepend-inner",
|
|
1147
|
-
fn: w((
|
|
1148
|
-
|
|
1174
|
+
fn: w((m) => [
|
|
1175
|
+
fe(d.$slots, "prepend-inner", re(ie(m)))
|
|
1149
1176
|
]),
|
|
1150
1177
|
key: "0"
|
|
1151
1178
|
} : void 0
|
|
@@ -1155,15 +1182,15 @@ const Eo = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Pe = /* @_
|
|
|
1155
1182
|
}, [
|
|
1156
1183
|
d.$slots.prepend ? {
|
|
1157
1184
|
name: "prepend",
|
|
1158
|
-
fn: w((
|
|
1159
|
-
|
|
1185
|
+
fn: w((m) => [
|
|
1186
|
+
fe(d.$slots, "prepend", re(ie(m)))
|
|
1160
1187
|
]),
|
|
1161
1188
|
key: "0"
|
|
1162
1189
|
} : void 0
|
|
1163
1190
|
]), 1032, ["name", "density", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : U("", !0);
|
|
1164
1191
|
};
|
|
1165
1192
|
}
|
|
1166
|
-
}),
|
|
1193
|
+
}), F = {
|
|
1167
1194
|
Yes: "Yes",
|
|
1168
1195
|
No: "No",
|
|
1169
1196
|
Close: "Close",
|
|
@@ -1185,86 +1212,86 @@ const Eo = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Pe = /* @_
|
|
|
1185
1212
|
CodeDark: "Code (dark)",
|
|
1186
1213
|
CodeBright: "Code (bright)"
|
|
1187
1214
|
};
|
|
1188
|
-
function
|
|
1189
|
-
Object.keys(
|
|
1215
|
+
function Zl(e) {
|
|
1216
|
+
Object.keys(F).forEach((t) => {
|
|
1190
1217
|
const n = e(t);
|
|
1191
|
-
n != null && (
|
|
1218
|
+
n != null && (F[t] = n);
|
|
1192
1219
|
});
|
|
1193
1220
|
}
|
|
1194
|
-
function
|
|
1195
|
-
|
|
1221
|
+
function Jl(e, t) {
|
|
1222
|
+
Be.language = e, Be.translations = t;
|
|
1196
1223
|
}
|
|
1197
|
-
const
|
|
1224
|
+
const Be = {
|
|
1198
1225
|
language: "en",
|
|
1199
1226
|
translations: void 0
|
|
1200
1227
|
};
|
|
1201
|
-
var
|
|
1202
|
-
const
|
|
1228
|
+
var G = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(G || {});
|
|
1229
|
+
const Je = 0;
|
|
1203
1230
|
((e) => {
|
|
1204
|
-
function t(
|
|
1205
|
-
return
|
|
1231
|
+
function t(a) {
|
|
1232
|
+
return a.toUpperCase() === "BUTTON" ? 0 : a.toUpperCase() === "TEXT" ? 1 : Je;
|
|
1206
1233
|
}
|
|
1207
1234
|
e.fromString = t;
|
|
1208
|
-
function n(
|
|
1209
|
-
const r = typeof
|
|
1210
|
-
return Object.values(e).includes(r) ? r :
|
|
1235
|
+
function n(a) {
|
|
1236
|
+
const r = typeof a == "number" ? a : e.fromString(a);
|
|
1237
|
+
return Object.values(e).includes(r) ? r : Je;
|
|
1211
1238
|
}
|
|
1212
1239
|
e.fromAny = n;
|
|
1213
|
-
function a
|
|
1214
|
-
const r = typeof
|
|
1240
|
+
function l(a) {
|
|
1241
|
+
const r = typeof a == "number" ? a : e.fromString(a);
|
|
1215
1242
|
return Object.values(e).includes(r);
|
|
1216
1243
|
}
|
|
1217
|
-
e.isDefined =
|
|
1218
|
-
})(
|
|
1219
|
-
Object.freeze(
|
|
1220
|
-
const
|
|
1221
|
-
class
|
|
1244
|
+
e.isDefined = l;
|
|
1245
|
+
})(G || (G = {}));
|
|
1246
|
+
Object.freeze(G);
|
|
1247
|
+
const et = ["xs", "sm", "md", "lg", "xl"];
|
|
1248
|
+
class Go {
|
|
1222
1249
|
constructor(t) {
|
|
1223
|
-
|
|
1224
|
-
this._value = this.cleanBreakpoint(t, !0), t &&
|
|
1225
|
-
const
|
|
1226
|
-
|
|
1250
|
+
ge(this, "_value");
|
|
1251
|
+
this._value = this.cleanBreakpoint(t, !0), t && et.forEach((n) => {
|
|
1252
|
+
const l = this.cleanBreakpoint(t[n]);
|
|
1253
|
+
l && (this._value[n] = l);
|
|
1227
1254
|
});
|
|
1228
1255
|
}
|
|
1229
1256
|
getOptionsForBreakpoint(t) {
|
|
1230
|
-
const n = this.cleanBreakpoint(this._value),
|
|
1231
|
-
for (const
|
|
1232
|
-
const r = this._value[
|
|
1233
|
-
for (const s of
|
|
1257
|
+
const n = this.cleanBreakpoint(this._value), l = Object.keys(n);
|
|
1258
|
+
for (const a of et) {
|
|
1259
|
+
const r = this._value[a];
|
|
1260
|
+
for (const s of l)
|
|
1234
1261
|
(r == null ? void 0 : r[s]) != null && (n[s] = r[s]);
|
|
1235
|
-
if (
|
|
1262
|
+
if (a === t) break;
|
|
1236
1263
|
}
|
|
1237
1264
|
return n;
|
|
1238
1265
|
}
|
|
1239
1266
|
}
|
|
1240
|
-
function
|
|
1267
|
+
function Yo(e) {
|
|
1241
1268
|
return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
|
|
1242
1269
|
}
|
|
1243
|
-
function
|
|
1244
|
-
const e =
|
|
1245
|
-
return
|
|
1270
|
+
function Qo() {
|
|
1271
|
+
const e = Mt();
|
|
1272
|
+
return g(() => Yo(e));
|
|
1246
1273
|
}
|
|
1247
|
-
class
|
|
1274
|
+
class Zo extends Go {
|
|
1248
1275
|
cleanBreakpoint(t, n = !1) {
|
|
1249
|
-
if ((!t || !
|
|
1250
|
-
const
|
|
1251
|
-
return n && (
|
|
1276
|
+
if ((!t || !It(t)) && !n) return null;
|
|
1277
|
+
const l = {};
|
|
1278
|
+
return n && (l.renderAs = G.BUTTON, l.showLabel = !0, l.showIcon = !0), t && (t.renderAs != null && (l.renderAs = G.fromAny(t.renderAs)), se(t.label) && (l.label = t.label), se(t.icon) && (l.icon = t.icon), qe(t.showLabel) && (l.showLabel = t.showLabel), qe(t.showIcon) && (l.showIcon = t.showIcon)), Object.keys(l).length ? l : null;
|
|
1252
1279
|
}
|
|
1253
1280
|
}
|
|
1254
|
-
class
|
|
1281
|
+
class _e extends $t {
|
|
1255
1282
|
static create(t) {
|
|
1256
1283
|
return super.create(t);
|
|
1257
1284
|
}
|
|
1258
1285
|
getBreakpointValue(t) {
|
|
1259
|
-
return
|
|
1260
|
-
const
|
|
1286
|
+
return g(() => {
|
|
1287
|
+
const l = new Zo(this.value).getOptionsForBreakpoint(t.value);
|
|
1261
1288
|
return {
|
|
1262
|
-
name:
|
|
1263
|
-
label:
|
|
1264
|
-
icon:
|
|
1265
|
-
renderAs:
|
|
1266
|
-
showLabel:
|
|
1267
|
-
showIcon:
|
|
1289
|
+
name: l.name,
|
|
1290
|
+
label: l.showLabel ? l.label : void 0,
|
|
1291
|
+
icon: l.showIcon ? l.icon : void 0,
|
|
1292
|
+
renderAs: l.renderAs,
|
|
1293
|
+
showLabel: se(l.label) && !Ve(l.label) ? l.showLabel : !1,
|
|
1294
|
+
showIcon: se(l.icon) && !Ve(l.icon) ? l.showIcon : !1
|
|
1268
1295
|
};
|
|
1269
1296
|
});
|
|
1270
1297
|
}
|
|
@@ -1275,67 +1302,67 @@ class ye extends yt {
|
|
|
1275
1302
|
return this.value.showLabel ? this.value.label : void 0;
|
|
1276
1303
|
}
|
|
1277
1304
|
get showLabel() {
|
|
1278
|
-
return
|
|
1305
|
+
return se(this.value.label) && !Ve(this.value.label) ? this.value.showLabel : !1;
|
|
1279
1306
|
}
|
|
1280
1307
|
get icon() {
|
|
1281
1308
|
return this.value.showIcon ? this.value.icon : void 0;
|
|
1282
1309
|
}
|
|
1283
1310
|
get showIcon() {
|
|
1284
|
-
return
|
|
1311
|
+
return se(this.value.icon) && !Ve(this.value.icon) ? this.value.showIcon : !1;
|
|
1285
1312
|
}
|
|
1286
1313
|
get renderAs() {
|
|
1287
1314
|
return this.value.renderAs;
|
|
1288
1315
|
}
|
|
1289
1316
|
static closeAction(t) {
|
|
1290
|
-
var
|
|
1291
|
-
const n =
|
|
1317
|
+
var l;
|
|
1318
|
+
const n = L(I({}, t != null ? t : {}), {
|
|
1292
1319
|
// any properties in data should overwrite properties in the constant
|
|
1293
1320
|
value: {
|
|
1294
1321
|
name: "close",
|
|
1295
|
-
label:
|
|
1322
|
+
label: F.Close,
|
|
1296
1323
|
icon: "ion-close-outline",
|
|
1297
|
-
renderAs:
|
|
1324
|
+
renderAs: G.BUTTON,
|
|
1298
1325
|
showLabel: !0,
|
|
1299
1326
|
showIcon: !0
|
|
1300
1327
|
}
|
|
1301
1328
|
});
|
|
1302
|
-
return n.value =
|
|
1329
|
+
return n.value = I(I({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), _e.create(n);
|
|
1303
1330
|
}
|
|
1304
1331
|
static yesAction(t) {
|
|
1305
|
-
var
|
|
1306
|
-
const n =
|
|
1332
|
+
var l;
|
|
1333
|
+
const n = L(I({}, t != null ? t : {}), {
|
|
1307
1334
|
// any properties in data should overwrite properties in the constant
|
|
1308
1335
|
value: {
|
|
1309
1336
|
name: "yes",
|
|
1310
|
-
label:
|
|
1337
|
+
label: F.Yes,
|
|
1311
1338
|
icon: "ion-thumbs-up-outline",
|
|
1312
|
-
renderAs:
|
|
1339
|
+
renderAs: G.BUTTON,
|
|
1313
1340
|
showLabel: !0,
|
|
1314
1341
|
showIcon: !0
|
|
1315
1342
|
}
|
|
1316
1343
|
});
|
|
1317
|
-
return n.value =
|
|
1344
|
+
return n.value = I(I({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), _e.create(n);
|
|
1318
1345
|
}
|
|
1319
1346
|
static noAction(t) {
|
|
1320
|
-
var
|
|
1321
|
-
const n =
|
|
1347
|
+
var l;
|
|
1348
|
+
const n = L(I({}, t != null ? t : {}), {
|
|
1322
1349
|
// any properties in data should overwrite properties in the constant
|
|
1323
1350
|
value: {
|
|
1324
1351
|
name: "no",
|
|
1325
|
-
label:
|
|
1352
|
+
label: F.No,
|
|
1326
1353
|
icon: "ion-thumbs-down-outline",
|
|
1327
|
-
renderAs:
|
|
1354
|
+
renderAs: G.BUTTON,
|
|
1328
1355
|
showLabel: !0,
|
|
1329
1356
|
showIcon: !0
|
|
1330
1357
|
}
|
|
1331
1358
|
});
|
|
1332
|
-
return n.value =
|
|
1359
|
+
return n.value = I(I({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), _e.create(n);
|
|
1333
1360
|
}
|
|
1334
1361
|
}
|
|
1335
|
-
const
|
|
1362
|
+
const Jo = {
|
|
1336
1363
|
key: 1,
|
|
1337
1364
|
style: { width: "0.5rem" }
|
|
1338
|
-
},
|
|
1365
|
+
}, el = { key: 2 }, tl = /* @__PURE__ */ R({
|
|
1339
1366
|
__name: "df-actions",
|
|
1340
1367
|
props: {
|
|
1341
1368
|
actions: {},
|
|
@@ -1343,43 +1370,43 @@ const Mo = {
|
|
|
1343
1370
|
showAsGroup: { default: "no" }
|
|
1344
1371
|
},
|
|
1345
1372
|
setup(e) {
|
|
1346
|
-
const t = e, n =
|
|
1347
|
-
() =>
|
|
1373
|
+
const t = e, n = Qo(), l = g(() => o(t.actions)), a = g(
|
|
1374
|
+
() => l.value.map((r) => I({
|
|
1348
1375
|
action: r
|
|
1349
1376
|
}, o(r.getBreakpointValue(n))))
|
|
1350
1377
|
);
|
|
1351
1378
|
return (r, s) => {
|
|
1352
|
-
const
|
|
1353
|
-
return
|
|
1379
|
+
const p = M("v-btn");
|
|
1380
|
+
return l.value.length > 0 ? (V(), z("div", {
|
|
1354
1381
|
key: 0,
|
|
1355
|
-
class:
|
|
1382
|
+
class: te(["text-end df-actions", {
|
|
1356
1383
|
"button-group": e.showAsGroup === "grouped" || e.showAsGroup === "grouped-no-borders",
|
|
1357
1384
|
"with-border": e.showAsGroup === "grouped"
|
|
1358
1385
|
}])
|
|
1359
1386
|
}, [
|
|
1360
|
-
(V(!0),
|
|
1361
|
-
key:
|
|
1362
|
-
variant: i.renderAs === o(
|
|
1387
|
+
(V(!0), z(Fe, null, Tt(a.value, (i, u) => (V(), S(p, {
|
|
1388
|
+
key: u,
|
|
1389
|
+
variant: i.renderAs === o(G).BUTTON ? "tonal" : "text",
|
|
1363
1390
|
elevation: 0,
|
|
1364
1391
|
size: e.buttonSize,
|
|
1365
|
-
onClick:
|
|
1392
|
+
onClick: xt((h) => i.action.execute(h), ["stop"])
|
|
1366
1393
|
}, {
|
|
1367
1394
|
default: w(() => [
|
|
1368
|
-
i.icon ? (V(),
|
|
1395
|
+
i.icon ? (V(), S(o(je), {
|
|
1369
1396
|
key: 0,
|
|
1370
1397
|
name: i.icon
|
|
1371
1398
|
}, null, 8, ["name"])) : U("", !0),
|
|
1372
|
-
i.icon && i.label ? (V(),
|
|
1373
|
-
i.label ? (V(),
|
|
1399
|
+
i.icon && i.label ? (V(), z("span", Jo)) : U("", !0),
|
|
1400
|
+
i.label ? (V(), z("span", el, Ne(i.label), 1)) : U("", !0)
|
|
1374
1401
|
]),
|
|
1375
1402
|
_: 2
|
|
1376
1403
|
}, 1032, ["variant", "size", "onClick"]))), 128))
|
|
1377
1404
|
], 2)) : U("", !0);
|
|
1378
1405
|
};
|
|
1379
1406
|
}
|
|
1380
|
-
}),
|
|
1407
|
+
}), nl = /* @__PURE__ */ R({
|
|
1381
1408
|
__name: "df-checkbox",
|
|
1382
|
-
props: /* @__PURE__ */
|
|
1409
|
+
props: /* @__PURE__ */ ne({
|
|
1383
1410
|
allowNull: { type: Boolean },
|
|
1384
1411
|
control: {},
|
|
1385
1412
|
modelValue: {},
|
|
@@ -1395,44 +1422,44 @@ const Mo = {
|
|
|
1395
1422
|
passthroughAttrs: {},
|
|
1396
1423
|
density: {},
|
|
1397
1424
|
variant: {}
|
|
1398
|
-
},
|
|
1425
|
+
}, L(I({}, oe), { allowNull: !1 })),
|
|
1399
1426
|
emits: ["update:modelValue", "click:clear"],
|
|
1400
1427
|
setup(e, { emit: t }) {
|
|
1401
|
-
const n = e,
|
|
1428
|
+
const n = e, l = t, { densityClass: a, label: r, showErrors: s, touched: p, value: i, vuetifyBindings: u } = Q(n, l), h = g(() => n.allowNull && i.value == null), f = g({
|
|
1402
1429
|
get() {
|
|
1403
1430
|
return i.value;
|
|
1404
1431
|
},
|
|
1405
1432
|
set() {
|
|
1406
1433
|
}
|
|
1407
1434
|
});
|
|
1408
|
-
function
|
|
1409
|
-
const d =
|
|
1435
|
+
function k() {
|
|
1436
|
+
const d = Dt(i.value);
|
|
1410
1437
|
d === !0 ? i.value = n.allowNull ? null : !1 : i.value = d === !1;
|
|
1411
1438
|
}
|
|
1412
|
-
return (d,
|
|
1413
|
-
const
|
|
1414
|
-
return V(),
|
|
1415
|
-
modelValue:
|
|
1416
|
-
"onUpdate:modelValue":
|
|
1439
|
+
return (d, T) => {
|
|
1440
|
+
const x = M("v-checkbox");
|
|
1441
|
+
return V(), S(x, O({
|
|
1442
|
+
modelValue: f.value,
|
|
1443
|
+
"onUpdate:modelValue": T[0] || (T[0] = (C) => f.value = C),
|
|
1417
1444
|
density: "compact",
|
|
1418
|
-
class: o(
|
|
1419
|
-
indeterminate:
|
|
1445
|
+
class: o(a),
|
|
1446
|
+
indeterminate: h.value,
|
|
1420
1447
|
"false-value": !1,
|
|
1421
1448
|
"true-value": !0
|
|
1422
|
-
}, o(
|
|
1423
|
-
onChange:
|
|
1424
|
-
onBlur:
|
|
1449
|
+
}, o(u), {
|
|
1450
|
+
onChange: k,
|
|
1451
|
+
onBlur: T[1] || (T[1] = (C) => p.value = !0)
|
|
1425
1452
|
}), {
|
|
1426
|
-
label: w((
|
|
1427
|
-
|
|
1453
|
+
label: w((C) => [
|
|
1454
|
+
D(o(me), {
|
|
1428
1455
|
"allow-wrap": !0,
|
|
1429
|
-
data:
|
|
1456
|
+
data: C,
|
|
1430
1457
|
label: o(r)
|
|
1431
1458
|
}, null, 8, ["data", "label"])
|
|
1432
1459
|
]),
|
|
1433
|
-
message: w(({ message:
|
|
1434
|
-
|
|
1435
|
-
message:
|
|
1460
|
+
message: w(({ message: C }) => [
|
|
1461
|
+
D(o(ee), {
|
|
1462
|
+
message: C,
|
|
1436
1463
|
errors: o(s)
|
|
1437
1464
|
}, null, 8, ["message", "errors"])
|
|
1438
1465
|
]),
|
|
@@ -1440,9 +1467,9 @@ const Mo = {
|
|
|
1440
1467
|
}, 16, ["modelValue", "class", "indeterminate"]);
|
|
1441
1468
|
};
|
|
1442
1469
|
}
|
|
1443
|
-
}),
|
|
1470
|
+
}), ol = /* @__PURE__ */ R({
|
|
1444
1471
|
__name: "df-color",
|
|
1445
|
-
props: /* @__PURE__ */
|
|
1472
|
+
props: /* @__PURE__ */ ne({
|
|
1446
1473
|
allowNull: { type: Boolean },
|
|
1447
1474
|
control: {},
|
|
1448
1475
|
modelValue: {},
|
|
@@ -1458,52 +1485,52 @@ const Mo = {
|
|
|
1458
1485
|
passthroughAttrs: {},
|
|
1459
1486
|
density: {},
|
|
1460
1487
|
variant: {}
|
|
1461
|
-
},
|
|
1488
|
+
}, L(I({}, oe), { allowNull: !1 })),
|
|
1462
1489
|
emits: ["update:modelValue", "click:clear"],
|
|
1463
1490
|
setup(e, { emit: t }) {
|
|
1464
|
-
const n = e,
|
|
1465
|
-
(
|
|
1491
|
+
const n = e, l = t, { densityClass: a, label: r, showErrors: s, touched: p, value: i, vuetifyBindings: u } = Q(n, l), h = E(!1), f = g(() => [
|
|
1492
|
+
(k) => n.control || !k && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(k) ? !0 : "Not a valid hex string."
|
|
1466
1493
|
]);
|
|
1467
|
-
return (
|
|
1468
|
-
const
|
|
1469
|
-
return V(),
|
|
1494
|
+
return (k, d) => {
|
|
1495
|
+
const T = M("v-color-picker"), x = M("v-menu"), C = M("v-text-field");
|
|
1496
|
+
return V(), S(C, O({
|
|
1470
1497
|
modelValue: o(i),
|
|
1471
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
1472
|
-
class: o(
|
|
1498
|
+
"onUpdate:modelValue": d[2] || (d[2] = (m) => ce(i) ? i.value = m : null),
|
|
1499
|
+
class: o(a),
|
|
1473
1500
|
clearable: e.allowNull,
|
|
1474
1501
|
type: "text",
|
|
1475
|
-
rules:
|
|
1476
|
-
}, o(
|
|
1477
|
-
onBlur: d[3] || (d[3] = (
|
|
1502
|
+
rules: f.value
|
|
1503
|
+
}, o(u), {
|
|
1504
|
+
onBlur: d[3] || (d[3] = (m) => p.value = !0)
|
|
1478
1505
|
}), {
|
|
1479
|
-
label: w((
|
|
1480
|
-
|
|
1481
|
-
data:
|
|
1506
|
+
label: w((m) => [
|
|
1507
|
+
D(o(me), {
|
|
1508
|
+
data: m,
|
|
1482
1509
|
label: o(r)
|
|
1483
1510
|
}, null, 8, ["data", "label"])
|
|
1484
1511
|
]),
|
|
1485
|
-
message: w(({ message:
|
|
1486
|
-
|
|
1487
|
-
message:
|
|
1512
|
+
message: w(({ message: m }) => [
|
|
1513
|
+
D(o(ee), {
|
|
1514
|
+
message: m,
|
|
1488
1515
|
errors: o(s)
|
|
1489
1516
|
}, null, 8, ["message", "errors"])
|
|
1490
1517
|
]),
|
|
1491
1518
|
"prepend-inner": w(() => [
|
|
1492
|
-
|
|
1493
|
-
style:
|
|
1519
|
+
de("div", {
|
|
1520
|
+
style: ot([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: o(i) }])
|
|
1494
1521
|
}, null, 4)
|
|
1495
1522
|
]),
|
|
1496
1523
|
default: w(() => [
|
|
1497
|
-
|
|
1498
|
-
modelValue:
|
|
1499
|
-
"onUpdate:modelValue": d[1] || (d[1] = (
|
|
1524
|
+
D(x, {
|
|
1525
|
+
modelValue: h.value,
|
|
1526
|
+
"onUpdate:modelValue": d[1] || (d[1] = (m) => h.value = m),
|
|
1500
1527
|
"close-on-content-click": !1,
|
|
1501
1528
|
activator: "parent"
|
|
1502
1529
|
}, {
|
|
1503
1530
|
default: w(() => [
|
|
1504
|
-
|
|
1531
|
+
D(T, {
|
|
1505
1532
|
modelValue: o(i),
|
|
1506
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
1533
|
+
"onUpdate:modelValue": d[0] || (d[0] = (m) => ce(i) ? i.value = m : null),
|
|
1507
1534
|
mode: "hexa"
|
|
1508
1535
|
}, null, 8, ["modelValue"])
|
|
1509
1536
|
]),
|
|
@@ -1514,9 +1541,9 @@ const Mo = {
|
|
|
1514
1541
|
}, 16, ["modelValue", "class", "clearable", "rules"]);
|
|
1515
1542
|
};
|
|
1516
1543
|
}
|
|
1517
|
-
}),
|
|
1544
|
+
}), ll = /* @__PURE__ */ R({
|
|
1518
1545
|
__name: "df-datetime",
|
|
1519
|
-
props: /* @__PURE__ */
|
|
1546
|
+
props: /* @__PURE__ */ ne({
|
|
1520
1547
|
inputType: {},
|
|
1521
1548
|
displayFormatDate: {},
|
|
1522
1549
|
displayFormatTime: {},
|
|
@@ -1535,157 +1562,157 @@ const Mo = {
|
|
|
1535
1562
|
passthroughAttrs: {},
|
|
1536
1563
|
density: {},
|
|
1537
1564
|
variant: {}
|
|
1538
|
-
},
|
|
1565
|
+
}, L(I({}, oe), {
|
|
1539
1566
|
inputType: "datetime",
|
|
1540
1567
|
displayFormatDate: "P",
|
|
1541
1568
|
displayFormatTime: "p"
|
|
1542
1569
|
})),
|
|
1543
1570
|
emits: ["update:modelValue", "click:clear"],
|
|
1544
1571
|
setup(e, { emit: t }) {
|
|
1545
|
-
const n = e,
|
|
1546
|
-
var
|
|
1547
|
-
return (
|
|
1548
|
-
}), r =
|
|
1549
|
-
var
|
|
1550
|
-
return (
|
|
1551
|
-
}), { densityClass: s, touched:
|
|
1572
|
+
const n = e, l = t, a = g(() => {
|
|
1573
|
+
var v;
|
|
1574
|
+
return (v = n.locale) != null ? v : o(Ko.dateTimeLocale);
|
|
1575
|
+
}), r = g(() => {
|
|
1576
|
+
var v, c;
|
|
1577
|
+
return (c = (v = a.value.options) == null ? void 0 : v.weekStartsOn) != null ? c : 1;
|
|
1578
|
+
}), { densityClass: s, touched: p, value: i, vuetifyBindings: u } = Q(n, l), { inputType: h, displayFormatDate: f, displayFormatTime: k } = De(n), d = E(""), T = g({
|
|
1552
1579
|
get() {
|
|
1553
1580
|
return o(d) === "date";
|
|
1554
1581
|
},
|
|
1555
|
-
set(
|
|
1556
|
-
d.value =
|
|
1582
|
+
set(v) {
|
|
1583
|
+
d.value = v ? "date" : "";
|
|
1557
1584
|
}
|
|
1558
|
-
}),
|
|
1585
|
+
}), x = g({
|
|
1559
1586
|
get() {
|
|
1560
1587
|
return o(d) === "time";
|
|
1561
1588
|
},
|
|
1562
|
-
set(
|
|
1563
|
-
d.value =
|
|
1589
|
+
set(v) {
|
|
1590
|
+
d.value = v ? "time" : "";
|
|
1564
1591
|
}
|
|
1565
|
-
}),
|
|
1566
|
-
function
|
|
1567
|
-
if (
|
|
1568
|
-
|
|
1569
|
-
else if (
|
|
1570
|
-
if (o(
|
|
1571
|
-
|
|
1592
|
+
}), C = (v) => `${we(v, "yyyy-MM-dd")}T${we(v, "HH:mm")}:00`, m = E(null);
|
|
1593
|
+
function P(v, c) {
|
|
1594
|
+
if (v == null)
|
|
1595
|
+
m.value = null;
|
|
1596
|
+
else if (c === -1)
|
|
1597
|
+
if (o(h) === "time")
|
|
1598
|
+
m.value = C(/* @__PURE__ */ new Date()), P(`T${v}`, 1);
|
|
1572
1599
|
else {
|
|
1573
|
-
const $ =
|
|
1574
|
-
|
|
1600
|
+
const $ = C(new Date(v));
|
|
1601
|
+
P($, 0), P($, 1);
|
|
1575
1602
|
}
|
|
1576
1603
|
else {
|
|
1577
|
-
|
|
1578
|
-
const $ =
|
|
1579
|
-
$[
|
|
1604
|
+
m.value == null && (m.value = C(/* @__PURE__ */ new Date()));
|
|
1605
|
+
const $ = m.value.split(/[TZ]/g), K = v.split(/[TZ]/g);
|
|
1606
|
+
$[c] = K[c], m.value = C(/* @__PURE__ */ new Date(`${$[0]}T${$[1].split(".")[0]}`)), o(h) === "date" ? i.value = $[0] : o(h) === "time" ? i.value = $[1] : i.value = o(m) + we(/* @__PURE__ */ new Date(), "XXX");
|
|
1580
1607
|
}
|
|
1581
1608
|
}
|
|
1582
|
-
ue(i, (
|
|
1583
|
-
const
|
|
1609
|
+
ue(i, (v) => P(v, -1), { immediate: !0 });
|
|
1610
|
+
const H = g({
|
|
1584
1611
|
get() {
|
|
1585
|
-
const
|
|
1586
|
-
if (
|
|
1587
|
-
const
|
|
1588
|
-
return Number.isNaN(
|
|
1612
|
+
const v = o(m);
|
|
1613
|
+
if (v == null) return null;
|
|
1614
|
+
const c = new Date(v);
|
|
1615
|
+
return Number.isNaN(c.getTime()) ? null : c;
|
|
1589
1616
|
},
|
|
1590
|
-
set(
|
|
1591
|
-
|
|
1617
|
+
set(v) {
|
|
1618
|
+
P(C(v), 0);
|
|
1592
1619
|
}
|
|
1593
|
-
}),
|
|
1620
|
+
}), A = g({
|
|
1594
1621
|
get() {
|
|
1595
|
-
const
|
|
1596
|
-
return
|
|
1622
|
+
const v = o(m);
|
|
1623
|
+
return v == null ? "" : v.split(/[TZ]/g)[1].split(".")[0];
|
|
1597
1624
|
},
|
|
1598
|
-
set(
|
|
1599
|
-
|
|
1625
|
+
set(v) {
|
|
1626
|
+
P(`T${v}`, 1);
|
|
1600
1627
|
}
|
|
1601
|
-
}),
|
|
1628
|
+
}), b = g({
|
|
1602
1629
|
get() {
|
|
1603
|
-
const
|
|
1604
|
-
return
|
|
1630
|
+
const v = o(H);
|
|
1631
|
+
return v == null ? "" : we(v, o(f), { locale: a.value });
|
|
1605
1632
|
},
|
|
1606
|
-
set(
|
|
1633
|
+
set(v) {
|
|
1607
1634
|
try {
|
|
1608
|
-
const
|
|
1609
|
-
|
|
1610
|
-
} catch (
|
|
1611
|
-
console.error(
|
|
1635
|
+
const c = Nt(v, o(f), /* @__PURE__ */ new Date(), { locale: a.value });
|
|
1636
|
+
P(C(c), 0);
|
|
1637
|
+
} catch (c) {
|
|
1638
|
+
console.error(c);
|
|
1612
1639
|
}
|
|
1613
1640
|
}
|
|
1614
|
-
}),
|
|
1641
|
+
}), N = g({
|
|
1615
1642
|
get() {
|
|
1616
|
-
const
|
|
1617
|
-
return
|
|
1643
|
+
const v = o(H);
|
|
1644
|
+
return v == null ? "" : we(v, o(k), { locale: a.value });
|
|
1618
1645
|
},
|
|
1619
|
-
set(
|
|
1620
|
-
const
|
|
1621
|
-
if (
|
|
1622
|
-
let $ =
|
|
1623
|
-
const K =
|
|
1624
|
-
|
|
1646
|
+
set(v) {
|
|
1647
|
+
const c = v.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
1648
|
+
if (c == null) return;
|
|
1649
|
+
let $ = Ge(c[1]);
|
|
1650
|
+
const K = Ge(c[2]);
|
|
1651
|
+
Ye($) || Ye(K) || (c[3] && c[3].toLowerCase() === "pm" && $ < 13 && ($ += 12), P(`T${$.toString().padStart(2, "0")}:${K.toString().padStart(2, "0")}:00`, 1));
|
|
1625
1652
|
}
|
|
1626
1653
|
});
|
|
1627
|
-
return (
|
|
1628
|
-
const $ =
|
|
1629
|
-
return V(),
|
|
1654
|
+
return (v, c) => {
|
|
1655
|
+
const $ = M("v-date-picker"), K = M("v-confirm-edit"), Z = M("v-menu"), le = M("v-text-field"), pe = M("v-time-picker");
|
|
1656
|
+
return V(), S(o(Re), O(n, {
|
|
1630
1657
|
class: o(s),
|
|
1631
1658
|
clearable: e.clearable,
|
|
1632
|
-
"onClick:clear":
|
|
1633
|
-
onBlur:
|
|
1659
|
+
"onClick:clear": c[14] || (c[14] = (J) => i.value = null),
|
|
1660
|
+
onBlur: c[15] || (c[15] = (J) => p.value = !0)
|
|
1634
1661
|
}), {
|
|
1635
|
-
default: w((
|
|
1636
|
-
|
|
1637
|
-
class:
|
|
1662
|
+
default: w((J) => [
|
|
1663
|
+
de("div", {
|
|
1664
|
+
class: te([
|
|
1638
1665
|
"d-flex",
|
|
1639
1666
|
"w-100",
|
|
1640
|
-
["plain", "underlined"].includes(o(
|
|
1667
|
+
["plain", "underlined"].includes(o(u).variant) ? void 0 : "ml-4",
|
|
1641
1668
|
"df-input-wrapper",
|
|
1642
1669
|
e.density
|
|
1643
1670
|
])
|
|
1644
1671
|
}, [
|
|
1645
|
-
["date", "datetime"].includes(o(
|
|
1672
|
+
["date", "datetime"].includes(o(h)) ? (V(), S(le, O({
|
|
1646
1673
|
key: 0,
|
|
1647
|
-
modelValue:
|
|
1648
|
-
"onUpdate:modelValue":
|
|
1674
|
+
modelValue: b.value,
|
|
1675
|
+
"onUpdate:modelValue": c[4] || (c[4] = (j) => b.value = j),
|
|
1649
1676
|
style: { "flex-grow": "4" },
|
|
1650
1677
|
density: "compact",
|
|
1651
1678
|
variant: "plain",
|
|
1652
1679
|
clearable: !1,
|
|
1653
1680
|
"hide-details": !0,
|
|
1654
|
-
readonly: o(
|
|
1655
|
-
disabled: o(
|
|
1656
|
-
name: `${o(
|
|
1657
|
-
placeholder: o(
|
|
1681
|
+
readonly: o(u).readonly,
|
|
1682
|
+
disabled: o(u).disabled,
|
|
1683
|
+
name: `${o(u).name}-date`,
|
|
1684
|
+
placeholder: o(u).placeholder
|
|
1658
1685
|
}, e.passthroughAttrs, {
|
|
1659
|
-
onClick:
|
|
1660
|
-
onKeydown:
|
|
1661
|
-
onFocus: (
|
|
1662
|
-
onBlur: (
|
|
1686
|
+
onClick: c[5] || (c[5] = (j) => d.value = "date"),
|
|
1687
|
+
onKeydown: c[6] || (c[6] = Ke((j) => d.value = "date", ["space"])),
|
|
1688
|
+
onFocus: (j) => J.focus(),
|
|
1689
|
+
onBlur: (j) => J.blur()
|
|
1663
1690
|
}), {
|
|
1664
1691
|
default: w(() => [
|
|
1665
|
-
|
|
1666
|
-
modelValue:
|
|
1667
|
-
"onUpdate:modelValue":
|
|
1692
|
+
D(Z, {
|
|
1693
|
+
modelValue: T.value,
|
|
1694
|
+
"onUpdate:modelValue": c[3] || (c[3] = (j) => T.value = j),
|
|
1668
1695
|
"close-on-content-click": !1,
|
|
1669
1696
|
activator: "parent"
|
|
1670
1697
|
}, {
|
|
1671
1698
|
default: w(() => [
|
|
1672
|
-
|
|
1673
|
-
modelValue:
|
|
1674
|
-
"onUpdate:modelValue":
|
|
1675
|
-
onCancel:
|
|
1676
|
-
onSave:
|
|
1699
|
+
D(K, {
|
|
1700
|
+
modelValue: H.value,
|
|
1701
|
+
"onUpdate:modelValue": c[0] || (c[0] = (j) => H.value = j),
|
|
1702
|
+
onCancel: c[1] || (c[1] = (j) => d.value = ""),
|
|
1703
|
+
onSave: c[2] || (c[2] = (j) => d.value = "")
|
|
1677
1704
|
}, {
|
|
1678
|
-
default: w(({ model:
|
|
1679
|
-
|
|
1680
|
-
modelValue:
|
|
1681
|
-
"onUpdate:modelValue": (
|
|
1705
|
+
default: w(({ model: j, actions: ve }) => [
|
|
1706
|
+
D($, {
|
|
1707
|
+
modelValue: j.value,
|
|
1708
|
+
"onUpdate:modelValue": (he) => j.value = he,
|
|
1682
1709
|
"hide-header": !0,
|
|
1683
1710
|
"first-day-of-week": r.value,
|
|
1684
1711
|
"show-adjacent-months": !0,
|
|
1685
1712
|
"show-week": !0
|
|
1686
1713
|
}, {
|
|
1687
1714
|
actions: w(() => [
|
|
1688
|
-
(V(),
|
|
1715
|
+
(V(), S(Ce(ve)))
|
|
1689
1716
|
]),
|
|
1690
1717
|
_: 2
|
|
1691
1718
|
}, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
|
|
@@ -1698,48 +1725,48 @@ const Mo = {
|
|
|
1698
1725
|
]),
|
|
1699
1726
|
_: 1
|
|
1700
1727
|
}, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : U("", !0),
|
|
1701
|
-
["time", "datetime"].includes(o(
|
|
1728
|
+
["time", "datetime"].includes(o(h)) ? (V(), S(le, O({
|
|
1702
1729
|
key: 1,
|
|
1703
|
-
modelValue:
|
|
1704
|
-
"onUpdate:modelValue":
|
|
1730
|
+
modelValue: N.value,
|
|
1731
|
+
"onUpdate:modelValue": c[11] || (c[11] = (j) => N.value = j),
|
|
1705
1732
|
style: { "flex-grow": "3" },
|
|
1706
1733
|
density: "compact",
|
|
1707
1734
|
variant: "plain",
|
|
1708
1735
|
clearable: !1,
|
|
1709
1736
|
"hide-details": !0,
|
|
1710
|
-
readonly: o(
|
|
1711
|
-
disabled: o(
|
|
1712
|
-
name: `${o(
|
|
1713
|
-
placeholder: o(
|
|
1737
|
+
readonly: o(u).readonly,
|
|
1738
|
+
disabled: o(u).disabled,
|
|
1739
|
+
name: `${o(u).name}-time`,
|
|
1740
|
+
placeholder: o(h) === "time" ? o(u).placeholder : void 0
|
|
1714
1741
|
}, e.passthroughAttrs, {
|
|
1715
|
-
onClick:
|
|
1716
|
-
onKeydown:
|
|
1717
|
-
onFocus: (
|
|
1718
|
-
onBlur: (
|
|
1742
|
+
onClick: c[12] || (c[12] = (j) => d.value = "time"),
|
|
1743
|
+
onKeydown: c[13] || (c[13] = Ke((j) => d.value = "time", ["space"])),
|
|
1744
|
+
onFocus: (j) => J.focus(),
|
|
1745
|
+
onBlur: (j) => J.blur()
|
|
1719
1746
|
}), {
|
|
1720
1747
|
default: w(() => [
|
|
1721
|
-
|
|
1722
|
-
modelValue:
|
|
1723
|
-
"onUpdate:modelValue":
|
|
1748
|
+
D(Z, {
|
|
1749
|
+
modelValue: x.value,
|
|
1750
|
+
"onUpdate:modelValue": c[10] || (c[10] = (j) => x.value = j),
|
|
1724
1751
|
"close-on-content-click": !1,
|
|
1725
1752
|
activator: "parent"
|
|
1726
1753
|
}, {
|
|
1727
1754
|
default: w(() => [
|
|
1728
|
-
|
|
1729
|
-
modelValue:
|
|
1730
|
-
"onUpdate:modelValue":
|
|
1731
|
-
onCancel:
|
|
1732
|
-
onSave:
|
|
1755
|
+
D(K, {
|
|
1756
|
+
modelValue: A.value,
|
|
1757
|
+
"onUpdate:modelValue": c[7] || (c[7] = (j) => A.value = j),
|
|
1758
|
+
onCancel: c[8] || (c[8] = (j) => d.value = ""),
|
|
1759
|
+
onSave: c[9] || (c[9] = (j) => d.value = "")
|
|
1733
1760
|
}, {
|
|
1734
|
-
default: w(({ model:
|
|
1735
|
-
|
|
1736
|
-
modelValue:
|
|
1737
|
-
"onUpdate:modelValue": (
|
|
1761
|
+
default: w(({ model: j, actions: ve }) => [
|
|
1762
|
+
D(pe, {
|
|
1763
|
+
modelValue: j.value,
|
|
1764
|
+
"onUpdate:modelValue": (he) => j.value = he,
|
|
1738
1765
|
"hide-header": !0,
|
|
1739
1766
|
format: "24hr"
|
|
1740
1767
|
}, {
|
|
1741
1768
|
actions: w(() => [
|
|
1742
|
-
(V(),
|
|
1769
|
+
(V(), S(Ce(ve)))
|
|
1743
1770
|
]),
|
|
1744
1771
|
_: 2
|
|
1745
1772
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1758,9 +1785,9 @@ const Mo = {
|
|
|
1758
1785
|
}, 16, ["class", "clearable"]);
|
|
1759
1786
|
};
|
|
1760
1787
|
}
|
|
1761
|
-
}),
|
|
1788
|
+
}), al = /* @__PURE__ */ R({
|
|
1762
1789
|
__name: "df-file",
|
|
1763
|
-
props: /* @__PURE__ */
|
|
1790
|
+
props: /* @__PURE__ */ ne({
|
|
1764
1791
|
comms: {},
|
|
1765
1792
|
control: {},
|
|
1766
1793
|
modelValue: {},
|
|
@@ -1776,82 +1803,82 @@ const Mo = {
|
|
|
1776
1803
|
passthroughAttrs: {},
|
|
1777
1804
|
density: {},
|
|
1778
1805
|
variant: {}
|
|
1779
|
-
},
|
|
1806
|
+
}, oe),
|
|
1780
1807
|
emits: ["update:modelValue", "click:clear"],
|
|
1781
1808
|
setup(e, { emit: t }) {
|
|
1782
|
-
const n = e,
|
|
1783
|
-
function
|
|
1809
|
+
const n = e, l = t, { densityClass: a, touched: r, value: s, vuetifyBindings: p } = Q(n, l), i = E(null), u = E(null), h = E(0), f = E(Math.round(Math.random() * 1e3)), k = E(), d = g(() => u.value && h.value < 100), T = g(() => !k.value && s.value ? n.modelValue : "");
|
|
1810
|
+
function x() {
|
|
1784
1811
|
i.value && window.clearInterval(i.value);
|
|
1785
1812
|
}
|
|
1786
|
-
function
|
|
1787
|
-
|
|
1813
|
+
function C() {
|
|
1814
|
+
x(), i.value = window.setInterval(() => {
|
|
1788
1815
|
s.value && n.comms.touch(s.value);
|
|
1789
1816
|
}, 60 * 1e3);
|
|
1790
1817
|
}
|
|
1791
|
-
|
|
1792
|
-
|
|
1818
|
+
nt(() => x()), ue(s, (A) => {
|
|
1819
|
+
A ? C() : x();
|
|
1793
1820
|
});
|
|
1794
|
-
function
|
|
1795
|
-
return
|
|
1796
|
-
s.value && (yield n.comms.delete(s.value)), s.value = null,
|
|
1821
|
+
function m() {
|
|
1822
|
+
return Te(this, null, function* () {
|
|
1823
|
+
s.value && (yield n.comms.delete(s.value)), s.value = null, h.value = 0, f.value = Math.round(Math.random() * 1e3), u.value = null, k.value = null, x();
|
|
1797
1824
|
});
|
|
1798
1825
|
}
|
|
1799
|
-
function
|
|
1800
|
-
return
|
|
1801
|
-
|
|
1826
|
+
function P(A) {
|
|
1827
|
+
return Te(this, null, function* () {
|
|
1828
|
+
h.value = -1, u.value = A;
|
|
1802
1829
|
try {
|
|
1803
|
-
s.value = yield n.comms.upload(
|
|
1804
|
-
|
|
1805
|
-
}),
|
|
1806
|
-
} catch (
|
|
1807
|
-
throw
|
|
1830
|
+
s.value = yield n.comms.upload(A, (b, N) => {
|
|
1831
|
+
h.value = Math.round(b * 100 / N);
|
|
1832
|
+
}), h.value = 100, C();
|
|
1833
|
+
} catch (b) {
|
|
1834
|
+
throw h.value = 0, u.value = null, f.value = Math.round(Math.random() * 1e3), k.value = null, b;
|
|
1808
1835
|
}
|
|
1809
1836
|
});
|
|
1810
1837
|
}
|
|
1811
|
-
function
|
|
1812
|
-
|
|
1838
|
+
function H(A) {
|
|
1839
|
+
A && (Array.isArray(A) ? console.error("Uploading multiple files not supported right now") : P(A));
|
|
1813
1840
|
}
|
|
1814
|
-
return (
|
|
1815
|
-
const
|
|
1816
|
-
return V(),
|
|
1817
|
-
class: o(
|
|
1841
|
+
return (A, b) => {
|
|
1842
|
+
const N = M("v-progress-linear"), v = M("v-file-input");
|
|
1843
|
+
return V(), S(o(Re), O(L(I({}, n), { loading: d.value }), {
|
|
1844
|
+
class: o(a),
|
|
1818
1845
|
clearable: "",
|
|
1819
|
-
"onClick:clear":
|
|
1820
|
-
onBlur:
|
|
1846
|
+
"onClick:clear": m,
|
|
1847
|
+
onBlur: b[1] || (b[1] = (c) => r.value = !0)
|
|
1821
1848
|
}), {
|
|
1822
1849
|
"prepend-inner": w(() => [
|
|
1823
|
-
|
|
1850
|
+
D(o(je), { name: "mdi-paperclip" })
|
|
1824
1851
|
]),
|
|
1825
1852
|
loader: w(() => [
|
|
1826
|
-
|
|
1853
|
+
u.value && h.value < 100 ? (V(), S(N, {
|
|
1827
1854
|
key: 0,
|
|
1828
|
-
"model-value":
|
|
1829
|
-
indeterminate:
|
|
1855
|
+
"model-value": h.value,
|
|
1856
|
+
indeterminate: h.value === -1
|
|
1830
1857
|
}, null, 8, ["model-value", "indeterminate"])) : U("", !0)
|
|
1831
1858
|
]),
|
|
1832
|
-
default: w((
|
|
1833
|
-
|
|
1834
|
-
class:
|
|
1859
|
+
default: w((c) => [
|
|
1860
|
+
de("div", {
|
|
1861
|
+
class: te(["d-flex w-100 position-relative df-input-wrapper", e.density])
|
|
1835
1862
|
}, [
|
|
1836
|
-
|
|
1837
|
-
modelValue:
|
|
1838
|
-
"onUpdate:modelValue":
|
|
1839
|
-
label:
|
|
1863
|
+
D(v, O({
|
|
1864
|
+
modelValue: k.value,
|
|
1865
|
+
"onUpdate:modelValue": b[0] || (b[0] = ($) => k.value = $),
|
|
1866
|
+
label: T.value,
|
|
1840
1867
|
density: "compact",
|
|
1841
1868
|
variant: "plain",
|
|
1842
|
-
readonly: o(
|
|
1843
|
-
disabled: o(
|
|
1844
|
-
name: o(
|
|
1869
|
+
readonly: o(p).readonly,
|
|
1870
|
+
disabled: o(p).disabled,
|
|
1871
|
+
name: o(p).name,
|
|
1845
1872
|
"hide-details": !0,
|
|
1846
1873
|
"show-size": !0,
|
|
1847
1874
|
multiple: !1,
|
|
1848
|
-
style:
|
|
1875
|
+
style: u.value && h.value < 100 ? "visibility: hidden" : "",
|
|
1849
1876
|
clearable: !1
|
|
1850
1877
|
}, e.passthroughAttrs, {
|
|
1851
1878
|
"prepend-icon": "",
|
|
1852
|
-
"onUpdate:modelValue":
|
|
1853
|
-
onFocus: ($) =>
|
|
1854
|
-
onBlur: ($) =>
|
|
1879
|
+
"onUpdate:modelValue": H,
|
|
1880
|
+
onFocus: ($) => c.focus(),
|
|
1881
|
+
onBlur: ($) => c.blur()
|
|
1855
1882
|
}), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
|
|
1856
1883
|
], 2)
|
|
1857
1884
|
]),
|
|
@@ -1859,9 +1886,9 @@ const Mo = {
|
|
|
1859
1886
|
}, 16, ["class"]);
|
|
1860
1887
|
};
|
|
1861
1888
|
}
|
|
1862
|
-
}),
|
|
1889
|
+
}), rl = /* @__PURE__ */ R({
|
|
1863
1890
|
__name: "df-input",
|
|
1864
|
-
props: /* @__PURE__ */
|
|
1891
|
+
props: /* @__PURE__ */ ne({
|
|
1865
1892
|
inputType: {},
|
|
1866
1893
|
precision: {},
|
|
1867
1894
|
step: {},
|
|
@@ -1881,7 +1908,7 @@ const Mo = {
|
|
|
1881
1908
|
passthroughAttrs: {},
|
|
1882
1909
|
density: {},
|
|
1883
1910
|
variant: {}
|
|
1884
|
-
},
|
|
1911
|
+
}, L(I({}, oe), {
|
|
1885
1912
|
inputType: "text",
|
|
1886
1913
|
precision: null,
|
|
1887
1914
|
step: void 0,
|
|
@@ -1890,51 +1917,51 @@ const Mo = {
|
|
|
1890
1917
|
})),
|
|
1891
1918
|
emits: ["update:modelValue", "click:clear"],
|
|
1892
1919
|
setup(e, { emit: t }) {
|
|
1893
|
-
const n = e,
|
|
1894
|
-
() =>
|
|
1920
|
+
const n = e, l = t, { densityClass: a, label: r, showErrors: s, touched: p, value: i, vuetifyBindings: u } = Q(n, l), { inputType: h, max: f, min: k, precision: d, step: T } = De(n), x = g(() => h.value === "number"), C = g(
|
|
1921
|
+
() => x.value ? { min: o(k), max: o(f), precision: o(d), step: o(T) } : {}
|
|
1895
1922
|
);
|
|
1896
|
-
return (
|
|
1897
|
-
const
|
|
1898
|
-
return V(),
|
|
1899
|
-
class:
|
|
1923
|
+
return (m, P) => {
|
|
1924
|
+
const H = M("v-text-field"), A = M("v-number-input");
|
|
1925
|
+
return V(), z("div", {
|
|
1926
|
+
class: te(["df-input-container", o(a)])
|
|
1900
1927
|
}, [
|
|
1901
|
-
|
|
1928
|
+
x.value ? (V(), S(A, O({
|
|
1902
1929
|
key: 1,
|
|
1903
1930
|
modelValue: o(i),
|
|
1904
|
-
"onUpdate:modelValue":
|
|
1931
|
+
"onUpdate:modelValue": P[2] || (P[2] = (b) => ce(i) ? i.value = b : null),
|
|
1905
1932
|
density: "compact",
|
|
1906
1933
|
"control-variant": "stacked"
|
|
1907
|
-
},
|
|
1908
|
-
label: w((
|
|
1909
|
-
|
|
1910
|
-
data:
|
|
1934
|
+
}, I(I({}, o(u)), C.value)), {
|
|
1935
|
+
label: w((b) => [
|
|
1936
|
+
D(o(me), {
|
|
1937
|
+
data: b,
|
|
1911
1938
|
label: o(r)
|
|
1912
1939
|
}, null, 8, ["data", "label"])
|
|
1913
1940
|
]),
|
|
1914
|
-
message: w(({ message:
|
|
1915
|
-
|
|
1916
|
-
message:
|
|
1941
|
+
message: w(({ message: b }) => [
|
|
1942
|
+
D(o(ee), {
|
|
1943
|
+
message: b,
|
|
1917
1944
|
errors: o(s)
|
|
1918
1945
|
}, null, 8, ["message", "errors"])
|
|
1919
1946
|
]),
|
|
1920
1947
|
_: 1
|
|
1921
|
-
}, 16, ["modelValue"])) : (V(),
|
|
1948
|
+
}, 16, ["modelValue"])) : (V(), S(H, O({
|
|
1922
1949
|
key: 0,
|
|
1923
1950
|
modelValue: o(i),
|
|
1924
|
-
"onUpdate:modelValue":
|
|
1925
|
-
type: o(
|
|
1926
|
-
}, o(
|
|
1927
|
-
onBlur:
|
|
1951
|
+
"onUpdate:modelValue": P[0] || (P[0] = (b) => ce(i) ? i.value = b : null),
|
|
1952
|
+
type: o(h)
|
|
1953
|
+
}, o(u), {
|
|
1954
|
+
onBlur: P[1] || (P[1] = (b) => p.value = !0)
|
|
1928
1955
|
}), {
|
|
1929
|
-
label: w((
|
|
1930
|
-
|
|
1931
|
-
data:
|
|
1956
|
+
label: w((b) => [
|
|
1957
|
+
D(o(me), {
|
|
1958
|
+
data: b,
|
|
1932
1959
|
label: o(r)
|
|
1933
1960
|
}, null, 8, ["data", "label"])
|
|
1934
1961
|
]),
|
|
1935
|
-
message: w(({ message:
|
|
1936
|
-
|
|
1937
|
-
message:
|
|
1962
|
+
message: w(({ message: b }) => [
|
|
1963
|
+
D(o(ee), {
|
|
1964
|
+
message: b,
|
|
1938
1965
|
errors: o(s)
|
|
1939
1966
|
}, null, 8, ["message", "errors"])
|
|
1940
1967
|
]),
|
|
@@ -1943,7 +1970,7 @@ const Mo = {
|
|
|
1943
1970
|
], 2);
|
|
1944
1971
|
};
|
|
1945
1972
|
}
|
|
1946
|
-
}),
|
|
1973
|
+
}), il = { class: "editor-container" }, sl = { class: "editor-container__editor" }, ul = { ref: "editorElement" }, cl = /* @__PURE__ */ R({
|
|
1947
1974
|
__name: "ck-editor-custom",
|
|
1948
1975
|
props: {
|
|
1949
1976
|
modelValue: { default: "" },
|
|
@@ -1952,10 +1979,10 @@ const Mo = {
|
|
|
1952
1979
|
},
|
|
1953
1980
|
emits: ["update:modelValue"],
|
|
1954
1981
|
setup(e, { expose: t, emit: n }) {
|
|
1955
|
-
|
|
1956
|
-
v32dcdf6e:
|
|
1982
|
+
_t((f) => ({
|
|
1983
|
+
v32dcdf6e: f.minHeight
|
|
1957
1984
|
}));
|
|
1958
|
-
const
|
|
1985
|
+
const l = n, a = E(!1), r = _n, s = {
|
|
1959
1986
|
items: [
|
|
1960
1987
|
"undo",
|
|
1961
1988
|
"redo",
|
|
@@ -1984,33 +2011,18 @@ const Mo = {
|
|
|
1984
2011
|
"accessibilityHelp"
|
|
1985
2012
|
],
|
|
1986
2013
|
shouldNotGroupWhenFull: !1
|
|
1987
|
-
},
|
|
1988
|
-
jt,
|
|
1989
|
-
Tt,
|
|
1990
|
-
xt,
|
|
1991
|
-
Bt,
|
|
1992
|
-
It,
|
|
1993
|
-
Dt,
|
|
1994
|
-
_t,
|
|
1995
|
-
Pt,
|
|
1996
|
-
St,
|
|
1997
|
-
Et,
|
|
1998
|
-
$t,
|
|
1999
|
-
At,
|
|
2000
|
-
Nt,
|
|
2001
|
-
Ft,
|
|
2002
|
-
Mt,
|
|
2014
|
+
}, p = [
|
|
2003
2015
|
Lt,
|
|
2004
2016
|
Ut,
|
|
2005
|
-
Ht,
|
|
2006
|
-
Ot,
|
|
2007
2017
|
Rt,
|
|
2018
|
+
Ht,
|
|
2008
2019
|
Wt,
|
|
2020
|
+
Ot,
|
|
2009
2021
|
zt,
|
|
2010
2022
|
Kt,
|
|
2011
2023
|
Xt,
|
|
2012
|
-
Gt,
|
|
2013
2024
|
qt,
|
|
2025
|
+
Gt,
|
|
2014
2026
|
Yt,
|
|
2015
2027
|
Qt,
|
|
2016
2028
|
Zt,
|
|
@@ -2019,27 +2031,42 @@ const Mo = {
|
|
|
2019
2031
|
tn,
|
|
2020
2032
|
nn,
|
|
2021
2033
|
on,
|
|
2022
|
-
an,
|
|
2023
2034
|
ln,
|
|
2035
|
+
an,
|
|
2024
2036
|
rn,
|
|
2025
2037
|
sn,
|
|
2026
2038
|
un,
|
|
2027
2039
|
cn,
|
|
2028
|
-
dn
|
|
2040
|
+
dn,
|
|
2041
|
+
mn,
|
|
2042
|
+
fn,
|
|
2043
|
+
pn,
|
|
2044
|
+
vn,
|
|
2045
|
+
hn,
|
|
2046
|
+
bn,
|
|
2047
|
+
gn,
|
|
2048
|
+
wn,
|
|
2049
|
+
yn,
|
|
2050
|
+
kn,
|
|
2051
|
+
Vn,
|
|
2052
|
+
Cn,
|
|
2053
|
+
jn,
|
|
2054
|
+
Tn,
|
|
2055
|
+
xn
|
|
2029
2056
|
], i = {
|
|
2030
2057
|
options: [
|
|
2031
|
-
{ model: "paragraph", title:
|
|
2032
|
-
{ model: "heading1", view: "h1", title:
|
|
2033
|
-
{ model: "heading2", view: "h2", title:
|
|
2034
|
-
{ model: "heading3", view: "h3", title:
|
|
2035
|
-
{ model: "heading4", view: "h4", title:
|
|
2036
|
-
{ model: "heading5", view: "h5", title:
|
|
2037
|
-
{ model: "heading6", view: "h6", title:
|
|
2058
|
+
{ model: "paragraph", title: F.Paragraph, class: "ck-heading_paragraph" },
|
|
2059
|
+
{ model: "heading1", view: "h1", title: F.Heading1, class: "ck-heading_heading1" },
|
|
2060
|
+
{ model: "heading2", view: "h2", title: F.Heading2, class: "ck-heading_heading2" },
|
|
2061
|
+
{ model: "heading3", view: "h3", title: F.Heading3, class: "ck-heading_heading3" },
|
|
2062
|
+
{ model: "heading4", view: "h4", title: F.Heading4, class: "ck-heading_heading4" },
|
|
2063
|
+
{ model: "heading5", view: "h5", title: F.Heading5, class: "ck-heading_heading5" },
|
|
2064
|
+
{ model: "heading6", view: "h6", title: F.Heading6, class: "ck-heading_heading6" }
|
|
2038
2065
|
]
|
|
2039
|
-
},
|
|
2040
|
-
language:
|
|
2066
|
+
}, u = {
|
|
2067
|
+
language: Be.language,
|
|
2041
2068
|
toolbar: s,
|
|
2042
|
-
plugins:
|
|
2069
|
+
plugins: p,
|
|
2043
2070
|
balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
|
|
2044
2071
|
heading: i,
|
|
2045
2072
|
htmlSupport: {
|
|
@@ -2064,7 +2091,7 @@ const Mo = {
|
|
|
2064
2091
|
decorators: {
|
|
2065
2092
|
toggleDownloadable: {
|
|
2066
2093
|
mode: "manual",
|
|
2067
|
-
label:
|
|
2094
|
+
label: F.Downloadable,
|
|
2068
2095
|
attributes: { download: "file" }
|
|
2069
2096
|
}
|
|
2070
2097
|
}
|
|
@@ -2072,48 +2099,48 @@ const Mo = {
|
|
|
2072
2099
|
placeholder: "",
|
|
2073
2100
|
style: {
|
|
2074
2101
|
definitions: [
|
|
2075
|
-
{ name:
|
|
2076
|
-
{ name:
|
|
2077
|
-
{ name:
|
|
2078
|
-
{ name:
|
|
2079
|
-
{ name:
|
|
2080
|
-
{ name:
|
|
2081
|
-
{ name:
|
|
2082
|
-
{ name:
|
|
2083
|
-
{ name:
|
|
2102
|
+
{ name: F.ArticleCategory, element: "h3", classes: ["category"] },
|
|
2103
|
+
{ name: F.Title, element: "h2", classes: ["document-title"] },
|
|
2104
|
+
{ name: F.Subtitle, element: "h3", classes: ["document-subtitle"] },
|
|
2105
|
+
{ name: F.InfoBox, element: "p", classes: ["info-box"] },
|
|
2106
|
+
{ name: F.SideQuote, element: "blockquote", classes: ["side-quote"] },
|
|
2107
|
+
{ name: F.Marker, element: "span", classes: ["marker"] },
|
|
2108
|
+
{ name: F.Spoiler, element: "span", classes: ["spoiler"] },
|
|
2109
|
+
{ name: F.CodeDark, element: "pre", classes: ["fancy-code", "fancy-code-dark"] },
|
|
2110
|
+
{ name: F.CodeBright, element: "pre", classes: ["fancy-code", "fancy-code-bright"] }
|
|
2084
2111
|
]
|
|
2085
2112
|
},
|
|
2086
2113
|
table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] },
|
|
2087
|
-
translations:
|
|
2114
|
+
translations: Be.translations
|
|
2088
2115
|
};
|
|
2089
|
-
|
|
2090
|
-
|
|
2116
|
+
tt(() => {
|
|
2117
|
+
a.value = !0;
|
|
2091
2118
|
});
|
|
2092
|
-
const
|
|
2119
|
+
const h = (f) => {
|
|
2093
2120
|
};
|
|
2094
|
-
return t({ onEditorReady:
|
|
2095
|
-
const d =
|
|
2096
|
-
return V(),
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2121
|
+
return t({ onEditorReady: h }), (f, k) => {
|
|
2122
|
+
const d = M("ckeditor");
|
|
2123
|
+
return V(), z("div", il, [
|
|
2124
|
+
de("div", sl, [
|
|
2125
|
+
de("div", ul, [
|
|
2126
|
+
a.value ? (V(), S(d, {
|
|
2100
2127
|
key: 0,
|
|
2101
2128
|
"model-value": e.modelValue,
|
|
2102
2129
|
editor: o(r),
|
|
2103
|
-
config:
|
|
2130
|
+
config: u,
|
|
2104
2131
|
disabled: e.disabled,
|
|
2105
|
-
style:
|
|
2106
|
-
onReady:
|
|
2107
|
-
"onUpdate:modelValue":
|
|
2132
|
+
style: ot(`min-height: ${e.minHeight}`),
|
|
2133
|
+
onReady: h,
|
|
2134
|
+
"onUpdate:modelValue": k[0] || (k[0] = (T) => l("update:modelValue", T))
|
|
2108
2135
|
}, null, 8, ["model-value", "editor", "disabled", "style"])) : U("", !0)
|
|
2109
2136
|
], 512)
|
|
2110
2137
|
])
|
|
2111
2138
|
]);
|
|
2112
2139
|
};
|
|
2113
2140
|
}
|
|
2114
|
-
}),
|
|
2141
|
+
}), dl = /* @__PURE__ */ R({
|
|
2115
2142
|
__name: "df-rtf-editor",
|
|
2116
|
-
props: /* @__PURE__ */
|
|
2143
|
+
props: /* @__PURE__ */ ne({
|
|
2117
2144
|
minHeight: {},
|
|
2118
2145
|
control: {},
|
|
2119
2146
|
modelValue: {},
|
|
@@ -2129,64 +2156,64 @@ const Mo = {
|
|
|
2129
2156
|
passthroughAttrs: {},
|
|
2130
2157
|
density: {},
|
|
2131
2158
|
variant: {}
|
|
2132
|
-
},
|
|
2159
|
+
}, L(I({}, oe), { minHeight: void 0 })),
|
|
2133
2160
|
emits: ["update:modelValue", "click:clear"],
|
|
2134
2161
|
setup(e, { emit: t }) {
|
|
2135
|
-
const n = e,
|
|
2136
|
-
return (
|
|
2137
|
-
class: ["ck-editor-custom", o(
|
|
2162
|
+
const n = e, l = t, { densityClass: a, value: r, vuetifyBindings: s } = Q(n, l);
|
|
2163
|
+
return (p, i) => (V(), S(o(Re), O(n, {
|
|
2164
|
+
class: ["ck-editor-custom", o(a)]
|
|
2138
2165
|
}), {
|
|
2139
|
-
default: w((
|
|
2140
|
-
|
|
2166
|
+
default: w((u) => [
|
|
2167
|
+
D(cl, O({
|
|
2141
2168
|
ref: "$editor",
|
|
2142
2169
|
modelValue: o(r),
|
|
2143
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
2170
|
+
"onUpdate:modelValue": i[0] || (i[0] = (h) => ce(r) ? r.value = h : null),
|
|
2144
2171
|
class: { "mt-6": !!e.label },
|
|
2145
2172
|
"min-height": e.minHeight,
|
|
2146
2173
|
disabled: o(s).disabled
|
|
2147
2174
|
}, e.passthroughAttrs, {
|
|
2148
|
-
onFocusin: (
|
|
2149
|
-
onFocusout: (
|
|
2175
|
+
onFocusin: (h) => u.focus(),
|
|
2176
|
+
onFocusout: (h) => u.blur()
|
|
2150
2177
|
}), null, 16, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
|
|
2151
2178
|
]),
|
|
2152
2179
|
_: 1
|
|
2153
2180
|
}, 16, ["class"]));
|
|
2154
2181
|
}
|
|
2155
2182
|
});
|
|
2156
|
-
function
|
|
2183
|
+
function ml(e) {
|
|
2157
2184
|
return e.map((t) => ({ value: t.id, title: t.text, icon: t.icon }));
|
|
2158
2185
|
}
|
|
2159
|
-
function
|
|
2186
|
+
function ae(e, t) {
|
|
2160
2187
|
var n;
|
|
2161
|
-
return e == null ||
|
|
2188
|
+
return e == null || Qe(e) && e.length === 0 ? null : t ? lt(e) : Qe(e) ? (n = at(e)) != null ? n : null : e;
|
|
2162
2189
|
}
|
|
2163
|
-
function
|
|
2190
|
+
function Ie(e, t) {
|
|
2164
2191
|
if (t == null) return [];
|
|
2165
|
-
const n =
|
|
2166
|
-
return e.filter((
|
|
2192
|
+
const n = lt(t);
|
|
2193
|
+
return e.filter((l) => n.some((a) => a === l.id));
|
|
2167
2194
|
}
|
|
2168
|
-
function
|
|
2195
|
+
function xe(e, t, n, l, a) {
|
|
2169
2196
|
var s;
|
|
2170
|
-
const r =
|
|
2197
|
+
const r = ae(e, n);
|
|
2171
2198
|
if (r == null) {
|
|
2172
2199
|
t.value = n ? [] : null;
|
|
2173
2200
|
return;
|
|
2174
2201
|
}
|
|
2175
2202
|
if (n)
|
|
2176
|
-
|
|
2177
|
-
else if (
|
|
2203
|
+
l ? t.value = r : t.value = Ie(a, r).map((p) => p.id);
|
|
2204
|
+
else if (l)
|
|
2178
2205
|
t.value = r;
|
|
2179
2206
|
else {
|
|
2180
|
-
const
|
|
2181
|
-
t.value = (s =
|
|
2207
|
+
const p = at(Ie(a, r));
|
|
2208
|
+
t.value = (s = p == null ? void 0 : p.id) != null ? s : null;
|
|
2182
2209
|
}
|
|
2183
2210
|
}
|
|
2184
|
-
const
|
|
2211
|
+
const fl = {
|
|
2185
2212
|
key: 0,
|
|
2186
2213
|
class: "me-1"
|
|
2187
|
-
},
|
|
2214
|
+
}, pl = /* @__PURE__ */ R({
|
|
2188
2215
|
__name: "df-select",
|
|
2189
|
-
props: /* @__PURE__ */
|
|
2216
|
+
props: /* @__PURE__ */ ne({
|
|
2190
2217
|
choices: {},
|
|
2191
2218
|
multiple: { type: Boolean },
|
|
2192
2219
|
allowTags: { type: Boolean },
|
|
@@ -2206,7 +2233,7 @@ const Zo = {
|
|
|
2206
2233
|
passthroughAttrs: {},
|
|
2207
2234
|
density: {},
|
|
2208
2235
|
variant: {}
|
|
2209
|
-
},
|
|
2236
|
+
}, L(I({}, oe), {
|
|
2210
2237
|
choices: void 0,
|
|
2211
2238
|
multiple: !1,
|
|
2212
2239
|
allowTags: !1,
|
|
@@ -2215,151 +2242,188 @@ const Zo = {
|
|
|
2215
2242
|
})),
|
|
2216
2243
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
2217
2244
|
setup(e, { emit: t }) {
|
|
2218
|
-
const n = e, { choices:
|
|
2219
|
-
densityClass:
|
|
2220
|
-
label:
|
|
2221
|
-
showErrors:
|
|
2222
|
-
touched:
|
|
2223
|
-
value:
|
|
2224
|
-
vuetifyBindings:
|
|
2225
|
-
} =
|
|
2226
|
-
|
|
2227
|
-
function
|
|
2228
|
-
|
|
2245
|
+
const n = e, { choices: l, multiple: a, allowTags: r, allowNull: s, cssClass: p, visibility: i } = De(n), u = t, h = E(null), {
|
|
2246
|
+
densityClass: f,
|
|
2247
|
+
label: k,
|
|
2248
|
+
showErrors: d,
|
|
2249
|
+
touched: T,
|
|
2250
|
+
value: x,
|
|
2251
|
+
vuetifyBindings: C
|
|
2252
|
+
} = Q(n, u), m = E(null), P = E(!1), H = E([]), A = g(() => o(P) ? o(H) : o(l) || []), b = E(!1), N = g(() => ml(A.value)), v = E(null), c = E(0), $ = E(!1);
|
|
2253
|
+
N.value && n.fetchChoices !== void 0 && console.warn("Both options and fetchChoices are set. Only one of them should be set.");
|
|
2254
|
+
function K(y) {
|
|
2255
|
+
u("update:modelValueDisplay", Ie(A.value, y));
|
|
2229
2256
|
}
|
|
2230
|
-
|
|
2231
|
-
function
|
|
2232
|
-
|
|
2233
|
-
|
|
2257
|
+
const Z = E(!1);
|
|
2258
|
+
function le(y) {
|
|
2259
|
+
Z.value = !0, x.value = y, Xe(() => {
|
|
2260
|
+
Z.value = !1;
|
|
2234
2261
|
});
|
|
2235
2262
|
}
|
|
2263
|
+
function pe(y) {
|
|
2264
|
+
if (!y) return 0;
|
|
2265
|
+
const _ = y.getBoundingClientRect(), W = window.getComputedStyle(y);
|
|
2266
|
+
return _.width + parseFloat(W.marginLeft) + parseFloat(W.marginRight);
|
|
2267
|
+
}
|
|
2268
|
+
function J() {
|
|
2269
|
+
var y;
|
|
2270
|
+
if (a.value && s.value && m.value != null && m.value.length > 0 && h.value) {
|
|
2271
|
+
const _ = h.value.$el, W = (y = _.querySelector(".v-input__control")) == null ? void 0 : y.clientWidth, X = _.querySelector(".v-field__input"), B = X.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), q = window.getComputedStyle(X);
|
|
2272
|
+
let be = parseFloat(q.paddingLeft) + parseFloat(q.paddingRight);
|
|
2273
|
+
B.forEach((vt) => {
|
|
2274
|
+
be += pe(vt);
|
|
2275
|
+
});
|
|
2276
|
+
const mt = pe(_.querySelector(".v-field .v-field__clearable")), ft = pe(_.querySelector(".v-field .v-field__append-inner")), pt = 2;
|
|
2277
|
+
$.value = W - be - B.length * pt - ft < mt;
|
|
2278
|
+
} else
|
|
2279
|
+
$.value = !1;
|
|
2280
|
+
}
|
|
2281
|
+
function j(y) {
|
|
2282
|
+
const _ = y.target;
|
|
2283
|
+
_ instanceof HTMLElement && _.closest(".v-chip__close") && (y.stopPropagation(), y.preventDefault());
|
|
2284
|
+
}
|
|
2236
2285
|
ue(
|
|
2237
|
-
|
|
2238
|
-
(
|
|
2239
|
-
|
|
2240
|
-
const
|
|
2241
|
-
|
|
2286
|
+
m,
|
|
2287
|
+
(y) => {
|
|
2288
|
+
C.value.readonly || Xe(() => {
|
|
2289
|
+
const _ = ae(y, a.value);
|
|
2290
|
+
K(_), le(_);
|
|
2242
2291
|
});
|
|
2243
2292
|
},
|
|
2244
2293
|
{ deep: !0 }
|
|
2245
2294
|
), ue(
|
|
2246
|
-
|
|
2247
|
-
(
|
|
2248
|
-
if (!
|
|
2249
|
-
const
|
|
2250
|
-
|
|
2295
|
+
x,
|
|
2296
|
+
(y) => {
|
|
2297
|
+
if (!Z.value) {
|
|
2298
|
+
const _ = ae(y, a.value);
|
|
2299
|
+
xe(_, m, a.value, !1, A.value);
|
|
2251
2300
|
}
|
|
2252
2301
|
},
|
|
2253
2302
|
{ deep: !0 }
|
|
2254
|
-
)
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2303
|
+
), ue(Z, () => {
|
|
2304
|
+
Z.value || J();
|
|
2305
|
+
});
|
|
2306
|
+
function ve() {
|
|
2307
|
+
v.value != null && v.value.length > 0 && (v.value = null, Se());
|
|
2259
2308
|
}
|
|
2260
|
-
function
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
l.value
|
|
2265
|
-
) : I = null, we(I, k, l.value, !1, M.value), u(I);
|
|
2309
|
+
function he() {
|
|
2310
|
+
if (ve(), C.value.readonly || r.value) return;
|
|
2311
|
+
const y = ae(m.value, a.value);
|
|
2312
|
+
xe(y, m, a.value, !1, A.value), le(y);
|
|
2266
2313
|
}
|
|
2267
|
-
function
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2314
|
+
function dt(y, _) {
|
|
2315
|
+
if (y.stopPropagation(), C.value.readonly || r.value) {
|
|
2316
|
+
r.value && (m.value = m.value.filter((X) => X !== _));
|
|
2317
|
+
return;
|
|
2318
|
+
}
|
|
2319
|
+
let W;
|
|
2320
|
+
a.value && Array.isArray(m.value) ? W = ae(
|
|
2321
|
+
m.value.filter((X) => X !== _),
|
|
2322
|
+
a.value
|
|
2323
|
+
) : W = null, xe(W, m, a.value, !1, A.value), le(W);
|
|
2324
|
+
}
|
|
2325
|
+
function Se(y, _) {
|
|
2326
|
+
return Te(this, null, function* () {
|
|
2327
|
+
if (C.value.readonly || (v.value = y, l.value || n.fetchChoices === void 0)) return;
|
|
2328
|
+
const W = ++c.value;
|
|
2329
|
+
b.value = !0;
|
|
2330
|
+
try {
|
|
2331
|
+
const X = Ie(
|
|
2332
|
+
A.value,
|
|
2333
|
+
ae(m.value, a.value)
|
|
2334
|
+
), B = yield n.fetchChoices(y, _);
|
|
2335
|
+
if (W !== c.value) return;
|
|
2336
|
+
H.value = St([...X, ...B], "id"), P.value = !0;
|
|
2337
|
+
} finally {
|
|
2338
|
+
b.value = !1;
|
|
2280
2339
|
}
|
|
2281
2340
|
});
|
|
2282
2341
|
}
|
|
2283
|
-
function
|
|
2284
|
-
let
|
|
2285
|
-
!s.value &&
|
|
2342
|
+
function He() {
|
|
2343
|
+
let y = x.value;
|
|
2344
|
+
!s.value && y == null && N.value.length && (y = N.value[0].value), y = ae(y, a.value), xe(y, m, a.value, r.value, A.value), K(y), le(y);
|
|
2286
2345
|
}
|
|
2287
|
-
return
|
|
2288
|
-
|
|
2289
|
-
}), (
|
|
2290
|
-
const
|
|
2291
|
-
return o(i) !== o(
|
|
2346
|
+
return He(), n.fetchChoices !== void 0 && Se(void 0, x.value).then(() => {
|
|
2347
|
+
He();
|
|
2348
|
+
}), (y, _) => {
|
|
2349
|
+
const W = M("v-chip"), X = M("v-list-item");
|
|
2350
|
+
return o(i) !== o(Y).SUPPRESS ? (V(), S(Ce(o(r) ? "v-combobox" : "v-autocomplete"), O({
|
|
2292
2351
|
key: 0,
|
|
2293
|
-
|
|
2294
|
-
|
|
2352
|
+
ref_key: "dfSelectRef",
|
|
2353
|
+
ref: h,
|
|
2354
|
+
modelValue: m.value,
|
|
2355
|
+
"onUpdate:modelValue": _[0] || (_[0] = (B) => m.value = B),
|
|
2295
2356
|
class: [
|
|
2357
|
+
o(p),
|
|
2296
2358
|
o(f),
|
|
2297
|
-
o(v),
|
|
2298
2359
|
{
|
|
2299
|
-
"d-none": o(i) === o(
|
|
2300
|
-
invisible: o(i) === o(
|
|
2360
|
+
"d-none": o(i) === o(Y).HIDDEN,
|
|
2361
|
+
invisible: o(i) === o(Y).INVISIBLE,
|
|
2362
|
+
"df-select-multirow": $.value
|
|
2301
2363
|
}
|
|
2302
2364
|
],
|
|
2303
|
-
items:
|
|
2365
|
+
items: N.value,
|
|
2304
2366
|
"return-object": !1,
|
|
2305
2367
|
chips: "",
|
|
2306
2368
|
"auto-select-first": !0,
|
|
2307
|
-
"closable-chips": o(s) || o(
|
|
2369
|
+
"closable-chips": o(s) || o(a) && m.value.length > 1,
|
|
2308
2370
|
clearable: o(s),
|
|
2309
|
-
multiple: o(
|
|
2310
|
-
loading:
|
|
2371
|
+
multiple: o(a),
|
|
2372
|
+
loading: b.value,
|
|
2311
2373
|
"hide-selected": !1,
|
|
2312
|
-
"aria-describedby": o(
|
|
2313
|
-
"menu-props": { maxHeight: "400" }
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
"onUpdate:
|
|
2317
|
-
"
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2374
|
+
"aria-describedby": o(C).helpText ? `${o(C).name}-help` : null,
|
|
2375
|
+
"menu-props": { maxHeight: "400" },
|
|
2376
|
+
search: v.value
|
|
2377
|
+
}, o(C), {
|
|
2378
|
+
"onUpdate:search": _[1] || (_[1] = (B) => Se(B, void 0)),
|
|
2379
|
+
"onUpdate:modelValue": he,
|
|
2380
|
+
"onClick:clear": _[2] || (_[2] = (B) => m.value = null),
|
|
2381
|
+
onBlur: _[3] || (_[3] = (B) => T.value = !0),
|
|
2382
|
+
onMousedownCapture: _[4] || (_[4] = (B) => j(B))
|
|
2383
|
+
}), Me({
|
|
2384
|
+
chip: w(({ item: B }) => [
|
|
2385
|
+
(V(), S(W, {
|
|
2386
|
+
key: B.value,
|
|
2323
2387
|
label: "",
|
|
2324
2388
|
size: "small",
|
|
2325
2389
|
class: "d-flex align-middle",
|
|
2326
|
-
variant: o(
|
|
2327
|
-
closable: o(
|
|
2328
|
-
"onClick:close": (
|
|
2390
|
+
variant: o(a) ? "tonal" : "text",
|
|
2391
|
+
closable: o(a),
|
|
2392
|
+
"onClick:close": (q) => dt(q, B.value)
|
|
2329
2393
|
}, {
|
|
2330
2394
|
prepend: w(() => {
|
|
2331
|
-
var
|
|
2395
|
+
var q;
|
|
2332
2396
|
return [
|
|
2333
|
-
(
|
|
2397
|
+
(q = B.raw) != null && q.icon ? (V(), S(o(je), {
|
|
2334
2398
|
key: 0,
|
|
2335
2399
|
class: "me-1",
|
|
2336
|
-
name:
|
|
2400
|
+
name: B.raw.icon
|
|
2337
2401
|
}, null, 8, ["name"])) : U("", !0)
|
|
2338
2402
|
];
|
|
2339
2403
|
}),
|
|
2340
2404
|
default: w(() => [
|
|
2341
|
-
|
|
2342
|
-
class:
|
|
2343
|
-
},
|
|
2405
|
+
de("span", {
|
|
2406
|
+
class: te({ "text-body-1": !o(a) })
|
|
2407
|
+
}, Ne(B.title), 3)
|
|
2344
2408
|
]),
|
|
2345
2409
|
_: 2
|
|
2346
2410
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
2347
2411
|
]),
|
|
2348
|
-
label: w((
|
|
2349
|
-
|
|
2350
|
-
data:
|
|
2351
|
-
label: o(
|
|
2412
|
+
label: w((B) => [
|
|
2413
|
+
D(o(me), {
|
|
2414
|
+
data: B,
|
|
2415
|
+
label: o(k)
|
|
2352
2416
|
}, null, 8, ["data", "label"])
|
|
2353
2417
|
]),
|
|
2354
|
-
item: w(({ props:
|
|
2355
|
-
|
|
2418
|
+
item: w(({ props: B, item: q }) => [
|
|
2419
|
+
D(X, re(ie(B)), {
|
|
2356
2420
|
prepend: w(() => {
|
|
2357
|
-
var
|
|
2421
|
+
var be;
|
|
2358
2422
|
return [
|
|
2359
|
-
(
|
|
2360
|
-
|
|
2423
|
+
(be = q.raw) != null && be.icon ? (V(), z("span", fl, [
|
|
2424
|
+
D(o(je), {
|
|
2361
2425
|
class: "action-icon",
|
|
2362
|
-
name:
|
|
2426
|
+
name: q.raw.icon
|
|
2363
2427
|
}, null, 8, ["name"])
|
|
2364
2428
|
])) : U("", !0)
|
|
2365
2429
|
];
|
|
@@ -2367,34 +2431,39 @@ const Zo = {
|
|
|
2367
2431
|
_: 2
|
|
2368
2432
|
}, 1040)
|
|
2369
2433
|
]),
|
|
2370
|
-
message: w(({ message:
|
|
2371
|
-
|
|
2372
|
-
message:
|
|
2373
|
-
errors: o(
|
|
2434
|
+
message: w(({ message: B }) => [
|
|
2435
|
+
D(o(ee), {
|
|
2436
|
+
message: B,
|
|
2437
|
+
errors: o(d)
|
|
2374
2438
|
}, null, 8, ["message", "errors"])
|
|
2375
2439
|
]),
|
|
2376
2440
|
_: 2
|
|
2377
2441
|
}, [
|
|
2378
|
-
|
|
2442
|
+
y.$slots["append-inner"] ? {
|
|
2379
2443
|
name: "append-inner",
|
|
2380
|
-
fn: w((
|
|
2381
|
-
|
|
2444
|
+
fn: w((B) => [
|
|
2445
|
+
fe(y.$slots, "append-inner", re(ie(B)), void 0, !0)
|
|
2382
2446
|
]),
|
|
2383
2447
|
key: "0"
|
|
2384
2448
|
} : void 0,
|
|
2385
|
-
|
|
2449
|
+
y.$slots["prepend-inner"] ? {
|
|
2386
2450
|
name: "prepend-inner",
|
|
2387
|
-
fn: w((
|
|
2388
|
-
|
|
2451
|
+
fn: w((B) => [
|
|
2452
|
+
fe(y.$slots, "prepend-inner", re(ie(B)), void 0, !0)
|
|
2389
2453
|
]),
|
|
2390
2454
|
key: "1"
|
|
2391
2455
|
} : void 0
|
|
2392
|
-
]), 1040, ["modelValue", "class", "items", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : U("", !0);
|
|
2456
|
+
]), 1040, ["modelValue", "class", "items", "closable-chips", "clearable", "multiple", "loading", "aria-describedby", "search"])) : U("", !0);
|
|
2393
2457
|
};
|
|
2394
2458
|
}
|
|
2395
|
-
}),
|
|
2459
|
+
}), vl = (e, t) => {
|
|
2460
|
+
const n = e.__vccOpts || e;
|
|
2461
|
+
for (const [l, a] of t)
|
|
2462
|
+
n[l] = a;
|
|
2463
|
+
return n;
|
|
2464
|
+
}, hl = /* @__PURE__ */ vl(pl, [["__scopeId", "data-v-bc8c4153"]]), bl = /* @__PURE__ */ R({
|
|
2396
2465
|
__name: "df-text-area",
|
|
2397
|
-
props: /* @__PURE__ */
|
|
2466
|
+
props: /* @__PURE__ */ ne({
|
|
2398
2467
|
rows: {},
|
|
2399
2468
|
maxRows: {},
|
|
2400
2469
|
control: {},
|
|
@@ -2411,44 +2480,44 @@ const Zo = {
|
|
|
2411
2480
|
passthroughAttrs: {},
|
|
2412
2481
|
density: {},
|
|
2413
2482
|
variant: {}
|
|
2414
|
-
},
|
|
2483
|
+
}, L(I({}, oe), {
|
|
2415
2484
|
rows: void 0,
|
|
2416
2485
|
maxRows: void 0
|
|
2417
2486
|
})),
|
|
2418
2487
|
emits: ["update:modelValue", "click:clear"],
|
|
2419
2488
|
setup(e, { emit: t }) {
|
|
2420
|
-
const n = e,
|
|
2421
|
-
return (
|
|
2422
|
-
const
|
|
2423
|
-
return V(),
|
|
2424
|
-
class:
|
|
2489
|
+
const n = e, l = t, { densityClass: a, label: r, showErrors: s, touched: p, value: i, vuetifyBindings: u } = Q(n, l), { cssClass: h, visibility: f } = De(n);
|
|
2490
|
+
return (k, d) => {
|
|
2491
|
+
const T = M("v-textarea");
|
|
2492
|
+
return V(), z("div", {
|
|
2493
|
+
class: te(["df-textarea-container", o(a)])
|
|
2425
2494
|
}, [
|
|
2426
|
-
o(
|
|
2495
|
+
o(f) !== o(Y).SUPPRESS ? (V(), S(T, O({
|
|
2427
2496
|
key: 0,
|
|
2428
2497
|
modelValue: o(i),
|
|
2429
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
2498
|
+
"onUpdate:modelValue": d[0] || (d[0] = (x) => ce(i) ? i.value = x : null),
|
|
2430
2499
|
class: [
|
|
2431
|
-
o(
|
|
2500
|
+
o(h),
|
|
2432
2501
|
{
|
|
2433
|
-
"d-none": o(
|
|
2434
|
-
invisible: o(
|
|
2502
|
+
"d-none": o(f) === o(Y).HIDDEN,
|
|
2503
|
+
invisible: o(f) === o(Y).INVISIBLE
|
|
2435
2504
|
}
|
|
2436
2505
|
],
|
|
2437
2506
|
rows: e.rows,
|
|
2438
2507
|
"auto-grow": (e.maxRows || 0) > 0,
|
|
2439
2508
|
"max-rows": e.maxRows
|
|
2440
|
-
}, o(
|
|
2441
|
-
onBlur: d[1] || (d[1] = (
|
|
2509
|
+
}, o(u), {
|
|
2510
|
+
onBlur: d[1] || (d[1] = (x) => p.value = !0)
|
|
2442
2511
|
}), {
|
|
2443
|
-
label: w((
|
|
2444
|
-
|
|
2445
|
-
data:
|
|
2512
|
+
label: w((x) => [
|
|
2513
|
+
D(o(me), {
|
|
2514
|
+
data: x,
|
|
2446
2515
|
label: o(r)
|
|
2447
2516
|
}, null, 8, ["data", "label"])
|
|
2448
2517
|
]),
|
|
2449
|
-
message: w(({ message:
|
|
2450
|
-
|
|
2451
|
-
message:
|
|
2518
|
+
message: w(({ message: x }) => [
|
|
2519
|
+
D(o(ee), {
|
|
2520
|
+
message: x,
|
|
2452
2521
|
errors: o(s)
|
|
2453
2522
|
}, null, 8, ["message", "errors"])
|
|
2454
2523
|
]),
|
|
@@ -2457,86 +2526,86 @@ const Zo = {
|
|
|
2457
2526
|
], 2);
|
|
2458
2527
|
};
|
|
2459
2528
|
}
|
|
2460
|
-
}),
|
|
2529
|
+
}), gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2461
2530
|
__proto__: null,
|
|
2462
|
-
DFInputHint:
|
|
2463
|
-
DfActions:
|
|
2464
|
-
DfCheckbox:
|
|
2465
|
-
DfColor:
|
|
2466
|
-
DfDateTime:
|
|
2467
|
-
DfFile:
|
|
2468
|
-
DfInput:
|
|
2469
|
-
DfRtfEditor:
|
|
2470
|
-
DfSelect:
|
|
2471
|
-
DfTextArea:
|
|
2472
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2531
|
+
DFInputHint: ee,
|
|
2532
|
+
DfActions: tl,
|
|
2533
|
+
DfCheckbox: nl,
|
|
2534
|
+
DfColor: ol,
|
|
2535
|
+
DfDateTime: ll,
|
|
2536
|
+
DfFile: al,
|
|
2537
|
+
DfInput: rl,
|
|
2538
|
+
DfRtfEditor: dl,
|
|
2539
|
+
DfSelect: hl,
|
|
2540
|
+
DfTextArea: bl
|
|
2541
|
+
}, Symbol.toStringTag, { value: "Module" })), wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2473
2542
|
__proto__: null,
|
|
2474
|
-
VAutocomplete:
|
|
2475
|
-
VBtn:
|
|
2476
|
-
VCheckbox:
|
|
2477
|
-
VChip:
|
|
2478
|
-
VCol:
|
|
2479
|
-
VColorPicker:
|
|
2480
|
-
VCombobox:
|
|
2481
|
-
VConfirmEdit:
|
|
2482
|
-
VDatePicker:
|
|
2483
|
-
VField:
|
|
2484
|
-
VFileInput:
|
|
2485
|
-
VIcon:
|
|
2486
|
-
VImg:
|
|
2487
|
-
VInput:
|
|
2488
|
-
VListItem:
|
|
2489
|
-
VMenu:
|
|
2490
|
-
VNumberInput:
|
|
2491
|
-
VProgressLinear:
|
|
2492
|
-
VRow:
|
|
2493
|
-
VSelect:
|
|
2494
|
-
VSwitch:
|
|
2495
|
-
VTextField:
|
|
2496
|
-
VTextarea:
|
|
2497
|
-
VTimePicker:
|
|
2498
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2543
|
+
VAutocomplete: Bn,
|
|
2544
|
+
VBtn: In,
|
|
2545
|
+
VCheckbox: Dn,
|
|
2546
|
+
VChip: Sn,
|
|
2547
|
+
VCol: Nn,
|
|
2548
|
+
VColorPicker: En,
|
|
2549
|
+
VCombobox: Pn,
|
|
2550
|
+
VConfirmEdit: An,
|
|
2551
|
+
VDatePicker: $n,
|
|
2552
|
+
VField: Fn,
|
|
2553
|
+
VFileInput: Mn,
|
|
2554
|
+
VIcon: Un,
|
|
2555
|
+
VImg: Rn,
|
|
2556
|
+
VInput: Hn,
|
|
2557
|
+
VListItem: Wn,
|
|
2558
|
+
VMenu: On,
|
|
2559
|
+
VNumberInput: zn,
|
|
2560
|
+
VProgressLinear: Kn,
|
|
2561
|
+
VRow: Ln,
|
|
2562
|
+
VSelect: Xn,
|
|
2563
|
+
VSwitch: qn,
|
|
2564
|
+
VTextField: Yn,
|
|
2565
|
+
VTextarea: Gn,
|
|
2566
|
+
VTimePicker: Qn
|
|
2567
|
+
}, Symbol.toStringTag, { value: "Module" })), ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2499
2568
|
__proto__: null
|
|
2500
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2569
|
+
}, Symbol.toStringTag, { value: "Module" })), ta = {
|
|
2501
2570
|
install: (e, t) => {
|
|
2502
|
-
var n,
|
|
2503
|
-
e.use(
|
|
2571
|
+
var n, l;
|
|
2572
|
+
e.use(uo), e.provide(ct, t != null ? t : {}), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(gl).map(([a, r]) => e.component(a, r)), (l = t == null ? void 0 : t.registerVuetifyComponents) != null && l && Object.entries(wl).map(([a, r]) => e.component(a, r));
|
|
2504
2573
|
}
|
|
2505
2574
|
};
|
|
2506
2575
|
export {
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2576
|
+
_e as Action,
|
|
2577
|
+
G as ActionDisplayStyle,
|
|
2578
|
+
ee as DFInputHint,
|
|
2579
|
+
Ko as DateTimeLocaleConfig,
|
|
2580
|
+
tl as DfActions,
|
|
2581
|
+
nl as DfCheckbox,
|
|
2582
|
+
ol as DfColor,
|
|
2583
|
+
ll as DfDateTime,
|
|
2584
|
+
al as DfFile,
|
|
2585
|
+
rl as DfInput,
|
|
2586
|
+
ea as DfInputComponentProps,
|
|
2587
|
+
gl as DfInputComponents,
|
|
2588
|
+
ee as DfInputHint,
|
|
2589
|
+
me as DfLabel,
|
|
2590
|
+
dl as DfRtfEditor,
|
|
2591
|
+
hl as DfSelect,
|
|
2592
|
+
bl as DfTextArea,
|
|
2593
|
+
ta as DynamicFormsInputs,
|
|
2594
|
+
Re as InputBase,
|
|
2595
|
+
Xo as Label,
|
|
2596
|
+
Zo as ResponsiveActionRenderOptions,
|
|
2597
|
+
Go as ResponsiveRenderOptions,
|
|
2598
|
+
wl as VuetifyComponents,
|
|
2599
|
+
Be as ckEditorLanguage,
|
|
2600
|
+
oe as defaultBaseProps,
|
|
2601
|
+
Je as defaultDisplayStyle,
|
|
2602
|
+
Yo as getBreakpointName,
|
|
2603
|
+
et as responsiveBreakpoints,
|
|
2604
|
+
Jl as setCkEditorLanguage,
|
|
2605
|
+
F as translatableStrings,
|
|
2606
|
+
Zl as translateStrings,
|
|
2607
|
+
Qo as useBreakpoint,
|
|
2608
|
+
Q as useInputBase,
|
|
2609
|
+
ct as vuetifyInputsSettingsKey
|
|
2541
2610
|
};
|
|
2542
2611
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|