@dynamicforms/vuetify-inputs 0.9.0 → 0.9.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.
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var wt = Object.defineProperty, kt = Object.defineProperties;
|
|
2
|
+
var Ct = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Xe = Object.getOwnPropertySymbols;
|
|
4
|
-
var Vt = Object.prototype.hasOwnProperty,
|
|
5
|
-
var Ee = (e, t, n) => t in e ?
|
|
4
|
+
var Vt = Object.prototype.hasOwnProperty, jt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ee = (e, t, n) => t in e ? wt(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
7
|
Vt.call(t, n) && Ee(e, n, t[n]);
|
|
8
8
|
if (Xe)
|
|
9
9
|
for (var n of Xe(t))
|
|
10
|
-
|
|
10
|
+
jt.call(t, n) && Ee(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, W = (e, t) => kt(e, Ct(t));
|
|
13
13
|
var ye = (e, t, n) => Ee(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
14
|
var _e = (e, t, n) => new Promise((l, a) => {
|
|
15
15
|
var r = (g) => {
|
|
@@ -28,43 +28,43 @@ var _e = (e, t, n) => new Promise((l, a) => {
|
|
|
28
28
|
c((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as qe from "vue";
|
|
31
|
-
import { defineComponent as K, useModel as
|
|
32
|
-
import { debounce as
|
|
33
|
-
import ve, { MessagesWidget as
|
|
31
|
+
import { defineComponent as K, useModel as Tt, ref as F, watch as ue, onMounted as lt, markRaw as xt, onBeforeUnmount as at, openBlock as V, createBlock as R, resolveDynamicComponent as je, mergeModels as Ge, version as _t, isRef as ce, computed as b, unref as o, resolveComponent as N, createElementBlock as Y, normalizeClass as le, Fragment as Re, createCommentVNode as H, createTextVNode as Bt, toDisplayString as Ue, inject as Ae, shallowRef as Dt, toRaw as Ye, nextTick as Le, createSlots as Ne, withCtx as y, createVNode as I, renderSlot as pe, normalizeProps as ie, guardReactiveProps as se, createElementVNode as de, renderList as It, mergeProps as z, withModifiers as St, mergeDefaults as ae, normalizeStyle as rt, toRefs as Se, withKeys as Qe, useCssVars as Pt } from "vue";
|
|
32
|
+
import { debounce as Et, isString as me, isEmpty as Te, isPlainObject as At, isObjectLike as $t, isBoolean as Ze, clone as Mt, toNumber as Je, isNaN as et, isArray as tt, castArray as it, first as st, isEqual as Ft, unionBy as Rt } from "lodash-es";
|
|
33
|
+
import ve, { MessagesWidget as Lt, MdString as Nt, ValidationErrorRenderContent as Ut, Action as Ot, DisplayMode as $e } from "@dynamicforms/vue-forms";
|
|
34
34
|
import { CachedIcon as xe } from "vue-cached-icon";
|
|
35
35
|
import Wt from "vue-markdown-render";
|
|
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
|
|
36
|
+
import { useDisplay as Ht } from "vuetify";
|
|
37
|
+
import { parse as zt, format as we } from "date-fns";
|
|
38
|
+
import { AccessibilityHelp as Kt, Alignment as Xt, AutoImage as qt, AutoLink as Gt, Autosave as Yt, BalloonToolbar as Qt, BlockQuote as Zt, Bold as Jt, CloudServices as en, Essentials as tn, GeneralHtmlSupport as nn, Heading as on, HorizontalLine as ln, ImageBlock as an, ImageCaption as rn, ImageInline as sn, ImageInsertViaUrl as un, ImageResize as cn, ImageStyle as dn, ImageToolbar as mn, ImageUpload as fn, Indent as vn, IndentBlock as pn, Italic as hn, Link as bn, List as gn, Autoformat as yn, MediaEmbed as wn, Paragraph as kn, PasteFromMarkdownExperimental as Cn, PasteFromOffice as Vn, SelectAll as jn, Style as Tn, Table as xn, TableCellProperties as _n, TableColumnResize as Bn, TableProperties as Dn, TableToolbar as In, Undo as Sn, TextTransformation as Pn, Base64UploadAdapter as En, ClassicEditor as An } from "ckeditor5";
|
|
39
|
+
import { VAutocomplete as $n } from "vuetify/components/VAutocomplete";
|
|
40
|
+
import { VBtn as Mn } from "vuetify/components/VBtn";
|
|
41
|
+
import { VCheckbox as Fn } from "vuetify/components/VCheckbox";
|
|
42
|
+
import { VChip as Rn } from "vuetify/components/VChip";
|
|
43
|
+
import { VCombobox as Ln } from "vuetify/components/VCombobox";
|
|
44
|
+
import { VColorPicker as Nn } from "vuetify/components/VColorPicker";
|
|
45
|
+
import { VConfirmEdit as Un } from "vuetify/components/VConfirmEdit";
|
|
46
|
+
import { VDatePicker as On } from "vuetify/components/VDatePicker";
|
|
47
47
|
import { VField as Wn } from "vuetify/components/VField";
|
|
48
|
-
import { VFileInput as
|
|
49
|
-
import { VCol as
|
|
50
|
-
import { VIcon as
|
|
51
|
-
import { VImg as
|
|
52
|
-
import { VInput as
|
|
53
|
-
import { VListItem as
|
|
54
|
-
import { VMenu as
|
|
55
|
-
import { VNumberInput as
|
|
56
|
-
import { VProgressLinear as
|
|
57
|
-
import { VSelect as
|
|
58
|
-
import { VSwitch as
|
|
59
|
-
import { VTextarea as
|
|
60
|
-
import { VTextField as
|
|
61
|
-
import { VTimePicker as
|
|
48
|
+
import { VFileInput as Hn } from "vuetify/components/VFileInput";
|
|
49
|
+
import { VCol as zn, VRow as Kn } from "vuetify/components/VGrid";
|
|
50
|
+
import { VIcon as Xn } from "vuetify/components/VIcon";
|
|
51
|
+
import { VImg as qn } from "vuetify/components/VImg";
|
|
52
|
+
import { VInput as Gn } from "vuetify/components/VInput";
|
|
53
|
+
import { VListItem as Yn } from "vuetify/components/VList";
|
|
54
|
+
import { VMenu as Qn } from "vuetify/components/VMenu";
|
|
55
|
+
import { VNumberInput as Zn } from "vuetify/components/VNumberInput";
|
|
56
|
+
import { VProgressLinear as Jn } from "vuetify/components/VProgressLinear";
|
|
57
|
+
import { VSelect as eo } from "vuetify/components/VSelect";
|
|
58
|
+
import { VSwitch as to } from "vuetify/components/VSwitch";
|
|
59
|
+
import { VTextarea as no } from "vuetify/components/VTextarea";
|
|
60
|
+
import { VTextField as oo } from "vuetify/components/VTextField";
|
|
61
|
+
import { VTimePicker as lo } from "vuetify/components/VTimePicker";
|
|
62
62
|
new Array(256).fill("").map((e, t) => ("0" + t.toString(16)).slice(-2));
|
|
63
|
-
function
|
|
63
|
+
function Oe(e) {
|
|
64
64
|
return !!e && /^\d+\.\d+\.\d+/.test(e);
|
|
65
65
|
}
|
|
66
66
|
function ut(e) {
|
|
67
|
-
if (!
|
|
67
|
+
if (!Oe(e))
|
|
68
68
|
throw new Error(`Invalid semantic version: ${e || "<blank>"}.`);
|
|
69
69
|
const [t, n, l] = e.split(".");
|
|
70
70
|
return {
|
|
@@ -73,23 +73,23 @@ function ut(e) {
|
|
|
73
73
|
patch: Number.parseInt(l, 10)
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function We(e) {
|
|
77
77
|
return e ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((t) => e.includes(t)) : !1;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function ao(e) {
|
|
80
|
+
return Oe(e) || We(e);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function ro(e, t) {
|
|
83
83
|
const n = e.extraPlugins || [];
|
|
84
|
-
return
|
|
84
|
+
return W(B({}, e), {
|
|
85
85
|
extraPlugins: [
|
|
86
86
|
...n,
|
|
87
87
|
...t.filter((l) => !n.includes(l))
|
|
88
88
|
]
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
if (
|
|
91
|
+
function io(e) {
|
|
92
|
+
if (We(e))
|
|
93
93
|
return 3;
|
|
94
94
|
const { major: t } = ut(e);
|
|
95
95
|
switch (!0) {
|
|
@@ -103,17 +103,17 @@ function ro(e) {
|
|
|
103
103
|
}
|
|
104
104
|
function ct() {
|
|
105
105
|
const { CKEDITOR_VERSION: e, CKEDITOR: t } = window;
|
|
106
|
-
return
|
|
106
|
+
return ao(e) ? {
|
|
107
107
|
source: t ? "cdn" : "npm",
|
|
108
108
|
version: e
|
|
109
109
|
} : null;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function so() {
|
|
112
112
|
const e = ct();
|
|
113
|
-
return e ?
|
|
113
|
+
return e ? io(e.version) : null;
|
|
114
114
|
}
|
|
115
115
|
function dt(e, t) {
|
|
116
|
-
switch (t || (t =
|
|
116
|
+
switch (t || (t = so() || void 0), t) {
|
|
117
117
|
case 1:
|
|
118
118
|
case 2:
|
|
119
119
|
return e === void 0;
|
|
@@ -123,55 +123,55 @@ function dt(e, t) {
|
|
|
123
123
|
return !1;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function uo(e, t) {
|
|
127
127
|
return function(l) {
|
|
128
128
|
dt(l.config.get("licenseKey")) || l.on("collectUsageData", (a, { setUsageData: r }) => {
|
|
129
129
|
r(`integration.${e}`, t);
|
|
130
130
|
});
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const co = uo(
|
|
134
134
|
"vue",
|
|
135
135
|
{
|
|
136
136
|
version: "7.4.0",
|
|
137
|
-
frameworkVersion:
|
|
137
|
+
frameworkVersion: _t
|
|
138
138
|
}
|
|
139
139
|
);
|
|
140
|
-
function
|
|
141
|
-
return dt(e.licenseKey) ? e :
|
|
140
|
+
function mo(e) {
|
|
141
|
+
return dt(e.licenseKey) ? e : ro(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
|
+
co
|
|
148
148
|
]);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function fo(e, t) {
|
|
151
151
|
var n;
|
|
152
152
|
if (mt()) {
|
|
153
|
-
const l =
|
|
154
|
-
roots:
|
|
155
|
-
main:
|
|
153
|
+
const l = W(B({}, e), {
|
|
154
|
+
roots: W(B({}, e.roots), {
|
|
155
|
+
main: W(B(B({}, e.root), (n = e.roots) == null ? void 0 : n.main), {
|
|
156
156
|
initialData: t
|
|
157
157
|
})
|
|
158
158
|
})
|
|
159
159
|
});
|
|
160
160
|
return delete l.root, delete l.initialData, l;
|
|
161
161
|
}
|
|
162
|
-
return
|
|
162
|
+
return W(B({}, e), {
|
|
163
163
|
initialData: t
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function vo(e) {
|
|
167
167
|
var t, n;
|
|
168
168
|
return mt() ? (n = (t = e.roots) == null ? void 0 : t.main) == null ? void 0 : n.initialData : e.initialData;
|
|
169
169
|
}
|
|
170
170
|
function mt() {
|
|
171
171
|
const e = ct();
|
|
172
|
-
return e ? !
|
|
172
|
+
return e ? !Oe(e.version) || We(e.version) || ut(e.version).major >= 48 : !1;
|
|
173
173
|
}
|
|
174
|
-
const Me = "Lock from Vue integration (@ckeditor/ckeditor5-vue)",
|
|
174
|
+
const Me = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", po = 300, ho = /* @__PURE__ */ K({
|
|
175
175
|
name: "CKEditor",
|
|
176
176
|
__name: "ckeditor",
|
|
177
177
|
props: /* @__PURE__ */ Ge({
|
|
@@ -186,47 +186,47 @@ const Me = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", vo = 300, po =
|
|
|
186
186
|
}),
|
|
187
187
|
emits: /* @__PURE__ */ Ge(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
|
|
188
188
|
setup(e, { expose: t, emit: n }) {
|
|
189
|
-
const l =
|
|
189
|
+
const l = Tt(e, "modelValue"), a = e, r = n, s = F(), c = F(), g = F();
|
|
190
190
|
t({
|
|
191
191
|
instance: c,
|
|
192
192
|
lastEditorData: g
|
|
193
|
-
}),
|
|
193
|
+
}), ue(l, (u) => {
|
|
194
194
|
c.value && u !== g.value && c.value.data.set(u);
|
|
195
|
-
}),
|
|
195
|
+
}), ue(() => a.disabled, (u) => {
|
|
196
196
|
u ? c.value.enableReadOnlyMode(Me) : c.value.disableReadOnlyMode(Me);
|
|
197
197
|
});
|
|
198
198
|
function i() {
|
|
199
199
|
const u = window.CKEDITOR_VERSION;
|
|
200
200
|
if (!u)
|
|
201
201
|
return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
|
|
202
|
-
const [
|
|
203
|
-
|
|
202
|
+
const [C] = u.split(".").map(Number);
|
|
203
|
+
C >= 42 || u.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
204
204
|
}
|
|
205
205
|
function f(u) {
|
|
206
|
-
const
|
|
206
|
+
const C = Et((x) => {
|
|
207
207
|
if (a.disableTwoWayDataBinding)
|
|
208
208
|
return;
|
|
209
209
|
const p = g.value = u.data.get();
|
|
210
210
|
r("update:modelValue", p, x, u), r("input", p, x, u);
|
|
211
|
-
},
|
|
212
|
-
u.model.document.on("change:data",
|
|
211
|
+
}, po, { leading: !0 });
|
|
212
|
+
u.model.document.on("change:data", C), u.editing.view.document.on("focus", (x) => {
|
|
213
213
|
r("focus", x, u);
|
|
214
214
|
}), u.editing.view.document.on("blur", (x) => {
|
|
215
215
|
r("blur", x, u);
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
return i(), lt(() => {
|
|
219
|
-
let u =
|
|
219
|
+
let u = mo(
|
|
220
220
|
Object.assign({}, a.config)
|
|
221
221
|
);
|
|
222
|
-
l.value && (u =
|
|
223
|
-
c.value =
|
|
224
|
-
}).catch((
|
|
225
|
-
console.error(
|
|
222
|
+
l.value && (u = fo(u, l.value)), a.editor.create(s.value, u).then((C) => {
|
|
223
|
+
c.value = xt(C), f(C), l.value !== vo(u) && C.data.set(l.value), a.disabled && C.enableReadOnlyMode(Me), r("ready", C);
|
|
224
|
+
}).catch((C) => {
|
|
225
|
+
console.error(C);
|
|
226
226
|
});
|
|
227
227
|
}), at(() => {
|
|
228
228
|
c.value && (c.value.destroy(), c.value = void 0), r("destroy");
|
|
229
|
-
}), (u,
|
|
229
|
+
}), (u, C) => (V(), R(je(e.tagName), {
|
|
230
230
|
ref_key: "element",
|
|
231
231
|
ref: s
|
|
232
232
|
}, null, 512));
|
|
@@ -236,20 +236,20 @@ if (!qe.version || !qe.version.startsWith("3."))
|
|
|
236
236
|
throw new Error(
|
|
237
237
|
"The CKEditor plugin works only with Vue 3+. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v3.html"
|
|
238
238
|
);
|
|
239
|
-
const
|
|
239
|
+
const bo = {
|
|
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", ho);
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
function
|
|
249
|
+
function go(e) {
|
|
250
250
|
return e.one !== void 0;
|
|
251
251
|
}
|
|
252
|
-
const
|
|
252
|
+
const yo = {
|
|
253
253
|
lessThanXSeconds: {
|
|
254
254
|
present: {
|
|
255
255
|
one: "manj kot {{count}} sekunda",
|
|
@@ -526,7 +526,7 @@ const go = {
|
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
|
-
function
|
|
529
|
+
function wo(e) {
|
|
530
530
|
switch (e % 100) {
|
|
531
531
|
case 1:
|
|
532
532
|
return "one";
|
|
@@ -539,15 +539,15 @@ function yo(e) {
|
|
|
539
539
|
return "other";
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
const
|
|
542
|
+
const ko = (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 r =
|
|
545
|
+
const r = yo[e];
|
|
546
546
|
if (typeof r == "string")
|
|
547
547
|
l += r;
|
|
548
548
|
else {
|
|
549
|
-
const s =
|
|
550
|
-
|
|
549
|
+
const s = wo(t);
|
|
550
|
+
go(r) ? l += r[s].replace("{{count}}", String(t)) : l += r[a][s].replace("{{count}}", String(t));
|
|
551
551
|
}
|
|
552
552
|
return l;
|
|
553
553
|
};
|
|
@@ -557,7 +557,7 @@ function Fe(e) {
|
|
|
557
557
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
558
558
|
};
|
|
559
559
|
}
|
|
560
|
-
const
|
|
560
|
+
const Co = {
|
|
561
561
|
full: "EEEE, dd. MMMM y",
|
|
562
562
|
long: "dd. MMMM y",
|
|
563
563
|
medium: "d. MMM y",
|
|
@@ -567,14 +567,14 @@ const ko = {
|
|
|
567
567
|
long: "HH:mm:ss z",
|
|
568
568
|
medium: "HH:mm:ss",
|
|
569
569
|
short: "HH:mm"
|
|
570
|
-
},
|
|
570
|
+
}, jo = {
|
|
571
571
|
full: "{{date}} {{time}}",
|
|
572
572
|
long: "{{date}} {{time}}",
|
|
573
573
|
medium: "{{date}} {{time}}",
|
|
574
574
|
short: "{{date}} {{time}}"
|
|
575
|
-
},
|
|
575
|
+
}, To = {
|
|
576
576
|
date: Fe({
|
|
577
|
-
formats:
|
|
577
|
+
formats: Co,
|
|
578
578
|
defaultWidth: "full"
|
|
579
579
|
}),
|
|
580
580
|
time: Fe({
|
|
@@ -582,10 +582,10 @@ const ko = {
|
|
|
582
582
|
defaultWidth: "full"
|
|
583
583
|
}),
|
|
584
584
|
dateTime: Fe({
|
|
585
|
-
formats:
|
|
585
|
+
formats: jo,
|
|
586
586
|
defaultWidth: "full"
|
|
587
587
|
})
|
|
588
|
-
},
|
|
588
|
+
}, xo = {
|
|
589
589
|
lastWeek: (e) => {
|
|
590
590
|
switch (e.getDay()) {
|
|
591
591
|
case 0:
|
|
@@ -614,8 +614,8 @@ const ko = {
|
|
|
614
614
|
}
|
|
615
615
|
},
|
|
616
616
|
other: "P"
|
|
617
|
-
},
|
|
618
|
-
const a =
|
|
617
|
+
}, _o = (e, t, n, l) => {
|
|
618
|
+
const a = xo[e];
|
|
619
619
|
return typeof a == "function" ? a(t) : a;
|
|
620
620
|
};
|
|
621
621
|
function ke(e) {
|
|
@@ -633,15 +633,15 @@ function ke(e) {
|
|
|
633
633
|
return a[r];
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
const
|
|
636
|
+
const Bo = {
|
|
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
|
+
}, Do = {
|
|
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
|
+
}, Io = {
|
|
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 _o = {
|
|
|
671
671
|
"november",
|
|
672
672
|
"december"
|
|
673
673
|
]
|
|
674
|
-
},
|
|
674
|
+
}, So = {
|
|
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 _o = {
|
|
|
684
684
|
"petek",
|
|
685
685
|
"sobota"
|
|
686
686
|
]
|
|
687
|
-
},
|
|
687
|
+
}, Po = {
|
|
688
688
|
narrow: {
|
|
689
689
|
am: "d",
|
|
690
690
|
pm: "p",
|
|
@@ -715,7 +715,7 @@ const _o = {
|
|
|
715
715
|
evening: "večer",
|
|
716
716
|
night: "noč"
|
|
717
717
|
}
|
|
718
|
-
},
|
|
718
|
+
}, Eo = {
|
|
719
719
|
narrow: {
|
|
720
720
|
am: "d",
|
|
721
721
|
pm: "p",
|
|
@@ -746,40 +746,40 @@ const _o = {
|
|
|
746
746
|
evening: "zvečer",
|
|
747
747
|
night: "ponoči"
|
|
748
748
|
}
|
|
749
|
-
},
|
|
750
|
-
ordinalNumber:
|
|
749
|
+
}, Ao = (e, t) => Number(e) + ".", $o = {
|
|
750
|
+
ordinalNumber: Ao,
|
|
751
751
|
era: ke({
|
|
752
|
-
values:
|
|
752
|
+
values: Bo,
|
|
753
753
|
defaultWidth: "wide"
|
|
754
754
|
}),
|
|
755
755
|
quarter: ke({
|
|
756
|
-
values:
|
|
756
|
+
values: Do,
|
|
757
757
|
defaultWidth: "wide",
|
|
758
758
|
argumentCallback: (e) => e - 1
|
|
759
759
|
}),
|
|
760
760
|
month: ke({
|
|
761
|
-
values:
|
|
761
|
+
values: Io,
|
|
762
762
|
defaultWidth: "wide"
|
|
763
763
|
}),
|
|
764
764
|
day: ke({
|
|
765
|
-
values:
|
|
765
|
+
values: So,
|
|
766
766
|
defaultWidth: "wide"
|
|
767
767
|
}),
|
|
768
768
|
dayPeriod: ke({
|
|
769
|
-
values:
|
|
769
|
+
values: Po,
|
|
770
770
|
defaultWidth: "wide",
|
|
771
|
-
formattingValues:
|
|
771
|
+
formattingValues: Eo,
|
|
772
772
|
defaultFormattingWidth: "wide"
|
|
773
773
|
})
|
|
774
774
|
};
|
|
775
|
-
function
|
|
775
|
+
function Ce(e) {
|
|
776
776
|
return (t, n = {}) => {
|
|
777
777
|
const l = n.width, a = l && e.matchPatterns[l] || e.matchPatterns[e.defaultMatchWidth], r = t.match(a);
|
|
778
778
|
if (!r)
|
|
779
779
|
return null;
|
|
780
|
-
const s = r[0], c = l && e.parsePatterns[l] || e.parsePatterns[e.defaultParseWidth], g = Array.isArray(c) ?
|
|
780
|
+
const s = r[0], c = l && e.parsePatterns[l] || e.parsePatterns[e.defaultParseWidth], g = Array.isArray(c) ? Fo(c, (u) => u.test(s)) : (
|
|
781
781
|
// [TODO] -- I challenge you to fix the type
|
|
782
|
-
|
|
782
|
+
Mo(c, (u) => u.test(s))
|
|
783
783
|
);
|
|
784
784
|
let i;
|
|
785
785
|
i = e.valueCallback ? e.valueCallback(g) : g, i = n.valueCallback ? (
|
|
@@ -790,17 +790,17 @@ function Ve(e) {
|
|
|
790
790
|
return { value: i, rest: f };
|
|
791
791
|
};
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function Mo(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 Fo(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 Ro(e) {
|
|
804
804
|
return (t, n = {}) => {
|
|
805
805
|
const l = t.match(e.matchPattern);
|
|
806
806
|
if (!l) return null;
|
|
@@ -812,22 +812,22 @@ function Fo(e) {
|
|
|
812
812
|
return { value: s, rest: c };
|
|
813
813
|
};
|
|
814
814
|
}
|
|
815
|
-
const
|
|
815
|
+
const Lo = /^(\d+)\./i, No = /\d+/i, Uo = {
|
|
816
816
|
abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
|
|
817
817
|
wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
|
|
818
|
-
},
|
|
818
|
+
}, Oo = {
|
|
819
819
|
any: [/^pr/i, /^(po|na[sš]em)/i]
|
|
820
820
|
}, Wo = {
|
|
821
821
|
narrow: /^[1234]/i,
|
|
822
822
|
abbreviated: /^[1234]\.\s?[čc]et\.?/i,
|
|
823
823
|
wide: /^[1234]\. [čc]etrtletje/i
|
|
824
|
-
}, Oo = {
|
|
825
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
826
824
|
}, Ho = {
|
|
825
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
826
|
+
}, zo = {
|
|
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
|
+
}, Ko = {
|
|
831
831
|
narrow: [
|
|
832
832
|
/^j/i,
|
|
833
833
|
/^f/i,
|
|
@@ -870,18 +870,18 @@ const Ro = /^(\d+)\./i, Lo = /\d+/i, No = {
|
|
|
870
870
|
/^n/i,
|
|
871
871
|
/^d/i
|
|
872
872
|
]
|
|
873
|
-
},
|
|
873
|
+
}, Xo = {
|
|
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
|
+
}, qo = {
|
|
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
|
+
}, Go = {
|
|
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
|
+
}, Yo = {
|
|
885
885
|
narrow: {
|
|
886
886
|
am: /^d/i,
|
|
887
887
|
pm: /^p/i,
|
|
@@ -902,58 +902,58 @@ const Ro = /^(\d+)\./i, Lo = /\d+/i, No = {
|
|
|
902
902
|
evening: /^z?ve/i,
|
|
903
903
|
night: /(po)?no/i
|
|
904
904
|
}
|
|
905
|
-
},
|
|
906
|
-
ordinalNumber:
|
|
907
|
-
matchPattern:
|
|
908
|
-
parsePattern:
|
|
905
|
+
}, Qo = {
|
|
906
|
+
ordinalNumber: Ro({
|
|
907
|
+
matchPattern: Lo,
|
|
908
|
+
parsePattern: No,
|
|
909
909
|
valueCallback: (e) => parseInt(e, 10)
|
|
910
910
|
}),
|
|
911
|
-
era:
|
|
912
|
-
matchPatterns:
|
|
911
|
+
era: Ce({
|
|
912
|
+
matchPatterns: Uo,
|
|
913
913
|
defaultMatchWidth: "wide",
|
|
914
|
-
parsePatterns:
|
|
914
|
+
parsePatterns: Oo,
|
|
915
915
|
defaultParseWidth: "any"
|
|
916
916
|
}),
|
|
917
|
-
quarter:
|
|
917
|
+
quarter: Ce({
|
|
918
918
|
matchPatterns: Wo,
|
|
919
919
|
defaultMatchWidth: "wide",
|
|
920
|
-
parsePatterns:
|
|
920
|
+
parsePatterns: Ho,
|
|
921
921
|
defaultParseWidth: "any",
|
|
922
922
|
valueCallback: (e) => e + 1
|
|
923
923
|
}),
|
|
924
|
-
month:
|
|
925
|
-
matchPatterns:
|
|
924
|
+
month: Ce({
|
|
925
|
+
matchPatterns: zo,
|
|
926
926
|
defaultMatchWidth: "wide",
|
|
927
|
-
parsePatterns:
|
|
927
|
+
parsePatterns: Ko,
|
|
928
928
|
defaultParseWidth: "wide"
|
|
929
929
|
}),
|
|
930
|
-
day:
|
|
931
|
-
matchPatterns:
|
|
930
|
+
day: Ce({
|
|
931
|
+
matchPatterns: Xo,
|
|
932
932
|
defaultMatchWidth: "wide",
|
|
933
|
-
parsePatterns:
|
|
933
|
+
parsePatterns: qo,
|
|
934
934
|
defaultParseWidth: "any"
|
|
935
935
|
}),
|
|
936
|
-
dayPeriod:
|
|
937
|
-
matchPatterns:
|
|
936
|
+
dayPeriod: Ce({
|
|
937
|
+
matchPatterns: Go,
|
|
938
938
|
defaultMatchWidth: "any",
|
|
939
|
-
parsePatterns:
|
|
939
|
+
parsePatterns: Yo,
|
|
940
940
|
defaultParseWidth: "any"
|
|
941
941
|
})
|
|
942
|
-
},
|
|
942
|
+
}, Zo = {
|
|
943
943
|
code: "sl",
|
|
944
|
-
formatDistance:
|
|
945
|
-
formatLong:
|
|
946
|
-
formatRelative:
|
|
947
|
-
localize:
|
|
948
|
-
match:
|
|
944
|
+
formatDistance: ko,
|
|
945
|
+
formatLong: To,
|
|
946
|
+
formatRelative: _o,
|
|
947
|
+
localize: $o,
|
|
948
|
+
match: Qo,
|
|
949
949
|
options: {
|
|
950
950
|
weekStartsOn: 1,
|
|
951
951
|
firstWeekContainsDate: 1
|
|
952
952
|
}
|
|
953
|
-
},
|
|
954
|
-
dateTimeLocale: F(
|
|
953
|
+
}, Jo = {
|
|
954
|
+
dateTimeLocale: F(Zo),
|
|
955
955
|
setDateTimeLocale(e) {
|
|
956
|
-
|
|
956
|
+
ce(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
|
|
957
957
|
}
|
|
958
958
|
}, oe = /* @__PURE__ */ K({
|
|
959
959
|
__name: "df-input-hint",
|
|
@@ -965,7 +965,7 @@ const Ro = /^(\d+)\./i, Lo = /\d+/i, No = {
|
|
|
965
965
|
},
|
|
966
966
|
setup(e) {
|
|
967
967
|
const t = e, n = b(() => t.errors ? typeof t.errors == "string" ? t.errors.trim().length > 0 : t.errors.length > 0 : !1), l = b(() => n.value ? t.errors : t.message), a = b(() => n.value ? t.errorClasses : t.messageClasses);
|
|
968
|
-
return (r, s) => (
|
|
968
|
+
return (r, s) => (V(), R(o(Lt), {
|
|
969
969
|
message: l.value,
|
|
970
970
|
classes: a.value
|
|
971
971
|
}, null, 8, ["message", "classes"]));
|
|
@@ -981,37 +981,37 @@ const Ro = /^(\d+)\./i, Lo = /\d+/i, No = {
|
|
|
981
981
|
const t = e, n = b(() => t.data ? t.data.label : t.label.text);
|
|
982
982
|
return (l, a) => {
|
|
983
983
|
const r = N("v-img");
|
|
984
|
-
return
|
|
984
|
+
return V(), Y("div", {
|
|
985
985
|
class: le(["df-label", { "allow-wrap": e.allowWrap }])
|
|
986
986
|
}, [
|
|
987
|
-
e.label.icon ? (
|
|
988
|
-
e.label.iconComponent === "v-icon" ? (
|
|
987
|
+
e.label.icon ? (V(), Y(Re, { key: 0 }, [
|
|
988
|
+
e.label.iconComponent === "v-icon" ? (V(), R(o(xe), {
|
|
989
989
|
key: 0,
|
|
990
990
|
name: e.label.icon,
|
|
991
991
|
size: "1.25em"
|
|
992
|
-
}, null, 8, ["name"])) : e.label.iconComponent === "v-img" ? (
|
|
992
|
+
}, null, 8, ["name"])) : e.label.iconComponent === "v-img" ? (V(), R(r, {
|
|
993
993
|
key: 1,
|
|
994
994
|
class: "icon",
|
|
995
995
|
src: e.label.icon
|
|
996
|
-
}, null, 8, ["src"])) : (
|
|
996
|
+
}, null, 8, ["src"])) : (V(), R(je(e.label.iconComponent), {
|
|
997
997
|
key: 2,
|
|
998
998
|
src: e.label.icon
|
|
999
999
|
}, null, 8, ["src"]))
|
|
1000
1000
|
], 64)) : H("", !0),
|
|
1001
|
-
n.value instanceof o(
|
|
1001
|
+
n.value instanceof o(Nt) ? (V(), R(o(Wt), {
|
|
1002
1002
|
key: 1,
|
|
1003
1003
|
class: "markdown",
|
|
1004
1004
|
source: n.value.toString(),
|
|
1005
1005
|
options: n.value.options,
|
|
1006
1006
|
plugins: n.value.plugins
|
|
1007
|
-
}, null, 8, ["source", "options", "plugins"])) : (
|
|
1008
|
-
|
|
1007
|
+
}, null, 8, ["source", "options", "plugins"])) : (V(), Y(Re, { key: 2 }, [
|
|
1008
|
+
Bt(Ue(n.value), 1)
|
|
1009
1009
|
], 64))
|
|
1010
1010
|
], 2);
|
|
1011
1011
|
};
|
|
1012
1012
|
}
|
|
1013
1013
|
}), ft = /* @__PURE__ */ Symbol("vuetifyInputsSettingsKey");
|
|
1014
|
-
class
|
|
1014
|
+
class el {
|
|
1015
1015
|
constructor(t, n, l = "v-icon") {
|
|
1016
1016
|
ye(this, "text");
|
|
1017
1017
|
ye(this, "icon");
|
|
@@ -1021,7 +1021,7 @@ class Jo {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
const re = { enabled: void 0, clearable: !0 };
|
|
1023
1023
|
function te(e, t) {
|
|
1024
|
-
const n = Ae(ft, {}), l = Ae("field-density", null), a = Ae("field-variant", null), r = F(null), s =
|
|
1024
|
+
const n = Ae(ft, {}), l = Ae("field-density", null), a = Ae("field-variant", null), r = F(null), s = Dt(null), c = b({
|
|
1025
1025
|
get() {
|
|
1026
1026
|
return s.value ? s.value.value : e.control ? e.control.value : e.modelValue === void 0 ? r.value : e.modelValue;
|
|
1027
1027
|
},
|
|
@@ -1046,8 +1046,8 @@ function te(e, t) {
|
|
|
1046
1046
|
e.control.touched = h;
|
|
1047
1047
|
}
|
|
1048
1048
|
}), i = e.control ? g : F(!1), f = b(() => e.control ? e.control.valid : !0), u = b(
|
|
1049
|
-
() => e.control ? e.control.errors : (e.errors || []).map((h) => new
|
|
1050
|
-
),
|
|
1049
|
+
() => e.control ? e.control.errors : (e.errors || []).map((h) => new Ut(h))
|
|
1050
|
+
), C = b(() => i.value && u.value.length > 0 ? " " : void 0), x = b(() => i.value ? u.value : void 0), p = b(() => e.control ? e.control.effectiveEnabled : e.enabled !== !1), k = b(() => e.control ? e.control.visibility : e.visibility == null ? ve.DisplayMode.FULL : ve.DisplayMode.fromAny(e.visibility)), D = b(() => k.value !== ve.DisplayMode.SUPPRESS), S = b(() => ({
|
|
1051
1051
|
"d-none": k.value === ve.DisplayMode.HIDDEN,
|
|
1052
1052
|
invisible: k.value === ve.DisplayMode.INVISIBLE
|
|
1053
1053
|
})), d = b(() => {
|
|
@@ -1056,14 +1056,14 @@ function te(e, t) {
|
|
|
1056
1056
|
}), P = b(() => {
|
|
1057
1057
|
var j;
|
|
1058
1058
|
const h = (j = e.label) != null ? j : d.value.label;
|
|
1059
|
-
return
|
|
1059
|
+
return me(h || "") ? new el(h || "") : h;
|
|
1060
1060
|
}), U = b(() => {
|
|
1061
1061
|
var h, j;
|
|
1062
1062
|
return (j = (h = e.placeholder) != null ? h : d.value.placeholder) != null ? j : "";
|
|
1063
1063
|
}), A = b(() => {
|
|
1064
1064
|
var h, j;
|
|
1065
1065
|
return (j = (h = e.helpText) != null ? h : d.value.helpText) != null ? j : "";
|
|
1066
|
-
}),
|
|
1066
|
+
}), O = b(() => {
|
|
1067
1067
|
var h, j;
|
|
1068
1068
|
return (j = (h = e.hint) != null ? h : d.value.hint) != null ? j : "";
|
|
1069
1069
|
}), $ = b(() => {
|
|
@@ -1101,13 +1101,13 @@ function te(e, t) {
|
|
|
1101
1101
|
density: m.value,
|
|
1102
1102
|
variant: M.value,
|
|
1103
1103
|
label: P.value.text,
|
|
1104
|
-
errorMessages:
|
|
1104
|
+
errorMessages: C.value,
|
|
1105
1105
|
// 'error-count': errors?.value.length || 0,
|
|
1106
1106
|
readonly: !p.value,
|
|
1107
1107
|
disabled: !p.value,
|
|
1108
1108
|
placeholder: U.value,
|
|
1109
|
-
"persistent-placeholder": !
|
|
1110
|
-
hint:
|
|
1109
|
+
"persistent-placeholder": !Te(U.value),
|
|
1110
|
+
hint: O.value,
|
|
1111
1111
|
persistentHint: !0,
|
|
1112
1112
|
// we want persistent hint always
|
|
1113
1113
|
hideDetails: "auto",
|
|
@@ -1117,7 +1117,7 @@ function te(e, t) {
|
|
|
1117
1117
|
})
|
|
1118
1118
|
};
|
|
1119
1119
|
}
|
|
1120
|
-
const
|
|
1120
|
+
const tl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @__PURE__ */ K({
|
|
1121
1121
|
__name: "input-base",
|
|
1122
1122
|
props: {
|
|
1123
1123
|
control: {},
|
|
@@ -1138,13 +1138,13 @@ const el = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @_
|
|
|
1138
1138
|
},
|
|
1139
1139
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
1140
1140
|
setup(e, { emit: t }) {
|
|
1141
|
-
const n = e, l = t, { isRendered: a, label: r, showErrors: s, touched: c, value: g, visibilityClass: i, vuetifyBindings: f } = te(n, l), u = b(() => !!(o(n.clearable) && o(g))),
|
|
1141
|
+
const n = e, l = t, { isRendered: a, label: r, showErrors: s, touched: c, value: g, visibilityClass: i, vuetifyBindings: f } = te(n, l), u = b(() => !!(o(n.clearable) && o(g))), C = F(!1);
|
|
1142
1142
|
function x(p) {
|
|
1143
|
-
|
|
1143
|
+
C.value = p, p || (c.value = !0, l("blur"));
|
|
1144
1144
|
}
|
|
1145
1145
|
return (p, k) => {
|
|
1146
1146
|
const D = N("v-field"), S = N("v-input");
|
|
1147
|
-
return o(a) ? (
|
|
1147
|
+
return o(a) ? (V(), R(S, {
|
|
1148
1148
|
key: 0,
|
|
1149
1149
|
name: o(f).name,
|
|
1150
1150
|
density: o(f).density,
|
|
@@ -1169,7 +1169,7 @@ const el = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @_
|
|
|
1169
1169
|
clearable: u.value,
|
|
1170
1170
|
"persistent-clear": !0,
|
|
1171
1171
|
dirty: !!o(g) || !!o(f).placeholder,
|
|
1172
|
-
active:
|
|
1172
|
+
active: C.value,
|
|
1173
1173
|
loading: e.loading,
|
|
1174
1174
|
"onClick:clear": k[0] || (k[0] = (d) => l("click:clear")),
|
|
1175
1175
|
"onUpdate:focused": k[1] || (k[1] = (d) => x(d))
|
|
@@ -1181,7 +1181,7 @@ const el = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @_
|
|
|
1181
1181
|
}, null, 8, ["data", "label"])
|
|
1182
1182
|
]),
|
|
1183
1183
|
default: y((d) => [
|
|
1184
|
-
|
|
1184
|
+
de("div", tl, [
|
|
1185
1185
|
pe(p.$slots, "default", ie(se(d)))
|
|
1186
1186
|
])
|
|
1187
1187
|
]),
|
|
@@ -1233,13 +1233,13 @@ const el = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @_
|
|
|
1233
1233
|
CodeDark: "Code (dark)",
|
|
1234
1234
|
CodeBright: "Code (bright)"
|
|
1235
1235
|
};
|
|
1236
|
-
function
|
|
1236
|
+
function aa(e) {
|
|
1237
1237
|
Object.keys(L).forEach((t) => {
|
|
1238
1238
|
const n = e(t);
|
|
1239
1239
|
n != null && (L[t] = n);
|
|
1240
1240
|
});
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function ra(e, t) {
|
|
1243
1243
|
De.language = e, De.translations = t;
|
|
1244
1244
|
}
|
|
1245
1245
|
const De = {
|
|
@@ -1266,7 +1266,7 @@ const nt = 0;
|
|
|
1266
1266
|
})(J || (J = {}));
|
|
1267
1267
|
Object.freeze(J);
|
|
1268
1268
|
const ot = ["xs", "sm", "md", "lg", "xl"];
|
|
1269
|
-
class
|
|
1269
|
+
class nl {
|
|
1270
1270
|
constructor(t) {
|
|
1271
1271
|
ye(this, "_value");
|
|
1272
1272
|
this._value = this.cleanBreakpoint(t, !0), t && ot.forEach((n) => {
|
|
@@ -1280,40 +1280,42 @@ class tl {
|
|
|
1280
1280
|
const r = this._value[a];
|
|
1281
1281
|
for (const s of l) {
|
|
1282
1282
|
const c = r == null ? void 0 : r[s];
|
|
1283
|
-
c != null && (
|
|
1283
|
+
c != null && (At(c) ? n[s] = B(B({}, n[s]), c) : n[s] = c);
|
|
1284
1284
|
}
|
|
1285
1285
|
if (a === t) break;
|
|
1286
1286
|
}
|
|
1287
1287
|
return n;
|
|
1288
1288
|
}
|
|
1289
1289
|
}
|
|
1290
|
-
function
|
|
1290
|
+
function ol(e) {
|
|
1291
1291
|
return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1294
|
-
const e =
|
|
1295
|
-
return b(() =>
|
|
1293
|
+
function ll() {
|
|
1294
|
+
const e = Ht();
|
|
1295
|
+
return b(() => ol(e));
|
|
1296
1296
|
}
|
|
1297
|
-
class
|
|
1297
|
+
class al extends nl {
|
|
1298
1298
|
cleanBreakpoint(t, n = !1) {
|
|
1299
|
-
if ((!t ||
|
|
1299
|
+
if ((!t || !$t(t)) && !n) return null;
|
|
1300
1300
|
const l = {};
|
|
1301
|
-
return n && (l.renderAs = J.BUTTON, l.showLabel = !0, l.showIcon = !0), t && (t.renderAs != null && (l.renderAs = J.fromAny(t.renderAs)),
|
|
1301
|
+
return n && (l.renderAs = J.BUTTON, l.showLabel = !0, l.showIcon = !0), t && (t.renderAs != null && (l.renderAs = J.fromAny(t.renderAs)), me(t.label) && (l.label = t.label), me(t.icon) && (l.icon = t.icon), Ze(t.showLabel) && (l.showLabel = t.showLabel), Ze(t.showIcon) && (l.showIcon = t.showIcon)), Object.keys(l).length ? l : null;
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
|
-
|
|
1304
|
+
function vt(e, t) {
|
|
1305
|
+
const l = new al(e).getOptionsForBreakpoint(t);
|
|
1306
|
+
return {
|
|
1307
|
+
name: l.name,
|
|
1308
|
+
label: l.showLabel ? l.label : void 0,
|
|
1309
|
+
icon: l.showIcon ? l.icon : void 0,
|
|
1310
|
+
renderAs: l.renderAs,
|
|
1311
|
+
showLabel: me(l.label) && !Te(l.label) ? l.showLabel : !1,
|
|
1312
|
+
showIcon: me(l.icon) && !Te(l.icon) ? l.showIcon : !1
|
|
1313
|
+
};
|
|
1314
|
+
}
|
|
1315
|
+
class Be extends Ot {
|
|
1316
|
+
/** @see getRenderOptionsForBreakpoint, which answers the same for the value of any `Action` */
|
|
1305
1317
|
getBreakpointValue(t) {
|
|
1306
|
-
return b(() =>
|
|
1307
|
-
const l = new ll(this.value).getOptionsForBreakpoint(t.value);
|
|
1308
|
-
return {
|
|
1309
|
-
name: l.name,
|
|
1310
|
-
label: l.showLabel ? l.label : void 0,
|
|
1311
|
-
icon: l.showIcon ? l.icon : void 0,
|
|
1312
|
-
renderAs: l.renderAs,
|
|
1313
|
-
showLabel: ue(l.label) && !je(l.label) ? l.showLabel : !1,
|
|
1314
|
-
showIcon: ue(l.icon) && !je(l.icon) ? l.showIcon : !1
|
|
1315
|
-
};
|
|
1316
|
-
});
|
|
1318
|
+
return b(() => vt(this.value, t.value));
|
|
1317
1319
|
}
|
|
1318
1320
|
/** @see ActionRenderOptions.name */
|
|
1319
1321
|
get name() {
|
|
@@ -1328,7 +1330,7 @@ class Be extends Ut {
|
|
|
1328
1330
|
}
|
|
1329
1331
|
/** @see ActionRenderOptions.showLabel */
|
|
1330
1332
|
get showLabel() {
|
|
1331
|
-
return
|
|
1333
|
+
return me(this.value.label) && !Te(this.value.label) ? this.value.showLabel : !1;
|
|
1332
1334
|
}
|
|
1333
1335
|
/**
|
|
1334
1336
|
* The icon as this action renders it: the name where {@link ActionRenderOptions.showIcon} states it is shown,
|
|
@@ -1339,7 +1341,7 @@ class Be extends Ut {
|
|
|
1339
1341
|
}
|
|
1340
1342
|
/** @see ActionRenderOptions.showIcon */
|
|
1341
1343
|
get showIcon() {
|
|
1342
|
-
return
|
|
1344
|
+
return me(this.value.icon) && !Te(this.value.icon) ? this.value.showIcon : !1;
|
|
1343
1345
|
}
|
|
1344
1346
|
/** @see ActionRenderOptions.renderAs */
|
|
1345
1347
|
get renderAs() {
|
|
@@ -1359,7 +1361,7 @@ class Be extends Ut {
|
|
|
1359
1361
|
}
|
|
1360
1362
|
static closeAction(t) {
|
|
1361
1363
|
var l;
|
|
1362
|
-
const n =
|
|
1364
|
+
const n = W(B({}, t != null ? t : {}), {
|
|
1363
1365
|
// any properties in data should overwrite properties in the constant
|
|
1364
1366
|
value: {
|
|
1365
1367
|
name: "close",
|
|
@@ -1374,7 +1376,7 @@ class Be extends Ut {
|
|
|
1374
1376
|
}
|
|
1375
1377
|
static yesAction(t) {
|
|
1376
1378
|
var l;
|
|
1377
|
-
const n =
|
|
1379
|
+
const n = W(B({}, t != null ? t : {}), {
|
|
1378
1380
|
// any properties in data should overwrite properties in the constant
|
|
1379
1381
|
value: {
|
|
1380
1382
|
name: "yes",
|
|
@@ -1389,7 +1391,7 @@ class Be extends Ut {
|
|
|
1389
1391
|
}
|
|
1390
1392
|
static noAction(t) {
|
|
1391
1393
|
var l;
|
|
1392
|
-
const n =
|
|
1394
|
+
const n = W(B({}, t != null ? t : {}), {
|
|
1393
1395
|
// any properties in data should overwrite properties in the constant
|
|
1394
1396
|
value: {
|
|
1395
1397
|
name: "no",
|
|
@@ -1403,10 +1405,10 @@ class Be extends Ut {
|
|
|
1403
1405
|
return n.value = B(B({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), new Be(n);
|
|
1404
1406
|
}
|
|
1405
1407
|
}
|
|
1406
|
-
const
|
|
1408
|
+
const rl = {
|
|
1407
1409
|
key: 1,
|
|
1408
1410
|
style: { width: "0.5rem" }
|
|
1409
|
-
},
|
|
1411
|
+
}, il = { key: 2 }, sl = /* @__PURE__ */ K({
|
|
1410
1412
|
__name: "df-actions",
|
|
1411
1413
|
props: {
|
|
1412
1414
|
actions: {},
|
|
@@ -1414,10 +1416,11 @@ const al = {
|
|
|
1414
1416
|
showAsGroup: { default: "no" }
|
|
1415
1417
|
},
|
|
1416
1418
|
setup(e) {
|
|
1417
|
-
const t = e, n =
|
|
1419
|
+
const t = e, n = ll(), l = b(() => o(t.actions).filter((s) => s.visibility !== $e.SUPPRESS)), a = b(
|
|
1418
1420
|
() => l.value.map((s) => B({
|
|
1419
|
-
action: s
|
|
1420
|
-
|
|
1421
|
+
action: s,
|
|
1422
|
+
value: s.value
|
|
1423
|
+
}, vt(s.value, n.value)))
|
|
1421
1424
|
);
|
|
1422
1425
|
function r(s) {
|
|
1423
1426
|
if (s.defaultConfirm) return "primary";
|
|
@@ -1425,41 +1428,42 @@ const al = {
|
|
|
1425
1428
|
}
|
|
1426
1429
|
return (s, c) => {
|
|
1427
1430
|
const g = N("v-btn");
|
|
1428
|
-
return l.value.length > 0 ? (
|
|
1431
|
+
return l.value.length > 0 ? (V(), Y("div", {
|
|
1429
1432
|
key: 0,
|
|
1430
1433
|
class: le(["text-end df-actions", {
|
|
1431
1434
|
"button-group": e.showAsGroup === "grouped" || e.showAsGroup === "grouped-no-borders",
|
|
1432
1435
|
"with-border": e.showAsGroup === "grouped"
|
|
1433
1436
|
}])
|
|
1434
1437
|
}, [
|
|
1435
|
-
(
|
|
1438
|
+
(V(!0), Y(Re, null, It(a.value, (i, f) => (V(), R(g, z({
|
|
1436
1439
|
key: f,
|
|
1437
1440
|
variant: i.renderAs === o(J).BUTTON ? "tonal" : "text",
|
|
1438
|
-
color: r(i.
|
|
1439
|
-
disabled: !i.action.
|
|
1441
|
+
color: r(i.value),
|
|
1442
|
+
disabled: !i.action.effectiveEnabled || i.action.busy,
|
|
1443
|
+
loading: i.action.busy,
|
|
1440
1444
|
elevation: 0,
|
|
1441
1445
|
size: e.buttonSize,
|
|
1442
1446
|
class: {
|
|
1443
1447
|
"d-none": i.action.visibility === o($e).HIDDEN,
|
|
1444
1448
|
invisible: i.action.visibility === o($e).INVISIBLE
|
|
1445
1449
|
}
|
|
1446
|
-
}, { ref_for: !0 }, i.
|
|
1447
|
-
onClick:
|
|
1450
|
+
}, { ref_for: !0 }, i.value.passthroughAttrs, {
|
|
1451
|
+
onClick: St((u) => i.action.execute(u), ["stop"])
|
|
1448
1452
|
}), {
|
|
1449
1453
|
default: y(() => [
|
|
1450
|
-
i.icon ? (
|
|
1454
|
+
i.icon ? (V(), R(o(xe), {
|
|
1451
1455
|
key: 0,
|
|
1452
1456
|
name: i.icon
|
|
1453
1457
|
}, null, 8, ["name"])) : H("", !0),
|
|
1454
|
-
i.icon && i.label ? (
|
|
1455
|
-
i.label ? (
|
|
1458
|
+
i.icon && i.label ? (V(), Y("span", rl)) : H("", !0),
|
|
1459
|
+
i.label ? (V(), Y("span", il, Ue(i.label), 1)) : H("", !0)
|
|
1456
1460
|
]),
|
|
1457
1461
|
_: 2
|
|
1458
|
-
}, 1040, ["variant", "color", "disabled", "size", "class", "onClick"]))), 128))
|
|
1462
|
+
}, 1040, ["variant", "color", "disabled", "loading", "size", "class", "onClick"]))), 128))
|
|
1459
1463
|
], 2)) : H("", !0);
|
|
1460
1464
|
};
|
|
1461
1465
|
}
|
|
1462
|
-
}),
|
|
1466
|
+
}), ul = /* @__PURE__ */ K({
|
|
1463
1467
|
__name: "df-checkbox",
|
|
1464
1468
|
props: /* @__PURE__ */ ae({
|
|
1465
1469
|
allowNull: { type: Boolean },
|
|
@@ -1477,13 +1481,13 @@ const al = {
|
|
|
1477
1481
|
passthroughAttrs: {},
|
|
1478
1482
|
density: {},
|
|
1479
1483
|
variant: {}
|
|
1480
|
-
},
|
|
1484
|
+
}, W(B({}, re), { allowNull: !1 })),
|
|
1481
1485
|
emits: ["update:modelValue", "click:clear"],
|
|
1482
1486
|
setup(e, { emit: t }) {
|
|
1483
1487
|
const n = e, l = t, { densityClass: a, isRendered: r, label: s, showErrors: c, touched: g, value: i, visibilityClass: f, vuetifyBindings: u } = te(
|
|
1484
1488
|
n,
|
|
1485
1489
|
l
|
|
1486
|
-
),
|
|
1490
|
+
), C = b(() => n.allowNull && i.value == null), x = b({
|
|
1487
1491
|
get() {
|
|
1488
1492
|
return i.value;
|
|
1489
1493
|
},
|
|
@@ -1491,18 +1495,18 @@ const al = {
|
|
|
1491
1495
|
}
|
|
1492
1496
|
});
|
|
1493
1497
|
function p() {
|
|
1494
|
-
const k =
|
|
1498
|
+
const k = Mt(i.value);
|
|
1495
1499
|
k === !0 ? i.value = n.allowNull ? null : !1 : i.value = k === !1;
|
|
1496
1500
|
}
|
|
1497
1501
|
return (k, D) => {
|
|
1498
1502
|
const S = N("v-checkbox");
|
|
1499
|
-
return o(r) ? (
|
|
1503
|
+
return o(r) ? (V(), R(S, z({
|
|
1500
1504
|
key: 0,
|
|
1501
1505
|
modelValue: x.value,
|
|
1502
1506
|
"onUpdate:modelValue": D[0] || (D[0] = (d) => x.value = d),
|
|
1503
1507
|
density: "compact",
|
|
1504
1508
|
class: [o(a), o(f)],
|
|
1505
|
-
indeterminate:
|
|
1509
|
+
indeterminate: C.value,
|
|
1506
1510
|
"false-value": !1,
|
|
1507
1511
|
"true-value": !0
|
|
1508
1512
|
}, o(u), {
|
|
@@ -1526,7 +1530,7 @@ const al = {
|
|
|
1526
1530
|
}, 16, ["modelValue", "class", "indeterminate"])) : H("", !0);
|
|
1527
1531
|
};
|
|
1528
1532
|
}
|
|
1529
|
-
}),
|
|
1533
|
+
}), cl = /* @__PURE__ */ K({
|
|
1530
1534
|
__name: "df-color",
|
|
1531
1535
|
props: /* @__PURE__ */ ae({
|
|
1532
1536
|
allowNull: { type: Boolean },
|
|
@@ -1544,21 +1548,21 @@ const al = {
|
|
|
1544
1548
|
passthroughAttrs: {},
|
|
1545
1549
|
density: {},
|
|
1546
1550
|
variant: {}
|
|
1547
|
-
},
|
|
1551
|
+
}, W(B({}, re), { allowNull: !1 })),
|
|
1548
1552
|
emits: ["update:modelValue", "click:clear"],
|
|
1549
1553
|
setup(e, { emit: t }) {
|
|
1550
1554
|
const n = e, l = t, { densityClass: a, isRendered: r, label: s, showErrors: c, touched: g, value: i, visibilityClass: f, vuetifyBindings: u } = te(
|
|
1551
1555
|
n,
|
|
1552
1556
|
l
|
|
1553
|
-
),
|
|
1557
|
+
), C = F(!1), x = b(() => [
|
|
1554
1558
|
(p) => n.control || !p && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(p) ? !0 : "Not a valid hex string."
|
|
1555
1559
|
]);
|
|
1556
1560
|
return (p, k) => {
|
|
1557
1561
|
const D = N("v-color-picker"), S = N("v-menu"), d = N("v-text-field");
|
|
1558
|
-
return o(r) ? (
|
|
1562
|
+
return o(r) ? (V(), R(d, z({
|
|
1559
1563
|
key: 0,
|
|
1560
1564
|
modelValue: o(i),
|
|
1561
|
-
"onUpdate:modelValue": k[2] || (k[2] = (P) =>
|
|
1565
|
+
"onUpdate:modelValue": k[2] || (k[2] = (P) => ce(i) ? i.value = P : null),
|
|
1562
1566
|
class: [o(a), o(f)],
|
|
1563
1567
|
clearable: e.allowNull,
|
|
1564
1568
|
type: "text",
|
|
@@ -1579,21 +1583,21 @@ const al = {
|
|
|
1579
1583
|
}, null, 8, ["message", "errors"])
|
|
1580
1584
|
]),
|
|
1581
1585
|
"prepend-inner": y(() => [
|
|
1582
|
-
|
|
1586
|
+
de("div", {
|
|
1583
1587
|
style: rt([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: o(i) }])
|
|
1584
1588
|
}, null, 4)
|
|
1585
1589
|
]),
|
|
1586
1590
|
default: y(() => [
|
|
1587
1591
|
I(S, {
|
|
1588
|
-
modelValue:
|
|
1589
|
-
"onUpdate:modelValue": k[1] || (k[1] = (P) =>
|
|
1592
|
+
modelValue: C.value,
|
|
1593
|
+
"onUpdate:modelValue": k[1] || (k[1] = (P) => C.value = P),
|
|
1590
1594
|
"close-on-content-click": !1,
|
|
1591
1595
|
activator: "parent"
|
|
1592
1596
|
}, {
|
|
1593
1597
|
default: y(() => [
|
|
1594
1598
|
I(D, {
|
|
1595
1599
|
modelValue: o(i),
|
|
1596
|
-
"onUpdate:modelValue": k[0] || (k[0] = (P) =>
|
|
1600
|
+
"onUpdate:modelValue": k[0] || (k[0] = (P) => ce(i) ? i.value = P : null),
|
|
1597
1601
|
mode: "hexa"
|
|
1598
1602
|
}, null, 8, ["modelValue"])
|
|
1599
1603
|
]),
|
|
@@ -1604,7 +1608,7 @@ const al = {
|
|
|
1604
1608
|
}, 16, ["modelValue", "class", "clearable", "rules"])) : H("", !0);
|
|
1605
1609
|
};
|
|
1606
1610
|
}
|
|
1607
|
-
}),
|
|
1611
|
+
}), dl = /* @__PURE__ */ K({
|
|
1608
1612
|
__name: "df-datetime",
|
|
1609
1613
|
props: /* @__PURE__ */ ae({
|
|
1610
1614
|
inputType: {},
|
|
@@ -1625,7 +1629,7 @@ const al = {
|
|
|
1625
1629
|
passthroughAttrs: {},
|
|
1626
1630
|
density: {},
|
|
1627
1631
|
variant: {}
|
|
1628
|
-
},
|
|
1632
|
+
}, W(B({}, re), {
|
|
1629
1633
|
inputType: "datetime",
|
|
1630
1634
|
displayFormatDate: "P",
|
|
1631
1635
|
displayFormatTime: "p"
|
|
@@ -1634,11 +1638,11 @@ const al = {
|
|
|
1634
1638
|
setup(e, { emit: t }) {
|
|
1635
1639
|
const n = e, l = t, a = b(() => {
|
|
1636
1640
|
var v;
|
|
1637
|
-
return (v = n.locale) != null ? v : o(
|
|
1641
|
+
return (v = n.locale) != null ? v : o(Jo.dateTimeLocale);
|
|
1638
1642
|
}), r = b(() => {
|
|
1639
1643
|
var v, m;
|
|
1640
1644
|
return (m = (v = a.value.options) == null ? void 0 : v.weekStartsOn) != null ? m : 1;
|
|
1641
|
-
}), { density: s, densityClass: c, touched: g, value: i, vuetifyBindings: f } = te(n, l), { inputType: u, displayFormatDate:
|
|
1645
|
+
}), { density: s, densityClass: c, touched: g, value: i, vuetifyBindings: f } = te(n, l), { inputType: u, displayFormatDate: C, displayFormatTime: x } = Se(n), p = F(""), k = b({
|
|
1642
1646
|
get() {
|
|
1643
1647
|
return o(p) === "date";
|
|
1644
1648
|
},
|
|
@@ -1669,7 +1673,7 @@ const al = {
|
|
|
1669
1673
|
M[m] = h[m], d.value = S(/* @__PURE__ */ new Date(`${M[0]}T${M[1].split(".")[0]}`)), o(u) === "date" ? i.value = M[0] : o(u) === "time" ? i.value = M[1] : i.value = o(d) + we(/* @__PURE__ */ new Date(), "XXX");
|
|
1670
1674
|
}
|
|
1671
1675
|
}
|
|
1672
|
-
|
|
1676
|
+
ue(i, (v) => P(v, -1), { immediate: !0 });
|
|
1673
1677
|
const U = b({
|
|
1674
1678
|
get() {
|
|
1675
1679
|
const v = o(d);
|
|
@@ -1688,14 +1692,14 @@ const al = {
|
|
|
1688
1692
|
set(v) {
|
|
1689
1693
|
P(`T${v}`, 1);
|
|
1690
1694
|
}
|
|
1691
|
-
}),
|
|
1695
|
+
}), O = b({
|
|
1692
1696
|
get() {
|
|
1693
1697
|
const v = o(U);
|
|
1694
|
-
return v == null ? "" : we(v, o(
|
|
1698
|
+
return v == null ? "" : we(v, o(C), { locale: a.value });
|
|
1695
1699
|
},
|
|
1696
1700
|
set(v) {
|
|
1697
1701
|
try {
|
|
1698
|
-
const m =
|
|
1702
|
+
const m = zt(v, o(C), /* @__PURE__ */ new Date(), { locale: a.value });
|
|
1699
1703
|
P(S(m), 0);
|
|
1700
1704
|
} catch (m) {
|
|
1701
1705
|
console.error(m);
|
|
@@ -1716,14 +1720,14 @@ const al = {
|
|
|
1716
1720
|
});
|
|
1717
1721
|
return (v, m) => {
|
|
1718
1722
|
const M = N("v-date-picker"), h = N("v-confirm-edit"), j = N("v-menu"), X = N("v-text-field"), G = N("v-time-picker");
|
|
1719
|
-
return
|
|
1723
|
+
return V(), R(o(He), z(n, {
|
|
1720
1724
|
class: o(c),
|
|
1721
1725
|
clearable: e.clearable,
|
|
1722
1726
|
"onClick:clear": m[14] || (m[14] = (ne) => i.value = null),
|
|
1723
1727
|
onBlur: m[15] || (m[15] = (ne) => g.value = !0)
|
|
1724
1728
|
}), {
|
|
1725
1729
|
default: y((ne) => [
|
|
1726
|
-
|
|
1730
|
+
de("div", {
|
|
1727
1731
|
class: le([
|
|
1728
1732
|
"d-flex",
|
|
1729
1733
|
"w-100",
|
|
@@ -1732,10 +1736,10 @@ const al = {
|
|
|
1732
1736
|
o(s)
|
|
1733
1737
|
])
|
|
1734
1738
|
}, [
|
|
1735
|
-
["date", "datetime"].includes(o(u)) ? (
|
|
1739
|
+
["date", "datetime"].includes(o(u)) ? (V(), R(X, z({
|
|
1736
1740
|
key: 0,
|
|
1737
|
-
modelValue:
|
|
1738
|
-
"onUpdate:modelValue": m[4] || (m[4] = (T) =>
|
|
1741
|
+
modelValue: O.value,
|
|
1742
|
+
"onUpdate:modelValue": m[4] || (m[4] = (T) => O.value = T),
|
|
1739
1743
|
style: { "flex-grow": "4" },
|
|
1740
1744
|
density: "compact",
|
|
1741
1745
|
variant: "plain",
|
|
@@ -1775,7 +1779,7 @@ const al = {
|
|
|
1775
1779
|
"show-week": !0
|
|
1776
1780
|
}, {
|
|
1777
1781
|
actions: y(() => [
|
|
1778
|
-
(
|
|
1782
|
+
(V(), R(je(he)))
|
|
1779
1783
|
]),
|
|
1780
1784
|
_: 2
|
|
1781
1785
|
}, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
|
|
@@ -1788,7 +1792,7 @@ const al = {
|
|
|
1788
1792
|
]),
|
|
1789
1793
|
_: 1
|
|
1790
1794
|
}, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : H("", !0),
|
|
1791
|
-
["time", "datetime"].includes(o(u)) ? (
|
|
1795
|
+
["time", "datetime"].includes(o(u)) ? (V(), R(X, z({
|
|
1792
1796
|
key: 1,
|
|
1793
1797
|
modelValue: $.value,
|
|
1794
1798
|
"onUpdate:modelValue": m[11] || (m[11] = (T) => $.value = T),
|
|
@@ -1829,7 +1833,7 @@ const al = {
|
|
|
1829
1833
|
format: "24hr"
|
|
1830
1834
|
}, {
|
|
1831
1835
|
actions: y(() => [
|
|
1832
|
-
(
|
|
1836
|
+
(V(), R(je(he)))
|
|
1833
1837
|
]),
|
|
1834
1838
|
_: 2
|
|
1835
1839
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1848,7 +1852,7 @@ const al = {
|
|
|
1848
1852
|
}, 16, ["class", "clearable"]);
|
|
1849
1853
|
};
|
|
1850
1854
|
}
|
|
1851
|
-
}),
|
|
1855
|
+
}), ml = /* @__PURE__ */ K({
|
|
1852
1856
|
__name: "df-file",
|
|
1853
1857
|
props: /* @__PURE__ */ ae({
|
|
1854
1858
|
comms: {},
|
|
@@ -1869,7 +1873,7 @@ const al = {
|
|
|
1869
1873
|
}, re),
|
|
1870
1874
|
emits: ["update:modelValue", "click:clear"],
|
|
1871
1875
|
setup(e, { emit: t }) {
|
|
1872
|
-
const n = e, l = t, { density: a, densityClass: r, touched: s, value: c, vuetifyBindings: g } = te(n, l), i = F(null), f = F(null), u = F(0),
|
|
1876
|
+
const n = e, l = t, { density: a, densityClass: r, touched: s, value: c, vuetifyBindings: g } = te(n, l), i = F(null), f = F(null), u = F(0), C = F(Math.round(Math.random() * 1e3)), x = F(), p = b(() => f.value && u.value < 100), k = b(() => !x.value && c.value ? n.modelValue : "");
|
|
1873
1877
|
function D() {
|
|
1874
1878
|
i.value && window.clearInterval(i.value);
|
|
1875
1879
|
}
|
|
@@ -1878,54 +1882,54 @@ const al = {
|
|
|
1878
1882
|
c.value && n.comms.touch(c.value);
|
|
1879
1883
|
}, 60 * 1e3);
|
|
1880
1884
|
}
|
|
1881
|
-
at(() => D()),
|
|
1885
|
+
at(() => D()), ue(c, (A) => {
|
|
1882
1886
|
A ? S() : D();
|
|
1883
1887
|
});
|
|
1884
1888
|
function d() {
|
|
1885
1889
|
return _e(this, null, function* () {
|
|
1886
|
-
c.value && (yield n.comms.delete(c.value)), c.value = null, u.value = 0,
|
|
1890
|
+
c.value && (yield n.comms.delete(c.value)), c.value = null, u.value = 0, C.value = Math.round(Math.random() * 1e3), f.value = null, x.value = null, D();
|
|
1887
1891
|
});
|
|
1888
1892
|
}
|
|
1889
1893
|
function P(A) {
|
|
1890
1894
|
return _e(this, null, function* () {
|
|
1891
1895
|
u.value = -1, f.value = A;
|
|
1892
1896
|
try {
|
|
1893
|
-
c.value = yield n.comms.upload(A, (
|
|
1894
|
-
u.value = Math.round(
|
|
1897
|
+
c.value = yield n.comms.upload(A, (O, $) => {
|
|
1898
|
+
u.value = Math.round(O * 100 / $);
|
|
1895
1899
|
}), u.value = 100, S();
|
|
1896
|
-
} catch (
|
|
1897
|
-
throw u.value = 0, f.value = null,
|
|
1900
|
+
} catch (O) {
|
|
1901
|
+
throw u.value = 0, f.value = null, C.value = Math.round(Math.random() * 1e3), x.value = null, O;
|
|
1898
1902
|
}
|
|
1899
1903
|
});
|
|
1900
1904
|
}
|
|
1901
1905
|
function U(A) {
|
|
1902
1906
|
A && (Array.isArray(A) ? console.error("Uploading multiple files not supported right now") : P(A));
|
|
1903
1907
|
}
|
|
1904
|
-
return (A,
|
|
1908
|
+
return (A, O) => {
|
|
1905
1909
|
const $ = N("v-progress-linear"), v = N("v-file-input");
|
|
1906
|
-
return
|
|
1910
|
+
return V(), R(o(He), z(W(B({}, n), { loading: p.value }), {
|
|
1907
1911
|
class: o(r),
|
|
1908
1912
|
clearable: "",
|
|
1909
1913
|
"onClick:clear": d,
|
|
1910
|
-
onBlur:
|
|
1914
|
+
onBlur: O[1] || (O[1] = (m) => s.value = !0)
|
|
1911
1915
|
}), {
|
|
1912
1916
|
"prepend-inner": y(() => [
|
|
1913
1917
|
I(o(xe), { name: "mdi-paperclip" })
|
|
1914
1918
|
]),
|
|
1915
1919
|
loader: y(() => [
|
|
1916
|
-
f.value && u.value < 100 ? (
|
|
1920
|
+
f.value && u.value < 100 ? (V(), R($, {
|
|
1917
1921
|
key: 0,
|
|
1918
1922
|
"model-value": u.value,
|
|
1919
1923
|
indeterminate: u.value === -1
|
|
1920
1924
|
}, null, 8, ["model-value", "indeterminate"])) : H("", !0)
|
|
1921
1925
|
]),
|
|
1922
1926
|
default: y((m) => [
|
|
1923
|
-
|
|
1927
|
+
de("div", {
|
|
1924
1928
|
class: le(["d-flex w-100 position-relative df-input-wrapper", o(a)])
|
|
1925
1929
|
}, [
|
|
1926
1930
|
I(v, z({
|
|
1927
1931
|
modelValue: x.value,
|
|
1928
|
-
"onUpdate:modelValue":
|
|
1932
|
+
"onUpdate:modelValue": O[0] || (O[0] = (M) => x.value = M),
|
|
1929
1933
|
label: k.value,
|
|
1930
1934
|
density: "compact",
|
|
1931
1935
|
variant: "plain",
|
|
@@ -1949,7 +1953,7 @@ const al = {
|
|
|
1949
1953
|
}, 16, ["class"]);
|
|
1950
1954
|
};
|
|
1951
1955
|
}
|
|
1952
|
-
}),
|
|
1956
|
+
}), fl = /* @__PURE__ */ K({
|
|
1953
1957
|
__name: "df-input",
|
|
1954
1958
|
props: /* @__PURE__ */ ae({
|
|
1955
1959
|
inputType: {},
|
|
@@ -1971,7 +1975,7 @@ const al = {
|
|
|
1971
1975
|
passthroughAttrs: {},
|
|
1972
1976
|
density: {},
|
|
1973
1977
|
variant: {}
|
|
1974
|
-
},
|
|
1978
|
+
}, W(B({}, re), {
|
|
1975
1979
|
inputType: "text",
|
|
1976
1980
|
precision: null,
|
|
1977
1981
|
step: void 0,
|
|
@@ -1983,19 +1987,19 @@ const al = {
|
|
|
1983
1987
|
const n = e, l = t, { densityClass: a, isRendered: r, label: s, showErrors: c, touched: g, value: i, visibilityClass: f, vuetifyBindings: u } = te(
|
|
1984
1988
|
n,
|
|
1985
1989
|
l
|
|
1986
|
-
), { inputType:
|
|
1990
|
+
), { inputType: C, max: x, min: p, precision: k, step: D } = Se(n), S = b(() => C.value === "number"), d = b(
|
|
1987
1991
|
() => S.value ? { min: o(p), max: o(x), precision: o(k), step: o(D) } : {}
|
|
1988
1992
|
);
|
|
1989
1993
|
return (P, U) => {
|
|
1990
|
-
const A = N("v-text-field"),
|
|
1991
|
-
return o(r) ? (
|
|
1994
|
+
const A = N("v-text-field"), O = N("v-number-input");
|
|
1995
|
+
return o(r) ? (V(), Y("div", {
|
|
1992
1996
|
key: 0,
|
|
1993
1997
|
class: le(["df-input-container", [o(a), o(f)]])
|
|
1994
1998
|
}, [
|
|
1995
|
-
S.value ? (
|
|
1999
|
+
S.value ? (V(), R(O, z({
|
|
1996
2000
|
key: 1,
|
|
1997
2001
|
modelValue: o(i),
|
|
1998
|
-
"onUpdate:modelValue": U[2] || (U[2] = ($) =>
|
|
2002
|
+
"onUpdate:modelValue": U[2] || (U[2] = ($) => ce(i) ? i.value = $ : null),
|
|
1999
2003
|
density: "compact",
|
|
2000
2004
|
"control-variant": "stacked"
|
|
2001
2005
|
}, B(B({}, o(u)), d.value)), {
|
|
@@ -2012,11 +2016,11 @@ const al = {
|
|
|
2012
2016
|
}, null, 8, ["message", "errors"])
|
|
2013
2017
|
]),
|
|
2014
2018
|
_: 1
|
|
2015
|
-
}, 16, ["modelValue"])) : (
|
|
2019
|
+
}, 16, ["modelValue"])) : (V(), R(A, z({
|
|
2016
2020
|
key: 0,
|
|
2017
2021
|
modelValue: o(i),
|
|
2018
|
-
"onUpdate:modelValue": U[0] || (U[0] = ($) =>
|
|
2019
|
-
type: o(
|
|
2022
|
+
"onUpdate:modelValue": U[0] || (U[0] = ($) => ce(i) ? i.value = $ : null),
|
|
2023
|
+
type: o(C)
|
|
2020
2024
|
}, o(u), {
|
|
2021
2025
|
onBlur: U[1] || (U[1] = ($) => g.value = !0)
|
|
2022
2026
|
}), {
|
|
@@ -2037,7 +2041,7 @@ const al = {
|
|
|
2037
2041
|
], 2)) : H("", !0);
|
|
2038
2042
|
};
|
|
2039
2043
|
}
|
|
2040
|
-
}),
|
|
2044
|
+
}), vl = { class: "editor-container" }, pl = { class: "editor-container__editor" }, hl = { ref: "editorElement" }, bl = /* @__PURE__ */ K({
|
|
2041
2045
|
__name: "ck-editor-custom",
|
|
2042
2046
|
props: {
|
|
2043
2047
|
modelValue: { default: "" },
|
|
@@ -2046,10 +2050,10 @@ const al = {
|
|
|
2046
2050
|
},
|
|
2047
2051
|
emits: ["update:modelValue"],
|
|
2048
2052
|
setup(e, { expose: t, emit: n }) {
|
|
2049
|
-
|
|
2053
|
+
Pt((u) => ({
|
|
2050
2054
|
v32dcdf6e: u.minHeight
|
|
2051
2055
|
}));
|
|
2052
|
-
const l = n, a = F(!1), r =
|
|
2056
|
+
const l = n, a = F(!1), r = An, s = {
|
|
2053
2057
|
items: [
|
|
2054
2058
|
"undo",
|
|
2055
2059
|
"redo",
|
|
@@ -2079,7 +2083,6 @@ const al = {
|
|
|
2079
2083
|
],
|
|
2080
2084
|
shouldNotGroupWhenFull: !1
|
|
2081
2085
|
}, c = [
|
|
2082
|
-
zt,
|
|
2083
2086
|
Kt,
|
|
2084
2087
|
Xt,
|
|
2085
2088
|
qt,
|
|
@@ -2109,8 +2112,8 @@ const al = {
|
|
|
2109
2112
|
yn,
|
|
2110
2113
|
wn,
|
|
2111
2114
|
kn,
|
|
2112
|
-
Vn,
|
|
2113
2115
|
Cn,
|
|
2116
|
+
Vn,
|
|
2114
2117
|
jn,
|
|
2115
2118
|
Tn,
|
|
2116
2119
|
xn,
|
|
@@ -2119,7 +2122,8 @@ const al = {
|
|
|
2119
2122
|
Dn,
|
|
2120
2123
|
In,
|
|
2121
2124
|
Sn,
|
|
2122
|
-
Pn
|
|
2125
|
+
Pn,
|
|
2126
|
+
En
|
|
2123
2127
|
], g = {
|
|
2124
2128
|
options: [
|
|
2125
2129
|
{ model: "paragraph", title: L.Paragraph, class: "ck-heading_paragraph" },
|
|
@@ -2185,12 +2189,12 @@ const al = {
|
|
|
2185
2189
|
});
|
|
2186
2190
|
const f = (u) => {
|
|
2187
2191
|
};
|
|
2188
|
-
return t({ onEditorReady: f }), (u,
|
|
2192
|
+
return t({ onEditorReady: f }), (u, C) => {
|
|
2189
2193
|
const x = N("ckeditor");
|
|
2190
|
-
return
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
a.value ? (
|
|
2194
|
+
return V(), Y("div", vl, [
|
|
2195
|
+
de("div", pl, [
|
|
2196
|
+
de("div", hl, [
|
|
2197
|
+
a.value ? (V(), R(x, {
|
|
2194
2198
|
key: 0,
|
|
2195
2199
|
"model-value": e.modelValue,
|
|
2196
2200
|
editor: o(r),
|
|
@@ -2198,14 +2202,14 @@ const al = {
|
|
|
2198
2202
|
disabled: e.disabled,
|
|
2199
2203
|
style: rt(`min-height: ${e.minHeight}`),
|
|
2200
2204
|
onReady: f,
|
|
2201
|
-
"onUpdate:modelValue":
|
|
2205
|
+
"onUpdate:modelValue": C[0] || (C[0] = (p) => l("update:modelValue", p))
|
|
2202
2206
|
}, null, 8, ["model-value", "editor", "disabled", "style"])) : H("", !0)
|
|
2203
2207
|
], 512)
|
|
2204
2208
|
])
|
|
2205
2209
|
]);
|
|
2206
2210
|
};
|
|
2207
2211
|
}
|
|
2208
|
-
}),
|
|
2212
|
+
}), gl = /* @__PURE__ */ K({
|
|
2209
2213
|
__name: "df-rtf-editor",
|
|
2210
2214
|
props: /* @__PURE__ */ ae({
|
|
2211
2215
|
minHeight: {},
|
|
@@ -2223,18 +2227,18 @@ const al = {
|
|
|
2223
2227
|
passthroughAttrs: {},
|
|
2224
2228
|
density: {},
|
|
2225
2229
|
variant: {}
|
|
2226
|
-
},
|
|
2230
|
+
}, W(B({}, re), { minHeight: void 0 })),
|
|
2227
2231
|
emits: ["update:modelValue", "click:clear"],
|
|
2228
2232
|
setup(e, { emit: t }) {
|
|
2229
2233
|
const n = e, l = t, { densityClass: a, value: r, vuetifyBindings: s } = te(n, l);
|
|
2230
|
-
return (c, g) => (
|
|
2234
|
+
return (c, g) => (V(), R(o(He), z(n, {
|
|
2231
2235
|
class: ["ck-editor-custom", o(a)]
|
|
2232
2236
|
}), {
|
|
2233
2237
|
default: y((i) => [
|
|
2234
|
-
I(
|
|
2238
|
+
I(bl, z({
|
|
2235
2239
|
ref: "$editor",
|
|
2236
2240
|
modelValue: o(r),
|
|
2237
|
-
"onUpdate:modelValue": g[0] || (g[0] = (f) =>
|
|
2241
|
+
"onUpdate:modelValue": g[0] || (g[0] = (f) => ce(r) ? r.value = f : null),
|
|
2238
2242
|
class: { "mt-6": !!e.label },
|
|
2239
2243
|
"min-height": e.minHeight,
|
|
2240
2244
|
disabled: o(s).disabled
|
|
@@ -2247,7 +2251,7 @@ const al = {
|
|
|
2247
2251
|
}, 16, ["class"]));
|
|
2248
2252
|
}
|
|
2249
2253
|
});
|
|
2250
|
-
function
|
|
2254
|
+
function yl(e) {
|
|
2251
2255
|
return e.map((t) => ({ value: t.id, title: t.text, icon: t.icon }));
|
|
2252
2256
|
}
|
|
2253
2257
|
function ee(e, t) {
|
|
@@ -2259,7 +2263,7 @@ function Ie(e, t) {
|
|
|
2259
2263
|
const n = it(t);
|
|
2260
2264
|
return e.filter((l) => n.some((a) => a === l.id));
|
|
2261
2265
|
}
|
|
2262
|
-
function
|
|
2266
|
+
function Ve(e, t, n, l, a) {
|
|
2263
2267
|
var s;
|
|
2264
2268
|
const r = ee(e, n);
|
|
2265
2269
|
if (r == null) {
|
|
@@ -2275,10 +2279,10 @@ function Ce(e, t, n, l, a) {
|
|
|
2275
2279
|
t.value = (s = c == null ? void 0 : c.id) != null ? s : null;
|
|
2276
2280
|
}
|
|
2277
2281
|
}
|
|
2278
|
-
const
|
|
2282
|
+
const wl = {
|
|
2279
2283
|
key: 0,
|
|
2280
2284
|
class: "me-1"
|
|
2281
|
-
},
|
|
2285
|
+
}, kl = /* @__PURE__ */ K({
|
|
2282
2286
|
__name: "df-select",
|
|
2283
2287
|
props: /* @__PURE__ */ ae({
|
|
2284
2288
|
choices: {},
|
|
@@ -2300,7 +2304,7 @@ const yl = {
|
|
|
2300
2304
|
passthroughAttrs: {},
|
|
2301
2305
|
density: {},
|
|
2302
2306
|
variant: {}
|
|
2303
|
-
},
|
|
2307
|
+
}, W(B({}, re), {
|
|
2304
2308
|
choices: void 0,
|
|
2305
2309
|
multiple: !1,
|
|
2306
2310
|
allowTags: !1,
|
|
@@ -2313,13 +2317,13 @@ const yl = {
|
|
|
2313
2317
|
const n = e, { choices: l, multiple: a, allowTags: r, allowNull: s, cssClass: c } = Se(n), g = t, i = F(null), {
|
|
2314
2318
|
densityClass: f,
|
|
2315
2319
|
isRendered: u,
|
|
2316
|
-
label:
|
|
2320
|
+
label: C,
|
|
2317
2321
|
showErrors: x,
|
|
2318
2322
|
touched: p,
|
|
2319
2323
|
value: k,
|
|
2320
2324
|
visibilityClass: D,
|
|
2321
2325
|
vuetifyBindings: S
|
|
2322
|
-
} = te(n, g), d = F(null), P = F(!1), U = F([]), A = b(() => o(P) ? o(U) : o(l) || []),
|
|
2326
|
+
} = te(n, g), d = F(null), P = F(!1), U = F([]), A = b(() => o(P) ? o(U) : o(l) || []), O = F(!1), $ = b(() => yl(A.value)), v = F(null), m = F(0), M = F(!1);
|
|
2323
2327
|
(Ke = l.value) != null && Ke.length && n.fetchChoices !== void 0 && console.warn("Both choices and fetchChoices are set. Only one of them should be set.");
|
|
2324
2328
|
function h(w) {
|
|
2325
2329
|
g("update:modelValueDisplay", Ie(A.value, w));
|
|
@@ -2330,7 +2334,7 @@ const yl = {
|
|
|
2330
2334
|
try {
|
|
2331
2335
|
k.value = w;
|
|
2332
2336
|
} finally {
|
|
2333
|
-
|
|
2337
|
+
Ft(ee(k.value, a.value), w) || Ve(
|
|
2334
2338
|
ee(k.value, a.value),
|
|
2335
2339
|
d,
|
|
2336
2340
|
a.value,
|
|
@@ -2351,11 +2355,11 @@ const yl = {
|
|
|
2351
2355
|
if (a.value && s.value && d.value != null && d.value.length > 0 && i.value) {
|
|
2352
2356
|
const _ = i.value.$el, q = (w = _.querySelector(".v-input__control")) == null ? void 0 : w.clientWidth, Q = _.querySelector(".v-field__input"), E = Q.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), Z = window.getComputedStyle(Q);
|
|
2353
2357
|
let ge = parseFloat(Z.paddingLeft) + parseFloat(Z.paddingRight);
|
|
2354
|
-
E.forEach((
|
|
2355
|
-
ge += G(
|
|
2358
|
+
E.forEach((yt) => {
|
|
2359
|
+
ge += G(yt);
|
|
2356
2360
|
});
|
|
2357
|
-
const
|
|
2358
|
-
M.value = q - ge - E.length *
|
|
2361
|
+
const ht = G(_.querySelector(".v-field .v-field__clearable")), bt = G(_.querySelector(".v-field .v-field__append-inner")), gt = 2;
|
|
2362
|
+
M.value = q - ge - E.length * gt - bt < ht;
|
|
2359
2363
|
} else
|
|
2360
2364
|
M.value = !1;
|
|
2361
2365
|
}
|
|
@@ -2363,7 +2367,7 @@ const yl = {
|
|
|
2363
2367
|
const _ = w.target;
|
|
2364
2368
|
_ instanceof HTMLElement && _.closest(".v-chip__close") && (w.stopPropagation(), w.preventDefault());
|
|
2365
2369
|
}
|
|
2366
|
-
|
|
2370
|
+
ue(
|
|
2367
2371
|
d,
|
|
2368
2372
|
(w) => {
|
|
2369
2373
|
S.value.readonly || Le(() => {
|
|
@@ -2372,16 +2376,16 @@ const yl = {
|
|
|
2372
2376
|
});
|
|
2373
2377
|
},
|
|
2374
2378
|
{ deep: !0 }
|
|
2375
|
-
),
|
|
2379
|
+
), ue(
|
|
2376
2380
|
k,
|
|
2377
2381
|
(w) => {
|
|
2378
2382
|
if (!j.value) {
|
|
2379
2383
|
const _ = ee(w, a.value);
|
|
2380
|
-
|
|
2384
|
+
Ve(_, d, a.value, !1, A.value);
|
|
2381
2385
|
}
|
|
2382
2386
|
},
|
|
2383
2387
|
{ deep: !0 }
|
|
2384
|
-
),
|
|
2388
|
+
), ue(j, () => {
|
|
2385
2389
|
j.value || ne();
|
|
2386
2390
|
});
|
|
2387
2391
|
function he() {
|
|
@@ -2390,9 +2394,9 @@ const yl = {
|
|
|
2390
2394
|
function be() {
|
|
2391
2395
|
if (he(), S.value.readonly || r.value) return;
|
|
2392
2396
|
const w = ee(d.value, a.value);
|
|
2393
|
-
|
|
2397
|
+
Ve(w, d, a.value, !1, A.value), X(w);
|
|
2394
2398
|
}
|
|
2395
|
-
function
|
|
2399
|
+
function pt(w, _) {
|
|
2396
2400
|
if (w.stopPropagation(), S.value.readonly || r.value) {
|
|
2397
2401
|
r.value && (d.value = d.value.filter((Q) => Q !== _));
|
|
2398
2402
|
return;
|
|
@@ -2401,34 +2405,34 @@ const yl = {
|
|
|
2401
2405
|
a.value && Array.isArray(d.value) ? q = ee(
|
|
2402
2406
|
d.value.filter((Q) => Q !== _),
|
|
2403
2407
|
a.value
|
|
2404
|
-
) : q = null,
|
|
2408
|
+
) : q = null, Ve(q, d, a.value, !1, A.value), X(q);
|
|
2405
2409
|
}
|
|
2406
2410
|
function Pe(w, _) {
|
|
2407
2411
|
return _e(this, null, function* () {
|
|
2408
2412
|
if (S.value.readonly || (v.value = w, l.value || n.fetchChoices === void 0)) return;
|
|
2409
2413
|
const q = ++m.value;
|
|
2410
|
-
|
|
2414
|
+
O.value = !0;
|
|
2411
2415
|
try {
|
|
2412
2416
|
const Q = Ie(
|
|
2413
2417
|
A.value,
|
|
2414
2418
|
ee(d.value, a.value)
|
|
2415
2419
|
), E = yield n.fetchChoices(w, _);
|
|
2416
2420
|
if (q !== m.value) return;
|
|
2417
|
-
U.value =
|
|
2421
|
+
U.value = Rt([...Q, ...E], "id"), P.value = !0;
|
|
2418
2422
|
} finally {
|
|
2419
|
-
|
|
2423
|
+
O.value = !1;
|
|
2420
2424
|
}
|
|
2421
2425
|
});
|
|
2422
2426
|
}
|
|
2423
2427
|
function ze() {
|
|
2424
2428
|
let w = k.value;
|
|
2425
|
-
!s.value && w == null && $.value.length && (w = $.value[0].value), w = ee(w, a.value),
|
|
2429
|
+
!s.value && w == null && $.value.length && (w = $.value[0].value), w = ee(w, a.value), Ve(w, d, a.value, r.value, A.value), h(w), X(w);
|
|
2426
2430
|
}
|
|
2427
2431
|
return ze(), n.fetchChoices !== void 0 && Pe(void 0, k.value).then(() => {
|
|
2428
2432
|
ze();
|
|
2429
2433
|
}), (w, _) => {
|
|
2430
2434
|
const q = N("v-chip"), Q = N("v-list-item");
|
|
2431
|
-
return o(u) ? (
|
|
2435
|
+
return o(u) ? (V(), R(je(o(r) ? "v-combobox" : "v-autocomplete"), z({
|
|
2432
2436
|
key: 0,
|
|
2433
2437
|
ref_key: "dfSelectRef",
|
|
2434
2438
|
ref: i,
|
|
@@ -2442,7 +2446,7 @@ const yl = {
|
|
|
2442
2446
|
"closable-chips": o(s) || o(a) && d.value.length > 1,
|
|
2443
2447
|
clearable: o(s),
|
|
2444
2448
|
multiple: o(a),
|
|
2445
|
-
loading:
|
|
2449
|
+
loading: O.value,
|
|
2446
2450
|
"hide-selected": !1,
|
|
2447
2451
|
"aria-describedby": o(S).helpText ? `${o(S).name}-help` : null,
|
|
2448
2452
|
"menu-props": { maxHeight: "400" },
|
|
@@ -2455,19 +2459,19 @@ const yl = {
|
|
|
2455
2459
|
onMousedownCapture: _[4] || (_[4] = (E) => T(E))
|
|
2456
2460
|
}), Ne({
|
|
2457
2461
|
chip: y(({ item: E }) => [
|
|
2458
|
-
(
|
|
2462
|
+
(V(), R(q, {
|
|
2459
2463
|
key: E.value,
|
|
2460
2464
|
label: "",
|
|
2461
2465
|
size: "small",
|
|
2462
2466
|
class: "d-flex align-middle",
|
|
2463
2467
|
variant: o(a) ? "tonal" : "text",
|
|
2464
2468
|
closable: o(a),
|
|
2465
|
-
"onClick:close": (Z) =>
|
|
2469
|
+
"onClick:close": (Z) => pt(Z, E.value)
|
|
2466
2470
|
}, {
|
|
2467
2471
|
prepend: y(() => {
|
|
2468
2472
|
var Z;
|
|
2469
2473
|
return [
|
|
2470
|
-
(Z = E.raw) != null && Z.icon ? (
|
|
2474
|
+
(Z = E.raw) != null && Z.icon ? (V(), R(o(xe), {
|
|
2471
2475
|
key: 0,
|
|
2472
2476
|
class: "me-1",
|
|
2473
2477
|
name: E.raw.icon
|
|
@@ -2475,7 +2479,7 @@ const yl = {
|
|
|
2475
2479
|
];
|
|
2476
2480
|
}),
|
|
2477
2481
|
default: y(() => [
|
|
2478
|
-
|
|
2482
|
+
de("span", {
|
|
2479
2483
|
class: le({ "text-body-1": !o(a) })
|
|
2480
2484
|
}, Ue(E.title), 3)
|
|
2481
2485
|
]),
|
|
@@ -2485,7 +2489,7 @@ const yl = {
|
|
|
2485
2489
|
label: y((E) => [
|
|
2486
2490
|
I(o(fe), {
|
|
2487
2491
|
data: E,
|
|
2488
|
-
label: o(
|
|
2492
|
+
label: o(C)
|
|
2489
2493
|
}, null, 8, ["data", "label"])
|
|
2490
2494
|
]),
|
|
2491
2495
|
item: y(({ props: E, item: Z }) => [
|
|
@@ -2493,7 +2497,7 @@ const yl = {
|
|
|
2493
2497
|
prepend: y(() => {
|
|
2494
2498
|
var ge;
|
|
2495
2499
|
return [
|
|
2496
|
-
(ge = Z.raw) != null && ge.icon ? (
|
|
2500
|
+
(ge = Z.raw) != null && ge.icon ? (V(), Y("span", wl, [
|
|
2497
2501
|
I(o(xe), {
|
|
2498
2502
|
class: "action-icon",
|
|
2499
2503
|
name: Z.raw.icon
|
|
@@ -2529,12 +2533,12 @@ const yl = {
|
|
|
2529
2533
|
]), 1040, ["modelValue", "class", "items", "closable-chips", "clearable", "multiple", "loading", "aria-describedby", "search"])) : H("", !0);
|
|
2530
2534
|
};
|
|
2531
2535
|
}
|
|
2532
|
-
}),
|
|
2536
|
+
}), Cl = (e, t) => {
|
|
2533
2537
|
const n = e.__vccOpts || e;
|
|
2534
2538
|
for (const [l, a] of t)
|
|
2535
2539
|
n[l] = a;
|
|
2536
2540
|
return n;
|
|
2537
|
-
}, Vl = /* @__PURE__ */ kl
|
|
2541
|
+
}, Vl = /* @__PURE__ */ Cl(kl, [["__scopeId", "data-v-7e5aa3b6"]]), jl = /* @__PURE__ */ K({
|
|
2538
2542
|
__name: "df-text-area",
|
|
2539
2543
|
props: /* @__PURE__ */ ae({
|
|
2540
2544
|
rows: {},
|
|
@@ -2553,7 +2557,7 @@ const yl = {
|
|
|
2553
2557
|
passthroughAttrs: {},
|
|
2554
2558
|
density: {},
|
|
2555
2559
|
variant: {}
|
|
2556
|
-
},
|
|
2560
|
+
}, W(B({}, re), {
|
|
2557
2561
|
rows: void 0,
|
|
2558
2562
|
maxRows: void 0
|
|
2559
2563
|
})),
|
|
@@ -2562,17 +2566,17 @@ const yl = {
|
|
|
2562
2566
|
const n = e, l = t, { densityClass: a, isRendered: r, label: s, showErrors: c, touched: g, value: i, visibilityClass: f, vuetifyBindings: u } = te(
|
|
2563
2567
|
n,
|
|
2564
2568
|
l
|
|
2565
|
-
), { cssClass:
|
|
2569
|
+
), { cssClass: C } = Se(n);
|
|
2566
2570
|
return (x, p) => {
|
|
2567
2571
|
const k = N("v-textarea");
|
|
2568
|
-
return o(r) ? (
|
|
2572
|
+
return o(r) ? (V(), Y("div", {
|
|
2569
2573
|
key: 0,
|
|
2570
2574
|
class: le(["df-textarea-container", [o(a), o(f)]])
|
|
2571
2575
|
}, [
|
|
2572
2576
|
I(k, z({
|
|
2573
2577
|
modelValue: o(i),
|
|
2574
|
-
"onUpdate:modelValue": p[0] || (p[0] = (D) =>
|
|
2575
|
-
class: o(
|
|
2578
|
+
"onUpdate:modelValue": p[0] || (p[0] = (D) => ce(i) ? i.value = D : null),
|
|
2579
|
+
class: o(C),
|
|
2576
2580
|
rows: e.rows,
|
|
2577
2581
|
"auto-grow": (e.maxRows || 0) > 0,
|
|
2578
2582
|
"max-rows": e.maxRows
|
|
@@ -2596,84 +2600,85 @@ const yl = {
|
|
|
2596
2600
|
], 2)) : H("", !0);
|
|
2597
2601
|
};
|
|
2598
2602
|
}
|
|
2599
|
-
}),
|
|
2603
|
+
}), Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2600
2604
|
__proto__: null,
|
|
2601
|
-
DfActions:
|
|
2602
|
-
DfCheckbox:
|
|
2603
|
-
DfColor:
|
|
2604
|
-
DfDateTime:
|
|
2605
|
-
DfFile:
|
|
2606
|
-
DfInput:
|
|
2605
|
+
DfActions: sl,
|
|
2606
|
+
DfCheckbox: ul,
|
|
2607
|
+
DfColor: cl,
|
|
2608
|
+
DfDateTime: dl,
|
|
2609
|
+
DfFile: ml,
|
|
2610
|
+
DfInput: fl,
|
|
2607
2611
|
DfInputHint: oe,
|
|
2608
|
-
DfRtfEditor:
|
|
2612
|
+
DfRtfEditor: gl,
|
|
2609
2613
|
DfSelect: Vl,
|
|
2610
|
-
DfTextArea:
|
|
2611
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2614
|
+
DfTextArea: jl
|
|
2615
|
+
}, Symbol.toStringTag, { value: "Module" })), xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2612
2616
|
__proto__: null,
|
|
2613
|
-
VAutocomplete:
|
|
2614
|
-
VBtn:
|
|
2615
|
-
VCheckbox:
|
|
2616
|
-
VChip:
|
|
2617
|
-
VCol:
|
|
2618
|
-
VColorPicker:
|
|
2619
|
-
VCombobox:
|
|
2620
|
-
VConfirmEdit:
|
|
2621
|
-
VDatePicker:
|
|
2617
|
+
VAutocomplete: $n,
|
|
2618
|
+
VBtn: Mn,
|
|
2619
|
+
VCheckbox: Fn,
|
|
2620
|
+
VChip: Rn,
|
|
2621
|
+
VCol: zn,
|
|
2622
|
+
VColorPicker: Nn,
|
|
2623
|
+
VCombobox: Ln,
|
|
2624
|
+
VConfirmEdit: Un,
|
|
2625
|
+
VDatePicker: On,
|
|
2622
2626
|
VField: Wn,
|
|
2623
|
-
VFileInput:
|
|
2624
|
-
VIcon:
|
|
2625
|
-
VImg:
|
|
2626
|
-
VInput:
|
|
2627
|
-
VListItem:
|
|
2628
|
-
VMenu:
|
|
2629
|
-
VNumberInput:
|
|
2630
|
-
VProgressLinear:
|
|
2631
|
-
VRow:
|
|
2632
|
-
VSelect:
|
|
2633
|
-
VSwitch:
|
|
2634
|
-
VTextField:
|
|
2635
|
-
VTextarea:
|
|
2636
|
-
VTimePicker:
|
|
2637
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2627
|
+
VFileInput: Hn,
|
|
2628
|
+
VIcon: Xn,
|
|
2629
|
+
VImg: qn,
|
|
2630
|
+
VInput: Gn,
|
|
2631
|
+
VListItem: Yn,
|
|
2632
|
+
VMenu: Qn,
|
|
2633
|
+
VNumberInput: Zn,
|
|
2634
|
+
VProgressLinear: Jn,
|
|
2635
|
+
VRow: Kn,
|
|
2636
|
+
VSelect: eo,
|
|
2637
|
+
VSwitch: to,
|
|
2638
|
+
VTextField: oo,
|
|
2639
|
+
VTextarea: no,
|
|
2640
|
+
VTimePicker: lo
|
|
2641
|
+
}, Symbol.toStringTag, { value: "Module" })), ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2638
2642
|
__proto__: null
|
|
2639
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2643
|
+
}, Symbol.toStringTag, { value: "Module" })), sa = {
|
|
2640
2644
|
install: (e, t) => {
|
|
2641
2645
|
var n, l;
|
|
2642
|
-
e.use(
|
|
2646
|
+
e.use(bo), e.provide(ft, t != null ? t : {}), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(Tl).map(([a, r]) => e.component(a, r)), (l = t == null ? void 0 : t.registerVuetifyComponents) != null && l && Object.entries(xl).map(([a, r]) => e.component(a, r));
|
|
2643
2647
|
}
|
|
2644
2648
|
};
|
|
2645
2649
|
export {
|
|
2646
2650
|
Be as Action,
|
|
2647
2651
|
J as ActionDisplayStyle,
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2652
|
+
Jo as DateTimeLocaleConfig,
|
|
2653
|
+
sl as DfActions,
|
|
2654
|
+
ul as DfCheckbox,
|
|
2655
|
+
cl as DfColor,
|
|
2656
|
+
dl as DfDateTime,
|
|
2657
|
+
ml as DfFile,
|
|
2658
|
+
fl as DfInput,
|
|
2659
|
+
ia as DfInputComponentProps,
|
|
2660
|
+
Tl as DfInputComponents,
|
|
2657
2661
|
oe as DfInputHint,
|
|
2658
2662
|
fe as DfLabel,
|
|
2659
|
-
|
|
2663
|
+
gl as DfRtfEditor,
|
|
2660
2664
|
Vl as DfSelect,
|
|
2661
|
-
|
|
2662
|
-
|
|
2665
|
+
jl as DfTextArea,
|
|
2666
|
+
sa as DynamicFormsInputs,
|
|
2663
2667
|
He as InputBase,
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
+
el as Label,
|
|
2669
|
+
al as ResponsiveActionRenderOptions,
|
|
2670
|
+
nl as ResponsiveRenderOptions,
|
|
2671
|
+
xl as VuetifyComponents,
|
|
2668
2672
|
De as ckEditorLanguage,
|
|
2669
2673
|
re as defaultBaseProps,
|
|
2670
2674
|
nt as defaultDisplayStyle,
|
|
2671
|
-
|
|
2675
|
+
ol as getBreakpointName,
|
|
2676
|
+
vt as getRenderOptionsForBreakpoint,
|
|
2672
2677
|
ot as responsiveBreakpoints,
|
|
2673
|
-
|
|
2678
|
+
ra as setCkEditorLanguage,
|
|
2674
2679
|
L as translatableStrings,
|
|
2675
|
-
|
|
2676
|
-
|
|
2680
|
+
aa as translateStrings,
|
|
2681
|
+
ll as useBreakpoint,
|
|
2677
2682
|
te as useInputBase,
|
|
2678
2683
|
ft as vuetifyInputsSettingsKey
|
|
2679
2684
|
};
|