@dynamicforms/vuetify-inputs 0.11.3 → 0.11.4
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 +955 -1019
- 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 +71 -14
- package/package.json +1 -1
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, inject as d, isRef as f, mergeDefaults as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as y,
|
|
2
|
-
import
|
|
3
|
-
import { CachedIcon as
|
|
4
|
-
import
|
|
5
|
-
import { castArray as
|
|
6
|
-
import { createTranslatable as
|
|
7
|
-
import { useDisplay as
|
|
8
|
-
import { format as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { Table as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { NodeSelection as
|
|
17
|
-
import
|
|
18
|
-
import { EditorContent as
|
|
19
|
-
import { BubbleMenu as
|
|
20
|
-
import { Extension as
|
|
21
|
-
import { Fragment as
|
|
22
|
-
import
|
|
23
|
-
import { VAutocomplete as
|
|
24
|
-
import { VBtn as
|
|
25
|
-
import { VCheckbox as
|
|
26
|
-
import { VChip as
|
|
27
|
-
import { VCombobox as
|
|
28
|
-
import { VColorPicker as
|
|
29
|
-
import { VConfirmEdit as
|
|
30
|
-
import { VDatePicker as
|
|
31
|
-
import { VField as
|
|
32
|
-
import { VFileInput as
|
|
33
|
-
import { VCol as
|
|
34
|
-
import { VIcon as
|
|
35
|
-
import { VImg as
|
|
36
|
-
import { VInput as
|
|
37
|
-
import { VListItem as
|
|
38
|
-
import { VMenu as
|
|
39
|
-
import { VNumberInput as
|
|
40
|
-
import { VProgressLinear as
|
|
41
|
-
import { VSelect as
|
|
42
|
-
import { VSwitch as
|
|
43
|
-
import { VTextarea as
|
|
44
|
-
import { VTextField as
|
|
45
|
-
import { VTimePicker as
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, inject as d, isRef as f, mergeDefaults as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as y, onMounted as b, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveComponent as T, resolveDynamicComponent as E, shallowRef as D, toDisplayString as O, toRaw as k, toRefs as A, unref as j, useCssVars as M, useId as ee, watch as N, watchEffect as te, withCtx as P, withKeys as F, withModifiers as I } from "vue";
|
|
2
|
+
import L, { Action as R, DisplayMode as z, ExecuteAction as ne, MdString as re, MessagesWidget as B, ValidationErrorRenderContent as ie } from "@dynamicforms/vue-forms";
|
|
3
|
+
import { CachedIcon as V } from "vue-cached-icon";
|
|
4
|
+
import H from "vue-markdown-render";
|
|
5
|
+
import { castArray as U, clone as ae, first as oe, isArray as se, isBoolean as W, isEmpty as G, isEqual as ce, isNaN as le, isObjectLike as ue, isPlainObject as de, isString as K, toNumber as q, unionBy as fe } from "lodash-es";
|
|
6
|
+
import { createTranslatable as pe } from "@dynamicforms/translatable";
|
|
7
|
+
import { useDisplay as me } from "vuetify";
|
|
8
|
+
import { format as he, parse as ge } from "date-fns";
|
|
9
|
+
import _e from "@tiptap/extension-image";
|
|
10
|
+
import ve from "@tiptap/extension-placeholder";
|
|
11
|
+
import { Table as ye } from "@tiptap/extension-table";
|
|
12
|
+
import be from "@tiptap/extension-table-cell";
|
|
13
|
+
import xe from "@tiptap/extension-table-header";
|
|
14
|
+
import Se from "@tiptap/extension-table-row";
|
|
15
|
+
import Ce from "@tiptap/extension-text-align";
|
|
16
|
+
import { NodeSelection as we } from "@tiptap/pm/state";
|
|
17
|
+
import Te from "@tiptap/starter-kit";
|
|
18
|
+
import { EditorContent as Ee, useEditor as De } from "@tiptap/vue-3";
|
|
19
|
+
import { BubbleMenu as Oe } from "@tiptap/vue-3/menus";
|
|
20
|
+
import { Extension as ke, Mark as Ae, Node as je, mergeAttributes as Me } from "@tiptap/core";
|
|
21
|
+
import { Fragment as Ne, Slice as Pe } from "@tiptap/pm/model";
|
|
22
|
+
import Fe from "@tiptap/extension-link";
|
|
23
|
+
import { VAutocomplete as Ie } from "vuetify/components/VAutocomplete";
|
|
24
|
+
import { VBtn as Le } from "vuetify/components/VBtn";
|
|
25
|
+
import { VCheckbox as Re } from "vuetify/components/VCheckbox";
|
|
26
|
+
import { VChip as ze } from "vuetify/components/VChip";
|
|
27
|
+
import { VCombobox as Be } from "vuetify/components/VCombobox";
|
|
28
|
+
import { VColorPicker as Ve } from "vuetify/components/VColorPicker";
|
|
29
|
+
import { VConfirmEdit as He } from "vuetify/components/VConfirmEdit";
|
|
30
|
+
import { VDatePicker as Ue } from "vuetify/components/VDatePicker";
|
|
31
|
+
import { VField as We } from "vuetify/components/VField";
|
|
32
|
+
import { VFileInput as Ge } from "vuetify/components/VFileInput";
|
|
33
|
+
import { VCol as Ke, VRow as qe } from "vuetify/components/VGrid";
|
|
34
|
+
import { VIcon as Je } from "vuetify/components/VIcon";
|
|
35
|
+
import { VImg as Ye } from "vuetify/components/VImg";
|
|
36
|
+
import { VInput as Xe } from "vuetify/components/VInput";
|
|
37
|
+
import { VListItem as Ze } from "vuetify/components/VList";
|
|
38
|
+
import { VMenu as Qe } from "vuetify/components/VMenu";
|
|
39
|
+
import { VNumberInput as $e } from "vuetify/components/VNumberInput";
|
|
40
|
+
import { VProgressLinear as et } from "vuetify/components/VProgressLinear";
|
|
41
|
+
import { VSelect as tt } from "vuetify/components/VSelect";
|
|
42
|
+
import { VSwitch as nt } from "vuetify/components/VSwitch";
|
|
43
|
+
import { VTextarea as rt } from "vuetify/components/VTextarea";
|
|
44
|
+
import { VTextField as it } from "vuetify/components/VTextField";
|
|
45
|
+
import { VTimePicker as at } from "vuetify/components/VTimePicker";
|
|
46
46
|
//#region \0rolldown/runtime.js
|
|
47
|
-
var
|
|
47
|
+
var ot = Object.defineProperty, st = (e, t) => {
|
|
48
48
|
let n = {};
|
|
49
|
-
for (var r in e)
|
|
49
|
+
for (var r in e) ot(n, r, {
|
|
50
50
|
get: e[r],
|
|
51
51
|
enumerable: !0
|
|
52
52
|
});
|
|
53
|
-
return t ||
|
|
53
|
+
return t || ot(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
54
54
|
};
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/typeof.js
|
|
57
|
-
function
|
|
57
|
+
function ct(e) {
|
|
58
58
|
"@babel/helpers - typeof";
|
|
59
|
-
return
|
|
59
|
+
return ct = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
60
60
|
return typeof e;
|
|
61
61
|
} : function(e) {
|
|
62
62
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
63
|
-
},
|
|
63
|
+
}, ct(e);
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPrimitive.js
|
|
67
|
-
function
|
|
68
|
-
if (
|
|
67
|
+
function lt(e, t) {
|
|
68
|
+
if (ct(e) != "object" || !e) return e;
|
|
69
69
|
var n = e[Symbol.toPrimitive];
|
|
70
70
|
if (n !== void 0) {
|
|
71
71
|
var r = n.call(e, t || "default");
|
|
72
|
-
if (
|
|
72
|
+
if (ct(r) != "object") return r;
|
|
73
73
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
74
74
|
}
|
|
75
75
|
return (t === "string" ? String : Number)(e);
|
|
76
76
|
}
|
|
77
77
|
//#endregion
|
|
78
78
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPropertyKey.js
|
|
79
|
-
function
|
|
80
|
-
var t =
|
|
81
|
-
return
|
|
79
|
+
function ut(e) {
|
|
80
|
+
var t = lt(e, "string");
|
|
81
|
+
return ct(t) == "symbol" ? t : t + "";
|
|
82
82
|
}
|
|
83
83
|
//#endregion
|
|
84
84
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/defineProperty.js
|
|
85
|
-
function
|
|
86
|
-
return (t =
|
|
85
|
+
function dt(e, t, n) {
|
|
86
|
+
return (t = ut(t)) in e ? Object.defineProperty(e, t, {
|
|
87
87
|
value: n,
|
|
88
88
|
enumerable: !0,
|
|
89
89
|
configurable: !0,
|
|
@@ -92,7 +92,7 @@ function ut(e, t, n) {
|
|
|
92
92
|
}
|
|
93
93
|
//#endregion
|
|
94
94
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/objectSpread2.js
|
|
95
|
-
function
|
|
95
|
+
function ft(e, t) {
|
|
96
96
|
var n = Object.keys(e);
|
|
97
97
|
if (Object.getOwnPropertySymbols) {
|
|
98
98
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -105,9 +105,9 @@ function dt(e, t) {
|
|
|
105
105
|
function J(e) {
|
|
106
106
|
for (var t = 1; t < arguments.length; t++) {
|
|
107
107
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
108
|
-
t % 2 ?
|
|
109
|
-
|
|
110
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
108
|
+
t % 2 ? ft(Object(n), !0).forEach(function(t) {
|
|
109
|
+
dt(e, t, n[t]);
|
|
110
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ft(Object(n)).forEach(function(t) {
|
|
111
111
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
112
112
|
});
|
|
113
113
|
}
|
|
@@ -115,10 +115,10 @@ function J(e) {
|
|
|
115
115
|
}
|
|
116
116
|
//#endregion
|
|
117
117
|
//#region node_modules/date-fns/locale/sl/_lib/formatDistance.js
|
|
118
|
-
function
|
|
118
|
+
function pt(e) {
|
|
119
119
|
return e.one !== void 0;
|
|
120
120
|
}
|
|
121
|
-
var
|
|
121
|
+
var mt = {
|
|
122
122
|
lessThanXSeconds: {
|
|
123
123
|
present: {
|
|
124
124
|
one: "manj kot {{count}} sekunda",
|
|
@@ -393,7 +393,7 @@ var pt = {
|
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
};
|
|
396
|
-
function
|
|
396
|
+
function ht(e) {
|
|
397
397
|
switch (e % 100) {
|
|
398
398
|
case 1: return "one";
|
|
399
399
|
case 2: return "two";
|
|
@@ -402,27 +402,27 @@ function mt(e) {
|
|
|
402
402
|
default: return "other";
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
var
|
|
405
|
+
var gt = (e, t, n) => {
|
|
406
406
|
let r = "", i = "present";
|
|
407
407
|
n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (i = "future", r = "čez ") : (i = "past", r = "pred "));
|
|
408
|
-
let a =
|
|
408
|
+
let a = mt[e];
|
|
409
409
|
if (typeof a == "string") r += a;
|
|
410
410
|
else {
|
|
411
|
-
let e =
|
|
412
|
-
|
|
411
|
+
let e = ht(t);
|
|
412
|
+
pt(a) ? r += a[e].replace("{{count}}", String(t)) : r += a[i][e].replace("{{count}}", String(t));
|
|
413
413
|
}
|
|
414
414
|
return r;
|
|
415
415
|
};
|
|
416
416
|
//#endregion
|
|
417
417
|
//#region node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
418
|
-
function
|
|
418
|
+
function _t(e) {
|
|
419
419
|
return (t = {}) => {
|
|
420
420
|
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
421
421
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
422
422
|
};
|
|
423
423
|
}
|
|
424
|
-
var
|
|
425
|
-
date:
|
|
424
|
+
var vt = {
|
|
425
|
+
date: _t({
|
|
426
426
|
formats: {
|
|
427
427
|
full: "EEEE, dd. MMMM y",
|
|
428
428
|
long: "dd. MMMM y",
|
|
@@ -431,7 +431,7 @@ var _t = {
|
|
|
431
431
|
},
|
|
432
432
|
defaultWidth: "full"
|
|
433
433
|
}),
|
|
434
|
-
time:
|
|
434
|
+
time: _t({
|
|
435
435
|
formats: {
|
|
436
436
|
full: "HH:mm:ss zzzz",
|
|
437
437
|
long: "HH:mm:ss z",
|
|
@@ -440,7 +440,7 @@ var _t = {
|
|
|
440
440
|
},
|
|
441
441
|
defaultWidth: "full"
|
|
442
442
|
}),
|
|
443
|
-
dateTime:
|
|
443
|
+
dateTime: _t({
|
|
444
444
|
formats: {
|
|
445
445
|
full: "{{date}} {{time}}",
|
|
446
446
|
long: "{{date}} {{time}}",
|
|
@@ -449,7 +449,7 @@ var _t = {
|
|
|
449
449
|
},
|
|
450
450
|
defaultWidth: "full"
|
|
451
451
|
})
|
|
452
|
-
},
|
|
452
|
+
}, yt = {
|
|
453
453
|
lastWeek: (e) => {
|
|
454
454
|
switch (e.getDay()) {
|
|
455
455
|
case 0: return "'prejšnjo nedeljo ob' p";
|
|
@@ -470,13 +470,13 @@ var _t = {
|
|
|
470
470
|
}
|
|
471
471
|
},
|
|
472
472
|
other: "P"
|
|
473
|
-
},
|
|
474
|
-
let i =
|
|
473
|
+
}, bt = (e, t, n, r) => {
|
|
474
|
+
let i = yt[e];
|
|
475
475
|
return typeof i == "function" ? i(t) : i;
|
|
476
476
|
};
|
|
477
477
|
//#endregion
|
|
478
478
|
//#region node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
479
|
-
function
|
|
479
|
+
function xt(e) {
|
|
480
480
|
return (t, n) => {
|
|
481
481
|
let r = n != null && n.context ? String(n.context) : "standalone", i;
|
|
482
482
|
if (r === "formatting" && e.formattingValues) {
|
|
@@ -490,9 +490,9 @@ function bt(e) {
|
|
|
490
490
|
return i[a];
|
|
491
491
|
};
|
|
492
492
|
}
|
|
493
|
-
var
|
|
493
|
+
var St = {
|
|
494
494
|
ordinalNumber: (e, t) => Number(e) + ".",
|
|
495
|
-
era:
|
|
495
|
+
era: xt({
|
|
496
496
|
values: {
|
|
497
497
|
narrow: ["pr. n. št.", "po n. št."],
|
|
498
498
|
abbreviated: ["pr. n. št.", "po n. št."],
|
|
@@ -500,7 +500,7 @@ var xt = {
|
|
|
500
500
|
},
|
|
501
501
|
defaultWidth: "wide"
|
|
502
502
|
}),
|
|
503
|
-
quarter:
|
|
503
|
+
quarter: xt({
|
|
504
504
|
values: {
|
|
505
505
|
narrow: [
|
|
506
506
|
"1",
|
|
@@ -524,7 +524,7 @@ var xt = {
|
|
|
524
524
|
defaultWidth: "wide",
|
|
525
525
|
argumentCallback: (e) => e - 1
|
|
526
526
|
}),
|
|
527
|
-
month:
|
|
527
|
+
month: xt({
|
|
528
528
|
values: {
|
|
529
529
|
narrow: [
|
|
530
530
|
"j",
|
|
@@ -571,7 +571,7 @@ var xt = {
|
|
|
571
571
|
},
|
|
572
572
|
defaultWidth: "wide"
|
|
573
573
|
}),
|
|
574
|
-
day:
|
|
574
|
+
day: xt({
|
|
575
575
|
values: {
|
|
576
576
|
narrow: [
|
|
577
577
|
"n",
|
|
@@ -612,7 +612,7 @@ var xt = {
|
|
|
612
612
|
},
|
|
613
613
|
defaultWidth: "wide"
|
|
614
614
|
}),
|
|
615
|
-
dayPeriod:
|
|
615
|
+
dayPeriod: xt({
|
|
616
616
|
values: {
|
|
617
617
|
narrow: {
|
|
618
618
|
am: "d",
|
|
@@ -683,11 +683,11 @@ var xt = {
|
|
|
683
683
|
};
|
|
684
684
|
//#endregion
|
|
685
685
|
//#region node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
686
|
-
function
|
|
686
|
+
function Ct(e) {
|
|
687
687
|
return (t, n = {}) => {
|
|
688
688
|
let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
|
|
689
689
|
if (!a) return null;
|
|
690
|
-
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ?
|
|
690
|
+
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? Tt(s, (e) => e.test(o)) : wt(s, (e) => e.test(o)), l;
|
|
691
691
|
l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
|
|
692
692
|
let u = t.slice(o.length);
|
|
693
693
|
return {
|
|
@@ -696,15 +696,15 @@ function St(e) {
|
|
|
696
696
|
};
|
|
697
697
|
};
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function wt(e, t) {
|
|
700
700
|
for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function Tt(e, t) {
|
|
703
703
|
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
704
704
|
}
|
|
705
705
|
//#endregion
|
|
706
706
|
//#region node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
707
|
-
function
|
|
707
|
+
function Et(e) {
|
|
708
708
|
return (t, n = {}) => {
|
|
709
709
|
let r = t.match(e.matchPattern);
|
|
710
710
|
if (!r) return null;
|
|
@@ -721,19 +721,19 @@ function Tt(e) {
|
|
|
721
721
|
}
|
|
722
722
|
//#endregion
|
|
723
723
|
//#region node_modules/date-fns/locale/sl.js
|
|
724
|
-
var
|
|
724
|
+
var Dt = {
|
|
725
725
|
code: "sl",
|
|
726
|
-
formatDistance:
|
|
727
|
-
formatLong:
|
|
728
|
-
formatRelative:
|
|
729
|
-
localize:
|
|
726
|
+
formatDistance: gt,
|
|
727
|
+
formatLong: vt,
|
|
728
|
+
formatRelative: bt,
|
|
729
|
+
localize: St,
|
|
730
730
|
match: {
|
|
731
|
-
ordinalNumber:
|
|
731
|
+
ordinalNumber: Et({
|
|
732
732
|
matchPattern: /^(\d+)\./i,
|
|
733
733
|
parsePattern: /\d+/i,
|
|
734
734
|
valueCallback: (e) => parseInt(e, 10)
|
|
735
735
|
}),
|
|
736
|
-
era:
|
|
736
|
+
era: Ct({
|
|
737
737
|
matchPatterns: {
|
|
738
738
|
abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
|
|
739
739
|
wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
|
|
@@ -742,7 +742,7 @@ var Et = {
|
|
|
742
742
|
parsePatterns: { any: [/^pr/i, /^(po|na[sš]em)/i] },
|
|
743
743
|
defaultParseWidth: "any"
|
|
744
744
|
}),
|
|
745
|
-
quarter:
|
|
745
|
+
quarter: Ct({
|
|
746
746
|
matchPatterns: {
|
|
747
747
|
narrow: /^[1234]/i,
|
|
748
748
|
abbreviated: /^[1234]\.\s?[čc]et\.?/i,
|
|
@@ -758,7 +758,7 @@ var Et = {
|
|
|
758
758
|
defaultParseWidth: "any",
|
|
759
759
|
valueCallback: (e) => e + 1
|
|
760
760
|
}),
|
|
761
|
-
month:
|
|
761
|
+
month: Ct({
|
|
762
762
|
matchPatterns: {
|
|
763
763
|
narrow: /^[jfmasond]/i,
|
|
764
764
|
abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,
|
|
@@ -811,7 +811,7 @@ var Et = {
|
|
|
811
811
|
},
|
|
812
812
|
defaultParseWidth: "wide"
|
|
813
813
|
}),
|
|
814
|
-
day:
|
|
814
|
+
day: Ct({
|
|
815
815
|
matchPatterns: {
|
|
816
816
|
narrow: /^[nptsčc]/i,
|
|
817
817
|
short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
@@ -841,7 +841,7 @@ var Et = {
|
|
|
841
841
|
},
|
|
842
842
|
defaultParseWidth: "any"
|
|
843
843
|
}),
|
|
844
|
-
dayPeriod:
|
|
844
|
+
dayPeriod: Ct({
|
|
845
845
|
matchPatterns: {
|
|
846
846
|
narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
|
|
847
847
|
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
|
|
@@ -876,14 +876,14 @@ var Et = {
|
|
|
876
876
|
weekStartsOn: 1,
|
|
877
877
|
firstWeekContainsDate: 1
|
|
878
878
|
}
|
|
879
|
-
},
|
|
880
|
-
dateTimeLocale:
|
|
879
|
+
}, Ot = {
|
|
880
|
+
dateTimeLocale: S(Dt),
|
|
881
881
|
setDateTimeLocale(e) {
|
|
882
882
|
f(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
|
|
883
883
|
}
|
|
884
|
-
},
|
|
884
|
+
}, kt = class extends Error {
|
|
885
885
|
constructor(e) {
|
|
886
|
-
super(e),
|
|
886
|
+
super(e), dt(this, "errorText", void 0), this.errorText = e;
|
|
887
887
|
}
|
|
888
888
|
}, Y = /* @__PURE__ */ l({
|
|
889
889
|
__name: "df-input-hint",
|
|
@@ -895,7 +895,7 @@ var Et = {
|
|
|
895
895
|
},
|
|
896
896
|
setup(e) {
|
|
897
897
|
let r = e, i = t(() => r.errors ? typeof r.errors == "string" ? r.errors.trim().length > 0 : r.errors.length > 0 : !1), a = t(() => i.value ? r.errors : r.message), o = t(() => i.value ? r.errorClasses : r.messageClasses);
|
|
898
|
-
return (e, t) => (
|
|
898
|
+
return (e, t) => (x(), n(j(B), {
|
|
899
899
|
message: a.value,
|
|
900
900
|
classes: o.value
|
|
901
901
|
}, null, 8, ["message", "classes"]));
|
|
@@ -910,19 +910,19 @@ var Et = {
|
|
|
910
910
|
setup(a) {
|
|
911
911
|
let o = a, c = t(() => o.data ? o.data.label : o.label.text);
|
|
912
912
|
return (t, o) => {
|
|
913
|
-
let l =
|
|
914
|
-
return
|
|
913
|
+
let l = T("v-img");
|
|
914
|
+
return x(), i("div", { class: g(["df-label", { "allow-wrap": a.allowWrap }]) }, [a.label.icon ? (x(), i(e, { key: 0 }, [a.label.iconComponent === "v-icon" ? (x(), n(j(V), {
|
|
915
915
|
key: 0,
|
|
916
916
|
name: a.label.icon,
|
|
917
917
|
size: "1.25em"
|
|
918
|
-
}, null, 8, ["name"])) : a.label.iconComponent === "v-img" ? (
|
|
918
|
+
}, null, 8, ["name"])) : a.label.iconComponent === "v-img" ? (x(), n(l, {
|
|
919
919
|
key: 1,
|
|
920
920
|
class: "icon",
|
|
921
921
|
src: a.label.icon
|
|
922
|
-
}, null, 8, ["src"])) : (
|
|
922
|
+
}, null, 8, ["src"])) : (x(), n(E(a.label.iconComponent), {
|
|
923
923
|
key: 2,
|
|
924
924
|
src: a.label.icon
|
|
925
|
-
}, null, 8, ["src"]))], 64)) : r("", !0), c.value instanceof
|
|
925
|
+
}, null, 8, ["src"]))], 64)) : r("", !0), c.value instanceof j(re) ? (x(), n(j(H), {
|
|
926
926
|
key: 1,
|
|
927
927
|
class: "markdown",
|
|
928
928
|
source: c.value.toString(),
|
|
@@ -932,19 +932,19 @@ var Et = {
|
|
|
932
932
|
"source",
|
|
933
933
|
"options",
|
|
934
934
|
"plugins"
|
|
935
|
-
])) : (
|
|
935
|
+
])) : (x(), i(e, { key: 2 }, [s(O(c.value), 1)], 64))], 2);
|
|
936
936
|
};
|
|
937
937
|
}
|
|
938
|
-
}),
|
|
938
|
+
}), At = Symbol("vuetifyInputsSettingsKey"), jt = class {
|
|
939
939
|
constructor(e, t, n = "v-icon") {
|
|
940
|
-
|
|
940
|
+
dt(this, "text", void 0), dt(this, "icon", void 0), dt(this, "iconComponent", void 0), this.text = e, this.icon = t, this.iconComponent = n;
|
|
941
941
|
}
|
|
942
942
|
}, Z = {
|
|
943
943
|
enabled: void 0,
|
|
944
944
|
clearable: !0
|
|
945
945
|
};
|
|
946
946
|
function Q(e, n) {
|
|
947
|
-
let r = d(
|
|
947
|
+
let r = d(At, {}), i = d("field-density", null), a = d("field-variant", null), o = S(null), s = D(null), c = t({
|
|
948
948
|
get() {
|
|
949
949
|
return s.value ? s.value.value : e.control ? e.control.value : e.modelValue === void 0 ? o.value : e.modelValue;
|
|
950
950
|
},
|
|
@@ -952,14 +952,14 @@ function Q(e, n) {
|
|
|
952
952
|
try {
|
|
953
953
|
e.control && (e.control.value = t);
|
|
954
954
|
} finally {
|
|
955
|
-
e.control && !Object.is(
|
|
955
|
+
e.control && !Object.is(k(e.control.value), k(t)) && (s.value = { value: t }, h(() => {
|
|
956
956
|
s.value = null;
|
|
957
957
|
}));
|
|
958
958
|
}
|
|
959
959
|
e.modelValue === void 0 && (o.value = t), n("update:modelValue", e.control ? e.control.value : t);
|
|
960
960
|
}
|
|
961
961
|
});
|
|
962
|
-
if (e.control && !(e.control instanceof
|
|
962
|
+
if (e.control && !(e.control instanceof L.FieldBase)) throw Error("control prop is not a vue-form control instance");
|
|
963
963
|
let l = t({
|
|
964
964
|
get() {
|
|
965
965
|
return e.control.touched;
|
|
@@ -967,34 +967,34 @@ function Q(e, n) {
|
|
|
967
967
|
set(t) {
|
|
968
968
|
e.control.touched = t;
|
|
969
969
|
}
|
|
970
|
-
}), u = e.control ? l :
|
|
971
|
-
"d-none": v.value ===
|
|
972
|
-
invisible: v.value ===
|
|
973
|
-
})),
|
|
970
|
+
}), u = e.control ? l : S(!1), f = t(() => !e.control || e.control.valid), p = t(() => e.control ? e.control.errors : (e.errors || []).map((e) => new ie(e))), m = t(() => u.value && p.value.length > 0 ? " " : void 0), g = t(() => u.value ? p.value : void 0), _ = t(() => e.control ? e.control.effectiveEnabled : e.enabled !== !1), v = t(() => e.control ? e.control.visibility : e.visibility == null ? L.DisplayMode.FULL : L.DisplayMode.fromAny(e.visibility)), y = t(() => v.value !== L.DisplayMode.SUPPRESS), b = t(() => ({
|
|
971
|
+
"d-none": v.value === L.DisplayMode.HIDDEN,
|
|
972
|
+
invisible: v.value === L.DisplayMode.INVISIBLE
|
|
973
|
+
})), x = t(() => {
|
|
974
974
|
var t, n;
|
|
975
975
|
return (t = (n = e.control) == null ? void 0 : n.extra) == null ? {} : t;
|
|
976
976
|
}), C = t(() => {
|
|
977
977
|
var t;
|
|
978
|
-
let n = (t = e.label) == null ?
|
|
979
|
-
return
|
|
978
|
+
let n = (t = e.label) == null ? x.value.label : t;
|
|
979
|
+
return K(n || "") ? new jt(n || "") : n;
|
|
980
980
|
}), w = t(() => {
|
|
981
981
|
var t, n;
|
|
982
|
-
return (t = (n = e.placeholder) == null ?
|
|
982
|
+
return (t = (n = e.placeholder) == null ? x.value.placeholder : n) == null ? "" : t;
|
|
983
983
|
}), T = t(() => {
|
|
984
984
|
var t, n;
|
|
985
|
-
return (t = (n = e.helpText) == null ?
|
|
986
|
-
}),
|
|
985
|
+
return (t = (n = e.helpText) == null ? x.value.helpText : n) == null ? "" : t;
|
|
986
|
+
}), E = t(() => {
|
|
987
987
|
var t, n;
|
|
988
|
-
return (t = (n = e.hint) == null ?
|
|
989
|
-
}),
|
|
988
|
+
return (t = (n = e.hint) == null ? x.value.hint : n) == null ? "" : t;
|
|
989
|
+
}), O = t(() => {
|
|
990
990
|
var t, n;
|
|
991
|
-
return (t = (n = e.cssClass) == null ?
|
|
991
|
+
return (t = (n = e.cssClass) == null ? x.value.cssClass : n) == null ? "" : t;
|
|
992
992
|
}), A = t(() => {
|
|
993
993
|
var t, n, a, o;
|
|
994
|
-
return (t = (n = (a = (o = e.density) == null ?
|
|
994
|
+
return (t = (n = (a = (o = e.density) == null ? x.value.density : o) == null ? i : a) == null ? r.defaultDensity : n) == null ? "default" : t;
|
|
995
995
|
}), j = t(() => A.value === "inline" ? "default" : A.value), M = t(() => {
|
|
996
996
|
var t, n, i, o;
|
|
997
|
-
return (t = (n = (i = (o = e.variant) == null ?
|
|
997
|
+
return (t = (n = (i = (o = e.variant) == null ? x.value.variant : o) == null ? a : i) == null ? r.defaultVariant : n) == null ? "underlined" : t;
|
|
998
998
|
});
|
|
999
999
|
return {
|
|
1000
1000
|
value: c,
|
|
@@ -1013,7 +1013,7 @@ function Q(e, n) {
|
|
|
1013
1013
|
var t;
|
|
1014
1014
|
return J({
|
|
1015
1015
|
name: (t = e.control) == null ? void 0 : t.fieldName,
|
|
1016
|
-
class:
|
|
1016
|
+
class: O.value,
|
|
1017
1017
|
density: j.value,
|
|
1018
1018
|
variant: M.value,
|
|
1019
1019
|
label: C.value.text,
|
|
@@ -1021,8 +1021,8 @@ function Q(e, n) {
|
|
|
1021
1021
|
readonly: !_.value,
|
|
1022
1022
|
disabled: !_.value,
|
|
1023
1023
|
placeholder: w.value,
|
|
1024
|
-
"persistent-placeholder": !
|
|
1025
|
-
hint:
|
|
1024
|
+
"persistent-placeholder": !G(w.value),
|
|
1025
|
+
hint: E.value,
|
|
1026
1026
|
persistentHint: !0,
|
|
1027
1027
|
hideDetails: "auto",
|
|
1028
1028
|
helpText: T.value
|
|
@@ -1032,7 +1032,7 @@ function Q(e, n) {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
//#endregion
|
|
1034
1034
|
//#region src/helpers/input-base.vue?vue&type=script&setup=true&lang.ts
|
|
1035
|
-
var
|
|
1035
|
+
var Mt = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Nt = /* @__PURE__ */ l({
|
|
1036
1036
|
__name: "input-base",
|
|
1037
1037
|
props: {
|
|
1038
1038
|
control: {},
|
|
@@ -1057,49 +1057,49 @@ var jt = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Mt = /* @__P
|
|
|
1057
1057
|
"blur"
|
|
1058
1058
|
],
|
|
1059
1059
|
setup(e, { emit: i }) {
|
|
1060
|
-
let s = e, l = i, { isRendered: d, label: f, showErrors: p, touched: m, value: h, visibilityClass: v, vuetifyBindings: y } = Q(s, l),
|
|
1060
|
+
let s = e, l = i, { isRendered: d, label: f, showErrors: p, touched: m, value: h, visibilityClass: v, vuetifyBindings: y } = Q(s, l), b = t(() => !!(j(s.clearable) && j(h))), C = S(!1);
|
|
1061
1061
|
function E(e) {
|
|
1062
|
-
|
|
1062
|
+
C.value = e, e || (m.value = !0, l("blur"));
|
|
1063
1063
|
}
|
|
1064
1064
|
return (t, i) => {
|
|
1065
|
-
let s =
|
|
1066
|
-
return
|
|
1065
|
+
let s = T("v-field"), m = T("v-input");
|
|
1066
|
+
return j(d) ? (x(), n(m, {
|
|
1067
1067
|
key: 0,
|
|
1068
|
-
name:
|
|
1069
|
-
density:
|
|
1070
|
-
hint:
|
|
1071
|
-
"persistent-hint":
|
|
1072
|
-
"hide-details":
|
|
1073
|
-
"error-messages":
|
|
1074
|
-
class: g([e.cssClass,
|
|
1068
|
+
name: j(y).name,
|
|
1069
|
+
density: j(y).density,
|
|
1070
|
+
hint: j(y).hint,
|
|
1071
|
+
"persistent-hint": j(y).persistentHint,
|
|
1072
|
+
"hide-details": j(y).hideDetails,
|
|
1073
|
+
"error-messages": j(y).errorMessages,
|
|
1074
|
+
class: g([e.cssClass, j(v)])
|
|
1075
1075
|
}, o({
|
|
1076
|
-
message:
|
|
1076
|
+
message: P(({ message: e }) => [c(Y, {
|
|
1077
1077
|
message: e,
|
|
1078
|
-
errors:
|
|
1078
|
+
errors: j(p)
|
|
1079
1079
|
}, null, 8, ["message", "errors"])]),
|
|
1080
|
-
default:
|
|
1081
|
-
variant:
|
|
1082
|
-
density:
|
|
1083
|
-
label:
|
|
1084
|
-
disabled:
|
|
1085
|
-
clearable:
|
|
1080
|
+
default: P(() => [c(s, {
|
|
1081
|
+
variant: j(y).variant,
|
|
1082
|
+
density: j(y).density,
|
|
1083
|
+
label: j(y).label,
|
|
1084
|
+
disabled: j(y).disabled,
|
|
1085
|
+
clearable: b.value,
|
|
1086
1086
|
"persistent-clear": !0,
|
|
1087
|
-
dirty: !!
|
|
1088
|
-
active:
|
|
1087
|
+
dirty: !!j(h) || !!j(y).placeholder,
|
|
1088
|
+
active: C.value,
|
|
1089
1089
|
loading: e.loading,
|
|
1090
1090
|
"onClick:clear": i[0] || (i[0] = (e) => l("click:clear")),
|
|
1091
1091
|
"onUpdate:focused": i[1] || (i[1] = (e) => E(e))
|
|
1092
1092
|
}, o({
|
|
1093
|
-
label:
|
|
1093
|
+
label: P((e) => [c(X, {
|
|
1094
1094
|
data: e,
|
|
1095
|
-
label:
|
|
1095
|
+
label: j(f)
|
|
1096
1096
|
}, null, 8, ["data", "label"])]),
|
|
1097
|
-
default:
|
|
1098
|
-
loader:
|
|
1097
|
+
default: P((e) => [a("div", Mt, [w(t.$slots, "default", _(u(e)))])]),
|
|
1098
|
+
loader: P((e) => [w(t.$slots, "loader", _(u(e)))]),
|
|
1099
1099
|
_: 2
|
|
1100
1100
|
}, [t.$slots["prepend-inner"] ? {
|
|
1101
1101
|
name: "prepend-inner",
|
|
1102
|
-
fn:
|
|
1102
|
+
fn: P((e) => [w(t.$slots, "prepend-inner", _(u(e)))]),
|
|
1103
1103
|
key: "0"
|
|
1104
1104
|
} : void 0]), 1032, [
|
|
1105
1105
|
"variant",
|
|
@@ -1114,7 +1114,7 @@ var jt = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Mt = /* @__P
|
|
|
1114
1114
|
_: 2
|
|
1115
1115
|
}, [t.$slots.prepend ? {
|
|
1116
1116
|
name: "prepend",
|
|
1117
|
-
fn:
|
|
1117
|
+
fn: P((e) => [w(t.$slots, "prepend", _(u(e)))]),
|
|
1118
1118
|
key: "0"
|
|
1119
1119
|
} : void 0]), 1032, [
|
|
1120
1120
|
"name",
|
|
@@ -1127,7 +1127,7 @@ var jt = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Mt = /* @__P
|
|
|
1127
1127
|
])) : r("", !0);
|
|
1128
1128
|
};
|
|
1129
1129
|
}
|
|
1130
|
-
}), { strings:
|
|
1130
|
+
}), { strings: Pt, translateStrings: Ft } = pe({
|
|
1131
1131
|
Yes: "Yes",
|
|
1132
1132
|
No: "No",
|
|
1133
1133
|
Close: "Close",
|
|
@@ -1192,7 +1192,7 @@ var jt = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Mt = /* @__P
|
|
|
1192
1192
|
InvalidHexColor: "Not a valid hex string."
|
|
1193
1193
|
}), $ = /* @__PURE__ */ function(e) {
|
|
1194
1194
|
return e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e;
|
|
1195
|
-
}($ || {}),
|
|
1195
|
+
}($ || {}), It = 0;
|
|
1196
1196
|
(function(e) {
|
|
1197
1197
|
function t(e) {
|
|
1198
1198
|
return e.toUpperCase() === "BUTTON" ? 0 : +(e.toUpperCase() === "TEXT");
|
|
@@ -1211,15 +1211,15 @@ var jt = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Mt = /* @__P
|
|
|
1211
1211
|
})($ || ($ = {})), Object.freeze($);
|
|
1212
1212
|
//#endregion
|
|
1213
1213
|
//#region src/helpers/action/responsive-render-options.ts
|
|
1214
|
-
var
|
|
1214
|
+
var Lt = [
|
|
1215
1215
|
"xs",
|
|
1216
1216
|
"sm",
|
|
1217
1217
|
"md",
|
|
1218
1218
|
"lg",
|
|
1219
1219
|
"xl"
|
|
1220
|
-
],
|
|
1220
|
+
], Rt = class {
|
|
1221
1221
|
constructor(e) {
|
|
1222
|
-
|
|
1222
|
+
dt(this, "_value", void 0), this._value = this.cleanBreakpoint(e, !0), e && Lt.forEach((t) => {
|
|
1223
1223
|
let n = this.cleanBreakpoint(e[t]);
|
|
1224
1224
|
n && (this._value[t] = n);
|
|
1225
1225
|
});
|
|
@@ -1227,43 +1227,43 @@ var It = [
|
|
|
1227
1227
|
getOptionsForBreakpoint(e) {
|
|
1228
1228
|
var t;
|
|
1229
1229
|
let n = (t = this.cleanBreakpoint(this._value)) == null ? {} : t;
|
|
1230
|
-
for (let t of
|
|
1230
|
+
for (let t of Lt) {
|
|
1231
1231
|
var r;
|
|
1232
1232
|
let i = (r = this._value[t]) == null ? {} : r;
|
|
1233
1233
|
for (let e of Object.keys(i)) {
|
|
1234
1234
|
let t = i[e];
|
|
1235
|
-
t != null && (n[e] =
|
|
1235
|
+
t != null && (n[e] = de(t) ? J(J({}, n[e]), t) : t);
|
|
1236
1236
|
}
|
|
1237
1237
|
if (t === e) break;
|
|
1238
1238
|
}
|
|
1239
1239
|
return n;
|
|
1240
1240
|
}
|
|
1241
1241
|
};
|
|
1242
|
-
function
|
|
1242
|
+
function zt(e) {
|
|
1243
1243
|
return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1246
|
-
let e =
|
|
1247
|
-
return t(() =>
|
|
1245
|
+
function Bt() {
|
|
1246
|
+
let e = me();
|
|
1247
|
+
return t(() => zt(e));
|
|
1248
1248
|
}
|
|
1249
1249
|
//#endregion
|
|
1250
1250
|
//#region src/helpers/action/action-render-options.ts
|
|
1251
|
-
var
|
|
1251
|
+
var Vt = class extends Rt {
|
|
1252
1252
|
cleanBreakpoint(e, t = !1) {
|
|
1253
|
-
if ((!e || !
|
|
1253
|
+
if ((!e || !ue(e)) && !t) return null;
|
|
1254
1254
|
let n = {};
|
|
1255
|
-
return t && (n.renderAs = $.BUTTON, n.showLabel = !0, n.showIcon = !0), e && (e.renderAs != null && (n.renderAs = $.fromAny(e.renderAs)),
|
|
1255
|
+
return t && (n.renderAs = $.BUTTON, n.showLabel = !0, n.showIcon = !0), e && (e.renderAs != null && (n.renderAs = $.fromAny(e.renderAs)), K(e.label) && (n.label = e.label), K(e.icon) && (n.icon = e.icon), W(e.showLabel) && (n.showLabel = e.showLabel), W(e.showIcon) && (n.showIcon = e.showIcon), K(e.name) && (n.name = e.name), W(e.defaultConfirm) && (n.defaultConfirm = e.defaultConfirm), W(e.defaultReject) && (n.defaultReject = e.defaultReject), de(e.passthroughAttrs) && (n.passthroughAttrs = J({}, e.passthroughAttrs))), Object.keys(n).length ? n : null;
|
|
1256
1256
|
}
|
|
1257
1257
|
};
|
|
1258
|
-
function
|
|
1259
|
-
let n = new
|
|
1258
|
+
function Ht(e, t) {
|
|
1259
|
+
let n = new Vt(e).getOptionsForBreakpoint(t);
|
|
1260
1260
|
return {
|
|
1261
1261
|
name: n.name,
|
|
1262
1262
|
label: n.showLabel ? n.label : void 0,
|
|
1263
1263
|
icon: n.showIcon ? n.icon : void 0,
|
|
1264
1264
|
renderAs: n.renderAs,
|
|
1265
|
-
showLabel:
|
|
1266
|
-
showIcon:
|
|
1265
|
+
showLabel: K(n.label) && !G(n.label) ? n.showLabel : !1,
|
|
1266
|
+
showIcon: K(n.icon) && !G(n.icon) ? n.showIcon : !1,
|
|
1267
1267
|
defaultConfirm: n.defaultConfirm,
|
|
1268
1268
|
defaultReject: n.defaultReject,
|
|
1269
1269
|
passthroughAttrs: n.passthroughAttrs
|
|
@@ -1271,9 +1271,9 @@ function Vt(e, t) {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
//#endregion
|
|
1273
1273
|
//#region src/helpers/action/action.ts
|
|
1274
|
-
var
|
|
1274
|
+
var Ut = class e extends R {
|
|
1275
1275
|
getBreakpointValue(e) {
|
|
1276
|
-
return t(() =>
|
|
1276
|
+
return t(() => Ht(this.value, e.value));
|
|
1277
1277
|
}
|
|
1278
1278
|
get name() {
|
|
1279
1279
|
return this.value.name;
|
|
@@ -1282,13 +1282,13 @@ var Ht = class e extends z {
|
|
|
1282
1282
|
return this.value.showLabel ? this.value.label : void 0;
|
|
1283
1283
|
}
|
|
1284
1284
|
get showLabel() {
|
|
1285
|
-
return
|
|
1285
|
+
return K(this.value.label) && !G(this.value.label) ? this.value.showLabel : !1;
|
|
1286
1286
|
}
|
|
1287
1287
|
get renderedIcon() {
|
|
1288
1288
|
return this.value.showIcon ? this.value.icon : void 0;
|
|
1289
1289
|
}
|
|
1290
1290
|
get showIcon() {
|
|
1291
|
-
return
|
|
1291
|
+
return K(this.value.icon) && !G(this.value.icon) ? this.value.showIcon : !1;
|
|
1292
1292
|
}
|
|
1293
1293
|
get renderAs() {
|
|
1294
1294
|
return this.value.renderAs;
|
|
@@ -1306,7 +1306,7 @@ var Ht = class e extends z {
|
|
|
1306
1306
|
var n;
|
|
1307
1307
|
let r = J(J({}, t == null ? {} : t), {}, { value: {
|
|
1308
1308
|
name: "close",
|
|
1309
|
-
label:
|
|
1309
|
+
label: Pt.Close,
|
|
1310
1310
|
icon: "ion-close-outline",
|
|
1311
1311
|
renderAs: $.BUTTON,
|
|
1312
1312
|
showLabel: !0,
|
|
@@ -1318,7 +1318,7 @@ var Ht = class e extends z {
|
|
|
1318
1318
|
var n;
|
|
1319
1319
|
let r = J(J({}, t == null ? {} : t), {}, { value: {
|
|
1320
1320
|
name: "yes",
|
|
1321
|
-
label:
|
|
1321
|
+
label: Pt.Yes,
|
|
1322
1322
|
icon: "ion-thumbs-up-outline",
|
|
1323
1323
|
renderAs: $.BUTTON,
|
|
1324
1324
|
showLabel: !0,
|
|
@@ -1330,7 +1330,7 @@ var Ht = class e extends z {
|
|
|
1330
1330
|
var n;
|
|
1331
1331
|
let r = J(J({}, t == null ? {} : t), {}, { value: {
|
|
1332
1332
|
name: "no",
|
|
1333
|
-
label:
|
|
1333
|
+
label: Pt.No,
|
|
1334
1334
|
icon: "ion-thumbs-down-outline",
|
|
1335
1335
|
renderAs: $.BUTTON,
|
|
1336
1336
|
showLabel: !0,
|
|
@@ -1341,8 +1341,8 @@ var Ht = class e extends z {
|
|
|
1341
1341
|
};
|
|
1342
1342
|
//#endregion
|
|
1343
1343
|
//#region src/helpers/use-file-touch-keepalive.ts
|
|
1344
|
-
function
|
|
1345
|
-
let i = d(
|
|
1344
|
+
function Wt(e, t, n, r) {
|
|
1345
|
+
let i = d(At, {}), a = S(null);
|
|
1346
1346
|
function o() {
|
|
1347
1347
|
a.value && window.clearInterval(a.value);
|
|
1348
1348
|
}
|
|
@@ -1352,7 +1352,7 @@ function Ut(e, t, n, r) {
|
|
|
1352
1352
|
let l = (s = (c = n()) == null ? i.defaultTouchInterval : c) == null ? 6e4 : s;
|
|
1353
1353
|
a.value = window.setInterval(() => {
|
|
1354
1354
|
e.value && t().touch(e.value).catch((e) => {
|
|
1355
|
-
e instanceof
|
|
1355
|
+
e instanceof kt && r(e.errorText);
|
|
1356
1356
|
});
|
|
1357
1357
|
}, l);
|
|
1358
1358
|
}
|
|
@@ -1361,55 +1361,57 @@ function Ut(e, t, n, r) {
|
|
|
1361
1361
|
clearTouchInterval: o
|
|
1362
1362
|
};
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1365
|
-
e && (e.errors = [new
|
|
1364
|
+
function Gt(e, t) {
|
|
1365
|
+
e && (e.errors = [new ie(t)]);
|
|
1366
1366
|
}
|
|
1367
1367
|
//#endregion
|
|
1368
1368
|
//#region src/df-actions.vue?vue&type=script&setup=true&lang.ts
|
|
1369
|
-
var
|
|
1369
|
+
var Kt = {
|
|
1370
1370
|
key: 1,
|
|
1371
1371
|
style: { width: "0.5rem" }
|
|
1372
|
-
},
|
|
1372
|
+
}, qt = { key: 2 }, Jt = /* @__PURE__ */ l({
|
|
1373
1373
|
__name: "df-actions",
|
|
1374
1374
|
props: {
|
|
1375
1375
|
actions: {},
|
|
1376
1376
|
buttonSize: { default: "default" },
|
|
1377
|
+
buttonDensity: { default: "default" },
|
|
1377
1378
|
showAsGroup: { default: "no" }
|
|
1378
1379
|
},
|
|
1379
1380
|
setup(a) {
|
|
1380
|
-
let o = a, s =
|
|
1381
|
+
let o = a, s = Bt(), c = t(() => j(o.actions).filter((e) => e.visibility !== z.SUPPRESS)), l = t(() => c.value.map((e) => J({ action: e }, Ht(e.value, s.value))));
|
|
1381
1382
|
function u(e) {
|
|
1382
1383
|
if (e.defaultConfirm) return "primary";
|
|
1383
1384
|
if (e.defaultReject) return "secondary";
|
|
1384
1385
|
}
|
|
1385
1386
|
return (t, o) => {
|
|
1386
|
-
let s =
|
|
1387
|
-
return c.value.length > 0 ? (
|
|
1387
|
+
let s = T("v-btn");
|
|
1388
|
+
return c.value.length > 0 ? (x(), i("div", {
|
|
1388
1389
|
key: 0,
|
|
1389
1390
|
class: g(["text-end df-actions", {
|
|
1390
1391
|
"button-group": a.showAsGroup === "grouped" || a.showAsGroup === "grouped-no-borders",
|
|
1391
1392
|
"with-border": a.showAsGroup === "grouped"
|
|
1392
1393
|
}])
|
|
1393
|
-
}, [(
|
|
1394
|
+
}, [(x(!0), i(e, null, C(l.value, (e, t) => (x(), n(s, m({
|
|
1394
1395
|
key: t,
|
|
1395
|
-
variant: e.renderAs ===
|
|
1396
|
+
variant: e.renderAs === j($).BUTTON ? "tonal" : "text",
|
|
1396
1397
|
color: u(e),
|
|
1397
1398
|
disabled: !e.action.effectiveEnabled || e.action.busy,
|
|
1398
1399
|
loading: e.action.busy,
|
|
1399
1400
|
elevation: 0,
|
|
1400
1401
|
size: a.buttonSize,
|
|
1402
|
+
density: a.buttonDensity,
|
|
1401
1403
|
class: {
|
|
1402
|
-
"d-none": e.action.visibility ===
|
|
1403
|
-
invisible: e.action.visibility ===
|
|
1404
|
+
"d-none": e.action.visibility === j(z).HIDDEN,
|
|
1405
|
+
invisible: e.action.visibility === j(z).INVISIBLE
|
|
1404
1406
|
}
|
|
1405
|
-
}, { ref_for: !0 }, e.passthroughAttrs, { onClick:
|
|
1406
|
-
default:
|
|
1407
|
-
e.icon ? (
|
|
1407
|
+
}, { ref_for: !0 }, e.passthroughAttrs, { onClick: I((t) => e.action.execute(t), ["stop"]) }), {
|
|
1408
|
+
default: P(() => [
|
|
1409
|
+
e.icon ? (x(), n(j(V), {
|
|
1408
1410
|
key: 0,
|
|
1409
1411
|
name: e.icon
|
|
1410
1412
|
}, null, 8, ["name"])) : r("", !0),
|
|
1411
|
-
e.icon && e.label ? (
|
|
1412
|
-
e.label ? (
|
|
1413
|
+
e.icon && e.label ? (x(), i("span", Kt)) : r("", !0),
|
|
1414
|
+
e.label ? (x(), i("span", qt, O(e.label), 1)) : r("", !0)
|
|
1413
1415
|
]),
|
|
1414
1416
|
_: 2
|
|
1415
1417
|
}, 1040, [
|
|
@@ -1418,12 +1420,13 @@ var Gt = {
|
|
|
1418
1420
|
"disabled",
|
|
1419
1421
|
"loading",
|
|
1420
1422
|
"size",
|
|
1423
|
+
"density",
|
|
1421
1424
|
"class",
|
|
1422
1425
|
"onClick"
|
|
1423
1426
|
]))), 128))], 2)) : r("", !0);
|
|
1424
1427
|
};
|
|
1425
1428
|
}
|
|
1426
|
-
}),
|
|
1429
|
+
}), Yt = /* @__PURE__ */ l({
|
|
1427
1430
|
__name: "df-checkbox",
|
|
1428
1431
|
props: /*@__PURE__*/ p({
|
|
1429
1432
|
allowNull: { type: Boolean },
|
|
@@ -1451,32 +1454,32 @@ var Gt = {
|
|
|
1451
1454
|
set() {}
|
|
1452
1455
|
});
|
|
1453
1456
|
function v() {
|
|
1454
|
-
let e =
|
|
1457
|
+
let e = ae(f.value);
|
|
1455
1458
|
e === !0 ? f.value = a.allowNull ? null : !1 : f.value = e === !1;
|
|
1456
1459
|
}
|
|
1457
1460
|
return (e, t) => {
|
|
1458
|
-
let i =
|
|
1459
|
-
return
|
|
1461
|
+
let i = T("v-checkbox");
|
|
1462
|
+
return j(s) ? (x(), n(i, m({
|
|
1460
1463
|
key: 0,
|
|
1461
1464
|
modelValue: _.value,
|
|
1462
1465
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => _.value = e),
|
|
1463
1466
|
density: "compact",
|
|
1464
|
-
class: [
|
|
1467
|
+
class: [j(o), j(p)],
|
|
1465
1468
|
indeterminate: g.value,
|
|
1466
1469
|
"false-value": !1,
|
|
1467
1470
|
"true-value": !0
|
|
1468
|
-
},
|
|
1471
|
+
}, j(h), {
|
|
1469
1472
|
onChange: v,
|
|
1470
1473
|
onBlur: t[1] || (t[1] = (e) => d.value = !0)
|
|
1471
1474
|
}), {
|
|
1472
|
-
label:
|
|
1475
|
+
label: P((e) => [c(j(X), {
|
|
1473
1476
|
"allow-wrap": !0,
|
|
1474
1477
|
data: e,
|
|
1475
|
-
label:
|
|
1478
|
+
label: j(l)
|
|
1476
1479
|
}, null, 8, ["data", "label"])]),
|
|
1477
|
-
message:
|
|
1480
|
+
message: P(({ message: e }) => [c(j(Y), {
|
|
1478
1481
|
message: e,
|
|
1479
|
-
errors:
|
|
1482
|
+
errors: j(u)
|
|
1480
1483
|
}, null, 8, ["message", "errors"])]),
|
|
1481
1484
|
_: 1
|
|
1482
1485
|
}, 16, [
|
|
@@ -1486,7 +1489,7 @@ var Gt = {
|
|
|
1486
1489
|
])) : r("", !0);
|
|
1487
1490
|
};
|
|
1488
1491
|
}
|
|
1489
|
-
}),
|
|
1492
|
+
}), Xt = /* @__PURE__ */ l({
|
|
1490
1493
|
__name: "df-color",
|
|
1491
1494
|
props: /*@__PURE__*/ p({
|
|
1492
1495
|
allowNull: { type: Boolean },
|
|
@@ -1507,40 +1510,40 @@ var Gt = {
|
|
|
1507
1510
|
}, J(J({}, Z), {}, { allowNull: !1 })),
|
|
1508
1511
|
emits: ["update:modelValue", "click:clear"],
|
|
1509
1512
|
setup(e, { emit: i }) {
|
|
1510
|
-
let o = e, { densityClass: s, isRendered: l, label: u, showErrors: d, touched: p, value: h, visibilityClass: g, vuetifyBindings: _ } = Q(o, i), y =
|
|
1513
|
+
let o = e, { densityClass: s, isRendered: l, label: u, showErrors: d, touched: p, value: h, visibilityClass: g, vuetifyBindings: _ } = Q(o, i), y = S(!1), b = t(() => [(e) => o.control || !e && o.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(e) ? !0 : Pt.InvalidHexColor]);
|
|
1511
1514
|
return (t, i) => {
|
|
1512
|
-
let o =
|
|
1513
|
-
return
|
|
1515
|
+
let o = T("v-color-picker"), S = T("v-menu"), C = T("v-text-field");
|
|
1516
|
+
return j(l) ? (x(), n(C, m({
|
|
1514
1517
|
key: 0,
|
|
1515
|
-
modelValue:
|
|
1518
|
+
modelValue: j(h),
|
|
1516
1519
|
"onUpdate:modelValue": i[2] || (i[2] = (e) => f(h) ? h.value = e : null),
|
|
1517
|
-
class: [
|
|
1520
|
+
class: [j(s), j(g)],
|
|
1518
1521
|
clearable: e.allowNull,
|
|
1519
1522
|
type: "text",
|
|
1520
|
-
rules:
|
|
1521
|
-
},
|
|
1522
|
-
label:
|
|
1523
|
+
rules: b.value
|
|
1524
|
+
}, j(_), { onBlur: i[3] || (i[3] = (e) => p.value = !0) }), {
|
|
1525
|
+
label: P((e) => [c(j(X), {
|
|
1523
1526
|
data: e,
|
|
1524
|
-
label:
|
|
1527
|
+
label: j(u)
|
|
1525
1528
|
}, null, 8, ["data", "label"])]),
|
|
1526
|
-
message:
|
|
1529
|
+
message: P(({ message: e }) => [c(j(Y), {
|
|
1527
1530
|
message: e,
|
|
1528
|
-
errors:
|
|
1531
|
+
errors: j(d)
|
|
1529
1532
|
}, null, 8, ["message", "errors"])]),
|
|
1530
|
-
"prepend-inner":
|
|
1533
|
+
"prepend-inner": P(() => [a("div", { style: v([{
|
|
1531
1534
|
width: "24px",
|
|
1532
1535
|
height: "24px",
|
|
1533
1536
|
"border-radius": "4px",
|
|
1534
1537
|
border: "1px solid #ccc"
|
|
1535
|
-
}, { backgroundColor:
|
|
1536
|
-
default:
|
|
1538
|
+
}, { backgroundColor: j(h) }]) }, null, 4)]),
|
|
1539
|
+
default: P(() => [c(S, {
|
|
1537
1540
|
modelValue: y.value,
|
|
1538
1541
|
"onUpdate:modelValue": i[1] || (i[1] = (e) => y.value = e),
|
|
1539
1542
|
"close-on-content-click": !1,
|
|
1540
1543
|
activator: "parent"
|
|
1541
1544
|
}, {
|
|
1542
|
-
default:
|
|
1543
|
-
modelValue:
|
|
1545
|
+
default: P(() => [c(o, {
|
|
1546
|
+
modelValue: j(h),
|
|
1544
1547
|
"onUpdate:modelValue": i[0] || (i[0] = (e) => f(h) ? h.value = e : null),
|
|
1545
1548
|
mode: "hexa"
|
|
1546
1549
|
}, null, 8, ["modelValue"])]),
|
|
@@ -1555,7 +1558,7 @@ var Gt = {
|
|
|
1555
1558
|
])) : r("", !0);
|
|
1556
1559
|
};
|
|
1557
1560
|
}
|
|
1558
|
-
}),
|
|
1561
|
+
}), Zt = /* @__PURE__ */ l({
|
|
1559
1562
|
__name: "df-datetime",
|
|
1560
1563
|
props: /*@__PURE__*/ p({
|
|
1561
1564
|
inputType: {},
|
|
@@ -1585,43 +1588,43 @@ var Gt = {
|
|
|
1585
1588
|
setup(e, { emit: i }) {
|
|
1586
1589
|
let o = e, s = i, l = t(() => {
|
|
1587
1590
|
var e;
|
|
1588
|
-
return (e = o.locale) == null ?
|
|
1591
|
+
return (e = o.locale) == null ? j(Ot.dateTimeLocale) : e;
|
|
1589
1592
|
}), u = t(() => {
|
|
1590
1593
|
var e, t;
|
|
1591
1594
|
return (e = (t = l.value.options) == null ? void 0 : t.weekStartsOn) == null ? 1 : e;
|
|
1592
|
-
}), { density: d, densityClass: f, touched: p, value: h, vuetifyBindings: _ } = Q(o, s), { inputType: v, displayFormatDate: y, displayFormatTime:
|
|
1595
|
+
}), { density: d, densityClass: f, touched: p, value: h, vuetifyBindings: _ } = Q(o, s), { inputType: v, displayFormatDate: y, displayFormatTime: b } = A(o), C = S(""), w = t({
|
|
1593
1596
|
get() {
|
|
1594
|
-
return
|
|
1597
|
+
return j(C) === "date";
|
|
1595
1598
|
},
|
|
1596
1599
|
set(e) {
|
|
1597
1600
|
C.value = e ? "date" : "";
|
|
1598
1601
|
}
|
|
1599
1602
|
}), D = t({
|
|
1600
1603
|
get() {
|
|
1601
|
-
return
|
|
1604
|
+
return j(C) === "time";
|
|
1602
1605
|
},
|
|
1603
1606
|
set(e) {
|
|
1604
1607
|
C.value = e ? "time" : "";
|
|
1605
1608
|
}
|
|
1606
|
-
}), O = (e) => `${
|
|
1609
|
+
}), O = (e) => `${he(e, "yyyy-MM-dd")}T${he(e, "HH:mm")}:00`, k = S(null);
|
|
1607
1610
|
function M(e, t) {
|
|
1608
|
-
if (e == null)
|
|
1611
|
+
if (e == null) k.value = null;
|
|
1609
1612
|
else if (t === -1) {
|
|
1610
|
-
if (
|
|
1613
|
+
if (j(v) === "time") k.value = O(/* @__PURE__ */ new Date()), M(`T${e}`, 1);
|
|
1611
1614
|
else {
|
|
1612
1615
|
let t = O(new Date(e));
|
|
1613
1616
|
M(t, 0), M(t, 1);
|
|
1614
1617
|
}
|
|
1615
1618
|
} else {
|
|
1616
|
-
|
|
1617
|
-
let n =
|
|
1618
|
-
n[t] = e.split(/[TZ]/g)[t],
|
|
1619
|
+
k.value == null && (k.value = O(/* @__PURE__ */ new Date()));
|
|
1620
|
+
let n = k.value.split(/[TZ]/g);
|
|
1621
|
+
n[t] = e.split(/[TZ]/g)[t], k.value = O(/* @__PURE__ */ new Date(`${n[0]}T${n[1].split(".")[0]}`)), j(v) === "date" ? h.value = n[0] : j(v) === "time" ? h.value = n[1] : h.value = j(k) + he(/* @__PURE__ */ new Date(), "XXX");
|
|
1619
1622
|
}
|
|
1620
1623
|
}
|
|
1621
1624
|
N(h, (e) => M(e, -1), { immediate: !0 });
|
|
1622
|
-
let
|
|
1625
|
+
let ee = t({
|
|
1623
1626
|
get() {
|
|
1624
|
-
let e =
|
|
1627
|
+
let e = j(k);
|
|
1625
1628
|
if (e == null) return null;
|
|
1626
1629
|
let t = new Date(e);
|
|
1627
1630
|
return Number.isNaN(t.getTime()) ? null : t;
|
|
@@ -1629,85 +1632,85 @@ var Gt = {
|
|
|
1629
1632
|
set(e) {
|
|
1630
1633
|
M(O(e), 0);
|
|
1631
1634
|
}
|
|
1632
|
-
}),
|
|
1635
|
+
}), te = t({
|
|
1633
1636
|
get() {
|
|
1634
|
-
let e =
|
|
1637
|
+
let e = j(k);
|
|
1635
1638
|
return e == null ? "" : e.split(/[TZ]/g)[1].split(".")[0];
|
|
1636
1639
|
},
|
|
1637
1640
|
set(e) {
|
|
1638
1641
|
M(`T${e}`, 1);
|
|
1639
1642
|
}
|
|
1640
|
-
}),
|
|
1643
|
+
}), I = t({
|
|
1641
1644
|
get() {
|
|
1642
|
-
let e =
|
|
1643
|
-
return e == null ? "" :
|
|
1645
|
+
let e = j(ee);
|
|
1646
|
+
return e == null ? "" : he(e, j(y), { locale: l.value });
|
|
1644
1647
|
},
|
|
1645
1648
|
set(e) {
|
|
1646
1649
|
try {
|
|
1647
|
-
let t =
|
|
1650
|
+
let t = ge(e, j(y), /* @__PURE__ */ new Date(), { locale: l.value });
|
|
1648
1651
|
M(O(t), 0);
|
|
1649
1652
|
} catch (e) {
|
|
1650
1653
|
console.error(e);
|
|
1651
1654
|
}
|
|
1652
1655
|
}
|
|
1653
|
-
}),
|
|
1656
|
+
}), L = t({
|
|
1654
1657
|
get() {
|
|
1655
|
-
let e =
|
|
1656
|
-
return e == null ? "" :
|
|
1658
|
+
let e = j(ee);
|
|
1659
|
+
return e == null ? "" : he(e, j(b), { locale: l.value });
|
|
1657
1660
|
},
|
|
1658
1661
|
set(e) {
|
|
1659
1662
|
let t = e.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
1660
1663
|
if (t == null) return;
|
|
1661
|
-
let n =
|
|
1662
|
-
|
|
1664
|
+
let n = q(t[1]), r = q(t[2]);
|
|
1665
|
+
le(n) || le(r) || (t[3] && t[3].toLowerCase() === "pm" && n < 13 && (n += 12), M(`T${n.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}:00`, 1));
|
|
1663
1666
|
}
|
|
1664
1667
|
});
|
|
1665
1668
|
return (t, i) => {
|
|
1666
|
-
let s =
|
|
1667
|
-
return
|
|
1668
|
-
class:
|
|
1669
|
+
let s = T("v-date-picker"), l = T("v-confirm-edit"), y = T("v-menu"), b = T("v-text-field"), S = T("v-time-picker");
|
|
1670
|
+
return x(), n(j(Nt), m(o, {
|
|
1671
|
+
class: j(f),
|
|
1669
1672
|
clearable: e.clearable,
|
|
1670
1673
|
"onClick:clear": i[14] || (i[14] = (e) => h.value = null),
|
|
1671
1674
|
onBlur: i[15] || (i[15] = (e) => p.value = !0)
|
|
1672
1675
|
}), {
|
|
1673
|
-
default:
|
|
1676
|
+
default: P((t) => [a("div", { class: g([
|
|
1674
1677
|
"d-flex",
|
|
1675
1678
|
"w-100",
|
|
1676
|
-
["plain", "underlined"].includes(
|
|
1679
|
+
["plain", "underlined"].includes(j(_).variant) ? void 0 : "ml-4",
|
|
1677
1680
|
"df-input-wrapper",
|
|
1678
|
-
|
|
1679
|
-
]) }, [["date", "datetime"].includes(
|
|
1681
|
+
j(d)
|
|
1682
|
+
]) }, [["date", "datetime"].includes(j(v)) ? (x(), n(b, m({
|
|
1680
1683
|
key: 0,
|
|
1681
|
-
modelValue:
|
|
1682
|
-
"onUpdate:modelValue": i[4] || (i[4] = (e) =>
|
|
1684
|
+
modelValue: I.value,
|
|
1685
|
+
"onUpdate:modelValue": i[4] || (i[4] = (e) => I.value = e),
|
|
1683
1686
|
style: { "flex-grow": "4" },
|
|
1684
1687
|
density: "compact",
|
|
1685
1688
|
variant: "plain",
|
|
1686
1689
|
clearable: !1,
|
|
1687
1690
|
"hide-details": !0,
|
|
1688
|
-
readonly:
|
|
1689
|
-
disabled:
|
|
1690
|
-
name: `${
|
|
1691
|
-
placeholder:
|
|
1691
|
+
readonly: j(_).readonly,
|
|
1692
|
+
disabled: j(_).disabled,
|
|
1693
|
+
name: `${j(_).name}-date`,
|
|
1694
|
+
placeholder: j(_).placeholder
|
|
1692
1695
|
}, e.passthroughAttrs, {
|
|
1693
1696
|
onClick: i[5] || (i[5] = (e) => C.value = "date"),
|
|
1694
|
-
onKeydown: i[6] || (i[6] =
|
|
1697
|
+
onKeydown: i[6] || (i[6] = F((e) => C.value = "date", ["space"])),
|
|
1695
1698
|
onFocus: (e) => t.focus(),
|
|
1696
1699
|
onBlur: (e) => t.blur()
|
|
1697
1700
|
}), {
|
|
1698
|
-
default:
|
|
1699
|
-
modelValue:
|
|
1700
|
-
"onUpdate:modelValue": i[3] || (i[3] = (e) =>
|
|
1701
|
+
default: P(() => [c(y, {
|
|
1702
|
+
modelValue: w.value,
|
|
1703
|
+
"onUpdate:modelValue": i[3] || (i[3] = (e) => w.value = e),
|
|
1701
1704
|
"close-on-content-click": !1,
|
|
1702
1705
|
activator: "parent"
|
|
1703
1706
|
}, {
|
|
1704
|
-
default:
|
|
1705
|
-
modelValue:
|
|
1706
|
-
"onUpdate:modelValue": i[0] || (i[0] = (e) =>
|
|
1707
|
+
default: P(() => [c(l, {
|
|
1708
|
+
modelValue: ee.value,
|
|
1709
|
+
"onUpdate:modelValue": i[0] || (i[0] = (e) => ee.value = e),
|
|
1707
1710
|
onCancel: i[1] || (i[1] = (e) => C.value = ""),
|
|
1708
1711
|
onSave: i[2] || (i[2] = (e) => C.value = "")
|
|
1709
1712
|
}, {
|
|
1710
|
-
default:
|
|
1713
|
+
default: P(({ model: e, actions: t }) => [c(s, {
|
|
1711
1714
|
modelValue: e.value,
|
|
1712
1715
|
"onUpdate:modelValue": (t) => e.value = t,
|
|
1713
1716
|
"hide-header": !0,
|
|
@@ -1715,7 +1718,7 @@ var Gt = {
|
|
|
1715
1718
|
"show-adjacent-months": !0,
|
|
1716
1719
|
"show-week": !0
|
|
1717
1720
|
}, {
|
|
1718
|
-
actions:
|
|
1721
|
+
actions: P(() => [(x(), n(E(t)))]),
|
|
1719
1722
|
_: 2
|
|
1720
1723
|
}, 1032, [
|
|
1721
1724
|
"modelValue",
|
|
@@ -1735,44 +1738,44 @@ var Gt = {
|
|
|
1735
1738
|
"placeholder",
|
|
1736
1739
|
"onFocus",
|
|
1737
1740
|
"onBlur"
|
|
1738
|
-
])) : r("", !0), ["time", "datetime"].includes(
|
|
1741
|
+
])) : r("", !0), ["time", "datetime"].includes(j(v)) ? (x(), n(b, m({
|
|
1739
1742
|
key: 1,
|
|
1740
|
-
modelValue:
|
|
1741
|
-
"onUpdate:modelValue": i[11] || (i[11] = (e) =>
|
|
1743
|
+
modelValue: L.value,
|
|
1744
|
+
"onUpdate:modelValue": i[11] || (i[11] = (e) => L.value = e),
|
|
1742
1745
|
style: { "flex-grow": "3" },
|
|
1743
1746
|
density: "compact",
|
|
1744
1747
|
variant: "plain",
|
|
1745
1748
|
clearable: !1,
|
|
1746
1749
|
"hide-details": !0,
|
|
1747
|
-
readonly:
|
|
1748
|
-
disabled:
|
|
1749
|
-
name: `${
|
|
1750
|
-
placeholder:
|
|
1750
|
+
readonly: j(_).readonly,
|
|
1751
|
+
disabled: j(_).disabled,
|
|
1752
|
+
name: `${j(_).name}-time`,
|
|
1753
|
+
placeholder: j(v) === "time" ? j(_).placeholder : void 0
|
|
1751
1754
|
}, e.passthroughAttrs, {
|
|
1752
1755
|
onClick: i[12] || (i[12] = (e) => C.value = "time"),
|
|
1753
|
-
onKeydown: i[13] || (i[13] =
|
|
1756
|
+
onKeydown: i[13] || (i[13] = F((e) => C.value = "time", ["space"])),
|
|
1754
1757
|
onFocus: (e) => t.focus(),
|
|
1755
1758
|
onBlur: (e) => t.blur()
|
|
1756
1759
|
}), {
|
|
1757
|
-
default:
|
|
1760
|
+
default: P(() => [c(y, {
|
|
1758
1761
|
modelValue: D.value,
|
|
1759
1762
|
"onUpdate:modelValue": i[10] || (i[10] = (e) => D.value = e),
|
|
1760
1763
|
"close-on-content-click": !1,
|
|
1761
1764
|
activator: "parent"
|
|
1762
1765
|
}, {
|
|
1763
|
-
default:
|
|
1764
|
-
modelValue:
|
|
1765
|
-
"onUpdate:modelValue": i[7] || (i[7] = (e) =>
|
|
1766
|
+
default: P(() => [c(l, {
|
|
1767
|
+
modelValue: te.value,
|
|
1768
|
+
"onUpdate:modelValue": i[7] || (i[7] = (e) => te.value = e),
|
|
1766
1769
|
onCancel: i[8] || (i[8] = (e) => C.value = ""),
|
|
1767
1770
|
onSave: i[9] || (i[9] = (e) => C.value = "")
|
|
1768
1771
|
}, {
|
|
1769
|
-
default:
|
|
1772
|
+
default: P(({ model: e, actions: t }) => [c(S, {
|
|
1770
1773
|
modelValue: e.value,
|
|
1771
1774
|
"onUpdate:modelValue": (t) => e.value = t,
|
|
1772
1775
|
"hide-header": !0,
|
|
1773
1776
|
format: "24hr"
|
|
1774
1777
|
}, {
|
|
1775
|
-
actions:
|
|
1778
|
+
actions: P(() => [(x(), n(E(t)))]),
|
|
1776
1779
|
_: 2
|
|
1777
1780
|
}, 1032, ["modelValue", "onUpdate:modelValue"])]),
|
|
1778
1781
|
_: 1
|
|
@@ -1796,7 +1799,7 @@ var Gt = {
|
|
|
1796
1799
|
});
|
|
1797
1800
|
//#endregion
|
|
1798
1801
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/asyncToGenerator.js
|
|
1799
|
-
function
|
|
1802
|
+
function Qt(e, t, n, r, i, a, o) {
|
|
1800
1803
|
try {
|
|
1801
1804
|
var s = e[a](o), c = s.value;
|
|
1802
1805
|
} catch (e) {
|
|
@@ -1805,16 +1808,16 @@ function Zt(e, t, n, r, i, a, o) {
|
|
|
1805
1808
|
}
|
|
1806
1809
|
s.done ? t(c) : Promise.resolve(c).then(r, i);
|
|
1807
1810
|
}
|
|
1808
|
-
function
|
|
1811
|
+
function $t(e) {
|
|
1809
1812
|
return function() {
|
|
1810
1813
|
var t = this, n = arguments;
|
|
1811
1814
|
return new Promise(function(r, i) {
|
|
1812
1815
|
var a = e.apply(t, n);
|
|
1813
1816
|
function o(e) {
|
|
1814
|
-
|
|
1817
|
+
Qt(a, r, i, o, s, "next", e);
|
|
1815
1818
|
}
|
|
1816
1819
|
function s(e) {
|
|
1817
|
-
|
|
1820
|
+
Qt(a, r, i, o, s, "throw", e);
|
|
1818
1821
|
}
|
|
1819
1822
|
o(void 0);
|
|
1820
1823
|
});
|
|
@@ -1822,7 +1825,7 @@ function Qt(e) {
|
|
|
1822
1825
|
}
|
|
1823
1826
|
//#endregion
|
|
1824
1827
|
//#region src/df-file.vue?vue&type=script&setup=true&lang.ts
|
|
1825
|
-
var
|
|
1828
|
+
var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
|
|
1826
1829
|
__name: "df-file",
|
|
1827
1830
|
props: /*@__PURE__*/ p({
|
|
1828
1831
|
comms: {},
|
|
@@ -1844,73 +1847,73 @@ var $t = ["title", "aria-label"], en = /* @__PURE__ */ l({
|
|
|
1844
1847
|
}, Z),
|
|
1845
1848
|
emits: ["update:modelValue", "click:clear"],
|
|
1846
1849
|
setup(e, { emit: i }) {
|
|
1847
|
-
let s = e, { density: l, densityClass: u, touched: d, value: f, vuetifyBindings: p } = Q(s, i), h =
|
|
1850
|
+
let s = e, { density: l, densityClass: u, touched: d, value: f, vuetifyBindings: p } = Q(s, i), h = Pt, _ = S(null), v = S(0), y = S(Math.round(Math.random() * 1e3)), b = S(), C = t(() => _.value && v.value < 100), w = t(() => !b.value && f.value ? f.value : ""), E = t(() => !b.value && !!f.value && !!s.comms.getDownloadUrl);
|
|
1848
1851
|
function D() {
|
|
1849
1852
|
return O.apply(this, arguments);
|
|
1850
1853
|
}
|
|
1851
1854
|
function O() {
|
|
1852
|
-
return O =
|
|
1855
|
+
return O = $t(function* () {
|
|
1853
1856
|
if (!f.value || !s.comms.getDownloadUrl) return;
|
|
1854
1857
|
let e = yield s.comms.getDownloadUrl(f.value), t = document.createElement("a");
|
|
1855
1858
|
t.href = e, t.download = "", t.rel = "noopener", t.click();
|
|
1856
1859
|
}), O.apply(this, arguments);
|
|
1857
1860
|
}
|
|
1858
1861
|
function k() {
|
|
1859
|
-
f.value = null, v.value = 0, y.value = Math.round(Math.random() * 1e3), _.value = null,
|
|
1862
|
+
f.value = null, v.value = 0, y.value = Math.round(Math.random() * 1e3), _.value = null, b.value = null, ee();
|
|
1860
1863
|
}
|
|
1861
|
-
function
|
|
1862
|
-
k(),
|
|
1864
|
+
function A(e) {
|
|
1865
|
+
k(), Gt(s.control, e);
|
|
1863
1866
|
}
|
|
1864
|
-
let { setupTouchInterval: M, clearTouchInterval:
|
|
1865
|
-
function
|
|
1866
|
-
return
|
|
1867
|
+
let { setupTouchInterval: M, clearTouchInterval: ee } = Wt(f, () => s.comms, () => s.touchInterval, A);
|
|
1868
|
+
function N() {
|
|
1869
|
+
return te.apply(this, arguments);
|
|
1867
1870
|
}
|
|
1868
|
-
function
|
|
1869
|
-
return
|
|
1871
|
+
function te() {
|
|
1872
|
+
return te = $t(function* () {
|
|
1870
1873
|
f.value && (yield s.comms.delete(f.value)), k();
|
|
1871
|
-
}),
|
|
1874
|
+
}), te.apply(this, arguments);
|
|
1872
1875
|
}
|
|
1873
|
-
function
|
|
1874
|
-
return
|
|
1876
|
+
function F(e) {
|
|
1877
|
+
return L.apply(this, arguments);
|
|
1875
1878
|
}
|
|
1876
|
-
function
|
|
1877
|
-
return
|
|
1879
|
+
function L() {
|
|
1880
|
+
return L = $t(function* (e) {
|
|
1878
1881
|
v.value = -1, _.value = e;
|
|
1879
1882
|
try {
|
|
1880
1883
|
f.value = yield s.comms.upload(e, (e, t) => {
|
|
1881
1884
|
v.value = Math.round(e * 100 / t);
|
|
1882
1885
|
}), v.value = 100, M();
|
|
1883
1886
|
} catch (e) {
|
|
1884
|
-
throw v.value = 0, _.value = null, y.value = Math.round(Math.random() * 1e3),
|
|
1887
|
+
throw v.value = 0, _.value = null, y.value = Math.round(Math.random() * 1e3), b.value = null, e;
|
|
1885
1888
|
}
|
|
1886
|
-
}),
|
|
1889
|
+
}), L.apply(this, arguments);
|
|
1887
1890
|
}
|
|
1888
|
-
function
|
|
1889
|
-
e && (Array.isArray(e) ? console.error("Uploading multiple files not supported right now") :
|
|
1891
|
+
function R(e) {
|
|
1892
|
+
e && (Array.isArray(e) ? console.error("Uploading multiple files not supported right now") : F(e));
|
|
1890
1893
|
}
|
|
1891
1894
|
return (t, i) => {
|
|
1892
|
-
let f =
|
|
1893
|
-
return
|
|
1894
|
-
class:
|
|
1895
|
+
let f = T("v-progress-linear"), y = T("v-file-input");
|
|
1896
|
+
return x(), n(j(Nt), m(J(J({}, s), {}, { loading: C.value }), {
|
|
1897
|
+
class: j(u),
|
|
1895
1898
|
clearable: "",
|
|
1896
|
-
"onClick:clear":
|
|
1899
|
+
"onClick:clear": N,
|
|
1897
1900
|
onBlur: i[1] || (i[1] = (e) => d.value = !0)
|
|
1898
1901
|
}), {
|
|
1899
|
-
"prepend-inner":
|
|
1900
|
-
loader:
|
|
1902
|
+
"prepend-inner": P(() => [c(j(V), { name: "mdi-paperclip" })]),
|
|
1903
|
+
loader: P(() => [_.value && v.value < 100 ? (x(), n(f, {
|
|
1901
1904
|
key: 0,
|
|
1902
1905
|
"model-value": v.value,
|
|
1903
1906
|
indeterminate: v.value === -1
|
|
1904
1907
|
}, null, 8, ["model-value", "indeterminate"])) : r("", !0)]),
|
|
1905
|
-
default:
|
|
1906
|
-
modelValue:
|
|
1907
|
-
"onUpdate:modelValue": i[0] || (i[0] = (e) =>
|
|
1908
|
-
label:
|
|
1908
|
+
default: P((t) => [a("div", { class: g(["d-flex w-100 position-relative df-input-wrapper", j(l)]) }, [c(y, m({
|
|
1909
|
+
modelValue: b.value,
|
|
1910
|
+
"onUpdate:modelValue": i[0] || (i[0] = (e) => b.value = e),
|
|
1911
|
+
label: w.value,
|
|
1909
1912
|
density: "compact",
|
|
1910
1913
|
variant: "plain",
|
|
1911
|
-
readonly:
|
|
1912
|
-
disabled:
|
|
1913
|
-
name:
|
|
1914
|
+
readonly: j(p).readonly,
|
|
1915
|
+
disabled: j(p).disabled,
|
|
1916
|
+
name: j(p).name,
|
|
1914
1917
|
"hide-details": !0,
|
|
1915
1918
|
"show-size": !0,
|
|
1916
1919
|
multiple: !1,
|
|
@@ -1918,18 +1921,18 @@ var $t = ["title", "aria-label"], en = /* @__PURE__ */ l({
|
|
|
1918
1921
|
clearable: !1
|
|
1919
1922
|
}, e.passthroughAttrs, {
|
|
1920
1923
|
"prepend-icon": "",
|
|
1921
|
-
"onUpdate:modelValue":
|
|
1924
|
+
"onUpdate:modelValue": R,
|
|
1922
1925
|
onFocus: (e) => t.focus(),
|
|
1923
1926
|
onBlur: (e) => t.blur()
|
|
1924
1927
|
}), o({ _: 2 }, [E.value ? {
|
|
1925
1928
|
name: "append-inner",
|
|
1926
|
-
fn:
|
|
1929
|
+
fn: P(() => [a("button", {
|
|
1927
1930
|
type: "button",
|
|
1928
1931
|
class: "df-file-download-btn",
|
|
1929
|
-
title:
|
|
1930
|
-
"aria-label":
|
|
1931
|
-
onClick:
|
|
1932
|
-
}, [c(
|
|
1932
|
+
title: j(h).FileDownload,
|
|
1933
|
+
"aria-label": j(h).FileDownload,
|
|
1934
|
+
onClick: I(D, ["stop", "prevent"])
|
|
1935
|
+
}, [c(j(V), { name: "mdi-download" })], 8, en)]),
|
|
1933
1936
|
key: "0"
|
|
1934
1937
|
} : void 0]), 1040, [
|
|
1935
1938
|
"modelValue",
|
|
@@ -1945,17 +1948,17 @@ var $t = ["title", "aria-label"], en = /* @__PURE__ */ l({
|
|
|
1945
1948
|
}, 16, ["class"]);
|
|
1946
1949
|
};
|
|
1947
1950
|
}
|
|
1948
|
-
}),
|
|
1951
|
+
}), nn = [
|
|
1949
1952
|
"id",
|
|
1950
1953
|
"disabled",
|
|
1951
1954
|
"name",
|
|
1952
1955
|
"onFocus",
|
|
1953
1956
|
"onBlur"
|
|
1954
|
-
],
|
|
1957
|
+
], rn = ["for"], an = ["for"], on = ["for", "title"], sn = [
|
|
1955
1958
|
"href",
|
|
1956
1959
|
"title",
|
|
1957
1960
|
"aria-label"
|
|
1958
|
-
],
|
|
1961
|
+
], cn = /* @__PURE__ */ l({
|
|
1959
1962
|
__name: "df-image",
|
|
1960
1963
|
props: /*@__PURE__*/ p({
|
|
1961
1964
|
comms: {},
|
|
@@ -1977,141 +1980,141 @@ var $t = ["title", "aria-label"], en = /* @__PURE__ */ l({
|
|
|
1977
1980
|
}, Z),
|
|
1978
1981
|
emits: ["update:modelValue", "click:clear"],
|
|
1979
1982
|
setup(e, { emit: o }) {
|
|
1980
|
-
let s = e, { density: l, densityClass: u, touched: d, value: f, vuetifyBindings: p } = Q(s, o), h =
|
|
1983
|
+
let s = e, { density: l, densityClass: u, touched: d, value: f, vuetifyBindings: p } = Q(s, o), h = Pt, _ = ee(), b = S(null), C = S(0), w = S(null), E = S(0), D = S(null), k = t(() => b.value && C.value < 100), A = t(() => !!(p.value.disabled || p.value.readonly)), M = t(() => E.value > 0), N = t(() => {
|
|
1981
1984
|
var e;
|
|
1982
|
-
return (e =
|
|
1983
|
-
}),
|
|
1984
|
-
function
|
|
1985
|
-
|
|
1985
|
+
return (e = w.value) == null ? f.value ? f.value : null : e;
|
|
1986
|
+
}), te = t(() => !!f.value);
|
|
1987
|
+
function F() {
|
|
1988
|
+
w.value && (URL.revokeObjectURL(w.value), w.value = null);
|
|
1986
1989
|
}
|
|
1987
|
-
function
|
|
1988
|
-
f.value = null, C.value = 0,
|
|
1990
|
+
function L() {
|
|
1991
|
+
f.value = null, C.value = 0, b.value = null, F(), ne();
|
|
1989
1992
|
}
|
|
1990
|
-
function
|
|
1991
|
-
|
|
1993
|
+
function R(e) {
|
|
1994
|
+
L(), Gt(s.control, e);
|
|
1992
1995
|
}
|
|
1993
|
-
let { setupTouchInterval:
|
|
1994
|
-
y(() =>
|
|
1995
|
-
function
|
|
1996
|
-
return
|
|
1996
|
+
let { setupTouchInterval: z, clearTouchInterval: ne } = Wt(f, () => s.comms, () => s.touchInterval, R);
|
|
1997
|
+
y(() => F());
|
|
1998
|
+
function re() {
|
|
1999
|
+
return B.apply(this, arguments);
|
|
1997
2000
|
}
|
|
1998
|
-
function
|
|
1999
|
-
return
|
|
2000
|
-
f.value && (yield s.comms.delete(f.value)),
|
|
2001
|
-
}),
|
|
2001
|
+
function B() {
|
|
2002
|
+
return B = $t(function* () {
|
|
2003
|
+
f.value && (yield s.comms.delete(f.value)), L();
|
|
2004
|
+
}), B.apply(this, arguments);
|
|
2002
2005
|
}
|
|
2003
|
-
function
|
|
2004
|
-
return
|
|
2006
|
+
function ie(e) {
|
|
2007
|
+
return H.apply(this, arguments);
|
|
2005
2008
|
}
|
|
2006
|
-
function
|
|
2007
|
-
return
|
|
2008
|
-
C.value = -1,
|
|
2009
|
+
function H() {
|
|
2010
|
+
return H = $t(function* (e) {
|
|
2011
|
+
C.value = -1, b.value = e, F(), w.value = URL.createObjectURL(e);
|
|
2009
2012
|
try {
|
|
2010
2013
|
f.value = yield s.comms.upload(e, (e, t) => {
|
|
2011
2014
|
C.value = Math.round(e * 100 / t);
|
|
2012
|
-
}), C.value = 100,
|
|
2015
|
+
}), C.value = 100, z();
|
|
2013
2016
|
} catch (e) {
|
|
2014
|
-
throw C.value = 0,
|
|
2017
|
+
throw C.value = 0, b.value = null, F(), e;
|
|
2015
2018
|
}
|
|
2016
|
-
}),
|
|
2019
|
+
}), H.apply(this, arguments);
|
|
2017
2020
|
}
|
|
2018
|
-
function
|
|
2021
|
+
function U(e) {
|
|
2019
2022
|
if (!e.type.startsWith("image/")) {
|
|
2020
2023
|
console.error("Only image files are supported");
|
|
2021
2024
|
return;
|
|
2022
2025
|
}
|
|
2023
|
-
|
|
2026
|
+
ie(e);
|
|
2024
2027
|
}
|
|
2025
|
-
function
|
|
2028
|
+
function ae(e) {
|
|
2026
2029
|
var t;
|
|
2027
2030
|
let n = e.target, r = (t = n.files) == null ? void 0 : t[0];
|
|
2028
|
-
n.value = "", r &&
|
|
2031
|
+
n.value = "", r && U(r);
|
|
2029
2032
|
}
|
|
2030
|
-
function
|
|
2031
|
-
|
|
2033
|
+
function oe() {
|
|
2034
|
+
A.value || (E.value += 1);
|
|
2032
2035
|
}
|
|
2033
|
-
function
|
|
2036
|
+
function se() {
|
|
2034
2037
|
E.value = Math.max(0, E.value - 1);
|
|
2035
2038
|
}
|
|
2036
|
-
function
|
|
2039
|
+
function W(e) {
|
|
2037
2040
|
var t;
|
|
2038
|
-
if (E.value = 0,
|
|
2041
|
+
if (E.value = 0, A.value) return;
|
|
2039
2042
|
let n = (t = e.dataTransfer) == null || (t = t.files) == null ? void 0 : t[0];
|
|
2040
|
-
n &&
|
|
2043
|
+
n && U(n);
|
|
2041
2044
|
}
|
|
2042
2045
|
return (e, t) => {
|
|
2043
|
-
let o =
|
|
2044
|
-
return
|
|
2045
|
-
class: ["df-image-field",
|
|
2046
|
+
let o = T("v-progress-linear"), y = T("v-img");
|
|
2047
|
+
return x(), n(j(Nt), m(J(J({}, s), {}, { loading: k.value }), {
|
|
2048
|
+
class: ["df-image-field", j(u)],
|
|
2046
2049
|
clearable: "",
|
|
2047
|
-
"onClick:clear":
|
|
2050
|
+
"onClick:clear": re,
|
|
2048
2051
|
onBlur: t[2] || (t[2] = (e) => d.value = !0)
|
|
2049
2052
|
}), {
|
|
2050
|
-
"prepend-inner":
|
|
2051
|
-
loader:
|
|
2053
|
+
"prepend-inner": P(() => [c(j(V), { name: "mdi-image" })]),
|
|
2054
|
+
loader: P(() => [b.value && C.value < 100 ? (x(), n(o, {
|
|
2052
2055
|
key: 0,
|
|
2053
2056
|
"model-value": C.value,
|
|
2054
2057
|
indeterminate: C.value === -1
|
|
2055
2058
|
}, null, 8, ["model-value", "indeterminate"])) : r("", !0)]),
|
|
2056
|
-
default:
|
|
2057
|
-
class: g(["d-flex w-100 position-relative df-input-wrapper df-image-wrapper", [
|
|
2058
|
-
"df-image-dragging":
|
|
2059
|
-
"df-image-disabled":
|
|
2059
|
+
default: P((e) => [a("div", {
|
|
2060
|
+
class: g(["d-flex w-100 position-relative df-input-wrapper df-image-wrapper", [j(l), {
|
|
2061
|
+
"df-image-dragging": M.value,
|
|
2062
|
+
"df-image-disabled": A.value
|
|
2060
2063
|
}]]),
|
|
2061
|
-
onDragenter:
|
|
2062
|
-
onDragover: t[0] || (t[0] =
|
|
2063
|
-
onDragleave:
|
|
2064
|
-
onDrop:
|
|
2065
|
-
onClick: t[1] || (t[1] =
|
|
2064
|
+
onDragenter: I(oe, ["prevent"]),
|
|
2065
|
+
onDragover: t[0] || (t[0] = I(() => {}, ["prevent"])),
|
|
2066
|
+
onDragleave: I(se, ["prevent"]),
|
|
2067
|
+
onDrop: I(W, ["prevent"]),
|
|
2068
|
+
onClick: t[1] || (t[1] = I(() => {}, ["stop"]))
|
|
2066
2069
|
}, [
|
|
2067
2070
|
a("input", {
|
|
2068
|
-
id:
|
|
2071
|
+
id: j(_),
|
|
2069
2072
|
ref_key: "fileInputRef",
|
|
2070
|
-
ref:
|
|
2073
|
+
ref: D,
|
|
2071
2074
|
type: "file",
|
|
2072
2075
|
accept: "image/*",
|
|
2073
2076
|
class: "df-image-native-input",
|
|
2074
|
-
disabled:
|
|
2075
|
-
name:
|
|
2076
|
-
onChange:
|
|
2077
|
+
disabled: A.value,
|
|
2078
|
+
name: j(p).name,
|
|
2079
|
+
onChange: ae,
|
|
2077
2080
|
onFocus: (t) => e.focus(),
|
|
2078
2081
|
onBlur: (t) => e.blur()
|
|
2079
|
-
}, null, 40,
|
|
2080
|
-
|
|
2082
|
+
}, null, 40, nn),
|
|
2083
|
+
N.value ? (x(), i("label", {
|
|
2081
2084
|
key: 0,
|
|
2082
|
-
for:
|
|
2085
|
+
for: j(_),
|
|
2083
2086
|
class: "df-image-preview-label"
|
|
2084
2087
|
}, [c(y, {
|
|
2085
|
-
src:
|
|
2088
|
+
src: N.value,
|
|
2086
2089
|
class: "df-image-preview",
|
|
2087
|
-
style: v(
|
|
2088
|
-
}, null, 8, ["src", "style"])], 8,
|
|
2090
|
+
style: v(b.value && C.value < 100 ? "visibility: hidden" : "")
|
|
2091
|
+
}, null, 8, ["src", "style"])], 8, rn)) : (x(), i("label", {
|
|
2089
2092
|
key: 1,
|
|
2090
|
-
for:
|
|
2093
|
+
for: j(_),
|
|
2091
2094
|
class: "df-image-placeholder"
|
|
2092
|
-
}, [c(
|
|
2093
|
-
|
|
2095
|
+
}, [c(j(V), { name: "mdi-tray-arrow-up" }), a("span", null, O(j(h).ImageDropHint), 1)], 8, an)),
|
|
2096
|
+
N.value && !A.value ? (x(), i("label", {
|
|
2094
2097
|
key: 2,
|
|
2095
|
-
for:
|
|
2098
|
+
for: j(_),
|
|
2096
2099
|
class: "df-image-replace-btn",
|
|
2097
|
-
title:
|
|
2098
|
-
}, [c(
|
|
2099
|
-
|
|
2100
|
+
title: j(h).ImageReplace
|
|
2101
|
+
}, [c(j(V), { name: "mdi-pencil" })], 8, on)) : r("", !0),
|
|
2102
|
+
te.value ? (x(), i("a", {
|
|
2100
2103
|
key: 3,
|
|
2101
|
-
href:
|
|
2104
|
+
href: j(f),
|
|
2102
2105
|
download: "",
|
|
2103
2106
|
target: "_blank",
|
|
2104
2107
|
rel: "noopener",
|
|
2105
2108
|
class: "df-image-download-btn",
|
|
2106
|
-
title:
|
|
2107
|
-
"aria-label":
|
|
2108
|
-
}, [c(
|
|
2109
|
+
title: j(h).ImageDownload,
|
|
2110
|
+
"aria-label": j(h).ImageDownload
|
|
2111
|
+
}, [c(j(V), { name: "mdi-download" })], 8, sn)) : r("", !0)
|
|
2109
2112
|
], 34)]),
|
|
2110
2113
|
_: 1
|
|
2111
2114
|
}, 16, ["class"]);
|
|
2112
2115
|
};
|
|
2113
2116
|
}
|
|
2114
|
-
}),
|
|
2117
|
+
}), ln = /* @__PURE__ */ l({
|
|
2115
2118
|
__name: "df-input",
|
|
2116
2119
|
props: /*@__PURE__*/ p({
|
|
2117
2120
|
inputType: {},
|
|
@@ -2142,52 +2145,52 @@ var $t = ["title", "aria-label"], en = /* @__PURE__ */ l({
|
|
|
2142
2145
|
})),
|
|
2143
2146
|
emits: ["update:modelValue", "click:clear"],
|
|
2144
2147
|
setup(e, { emit: a }) {
|
|
2145
|
-
let o = e, { densityClass: s, isRendered: l, label: u, showErrors: d, touched: p, value: h, visibilityClass: _, vuetifyBindings: v } = Q(o, a), { inputType: y, max:
|
|
2146
|
-
min:
|
|
2147
|
-
max:
|
|
2148
|
-
precision:
|
|
2149
|
-
step:
|
|
2148
|
+
let o = e, { densityClass: s, isRendered: l, label: u, showErrors: d, touched: p, value: h, visibilityClass: _, vuetifyBindings: v } = Q(o, a), { inputType: y, max: b, min: S, precision: C, step: w } = A(o), E = t(() => y.value === "number"), D = t(() => E.value ? {
|
|
2149
|
+
min: j(S),
|
|
2150
|
+
max: j(b),
|
|
2151
|
+
precision: j(C),
|
|
2152
|
+
step: j(w)
|
|
2150
2153
|
} : {});
|
|
2151
2154
|
return (e, t) => {
|
|
2152
|
-
let a =
|
|
2153
|
-
return
|
|
2155
|
+
let a = T("v-text-field"), o = T("v-number-input");
|
|
2156
|
+
return j(l) ? (x(), i("div", {
|
|
2154
2157
|
key: 0,
|
|
2155
|
-
class: g(["df-input-container", [
|
|
2156
|
-
}, [E.value ? (
|
|
2158
|
+
class: g(["df-input-container", [j(s), j(_)]])
|
|
2159
|
+
}, [E.value ? (x(), n(o, m({
|
|
2157
2160
|
key: 1,
|
|
2158
|
-
modelValue:
|
|
2161
|
+
modelValue: j(h),
|
|
2159
2162
|
"onUpdate:modelValue": t[2] || (t[2] = (e) => f(h) ? h.value = e : null),
|
|
2160
2163
|
density: "compact",
|
|
2161
2164
|
"control-variant": "stacked"
|
|
2162
|
-
}, J(J({},
|
|
2163
|
-
label:
|
|
2165
|
+
}, J(J({}, j(v)), D.value)), {
|
|
2166
|
+
label: P((e) => [c(j(X), {
|
|
2164
2167
|
data: e,
|
|
2165
|
-
label:
|
|
2168
|
+
label: j(u)
|
|
2166
2169
|
}, null, 8, ["data", "label"])]),
|
|
2167
|
-
message:
|
|
2170
|
+
message: P(({ message: e }) => [c(j(Y), {
|
|
2168
2171
|
message: e,
|
|
2169
|
-
errors:
|
|
2172
|
+
errors: j(d)
|
|
2170
2173
|
}, null, 8, ["message", "errors"])]),
|
|
2171
2174
|
_: 1
|
|
2172
|
-
}, 16, ["modelValue"])) : (
|
|
2175
|
+
}, 16, ["modelValue"])) : (x(), n(a, m({
|
|
2173
2176
|
key: 0,
|
|
2174
|
-
modelValue:
|
|
2177
|
+
modelValue: j(h),
|
|
2175
2178
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => f(h) ? h.value = e : null),
|
|
2176
|
-
type:
|
|
2177
|
-
},
|
|
2178
|
-
label:
|
|
2179
|
+
type: j(y)
|
|
2180
|
+
}, j(v), { onBlur: t[1] || (t[1] = (e) => p.value = !0) }), {
|
|
2181
|
+
label: P((e) => [c(j(X), {
|
|
2179
2182
|
data: e,
|
|
2180
|
-
label:
|
|
2183
|
+
label: j(u)
|
|
2181
2184
|
}, null, 8, ["data", "label"])]),
|
|
2182
|
-
message:
|
|
2185
|
+
message: P(({ message: e }) => [c(j(Y), {
|
|
2183
2186
|
message: e,
|
|
2184
|
-
errors:
|
|
2187
|
+
errors: j(d)
|
|
2185
2188
|
}, null, 8, ["message", "errors"])]),
|
|
2186
2189
|
_: 1
|
|
2187
2190
|
}, 16, ["modelValue", "type"]))], 2)) : r("", !0);
|
|
2188
2191
|
};
|
|
2189
2192
|
}
|
|
2190
|
-
}),
|
|
2193
|
+
}), un = ke.create({
|
|
2191
2194
|
name: "classAttribute",
|
|
2192
2195
|
addGlobalAttributes() {
|
|
2193
2196
|
return [{
|
|
@@ -2205,8 +2208,8 @@ var $t = ["title", "aria-label"], en = /* @__PURE__ */ l({
|
|
|
2205
2208
|
}];
|
|
2206
2209
|
}
|
|
2207
2210
|
});
|
|
2208
|
-
function
|
|
2209
|
-
return
|
|
2211
|
+
function dn(e, t) {
|
|
2212
|
+
return Ae.create({
|
|
2210
2213
|
name: e,
|
|
2211
2214
|
parseHTML() {
|
|
2212
2215
|
return [{ tag: `span.${t}` }];
|
|
@@ -2214,13 +2217,13 @@ function un(e, t) {
|
|
|
2214
2217
|
renderHTML({ HTMLAttributes: e }) {
|
|
2215
2218
|
return [
|
|
2216
2219
|
"span",
|
|
2217
|
-
|
|
2220
|
+
Me(e, { class: t }),
|
|
2218
2221
|
0
|
|
2219
2222
|
];
|
|
2220
2223
|
}
|
|
2221
2224
|
});
|
|
2222
2225
|
}
|
|
2223
|
-
var
|
|
2226
|
+
var fn = dn("marker", "marker"), pn = dn("spoiler", "spoiler"), mn = [
|
|
2224
2227
|
{
|
|
2225
2228
|
key: "ArticleCategory",
|
|
2226
2229
|
kind: "heading",
|
|
@@ -2270,67 +2273,67 @@ var dn = un("marker", "marker"), fn = un("spoiler", "spoiler"), pn = [
|
|
|
2270
2273
|
className: "fancy-code fancy-code-bright"
|
|
2271
2274
|
}
|
|
2272
2275
|
];
|
|
2273
|
-
function
|
|
2276
|
+
function hn(e) {
|
|
2274
2277
|
let { state: t } = e, { $from: n } = t.selection;
|
|
2275
2278
|
return n.depth > 0 || t.doc.content.size === 0 ? n : t.doc.resolve(Math.min(1, t.doc.content.size));
|
|
2276
2279
|
}
|
|
2277
|
-
function
|
|
2278
|
-
return
|
|
2280
|
+
function gn(e) {
|
|
2281
|
+
return hn(e).parent;
|
|
2279
2282
|
}
|
|
2280
|
-
function
|
|
2281
|
-
let n =
|
|
2283
|
+
function _n(e, t) {
|
|
2284
|
+
let n = hn(e);
|
|
2282
2285
|
for (let e = n.depth; e >= 0; --e) if (n.node(e).type.name === t) return n.node(e);
|
|
2283
2286
|
return null;
|
|
2284
2287
|
}
|
|
2285
|
-
function
|
|
2288
|
+
function vn(e, t) {
|
|
2286
2289
|
switch (t.kind) {
|
|
2287
2290
|
case "heading": {
|
|
2288
|
-
let n =
|
|
2291
|
+
let n = gn(e);
|
|
2289
2292
|
return n.type.name === "heading" && n.attrs.level === t.level && n.attrs.class === t.className;
|
|
2290
2293
|
}
|
|
2291
2294
|
case "paragraph": {
|
|
2292
|
-
let n =
|
|
2295
|
+
let n = gn(e);
|
|
2293
2296
|
return n.type.name === "paragraph" && n.attrs.class === t.className;
|
|
2294
2297
|
}
|
|
2295
2298
|
case "codeBlock": {
|
|
2296
|
-
let n =
|
|
2299
|
+
let n = gn(e);
|
|
2297
2300
|
return n.type.name === "codeBlock" && n.attrs.class === t.className;
|
|
2298
2301
|
}
|
|
2299
2302
|
case "blockquote": {
|
|
2300
|
-
let n =
|
|
2303
|
+
let n = _n(e, "blockquote");
|
|
2301
2304
|
return !!n && n.attrs.class === t.className;
|
|
2302
2305
|
}
|
|
2303
2306
|
case "mark": return e.isActive(t.markName);
|
|
2304
2307
|
default: return !1;
|
|
2305
2308
|
}
|
|
2306
2309
|
}
|
|
2307
|
-
function
|
|
2310
|
+
function yn(e, t) {
|
|
2308
2311
|
let n = e.chain().focus(), { $from: r } = e.state.selection;
|
|
2309
|
-
switch (t.kind !== "mark" && r.depth === 0 && e.state.doc.content.size > 0 && n.setTextSelection(
|
|
2312
|
+
switch (t.kind !== "mark" && r.depth === 0 && e.state.doc.content.size > 0 && n.setTextSelection(hn(e).pos), t.kind) {
|
|
2310
2313
|
case "heading":
|
|
2311
|
-
|
|
2314
|
+
vn(e, t) ? n.setParagraph().updateAttributes("paragraph", { class: null }).run() : n.setNode("heading", { level: t.level }).updateAttributes("heading", { class: t.className }).run();
|
|
2312
2315
|
break;
|
|
2313
2316
|
case "paragraph":
|
|
2314
|
-
|
|
2317
|
+
vn(e, t) ? n.setParagraph().updateAttributes("paragraph", { class: null }).run() : n.setParagraph().updateAttributes("paragraph", { class: t.className }).run();
|
|
2315
2318
|
break;
|
|
2316
2319
|
case "blockquote":
|
|
2317
|
-
|
|
2320
|
+
vn(e, t) ? n.unsetBlockquote().run() : _n(e, "blockquote") ? n.updateAttributes("blockquote", { class: t.className }).run() : n.setBlockquote().updateAttributes("blockquote", { class: t.className }).run();
|
|
2318
2321
|
break;
|
|
2319
2322
|
case "codeBlock":
|
|
2320
|
-
|
|
2323
|
+
vn(e, t) ? n.toggleCodeBlock().updateAttributes("paragraph", { class: null }).run() : gn(e).type.name === "codeBlock" ? n.updateAttributes("codeBlock", { class: t.className }).run() : n.setCodeBlock().updateAttributes("codeBlock", { class: t.className }).run();
|
|
2321
2324
|
break;
|
|
2322
2325
|
case "mark": n.toggleMark(t.markName).run();
|
|
2323
2326
|
}
|
|
2324
2327
|
}
|
|
2325
2328
|
//#endregion
|
|
2326
2329
|
//#region src/helpers/rtf-editor/image-paste.ts
|
|
2327
|
-
function
|
|
2330
|
+
function bn(e) {
|
|
2328
2331
|
return new Promise((t, n) => {
|
|
2329
2332
|
let r = new FileReader();
|
|
2330
2333
|
r.onload = () => t(r.result), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
2331
2334
|
});
|
|
2332
2335
|
}
|
|
2333
|
-
function
|
|
2336
|
+
function xn(e) {
|
|
2334
2337
|
if (!e) return [];
|
|
2335
2338
|
let t = [];
|
|
2336
2339
|
return Array.from(e.items || []).forEach((e) => {
|
|
@@ -2342,25 +2345,25 @@ function bn(e) {
|
|
|
2342
2345
|
e.type.startsWith("image/") && t.push(e);
|
|
2343
2346
|
}), t;
|
|
2344
2347
|
}
|
|
2345
|
-
function
|
|
2348
|
+
function Sn(e) {
|
|
2346
2349
|
let t = 0;
|
|
2347
2350
|
return e.forEach((e) => {
|
|
2348
|
-
e.type.name === "image" ? t += 1 : e.content.size && (t +=
|
|
2351
|
+
e.type.name === "image" ? t += 1 : e.content.size && (t += Sn(e.content));
|
|
2349
2352
|
}), t;
|
|
2350
2353
|
}
|
|
2351
|
-
function
|
|
2354
|
+
function Cn(e, t, n) {
|
|
2352
2355
|
let r = [];
|
|
2353
2356
|
return e.forEach((e) => {
|
|
2354
|
-
e.type.name === "image" && n.index < t.length ? (r.push(e.type.create(J(J({}, e.attrs), {}, { src: t[n.index] }), e.content, e.marks)), n.index += 1) : e.content.size ? r.push(e.copy(
|
|
2355
|
-
}),
|
|
2357
|
+
e.type.name === "image" && n.index < t.length ? (r.push(e.type.create(J(J({}, e.attrs), {}, { src: t[n.index] }), e.content, e.marks)), n.index += 1) : e.content.size ? r.push(e.copy(Cn(e.content, t, n))) : r.push(e);
|
|
2358
|
+
}), Ne.fromArray(r);
|
|
2356
2359
|
}
|
|
2357
|
-
function
|
|
2360
|
+
function wn(e) {
|
|
2358
2361
|
return (t, n, r) => {
|
|
2359
|
-
let i =
|
|
2360
|
-
return i.length !== 0 && (n.preventDefault(), Promise.all(i.map(
|
|
2362
|
+
let i = xn(n.clipboardData);
|
|
2363
|
+
return i.length !== 0 && (n.preventDefault(), Promise.all(i.map(bn)).then((n) => {
|
|
2361
2364
|
var i;
|
|
2362
|
-
if (
|
|
2363
|
-
let e =
|
|
2365
|
+
if (Sn(r.content) > 0) {
|
|
2366
|
+
let e = Cn(r.content, n, { index: 0 }), i = new Pe(e, r.openStart, r.openEnd);
|
|
2364
2367
|
t.dispatch(t.state.tr.replaceSelection(i).scrollIntoView());
|
|
2365
2368
|
return;
|
|
2366
2369
|
}
|
|
@@ -2373,7 +2376,7 @@ function Cn(e) {
|
|
|
2373
2376
|
}
|
|
2374
2377
|
//#endregion
|
|
2375
2378
|
//#region src/helpers/rtf-editor/link-with-download.ts
|
|
2376
|
-
var
|
|
2379
|
+
var Tn = Fe.extend({
|
|
2377
2380
|
name: "link",
|
|
2378
2381
|
addAttributes() {
|
|
2379
2382
|
var e;
|
|
@@ -2386,7 +2389,7 @@ var wn = Pe.extend({
|
|
|
2386
2389
|
});
|
|
2387
2390
|
//#endregion
|
|
2388
2391
|
//#region src/helpers/rtf-editor/media-embed.ts
|
|
2389
|
-
function
|
|
2392
|
+
function En(e) {
|
|
2390
2393
|
let t;
|
|
2391
2394
|
try {
|
|
2392
2395
|
t = new URL(e);
|
|
@@ -2412,7 +2415,7 @@ function Tn(e) {
|
|
|
2412
2415
|
}
|
|
2413
2416
|
return null;
|
|
2414
2417
|
}
|
|
2415
|
-
var
|
|
2418
|
+
var Dn = je.create({
|
|
2416
2419
|
name: "mediaEmbed",
|
|
2417
2420
|
group: "block",
|
|
2418
2421
|
atom: !0,
|
|
@@ -2424,7 +2427,7 @@ var En = Ae.create({
|
|
|
2424
2427
|
return [{ tag: "iframe.media-embed" }];
|
|
2425
2428
|
},
|
|
2426
2429
|
renderHTML({ HTMLAttributes: e }) {
|
|
2427
|
-
return ["iframe",
|
|
2430
|
+
return ["iframe", Me({
|
|
2428
2431
|
class: "media-embed",
|
|
2429
2432
|
frameborder: "0",
|
|
2430
2433
|
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
|
|
@@ -2434,27 +2437,35 @@ var En = Ae.create({
|
|
|
2434
2437
|
});
|
|
2435
2438
|
//#endregion
|
|
2436
2439
|
//#region src/helpers/rtf-editor/use-editor-tick.ts
|
|
2437
|
-
function
|
|
2438
|
-
let t =
|
|
2440
|
+
function On(e) {
|
|
2441
|
+
let t = S(0), n, r = () => {
|
|
2439
2442
|
t.value += 1;
|
|
2440
2443
|
}, i = (e) => {
|
|
2441
|
-
n == null || n.off("transaction", r), n = e, n == null || n.on("transaction", r);
|
|
2444
|
+
n == null || n.off("transaction", r), n == null || n.off("update", r), n = e, n == null || n.on("transaction", r), n == null || n.on("update", r);
|
|
2442
2445
|
};
|
|
2443
2446
|
return N(e, i, { immediate: !0 }), y(() => i(void 0)), t;
|
|
2444
2447
|
}
|
|
2445
2448
|
//#endregion
|
|
2446
2449
|
//#region src/helpers/rtf-editor/rtf-toolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2447
|
-
var
|
|
2450
|
+
var kn = { class: "rtf-toolbar-group" }, An = { class: "d-flex justify-end ga-2 mt-2" }, jn = { class: "d-flex justify-space-between align-center ga-2 mt-2" }, Mn = { class: "d-flex justify-end mt-2" }, Nn = /* @__PURE__ */ l({
|
|
2448
2451
|
__name: "rtf-toolbar",
|
|
2449
2452
|
props: {
|
|
2450
2453
|
editor: { default: void 0 },
|
|
2451
2454
|
buttonSize: { default: "small" }
|
|
2452
2455
|
},
|
|
2453
2456
|
setup(o) {
|
|
2454
|
-
let l = o, u = t(() => l.buttonSize), d =
|
|
2457
|
+
let l = o, u = t(() => l.buttonSize), d = Pt, f = t(() => l.editor), p = On(f), h = t(() => {
|
|
2455
2458
|
var e;
|
|
2456
|
-
return !!((e = l.editor) != null && e.isEditable);
|
|
2457
|
-
}), _ = t(() => {
|
|
2459
|
+
return p.value, !!((e = l.editor) != null && e.isEditable);
|
|
2460
|
+
}), _ = t(() => ({
|
|
2461
|
+
size: u.value,
|
|
2462
|
+
density: "comfortable",
|
|
2463
|
+
variant: "text",
|
|
2464
|
+
disabled: !h.value
|
|
2465
|
+
})), v = t(() => ({
|
|
2466
|
+
buttonSize: u.value,
|
|
2467
|
+
buttonDensity: "comfortable"
|
|
2468
|
+
})), y = t(() => {
|
|
2458
2469
|
p.value;
|
|
2459
2470
|
let e = l.editor;
|
|
2460
2471
|
return {
|
|
@@ -2474,57 +2485,57 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
|
|
|
2474
2485
|
canLift: !!(e != null && e.can().liftListItem("listItem")),
|
|
2475
2486
|
canSink: !!(e != null && e.can().sinkListItem("listItem"))
|
|
2476
2487
|
};
|
|
2477
|
-
}),
|
|
2478
|
-
if (
|
|
2479
|
-
if (
|
|
2480
|
-
if (
|
|
2481
|
-
if (
|
|
2488
|
+
}), b = t(() => {
|
|
2489
|
+
if (y.value.alignLeft) return "left";
|
|
2490
|
+
if (y.value.alignCenter) return "center";
|
|
2491
|
+
if (y.value.alignRight) return "right";
|
|
2492
|
+
if (y.value.alignJustify) return "justify";
|
|
2482
2493
|
});
|
|
2483
|
-
function
|
|
2494
|
+
function w(e) {
|
|
2484
2495
|
var t;
|
|
2485
2496
|
typeof e == "string" && ((t = f.value) == null || t.chain().focus().setTextAlign(e).run());
|
|
2486
2497
|
}
|
|
2487
|
-
let
|
|
2488
|
-
function
|
|
2489
|
-
let a = new
|
|
2498
|
+
let E = [];
|
|
2499
|
+
function D(e, t, n, r, i) {
|
|
2500
|
+
let a = new R({
|
|
2490
2501
|
value: {
|
|
2491
2502
|
icon: e,
|
|
2492
2503
|
renderAs: $.TEXT,
|
|
2493
2504
|
showIcon: !0,
|
|
2494
2505
|
showLabel: !1
|
|
2495
2506
|
},
|
|
2496
|
-
actions: [new
|
|
2507
|
+
actions: [new ne((e, n, r) => (t(), n(e, r)))]
|
|
2497
2508
|
});
|
|
2498
|
-
return
|
|
2509
|
+
return E.push({
|
|
2499
2510
|
action: a,
|
|
2500
2511
|
title: n,
|
|
2501
2512
|
disabled: r,
|
|
2502
2513
|
active: i
|
|
2503
2514
|
}), a;
|
|
2504
2515
|
}
|
|
2505
|
-
function
|
|
2516
|
+
function k({ action: e, title: t, disabled: n, active: r }) {
|
|
2506
2517
|
var i;
|
|
2507
2518
|
let a = {
|
|
2508
2519
|
title: t(),
|
|
2509
2520
|
icon: !0
|
|
2510
2521
|
};
|
|
2511
|
-
r && (a.active = r()),
|
|
2522
|
+
r && (a.active = r()), ce((i = e.value.passthroughAttrs) == null ? {} : i, a) || (e.value = J(J({}, e.value), {}, { passthroughAttrs: a }));
|
|
2512
2523
|
let o = !n();
|
|
2513
2524
|
e.enabled !== o && (e.enabled = o);
|
|
2514
2525
|
}
|
|
2515
|
-
let
|
|
2526
|
+
let A = [D("mdi-undo", () => {
|
|
2516
2527
|
var e;
|
|
2517
2528
|
return (e = f.value) == null ? void 0 : e.chain().focus().undo().run();
|
|
2518
|
-
}, () => d.Undo, () => !h.value || !
|
|
2529
|
+
}, () => d.Undo, () => !h.value || !y.value.canUndo), D("mdi-redo", () => {
|
|
2519
2530
|
var e;
|
|
2520
2531
|
return (e = f.value) == null ? void 0 : e.chain().focus().redo().run();
|
|
2521
|
-
}, () => d.Redo, () => !h.value || !
|
|
2532
|
+
}, () => d.Redo, () => !h.value || !y.value.canRedo)], M = [D("mdi-format-bold", () => {
|
|
2522
2533
|
var e;
|
|
2523
2534
|
return (e = f.value) == null ? void 0 : e.chain().focus().toggleBold().run();
|
|
2524
|
-
}, () => d.Bold, () => !h.value, () =>
|
|
2535
|
+
}, () => d.Bold, () => !h.value, () => y.value.bold), D("mdi-format-italic", () => {
|
|
2525
2536
|
var e;
|
|
2526
2537
|
return (e = f.value) == null ? void 0 : e.chain().focus().toggleItalic().run();
|
|
2527
|
-
}, () => d.Italic, () => !h.value, () =>
|
|
2538
|
+
}, () => d.Italic, () => !h.value, () => y.value.italic)], ee = [
|
|
2528
2539
|
{
|
|
2529
2540
|
value: "left",
|
|
2530
2541
|
icon: "mdi-format-align-left",
|
|
@@ -2545,28 +2556,28 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
|
|
|
2545
2556
|
icon: "mdi-format-align-justify",
|
|
2546
2557
|
title: () => d.AlignJustify
|
|
2547
2558
|
}
|
|
2548
|
-
].map((e) =>
|
|
2549
|
-
|
|
2559
|
+
].map((e) => D(e.icon, () => w(e.value), e.title, () => !h.value, () => b.value === e.value)), N = [
|
|
2560
|
+
D("mdi-format-list-bulleted", () => {
|
|
2550
2561
|
var e;
|
|
2551
2562
|
return (e = f.value) == null ? void 0 : e.chain().focus().toggleBulletList().run();
|
|
2552
|
-
}, () => d.BulletedList, () => !h.value, () =>
|
|
2553
|
-
|
|
2563
|
+
}, () => d.BulletedList, () => !h.value, () => y.value.bulletList),
|
|
2564
|
+
D("mdi-format-list-numbered", () => {
|
|
2554
2565
|
var e;
|
|
2555
2566
|
return (e = f.value) == null ? void 0 : e.chain().focus().toggleOrderedList().run();
|
|
2556
|
-
}, () => d.NumberedList, () => !h.value, () =>
|
|
2557
|
-
|
|
2567
|
+
}, () => d.NumberedList, () => !h.value, () => y.value.orderedList),
|
|
2568
|
+
D("mdi-format-indent-decrease", () => {
|
|
2558
2569
|
var e;
|
|
2559
2570
|
return (e = f.value) == null ? void 0 : e.chain().focus().liftListItem("listItem").run();
|
|
2560
|
-
}, () => d.Outdent, () => !h.value || !
|
|
2561
|
-
|
|
2571
|
+
}, () => d.Outdent, () => !h.value || !y.value.canLift),
|
|
2572
|
+
D("mdi-format-indent-increase", () => {
|
|
2562
2573
|
var e;
|
|
2563
2574
|
return (e = f.value) == null ? void 0 : e.chain().focus().sinkListItem("listItem").run();
|
|
2564
|
-
}, () => d.Indent, () => !h.value || !
|
|
2575
|
+
}, () => d.Indent, () => !h.value || !y.value.canSink)
|
|
2565
2576
|
];
|
|
2566
|
-
|
|
2567
|
-
|
|
2577
|
+
te(() => {
|
|
2578
|
+
E.forEach(k);
|
|
2568
2579
|
});
|
|
2569
|
-
let
|
|
2580
|
+
let I = t(() => [
|
|
2570
2581
|
{
|
|
2571
2582
|
level: 0,
|
|
2572
2583
|
label: d.Paragraph
|
|
@@ -2600,59 +2611,59 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
|
|
|
2600
2611
|
var t, n;
|
|
2601
2612
|
return p.value, e === 0 ? !!((t = f.value) != null && t.isActive("paragraph")) : !!((n = f.value) != null && n.isActive("heading", { level: e }));
|
|
2602
2613
|
}
|
|
2603
|
-
let
|
|
2614
|
+
let z = t(() => {
|
|
2604
2615
|
var e, t;
|
|
2605
|
-
return (e = (t =
|
|
2616
|
+
return (e = (t = I.value.find((e) => L(e.level))) == null ? void 0 : t.label) == null ? d.Paragraph : e;
|
|
2606
2617
|
});
|
|
2607
|
-
function
|
|
2618
|
+
function re(e) {
|
|
2608
2619
|
var t;
|
|
2609
2620
|
let n = (t = f.value) == null ? void 0 : t.chain().focus();
|
|
2610
2621
|
n && (e === 0 ? n.setParagraph().run() : n.toggleHeading({ level: e }).run());
|
|
2611
2622
|
}
|
|
2612
|
-
let
|
|
2613
|
-
function
|
|
2614
|
-
return p.value, !!f.value &&
|
|
2623
|
+
let B = mn;
|
|
2624
|
+
function ie(e) {
|
|
2625
|
+
return p.value, !!f.value && vn(f.value, e);
|
|
2615
2626
|
}
|
|
2616
|
-
let H =
|
|
2617
|
-
function
|
|
2627
|
+
let H = S(""), U = S(!1);
|
|
2628
|
+
function ae() {
|
|
2618
2629
|
var e, t, n;
|
|
2619
2630
|
let r = (e = (t = f.value) == null ? void 0 : t.getAttributes("link")) == null ? {} : e;
|
|
2620
|
-
H.value = (n = r.href) == null ? "" : n,
|
|
2631
|
+
H.value = (n = r.href) == null ? "" : n, U.value = !!r.download;
|
|
2621
2632
|
}
|
|
2622
|
-
function
|
|
2633
|
+
function oe() {
|
|
2623
2634
|
var e;
|
|
2624
|
-
H.value && ((e = f.value) == null || e.chain().focus().extendMarkRange("link").setLink({ href: H.value }).updateAttributes("link", { download:
|
|
2635
|
+
H.value && ((e = f.value) == null || e.chain().focus().extendMarkRange("link").setLink({ href: H.value }).updateAttributes("link", { download: U.value ? "file" : null }).run());
|
|
2625
2636
|
}
|
|
2626
|
-
function
|
|
2637
|
+
function se() {
|
|
2627
2638
|
var e;
|
|
2628
2639
|
(e = f.value) == null || e.chain().focus().unsetLink().run();
|
|
2629
2640
|
}
|
|
2630
|
-
let
|
|
2631
|
-
function
|
|
2641
|
+
let W = S(""), G = S();
|
|
2642
|
+
function le() {
|
|
2632
2643
|
var e;
|
|
2633
|
-
|
|
2644
|
+
W.value && ((e = f.value) == null || e.chain().focus().setImage({ src: W.value }).run(), W.value = "");
|
|
2634
2645
|
}
|
|
2635
|
-
function
|
|
2646
|
+
function ue() {
|
|
2636
2647
|
var e;
|
|
2637
|
-
(e =
|
|
2648
|
+
(e = G.value) == null || e.click();
|
|
2638
2649
|
}
|
|
2639
|
-
function
|
|
2640
|
-
return
|
|
2650
|
+
function de(e) {
|
|
2651
|
+
return K.apply(this, arguments);
|
|
2641
2652
|
}
|
|
2642
|
-
function
|
|
2643
|
-
return
|
|
2653
|
+
function K() {
|
|
2654
|
+
return K = $t(function* (e) {
|
|
2644
2655
|
var t, n;
|
|
2645
2656
|
let r = (t = e.target.files) == null ? void 0 : t[0];
|
|
2646
2657
|
if (!r) return;
|
|
2647
|
-
let i = yield
|
|
2658
|
+
let i = yield bn(r);
|
|
2648
2659
|
(n = f.value) == null || n.chain().focus().setImage({ src: i }).run(), e.target.value = "";
|
|
2649
|
-
}),
|
|
2660
|
+
}), K.apply(this, arguments);
|
|
2650
2661
|
}
|
|
2651
|
-
let q =
|
|
2652
|
-
function
|
|
2662
|
+
let q = S("");
|
|
2663
|
+
function fe() {
|
|
2653
2664
|
var e;
|
|
2654
2665
|
if (!q.value) return;
|
|
2655
|
-
let t =
|
|
2666
|
+
let t = En(q.value), n = (e = f.value) == null ? void 0 : e.chain().focus();
|
|
2656
2667
|
n && (t ? n.insertContent({
|
|
2657
2668
|
type: "mediaEmbed",
|
|
2658
2669
|
attrs: { src: t }
|
|
@@ -2666,59 +2677,44 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
|
|
|
2666
2677
|
}).run(), q.value = "");
|
|
2667
2678
|
}
|
|
2668
2679
|
return (t, o) => {
|
|
2669
|
-
let l =
|
|
2670
|
-
return
|
|
2671
|
-
c(
|
|
2672
|
-
actions: O,
|
|
2673
|
-
"button-size": u.value,
|
|
2674
|
-
"show-as-group": "grouped-no-borders"
|
|
2675
|
-
}, null, 8, ["button-size"]),
|
|
2680
|
+
let l = T("v-divider"), u = T("v-btn"), p = T("v-list-item-title"), b = T("v-list-item"), S = T("v-list"), w = T("v-menu"), E = T("v-text-field"), D = T("v-checkbox"), k = T("v-card");
|
|
2681
|
+
return x(), i("div", { class: g(["rtf-toolbar", { "rtf-toolbar--disabled": !h.value }]) }, [
|
|
2682
|
+
c(Jt, m({ actions: A }, v.value, { "show-as-group": "grouped-no-borders" }), null, 16),
|
|
2676
2683
|
c(l, {
|
|
2677
2684
|
vertical: "",
|
|
2678
2685
|
inset: "",
|
|
2679
2686
|
class: "mx-1"
|
|
2680
2687
|
}),
|
|
2681
|
-
c(
|
|
2688
|
+
c(u, m(_.value, {
|
|
2682
2689
|
icon: "",
|
|
2683
|
-
size: u.value,
|
|
2684
|
-
variant: "text",
|
|
2685
2690
|
rounded: "sm",
|
|
2686
|
-
title:
|
|
2687
|
-
disabled: !h.value,
|
|
2691
|
+
title: j(d).SelectAll,
|
|
2688
2692
|
onClick: o[0] || (o[0] = (e) => {
|
|
2689
2693
|
var t;
|
|
2690
2694
|
return (t = f.value) == null ? void 0 : t.chain().focus().selectAll().run();
|
|
2691
2695
|
})
|
|
2692
|
-
}, {
|
|
2693
|
-
default:
|
|
2696
|
+
}), {
|
|
2697
|
+
default: P(() => [c(j(V), { name: "mdi-select-all" })]),
|
|
2694
2698
|
_: 1
|
|
2695
|
-
},
|
|
2696
|
-
"size",
|
|
2697
|
-
"title",
|
|
2698
|
-
"disabled"
|
|
2699
|
-
]),
|
|
2699
|
+
}, 16, ["title"]),
|
|
2700
2700
|
c(l, {
|
|
2701
2701
|
vertical: "",
|
|
2702
2702
|
inset: "",
|
|
2703
2703
|
class: "mx-1"
|
|
2704
2704
|
}),
|
|
2705
|
-
c(
|
|
2706
|
-
activator:
|
|
2707
|
-
|
|
2708
|
-
variant: "text",
|
|
2709
|
-
disabled: !h.value
|
|
2710
|
-
}, e, { "append-icon": "mdi-chevron-down" }), {
|
|
2711
|
-
default: F(() => [s(D(R.value), 1)]),
|
|
2705
|
+
c(w, null, {
|
|
2706
|
+
activator: P(({ props: e }) => [c(u, m(J(J({}, _.value), e), { "append-icon": "mdi-chevron-down" }), {
|
|
2707
|
+
default: P(() => [s(O(z.value), 1)]),
|
|
2712
2708
|
_: 1
|
|
2713
|
-
}, 16
|
|
2714
|
-
default:
|
|
2715
|
-
default:
|
|
2709
|
+
}, 16)]),
|
|
2710
|
+
default: P(() => [c(S, { density: "compact" }, {
|
|
2711
|
+
default: P(() => [(x(!0), i(e, null, C(I.value, (e) => (x(), n(b, {
|
|
2716
2712
|
key: e.level,
|
|
2717
2713
|
active: L(e.level),
|
|
2718
|
-
onClick: (t) =>
|
|
2714
|
+
onClick: (t) => re(e.level)
|
|
2719
2715
|
}, {
|
|
2720
|
-
default:
|
|
2721
|
-
default:
|
|
2716
|
+
default: P(() => [c(p, null, {
|
|
2717
|
+
default: P(() => [s(O(e.label), 1)]),
|
|
2722
2718
|
_: 2
|
|
2723
2719
|
}, 1024)]),
|
|
2724
2720
|
_: 2
|
|
@@ -2727,23 +2723,19 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
|
|
|
2727
2723
|
})]),
|
|
2728
2724
|
_: 1
|
|
2729
2725
|
}),
|
|
2730
|
-
c(
|
|
2731
|
-
activator:
|
|
2732
|
-
|
|
2733
|
-
variant: "text",
|
|
2734
|
-
disabled: !h.value
|
|
2735
|
-
}, e, { "append-icon": "mdi-chevron-down" }), {
|
|
2736
|
-
default: F(() => [s(D(A(d).Style), 1)]),
|
|
2726
|
+
c(w, null, {
|
|
2727
|
+
activator: P(({ props: e }) => [c(u, m(J(J({}, _.value), e), { "append-icon": "mdi-chevron-down" }), {
|
|
2728
|
+
default: P(() => [s(O(j(d).Style), 1)]),
|
|
2737
2729
|
_: 1
|
|
2738
|
-
}, 16
|
|
2739
|
-
default:
|
|
2740
|
-
default:
|
|
2730
|
+
}, 16)]),
|
|
2731
|
+
default: P(() => [c(S, { density: "compact" }, {
|
|
2732
|
+
default: P(() => [(x(!0), i(e, null, C(j(B), (e) => (x(), n(b, {
|
|
2741
2733
|
key: e.key,
|
|
2742
|
-
active:
|
|
2743
|
-
onClick: (t) => f.value &&
|
|
2734
|
+
active: ie(e),
|
|
2735
|
+
onClick: (t) => f.value && j(yn)(f.value, e)
|
|
2744
2736
|
}, {
|
|
2745
|
-
default:
|
|
2746
|
-
default:
|
|
2737
|
+
default: P(() => [c(p, null, {
|
|
2738
|
+
default: P(() => [s(O(j(d)[e.key]), 1)]),
|
|
2747
2739
|
_: 2
|
|
2748
2740
|
}, 1024)]),
|
|
2749
2741
|
_: 2
|
|
@@ -2757,92 +2749,73 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
|
|
|
2757
2749
|
inset: "",
|
|
2758
2750
|
class: "mx-1"
|
|
2759
2751
|
}),
|
|
2760
|
-
c(
|
|
2761
|
-
actions: k,
|
|
2762
|
-
"button-size": u.value,
|
|
2763
|
-
"show-as-group": "grouped-no-borders"
|
|
2764
|
-
}, null, 8, ["button-size"]),
|
|
2752
|
+
c(Jt, m({ actions: M }, v.value, { "show-as-group": "grouped-no-borders" }), null, 16),
|
|
2765
2753
|
c(l, {
|
|
2766
2754
|
vertical: "",
|
|
2767
2755
|
inset: "",
|
|
2768
2756
|
class: "mx-1"
|
|
2769
2757
|
}),
|
|
2770
|
-
a("div",
|
|
2771
|
-
c(
|
|
2758
|
+
a("div", kn, [
|
|
2759
|
+
c(u, m(_.value, {
|
|
2772
2760
|
icon: "",
|
|
2773
|
-
|
|
2774
|
-
variant: "text",
|
|
2775
|
-
title: A(d).HorizontalLine,
|
|
2776
|
-
disabled: !h.value,
|
|
2761
|
+
title: j(d).HorizontalLine,
|
|
2777
2762
|
onClick: o[1] || (o[1] = (e) => {
|
|
2778
2763
|
var t;
|
|
2779
2764
|
return (t = f.value) == null ? void 0 : t.chain().focus().setHorizontalRule().run();
|
|
2780
2765
|
})
|
|
2781
|
-
}, {
|
|
2782
|
-
default:
|
|
2766
|
+
}), {
|
|
2767
|
+
default: P(() => [c(j(V), { name: "mdi-minus" })]),
|
|
2783
2768
|
_: 1
|
|
2784
|
-
},
|
|
2785
|
-
|
|
2786
|
-
"title",
|
|
2787
|
-
"disabled"
|
|
2788
|
-
]),
|
|
2789
|
-
c(C, {
|
|
2769
|
+
}, 16, ["title"]),
|
|
2770
|
+
c(w, {
|
|
2790
2771
|
"close-on-content-click": !1,
|
|
2791
|
-
"onUpdate:modelValue": o[4] || (o[4] = (e) => e &&
|
|
2772
|
+
"onUpdate:modelValue": o[4] || (o[4] = (e) => e && ae())
|
|
2792
2773
|
}, {
|
|
2793
|
-
activator:
|
|
2774
|
+
activator: P(({ props: e }) => [c(u, m(J(J({}, _.value), e), {
|
|
2794
2775
|
icon: "",
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
active: _.value.link
|
|
2800
|
-
}, e), {
|
|
2801
|
-
default: F(() => [c(A(U), { name: "mdi-link-variant" })]),
|
|
2776
|
+
title: j(d).Link,
|
|
2777
|
+
active: y.value.link
|
|
2778
|
+
}), {
|
|
2779
|
+
default: P(() => [c(j(V), { name: "mdi-link-variant" })]),
|
|
2802
2780
|
_: 1
|
|
2803
|
-
}, 16, [
|
|
2804
|
-
|
|
2805
|
-
"title",
|
|
2806
|
-
"disabled",
|
|
2807
|
-
"active"
|
|
2808
|
-
])]),
|
|
2809
|
-
default: F(() => [c(P, {
|
|
2781
|
+
}, 16, ["title", "active"])]),
|
|
2782
|
+
default: P(() => [c(k, {
|
|
2810
2783
|
"min-width": "280",
|
|
2811
2784
|
class: "pa-3"
|
|
2812
2785
|
}, {
|
|
2813
|
-
default:
|
|
2814
|
-
c(
|
|
2786
|
+
default: P(() => [
|
|
2787
|
+
c(E, {
|
|
2815
2788
|
modelValue: H.value,
|
|
2816
2789
|
"onUpdate:modelValue": o[2] || (o[2] = (e) => H.value = e),
|
|
2817
|
-
label:
|
|
2790
|
+
label: j(d).LinkUrl,
|
|
2818
2791
|
density: "compact",
|
|
2819
2792
|
"hide-details": "",
|
|
2820
2793
|
autofocus: "",
|
|
2821
|
-
onKeydown:
|
|
2794
|
+
onKeydown: F(oe, ["enter"])
|
|
2822
2795
|
}, null, 8, ["modelValue", "label"]),
|
|
2823
|
-
c(
|
|
2824
|
-
modelValue:
|
|
2825
|
-
"onUpdate:modelValue": o[3] || (o[3] = (e) =>
|
|
2826
|
-
label:
|
|
2796
|
+
c(D, {
|
|
2797
|
+
modelValue: U.value,
|
|
2798
|
+
"onUpdate:modelValue": o[3] || (o[3] = (e) => U.value = e),
|
|
2799
|
+
label: j(d).Downloadable,
|
|
2827
2800
|
density: "compact",
|
|
2828
2801
|
"hide-details": "",
|
|
2829
2802
|
class: "mt-1"
|
|
2830
2803
|
}, null, 8, ["modelValue", "label"]),
|
|
2831
|
-
a("div",
|
|
2804
|
+
a("div", An, [y.value.link ? (x(), n(u, {
|
|
2832
2805
|
key: 0,
|
|
2833
2806
|
size: "small",
|
|
2834
2807
|
variant: "text",
|
|
2835
|
-
onClick:
|
|
2808
|
+
onClick: se
|
|
2836
2809
|
}, {
|
|
2837
|
-
default:
|
|
2810
|
+
default: P(() => [s(O(j(d).LinkRemove), 1)]),
|
|
2838
2811
|
_: 1
|
|
2839
|
-
})) : r("", !0), c(
|
|
2812
|
+
})) : r("", !0), c(u, {
|
|
2840
2813
|
size: "small",
|
|
2841
2814
|
color: "primary",
|
|
2842
2815
|
variant: "tonal",
|
|
2843
|
-
onClick:
|
|
2816
|
+
onClick: oe
|
|
2844
2817
|
}, {
|
|
2845
|
-
default:
|
|
2818
|
+
default: P(() => [s(O(j(d).LinkApply), 1)]),
|
|
2846
2819
|
_: 1
|
|
2847
2820
|
})])
|
|
2848
2821
|
]),
|
|
@@ -2850,48 +2823,41 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
|
|
|
2850
2823
|
})]),
|
|
2851
2824
|
_: 1
|
|
2852
2825
|
}),
|
|
2853
|
-
c(
|
|
2854
|
-
activator:
|
|
2826
|
+
c(w, { "close-on-content-click": !1 }, {
|
|
2827
|
+
activator: P(({ props: e }) => [c(u, m(J(J({}, _.value), e), {
|
|
2855
2828
|
icon: "",
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
disabled: !h.value
|
|
2860
|
-
}, e), {
|
|
2861
|
-
default: F(() => [c(A(U), { name: "mdi-image-plus" })]),
|
|
2829
|
+
title: j(d).Image
|
|
2830
|
+
}), {
|
|
2831
|
+
default: P(() => [c(j(V), { name: "mdi-image-plus" })]),
|
|
2862
2832
|
_: 1
|
|
2863
|
-
}, 16, [
|
|
2864
|
-
|
|
2865
|
-
"title",
|
|
2866
|
-
"disabled"
|
|
2867
|
-
])]),
|
|
2868
|
-
default: F(() => [c(P, {
|
|
2833
|
+
}, 16, ["title"])]),
|
|
2834
|
+
default: P(() => [c(k, {
|
|
2869
2835
|
"min-width": "280",
|
|
2870
2836
|
class: "pa-3"
|
|
2871
2837
|
}, {
|
|
2872
|
-
default:
|
|
2873
|
-
modelValue:
|
|
2874
|
-
"onUpdate:modelValue": o[5] || (o[5] = (e) =>
|
|
2875
|
-
label:
|
|
2838
|
+
default: P(() => [c(E, {
|
|
2839
|
+
modelValue: W.value,
|
|
2840
|
+
"onUpdate:modelValue": o[5] || (o[5] = (e) => W.value = e),
|
|
2841
|
+
label: j(d).ImageUrl,
|
|
2876
2842
|
density: "compact",
|
|
2877
2843
|
"hide-details": "",
|
|
2878
2844
|
autofocus: "",
|
|
2879
|
-
onKeydown:
|
|
2880
|
-
}, null, 8, ["modelValue", "label"]), a("div",
|
|
2845
|
+
onKeydown: F(le, ["enter"])
|
|
2846
|
+
}, null, 8, ["modelValue", "label"]), a("div", jn, [c(u, {
|
|
2881
2847
|
size: "small",
|
|
2882
2848
|
variant: "text",
|
|
2883
2849
|
"prepend-icon": "mdi-upload",
|
|
2884
|
-
onClick:
|
|
2850
|
+
onClick: ue
|
|
2885
2851
|
}, {
|
|
2886
|
-
default:
|
|
2852
|
+
default: P(() => [s(O(j(d).ImageUpload), 1)]),
|
|
2887
2853
|
_: 1
|
|
2888
|
-
}), c(
|
|
2854
|
+
}), c(u, {
|
|
2889
2855
|
size: "small",
|
|
2890
2856
|
color: "primary",
|
|
2891
2857
|
variant: "tonal",
|
|
2892
|
-
onClick:
|
|
2858
|
+
onClick: le
|
|
2893
2859
|
}, {
|
|
2894
|
-
default:
|
|
2860
|
+
default: P(() => [s(O(j(d).ImageInsert), 1)]),
|
|
2895
2861
|
_: 1
|
|
2896
2862
|
})])]),
|
|
2897
2863
|
_: 1
|
|
@@ -2900,70 +2866,56 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
|
|
|
2900
2866
|
}),
|
|
2901
2867
|
a("input", {
|
|
2902
2868
|
ref_key: "imageInput",
|
|
2903
|
-
ref:
|
|
2869
|
+
ref: G,
|
|
2904
2870
|
type: "file",
|
|
2905
2871
|
accept: "image/*",
|
|
2906
2872
|
class: "d-none",
|
|
2907
|
-
onChange:
|
|
2873
|
+
onChange: de
|
|
2908
2874
|
}, null, 544),
|
|
2909
|
-
c(
|
|
2910
|
-
activator:
|
|
2875
|
+
c(w, { "close-on-content-click": !1 }, {
|
|
2876
|
+
activator: P(({ props: e }) => [c(u, m(J(J({}, _.value), e), {
|
|
2911
2877
|
icon: "",
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
disabled: !h.value
|
|
2916
|
-
}, e), {
|
|
2917
|
-
default: F(() => [c(A(U), { name: "mdi-video-plus" })]),
|
|
2878
|
+
title: j(d).MediaEmbed
|
|
2879
|
+
}), {
|
|
2880
|
+
default: P(() => [c(j(V), { name: "mdi-video-plus" })]),
|
|
2918
2881
|
_: 1
|
|
2919
|
-
}, 16, [
|
|
2920
|
-
|
|
2921
|
-
"title",
|
|
2922
|
-
"disabled"
|
|
2923
|
-
])]),
|
|
2924
|
-
default: F(() => [c(P, {
|
|
2882
|
+
}, 16, ["title"])]),
|
|
2883
|
+
default: P(() => [c(k, {
|
|
2925
2884
|
"min-width": "280",
|
|
2926
2885
|
class: "pa-3"
|
|
2927
2886
|
}, {
|
|
2928
|
-
default:
|
|
2887
|
+
default: P(() => [c(E, {
|
|
2929
2888
|
modelValue: q.value,
|
|
2930
2889
|
"onUpdate:modelValue": o[6] || (o[6] = (e) => q.value = e),
|
|
2931
|
-
label:
|
|
2890
|
+
label: j(d).MediaEmbedUrl,
|
|
2932
2891
|
density: "compact",
|
|
2933
2892
|
"hide-details": "",
|
|
2934
2893
|
autofocus: "",
|
|
2935
|
-
onKeydown:
|
|
2936
|
-
}, null, 8, ["modelValue", "label"]), a("div",
|
|
2894
|
+
onKeydown: F(fe, ["enter"])
|
|
2895
|
+
}, null, 8, ["modelValue", "label"]), a("div", Mn, [c(u, {
|
|
2937
2896
|
size: "small",
|
|
2938
2897
|
color: "primary",
|
|
2939
2898
|
variant: "tonal",
|
|
2940
|
-
onClick:
|
|
2899
|
+
onClick: fe
|
|
2941
2900
|
}, {
|
|
2942
|
-
default:
|
|
2901
|
+
default: P(() => [s(O(j(d).MediaEmbedInsert), 1)]),
|
|
2943
2902
|
_: 1
|
|
2944
2903
|
})])]),
|
|
2945
2904
|
_: 1
|
|
2946
2905
|
})]),
|
|
2947
2906
|
_: 1
|
|
2948
2907
|
}),
|
|
2949
|
-
c(
|
|
2950
|
-
activator:
|
|
2908
|
+
c(w, null, {
|
|
2909
|
+
activator: P(({ props: e }) => [c(u, m(J(J({}, _.value), e), {
|
|
2951
2910
|
icon: "",
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
disabled: !h.value
|
|
2956
|
-
}, e), {
|
|
2957
|
-
default: F(() => [c(A(U), { name: "mdi-table" })]),
|
|
2911
|
+
title: j(d).Table
|
|
2912
|
+
}), {
|
|
2913
|
+
default: P(() => [c(j(V), { name: "mdi-table" })]),
|
|
2958
2914
|
_: 1
|
|
2959
|
-
}, 16, [
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
])]),
|
|
2964
|
-
default: F(() => [c(x, { density: "compact" }, {
|
|
2965
|
-
default: F(() => [
|
|
2966
|
-
c(y, { onClick: o[7] || (o[7] = (e) => {
|
|
2915
|
+
}, 16, ["title"])]),
|
|
2916
|
+
default: P(() => [c(S, { density: "compact" }, {
|
|
2917
|
+
default: P(() => [
|
|
2918
|
+
c(b, { onClick: o[7] || (o[7] = (e) => {
|
|
2967
2919
|
var t;
|
|
2968
2920
|
return (t = f.value) == null ? void 0 : t.chain().focus().insertTable({
|
|
2969
2921
|
rows: 3,
|
|
@@ -2971,124 +2923,124 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
|
|
|
2971
2923
|
withHeaderRow: !0
|
|
2972
2924
|
}).run();
|
|
2973
2925
|
}) }, {
|
|
2974
|
-
prepend:
|
|
2975
|
-
default:
|
|
2976
|
-
default:
|
|
2926
|
+
prepend: P(() => [c(j(V), { name: "mdi-table-plus" })]),
|
|
2927
|
+
default: P(() => [c(p, null, {
|
|
2928
|
+
default: P(() => [s(O(j(d).TableInsert), 1)]),
|
|
2977
2929
|
_: 1
|
|
2978
2930
|
})]),
|
|
2979
2931
|
_: 1
|
|
2980
2932
|
}),
|
|
2981
2933
|
c(l),
|
|
2982
|
-
c(
|
|
2983
|
-
disabled: !
|
|
2934
|
+
c(b, {
|
|
2935
|
+
disabled: !y.value.inTable,
|
|
2984
2936
|
onClick: o[8] || (o[8] = (e) => {
|
|
2985
2937
|
var t;
|
|
2986
2938
|
return (t = f.value) == null ? void 0 : t.chain().focus().addRowBefore().run();
|
|
2987
2939
|
})
|
|
2988
2940
|
}, {
|
|
2989
|
-
prepend:
|
|
2990
|
-
default:
|
|
2991
|
-
default:
|
|
2941
|
+
prepend: P(() => [c(j(V), { name: "mdi-table-row-plus-before" })]),
|
|
2942
|
+
default: P(() => [c(p, null, {
|
|
2943
|
+
default: P(() => [s(O(j(d).TableAddRowAbove), 1)]),
|
|
2992
2944
|
_: 1
|
|
2993
2945
|
})]),
|
|
2994
2946
|
_: 1
|
|
2995
2947
|
}, 8, ["disabled"]),
|
|
2996
|
-
c(
|
|
2997
|
-
disabled: !
|
|
2948
|
+
c(b, {
|
|
2949
|
+
disabled: !y.value.inTable,
|
|
2998
2950
|
onClick: o[9] || (o[9] = (e) => {
|
|
2999
2951
|
var t;
|
|
3000
2952
|
return (t = f.value) == null ? void 0 : t.chain().focus().addRowAfter().run();
|
|
3001
2953
|
})
|
|
3002
2954
|
}, {
|
|
3003
|
-
prepend:
|
|
3004
|
-
default:
|
|
3005
|
-
default:
|
|
2955
|
+
prepend: P(() => [c(j(V), { name: "mdi-table-row-plus-after" })]),
|
|
2956
|
+
default: P(() => [c(p, null, {
|
|
2957
|
+
default: P(() => [s(O(j(d).TableAddRowBelow), 1)]),
|
|
3006
2958
|
_: 1
|
|
3007
2959
|
})]),
|
|
3008
2960
|
_: 1
|
|
3009
2961
|
}, 8, ["disabled"]),
|
|
3010
|
-
c(
|
|
3011
|
-
disabled: !
|
|
2962
|
+
c(b, {
|
|
2963
|
+
disabled: !y.value.inTable,
|
|
3012
2964
|
onClick: o[10] || (o[10] = (e) => {
|
|
3013
2965
|
var t;
|
|
3014
2966
|
return (t = f.value) == null ? void 0 : t.chain().focus().deleteRow().run();
|
|
3015
2967
|
})
|
|
3016
2968
|
}, {
|
|
3017
|
-
prepend:
|
|
3018
|
-
default:
|
|
3019
|
-
default:
|
|
2969
|
+
prepend: P(() => [c(j(V), { name: "mdi-table-row-remove" })]),
|
|
2970
|
+
default: P(() => [c(p, null, {
|
|
2971
|
+
default: P(() => [s(O(j(d).TableDeleteRow), 1)]),
|
|
3020
2972
|
_: 1
|
|
3021
2973
|
})]),
|
|
3022
2974
|
_: 1
|
|
3023
2975
|
}, 8, ["disabled"]),
|
|
3024
2976
|
c(l),
|
|
3025
|
-
c(
|
|
3026
|
-
disabled: !
|
|
2977
|
+
c(b, {
|
|
2978
|
+
disabled: !y.value.inTable,
|
|
3027
2979
|
onClick: o[11] || (o[11] = (e) => {
|
|
3028
2980
|
var t;
|
|
3029
2981
|
return (t = f.value) == null ? void 0 : t.chain().focus().addColumnBefore().run();
|
|
3030
2982
|
})
|
|
3031
2983
|
}, {
|
|
3032
|
-
prepend:
|
|
3033
|
-
default:
|
|
3034
|
-
default:
|
|
2984
|
+
prepend: P(() => [c(j(V), { name: "mdi-table-column-plus-before" })]),
|
|
2985
|
+
default: P(() => [c(p, null, {
|
|
2986
|
+
default: P(() => [s(O(j(d).TableAddColumnBefore), 1)]),
|
|
3035
2987
|
_: 1
|
|
3036
2988
|
})]),
|
|
3037
2989
|
_: 1
|
|
3038
2990
|
}, 8, ["disabled"]),
|
|
3039
|
-
c(
|
|
3040
|
-
disabled: !
|
|
2991
|
+
c(b, {
|
|
2992
|
+
disabled: !y.value.inTable,
|
|
3041
2993
|
onClick: o[12] || (o[12] = (e) => {
|
|
3042
2994
|
var t;
|
|
3043
2995
|
return (t = f.value) == null ? void 0 : t.chain().focus().addColumnAfter().run();
|
|
3044
2996
|
})
|
|
3045
2997
|
}, {
|
|
3046
|
-
prepend:
|
|
3047
|
-
default:
|
|
3048
|
-
default:
|
|
2998
|
+
prepend: P(() => [c(j(V), { name: "mdi-table-column-plus-after" })]),
|
|
2999
|
+
default: P(() => [c(p, null, {
|
|
3000
|
+
default: P(() => [s(O(j(d).TableAddColumnAfter), 1)]),
|
|
3049
3001
|
_: 1
|
|
3050
3002
|
})]),
|
|
3051
3003
|
_: 1
|
|
3052
3004
|
}, 8, ["disabled"]),
|
|
3053
|
-
c(
|
|
3054
|
-
disabled: !
|
|
3005
|
+
c(b, {
|
|
3006
|
+
disabled: !y.value.inTable,
|
|
3055
3007
|
onClick: o[13] || (o[13] = (e) => {
|
|
3056
3008
|
var t;
|
|
3057
3009
|
return (t = f.value) == null ? void 0 : t.chain().focus().deleteColumn().run();
|
|
3058
3010
|
})
|
|
3059
3011
|
}, {
|
|
3060
|
-
prepend:
|
|
3061
|
-
default:
|
|
3062
|
-
default:
|
|
3012
|
+
prepend: P(() => [c(j(V), { name: "mdi-table-column-remove" })]),
|
|
3013
|
+
default: P(() => [c(p, null, {
|
|
3014
|
+
default: P(() => [s(O(j(d).TableDeleteColumn), 1)]),
|
|
3063
3015
|
_: 1
|
|
3064
3016
|
})]),
|
|
3065
3017
|
_: 1
|
|
3066
3018
|
}, 8, ["disabled"]),
|
|
3067
3019
|
c(l),
|
|
3068
|
-
c(
|
|
3069
|
-
disabled: !
|
|
3020
|
+
c(b, {
|
|
3021
|
+
disabled: !y.value.inTable,
|
|
3070
3022
|
onClick: o[14] || (o[14] = (e) => {
|
|
3071
3023
|
var t;
|
|
3072
3024
|
return (t = f.value) == null ? void 0 : t.chain().focus().toggleHeaderRow().run();
|
|
3073
3025
|
})
|
|
3074
3026
|
}, {
|
|
3075
|
-
prepend:
|
|
3076
|
-
default:
|
|
3077
|
-
default:
|
|
3027
|
+
prepend: P(() => [c(j(V), { name: "mdi-table-row" })]),
|
|
3028
|
+
default: P(() => [c(p, null, {
|
|
3029
|
+
default: P(() => [s(O(j(d).TableToggleHeaderRow), 1)]),
|
|
3078
3030
|
_: 1
|
|
3079
3031
|
})]),
|
|
3080
3032
|
_: 1
|
|
3081
3033
|
}, 8, ["disabled"]),
|
|
3082
|
-
c(
|
|
3083
|
-
disabled: !
|
|
3034
|
+
c(b, {
|
|
3035
|
+
disabled: !y.value.inTable,
|
|
3084
3036
|
onClick: o[15] || (o[15] = (e) => {
|
|
3085
3037
|
var t;
|
|
3086
3038
|
return (t = f.value) == null ? void 0 : t.chain().focus().deleteTable().run();
|
|
3087
3039
|
})
|
|
3088
3040
|
}, {
|
|
3089
|
-
prepend:
|
|
3090
|
-
default:
|
|
3091
|
-
default:
|
|
3041
|
+
prepend: P(() => [c(j(V), { name: "mdi-table-remove" })]),
|
|
3042
|
+
default: P(() => [c(p, null, {
|
|
3043
|
+
default: P(() => [s(O(j(d).TableDeleteTable), 1)]),
|
|
3092
3044
|
_: 1
|
|
3093
3045
|
})]),
|
|
3094
3046
|
_: 1
|
|
@@ -3098,52 +3050,36 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
|
|
|
3098
3050
|
})]),
|
|
3099
3051
|
_: 1
|
|
3100
3052
|
}),
|
|
3101
|
-
c(
|
|
3053
|
+
c(u, m(_.value, {
|
|
3102
3054
|
icon: "",
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
title: A(d).Blockquote,
|
|
3106
|
-
disabled: !h.value,
|
|
3107
|
-
active: _.value.blockquote,
|
|
3055
|
+
title: j(d).Blockquote,
|
|
3056
|
+
active: y.value.blockquote,
|
|
3108
3057
|
onClick: o[16] || (o[16] = (e) => {
|
|
3109
3058
|
var t;
|
|
3110
3059
|
return (t = f.value) == null ? void 0 : t.chain().focus().toggleBlockquote().run();
|
|
3111
3060
|
})
|
|
3112
|
-
}, {
|
|
3113
|
-
default:
|
|
3061
|
+
}), {
|
|
3062
|
+
default: P(() => [c(j(V), { name: "mdi-format-quote-close" })]),
|
|
3114
3063
|
_: 1
|
|
3115
|
-
},
|
|
3116
|
-
"size",
|
|
3117
|
-
"title",
|
|
3118
|
-
"disabled",
|
|
3119
|
-
"active"
|
|
3120
|
-
])
|
|
3064
|
+
}, 16, ["title", "active"])
|
|
3121
3065
|
]),
|
|
3122
3066
|
c(l, {
|
|
3123
3067
|
vertical: "",
|
|
3124
3068
|
inset: "",
|
|
3125
3069
|
class: "mx-1"
|
|
3126
3070
|
}),
|
|
3127
|
-
c(
|
|
3128
|
-
actions: A(j),
|
|
3129
|
-
"button-size": u.value,
|
|
3130
|
-
"show-as-group": "grouped-no-borders"
|
|
3131
|
-
}, null, 8, ["actions", "button-size"]),
|
|
3071
|
+
c(Jt, m({ actions: j(ee) }, v.value, { "show-as-group": "grouped-no-borders" }), null, 16, ["actions"]),
|
|
3132
3072
|
c(l, {
|
|
3133
3073
|
vertical: "",
|
|
3134
3074
|
inset: "",
|
|
3135
3075
|
class: "mx-1"
|
|
3136
3076
|
}),
|
|
3137
|
-
c(
|
|
3138
|
-
actions: M,
|
|
3139
|
-
"button-size": u.value,
|
|
3140
|
-
"show-as-group": "grouped-no-borders"
|
|
3141
|
-
}, null, 8, ["button-size"])
|
|
3077
|
+
c(Jt, m({ actions: N }, v.value, { "show-as-group": "grouped-no-borders" }), null, 16)
|
|
3142
3078
|
], 2);
|
|
3143
3079
|
};
|
|
3144
3080
|
}
|
|
3145
|
-
}),
|
|
3146
|
-
function
|
|
3081
|
+
}), Pn = /^[a-z][a-z0-9]*:[a-z]/i, Fn = /mso-[a-z-]+\s*:[^;]+;?/gi, In = /^Mso/i, Ln = /background(?:-color)?\s*:[^;]+;?/gi;
|
|
3082
|
+
function Rn(e) {
|
|
3147
3083
|
let t = document.createTreeWalker(e, NodeFilter.SHOW_COMMENT), n = [];
|
|
3148
3084
|
for (let e = t.nextNode(); e; e = t.nextNode()) n.push(e);
|
|
3149
3085
|
n.forEach((e) => {
|
|
@@ -3151,42 +3087,42 @@ function Ln(e) {
|
|
|
3151
3087
|
return (t = e.parentNode) == null ? void 0 : t.removeChild(e);
|
|
3152
3088
|
});
|
|
3153
3089
|
}
|
|
3154
|
-
function
|
|
3090
|
+
function zn(e) {
|
|
3155
3091
|
let t = e.parentNode;
|
|
3156
3092
|
if (t) {
|
|
3157
3093
|
for (; e.firstChild;) t.insertBefore(e.firstChild, e);
|
|
3158
3094
|
t.removeChild(e);
|
|
3159
3095
|
}
|
|
3160
3096
|
}
|
|
3161
|
-
function
|
|
3097
|
+
function Bn(e) {
|
|
3162
3098
|
let t = e.getAttribute("style");
|
|
3163
3099
|
if (t != null) {
|
|
3164
|
-
let n = t.replace(
|
|
3100
|
+
let n = t.replace(Fn, "").replace(Ln, "").trim();
|
|
3165
3101
|
n ? e.setAttribute("style", n) : e.removeAttribute("style");
|
|
3166
3102
|
}
|
|
3167
3103
|
let n = e.getAttribute("class");
|
|
3168
3104
|
if (n != null) {
|
|
3169
|
-
let t = n.split(/\s+/).filter((e) => e && !
|
|
3105
|
+
let t = n.split(/\s+/).filter((e) => e && !In.test(e)).join(" ");
|
|
3170
3106
|
t ? e.setAttribute("class", t) : e.removeAttribute("class");
|
|
3171
3107
|
}
|
|
3172
3108
|
e.removeAttribute("lang"), e.removeAttribute("xml:lang"), e.removeAttribute("id"), e.removeAttribute("align"), e.removeAttribute("bgcolor");
|
|
3173
3109
|
}
|
|
3174
|
-
function
|
|
3110
|
+
function Vn(e) {
|
|
3175
3111
|
if (!e || typeof DOMParser > "u") return e;
|
|
3176
3112
|
let t = new DOMParser().parseFromString(e, "text/html").body;
|
|
3177
|
-
return t ? (
|
|
3178
|
-
if (
|
|
3179
|
-
|
|
3113
|
+
return t ? (Rn(t), t.querySelectorAll("xml, style, script, meta, link").forEach((e) => e.remove()), Array.from(t.querySelectorAll("*")).forEach((e) => {
|
|
3114
|
+
if (Pn.test(e.tagName) || e.tagName === "FONT") {
|
|
3115
|
+
zn(e);
|
|
3180
3116
|
return;
|
|
3181
3117
|
}
|
|
3182
|
-
|
|
3118
|
+
Bn(e);
|
|
3183
3119
|
}), Array.from(t.querySelectorAll("span, div")).forEach((e) => {
|
|
3184
|
-
e.attributes.length === 0 &&
|
|
3120
|
+
e.attributes.length === 0 && zn(e);
|
|
3185
3121
|
}), t.innerHTML) : e;
|
|
3186
3122
|
}
|
|
3187
3123
|
//#endregion
|
|
3188
3124
|
//#region src/helpers/rtf-editor/editor-core.vue?vue&type=script&setup=true&lang.ts
|
|
3189
|
-
var
|
|
3125
|
+
var Hn = { class: "editor-container" }, Un = { class: "rtf-bubble-menu" }, Wn = /* @__PURE__ */ l({
|
|
3190
3126
|
__name: "editor-core",
|
|
3191
3127
|
props: {
|
|
3192
3128
|
modelValue: { default: "" },
|
|
@@ -3199,18 +3135,26 @@ var Vn = { class: "editor-container" }, Hn = { class: "rtf-bubble-menu" }, Un =
|
|
|
3199
3135
|
},
|
|
3200
3136
|
emits: ["update:modelValue"],
|
|
3201
3137
|
setup(e, { emit: o }) {
|
|
3202
|
-
|
|
3203
|
-
let s = e, l = o, u =
|
|
3138
|
+
M((e) => ({ v6b982a7a: e.minHeight }));
|
|
3139
|
+
let s = e, l = o, u = S(), d;
|
|
3140
|
+
b(() => {
|
|
3141
|
+
var e;
|
|
3142
|
+
let t = (e = u.value) == null ? void 0 : e.$el, n = t == null ? void 0 : t.closest(".v-field");
|
|
3143
|
+
!t || !n || (d = new ResizeObserver(([e]) => {
|
|
3144
|
+
n.style.setProperty("--rtf-toolbar-height", `${e.contentRect.height}px`);
|
|
3145
|
+
}), d.observe(t));
|
|
3146
|
+
}), y(() => d == null ? void 0 : d.disconnect());
|
|
3147
|
+
let f = De({
|
|
3204
3148
|
content: s.modelValue,
|
|
3205
3149
|
editable: !s.disabled,
|
|
3206
3150
|
extensions: [
|
|
3207
|
-
|
|
3208
|
-
|
|
3151
|
+
Te.configure({ link: !1 }),
|
|
3152
|
+
Tn.configure({
|
|
3209
3153
|
openOnClick: !1,
|
|
3210
3154
|
autolink: !0,
|
|
3211
3155
|
defaultProtocol: "https"
|
|
3212
3156
|
}),
|
|
3213
|
-
|
|
3157
|
+
_e.configure({
|
|
3214
3158
|
inline: !0,
|
|
3215
3159
|
allowBase64: !0,
|
|
3216
3160
|
resize: {
|
|
@@ -3229,136 +3173,128 @@ var Vn = { class: "editor-container" }, Hn = { class: "rtf-bubble-menu" }, Un =
|
|
|
3229
3173
|
minHeight: 24
|
|
3230
3174
|
}
|
|
3231
3175
|
}),
|
|
3232
|
-
|
|
3233
|
-
|
|
3176
|
+
Ce.configure({ types: ["heading", "paragraph"] }),
|
|
3177
|
+
ye.configure({ resizable: !0 }),
|
|
3178
|
+
Se,
|
|
3234
3179
|
xe,
|
|
3235
3180
|
be,
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
ln,
|
|
3239
|
-
dn,
|
|
3181
|
+
ve.configure({ placeholder: "" }),
|
|
3182
|
+
un,
|
|
3240
3183
|
fn,
|
|
3241
|
-
|
|
3184
|
+
pn,
|
|
3185
|
+
Dn
|
|
3242
3186
|
],
|
|
3243
3187
|
editorProps: {
|
|
3244
3188
|
attributes: { class: "rtf-content" },
|
|
3245
|
-
transformPastedHTML: (e) =>
|
|
3246
|
-
handlePaste:
|
|
3189
|
+
transformPastedHTML: (e) => Vn(e),
|
|
3190
|
+
handlePaste: wn(() => f.value)
|
|
3247
3191
|
},
|
|
3248
3192
|
onUpdate: ({ editor: e }) => {
|
|
3249
3193
|
l("update:modelValue", e.isEmpty ? "" : e.getHTML());
|
|
3250
3194
|
}
|
|
3251
3195
|
});
|
|
3252
3196
|
N(() => s.modelValue, (e) => {
|
|
3253
|
-
let t =
|
|
3197
|
+
let t = f.value;
|
|
3254
3198
|
if (!t) return;
|
|
3255
3199
|
let n = e == null ? "" : e;
|
|
3256
3200
|
n !== t.getHTML() && t.commands.setContent(n, { emitUpdate: !1 });
|
|
3257
3201
|
}), N(() => s.disabled, (e) => {
|
|
3258
3202
|
var t;
|
|
3259
|
-
return (t =
|
|
3260
|
-
}), N(
|
|
3261
|
-
let
|
|
3203
|
+
return (t = f.value) == null ? void 0 : t.setEditable(!e);
|
|
3204
|
+
}), N(f, (e) => e == null ? void 0 : e.setEditable(!s.disabled));
|
|
3205
|
+
let p = {
|
|
3206
|
+
icon: !0,
|
|
3207
|
+
size: "small",
|
|
3208
|
+
density: "comfortable",
|
|
3209
|
+
variant: "text"
|
|
3210
|
+
}, h = On(f), g = t(() => {
|
|
3262
3211
|
var e, t, n, r, i;
|
|
3263
|
-
return
|
|
3264
|
-
bold: !!((e =
|
|
3265
|
-
italic: !!((t =
|
|
3266
|
-
link: !!((n =
|
|
3267
|
-
bulletList: !!((r =
|
|
3268
|
-
orderedList: !!((i =
|
|
3212
|
+
return h.value, {
|
|
3213
|
+
bold: !!((e = f.value) != null && e.isActive("bold")),
|
|
3214
|
+
italic: !!((t = f.value) != null && t.isActive("italic")),
|
|
3215
|
+
link: !!((n = f.value) != null && n.isActive("link")),
|
|
3216
|
+
bulletList: !!((r = f.value) != null && r.isActive("bulletList")),
|
|
3217
|
+
orderedList: !!((i = f.value) != null && i.isActive("orderedList"))
|
|
3269
3218
|
};
|
|
3270
3219
|
});
|
|
3271
|
-
function
|
|
3272
|
-
return !e.selection.empty && !(e.selection instanceof
|
|
3220
|
+
function _({ state: e }) {
|
|
3221
|
+
return !e.selection.empty && !(e.selection instanceof we);
|
|
3273
3222
|
}
|
|
3274
|
-
function
|
|
3223
|
+
function v(e) {
|
|
3275
3224
|
var t;
|
|
3276
|
-
(t =
|
|
3225
|
+
(t = f.value) == null || t.chain().focus()[e]().run();
|
|
3277
3226
|
}
|
|
3278
|
-
function
|
|
3279
|
-
let e =
|
|
3227
|
+
function C() {
|
|
3228
|
+
let e = f.value;
|
|
3280
3229
|
if (!e) return;
|
|
3281
3230
|
if (e.isActive("link")) {
|
|
3282
3231
|
e.chain().focus().unsetLink().run();
|
|
3283
3232
|
return;
|
|
3284
3233
|
}
|
|
3285
|
-
let t = window.prompt(
|
|
3234
|
+
let t = window.prompt(Pt.LinkUrl);
|
|
3286
3235
|
t && e.chain().focus().extendMarkRange("link").setLink({ href: t }).run();
|
|
3287
3236
|
}
|
|
3288
3237
|
return (t, o) => {
|
|
3289
|
-
let s =
|
|
3290
|
-
return
|
|
3291
|
-
c(
|
|
3292
|
-
|
|
3238
|
+
let s = T("v-btn");
|
|
3239
|
+
return x(), i("div", Hn, [
|
|
3240
|
+
c(Nn, {
|
|
3241
|
+
ref_key: "toolbarRef",
|
|
3242
|
+
ref: u,
|
|
3243
|
+
editor: j(f),
|
|
3293
3244
|
"button-size": e.toolbarButtonSize
|
|
3294
3245
|
}, null, 8, ["editor", "button-size"]),
|
|
3295
|
-
c(
|
|
3246
|
+
c(j(Ee), {
|
|
3296
3247
|
class: "editor-container__editor",
|
|
3297
|
-
editor:
|
|
3248
|
+
editor: j(f)
|
|
3298
3249
|
}, null, 8, ["editor"]),
|
|
3299
|
-
|
|
3250
|
+
j(f) ? (x(), n(j(Oe), {
|
|
3300
3251
|
key: 0,
|
|
3301
|
-
editor:
|
|
3302
|
-
"should-show":
|
|
3252
|
+
editor: j(f),
|
|
3253
|
+
"should-show": _
|
|
3303
3254
|
}, {
|
|
3304
|
-
default:
|
|
3305
|
-
c(s, {
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
onClick: o[0] || (o[0] = (e) => m("toggleBold"))
|
|
3311
|
-
}, {
|
|
3312
|
-
default: F(() => [c(A(U), { name: "mdi-format-bold" })]),
|
|
3255
|
+
default: P(() => [a("div", Un, [
|
|
3256
|
+
c(s, m(p, {
|
|
3257
|
+
active: g.value.bold,
|
|
3258
|
+
onClick: o[0] || (o[0] = (e) => v("toggleBold"))
|
|
3259
|
+
}), {
|
|
3260
|
+
default: P(() => [c(j(V), { name: "mdi-format-bold" })]),
|
|
3313
3261
|
_: 1
|
|
3314
|
-
},
|
|
3315
|
-
c(s, {
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
onClick: o[1] || (o[1] = (e) => m("toggleItalic"))
|
|
3321
|
-
}, {
|
|
3322
|
-
default: F(() => [c(A(U), { name: "mdi-format-italic" })]),
|
|
3262
|
+
}, 16, ["active"]),
|
|
3263
|
+
c(s, m(p, {
|
|
3264
|
+
active: g.value.italic,
|
|
3265
|
+
onClick: o[1] || (o[1] = (e) => v("toggleItalic"))
|
|
3266
|
+
}), {
|
|
3267
|
+
default: P(() => [c(j(V), { name: "mdi-format-italic" })]),
|
|
3323
3268
|
_: 1
|
|
3324
|
-
},
|
|
3325
|
-
c(s, {
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
onClick: h
|
|
3331
|
-
}, {
|
|
3332
|
-
default: F(() => [c(A(U), { name: "mdi-link-variant" })]),
|
|
3269
|
+
}, 16, ["active"]),
|
|
3270
|
+
c(s, m(p, {
|
|
3271
|
+
active: g.value.link,
|
|
3272
|
+
onClick: C
|
|
3273
|
+
}), {
|
|
3274
|
+
default: P(() => [c(j(V), { name: "mdi-link-variant" })]),
|
|
3333
3275
|
_: 1
|
|
3334
|
-
},
|
|
3335
|
-
c(s, {
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
onClick: o[2] || (o[2] = (e) => m("toggleBulletList"))
|
|
3341
|
-
}, {
|
|
3342
|
-
default: F(() => [c(A(U), { name: "mdi-format-list-bulleted" })]),
|
|
3276
|
+
}, 16, ["active"]),
|
|
3277
|
+
c(s, m(p, {
|
|
3278
|
+
active: g.value.bulletList,
|
|
3279
|
+
onClick: o[2] || (o[2] = (e) => v("toggleBulletList"))
|
|
3280
|
+
}), {
|
|
3281
|
+
default: P(() => [c(j(V), { name: "mdi-format-list-bulleted" })]),
|
|
3343
3282
|
_: 1
|
|
3344
|
-
},
|
|
3345
|
-
c(s, {
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
onClick: o[3] || (o[3] = (e) => m("toggleOrderedList"))
|
|
3351
|
-
}, {
|
|
3352
|
-
default: F(() => [c(A(U), { name: "mdi-format-list-numbered" })]),
|
|
3283
|
+
}, 16, ["active"]),
|
|
3284
|
+
c(s, m(p, {
|
|
3285
|
+
active: g.value.orderedList,
|
|
3286
|
+
onClick: o[3] || (o[3] = (e) => v("toggleOrderedList"))
|
|
3287
|
+
}), {
|
|
3288
|
+
default: P(() => [c(j(V), { name: "mdi-format-list-numbered" })]),
|
|
3353
3289
|
_: 1
|
|
3354
|
-
},
|
|
3290
|
+
}, 16, ["active"])
|
|
3355
3291
|
])]),
|
|
3356
3292
|
_: 1
|
|
3357
3293
|
}, 8, ["editor"])) : r("", !0)
|
|
3358
3294
|
]);
|
|
3359
3295
|
};
|
|
3360
3296
|
}
|
|
3361
|
-
}),
|
|
3297
|
+
}), Gn = /* @__PURE__ */ l({
|
|
3362
3298
|
__name: "df-rtf-editor",
|
|
3363
3299
|
props: /*@__PURE__*/ p({
|
|
3364
3300
|
minHeight: {},
|
|
@@ -3381,14 +3317,14 @@ var Vn = { class: "editor-container" }, Hn = { class: "rtf-bubble-menu" }, Un =
|
|
|
3381
3317
|
emits: ["update:modelValue", "click:clear"],
|
|
3382
3318
|
setup(e, { emit: t }) {
|
|
3383
3319
|
let r = e, { densityClass: i, value: a, vuetifyBindings: o } = Q(r, t);
|
|
3384
|
-
return (t, s) => (
|
|
3385
|
-
default:
|
|
3320
|
+
return (t, s) => (x(), n(j(Nt), m(r, { class: ["rtf-editor", j(i)] }), {
|
|
3321
|
+
default: P((t) => [c(Wn, m({
|
|
3386
3322
|
ref: "$editor",
|
|
3387
|
-
modelValue:
|
|
3323
|
+
modelValue: j(a),
|
|
3388
3324
|
"onUpdate:modelValue": s[0] || (s[0] = (e) => f(a) ? a.value = e : null),
|
|
3389
3325
|
class: { "mt-6": !!e.label },
|
|
3390
3326
|
"min-height": e.minHeight,
|
|
3391
|
-
disabled:
|
|
3327
|
+
disabled: j(o).disabled,
|
|
3392
3328
|
"toolbar-button-size": e.toolbarButtonSize
|
|
3393
3329
|
}, e.passthroughAttrs, {
|
|
3394
3330
|
onFocusin: (e) => t.focus(),
|
|
@@ -3408,42 +3344,42 @@ var Vn = { class: "editor-container" }, Hn = { class: "rtf-bubble-menu" }, Un =
|
|
|
3408
3344
|
});
|
|
3409
3345
|
//#endregion
|
|
3410
3346
|
//#region src/helpers/df-select.helper.ts
|
|
3411
|
-
function
|
|
3347
|
+
function Kn(e) {
|
|
3412
3348
|
return e.map((e) => ({
|
|
3413
3349
|
value: e.id,
|
|
3414
3350
|
title: e.text,
|
|
3415
3351
|
icon: e.icon
|
|
3416
3352
|
}));
|
|
3417
3353
|
}
|
|
3418
|
-
function
|
|
3354
|
+
function qn(e, t) {
|
|
3419
3355
|
var n;
|
|
3420
|
-
return e == null ||
|
|
3356
|
+
return e == null || se(e) && e.length === 0 ? null : t ? U(e) : se(e) ? (n = oe(e)) == null ? null : n : e;
|
|
3421
3357
|
}
|
|
3422
|
-
function
|
|
3358
|
+
function Jn(e, t) {
|
|
3423
3359
|
if (t == null) return [];
|
|
3424
|
-
let n =
|
|
3360
|
+
let n = U(t);
|
|
3425
3361
|
return e.filter((e) => n.some((t) => t === e.id));
|
|
3426
3362
|
}
|
|
3427
|
-
function
|
|
3428
|
-
let a =
|
|
3363
|
+
function Yn(e, t, n, r, i) {
|
|
3364
|
+
let a = qn(e, n);
|
|
3429
3365
|
if (a == null) {
|
|
3430
3366
|
t.value = n ? [] : null;
|
|
3431
3367
|
return;
|
|
3432
3368
|
}
|
|
3433
|
-
if (n) t.value = r ? a :
|
|
3369
|
+
if (n) t.value = r ? a : Jn(i, a).map((e) => e.id);
|
|
3434
3370
|
else if (r) t.value = a;
|
|
3435
3371
|
else {
|
|
3436
3372
|
var o;
|
|
3437
|
-
let e =
|
|
3373
|
+
let e = oe(Jn(i, a));
|
|
3438
3374
|
t.value = (o = e == null ? void 0 : e.id) == null ? null : o;
|
|
3439
3375
|
}
|
|
3440
3376
|
}
|
|
3441
3377
|
//#endregion
|
|
3442
3378
|
//#region src/df-select.vue?vue&type=script&setup=true&lang.ts
|
|
3443
|
-
var
|
|
3379
|
+
var Xn = {
|
|
3444
3380
|
key: 0,
|
|
3445
3381
|
class: "me-1"
|
|
3446
|
-
},
|
|
3382
|
+
}, Zn = /*#__PURE__*/ ((e, t) => {
|
|
3447
3383
|
let n = e.__vccOpts || e;
|
|
3448
3384
|
for (let [e, r] of t) n[e] = r;
|
|
3449
3385
|
return n;
|
|
@@ -3483,174 +3419,174 @@ var Yn = {
|
|
|
3483
3419
|
],
|
|
3484
3420
|
setup(e, { emit: s }) {
|
|
3485
3421
|
var l;
|
|
3486
|
-
let d = e, { choices: f, multiple: p, allowTags: v, allowNull: y, cssClass:
|
|
3422
|
+
let d = e, { choices: f, multiple: p, allowTags: v, allowNull: y, cssClass: b } = A(d), C = s, D = S(null), { densityClass: k, isRendered: M, label: ee, showErrors: te, touched: F, value: I, visibilityClass: L, vuetifyBindings: R } = Q(d, C), z = S(null), ne = S(!1), re = S([]), B = t(() => j(ne) ? j(re) : j(f) || []), ie = S(!1), H = t(() => Kn(B.value)), U = S(null), ae = S(0), oe = S(!1);
|
|
3487
3423
|
(l = f.value) != null && l.length && d.fetchChoices !== void 0 && console.warn("Both choices and fetchChoices are set. Only one of them should be set.");
|
|
3488
|
-
function ae(e) {
|
|
3489
|
-
E("update:modelValueDisplay", qn(H.value, e));
|
|
3490
|
-
}
|
|
3491
|
-
let K = x(!1);
|
|
3492
3424
|
function se(e) {
|
|
3493
|
-
|
|
3425
|
+
C("update:modelValueDisplay", Jn(B.value, e));
|
|
3426
|
+
}
|
|
3427
|
+
let W = S(!1);
|
|
3428
|
+
function G(e) {
|
|
3429
|
+
W.value = !0;
|
|
3494
3430
|
try {
|
|
3495
|
-
|
|
3431
|
+
I.value = e;
|
|
3496
3432
|
} finally {
|
|
3497
|
-
|
|
3498
|
-
|
|
3433
|
+
ce(qn(I.value, p.value), e) || Yn(qn(I.value, p.value), z, p.value, v.value, B.value), h(() => {
|
|
3434
|
+
W.value = !1;
|
|
3499
3435
|
});
|
|
3500
3436
|
}
|
|
3501
3437
|
}
|
|
3502
|
-
function
|
|
3438
|
+
function le(e) {
|
|
3503
3439
|
if (!e) return 0;
|
|
3504
3440
|
let t = e.getBoundingClientRect(), n = window.getComputedStyle(e);
|
|
3505
3441
|
return t.width + parseFloat(n.marginLeft) + parseFloat(n.marginRight);
|
|
3506
3442
|
}
|
|
3507
|
-
function
|
|
3508
|
-
if (p.value && y.value &&
|
|
3443
|
+
function ue() {
|
|
3444
|
+
if (p.value && y.value && z.value != null && z.value.length > 0 && D.value) {
|
|
3509
3445
|
var e;
|
|
3510
|
-
let t =
|
|
3446
|
+
let t = D.value.$el, n = (e = t.querySelector(".v-input__control")) == null ? void 0 : e.clientWidth, r = t.querySelector(".v-field__input"), i = r.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), a = window.getComputedStyle(r), o = parseFloat(a.paddingLeft) + parseFloat(a.paddingRight);
|
|
3511
3447
|
i.forEach((e) => {
|
|
3512
|
-
o +=
|
|
3448
|
+
o += le(e);
|
|
3513
3449
|
});
|
|
3514
|
-
let s =
|
|
3515
|
-
|
|
3516
|
-
} else
|
|
3450
|
+
let s = le(t.querySelector(".v-field .v-field__clearable")), c = le(t.querySelector(".v-field .v-field__append-inner"));
|
|
3451
|
+
oe.value = n - o - i.length * 2 - c < s;
|
|
3452
|
+
} else oe.value = !1;
|
|
3517
3453
|
}
|
|
3518
|
-
function
|
|
3454
|
+
function de(e) {
|
|
3519
3455
|
let t = e.target;
|
|
3520
3456
|
t instanceof HTMLElement && t.closest(".v-chip__close") && (e.stopPropagation(), e.preventDefault());
|
|
3521
3457
|
}
|
|
3522
|
-
N(
|
|
3523
|
-
|
|
3524
|
-
let t =
|
|
3525
|
-
|
|
3458
|
+
N(z, (e) => {
|
|
3459
|
+
R.value.readonly || h(() => {
|
|
3460
|
+
let t = qn(e, p.value);
|
|
3461
|
+
se(t), G(t);
|
|
3526
3462
|
});
|
|
3527
|
-
}, { deep: !0 }), N(
|
|
3528
|
-
|
|
3529
|
-
}, { deep: !0 }), N(
|
|
3530
|
-
|
|
3463
|
+
}, { deep: !0 }), N(I, (e) => {
|
|
3464
|
+
W.value || Yn(qn(e, p.value), z, p.value, !1, B.value);
|
|
3465
|
+
}, { deep: !0 }), N(W, () => {
|
|
3466
|
+
W.value || ue();
|
|
3531
3467
|
});
|
|
3532
|
-
function
|
|
3533
|
-
|
|
3468
|
+
function K() {
|
|
3469
|
+
U.value != null && U.value.length > 0 && (U.value = null, me());
|
|
3534
3470
|
}
|
|
3535
|
-
function
|
|
3536
|
-
if (
|
|
3537
|
-
let e =
|
|
3538
|
-
|
|
3471
|
+
function q() {
|
|
3472
|
+
if (K(), R.value.readonly || v.value) return;
|
|
3473
|
+
let e = qn(z.value, p.value);
|
|
3474
|
+
Yn(e, z, p.value, !1, B.value), G(e);
|
|
3539
3475
|
}
|
|
3540
3476
|
function pe(e, t) {
|
|
3541
|
-
if (e.stopPropagation(),
|
|
3542
|
-
v.value && (
|
|
3477
|
+
if (e.stopPropagation(), R.value.readonly || v.value) {
|
|
3478
|
+
v.value && (z.value = z.value.filter((e) => e !== t));
|
|
3543
3479
|
return;
|
|
3544
3480
|
}
|
|
3545
3481
|
let n;
|
|
3546
|
-
n = p.value && Array.isArray(
|
|
3482
|
+
n = p.value && Array.isArray(z.value) ? qn(z.value.filter((e) => e !== t), p.value) : null, Yn(n, z, p.value, !1, B.value), G(n);
|
|
3547
3483
|
}
|
|
3548
3484
|
function me(e, t) {
|
|
3549
3485
|
return he.apply(this, arguments);
|
|
3550
3486
|
}
|
|
3551
3487
|
function he() {
|
|
3552
|
-
return he =
|
|
3553
|
-
if (
|
|
3554
|
-
let n = ++
|
|
3555
|
-
|
|
3488
|
+
return he = $t(function* (e, t) {
|
|
3489
|
+
if (R.value.readonly || (U.value = e, f.value || d.fetchChoices === void 0)) return;
|
|
3490
|
+
let n = ++ae.value;
|
|
3491
|
+
ie.value = !0;
|
|
3556
3492
|
try {
|
|
3557
|
-
let r =
|
|
3558
|
-
if (n !==
|
|
3559
|
-
|
|
3493
|
+
let r = Jn(B.value, qn(z.value, p.value)), i = yield d.fetchChoices(e, t);
|
|
3494
|
+
if (n !== ae.value) return;
|
|
3495
|
+
re.value = fe([...r, ...i], "id"), ne.value = !0;
|
|
3560
3496
|
} finally {
|
|
3561
|
-
|
|
3497
|
+
ie.value = !1;
|
|
3562
3498
|
}
|
|
3563
3499
|
}), he.apply(this, arguments);
|
|
3564
3500
|
}
|
|
3565
3501
|
function ge() {
|
|
3566
|
-
let e =
|
|
3567
|
-
!y.value && e == null &&
|
|
3502
|
+
let e = I.value;
|
|
3503
|
+
!y.value && e == null && H.value.length && (e = H.value[0].value), e = qn(e, p.value), Yn(e, z, p.value, v.value, B.value), se(e), G(e);
|
|
3568
3504
|
}
|
|
3569
|
-
return ge(), d.fetchChoices !== void 0 && me(void 0,
|
|
3505
|
+
return ge(), d.fetchChoices !== void 0 && me(void 0, I.value).then(() => {
|
|
3570
3506
|
ge();
|
|
3571
3507
|
}), (e, t) => {
|
|
3572
|
-
let s =
|
|
3573
|
-
return
|
|
3508
|
+
let s = T("v-chip"), l = T("v-list-item");
|
|
3509
|
+
return j(M) ? (x(), n(E(j(v) ? "v-combobox" : "v-autocomplete"), m({
|
|
3574
3510
|
key: 0,
|
|
3575
3511
|
ref_key: "dfSelectRef",
|
|
3576
|
-
ref:
|
|
3577
|
-
modelValue:
|
|
3578
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) =>
|
|
3512
|
+
ref: D,
|
|
3513
|
+
modelValue: z.value,
|
|
3514
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => z.value = e),
|
|
3579
3515
|
class: [
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
{ "df-select-multirow":
|
|
3516
|
+
j(b),
|
|
3517
|
+
j(k),
|
|
3518
|
+
j(L),
|
|
3519
|
+
{ "df-select-multirow": oe.value }
|
|
3584
3520
|
],
|
|
3585
|
-
items:
|
|
3521
|
+
items: H.value,
|
|
3586
3522
|
"return-object": !1,
|
|
3587
3523
|
chips: "",
|
|
3588
3524
|
"auto-select-first": !0,
|
|
3589
|
-
"closable-chips":
|
|
3590
|
-
clearable:
|
|
3591
|
-
multiple:
|
|
3592
|
-
loading:
|
|
3525
|
+
"closable-chips": j(y) || j(p) && z.value.length > 1,
|
|
3526
|
+
clearable: j(y),
|
|
3527
|
+
multiple: j(p),
|
|
3528
|
+
loading: ie.value,
|
|
3593
3529
|
"hide-selected": !1,
|
|
3594
|
-
"aria-describedby":
|
|
3530
|
+
"aria-describedby": j(R).helpText ? `${j(R).name}-help` : null,
|
|
3595
3531
|
"menu-props": { maxHeight: "400" },
|
|
3596
|
-
search:
|
|
3597
|
-
},
|
|
3532
|
+
search: U.value
|
|
3533
|
+
}, j(R), {
|
|
3598
3534
|
"onUpdate:search": t[1] || (t[1] = (e) => me(e, void 0)),
|
|
3599
|
-
"onUpdate:modelValue":
|
|
3600
|
-
"onClick:clear": t[2] || (t[2] = (e) =>
|
|
3601
|
-
onBlur: t[3] || (t[3] = (e) =>
|
|
3602
|
-
onMousedownCapture: t[4] || (t[4] = (e) =>
|
|
3535
|
+
"onUpdate:modelValue": q,
|
|
3536
|
+
"onClick:clear": t[2] || (t[2] = (e) => z.value = null),
|
|
3537
|
+
onBlur: t[3] || (t[3] = (e) => F.value = !0),
|
|
3538
|
+
onMousedownCapture: t[4] || (t[4] = (e) => de(e))
|
|
3603
3539
|
}), o({
|
|
3604
|
-
chip:
|
|
3540
|
+
chip: P(({ item: e }) => [(x(), n(s, {
|
|
3605
3541
|
key: e.value,
|
|
3606
3542
|
label: "",
|
|
3607
3543
|
size: "small",
|
|
3608
3544
|
class: "d-flex align-middle",
|
|
3609
|
-
variant:
|
|
3610
|
-
closable:
|
|
3545
|
+
variant: j(p) ? "tonal" : "text",
|
|
3546
|
+
closable: j(p),
|
|
3611
3547
|
"onClick:close": (t) => pe(t, e.value)
|
|
3612
3548
|
}, {
|
|
3613
|
-
prepend:
|
|
3549
|
+
prepend: P(() => {
|
|
3614
3550
|
var t;
|
|
3615
|
-
return [(t = e.raw) != null && t.icon ? (
|
|
3551
|
+
return [(t = e.raw) != null && t.icon ? (x(), n(j(V), {
|
|
3616
3552
|
key: 0,
|
|
3617
3553
|
class: "me-1",
|
|
3618
3554
|
name: e.raw.icon
|
|
3619
3555
|
}, null, 8, ["name"])) : r("", !0)];
|
|
3620
3556
|
}),
|
|
3621
|
-
default:
|
|
3557
|
+
default: P(() => [a("span", { class: g({ "text-body-1": !j(p) }) }, O(e.title), 3)]),
|
|
3622
3558
|
_: 2
|
|
3623
3559
|
}, 1032, [
|
|
3624
3560
|
"variant",
|
|
3625
3561
|
"closable",
|
|
3626
3562
|
"onClick:close"
|
|
3627
3563
|
]))]),
|
|
3628
|
-
label:
|
|
3564
|
+
label: P((e) => [c(j(X), {
|
|
3629
3565
|
data: e,
|
|
3630
|
-
label:
|
|
3566
|
+
label: j(ee)
|
|
3631
3567
|
}, null, 8, ["data", "label"])]),
|
|
3632
|
-
item:
|
|
3633
|
-
prepend:
|
|
3568
|
+
item: P(({ props: e, item: t }) => [c(l, _(u(e)), {
|
|
3569
|
+
prepend: P(() => {
|
|
3634
3570
|
var e;
|
|
3635
|
-
return [(e = t.raw) != null && e.icon ? (
|
|
3571
|
+
return [(e = t.raw) != null && e.icon ? (x(), i("span", Xn, [c(j(V), {
|
|
3636
3572
|
class: "action-icon",
|
|
3637
3573
|
name: t.raw.icon
|
|
3638
3574
|
}, null, 8, ["name"])])) : r("", !0)];
|
|
3639
3575
|
}),
|
|
3640
3576
|
_: 2
|
|
3641
3577
|
}, 1040)]),
|
|
3642
|
-
message:
|
|
3578
|
+
message: P(({ message: e }) => [c(j(Y), {
|
|
3643
3579
|
message: e,
|
|
3644
|
-
errors:
|
|
3580
|
+
errors: j(te)
|
|
3645
3581
|
}, null, 8, ["message", "errors"])]),
|
|
3646
3582
|
_: 2
|
|
3647
3583
|
}, [e.$slots["append-inner"] ? {
|
|
3648
3584
|
name: "append-inner",
|
|
3649
|
-
fn:
|
|
3585
|
+
fn: P((t) => [w(e.$slots, "append-inner", _(u(t)), void 0, !0)]),
|
|
3650
3586
|
key: "0"
|
|
3651
3587
|
} : void 0, e.$slots["prepend-inner"] ? {
|
|
3652
3588
|
name: "prepend-inner",
|
|
3653
|
-
fn:
|
|
3589
|
+
fn: P((t) => [w(e.$slots, "prepend-inner", _(u(t)), void 0, !0)]),
|
|
3654
3590
|
key: "1"
|
|
3655
3591
|
} : void 0]), 1040, [
|
|
3656
3592
|
"modelValue",
|
|
@@ -3665,7 +3601,7 @@ var Yn = {
|
|
|
3665
3601
|
])) : r("", !0);
|
|
3666
3602
|
};
|
|
3667
3603
|
}
|
|
3668
|
-
}), [["__scopeId", "data-v-7e5aa3b6"]]),
|
|
3604
|
+
}), [["__scopeId", "data-v-7e5aa3b6"]]), Qn = /* @__PURE__ */ l({
|
|
3669
3605
|
__name: "df-text-area",
|
|
3670
3606
|
props: /*@__PURE__*/ p({
|
|
3671
3607
|
rows: {},
|
|
@@ -3690,27 +3626,27 @@ var Yn = {
|
|
|
3690
3626
|
})),
|
|
3691
3627
|
emits: ["update:modelValue", "click:clear"],
|
|
3692
3628
|
setup(e, { emit: t }) {
|
|
3693
|
-
let n = e, { densityClass: a, isRendered: o, label: s, showErrors: l, touched: u, value: d, visibilityClass: p, vuetifyBindings: h } = Q(n, t), { cssClass: _ } =
|
|
3629
|
+
let n = e, { densityClass: a, isRendered: o, label: s, showErrors: l, touched: u, value: d, visibilityClass: p, vuetifyBindings: h } = Q(n, t), { cssClass: _ } = A(n);
|
|
3694
3630
|
return (t, n) => {
|
|
3695
|
-
let v =
|
|
3696
|
-
return
|
|
3631
|
+
let v = T("v-textarea");
|
|
3632
|
+
return j(o) ? (x(), i("div", {
|
|
3697
3633
|
key: 0,
|
|
3698
|
-
class: g(["df-textarea-container", [
|
|
3634
|
+
class: g(["df-textarea-container", [j(a), j(p)]])
|
|
3699
3635
|
}, [c(v, m({
|
|
3700
|
-
modelValue:
|
|
3636
|
+
modelValue: j(d),
|
|
3701
3637
|
"onUpdate:modelValue": n[0] || (n[0] = (e) => f(d) ? d.value = e : null),
|
|
3702
|
-
class:
|
|
3638
|
+
class: j(_),
|
|
3703
3639
|
rows: e.rows,
|
|
3704
3640
|
"auto-grow": (e.maxRows || 0) > 0,
|
|
3705
3641
|
"max-rows": e.maxRows
|
|
3706
|
-
},
|
|
3707
|
-
label:
|
|
3642
|
+
}, j(h), { onBlur: n[1] || (n[1] = (e) => u.value = !0) }), {
|
|
3643
|
+
label: P((e) => [c(j(X), {
|
|
3708
3644
|
data: e,
|
|
3709
|
-
label:
|
|
3645
|
+
label: j(s)
|
|
3710
3646
|
}, null, 8, ["data", "label"])]),
|
|
3711
|
-
message:
|
|
3647
|
+
message: P(({ message: e }) => [c(j(Y), {
|
|
3712
3648
|
message: e,
|
|
3713
|
-
errors:
|
|
3649
|
+
errors: j(l)
|
|
3714
3650
|
}, null, 8, ["message", "errors"])]),
|
|
3715
3651
|
_: 1
|
|
3716
3652
|
}, 16, [
|
|
@@ -3722,62 +3658,62 @@ var Yn = {
|
|
|
3722
3658
|
])], 2)) : r("", !0);
|
|
3723
3659
|
};
|
|
3724
3660
|
}
|
|
3725
|
-
}),
|
|
3726
|
-
DfActions: () =>
|
|
3727
|
-
DfCheckbox: () =>
|
|
3728
|
-
DfColor: () =>
|
|
3729
|
-
DfDateTime: () =>
|
|
3730
|
-
DfFile: () =>
|
|
3731
|
-
DfImage: () =>
|
|
3732
|
-
DfInput: () =>
|
|
3661
|
+
}), $n = /* @__PURE__ */ st({
|
|
3662
|
+
DfActions: () => Jt,
|
|
3663
|
+
DfCheckbox: () => Yt,
|
|
3664
|
+
DfColor: () => Xt,
|
|
3665
|
+
DfDateTime: () => Zt,
|
|
3666
|
+
DfFile: () => tn,
|
|
3667
|
+
DfImage: () => cn,
|
|
3668
|
+
DfInput: () => ln,
|
|
3733
3669
|
DfInputHint: () => Y,
|
|
3734
3670
|
DfLabel: () => X,
|
|
3735
|
-
DfRtfEditor: () =>
|
|
3736
|
-
DfSelect: () =>
|
|
3737
|
-
DfTextArea: () =>
|
|
3738
|
-
}),
|
|
3739
|
-
VAutocomplete: () =>
|
|
3740
|
-
VBtn: () =>
|
|
3741
|
-
VCheckbox: () =>
|
|
3742
|
-
VChip: () =>
|
|
3743
|
-
VCol: () =>
|
|
3744
|
-
VColorPicker: () =>
|
|
3745
|
-
VCombobox: () =>
|
|
3746
|
-
VConfirmEdit: () =>
|
|
3747
|
-
VDatePicker: () =>
|
|
3748
|
-
VField: () =>
|
|
3749
|
-
VFileInput: () =>
|
|
3750
|
-
VIcon: () =>
|
|
3751
|
-
VImg: () =>
|
|
3752
|
-
VInput: () =>
|
|
3753
|
-
VListItem: () =>
|
|
3754
|
-
VMenu: () =>
|
|
3755
|
-
VNumberInput: () =>
|
|
3756
|
-
VProgressLinear: () =>
|
|
3757
|
-
VRow: () =>
|
|
3758
|
-
VSelect: () =>
|
|
3759
|
-
VSwitch: () =>
|
|
3760
|
-
VTextField: () =>
|
|
3761
|
-
VTextarea: () =>
|
|
3762
|
-
VTimePicker: () =>
|
|
3763
|
-
}),
|
|
3764
|
-
"df-actions":
|
|
3765
|
-
"df-checkbox":
|
|
3766
|
-
"df-color":
|
|
3767
|
-
"df-date-time":
|
|
3768
|
-
"df-file":
|
|
3769
|
-
"df-image":
|
|
3770
|
-
"df-input":
|
|
3671
|
+
DfRtfEditor: () => Gn,
|
|
3672
|
+
DfSelect: () => Zn,
|
|
3673
|
+
DfTextArea: () => Qn
|
|
3674
|
+
}), er = /* @__PURE__ */ st({
|
|
3675
|
+
VAutocomplete: () => Ie,
|
|
3676
|
+
VBtn: () => Le,
|
|
3677
|
+
VCheckbox: () => Re,
|
|
3678
|
+
VChip: () => ze,
|
|
3679
|
+
VCol: () => Ke,
|
|
3680
|
+
VColorPicker: () => Ve,
|
|
3681
|
+
VCombobox: () => Be,
|
|
3682
|
+
VConfirmEdit: () => He,
|
|
3683
|
+
VDatePicker: () => Ue,
|
|
3684
|
+
VField: () => We,
|
|
3685
|
+
VFileInput: () => Ge,
|
|
3686
|
+
VIcon: () => Je,
|
|
3687
|
+
VImg: () => Ye,
|
|
3688
|
+
VInput: () => Xe,
|
|
3689
|
+
VListItem: () => Ze,
|
|
3690
|
+
VMenu: () => Qe,
|
|
3691
|
+
VNumberInput: () => $e,
|
|
3692
|
+
VProgressLinear: () => et,
|
|
3693
|
+
VRow: () => qe,
|
|
3694
|
+
VSelect: () => tt,
|
|
3695
|
+
VSwitch: () => nt,
|
|
3696
|
+
VTextField: () => it,
|
|
3697
|
+
VTextarea: () => rt,
|
|
3698
|
+
VTimePicker: () => at
|
|
3699
|
+
}), tr = {
|
|
3700
|
+
"df-actions": Jt,
|
|
3701
|
+
"df-checkbox": Yt,
|
|
3702
|
+
"df-color": Xt,
|
|
3703
|
+
"df-date-time": Zt,
|
|
3704
|
+
"df-file": tn,
|
|
3705
|
+
"df-image": cn,
|
|
3706
|
+
"df-input": ln,
|
|
3771
3707
|
"df-input-hint": Y,
|
|
3772
3708
|
"df-label": X,
|
|
3773
|
-
"df-rtf-editor":
|
|
3774
|
-
"df-select":
|
|
3775
|
-
"df-text-area":
|
|
3776
|
-
},
|
|
3709
|
+
"df-rtf-editor": Gn,
|
|
3710
|
+
"df-select": Zn,
|
|
3711
|
+
"df-text-area": Qn
|
|
3712
|
+
}, nr = /* @__PURE__ */ st({}), rr = { install: (e, t) => {
|
|
3777
3713
|
var n, r;
|
|
3778
|
-
e.provide(
|
|
3714
|
+
e.provide(At, t == null ? {} : t), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries($n).map(([t, n]) => e.component(t, n)), (r = t == null ? void 0 : t.registerVuetifyComponents) != null && r && Object.entries(er).map(([t, n]) => e.component(t, n));
|
|
3779
3715
|
} };
|
|
3780
3716
|
//#endregion
|
|
3781
|
-
export {
|
|
3717
|
+
export { Ut as Action, $ as ActionDisplayStyle, Ot as DateTimeLocaleConfig, Jt as DfActions, Yt as DfCheckbox, Xt as DfColor, Zt as DfDateTime, tn as DfFile, cn as DfImage, ln as DfInput, nr as DfInputComponentProps, $n as DfInputComponents, Y as DfInputHint, X as DfLabel, Gn as DfRtfEditor, Zn as DfSelect, Qn as DfTextArea, rr as DynamicFormsInputs, kt as FileGoneError, Nt as InputBase, jt as Label, Vt as ResponsiveActionRenderOptions, Rt as ResponsiveRenderOptions, er as VuetifyComponents, Z as defaultBaseProps, It as defaultDisplayStyle, tr as dfInputComponentsByTag, zt as getBreakpointName, Ht as getRenderOptionsForBreakpoint, Lt as responsiveBreakpoints, Gt as setFileGoneError, Pt as translatableStrings, Ft as translateStrings, Bt as useBreakpoint, Wt as useFileTouchKeepAlive, Q as useInputBase, At as vuetifyInputsSettingsKey };
|
|
3782
3718
|
|
|
3783
3719
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|