@dxtmisha/functional 1.14.5 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/ai-description.md +22 -15
- package/ai-types.md +104 -36
- package/dist/library.js +238 -181
- package/dist/src/classes/ref/GeoUnitRef.d.ts +153 -0
- package/dist/src/composables/ref/useGeoUnitRef.d.ts +7 -0
- package/dist/src/library.d.ts +2 -0
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Api as e, ApiError as t, ApiMethodItem as n, BroadcastMessage as r, Cookie as i, DataStorage as a, Datetime as o, ErrorCenter as s, EventItem as c, Formatters as l, Geo as u, GeoFlag as d, GeoIntl as f,
|
|
2
|
-
import { computed as F, customRef as
|
|
3
|
-
import { MediaSocial as
|
|
1
|
+
import { Api as e, ApiError as t, ApiMethodItem as n, BroadcastMessage as r, Cookie as i, DataStorage as a, Datetime as o, ErrorCenter as s, EventItem as c, Formatters as l, Geo as u, GeoFlag as d, GeoIntl as f, GeoUnit as p, Hash as m, Icons as h, Loading as g, MetaStatic as _, Query as v, ScrollbarWidth as y, SearchList as b, ServerStorage as x, Translate as S, executeFunction as C, executePromise as w, forEach as T, getColumn as E, getElementId as D, getExp as ee, isApiSuccess as O, isArray as te, isDomRuntime as k, isFunction as ne, isObject as A, isObjectNotArray as j, isSelected as M, isString as N, random as re, toArray as P, toCamelCase as ie, toDate as ae } from "@dxtmisha/functional-basic";
|
|
2
|
+
import { computed as F, customRef as oe, effectScope as se, getCurrentInstance as ce, h as le, hasInjectionContext as ue, inject as de, isRef as I, onServerPrefetch as fe, onUnmounted as pe, provide as me, ref as L, shallowRef as R, toRefs as he, triggerRef as ge, useAttrs as _e, useSlots as ve, watch as z, watchEffect as ye } from "vue";
|
|
3
|
+
import { MediaSocial as be } from "@dxtmisha/media";
|
|
4
4
|
export * from "@dxtmisha/functional-basic";
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region \0@oxc-project+runtime@0.130.0/helpers/typeof.js
|
|
@@ -14,7 +14,7 @@ function B(e) {
|
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region \0@oxc-project+runtime@0.130.0/helpers/toPrimitive.js
|
|
17
|
-
function
|
|
17
|
+
function xe(e, t) {
|
|
18
18
|
if (B(e) != "object" || !e) return e;
|
|
19
19
|
var n = e[Symbol.toPrimitive];
|
|
20
20
|
if (n !== void 0) {
|
|
@@ -26,14 +26,14 @@ function be(e, t) {
|
|
|
26
26
|
}
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region \0@oxc-project+runtime@0.130.0/helpers/toPropertyKey.js
|
|
29
|
-
function
|
|
30
|
-
var t =
|
|
29
|
+
function Se(e) {
|
|
30
|
+
var t = xe(e, "string");
|
|
31
31
|
return B(t) == "symbol" ? t : t + "";
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region \0@oxc-project+runtime@0.130.0/helpers/defineProperty.js
|
|
35
35
|
function V(e, t, n) {
|
|
36
|
-
return (t =
|
|
36
|
+
return (t = Se(t)) in e ? Object.defineProperty(e, t, {
|
|
37
37
|
value: n,
|
|
38
38
|
enumerable: !0,
|
|
39
39
|
configurable: !0,
|
|
@@ -42,12 +42,12 @@ function V(e, t, n) {
|
|
|
42
42
|
}
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/classes/design/DesignChanged.ts
|
|
45
|
-
var
|
|
45
|
+
var Ce = class {
|
|
46
46
|
constructor(e, t = Object.keys(e)) {
|
|
47
47
|
V(this, "props", void 0), V(this, "watch", void 0), V(this, "cache", {}), this.props = e, this.watch = t;
|
|
48
48
|
}
|
|
49
49
|
is(e) {
|
|
50
|
-
return
|
|
50
|
+
return te(e) ? !!e.find((e) => this.isDifferent(e)) : this.isDifferent(e);
|
|
51
51
|
}
|
|
52
52
|
isChanged() {
|
|
53
53
|
let e = this.props;
|
|
@@ -63,9 +63,9 @@ var Se = class {
|
|
|
63
63
|
var t, n;
|
|
64
64
|
return ((t = this.cache) == null ? void 0 : t[e]) !== ((n = this.props) == null ? void 0 : n[e]);
|
|
65
65
|
}
|
|
66
|
-
},
|
|
66
|
+
}, we = class {
|
|
67
67
|
constructor(e, t, n) {
|
|
68
|
-
V(this, "props", void 0), V(this, "callback", void 0), V(this, "event", {}), V(this, "changed", void 0), this.props = e, this.callback = t, this.changed = new
|
|
68
|
+
V(this, "props", void 0), V(this, "callback", void 0), V(this, "event", {}), V(this, "changed", void 0), this.props = e, this.callback = t, this.changed = new Ce(e, n);
|
|
69
69
|
}
|
|
70
70
|
make(e) {
|
|
71
71
|
return this.makeCallback(e), this;
|
|
@@ -82,7 +82,7 @@ var Se = class {
|
|
|
82
82
|
makeCallbackItem() {
|
|
83
83
|
this.callback && this.callback(this.event);
|
|
84
84
|
}
|
|
85
|
-
},
|
|
85
|
+
}, Te = class extends we {
|
|
86
86
|
make(e) {
|
|
87
87
|
return this.makeCallback(e).then(), this;
|
|
88
88
|
}
|
|
@@ -97,23 +97,23 @@ function H(e) {
|
|
|
97
97
|
}
|
|
98
98
|
//#endregion
|
|
99
99
|
//#region src/functions/render/getClassName.ts
|
|
100
|
-
function
|
|
100
|
+
function Ee(e) {
|
|
101
101
|
return e && "class" in e && typeof e.class == "string" ? e.class : void 0;
|
|
102
102
|
}
|
|
103
103
|
//#endregion
|
|
104
104
|
//#region src/functions/render/getIndexForRender.ts
|
|
105
|
-
function
|
|
106
|
-
let r = t == null ? void 0 : t.id, i = t == null ? void 0 : t.index, a =
|
|
105
|
+
function De(e, t, n) {
|
|
106
|
+
let r = t == null ? void 0 : t.id, i = t == null ? void 0 : t.index, a = Ee(t), o = "";
|
|
107
107
|
if (N(e) && (o += e), n && (o += `.${n}`), i && N(i) && (o += `.${i}`), a && (o += `.${a}`), r && (o += `.${r}`), o !== "") return o;
|
|
108
108
|
}
|
|
109
109
|
//#endregion
|
|
110
110
|
//#region src/functions/ref/render.ts
|
|
111
|
-
function
|
|
111
|
+
function Oe(e, t, n, r) {
|
|
112
112
|
let i = t, a = t && "key" in t;
|
|
113
113
|
return (!t || !a) && (i = {
|
|
114
114
|
...t,
|
|
115
|
-
key:
|
|
116
|
-
}),
|
|
115
|
+
key: De(e, t, r)
|
|
116
|
+
}), le(e, i, n);
|
|
117
117
|
}
|
|
118
118
|
//#endregion
|
|
119
119
|
//#region src/functions/toBind.ts
|
|
@@ -126,7 +126,7 @@ function U(e, t) {
|
|
|
126
126
|
}
|
|
127
127
|
//#endregion
|
|
128
128
|
//#region src/functions/toBinds.ts
|
|
129
|
-
function
|
|
129
|
+
function ke(...e) {
|
|
130
130
|
let t = {};
|
|
131
131
|
return e.forEach((e) => {
|
|
132
132
|
e && (t = U(t, e));
|
|
@@ -149,7 +149,7 @@ var W = class {
|
|
|
149
149
|
if (e) {
|
|
150
150
|
e in this.caching || (this.caching[e] = F(() => this.computeModification(e)));
|
|
151
151
|
let n = this.caching[e];
|
|
152
|
-
if (n) return t ?
|
|
152
|
+
if (n) return t ? ke(n.value, t) : n.value;
|
|
153
153
|
}
|
|
154
154
|
return t;
|
|
155
155
|
}
|
|
@@ -160,7 +160,7 @@ var W = class {
|
|
|
160
160
|
renderOne(e, t, n, r) {
|
|
161
161
|
if (this.is(e)) {
|
|
162
162
|
let i = r == null ? e : r;
|
|
163
|
-
return
|
|
163
|
+
return Oe(this.get(e), this.getModification(i, t), n, i);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
renderAdd(e, t, n, r, i) {
|
|
@@ -171,15 +171,15 @@ var W = class {
|
|
|
171
171
|
let n = H((t = this.modification) == null ? void 0 : t[e]);
|
|
172
172
|
if (n && j(n)) {
|
|
173
173
|
let e = {};
|
|
174
|
-
return
|
|
174
|
+
return T(n, (t, n) => {
|
|
175
175
|
e[n] = H(t);
|
|
176
176
|
}), e;
|
|
177
177
|
}
|
|
178
178
|
return {};
|
|
179
179
|
}
|
|
180
|
-
},
|
|
180
|
+
}, Ae = class extends W {}, je = class {
|
|
181
181
|
constructor(e, t, n) {
|
|
182
|
-
V(this, "props", void 0), V(this, "options", void 0), V(this, "name", void 0), V(this, "element", L()), V(this, "refs", void 0), V(this, "components", void 0), V(this, "emits", void 0), V(this, "classes", void 0), V(this, "classesSub", void 0), V(this, "styles", void 0), V(this, "stylesSub", void 0), V(this, "attrs", void 0), V(this, "slots", void 0), V(this, "dataExpose", void 0), this.props = t, this.options = n, this.name = this.initName(e), this.refs = this.props ?
|
|
182
|
+
V(this, "props", void 0), V(this, "options", void 0), V(this, "name", void 0), V(this, "element", L()), V(this, "refs", void 0), V(this, "components", void 0), V(this, "emits", void 0), V(this, "classes", void 0), V(this, "classesSub", void 0), V(this, "styles", void 0), V(this, "stylesSub", void 0), V(this, "attrs", void 0), V(this, "slots", void 0), V(this, "dataExpose", void 0), this.props = t, this.options = n, this.name = this.initName(e), this.refs = this.props ? he(this.props) : {}, this.components = new W(n == null ? void 0 : n.components, n == null ? void 0 : n.compMod), this.emits = n == null ? void 0 : n.emits, this.classes = F(() => this.updateClasses()), this.styles = F(() => this.updateStyles()), this.attrs = _e(), this.slots = ve();
|
|
183
183
|
}
|
|
184
184
|
init() {
|
|
185
185
|
return this.classesSub = F(() => this.initClasses()), this.stylesSub = F(() => this.initStyles()), this.dataExpose = this.initExpose(), this;
|
|
@@ -225,16 +225,16 @@ var W = class {
|
|
|
225
225
|
return j(e) ? e : Array.isArray(e) ? { [e.filter((e) => typeof e == "string" && e.trim() !== "").join(" ")]: !0 } : typeof e == "string" ? { [e]: !0 } : {};
|
|
226
226
|
}
|
|
227
227
|
toClassName(e) {
|
|
228
|
-
if (
|
|
228
|
+
if (A(e)) {
|
|
229
229
|
let t = {};
|
|
230
|
-
return
|
|
230
|
+
return T(e, (e, n) => {
|
|
231
231
|
n.match(/\?\?/) ? t[n.replace(/\?\?/, this.getName())] = e : n.match(/\?/) ? t[n.replace(/\?/, this.getDesign())] = e : t[n] = e;
|
|
232
232
|
}), t;
|
|
233
233
|
}
|
|
234
234
|
return {};
|
|
235
235
|
}
|
|
236
236
|
initName(e) {
|
|
237
|
-
return
|
|
237
|
+
return T(e.split(".", 2), (e) => ie(e));
|
|
238
238
|
}
|
|
239
239
|
updateClasses() {
|
|
240
240
|
var e, t, n;
|
|
@@ -269,13 +269,13 @@ function G(e) {
|
|
|
269
269
|
}
|
|
270
270
|
//#endregion
|
|
271
271
|
//#region src/classes/ref/DatetimeRef.ts
|
|
272
|
-
var
|
|
272
|
+
var Me = class {
|
|
273
273
|
constructor(e, t = "date", n = u.getLocation()) {
|
|
274
|
-
V(this, "item", void 0), V(this, "type", void 0), V(this, "code", void 0), V(this, "date", void 0), V(this, "datetime", void 0), V(this, "year", L(2e3)), V(this, "month", L(1)), V(this, "day", L(1)), V(this, "hour", L(1)), V(this, "minute", L(1)), V(this, "second", L(1)), this.item = G(e), this.type = G(t), this.code = G(n), this.date = L(
|
|
275
|
-
this.date.value =
|
|
274
|
+
V(this, "item", void 0), V(this, "type", void 0), V(this, "code", void 0), V(this, "date", void 0), V(this, "datetime", void 0), V(this, "year", L(2e3)), V(this, "month", L(1)), V(this, "day", L(1)), V(this, "hour", L(1)), V(this, "minute", L(1)), V(this, "second", L(1)), this.item = G(e), this.type = G(t), this.code = G(n), this.date = L(ae(this.item.value)), this.datetime = new o(this.date.value, this.type.value, this.code.value), z(this.item, (e) => {
|
|
275
|
+
this.date.value = ae(e);
|
|
276
276
|
}), z(this.type, (e) => this.datetime.setType(e)), z(this.code, (e) => this.datetime.setCode(e)), z(this.date, (e) => {
|
|
277
277
|
this.datetime.setDate(e), this.updateDate();
|
|
278
|
-
}), this.datetime.setWatch(() =>
|
|
278
|
+
}), this.datetime.setWatch(() => ge(this.date)), this.updateDate();
|
|
279
279
|
}
|
|
280
280
|
getItem() {
|
|
281
281
|
return this.item;
|
|
@@ -327,37 +327,37 @@ var je = class {
|
|
|
327
327
|
return this.getScope().run(e);
|
|
328
328
|
}
|
|
329
329
|
static getScope() {
|
|
330
|
-
return
|
|
330
|
+
return x.get("__ui:effect-scope-global__", () => se(!0));
|
|
331
331
|
}
|
|
332
|
-
},
|
|
332
|
+
}, Ne = class extends c {
|
|
333
333
|
constructor(e, t, n = ["click"], r, i, a) {
|
|
334
334
|
let o = G(e), s = G(t);
|
|
335
335
|
super(o.value, n, r, i, a), s.value && this.setElementControl(s.value), z(o, (e) => this.setElement(e)), z(s, (e) => this.setElementControl(e));
|
|
336
336
|
}
|
|
337
337
|
}, q = class {
|
|
338
338
|
static get() {
|
|
339
|
-
return
|
|
339
|
+
return x.get("__ui:geo-ref__", () => R(u.getItem()));
|
|
340
340
|
}
|
|
341
341
|
static getCountry() {
|
|
342
|
-
return
|
|
342
|
+
return x.get("__ui:geo-ref-country__", () => F(() => this.get().value.country));
|
|
343
343
|
}
|
|
344
344
|
static getLanguage() {
|
|
345
|
-
return
|
|
345
|
+
return x.get("__ui:geo-ref-language__", () => F(() => this.get().value.language));
|
|
346
346
|
}
|
|
347
347
|
static getStandard() {
|
|
348
|
-
return
|
|
348
|
+
return x.get("__ui:geo-ref-standard__", () => F(() => this.get().value.standard));
|
|
349
349
|
}
|
|
350
350
|
static getFirstDay() {
|
|
351
|
-
return
|
|
351
|
+
return x.get("__ui:geo-ref-first-day__", () => F(() => this.get().value.firstDay));
|
|
352
352
|
}
|
|
353
353
|
static getLocation() {
|
|
354
|
-
return
|
|
354
|
+
return x.get("__ui:geo-ref-location__", () => F(() => this.get().value.location));
|
|
355
355
|
}
|
|
356
356
|
static getLocationCountry() {
|
|
357
|
-
return
|
|
357
|
+
return x.get("__ui:geo-ref-location-country__", () => F(() => this.get().value.locationCountry));
|
|
358
358
|
}
|
|
359
359
|
static getLocationLanguage() {
|
|
360
|
-
return
|
|
360
|
+
return x.get("__ui:geo-ref-location-language__", () => F(() => this.get().value.locationLanguage));
|
|
361
361
|
}
|
|
362
362
|
static set(e) {
|
|
363
363
|
u.set(e, !0), this.get().value = u.getItem();
|
|
@@ -365,7 +365,7 @@ var je = class {
|
|
|
365
365
|
static setValueDefault(e) {
|
|
366
366
|
u.setValueDefault(e), this.get().value = u.getItem();
|
|
367
367
|
}
|
|
368
|
-
},
|
|
368
|
+
}, Pe = class {
|
|
369
369
|
constructor(e) {
|
|
370
370
|
V(this, "flag", void 0), this.flag = F(() => {
|
|
371
371
|
var t;
|
|
@@ -396,7 +396,7 @@ var je = class {
|
|
|
396
396
|
getNationalLanguage(e) {
|
|
397
397
|
return F(() => this.flag.value.getNationalLanguage(H(e)));
|
|
398
398
|
}
|
|
399
|
-
},
|
|
399
|
+
}, Fe = class {
|
|
400
400
|
constructor(e) {
|
|
401
401
|
V(this, "location", void 0), V(this, "intl", void 0), this.location = G(e), this.intl = F(() => {
|
|
402
402
|
var e;
|
|
@@ -469,9 +469,61 @@ var je = class {
|
|
|
469
469
|
sort(e, t = (e, t) => [e, t]) {
|
|
470
470
|
return F(() => this.intl.value.sort([...H(e)], t));
|
|
471
471
|
}
|
|
472
|
-
},
|
|
472
|
+
}, Ie = class {
|
|
473
|
+
constructor(e) {
|
|
474
|
+
V(this, "location", void 0), V(this, "unitInstance", void 0), this.location = G(e), this.unitInstance = F(() => {
|
|
475
|
+
var e;
|
|
476
|
+
return new p((e = this.location.value) == null ? q.getLocation().value : e);
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
getLocation() {
|
|
480
|
+
return F(() => this.unitInstance.value.getLocation());
|
|
481
|
+
}
|
|
482
|
+
millimeter(e, t) {
|
|
483
|
+
return F(() => this.unitInstance.value.millimeter(H(e), t));
|
|
484
|
+
}
|
|
485
|
+
centimeter(e, t) {
|
|
486
|
+
return F(() => this.unitInstance.value.centimeter(H(e), t));
|
|
487
|
+
}
|
|
488
|
+
meter(e, t) {
|
|
489
|
+
return F(() => this.unitInstance.value.meter(H(e), t));
|
|
490
|
+
}
|
|
491
|
+
kilometer(e, t) {
|
|
492
|
+
return F(() => this.unitInstance.value.kilometer(H(e), t));
|
|
493
|
+
}
|
|
494
|
+
squareMeter(e, t) {
|
|
495
|
+
return F(() => this.unitInstance.value.squareMeter(H(e), t));
|
|
496
|
+
}
|
|
497
|
+
hectare(e, t) {
|
|
498
|
+
return F(() => this.unitInstance.value.hectare(H(e), t));
|
|
499
|
+
}
|
|
500
|
+
gram(e, t) {
|
|
501
|
+
return F(() => this.unitInstance.value.gram(H(e), t));
|
|
502
|
+
}
|
|
503
|
+
kilogram(e, t) {
|
|
504
|
+
return F(() => this.unitInstance.value.kilogram(H(e), t));
|
|
505
|
+
}
|
|
506
|
+
tonne(e, t) {
|
|
507
|
+
return F(() => this.unitInstance.value.tonne(H(e), t));
|
|
508
|
+
}
|
|
509
|
+
milliliter(e, t) {
|
|
510
|
+
return F(() => this.unitInstance.value.milliliter(H(e), t));
|
|
511
|
+
}
|
|
512
|
+
liter(e, t) {
|
|
513
|
+
return F(() => this.unitInstance.value.liter(H(e), t));
|
|
514
|
+
}
|
|
515
|
+
celsius(e, t) {
|
|
516
|
+
return F(() => this.unitInstance.value.celsius(H(e), t));
|
|
517
|
+
}
|
|
518
|
+
kilometerPerHour(e, t) {
|
|
519
|
+
return F(() => this.unitInstance.value.kilometerPerHour(H(e), t));
|
|
520
|
+
}
|
|
521
|
+
format(e, t, n) {
|
|
522
|
+
return F(() => this.unitInstance.value.format(H(e), H(t), n));
|
|
523
|
+
}
|
|
524
|
+
}, Le = class e {
|
|
473
525
|
constructor(e, t, n, r, i, a, o, s, c, l = 0, u = 9999999, d) {
|
|
474
|
-
V(this, "list", void 0), V(this, "focus", void 0), V(this, "highlight", void 0), V(this, "highlightLengthStart", void 0), V(this, "filterMode", void 0), V(this, "selected", void 0), V(this, "keyValue", void 0), V(this, "keyLabel", void 0), V(this, "lite", void 0), V(this, "min", void 0), V(this, "max", void 0), V(this, "parent", void 0), V(this, "subList", {}), V(this, "data", F(() =>
|
|
526
|
+
V(this, "list", void 0), V(this, "focus", void 0), V(this, "highlight", void 0), V(this, "highlightLengthStart", void 0), V(this, "filterMode", void 0), V(this, "selected", void 0), V(this, "keyValue", void 0), V(this, "keyLabel", void 0), V(this, "lite", void 0), V(this, "min", void 0), V(this, "max", void 0), V(this, "parent", void 0), V(this, "subList", {}), V(this, "data", F(() => T(H(this.list) || [], (e, t) => this.initItem(t, e)))), V(this, "liteData", F(() => {
|
|
475
527
|
if (this.isLite()) {
|
|
476
528
|
let e = [];
|
|
477
529
|
for (let t of this.data.value) {
|
|
@@ -490,7 +542,7 @@ var je = class {
|
|
|
490
542
|
return this.data.value;
|
|
491
543
|
})), V(this, "fullData", F(() => {
|
|
492
544
|
let e = this.getFocus(), t = this.getHighlight(), n = this.getSelected();
|
|
493
|
-
return
|
|
545
|
+
return T(this.data.value, (r) => {
|
|
494
546
|
var i, a;
|
|
495
547
|
let o = M(r.index, n);
|
|
496
548
|
return {
|
|
@@ -518,7 +570,7 @@ var je = class {
|
|
|
518
570
|
})), V(this, "mapItems", F(() => this.map.value.filter((e) => e.type === "item"))), V(this, "items", F(() => this.map.value.filter((e) => e.type === "item" || e.type === "group" || e.type === "menu"))), V(this, "highlightFirstItem", F(() => {
|
|
519
571
|
let e = this.getHighlight();
|
|
520
572
|
if (e && e.length >= this.getHighlightLengthStart()) {
|
|
521
|
-
let t =
|
|
573
|
+
let t = ee(e, "i");
|
|
522
574
|
if (t) return this.map.value.findIndex((e) => {
|
|
523
575
|
var n, r, i;
|
|
524
576
|
return ((n = e.label) == null ? void 0 : n.toString().match(t)) || ((r = e.index) == null ? void 0 : r.toString().match(t)) || ((i = e.search) == null ? void 0 : i.toString().match(t));
|
|
@@ -540,7 +592,7 @@ var je = class {
|
|
|
540
592
|
})), V(this, "selectedListInGroup", F(() => {
|
|
541
593
|
let e = this.getSelected();
|
|
542
594
|
return e && this.isSelected.value ? this.data.value.filter((t) => M(t.index, e)) : [];
|
|
543
|
-
})), V(this, "selectedNames", F(() =>
|
|
595
|
+
})), V(this, "selectedNames", F(() => E(this.selectedList.value, "label"))), V(this, "selectedValues", F(() => E(this.selectedList.value, "value"))), this.list = e, this.focus = t, this.highlight = n, this.highlightLengthStart = r, this.filterMode = i, this.selected = a, this.keyValue = o, this.keyLabel = s, this.lite = c, this.min = l, this.max = u, this.parent = d, I(e) && z(e, () => {
|
|
544
596
|
this.subList = {};
|
|
545
597
|
});
|
|
546
598
|
}
|
|
@@ -654,7 +706,7 @@ var je = class {
|
|
|
654
706
|
return t.parent === e && this.isItem(t);
|
|
655
707
|
}
|
|
656
708
|
getIndex(e, t, n, r) {
|
|
657
|
-
return e && !
|
|
709
|
+
return e && !A(e) ? e : t && !A(t) ? t : n && r;
|
|
658
710
|
}
|
|
659
711
|
initItem(e, t) {
|
|
660
712
|
if (j(t)) {
|
|
@@ -677,9 +729,9 @@ var je = class {
|
|
|
677
729
|
value: e
|
|
678
730
|
};
|
|
679
731
|
}
|
|
680
|
-
},
|
|
732
|
+
}, Re = "__ui:router-item-ref__", J = class {
|
|
681
733
|
static get() {
|
|
682
|
-
return
|
|
734
|
+
return x.get(Re);
|
|
683
735
|
}
|
|
684
736
|
static getLink(e, t, n) {
|
|
685
737
|
var r;
|
|
@@ -701,7 +753,7 @@ var je = class {
|
|
|
701
753
|
t && t.push(e).then();
|
|
702
754
|
}
|
|
703
755
|
static set(e) {
|
|
704
|
-
|
|
756
|
+
x.set(Re, () => e);
|
|
705
757
|
}
|
|
706
758
|
static setOneTime(e) {
|
|
707
759
|
this.get() || this.set(e);
|
|
@@ -709,18 +761,18 @@ var je = class {
|
|
|
709
761
|
static rawToHref(e) {
|
|
710
762
|
return j(e) && "name" in e && N(e == null ? void 0 : e.name) ? this.getHref(e.name) : {};
|
|
711
763
|
}
|
|
712
|
-
},
|
|
764
|
+
}, ze = class {
|
|
713
765
|
constructor() {
|
|
714
|
-
V(this, "item", L()), V(this, "width", L(0)), V(this, "is", F(() => this.item.value !== void 0)), k() && (
|
|
766
|
+
V(this, "item", L()), V(this, "width", L(0)), V(this, "is", F(() => this.item.value !== void 0)), k() && (y.is().then((e) => {
|
|
715
767
|
this.item.value = e;
|
|
716
|
-
}),
|
|
768
|
+
}), y.get().then((e) => {
|
|
717
769
|
this.width.value = e;
|
|
718
770
|
}));
|
|
719
771
|
}
|
|
720
772
|
};
|
|
721
773
|
//#endregion
|
|
722
774
|
//#region src/functions/ref/getApiErrorRef.ts
|
|
723
|
-
function
|
|
775
|
+
function Be(e) {
|
|
724
776
|
return F(() => {
|
|
725
777
|
if (!(!e.value || O(e.value) || !j(e.value))) return e.value.errorObject;
|
|
726
778
|
});
|
|
@@ -766,9 +818,9 @@ function Z(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
766
818
|
x(), d.value === void 0 && S().then(), l ? E() : K.run(() => E());
|
|
767
819
|
}
|
|
768
820
|
};
|
|
769
|
-
l &&
|
|
821
|
+
l && ce() && pe(() => C());
|
|
770
822
|
let T = () => {
|
|
771
|
-
k() ||
|
|
823
|
+
k() || fe(async () => {
|
|
772
824
|
_ = !1, await S();
|
|
773
825
|
});
|
|
774
826
|
}, E = () => {
|
|
@@ -776,20 +828,20 @@ function Z(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
776
828
|
i && e.push(f), I(n) && e.push(n), a && e.push(a), X && e.push(X), e.length > 0 && (v = z(e, async () => {
|
|
777
829
|
p.value || await S();
|
|
778
830
|
}));
|
|
779
|
-
}, D = F(() => (w(), d.value)),
|
|
831
|
+
}, D = F(() => (w(), d.value)), ee = Be(d), O = F(() => Array.isArray(d.value) ? d.value.length : +!!d.value), te = F(() => d.value === void 0);
|
|
780
832
|
return {
|
|
781
833
|
data: D,
|
|
782
834
|
get item() {
|
|
783
835
|
return w(), d;
|
|
784
836
|
},
|
|
785
|
-
errorItem:
|
|
837
|
+
errorItem: ee,
|
|
786
838
|
isResponseContractValid: F(() => {
|
|
787
839
|
var e;
|
|
788
840
|
return ((e = h.value) == null ? void 0 : e.status) === "success";
|
|
789
841
|
}),
|
|
790
842
|
responseValidationResult: F(() => h.value),
|
|
791
|
-
length:
|
|
792
|
-
starting:
|
|
843
|
+
length: O,
|
|
844
|
+
starting: te,
|
|
793
845
|
loading: p,
|
|
794
846
|
reading: m,
|
|
795
847
|
isStarting() {
|
|
@@ -811,12 +863,12 @@ function Z(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
811
863
|
abort: () => g == null ? void 0 : g.abort()
|
|
812
864
|
};
|
|
813
865
|
}
|
|
814
|
-
var
|
|
866
|
+
var Ve = (e) => {
|
|
815
867
|
X || (X = e);
|
|
816
868
|
};
|
|
817
869
|
//#endregion
|
|
818
870
|
//#region src/composables/ref/useApiAsyncRef.ts
|
|
819
|
-
function
|
|
871
|
+
function He(t, n, r = !0, i, a, o, s, c = !0, l = e.getItem()) {
|
|
820
872
|
let u = Z(t, n, r, i, a, o, s, c, l);
|
|
821
873
|
return u.initSsr(), u;
|
|
822
874
|
}
|
|
@@ -858,7 +910,7 @@ function Q({ path: r, method: i = n.post, action: a, transformation: o, validate
|
|
|
858
910
|
}
|
|
859
911
|
//#endregion
|
|
860
912
|
//#region src/composables/ref/useApiDelete.ts
|
|
861
|
-
function
|
|
913
|
+
function Ue(e) {
|
|
862
914
|
return Q({
|
|
863
915
|
...e,
|
|
864
916
|
method: n.delete
|
|
@@ -866,7 +918,7 @@ function Ve(e) {
|
|
|
866
918
|
}
|
|
867
919
|
//#endregion
|
|
868
920
|
//#region src/composables/ref/useApiGet.ts
|
|
869
|
-
function
|
|
921
|
+
function We(e) {
|
|
870
922
|
return Q({
|
|
871
923
|
...e,
|
|
872
924
|
method: n.get
|
|
@@ -874,7 +926,7 @@ function He(e) {
|
|
|
874
926
|
}
|
|
875
927
|
//#endregion
|
|
876
928
|
//#region src/composables/ref/useApiPost.ts
|
|
877
|
-
function
|
|
929
|
+
function Ge(e) {
|
|
878
930
|
return Q({
|
|
879
931
|
...e,
|
|
880
932
|
method: n.post
|
|
@@ -882,7 +934,7 @@ function Ue(e) {
|
|
|
882
934
|
}
|
|
883
935
|
//#endregion
|
|
884
936
|
//#region src/composables/ref/useApiPut.ts
|
|
885
|
-
function
|
|
937
|
+
function Ke(e) {
|
|
886
938
|
return Q({
|
|
887
939
|
...e,
|
|
888
940
|
method: n.put
|
|
@@ -890,7 +942,7 @@ function We(e) {
|
|
|
890
942
|
}
|
|
891
943
|
//#endregion
|
|
892
944
|
//#region src/composables/ref/useFormattersRef.ts
|
|
893
|
-
function
|
|
945
|
+
function qe(e, t) {
|
|
894
946
|
let n = new l(t);
|
|
895
947
|
return {
|
|
896
948
|
listFormat: F(() => n.setList(e.value).to()),
|
|
@@ -899,7 +951,7 @@ function Ge(e, t) {
|
|
|
899
951
|
}
|
|
900
952
|
//#endregion
|
|
901
953
|
//#region src/composables/ref/useSearchValueRef.ts
|
|
902
|
-
function
|
|
954
|
+
function Je(e, t) {
|
|
903
955
|
let n = t == null ? L("") : t, r = L(n.value), i = L(!1), a;
|
|
904
956
|
return z(n, (t, o, s) => {
|
|
905
957
|
let c = e.getOptions().getDelay();
|
|
@@ -916,8 +968,8 @@ function Ke(e, t) {
|
|
|
916
968
|
}
|
|
917
969
|
//#endregion
|
|
918
970
|
//#region src/composables/ref/useSearchRef.ts
|
|
919
|
-
function
|
|
920
|
-
let i = new
|
|
971
|
+
function Ye(e, t, n, r) {
|
|
972
|
+
let i = new b(void 0, t, void 0, r), { search: a, searchDelay: o, loading: s } = Je(i, n), c = () => H(C(e)) || [], l = F(() => i.setValue(o.value).getItem().isSearch()), u = F(() => i.setList(c()).setValue(o.value).to());
|
|
921
973
|
return {
|
|
922
974
|
isSearch: l,
|
|
923
975
|
search: a,
|
|
@@ -928,27 +980,27 @@ function qe(e, t, n, r) {
|
|
|
928
980
|
}
|
|
929
981
|
//#endregion
|
|
930
982
|
//#region src/composables/ref/useApiManagementRef.ts
|
|
931
|
-
function
|
|
932
|
-
let { path: c, options: l, reactivity: u, conditions: d, transformation: f, validateResponseContract: p, errorContract: m, typeData: h, unmounted: g, skeleton: _ } = e, v, y, b, x, S,
|
|
933
|
-
if (t && (v =
|
|
983
|
+
function Xe(e, t, n, r, i, a, o, s) {
|
|
984
|
+
let { path: c, options: l, reactivity: u, conditions: d, transformation: f, validateResponseContract: p, errorContract: m, typeData: h, unmounted: g, skeleton: _ } = e, v, y, b, x, S, C = Z(c, l, u, d, f, p, m, g, s), T = F(() => h === void 0 ? !0 : C.isStarting() ? !1 : ne(h) ? h(C.data.value) : C.data.value instanceof h), E = F(() => C.isStarting() && _ ? _() : C.data.value);
|
|
985
|
+
if (t && (v = qe(E, t)), n && (y = Ye(F(() => {
|
|
934
986
|
var e;
|
|
935
|
-
let t = (e = v == null ? void 0 : v.listFormat.value) == null ?
|
|
987
|
+
let t = (e = v == null ? void 0 : v.listFormat.value) == null ? C.data.value : e;
|
|
936
988
|
if (Array.isArray(t)) return t;
|
|
937
989
|
}), n.columns, n.value, n.options)), r || i || a) {
|
|
938
990
|
let e = (e) => {
|
|
939
|
-
o == null || o(), O(e) &&
|
|
991
|
+
o == null || o(), O(e) && C.reset().then();
|
|
940
992
|
}, t = (t) => async (n) => {
|
|
941
|
-
|
|
993
|
+
ne(t) && await w(t(n)), e(n);
|
|
942
994
|
};
|
|
943
|
-
r && (b =
|
|
995
|
+
r && (b = Ge({
|
|
944
996
|
...r,
|
|
945
997
|
action: t(r.action),
|
|
946
998
|
apiInstance: s
|
|
947
|
-
})), i && (x =
|
|
999
|
+
})), i && (x = Ke({
|
|
948
1000
|
...i,
|
|
949
1001
|
action: t(i.action),
|
|
950
1002
|
apiInstance: s
|
|
951
|
-
})), a && (S =
|
|
1003
|
+
})), a && (S = Ue({
|
|
952
1004
|
...a,
|
|
953
1005
|
action: t(a.action),
|
|
954
1006
|
apiInstance: s
|
|
@@ -956,37 +1008,37 @@ function Je(e, t, n, r, i, a, o, s) {
|
|
|
956
1008
|
}
|
|
957
1009
|
let D = F(() => {
|
|
958
1010
|
if (T.value) {
|
|
959
|
-
if (y && Array.isArray(
|
|
1011
|
+
if (y && Array.isArray(C.data.value)) return y.listSearch.value;
|
|
960
1012
|
if (v) return v.listFormat.value;
|
|
961
1013
|
}
|
|
962
1014
|
return E.value;
|
|
963
1015
|
});
|
|
964
1016
|
return {
|
|
965
1017
|
isValid: T,
|
|
966
|
-
isResponseContractValid:
|
|
967
|
-
responseValidationResult:
|
|
1018
|
+
isResponseContractValid: C.isResponseContractValid,
|
|
1019
|
+
responseValidationResult: C.responseValidationResult,
|
|
968
1020
|
list: D,
|
|
969
1021
|
get data() {
|
|
970
|
-
return
|
|
1022
|
+
return C.data;
|
|
971
1023
|
},
|
|
972
|
-
errorItem:
|
|
1024
|
+
errorItem: C.errorItem,
|
|
973
1025
|
get length() {
|
|
974
|
-
return y ? y.length :
|
|
1026
|
+
return y ? y.length : C.length;
|
|
975
1027
|
},
|
|
976
|
-
lengthData:
|
|
977
|
-
starting:
|
|
978
|
-
reading:
|
|
979
|
-
loading:
|
|
1028
|
+
lengthData: C.length,
|
|
1029
|
+
starting: C.starting,
|
|
1030
|
+
reading: C.reading,
|
|
1031
|
+
loading: C.loading,
|
|
980
1032
|
loadingSearch: y == null ? void 0 : y.loading,
|
|
981
1033
|
loadingPost: b == null ? void 0 : b.loading,
|
|
982
1034
|
loadingPut: x == null ? void 0 : x.loading,
|
|
983
1035
|
loadingDelete: S == null ? void 0 : S.loading,
|
|
984
1036
|
isSearch: y == null ? void 0 : y.isSearch,
|
|
985
1037
|
search: y == null ? void 0 : y.search,
|
|
986
|
-
init:
|
|
987
|
-
initSsr:
|
|
988
|
-
reset:
|
|
989
|
-
abort:
|
|
1038
|
+
init: C.init,
|
|
1039
|
+
initSsr: C.initSsr,
|
|
1040
|
+
reset: C.reset,
|
|
1041
|
+
abort: C.abort,
|
|
990
1042
|
sendPost: async (e) => await (b == null ? void 0 : b.send(e)),
|
|
991
1043
|
sendPut: async (e) => await (x == null ? void 0 : x.send(e)),
|
|
992
1044
|
sendDelete: async (e) => await (S == null ? void 0 : S.send(e))
|
|
@@ -994,17 +1046,17 @@ function Je(e, t, n, r, i, a, o, s) {
|
|
|
994
1046
|
}
|
|
995
1047
|
//#endregion
|
|
996
1048
|
//#region src/composables/ref/useApiManagementAsyncRef.ts
|
|
997
|
-
function
|
|
998
|
-
let c =
|
|
1049
|
+
function Ze(e, t, n, r, i, a, o, s) {
|
|
1050
|
+
let c = Xe(e, t, n, r, i, a, o, s);
|
|
999
1051
|
return c.initSsr(), c;
|
|
1000
1052
|
}
|
|
1001
1053
|
//#endregion
|
|
1002
1054
|
//#region src/composables/ref/useBroadcastValueRef.ts
|
|
1003
|
-
var
|
|
1004
|
-
function
|
|
1005
|
-
let n = `broadcast--${e}`, i =
|
|
1055
|
+
var Qe = () => x.get("__ui:broadcast-value-ref__", () => ({}));
|
|
1056
|
+
function $e(e, t) {
|
|
1057
|
+
let n = `broadcast--${e}`, i = Qe();
|
|
1006
1058
|
if (n in i) return i[n];
|
|
1007
|
-
let a = L(
|
|
1059
|
+
let a = L(C(t));
|
|
1008
1060
|
if (k()) {
|
|
1009
1061
|
let e = new r(n, (e) => {
|
|
1010
1062
|
a.value !== e.data.message && (a.value = e.data.message);
|
|
@@ -1017,11 +1069,11 @@ function Ze(e, t) {
|
|
|
1017
1069
|
}
|
|
1018
1070
|
//#endregion
|
|
1019
1071
|
//#region src/composables/ref/useCookieRef.ts
|
|
1020
|
-
var
|
|
1021
|
-
function
|
|
1022
|
-
let r =
|
|
1072
|
+
var et = () => x.get("__ui:cookie-ref__", () => ({}));
|
|
1073
|
+
function tt(e, t, n) {
|
|
1074
|
+
let r = et();
|
|
1023
1075
|
if (e in r) return r[e];
|
|
1024
|
-
let a = new i(e), o =
|
|
1076
|
+
let a = new i(e), o = $e(`__cookie:${e}`, a.get(t, n));
|
|
1025
1077
|
return K.run(() => {
|
|
1026
1078
|
z(o, (e) => {
|
|
1027
1079
|
a.set(e, n);
|
|
@@ -1030,28 +1082,33 @@ function $e(e, t, n) {
|
|
|
1030
1082
|
}
|
|
1031
1083
|
//#endregion
|
|
1032
1084
|
//#region src/composables/ref/useGeoIntlRef.ts
|
|
1033
|
-
function
|
|
1034
|
-
return new
|
|
1085
|
+
function nt() {
|
|
1086
|
+
return new Fe();
|
|
1087
|
+
}
|
|
1088
|
+
//#endregion
|
|
1089
|
+
//#region src/composables/ref/useGeoUnitRef.ts
|
|
1090
|
+
function rt() {
|
|
1091
|
+
return new Ie();
|
|
1035
1092
|
}
|
|
1036
1093
|
//#endregion
|
|
1037
1094
|
//#region src/composables/ref/useHashRef.ts
|
|
1038
|
-
var
|
|
1039
|
-
function
|
|
1040
|
-
let n =
|
|
1095
|
+
var it = () => x.get("__ui:hash-ref__", () => ({}));
|
|
1096
|
+
function at(e, t) {
|
|
1097
|
+
let n = it();
|
|
1041
1098
|
if (e in n) return n[e];
|
|
1042
|
-
let r = R(
|
|
1099
|
+
let r = R(m.get(e, t));
|
|
1043
1100
|
return k() && (K.run(() => {
|
|
1044
|
-
z(r, (t) =>
|
|
1045
|
-
}),
|
|
1101
|
+
z(r, (t) => m.set(e, t));
|
|
1102
|
+
}), m.addWatch(e, (e) => {
|
|
1046
1103
|
r.value = e;
|
|
1047
1104
|
})), n[e] = r, r;
|
|
1048
1105
|
}
|
|
1049
1106
|
//#endregion
|
|
1050
1107
|
//#region src/composables/ref/useLazyRef.ts
|
|
1051
|
-
var
|
|
1108
|
+
var ot = (e = { rootMargin: "128px 0px" }) => {
|
|
1052
1109
|
let t = {}, n = k() && "IntersectionObserver" in window ? new IntersectionObserver((e) => {
|
|
1053
1110
|
e.forEach((e) => {
|
|
1054
|
-
let n =
|
|
1111
|
+
let n = D(e.target);
|
|
1055
1112
|
if (n in t) {
|
|
1056
1113
|
let r = t[n];
|
|
1057
1114
|
r.status.value = e.isIntersecting, r.ratio.value = e.intersectionRatio, r.entry.value = e;
|
|
@@ -1059,7 +1116,7 @@ var rt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1059
1116
|
});
|
|
1060
1117
|
}, e) : void 0, r = (e) => {
|
|
1061
1118
|
if (e) {
|
|
1062
|
-
let i =
|
|
1119
|
+
let i = D(e);
|
|
1063
1120
|
if (i in t) {
|
|
1064
1121
|
var r;
|
|
1065
1122
|
n == null || n.unobserve(e), (r = t[i]) == null || r.stopWatch(), delete t[i];
|
|
@@ -1069,7 +1126,7 @@ var rt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1069
1126
|
return {
|
|
1070
1127
|
intersectionObserver: n,
|
|
1071
1128
|
getItem(e) {
|
|
1072
|
-
return t[
|
|
1129
|
+
return t[D(e)];
|
|
1073
1130
|
},
|
|
1074
1131
|
addLazyItem(e) {
|
|
1075
1132
|
let i = R(!n);
|
|
@@ -1077,7 +1134,7 @@ var rt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1077
1134
|
let a;
|
|
1078
1135
|
a = z(e, (o, s) => {
|
|
1079
1136
|
if (s && r(s), e.value) {
|
|
1080
|
-
let r =
|
|
1137
|
+
let r = D(e.value);
|
|
1081
1138
|
t[r] = {
|
|
1082
1139
|
status: i,
|
|
1083
1140
|
ratio: R(0),
|
|
@@ -1092,16 +1149,16 @@ var rt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1092
1149
|
removeLazyItem: r,
|
|
1093
1150
|
disconnectLazy: () => n == null ? void 0 : n.disconnect()
|
|
1094
1151
|
};
|
|
1095
|
-
},
|
|
1096
|
-
let t =
|
|
1152
|
+
}, st = () => x.get("__ui:lazy-item-by-margin-ref__", () => []), ct = (e) => {
|
|
1153
|
+
let t = st(), n = t.find((t) => t.rootMargin === e);
|
|
1097
1154
|
if (n) return n.item;
|
|
1098
|
-
let r =
|
|
1155
|
+
let r = ot({ rootMargin: e });
|
|
1099
1156
|
return t.push({
|
|
1100
1157
|
rootMargin: e,
|
|
1101
1158
|
item: r
|
|
1102
1159
|
}), r;
|
|
1103
|
-
},
|
|
1104
|
-
let n =
|
|
1160
|
+
}, lt = (e, t) => {
|
|
1161
|
+
let n = ct(t);
|
|
1105
1162
|
return {
|
|
1106
1163
|
lazyItemStatus: n.addLazyItem(e),
|
|
1107
1164
|
get lazyItem() {
|
|
@@ -1111,19 +1168,19 @@ var rt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1111
1168
|
};
|
|
1112
1169
|
//#endregion
|
|
1113
1170
|
//#region src/composables/ref/useLoadingRef.ts
|
|
1114
|
-
function
|
|
1115
|
-
let e = R(
|
|
1116
|
-
return k() &&
|
|
1171
|
+
function ut() {
|
|
1172
|
+
let e = R(g.is());
|
|
1173
|
+
return k() && g.registrationEvent(({ detail: t }) => {
|
|
1117
1174
|
e.value = t.loading;
|
|
1118
1175
|
}), e;
|
|
1119
1176
|
}
|
|
1120
1177
|
//#endregion
|
|
1121
1178
|
//#region src/functions/executeUse.ts
|
|
1122
|
-
var
|
|
1179
|
+
var dt = /* @__PURE__ */ function(e) {
|
|
1123
1180
|
return e.global = "global", e.provide = "provide", e.local = "local", e;
|
|
1124
|
-
}({}),
|
|
1181
|
+
}({}), ft = 1, pt = re(1e5, 999999), mt = () => `__execute_use${pt}::${ft++}`, ht = () => x.get("__ui:execute-use-global__", () => []);
|
|
1125
1182
|
function $(e, t = "provide") {
|
|
1126
|
-
let n =
|
|
1183
|
+
let n = mt(), r, i = (t) => {
|
|
1127
1184
|
let n = Object.freeze(e(...t));
|
|
1128
1185
|
return {
|
|
1129
1186
|
...n,
|
|
@@ -1133,7 +1190,7 @@ function $(e, t = "provide") {
|
|
|
1133
1190
|
};
|
|
1134
1191
|
}, a = (e) => {
|
|
1135
1192
|
let t = Object.freeze(i(e));
|
|
1136
|
-
return
|
|
1193
|
+
return me(n, t), t;
|
|
1137
1194
|
}, o = (e) => {
|
|
1138
1195
|
let t = i(e);
|
|
1139
1196
|
return Object.freeze({
|
|
@@ -1142,27 +1199,27 @@ function $(e, t = "provide") {
|
|
|
1142
1199
|
r = void 0;
|
|
1143
1200
|
}
|
|
1144
1201
|
});
|
|
1145
|
-
}, s = (...e) => t === "provide" ?
|
|
1202
|
+
}, s = (...e) => t === "provide" ? de(n, void 0) || a(e) : (r || K.run(() => {
|
|
1146
1203
|
r = o(e);
|
|
1147
1204
|
}), r);
|
|
1148
|
-
return t === "global" &&
|
|
1205
|
+
return t === "global" && ht().push(s), s;
|
|
1149
1206
|
}
|
|
1150
|
-
function
|
|
1207
|
+
function gt(e) {
|
|
1151
1208
|
return $(e, "global");
|
|
1152
1209
|
}
|
|
1153
|
-
function
|
|
1210
|
+
function _t(e) {
|
|
1154
1211
|
return $(e, "provide");
|
|
1155
1212
|
}
|
|
1156
|
-
function
|
|
1213
|
+
function vt(e) {
|
|
1157
1214
|
return $(e, "local");
|
|
1158
1215
|
}
|
|
1159
|
-
function
|
|
1160
|
-
|
|
1216
|
+
function yt() {
|
|
1217
|
+
ht().forEach((e) => e());
|
|
1161
1218
|
}
|
|
1162
1219
|
//#endregion
|
|
1163
1220
|
//#region src/composables/ref/useMeta.ts
|
|
1164
|
-
var
|
|
1165
|
-
let e =
|
|
1221
|
+
var bt = vt(() => {
|
|
1222
|
+
let e = _, t = L(e.getTitle()), n = L(e.getKeywords()), r = L(e.getDescription()), i = L(e.getImage()), a = L(e.getCanonical()), o = L(e.getRobots()), s = L(e.getAuthor()), c = L(e.getSiteName()), l = () => e.html(), u = (e) => {
|
|
1166
1223
|
t.value = e, x();
|
|
1167
1224
|
}, d = (e) => {
|
|
1168
1225
|
n.value = e, x();
|
|
@@ -1174,7 +1231,7 @@ var _t = ht(() => {
|
|
|
1174
1231
|
a.value = e, x();
|
|
1175
1232
|
}, h = (e) => {
|
|
1176
1233
|
o.value = e, x();
|
|
1177
|
-
},
|
|
1234
|
+
}, g = (e) => {
|
|
1178
1235
|
s.value = e, x();
|
|
1179
1236
|
}, v = (e) => {
|
|
1180
1237
|
c.value = e, x();
|
|
@@ -1211,27 +1268,27 @@ var _t = ht(() => {
|
|
|
1211
1268
|
setTitle: u,
|
|
1212
1269
|
setKeywords: d,
|
|
1213
1270
|
setDescription: f,
|
|
1214
|
-
setAuthor:
|
|
1271
|
+
setAuthor: g,
|
|
1215
1272
|
setImage: p,
|
|
1216
1273
|
setCanonical: m,
|
|
1217
1274
|
setRobots: h,
|
|
1218
1275
|
setSiteName: v,
|
|
1219
1276
|
setSuffix: (t) => e.setSuffix(t)
|
|
1220
1277
|
};
|
|
1221
|
-
}),
|
|
1222
|
-
function
|
|
1223
|
-
let n =
|
|
1278
|
+
}), xt = () => bt(), St = () => x.get("__ui:query-ref__", () => ({}));
|
|
1279
|
+
function Ct(e, t) {
|
|
1280
|
+
let n = St();
|
|
1224
1281
|
if (e in n) return n[e];
|
|
1225
|
-
let r = R(
|
|
1282
|
+
let r = R(v.get(e, t));
|
|
1226
1283
|
return k() && (K.run(() => {
|
|
1227
|
-
z(r, (t) =>
|
|
1228
|
-
}),
|
|
1284
|
+
z(r, (t) => v.set(e, t));
|
|
1285
|
+
}), v.addWatch(e, (e) => {
|
|
1229
1286
|
r.value = e;
|
|
1230
1287
|
})), n[e] = r, r;
|
|
1231
1288
|
}
|
|
1232
1289
|
//#endregion
|
|
1233
1290
|
//#region src/composables/ref/useRouterList.ts
|
|
1234
|
-
var
|
|
1291
|
+
var wt = (e, t, n = !0) => {
|
|
1235
1292
|
var r;
|
|
1236
1293
|
let i = I(t) ? t : L(t || ((r = e.value) == null || (r = r[0]) == null ? void 0 : r.value) || ""), a = () => o(i.value), o = (t) => {
|
|
1237
1294
|
var n;
|
|
@@ -1246,7 +1303,7 @@ var xt = (e, t, n = !0) => {
|
|
|
1246
1303
|
var e;
|
|
1247
1304
|
return ((e = a()) == null ? void 0 : e.label) || "";
|
|
1248
1305
|
}),
|
|
1249
|
-
list: F(() => e.value ?
|
|
1306
|
+
list: F(() => e.value ? T(e.value, (e) => n && !("to" in e) ? {
|
|
1250
1307
|
...e,
|
|
1251
1308
|
to: { name: e.value }
|
|
1252
1309
|
} : e) : []),
|
|
@@ -1256,9 +1313,9 @@ var xt = (e, t, n = !0) => {
|
|
|
1256
1313
|
s((t = e.value) == null || (t = t[0]) == null ? void 0 : t.value);
|
|
1257
1314
|
}
|
|
1258
1315
|
};
|
|
1259
|
-
},
|
|
1260
|
-
function
|
|
1261
|
-
let n =
|
|
1316
|
+
}, Tt = () => x.get("__ui:session-ref__", () => ({}));
|
|
1317
|
+
function Et(e, t) {
|
|
1318
|
+
let n = Tt();
|
|
1262
1319
|
if (e in n) return n[e];
|
|
1263
1320
|
let r = new a(e, !0), i = L(r.get(t));
|
|
1264
1321
|
return K.run(() => {
|
|
@@ -1267,9 +1324,9 @@ function Ct(e, t) {
|
|
|
1267
1324
|
}
|
|
1268
1325
|
//#endregion
|
|
1269
1326
|
//#region src/composables/ref/useStorageRef.ts
|
|
1270
|
-
var
|
|
1271
|
-
function
|
|
1272
|
-
let r =
|
|
1327
|
+
var Dt = () => x.get("__ui:storage-ref__", () => ({}));
|
|
1328
|
+
function Ot(e, t, n) {
|
|
1329
|
+
let r = Dt();
|
|
1273
1330
|
if (e in r) return r[e];
|
|
1274
1331
|
let i = new a(e), o = L(i.get(t, n));
|
|
1275
1332
|
return K.run(() => {
|
|
@@ -1280,7 +1337,7 @@ function Tt(e, t, n) {
|
|
|
1280
1337
|
}
|
|
1281
1338
|
//#endregion
|
|
1282
1339
|
//#region src/composables/ref/useTranslateRef.ts
|
|
1283
|
-
function
|
|
1340
|
+
function kt(e, t = S.getItem()) {
|
|
1284
1341
|
let n = R(t.getListSync(e, !0)), r = async () => {
|
|
1285
1342
|
n.value = { ...await t.getList(e) };
|
|
1286
1343
|
};
|
|
@@ -1293,38 +1350,38 @@ function Et(e, t = x.getItem()) {
|
|
|
1293
1350
|
}
|
|
1294
1351
|
return n;
|
|
1295
1352
|
}
|
|
1296
|
-
var
|
|
1353
|
+
var At = (e) => kt(e);
|
|
1297
1354
|
//#endregion
|
|
1298
1355
|
//#region src/functions/computedAsync.ts
|
|
1299
|
-
function
|
|
1300
|
-
let i = R(
|
|
1301
|
-
let t = await
|
|
1356
|
+
function jt(e, t, n, r) {
|
|
1357
|
+
let i = R(C(t)), a = !0, o = async () => {
|
|
1358
|
+
let t = await w(e);
|
|
1302
1359
|
t !== n && (i.value = t);
|
|
1303
1360
|
}, s = () => {
|
|
1304
|
-
a && (a = !1, k() ?
|
|
1361
|
+
a && (a = !1, k() ? ye(o) : o().then());
|
|
1305
1362
|
};
|
|
1306
1363
|
return F(() => (s(), i.value), r);
|
|
1307
1364
|
}
|
|
1308
1365
|
//#endregion
|
|
1309
1366
|
//#region src/functions/computedByLanguage.ts
|
|
1310
|
-
function
|
|
1367
|
+
function Mt(e, t = () => void 0, n, r) {
|
|
1311
1368
|
return F(() => {
|
|
1312
1369
|
if (q.get().value && (n === void 0 || n())) {
|
|
1313
1370
|
let t = e();
|
|
1314
1371
|
if (t !== void 0) return t;
|
|
1315
1372
|
}
|
|
1316
|
-
return
|
|
1373
|
+
return C(t);
|
|
1317
1374
|
}, r);
|
|
1318
1375
|
}
|
|
1319
1376
|
//#endregion
|
|
1320
1377
|
//#region src/functions/computedEternity.ts
|
|
1321
|
-
function
|
|
1322
|
-
return
|
|
1323
|
-
let i = R(
|
|
1324
|
-
i.value = await
|
|
1378
|
+
function Nt(e, t) {
|
|
1379
|
+
return oe((n, r) => {
|
|
1380
|
+
let i = R(C(t)), a = !1, o = async () => {
|
|
1381
|
+
i.value = await w(e), r();
|
|
1325
1382
|
}, s = () => {
|
|
1326
1383
|
a || (a = !0, k() ? K.run(() => {
|
|
1327
|
-
|
|
1384
|
+
ye(async () => await o());
|
|
1328
1385
|
}) : o().then());
|
|
1329
1386
|
};
|
|
1330
1387
|
return {
|
|
@@ -1339,42 +1396,42 @@ function At(e, t) {
|
|
|
1339
1396
|
}
|
|
1340
1397
|
//#endregion
|
|
1341
1398
|
//#region src/functions/dxtFunctionalPlugin.ts
|
|
1342
|
-
var
|
|
1343
|
-
if (n.api && e.setConfig(n.api), n.translate &&
|
|
1399
|
+
var Pt = { install(t, n = {}) {
|
|
1400
|
+
if (n.api && e.setConfig(n.api), n.translate && S.setConfig(n.translate), n.location && q.setValueDefault(n.location), n.icons && h.setConfig(n.icons), n.iconsSocial && be.addIcons(n.iconsSocial), n.metaSuffix && xt().setSuffix(n.metaSuffix), n.router) J.set(n.router);
|
|
1344
1401
|
else {
|
|
1345
1402
|
let e = t.config.globalProperties.$router;
|
|
1346
1403
|
e && J.set(e);
|
|
1347
1404
|
}
|
|
1348
|
-
n.errorCauses && s.addList(n.errorCauses), n.errorHandlers && s.addHandlerList(n.errorHandlers), n.errorCallbacks && n.errorCallbacks.forEach((e) => s.addCallback(e)),
|
|
1405
|
+
n.errorCauses && s.addList(n.errorCauses), n.errorHandlers && s.addHandlerList(n.errorHandlers), n.errorCallbacks && n.errorCallbacks.forEach((e) => s.addCallback(e)), yt();
|
|
1349
1406
|
} };
|
|
1350
1407
|
//#endregion
|
|
1351
1408
|
//#region src/functions/getInject.ts
|
|
1352
|
-
function
|
|
1353
|
-
if (
|
|
1354
|
-
let t =
|
|
1409
|
+
function Ft(e) {
|
|
1410
|
+
if (ue()) {
|
|
1411
|
+
let t = de(e);
|
|
1355
1412
|
if (t) return t;
|
|
1356
1413
|
}
|
|
1357
1414
|
}
|
|
1358
1415
|
//#endregion
|
|
1359
1416
|
//#region src/functions/ref/executeFunctionRef.ts
|
|
1360
|
-
function
|
|
1361
|
-
return H(
|
|
1417
|
+
function It(e) {
|
|
1418
|
+
return H(C(e));
|
|
1362
1419
|
}
|
|
1363
1420
|
//#endregion
|
|
1364
1421
|
//#region src/functions/render/getBind.ts
|
|
1365
|
-
function
|
|
1422
|
+
function Lt(e, t = {}, n = "value", r = !1) {
|
|
1366
1423
|
let i = typeof t == "string", a = i ? t : n, o = i ? {} : t;
|
|
1367
1424
|
return e ? e && j(e) && (a in e || r) ? U(o, e) : U(o, { [a]: e }) : i ? {} : { ...o };
|
|
1368
1425
|
}
|
|
1369
1426
|
//#endregion
|
|
1370
1427
|
//#region src/functions/ref/getBindRef.ts
|
|
1371
|
-
function
|
|
1372
|
-
return F(() =>
|
|
1428
|
+
function Rt(e, t = {}, n = "value") {
|
|
1429
|
+
return F(() => Lt(H(e), H(t), n));
|
|
1373
1430
|
}
|
|
1374
1431
|
//#endregion
|
|
1375
1432
|
//#region src/functions/ref/setRef.ts
|
|
1376
|
-
function
|
|
1433
|
+
function zt(e, t) {
|
|
1377
1434
|
e.value !== t && (e.value = t);
|
|
1378
1435
|
}
|
|
1379
1436
|
//#endregion
|
|
1380
|
-
export {
|
|
1437
|
+
export { Me as DatetimeRef, we as DesignAbstract, Te as DesignAsyncAbstract, Ce as DesignChanged, Ae as DesignComp, W as DesignComponents, je as DesignConstructorAbstract, K as EffectScopeGlobal, Ne as EventRef, dt as ExecuteUseType, Pe as GeoFlagRef, Fe as GeoIntlRef, q as GeoRef, Ie as GeoUnitRef, Le as ListDataRef, J as RouterItemRef, ze as ScrollbarWidthRef, jt as computedAsync, Mt as computedByLanguage, Nt as computedEternity, Pt as dxtFunctionalPlugin, It as executeFunctionRef, $ as executeUse, gt as executeUseGlobal, yt as executeUseGlobalInit, vt as executeUseLocal, _t as executeUseProvide, Be as getApiErrorRef, Lt as getBind, Rt as getBindRef, Ee as getClassName, De as getIndexForRender, Ft as getInject, Y as getOptions, H as getRef, Oe as render, Ve as setApiRefGlobalConditions, zt as setRef, At as t, U as toBind, ke as toBinds, G as toRefItem, He as useApiAsyncRef, Ue as useApiDelete, We as useApiGet, Ze as useApiManagementAsyncRef, Xe as useApiManagementRef, Ge as useApiPost, Ke as useApiPut, Z as useApiRef, Q as useApiRequest, $e as useBroadcastValueRef, tt as useCookieRef, qe as useFormattersRef, nt as useGeoIntlRef, rt as useGeoUnitRef, at as useHashRef, lt as useLazyItemByMarginRef, ot as useLazyRef, ut as useLoadingRef, xt as useMeta, Ct as useQueryRef, wt as useRouterList, Ye as useSearchRef, Je as useSearchValueRef, Et as useSessionRef, Ot as useStorageRef, kt as useTranslateRef };
|