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