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