@dynamicforms/vuetify-inputs 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Ce = (e,
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var st = Object.defineProperty, ut = Object.defineProperties;
|
|
2
|
+
var ct = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var $e = Object.getOwnPropertySymbols;
|
|
4
|
+
var dt = Object.prototype.hasOwnProperty, mt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ce = (e, n, o) => n in e ? st(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o, S = (e, n) => {
|
|
6
|
+
for (var o in n || (n = {}))
|
|
7
|
+
dt.call(n, o) && Ce(e, o, n[o]);
|
|
8
|
+
if ($e)
|
|
9
|
+
for (var o of $e(n))
|
|
10
|
+
mt.call(n, o) && Ce(e, o, n[o]);
|
|
11
11
|
return e;
|
|
12
|
-
}, L = (e,
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
12
|
+
}, L = (e, n) => ut(e, ct(n));
|
|
13
|
+
var Me = (e, n, o) => Ce(e, typeof n != "symbol" ? n + "" : n, o);
|
|
14
|
+
var ye = (e, n, o) => new Promise((l, d) => {
|
|
15
|
+
var t = (s) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
r(o.next(s));
|
|
18
|
+
} catch (u) {
|
|
19
|
+
d(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (s) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
r(o.throw(s));
|
|
24
|
+
} catch (u) {
|
|
25
|
+
d(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, r = (s) => s.done ? l(s.value) : Promise.resolve(s.value).then(t, a);
|
|
28
|
+
r((o = o.apply(e, n)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
31
|
-
import { defineComponent as
|
|
32
|
-
import { debounce as
|
|
33
|
-
import { CachedIcon as
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import { useDisplay as
|
|
37
|
-
import { format 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 Ne from "vue";
|
|
31
|
+
import { defineComponent as U, mergeModels as Le, useModel as ft, ref as M, watch as ue, onMounted as Ze, markRaw as pt, onBeforeUnmount as Je, createBlock as E, openBlock as D, resolveDynamicComponent as be, version as ht, isRef as le, computed as T, resolveComponent as $, createElementBlock as W, normalizeClass as G, createCommentVNode as F, Fragment as Be, unref as i, createTextVNode as vt, toDisplayString as Pe, inject as Te, h as we, createSlots as Ee, withCtx as j, createVNode as I, renderSlot as se, normalizeProps as ee, guardReactiveProps as te, createElementVNode as oe, renderList as bt, withModifiers as gt, mergeDefaults as Y, mergeProps as R, normalizeStyle as et, toRefs as je, withKeys as Fe, useCssVars as yt, nextTick as Ue } from "vue";
|
|
32
|
+
import { debounce as wt, isString as ne, isEmpty as he, isObjectLike as kt, isBoolean as Re, clone as Vt, toNumber as We, isNaN as ze, isArray as He, castArray as tt, first as nt, unionBy as _t } from "lodash-es";
|
|
33
|
+
import { CachedIcon as ge } from "vue-cached-icon";
|
|
34
|
+
import Ke, { MdString as jt, ValidationErrorRenderContent as Ct, DisplayMode as q, Action as Tt } from "@dynamicforms/vue-forms";
|
|
35
|
+
import lt from "vue-markdown-render";
|
|
36
|
+
import { useDisplay as Dt } from "vuetify";
|
|
37
|
+
import { format as me, parse as At } from "date-fns";
|
|
38
|
+
import { AccessibilityHelp as xt, Alignment as It, AutoImage as Bt, AutoLink as Et, Autosave as Pt, BalloonToolbar as St, BlockQuote as Ot, Bold as $t, CloudServices as Mt, Essentials as Nt, GeneralHtmlSupport as Lt, Heading as Ft, HorizontalLine as Ut, ImageBlock as Rt, ImageCaption as Wt, ImageInline as zt, ImageInsertViaUrl as Ht, ImageResize as Kt, ImageStyle as qt, ImageToolbar as Xt, ImageUpload as Gt, Indent as Yt, IndentBlock as Qt, Italic as Zt, Link as Jt, List as en, Autoformat as tn, MediaEmbed as nn, Paragraph as ln, PasteFromMarkdownExperimental as on, PasteFromOffice as an, SelectAll as rn, Style as sn, Table as un, TableCellProperties as cn, TableColumnResize as dn, TableProperties as mn, TableToolbar as fn, Undo as pn, TextTransformation as hn, Base64UploadAdapter as vn, ClassicEditor as bn } from "ckeditor5";
|
|
39
|
+
import { VAutocomplete as gn } from "vuetify/components/VAutocomplete";
|
|
40
|
+
import { VBtn as yn } from "vuetify/components/VBtn";
|
|
41
|
+
import { VCheckbox as wn } from "vuetify/components/VCheckbox";
|
|
42
|
+
import { VChip as kn } from "vuetify/components/VChip";
|
|
43
|
+
import { VCombobox as Vn } from "vuetify/components/VCombobox";
|
|
44
|
+
import { VColorPicker as _n } from "vuetify/components/VColorPicker";
|
|
45
|
+
import { VConfirmEdit as jn } from "vuetify/components/VConfirmEdit";
|
|
46
|
+
import { VDatePicker as Cn } from "vuetify/components/VDatePicker";
|
|
47
|
+
import { VField as Tn } from "vuetify/components/VField";
|
|
48
|
+
import { VFileInput as Dn } from "vuetify/components/VFileInput";
|
|
49
|
+
import { VCol as An, VRow as xn } from "vuetify/components/VGrid";
|
|
50
|
+
import { VIcon as In } from "vuetify/components/VIcon";
|
|
51
|
+
import { VImg as Bn } from "vuetify/components/VImg";
|
|
52
|
+
import { VInput as En } from "vuetify/components/VInput";
|
|
53
|
+
import { VListItem as Pn } from "vuetify/components/VList";
|
|
54
|
+
import { VMenu as Sn } from "vuetify/components/VMenu";
|
|
55
|
+
import { VNumberInput as On } from "vuetify/components/VNumberInput";
|
|
56
|
+
import { VProgressLinear as $n } from "vuetify/components/VProgressLinear";
|
|
57
|
+
import { VSelect as Mn } from "vuetify/components/VSelect";
|
|
58
|
+
import { VSwitch as Nn } from "vuetify/components/VSwitch";
|
|
59
|
+
import { VTextarea as Ln } from "vuetify/components/VTextarea";
|
|
60
|
+
import { VTextField as Fn } from "vuetify/components/VTextField";
|
|
61
|
+
import { VTimePicker as Un } from "vuetify/components/VTimePicker";
|
|
62
62
|
/**
|
|
63
63
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
64
64
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -67,17 +67,17 @@ import { VTimePicker as An } from "vuetify/components/VTimePicker";
|
|
|
67
67
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
68
68
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
69
69
|
*/
|
|
70
|
-
new Array(256).fill("").map((e,
|
|
70
|
+
new Array(256).fill("").map((e, n) => ("0" + n.toString(16)).slice(-2));
|
|
71
71
|
/**
|
|
72
72
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
73
73
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
74
74
|
*/
|
|
75
|
-
function
|
|
76
|
-
const
|
|
75
|
+
function Rn(e, n) {
|
|
76
|
+
const o = e.extraPlugins || [];
|
|
77
77
|
return L(S({}, e), {
|
|
78
78
|
extraPlugins: [
|
|
79
|
-
...
|
|
80
|
-
...
|
|
79
|
+
...o,
|
|
80
|
+
...n.filter((l) => !o.includes(l))
|
|
81
81
|
]
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -85,45 +85,45 @@ function Nn(e, t) {
|
|
|
85
85
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
86
86
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
87
87
|
*/
|
|
88
|
-
function
|
|
88
|
+
function ot(e) {
|
|
89
89
|
return !!e && /^\d+\.\d+\.\d+/.test(e);
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
93
93
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
94
94
|
*/
|
|
95
|
-
function
|
|
96
|
-
return e ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((
|
|
95
|
+
function at(e) {
|
|
96
|
+
return e ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((n) => e.includes(n)) : !1;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
98
|
+
function Wn(e) {
|
|
99
|
+
return ot(e) || at(e);
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
102
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
103
103
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
104
104
|
*/
|
|
105
|
-
function
|
|
106
|
-
if (!
|
|
105
|
+
function zn(e) {
|
|
106
|
+
if (!ot(e))
|
|
107
107
|
throw new Error(`Invalid semantic version: ${e || "<blank>"}.`);
|
|
108
|
-
const [
|
|
108
|
+
const [n, o, l] = e.split(".");
|
|
109
109
|
return {
|
|
110
|
-
major: Number.parseInt(
|
|
111
|
-
minor: Number.parseInt(
|
|
112
|
-
patch: Number.parseInt(
|
|
110
|
+
major: Number.parseInt(n, 10),
|
|
111
|
+
minor: Number.parseInt(o, 10),
|
|
112
|
+
patch: Number.parseInt(l, 10)
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
116
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
117
117
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
118
118
|
*/
|
|
119
|
-
function
|
|
120
|
-
if (
|
|
119
|
+
function Hn(e) {
|
|
120
|
+
if (at(e))
|
|
121
121
|
return 3;
|
|
122
|
-
const { major:
|
|
122
|
+
const { major: n } = zn(e);
|
|
123
123
|
switch (!0) {
|
|
124
|
-
case
|
|
124
|
+
case n >= 44:
|
|
125
125
|
return 3;
|
|
126
|
-
case
|
|
126
|
+
case n >= 38:
|
|
127
127
|
return 2;
|
|
128
128
|
default:
|
|
129
129
|
return 1;
|
|
@@ -133,10 +133,10 @@ function Ln(e) {
|
|
|
133
133
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
134
134
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
135
135
|
*/
|
|
136
|
-
function
|
|
137
|
-
const { CKEDITOR_VERSION: e, CKEDITOR:
|
|
138
|
-
return
|
|
139
|
-
source:
|
|
136
|
+
function Kn() {
|
|
137
|
+
const { CKEDITOR_VERSION: e, CKEDITOR: n } = window;
|
|
138
|
+
return Wn(e) ? {
|
|
139
|
+
source: n ? "cdn" : "npm",
|
|
140
140
|
version: e
|
|
141
141
|
} : null;
|
|
142
142
|
}
|
|
@@ -144,16 +144,16 @@ function Un() {
|
|
|
144
144
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
145
145
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
146
146
|
*/
|
|
147
|
-
function
|
|
148
|
-
const e =
|
|
149
|
-
return e ?
|
|
147
|
+
function qn() {
|
|
148
|
+
const e = Kn();
|
|
149
|
+
return e ? Hn(e.version) : null;
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
152
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
153
153
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
154
154
|
*/
|
|
155
|
-
function
|
|
156
|
-
switch (
|
|
155
|
+
function rt(e, n) {
|
|
156
|
+
switch (n || (n = qn() || void 0), n) {
|
|
157
157
|
case 1:
|
|
158
158
|
case 2:
|
|
159
159
|
return e === void 0;
|
|
@@ -167,10 +167,10 @@ function et(e, t) {
|
|
|
167
167
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
168
168
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
169
169
|
*/
|
|
170
|
-
function
|
|
171
|
-
return function(
|
|
172
|
-
|
|
173
|
-
|
|
170
|
+
function Xn(e, n) {
|
|
171
|
+
return function(l) {
|
|
172
|
+
rt(l.config.get("licenseKey")) || l.on("collectUsageData", (d, { setUsageData: t }) => {
|
|
173
|
+
t(`integration.${e}`, n);
|
|
174
174
|
});
|
|
175
175
|
};
|
|
176
176
|
}
|
|
@@ -178,31 +178,31 @@ function Rn(e, t) {
|
|
|
178
178
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
179
179
|
* For licensing, see LICENSE.md.
|
|
180
180
|
*/
|
|
181
|
-
const
|
|
181
|
+
const Gn = Xn(
|
|
182
182
|
"vue",
|
|
183
183
|
{
|
|
184
184
|
version: "7.3.0",
|
|
185
|
-
frameworkVersion:
|
|
185
|
+
frameworkVersion: ht
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
/**
|
|
189
189
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
190
190
|
* For licensing, see LICENSE.md.
|
|
191
191
|
*/
|
|
192
|
-
function
|
|
193
|
-
return
|
|
192
|
+
function Yn(e) {
|
|
193
|
+
return rt(e.licenseKey) ? e : Rn(e, [
|
|
194
194
|
/**
|
|
195
195
|
* This part of the code is not executed in open-source implementations using a GPL key.
|
|
196
196
|
* It only runs when a specific license key is provided. If you are uncertain whether
|
|
197
197
|
* this applies to your installation, please contact our support team.
|
|
198
198
|
*/
|
|
199
|
-
|
|
199
|
+
Gn
|
|
200
200
|
]);
|
|
201
201
|
}
|
|
202
|
-
const
|
|
202
|
+
const De = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Qn = 300, Zn = /* @__PURE__ */ U({
|
|
203
203
|
name: "CKEditor",
|
|
204
204
|
__name: "ckeditor",
|
|
205
|
-
props: /* @__PURE__ */
|
|
205
|
+
props: /* @__PURE__ */ Le({
|
|
206
206
|
editor: {},
|
|
207
207
|
config: { default: () => ({}) },
|
|
208
208
|
tagName: { default: "div" },
|
|
@@ -212,51 +212,51 @@ const _e = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Hn = 300, Kn =
|
|
|
212
212
|
modelValue: { type: String, default: "" },
|
|
213
213
|
modelModifiers: {}
|
|
214
214
|
}),
|
|
215
|
-
emits: /* @__PURE__ */
|
|
216
|
-
setup(e, { expose:
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
-
instance:
|
|
220
|
-
lastEditorData:
|
|
221
|
-
}),
|
|
222
|
-
|
|
223
|
-
}),
|
|
224
|
-
m ?
|
|
215
|
+
emits: /* @__PURE__ */ Le(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
|
|
216
|
+
setup(e, { expose: n, emit: o }) {
|
|
217
|
+
const l = ft(e, "modelValue"), d = e, t = o, a = M(), r = M(), s = M();
|
|
218
|
+
n({
|
|
219
|
+
instance: r,
|
|
220
|
+
lastEditorData: s
|
|
221
|
+
}), ue(l, (m) => {
|
|
222
|
+
r.value && m !== s.value && r.value.data.set(m);
|
|
223
|
+
}), ue(() => d.disabled, (m) => {
|
|
224
|
+
m ? r.value.enableReadOnlyMode(De) : r.value.disableReadOnlyMode(De);
|
|
225
225
|
});
|
|
226
|
-
function
|
|
226
|
+
function u() {
|
|
227
227
|
const m = window.CKEDITOR_VERSION;
|
|
228
228
|
if (!m)
|
|
229
229
|
return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
|
|
230
|
-
const [
|
|
231
|
-
|
|
230
|
+
const [g] = m.split(".").map(Number);
|
|
231
|
+
g >= 42 || m.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
const
|
|
235
|
-
if (
|
|
233
|
+
function c(m) {
|
|
234
|
+
const g = wt((f) => {
|
|
235
|
+
if (d.disableTwoWayDataBinding)
|
|
236
236
|
return;
|
|
237
|
-
const
|
|
238
|
-
|
|
239
|
-
},
|
|
240
|
-
m.model.document.on("change:data",
|
|
241
|
-
|
|
242
|
-
}), m.editing.view.document.on("blur", (
|
|
243
|
-
|
|
237
|
+
const b = s.value = m.data.get();
|
|
238
|
+
t("update:modelValue", b, f, m), t("input", b, f, m);
|
|
239
|
+
}, Qn, { leading: !0 });
|
|
240
|
+
m.model.document.on("change:data", g), m.editing.view.document.on("focus", (f) => {
|
|
241
|
+
t("focus", f, m);
|
|
242
|
+
}), m.editing.view.document.on("blur", (f) => {
|
|
243
|
+
t("blur", f, m);
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
|
-
return
|
|
247
|
-
const m =
|
|
248
|
-
Object.assign({},
|
|
246
|
+
return u(), Ze(() => {
|
|
247
|
+
const m = Yn(
|
|
248
|
+
Object.assign({}, d.config)
|
|
249
249
|
);
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}).catch((
|
|
253
|
-
console.error(
|
|
250
|
+
l.value && (m.initialData = l.value), d.editor.create(a.value, m).then((g) => {
|
|
251
|
+
r.value = pt(g), c(g), l.value !== m.initialData && g.data.set(l.value), d.disabled && g.enableReadOnlyMode(De), t("ready", g);
|
|
252
|
+
}).catch((g) => {
|
|
253
|
+
console.error(g);
|
|
254
254
|
});
|
|
255
|
-
}),
|
|
256
|
-
|
|
257
|
-
}), (m,
|
|
255
|
+
}), Je(() => {
|
|
256
|
+
r.value && (r.value.destroy(), r.value = void 0), t("destroy");
|
|
257
|
+
}), (m, g) => (D(), E(be(m.tagName), {
|
|
258
258
|
ref_key: "element",
|
|
259
|
-
ref:
|
|
259
|
+
ref: a
|
|
260
260
|
}, null, 512));
|
|
261
261
|
}
|
|
262
262
|
});
|
|
@@ -265,24 +265,24 @@ const _e = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Hn = 300, Kn =
|
|
|
265
265
|
* For licensing, see LICENSE.md.
|
|
266
266
|
*/
|
|
267
267
|
/* istanbul ignore if -- @preserve */
|
|
268
|
-
if (!
|
|
268
|
+
if (!Ne.version || !Ne.version.startsWith("3."))
|
|
269
269
|
throw new Error(
|
|
270
270
|
"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"
|
|
271
271
|
);
|
|
272
|
-
const
|
|
272
|
+
const Jn = {
|
|
273
273
|
/**
|
|
274
274
|
* Installs the plugin, registering the `<ckeditor>` component.
|
|
275
275
|
*
|
|
276
276
|
* @param app The application instance.
|
|
277
277
|
*/
|
|
278
278
|
install(e) {
|
|
279
|
-
e.component("Ckeditor",
|
|
279
|
+
e.component("Ckeditor", Zn);
|
|
280
280
|
}
|
|
281
281
|
};
|
|
282
|
-
function
|
|
282
|
+
function el(e) {
|
|
283
283
|
return e.one !== void 0;
|
|
284
284
|
}
|
|
285
|
-
const
|
|
285
|
+
const tl = {
|
|
286
286
|
lessThanXSeconds: {
|
|
287
287
|
present: {
|
|
288
288
|
one: "manj kot {{count}} sekunda",
|
|
@@ -559,7 +559,7 @@ const qn = {
|
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
};
|
|
562
|
-
function
|
|
562
|
+
function nl(e) {
|
|
563
563
|
switch (e % 100) {
|
|
564
564
|
case 1:
|
|
565
565
|
return "one";
|
|
@@ -572,53 +572,53 @@ function Yn(e) {
|
|
|
572
572
|
return "other";
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
const
|
|
576
|
-
let
|
|
577
|
-
|
|
578
|
-
const
|
|
579
|
-
if (typeof
|
|
580
|
-
|
|
575
|
+
const ll = (e, n, o) => {
|
|
576
|
+
let l = "", d = "present";
|
|
577
|
+
o != null && o.addSuffix && (o.comparison && o.comparison > 0 ? (d = "future", l = "čez ") : (d = "past", l = "pred "));
|
|
578
|
+
const t = tl[e];
|
|
579
|
+
if (typeof t == "string")
|
|
580
|
+
l += t;
|
|
581
581
|
else {
|
|
582
|
-
const
|
|
583
|
-
|
|
582
|
+
const a = nl(n);
|
|
583
|
+
el(t) ? l += t[a].replace("{{count}}", String(n)) : l += t[d][a].replace("{{count}}", String(n));
|
|
584
584
|
}
|
|
585
|
-
return
|
|
585
|
+
return l;
|
|
586
586
|
};
|
|
587
|
-
function
|
|
588
|
-
return (
|
|
589
|
-
const
|
|
590
|
-
return e.formats[
|
|
587
|
+
function Ae(e) {
|
|
588
|
+
return (n = {}) => {
|
|
589
|
+
const o = n.width ? String(n.width) : e.defaultWidth;
|
|
590
|
+
return e.formats[o] || e.formats[e.defaultWidth];
|
|
591
591
|
};
|
|
592
592
|
}
|
|
593
|
-
const
|
|
593
|
+
const ol = {
|
|
594
594
|
full: "EEEE, dd. MMMM y",
|
|
595
595
|
long: "dd. MMMM y",
|
|
596
596
|
medium: "d. MMM y",
|
|
597
597
|
short: "d. MM. yy"
|
|
598
|
-
},
|
|
598
|
+
}, al = {
|
|
599
599
|
full: "HH:mm:ss zzzz",
|
|
600
600
|
long: "HH:mm:ss z",
|
|
601
601
|
medium: "HH:mm:ss",
|
|
602
602
|
short: "HH:mm"
|
|
603
|
-
},
|
|
603
|
+
}, rl = {
|
|
604
604
|
full: "{{date}} {{time}}",
|
|
605
605
|
long: "{{date}} {{time}}",
|
|
606
606
|
medium: "{{date}} {{time}}",
|
|
607
607
|
short: "{{date}} {{time}}"
|
|
608
|
-
},
|
|
609
|
-
date:
|
|
610
|
-
formats:
|
|
608
|
+
}, il = {
|
|
609
|
+
date: Ae({
|
|
610
|
+
formats: ol,
|
|
611
611
|
defaultWidth: "full"
|
|
612
612
|
}),
|
|
613
|
-
time:
|
|
614
|
-
formats:
|
|
613
|
+
time: Ae({
|
|
614
|
+
formats: al,
|
|
615
615
|
defaultWidth: "full"
|
|
616
616
|
}),
|
|
617
|
-
dateTime:
|
|
618
|
-
formats:
|
|
617
|
+
dateTime: Ae({
|
|
618
|
+
formats: rl,
|
|
619
619
|
defaultWidth: "full"
|
|
620
620
|
})
|
|
621
|
-
},
|
|
621
|
+
}, sl = {
|
|
622
622
|
lastWeek: (e) => {
|
|
623
623
|
switch (e.getDay()) {
|
|
624
624
|
case 0:
|
|
@@ -647,34 +647,34 @@ const Zn = {
|
|
|
647
647
|
}
|
|
648
648
|
},
|
|
649
649
|
other: "P"
|
|
650
|
-
},
|
|
651
|
-
const
|
|
652
|
-
return typeof
|
|
650
|
+
}, ul = (e, n, o, l) => {
|
|
651
|
+
const d = sl[e];
|
|
652
|
+
return typeof d == "function" ? d(n) : d;
|
|
653
653
|
};
|
|
654
|
-
function
|
|
655
|
-
return (
|
|
656
|
-
const
|
|
657
|
-
let
|
|
658
|
-
if (
|
|
659
|
-
const
|
|
660
|
-
|
|
654
|
+
function fe(e) {
|
|
655
|
+
return (n, o) => {
|
|
656
|
+
const l = o != null && o.context ? String(o.context) : "standalone";
|
|
657
|
+
let d;
|
|
658
|
+
if (l === "formatting" && e.formattingValues) {
|
|
659
|
+
const a = e.defaultFormattingWidth || e.defaultWidth, r = o != null && o.width ? String(o.width) : a;
|
|
660
|
+
d = e.formattingValues[r] || e.formattingValues[a];
|
|
661
661
|
} else {
|
|
662
|
-
const
|
|
663
|
-
|
|
662
|
+
const a = e.defaultWidth, r = o != null && o.width ? String(o.width) : e.defaultWidth;
|
|
663
|
+
d = e.values[r] || e.values[a];
|
|
664
664
|
}
|
|
665
|
-
const
|
|
666
|
-
return
|
|
665
|
+
const t = e.argumentCallback ? e.argumentCallback(n) : n;
|
|
666
|
+
return d[t];
|
|
667
667
|
};
|
|
668
668
|
}
|
|
669
|
-
const
|
|
669
|
+
const cl = {
|
|
670
670
|
narrow: ["pr. n. št.", "po n. št."],
|
|
671
671
|
abbreviated: ["pr. n. št.", "po n. št."],
|
|
672
672
|
wide: ["pred našim štetjem", "po našem štetju"]
|
|
673
|
-
},
|
|
673
|
+
}, dl = {
|
|
674
674
|
narrow: ["1", "2", "3", "4"],
|
|
675
675
|
abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."],
|
|
676
676
|
wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"]
|
|
677
|
-
},
|
|
677
|
+
}, ml = {
|
|
678
678
|
narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
|
679
679
|
abbreviated: [
|
|
680
680
|
"jan.",
|
|
@@ -704,7 +704,7 @@ const ao = {
|
|
|
704
704
|
"november",
|
|
705
705
|
"december"
|
|
706
706
|
]
|
|
707
|
-
},
|
|
707
|
+
}, fl = {
|
|
708
708
|
narrow: ["n", "p", "t", "s", "č", "p", "s"],
|
|
709
709
|
short: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
|
710
710
|
abbreviated: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
|
@@ -717,7 +717,7 @@ const ao = {
|
|
|
717
717
|
"petek",
|
|
718
718
|
"sobota"
|
|
719
719
|
]
|
|
720
|
-
},
|
|
720
|
+
}, pl = {
|
|
721
721
|
narrow: {
|
|
722
722
|
am: "d",
|
|
723
723
|
pm: "p",
|
|
@@ -748,7 +748,7 @@ const ao = {
|
|
|
748
748
|
evening: "večer",
|
|
749
749
|
night: "noč"
|
|
750
750
|
}
|
|
751
|
-
},
|
|
751
|
+
}, hl = {
|
|
752
752
|
narrow: {
|
|
753
753
|
am: "d",
|
|
754
754
|
pm: "p",
|
|
@@ -779,88 +779,88 @@ const ao = {
|
|
|
779
779
|
evening: "zvečer",
|
|
780
780
|
night: "ponoči"
|
|
781
781
|
}
|
|
782
|
-
},
|
|
783
|
-
ordinalNumber:
|
|
784
|
-
era:
|
|
785
|
-
values:
|
|
782
|
+
}, vl = (e, n) => Number(e) + ".", bl = {
|
|
783
|
+
ordinalNumber: vl,
|
|
784
|
+
era: fe({
|
|
785
|
+
values: cl,
|
|
786
786
|
defaultWidth: "wide"
|
|
787
787
|
}),
|
|
788
|
-
quarter:
|
|
789
|
-
values:
|
|
788
|
+
quarter: fe({
|
|
789
|
+
values: dl,
|
|
790
790
|
defaultWidth: "wide",
|
|
791
791
|
argumentCallback: (e) => e - 1
|
|
792
792
|
}),
|
|
793
|
-
month:
|
|
794
|
-
values:
|
|
793
|
+
month: fe({
|
|
794
|
+
values: ml,
|
|
795
795
|
defaultWidth: "wide"
|
|
796
796
|
}),
|
|
797
|
-
day:
|
|
798
|
-
values:
|
|
797
|
+
day: fe({
|
|
798
|
+
values: fl,
|
|
799
799
|
defaultWidth: "wide"
|
|
800
800
|
}),
|
|
801
|
-
dayPeriod:
|
|
802
|
-
values:
|
|
801
|
+
dayPeriod: fe({
|
|
802
|
+
values: pl,
|
|
803
803
|
defaultWidth: "wide",
|
|
804
|
-
formattingValues:
|
|
804
|
+
formattingValues: hl,
|
|
805
805
|
defaultFormattingWidth: "wide"
|
|
806
806
|
})
|
|
807
807
|
};
|
|
808
808
|
function pe(e) {
|
|
809
|
-
return (
|
|
810
|
-
const
|
|
811
|
-
if (!
|
|
809
|
+
return (n, o = {}) => {
|
|
810
|
+
const l = o.width, d = l && e.matchPatterns[l] || e.matchPatterns[e.defaultMatchWidth], t = n.match(d);
|
|
811
|
+
if (!t)
|
|
812
812
|
return null;
|
|
813
|
-
const
|
|
813
|
+
const a = t[0], r = l && e.parsePatterns[l] || e.parsePatterns[e.defaultParseWidth], s = Array.isArray(r) ? yl(r, (m) => m.test(a)) : (
|
|
814
814
|
// [TODO] -- I challenge you to fix the type
|
|
815
|
-
|
|
815
|
+
gl(r, (m) => m.test(a))
|
|
816
816
|
);
|
|
817
|
-
let
|
|
818
|
-
|
|
817
|
+
let u;
|
|
818
|
+
u = e.valueCallback ? e.valueCallback(s) : s, u = o.valueCallback ? (
|
|
819
819
|
// [TODO] -- I challenge you to fix the type
|
|
820
|
-
|
|
821
|
-
) :
|
|
822
|
-
const
|
|
823
|
-
return { value:
|
|
820
|
+
o.valueCallback(u)
|
|
821
|
+
) : u;
|
|
822
|
+
const c = n.slice(a.length);
|
|
823
|
+
return { value: u, rest: c };
|
|
824
824
|
};
|
|
825
825
|
}
|
|
826
|
-
function
|
|
827
|
-
for (const
|
|
828
|
-
if (Object.prototype.hasOwnProperty.call(e,
|
|
829
|
-
return
|
|
826
|
+
function gl(e, n) {
|
|
827
|
+
for (const o in e)
|
|
828
|
+
if (Object.prototype.hasOwnProperty.call(e, o) && n(e[o]))
|
|
829
|
+
return o;
|
|
830
830
|
}
|
|
831
|
-
function
|
|
832
|
-
for (let
|
|
833
|
-
if (
|
|
834
|
-
return
|
|
831
|
+
function yl(e, n) {
|
|
832
|
+
for (let o = 0; o < e.length; o++)
|
|
833
|
+
if (n(e[o]))
|
|
834
|
+
return o;
|
|
835
835
|
}
|
|
836
|
-
function
|
|
837
|
-
return (
|
|
838
|
-
const
|
|
839
|
-
if (!
|
|
840
|
-
const
|
|
841
|
-
if (!
|
|
842
|
-
let
|
|
843
|
-
|
|
844
|
-
const
|
|
845
|
-
return { value:
|
|
836
|
+
function wl(e) {
|
|
837
|
+
return (n, o = {}) => {
|
|
838
|
+
const l = n.match(e.matchPattern);
|
|
839
|
+
if (!l) return null;
|
|
840
|
+
const d = l[0], t = n.match(e.parsePattern);
|
|
841
|
+
if (!t) return null;
|
|
842
|
+
let a = e.valueCallback ? e.valueCallback(t[0]) : t[0];
|
|
843
|
+
a = o.valueCallback ? o.valueCallback(a) : a;
|
|
844
|
+
const r = n.slice(d.length);
|
|
845
|
+
return { value: a, rest: r };
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
|
-
const
|
|
848
|
+
const kl = /^(\d+)\./i, Vl = /\d+/i, _l = {
|
|
849
849
|
abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
|
|
850
850
|
wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
|
|
851
|
-
},
|
|
851
|
+
}, jl = {
|
|
852
852
|
any: [/^pr/i, /^(po|na[sš]em)/i]
|
|
853
|
-
},
|
|
853
|
+
}, Cl = {
|
|
854
854
|
narrow: /^[1234]/i,
|
|
855
855
|
abbreviated: /^[1234]\.\s?[čc]et\.?/i,
|
|
856
856
|
wide: /^[1234]\. [čc]etrtletje/i
|
|
857
|
-
},
|
|
857
|
+
}, Tl = {
|
|
858
858
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
859
|
-
},
|
|
859
|
+
}, Dl = {
|
|
860
860
|
narrow: /^[jfmasond]/i,
|
|
861
861
|
abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,
|
|
862
862
|
wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i
|
|
863
|
-
},
|
|
863
|
+
}, Al = {
|
|
864
864
|
narrow: [
|
|
865
865
|
/^j/i,
|
|
866
866
|
/^f/i,
|
|
@@ -903,18 +903,18 @@ const ho = /^(\d+)\./i, bo = /\d+/i, go = {
|
|
|
903
903
|
/^n/i,
|
|
904
904
|
/^d/i
|
|
905
905
|
]
|
|
906
|
-
},
|
|
906
|
+
}, xl = {
|
|
907
907
|
narrow: /^[nptsčc]/i,
|
|
908
908
|
short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
909
909
|
abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
910
910
|
wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i
|
|
911
|
-
},
|
|
911
|
+
}, Il = {
|
|
912
912
|
narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i],
|
|
913
913
|
any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i]
|
|
914
|
-
},
|
|
914
|
+
}, Bl = {
|
|
915
915
|
narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
|
|
916
916
|
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
|
|
917
|
-
},
|
|
917
|
+
}, El = {
|
|
918
918
|
narrow: {
|
|
919
919
|
am: /^d/i,
|
|
920
920
|
pm: /^p/i,
|
|
@@ -935,60 +935,737 @@ const ho = /^(\d+)\./i, bo = /\d+/i, go = {
|
|
|
935
935
|
evening: /^z?ve/i,
|
|
936
936
|
night: /(po)?no/i
|
|
937
937
|
}
|
|
938
|
-
},
|
|
939
|
-
ordinalNumber:
|
|
940
|
-
matchPattern:
|
|
941
|
-
parsePattern:
|
|
938
|
+
}, Pl = {
|
|
939
|
+
ordinalNumber: wl({
|
|
940
|
+
matchPattern: kl,
|
|
941
|
+
parsePattern: Vl,
|
|
942
942
|
valueCallback: (e) => parseInt(e, 10)
|
|
943
943
|
}),
|
|
944
944
|
era: pe({
|
|
945
|
-
matchPatterns:
|
|
945
|
+
matchPatterns: _l,
|
|
946
946
|
defaultMatchWidth: "wide",
|
|
947
|
-
parsePatterns:
|
|
947
|
+
parsePatterns: jl,
|
|
948
948
|
defaultParseWidth: "any"
|
|
949
949
|
}),
|
|
950
950
|
quarter: pe({
|
|
951
|
-
matchPatterns:
|
|
951
|
+
matchPatterns: Cl,
|
|
952
952
|
defaultMatchWidth: "wide",
|
|
953
|
-
parsePatterns:
|
|
953
|
+
parsePatterns: Tl,
|
|
954
954
|
defaultParseWidth: "any",
|
|
955
955
|
valueCallback: (e) => e + 1
|
|
956
956
|
}),
|
|
957
957
|
month: pe({
|
|
958
|
-
matchPatterns:
|
|
958
|
+
matchPatterns: Dl,
|
|
959
959
|
defaultMatchWidth: "wide",
|
|
960
|
-
parsePatterns:
|
|
960
|
+
parsePatterns: Al,
|
|
961
961
|
defaultParseWidth: "wide"
|
|
962
962
|
}),
|
|
963
963
|
day: pe({
|
|
964
|
-
matchPatterns:
|
|
964
|
+
matchPatterns: xl,
|
|
965
965
|
defaultMatchWidth: "wide",
|
|
966
|
-
parsePatterns:
|
|
966
|
+
parsePatterns: Il,
|
|
967
967
|
defaultParseWidth: "any"
|
|
968
968
|
}),
|
|
969
969
|
dayPeriod: pe({
|
|
970
|
-
matchPatterns:
|
|
970
|
+
matchPatterns: Bl,
|
|
971
971
|
defaultMatchWidth: "any",
|
|
972
|
-
parsePatterns:
|
|
972
|
+
parsePatterns: El,
|
|
973
973
|
defaultParseWidth: "any"
|
|
974
974
|
})
|
|
975
|
-
},
|
|
975
|
+
}, Sl = {
|
|
976
976
|
code: "sl",
|
|
977
|
-
formatDistance:
|
|
978
|
-
formatLong:
|
|
979
|
-
formatRelative:
|
|
980
|
-
localize:
|
|
981
|
-
match:
|
|
977
|
+
formatDistance: ll,
|
|
978
|
+
formatLong: il,
|
|
979
|
+
formatRelative: ul,
|
|
980
|
+
localize: bl,
|
|
981
|
+
match: Pl,
|
|
982
982
|
options: {
|
|
983
983
|
weekStartsOn: 1,
|
|
984
984
|
firstWeekContainsDate: 1
|
|
985
985
|
}
|
|
986
|
-
},
|
|
987
|
-
dateTimeLocale:
|
|
986
|
+
}, Ol = {
|
|
987
|
+
dateTimeLocale: M(Sl),
|
|
988
988
|
setDateTimeLocale(e) {
|
|
989
|
-
|
|
989
|
+
le(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
|
|
990
|
+
}
|
|
991
|
+
};
|
|
992
|
+
function $l(e) {
|
|
993
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
994
|
+
}
|
|
995
|
+
var K = {}, qe;
|
|
996
|
+
function Ml() {
|
|
997
|
+
if (qe) return K;
|
|
998
|
+
qe = 1, K.getAttrs = function(t, a, r) {
|
|
999
|
+
const s = /[^\t\n\f />"'=]/, f = [];
|
|
1000
|
+
let b = "", h = "", v = !0, p = !1;
|
|
1001
|
+
for (let _ = a + r.leftDelimiter.length; _ < t.length; _++) {
|
|
1002
|
+
if (t.slice(_, _ + r.rightDelimiter.length) === r.rightDelimiter) {
|
|
1003
|
+
b !== "" && f.push([b, h]);
|
|
1004
|
+
break;
|
|
1005
|
+
}
|
|
1006
|
+
const w = t.charAt(_);
|
|
1007
|
+
if (w === "=" && v) {
|
|
1008
|
+
v = !1;
|
|
1009
|
+
continue;
|
|
1010
|
+
}
|
|
1011
|
+
if (w === "." && b === "") {
|
|
1012
|
+
t.charAt(_ + 1) === "." ? (b = "css-module", _ += 1) : b = "class", v = !1;
|
|
1013
|
+
continue;
|
|
1014
|
+
}
|
|
1015
|
+
if (w === "#" && b === "") {
|
|
1016
|
+
b = "id", v = !1;
|
|
1017
|
+
continue;
|
|
1018
|
+
}
|
|
1019
|
+
if (w === '"' && h === "" && !p) {
|
|
1020
|
+
p = !0;
|
|
1021
|
+
continue;
|
|
1022
|
+
}
|
|
1023
|
+
if (w === '"' && p) {
|
|
1024
|
+
p = !1;
|
|
1025
|
+
continue;
|
|
1026
|
+
}
|
|
1027
|
+
if (w === " " && !p) {
|
|
1028
|
+
if (b === "")
|
|
1029
|
+
continue;
|
|
1030
|
+
f.push([b, h]), b = "", h = "", v = !0;
|
|
1031
|
+
continue;
|
|
1032
|
+
}
|
|
1033
|
+
if (!(v && w.search(s) === -1)) {
|
|
1034
|
+
if (v) {
|
|
1035
|
+
b += w;
|
|
1036
|
+
continue;
|
|
1037
|
+
}
|
|
1038
|
+
h += w;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
if (r.allowedAttributes && r.allowedAttributes.length) {
|
|
1042
|
+
const _ = r.allowedAttributes;
|
|
1043
|
+
return f.filter(function(w) {
|
|
1044
|
+
const V = w[0];
|
|
1045
|
+
function C(N) {
|
|
1046
|
+
return V === N || N instanceof RegExp && N.test(V);
|
|
1047
|
+
}
|
|
1048
|
+
return _.some(C);
|
|
1049
|
+
});
|
|
1050
|
+
}
|
|
1051
|
+
return f;
|
|
1052
|
+
}, K.addAttrs = function(t, a) {
|
|
1053
|
+
for (let r = 0, s = t.length; r < s; ++r) {
|
|
1054
|
+
const u = t[r][0];
|
|
1055
|
+
u === "class" ? a.attrJoin("class", t[r][1]) : u === "css-module" ? a.attrJoin("css-module", t[r][1]) : a.attrPush(t[r]);
|
|
1056
|
+
}
|
|
1057
|
+
return a;
|
|
1058
|
+
}, K.hasDelimiters = function(t, a) {
|
|
1059
|
+
if (!t)
|
|
1060
|
+
throw new Error('Parameter `where` not passed. Should be "start", "end" or "only".');
|
|
1061
|
+
return function(r) {
|
|
1062
|
+
const s = a.leftDelimiter.length + 1 + a.rightDelimiter.length;
|
|
1063
|
+
if (!r || typeof r != "string" || r.length < s)
|
|
1064
|
+
return !1;
|
|
1065
|
+
function u(h) {
|
|
1066
|
+
const v = h.charAt(a.leftDelimiter.length) === ".", p = h.charAt(a.leftDelimiter.length) === "#";
|
|
1067
|
+
return v || p ? h.length >= s + 1 : h.length >= s;
|
|
1068
|
+
}
|
|
1069
|
+
let c, m, g, f;
|
|
1070
|
+
const b = s - a.rightDelimiter.length;
|
|
1071
|
+
switch (t) {
|
|
1072
|
+
case "start":
|
|
1073
|
+
g = r.slice(0, a.leftDelimiter.length), c = g === a.leftDelimiter ? 0 : -1, m = c === -1 ? -1 : r.indexOf(a.rightDelimiter, b), f = r.charAt(m + a.rightDelimiter.length), f && a.rightDelimiter.indexOf(f) !== -1 && (m = -1);
|
|
1074
|
+
break;
|
|
1075
|
+
case "end":
|
|
1076
|
+
c = r.lastIndexOf(a.leftDelimiter), m = c === -1 ? -1 : r.indexOf(a.rightDelimiter, c + b), m = m === r.length - a.rightDelimiter.length ? m : -1;
|
|
1077
|
+
break;
|
|
1078
|
+
case "only":
|
|
1079
|
+
g = r.slice(0, a.leftDelimiter.length), c = g === a.leftDelimiter ? 0 : -1, g = r.slice(r.length - a.rightDelimiter.length), m = g === a.rightDelimiter ? r.length - a.rightDelimiter.length : -1;
|
|
1080
|
+
break;
|
|
1081
|
+
default:
|
|
1082
|
+
throw new Error(`Unexpected case ${t}, expected 'start', 'end' or 'only'`);
|
|
1083
|
+
}
|
|
1084
|
+
return c !== -1 && m !== -1 && u(r.substring(c, m + a.rightDelimiter.length));
|
|
1085
|
+
};
|
|
1086
|
+
}, K.removeDelimiter = function(t, a) {
|
|
1087
|
+
const r = e(a.leftDelimiter), s = e(a.rightDelimiter), u = new RegExp(
|
|
1088
|
+
"[ \\n]?" + r + "[^" + r + s + "]+" + s + "$"
|
|
1089
|
+
), c = t.search(u);
|
|
1090
|
+
return c !== -1 ? t.slice(0, c) : t;
|
|
1091
|
+
};
|
|
1092
|
+
function e(t) {
|
|
1093
|
+
return t.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
1094
|
+
}
|
|
1095
|
+
K.escapeRegExp = e, K.getMatchingOpeningToken = function(t, a) {
|
|
1096
|
+
if (t[a].type === "softbreak")
|
|
1097
|
+
return !1;
|
|
1098
|
+
if (t[a].nesting === 0)
|
|
1099
|
+
return t[a];
|
|
1100
|
+
const r = t[a].level, s = t[a].type.replace("_close", "_open");
|
|
1101
|
+
for (; a >= 0; --a)
|
|
1102
|
+
if (t[a].type === s && t[a].level === r)
|
|
1103
|
+
return t[a];
|
|
1104
|
+
return !1;
|
|
1105
|
+
};
|
|
1106
|
+
const n = /[&<>"]/, o = /[&<>"]/g, l = {
|
|
1107
|
+
"&": "&",
|
|
1108
|
+
"<": "<",
|
|
1109
|
+
">": ">",
|
|
1110
|
+
'"': """
|
|
1111
|
+
};
|
|
1112
|
+
function d(t) {
|
|
1113
|
+
return l[t];
|
|
990
1114
|
}
|
|
991
|
-
|
|
1115
|
+
return K.escapeHtml = function(t) {
|
|
1116
|
+
return n.test(t) ? t.replace(o, d) : t;
|
|
1117
|
+
}, K;
|
|
1118
|
+
}
|
|
1119
|
+
var xe, Xe;
|
|
1120
|
+
function Nl() {
|
|
1121
|
+
if (Xe) return xe;
|
|
1122
|
+
Xe = 1;
|
|
1123
|
+
const e = Ml();
|
|
1124
|
+
xe = (l) => {
|
|
1125
|
+
const d = new RegExp("^ {0,3}[-*_]{3,} ?" + e.escapeRegExp(l.leftDelimiter) + "[^" + e.escapeRegExp(l.rightDelimiter) + "]");
|
|
1126
|
+
return [
|
|
1127
|
+
{
|
|
1128
|
+
/**
|
|
1129
|
+
* ```python {.cls}
|
|
1130
|
+
* for i in range(10):
|
|
1131
|
+
* print(i)
|
|
1132
|
+
* ```
|
|
1133
|
+
*/
|
|
1134
|
+
name: "fenced code blocks",
|
|
1135
|
+
tests: [
|
|
1136
|
+
{
|
|
1137
|
+
shift: 0,
|
|
1138
|
+
block: !0,
|
|
1139
|
+
info: e.hasDelimiters("end", l)
|
|
1140
|
+
}
|
|
1141
|
+
],
|
|
1142
|
+
transform: (t, a) => {
|
|
1143
|
+
const r = t[a], s = r.info.lastIndexOf(l.leftDelimiter), u = e.getAttrs(r.info, s, l);
|
|
1144
|
+
e.addAttrs(u, r), r.info = e.removeDelimiter(r.info, l);
|
|
1145
|
+
}
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
/**
|
|
1149
|
+
* bla `click()`{.c} {.d}
|
|
1150
|
+
*
|
|
1151
|
+
* differs from 'inline attributes' as it does
|
|
1152
|
+
* not have a closing tag (nesting: -1)
|
|
1153
|
+
*/
|
|
1154
|
+
name: "inline nesting 0",
|
|
1155
|
+
tests: [
|
|
1156
|
+
{
|
|
1157
|
+
shift: 0,
|
|
1158
|
+
type: "inline",
|
|
1159
|
+
children: [
|
|
1160
|
+
{
|
|
1161
|
+
shift: -1,
|
|
1162
|
+
type: (t) => t === "image" || t === "code_inline"
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
shift: 0,
|
|
1166
|
+
type: "text",
|
|
1167
|
+
content: e.hasDelimiters("start", l)
|
|
1168
|
+
}
|
|
1169
|
+
]
|
|
1170
|
+
}
|
|
1171
|
+
],
|
|
1172
|
+
/**
|
|
1173
|
+
* @param {!number} j
|
|
1174
|
+
*/
|
|
1175
|
+
transform: (t, a, r) => {
|
|
1176
|
+
const s = t[a].children[r], u = s.content.indexOf(l.rightDelimiter), c = t[a].children[r - 1], m = e.getAttrs(s.content, 0, l);
|
|
1177
|
+
e.addAttrs(m, c), s.content.length === u + l.rightDelimiter.length ? t[a].children.splice(r, 1) : s.content = s.content.slice(u + l.rightDelimiter.length);
|
|
1178
|
+
}
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
/**
|
|
1182
|
+
* | h1 |
|
|
1183
|
+
* | -- |
|
|
1184
|
+
* | c1 |
|
|
1185
|
+
*
|
|
1186
|
+
* {.c}
|
|
1187
|
+
*/
|
|
1188
|
+
name: "tables",
|
|
1189
|
+
tests: [
|
|
1190
|
+
{
|
|
1191
|
+
// let this token be i, such that for-loop continues at
|
|
1192
|
+
// next token after tokens.splice
|
|
1193
|
+
shift: 0,
|
|
1194
|
+
type: "table_close"
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
shift: 1,
|
|
1198
|
+
type: "paragraph_open"
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
shift: 2,
|
|
1202
|
+
type: "inline",
|
|
1203
|
+
content: e.hasDelimiters("only", l)
|
|
1204
|
+
}
|
|
1205
|
+
],
|
|
1206
|
+
transform: (t, a) => {
|
|
1207
|
+
const r = t[a + 2], s = e.getMatchingOpeningToken(t, a), u = e.getAttrs(r.content, 0, l);
|
|
1208
|
+
e.addAttrs(u, s), t.splice(a + 1, 3);
|
|
1209
|
+
}
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
/**
|
|
1213
|
+
* | A | B |
|
|
1214
|
+
* | -- | -- |
|
|
1215
|
+
* | 1 | 2 |
|
|
1216
|
+
*
|
|
1217
|
+
* | C | D |
|
|
1218
|
+
* | -- | -- |
|
|
1219
|
+
*
|
|
1220
|
+
* only `| A | B |` sets the colsnum metadata
|
|
1221
|
+
*/
|
|
1222
|
+
name: "tables thead metadata",
|
|
1223
|
+
tests: [
|
|
1224
|
+
{
|
|
1225
|
+
shift: 0,
|
|
1226
|
+
type: "tr_close"
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
shift: 1,
|
|
1230
|
+
type: "thead_close"
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
shift: 2,
|
|
1234
|
+
type: "tbody_open"
|
|
1235
|
+
}
|
|
1236
|
+
],
|
|
1237
|
+
transform: (t, a) => {
|
|
1238
|
+
const r = e.getMatchingOpeningToken(t, a), s = t[a - 1];
|
|
1239
|
+
let u = 0, c = a;
|
|
1240
|
+
for (; --c; ) {
|
|
1241
|
+
if (t[c] === r) {
|
|
1242
|
+
t[c - 1].meta = Object.assign({}, t[c + 2].meta, { colsnum: u });
|
|
1243
|
+
break;
|
|
1244
|
+
}
|
|
1245
|
+
u += (t[c].level === s.level && t[c].type === s.type) >> 0;
|
|
1246
|
+
}
|
|
1247
|
+
t[a + 2].meta = Object.assign({}, t[a + 2].meta, { colsnum: u });
|
|
1248
|
+
}
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
/**
|
|
1252
|
+
* | A | B | C | D |
|
|
1253
|
+
* | -- | -- | -- | -- |
|
|
1254
|
+
* | 1 | 11 | 111 | 1111 {rowspan=3} |
|
|
1255
|
+
* | 2 {colspan=2 rowspan=2} | 22 | 222 | 2222 |
|
|
1256
|
+
* | 3 | 33 | 333 | 3333 |
|
|
1257
|
+
*/
|
|
1258
|
+
name: "tables tbody calculate",
|
|
1259
|
+
tests: [
|
|
1260
|
+
{
|
|
1261
|
+
shift: 0,
|
|
1262
|
+
type: "tbody_close",
|
|
1263
|
+
hidden: !1
|
|
1264
|
+
}
|
|
1265
|
+
],
|
|
1266
|
+
/**
|
|
1267
|
+
* @param {number} i index of the tbody ending
|
|
1268
|
+
*/
|
|
1269
|
+
transform: (t, a) => {
|
|
1270
|
+
let r = a - 2;
|
|
1271
|
+
for (; r > 0 && t[--r].type !== "tbody_open"; ) ;
|
|
1272
|
+
const s = t[r].meta.colsnum >> 0;
|
|
1273
|
+
if (s < 2)
|
|
1274
|
+
return;
|
|
1275
|
+
const u = t[a].level + 2;
|
|
1276
|
+
for (let c = r; c < a; c++) {
|
|
1277
|
+
if (t[c].level > u)
|
|
1278
|
+
continue;
|
|
1279
|
+
const m = t[c], g = m.hidden ? 0 : m.attrGet("rowspan") >> 0, f = m.hidden ? 0 : m.attrGet("colspan") >> 0;
|
|
1280
|
+
if (g > 1) {
|
|
1281
|
+
let b = s - (f > 0 ? f : 1);
|
|
1282
|
+
for (let h = c, v = g; v > 1; h++)
|
|
1283
|
+
t[h].type == "tr_open" && (t[h].meta = Object.assign({}, t[h].meta), t[h].meta && t[h].meta.colsnum && (b -= 1), t[h].meta.colsnum = b, v--);
|
|
1284
|
+
}
|
|
1285
|
+
if (m.type == "tr_open" && m.meta && m.meta.colsnum) {
|
|
1286
|
+
const b = m.meta.colsnum;
|
|
1287
|
+
for (let h = c, v = 0; h < a; h++) {
|
|
1288
|
+
if (t[h].type == "td_open")
|
|
1289
|
+
v += 1;
|
|
1290
|
+
else if (t[h].type == "tr_close")
|
|
1291
|
+
break;
|
|
1292
|
+
v > b && (t[h].hidden || o(t[h]));
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
if (f > 1) {
|
|
1296
|
+
const b = [];
|
|
1297
|
+
let h = c + 3, v = s;
|
|
1298
|
+
for (let w = c; w > r; w--)
|
|
1299
|
+
if (t[w].type == "tr_open") {
|
|
1300
|
+
v = t[w].meta && t[w].meta.colsnum || v;
|
|
1301
|
+
break;
|
|
1302
|
+
} else t[w].type === "td_open" && b.unshift(w);
|
|
1303
|
+
for (let w = c + 2; w < a; w++)
|
|
1304
|
+
if (t[w].type == "tr_close") {
|
|
1305
|
+
h = w;
|
|
1306
|
+
break;
|
|
1307
|
+
} else t[w].type == "td_open" && b.push(w);
|
|
1308
|
+
const p = b.indexOf(c);
|
|
1309
|
+
let _ = v - p;
|
|
1310
|
+
_ = _ > f ? f : _, f > _ && m.attrSet("colspan", _ + "");
|
|
1311
|
+
for (let w = b.slice(v + 1 - s - _)[0]; w < h; w++)
|
|
1312
|
+
t[w].hidden || o(t[w]);
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
/**
|
|
1319
|
+
* *emphasis*{.with attrs=1}
|
|
1320
|
+
*/
|
|
1321
|
+
name: "inline attributes",
|
|
1322
|
+
tests: [
|
|
1323
|
+
{
|
|
1324
|
+
shift: 0,
|
|
1325
|
+
type: "inline",
|
|
1326
|
+
children: [
|
|
1327
|
+
{
|
|
1328
|
+
shift: -1,
|
|
1329
|
+
nesting: -1
|
|
1330
|
+
// closing inline tag, </em>{.a}
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
shift: 0,
|
|
1334
|
+
type: "text",
|
|
1335
|
+
content: e.hasDelimiters("start", l)
|
|
1336
|
+
}
|
|
1337
|
+
]
|
|
1338
|
+
}
|
|
1339
|
+
],
|
|
1340
|
+
/**
|
|
1341
|
+
* @param {!number} j
|
|
1342
|
+
*/
|
|
1343
|
+
transform: (t, a, r) => {
|
|
1344
|
+
const s = t[a].children[r], u = s.content, c = e.getAttrs(u, 0, l), m = e.getMatchingOpeningToken(t[a].children, r - 1);
|
|
1345
|
+
e.addAttrs(c, m), s.content = u.slice(u.indexOf(l.rightDelimiter) + l.rightDelimiter.length);
|
|
1346
|
+
}
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
/**
|
|
1350
|
+
* - item
|
|
1351
|
+
* {.a}
|
|
1352
|
+
*/
|
|
1353
|
+
name: "list softbreak",
|
|
1354
|
+
tests: [
|
|
1355
|
+
{
|
|
1356
|
+
shift: -2,
|
|
1357
|
+
type: "list_item_open"
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
shift: 0,
|
|
1361
|
+
type: "inline",
|
|
1362
|
+
children: [
|
|
1363
|
+
{
|
|
1364
|
+
position: -2,
|
|
1365
|
+
type: "softbreak"
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
position: -1,
|
|
1369
|
+
type: "text",
|
|
1370
|
+
content: e.hasDelimiters("only", l)
|
|
1371
|
+
}
|
|
1372
|
+
]
|
|
1373
|
+
}
|
|
1374
|
+
],
|
|
1375
|
+
/**
|
|
1376
|
+
* @param {!number} j
|
|
1377
|
+
*/
|
|
1378
|
+
transform: (t, a, r) => {
|
|
1379
|
+
const u = t[a].children[r].content, c = e.getAttrs(u, 0, l);
|
|
1380
|
+
let m = a - 2;
|
|
1381
|
+
for (; t[m - 1] && t[m - 1].type !== "ordered_list_open" && t[m - 1].type !== "bullet_list_open"; )
|
|
1382
|
+
m--;
|
|
1383
|
+
e.addAttrs(c, t[m - 1]), t[a].children = t[a].children.slice(0, -2);
|
|
1384
|
+
}
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
/**
|
|
1388
|
+
* - nested list
|
|
1389
|
+
* - with double \n
|
|
1390
|
+
* {.a} <-- apply to nested ul
|
|
1391
|
+
*
|
|
1392
|
+
* {.b} <-- apply to root <ul>
|
|
1393
|
+
*/
|
|
1394
|
+
name: "list double softbreak",
|
|
1395
|
+
tests: [
|
|
1396
|
+
{
|
|
1397
|
+
// let this token be i = 0 so that we can erase
|
|
1398
|
+
// the <p>{.a}</p> tokens below
|
|
1399
|
+
shift: 0,
|
|
1400
|
+
type: (t) => t === "bullet_list_close" || t === "ordered_list_close"
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
shift: 1,
|
|
1404
|
+
type: "paragraph_open"
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
shift: 2,
|
|
1408
|
+
type: "inline",
|
|
1409
|
+
content: e.hasDelimiters("only", l),
|
|
1410
|
+
children: (t) => t.length === 1
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
shift: 3,
|
|
1414
|
+
type: "paragraph_close"
|
|
1415
|
+
}
|
|
1416
|
+
],
|
|
1417
|
+
transform: (t, a) => {
|
|
1418
|
+
const s = t[a + 2].content, u = e.getAttrs(s, 0, l), c = e.getMatchingOpeningToken(t, a);
|
|
1419
|
+
e.addAttrs(u, c), t.splice(a + 1, 3);
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
/**
|
|
1424
|
+
* - end of {.list-item}
|
|
1425
|
+
*/
|
|
1426
|
+
name: "list item end",
|
|
1427
|
+
tests: [
|
|
1428
|
+
{
|
|
1429
|
+
shift: -2,
|
|
1430
|
+
type: "list_item_open"
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
shift: 0,
|
|
1434
|
+
type: "inline",
|
|
1435
|
+
children: [
|
|
1436
|
+
{
|
|
1437
|
+
position: -1,
|
|
1438
|
+
type: "text",
|
|
1439
|
+
content: e.hasDelimiters("end", l)
|
|
1440
|
+
}
|
|
1441
|
+
]
|
|
1442
|
+
}
|
|
1443
|
+
],
|
|
1444
|
+
/**
|
|
1445
|
+
* @param {!number} j
|
|
1446
|
+
*/
|
|
1447
|
+
transform: (t, a, r) => {
|
|
1448
|
+
const s = t[a].children[r], u = s.content, c = e.getAttrs(u, u.lastIndexOf(l.leftDelimiter), l);
|
|
1449
|
+
e.addAttrs(c, t[a - 2]);
|
|
1450
|
+
const m = u.slice(0, u.lastIndexOf(l.leftDelimiter));
|
|
1451
|
+
s.content = n(m) !== " " ? m : m.slice(0, -1);
|
|
1452
|
+
}
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
/**
|
|
1456
|
+
* something with softbreak
|
|
1457
|
+
* {.cls}
|
|
1458
|
+
*/
|
|
1459
|
+
name: `
|
|
1460
|
+
{.a} softbreak then curly in start`,
|
|
1461
|
+
tests: [
|
|
1462
|
+
{
|
|
1463
|
+
shift: 0,
|
|
1464
|
+
type: "inline",
|
|
1465
|
+
children: [
|
|
1466
|
+
{
|
|
1467
|
+
position: -2,
|
|
1468
|
+
type: "softbreak"
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
position: -1,
|
|
1472
|
+
type: "text",
|
|
1473
|
+
content: e.hasDelimiters("only", l)
|
|
1474
|
+
}
|
|
1475
|
+
]
|
|
1476
|
+
}
|
|
1477
|
+
],
|
|
1478
|
+
/**
|
|
1479
|
+
* @param {!number} j
|
|
1480
|
+
*/
|
|
1481
|
+
transform: (t, a, r) => {
|
|
1482
|
+
const s = t[a].children[r], u = e.getAttrs(s.content, 0, l);
|
|
1483
|
+
let c = a + 1;
|
|
1484
|
+
for (; t[c + 1] && t[c + 1].nesting === -1; )
|
|
1485
|
+
c++;
|
|
1486
|
+
const m = e.getMatchingOpeningToken(t, c);
|
|
1487
|
+
e.addAttrs(u, m), t[a].children = t[a].children.slice(0, -2);
|
|
1488
|
+
}
|
|
1489
|
+
},
|
|
1490
|
+
{
|
|
1491
|
+
/**
|
|
1492
|
+
* horizontal rule --- {#id}
|
|
1493
|
+
*/
|
|
1494
|
+
name: "horizontal rule",
|
|
1495
|
+
tests: [
|
|
1496
|
+
{
|
|
1497
|
+
shift: 0,
|
|
1498
|
+
type: "paragraph_open"
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
shift: 1,
|
|
1502
|
+
type: "inline",
|
|
1503
|
+
children: (t) => t.length === 1,
|
|
1504
|
+
content: (t) => t.match(d) !== null
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
shift: 2,
|
|
1508
|
+
type: "paragraph_close"
|
|
1509
|
+
}
|
|
1510
|
+
],
|
|
1511
|
+
transform: (t, a) => {
|
|
1512
|
+
const r = t[a];
|
|
1513
|
+
r.type = "hr", r.tag = "hr", r.nesting = 0;
|
|
1514
|
+
const s = t[a + 1].content, u = s.lastIndexOf(l.leftDelimiter), c = e.getAttrs(s, u, l);
|
|
1515
|
+
e.addAttrs(c, r), r.markup = s, t.splice(a + 1, 2);
|
|
1516
|
+
}
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
/**
|
|
1520
|
+
* end of {.block}
|
|
1521
|
+
*/
|
|
1522
|
+
name: "end of block",
|
|
1523
|
+
tests: [
|
|
1524
|
+
{
|
|
1525
|
+
shift: 0,
|
|
1526
|
+
type: "inline",
|
|
1527
|
+
children: [
|
|
1528
|
+
{
|
|
1529
|
+
position: -1,
|
|
1530
|
+
content: e.hasDelimiters("end", l),
|
|
1531
|
+
type: (t) => t !== "code_inline" && t !== "math_inline"
|
|
1532
|
+
}
|
|
1533
|
+
]
|
|
1534
|
+
}
|
|
1535
|
+
],
|
|
1536
|
+
/**
|
|
1537
|
+
* @param {!number} j
|
|
1538
|
+
*/
|
|
1539
|
+
transform: (t, a, r) => {
|
|
1540
|
+
const s = t[a].children[r], u = s.content, c = e.getAttrs(u, u.lastIndexOf(l.leftDelimiter), l);
|
|
1541
|
+
let m = a + 1;
|
|
1542
|
+
do
|
|
1543
|
+
if (t[m] && t[m].nesting === -1)
|
|
1544
|
+
break;
|
|
1545
|
+
while (m++ < t.length);
|
|
1546
|
+
const g = e.getMatchingOpeningToken(t, m);
|
|
1547
|
+
e.addAttrs(c, g);
|
|
1548
|
+
const f = u.slice(0, u.lastIndexOf(l.leftDelimiter));
|
|
1549
|
+
s.content = n(f) !== " " ? f : f.slice(0, -1);
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
];
|
|
1553
|
+
};
|
|
1554
|
+
function n(l) {
|
|
1555
|
+
return l.slice(-1)[0];
|
|
1556
|
+
}
|
|
1557
|
+
function o(l) {
|
|
1558
|
+
l.hidden = !0, l.children && l.children.forEach((d) => (d.content = "", o(d), void 0));
|
|
1559
|
+
}
|
|
1560
|
+
return xe;
|
|
1561
|
+
}
|
|
1562
|
+
var Ie, Ge;
|
|
1563
|
+
function Ll() {
|
|
1564
|
+
if (Ge) return Ie;
|
|
1565
|
+
Ge = 1;
|
|
1566
|
+
const e = Nl(), n = {
|
|
1567
|
+
leftDelimiter: "{",
|
|
1568
|
+
rightDelimiter: "}",
|
|
1569
|
+
allowedAttributes: []
|
|
1570
|
+
};
|
|
1571
|
+
Ie = function(s, u) {
|
|
1572
|
+
let c = Object.assign({}, n);
|
|
1573
|
+
c = Object.assign(c, u);
|
|
1574
|
+
const m = e(c);
|
|
1575
|
+
function g(f) {
|
|
1576
|
+
const b = f.tokens;
|
|
1577
|
+
for (let h = 0; h < b.length; h++)
|
|
1578
|
+
for (let v = 0; v < m.length; v++) {
|
|
1579
|
+
const p = m[v];
|
|
1580
|
+
let _ = null;
|
|
1581
|
+
if (p.tests.every((V) => {
|
|
1582
|
+
const C = o(b, h, V);
|
|
1583
|
+
return C.j !== null && (_ = C.j), C.match;
|
|
1584
|
+
}))
|
|
1585
|
+
try {
|
|
1586
|
+
p.transform(b, h, _), (p.name === "inline attributes" || p.name === "inline nesting 0") && v--;
|
|
1587
|
+
} catch (V) {
|
|
1588
|
+
console.error(`markdown-it-attrs: Error in pattern '${p.name}': ${V.message}`), console.error(V.stack);
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
s.core.ruler.before("linkify", "curly_attributes", g);
|
|
1593
|
+
};
|
|
1594
|
+
function o(r, s, u) {
|
|
1595
|
+
const c = {
|
|
1596
|
+
match: !1,
|
|
1597
|
+
j: null
|
|
1598
|
+
// position of child
|
|
1599
|
+
}, m = u.shift !== void 0 ? s + u.shift : u.position;
|
|
1600
|
+
if (u.shift !== void 0 && m < 0)
|
|
1601
|
+
return c;
|
|
1602
|
+
const g = t(r, m);
|
|
1603
|
+
if (g === void 0)
|
|
1604
|
+
return c;
|
|
1605
|
+
for (const f of Object.keys(u))
|
|
1606
|
+
if (!(f === "shift" || f === "position")) {
|
|
1607
|
+
if (g[f] === void 0)
|
|
1608
|
+
return c;
|
|
1609
|
+
if (f === "children" && l(u.children)) {
|
|
1610
|
+
if (g.children.length === 0)
|
|
1611
|
+
return c;
|
|
1612
|
+
let b;
|
|
1613
|
+
const h = u.children, v = g.children;
|
|
1614
|
+
if (h.every((p) => p.position !== void 0)) {
|
|
1615
|
+
if (b = h.every((p) => o(v, p.position, p).match), b) {
|
|
1616
|
+
const p = a(h).position;
|
|
1617
|
+
c.j = p >= 0 ? p : v.length + p;
|
|
1618
|
+
}
|
|
1619
|
+
} else
|
|
1620
|
+
for (let p = 0; p < v.length; p++)
|
|
1621
|
+
if (b = h.every((_) => o(v, p, _).match), b) {
|
|
1622
|
+
c.j = p;
|
|
1623
|
+
break;
|
|
1624
|
+
}
|
|
1625
|
+
if (b === !1)
|
|
1626
|
+
return c;
|
|
1627
|
+
continue;
|
|
1628
|
+
}
|
|
1629
|
+
switch (typeof u[f]) {
|
|
1630
|
+
case "boolean":
|
|
1631
|
+
case "number":
|
|
1632
|
+
case "string":
|
|
1633
|
+
if (g[f] !== u[f])
|
|
1634
|
+
return c;
|
|
1635
|
+
break;
|
|
1636
|
+
case "function":
|
|
1637
|
+
if (!u[f](g[f]))
|
|
1638
|
+
return c;
|
|
1639
|
+
break;
|
|
1640
|
+
case "object":
|
|
1641
|
+
if (d(u[f])) {
|
|
1642
|
+
if (u[f].every((h) => h(g[f])) === !1)
|
|
1643
|
+
return c;
|
|
1644
|
+
break;
|
|
1645
|
+
}
|
|
1646
|
+
// fall through for objects !== arrays of functions
|
|
1647
|
+
default:
|
|
1648
|
+
throw new Error(`Unknown type of pattern test (key: ${f}). Test should be of type boolean, number, string, function or array of functions.`);
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
return c.match = !0, c;
|
|
1652
|
+
}
|
|
1653
|
+
function l(r) {
|
|
1654
|
+
return Array.isArray(r) && r.length && r.every((s) => typeof s == "object");
|
|
1655
|
+
}
|
|
1656
|
+
function d(r) {
|
|
1657
|
+
return Array.isArray(r) && r.length && r.every((s) => typeof s == "function");
|
|
1658
|
+
}
|
|
1659
|
+
function t(r, s) {
|
|
1660
|
+
return s >= 0 ? r[s] : r[r.length + s];
|
|
1661
|
+
}
|
|
1662
|
+
function a(r) {
|
|
1663
|
+
return r.slice(-1)[0] || {};
|
|
1664
|
+
}
|
|
1665
|
+
return Ie;
|
|
1666
|
+
}
|
|
1667
|
+
var Fl = Ll();
|
|
1668
|
+
const Ul = /* @__PURE__ */ $l(Fl), ae = /* @__PURE__ */ U({
|
|
992
1669
|
__name: "df-label",
|
|
993
1670
|
props: {
|
|
994
1671
|
data: {},
|
|
@@ -996,114 +1673,115 @@ const ho = /^(\d+)\./i, bo = /\d+/i, go = {
|
|
|
996
1673
|
allowWrap: { type: Boolean }
|
|
997
1674
|
},
|
|
998
1675
|
setup(e) {
|
|
999
|
-
const
|
|
1000
|
-
return (
|
|
1001
|
-
const
|
|
1002
|
-
return
|
|
1003
|
-
class: G(["df-label", { "allow-wrap":
|
|
1676
|
+
const n = e, o = T(() => n.data ? n.data.label : n.label.text);
|
|
1677
|
+
return (l, d) => {
|
|
1678
|
+
const t = $("v-img");
|
|
1679
|
+
return D(), W("div", {
|
|
1680
|
+
class: G(["df-label", { "allow-wrap": l.allowWrap }])
|
|
1004
1681
|
}, [
|
|
1005
|
-
|
|
1006
|
-
|
|
1682
|
+
l.label.icon ? (D(), W(Be, { key: 0 }, [
|
|
1683
|
+
l.label.iconComponent === "v-icon" ? (D(), E(i(ge), {
|
|
1007
1684
|
key: 0,
|
|
1008
|
-
name:
|
|
1685
|
+
name: l.label.icon,
|
|
1009
1686
|
size: "1.25em"
|
|
1010
|
-
}, null, 8, ["name"])) :
|
|
1687
|
+
}, null, 8, ["name"])) : l.label.iconComponent === "v-img" ? (D(), E(t, {
|
|
1011
1688
|
key: 1,
|
|
1012
1689
|
class: "icon",
|
|
1013
|
-
src:
|
|
1014
|
-
}, null, 8, ["src"])) : (
|
|
1690
|
+
src: l.label.icon
|
|
1691
|
+
}, null, 8, ["src"])) : (D(), E(be(l.label.iconComponent), {
|
|
1015
1692
|
key: 2,
|
|
1016
|
-
src:
|
|
1693
|
+
src: l.label.icon
|
|
1017
1694
|
}, null, 8, ["src"]))
|
|
1018
|
-
], 64)) :
|
|
1019
|
-
|
|
1695
|
+
], 64)) : F("", !0),
|
|
1696
|
+
o.value instanceof i(jt) ? (D(), E(i(lt), {
|
|
1020
1697
|
key: 1,
|
|
1021
1698
|
class: "markdown",
|
|
1022
|
-
source:
|
|
1023
|
-
|
|
1024
|
-
|
|
1699
|
+
source: o.value.toString(),
|
|
1700
|
+
plugins: [i(Ul)]
|
|
1701
|
+
}, null, 8, ["source", "plugins"])) : (D(), W(Be, { key: 2 }, [
|
|
1702
|
+
vt(Pe(o.value), 1)
|
|
1025
1703
|
], 64))
|
|
1026
1704
|
], 2);
|
|
1027
1705
|
};
|
|
1028
1706
|
}
|
|
1029
|
-
}),
|
|
1030
|
-
class
|
|
1031
|
-
constructor(
|
|
1032
|
-
this.text =
|
|
1707
|
+
}), it = Symbol("vuetifyInputsSettingsKey");
|
|
1708
|
+
class Rl {
|
|
1709
|
+
constructor(n, o, l = "v-icon") {
|
|
1710
|
+
this.text = n, this.icon = o, this.iconComponent = l;
|
|
1033
1711
|
}
|
|
1034
1712
|
}
|
|
1035
|
-
const
|
|
1036
|
-
function X(e,
|
|
1037
|
-
const
|
|
1713
|
+
const Q = { enabled: void 0, clearable: !0 };
|
|
1714
|
+
function X(e, n) {
|
|
1715
|
+
const o = Te(it, {}), l = M(null), d = T({
|
|
1038
1716
|
get() {
|
|
1039
|
-
return e.control ? e.control.value : e.modelValue === void 0 ?
|
|
1717
|
+
return e.control ? e.control.value : e.modelValue === void 0 ? l.value : e.modelValue;
|
|
1040
1718
|
},
|
|
1041
|
-
set(
|
|
1042
|
-
e.control && (e.control.value =
|
|
1719
|
+
set(V) {
|
|
1720
|
+
e.control && (e.control.value = V), e.modelValue === void 0 && (l.value = V), n("update:modelValue", V);
|
|
1043
1721
|
}
|
|
1044
1722
|
});
|
|
1045
|
-
if (e.control && !(e.control instanceof
|
|
1723
|
+
if (e.control && !(e.control instanceof Ke.FieldBase))
|
|
1046
1724
|
throw new Error("control prop is not a vue-form control instance");
|
|
1047
|
-
const
|
|
1725
|
+
const t = T({
|
|
1048
1726
|
get() {
|
|
1049
1727
|
return e.control.touched;
|
|
1050
1728
|
},
|
|
1051
|
-
set(
|
|
1052
|
-
e.control.touched =
|
|
1729
|
+
set(V) {
|
|
1730
|
+
e.control.touched = V;
|
|
1053
1731
|
}
|
|
1054
|
-
}),
|
|
1055
|
-
() => e.control ? e.control.errors : (e.errors || []).map((
|
|
1056
|
-
),
|
|
1057
|
-
() => e.control ? e.control.visibility : e.visibility ||
|
|
1058
|
-
),
|
|
1059
|
-
() =>
|
|
1060
|
-
),
|
|
1732
|
+
}), a = e.control ? t : M(!1), r = T(() => e.control ? e.control.valid : !0), s = T(
|
|
1733
|
+
() => e.control ? e.control.errors : (e.errors || []).map((V) => new Ct(V))
|
|
1734
|
+
), u = T(() => a.value && s.value.length > 0 ? " " : void 0), c = T(() => e.control ? e.control.enabled : e.enabled !== !1), m = T(
|
|
1735
|
+
() => e.control ? e.control.visibility : e.visibility || Ke.DisplayMode.FULL
|
|
1736
|
+
), g = T(
|
|
1737
|
+
() => ne(e.label || "") ? new Rl(e.label || "") : e.label
|
|
1738
|
+
), f = T(() => e.placeholder || ""), b = T(() => e.helpText || ""), h = T(() => e.hint || ""), v = T(() => e.cssClass || ""), p = T(
|
|
1061
1739
|
() => {
|
|
1062
|
-
var
|
|
1063
|
-
return (
|
|
1740
|
+
var V, C, N;
|
|
1741
|
+
return (N = (C = (V = e.density) != null ? V : Te("field-density", null)) != null ? C : o.defaultDensity) != null ? N : "default";
|
|
1064
1742
|
}
|
|
1065
|
-
),
|
|
1743
|
+
), _ = T(() => p.value === "inline" ? "default" : p.value), w = T(
|
|
1066
1744
|
() => {
|
|
1067
|
-
var
|
|
1068
|
-
return (
|
|
1745
|
+
var V, C, N;
|
|
1746
|
+
return (N = (C = (V = e.variant) != null ? V : Te("field-variant", null)) != null ? C : o.defaultVariant) != null ? N : "underlined";
|
|
1069
1747
|
}
|
|
1070
1748
|
);
|
|
1071
1749
|
return {
|
|
1072
|
-
value:
|
|
1073
|
-
valid:
|
|
1074
|
-
enabled:
|
|
1075
|
-
errors:
|
|
1750
|
+
value: d,
|
|
1751
|
+
valid: r,
|
|
1752
|
+
enabled: c,
|
|
1753
|
+
errors: s,
|
|
1076
1754
|
visibility: m,
|
|
1077
|
-
label:
|
|
1078
|
-
touched:
|
|
1079
|
-
density:
|
|
1080
|
-
densityClass:
|
|
1081
|
-
vuetifyBindings:
|
|
1082
|
-
var
|
|
1755
|
+
label: g,
|
|
1756
|
+
touched: a,
|
|
1757
|
+
density: p.value,
|
|
1758
|
+
densityClass: T(() => `df-density-${p.value}`),
|
|
1759
|
+
vuetifyBindings: T(() => {
|
|
1760
|
+
var V;
|
|
1083
1761
|
return S({
|
|
1084
|
-
name: (
|
|
1085
|
-
class:
|
|
1086
|
-
density:
|
|
1087
|
-
variant:
|
|
1088
|
-
label:
|
|
1089
|
-
messages:
|
|
1090
|
-
errorMessages:
|
|
1762
|
+
name: (V = e.control) == null ? void 0 : V.fieldName,
|
|
1763
|
+
class: v.value,
|
|
1764
|
+
density: _.value,
|
|
1765
|
+
variant: w.value,
|
|
1766
|
+
label: g.value.text,
|
|
1767
|
+
messages: u.value,
|
|
1768
|
+
errorMessages: u.value,
|
|
1091
1769
|
// 'error-count': errors?.value.length || 0,
|
|
1092
|
-
readonly: !
|
|
1093
|
-
disabled: !
|
|
1094
|
-
placeholder:
|
|
1095
|
-
"persistent-placeholder": !
|
|
1096
|
-
hint:
|
|
1770
|
+
readonly: !c.value,
|
|
1771
|
+
disabled: !c.value,
|
|
1772
|
+
placeholder: f.value,
|
|
1773
|
+
"persistent-placeholder": !he(f.value),
|
|
1774
|
+
hint: h.value,
|
|
1097
1775
|
persistentHint: !0,
|
|
1098
1776
|
// we want persistent hint always
|
|
1099
1777
|
hideDetails: "auto",
|
|
1100
1778
|
// we want to hide the hint element when hint isn't there
|
|
1101
|
-
helpText:
|
|
1779
|
+
helpText: b.value
|
|
1102
1780
|
}, e.passthroughAttrs || {});
|
|
1103
1781
|
})
|
|
1104
1782
|
};
|
|
1105
1783
|
}
|
|
1106
|
-
const
|
|
1784
|
+
const re = /* @__PURE__ */ U({
|
|
1107
1785
|
__name: "messages-widget",
|
|
1108
1786
|
props: {
|
|
1109
1787
|
errors: {},
|
|
@@ -1111,33 +1789,33 @@ const le = /* @__PURE__ */ O({
|
|
|
1111
1789
|
classes: { default: "text-error" }
|
|
1112
1790
|
},
|
|
1113
1791
|
setup(e) {
|
|
1114
|
-
const
|
|
1115
|
-
if (
|
|
1116
|
-
const
|
|
1117
|
-
return
|
|
1118
|
-
switch (
|
|
1792
|
+
const n = e, o = () => {
|
|
1793
|
+
if (n.message !== " ") return we("span", { class: n.classes }, n.message);
|
|
1794
|
+
const l = [];
|
|
1795
|
+
return n.errors.forEach((d) => {
|
|
1796
|
+
switch (d.componentName) {
|
|
1119
1797
|
case "template":
|
|
1120
|
-
|
|
1798
|
+
l.push(we("div", { class: n.classes }, d.componentBody));
|
|
1121
1799
|
break;
|
|
1122
1800
|
case "vue-markdown":
|
|
1123
|
-
|
|
1124
|
-
we(
|
|
1125
|
-
class: [
|
|
1126
|
-
source:
|
|
1801
|
+
l.push(
|
|
1802
|
+
we(lt, {
|
|
1803
|
+
class: [n.classes, "df-messages-widget-markdown"],
|
|
1804
|
+
source: d.componentBindings.source
|
|
1127
1805
|
})
|
|
1128
1806
|
);
|
|
1129
1807
|
break;
|
|
1130
1808
|
default:
|
|
1131
|
-
|
|
1132
|
-
we(
|
|
1809
|
+
l.push(
|
|
1810
|
+
we(d.componentName, L(S({ class: n.classes }, d.componentBindings), { innerHTML: d.componentBody }))
|
|
1133
1811
|
);
|
|
1134
1812
|
break;
|
|
1135
1813
|
}
|
|
1136
|
-
}),
|
|
1814
|
+
}), l;
|
|
1137
1815
|
};
|
|
1138
|
-
return (
|
|
1816
|
+
return (l, d) => (D(), E(o));
|
|
1139
1817
|
}
|
|
1140
|
-
}),
|
|
1818
|
+
}), Wl = { class: "d-flex w-100 df-style-resetting" }, Se = /* @__PURE__ */ U({
|
|
1141
1819
|
__name: "input-base",
|
|
1142
1820
|
props: {
|
|
1143
1821
|
control: {},
|
|
@@ -1157,69 +1835,69 @@ const le = /* @__PURE__ */ O({
|
|
|
1157
1835
|
loading: { type: Boolean }
|
|
1158
1836
|
},
|
|
1159
1837
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
1160
|
-
setup(e, { emit:
|
|
1161
|
-
const
|
|
1162
|
-
function
|
|
1163
|
-
m.value =
|
|
1838
|
+
setup(e, { emit: n }) {
|
|
1839
|
+
const o = e, l = n, { errors: d, label: t, value: a, touched: r, visibility: s, vuetifyBindings: u } = X(o, l), c = T(() => !!(i(o.clearable) && i(a))), m = M(!1);
|
|
1840
|
+
function g(f) {
|
|
1841
|
+
m.value = f, f || (r.value = !0, l("blur"));
|
|
1164
1842
|
}
|
|
1165
|
-
return (
|
|
1166
|
-
const
|
|
1167
|
-
return
|
|
1843
|
+
return (f, b) => {
|
|
1844
|
+
const h = $("v-field"), v = $("v-input");
|
|
1845
|
+
return i(s) !== i(q).SUPPRESS ? (D(), E(v, {
|
|
1168
1846
|
key: 0,
|
|
1169
|
-
name:
|
|
1170
|
-
density:
|
|
1171
|
-
hint:
|
|
1172
|
-
"persistent-hint":
|
|
1173
|
-
"hide-details":
|
|
1174
|
-
"error-messages":
|
|
1847
|
+
name: i(u).name,
|
|
1848
|
+
density: i(u).density,
|
|
1849
|
+
hint: i(u).hint,
|
|
1850
|
+
"persistent-hint": i(u).persistentHint,
|
|
1851
|
+
"hide-details": i(u).hideDetails,
|
|
1852
|
+
"error-messages": i(u).errorMessages,
|
|
1175
1853
|
class: G([
|
|
1176
|
-
|
|
1854
|
+
f.cssClass,
|
|
1177
1855
|
{
|
|
1178
|
-
"d-none":
|
|
1179
|
-
invisible:
|
|
1856
|
+
"d-none": i(s) === i(q).HIDDEN,
|
|
1857
|
+
invisible: i(s) === i(q).INVISIBLE
|
|
1180
1858
|
}
|
|
1181
1859
|
])
|
|
1182
|
-
},
|
|
1183
|
-
message:
|
|
1184
|
-
I(
|
|
1185
|
-
message:
|
|
1186
|
-
errors:
|
|
1860
|
+
}, Ee({
|
|
1861
|
+
message: j(({ message: p }) => [
|
|
1862
|
+
I(re, {
|
|
1863
|
+
message: p,
|
|
1864
|
+
errors: i(d)
|
|
1187
1865
|
}, null, 8, ["message", "errors"])
|
|
1188
1866
|
]),
|
|
1189
|
-
default:
|
|
1190
|
-
I(
|
|
1191
|
-
variant:
|
|
1192
|
-
density:
|
|
1193
|
-
label:
|
|
1194
|
-
disabled:
|
|
1195
|
-
clearable:
|
|
1867
|
+
default: j(() => [
|
|
1868
|
+
I(h, {
|
|
1869
|
+
variant: i(u).variant,
|
|
1870
|
+
density: i(u).density,
|
|
1871
|
+
label: i(u).label,
|
|
1872
|
+
disabled: i(u).disabled,
|
|
1873
|
+
clearable: c.value,
|
|
1196
1874
|
"persistent-clear": !0,
|
|
1197
|
-
dirty: !!
|
|
1875
|
+
dirty: !!i(a),
|
|
1198
1876
|
active: m.value,
|
|
1199
|
-
loading:
|
|
1200
|
-
"onClick:clear":
|
|
1201
|
-
"onUpdate:focused":
|
|
1202
|
-
},
|
|
1203
|
-
label:
|
|
1877
|
+
loading: f.loading,
|
|
1878
|
+
"onClick:clear": b[0] || (b[0] = (p) => l("click:clear")),
|
|
1879
|
+
"onUpdate:focused": b[1] || (b[1] = (p) => g(p))
|
|
1880
|
+
}, Ee({
|
|
1881
|
+
label: j((p) => [
|
|
1204
1882
|
I(ae, {
|
|
1205
|
-
data:
|
|
1206
|
-
label:
|
|
1883
|
+
data: p,
|
|
1884
|
+
label: i(t)
|
|
1207
1885
|
}, null, 8, ["data", "label"])
|
|
1208
1886
|
]),
|
|
1209
|
-
default:
|
|
1210
|
-
oe("div",
|
|
1211
|
-
|
|
1887
|
+
default: j((p) => [
|
|
1888
|
+
oe("div", Wl, [
|
|
1889
|
+
se(f.$slots, "default", ee(te(p)))
|
|
1212
1890
|
])
|
|
1213
1891
|
]),
|
|
1214
|
-
loader:
|
|
1215
|
-
|
|
1892
|
+
loader: j((p) => [
|
|
1893
|
+
se(f.$slots, "loader", ee(te(p)))
|
|
1216
1894
|
]),
|
|
1217
1895
|
_: 2
|
|
1218
1896
|
}, [
|
|
1219
|
-
|
|
1897
|
+
f.$slots["prepend-inner"] ? {
|
|
1220
1898
|
name: "prepend-inner",
|
|
1221
|
-
fn:
|
|
1222
|
-
|
|
1899
|
+
fn: j((p) => [
|
|
1900
|
+
se(f.$slots, "prepend-inner", ee(te(p)))
|
|
1223
1901
|
]),
|
|
1224
1902
|
key: "0"
|
|
1225
1903
|
} : void 0
|
|
@@ -1227,14 +1905,14 @@ const le = /* @__PURE__ */ O({
|
|
|
1227
1905
|
]),
|
|
1228
1906
|
_: 2
|
|
1229
1907
|
}, [
|
|
1230
|
-
|
|
1908
|
+
f.$slots.prepend ? {
|
|
1231
1909
|
name: "prepend",
|
|
1232
|
-
fn:
|
|
1233
|
-
|
|
1910
|
+
fn: j((p) => [
|
|
1911
|
+
se(f.$slots, "prepend", ee(te(p)))
|
|
1234
1912
|
]),
|
|
1235
1913
|
key: "0"
|
|
1236
1914
|
} : void 0
|
|
1237
|
-
]), 1032, ["name", "density", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) :
|
|
1915
|
+
]), 1032, ["name", "density", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : F("", !0);
|
|
1238
1916
|
};
|
|
1239
1917
|
}
|
|
1240
1918
|
}), ve = {
|
|
@@ -1242,78 +1920,78 @@ const le = /* @__PURE__ */ O({
|
|
|
1242
1920
|
No: "No",
|
|
1243
1921
|
Close: "Close"
|
|
1244
1922
|
};
|
|
1245
|
-
function
|
|
1246
|
-
Object.keys(ve).forEach((
|
|
1247
|
-
ve[
|
|
1923
|
+
function Ko(e) {
|
|
1924
|
+
Object.keys(ve).forEach((n) => {
|
|
1925
|
+
ve[n] = e(n);
|
|
1248
1926
|
});
|
|
1249
1927
|
}
|
|
1250
1928
|
var z = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(z || {});
|
|
1251
|
-
const
|
|
1929
|
+
const Ye = 0;
|
|
1252
1930
|
((e) => {
|
|
1253
|
-
function
|
|
1254
|
-
return
|
|
1931
|
+
function n(d) {
|
|
1932
|
+
return d.toUpperCase() === "BUTTON" ? 0 : d.toUpperCase() === "TEXT" ? 1 : Ye;
|
|
1255
1933
|
}
|
|
1256
|
-
e.fromString =
|
|
1257
|
-
function
|
|
1258
|
-
const
|
|
1259
|
-
return Object.values(e).includes(
|
|
1934
|
+
e.fromString = n;
|
|
1935
|
+
function o(d) {
|
|
1936
|
+
const t = typeof d == "number" ? d : e.fromString(d);
|
|
1937
|
+
return Object.values(e).includes(t) ? t : Ye;
|
|
1260
1938
|
}
|
|
1261
|
-
e.fromAny =
|
|
1262
|
-
function
|
|
1263
|
-
const
|
|
1264
|
-
return Object.values(e).includes(
|
|
1939
|
+
e.fromAny = o;
|
|
1940
|
+
function l(d) {
|
|
1941
|
+
const t = typeof d == "number" ? d : e.fromString(d);
|
|
1942
|
+
return Object.values(e).includes(t);
|
|
1265
1943
|
}
|
|
1266
|
-
e.isDefined =
|
|
1944
|
+
e.isDefined = l;
|
|
1267
1945
|
})(z || (z = {}));
|
|
1268
1946
|
Object.freeze(z);
|
|
1269
|
-
const
|
|
1270
|
-
class
|
|
1271
|
-
constructor(
|
|
1272
|
-
|
|
1273
|
-
this._value = this.cleanBreakpoint(
|
|
1274
|
-
const
|
|
1275
|
-
|
|
1947
|
+
const Qe = ["xs", "sm", "md", "lg", "xl"];
|
|
1948
|
+
class zl {
|
|
1949
|
+
constructor(n) {
|
|
1950
|
+
Me(this, "_value");
|
|
1951
|
+
this._value = this.cleanBreakpoint(n, !0), n && Qe.forEach((o) => {
|
|
1952
|
+
const l = this.cleanBreakpoint(n[o]);
|
|
1953
|
+
l && (this._value[o] = l);
|
|
1276
1954
|
});
|
|
1277
1955
|
}
|
|
1278
|
-
getOptionsForBreakpoint(
|
|
1279
|
-
const
|
|
1280
|
-
for (const
|
|
1281
|
-
const
|
|
1282
|
-
for (const
|
|
1283
|
-
(
|
|
1284
|
-
if (
|
|
1956
|
+
getOptionsForBreakpoint(n) {
|
|
1957
|
+
const o = this.cleanBreakpoint(this._value), l = Object.keys(o);
|
|
1958
|
+
for (const d of Qe) {
|
|
1959
|
+
const t = this._value[d];
|
|
1960
|
+
for (const a of l)
|
|
1961
|
+
(t == null ? void 0 : t[a]) != null && (o[a] = t[a]);
|
|
1962
|
+
if (d === n) break;
|
|
1285
1963
|
}
|
|
1286
|
-
return
|
|
1964
|
+
return o;
|
|
1287
1965
|
}
|
|
1288
1966
|
}
|
|
1289
|
-
function
|
|
1967
|
+
function Hl(e) {
|
|
1290
1968
|
return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
|
|
1291
1969
|
}
|
|
1292
|
-
function
|
|
1293
|
-
const e =
|
|
1294
|
-
return
|
|
1970
|
+
function Kl() {
|
|
1971
|
+
const e = Dt();
|
|
1972
|
+
return T(() => Hl(e));
|
|
1295
1973
|
}
|
|
1296
|
-
class
|
|
1297
|
-
cleanBreakpoint(
|
|
1298
|
-
if ((!
|
|
1299
|
-
const
|
|
1300
|
-
return
|
|
1974
|
+
class ql extends zl {
|
|
1975
|
+
cleanBreakpoint(n, o = !1) {
|
|
1976
|
+
if ((!n || !kt(n)) && !o) return null;
|
|
1977
|
+
const l = {};
|
|
1978
|
+
return o && (l.renderAs = z.BUTTON, l.showLabel = !0, l.showIcon = !0), n && (n.renderAs != null && (l.renderAs = z.fromAny(n.renderAs)), ne(n.label) && (l.label = n.label), ne(n.icon) && (l.icon = n.icon), Re(n.showLabel) && (l.showLabel = n.showLabel), Re(n.showIcon) && (l.showIcon = n.showIcon)), Object.keys(l).length ? l : null;
|
|
1301
1979
|
}
|
|
1302
1980
|
}
|
|
1303
|
-
class
|
|
1304
|
-
static create(
|
|
1305
|
-
return super.create(
|
|
1981
|
+
class Ve extends Tt {
|
|
1982
|
+
static create(n) {
|
|
1983
|
+
return super.create(n);
|
|
1306
1984
|
}
|
|
1307
|
-
getBreakpointValue(
|
|
1308
|
-
return
|
|
1309
|
-
const
|
|
1985
|
+
getBreakpointValue(n) {
|
|
1986
|
+
return T(() => {
|
|
1987
|
+
const l = new ql(this.value).getOptionsForBreakpoint(n.value);
|
|
1310
1988
|
return {
|
|
1311
|
-
name:
|
|
1312
|
-
label:
|
|
1313
|
-
icon:
|
|
1314
|
-
renderAs:
|
|
1315
|
-
showLabel:
|
|
1316
|
-
showIcon:
|
|
1989
|
+
name: l.name,
|
|
1990
|
+
label: l.showLabel ? l.label : void 0,
|
|
1991
|
+
icon: l.showIcon ? l.icon : void 0,
|
|
1992
|
+
renderAs: l.renderAs,
|
|
1993
|
+
showLabel: ne(l.label) && !he(l.label) ? l.showLabel : !1,
|
|
1994
|
+
showIcon: ne(l.icon) && !he(l.icon) ? l.showIcon : !1
|
|
1317
1995
|
};
|
|
1318
1996
|
});
|
|
1319
1997
|
}
|
|
@@ -1324,20 +2002,20 @@ class ke extends yt {
|
|
|
1324
2002
|
return this.value.showLabel ? this.value.label : void 0;
|
|
1325
2003
|
}
|
|
1326
2004
|
get showLabel() {
|
|
1327
|
-
return
|
|
2005
|
+
return ne(this.value.label) && !he(this.value.label) ? this.value.showLabel : !1;
|
|
1328
2006
|
}
|
|
1329
2007
|
get icon() {
|
|
1330
2008
|
return this.value.showIcon ? this.value.icon : void 0;
|
|
1331
2009
|
}
|
|
1332
2010
|
get showIcon() {
|
|
1333
|
-
return
|
|
2011
|
+
return ne(this.value.icon) && !he(this.value.icon) ? this.value.showIcon : !1;
|
|
1334
2012
|
}
|
|
1335
2013
|
get renderAs() {
|
|
1336
2014
|
return this.value.renderAs;
|
|
1337
2015
|
}
|
|
1338
|
-
static closeAction(
|
|
1339
|
-
var
|
|
1340
|
-
const
|
|
2016
|
+
static closeAction(n) {
|
|
2017
|
+
var l;
|
|
2018
|
+
const o = L(S({}, n != null ? n : {}), {
|
|
1341
2019
|
// any properties in data should overwrite properties in the constant
|
|
1342
2020
|
value: {
|
|
1343
2021
|
name: "close",
|
|
@@ -1348,11 +2026,11 @@ class ke extends yt {
|
|
|
1348
2026
|
showIcon: !0
|
|
1349
2027
|
}
|
|
1350
2028
|
});
|
|
1351
|
-
return
|
|
2029
|
+
return o.value = S(S({}, o.value), (l = n == null ? void 0 : n.value) != null ? l : {}), Ve.create(o);
|
|
1352
2030
|
}
|
|
1353
|
-
static yesAction(
|
|
1354
|
-
var
|
|
1355
|
-
const
|
|
2031
|
+
static yesAction(n) {
|
|
2032
|
+
var l;
|
|
2033
|
+
const o = L(S({}, n != null ? n : {}), {
|
|
1356
2034
|
// any properties in data should overwrite properties in the constant
|
|
1357
2035
|
value: {
|
|
1358
2036
|
name: "yes",
|
|
@@ -1363,11 +2041,11 @@ class ke extends yt {
|
|
|
1363
2041
|
showIcon: !0
|
|
1364
2042
|
}
|
|
1365
2043
|
});
|
|
1366
|
-
return
|
|
2044
|
+
return o.value = S(S({}, o.value), (l = n == null ? void 0 : n.value) != null ? l : {}), Ve.create(o);
|
|
1367
2045
|
}
|
|
1368
|
-
static noAction(
|
|
1369
|
-
var
|
|
1370
|
-
const
|
|
2046
|
+
static noAction(n) {
|
|
2047
|
+
var l;
|
|
2048
|
+
const o = L(S({}, n != null ? n : {}), {
|
|
1371
2049
|
// any properties in data should overwrite properties in the constant
|
|
1372
2050
|
value: {
|
|
1373
2051
|
name: "no",
|
|
@@ -1378,13 +2056,13 @@ class ke extends yt {
|
|
|
1378
2056
|
showIcon: !0
|
|
1379
2057
|
}
|
|
1380
2058
|
});
|
|
1381
|
-
return
|
|
2059
|
+
return o.value = S(S({}, o.value), (l = n == null ? void 0 : n.value) != null ? l : {}), Ve.create(o);
|
|
1382
2060
|
}
|
|
1383
2061
|
}
|
|
1384
|
-
const
|
|
2062
|
+
const Xl = {
|
|
1385
2063
|
key: 1,
|
|
1386
2064
|
style: { width: "0.5rem" }
|
|
1387
|
-
},
|
|
2065
|
+
}, Gl = { key: 2 }, Yl = /* @__PURE__ */ U({
|
|
1388
2066
|
__name: "df-actions",
|
|
1389
2067
|
props: {
|
|
1390
2068
|
actions: {},
|
|
@@ -1392,43 +2070,43 @@ const Fo = {
|
|
|
1392
2070
|
showAsGroup: { default: "no" }
|
|
1393
2071
|
},
|
|
1394
2072
|
setup(e) {
|
|
1395
|
-
const
|
|
1396
|
-
() =>
|
|
1397
|
-
action:
|
|
1398
|
-
},
|
|
2073
|
+
const n = e, o = Kl(), l = T(() => i(n.actions)), d = T(
|
|
2074
|
+
() => l.value.map((t) => S({
|
|
2075
|
+
action: t
|
|
2076
|
+
}, i(t.getBreakpointValue(o))))
|
|
1399
2077
|
);
|
|
1400
|
-
return (
|
|
1401
|
-
const
|
|
1402
|
-
return
|
|
2078
|
+
return (t, a) => {
|
|
2079
|
+
const r = $("v-btn");
|
|
2080
|
+
return l.value.length > 0 ? (D(), W("div", {
|
|
1403
2081
|
key: 0,
|
|
1404
2082
|
class: G(["text-end df-actions", {
|
|
1405
|
-
"button-group":
|
|
1406
|
-
"with-border":
|
|
2083
|
+
"button-group": t.showAsGroup === "grouped" || t.showAsGroup === "grouped-no-borders",
|
|
2084
|
+
"with-border": t.showAsGroup === "grouped"
|
|
1407
2085
|
}])
|
|
1408
2086
|
}, [
|
|
1409
|
-
(
|
|
1410
|
-
key:
|
|
1411
|
-
variant:
|
|
2087
|
+
(D(!0), W(Be, null, bt(d.value, (s, u) => (D(), E(r, {
|
|
2088
|
+
key: u,
|
|
2089
|
+
variant: s.renderAs === i(z).BUTTON ? "tonal" : "text",
|
|
1412
2090
|
elevation: 0,
|
|
1413
|
-
size:
|
|
1414
|
-
onClick:
|
|
2091
|
+
size: t.buttonSize,
|
|
2092
|
+
onClick: gt((c) => s.action.execute(c), ["stop"])
|
|
1415
2093
|
}, {
|
|
1416
|
-
default:
|
|
1417
|
-
|
|
2094
|
+
default: j(() => [
|
|
2095
|
+
s.icon ? (D(), E(i(ge), {
|
|
1418
2096
|
key: 0,
|
|
1419
|
-
name:
|
|
1420
|
-
}, null, 8, ["name"])) :
|
|
1421
|
-
|
|
1422
|
-
|
|
2097
|
+
name: s.icon
|
|
2098
|
+
}, null, 8, ["name"])) : F("", !0),
|
|
2099
|
+
s.icon && s.label ? (D(), W("span", Xl)) : F("", !0),
|
|
2100
|
+
s.label ? (D(), W("span", Gl, Pe(s.label), 1)) : F("", !0)
|
|
1423
2101
|
]),
|
|
1424
2102
|
_: 2
|
|
1425
2103
|
}, 1032, ["variant", "size", "onClick"]))), 128))
|
|
1426
|
-
], 2)) :
|
|
2104
|
+
], 2)) : F("", !0);
|
|
1427
2105
|
};
|
|
1428
2106
|
}
|
|
1429
|
-
}),
|
|
2107
|
+
}), Ql = /* @__PURE__ */ U({
|
|
1430
2108
|
__name: "df-checkbox",
|
|
1431
|
-
props: /* @__PURE__ */
|
|
2109
|
+
props: /* @__PURE__ */ Y({
|
|
1432
2110
|
allowNull: { type: Boolean },
|
|
1433
2111
|
control: {},
|
|
1434
2112
|
modelValue: {},
|
|
@@ -1444,54 +2122,54 @@ const Fo = {
|
|
|
1444
2122
|
passthroughAttrs: {},
|
|
1445
2123
|
density: {},
|
|
1446
2124
|
variant: {}
|
|
1447
|
-
}, L(S({},
|
|
2125
|
+
}, L(S({}, Q), { allowNull: !1 })),
|
|
1448
2126
|
emits: ["update:modelValue", "click:clear"],
|
|
1449
|
-
setup(e, { emit:
|
|
1450
|
-
const
|
|
2127
|
+
setup(e, { emit: n }) {
|
|
2128
|
+
const o = e, l = n, { densityClass: d, errors: t, label: a, touched: r, value: s, vuetifyBindings: u } = X(o, l), c = T(() => o.allowNull && s.value == null), m = T({
|
|
1451
2129
|
get() {
|
|
1452
|
-
return
|
|
2130
|
+
return s.value;
|
|
1453
2131
|
},
|
|
1454
2132
|
set() {
|
|
1455
2133
|
}
|
|
1456
2134
|
});
|
|
1457
|
-
function
|
|
1458
|
-
const
|
|
1459
|
-
|
|
2135
|
+
function g() {
|
|
2136
|
+
const f = Vt(s.value);
|
|
2137
|
+
f === !0 ? s.value = o.allowNull ? null : !1 : s.value = f === !1;
|
|
1460
2138
|
}
|
|
1461
|
-
return (
|
|
1462
|
-
const
|
|
1463
|
-
return
|
|
2139
|
+
return (f, b) => {
|
|
2140
|
+
const h = $("v-checkbox");
|
|
2141
|
+
return D(), E(h, R({
|
|
1464
2142
|
modelValue: m.value,
|
|
1465
|
-
"onUpdate:modelValue":
|
|
1466
|
-
},
|
|
2143
|
+
"onUpdate:modelValue": b[0] || (b[0] = (v) => m.value = v)
|
|
2144
|
+
}, i(u), {
|
|
1467
2145
|
density: "compact",
|
|
1468
|
-
class:
|
|
1469
|
-
indeterminate:
|
|
2146
|
+
class: i(d),
|
|
2147
|
+
indeterminate: c.value,
|
|
1470
2148
|
"false-value": !1,
|
|
1471
2149
|
"true-value": !0,
|
|
1472
|
-
onChange:
|
|
1473
|
-
onBlur:
|
|
2150
|
+
onChange: g,
|
|
2151
|
+
onBlur: b[1] || (b[1] = (v) => r.value = !0)
|
|
1474
2152
|
}), {
|
|
1475
|
-
label:
|
|
1476
|
-
I(
|
|
2153
|
+
label: j((v) => [
|
|
2154
|
+
I(i(ae), {
|
|
1477
2155
|
"allow-wrap": !0,
|
|
1478
|
-
data:
|
|
1479
|
-
label:
|
|
2156
|
+
data: v,
|
|
2157
|
+
label: i(a)
|
|
1480
2158
|
}, null, 8, ["data", "label"])
|
|
1481
2159
|
]),
|
|
1482
|
-
message:
|
|
1483
|
-
I(
|
|
1484
|
-
message:
|
|
1485
|
-
errors:
|
|
2160
|
+
message: j(({ message: v }) => [
|
|
2161
|
+
I(i(re), {
|
|
2162
|
+
message: v,
|
|
2163
|
+
errors: i(t)
|
|
1486
2164
|
}, null, 8, ["message", "errors"])
|
|
1487
2165
|
]),
|
|
1488
2166
|
_: 1
|
|
1489
2167
|
}, 16, ["modelValue", "class", "indeterminate"]);
|
|
1490
2168
|
};
|
|
1491
2169
|
}
|
|
1492
|
-
}),
|
|
2170
|
+
}), Zl = /* @__PURE__ */ U({
|
|
1493
2171
|
__name: "df-color",
|
|
1494
|
-
props: /* @__PURE__ */
|
|
2172
|
+
props: /* @__PURE__ */ Y({
|
|
1495
2173
|
allowNull: { type: Boolean },
|
|
1496
2174
|
control: {},
|
|
1497
2175
|
modelValue: {},
|
|
@@ -1507,52 +2185,52 @@ const Fo = {
|
|
|
1507
2185
|
passthroughAttrs: {},
|
|
1508
2186
|
density: {},
|
|
1509
2187
|
variant: {}
|
|
1510
|
-
}, L(S({},
|
|
2188
|
+
}, L(S({}, Q), { allowNull: !1 })),
|
|
1511
2189
|
emits: ["update:modelValue", "click:clear"],
|
|
1512
|
-
setup(e, { emit:
|
|
1513
|
-
const
|
|
1514
|
-
(
|
|
2190
|
+
setup(e, { emit: n }) {
|
|
2191
|
+
const o = e, l = n, { densityClass: d, errors: t, label: a, touched: r, value: s, vuetifyBindings: u } = X(o, l), c = M(!1), m = T(() => [
|
|
2192
|
+
(g) => o.control || !g && o.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(g) ? !0 : "Not a valid hex string."
|
|
1515
2193
|
]);
|
|
1516
|
-
return (
|
|
1517
|
-
const
|
|
1518
|
-
return
|
|
1519
|
-
modelValue:
|
|
1520
|
-
"onUpdate:modelValue":
|
|
1521
|
-
},
|
|
1522
|
-
class:
|
|
1523
|
-
clearable:
|
|
2194
|
+
return (g, f) => {
|
|
2195
|
+
const b = $("v-color-picker"), h = $("v-menu"), v = $("v-text-field");
|
|
2196
|
+
return D(), E(v, R({
|
|
2197
|
+
modelValue: i(s),
|
|
2198
|
+
"onUpdate:modelValue": f[2] || (f[2] = (p) => le(s) ? s.value = p : null)
|
|
2199
|
+
}, i(u), {
|
|
2200
|
+
class: i(d),
|
|
2201
|
+
clearable: g.allowNull,
|
|
1524
2202
|
type: "text",
|
|
1525
2203
|
rules: m.value,
|
|
1526
|
-
onBlur:
|
|
2204
|
+
onBlur: f[3] || (f[3] = (p) => r.value = !0)
|
|
1527
2205
|
}), {
|
|
1528
|
-
label:
|
|
1529
|
-
I(
|
|
1530
|
-
data:
|
|
1531
|
-
label:
|
|
2206
|
+
label: j((p) => [
|
|
2207
|
+
I(i(ae), {
|
|
2208
|
+
data: p,
|
|
2209
|
+
label: i(a)
|
|
1532
2210
|
}, null, 8, ["data", "label"])
|
|
1533
2211
|
]),
|
|
1534
|
-
message:
|
|
1535
|
-
I(
|
|
1536
|
-
message:
|
|
1537
|
-
errors:
|
|
2212
|
+
message: j(({ message: p }) => [
|
|
2213
|
+
I(i(re), {
|
|
2214
|
+
message: p,
|
|
2215
|
+
errors: i(t)
|
|
1538
2216
|
}, null, 8, ["message", "errors"])
|
|
1539
2217
|
]),
|
|
1540
|
-
"prepend-inner":
|
|
2218
|
+
"prepend-inner": j(() => [
|
|
1541
2219
|
oe("div", {
|
|
1542
|
-
style:
|
|
2220
|
+
style: et([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: i(s) }])
|
|
1543
2221
|
}, null, 4)
|
|
1544
2222
|
]),
|
|
1545
|
-
default:
|
|
1546
|
-
I(
|
|
1547
|
-
modelValue:
|
|
1548
|
-
"onUpdate:modelValue":
|
|
2223
|
+
default: j(() => [
|
|
2224
|
+
I(h, {
|
|
2225
|
+
modelValue: c.value,
|
|
2226
|
+
"onUpdate:modelValue": f[1] || (f[1] = (p) => c.value = p),
|
|
1549
2227
|
"close-on-content-click": !1,
|
|
1550
2228
|
activator: "parent"
|
|
1551
2229
|
}, {
|
|
1552
|
-
default:
|
|
1553
|
-
I(
|
|
1554
|
-
modelValue:
|
|
1555
|
-
"onUpdate:modelValue":
|
|
2230
|
+
default: j(() => [
|
|
2231
|
+
I(b, {
|
|
2232
|
+
modelValue: i(s),
|
|
2233
|
+
"onUpdate:modelValue": f[0] || (f[0] = (p) => le(s) ? s.value = p : null),
|
|
1556
2234
|
mode: "hexa"
|
|
1557
2235
|
}, null, 8, ["modelValue"])
|
|
1558
2236
|
]),
|
|
@@ -1563,9 +2241,9 @@ const Fo = {
|
|
|
1563
2241
|
}, 16, ["modelValue", "class", "clearable", "rules"]);
|
|
1564
2242
|
};
|
|
1565
2243
|
}
|
|
1566
|
-
}),
|
|
2244
|
+
}), Jl = /* @__PURE__ */ U({
|
|
1567
2245
|
__name: "df-datetime",
|
|
1568
|
-
props: /* @__PURE__ */
|
|
2246
|
+
props: /* @__PURE__ */ Y({
|
|
1569
2247
|
inputType: {},
|
|
1570
2248
|
displayFormatDate: {},
|
|
1571
2249
|
displayFormatTime: {},
|
|
@@ -1584,150 +2262,150 @@ const Fo = {
|
|
|
1584
2262
|
passthroughAttrs: {},
|
|
1585
2263
|
density: {},
|
|
1586
2264
|
variant: {}
|
|
1587
|
-
}, L(S({},
|
|
2265
|
+
}, L(S({}, Q), {
|
|
1588
2266
|
inputType: "datetime",
|
|
1589
2267
|
displayFormatDate: "P",
|
|
1590
2268
|
displayFormatTime: "p"
|
|
1591
2269
|
})),
|
|
1592
2270
|
emits: ["update:modelValue", "click:clear"],
|
|
1593
|
-
setup(e, { emit:
|
|
1594
|
-
const
|
|
1595
|
-
var
|
|
1596
|
-
return (
|
|
1597
|
-
}),
|
|
1598
|
-
var
|
|
1599
|
-
return (
|
|
1600
|
-
}), { densityClass:
|
|
2271
|
+
setup(e, { emit: n }) {
|
|
2272
|
+
const o = e, l = n, d = T(() => {
|
|
2273
|
+
var k;
|
|
2274
|
+
return (k = o.locale) != null ? k : i(Ol.dateTimeLocale);
|
|
2275
|
+
}), t = T(() => {
|
|
2276
|
+
var k, y;
|
|
2277
|
+
return (y = (k = d.value.options) == null ? void 0 : k.weekStartsOn) != null ? y : 1;
|
|
2278
|
+
}), { densityClass: a, touched: r, value: s, vuetifyBindings: u } = X(o, l), { inputType: c, displayFormatDate: m, displayFormatTime: g } = je(o), f = M(""), b = T({
|
|
1601
2279
|
get() {
|
|
1602
|
-
return
|
|
2280
|
+
return i(f) === "date";
|
|
1603
2281
|
},
|
|
1604
|
-
set(
|
|
1605
|
-
|
|
2282
|
+
set(k) {
|
|
2283
|
+
f.value = k ? "date" : "";
|
|
1606
2284
|
}
|
|
1607
|
-
}),
|
|
2285
|
+
}), h = T({
|
|
1608
2286
|
get() {
|
|
1609
|
-
return
|
|
2287
|
+
return i(f) === "time";
|
|
1610
2288
|
},
|
|
1611
|
-
set(
|
|
1612
|
-
|
|
2289
|
+
set(k) {
|
|
2290
|
+
f.value = k ? "time" : "";
|
|
1613
2291
|
}
|
|
1614
|
-
}),
|
|
1615
|
-
function
|
|
1616
|
-
if (
|
|
1617
|
-
|
|
1618
|
-
else if (
|
|
1619
|
-
if (
|
|
1620
|
-
|
|
2292
|
+
}), v = (k) => `${me(k, "yyyy-MM-dd")}T${me(k, "HH:mm")}:00`, p = M(null);
|
|
2293
|
+
function _(k, y) {
|
|
2294
|
+
if (k == null)
|
|
2295
|
+
p.value = null;
|
|
2296
|
+
else if (y === -1)
|
|
2297
|
+
if (i(c) === "time")
|
|
2298
|
+
p.value = v(/* @__PURE__ */ new Date()), _(`T${k}`, 1);
|
|
1621
2299
|
else {
|
|
1622
|
-
const
|
|
1623
|
-
|
|
2300
|
+
const O = v(new Date(k));
|
|
2301
|
+
_(O, 0), _(O, 1);
|
|
1624
2302
|
}
|
|
1625
2303
|
else {
|
|
1626
|
-
|
|
1627
|
-
const
|
|
1628
|
-
|
|
2304
|
+
p.value == null && (p.value = v(/* @__PURE__ */ new Date()));
|
|
2305
|
+
const O = p.value.split(/[TZ]/g), H = k.split(/[TZ]/g);
|
|
2306
|
+
O[y] = H[y], p.value = v(/* @__PURE__ */ new Date(`${O[0]}T${O[1].split(".")[0]}`)), i(c) === "date" ? s.value = O[0] : i(c) === "time" ? s.value = O[1] : s.value = i(p) + me(/* @__PURE__ */ new Date(), "XXX");
|
|
1629
2307
|
}
|
|
1630
2308
|
}
|
|
1631
|
-
|
|
1632
|
-
const
|
|
2309
|
+
ue(s, (k) => _(k, -1), { immediate: !0 });
|
|
2310
|
+
const w = T({
|
|
1633
2311
|
get() {
|
|
1634
|
-
const
|
|
1635
|
-
if (
|
|
1636
|
-
const
|
|
1637
|
-
return Number.isNaN(
|
|
2312
|
+
const k = i(p);
|
|
2313
|
+
if (k == null) return null;
|
|
2314
|
+
const y = new Date(k);
|
|
2315
|
+
return Number.isNaN(y.getTime()) ? null : y;
|
|
1638
2316
|
},
|
|
1639
|
-
set(
|
|
1640
|
-
|
|
2317
|
+
set(k) {
|
|
2318
|
+
_(v(k), 0);
|
|
1641
2319
|
}
|
|
1642
|
-
}),
|
|
2320
|
+
}), V = T({
|
|
1643
2321
|
get() {
|
|
1644
|
-
const
|
|
1645
|
-
return
|
|
2322
|
+
const k = i(p);
|
|
2323
|
+
return k == null ? "" : k.split(/[TZ]/g)[1].split(".")[0];
|
|
1646
2324
|
},
|
|
1647
|
-
set(
|
|
1648
|
-
|
|
2325
|
+
set(k) {
|
|
2326
|
+
_(`T${k}`, 1);
|
|
1649
2327
|
}
|
|
1650
|
-
}),
|
|
2328
|
+
}), C = T({
|
|
1651
2329
|
get() {
|
|
1652
|
-
const
|
|
1653
|
-
return
|
|
2330
|
+
const k = i(w);
|
|
2331
|
+
return k == null ? "" : me(k, i(m), { locale: d.value });
|
|
1654
2332
|
},
|
|
1655
|
-
set(
|
|
2333
|
+
set(k) {
|
|
1656
2334
|
try {
|
|
1657
|
-
const
|
|
1658
|
-
|
|
1659
|
-
} catch (
|
|
1660
|
-
console.error(
|
|
2335
|
+
const y = At(k, i(m), /* @__PURE__ */ new Date(), { locale: d.value });
|
|
2336
|
+
_(v(y), 0);
|
|
2337
|
+
} catch (y) {
|
|
2338
|
+
console.error(y);
|
|
1661
2339
|
}
|
|
1662
2340
|
}
|
|
1663
|
-
}),
|
|
2341
|
+
}), N = T({
|
|
1664
2342
|
get() {
|
|
1665
|
-
const
|
|
1666
|
-
return
|
|
2343
|
+
const k = i(w);
|
|
2344
|
+
return k == null ? "" : me(k, i(g), { locale: d.value });
|
|
1667
2345
|
},
|
|
1668
|
-
set(
|
|
1669
|
-
const
|
|
1670
|
-
if (
|
|
1671
|
-
let
|
|
1672
|
-
const H =
|
|
1673
|
-
|
|
2346
|
+
set(k) {
|
|
2347
|
+
const y = k.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
2348
|
+
if (y == null) return;
|
|
2349
|
+
let O = We(y[1]);
|
|
2350
|
+
const H = We(y[2]);
|
|
2351
|
+
ze(O) || ze(H) || (y[3] && y[3].toLowerCase() === "pm" && O < 13 && (O += 12), _(`T${O.toString().padStart(2, "0")}:${H.toString().padStart(2, "0")}:00`, 1));
|
|
1674
2352
|
}
|
|
1675
2353
|
});
|
|
1676
|
-
return (
|
|
1677
|
-
const
|
|
1678
|
-
return
|
|
1679
|
-
class:
|
|
1680
|
-
clearable:
|
|
1681
|
-
"onClick:clear":
|
|
1682
|
-
onBlur:
|
|
2354
|
+
return (k, y) => {
|
|
2355
|
+
const O = $("v-date-picker"), H = $("v-confirm-edit"), ce = $("v-menu"), de = $("v-text-field"), x = $("v-time-picker");
|
|
2356
|
+
return D(), E(i(Se), R(o, {
|
|
2357
|
+
class: i(a),
|
|
2358
|
+
clearable: k.clearable,
|
|
2359
|
+
"onClick:clear": y[14] || (y[14] = (B) => s.value = null),
|
|
2360
|
+
onBlur: y[15] || (y[15] = (B) => r.value = !0)
|
|
1683
2361
|
}), {
|
|
1684
|
-
default:
|
|
2362
|
+
default: j((B) => [
|
|
1685
2363
|
oe("div", {
|
|
1686
|
-
class: G(["d-flex w-100 ml-4 df-input-wrapper",
|
|
2364
|
+
class: G(["d-flex w-100 ml-4 df-input-wrapper", k.density])
|
|
1687
2365
|
}, [
|
|
1688
|
-
["date", "datetime"].includes(
|
|
2366
|
+
["date", "datetime"].includes(i(c)) ? (D(), E(de, R({
|
|
1689
2367
|
key: 0,
|
|
1690
|
-
modelValue:
|
|
1691
|
-
"onUpdate:modelValue":
|
|
2368
|
+
modelValue: C.value,
|
|
2369
|
+
"onUpdate:modelValue": y[4] || (y[4] = (A) => C.value = A),
|
|
1692
2370
|
style: { "flex-grow": "4" },
|
|
1693
2371
|
density: "compact",
|
|
1694
2372
|
variant: "plain",
|
|
1695
2373
|
clearable: !1,
|
|
1696
2374
|
"hide-details": !0,
|
|
1697
|
-
readonly:
|
|
1698
|
-
disabled:
|
|
1699
|
-
name: `${
|
|
1700
|
-
},
|
|
1701
|
-
onClick:
|
|
1702
|
-
onKeydown:
|
|
1703
|
-
onFocus: (
|
|
1704
|
-
onBlur: (
|
|
2375
|
+
readonly: i(u).readonly,
|
|
2376
|
+
disabled: i(u).disabled,
|
|
2377
|
+
name: `${i(u).name}-date`
|
|
2378
|
+
}, k.passthroughAttrs, {
|
|
2379
|
+
onClick: y[5] || (y[5] = (A) => f.value = "date"),
|
|
2380
|
+
onKeydown: y[6] || (y[6] = Fe((A) => f.value = "date", ["space"])),
|
|
2381
|
+
onFocus: (A) => B.focus(),
|
|
2382
|
+
onBlur: (A) => B.blur()
|
|
1705
2383
|
}), {
|
|
1706
|
-
default:
|
|
1707
|
-
I(
|
|
1708
|
-
modelValue:
|
|
1709
|
-
"onUpdate:modelValue":
|
|
2384
|
+
default: j(() => [
|
|
2385
|
+
I(ce, {
|
|
2386
|
+
modelValue: b.value,
|
|
2387
|
+
"onUpdate:modelValue": y[3] || (y[3] = (A) => b.value = A),
|
|
1710
2388
|
"close-on-content-click": !1,
|
|
1711
2389
|
activator: "parent"
|
|
1712
2390
|
}, {
|
|
1713
|
-
default:
|
|
2391
|
+
default: j(() => [
|
|
1714
2392
|
I(H, {
|
|
1715
|
-
modelValue:
|
|
1716
|
-
"onUpdate:modelValue":
|
|
1717
|
-
onCancel:
|
|
1718
|
-
onSave:
|
|
2393
|
+
modelValue: w.value,
|
|
2394
|
+
"onUpdate:modelValue": y[0] || (y[0] = (A) => w.value = A),
|
|
2395
|
+
onCancel: y[1] || (y[1] = (A) => f.value = ""),
|
|
2396
|
+
onSave: y[2] || (y[2] = (A) => f.value = "")
|
|
1719
2397
|
}, {
|
|
1720
|
-
default:
|
|
1721
|
-
I(
|
|
1722
|
-
modelValue:
|
|
1723
|
-
"onUpdate:modelValue": (
|
|
2398
|
+
default: j(({ model: A, actions: Z }) => [
|
|
2399
|
+
I(O, {
|
|
2400
|
+
modelValue: A.value,
|
|
2401
|
+
"onUpdate:modelValue": (P) => A.value = P,
|
|
1724
2402
|
"hide-header": !0,
|
|
1725
|
-
"first-day-of-week":
|
|
2403
|
+
"first-day-of-week": t.value,
|
|
1726
2404
|
"show-adjacent-months": !0,
|
|
1727
2405
|
"show-week": !0
|
|
1728
2406
|
}, {
|
|
1729
|
-
actions:
|
|
1730
|
-
(
|
|
2407
|
+
actions: j(() => [
|
|
2408
|
+
(D(), E(be(Z)))
|
|
1731
2409
|
]),
|
|
1732
2410
|
_: 2
|
|
1733
2411
|
}, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
|
|
@@ -1739,48 +2417,48 @@ const Fo = {
|
|
|
1739
2417
|
}, 8, ["modelValue"])
|
|
1740
2418
|
]),
|
|
1741
2419
|
_: 1
|
|
1742
|
-
}, 16, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) :
|
|
1743
|
-
["time", "datetime"].includes(
|
|
2420
|
+
}, 16, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : F("", !0),
|
|
2421
|
+
["time", "datetime"].includes(i(c)) ? (D(), E(de, R({
|
|
1744
2422
|
key: 1,
|
|
1745
|
-
modelValue:
|
|
1746
|
-
"onUpdate:modelValue":
|
|
2423
|
+
modelValue: N.value,
|
|
2424
|
+
"onUpdate:modelValue": y[11] || (y[11] = (A) => N.value = A),
|
|
1747
2425
|
style: { "flex-grow": "3" },
|
|
1748
2426
|
density: "compact",
|
|
1749
2427
|
variant: "plain",
|
|
1750
2428
|
clearable: !1,
|
|
1751
2429
|
"hide-details": !0,
|
|
1752
|
-
readonly:
|
|
1753
|
-
disabled:
|
|
1754
|
-
name: `${
|
|
1755
|
-
},
|
|
1756
|
-
onClick:
|
|
1757
|
-
onKeydown:
|
|
1758
|
-
onFocus: (
|
|
1759
|
-
onBlur: (
|
|
2430
|
+
readonly: i(u).readonly,
|
|
2431
|
+
disabled: i(u).disabled,
|
|
2432
|
+
name: `${i(u).name}-time`
|
|
2433
|
+
}, k.passthroughAttrs, {
|
|
2434
|
+
onClick: y[12] || (y[12] = (A) => f.value = "time"),
|
|
2435
|
+
onKeydown: y[13] || (y[13] = Fe((A) => f.value = "time", ["space"])),
|
|
2436
|
+
onFocus: (A) => B.focus(),
|
|
2437
|
+
onBlur: (A) => B.blur()
|
|
1760
2438
|
}), {
|
|
1761
|
-
default:
|
|
1762
|
-
I(
|
|
1763
|
-
modelValue:
|
|
1764
|
-
"onUpdate:modelValue":
|
|
2439
|
+
default: j(() => [
|
|
2440
|
+
I(ce, {
|
|
2441
|
+
modelValue: h.value,
|
|
2442
|
+
"onUpdate:modelValue": y[10] || (y[10] = (A) => h.value = A),
|
|
1765
2443
|
"close-on-content-click": !1,
|
|
1766
2444
|
activator: "parent"
|
|
1767
2445
|
}, {
|
|
1768
|
-
default:
|
|
2446
|
+
default: j(() => [
|
|
1769
2447
|
I(H, {
|
|
1770
|
-
modelValue:
|
|
1771
|
-
"onUpdate:modelValue":
|
|
1772
|
-
onCancel:
|
|
1773
|
-
onSave:
|
|
2448
|
+
modelValue: V.value,
|
|
2449
|
+
"onUpdate:modelValue": y[7] || (y[7] = (A) => V.value = A),
|
|
2450
|
+
onCancel: y[8] || (y[8] = (A) => f.value = ""),
|
|
2451
|
+
onSave: y[9] || (y[9] = (A) => f.value = "")
|
|
1774
2452
|
}, {
|
|
1775
|
-
default:
|
|
1776
|
-
I(
|
|
1777
|
-
modelValue:
|
|
1778
|
-
"onUpdate:modelValue": (
|
|
2453
|
+
default: j(({ model: A, actions: Z }) => [
|
|
2454
|
+
I(x, {
|
|
2455
|
+
modelValue: A.value,
|
|
2456
|
+
"onUpdate:modelValue": (P) => A.value = P,
|
|
1779
2457
|
"hide-header": !0,
|
|
1780
2458
|
format: "24hr"
|
|
1781
2459
|
}, {
|
|
1782
|
-
actions:
|
|
1783
|
-
(
|
|
2460
|
+
actions: j(() => [
|
|
2461
|
+
(D(), E(be(Z)))
|
|
1784
2462
|
]),
|
|
1785
2463
|
_: 2
|
|
1786
2464
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1792,16 +2470,16 @@ const Fo = {
|
|
|
1792
2470
|
}, 8, ["modelValue"])
|
|
1793
2471
|
]),
|
|
1794
2472
|
_: 1
|
|
1795
|
-
}, 16, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) :
|
|
2473
|
+
}, 16, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : F("", !0)
|
|
1796
2474
|
], 2)
|
|
1797
2475
|
]),
|
|
1798
2476
|
_: 1
|
|
1799
2477
|
}, 16, ["class", "clearable"]);
|
|
1800
2478
|
};
|
|
1801
2479
|
}
|
|
1802
|
-
}),
|
|
2480
|
+
}), eo = /* @__PURE__ */ U({
|
|
1803
2481
|
__name: "df-file",
|
|
1804
|
-
props: /* @__PURE__ */
|
|
2482
|
+
props: /* @__PURE__ */ Y({
|
|
1805
2483
|
comms: {},
|
|
1806
2484
|
control: {},
|
|
1807
2485
|
modelValue: {},
|
|
@@ -1817,82 +2495,82 @@ const Fo = {
|
|
|
1817
2495
|
passthroughAttrs: {},
|
|
1818
2496
|
density: {},
|
|
1819
2497
|
variant: {}
|
|
1820
|
-
},
|
|
2498
|
+
}, Q),
|
|
1821
2499
|
emits: ["update:modelValue", "click:clear"],
|
|
1822
|
-
setup(e, { emit:
|
|
1823
|
-
const
|
|
1824
|
-
function
|
|
1825
|
-
|
|
2500
|
+
setup(e, { emit: n }) {
|
|
2501
|
+
const o = e, l = n, { densityClass: d, touched: t, value: a, vuetifyBindings: r } = X(o, l), s = M(null), u = M(null), c = M(0), m = M(Math.round(Math.random() * 1e3)), g = M(), f = T(() => u.value && c.value < 100), b = T(() => !g.value && a.value ? o.modelValue : "");
|
|
2502
|
+
function h() {
|
|
2503
|
+
s.value && window.clearInterval(s.value);
|
|
1826
2504
|
}
|
|
1827
|
-
function
|
|
1828
|
-
|
|
1829
|
-
|
|
2505
|
+
function v() {
|
|
2506
|
+
h(), s.value = window.setInterval(() => {
|
|
2507
|
+
a.value && o.comms.touch(a.value);
|
|
1830
2508
|
}, 60 * 1e3);
|
|
1831
2509
|
}
|
|
1832
|
-
|
|
1833
|
-
|
|
2510
|
+
Je(() => h()), ue(a, (V) => {
|
|
2511
|
+
V ? v() : h();
|
|
1834
2512
|
});
|
|
1835
|
-
function
|
|
1836
|
-
return
|
|
1837
|
-
|
|
2513
|
+
function p() {
|
|
2514
|
+
return ye(this, null, function* () {
|
|
2515
|
+
a.value && (yield o.comms.delete(a.value)), a.value = null, c.value = 0, m.value = Math.round(Math.random() * 1e3), u.value = null, g.value = null, h();
|
|
1838
2516
|
});
|
|
1839
2517
|
}
|
|
1840
|
-
function
|
|
1841
|
-
return
|
|
1842
|
-
|
|
2518
|
+
function _(V) {
|
|
2519
|
+
return ye(this, null, function* () {
|
|
2520
|
+
c.value = -1, u.value = V;
|
|
1843
2521
|
try {
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
}),
|
|
1847
|
-
} catch (
|
|
1848
|
-
throw
|
|
2522
|
+
a.value = yield o.comms.upload(V, (C, N) => {
|
|
2523
|
+
c.value = Math.round(C * 100 / N);
|
|
2524
|
+
}), c.value = 100, v();
|
|
2525
|
+
} catch (C) {
|
|
2526
|
+
throw c.value = 0, u.value = null, m.value = Math.round(Math.random() * 1e3), g.value = null, C;
|
|
1849
2527
|
}
|
|
1850
2528
|
});
|
|
1851
2529
|
}
|
|
1852
|
-
function
|
|
1853
|
-
|
|
2530
|
+
function w(V) {
|
|
2531
|
+
V && (Array.isArray(V) ? console.error("Uploading multiple files not supported right now") : _(V));
|
|
1854
2532
|
}
|
|
1855
|
-
return (
|
|
1856
|
-
const
|
|
1857
|
-
return
|
|
1858
|
-
class:
|
|
2533
|
+
return (V, C) => {
|
|
2534
|
+
const N = $("v-progress-linear"), k = $("v-file-input");
|
|
2535
|
+
return D(), E(i(Se), R(L(S({}, o), { loading: f.value }), {
|
|
2536
|
+
class: i(d),
|
|
1859
2537
|
clearable: "",
|
|
1860
|
-
"onClick:clear":
|
|
1861
|
-
onBlur:
|
|
2538
|
+
"onClick:clear": p,
|
|
2539
|
+
onBlur: C[1] || (C[1] = (y) => t.value = !0)
|
|
1862
2540
|
}), {
|
|
1863
|
-
"prepend-inner":
|
|
1864
|
-
I(
|
|
2541
|
+
"prepend-inner": j(() => [
|
|
2542
|
+
I(i(ge), { name: "mdi-paperclip" })
|
|
1865
2543
|
]),
|
|
1866
|
-
loader:
|
|
1867
|
-
|
|
2544
|
+
loader: j(() => [
|
|
2545
|
+
u.value && c.value < 100 ? (D(), E(N, {
|
|
1868
2546
|
key: 0,
|
|
1869
|
-
"model-value":
|
|
1870
|
-
indeterminate:
|
|
1871
|
-
}, null, 8, ["model-value", "indeterminate"])) :
|
|
2547
|
+
"model-value": c.value,
|
|
2548
|
+
indeterminate: c.value === -1
|
|
2549
|
+
}, null, 8, ["model-value", "indeterminate"])) : F("", !0)
|
|
1872
2550
|
]),
|
|
1873
|
-
default:
|
|
2551
|
+
default: j((y) => [
|
|
1874
2552
|
oe("div", {
|
|
1875
|
-
class: G(["d-flex w-100 position-relative df-input-wrapper",
|
|
2553
|
+
class: G(["d-flex w-100 position-relative df-input-wrapper", V.density])
|
|
1876
2554
|
}, [
|
|
1877
|
-
I(
|
|
1878
|
-
modelValue:
|
|
1879
|
-
"onUpdate:modelValue":
|
|
1880
|
-
label:
|
|
2555
|
+
I(k, R({
|
|
2556
|
+
modelValue: g.value,
|
|
2557
|
+
"onUpdate:modelValue": C[0] || (C[0] = (O) => g.value = O),
|
|
2558
|
+
label: b.value,
|
|
1881
2559
|
density: "compact",
|
|
1882
2560
|
variant: "plain",
|
|
1883
|
-
readonly:
|
|
1884
|
-
disabled:
|
|
1885
|
-
name:
|
|
2561
|
+
readonly: i(r).readonly,
|
|
2562
|
+
disabled: i(r).disabled,
|
|
2563
|
+
name: i(r).name,
|
|
1886
2564
|
"hide-details": !0,
|
|
1887
2565
|
"show-size": !0,
|
|
1888
2566
|
multiple: !1,
|
|
1889
|
-
style:
|
|
2567
|
+
style: u.value && c.value < 100 ? "visibility: hidden" : "",
|
|
1890
2568
|
clearable: !1
|
|
1891
|
-
},
|
|
2569
|
+
}, V.passthroughAttrs, {
|
|
1892
2570
|
"prepend-icon": "",
|
|
1893
|
-
"onUpdate:modelValue":
|
|
1894
|
-
onFocus: (
|
|
1895
|
-
onBlur: (
|
|
2571
|
+
"onUpdate:modelValue": w,
|
|
2572
|
+
onFocus: (O) => y.focus(),
|
|
2573
|
+
onBlur: (O) => y.blur()
|
|
1896
2574
|
}), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
|
|
1897
2575
|
], 2)
|
|
1898
2576
|
]),
|
|
@@ -1900,9 +2578,9 @@ const Fo = {
|
|
|
1900
2578
|
}, 16, ["class"]);
|
|
1901
2579
|
};
|
|
1902
2580
|
}
|
|
1903
|
-
}),
|
|
2581
|
+
}), to = /* @__PURE__ */ U({
|
|
1904
2582
|
__name: "df-input",
|
|
1905
|
-
props: /* @__PURE__ */
|
|
2583
|
+
props: /* @__PURE__ */ Y({
|
|
1906
2584
|
inputType: {},
|
|
1907
2585
|
precision: {},
|
|
1908
2586
|
step: {},
|
|
@@ -1922,7 +2600,7 @@ const Fo = {
|
|
|
1922
2600
|
passthroughAttrs: {},
|
|
1923
2601
|
density: {},
|
|
1924
2602
|
variant: {}
|
|
1925
|
-
}, L(S({},
|
|
2603
|
+
}, L(S({}, Q), {
|
|
1926
2604
|
inputType: "text",
|
|
1927
2605
|
precision: null,
|
|
1928
2606
|
step: void 0,
|
|
@@ -1930,54 +2608,54 @@ const Fo = {
|
|
|
1930
2608
|
max: void 0
|
|
1931
2609
|
})),
|
|
1932
2610
|
emits: ["update:modelValue", "click:clear"],
|
|
1933
|
-
setup(e, { emit:
|
|
1934
|
-
const
|
|
1935
|
-
() =>
|
|
2611
|
+
setup(e, { emit: n }) {
|
|
2612
|
+
const o = e, l = n, { densityClass: d, errors: t, label: a, touched: r, value: s, vuetifyBindings: u } = X(o, l), { inputType: c, max: m, min: g, precision: f, step: b } = je(o), h = T(() => c.value === "number"), v = T(
|
|
2613
|
+
() => h.value ? { min: i(g), max: i(m), precision: i(f), step: i(b) } : {}
|
|
1936
2614
|
);
|
|
1937
|
-
return (
|
|
1938
|
-
const
|
|
1939
|
-
return
|
|
1940
|
-
class: G(["df-input-container",
|
|
2615
|
+
return (p, _) => {
|
|
2616
|
+
const w = $("v-text-field"), V = $("v-number-input");
|
|
2617
|
+
return D(), W("div", {
|
|
2618
|
+
class: G(["df-input-container", i(d)])
|
|
1941
2619
|
}, [
|
|
1942
|
-
|
|
2620
|
+
h.value ? (D(), E(V, R({
|
|
1943
2621
|
key: 1,
|
|
1944
|
-
modelValue:
|
|
1945
|
-
"onUpdate:modelValue":
|
|
1946
|
-
}, S(S({},
|
|
2622
|
+
modelValue: i(s),
|
|
2623
|
+
"onUpdate:modelValue": _[2] || (_[2] = (C) => le(s) ? s.value = C : null)
|
|
2624
|
+
}, S(S({}, i(u)), v.value), {
|
|
1947
2625
|
density: "compact",
|
|
1948
2626
|
"control-variant": "stacked"
|
|
1949
2627
|
}), {
|
|
1950
|
-
label:
|
|
1951
|
-
I(
|
|
1952
|
-
data:
|
|
1953
|
-
label:
|
|
2628
|
+
label: j((C) => [
|
|
2629
|
+
I(i(ae), {
|
|
2630
|
+
data: C,
|
|
2631
|
+
label: i(a)
|
|
1954
2632
|
}, null, 8, ["data", "label"])
|
|
1955
2633
|
]),
|
|
1956
|
-
message:
|
|
1957
|
-
I(
|
|
1958
|
-
message:
|
|
1959
|
-
errors:
|
|
2634
|
+
message: j(({ message: C }) => [
|
|
2635
|
+
I(i(re), {
|
|
2636
|
+
message: C,
|
|
2637
|
+
errors: i(t)
|
|
1960
2638
|
}, null, 8, ["message", "errors"])
|
|
1961
2639
|
]),
|
|
1962
2640
|
_: 1
|
|
1963
|
-
}, 16, ["modelValue"])) : (
|
|
2641
|
+
}, 16, ["modelValue"])) : (D(), E(w, R({
|
|
1964
2642
|
key: 0,
|
|
1965
|
-
modelValue:
|
|
1966
|
-
"onUpdate:modelValue":
|
|
1967
|
-
},
|
|
1968
|
-
type:
|
|
1969
|
-
onBlur:
|
|
2643
|
+
modelValue: i(s),
|
|
2644
|
+
"onUpdate:modelValue": _[0] || (_[0] = (C) => le(s) ? s.value = C : null)
|
|
2645
|
+
}, i(u), {
|
|
2646
|
+
type: i(c),
|
|
2647
|
+
onBlur: _[1] || (_[1] = (C) => r.value = !0)
|
|
1970
2648
|
}), {
|
|
1971
|
-
label:
|
|
1972
|
-
I(
|
|
1973
|
-
data:
|
|
1974
|
-
label:
|
|
2649
|
+
label: j((C) => [
|
|
2650
|
+
I(i(ae), {
|
|
2651
|
+
data: C,
|
|
2652
|
+
label: i(a)
|
|
1975
2653
|
}, null, 8, ["data", "label"])
|
|
1976
2654
|
]),
|
|
1977
|
-
message:
|
|
1978
|
-
I(
|
|
1979
|
-
message:
|
|
1980
|
-
errors:
|
|
2655
|
+
message: j(({ message: C }) => [
|
|
2656
|
+
I(i(re), {
|
|
2657
|
+
message: C,
|
|
2658
|
+
errors: i(t)
|
|
1981
2659
|
}, null, 8, ["message", "errors"])
|
|
1982
2660
|
]),
|
|
1983
2661
|
_: 1
|
|
@@ -1985,7 +2663,7 @@ const Fo = {
|
|
|
1985
2663
|
], 2);
|
|
1986
2664
|
};
|
|
1987
2665
|
}
|
|
1988
|
-
}),
|
|
2666
|
+
}), no = { class: "editor-container" }, lo = { class: "editor-container__editor" }, oo = { ref: "editorElement" }, ao = /* @__PURE__ */ U({
|
|
1989
2667
|
__name: "ck-editor-custom",
|
|
1990
2668
|
props: {
|
|
1991
2669
|
modelValue: { default: "" },
|
|
@@ -1993,11 +2671,11 @@ const Fo = {
|
|
|
1993
2671
|
disabled: { type: Boolean, default: !1 }
|
|
1994
2672
|
},
|
|
1995
2673
|
emits: ["update:modelValue"],
|
|
1996
|
-
setup(e, { expose:
|
|
1997
|
-
|
|
2674
|
+
setup(e, { expose: n, emit: o }) {
|
|
2675
|
+
yt((m) => ({
|
|
1998
2676
|
"5f8a2e8c": m.minHeight
|
|
1999
2677
|
}));
|
|
2000
|
-
const
|
|
2678
|
+
const l = o, d = M(!1), t = bn, u = {
|
|
2001
2679
|
toolbar: {
|
|
2002
2680
|
items: [
|
|
2003
2681
|
"undo",
|
|
@@ -2029,33 +2707,27 @@ const Fo = {
|
|
|
2029
2707
|
shouldNotGroupWhenFull: !1
|
|
2030
2708
|
},
|
|
2031
2709
|
plugins: [
|
|
2032
|
-
|
|
2033
|
-
Ct,
|
|
2034
|
-
Tt,
|
|
2035
|
-
_t,
|
|
2036
|
-
Bt,
|
|
2710
|
+
xt,
|
|
2037
2711
|
It,
|
|
2712
|
+
Bt,
|
|
2713
|
+
Et,
|
|
2038
2714
|
Pt,
|
|
2039
|
-
Dt,
|
|
2040
|
-
xt,
|
|
2041
2715
|
St,
|
|
2042
|
-
|
|
2716
|
+
Ot,
|
|
2043
2717
|
$t,
|
|
2044
|
-
At,
|
|
2045
|
-
Nt,
|
|
2046
|
-
Ft,
|
|
2047
2718
|
Mt,
|
|
2719
|
+
Nt,
|
|
2048
2720
|
Lt,
|
|
2721
|
+
Ft,
|
|
2049
2722
|
Ut,
|
|
2050
|
-
Ot,
|
|
2051
2723
|
Rt,
|
|
2052
2724
|
Wt,
|
|
2053
2725
|
zt,
|
|
2054
2726
|
Ht,
|
|
2055
2727
|
Kt,
|
|
2728
|
+
qt,
|
|
2056
2729
|
Xt,
|
|
2057
2730
|
Gt,
|
|
2058
|
-
qt,
|
|
2059
2731
|
Yt,
|
|
2060
2732
|
Qt,
|
|
2061
2733
|
Zt,
|
|
@@ -2063,13 +2735,19 @@ const Fo = {
|
|
|
2063
2735
|
en,
|
|
2064
2736
|
tn,
|
|
2065
2737
|
nn,
|
|
2738
|
+
ln,
|
|
2066
2739
|
on,
|
|
2067
2740
|
an,
|
|
2068
|
-
ln,
|
|
2069
2741
|
rn,
|
|
2070
2742
|
sn,
|
|
2071
2743
|
un,
|
|
2072
|
-
cn
|
|
2744
|
+
cn,
|
|
2745
|
+
dn,
|
|
2746
|
+
mn,
|
|
2747
|
+
fn,
|
|
2748
|
+
pn,
|
|
2749
|
+
hn,
|
|
2750
|
+
vn
|
|
2073
2751
|
],
|
|
2074
2752
|
balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
|
|
2075
2753
|
heading: {
|
|
@@ -2126,34 +2804,34 @@ const Fo = {
|
|
|
2126
2804
|
},
|
|
2127
2805
|
table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] }
|
|
2128
2806
|
};
|
|
2129
|
-
|
|
2130
|
-
|
|
2807
|
+
Ze(() => {
|
|
2808
|
+
d.value = !0;
|
|
2131
2809
|
});
|
|
2132
|
-
const
|
|
2810
|
+
const c = (m) => {
|
|
2133
2811
|
};
|
|
2134
|
-
return
|
|
2135
|
-
const
|
|
2136
|
-
return
|
|
2137
|
-
oe("div",
|
|
2138
|
-
oe("div",
|
|
2139
|
-
|
|
2812
|
+
return n({ onEditorReady: c }), (m, g) => {
|
|
2813
|
+
const f = $("ckeditor");
|
|
2814
|
+
return D(), W("div", no, [
|
|
2815
|
+
oe("div", lo, [
|
|
2816
|
+
oe("div", oo, [
|
|
2817
|
+
d.value ? (D(), E(f, {
|
|
2140
2818
|
key: 0,
|
|
2141
2819
|
"model-value": m.modelValue,
|
|
2142
|
-
editor:
|
|
2143
|
-
config:
|
|
2820
|
+
editor: i(t),
|
|
2821
|
+
config: u,
|
|
2144
2822
|
disabled: m.disabled,
|
|
2145
|
-
style:
|
|
2146
|
-
onReady:
|
|
2147
|
-
"onUpdate:modelValue":
|
|
2148
|
-
}, null, 8, ["model-value", "editor", "disabled", "style"])) :
|
|
2823
|
+
style: et(`min-height: ${m.minHeight}`),
|
|
2824
|
+
onReady: c,
|
|
2825
|
+
"onUpdate:modelValue": g[0] || (g[0] = (b) => l("update:modelValue", b))
|
|
2826
|
+
}, null, 8, ["model-value", "editor", "disabled", "style"])) : F("", !0)
|
|
2149
2827
|
], 512)
|
|
2150
2828
|
])
|
|
2151
2829
|
]);
|
|
2152
2830
|
};
|
|
2153
2831
|
}
|
|
2154
|
-
}),
|
|
2832
|
+
}), ro = /* @__PURE__ */ U({
|
|
2155
2833
|
__name: "df-rtf-editor",
|
|
2156
|
-
props: /* @__PURE__ */
|
|
2834
|
+
props: /* @__PURE__ */ Y({
|
|
2157
2835
|
minHeight: {},
|
|
2158
2836
|
control: {},
|
|
2159
2837
|
modelValue: {},
|
|
@@ -2169,65 +2847,65 @@ const Fo = {
|
|
|
2169
2847
|
passthroughAttrs: {},
|
|
2170
2848
|
density: {},
|
|
2171
2849
|
variant: {}
|
|
2172
|
-
}, L(S({},
|
|
2850
|
+
}, L(S({}, Q), { minHeight: void 0 })),
|
|
2173
2851
|
emits: ["update:modelValue", "click:clear"],
|
|
2174
|
-
setup(e, { emit:
|
|
2175
|
-
const
|
|
2176
|
-
return (
|
|
2177
|
-
class: ["ck-editor-custom",
|
|
2852
|
+
setup(e, { emit: n }) {
|
|
2853
|
+
const o = e, l = n, { densityClass: d, value: t, vuetifyBindings: a } = X(o, l);
|
|
2854
|
+
return (r, s) => (D(), E(i(Se), R(o, {
|
|
2855
|
+
class: ["ck-editor-custom", i(d)]
|
|
2178
2856
|
}), {
|
|
2179
|
-
default:
|
|
2180
|
-
I(
|
|
2857
|
+
default: j((u) => [
|
|
2858
|
+
I(ao, R({
|
|
2181
2859
|
ref: "$editor",
|
|
2182
|
-
modelValue:
|
|
2183
|
-
"onUpdate:modelValue":
|
|
2184
|
-
class: { "mt-6": !!
|
|
2185
|
-
"min-height":
|
|
2186
|
-
disabled:
|
|
2860
|
+
modelValue: i(t),
|
|
2861
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => le(t) ? t.value = c : null),
|
|
2862
|
+
class: { "mt-6": !!r.label },
|
|
2863
|
+
"min-height": r.minHeight,
|
|
2864
|
+
disabled: i(a).disabled,
|
|
2187
2865
|
placeholder: "dfsjghdf"
|
|
2188
|
-
},
|
|
2189
|
-
onFocusin: (
|
|
2190
|
-
onFocusout: (
|
|
2866
|
+
}, r.passthroughAttrs, {
|
|
2867
|
+
onFocusin: (c) => u.focus(),
|
|
2868
|
+
onFocusout: (c) => u.blur()
|
|
2191
2869
|
}), null, 16, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
|
|
2192
2870
|
]),
|
|
2193
2871
|
_: 1
|
|
2194
2872
|
}, 16, ["class"]));
|
|
2195
2873
|
}
|
|
2196
2874
|
});
|
|
2197
|
-
function
|
|
2198
|
-
return e.map((
|
|
2875
|
+
function io(e) {
|
|
2876
|
+
return e.map((n) => ({ value: n.id, title: n.text, icon: n.icon }));
|
|
2199
2877
|
}
|
|
2200
|
-
function
|
|
2201
|
-
var
|
|
2202
|
-
return e == null ||
|
|
2878
|
+
function J(e, n) {
|
|
2879
|
+
var o;
|
|
2880
|
+
return e == null || He(e) && e.length === 0 ? null : n ? tt(e) : He(e) ? (o = nt(e)) != null ? o : null : e;
|
|
2203
2881
|
}
|
|
2204
|
-
function
|
|
2205
|
-
if (
|
|
2206
|
-
const
|
|
2207
|
-
return e.filter((
|
|
2882
|
+
function _e(e, n) {
|
|
2883
|
+
if (n == null) return [];
|
|
2884
|
+
const o = tt(n);
|
|
2885
|
+
return e.filter((l) => o.some((d) => d === l.id));
|
|
2208
2886
|
}
|
|
2209
|
-
function
|
|
2210
|
-
var
|
|
2211
|
-
const
|
|
2212
|
-
if (
|
|
2213
|
-
|
|
2887
|
+
function ke(e, n, o, l, d) {
|
|
2888
|
+
var a;
|
|
2889
|
+
const t = J(e, o);
|
|
2890
|
+
if (t == null) {
|
|
2891
|
+
n.value = o ? [] : null;
|
|
2214
2892
|
return;
|
|
2215
2893
|
}
|
|
2216
|
-
if (
|
|
2217
|
-
|
|
2218
|
-
else if (
|
|
2219
|
-
|
|
2894
|
+
if (o)
|
|
2895
|
+
l ? n.value = t : n.value = _e(d, t).map((r) => r.id);
|
|
2896
|
+
else if (l)
|
|
2897
|
+
n.value = t;
|
|
2220
2898
|
else {
|
|
2221
|
-
const
|
|
2222
|
-
|
|
2899
|
+
const r = nt(_e(d, t));
|
|
2900
|
+
n.value = (a = r == null ? void 0 : r.id) != null ? a : null;
|
|
2223
2901
|
}
|
|
2224
2902
|
}
|
|
2225
|
-
const
|
|
2903
|
+
const so = {
|
|
2226
2904
|
key: 0,
|
|
2227
2905
|
class: "me-1"
|
|
2228
|
-
},
|
|
2906
|
+
}, uo = /* @__PURE__ */ U({
|
|
2229
2907
|
__name: "df-select",
|
|
2230
|
-
props: /* @__PURE__ */
|
|
2908
|
+
props: /* @__PURE__ */ Y({
|
|
2231
2909
|
choices: {},
|
|
2232
2910
|
multiple: { type: Boolean },
|
|
2233
2911
|
allowTags: { type: Boolean },
|
|
@@ -2247,7 +2925,7 @@ const Qo = {
|
|
|
2247
2925
|
passthroughAttrs: {},
|
|
2248
2926
|
density: {},
|
|
2249
2927
|
variant: {}
|
|
2250
|
-
}, L(S({},
|
|
2928
|
+
}, L(S({}, Q), {
|
|
2251
2929
|
choices: void 0,
|
|
2252
2930
|
multiple: !1,
|
|
2253
2931
|
allowTags: !1,
|
|
@@ -2255,189 +2933,189 @@ const Qo = {
|
|
|
2255
2933
|
fetchChoices: void 0
|
|
2256
2934
|
})),
|
|
2257
2935
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
2258
|
-
setup(e, { emit:
|
|
2259
|
-
const
|
|
2260
|
-
densityClass:
|
|
2936
|
+
setup(e, { emit: n }) {
|
|
2937
|
+
const o = e, { choices: l, multiple: d, allowTags: t, allowNull: a, cssClass: r, visibility: s } = je(o), u = n, {
|
|
2938
|
+
densityClass: c,
|
|
2261
2939
|
errors: m,
|
|
2262
|
-
label:
|
|
2263
|
-
touched:
|
|
2264
|
-
value:
|
|
2265
|
-
vuetifyBindings:
|
|
2266
|
-
} = X(
|
|
2267
|
-
|
|
2268
|
-
function
|
|
2269
|
-
|
|
2940
|
+
label: g,
|
|
2941
|
+
touched: f,
|
|
2942
|
+
value: b,
|
|
2943
|
+
vuetifyBindings: h
|
|
2944
|
+
} = X(o, u), v = M(null), p = M(!1), _ = M([]), w = T(() => i(p) ? i(_) : i(l) || []), V = M(!1), C = T(() => io(w.value));
|
|
2945
|
+
C.value && o.fetchChoices !== void 0 && console.warn("Both options and fetchChoices are set. Only one of them should be set.");
|
|
2946
|
+
function N(x) {
|
|
2947
|
+
u("update:modelValueDisplay", _e(w.value, x));
|
|
2270
2948
|
}
|
|
2271
|
-
let
|
|
2272
|
-
function
|
|
2273
|
-
|
|
2274
|
-
|
|
2949
|
+
let k = !1;
|
|
2950
|
+
function y(x) {
|
|
2951
|
+
k = !0, b.value = x, Ue(() => {
|
|
2952
|
+
k = !1;
|
|
2275
2953
|
});
|
|
2276
2954
|
}
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
(
|
|
2280
|
-
|
|
2281
|
-
const
|
|
2282
|
-
|
|
2955
|
+
ue(
|
|
2956
|
+
v,
|
|
2957
|
+
(x) => {
|
|
2958
|
+
h.value.readonly || Ue(() => {
|
|
2959
|
+
const B = J(x, d.value);
|
|
2960
|
+
N(B), y(B);
|
|
2283
2961
|
});
|
|
2284
2962
|
},
|
|
2285
2963
|
{ deep: !0 }
|
|
2286
|
-
),
|
|
2287
|
-
|
|
2288
|
-
(
|
|
2289
|
-
if (!
|
|
2290
|
-
const
|
|
2291
|
-
|
|
2964
|
+
), ue(
|
|
2965
|
+
b,
|
|
2966
|
+
(x) => {
|
|
2967
|
+
if (!k) {
|
|
2968
|
+
const B = J(x, d.value);
|
|
2969
|
+
ke(B, v, d.value, !1, w.value);
|
|
2292
2970
|
}
|
|
2293
2971
|
},
|
|
2294
2972
|
{ deep: !0 }
|
|
2295
2973
|
);
|
|
2296
|
-
function
|
|
2297
|
-
if (
|
|
2298
|
-
const
|
|
2299
|
-
|
|
2974
|
+
function O() {
|
|
2975
|
+
if (h.value.readonly || t.value) return;
|
|
2976
|
+
const x = J(v.value, d.value);
|
|
2977
|
+
ke(x, v, d.value, !1, w.value), y(x);
|
|
2300
2978
|
}
|
|
2301
|
-
function H(
|
|
2302
|
-
let
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
) :
|
|
2979
|
+
function H(x) {
|
|
2980
|
+
let B;
|
|
2981
|
+
d.value && Array.isArray(v.value) ? B = J(
|
|
2982
|
+
v.value.filter((A) => A !== x),
|
|
2983
|
+
d.value
|
|
2984
|
+
) : B = null, ke(B, v, d.value, !1, w.value), y(B);
|
|
2307
2985
|
}
|
|
2308
|
-
function
|
|
2309
|
-
return
|
|
2310
|
-
if (!(
|
|
2311
|
-
|
|
2986
|
+
function ce(x, B) {
|
|
2987
|
+
return ye(this, null, function* () {
|
|
2988
|
+
if (!(l.value || o.fetchChoices === void 0)) {
|
|
2989
|
+
V.value = !0;
|
|
2312
2990
|
try {
|
|
2313
|
-
const
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
),
|
|
2317
|
-
|
|
2991
|
+
const A = _e(
|
|
2992
|
+
w.value,
|
|
2993
|
+
J(v.value, d.value)
|
|
2994
|
+
), Z = yield o.fetchChoices(x, B);
|
|
2995
|
+
_.value = _t([...A, ...Z], "id"), p.value = !0;
|
|
2318
2996
|
} finally {
|
|
2319
|
-
|
|
2997
|
+
V.value = !1;
|
|
2320
2998
|
}
|
|
2321
2999
|
}
|
|
2322
3000
|
});
|
|
2323
3001
|
}
|
|
2324
|
-
function
|
|
2325
|
-
let
|
|
2326
|
-
!
|
|
3002
|
+
function de() {
|
|
3003
|
+
let x = b.value;
|
|
3004
|
+
!a.value && x == null && C.value.length && (x = C.value[0].value), x = J(x, d.value), ke(x, v, d.value, t.value, w.value), N(x), y(x);
|
|
2327
3005
|
}
|
|
2328
|
-
return
|
|
2329
|
-
|
|
2330
|
-
}), (
|
|
2331
|
-
const
|
|
2332
|
-
return
|
|
3006
|
+
return de(), o.fetchChoices !== void 0 && ce(void 0, b.value).then(() => {
|
|
3007
|
+
de();
|
|
3008
|
+
}), (x, B) => {
|
|
3009
|
+
const A = $("v-chip"), Z = $("v-list-item");
|
|
3010
|
+
return i(s) !== i(q).SUPPRESS ? (D(), E(be(i(t) ? "v-combobox" : "v-autocomplete"), R({
|
|
2333
3011
|
key: 0,
|
|
2334
|
-
modelValue:
|
|
2335
|
-
"onUpdate:modelValue":
|
|
3012
|
+
modelValue: v.value,
|
|
3013
|
+
"onUpdate:modelValue": B[0] || (B[0] = (P) => v.value = P),
|
|
2336
3014
|
class: [
|
|
2337
|
-
|
|
2338
|
-
|
|
3015
|
+
i(r),
|
|
3016
|
+
i(c),
|
|
2339
3017
|
{
|
|
2340
|
-
"d-none":
|
|
2341
|
-
invisible:
|
|
3018
|
+
"d-none": i(s) === i(q).HIDDEN,
|
|
3019
|
+
invisible: i(s) === i(q).INVISIBLE
|
|
2342
3020
|
}
|
|
2343
3021
|
],
|
|
2344
|
-
items:
|
|
3022
|
+
items: C.value,
|
|
2345
3023
|
"return-object": !1
|
|
2346
|
-
},
|
|
2347
|
-
label:
|
|
3024
|
+
}, i(h), {
|
|
3025
|
+
label: i(h).label,
|
|
2348
3026
|
chips: "",
|
|
2349
3027
|
"auto-select-first": !0,
|
|
2350
|
-
"closable-chips":
|
|
2351
|
-
clearable:
|
|
2352
|
-
multiple:
|
|
2353
|
-
loading:
|
|
3028
|
+
"closable-chips": i(a) || i(d) && v.value.length > 1,
|
|
3029
|
+
clearable: i(a),
|
|
3030
|
+
multiple: i(d),
|
|
3031
|
+
loading: V.value,
|
|
2354
3032
|
"hide-selected": !1,
|
|
2355
|
-
"aria-describedby":
|
|
3033
|
+
"aria-describedby": i(h).helpText ? `${i(h).name}-help` : null,
|
|
2356
3034
|
"menu-props": { maxHeight: "400" },
|
|
2357
3035
|
"hide-details": "auto",
|
|
2358
|
-
"onUpdate:search":
|
|
2359
|
-
"onUpdate:modelValue":
|
|
2360
|
-
"onClick:clear":
|
|
2361
|
-
onBlur:
|
|
2362
|
-
}),
|
|
2363
|
-
chip:
|
|
2364
|
-
(
|
|
2365
|
-
key:
|
|
3036
|
+
"onUpdate:search": B[1] || (B[1] = (P) => ce(P, void 0)),
|
|
3037
|
+
"onUpdate:modelValue": O,
|
|
3038
|
+
"onClick:clear": B[2] || (B[2] = (P) => v.value = null),
|
|
3039
|
+
onBlur: B[3] || (B[3] = (P) => f.value = !0)
|
|
3040
|
+
}), Ee({
|
|
3041
|
+
chip: j(({ item: P }) => [
|
|
3042
|
+
(D(), E(A, {
|
|
3043
|
+
key: P.value,
|
|
2366
3044
|
label: "",
|
|
2367
3045
|
size: "small",
|
|
2368
3046
|
class: "d-flex align-middle",
|
|
2369
|
-
variant:
|
|
2370
|
-
closable:
|
|
2371
|
-
"onClick:close": (
|
|
3047
|
+
variant: i(d) ? "tonal" : "text",
|
|
3048
|
+
closable: i(d),
|
|
3049
|
+
"onClick:close": (ie) => H(P.value)
|
|
2372
3050
|
}, {
|
|
2373
|
-
prepend:
|
|
2374
|
-
var
|
|
3051
|
+
prepend: j(() => {
|
|
3052
|
+
var ie;
|
|
2375
3053
|
return [
|
|
2376
|
-
(
|
|
3054
|
+
(ie = P.raw) != null && ie.icon ? (D(), E(i(ge), {
|
|
2377
3055
|
key: 0,
|
|
2378
3056
|
class: "me-1",
|
|
2379
|
-
name:
|
|
2380
|
-
}, null, 8, ["name"])) :
|
|
3057
|
+
name: P.raw.icon
|
|
3058
|
+
}, null, 8, ["name"])) : F("", !0)
|
|
2381
3059
|
];
|
|
2382
3060
|
}),
|
|
2383
|
-
default:
|
|
3061
|
+
default: j(() => [
|
|
2384
3062
|
oe("span", {
|
|
2385
|
-
class: G({ "text-body-1": !
|
|
2386
|
-
},
|
|
3063
|
+
class: G({ "text-body-1": !i(d) })
|
|
3064
|
+
}, Pe(P.title), 3)
|
|
2387
3065
|
]),
|
|
2388
3066
|
_: 2
|
|
2389
3067
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
2390
3068
|
]),
|
|
2391
|
-
label:
|
|
2392
|
-
I(
|
|
2393
|
-
data:
|
|
2394
|
-
label:
|
|
3069
|
+
label: j((P) => [
|
|
3070
|
+
I(i(ae), {
|
|
3071
|
+
data: P,
|
|
3072
|
+
label: i(g)
|
|
2395
3073
|
}, null, 8, ["data", "label"])
|
|
2396
3074
|
]),
|
|
2397
|
-
item:
|
|
2398
|
-
I(
|
|
2399
|
-
prepend:
|
|
2400
|
-
var
|
|
3075
|
+
item: j(({ props: P, item: ie }) => [
|
|
3076
|
+
I(Z, ee(te(P)), {
|
|
3077
|
+
prepend: j(() => {
|
|
3078
|
+
var Oe;
|
|
2401
3079
|
return [
|
|
2402
|
-
(
|
|
2403
|
-
I(
|
|
3080
|
+
(Oe = ie.raw) != null && Oe.icon ? (D(), W("span", so, [
|
|
3081
|
+
I(i(ge), {
|
|
2404
3082
|
class: "action-icon",
|
|
2405
|
-
name:
|
|
3083
|
+
name: ie.raw.icon
|
|
2406
3084
|
}, null, 8, ["name"])
|
|
2407
|
-
])) :
|
|
3085
|
+
])) : F("", !0)
|
|
2408
3086
|
];
|
|
2409
3087
|
}),
|
|
2410
3088
|
_: 2
|
|
2411
3089
|
}, 1040)
|
|
2412
3090
|
]),
|
|
2413
|
-
message:
|
|
2414
|
-
I(
|
|
2415
|
-
message:
|
|
2416
|
-
errors:
|
|
3091
|
+
message: j(({ message: P }) => [
|
|
3092
|
+
I(i(re), {
|
|
3093
|
+
message: P,
|
|
3094
|
+
errors: i(m)
|
|
2417
3095
|
}, null, 8, ["message", "errors"])
|
|
2418
3096
|
]),
|
|
2419
3097
|
_: 2
|
|
2420
3098
|
}, [
|
|
2421
|
-
|
|
3099
|
+
x.$slots["append-inner"] ? {
|
|
2422
3100
|
name: "append-inner",
|
|
2423
|
-
fn:
|
|
2424
|
-
|
|
3101
|
+
fn: j((P) => [
|
|
3102
|
+
se(x.$slots, "append-inner", ee(te(P)))
|
|
2425
3103
|
]),
|
|
2426
3104
|
key: "0"
|
|
2427
3105
|
} : void 0,
|
|
2428
|
-
|
|
3106
|
+
x.$slots["prepend-inner"] ? {
|
|
2429
3107
|
name: "prepend-inner",
|
|
2430
|
-
fn:
|
|
2431
|
-
|
|
3108
|
+
fn: j((P) => [
|
|
3109
|
+
se(x.$slots, "prepend-inner", ee(te(P)))
|
|
2432
3110
|
]),
|
|
2433
3111
|
key: "1"
|
|
2434
3112
|
} : void 0
|
|
2435
|
-
]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) :
|
|
3113
|
+
]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : F("", !0);
|
|
2436
3114
|
};
|
|
2437
3115
|
}
|
|
2438
|
-
}),
|
|
3116
|
+
}), co = /* @__PURE__ */ U({
|
|
2439
3117
|
__name: "df-text-area",
|
|
2440
|
-
props: /* @__PURE__ */
|
|
3118
|
+
props: /* @__PURE__ */ Y({
|
|
2441
3119
|
rows: {},
|
|
2442
3120
|
maxRows: {},
|
|
2443
3121
|
control: {},
|
|
@@ -2454,128 +3132,128 @@ const Qo = {
|
|
|
2454
3132
|
passthroughAttrs: {},
|
|
2455
3133
|
density: {},
|
|
2456
3134
|
variant: {}
|
|
2457
|
-
}, L(S({},
|
|
3135
|
+
}, L(S({}, Q), {
|
|
2458
3136
|
rows: void 0,
|
|
2459
3137
|
maxRows: void 0
|
|
2460
3138
|
})),
|
|
2461
3139
|
emits: ["update:modelValue", "click:clear"],
|
|
2462
|
-
setup(e, { emit:
|
|
2463
|
-
const
|
|
2464
|
-
return (
|
|
2465
|
-
const
|
|
2466
|
-
return
|
|
2467
|
-
class: G(["df-textarea-container",
|
|
3140
|
+
setup(e, { emit: n }) {
|
|
3141
|
+
const o = e, l = n, { densityClass: d, errors: t, label: a, touched: r, value: s, vuetifyBindings: u } = X(o, l), { cssClass: c, visibility: m } = je(o);
|
|
3142
|
+
return (g, f) => {
|
|
3143
|
+
const b = $("v-textarea");
|
|
3144
|
+
return D(), W("div", {
|
|
3145
|
+
class: G(["df-textarea-container", i(d)])
|
|
2468
3146
|
}, [
|
|
2469
|
-
|
|
3147
|
+
i(m) !== i(q).SUPPRESS ? (D(), E(b, R({
|
|
2470
3148
|
key: 0,
|
|
2471
|
-
modelValue:
|
|
2472
|
-
"onUpdate:modelValue":
|
|
3149
|
+
modelValue: i(s),
|
|
3150
|
+
"onUpdate:modelValue": f[0] || (f[0] = (h) => le(s) ? s.value = h : null),
|
|
2473
3151
|
class: [
|
|
2474
|
-
|
|
3152
|
+
i(c),
|
|
2475
3153
|
{
|
|
2476
|
-
"d-none":
|
|
2477
|
-
invisible:
|
|
3154
|
+
"d-none": i(m) === i(q).HIDDEN,
|
|
3155
|
+
invisible: i(m) === i(q).INVISIBLE
|
|
2478
3156
|
}
|
|
2479
3157
|
],
|
|
2480
|
-
rows:
|
|
2481
|
-
"auto-grow": (
|
|
2482
|
-
"max-rows":
|
|
2483
|
-
},
|
|
2484
|
-
onBlur:
|
|
3158
|
+
rows: g.rows,
|
|
3159
|
+
"auto-grow": (g.maxRows || 0) > 0,
|
|
3160
|
+
"max-rows": g.maxRows
|
|
3161
|
+
}, i(u), {
|
|
3162
|
+
onBlur: f[1] || (f[1] = (h) => r.value = !0)
|
|
2485
3163
|
}), {
|
|
2486
|
-
label:
|
|
2487
|
-
I(
|
|
2488
|
-
data:
|
|
2489
|
-
label:
|
|
3164
|
+
label: j((h) => [
|
|
3165
|
+
I(i(ae), {
|
|
3166
|
+
data: h,
|
|
3167
|
+
label: i(a)
|
|
2490
3168
|
}, null, 8, ["data", "label"])
|
|
2491
3169
|
]),
|
|
2492
|
-
message:
|
|
2493
|
-
I(
|
|
2494
|
-
message:
|
|
2495
|
-
errors:
|
|
3170
|
+
message: j(({ message: h }) => [
|
|
3171
|
+
I(i(re), {
|
|
3172
|
+
message: h,
|
|
3173
|
+
errors: i(t)
|
|
2496
3174
|
}, null, 8, ["message", "errors"])
|
|
2497
3175
|
]),
|
|
2498
3176
|
_: 1
|
|
2499
|
-
}, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) :
|
|
3177
|
+
}, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) : F("", !0)
|
|
2500
3178
|
], 2);
|
|
2501
3179
|
};
|
|
2502
3180
|
}
|
|
2503
|
-
}),
|
|
3181
|
+
}), mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2504
3182
|
__proto__: null,
|
|
2505
|
-
DfActions:
|
|
2506
|
-
DfCheckbox:
|
|
2507
|
-
DfColor:
|
|
2508
|
-
DfDateTime:
|
|
2509
|
-
DfFile:
|
|
2510
|
-
DfInput:
|
|
2511
|
-
DfRtfEditor:
|
|
2512
|
-
DfSelect:
|
|
2513
|
-
DfTextArea:
|
|
2514
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3183
|
+
DfActions: Yl,
|
|
3184
|
+
DfCheckbox: Ql,
|
|
3185
|
+
DfColor: Zl,
|
|
3186
|
+
DfDateTime: Jl,
|
|
3187
|
+
DfFile: eo,
|
|
3188
|
+
DfInput: to,
|
|
3189
|
+
DfRtfEditor: ro,
|
|
3190
|
+
DfSelect: uo,
|
|
3191
|
+
DfTextArea: co
|
|
3192
|
+
}, Symbol.toStringTag, { value: "Module" })), fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2515
3193
|
__proto__: null,
|
|
2516
|
-
VAutocomplete:
|
|
2517
|
-
VBtn:
|
|
2518
|
-
VCheckbox:
|
|
2519
|
-
VChip:
|
|
2520
|
-
VCol:
|
|
2521
|
-
VColorPicker:
|
|
2522
|
-
VCombobox:
|
|
2523
|
-
VConfirmEdit:
|
|
2524
|
-
VDatePicker:
|
|
2525
|
-
VField:
|
|
2526
|
-
VFileInput:
|
|
2527
|
-
VIcon:
|
|
2528
|
-
VImg:
|
|
2529
|
-
VInput:
|
|
2530
|
-
VListItem:
|
|
2531
|
-
VMenu:
|
|
2532
|
-
VNumberInput:
|
|
2533
|
-
VProgressLinear:
|
|
2534
|
-
VRow:
|
|
2535
|
-
VSelect:
|
|
2536
|
-
VSwitch:
|
|
2537
|
-
VTextField:
|
|
2538
|
-
VTextarea:
|
|
2539
|
-
VTimePicker:
|
|
2540
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3194
|
+
VAutocomplete: gn,
|
|
3195
|
+
VBtn: yn,
|
|
3196
|
+
VCheckbox: wn,
|
|
3197
|
+
VChip: kn,
|
|
3198
|
+
VCol: An,
|
|
3199
|
+
VColorPicker: _n,
|
|
3200
|
+
VCombobox: Vn,
|
|
3201
|
+
VConfirmEdit: jn,
|
|
3202
|
+
VDatePicker: Cn,
|
|
3203
|
+
VField: Tn,
|
|
3204
|
+
VFileInput: Dn,
|
|
3205
|
+
VIcon: In,
|
|
3206
|
+
VImg: Bn,
|
|
3207
|
+
VInput: En,
|
|
3208
|
+
VListItem: Pn,
|
|
3209
|
+
VMenu: Sn,
|
|
3210
|
+
VNumberInput: On,
|
|
3211
|
+
VProgressLinear: $n,
|
|
3212
|
+
VRow: xn,
|
|
3213
|
+
VSelect: Mn,
|
|
3214
|
+
VSwitch: Nn,
|
|
3215
|
+
VTextField: Fn,
|
|
3216
|
+
VTextarea: Ln,
|
|
3217
|
+
VTimePicker: Un
|
|
3218
|
+
}, Symbol.toStringTag, { value: "Module" })), qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2541
3219
|
__proto__: null
|
|
2542
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2543
|
-
install: (e,
|
|
2544
|
-
var
|
|
2545
|
-
e.use(
|
|
3220
|
+
}, Symbol.toStringTag, { value: "Module" })), Xo = {
|
|
3221
|
+
install: (e, n) => {
|
|
3222
|
+
var o, l;
|
|
3223
|
+
e.use(Jn), e.provide(it, n != null ? n : {}), (o = n == null ? void 0 : n.registerComponents) != null && o && Object.entries(mo).map(([d, t]) => e.component(d, t)), (l = n == null ? void 0 : n.registerVuetifyComponents) != null && l && Object.entries(fo).map(([d, t]) => e.component(d, t));
|
|
2546
3224
|
}
|
|
2547
3225
|
};
|
|
2548
3226
|
export {
|
|
2549
|
-
|
|
3227
|
+
Ve as Action,
|
|
2550
3228
|
z as ActionDisplayStyle,
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
3229
|
+
Ol as DateTimeLocaleConfig,
|
|
3230
|
+
Yl as DfActions,
|
|
3231
|
+
Ql as DfCheckbox,
|
|
3232
|
+
Zl as DfColor,
|
|
3233
|
+
Jl as DfDateTime,
|
|
3234
|
+
eo as DfFile,
|
|
3235
|
+
to as DfInput,
|
|
3236
|
+
qo as DfInputComponentProps,
|
|
3237
|
+
mo as DfInputComponents,
|
|
2560
3238
|
ae as DfLabel,
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
3239
|
+
ro as DfRtfEditor,
|
|
3240
|
+
uo as DfSelect,
|
|
3241
|
+
co as DfTextArea,
|
|
3242
|
+
Xo as DynamicFormsInputs,
|
|
3243
|
+
Se as InputBase,
|
|
3244
|
+
Rl as Label,
|
|
3245
|
+
re as MessagesWidget,
|
|
3246
|
+
ql as ResponsiveActionRenderOptions,
|
|
3247
|
+
zl as ResponsiveRenderOptions,
|
|
3248
|
+
fo as VuetifyComponents,
|
|
3249
|
+
Q as defaultBaseProps,
|
|
3250
|
+
Ye as defaultDisplayStyle,
|
|
3251
|
+
Hl as getBreakpointName,
|
|
3252
|
+
Qe as responsiveBreakpoints,
|
|
2575
3253
|
ve as translatableStrings,
|
|
2576
|
-
|
|
2577
|
-
|
|
3254
|
+
Ko as translateStrings,
|
|
3255
|
+
Kl as useBreakpoint,
|
|
2578
3256
|
X as useInputBase,
|
|
2579
|
-
|
|
3257
|
+
it as vuetifyInputsSettingsKey
|
|
2580
3258
|
};
|
|
2581
3259
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|