@dynamicforms/vuetify-inputs 0.9.2 → 0.10.0
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 +2343 -1375
- package/dist/dynamicforms-vuetify-inputs.js.map +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs.map +1 -1
- package/dist/index.d.ts +43 -26
- package/package.json +22 -5
- package/readme.md +3 -4
|
@@ -1,255 +1,80 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var $t = Object.defineProperty, St = Object.defineProperties;
|
|
2
|
+
var Mt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Je = Object.getOwnPropertySymbols;
|
|
4
|
+
var Dt = Object.prototype.hasOwnProperty, It = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ue = (e, n, t) => n in e ? $t(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, U = (e, n) => {
|
|
6
|
+
for (var t in n || (n = {}))
|
|
7
|
+
Dt.call(n, t) && Ue(e, t, n[t]);
|
|
8
|
+
if (Je)
|
|
9
|
+
for (var t of Je(n))
|
|
10
|
+
It.call(n, t) && Ue(e, t, n[t]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
12
|
+
}, J = (e, n) => St(e, Mt(n));
|
|
13
|
+
var Ve = (e, n, t) => Ue(e, typeof n != "symbol" ? n + "" : n, t);
|
|
14
|
+
var Te = (e, n, t) => new Promise((a, r) => {
|
|
15
|
+
var d = (w) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
g(t.next(w));
|
|
18
|
+
} catch (v) {
|
|
19
|
+
r(v);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, c = (w) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
g(t.throw(w));
|
|
24
|
+
} catch (v) {
|
|
25
|
+
r(v);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, g = (w) => w.done ? a(w.value) : Promise.resolve(w.value).then(d, c);
|
|
28
|
+
g((t = t.apply(e, n)).next());
|
|
29
29
|
});
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import {
|
|
33
|
-
import
|
|
34
|
-
import {
|
|
35
|
-
import
|
|
36
|
-
import {
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import {
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import {
|
|
45
|
-
import
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
function He(e) {
|
|
77
|
-
return e ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((t) => e.includes(t)) : !1;
|
|
78
|
-
}
|
|
79
|
-
function po(e) {
|
|
80
|
-
return We(e) || He(e);
|
|
81
|
-
}
|
|
82
|
-
function ho(e, t) {
|
|
83
|
-
const n = e.extraPlugins || [];
|
|
84
|
-
return W(x({}, e), {
|
|
85
|
-
extraPlugins: [
|
|
86
|
-
...n,
|
|
87
|
-
...t.filter((l) => !n.includes(l))
|
|
88
|
-
]
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
function bo(e) {
|
|
92
|
-
if (He(e))
|
|
93
|
-
return 3;
|
|
94
|
-
const { major: t } = ct(e);
|
|
95
|
-
switch (!0) {
|
|
96
|
-
case t >= 44:
|
|
97
|
-
return 3;
|
|
98
|
-
case t >= 38:
|
|
99
|
-
return 2;
|
|
100
|
-
default:
|
|
101
|
-
return 1;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
function dt() {
|
|
105
|
-
const { CKEDITOR_VERSION: e, CKEDITOR: t } = window;
|
|
106
|
-
return po(e) ? {
|
|
107
|
-
source: t ? "cdn" : "npm",
|
|
108
|
-
version: e
|
|
109
|
-
} : null;
|
|
110
|
-
}
|
|
111
|
-
function go() {
|
|
112
|
-
const e = dt();
|
|
113
|
-
return e ? bo(e.version) : null;
|
|
114
|
-
}
|
|
115
|
-
function mt(e, t) {
|
|
116
|
-
switch (t || (t = go() || void 0), t) {
|
|
117
|
-
case 1:
|
|
118
|
-
case 2:
|
|
119
|
-
return e === void 0;
|
|
120
|
-
case 3:
|
|
121
|
-
return e === "GPL";
|
|
122
|
-
default:
|
|
123
|
-
return !1;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
function yo(e, t) {
|
|
127
|
-
return function(l) {
|
|
128
|
-
mt(l.config.get("licenseKey")) || l.on("collectUsageData", (a, { setUsageData: r }) => {
|
|
129
|
-
r(`integration.${e}`, t);
|
|
130
|
-
});
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
const wo = yo(
|
|
134
|
-
"vue",
|
|
135
|
-
{
|
|
136
|
-
version: "7.4.0",
|
|
137
|
-
frameworkVersion: Rt
|
|
138
|
-
}
|
|
139
|
-
);
|
|
140
|
-
function ko(e) {
|
|
141
|
-
return mt(e.licenseKey) ? e : ho(e, [
|
|
142
|
-
/**
|
|
143
|
-
* This part of the code is not executed in open-source implementations using a GPL key.
|
|
144
|
-
* It only runs when a specific license key is provided. If you are uncertain whether
|
|
145
|
-
* this applies to your installation, please contact our support team.
|
|
146
|
-
*/
|
|
147
|
-
wo
|
|
148
|
-
]);
|
|
149
|
-
}
|
|
150
|
-
function Co(e, t) {
|
|
151
|
-
var n;
|
|
152
|
-
if (ft()) {
|
|
153
|
-
const l = W(x({}, e), {
|
|
154
|
-
roots: W(x({}, e.roots), {
|
|
155
|
-
main: W(x(x({}, e.root), (n = e.roots) == null ? void 0 : n.main), {
|
|
156
|
-
initialData: t
|
|
157
|
-
})
|
|
158
|
-
})
|
|
159
|
-
});
|
|
160
|
-
return delete l.root, delete l.initialData, l;
|
|
161
|
-
}
|
|
162
|
-
return W(x({}, e), {
|
|
163
|
-
initialData: t
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
function Vo(e) {
|
|
167
|
-
var t, n;
|
|
168
|
-
return ft() ? (n = (t = e.roots) == null ? void 0 : t.main) == null ? void 0 : n.initialData : e.initialData;
|
|
169
|
-
}
|
|
170
|
-
function ft() {
|
|
171
|
-
const e = dt();
|
|
172
|
-
return e ? !We(e.version) || He(e.version) || ct(e.version).major >= 48 : !1;
|
|
173
|
-
}
|
|
174
|
-
const Re = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", jo = 300, To = /* @__PURE__ */ K({
|
|
175
|
-
name: "CKEditor",
|
|
176
|
-
__name: "ckeditor",
|
|
177
|
-
props: /* @__PURE__ */ Ye({
|
|
178
|
-
editor: {},
|
|
179
|
-
config: { default: () => ({}) },
|
|
180
|
-
tagName: { default: "div" },
|
|
181
|
-
disabled: { type: Boolean, default: !1 },
|
|
182
|
-
disableTwoWayDataBinding: { type: Boolean, default: !1 }
|
|
183
|
-
}, {
|
|
184
|
-
modelValue: { type: String, default: "" },
|
|
185
|
-
modelModifiers: {}
|
|
186
|
-
}),
|
|
187
|
-
emits: /* @__PURE__ */ Ye(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
|
|
188
|
-
setup(e, { expose: t, emit: n }) {
|
|
189
|
-
const l = $t(e, "modelValue"), a = e, r = n, u = R(), c = R(), p = R();
|
|
190
|
-
t({
|
|
191
|
-
instance: c,
|
|
192
|
-
lastEditorData: p
|
|
193
|
-
}), de(l, (s) => {
|
|
194
|
-
c.value && s !== p.value && c.value.data.set(s);
|
|
195
|
-
}), de(() => a.disabled, (s) => {
|
|
196
|
-
s ? c.value.enableReadOnlyMode(Re) : c.value.disableReadOnlyMode(Re);
|
|
197
|
-
});
|
|
198
|
-
function i() {
|
|
199
|
-
const s = window.CKEDITOR_VERSION;
|
|
200
|
-
if (!s)
|
|
201
|
-
return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
|
|
202
|
-
const [C] = s.split(".").map(Number);
|
|
203
|
-
C >= 42 || s.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
204
|
-
}
|
|
205
|
-
function f(s) {
|
|
206
|
-
const C = Wt((_) => {
|
|
207
|
-
if (a.disableTwoWayDataBinding)
|
|
208
|
-
return;
|
|
209
|
-
const h = p.value = s.data.get();
|
|
210
|
-
r("update:modelValue", h, _, s), r("input", h, _, s);
|
|
211
|
-
}, jo, { leading: !0 });
|
|
212
|
-
s.model.document.on("change:data", C), s.editing.view.document.on("focus", (_) => {
|
|
213
|
-
r("focus", _, s);
|
|
214
|
-
}), s.editing.view.document.on("blur", (_) => {
|
|
215
|
-
r("blur", _, s);
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
return i(), lt(() => {
|
|
219
|
-
let s = ko(
|
|
220
|
-
Object.assign({}, a.config)
|
|
221
|
-
);
|
|
222
|
-
l.value && (s = Co(s, l.value)), a.editor.create(u.value, s).then((C) => {
|
|
223
|
-
c.value = Mt(C), f(C), l.value !== Vo(s) && C.data.set(l.value), a.disabled && C.enableReadOnlyMode(Re), r("ready", C);
|
|
224
|
-
}).catch((C) => {
|
|
225
|
-
console.error(C);
|
|
226
|
-
});
|
|
227
|
-
}), at(() => {
|
|
228
|
-
c.value && (c.value.destroy(), c.value = void 0), r("destroy");
|
|
229
|
-
}), (s, C) => (V(), F(je(e.tagName), {
|
|
230
|
-
ref_key: "element",
|
|
231
|
-
ref: u
|
|
232
|
-
}, null, 512));
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
if (!Ge.version || !Ge.version.startsWith("3."))
|
|
236
|
-
throw new Error(
|
|
237
|
-
"The CKEditor plugin works only with Vue 3+. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v3.html"
|
|
238
|
-
);
|
|
239
|
-
const xo = {
|
|
240
|
-
/**
|
|
241
|
-
* Installs the plugin, registering the `<ckeditor>` component.
|
|
242
|
-
*
|
|
243
|
-
* @param app The application instance.
|
|
244
|
-
*/
|
|
245
|
-
install(e) {
|
|
246
|
-
e.component("Ckeditor", To);
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
function _o(e) {
|
|
30
|
+
import { ref as F, isRef as ke, defineComponent as Z, computed as C, openBlock as j, createBlock as H, unref as l, resolveComponent as P, createElementBlock as Q, normalizeClass as ce, Fragment as Me, resolveDynamicComponent as Ne, createCommentVNode as G, createTextVNode as Y, toDisplayString as K, inject as Fe, shallowRef as Rt, toRaw as Qe, nextTick as Oe, createSlots as qe, withCtx as s, createVNode as i, renderSlot as we, normalizeProps as he, guardReactiveProps as ge, createElementVNode as ae, renderList as Ke, mergeProps as X, withModifiers as Pt, mergeDefaults as ve, normalizeStyle as Nt, toRefs as Ee, watch as se, withKeys as Se, onBeforeUnmount as ot, useCssVars as zt } from "vue";
|
|
31
|
+
import ye, { MessagesWidget as Et, MdString as Ut, ValidationErrorRenderContent as Ft, Action as Ht, DisplayMode as He } from "@dynamicforms/vue-forms";
|
|
32
|
+
import { CachedIcon as B } from "vue-cached-icon";
|
|
33
|
+
import Wt from "vue-markdown-render";
|
|
34
|
+
import { isString as fe, isEmpty as De, isPlainObject as it, isObjectLike as Ot, isBoolean as Ie, clone as qt, toNumber as Ze, isNaN as et, isArray as tt, castArray as rt, first as st, isEqual as Kt, unionBy as Xt } from "lodash-es";
|
|
35
|
+
import { useDisplay as Yt } from "vuetify";
|
|
36
|
+
import { parse as Gt, format as je } from "date-fns";
|
|
37
|
+
import Jt from "@tiptap/extension-image";
|
|
38
|
+
import Qt from "@tiptap/extension-placeholder";
|
|
39
|
+
import { Table as Zt } from "@tiptap/extension-table";
|
|
40
|
+
import en from "@tiptap/extension-table-cell";
|
|
41
|
+
import tn from "@tiptap/extension-table-header";
|
|
42
|
+
import nn from "@tiptap/extension-table-row";
|
|
43
|
+
import ln from "@tiptap/extension-text-align";
|
|
44
|
+
import { NodeSelection as an } from "@tiptap/pm/state";
|
|
45
|
+
import on from "@tiptap/starter-kit";
|
|
46
|
+
import { useEditor as rn, EditorContent as sn } from "@tiptap/vue-3";
|
|
47
|
+
import { BubbleMenu as un } from "@tiptap/vue-3/menus";
|
|
48
|
+
import { Extension as dn, Mark as cn, mergeAttributes as ut, Node as mn } from "@tiptap/core";
|
|
49
|
+
import { Slice as fn, Fragment as vn } from "@tiptap/pm/model";
|
|
50
|
+
import pn from "@tiptap/extension-link";
|
|
51
|
+
import { VAutocomplete as bn } from "vuetify/components/VAutocomplete";
|
|
52
|
+
import { VBtn as hn } from "vuetify/components/VBtn";
|
|
53
|
+
import { VCheckbox as gn } from "vuetify/components/VCheckbox";
|
|
54
|
+
import { VChip as kn } from "vuetify/components/VChip";
|
|
55
|
+
import { VCombobox as yn } from "vuetify/components/VCombobox";
|
|
56
|
+
import { VColorPicker as wn } from "vuetify/components/VColorPicker";
|
|
57
|
+
import { VConfirmEdit as Cn } from "vuetify/components/VConfirmEdit";
|
|
58
|
+
import { VDatePicker as An } from "vuetify/components/VDatePicker";
|
|
59
|
+
import { VField as xn } from "vuetify/components/VField";
|
|
60
|
+
import { VFileInput as Vn } from "vuetify/components/VFileInput";
|
|
61
|
+
import { VCol as Tn, VRow as jn } from "vuetify/components/VGrid";
|
|
62
|
+
import { VIcon as _n } from "vuetify/components/VIcon";
|
|
63
|
+
import { VImg as Bn } from "vuetify/components/VImg";
|
|
64
|
+
import { VInput as Ln } from "vuetify/components/VInput";
|
|
65
|
+
import { VListItem as $n } from "vuetify/components/VList";
|
|
66
|
+
import { VMenu as Sn } from "vuetify/components/VMenu";
|
|
67
|
+
import { VNumberInput as Mn } from "vuetify/components/VNumberInput";
|
|
68
|
+
import { VProgressLinear as Dn } from "vuetify/components/VProgressLinear";
|
|
69
|
+
import { VSelect as In } from "vuetify/components/VSelect";
|
|
70
|
+
import { VSwitch as Rn } from "vuetify/components/VSwitch";
|
|
71
|
+
import { VTextarea as Pn } from "vuetify/components/VTextarea";
|
|
72
|
+
import { VTextField as Nn } from "vuetify/components/VTextField";
|
|
73
|
+
import { VTimePicker as zn } from "vuetify/components/VTimePicker";
|
|
74
|
+
function En(e) {
|
|
250
75
|
return e.one !== void 0;
|
|
251
76
|
}
|
|
252
|
-
const
|
|
77
|
+
const Un = {
|
|
253
78
|
lessThanXSeconds: {
|
|
254
79
|
present: {
|
|
255
80
|
one: "manj kot {{count}} sekunda",
|
|
@@ -526,7 +351,7 @@ const Bo = {
|
|
|
526
351
|
}
|
|
527
352
|
}
|
|
528
353
|
};
|
|
529
|
-
function
|
|
354
|
+
function Fn(e) {
|
|
530
355
|
switch (e % 100) {
|
|
531
356
|
case 1:
|
|
532
357
|
return "one";
|
|
@@ -539,53 +364,53 @@ function Do(e) {
|
|
|
539
364
|
return "other";
|
|
540
365
|
}
|
|
541
366
|
}
|
|
542
|
-
const
|
|
543
|
-
let
|
|
544
|
-
|
|
545
|
-
const
|
|
546
|
-
if (typeof
|
|
547
|
-
|
|
367
|
+
const Hn = (e, n, t) => {
|
|
368
|
+
let a = "", r = "present";
|
|
369
|
+
t != null && t.addSuffix && (t.comparison && t.comparison > 0 ? (r = "future", a = "čez ") : (r = "past", a = "pred "));
|
|
370
|
+
const d = Un[e];
|
|
371
|
+
if (typeof d == "string")
|
|
372
|
+
a += d;
|
|
548
373
|
else {
|
|
549
|
-
const
|
|
550
|
-
|
|
374
|
+
const c = Fn(n);
|
|
375
|
+
En(d) ? a += d[c].replace("{{count}}", String(n)) : a += d[r][c].replace("{{count}}", String(n));
|
|
551
376
|
}
|
|
552
|
-
return
|
|
377
|
+
return a;
|
|
553
378
|
};
|
|
554
|
-
function
|
|
555
|
-
return (
|
|
556
|
-
const
|
|
557
|
-
return e.formats[
|
|
379
|
+
function We(e) {
|
|
380
|
+
return (n = {}) => {
|
|
381
|
+
const t = n.width ? String(n.width) : e.defaultWidth;
|
|
382
|
+
return e.formats[t] || e.formats[e.defaultWidth];
|
|
558
383
|
};
|
|
559
384
|
}
|
|
560
|
-
const
|
|
385
|
+
const Wn = {
|
|
561
386
|
full: "EEEE, dd. MMMM y",
|
|
562
387
|
long: "dd. MMMM y",
|
|
563
388
|
medium: "d. MMM y",
|
|
564
389
|
short: "d. MM. yy"
|
|
565
|
-
},
|
|
390
|
+
}, On = {
|
|
566
391
|
full: "HH:mm:ss zzzz",
|
|
567
392
|
long: "HH:mm:ss z",
|
|
568
393
|
medium: "HH:mm:ss",
|
|
569
394
|
short: "HH:mm"
|
|
570
|
-
},
|
|
395
|
+
}, qn = {
|
|
571
396
|
full: "{{date}} {{time}}",
|
|
572
397
|
long: "{{date}} {{time}}",
|
|
573
398
|
medium: "{{date}} {{time}}",
|
|
574
399
|
short: "{{date}} {{time}}"
|
|
575
|
-
},
|
|
576
|
-
date:
|
|
577
|
-
formats:
|
|
400
|
+
}, Kn = {
|
|
401
|
+
date: We({
|
|
402
|
+
formats: Wn,
|
|
578
403
|
defaultWidth: "full"
|
|
579
404
|
}),
|
|
580
|
-
time:
|
|
581
|
-
formats:
|
|
405
|
+
time: We({
|
|
406
|
+
formats: On,
|
|
582
407
|
defaultWidth: "full"
|
|
583
408
|
}),
|
|
584
|
-
dateTime:
|
|
585
|
-
formats:
|
|
409
|
+
dateTime: We({
|
|
410
|
+
formats: qn,
|
|
586
411
|
defaultWidth: "full"
|
|
587
412
|
})
|
|
588
|
-
},
|
|
413
|
+
}, Xn = {
|
|
589
414
|
lastWeek: (e) => {
|
|
590
415
|
switch (e.getDay()) {
|
|
591
416
|
case 0:
|
|
@@ -614,34 +439,34 @@ const So = {
|
|
|
614
439
|
}
|
|
615
440
|
},
|
|
616
441
|
other: "P"
|
|
617
|
-
},
|
|
618
|
-
const
|
|
619
|
-
return typeof
|
|
442
|
+
}, Yn = (e, n, t, a) => {
|
|
443
|
+
const r = Xn[e];
|
|
444
|
+
return typeof r == "function" ? r(n) : r;
|
|
620
445
|
};
|
|
621
|
-
function
|
|
622
|
-
return (
|
|
623
|
-
const
|
|
624
|
-
let
|
|
625
|
-
if (
|
|
626
|
-
const
|
|
627
|
-
|
|
446
|
+
function _e(e) {
|
|
447
|
+
return (n, t) => {
|
|
448
|
+
const a = t != null && t.context ? String(t.context) : "standalone";
|
|
449
|
+
let r;
|
|
450
|
+
if (a === "formatting" && e.formattingValues) {
|
|
451
|
+
const c = e.defaultFormattingWidth || e.defaultWidth, g = t != null && t.width ? String(t.width) : c;
|
|
452
|
+
r = e.formattingValues[g] || e.formattingValues[c];
|
|
628
453
|
} else {
|
|
629
|
-
const
|
|
630
|
-
|
|
454
|
+
const c = e.defaultWidth, g = t != null && t.width ? String(t.width) : e.defaultWidth;
|
|
455
|
+
r = e.values[g] || e.values[c];
|
|
631
456
|
}
|
|
632
|
-
const
|
|
633
|
-
return
|
|
457
|
+
const d = e.argumentCallback ? e.argumentCallback(n) : n;
|
|
458
|
+
return r[d];
|
|
634
459
|
};
|
|
635
460
|
}
|
|
636
|
-
const
|
|
461
|
+
const Gn = {
|
|
637
462
|
narrow: ["pr. n. št.", "po n. št."],
|
|
638
463
|
abbreviated: ["pr. n. št.", "po n. št."],
|
|
639
464
|
wide: ["pred našim štetjem", "po našem štetju"]
|
|
640
|
-
},
|
|
465
|
+
}, Jn = {
|
|
641
466
|
narrow: ["1", "2", "3", "4"],
|
|
642
467
|
abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."],
|
|
643
468
|
wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"]
|
|
644
|
-
},
|
|
469
|
+
}, Qn = {
|
|
645
470
|
narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
|
646
471
|
abbreviated: [
|
|
647
472
|
"jan.",
|
|
@@ -671,7 +496,7 @@ const Ro = {
|
|
|
671
496
|
"november",
|
|
672
497
|
"december"
|
|
673
498
|
]
|
|
674
|
-
},
|
|
499
|
+
}, Zn = {
|
|
675
500
|
narrow: ["n", "p", "t", "s", "č", "p", "s"],
|
|
676
501
|
short: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
|
677
502
|
abbreviated: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
|
@@ -684,7 +509,7 @@ const Ro = {
|
|
|
684
509
|
"petek",
|
|
685
510
|
"sobota"
|
|
686
511
|
]
|
|
687
|
-
},
|
|
512
|
+
}, el = {
|
|
688
513
|
narrow: {
|
|
689
514
|
am: "d",
|
|
690
515
|
pm: "p",
|
|
@@ -715,7 +540,7 @@ const Ro = {
|
|
|
715
540
|
evening: "večer",
|
|
716
541
|
night: "noč"
|
|
717
542
|
}
|
|
718
|
-
},
|
|
543
|
+
}, tl = {
|
|
719
544
|
narrow: {
|
|
720
545
|
am: "d",
|
|
721
546
|
pm: "p",
|
|
@@ -746,88 +571,88 @@ const Ro = {
|
|
|
746
571
|
evening: "zvečer",
|
|
747
572
|
night: "ponoči"
|
|
748
573
|
}
|
|
749
|
-
},
|
|
750
|
-
ordinalNumber:
|
|
751
|
-
era:
|
|
752
|
-
values:
|
|
574
|
+
}, nl = (e, n) => Number(e) + ".", ll = {
|
|
575
|
+
ordinalNumber: nl,
|
|
576
|
+
era: _e({
|
|
577
|
+
values: Gn,
|
|
753
578
|
defaultWidth: "wide"
|
|
754
579
|
}),
|
|
755
|
-
quarter:
|
|
756
|
-
values:
|
|
580
|
+
quarter: _e({
|
|
581
|
+
values: Jn,
|
|
757
582
|
defaultWidth: "wide",
|
|
758
583
|
argumentCallback: (e) => e - 1
|
|
759
584
|
}),
|
|
760
|
-
month:
|
|
761
|
-
values:
|
|
585
|
+
month: _e({
|
|
586
|
+
values: Qn,
|
|
762
587
|
defaultWidth: "wide"
|
|
763
588
|
}),
|
|
764
|
-
day:
|
|
765
|
-
values:
|
|
589
|
+
day: _e({
|
|
590
|
+
values: Zn,
|
|
766
591
|
defaultWidth: "wide"
|
|
767
592
|
}),
|
|
768
|
-
dayPeriod:
|
|
769
|
-
values:
|
|
593
|
+
dayPeriod: _e({
|
|
594
|
+
values: el,
|
|
770
595
|
defaultWidth: "wide",
|
|
771
|
-
formattingValues:
|
|
596
|
+
formattingValues: tl,
|
|
772
597
|
defaultFormattingWidth: "wide"
|
|
773
598
|
})
|
|
774
599
|
};
|
|
775
|
-
function
|
|
776
|
-
return (
|
|
777
|
-
const
|
|
778
|
-
if (!
|
|
600
|
+
function Be(e) {
|
|
601
|
+
return (n, t = {}) => {
|
|
602
|
+
const a = t.width, r = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth], d = n.match(r);
|
|
603
|
+
if (!d)
|
|
779
604
|
return null;
|
|
780
|
-
const
|
|
605
|
+
const c = d[0], g = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], w = Array.isArray(g) ? ol(g, (h) => h.test(c)) : (
|
|
781
606
|
// [TODO] -- I challenge you to fix the type
|
|
782
|
-
|
|
607
|
+
al(g, (h) => h.test(c))
|
|
783
608
|
);
|
|
784
|
-
let
|
|
785
|
-
|
|
609
|
+
let v;
|
|
610
|
+
v = e.valueCallback ? e.valueCallback(w) : w, v = t.valueCallback ? (
|
|
786
611
|
// [TODO] -- I challenge you to fix the type
|
|
787
|
-
|
|
788
|
-
) :
|
|
789
|
-
const f =
|
|
790
|
-
return { value:
|
|
612
|
+
t.valueCallback(v)
|
|
613
|
+
) : v;
|
|
614
|
+
const f = n.slice(c.length);
|
|
615
|
+
return { value: v, rest: f };
|
|
791
616
|
};
|
|
792
617
|
}
|
|
793
|
-
function
|
|
794
|
-
for (const
|
|
795
|
-
if (Object.prototype.hasOwnProperty.call(e,
|
|
796
|
-
return
|
|
618
|
+
function al(e, n) {
|
|
619
|
+
for (const t in e)
|
|
620
|
+
if (Object.prototype.hasOwnProperty.call(e, t) && n(e[t]))
|
|
621
|
+
return t;
|
|
797
622
|
}
|
|
798
|
-
function
|
|
799
|
-
for (let
|
|
800
|
-
if (
|
|
801
|
-
return
|
|
623
|
+
function ol(e, n) {
|
|
624
|
+
for (let t = 0; t < e.length; t++)
|
|
625
|
+
if (n(e[t]))
|
|
626
|
+
return t;
|
|
802
627
|
}
|
|
803
|
-
function
|
|
804
|
-
return (
|
|
805
|
-
const
|
|
806
|
-
if (!
|
|
807
|
-
const
|
|
808
|
-
if (!
|
|
809
|
-
let
|
|
810
|
-
|
|
811
|
-
const
|
|
812
|
-
return { value:
|
|
628
|
+
function il(e) {
|
|
629
|
+
return (n, t = {}) => {
|
|
630
|
+
const a = n.match(e.matchPattern);
|
|
631
|
+
if (!a) return null;
|
|
632
|
+
const r = a[0], d = n.match(e.parsePattern);
|
|
633
|
+
if (!d) return null;
|
|
634
|
+
let c = e.valueCallback ? e.valueCallback(d[0]) : d[0];
|
|
635
|
+
c = t.valueCallback ? t.valueCallback(c) : c;
|
|
636
|
+
const g = n.slice(r.length);
|
|
637
|
+
return { value: c, rest: g };
|
|
813
638
|
};
|
|
814
639
|
}
|
|
815
|
-
const
|
|
640
|
+
const rl = /^(\d+)\./i, sl = /\d+/i, ul = {
|
|
816
641
|
abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
|
|
817
642
|
wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
|
|
818
|
-
},
|
|
643
|
+
}, dl = {
|
|
819
644
|
any: [/^pr/i, /^(po|na[sš]em)/i]
|
|
820
|
-
},
|
|
645
|
+
}, cl = {
|
|
821
646
|
narrow: /^[1234]/i,
|
|
822
647
|
abbreviated: /^[1234]\.\s?[čc]et\.?/i,
|
|
823
648
|
wide: /^[1234]\. [čc]etrtletje/i
|
|
824
|
-
},
|
|
649
|
+
}, ml = {
|
|
825
650
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
826
|
-
},
|
|
651
|
+
}, fl = {
|
|
827
652
|
narrow: /^[jfmasond]/i,
|
|
828
653
|
abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,
|
|
829
654
|
wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i
|
|
830
|
-
},
|
|
655
|
+
}, vl = {
|
|
831
656
|
narrow: [
|
|
832
657
|
/^j/i,
|
|
833
658
|
/^f/i,
|
|
@@ -870,18 +695,18 @@ const qo = /^(\d+)\./i, Go = /\d+/i, Yo = {
|
|
|
870
695
|
/^n/i,
|
|
871
696
|
/^d/i
|
|
872
697
|
]
|
|
873
|
-
},
|
|
698
|
+
}, pl = {
|
|
874
699
|
narrow: /^[nptsčc]/i,
|
|
875
700
|
short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
876
701
|
abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
877
702
|
wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i
|
|
878
|
-
},
|
|
703
|
+
}, bl = {
|
|
879
704
|
narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i],
|
|
880
705
|
any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i]
|
|
881
|
-
},
|
|
706
|
+
}, hl = {
|
|
882
707
|
narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
|
|
883
708
|
any: /^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i
|
|
884
|
-
},
|
|
709
|
+
}, gl = {
|
|
885
710
|
narrow: {
|
|
886
711
|
am: /^d/i,
|
|
887
712
|
pm: /^p/i,
|
|
@@ -902,60 +727,60 @@ const qo = /^(\d+)\./i, Go = /\d+/i, Yo = {
|
|
|
902
727
|
evening: /^z?ve/i,
|
|
903
728
|
night: /(po)?no/i
|
|
904
729
|
}
|
|
905
|
-
},
|
|
906
|
-
ordinalNumber:
|
|
907
|
-
matchPattern:
|
|
908
|
-
parsePattern:
|
|
730
|
+
}, kl = {
|
|
731
|
+
ordinalNumber: il({
|
|
732
|
+
matchPattern: rl,
|
|
733
|
+
parsePattern: sl,
|
|
909
734
|
valueCallback: (e) => parseInt(e, 10)
|
|
910
735
|
}),
|
|
911
|
-
era:
|
|
912
|
-
matchPatterns:
|
|
736
|
+
era: Be({
|
|
737
|
+
matchPatterns: ul,
|
|
913
738
|
defaultMatchWidth: "wide",
|
|
914
|
-
parsePatterns:
|
|
739
|
+
parsePatterns: dl,
|
|
915
740
|
defaultParseWidth: "any"
|
|
916
741
|
}),
|
|
917
|
-
quarter:
|
|
918
|
-
matchPatterns:
|
|
742
|
+
quarter: Be({
|
|
743
|
+
matchPatterns: cl,
|
|
919
744
|
defaultMatchWidth: "wide",
|
|
920
|
-
parsePatterns:
|
|
745
|
+
parsePatterns: ml,
|
|
921
746
|
defaultParseWidth: "any",
|
|
922
747
|
valueCallback: (e) => e + 1
|
|
923
748
|
}),
|
|
924
|
-
month:
|
|
925
|
-
matchPatterns:
|
|
749
|
+
month: Be({
|
|
750
|
+
matchPatterns: fl,
|
|
926
751
|
defaultMatchWidth: "wide",
|
|
927
|
-
parsePatterns:
|
|
752
|
+
parsePatterns: vl,
|
|
928
753
|
defaultParseWidth: "wide"
|
|
929
754
|
}),
|
|
930
|
-
day:
|
|
931
|
-
matchPatterns:
|
|
755
|
+
day: Be({
|
|
756
|
+
matchPatterns: pl,
|
|
932
757
|
defaultMatchWidth: "wide",
|
|
933
|
-
parsePatterns:
|
|
758
|
+
parsePatterns: bl,
|
|
934
759
|
defaultParseWidth: "any"
|
|
935
760
|
}),
|
|
936
|
-
dayPeriod:
|
|
937
|
-
matchPatterns:
|
|
761
|
+
dayPeriod: Be({
|
|
762
|
+
matchPatterns: hl,
|
|
938
763
|
defaultMatchWidth: "any",
|
|
939
|
-
parsePatterns:
|
|
764
|
+
parsePatterns: gl,
|
|
940
765
|
defaultParseWidth: "any"
|
|
941
766
|
})
|
|
942
|
-
},
|
|
767
|
+
}, yl = {
|
|
943
768
|
code: "sl",
|
|
944
|
-
formatDistance:
|
|
945
|
-
formatLong:
|
|
946
|
-
formatRelative:
|
|
947
|
-
localize:
|
|
948
|
-
match:
|
|
769
|
+
formatDistance: Hn,
|
|
770
|
+
formatLong: Kn,
|
|
771
|
+
formatRelative: Yn,
|
|
772
|
+
localize: ll,
|
|
773
|
+
match: kl,
|
|
949
774
|
options: {
|
|
950
775
|
weekStartsOn: 1,
|
|
951
776
|
firstWeekContainsDate: 1
|
|
952
777
|
}
|
|
953
|
-
},
|
|
954
|
-
dateTimeLocale:
|
|
778
|
+
}, wl = {
|
|
779
|
+
dateTimeLocale: F(yl),
|
|
955
780
|
setDateTimeLocale(e) {
|
|
956
|
-
|
|
781
|
+
ke(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
|
|
957
782
|
}
|
|
958
|
-
},
|
|
783
|
+
}, ue = /* @__PURE__ */ Z({
|
|
959
784
|
__name: "df-input-hint",
|
|
960
785
|
props: {
|
|
961
786
|
errors: { default: "" },
|
|
@@ -964,13 +789,13 @@ const qo = /^(\d+)\./i, Go = /\d+/i, Yo = {
|
|
|
964
789
|
messageClasses: { default: "" }
|
|
965
790
|
},
|
|
966
791
|
setup(e) {
|
|
967
|
-
const
|
|
968
|
-
return (
|
|
969
|
-
message:
|
|
970
|
-
classes:
|
|
792
|
+
const n = e, t = C(() => n.errors ? typeof n.errors == "string" ? n.errors.trim().length > 0 : n.errors.length > 0 : !1), a = C(() => t.value ? n.errors : n.message), r = C(() => t.value ? n.errorClasses : n.messageClasses);
|
|
793
|
+
return (d, c) => (j(), H(l(Et), {
|
|
794
|
+
message: a.value,
|
|
795
|
+
classes: r.value
|
|
971
796
|
}, null, 8, ["message", "classes"]));
|
|
972
797
|
}
|
|
973
|
-
}),
|
|
798
|
+
}), de = /* @__PURE__ */ Z({
|
|
974
799
|
__name: "df-label",
|
|
975
800
|
props: {
|
|
976
801
|
data: {},
|
|
@@ -978,146 +803,146 @@ const qo = /^(\d+)\./i, Go = /\d+/i, Yo = {
|
|
|
978
803
|
allowWrap: { type: Boolean }
|
|
979
804
|
},
|
|
980
805
|
setup(e) {
|
|
981
|
-
const
|
|
982
|
-
return (
|
|
983
|
-
const
|
|
984
|
-
return
|
|
985
|
-
class:
|
|
806
|
+
const n = e, t = C(() => n.data ? n.data.label : n.label.text);
|
|
807
|
+
return (a, r) => {
|
|
808
|
+
const d = P("v-img");
|
|
809
|
+
return j(), Q("div", {
|
|
810
|
+
class: ce(["df-label", { "allow-wrap": e.allowWrap }])
|
|
986
811
|
}, [
|
|
987
|
-
e.label.icon ? (
|
|
988
|
-
e.label.iconComponent === "v-icon" ? (
|
|
812
|
+
e.label.icon ? (j(), Q(Me, { key: 0 }, [
|
|
813
|
+
e.label.iconComponent === "v-icon" ? (j(), H(l(B), {
|
|
989
814
|
key: 0,
|
|
990
815
|
name: e.label.icon,
|
|
991
816
|
size: "1.25em"
|
|
992
|
-
}, null, 8, ["name"])) : e.label.iconComponent === "v-img" ? (
|
|
817
|
+
}, null, 8, ["name"])) : e.label.iconComponent === "v-img" ? (j(), H(d, {
|
|
993
818
|
key: 1,
|
|
994
819
|
class: "icon",
|
|
995
820
|
src: e.label.icon
|
|
996
|
-
}, null, 8, ["src"])) : (
|
|
821
|
+
}, null, 8, ["src"])) : (j(), H(Ne(e.label.iconComponent), {
|
|
997
822
|
key: 2,
|
|
998
823
|
src: e.label.icon
|
|
999
824
|
}, null, 8, ["src"]))
|
|
1000
|
-
], 64)) :
|
|
1001
|
-
|
|
825
|
+
], 64)) : G("", !0),
|
|
826
|
+
t.value instanceof l(Ut) ? (j(), H(l(Wt), {
|
|
1002
827
|
key: 1,
|
|
1003
828
|
class: "markdown",
|
|
1004
|
-
source:
|
|
1005
|
-
options:
|
|
1006
|
-
plugins:
|
|
1007
|
-
}, null, 8, ["source", "options", "plugins"])) : (
|
|
1008
|
-
|
|
829
|
+
source: t.value.toString(),
|
|
830
|
+
options: t.value.options,
|
|
831
|
+
plugins: t.value.plugins
|
|
832
|
+
}, null, 8, ["source", "options", "plugins"])) : (j(), Q(Me, { key: 2 }, [
|
|
833
|
+
Y(K(t.value), 1)
|
|
1009
834
|
], 64))
|
|
1010
835
|
], 2);
|
|
1011
836
|
};
|
|
1012
837
|
}
|
|
1013
|
-
}),
|
|
1014
|
-
class
|
|
1015
|
-
constructor(
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
this.text =
|
|
838
|
+
}), dt = /* @__PURE__ */ Symbol("vuetifyInputsSettingsKey");
|
|
839
|
+
class Cl {
|
|
840
|
+
constructor(n, t, a = "v-icon") {
|
|
841
|
+
Ve(this, "text");
|
|
842
|
+
Ve(this, "icon");
|
|
843
|
+
Ve(this, "iconComponent");
|
|
844
|
+
this.text = n, this.icon = t, this.iconComponent = a;
|
|
1020
845
|
}
|
|
1021
846
|
}
|
|
1022
|
-
const
|
|
1023
|
-
function
|
|
1024
|
-
const
|
|
847
|
+
const pe = { enabled: void 0, clearable: !0 };
|
|
848
|
+
function me(e, n) {
|
|
849
|
+
const t = Fe(dt, {}), a = Fe("field-density", null), r = Fe("field-variant", null), d = F(null), c = Rt(null), g = C({
|
|
1025
850
|
get() {
|
|
1026
|
-
return
|
|
851
|
+
return c.value ? c.value.value : e.control ? e.control.value : e.modelValue === void 0 ? d.value : e.modelValue;
|
|
1027
852
|
},
|
|
1028
|
-
set(
|
|
853
|
+
set(m) {
|
|
1029
854
|
try {
|
|
1030
|
-
e.control && (e.control.value =
|
|
855
|
+
e.control && (e.control.value = m);
|
|
1031
856
|
} finally {
|
|
1032
|
-
e.control && !Object.is(Qe(e.control.value), Qe(
|
|
1033
|
-
|
|
857
|
+
e.control && !Object.is(Qe(e.control.value), Qe(m)) && (c.value = { value: m }, Oe(() => {
|
|
858
|
+
c.value = null;
|
|
1034
859
|
}));
|
|
1035
860
|
}
|
|
1036
|
-
e.modelValue === void 0 && (
|
|
861
|
+
e.modelValue === void 0 && (d.value = m), n("update:modelValue", e.control ? e.control.value : m);
|
|
1037
862
|
}
|
|
1038
863
|
});
|
|
1039
|
-
if (e.control && !(e.control instanceof
|
|
864
|
+
if (e.control && !(e.control instanceof ye.FieldBase))
|
|
1040
865
|
throw new Error("control prop is not a vue-form control instance");
|
|
1041
|
-
const
|
|
866
|
+
const w = C({
|
|
1042
867
|
get() {
|
|
1043
868
|
return e.control.touched;
|
|
1044
869
|
},
|
|
1045
|
-
set(
|
|
1046
|
-
e.control.touched =
|
|
870
|
+
set(m) {
|
|
871
|
+
e.control.touched = m;
|
|
1047
872
|
}
|
|
1048
|
-
}),
|
|
1049
|
-
() => e.control ? e.control.errors : (e.errors || []).map((
|
|
1050
|
-
),
|
|
1051
|
-
"d-none":
|
|
1052
|
-
invisible:
|
|
1053
|
-
})),
|
|
1054
|
-
var
|
|
1055
|
-
return (
|
|
1056
|
-
}),
|
|
1057
|
-
var
|
|
1058
|
-
const
|
|
1059
|
-
return
|
|
1060
|
-
}),
|
|
1061
|
-
var
|
|
1062
|
-
return (
|
|
1063
|
-
}),
|
|
1064
|
-
var
|
|
1065
|
-
return (
|
|
1066
|
-
}),
|
|
1067
|
-
var
|
|
1068
|
-
return (
|
|
1069
|
-
}),
|
|
1070
|
-
var
|
|
1071
|
-
return (
|
|
1072
|
-
}),
|
|
873
|
+
}), v = e.control ? w : F(!1), f = C(() => e.control ? e.control.valid : !0), h = C(
|
|
874
|
+
() => e.control ? e.control.errors : (e.errors || []).map((m) => new Ft(m))
|
|
875
|
+
), L = C(() => v.value && h.value.length > 0 ? " " : void 0), $ = C(() => v.value ? h.value : void 0), A = C(() => e.control ? e.control.effectiveEnabled : e.enabled !== !1), V = C(() => e.control ? e.control.visibility : e.visibility == null ? ye.DisplayMode.FULL : ye.DisplayMode.fromAny(e.visibility)), M = C(() => V.value !== ye.DisplayMode.SUPPRESS), I = C(() => ({
|
|
876
|
+
"d-none": V.value === ye.DisplayMode.HIDDEN,
|
|
877
|
+
invisible: V.value === ye.DisplayMode.INVISIBLE
|
|
878
|
+
})), b = C(() => {
|
|
879
|
+
var m, x;
|
|
880
|
+
return (x = (m = e.control) == null ? void 0 : m.extra) != null ? x : {};
|
|
881
|
+
}), D = C(() => {
|
|
882
|
+
var x;
|
|
883
|
+
const m = (x = e.label) != null ? x : b.value.label;
|
|
884
|
+
return fe(m || "") ? new Cl(m || "") : m;
|
|
885
|
+
}), O = C(() => {
|
|
886
|
+
var m, x;
|
|
887
|
+
return (x = (m = e.placeholder) != null ? m : b.value.placeholder) != null ? x : "";
|
|
888
|
+
}), E = C(() => {
|
|
889
|
+
var m, x;
|
|
890
|
+
return (x = (m = e.helpText) != null ? m : b.value.helpText) != null ? x : "";
|
|
891
|
+
}), q = C(() => {
|
|
892
|
+
var m, x;
|
|
893
|
+
return (x = (m = e.hint) != null ? m : b.value.hint) != null ? x : "";
|
|
894
|
+
}), S = C(() => {
|
|
895
|
+
var m, x;
|
|
896
|
+
return (x = (m = e.cssClass) != null ? m : b.value.cssClass) != null ? x : "";
|
|
897
|
+
}), y = C(
|
|
1073
898
|
() => {
|
|
1074
|
-
var
|
|
1075
|
-
return (
|
|
899
|
+
var m, x, N, W;
|
|
900
|
+
return (W = (N = (x = (m = e.density) != null ? m : b.value.density) != null ? x : a) != null ? N : t.defaultDensity) != null ? W : "default";
|
|
1076
901
|
}
|
|
1077
|
-
),
|
|
902
|
+
), o = C(() => y.value === "inline" ? "default" : y.value), u = C(
|
|
1078
903
|
() => {
|
|
1079
|
-
var
|
|
1080
|
-
return (
|
|
904
|
+
var m, x, N, W;
|
|
905
|
+
return (W = (N = (x = (m = e.variant) != null ? m : b.value.variant) != null ? x : r) != null ? N : t.defaultVariant) != null ? W : "underlined";
|
|
1081
906
|
}
|
|
1082
907
|
);
|
|
1083
908
|
return {
|
|
1084
|
-
value:
|
|
909
|
+
value: g,
|
|
1085
910
|
valid: f,
|
|
1086
|
-
enabled:
|
|
1087
|
-
errors:
|
|
1088
|
-
showErrors:
|
|
1089
|
-
visibility:
|
|
1090
|
-
isRendered:
|
|
1091
|
-
visibilityClass:
|
|
1092
|
-
label:
|
|
1093
|
-
touched:
|
|
1094
|
-
density:
|
|
1095
|
-
densityClass:
|
|
1096
|
-
vuetifyBindings:
|
|
1097
|
-
var
|
|
1098
|
-
return
|
|
1099
|
-
name: (
|
|
1100
|
-
class:
|
|
1101
|
-
density:
|
|
1102
|
-
variant:
|
|
1103
|
-
label:
|
|
1104
|
-
errorMessages:
|
|
911
|
+
enabled: A,
|
|
912
|
+
errors: h,
|
|
913
|
+
showErrors: $,
|
|
914
|
+
visibility: V,
|
|
915
|
+
isRendered: M,
|
|
916
|
+
visibilityClass: I,
|
|
917
|
+
label: D,
|
|
918
|
+
touched: v,
|
|
919
|
+
density: y,
|
|
920
|
+
densityClass: C(() => `df-density-${y.value}`),
|
|
921
|
+
vuetifyBindings: C(() => {
|
|
922
|
+
var m;
|
|
923
|
+
return U({
|
|
924
|
+
name: (m = e.control) == null ? void 0 : m.fieldName,
|
|
925
|
+
class: S.value,
|
|
926
|
+
density: o.value,
|
|
927
|
+
variant: u.value,
|
|
928
|
+
label: D.value.text,
|
|
929
|
+
errorMessages: L.value,
|
|
1105
930
|
// 'error-count': errors?.value.length || 0,
|
|
1106
|
-
readonly: !
|
|
1107
|
-
disabled: !
|
|
1108
|
-
placeholder:
|
|
1109
|
-
"persistent-placeholder": !
|
|
1110
|
-
hint:
|
|
931
|
+
readonly: !A.value,
|
|
932
|
+
disabled: !A.value,
|
|
933
|
+
placeholder: O.value,
|
|
934
|
+
"persistent-placeholder": !De(O.value),
|
|
935
|
+
hint: q.value,
|
|
1111
936
|
persistentHint: !0,
|
|
1112
937
|
// we want persistent hint always
|
|
1113
938
|
hideDetails: "auto",
|
|
1114
939
|
// we want to hide the hint element when hint isn't there
|
|
1115
|
-
helpText:
|
|
940
|
+
helpText: E.value
|
|
1116
941
|
}, e.passthroughAttrs || {});
|
|
1117
942
|
})
|
|
1118
943
|
};
|
|
1119
944
|
}
|
|
1120
|
-
const
|
|
945
|
+
const Al = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Xe = /* @__PURE__ */ Z({
|
|
1121
946
|
__name: "input-base",
|
|
1122
947
|
props: {
|
|
1123
948
|
control: {},
|
|
@@ -1137,63 +962,63 @@ const cl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, ze = /* @_
|
|
|
1137
962
|
loading: { type: Boolean }
|
|
1138
963
|
},
|
|
1139
964
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
1140
|
-
setup(e, { emit:
|
|
1141
|
-
const
|
|
1142
|
-
function
|
|
1143
|
-
|
|
965
|
+
setup(e, { emit: n }) {
|
|
966
|
+
const t = e, a = n, { isRendered: r, label: d, showErrors: c, touched: g, value: w, visibilityClass: v, vuetifyBindings: f } = me(t, a), h = C(() => !!(l(t.clearable) && l(w))), L = F(!1);
|
|
967
|
+
function $(A) {
|
|
968
|
+
L.value = A, A || (g.value = !0, a("blur"));
|
|
1144
969
|
}
|
|
1145
|
-
return (
|
|
1146
|
-
const
|
|
1147
|
-
return
|
|
970
|
+
return (A, V) => {
|
|
971
|
+
const M = P("v-field"), I = P("v-input");
|
|
972
|
+
return l(r) ? (j(), H(I, {
|
|
1148
973
|
key: 0,
|
|
1149
|
-
name:
|
|
1150
|
-
density:
|
|
1151
|
-
hint:
|
|
1152
|
-
"persistent-hint":
|
|
1153
|
-
"hide-details":
|
|
1154
|
-
"error-messages":
|
|
1155
|
-
class:
|
|
1156
|
-
},
|
|
1157
|
-
message:
|
|
1158
|
-
|
|
1159
|
-
message:
|
|
1160
|
-
errors:
|
|
974
|
+
name: l(f).name,
|
|
975
|
+
density: l(f).density,
|
|
976
|
+
hint: l(f).hint,
|
|
977
|
+
"persistent-hint": l(f).persistentHint,
|
|
978
|
+
"hide-details": l(f).hideDetails,
|
|
979
|
+
"error-messages": l(f).errorMessages,
|
|
980
|
+
class: ce([e.cssClass, l(v)])
|
|
981
|
+
}, qe({
|
|
982
|
+
message: s(({ message: b }) => [
|
|
983
|
+
i(ue, {
|
|
984
|
+
message: b,
|
|
985
|
+
errors: l(c)
|
|
1161
986
|
}, null, 8, ["message", "errors"])
|
|
1162
987
|
]),
|
|
1163
|
-
default:
|
|
1164
|
-
|
|
1165
|
-
variant:
|
|
1166
|
-
density:
|
|
1167
|
-
label:
|
|
1168
|
-
disabled:
|
|
1169
|
-
clearable:
|
|
988
|
+
default: s(() => [
|
|
989
|
+
i(M, {
|
|
990
|
+
variant: l(f).variant,
|
|
991
|
+
density: l(f).density,
|
|
992
|
+
label: l(f).label,
|
|
993
|
+
disabled: l(f).disabled,
|
|
994
|
+
clearable: h.value,
|
|
1170
995
|
"persistent-clear": !0,
|
|
1171
|
-
dirty: !!
|
|
1172
|
-
active:
|
|
996
|
+
dirty: !!l(w) || !!l(f).placeholder,
|
|
997
|
+
active: L.value,
|
|
1173
998
|
loading: e.loading,
|
|
1174
|
-
"onClick:clear":
|
|
1175
|
-
"onUpdate:focused":
|
|
1176
|
-
},
|
|
1177
|
-
label:
|
|
1178
|
-
|
|
1179
|
-
data:
|
|
1180
|
-
label:
|
|
999
|
+
"onClick:clear": V[0] || (V[0] = (b) => a("click:clear")),
|
|
1000
|
+
"onUpdate:focused": V[1] || (V[1] = (b) => $(b))
|
|
1001
|
+
}, qe({
|
|
1002
|
+
label: s((b) => [
|
|
1003
|
+
i(de, {
|
|
1004
|
+
data: b,
|
|
1005
|
+
label: l(d)
|
|
1181
1006
|
}, null, 8, ["data", "label"])
|
|
1182
1007
|
]),
|
|
1183
|
-
default:
|
|
1184
|
-
|
|
1185
|
-
|
|
1008
|
+
default: s((b) => [
|
|
1009
|
+
ae("div", Al, [
|
|
1010
|
+
we(A.$slots, "default", he(ge(b)))
|
|
1186
1011
|
])
|
|
1187
1012
|
]),
|
|
1188
|
-
loader:
|
|
1189
|
-
|
|
1013
|
+
loader: s((b) => [
|
|
1014
|
+
we(A.$slots, "loader", he(ge(b)))
|
|
1190
1015
|
]),
|
|
1191
1016
|
_: 2
|
|
1192
1017
|
}, [
|
|
1193
|
-
|
|
1018
|
+
A.$slots["prepend-inner"] ? {
|
|
1194
1019
|
name: "prepend-inner",
|
|
1195
|
-
fn:
|
|
1196
|
-
|
|
1020
|
+
fn: s((b) => [
|
|
1021
|
+
we(A.$slots, "prepend-inner", he(ge(b)))
|
|
1197
1022
|
]),
|
|
1198
1023
|
key: "0"
|
|
1199
1024
|
} : void 0
|
|
@@ -1201,17 +1026,17 @@ const cl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, ze = /* @_
|
|
|
1201
1026
|
]),
|
|
1202
1027
|
_: 2
|
|
1203
1028
|
}, [
|
|
1204
|
-
|
|
1029
|
+
A.$slots.prepend ? {
|
|
1205
1030
|
name: "prepend",
|
|
1206
|
-
fn:
|
|
1207
|
-
|
|
1031
|
+
fn: s((b) => [
|
|
1032
|
+
we(A.$slots, "prepend", he(ge(b)))
|
|
1208
1033
|
]),
|
|
1209
1034
|
key: "0"
|
|
1210
1035
|
} : void 0
|
|
1211
|
-
]), 1032, ["name", "density", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) :
|
|
1036
|
+
]), 1032, ["name", "density", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : G("", !0);
|
|
1212
1037
|
};
|
|
1213
1038
|
}
|
|
1214
|
-
}),
|
|
1039
|
+
}), Ce = {
|
|
1215
1040
|
Yes: "Yes",
|
|
1216
1041
|
No: "No",
|
|
1217
1042
|
Close: "Close",
|
|
@@ -1231,95 +1056,125 @@ const cl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, ze = /* @_
|
|
|
1231
1056
|
Marker: "Marker",
|
|
1232
1057
|
Spoiler: "Spoiler",
|
|
1233
1058
|
CodeDark: "Code (dark)",
|
|
1234
|
-
CodeBright: "Code (bright)"
|
|
1059
|
+
CodeBright: "Code (bright)",
|
|
1060
|
+
Undo: "Undo",
|
|
1061
|
+
Redo: "Redo",
|
|
1062
|
+
SelectAll: "Select all",
|
|
1063
|
+
Bold: "Bold",
|
|
1064
|
+
Italic: "Italic",
|
|
1065
|
+
HorizontalLine: "Horizontal line",
|
|
1066
|
+
Blockquote: "Block quote",
|
|
1067
|
+
BulletedList: "Bulleted list",
|
|
1068
|
+
NumberedList: "Numbered list",
|
|
1069
|
+
Outdent: "Decrease indent",
|
|
1070
|
+
Indent: "Increase indent",
|
|
1071
|
+
AlignLeft: "Align left",
|
|
1072
|
+
AlignCenter: "Align center",
|
|
1073
|
+
AlignRight: "Align right",
|
|
1074
|
+
AlignJustify: "Justify",
|
|
1075
|
+
Link: "Link",
|
|
1076
|
+
LinkUrl: "URL",
|
|
1077
|
+
LinkApply: "Apply",
|
|
1078
|
+
LinkRemove: "Remove link",
|
|
1079
|
+
Image: "Image",
|
|
1080
|
+
ImageUrl: "Image URL",
|
|
1081
|
+
ImageUpload: "Upload image",
|
|
1082
|
+
ImageInsert: "Insert",
|
|
1083
|
+
Table: "Table",
|
|
1084
|
+
TableInsert: "Insert table",
|
|
1085
|
+
TableAddRowAbove: "Add row above",
|
|
1086
|
+
TableAddRowBelow: "Add row below",
|
|
1087
|
+
TableDeleteRow: "Delete row",
|
|
1088
|
+
TableAddColumnBefore: "Add column before",
|
|
1089
|
+
TableAddColumnAfter: "Add column after",
|
|
1090
|
+
TableDeleteColumn: "Delete column",
|
|
1091
|
+
TableToggleHeaderRow: "Toggle header row",
|
|
1092
|
+
TableDeleteTable: "Delete table",
|
|
1093
|
+
Style: "Style",
|
|
1094
|
+
MediaEmbed: "Insert media",
|
|
1095
|
+
MediaEmbedUrl: "Video URL",
|
|
1096
|
+
MediaEmbedInsert: "Insert"
|
|
1235
1097
|
};
|
|
1236
|
-
function
|
|
1237
|
-
Object.keys(
|
|
1238
|
-
const
|
|
1239
|
-
|
|
1098
|
+
function Ja(e) {
|
|
1099
|
+
Object.keys(Ce).forEach((n) => {
|
|
1100
|
+
const t = e(n);
|
|
1101
|
+
t != null && (Ce[n] = t);
|
|
1240
1102
|
});
|
|
1241
1103
|
}
|
|
1242
|
-
|
|
1243
|
-
Ie.language = e, Ie.translations = t;
|
|
1244
|
-
}
|
|
1245
|
-
const Ie = {
|
|
1246
|
-
language: "en",
|
|
1247
|
-
translations: void 0
|
|
1248
|
-
};
|
|
1249
|
-
var J = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(J || {});
|
|
1104
|
+
var oe = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(oe || {});
|
|
1250
1105
|
const nt = 0;
|
|
1251
1106
|
((e) => {
|
|
1252
|
-
function
|
|
1253
|
-
return
|
|
1107
|
+
function n(r) {
|
|
1108
|
+
return r.toUpperCase() === "BUTTON" ? 0 : r.toUpperCase() === "TEXT" ? 1 : nt;
|
|
1254
1109
|
}
|
|
1255
|
-
e.fromString =
|
|
1256
|
-
function
|
|
1257
|
-
const
|
|
1258
|
-
return Object.values(e).includes(
|
|
1110
|
+
e.fromString = n;
|
|
1111
|
+
function t(r) {
|
|
1112
|
+
const d = typeof r == "number" ? r : e.fromString(r);
|
|
1113
|
+
return Object.values(e).includes(d) ? d : nt;
|
|
1259
1114
|
}
|
|
1260
|
-
e.fromAny =
|
|
1261
|
-
function
|
|
1262
|
-
const
|
|
1263
|
-
return Object.values(e).includes(
|
|
1115
|
+
e.fromAny = t;
|
|
1116
|
+
function a(r) {
|
|
1117
|
+
const d = typeof r == "number" ? r : e.fromString(r);
|
|
1118
|
+
return Object.values(e).includes(d);
|
|
1264
1119
|
}
|
|
1265
|
-
e.isDefined =
|
|
1266
|
-
})(
|
|
1267
|
-
Object.freeze(
|
|
1268
|
-
const
|
|
1269
|
-
class
|
|
1270
|
-
constructor(
|
|
1271
|
-
|
|
1272
|
-
this._value = this.cleanBreakpoint(
|
|
1273
|
-
const
|
|
1274
|
-
|
|
1120
|
+
e.isDefined = a;
|
|
1121
|
+
})(oe || (oe = {}));
|
|
1122
|
+
Object.freeze(oe);
|
|
1123
|
+
const lt = ["xs", "sm", "md", "lg", "xl"];
|
|
1124
|
+
class xl {
|
|
1125
|
+
constructor(n) {
|
|
1126
|
+
Ve(this, "_value");
|
|
1127
|
+
this._value = this.cleanBreakpoint(n, !0), n && lt.forEach((t) => {
|
|
1128
|
+
const a = this.cleanBreakpoint(n[t]);
|
|
1129
|
+
a && (this._value[t] = a);
|
|
1275
1130
|
});
|
|
1276
1131
|
}
|
|
1277
|
-
getOptionsForBreakpoint(
|
|
1278
|
-
var
|
|
1279
|
-
const
|
|
1280
|
-
for (const
|
|
1281
|
-
const
|
|
1282
|
-
for (const
|
|
1283
|
-
const
|
|
1284
|
-
|
|
1132
|
+
getOptionsForBreakpoint(n) {
|
|
1133
|
+
var a, r;
|
|
1134
|
+
const t = (a = this.cleanBreakpoint(this._value)) != null ? a : {};
|
|
1135
|
+
for (const d of lt) {
|
|
1136
|
+
const c = (r = this._value[d]) != null ? r : {};
|
|
1137
|
+
for (const g of Object.keys(c)) {
|
|
1138
|
+
const w = c[g];
|
|
1139
|
+
w != null && (it(w) ? t[g] = U(U({}, t[g]), w) : t[g] = w);
|
|
1285
1140
|
}
|
|
1286
|
-
if (
|
|
1141
|
+
if (d === n) break;
|
|
1287
1142
|
}
|
|
1288
|
-
return
|
|
1143
|
+
return t;
|
|
1289
1144
|
}
|
|
1290
1145
|
}
|
|
1291
|
-
function
|
|
1146
|
+
function Vl(e) {
|
|
1292
1147
|
return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
|
|
1293
1148
|
}
|
|
1294
|
-
function
|
|
1295
|
-
const e =
|
|
1296
|
-
return
|
|
1149
|
+
function Tl() {
|
|
1150
|
+
const e = Yt();
|
|
1151
|
+
return C(() => Vl(e));
|
|
1297
1152
|
}
|
|
1298
|
-
class
|
|
1299
|
-
cleanBreakpoint(
|
|
1300
|
-
if ((!
|
|
1301
|
-
const
|
|
1302
|
-
return
|
|
1153
|
+
class jl extends xl {
|
|
1154
|
+
cleanBreakpoint(n, t = !1) {
|
|
1155
|
+
if ((!n || !Ot(n)) && !t) return null;
|
|
1156
|
+
const a = {};
|
|
1157
|
+
return t && (a.renderAs = oe.BUTTON, a.showLabel = !0, a.showIcon = !0), n && (n.renderAs != null && (a.renderAs = oe.fromAny(n.renderAs)), fe(n.label) && (a.label = n.label), fe(n.icon) && (a.icon = n.icon), Ie(n.showLabel) && (a.showLabel = n.showLabel), Ie(n.showIcon) && (a.showIcon = n.showIcon), fe(n.name) && (a.name = n.name), Ie(n.defaultConfirm) && (a.defaultConfirm = n.defaultConfirm), Ie(n.defaultReject) && (a.defaultReject = n.defaultReject), it(n.passthroughAttrs) && (a.passthroughAttrs = U({}, n.passthroughAttrs))), Object.keys(a).length ? a : null;
|
|
1303
1158
|
}
|
|
1304
1159
|
}
|
|
1305
|
-
function
|
|
1306
|
-
const
|
|
1160
|
+
function ct(e, n) {
|
|
1161
|
+
const a = new jl(e).getOptionsForBreakpoint(n);
|
|
1307
1162
|
return {
|
|
1308
|
-
name:
|
|
1309
|
-
label:
|
|
1310
|
-
icon:
|
|
1311
|
-
renderAs:
|
|
1312
|
-
showLabel:
|
|
1313
|
-
showIcon:
|
|
1314
|
-
defaultConfirm:
|
|
1315
|
-
defaultReject:
|
|
1316
|
-
passthroughAttrs:
|
|
1163
|
+
name: a.name,
|
|
1164
|
+
label: a.showLabel ? a.label : void 0,
|
|
1165
|
+
icon: a.showIcon ? a.icon : void 0,
|
|
1166
|
+
renderAs: a.renderAs,
|
|
1167
|
+
showLabel: fe(a.label) && !De(a.label) ? a.showLabel : !1,
|
|
1168
|
+
showIcon: fe(a.icon) && !De(a.icon) ? a.showIcon : !1,
|
|
1169
|
+
defaultConfirm: a.defaultConfirm,
|
|
1170
|
+
defaultReject: a.defaultReject,
|
|
1171
|
+
passthroughAttrs: a.passthroughAttrs
|
|
1317
1172
|
};
|
|
1318
1173
|
}
|
|
1319
|
-
class
|
|
1174
|
+
class Re extends Ht {
|
|
1320
1175
|
/** @see getRenderOptionsForBreakpoint, which answers the same for the value of any `Action` */
|
|
1321
|
-
getBreakpointValue(
|
|
1322
|
-
return
|
|
1176
|
+
getBreakpointValue(n) {
|
|
1177
|
+
return C(() => ct(this.value, n.value));
|
|
1323
1178
|
}
|
|
1324
1179
|
/** @see ActionRenderOptions.name */
|
|
1325
1180
|
get name() {
|
|
@@ -1334,7 +1189,7 @@ class De extends Qt {
|
|
|
1334
1189
|
}
|
|
1335
1190
|
/** @see ActionRenderOptions.showLabel */
|
|
1336
1191
|
get showLabel() {
|
|
1337
|
-
return
|
|
1192
|
+
return fe(this.value.label) && !De(this.value.label) ? this.value.showLabel : !1;
|
|
1338
1193
|
}
|
|
1339
1194
|
/**
|
|
1340
1195
|
* The icon as this action renders it: the name where {@link ActionRenderOptions.showIcon} states it is shown,
|
|
@@ -1345,7 +1200,7 @@ class De extends Qt {
|
|
|
1345
1200
|
}
|
|
1346
1201
|
/** @see ActionRenderOptions.showIcon */
|
|
1347
1202
|
get showIcon() {
|
|
1348
|
-
return
|
|
1203
|
+
return fe(this.value.icon) && !De(this.value.icon) ? this.value.showIcon : !1;
|
|
1349
1204
|
}
|
|
1350
1205
|
/** @see ActionRenderOptions.renderAs */
|
|
1351
1206
|
get renderAs() {
|
|
@@ -1363,56 +1218,56 @@ class De extends Qt {
|
|
|
1363
1218
|
get passthroughAttrs() {
|
|
1364
1219
|
return this.value.passthroughAttrs;
|
|
1365
1220
|
}
|
|
1366
|
-
static closeAction(
|
|
1367
|
-
var
|
|
1368
|
-
const
|
|
1221
|
+
static closeAction(n) {
|
|
1222
|
+
var a;
|
|
1223
|
+
const t = J(U({}, n != null ? n : {}), {
|
|
1369
1224
|
// any properties in data should overwrite properties in the constant
|
|
1370
1225
|
value: {
|
|
1371
1226
|
name: "close",
|
|
1372
|
-
label:
|
|
1227
|
+
label: Ce.Close,
|
|
1373
1228
|
icon: "ion-close-outline",
|
|
1374
|
-
renderAs:
|
|
1229
|
+
renderAs: oe.BUTTON,
|
|
1375
1230
|
showLabel: !0,
|
|
1376
1231
|
showIcon: !0
|
|
1377
1232
|
}
|
|
1378
1233
|
});
|
|
1379
|
-
return
|
|
1234
|
+
return t.value = U(U({}, t.value), (a = n == null ? void 0 : n.value) != null ? a : {}), new Re(t);
|
|
1380
1235
|
}
|
|
1381
|
-
static yesAction(
|
|
1382
|
-
var
|
|
1383
|
-
const
|
|
1236
|
+
static yesAction(n) {
|
|
1237
|
+
var a;
|
|
1238
|
+
const t = J(U({}, n != null ? n : {}), {
|
|
1384
1239
|
// any properties in data should overwrite properties in the constant
|
|
1385
1240
|
value: {
|
|
1386
1241
|
name: "yes",
|
|
1387
|
-
label:
|
|
1242
|
+
label: Ce.Yes,
|
|
1388
1243
|
icon: "ion-thumbs-up-outline",
|
|
1389
|
-
renderAs:
|
|
1244
|
+
renderAs: oe.BUTTON,
|
|
1390
1245
|
showLabel: !0,
|
|
1391
1246
|
showIcon: !0
|
|
1392
1247
|
}
|
|
1393
1248
|
});
|
|
1394
|
-
return
|
|
1249
|
+
return t.value = U(U({}, t.value), (a = n == null ? void 0 : n.value) != null ? a : {}), new Re(t);
|
|
1395
1250
|
}
|
|
1396
|
-
static noAction(
|
|
1397
|
-
var
|
|
1398
|
-
const
|
|
1251
|
+
static noAction(n) {
|
|
1252
|
+
var a;
|
|
1253
|
+
const t = J(U({}, n != null ? n : {}), {
|
|
1399
1254
|
// any properties in data should overwrite properties in the constant
|
|
1400
1255
|
value: {
|
|
1401
1256
|
name: "no",
|
|
1402
|
-
label:
|
|
1257
|
+
label: Ce.No,
|
|
1403
1258
|
icon: "ion-thumbs-down-outline",
|
|
1404
|
-
renderAs:
|
|
1259
|
+
renderAs: oe.BUTTON,
|
|
1405
1260
|
showLabel: !0,
|
|
1406
1261
|
showIcon: !0
|
|
1407
1262
|
}
|
|
1408
1263
|
});
|
|
1409
|
-
return
|
|
1264
|
+
return t.value = U(U({}, t.value), (a = n == null ? void 0 : n.value) != null ? a : {}), new Re(t);
|
|
1410
1265
|
}
|
|
1411
1266
|
}
|
|
1412
|
-
const
|
|
1267
|
+
const _l = {
|
|
1413
1268
|
key: 1,
|
|
1414
1269
|
style: { width: "0.5rem" }
|
|
1415
|
-
},
|
|
1270
|
+
}, Bl = { key: 2 }, mt = /* @__PURE__ */ Z({
|
|
1416
1271
|
__name: "df-actions",
|
|
1417
1272
|
props: {
|
|
1418
1273
|
actions: {},
|
|
@@ -1420,55 +1275,55 @@ const pl = {
|
|
|
1420
1275
|
showAsGroup: { default: "no" }
|
|
1421
1276
|
},
|
|
1422
1277
|
setup(e) {
|
|
1423
|
-
const
|
|
1424
|
-
() =>
|
|
1425
|
-
action:
|
|
1426
|
-
},
|
|
1278
|
+
const n = e, t = Tl(), a = C(() => l(n.actions).filter((c) => c.visibility !== He.SUPPRESS)), r = C(
|
|
1279
|
+
() => a.value.map((c) => U({
|
|
1280
|
+
action: c
|
|
1281
|
+
}, ct(c.value, t.value)))
|
|
1427
1282
|
);
|
|
1428
|
-
function
|
|
1429
|
-
if (
|
|
1430
|
-
if (
|
|
1283
|
+
function d(c) {
|
|
1284
|
+
if (c.defaultConfirm) return "primary";
|
|
1285
|
+
if (c.defaultReject) return "secondary";
|
|
1431
1286
|
}
|
|
1432
|
-
return (
|
|
1433
|
-
const
|
|
1434
|
-
return
|
|
1287
|
+
return (c, g) => {
|
|
1288
|
+
const w = P("v-btn");
|
|
1289
|
+
return a.value.length > 0 ? (j(), Q("div", {
|
|
1435
1290
|
key: 0,
|
|
1436
|
-
class:
|
|
1291
|
+
class: ce(["text-end df-actions", {
|
|
1437
1292
|
"button-group": e.showAsGroup === "grouped" || e.showAsGroup === "grouped-no-borders",
|
|
1438
1293
|
"with-border": e.showAsGroup === "grouped"
|
|
1439
1294
|
}])
|
|
1440
1295
|
}, [
|
|
1441
|
-
(
|
|
1296
|
+
(j(!0), Q(Me, null, Ke(r.value, (v, f) => (j(), H(w, X({
|
|
1442
1297
|
key: f,
|
|
1443
|
-
variant:
|
|
1444
|
-
color:
|
|
1445
|
-
disabled: !
|
|
1446
|
-
loading:
|
|
1298
|
+
variant: v.renderAs === l(oe).BUTTON ? "tonal" : "text",
|
|
1299
|
+
color: d(v),
|
|
1300
|
+
disabled: !v.action.effectiveEnabled || v.action.busy,
|
|
1301
|
+
loading: v.action.busy,
|
|
1447
1302
|
elevation: 0,
|
|
1448
1303
|
size: e.buttonSize,
|
|
1449
1304
|
class: {
|
|
1450
|
-
"d-none":
|
|
1451
|
-
invisible:
|
|
1305
|
+
"d-none": v.action.visibility === l(He).HIDDEN,
|
|
1306
|
+
invisible: v.action.visibility === l(He).INVISIBLE
|
|
1452
1307
|
}
|
|
1453
|
-
}, { ref_for: !0 },
|
|
1454
|
-
onClick:
|
|
1308
|
+
}, { ref_for: !0 }, v.passthroughAttrs, {
|
|
1309
|
+
onClick: Pt((h) => v.action.execute(h), ["stop"])
|
|
1455
1310
|
}), {
|
|
1456
|
-
default:
|
|
1457
|
-
|
|
1311
|
+
default: s(() => [
|
|
1312
|
+
v.icon ? (j(), H(l(B), {
|
|
1458
1313
|
key: 0,
|
|
1459
|
-
name:
|
|
1460
|
-
}, null, 8, ["name"])) :
|
|
1461
|
-
|
|
1462
|
-
|
|
1314
|
+
name: v.icon
|
|
1315
|
+
}, null, 8, ["name"])) : G("", !0),
|
|
1316
|
+
v.icon && v.label ? (j(), Q("span", _l)) : G("", !0),
|
|
1317
|
+
v.label ? (j(), Q("span", Bl, K(v.label), 1)) : G("", !0)
|
|
1463
1318
|
]),
|
|
1464
1319
|
_: 2
|
|
1465
1320
|
}, 1040, ["variant", "color", "disabled", "loading", "size", "class", "onClick"]))), 128))
|
|
1466
|
-
], 2)) :
|
|
1321
|
+
], 2)) : G("", !0);
|
|
1467
1322
|
};
|
|
1468
1323
|
}
|
|
1469
|
-
}),
|
|
1324
|
+
}), ft = /* @__PURE__ */ Z({
|
|
1470
1325
|
__name: "df-checkbox",
|
|
1471
|
-
props: /* @__PURE__ */
|
|
1326
|
+
props: /* @__PURE__ */ ve({
|
|
1472
1327
|
allowNull: { type: Boolean },
|
|
1473
1328
|
control: {},
|
|
1474
1329
|
modelValue: {},
|
|
@@ -1484,58 +1339,58 @@ const pl = {
|
|
|
1484
1339
|
passthroughAttrs: {},
|
|
1485
1340
|
density: {},
|
|
1486
1341
|
variant: {}
|
|
1487
|
-
},
|
|
1342
|
+
}, J(U({}, pe), { allowNull: !1 })),
|
|
1488
1343
|
emits: ["update:modelValue", "click:clear"],
|
|
1489
|
-
setup(e, { emit:
|
|
1490
|
-
const
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
),
|
|
1344
|
+
setup(e, { emit: n }) {
|
|
1345
|
+
const t = e, a = n, { densityClass: r, isRendered: d, label: c, showErrors: g, touched: w, value: v, visibilityClass: f, vuetifyBindings: h } = me(
|
|
1346
|
+
t,
|
|
1347
|
+
a
|
|
1348
|
+
), L = C(() => t.allowNull && v.value == null), $ = C({
|
|
1494
1349
|
get() {
|
|
1495
|
-
return
|
|
1350
|
+
return v.value;
|
|
1496
1351
|
},
|
|
1497
1352
|
set() {
|
|
1498
1353
|
}
|
|
1499
1354
|
});
|
|
1500
|
-
function
|
|
1501
|
-
const
|
|
1502
|
-
|
|
1355
|
+
function A() {
|
|
1356
|
+
const V = qt(v.value);
|
|
1357
|
+
V === !0 ? v.value = t.allowNull ? null : !1 : v.value = V === !1;
|
|
1503
1358
|
}
|
|
1504
|
-
return (
|
|
1505
|
-
const
|
|
1506
|
-
return
|
|
1359
|
+
return (V, M) => {
|
|
1360
|
+
const I = P("v-checkbox");
|
|
1361
|
+
return l(d) ? (j(), H(I, X({
|
|
1507
1362
|
key: 0,
|
|
1508
|
-
modelValue:
|
|
1509
|
-
"onUpdate:modelValue":
|
|
1363
|
+
modelValue: $.value,
|
|
1364
|
+
"onUpdate:modelValue": M[0] || (M[0] = (b) => $.value = b),
|
|
1510
1365
|
density: "compact",
|
|
1511
|
-
class: [
|
|
1512
|
-
indeterminate:
|
|
1366
|
+
class: [l(r), l(f)],
|
|
1367
|
+
indeterminate: L.value,
|
|
1513
1368
|
"false-value": !1,
|
|
1514
1369
|
"true-value": !0
|
|
1515
|
-
},
|
|
1516
|
-
onChange:
|
|
1517
|
-
onBlur:
|
|
1370
|
+
}, l(h), {
|
|
1371
|
+
onChange: A,
|
|
1372
|
+
onBlur: M[1] || (M[1] = (b) => w.value = !0)
|
|
1518
1373
|
}), {
|
|
1519
|
-
label:
|
|
1520
|
-
|
|
1374
|
+
label: s((b) => [
|
|
1375
|
+
i(l(de), {
|
|
1521
1376
|
"allow-wrap": !0,
|
|
1522
|
-
data:
|
|
1523
|
-
label:
|
|
1377
|
+
data: b,
|
|
1378
|
+
label: l(c)
|
|
1524
1379
|
}, null, 8, ["data", "label"])
|
|
1525
1380
|
]),
|
|
1526
|
-
message:
|
|
1527
|
-
|
|
1528
|
-
message:
|
|
1529
|
-
errors:
|
|
1381
|
+
message: s(({ message: b }) => [
|
|
1382
|
+
i(l(ue), {
|
|
1383
|
+
message: b,
|
|
1384
|
+
errors: l(g)
|
|
1530
1385
|
}, null, 8, ["message", "errors"])
|
|
1531
1386
|
]),
|
|
1532
1387
|
_: 1
|
|
1533
|
-
}, 16, ["modelValue", "class", "indeterminate"])) :
|
|
1388
|
+
}, 16, ["modelValue", "class", "indeterminate"])) : G("", !0);
|
|
1534
1389
|
};
|
|
1535
1390
|
}
|
|
1536
|
-
}),
|
|
1391
|
+
}), vt = /* @__PURE__ */ Z({
|
|
1537
1392
|
__name: "df-color",
|
|
1538
|
-
props: /* @__PURE__ */
|
|
1393
|
+
props: /* @__PURE__ */ ve({
|
|
1539
1394
|
allowNull: { type: Boolean },
|
|
1540
1395
|
control: {},
|
|
1541
1396
|
modelValue: {},
|
|
@@ -1551,56 +1406,56 @@ const pl = {
|
|
|
1551
1406
|
passthroughAttrs: {},
|
|
1552
1407
|
density: {},
|
|
1553
1408
|
variant: {}
|
|
1554
|
-
},
|
|
1409
|
+
}, J(U({}, pe), { allowNull: !1 })),
|
|
1555
1410
|
emits: ["update:modelValue", "click:clear"],
|
|
1556
|
-
setup(e, { emit:
|
|
1557
|
-
const
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
),
|
|
1561
|
-
(
|
|
1411
|
+
setup(e, { emit: n }) {
|
|
1412
|
+
const t = e, a = n, { densityClass: r, isRendered: d, label: c, showErrors: g, touched: w, value: v, visibilityClass: f, vuetifyBindings: h } = me(
|
|
1413
|
+
t,
|
|
1414
|
+
a
|
|
1415
|
+
), L = F(!1), $ = C(() => [
|
|
1416
|
+
(A) => t.control || !A && t.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(A) ? !0 : "Not a valid hex string."
|
|
1562
1417
|
]);
|
|
1563
|
-
return (
|
|
1564
|
-
const
|
|
1565
|
-
return
|
|
1418
|
+
return (A, V) => {
|
|
1419
|
+
const M = P("v-color-picker"), I = P("v-menu"), b = P("v-text-field");
|
|
1420
|
+
return l(d) ? (j(), H(b, X({
|
|
1566
1421
|
key: 0,
|
|
1567
|
-
modelValue:
|
|
1568
|
-
"onUpdate:modelValue":
|
|
1569
|
-
class: [
|
|
1422
|
+
modelValue: l(v),
|
|
1423
|
+
"onUpdate:modelValue": V[2] || (V[2] = (D) => ke(v) ? v.value = D : null),
|
|
1424
|
+
class: [l(r), l(f)],
|
|
1570
1425
|
clearable: e.allowNull,
|
|
1571
1426
|
type: "text",
|
|
1572
|
-
rules:
|
|
1573
|
-
},
|
|
1574
|
-
onBlur:
|
|
1427
|
+
rules: $.value
|
|
1428
|
+
}, l(h), {
|
|
1429
|
+
onBlur: V[3] || (V[3] = (D) => w.value = !0)
|
|
1575
1430
|
}), {
|
|
1576
|
-
label:
|
|
1577
|
-
|
|
1578
|
-
data:
|
|
1579
|
-
label:
|
|
1431
|
+
label: s((D) => [
|
|
1432
|
+
i(l(de), {
|
|
1433
|
+
data: D,
|
|
1434
|
+
label: l(c)
|
|
1580
1435
|
}, null, 8, ["data", "label"])
|
|
1581
1436
|
]),
|
|
1582
|
-
message:
|
|
1583
|
-
|
|
1584
|
-
message:
|
|
1585
|
-
errors:
|
|
1437
|
+
message: s(({ message: D }) => [
|
|
1438
|
+
i(l(ue), {
|
|
1439
|
+
message: D,
|
|
1440
|
+
errors: l(g)
|
|
1586
1441
|
}, null, 8, ["message", "errors"])
|
|
1587
1442
|
]),
|
|
1588
|
-
"prepend-inner":
|
|
1589
|
-
|
|
1590
|
-
style:
|
|
1443
|
+
"prepend-inner": s(() => [
|
|
1444
|
+
ae("div", {
|
|
1445
|
+
style: Nt([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: l(v) }])
|
|
1591
1446
|
}, null, 4)
|
|
1592
1447
|
]),
|
|
1593
|
-
default:
|
|
1594
|
-
I
|
|
1595
|
-
modelValue:
|
|
1596
|
-
"onUpdate:modelValue":
|
|
1448
|
+
default: s(() => [
|
|
1449
|
+
i(I, {
|
|
1450
|
+
modelValue: L.value,
|
|
1451
|
+
"onUpdate:modelValue": V[1] || (V[1] = (D) => L.value = D),
|
|
1597
1452
|
"close-on-content-click": !1,
|
|
1598
1453
|
activator: "parent"
|
|
1599
1454
|
}, {
|
|
1600
|
-
default:
|
|
1601
|
-
|
|
1602
|
-
modelValue:
|
|
1603
|
-
"onUpdate:modelValue":
|
|
1455
|
+
default: s(() => [
|
|
1456
|
+
i(M, {
|
|
1457
|
+
modelValue: l(v),
|
|
1458
|
+
"onUpdate:modelValue": V[0] || (V[0] = (D) => ke(v) ? v.value = D : null),
|
|
1604
1459
|
mode: "hexa"
|
|
1605
1460
|
}, null, 8, ["modelValue"])
|
|
1606
1461
|
]),
|
|
@@ -1608,12 +1463,12 @@ const pl = {
|
|
|
1608
1463
|
}, 8, ["modelValue"])
|
|
1609
1464
|
]),
|
|
1610
1465
|
_: 1
|
|
1611
|
-
}, 16, ["modelValue", "class", "clearable", "rules"])) :
|
|
1466
|
+
}, 16, ["modelValue", "class", "clearable", "rules"])) : G("", !0);
|
|
1612
1467
|
};
|
|
1613
1468
|
}
|
|
1614
|
-
}),
|
|
1469
|
+
}), pt = /* @__PURE__ */ Z({
|
|
1615
1470
|
__name: "df-datetime",
|
|
1616
|
-
props: /* @__PURE__ */
|
|
1471
|
+
props: /* @__PURE__ */ ve({
|
|
1617
1472
|
inputType: {},
|
|
1618
1473
|
displayFormatDate: {},
|
|
1619
1474
|
displayFormatTime: {},
|
|
@@ -1632,157 +1487,157 @@ const pl = {
|
|
|
1632
1487
|
passthroughAttrs: {},
|
|
1633
1488
|
density: {},
|
|
1634
1489
|
variant: {}
|
|
1635
|
-
},
|
|
1490
|
+
}, J(U({}, pe), {
|
|
1636
1491
|
inputType: "datetime",
|
|
1637
1492
|
displayFormatDate: "P",
|
|
1638
1493
|
displayFormatTime: "p"
|
|
1639
1494
|
})),
|
|
1640
1495
|
emits: ["update:modelValue", "click:clear"],
|
|
1641
|
-
setup(e, { emit:
|
|
1642
|
-
const
|
|
1643
|
-
var
|
|
1644
|
-
return (
|
|
1645
|
-
}),
|
|
1646
|
-
var
|
|
1647
|
-
return (
|
|
1648
|
-
}), { density:
|
|
1496
|
+
setup(e, { emit: n }) {
|
|
1497
|
+
const t = e, a = n, r = C(() => {
|
|
1498
|
+
var y;
|
|
1499
|
+
return (y = t.locale) != null ? y : l(wl.dateTimeLocale);
|
|
1500
|
+
}), d = C(() => {
|
|
1501
|
+
var y, o;
|
|
1502
|
+
return (o = (y = r.value.options) == null ? void 0 : y.weekStartsOn) != null ? o : 1;
|
|
1503
|
+
}), { density: c, densityClass: g, touched: w, value: v, vuetifyBindings: f } = me(t, a), { inputType: h, displayFormatDate: L, displayFormatTime: $ } = Ee(t), A = F(""), V = C({
|
|
1649
1504
|
get() {
|
|
1650
|
-
return
|
|
1505
|
+
return l(A) === "date";
|
|
1651
1506
|
},
|
|
1652
|
-
set(
|
|
1653
|
-
|
|
1507
|
+
set(y) {
|
|
1508
|
+
A.value = y ? "date" : "";
|
|
1654
1509
|
}
|
|
1655
|
-
}),
|
|
1510
|
+
}), M = C({
|
|
1656
1511
|
get() {
|
|
1657
|
-
return
|
|
1512
|
+
return l(A) === "time";
|
|
1658
1513
|
},
|
|
1659
|
-
set(
|
|
1660
|
-
|
|
1514
|
+
set(y) {
|
|
1515
|
+
A.value = y ? "time" : "";
|
|
1661
1516
|
}
|
|
1662
|
-
}),
|
|
1663
|
-
function
|
|
1664
|
-
if (
|
|
1665
|
-
|
|
1666
|
-
else if (
|
|
1667
|
-
if (
|
|
1668
|
-
|
|
1517
|
+
}), I = (y) => `${je(y, "yyyy-MM-dd")}T${je(y, "HH:mm")}:00`, b = F(null);
|
|
1518
|
+
function D(y, o) {
|
|
1519
|
+
if (y == null)
|
|
1520
|
+
b.value = null;
|
|
1521
|
+
else if (o === -1)
|
|
1522
|
+
if (l(h) === "time")
|
|
1523
|
+
b.value = I(/* @__PURE__ */ new Date()), D(`T${y}`, 1);
|
|
1669
1524
|
else {
|
|
1670
|
-
const
|
|
1671
|
-
|
|
1525
|
+
const u = I(new Date(y));
|
|
1526
|
+
D(u, 0), D(u, 1);
|
|
1672
1527
|
}
|
|
1673
1528
|
else {
|
|
1674
|
-
|
|
1675
|
-
const
|
|
1676
|
-
|
|
1529
|
+
b.value == null && (b.value = I(/* @__PURE__ */ new Date()));
|
|
1530
|
+
const u = b.value.split(/[TZ]/g), m = y.split(/[TZ]/g);
|
|
1531
|
+
u[o] = m[o], b.value = I(/* @__PURE__ */ new Date(`${u[0]}T${u[1].split(".")[0]}`)), l(h) === "date" ? v.value = u[0] : l(h) === "time" ? v.value = u[1] : v.value = l(b) + je(/* @__PURE__ */ new Date(), "XXX");
|
|
1677
1532
|
}
|
|
1678
1533
|
}
|
|
1679
|
-
|
|
1680
|
-
const
|
|
1534
|
+
se(v, (y) => D(y, -1), { immediate: !0 });
|
|
1535
|
+
const O = C({
|
|
1681
1536
|
get() {
|
|
1682
|
-
const
|
|
1683
|
-
if (
|
|
1684
|
-
const
|
|
1685
|
-
return Number.isNaN(
|
|
1537
|
+
const y = l(b);
|
|
1538
|
+
if (y == null) return null;
|
|
1539
|
+
const o = new Date(y);
|
|
1540
|
+
return Number.isNaN(o.getTime()) ? null : o;
|
|
1686
1541
|
},
|
|
1687
|
-
set(
|
|
1688
|
-
|
|
1542
|
+
set(y) {
|
|
1543
|
+
D(I(y), 0);
|
|
1689
1544
|
}
|
|
1690
|
-
}),
|
|
1545
|
+
}), E = C({
|
|
1691
1546
|
get() {
|
|
1692
|
-
const
|
|
1693
|
-
return
|
|
1547
|
+
const y = l(b);
|
|
1548
|
+
return y == null ? "" : y.split(/[TZ]/g)[1].split(".")[0];
|
|
1694
1549
|
},
|
|
1695
|
-
set(
|
|
1696
|
-
|
|
1550
|
+
set(y) {
|
|
1551
|
+
D(`T${y}`, 1);
|
|
1697
1552
|
}
|
|
1698
|
-
}),
|
|
1553
|
+
}), q = C({
|
|
1699
1554
|
get() {
|
|
1700
|
-
const
|
|
1701
|
-
return
|
|
1555
|
+
const y = l(O);
|
|
1556
|
+
return y == null ? "" : je(y, l(L), { locale: r.value });
|
|
1702
1557
|
},
|
|
1703
|
-
set(
|
|
1558
|
+
set(y) {
|
|
1704
1559
|
try {
|
|
1705
|
-
const
|
|
1706
|
-
|
|
1707
|
-
} catch (
|
|
1708
|
-
console.error(
|
|
1560
|
+
const o = Gt(y, l(L), /* @__PURE__ */ new Date(), { locale: r.value });
|
|
1561
|
+
D(I(o), 0);
|
|
1562
|
+
} catch (o) {
|
|
1563
|
+
console.error(o);
|
|
1709
1564
|
}
|
|
1710
1565
|
}
|
|
1711
|
-
}),
|
|
1566
|
+
}), S = C({
|
|
1712
1567
|
get() {
|
|
1713
|
-
const
|
|
1714
|
-
return
|
|
1568
|
+
const y = l(O);
|
|
1569
|
+
return y == null ? "" : je(y, l($), { locale: r.value });
|
|
1715
1570
|
},
|
|
1716
|
-
set(
|
|
1717
|
-
const
|
|
1718
|
-
if (
|
|
1719
|
-
let
|
|
1720
|
-
const
|
|
1721
|
-
et(
|
|
1571
|
+
set(y) {
|
|
1572
|
+
const o = y.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
1573
|
+
if (o == null) return;
|
|
1574
|
+
let u = Ze(o[1]);
|
|
1575
|
+
const m = Ze(o[2]);
|
|
1576
|
+
et(u) || et(m) || (o[3] && o[3].toLowerCase() === "pm" && u < 13 && (u += 12), D(`T${u.toString().padStart(2, "0")}:${m.toString().padStart(2, "0")}:00`, 1));
|
|
1722
1577
|
}
|
|
1723
1578
|
});
|
|
1724
|
-
return (
|
|
1725
|
-
const
|
|
1726
|
-
return
|
|
1727
|
-
class:
|
|
1579
|
+
return (y, o) => {
|
|
1580
|
+
const u = P("v-date-picker"), m = P("v-confirm-edit"), x = P("v-menu"), N = P("v-text-field"), W = P("v-time-picker");
|
|
1581
|
+
return j(), H(l(Xe), X(t, {
|
|
1582
|
+
class: l(g),
|
|
1728
1583
|
clearable: e.clearable,
|
|
1729
|
-
"onClick:clear":
|
|
1730
|
-
onBlur:
|
|
1584
|
+
"onClick:clear": o[14] || (o[14] = (te) => v.value = null),
|
|
1585
|
+
onBlur: o[15] || (o[15] = (te) => w.value = !0)
|
|
1731
1586
|
}), {
|
|
1732
|
-
default:
|
|
1733
|
-
|
|
1734
|
-
class:
|
|
1587
|
+
default: s((te) => [
|
|
1588
|
+
ae("div", {
|
|
1589
|
+
class: ce([
|
|
1735
1590
|
"d-flex",
|
|
1736
1591
|
"w-100",
|
|
1737
|
-
["plain", "underlined"].includes(
|
|
1592
|
+
["plain", "underlined"].includes(l(f).variant) ? void 0 : "ml-4",
|
|
1738
1593
|
"df-input-wrapper",
|
|
1739
|
-
|
|
1594
|
+
l(c)
|
|
1740
1595
|
])
|
|
1741
1596
|
}, [
|
|
1742
|
-
["date", "datetime"].includes(
|
|
1597
|
+
["date", "datetime"].includes(l(h)) ? (j(), H(N, X({
|
|
1743
1598
|
key: 0,
|
|
1744
|
-
modelValue:
|
|
1745
|
-
"onUpdate:modelValue":
|
|
1599
|
+
modelValue: q.value,
|
|
1600
|
+
"onUpdate:modelValue": o[4] || (o[4] = (_) => q.value = _),
|
|
1746
1601
|
style: { "flex-grow": "4" },
|
|
1747
1602
|
density: "compact",
|
|
1748
1603
|
variant: "plain",
|
|
1749
1604
|
clearable: !1,
|
|
1750
1605
|
"hide-details": !0,
|
|
1751
|
-
readonly:
|
|
1752
|
-
disabled:
|
|
1753
|
-
name: `${
|
|
1754
|
-
placeholder:
|
|
1606
|
+
readonly: l(f).readonly,
|
|
1607
|
+
disabled: l(f).disabled,
|
|
1608
|
+
name: `${l(f).name}-date`,
|
|
1609
|
+
placeholder: l(f).placeholder
|
|
1755
1610
|
}, e.passthroughAttrs, {
|
|
1756
|
-
onClick:
|
|
1757
|
-
onKeydown:
|
|
1758
|
-
onFocus: (
|
|
1759
|
-
onBlur: (
|
|
1611
|
+
onClick: o[5] || (o[5] = (_) => A.value = "date"),
|
|
1612
|
+
onKeydown: o[6] || (o[6] = Se((_) => A.value = "date", ["space"])),
|
|
1613
|
+
onFocus: (_) => te.focus(),
|
|
1614
|
+
onBlur: (_) => te.blur()
|
|
1760
1615
|
}), {
|
|
1761
|
-
default:
|
|
1762
|
-
|
|
1763
|
-
modelValue:
|
|
1764
|
-
"onUpdate:modelValue":
|
|
1616
|
+
default: s(() => [
|
|
1617
|
+
i(x, {
|
|
1618
|
+
modelValue: V.value,
|
|
1619
|
+
"onUpdate:modelValue": o[3] || (o[3] = (_) => V.value = _),
|
|
1765
1620
|
"close-on-content-click": !1,
|
|
1766
1621
|
activator: "parent"
|
|
1767
1622
|
}, {
|
|
1768
|
-
default:
|
|
1769
|
-
|
|
1770
|
-
modelValue:
|
|
1771
|
-
"onUpdate:modelValue":
|
|
1772
|
-
onCancel:
|
|
1773
|
-
onSave:
|
|
1623
|
+
default: s(() => [
|
|
1624
|
+
i(m, {
|
|
1625
|
+
modelValue: O.value,
|
|
1626
|
+
"onUpdate:modelValue": o[0] || (o[0] = (_) => O.value = _),
|
|
1627
|
+
onCancel: o[1] || (o[1] = (_) => A.value = ""),
|
|
1628
|
+
onSave: o[2] || (o[2] = (_) => A.value = "")
|
|
1774
1629
|
}, {
|
|
1775
|
-
default:
|
|
1776
|
-
|
|
1777
|
-
modelValue:
|
|
1778
|
-
"onUpdate:modelValue": (be) =>
|
|
1630
|
+
default: s(({ model: _, actions: ie }) => [
|
|
1631
|
+
i(u, {
|
|
1632
|
+
modelValue: _.value,
|
|
1633
|
+
"onUpdate:modelValue": (be) => _.value = be,
|
|
1779
1634
|
"hide-header": !0,
|
|
1780
|
-
"first-day-of-week":
|
|
1635
|
+
"first-day-of-week": d.value,
|
|
1781
1636
|
"show-adjacent-months": !0,
|
|
1782
1637
|
"show-week": !0
|
|
1783
1638
|
}, {
|
|
1784
|
-
actions:
|
|
1785
|
-
(
|
|
1639
|
+
actions: s(() => [
|
|
1640
|
+
(j(), H(Ne(ie)))
|
|
1786
1641
|
]),
|
|
1787
1642
|
_: 2
|
|
1788
1643
|
}, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
|
|
@@ -1794,49 +1649,49 @@ const pl = {
|
|
|
1794
1649
|
}, 8, ["modelValue"])
|
|
1795
1650
|
]),
|
|
1796
1651
|
_: 1
|
|
1797
|
-
}, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) :
|
|
1798
|
-
["time", "datetime"].includes(
|
|
1652
|
+
}, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : G("", !0),
|
|
1653
|
+
["time", "datetime"].includes(l(h)) ? (j(), H(N, X({
|
|
1799
1654
|
key: 1,
|
|
1800
|
-
modelValue:
|
|
1801
|
-
"onUpdate:modelValue":
|
|
1655
|
+
modelValue: S.value,
|
|
1656
|
+
"onUpdate:modelValue": o[11] || (o[11] = (_) => S.value = _),
|
|
1802
1657
|
style: { "flex-grow": "3" },
|
|
1803
1658
|
density: "compact",
|
|
1804
1659
|
variant: "plain",
|
|
1805
1660
|
clearable: !1,
|
|
1806
1661
|
"hide-details": !0,
|
|
1807
|
-
readonly:
|
|
1808
|
-
disabled:
|
|
1809
|
-
name: `${
|
|
1810
|
-
placeholder:
|
|
1662
|
+
readonly: l(f).readonly,
|
|
1663
|
+
disabled: l(f).disabled,
|
|
1664
|
+
name: `${l(f).name}-time`,
|
|
1665
|
+
placeholder: l(h) === "time" ? l(f).placeholder : void 0
|
|
1811
1666
|
}, e.passthroughAttrs, {
|
|
1812
|
-
onClick:
|
|
1813
|
-
onKeydown:
|
|
1814
|
-
onFocus: (
|
|
1815
|
-
onBlur: (
|
|
1667
|
+
onClick: o[12] || (o[12] = (_) => A.value = "time"),
|
|
1668
|
+
onKeydown: o[13] || (o[13] = Se((_) => A.value = "time", ["space"])),
|
|
1669
|
+
onFocus: (_) => te.focus(),
|
|
1670
|
+
onBlur: (_) => te.blur()
|
|
1816
1671
|
}), {
|
|
1817
|
-
default:
|
|
1818
|
-
|
|
1819
|
-
modelValue:
|
|
1820
|
-
"onUpdate:modelValue":
|
|
1672
|
+
default: s(() => [
|
|
1673
|
+
i(x, {
|
|
1674
|
+
modelValue: M.value,
|
|
1675
|
+
"onUpdate:modelValue": o[10] || (o[10] = (_) => M.value = _),
|
|
1821
1676
|
"close-on-content-click": !1,
|
|
1822
1677
|
activator: "parent"
|
|
1823
1678
|
}, {
|
|
1824
|
-
default:
|
|
1825
|
-
|
|
1826
|
-
modelValue:
|
|
1827
|
-
"onUpdate:modelValue":
|
|
1828
|
-
onCancel:
|
|
1829
|
-
onSave:
|
|
1679
|
+
default: s(() => [
|
|
1680
|
+
i(m, {
|
|
1681
|
+
modelValue: E.value,
|
|
1682
|
+
"onUpdate:modelValue": o[7] || (o[7] = (_) => E.value = _),
|
|
1683
|
+
onCancel: o[8] || (o[8] = (_) => A.value = ""),
|
|
1684
|
+
onSave: o[9] || (o[9] = (_) => A.value = "")
|
|
1830
1685
|
}, {
|
|
1831
|
-
default:
|
|
1832
|
-
|
|
1833
|
-
modelValue:
|
|
1834
|
-
"onUpdate:modelValue": (be) =>
|
|
1686
|
+
default: s(({ model: _, actions: ie }) => [
|
|
1687
|
+
i(W, {
|
|
1688
|
+
modelValue: _.value,
|
|
1689
|
+
"onUpdate:modelValue": (be) => _.value = be,
|
|
1835
1690
|
"hide-header": !0,
|
|
1836
1691
|
format: "24hr"
|
|
1837
1692
|
}, {
|
|
1838
|
-
actions:
|
|
1839
|
-
(
|
|
1693
|
+
actions: s(() => [
|
|
1694
|
+
(j(), H(Ne(ie)))
|
|
1840
1695
|
]),
|
|
1841
1696
|
_: 2
|
|
1842
1697
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1848,16 +1703,16 @@ const pl = {
|
|
|
1848
1703
|
}, 8, ["modelValue"])
|
|
1849
1704
|
]),
|
|
1850
1705
|
_: 1
|
|
1851
|
-
}, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) :
|
|
1706
|
+
}, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : G("", !0)
|
|
1852
1707
|
], 2)
|
|
1853
1708
|
]),
|
|
1854
1709
|
_: 1
|
|
1855
1710
|
}, 16, ["class", "clearable"]);
|
|
1856
1711
|
};
|
|
1857
1712
|
}
|
|
1858
|
-
}),
|
|
1713
|
+
}), bt = /* @__PURE__ */ Z({
|
|
1859
1714
|
__name: "df-file",
|
|
1860
|
-
props: /* @__PURE__ */
|
|
1715
|
+
props: /* @__PURE__ */ ve({
|
|
1861
1716
|
comms: {},
|
|
1862
1717
|
control: {},
|
|
1863
1718
|
modelValue: {},
|
|
@@ -1873,82 +1728,82 @@ const pl = {
|
|
|
1873
1728
|
passthroughAttrs: {},
|
|
1874
1729
|
density: {},
|
|
1875
1730
|
variant: {}
|
|
1876
|
-
},
|
|
1731
|
+
}, pe),
|
|
1877
1732
|
emits: ["update:modelValue", "click:clear"],
|
|
1878
|
-
setup(e, { emit:
|
|
1879
|
-
const
|
|
1880
|
-
function
|
|
1881
|
-
|
|
1733
|
+
setup(e, { emit: n }) {
|
|
1734
|
+
const t = e, a = n, { density: r, densityClass: d, touched: c, value: g, vuetifyBindings: w } = me(t, a), v = F(null), f = F(null), h = F(0), L = F(Math.round(Math.random() * 1e3)), $ = F(), A = C(() => f.value && h.value < 100), V = C(() => !$.value && g.value ? t.modelValue : "");
|
|
1735
|
+
function M() {
|
|
1736
|
+
v.value && window.clearInterval(v.value);
|
|
1882
1737
|
}
|
|
1883
|
-
function
|
|
1884
|
-
|
|
1885
|
-
|
|
1738
|
+
function I() {
|
|
1739
|
+
M(), v.value = window.setInterval(() => {
|
|
1740
|
+
g.value && t.comms.touch(g.value);
|
|
1886
1741
|
}, 60 * 1e3);
|
|
1887
1742
|
}
|
|
1888
|
-
|
|
1889
|
-
|
|
1743
|
+
ot(() => M()), se(g, (E) => {
|
|
1744
|
+
E ? I() : M();
|
|
1890
1745
|
});
|
|
1891
|
-
function
|
|
1892
|
-
return
|
|
1893
|
-
|
|
1746
|
+
function b() {
|
|
1747
|
+
return Te(this, null, function* () {
|
|
1748
|
+
g.value && (yield t.comms.delete(g.value)), g.value = null, h.value = 0, L.value = Math.round(Math.random() * 1e3), f.value = null, $.value = null, M();
|
|
1894
1749
|
});
|
|
1895
1750
|
}
|
|
1896
|
-
function
|
|
1897
|
-
return
|
|
1898
|
-
|
|
1751
|
+
function D(E) {
|
|
1752
|
+
return Te(this, null, function* () {
|
|
1753
|
+
h.value = -1, f.value = E;
|
|
1899
1754
|
try {
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
}),
|
|
1903
|
-
} catch (
|
|
1904
|
-
throw
|
|
1755
|
+
g.value = yield t.comms.upload(E, (q, S) => {
|
|
1756
|
+
h.value = Math.round(q * 100 / S);
|
|
1757
|
+
}), h.value = 100, I();
|
|
1758
|
+
} catch (q) {
|
|
1759
|
+
throw h.value = 0, f.value = null, L.value = Math.round(Math.random() * 1e3), $.value = null, q;
|
|
1905
1760
|
}
|
|
1906
1761
|
});
|
|
1907
1762
|
}
|
|
1908
|
-
function
|
|
1909
|
-
|
|
1763
|
+
function O(E) {
|
|
1764
|
+
E && (Array.isArray(E) ? console.error("Uploading multiple files not supported right now") : D(E));
|
|
1910
1765
|
}
|
|
1911
|
-
return (
|
|
1912
|
-
const
|
|
1913
|
-
return
|
|
1914
|
-
class:
|
|
1766
|
+
return (E, q) => {
|
|
1767
|
+
const S = P("v-progress-linear"), y = P("v-file-input");
|
|
1768
|
+
return j(), H(l(Xe), X(J(U({}, t), { loading: A.value }), {
|
|
1769
|
+
class: l(d),
|
|
1915
1770
|
clearable: "",
|
|
1916
|
-
"onClick:clear":
|
|
1917
|
-
onBlur:
|
|
1771
|
+
"onClick:clear": b,
|
|
1772
|
+
onBlur: q[1] || (q[1] = (o) => c.value = !0)
|
|
1918
1773
|
}), {
|
|
1919
|
-
"prepend-inner":
|
|
1920
|
-
|
|
1774
|
+
"prepend-inner": s(() => [
|
|
1775
|
+
i(l(B), { name: "mdi-paperclip" })
|
|
1921
1776
|
]),
|
|
1922
|
-
loader:
|
|
1923
|
-
f.value &&
|
|
1777
|
+
loader: s(() => [
|
|
1778
|
+
f.value && h.value < 100 ? (j(), H(S, {
|
|
1924
1779
|
key: 0,
|
|
1925
|
-
"model-value":
|
|
1926
|
-
indeterminate:
|
|
1927
|
-
}, null, 8, ["model-value", "indeterminate"])) :
|
|
1780
|
+
"model-value": h.value,
|
|
1781
|
+
indeterminate: h.value === -1
|
|
1782
|
+
}, null, 8, ["model-value", "indeterminate"])) : G("", !0)
|
|
1928
1783
|
]),
|
|
1929
|
-
default:
|
|
1930
|
-
|
|
1931
|
-
class:
|
|
1784
|
+
default: s((o) => [
|
|
1785
|
+
ae("div", {
|
|
1786
|
+
class: ce(["d-flex w-100 position-relative df-input-wrapper", l(r)])
|
|
1932
1787
|
}, [
|
|
1933
|
-
|
|
1934
|
-
modelValue:
|
|
1935
|
-
"onUpdate:modelValue":
|
|
1936
|
-
label:
|
|
1788
|
+
i(y, X({
|
|
1789
|
+
modelValue: $.value,
|
|
1790
|
+
"onUpdate:modelValue": q[0] || (q[0] = (u) => $.value = u),
|
|
1791
|
+
label: V.value,
|
|
1937
1792
|
density: "compact",
|
|
1938
1793
|
variant: "plain",
|
|
1939
|
-
readonly:
|
|
1940
|
-
disabled:
|
|
1941
|
-
name:
|
|
1794
|
+
readonly: l(w).readonly,
|
|
1795
|
+
disabled: l(w).disabled,
|
|
1796
|
+
name: l(w).name,
|
|
1942
1797
|
"hide-details": !0,
|
|
1943
1798
|
"show-size": !0,
|
|
1944
1799
|
multiple: !1,
|
|
1945
|
-
style: f.value &&
|
|
1800
|
+
style: f.value && h.value < 100 ? "visibility: hidden" : "",
|
|
1946
1801
|
clearable: !1
|
|
1947
1802
|
}, e.passthroughAttrs, {
|
|
1948
1803
|
"prepend-icon": "",
|
|
1949
|
-
"onUpdate:modelValue":
|
|
1950
|
-
onFocus: (
|
|
1951
|
-
onBlur: (
|
|
1804
|
+
"onUpdate:modelValue": O,
|
|
1805
|
+
onFocus: (u) => o.focus(),
|
|
1806
|
+
onBlur: (u) => o.blur()
|
|
1952
1807
|
}), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
|
|
1953
1808
|
], 2)
|
|
1954
1809
|
]),
|
|
@@ -1956,9 +1811,9 @@ const pl = {
|
|
|
1956
1811
|
}, 16, ["class"]);
|
|
1957
1812
|
};
|
|
1958
1813
|
}
|
|
1959
|
-
}),
|
|
1814
|
+
}), ht = /* @__PURE__ */ Z({
|
|
1960
1815
|
__name: "df-input",
|
|
1961
|
-
props: /* @__PURE__ */
|
|
1816
|
+
props: /* @__PURE__ */ ve({
|
|
1962
1817
|
inputType: {},
|
|
1963
1818
|
precision: {},
|
|
1964
1819
|
step: {},
|
|
@@ -1978,7 +1833,7 @@ const pl = {
|
|
|
1978
1833
|
passthroughAttrs: {},
|
|
1979
1834
|
density: {},
|
|
1980
1835
|
variant: {}
|
|
1981
|
-
},
|
|
1836
|
+
}, J(U({}, pe), {
|
|
1982
1837
|
inputType: "text",
|
|
1983
1838
|
precision: null,
|
|
1984
1839
|
step: void 0,
|
|
@@ -1986,235 +1841,1350 @@ const pl = {
|
|
|
1986
1841
|
max: void 0
|
|
1987
1842
|
})),
|
|
1988
1843
|
emits: ["update:modelValue", "click:clear"],
|
|
1989
|
-
setup(e, { emit:
|
|
1990
|
-
const
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
), { inputType:
|
|
1994
|
-
() =>
|
|
1844
|
+
setup(e, { emit: n }) {
|
|
1845
|
+
const t = e, a = n, { densityClass: r, isRendered: d, label: c, showErrors: g, touched: w, value: v, visibilityClass: f, vuetifyBindings: h } = me(
|
|
1846
|
+
t,
|
|
1847
|
+
a
|
|
1848
|
+
), { inputType: L, max: $, min: A, precision: V, step: M } = Ee(t), I = C(() => L.value === "number"), b = C(
|
|
1849
|
+
() => I.value ? { min: l(A), max: l($), precision: l(V), step: l(M) } : {}
|
|
1995
1850
|
);
|
|
1996
|
-
return (
|
|
1997
|
-
const
|
|
1998
|
-
return
|
|
1851
|
+
return (D, O) => {
|
|
1852
|
+
const E = P("v-text-field"), q = P("v-number-input");
|
|
1853
|
+
return l(d) ? (j(), Q("div", {
|
|
1999
1854
|
key: 0,
|
|
2000
|
-
class:
|
|
1855
|
+
class: ce(["df-input-container", [l(r), l(f)]])
|
|
2001
1856
|
}, [
|
|
2002
|
-
|
|
1857
|
+
I.value ? (j(), H(q, X({
|
|
2003
1858
|
key: 1,
|
|
2004
|
-
modelValue:
|
|
2005
|
-
"onUpdate:modelValue":
|
|
1859
|
+
modelValue: l(v),
|
|
1860
|
+
"onUpdate:modelValue": O[2] || (O[2] = (S) => ke(v) ? v.value = S : null),
|
|
2006
1861
|
density: "compact",
|
|
2007
1862
|
"control-variant": "stacked"
|
|
2008
|
-
},
|
|
2009
|
-
label:
|
|
2010
|
-
|
|
2011
|
-
data:
|
|
2012
|
-
label:
|
|
1863
|
+
}, U(U({}, l(h)), b.value)), {
|
|
1864
|
+
label: s((S) => [
|
|
1865
|
+
i(l(de), {
|
|
1866
|
+
data: S,
|
|
1867
|
+
label: l(c)
|
|
2013
1868
|
}, null, 8, ["data", "label"])
|
|
2014
1869
|
]),
|
|
2015
|
-
message:
|
|
2016
|
-
|
|
2017
|
-
message:
|
|
2018
|
-
errors:
|
|
1870
|
+
message: s(({ message: S }) => [
|
|
1871
|
+
i(l(ue), {
|
|
1872
|
+
message: S,
|
|
1873
|
+
errors: l(g)
|
|
2019
1874
|
}, null, 8, ["message", "errors"])
|
|
2020
1875
|
]),
|
|
2021
1876
|
_: 1
|
|
2022
|
-
}, 16, ["modelValue"])) : (
|
|
1877
|
+
}, 16, ["modelValue"])) : (j(), H(E, X({
|
|
2023
1878
|
key: 0,
|
|
2024
|
-
modelValue:
|
|
2025
|
-
"onUpdate:modelValue":
|
|
2026
|
-
type:
|
|
2027
|
-
},
|
|
2028
|
-
onBlur:
|
|
1879
|
+
modelValue: l(v),
|
|
1880
|
+
"onUpdate:modelValue": O[0] || (O[0] = (S) => ke(v) ? v.value = S : null),
|
|
1881
|
+
type: l(L)
|
|
1882
|
+
}, l(h), {
|
|
1883
|
+
onBlur: O[1] || (O[1] = (S) => w.value = !0)
|
|
2029
1884
|
}), {
|
|
2030
|
-
label:
|
|
2031
|
-
|
|
2032
|
-
data:
|
|
2033
|
-
label:
|
|
1885
|
+
label: s((S) => [
|
|
1886
|
+
i(l(de), {
|
|
1887
|
+
data: S,
|
|
1888
|
+
label: l(c)
|
|
2034
1889
|
}, null, 8, ["data", "label"])
|
|
2035
1890
|
]),
|
|
2036
|
-
message:
|
|
2037
|
-
|
|
2038
|
-
message:
|
|
2039
|
-
errors:
|
|
1891
|
+
message: s(({ message: S }) => [
|
|
1892
|
+
i(l(ue), {
|
|
1893
|
+
message: S,
|
|
1894
|
+
errors: l(g)
|
|
2040
1895
|
}, null, 8, ["message", "errors"])
|
|
2041
1896
|
]),
|
|
2042
1897
|
_: 1
|
|
2043
1898
|
}, 16, ["modelValue", "type"]))
|
|
2044
|
-
], 2)) :
|
|
1899
|
+
], 2)) : G("", !0);
|
|
1900
|
+
};
|
|
1901
|
+
}
|
|
1902
|
+
}), Ll = dn.create({
|
|
1903
|
+
name: "classAttribute",
|
|
1904
|
+
addGlobalAttributes() {
|
|
1905
|
+
return [
|
|
1906
|
+
{
|
|
1907
|
+
types: ["paragraph", "heading", "blockquote", "codeBlock"],
|
|
1908
|
+
attributes: {
|
|
1909
|
+
class: {
|
|
1910
|
+
default: null,
|
|
1911
|
+
parseHTML: (e) => e.getAttribute("class"),
|
|
1912
|
+
renderHTML: (e) => e.class ? { class: e.class } : {}
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
];
|
|
1917
|
+
}
|
|
1918
|
+
});
|
|
1919
|
+
function gt(e, n) {
|
|
1920
|
+
return cn.create({
|
|
1921
|
+
name: e,
|
|
1922
|
+
parseHTML() {
|
|
1923
|
+
return [{ tag: `span.${n}` }];
|
|
1924
|
+
},
|
|
1925
|
+
renderHTML({ HTMLAttributes: t }) {
|
|
1926
|
+
return ["span", ut(t, { class: n }), 0];
|
|
1927
|
+
}
|
|
1928
|
+
});
|
|
1929
|
+
}
|
|
1930
|
+
const $l = gt("marker", "marker"), Sl = gt("spoiler", "spoiler"), Ml = [
|
|
1931
|
+
{ key: "ArticleCategory", kind: "heading", level: 3, className: "category" },
|
|
1932
|
+
{ key: "Title", kind: "heading", level: 2, className: "document-title" },
|
|
1933
|
+
{ key: "Subtitle", kind: "heading", level: 3, className: "document-subtitle" },
|
|
1934
|
+
{ key: "InfoBox", kind: "paragraph", className: "info-box" },
|
|
1935
|
+
{ key: "SideQuote", kind: "blockquote", className: "side-quote" },
|
|
1936
|
+
{ key: "Marker", kind: "mark", markName: "marker" },
|
|
1937
|
+
{ key: "Spoiler", kind: "mark", markName: "spoiler" },
|
|
1938
|
+
{ key: "CodeDark", kind: "codeBlock", className: "fancy-code fancy-code-dark" },
|
|
1939
|
+
{ key: "CodeBright", kind: "codeBlock", className: "fancy-code fancy-code-bright" }
|
|
1940
|
+
];
|
|
1941
|
+
function Ye(e) {
|
|
1942
|
+
const { state: n } = e, { $from: t } = n.selection;
|
|
1943
|
+
return t.depth > 0 || n.doc.content.size === 0 ? t : n.doc.resolve(Math.min(1, n.doc.content.size));
|
|
1944
|
+
}
|
|
1945
|
+
function Pe(e) {
|
|
1946
|
+
return Ye(e).parent;
|
|
1947
|
+
}
|
|
1948
|
+
function kt(e, n) {
|
|
1949
|
+
const t = Ye(e);
|
|
1950
|
+
for (let a = t.depth; a >= 0; a -= 1)
|
|
1951
|
+
if (t.node(a).type.name === n) return t.node(a);
|
|
1952
|
+
return null;
|
|
1953
|
+
}
|
|
1954
|
+
function $e(e, n) {
|
|
1955
|
+
switch (n.kind) {
|
|
1956
|
+
case "heading": {
|
|
1957
|
+
const t = Pe(e);
|
|
1958
|
+
return t.type.name === "heading" && t.attrs.level === n.level && t.attrs.class === n.className;
|
|
1959
|
+
}
|
|
1960
|
+
case "paragraph": {
|
|
1961
|
+
const t = Pe(e);
|
|
1962
|
+
return t.type.name === "paragraph" && t.attrs.class === n.className;
|
|
1963
|
+
}
|
|
1964
|
+
case "codeBlock": {
|
|
1965
|
+
const t = Pe(e);
|
|
1966
|
+
return t.type.name === "codeBlock" && t.attrs.class === n.className;
|
|
1967
|
+
}
|
|
1968
|
+
case "blockquote": {
|
|
1969
|
+
const t = kt(e, "blockquote");
|
|
1970
|
+
return !!t && t.attrs.class === n.className;
|
|
1971
|
+
}
|
|
1972
|
+
case "mark":
|
|
1973
|
+
return e.isActive(n.markName);
|
|
1974
|
+
default:
|
|
1975
|
+
return !1;
|
|
1976
|
+
}
|
|
1977
|
+
}
|
|
1978
|
+
function Dl(e, n) {
|
|
1979
|
+
const t = e.chain().focus(), { $from: a } = e.state.selection;
|
|
1980
|
+
switch (n.kind !== "mark" && a.depth === 0 && e.state.doc.content.size > 0 && t.setTextSelection(Ye(e).pos), n.kind) {
|
|
1981
|
+
case "heading":
|
|
1982
|
+
$e(e, n) ? t.setParagraph().updateAttributes("paragraph", { class: null }).run() : t.setNode("heading", { level: n.level }).updateAttributes("heading", { class: n.className }).run();
|
|
1983
|
+
break;
|
|
1984
|
+
case "paragraph":
|
|
1985
|
+
$e(e, n) ? t.setParagraph().updateAttributes("paragraph", { class: null }).run() : t.setParagraph().updateAttributes("paragraph", { class: n.className }).run();
|
|
1986
|
+
break;
|
|
1987
|
+
case "blockquote":
|
|
1988
|
+
$e(e, n) ? t.unsetBlockquote().run() : kt(e, "blockquote") ? t.updateAttributes("blockquote", { class: n.className }).run() : t.setBlockquote().updateAttributes("blockquote", { class: n.className }).run();
|
|
1989
|
+
break;
|
|
1990
|
+
case "codeBlock":
|
|
1991
|
+
$e(e, n) ? t.toggleCodeBlock().updateAttributes("paragraph", { class: null }).run() : Pe(e).type.name === "codeBlock" ? t.updateAttributes("codeBlock", { class: n.className }).run() : t.setCodeBlock().updateAttributes("codeBlock", { class: n.className }).run();
|
|
1992
|
+
break;
|
|
1993
|
+
case "mark":
|
|
1994
|
+
t.toggleMark(n.markName).run();
|
|
1995
|
+
break;
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
function yt(e) {
|
|
1999
|
+
return new Promise((n, t) => {
|
|
2000
|
+
const a = new FileReader();
|
|
2001
|
+
a.onload = () => n(a.result), a.onerror = () => t(a.error), a.readAsDataURL(e);
|
|
2002
|
+
});
|
|
2003
|
+
}
|
|
2004
|
+
function Il(e) {
|
|
2005
|
+
if (!e) return [];
|
|
2006
|
+
const n = [];
|
|
2007
|
+
return Array.from(e.items || []).forEach((t) => {
|
|
2008
|
+
if (t.kind === "file") {
|
|
2009
|
+
const a = t.getAsFile();
|
|
2010
|
+
a && a.type.startsWith("image/") && n.push(a);
|
|
2011
|
+
}
|
|
2012
|
+
}), n.length === 0 && Array.from(e.files || []).forEach((t) => {
|
|
2013
|
+
t.type.startsWith("image/") && n.push(t);
|
|
2014
|
+
}), n;
|
|
2015
|
+
}
|
|
2016
|
+
function wt(e) {
|
|
2017
|
+
let n = 0;
|
|
2018
|
+
return e.forEach((t) => {
|
|
2019
|
+
t.type.name === "image" ? n += 1 : t.content.size && (n += wt(t.content));
|
|
2020
|
+
}), n;
|
|
2021
|
+
}
|
|
2022
|
+
function Ct(e, n, t) {
|
|
2023
|
+
const a = [];
|
|
2024
|
+
return e.forEach((r) => {
|
|
2025
|
+
r.type.name === "image" && t.index < n.length ? (a.push(r.type.create(J(U({}, r.attrs), { src: n[t.index] }), r.content, r.marks)), t.index += 1) : r.content.size ? a.push(r.copy(Ct(r.content, n, t))) : a.push(r);
|
|
2026
|
+
}), vn.fromArray(a);
|
|
2027
|
+
}
|
|
2028
|
+
function Rl(e) {
|
|
2029
|
+
return (n, t, a) => {
|
|
2030
|
+
const r = Il(t.clipboardData);
|
|
2031
|
+
return r.length === 0 ? !1 : (t.preventDefault(), Promise.all(r.map(yt)).then((d) => {
|
|
2032
|
+
var c;
|
|
2033
|
+
if (wt(a.content) > 0) {
|
|
2034
|
+
const g = Ct(a.content, d, { index: 0 }), w = new fn(g, a.openStart, a.openEnd);
|
|
2035
|
+
n.dispatch(n.state.tr.replaceSelection(w).scrollIntoView());
|
|
2036
|
+
return;
|
|
2037
|
+
}
|
|
2038
|
+
(c = e()) == null || c.chain().focus().insertContent(d.map((g) => ({ type: "image", attrs: { src: g } }))).run();
|
|
2039
|
+
}), !0);
|
|
2040
|
+
};
|
|
2041
|
+
}
|
|
2042
|
+
const Pl = pn.extend({
|
|
2043
|
+
name: "link",
|
|
2044
|
+
addAttributes() {
|
|
2045
|
+
var e;
|
|
2046
|
+
return J(U({}, (e = this.parent) == null ? void 0 : e.call(this)), {
|
|
2047
|
+
download: {
|
|
2048
|
+
default: null,
|
|
2049
|
+
parseHTML: (n) => n.getAttribute("download"),
|
|
2050
|
+
renderHTML: (n) => n.download ? { download: n.download } : {}
|
|
2051
|
+
}
|
|
2052
|
+
});
|
|
2053
|
+
}
|
|
2054
|
+
});
|
|
2055
|
+
function Nl(e) {
|
|
2056
|
+
let n;
|
|
2057
|
+
try {
|
|
2058
|
+
n = new URL(e);
|
|
2059
|
+
} catch (a) {
|
|
2060
|
+
return null;
|
|
2061
|
+
}
|
|
2062
|
+
const t = n.hostname.replace(/^www\.|^m\./, "");
|
|
2063
|
+
if (t === "youtube.com") {
|
|
2064
|
+
const a = n.searchParams.get("v");
|
|
2065
|
+
if (a) return `https://www.youtube.com/embed/${a}`;
|
|
2066
|
+
const r = n.pathname.match(/^\/embed\/([\w-]+)/);
|
|
2067
|
+
if (r) return `https://www.youtube.com/embed/${r[1]}`;
|
|
2068
|
+
const d = n.pathname.match(/^\/shorts\/([\w-]+)/);
|
|
2069
|
+
return d ? `https://www.youtube.com/embed/${d[1]}` : null;
|
|
2070
|
+
}
|
|
2071
|
+
if (t === "youtu.be") {
|
|
2072
|
+
const a = n.pathname.slice(1);
|
|
2073
|
+
return a ? `https://www.youtube.com/embed/${a}` : null;
|
|
2074
|
+
}
|
|
2075
|
+
if (t === "vimeo.com") {
|
|
2076
|
+
const a = n.pathname.split("/").filter(Boolean).pop();
|
|
2077
|
+
return a && /^\d+$/.test(a) ? `https://player.vimeo.com/video/${a}` : null;
|
|
2078
|
+
}
|
|
2079
|
+
return null;
|
|
2080
|
+
}
|
|
2081
|
+
const zl = mn.create({
|
|
2082
|
+
name: "mediaEmbed",
|
|
2083
|
+
group: "block",
|
|
2084
|
+
atom: !0,
|
|
2085
|
+
draggable: !0,
|
|
2086
|
+
addAttributes() {
|
|
2087
|
+
return {
|
|
2088
|
+
src: { default: null }
|
|
2089
|
+
};
|
|
2090
|
+
},
|
|
2091
|
+
parseHTML() {
|
|
2092
|
+
return [{ tag: "iframe.media-embed" }];
|
|
2093
|
+
},
|
|
2094
|
+
renderHTML({ HTMLAttributes: e }) {
|
|
2095
|
+
return [
|
|
2096
|
+
"iframe",
|
|
2097
|
+
ut(
|
|
2098
|
+
{
|
|
2099
|
+
class: "media-embed",
|
|
2100
|
+
frameborder: "0",
|
|
2101
|
+
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
|
|
2102
|
+
allowfullscreen: "true"
|
|
2103
|
+
},
|
|
2104
|
+
e
|
|
2105
|
+
)
|
|
2106
|
+
];
|
|
2107
|
+
}
|
|
2108
|
+
});
|
|
2109
|
+
function At(e) {
|
|
2110
|
+
const n = F(0);
|
|
2111
|
+
let t;
|
|
2112
|
+
const a = () => {
|
|
2113
|
+
n.value += 1;
|
|
2114
|
+
}, r = (d) => {
|
|
2115
|
+
t == null || t.off("transaction", a), t = d, t == null || t.on("transaction", a);
|
|
2116
|
+
};
|
|
2117
|
+
return se(e, r, { immediate: !0 }), ot(() => r(void 0)), n;
|
|
2118
|
+
}
|
|
2119
|
+
const El = { class: "d-flex justify-end ga-2 mt-2" }, Ul = { class: "d-flex justify-space-between align-center ga-2 mt-2" }, Fl = { class: "d-flex justify-end mt-2" }, Hl = /* @__PURE__ */ Z({
|
|
2120
|
+
__name: "rtf-toolbar",
|
|
2121
|
+
props: {
|
|
2122
|
+
editor: {}
|
|
2123
|
+
},
|
|
2124
|
+
setup(e) {
|
|
2125
|
+
const n = e, t = Ce, a = C(() => n.editor), r = At(a), d = C(() => {
|
|
2126
|
+
var o;
|
|
2127
|
+
return !!((o = n.editor) != null && o.isEditable);
|
|
2128
|
+
}), c = C(() => {
|
|
2129
|
+
r.value;
|
|
2130
|
+
const o = n.editor;
|
|
2131
|
+
return {
|
|
2132
|
+
canUndo: !!(o != null && o.can().undo()),
|
|
2133
|
+
canRedo: !!(o != null && o.can().redo()),
|
|
2134
|
+
bold: !!(o != null && o.isActive("bold")),
|
|
2135
|
+
italic: !!(o != null && o.isActive("italic")),
|
|
2136
|
+
link: !!(o != null && o.isActive("link")),
|
|
2137
|
+
blockquote: !!(o != null && o.isActive("blockquote")),
|
|
2138
|
+
bulletList: !!(o != null && o.isActive("bulletList")),
|
|
2139
|
+
orderedList: !!(o != null && o.isActive("orderedList")),
|
|
2140
|
+
alignLeft: !!(o != null && o.isActive({ textAlign: "left" })),
|
|
2141
|
+
alignCenter: !!(o != null && o.isActive({ textAlign: "center" })),
|
|
2142
|
+
alignRight: !!(o != null && o.isActive({ textAlign: "right" })),
|
|
2143
|
+
alignJustify: !!(o != null && o.isActive({ textAlign: "justify" })),
|
|
2144
|
+
inTable: !!(o != null && o.isActive("table")),
|
|
2145
|
+
canLift: !!(o != null && o.can().liftListItem("listItem")),
|
|
2146
|
+
canSink: !!(o != null && o.can().sinkListItem("listItem"))
|
|
2147
|
+
};
|
|
2148
|
+
}), g = [
|
|
2149
|
+
{ level: 0, label: t.Paragraph },
|
|
2150
|
+
{ level: 1, label: t.Heading1 },
|
|
2151
|
+
{ level: 2, label: t.Heading2 },
|
|
2152
|
+
{ level: 3, label: t.Heading3 },
|
|
2153
|
+
{ level: 4, label: t.Heading4 },
|
|
2154
|
+
{ level: 5, label: t.Heading5 },
|
|
2155
|
+
{ level: 6, label: t.Heading6 }
|
|
2156
|
+
];
|
|
2157
|
+
function w(o) {
|
|
2158
|
+
var u, m;
|
|
2159
|
+
return r.value, o === 0 ? !!((u = a.value) != null && u.isActive("paragraph")) : !!((m = a.value) != null && m.isActive("heading", { level: o }));
|
|
2160
|
+
}
|
|
2161
|
+
const v = C(
|
|
2162
|
+
() => {
|
|
2163
|
+
var o, u;
|
|
2164
|
+
return (u = (o = g.find((m) => w(m.level))) == null ? void 0 : o.label) != null ? u : t.Paragraph;
|
|
2165
|
+
}
|
|
2166
|
+
);
|
|
2167
|
+
function f(o) {
|
|
2168
|
+
var m;
|
|
2169
|
+
const u = (m = a.value) == null ? void 0 : m.chain().focus();
|
|
2170
|
+
u && (o === 0 ? u.setParagraph().run() : u.toggleHeading({ level: o }).run());
|
|
2171
|
+
}
|
|
2172
|
+
const h = Ml;
|
|
2173
|
+
function L(o) {
|
|
2174
|
+
return r.value, !!a.value && $e(a.value, o);
|
|
2175
|
+
}
|
|
2176
|
+
const $ = F(""), A = F(!1);
|
|
2177
|
+
function V() {
|
|
2178
|
+
var u, m, x;
|
|
2179
|
+
const o = (m = (u = a.value) == null ? void 0 : u.getAttributes("link")) != null ? m : {};
|
|
2180
|
+
$.value = (x = o.href) != null ? x : "", A.value = !!o.download;
|
|
2181
|
+
}
|
|
2182
|
+
function M() {
|
|
2183
|
+
var o;
|
|
2184
|
+
$.value && ((o = a.value) == null || o.chain().focus().extendMarkRange("link").setLink({ href: $.value }).updateAttributes("link", { download: A.value ? "file" : null }).run());
|
|
2185
|
+
}
|
|
2186
|
+
function I() {
|
|
2187
|
+
var o;
|
|
2188
|
+
(o = a.value) == null || o.chain().focus().unsetLink().run();
|
|
2189
|
+
}
|
|
2190
|
+
const b = F(""), D = F();
|
|
2191
|
+
function O() {
|
|
2192
|
+
var o;
|
|
2193
|
+
b.value && ((o = a.value) == null || o.chain().focus().setImage({ src: b.value }).run(), b.value = "");
|
|
2194
|
+
}
|
|
2195
|
+
function E() {
|
|
2196
|
+
var o;
|
|
2197
|
+
(o = D.value) == null || o.click();
|
|
2198
|
+
}
|
|
2199
|
+
function q(o) {
|
|
2200
|
+
return Te(this, null, function* () {
|
|
2201
|
+
var x, N;
|
|
2202
|
+
const u = (x = o.target.files) == null ? void 0 : x[0];
|
|
2203
|
+
if (!u) return;
|
|
2204
|
+
const m = yield yt(u);
|
|
2205
|
+
(N = a.value) == null || N.chain().focus().setImage({ src: m }).run(), o.target.value = "";
|
|
2206
|
+
});
|
|
2207
|
+
}
|
|
2208
|
+
const S = F("");
|
|
2209
|
+
function y() {
|
|
2210
|
+
var m;
|
|
2211
|
+
if (!S.value) return;
|
|
2212
|
+
const o = Nl(S.value), u = (m = a.value) == null ? void 0 : m.chain().focus();
|
|
2213
|
+
u && (o ? u.insertContent({ type: "mediaEmbed", attrs: { src: o } }).run() : u.insertContent({ type: "text", text: S.value, marks: [{ type: "link", attrs: { href: S.value } }] }).run(), S.value = "");
|
|
2214
|
+
}
|
|
2215
|
+
return (o, u) => {
|
|
2216
|
+
const m = P("v-btn"), x = P("v-divider"), N = P("v-list-item-title"), W = P("v-list-item"), te = P("v-list"), _ = P("v-menu"), ie = P("v-text-field"), be = P("v-checkbox"), Ae = P("v-card");
|
|
2217
|
+
return j(), Q("div", {
|
|
2218
|
+
class: ce(["rtf-toolbar", { "rtf-toolbar--disabled": !d.value }])
|
|
2219
|
+
}, [
|
|
2220
|
+
i(m, {
|
|
2221
|
+
icon: "",
|
|
2222
|
+
size: "small",
|
|
2223
|
+
variant: "text",
|
|
2224
|
+
title: l(t).Undo,
|
|
2225
|
+
disabled: !d.value || !c.value.canUndo,
|
|
2226
|
+
onClick: u[0] || (u[0] = (k) => {
|
|
2227
|
+
var p;
|
|
2228
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().undo().run();
|
|
2229
|
+
})
|
|
2230
|
+
}, {
|
|
2231
|
+
default: s(() => [
|
|
2232
|
+
i(l(B), { name: "mdi-undo" })
|
|
2233
|
+
]),
|
|
2234
|
+
_: 1
|
|
2235
|
+
}, 8, ["title", "disabled"]),
|
|
2236
|
+
i(m, {
|
|
2237
|
+
icon: "",
|
|
2238
|
+
size: "small",
|
|
2239
|
+
variant: "text",
|
|
2240
|
+
title: l(t).Redo,
|
|
2241
|
+
disabled: !d.value || !c.value.canRedo,
|
|
2242
|
+
onClick: u[1] || (u[1] = (k) => {
|
|
2243
|
+
var p;
|
|
2244
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().redo().run();
|
|
2245
|
+
})
|
|
2246
|
+
}, {
|
|
2247
|
+
default: s(() => [
|
|
2248
|
+
i(l(B), { name: "mdi-redo" })
|
|
2249
|
+
]),
|
|
2250
|
+
_: 1
|
|
2251
|
+
}, 8, ["title", "disabled"]),
|
|
2252
|
+
i(x, {
|
|
2253
|
+
vertical: "",
|
|
2254
|
+
inset: "",
|
|
2255
|
+
class: "mx-1"
|
|
2256
|
+
}),
|
|
2257
|
+
i(m, {
|
|
2258
|
+
icon: "",
|
|
2259
|
+
size: "small",
|
|
2260
|
+
variant: "text",
|
|
2261
|
+
title: l(t).SelectAll,
|
|
2262
|
+
disabled: !d.value,
|
|
2263
|
+
onClick: u[2] || (u[2] = (k) => {
|
|
2264
|
+
var p;
|
|
2265
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().selectAll().run();
|
|
2266
|
+
})
|
|
2267
|
+
}, {
|
|
2268
|
+
default: s(() => [
|
|
2269
|
+
i(l(B), { name: "mdi-select-all" })
|
|
2270
|
+
]),
|
|
2271
|
+
_: 1
|
|
2272
|
+
}, 8, ["title", "disabled"]),
|
|
2273
|
+
i(x, {
|
|
2274
|
+
vertical: "",
|
|
2275
|
+
inset: "",
|
|
2276
|
+
class: "mx-1"
|
|
2277
|
+
}),
|
|
2278
|
+
i(_, null, {
|
|
2279
|
+
activator: s(({ props: k }) => [
|
|
2280
|
+
i(m, X({
|
|
2281
|
+
size: "small",
|
|
2282
|
+
variant: "text",
|
|
2283
|
+
disabled: !d.value
|
|
2284
|
+
}, k, { "append-icon": "mdi-chevron-down" }), {
|
|
2285
|
+
default: s(() => [
|
|
2286
|
+
Y(K(v.value), 1)
|
|
2287
|
+
]),
|
|
2288
|
+
_: 1
|
|
2289
|
+
}, 16, ["disabled"])
|
|
2290
|
+
]),
|
|
2291
|
+
default: s(() => [
|
|
2292
|
+
i(te, { density: "compact" }, {
|
|
2293
|
+
default: s(() => [
|
|
2294
|
+
(j(), Q(Me, null, Ke(g, (k) => i(W, {
|
|
2295
|
+
key: k.level,
|
|
2296
|
+
active: w(k.level),
|
|
2297
|
+
onClick: (p) => f(k.level)
|
|
2298
|
+
}, {
|
|
2299
|
+
default: s(() => [
|
|
2300
|
+
i(N, null, {
|
|
2301
|
+
default: s(() => [
|
|
2302
|
+
Y(K(k.label), 1)
|
|
2303
|
+
]),
|
|
2304
|
+
_: 2
|
|
2305
|
+
}, 1024)
|
|
2306
|
+
]),
|
|
2307
|
+
_: 2
|
|
2308
|
+
}, 1032, ["active", "onClick"])), 64))
|
|
2309
|
+
]),
|
|
2310
|
+
_: 1
|
|
2311
|
+
})
|
|
2312
|
+
]),
|
|
2313
|
+
_: 1
|
|
2314
|
+
}),
|
|
2315
|
+
i(_, null, {
|
|
2316
|
+
activator: s(({ props: k }) => [
|
|
2317
|
+
i(m, X({
|
|
2318
|
+
size: "small",
|
|
2319
|
+
variant: "text",
|
|
2320
|
+
disabled: !d.value
|
|
2321
|
+
}, k, { "append-icon": "mdi-chevron-down" }), {
|
|
2322
|
+
default: s(() => [
|
|
2323
|
+
Y(K(l(t).Style), 1)
|
|
2324
|
+
]),
|
|
2325
|
+
_: 1
|
|
2326
|
+
}, 16, ["disabled"])
|
|
2327
|
+
]),
|
|
2328
|
+
default: s(() => [
|
|
2329
|
+
i(te, { density: "compact" }, {
|
|
2330
|
+
default: s(() => [
|
|
2331
|
+
(j(!0), Q(Me, null, Ke(l(h), (k) => (j(), H(W, {
|
|
2332
|
+
key: k.key,
|
|
2333
|
+
active: L(k),
|
|
2334
|
+
onClick: (p) => a.value && l(Dl)(a.value, k)
|
|
2335
|
+
}, {
|
|
2336
|
+
default: s(() => [
|
|
2337
|
+
i(N, null, {
|
|
2338
|
+
default: s(() => [
|
|
2339
|
+
Y(K(l(t)[k.key]), 1)
|
|
2340
|
+
]),
|
|
2341
|
+
_: 2
|
|
2342
|
+
}, 1024)
|
|
2343
|
+
]),
|
|
2344
|
+
_: 2
|
|
2345
|
+
}, 1032, ["active", "onClick"]))), 128))
|
|
2346
|
+
]),
|
|
2347
|
+
_: 1
|
|
2348
|
+
})
|
|
2349
|
+
]),
|
|
2350
|
+
_: 1
|
|
2351
|
+
}),
|
|
2352
|
+
i(x, {
|
|
2353
|
+
vertical: "",
|
|
2354
|
+
inset: "",
|
|
2355
|
+
class: "mx-1"
|
|
2356
|
+
}),
|
|
2357
|
+
i(m, {
|
|
2358
|
+
icon: "",
|
|
2359
|
+
size: "small",
|
|
2360
|
+
variant: "text",
|
|
2361
|
+
title: l(t).Bold,
|
|
2362
|
+
disabled: !d.value,
|
|
2363
|
+
active: c.value.bold,
|
|
2364
|
+
onClick: u[3] || (u[3] = (k) => {
|
|
2365
|
+
var p;
|
|
2366
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().toggleBold().run();
|
|
2367
|
+
})
|
|
2368
|
+
}, {
|
|
2369
|
+
default: s(() => [
|
|
2370
|
+
i(l(B), { name: "mdi-format-bold" })
|
|
2371
|
+
]),
|
|
2372
|
+
_: 1
|
|
2373
|
+
}, 8, ["title", "disabled", "active"]),
|
|
2374
|
+
i(m, {
|
|
2375
|
+
icon: "",
|
|
2376
|
+
size: "small",
|
|
2377
|
+
variant: "text",
|
|
2378
|
+
title: l(t).Italic,
|
|
2379
|
+
disabled: !d.value,
|
|
2380
|
+
active: c.value.italic,
|
|
2381
|
+
onClick: u[4] || (u[4] = (k) => {
|
|
2382
|
+
var p;
|
|
2383
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().toggleItalic().run();
|
|
2384
|
+
})
|
|
2385
|
+
}, {
|
|
2386
|
+
default: s(() => [
|
|
2387
|
+
i(l(B), { name: "mdi-format-italic" })
|
|
2388
|
+
]),
|
|
2389
|
+
_: 1
|
|
2390
|
+
}, 8, ["title", "disabled", "active"]),
|
|
2391
|
+
i(x, {
|
|
2392
|
+
vertical: "",
|
|
2393
|
+
inset: "",
|
|
2394
|
+
class: "mx-1"
|
|
2395
|
+
}),
|
|
2396
|
+
i(m, {
|
|
2397
|
+
icon: "",
|
|
2398
|
+
size: "small",
|
|
2399
|
+
variant: "text",
|
|
2400
|
+
title: l(t).HorizontalLine,
|
|
2401
|
+
disabled: !d.value,
|
|
2402
|
+
onClick: u[5] || (u[5] = (k) => {
|
|
2403
|
+
var p;
|
|
2404
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().setHorizontalRule().run();
|
|
2405
|
+
})
|
|
2406
|
+
}, {
|
|
2407
|
+
default: s(() => [
|
|
2408
|
+
i(l(B), { name: "mdi-minus" })
|
|
2409
|
+
]),
|
|
2410
|
+
_: 1
|
|
2411
|
+
}, 8, ["title", "disabled"]),
|
|
2412
|
+
i(_, {
|
|
2413
|
+
"close-on-content-click": !1,
|
|
2414
|
+
"onUpdate:modelValue": u[8] || (u[8] = (k) => k && V())
|
|
2415
|
+
}, {
|
|
2416
|
+
activator: s(({ props: k }) => [
|
|
2417
|
+
i(m, X({
|
|
2418
|
+
icon: "",
|
|
2419
|
+
size: "small",
|
|
2420
|
+
variant: "text",
|
|
2421
|
+
title: l(t).Link,
|
|
2422
|
+
disabled: !d.value,
|
|
2423
|
+
active: c.value.link
|
|
2424
|
+
}, k), {
|
|
2425
|
+
default: s(() => [
|
|
2426
|
+
i(l(B), { name: "mdi-link-variant" })
|
|
2427
|
+
]),
|
|
2428
|
+
_: 1
|
|
2429
|
+
}, 16, ["title", "disabled", "active"])
|
|
2430
|
+
]),
|
|
2431
|
+
default: s(() => [
|
|
2432
|
+
i(Ae, {
|
|
2433
|
+
"min-width": "280",
|
|
2434
|
+
class: "pa-3"
|
|
2435
|
+
}, {
|
|
2436
|
+
default: s(() => [
|
|
2437
|
+
i(ie, {
|
|
2438
|
+
modelValue: $.value,
|
|
2439
|
+
"onUpdate:modelValue": u[6] || (u[6] = (k) => $.value = k),
|
|
2440
|
+
label: l(t).LinkUrl,
|
|
2441
|
+
density: "compact",
|
|
2442
|
+
"hide-details": "",
|
|
2443
|
+
autofocus: "",
|
|
2444
|
+
onKeydown: Se(M, ["enter"])
|
|
2445
|
+
}, null, 8, ["modelValue", "label"]),
|
|
2446
|
+
i(be, {
|
|
2447
|
+
modelValue: A.value,
|
|
2448
|
+
"onUpdate:modelValue": u[7] || (u[7] = (k) => A.value = k),
|
|
2449
|
+
label: l(t).Downloadable,
|
|
2450
|
+
density: "compact",
|
|
2451
|
+
"hide-details": "",
|
|
2452
|
+
class: "mt-1"
|
|
2453
|
+
}, null, 8, ["modelValue", "label"]),
|
|
2454
|
+
ae("div", El, [
|
|
2455
|
+
c.value.link ? (j(), H(m, {
|
|
2456
|
+
key: 0,
|
|
2457
|
+
size: "small",
|
|
2458
|
+
variant: "text",
|
|
2459
|
+
onClick: I
|
|
2460
|
+
}, {
|
|
2461
|
+
default: s(() => [
|
|
2462
|
+
Y(K(l(t).LinkRemove), 1)
|
|
2463
|
+
]),
|
|
2464
|
+
_: 1
|
|
2465
|
+
})) : G("", !0),
|
|
2466
|
+
i(m, {
|
|
2467
|
+
size: "small",
|
|
2468
|
+
color: "primary",
|
|
2469
|
+
variant: "tonal",
|
|
2470
|
+
onClick: M
|
|
2471
|
+
}, {
|
|
2472
|
+
default: s(() => [
|
|
2473
|
+
Y(K(l(t).LinkApply), 1)
|
|
2474
|
+
]),
|
|
2475
|
+
_: 1
|
|
2476
|
+
})
|
|
2477
|
+
])
|
|
2478
|
+
]),
|
|
2479
|
+
_: 1
|
|
2480
|
+
})
|
|
2481
|
+
]),
|
|
2482
|
+
_: 1
|
|
2483
|
+
}),
|
|
2484
|
+
i(_, { "close-on-content-click": !1 }, {
|
|
2485
|
+
activator: s(({ props: k }) => [
|
|
2486
|
+
i(m, X({
|
|
2487
|
+
icon: "",
|
|
2488
|
+
size: "small",
|
|
2489
|
+
variant: "text",
|
|
2490
|
+
title: l(t).Image,
|
|
2491
|
+
disabled: !d.value
|
|
2492
|
+
}, k), {
|
|
2493
|
+
default: s(() => [
|
|
2494
|
+
i(l(B), { name: "mdi-image-plus" })
|
|
2495
|
+
]),
|
|
2496
|
+
_: 1
|
|
2497
|
+
}, 16, ["title", "disabled"])
|
|
2498
|
+
]),
|
|
2499
|
+
default: s(() => [
|
|
2500
|
+
i(Ae, {
|
|
2501
|
+
"min-width": "280",
|
|
2502
|
+
class: "pa-3"
|
|
2503
|
+
}, {
|
|
2504
|
+
default: s(() => [
|
|
2505
|
+
i(ie, {
|
|
2506
|
+
modelValue: b.value,
|
|
2507
|
+
"onUpdate:modelValue": u[9] || (u[9] = (k) => b.value = k),
|
|
2508
|
+
label: l(t).ImageUrl,
|
|
2509
|
+
density: "compact",
|
|
2510
|
+
"hide-details": "",
|
|
2511
|
+
autofocus: "",
|
|
2512
|
+
onKeydown: Se(O, ["enter"])
|
|
2513
|
+
}, null, 8, ["modelValue", "label"]),
|
|
2514
|
+
ae("div", Ul, [
|
|
2515
|
+
i(m, {
|
|
2516
|
+
size: "small",
|
|
2517
|
+
variant: "text",
|
|
2518
|
+
"prepend-icon": "mdi-upload",
|
|
2519
|
+
onClick: E
|
|
2520
|
+
}, {
|
|
2521
|
+
default: s(() => [
|
|
2522
|
+
Y(K(l(t).ImageUpload), 1)
|
|
2523
|
+
]),
|
|
2524
|
+
_: 1
|
|
2525
|
+
}),
|
|
2526
|
+
i(m, {
|
|
2527
|
+
size: "small",
|
|
2528
|
+
color: "primary",
|
|
2529
|
+
variant: "tonal",
|
|
2530
|
+
onClick: O
|
|
2531
|
+
}, {
|
|
2532
|
+
default: s(() => [
|
|
2533
|
+
Y(K(l(t).ImageInsert), 1)
|
|
2534
|
+
]),
|
|
2535
|
+
_: 1
|
|
2536
|
+
})
|
|
2537
|
+
])
|
|
2538
|
+
]),
|
|
2539
|
+
_: 1
|
|
2540
|
+
})
|
|
2541
|
+
]),
|
|
2542
|
+
_: 1
|
|
2543
|
+
}),
|
|
2544
|
+
ae("input", {
|
|
2545
|
+
ref_key: "imageInput",
|
|
2546
|
+
ref: D,
|
|
2547
|
+
type: "file",
|
|
2548
|
+
accept: "image/*",
|
|
2549
|
+
class: "d-none",
|
|
2550
|
+
onChange: q
|
|
2551
|
+
}, null, 544),
|
|
2552
|
+
i(_, { "close-on-content-click": !1 }, {
|
|
2553
|
+
activator: s(({ props: k }) => [
|
|
2554
|
+
i(m, X({
|
|
2555
|
+
icon: "",
|
|
2556
|
+
size: "small",
|
|
2557
|
+
variant: "text",
|
|
2558
|
+
title: l(t).MediaEmbed,
|
|
2559
|
+
disabled: !d.value
|
|
2560
|
+
}, k), {
|
|
2561
|
+
default: s(() => [
|
|
2562
|
+
i(l(B), { name: "mdi-video-plus" })
|
|
2563
|
+
]),
|
|
2564
|
+
_: 1
|
|
2565
|
+
}, 16, ["title", "disabled"])
|
|
2566
|
+
]),
|
|
2567
|
+
default: s(() => [
|
|
2568
|
+
i(Ae, {
|
|
2569
|
+
"min-width": "280",
|
|
2570
|
+
class: "pa-3"
|
|
2571
|
+
}, {
|
|
2572
|
+
default: s(() => [
|
|
2573
|
+
i(ie, {
|
|
2574
|
+
modelValue: S.value,
|
|
2575
|
+
"onUpdate:modelValue": u[10] || (u[10] = (k) => S.value = k),
|
|
2576
|
+
label: l(t).MediaEmbedUrl,
|
|
2577
|
+
density: "compact",
|
|
2578
|
+
"hide-details": "",
|
|
2579
|
+
autofocus: "",
|
|
2580
|
+
onKeydown: Se(y, ["enter"])
|
|
2581
|
+
}, null, 8, ["modelValue", "label"]),
|
|
2582
|
+
ae("div", Fl, [
|
|
2583
|
+
i(m, {
|
|
2584
|
+
size: "small",
|
|
2585
|
+
color: "primary",
|
|
2586
|
+
variant: "tonal",
|
|
2587
|
+
onClick: y
|
|
2588
|
+
}, {
|
|
2589
|
+
default: s(() => [
|
|
2590
|
+
Y(K(l(t).MediaEmbedInsert), 1)
|
|
2591
|
+
]),
|
|
2592
|
+
_: 1
|
|
2593
|
+
})
|
|
2594
|
+
])
|
|
2595
|
+
]),
|
|
2596
|
+
_: 1
|
|
2597
|
+
})
|
|
2598
|
+
]),
|
|
2599
|
+
_: 1
|
|
2600
|
+
}),
|
|
2601
|
+
i(_, null, {
|
|
2602
|
+
activator: s(({ props: k }) => [
|
|
2603
|
+
i(m, X({
|
|
2604
|
+
icon: "",
|
|
2605
|
+
size: "small",
|
|
2606
|
+
variant: "text",
|
|
2607
|
+
title: l(t).Table,
|
|
2608
|
+
disabled: !d.value
|
|
2609
|
+
}, k), {
|
|
2610
|
+
default: s(() => [
|
|
2611
|
+
i(l(B), { name: "mdi-table" })
|
|
2612
|
+
]),
|
|
2613
|
+
_: 1
|
|
2614
|
+
}, 16, ["title", "disabled"])
|
|
2615
|
+
]),
|
|
2616
|
+
default: s(() => [
|
|
2617
|
+
i(te, { density: "compact" }, {
|
|
2618
|
+
default: s(() => [
|
|
2619
|
+
i(W, {
|
|
2620
|
+
onClick: u[11] || (u[11] = (k) => {
|
|
2621
|
+
var p;
|
|
2622
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: !0 }).run();
|
|
2623
|
+
})
|
|
2624
|
+
}, {
|
|
2625
|
+
prepend: s(() => [
|
|
2626
|
+
i(l(B), { name: "mdi-table-plus" })
|
|
2627
|
+
]),
|
|
2628
|
+
default: s(() => [
|
|
2629
|
+
i(N, null, {
|
|
2630
|
+
default: s(() => [
|
|
2631
|
+
Y(K(l(t).TableInsert), 1)
|
|
2632
|
+
]),
|
|
2633
|
+
_: 1
|
|
2634
|
+
})
|
|
2635
|
+
]),
|
|
2636
|
+
_: 1
|
|
2637
|
+
}),
|
|
2638
|
+
i(x),
|
|
2639
|
+
i(W, {
|
|
2640
|
+
disabled: !c.value.inTable,
|
|
2641
|
+
onClick: u[12] || (u[12] = (k) => {
|
|
2642
|
+
var p;
|
|
2643
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().addRowBefore().run();
|
|
2644
|
+
})
|
|
2645
|
+
}, {
|
|
2646
|
+
prepend: s(() => [
|
|
2647
|
+
i(l(B), { name: "mdi-table-row-plus-before" })
|
|
2648
|
+
]),
|
|
2649
|
+
default: s(() => [
|
|
2650
|
+
i(N, null, {
|
|
2651
|
+
default: s(() => [
|
|
2652
|
+
Y(K(l(t).TableAddRowAbove), 1)
|
|
2653
|
+
]),
|
|
2654
|
+
_: 1
|
|
2655
|
+
})
|
|
2656
|
+
]),
|
|
2657
|
+
_: 1
|
|
2658
|
+
}, 8, ["disabled"]),
|
|
2659
|
+
i(W, {
|
|
2660
|
+
disabled: !c.value.inTable,
|
|
2661
|
+
onClick: u[13] || (u[13] = (k) => {
|
|
2662
|
+
var p;
|
|
2663
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().addRowAfter().run();
|
|
2664
|
+
})
|
|
2665
|
+
}, {
|
|
2666
|
+
prepend: s(() => [
|
|
2667
|
+
i(l(B), { name: "mdi-table-row-plus-after" })
|
|
2668
|
+
]),
|
|
2669
|
+
default: s(() => [
|
|
2670
|
+
i(N, null, {
|
|
2671
|
+
default: s(() => [
|
|
2672
|
+
Y(K(l(t).TableAddRowBelow), 1)
|
|
2673
|
+
]),
|
|
2674
|
+
_: 1
|
|
2675
|
+
})
|
|
2676
|
+
]),
|
|
2677
|
+
_: 1
|
|
2678
|
+
}, 8, ["disabled"]),
|
|
2679
|
+
i(W, {
|
|
2680
|
+
disabled: !c.value.inTable,
|
|
2681
|
+
onClick: u[14] || (u[14] = (k) => {
|
|
2682
|
+
var p;
|
|
2683
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().deleteRow().run();
|
|
2684
|
+
})
|
|
2685
|
+
}, {
|
|
2686
|
+
prepend: s(() => [
|
|
2687
|
+
i(l(B), { name: "mdi-table-row-remove" })
|
|
2688
|
+
]),
|
|
2689
|
+
default: s(() => [
|
|
2690
|
+
i(N, null, {
|
|
2691
|
+
default: s(() => [
|
|
2692
|
+
Y(K(l(t).TableDeleteRow), 1)
|
|
2693
|
+
]),
|
|
2694
|
+
_: 1
|
|
2695
|
+
})
|
|
2696
|
+
]),
|
|
2697
|
+
_: 1
|
|
2698
|
+
}, 8, ["disabled"]),
|
|
2699
|
+
i(x),
|
|
2700
|
+
i(W, {
|
|
2701
|
+
disabled: !c.value.inTable,
|
|
2702
|
+
onClick: u[15] || (u[15] = (k) => {
|
|
2703
|
+
var p;
|
|
2704
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().addColumnBefore().run();
|
|
2705
|
+
})
|
|
2706
|
+
}, {
|
|
2707
|
+
prepend: s(() => [
|
|
2708
|
+
i(l(B), { name: "mdi-table-column-plus-before" })
|
|
2709
|
+
]),
|
|
2710
|
+
default: s(() => [
|
|
2711
|
+
i(N, null, {
|
|
2712
|
+
default: s(() => [
|
|
2713
|
+
Y(K(l(t).TableAddColumnBefore), 1)
|
|
2714
|
+
]),
|
|
2715
|
+
_: 1
|
|
2716
|
+
})
|
|
2717
|
+
]),
|
|
2718
|
+
_: 1
|
|
2719
|
+
}, 8, ["disabled"]),
|
|
2720
|
+
i(W, {
|
|
2721
|
+
disabled: !c.value.inTable,
|
|
2722
|
+
onClick: u[16] || (u[16] = (k) => {
|
|
2723
|
+
var p;
|
|
2724
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().addColumnAfter().run();
|
|
2725
|
+
})
|
|
2726
|
+
}, {
|
|
2727
|
+
prepend: s(() => [
|
|
2728
|
+
i(l(B), { name: "mdi-table-column-plus-after" })
|
|
2729
|
+
]),
|
|
2730
|
+
default: s(() => [
|
|
2731
|
+
i(N, null, {
|
|
2732
|
+
default: s(() => [
|
|
2733
|
+
Y(K(l(t).TableAddColumnAfter), 1)
|
|
2734
|
+
]),
|
|
2735
|
+
_: 1
|
|
2736
|
+
})
|
|
2737
|
+
]),
|
|
2738
|
+
_: 1
|
|
2739
|
+
}, 8, ["disabled"]),
|
|
2740
|
+
i(W, {
|
|
2741
|
+
disabled: !c.value.inTable,
|
|
2742
|
+
onClick: u[17] || (u[17] = (k) => {
|
|
2743
|
+
var p;
|
|
2744
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().deleteColumn().run();
|
|
2745
|
+
})
|
|
2746
|
+
}, {
|
|
2747
|
+
prepend: s(() => [
|
|
2748
|
+
i(l(B), { name: "mdi-table-column-remove" })
|
|
2749
|
+
]),
|
|
2750
|
+
default: s(() => [
|
|
2751
|
+
i(N, null, {
|
|
2752
|
+
default: s(() => [
|
|
2753
|
+
Y(K(l(t).TableDeleteColumn), 1)
|
|
2754
|
+
]),
|
|
2755
|
+
_: 1
|
|
2756
|
+
})
|
|
2757
|
+
]),
|
|
2758
|
+
_: 1
|
|
2759
|
+
}, 8, ["disabled"]),
|
|
2760
|
+
i(x),
|
|
2761
|
+
i(W, {
|
|
2762
|
+
disabled: !c.value.inTable,
|
|
2763
|
+
onClick: u[18] || (u[18] = (k) => {
|
|
2764
|
+
var p;
|
|
2765
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().toggleHeaderRow().run();
|
|
2766
|
+
})
|
|
2767
|
+
}, {
|
|
2768
|
+
prepend: s(() => [
|
|
2769
|
+
i(l(B), { name: "mdi-table-row" })
|
|
2770
|
+
]),
|
|
2771
|
+
default: s(() => [
|
|
2772
|
+
i(N, null, {
|
|
2773
|
+
default: s(() => [
|
|
2774
|
+
Y(K(l(t).TableToggleHeaderRow), 1)
|
|
2775
|
+
]),
|
|
2776
|
+
_: 1
|
|
2777
|
+
})
|
|
2778
|
+
]),
|
|
2779
|
+
_: 1
|
|
2780
|
+
}, 8, ["disabled"]),
|
|
2781
|
+
i(W, {
|
|
2782
|
+
disabled: !c.value.inTable,
|
|
2783
|
+
onClick: u[19] || (u[19] = (k) => {
|
|
2784
|
+
var p;
|
|
2785
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().deleteTable().run();
|
|
2786
|
+
})
|
|
2787
|
+
}, {
|
|
2788
|
+
prepend: s(() => [
|
|
2789
|
+
i(l(B), { name: "mdi-table-remove" })
|
|
2790
|
+
]),
|
|
2791
|
+
default: s(() => [
|
|
2792
|
+
i(N, null, {
|
|
2793
|
+
default: s(() => [
|
|
2794
|
+
Y(K(l(t).TableDeleteTable), 1)
|
|
2795
|
+
]),
|
|
2796
|
+
_: 1
|
|
2797
|
+
})
|
|
2798
|
+
]),
|
|
2799
|
+
_: 1
|
|
2800
|
+
}, 8, ["disabled"])
|
|
2801
|
+
]),
|
|
2802
|
+
_: 1
|
|
2803
|
+
})
|
|
2804
|
+
]),
|
|
2805
|
+
_: 1
|
|
2806
|
+
}),
|
|
2807
|
+
i(m, {
|
|
2808
|
+
icon: "",
|
|
2809
|
+
size: "small",
|
|
2810
|
+
variant: "text",
|
|
2811
|
+
title: l(t).Blockquote,
|
|
2812
|
+
disabled: !d.value,
|
|
2813
|
+
active: c.value.blockquote,
|
|
2814
|
+
onClick: u[20] || (u[20] = (k) => {
|
|
2815
|
+
var p;
|
|
2816
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().toggleBlockquote().run();
|
|
2817
|
+
})
|
|
2818
|
+
}, {
|
|
2819
|
+
default: s(() => [
|
|
2820
|
+
i(l(B), { name: "mdi-format-quote-close" })
|
|
2821
|
+
]),
|
|
2822
|
+
_: 1
|
|
2823
|
+
}, 8, ["title", "disabled", "active"]),
|
|
2824
|
+
i(x, {
|
|
2825
|
+
vertical: "",
|
|
2826
|
+
inset: "",
|
|
2827
|
+
class: "mx-1"
|
|
2828
|
+
}),
|
|
2829
|
+
i(m, {
|
|
2830
|
+
icon: "",
|
|
2831
|
+
size: "small",
|
|
2832
|
+
variant: "text",
|
|
2833
|
+
title: l(t).AlignLeft,
|
|
2834
|
+
disabled: !d.value,
|
|
2835
|
+
active: c.value.alignLeft,
|
|
2836
|
+
onClick: u[21] || (u[21] = (k) => {
|
|
2837
|
+
var p;
|
|
2838
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("left").run();
|
|
2839
|
+
})
|
|
2840
|
+
}, {
|
|
2841
|
+
default: s(() => [
|
|
2842
|
+
i(l(B), { name: "mdi-format-align-left" })
|
|
2843
|
+
]),
|
|
2844
|
+
_: 1
|
|
2845
|
+
}, 8, ["title", "disabled", "active"]),
|
|
2846
|
+
i(m, {
|
|
2847
|
+
icon: "",
|
|
2848
|
+
size: "small",
|
|
2849
|
+
variant: "text",
|
|
2850
|
+
title: l(t).AlignCenter,
|
|
2851
|
+
disabled: !d.value,
|
|
2852
|
+
active: c.value.alignCenter,
|
|
2853
|
+
onClick: u[22] || (u[22] = (k) => {
|
|
2854
|
+
var p;
|
|
2855
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("center").run();
|
|
2856
|
+
})
|
|
2857
|
+
}, {
|
|
2858
|
+
default: s(() => [
|
|
2859
|
+
i(l(B), { name: "mdi-format-align-center" })
|
|
2860
|
+
]),
|
|
2861
|
+
_: 1
|
|
2862
|
+
}, 8, ["title", "disabled", "active"]),
|
|
2863
|
+
i(m, {
|
|
2864
|
+
icon: "",
|
|
2865
|
+
size: "small",
|
|
2866
|
+
variant: "text",
|
|
2867
|
+
title: l(t).AlignRight,
|
|
2868
|
+
disabled: !d.value,
|
|
2869
|
+
active: c.value.alignRight,
|
|
2870
|
+
onClick: u[23] || (u[23] = (k) => {
|
|
2871
|
+
var p;
|
|
2872
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("right").run();
|
|
2873
|
+
})
|
|
2874
|
+
}, {
|
|
2875
|
+
default: s(() => [
|
|
2876
|
+
i(l(B), { name: "mdi-format-align-right" })
|
|
2877
|
+
]),
|
|
2878
|
+
_: 1
|
|
2879
|
+
}, 8, ["title", "disabled", "active"]),
|
|
2880
|
+
i(m, {
|
|
2881
|
+
icon: "",
|
|
2882
|
+
size: "small",
|
|
2883
|
+
variant: "text",
|
|
2884
|
+
title: l(t).AlignJustify,
|
|
2885
|
+
disabled: !d.value,
|
|
2886
|
+
active: c.value.alignJustify,
|
|
2887
|
+
onClick: u[24] || (u[24] = (k) => {
|
|
2888
|
+
var p;
|
|
2889
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("justify").run();
|
|
2890
|
+
})
|
|
2891
|
+
}, {
|
|
2892
|
+
default: s(() => [
|
|
2893
|
+
i(l(B), { name: "mdi-format-align-justify" })
|
|
2894
|
+
]),
|
|
2895
|
+
_: 1
|
|
2896
|
+
}, 8, ["title", "disabled", "active"]),
|
|
2897
|
+
i(x, {
|
|
2898
|
+
vertical: "",
|
|
2899
|
+
inset: "",
|
|
2900
|
+
class: "mx-1"
|
|
2901
|
+
}),
|
|
2902
|
+
i(m, {
|
|
2903
|
+
icon: "",
|
|
2904
|
+
size: "small",
|
|
2905
|
+
variant: "text",
|
|
2906
|
+
title: l(t).BulletedList,
|
|
2907
|
+
disabled: !d.value,
|
|
2908
|
+
active: c.value.bulletList,
|
|
2909
|
+
onClick: u[25] || (u[25] = (k) => {
|
|
2910
|
+
var p;
|
|
2911
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().toggleBulletList().run();
|
|
2912
|
+
})
|
|
2913
|
+
}, {
|
|
2914
|
+
default: s(() => [
|
|
2915
|
+
i(l(B), { name: "mdi-format-list-bulleted" })
|
|
2916
|
+
]),
|
|
2917
|
+
_: 1
|
|
2918
|
+
}, 8, ["title", "disabled", "active"]),
|
|
2919
|
+
i(m, {
|
|
2920
|
+
icon: "",
|
|
2921
|
+
size: "small",
|
|
2922
|
+
variant: "text",
|
|
2923
|
+
title: l(t).NumberedList,
|
|
2924
|
+
disabled: !d.value,
|
|
2925
|
+
active: c.value.orderedList,
|
|
2926
|
+
onClick: u[26] || (u[26] = (k) => {
|
|
2927
|
+
var p;
|
|
2928
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().toggleOrderedList().run();
|
|
2929
|
+
})
|
|
2930
|
+
}, {
|
|
2931
|
+
default: s(() => [
|
|
2932
|
+
i(l(B), { name: "mdi-format-list-numbered" })
|
|
2933
|
+
]),
|
|
2934
|
+
_: 1
|
|
2935
|
+
}, 8, ["title", "disabled", "active"]),
|
|
2936
|
+
i(m, {
|
|
2937
|
+
icon: "",
|
|
2938
|
+
size: "small",
|
|
2939
|
+
variant: "text",
|
|
2940
|
+
title: l(t).Outdent,
|
|
2941
|
+
disabled: !d.value || !c.value.canLift,
|
|
2942
|
+
onClick: u[27] || (u[27] = (k) => {
|
|
2943
|
+
var p;
|
|
2944
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().liftListItem("listItem").run();
|
|
2945
|
+
})
|
|
2946
|
+
}, {
|
|
2947
|
+
default: s(() => [
|
|
2948
|
+
i(l(B), { name: "mdi-format-indent-decrease" })
|
|
2949
|
+
]),
|
|
2950
|
+
_: 1
|
|
2951
|
+
}, 8, ["title", "disabled"]),
|
|
2952
|
+
i(m, {
|
|
2953
|
+
icon: "",
|
|
2954
|
+
size: "small",
|
|
2955
|
+
variant: "text",
|
|
2956
|
+
title: l(t).Indent,
|
|
2957
|
+
disabled: !d.value || !c.value.canSink,
|
|
2958
|
+
onClick: u[28] || (u[28] = (k) => {
|
|
2959
|
+
var p;
|
|
2960
|
+
return (p = a.value) == null ? void 0 : p.chain().focus().sinkListItem("listItem").run();
|
|
2961
|
+
})
|
|
2962
|
+
}, {
|
|
2963
|
+
default: s(() => [
|
|
2964
|
+
i(l(B), { name: "mdi-format-indent-increase" })
|
|
2965
|
+
]),
|
|
2966
|
+
_: 1
|
|
2967
|
+
}, 8, ["title", "disabled"])
|
|
2968
|
+
], 2);
|
|
2045
2969
|
};
|
|
2046
2970
|
}
|
|
2047
|
-
}),
|
|
2048
|
-
|
|
2971
|
+
}), Wl = /^[a-z][a-z0-9]*:[a-z]/i, Ol = /mso-[a-z-]+\s*:[^;]+;?/gi, ql = /^Mso/i, Kl = /background(?:-color)?\s*:[^;]+;?/gi;
|
|
2972
|
+
function Xl(e) {
|
|
2973
|
+
const n = document.createTreeWalker(e, NodeFilter.SHOW_COMMENT), t = [];
|
|
2974
|
+
for (let a = n.nextNode(); a; a = n.nextNode()) t.push(a);
|
|
2975
|
+
t.forEach((a) => {
|
|
2976
|
+
var r;
|
|
2977
|
+
return (r = a.parentNode) == null ? void 0 : r.removeChild(a);
|
|
2978
|
+
});
|
|
2979
|
+
}
|
|
2980
|
+
function at(e) {
|
|
2981
|
+
const n = e.parentNode;
|
|
2982
|
+
if (n) {
|
|
2983
|
+
for (; e.firstChild; ) n.insertBefore(e.firstChild, e);
|
|
2984
|
+
n.removeChild(e);
|
|
2985
|
+
}
|
|
2986
|
+
}
|
|
2987
|
+
function Yl(e) {
|
|
2988
|
+
const n = e.getAttribute("style");
|
|
2989
|
+
if (n != null) {
|
|
2990
|
+
const a = n.replace(Ol, "").replace(Kl, "").trim();
|
|
2991
|
+
a ? e.setAttribute("style", a) : e.removeAttribute("style");
|
|
2992
|
+
}
|
|
2993
|
+
const t = e.getAttribute("class");
|
|
2994
|
+
if (t != null) {
|
|
2995
|
+
const a = t.split(/\s+/).filter((r) => r && !ql.test(r)).join(" ");
|
|
2996
|
+
a ? e.setAttribute("class", a) : e.removeAttribute("class");
|
|
2997
|
+
}
|
|
2998
|
+
e.removeAttribute("lang"), e.removeAttribute("xml:lang"), e.removeAttribute("id"), e.removeAttribute("align"), e.removeAttribute("bgcolor");
|
|
2999
|
+
}
|
|
3000
|
+
function Gl(e) {
|
|
3001
|
+
if (!e || typeof DOMParser == "undefined") return e;
|
|
3002
|
+
const t = new DOMParser().parseFromString(e, "text/html").body;
|
|
3003
|
+
return t ? (Xl(t), t.querySelectorAll("xml, style, script, meta, link").forEach((a) => a.remove()), Array.from(t.querySelectorAll("*")).forEach((a) => {
|
|
3004
|
+
if (Wl.test(a.tagName) || a.tagName === "FONT") {
|
|
3005
|
+
at(a);
|
|
3006
|
+
return;
|
|
3007
|
+
}
|
|
3008
|
+
Yl(a);
|
|
3009
|
+
}), Array.from(t.querySelectorAll("span, div")).forEach((a) => {
|
|
3010
|
+
a.attributes.length === 0 && at(a);
|
|
3011
|
+
}), t.innerHTML) : e;
|
|
3012
|
+
}
|
|
3013
|
+
const Jl = { class: "editor-container" }, Ql = { class: "rtf-bubble-menu" }, Zl = /* @__PURE__ */ Z({
|
|
3014
|
+
__name: "editor-core",
|
|
2049
3015
|
props: {
|
|
2050
3016
|
modelValue: { default: "" },
|
|
2051
3017
|
minHeight: { default: "7em" },
|
|
2052
3018
|
disabled: { type: Boolean, default: !1 }
|
|
2053
3019
|
},
|
|
2054
3020
|
emits: ["update:modelValue"],
|
|
2055
|
-
setup(e, {
|
|
2056
|
-
|
|
2057
|
-
|
|
3021
|
+
setup(e, { emit: n }) {
|
|
3022
|
+
zt((f) => ({
|
|
3023
|
+
v3d306a89: f.minHeight
|
|
2058
3024
|
}));
|
|
2059
|
-
const
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
"
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
"link",
|
|
2074
|
-
"mediaEmbed",
|
|
2075
|
-
"insertTable",
|
|
2076
|
-
"blockQuote",
|
|
2077
|
-
"|",
|
|
2078
|
-
"alignment",
|
|
2079
|
-
"|",
|
|
2080
|
-
"bulletedList",
|
|
2081
|
-
"numberedList",
|
|
2082
|
-
"outdent",
|
|
2083
|
-
"indent",
|
|
2084
|
-
"|",
|
|
2085
|
-
"accessibilityHelp"
|
|
2086
|
-
],
|
|
2087
|
-
shouldNotGroupWhenFull: !1
|
|
2088
|
-
}, c = [
|
|
2089
|
-
tn,
|
|
2090
|
-
nn,
|
|
2091
|
-
on,
|
|
2092
|
-
ln,
|
|
2093
|
-
an,
|
|
2094
|
-
rn,
|
|
2095
|
-
sn,
|
|
2096
|
-
un,
|
|
2097
|
-
cn,
|
|
2098
|
-
dn,
|
|
2099
|
-
mn,
|
|
2100
|
-
fn,
|
|
2101
|
-
vn,
|
|
2102
|
-
pn,
|
|
2103
|
-
hn,
|
|
2104
|
-
bn,
|
|
2105
|
-
gn,
|
|
2106
|
-
yn,
|
|
2107
|
-
wn,
|
|
2108
|
-
kn,
|
|
2109
|
-
Cn,
|
|
2110
|
-
Vn,
|
|
2111
|
-
jn,
|
|
2112
|
-
Tn,
|
|
2113
|
-
xn,
|
|
2114
|
-
_n,
|
|
2115
|
-
Bn,
|
|
2116
|
-
Dn,
|
|
2117
|
-
In,
|
|
2118
|
-
Sn,
|
|
2119
|
-
Pn,
|
|
2120
|
-
En,
|
|
2121
|
-
An,
|
|
2122
|
-
$n,
|
|
2123
|
-
Mn,
|
|
2124
|
-
Rn,
|
|
2125
|
-
Fn,
|
|
2126
|
-
Ln,
|
|
2127
|
-
Nn,
|
|
2128
|
-
Un,
|
|
2129
|
-
On
|
|
2130
|
-
], p = {
|
|
2131
|
-
options: [
|
|
2132
|
-
{ model: "paragraph", title: L.Paragraph, class: "ck-heading_paragraph" },
|
|
2133
|
-
{ model: "heading1", view: "h1", title: L.Heading1, class: "ck-heading_heading1" },
|
|
2134
|
-
{ model: "heading2", view: "h2", title: L.Heading2, class: "ck-heading_heading2" },
|
|
2135
|
-
{ model: "heading3", view: "h3", title: L.Heading3, class: "ck-heading_heading3" },
|
|
2136
|
-
{ model: "heading4", view: "h4", title: L.Heading4, class: "ck-heading_heading4" },
|
|
2137
|
-
{ model: "heading5", view: "h5", title: L.Heading5, class: "ck-heading_heading5" },
|
|
2138
|
-
{ model: "heading6", view: "h6", title: L.Heading6, class: "ck-heading_heading6" }
|
|
2139
|
-
]
|
|
2140
|
-
}, i = {
|
|
2141
|
-
language: Ie.language,
|
|
2142
|
-
toolbar: u,
|
|
2143
|
-
plugins: c,
|
|
2144
|
-
balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
|
|
2145
|
-
heading: p,
|
|
2146
|
-
htmlSupport: {
|
|
2147
|
-
allow: [{ name: /^.*$/, styles: !0, attributes: !0, classes: !0 }]
|
|
2148
|
-
},
|
|
2149
|
-
image: {
|
|
2150
|
-
toolbar: [
|
|
2151
|
-
"toggleImageCaption",
|
|
2152
|
-
"imageTextAlternative",
|
|
2153
|
-
"|",
|
|
2154
|
-
"imageStyle:inline",
|
|
2155
|
-
"imageStyle:wrapText",
|
|
2156
|
-
"imageStyle:breakText",
|
|
2157
|
-
"|",
|
|
2158
|
-
"resizeImage"
|
|
2159
|
-
]
|
|
2160
|
-
},
|
|
2161
|
-
// initialData: '',
|
|
2162
|
-
link: {
|
|
2163
|
-
addTargetToExternalLinks: !0,
|
|
2164
|
-
defaultProtocol: "https://",
|
|
2165
|
-
decorators: {
|
|
2166
|
-
toggleDownloadable: {
|
|
2167
|
-
mode: "manual",
|
|
2168
|
-
label: L.Downloadable,
|
|
2169
|
-
attributes: { download: "file" }
|
|
3025
|
+
const t = e, a = n, r = rn({
|
|
3026
|
+
content: t.modelValue,
|
|
3027
|
+
editable: !t.disabled,
|
|
3028
|
+
extensions: [
|
|
3029
|
+
on.configure({ link: !1 }),
|
|
3030
|
+
Pl.configure({ openOnClick: !1, autolink: !0, defaultProtocol: "https" }),
|
|
3031
|
+
Jt.configure({
|
|
3032
|
+
inline: !0,
|
|
3033
|
+
allowBase64: !0,
|
|
3034
|
+
resize: {
|
|
3035
|
+
enabled: !0,
|
|
3036
|
+
directions: ["top", "right", "bottom", "left", "top-left", "top-right", "bottom-left", "bottom-right"],
|
|
3037
|
+
minWidth: 24,
|
|
3038
|
+
minHeight: 24
|
|
2170
3039
|
}
|
|
2171
|
-
}
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
3040
|
+
}),
|
|
3041
|
+
ln.configure({ types: ["heading", "paragraph"] }),
|
|
3042
|
+
Zt.configure({ resizable: !0 }),
|
|
3043
|
+
nn,
|
|
3044
|
+
tn,
|
|
3045
|
+
en,
|
|
3046
|
+
Qt.configure({ placeholder: "" }),
|
|
3047
|
+
Ll,
|
|
3048
|
+
$l,
|
|
3049
|
+
Sl,
|
|
3050
|
+
zl
|
|
3051
|
+
],
|
|
3052
|
+
editorProps: {
|
|
3053
|
+
attributes: { class: "rtf-content" },
|
|
3054
|
+
transformPastedHTML: (f) => Gl(f),
|
|
3055
|
+
handlePaste: Rl(() => r.value)
|
|
2186
3056
|
},
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
lt(() => {
|
|
2191
|
-
a.value = !0;
|
|
3057
|
+
onUpdate: ({ editor: f }) => {
|
|
3058
|
+
a("update:modelValue", f.getHTML());
|
|
3059
|
+
}
|
|
2192
3060
|
});
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
3061
|
+
se(
|
|
3062
|
+
() => t.modelValue,
|
|
3063
|
+
(f) => {
|
|
3064
|
+
const h = r.value;
|
|
3065
|
+
if (!h) return;
|
|
3066
|
+
const L = f != null ? f : "";
|
|
3067
|
+
L !== h.getHTML() && h.commands.setContent(L, { emitUpdate: !1 });
|
|
3068
|
+
}
|
|
3069
|
+
), se(
|
|
3070
|
+
() => t.disabled,
|
|
3071
|
+
(f) => {
|
|
3072
|
+
var h;
|
|
3073
|
+
return (h = r.value) == null ? void 0 : h.setEditable(!f);
|
|
3074
|
+
}
|
|
3075
|
+
), se(r, (f) => f == null ? void 0 : f.setEditable(!t.disabled));
|
|
3076
|
+
const d = At(r), c = C(() => {
|
|
3077
|
+
var f, h, L, $, A;
|
|
3078
|
+
return d.value, {
|
|
3079
|
+
bold: !!((f = r.value) != null && f.isActive("bold")),
|
|
3080
|
+
italic: !!((h = r.value) != null && h.isActive("italic")),
|
|
3081
|
+
link: !!((L = r.value) != null && L.isActive("link")),
|
|
3082
|
+
bulletList: !!(($ = r.value) != null && $.isActive("bulletList")),
|
|
3083
|
+
orderedList: !!((A = r.value) != null && A.isActive("orderedList"))
|
|
3084
|
+
};
|
|
3085
|
+
});
|
|
3086
|
+
function g({ state: f }) {
|
|
3087
|
+
return !f.selection.empty && !(f.selection instanceof an);
|
|
3088
|
+
}
|
|
3089
|
+
function w(f) {
|
|
3090
|
+
var h;
|
|
3091
|
+
(h = r.value) == null || h.chain().focus()[f]().run();
|
|
3092
|
+
}
|
|
3093
|
+
function v() {
|
|
3094
|
+
const f = r.value;
|
|
3095
|
+
if (!f) return;
|
|
3096
|
+
if (f.isActive("link")) {
|
|
3097
|
+
f.chain().focus().unsetLink().run();
|
|
3098
|
+
return;
|
|
3099
|
+
}
|
|
3100
|
+
const h = window.prompt("URL");
|
|
3101
|
+
h && f.chain().focus().extendMarkRange("link").setLink({ href: h }).run();
|
|
3102
|
+
}
|
|
3103
|
+
return (f, h) => {
|
|
3104
|
+
const L = P("v-btn");
|
|
3105
|
+
return j(), Q("div", Jl, [
|
|
3106
|
+
i(Hl, { editor: l(r) }, null, 8, ["editor"]),
|
|
3107
|
+
i(l(sn), {
|
|
3108
|
+
class: "editor-container__editor",
|
|
3109
|
+
editor: l(r)
|
|
3110
|
+
}, null, 8, ["editor"]),
|
|
3111
|
+
l(r) ? (j(), H(l(un), {
|
|
3112
|
+
key: 0,
|
|
3113
|
+
editor: l(r),
|
|
3114
|
+
"should-show": g
|
|
3115
|
+
}, {
|
|
3116
|
+
default: s(() => [
|
|
3117
|
+
ae("div", Ql, [
|
|
3118
|
+
i(L, {
|
|
3119
|
+
icon: "",
|
|
3120
|
+
size: "small",
|
|
3121
|
+
variant: "text",
|
|
3122
|
+
active: c.value.bold,
|
|
3123
|
+
onClick: h[0] || (h[0] = ($) => w("toggleBold"))
|
|
3124
|
+
}, {
|
|
3125
|
+
default: s(() => [
|
|
3126
|
+
i(l(B), { name: "mdi-format-bold" })
|
|
3127
|
+
]),
|
|
3128
|
+
_: 1
|
|
3129
|
+
}, 8, ["active"]),
|
|
3130
|
+
i(L, {
|
|
3131
|
+
icon: "",
|
|
3132
|
+
size: "small",
|
|
3133
|
+
variant: "text",
|
|
3134
|
+
active: c.value.italic,
|
|
3135
|
+
onClick: h[1] || (h[1] = ($) => w("toggleItalic"))
|
|
3136
|
+
}, {
|
|
3137
|
+
default: s(() => [
|
|
3138
|
+
i(l(B), { name: "mdi-format-italic" })
|
|
3139
|
+
]),
|
|
3140
|
+
_: 1
|
|
3141
|
+
}, 8, ["active"]),
|
|
3142
|
+
i(L, {
|
|
3143
|
+
icon: "",
|
|
3144
|
+
size: "small",
|
|
3145
|
+
variant: "text",
|
|
3146
|
+
active: c.value.link,
|
|
3147
|
+
onClick: v
|
|
3148
|
+
}, {
|
|
3149
|
+
default: s(() => [
|
|
3150
|
+
i(l(B), { name: "mdi-link-variant" })
|
|
3151
|
+
]),
|
|
3152
|
+
_: 1
|
|
3153
|
+
}, 8, ["active"]),
|
|
3154
|
+
i(L, {
|
|
3155
|
+
icon: "",
|
|
3156
|
+
size: "small",
|
|
3157
|
+
variant: "text",
|
|
3158
|
+
active: c.value.bulletList,
|
|
3159
|
+
onClick: h[2] || (h[2] = ($) => w("toggleBulletList"))
|
|
3160
|
+
}, {
|
|
3161
|
+
default: s(() => [
|
|
3162
|
+
i(l(B), { name: "mdi-format-list-bulleted" })
|
|
3163
|
+
]),
|
|
3164
|
+
_: 1
|
|
3165
|
+
}, 8, ["active"]),
|
|
3166
|
+
i(L, {
|
|
3167
|
+
icon: "",
|
|
3168
|
+
size: "small",
|
|
3169
|
+
variant: "text",
|
|
3170
|
+
active: c.value.orderedList,
|
|
3171
|
+
onClick: h[3] || (h[3] = ($) => w("toggleOrderedList"))
|
|
3172
|
+
}, {
|
|
3173
|
+
default: s(() => [
|
|
3174
|
+
i(l(B), { name: "mdi-format-list-numbered" })
|
|
3175
|
+
]),
|
|
3176
|
+
_: 1
|
|
3177
|
+
}, 8, ["active"])
|
|
3178
|
+
])
|
|
3179
|
+
]),
|
|
3180
|
+
_: 1
|
|
3181
|
+
}, 8, ["editor"])) : G("", !0)
|
|
2212
3182
|
]);
|
|
2213
3183
|
};
|
|
2214
3184
|
}
|
|
2215
|
-
}),
|
|
3185
|
+
}), xt = /* @__PURE__ */ Z({
|
|
2216
3186
|
__name: "df-rtf-editor",
|
|
2217
|
-
props: /* @__PURE__ */
|
|
3187
|
+
props: /* @__PURE__ */ ve({
|
|
2218
3188
|
minHeight: {},
|
|
2219
3189
|
control: {},
|
|
2220
3190
|
modelValue: {},
|
|
@@ -2230,64 +3200,64 @@ const pl = {
|
|
|
2230
3200
|
passthroughAttrs: {},
|
|
2231
3201
|
density: {},
|
|
2232
3202
|
variant: {}
|
|
2233
|
-
},
|
|
3203
|
+
}, J(U({}, pe), { minHeight: void 0 })),
|
|
2234
3204
|
emits: ["update:modelValue", "click:clear"],
|
|
2235
|
-
setup(e, { emit:
|
|
2236
|
-
const
|
|
2237
|
-
return (
|
|
2238
|
-
class: ["
|
|
3205
|
+
setup(e, { emit: n }) {
|
|
3206
|
+
const t = e, a = n, { densityClass: r, value: d, vuetifyBindings: c } = me(t, a);
|
|
3207
|
+
return (g, w) => (j(), H(l(Xe), X(t, {
|
|
3208
|
+
class: ["rtf-editor", l(r)]
|
|
2239
3209
|
}), {
|
|
2240
|
-
default:
|
|
2241
|
-
|
|
3210
|
+
default: s((v) => [
|
|
3211
|
+
i(Zl, X({
|
|
2242
3212
|
ref: "$editor",
|
|
2243
|
-
modelValue:
|
|
2244
|
-
"onUpdate:modelValue":
|
|
3213
|
+
modelValue: l(d),
|
|
3214
|
+
"onUpdate:modelValue": w[0] || (w[0] = (f) => ke(d) ? d.value = f : null),
|
|
2245
3215
|
class: { "mt-6": !!e.label },
|
|
2246
3216
|
"min-height": e.minHeight,
|
|
2247
|
-
disabled:
|
|
3217
|
+
disabled: l(c).disabled
|
|
2248
3218
|
}, e.passthroughAttrs, {
|
|
2249
|
-
onFocusin: (f) =>
|
|
2250
|
-
onFocusout: (f) =>
|
|
3219
|
+
onFocusin: (f) => v.focus(),
|
|
3220
|
+
onFocusout: (f) => v.blur()
|
|
2251
3221
|
}), null, 16, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
|
|
2252
3222
|
]),
|
|
2253
3223
|
_: 1
|
|
2254
3224
|
}, 16, ["class"]));
|
|
2255
3225
|
}
|
|
2256
3226
|
});
|
|
2257
|
-
function
|
|
2258
|
-
return e.map((
|
|
3227
|
+
function ea(e) {
|
|
3228
|
+
return e.map((n) => ({ value: n.id, title: n.text, icon: n.icon }));
|
|
2259
3229
|
}
|
|
2260
|
-
function
|
|
2261
|
-
var
|
|
2262
|
-
return e == null || tt(e) && e.length === 0 ? null :
|
|
3230
|
+
function re(e, n) {
|
|
3231
|
+
var t;
|
|
3232
|
+
return e == null || tt(e) && e.length === 0 ? null : n ? rt(e) : tt(e) ? (t = st(e)) != null ? t : null : e;
|
|
2263
3233
|
}
|
|
2264
|
-
function
|
|
2265
|
-
if (
|
|
2266
|
-
const
|
|
2267
|
-
return e.filter((
|
|
3234
|
+
function ze(e, n) {
|
|
3235
|
+
if (n == null) return [];
|
|
3236
|
+
const t = rt(n);
|
|
3237
|
+
return e.filter((a) => t.some((r) => r === a.id));
|
|
2268
3238
|
}
|
|
2269
|
-
function
|
|
2270
|
-
var
|
|
2271
|
-
const
|
|
2272
|
-
if (
|
|
2273
|
-
|
|
3239
|
+
function Le(e, n, t, a, r) {
|
|
3240
|
+
var c;
|
|
3241
|
+
const d = re(e, t);
|
|
3242
|
+
if (d == null) {
|
|
3243
|
+
n.value = t ? [] : null;
|
|
2274
3244
|
return;
|
|
2275
3245
|
}
|
|
2276
|
-
if (
|
|
2277
|
-
|
|
2278
|
-
else if (
|
|
2279
|
-
|
|
3246
|
+
if (t)
|
|
3247
|
+
a ? n.value = d : n.value = ze(r, d).map((g) => g.id);
|
|
3248
|
+
else if (a)
|
|
3249
|
+
n.value = d;
|
|
2280
3250
|
else {
|
|
2281
|
-
const
|
|
2282
|
-
|
|
3251
|
+
const g = st(ze(r, d));
|
|
3252
|
+
n.value = (c = g == null ? void 0 : g.id) != null ? c : null;
|
|
2283
3253
|
}
|
|
2284
3254
|
}
|
|
2285
|
-
const
|
|
3255
|
+
const ta = {
|
|
2286
3256
|
key: 0,
|
|
2287
3257
|
class: "me-1"
|
|
2288
|
-
},
|
|
3258
|
+
}, na = /* @__PURE__ */ Z({
|
|
2289
3259
|
__name: "df-select",
|
|
2290
|
-
props: /* @__PURE__ */
|
|
3260
|
+
props: /* @__PURE__ */ ve({
|
|
2291
3261
|
choices: {},
|
|
2292
3262
|
multiple: { type: Boolean },
|
|
2293
3263
|
allowTags: { type: Boolean },
|
|
@@ -2307,7 +3277,7 @@ const Cl = {
|
|
|
2307
3277
|
passthroughAttrs: {},
|
|
2308
3278
|
density: {},
|
|
2309
3279
|
variant: {}
|
|
2310
|
-
},
|
|
3280
|
+
}, J(U({}, pe), {
|
|
2311
3281
|
choices: void 0,
|
|
2312
3282
|
multiple: !1,
|
|
2313
3283
|
allowTags: !1,
|
|
@@ -2315,235 +3285,235 @@ const Cl = {
|
|
|
2315
3285
|
fetchChoices: void 0
|
|
2316
3286
|
})),
|
|
2317
3287
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
2318
|
-
setup(e, { emit:
|
|
2319
|
-
var
|
|
2320
|
-
const
|
|
3288
|
+
setup(e, { emit: n }) {
|
|
3289
|
+
var Ge;
|
|
3290
|
+
const t = e, { choices: a, multiple: r, allowTags: d, allowNull: c, cssClass: g } = Ee(t), w = n, v = F(null), {
|
|
2321
3291
|
densityClass: f,
|
|
2322
|
-
isRendered:
|
|
2323
|
-
label:
|
|
2324
|
-
showErrors:
|
|
2325
|
-
touched:
|
|
2326
|
-
value:
|
|
2327
|
-
visibilityClass:
|
|
2328
|
-
vuetifyBindings:
|
|
2329
|
-
} =
|
|
2330
|
-
(
|
|
2331
|
-
function
|
|
2332
|
-
|
|
3292
|
+
isRendered: h,
|
|
3293
|
+
label: L,
|
|
3294
|
+
showErrors: $,
|
|
3295
|
+
touched: A,
|
|
3296
|
+
value: V,
|
|
3297
|
+
visibilityClass: M,
|
|
3298
|
+
vuetifyBindings: I
|
|
3299
|
+
} = me(t, w), b = F(null), D = F(!1), O = F([]), E = C(() => l(D) ? l(O) : l(a) || []), q = F(!1), S = C(() => ea(E.value)), y = F(null), o = F(0), u = F(!1);
|
|
3300
|
+
(Ge = a.value) != null && Ge.length && t.fetchChoices !== void 0 && console.warn("Both choices and fetchChoices are set. Only one of them should be set.");
|
|
3301
|
+
function m(T) {
|
|
3302
|
+
w("update:modelValueDisplay", ze(E.value, T));
|
|
2333
3303
|
}
|
|
2334
|
-
const
|
|
2335
|
-
function
|
|
2336
|
-
|
|
3304
|
+
const x = F(!1);
|
|
3305
|
+
function N(T) {
|
|
3306
|
+
x.value = !0;
|
|
2337
3307
|
try {
|
|
2338
|
-
|
|
3308
|
+
V.value = T;
|
|
2339
3309
|
} finally {
|
|
2340
|
-
Kt(
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
a.value,
|
|
3310
|
+
Kt(re(V.value, r.value), T) || Le(
|
|
3311
|
+
re(V.value, r.value),
|
|
3312
|
+
b,
|
|
2344
3313
|
r.value,
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
3314
|
+
d.value,
|
|
3315
|
+
E.value
|
|
3316
|
+
), Oe(() => {
|
|
3317
|
+
x.value = !1;
|
|
2348
3318
|
});
|
|
2349
3319
|
}
|
|
2350
3320
|
}
|
|
2351
|
-
function
|
|
2352
|
-
if (!
|
|
2353
|
-
const
|
|
2354
|
-
return
|
|
3321
|
+
function W(T) {
|
|
3322
|
+
if (!T) return 0;
|
|
3323
|
+
const R = T.getBoundingClientRect(), ee = window.getComputedStyle(T);
|
|
3324
|
+
return R.width + parseFloat(ee.marginLeft) + parseFloat(ee.marginRight);
|
|
2355
3325
|
}
|
|
2356
|
-
function
|
|
2357
|
-
var
|
|
2358
|
-
if (
|
|
2359
|
-
const
|
|
2360
|
-
let
|
|
2361
|
-
|
|
2362
|
-
|
|
3326
|
+
function te() {
|
|
3327
|
+
var T;
|
|
3328
|
+
if (r.value && c.value && b.value != null && b.value.length > 0 && v.value) {
|
|
3329
|
+
const R = v.value.$el, ee = (T = R.querySelector(".v-input__control")) == null ? void 0 : T.clientWidth, ne = R.querySelector(".v-field__input"), z = ne.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), le = window.getComputedStyle(ne);
|
|
3330
|
+
let xe = parseFloat(le.paddingLeft) + parseFloat(le.paddingRight);
|
|
3331
|
+
z.forEach((Lt) => {
|
|
3332
|
+
xe += W(Lt);
|
|
2363
3333
|
});
|
|
2364
|
-
const
|
|
2365
|
-
|
|
3334
|
+
const jt = W(R.querySelector(".v-field .v-field__clearable")), _t = W(R.querySelector(".v-field .v-field__append-inner")), Bt = 2;
|
|
3335
|
+
u.value = ee - xe - z.length * Bt - _t < jt;
|
|
2366
3336
|
} else
|
|
2367
|
-
|
|
3337
|
+
u.value = !1;
|
|
2368
3338
|
}
|
|
2369
|
-
function T
|
|
2370
|
-
const
|
|
2371
|
-
|
|
3339
|
+
function _(T) {
|
|
3340
|
+
const R = T.target;
|
|
3341
|
+
R instanceof HTMLElement && R.closest(".v-chip__close") && (T.stopPropagation(), T.preventDefault());
|
|
2372
3342
|
}
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
(
|
|
2376
|
-
|
|
2377
|
-
const
|
|
2378
|
-
|
|
3343
|
+
se(
|
|
3344
|
+
b,
|
|
3345
|
+
(T) => {
|
|
3346
|
+
I.value.readonly || Oe(() => {
|
|
3347
|
+
const R = re(T, r.value);
|
|
3348
|
+
m(R), N(R);
|
|
2379
3349
|
});
|
|
2380
3350
|
},
|
|
2381
3351
|
{ deep: !0 }
|
|
2382
|
-
),
|
|
2383
|
-
|
|
2384
|
-
(
|
|
2385
|
-
if (!
|
|
2386
|
-
const
|
|
2387
|
-
|
|
3352
|
+
), se(
|
|
3353
|
+
V,
|
|
3354
|
+
(T) => {
|
|
3355
|
+
if (!x.value) {
|
|
3356
|
+
const R = re(T, r.value);
|
|
3357
|
+
Le(R, b, r.value, !1, E.value);
|
|
2388
3358
|
}
|
|
2389
3359
|
},
|
|
2390
3360
|
{ deep: !0 }
|
|
2391
|
-
),
|
|
2392
|
-
|
|
3361
|
+
), se(x, () => {
|
|
3362
|
+
x.value || te();
|
|
2393
3363
|
});
|
|
2394
|
-
function
|
|
2395
|
-
|
|
3364
|
+
function ie() {
|
|
3365
|
+
y.value != null && y.value.length > 0 && (y.value = null, k());
|
|
2396
3366
|
}
|
|
2397
3367
|
function be() {
|
|
2398
|
-
if (
|
|
2399
|
-
const
|
|
2400
|
-
|
|
3368
|
+
if (ie(), I.value.readonly || d.value) return;
|
|
3369
|
+
const T = re(b.value, r.value);
|
|
3370
|
+
Le(T, b, r.value, !1, E.value), N(T);
|
|
2401
3371
|
}
|
|
2402
|
-
function
|
|
2403
|
-
if (
|
|
2404
|
-
|
|
3372
|
+
function Ae(T, R) {
|
|
3373
|
+
if (T.stopPropagation(), I.value.readonly || d.value) {
|
|
3374
|
+
d.value && (b.value = b.value.filter((ne) => ne !== R));
|
|
2405
3375
|
return;
|
|
2406
3376
|
}
|
|
2407
|
-
let
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
) :
|
|
3377
|
+
let ee;
|
|
3378
|
+
r.value && Array.isArray(b.value) ? ee = re(
|
|
3379
|
+
b.value.filter((ne) => ne !== R),
|
|
3380
|
+
r.value
|
|
3381
|
+
) : ee = null, Le(ee, b, r.value, !1, E.value), N(ee);
|
|
2412
3382
|
}
|
|
2413
|
-
function
|
|
2414
|
-
return
|
|
2415
|
-
if (
|
|
2416
|
-
const
|
|
2417
|
-
|
|
3383
|
+
function k(T, R) {
|
|
3384
|
+
return Te(this, null, function* () {
|
|
3385
|
+
if (I.value.readonly || (y.value = T, a.value || t.fetchChoices === void 0)) return;
|
|
3386
|
+
const ee = ++o.value;
|
|
3387
|
+
q.value = !0;
|
|
2418
3388
|
try {
|
|
2419
|
-
const
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
),
|
|
2423
|
-
if (
|
|
2424
|
-
|
|
3389
|
+
const ne = ze(
|
|
3390
|
+
E.value,
|
|
3391
|
+
re(b.value, r.value)
|
|
3392
|
+
), z = yield t.fetchChoices(T, R);
|
|
3393
|
+
if (ee !== o.value) return;
|
|
3394
|
+
O.value = Xt([...ne, ...z], "id"), D.value = !0;
|
|
2425
3395
|
} finally {
|
|
2426
|
-
|
|
3396
|
+
q.value = !1;
|
|
2427
3397
|
}
|
|
2428
3398
|
});
|
|
2429
3399
|
}
|
|
2430
|
-
function
|
|
2431
|
-
let
|
|
2432
|
-
!
|
|
3400
|
+
function p() {
|
|
3401
|
+
let T = V.value;
|
|
3402
|
+
!c.value && T == null && S.value.length && (T = S.value[0].value), T = re(T, r.value), Le(T, b, r.value, d.value, E.value), m(T), N(T);
|
|
2433
3403
|
}
|
|
2434
|
-
return
|
|
2435
|
-
|
|
2436
|
-
}), (
|
|
2437
|
-
const
|
|
2438
|
-
return
|
|
3404
|
+
return p(), t.fetchChoices !== void 0 && k(void 0, V.value).then(() => {
|
|
3405
|
+
p();
|
|
3406
|
+
}), (T, R) => {
|
|
3407
|
+
const ee = P("v-chip"), ne = P("v-list-item");
|
|
3408
|
+
return l(h) ? (j(), H(Ne(l(d) ? "v-combobox" : "v-autocomplete"), X({
|
|
2439
3409
|
key: 0,
|
|
2440
3410
|
ref_key: "dfSelectRef",
|
|
2441
|
-
ref:
|
|
2442
|
-
modelValue:
|
|
2443
|
-
"onUpdate:modelValue":
|
|
2444
|
-
class: [
|
|
2445
|
-
items:
|
|
3411
|
+
ref: v,
|
|
3412
|
+
modelValue: b.value,
|
|
3413
|
+
"onUpdate:modelValue": R[0] || (R[0] = (z) => b.value = z),
|
|
3414
|
+
class: [l(g), l(f), l(M), { "df-select-multirow": u.value }],
|
|
3415
|
+
items: S.value,
|
|
2446
3416
|
"return-object": !1,
|
|
2447
3417
|
chips: "",
|
|
2448
3418
|
"auto-select-first": !0,
|
|
2449
|
-
"closable-chips":
|
|
2450
|
-
clearable:
|
|
2451
|
-
multiple:
|
|
2452
|
-
loading:
|
|
3419
|
+
"closable-chips": l(c) || l(r) && b.value.length > 1,
|
|
3420
|
+
clearable: l(c),
|
|
3421
|
+
multiple: l(r),
|
|
3422
|
+
loading: q.value,
|
|
2453
3423
|
"hide-selected": !1,
|
|
2454
|
-
"aria-describedby":
|
|
3424
|
+
"aria-describedby": l(I).helpText ? `${l(I).name}-help` : null,
|
|
2455
3425
|
"menu-props": { maxHeight: "400" },
|
|
2456
|
-
search:
|
|
2457
|
-
},
|
|
2458
|
-
"onUpdate:search":
|
|
3426
|
+
search: y.value
|
|
3427
|
+
}, l(I), {
|
|
3428
|
+
"onUpdate:search": R[1] || (R[1] = (z) => k(z, void 0)),
|
|
2459
3429
|
"onUpdate:modelValue": be,
|
|
2460
|
-
"onClick:clear":
|
|
2461
|
-
onBlur:
|
|
2462
|
-
onMousedownCapture:
|
|
2463
|
-
}),
|
|
2464
|
-
chip:
|
|
2465
|
-
(
|
|
2466
|
-
key:
|
|
3430
|
+
"onClick:clear": R[2] || (R[2] = (z) => b.value = null),
|
|
3431
|
+
onBlur: R[3] || (R[3] = (z) => A.value = !0),
|
|
3432
|
+
onMousedownCapture: R[4] || (R[4] = (z) => _(z))
|
|
3433
|
+
}), qe({
|
|
3434
|
+
chip: s(({ item: z }) => [
|
|
3435
|
+
(j(), H(ee, {
|
|
3436
|
+
key: z.value,
|
|
2467
3437
|
label: "",
|
|
2468
3438
|
size: "small",
|
|
2469
3439
|
class: "d-flex align-middle",
|
|
2470
|
-
variant:
|
|
2471
|
-
closable:
|
|
2472
|
-
"onClick:close": (
|
|
3440
|
+
variant: l(r) ? "tonal" : "text",
|
|
3441
|
+
closable: l(r),
|
|
3442
|
+
"onClick:close": (le) => Ae(le, z.value)
|
|
2473
3443
|
}, {
|
|
2474
|
-
prepend:
|
|
2475
|
-
var
|
|
3444
|
+
prepend: s(() => {
|
|
3445
|
+
var le;
|
|
2476
3446
|
return [
|
|
2477
|
-
(
|
|
3447
|
+
(le = z.raw) != null && le.icon ? (j(), H(l(B), {
|
|
2478
3448
|
key: 0,
|
|
2479
3449
|
class: "me-1",
|
|
2480
|
-
name:
|
|
2481
|
-
}, null, 8, ["name"])) :
|
|
3450
|
+
name: z.raw.icon
|
|
3451
|
+
}, null, 8, ["name"])) : G("", !0)
|
|
2482
3452
|
];
|
|
2483
3453
|
}),
|
|
2484
|
-
default:
|
|
2485
|
-
|
|
2486
|
-
class:
|
|
2487
|
-
},
|
|
3454
|
+
default: s(() => [
|
|
3455
|
+
ae("span", {
|
|
3456
|
+
class: ce({ "text-body-1": !l(r) })
|
|
3457
|
+
}, K(z.title), 3)
|
|
2488
3458
|
]),
|
|
2489
3459
|
_: 2
|
|
2490
3460
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
2491
3461
|
]),
|
|
2492
|
-
label:
|
|
2493
|
-
|
|
2494
|
-
data:
|
|
2495
|
-
label:
|
|
3462
|
+
label: s((z) => [
|
|
3463
|
+
i(l(de), {
|
|
3464
|
+
data: z,
|
|
3465
|
+
label: l(L)
|
|
2496
3466
|
}, null, 8, ["data", "label"])
|
|
2497
3467
|
]),
|
|
2498
|
-
item:
|
|
2499
|
-
|
|
2500
|
-
prepend:
|
|
2501
|
-
var
|
|
3468
|
+
item: s(({ props: z, item: le }) => [
|
|
3469
|
+
i(ne, he(ge(z)), {
|
|
3470
|
+
prepend: s(() => {
|
|
3471
|
+
var xe;
|
|
2502
3472
|
return [
|
|
2503
|
-
(
|
|
2504
|
-
|
|
3473
|
+
(xe = le.raw) != null && xe.icon ? (j(), Q("span", ta, [
|
|
3474
|
+
i(l(B), {
|
|
2505
3475
|
class: "action-icon",
|
|
2506
|
-
name:
|
|
3476
|
+
name: le.raw.icon
|
|
2507
3477
|
}, null, 8, ["name"])
|
|
2508
|
-
])) :
|
|
3478
|
+
])) : G("", !0)
|
|
2509
3479
|
];
|
|
2510
3480
|
}),
|
|
2511
3481
|
_: 2
|
|
2512
3482
|
}, 1040)
|
|
2513
3483
|
]),
|
|
2514
|
-
message:
|
|
2515
|
-
|
|
2516
|
-
message:
|
|
2517
|
-
errors:
|
|
3484
|
+
message: s(({ message: z }) => [
|
|
3485
|
+
i(l(ue), {
|
|
3486
|
+
message: z,
|
|
3487
|
+
errors: l($)
|
|
2518
3488
|
}, null, 8, ["message", "errors"])
|
|
2519
3489
|
]),
|
|
2520
3490
|
_: 2
|
|
2521
3491
|
}, [
|
|
2522
|
-
|
|
3492
|
+
T.$slots["append-inner"] ? {
|
|
2523
3493
|
name: "append-inner",
|
|
2524
|
-
fn:
|
|
2525
|
-
|
|
3494
|
+
fn: s((z) => [
|
|
3495
|
+
we(T.$slots, "append-inner", he(ge(z)), void 0, !0)
|
|
2526
3496
|
]),
|
|
2527
3497
|
key: "0"
|
|
2528
3498
|
} : void 0,
|
|
2529
|
-
|
|
3499
|
+
T.$slots["prepend-inner"] ? {
|
|
2530
3500
|
name: "prepend-inner",
|
|
2531
|
-
fn:
|
|
2532
|
-
|
|
3501
|
+
fn: s((z) => [
|
|
3502
|
+
we(T.$slots, "prepend-inner", he(ge(z)), void 0, !0)
|
|
2533
3503
|
]),
|
|
2534
3504
|
key: "1"
|
|
2535
3505
|
} : void 0
|
|
2536
|
-
]), 1040, ["modelValue", "class", "items", "closable-chips", "clearable", "multiple", "loading", "aria-describedby", "search"])) :
|
|
3506
|
+
]), 1040, ["modelValue", "class", "items", "closable-chips", "clearable", "multiple", "loading", "aria-describedby", "search"])) : G("", !0);
|
|
2537
3507
|
};
|
|
2538
3508
|
}
|
|
2539
|
-
}),
|
|
2540
|
-
const
|
|
2541
|
-
for (const [
|
|
2542
|
-
|
|
2543
|
-
return
|
|
2544
|
-
}, Vt = /* @__PURE__ */
|
|
3509
|
+
}), la = (e, n) => {
|
|
3510
|
+
const t = e.__vccOpts || e;
|
|
3511
|
+
for (const [a, r] of n)
|
|
3512
|
+
t[a] = r;
|
|
3513
|
+
return t;
|
|
3514
|
+
}, Vt = /* @__PURE__ */ la(na, [["__scopeId", "data-v-7e5aa3b6"]]), Tt = /* @__PURE__ */ Z({
|
|
2545
3515
|
__name: "df-text-area",
|
|
2546
|
-
props: /* @__PURE__ */
|
|
3516
|
+
props: /* @__PURE__ */ ve({
|
|
2547
3517
|
rows: {},
|
|
2548
3518
|
maxRows: {},
|
|
2549
3519
|
control: {},
|
|
@@ -2560,143 +3530,141 @@ const Cl = {
|
|
|
2560
3530
|
passthroughAttrs: {},
|
|
2561
3531
|
density: {},
|
|
2562
3532
|
variant: {}
|
|
2563
|
-
},
|
|
3533
|
+
}, J(U({}, pe), {
|
|
2564
3534
|
rows: void 0,
|
|
2565
3535
|
maxRows: void 0
|
|
2566
3536
|
})),
|
|
2567
3537
|
emits: ["update:modelValue", "click:clear"],
|
|
2568
|
-
setup(e, { emit:
|
|
2569
|
-
const
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
), { cssClass:
|
|
2573
|
-
return (
|
|
2574
|
-
const
|
|
2575
|
-
return
|
|
3538
|
+
setup(e, { emit: n }) {
|
|
3539
|
+
const t = e, a = n, { densityClass: r, isRendered: d, label: c, showErrors: g, touched: w, value: v, visibilityClass: f, vuetifyBindings: h } = me(
|
|
3540
|
+
t,
|
|
3541
|
+
a
|
|
3542
|
+
), { cssClass: L } = Ee(t);
|
|
3543
|
+
return ($, A) => {
|
|
3544
|
+
const V = P("v-textarea");
|
|
3545
|
+
return l(d) ? (j(), Q("div", {
|
|
2576
3546
|
key: 0,
|
|
2577
|
-
class:
|
|
3547
|
+
class: ce(["df-textarea-container", [l(r), l(f)]])
|
|
2578
3548
|
}, [
|
|
2579
|
-
|
|
2580
|
-
modelValue:
|
|
2581
|
-
"onUpdate:modelValue":
|
|
2582
|
-
class:
|
|
3549
|
+
i(V, X({
|
|
3550
|
+
modelValue: l(v),
|
|
3551
|
+
"onUpdate:modelValue": A[0] || (A[0] = (M) => ke(v) ? v.value = M : null),
|
|
3552
|
+
class: l(L),
|
|
2583
3553
|
rows: e.rows,
|
|
2584
3554
|
"auto-grow": (e.maxRows || 0) > 0,
|
|
2585
3555
|
"max-rows": e.maxRows
|
|
2586
|
-
},
|
|
2587
|
-
onBlur:
|
|
3556
|
+
}, l(h), {
|
|
3557
|
+
onBlur: A[1] || (A[1] = (M) => w.value = !0)
|
|
2588
3558
|
}), {
|
|
2589
|
-
label:
|
|
2590
|
-
|
|
2591
|
-
data:
|
|
2592
|
-
label:
|
|
3559
|
+
label: s((M) => [
|
|
3560
|
+
i(l(de), {
|
|
3561
|
+
data: M,
|
|
3562
|
+
label: l(c)
|
|
2593
3563
|
}, null, 8, ["data", "label"])
|
|
2594
3564
|
]),
|
|
2595
|
-
message:
|
|
2596
|
-
|
|
2597
|
-
message:
|
|
2598
|
-
errors:
|
|
3565
|
+
message: s(({ message: M }) => [
|
|
3566
|
+
i(l(ue), {
|
|
3567
|
+
message: M,
|
|
3568
|
+
errors: l(g)
|
|
2599
3569
|
}, null, 8, ["message", "errors"])
|
|
2600
3570
|
]),
|
|
2601
3571
|
_: 1
|
|
2602
3572
|
}, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])
|
|
2603
|
-
], 2)) :
|
|
3573
|
+
], 2)) : G("", !0);
|
|
2604
3574
|
};
|
|
2605
3575
|
}
|
|
2606
|
-
}),
|
|
3576
|
+
}), aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2607
3577
|
__proto__: null,
|
|
2608
|
-
DfActions:
|
|
2609
|
-
DfCheckbox:
|
|
2610
|
-
DfColor:
|
|
2611
|
-
DfDateTime:
|
|
2612
|
-
DfFile:
|
|
2613
|
-
DfInput:
|
|
2614
|
-
DfInputHint:
|
|
2615
|
-
DfLabel:
|
|
2616
|
-
DfRtfEditor:
|
|
3578
|
+
DfActions: mt,
|
|
3579
|
+
DfCheckbox: ft,
|
|
3580
|
+
DfColor: vt,
|
|
3581
|
+
DfDateTime: pt,
|
|
3582
|
+
DfFile: bt,
|
|
3583
|
+
DfInput: ht,
|
|
3584
|
+
DfInputHint: ue,
|
|
3585
|
+
DfLabel: de,
|
|
3586
|
+
DfRtfEditor: xt,
|
|
2617
3587
|
DfSelect: Vt,
|
|
2618
|
-
DfTextArea:
|
|
2619
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3588
|
+
DfTextArea: Tt
|
|
3589
|
+
}, Symbol.toStringTag, { value: "Module" })), oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2620
3590
|
__proto__: null,
|
|
2621
|
-
VAutocomplete:
|
|
2622
|
-
VBtn:
|
|
2623
|
-
VCheckbox:
|
|
2624
|
-
VChip:
|
|
2625
|
-
VCol:
|
|
2626
|
-
VColorPicker:
|
|
2627
|
-
VCombobox:
|
|
2628
|
-
VConfirmEdit:
|
|
2629
|
-
VDatePicker:
|
|
2630
|
-
VField:
|
|
2631
|
-
VFileInput:
|
|
2632
|
-
VIcon:
|
|
2633
|
-
VImg:
|
|
2634
|
-
VInput:
|
|
2635
|
-
VListItem:
|
|
2636
|
-
VMenu:
|
|
2637
|
-
VNumberInput:
|
|
2638
|
-
VProgressLinear:
|
|
2639
|
-
VRow:
|
|
2640
|
-
VSelect:
|
|
2641
|
-
VSwitch:
|
|
2642
|
-
VTextField:
|
|
2643
|
-
VTextarea:
|
|
2644
|
-
VTimePicker:
|
|
2645
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2646
|
-
"df-actions":
|
|
2647
|
-
"df-checkbox":
|
|
2648
|
-
"df-color":
|
|
2649
|
-
"df-date-time":
|
|
2650
|
-
"df-file":
|
|
2651
|
-
"df-input":
|
|
2652
|
-
"df-input-hint":
|
|
2653
|
-
"df-label":
|
|
2654
|
-
"df-rtf-editor":
|
|
3591
|
+
VAutocomplete: bn,
|
|
3592
|
+
VBtn: hn,
|
|
3593
|
+
VCheckbox: gn,
|
|
3594
|
+
VChip: kn,
|
|
3595
|
+
VCol: Tn,
|
|
3596
|
+
VColorPicker: wn,
|
|
3597
|
+
VCombobox: yn,
|
|
3598
|
+
VConfirmEdit: Cn,
|
|
3599
|
+
VDatePicker: An,
|
|
3600
|
+
VField: xn,
|
|
3601
|
+
VFileInput: Vn,
|
|
3602
|
+
VIcon: _n,
|
|
3603
|
+
VImg: Bn,
|
|
3604
|
+
VInput: Ln,
|
|
3605
|
+
VListItem: $n,
|
|
3606
|
+
VMenu: Sn,
|
|
3607
|
+
VNumberInput: Mn,
|
|
3608
|
+
VProgressLinear: Dn,
|
|
3609
|
+
VRow: jn,
|
|
3610
|
+
VSelect: In,
|
|
3611
|
+
VSwitch: Rn,
|
|
3612
|
+
VTextField: Nn,
|
|
3613
|
+
VTextarea: Pn,
|
|
3614
|
+
VTimePicker: zn
|
|
3615
|
+
}, Symbol.toStringTag, { value: "Module" })), Qa = {
|
|
3616
|
+
"df-actions": mt,
|
|
3617
|
+
"df-checkbox": ft,
|
|
3618
|
+
"df-color": vt,
|
|
3619
|
+
"df-date-time": pt,
|
|
3620
|
+
"df-file": bt,
|
|
3621
|
+
"df-input": ht,
|
|
3622
|
+
"df-input-hint": ue,
|
|
3623
|
+
"df-label": de,
|
|
3624
|
+
"df-rtf-editor": xt,
|
|
2655
3625
|
"df-select": Vt,
|
|
2656
|
-
"df-text-area":
|
|
2657
|
-
},
|
|
3626
|
+
"df-text-area": Tt
|
|
3627
|
+
}, Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2658
3628
|
__proto__: null
|
|
2659
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2660
|
-
install: (e,
|
|
2661
|
-
var
|
|
2662
|
-
e.
|
|
3629
|
+
}, Symbol.toStringTag, { value: "Module" })), eo = {
|
|
3630
|
+
install: (e, n) => {
|
|
3631
|
+
var t, a;
|
|
3632
|
+
e.provide(dt, n != null ? n : {}), (t = n == null ? void 0 : n.registerComponents) != null && t && Object.entries(aa).map(([r, d]) => e.component(r, d)), (a = n == null ? void 0 : n.registerVuetifyComponents) != null && a && Object.entries(oa).map(([r, d]) => e.component(r, d));
|
|
2663
3633
|
}
|
|
2664
3634
|
};
|
|
2665
3635
|
export {
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
3636
|
+
Re as Action,
|
|
3637
|
+
oe as ActionDisplayStyle,
|
|
3638
|
+
wl as DateTimeLocaleConfig,
|
|
3639
|
+
mt as DfActions,
|
|
3640
|
+
ft as DfCheckbox,
|
|
3641
|
+
vt as DfColor,
|
|
3642
|
+
pt as DfDateTime,
|
|
3643
|
+
bt as DfFile,
|
|
3644
|
+
ht as DfInput,
|
|
3645
|
+
Za as DfInputComponentProps,
|
|
3646
|
+
aa as DfInputComponents,
|
|
3647
|
+
ue as DfInputHint,
|
|
3648
|
+
de as DfLabel,
|
|
3649
|
+
xt as DfRtfEditor,
|
|
2680
3650
|
Vt as DfSelect,
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
se as defaultBaseProps,
|
|
3651
|
+
Tt as DfTextArea,
|
|
3652
|
+
eo as DynamicFormsInputs,
|
|
3653
|
+
Xe as InputBase,
|
|
3654
|
+
Cl as Label,
|
|
3655
|
+
jl as ResponsiveActionRenderOptions,
|
|
3656
|
+
xl as ResponsiveRenderOptions,
|
|
3657
|
+
oa as VuetifyComponents,
|
|
3658
|
+
pe as defaultBaseProps,
|
|
2690
3659
|
nt as defaultDisplayStyle,
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
vt as vuetifyInputsSettingsKey
|
|
3660
|
+
Qa as dfInputComponentsByTag,
|
|
3661
|
+
Vl as getBreakpointName,
|
|
3662
|
+
ct as getRenderOptionsForBreakpoint,
|
|
3663
|
+
lt as responsiveBreakpoints,
|
|
3664
|
+
Ce as translatableStrings,
|
|
3665
|
+
Ja as translateStrings,
|
|
3666
|
+
Tl as useBreakpoint,
|
|
3667
|
+
me as useInputBase,
|
|
3668
|
+
dt as vuetifyInputsSettingsKey
|
|
2701
3669
|
};
|
|
2702
3670
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|