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