@dynamicforms/vuetify-inputs 0.5.4 → 0.5.6
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 $e = 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, $ = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
lt.call(t, n) && je(e, n, t[n]);
|
|
8
|
+
if ($e)
|
|
9
|
+
for (var n of $e(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 ge = (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
|
|
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 xe from "vue";
|
|
31
|
+
import { defineComponent as M, mergeModels as Ae, useModel as rt, ref as A, watch as ue, onMounted as ze, markRaw as it, onBeforeUnmount as He, createBlock as P, openBlock as h, resolveDynamicComponent as ce, version as st, isRef as te, resolveComponent as S, createElementBlock as F, createCommentVNode as L, createTextVNode as Ke, Fragment as Ie, toDisplayString as se, inject as ut, computed as _, renderList as Xe, normalizeClass as Ve, unref as o, mergeProps as R, 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 Ge, toRefs as _e, withKeys as Ee, useCssVars as dt, nextTick as Ne } from "vue";
|
|
32
|
+
import { debounce as mt, isString as ee, isEmpty as be, isObjectLike as pt, isBoolean as Fe, clone as ft, toNumber as Le, isNaN as Me, isArray as Ue, castArray as qe, first as Ye, unionBy as vt } from "lodash-es";
|
|
33
|
+
import Be from "vue-ionicon";
|
|
34
|
+
import Oe, { ValidationErrorRenderContent as bt, DisplayMode as H, 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 St, HorizontalLine as xt, ImageBlock as At, ImageCaption as Et, ImageInline as Nt, ImageInsertViaUrl as Ft, 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 Sn } from "vuetify/components/VTextField";
|
|
61
|
+
import { VTimePicker as xn } 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 An(e, t) {
|
|
76
|
+
const n = e.extraPlugins || [];
|
|
77
|
+
return O($({}, 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 En(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 Nn(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 Fn(e) {
|
|
120
|
+
if (Ze(e))
|
|
121
121
|
return 3;
|
|
122
|
-
const { major:
|
|
122
|
+
const { major: t } = Nn(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 En(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 ? Fn(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 : An(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__ */ Ae({
|
|
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__ */ Ae(["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 = A(), i = A(), c = A();
|
|
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(), ze(() => {
|
|
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
|
+
}), He(() => {
|
|
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 (!xe.version || !xe.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
280
|
}
|
|
281
|
-
}
|
|
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";
|
|
634
|
+
}
|
|
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: A(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 = S("v-icon"), a = S("v-img");
|
|
997
|
+
return h(), F("div", Po, [
|
|
998
|
+
t.label.icon ? (h(), F(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
|
+
Ke(" " + 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 = A(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 Oe.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 = A(!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 || Oe.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,
|
|
349
|
-
return {
|
|
350
|
-
name: (k =
|
|
351
|
-
class:
|
|
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;
|
|
1056
|
+
return $({
|
|
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:
|
|
368
|
-
};
|
|
1074
|
+
helpText: b.value
|
|
1075
|
+
}, e.passthroughAttrs || {});
|
|
369
1076
|
})
|
|
370
1077
|
};
|
|
371
1078
|
}
|
|
372
|
-
const
|
|
1079
|
+
const So = {
|
|
373
1080
|
key: 0,
|
|
374
1081
|
class: "custom-error-display text-error"
|
|
375
|
-
},
|
|
1082
|
+
}, xo = { key: 0 }, Ao = { key: 1 }, Eo = /* @__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(), F("div", So, [
|
|
1090
|
+
(h(!0), F(Ie, null, Xe(t.errors, (l, a) => {
|
|
1091
|
+
var r;
|
|
1092
|
+
return h(), F("div", {
|
|
1093
|
+
key: a,
|
|
1094
|
+
class: Ve({ "first-error": a === 0, "last-error": a === t.errors.length - 1 })
|
|
388
1095
|
}, [
|
|
389
|
-
|
|
1096
|
+
l.componentName === "template" ? (h(), F("div", xo, 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), R({
|
|
393
1100
|
key: 2,
|
|
394
1101
|
ref_for: !0
|
|
395
|
-
},
|
|
396
|
-
default:
|
|
397
|
-
|
|
1102
|
+
}, l.componentBindings), {
|
|
1103
|
+
default: v(() => [
|
|
1104
|
+
Ke(se(l.componentBody), 1)
|
|
398
1105
|
]),
|
|
399
1106
|
_: 2
|
|
400
1107
|
}, 1040))
|
|
401
1108
|
], 2);
|
|
402
1109
|
}), 128))
|
|
403
|
-
])) : (
|
|
1110
|
+
])) : (h(), F("span", Ao, se(t.message), 1));
|
|
404
1111
|
}
|
|
405
|
-
}),
|
|
1112
|
+
}), le = /* @__PURE__ */ ae(Eo, [["__scopeId", "data-v-ff7a8b63"]]), No = { class: "d-flex w-100 style-resetting" }, Fo = /* @__PURE__ */ M({
|
|
406
1113
|
__name: "input-base",
|
|
407
1114
|
props: {
|
|
408
1115
|
control: {},
|
|
@@ -416,74 +1123,75 @@ const Kt = {
|
|
|
416
1123
|
visibility: {},
|
|
417
1124
|
cssClass: {},
|
|
418
1125
|
clearable: { type: Boolean },
|
|
1126
|
+
passthroughAttrs: {},
|
|
419
1127
|
loading: { type: Boolean }
|
|
420
1128
|
},
|
|
421
1129
|
emits: ["update:modelValue", "click:clear", "blur"],
|
|
422
|
-
setup(
|
|
423
|
-
const n =
|
|
424
|
-
function
|
|
425
|
-
|
|
1130
|
+
setup(e, { emit: t }) {
|
|
1131
|
+
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 = A(!1);
|
|
1132
|
+
function m(b) {
|
|
1133
|
+
s.value = b, b || (i.value = !0, l("blur"));
|
|
426
1134
|
}
|
|
427
|
-
return (
|
|
428
|
-
const
|
|
429
|
-
return
|
|
1135
|
+
return (b, g) => {
|
|
1136
|
+
const w = S("v-field"), k = S("v-input");
|
|
1137
|
+
return o(c) !== o(H).SUPPRESS ? (h(), P(k, {
|
|
430
1138
|
key: 0,
|
|
431
|
-
name:
|
|
432
|
-
hint:
|
|
433
|
-
"persistent-hint":
|
|
434
|
-
"hide-details":
|
|
435
|
-
"error-messages":
|
|
436
|
-
class:
|
|
437
|
-
|
|
1139
|
+
name: o(u).name,
|
|
1140
|
+
hint: o(u).hint,
|
|
1141
|
+
"persistent-hint": o(u).persistentHint,
|
|
1142
|
+
"hide-details": o(u).hideDetails,
|
|
1143
|
+
"error-messages": o(u).errorMessages,
|
|
1144
|
+
class: Ve([
|
|
1145
|
+
b.cssClass,
|
|
438
1146
|
{
|
|
439
|
-
"d-none":
|
|
440
|
-
invisible:
|
|
1147
|
+
"d-none": o(c) === o(H).HIDDEN,
|
|
1148
|
+
invisible: o(c) === o(H).INVISIBLE
|
|
441
1149
|
}
|
|
442
1150
|
])
|
|
443
|
-
},
|
|
444
|
-
message:
|
|
445
|
-
|
|
446
|
-
message:
|
|
447
|
-
errors:
|
|
1151
|
+
}, q({
|
|
1152
|
+
message: v(({ message: y }) => [
|
|
1153
|
+
B(le, {
|
|
1154
|
+
message: y,
|
|
1155
|
+
errors: o(a)
|
|
448
1156
|
}, null, 8, ["message", "errors"])
|
|
449
1157
|
]),
|
|
450
|
-
default:
|
|
451
|
-
|
|
452
|
-
variant:
|
|
453
|
-
label:
|
|
454
|
-
disabled:
|
|
455
|
-
clearable:
|
|
1158
|
+
default: v(() => [
|
|
1159
|
+
B(w, {
|
|
1160
|
+
variant: o(u).variant,
|
|
1161
|
+
label: o(u).label,
|
|
1162
|
+
disabled: o(u).disabled,
|
|
1163
|
+
clearable: j.value,
|
|
456
1164
|
"persistent-clear": !0,
|
|
457
|
-
dirty: !!
|
|
458
|
-
active:
|
|
459
|
-
loading:
|
|
460
|
-
"onClick:clear":
|
|
461
|
-
"onUpdate:focused":
|
|
462
|
-
},
|
|
463
|
-
default:
|
|
464
|
-
|
|
465
|
-
|
|
1165
|
+
dirty: !!o(p),
|
|
1166
|
+
active: s.value,
|
|
1167
|
+
loading: b.loading,
|
|
1168
|
+
"onClick:clear": g[0] || (g[0] = (y) => l("click:clear")),
|
|
1169
|
+
"onUpdate:focused": g[1] || (g[1] = (y) => m(y))
|
|
1170
|
+
}, q({
|
|
1171
|
+
default: v((y) => [
|
|
1172
|
+
ne("div", No, [
|
|
1173
|
+
ie(b.$slots, "default", X(G(y)), void 0, !0)
|
|
466
1174
|
])
|
|
467
1175
|
]),
|
|
468
|
-
loader:
|
|
469
|
-
|
|
1176
|
+
loader: v((y) => [
|
|
1177
|
+
ie(b.$slots, "loader", X(G(y)), void 0, !0)
|
|
470
1178
|
]),
|
|
471
1179
|
_: 2
|
|
472
1180
|
}, [
|
|
473
|
-
|
|
1181
|
+
o(r).icon ? {
|
|
474
1182
|
name: "label",
|
|
475
|
-
fn:
|
|
476
|
-
|
|
477
|
-
data:
|
|
478
|
-
label:
|
|
1183
|
+
fn: v((y) => [
|
|
1184
|
+
B(oe, {
|
|
1185
|
+
data: y,
|
|
1186
|
+
label: o(r)
|
|
479
1187
|
}, null, 8, ["data", "label"])
|
|
480
1188
|
]),
|
|
481
1189
|
key: "0"
|
|
482
1190
|
} : void 0,
|
|
483
|
-
|
|
1191
|
+
b.$slots["prepend-inner"] ? {
|
|
484
1192
|
name: "prepend-inner",
|
|
485
|
-
fn:
|
|
486
|
-
|
|
1193
|
+
fn: v((y) => [
|
|
1194
|
+
ie(b.$slots, "prepend-inner", X(G(y)), void 0, !0)
|
|
487
1195
|
]),
|
|
488
1196
|
key: "1"
|
|
489
1197
|
} : void 0
|
|
@@ -491,94 +1199,94 @@ const Kt = {
|
|
|
491
1199
|
]),
|
|
492
1200
|
_: 2
|
|
493
1201
|
}, [
|
|
494
|
-
|
|
1202
|
+
b.$slots.prepend ? {
|
|
495
1203
|
name: "prepend",
|
|
496
|
-
fn:
|
|
497
|
-
|
|
1204
|
+
fn: v((y) => [
|
|
1205
|
+
ie(b.$slots, "prepend", X(G(y)), void 0, !0)
|
|
498
1206
|
]),
|
|
499
1207
|
key: "0"
|
|
500
1208
|
} : void 0
|
|
501
1209
|
]), 1032, ["name", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : L("", !0);
|
|
502
1210
|
};
|
|
503
1211
|
}
|
|
504
|
-
}),
|
|
1212
|
+
}), Pe = /* @__PURE__ */ ae(Fo, [["__scopeId", "data-v-7ba7207d"]]), he = {
|
|
505
1213
|
Yes: "Yes",
|
|
506
1214
|
No: "No",
|
|
507
1215
|
Close: "Close"
|
|
508
1216
|
};
|
|
509
|
-
function
|
|
510
|
-
Object.keys(
|
|
511
|
-
|
|
1217
|
+
function Xl(e) {
|
|
1218
|
+
Object.keys(he).forEach((t) => {
|
|
1219
|
+
he[t] = e(t);
|
|
512
1220
|
});
|
|
513
1221
|
}
|
|
514
|
-
var
|
|
515
|
-
const
|
|
516
|
-
((
|
|
517
|
-
function
|
|
518
|
-
return
|
|
1222
|
+
var W = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(W || {});
|
|
1223
|
+
const Re = 0;
|
|
1224
|
+
((e) => {
|
|
1225
|
+
function t(a) {
|
|
1226
|
+
return a.toUpperCase() === "BUTTON" ? 0 : a.toUpperCase() === "TEXT" ? 1 : Re;
|
|
519
1227
|
}
|
|
520
|
-
|
|
521
|
-
function n(
|
|
522
|
-
const
|
|
523
|
-
return Object.values(
|
|
1228
|
+
e.fromString = t;
|
|
1229
|
+
function n(a) {
|
|
1230
|
+
const r = typeof a == "number" ? a : e.fromString(a);
|
|
1231
|
+
return Object.values(e).includes(r) ? r : Re;
|
|
524
1232
|
}
|
|
525
|
-
|
|
526
|
-
function
|
|
527
|
-
const
|
|
528
|
-
return Object.values(
|
|
1233
|
+
e.fromAny = n;
|
|
1234
|
+
function l(a) {
|
|
1235
|
+
const r = typeof a == "number" ? a : e.fromString(a);
|
|
1236
|
+
return Object.values(e).includes(r);
|
|
529
1237
|
}
|
|
530
|
-
|
|
531
|
-
})(
|
|
532
|
-
Object.freeze(
|
|
533
|
-
const
|
|
534
|
-
class
|
|
535
|
-
constructor(
|
|
536
|
-
|
|
537
|
-
this._value = this.cleanBreakpoint(
|
|
538
|
-
const
|
|
539
|
-
|
|
1238
|
+
e.isDefined = l;
|
|
1239
|
+
})(W || (W = {}));
|
|
1240
|
+
Object.freeze(W);
|
|
1241
|
+
const We = ["xs", "sm", "md", "lg", "xl"];
|
|
1242
|
+
class Lo {
|
|
1243
|
+
constructor(t) {
|
|
1244
|
+
Se(this, "_value");
|
|
1245
|
+
this._value = this.cleanBreakpoint(t, !0), t && We.forEach((n) => {
|
|
1246
|
+
const l = this.cleanBreakpoint(t[n]);
|
|
1247
|
+
l && (this._value[n] = l);
|
|
540
1248
|
});
|
|
541
1249
|
}
|
|
542
|
-
getOptionsForBreakpoint(
|
|
543
|
-
const n = this.cleanBreakpoint(this._value),
|
|
544
|
-
for (const
|
|
545
|
-
const
|
|
546
|
-
for (const
|
|
547
|
-
(
|
|
548
|
-
if (
|
|
1250
|
+
getOptionsForBreakpoint(t) {
|
|
1251
|
+
const n = this.cleanBreakpoint(this._value), l = Object.keys(n);
|
|
1252
|
+
for (const a of We) {
|
|
1253
|
+
const r = this._value[a];
|
|
1254
|
+
for (const p of l)
|
|
1255
|
+
(r == null ? void 0 : r[p]) != null && (n[p] = r[p]);
|
|
1256
|
+
if (a === t) break;
|
|
549
1257
|
}
|
|
550
1258
|
return n;
|
|
551
1259
|
}
|
|
552
1260
|
}
|
|
553
|
-
function
|
|
554
|
-
return
|
|
1261
|
+
function Mo(e) {
|
|
1262
|
+
return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
|
|
555
1263
|
}
|
|
556
|
-
function
|
|
557
|
-
const
|
|
558
|
-
return
|
|
1264
|
+
function Uo() {
|
|
1265
|
+
const e = wt();
|
|
1266
|
+
return _(() => Mo(e));
|
|
559
1267
|
}
|
|
560
|
-
class
|
|
1268
|
+
class Oo extends Lo {
|
|
561
1269
|
// eslint-disable-next-line class-methods-use-this
|
|
562
|
-
cleanBreakpoint(
|
|
563
|
-
if ((!
|
|
564
|
-
const
|
|
565
|
-
return n && (
|
|
1270
|
+
cleanBreakpoint(t, n = !1) {
|
|
1271
|
+
if ((!t || !pt(t)) && !n) return null;
|
|
1272
|
+
const l = {};
|
|
1273
|
+
return n && (l.renderAs = W.BUTTON, l.showLabel = !0, l.showIcon = !0), t && (t.renderAs != null && (l.renderAs = W.fromAny(t.renderAs)), ee(t.label) && (l.label = t.label), ee(t.icon) && (l.icon = t.icon), Fe(t.showLabel) && (l.showLabel = t.showLabel), Fe(t.showIcon) && (l.showIcon = t.showIcon)), Object.keys(l).length ? l : null;
|
|
566
1274
|
}
|
|
567
1275
|
}
|
|
568
|
-
class
|
|
569
|
-
static create(
|
|
570
|
-
return super.create(
|
|
1276
|
+
class ye extends ht {
|
|
1277
|
+
static create(t) {
|
|
1278
|
+
return super.create(t);
|
|
571
1279
|
}
|
|
572
|
-
getBreakpointValue(
|
|
573
|
-
return
|
|
574
|
-
const
|
|
1280
|
+
getBreakpointValue(t) {
|
|
1281
|
+
return _(() => {
|
|
1282
|
+
const l = new Oo(this.value).getOptionsForBreakpoint(t.value);
|
|
575
1283
|
return {
|
|
576
|
-
name:
|
|
577
|
-
label:
|
|
578
|
-
icon:
|
|
579
|
-
renderAs:
|
|
580
|
-
showLabel: ee(
|
|
581
|
-
showIcon: ee(
|
|
1284
|
+
name: l.name,
|
|
1285
|
+
label: l.showLabel ? l.label : void 0,
|
|
1286
|
+
icon: l.showIcon ? l.icon : void 0,
|
|
1287
|
+
renderAs: l.renderAs,
|
|
1288
|
+
showLabel: ee(l.label) && !be(l.label) ? l.showLabel : !1,
|
|
1289
|
+
showIcon: ee(l.icon) && !be(l.icon) ? l.showIcon : !1
|
|
582
1290
|
};
|
|
583
1291
|
});
|
|
584
1292
|
}
|
|
@@ -589,110 +1297,110 @@ class he extends pl {
|
|
|
589
1297
|
return this.value.showLabel ? this.value.label : void 0;
|
|
590
1298
|
}
|
|
591
1299
|
get showLabel() {
|
|
592
|
-
return ee(this.value.label) && !
|
|
1300
|
+
return ee(this.value.label) && !be(this.value.label) ? this.value.showLabel : !1;
|
|
593
1301
|
}
|
|
594
1302
|
get icon() {
|
|
595
1303
|
return this.value.showIcon ? this.value.icon : void 0;
|
|
596
1304
|
}
|
|
597
1305
|
get showIcon() {
|
|
598
|
-
return ee(this.value.icon) && !
|
|
1306
|
+
return ee(this.value.icon) && !be(this.value.icon) ? this.value.showIcon : !1;
|
|
599
1307
|
}
|
|
600
1308
|
get renderAs() {
|
|
601
1309
|
return this.value.renderAs;
|
|
602
1310
|
}
|
|
603
|
-
static closeAction(
|
|
604
|
-
var
|
|
605
|
-
const n =
|
|
1311
|
+
static closeAction(t) {
|
|
1312
|
+
var l;
|
|
1313
|
+
const n = O($({}, t != null ? t : {}), {
|
|
606
1314
|
// any properties in data should overwrite properties in the constant
|
|
607
1315
|
value: {
|
|
608
1316
|
name: "close",
|
|
609
|
-
label:
|
|
1317
|
+
label: he.Close,
|
|
610
1318
|
icon: "close-outline",
|
|
611
|
-
renderAs:
|
|
1319
|
+
renderAs: W.BUTTON,
|
|
612
1320
|
showLabel: !0,
|
|
613
1321
|
showIcon: !0
|
|
614
1322
|
}
|
|
615
1323
|
});
|
|
616
|
-
return n.value =
|
|
1324
|
+
return n.value = $($({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ye.create(n);
|
|
617
1325
|
}
|
|
618
|
-
static yesAction(
|
|
619
|
-
var
|
|
620
|
-
const n =
|
|
1326
|
+
static yesAction(t) {
|
|
1327
|
+
var l;
|
|
1328
|
+
const n = O($({}, t != null ? t : {}), {
|
|
621
1329
|
// any properties in data should overwrite properties in the constant
|
|
622
1330
|
value: {
|
|
623
1331
|
name: "yes",
|
|
624
|
-
label:
|
|
1332
|
+
label: he.Yes,
|
|
625
1333
|
icon: "thumbs-up-outline",
|
|
626
|
-
renderAs:
|
|
1334
|
+
renderAs: W.BUTTON,
|
|
627
1335
|
showLabel: !0,
|
|
628
1336
|
showIcon: !0
|
|
629
1337
|
}
|
|
630
1338
|
});
|
|
631
|
-
return n.value =
|
|
1339
|
+
return n.value = $($({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ye.create(n);
|
|
632
1340
|
}
|
|
633
|
-
static noAction(
|
|
634
|
-
var
|
|
635
|
-
const n =
|
|
1341
|
+
static noAction(t) {
|
|
1342
|
+
var l;
|
|
1343
|
+
const n = O($({}, t != null ? t : {}), {
|
|
636
1344
|
// any properties in data should overwrite properties in the constant
|
|
637
1345
|
value: {
|
|
638
1346
|
name: "no",
|
|
639
|
-
label:
|
|
1347
|
+
label: he.No,
|
|
640
1348
|
icon: "thumbs-down-outline",
|
|
641
|
-
renderAs:
|
|
1349
|
+
renderAs: W.BUTTON,
|
|
642
1350
|
showLabel: !0,
|
|
643
1351
|
showIcon: !0
|
|
644
1352
|
}
|
|
645
1353
|
});
|
|
646
|
-
return n.value =
|
|
1354
|
+
return n.value = $($({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ye.create(n);
|
|
647
1355
|
}
|
|
648
1356
|
}
|
|
649
|
-
const
|
|
1357
|
+
const Ro = {
|
|
650
1358
|
key: 1,
|
|
651
1359
|
style: { width: ".5rem" }
|
|
652
|
-
},
|
|
1360
|
+
}, Wo = { key: 2 }, zo = /* @__PURE__ */ M({
|
|
653
1361
|
__name: "df-actions",
|
|
654
1362
|
props: {
|
|
655
1363
|
actions: {},
|
|
656
1364
|
buttonSize: { default: "default" },
|
|
657
1365
|
showAsGroup: { default: "no" }
|
|
658
1366
|
},
|
|
659
|
-
setup(
|
|
660
|
-
const
|
|
661
|
-
action:
|
|
662
|
-
},
|
|
663
|
-
return (
|
|
664
|
-
const
|
|
665
|
-
return
|
|
1367
|
+
setup(e) {
|
|
1368
|
+
const t = e, n = Uo(), l = _(() => o(t.actions)), a = _(() => l.value.map((r) => $({
|
|
1369
|
+
action: r
|
|
1370
|
+
}, o(r.getBreakpointValue(n)))));
|
|
1371
|
+
return (r, p) => {
|
|
1372
|
+
const i = S("v-btn");
|
|
1373
|
+
return l.value.length > 0 ? (h(), F("div", {
|
|
666
1374
|
key: 0,
|
|
667
|
-
class:
|
|
668
|
-
"button-group":
|
|
669
|
-
"with-border":
|
|
1375
|
+
class: Ve(["text-end", {
|
|
1376
|
+
"button-group": r.showAsGroup === "grouped" || r.showAsGroup === "grouped-no-borders",
|
|
1377
|
+
"with-border": r.showAsGroup === "grouped"
|
|
670
1378
|
}])
|
|
671
1379
|
}, [
|
|
672
|
-
(
|
|
673
|
-
key:
|
|
674
|
-
variant:
|
|
1380
|
+
(h(!0), F(Ie, null, Xe(a.value, (c, u) => (h(), P(i, {
|
|
1381
|
+
key: u,
|
|
1382
|
+
variant: c.renderAs === o(W).BUTTON ? "tonal" : "text",
|
|
675
1383
|
elevation: 0,
|
|
676
|
-
size:
|
|
677
|
-
onClick:
|
|
1384
|
+
size: r.buttonSize,
|
|
1385
|
+
onClick: ct((j) => c.action.execute(j), ["stop"])
|
|
678
1386
|
}, {
|
|
679
|
-
default:
|
|
680
|
-
|
|
1387
|
+
default: v(() => [
|
|
1388
|
+
c.icon ? (h(), P(o(Be), {
|
|
681
1389
|
key: 0,
|
|
682
1390
|
class: "action-icon",
|
|
683
|
-
name:
|
|
1391
|
+
name: c.icon
|
|
684
1392
|
}, null, 8, ["name"])) : L("", !0),
|
|
685
|
-
|
|
686
|
-
|
|
1393
|
+
c.icon && c.label ? (h(), F("span", Ro)) : L("", !0),
|
|
1394
|
+
c.label ? (h(), F("span", Wo, se(c.label), 1)) : L("", !0)
|
|
687
1395
|
]),
|
|
688
1396
|
_: 2
|
|
689
1397
|
}, 1032, ["variant", "size", "onClick"]))), 128))
|
|
690
1398
|
], 2)) : L("", !0);
|
|
691
1399
|
};
|
|
692
1400
|
}
|
|
693
|
-
}),
|
|
1401
|
+
}), Ho = /* @__PURE__ */ ae(zo, [["__scopeId", "data-v-7f811834"]]), Ko = /* @__PURE__ */ M({
|
|
694
1402
|
__name: "df-checkbox",
|
|
695
|
-
props: /* @__PURE__ */
|
|
1403
|
+
props: /* @__PURE__ */ Y({
|
|
696
1404
|
allowNull: { type: Boolean },
|
|
697
1405
|
control: {},
|
|
698
1406
|
modelValue: {},
|
|
@@ -704,48 +1412,49 @@ const ln = {
|
|
|
704
1412
|
enabled: { type: Boolean },
|
|
705
1413
|
visibility: {},
|
|
706
1414
|
cssClass: {},
|
|
707
|
-
clearable: { type: Boolean }
|
|
708
|
-
|
|
1415
|
+
clearable: { type: Boolean },
|
|
1416
|
+
passthroughAttrs: {}
|
|
1417
|
+
}, O($({}, Q), { allowNull: !1 })),
|
|
709
1418
|
emits: ["update:modelValue", "click:clear"],
|
|
710
|
-
setup(
|
|
711
|
-
const n =
|
|
1419
|
+
setup(e, { emit: t }) {
|
|
1420
|
+
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
1421
|
get() {
|
|
713
|
-
return
|
|
1422
|
+
return i.value;
|
|
714
1423
|
},
|
|
715
1424
|
set() {
|
|
716
1425
|
}
|
|
717
1426
|
});
|
|
718
|
-
function
|
|
719
|
-
const
|
|
720
|
-
|
|
1427
|
+
function s() {
|
|
1428
|
+
const m = ft(i.value);
|
|
1429
|
+
m === !0 ? i.value = n.allowNull ? null : !1 : i.value = m === !1;
|
|
721
1430
|
}
|
|
722
|
-
return (
|
|
723
|
-
const
|
|
724
|
-
return
|
|
725
|
-
modelValue:
|
|
726
|
-
"onUpdate:modelValue":
|
|
727
|
-
},
|
|
1431
|
+
return (m, b) => {
|
|
1432
|
+
const g = S("v-checkbox");
|
|
1433
|
+
return h(), P(g, R({
|
|
1434
|
+
modelValue: j.value,
|
|
1435
|
+
"onUpdate:modelValue": b[0] || (b[0] = (w) => j.value = w)
|
|
1436
|
+
}, o(c), {
|
|
728
1437
|
density: "compact",
|
|
729
|
-
indeterminate:
|
|
1438
|
+
indeterminate: u.value,
|
|
730
1439
|
"false-value": !1,
|
|
731
1440
|
"true-value": !0,
|
|
732
|
-
onChange:
|
|
733
|
-
onBlur:
|
|
734
|
-
}),
|
|
735
|
-
message:
|
|
736
|
-
|
|
737
|
-
message:
|
|
738
|
-
errors:
|
|
1441
|
+
onChange: s,
|
|
1442
|
+
onBlur: b[1] || (b[1] = (w) => p.value = !0)
|
|
1443
|
+
}), q({
|
|
1444
|
+
message: v(({ message: w }) => [
|
|
1445
|
+
B(o(le), {
|
|
1446
|
+
message: w,
|
|
1447
|
+
errors: o(a)
|
|
739
1448
|
}, null, 8, ["message", "errors"])
|
|
740
1449
|
]),
|
|
741
1450
|
_: 2
|
|
742
1451
|
}, [
|
|
743
|
-
|
|
1452
|
+
o(r).icon ? {
|
|
744
1453
|
name: "label",
|
|
745
|
-
fn:
|
|
746
|
-
|
|
747
|
-
data:
|
|
748
|
-
label:
|
|
1454
|
+
fn: v((w) => [
|
|
1455
|
+
B(o(oe), {
|
|
1456
|
+
data: w,
|
|
1457
|
+
label: o(r)
|
|
749
1458
|
}, null, 8, ["data", "label"])
|
|
750
1459
|
]),
|
|
751
1460
|
key: "0"
|
|
@@ -753,9 +1462,9 @@ const ln = {
|
|
|
753
1462
|
]), 1040, ["modelValue", "indeterminate"]);
|
|
754
1463
|
};
|
|
755
1464
|
}
|
|
756
|
-
}),
|
|
1465
|
+
}), Xo = /* @__PURE__ */ M({
|
|
757
1466
|
__name: "df-color",
|
|
758
|
-
props: /* @__PURE__ */
|
|
1467
|
+
props: /* @__PURE__ */ Y({
|
|
759
1468
|
allowNull: { type: Boolean },
|
|
760
1469
|
control: {},
|
|
761
1470
|
modelValue: {},
|
|
@@ -767,46 +1476,47 @@ const ln = {
|
|
|
767
1476
|
enabled: { type: Boolean },
|
|
768
1477
|
visibility: {},
|
|
769
1478
|
cssClass: {},
|
|
770
|
-
clearable: { type: Boolean }
|
|
771
|
-
|
|
1479
|
+
clearable: { type: Boolean },
|
|
1480
|
+
passthroughAttrs: {}
|
|
1481
|
+
}, O($({}, Q), { allowNull: !1 })),
|
|
772
1482
|
emits: ["update:modelValue", "click:clear"],
|
|
773
|
-
setup(
|
|
774
|
-
const n =
|
|
775
|
-
(
|
|
1483
|
+
setup(e, { emit: t }) {
|
|
1484
|
+
const n = e, l = t, { errors: a, label: r, touched: p, value: i, vuetifyBindings: c } = K(n, l), u = A(!1), j = _(() => [
|
|
1485
|
+
(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
1486
|
]);
|
|
777
|
-
return (
|
|
778
|
-
const
|
|
779
|
-
return
|
|
780
|
-
modelValue:
|
|
781
|
-
"onUpdate:modelValue":
|
|
782
|
-
},
|
|
783
|
-
clearable:
|
|
1487
|
+
return (s, m) => {
|
|
1488
|
+
const b = S("v-color-picker"), g = S("v-menu"), w = S("v-text-field");
|
|
1489
|
+
return h(), P(w, R({
|
|
1490
|
+
modelValue: o(i),
|
|
1491
|
+
"onUpdate:modelValue": m[2] || (m[2] = (k) => te(i) ? i.value = k : null)
|
|
1492
|
+
}, o(c), {
|
|
1493
|
+
clearable: s.allowNull,
|
|
784
1494
|
type: "text",
|
|
785
|
-
rules:
|
|
786
|
-
onBlur:
|
|
787
|
-
}),
|
|
788
|
-
message:
|
|
789
|
-
|
|
1495
|
+
rules: j.value,
|
|
1496
|
+
onBlur: m[3] || (m[3] = (k) => p.value = !0)
|
|
1497
|
+
}), q({
|
|
1498
|
+
message: v(({ message: k }) => [
|
|
1499
|
+
B(o(le), {
|
|
790
1500
|
message: k,
|
|
791
|
-
errors:
|
|
1501
|
+
errors: o(a)
|
|
792
1502
|
}, null, 8, ["message", "errors"])
|
|
793
1503
|
]),
|
|
794
|
-
"prepend-inner":
|
|
795
|
-
|
|
796
|
-
style:
|
|
1504
|
+
"prepend-inner": v(() => [
|
|
1505
|
+
ne("div", {
|
|
1506
|
+
style: Ge([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: o(i) }])
|
|
797
1507
|
}, null, 4)
|
|
798
1508
|
]),
|
|
799
|
-
default:
|
|
800
|
-
|
|
801
|
-
modelValue:
|
|
802
|
-
"onUpdate:modelValue":
|
|
1509
|
+
default: v(() => [
|
|
1510
|
+
B(g, {
|
|
1511
|
+
modelValue: u.value,
|
|
1512
|
+
"onUpdate:modelValue": m[1] || (m[1] = (k) => u.value = k),
|
|
803
1513
|
"close-on-content-click": !1,
|
|
804
1514
|
activator: "parent"
|
|
805
1515
|
}, {
|
|
806
|
-
default:
|
|
807
|
-
|
|
808
|
-
modelValue:
|
|
809
|
-
"onUpdate:modelValue":
|
|
1516
|
+
default: v(() => [
|
|
1517
|
+
B(b, {
|
|
1518
|
+
modelValue: o(i),
|
|
1519
|
+
"onUpdate:modelValue": m[0] || (m[0] = (k) => te(i) ? i.value = k : null),
|
|
810
1520
|
mode: "hexa"
|
|
811
1521
|
}, null, 8, ["modelValue"])
|
|
812
1522
|
]),
|
|
@@ -815,12 +1525,12 @@ const ln = {
|
|
|
815
1525
|
]),
|
|
816
1526
|
_: 2
|
|
817
1527
|
}, [
|
|
818
|
-
|
|
1528
|
+
o(r).icon ? {
|
|
819
1529
|
name: "label",
|
|
820
|
-
fn:
|
|
821
|
-
|
|
1530
|
+
fn: v((k) => [
|
|
1531
|
+
B(o(oe), {
|
|
822
1532
|
data: k,
|
|
823
|
-
label:
|
|
1533
|
+
label: o(r)
|
|
824
1534
|
}, null, 8, ["data", "label"])
|
|
825
1535
|
]),
|
|
826
1536
|
key: "0"
|
|
@@ -828,12 +1538,13 @@ const ln = {
|
|
|
828
1538
|
]), 1040, ["modelValue", "clearable", "rules"]);
|
|
829
1539
|
};
|
|
830
1540
|
}
|
|
831
|
-
}),
|
|
1541
|
+
}), Go = { class: "d-flex w-100 pt-5 pl-2 pb-1" }, qo = /* @__PURE__ */ M({
|
|
832
1542
|
__name: "df-datetime",
|
|
833
|
-
props: /* @__PURE__ */
|
|
1543
|
+
props: /* @__PURE__ */ Y({
|
|
834
1544
|
inputType: {},
|
|
835
1545
|
displayFormatDate: {},
|
|
836
1546
|
displayFormatTime: {},
|
|
1547
|
+
locale: {},
|
|
837
1548
|
control: {},
|
|
838
1549
|
modelValue: {},
|
|
839
1550
|
label: {},
|
|
@@ -844,144 +1555,152 @@ const ln = {
|
|
|
844
1555
|
enabled: { type: Boolean },
|
|
845
1556
|
visibility: {},
|
|
846
1557
|
cssClass: {},
|
|
847
|
-
clearable: { type: Boolean }
|
|
848
|
-
|
|
1558
|
+
clearable: { type: Boolean },
|
|
1559
|
+
passthroughAttrs: {}
|
|
1560
|
+
}, O($({}, Q), {
|
|
849
1561
|
inputType: "datetime",
|
|
850
1562
|
displayFormatDate: "P",
|
|
851
1563
|
displayFormatTime: "p"
|
|
852
1564
|
})),
|
|
853
1565
|
emits: ["update:modelValue", "click:clear"],
|
|
854
|
-
setup(
|
|
855
|
-
const n =
|
|
1566
|
+
setup(e, { emit: t }) {
|
|
1567
|
+
const n = e, l = t, a = _(() => {
|
|
1568
|
+
var f;
|
|
1569
|
+
return (f = n.locale) != null ? f : o(Io.dateTimeLocale);
|
|
1570
|
+
}), r = _(() => {
|
|
1571
|
+
var f, d;
|
|
1572
|
+
return (d = (f = a.value.options) == null ? void 0 : f.weekStartsOn) != null ? d : 1;
|
|
1573
|
+
}), { touched: p, value: i, vuetifyBindings: c } = K(n, l), { inputType: u, displayFormatDate: j, displayFormatTime: s } = _e(n), m = A(""), b = _({
|
|
856
1574
|
get() {
|
|
857
|
-
return
|
|
1575
|
+
return o(m) === "date";
|
|
858
1576
|
},
|
|
859
|
-
set(
|
|
860
|
-
|
|
1577
|
+
set(f) {
|
|
1578
|
+
m.value = f ? "date" : "";
|
|
861
1579
|
}
|
|
862
|
-
}),
|
|
1580
|
+
}), g = _({
|
|
863
1581
|
get() {
|
|
864
|
-
return
|
|
1582
|
+
return o(m) === "time";
|
|
865
1583
|
},
|
|
866
|
-
set(
|
|
867
|
-
|
|
1584
|
+
set(f) {
|
|
1585
|
+
m.value = f ? "time" : "";
|
|
868
1586
|
}
|
|
869
|
-
}),
|
|
870
|
-
function
|
|
871
|
-
if (
|
|
872
|
-
|
|
1587
|
+
}), w = (f) => `${pe(f, "yyyy-MM-dd")}T${pe(f, "HH:mm")}:00`, k = A(null);
|
|
1588
|
+
function y(f, d) {
|
|
1589
|
+
if (f == null)
|
|
1590
|
+
k.value = null;
|
|
873
1591
|
else if (d === -1)
|
|
874
|
-
if (
|
|
875
|
-
|
|
1592
|
+
if (o(u) === "time")
|
|
1593
|
+
k.value = w(/* @__PURE__ */ new Date()), y(`T${f}`, 1);
|
|
876
1594
|
else {
|
|
877
|
-
const x =
|
|
878
|
-
|
|
1595
|
+
const x = w(new Date(f));
|
|
1596
|
+
y(x, 0), y(x, 1);
|
|
879
1597
|
}
|
|
880
1598
|
else {
|
|
881
|
-
|
|
882
|
-
const x =
|
|
883
|
-
x[d] =
|
|
1599
|
+
k.value == null && (k.value = w(/* @__PURE__ */ new Date()));
|
|
1600
|
+
const x = k.value.split(/[TZ]/g), U = f.split(/[TZ]/g);
|
|
1601
|
+
x[d] = U[d], k.value = w(/* @__PURE__ */ new Date(`${x[0]}T${x[1].split(".")[0]}`)), o(u) === "date" ? i.value = x[0] : o(u) === "time" ? i.value = x[1] : i.value = o(k) + pe(/* @__PURE__ */ new Date(), "XXX");
|
|
884
1602
|
}
|
|
885
1603
|
}
|
|
886
|
-
|
|
887
|
-
const
|
|
1604
|
+
ue(i, (f) => y(f, -1), { immediate: !0 });
|
|
1605
|
+
const N = _({
|
|
888
1606
|
get() {
|
|
889
|
-
const
|
|
890
|
-
if (
|
|
891
|
-
const d = new Date(
|
|
1607
|
+
const f = o(k);
|
|
1608
|
+
if (f == null) return null;
|
|
1609
|
+
const d = new Date(f);
|
|
892
1610
|
return Number.isNaN(d.getTime()) ? null : d;
|
|
893
1611
|
},
|
|
894
|
-
set(
|
|
895
|
-
|
|
1612
|
+
set(f) {
|
|
1613
|
+
y(w(f), 0);
|
|
896
1614
|
}
|
|
897
|
-
}),
|
|
1615
|
+
}), E = _({
|
|
898
1616
|
get() {
|
|
899
|
-
const
|
|
900
|
-
return
|
|
1617
|
+
const f = o(k);
|
|
1618
|
+
return f == null ? "" : f.split(/[TZ]/g)[1].split(".")[0];
|
|
901
1619
|
},
|
|
902
|
-
set(
|
|
903
|
-
|
|
1620
|
+
set(f) {
|
|
1621
|
+
y(`T${f}`, 1);
|
|
904
1622
|
}
|
|
905
|
-
}),
|
|
1623
|
+
}), T = _({
|
|
906
1624
|
get() {
|
|
907
|
-
const
|
|
908
|
-
return
|
|
1625
|
+
const f = o(N);
|
|
1626
|
+
return f == null ? "" : pe(f, o(j), { locale: a.value });
|
|
909
1627
|
},
|
|
910
|
-
set(
|
|
1628
|
+
set(f) {
|
|
911
1629
|
try {
|
|
912
|
-
const d =
|
|
913
|
-
|
|
1630
|
+
const d = yt(f, o(j), /* @__PURE__ */ new Date(), { locale: a.value });
|
|
1631
|
+
y(w(d), 0);
|
|
914
1632
|
} catch (d) {
|
|
915
1633
|
console.error(d);
|
|
916
1634
|
}
|
|
917
1635
|
}
|
|
918
|
-
}),
|
|
1636
|
+
}), z = _({
|
|
919
1637
|
get() {
|
|
920
|
-
const
|
|
921
|
-
return
|
|
1638
|
+
const f = o(N);
|
|
1639
|
+
return f == null ? "" : pe(f, o(s), { locale: a.value });
|
|
922
1640
|
},
|
|
923
|
-
set(
|
|
924
|
-
const d =
|
|
1641
|
+
set(f) {
|
|
1642
|
+
const d = f.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
|
|
925
1643
|
if (d == null) return;
|
|
926
|
-
let x =
|
|
927
|
-
const
|
|
928
|
-
|
|
1644
|
+
let x = Le(d[1]);
|
|
1645
|
+
const U = Le(d[2]);
|
|
1646
|
+
Me(x) || Me(U) || (d[3] && d[3].toLowerCase() === "pm" && x < 13 && (x += 12), y(`T${x.toString().padStart(2, "0")}:${U.toString().padStart(2, "0")}:00`, 1));
|
|
929
1647
|
}
|
|
930
1648
|
});
|
|
931
|
-
return (
|
|
932
|
-
const x =
|
|
933
|
-
return
|
|
934
|
-
clearable:
|
|
935
|
-
"onClick:clear": d[14] || (d[14] = (
|
|
936
|
-
onBlur: d[15] || (d[15] = (
|
|
1649
|
+
return (f, d) => {
|
|
1650
|
+
const x = S("v-date-picker"), U = S("v-confirm-edit"), de = S("v-menu"), me = S("v-text-field"), C = S("v-time-picker");
|
|
1651
|
+
return h(), P(o(Pe), R(n, {
|
|
1652
|
+
clearable: f.clearable,
|
|
1653
|
+
"onClick:clear": d[14] || (d[14] = (I) => i.value = null),
|
|
1654
|
+
onBlur: d[15] || (d[15] = (I) => p.value = !0)
|
|
937
1655
|
}), {
|
|
938
|
-
default:
|
|
939
|
-
|
|
940
|
-
["date", "datetime"].includes(
|
|
1656
|
+
default: v((I) => [
|
|
1657
|
+
ne("div", Go, [
|
|
1658
|
+
["date", "datetime"].includes(o(u)) ? (h(), P(me, R({
|
|
941
1659
|
key: 0,
|
|
942
|
-
modelValue:
|
|
943
|
-
"onUpdate:modelValue": d[4] || (d[4] = (
|
|
1660
|
+
modelValue: T.value,
|
|
1661
|
+
"onUpdate:modelValue": d[4] || (d[4] = (V) => T.value = V),
|
|
944
1662
|
style: { "flex-grow": "4" },
|
|
945
1663
|
density: "compact",
|
|
946
1664
|
variant: "plain",
|
|
947
1665
|
clearable: !1,
|
|
948
1666
|
"hide-details": !0,
|
|
949
|
-
readonly:
|
|
950
|
-
disabled:
|
|
951
|
-
name: `${
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
1667
|
+
readonly: o(c).readonly,
|
|
1668
|
+
disabled: o(c).disabled,
|
|
1669
|
+
name: `${o(c).name}-date`
|
|
1670
|
+
}, f.passthroughAttrs, {
|
|
1671
|
+
onClick: d[5] || (d[5] = (V) => m.value = "date"),
|
|
1672
|
+
onKeydown: d[6] || (d[6] = Ee((V) => m.value = "date", ["space"])),
|
|
1673
|
+
onFocus: (V) => I.focus(),
|
|
1674
|
+
onBlur: (V) => I.blur()
|
|
1675
|
+
}), {
|
|
1676
|
+
default: v(() => [
|
|
1677
|
+
B(de, {
|
|
1678
|
+
modelValue: b.value,
|
|
1679
|
+
"onUpdate:modelValue": d[3] || (d[3] = (V) => b.value = V),
|
|
961
1680
|
"close-on-content-click": !1,
|
|
962
1681
|
activator: "parent"
|
|
963
1682
|
}, {
|
|
964
|
-
default:
|
|
965
|
-
|
|
966
|
-
modelValue:
|
|
967
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
968
|
-
onCancel: d[1] || (d[1] = (
|
|
969
|
-
onSave: d[2] || (d[2] = (
|
|
1683
|
+
default: v(() => [
|
|
1684
|
+
B(U, {
|
|
1685
|
+
modelValue: N.value,
|
|
1686
|
+
"onUpdate:modelValue": d[0] || (d[0] = (V) => N.value = V),
|
|
1687
|
+
onCancel: d[1] || (d[1] = (V) => m.value = ""),
|
|
1688
|
+
onSave: d[2] || (d[2] = (V) => m.value = "")
|
|
970
1689
|
}, {
|
|
971
|
-
default:
|
|
972
|
-
|
|
973
|
-
modelValue:
|
|
974
|
-
"onUpdate:modelValue": (
|
|
1690
|
+
default: v(({ model: V, actions: Z }) => [
|
|
1691
|
+
B(x, {
|
|
1692
|
+
modelValue: V.value,
|
|
1693
|
+
"onUpdate:modelValue": (D) => V.value = D,
|
|
975
1694
|
"hide-header": !0,
|
|
976
|
-
"first-day-of-week":
|
|
1695
|
+
"first-day-of-week": r.value,
|
|
977
1696
|
"show-adjacent-months": !0,
|
|
978
1697
|
"show-week": !0
|
|
979
1698
|
}, {
|
|
980
|
-
actions:
|
|
981
|
-
(
|
|
1699
|
+
actions: v(() => [
|
|
1700
|
+
(h(), P(ce(Z)))
|
|
982
1701
|
]),
|
|
983
1702
|
_: 2
|
|
984
|
-
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
1703
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
|
|
985
1704
|
]),
|
|
986
1705
|
_: 1
|
|
987
1706
|
}, 8, ["modelValue"])
|
|
@@ -990,47 +1709,48 @@ const ln = {
|
|
|
990
1709
|
}, 8, ["modelValue"])
|
|
991
1710
|
]),
|
|
992
1711
|
_: 2
|
|
993
|
-
},
|
|
994
|
-
["time", "datetime"].includes(
|
|
1712
|
+
}, 1040, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : L("", !0),
|
|
1713
|
+
["time", "datetime"].includes(o(u)) ? (h(), P(me, R({
|
|
995
1714
|
key: 1,
|
|
996
|
-
modelValue:
|
|
997
|
-
"onUpdate:modelValue": d[11] || (d[11] = (
|
|
1715
|
+
modelValue: z.value,
|
|
1716
|
+
"onUpdate:modelValue": d[11] || (d[11] = (V) => z.value = V),
|
|
998
1717
|
style: { "flex-grow": "3" },
|
|
999
1718
|
density: "compact",
|
|
1000
1719
|
variant: "plain",
|
|
1001
1720
|
clearable: !1,
|
|
1002
1721
|
"hide-details": !0,
|
|
1003
|
-
readonly:
|
|
1004
|
-
disabled:
|
|
1005
|
-
name: `${
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1722
|
+
readonly: o(c).readonly,
|
|
1723
|
+
disabled: o(c).disabled,
|
|
1724
|
+
name: `${o(c).name}-time`
|
|
1725
|
+
}, f.passthroughAttrs, {
|
|
1726
|
+
onClick: d[12] || (d[12] = (V) => m.value = "time"),
|
|
1727
|
+
onKeydown: d[13] || (d[13] = Ee((V) => m.value = "time", ["space"])),
|
|
1728
|
+
onFocus: (V) => I.focus(),
|
|
1729
|
+
onBlur: (V) => I.blur()
|
|
1730
|
+
}), {
|
|
1731
|
+
default: v(() => [
|
|
1732
|
+
B(de, {
|
|
1733
|
+
modelValue: g.value,
|
|
1734
|
+
"onUpdate:modelValue": d[10] || (d[10] = (V) => g.value = V),
|
|
1015
1735
|
"close-on-content-click": !1,
|
|
1016
1736
|
activator: "parent"
|
|
1017
1737
|
}, {
|
|
1018
|
-
default:
|
|
1019
|
-
|
|
1020
|
-
modelValue:
|
|
1021
|
-
"onUpdate:modelValue": d[7] || (d[7] = (
|
|
1022
|
-
onCancel: d[8] || (d[8] = (
|
|
1023
|
-
onSave: d[9] || (d[9] = (
|
|
1738
|
+
default: v(() => [
|
|
1739
|
+
B(U, {
|
|
1740
|
+
modelValue: E.value,
|
|
1741
|
+
"onUpdate:modelValue": d[7] || (d[7] = (V) => E.value = V),
|
|
1742
|
+
onCancel: d[8] || (d[8] = (V) => m.value = ""),
|
|
1743
|
+
onSave: d[9] || (d[9] = (V) => m.value = "")
|
|
1024
1744
|
}, {
|
|
1025
|
-
default:
|
|
1026
|
-
C
|
|
1027
|
-
modelValue:
|
|
1028
|
-
"onUpdate:modelValue": (
|
|
1745
|
+
default: v(({ model: V, actions: Z }) => [
|
|
1746
|
+
B(C, {
|
|
1747
|
+
modelValue: V.value,
|
|
1748
|
+
"onUpdate:modelValue": (D) => V.value = D,
|
|
1029
1749
|
"hide-header": !0,
|
|
1030
1750
|
format: "24hr"
|
|
1031
1751
|
}, {
|
|
1032
|
-
actions:
|
|
1033
|
-
(
|
|
1752
|
+
actions: v(() => [
|
|
1753
|
+
(h(), P(ce(Z)))
|
|
1034
1754
|
]),
|
|
1035
1755
|
_: 2
|
|
1036
1756
|
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1042,19 +1762,19 @@ const ln = {
|
|
|
1042
1762
|
}, 8, ["modelValue"])
|
|
1043
1763
|
]),
|
|
1044
1764
|
_: 2
|
|
1045
|
-
},
|
|
1765
|
+
}, 1040, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : L("", !0)
|
|
1046
1766
|
])
|
|
1047
1767
|
]),
|
|
1048
1768
|
_: 1
|
|
1049
1769
|
}, 16, ["clearable"]);
|
|
1050
1770
|
};
|
|
1051
1771
|
}
|
|
1052
|
-
}),
|
|
1772
|
+
}), Yo = {
|
|
1053
1773
|
class: "d-flex w-100 pt-5 pl-2 pb-1",
|
|
1054
1774
|
style: { position: "relative" }
|
|
1055
|
-
},
|
|
1775
|
+
}, Qo = /* @__PURE__ */ M({
|
|
1056
1776
|
__name: "df-file",
|
|
1057
|
-
props: /* @__PURE__ */
|
|
1777
|
+
props: /* @__PURE__ */ Y({
|
|
1058
1778
|
comms: {},
|
|
1059
1779
|
control: {},
|
|
1060
1780
|
modelValue: {},
|
|
@@ -1066,94 +1786,94 @@ const ln = {
|
|
|
1066
1786
|
enabled: { type: Boolean },
|
|
1067
1787
|
visibility: {},
|
|
1068
1788
|
cssClass: {},
|
|
1069
|
-
clearable: { type: Boolean }
|
|
1789
|
+
clearable: { type: Boolean },
|
|
1790
|
+
passthroughAttrs: {}
|
|
1070
1791
|
}, Q),
|
|
1071
1792
|
emits: ["update:modelValue", "click:clear"],
|
|
1072
|
-
setup(
|
|
1073
|
-
const n =
|
|
1074
|
-
function
|
|
1075
|
-
|
|
1793
|
+
setup(e, { emit: t }) {
|
|
1794
|
+
const n = e, l = t, { touched: a, value: r, vuetifyBindings: p } = K(n, l), i = A(null), c = A(null), u = A(0), j = A(Math.round(Math.random() * 1e3)), s = A(), m = _(() => c.value && u.value < 100), b = _(() => !s.value && r.value ? n.modelValue : "");
|
|
1795
|
+
function g() {
|
|
1796
|
+
i.value && window.clearInterval(i.value);
|
|
1076
1797
|
}
|
|
1077
|
-
function
|
|
1078
|
-
|
|
1079
|
-
|
|
1798
|
+
function w() {
|
|
1799
|
+
g(), i.value = window.setInterval(() => {
|
|
1800
|
+
r.value && n.comms.touch(r.value);
|
|
1080
1801
|
}, 60 * 1e3);
|
|
1081
1802
|
}
|
|
1082
|
-
|
|
1083
|
-
E ?
|
|
1803
|
+
He(() => g()), ue(r, (E) => {
|
|
1804
|
+
E ? w() : g();
|
|
1084
1805
|
});
|
|
1085
1806
|
function k() {
|
|
1086
|
-
return
|
|
1087
|
-
|
|
1807
|
+
return ge(this, null, function* () {
|
|
1808
|
+
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
1809
|
});
|
|
1089
1810
|
}
|
|
1090
|
-
function
|
|
1091
|
-
return
|
|
1092
|
-
|
|
1811
|
+
function y(E) {
|
|
1812
|
+
return ge(this, null, function* () {
|
|
1813
|
+
u.value = -1, c.value = E;
|
|
1093
1814
|
try {
|
|
1094
|
-
|
|
1815
|
+
r.value = yield n.comms.upload(
|
|
1095
1816
|
E,
|
|
1096
|
-
(
|
|
1097
|
-
|
|
1817
|
+
(T, z) => {
|
|
1818
|
+
u.value = Math.round(T * 100 / z);
|
|
1098
1819
|
}
|
|
1099
|
-
),
|
|
1100
|
-
} catch (
|
|
1101
|
-
throw
|
|
1820
|
+
), u.value = 100, w();
|
|
1821
|
+
} catch (T) {
|
|
1822
|
+
throw u.value = 0, c.value = null, j.value = Math.round(Math.random() * 1e3), s.value = null, T;
|
|
1102
1823
|
}
|
|
1103
1824
|
});
|
|
1104
1825
|
}
|
|
1105
|
-
function
|
|
1106
|
-
E && (Array.isArray(E) ? console.error("Uploading multiple files not supported right now") :
|
|
1826
|
+
function N(E) {
|
|
1827
|
+
E && (Array.isArray(E) ? console.error("Uploading multiple files not supported right now") : y(E));
|
|
1107
1828
|
}
|
|
1108
|
-
return (E,
|
|
1109
|
-
const
|
|
1110
|
-
return
|
|
1829
|
+
return (E, T) => {
|
|
1830
|
+
const z = S("v-icon"), f = S("v-progress-linear"), d = S("v-file-input");
|
|
1831
|
+
return h(), P(o(Pe), R(O($({}, n), { loading: m.value }), {
|
|
1111
1832
|
clearable: "",
|
|
1112
1833
|
"onClick:clear": k,
|
|
1113
|
-
onBlur:
|
|
1834
|
+
onBlur: T[1] || (T[1] = (x) => a.value = !0)
|
|
1114
1835
|
}), {
|
|
1115
|
-
"prepend-inner":
|
|
1116
|
-
|
|
1836
|
+
"prepend-inner": v(() => [
|
|
1837
|
+
B(z, { icon: "$file" })
|
|
1117
1838
|
]),
|
|
1118
|
-
loader:
|
|
1119
|
-
|
|
1839
|
+
loader: v(() => [
|
|
1840
|
+
c.value && u.value < 100 ? (h(), P(f, {
|
|
1120
1841
|
key: 0,
|
|
1121
|
-
"model-value":
|
|
1122
|
-
indeterminate:
|
|
1842
|
+
"model-value": u.value,
|
|
1843
|
+
indeterminate: u.value === -1
|
|
1123
1844
|
}, null, 8, ["model-value", "indeterminate"])) : L("", !0)
|
|
1124
1845
|
]),
|
|
1125
|
-
default:
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
modelValue:
|
|
1129
|
-
"onUpdate:modelValue": [
|
|
1130
|
-
|
|
1131
|
-
A
|
|
1132
|
-
],
|
|
1133
|
-
label: f.value,
|
|
1846
|
+
default: v((x) => [
|
|
1847
|
+
ne("div", Yo, [
|
|
1848
|
+
B(d, R({
|
|
1849
|
+
modelValue: s.value,
|
|
1850
|
+
"onUpdate:modelValue": T[0] || (T[0] = (U) => s.value = U),
|
|
1851
|
+
label: b.value,
|
|
1134
1852
|
density: "compact",
|
|
1135
1853
|
variant: "plain",
|
|
1136
|
-
readonly:
|
|
1137
|
-
disabled:
|
|
1138
|
-
name:
|
|
1854
|
+
readonly: o(p).readonly,
|
|
1855
|
+
disabled: o(p).disabled,
|
|
1856
|
+
name: o(p).name,
|
|
1139
1857
|
"hide-details": !0,
|
|
1140
1858
|
"show-size": !0,
|
|
1141
1859
|
multiple: !1,
|
|
1142
|
-
style:
|
|
1143
|
-
clearable: !1
|
|
1860
|
+
style: c.value && u.value < 100 ? "visibility: hidden" : "",
|
|
1861
|
+
clearable: !1
|
|
1862
|
+
}, E.passthroughAttrs, {
|
|
1144
1863
|
"prepend-icon": "",
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1864
|
+
"onUpdate:modelValue": N,
|
|
1865
|
+
onFocus: (U) => x.focus(),
|
|
1866
|
+
onBlur: (U) => x.blur()
|
|
1867
|
+
}), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
|
|
1148
1868
|
])
|
|
1149
1869
|
]),
|
|
1150
1870
|
_: 1
|
|
1151
1871
|
}, 16);
|
|
1152
1872
|
};
|
|
1153
1873
|
}
|
|
1154
|
-
}),
|
|
1874
|
+
}), Zo = { class: "container" }, Jo = /* @__PURE__ */ M({
|
|
1155
1875
|
__name: "df-input",
|
|
1156
|
-
props: /* @__PURE__ */
|
|
1876
|
+
props: /* @__PURE__ */ Y({
|
|
1157
1877
|
inputType: {},
|
|
1158
1878
|
precision: {},
|
|
1159
1879
|
step: {},
|
|
@@ -1169,8 +1889,9 @@ const ln = {
|
|
|
1169
1889
|
enabled: { type: Boolean },
|
|
1170
1890
|
visibility: {},
|
|
1171
1891
|
cssClass: {},
|
|
1172
|
-
clearable: { type: Boolean }
|
|
1173
|
-
|
|
1892
|
+
clearable: { type: Boolean },
|
|
1893
|
+
passthroughAttrs: {}
|
|
1894
|
+
}, O($({}, Q), {
|
|
1174
1895
|
inputType: "text",
|
|
1175
1896
|
precision: null,
|
|
1176
1897
|
step: void 0,
|
|
@@ -1178,59 +1899,59 @@ const ln = {
|
|
|
1178
1899
|
max: void 0
|
|
1179
1900
|
})),
|
|
1180
1901
|
emits: ["update:modelValue", "click:clear"],
|
|
1181
|
-
setup(
|
|
1182
|
-
const n =
|
|
1183
|
-
return (k,
|
|
1184
|
-
const
|
|
1185
|
-
return
|
|
1186
|
-
|
|
1902
|
+
setup(e, { emit: t }) {
|
|
1903
|
+
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) } : {});
|
|
1904
|
+
return (k, y) => {
|
|
1905
|
+
const N = S("v-text-field"), E = S("v-number-input");
|
|
1906
|
+
return h(), F("div", Zo, [
|
|
1907
|
+
g.value ? (h(), P(E, R({
|
|
1187
1908
|
key: 1,
|
|
1188
|
-
modelValue:
|
|
1189
|
-
"onUpdate:modelValue":
|
|
1190
|
-
},
|
|
1909
|
+
modelValue: o(i),
|
|
1910
|
+
"onUpdate:modelValue": y[2] || (y[2] = (T) => te(i) ? i.value = T : null)
|
|
1911
|
+
}, $($({}, o(c)), w.value), {
|
|
1191
1912
|
density: "compact",
|
|
1192
1913
|
"control-variant": "stacked"
|
|
1193
|
-
}),
|
|
1194
|
-
message:
|
|
1195
|
-
|
|
1196
|
-
message:
|
|
1197
|
-
errors:
|
|
1914
|
+
}), q({
|
|
1915
|
+
message: v(({ message: T }) => [
|
|
1916
|
+
B(o(le), {
|
|
1917
|
+
message: T,
|
|
1918
|
+
errors: o(a)
|
|
1198
1919
|
}, null, 8, ["message", "errors"])
|
|
1199
1920
|
]),
|
|
1200
1921
|
_: 2
|
|
1201
1922
|
}, [
|
|
1202
|
-
|
|
1923
|
+
o(r).icon ? {
|
|
1203
1924
|
name: "label",
|
|
1204
|
-
fn:
|
|
1205
|
-
|
|
1206
|
-
data:
|
|
1207
|
-
label:
|
|
1925
|
+
fn: v((T) => [
|
|
1926
|
+
B(o(oe), {
|
|
1927
|
+
data: T,
|
|
1928
|
+
label: o(r)
|
|
1208
1929
|
}, null, 8, ["data", "label"])
|
|
1209
1930
|
]),
|
|
1210
1931
|
key: "0"
|
|
1211
1932
|
} : void 0
|
|
1212
|
-
]), 1040, ["modelValue"])) : (
|
|
1933
|
+
]), 1040, ["modelValue"])) : (h(), P(N, R({
|
|
1213
1934
|
key: 0,
|
|
1214
|
-
modelValue:
|
|
1215
|
-
"onUpdate:modelValue":
|
|
1216
|
-
},
|
|
1217
|
-
type:
|
|
1218
|
-
onBlur:
|
|
1219
|
-
}),
|
|
1220
|
-
message:
|
|
1221
|
-
|
|
1222
|
-
message:
|
|
1223
|
-
errors:
|
|
1935
|
+
modelValue: o(i),
|
|
1936
|
+
"onUpdate:modelValue": y[0] || (y[0] = (T) => te(i) ? i.value = T : null)
|
|
1937
|
+
}, o(c), {
|
|
1938
|
+
type: o(u),
|
|
1939
|
+
onBlur: y[1] || (y[1] = (T) => p.value = !0)
|
|
1940
|
+
}), q({
|
|
1941
|
+
message: v(({ message: T }) => [
|
|
1942
|
+
B(o(le), {
|
|
1943
|
+
message: T,
|
|
1944
|
+
errors: o(a)
|
|
1224
1945
|
}, null, 8, ["message", "errors"])
|
|
1225
1946
|
]),
|
|
1226
1947
|
_: 2
|
|
1227
1948
|
}, [
|
|
1228
|
-
|
|
1949
|
+
o(r).icon ? {
|
|
1229
1950
|
name: "label",
|
|
1230
|
-
fn:
|
|
1231
|
-
|
|
1232
|
-
data:
|
|
1233
|
-
label:
|
|
1951
|
+
fn: v((T) => [
|
|
1952
|
+
B(o(oe), {
|
|
1953
|
+
data: T,
|
|
1954
|
+
label: o(r)
|
|
1234
1955
|
}, null, 8, ["data", "label"])
|
|
1235
1956
|
]),
|
|
1236
1957
|
key: "0"
|
|
@@ -1239,7 +1960,7 @@ const ln = {
|
|
|
1239
1960
|
]);
|
|
1240
1961
|
};
|
|
1241
1962
|
}
|
|
1242
|
-
}),
|
|
1963
|
+
}), el = /* @__PURE__ */ ae(Jo, [["__scopeId", "data-v-a3a9a978"]]), tl = { class: "editor-container" }, nl = { class: "editor-container__editor" }, ol = { ref: "editorElement" }, ll = /* @__PURE__ */ M({
|
|
1243
1964
|
__name: "ck-editor-custom",
|
|
1244
1965
|
props: {
|
|
1245
1966
|
modelValue: { default: "" },
|
|
@@ -1247,11 +1968,11 @@ const ln = {
|
|
|
1247
1968
|
disabled: { type: Boolean, default: !1 }
|
|
1248
1969
|
},
|
|
1249
1970
|
emits: ["update:modelValue"],
|
|
1250
|
-
setup(
|
|
1251
|
-
|
|
1252
|
-
"3d4d5a06":
|
|
1971
|
+
setup(e, { expose: t, emit: n }) {
|
|
1972
|
+
dt((s) => ({
|
|
1973
|
+
"3d4d5a06": s.minHeight
|
|
1253
1974
|
}));
|
|
1254
|
-
const
|
|
1975
|
+
const l = n, a = A(!1), r = un, u = {
|
|
1255
1976
|
toolbar: {
|
|
1256
1977
|
items: [
|
|
1257
1978
|
"undo",
|
|
@@ -1283,47 +2004,47 @@ const ln = {
|
|
|
1283
2004
|
shouldNotGroupWhenFull: !1
|
|
1284
2005
|
},
|
|
1285
2006
|
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
|
-
|
|
2007
|
+
kt,
|
|
2008
|
+
Vt,
|
|
2009
|
+
_t,
|
|
2010
|
+
jt,
|
|
2011
|
+
Ct,
|
|
2012
|
+
Tt,
|
|
2013
|
+
Bt,
|
|
2014
|
+
It,
|
|
2015
|
+
Pt,
|
|
2016
|
+
Dt,
|
|
2017
|
+
$t,
|
|
2018
|
+
St,
|
|
2019
|
+
xt,
|
|
2020
|
+
At,
|
|
2021
|
+
Et,
|
|
2022
|
+
Nt,
|
|
2023
|
+
Ft,
|
|
2024
|
+
Lt,
|
|
2025
|
+
Mt,
|
|
2026
|
+
Ut,
|
|
2027
|
+
Ot,
|
|
2028
|
+
Rt,
|
|
2029
|
+
Wt,
|
|
2030
|
+
zt,
|
|
2031
|
+
Ht,
|
|
2032
|
+
Kt,
|
|
2033
|
+
Xt,
|
|
2034
|
+
Gt,
|
|
2035
|
+
qt,
|
|
2036
|
+
Yt,
|
|
2037
|
+
Qt,
|
|
2038
|
+
Zt,
|
|
2039
|
+
Jt,
|
|
2040
|
+
en,
|
|
2041
|
+
tn,
|
|
2042
|
+
nn,
|
|
2043
|
+
on,
|
|
2044
|
+
ln,
|
|
2045
|
+
an,
|
|
2046
|
+
rn,
|
|
2047
|
+
sn
|
|
1327
2048
|
],
|
|
1328
2049
|
balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
|
|
1329
2050
|
heading: {
|
|
@@ -1382,34 +2103,34 @@ const ln = {
|
|
|
1382
2103
|
},
|
|
1383
2104
|
table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] }
|
|
1384
2105
|
};
|
|
1385
|
-
|
|
1386
|
-
|
|
2106
|
+
ze(() => {
|
|
2107
|
+
a.value = !0;
|
|
1387
2108
|
});
|
|
1388
|
-
const
|
|
2109
|
+
const j = (s) => {
|
|
1389
2110
|
};
|
|
1390
|
-
return
|
|
1391
|
-
const
|
|
1392
|
-
return
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
2111
|
+
return t({ onEditorReady: j }), (s, m) => {
|
|
2112
|
+
const b = S("ckeditor");
|
|
2113
|
+
return h(), F("div", tl, [
|
|
2114
|
+
ne("div", nl, [
|
|
2115
|
+
ne("div", ol, [
|
|
2116
|
+
a.value ? (h(), P(b, {
|
|
1396
2117
|
key: 0,
|
|
1397
|
-
"model-value":
|
|
1398
|
-
editor:
|
|
1399
|
-
config:
|
|
1400
|
-
disabled:
|
|
1401
|
-
style:
|
|
1402
|
-
onReady:
|
|
1403
|
-
"onUpdate:modelValue":
|
|
2118
|
+
"model-value": s.modelValue,
|
|
2119
|
+
editor: o(r),
|
|
2120
|
+
config: u,
|
|
2121
|
+
disabled: s.disabled,
|
|
2122
|
+
style: Ge(`min-height: ${s.minHeight}`),
|
|
2123
|
+
onReady: j,
|
|
2124
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => l("update:modelValue", g))
|
|
1404
2125
|
}, null, 8, ["model-value", "editor", "disabled", "style"])) : L("", !0)
|
|
1405
2126
|
], 512)
|
|
1406
2127
|
])
|
|
1407
2128
|
]);
|
|
1408
2129
|
};
|
|
1409
2130
|
}
|
|
1410
|
-
}),
|
|
2131
|
+
}), al = /* @__PURE__ */ M({
|
|
1411
2132
|
__name: "df-rtf-editor",
|
|
1412
|
-
props: /* @__PURE__ */
|
|
2133
|
+
props: /* @__PURE__ */ Y({
|
|
1413
2134
|
minHeight: {},
|
|
1414
2135
|
control: {},
|
|
1415
2136
|
modelValue: {},
|
|
@@ -1421,62 +2142,64 @@ const ln = {
|
|
|
1421
2142
|
enabled: { type: Boolean },
|
|
1422
2143
|
visibility: {},
|
|
1423
2144
|
cssClass: {},
|
|
1424
|
-
clearable: { type: Boolean }
|
|
1425
|
-
|
|
2145
|
+
clearable: { type: Boolean },
|
|
2146
|
+
passthroughAttrs: {}
|
|
2147
|
+
}, O($({}, Q), { minHeight: void 0 })),
|
|
1426
2148
|
emits: ["update:modelValue", "click:clear"],
|
|
1427
|
-
setup(
|
|
1428
|
-
const n =
|
|
1429
|
-
return (
|
|
1430
|
-
default:
|
|
1431
|
-
|
|
2149
|
+
setup(e, { emit: t }) {
|
|
2150
|
+
const n = e, l = t, { value: a, vuetifyBindings: r } = K(n, l);
|
|
2151
|
+
return (p, i) => (h(), P(o(Pe), X(G(n)), {
|
|
2152
|
+
default: v((c) => [
|
|
2153
|
+
B(ll, R({
|
|
1432
2154
|
ref: "$editor",
|
|
1433
|
-
modelValue:
|
|
1434
|
-
"onUpdate:modelValue":
|
|
1435
|
-
class:
|
|
1436
|
-
"min-height":
|
|
1437
|
-
disabled:
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
2155
|
+
modelValue: o(a),
|
|
2156
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => te(a) ? a.value = u : null),
|
|
2157
|
+
class: { "mt-8": !!p.label },
|
|
2158
|
+
"min-height": p.minHeight,
|
|
2159
|
+
disabled: o(r).disabled
|
|
2160
|
+
}, p.passthroughAttrs, {
|
|
2161
|
+
onFocusin: (u) => c.focus(),
|
|
2162
|
+
onFocusout: (u) => c.blur()
|
|
2163
|
+
}), null, 16, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
|
|
1441
2164
|
]),
|
|
1442
2165
|
_: 1
|
|
1443
2166
|
}, 16));
|
|
1444
2167
|
}
|
|
1445
2168
|
});
|
|
1446
|
-
function
|
|
1447
|
-
return
|
|
2169
|
+
function rl(e) {
|
|
2170
|
+
return e.map((t) => ({ value: t.id, title: t.text, icon: t.icon }));
|
|
1448
2171
|
}
|
|
1449
|
-
function J(
|
|
2172
|
+
function J(e, t) {
|
|
1450
2173
|
var n;
|
|
1451
|
-
return
|
|
2174
|
+
return e == null || Ue(e) && e.length === 0 ? null : t ? qe(e) : Ue(e) ? (n = Ye(e)) != null ? n : null : e;
|
|
1452
2175
|
}
|
|
1453
|
-
function
|
|
1454
|
-
if (
|
|
1455
|
-
const n =
|
|
1456
|
-
return
|
|
2176
|
+
function ke(e, t) {
|
|
2177
|
+
if (t == null) return [];
|
|
2178
|
+
const n = qe(t);
|
|
2179
|
+
return e.filter((l) => n.some((a) => a === l.id));
|
|
1457
2180
|
}
|
|
1458
|
-
function
|
|
1459
|
-
var
|
|
1460
|
-
const
|
|
1461
|
-
if (
|
|
1462
|
-
|
|
2181
|
+
function we(e, t, n, l, a) {
|
|
2182
|
+
var p;
|
|
2183
|
+
const r = J(e, n);
|
|
2184
|
+
if (r == null) {
|
|
2185
|
+
t.value = n ? [] : null;
|
|
1463
2186
|
return;
|
|
1464
2187
|
}
|
|
1465
2188
|
if (n)
|
|
1466
|
-
|
|
1467
|
-
else if (
|
|
1468
|
-
|
|
2189
|
+
l ? t.value = r : t.value = ke(a, r).map((i) => i.id);
|
|
2190
|
+
else if (l)
|
|
2191
|
+
t.value = r;
|
|
1469
2192
|
else {
|
|
1470
|
-
const
|
|
1471
|
-
|
|
2193
|
+
const i = Ye(ke(a, r));
|
|
2194
|
+
t.value = (p = i == null ? void 0 : i.id) != null ? p : null;
|
|
1472
2195
|
}
|
|
1473
2196
|
}
|
|
1474
|
-
const
|
|
2197
|
+
const il = {
|
|
1475
2198
|
key: 0,
|
|
1476
2199
|
class: "me-1"
|
|
1477
|
-
},
|
|
2200
|
+
}, sl = /* @__PURE__ */ M({
|
|
1478
2201
|
__name: "df-select",
|
|
1479
|
-
props: /* @__PURE__ */
|
|
2202
|
+
props: /* @__PURE__ */ Y({
|
|
1480
2203
|
choices: {},
|
|
1481
2204
|
multiple: { type: Boolean },
|
|
1482
2205
|
allowTags: { type: Boolean },
|
|
@@ -1492,8 +2215,9 @@ const _n = {
|
|
|
1492
2215
|
enabled: { type: Boolean },
|
|
1493
2216
|
visibility: {},
|
|
1494
2217
|
cssClass: {},
|
|
1495
|
-
clearable: { type: Boolean }
|
|
1496
|
-
|
|
2218
|
+
clearable: { type: Boolean },
|
|
2219
|
+
passthroughAttrs: {}
|
|
2220
|
+
}, O($({}, Q), {
|
|
1497
2221
|
choices: void 0,
|
|
1498
2222
|
multiple: !1,
|
|
1499
2223
|
allowTags: !1,
|
|
@@ -1501,125 +2225,125 @@ const _n = {
|
|
|
1501
2225
|
fetchChoices: void 0
|
|
1502
2226
|
})),
|
|
1503
2227
|
emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
|
|
1504
|
-
setup(
|
|
1505
|
-
const n =
|
|
1506
|
-
function
|
|
1507
|
-
|
|
2228
|
+
setup(e, { emit: t }) {
|
|
2229
|
+
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 = A(null), k = A(!1), y = A([]), N = _(() => o(k) ? o(y) : o(l) || []), E = A(!1), T = _(() => rl(N.value));
|
|
2230
|
+
function z(C) {
|
|
2231
|
+
u("update:modelValueDisplay", ke(N.value, C));
|
|
1508
2232
|
}
|
|
1509
|
-
let
|
|
1510
|
-
function
|
|
1511
|
-
|
|
1512
|
-
|
|
2233
|
+
let f = !1;
|
|
2234
|
+
function d(C) {
|
|
2235
|
+
f = !0, b.value = C, Ne(() => {
|
|
2236
|
+
f = !1;
|
|
1513
2237
|
});
|
|
1514
2238
|
}
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
const I = J(
|
|
1518
|
-
|
|
2239
|
+
ue(w, (C) => {
|
|
2240
|
+
g.value.readonly || Ne(() => {
|
|
2241
|
+
const I = J(C, a.value);
|
|
2242
|
+
z(I), d(I);
|
|
1519
2243
|
});
|
|
1520
|
-
}, { deep: !0 }),
|
|
1521
|
-
if (!
|
|
1522
|
-
const I = J(
|
|
1523
|
-
|
|
2244
|
+
}, { deep: !0 }), ue(b, (C) => {
|
|
2245
|
+
if (!f) {
|
|
2246
|
+
const I = J(C, a.value);
|
|
2247
|
+
we(I, w, a.value, !1, N.value);
|
|
1524
2248
|
}
|
|
1525
2249
|
}, { deep: !0 });
|
|
1526
|
-
function
|
|
1527
|
-
if (
|
|
1528
|
-
const
|
|
1529
|
-
|
|
2250
|
+
function x() {
|
|
2251
|
+
if (g.value.readonly || r.value) return;
|
|
2252
|
+
const C = J(w.value, a.value);
|
|
2253
|
+
we(C, w, a.value, !1, N.value), d(C);
|
|
1530
2254
|
}
|
|
1531
|
-
function
|
|
2255
|
+
function U(C) {
|
|
1532
2256
|
let I;
|
|
1533
|
-
|
|
2257
|
+
a.value && Array.isArray(w.value) ? I = J(w.value.filter((V) => V !== C), a.value) : I = null, we(I, w, a.value, !1, N.value), d(I);
|
|
1534
2258
|
}
|
|
1535
|
-
function
|
|
1536
|
-
return
|
|
1537
|
-
if (!(
|
|
2259
|
+
function de(C, I) {
|
|
2260
|
+
return ge(this, null, function* () {
|
|
2261
|
+
if (!(l.value || n.fetchChoices === void 0)) {
|
|
1538
2262
|
E.value = !0;
|
|
1539
2263
|
try {
|
|
1540
|
-
const
|
|
1541
|
-
|
|
2264
|
+
const V = ke(N.value, J(w.value, a.value)), Z = yield n.fetchChoices(C, I);
|
|
2265
|
+
y.value = vt([...V, ...Z], "id"), k.value = !0;
|
|
1542
2266
|
} finally {
|
|
1543
2267
|
E.value = !1;
|
|
1544
2268
|
}
|
|
1545
2269
|
}
|
|
1546
2270
|
});
|
|
1547
2271
|
}
|
|
1548
|
-
function
|
|
1549
|
-
let
|
|
1550
|
-
!
|
|
2272
|
+
function me() {
|
|
2273
|
+
let C = b.value;
|
|
2274
|
+
!p.value && C == null && T.value.length && (C = T.value[0].value), C = J(C, a.value), we(C, w, a.value, r.value, N.value), z(C), d(C);
|
|
1551
2275
|
}
|
|
1552
|
-
return
|
|
1553
|
-
|
|
1554
|
-
}), (
|
|
1555
|
-
const
|
|
1556
|
-
return
|
|
2276
|
+
return me(), n.fetchChoices !== void 0 && de(void 0, b.value).then(() => {
|
|
2277
|
+
me();
|
|
2278
|
+
}), (C, I) => {
|
|
2279
|
+
const V = S("v-chip"), Z = S("v-list-item");
|
|
2280
|
+
return o(c) !== o(H).SUPPRESS ? (h(), P(ce(o(r) ? "v-combobox" : "v-autocomplete"), R({
|
|
1557
2281
|
key: 0,
|
|
1558
|
-
modelValue:
|
|
1559
|
-
"onUpdate:modelValue": I[0] || (I[0] = (
|
|
2282
|
+
modelValue: w.value,
|
|
2283
|
+
"onUpdate:modelValue": I[0] || (I[0] = (D) => w.value = D),
|
|
1560
2284
|
class: [
|
|
1561
|
-
|
|
2285
|
+
o(i),
|
|
1562
2286
|
{
|
|
1563
|
-
"d-none":
|
|
1564
|
-
invisible:
|
|
2287
|
+
"d-none": o(c) === o(H).HIDDEN,
|
|
2288
|
+
invisible: o(c) === o(H).INVISIBLE
|
|
1565
2289
|
}
|
|
1566
2290
|
],
|
|
1567
|
-
items:
|
|
2291
|
+
items: T.value,
|
|
1568
2292
|
"return-object": !1
|
|
1569
|
-
},
|
|
1570
|
-
label:
|
|
2293
|
+
}, o(g), {
|
|
2294
|
+
label: o(g).label,
|
|
1571
2295
|
chips: "",
|
|
1572
2296
|
"auto-select-first": !0,
|
|
1573
|
-
"closable-chips":
|
|
1574
|
-
clearable:
|
|
1575
|
-
multiple:
|
|
2297
|
+
"closable-chips": o(p) || o(a) && w.value.length > 1,
|
|
2298
|
+
clearable: o(p),
|
|
2299
|
+
multiple: o(a),
|
|
1576
2300
|
loading: E.value,
|
|
1577
2301
|
"hide-selected": !1,
|
|
1578
|
-
"aria-describedby":
|
|
2302
|
+
"aria-describedby": o(g).helpText ? `${o(g).name}-help` : null,
|
|
1579
2303
|
"menu-props": { maxHeight: "400" },
|
|
1580
2304
|
"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:
|
|
2305
|
+
"onUpdate:search": I[1] || (I[1] = (D) => de(D, void 0)),
|
|
2306
|
+
"onUpdate:modelValue": x,
|
|
2307
|
+
"onClick:clear": I[2] || (I[2] = (D) => w.value = null),
|
|
2308
|
+
onBlur: I[3] || (I[3] = (D) => m.value = !0)
|
|
2309
|
+
}), q({
|
|
2310
|
+
chip: v(({ item: D }) => [
|
|
2311
|
+
(h(), P(V, {
|
|
2312
|
+
key: D.value,
|
|
1589
2313
|
label: "",
|
|
1590
2314
|
size: "small",
|
|
1591
2315
|
class: "d-flex align-middle",
|
|
1592
|
-
variant:
|
|
1593
|
-
closable:
|
|
1594
|
-
"onClick:close": (
|
|
2316
|
+
variant: o(a) ? "tonal" : "text",
|
|
2317
|
+
closable: o(a),
|
|
2318
|
+
"onClick:close": (re) => U(D.value)
|
|
1595
2319
|
}, {
|
|
1596
|
-
prepend:
|
|
1597
|
-
var
|
|
2320
|
+
prepend: v(() => {
|
|
2321
|
+
var re;
|
|
1598
2322
|
return [
|
|
1599
|
-
(
|
|
2323
|
+
(re = D.raw) != null && re.icon ? (h(), P(o(Be), {
|
|
1600
2324
|
key: 0,
|
|
1601
2325
|
class: "me-1 action-icon d-inline-block",
|
|
1602
|
-
name:
|
|
2326
|
+
name: D.raw.icon
|
|
1603
2327
|
}, null, 8, ["name"])) : L("", !0)
|
|
1604
2328
|
];
|
|
1605
2329
|
}),
|
|
1606
|
-
default:
|
|
1607
|
-
|
|
1608
|
-
class:
|
|
1609
|
-
},
|
|
2330
|
+
default: v(() => [
|
|
2331
|
+
ne("span", {
|
|
2332
|
+
class: Ve({ "text-body-1": !o(a) })
|
|
2333
|
+
}, se(D.title), 3)
|
|
1610
2334
|
]),
|
|
1611
2335
|
_: 2
|
|
1612
2336
|
}, 1032, ["variant", "closable", "onClick:close"]))
|
|
1613
2337
|
]),
|
|
1614
|
-
item:
|
|
1615
|
-
|
|
1616
|
-
prepend:
|
|
1617
|
-
var
|
|
2338
|
+
item: v(({ props: D, item: re }) => [
|
|
2339
|
+
B(Z, X(G(D)), {
|
|
2340
|
+
prepend: v(() => {
|
|
2341
|
+
var De;
|
|
1618
2342
|
return [
|
|
1619
|
-
(
|
|
1620
|
-
|
|
2343
|
+
(De = re.raw) != null && De.icon ? (h(), F("span", il, [
|
|
2344
|
+
B(o(Be), {
|
|
1621
2345
|
class: "action-icon d-inline-block",
|
|
1622
|
-
name:
|
|
2346
|
+
name: re.raw.icon
|
|
1623
2347
|
}, null, 8, ["name"])
|
|
1624
2348
|
])) : L("", !0)
|
|
1625
2349
|
];
|
|
@@ -1627,44 +2351,44 @@ const _n = {
|
|
|
1627
2351
|
_: 2
|
|
1628
2352
|
}, 1040)
|
|
1629
2353
|
]),
|
|
1630
|
-
message:
|
|
1631
|
-
|
|
1632
|
-
message:
|
|
1633
|
-
errors:
|
|
2354
|
+
message: v(({ message: D }) => [
|
|
2355
|
+
B(o(le), {
|
|
2356
|
+
message: D,
|
|
2357
|
+
errors: o(j)
|
|
1634
2358
|
}, null, 8, ["message", "errors"])
|
|
1635
2359
|
]),
|
|
1636
2360
|
_: 2
|
|
1637
2361
|
}, [
|
|
1638
|
-
|
|
2362
|
+
o(s).icon ? {
|
|
1639
2363
|
name: "label",
|
|
1640
|
-
fn:
|
|
1641
|
-
|
|
1642
|
-
data:
|
|
1643
|
-
label:
|
|
2364
|
+
fn: v((D) => [
|
|
2365
|
+
B(o(oe), {
|
|
2366
|
+
data: D,
|
|
2367
|
+
label: o(s)
|
|
1644
2368
|
}, null, 8, ["data", "label"])
|
|
1645
2369
|
]),
|
|
1646
2370
|
key: "0"
|
|
1647
2371
|
} : void 0,
|
|
1648
|
-
|
|
2372
|
+
C.$slots["append-inner"] ? {
|
|
1649
2373
|
name: "append-inner",
|
|
1650
|
-
fn:
|
|
1651
|
-
|
|
2374
|
+
fn: v((D) => [
|
|
2375
|
+
ie(C.$slots, "append-inner", X(G(D)), void 0, !0)
|
|
1652
2376
|
]),
|
|
1653
2377
|
key: "1"
|
|
1654
2378
|
} : void 0,
|
|
1655
|
-
|
|
2379
|
+
C.$slots["prepend-inner"] ? {
|
|
1656
2380
|
name: "prepend-inner",
|
|
1657
|
-
fn:
|
|
1658
|
-
|
|
2381
|
+
fn: v((D) => [
|
|
2382
|
+
ie(C.$slots, "prepend-inner", X(G(D)), void 0, !0)
|
|
1659
2383
|
]),
|
|
1660
2384
|
key: "2"
|
|
1661
2385
|
} : void 0
|
|
1662
2386
|
]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : L("", !0);
|
|
1663
2387
|
};
|
|
1664
2388
|
}
|
|
1665
|
-
}),
|
|
2389
|
+
}), ul = /* @__PURE__ */ ae(sl, [["__scopeId", "data-v-928dac22"]]), cl = { class: "container" }, dl = /* @__PURE__ */ M({
|
|
1666
2390
|
__name: "df-text-area",
|
|
1667
|
-
props: /* @__PURE__ */
|
|
2391
|
+
props: /* @__PURE__ */ Y({
|
|
1668
2392
|
rows: {},
|
|
1669
2393
|
maxRows: {},
|
|
1670
2394
|
control: {},
|
|
@@ -1677,48 +2401,49 @@ const _n = {
|
|
|
1677
2401
|
enabled: { type: Boolean },
|
|
1678
2402
|
visibility: {},
|
|
1679
2403
|
cssClass: {},
|
|
1680
|
-
clearable: { type: Boolean }
|
|
1681
|
-
|
|
2404
|
+
clearable: { type: Boolean },
|
|
2405
|
+
passthroughAttrs: {}
|
|
2406
|
+
}, O($({}, Q), {
|
|
1682
2407
|
rows: void 0,
|
|
1683
2408
|
maxRows: void 0
|
|
1684
2409
|
})),
|
|
1685
2410
|
emits: ["update:modelValue", "click:clear"],
|
|
1686
|
-
setup(
|
|
1687
|
-
const n =
|
|
1688
|
-
return (
|
|
1689
|
-
const
|
|
1690
|
-
return
|
|
1691
|
-
|
|
2411
|
+
setup(e, { emit: t }) {
|
|
2412
|
+
const n = e, l = t, { errors: a, label: r, touched: p, value: i, vuetifyBindings: c } = K(n, l), { cssClass: u, visibility: j } = _e(n);
|
|
2413
|
+
return (s, m) => {
|
|
2414
|
+
const b = S("v-textarea");
|
|
2415
|
+
return h(), F("div", cl, [
|
|
2416
|
+
o(j) !== o(H).SUPPRESS ? (h(), P(b, R({
|
|
1692
2417
|
key: 0,
|
|
1693
|
-
modelValue:
|
|
1694
|
-
"onUpdate:modelValue":
|
|
2418
|
+
modelValue: o(i),
|
|
2419
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => te(i) ? i.value = g : null),
|
|
1695
2420
|
class: [
|
|
1696
|
-
|
|
2421
|
+
o(u),
|
|
1697
2422
|
{
|
|
1698
|
-
"d-none":
|
|
1699
|
-
invisible:
|
|
2423
|
+
"d-none": o(j) === o(H).HIDDEN,
|
|
2424
|
+
invisible: o(j) === o(H).INVISIBLE
|
|
1700
2425
|
}
|
|
1701
2426
|
],
|
|
1702
|
-
rows:
|
|
1703
|
-
"auto-grow": (
|
|
1704
|
-
"max-rows":
|
|
1705
|
-
},
|
|
1706
|
-
onBlur:
|
|
1707
|
-
}),
|
|
1708
|
-
message:
|
|
1709
|
-
|
|
1710
|
-
message:
|
|
1711
|
-
errors:
|
|
2427
|
+
rows: s.rows,
|
|
2428
|
+
"auto-grow": (s.maxRows || 0) > 0,
|
|
2429
|
+
"max-rows": s.maxRows
|
|
2430
|
+
}, o(c), {
|
|
2431
|
+
onBlur: m[1] || (m[1] = (g) => p.value = !0)
|
|
2432
|
+
}), q({
|
|
2433
|
+
message: v(({ message: g }) => [
|
|
2434
|
+
B(o(le), {
|
|
2435
|
+
message: g,
|
|
2436
|
+
errors: o(a)
|
|
1712
2437
|
}, null, 8, ["message", "errors"])
|
|
1713
2438
|
]),
|
|
1714
2439
|
_: 2
|
|
1715
2440
|
}, [
|
|
1716
|
-
|
|
2441
|
+
o(r).icon ? {
|
|
1717
2442
|
name: "label",
|
|
1718
|
-
fn:
|
|
1719
|
-
|
|
1720
|
-
data:
|
|
1721
|
-
label:
|
|
2443
|
+
fn: v((g) => [
|
|
2444
|
+
B(o(oe), {
|
|
2445
|
+
data: g,
|
|
2446
|
+
label: o(r)
|
|
1722
2447
|
}, null, 8, ["data", "label"])
|
|
1723
2448
|
]),
|
|
1724
2449
|
key: "0"
|
|
@@ -1727,81 +2452,82 @@ const _n = {
|
|
|
1727
2452
|
]);
|
|
1728
2453
|
};
|
|
1729
2454
|
}
|
|
1730
|
-
}),
|
|
2455
|
+
}), ml = /* @__PURE__ */ ae(dl, [["__scopeId", "data-v-b2f125f8"]]), pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1731
2456
|
__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" })),
|
|
2457
|
+
DfActions: Ho,
|
|
2458
|
+
DfCheckbox: Ko,
|
|
2459
|
+
DfColor: Xo,
|
|
2460
|
+
DfDateTime: qo,
|
|
2461
|
+
DfFile: Qo,
|
|
2462
|
+
DfInput: el,
|
|
2463
|
+
DfRtfEditor: al,
|
|
2464
|
+
DfSelect: ul,
|
|
2465
|
+
DfTextArea: ml
|
|
2466
|
+
}, Symbol.toStringTag, { value: "Module" })), fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1742
2467
|
__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" })),
|
|
2468
|
+
VAutocomplete: cn,
|
|
2469
|
+
VBtn: dn,
|
|
2470
|
+
VCheckbox: mn,
|
|
2471
|
+
VChip: pn,
|
|
2472
|
+
VCol: yn,
|
|
2473
|
+
VColorPicker: vn,
|
|
2474
|
+
VCombobox: fn,
|
|
2475
|
+
VConfirmEdit: bn,
|
|
2476
|
+
VDatePicker: hn,
|
|
2477
|
+
VField: gn,
|
|
2478
|
+
VFileInput: wn,
|
|
2479
|
+
VIcon: Vn,
|
|
2480
|
+
VImg: _n,
|
|
2481
|
+
VInput: jn,
|
|
2482
|
+
VListItem: Cn,
|
|
2483
|
+
VMenu: Tn,
|
|
2484
|
+
VNumberInput: Bn,
|
|
2485
|
+
VProgressLinear: In,
|
|
2486
|
+
VRow: kn,
|
|
2487
|
+
VSelect: Pn,
|
|
2488
|
+
VSwitch: Dn,
|
|
2489
|
+
VTextField: Sn,
|
|
2490
|
+
VTextarea: $n,
|
|
2491
|
+
VTimePicker: xn
|
|
2492
|
+
}, Symbol.toStringTag, { value: "Module" })), Gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1768
2493
|
__proto__: null
|
|
1769
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1770
|
-
install: (
|
|
1771
|
-
var n,
|
|
1772
|
-
|
|
2494
|
+
}, Symbol.toStringTag, { value: "Module" })), ql = {
|
|
2495
|
+
install: (e, t) => {
|
|
2496
|
+
var n, l;
|
|
2497
|
+
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
2498
|
}
|
|
1774
2499
|
};
|
|
1775
2500
|
export {
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
2501
|
+
ye as Action,
|
|
2502
|
+
W as ActionDisplayStyle,
|
|
2503
|
+
Io as DateTimeLocaleConfig,
|
|
2504
|
+
Ho as DfActions,
|
|
2505
|
+
Ko as DfCheckbox,
|
|
2506
|
+
Xo as DfColor,
|
|
2507
|
+
qo as DfDateTime,
|
|
2508
|
+
Qo as DfFile,
|
|
2509
|
+
el as DfInput,
|
|
2510
|
+
Gl as DfInputComponentProps,
|
|
2511
|
+
pl as DfInputComponents,
|
|
2512
|
+
oe as DfLabel,
|
|
2513
|
+
al as DfRtfEditor,
|
|
2514
|
+
ul as DfSelect,
|
|
2515
|
+
ml as DfTextArea,
|
|
2516
|
+
ql as DynamicFormsInputs,
|
|
2517
|
+
Pe as InputBase,
|
|
2518
|
+
$o as Label,
|
|
2519
|
+
le as MessagesWidget,
|
|
2520
|
+
Oo as ResponsiveActionRenderOptions,
|
|
2521
|
+
Lo as ResponsiveRenderOptions,
|
|
2522
|
+
fl as VuetifyComponents,
|
|
1797
2523
|
Q as defaultBaseProps,
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
2524
|
+
Re as defaultDisplayStyle,
|
|
2525
|
+
Mo as getBreakpointName,
|
|
2526
|
+
We as responsiveBreakpoints,
|
|
2527
|
+
he as translatableStrings,
|
|
2528
|
+
Xl as translateStrings,
|
|
2529
|
+
Uo as useBreakpoint,
|
|
1804
2530
|
K as useInputBase,
|
|
1805
|
-
|
|
2531
|
+
et as vuetifyInputsSettingsKey
|
|
1806
2532
|
};
|
|
1807
2533
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.js.map
|