@dynamicforms/vuetify-inputs 0.13.0 → 0.14.1
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 +738 -771
- 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 +2 -9
- package/package.json +1 -1
|
@@ -1,93 +1,93 @@
|
|
|
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, getCurrentInstance as u, guardReactiveProps as d, h as f, inject as p, isRef as m, mergeDefaults as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, openBlock as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDynamicComponent as O, shallowRef as k, toDisplayString as A, toRaw as j, toRefs 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, getCurrentInstance as u, guardReactiveProps as d, h as f, inject as p, isRef as m, mergeDefaults as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, openBlock as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDynamicComponent as O, shallowRef as k, toDisplayString as A, toRaw as j, toRefs as ee, toValue as M, unref as N, useCssVars as P, useId as F, watch as I, watchEffect as L, withCtx as R, withKeys as z, withModifiers as B } from "vue";
|
|
2
2
|
import { CachedIcon as V } from "vue-cached-icon";
|
|
3
3
|
import H from "vue-markdown-render";
|
|
4
4
|
import U, { Action as te, ExecuteAction as W, ValidationError as G } from "@dynamicforms/vue-forms";
|
|
5
|
-
import { castArray as ne, clone as re, first as
|
|
5
|
+
import { castArray as ne, clone as re, first as K, isArray as ie, isBoolean as q, isEmpty as J, isEqual as ae, isNaN as oe, isObjectLike as se, isPlainObject as ce, isString as Y, toNumber as X, unionBy as le } from "lodash-es";
|
|
6
|
+
import { useDisplay as ue } from "vuetify";
|
|
6
7
|
import { createTranslatable as de } from "@dynamicforms/translatable";
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import ge from "@tiptap/extension-
|
|
10
|
-
import _e from "@tiptap/extension-
|
|
11
|
-
import
|
|
12
|
-
import ye from "@tiptap/extension-table-
|
|
13
|
-
import be from "@tiptap/extension-table-
|
|
14
|
-
import xe from "@tiptap/extension-
|
|
15
|
-
import Se from "@tiptap/
|
|
16
|
-
import
|
|
17
|
-
import we from "@tiptap/
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import Pe from "
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import { VTimePicker as dt } from "vuetify/components/VTimePicker";
|
|
8
|
+
import { format as fe, parse as pe, parseISO as me } from "date-fns";
|
|
9
|
+
import he from "@tiptap/extension-image";
|
|
10
|
+
import ge from "@tiptap/extension-placeholder";
|
|
11
|
+
import { Table as _e } from "@tiptap/extension-table";
|
|
12
|
+
import ve from "@tiptap/extension-table-cell";
|
|
13
|
+
import ye from "@tiptap/extension-table-header";
|
|
14
|
+
import be from "@tiptap/extension-table-row";
|
|
15
|
+
import xe from "@tiptap/extension-text-align";
|
|
16
|
+
import { NodeSelection as Se } from "@tiptap/pm/state";
|
|
17
|
+
import Ce from "@tiptap/starter-kit";
|
|
18
|
+
import { EditorContent as we, useEditor as Te } from "@tiptap/vue-3";
|
|
19
|
+
import { BubbleMenu as Ee } from "@tiptap/vue-3/menus";
|
|
20
|
+
import { Extension as De, Mark as Oe, Node as ke, mergeAttributes as Ae } from "@tiptap/core";
|
|
21
|
+
import { Fragment as je, Slice as Me } from "@tiptap/pm/model";
|
|
22
|
+
import Ne from "@tiptap/extension-link";
|
|
23
|
+
import { VAutocomplete as Pe } from "vuetify/components/VAutocomplete";
|
|
24
|
+
import { VBtn as Fe } from "vuetify/components/VBtn";
|
|
25
|
+
import { VBtnGroup as Ie } from "vuetify/components/VBtnGroup";
|
|
26
|
+
import { VBtnToggle as Le } from "vuetify/components/VBtnToggle";
|
|
27
|
+
import { VCard as Re, VCardActions as ze } from "vuetify/components/VCard";
|
|
28
|
+
import { VCheckbox as Be } from "vuetify/components/VCheckbox";
|
|
29
|
+
import { VChip as Ve } from "vuetify/components/VChip";
|
|
30
|
+
import { VCombobox as He } from "vuetify/components/VCombobox";
|
|
31
|
+
import { VColorPicker as Ue } from "vuetify/components/VColorPicker";
|
|
32
|
+
import { VConfirmEdit as We } from "vuetify/components/VConfirmEdit";
|
|
33
|
+
import { VDatePicker as Ge } from "vuetify/components/VDatePicker";
|
|
34
|
+
import { VDivider as Ke } from "vuetify/components/VDivider";
|
|
35
|
+
import { VField as qe } from "vuetify/components/VField";
|
|
36
|
+
import { VFileInput as Je } from "vuetify/components/VFileInput";
|
|
37
|
+
import { VCol as Ye, VRow as Xe } from "vuetify/components/VGrid";
|
|
38
|
+
import { VIcon as Ze } from "vuetify/components/VIcon";
|
|
39
|
+
import { VImg as Qe } from "vuetify/components/VImg";
|
|
40
|
+
import { VInput as $e } from "vuetify/components/VInput";
|
|
41
|
+
import { VList as et, VListItem as tt, VListItemTitle as nt } from "vuetify/components/VList";
|
|
42
|
+
import { VMenu as rt } from "vuetify/components/VMenu";
|
|
43
|
+
import { VNumberInput as it } from "vuetify/components/VNumberInput";
|
|
44
|
+
import { VProgressLinear as at } from "vuetify/components/VProgressLinear";
|
|
45
|
+
import { VSelect as ot } from "vuetify/components/VSelect";
|
|
46
|
+
import { VSwitch as st } from "vuetify/components/VSwitch";
|
|
47
|
+
import { VTextarea as ct } from "vuetify/components/VTextarea";
|
|
48
|
+
import { VTextField as lt } from "vuetify/components/VTextField";
|
|
49
|
+
import { VTimePicker as ut } from "vuetify/components/VTimePicker";
|
|
50
50
|
//#region \0rolldown/runtime.js
|
|
51
|
-
var
|
|
51
|
+
var dt = Object.defineProperty, ft = (e, t) => {
|
|
52
52
|
let n = {};
|
|
53
|
-
for (var r in e)
|
|
53
|
+
for (var r in e) dt(n, r, {
|
|
54
54
|
get: e[r],
|
|
55
55
|
enumerable: !0
|
|
56
56
|
});
|
|
57
|
-
return t ||
|
|
57
|
+
return t || dt(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
58
58
|
};
|
|
59
59
|
//#endregion
|
|
60
60
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/typeof.js
|
|
61
|
-
function
|
|
61
|
+
function pt(e) {
|
|
62
62
|
"@babel/helpers - typeof";
|
|
63
|
-
return
|
|
63
|
+
return pt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
64
64
|
return typeof e;
|
|
65
65
|
} : function(e) {
|
|
66
66
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
67
|
-
},
|
|
67
|
+
}, pt(e);
|
|
68
68
|
}
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPrimitive.js
|
|
71
|
-
function
|
|
72
|
-
if (
|
|
71
|
+
function mt(e, t) {
|
|
72
|
+
if (pt(e) != "object" || !e) return e;
|
|
73
73
|
var n = e[Symbol.toPrimitive];
|
|
74
74
|
if (n !== void 0) {
|
|
75
75
|
var r = n.call(e, t || "default");
|
|
76
|
-
if (
|
|
76
|
+
if (pt(r) != "object") return r;
|
|
77
77
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
78
78
|
}
|
|
79
79
|
return (t === "string" ? String : Number)(e);
|
|
80
80
|
}
|
|
81
81
|
//#endregion
|
|
82
82
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPropertyKey.js
|
|
83
|
-
function
|
|
84
|
-
var t =
|
|
85
|
-
return
|
|
83
|
+
function ht(e) {
|
|
84
|
+
var t = mt(e, "string");
|
|
85
|
+
return pt(t) == "symbol" ? t : t + "";
|
|
86
86
|
}
|
|
87
87
|
//#endregion
|
|
88
88
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/defineProperty.js
|
|
89
|
-
function
|
|
90
|
-
return (t =
|
|
89
|
+
function Z(e, t, n) {
|
|
90
|
+
return (t = ht(t)) in e ? Object.defineProperty(e, t, {
|
|
91
91
|
value: n,
|
|
92
92
|
enumerable: !0,
|
|
93
93
|
configurable: !0,
|
|
@@ -96,7 +96,7 @@ function X(e, t, n) {
|
|
|
96
96
|
}
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/objectSpread2.js
|
|
99
|
-
function
|
|
99
|
+
function gt(e, t) {
|
|
100
100
|
var n = Object.keys(e);
|
|
101
101
|
if (Object.getOwnPropertySymbols) {
|
|
102
102
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -106,12 +106,12 @@ function _t(e, t) {
|
|
|
106
106
|
}
|
|
107
107
|
return n;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Q(e) {
|
|
110
110
|
for (var t = 1; t < arguments.length; t++) {
|
|
111
111
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
112
|
-
t % 2 ?
|
|
113
|
-
|
|
114
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
112
|
+
t % 2 ? gt(Object(n), !0).forEach(function(t) {
|
|
113
|
+
Z(e, t, n[t]);
|
|
114
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : gt(Object(n)).forEach(function(t) {
|
|
115
115
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
116
116
|
});
|
|
117
117
|
}
|
|
@@ -119,10 +119,10 @@ function Z(e) {
|
|
|
119
119
|
}
|
|
120
120
|
//#endregion
|
|
121
121
|
//#region node_modules/date-fns/locale/sl/_lib/formatDistance.js
|
|
122
|
-
function
|
|
122
|
+
function _t(e) {
|
|
123
123
|
return e.one !== void 0;
|
|
124
124
|
}
|
|
125
|
-
var
|
|
125
|
+
var vt = {
|
|
126
126
|
lessThanXSeconds: {
|
|
127
127
|
present: {
|
|
128
128
|
one: "manj kot {{count}} sekunda",
|
|
@@ -397,7 +397,7 @@ var yt = {
|
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
};
|
|
400
|
-
function
|
|
400
|
+
function yt(e) {
|
|
401
401
|
switch (e % 100) {
|
|
402
402
|
case 1: return "one";
|
|
403
403
|
case 2: return "two";
|
|
@@ -406,27 +406,27 @@ function bt(e) {
|
|
|
406
406
|
default: return "other";
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
var
|
|
409
|
+
var bt = (e, t, n) => {
|
|
410
410
|
let r = "", i = "present";
|
|
411
411
|
n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (i = "future", r = "čez ") : (i = "past", r = "pred "));
|
|
412
|
-
let a =
|
|
412
|
+
let a = vt[e];
|
|
413
413
|
if (typeof a == "string") r += a;
|
|
414
414
|
else {
|
|
415
|
-
let e =
|
|
416
|
-
|
|
415
|
+
let e = yt(t);
|
|
416
|
+
_t(a) ? r += a[e].replace("{{count}}", String(t)) : r += a[i][e].replace("{{count}}", String(t));
|
|
417
417
|
}
|
|
418
418
|
return r;
|
|
419
419
|
};
|
|
420
420
|
//#endregion
|
|
421
421
|
//#region node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
422
|
-
function
|
|
422
|
+
function xt(e) {
|
|
423
423
|
return (t = {}) => {
|
|
424
424
|
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
425
425
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
426
426
|
};
|
|
427
427
|
}
|
|
428
|
-
var
|
|
429
|
-
date:
|
|
428
|
+
var St = {
|
|
429
|
+
date: xt({
|
|
430
430
|
formats: {
|
|
431
431
|
full: "EEEE, dd. MMMM y",
|
|
432
432
|
long: "dd. MMMM y",
|
|
@@ -435,7 +435,7 @@ var Ct = {
|
|
|
435
435
|
},
|
|
436
436
|
defaultWidth: "full"
|
|
437
437
|
}),
|
|
438
|
-
time:
|
|
438
|
+
time: xt({
|
|
439
439
|
formats: {
|
|
440
440
|
full: "HH:mm:ss zzzz",
|
|
441
441
|
long: "HH:mm:ss z",
|
|
@@ -444,7 +444,7 @@ var Ct = {
|
|
|
444
444
|
},
|
|
445
445
|
defaultWidth: "full"
|
|
446
446
|
}),
|
|
447
|
-
dateTime:
|
|
447
|
+
dateTime: xt({
|
|
448
448
|
formats: {
|
|
449
449
|
full: "{{date}} {{time}}",
|
|
450
450
|
long: "{{date}} {{time}}",
|
|
@@ -453,7 +453,7 @@ var Ct = {
|
|
|
453
453
|
},
|
|
454
454
|
defaultWidth: "full"
|
|
455
455
|
})
|
|
456
|
-
},
|
|
456
|
+
}, Ct = {
|
|
457
457
|
lastWeek: (e) => {
|
|
458
458
|
switch (e.getDay()) {
|
|
459
459
|
case 0: return "'prejšnjo nedeljo ob' p";
|
|
@@ -474,13 +474,13 @@ var Ct = {
|
|
|
474
474
|
}
|
|
475
475
|
},
|
|
476
476
|
other: "P"
|
|
477
|
-
},
|
|
478
|
-
let i =
|
|
477
|
+
}, wt = (e, t, n, r) => {
|
|
478
|
+
let i = Ct[e];
|
|
479
479
|
return typeof i == "function" ? i(t) : i;
|
|
480
480
|
};
|
|
481
481
|
//#endregion
|
|
482
482
|
//#region node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
483
|
-
function
|
|
483
|
+
function Tt(e) {
|
|
484
484
|
return (t, n) => {
|
|
485
485
|
let r = n != null && n.context ? String(n.context) : "standalone", i;
|
|
486
486
|
if (r === "formatting" && e.formattingValues) {
|
|
@@ -494,9 +494,9 @@ function Et(e) {
|
|
|
494
494
|
return i[a];
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
|
-
var
|
|
497
|
+
var Et = {
|
|
498
498
|
ordinalNumber: (e, t) => Number(e) + ".",
|
|
499
|
-
era:
|
|
499
|
+
era: Tt({
|
|
500
500
|
values: {
|
|
501
501
|
narrow: ["pr. n. št.", "po n. št."],
|
|
502
502
|
abbreviated: ["pr. n. št.", "po n. št."],
|
|
@@ -504,7 +504,7 @@ var Dt = {
|
|
|
504
504
|
},
|
|
505
505
|
defaultWidth: "wide"
|
|
506
506
|
}),
|
|
507
|
-
quarter:
|
|
507
|
+
quarter: Tt({
|
|
508
508
|
values: {
|
|
509
509
|
narrow: [
|
|
510
510
|
"1",
|
|
@@ -528,7 +528,7 @@ var Dt = {
|
|
|
528
528
|
defaultWidth: "wide",
|
|
529
529
|
argumentCallback: (e) => e - 1
|
|
530
530
|
}),
|
|
531
|
-
month:
|
|
531
|
+
month: Tt({
|
|
532
532
|
values: {
|
|
533
533
|
narrow: [
|
|
534
534
|
"j",
|
|
@@ -575,7 +575,7 @@ var Dt = {
|
|
|
575
575
|
},
|
|
576
576
|
defaultWidth: "wide"
|
|
577
577
|
}),
|
|
578
|
-
day:
|
|
578
|
+
day: Tt({
|
|
579
579
|
values: {
|
|
580
580
|
narrow: [
|
|
581
581
|
"n",
|
|
@@ -616,7 +616,7 @@ var Dt = {
|
|
|
616
616
|
},
|
|
617
617
|
defaultWidth: "wide"
|
|
618
618
|
}),
|
|
619
|
-
dayPeriod:
|
|
619
|
+
dayPeriod: Tt({
|
|
620
620
|
values: {
|
|
621
621
|
narrow: {
|
|
622
622
|
am: "d",
|
|
@@ -687,11 +687,11 @@ var Dt = {
|
|
|
687
687
|
};
|
|
688
688
|
//#endregion
|
|
689
689
|
//#region node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
690
|
-
function
|
|
690
|
+
function Dt(e) {
|
|
691
691
|
return (t, n = {}) => {
|
|
692
692
|
let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
|
|
693
693
|
if (!a) return null;
|
|
694
|
-
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ?
|
|
694
|
+
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? kt(s, (e) => e.test(o)) : Ot(s, (e) => e.test(o)), l;
|
|
695
695
|
l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
|
|
696
696
|
let u = t.slice(o.length);
|
|
697
697
|
return {
|
|
@@ -700,15 +700,15 @@ function Ot(e) {
|
|
|
700
700
|
};
|
|
701
701
|
};
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function Ot(e, t) {
|
|
704
704
|
for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function kt(e, t) {
|
|
707
707
|
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
708
708
|
}
|
|
709
709
|
//#endregion
|
|
710
710
|
//#region node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
711
|
-
function
|
|
711
|
+
function At(e) {
|
|
712
712
|
return (t, n = {}) => {
|
|
713
713
|
let r = t.match(e.matchPattern);
|
|
714
714
|
if (!r) return null;
|
|
@@ -725,19 +725,19 @@ function jt(e) {
|
|
|
725
725
|
}
|
|
726
726
|
//#endregion
|
|
727
727
|
//#region node_modules/date-fns/locale/sl.js
|
|
728
|
-
var
|
|
728
|
+
var jt = {
|
|
729
729
|
code: "sl",
|
|
730
|
-
formatDistance:
|
|
731
|
-
formatLong:
|
|
732
|
-
formatRelative:
|
|
733
|
-
localize:
|
|
730
|
+
formatDistance: bt,
|
|
731
|
+
formatLong: St,
|
|
732
|
+
formatRelative: wt,
|
|
733
|
+
localize: Et,
|
|
734
734
|
match: {
|
|
735
|
-
ordinalNumber:
|
|
735
|
+
ordinalNumber: At({
|
|
736
736
|
matchPattern: /^(\d+)\./i,
|
|
737
737
|
parsePattern: /\d+/i,
|
|
738
738
|
valueCallback: (e) => parseInt(e, 10)
|
|
739
739
|
}),
|
|
740
|
-
era:
|
|
740
|
+
era: Dt({
|
|
741
741
|
matchPatterns: {
|
|
742
742
|
abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
|
|
743
743
|
wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
|
|
@@ -746,7 +746,7 @@ var Mt = {
|
|
|
746
746
|
parsePatterns: { any: [/^pr/i, /^(po|na[sš]em)/i] },
|
|
747
747
|
defaultParseWidth: "any"
|
|
748
748
|
}),
|
|
749
|
-
quarter:
|
|
749
|
+
quarter: Dt({
|
|
750
750
|
matchPatterns: {
|
|
751
751
|
narrow: /^[1234]/i,
|
|
752
752
|
abbreviated: /^[1234]\.\s?[čc]et\.?/i,
|
|
@@ -762,7 +762,7 @@ var Mt = {
|
|
|
762
762
|
defaultParseWidth: "any",
|
|
763
763
|
valueCallback: (e) => e + 1
|
|
764
764
|
}),
|
|
765
|
-
month:
|
|
765
|
+
month: Dt({
|
|
766
766
|
matchPatterns: {
|
|
767
767
|
narrow: /^[jfmasond]/i,
|
|
768
768
|
abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,
|
|
@@ -815,7 +815,7 @@ var Mt = {
|
|
|
815
815
|
},
|
|
816
816
|
defaultParseWidth: "wide"
|
|
817
817
|
}),
|
|
818
|
-
day:
|
|
818
|
+
day: Dt({
|
|
819
819
|
matchPatterns: {
|
|
820
820
|
narrow: /^[nptsčc]/i,
|
|
821
821
|
short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
@@ -845,7 +845,7 @@ var Mt = {
|
|
|
845
845
|
},
|
|
846
846
|
defaultParseWidth: "any"
|
|
847
847
|
}),
|
|
848
|
-
dayPeriod:
|
|
848
|
+
dayPeriod: Dt({
|
|
849
849
|
matchPatterns: {
|
|
850
850
|
narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
|
|
851
851
|
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
|
|
@@ -880,65 +880,65 @@ var Mt = {
|
|
|
880
880
|
weekStartsOn: 1,
|
|
881
881
|
firstWeekContainsDate: 1
|
|
882
882
|
}
|
|
883
|
-
},
|
|
884
|
-
dateTimeLocale: w(
|
|
883
|
+
}, Mt = {
|
|
884
|
+
dateTimeLocale: w(jt),
|
|
885
885
|
setDateTimeLocale(e) {
|
|
886
886
|
m(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
|
|
887
887
|
}
|
|
888
|
-
},
|
|
888
|
+
}, Nt = class extends Error {
|
|
889
889
|
constructor(e) {
|
|
890
|
-
super(e),
|
|
890
|
+
super(e), Z(this, "errorText", void 0), this.errorText = e;
|
|
891
891
|
}
|
|
892
|
-
},
|
|
892
|
+
}, Pt = class extends String {
|
|
893
893
|
constructor(e, t, n) {
|
|
894
|
-
super(e),
|
|
894
|
+
super(e), Z(this, "plugins", void 0), Z(this, "options", void 0), this.plugins = n, this.options = t;
|
|
895
895
|
}
|
|
896
|
-
},
|
|
897
|
-
function
|
|
898
|
-
let t =
|
|
896
|
+
}, Ft = class extends String {};
|
|
897
|
+
function It(e) {
|
|
898
|
+
let t = N(e);
|
|
899
899
|
return typeof t == "object" && !!t && "componentName" in t;
|
|
900
900
|
}
|
|
901
|
-
function
|
|
902
|
-
return typeof e == "string" || e instanceof String ||
|
|
901
|
+
function Lt(e) {
|
|
902
|
+
return typeof e == "string" || e instanceof String || It(e);
|
|
903
903
|
}
|
|
904
|
-
var
|
|
904
|
+
var Rt = RegExp(`</?(?:${(/* @__PURE__ */ "address.article.aside.blockquote.br.dd.div.dl.dt.figcaption.figure.footer.h[1-6].header.hr.li.main.nav.ol.p.pre.section.table.td.th.tr.ul".split(".")).join("|")})\\b[^>]*>`, "gi"), zt = "", Bt = {
|
|
905
905
|
"<": "<",
|
|
906
906
|
">": ">",
|
|
907
907
|
""": "\"",
|
|
908
908
|
"'": "'",
|
|
909
|
-
" ":
|
|
909
|
+
" ": zt,
|
|
910
910
|
"&": "&"
|
|
911
911
|
};
|
|
912
|
-
function
|
|
913
|
-
if (e instanceof
|
|
914
|
-
let t = e.toString().replace(
|
|
915
|
-
return Object.entries(
|
|
912
|
+
function Vt(e) {
|
|
913
|
+
if (e instanceof Ft) {
|
|
914
|
+
let t = e.toString().replace(Rt, " ").replace(/<[^>]*>/g, "").replace(/\s+/g, " ");
|
|
915
|
+
return Object.entries(Bt).reduce((e, [t, n]) => e.replaceAll(t, n), t);
|
|
916
916
|
}
|
|
917
|
-
return
|
|
917
|
+
return It(e) ? Ut(e).map(Vt).join("") : e.toString();
|
|
918
918
|
}
|
|
919
|
-
function
|
|
920
|
-
return !(e instanceof
|
|
919
|
+
function Ht(e) {
|
|
920
|
+
return !(e instanceof Ft) && !It(e) ? e.toString() : Vt(e).replace(/\s+/g, " ").trim().replaceAll(zt, " ");
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function Ut(e) {
|
|
923
923
|
let { children: t } = e;
|
|
924
924
|
return t === void 0 ? [] : Array.isArray(t) ? t : [t];
|
|
925
925
|
}
|
|
926
|
-
function
|
|
927
|
-
return typeof
|
|
926
|
+
function Wt(e) {
|
|
927
|
+
return typeof N(e) == "function";
|
|
928
928
|
}
|
|
929
|
-
var
|
|
929
|
+
var Gt = class {
|
|
930
930
|
constructor(e = "", n = "") {
|
|
931
|
-
|
|
931
|
+
Z(this, "content", void 0), Z(this, "classes", void 0), Z(this, "kindRef", void 0), this.content = e, this.classes = n, this.kindRef = t(() => {
|
|
932
932
|
let e = this.resolvedText;
|
|
933
|
-
return e instanceof
|
|
933
|
+
return e instanceof Pt ? "md" : e instanceof Ft ? "html" : It(e) ? "component" : "string";
|
|
934
934
|
});
|
|
935
935
|
}
|
|
936
936
|
get resolvedText() {
|
|
937
|
-
let e =
|
|
938
|
-
return
|
|
937
|
+
let e = N(this.content);
|
|
938
|
+
return Wt(e) ? e() : e;
|
|
939
939
|
}
|
|
940
940
|
get kind() {
|
|
941
|
-
return
|
|
941
|
+
return N(this.kindRef);
|
|
942
942
|
}
|
|
943
943
|
get componentName() {
|
|
944
944
|
switch (this.kind) {
|
|
@@ -959,14 +959,14 @@ var Kt = class {
|
|
|
959
959
|
};
|
|
960
960
|
}
|
|
961
961
|
case "component": {
|
|
962
|
-
let e =
|
|
962
|
+
let e = Q({}, this.resolvedText.componentProps);
|
|
963
963
|
return delete e.innerHTML, e;
|
|
964
964
|
}
|
|
965
965
|
default: return {};
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
968
|
get componentChildren() {
|
|
969
|
-
return this.kind === "component" ?
|
|
969
|
+
return this.kind === "component" ? Ut(this.resolvedText) : [];
|
|
970
970
|
}
|
|
971
971
|
get componentBody() {
|
|
972
972
|
switch (this.kind) {
|
|
@@ -981,12 +981,12 @@ var Kt = class {
|
|
|
981
981
|
};
|
|
982
982
|
//#endregion
|
|
983
983
|
//#region src/helpers/error-text.ts
|
|
984
|
-
function
|
|
984
|
+
function Kt(e) {
|
|
985
985
|
var t;
|
|
986
|
-
return
|
|
986
|
+
return Lt(e) ? {
|
|
987
987
|
code: "",
|
|
988
988
|
params: {},
|
|
989
|
-
detail:
|
|
989
|
+
detail: Ht(e),
|
|
990
990
|
origin: "application"
|
|
991
991
|
} : {
|
|
992
992
|
code: typeof e.code == "string" ? e.code : "",
|
|
@@ -995,31 +995,31 @@ function qt(e) {
|
|
|
995
995
|
origin: typeof e.origin == "string" && e.origin ? e.origin : "application"
|
|
996
996
|
};
|
|
997
997
|
}
|
|
998
|
-
function
|
|
998
|
+
function qt(e, t) {
|
|
999
999
|
var n, r;
|
|
1000
|
-
if (
|
|
1001
|
-
let i =
|
|
1000
|
+
if (Lt(e)) return e;
|
|
1001
|
+
let i = Kt(e);
|
|
1002
1002
|
return i.code ? (n = (r = t.errorText) == null ? void 0 : r.call(t, i)) == null ? i.detail : n : i.detail;
|
|
1003
1003
|
}
|
|
1004
1004
|
//#endregion
|
|
1005
1005
|
//#region src/helpers/settings.ts
|
|
1006
|
-
var
|
|
1006
|
+
var Jt = Symbol("vuetifyInputsSettingsKey"), Yt = /* @__PURE__ */ l({
|
|
1007
1007
|
__name: "messages-widget",
|
|
1008
1008
|
props: {
|
|
1009
1009
|
message: {},
|
|
1010
1010
|
classes: {}
|
|
1011
1011
|
},
|
|
1012
1012
|
setup(e) {
|
|
1013
|
-
let t = e, r = p(
|
|
1013
|
+
let t = e, r = p(Jt, {}), i = /* @__PURE__ */ new Set(/* @__PURE__ */ "div.span.p.h1.h2.h3.h4.h5.h6.section.article.aside.nav.header.footer.main.figure.figcaption.blockquote.pre.code.em.strong.small.mark.del.ins.sub.sup.i.b.u.s.a.img.button.input.textarea.select.option.label.form.table.tr.td.th.thead.tbody.tfoot.ul.ol.li.dl.dt.dd".split("."));
|
|
1014
1014
|
function a(e) {
|
|
1015
|
-
return e instanceof
|
|
1015
|
+
return e instanceof Gt ? e : new Gt(qt(e, r));
|
|
1016
1016
|
}
|
|
1017
1017
|
function o(e, t, n) {
|
|
1018
1018
|
let r = () => n.map(s);
|
|
1019
1019
|
return i.has(e.toLowerCase()) ? f(e, t, r()) : f(D(e), t, n.length ? { default: r } : void 0);
|
|
1020
1020
|
}
|
|
1021
1021
|
function s(e) {
|
|
1022
|
-
let t = new
|
|
1022
|
+
let t = new Gt(e);
|
|
1023
1023
|
switch (t.componentName) {
|
|
1024
1024
|
case "template": return t.componentBody;
|
|
1025
1025
|
case "html": return f("span", { innerHTML: t.componentBody });
|
|
@@ -1052,12 +1052,12 @@ var Yt = Symbol("vuetifyInputsSettingsKey"), Xt = /* @__PURE__ */ l({
|
|
|
1052
1052
|
plugins: i
|
|
1053
1053
|
});
|
|
1054
1054
|
}
|
|
1055
|
-
default: return o(n.componentName,
|
|
1055
|
+
default: return o(n.componentName, Q(Q({}, n.componentBindings), {}, { class: [r, n.componentBindings.class] }), n.componentChildren);
|
|
1056
1056
|
}
|
|
1057
1057
|
});
|
|
1058
1058
|
return (e, t) => (C(), n(c));
|
|
1059
1059
|
}
|
|
1060
|
-
}),
|
|
1060
|
+
}), $ = /* @__PURE__ */ l({
|
|
1061
1061
|
__name: "df-input-hint",
|
|
1062
1062
|
props: {
|
|
1063
1063
|
errors: { default: "" },
|
|
@@ -1077,14 +1077,14 @@ var Yt = Symbol("vuetifyInputsSettingsKey"), Xt = /* @__PURE__ */ l({
|
|
|
1077
1077
|
let r = e, i = t(() => r.errors ? typeof r.errors == "string" ? r.errors.trim().length > 0 : r.errors.length > 0 : !1), a = t(() => {
|
|
1078
1078
|
if (i.value) return r.errors;
|
|
1079
1079
|
let e = r.message;
|
|
1080
|
-
return typeof e == "string" || Array.isArray(e) ? e : [new
|
|
1080
|
+
return typeof e == "string" || Array.isArray(e) ? e : [new Gt(e)];
|
|
1081
1081
|
}), o = t(() => i.value ? r.errorClasses : r.messageClasses);
|
|
1082
|
-
return (e, t) => (C(), n(
|
|
1082
|
+
return (e, t) => (C(), n(Yt, {
|
|
1083
1083
|
message: a.value,
|
|
1084
1084
|
classes: o.value
|
|
1085
1085
|
}, null, 8, ["message", "classes"]));
|
|
1086
1086
|
}
|
|
1087
|
-
}),
|
|
1087
|
+
}), Xt = /* @__PURE__ */ l({
|
|
1088
1088
|
__name: "df-label",
|
|
1089
1089
|
props: {
|
|
1090
1090
|
data: {},
|
|
@@ -1095,10 +1095,10 @@ var Yt = Symbol("vuetifyInputsSettingsKey"), Xt = /* @__PURE__ */ l({
|
|
|
1095
1095
|
let o = a, c = t(() => {
|
|
1096
1096
|
var e;
|
|
1097
1097
|
return o.label.text || ((e = o.data) == null ? void 0 : e.label) || "";
|
|
1098
|
-
}), l = t(() => new
|
|
1098
|
+
}), l = t(() => new Gt(c.value));
|
|
1099
1099
|
return (t, o) => {
|
|
1100
1100
|
let u = D("v-img");
|
|
1101
|
-
return C(), i("div", { class: v(["df-label", { "allow-wrap": a.allowWrap }]) }, [a.label.icon ? (C(), i(e, { key: 0 }, [a.label.iconComponent === "v-icon" ? (C(), n(
|
|
1101
|
+
return C(), i("div", { class: v(["df-label", { "allow-wrap": a.allowWrap }]) }, [a.label.icon ? (C(), i(e, { key: 0 }, [a.label.iconComponent === "v-icon" ? (C(), n(N(V), {
|
|
1102
1102
|
key: 0,
|
|
1103
1103
|
name: a.label.icon,
|
|
1104
1104
|
size: "1.25em"
|
|
@@ -1109,7 +1109,7 @@ var Yt = Symbol("vuetifyInputsSettingsKey"), Xt = /* @__PURE__ */ l({
|
|
|
1109
1109
|
}, null, 8, ["src"])) : (C(), n(O(a.label.iconComponent), {
|
|
1110
1110
|
key: 2,
|
|
1111
1111
|
src: a.label.icon
|
|
1112
|
-
}, null, 8, ["src"]))], 64)) : r("", !0), typeof c.value == "string" ? (C(), i(e, { key: 1 }, [s(A(c.value), 1)], 64)) : (C(), n(
|
|
1112
|
+
}, null, 8, ["src"]))], 64)) : r("", !0), typeof c.value == "string" ? (C(), i(e, { key: 1 }, [s(A(c.value), 1)], 64)) : (C(), n(Yt, {
|
|
1113
1113
|
key: 2,
|
|
1114
1114
|
message: [l.value]
|
|
1115
1115
|
}, null, 8, ["message"]))], 2);
|
|
@@ -1126,9 +1126,9 @@ function Zt(e, t, n, r) {
|
|
|
1126
1126
|
});
|
|
1127
1127
|
}
|
|
1128
1128
|
function Qt(e) {
|
|
1129
|
-
let n = p(
|
|
1129
|
+
let n = p(Jt, {});
|
|
1130
1130
|
return t(() => {
|
|
1131
|
-
let t =
|
|
1131
|
+
let t = M(e);
|
|
1132
1132
|
return t ? Zt(t.errors, t, t.touched, n) : [];
|
|
1133
1133
|
});
|
|
1134
1134
|
}
|
|
@@ -1136,14 +1136,14 @@ function Qt(e) {
|
|
|
1136
1136
|
//#region src/helpers/input-base.ts
|
|
1137
1137
|
var $t = class {
|
|
1138
1138
|
constructor(e, t, n = "v-icon") {
|
|
1139
|
-
|
|
1139
|
+
Z(this, "text", void 0), Z(this, "icon", void 0), Z(this, "iconComponent", void 0), this.text = e, this.icon = t, this.iconComponent = n;
|
|
1140
1140
|
}
|
|
1141
1141
|
}, en = {
|
|
1142
1142
|
enabled: void 0,
|
|
1143
1143
|
clearable: !0
|
|
1144
1144
|
};
|
|
1145
1145
|
function tn(e, n, r) {
|
|
1146
|
-
let i = p(
|
|
1146
|
+
let i = p(Jt, {}), a = p("field-density", null), o = p("field-variant", null), s = w(null), c = k(null), l = t({
|
|
1147
1147
|
get() {
|
|
1148
1148
|
return c.value ? c.value.value : e.control ? e.control.value : e.modelValue === void 0 ? s.value : e.modelValue;
|
|
1149
1149
|
},
|
|
@@ -1170,7 +1170,7 @@ function tn(e, n, r) {
|
|
|
1170
1170
|
var t;
|
|
1171
1171
|
let n = /* @__PURE__ */ new Map();
|
|
1172
1172
|
return ((t = e.errors) == null ? [] : t).forEach((e) => {
|
|
1173
|
-
let { code: t, params: r, detail: i, origin: a } =
|
|
1173
|
+
let { code: t, params: r, detail: i, origin: a } = Kt(e);
|
|
1174
1174
|
n.set(new G(t, r, i, a), e);
|
|
1175
1175
|
}), n;
|
|
1176
1176
|
}), h = t(() => {
|
|
@@ -1180,38 +1180,42 @@ function tn(e, n, r) {
|
|
|
1180
1180
|
var t;
|
|
1181
1181
|
return (t = m.value.get(e)) == null ? e : t;
|
|
1182
1182
|
})), v = t(() => g.value.length > 0 ? " " : void 0), y = t(() => e.control ? e.control.effectiveEnabled : e.enabled !== !1), b = t(() => {
|
|
1183
|
+
if (!e.control) return !y.value;
|
|
1184
|
+
let t = e.control.effectiveAccess;
|
|
1185
|
+
return t === "disabled" || t === "disabled-null";
|
|
1186
|
+
}), x = t(() => {
|
|
1183
1187
|
if (e.control) return e.control.visibility;
|
|
1184
1188
|
if (e.visibility == null) return U.defaultVisibility;
|
|
1185
1189
|
if (!U.isVisibility(e.visibility)) throw Error(`'${e.visibility}' is not a visibility: ${U.visibilityValues.join(", ")}`);
|
|
1186
1190
|
return e.visibility;
|
|
1187
|
-
}),
|
|
1188
|
-
"d-none":
|
|
1189
|
-
invisible:
|
|
1190
|
-
})),
|
|
1191
|
+
}), S = t(() => x.value !== "suppress"), C = t(() => ({
|
|
1192
|
+
"d-none": x.value === "hidden",
|
|
1193
|
+
invisible: x.value === "invisible"
|
|
1194
|
+
})), T = t(() => {
|
|
1191
1195
|
var t, n;
|
|
1192
1196
|
return (t = (n = e.control) == null ? void 0 : n.extra) == null ? {} : t;
|
|
1193
|
-
}),
|
|
1197
|
+
}), E = t(() => {
|
|
1194
1198
|
var t;
|
|
1195
|
-
let n = (t = e.label) == null ?
|
|
1199
|
+
let n = (t = e.label) == null ? T.value.label : t;
|
|
1196
1200
|
return n instanceof $t ? n : new $t(n == null ? "" : n);
|
|
1197
|
-
}), E = t(() => {
|
|
1198
|
-
var t, n;
|
|
1199
|
-
return (t = (n = e.placeholder) == null ? C.value.placeholder : n) == null ? "" : t;
|
|
1200
1201
|
}), D = t(() => {
|
|
1201
1202
|
var t, n;
|
|
1202
|
-
return (t = (n = e.
|
|
1203
|
+
return (t = (n = e.placeholder) == null ? T.value.placeholder : n) == null ? "" : t;
|
|
1203
1204
|
}), O = t(() => {
|
|
1204
1205
|
var t, n;
|
|
1205
|
-
return (t = (n = e.
|
|
1206
|
+
return (t = (n = e.helpText) == null ? T.value.helpText : n) == null ? "" : t;
|
|
1206
1207
|
}), A = t(() => {
|
|
1207
1208
|
var t, n;
|
|
1208
|
-
return (t = (n = e.
|
|
1209
|
+
return (t = (n = e.hint) == null ? T.value.hint : n) == null ? "" : t;
|
|
1210
|
+
}), ee = t(() => {
|
|
1211
|
+
var t, n;
|
|
1212
|
+
return (t = (n = e.cssClass) == null ? T.value.cssClass : n) == null ? "" : t;
|
|
1209
1213
|
}), M = t(() => {
|
|
1210
1214
|
var t, n, r, o;
|
|
1211
|
-
return (t = (n = (r = (o = e.density) == null ?
|
|
1215
|
+
return (t = (n = (r = (o = e.density) == null ? T.value.density : o) == null ? a : r) == null ? i.defaultDensity : n) == null ? "default" : t;
|
|
1212
1216
|
}), N = t(() => M.value === "inline" ? "default" : M.value), P = t(() => {
|
|
1213
1217
|
var t, n, r, a;
|
|
1214
|
-
return (t = (n = (r = (a = e.variant) == null ?
|
|
1218
|
+
return (t = (n = (r = (a = e.variant) == null ? T.value.variant : a) == null ? o : r) == null ? i.defaultVariant : n) == null ? "underlined" : t;
|
|
1215
1219
|
});
|
|
1216
1220
|
return {
|
|
1217
1221
|
value: l,
|
|
@@ -1219,30 +1223,30 @@ function tn(e, n, r) {
|
|
|
1219
1223
|
enabled: y,
|
|
1220
1224
|
errors: h,
|
|
1221
1225
|
shownErrors: g,
|
|
1222
|
-
visibility:
|
|
1223
|
-
isRendered:
|
|
1224
|
-
visibilityClass:
|
|
1225
|
-
label:
|
|
1226
|
+
visibility: x,
|
|
1227
|
+
isRendered: S,
|
|
1228
|
+
visibilityClass: C,
|
|
1229
|
+
label: E,
|
|
1226
1230
|
touched: d,
|
|
1227
1231
|
density: M,
|
|
1228
1232
|
densityClass: t(() => `df-density-${M.value}`),
|
|
1229
1233
|
vuetifyBindings: t(() => {
|
|
1230
1234
|
var t;
|
|
1231
|
-
return
|
|
1235
|
+
return Q({
|
|
1232
1236
|
name: (t = e.control) == null ? void 0 : t.fieldName,
|
|
1233
|
-
class:
|
|
1237
|
+
class: ee.value,
|
|
1234
1238
|
density: N.value,
|
|
1235
1239
|
variant: P.value,
|
|
1236
|
-
label:
|
|
1240
|
+
label: Ht(E.value.text),
|
|
1237
1241
|
errorMessages: v.value,
|
|
1238
1242
|
readonly: !y.value,
|
|
1239
|
-
disabled:
|
|
1240
|
-
placeholder:
|
|
1241
|
-
"persistent-placeholder": !
|
|
1242
|
-
hint:
|
|
1243
|
+
disabled: b.value,
|
|
1244
|
+
placeholder: D.value,
|
|
1245
|
+
"persistent-placeholder": !J(D.value),
|
|
1246
|
+
hint: A.value,
|
|
1243
1247
|
persistentHint: !0,
|
|
1244
1248
|
hideDetails: "auto",
|
|
1245
|
-
helpText:
|
|
1249
|
+
helpText: O.value
|
|
1246
1250
|
}, e.passthroughAttrs || {});
|
|
1247
1251
|
})
|
|
1248
1252
|
};
|
|
@@ -1274,42 +1278,42 @@ var nn = { class: "d-flex w-100 df-style-resetting df-sub-field" }, rn = /* @__P
|
|
|
1274
1278
|
"blur"
|
|
1275
1279
|
],
|
|
1276
1280
|
setup(e, { emit: i }) {
|
|
1277
|
-
let s = e, l = i, { isRendered: u, label: f, shownErrors: p, touched: m, value: h, visibilityClass: g, vuetifyBindings: _ } = tn(s, l), b = t(() => !!(
|
|
1281
|
+
let s = e, l = i, { isRendered: u, label: f, shownErrors: p, touched: m, value: h, visibilityClass: g, vuetifyBindings: _ } = tn(s, l), b = t(() => !!(N(s.clearable) && N(h) && !_.value.readonly)), x = w(!1);
|
|
1278
1282
|
function S(e) {
|
|
1279
1283
|
x.value = e, e || (m.value = !0, l("blur"));
|
|
1280
1284
|
}
|
|
1281
1285
|
return (t, i) => {
|
|
1282
1286
|
let s = D("v-field"), m = D("v-input");
|
|
1283
|
-
return
|
|
1287
|
+
return N(u) ? (C(), n(m, {
|
|
1284
1288
|
key: 0,
|
|
1285
|
-
name:
|
|
1286
|
-
density:
|
|
1287
|
-
hint:
|
|
1288
|
-
"persistent-hint":
|
|
1289
|
-
"hide-details":
|
|
1290
|
-
"error-messages":
|
|
1291
|
-
class: v([e.cssClass,
|
|
1289
|
+
name: N(_).name,
|
|
1290
|
+
density: N(_).density,
|
|
1291
|
+
hint: N(_).hint,
|
|
1292
|
+
"persistent-hint": N(_).persistentHint,
|
|
1293
|
+
"hide-details": N(_).hideDetails,
|
|
1294
|
+
"error-messages": N(_).errorMessages,
|
|
1295
|
+
class: v([e.cssClass, N(g)])
|
|
1292
1296
|
}, o({
|
|
1293
|
-
message: R(({ message: e }) => [c(
|
|
1297
|
+
message: R(({ message: e }) => [c($, {
|
|
1294
1298
|
message: e,
|
|
1295
|
-
errors:
|
|
1299
|
+
errors: N(p)
|
|
1296
1300
|
}, null, 8, ["message", "errors"])]),
|
|
1297
1301
|
default: R(() => [c(s, {
|
|
1298
|
-
variant:
|
|
1299
|
-
density:
|
|
1300
|
-
label:
|
|
1301
|
-
disabled:
|
|
1302
|
+
variant: N(_).variant,
|
|
1303
|
+
density: N(_).density,
|
|
1304
|
+
label: N(_).label,
|
|
1305
|
+
disabled: N(_).disabled,
|
|
1302
1306
|
clearable: b.value,
|
|
1303
1307
|
"persistent-clear": !0,
|
|
1304
|
-
dirty: !!
|
|
1308
|
+
dirty: !!N(h) || !!N(_).placeholder,
|
|
1305
1309
|
active: x.value,
|
|
1306
1310
|
loading: e.loading,
|
|
1307
1311
|
"onClick:clear": i[0] || (i[0] = (e) => l("click:clear")),
|
|
1308
1312
|
"onUpdate:focused": i[1] || (i[1] = (e) => S(e))
|
|
1309
1313
|
}, o({
|
|
1310
|
-
label: R((e) => [c(
|
|
1314
|
+
label: R((e) => [c(Xt, {
|
|
1311
1315
|
data: e,
|
|
1312
|
-
label:
|
|
1316
|
+
label: N(f)
|
|
1313
1317
|
}, null, 8, ["data", "label"])]),
|
|
1314
1318
|
default: R((e) => [a("div", nn, [E(t.$slots, "default", y(d(e)))])]),
|
|
1315
1319
|
loader: R((e) => [E(t.$slots, "loader", y(d(e)))]),
|
|
@@ -1344,100 +1348,21 @@ var nn = { class: "d-flex w-100 df-style-resetting df-sub-field" }, rn = /* @__P
|
|
|
1344
1348
|
])) : r("", !0);
|
|
1345
1349
|
};
|
|
1346
1350
|
}
|
|
1347
|
-
}), an =
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
Close: "Close",
|
|
1351
|
-
Cancel: "Cancel",
|
|
1352
|
-
Ok: "OK",
|
|
1353
|
-
Paragraph: "Paragraph",
|
|
1354
|
-
Heading1: "Heading 1",
|
|
1355
|
-
Heading2: "Heading 2",
|
|
1356
|
-
Heading3: "Heading 3",
|
|
1357
|
-
Heading4: "Heading 4",
|
|
1358
|
-
Heading5: "Heading 5",
|
|
1359
|
-
Heading6: "Heading 6",
|
|
1360
|
-
Downloadable: "Downloadable",
|
|
1361
|
-
ArticleCategory: "Article category",
|
|
1362
|
-
Title: "Title",
|
|
1363
|
-
Subtitle: "Subtitle",
|
|
1364
|
-
InfoBox: "Info box",
|
|
1365
|
-
SideQuote: "Side quote",
|
|
1366
|
-
Marker: "Marker",
|
|
1367
|
-
Spoiler: "Spoiler",
|
|
1368
|
-
CodeDark: "Code (dark)",
|
|
1369
|
-
CodeBright: "Code (bright)",
|
|
1370
|
-
Undo: "Undo",
|
|
1371
|
-
Redo: "Redo",
|
|
1372
|
-
SelectAll: "Select all",
|
|
1373
|
-
Bold: "Bold",
|
|
1374
|
-
Italic: "Italic",
|
|
1375
|
-
HorizontalLine: "Horizontal line",
|
|
1376
|
-
Blockquote: "Block quote",
|
|
1377
|
-
BulletedList: "Bulleted list",
|
|
1378
|
-
NumberedList: "Numbered list",
|
|
1379
|
-
Outdent: "Decrease indent",
|
|
1380
|
-
Indent: "Increase indent",
|
|
1381
|
-
AlignLeft: "Align left",
|
|
1382
|
-
AlignCenter: "Align center",
|
|
1383
|
-
AlignRight: "Align right",
|
|
1384
|
-
AlignJustify: "Justify",
|
|
1385
|
-
Link: "Link",
|
|
1386
|
-
LinkUrl: "URL",
|
|
1387
|
-
LinkApply: "Apply",
|
|
1388
|
-
LinkRemove: "Remove link",
|
|
1389
|
-
Image: "Image",
|
|
1390
|
-
ImageUrl: "Image URL",
|
|
1391
|
-
ImageUpload: "Upload image",
|
|
1392
|
-
ImageInsert: "Insert",
|
|
1393
|
-
ImageDropHint: "Drop image here or click to browse",
|
|
1394
|
-
ImageReplace: "Replace image",
|
|
1395
|
-
ImageDownload: "Download image",
|
|
1396
|
-
FileDownload: "Download file",
|
|
1397
|
-
Table: "Table",
|
|
1398
|
-
TableInsert: "Insert table",
|
|
1399
|
-
TableAddRowAbove: "Add row above",
|
|
1400
|
-
TableAddRowBelow: "Add row below",
|
|
1401
|
-
TableDeleteRow: "Delete row",
|
|
1402
|
-
TableAddColumnBefore: "Add column before",
|
|
1403
|
-
TableAddColumnAfter: "Add column after",
|
|
1404
|
-
TableDeleteColumn: "Delete column",
|
|
1405
|
-
TableToggleHeaderRow: "Toggle header row",
|
|
1406
|
-
TableDeleteTable: "Delete table",
|
|
1407
|
-
Style: "Style",
|
|
1408
|
-
MediaEmbed: "Insert media",
|
|
1409
|
-
MediaEmbedUrl: "Video URL",
|
|
1410
|
-
MediaEmbedInsert: "Insert"
|
|
1411
|
-
}, on = de(an), { translateStrings: sn } = on, cn = /* @__PURE__ */ new WeakMap();
|
|
1412
|
-
function ln(e) {
|
|
1413
|
-
if (!(e != null && e.translate)) return on;
|
|
1414
|
-
let t = cn.get(e);
|
|
1415
|
-
return t || (t = de(an), t.translateStrings(e.translate, e.translateNamespace), cn.set(e, t)), t;
|
|
1416
|
-
}
|
|
1417
|
-
function un(e, t) {
|
|
1418
|
-
return ln(u() ? p(Yt, {}) : void 0).translate(e, t);
|
|
1419
|
-
}
|
|
1420
|
-
function dn() {
|
|
1421
|
-
let e = ln(p(Yt, {}));
|
|
1422
|
-
return (t, n) => e.translate(t, n);
|
|
1423
|
-
}
|
|
1424
|
-
//#endregion
|
|
1425
|
-
//#region src/helpers/action/action-display-style.ts
|
|
1426
|
-
var fn = Object.freeze(["button", "text"]), pn = "button";
|
|
1427
|
-
function mn(e) {
|
|
1428
|
-
return fn.includes(e);
|
|
1351
|
+
}), an = Object.freeze(["button", "text"]), on = "button";
|
|
1352
|
+
function sn(e) {
|
|
1353
|
+
return an.includes(e);
|
|
1429
1354
|
}
|
|
1430
1355
|
//#endregion
|
|
1431
1356
|
//#region src/helpers/action/responsive-render-options.ts
|
|
1432
|
-
var
|
|
1357
|
+
var cn = [
|
|
1433
1358
|
"xs",
|
|
1434
1359
|
"sm",
|
|
1435
1360
|
"md",
|
|
1436
1361
|
"lg",
|
|
1437
1362
|
"xl"
|
|
1438
|
-
],
|
|
1363
|
+
], ln = class {
|
|
1439
1364
|
constructor(e) {
|
|
1440
|
-
|
|
1365
|
+
Z(this, "_value", void 0), this._value = this.cleanBreakpoint(e, !0), e && cn.forEach((t) => {
|
|
1441
1366
|
let n = this.cleanBreakpoint(e[t]);
|
|
1442
1367
|
n && (this._value[t] = n);
|
|
1443
1368
|
});
|
|
@@ -1445,51 +1370,51 @@ var hn = [
|
|
|
1445
1370
|
getOptionsForBreakpoint(e) {
|
|
1446
1371
|
var t;
|
|
1447
1372
|
let n = (t = this.cleanBreakpoint(this._value)) == null ? {} : t;
|
|
1448
|
-
for (let t of
|
|
1373
|
+
for (let t of cn) {
|
|
1449
1374
|
var r;
|
|
1450
1375
|
let i = (r = this._value[t]) == null ? {} : r;
|
|
1451
1376
|
for (let e of Object.keys(i)) {
|
|
1452
1377
|
let t = i[e];
|
|
1453
|
-
t != null && (n[e] =
|
|
1378
|
+
t != null && (n[e] = ce(t) ? Q(Q({}, n[e]), t) : t);
|
|
1454
1379
|
}
|
|
1455
1380
|
if (t === e) break;
|
|
1456
1381
|
}
|
|
1457
1382
|
return n;
|
|
1458
1383
|
}
|
|
1459
1384
|
};
|
|
1460
|
-
function
|
|
1385
|
+
function un(e) {
|
|
1461
1386
|
return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
|
|
1462
1387
|
}
|
|
1463
|
-
function
|
|
1464
|
-
let e =
|
|
1465
|
-
return t(() =>
|
|
1388
|
+
function dn() {
|
|
1389
|
+
let e = ue();
|
|
1390
|
+
return t(() => un(e));
|
|
1466
1391
|
}
|
|
1467
1392
|
//#endregion
|
|
1468
1393
|
//#region src/helpers/action/action-render-options.ts
|
|
1469
|
-
var
|
|
1394
|
+
var fn = class extends ln {
|
|
1470
1395
|
cleanBreakpoint(e, t = !1) {
|
|
1471
|
-
if ((!e || !
|
|
1396
|
+
if ((!e || !se(e)) && !t) return null;
|
|
1472
1397
|
let n = {};
|
|
1473
|
-
if (t && (n.renderAs =
|
|
1398
|
+
if (t && (n.renderAs = on, n.showLabel = !0, n.showIcon = !0), e) {
|
|
1474
1399
|
if (e.renderAs != null) {
|
|
1475
|
-
if (!
|
|
1400
|
+
if (!sn(e.renderAs)) throw Error(`'${e.renderAs}' is not an action display style: ${an.join(", ")}`);
|
|
1476
1401
|
n.renderAs = e.renderAs;
|
|
1477
1402
|
}
|
|
1478
|
-
let t =
|
|
1479
|
-
|
|
1403
|
+
let t = M(e.label);
|
|
1404
|
+
Y(t) && (n.label = t), Y(e.icon) && (n.icon = e.icon), q(e.showLabel) && (n.showLabel = e.showLabel), q(e.showIcon) && (n.showIcon = e.showIcon), Y(e.name) && (n.name = e.name), q(e.defaultConfirm) && (n.defaultConfirm = e.defaultConfirm), q(e.defaultReject) && (n.defaultReject = e.defaultReject), ce(e.passthroughAttrs) && (n.passthroughAttrs = Q({}, e.passthroughAttrs));
|
|
1480
1405
|
}
|
|
1481
1406
|
return Object.keys(n).length ? n : null;
|
|
1482
1407
|
}
|
|
1483
1408
|
};
|
|
1484
|
-
function
|
|
1485
|
-
let n = new
|
|
1409
|
+
function pn(e, t) {
|
|
1410
|
+
let n = new fn(e).getOptionsForBreakpoint(t), r = n.label;
|
|
1486
1411
|
return {
|
|
1487
1412
|
name: n.name,
|
|
1488
1413
|
label: n.showLabel ? r : void 0,
|
|
1489
1414
|
icon: n.showIcon ? n.icon : void 0,
|
|
1490
1415
|
renderAs: n.renderAs,
|
|
1491
|
-
showLabel:
|
|
1492
|
-
showIcon:
|
|
1416
|
+
showLabel: Y(r) && !J(r) ? n.showLabel : !1,
|
|
1417
|
+
showIcon: Y(n.icon) && !J(n.icon) ? n.showIcon : !1,
|
|
1493
1418
|
defaultConfirm: n.defaultConfirm,
|
|
1494
1419
|
defaultReject: n.defaultReject,
|
|
1495
1420
|
passthroughAttrs: n.passthroughAttrs
|
|
@@ -1497,12 +1422,12 @@ function bn(e, t) {
|
|
|
1497
1422
|
}
|
|
1498
1423
|
//#endregion
|
|
1499
1424
|
//#region src/helpers/action/action.ts
|
|
1500
|
-
var
|
|
1425
|
+
var mn = class extends te {
|
|
1501
1426
|
getBreakpointValue(e) {
|
|
1502
|
-
return t(() =>
|
|
1427
|
+
return t(() => pn(this.value, e.value));
|
|
1503
1428
|
}
|
|
1504
1429
|
get label() {
|
|
1505
|
-
return
|
|
1430
|
+
return M(this.value.label);
|
|
1506
1431
|
}
|
|
1507
1432
|
set label(e) {
|
|
1508
1433
|
super.label = e;
|
|
@@ -1511,17 +1436,17 @@ var xn = class e extends te {
|
|
|
1511
1436
|
return this.value.name;
|
|
1512
1437
|
}
|
|
1513
1438
|
get renderedLabel() {
|
|
1514
|
-
return this.value.showLabel ?
|
|
1439
|
+
return this.value.showLabel ? M(this.value.label) : void 0;
|
|
1515
1440
|
}
|
|
1516
1441
|
get showLabel() {
|
|
1517
|
-
let e =
|
|
1518
|
-
return
|
|
1442
|
+
let e = M(this.value.label);
|
|
1443
|
+
return Y(e) && !J(e) ? this.value.showLabel : !1;
|
|
1519
1444
|
}
|
|
1520
1445
|
get renderedIcon() {
|
|
1521
1446
|
return this.value.showIcon ? this.value.icon : void 0;
|
|
1522
1447
|
}
|
|
1523
1448
|
get showIcon() {
|
|
1524
|
-
return
|
|
1449
|
+
return Y(this.value.icon) && !J(this.value.icon) ? this.value.showIcon : !1;
|
|
1525
1450
|
}
|
|
1526
1451
|
get renderAs() {
|
|
1527
1452
|
return this.value.renderAs;
|
|
@@ -1529,47 +1454,84 @@ var xn = class e extends te {
|
|
|
1529
1454
|
get passthroughAttrs() {
|
|
1530
1455
|
return this.value.passthroughAttrs;
|
|
1531
1456
|
}
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1457
|
+
}, hn = {
|
|
1458
|
+
Cancel: "Cancel",
|
|
1459
|
+
Ok: "OK",
|
|
1460
|
+
Paragraph: "Paragraph",
|
|
1461
|
+
Heading1: "Heading 1",
|
|
1462
|
+
Heading2: "Heading 2",
|
|
1463
|
+
Heading3: "Heading 3",
|
|
1464
|
+
Heading4: "Heading 4",
|
|
1465
|
+
Heading5: "Heading 5",
|
|
1466
|
+
Heading6: "Heading 6",
|
|
1467
|
+
Downloadable: "Downloadable",
|
|
1468
|
+
ArticleCategory: "Article category",
|
|
1469
|
+
Title: "Title",
|
|
1470
|
+
Subtitle: "Subtitle",
|
|
1471
|
+
InfoBox: "Info box",
|
|
1472
|
+
SideQuote: "Side quote",
|
|
1473
|
+
Marker: "Marker",
|
|
1474
|
+
Spoiler: "Spoiler",
|
|
1475
|
+
CodeDark: "Code (dark)",
|
|
1476
|
+
CodeBright: "Code (bright)",
|
|
1477
|
+
Undo: "Undo",
|
|
1478
|
+
Redo: "Redo",
|
|
1479
|
+
SelectAll: "Select all",
|
|
1480
|
+
Bold: "Bold",
|
|
1481
|
+
Italic: "Italic",
|
|
1482
|
+
HorizontalLine: "Horizontal line",
|
|
1483
|
+
Blockquote: "Block quote",
|
|
1484
|
+
BulletedList: "Bulleted list",
|
|
1485
|
+
NumberedList: "Numbered list",
|
|
1486
|
+
Outdent: "Decrease indent",
|
|
1487
|
+
Indent: "Increase indent",
|
|
1488
|
+
AlignLeft: "Align left",
|
|
1489
|
+
AlignCenter: "Align center",
|
|
1490
|
+
AlignRight: "Align right",
|
|
1491
|
+
AlignJustify: "Justify",
|
|
1492
|
+
Link: "Link",
|
|
1493
|
+
LinkUrl: "URL",
|
|
1494
|
+
LinkApply: "Apply",
|
|
1495
|
+
LinkRemove: "Remove link",
|
|
1496
|
+
Image: "Image",
|
|
1497
|
+
ImageUrl: "Image URL",
|
|
1498
|
+
ImageUpload: "Upload image",
|
|
1499
|
+
ImageInsert: "Insert",
|
|
1500
|
+
ImageDropHint: "Drop image here or click to browse",
|
|
1501
|
+
ImageReplace: "Replace image",
|
|
1502
|
+
ImageDownload: "Download image",
|
|
1503
|
+
FileDownload: "Download file",
|
|
1504
|
+
Table: "Table",
|
|
1505
|
+
TableInsert: "Insert table",
|
|
1506
|
+
TableAddRowAbove: "Add row above",
|
|
1507
|
+
TableAddRowBelow: "Add row below",
|
|
1508
|
+
TableDeleteRow: "Delete row",
|
|
1509
|
+
TableAddColumnBefore: "Add column before",
|
|
1510
|
+
TableAddColumnAfter: "Add column after",
|
|
1511
|
+
TableDeleteColumn: "Delete column",
|
|
1512
|
+
TableToggleHeaderRow: "Toggle header row",
|
|
1513
|
+
TableDeleteTable: "Delete table",
|
|
1514
|
+
Style: "Style",
|
|
1515
|
+
MediaEmbed: "Insert media",
|
|
1516
|
+
MediaEmbedUrl: "Video URL",
|
|
1517
|
+
MediaEmbedInsert: "Insert"
|
|
1518
|
+
}, gn = de(hn), { translateStrings: _n } = gn, vn = /* @__PURE__ */ new WeakMap();
|
|
1519
|
+
function yn(e) {
|
|
1520
|
+
if (!(e != null && e.translate)) return gn;
|
|
1521
|
+
let t = vn.get(e);
|
|
1522
|
+
return t || (t = de(hn), t.translateStrings(e.translate, e.translateNamespace), vn.set(e, t)), t;
|
|
1523
|
+
}
|
|
1524
|
+
function bn(e, t) {
|
|
1525
|
+
return yn(u() ? p(Jt, {}) : void 0).translate(e, t);
|
|
1526
|
+
}
|
|
1527
|
+
function xn() {
|
|
1528
|
+
let e = yn(p(Jt, {}));
|
|
1529
|
+
return (t, n) => e.translate(t, n);
|
|
1530
|
+
}
|
|
1569
1531
|
//#endregion
|
|
1570
1532
|
//#region src/helpers/use-file-touch-keepalive.ts
|
|
1571
1533
|
function Sn(e, t, n, r) {
|
|
1572
|
-
let i = p(
|
|
1534
|
+
let i = p(Jt, {}), a = w(null);
|
|
1573
1535
|
function o() {
|
|
1574
1536
|
a.value && window.clearInterval(a.value);
|
|
1575
1537
|
}
|
|
@@ -1579,7 +1541,7 @@ function Sn(e, t, n, r) {
|
|
|
1579
1541
|
let l = (s = (c = n()) == null ? i.defaultTouchInterval : c) == null ? 6e4 : s;
|
|
1580
1542
|
a.value = window.setInterval(() => {
|
|
1581
1543
|
e.value && t().touch(e.value).catch((e) => {
|
|
1582
|
-
e instanceof
|
|
1544
|
+
e instanceof Nt && r(e.errorText);
|
|
1583
1545
|
});
|
|
1584
1546
|
}, l);
|
|
1585
1547
|
}
|
|
@@ -1605,7 +1567,7 @@ var wn = {
|
|
|
1605
1567
|
showAsGroup: { default: "no" }
|
|
1606
1568
|
},
|
|
1607
1569
|
setup(a) {
|
|
1608
|
-
let o = a, s =
|
|
1570
|
+
let o = a, s = dn(), c = t(() => N(o.actions).filter((e) => e.visibility !== "suppress")), l = t(() => c.value.map((e) => Q({ action: e }, pn(e.value, s.value))));
|
|
1609
1571
|
function u(e) {
|
|
1610
1572
|
if (e.defaultConfirm) return "primary";
|
|
1611
1573
|
if (e.defaultReject) return "secondary";
|
|
@@ -1622,7 +1584,7 @@ var wn = {
|
|
|
1622
1584
|
key: t,
|
|
1623
1585
|
variant: e.renderAs === "button" ? "tonal" : "text",
|
|
1624
1586
|
color: u(e),
|
|
1625
|
-
disabled: !e.action.
|
|
1587
|
+
disabled: !e.action.executable,
|
|
1626
1588
|
loading: e.action.busy,
|
|
1627
1589
|
elevation: 0,
|
|
1628
1590
|
size: a.buttonSize,
|
|
@@ -1633,7 +1595,7 @@ var wn = {
|
|
|
1633
1595
|
}
|
|
1634
1596
|
}, { ref_for: !0 }, e.passthroughAttrs, { onClick: B((t) => e.action.execute(t), ["stop"]) }), {
|
|
1635
1597
|
default: R(() => [
|
|
1636
|
-
e.icon ? (C(), n(
|
|
1598
|
+
e.icon ? (C(), n(N(V), {
|
|
1637
1599
|
key: 0,
|
|
1638
1600
|
name: e.icon
|
|
1639
1601
|
}, null, 8, ["name"])) : r("", !0),
|
|
@@ -1671,7 +1633,7 @@ var wn = {
|
|
|
1671
1633
|
passthroughAttrs: {},
|
|
1672
1634
|
density: {},
|
|
1673
1635
|
variant: {}
|
|
1674
|
-
},
|
|
1636
|
+
}, Q(Q({}, en), {}, { allowNull: !1 })),
|
|
1675
1637
|
emits: ["update:modelValue", "click:clear"],
|
|
1676
1638
|
setup(e, { emit: i }) {
|
|
1677
1639
|
let a = e, { densityClass: o, isRendered: s, label: l, shownErrors: u, touched: d, value: f, visibilityClass: p, vuetifyBindings: m } = tn(a, i), h = t(() => a.allowNull && f.value == null), _ = t({
|
|
@@ -1686,27 +1648,27 @@ var wn = {
|
|
|
1686
1648
|
}
|
|
1687
1649
|
return (e, t) => {
|
|
1688
1650
|
let i = D("v-checkbox");
|
|
1689
|
-
return
|
|
1651
|
+
return N(s) ? (C(), n(i, g({
|
|
1690
1652
|
key: 0,
|
|
1691
1653
|
modelValue: _.value,
|
|
1692
1654
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => _.value = e),
|
|
1693
1655
|
density: "compact",
|
|
1694
|
-
class: [
|
|
1656
|
+
class: [N(o), N(p)],
|
|
1695
1657
|
indeterminate: h.value,
|
|
1696
1658
|
"false-value": !1,
|
|
1697
1659
|
"true-value": !0
|
|
1698
|
-
},
|
|
1660
|
+
}, N(m), {
|
|
1699
1661
|
onChange: v,
|
|
1700
1662
|
onBlur: t[1] || (t[1] = (e) => d.value = !0)
|
|
1701
1663
|
}), {
|
|
1702
|
-
label: R((e) => [c(
|
|
1664
|
+
label: R((e) => [c(N(Xt), {
|
|
1703
1665
|
"allow-wrap": !0,
|
|
1704
1666
|
data: e,
|
|
1705
|
-
label:
|
|
1667
|
+
label: N(l)
|
|
1706
1668
|
}, null, 8, ["data", "label"])]),
|
|
1707
|
-
message: R(({ message: e }) => [c(
|
|
1669
|
+
message: R(({ message: e }) => [c(N($), {
|
|
1708
1670
|
message: e,
|
|
1709
|
-
errors:
|
|
1671
|
+
errors: N(u)
|
|
1710
1672
|
}, null, 8, ["message", "errors"])]),
|
|
1711
1673
|
_: 1
|
|
1712
1674
|
}, 16, [
|
|
@@ -1721,7 +1683,7 @@ var wn = {
|
|
|
1721
1683
|
//#region src/helpers/client-rendered.ts
|
|
1722
1684
|
function On() {
|
|
1723
1685
|
if (typeof window > "u") return k(!1);
|
|
1724
|
-
if (!
|
|
1686
|
+
if (!ue().ssr) return k(!0);
|
|
1725
1687
|
let e = k(!1);
|
|
1726
1688
|
return S(() => {
|
|
1727
1689
|
e.value = !0;
|
|
@@ -1741,12 +1703,12 @@ var kn = /* @__PURE__ */ l({
|
|
|
1741
1703
|
let a = D("v-btn");
|
|
1742
1704
|
return C(), i(e, null, [c(a, {
|
|
1743
1705
|
variant: "text",
|
|
1744
|
-
text:
|
|
1706
|
+
text: N(bn)("Cancel"),
|
|
1745
1707
|
onClick: t.cancel
|
|
1746
1708
|
}, null, 8, ["text", "onClick"]), c(a, {
|
|
1747
1709
|
variant: "text",
|
|
1748
1710
|
disabled: t.isPristine,
|
|
1749
|
-
text:
|
|
1711
|
+
text: N(bn)("Ok"),
|
|
1750
1712
|
onClick: t.save
|
|
1751
1713
|
}, null, 8, [
|
|
1752
1714
|
"disabled",
|
|
@@ -1787,7 +1749,7 @@ var jn = ".v-color-picker-canvas", Mn = /* @__PURE__ */ l({
|
|
|
1787
1749
|
passthroughAttrs: {},
|
|
1788
1750
|
density: {},
|
|
1789
1751
|
variant: {}
|
|
1790
|
-
},
|
|
1752
|
+
}, Q(Q({}, en), {}, { allowNull: !1 })),
|
|
1791
1753
|
emits: ["update:modelValue", "click:clear"],
|
|
1792
1754
|
setup(e, { emit: t }) {
|
|
1793
1755
|
let i = e, o = t, s = /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/;
|
|
@@ -1801,37 +1763,38 @@ var jn = ".v-color-picker-canvas", Mn = /* @__PURE__ */ l({
|
|
|
1801
1763
|
}
|
|
1802
1764
|
return (t, i) => {
|
|
1803
1765
|
let o = D("v-color-picker"), s = D("v-card-actions"), l = D("v-card"), w = D("v-confirm-edit"), O = D("v-menu"), k = D("v-text-field");
|
|
1804
|
-
return
|
|
1766
|
+
return N(d) ? (C(), n(k, g({
|
|
1805
1767
|
key: 0,
|
|
1806
|
-
modelValue:
|
|
1768
|
+
modelValue: N(_),
|
|
1807
1769
|
"onUpdate:modelValue": i[3] || (i[3] = (e) => m(_) ? _.value = e : null),
|
|
1808
|
-
class: [
|
|
1809
|
-
clearable: e.allowNull,
|
|
1770
|
+
class: [N(u), N(v)],
|
|
1771
|
+
clearable: e.allowNull && !N(y).readonly,
|
|
1810
1772
|
type: "text"
|
|
1811
|
-
},
|
|
1812
|
-
label: R((e) => [c(
|
|
1773
|
+
}, N(y), { onBlur: i[4] || (i[4] = (e) => h.value = !0) }), {
|
|
1774
|
+
label: R((e) => [c(N(Xt), {
|
|
1813
1775
|
data: e,
|
|
1814
|
-
label:
|
|
1776
|
+
label: N(f)
|
|
1815
1777
|
}, null, 8, ["data", "label"])]),
|
|
1816
|
-
message: R(({ message: e }) => [c(
|
|
1778
|
+
message: R(({ message: e }) => [c(N($), {
|
|
1817
1779
|
message: e,
|
|
1818
|
-
errors:
|
|
1780
|
+
errors: N(p)
|
|
1819
1781
|
}, null, 8, ["message", "errors"])]),
|
|
1820
1782
|
"prepend-inner": R(() => [a("div", { style: b([{
|
|
1821
1783
|
width: "24px",
|
|
1822
1784
|
height: "24px",
|
|
1823
1785
|
"border-radius": "4px",
|
|
1824
1786
|
border: "1px solid #ccc"
|
|
1825
|
-
}, { backgroundColor:
|
|
1826
|
-
default: R(() => [
|
|
1787
|
+
}, { backgroundColor: N(_) }]) }, null, 4)]),
|
|
1788
|
+
default: R(() => [N(S) ? (C(), n(O, {
|
|
1827
1789
|
key: 0,
|
|
1828
1790
|
modelValue: x.value,
|
|
1829
1791
|
"onUpdate:modelValue": i[2] || (i[2] = (e) => x.value = e),
|
|
1830
1792
|
"close-on-content-click": !1,
|
|
1793
|
+
disabled: N(y).readonly,
|
|
1831
1794
|
activator: "parent"
|
|
1832
1795
|
}, {
|
|
1833
1796
|
default: R(() => [c(w, {
|
|
1834
|
-
modelValue:
|
|
1797
|
+
modelValue: N(_),
|
|
1835
1798
|
"onUpdate:modelValue": i[0] || (i[0] = (e) => m(_) ? _.value = e : null),
|
|
1836
1799
|
"hide-actions": "",
|
|
1837
1800
|
onCancel: i[1] || (i[1] = (e) => x.value = !1),
|
|
@@ -1842,7 +1805,7 @@ var jn = ".v-color-picker-canvas", Mn = /* @__PURE__ */ l({
|
|
|
1842
1805
|
modelValue: e.value,
|
|
1843
1806
|
"onUpdate:modelValue": (t) => e.value = t,
|
|
1844
1807
|
mode: "hexa",
|
|
1845
|
-
onDblclick: (e) =>
|
|
1808
|
+
onDblclick: (e) => N(T)(e, jn, t)
|
|
1846
1809
|
}, null, 8, [
|
|
1847
1810
|
"modelValue",
|
|
1848
1811
|
"onUpdate:modelValue",
|
|
@@ -1864,7 +1827,7 @@ var jn = ".v-color-picker-canvas", Mn = /* @__PURE__ */ l({
|
|
|
1864
1827
|
_: 1
|
|
1865
1828
|
}, 8, ["modelValue"])]),
|
|
1866
1829
|
_: 1
|
|
1867
|
-
}, 8, ["modelValue"])) : r("", !0)]),
|
|
1830
|
+
}, 8, ["modelValue", "disabled"])) : r("", !0)]),
|
|
1868
1831
|
_: 1
|
|
1869
1832
|
}, 16, [
|
|
1870
1833
|
"modelValue",
|
|
@@ -1894,29 +1857,29 @@ var jn = ".v-color-picker-canvas", Mn = /* @__PURE__ */ l({
|
|
|
1894
1857
|
passthroughAttrs: {},
|
|
1895
1858
|
density: {},
|
|
1896
1859
|
variant: {}
|
|
1897
|
-
},
|
|
1860
|
+
}, Q(Q({}, en), {}, {
|
|
1898
1861
|
inputType: "datetime",
|
|
1899
1862
|
displayFormatDate: "P",
|
|
1900
1863
|
displayFormatTime: "p"
|
|
1901
1864
|
})),
|
|
1902
1865
|
emits: ["update:modelValue", "click:clear"],
|
|
1903
1866
|
setup(e, { emit: i }) {
|
|
1904
|
-
let o = e, s = i, l = p(
|
|
1867
|
+
let o = e, s = i, l = p(Jt, {}), u = t(() => {
|
|
1905
1868
|
var e, t;
|
|
1906
|
-
return (e = (t = o.locale) == null ?
|
|
1869
|
+
return (e = (t = o.locale) == null ? N(l.dateTimeLocale) : t) == null ? N(Mt.dateTimeLocale) : e;
|
|
1907
1870
|
}), d = t(() => {
|
|
1908
1871
|
var e, t;
|
|
1909
1872
|
return (e = (t = u.value.options) == null ? void 0 : t.weekStartsOn) == null ? 1 : e;
|
|
1910
|
-
}), { density: f, densityClass: m, touched: h, value: _, vuetifyBindings: y } = tn(o, s), { inputType: b, displayFormatDate: x, displayFormatTime: S } =
|
|
1873
|
+
}), { density: f, densityClass: m, touched: h, value: _, vuetifyBindings: y } = tn(o, s), { inputType: b, displayFormatDate: x, displayFormatTime: S } = ee(o), T = w(""), E = On(), O = t({
|
|
1911
1874
|
get() {
|
|
1912
|
-
return
|
|
1875
|
+
return !y.value.readonly && N(T) === "date";
|
|
1913
1876
|
},
|
|
1914
1877
|
set(e) {
|
|
1915
1878
|
T.value = e ? "date" : "";
|
|
1916
1879
|
}
|
|
1917
1880
|
}), k = t({
|
|
1918
1881
|
get() {
|
|
1919
|
-
return
|
|
1882
|
+
return !y.value.readonly && N(T) === "time";
|
|
1920
1883
|
},
|
|
1921
1884
|
set(e) {
|
|
1922
1885
|
T.value = e ? "time" : "";
|
|
@@ -1925,11 +1888,11 @@ var jn = ".v-color-picker-canvas", Mn = /* @__PURE__ */ l({
|
|
|
1925
1888
|
function A() {
|
|
1926
1889
|
T.value = "", h.value = !0;
|
|
1927
1890
|
}
|
|
1928
|
-
let { viewChanged: j, saveOnDoubleClick:
|
|
1929
|
-
function
|
|
1891
|
+
let { viewChanged: j, saveOnDoubleClick: M } = An();
|
|
1892
|
+
function P() {
|
|
1930
1893
|
_.value = null, h.value = !0;
|
|
1931
1894
|
}
|
|
1932
|
-
let F = (e) => `${
|
|
1895
|
+
let F = (e) => `${fe(e, "yyyy-MM-dd")}T${fe(e, "HH:mm")}:00`, L = w(null);
|
|
1933
1896
|
function B(e, t, n) {
|
|
1934
1897
|
let r = e.split(/[TZ]/g);
|
|
1935
1898
|
return r[n] = t.split(/[TZ]/g)[n], r;
|
|
@@ -1937,17 +1900,17 @@ var jn = ".v-color-picker-canvas", Mn = /* @__PURE__ */ l({
|
|
|
1937
1900
|
let V = (e) => F(/* @__PURE__ */ new Date(`${e[0]}T${e[1].split(".")[0]}`));
|
|
1938
1901
|
function H(e, t) {
|
|
1939
1902
|
if (e == null) L.value = null;
|
|
1940
|
-
else if (t === -1)
|
|
1903
|
+
else if (t === -1) N(b) === "time" ? L.value = V(B(F(/* @__PURE__ */ new Date()), `T${e}`, 1)) : L.value = F(me(e));
|
|
1941
1904
|
else {
|
|
1942
1905
|
var n;
|
|
1943
1906
|
let r = B((n = L.value) == null ? F(/* @__PURE__ */ new Date()) : n, e, t);
|
|
1944
|
-
L.value = V(r),
|
|
1907
|
+
L.value = V(r), N(b) === "date" ? _.value = r[0] : N(b) === "time" ? _.value = r[1] : _.value = L.value + fe(new Date(L.value), "XXX");
|
|
1945
1908
|
}
|
|
1946
1909
|
}
|
|
1947
1910
|
I(_, (e) => H(e, -1), { immediate: !0 });
|
|
1948
1911
|
let U = t({
|
|
1949
1912
|
get() {
|
|
1950
|
-
let e =
|
|
1913
|
+
let e = N(L);
|
|
1951
1914
|
if (e == null) return null;
|
|
1952
1915
|
let t = new Date(e);
|
|
1953
1916
|
return Number.isNaN(t.getTime()) ? null : t;
|
|
@@ -1957,7 +1920,7 @@ var jn = ".v-color-picker-canvas", Mn = /* @__PURE__ */ l({
|
|
|
1957
1920
|
}
|
|
1958
1921
|
}), te = t({
|
|
1959
1922
|
get() {
|
|
1960
|
-
let e =
|
|
1923
|
+
let e = N(L);
|
|
1961
1924
|
return e == null ? "" : e.split(/[TZ]/g)[1].split(".")[0];
|
|
1962
1925
|
},
|
|
1963
1926
|
set(e) {
|
|
@@ -1965,12 +1928,12 @@ var jn = ".v-color-picker-canvas", Mn = /* @__PURE__ */ l({
|
|
|
1965
1928
|
}
|
|
1966
1929
|
}), W = t({
|
|
1967
1930
|
get() {
|
|
1968
|
-
let e =
|
|
1969
|
-
return e == null ? "" :
|
|
1931
|
+
let e = N(U);
|
|
1932
|
+
return e == null ? "" : fe(e, N(x), { locale: u.value });
|
|
1970
1933
|
},
|
|
1971
1934
|
set(e) {
|
|
1972
1935
|
try {
|
|
1973
|
-
let t =
|
|
1936
|
+
let t = pe(e, N(x), /* @__PURE__ */ new Date(), { locale: u.value });
|
|
1974
1937
|
H(F(t), 0);
|
|
1975
1938
|
} catch (e) {
|
|
1976
1939
|
console.error(e);
|
|
@@ -1978,31 +1941,31 @@ var jn = ".v-color-picker-canvas", Mn = /* @__PURE__ */ l({
|
|
|
1978
1941
|
}
|
|
1979
1942
|
}), G = t({
|
|
1980
1943
|
get() {
|
|
1981
|
-
let e =
|
|
1982
|
-
return e == null ? "" :
|
|
1944
|
+
let e = N(U);
|
|
1945
|
+
return e == null ? "" : fe(e, N(S), { locale: u.value });
|
|
1983
1946
|
},
|
|
1984
1947
|
set(e) {
|
|
1985
1948
|
let t = e.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
1986
1949
|
if (t == null) return;
|
|
1987
|
-
let n =
|
|
1988
|
-
|
|
1950
|
+
let n = X(t[1]), r = X(t[2]);
|
|
1951
|
+
oe(n) || oe(r) || (t[3] && t[3].toLowerCase() === "pm" && n < 13 && (n += 12), H(`T${n.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}:00`, 1));
|
|
1989
1952
|
}
|
|
1990
1953
|
});
|
|
1991
1954
|
return (t, i) => {
|
|
1992
1955
|
let s = D("v-date-picker"), l = D("v-confirm-edit"), u = D("v-menu"), p = D("v-text-field"), _ = D("v-time-picker");
|
|
1993
|
-
return C(), n(
|
|
1994
|
-
class:
|
|
1956
|
+
return C(), n(N(rn), g(o, {
|
|
1957
|
+
class: N(m),
|
|
1995
1958
|
clearable: e.clearable,
|
|
1996
|
-
"onClick:clear":
|
|
1959
|
+
"onClick:clear": P,
|
|
1997
1960
|
onBlur: i[12] || (i[12] = (e) => h.value = !0)
|
|
1998
1961
|
}), {
|
|
1999
1962
|
default: R((t) => [a("div", { class: v([
|
|
2000
1963
|
"d-flex",
|
|
2001
1964
|
"w-100",
|
|
2002
|
-
["plain", "underlined"].includes(
|
|
1965
|
+
["plain", "underlined"].includes(N(y).variant) ? void 0 : "ml-4",
|
|
2003
1966
|
"df-input-wrapper",
|
|
2004
|
-
|
|
2005
|
-
]) }, [["date", "datetime"].includes(
|
|
1967
|
+
N(f)
|
|
1968
|
+
]) }, [["date", "datetime"].includes(N(b)) ? (C(), n(p, g({
|
|
2006
1969
|
key: 0,
|
|
2007
1970
|
modelValue: W.value,
|
|
2008
1971
|
"onUpdate:modelValue": i[3] || (i[3] = (e) => W.value = e),
|
|
@@ -2011,17 +1974,17 @@ var jn = ".v-color-picker-canvas", Mn = /* @__PURE__ */ l({
|
|
|
2011
1974
|
variant: "plain",
|
|
2012
1975
|
clearable: !1,
|
|
2013
1976
|
"hide-details": !0,
|
|
2014
|
-
readonly:
|
|
2015
|
-
disabled:
|
|
2016
|
-
name: `${
|
|
2017
|
-
placeholder:
|
|
1977
|
+
readonly: N(y).readonly,
|
|
1978
|
+
disabled: N(y).disabled,
|
|
1979
|
+
name: `${N(y).name}-date`,
|
|
1980
|
+
placeholder: N(y).placeholder
|
|
2018
1981
|
}, e.passthroughAttrs, {
|
|
2019
1982
|
onClick: i[4] || (i[4] = (e) => T.value = "date"),
|
|
2020
1983
|
onKeydown: i[5] || (i[5] = z((e) => T.value = "date", ["space"])),
|
|
2021
1984
|
onFocus: (e) => t.focus(),
|
|
2022
1985
|
onBlur: (e) => t.blur()
|
|
2023
1986
|
}), {
|
|
2024
|
-
default: R(() => [
|
|
1987
|
+
default: R(() => [N(E) ? (C(), n(u, {
|
|
2025
1988
|
key: 0,
|
|
2026
1989
|
modelValue: O.value,
|
|
2027
1990
|
"onUpdate:modelValue": i[2] || (i[2] = (e) => O.value = e),
|
|
@@ -2042,10 +2005,10 @@ var jn = ".v-color-picker-canvas", Mn = /* @__PURE__ */ l({
|
|
|
2042
2005
|
"first-day-of-week": d.value,
|
|
2043
2006
|
"show-adjacent-months": !0,
|
|
2044
2007
|
"show-week": !0,
|
|
2045
|
-
"onUpdate:viewMode":
|
|
2046
|
-
"onUpdate:month":
|
|
2047
|
-
"onUpdate:year":
|
|
2048
|
-
onDblclick: (e) =>
|
|
2008
|
+
"onUpdate:viewMode": N(j),
|
|
2009
|
+
"onUpdate:month": N(j),
|
|
2010
|
+
"onUpdate:year": N(j),
|
|
2011
|
+
onDblclick: (e) => N(M)(e, ".v-date-picker-month__day", t)
|
|
2049
2012
|
}, {
|
|
2050
2013
|
actions: R(() => [c(kn, {
|
|
2051
2014
|
save: t,
|
|
@@ -2079,7 +2042,7 @@ var jn = ".v-color-picker-canvas", Mn = /* @__PURE__ */ l({
|
|
|
2079
2042
|
"placeholder",
|
|
2080
2043
|
"onFocus",
|
|
2081
2044
|
"onBlur"
|
|
2082
|
-
])) : r("", !0), ["time", "datetime"].includes(
|
|
2045
|
+
])) : r("", !0), ["time", "datetime"].includes(N(b)) ? (C(), n(p, g({
|
|
2083
2046
|
key: 1,
|
|
2084
2047
|
modelValue: G.value,
|
|
2085
2048
|
"onUpdate:modelValue": i[9] || (i[9] = (e) => G.value = e),
|
|
@@ -2088,17 +2051,17 @@ var jn = ".v-color-picker-canvas", Mn = /* @__PURE__ */ l({
|
|
|
2088
2051
|
variant: "plain",
|
|
2089
2052
|
clearable: !1,
|
|
2090
2053
|
"hide-details": !0,
|
|
2091
|
-
readonly:
|
|
2092
|
-
disabled:
|
|
2093
|
-
name: `${
|
|
2094
|
-
placeholder:
|
|
2054
|
+
readonly: N(y).readonly,
|
|
2055
|
+
disabled: N(y).disabled,
|
|
2056
|
+
name: `${N(y).name}-time`,
|
|
2057
|
+
placeholder: N(b) === "time" ? N(y).placeholder : void 0
|
|
2095
2058
|
}, e.passthroughAttrs, {
|
|
2096
2059
|
onClick: i[10] || (i[10] = (e) => T.value = "time"),
|
|
2097
2060
|
onKeydown: i[11] || (i[11] = z((e) => T.value = "time", ["space"])),
|
|
2098
2061
|
onFocus: (e) => t.focus(),
|
|
2099
2062
|
onBlur: (e) => t.blur()
|
|
2100
2063
|
}), {
|
|
2101
|
-
default: R(() => [
|
|
2064
|
+
default: R(() => [N(E) ? (C(), n(u, {
|
|
2102
2065
|
key: 0,
|
|
2103
2066
|
modelValue: k.value,
|
|
2104
2067
|
"onUpdate:modelValue": i[8] || (i[8] = (e) => k.value = e),
|
|
@@ -2117,8 +2080,8 @@ var jn = ".v-color-picker-canvas", Mn = /* @__PURE__ */ l({
|
|
|
2117
2080
|
"onUpdate:modelValue": (t) => e.value = t,
|
|
2118
2081
|
"hide-header": !0,
|
|
2119
2082
|
format: "24hr",
|
|
2120
|
-
"onUpdate:viewMode":
|
|
2121
|
-
onDblclick: (e) =>
|
|
2083
|
+
"onUpdate:viewMode": N(j),
|
|
2084
|
+
onDblclick: (e) => N(M)(e, ".v-time-picker-clock", t)
|
|
2122
2085
|
}, {
|
|
2123
2086
|
actions: R(() => [c(kn, {
|
|
2124
2087
|
save: t,
|
|
@@ -2205,7 +2168,7 @@ var In = ["title", "aria-label"], Ln = /* @__PURE__ */ l({
|
|
|
2205
2168
|
}, en),
|
|
2206
2169
|
emits: ["update:modelValue", "click:clear"],
|
|
2207
2170
|
setup(e, { emit: i }) {
|
|
2208
|
-
let s = e, { density: l, densityClass: u, touched: d, value: f, vuetifyBindings: p } = tn(s, i), m =
|
|
2171
|
+
let s = e, { density: l, densityClass: u, touched: d, value: f, vuetifyBindings: p } = tn(s, i), m = bn, h = w(null), _ = w(0), y = w(), b = t(() => h.value && _.value < 100), x = t(() => !y.value && f.value ? f.value : ""), S = t(() => !y.value && !!f.value && !!s.comms.getDownloadUrl);
|
|
2209
2172
|
function T() {
|
|
2210
2173
|
return E.apply(this, arguments);
|
|
2211
2174
|
}
|
|
@@ -2223,15 +2186,15 @@ var In = ["title", "aria-label"], Ln = /* @__PURE__ */ l({
|
|
|
2223
2186
|
O(), Cn(s.control, e);
|
|
2224
2187
|
}
|
|
2225
2188
|
let { setupTouchInterval: A, clearTouchInterval: j } = Sn(f, () => s.comms, () => s.touchInterval, k);
|
|
2226
|
-
function
|
|
2227
|
-
return
|
|
2189
|
+
function ee() {
|
|
2190
|
+
return M.apply(this, arguments);
|
|
2228
2191
|
}
|
|
2229
|
-
function
|
|
2230
|
-
return
|
|
2192
|
+
function M() {
|
|
2193
|
+
return M = Fn(function* () {
|
|
2231
2194
|
f.value && (yield s.comms.delete(f.value)), O(), d.value = !0;
|
|
2232
|
-
}),
|
|
2195
|
+
}), M.apply(this, arguments);
|
|
2233
2196
|
}
|
|
2234
|
-
function
|
|
2197
|
+
function P(e) {
|
|
2235
2198
|
return F.apply(this, arguments);
|
|
2236
2199
|
}
|
|
2237
2200
|
function F() {
|
|
@@ -2247,31 +2210,35 @@ var In = ["title", "aria-label"], Ln = /* @__PURE__ */ l({
|
|
|
2247
2210
|
}), F.apply(this, arguments);
|
|
2248
2211
|
}
|
|
2249
2212
|
function I(e) {
|
|
2250
|
-
|
|
2213
|
+
if (p.value.readonly) {
|
|
2214
|
+
y.value = null;
|
|
2215
|
+
return;
|
|
2216
|
+
}
|
|
2217
|
+
e && (Array.isArray(e) ? console.error("Uploading multiple files not supported right now") : P(e));
|
|
2251
2218
|
}
|
|
2252
2219
|
return (t, i) => {
|
|
2253
2220
|
let f = D("v-progress-linear"), w = D("v-file-input");
|
|
2254
|
-
return C(), n(
|
|
2255
|
-
class:
|
|
2221
|
+
return C(), n(N(rn), g(Q(Q({}, s), {}, { loading: b.value }), {
|
|
2222
|
+
class: N(u),
|
|
2256
2223
|
clearable: "",
|
|
2257
|
-
"onClick:clear":
|
|
2224
|
+
"onClick:clear": ee,
|
|
2258
2225
|
onBlur: i[1] || (i[1] = (e) => d.value = !0)
|
|
2259
2226
|
}), {
|
|
2260
|
-
"prepend-inner": R(() => [c(
|
|
2227
|
+
"prepend-inner": R(() => [c(N(V), { name: "mdi-paperclip" })]),
|
|
2261
2228
|
loader: R(() => [h.value && _.value < 100 ? (C(), n(f, {
|
|
2262
2229
|
key: 0,
|
|
2263
2230
|
"model-value": _.value,
|
|
2264
2231
|
indeterminate: _.value === -1
|
|
2265
2232
|
}, null, 8, ["model-value", "indeterminate"])) : r("", !0)]),
|
|
2266
|
-
default: R((t) => [a("div", { class: v(["d-flex w-100 position-relative df-input-wrapper",
|
|
2233
|
+
default: R((t) => [a("div", { class: v(["d-flex w-100 position-relative df-input-wrapper", N(l)]) }, [c(w, g({
|
|
2267
2234
|
modelValue: y.value,
|
|
2268
2235
|
"onUpdate:modelValue": i[0] || (i[0] = (e) => y.value = e),
|
|
2269
2236
|
label: x.value,
|
|
2270
2237
|
density: "compact",
|
|
2271
2238
|
variant: "plain",
|
|
2272
|
-
readonly:
|
|
2273
|
-
disabled:
|
|
2274
|
-
name:
|
|
2239
|
+
readonly: N(p).readonly,
|
|
2240
|
+
disabled: N(p).disabled,
|
|
2241
|
+
name: N(p).name,
|
|
2275
2242
|
"hide-details": !0,
|
|
2276
2243
|
"show-size": !0,
|
|
2277
2244
|
multiple: !1,
|
|
@@ -2287,10 +2254,10 @@ var In = ["title", "aria-label"], Ln = /* @__PURE__ */ l({
|
|
|
2287
2254
|
fn: R(() => [a("button", {
|
|
2288
2255
|
type: "button",
|
|
2289
2256
|
class: "df-file-download-btn",
|
|
2290
|
-
title:
|
|
2291
|
-
"aria-label":
|
|
2257
|
+
title: N(m)("FileDownload"),
|
|
2258
|
+
"aria-label": N(m)("FileDownload"),
|
|
2292
2259
|
onClick: B(T, ["stop", "prevent"])
|
|
2293
|
-
}, [c(
|
|
2260
|
+
}, [c(N(V), { name: "mdi-download" })], 8, In)]),
|
|
2294
2261
|
key: "0"
|
|
2295
2262
|
} : void 0]), 1040, [
|
|
2296
2263
|
"modelValue",
|
|
@@ -2338,21 +2305,21 @@ var In = ["title", "aria-label"], Ln = /* @__PURE__ */ l({
|
|
|
2338
2305
|
}, en),
|
|
2339
2306
|
emits: ["update:modelValue", "click:clear"],
|
|
2340
2307
|
setup(e, { emit: o }) {
|
|
2341
|
-
let s = e, { density: l, densityClass: u, touched: d, value: f, vuetifyBindings: p } = tn(s, o), m =
|
|
2308
|
+
let s = e, { density: l, densityClass: u, touched: d, value: f, vuetifyBindings: p } = tn(s, o), m = bn, h = F(), _ = w(null), y = w(0), S = w(null), T = w(0), E = w(null), O = t(() => _.value && y.value < 100), k = t(() => !!(p.value.disabled || p.value.readonly)), j = t(() => T.value > 0), ee = t(() => {
|
|
2342
2309
|
var e;
|
|
2343
2310
|
return (e = S.value) == null ? f.value ? f.value : null : e;
|
|
2344
|
-
}),
|
|
2345
|
-
function
|
|
2311
|
+
}), M = t(() => !!f.value);
|
|
2312
|
+
function P() {
|
|
2346
2313
|
S.value && (URL.revokeObjectURL(S.value), S.value = null);
|
|
2347
2314
|
}
|
|
2348
2315
|
function I() {
|
|
2349
|
-
f.value = null, y.value = 0, _.value = null,
|
|
2316
|
+
f.value = null, y.value = 0, _.value = null, P(), H();
|
|
2350
2317
|
}
|
|
2351
2318
|
function L(e) {
|
|
2352
2319
|
I(), Cn(s.control, e);
|
|
2353
2320
|
}
|
|
2354
2321
|
let { setupTouchInterval: z, clearTouchInterval: H } = Sn(f, () => s.comms, () => s.touchInterval, L);
|
|
2355
|
-
x(() =>
|
|
2322
|
+
x(() => P());
|
|
2356
2323
|
function U() {
|
|
2357
2324
|
return te.apply(this, arguments);
|
|
2358
2325
|
}
|
|
@@ -2366,13 +2333,13 @@ var In = ["title", "aria-label"], Ln = /* @__PURE__ */ l({
|
|
|
2366
2333
|
}
|
|
2367
2334
|
function G() {
|
|
2368
2335
|
return G = Fn(function* (e) {
|
|
2369
|
-
y.value = -1, _.value = e,
|
|
2336
|
+
y.value = -1, _.value = e, P(), S.value = URL.createObjectURL(e);
|
|
2370
2337
|
try {
|
|
2371
2338
|
f.value = yield s.comms.upload(e, (e, t) => {
|
|
2372
2339
|
y.value = Math.round(e * 100 / t);
|
|
2373
2340
|
}), y.value = 100, d.value = !0, z();
|
|
2374
2341
|
} catch (e) {
|
|
2375
|
-
throw y.value = 0, _.value = null,
|
|
2342
|
+
throw y.value = 0, _.value = null, P(), e;
|
|
2376
2343
|
}
|
|
2377
2344
|
}), G.apply(this, arguments);
|
|
2378
2345
|
}
|
|
@@ -2388,13 +2355,13 @@ var In = ["title", "aria-label"], Ln = /* @__PURE__ */ l({
|
|
|
2388
2355
|
let n = e.target, r = (t = n.files) == null ? void 0 : t[0];
|
|
2389
2356
|
n.value = "", r && ne(r);
|
|
2390
2357
|
}
|
|
2391
|
-
function
|
|
2358
|
+
function K() {
|
|
2392
2359
|
k.value || (T.value += 1);
|
|
2393
2360
|
}
|
|
2394
|
-
function
|
|
2361
|
+
function ie() {
|
|
2395
2362
|
T.value = Math.max(0, T.value - 1);
|
|
2396
2363
|
}
|
|
2397
|
-
function
|
|
2364
|
+
function q(e) {
|
|
2398
2365
|
var t;
|
|
2399
2366
|
if (T.value = 0, k.value) return;
|
|
2400
2367
|
let n = (t = e.dataTransfer) == null || (t = t.files) == null ? void 0 : t[0];
|
|
@@ -2402,71 +2369,71 @@ var In = ["title", "aria-label"], Ln = /* @__PURE__ */ l({
|
|
|
2402
2369
|
}
|
|
2403
2370
|
return (e, t) => {
|
|
2404
2371
|
let o = D("v-progress-linear"), x = D("v-img");
|
|
2405
|
-
return C(), n(
|
|
2406
|
-
class: ["df-image-field",
|
|
2372
|
+
return C(), n(N(rn), g(Q(Q({}, s), {}, { loading: O.value }), {
|
|
2373
|
+
class: ["df-image-field", N(u)],
|
|
2407
2374
|
clearable: "",
|
|
2408
2375
|
"onClick:clear": U,
|
|
2409
2376
|
onBlur: t[2] || (t[2] = (e) => d.value = !0)
|
|
2410
2377
|
}), {
|
|
2411
|
-
"prepend-inner": R(() => [c(
|
|
2378
|
+
"prepend-inner": R(() => [c(N(V), { name: "mdi-image" })]),
|
|
2412
2379
|
loader: R(() => [_.value && y.value < 100 ? (C(), n(o, {
|
|
2413
2380
|
key: 0,
|
|
2414
2381
|
"model-value": y.value,
|
|
2415
2382
|
indeterminate: y.value === -1
|
|
2416
2383
|
}, null, 8, ["model-value", "indeterminate"])) : r("", !0)]),
|
|
2417
2384
|
default: R((e) => [a("div", {
|
|
2418
|
-
class: v(["d-flex w-100 position-relative df-input-wrapper df-image-wrapper", [
|
|
2385
|
+
class: v(["d-flex w-100 position-relative df-input-wrapper df-image-wrapper", [N(l), {
|
|
2419
2386
|
"df-image-dragging": j.value,
|
|
2420
2387
|
"df-image-disabled": k.value
|
|
2421
2388
|
}]]),
|
|
2422
|
-
onDragenter: B(
|
|
2389
|
+
onDragenter: B(K, ["prevent"]),
|
|
2423
2390
|
onDragover: t[0] || (t[0] = B(() => {}, ["prevent"])),
|
|
2424
|
-
onDragleave: B(
|
|
2425
|
-
onDrop: B(
|
|
2391
|
+
onDragleave: B(ie, ["prevent"]),
|
|
2392
|
+
onDrop: B(q, ["prevent"]),
|
|
2426
2393
|
onClick: t[1] || (t[1] = B(() => {}, ["stop"]))
|
|
2427
2394
|
}, [
|
|
2428
2395
|
a("input", {
|
|
2429
|
-
id:
|
|
2396
|
+
id: N(h),
|
|
2430
2397
|
ref_key: "fileInputRef",
|
|
2431
2398
|
ref: E,
|
|
2432
2399
|
type: "file",
|
|
2433
2400
|
accept: "image/*",
|
|
2434
2401
|
class: "df-image-native-input",
|
|
2435
2402
|
disabled: k.value,
|
|
2436
|
-
name:
|
|
2403
|
+
name: N(p).name,
|
|
2437
2404
|
onChange: re,
|
|
2438
2405
|
onFocus: (t) => e.focus(),
|
|
2439
2406
|
onBlur: (t) => e.blur()
|
|
2440
2407
|
}, null, 40, Rn),
|
|
2441
|
-
|
|
2408
|
+
ee.value ? (C(), i("label", {
|
|
2442
2409
|
key: 0,
|
|
2443
|
-
for:
|
|
2410
|
+
for: N(h),
|
|
2444
2411
|
class: "df-image-preview-label"
|
|
2445
2412
|
}, [c(x, {
|
|
2446
|
-
src:
|
|
2413
|
+
src: ee.value,
|
|
2447
2414
|
class: "df-image-preview",
|
|
2448
2415
|
style: b(_.value && y.value < 100 ? "visibility: hidden" : "")
|
|
2449
2416
|
}, null, 8, ["src", "style"])], 8, zn)) : (C(), i("label", {
|
|
2450
2417
|
key: 1,
|
|
2451
|
-
for:
|
|
2418
|
+
for: N(h),
|
|
2452
2419
|
class: "df-image-placeholder"
|
|
2453
|
-
}, [c(
|
|
2454
|
-
|
|
2420
|
+
}, [c(N(V), { name: "mdi-tray-arrow-up" }), a("span", null, A(N(m)("ImageDropHint")), 1)], 8, Bn)),
|
|
2421
|
+
ee.value && !k.value ? (C(), i("label", {
|
|
2455
2422
|
key: 2,
|
|
2456
|
-
for:
|
|
2423
|
+
for: N(h),
|
|
2457
2424
|
class: "df-image-replace-btn",
|
|
2458
|
-
title:
|
|
2459
|
-
}, [c(
|
|
2460
|
-
|
|
2425
|
+
title: N(m)("ImageReplace")
|
|
2426
|
+
}, [c(N(V), { name: "mdi-pencil" })], 8, Vn)) : r("", !0),
|
|
2427
|
+
M.value ? (C(), i("a", {
|
|
2461
2428
|
key: 3,
|
|
2462
|
-
href:
|
|
2429
|
+
href: N(f),
|
|
2463
2430
|
download: "",
|
|
2464
2431
|
target: "_blank",
|
|
2465
2432
|
rel: "noopener",
|
|
2466
2433
|
class: "df-image-download-btn",
|
|
2467
|
-
title:
|
|
2468
|
-
"aria-label":
|
|
2469
|
-
}, [c(
|
|
2434
|
+
title: N(m)("ImageDownload"),
|
|
2435
|
+
"aria-label": N(m)("ImageDownload")
|
|
2436
|
+
}, [c(N(V), { name: "mdi-download" })], 8, Hn)) : r("", !0)
|
|
2470
2437
|
], 34)]),
|
|
2471
2438
|
_: 1
|
|
2472
2439
|
}, 16, ["class"]);
|
|
@@ -2494,7 +2461,7 @@ var In = ["title", "aria-label"], Ln = /* @__PURE__ */ l({
|
|
|
2494
2461
|
passthroughAttrs: {},
|
|
2495
2462
|
density: {},
|
|
2496
2463
|
variant: {}
|
|
2497
|
-
},
|
|
2464
|
+
}, Q(Q({}, en), {}, {
|
|
2498
2465
|
inputType: "text",
|
|
2499
2466
|
precision: null,
|
|
2500
2467
|
step: void 0,
|
|
@@ -2503,52 +2470,52 @@ var In = ["title", "aria-label"], Ln = /* @__PURE__ */ l({
|
|
|
2503
2470
|
})),
|
|
2504
2471
|
emits: ["update:modelValue", "click:clear"],
|
|
2505
2472
|
setup(e, { emit: a }) {
|
|
2506
|
-
let o = e, { densityClass: s, isRendered: l, label: u, shownErrors: d, touched: f, value: p, visibilityClass: h, vuetifyBindings: _ } = tn(o, a), { inputType: y, max: b, min: x, precision: S, step: w } =
|
|
2507
|
-
min:
|
|
2508
|
-
max:
|
|
2509
|
-
precision:
|
|
2510
|
-
step:
|
|
2473
|
+
let o = e, { densityClass: s, isRendered: l, label: u, shownErrors: d, touched: f, value: p, visibilityClass: h, vuetifyBindings: _ } = tn(o, a), { inputType: y, max: b, min: x, precision: S, step: w } = ee(o), T = t(() => y.value === "number"), E = t(() => T.value ? {
|
|
2474
|
+
min: N(x),
|
|
2475
|
+
max: N(b),
|
|
2476
|
+
precision: N(S),
|
|
2477
|
+
step: N(w)
|
|
2511
2478
|
} : {});
|
|
2512
2479
|
return (e, t) => {
|
|
2513
2480
|
let a = D("v-text-field"), o = D("v-number-input");
|
|
2514
|
-
return
|
|
2481
|
+
return N(l) ? (C(), i("div", {
|
|
2515
2482
|
key: 0,
|
|
2516
|
-
class: v(["df-input-container", [
|
|
2483
|
+
class: v(["df-input-container", [N(s), N(h)]])
|
|
2517
2484
|
}, [T.value ? (C(), n(o, g({
|
|
2518
2485
|
key: 1,
|
|
2519
|
-
modelValue:
|
|
2486
|
+
modelValue: N(p),
|
|
2520
2487
|
"onUpdate:modelValue": t[2] || (t[2] = (e) => m(p) ? p.value = e : null),
|
|
2521
2488
|
density: "compact",
|
|
2522
2489
|
"control-variant": "stacked"
|
|
2523
|
-
},
|
|
2524
|
-
label: R((e) => [c(
|
|
2490
|
+
}, Q(Q({}, N(_)), E.value), { onBlur: t[3] || (t[3] = (e) => f.value = !0) }), {
|
|
2491
|
+
label: R((e) => [c(N(Xt), {
|
|
2525
2492
|
data: e,
|
|
2526
|
-
label:
|
|
2493
|
+
label: N(u)
|
|
2527
2494
|
}, null, 8, ["data", "label"])]),
|
|
2528
|
-
message: R(({ message: e }) => [c(
|
|
2495
|
+
message: R(({ message: e }) => [c(N($), {
|
|
2529
2496
|
message: e,
|
|
2530
|
-
errors:
|
|
2497
|
+
errors: N(d)
|
|
2531
2498
|
}, null, 8, ["message", "errors"])]),
|
|
2532
2499
|
_: 1
|
|
2533
2500
|
}, 16, ["modelValue"])) : (C(), n(a, g({
|
|
2534
2501
|
key: 0,
|
|
2535
|
-
modelValue:
|
|
2502
|
+
modelValue: N(p),
|
|
2536
2503
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => m(p) ? p.value = e : null),
|
|
2537
|
-
type:
|
|
2538
|
-
},
|
|
2539
|
-
label: R((e) => [c(
|
|
2504
|
+
type: N(y)
|
|
2505
|
+
}, N(_), { onBlur: t[1] || (t[1] = (e) => f.value = !0) }), {
|
|
2506
|
+
label: R((e) => [c(N(Xt), {
|
|
2540
2507
|
data: e,
|
|
2541
|
-
label:
|
|
2508
|
+
label: N(u)
|
|
2542
2509
|
}, null, 8, ["data", "label"])]),
|
|
2543
|
-
message: R(({ message: e }) => [c(
|
|
2510
|
+
message: R(({ message: e }) => [c(N($), {
|
|
2544
2511
|
message: e,
|
|
2545
|
-
errors:
|
|
2512
|
+
errors: N(d)
|
|
2546
2513
|
}, null, 8, ["message", "errors"])]),
|
|
2547
2514
|
_: 1
|
|
2548
2515
|
}, 16, ["modelValue", "type"]))], 2)) : r("", !0);
|
|
2549
2516
|
};
|
|
2550
2517
|
}
|
|
2551
|
-
}), Gn =
|
|
2518
|
+
}), Gn = De.create({
|
|
2552
2519
|
name: "classAttribute",
|
|
2553
2520
|
addGlobalAttributes() {
|
|
2554
2521
|
return [{
|
|
@@ -2567,7 +2534,7 @@ var In = ["title", "aria-label"], Ln = /* @__PURE__ */ l({
|
|
|
2567
2534
|
}
|
|
2568
2535
|
});
|
|
2569
2536
|
function Kn(e, t) {
|
|
2570
|
-
return
|
|
2537
|
+
return Oe.create({
|
|
2571
2538
|
name: e,
|
|
2572
2539
|
parseHTML() {
|
|
2573
2540
|
return [{ tag: `span.${t}` }];
|
|
@@ -2575,7 +2542,7 @@ function Kn(e, t) {
|
|
|
2575
2542
|
renderHTML({ HTMLAttributes: e }) {
|
|
2576
2543
|
return [
|
|
2577
2544
|
"span",
|
|
2578
|
-
|
|
2545
|
+
Ae(e, { class: t }),
|
|
2579
2546
|
0
|
|
2580
2547
|
];
|
|
2581
2548
|
}
|
|
@@ -2712,8 +2679,8 @@ function rr(e) {
|
|
|
2712
2679
|
function ir(e, t, n) {
|
|
2713
2680
|
let r = [];
|
|
2714
2681
|
return e.forEach((e) => {
|
|
2715
|
-
e.type.name === "image" && n.index < t.length ? (r.push(e.type.create(
|
|
2716
|
-
}),
|
|
2682
|
+
e.type.name === "image" && n.index < t.length ? (r.push(e.type.create(Q(Q({}, e.attrs), {}, { src: t[n.index] }), e.content, e.marks)), n.index += 1) : e.content.size ? r.push(e.copy(ir(e.content, t, n))) : r.push(e);
|
|
2683
|
+
}), je.fromArray(r);
|
|
2717
2684
|
}
|
|
2718
2685
|
function ar(e) {
|
|
2719
2686
|
return (t, n, r) => {
|
|
@@ -2721,7 +2688,7 @@ function ar(e) {
|
|
|
2721
2688
|
return i.length !== 0 && (n.preventDefault(), Promise.all(i.map(tr)).then((n) => {
|
|
2722
2689
|
var i;
|
|
2723
2690
|
if (rr(r.content) > 0) {
|
|
2724
|
-
let e = ir(r.content, n, { index: 0 }), i = new
|
|
2691
|
+
let e = ir(r.content, n, { index: 0 }), i = new Me(e, r.openStart, r.openEnd);
|
|
2725
2692
|
t.dispatch(t.state.tr.replaceSelection(i).scrollIntoView());
|
|
2726
2693
|
return;
|
|
2727
2694
|
}
|
|
@@ -2734,11 +2701,11 @@ function ar(e) {
|
|
|
2734
2701
|
}
|
|
2735
2702
|
//#endregion
|
|
2736
2703
|
//#region src/helpers/rtf-editor/link-with-download.ts
|
|
2737
|
-
var or =
|
|
2704
|
+
var or = Ne.extend({
|
|
2738
2705
|
name: "link",
|
|
2739
2706
|
addAttributes() {
|
|
2740
2707
|
var e;
|
|
2741
|
-
return
|
|
2708
|
+
return Q(Q({}, (e = this.parent) == null ? void 0 : e.call(this)), {}, { download: {
|
|
2742
2709
|
default: null,
|
|
2743
2710
|
parseHTML: (e) => e.getAttribute("download"),
|
|
2744
2711
|
renderHTML: (e) => e.download ? { download: e.download } : {}
|
|
@@ -2773,7 +2740,7 @@ function sr(e) {
|
|
|
2773
2740
|
}
|
|
2774
2741
|
return null;
|
|
2775
2742
|
}
|
|
2776
|
-
var cr =
|
|
2743
|
+
var cr = ke.create({
|
|
2777
2744
|
name: "mediaEmbed",
|
|
2778
2745
|
group: "block",
|
|
2779
2746
|
atom: !0,
|
|
@@ -2785,7 +2752,7 @@ var cr = Ae.create({
|
|
|
2785
2752
|
return [{ tag: "iframe.media-embed" }];
|
|
2786
2753
|
},
|
|
2787
2754
|
renderHTML({ HTMLAttributes: e }) {
|
|
2788
|
-
return ["iframe",
|
|
2755
|
+
return ["iframe", Ae({
|
|
2789
2756
|
class: "media-embed",
|
|
2790
2757
|
frameborder: "0",
|
|
2791
2758
|
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
|
|
@@ -2812,7 +2779,7 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
2812
2779
|
buttonSize: { default: "small" }
|
|
2813
2780
|
},
|
|
2814
2781
|
setup(o) {
|
|
2815
|
-
let l = o, u = t(() => l.buttonSize), d =
|
|
2782
|
+
let l = o, u = t(() => l.buttonSize), d = bn, f = t(() => l.editor), p = lr(f), m = t(() => {
|
|
2816
2783
|
var e;
|
|
2817
2784
|
return p.value, !!((e = l.editor) != null && e.isEditable);
|
|
2818
2785
|
}), h = t(() => ({
|
|
@@ -2877,7 +2844,7 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
2877
2844
|
title: t(),
|
|
2878
2845
|
icon: !0
|
|
2879
2846
|
};
|
|
2880
|
-
r && (a.active = r()),
|
|
2847
|
+
r && (a.active = r()), ae((i = e.value.passthroughAttrs) == null ? {} : i, a) || (e.value = Q(Q({}, e.value), {}, { passthroughAttrs: a }));
|
|
2881
2848
|
let o = !n();
|
|
2882
2849
|
e.enabled !== o && (e.access = o ? "editable" : "disabled");
|
|
2883
2850
|
}
|
|
@@ -2893,7 +2860,7 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
2893
2860
|
}, () => d("Bold"), () => !m.value, () => y.value.bold), E("mdi-format-italic", () => {
|
|
2894
2861
|
var e;
|
|
2895
2862
|
return (e = f.value) == null ? void 0 : e.chain().focus().toggleItalic().run();
|
|
2896
|
-
}, () => d("Italic"), () => !m.value, () => y.value.italic)],
|
|
2863
|
+
}, () => d("Italic"), () => !m.value, () => y.value.italic)], ee = [
|
|
2897
2864
|
{
|
|
2898
2865
|
value: "left",
|
|
2899
2866
|
icon: "mdi-format-align-left",
|
|
@@ -2914,7 +2881,7 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
2914
2881
|
icon: "mdi-format-align-justify",
|
|
2915
2882
|
title: () => d("AlignJustify")
|
|
2916
2883
|
}
|
|
2917
|
-
].map((e) => E(e.icon, () => x(e.value), e.title, () => !m.value, () => b.value === e.value)),
|
|
2884
|
+
].map((e) => E(e.icon, () => x(e.value), e.title, () => !m.value, () => b.value === e.value)), M = [
|
|
2918
2885
|
E("mdi-format-list-bulleted", () => {
|
|
2919
2886
|
var e;
|
|
2920
2887
|
return (e = f.value) == null ? void 0 : e.chain().focus().toggleBulletList().run();
|
|
@@ -2935,7 +2902,7 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
2935
2902
|
L(() => {
|
|
2936
2903
|
S.forEach(O);
|
|
2937
2904
|
});
|
|
2938
|
-
let
|
|
2905
|
+
let P = t(() => [
|
|
2939
2906
|
{
|
|
2940
2907
|
level: 0,
|
|
2941
2908
|
label: d("Paragraph")
|
|
@@ -2971,7 +2938,7 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
2971
2938
|
}
|
|
2972
2939
|
let I = t(() => {
|
|
2973
2940
|
var e, t;
|
|
2974
|
-
return (e = (t =
|
|
2941
|
+
return (e = (t = P.value.find((e) => F(e.level))) == null ? void 0 : t.label) == null ? d("Paragraph") : e;
|
|
2975
2942
|
});
|
|
2976
2943
|
function B(e) {
|
|
2977
2944
|
var t;
|
|
@@ -2988,51 +2955,51 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
2988
2955
|
let r = (e = (t = f.value) == null ? void 0 : t.getAttributes("link")) == null ? {} : e;
|
|
2989
2956
|
G.value = (n = r.href) == null ? "" : n, ne.value = !!r.download;
|
|
2990
2957
|
}
|
|
2991
|
-
function
|
|
2958
|
+
function K() {
|
|
2992
2959
|
var e;
|
|
2993
2960
|
G.value && ((e = f.value) == null || e.chain().focus().extendMarkRange("link").setLink({ href: G.value }).updateAttributes("link", { download: ne.value ? "file" : null }).run());
|
|
2994
2961
|
}
|
|
2995
|
-
function
|
|
2962
|
+
function ie() {
|
|
2996
2963
|
var e;
|
|
2997
2964
|
(e = f.value) == null || e.chain().focus().unsetLink().run();
|
|
2998
2965
|
}
|
|
2999
|
-
let
|
|
3000
|
-
function
|
|
2966
|
+
let q = w(""), J = w();
|
|
2967
|
+
function oe() {
|
|
3001
2968
|
var e;
|
|
3002
|
-
|
|
2969
|
+
q.value && ((e = f.value) == null || e.chain().focus().setImage({ src: q.value }).run(), q.value = "");
|
|
3003
2970
|
}
|
|
3004
|
-
function
|
|
2971
|
+
function se() {
|
|
3005
2972
|
var e;
|
|
3006
|
-
(e =
|
|
2973
|
+
(e = J.value) == null || e.click();
|
|
3007
2974
|
}
|
|
3008
|
-
function
|
|
3009
|
-
return
|
|
2975
|
+
function ce(e) {
|
|
2976
|
+
return Y.apply(this, arguments);
|
|
3010
2977
|
}
|
|
3011
|
-
function
|
|
3012
|
-
return
|
|
2978
|
+
function Y() {
|
|
2979
|
+
return Y = Fn(function* (e) {
|
|
3013
2980
|
var t, n;
|
|
3014
2981
|
let r = (t = e.target.files) == null ? void 0 : t[0];
|
|
3015
2982
|
if (!r) return;
|
|
3016
2983
|
let i = yield tr(r);
|
|
3017
2984
|
(n = f.value) == null || n.chain().focus().setImage({ src: i }).run(), e.target.value = "";
|
|
3018
|
-
}),
|
|
2985
|
+
}), Y.apply(this, arguments);
|
|
3019
2986
|
}
|
|
3020
|
-
let
|
|
3021
|
-
function
|
|
2987
|
+
let X = w("");
|
|
2988
|
+
function le() {
|
|
3022
2989
|
var e;
|
|
3023
|
-
if (!
|
|
3024
|
-
let t = sr(
|
|
2990
|
+
if (!X.value) return;
|
|
2991
|
+
let t = sr(X.value), n = (e = f.value) == null ? void 0 : e.chain().focus();
|
|
3025
2992
|
n && (t ? n.insertContent({
|
|
3026
2993
|
type: "mediaEmbed",
|
|
3027
2994
|
attrs: { src: t }
|
|
3028
2995
|
}).run() : n.insertContent({
|
|
3029
2996
|
type: "text",
|
|
3030
|
-
text:
|
|
2997
|
+
text: X.value,
|
|
3031
2998
|
marks: [{
|
|
3032
2999
|
type: "link",
|
|
3033
|
-
attrs: { href:
|
|
3000
|
+
attrs: { href: X.value }
|
|
3034
3001
|
}]
|
|
3035
|
-
}).run(),
|
|
3002
|
+
}).run(), X.value = "");
|
|
3036
3003
|
}
|
|
3037
3004
|
return (t, o) => {
|
|
3038
3005
|
let l = D("v-divider"), u = D("v-btn"), p = D("v-list-item-title"), b = D("v-list-item"), x = D("v-list"), S = D("v-menu"), w = D("v-text-field"), E = D("v-checkbox"), O = D("v-card");
|
|
@@ -3046,13 +3013,13 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3046
3013
|
c(u, g(h.value, {
|
|
3047
3014
|
icon: "",
|
|
3048
3015
|
rounded: "sm",
|
|
3049
|
-
title:
|
|
3016
|
+
title: N(d)("SelectAll"),
|
|
3050
3017
|
onClick: o[0] || (o[0] = (e) => {
|
|
3051
3018
|
var t;
|
|
3052
3019
|
return (t = f.value) == null ? void 0 : t.chain().focus().selectAll().run();
|
|
3053
3020
|
})
|
|
3054
3021
|
}), {
|
|
3055
|
-
default: R(() => [c(
|
|
3022
|
+
default: R(() => [c(N(V), { name: "mdi-select-all" })]),
|
|
3056
3023
|
_: 1
|
|
3057
3024
|
}, 16, ["title"]),
|
|
3058
3025
|
c(l, {
|
|
@@ -3061,12 +3028,12 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3061
3028
|
class: "mx-1"
|
|
3062
3029
|
}),
|
|
3063
3030
|
c(S, null, {
|
|
3064
|
-
activator: R(({ props: e }) => [c(u, g(
|
|
3031
|
+
activator: R(({ props: e }) => [c(u, g(Q(Q({}, h.value), e), { "append-icon": "mdi-chevron-down" }), {
|
|
3065
3032
|
default: R(() => [s(A(I.value), 1)]),
|
|
3066
3033
|
_: 1
|
|
3067
3034
|
}, 16)]),
|
|
3068
3035
|
default: R(() => [c(x, { density: "compact" }, {
|
|
3069
|
-
default: R(() => [(C(!0), i(e, null, T(
|
|
3036
|
+
default: R(() => [(C(!0), i(e, null, T(P.value, (e) => (C(), n(b, {
|
|
3070
3037
|
key: e.level,
|
|
3071
3038
|
active: F(e.level),
|
|
3072
3039
|
onClick: (t) => B(e.level)
|
|
@@ -3082,18 +3049,18 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3082
3049
|
_: 1
|
|
3083
3050
|
}),
|
|
3084
3051
|
c(S, null, {
|
|
3085
|
-
activator: R(({ props: e }) => [c(u, g(
|
|
3086
|
-
default: R(() => [s(A(
|
|
3052
|
+
activator: R(({ props: e }) => [c(u, g(Q(Q({}, h.value), e), { "append-icon": "mdi-chevron-down" }), {
|
|
3053
|
+
default: R(() => [s(A(N(d)("Style")), 1)]),
|
|
3087
3054
|
_: 1
|
|
3088
3055
|
}, 16)]),
|
|
3089
3056
|
default: R(() => [c(x, { density: "compact" }, {
|
|
3090
|
-
default: R(() => [(C(!0), i(e, null, T(
|
|
3057
|
+
default: R(() => [(C(!0), i(e, null, T(N(H), (e) => (C(), n(b, {
|
|
3091
3058
|
key: e.key,
|
|
3092
3059
|
active: U(e),
|
|
3093
|
-
onClick: (t) => f.value &&
|
|
3060
|
+
onClick: (t) => f.value && N(er)(f.value, e)
|
|
3094
3061
|
}, {
|
|
3095
3062
|
default: R(() => [c(p, null, {
|
|
3096
|
-
default: R(() => [s(A(
|
|
3063
|
+
default: R(() => [s(A(N(d)(e.key)), 1)]),
|
|
3097
3064
|
_: 2
|
|
3098
3065
|
}, 1024)]),
|
|
3099
3066
|
_: 2
|
|
@@ -3116,25 +3083,25 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3116
3083
|
a("div", ur, [
|
|
3117
3084
|
c(u, g(h.value, {
|
|
3118
3085
|
icon: "",
|
|
3119
|
-
title:
|
|
3086
|
+
title: N(d)("HorizontalLine"),
|
|
3120
3087
|
onClick: o[1] || (o[1] = (e) => {
|
|
3121
3088
|
var t;
|
|
3122
3089
|
return (t = f.value) == null ? void 0 : t.chain().focus().setHorizontalRule().run();
|
|
3123
3090
|
})
|
|
3124
3091
|
}), {
|
|
3125
|
-
default: R(() => [c(
|
|
3092
|
+
default: R(() => [c(N(V), { name: "mdi-minus" })]),
|
|
3126
3093
|
_: 1
|
|
3127
3094
|
}, 16, ["title"]),
|
|
3128
3095
|
c(S, {
|
|
3129
3096
|
"close-on-content-click": !1,
|
|
3130
3097
|
"onUpdate:modelValue": o[4] || (o[4] = (e) => e && re())
|
|
3131
3098
|
}, {
|
|
3132
|
-
activator: R(({ props: e }) => [c(u, g(
|
|
3099
|
+
activator: R(({ props: e }) => [c(u, g(Q(Q({}, h.value), e), {
|
|
3133
3100
|
icon: "",
|
|
3134
|
-
title:
|
|
3101
|
+
title: N(d)("Link"),
|
|
3135
3102
|
active: y.value.link
|
|
3136
3103
|
}), {
|
|
3137
|
-
default: R(() => [c(
|
|
3104
|
+
default: R(() => [c(N(V), { name: "mdi-link-variant" })]),
|
|
3138
3105
|
_: 1
|
|
3139
3106
|
}, 16, ["title", "active"])]),
|
|
3140
3107
|
default: R(() => [c(O, {
|
|
@@ -3145,16 +3112,16 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3145
3112
|
c(w, {
|
|
3146
3113
|
modelValue: G.value,
|
|
3147
3114
|
"onUpdate:modelValue": o[2] || (o[2] = (e) => G.value = e),
|
|
3148
|
-
label:
|
|
3115
|
+
label: N(d)("LinkUrl"),
|
|
3149
3116
|
density: "compact",
|
|
3150
3117
|
"hide-details": "",
|
|
3151
3118
|
autofocus: "",
|
|
3152
|
-
onKeydown: z(
|
|
3119
|
+
onKeydown: z(K, ["enter"])
|
|
3153
3120
|
}, null, 8, ["modelValue", "label"]),
|
|
3154
3121
|
c(E, {
|
|
3155
3122
|
modelValue: ne.value,
|
|
3156
3123
|
"onUpdate:modelValue": o[3] || (o[3] = (e) => ne.value = e),
|
|
3157
|
-
label:
|
|
3124
|
+
label: N(d)("Downloadable"),
|
|
3158
3125
|
density: "compact",
|
|
3159
3126
|
"hide-details": "",
|
|
3160
3127
|
class: "mt-1"
|
|
@@ -3163,17 +3130,17 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3163
3130
|
key: 0,
|
|
3164
3131
|
size: "small",
|
|
3165
3132
|
variant: "text",
|
|
3166
|
-
onClick:
|
|
3133
|
+
onClick: ie
|
|
3167
3134
|
}, {
|
|
3168
|
-
default: R(() => [s(A(
|
|
3135
|
+
default: R(() => [s(A(N(d)("LinkRemove")), 1)]),
|
|
3169
3136
|
_: 1
|
|
3170
3137
|
})) : r("", !0), c(u, {
|
|
3171
3138
|
size: "small",
|
|
3172
3139
|
color: "primary",
|
|
3173
3140
|
variant: "tonal",
|
|
3174
|
-
onClick:
|
|
3141
|
+
onClick: K
|
|
3175
3142
|
}, {
|
|
3176
|
-
default: R(() => [s(A(
|
|
3143
|
+
default: R(() => [s(A(N(d)("LinkApply")), 1)]),
|
|
3177
3144
|
_: 1
|
|
3178
3145
|
})])
|
|
3179
3146
|
]),
|
|
@@ -3182,11 +3149,11 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3182
3149
|
_: 1
|
|
3183
3150
|
}),
|
|
3184
3151
|
c(S, { "close-on-content-click": !1 }, {
|
|
3185
|
-
activator: R(({ props: e }) => [c(u, g(
|
|
3152
|
+
activator: R(({ props: e }) => [c(u, g(Q(Q({}, h.value), e), {
|
|
3186
3153
|
icon: "",
|
|
3187
|
-
title:
|
|
3154
|
+
title: N(d)("Image")
|
|
3188
3155
|
}), {
|
|
3189
|
-
default: R(() => [c(
|
|
3156
|
+
default: R(() => [c(N(V), { name: "mdi-image-plus" })]),
|
|
3190
3157
|
_: 1
|
|
3191
3158
|
}, 16, ["title"])]),
|
|
3192
3159
|
default: R(() => [c(O, {
|
|
@@ -3194,28 +3161,28 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3194
3161
|
class: "pa-3"
|
|
3195
3162
|
}, {
|
|
3196
3163
|
default: R(() => [c(w, {
|
|
3197
|
-
modelValue:
|
|
3198
|
-
"onUpdate:modelValue": o[5] || (o[5] = (e) =>
|
|
3199
|
-
label:
|
|
3164
|
+
modelValue: q.value,
|
|
3165
|
+
"onUpdate:modelValue": o[5] || (o[5] = (e) => q.value = e),
|
|
3166
|
+
label: N(d)("ImageUrl"),
|
|
3200
3167
|
density: "compact",
|
|
3201
3168
|
"hide-details": "",
|
|
3202
3169
|
autofocus: "",
|
|
3203
|
-
onKeydown: z(
|
|
3170
|
+
onKeydown: z(oe, ["enter"])
|
|
3204
3171
|
}, null, 8, ["modelValue", "label"]), a("div", fr, [c(u, {
|
|
3205
3172
|
size: "small",
|
|
3206
3173
|
variant: "text",
|
|
3207
3174
|
"prepend-icon": "mdi-upload",
|
|
3208
|
-
onClick:
|
|
3175
|
+
onClick: se
|
|
3209
3176
|
}, {
|
|
3210
|
-
default: R(() => [s(A(
|
|
3177
|
+
default: R(() => [s(A(N(d)("ImageUpload")), 1)]),
|
|
3211
3178
|
_: 1
|
|
3212
3179
|
}), c(u, {
|
|
3213
3180
|
size: "small",
|
|
3214
3181
|
color: "primary",
|
|
3215
3182
|
variant: "tonal",
|
|
3216
|
-
onClick:
|
|
3183
|
+
onClick: oe
|
|
3217
3184
|
}, {
|
|
3218
|
-
default: R(() => [s(A(
|
|
3185
|
+
default: R(() => [s(A(N(d)("ImageInsert")), 1)]),
|
|
3219
3186
|
_: 1
|
|
3220
3187
|
})])]),
|
|
3221
3188
|
_: 1
|
|
@@ -3224,18 +3191,18 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3224
3191
|
}),
|
|
3225
3192
|
a("input", {
|
|
3226
3193
|
ref_key: "imageInput",
|
|
3227
|
-
ref:
|
|
3194
|
+
ref: J,
|
|
3228
3195
|
type: "file",
|
|
3229
3196
|
accept: "image/*",
|
|
3230
3197
|
class: "d-none",
|
|
3231
|
-
onChange:
|
|
3198
|
+
onChange: ce
|
|
3232
3199
|
}, null, 544),
|
|
3233
3200
|
c(S, { "close-on-content-click": !1 }, {
|
|
3234
|
-
activator: R(({ props: e }) => [c(u, g(
|
|
3201
|
+
activator: R(({ props: e }) => [c(u, g(Q(Q({}, h.value), e), {
|
|
3235
3202
|
icon: "",
|
|
3236
|
-
title:
|
|
3203
|
+
title: N(d)("MediaEmbed")
|
|
3237
3204
|
}), {
|
|
3238
|
-
default: R(() => [c(
|
|
3205
|
+
default: R(() => [c(N(V), { name: "mdi-video-plus" })]),
|
|
3239
3206
|
_: 1
|
|
3240
3207
|
}, 16, ["title"])]),
|
|
3241
3208
|
default: R(() => [c(O, {
|
|
@@ -3243,20 +3210,20 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3243
3210
|
class: "pa-3"
|
|
3244
3211
|
}, {
|
|
3245
3212
|
default: R(() => [c(w, {
|
|
3246
|
-
modelValue:
|
|
3247
|
-
"onUpdate:modelValue": o[6] || (o[6] = (e) =>
|
|
3248
|
-
label:
|
|
3213
|
+
modelValue: X.value,
|
|
3214
|
+
"onUpdate:modelValue": o[6] || (o[6] = (e) => X.value = e),
|
|
3215
|
+
label: N(d)("MediaEmbedUrl"),
|
|
3249
3216
|
density: "compact",
|
|
3250
3217
|
"hide-details": "",
|
|
3251
3218
|
autofocus: "",
|
|
3252
|
-
onKeydown: z(
|
|
3219
|
+
onKeydown: z(le, ["enter"])
|
|
3253
3220
|
}, null, 8, ["modelValue", "label"]), a("div", pr, [c(u, {
|
|
3254
3221
|
size: "small",
|
|
3255
3222
|
color: "primary",
|
|
3256
3223
|
variant: "tonal",
|
|
3257
|
-
onClick:
|
|
3224
|
+
onClick: le
|
|
3258
3225
|
}, {
|
|
3259
|
-
default: R(() => [s(A(
|
|
3226
|
+
default: R(() => [s(A(N(d)("MediaEmbedInsert")), 1)]),
|
|
3260
3227
|
_: 1
|
|
3261
3228
|
})])]),
|
|
3262
3229
|
_: 1
|
|
@@ -3264,11 +3231,11 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3264
3231
|
_: 1
|
|
3265
3232
|
}),
|
|
3266
3233
|
c(S, null, {
|
|
3267
|
-
activator: R(({ props: e }) => [c(u, g(
|
|
3234
|
+
activator: R(({ props: e }) => [c(u, g(Q(Q({}, h.value), e), {
|
|
3268
3235
|
icon: "",
|
|
3269
|
-
title:
|
|
3236
|
+
title: N(d)("Table")
|
|
3270
3237
|
}), {
|
|
3271
|
-
default: R(() => [c(
|
|
3238
|
+
default: R(() => [c(N(V), { name: "mdi-table" })]),
|
|
3272
3239
|
_: 1
|
|
3273
3240
|
}, 16, ["title"])]),
|
|
3274
3241
|
default: R(() => [c(x, { density: "compact" }, {
|
|
@@ -3281,9 +3248,9 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3281
3248
|
withHeaderRow: !0
|
|
3282
3249
|
}).run();
|
|
3283
3250
|
}) }, {
|
|
3284
|
-
prepend: R(() => [c(
|
|
3251
|
+
prepend: R(() => [c(N(V), { name: "mdi-table-plus" })]),
|
|
3285
3252
|
default: R(() => [c(p, null, {
|
|
3286
|
-
default: R(() => [s(A(
|
|
3253
|
+
default: R(() => [s(A(N(d)("TableInsert")), 1)]),
|
|
3287
3254
|
_: 1
|
|
3288
3255
|
})]),
|
|
3289
3256
|
_: 1
|
|
@@ -3296,9 +3263,9 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3296
3263
|
return (t = f.value) == null ? void 0 : t.chain().focus().addRowBefore().run();
|
|
3297
3264
|
})
|
|
3298
3265
|
}, {
|
|
3299
|
-
prepend: R(() => [c(
|
|
3266
|
+
prepend: R(() => [c(N(V), { name: "mdi-table-row-plus-before" })]),
|
|
3300
3267
|
default: R(() => [c(p, null, {
|
|
3301
|
-
default: R(() => [s(A(
|
|
3268
|
+
default: R(() => [s(A(N(d)("TableAddRowAbove")), 1)]),
|
|
3302
3269
|
_: 1
|
|
3303
3270
|
})]),
|
|
3304
3271
|
_: 1
|
|
@@ -3310,9 +3277,9 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3310
3277
|
return (t = f.value) == null ? void 0 : t.chain().focus().addRowAfter().run();
|
|
3311
3278
|
})
|
|
3312
3279
|
}, {
|
|
3313
|
-
prepend: R(() => [c(
|
|
3280
|
+
prepend: R(() => [c(N(V), { name: "mdi-table-row-plus-after" })]),
|
|
3314
3281
|
default: R(() => [c(p, null, {
|
|
3315
|
-
default: R(() => [s(A(
|
|
3282
|
+
default: R(() => [s(A(N(d)("TableAddRowBelow")), 1)]),
|
|
3316
3283
|
_: 1
|
|
3317
3284
|
})]),
|
|
3318
3285
|
_: 1
|
|
@@ -3324,9 +3291,9 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3324
3291
|
return (t = f.value) == null ? void 0 : t.chain().focus().deleteRow().run();
|
|
3325
3292
|
})
|
|
3326
3293
|
}, {
|
|
3327
|
-
prepend: R(() => [c(
|
|
3294
|
+
prepend: R(() => [c(N(V), { name: "mdi-table-row-remove" })]),
|
|
3328
3295
|
default: R(() => [c(p, null, {
|
|
3329
|
-
default: R(() => [s(A(
|
|
3296
|
+
default: R(() => [s(A(N(d)("TableDeleteRow")), 1)]),
|
|
3330
3297
|
_: 1
|
|
3331
3298
|
})]),
|
|
3332
3299
|
_: 1
|
|
@@ -3339,9 +3306,9 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3339
3306
|
return (t = f.value) == null ? void 0 : t.chain().focus().addColumnBefore().run();
|
|
3340
3307
|
})
|
|
3341
3308
|
}, {
|
|
3342
|
-
prepend: R(() => [c(
|
|
3309
|
+
prepend: R(() => [c(N(V), { name: "mdi-table-column-plus-before" })]),
|
|
3343
3310
|
default: R(() => [c(p, null, {
|
|
3344
|
-
default: R(() => [s(A(
|
|
3311
|
+
default: R(() => [s(A(N(d)("TableAddColumnBefore")), 1)]),
|
|
3345
3312
|
_: 1
|
|
3346
3313
|
})]),
|
|
3347
3314
|
_: 1
|
|
@@ -3353,9 +3320,9 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3353
3320
|
return (t = f.value) == null ? void 0 : t.chain().focus().addColumnAfter().run();
|
|
3354
3321
|
})
|
|
3355
3322
|
}, {
|
|
3356
|
-
prepend: R(() => [c(
|
|
3323
|
+
prepend: R(() => [c(N(V), { name: "mdi-table-column-plus-after" })]),
|
|
3357
3324
|
default: R(() => [c(p, null, {
|
|
3358
|
-
default: R(() => [s(A(
|
|
3325
|
+
default: R(() => [s(A(N(d)("TableAddColumnAfter")), 1)]),
|
|
3359
3326
|
_: 1
|
|
3360
3327
|
})]),
|
|
3361
3328
|
_: 1
|
|
@@ -3367,9 +3334,9 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3367
3334
|
return (t = f.value) == null ? void 0 : t.chain().focus().deleteColumn().run();
|
|
3368
3335
|
})
|
|
3369
3336
|
}, {
|
|
3370
|
-
prepend: R(() => [c(
|
|
3337
|
+
prepend: R(() => [c(N(V), { name: "mdi-table-column-remove" })]),
|
|
3371
3338
|
default: R(() => [c(p, null, {
|
|
3372
|
-
default: R(() => [s(A(
|
|
3339
|
+
default: R(() => [s(A(N(d)("TableDeleteColumn")), 1)]),
|
|
3373
3340
|
_: 1
|
|
3374
3341
|
})]),
|
|
3375
3342
|
_: 1
|
|
@@ -3382,9 +3349,9 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3382
3349
|
return (t = f.value) == null ? void 0 : t.chain().focus().toggleHeaderRow().run();
|
|
3383
3350
|
})
|
|
3384
3351
|
}, {
|
|
3385
|
-
prepend: R(() => [c(
|
|
3352
|
+
prepend: R(() => [c(N(V), { name: "mdi-table-row" })]),
|
|
3386
3353
|
default: R(() => [c(p, null, {
|
|
3387
|
-
default: R(() => [s(A(
|
|
3354
|
+
default: R(() => [s(A(N(d)("TableToggleHeaderRow")), 1)]),
|
|
3388
3355
|
_: 1
|
|
3389
3356
|
})]),
|
|
3390
3357
|
_: 1
|
|
@@ -3396,9 +3363,9 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3396
3363
|
return (t = f.value) == null ? void 0 : t.chain().focus().deleteTable().run();
|
|
3397
3364
|
})
|
|
3398
3365
|
}, {
|
|
3399
|
-
prepend: R(() => [c(
|
|
3366
|
+
prepend: R(() => [c(N(V), { name: "mdi-table-remove" })]),
|
|
3400
3367
|
default: R(() => [c(p, null, {
|
|
3401
|
-
default: R(() => [s(A(
|
|
3368
|
+
default: R(() => [s(A(N(d)("TableDeleteTable")), 1)]),
|
|
3402
3369
|
_: 1
|
|
3403
3370
|
})]),
|
|
3404
3371
|
_: 1
|
|
@@ -3410,14 +3377,14 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3410
3377
|
}),
|
|
3411
3378
|
c(u, g(h.value, {
|
|
3412
3379
|
icon: "",
|
|
3413
|
-
title:
|
|
3380
|
+
title: N(d)("Blockquote"),
|
|
3414
3381
|
active: y.value.blockquote,
|
|
3415
3382
|
onClick: o[16] || (o[16] = (e) => {
|
|
3416
3383
|
var t;
|
|
3417
3384
|
return (t = f.value) == null ? void 0 : t.chain().focus().toggleBlockquote().run();
|
|
3418
3385
|
})
|
|
3419
3386
|
}), {
|
|
3420
|
-
default: R(() => [c(
|
|
3387
|
+
default: R(() => [c(N(V), { name: "mdi-format-quote-close" })]),
|
|
3421
3388
|
_: 1
|
|
3422
3389
|
}, 16, ["title", "active"])
|
|
3423
3390
|
]),
|
|
@@ -3426,13 +3393,13 @@ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2
|
|
|
3426
3393
|
inset: "",
|
|
3427
3394
|
class: "mx-1"
|
|
3428
3395
|
}),
|
|
3429
|
-
c(En, g({ actions:
|
|
3396
|
+
c(En, g({ actions: N(ee) }, _.value, { "show-as-group": "grouped-no-borders" }), null, 16, ["actions"]),
|
|
3430
3397
|
c(l, {
|
|
3431
3398
|
vertical: "",
|
|
3432
3399
|
inset: "",
|
|
3433
3400
|
class: "mx-1"
|
|
3434
3401
|
}),
|
|
3435
|
-
c(En, g({ actions:
|
|
3402
|
+
c(En, g({ actions: M }, _.value, { "show-as-group": "grouped-no-borders" }), null, 16)
|
|
3436
3403
|
], 2);
|
|
3437
3404
|
};
|
|
3438
3405
|
}
|
|
@@ -3488,7 +3455,7 @@ var Cr = { class: "editor-container" }, wr = {
|
|
|
3488
3455
|
props: {
|
|
3489
3456
|
modelValue: { default: "" },
|
|
3490
3457
|
minHeight: { default: "7em" },
|
|
3491
|
-
|
|
3458
|
+
readonly: {
|
|
3492
3459
|
type: Boolean,
|
|
3493
3460
|
default: !1
|
|
3494
3461
|
},
|
|
@@ -3497,9 +3464,9 @@ var Cr = { class: "editor-container" }, wr = {
|
|
|
3497
3464
|
},
|
|
3498
3465
|
emits: ["update:modelValue"],
|
|
3499
3466
|
setup(e, { emit: o }) {
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3467
|
+
P((e) => ({
|
|
3468
|
+
d41baee8: e.fontFamily,
|
|
3469
|
+
v85aba200: e.minHeight
|
|
3503
3470
|
}));
|
|
3504
3471
|
let s = e, l = o, u = w(null);
|
|
3505
3472
|
function d(e) {
|
|
@@ -3507,8 +3474,8 @@ var Cr = { class: "editor-container" }, wr = {
|
|
|
3507
3474
|
}
|
|
3508
3475
|
let f = On(), p = t(() => {
|
|
3509
3476
|
var e;
|
|
3510
|
-
return
|
|
3511
|
-
}), m =
|
|
3477
|
+
return Ht(new Ft((e = s.modelValue) == null ? "" : e));
|
|
3478
|
+
}), m = xn(), h;
|
|
3512
3479
|
I(u, (e) => {
|
|
3513
3480
|
h == null || h.disconnect();
|
|
3514
3481
|
let t = e == null ? void 0 : e.$el, n = t == null ? void 0 : t.closest(".v-field");
|
|
@@ -3516,17 +3483,17 @@ var Cr = { class: "editor-container" }, wr = {
|
|
|
3516
3483
|
n.style.setProperty("--rtf-toolbar-height", `${e.contentRect.height}px`);
|
|
3517
3484
|
}), h.observe(t));
|
|
3518
3485
|
}, { flush: "post" }), x(() => h == null ? void 0 : h.disconnect());
|
|
3519
|
-
let _ =
|
|
3486
|
+
let _ = Te({
|
|
3520
3487
|
content: s.modelValue,
|
|
3521
|
-
editable: !s.
|
|
3488
|
+
editable: !s.readonly,
|
|
3522
3489
|
extensions: [
|
|
3523
|
-
|
|
3490
|
+
Ce.configure({ link: !1 }),
|
|
3524
3491
|
or.configure({
|
|
3525
3492
|
openOnClick: !1,
|
|
3526
3493
|
autolink: !0,
|
|
3527
3494
|
defaultProtocol: "https"
|
|
3528
3495
|
}),
|
|
3529
|
-
|
|
3496
|
+
he.configure({
|
|
3530
3497
|
inline: !0,
|
|
3531
3498
|
allowBase64: !0,
|
|
3532
3499
|
resize: {
|
|
@@ -3545,12 +3512,12 @@ var Cr = { class: "editor-container" }, wr = {
|
|
|
3545
3512
|
minHeight: 24
|
|
3546
3513
|
}
|
|
3547
3514
|
}),
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
xe,
|
|
3515
|
+
xe.configure({ types: ["heading", "paragraph"] }),
|
|
3516
|
+
_e.configure({ resizable: !0 }),
|
|
3551
3517
|
be,
|
|
3552
3518
|
ye,
|
|
3553
|
-
|
|
3519
|
+
ve,
|
|
3520
|
+
ge.configure({ placeholder: "" }),
|
|
3554
3521
|
Gn,
|
|
3555
3522
|
qn,
|
|
3556
3523
|
Jn,
|
|
@@ -3570,10 +3537,10 @@ var Cr = { class: "editor-container" }, wr = {
|
|
|
3570
3537
|
if (!t) return;
|
|
3571
3538
|
let n = e == null ? "" : e;
|
|
3572
3539
|
n !== t.getHTML() && t.commands.setContent(n, { emitUpdate: !1 });
|
|
3573
|
-
}), I(() => s.
|
|
3540
|
+
}), I(() => s.readonly, (e) => {
|
|
3574
3541
|
var t;
|
|
3575
3542
|
return (t = _.value) == null ? void 0 : t.setEditable(!e, !1);
|
|
3576
|
-
}), I(_, (e) => e == null ? void 0 : e.setEditable(!s.
|
|
3543
|
+
}), I(_, (e) => e == null ? void 0 : e.setEditable(!s.readonly, !1));
|
|
3577
3544
|
let v = {
|
|
3578
3545
|
icon: !0,
|
|
3579
3546
|
size: "small",
|
|
@@ -3590,7 +3557,7 @@ var Cr = { class: "editor-container" }, wr = {
|
|
|
3590
3557
|
};
|
|
3591
3558
|
});
|
|
3592
3559
|
function S({ state: e }) {
|
|
3593
|
-
return !e.selection.empty && !(e.selection instanceof
|
|
3560
|
+
return !e.selection.empty && !(e.selection instanceof Se);
|
|
3594
3561
|
}
|
|
3595
3562
|
function T(e) {
|
|
3596
3563
|
var t;
|
|
@@ -3609,20 +3576,20 @@ var Cr = { class: "editor-container" }, wr = {
|
|
|
3609
3576
|
return (t, o) => {
|
|
3610
3577
|
let s = D("v-btn");
|
|
3611
3578
|
return C(), i("div", Cr, [
|
|
3612
|
-
|
|
3579
|
+
N(f) ? (C(), n(mr, {
|
|
3613
3580
|
key: 0,
|
|
3614
3581
|
ref: d,
|
|
3615
|
-
editor:
|
|
3582
|
+
editor: N(_),
|
|
3616
3583
|
"button-size": e.toolbarButtonSize
|
|
3617
3584
|
}, null, 8, ["editor", "button-size"])) : r("", !0),
|
|
3618
|
-
|
|
3585
|
+
N(f) ? (C(), n(N(we), {
|
|
3619
3586
|
key: 1,
|
|
3620
3587
|
class: "editor-container__editor",
|
|
3621
|
-
editor:
|
|
3588
|
+
editor: N(_)
|
|
3622
3589
|
}, null, 8, ["editor"])) : (C(), i("div", wr, A(p.value), 1)),
|
|
3623
|
-
|
|
3590
|
+
N(_) ? (C(), n(N(Ee), {
|
|
3624
3591
|
key: 3,
|
|
3625
|
-
editor:
|
|
3592
|
+
editor: N(_),
|
|
3626
3593
|
"should-show": S
|
|
3627
3594
|
}, {
|
|
3628
3595
|
default: R(() => [a("div", Tr, [
|
|
@@ -3630,35 +3597,35 @@ var Cr = { class: "editor-container" }, wr = {
|
|
|
3630
3597
|
active: b.value.bold,
|
|
3631
3598
|
onClick: o[0] || (o[0] = (e) => T("toggleBold"))
|
|
3632
3599
|
}), {
|
|
3633
|
-
default: R(() => [c(
|
|
3600
|
+
default: R(() => [c(N(V), { name: "mdi-format-bold" })]),
|
|
3634
3601
|
_: 1
|
|
3635
3602
|
}, 16, ["active"]),
|
|
3636
3603
|
c(s, g(v, {
|
|
3637
3604
|
active: b.value.italic,
|
|
3638
3605
|
onClick: o[1] || (o[1] = (e) => T("toggleItalic"))
|
|
3639
3606
|
}), {
|
|
3640
|
-
default: R(() => [c(
|
|
3607
|
+
default: R(() => [c(N(V), { name: "mdi-format-italic" })]),
|
|
3641
3608
|
_: 1
|
|
3642
3609
|
}, 16, ["active"]),
|
|
3643
3610
|
c(s, g(v, {
|
|
3644
3611
|
active: b.value.link,
|
|
3645
3612
|
onClick: E
|
|
3646
3613
|
}), {
|
|
3647
|
-
default: R(() => [c(
|
|
3614
|
+
default: R(() => [c(N(V), { name: "mdi-link-variant" })]),
|
|
3648
3615
|
_: 1
|
|
3649
3616
|
}, 16, ["active"]),
|
|
3650
3617
|
c(s, g(v, {
|
|
3651
3618
|
active: b.value.bulletList,
|
|
3652
3619
|
onClick: o[2] || (o[2] = (e) => T("toggleBulletList"))
|
|
3653
3620
|
}), {
|
|
3654
|
-
default: R(() => [c(
|
|
3621
|
+
default: R(() => [c(N(V), { name: "mdi-format-list-bulleted" })]),
|
|
3655
3622
|
_: 1
|
|
3656
3623
|
}, 16, ["active"]),
|
|
3657
3624
|
c(s, g(v, {
|
|
3658
3625
|
active: b.value.orderedList,
|
|
3659
3626
|
onClick: o[3] || (o[3] = (e) => T("toggleOrderedList"))
|
|
3660
3627
|
}), {
|
|
3661
|
-
default: R(() => [c(
|
|
3628
|
+
default: R(() => [c(N(V), { name: "mdi-format-list-numbered" })]),
|
|
3662
3629
|
_: 1
|
|
3663
3630
|
}, 16, ["active"])
|
|
3664
3631
|
])]),
|
|
@@ -3687,17 +3654,17 @@ var Cr = { class: "editor-container" }, wr = {
|
|
|
3687
3654
|
passthroughAttrs: {},
|
|
3688
3655
|
density: {},
|
|
3689
3656
|
variant: {}
|
|
3690
|
-
},
|
|
3657
|
+
}, Q(Q({}, en), {}, { minHeight: void 0 })),
|
|
3691
3658
|
emits: ["update:modelValue", "click:clear"],
|
|
3692
3659
|
setup(e, { emit: t }) {
|
|
3693
3660
|
let r = e, { densityClass: i, value: a, vuetifyBindings: o } = tn(r, t);
|
|
3694
|
-
return (t, s) => (C(), n(
|
|
3661
|
+
return (t, s) => (C(), n(N(rn), g(r, { class: ["rtf-editor", N(i)] }), {
|
|
3695
3662
|
default: R((t) => [c(Er, g({
|
|
3696
|
-
modelValue:
|
|
3663
|
+
modelValue: N(a),
|
|
3697
3664
|
"onUpdate:modelValue": s[0] || (s[0] = (e) => m(a) ? a.value = e : null),
|
|
3698
3665
|
class: { "mt-6": !!e.label },
|
|
3699
3666
|
"min-height": e.minHeight,
|
|
3700
|
-
|
|
3667
|
+
readonly: N(o).readonly,
|
|
3701
3668
|
"toolbar-button-size": e.toolbarButtonSize,
|
|
3702
3669
|
"font-family": e.fontFamily
|
|
3703
3670
|
}, e.passthroughAttrs, {
|
|
@@ -3707,7 +3674,7 @@ var Cr = { class: "editor-container" }, wr = {
|
|
|
3707
3674
|
"modelValue",
|
|
3708
3675
|
"class",
|
|
3709
3676
|
"min-height",
|
|
3710
|
-
"
|
|
3677
|
+
"readonly",
|
|
3711
3678
|
"toolbar-button-size",
|
|
3712
3679
|
"font-family",
|
|
3713
3680
|
"onFocusin",
|
|
@@ -3728,7 +3695,7 @@ function Or(e) {
|
|
|
3728
3695
|
}
|
|
3729
3696
|
function kr(e, t) {
|
|
3730
3697
|
var n;
|
|
3731
|
-
return e == null ||
|
|
3698
|
+
return e == null || ie(e) && e.length === 0 ? null : t ? ne(e) : ie(e) ? (n = K(e)) == null ? null : n : e;
|
|
3732
3699
|
}
|
|
3733
3700
|
function Ar(e, t) {
|
|
3734
3701
|
if (t == null) return [];
|
|
@@ -3745,7 +3712,7 @@ function jr(e, t, n, r, i) {
|
|
|
3745
3712
|
else if (r) t.value = a;
|
|
3746
3713
|
else {
|
|
3747
3714
|
var o;
|
|
3748
|
-
let e =
|
|
3715
|
+
let e = K(Ar(i, a));
|
|
3749
3716
|
t.value = (o = e == null ? void 0 : e.id) == null ? null : o;
|
|
3750
3717
|
}
|
|
3751
3718
|
}
|
|
@@ -3780,7 +3747,7 @@ var Mr = {
|
|
|
3780
3747
|
passthroughAttrs: {},
|
|
3781
3748
|
density: {},
|
|
3782
3749
|
variant: {}
|
|
3783
|
-
},
|
|
3750
|
+
}, Q(Q({}, en), {}, {
|
|
3784
3751
|
choices: void 0,
|
|
3785
3752
|
multiple: !1,
|
|
3786
3753
|
allowTags: !1,
|
|
@@ -3794,218 +3761,218 @@ var Mr = {
|
|
|
3794
3761
|
],
|
|
3795
3762
|
setup(e, { emit: s }) {
|
|
3796
3763
|
var l;
|
|
3797
|
-
let u = e, { choices: f, multiple: p, allowTags: m, allowNull: h, cssClass: b } =
|
|
3764
|
+
let u = e, { choices: f, multiple: p, allowTags: m, allowNull: h, cssClass: b } = ee(u), x = s, S = w(null), { densityClass: T, isRendered: k, label: j, shownErrors: M, touched: P, value: F, visibilityClass: L, vuetifyBindings: z } = tn(u, x), B = On(), H = w(null), U = w(!1), te = w([]), W = t(() => N(U) ? N(te) : N(f) || []), G = t(() => Or(W.value)), re = t(() => Ar(W.value, kr(F.value, p.value)).map((e) => e.text).join(", ")), K = w(null), ie = w(0), q = w(!1), J = w(0), oe = w(0), se = t(() => oe.value > 0 || J.value > 0);
|
|
3798
3765
|
(l = f.value) != null && l.length && u.fetchChoices !== void 0 && console.warn("Both choices and fetchChoices are set. Only one of them should be set.");
|
|
3799
|
-
function
|
|
3766
|
+
function ce(e) {
|
|
3800
3767
|
x("update:modelValueDisplay", Ar(W.value, e));
|
|
3801
3768
|
}
|
|
3802
|
-
let
|
|
3803
|
-
function
|
|
3804
|
-
|
|
3769
|
+
let Y = w(!1);
|
|
3770
|
+
function X(e) {
|
|
3771
|
+
Y.value = !0;
|
|
3805
3772
|
try {
|
|
3806
3773
|
F.value = e;
|
|
3807
3774
|
} finally {
|
|
3808
3775
|
_(() => {
|
|
3809
3776
|
let t = kr(F.value, p.value);
|
|
3810
|
-
|
|
3777
|
+
ae(t, e) || jr(t, H, p.value, m.value, W.value), Y.value = !1;
|
|
3811
3778
|
});
|
|
3812
3779
|
}
|
|
3813
3780
|
}
|
|
3814
|
-
function
|
|
3781
|
+
function ue(e) {
|
|
3815
3782
|
if (!e) return 0;
|
|
3816
3783
|
let t = e.getBoundingClientRect(), n = window.getComputedStyle(e);
|
|
3817
3784
|
return t.width + parseFloat(n.marginLeft) + parseFloat(n.marginRight);
|
|
3818
3785
|
}
|
|
3819
|
-
function
|
|
3786
|
+
function de() {
|
|
3820
3787
|
if (p.value && h.value && H.value != null && H.value.length > 0 && S.value) {
|
|
3821
3788
|
var e;
|
|
3822
3789
|
let t = S.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);
|
|
3823
3790
|
i.forEach((e) => {
|
|
3824
|
-
o +=
|
|
3791
|
+
o += ue(e);
|
|
3825
3792
|
});
|
|
3826
|
-
let s =
|
|
3827
|
-
|
|
3828
|
-
} else
|
|
3793
|
+
let s = ue(t.querySelector(".v-field .v-field__clearable")), c = ue(t.querySelector(".v-field .v-field__append-inner"));
|
|
3794
|
+
q.value = n - o - i.length * 2 - c < s;
|
|
3795
|
+
} else q.value = !1;
|
|
3829
3796
|
}
|
|
3830
|
-
function
|
|
3797
|
+
function fe(e) {
|
|
3831
3798
|
let t = e.target;
|
|
3832
3799
|
t instanceof HTMLElement && t.closest(".v-chip__close") && (e.stopPropagation(), e.preventDefault());
|
|
3833
3800
|
}
|
|
3834
3801
|
I(H, (e) => {
|
|
3835
|
-
z.value.readonly ||
|
|
3802
|
+
z.value.readonly || J.value > 0 || _(() => {
|
|
3836
3803
|
let t = kr(e, p.value);
|
|
3837
|
-
|
|
3804
|
+
ce(t), X(t);
|
|
3838
3805
|
});
|
|
3839
3806
|
}, { deep: !0 }), I(F, (e) => {
|
|
3840
|
-
if (
|
|
3841
|
-
let t = kr(e, p.value), n =
|
|
3807
|
+
if (Y.value) return;
|
|
3808
|
+
let t = kr(e, p.value), n = ve(t);
|
|
3842
3809
|
jr(t, H, p.value, !1, W.value), n == null || n.then(() => {
|
|
3843
|
-
|
|
3810
|
+
ae(kr(F.value, p.value), t) && jr(t, H, p.value, !1, W.value);
|
|
3844
3811
|
});
|
|
3845
|
-
}, { deep: !0 }), I(
|
|
3846
|
-
|
|
3812
|
+
}, { deep: !0 }), I(Y, () => {
|
|
3813
|
+
Y.value || de();
|
|
3847
3814
|
});
|
|
3848
|
-
function
|
|
3849
|
-
|
|
3815
|
+
function pe() {
|
|
3816
|
+
K.value != null && K.value.length > 0 && (K.value = null, ge());
|
|
3850
3817
|
}
|
|
3851
|
-
function
|
|
3852
|
-
if (
|
|
3818
|
+
function me() {
|
|
3819
|
+
if (pe(), z.value.readonly || m.value) return;
|
|
3853
3820
|
let e = kr(H.value, p.value);
|
|
3854
|
-
jr(e, H, p.value, !1, W.value),
|
|
3821
|
+
jr(e, H, p.value, !1, W.value), X(e);
|
|
3855
3822
|
}
|
|
3856
|
-
function
|
|
3823
|
+
function he(e, t) {
|
|
3857
3824
|
if (e.stopPropagation(), z.value.readonly || m.value) {
|
|
3858
3825
|
m.value && (H.value = H.value.filter((e) => e !== t));
|
|
3859
3826
|
return;
|
|
3860
3827
|
}
|
|
3861
3828
|
let n;
|
|
3862
|
-
n = p.value && Array.isArray(H.value) ? kr(H.value.filter((e) => e !== t), p.value) : null, jr(n, H, p.value, !1, W.value),
|
|
3829
|
+
n = p.value && Array.isArray(H.value) ? kr(H.value.filter((e) => e !== t), p.value) : null, jr(n, H, p.value, !1, W.value), X(n);
|
|
3863
3830
|
}
|
|
3864
|
-
function
|
|
3865
|
-
return
|
|
3831
|
+
function ge(e, t) {
|
|
3832
|
+
return _e.apply(this, arguments);
|
|
3866
3833
|
}
|
|
3867
|
-
function
|
|
3868
|
-
return
|
|
3869
|
-
if (z.value.readonly || (
|
|
3870
|
-
let n = ++
|
|
3871
|
-
|
|
3834
|
+
function _e() {
|
|
3835
|
+
return _e = Fn(function* (e, t) {
|
|
3836
|
+
if (z.value.readonly || (K.value = e, f.value || u.fetchChoices === void 0)) return;
|
|
3837
|
+
let n = ++ie.value;
|
|
3838
|
+
oe.value++;
|
|
3872
3839
|
try {
|
|
3873
3840
|
let r = yield u.fetchChoices(e, t);
|
|
3874
|
-
if (n !==
|
|
3841
|
+
if (n !== ie.value) return;
|
|
3875
3842
|
let i = Ar(W.value, kr(F.value, p.value));
|
|
3876
|
-
te.value =
|
|
3843
|
+
te.value = le([...i, ...r], "id"), U.value = !0;
|
|
3877
3844
|
} catch (e) {
|
|
3878
3845
|
console.error(e);
|
|
3879
3846
|
} finally {
|
|
3880
|
-
|
|
3847
|
+
oe.value--;
|
|
3881
3848
|
}
|
|
3882
|
-
}),
|
|
3849
|
+
}), _e.apply(this, arguments);
|
|
3883
3850
|
}
|
|
3884
|
-
function
|
|
3851
|
+
function ve(e) {
|
|
3885
3852
|
let t = u.fetchChoices;
|
|
3886
3853
|
if (t === void 0 || m.value || e == null) return null;
|
|
3887
3854
|
let n = ne(e).filter((e) => !W.value.some((t) => t.id === e));
|
|
3888
|
-
return n.length ? (
|
|
3855
|
+
return n.length ? (J.value++, Fn(function* () {
|
|
3889
3856
|
try {
|
|
3890
3857
|
let e = yield t(void 0, p.value ? n : n[0]);
|
|
3891
|
-
te.value =
|
|
3858
|
+
te.value = le([...W.value, ...e], "id"), U.value = !0;
|
|
3892
3859
|
} catch (e) {
|
|
3893
3860
|
console.error(e);
|
|
3894
3861
|
} finally {
|
|
3895
|
-
|
|
3862
|
+
J.value--;
|
|
3896
3863
|
}
|
|
3897
3864
|
})()) : null;
|
|
3898
3865
|
}
|
|
3899
|
-
function
|
|
3866
|
+
function ye() {
|
|
3900
3867
|
let e = z.value.readonly, t = F.value;
|
|
3901
|
-
!e && !h.value && t == null && G.value.length && (t = G.value[0].value), t = kr(t, p.value), jr(t, H, p.value, m.value, W.value), !(
|
|
3868
|
+
!e && !h.value && t == null && G.value.length && (t = G.value[0].value), t = kr(t, p.value), jr(t, H, p.value, m.value, W.value), !(J.value > 0) && (ce(t), e || X(t));
|
|
3902
3869
|
}
|
|
3903
|
-
let
|
|
3904
|
-
if (u.fetchChoices !== void 0 &&
|
|
3905
|
-
var
|
|
3906
|
-
|
|
3870
|
+
let be = typeof window < "u", xe = null;
|
|
3871
|
+
if (u.fetchChoices !== void 0 && be) {
|
|
3872
|
+
var Se;
|
|
3873
|
+
xe = (Se = ve(kr(F.value, p.value))) == null ? ge(void 0, F.value) : Se;
|
|
3907
3874
|
}
|
|
3908
|
-
return (
|
|
3909
|
-
|
|
3875
|
+
return (be || u.fetchChoices === void 0) && ye(), xe == null || xe.then(() => {
|
|
3876
|
+
ye();
|
|
3910
3877
|
}), I(() => z.value.readonly, (e) => {
|
|
3911
|
-
e ||
|
|
3878
|
+
e || ye();
|
|
3912
3879
|
}), (e, t) => {
|
|
3913
3880
|
var s, l;
|
|
3914
3881
|
let u = D("v-text-field"), f = D("v-chip"), _ = D("v-list-item");
|
|
3915
|
-
return
|
|
3882
|
+
return N(k) && !N(B) ? (C(), n(u, g({
|
|
3916
3883
|
key: 0,
|
|
3917
3884
|
class: [
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3885
|
+
N(b),
|
|
3886
|
+
N(T),
|
|
3887
|
+
N(L)
|
|
3921
3888
|
],
|
|
3922
3889
|
"model-value": re.value
|
|
3923
|
-
},
|
|
3924
|
-
label: R((e) => [c(
|
|
3890
|
+
}, N(z), { readonly: "" }), {
|
|
3891
|
+
label: R((e) => [c(N(Xt), {
|
|
3925
3892
|
data: e,
|
|
3926
|
-
label:
|
|
3893
|
+
label: N(j)
|
|
3927
3894
|
}, null, 8, ["data", "label"])]),
|
|
3928
|
-
message: R(({ message: e }) => [c(
|
|
3895
|
+
message: R(({ message: e }) => [c(N($), {
|
|
3929
3896
|
message: e,
|
|
3930
|
-
errors:
|
|
3897
|
+
errors: N(M)
|
|
3931
3898
|
}, null, 8, ["message", "errors"])]),
|
|
3932
3899
|
_: 1
|
|
3933
|
-
}, 16, ["class", "model-value"])) :
|
|
3900
|
+
}, 16, ["class", "model-value"])) : N(k) ? (C(), n(O(N(m) ? "v-combobox" : "v-autocomplete"), g({
|
|
3934
3901
|
key: 1,
|
|
3935
3902
|
ref_key: "dfSelectRef",
|
|
3936
3903
|
ref: S,
|
|
3937
3904
|
modelValue: H.value,
|
|
3938
3905
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => H.value = e),
|
|
3939
3906
|
class: [
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3907
|
+
N(b),
|
|
3908
|
+
N(T),
|
|
3909
|
+
N(L),
|
|
3943
3910
|
{
|
|
3944
|
-
"df-select-multirow":
|
|
3945
|
-
"df-select-single": !
|
|
3911
|
+
"df-select-multirow": q.value,
|
|
3912
|
+
"df-select-single": !N(p)
|
|
3946
3913
|
}
|
|
3947
3914
|
],
|
|
3948
|
-
style: { "--df-select-search-width": `${((s = (l =
|
|
3915
|
+
style: { "--df-select-search-width": `${((s = (l = K.value) == null ? void 0 : l.length) == null ? 0 : s) + 1}ch` },
|
|
3949
3916
|
items: G.value,
|
|
3950
3917
|
"return-object": !1,
|
|
3951
3918
|
chips: "",
|
|
3952
3919
|
"auto-select-first": !0,
|
|
3953
|
-
"closable-chips":
|
|
3954
|
-
clearable:
|
|
3955
|
-
multiple:
|
|
3956
|
-
loading:
|
|
3920
|
+
"closable-chips": N(h) || N(p) && H.value.length > 1,
|
|
3921
|
+
clearable: N(h) && !N(z).readonly,
|
|
3922
|
+
multiple: N(p),
|
|
3923
|
+
loading: se.value,
|
|
3957
3924
|
"hide-selected": !1,
|
|
3958
|
-
"aria-describedby":
|
|
3925
|
+
"aria-describedby": N(z).helpText ? `${N(z).name}-help` : null,
|
|
3959
3926
|
"menu-props": { maxHeight: "400" },
|
|
3960
|
-
search:
|
|
3961
|
-
},
|
|
3962
|
-
"onUpdate:search": t[1] || (t[1] = (e) =>
|
|
3963
|
-
"onUpdate:modelValue":
|
|
3927
|
+
search: K.value
|
|
3928
|
+
}, N(z), {
|
|
3929
|
+
"onUpdate:search": t[1] || (t[1] = (e) => ge(e, void 0)),
|
|
3930
|
+
"onUpdate:modelValue": me,
|
|
3964
3931
|
"onClick:clear": t[2] || (t[2] = (e) => H.value = null),
|
|
3965
|
-
onBlur: t[3] || (t[3] = (e) =>
|
|
3966
|
-
onMousedownCapture: t[4] || (t[4] = (e) =>
|
|
3932
|
+
onBlur: t[3] || (t[3] = (e) => P.value = !0),
|
|
3933
|
+
onMousedownCapture: t[4] || (t[4] = (e) => fe(e))
|
|
3967
3934
|
}), o({
|
|
3968
3935
|
chip: R(({ item: e }) => [(C(), n(f, {
|
|
3969
3936
|
key: e.value,
|
|
3970
3937
|
label: "",
|
|
3971
3938
|
size: "small",
|
|
3972
3939
|
class: "d-flex align-middle",
|
|
3973
|
-
variant:
|
|
3974
|
-
closable:
|
|
3975
|
-
"onClick:close": (t) =>
|
|
3940
|
+
variant: N(p) ? "tonal" : "text",
|
|
3941
|
+
closable: N(p),
|
|
3942
|
+
"onClick:close": (t) => he(t, e.value)
|
|
3976
3943
|
}, {
|
|
3977
3944
|
prepend: R(() => {
|
|
3978
3945
|
var t;
|
|
3979
|
-
return [(t = e.raw) != null && t.icon ? (C(), n(
|
|
3946
|
+
return [(t = e.raw) != null && t.icon ? (C(), n(N(V), {
|
|
3980
3947
|
key: 0,
|
|
3981
3948
|
class: "me-1",
|
|
3982
3949
|
name: e.raw.icon
|
|
3983
3950
|
}, null, 8, ["name"])) : r("", !0)];
|
|
3984
3951
|
}),
|
|
3985
|
-
default: R(() => [a("span", { class: v({ "text-body-1": !
|
|
3952
|
+
default: R(() => [a("span", { class: v({ "text-body-1": !N(p) }) }, A(e.title), 3)]),
|
|
3986
3953
|
_: 2
|
|
3987
3954
|
}, 1032, [
|
|
3988
3955
|
"variant",
|
|
3989
3956
|
"closable",
|
|
3990
3957
|
"onClick:close"
|
|
3991
3958
|
]))]),
|
|
3992
|
-
label: R((e) => [c(
|
|
3959
|
+
label: R((e) => [c(N(Xt), {
|
|
3993
3960
|
data: e,
|
|
3994
|
-
label:
|
|
3961
|
+
label: N(j)
|
|
3995
3962
|
}, null, 8, ["data", "label"])]),
|
|
3996
3963
|
item: R(({ props: e, item: t }) => [c(_, y(d(e)), {
|
|
3997
3964
|
prepend: R(() => {
|
|
3998
3965
|
var e;
|
|
3999
|
-
return [(e = t.raw) != null && e.icon ? (C(), i("span", Mr, [c(
|
|
3966
|
+
return [(e = t.raw) != null && e.icon ? (C(), i("span", Mr, [c(N(V), {
|
|
4000
3967
|
class: "action-icon",
|
|
4001
3968
|
name: t.raw.icon
|
|
4002
3969
|
}, null, 8, ["name"])])) : r("", !0)];
|
|
4003
3970
|
}),
|
|
4004
3971
|
_: 2
|
|
4005
3972
|
}, 1040)]),
|
|
4006
|
-
message: R(({ message: e }) => [c(
|
|
3973
|
+
message: R(({ message: e }) => [c(N($), {
|
|
4007
3974
|
message: e,
|
|
4008
|
-
errors:
|
|
3975
|
+
errors: N(M)
|
|
4009
3976
|
}, null, 8, ["message", "errors"])]),
|
|
4010
3977
|
_: 2
|
|
4011
3978
|
}, [e.$slots["append-inner"] ? {
|
|
@@ -4030,7 +3997,7 @@ var Mr = {
|
|
|
4030
3997
|
])) : r("", !0);
|
|
4031
3998
|
};
|
|
4032
3999
|
}
|
|
4033
|
-
}), [["__scopeId", "data-v-
|
|
4000
|
+
}), [["__scopeId", "data-v-3149bec6"]]), Pr = /* @__PURE__ */ l({
|
|
4034
4001
|
__name: "df-text-area",
|
|
4035
4002
|
props: /*@__PURE__*/ h({
|
|
4036
4003
|
rows: {},
|
|
@@ -4049,33 +4016,33 @@ var Mr = {
|
|
|
4049
4016
|
passthroughAttrs: {},
|
|
4050
4017
|
density: {},
|
|
4051
4018
|
variant: {}
|
|
4052
|
-
},
|
|
4019
|
+
}, Q(Q({}, en), {}, {
|
|
4053
4020
|
rows: void 0,
|
|
4054
4021
|
maxRows: void 0
|
|
4055
4022
|
})),
|
|
4056
4023
|
emits: ["update:modelValue", "click:clear"],
|
|
4057
4024
|
setup(e, { emit: t }) {
|
|
4058
|
-
let n = e, { densityClass: a, isRendered: o, label: s, shownErrors: l, touched: u, value: d, visibilityClass: f, vuetifyBindings: p } = tn(n, t), { cssClass: h } =
|
|
4025
|
+
let n = e, { densityClass: a, isRendered: o, label: s, shownErrors: l, touched: u, value: d, visibilityClass: f, vuetifyBindings: p } = tn(n, t), { cssClass: h } = ee(n);
|
|
4059
4026
|
return (t, n) => {
|
|
4060
4027
|
let _ = D("v-textarea");
|
|
4061
|
-
return
|
|
4028
|
+
return N(o) ? (C(), i("div", {
|
|
4062
4029
|
key: 0,
|
|
4063
|
-
class: v(["df-textarea-container", [
|
|
4030
|
+
class: v(["df-textarea-container", [N(a), N(f)]])
|
|
4064
4031
|
}, [c(_, g({
|
|
4065
|
-
modelValue:
|
|
4032
|
+
modelValue: N(d),
|
|
4066
4033
|
"onUpdate:modelValue": n[0] || (n[0] = (e) => m(d) ? d.value = e : null),
|
|
4067
|
-
class:
|
|
4034
|
+
class: N(h),
|
|
4068
4035
|
rows: e.rows,
|
|
4069
4036
|
"auto-grow": (e.maxRows || 0) > 0,
|
|
4070
4037
|
"max-rows": e.maxRows
|
|
4071
|
-
},
|
|
4072
|
-
label: R((e) => [c(
|
|
4038
|
+
}, N(p), { onBlur: n[1] || (n[1] = (e) => u.value = !0) }), {
|
|
4039
|
+
label: R((e) => [c(N(Xt), {
|
|
4073
4040
|
data: e,
|
|
4074
|
-
label:
|
|
4041
|
+
label: N(s)
|
|
4075
4042
|
}, null, 8, ["data", "label"])]),
|
|
4076
|
-
message: R(({ message: e }) => [c(
|
|
4043
|
+
message: R(({ message: e }) => [c(N($), {
|
|
4077
4044
|
message: e,
|
|
4078
|
-
errors:
|
|
4045
|
+
errors: N(l)
|
|
4079
4046
|
}, null, 8, ["message", "errors"])]),
|
|
4080
4047
|
_: 1
|
|
4081
4048
|
}, 16, [
|
|
@@ -4087,7 +4054,7 @@ var Mr = {
|
|
|
4087
4054
|
])], 2)) : r("", !0);
|
|
4088
4055
|
};
|
|
4089
4056
|
}
|
|
4090
|
-
}), Fr = /* @__PURE__ */
|
|
4057
|
+
}), Fr = /* @__PURE__ */ ft({
|
|
4091
4058
|
DfActions: () => En,
|
|
4092
4059
|
DfCheckbox: () => Dn,
|
|
4093
4060
|
DfColor: () => Mn,
|
|
@@ -4095,43 +4062,43 @@ var Mr = {
|
|
|
4095
4062
|
DfFile: () => Ln,
|
|
4096
4063
|
DfImage: () => Un,
|
|
4097
4064
|
DfInput: () => Wn,
|
|
4098
|
-
DfInputHint: () =>
|
|
4099
|
-
DfLabel: () =>
|
|
4065
|
+
DfInputHint: () => $,
|
|
4066
|
+
DfLabel: () => Xt,
|
|
4100
4067
|
DfRtfEditor: () => Dr,
|
|
4101
4068
|
DfSelect: () => Nr,
|
|
4102
4069
|
DfTextArea: () => Pr
|
|
4103
|
-
}), Ir = /* @__PURE__ */
|
|
4104
|
-
VAutocomplete: () =>
|
|
4105
|
-
VBtn: () =>
|
|
4106
|
-
VBtnGroup: () =>
|
|
4107
|
-
VBtnToggle: () =>
|
|
4108
|
-
VCard: () =>
|
|
4109
|
-
VCardActions: () =>
|
|
4110
|
-
VCheckbox: () =>
|
|
4111
|
-
VChip: () =>
|
|
4112
|
-
VCol: () =>
|
|
4113
|
-
VColorPicker: () =>
|
|
4114
|
-
VCombobox: () =>
|
|
4115
|
-
VConfirmEdit: () =>
|
|
4116
|
-
VDatePicker: () =>
|
|
4117
|
-
VDivider: () =>
|
|
4118
|
-
VField: () =>
|
|
4119
|
-
VFileInput: () =>
|
|
4120
|
-
VIcon: () =>
|
|
4121
|
-
VImg: () =>
|
|
4122
|
-
VInput: () =>
|
|
4123
|
-
VList: () =>
|
|
4124
|
-
VListItem: () =>
|
|
4125
|
-
VListItemTitle: () =>
|
|
4126
|
-
VMenu: () =>
|
|
4127
|
-
VNumberInput: () =>
|
|
4128
|
-
VProgressLinear: () =>
|
|
4129
|
-
VRow: () =>
|
|
4130
|
-
VSelect: () =>
|
|
4131
|
-
VSwitch: () =>
|
|
4132
|
-
VTextField: () =>
|
|
4133
|
-
VTextarea: () =>
|
|
4134
|
-
VTimePicker: () =>
|
|
4070
|
+
}), Ir = /* @__PURE__ */ ft({
|
|
4071
|
+
VAutocomplete: () => Pe,
|
|
4072
|
+
VBtn: () => Fe,
|
|
4073
|
+
VBtnGroup: () => Ie,
|
|
4074
|
+
VBtnToggle: () => Le,
|
|
4075
|
+
VCard: () => Re,
|
|
4076
|
+
VCardActions: () => ze,
|
|
4077
|
+
VCheckbox: () => Be,
|
|
4078
|
+
VChip: () => Ve,
|
|
4079
|
+
VCol: () => Ye,
|
|
4080
|
+
VColorPicker: () => Ue,
|
|
4081
|
+
VCombobox: () => He,
|
|
4082
|
+
VConfirmEdit: () => We,
|
|
4083
|
+
VDatePicker: () => Ge,
|
|
4084
|
+
VDivider: () => Ke,
|
|
4085
|
+
VField: () => qe,
|
|
4086
|
+
VFileInput: () => Je,
|
|
4087
|
+
VIcon: () => Ze,
|
|
4088
|
+
VImg: () => Qe,
|
|
4089
|
+
VInput: () => $e,
|
|
4090
|
+
VList: () => et,
|
|
4091
|
+
VListItem: () => tt,
|
|
4092
|
+
VListItemTitle: () => nt,
|
|
4093
|
+
VMenu: () => rt,
|
|
4094
|
+
VNumberInput: () => it,
|
|
4095
|
+
VProgressLinear: () => at,
|
|
4096
|
+
VRow: () => Xe,
|
|
4097
|
+
VSelect: () => ot,
|
|
4098
|
+
VSwitch: () => st,
|
|
4099
|
+
VTextField: () => lt,
|
|
4100
|
+
VTextarea: () => ct,
|
|
4101
|
+
VTimePicker: () => ut
|
|
4135
4102
|
}), Lr = {
|
|
4136
4103
|
"df-actions": En,
|
|
4137
4104
|
"df-checkbox": Dn,
|
|
@@ -4140,16 +4107,16 @@ var Mr = {
|
|
|
4140
4107
|
"df-file": Ln,
|
|
4141
4108
|
"df-image": Un,
|
|
4142
4109
|
"df-input": Wn,
|
|
4143
|
-
"df-input-hint":
|
|
4144
|
-
"df-label":
|
|
4110
|
+
"df-input-hint": $,
|
|
4111
|
+
"df-label": Xt,
|
|
4145
4112
|
"df-rtf-editor": Dr,
|
|
4146
4113
|
"df-select": Nr,
|
|
4147
4114
|
"df-text-area": Pr
|
|
4148
|
-
}, Rr = /* @__PURE__ */
|
|
4115
|
+
}, Rr = /* @__PURE__ */ ft({}), zr = { install: (e, t) => {
|
|
4149
4116
|
var n, r;
|
|
4150
|
-
e.provide(
|
|
4117
|
+
e.provide(Jt, t == null ? {} : t), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(Fr).map(([t, n]) => e.component(t, n)), (r = t == null ? void 0 : t.registerVuetifyComponents) != null && r && Object.entries(Ir).map(([t, n]) => e.component(t, n));
|
|
4151
4118
|
} };
|
|
4152
4119
|
//#endregion
|
|
4153
|
-
export {
|
|
4120
|
+
export { mn as Action, Mt as DateTimeLocaleConfig, En as DfActions, Dn as DfCheckbox, Mn as DfColor, Nn as DfDateTime, Ln as DfFile, Un as DfImage, Wn as DfInput, Rr as DfInputComponentProps, Fr as DfInputComponents, $ as DfInputHint, Xt as DfLabel, Dr as DfRtfEditor, Nr as DfSelect, Pr as DfTextArea, zr as DynamicFormsInputs, Nt as FileGoneError, Ft as HtmlString, rn as InputBase, $t as Label, Pt as MdString, Yt as MessagesWidget, Gt as RenderableValue, fn as ResponsiveActionRenderOptions, ln as ResponsiveRenderOptions, Ir as VuetifyComponents, an as actionDisplayStyles, en as defaultBaseProps, on as defaultDisplayStyle, Lr as dfInputComponentsByTag, qt as errorText, un as getBreakpointName, pn as getRenderOptionsForBreakpoint, sn as isActionDisplayStyle, Wt as isCallableFunction, Lt as isRenderContent, It as isSimpleComponentDef, Ht as renderContentText, cn as responsiveBreakpoints, Zt as selectShownErrors, Cn as setFileGoneError, Kt as toErrorDescription, bn as translate, _n as translateStrings, dn as useBreakpoint, Sn as useFileTouchKeepAlive, tn as useInputBase, Qt as useShownErrors, xn as useTranslate, Jt as vuetifyInputsSettingsKey };
|
|
4154
4121
|
|
|
4155
4122
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|