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