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