@dynamicforms/vuetify-inputs 0.7.10 → 0.7.12
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 +1003 -961
- 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 +6 -2
- package/package.json +13 -5
- package/readme.md +26 -8
|
@@ -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
|
-
}, L = (e, t) =>
|
|
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
|
|
63
|
+
function Le(e) {
|
|
64
64
|
return !!e && /^\d+\.\d+\.\d+/.test(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
if (!
|
|
66
|
+
function rt(e) {
|
|
67
|
+
if (!Le(e))
|
|
68
68
|
throw new Error(`Invalid semantic version: ${e || "<blank>"}.`);
|
|
69
|
-
const [t, n,
|
|
69
|
+
const [t, n, l] = e.split(".");
|
|
70
70
|
return {
|
|
71
71
|
major: Number.parseInt(t, 10),
|
|
72
72
|
minor: Number.parseInt(n, 10),
|
|
73
|
-
patch: Number.parseInt(
|
|
73
|
+
patch: Number.parseInt(l, 10)
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Ue(e) {
|
|
77
77
|
return e ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((t) => e.includes(t)) : !1;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function Zn(e) {
|
|
80
|
+
return Le(e) || Ue(e);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Jn(e, t) {
|
|
83
83
|
const n = e.extraPlugins || [];
|
|
84
|
-
return L(
|
|
84
|
+
return L(I({}, e), {
|
|
85
85
|
extraPlugins: [
|
|
86
86
|
...n,
|
|
87
|
-
...t.filter((
|
|
87
|
+
...t.filter((l) => !n.includes(l))
|
|
88
88
|
]
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
if (
|
|
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 On(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,58 +123,58 @@ function tt(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
136
|
version: "7.4.0",
|
|
137
|
-
frameworkVersion:
|
|
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
|
-
function
|
|
150
|
+
function ao(e, t) {
|
|
151
151
|
var n;
|
|
152
|
-
if (
|
|
153
|
-
const
|
|
154
|
-
roots: L(
|
|
155
|
-
main: L(
|
|
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
156
|
initialData: t
|
|
157
157
|
})
|
|
158
158
|
})
|
|
159
159
|
});
|
|
160
|
-
return delete
|
|
160
|
+
return delete l.root, delete l.initialData, l;
|
|
161
161
|
}
|
|
162
|
-
return L(
|
|
162
|
+
return L(I({}, e), {
|
|
163
163
|
initialData: t
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function ro(e) {
|
|
167
167
|
var t, n;
|
|
168
|
-
return
|
|
168
|
+
return ut() ? (n = (t = e.roots) == null ? void 0 : t.main) == null ? void 0 : n.initialData : e.initialData;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
const e =
|
|
172
|
-
return e ? !
|
|
170
|
+
function ut() {
|
|
171
|
+
const e = it();
|
|
172
|
+
return e ? !Le(e.version) || Ue(e.version) || rt(e.version).major >= 48 : !1;
|
|
173
173
|
}
|
|
174
|
-
const
|
|
174
|
+
const Ae = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", io = 300, so = /* @__PURE__ */ R({
|
|
175
175
|
name: "CKEditor",
|
|
176
176
|
__name: "ckeditor",
|
|
177
|
-
props: /* @__PURE__ */
|
|
177
|
+
props: /* @__PURE__ */ ze({
|
|
178
178
|
editor: {},
|
|
179
179
|
config: { default: () => ({}) },
|
|
180
180
|
tagName: { default: "div" },
|
|
@@ -184,72 +184,72 @@ const Be = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", qn = 300, Yn =
|
|
|
184
184
|
modelValue: { type: String, default: "" },
|
|
185
185
|
modelModifiers: {}
|
|
186
186
|
}),
|
|
187
|
-
emits: /* @__PURE__ */
|
|
187
|
+
emits: /* @__PURE__ */ ze(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
|
|
188
188
|
setup(e, { expose: t, emit: n }) {
|
|
189
|
-
const
|
|
189
|
+
const l = kt(e, "modelValue"), a = e, r = n, s = E(), p = E(), i = E();
|
|
190
190
|
t({
|
|
191
|
-
instance:
|
|
191
|
+
instance: p,
|
|
192
192
|
lastEditorData: i
|
|
193
|
-
}), ue(
|
|
194
|
-
|
|
195
|
-
}), ue(() =>
|
|
196
|
-
|
|
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);
|
|
197
197
|
});
|
|
198
|
-
function
|
|
199
|
-
const
|
|
200
|
-
if (!
|
|
198
|
+
function u() {
|
|
199
|
+
const f = window.CKEDITOR_VERSION;
|
|
200
|
+
if (!f)
|
|
201
201
|
return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
|
|
202
|
-
const [
|
|
203
|
-
|
|
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.");
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
const
|
|
207
|
-
if (
|
|
205
|
+
function h(f) {
|
|
206
|
+
const k = Bt((d) => {
|
|
207
|
+
if (a.disableTwoWayDataBinding)
|
|
208
208
|
return;
|
|
209
|
-
const
|
|
210
|
-
r("update:modelValue",
|
|
211
|
-
},
|
|
212
|
-
|
|
213
|
-
r("focus", d,
|
|
214
|
-
}),
|
|
215
|
-
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);
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
|
-
return
|
|
219
|
-
let
|
|
220
|
-
Object.assign({},
|
|
218
|
+
return u(), tt(() => {
|
|
219
|
+
let f = lo(
|
|
220
|
+
Object.assign({}, a.config)
|
|
221
221
|
);
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}).catch((
|
|
225
|
-
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);
|
|
226
226
|
});
|
|
227
|
-
}),
|
|
228
|
-
|
|
229
|
-
}), (
|
|
227
|
+
}), nt(() => {
|
|
228
|
+
p.value && (p.value.destroy(), p.value = void 0), r("destroy");
|
|
229
|
+
}), (f, k) => (V(), S(Ce(e.tagName), {
|
|
230
230
|
ref_key: "element",
|
|
231
231
|
ref: s
|
|
232
232
|
}, null, 512));
|
|
233
233
|
}
|
|
234
234
|
});
|
|
235
|
-
if (!
|
|
235
|
+
if (!Oe.version || !Oe.version.startsWith("3."))
|
|
236
236
|
throw new Error(
|
|
237
237
|
"The CKEditor plugin works only with Vue 3+. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v3.html"
|
|
238
238
|
);
|
|
239
|
-
const
|
|
239
|
+
const uo = {
|
|
240
240
|
/**
|
|
241
241
|
* Installs the plugin, registering the `<ckeditor>` component.
|
|
242
242
|
*
|
|
243
243
|
* @param app The application instance.
|
|
244
244
|
*/
|
|
245
245
|
install(e) {
|
|
246
|
-
e.component("Ckeditor",
|
|
246
|
+
e.component("Ckeditor", so);
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
function
|
|
249
|
+
function co(e) {
|
|
250
250
|
return e.one !== void 0;
|
|
251
251
|
}
|
|
252
|
-
const
|
|
252
|
+
const mo = {
|
|
253
253
|
lessThanXSeconds: {
|
|
254
254
|
present: {
|
|
255
255
|
one: "manj kot {{count}} sekunda",
|
|
@@ -526,7 +526,7 @@ const Jn = {
|
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
|
-
function
|
|
529
|
+
function fo(e) {
|
|
530
530
|
switch (e % 100) {
|
|
531
531
|
case 1:
|
|
532
532
|
return "one";
|
|
@@ -539,53 +539,53 @@ function eo(e) {
|
|
|
539
539
|
return "other";
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
const
|
|
543
|
-
let
|
|
544
|
-
n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (
|
|
545
|
-
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];
|
|
546
546
|
if (typeof r == "string")
|
|
547
|
-
|
|
547
|
+
l += r;
|
|
548
548
|
else {
|
|
549
|
-
const s =
|
|
550
|
-
|
|
549
|
+
const s = fo(t);
|
|
550
|
+
co(r) ? l += r[s].replace("{{count}}", String(t)) : l += r[a][s].replace("{{count}}", String(t));
|
|
551
551
|
}
|
|
552
|
-
return
|
|
552
|
+
return l;
|
|
553
553
|
};
|
|
554
|
-
function
|
|
554
|
+
function $e(e) {
|
|
555
555
|
return (t = {}) => {
|
|
556
556
|
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
557
557
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
558
558
|
};
|
|
559
559
|
}
|
|
560
|
-
const
|
|
560
|
+
const vo = {
|
|
561
561
|
full: "EEEE, dd. MMMM y",
|
|
562
562
|
long: "dd. MMMM y",
|
|
563
563
|
medium: "d. MMM y",
|
|
564
564
|
short: "d. MM. yy"
|
|
565
|
-
},
|
|
565
|
+
}, ho = {
|
|
566
566
|
full: "HH:mm:ss zzzz",
|
|
567
567
|
long: "HH:mm:ss z",
|
|
568
568
|
medium: "HH:mm:ss",
|
|
569
569
|
short: "HH:mm"
|
|
570
|
-
},
|
|
570
|
+
}, bo = {
|
|
571
571
|
full: "{{date}} {{time}}",
|
|
572
572
|
long: "{{date}} {{time}}",
|
|
573
573
|
medium: "{{date}} {{time}}",
|
|
574
574
|
short: "{{date}} {{time}}"
|
|
575
|
-
},
|
|
576
|
-
date:
|
|
577
|
-
formats:
|
|
575
|
+
}, go = {
|
|
576
|
+
date: $e({
|
|
577
|
+
formats: vo,
|
|
578
578
|
defaultWidth: "full"
|
|
579
579
|
}),
|
|
580
|
-
time:
|
|
581
|
-
formats:
|
|
580
|
+
time: $e({
|
|
581
|
+
formats: ho,
|
|
582
582
|
defaultWidth: "full"
|
|
583
583
|
}),
|
|
584
|
-
dateTime:
|
|
585
|
-
formats:
|
|
584
|
+
dateTime: $e({
|
|
585
|
+
formats: bo,
|
|
586
586
|
defaultWidth: "full"
|
|
587
587
|
})
|
|
588
|
-
},
|
|
588
|
+
}, wo = {
|
|
589
589
|
lastWeek: (e) => {
|
|
590
590
|
switch (e.getDay()) {
|
|
591
591
|
case 0:
|
|
@@ -614,34 +614,34 @@ const no = {
|
|
|
614
614
|
}
|
|
615
615
|
},
|
|
616
616
|
other: "P"
|
|
617
|
-
},
|
|
618
|
-
const
|
|
619
|
-
return typeof
|
|
617
|
+
}, yo = (e, t, n, l) => {
|
|
618
|
+
const a = wo[e];
|
|
619
|
+
return typeof a == "function" ? a(t) : a;
|
|
620
620
|
};
|
|
621
|
-
function
|
|
621
|
+
function ye(e) {
|
|
622
622
|
return (t, n) => {
|
|
623
|
-
const
|
|
624
|
-
let
|
|
625
|
-
if (
|
|
626
|
-
const s = e.defaultFormattingWidth || e.defaultWidth,
|
|
627
|
-
|
|
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];
|
|
628
628
|
} else {
|
|
629
|
-
const s = e.defaultWidth,
|
|
630
|
-
|
|
629
|
+
const s = e.defaultWidth, p = n != null && n.width ? String(n.width) : e.defaultWidth;
|
|
630
|
+
a = e.values[p] || e.values[s];
|
|
631
631
|
}
|
|
632
632
|
const r = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
633
|
-
return
|
|
633
|
+
return a[r];
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
const
|
|
636
|
+
const ko = {
|
|
637
637
|
narrow: ["pr. n. št.", "po n. št."],
|
|
638
638
|
abbreviated: ["pr. n. št.", "po n. št."],
|
|
639
639
|
wide: ["pred našim štetjem", "po našem štetju"]
|
|
640
|
-
},
|
|
640
|
+
}, Vo = {
|
|
641
641
|
narrow: ["1", "2", "3", "4"],
|
|
642
642
|
abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."],
|
|
643
643
|
wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"]
|
|
644
|
-
},
|
|
644
|
+
}, Co = {
|
|
645
645
|
narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
|
646
646
|
abbreviated: [
|
|
647
647
|
"jan.",
|
|
@@ -671,7 +671,7 @@ const so = {
|
|
|
671
671
|
"november",
|
|
672
672
|
"december"
|
|
673
673
|
]
|
|
674
|
-
},
|
|
674
|
+
}, jo = {
|
|
675
675
|
narrow: ["n", "p", "t", "s", "č", "p", "s"],
|
|
676
676
|
short: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
|
677
677
|
abbreviated: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
|
@@ -684,7 +684,7 @@ const so = {
|
|
|
684
684
|
"petek",
|
|
685
685
|
"sobota"
|
|
686
686
|
]
|
|
687
|
-
},
|
|
687
|
+
}, To = {
|
|
688
688
|
narrow: {
|
|
689
689
|
am: "d",
|
|
690
690
|
pm: "p",
|
|
@@ -715,7 +715,7 @@ const so = {
|
|
|
715
715
|
evening: "večer",
|
|
716
716
|
night: "noč"
|
|
717
717
|
}
|
|
718
|
-
},
|
|
718
|
+
}, xo = {
|
|
719
719
|
narrow: {
|
|
720
720
|
am: "d",
|
|
721
721
|
pm: "p",
|
|
@@ -746,88 +746,88 @@ const so = {
|
|
|
746
746
|
evening: "zvečer",
|
|
747
747
|
night: "ponoči"
|
|
748
748
|
}
|
|
749
|
-
},
|
|
750
|
-
ordinalNumber:
|
|
751
|
-
era:
|
|
752
|
-
values:
|
|
749
|
+
}, _o = (e, t) => Number(e) + ".", Bo = {
|
|
750
|
+
ordinalNumber: _o,
|
|
751
|
+
era: ye({
|
|
752
|
+
values: ko,
|
|
753
753
|
defaultWidth: "wide"
|
|
754
754
|
}),
|
|
755
|
-
quarter:
|
|
756
|
-
values:
|
|
755
|
+
quarter: ye({
|
|
756
|
+
values: Vo,
|
|
757
757
|
defaultWidth: "wide",
|
|
758
758
|
argumentCallback: (e) => e - 1
|
|
759
759
|
}),
|
|
760
|
-
month:
|
|
761
|
-
values:
|
|
760
|
+
month: ye({
|
|
761
|
+
values: Co,
|
|
762
762
|
defaultWidth: "wide"
|
|
763
763
|
}),
|
|
764
|
-
day:
|
|
765
|
-
values:
|
|
764
|
+
day: ye({
|
|
765
|
+
values: jo,
|
|
766
766
|
defaultWidth: "wide"
|
|
767
767
|
}),
|
|
768
|
-
dayPeriod:
|
|
769
|
-
values:
|
|
768
|
+
dayPeriod: ye({
|
|
769
|
+
values: To,
|
|
770
770
|
defaultWidth: "wide",
|
|
771
|
-
formattingValues:
|
|
771
|
+
formattingValues: xo,
|
|
772
772
|
defaultFormattingWidth: "wide"
|
|
773
773
|
})
|
|
774
774
|
};
|
|
775
|
-
function
|
|
775
|
+
function ke(e) {
|
|
776
776
|
return (t, n = {}) => {
|
|
777
|
-
const
|
|
777
|
+
const l = n.width, a = l && e.matchPatterns[l] || e.matchPatterns[e.defaultMatchWidth], r = t.match(a);
|
|
778
778
|
if (!r)
|
|
779
779
|
return null;
|
|
780
|
-
const 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)) : (
|
|
781
781
|
// [TODO] -- I challenge you to fix the type
|
|
782
|
-
|
|
782
|
+
Io(p, (f) => f.test(s))
|
|
783
783
|
);
|
|
784
|
-
let
|
|
785
|
-
|
|
784
|
+
let u;
|
|
785
|
+
u = e.valueCallback ? e.valueCallback(i) : i, u = n.valueCallback ? (
|
|
786
786
|
// [TODO] -- I challenge you to fix the type
|
|
787
|
-
n.valueCallback(
|
|
788
|
-
) :
|
|
789
|
-
const
|
|
790
|
-
return { value:
|
|
787
|
+
n.valueCallback(u)
|
|
788
|
+
) : u;
|
|
789
|
+
const h = t.slice(s.length);
|
|
790
|
+
return { value: u, rest: h };
|
|
791
791
|
};
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function Io(e, t) {
|
|
794
794
|
for (const n in e)
|
|
795
795
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
796
796
|
return n;
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Do(e, t) {
|
|
799
799
|
for (let n = 0; n < e.length; n++)
|
|
800
800
|
if (t(e[n]))
|
|
801
801
|
return n;
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function So(e) {
|
|
804
804
|
return (t, n = {}) => {
|
|
805
|
-
const
|
|
806
|
-
if (!
|
|
807
|
-
const
|
|
805
|
+
const l = t.match(e.matchPattern);
|
|
806
|
+
if (!l) return null;
|
|
807
|
+
const a = l[0], r = t.match(e.parsePattern);
|
|
808
808
|
if (!r) return null;
|
|
809
809
|
let s = e.valueCallback ? e.valueCallback(r[0]) : r[0];
|
|
810
810
|
s = n.valueCallback ? n.valueCallback(s) : s;
|
|
811
|
-
const
|
|
812
|
-
return { value: s, rest:
|
|
811
|
+
const p = t.slice(a.length);
|
|
812
|
+
return { value: s, rest: p };
|
|
813
813
|
};
|
|
814
814
|
}
|
|
815
|
-
const
|
|
815
|
+
const Po = /^(\d+)\./i, Eo = /\d+/i, Ao = {
|
|
816
816
|
abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
|
|
817
817
|
wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
|
|
818
|
-
},
|
|
818
|
+
}, $o = {
|
|
819
819
|
any: [/^pr/i, /^(po|na[sš]em)/i]
|
|
820
|
-
},
|
|
820
|
+
}, Fo = {
|
|
821
821
|
narrow: /^[1234]/i,
|
|
822
822
|
abbreviated: /^[1234]\.\s?[čc]et\.?/i,
|
|
823
823
|
wide: /^[1234]\. [čc]etrtletje/i
|
|
824
|
-
},
|
|
824
|
+
}, Mo = {
|
|
825
825
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
826
|
-
},
|
|
826
|
+
}, No = {
|
|
827
827
|
narrow: /^[jfmasond]/i,
|
|
828
828
|
abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,
|
|
829
829
|
wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i
|
|
830
|
-
},
|
|
830
|
+
}, Lo = {
|
|
831
831
|
narrow: [
|
|
832
832
|
/^j/i,
|
|
833
833
|
/^f/i,
|
|
@@ -870,18 +870,18 @@ const yo = /^(\d+)\./i, ko = /\d+/i, Vo = {
|
|
|
870
870
|
/^n/i,
|
|
871
871
|
/^d/i
|
|
872
872
|
]
|
|
873
|
-
},
|
|
873
|
+
}, Uo = {
|
|
874
874
|
narrow: /^[nptsčc]/i,
|
|
875
875
|
short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
876
876
|
abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
877
877
|
wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i
|
|
878
|
-
},
|
|
878
|
+
}, Ro = {
|
|
879
879
|
narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i],
|
|
880
880
|
any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i]
|
|
881
|
-
},
|
|
881
|
+
}, Ho = {
|
|
882
882
|
narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
|
|
883
883
|
any: /^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i
|
|
884
|
-
},
|
|
884
|
+
}, Wo = {
|
|
885
885
|
narrow: {
|
|
886
886
|
am: /^d/i,
|
|
887
887
|
pm: /^p/i,
|
|
@@ -902,60 +902,60 @@ const yo = /^(\d+)\./i, ko = /\d+/i, Vo = {
|
|
|
902
902
|
evening: /^z?ve/i,
|
|
903
903
|
night: /(po)?no/i
|
|
904
904
|
}
|
|
905
|
-
},
|
|
906
|
-
ordinalNumber:
|
|
907
|
-
matchPattern:
|
|
908
|
-
parsePattern:
|
|
905
|
+
}, Oo = {
|
|
906
|
+
ordinalNumber: So({
|
|
907
|
+
matchPattern: Po,
|
|
908
|
+
parsePattern: Eo,
|
|
909
909
|
valueCallback: (e) => parseInt(e, 10)
|
|
910
910
|
}),
|
|
911
|
-
era:
|
|
912
|
-
matchPatterns:
|
|
911
|
+
era: ke({
|
|
912
|
+
matchPatterns: Ao,
|
|
913
913
|
defaultMatchWidth: "wide",
|
|
914
|
-
parsePatterns:
|
|
914
|
+
parsePatterns: $o,
|
|
915
915
|
defaultParseWidth: "any"
|
|
916
916
|
}),
|
|
917
|
-
quarter:
|
|
918
|
-
matchPatterns:
|
|
917
|
+
quarter: ke({
|
|
918
|
+
matchPatterns: Fo,
|
|
919
919
|
defaultMatchWidth: "wide",
|
|
920
|
-
parsePatterns:
|
|
920
|
+
parsePatterns: Mo,
|
|
921
921
|
defaultParseWidth: "any",
|
|
922
922
|
valueCallback: (e) => e + 1
|
|
923
923
|
}),
|
|
924
|
-
month:
|
|
925
|
-
matchPatterns:
|
|
924
|
+
month: ke({
|
|
925
|
+
matchPatterns: No,
|
|
926
926
|
defaultMatchWidth: "wide",
|
|
927
|
-
parsePatterns:
|
|
927
|
+
parsePatterns: Lo,
|
|
928
928
|
defaultParseWidth: "wide"
|
|
929
929
|
}),
|
|
930
|
-
day:
|
|
931
|
-
matchPatterns:
|
|
930
|
+
day: ke({
|
|
931
|
+
matchPatterns: Uo,
|
|
932
932
|
defaultMatchWidth: "wide",
|
|
933
|
-
parsePatterns:
|
|
933
|
+
parsePatterns: Ro,
|
|
934
934
|
defaultParseWidth: "any"
|
|
935
935
|
}),
|
|
936
|
-
dayPeriod:
|
|
937
|
-
matchPatterns:
|
|
936
|
+
dayPeriod: ke({
|
|
937
|
+
matchPatterns: Ho,
|
|
938
938
|
defaultMatchWidth: "any",
|
|
939
|
-
parsePatterns:
|
|
939
|
+
parsePatterns: Wo,
|
|
940
940
|
defaultParseWidth: "any"
|
|
941
941
|
})
|
|
942
|
-
},
|
|
942
|
+
}, zo = {
|
|
943
943
|
code: "sl",
|
|
944
|
-
formatDistance:
|
|
945
|
-
formatLong:
|
|
946
|
-
formatRelative:
|
|
947
|
-
localize:
|
|
948
|
-
match:
|
|
944
|
+
formatDistance: po,
|
|
945
|
+
formatLong: go,
|
|
946
|
+
formatRelative: yo,
|
|
947
|
+
localize: Bo,
|
|
948
|
+
match: Oo,
|
|
949
949
|
options: {
|
|
950
950
|
weekStartsOn: 1,
|
|
951
951
|
firstWeekContainsDate: 1
|
|
952
952
|
}
|
|
953
|
-
},
|
|
954
|
-
dateTimeLocale:
|
|
953
|
+
}, Ko = {
|
|
954
|
+
dateTimeLocale: E(zo),
|
|
955
955
|
setDateTimeLocale(e) {
|
|
956
|
-
|
|
956
|
+
ce(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
|
|
957
957
|
}
|
|
958
|
-
},
|
|
958
|
+
}, ee = /* @__PURE__ */ R({
|
|
959
959
|
__name: "df-input-hint",
|
|
960
960
|
props: {
|
|
961
961
|
errors: { default: "" },
|
|
@@ -964,13 +964,13 @@ const yo = /^(\d+)\./i, ko = /\d+/i, Vo = {
|
|
|
964
964
|
messageClasses: { default: "" }
|
|
965
965
|
},
|
|
966
966
|
setup(e) {
|
|
967
|
-
const t = e, n =
|
|
968
|
-
return (r, s) => (V(),
|
|
969
|
-
message:
|
|
970
|
-
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
|
|
971
971
|
}, null, 8, ["message", "classes"]));
|
|
972
972
|
}
|
|
973
|
-
}),
|
|
973
|
+
}), me = /* @__PURE__ */ R({
|
|
974
974
|
__name: "df-label",
|
|
975
975
|
props: {
|
|
976
976
|
data: {},
|
|
@@ -978,119 +978,119 @@ const yo = /^(\d+)\./i, ko = /\d+/i, Vo = {
|
|
|
978
978
|
allowWrap: { type: Boolean }
|
|
979
979
|
},
|
|
980
980
|
setup(e) {
|
|
981
|
-
const t = e, n =
|
|
982
|
-
return (
|
|
983
|
-
const r =
|
|
984
|
-
return V(),
|
|
985
|
-
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 }])
|
|
986
986
|
}, [
|
|
987
|
-
e.label.icon ? (V(),
|
|
988
|
-
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), {
|
|
989
989
|
key: 0,
|
|
990
990
|
name: e.label.icon,
|
|
991
991
|
size: "1.25em"
|
|
992
|
-
}, null, 8, ["name"])) : e.label.iconComponent === "v-img" ? (V(),
|
|
992
|
+
}, null, 8, ["name"])) : e.label.iconComponent === "v-img" ? (V(), S(r, {
|
|
993
993
|
key: 1,
|
|
994
994
|
class: "icon",
|
|
995
995
|
src: e.label.icon
|
|
996
|
-
}, null, 8, ["src"])) : (V(),
|
|
996
|
+
}, null, 8, ["src"])) : (V(), S(Ce(e.label.iconComponent), {
|
|
997
997
|
key: 2,
|
|
998
998
|
src: e.label.icon
|
|
999
999
|
}, null, 8, ["src"]))
|
|
1000
|
-
], 64)) :
|
|
1001
|
-
n.value instanceof o(
|
|
1000
|
+
], 64)) : U("", !0),
|
|
1001
|
+
n.value instanceof o(Et) ? (V(), S(o(Ft), {
|
|
1002
1002
|
key: 1,
|
|
1003
1003
|
class: "markdown",
|
|
1004
1004
|
source: n.value.toString(),
|
|
1005
1005
|
options: n.value.options,
|
|
1006
1006
|
plugins: n.value.plugins
|
|
1007
|
-
}, null, 8, ["source", "options", "plugins"])) : (V(),
|
|
1008
|
-
|
|
1007
|
+
}, null, 8, ["source", "options", "plugins"])) : (V(), z(Fe, { key: 2 }, [
|
|
1008
|
+
jt(Ne(n.value), 1)
|
|
1009
1009
|
], 64))
|
|
1010
1010
|
], 2);
|
|
1011
1011
|
};
|
|
1012
1012
|
}
|
|
1013
|
-
}),
|
|
1014
|
-
class
|
|
1015
|
-
constructor(t, n,
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
this.text = t, this.icon = n, this.iconComponent =
|
|
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;
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
|
-
const
|
|
1023
|
-
function
|
|
1024
|
-
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({
|
|
1025
1025
|
get() {
|
|
1026
|
-
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;
|
|
1027
1027
|
},
|
|
1028
|
-
set(
|
|
1029
|
-
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);
|
|
1030
1030
|
}
|
|
1031
1031
|
});
|
|
1032
|
-
if (e.control && !(e.control instanceof
|
|
1032
|
+
if (e.control && !(e.control instanceof Ze.FieldBase))
|
|
1033
1033
|
throw new Error("control prop is not a vue-form control instance");
|
|
1034
|
-
const r =
|
|
1034
|
+
const r = g({
|
|
1035
1035
|
get() {
|
|
1036
1036
|
return e.control.touched;
|
|
1037
1037
|
},
|
|
1038
|
-
set(
|
|
1039
|
-
e.control.touched =
|
|
1038
|
+
set(b) {
|
|
1039
|
+
e.control.touched = b;
|
|
1040
1040
|
}
|
|
1041
|
-
}), s = e.control ? r :
|
|
1042
|
-
() => e.control ? e.control.errors : (e.errors || []).map((
|
|
1043
|
-
),
|
|
1044
|
-
() => e.control ? e.control.visibility : e.visibility ||
|
|
1045
|
-
), d =
|
|
1046
|
-
() =>
|
|
1047
|
-
),
|
|
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(
|
|
1048
1048
|
() => {
|
|
1049
|
-
var
|
|
1050
|
-
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";
|
|
1051
1051
|
}
|
|
1052
|
-
),
|
|
1052
|
+
), H = g(() => P.value === "inline" ? "default" : P.value), A = g(
|
|
1053
1053
|
() => {
|
|
1054
|
-
var
|
|
1055
|
-
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";
|
|
1056
1056
|
}
|
|
1057
1057
|
);
|
|
1058
1058
|
return {
|
|
1059
|
-
value:
|
|
1060
|
-
valid:
|
|
1061
|
-
enabled:
|
|
1059
|
+
value: a,
|
|
1060
|
+
valid: p,
|
|
1061
|
+
enabled: f,
|
|
1062
1062
|
errors: i,
|
|
1063
|
-
showErrors:
|
|
1064
|
-
visibility:
|
|
1063
|
+
showErrors: h,
|
|
1064
|
+
visibility: k,
|
|
1065
1065
|
label: d,
|
|
1066
1066
|
touched: s,
|
|
1067
1067
|
density: P.value,
|
|
1068
|
-
densityClass:
|
|
1069
|
-
vuetifyBindings:
|
|
1070
|
-
var
|
|
1071
|
-
return
|
|
1072
|
-
name: (
|
|
1073
|
-
class:
|
|
1074
|
-
density:
|
|
1075
|
-
variant:
|
|
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,
|
|
1076
1076
|
label: d.value.text,
|
|
1077
|
-
errorMessages:
|
|
1077
|
+
errorMessages: u.value,
|
|
1078
1078
|
// 'error-count': errors?.value.length || 0,
|
|
1079
|
-
readonly: !
|
|
1080
|
-
disabled: !
|
|
1081
|
-
placeholder:
|
|
1082
|
-
"persistent-placeholder": !
|
|
1083
|
-
hint:
|
|
1079
|
+
readonly: !f.value,
|
|
1080
|
+
disabled: !f.value,
|
|
1081
|
+
placeholder: T.value,
|
|
1082
|
+
"persistent-placeholder": !Ve(T.value),
|
|
1083
|
+
hint: C.value,
|
|
1084
1084
|
persistentHint: !0,
|
|
1085
1085
|
// we want persistent hint always
|
|
1086
1086
|
hideDetails: "auto",
|
|
1087
1087
|
// we want to hide the hint element when hint isn't there
|
|
1088
|
-
helpText:
|
|
1088
|
+
helpText: x.value
|
|
1089
1089
|
}, e.passthroughAttrs || {});
|
|
1090
1090
|
})
|
|
1091
1091
|
};
|
|
1092
1092
|
}
|
|
1093
|
-
const
|
|
1093
|
+
const qo = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Re = /* @__PURE__ */ R({
|
|
1094
1094
|
__name: "input-base",
|
|
1095
1095
|
props: {
|
|
1096
1096
|
control: {},
|
|
@@ -1111,68 +1111,68 @@ const No = { class: "d-flex w-100 df-style-resetting df-sub-field" }, $e = /* @_
|
|
|
1111
1111
|
},
|
|
1112
1112
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
1113
1113
|
setup(e, { emit: t }) {
|
|
1114
|
-
const n = e,
|
|
1115
|
-
function
|
|
1116
|
-
|
|
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"));
|
|
1117
1117
|
}
|
|
1118
|
-
return (d,
|
|
1119
|
-
const
|
|
1120
|
-
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, {
|
|
1121
1121
|
key: 0,
|
|
1122
|
-
name: o(
|
|
1123
|
-
density: o(
|
|
1124
|
-
hint: o(
|
|
1125
|
-
"persistent-hint": o(
|
|
1126
|
-
"hide-details": o(
|
|
1127
|
-
"error-messages": o(
|
|
1128
|
-
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([
|
|
1129
1129
|
e.cssClass,
|
|
1130
1130
|
{
|
|
1131
|
-
"d-none": o(i) === o(
|
|
1132
|
-
invisible: o(i) === o(
|
|
1131
|
+
"d-none": o(i) === o(Y).HIDDEN,
|
|
1132
|
+
invisible: o(i) === o(Y).INVISIBLE
|
|
1133
1133
|
}
|
|
1134
1134
|
])
|
|
1135
|
-
},
|
|
1136
|
-
message: w(({ message:
|
|
1137
|
-
|
|
1138
|
-
message:
|
|
1135
|
+
}, Me({
|
|
1136
|
+
message: w(({ message: m }) => [
|
|
1137
|
+
D(ee, {
|
|
1138
|
+
message: m,
|
|
1139
1139
|
errors: o(r)
|
|
1140
1140
|
}, null, 8, ["message", "errors"])
|
|
1141
1141
|
]),
|
|
1142
1142
|
default: w(() => [
|
|
1143
|
-
|
|
1144
|
-
variant: o(
|
|
1145
|
-
density: o(
|
|
1146
|
-
label: o(
|
|
1147
|
-
disabled: o(
|
|
1148
|
-
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,
|
|
1149
1149
|
"persistent-clear": !0,
|
|
1150
|
-
dirty: !!o(
|
|
1151
|
-
active:
|
|
1150
|
+
dirty: !!o(p) || !!o(u).placeholder,
|
|
1151
|
+
active: f.value,
|
|
1152
1152
|
loading: e.loading,
|
|
1153
|
-
"onClick:clear":
|
|
1154
|
-
"onUpdate:focused":
|
|
1155
|
-
},
|
|
1156
|
-
label: w((
|
|
1157
|
-
|
|
1158
|
-
data:
|
|
1159
|
-
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)
|
|
1160
1160
|
}, null, 8, ["data", "label"])
|
|
1161
1161
|
]),
|
|
1162
|
-
default: w((
|
|
1163
|
-
|
|
1164
|
-
|
|
1162
|
+
default: w((m) => [
|
|
1163
|
+
de("div", qo, [
|
|
1164
|
+
fe(d.$slots, "default", re(ie(m)))
|
|
1165
1165
|
])
|
|
1166
1166
|
]),
|
|
1167
|
-
loader: w((
|
|
1168
|
-
|
|
1167
|
+
loader: w((m) => [
|
|
1168
|
+
fe(d.$slots, "loader", re(ie(m)))
|
|
1169
1169
|
]),
|
|
1170
1170
|
_: 2
|
|
1171
1171
|
}, [
|
|
1172
1172
|
d.$slots["prepend-inner"] ? {
|
|
1173
1173
|
name: "prepend-inner",
|
|
1174
|
-
fn: w((
|
|
1175
|
-
|
|
1174
|
+
fn: w((m) => [
|
|
1175
|
+
fe(d.$slots, "prepend-inner", re(ie(m)))
|
|
1176
1176
|
]),
|
|
1177
1177
|
key: "0"
|
|
1178
1178
|
} : void 0
|
|
@@ -1182,15 +1182,15 @@ const No = { class: "d-flex w-100 df-style-resetting df-sub-field" }, $e = /* @_
|
|
|
1182
1182
|
}, [
|
|
1183
1183
|
d.$slots.prepend ? {
|
|
1184
1184
|
name: "prepend",
|
|
1185
|
-
fn: w((
|
|
1186
|
-
|
|
1185
|
+
fn: w((m) => [
|
|
1186
|
+
fe(d.$slots, "prepend", re(ie(m)))
|
|
1187
1187
|
]),
|
|
1188
1188
|
key: "0"
|
|
1189
1189
|
} : void 0
|
|
1190
|
-
]), 1032, ["name", "density", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) :
|
|
1190
|
+
]), 1032, ["name", "density", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : U("", !0);
|
|
1191
1191
|
};
|
|
1192
1192
|
}
|
|
1193
|
-
}),
|
|
1193
|
+
}), F = {
|
|
1194
1194
|
Yes: "Yes",
|
|
1195
1195
|
No: "No",
|
|
1196
1196
|
Close: "Close",
|
|
@@ -1212,86 +1212,86 @@ const No = { class: "d-flex w-100 df-style-resetting df-sub-field" }, $e = /* @_
|
|
|
1212
1212
|
CodeDark: "Code (dark)",
|
|
1213
1213
|
CodeBright: "Code (bright)"
|
|
1214
1214
|
};
|
|
1215
|
-
function
|
|
1216
|
-
Object.keys(
|
|
1215
|
+
function Zl(e) {
|
|
1216
|
+
Object.keys(F).forEach((t) => {
|
|
1217
1217
|
const n = e(t);
|
|
1218
|
-
n != null && (
|
|
1218
|
+
n != null && (F[t] = n);
|
|
1219
1219
|
});
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1222
|
-
|
|
1221
|
+
function Jl(e, t) {
|
|
1222
|
+
Be.language = e, Be.translations = t;
|
|
1223
1223
|
}
|
|
1224
|
-
const
|
|
1224
|
+
const Be = {
|
|
1225
1225
|
language: "en",
|
|
1226
1226
|
translations: void 0
|
|
1227
1227
|
};
|
|
1228
|
-
var
|
|
1229
|
-
const
|
|
1228
|
+
var G = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(G || {});
|
|
1229
|
+
const Je = 0;
|
|
1230
1230
|
((e) => {
|
|
1231
|
-
function t(
|
|
1232
|
-
return
|
|
1231
|
+
function t(a) {
|
|
1232
|
+
return a.toUpperCase() === "BUTTON" ? 0 : a.toUpperCase() === "TEXT" ? 1 : Je;
|
|
1233
1233
|
}
|
|
1234
1234
|
e.fromString = t;
|
|
1235
|
-
function n(
|
|
1236
|
-
const r = typeof
|
|
1237
|
-
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;
|
|
1238
1238
|
}
|
|
1239
1239
|
e.fromAny = n;
|
|
1240
|
-
function a
|
|
1241
|
-
const r = typeof
|
|
1240
|
+
function l(a) {
|
|
1241
|
+
const r = typeof a == "number" ? a : e.fromString(a);
|
|
1242
1242
|
return Object.values(e).includes(r);
|
|
1243
1243
|
}
|
|
1244
|
-
e.isDefined =
|
|
1245
|
-
})(
|
|
1246
|
-
Object.freeze(
|
|
1247
|
-
const
|
|
1248
|
-
class
|
|
1244
|
+
e.isDefined = l;
|
|
1245
|
+
})(G || (G = {}));
|
|
1246
|
+
Object.freeze(G);
|
|
1247
|
+
const et = ["xs", "sm", "md", "lg", "xl"];
|
|
1248
|
+
class Go {
|
|
1249
1249
|
constructor(t) {
|
|
1250
|
-
|
|
1251
|
-
this._value = this.cleanBreakpoint(t, !0), t &&
|
|
1252
|
-
const
|
|
1253
|
-
|
|
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);
|
|
1254
1254
|
});
|
|
1255
1255
|
}
|
|
1256
1256
|
getOptionsForBreakpoint(t) {
|
|
1257
|
-
const n = this.cleanBreakpoint(this._value),
|
|
1258
|
-
for (const
|
|
1259
|
-
const r = this._value[
|
|
1260
|
-
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)
|
|
1261
1261
|
(r == null ? void 0 : r[s]) != null && (n[s] = r[s]);
|
|
1262
|
-
if (
|
|
1262
|
+
if (a === t) break;
|
|
1263
1263
|
}
|
|
1264
1264
|
return n;
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1267
|
+
function Yo(e) {
|
|
1268
1268
|
return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1271
|
-
const e =
|
|
1272
|
-
return
|
|
1270
|
+
function Qo() {
|
|
1271
|
+
const e = Mt();
|
|
1272
|
+
return g(() => Yo(e));
|
|
1273
1273
|
}
|
|
1274
|
-
class
|
|
1274
|
+
class Zo extends Go {
|
|
1275
1275
|
cleanBreakpoint(t, n = !1) {
|
|
1276
|
-
if ((!t || !
|
|
1277
|
-
const
|
|
1278
|
-
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;
|
|
1279
1279
|
}
|
|
1280
1280
|
}
|
|
1281
|
-
class
|
|
1281
|
+
class _e extends $t {
|
|
1282
1282
|
static create(t) {
|
|
1283
1283
|
return super.create(t);
|
|
1284
1284
|
}
|
|
1285
1285
|
getBreakpointValue(t) {
|
|
1286
|
-
return
|
|
1287
|
-
const
|
|
1286
|
+
return g(() => {
|
|
1287
|
+
const l = new Zo(this.value).getOptionsForBreakpoint(t.value);
|
|
1288
1288
|
return {
|
|
1289
|
-
name:
|
|
1290
|
-
label:
|
|
1291
|
-
icon:
|
|
1292
|
-
renderAs:
|
|
1293
|
-
showLabel:
|
|
1294
|
-
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
|
|
1295
1295
|
};
|
|
1296
1296
|
});
|
|
1297
1297
|
}
|
|
@@ -1302,67 +1302,67 @@ class ke extends Ct {
|
|
|
1302
1302
|
return this.value.showLabel ? this.value.label : void 0;
|
|
1303
1303
|
}
|
|
1304
1304
|
get showLabel() {
|
|
1305
|
-
return
|
|
1305
|
+
return se(this.value.label) && !Ve(this.value.label) ? this.value.showLabel : !1;
|
|
1306
1306
|
}
|
|
1307
1307
|
get icon() {
|
|
1308
1308
|
return this.value.showIcon ? this.value.icon : void 0;
|
|
1309
1309
|
}
|
|
1310
1310
|
get showIcon() {
|
|
1311
|
-
return
|
|
1311
|
+
return se(this.value.icon) && !Ve(this.value.icon) ? this.value.showIcon : !1;
|
|
1312
1312
|
}
|
|
1313
1313
|
get renderAs() {
|
|
1314
1314
|
return this.value.renderAs;
|
|
1315
1315
|
}
|
|
1316
1316
|
static closeAction(t) {
|
|
1317
|
-
var
|
|
1318
|
-
const n = L(
|
|
1317
|
+
var l;
|
|
1318
|
+
const n = L(I({}, t != null ? t : {}), {
|
|
1319
1319
|
// any properties in data should overwrite properties in the constant
|
|
1320
1320
|
value: {
|
|
1321
1321
|
name: "close",
|
|
1322
|
-
label:
|
|
1322
|
+
label: F.Close,
|
|
1323
1323
|
icon: "ion-close-outline",
|
|
1324
|
-
renderAs:
|
|
1324
|
+
renderAs: G.BUTTON,
|
|
1325
1325
|
showLabel: !0,
|
|
1326
1326
|
showIcon: !0
|
|
1327
1327
|
}
|
|
1328
1328
|
});
|
|
1329
|
-
return n.value =
|
|
1329
|
+
return n.value = I(I({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), _e.create(n);
|
|
1330
1330
|
}
|
|
1331
1331
|
static yesAction(t) {
|
|
1332
|
-
var
|
|
1333
|
-
const n = L(
|
|
1332
|
+
var l;
|
|
1333
|
+
const n = L(I({}, t != null ? t : {}), {
|
|
1334
1334
|
// any properties in data should overwrite properties in the constant
|
|
1335
1335
|
value: {
|
|
1336
1336
|
name: "yes",
|
|
1337
|
-
label:
|
|
1337
|
+
label: F.Yes,
|
|
1338
1338
|
icon: "ion-thumbs-up-outline",
|
|
1339
|
-
renderAs:
|
|
1339
|
+
renderAs: G.BUTTON,
|
|
1340
1340
|
showLabel: !0,
|
|
1341
1341
|
showIcon: !0
|
|
1342
1342
|
}
|
|
1343
1343
|
});
|
|
1344
|
-
return n.value =
|
|
1344
|
+
return n.value = I(I({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), _e.create(n);
|
|
1345
1345
|
}
|
|
1346
1346
|
static noAction(t) {
|
|
1347
|
-
var
|
|
1348
|
-
const n = L(
|
|
1347
|
+
var l;
|
|
1348
|
+
const n = L(I({}, t != null ? t : {}), {
|
|
1349
1349
|
// any properties in data should overwrite properties in the constant
|
|
1350
1350
|
value: {
|
|
1351
1351
|
name: "no",
|
|
1352
|
-
label:
|
|
1352
|
+
label: F.No,
|
|
1353
1353
|
icon: "ion-thumbs-down-outline",
|
|
1354
|
-
renderAs:
|
|
1354
|
+
renderAs: G.BUTTON,
|
|
1355
1355
|
showLabel: !0,
|
|
1356
1356
|
showIcon: !0
|
|
1357
1357
|
}
|
|
1358
1358
|
});
|
|
1359
|
-
return n.value =
|
|
1359
|
+
return n.value = I(I({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), _e.create(n);
|
|
1360
1360
|
}
|
|
1361
1361
|
}
|
|
1362
|
-
const
|
|
1362
|
+
const Jo = {
|
|
1363
1363
|
key: 1,
|
|
1364
1364
|
style: { width: "0.5rem" }
|
|
1365
|
-
},
|
|
1365
|
+
}, el = { key: 2 }, tl = /* @__PURE__ */ R({
|
|
1366
1366
|
__name: "df-actions",
|
|
1367
1367
|
props: {
|
|
1368
1368
|
actions: {},
|
|
@@ -1370,43 +1370,43 @@ const Ho = {
|
|
|
1370
1370
|
showAsGroup: { default: "no" }
|
|
1371
1371
|
},
|
|
1372
1372
|
setup(e) {
|
|
1373
|
-
const t = e, n =
|
|
1374
|
-
() =>
|
|
1373
|
+
const t = e, n = Qo(), l = g(() => o(t.actions)), a = g(
|
|
1374
|
+
() => l.value.map((r) => I({
|
|
1375
1375
|
action: r
|
|
1376
1376
|
}, o(r.getBreakpointValue(n))))
|
|
1377
1377
|
);
|
|
1378
1378
|
return (r, s) => {
|
|
1379
|
-
const
|
|
1380
|
-
return
|
|
1379
|
+
const p = M("v-btn");
|
|
1380
|
+
return l.value.length > 0 ? (V(), z("div", {
|
|
1381
1381
|
key: 0,
|
|
1382
|
-
class:
|
|
1382
|
+
class: te(["text-end df-actions", {
|
|
1383
1383
|
"button-group": e.showAsGroup === "grouped" || e.showAsGroup === "grouped-no-borders",
|
|
1384
1384
|
"with-border": e.showAsGroup === "grouped"
|
|
1385
1385
|
}])
|
|
1386
1386
|
}, [
|
|
1387
|
-
(V(!0),
|
|
1388
|
-
key:
|
|
1389
|
-
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",
|
|
1390
1390
|
elevation: 0,
|
|
1391
1391
|
size: e.buttonSize,
|
|
1392
|
-
onClick:
|
|
1392
|
+
onClick: xt((h) => i.action.execute(h), ["stop"])
|
|
1393
1393
|
}, {
|
|
1394
1394
|
default: w(() => [
|
|
1395
|
-
i.icon ? (V(),
|
|
1395
|
+
i.icon ? (V(), S(o(je), {
|
|
1396
1396
|
key: 0,
|
|
1397
1397
|
name: i.icon
|
|
1398
|
-
}, null, 8, ["name"])) :
|
|
1399
|
-
i.icon && i.label ? (V(),
|
|
1400
|
-
i.label ? (V(),
|
|
1398
|
+
}, null, 8, ["name"])) : U("", !0),
|
|
1399
|
+
i.icon && i.label ? (V(), z("span", Jo)) : U("", !0),
|
|
1400
|
+
i.label ? (V(), z("span", el, Ne(i.label), 1)) : U("", !0)
|
|
1401
1401
|
]),
|
|
1402
1402
|
_: 2
|
|
1403
1403
|
}, 1032, ["variant", "size", "onClick"]))), 128))
|
|
1404
|
-
], 2)) :
|
|
1404
|
+
], 2)) : U("", !0);
|
|
1405
1405
|
};
|
|
1406
1406
|
}
|
|
1407
|
-
}),
|
|
1407
|
+
}), nl = /* @__PURE__ */ R({
|
|
1408
1408
|
__name: "df-checkbox",
|
|
1409
|
-
props: /* @__PURE__ */
|
|
1409
|
+
props: /* @__PURE__ */ ne({
|
|
1410
1410
|
allowNull: { type: Boolean },
|
|
1411
1411
|
control: {},
|
|
1412
1412
|
modelValue: {},
|
|
@@ -1422,44 +1422,44 @@ const Ho = {
|
|
|
1422
1422
|
passthroughAttrs: {},
|
|
1423
1423
|
density: {},
|
|
1424
1424
|
variant: {}
|
|
1425
|
-
}, L(
|
|
1425
|
+
}, L(I({}, oe), { allowNull: !1 })),
|
|
1426
1426
|
emits: ["update:modelValue", "click:clear"],
|
|
1427
1427
|
setup(e, { emit: t }) {
|
|
1428
|
-
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({
|
|
1429
1429
|
get() {
|
|
1430
1430
|
return i.value;
|
|
1431
1431
|
},
|
|
1432
1432
|
set() {
|
|
1433
1433
|
}
|
|
1434
1434
|
});
|
|
1435
|
-
function
|
|
1436
|
-
const d =
|
|
1435
|
+
function k() {
|
|
1436
|
+
const d = Dt(i.value);
|
|
1437
1437
|
d === !0 ? i.value = n.allowNull ? null : !1 : i.value = d === !1;
|
|
1438
1438
|
}
|
|
1439
|
-
return (d,
|
|
1440
|
-
const
|
|
1441
|
-
return V(),
|
|
1442
|
-
modelValue:
|
|
1443
|
-
"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),
|
|
1444
1444
|
density: "compact",
|
|
1445
|
-
class: o(
|
|
1446
|
-
indeterminate:
|
|
1445
|
+
class: o(a),
|
|
1446
|
+
indeterminate: h.value,
|
|
1447
1447
|
"false-value": !1,
|
|
1448
1448
|
"true-value": !0
|
|
1449
|
-
}, o(
|
|
1450
|
-
onChange:
|
|
1451
|
-
onBlur:
|
|
1449
|
+
}, o(u), {
|
|
1450
|
+
onChange: k,
|
|
1451
|
+
onBlur: T[1] || (T[1] = (C) => p.value = !0)
|
|
1452
1452
|
}), {
|
|
1453
|
-
label: w((
|
|
1454
|
-
|
|
1453
|
+
label: w((C) => [
|
|
1454
|
+
D(o(me), {
|
|
1455
1455
|
"allow-wrap": !0,
|
|
1456
|
-
data:
|
|
1456
|
+
data: C,
|
|
1457
1457
|
label: o(r)
|
|
1458
1458
|
}, null, 8, ["data", "label"])
|
|
1459
1459
|
]),
|
|
1460
|
-
message: w(({ message:
|
|
1461
|
-
|
|
1462
|
-
message:
|
|
1460
|
+
message: w(({ message: C }) => [
|
|
1461
|
+
D(o(ee), {
|
|
1462
|
+
message: C,
|
|
1463
1463
|
errors: o(s)
|
|
1464
1464
|
}, null, 8, ["message", "errors"])
|
|
1465
1465
|
]),
|
|
@@ -1467,9 +1467,9 @@ const Ho = {
|
|
|
1467
1467
|
}, 16, ["modelValue", "class", "indeterminate"]);
|
|
1468
1468
|
};
|
|
1469
1469
|
}
|
|
1470
|
-
}),
|
|
1470
|
+
}), ol = /* @__PURE__ */ R({
|
|
1471
1471
|
__name: "df-color",
|
|
1472
|
-
props: /* @__PURE__ */
|
|
1472
|
+
props: /* @__PURE__ */ ne({
|
|
1473
1473
|
allowNull: { type: Boolean },
|
|
1474
1474
|
control: {},
|
|
1475
1475
|
modelValue: {},
|
|
@@ -1485,52 +1485,52 @@ const Ho = {
|
|
|
1485
1485
|
passthroughAttrs: {},
|
|
1486
1486
|
density: {},
|
|
1487
1487
|
variant: {}
|
|
1488
|
-
}, L(
|
|
1488
|
+
}, L(I({}, oe), { allowNull: !1 })),
|
|
1489
1489
|
emits: ["update:modelValue", "click:clear"],
|
|
1490
1490
|
setup(e, { emit: t }) {
|
|
1491
|
-
const n = e,
|
|
1492
|
-
(
|
|
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."
|
|
1493
1493
|
]);
|
|
1494
|
-
return (
|
|
1495
|
-
const
|
|
1496
|
-
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({
|
|
1497
1497
|
modelValue: o(i),
|
|
1498
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
1499
|
-
class: o(
|
|
1498
|
+
"onUpdate:modelValue": d[2] || (d[2] = (m) => ce(i) ? i.value = m : null),
|
|
1499
|
+
class: o(a),
|
|
1500
1500
|
clearable: e.allowNull,
|
|
1501
1501
|
type: "text",
|
|
1502
|
-
rules:
|
|
1503
|
-
}, o(
|
|
1504
|
-
onBlur: d[3] || (d[3] = (
|
|
1502
|
+
rules: f.value
|
|
1503
|
+
}, o(u), {
|
|
1504
|
+
onBlur: d[3] || (d[3] = (m) => p.value = !0)
|
|
1505
1505
|
}), {
|
|
1506
|
-
label: w((
|
|
1507
|
-
|
|
1508
|
-
data:
|
|
1506
|
+
label: w((m) => [
|
|
1507
|
+
D(o(me), {
|
|
1508
|
+
data: m,
|
|
1509
1509
|
label: o(r)
|
|
1510
1510
|
}, null, 8, ["data", "label"])
|
|
1511
1511
|
]),
|
|
1512
|
-
message: w(({ message:
|
|
1513
|
-
|
|
1514
|
-
message:
|
|
1512
|
+
message: w(({ message: m }) => [
|
|
1513
|
+
D(o(ee), {
|
|
1514
|
+
message: m,
|
|
1515
1515
|
errors: o(s)
|
|
1516
1516
|
}, null, 8, ["message", "errors"])
|
|
1517
1517
|
]),
|
|
1518
1518
|
"prepend-inner": w(() => [
|
|
1519
|
-
|
|
1520
|
-
style:
|
|
1519
|
+
de("div", {
|
|
1520
|
+
style: ot([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: o(i) }])
|
|
1521
1521
|
}, null, 4)
|
|
1522
1522
|
]),
|
|
1523
1523
|
default: w(() => [
|
|
1524
|
-
|
|
1525
|
-
modelValue:
|
|
1526
|
-
"onUpdate:modelValue": d[1] || (d[1] = (
|
|
1524
|
+
D(x, {
|
|
1525
|
+
modelValue: h.value,
|
|
1526
|
+
"onUpdate:modelValue": d[1] || (d[1] = (m) => h.value = m),
|
|
1527
1527
|
"close-on-content-click": !1,
|
|
1528
1528
|
activator: "parent"
|
|
1529
1529
|
}, {
|
|
1530
1530
|
default: w(() => [
|
|
1531
|
-
|
|
1531
|
+
D(T, {
|
|
1532
1532
|
modelValue: o(i),
|
|
1533
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
1533
|
+
"onUpdate:modelValue": d[0] || (d[0] = (m) => ce(i) ? i.value = m : null),
|
|
1534
1534
|
mode: "hexa"
|
|
1535
1535
|
}, null, 8, ["modelValue"])
|
|
1536
1536
|
]),
|
|
@@ -1541,9 +1541,9 @@ const Ho = {
|
|
|
1541
1541
|
}, 16, ["modelValue", "class", "clearable", "rules"]);
|
|
1542
1542
|
};
|
|
1543
1543
|
}
|
|
1544
|
-
}),
|
|
1544
|
+
}), ll = /* @__PURE__ */ R({
|
|
1545
1545
|
__name: "df-datetime",
|
|
1546
|
-
props: /* @__PURE__ */
|
|
1546
|
+
props: /* @__PURE__ */ ne({
|
|
1547
1547
|
inputType: {},
|
|
1548
1548
|
displayFormatDate: {},
|
|
1549
1549
|
displayFormatTime: {},
|
|
@@ -1562,157 +1562,157 @@ const Ho = {
|
|
|
1562
1562
|
passthroughAttrs: {},
|
|
1563
1563
|
density: {},
|
|
1564
1564
|
variant: {}
|
|
1565
|
-
}, L(
|
|
1565
|
+
}, L(I({}, oe), {
|
|
1566
1566
|
inputType: "datetime",
|
|
1567
1567
|
displayFormatDate: "P",
|
|
1568
1568
|
displayFormatTime: "p"
|
|
1569
1569
|
})),
|
|
1570
1570
|
emits: ["update:modelValue", "click:clear"],
|
|
1571
1571
|
setup(e, { emit: t }) {
|
|
1572
|
-
const n = e,
|
|
1573
|
-
var
|
|
1574
|
-
return (
|
|
1575
|
-
}), r =
|
|
1576
|
-
var
|
|
1577
|
-
return (
|
|
1578
|
-
}), { 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({
|
|
1579
1579
|
get() {
|
|
1580
1580
|
return o(d) === "date";
|
|
1581
1581
|
},
|
|
1582
|
-
set(
|
|
1583
|
-
d.value =
|
|
1582
|
+
set(v) {
|
|
1583
|
+
d.value = v ? "date" : "";
|
|
1584
1584
|
}
|
|
1585
|
-
}),
|
|
1585
|
+
}), x = g({
|
|
1586
1586
|
get() {
|
|
1587
1587
|
return o(d) === "time";
|
|
1588
1588
|
},
|
|
1589
|
-
set(
|
|
1590
|
-
d.value =
|
|
1589
|
+
set(v) {
|
|
1590
|
+
d.value = v ? "time" : "";
|
|
1591
1591
|
}
|
|
1592
|
-
}),
|
|
1593
|
-
function P(
|
|
1594
|
-
if (
|
|
1595
|
-
|
|
1596
|
-
else if (
|
|
1597
|
-
if (o(
|
|
1598
|
-
|
|
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);
|
|
1599
1599
|
else {
|
|
1600
|
-
const $ =
|
|
1600
|
+
const $ = C(new Date(v));
|
|
1601
1601
|
P($, 0), P($, 1);
|
|
1602
1602
|
}
|
|
1603
1603
|
else {
|
|
1604
|
-
|
|
1605
|
-
const $ =
|
|
1606
|
-
$[
|
|
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");
|
|
1607
1607
|
}
|
|
1608
1608
|
}
|
|
1609
|
-
ue(i, (
|
|
1610
|
-
const
|
|
1609
|
+
ue(i, (v) => P(v, -1), { immediate: !0 });
|
|
1610
|
+
const H = g({
|
|
1611
1611
|
get() {
|
|
1612
|
-
const
|
|
1613
|
-
if (
|
|
1614
|
-
const
|
|
1615
|
-
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;
|
|
1616
1616
|
},
|
|
1617
|
-
set(
|
|
1618
|
-
P(
|
|
1617
|
+
set(v) {
|
|
1618
|
+
P(C(v), 0);
|
|
1619
1619
|
}
|
|
1620
|
-
}),
|
|
1620
|
+
}), A = g({
|
|
1621
1621
|
get() {
|
|
1622
|
-
const
|
|
1623
|
-
return
|
|
1622
|
+
const v = o(m);
|
|
1623
|
+
return v == null ? "" : v.split(/[TZ]/g)[1].split(".")[0];
|
|
1624
1624
|
},
|
|
1625
|
-
set(
|
|
1626
|
-
P(`T${
|
|
1625
|
+
set(v) {
|
|
1626
|
+
P(`T${v}`, 1);
|
|
1627
1627
|
}
|
|
1628
|
-
}),
|
|
1628
|
+
}), b = g({
|
|
1629
1629
|
get() {
|
|
1630
|
-
const
|
|
1631
|
-
return
|
|
1630
|
+
const v = o(H);
|
|
1631
|
+
return v == null ? "" : we(v, o(f), { locale: a.value });
|
|
1632
1632
|
},
|
|
1633
|
-
set(
|
|
1633
|
+
set(v) {
|
|
1634
1634
|
try {
|
|
1635
|
-
const
|
|
1636
|
-
P(
|
|
1637
|
-
} catch (
|
|
1638
|
-
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);
|
|
1639
1639
|
}
|
|
1640
1640
|
}
|
|
1641
|
-
}),
|
|
1641
|
+
}), N = g({
|
|
1642
1642
|
get() {
|
|
1643
|
-
const
|
|
1644
|
-
return
|
|
1643
|
+
const v = o(H);
|
|
1644
|
+
return v == null ? "" : we(v, o(k), { locale: a.value });
|
|
1645
1645
|
},
|
|
1646
|
-
set(
|
|
1647
|
-
const
|
|
1648
|
-
if (
|
|
1649
|
-
let $ =
|
|
1650
|
-
const K =
|
|
1651
|
-
|
|
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));
|
|
1652
1652
|
}
|
|
1653
1653
|
});
|
|
1654
|
-
return (
|
|
1655
|
-
const $ =
|
|
1656
|
-
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, {
|
|
1657
1657
|
class: o(s),
|
|
1658
1658
|
clearable: e.clearable,
|
|
1659
|
-
"onClick:clear":
|
|
1660
|
-
onBlur:
|
|
1659
|
+
"onClick:clear": c[14] || (c[14] = (J) => i.value = null),
|
|
1660
|
+
onBlur: c[15] || (c[15] = (J) => p.value = !0)
|
|
1661
1661
|
}), {
|
|
1662
|
-
default: w((
|
|
1663
|
-
|
|
1664
|
-
class:
|
|
1662
|
+
default: w((J) => [
|
|
1663
|
+
de("div", {
|
|
1664
|
+
class: te([
|
|
1665
1665
|
"d-flex",
|
|
1666
1666
|
"w-100",
|
|
1667
|
-
["plain", "underlined"].includes(o(
|
|
1667
|
+
["plain", "underlined"].includes(o(u).variant) ? void 0 : "ml-4",
|
|
1668
1668
|
"df-input-wrapper",
|
|
1669
1669
|
e.density
|
|
1670
1670
|
])
|
|
1671
1671
|
}, [
|
|
1672
|
-
["date", "datetime"].includes(o(
|
|
1672
|
+
["date", "datetime"].includes(o(h)) ? (V(), S(le, O({
|
|
1673
1673
|
key: 0,
|
|
1674
|
-
modelValue:
|
|
1675
|
-
"onUpdate:modelValue":
|
|
1674
|
+
modelValue: b.value,
|
|
1675
|
+
"onUpdate:modelValue": c[4] || (c[4] = (j) => b.value = j),
|
|
1676
1676
|
style: { "flex-grow": "4" },
|
|
1677
1677
|
density: "compact",
|
|
1678
1678
|
variant: "plain",
|
|
1679
1679
|
clearable: !1,
|
|
1680
1680
|
"hide-details": !0,
|
|
1681
|
-
readonly: o(
|
|
1682
|
-
disabled: o(
|
|
1683
|
-
name: `${o(
|
|
1684
|
-
placeholder: o(
|
|
1681
|
+
readonly: o(u).readonly,
|
|
1682
|
+
disabled: o(u).disabled,
|
|
1683
|
+
name: `${o(u).name}-date`,
|
|
1684
|
+
placeholder: o(u).placeholder
|
|
1685
1685
|
}, e.passthroughAttrs, {
|
|
1686
|
-
onClick:
|
|
1687
|
-
onKeydown:
|
|
1688
|
-
onFocus: (
|
|
1689
|
-
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()
|
|
1690
1690
|
}), {
|
|
1691
1691
|
default: w(() => [
|
|
1692
|
-
|
|
1693
|
-
modelValue:
|
|
1694
|
-
"onUpdate:modelValue":
|
|
1692
|
+
D(Z, {
|
|
1693
|
+
modelValue: T.value,
|
|
1694
|
+
"onUpdate:modelValue": c[3] || (c[3] = (j) => T.value = j),
|
|
1695
1695
|
"close-on-content-click": !1,
|
|
1696
1696
|
activator: "parent"
|
|
1697
1697
|
}, {
|
|
1698
1698
|
default: w(() => [
|
|
1699
|
-
|
|
1700
|
-
modelValue:
|
|
1701
|
-
"onUpdate:modelValue":
|
|
1702
|
-
onCancel:
|
|
1703
|
-
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 = "")
|
|
1704
1704
|
}, {
|
|
1705
|
-
default: w(({ model:
|
|
1706
|
-
|
|
1707
|
-
modelValue:
|
|
1708
|
-
"onUpdate:modelValue": (
|
|
1705
|
+
default: w(({ model: j, actions: ve }) => [
|
|
1706
|
+
D($, {
|
|
1707
|
+
modelValue: j.value,
|
|
1708
|
+
"onUpdate:modelValue": (he) => j.value = he,
|
|
1709
1709
|
"hide-header": !0,
|
|
1710
1710
|
"first-day-of-week": r.value,
|
|
1711
1711
|
"show-adjacent-months": !0,
|
|
1712
1712
|
"show-week": !0
|
|
1713
1713
|
}, {
|
|
1714
1714
|
actions: w(() => [
|
|
1715
|
-
(V(),
|
|
1715
|
+
(V(), S(Ce(ve)))
|
|
1716
1716
|
]),
|
|
1717
1717
|
_: 2
|
|
1718
1718
|
}, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
|
|
@@ -1724,49 +1724,49 @@ const Ho = {
|
|
|
1724
1724
|
}, 8, ["modelValue"])
|
|
1725
1725
|
]),
|
|
1726
1726
|
_: 1
|
|
1727
|
-
}, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) :
|
|
1728
|
-
["time", "datetime"].includes(o(
|
|
1727
|
+
}, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : U("", !0),
|
|
1728
|
+
["time", "datetime"].includes(o(h)) ? (V(), S(le, O({
|
|
1729
1729
|
key: 1,
|
|
1730
|
-
modelValue:
|
|
1731
|
-
"onUpdate:modelValue":
|
|
1730
|
+
modelValue: N.value,
|
|
1731
|
+
"onUpdate:modelValue": c[11] || (c[11] = (j) => N.value = j),
|
|
1732
1732
|
style: { "flex-grow": "3" },
|
|
1733
1733
|
density: "compact",
|
|
1734
1734
|
variant: "plain",
|
|
1735
1735
|
clearable: !1,
|
|
1736
1736
|
"hide-details": !0,
|
|
1737
|
-
readonly: o(
|
|
1738
|
-
disabled: o(
|
|
1739
|
-
name: `${o(
|
|
1740
|
-
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
|
|
1741
1741
|
}, e.passthroughAttrs, {
|
|
1742
|
-
onClick:
|
|
1743
|
-
onKeydown:
|
|
1744
|
-
onFocus: (
|
|
1745
|
-
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()
|
|
1746
1746
|
}), {
|
|
1747
1747
|
default: w(() => [
|
|
1748
|
-
|
|
1749
|
-
modelValue:
|
|
1750
|
-
"onUpdate:modelValue":
|
|
1748
|
+
D(Z, {
|
|
1749
|
+
modelValue: x.value,
|
|
1750
|
+
"onUpdate:modelValue": c[10] || (c[10] = (j) => x.value = j),
|
|
1751
1751
|
"close-on-content-click": !1,
|
|
1752
1752
|
activator: "parent"
|
|
1753
1753
|
}, {
|
|
1754
1754
|
default: w(() => [
|
|
1755
|
-
|
|
1756
|
-
modelValue:
|
|
1757
|
-
"onUpdate:modelValue":
|
|
1758
|
-
onCancel:
|
|
1759
|
-
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 = "")
|
|
1760
1760
|
}, {
|
|
1761
|
-
default: w(({ model:
|
|
1762
|
-
|
|
1763
|
-
modelValue:
|
|
1764
|
-
"onUpdate:modelValue": (
|
|
1761
|
+
default: w(({ model: j, actions: ve }) => [
|
|
1762
|
+
D(pe, {
|
|
1763
|
+
modelValue: j.value,
|
|
1764
|
+
"onUpdate:modelValue": (he) => j.value = he,
|
|
1765
1765
|
"hide-header": !0,
|
|
1766
1766
|
format: "24hr"
|
|
1767
1767
|
}, {
|
|
1768
1768
|
actions: w(() => [
|
|
1769
|
-
(V(),
|
|
1769
|
+
(V(), S(Ce(ve)))
|
|
1770
1770
|
]),
|
|
1771
1771
|
_: 2
|
|
1772
1772
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1778,16 +1778,16 @@ const Ho = {
|
|
|
1778
1778
|
}, 8, ["modelValue"])
|
|
1779
1779
|
]),
|
|
1780
1780
|
_: 1
|
|
1781
|
-
}, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) :
|
|
1781
|
+
}, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : U("", !0)
|
|
1782
1782
|
], 2)
|
|
1783
1783
|
]),
|
|
1784
1784
|
_: 1
|
|
1785
1785
|
}, 16, ["class", "clearable"]);
|
|
1786
1786
|
};
|
|
1787
1787
|
}
|
|
1788
|
-
}),
|
|
1788
|
+
}), al = /* @__PURE__ */ R({
|
|
1789
1789
|
__name: "df-file",
|
|
1790
|
-
props: /* @__PURE__ */
|
|
1790
|
+
props: /* @__PURE__ */ ne({
|
|
1791
1791
|
comms: {},
|
|
1792
1792
|
control: {},
|
|
1793
1793
|
modelValue: {},
|
|
@@ -1803,82 +1803,82 @@ const Ho = {
|
|
|
1803
1803
|
passthroughAttrs: {},
|
|
1804
1804
|
density: {},
|
|
1805
1805
|
variant: {}
|
|
1806
|
-
},
|
|
1806
|
+
}, oe),
|
|
1807
1807
|
emits: ["update:modelValue", "click:clear"],
|
|
1808
1808
|
setup(e, { emit: t }) {
|
|
1809
|
-
const n = e,
|
|
1810
|
-
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() {
|
|
1811
1811
|
i.value && window.clearInterval(i.value);
|
|
1812
1812
|
}
|
|
1813
|
-
function
|
|
1814
|
-
|
|
1813
|
+
function C() {
|
|
1814
|
+
x(), i.value = window.setInterval(() => {
|
|
1815
1815
|
s.value && n.comms.touch(s.value);
|
|
1816
1816
|
}, 60 * 1e3);
|
|
1817
1817
|
}
|
|
1818
|
-
|
|
1819
|
-
|
|
1818
|
+
nt(() => x()), ue(s, (A) => {
|
|
1819
|
+
A ? C() : x();
|
|
1820
1820
|
});
|
|
1821
|
-
function
|
|
1822
|
-
return
|
|
1823
|
-
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();
|
|
1824
1824
|
});
|
|
1825
1825
|
}
|
|
1826
|
-
function P(
|
|
1827
|
-
return
|
|
1828
|
-
|
|
1826
|
+
function P(A) {
|
|
1827
|
+
return Te(this, null, function* () {
|
|
1828
|
+
h.value = -1, u.value = A;
|
|
1829
1829
|
try {
|
|
1830
|
-
s.value = yield n.comms.upload(
|
|
1831
|
-
|
|
1832
|
-
}),
|
|
1833
|
-
} catch (
|
|
1834
|
-
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;
|
|
1835
1835
|
}
|
|
1836
1836
|
});
|
|
1837
1837
|
}
|
|
1838
|
-
function
|
|
1839
|
-
|
|
1838
|
+
function H(A) {
|
|
1839
|
+
A && (Array.isArray(A) ? console.error("Uploading multiple files not supported right now") : P(A));
|
|
1840
1840
|
}
|
|
1841
|
-
return (
|
|
1842
|
-
const
|
|
1843
|
-
return V(),
|
|
1844
|
-
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),
|
|
1845
1845
|
clearable: "",
|
|
1846
|
-
"onClick:clear":
|
|
1847
|
-
onBlur:
|
|
1846
|
+
"onClick:clear": m,
|
|
1847
|
+
onBlur: b[1] || (b[1] = (c) => r.value = !0)
|
|
1848
1848
|
}), {
|
|
1849
1849
|
"prepend-inner": w(() => [
|
|
1850
|
-
|
|
1850
|
+
D(o(je), { name: "mdi-paperclip" })
|
|
1851
1851
|
]),
|
|
1852
1852
|
loader: w(() => [
|
|
1853
|
-
|
|
1853
|
+
u.value && h.value < 100 ? (V(), S(N, {
|
|
1854
1854
|
key: 0,
|
|
1855
|
-
"model-value":
|
|
1856
|
-
indeterminate:
|
|
1857
|
-
}, null, 8, ["model-value", "indeterminate"])) :
|
|
1855
|
+
"model-value": h.value,
|
|
1856
|
+
indeterminate: h.value === -1
|
|
1857
|
+
}, null, 8, ["model-value", "indeterminate"])) : U("", !0)
|
|
1858
1858
|
]),
|
|
1859
|
-
default: w((
|
|
1860
|
-
|
|
1861
|
-
class:
|
|
1859
|
+
default: w((c) => [
|
|
1860
|
+
de("div", {
|
|
1861
|
+
class: te(["d-flex w-100 position-relative df-input-wrapper", e.density])
|
|
1862
1862
|
}, [
|
|
1863
|
-
|
|
1864
|
-
modelValue:
|
|
1865
|
-
"onUpdate:modelValue":
|
|
1866
|
-
label:
|
|
1863
|
+
D(v, O({
|
|
1864
|
+
modelValue: k.value,
|
|
1865
|
+
"onUpdate:modelValue": b[0] || (b[0] = ($) => k.value = $),
|
|
1866
|
+
label: T.value,
|
|
1867
1867
|
density: "compact",
|
|
1868
1868
|
variant: "plain",
|
|
1869
|
-
readonly: o(
|
|
1870
|
-
disabled: o(
|
|
1871
|
-
name: o(
|
|
1869
|
+
readonly: o(p).readonly,
|
|
1870
|
+
disabled: o(p).disabled,
|
|
1871
|
+
name: o(p).name,
|
|
1872
1872
|
"hide-details": !0,
|
|
1873
1873
|
"show-size": !0,
|
|
1874
1874
|
multiple: !1,
|
|
1875
|
-
style:
|
|
1875
|
+
style: u.value && h.value < 100 ? "visibility: hidden" : "",
|
|
1876
1876
|
clearable: !1
|
|
1877
1877
|
}, e.passthroughAttrs, {
|
|
1878
1878
|
"prepend-icon": "",
|
|
1879
|
-
"onUpdate:modelValue":
|
|
1880
|
-
onFocus: ($) =>
|
|
1881
|
-
onBlur: ($) =>
|
|
1879
|
+
"onUpdate:modelValue": H,
|
|
1880
|
+
onFocus: ($) => c.focus(),
|
|
1881
|
+
onBlur: ($) => c.blur()
|
|
1882
1882
|
}), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
|
|
1883
1883
|
], 2)
|
|
1884
1884
|
]),
|
|
@@ -1886,9 +1886,9 @@ const Ho = {
|
|
|
1886
1886
|
}, 16, ["class"]);
|
|
1887
1887
|
};
|
|
1888
1888
|
}
|
|
1889
|
-
}),
|
|
1889
|
+
}), rl = /* @__PURE__ */ R({
|
|
1890
1890
|
__name: "df-input",
|
|
1891
|
-
props: /* @__PURE__ */
|
|
1891
|
+
props: /* @__PURE__ */ ne({
|
|
1892
1892
|
inputType: {},
|
|
1893
1893
|
precision: {},
|
|
1894
1894
|
step: {},
|
|
@@ -1908,7 +1908,7 @@ const Ho = {
|
|
|
1908
1908
|
passthroughAttrs: {},
|
|
1909
1909
|
density: {},
|
|
1910
1910
|
variant: {}
|
|
1911
|
-
}, L(
|
|
1911
|
+
}, L(I({}, oe), {
|
|
1912
1912
|
inputType: "text",
|
|
1913
1913
|
precision: null,
|
|
1914
1914
|
step: void 0,
|
|
@@ -1917,51 +1917,51 @@ const Ho = {
|
|
|
1917
1917
|
})),
|
|
1918
1918
|
emits: ["update:modelValue", "click:clear"],
|
|
1919
1919
|
setup(e, { emit: t }) {
|
|
1920
|
-
const n = e,
|
|
1921
|
-
() =>
|
|
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) } : {}
|
|
1922
1922
|
);
|
|
1923
|
-
return (
|
|
1924
|
-
const
|
|
1925
|
-
return V(),
|
|
1926
|
-
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)])
|
|
1927
1927
|
}, [
|
|
1928
|
-
|
|
1928
|
+
x.value ? (V(), S(A, O({
|
|
1929
1929
|
key: 1,
|
|
1930
1930
|
modelValue: o(i),
|
|
1931
|
-
"onUpdate:modelValue": P[2] || (P[2] = (
|
|
1931
|
+
"onUpdate:modelValue": P[2] || (P[2] = (b) => ce(i) ? i.value = b : null),
|
|
1932
1932
|
density: "compact",
|
|
1933
1933
|
"control-variant": "stacked"
|
|
1934
|
-
},
|
|
1935
|
-
label: w((
|
|
1936
|
-
|
|
1937
|
-
data:
|
|
1934
|
+
}, I(I({}, o(u)), C.value)), {
|
|
1935
|
+
label: w((b) => [
|
|
1936
|
+
D(o(me), {
|
|
1937
|
+
data: b,
|
|
1938
1938
|
label: o(r)
|
|
1939
1939
|
}, null, 8, ["data", "label"])
|
|
1940
1940
|
]),
|
|
1941
|
-
message: w(({ message:
|
|
1942
|
-
|
|
1943
|
-
message:
|
|
1941
|
+
message: w(({ message: b }) => [
|
|
1942
|
+
D(o(ee), {
|
|
1943
|
+
message: b,
|
|
1944
1944
|
errors: o(s)
|
|
1945
1945
|
}, null, 8, ["message", "errors"])
|
|
1946
1946
|
]),
|
|
1947
1947
|
_: 1
|
|
1948
|
-
}, 16, ["modelValue"])) : (V(),
|
|
1948
|
+
}, 16, ["modelValue"])) : (V(), S(H, O({
|
|
1949
1949
|
key: 0,
|
|
1950
1950
|
modelValue: o(i),
|
|
1951
|
-
"onUpdate:modelValue": P[0] || (P[0] = (
|
|
1952
|
-
type: o(
|
|
1953
|
-
}, o(
|
|
1954
|
-
onBlur: P[1] || (P[1] = (
|
|
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)
|
|
1955
1955
|
}), {
|
|
1956
|
-
label: w((
|
|
1957
|
-
|
|
1958
|
-
data:
|
|
1956
|
+
label: w((b) => [
|
|
1957
|
+
D(o(me), {
|
|
1958
|
+
data: b,
|
|
1959
1959
|
label: o(r)
|
|
1960
1960
|
}, null, 8, ["data", "label"])
|
|
1961
1961
|
]),
|
|
1962
|
-
message: w(({ message:
|
|
1963
|
-
|
|
1964
|
-
message:
|
|
1962
|
+
message: w(({ message: b }) => [
|
|
1963
|
+
D(o(ee), {
|
|
1964
|
+
message: b,
|
|
1965
1965
|
errors: o(s)
|
|
1966
1966
|
}, null, 8, ["message", "errors"])
|
|
1967
1967
|
]),
|
|
@@ -1970,7 +1970,7 @@ const Ho = {
|
|
|
1970
1970
|
], 2);
|
|
1971
1971
|
};
|
|
1972
1972
|
}
|
|
1973
|
-
}),
|
|
1973
|
+
}), il = { class: "editor-container" }, sl = { class: "editor-container__editor" }, ul = { ref: "editorElement" }, cl = /* @__PURE__ */ R({
|
|
1974
1974
|
__name: "ck-editor-custom",
|
|
1975
1975
|
props: {
|
|
1976
1976
|
modelValue: { default: "" },
|
|
@@ -1979,10 +1979,10 @@ const Ho = {
|
|
|
1979
1979
|
},
|
|
1980
1980
|
emits: ["update:modelValue"],
|
|
1981
1981
|
setup(e, { expose: t, emit: n }) {
|
|
1982
|
-
|
|
1983
|
-
v32dcdf6e:
|
|
1982
|
+
_t((f) => ({
|
|
1983
|
+
v32dcdf6e: f.minHeight
|
|
1984
1984
|
}));
|
|
1985
|
-
const
|
|
1985
|
+
const l = n, a = E(!1), r = _n, s = {
|
|
1986
1986
|
items: [
|
|
1987
1987
|
"undo",
|
|
1988
1988
|
"redo",
|
|
@@ -2011,30 +2011,18 @@ const Ho = {
|
|
|
2011
2011
|
"accessibilityHelp"
|
|
2012
2012
|
],
|
|
2013
2013
|
shouldNotGroupWhenFull: !1
|
|
2014
|
-
},
|
|
2015
|
-
Bt,
|
|
2016
|
-
It,
|
|
2017
|
-
Dt,
|
|
2018
|
-
_t,
|
|
2019
|
-
Pt,
|
|
2020
|
-
Et,
|
|
2021
|
-
St,
|
|
2022
|
-
$t,
|
|
2023
|
-
At,
|
|
2024
|
-
Nt,
|
|
2025
|
-
Ft,
|
|
2026
|
-
Mt,
|
|
2014
|
+
}, p = [
|
|
2027
2015
|
Lt,
|
|
2028
2016
|
Ut,
|
|
2029
|
-
Ht,
|
|
2030
|
-
Ot,
|
|
2031
2017
|
Rt,
|
|
2018
|
+
Ht,
|
|
2032
2019
|
Wt,
|
|
2020
|
+
Ot,
|
|
2033
2021
|
zt,
|
|
2034
2022
|
Kt,
|
|
2035
2023
|
Xt,
|
|
2036
|
-
Gt,
|
|
2037
2024
|
qt,
|
|
2025
|
+
Gt,
|
|
2038
2026
|
Yt,
|
|
2039
2027
|
Qt,
|
|
2040
2028
|
Zt,
|
|
@@ -2043,8 +2031,8 @@ const Ho = {
|
|
|
2043
2031
|
tn,
|
|
2044
2032
|
nn,
|
|
2045
2033
|
on,
|
|
2046
|
-
an,
|
|
2047
2034
|
ln,
|
|
2035
|
+
an,
|
|
2048
2036
|
rn,
|
|
2049
2037
|
sn,
|
|
2050
2038
|
un,
|
|
@@ -2052,21 +2040,33 @@ const Ho = {
|
|
|
2052
2040
|
dn,
|
|
2053
2041
|
mn,
|
|
2054
2042
|
fn,
|
|
2055
|
-
pn
|
|
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
|
|
2056
2056
|
], i = {
|
|
2057
2057
|
options: [
|
|
2058
|
-
{ model: "paragraph", title:
|
|
2059
|
-
{ model: "heading1", view: "h1", title:
|
|
2060
|
-
{ model: "heading2", view: "h2", title:
|
|
2061
|
-
{ model: "heading3", view: "h3", title:
|
|
2062
|
-
{ model: "heading4", view: "h4", title:
|
|
2063
|
-
{ model: "heading5", view: "h5", title:
|
|
2064
|
-
{ 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" }
|
|
2065
2065
|
]
|
|
2066
|
-
},
|
|
2067
|
-
language:
|
|
2066
|
+
}, u = {
|
|
2067
|
+
language: Be.language,
|
|
2068
2068
|
toolbar: s,
|
|
2069
|
-
plugins:
|
|
2069
|
+
plugins: p,
|
|
2070
2070
|
balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
|
|
2071
2071
|
heading: i,
|
|
2072
2072
|
htmlSupport: {
|
|
@@ -2091,7 +2091,7 @@ const Ho = {
|
|
|
2091
2091
|
decorators: {
|
|
2092
2092
|
toggleDownloadable: {
|
|
2093
2093
|
mode: "manual",
|
|
2094
|
-
label:
|
|
2094
|
+
label: F.Downloadable,
|
|
2095
2095
|
attributes: { download: "file" }
|
|
2096
2096
|
}
|
|
2097
2097
|
}
|
|
@@ -2099,48 +2099,48 @@ const Ho = {
|
|
|
2099
2099
|
placeholder: "",
|
|
2100
2100
|
style: {
|
|
2101
2101
|
definitions: [
|
|
2102
|
-
{ name:
|
|
2103
|
-
{ name:
|
|
2104
|
-
{ name:
|
|
2105
|
-
{ name:
|
|
2106
|
-
{ name:
|
|
2107
|
-
{ name:
|
|
2108
|
-
{ name:
|
|
2109
|
-
{ name:
|
|
2110
|
-
{ 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"] }
|
|
2111
2111
|
]
|
|
2112
2112
|
},
|
|
2113
2113
|
table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] },
|
|
2114
|
-
translations:
|
|
2114
|
+
translations: Be.translations
|
|
2115
2115
|
};
|
|
2116
|
-
|
|
2117
|
-
|
|
2116
|
+
tt(() => {
|
|
2117
|
+
a.value = !0;
|
|
2118
2118
|
});
|
|
2119
|
-
const
|
|
2119
|
+
const h = (f) => {
|
|
2120
2120
|
};
|
|
2121
|
-
return t({ onEditorReady:
|
|
2122
|
-
const d =
|
|
2123
|
-
return V(),
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
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, {
|
|
2127
2127
|
key: 0,
|
|
2128
2128
|
"model-value": e.modelValue,
|
|
2129
2129
|
editor: o(r),
|
|
2130
|
-
config:
|
|
2130
|
+
config: u,
|
|
2131
2131
|
disabled: e.disabled,
|
|
2132
|
-
style:
|
|
2133
|
-
onReady:
|
|
2134
|
-
"onUpdate:modelValue":
|
|
2135
|
-
}, null, 8, ["model-value", "editor", "disabled", "style"])) :
|
|
2132
|
+
style: ot(`min-height: ${e.minHeight}`),
|
|
2133
|
+
onReady: h,
|
|
2134
|
+
"onUpdate:modelValue": k[0] || (k[0] = (T) => l("update:modelValue", T))
|
|
2135
|
+
}, null, 8, ["model-value", "editor", "disabled", "style"])) : U("", !0)
|
|
2136
2136
|
], 512)
|
|
2137
2137
|
])
|
|
2138
2138
|
]);
|
|
2139
2139
|
};
|
|
2140
2140
|
}
|
|
2141
|
-
}),
|
|
2141
|
+
}), dl = /* @__PURE__ */ R({
|
|
2142
2142
|
__name: "df-rtf-editor",
|
|
2143
|
-
props: /* @__PURE__ */
|
|
2143
|
+
props: /* @__PURE__ */ ne({
|
|
2144
2144
|
minHeight: {},
|
|
2145
2145
|
control: {},
|
|
2146
2146
|
modelValue: {},
|
|
@@ -2156,64 +2156,64 @@ const Ho = {
|
|
|
2156
2156
|
passthroughAttrs: {},
|
|
2157
2157
|
density: {},
|
|
2158
2158
|
variant: {}
|
|
2159
|
-
}, L(
|
|
2159
|
+
}, L(I({}, oe), { minHeight: void 0 })),
|
|
2160
2160
|
emits: ["update:modelValue", "click:clear"],
|
|
2161
2161
|
setup(e, { emit: t }) {
|
|
2162
|
-
const n = e,
|
|
2163
|
-
return (
|
|
2164
|
-
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)]
|
|
2165
2165
|
}), {
|
|
2166
|
-
default: w((
|
|
2167
|
-
|
|
2166
|
+
default: w((u) => [
|
|
2167
|
+
D(cl, O({
|
|
2168
2168
|
ref: "$editor",
|
|
2169
2169
|
modelValue: o(r),
|
|
2170
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
2170
|
+
"onUpdate:modelValue": i[0] || (i[0] = (h) => ce(r) ? r.value = h : null),
|
|
2171
2171
|
class: { "mt-6": !!e.label },
|
|
2172
2172
|
"min-height": e.minHeight,
|
|
2173
2173
|
disabled: o(s).disabled
|
|
2174
2174
|
}, e.passthroughAttrs, {
|
|
2175
|
-
onFocusin: (
|
|
2176
|
-
onFocusout: (
|
|
2175
|
+
onFocusin: (h) => u.focus(),
|
|
2176
|
+
onFocusout: (h) => u.blur()
|
|
2177
2177
|
}), null, 16, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
|
|
2178
2178
|
]),
|
|
2179
2179
|
_: 1
|
|
2180
2180
|
}, 16, ["class"]));
|
|
2181
2181
|
}
|
|
2182
2182
|
});
|
|
2183
|
-
function
|
|
2183
|
+
function ml(e) {
|
|
2184
2184
|
return e.map((t) => ({ value: t.id, title: t.text, icon: t.icon }));
|
|
2185
2185
|
}
|
|
2186
|
-
function
|
|
2186
|
+
function ae(e, t) {
|
|
2187
2187
|
var n;
|
|
2188
|
-
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;
|
|
2189
2189
|
}
|
|
2190
|
-
function
|
|
2190
|
+
function Ie(e, t) {
|
|
2191
2191
|
if (t == null) return [];
|
|
2192
|
-
const n =
|
|
2193
|
-
return e.filter((
|
|
2192
|
+
const n = lt(t);
|
|
2193
|
+
return e.filter((l) => n.some((a) => a === l.id));
|
|
2194
2194
|
}
|
|
2195
|
-
function
|
|
2195
|
+
function xe(e, t, n, l, a) {
|
|
2196
2196
|
var s;
|
|
2197
|
-
const r =
|
|
2197
|
+
const r = ae(e, n);
|
|
2198
2198
|
if (r == null) {
|
|
2199
2199
|
t.value = n ? [] : null;
|
|
2200
2200
|
return;
|
|
2201
2201
|
}
|
|
2202
2202
|
if (n)
|
|
2203
|
-
|
|
2204
|
-
else if (
|
|
2203
|
+
l ? t.value = r : t.value = Ie(a, r).map((p) => p.id);
|
|
2204
|
+
else if (l)
|
|
2205
2205
|
t.value = r;
|
|
2206
2206
|
else {
|
|
2207
|
-
const
|
|
2208
|
-
t.value = (s =
|
|
2207
|
+
const p = at(Ie(a, r));
|
|
2208
|
+
t.value = (s = p == null ? void 0 : p.id) != null ? s : null;
|
|
2209
2209
|
}
|
|
2210
2210
|
}
|
|
2211
|
-
const
|
|
2211
|
+
const fl = {
|
|
2212
2212
|
key: 0,
|
|
2213
2213
|
class: "me-1"
|
|
2214
|
-
},
|
|
2214
|
+
}, pl = /* @__PURE__ */ R({
|
|
2215
2215
|
__name: "df-select",
|
|
2216
|
-
props: /* @__PURE__ */
|
|
2216
|
+
props: /* @__PURE__ */ ne({
|
|
2217
2217
|
choices: {},
|
|
2218
2218
|
multiple: { type: Boolean },
|
|
2219
2219
|
allowTags: { type: Boolean },
|
|
@@ -2233,7 +2233,7 @@ const ta = {
|
|
|
2233
2233
|
passthroughAttrs: {},
|
|
2234
2234
|
density: {},
|
|
2235
2235
|
variant: {}
|
|
2236
|
-
}, L(
|
|
2236
|
+
}, L(I({}, oe), {
|
|
2237
2237
|
choices: void 0,
|
|
2238
2238
|
multiple: !1,
|
|
2239
2239
|
allowTags: !1,
|
|
@@ -2242,186 +2242,228 @@ const ta = {
|
|
|
2242
2242
|
})),
|
|
2243
2243
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
2244
2244
|
setup(e, { emit: t }) {
|
|
2245
|
-
const n = e, { choices:
|
|
2246
|
-
densityClass:
|
|
2247
|
-
label:
|
|
2248
|
-
showErrors:
|
|
2249
|
-
touched:
|
|
2250
|
-
value:
|
|
2251
|
-
vuetifyBindings:
|
|
2252
|
-
} =
|
|
2253
|
-
|
|
2254
|
-
function
|
|
2255
|
-
|
|
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));
|
|
2256
2256
|
}
|
|
2257
|
-
|
|
2258
|
-
function
|
|
2259
|
-
|
|
2260
|
-
|
|
2257
|
+
const Z = E(!1);
|
|
2258
|
+
function le(y) {
|
|
2259
|
+
Z.value = !0, x.value = y, Xe(() => {
|
|
2260
|
+
Z.value = !1;
|
|
2261
2261
|
});
|
|
2262
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
|
+
}
|
|
2263
2285
|
ue(
|
|
2264
|
-
|
|
2265
|
-
(
|
|
2266
|
-
|
|
2267
|
-
const
|
|
2268
|
-
|
|
2286
|
+
m,
|
|
2287
|
+
(y) => {
|
|
2288
|
+
C.value.readonly || Xe(() => {
|
|
2289
|
+
const _ = ae(y, a.value);
|
|
2290
|
+
K(_), le(_);
|
|
2269
2291
|
});
|
|
2270
2292
|
},
|
|
2271
2293
|
{ deep: !0 }
|
|
2272
2294
|
), ue(
|
|
2273
|
-
|
|
2274
|
-
(
|
|
2275
|
-
if (!
|
|
2276
|
-
const
|
|
2277
|
-
|
|
2295
|
+
x,
|
|
2296
|
+
(y) => {
|
|
2297
|
+
if (!Z.value) {
|
|
2298
|
+
const _ = ae(y, a.value);
|
|
2299
|
+
xe(_, m, a.value, !1, A.value);
|
|
2278
2300
|
}
|
|
2279
2301
|
},
|
|
2280
2302
|
{ deep: !0 }
|
|
2281
|
-
)
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2303
|
+
), ue(Z, () => {
|
|
2304
|
+
Z.value || J();
|
|
2305
|
+
});
|
|
2306
|
+
function ve() {
|
|
2307
|
+
v.value != null && v.value.length > 0 && (v.value = null, Se());
|
|
2286
2308
|
}
|
|
2287
|
-
function
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
l.value
|
|
2292
|
-
) : D = null, ye(D, k, l.value, !1, M.value), u(D);
|
|
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);
|
|
2293
2313
|
}
|
|
2294
|
-
function
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
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;
|
|
2307
2339
|
}
|
|
2308
2340
|
});
|
|
2309
2341
|
}
|
|
2310
|
-
function
|
|
2311
|
-
let
|
|
2312
|
-
!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);
|
|
2313
2345
|
}
|
|
2314
|
-
return
|
|
2315
|
-
|
|
2316
|
-
}), (
|
|
2317
|
-
const
|
|
2318
|
-
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({
|
|
2319
2351
|
key: 0,
|
|
2320
|
-
|
|
2321
|
-
|
|
2352
|
+
ref_key: "dfSelectRef",
|
|
2353
|
+
ref: h,
|
|
2354
|
+
modelValue: m.value,
|
|
2355
|
+
"onUpdate:modelValue": _[0] || (_[0] = (B) => m.value = B),
|
|
2322
2356
|
class: [
|
|
2357
|
+
o(p),
|
|
2323
2358
|
o(f),
|
|
2324
|
-
o(v),
|
|
2325
2359
|
{
|
|
2326
|
-
"d-none": o(i) === o(
|
|
2327
|
-
invisible: o(i) === o(
|
|
2360
|
+
"d-none": o(i) === o(Y).HIDDEN,
|
|
2361
|
+
invisible: o(i) === o(Y).INVISIBLE,
|
|
2362
|
+
"df-select-multirow": $.value
|
|
2328
2363
|
}
|
|
2329
2364
|
],
|
|
2330
|
-
items:
|
|
2365
|
+
items: N.value,
|
|
2331
2366
|
"return-object": !1,
|
|
2332
2367
|
chips: "",
|
|
2333
2368
|
"auto-select-first": !0,
|
|
2334
|
-
"closable-chips": o(s) || o(
|
|
2369
|
+
"closable-chips": o(s) || o(a) && m.value.length > 1,
|
|
2335
2370
|
clearable: o(s),
|
|
2336
|
-
multiple: o(
|
|
2337
|
-
loading:
|
|
2371
|
+
multiple: o(a),
|
|
2372
|
+
loading: b.value,
|
|
2338
2373
|
"hide-selected": !1,
|
|
2339
|
-
"aria-describedby": o(
|
|
2340
|
-
"menu-props": { maxHeight: "400" }
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
"onUpdate:
|
|
2344
|
-
"
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
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,
|
|
2350
2387
|
label: "",
|
|
2351
2388
|
size: "small",
|
|
2352
2389
|
class: "d-flex align-middle",
|
|
2353
|
-
variant: o(
|
|
2354
|
-
closable: o(
|
|
2355
|
-
"onClick:close": (
|
|
2390
|
+
variant: o(a) ? "tonal" : "text",
|
|
2391
|
+
closable: o(a),
|
|
2392
|
+
"onClick:close": (q) => dt(q, B.value)
|
|
2356
2393
|
}, {
|
|
2357
2394
|
prepend: w(() => {
|
|
2358
|
-
var
|
|
2395
|
+
var q;
|
|
2359
2396
|
return [
|
|
2360
|
-
(
|
|
2397
|
+
(q = B.raw) != null && q.icon ? (V(), S(o(je), {
|
|
2361
2398
|
key: 0,
|
|
2362
2399
|
class: "me-1",
|
|
2363
|
-
name:
|
|
2364
|
-
}, null, 8, ["name"])) :
|
|
2400
|
+
name: B.raw.icon
|
|
2401
|
+
}, null, 8, ["name"])) : U("", !0)
|
|
2365
2402
|
];
|
|
2366
2403
|
}),
|
|
2367
2404
|
default: w(() => [
|
|
2368
|
-
|
|
2369
|
-
class:
|
|
2370
|
-
},
|
|
2405
|
+
de("span", {
|
|
2406
|
+
class: te({ "text-body-1": !o(a) })
|
|
2407
|
+
}, Ne(B.title), 3)
|
|
2371
2408
|
]),
|
|
2372
2409
|
_: 2
|
|
2373
2410
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
2374
2411
|
]),
|
|
2375
|
-
label: w((
|
|
2376
|
-
|
|
2377
|
-
data:
|
|
2378
|
-
label: o(
|
|
2412
|
+
label: w((B) => [
|
|
2413
|
+
D(o(me), {
|
|
2414
|
+
data: B,
|
|
2415
|
+
label: o(k)
|
|
2379
2416
|
}, null, 8, ["data", "label"])
|
|
2380
2417
|
]),
|
|
2381
|
-
item: w(({ props:
|
|
2382
|
-
|
|
2418
|
+
item: w(({ props: B, item: q }) => [
|
|
2419
|
+
D(X, re(ie(B)), {
|
|
2383
2420
|
prepend: w(() => {
|
|
2384
|
-
var
|
|
2421
|
+
var be;
|
|
2385
2422
|
return [
|
|
2386
|
-
(
|
|
2387
|
-
|
|
2423
|
+
(be = q.raw) != null && be.icon ? (V(), z("span", fl, [
|
|
2424
|
+
D(o(je), {
|
|
2388
2425
|
class: "action-icon",
|
|
2389
|
-
name:
|
|
2426
|
+
name: q.raw.icon
|
|
2390
2427
|
}, null, 8, ["name"])
|
|
2391
|
-
])) :
|
|
2428
|
+
])) : U("", !0)
|
|
2392
2429
|
];
|
|
2393
2430
|
}),
|
|
2394
2431
|
_: 2
|
|
2395
2432
|
}, 1040)
|
|
2396
2433
|
]),
|
|
2397
|
-
message: w(({ message:
|
|
2398
|
-
|
|
2399
|
-
message:
|
|
2400
|
-
errors: o(
|
|
2434
|
+
message: w(({ message: B }) => [
|
|
2435
|
+
D(o(ee), {
|
|
2436
|
+
message: B,
|
|
2437
|
+
errors: o(d)
|
|
2401
2438
|
}, null, 8, ["message", "errors"])
|
|
2402
2439
|
]),
|
|
2403
2440
|
_: 2
|
|
2404
2441
|
}, [
|
|
2405
|
-
|
|
2442
|
+
y.$slots["append-inner"] ? {
|
|
2406
2443
|
name: "append-inner",
|
|
2407
|
-
fn: w((
|
|
2408
|
-
|
|
2444
|
+
fn: w((B) => [
|
|
2445
|
+
fe(y.$slots, "append-inner", re(ie(B)), void 0, !0)
|
|
2409
2446
|
]),
|
|
2410
2447
|
key: "0"
|
|
2411
2448
|
} : void 0,
|
|
2412
|
-
|
|
2449
|
+
y.$slots["prepend-inner"] ? {
|
|
2413
2450
|
name: "prepend-inner",
|
|
2414
|
-
fn: w((
|
|
2415
|
-
|
|
2451
|
+
fn: w((B) => [
|
|
2452
|
+
fe(y.$slots, "prepend-inner", re(ie(B)), void 0, !0)
|
|
2416
2453
|
]),
|
|
2417
2454
|
key: "1"
|
|
2418
2455
|
} : void 0
|
|
2419
|
-
]), 1040, ["modelValue", "class", "items", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) :
|
|
2456
|
+
]), 1040, ["modelValue", "class", "items", "closable-chips", "clearable", "multiple", "loading", "aria-describedby", "search"])) : U("", !0);
|
|
2420
2457
|
};
|
|
2421
2458
|
}
|
|
2422
|
-
}),
|
|
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({
|
|
2423
2465
|
__name: "df-text-area",
|
|
2424
|
-
props: /* @__PURE__ */
|
|
2466
|
+
props: /* @__PURE__ */ ne({
|
|
2425
2467
|
rows: {},
|
|
2426
2468
|
maxRows: {},
|
|
2427
2469
|
control: {},
|
|
@@ -2438,132 +2480,132 @@ const ta = {
|
|
|
2438
2480
|
passthroughAttrs: {},
|
|
2439
2481
|
density: {},
|
|
2440
2482
|
variant: {}
|
|
2441
|
-
}, L(
|
|
2483
|
+
}, L(I({}, oe), {
|
|
2442
2484
|
rows: void 0,
|
|
2443
2485
|
maxRows: void 0
|
|
2444
2486
|
})),
|
|
2445
2487
|
emits: ["update:modelValue", "click:clear"],
|
|
2446
2488
|
setup(e, { emit: t }) {
|
|
2447
|
-
const n = e,
|
|
2448
|
-
return (
|
|
2449
|
-
const
|
|
2450
|
-
return V(),
|
|
2451
|
-
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)])
|
|
2452
2494
|
}, [
|
|
2453
|
-
o(
|
|
2495
|
+
o(f) !== o(Y).SUPPRESS ? (V(), S(T, O({
|
|
2454
2496
|
key: 0,
|
|
2455
2497
|
modelValue: o(i),
|
|
2456
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
2498
|
+
"onUpdate:modelValue": d[0] || (d[0] = (x) => ce(i) ? i.value = x : null),
|
|
2457
2499
|
class: [
|
|
2458
|
-
o(
|
|
2500
|
+
o(h),
|
|
2459
2501
|
{
|
|
2460
|
-
"d-none": o(
|
|
2461
|
-
invisible: o(
|
|
2502
|
+
"d-none": o(f) === o(Y).HIDDEN,
|
|
2503
|
+
invisible: o(f) === o(Y).INVISIBLE
|
|
2462
2504
|
}
|
|
2463
2505
|
],
|
|
2464
2506
|
rows: e.rows,
|
|
2465
2507
|
"auto-grow": (e.maxRows || 0) > 0,
|
|
2466
2508
|
"max-rows": e.maxRows
|
|
2467
|
-
}, o(
|
|
2468
|
-
onBlur: d[1] || (d[1] = (
|
|
2509
|
+
}, o(u), {
|
|
2510
|
+
onBlur: d[1] || (d[1] = (x) => p.value = !0)
|
|
2469
2511
|
}), {
|
|
2470
|
-
label: w((
|
|
2471
|
-
|
|
2472
|
-
data:
|
|
2512
|
+
label: w((x) => [
|
|
2513
|
+
D(o(me), {
|
|
2514
|
+
data: x,
|
|
2473
2515
|
label: o(r)
|
|
2474
2516
|
}, null, 8, ["data", "label"])
|
|
2475
2517
|
]),
|
|
2476
|
-
message: w(({ message:
|
|
2477
|
-
|
|
2478
|
-
message:
|
|
2518
|
+
message: w(({ message: x }) => [
|
|
2519
|
+
D(o(ee), {
|
|
2520
|
+
message: x,
|
|
2479
2521
|
errors: o(s)
|
|
2480
2522
|
}, null, 8, ["message", "errors"])
|
|
2481
2523
|
]),
|
|
2482
2524
|
_: 1
|
|
2483
|
-
}, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) :
|
|
2525
|
+
}, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) : U("", !0)
|
|
2484
2526
|
], 2);
|
|
2485
2527
|
};
|
|
2486
2528
|
}
|
|
2487
|
-
}),
|
|
2529
|
+
}), gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2488
2530
|
__proto__: null,
|
|
2489
|
-
DFInputHint:
|
|
2490
|
-
DfActions:
|
|
2491
|
-
DfCheckbox:
|
|
2492
|
-
DfColor:
|
|
2493
|
-
DfDateTime:
|
|
2494
|
-
DfFile:
|
|
2495
|
-
DfInput:
|
|
2496
|
-
DfRtfEditor:
|
|
2497
|
-
DfSelect:
|
|
2498
|
-
DfTextArea:
|
|
2499
|
-
}, 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({
|
|
2500
2542
|
__proto__: null,
|
|
2501
|
-
VAutocomplete:
|
|
2502
|
-
VBtn:
|
|
2503
|
-
VCheckbox:
|
|
2504
|
-
VChip:
|
|
2505
|
-
VCol:
|
|
2506
|
-
VColorPicker:
|
|
2507
|
-
VCombobox:
|
|
2508
|
-
VConfirmEdit:
|
|
2509
|
-
VDatePicker:
|
|
2510
|
-
VField:
|
|
2511
|
-
VFileInput:
|
|
2512
|
-
VIcon:
|
|
2513
|
-
VImg:
|
|
2514
|
-
VInput:
|
|
2515
|
-
VListItem:
|
|
2516
|
-
VMenu:
|
|
2517
|
-
VNumberInput:
|
|
2518
|
-
VProgressLinear:
|
|
2519
|
-
VRow:
|
|
2520
|
-
VSelect:
|
|
2521
|
-
VSwitch:
|
|
2522
|
-
VTextField:
|
|
2523
|
-
VTextarea:
|
|
2524
|
-
VTimePicker:
|
|
2525
|
-
}, 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({
|
|
2526
2568
|
__proto__: null
|
|
2527
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2569
|
+
}, Symbol.toStringTag, { value: "Module" })), ta = {
|
|
2528
2570
|
install: (e, t) => {
|
|
2529
|
-
var n,
|
|
2530
|
-
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));
|
|
2531
2573
|
}
|
|
2532
2574
|
};
|
|
2533
2575
|
export {
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
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
|
|
2568
2610
|
};
|
|
2569
2611
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|