@dynamicforms/vuetify-inputs 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var n in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
1
|
+
var tt = Object.defineProperty, nt = Object.defineProperties;
|
|
2
|
+
var ot = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var xe = Object.getOwnPropertySymbols;
|
|
4
|
+
var lt = Object.prototype.hasOwnProperty, at = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var je = (e, t, n) => t in e ? tt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, x = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
lt.call(t, n) && je(e, n, t[n]);
|
|
8
|
+
if (xe)
|
|
9
|
+
for (var n of xe(t))
|
|
10
|
+
at.call(t, n) && je(e, n, t[n]);
|
|
11
|
+
return e;
|
|
12
|
+
}, O = (e, t) => nt(e, ot(t));
|
|
13
|
+
var Se = (e, t, n) => je(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
|
+
var we = (e, t, n) => new Promise((l, a) => {
|
|
15
|
+
var r = (c) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
i(n.next(c));
|
|
18
|
+
} catch (u) {
|
|
19
|
+
a(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, p = (c) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
i(n.throw(c));
|
|
24
|
+
} catch (u) {
|
|
25
|
+
a(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, i = (c) => c.done ? l(c.value) : Promise.resolve(c.value).then(r, p);
|
|
28
|
+
i((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
31
|
-
import { defineComponent as
|
|
32
|
-
import { debounce as
|
|
33
|
-
import
|
|
34
|
-
import Re, { ValidationErrorRenderContent as
|
|
35
|
-
import
|
|
36
|
-
import { useDisplay as
|
|
37
|
-
import { format as
|
|
38
|
-
import { AccessibilityHelp as
|
|
39
|
-
import { VAutocomplete as
|
|
40
|
-
import { VBtn as
|
|
41
|
-
import { VCheckbox as
|
|
42
|
-
import { VChip as
|
|
43
|
-
import { VCombobox as
|
|
44
|
-
import { VColorPicker as
|
|
45
|
-
import { VConfirmEdit as
|
|
46
|
-
import { VDatePicker as
|
|
47
|
-
import { VField as
|
|
48
|
-
import { VFileInput as
|
|
49
|
-
import { VCol as
|
|
50
|
-
import { VIcon as
|
|
51
|
-
import { VImg as
|
|
52
|
-
import { VInput as
|
|
53
|
-
import { VListItem as
|
|
54
|
-
import { VMenu as
|
|
55
|
-
import { VNumberInput as
|
|
56
|
-
import { VProgressLinear as
|
|
57
|
-
import { VSelect as
|
|
58
|
-
import { VSwitch as
|
|
59
|
-
import { VTextarea as
|
|
60
|
-
import { VTextField as
|
|
61
|
-
import { VTimePicker as
|
|
30
|
+
import * as Ee from "vue";
|
|
31
|
+
import { defineComponent as M, mergeModels as Ne, useModel as rt, ref as E, watch as ue, onMounted as He, markRaw as it, onBeforeUnmount as Ke, createBlock as P, openBlock as h, resolveDynamicComponent as ce, version as st, isRef as te, resolveComponent as $, createElementBlock as A, createCommentVNode as L, createTextVNode as Xe, Fragment as Ie, toDisplayString as se, inject as ut, computed as _, renderList as Ge, normalizeClass as ge, unref as o, mergeProps as H, withCtx as v, createSlots as q, createVNode as B, renderSlot as ie, normalizeProps as X, guardReactiveProps as G, createElementVNode as ne, withModifiers as ct, mergeDefaults as Y, normalizeStyle as Pe, toRefs as _e, withKeys as Fe, useCssVars as dt, nextTick as Ae } from "vue";
|
|
32
|
+
import { debounce as mt, isString as ee, isEmpty as be, isObjectLike as pt, isBoolean as Le, clone as ft, toNumber as Me, isNaN as Ue, isArray as Oe, castArray as qe, first as Ye, unionBy as vt } from "lodash-es";
|
|
33
|
+
import Be from "vue-ionicon";
|
|
34
|
+
import Re, { ValidationErrorRenderContent as bt, DisplayMode as z, Action as ht } from "@dynamicforms/vue-forms";
|
|
35
|
+
import gt from "vue-markdown-render";
|
|
36
|
+
import { useDisplay as wt } from "vuetify";
|
|
37
|
+
import { format as pe, parse as yt } from "date-fns";
|
|
38
|
+
import { AccessibilityHelp as kt, Alignment as Vt, AutoImage as _t, AutoLink as jt, Autosave as Ct, BalloonToolbar as Tt, BlockQuote as Bt, Bold as It, CloudServices as Pt, Essentials as Dt, GeneralHtmlSupport as $t, Heading as xt, HorizontalLine as St, ImageBlock as Et, ImageCaption as Nt, ImageInline as Ft, ImageInsertViaUrl as At, ImageResize as Lt, ImageStyle as Mt, ImageToolbar as Ut, ImageUpload as Ot, Indent as Rt, IndentBlock as Wt, Italic as zt, Link as Ht, List as Kt, Autoformat as Xt, MediaEmbed as Gt, Paragraph as qt, PasteFromMarkdownExperimental as Yt, PasteFromOffice as Qt, SelectAll as Zt, Style as Jt, Table as en, TableCellProperties as tn, TableColumnResize as nn, TableProperties as on, TableToolbar as ln, Undo as an, TextTransformation as rn, Base64UploadAdapter as sn, ClassicEditor as un } from "ckeditor5";
|
|
39
|
+
import { VAutocomplete as cn } from "vuetify/components/VAutocomplete";
|
|
40
|
+
import { VBtn as dn } from "vuetify/components/VBtn";
|
|
41
|
+
import { VCheckbox as mn } from "vuetify/components/VCheckbox";
|
|
42
|
+
import { VChip as pn } from "vuetify/components/VChip";
|
|
43
|
+
import { VCombobox as fn } from "vuetify/components/VCombobox";
|
|
44
|
+
import { VColorPicker as vn } from "vuetify/components/VColorPicker";
|
|
45
|
+
import { VConfirmEdit as bn } from "vuetify/components/VConfirmEdit";
|
|
46
|
+
import { VDatePicker as hn } from "vuetify/components/VDatePicker";
|
|
47
|
+
import { VField as gn } from "vuetify/components/VField";
|
|
48
|
+
import { VFileInput as wn } from "vuetify/components/VFileInput";
|
|
49
|
+
import { VCol as yn, VRow as kn } from "vuetify/components/VGrid";
|
|
50
|
+
import { VIcon as Vn } from "vuetify/components/VIcon";
|
|
51
|
+
import { VImg as _n } from "vuetify/components/VImg";
|
|
52
|
+
import { VInput as jn } from "vuetify/components/VInput";
|
|
53
|
+
import { VListItem as Cn } from "vuetify/components/VList";
|
|
54
|
+
import { VMenu as Tn } from "vuetify/components/VMenu";
|
|
55
|
+
import { VNumberInput as Bn } from "vuetify/components/VNumberInput";
|
|
56
|
+
import { VProgressLinear as In } from "vuetify/components/VProgressLinear";
|
|
57
|
+
import { VSelect as Pn } from "vuetify/components/VSelect";
|
|
58
|
+
import { VSwitch as Dn } from "vuetify/components/VSwitch";
|
|
59
|
+
import { VTextarea as $n } from "vuetify/components/VTextarea";
|
|
60
|
+
import { VTextField as xn } from "vuetify/components/VTextField";
|
|
61
|
+
import { VTimePicker as Sn } from "vuetify/labs/VTimePicker";
|
|
62
62
|
/**
|
|
63
63
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
64
64
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -67,17 +67,17 @@ import { VTimePicker as Dt } from "vuetify/labs/VTimePicker";
|
|
|
67
67
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
68
68
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
69
69
|
*/
|
|
70
|
-
new Array(256).fill("").map((
|
|
70
|
+
new Array(256).fill("").map((e, t) => ("0" + t.toString(16)).slice(-2));
|
|
71
71
|
/**
|
|
72
72
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
73
73
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
74
74
|
*/
|
|
75
|
-
function
|
|
76
|
-
const n =
|
|
77
|
-
return
|
|
75
|
+
function En(e, t) {
|
|
76
|
+
const n = e.extraPlugins || [];
|
|
77
|
+
return O(x({}, e), {
|
|
78
78
|
extraPlugins: [
|
|
79
79
|
...n,
|
|
80
|
-
...
|
|
80
|
+
...t.filter((l) => !n.includes(l))
|
|
81
81
|
]
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -85,45 +85,45 @@ function xt(l, e) {
|
|
|
85
85
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
86
86
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
87
87
|
*/
|
|
88
|
-
function
|
|
89
|
-
return !!
|
|
88
|
+
function Qe(e) {
|
|
89
|
+
return !!e && /^\d+\.\d+\.\d+/.test(e);
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
93
93
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
94
94
|
*/
|
|
95
|
-
function
|
|
96
|
-
return
|
|
95
|
+
function Ze(e) {
|
|
96
|
+
return e ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((t) => e.includes(t)) : !1;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
98
|
+
function Nn(e) {
|
|
99
|
+
return Qe(e) || Ze(e);
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
102
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
103
103
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
104
104
|
*/
|
|
105
|
-
function
|
|
106
|
-
if (!
|
|
107
|
-
throw new Error(`Invalid semantic version: ${
|
|
108
|
-
const [
|
|
105
|
+
function Fn(e) {
|
|
106
|
+
if (!Qe(e))
|
|
107
|
+
throw new Error(`Invalid semantic version: ${e || "<blank>"}.`);
|
|
108
|
+
const [t, n, l] = e.split(".");
|
|
109
109
|
return {
|
|
110
|
-
major: Number.parseInt(
|
|
110
|
+
major: Number.parseInt(t, 10),
|
|
111
111
|
minor: Number.parseInt(n, 10),
|
|
112
|
-
patch: Number.parseInt(
|
|
112
|
+
patch: Number.parseInt(l, 10)
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
116
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
117
117
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
118
118
|
*/
|
|
119
|
-
function
|
|
120
|
-
if (
|
|
119
|
+
function An(e) {
|
|
120
|
+
if (Ze(e))
|
|
121
121
|
return 3;
|
|
122
|
-
const { major:
|
|
122
|
+
const { major: t } = Fn(e);
|
|
123
123
|
switch (!0) {
|
|
124
|
-
case
|
|
124
|
+
case t >= 44:
|
|
125
125
|
return 3;
|
|
126
|
-
case
|
|
126
|
+
case t >= 38:
|
|
127
127
|
return 2;
|
|
128
128
|
default:
|
|
129
129
|
return 1;
|
|
@@ -133,32 +133,32 @@ function Et(l) {
|
|
|
133
133
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
134
134
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
135
135
|
*/
|
|
136
|
-
function
|
|
137
|
-
const { CKEDITOR_VERSION:
|
|
138
|
-
return
|
|
139
|
-
source:
|
|
140
|
-
version:
|
|
136
|
+
function Ln() {
|
|
137
|
+
const { CKEDITOR_VERSION: e, CKEDITOR: t } = window;
|
|
138
|
+
return Nn(e) ? {
|
|
139
|
+
source: t ? "cdn" : "npm",
|
|
140
|
+
version: e
|
|
141
141
|
} : null;
|
|
142
142
|
}
|
|
143
143
|
/**
|
|
144
144
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
145
145
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
146
146
|
*/
|
|
147
|
-
function
|
|
148
|
-
const
|
|
149
|
-
return
|
|
147
|
+
function Mn() {
|
|
148
|
+
const e = Ln();
|
|
149
|
+
return e ? An(e.version) : null;
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
152
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
153
153
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
154
154
|
*/
|
|
155
|
-
function
|
|
156
|
-
switch (
|
|
155
|
+
function Je(e, t) {
|
|
156
|
+
switch (t || (t = Mn() || void 0), t) {
|
|
157
157
|
case 1:
|
|
158
158
|
case 2:
|
|
159
|
-
return
|
|
159
|
+
return e === void 0;
|
|
160
160
|
case 3:
|
|
161
|
-
return
|
|
161
|
+
return e === "GPL";
|
|
162
162
|
default:
|
|
163
163
|
return !1;
|
|
164
164
|
}
|
|
@@ -167,10 +167,10 @@ function Ye(l, e) {
|
|
|
167
167
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
168
168
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
169
169
|
*/
|
|
170
|
-
function
|
|
171
|
-
return function(
|
|
172
|
-
|
|
173
|
-
|
|
170
|
+
function Un(e, t) {
|
|
171
|
+
return function(l) {
|
|
172
|
+
Je(l.config.get("licenseKey")) || l.on("collectUsageData", (a, { setUsageData: r }) => {
|
|
173
|
+
r(`integration.${e}`, t);
|
|
174
174
|
});
|
|
175
175
|
};
|
|
176
176
|
}
|
|
@@ -178,31 +178,31 @@ function Ft(l, e) {
|
|
|
178
178
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
179
179
|
* For licensing, see LICENSE.md.
|
|
180
180
|
*/
|
|
181
|
-
const
|
|
181
|
+
const On = Un(
|
|
182
182
|
"vue",
|
|
183
183
|
{
|
|
184
184
|
version: "7.3.0",
|
|
185
|
-
frameworkVersion:
|
|
185
|
+
frameworkVersion: st
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
/**
|
|
189
189
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
190
190
|
* For licensing, see LICENSE.md.
|
|
191
191
|
*/
|
|
192
|
-
function
|
|
193
|
-
return
|
|
192
|
+
function Rn(e) {
|
|
193
|
+
return Je(e.licenseKey) ? e : En(e, [
|
|
194
194
|
/**
|
|
195
195
|
* This part of the code is not executed in open-source implementations using a GPL key.
|
|
196
196
|
* It only runs when a specific license key is provided. If you are uncertain whether
|
|
197
197
|
* this applies to your installation, please contact our support team.
|
|
198
198
|
*/
|
|
199
|
-
|
|
199
|
+
On
|
|
200
200
|
]);
|
|
201
201
|
}
|
|
202
|
-
const
|
|
202
|
+
const Ce = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Wn = 300, zn = /* @__PURE__ */ M({
|
|
203
203
|
name: "CKEditor",
|
|
204
204
|
__name: "ckeditor",
|
|
205
|
-
props: /* @__PURE__ */
|
|
205
|
+
props: /* @__PURE__ */ Ne({
|
|
206
206
|
editor: {},
|
|
207
207
|
config: { default: () => ({}) },
|
|
208
208
|
tagName: { default: "div" },
|
|
@@ -212,51 +212,51 @@ const we = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Rt = 300, Pt =
|
|
|
212
212
|
modelValue: { type: String, default: "" },
|
|
213
213
|
modelModifiers: {}
|
|
214
214
|
}),
|
|
215
|
-
emits: /* @__PURE__ */
|
|
216
|
-
setup(
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
-
instance:
|
|
220
|
-
lastEditorData:
|
|
221
|
-
}),
|
|
222
|
-
|
|
223
|
-
}),
|
|
224
|
-
|
|
215
|
+
emits: /* @__PURE__ */ Ne(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
|
|
216
|
+
setup(e, { expose: t, emit: n }) {
|
|
217
|
+
const l = rt(e, "modelValue"), a = e, r = n, p = E(), i = E(), c = E();
|
|
218
|
+
t({
|
|
219
|
+
instance: i,
|
|
220
|
+
lastEditorData: c
|
|
221
|
+
}), ue(l, (s) => {
|
|
222
|
+
i.value && s !== c.value && i.value.data.set(s);
|
|
223
|
+
}), ue(() => a.disabled, (s) => {
|
|
224
|
+
s ? i.value.enableReadOnlyMode(Ce) : i.value.disableReadOnlyMode(Ce);
|
|
225
225
|
});
|
|
226
|
-
function
|
|
227
|
-
const
|
|
228
|
-
if (!
|
|
226
|
+
function u() {
|
|
227
|
+
const s = window.CKEDITOR_VERSION;
|
|
228
|
+
if (!s)
|
|
229
229
|
return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
|
|
230
|
-
const [
|
|
231
|
-
|
|
230
|
+
const [m] = s.split(".").map(Number);
|
|
231
|
+
m >= 42 || s.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
const
|
|
235
|
-
if (
|
|
233
|
+
function j(s) {
|
|
234
|
+
const m = mt((b) => {
|
|
235
|
+
if (a.disableTwoWayDataBinding)
|
|
236
236
|
return;
|
|
237
|
-
const
|
|
238
|
-
|
|
239
|
-
},
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}),
|
|
243
|
-
|
|
237
|
+
const g = c.value = s.data.get();
|
|
238
|
+
r("update:modelValue", g, b, s), r("input", g, b, s);
|
|
239
|
+
}, Wn, { leading: !0 });
|
|
240
|
+
s.model.document.on("change:data", m), s.editing.view.document.on("focus", (b) => {
|
|
241
|
+
r("focus", b, s);
|
|
242
|
+
}), s.editing.view.document.on("blur", (b) => {
|
|
243
|
+
r("blur", b, s);
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
|
-
return
|
|
247
|
-
const
|
|
248
|
-
Object.assign({},
|
|
246
|
+
return u(), He(() => {
|
|
247
|
+
const s = Rn(
|
|
248
|
+
Object.assign({}, a.config)
|
|
249
249
|
);
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}).catch((
|
|
253
|
-
console.error(
|
|
250
|
+
l.value && (s.initialData = l.value), a.editor.create(p.value, s).then((m) => {
|
|
251
|
+
i.value = it(m), j(m), l.value !== s.initialData && m.data.set(l.value), a.disabled && m.enableReadOnlyMode(Ce), r("ready", m);
|
|
252
|
+
}).catch((m) => {
|
|
253
|
+
console.error(m);
|
|
254
254
|
});
|
|
255
|
-
}),
|
|
256
|
-
|
|
257
|
-
}), (
|
|
255
|
+
}), Ke(() => {
|
|
256
|
+
i.value && (i.value.destroy(), i.value = void 0), r("destroy");
|
|
257
|
+
}), (s, m) => (h(), P(ce(s.tagName), {
|
|
258
258
|
ref_key: "element",
|
|
259
|
-
ref:
|
|
259
|
+
ref: p
|
|
260
260
|
}, null, 512));
|
|
261
261
|
}
|
|
262
262
|
});
|
|
@@ -265,144 +265,851 @@ const we = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Rt = 300, Pt =
|
|
|
265
265
|
* For licensing, see LICENSE.md.
|
|
266
266
|
*/
|
|
267
267
|
/* istanbul ignore if -- @preserve */
|
|
268
|
-
if (!
|
|
268
|
+
if (!Ee.version || !Ee.version.startsWith("3."))
|
|
269
269
|
throw new Error(
|
|
270
270
|
"The CKEditor plugin works only with Vue 3+. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v3.html"
|
|
271
271
|
);
|
|
272
|
-
const
|
|
272
|
+
const Hn = {
|
|
273
273
|
/**
|
|
274
274
|
* Installs the plugin, registering the `<ckeditor>` component.
|
|
275
275
|
*
|
|
276
276
|
* @param app The application instance.
|
|
277
277
|
*/
|
|
278
|
-
install(
|
|
279
|
-
|
|
278
|
+
install(e) {
|
|
279
|
+
e.component("Ckeditor", zn);
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
function Te(e) {
|
|
283
|
+
return (t = {}) => {
|
|
284
|
+
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
285
|
+
return e.formats[n] || e.formats[e.defaultWidth];
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
function fe(e) {
|
|
289
|
+
return (t, n) => {
|
|
290
|
+
const l = n != null && n.context ? String(n.context) : "standalone";
|
|
291
|
+
let a;
|
|
292
|
+
if (l === "formatting" && e.formattingValues) {
|
|
293
|
+
const p = e.defaultFormattingWidth || e.defaultWidth, i = n != null && n.width ? String(n.width) : p;
|
|
294
|
+
a = e.formattingValues[i] || e.formattingValues[p];
|
|
295
|
+
} else {
|
|
296
|
+
const p = e.defaultWidth, i = n != null && n.width ? String(n.width) : e.defaultWidth;
|
|
297
|
+
a = e.values[i] || e.values[p];
|
|
298
|
+
}
|
|
299
|
+
const r = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
300
|
+
return a[r];
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
function ve(e) {
|
|
304
|
+
return (t, n = {}) => {
|
|
305
|
+
const l = n.width, a = l && e.matchPatterns[l] || e.matchPatterns[e.defaultMatchWidth], r = t.match(a);
|
|
306
|
+
if (!r)
|
|
307
|
+
return null;
|
|
308
|
+
const p = r[0], i = l && e.parsePatterns[l] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(i) ? Xn(i, (s) => s.test(p)) : (
|
|
309
|
+
// [TODO] -- I challenge you to fix the type
|
|
310
|
+
Kn(i, (s) => s.test(p))
|
|
311
|
+
);
|
|
312
|
+
let u;
|
|
313
|
+
u = e.valueCallback ? e.valueCallback(c) : c, u = n.valueCallback ? (
|
|
314
|
+
// [TODO] -- I challenge you to fix the type
|
|
315
|
+
n.valueCallback(u)
|
|
316
|
+
) : u;
|
|
317
|
+
const j = t.slice(p.length);
|
|
318
|
+
return { value: u, rest: j };
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
function Kn(e, t) {
|
|
322
|
+
for (const n in e)
|
|
323
|
+
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
324
|
+
return n;
|
|
325
|
+
}
|
|
326
|
+
function Xn(e, t) {
|
|
327
|
+
for (let n = 0; n < e.length; n++)
|
|
328
|
+
if (t(e[n]))
|
|
329
|
+
return n;
|
|
330
|
+
}
|
|
331
|
+
function Gn(e) {
|
|
332
|
+
return (t, n = {}) => {
|
|
333
|
+
const l = t.match(e.matchPattern);
|
|
334
|
+
if (!l) return null;
|
|
335
|
+
const a = l[0], r = t.match(e.parsePattern);
|
|
336
|
+
if (!r) return null;
|
|
337
|
+
let p = e.valueCallback ? e.valueCallback(r[0]) : r[0];
|
|
338
|
+
p = n.valueCallback ? n.valueCallback(p) : p;
|
|
339
|
+
const i = t.slice(a.length);
|
|
340
|
+
return { value: p, rest: i };
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
function qn(e) {
|
|
344
|
+
return e.one !== void 0;
|
|
345
|
+
}
|
|
346
|
+
const Yn = {
|
|
347
|
+
lessThanXSeconds: {
|
|
348
|
+
present: {
|
|
349
|
+
one: "manj kot {{count}} sekunda",
|
|
350
|
+
two: "manj kot {{count}} sekundi",
|
|
351
|
+
few: "manj kot {{count}} sekunde",
|
|
352
|
+
other: "manj kot {{count}} sekund"
|
|
353
|
+
},
|
|
354
|
+
past: {
|
|
355
|
+
one: "manj kot {{count}} sekundo",
|
|
356
|
+
two: "manj kot {{count}} sekundama",
|
|
357
|
+
few: "manj kot {{count}} sekundami",
|
|
358
|
+
other: "manj kot {{count}} sekundami"
|
|
359
|
+
},
|
|
360
|
+
future: {
|
|
361
|
+
one: "manj kot {{count}} sekundo",
|
|
362
|
+
two: "manj kot {{count}} sekundi",
|
|
363
|
+
few: "manj kot {{count}} sekunde",
|
|
364
|
+
other: "manj kot {{count}} sekund"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
xSeconds: {
|
|
368
|
+
present: {
|
|
369
|
+
one: "{{count}} sekunda",
|
|
370
|
+
two: "{{count}} sekundi",
|
|
371
|
+
few: "{{count}} sekunde",
|
|
372
|
+
other: "{{count}} sekund"
|
|
373
|
+
},
|
|
374
|
+
past: {
|
|
375
|
+
one: "{{count}} sekundo",
|
|
376
|
+
two: "{{count}} sekundama",
|
|
377
|
+
few: "{{count}} sekundami",
|
|
378
|
+
other: "{{count}} sekundami"
|
|
379
|
+
},
|
|
380
|
+
future: {
|
|
381
|
+
one: "{{count}} sekundo",
|
|
382
|
+
two: "{{count}} sekundi",
|
|
383
|
+
few: "{{count}} sekunde",
|
|
384
|
+
other: "{{count}} sekund"
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
halfAMinute: "pol minute",
|
|
388
|
+
lessThanXMinutes: {
|
|
389
|
+
present: {
|
|
390
|
+
one: "manj kot {{count}} minuta",
|
|
391
|
+
two: "manj kot {{count}} minuti",
|
|
392
|
+
few: "manj kot {{count}} minute",
|
|
393
|
+
other: "manj kot {{count}} minut"
|
|
394
|
+
},
|
|
395
|
+
past: {
|
|
396
|
+
one: "manj kot {{count}} minuto",
|
|
397
|
+
two: "manj kot {{count}} minutama",
|
|
398
|
+
few: "manj kot {{count}} minutami",
|
|
399
|
+
other: "manj kot {{count}} minutami"
|
|
400
|
+
},
|
|
401
|
+
future: {
|
|
402
|
+
one: "manj kot {{count}} minuto",
|
|
403
|
+
two: "manj kot {{count}} minuti",
|
|
404
|
+
few: "manj kot {{count}} minute",
|
|
405
|
+
other: "manj kot {{count}} minut"
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
xMinutes: {
|
|
409
|
+
present: {
|
|
410
|
+
one: "{{count}} minuta",
|
|
411
|
+
two: "{{count}} minuti",
|
|
412
|
+
few: "{{count}} minute",
|
|
413
|
+
other: "{{count}} minut"
|
|
414
|
+
},
|
|
415
|
+
past: {
|
|
416
|
+
one: "{{count}} minuto",
|
|
417
|
+
two: "{{count}} minutama",
|
|
418
|
+
few: "{{count}} minutami",
|
|
419
|
+
other: "{{count}} minutami"
|
|
420
|
+
},
|
|
421
|
+
future: {
|
|
422
|
+
one: "{{count}} minuto",
|
|
423
|
+
two: "{{count}} minuti",
|
|
424
|
+
few: "{{count}} minute",
|
|
425
|
+
other: "{{count}} minut"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
aboutXHours: {
|
|
429
|
+
present: {
|
|
430
|
+
one: "približno {{count}} ura",
|
|
431
|
+
two: "približno {{count}} uri",
|
|
432
|
+
few: "približno {{count}} ure",
|
|
433
|
+
other: "približno {{count}} ur"
|
|
434
|
+
},
|
|
435
|
+
past: {
|
|
436
|
+
one: "približno {{count}} uro",
|
|
437
|
+
two: "približno {{count}} urama",
|
|
438
|
+
few: "približno {{count}} urami",
|
|
439
|
+
other: "približno {{count}} urami"
|
|
440
|
+
},
|
|
441
|
+
future: {
|
|
442
|
+
one: "približno {{count}} uro",
|
|
443
|
+
two: "približno {{count}} uri",
|
|
444
|
+
few: "približno {{count}} ure",
|
|
445
|
+
other: "približno {{count}} ur"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
xHours: {
|
|
449
|
+
present: {
|
|
450
|
+
one: "{{count}} ura",
|
|
451
|
+
two: "{{count}} uri",
|
|
452
|
+
few: "{{count}} ure",
|
|
453
|
+
other: "{{count}} ur"
|
|
454
|
+
},
|
|
455
|
+
past: {
|
|
456
|
+
one: "{{count}} uro",
|
|
457
|
+
two: "{{count}} urama",
|
|
458
|
+
few: "{{count}} urami",
|
|
459
|
+
other: "{{count}} urami"
|
|
460
|
+
},
|
|
461
|
+
future: {
|
|
462
|
+
one: "{{count}} uro",
|
|
463
|
+
two: "{{count}} uri",
|
|
464
|
+
few: "{{count}} ure",
|
|
465
|
+
other: "{{count}} ur"
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
xDays: {
|
|
469
|
+
present: {
|
|
470
|
+
one: "{{count}} dan",
|
|
471
|
+
two: "{{count}} dni",
|
|
472
|
+
few: "{{count}} dni",
|
|
473
|
+
other: "{{count}} dni"
|
|
474
|
+
},
|
|
475
|
+
past: {
|
|
476
|
+
one: "{{count}} dnem",
|
|
477
|
+
two: "{{count}} dnevoma",
|
|
478
|
+
few: "{{count}} dnevi",
|
|
479
|
+
other: "{{count}} dnevi"
|
|
480
|
+
},
|
|
481
|
+
future: {
|
|
482
|
+
one: "{{count}} dan",
|
|
483
|
+
two: "{{count}} dni",
|
|
484
|
+
few: "{{count}} dni",
|
|
485
|
+
other: "{{count}} dni"
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
// no tenses for weeks?
|
|
489
|
+
aboutXWeeks: {
|
|
490
|
+
one: "približno {{count}} teden",
|
|
491
|
+
two: "približno {{count}} tedna",
|
|
492
|
+
few: "približno {{count}} tedne",
|
|
493
|
+
other: "približno {{count}} tednov"
|
|
494
|
+
},
|
|
495
|
+
// no tenses for weeks?
|
|
496
|
+
xWeeks: {
|
|
497
|
+
one: "{{count}} teden",
|
|
498
|
+
two: "{{count}} tedna",
|
|
499
|
+
few: "{{count}} tedne",
|
|
500
|
+
other: "{{count}} tednov"
|
|
501
|
+
},
|
|
502
|
+
aboutXMonths: {
|
|
503
|
+
present: {
|
|
504
|
+
one: "približno {{count}} mesec",
|
|
505
|
+
two: "približno {{count}} meseca",
|
|
506
|
+
few: "približno {{count}} mesece",
|
|
507
|
+
other: "približno {{count}} mesecev"
|
|
508
|
+
},
|
|
509
|
+
past: {
|
|
510
|
+
one: "približno {{count}} mesecem",
|
|
511
|
+
two: "približno {{count}} mesecema",
|
|
512
|
+
few: "približno {{count}} meseci",
|
|
513
|
+
other: "približno {{count}} meseci"
|
|
514
|
+
},
|
|
515
|
+
future: {
|
|
516
|
+
one: "približno {{count}} mesec",
|
|
517
|
+
two: "približno {{count}} meseca",
|
|
518
|
+
few: "približno {{count}} mesece",
|
|
519
|
+
other: "približno {{count}} mesecev"
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
xMonths: {
|
|
523
|
+
present: {
|
|
524
|
+
one: "{{count}} mesec",
|
|
525
|
+
two: "{{count}} meseca",
|
|
526
|
+
few: "{{count}} meseci",
|
|
527
|
+
other: "{{count}} mesecev"
|
|
528
|
+
},
|
|
529
|
+
past: {
|
|
530
|
+
one: "{{count}} mesecem",
|
|
531
|
+
two: "{{count}} mesecema",
|
|
532
|
+
few: "{{count}} meseci",
|
|
533
|
+
other: "{{count}} meseci"
|
|
534
|
+
},
|
|
535
|
+
future: {
|
|
536
|
+
one: "{{count}} mesec",
|
|
537
|
+
two: "{{count}} meseca",
|
|
538
|
+
few: "{{count}} mesece",
|
|
539
|
+
other: "{{count}} mesecev"
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
aboutXYears: {
|
|
543
|
+
present: {
|
|
544
|
+
one: "približno {{count}} leto",
|
|
545
|
+
two: "približno {{count}} leti",
|
|
546
|
+
few: "približno {{count}} leta",
|
|
547
|
+
other: "približno {{count}} let"
|
|
548
|
+
},
|
|
549
|
+
past: {
|
|
550
|
+
one: "približno {{count}} letom",
|
|
551
|
+
two: "približno {{count}} letoma",
|
|
552
|
+
few: "približno {{count}} leti",
|
|
553
|
+
other: "približno {{count}} leti"
|
|
554
|
+
},
|
|
555
|
+
future: {
|
|
556
|
+
one: "približno {{count}} leto",
|
|
557
|
+
two: "približno {{count}} leti",
|
|
558
|
+
few: "približno {{count}} leta",
|
|
559
|
+
other: "približno {{count}} let"
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
xYears: {
|
|
563
|
+
present: {
|
|
564
|
+
one: "{{count}} leto",
|
|
565
|
+
two: "{{count}} leti",
|
|
566
|
+
few: "{{count}} leta",
|
|
567
|
+
other: "{{count}} let"
|
|
568
|
+
},
|
|
569
|
+
past: {
|
|
570
|
+
one: "{{count}} letom",
|
|
571
|
+
two: "{{count}} letoma",
|
|
572
|
+
few: "{{count}} leti",
|
|
573
|
+
other: "{{count}} leti"
|
|
574
|
+
},
|
|
575
|
+
future: {
|
|
576
|
+
one: "{{count}} leto",
|
|
577
|
+
two: "{{count}} leti",
|
|
578
|
+
few: "{{count}} leta",
|
|
579
|
+
other: "{{count}} let"
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
overXYears: {
|
|
583
|
+
present: {
|
|
584
|
+
one: "več kot {{count}} leto",
|
|
585
|
+
two: "več kot {{count}} leti",
|
|
586
|
+
few: "več kot {{count}} leta",
|
|
587
|
+
other: "več kot {{count}} let"
|
|
588
|
+
},
|
|
589
|
+
past: {
|
|
590
|
+
one: "več kot {{count}} letom",
|
|
591
|
+
two: "več kot {{count}} letoma",
|
|
592
|
+
few: "več kot {{count}} leti",
|
|
593
|
+
other: "več kot {{count}} leti"
|
|
594
|
+
},
|
|
595
|
+
future: {
|
|
596
|
+
one: "več kot {{count}} leto",
|
|
597
|
+
two: "več kot {{count}} leti",
|
|
598
|
+
few: "več kot {{count}} leta",
|
|
599
|
+
other: "več kot {{count}} let"
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
almostXYears: {
|
|
603
|
+
present: {
|
|
604
|
+
one: "skoraj {{count}} leto",
|
|
605
|
+
two: "skoraj {{count}} leti",
|
|
606
|
+
few: "skoraj {{count}} leta",
|
|
607
|
+
other: "skoraj {{count}} let"
|
|
608
|
+
},
|
|
609
|
+
past: {
|
|
610
|
+
one: "skoraj {{count}} letom",
|
|
611
|
+
two: "skoraj {{count}} letoma",
|
|
612
|
+
few: "skoraj {{count}} leti",
|
|
613
|
+
other: "skoraj {{count}} leti"
|
|
614
|
+
},
|
|
615
|
+
future: {
|
|
616
|
+
one: "skoraj {{count}} leto",
|
|
617
|
+
two: "skoraj {{count}} leti",
|
|
618
|
+
few: "skoraj {{count}} leta",
|
|
619
|
+
other: "skoraj {{count}} let"
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
};
|
|
623
|
+
function Qn(e) {
|
|
624
|
+
switch (e % 100) {
|
|
625
|
+
case 1:
|
|
626
|
+
return "one";
|
|
627
|
+
case 2:
|
|
628
|
+
return "two";
|
|
629
|
+
case 3:
|
|
630
|
+
case 4:
|
|
631
|
+
return "few";
|
|
632
|
+
default:
|
|
633
|
+
return "other";
|
|
280
634
|
}
|
|
281
|
-
}
|
|
635
|
+
}
|
|
636
|
+
const Zn = (e, t, n) => {
|
|
637
|
+
let l = "", a = "present";
|
|
638
|
+
n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (a = "future", l = "čez ") : (a = "past", l = "pred "));
|
|
639
|
+
const r = Yn[e];
|
|
640
|
+
if (typeof r == "string")
|
|
641
|
+
l += r;
|
|
642
|
+
else {
|
|
643
|
+
const p = Qn(t);
|
|
644
|
+
qn(r) ? l += r[p].replace("{{count}}", String(t)) : l += r[a][p].replace("{{count}}", String(t));
|
|
645
|
+
}
|
|
646
|
+
return l;
|
|
647
|
+
}, Jn = {
|
|
648
|
+
full: "EEEE, dd. MMMM y",
|
|
649
|
+
long: "dd. MMMM y",
|
|
650
|
+
medium: "d. MMM y",
|
|
651
|
+
short: "d. MM. yy"
|
|
652
|
+
}, eo = {
|
|
653
|
+
full: "HH:mm:ss zzzz",
|
|
654
|
+
long: "HH:mm:ss z",
|
|
655
|
+
medium: "HH:mm:ss",
|
|
656
|
+
short: "HH:mm"
|
|
657
|
+
}, to = {
|
|
658
|
+
full: "{{date}} {{time}}",
|
|
659
|
+
long: "{{date}} {{time}}",
|
|
660
|
+
medium: "{{date}} {{time}}",
|
|
661
|
+
short: "{{date}} {{time}}"
|
|
662
|
+
}, no = {
|
|
663
|
+
date: Te({
|
|
664
|
+
formats: Jn,
|
|
665
|
+
defaultWidth: "full"
|
|
666
|
+
}),
|
|
667
|
+
time: Te({
|
|
668
|
+
formats: eo,
|
|
669
|
+
defaultWidth: "full"
|
|
670
|
+
}),
|
|
671
|
+
dateTime: Te({
|
|
672
|
+
formats: to,
|
|
673
|
+
defaultWidth: "full"
|
|
674
|
+
})
|
|
675
|
+
}, oo = {
|
|
676
|
+
lastWeek: (e) => {
|
|
677
|
+
switch (e.getDay()) {
|
|
678
|
+
case 0:
|
|
679
|
+
return "'prejšnjo nedeljo ob' p";
|
|
680
|
+
case 3:
|
|
681
|
+
return "'prejšnjo sredo ob' p";
|
|
682
|
+
case 6:
|
|
683
|
+
return "'prejšnjo soboto ob' p";
|
|
684
|
+
default:
|
|
685
|
+
return "'prejšnji' EEEE 'ob' p";
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
yesterday: "'včeraj ob' p",
|
|
689
|
+
today: "'danes ob' p",
|
|
690
|
+
tomorrow: "'jutri ob' p",
|
|
691
|
+
nextWeek: (e) => {
|
|
692
|
+
switch (e.getDay()) {
|
|
693
|
+
case 0:
|
|
694
|
+
return "'naslednjo nedeljo ob' p";
|
|
695
|
+
case 3:
|
|
696
|
+
return "'naslednjo sredo ob' p";
|
|
697
|
+
case 6:
|
|
698
|
+
return "'naslednjo soboto ob' p";
|
|
699
|
+
default:
|
|
700
|
+
return "'naslednji' EEEE 'ob' p";
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
other: "P"
|
|
704
|
+
}, lo = (e, t, n, l) => {
|
|
705
|
+
const a = oo[e];
|
|
706
|
+
return typeof a == "function" ? a(t) : a;
|
|
707
|
+
}, ao = {
|
|
708
|
+
narrow: ["pr. n. št.", "po n. št."],
|
|
709
|
+
abbreviated: ["pr. n. št.", "po n. št."],
|
|
710
|
+
wide: ["pred našim štetjem", "po našem štetju"]
|
|
711
|
+
}, ro = {
|
|
712
|
+
narrow: ["1", "2", "3", "4"],
|
|
713
|
+
abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."],
|
|
714
|
+
wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"]
|
|
715
|
+
}, io = {
|
|
716
|
+
narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
|
717
|
+
abbreviated: [
|
|
718
|
+
"jan.",
|
|
719
|
+
"feb.",
|
|
720
|
+
"mar.",
|
|
721
|
+
"apr.",
|
|
722
|
+
"maj",
|
|
723
|
+
"jun.",
|
|
724
|
+
"jul.",
|
|
725
|
+
"avg.",
|
|
726
|
+
"sep.",
|
|
727
|
+
"okt.",
|
|
728
|
+
"nov.",
|
|
729
|
+
"dec."
|
|
730
|
+
],
|
|
731
|
+
wide: [
|
|
732
|
+
"januar",
|
|
733
|
+
"februar",
|
|
734
|
+
"marec",
|
|
735
|
+
"april",
|
|
736
|
+
"maj",
|
|
737
|
+
"junij",
|
|
738
|
+
"julij",
|
|
739
|
+
"avgust",
|
|
740
|
+
"september",
|
|
741
|
+
"oktober",
|
|
742
|
+
"november",
|
|
743
|
+
"december"
|
|
744
|
+
]
|
|
745
|
+
}, so = {
|
|
746
|
+
narrow: ["n", "p", "t", "s", "č", "p", "s"],
|
|
747
|
+
short: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
|
748
|
+
abbreviated: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
|
|
749
|
+
wide: [
|
|
750
|
+
"nedelja",
|
|
751
|
+
"ponedeljek",
|
|
752
|
+
"torek",
|
|
753
|
+
"sreda",
|
|
754
|
+
"četrtek",
|
|
755
|
+
"petek",
|
|
756
|
+
"sobota"
|
|
757
|
+
]
|
|
758
|
+
}, uo = {
|
|
759
|
+
narrow: {
|
|
760
|
+
am: "d",
|
|
761
|
+
pm: "p",
|
|
762
|
+
midnight: "24.00",
|
|
763
|
+
noon: "12.00",
|
|
764
|
+
morning: "j",
|
|
765
|
+
afternoon: "p",
|
|
766
|
+
evening: "v",
|
|
767
|
+
night: "n"
|
|
768
|
+
},
|
|
769
|
+
abbreviated: {
|
|
770
|
+
am: "dop.",
|
|
771
|
+
pm: "pop.",
|
|
772
|
+
midnight: "poln.",
|
|
773
|
+
noon: "pold.",
|
|
774
|
+
morning: "jut.",
|
|
775
|
+
afternoon: "pop.",
|
|
776
|
+
evening: "več.",
|
|
777
|
+
night: "noč"
|
|
778
|
+
},
|
|
779
|
+
wide: {
|
|
780
|
+
am: "dop.",
|
|
781
|
+
pm: "pop.",
|
|
782
|
+
midnight: "polnoč",
|
|
783
|
+
noon: "poldne",
|
|
784
|
+
morning: "jutro",
|
|
785
|
+
afternoon: "popoldne",
|
|
786
|
+
evening: "večer",
|
|
787
|
+
night: "noč"
|
|
788
|
+
}
|
|
789
|
+
}, co = {
|
|
790
|
+
narrow: {
|
|
791
|
+
am: "d",
|
|
792
|
+
pm: "p",
|
|
793
|
+
midnight: "24.00",
|
|
794
|
+
noon: "12.00",
|
|
795
|
+
morning: "zj",
|
|
796
|
+
afternoon: "p",
|
|
797
|
+
evening: "zv",
|
|
798
|
+
night: "po"
|
|
799
|
+
},
|
|
800
|
+
abbreviated: {
|
|
801
|
+
am: "dop.",
|
|
802
|
+
pm: "pop.",
|
|
803
|
+
midnight: "opoln.",
|
|
804
|
+
noon: "opold.",
|
|
805
|
+
morning: "zjut.",
|
|
806
|
+
afternoon: "pop.",
|
|
807
|
+
evening: "zveč.",
|
|
808
|
+
night: "ponoči"
|
|
809
|
+
},
|
|
810
|
+
wide: {
|
|
811
|
+
am: "dop.",
|
|
812
|
+
pm: "pop.",
|
|
813
|
+
midnight: "opolnoči",
|
|
814
|
+
noon: "opoldne",
|
|
815
|
+
morning: "zjutraj",
|
|
816
|
+
afternoon: "popoldan",
|
|
817
|
+
evening: "zvečer",
|
|
818
|
+
night: "ponoči"
|
|
819
|
+
}
|
|
820
|
+
}, mo = (e, t) => Number(e) + ".", po = {
|
|
821
|
+
ordinalNumber: mo,
|
|
822
|
+
era: fe({
|
|
823
|
+
values: ao,
|
|
824
|
+
defaultWidth: "wide"
|
|
825
|
+
}),
|
|
826
|
+
quarter: fe({
|
|
827
|
+
values: ro,
|
|
828
|
+
defaultWidth: "wide",
|
|
829
|
+
argumentCallback: (e) => e - 1
|
|
830
|
+
}),
|
|
831
|
+
month: fe({
|
|
832
|
+
values: io,
|
|
833
|
+
defaultWidth: "wide"
|
|
834
|
+
}),
|
|
835
|
+
day: fe({
|
|
836
|
+
values: so,
|
|
837
|
+
defaultWidth: "wide"
|
|
838
|
+
}),
|
|
839
|
+
dayPeriod: fe({
|
|
840
|
+
values: uo,
|
|
841
|
+
defaultWidth: "wide",
|
|
842
|
+
formattingValues: co,
|
|
843
|
+
defaultFormattingWidth: "wide"
|
|
844
|
+
})
|
|
845
|
+
}, fo = /^(\d+)\./i, vo = /\d+/i, bo = {
|
|
846
|
+
abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
|
|
847
|
+
wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
|
|
848
|
+
}, ho = {
|
|
849
|
+
any: [/^pr/i, /^(po|na[sš]em)/i]
|
|
850
|
+
}, go = {
|
|
851
|
+
narrow: /^[1234]/i,
|
|
852
|
+
abbreviated: /^[1234]\.\s?[čc]et\.?/i,
|
|
853
|
+
wide: /^[1234]\. [čc]etrtletje/i
|
|
854
|
+
}, wo = {
|
|
855
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
856
|
+
}, yo = {
|
|
857
|
+
narrow: /^[jfmasond]/i,
|
|
858
|
+
abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,
|
|
859
|
+
wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i
|
|
860
|
+
}, ko = {
|
|
861
|
+
narrow: [
|
|
862
|
+
/^j/i,
|
|
863
|
+
/^f/i,
|
|
864
|
+
/^m/i,
|
|
865
|
+
/^a/i,
|
|
866
|
+
/^m/i,
|
|
867
|
+
/^j/i,
|
|
868
|
+
/^j/i,
|
|
869
|
+
/^a/i,
|
|
870
|
+
/^s/i,
|
|
871
|
+
/^o/i,
|
|
872
|
+
/^n/i,
|
|
873
|
+
/^d/i
|
|
874
|
+
],
|
|
875
|
+
abbreviated: [
|
|
876
|
+
/^ja/i,
|
|
877
|
+
/^fe/i,
|
|
878
|
+
/^mar/i,
|
|
879
|
+
/^ap/i,
|
|
880
|
+
/^maj/i,
|
|
881
|
+
/^jun/i,
|
|
882
|
+
/^jul/i,
|
|
883
|
+
/^av/i,
|
|
884
|
+
/^s/i,
|
|
885
|
+
/^o/i,
|
|
886
|
+
/^n/i,
|
|
887
|
+
/^d/i
|
|
888
|
+
],
|
|
889
|
+
wide: [
|
|
890
|
+
/^ja/i,
|
|
891
|
+
/^fe/i,
|
|
892
|
+
/^mar/i,
|
|
893
|
+
/^ap/i,
|
|
894
|
+
/^maj/i,
|
|
895
|
+
/^jun/i,
|
|
896
|
+
/^jul/i,
|
|
897
|
+
/^av/i,
|
|
898
|
+
/^s/i,
|
|
899
|
+
/^o/i,
|
|
900
|
+
/^n/i,
|
|
901
|
+
/^d/i
|
|
902
|
+
]
|
|
903
|
+
}, Vo = {
|
|
904
|
+
narrow: /^[nptsčc]/i,
|
|
905
|
+
short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
906
|
+
abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
|
|
907
|
+
wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i
|
|
908
|
+
}, _o = {
|
|
909
|
+
narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i],
|
|
910
|
+
any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i]
|
|
911
|
+
}, jo = {
|
|
912
|
+
narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
|
|
913
|
+
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
|
|
914
|
+
}, Co = {
|
|
915
|
+
narrow: {
|
|
916
|
+
am: /^d/i,
|
|
917
|
+
pm: /^p/i,
|
|
918
|
+
midnight: /^24/i,
|
|
919
|
+
noon: /^12/i,
|
|
920
|
+
morning: /^(z?j)/i,
|
|
921
|
+
afternoon: /^p/i,
|
|
922
|
+
evening: /^(z?v)/i,
|
|
923
|
+
night: /^(n|po)/i
|
|
924
|
+
},
|
|
925
|
+
any: {
|
|
926
|
+
am: /^dop\./i,
|
|
927
|
+
pm: /^pop\./i,
|
|
928
|
+
midnight: /^o?poln/i,
|
|
929
|
+
noon: /^o?pold/i,
|
|
930
|
+
morning: /j/i,
|
|
931
|
+
afternoon: /^pop\./i,
|
|
932
|
+
evening: /^z?ve/i,
|
|
933
|
+
night: /(po)?no/i
|
|
934
|
+
}
|
|
935
|
+
}, To = {
|
|
936
|
+
ordinalNumber: Gn({
|
|
937
|
+
matchPattern: fo,
|
|
938
|
+
parsePattern: vo,
|
|
939
|
+
valueCallback: (e) => parseInt(e, 10)
|
|
940
|
+
}),
|
|
941
|
+
era: ve({
|
|
942
|
+
matchPatterns: bo,
|
|
943
|
+
defaultMatchWidth: "wide",
|
|
944
|
+
parsePatterns: ho,
|
|
945
|
+
defaultParseWidth: "any"
|
|
946
|
+
}),
|
|
947
|
+
quarter: ve({
|
|
948
|
+
matchPatterns: go,
|
|
949
|
+
defaultMatchWidth: "wide",
|
|
950
|
+
parsePatterns: wo,
|
|
951
|
+
defaultParseWidth: "any",
|
|
952
|
+
valueCallback: (e) => e + 1
|
|
953
|
+
}),
|
|
954
|
+
month: ve({
|
|
955
|
+
matchPatterns: yo,
|
|
956
|
+
defaultMatchWidth: "wide",
|
|
957
|
+
parsePatterns: ko,
|
|
958
|
+
defaultParseWidth: "wide"
|
|
959
|
+
}),
|
|
960
|
+
day: ve({
|
|
961
|
+
matchPatterns: Vo,
|
|
962
|
+
defaultMatchWidth: "wide",
|
|
963
|
+
parsePatterns: _o,
|
|
964
|
+
defaultParseWidth: "any"
|
|
965
|
+
}),
|
|
966
|
+
dayPeriod: ve({
|
|
967
|
+
matchPatterns: jo,
|
|
968
|
+
defaultMatchWidth: "any",
|
|
969
|
+
parsePatterns: Co,
|
|
970
|
+
defaultParseWidth: "any"
|
|
971
|
+
})
|
|
972
|
+
}, Bo = {
|
|
973
|
+
code: "sl",
|
|
974
|
+
formatDistance: Zn,
|
|
975
|
+
formatLong: no,
|
|
976
|
+
formatRelative: lo,
|
|
977
|
+
localize: po,
|
|
978
|
+
match: To,
|
|
979
|
+
options: {
|
|
980
|
+
weekStartsOn: 1,
|
|
981
|
+
firstWeekContainsDate: 1
|
|
982
|
+
}
|
|
983
|
+
}, Io = {
|
|
984
|
+
dateTimeLocale: E(Bo),
|
|
985
|
+
setDateTimeLocale(e) {
|
|
986
|
+
te(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
|
|
987
|
+
}
|
|
988
|
+
}, Po = { class: "label" }, Do = /* @__PURE__ */ M({
|
|
282
989
|
__name: "df-label",
|
|
283
990
|
props: {
|
|
284
991
|
data: {},
|
|
285
992
|
label: {}
|
|
286
993
|
},
|
|
287
|
-
setup(
|
|
288
|
-
return (
|
|
289
|
-
const
|
|
290
|
-
return
|
|
291
|
-
|
|
292
|
-
|
|
994
|
+
setup(e) {
|
|
995
|
+
return (t, n) => {
|
|
996
|
+
const l = $("v-icon"), a = $("v-img");
|
|
997
|
+
return h(), A("div", Po, [
|
|
998
|
+
t.label.icon ? (h(), A(Ie, { key: 0 }, [
|
|
999
|
+
t.label.iconComponent === "v-icon" ? (h(), P(l, {
|
|
293
1000
|
key: 0,
|
|
294
|
-
icon:
|
|
1001
|
+
icon: t.label.icon,
|
|
295
1002
|
size: "1.25em"
|
|
296
|
-
}, null, 8, ["icon"])) :
|
|
1003
|
+
}, null, 8, ["icon"])) : t.label.iconComponent === "v-img" ? (h(), P(a, {
|
|
297
1004
|
key: 1,
|
|
298
1005
|
class: "icon",
|
|
299
|
-
src:
|
|
300
|
-
}, null, 8, ["src"])) : (
|
|
1006
|
+
src: t.label.icon
|
|
1007
|
+
}, null, 8, ["src"])) : (h(), P(ce(t.label.iconComponent), {
|
|
301
1008
|
key: 2,
|
|
302
|
-
src:
|
|
1009
|
+
src: t.label.icon
|
|
303
1010
|
}, null, 8, ["src"]))
|
|
304
1011
|
], 64)) : L("", !0),
|
|
305
|
-
|
|
1012
|
+
Xe(" " + se(t.data ? t.data.label : t.label.text), 1)
|
|
306
1013
|
]);
|
|
307
1014
|
};
|
|
308
1015
|
}
|
|
309
|
-
}),
|
|
310
|
-
const n =
|
|
311
|
-
for (const [
|
|
312
|
-
n[
|
|
1016
|
+
}), ae = (e, t) => {
|
|
1017
|
+
const n = e.__vccOpts || e;
|
|
1018
|
+
for (const [l, a] of t)
|
|
1019
|
+
n[l] = a;
|
|
313
1020
|
return n;
|
|
314
|
-
},
|
|
315
|
-
class
|
|
316
|
-
constructor(
|
|
317
|
-
this.text =
|
|
1021
|
+
}, oe = /* @__PURE__ */ ae(Do, [["__scopeId", "data-v-0034f29f"]]), et = Symbol("vuetifyInputsSettingsKey");
|
|
1022
|
+
class $o {
|
|
1023
|
+
constructor(t, n, l = "v-icon") {
|
|
1024
|
+
this.text = t, this.icon = n, this.iconComponent = l;
|
|
318
1025
|
}
|
|
319
1026
|
}
|
|
320
1027
|
const Q = { enabled: void 0, clearable: !0 };
|
|
321
|
-
function K(
|
|
322
|
-
const n =
|
|
1028
|
+
function K(e, t) {
|
|
1029
|
+
const n = ut(et, {}), l = E(null), a = _({
|
|
323
1030
|
get() {
|
|
324
|
-
return
|
|
1031
|
+
return e.control ? e.control.value : e.modelValue === void 0 ? l.value : e.modelValue;
|
|
325
1032
|
},
|
|
326
1033
|
set(k) {
|
|
327
|
-
|
|
1034
|
+
e.control && (e.control.value = k), e.modelValue === void 0 && (l.value = k), t("update:modelValue", k);
|
|
328
1035
|
}
|
|
329
1036
|
});
|
|
330
|
-
if (
|
|
1037
|
+
if (e.control && !(e.control instanceof Re.FieldBase))
|
|
331
1038
|
throw new Error("control prop is not a vue-form control instance");
|
|
332
|
-
const
|
|
333
|
-
() =>
|
|
334
|
-
),
|
|
335
|
-
() =>
|
|
336
|
-
),
|
|
337
|
-
() => ee(
|
|
338
|
-
),
|
|
1039
|
+
const r = E(!1), p = _(() => e.control ? e.control.valid : !0), i = _(
|
|
1040
|
+
() => e.control ? e.control.errors : (e.errors || []).map((k) => new bt(k))
|
|
1041
|
+
), c = _(() => r.value && i.value.length > 0 ? " " : void 0), u = _(() => e.control ? e.control.enabled : e.enabled !== !1), j = _(
|
|
1042
|
+
() => e.control ? e.control.visibility : e.visibility || Re.DisplayMode.FULL
|
|
1043
|
+
), s = _(
|
|
1044
|
+
() => ee(e.label || "") ? new $o(e.label || "") : e.label
|
|
1045
|
+
), m = _(() => e.placeholder || ""), b = _(() => e.helpText || ""), g = _(() => e.hint || ""), w = _(() => e.cssClass || "");
|
|
339
1046
|
return {
|
|
340
|
-
value:
|
|
341
|
-
valid:
|
|
342
|
-
enabled:
|
|
343
|
-
errors:
|
|
344
|
-
visibility:
|
|
345
|
-
label:
|
|
346
|
-
touched:
|
|
347
|
-
vuetifyBindings:
|
|
348
|
-
var k,
|
|
1047
|
+
value: a,
|
|
1048
|
+
valid: p,
|
|
1049
|
+
enabled: u,
|
|
1050
|
+
errors: i,
|
|
1051
|
+
visibility: j,
|
|
1052
|
+
label: s,
|
|
1053
|
+
touched: r,
|
|
1054
|
+
vuetifyBindings: _(() => {
|
|
1055
|
+
var k, y;
|
|
349
1056
|
return {
|
|
350
|
-
name: (k =
|
|
351
|
-
class:
|
|
1057
|
+
name: (k = e.control) == null ? void 0 : k.fieldName,
|
|
1058
|
+
class: w.value,
|
|
352
1059
|
density: "default",
|
|
353
|
-
variant: (
|
|
354
|
-
label:
|
|
355
|
-
messages:
|
|
356
|
-
errorMessages:
|
|
1060
|
+
variant: (y = n.defaultVariant) != null ? y : "underlined",
|
|
1061
|
+
label: s.value.text,
|
|
1062
|
+
messages: c.value,
|
|
1063
|
+
errorMessages: c.value,
|
|
357
1064
|
// 'error-count': errors?.value.length || 0,
|
|
358
|
-
readonly: !
|
|
359
|
-
disabled: !
|
|
360
|
-
placeholder:
|
|
361
|
-
"persistent-placeholder": !
|
|
362
|
-
hint:
|
|
1065
|
+
readonly: !u.value,
|
|
1066
|
+
disabled: !u.value,
|
|
1067
|
+
placeholder: m.value,
|
|
1068
|
+
"persistent-placeholder": !be(m.value),
|
|
1069
|
+
hint: g.value,
|
|
363
1070
|
persistentHint: !0,
|
|
364
1071
|
// we want persistent hint always
|
|
365
1072
|
hideDetails: "auto",
|
|
366
1073
|
// we want to hide the hint element when hint isn't there
|
|
367
|
-
helpText:
|
|
1074
|
+
helpText: b.value
|
|
368
1075
|
};
|
|
369
1076
|
})
|
|
370
1077
|
};
|
|
371
1078
|
}
|
|
372
|
-
const
|
|
1079
|
+
const xo = {
|
|
373
1080
|
key: 0,
|
|
374
1081
|
class: "custom-error-display text-error"
|
|
375
|
-
},
|
|
1082
|
+
}, So = { key: 0 }, Eo = { key: 1 }, No = /* @__PURE__ */ M({
|
|
376
1083
|
__name: "messages-widget",
|
|
377
1084
|
props: {
|
|
378
1085
|
errors: {},
|
|
379
1086
|
message: {}
|
|
380
1087
|
},
|
|
381
|
-
setup(
|
|
382
|
-
return (
|
|
383
|
-
(
|
|
384
|
-
var
|
|
385
|
-
return
|
|
386
|
-
key:
|
|
387
|
-
class:
|
|
1088
|
+
setup(e) {
|
|
1089
|
+
return (t, n) => t.message === " " ? (h(), A("div", xo, [
|
|
1090
|
+
(h(!0), A(Ie, null, Ge(t.errors, (l, a) => {
|
|
1091
|
+
var r;
|
|
1092
|
+
return h(), A("div", {
|
|
1093
|
+
key: a,
|
|
1094
|
+
class: ge({ "first-error": a === 0, "last-error": a === t.errors.length - 1 })
|
|
388
1095
|
}, [
|
|
389
|
-
|
|
1096
|
+
l.componentName === "template" ? (h(), A("div", So, se(l.componentBody), 1)) : l.componentName === "vue-markdown" ? (h(), P(o(gt), {
|
|
390
1097
|
key: 1,
|
|
391
|
-
source: (
|
|
392
|
-
}, null, 8, ["source"])) : (
|
|
1098
|
+
source: (r = l.componentBindings) == null ? void 0 : r.source
|
|
1099
|
+
}, null, 8, ["source"])) : (h(), P(ce(l.componentName), H({
|
|
393
1100
|
key: 2,
|
|
394
1101
|
ref_for: !0
|
|
395
|
-
},
|
|
396
|
-
default:
|
|
397
|
-
|
|
1102
|
+
}, l.componentBindings), {
|
|
1103
|
+
default: v(() => [
|
|
1104
|
+
Xe(se(l.componentBody), 1)
|
|
398
1105
|
]),
|
|
399
1106
|
_: 2
|
|
400
1107
|
}, 1040))
|
|
401
1108
|
], 2);
|
|
402
1109
|
}), 128))
|
|
403
|
-
])) : (
|
|
1110
|
+
])) : (h(), A("span", Eo, se(t.message), 1));
|
|
404
1111
|
}
|
|
405
|
-
}),
|
|
1112
|
+
}), le = /* @__PURE__ */ ae(No, [["__scopeId", "data-v-ff7a8b63"]]), Fo = { class: "d-flex w-100 style-resetting" }, Ao = /* @__PURE__ */ M({
|
|
406
1113
|
__name: "input-base",
|
|
407
1114
|
props: {
|
|
408
1115
|
control: {},
|
|
@@ -419,71 +1126,71 @@ const Kt = {
|
|
|
419
1126
|
loading: { type: Boolean }
|
|
420
1127
|
},
|
|
421
1128
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
422
|
-
setup(
|
|
423
|
-
const n =
|
|
424
|
-
function
|
|
425
|
-
|
|
1129
|
+
setup(e, { emit: t }) {
|
|
1130
|
+
const n = e, l = t, { errors: a, label: r, value: p, touched: i, visibility: c, vuetifyBindings: u } = K(n, l), j = _(() => !!(o(n.clearable) && o(p))), s = E(!1);
|
|
1131
|
+
function m(b) {
|
|
1132
|
+
s.value = b, b || (i.value = !0, l("blur"));
|
|
426
1133
|
}
|
|
427
|
-
return (
|
|
428
|
-
const
|
|
429
|
-
return
|
|
1134
|
+
return (b, g) => {
|
|
1135
|
+
const w = $("v-field"), k = $("v-input");
|
|
1136
|
+
return o(c) !== o(z).SUPPRESS ? (h(), P(k, {
|
|
430
1137
|
key: 0,
|
|
431
|
-
name:
|
|
432
|
-
hint:
|
|
433
|
-
"persistent-hint":
|
|
434
|
-
"hide-details":
|
|
435
|
-
"error-messages":
|
|
436
|
-
class:
|
|
437
|
-
|
|
1138
|
+
name: o(u).name,
|
|
1139
|
+
hint: o(u).hint,
|
|
1140
|
+
"persistent-hint": o(u).persistentHint,
|
|
1141
|
+
"hide-details": o(u).hideDetails,
|
|
1142
|
+
"error-messages": o(u).errorMessages,
|
|
1143
|
+
class: ge([
|
|
1144
|
+
b.cssClass,
|
|
438
1145
|
{
|
|
439
|
-
"d-none":
|
|
440
|
-
invisible:
|
|
1146
|
+
"d-none": o(c) === o(z).HIDDEN,
|
|
1147
|
+
invisible: o(c) === o(z).INVISIBLE
|
|
441
1148
|
}
|
|
442
1149
|
])
|
|
443
|
-
},
|
|
444
|
-
message:
|
|
445
|
-
|
|
446
|
-
message:
|
|
447
|
-
errors:
|
|
1150
|
+
}, q({
|
|
1151
|
+
message: v(({ message: y }) => [
|
|
1152
|
+
B(le, {
|
|
1153
|
+
message: y,
|
|
1154
|
+
errors: o(a)
|
|
448
1155
|
}, null, 8, ["message", "errors"])
|
|
449
1156
|
]),
|
|
450
|
-
default:
|
|
451
|
-
|
|
452
|
-
variant:
|
|
453
|
-
label:
|
|
454
|
-
disabled:
|
|
455
|
-
clearable:
|
|
1157
|
+
default: v(() => [
|
|
1158
|
+
B(w, {
|
|
1159
|
+
variant: o(u).variant,
|
|
1160
|
+
label: o(u).label,
|
|
1161
|
+
disabled: o(u).disabled,
|
|
1162
|
+
clearable: j.value,
|
|
456
1163
|
"persistent-clear": !0,
|
|
457
|
-
dirty: !!
|
|
458
|
-
active:
|
|
459
|
-
loading:
|
|
460
|
-
"onClick:clear":
|
|
461
|
-
"onUpdate:focused":
|
|
462
|
-
},
|
|
463
|
-
default:
|
|
464
|
-
|
|
465
|
-
|
|
1164
|
+
dirty: !!o(p),
|
|
1165
|
+
active: s.value,
|
|
1166
|
+
loading: b.loading,
|
|
1167
|
+
"onClick:clear": g[0] || (g[0] = (y) => l("click:clear")),
|
|
1168
|
+
"onUpdate:focused": g[1] || (g[1] = (y) => m(y))
|
|
1169
|
+
}, q({
|
|
1170
|
+
default: v((y) => [
|
|
1171
|
+
ne("div", Fo, [
|
|
1172
|
+
ie(b.$slots, "default", X(G(y)), void 0, !0)
|
|
466
1173
|
])
|
|
467
1174
|
]),
|
|
468
|
-
loader:
|
|
469
|
-
|
|
1175
|
+
loader: v((y) => [
|
|
1176
|
+
ie(b.$slots, "loader", X(G(y)), void 0, !0)
|
|
470
1177
|
]),
|
|
471
1178
|
_: 2
|
|
472
1179
|
}, [
|
|
473
|
-
|
|
1180
|
+
o(r).icon ? {
|
|
474
1181
|
name: "label",
|
|
475
|
-
fn:
|
|
476
|
-
|
|
477
|
-
data:
|
|
478
|
-
label:
|
|
1182
|
+
fn: v((y) => [
|
|
1183
|
+
B(oe, {
|
|
1184
|
+
data: y,
|
|
1185
|
+
label: o(r)
|
|
479
1186
|
}, null, 8, ["data", "label"])
|
|
480
1187
|
]),
|
|
481
1188
|
key: "0"
|
|
482
1189
|
} : void 0,
|
|
483
|
-
|
|
1190
|
+
b.$slots["prepend-inner"] ? {
|
|
484
1191
|
name: "prepend-inner",
|
|
485
|
-
fn:
|
|
486
|
-
|
|
1192
|
+
fn: v((y) => [
|
|
1193
|
+
ie(b.$slots, "prepend-inner", X(G(y)), void 0, !0)
|
|
487
1194
|
]),
|
|
488
1195
|
key: "1"
|
|
489
1196
|
} : void 0
|
|
@@ -491,94 +1198,94 @@ const Kt = {
|
|
|
491
1198
|
]),
|
|
492
1199
|
_: 2
|
|
493
1200
|
}, [
|
|
494
|
-
|
|
1201
|
+
b.$slots.prepend ? {
|
|
495
1202
|
name: "prepend",
|
|
496
|
-
fn:
|
|
497
|
-
|
|
1203
|
+
fn: v((y) => [
|
|
1204
|
+
ie(b.$slots, "prepend", X(G(y)), void 0, !0)
|
|
498
1205
|
]),
|
|
499
1206
|
key: "0"
|
|
500
1207
|
} : void 0
|
|
501
1208
|
]), 1032, ["name", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : L("", !0);
|
|
502
1209
|
};
|
|
503
1210
|
}
|
|
504
|
-
}),
|
|
1211
|
+
}), De = /* @__PURE__ */ ae(Ao, [["__scopeId", "data-v-7ba7207d"]]), he = {
|
|
505
1212
|
Yes: "Yes",
|
|
506
1213
|
No: "No",
|
|
507
1214
|
Close: "Close"
|
|
508
1215
|
};
|
|
509
|
-
function
|
|
510
|
-
Object.keys(
|
|
511
|
-
|
|
1216
|
+
function Xl(e) {
|
|
1217
|
+
Object.keys(he).forEach((t) => {
|
|
1218
|
+
he[t] = e(t);
|
|
512
1219
|
});
|
|
513
1220
|
}
|
|
514
|
-
var
|
|
515
|
-
const
|
|
516
|
-
((
|
|
517
|
-
function
|
|
518
|
-
return
|
|
1221
|
+
var R = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(R || {});
|
|
1222
|
+
const We = 0;
|
|
1223
|
+
((e) => {
|
|
1224
|
+
function t(a) {
|
|
1225
|
+
return a.toUpperCase() === "BUTTON" ? 0 : a.toUpperCase() === "TEXT" ? 1 : We;
|
|
519
1226
|
}
|
|
520
|
-
|
|
521
|
-
function n(
|
|
522
|
-
const
|
|
523
|
-
return Object.values(
|
|
1227
|
+
e.fromString = t;
|
|
1228
|
+
function n(a) {
|
|
1229
|
+
const r = typeof a == "number" ? a : e.fromString(a);
|
|
1230
|
+
return Object.values(e).includes(r) ? r : We;
|
|
524
1231
|
}
|
|
525
|
-
|
|
526
|
-
function
|
|
527
|
-
const
|
|
528
|
-
return Object.values(
|
|
1232
|
+
e.fromAny = n;
|
|
1233
|
+
function l(a) {
|
|
1234
|
+
const r = typeof a == "number" ? a : e.fromString(a);
|
|
1235
|
+
return Object.values(e).includes(r);
|
|
529
1236
|
}
|
|
530
|
-
|
|
531
|
-
})(
|
|
532
|
-
Object.freeze(
|
|
533
|
-
const
|
|
534
|
-
class
|
|
535
|
-
constructor(
|
|
536
|
-
|
|
537
|
-
this._value = this.cleanBreakpoint(
|
|
538
|
-
const
|
|
539
|
-
|
|
1237
|
+
e.isDefined = l;
|
|
1238
|
+
})(R || (R = {}));
|
|
1239
|
+
Object.freeze(R);
|
|
1240
|
+
const ze = ["xs", "sm", "md", "lg", "xl"];
|
|
1241
|
+
class Lo {
|
|
1242
|
+
constructor(t) {
|
|
1243
|
+
Se(this, "_value");
|
|
1244
|
+
this._value = this.cleanBreakpoint(t, !0), t && ze.forEach((n) => {
|
|
1245
|
+
const l = this.cleanBreakpoint(t[n]);
|
|
1246
|
+
l && (this._value[n] = l);
|
|
540
1247
|
});
|
|
541
1248
|
}
|
|
542
|
-
getOptionsForBreakpoint(
|
|
543
|
-
const n = this.cleanBreakpoint(this._value),
|
|
544
|
-
for (const
|
|
545
|
-
const
|
|
546
|
-
for (const
|
|
547
|
-
(
|
|
548
|
-
if (
|
|
1249
|
+
getOptionsForBreakpoint(t) {
|
|
1250
|
+
const n = this.cleanBreakpoint(this._value), l = Object.keys(n);
|
|
1251
|
+
for (const a of ze) {
|
|
1252
|
+
const r = this._value[a];
|
|
1253
|
+
for (const p of l)
|
|
1254
|
+
(r == null ? void 0 : r[p]) != null && (n[p] = r[p]);
|
|
1255
|
+
if (a === t) break;
|
|
549
1256
|
}
|
|
550
1257
|
return n;
|
|
551
1258
|
}
|
|
552
1259
|
}
|
|
553
|
-
function
|
|
554
|
-
return
|
|
1260
|
+
function Mo(e) {
|
|
1261
|
+
return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
|
|
555
1262
|
}
|
|
556
|
-
function
|
|
557
|
-
const
|
|
558
|
-
return
|
|
1263
|
+
function Uo() {
|
|
1264
|
+
const e = wt();
|
|
1265
|
+
return _(() => Mo(e));
|
|
559
1266
|
}
|
|
560
|
-
class
|
|
1267
|
+
class Oo extends Lo {
|
|
561
1268
|
// eslint-disable-next-line class-methods-use-this
|
|
562
|
-
cleanBreakpoint(
|
|
563
|
-
if ((!
|
|
564
|
-
const
|
|
565
|
-
return n && (
|
|
1269
|
+
cleanBreakpoint(t, n = !1) {
|
|
1270
|
+
if ((!t || !pt(t)) && !n) return null;
|
|
1271
|
+
const l = {};
|
|
1272
|
+
return n && (l.renderAs = R.BUTTON, l.showLabel = !0, l.showIcon = !0), t && (t.renderAs != null && (l.renderAs = R.fromAny(t.renderAs)), ee(t.label) && (l.label = t.label), ee(t.icon) && (l.icon = t.icon), Le(t.showLabel) && (l.showLabel = t.showLabel), Le(t.showIcon) && (l.showIcon = t.showIcon)), Object.keys(l).length ? l : null;
|
|
566
1273
|
}
|
|
567
1274
|
}
|
|
568
|
-
class
|
|
569
|
-
static create(
|
|
570
|
-
return super.create(
|
|
1275
|
+
class ke extends ht {
|
|
1276
|
+
static create(t) {
|
|
1277
|
+
return super.create(t);
|
|
571
1278
|
}
|
|
572
|
-
getBreakpointValue(
|
|
573
|
-
return
|
|
574
|
-
const
|
|
1279
|
+
getBreakpointValue(t) {
|
|
1280
|
+
return _(() => {
|
|
1281
|
+
const l = new Oo(this.value).getOptionsForBreakpoint(t.value);
|
|
575
1282
|
return {
|
|
576
|
-
name:
|
|
577
|
-
label:
|
|
578
|
-
icon:
|
|
579
|
-
renderAs:
|
|
580
|
-
showLabel: ee(
|
|
581
|
-
showIcon: ee(
|
|
1283
|
+
name: l.name,
|
|
1284
|
+
label: l.showLabel ? l.label : void 0,
|
|
1285
|
+
icon: l.showIcon ? l.icon : void 0,
|
|
1286
|
+
renderAs: l.renderAs,
|
|
1287
|
+
showLabel: ee(l.label) && !be(l.label) ? l.showLabel : !1,
|
|
1288
|
+
showIcon: ee(l.icon) && !be(l.icon) ? l.showIcon : !1
|
|
582
1289
|
};
|
|
583
1290
|
});
|
|
584
1291
|
}
|
|
@@ -589,110 +1296,110 @@ class he extends pl {
|
|
|
589
1296
|
return this.value.showLabel ? this.value.label : void 0;
|
|
590
1297
|
}
|
|
591
1298
|
get showLabel() {
|
|
592
|
-
return ee(this.value.label) && !
|
|
1299
|
+
return ee(this.value.label) && !be(this.value.label) ? this.value.showLabel : !1;
|
|
593
1300
|
}
|
|
594
1301
|
get icon() {
|
|
595
1302
|
return this.value.showIcon ? this.value.icon : void 0;
|
|
596
1303
|
}
|
|
597
1304
|
get showIcon() {
|
|
598
|
-
return ee(this.value.icon) && !
|
|
1305
|
+
return ee(this.value.icon) && !be(this.value.icon) ? this.value.showIcon : !1;
|
|
599
1306
|
}
|
|
600
1307
|
get renderAs() {
|
|
601
1308
|
return this.value.renderAs;
|
|
602
1309
|
}
|
|
603
|
-
static closeAction(
|
|
604
|
-
var
|
|
605
|
-
const n =
|
|
1310
|
+
static closeAction(t) {
|
|
1311
|
+
var l;
|
|
1312
|
+
const n = O(x({}, t != null ? t : {}), {
|
|
606
1313
|
// any properties in data should overwrite properties in the constant
|
|
607
1314
|
value: {
|
|
608
1315
|
name: "close",
|
|
609
|
-
label:
|
|
1316
|
+
label: he.Close,
|
|
610
1317
|
icon: "close-outline",
|
|
611
|
-
renderAs:
|
|
1318
|
+
renderAs: R.BUTTON,
|
|
612
1319
|
showLabel: !0,
|
|
613
1320
|
showIcon: !0
|
|
614
1321
|
}
|
|
615
1322
|
});
|
|
616
|
-
return n.value =
|
|
1323
|
+
return n.value = x(x({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ke.create(n);
|
|
617
1324
|
}
|
|
618
|
-
static yesAction(
|
|
619
|
-
var
|
|
620
|
-
const n =
|
|
1325
|
+
static yesAction(t) {
|
|
1326
|
+
var l;
|
|
1327
|
+
const n = O(x({}, t != null ? t : {}), {
|
|
621
1328
|
// any properties in data should overwrite properties in the constant
|
|
622
1329
|
value: {
|
|
623
1330
|
name: "yes",
|
|
624
|
-
label:
|
|
1331
|
+
label: he.Yes,
|
|
625
1332
|
icon: "thumbs-up-outline",
|
|
626
|
-
renderAs:
|
|
1333
|
+
renderAs: R.BUTTON,
|
|
627
1334
|
showLabel: !0,
|
|
628
1335
|
showIcon: !0
|
|
629
1336
|
}
|
|
630
1337
|
});
|
|
631
|
-
return n.value =
|
|
1338
|
+
return n.value = x(x({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ke.create(n);
|
|
632
1339
|
}
|
|
633
|
-
static noAction(
|
|
634
|
-
var
|
|
635
|
-
const n =
|
|
1340
|
+
static noAction(t) {
|
|
1341
|
+
var l;
|
|
1342
|
+
const n = O(x({}, t != null ? t : {}), {
|
|
636
1343
|
// any properties in data should overwrite properties in the constant
|
|
637
1344
|
value: {
|
|
638
1345
|
name: "no",
|
|
639
|
-
label:
|
|
1346
|
+
label: he.No,
|
|
640
1347
|
icon: "thumbs-down-outline",
|
|
641
|
-
renderAs:
|
|
1348
|
+
renderAs: R.BUTTON,
|
|
642
1349
|
showLabel: !0,
|
|
643
1350
|
showIcon: !0
|
|
644
1351
|
}
|
|
645
1352
|
});
|
|
646
|
-
return n.value =
|
|
1353
|
+
return n.value = x(x({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ke.create(n);
|
|
647
1354
|
}
|
|
648
1355
|
}
|
|
649
|
-
const
|
|
1356
|
+
const Ro = {
|
|
650
1357
|
key: 1,
|
|
651
1358
|
style: { width: ".5rem" }
|
|
652
|
-
},
|
|
1359
|
+
}, Wo = { key: 2 }, zo = /* @__PURE__ */ M({
|
|
653
1360
|
__name: "df-actions",
|
|
654
1361
|
props: {
|
|
655
1362
|
actions: {},
|
|
656
1363
|
buttonSize: { default: "default" },
|
|
657
1364
|
showAsGroup: { default: "no" }
|
|
658
1365
|
},
|
|
659
|
-
setup(
|
|
660
|
-
const
|
|
661
|
-
action:
|
|
662
|
-
},
|
|
663
|
-
return (
|
|
664
|
-
const
|
|
665
|
-
return
|
|
1366
|
+
setup(e) {
|
|
1367
|
+
const t = e, n = Uo(), l = _(() => o(t.actions)), a = _(() => l.value.map((r) => x({
|
|
1368
|
+
action: r
|
|
1369
|
+
}, o(r.getBreakpointValue(n)))));
|
|
1370
|
+
return (r, p) => {
|
|
1371
|
+
const i = $("v-btn");
|
|
1372
|
+
return l.value.length > 0 ? (h(), A("div", {
|
|
666
1373
|
key: 0,
|
|
667
|
-
class:
|
|
668
|
-
"button-group":
|
|
669
|
-
"with-border":
|
|
1374
|
+
class: ge(["text-end", {
|
|
1375
|
+
"button-group": r.showAsGroup === "grouped" || r.showAsGroup === "grouped-no-borders",
|
|
1376
|
+
"with-border": r.showAsGroup === "grouped"
|
|
670
1377
|
}])
|
|
671
1378
|
}, [
|
|
672
|
-
(
|
|
673
|
-
key:
|
|
674
|
-
variant:
|
|
1379
|
+
(h(!0), A(Ie, null, Ge(a.value, (c, u) => (h(), P(i, {
|
|
1380
|
+
key: u,
|
|
1381
|
+
variant: c.renderAs === o(R).BUTTON ? "tonal" : "text",
|
|
675
1382
|
elevation: 0,
|
|
676
|
-
size:
|
|
677
|
-
onClick:
|
|
1383
|
+
size: r.buttonSize,
|
|
1384
|
+
onClick: ct((j) => c.action.execute(j), ["stop"])
|
|
678
1385
|
}, {
|
|
679
|
-
default:
|
|
680
|
-
|
|
1386
|
+
default: v(() => [
|
|
1387
|
+
c.icon ? (h(), P(o(Be), {
|
|
681
1388
|
key: 0,
|
|
682
1389
|
class: "action-icon",
|
|
683
|
-
name:
|
|
1390
|
+
name: c.icon
|
|
684
1391
|
}, null, 8, ["name"])) : L("", !0),
|
|
685
|
-
|
|
686
|
-
|
|
1392
|
+
c.icon && c.label ? (h(), A("span", Ro)) : L("", !0),
|
|
1393
|
+
c.label ? (h(), A("span", Wo, se(c.label), 1)) : L("", !0)
|
|
687
1394
|
]),
|
|
688
1395
|
_: 2
|
|
689
1396
|
}, 1032, ["variant", "size", "onClick"]))), 128))
|
|
690
1397
|
], 2)) : L("", !0);
|
|
691
1398
|
};
|
|
692
1399
|
}
|
|
693
|
-
}),
|
|
1400
|
+
}), Ho = /* @__PURE__ */ ae(zo, [["__scopeId", "data-v-7f811834"]]), Ko = /* @__PURE__ */ M({
|
|
694
1401
|
__name: "df-checkbox",
|
|
695
|
-
props: /* @__PURE__ */
|
|
1402
|
+
props: /* @__PURE__ */ Y({
|
|
696
1403
|
allowNull: { type: Boolean },
|
|
697
1404
|
control: {},
|
|
698
1405
|
modelValue: {},
|
|
@@ -705,47 +1412,47 @@ const ln = {
|
|
|
705
1412
|
visibility: {},
|
|
706
1413
|
cssClass: {},
|
|
707
1414
|
clearable: { type: Boolean }
|
|
708
|
-
},
|
|
1415
|
+
}, O(x({}, Q), { allowNull: !1 })),
|
|
709
1416
|
emits: ["update:modelValue", "click:clear"],
|
|
710
|
-
setup(
|
|
711
|
-
const n =
|
|
1417
|
+
setup(e, { emit: t }) {
|
|
1418
|
+
const n = e, l = t, { errors: a, label: r, touched: p, value: i, vuetifyBindings: c } = K(n, l), u = _(() => n.allowNull && i.value == null), j = _({
|
|
712
1419
|
get() {
|
|
713
|
-
return
|
|
1420
|
+
return i.value;
|
|
714
1421
|
},
|
|
715
1422
|
set() {
|
|
716
1423
|
}
|
|
717
1424
|
});
|
|
718
|
-
function
|
|
719
|
-
const
|
|
720
|
-
|
|
1425
|
+
function s() {
|
|
1426
|
+
const m = ft(i.value);
|
|
1427
|
+
m === !0 ? i.value = n.allowNull ? null : !1 : i.value = m === !1;
|
|
721
1428
|
}
|
|
722
|
-
return (
|
|
723
|
-
const
|
|
724
|
-
return
|
|
725
|
-
modelValue:
|
|
726
|
-
"onUpdate:modelValue":
|
|
727
|
-
},
|
|
1429
|
+
return (m, b) => {
|
|
1430
|
+
const g = $("v-checkbox");
|
|
1431
|
+
return h(), P(g, H({
|
|
1432
|
+
modelValue: j.value,
|
|
1433
|
+
"onUpdate:modelValue": b[0] || (b[0] = (w) => j.value = w)
|
|
1434
|
+
}, o(c), {
|
|
728
1435
|
density: "compact",
|
|
729
|
-
indeterminate:
|
|
1436
|
+
indeterminate: u.value,
|
|
730
1437
|
"false-value": !1,
|
|
731
1438
|
"true-value": !0,
|
|
732
|
-
onChange:
|
|
733
|
-
onBlur:
|
|
734
|
-
}),
|
|
735
|
-
message:
|
|
736
|
-
|
|
737
|
-
message:
|
|
738
|
-
errors:
|
|
1439
|
+
onChange: s,
|
|
1440
|
+
onBlur: b[1] || (b[1] = (w) => p.value = !0)
|
|
1441
|
+
}), q({
|
|
1442
|
+
message: v(({ message: w }) => [
|
|
1443
|
+
B(o(le), {
|
|
1444
|
+
message: w,
|
|
1445
|
+
errors: o(a)
|
|
739
1446
|
}, null, 8, ["message", "errors"])
|
|
740
1447
|
]),
|
|
741
1448
|
_: 2
|
|
742
1449
|
}, [
|
|
743
|
-
|
|
1450
|
+
o(r).icon ? {
|
|
744
1451
|
name: "label",
|
|
745
|
-
fn:
|
|
746
|
-
|
|
747
|
-
data:
|
|
748
|
-
label:
|
|
1452
|
+
fn: v((w) => [
|
|
1453
|
+
B(o(oe), {
|
|
1454
|
+
data: w,
|
|
1455
|
+
label: o(r)
|
|
749
1456
|
}, null, 8, ["data", "label"])
|
|
750
1457
|
]),
|
|
751
1458
|
key: "0"
|
|
@@ -753,9 +1460,9 @@ const ln = {
|
|
|
753
1460
|
]), 1040, ["modelValue", "indeterminate"]);
|
|
754
1461
|
};
|
|
755
1462
|
}
|
|
756
|
-
}),
|
|
1463
|
+
}), Xo = /* @__PURE__ */ M({
|
|
757
1464
|
__name: "df-color",
|
|
758
|
-
props: /* @__PURE__ */
|
|
1465
|
+
props: /* @__PURE__ */ Y({
|
|
759
1466
|
allowNull: { type: Boolean },
|
|
760
1467
|
control: {},
|
|
761
1468
|
modelValue: {},
|
|
@@ -768,45 +1475,45 @@ const ln = {
|
|
|
768
1475
|
visibility: {},
|
|
769
1476
|
cssClass: {},
|
|
770
1477
|
clearable: { type: Boolean }
|
|
771
|
-
},
|
|
1478
|
+
}, O(x({}, Q), { allowNull: !1 })),
|
|
772
1479
|
emits: ["update:modelValue", "click:clear"],
|
|
773
|
-
setup(
|
|
774
|
-
const n =
|
|
775
|
-
(
|
|
1480
|
+
setup(e, { emit: t }) {
|
|
1481
|
+
const n = e, l = t, { errors: a, label: r, touched: p, value: i, vuetifyBindings: c } = K(n, l), u = E(!1), j = _(() => [
|
|
1482
|
+
(s) => n.control || !s && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(s) ? !0 : "Not a valid hex string."
|
|
776
1483
|
]);
|
|
777
|
-
return (
|
|
778
|
-
const
|
|
779
|
-
return
|
|
780
|
-
modelValue:
|
|
781
|
-
"onUpdate:modelValue":
|
|
782
|
-
},
|
|
783
|
-
clearable:
|
|
1484
|
+
return (s, m) => {
|
|
1485
|
+
const b = $("v-color-picker"), g = $("v-menu"), w = $("v-text-field");
|
|
1486
|
+
return h(), P(w, H({
|
|
1487
|
+
modelValue: o(i),
|
|
1488
|
+
"onUpdate:modelValue": m[2] || (m[2] = (k) => te(i) ? i.value = k : null)
|
|
1489
|
+
}, o(c), {
|
|
1490
|
+
clearable: s.allowNull,
|
|
784
1491
|
type: "text",
|
|
785
|
-
rules:
|
|
786
|
-
onBlur:
|
|
787
|
-
}),
|
|
788
|
-
message:
|
|
789
|
-
|
|
1492
|
+
rules: j.value,
|
|
1493
|
+
onBlur: m[3] || (m[3] = (k) => p.value = !0)
|
|
1494
|
+
}), q({
|
|
1495
|
+
message: v(({ message: k }) => [
|
|
1496
|
+
B(o(le), {
|
|
790
1497
|
message: k,
|
|
791
|
-
errors:
|
|
1498
|
+
errors: o(a)
|
|
792
1499
|
}, null, 8, ["message", "errors"])
|
|
793
1500
|
]),
|
|
794
|
-
"prepend-inner":
|
|
795
|
-
|
|
796
|
-
style:
|
|
1501
|
+
"prepend-inner": v(() => [
|
|
1502
|
+
ne("div", {
|
|
1503
|
+
style: Pe([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: o(i) }])
|
|
797
1504
|
}, null, 4)
|
|
798
1505
|
]),
|
|
799
|
-
default:
|
|
800
|
-
|
|
801
|
-
modelValue:
|
|
802
|
-
"onUpdate:modelValue":
|
|
1506
|
+
default: v(() => [
|
|
1507
|
+
B(g, {
|
|
1508
|
+
modelValue: u.value,
|
|
1509
|
+
"onUpdate:modelValue": m[1] || (m[1] = (k) => u.value = k),
|
|
803
1510
|
"close-on-content-click": !1,
|
|
804
1511
|
activator: "parent"
|
|
805
1512
|
}, {
|
|
806
|
-
default:
|
|
807
|
-
|
|
808
|
-
modelValue:
|
|
809
|
-
"onUpdate:modelValue":
|
|
1513
|
+
default: v(() => [
|
|
1514
|
+
B(b, {
|
|
1515
|
+
modelValue: o(i),
|
|
1516
|
+
"onUpdate:modelValue": m[0] || (m[0] = (k) => te(i) ? i.value = k : null),
|
|
810
1517
|
mode: "hexa"
|
|
811
1518
|
}, null, 8, ["modelValue"])
|
|
812
1519
|
]),
|
|
@@ -815,12 +1522,12 @@ const ln = {
|
|
|
815
1522
|
]),
|
|
816
1523
|
_: 2
|
|
817
1524
|
}, [
|
|
818
|
-
|
|
1525
|
+
o(r).icon ? {
|
|
819
1526
|
name: "label",
|
|
820
|
-
fn:
|
|
821
|
-
|
|
1527
|
+
fn: v((k) => [
|
|
1528
|
+
B(o(oe), {
|
|
822
1529
|
data: k,
|
|
823
|
-
label:
|
|
1530
|
+
label: o(r)
|
|
824
1531
|
}, null, 8, ["data", "label"])
|
|
825
1532
|
]),
|
|
826
1533
|
key: "0"
|
|
@@ -828,12 +1535,13 @@ const ln = {
|
|
|
828
1535
|
]), 1040, ["modelValue", "clearable", "rules"]);
|
|
829
1536
|
};
|
|
830
1537
|
}
|
|
831
|
-
}),
|
|
1538
|
+
}), Go = { class: "d-flex w-100 pt-5 pl-2 pb-1" }, qo = /* @__PURE__ */ M({
|
|
832
1539
|
__name: "df-datetime",
|
|
833
|
-
props: /* @__PURE__ */
|
|
1540
|
+
props: /* @__PURE__ */ Y({
|
|
834
1541
|
inputType: {},
|
|
835
1542
|
displayFormatDate: {},
|
|
836
1543
|
displayFormatTime: {},
|
|
1544
|
+
locale: {},
|
|
837
1545
|
control: {},
|
|
838
1546
|
modelValue: {},
|
|
839
1547
|
label: {},
|
|
@@ -845,143 +1553,149 @@ const ln = {
|
|
|
845
1553
|
visibility: {},
|
|
846
1554
|
cssClass: {},
|
|
847
1555
|
clearable: { type: Boolean }
|
|
848
|
-
},
|
|
1556
|
+
}, O(x({}, Q), {
|
|
849
1557
|
inputType: "datetime",
|
|
850
1558
|
displayFormatDate: "P",
|
|
851
1559
|
displayFormatTime: "p"
|
|
852
1560
|
})),
|
|
853
1561
|
emits: ["update:modelValue", "click:clear"],
|
|
854
|
-
setup(
|
|
855
|
-
const n =
|
|
1562
|
+
setup(e, { emit: t }) {
|
|
1563
|
+
const n = e, l = t, a = _(() => {
|
|
1564
|
+
var f;
|
|
1565
|
+
return (f = n.locale) != null ? f : o(Io.dateTimeLocale);
|
|
1566
|
+
}), r = _(() => {
|
|
1567
|
+
var f, d;
|
|
1568
|
+
return (d = (f = a.value.options) == null ? void 0 : f.weekStartsOn) != null ? d : 1;
|
|
1569
|
+
}), { touched: p, value: i, vuetifyBindings: c } = K(n, l), { inputType: u, displayFormatDate: j, displayFormatTime: s } = _e(n), m = E(""), b = _({
|
|
856
1570
|
get() {
|
|
857
|
-
return
|
|
1571
|
+
return o(m) === "date";
|
|
858
1572
|
},
|
|
859
|
-
set(
|
|
860
|
-
|
|
1573
|
+
set(f) {
|
|
1574
|
+
m.value = f ? "date" : "";
|
|
861
1575
|
}
|
|
862
|
-
}),
|
|
1576
|
+
}), g = _({
|
|
863
1577
|
get() {
|
|
864
|
-
return
|
|
1578
|
+
return o(m) === "time";
|
|
865
1579
|
},
|
|
866
|
-
set(
|
|
867
|
-
|
|
1580
|
+
set(f) {
|
|
1581
|
+
m.value = f ? "time" : "";
|
|
868
1582
|
}
|
|
869
|
-
}),
|
|
870
|
-
function
|
|
871
|
-
if (
|
|
872
|
-
|
|
1583
|
+
}), w = (f) => `${pe(f, "yyyy-MM-dd")}T${pe(f, "HH:mm")}:00`, k = E(null);
|
|
1584
|
+
function y(f, d) {
|
|
1585
|
+
if (f == null)
|
|
1586
|
+
k.value = null;
|
|
873
1587
|
else if (d === -1)
|
|
874
|
-
if (
|
|
875
|
-
|
|
1588
|
+
if (o(u) === "time")
|
|
1589
|
+
k.value = w(/* @__PURE__ */ new Date()), y(`T${f}`, 1);
|
|
876
1590
|
else {
|
|
877
|
-
const
|
|
878
|
-
|
|
1591
|
+
const S = w(new Date(f));
|
|
1592
|
+
y(S, 0), y(S, 1);
|
|
879
1593
|
}
|
|
880
1594
|
else {
|
|
881
|
-
|
|
882
|
-
const
|
|
883
|
-
|
|
1595
|
+
k.value == null && (k.value = w(/* @__PURE__ */ new Date()));
|
|
1596
|
+
const S = k.value.split(/[TZ]/g), U = f.split(/[TZ]/g);
|
|
1597
|
+
S[d] = U[d], k.value = w(/* @__PURE__ */ new Date(`${S[0]}T${S[1].split(".")[0]}`)), o(u) === "date" ? i.value = S[0] : o(u) === "time" ? i.value = S[1] : i.value = o(k) + pe(/* @__PURE__ */ new Date(), "XXX");
|
|
884
1598
|
}
|
|
885
1599
|
}
|
|
886
|
-
|
|
887
|
-
const
|
|
1600
|
+
ue(i, (f) => y(f, -1), { immediate: !0 });
|
|
1601
|
+
const F = _({
|
|
888
1602
|
get() {
|
|
889
|
-
const
|
|
890
|
-
if (
|
|
891
|
-
const d = new Date(
|
|
1603
|
+
const f = o(k);
|
|
1604
|
+
if (f == null) return null;
|
|
1605
|
+
const d = new Date(f);
|
|
892
1606
|
return Number.isNaN(d.getTime()) ? null : d;
|
|
893
1607
|
},
|
|
894
|
-
set(
|
|
895
|
-
|
|
1608
|
+
set(f) {
|
|
1609
|
+
y(w(f), 0);
|
|
896
1610
|
}
|
|
897
|
-
}),
|
|
1611
|
+
}), N = _({
|
|
898
1612
|
get() {
|
|
899
|
-
const
|
|
900
|
-
return
|
|
1613
|
+
const f = o(k);
|
|
1614
|
+
return f == null ? "" : f.split(/[TZ]/g)[1].split(".")[0];
|
|
901
1615
|
},
|
|
902
|
-
set(
|
|
903
|
-
|
|
1616
|
+
set(f) {
|
|
1617
|
+
y(`T${f}`, 1);
|
|
904
1618
|
}
|
|
905
|
-
}),
|
|
1619
|
+
}), T = _({
|
|
906
1620
|
get() {
|
|
907
|
-
const
|
|
908
|
-
return
|
|
1621
|
+
const f = o(F);
|
|
1622
|
+
return f == null ? "" : pe(f, o(j), { locale: a.value });
|
|
909
1623
|
},
|
|
910
|
-
set(
|
|
1624
|
+
set(f) {
|
|
911
1625
|
try {
|
|
912
|
-
const d =
|
|
913
|
-
|
|
1626
|
+
const d = yt(f, o(j), /* @__PURE__ */ new Date(), { locale: a.value });
|
|
1627
|
+
y(w(d), 0);
|
|
914
1628
|
} catch (d) {
|
|
915
1629
|
console.error(d);
|
|
916
1630
|
}
|
|
917
1631
|
}
|
|
918
|
-
}),
|
|
1632
|
+
}), W = _({
|
|
919
1633
|
get() {
|
|
920
|
-
const
|
|
921
|
-
return
|
|
1634
|
+
const f = o(F);
|
|
1635
|
+
return f == null ? "" : pe(f, o(s), { locale: a.value });
|
|
922
1636
|
},
|
|
923
|
-
set(
|
|
924
|
-
const d =
|
|
1637
|
+
set(f) {
|
|
1638
|
+
const d = f.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
925
1639
|
if (d == null) return;
|
|
926
|
-
let
|
|
927
|
-
const
|
|
928
|
-
|
|
1640
|
+
let S = Me(d[1]);
|
|
1641
|
+
const U = Me(d[2]);
|
|
1642
|
+
Ue(S) || Ue(U) || (d[3] && d[3].toLowerCase() === "pm" && S < 13 && (S += 12), y(`T${S.toString().padStart(2, "0")}:${U.toString().padStart(2, "0")}:00`, 1));
|
|
929
1643
|
}
|
|
930
1644
|
});
|
|
931
|
-
return (
|
|
932
|
-
const
|
|
933
|
-
return
|
|
934
|
-
clearable:
|
|
935
|
-
"onClick:clear": d[14] || (d[14] = (
|
|
936
|
-
onBlur: d[15] || (d[15] = (
|
|
1645
|
+
return (f, d) => {
|
|
1646
|
+
const S = $("v-date-picker"), U = $("v-confirm-edit"), de = $("v-menu"), me = $("v-text-field"), C = $("v-time-picker");
|
|
1647
|
+
return h(), P(o(De), H(n, {
|
|
1648
|
+
clearable: f.clearable,
|
|
1649
|
+
"onClick:clear": d[14] || (d[14] = (I) => i.value = null),
|
|
1650
|
+
onBlur: d[15] || (d[15] = (I) => p.value = !0)
|
|
937
1651
|
}), {
|
|
938
|
-
default:
|
|
939
|
-
|
|
940
|
-
["date", "datetime"].includes(
|
|
1652
|
+
default: v((I) => [
|
|
1653
|
+
ne("div", Go, [
|
|
1654
|
+
["date", "datetime"].includes(o(u)) ? (h(), P(me, {
|
|
941
1655
|
key: 0,
|
|
942
|
-
modelValue:
|
|
943
|
-
"onUpdate:modelValue": d[4] || (d[4] = (
|
|
1656
|
+
modelValue: T.value,
|
|
1657
|
+
"onUpdate:modelValue": d[4] || (d[4] = (V) => T.value = V),
|
|
944
1658
|
style: { "flex-grow": "4" },
|
|
945
1659
|
density: "compact",
|
|
946
1660
|
variant: "plain",
|
|
947
1661
|
clearable: !1,
|
|
948
1662
|
"hide-details": !0,
|
|
949
|
-
readonly:
|
|
950
|
-
disabled:
|
|
951
|
-
name: `${
|
|
952
|
-
onClick: d[5] || (d[5] = (
|
|
953
|
-
onKeydown: d[6] || (d[6] =
|
|
954
|
-
onFocus: (
|
|
955
|
-
onBlur: (
|
|
1663
|
+
readonly: o(c).readonly,
|
|
1664
|
+
disabled: o(c).disabled,
|
|
1665
|
+
name: `${o(c).name}-date`,
|
|
1666
|
+
onClick: d[5] || (d[5] = (V) => m.value = "date"),
|
|
1667
|
+
onKeydown: d[6] || (d[6] = Fe((V) => m.value = "date", ["space"])),
|
|
1668
|
+
onFocus: (V) => I.focus(),
|
|
1669
|
+
onBlur: (V) => I.blur()
|
|
956
1670
|
}, {
|
|
957
|
-
default:
|
|
958
|
-
|
|
959
|
-
modelValue:
|
|
960
|
-
"onUpdate:modelValue": d[3] || (d[3] = (
|
|
1671
|
+
default: v(() => [
|
|
1672
|
+
B(de, {
|
|
1673
|
+
modelValue: b.value,
|
|
1674
|
+
"onUpdate:modelValue": d[3] || (d[3] = (V) => b.value = V),
|
|
961
1675
|
"close-on-content-click": !1,
|
|
962
1676
|
activator: "parent"
|
|
963
1677
|
}, {
|
|
964
|
-
default:
|
|
965
|
-
|
|
966
|
-
modelValue:
|
|
967
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
968
|
-
onCancel: d[1] || (d[1] = (
|
|
969
|
-
onSave: d[2] || (d[2] = (
|
|
1678
|
+
default: v(() => [
|
|
1679
|
+
B(U, {
|
|
1680
|
+
modelValue: F.value,
|
|
1681
|
+
"onUpdate:modelValue": d[0] || (d[0] = (V) => F.value = V),
|
|
1682
|
+
onCancel: d[1] || (d[1] = (V) => m.value = ""),
|
|
1683
|
+
onSave: d[2] || (d[2] = (V) => m.value = "")
|
|
970
1684
|
}, {
|
|
971
|
-
default:
|
|
972
|
-
|
|
973
|
-
modelValue:
|
|
974
|
-
"onUpdate:modelValue": (
|
|
1685
|
+
default: v(({ model: V, actions: Z }) => [
|
|
1686
|
+
B(S, {
|
|
1687
|
+
modelValue: V.value,
|
|
1688
|
+
"onUpdate:modelValue": (D) => V.value = D,
|
|
975
1689
|
"hide-header": !0,
|
|
976
|
-
"first-day-of-week":
|
|
1690
|
+
"first-day-of-week": r.value,
|
|
977
1691
|
"show-adjacent-months": !0,
|
|
978
1692
|
"show-week": !0
|
|
979
1693
|
}, {
|
|
980
|
-
actions:
|
|
981
|
-
(
|
|
1694
|
+
actions: v(() => [
|
|
1695
|
+
(h(), P(ce(Z)))
|
|
982
1696
|
]),
|
|
983
1697
|
_: 2
|
|
984
|
-
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
1698
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
|
|
985
1699
|
]),
|
|
986
1700
|
_: 1
|
|
987
1701
|
}, 8, ["modelValue"])
|
|
@@ -991,46 +1705,46 @@ const ln = {
|
|
|
991
1705
|
]),
|
|
992
1706
|
_: 2
|
|
993
1707
|
}, 1032, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : L("", !0),
|
|
994
|
-
["time", "datetime"].includes(
|
|
1708
|
+
["time", "datetime"].includes(o(u)) ? (h(), P(me, {
|
|
995
1709
|
key: 1,
|
|
996
|
-
modelValue:
|
|
997
|
-
"onUpdate:modelValue": d[11] || (d[11] = (
|
|
1710
|
+
modelValue: W.value,
|
|
1711
|
+
"onUpdate:modelValue": d[11] || (d[11] = (V) => W.value = V),
|
|
998
1712
|
style: { "flex-grow": "3" },
|
|
999
1713
|
density: "compact",
|
|
1000
1714
|
variant: "plain",
|
|
1001
1715
|
clearable: !1,
|
|
1002
1716
|
"hide-details": !0,
|
|
1003
|
-
readonly:
|
|
1004
|
-
disabled:
|
|
1005
|
-
name: `${
|
|
1006
|
-
onClick: d[12] || (d[12] = (
|
|
1007
|
-
onKeydown: d[13] || (d[13] =
|
|
1008
|
-
onFocus: (
|
|
1009
|
-
onBlur: (
|
|
1717
|
+
readonly: o(c).readonly,
|
|
1718
|
+
disabled: o(c).disabled,
|
|
1719
|
+
name: `${o(c).name}-time`,
|
|
1720
|
+
onClick: d[12] || (d[12] = (V) => m.value = "time"),
|
|
1721
|
+
onKeydown: d[13] || (d[13] = Fe((V) => m.value = "time", ["space"])),
|
|
1722
|
+
onFocus: (V) => I.focus(),
|
|
1723
|
+
onBlur: (V) => I.blur()
|
|
1010
1724
|
}, {
|
|
1011
|
-
default:
|
|
1012
|
-
|
|
1013
|
-
modelValue:
|
|
1014
|
-
"onUpdate:modelValue": d[10] || (d[10] = (
|
|
1725
|
+
default: v(() => [
|
|
1726
|
+
B(de, {
|
|
1727
|
+
modelValue: g.value,
|
|
1728
|
+
"onUpdate:modelValue": d[10] || (d[10] = (V) => g.value = V),
|
|
1015
1729
|
"close-on-content-click": !1,
|
|
1016
1730
|
activator: "parent"
|
|
1017
1731
|
}, {
|
|
1018
|
-
default:
|
|
1019
|
-
|
|
1020
|
-
modelValue:
|
|
1021
|
-
"onUpdate:modelValue": d[7] || (d[7] = (
|
|
1022
|
-
onCancel: d[8] || (d[8] = (
|
|
1023
|
-
onSave: d[9] || (d[9] = (
|
|
1732
|
+
default: v(() => [
|
|
1733
|
+
B(U, {
|
|
1734
|
+
modelValue: N.value,
|
|
1735
|
+
"onUpdate:modelValue": d[7] || (d[7] = (V) => N.value = V),
|
|
1736
|
+
onCancel: d[8] || (d[8] = (V) => m.value = ""),
|
|
1737
|
+
onSave: d[9] || (d[9] = (V) => m.value = "")
|
|
1024
1738
|
}, {
|
|
1025
|
-
default:
|
|
1026
|
-
C
|
|
1027
|
-
modelValue:
|
|
1028
|
-
"onUpdate:modelValue": (
|
|
1739
|
+
default: v(({ model: V, actions: Z }) => [
|
|
1740
|
+
B(C, {
|
|
1741
|
+
modelValue: V.value,
|
|
1742
|
+
"onUpdate:modelValue": (D) => V.value = D,
|
|
1029
1743
|
"hide-header": !0,
|
|
1030
1744
|
format: "24hr"
|
|
1031
1745
|
}, {
|
|
1032
|
-
actions:
|
|
1033
|
-
(
|
|
1746
|
+
actions: v(() => [
|
|
1747
|
+
(h(), P(ce(Z)))
|
|
1034
1748
|
]),
|
|
1035
1749
|
_: 2
|
|
1036
1750
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1049,12 +1763,12 @@ const ln = {
|
|
|
1049
1763
|
}, 16, ["clearable"]);
|
|
1050
1764
|
};
|
|
1051
1765
|
}
|
|
1052
|
-
}),
|
|
1766
|
+
}), Yo = {
|
|
1053
1767
|
class: "d-flex w-100 pt-5 pl-2 pb-1",
|
|
1054
1768
|
style: { position: "relative" }
|
|
1055
|
-
},
|
|
1769
|
+
}, Qo = /* @__PURE__ */ M({
|
|
1056
1770
|
__name: "df-file",
|
|
1057
|
-
props: /* @__PURE__ */
|
|
1771
|
+
props: /* @__PURE__ */ Y({
|
|
1058
1772
|
comms: {},
|
|
1059
1773
|
control: {},
|
|
1060
1774
|
modelValue: {},
|
|
@@ -1069,81 +1783,81 @@ const ln = {
|
|
|
1069
1783
|
clearable: { type: Boolean }
|
|
1070
1784
|
}, Q),
|
|
1071
1785
|
emits: ["update:modelValue", "click:clear"],
|
|
1072
|
-
setup(
|
|
1073
|
-
const n =
|
|
1074
|
-
function
|
|
1075
|
-
|
|
1786
|
+
setup(e, { emit: t }) {
|
|
1787
|
+
const n = e, l = t, { touched: a, value: r, vuetifyBindings: p } = K(n, l), i = E(null), c = E(null), u = E(0), j = E(Math.round(Math.random() * 1e3)), s = E(), m = _(() => c.value && u.value < 100), b = _(() => !s.value && r.value ? n.modelValue : "");
|
|
1788
|
+
function g() {
|
|
1789
|
+
i.value && window.clearInterval(i.value);
|
|
1076
1790
|
}
|
|
1077
|
-
function
|
|
1078
|
-
|
|
1079
|
-
|
|
1791
|
+
function w() {
|
|
1792
|
+
g(), i.value = window.setInterval(() => {
|
|
1793
|
+
r.value && n.comms.touch(r.value);
|
|
1080
1794
|
}, 60 * 1e3);
|
|
1081
1795
|
}
|
|
1082
|
-
|
|
1083
|
-
|
|
1796
|
+
Ke(() => g()), ue(r, (N) => {
|
|
1797
|
+
N ? w() : g();
|
|
1084
1798
|
});
|
|
1085
1799
|
function k() {
|
|
1086
|
-
return
|
|
1087
|
-
|
|
1800
|
+
return we(this, null, function* () {
|
|
1801
|
+
r.value && (yield n.comms.delete(r.value)), r.value = null, u.value = 0, j.value = Math.round(Math.random() * 1e3), c.value = null, s.value = null, g();
|
|
1088
1802
|
});
|
|
1089
1803
|
}
|
|
1090
|
-
function
|
|
1091
|
-
return
|
|
1092
|
-
|
|
1804
|
+
function y(N) {
|
|
1805
|
+
return we(this, null, function* () {
|
|
1806
|
+
u.value = -1, c.value = N;
|
|
1093
1807
|
try {
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
(
|
|
1097
|
-
|
|
1808
|
+
r.value = yield n.comms.upload(
|
|
1809
|
+
N,
|
|
1810
|
+
(T, W) => {
|
|
1811
|
+
u.value = Math.round(T * 100 / W);
|
|
1098
1812
|
}
|
|
1099
|
-
),
|
|
1100
|
-
} catch (
|
|
1101
|
-
throw
|
|
1813
|
+
), u.value = 100, w();
|
|
1814
|
+
} catch (T) {
|
|
1815
|
+
throw u.value = 0, c.value = null, j.value = Math.round(Math.random() * 1e3), s.value = null, T;
|
|
1102
1816
|
}
|
|
1103
1817
|
});
|
|
1104
1818
|
}
|
|
1105
|
-
function
|
|
1106
|
-
|
|
1819
|
+
function F(N) {
|
|
1820
|
+
N && (Array.isArray(N) ? console.error("Uploading multiple files not supported right now") : y(N));
|
|
1107
1821
|
}
|
|
1108
|
-
return (
|
|
1109
|
-
const
|
|
1110
|
-
return
|
|
1822
|
+
return (N, T) => {
|
|
1823
|
+
const W = $("v-icon"), f = $("v-progress-linear"), d = $("v-file-input");
|
|
1824
|
+
return h(), P(o(De), H(O(x({}, n), { loading: m.value }), {
|
|
1111
1825
|
clearable: "",
|
|
1112
1826
|
"onClick:clear": k,
|
|
1113
|
-
onBlur:
|
|
1827
|
+
onBlur: T[1] || (T[1] = (S) => a.value = !0)
|
|
1114
1828
|
}), {
|
|
1115
|
-
"prepend-inner":
|
|
1116
|
-
|
|
1829
|
+
"prepend-inner": v(() => [
|
|
1830
|
+
B(W, { icon: "$file" })
|
|
1117
1831
|
]),
|
|
1118
|
-
loader:
|
|
1119
|
-
|
|
1832
|
+
loader: v(() => [
|
|
1833
|
+
c.value && u.value < 100 ? (h(), P(f, {
|
|
1120
1834
|
key: 0,
|
|
1121
|
-
"model-value":
|
|
1122
|
-
indeterminate:
|
|
1835
|
+
"model-value": u.value,
|
|
1836
|
+
indeterminate: u.value === -1
|
|
1123
1837
|
}, null, 8, ["model-value", "indeterminate"])) : L("", !0)
|
|
1124
1838
|
]),
|
|
1125
|
-
default:
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
modelValue:
|
|
1839
|
+
default: v((S) => [
|
|
1840
|
+
ne("div", Yo, [
|
|
1841
|
+
B(d, {
|
|
1842
|
+
modelValue: s.value,
|
|
1129
1843
|
"onUpdate:modelValue": [
|
|
1130
|
-
|
|
1131
|
-
|
|
1844
|
+
T[0] || (T[0] = (U) => s.value = U),
|
|
1845
|
+
F
|
|
1132
1846
|
],
|
|
1133
|
-
label:
|
|
1847
|
+
label: b.value,
|
|
1134
1848
|
density: "compact",
|
|
1135
1849
|
variant: "plain",
|
|
1136
|
-
readonly:
|
|
1137
|
-
disabled:
|
|
1138
|
-
name:
|
|
1850
|
+
readonly: o(p).readonly,
|
|
1851
|
+
disabled: o(p).disabled,
|
|
1852
|
+
name: o(p).name,
|
|
1139
1853
|
"hide-details": !0,
|
|
1140
1854
|
"show-size": !0,
|
|
1141
1855
|
multiple: !1,
|
|
1142
|
-
style:
|
|
1856
|
+
style: Pe(c.value && u.value < 100 ? "visibility: hidden" : ""),
|
|
1143
1857
|
clearable: !1,
|
|
1144
1858
|
"prepend-icon": "",
|
|
1145
|
-
onFocus: (
|
|
1146
|
-
onBlur: (
|
|
1859
|
+
onFocus: (U) => S.focus(),
|
|
1860
|
+
onBlur: (U) => S.blur()
|
|
1147
1861
|
}, null, 8, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
|
|
1148
1862
|
])
|
|
1149
1863
|
]),
|
|
@@ -1151,9 +1865,9 @@ const ln = {
|
|
|
1151
1865
|
}, 16);
|
|
1152
1866
|
};
|
|
1153
1867
|
}
|
|
1154
|
-
}),
|
|
1868
|
+
}), Zo = { class: "container" }, Jo = /* @__PURE__ */ M({
|
|
1155
1869
|
__name: "df-input",
|
|
1156
|
-
props: /* @__PURE__ */
|
|
1870
|
+
props: /* @__PURE__ */ Y({
|
|
1157
1871
|
inputType: {},
|
|
1158
1872
|
precision: {},
|
|
1159
1873
|
step: {},
|
|
@@ -1170,7 +1884,7 @@ const ln = {
|
|
|
1170
1884
|
visibility: {},
|
|
1171
1885
|
cssClass: {},
|
|
1172
1886
|
clearable: { type: Boolean }
|
|
1173
|
-
},
|
|
1887
|
+
}, O(x({}, Q), {
|
|
1174
1888
|
inputType: "text",
|
|
1175
1889
|
precision: null,
|
|
1176
1890
|
step: void 0,
|
|
@@ -1178,59 +1892,59 @@ const ln = {
|
|
|
1178
1892
|
max: void 0
|
|
1179
1893
|
})),
|
|
1180
1894
|
emits: ["update:modelValue", "click:clear"],
|
|
1181
|
-
setup(
|
|
1182
|
-
const n =
|
|
1183
|
-
return (k,
|
|
1184
|
-
const
|
|
1185
|
-
return
|
|
1186
|
-
|
|
1895
|
+
setup(e, { emit: t }) {
|
|
1896
|
+
const n = e, l = t, { errors: a, label: r, touched: p, value: i, vuetifyBindings: c } = K(n, l), { inputType: u, max: j, min: s, precision: m, step: b } = _e(n), g = _(() => u.value === "number"), w = _(() => g.value ? { min: o(s), max: o(j), precision: o(m), step: o(b) } : {});
|
|
1897
|
+
return (k, y) => {
|
|
1898
|
+
const F = $("v-text-field"), N = $("v-number-input");
|
|
1899
|
+
return h(), A("div", Zo, [
|
|
1900
|
+
g.value ? (h(), P(N, H({
|
|
1187
1901
|
key: 1,
|
|
1188
|
-
modelValue:
|
|
1189
|
-
"onUpdate:modelValue":
|
|
1190
|
-
},
|
|
1902
|
+
modelValue: o(i),
|
|
1903
|
+
"onUpdate:modelValue": y[2] || (y[2] = (T) => te(i) ? i.value = T : null)
|
|
1904
|
+
}, x(x({}, o(c)), w.value), {
|
|
1191
1905
|
density: "compact",
|
|
1192
1906
|
"control-variant": "stacked"
|
|
1193
|
-
}),
|
|
1194
|
-
message:
|
|
1195
|
-
|
|
1196
|
-
message:
|
|
1197
|
-
errors:
|
|
1907
|
+
}), q({
|
|
1908
|
+
message: v(({ message: T }) => [
|
|
1909
|
+
B(o(le), {
|
|
1910
|
+
message: T,
|
|
1911
|
+
errors: o(a)
|
|
1198
1912
|
}, null, 8, ["message", "errors"])
|
|
1199
1913
|
]),
|
|
1200
1914
|
_: 2
|
|
1201
1915
|
}, [
|
|
1202
|
-
|
|
1916
|
+
o(r).icon ? {
|
|
1203
1917
|
name: "label",
|
|
1204
|
-
fn:
|
|
1205
|
-
|
|
1206
|
-
data:
|
|
1207
|
-
label:
|
|
1918
|
+
fn: v((T) => [
|
|
1919
|
+
B(o(oe), {
|
|
1920
|
+
data: T,
|
|
1921
|
+
label: o(r)
|
|
1208
1922
|
}, null, 8, ["data", "label"])
|
|
1209
1923
|
]),
|
|
1210
1924
|
key: "0"
|
|
1211
1925
|
} : void 0
|
|
1212
|
-
]), 1040, ["modelValue"])) : (
|
|
1926
|
+
]), 1040, ["modelValue"])) : (h(), P(F, H({
|
|
1213
1927
|
key: 0,
|
|
1214
|
-
modelValue:
|
|
1215
|
-
"onUpdate:modelValue":
|
|
1216
|
-
},
|
|
1217
|
-
type:
|
|
1218
|
-
onBlur:
|
|
1219
|
-
}),
|
|
1220
|
-
message:
|
|
1221
|
-
|
|
1222
|
-
message:
|
|
1223
|
-
errors:
|
|
1928
|
+
modelValue: o(i),
|
|
1929
|
+
"onUpdate:modelValue": y[0] || (y[0] = (T) => te(i) ? i.value = T : null)
|
|
1930
|
+
}, o(c), {
|
|
1931
|
+
type: o(u),
|
|
1932
|
+
onBlur: y[1] || (y[1] = (T) => p.value = !0)
|
|
1933
|
+
}), q({
|
|
1934
|
+
message: v(({ message: T }) => [
|
|
1935
|
+
B(o(le), {
|
|
1936
|
+
message: T,
|
|
1937
|
+
errors: o(a)
|
|
1224
1938
|
}, null, 8, ["message", "errors"])
|
|
1225
1939
|
]),
|
|
1226
1940
|
_: 2
|
|
1227
1941
|
}, [
|
|
1228
|
-
|
|
1942
|
+
o(r).icon ? {
|
|
1229
1943
|
name: "label",
|
|
1230
|
-
fn:
|
|
1231
|
-
|
|
1232
|
-
data:
|
|
1233
|
-
label:
|
|
1944
|
+
fn: v((T) => [
|
|
1945
|
+
B(o(oe), {
|
|
1946
|
+
data: T,
|
|
1947
|
+
label: o(r)
|
|
1234
1948
|
}, null, 8, ["data", "label"])
|
|
1235
1949
|
]),
|
|
1236
1950
|
key: "0"
|
|
@@ -1239,7 +1953,7 @@ const ln = {
|
|
|
1239
1953
|
]);
|
|
1240
1954
|
};
|
|
1241
1955
|
}
|
|
1242
|
-
}),
|
|
1956
|
+
}), el = /* @__PURE__ */ ae(Jo, [["__scopeId", "data-v-a3a9a978"]]), tl = { class: "editor-container" }, nl = { class: "editor-container__editor" }, ol = { ref: "editorElement" }, ll = /* @__PURE__ */ M({
|
|
1243
1957
|
__name: "ck-editor-custom",
|
|
1244
1958
|
props: {
|
|
1245
1959
|
modelValue: { default: "" },
|
|
@@ -1247,11 +1961,11 @@ const ln = {
|
|
|
1247
1961
|
disabled: { type: Boolean, default: !1 }
|
|
1248
1962
|
},
|
|
1249
1963
|
emits: ["update:modelValue"],
|
|
1250
|
-
setup(
|
|
1251
|
-
|
|
1252
|
-
"3d4d5a06":
|
|
1964
|
+
setup(e, { expose: t, emit: n }) {
|
|
1965
|
+
dt((s) => ({
|
|
1966
|
+
"3d4d5a06": s.minHeight
|
|
1253
1967
|
}));
|
|
1254
|
-
const
|
|
1968
|
+
const l = n, a = E(!1), r = un, u = {
|
|
1255
1969
|
toolbar: {
|
|
1256
1970
|
items: [
|
|
1257
1971
|
"undo",
|
|
@@ -1283,47 +1997,47 @@ const ln = {
|
|
|
1283
1997
|
shouldNotGroupWhenFull: !1
|
|
1284
1998
|
},
|
|
1285
1999
|
plugins: [
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
$
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
2000
|
+
kt,
|
|
2001
|
+
Vt,
|
|
2002
|
+
_t,
|
|
2003
|
+
jt,
|
|
2004
|
+
Ct,
|
|
2005
|
+
Tt,
|
|
2006
|
+
Bt,
|
|
2007
|
+
It,
|
|
2008
|
+
Pt,
|
|
2009
|
+
Dt,
|
|
2010
|
+
$t,
|
|
2011
|
+
xt,
|
|
2012
|
+
St,
|
|
2013
|
+
Et,
|
|
2014
|
+
Nt,
|
|
2015
|
+
Ft,
|
|
2016
|
+
At,
|
|
2017
|
+
Lt,
|
|
2018
|
+
Mt,
|
|
2019
|
+
Ut,
|
|
2020
|
+
Ot,
|
|
2021
|
+
Rt,
|
|
2022
|
+
Wt,
|
|
2023
|
+
zt,
|
|
2024
|
+
Ht,
|
|
2025
|
+
Kt,
|
|
2026
|
+
Xt,
|
|
2027
|
+
Gt,
|
|
2028
|
+
qt,
|
|
2029
|
+
Yt,
|
|
2030
|
+
Qt,
|
|
2031
|
+
Zt,
|
|
2032
|
+
Jt,
|
|
2033
|
+
en,
|
|
2034
|
+
tn,
|
|
2035
|
+
nn,
|
|
2036
|
+
on,
|
|
2037
|
+
ln,
|
|
2038
|
+
an,
|
|
2039
|
+
rn,
|
|
2040
|
+
sn
|
|
1327
2041
|
],
|
|
1328
2042
|
balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
|
|
1329
2043
|
heading: {
|
|
@@ -1383,33 +2097,33 @@ const ln = {
|
|
|
1383
2097
|
table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] }
|
|
1384
2098
|
};
|
|
1385
2099
|
He(() => {
|
|
1386
|
-
|
|
2100
|
+
a.value = !0;
|
|
1387
2101
|
});
|
|
1388
|
-
const
|
|
2102
|
+
const j = (s) => {
|
|
1389
2103
|
};
|
|
1390
|
-
return
|
|
1391
|
-
const
|
|
1392
|
-
return
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
2104
|
+
return t({ onEditorReady: j }), (s, m) => {
|
|
2105
|
+
const b = $("ckeditor");
|
|
2106
|
+
return h(), A("div", tl, [
|
|
2107
|
+
ne("div", nl, [
|
|
2108
|
+
ne("div", ol, [
|
|
2109
|
+
a.value ? (h(), P(b, {
|
|
1396
2110
|
key: 0,
|
|
1397
|
-
"model-value":
|
|
1398
|
-
editor:
|
|
1399
|
-
config:
|
|
1400
|
-
disabled:
|
|
1401
|
-
style:
|
|
1402
|
-
onReady:
|
|
1403
|
-
"onUpdate:modelValue":
|
|
2111
|
+
"model-value": s.modelValue,
|
|
2112
|
+
editor: o(r),
|
|
2113
|
+
config: u,
|
|
2114
|
+
disabled: s.disabled,
|
|
2115
|
+
style: Pe(`min-height: ${s.minHeight}`),
|
|
2116
|
+
onReady: j,
|
|
2117
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => l("update:modelValue", g))
|
|
1404
2118
|
}, null, 8, ["model-value", "editor", "disabled", "style"])) : L("", !0)
|
|
1405
2119
|
], 512)
|
|
1406
2120
|
])
|
|
1407
2121
|
]);
|
|
1408
2122
|
};
|
|
1409
2123
|
}
|
|
1410
|
-
}),
|
|
2124
|
+
}), al = /* @__PURE__ */ M({
|
|
1411
2125
|
__name: "df-rtf-editor",
|
|
1412
|
-
props: /* @__PURE__ */
|
|
2126
|
+
props: /* @__PURE__ */ Y({
|
|
1413
2127
|
minHeight: {},
|
|
1414
2128
|
control: {},
|
|
1415
2129
|
modelValue: {},
|
|
@@ -1422,61 +2136,61 @@ const ln = {
|
|
|
1422
2136
|
visibility: {},
|
|
1423
2137
|
cssClass: {},
|
|
1424
2138
|
clearable: { type: Boolean }
|
|
1425
|
-
},
|
|
2139
|
+
}, O(x({}, Q), { minHeight: void 0 })),
|
|
1426
2140
|
emits: ["update:modelValue", "click:clear"],
|
|
1427
|
-
setup(
|
|
1428
|
-
const n =
|
|
1429
|
-
return (
|
|
1430
|
-
default:
|
|
1431
|
-
|
|
2141
|
+
setup(e, { emit: t }) {
|
|
2142
|
+
const n = e, l = t, { value: a, vuetifyBindings: r } = K(n, l);
|
|
2143
|
+
return (p, i) => (h(), P(o(De), X(G(n)), {
|
|
2144
|
+
default: v((c) => [
|
|
2145
|
+
B(ll, {
|
|
1432
2146
|
ref: "$editor",
|
|
1433
|
-
modelValue:
|
|
1434
|
-
"onUpdate:modelValue":
|
|
1435
|
-
class:
|
|
1436
|
-
"min-height":
|
|
1437
|
-
disabled:
|
|
1438
|
-
onFocusin: (
|
|
1439
|
-
onFocusout: (
|
|
2147
|
+
modelValue: o(a),
|
|
2148
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => te(a) ? a.value = u : null),
|
|
2149
|
+
class: ge({ "mt-8": !!p.label }),
|
|
2150
|
+
"min-height": p.minHeight,
|
|
2151
|
+
disabled: o(r).disabled,
|
|
2152
|
+
onFocusin: (u) => c.focus(),
|
|
2153
|
+
onFocusout: (u) => c.blur()
|
|
1440
2154
|
}, null, 8, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
|
|
1441
2155
|
]),
|
|
1442
2156
|
_: 1
|
|
1443
2157
|
}, 16));
|
|
1444
2158
|
}
|
|
1445
2159
|
});
|
|
1446
|
-
function
|
|
1447
|
-
return
|
|
2160
|
+
function rl(e) {
|
|
2161
|
+
return e.map((t) => ({ value: t.id, title: t.text, icon: t.icon }));
|
|
1448
2162
|
}
|
|
1449
|
-
function J(
|
|
2163
|
+
function J(e, t) {
|
|
1450
2164
|
var n;
|
|
1451
|
-
return
|
|
2165
|
+
return e == null || Oe(e) && e.length === 0 ? null : t ? qe(e) : Oe(e) ? (n = Ye(e)) != null ? n : null : e;
|
|
1452
2166
|
}
|
|
1453
|
-
function
|
|
1454
|
-
if (
|
|
1455
|
-
const n =
|
|
1456
|
-
return
|
|
2167
|
+
function Ve(e, t) {
|
|
2168
|
+
if (t == null) return [];
|
|
2169
|
+
const n = qe(t);
|
|
2170
|
+
return e.filter((l) => n.some((a) => a === l.id));
|
|
1457
2171
|
}
|
|
1458
|
-
function
|
|
1459
|
-
var
|
|
1460
|
-
const
|
|
1461
|
-
if (
|
|
1462
|
-
|
|
2172
|
+
function ye(e, t, n, l, a) {
|
|
2173
|
+
var p;
|
|
2174
|
+
const r = J(e, n);
|
|
2175
|
+
if (r == null) {
|
|
2176
|
+
t.value = n ? [] : null;
|
|
1463
2177
|
return;
|
|
1464
2178
|
}
|
|
1465
2179
|
if (n)
|
|
1466
|
-
|
|
1467
|
-
else if (
|
|
1468
|
-
|
|
2180
|
+
l ? t.value = r : t.value = Ve(a, r).map((i) => i.id);
|
|
2181
|
+
else if (l)
|
|
2182
|
+
t.value = r;
|
|
1469
2183
|
else {
|
|
1470
|
-
const
|
|
1471
|
-
|
|
2184
|
+
const i = Ye(Ve(a, r));
|
|
2185
|
+
t.value = (p = i == null ? void 0 : i.id) != null ? p : null;
|
|
1472
2186
|
}
|
|
1473
2187
|
}
|
|
1474
|
-
const
|
|
2188
|
+
const il = {
|
|
1475
2189
|
key: 0,
|
|
1476
2190
|
class: "me-1"
|
|
1477
|
-
},
|
|
2191
|
+
}, sl = /* @__PURE__ */ M({
|
|
1478
2192
|
__name: "df-select",
|
|
1479
|
-
props: /* @__PURE__ */
|
|
2193
|
+
props: /* @__PURE__ */ Y({
|
|
1480
2194
|
choices: {},
|
|
1481
2195
|
multiple: { type: Boolean },
|
|
1482
2196
|
allowTags: { type: Boolean },
|
|
@@ -1493,7 +2207,7 @@ const _n = {
|
|
|
1493
2207
|
visibility: {},
|
|
1494
2208
|
cssClass: {},
|
|
1495
2209
|
clearable: { type: Boolean }
|
|
1496
|
-
},
|
|
2210
|
+
}, O(x({}, Q), {
|
|
1497
2211
|
choices: void 0,
|
|
1498
2212
|
multiple: !1,
|
|
1499
2213
|
allowTags: !1,
|
|
@@ -1501,125 +2215,125 @@ const _n = {
|
|
|
1501
2215
|
fetchChoices: void 0
|
|
1502
2216
|
})),
|
|
1503
2217
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
1504
|
-
setup(
|
|
1505
|
-
const n =
|
|
1506
|
-
function
|
|
1507
|
-
|
|
2218
|
+
setup(e, { emit: t }) {
|
|
2219
|
+
const n = e, { choices: l, multiple: a, allowTags: r, allowNull: p, cssClass: i, visibility: c } = _e(n), u = t, { errors: j, label: s, touched: m, value: b, vuetifyBindings: g } = K(n, u), w = E(null), k = E(!1), y = E([]), F = _(() => o(k) ? o(y) : o(l) || []), N = E(!1), T = _(() => rl(F.value));
|
|
2220
|
+
function W(C) {
|
|
2221
|
+
u("update:modelValueDisplay", Ve(F.value, C));
|
|
1508
2222
|
}
|
|
1509
|
-
let
|
|
1510
|
-
function
|
|
1511
|
-
|
|
1512
|
-
|
|
2223
|
+
let f = !1;
|
|
2224
|
+
function d(C) {
|
|
2225
|
+
f = !0, b.value = C, Ae(() => {
|
|
2226
|
+
f = !1;
|
|
1513
2227
|
});
|
|
1514
2228
|
}
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
const I = J(
|
|
1518
|
-
|
|
2229
|
+
ue(w, (C) => {
|
|
2230
|
+
g.value.readonly || Ae(() => {
|
|
2231
|
+
const I = J(C, a.value);
|
|
2232
|
+
W(I), d(I);
|
|
1519
2233
|
});
|
|
1520
|
-
}, { deep: !0 }),
|
|
1521
|
-
if (!
|
|
1522
|
-
const I = J(
|
|
1523
|
-
|
|
2234
|
+
}, { deep: !0 }), ue(b, (C) => {
|
|
2235
|
+
if (!f) {
|
|
2236
|
+
const I = J(C, a.value);
|
|
2237
|
+
ye(I, w, a.value, !1, F.value);
|
|
1524
2238
|
}
|
|
1525
2239
|
}, { deep: !0 });
|
|
1526
|
-
function
|
|
1527
|
-
if (
|
|
1528
|
-
const
|
|
1529
|
-
|
|
2240
|
+
function S() {
|
|
2241
|
+
if (g.value.readonly || r.value) return;
|
|
2242
|
+
const C = J(w.value, a.value);
|
|
2243
|
+
ye(C, w, a.value, !1, F.value), d(C);
|
|
1530
2244
|
}
|
|
1531
|
-
function
|
|
2245
|
+
function U(C) {
|
|
1532
2246
|
let I;
|
|
1533
|
-
|
|
2247
|
+
a.value && Array.isArray(w.value) ? I = J(w.value.filter((V) => V !== C), a.value) : I = null, ye(I, w, a.value, !1, F.value), d(I);
|
|
1534
2248
|
}
|
|
1535
|
-
function
|
|
1536
|
-
return
|
|
1537
|
-
if (!(
|
|
1538
|
-
|
|
2249
|
+
function de(C, I) {
|
|
2250
|
+
return we(this, null, function* () {
|
|
2251
|
+
if (!(l.value || n.fetchChoices === void 0)) {
|
|
2252
|
+
N.value = !0;
|
|
1539
2253
|
try {
|
|
1540
|
-
const
|
|
1541
|
-
|
|
2254
|
+
const V = Ve(F.value, J(w.value, a.value)), Z = yield n.fetchChoices(C, I);
|
|
2255
|
+
y.value = vt([...V, ...Z], "id"), k.value = !0;
|
|
1542
2256
|
} finally {
|
|
1543
|
-
|
|
2257
|
+
N.value = !1;
|
|
1544
2258
|
}
|
|
1545
2259
|
}
|
|
1546
2260
|
});
|
|
1547
2261
|
}
|
|
1548
|
-
function
|
|
1549
|
-
let
|
|
1550
|
-
!
|
|
2262
|
+
function me() {
|
|
2263
|
+
let C = b.value;
|
|
2264
|
+
!p.value && C == null && T.value.length && (C = T.value[0].value), C = J(C, a.value), ye(C, w, a.value, r.value, F.value), W(C), d(C);
|
|
1551
2265
|
}
|
|
1552
|
-
return
|
|
1553
|
-
|
|
1554
|
-
}), (
|
|
1555
|
-
const
|
|
1556
|
-
return
|
|
2266
|
+
return me(), n.fetchChoices !== void 0 && de(void 0, b.value).then(() => {
|
|
2267
|
+
me();
|
|
2268
|
+
}), (C, I) => {
|
|
2269
|
+
const V = $("v-chip"), Z = $("v-list-item");
|
|
2270
|
+
return o(c) !== o(z).SUPPRESS ? (h(), P(ce(o(r) ? "v-combobox" : "v-autocomplete"), H({
|
|
1557
2271
|
key: 0,
|
|
1558
|
-
modelValue:
|
|
1559
|
-
"onUpdate:modelValue": I[0] || (I[0] = (
|
|
2272
|
+
modelValue: w.value,
|
|
2273
|
+
"onUpdate:modelValue": I[0] || (I[0] = (D) => w.value = D),
|
|
1560
2274
|
class: [
|
|
1561
|
-
|
|
2275
|
+
o(i),
|
|
1562
2276
|
{
|
|
1563
|
-
"d-none":
|
|
1564
|
-
invisible:
|
|
2277
|
+
"d-none": o(c) === o(z).HIDDEN,
|
|
2278
|
+
invisible: o(c) === o(z).INVISIBLE
|
|
1565
2279
|
}
|
|
1566
2280
|
],
|
|
1567
|
-
items:
|
|
2281
|
+
items: T.value,
|
|
1568
2282
|
"return-object": !1
|
|
1569
|
-
},
|
|
1570
|
-
label:
|
|
2283
|
+
}, o(g), {
|
|
2284
|
+
label: o(g).label,
|
|
1571
2285
|
chips: "",
|
|
1572
2286
|
"auto-select-first": !0,
|
|
1573
|
-
"closable-chips":
|
|
1574
|
-
clearable:
|
|
1575
|
-
multiple:
|
|
1576
|
-
loading:
|
|
2287
|
+
"closable-chips": o(p) || o(a) && w.value.length > 1,
|
|
2288
|
+
clearable: o(p),
|
|
2289
|
+
multiple: o(a),
|
|
2290
|
+
loading: N.value,
|
|
1577
2291
|
"hide-selected": !1,
|
|
1578
|
-
"aria-describedby":
|
|
2292
|
+
"aria-describedby": o(g).helpText ? `${o(g).name}-help` : null,
|
|
1579
2293
|
"menu-props": { maxHeight: "400" },
|
|
1580
2294
|
"hide-details": "auto",
|
|
1581
|
-
"onUpdate:search": I[1] || (I[1] = (
|
|
1582
|
-
"onUpdate:modelValue":
|
|
1583
|
-
"onClick:clear": I[2] || (I[2] = (
|
|
1584
|
-
onBlur: I[3] || (I[3] = (
|
|
1585
|
-
}),
|
|
1586
|
-
chip:
|
|
1587
|
-
(
|
|
1588
|
-
key:
|
|
2295
|
+
"onUpdate:search": I[1] || (I[1] = (D) => de(D, void 0)),
|
|
2296
|
+
"onUpdate:modelValue": S,
|
|
2297
|
+
"onClick:clear": I[2] || (I[2] = (D) => w.value = null),
|
|
2298
|
+
onBlur: I[3] || (I[3] = (D) => m.value = !0)
|
|
2299
|
+
}), q({
|
|
2300
|
+
chip: v(({ item: D }) => [
|
|
2301
|
+
(h(), P(V, {
|
|
2302
|
+
key: D.value,
|
|
1589
2303
|
label: "",
|
|
1590
2304
|
size: "small",
|
|
1591
2305
|
class: "d-flex align-middle",
|
|
1592
|
-
variant:
|
|
1593
|
-
closable:
|
|
1594
|
-
"onClick:close": (
|
|
2306
|
+
variant: o(a) ? "tonal" : "text",
|
|
2307
|
+
closable: o(a),
|
|
2308
|
+
"onClick:close": (re) => U(D.value)
|
|
1595
2309
|
}, {
|
|
1596
|
-
prepend:
|
|
1597
|
-
var
|
|
2310
|
+
prepend: v(() => {
|
|
2311
|
+
var re;
|
|
1598
2312
|
return [
|
|
1599
|
-
(
|
|
2313
|
+
(re = D.raw) != null && re.icon ? (h(), P(o(Be), {
|
|
1600
2314
|
key: 0,
|
|
1601
2315
|
class: "me-1 action-icon d-inline-block",
|
|
1602
|
-
name:
|
|
2316
|
+
name: D.raw.icon
|
|
1603
2317
|
}, null, 8, ["name"])) : L("", !0)
|
|
1604
2318
|
];
|
|
1605
2319
|
}),
|
|
1606
|
-
default:
|
|
1607
|
-
|
|
1608
|
-
class:
|
|
1609
|
-
},
|
|
2320
|
+
default: v(() => [
|
|
2321
|
+
ne("span", {
|
|
2322
|
+
class: ge({ "text-body-1": !o(a) })
|
|
2323
|
+
}, se(D.title), 3)
|
|
1610
2324
|
]),
|
|
1611
2325
|
_: 2
|
|
1612
2326
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
1613
2327
|
]),
|
|
1614
|
-
item:
|
|
1615
|
-
|
|
1616
|
-
prepend:
|
|
2328
|
+
item: v(({ props: D, item: re }) => [
|
|
2329
|
+
B(Z, X(G(D)), {
|
|
2330
|
+
prepend: v(() => {
|
|
1617
2331
|
var $e;
|
|
1618
2332
|
return [
|
|
1619
|
-
($e =
|
|
1620
|
-
|
|
2333
|
+
($e = re.raw) != null && $e.icon ? (h(), A("span", il, [
|
|
2334
|
+
B(o(Be), {
|
|
1621
2335
|
class: "action-icon d-inline-block",
|
|
1622
|
-
name:
|
|
2336
|
+
name: re.raw.icon
|
|
1623
2337
|
}, null, 8, ["name"])
|
|
1624
2338
|
])) : L("", !0)
|
|
1625
2339
|
];
|
|
@@ -1627,44 +2341,44 @@ const _n = {
|
|
|
1627
2341
|
_: 2
|
|
1628
2342
|
}, 1040)
|
|
1629
2343
|
]),
|
|
1630
|
-
message:
|
|
1631
|
-
|
|
1632
|
-
message:
|
|
1633
|
-
errors:
|
|
2344
|
+
message: v(({ message: D }) => [
|
|
2345
|
+
B(o(le), {
|
|
2346
|
+
message: D,
|
|
2347
|
+
errors: o(j)
|
|
1634
2348
|
}, null, 8, ["message", "errors"])
|
|
1635
2349
|
]),
|
|
1636
2350
|
_: 2
|
|
1637
2351
|
}, [
|
|
1638
|
-
|
|
2352
|
+
o(s).icon ? {
|
|
1639
2353
|
name: "label",
|
|
1640
|
-
fn:
|
|
1641
|
-
|
|
1642
|
-
data:
|
|
1643
|
-
label:
|
|
2354
|
+
fn: v((D) => [
|
|
2355
|
+
B(o(oe), {
|
|
2356
|
+
data: D,
|
|
2357
|
+
label: o(s)
|
|
1644
2358
|
}, null, 8, ["data", "label"])
|
|
1645
2359
|
]),
|
|
1646
2360
|
key: "0"
|
|
1647
2361
|
} : void 0,
|
|
1648
|
-
|
|
2362
|
+
C.$slots["append-inner"] ? {
|
|
1649
2363
|
name: "append-inner",
|
|
1650
|
-
fn:
|
|
1651
|
-
|
|
2364
|
+
fn: v((D) => [
|
|
2365
|
+
ie(C.$slots, "append-inner", X(G(D)), void 0, !0)
|
|
1652
2366
|
]),
|
|
1653
2367
|
key: "1"
|
|
1654
2368
|
} : void 0,
|
|
1655
|
-
|
|
2369
|
+
C.$slots["prepend-inner"] ? {
|
|
1656
2370
|
name: "prepend-inner",
|
|
1657
|
-
fn:
|
|
1658
|
-
|
|
2371
|
+
fn: v((D) => [
|
|
2372
|
+
ie(C.$slots, "prepend-inner", X(G(D)), void 0, !0)
|
|
1659
2373
|
]),
|
|
1660
2374
|
key: "2"
|
|
1661
2375
|
} : void 0
|
|
1662
2376
|
]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : L("", !0);
|
|
1663
2377
|
};
|
|
1664
2378
|
}
|
|
1665
|
-
}),
|
|
2379
|
+
}), ul = /* @__PURE__ */ ae(sl, [["__scopeId", "data-v-928dac22"]]), cl = { class: "container" }, dl = /* @__PURE__ */ M({
|
|
1666
2380
|
__name: "df-text-area",
|
|
1667
|
-
props: /* @__PURE__ */
|
|
2381
|
+
props: /* @__PURE__ */ Y({
|
|
1668
2382
|
rows: {},
|
|
1669
2383
|
maxRows: {},
|
|
1670
2384
|
control: {},
|
|
@@ -1678,47 +2392,47 @@ const _n = {
|
|
|
1678
2392
|
visibility: {},
|
|
1679
2393
|
cssClass: {},
|
|
1680
2394
|
clearable: { type: Boolean }
|
|
1681
|
-
},
|
|
2395
|
+
}, O(x({}, Q), {
|
|
1682
2396
|
rows: void 0,
|
|
1683
2397
|
maxRows: void 0
|
|
1684
2398
|
})),
|
|
1685
2399
|
emits: ["update:modelValue", "click:clear"],
|
|
1686
|
-
setup(
|
|
1687
|
-
const n =
|
|
1688
|
-
return (
|
|
1689
|
-
const
|
|
1690
|
-
return
|
|
1691
|
-
|
|
2400
|
+
setup(e, { emit: t }) {
|
|
2401
|
+
const n = e, l = t, { errors: a, label: r, touched: p, value: i, vuetifyBindings: c } = K(n, l), { cssClass: u, visibility: j } = _e(n);
|
|
2402
|
+
return (s, m) => {
|
|
2403
|
+
const b = $("v-textarea");
|
|
2404
|
+
return h(), A("div", cl, [
|
|
2405
|
+
o(j) !== o(z).SUPPRESS ? (h(), P(b, H({
|
|
1692
2406
|
key: 0,
|
|
1693
|
-
modelValue:
|
|
1694
|
-
"onUpdate:modelValue":
|
|
2407
|
+
modelValue: o(i),
|
|
2408
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => te(i) ? i.value = g : null),
|
|
1695
2409
|
class: [
|
|
1696
|
-
|
|
2410
|
+
o(u),
|
|
1697
2411
|
{
|
|
1698
|
-
"d-none":
|
|
1699
|
-
invisible:
|
|
2412
|
+
"d-none": o(j) === o(z).HIDDEN,
|
|
2413
|
+
invisible: o(j) === o(z).INVISIBLE
|
|
1700
2414
|
}
|
|
1701
2415
|
],
|
|
1702
|
-
rows:
|
|
1703
|
-
"auto-grow": (
|
|
1704
|
-
"max-rows":
|
|
1705
|
-
},
|
|
1706
|
-
onBlur:
|
|
1707
|
-
}),
|
|
1708
|
-
message:
|
|
1709
|
-
|
|
1710
|
-
message:
|
|
1711
|
-
errors:
|
|
2416
|
+
rows: s.rows,
|
|
2417
|
+
"auto-grow": (s.maxRows || 0) > 0,
|
|
2418
|
+
"max-rows": s.maxRows
|
|
2419
|
+
}, o(c), {
|
|
2420
|
+
onBlur: m[1] || (m[1] = (g) => p.value = !0)
|
|
2421
|
+
}), q({
|
|
2422
|
+
message: v(({ message: g }) => [
|
|
2423
|
+
B(o(le), {
|
|
2424
|
+
message: g,
|
|
2425
|
+
errors: o(a)
|
|
1712
2426
|
}, null, 8, ["message", "errors"])
|
|
1713
2427
|
]),
|
|
1714
2428
|
_: 2
|
|
1715
2429
|
}, [
|
|
1716
|
-
|
|
2430
|
+
o(r).icon ? {
|
|
1717
2431
|
name: "label",
|
|
1718
|
-
fn:
|
|
1719
|
-
|
|
1720
|
-
data:
|
|
1721
|
-
label:
|
|
2432
|
+
fn: v((g) => [
|
|
2433
|
+
B(o(oe), {
|
|
2434
|
+
data: g,
|
|
2435
|
+
label: o(r)
|
|
1722
2436
|
}, null, 8, ["data", "label"])
|
|
1723
2437
|
]),
|
|
1724
2438
|
key: "0"
|
|
@@ -1727,81 +2441,82 @@ const _n = {
|
|
|
1727
2441
|
]);
|
|
1728
2442
|
};
|
|
1729
2443
|
}
|
|
1730
|
-
}),
|
|
2444
|
+
}), ml = /* @__PURE__ */ ae(dl, [["__scopeId", "data-v-b2f125f8"]]), pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1731
2445
|
__proto__: null,
|
|
1732
|
-
DfActions:
|
|
1733
|
-
DfCheckbox:
|
|
1734
|
-
DfColor:
|
|
1735
|
-
DfDateTime:
|
|
1736
|
-
DfFile:
|
|
1737
|
-
DfInput:
|
|
1738
|
-
DfRtfEditor:
|
|
1739
|
-
DfSelect:
|
|
1740
|
-
DfTextArea:
|
|
1741
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2446
|
+
DfActions: Ho,
|
|
2447
|
+
DfCheckbox: Ko,
|
|
2448
|
+
DfColor: Xo,
|
|
2449
|
+
DfDateTime: qo,
|
|
2450
|
+
DfFile: Qo,
|
|
2451
|
+
DfInput: el,
|
|
2452
|
+
DfRtfEditor: al,
|
|
2453
|
+
DfSelect: ul,
|
|
2454
|
+
DfTextArea: ml
|
|
2455
|
+
}, Symbol.toStringTag, { value: "Module" })), fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1742
2456
|
__proto__: null,
|
|
1743
|
-
VAutocomplete:
|
|
1744
|
-
VBtn:
|
|
1745
|
-
VCheckbox:
|
|
1746
|
-
VChip:
|
|
1747
|
-
VCol:
|
|
1748
|
-
VColorPicker:
|
|
1749
|
-
VCombobox:
|
|
1750
|
-
VConfirmEdit:
|
|
1751
|
-
VDatePicker:
|
|
1752
|
-
VField:
|
|
1753
|
-
VFileInput:
|
|
1754
|
-
VIcon:
|
|
1755
|
-
VImg:
|
|
1756
|
-
VInput:
|
|
1757
|
-
VListItem:
|
|
1758
|
-
VMenu:
|
|
1759
|
-
VNumberInput:
|
|
1760
|
-
VProgressLinear:
|
|
1761
|
-
VRow:
|
|
1762
|
-
VSelect:
|
|
1763
|
-
VSwitch:
|
|
1764
|
-
VTextField:
|
|
1765
|
-
VTextarea:
|
|
1766
|
-
VTimePicker:
|
|
1767
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2457
|
+
VAutocomplete: cn,
|
|
2458
|
+
VBtn: dn,
|
|
2459
|
+
VCheckbox: mn,
|
|
2460
|
+
VChip: pn,
|
|
2461
|
+
VCol: yn,
|
|
2462
|
+
VColorPicker: vn,
|
|
2463
|
+
VCombobox: fn,
|
|
2464
|
+
VConfirmEdit: bn,
|
|
2465
|
+
VDatePicker: hn,
|
|
2466
|
+
VField: gn,
|
|
2467
|
+
VFileInput: wn,
|
|
2468
|
+
VIcon: Vn,
|
|
2469
|
+
VImg: _n,
|
|
2470
|
+
VInput: jn,
|
|
2471
|
+
VListItem: Cn,
|
|
2472
|
+
VMenu: Tn,
|
|
2473
|
+
VNumberInput: Bn,
|
|
2474
|
+
VProgressLinear: In,
|
|
2475
|
+
VRow: kn,
|
|
2476
|
+
VSelect: Pn,
|
|
2477
|
+
VSwitch: Dn,
|
|
2478
|
+
VTextField: xn,
|
|
2479
|
+
VTextarea: $n,
|
|
2480
|
+
VTimePicker: Sn
|
|
2481
|
+
}, Symbol.toStringTag, { value: "Module" })), Gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1768
2482
|
__proto__: null
|
|
1769
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1770
|
-
install: (
|
|
1771
|
-
var n,
|
|
1772
|
-
|
|
2483
|
+
}, Symbol.toStringTag, { value: "Module" })), ql = {
|
|
2484
|
+
install: (e, t) => {
|
|
2485
|
+
var n, l;
|
|
2486
|
+
e.use(Hn), e.provide(et, t != null ? t : {}), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(pl).map(([a, r]) => e.component(a, r)), (l = t == null ? void 0 : t.registerVuetifyComponents) != null && l && Object.entries(fl).map(([a, r]) => e.component(a, r));
|
|
1773
2487
|
}
|
|
1774
2488
|
};
|
|
1775
2489
|
export {
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
2490
|
+
ke as Action,
|
|
2491
|
+
R as ActionDisplayStyle,
|
|
2492
|
+
Io as DateTimeLocaleConfig,
|
|
2493
|
+
Ho as DfActions,
|
|
2494
|
+
Ko as DfCheckbox,
|
|
2495
|
+
Xo as DfColor,
|
|
2496
|
+
qo as DfDateTime,
|
|
2497
|
+
Qo as DfFile,
|
|
2498
|
+
el as DfInput,
|
|
2499
|
+
Gl as DfInputComponentProps,
|
|
2500
|
+
pl as DfInputComponents,
|
|
2501
|
+
oe as DfLabel,
|
|
2502
|
+
al as DfRtfEditor,
|
|
2503
|
+
ul as DfSelect,
|
|
2504
|
+
ml as DfTextArea,
|
|
2505
|
+
ql as DynamicFormsInputs,
|
|
2506
|
+
De as InputBase,
|
|
2507
|
+
$o as Label,
|
|
2508
|
+
le as MessagesWidget,
|
|
2509
|
+
Oo as ResponsiveActionRenderOptions,
|
|
2510
|
+
Lo as ResponsiveRenderOptions,
|
|
2511
|
+
fl as VuetifyComponents,
|
|
1797
2512
|
Q as defaultBaseProps,
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
2513
|
+
We as defaultDisplayStyle,
|
|
2514
|
+
Mo as getBreakpointName,
|
|
2515
|
+
ze as responsiveBreakpoints,
|
|
2516
|
+
he as translatableStrings,
|
|
2517
|
+
Xl as translateStrings,
|
|
2518
|
+
Uo as useBreakpoint,
|
|
1804
2519
|
K as useInputBase,
|
|
1805
|
-
|
|
2520
|
+
et as vuetifyInputsSettingsKey
|
|
1806
2521
|
};
|
|
1807
2522
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|