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