@dynamicforms/vuetify-inputs 0.8.0 → 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 +1062 -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 +49 -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 to(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)", so = 300, uo =
|
|
|
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 fo = {
|
|
|
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 po(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 ho = {
|
|
|
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 Vo = {
|
|
|
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 Vo = {
|
|
|
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 Vo = {
|
|
|
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 Vo = {
|
|
|
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 Eo = /^(\d+)\./i, Ao = /\d+/i, $o = {
|
|
|
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 Eo = /^(\d+)\./i, Ao = /\d+/i, $o = {
|
|
|
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 Eo = /^(\d+)\./i, Ao = /\d+/i, $o = {
|
|
|
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 Eo = /^(\d+)\./i, Ao = /\d+/i, $o = {
|
|
|
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:
|
|
1084
|
+
value: c,
|
|
1063
1085
|
valid: f,
|
|
1064
|
-
enabled:
|
|
1065
|
-
errors:
|
|
1066
|
-
showErrors:
|
|
1067
|
-
visibility:
|
|
1068
|
-
isRendered:
|
|
1069
|
-
visibilityClass:
|
|
1070
|
-
label:
|
|
1071
|
-
touched:
|
|
1072
|
-
density:
|
|
1073
|
-
densityClass:
|
|
1074
|
-
vuetifyBindings:
|
|
1075
|
-
var
|
|
1076
|
-
return
|
|
1077
|
-
name: (
|
|
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;
|
|
1098
|
+
return B({
|
|
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 Go = { 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
|
-
|
|
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 Go = { 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,83 +1233,85 @@ const Go = { 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
|
-
|
|
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);
|
|
1284
|
+
}
|
|
1261
1285
|
if (a === t) break;
|
|
1262
1286
|
}
|
|
1263
1287
|
return n;
|
|
1264
1288
|
}
|
|
1265
1289
|
}
|
|
1266
|
-
function
|
|
1290
|
+
function nl(e) {
|
|
1267
1291
|
return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
|
|
1268
1292
|
}
|
|
1269
|
-
function
|
|
1270
|
-
const e =
|
|
1271
|
-
return
|
|
1293
|
+
function ol() {
|
|
1294
|
+
const e = Ot();
|
|
1295
|
+
return b(() => nl(e));
|
|
1272
1296
|
}
|
|
1273
|
-
class
|
|
1297
|
+
class ll extends tl {
|
|
1274
1298
|
cleanBreakpoint(t, n = !1) {
|
|
1275
|
-
if ((!t || !
|
|
1299
|
+
if ((!t || !At(t)) && !n) return null;
|
|
1276
1300
|
const l = {};
|
|
1277
|
-
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;
|
|
1278
1302
|
}
|
|
1279
1303
|
}
|
|
1280
|
-
class
|
|
1304
|
+
class Be extends Ut {
|
|
1281
1305
|
getBreakpointValue(t) {
|
|
1282
|
-
return
|
|
1283
|
-
const l = new
|
|
1306
|
+
return b(() => {
|
|
1307
|
+
const l = new ll(this.value).getOptionsForBreakpoint(t.value);
|
|
1284
1308
|
return {
|
|
1285
1309
|
name: l.name,
|
|
1286
1310
|
label: l.showLabel ? l.label : void 0,
|
|
1287
1311
|
icon: l.showIcon ? l.icon : void 0,
|
|
1288
1312
|
renderAs: l.renderAs,
|
|
1289
|
-
showLabel:
|
|
1290
|
-
showIcon:
|
|
1313
|
+
showLabel: ue(l.label) && !je(l.label) ? l.showLabel : !1,
|
|
1314
|
+
showIcon: ue(l.icon) && !je(l.icon) ? l.showIcon : !1
|
|
1291
1315
|
};
|
|
1292
1316
|
});
|
|
1293
1317
|
}
|
|
@@ -1295,21 +1319,27 @@ class _e extends Mt {
|
|
|
1295
1319
|
get name() {
|
|
1296
1320
|
return this.value.name;
|
|
1297
1321
|
}
|
|
1298
|
-
/**
|
|
1299
|
-
|
|
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() {
|
|
1300
1327
|
return this.value.showLabel ? this.value.label : void 0;
|
|
1301
1328
|
}
|
|
1302
1329
|
/** @see ActionRenderOptions.showLabel */
|
|
1303
1330
|
get showLabel() {
|
|
1304
|
-
return
|
|
1331
|
+
return ue(this.value.label) && !je(this.value.label) ? this.value.showLabel : !1;
|
|
1305
1332
|
}
|
|
1306
|
-
/**
|
|
1307
|
-
|
|
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() {
|
|
1308
1338
|
return this.value.showIcon ? this.value.icon : void 0;
|
|
1309
1339
|
}
|
|
1310
1340
|
/** @see ActionRenderOptions.showIcon */
|
|
1311
1341
|
get showIcon() {
|
|
1312
|
-
return
|
|
1342
|
+
return ue(this.value.icon) && !je(this.value.icon) ? this.value.showIcon : !1;
|
|
1313
1343
|
}
|
|
1314
1344
|
/** @see ActionRenderOptions.renderAs */
|
|
1315
1345
|
get renderAs() {
|
|
@@ -1329,54 +1359,54 @@ class _e extends Mt {
|
|
|
1329
1359
|
}
|
|
1330
1360
|
static closeAction(t) {
|
|
1331
1361
|
var l;
|
|
1332
|
-
const n =
|
|
1362
|
+
const n = O(B({}, t != null ? t : {}), {
|
|
1333
1363
|
// any properties in data should overwrite properties in the constant
|
|
1334
1364
|
value: {
|
|
1335
1365
|
name: "close",
|
|
1336
|
-
label:
|
|
1366
|
+
label: L.Close,
|
|
1337
1367
|
icon: "ion-close-outline",
|
|
1338
|
-
renderAs:
|
|
1368
|
+
renderAs: J.BUTTON,
|
|
1339
1369
|
showLabel: !0,
|
|
1340
1370
|
showIcon: !0
|
|
1341
1371
|
}
|
|
1342
1372
|
});
|
|
1343
|
-
return n.value =
|
|
1373
|
+
return n.value = B(B({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), new Be(n);
|
|
1344
1374
|
}
|
|
1345
1375
|
static yesAction(t) {
|
|
1346
1376
|
var l;
|
|
1347
|
-
const n =
|
|
1377
|
+
const n = O(B({}, t != null ? t : {}), {
|
|
1348
1378
|
// any properties in data should overwrite properties in the constant
|
|
1349
1379
|
value: {
|
|
1350
1380
|
name: "yes",
|
|
1351
|
-
label:
|
|
1381
|
+
label: L.Yes,
|
|
1352
1382
|
icon: "ion-thumbs-up-outline",
|
|
1353
|
-
renderAs:
|
|
1383
|
+
renderAs: J.BUTTON,
|
|
1354
1384
|
showLabel: !0,
|
|
1355
1385
|
showIcon: !0
|
|
1356
1386
|
}
|
|
1357
1387
|
});
|
|
1358
|
-
return n.value =
|
|
1388
|
+
return n.value = B(B({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), new Be(n);
|
|
1359
1389
|
}
|
|
1360
1390
|
static noAction(t) {
|
|
1361
1391
|
var l;
|
|
1362
|
-
const n =
|
|
1392
|
+
const n = O(B({}, t != null ? t : {}), {
|
|
1363
1393
|
// any properties in data should overwrite properties in the constant
|
|
1364
1394
|
value: {
|
|
1365
1395
|
name: "no",
|
|
1366
|
-
label:
|
|
1396
|
+
label: L.No,
|
|
1367
1397
|
icon: "ion-thumbs-down-outline",
|
|
1368
|
-
renderAs:
|
|
1398
|
+
renderAs: J.BUTTON,
|
|
1369
1399
|
showLabel: !0,
|
|
1370
1400
|
showIcon: !0
|
|
1371
1401
|
}
|
|
1372
1402
|
});
|
|
1373
|
-
return n.value =
|
|
1403
|
+
return n.value = B(B({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), new Be(n);
|
|
1374
1404
|
}
|
|
1375
1405
|
}
|
|
1376
|
-
const
|
|
1406
|
+
const al = {
|
|
1377
1407
|
key: 1,
|
|
1378
1408
|
style: { width: "0.5rem" }
|
|
1379
|
-
},
|
|
1409
|
+
}, rl = { key: 2 }, il = /* @__PURE__ */ K({
|
|
1380
1410
|
__name: "df-actions",
|
|
1381
1411
|
props: {
|
|
1382
1412
|
actions: {},
|
|
@@ -1384,54 +1414,54 @@ const el = {
|
|
|
1384
1414
|
showAsGroup: { default: "no" }
|
|
1385
1415
|
},
|
|
1386
1416
|
setup(e) {
|
|
1387
|
-
const t = e, n =
|
|
1388
|
-
() => l.value.map((
|
|
1389
|
-
action:
|
|
1390
|
-
}, 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))))
|
|
1391
1421
|
);
|
|
1392
|
-
function
|
|
1393
|
-
if (
|
|
1394
|
-
if (
|
|
1422
|
+
function r(s) {
|
|
1423
|
+
if (s.defaultConfirm) return "primary";
|
|
1424
|
+
if (s.defaultReject) return "secondary";
|
|
1395
1425
|
}
|
|
1396
|
-
return (
|
|
1397
|
-
const
|
|
1398
|
-
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", {
|
|
1399
1429
|
key: 0,
|
|
1400
|
-
class:
|
|
1430
|
+
class: le(["text-end df-actions", {
|
|
1401
1431
|
"button-group": e.showAsGroup === "grouped" || e.showAsGroup === "grouped-no-borders",
|
|
1402
1432
|
"with-border": e.showAsGroup === "grouped"
|
|
1403
1433
|
}])
|
|
1404
1434
|
}, [
|
|
1405
|
-
(C(!0),
|
|
1406
|
-
key:
|
|
1407
|
-
variant:
|
|
1408
|
-
color: i
|
|
1409
|
-
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,
|
|
1410
1440
|
elevation: 0,
|
|
1411
1441
|
size: e.buttonSize,
|
|
1412
1442
|
class: {
|
|
1413
|
-
"d-none":
|
|
1414
|
-
invisible:
|
|
1443
|
+
"d-none": i.action.visibility === o($e).HIDDEN,
|
|
1444
|
+
invisible: i.action.visibility === o($e).INVISIBLE
|
|
1415
1445
|
}
|
|
1416
|
-
}, { ref_for: !0 },
|
|
1417
|
-
onClick:
|
|
1446
|
+
}, { ref_for: !0 }, i.action.passthroughAttrs, {
|
|
1447
|
+
onClick: It((u) => i.action.execute(u), ["stop"])
|
|
1418
1448
|
}), {
|
|
1419
|
-
default:
|
|
1420
|
-
|
|
1449
|
+
default: y(() => [
|
|
1450
|
+
i.icon ? (C(), R(o(xe), {
|
|
1421
1451
|
key: 0,
|
|
1422
|
-
name:
|
|
1423
|
-
}, null, 8, ["name"])) :
|
|
1424
|
-
|
|
1425
|
-
|
|
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)
|
|
1426
1456
|
]),
|
|
1427
1457
|
_: 2
|
|
1428
1458
|
}, 1040, ["variant", "color", "disabled", "size", "class", "onClick"]))), 128))
|
|
1429
|
-
], 2)) :
|
|
1459
|
+
], 2)) : H("", !0);
|
|
1430
1460
|
};
|
|
1431
1461
|
}
|
|
1432
|
-
}),
|
|
1462
|
+
}), sl = /* @__PURE__ */ K({
|
|
1433
1463
|
__name: "df-checkbox",
|
|
1434
|
-
props: /* @__PURE__ */
|
|
1464
|
+
props: /* @__PURE__ */ ae({
|
|
1435
1465
|
allowNull: { type: Boolean },
|
|
1436
1466
|
control: {},
|
|
1437
1467
|
modelValue: {},
|
|
@@ -1447,58 +1477,58 @@ const el = {
|
|
|
1447
1477
|
passthroughAttrs: {},
|
|
1448
1478
|
density: {},
|
|
1449
1479
|
variant: {}
|
|
1450
|
-
},
|
|
1480
|
+
}, O(B({}, re), { allowNull: !1 })),
|
|
1451
1481
|
emits: ["update:modelValue", "click:clear"],
|
|
1452
1482
|
setup(e, { emit: t }) {
|
|
1453
|
-
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(
|
|
1454
1484
|
n,
|
|
1455
1485
|
l
|
|
1456
|
-
),
|
|
1486
|
+
), V = b(() => n.allowNull && i.value == null), x = b({
|
|
1457
1487
|
get() {
|
|
1458
|
-
return
|
|
1488
|
+
return i.value;
|
|
1459
1489
|
},
|
|
1460
1490
|
set() {
|
|
1461
1491
|
}
|
|
1462
1492
|
});
|
|
1463
|
-
function
|
|
1464
|
-
const
|
|
1465
|
-
|
|
1493
|
+
function p() {
|
|
1494
|
+
const k = $t(i.value);
|
|
1495
|
+
k === !0 ? i.value = n.allowNull ? null : !1 : i.value = k === !1;
|
|
1466
1496
|
}
|
|
1467
|
-
return (
|
|
1468
|
-
const
|
|
1469
|
-
return o(
|
|
1497
|
+
return (k, D) => {
|
|
1498
|
+
const S = N("v-checkbox");
|
|
1499
|
+
return o(r) ? (C(), R(S, z({
|
|
1470
1500
|
key: 0,
|
|
1471
|
-
modelValue:
|
|
1472
|
-
"onUpdate:modelValue":
|
|
1501
|
+
modelValue: x.value,
|
|
1502
|
+
"onUpdate:modelValue": D[0] || (D[0] = (d) => x.value = d),
|
|
1473
1503
|
density: "compact",
|
|
1474
|
-
class: [o(a), o(
|
|
1475
|
-
indeterminate:
|
|
1504
|
+
class: [o(a), o(f)],
|
|
1505
|
+
indeterminate: V.value,
|
|
1476
1506
|
"false-value": !1,
|
|
1477
1507
|
"true-value": !0
|
|
1478
|
-
}, o(
|
|
1479
|
-
onChange:
|
|
1480
|
-
onBlur:
|
|
1508
|
+
}, o(u), {
|
|
1509
|
+
onChange: p,
|
|
1510
|
+
onBlur: D[1] || (D[1] = (d) => g.value = !0)
|
|
1481
1511
|
}), {
|
|
1482
|
-
label:
|
|
1483
|
-
|
|
1512
|
+
label: y((d) => [
|
|
1513
|
+
I(o(fe), {
|
|
1484
1514
|
"allow-wrap": !0,
|
|
1485
|
-
data:
|
|
1486
|
-
label: o(
|
|
1515
|
+
data: d,
|
|
1516
|
+
label: o(s)
|
|
1487
1517
|
}, null, 8, ["data", "label"])
|
|
1488
1518
|
]),
|
|
1489
|
-
message:
|
|
1490
|
-
|
|
1491
|
-
message:
|
|
1492
|
-
errors: o(
|
|
1519
|
+
message: y(({ message: d }) => [
|
|
1520
|
+
I(o(oe), {
|
|
1521
|
+
message: d,
|
|
1522
|
+
errors: o(c)
|
|
1493
1523
|
}, null, 8, ["message", "errors"])
|
|
1494
1524
|
]),
|
|
1495
1525
|
_: 1
|
|
1496
|
-
}, 16, ["modelValue", "class", "indeterminate"])) :
|
|
1526
|
+
}, 16, ["modelValue", "class", "indeterminate"])) : H("", !0);
|
|
1497
1527
|
};
|
|
1498
1528
|
}
|
|
1499
|
-
}),
|
|
1529
|
+
}), ul = /* @__PURE__ */ K({
|
|
1500
1530
|
__name: "df-color",
|
|
1501
|
-
props: /* @__PURE__ */
|
|
1531
|
+
props: /* @__PURE__ */ ae({
|
|
1502
1532
|
allowNull: { type: Boolean },
|
|
1503
1533
|
control: {},
|
|
1504
1534
|
modelValue: {},
|
|
@@ -1514,56 +1544,56 @@ const el = {
|
|
|
1514
1544
|
passthroughAttrs: {},
|
|
1515
1545
|
density: {},
|
|
1516
1546
|
variant: {}
|
|
1517
|
-
},
|
|
1547
|
+
}, O(B({}, re), { allowNull: !1 })),
|
|
1518
1548
|
emits: ["update:modelValue", "click:clear"],
|
|
1519
1549
|
setup(e, { emit: t }) {
|
|
1520
|
-
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(
|
|
1521
1551
|
n,
|
|
1522
1552
|
l
|
|
1523
|
-
),
|
|
1524
|
-
(
|
|
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."
|
|
1525
1555
|
]);
|
|
1526
|
-
return (
|
|
1527
|
-
const
|
|
1528
|
-
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({
|
|
1529
1559
|
key: 0,
|
|
1530
|
-
modelValue: o(
|
|
1531
|
-
"onUpdate:modelValue":
|
|
1532
|
-
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)],
|
|
1533
1563
|
clearable: e.allowNull,
|
|
1534
1564
|
type: "text",
|
|
1535
|
-
rules:
|
|
1536
|
-
}, o(
|
|
1537
|
-
onBlur:
|
|
1565
|
+
rules: x.value
|
|
1566
|
+
}, o(u), {
|
|
1567
|
+
onBlur: k[3] || (k[3] = (P) => g.value = !0)
|
|
1538
1568
|
}), {
|
|
1539
|
-
label:
|
|
1540
|
-
|
|
1541
|
-
data:
|
|
1542
|
-
label: o(
|
|
1569
|
+
label: y((P) => [
|
|
1570
|
+
I(o(fe), {
|
|
1571
|
+
data: P,
|
|
1572
|
+
label: o(s)
|
|
1543
1573
|
}, null, 8, ["data", "label"])
|
|
1544
1574
|
]),
|
|
1545
|
-
message:
|
|
1546
|
-
|
|
1547
|
-
message:
|
|
1548
|
-
errors: o(
|
|
1575
|
+
message: y(({ message: P }) => [
|
|
1576
|
+
I(o(oe), {
|
|
1577
|
+
message: P,
|
|
1578
|
+
errors: o(c)
|
|
1549
1579
|
}, null, 8, ["message", "errors"])
|
|
1550
1580
|
]),
|
|
1551
|
-
"prepend-inner":
|
|
1552
|
-
|
|
1553
|
-
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) }])
|
|
1554
1584
|
}, null, 4)
|
|
1555
1585
|
]),
|
|
1556
|
-
default:
|
|
1557
|
-
|
|
1558
|
-
modelValue:
|
|
1559
|
-
"onUpdate:modelValue":
|
|
1586
|
+
default: y(() => [
|
|
1587
|
+
I(S, {
|
|
1588
|
+
modelValue: V.value,
|
|
1589
|
+
"onUpdate:modelValue": k[1] || (k[1] = (P) => V.value = P),
|
|
1560
1590
|
"close-on-content-click": !1,
|
|
1561
1591
|
activator: "parent"
|
|
1562
1592
|
}, {
|
|
1563
|
-
default:
|
|
1564
|
-
|
|
1565
|
-
modelValue: o(
|
|
1566
|
-
"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),
|
|
1567
1597
|
mode: "hexa"
|
|
1568
1598
|
}, null, 8, ["modelValue"])
|
|
1569
1599
|
]),
|
|
@@ -1571,12 +1601,12 @@ const el = {
|
|
|
1571
1601
|
}, 8, ["modelValue"])
|
|
1572
1602
|
]),
|
|
1573
1603
|
_: 1
|
|
1574
|
-
}, 16, ["modelValue", "class", "clearable", "rules"])) :
|
|
1604
|
+
}, 16, ["modelValue", "class", "clearable", "rules"])) : H("", !0);
|
|
1575
1605
|
};
|
|
1576
1606
|
}
|
|
1577
|
-
}),
|
|
1607
|
+
}), cl = /* @__PURE__ */ K({
|
|
1578
1608
|
__name: "df-datetime",
|
|
1579
|
-
props: /* @__PURE__ */
|
|
1609
|
+
props: /* @__PURE__ */ ae({
|
|
1580
1610
|
inputType: {},
|
|
1581
1611
|
displayFormatDate: {},
|
|
1582
1612
|
displayFormatTime: {},
|
|
@@ -1595,157 +1625,157 @@ const el = {
|
|
|
1595
1625
|
passthroughAttrs: {},
|
|
1596
1626
|
density: {},
|
|
1597
1627
|
variant: {}
|
|
1598
|
-
},
|
|
1628
|
+
}, O(B({}, re), {
|
|
1599
1629
|
inputType: "datetime",
|
|
1600
1630
|
displayFormatDate: "P",
|
|
1601
1631
|
displayFormatTime: "p"
|
|
1602
1632
|
})),
|
|
1603
1633
|
emits: ["update:modelValue", "click:clear"],
|
|
1604
1634
|
setup(e, { emit: t }) {
|
|
1605
|
-
const n = e, l = t, a =
|
|
1606
|
-
var
|
|
1607
|
-
return (
|
|
1608
|
-
}),
|
|
1609
|
-
var
|
|
1610
|
-
return (
|
|
1611
|
-
}), { 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({
|
|
1612
1642
|
get() {
|
|
1613
|
-
return o(
|
|
1643
|
+
return o(p) === "date";
|
|
1614
1644
|
},
|
|
1615
|
-
set(
|
|
1616
|
-
|
|
1645
|
+
set(v) {
|
|
1646
|
+
p.value = v ? "date" : "";
|
|
1617
1647
|
}
|
|
1618
|
-
}),
|
|
1648
|
+
}), D = b({
|
|
1619
1649
|
get() {
|
|
1620
|
-
return o(
|
|
1650
|
+
return o(p) === "time";
|
|
1621
1651
|
},
|
|
1622
|
-
set(
|
|
1623
|
-
|
|
1652
|
+
set(v) {
|
|
1653
|
+
p.value = v ? "time" : "";
|
|
1624
1654
|
}
|
|
1625
|
-
}),
|
|
1626
|
-
function
|
|
1627
|
-
if (
|
|
1628
|
-
|
|
1629
|
-
else if (
|
|
1630
|
-
if (o(
|
|
1631
|
-
|
|
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);
|
|
1632
1662
|
else {
|
|
1633
|
-
const
|
|
1634
|
-
|
|
1663
|
+
const M = S(new Date(v));
|
|
1664
|
+
P(M, 0), P(M, 1);
|
|
1635
1665
|
}
|
|
1636
1666
|
else {
|
|
1637
|
-
|
|
1638
|
-
const
|
|
1639
|
-
|
|
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");
|
|
1640
1670
|
}
|
|
1641
1671
|
}
|
|
1642
|
-
|
|
1643
|
-
const
|
|
1672
|
+
ce(i, (v) => P(v, -1), { immediate: !0 });
|
|
1673
|
+
const U = b({
|
|
1644
1674
|
get() {
|
|
1645
|
-
const
|
|
1646
|
-
if (
|
|
1647
|
-
const
|
|
1648
|
-
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;
|
|
1649
1679
|
},
|
|
1650
|
-
set(
|
|
1651
|
-
|
|
1680
|
+
set(v) {
|
|
1681
|
+
P(S(v), 0);
|
|
1652
1682
|
}
|
|
1653
|
-
}),
|
|
1683
|
+
}), A = b({
|
|
1654
1684
|
get() {
|
|
1655
|
-
const
|
|
1656
|
-
return
|
|
1685
|
+
const v = o(d);
|
|
1686
|
+
return v == null ? "" : v.split(/[TZ]/g)[1].split(".")[0];
|
|
1657
1687
|
},
|
|
1658
|
-
set(
|
|
1659
|
-
|
|
1688
|
+
set(v) {
|
|
1689
|
+
P(`T${v}`, 1);
|
|
1660
1690
|
}
|
|
1661
|
-
}),
|
|
1691
|
+
}), W = b({
|
|
1662
1692
|
get() {
|
|
1663
|
-
const
|
|
1664
|
-
return
|
|
1693
|
+
const v = o(U);
|
|
1694
|
+
return v == null ? "" : we(v, o(V), { locale: a.value });
|
|
1665
1695
|
},
|
|
1666
|
-
set(
|
|
1696
|
+
set(v) {
|
|
1667
1697
|
try {
|
|
1668
|
-
const
|
|
1669
|
-
|
|
1670
|
-
} catch (
|
|
1671
|
-
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);
|
|
1672
1702
|
}
|
|
1673
1703
|
}
|
|
1674
|
-
}),
|
|
1704
|
+
}), $ = b({
|
|
1675
1705
|
get() {
|
|
1676
|
-
const
|
|
1677
|
-
return
|
|
1706
|
+
const v = o(U);
|
|
1707
|
+
return v == null ? "" : we(v, o(x), { locale: a.value });
|
|
1678
1708
|
},
|
|
1679
|
-
set(
|
|
1680
|
-
const
|
|
1681
|
-
if (
|
|
1682
|
-
let
|
|
1683
|
-
const
|
|
1684
|
-
|
|
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));
|
|
1685
1715
|
}
|
|
1686
1716
|
});
|
|
1687
|
-
return (
|
|
1688
|
-
const
|
|
1689
|
-
return C(),
|
|
1690
|
-
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),
|
|
1691
1721
|
clearable: e.clearable,
|
|
1692
|
-
"onClick:clear":
|
|
1693
|
-
onBlur:
|
|
1722
|
+
"onClick:clear": m[14] || (m[14] = (ne) => i.value = null),
|
|
1723
|
+
onBlur: m[15] || (m[15] = (ne) => g.value = !0)
|
|
1694
1724
|
}), {
|
|
1695
|
-
default:
|
|
1696
|
-
|
|
1697
|
-
class:
|
|
1725
|
+
default: y((ne) => [
|
|
1726
|
+
me("div", {
|
|
1727
|
+
class: le([
|
|
1698
1728
|
"d-flex",
|
|
1699
1729
|
"w-100",
|
|
1700
|
-
["plain", "underlined"].includes(o(
|
|
1730
|
+
["plain", "underlined"].includes(o(f).variant) ? void 0 : "ml-4",
|
|
1701
1731
|
"df-input-wrapper",
|
|
1702
|
-
|
|
1732
|
+
o(s)
|
|
1703
1733
|
])
|
|
1704
1734
|
}, [
|
|
1705
|
-
["date", "datetime"].includes(o(
|
|
1735
|
+
["date", "datetime"].includes(o(u)) ? (C(), R(X, z({
|
|
1706
1736
|
key: 0,
|
|
1707
|
-
modelValue:
|
|
1708
|
-
"onUpdate:modelValue":
|
|
1737
|
+
modelValue: W.value,
|
|
1738
|
+
"onUpdate:modelValue": m[4] || (m[4] = (T) => W.value = T),
|
|
1709
1739
|
style: { "flex-grow": "4" },
|
|
1710
1740
|
density: "compact",
|
|
1711
1741
|
variant: "plain",
|
|
1712
1742
|
clearable: !1,
|
|
1713
1743
|
"hide-details": !0,
|
|
1714
|
-
readonly: o(
|
|
1715
|
-
disabled: o(
|
|
1716
|
-
name: `${o(
|
|
1717
|
-
placeholder: o(
|
|
1744
|
+
readonly: o(f).readonly,
|
|
1745
|
+
disabled: o(f).disabled,
|
|
1746
|
+
name: `${o(f).name}-date`,
|
|
1747
|
+
placeholder: o(f).placeholder
|
|
1718
1748
|
}, e.passthroughAttrs, {
|
|
1719
|
-
onClick:
|
|
1720
|
-
onKeydown:
|
|
1721
|
-
onFocus: (T) =>
|
|
1722
|
-
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()
|
|
1723
1753
|
}), {
|
|
1724
|
-
default:
|
|
1725
|
-
|
|
1726
|
-
modelValue:
|
|
1727
|
-
"onUpdate:modelValue":
|
|
1754
|
+
default: y(() => [
|
|
1755
|
+
I(j, {
|
|
1756
|
+
modelValue: k.value,
|
|
1757
|
+
"onUpdate:modelValue": m[3] || (m[3] = (T) => k.value = T),
|
|
1728
1758
|
"close-on-content-click": !1,
|
|
1729
1759
|
activator: "parent"
|
|
1730
1760
|
}, {
|
|
1731
|
-
default:
|
|
1732
|
-
|
|
1733
|
-
modelValue:
|
|
1734
|
-
"onUpdate:modelValue":
|
|
1735
|
-
onCancel:
|
|
1736
|
-
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 = "")
|
|
1737
1767
|
}, {
|
|
1738
|
-
default:
|
|
1739
|
-
|
|
1768
|
+
default: y(({ model: T, actions: he }) => [
|
|
1769
|
+
I(M, {
|
|
1740
1770
|
modelValue: T.value,
|
|
1741
|
-
"onUpdate:modelValue": (
|
|
1771
|
+
"onUpdate:modelValue": (be) => T.value = be,
|
|
1742
1772
|
"hide-header": !0,
|
|
1743
|
-
"first-day-of-week":
|
|
1773
|
+
"first-day-of-week": r.value,
|
|
1744
1774
|
"show-adjacent-months": !0,
|
|
1745
1775
|
"show-week": !0
|
|
1746
1776
|
}, {
|
|
1747
|
-
actions:
|
|
1748
|
-
(C(),
|
|
1777
|
+
actions: y(() => [
|
|
1778
|
+
(C(), R(Te(he)))
|
|
1749
1779
|
]),
|
|
1750
1780
|
_: 2
|
|
1751
1781
|
}, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
|
|
@@ -1757,49 +1787,49 @@ const el = {
|
|
|
1757
1787
|
}, 8, ["modelValue"])
|
|
1758
1788
|
]),
|
|
1759
1789
|
_: 1
|
|
1760
|
-
}, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) :
|
|
1761
|
-
["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({
|
|
1762
1792
|
key: 1,
|
|
1763
|
-
modelValue:
|
|
1764
|
-
"onUpdate:modelValue":
|
|
1793
|
+
modelValue: $.value,
|
|
1794
|
+
"onUpdate:modelValue": m[11] || (m[11] = (T) => $.value = T),
|
|
1765
1795
|
style: { "flex-grow": "3" },
|
|
1766
1796
|
density: "compact",
|
|
1767
1797
|
variant: "plain",
|
|
1768
1798
|
clearable: !1,
|
|
1769
1799
|
"hide-details": !0,
|
|
1770
|
-
readonly: o(
|
|
1771
|
-
disabled: o(
|
|
1772
|
-
name: `${o(
|
|
1773
|
-
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
|
|
1774
1804
|
}, e.passthroughAttrs, {
|
|
1775
|
-
onClick:
|
|
1776
|
-
onKeydown:
|
|
1777
|
-
onFocus: (T) =>
|
|
1778
|
-
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()
|
|
1779
1809
|
}), {
|
|
1780
|
-
default:
|
|
1781
|
-
|
|
1782
|
-
modelValue:
|
|
1783
|
-
"onUpdate:modelValue":
|
|
1810
|
+
default: y(() => [
|
|
1811
|
+
I(j, {
|
|
1812
|
+
modelValue: D.value,
|
|
1813
|
+
"onUpdate:modelValue": m[10] || (m[10] = (T) => D.value = T),
|
|
1784
1814
|
"close-on-content-click": !1,
|
|
1785
1815
|
activator: "parent"
|
|
1786
1816
|
}, {
|
|
1787
|
-
default:
|
|
1788
|
-
|
|
1789
|
-
modelValue:
|
|
1790
|
-
"onUpdate:modelValue":
|
|
1791
|
-
onCancel:
|
|
1792
|
-
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 = "")
|
|
1793
1823
|
}, {
|
|
1794
|
-
default:
|
|
1795
|
-
|
|
1824
|
+
default: y(({ model: T, actions: he }) => [
|
|
1825
|
+
I(G, {
|
|
1796
1826
|
modelValue: T.value,
|
|
1797
|
-
"onUpdate:modelValue": (
|
|
1827
|
+
"onUpdate:modelValue": (be) => T.value = be,
|
|
1798
1828
|
"hide-header": !0,
|
|
1799
1829
|
format: "24hr"
|
|
1800
1830
|
}, {
|
|
1801
|
-
actions:
|
|
1802
|
-
(C(),
|
|
1831
|
+
actions: y(() => [
|
|
1832
|
+
(C(), R(Te(he)))
|
|
1803
1833
|
]),
|
|
1804
1834
|
_: 2
|
|
1805
1835
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1811,16 +1841,16 @@ const el = {
|
|
|
1811
1841
|
}, 8, ["modelValue"])
|
|
1812
1842
|
]),
|
|
1813
1843
|
_: 1
|
|
1814
|
-
}, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) :
|
|
1844
|
+
}, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : H("", !0)
|
|
1815
1845
|
], 2)
|
|
1816
1846
|
]),
|
|
1817
1847
|
_: 1
|
|
1818
1848
|
}, 16, ["class", "clearable"]);
|
|
1819
1849
|
};
|
|
1820
1850
|
}
|
|
1821
|
-
}),
|
|
1851
|
+
}), dl = /* @__PURE__ */ K({
|
|
1822
1852
|
__name: "df-file",
|
|
1823
|
-
props: /* @__PURE__ */
|
|
1853
|
+
props: /* @__PURE__ */ ae({
|
|
1824
1854
|
comms: {},
|
|
1825
1855
|
control: {},
|
|
1826
1856
|
modelValue: {},
|
|
@@ -1836,82 +1866,82 @@ const el = {
|
|
|
1836
1866
|
passthroughAttrs: {},
|
|
1837
1867
|
density: {},
|
|
1838
1868
|
variant: {}
|
|
1839
|
-
},
|
|
1869
|
+
}, re),
|
|
1840
1870
|
emits: ["update:modelValue", "click:clear"],
|
|
1841
1871
|
setup(e, { emit: t }) {
|
|
1842
|
-
const n = e, l = t, {
|
|
1843
|
-
function
|
|
1844
|
-
|
|
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);
|
|
1845
1875
|
}
|
|
1846
|
-
function
|
|
1847
|
-
|
|
1848
|
-
|
|
1876
|
+
function S() {
|
|
1877
|
+
D(), i.value = window.setInterval(() => {
|
|
1878
|
+
c.value && n.comms.touch(c.value);
|
|
1849
1879
|
}, 60 * 1e3);
|
|
1850
1880
|
}
|
|
1851
|
-
|
|
1852
|
-
|
|
1881
|
+
at(() => D()), ce(c, (A) => {
|
|
1882
|
+
A ? S() : D();
|
|
1853
1883
|
});
|
|
1854
|
-
function
|
|
1855
|
-
return
|
|
1856
|
-
|
|
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();
|
|
1857
1887
|
});
|
|
1858
1888
|
}
|
|
1859
|
-
function
|
|
1860
|
-
return
|
|
1861
|
-
|
|
1889
|
+
function P(A) {
|
|
1890
|
+
return _e(this, null, function* () {
|
|
1891
|
+
u.value = -1, f.value = A;
|
|
1862
1892
|
try {
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
}),
|
|
1866
|
-
} catch (
|
|
1867
|
-
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;
|
|
1868
1898
|
}
|
|
1869
1899
|
});
|
|
1870
1900
|
}
|
|
1871
|
-
function
|
|
1872
|
-
|
|
1901
|
+
function U(A) {
|
|
1902
|
+
A && (Array.isArray(A) ? console.error("Uploading multiple files not supported right now") : P(A));
|
|
1873
1903
|
}
|
|
1874
|
-
return (
|
|
1875
|
-
const
|
|
1876
|
-
return C(),
|
|
1877
|
-
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),
|
|
1878
1908
|
clearable: "",
|
|
1879
|
-
"onClick:clear":
|
|
1880
|
-
onBlur:
|
|
1909
|
+
"onClick:clear": d,
|
|
1910
|
+
onBlur: W[1] || (W[1] = (m) => s.value = !0)
|
|
1881
1911
|
}), {
|
|
1882
|
-
"prepend-inner":
|
|
1883
|
-
|
|
1912
|
+
"prepend-inner": y(() => [
|
|
1913
|
+
I(o(xe), { name: "mdi-paperclip" })
|
|
1884
1914
|
]),
|
|
1885
|
-
loader:
|
|
1886
|
-
|
|
1915
|
+
loader: y(() => [
|
|
1916
|
+
f.value && u.value < 100 ? (C(), R($, {
|
|
1887
1917
|
key: 0,
|
|
1888
|
-
"model-value":
|
|
1889
|
-
indeterminate:
|
|
1890
|
-
}, null, 8, ["model-value", "indeterminate"])) :
|
|
1918
|
+
"model-value": u.value,
|
|
1919
|
+
indeterminate: u.value === -1
|
|
1920
|
+
}, null, 8, ["model-value", "indeterminate"])) : H("", !0)
|
|
1891
1921
|
]),
|
|
1892
|
-
default:
|
|
1893
|
-
|
|
1894
|
-
class:
|
|
1922
|
+
default: y((m) => [
|
|
1923
|
+
me("div", {
|
|
1924
|
+
class: le(["d-flex w-100 position-relative df-input-wrapper", o(a)])
|
|
1895
1925
|
}, [
|
|
1896
|
-
|
|
1897
|
-
modelValue:
|
|
1898
|
-
"onUpdate:modelValue":
|
|
1899
|
-
label:
|
|
1926
|
+
I(v, z({
|
|
1927
|
+
modelValue: x.value,
|
|
1928
|
+
"onUpdate:modelValue": W[0] || (W[0] = (M) => x.value = M),
|
|
1929
|
+
label: k.value,
|
|
1900
1930
|
density: "compact",
|
|
1901
1931
|
variant: "plain",
|
|
1902
|
-
readonly: o(
|
|
1903
|
-
disabled: o(
|
|
1904
|
-
name: o(
|
|
1932
|
+
readonly: o(g).readonly,
|
|
1933
|
+
disabled: o(g).disabled,
|
|
1934
|
+
name: o(g).name,
|
|
1905
1935
|
"hide-details": !0,
|
|
1906
1936
|
"show-size": !0,
|
|
1907
1937
|
multiple: !1,
|
|
1908
|
-
style:
|
|
1938
|
+
style: f.value && u.value < 100 ? "visibility: hidden" : "",
|
|
1909
1939
|
clearable: !1
|
|
1910
1940
|
}, e.passthroughAttrs, {
|
|
1911
1941
|
"prepend-icon": "",
|
|
1912
|
-
"onUpdate:modelValue":
|
|
1913
|
-
onFocus: (
|
|
1914
|
-
onBlur: (
|
|
1942
|
+
"onUpdate:modelValue": U,
|
|
1943
|
+
onFocus: (M) => m.focus(),
|
|
1944
|
+
onBlur: (M) => m.blur()
|
|
1915
1945
|
}), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
|
|
1916
1946
|
], 2)
|
|
1917
1947
|
]),
|
|
@@ -1919,9 +1949,9 @@ const el = {
|
|
|
1919
1949
|
}, 16, ["class"]);
|
|
1920
1950
|
};
|
|
1921
1951
|
}
|
|
1922
|
-
}),
|
|
1952
|
+
}), ml = /* @__PURE__ */ K({
|
|
1923
1953
|
__name: "df-input",
|
|
1924
|
-
props: /* @__PURE__ */
|
|
1954
|
+
props: /* @__PURE__ */ ae({
|
|
1925
1955
|
inputType: {},
|
|
1926
1956
|
precision: {},
|
|
1927
1957
|
step: {},
|
|
@@ -1941,7 +1971,7 @@ const el = {
|
|
|
1941
1971
|
passthroughAttrs: {},
|
|
1942
1972
|
density: {},
|
|
1943
1973
|
variant: {}
|
|
1944
|
-
},
|
|
1974
|
+
}, O(B({}, re), {
|
|
1945
1975
|
inputType: "text",
|
|
1946
1976
|
precision: null,
|
|
1947
1977
|
step: void 0,
|
|
@@ -1950,64 +1980,64 @@ const el = {
|
|
|
1950
1980
|
})),
|
|
1951
1981
|
emits: ["update:modelValue", "click:clear"],
|
|
1952
1982
|
setup(e, { emit: t }) {
|
|
1953
|
-
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(
|
|
1954
1984
|
n,
|
|
1955
1985
|
l
|
|
1956
|
-
), { inputType:
|
|
1957
|
-
() =>
|
|
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) } : {}
|
|
1958
1988
|
);
|
|
1959
|
-
return (
|
|
1960
|
-
const
|
|
1961
|
-
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", {
|
|
1962
1992
|
key: 0,
|
|
1963
|
-
class:
|
|
1993
|
+
class: le(["df-input-container", [o(a), o(f)]])
|
|
1964
1994
|
}, [
|
|
1965
|
-
|
|
1995
|
+
S.value ? (C(), R(W, z({
|
|
1966
1996
|
key: 1,
|
|
1967
|
-
modelValue: o(
|
|
1968
|
-
"onUpdate:modelValue":
|
|
1997
|
+
modelValue: o(i),
|
|
1998
|
+
"onUpdate:modelValue": U[2] || (U[2] = ($) => de(i) ? i.value = $ : null),
|
|
1969
1999
|
density: "compact",
|
|
1970
2000
|
"control-variant": "stacked"
|
|
1971
|
-
},
|
|
1972
|
-
label:
|
|
1973
|
-
|
|
1974
|
-
data:
|
|
1975
|
-
label: o(
|
|
2001
|
+
}, B(B({}, o(u)), d.value)), {
|
|
2002
|
+
label: y(($) => [
|
|
2003
|
+
I(o(fe), {
|
|
2004
|
+
data: $,
|
|
2005
|
+
label: o(s)
|
|
1976
2006
|
}, null, 8, ["data", "label"])
|
|
1977
2007
|
]),
|
|
1978
|
-
message:
|
|
1979
|
-
|
|
1980
|
-
message:
|
|
1981
|
-
errors: o(
|
|
2008
|
+
message: y(({ message: $ }) => [
|
|
2009
|
+
I(o(oe), {
|
|
2010
|
+
message: $,
|
|
2011
|
+
errors: o(c)
|
|
1982
2012
|
}, null, 8, ["message", "errors"])
|
|
1983
2013
|
]),
|
|
1984
2014
|
_: 1
|
|
1985
|
-
}, 16, ["modelValue"])) : (C(), A
|
|
2015
|
+
}, 16, ["modelValue"])) : (C(), R(A, z({
|
|
1986
2016
|
key: 0,
|
|
1987
|
-
modelValue: o(
|
|
1988
|
-
"onUpdate:modelValue":
|
|
1989
|
-
type: o(
|
|
1990
|
-
}, o(
|
|
1991
|
-
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)
|
|
1992
2022
|
}), {
|
|
1993
|
-
label:
|
|
1994
|
-
|
|
1995
|
-
data:
|
|
1996
|
-
label: o(
|
|
2023
|
+
label: y(($) => [
|
|
2024
|
+
I(o(fe), {
|
|
2025
|
+
data: $,
|
|
2026
|
+
label: o(s)
|
|
1997
2027
|
}, null, 8, ["data", "label"])
|
|
1998
2028
|
]),
|
|
1999
|
-
message:
|
|
2000
|
-
|
|
2001
|
-
message:
|
|
2002
|
-
errors: o(
|
|
2029
|
+
message: y(({ message: $ }) => [
|
|
2030
|
+
I(o(oe), {
|
|
2031
|
+
message: $,
|
|
2032
|
+
errors: o(c)
|
|
2003
2033
|
}, null, 8, ["message", "errors"])
|
|
2004
2034
|
]),
|
|
2005
2035
|
_: 1
|
|
2006
2036
|
}, 16, ["modelValue", "type"]))
|
|
2007
|
-
], 2)) :
|
|
2037
|
+
], 2)) : H("", !0);
|
|
2008
2038
|
};
|
|
2009
2039
|
}
|
|
2010
|
-
}),
|
|
2040
|
+
}), fl = { class: "editor-container" }, vl = { class: "editor-container__editor" }, pl = { ref: "editorElement" }, hl = /* @__PURE__ */ K({
|
|
2011
2041
|
__name: "ck-editor-custom",
|
|
2012
2042
|
props: {
|
|
2013
2043
|
modelValue: { default: "" },
|
|
@@ -2016,10 +2046,10 @@ const el = {
|
|
|
2016
2046
|
},
|
|
2017
2047
|
emits: ["update:modelValue"],
|
|
2018
2048
|
setup(e, { expose: t, emit: n }) {
|
|
2019
|
-
|
|
2020
|
-
v32dcdf6e:
|
|
2049
|
+
St((u) => ({
|
|
2050
|
+
v32dcdf6e: u.minHeight
|
|
2021
2051
|
}));
|
|
2022
|
-
const l = n, a =
|
|
2052
|
+
const l = n, a = F(!1), r = En, s = {
|
|
2023
2053
|
items: [
|
|
2024
2054
|
"undo",
|
|
2025
2055
|
"redo",
|
|
@@ -2048,12 +2078,7 @@ const el = {
|
|
|
2048
2078
|
"accessibilityHelp"
|
|
2049
2079
|
],
|
|
2050
2080
|
shouldNotGroupWhenFull: !1
|
|
2051
|
-
},
|
|
2052
|
-
Rt,
|
|
2053
|
-
Ut,
|
|
2054
|
-
Wt,
|
|
2055
|
-
Ht,
|
|
2056
|
-
Ot,
|
|
2081
|
+
}, c = [
|
|
2057
2082
|
zt,
|
|
2058
2083
|
Kt,
|
|
2059
2084
|
Xt,
|
|
@@ -2076,8 +2101,8 @@ const el = {
|
|
|
2076
2101
|
dn,
|
|
2077
2102
|
mn,
|
|
2078
2103
|
fn,
|
|
2079
|
-
pn,
|
|
2080
2104
|
vn,
|
|
2105
|
+
pn,
|
|
2081
2106
|
hn,
|
|
2082
2107
|
bn,
|
|
2083
2108
|
gn,
|
|
@@ -2089,23 +2114,28 @@ const el = {
|
|
|
2089
2114
|
jn,
|
|
2090
2115
|
Tn,
|
|
2091
2116
|
xn,
|
|
2092
|
-
_n
|
|
2093
|
-
|
|
2117
|
+
_n,
|
|
2118
|
+
Bn,
|
|
2119
|
+
Dn,
|
|
2120
|
+
In,
|
|
2121
|
+
Sn,
|
|
2122
|
+
Pn
|
|
2123
|
+
], g = {
|
|
2094
2124
|
options: [
|
|
2095
|
-
{ model: "paragraph", title:
|
|
2096
|
-
{ model: "heading1", view: "h1", title:
|
|
2097
|
-
{ model: "heading2", view: "h2", title:
|
|
2098
|
-
{ model: "heading3", view: "h3", title:
|
|
2099
|
-
{ model: "heading4", view: "h4", title:
|
|
2100
|
-
{ model: "heading5", view: "h5", title:
|
|
2101
|
-
{ 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" }
|
|
2102
2132
|
]
|
|
2103
|
-
},
|
|
2104
|
-
language:
|
|
2105
|
-
toolbar:
|
|
2106
|
-
plugins:
|
|
2133
|
+
}, i = {
|
|
2134
|
+
language: De.language,
|
|
2135
|
+
toolbar: s,
|
|
2136
|
+
plugins: c,
|
|
2107
2137
|
balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
|
|
2108
|
-
heading:
|
|
2138
|
+
heading: g,
|
|
2109
2139
|
htmlSupport: {
|
|
2110
2140
|
allow: [{ name: /^.*$/, styles: !0, attributes: !0, classes: !0 }]
|
|
2111
2141
|
},
|
|
@@ -2128,7 +2158,7 @@ const el = {
|
|
|
2128
2158
|
decorators: {
|
|
2129
2159
|
toggleDownloadable: {
|
|
2130
2160
|
mode: "manual",
|
|
2131
|
-
label:
|
|
2161
|
+
label: L.Downloadable,
|
|
2132
2162
|
attributes: { download: "file" }
|
|
2133
2163
|
}
|
|
2134
2164
|
}
|
|
@@ -2136,48 +2166,48 @@ const el = {
|
|
|
2136
2166
|
placeholder: "",
|
|
2137
2167
|
style: {
|
|
2138
2168
|
definitions: [
|
|
2139
|
-
{ name:
|
|
2140
|
-
{ name:
|
|
2141
|
-
{ name:
|
|
2142
|
-
{ name:
|
|
2143
|
-
{ name:
|
|
2144
|
-
{ name:
|
|
2145
|
-
{ name:
|
|
2146
|
-
{ name:
|
|
2147
|
-
{ 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"] }
|
|
2148
2178
|
]
|
|
2149
2179
|
},
|
|
2150
2180
|
table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] },
|
|
2151
|
-
translations:
|
|
2181
|
+
translations: De.translations
|
|
2152
2182
|
};
|
|
2153
|
-
|
|
2183
|
+
lt(() => {
|
|
2154
2184
|
a.value = !0;
|
|
2155
2185
|
});
|
|
2156
|
-
const
|
|
2186
|
+
const f = (u) => {
|
|
2157
2187
|
};
|
|
2158
|
-
return t({ onEditorReady:
|
|
2159
|
-
const
|
|
2160
|
-
return C(),
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
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, {
|
|
2164
2194
|
key: 0,
|
|
2165
2195
|
"model-value": e.modelValue,
|
|
2166
|
-
editor: o(
|
|
2167
|
-
config:
|
|
2196
|
+
editor: o(r),
|
|
2197
|
+
config: i,
|
|
2168
2198
|
disabled: e.disabled,
|
|
2169
|
-
style:
|
|
2170
|
-
onReady:
|
|
2171
|
-
"onUpdate:modelValue":
|
|
2172
|
-
}, 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)
|
|
2173
2203
|
], 512)
|
|
2174
2204
|
])
|
|
2175
2205
|
]);
|
|
2176
2206
|
};
|
|
2177
2207
|
}
|
|
2178
|
-
}),
|
|
2208
|
+
}), bl = /* @__PURE__ */ K({
|
|
2179
2209
|
__name: "df-rtf-editor",
|
|
2180
|
-
props: /* @__PURE__ */
|
|
2210
|
+
props: /* @__PURE__ */ ae({
|
|
2181
2211
|
minHeight: {},
|
|
2182
2212
|
control: {},
|
|
2183
2213
|
modelValue: {},
|
|
@@ -2193,64 +2223,64 @@ const el = {
|
|
|
2193
2223
|
passthroughAttrs: {},
|
|
2194
2224
|
density: {},
|
|
2195
2225
|
variant: {}
|
|
2196
|
-
},
|
|
2226
|
+
}, O(B({}, re), { minHeight: void 0 })),
|
|
2197
2227
|
emits: ["update:modelValue", "click:clear"],
|
|
2198
2228
|
setup(e, { emit: t }) {
|
|
2199
|
-
const n = e, l = t, { densityClass: a, value:
|
|
2200
|
-
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, {
|
|
2201
2231
|
class: ["ck-editor-custom", o(a)]
|
|
2202
2232
|
}), {
|
|
2203
|
-
default:
|
|
2204
|
-
|
|
2233
|
+
default: y((i) => [
|
|
2234
|
+
I(hl, z({
|
|
2205
2235
|
ref: "$editor",
|
|
2206
|
-
modelValue: o(
|
|
2207
|
-
"onUpdate:modelValue":
|
|
2236
|
+
modelValue: o(r),
|
|
2237
|
+
"onUpdate:modelValue": g[0] || (g[0] = (f) => de(r) ? r.value = f : null),
|
|
2208
2238
|
class: { "mt-6": !!e.label },
|
|
2209
2239
|
"min-height": e.minHeight,
|
|
2210
|
-
disabled: o(
|
|
2240
|
+
disabled: o(s).disabled
|
|
2211
2241
|
}, e.passthroughAttrs, {
|
|
2212
|
-
onFocusin: (
|
|
2213
|
-
onFocusout: (
|
|
2242
|
+
onFocusin: (f) => i.focus(),
|
|
2243
|
+
onFocusout: (f) => i.blur()
|
|
2214
2244
|
}), null, 16, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
|
|
2215
2245
|
]),
|
|
2216
2246
|
_: 1
|
|
2217
2247
|
}, 16, ["class"]));
|
|
2218
2248
|
}
|
|
2219
2249
|
});
|
|
2220
|
-
function
|
|
2250
|
+
function gl(e) {
|
|
2221
2251
|
return e.map((t) => ({ value: t.id, title: t.text, icon: t.icon }));
|
|
2222
2252
|
}
|
|
2223
|
-
function
|
|
2253
|
+
function ee(e, t) {
|
|
2224
2254
|
var n;
|
|
2225
|
-
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;
|
|
2226
2256
|
}
|
|
2227
|
-
function
|
|
2257
|
+
function Ie(e, t) {
|
|
2228
2258
|
if (t == null) return [];
|
|
2229
|
-
const n =
|
|
2259
|
+
const n = it(t);
|
|
2230
2260
|
return e.filter((l) => n.some((a) => a === l.id));
|
|
2231
2261
|
}
|
|
2232
|
-
function
|
|
2233
|
-
var
|
|
2234
|
-
const
|
|
2235
|
-
if (
|
|
2262
|
+
function Ce(e, t, n, l, a) {
|
|
2263
|
+
var s;
|
|
2264
|
+
const r = ee(e, n);
|
|
2265
|
+
if (r == null) {
|
|
2236
2266
|
t.value = n ? [] : null;
|
|
2237
2267
|
return;
|
|
2238
2268
|
}
|
|
2239
2269
|
if (n)
|
|
2240
|
-
l ? t.value =
|
|
2270
|
+
l ? t.value = r : t.value = Ie(a, r).map((c) => c.id);
|
|
2241
2271
|
else if (l)
|
|
2242
|
-
t.value =
|
|
2272
|
+
t.value = r;
|
|
2243
2273
|
else {
|
|
2244
|
-
const
|
|
2245
|
-
t.value = (
|
|
2274
|
+
const c = st(Ie(a, r));
|
|
2275
|
+
t.value = (s = c == null ? void 0 : c.id) != null ? s : null;
|
|
2246
2276
|
}
|
|
2247
2277
|
}
|
|
2248
|
-
const
|
|
2278
|
+
const yl = {
|
|
2249
2279
|
key: 0,
|
|
2250
2280
|
class: "me-1"
|
|
2251
|
-
},
|
|
2281
|
+
}, wl = /* @__PURE__ */ K({
|
|
2252
2282
|
__name: "df-select",
|
|
2253
|
-
props: /* @__PURE__ */
|
|
2283
|
+
props: /* @__PURE__ */ ae({
|
|
2254
2284
|
choices: {},
|
|
2255
2285
|
multiple: { type: Boolean },
|
|
2256
2286
|
allowTags: { type: Boolean },
|
|
@@ -2270,7 +2300,7 @@ const pl = {
|
|
|
2270
2300
|
passthroughAttrs: {},
|
|
2271
2301
|
density: {},
|
|
2272
2302
|
variant: {}
|
|
2273
|
-
},
|
|
2303
|
+
}, O(B({}, re), {
|
|
2274
2304
|
choices: void 0,
|
|
2275
2305
|
multiple: !1,
|
|
2276
2306
|
allowTags: !1,
|
|
@@ -2279,222 +2309,234 @@ const pl = {
|
|
|
2279
2309
|
})),
|
|
2280
2310
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
2281
2311
|
setup(e, { emit: t }) {
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
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));
|
|
2295
2326
|
}
|
|
2296
|
-
const
|
|
2297
|
-
function
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
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
|
+
}
|
|
2301
2343
|
}
|
|
2302
|
-
function
|
|
2303
|
-
if (!
|
|
2304
|
-
const _ =
|
|
2305
|
-
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);
|
|
2306
2348
|
}
|
|
2307
|
-
function
|
|
2308
|
-
var
|
|
2309
|
-
if (a.value &&
|
|
2310
|
-
const _ =
|
|
2311
|
-
let
|
|
2312
|
-
|
|
2313
|
-
|
|
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);
|
|
2314
2356
|
});
|
|
2315
|
-
const
|
|
2316
|
-
|
|
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;
|
|
2317
2359
|
} else
|
|
2318
|
-
|
|
2360
|
+
M.value = !1;
|
|
2319
2361
|
}
|
|
2320
|
-
function
|
|
2321
|
-
const _ =
|
|
2322
|
-
_ 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());
|
|
2323
2365
|
}
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
(
|
|
2327
|
-
|
|
2328
|
-
const _ =
|
|
2329
|
-
|
|
2366
|
+
ce(
|
|
2367
|
+
d,
|
|
2368
|
+
(w) => {
|
|
2369
|
+
S.value.readonly || Le(() => {
|
|
2370
|
+
const _ = ee(w, a.value);
|
|
2371
|
+
h(_), X(_);
|
|
2330
2372
|
});
|
|
2331
2373
|
},
|
|
2332
2374
|
{ deep: !0 }
|
|
2333
|
-
),
|
|
2334
|
-
|
|
2335
|
-
(
|
|
2336
|
-
if (!
|
|
2337
|
-
const _ =
|
|
2338
|
-
|
|
2375
|
+
), ce(
|
|
2376
|
+
k,
|
|
2377
|
+
(w) => {
|
|
2378
|
+
if (!j.value) {
|
|
2379
|
+
const _ = ee(w, a.value);
|
|
2380
|
+
Ce(_, d, a.value, !1, A.value);
|
|
2339
2381
|
}
|
|
2340
2382
|
},
|
|
2341
2383
|
{ deep: !0 }
|
|
2342
|
-
),
|
|
2343
|
-
|
|
2384
|
+
), ce(j, () => {
|
|
2385
|
+
j.value || ne();
|
|
2344
2386
|
});
|
|
2345
|
-
function
|
|
2346
|
-
|
|
2387
|
+
function he() {
|
|
2388
|
+
v.value != null && v.value.length > 0 && (v.value = null, Pe());
|
|
2347
2389
|
}
|
|
2348
|
-
function
|
|
2349
|
-
if (
|
|
2350
|
-
const
|
|
2351
|
-
|
|
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);
|
|
2352
2394
|
}
|
|
2353
|
-
function
|
|
2354
|
-
if (
|
|
2355
|
-
|
|
2395
|
+
function vt(w, _) {
|
|
2396
|
+
if (w.stopPropagation(), S.value.readonly || r.value) {
|
|
2397
|
+
r.value && (d.value = d.value.filter((Q) => Q !== _));
|
|
2356
2398
|
return;
|
|
2357
2399
|
}
|
|
2358
|
-
let
|
|
2359
|
-
a.value && Array.isArray(
|
|
2360
|
-
|
|
2400
|
+
let q;
|
|
2401
|
+
a.value && Array.isArray(d.value) ? q = ee(
|
|
2402
|
+
d.value.filter((Q) => Q !== _),
|
|
2361
2403
|
a.value
|
|
2362
|
-
) :
|
|
2404
|
+
) : q = null, Ce(q, d, a.value, !1, A.value), X(q);
|
|
2363
2405
|
}
|
|
2364
|
-
function
|
|
2365
|
-
return
|
|
2366
|
-
if (
|
|
2367
|
-
const
|
|
2368
|
-
|
|
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;
|
|
2369
2411
|
try {
|
|
2370
|
-
const
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
),
|
|
2374
|
-
if (
|
|
2375
|
-
|
|
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;
|
|
2376
2418
|
} finally {
|
|
2377
|
-
|
|
2419
|
+
W.value = !1;
|
|
2378
2420
|
}
|
|
2379
2421
|
});
|
|
2380
2422
|
}
|
|
2381
|
-
function
|
|
2382
|
-
let
|
|
2383
|
-
!
|
|
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);
|
|
2384
2426
|
}
|
|
2385
|
-
return
|
|
2386
|
-
|
|
2387
|
-
}), (
|
|
2388
|
-
const
|
|
2389
|
-
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({
|
|
2390
2432
|
key: 0,
|
|
2391
2433
|
ref_key: "dfSelectRef",
|
|
2392
|
-
ref:
|
|
2393
|
-
modelValue:
|
|
2394
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
2395
|
-
class: [o(
|
|
2396
|
-
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,
|
|
2397
2439
|
"return-object": !1,
|
|
2398
2440
|
chips: "",
|
|
2399
2441
|
"auto-select-first": !0,
|
|
2400
|
-
"closable-chips": o(
|
|
2401
|
-
clearable: o(
|
|
2442
|
+
"closable-chips": o(s) || o(a) && d.value.length > 1,
|
|
2443
|
+
clearable: o(s),
|
|
2402
2444
|
multiple: o(a),
|
|
2403
|
-
loading:
|
|
2445
|
+
loading: W.value,
|
|
2404
2446
|
"hide-selected": !1,
|
|
2405
|
-
"aria-describedby": o(
|
|
2447
|
+
"aria-describedby": o(S).helpText ? `${o(S).name}-help` : null,
|
|
2406
2448
|
"menu-props": { maxHeight: "400" },
|
|
2407
|
-
search:
|
|
2408
|
-
}, o(
|
|
2409
|
-
"onUpdate:search": _[1] || (_[1] = (
|
|
2410
|
-
"onUpdate:modelValue":
|
|
2411
|
-
"onClick:clear": _[2] || (_[2] = (
|
|
2412
|
-
onBlur: _[3] || (_[3] = (
|
|
2413
|
-
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))
|
|
2414
2456
|
}), Ne({
|
|
2415
|
-
chip:
|
|
2416
|
-
(C(),
|
|
2417
|
-
key:
|
|
2457
|
+
chip: y(({ item: E }) => [
|
|
2458
|
+
(C(), R(q, {
|
|
2459
|
+
key: E.value,
|
|
2418
2460
|
label: "",
|
|
2419
2461
|
size: "small",
|
|
2420
2462
|
class: "d-flex align-middle",
|
|
2421
2463
|
variant: o(a) ? "tonal" : "text",
|
|
2422
2464
|
closable: o(a),
|
|
2423
|
-
"onClick:close": (
|
|
2465
|
+
"onClick:close": (Z) => vt(Z, E.value)
|
|
2424
2466
|
}, {
|
|
2425
|
-
prepend:
|
|
2426
|
-
var
|
|
2467
|
+
prepend: y(() => {
|
|
2468
|
+
var Z;
|
|
2427
2469
|
return [
|
|
2428
|
-
(
|
|
2470
|
+
(Z = E.raw) != null && Z.icon ? (C(), R(o(xe), {
|
|
2429
2471
|
key: 0,
|
|
2430
2472
|
class: "me-1",
|
|
2431
|
-
name:
|
|
2432
|
-
}, null, 8, ["name"])) :
|
|
2473
|
+
name: E.raw.icon
|
|
2474
|
+
}, null, 8, ["name"])) : H("", !0)
|
|
2433
2475
|
];
|
|
2434
2476
|
}),
|
|
2435
|
-
default:
|
|
2436
|
-
|
|
2437
|
-
class:
|
|
2438
|
-
},
|
|
2477
|
+
default: y(() => [
|
|
2478
|
+
me("span", {
|
|
2479
|
+
class: le({ "text-body-1": !o(a) })
|
|
2480
|
+
}, Ue(E.title), 3)
|
|
2439
2481
|
]),
|
|
2440
2482
|
_: 2
|
|
2441
2483
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
2442
2484
|
]),
|
|
2443
|
-
label:
|
|
2444
|
-
|
|
2445
|
-
data:
|
|
2446
|
-
label: o(
|
|
2485
|
+
label: y((E) => [
|
|
2486
|
+
I(o(fe), {
|
|
2487
|
+
data: E,
|
|
2488
|
+
label: o(V)
|
|
2447
2489
|
}, null, 8, ["data", "label"])
|
|
2448
2490
|
]),
|
|
2449
|
-
item:
|
|
2450
|
-
|
|
2451
|
-
prepend:
|
|
2452
|
-
var
|
|
2491
|
+
item: y(({ props: E, item: Z }) => [
|
|
2492
|
+
I(Q, ie(se(E)), {
|
|
2493
|
+
prepend: y(() => {
|
|
2494
|
+
var ge;
|
|
2453
2495
|
return [
|
|
2454
|
-
(
|
|
2455
|
-
|
|
2496
|
+
(ge = Z.raw) != null && ge.icon ? (C(), Y("span", yl, [
|
|
2497
|
+
I(o(xe), {
|
|
2456
2498
|
class: "action-icon",
|
|
2457
|
-
name:
|
|
2499
|
+
name: Z.raw.icon
|
|
2458
2500
|
}, null, 8, ["name"])
|
|
2459
|
-
])) :
|
|
2501
|
+
])) : H("", !0)
|
|
2460
2502
|
];
|
|
2461
2503
|
}),
|
|
2462
2504
|
_: 2
|
|
2463
2505
|
}, 1040)
|
|
2464
2506
|
]),
|
|
2465
|
-
message:
|
|
2466
|
-
|
|
2467
|
-
message:
|
|
2468
|
-
errors: o(
|
|
2507
|
+
message: y(({ message: E }) => [
|
|
2508
|
+
I(o(oe), {
|
|
2509
|
+
message: E,
|
|
2510
|
+
errors: o(x)
|
|
2469
2511
|
}, null, 8, ["message", "errors"])
|
|
2470
2512
|
]),
|
|
2471
2513
|
_: 2
|
|
2472
2514
|
}, [
|
|
2473
|
-
|
|
2515
|
+
w.$slots["append-inner"] ? {
|
|
2474
2516
|
name: "append-inner",
|
|
2475
|
-
fn:
|
|
2476
|
-
|
|
2517
|
+
fn: y((E) => [
|
|
2518
|
+
pe(w.$slots, "append-inner", ie(se(E)), void 0, !0)
|
|
2477
2519
|
]),
|
|
2478
2520
|
key: "0"
|
|
2479
2521
|
} : void 0,
|
|
2480
|
-
|
|
2522
|
+
w.$slots["prepend-inner"] ? {
|
|
2481
2523
|
name: "prepend-inner",
|
|
2482
|
-
fn:
|
|
2483
|
-
|
|
2524
|
+
fn: y((E) => [
|
|
2525
|
+
pe(w.$slots, "prepend-inner", ie(se(E)), void 0, !0)
|
|
2484
2526
|
]),
|
|
2485
2527
|
key: "1"
|
|
2486
2528
|
} : void 0
|
|
2487
|
-
]), 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);
|
|
2488
2530
|
};
|
|
2489
2531
|
}
|
|
2490
|
-
}),
|
|
2532
|
+
}), kl = (e, t) => {
|
|
2491
2533
|
const n = e.__vccOpts || e;
|
|
2492
2534
|
for (const [l, a] of t)
|
|
2493
2535
|
n[l] = a;
|
|
2494
2536
|
return n;
|
|
2495
|
-
},
|
|
2537
|
+
}, Vl = /* @__PURE__ */ kl(wl, [["__scopeId", "data-v-7e5aa3b6"]]), Cl = /* @__PURE__ */ K({
|
|
2496
2538
|
__name: "df-text-area",
|
|
2497
|
-
props: /* @__PURE__ */
|
|
2539
|
+
props: /* @__PURE__ */ ae({
|
|
2498
2540
|
rows: {},
|
|
2499
2541
|
maxRows: {},
|
|
2500
2542
|
control: {},
|
|
@@ -2511,128 +2553,128 @@ const pl = {
|
|
|
2511
2553
|
passthroughAttrs: {},
|
|
2512
2554
|
density: {},
|
|
2513
2555
|
variant: {}
|
|
2514
|
-
},
|
|
2556
|
+
}, O(B({}, re), {
|
|
2515
2557
|
rows: void 0,
|
|
2516
2558
|
maxRows: void 0
|
|
2517
2559
|
})),
|
|
2518
2560
|
emits: ["update:modelValue", "click:clear"],
|
|
2519
2561
|
setup(e, { emit: t }) {
|
|
2520
|
-
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(
|
|
2521
2563
|
n,
|
|
2522
2564
|
l
|
|
2523
|
-
), { cssClass:
|
|
2524
|
-
return (
|
|
2525
|
-
const
|
|
2526
|
-
return o(
|
|
2565
|
+
), { cssClass: V } = Se(n);
|
|
2566
|
+
return (x, p) => {
|
|
2567
|
+
const k = N("v-textarea");
|
|
2568
|
+
return o(r) ? (C(), Y("div", {
|
|
2527
2569
|
key: 0,
|
|
2528
|
-
class:
|
|
2570
|
+
class: le(["df-textarea-container", [o(a), o(f)]])
|
|
2529
2571
|
}, [
|
|
2530
|
-
|
|
2531
|
-
modelValue: o(
|
|
2532
|
-
"onUpdate:modelValue":
|
|
2533
|
-
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),
|
|
2534
2576
|
rows: e.rows,
|
|
2535
2577
|
"auto-grow": (e.maxRows || 0) > 0,
|
|
2536
2578
|
"max-rows": e.maxRows
|
|
2537
|
-
}, o(
|
|
2538
|
-
onBlur:
|
|
2579
|
+
}, o(u), {
|
|
2580
|
+
onBlur: p[1] || (p[1] = (D) => g.value = !0)
|
|
2539
2581
|
}), {
|
|
2540
|
-
label:
|
|
2541
|
-
|
|
2542
|
-
data:
|
|
2543
|
-
label: o(
|
|
2582
|
+
label: y((D) => [
|
|
2583
|
+
I(o(fe), {
|
|
2584
|
+
data: D,
|
|
2585
|
+
label: o(s)
|
|
2544
2586
|
}, null, 8, ["data", "label"])
|
|
2545
2587
|
]),
|
|
2546
|
-
message:
|
|
2547
|
-
|
|
2548
|
-
message:
|
|
2549
|
-
errors: o(
|
|
2588
|
+
message: y(({ message: D }) => [
|
|
2589
|
+
I(o(oe), {
|
|
2590
|
+
message: D,
|
|
2591
|
+
errors: o(c)
|
|
2550
2592
|
}, null, 8, ["message", "errors"])
|
|
2551
2593
|
]),
|
|
2552
2594
|
_: 1
|
|
2553
2595
|
}, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])
|
|
2554
|
-
], 2)) :
|
|
2596
|
+
], 2)) : H("", !0);
|
|
2555
2597
|
};
|
|
2556
2598
|
}
|
|
2557
|
-
}),
|
|
2599
|
+
}), jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2558
2600
|
__proto__: null,
|
|
2559
|
-
DfActions:
|
|
2560
|
-
DfCheckbox:
|
|
2561
|
-
DfColor:
|
|
2562
|
-
DfDateTime:
|
|
2563
|
-
DfFile:
|
|
2564
|
-
DfInput:
|
|
2565
|
-
DfInputHint:
|
|
2566
|
-
DfRtfEditor:
|
|
2567
|
-
DfSelect:
|
|
2568
|
-
DfTextArea:
|
|
2569
|
-
}, 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({
|
|
2570
2612
|
__proto__: null,
|
|
2571
|
-
VAutocomplete:
|
|
2572
|
-
VBtn:
|
|
2573
|
-
VCheckbox:
|
|
2574
|
-
VChip:
|
|
2575
|
-
VCol:
|
|
2576
|
-
VColorPicker:
|
|
2577
|
-
VCombobox:
|
|
2578
|
-
VConfirmEdit:
|
|
2579
|
-
VDatePicker:
|
|
2580
|
-
VField:
|
|
2581
|
-
VFileInput:
|
|
2582
|
-
VIcon:
|
|
2583
|
-
VImg:
|
|
2584
|
-
VInput:
|
|
2585
|
-
VListItem:
|
|
2586
|
-
VMenu:
|
|
2587
|
-
VNumberInput:
|
|
2588
|
-
VProgressLinear:
|
|
2589
|
-
VRow:
|
|
2590
|
-
VSelect:
|
|
2591
|
-
VSwitch:
|
|
2592
|
-
VTextField:
|
|
2593
|
-
VTextarea:
|
|
2594
|
-
VTimePicker:
|
|
2595
|
-
}, 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({
|
|
2596
2638
|
__proto__: null
|
|
2597
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2639
|
+
}, Symbol.toStringTag, { value: "Module" })), ia = {
|
|
2598
2640
|
install: (e, t) => {
|
|
2599
2641
|
var n, l;
|
|
2600
|
-
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));
|
|
2601
2643
|
}
|
|
2602
2644
|
};
|
|
2603
2645
|
export {
|
|
2604
|
-
|
|
2605
|
-
|
|
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
|
-
|
|
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
|
|
2637
2679
|
};
|
|
2638
2680
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|