@dxtmisha/functional 1.13.5 → 1.14.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 +18 -0
- package/ai-description.md +16 -0
- package/ai-doc.md +226 -0
- package/{ai-types.txt → ai-types.md} +87 -163
- package/dist/library.js +178 -156
- package/dist/src/classes/ref/GeoRef.d.ts +21 -0
- package/dist/src/composables/ref/useQueryRef.d.ts +9 -0
- package/dist/src/library.d.ts +1 -0
- package/package.json +4 -5
- package/ai-description.txt +0 -18
- package/ai-doc.ru.txt +0 -45
- package/ai-doc.txt +0 -45
package/dist/library.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, Hash as p, Icons as m, Loading as h, MetaStatic as g,
|
|
2
|
-
import { computed as I, customRef 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, Hash as p, Icons as m, Loading as h, MetaStatic as g, Query as _, ScrollbarWidth as v, SearchList as y, ServerStorage as b, Translate as x, executeFunction as S, executePromise as C, forEach as w, getColumn as T, getElementId as E, getExp as D, isApiSuccess as O, isArray as ee, isDomRuntime as k, isFunction as A, isObject as j, isObjectNotArray as M, isSelected as N, isString as P, random as te, toArray as F, toCamelCase as ne, toDate as re } from "@dxtmisha/functional-basic";
|
|
2
|
+
import { computed as I, customRef as ie, effectScope as ae, getCurrentInstance as oe, h as se, hasInjectionContext as ce, inject as le, isRef as L, onServerPrefetch as ue, onUnmounted as de, provide as fe, ref as R, shallowRef as z, toRefs as pe, triggerRef as me, useAttrs as he, useSlots as ge, watch as B, watchEffect as _e } from "vue";
|
|
3
3
|
export * from "@dxtmisha/functional-basic";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region \0@oxc-project+runtime@0.130.0/helpers/typeof.js
|
|
@@ -13,7 +13,7 @@ function V(e) {
|
|
|
13
13
|
}
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region \0@oxc-project+runtime@0.130.0/helpers/toPrimitive.js
|
|
16
|
-
function
|
|
16
|
+
function ve(e, t) {
|
|
17
17
|
if (V(e) != "object" || !e) return e;
|
|
18
18
|
var n = e[Symbol.toPrimitive];
|
|
19
19
|
if (n !== void 0) {
|
|
@@ -25,14 +25,14 @@ function _e(e, t) {
|
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region \0@oxc-project+runtime@0.130.0/helpers/toPropertyKey.js
|
|
28
|
-
function
|
|
29
|
-
var t =
|
|
28
|
+
function ye(e) {
|
|
29
|
+
var t = ve(e, "string");
|
|
30
30
|
return V(t) == "symbol" ? t : t + "";
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region \0@oxc-project+runtime@0.130.0/helpers/defineProperty.js
|
|
34
34
|
function H(e, t, n) {
|
|
35
|
-
return (t =
|
|
35
|
+
return (t = ye(t)) in e ? Object.defineProperty(e, t, {
|
|
36
36
|
value: n,
|
|
37
37
|
enumerable: !0,
|
|
38
38
|
configurable: !0,
|
|
@@ -41,12 +41,12 @@ function H(e, t, n) {
|
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/classes/design/DesignChanged.ts
|
|
44
|
-
var
|
|
44
|
+
var be = class {
|
|
45
45
|
constructor(e, t = Object.keys(e)) {
|
|
46
46
|
H(this, "props", void 0), H(this, "watch", void 0), H(this, "cache", {}), this.props = e, this.watch = t;
|
|
47
47
|
}
|
|
48
48
|
is(e) {
|
|
49
|
-
return
|
|
49
|
+
return ee(e) ? !!e.find((e) => this.isDifferent(e)) : this.isDifferent(e);
|
|
50
50
|
}
|
|
51
51
|
isChanged() {
|
|
52
52
|
let e = this.props;
|
|
@@ -62,9 +62,9 @@ var ye = class {
|
|
|
62
62
|
var t, n;
|
|
63
63
|
return ((t = this.cache) == null ? void 0 : t[e]) !== ((n = this.props) == null ? void 0 : n[e]);
|
|
64
64
|
}
|
|
65
|
-
},
|
|
65
|
+
}, xe = class {
|
|
66
66
|
constructor(e, t, n) {
|
|
67
|
-
H(this, "props", void 0), H(this, "callback", void 0), H(this, "event", {}), H(this, "changed", void 0), this.props = e, this.callback = t, this.changed = new
|
|
67
|
+
H(this, "props", void 0), H(this, "callback", void 0), H(this, "event", {}), H(this, "changed", void 0), this.props = e, this.callback = t, this.changed = new be(e, n);
|
|
68
68
|
}
|
|
69
69
|
make(e) {
|
|
70
70
|
return this.makeCallback(e), this;
|
|
@@ -81,7 +81,7 @@ var ye = class {
|
|
|
81
81
|
makeCallbackItem() {
|
|
82
82
|
this.callback && this.callback(this.event);
|
|
83
83
|
}
|
|
84
|
-
},
|
|
84
|
+
}, Se = class extends xe {
|
|
85
85
|
make(e) {
|
|
86
86
|
return this.makeCallback(e).then(), this;
|
|
87
87
|
}
|
|
@@ -96,23 +96,23 @@ function U(e) {
|
|
|
96
96
|
}
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region src/functions/render/getClassName.ts
|
|
99
|
-
function
|
|
99
|
+
function Ce(e) {
|
|
100
100
|
return e && "class" in e && typeof e.class == "string" ? e.class : void 0;
|
|
101
101
|
}
|
|
102
102
|
//#endregion
|
|
103
103
|
//#region src/functions/render/getIndexForRender.ts
|
|
104
|
-
function
|
|
105
|
-
let r = t == null ? void 0 : t.id, i = t == null ? void 0 : t.index, a =
|
|
104
|
+
function we(e, t, n) {
|
|
105
|
+
let r = t == null ? void 0 : t.id, i = t == null ? void 0 : t.index, a = Ce(t), o = "";
|
|
106
106
|
if (P(e) && (o += e), n && (o += `.${n}`), i && P(i) && (o += `.${i}`), a && (o += `.${a}`), r && (o += `.${r}`), o !== "") return o;
|
|
107
107
|
}
|
|
108
108
|
//#endregion
|
|
109
109
|
//#region src/functions/ref/render.ts
|
|
110
|
-
function
|
|
110
|
+
function Te(e, t, n, r) {
|
|
111
111
|
let i = t, a = t && "key" in t;
|
|
112
112
|
return (!t || !a) && (i = {
|
|
113
113
|
...t,
|
|
114
|
-
key:
|
|
115
|
-
}),
|
|
114
|
+
key: we(e, t, r)
|
|
115
|
+
}), se(e, i, n);
|
|
116
116
|
}
|
|
117
117
|
//#endregion
|
|
118
118
|
//#region src/functions/toBind.ts
|
|
@@ -125,7 +125,7 @@ function W(e, t) {
|
|
|
125
125
|
}
|
|
126
126
|
//#endregion
|
|
127
127
|
//#region src/functions/toBinds.ts
|
|
128
|
-
function
|
|
128
|
+
function Ee(...e) {
|
|
129
129
|
let t = {};
|
|
130
130
|
return e.forEach((e) => {
|
|
131
131
|
e && (t = W(t, e));
|
|
@@ -148,7 +148,7 @@ var G = class {
|
|
|
148
148
|
if (e) {
|
|
149
149
|
e in this.caching || (this.caching[e] = I(() => this.computeModification(e)));
|
|
150
150
|
let n = this.caching[e];
|
|
151
|
-
if (n) return t ?
|
|
151
|
+
if (n) return t ? Ee(n.value, t) : n.value;
|
|
152
152
|
}
|
|
153
153
|
return t;
|
|
154
154
|
}
|
|
@@ -159,7 +159,7 @@ var G = class {
|
|
|
159
159
|
renderOne(e, t, n, r) {
|
|
160
160
|
if (this.is(e)) {
|
|
161
161
|
let i = r == null ? e : r;
|
|
162
|
-
return
|
|
162
|
+
return Te(this.get(e), this.getModification(i, t), n, i);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
renderAdd(e, t, n, r, i) {
|
|
@@ -170,15 +170,15 @@ var G = class {
|
|
|
170
170
|
let n = U((t = this.modification) == null ? void 0 : t[e]);
|
|
171
171
|
if (n && M(n)) {
|
|
172
172
|
let e = {};
|
|
173
|
-
return
|
|
173
|
+
return w(n, (t, n) => {
|
|
174
174
|
e[n] = U(t);
|
|
175
175
|
}), e;
|
|
176
176
|
}
|
|
177
177
|
return {};
|
|
178
178
|
}
|
|
179
|
-
},
|
|
179
|
+
}, De = class extends G {}, Oe = class {
|
|
180
180
|
constructor(e, t, n) {
|
|
181
|
-
H(this, "props", void 0), H(this, "options", void 0), H(this, "name", void 0), H(this, "element", R()), H(this, "refs", void 0), H(this, "components", void 0), H(this, "emits", void 0), H(this, "classes", void 0), H(this, "classesSub", void 0), H(this, "styles", void 0), H(this, "stylesSub", void 0), H(this, "attrs", void 0), H(this, "slots", void 0), H(this, "dataExpose", void 0), this.props = t, this.options = n, this.name = this.initName(e), this.refs = this.props ?
|
|
181
|
+
H(this, "props", void 0), H(this, "options", void 0), H(this, "name", void 0), H(this, "element", R()), H(this, "refs", void 0), H(this, "components", void 0), H(this, "emits", void 0), H(this, "classes", void 0), H(this, "classesSub", void 0), H(this, "styles", void 0), H(this, "stylesSub", void 0), H(this, "attrs", void 0), H(this, "slots", void 0), H(this, "dataExpose", void 0), this.props = t, this.options = n, this.name = this.initName(e), this.refs = this.props ? pe(this.props) : {}, this.components = new G(n == null ? void 0 : n.components, n == null ? void 0 : n.compMod), this.emits = n == null ? void 0 : n.emits, this.classes = I(() => this.updateClasses()), this.styles = I(() => this.updateStyles()), this.attrs = he(), this.slots = ge();
|
|
182
182
|
}
|
|
183
183
|
init() {
|
|
184
184
|
return this.classesSub = I(() => this.initClasses()), this.stylesSub = I(() => this.initStyles()), this.dataExpose = this.initExpose(), this;
|
|
@@ -226,14 +226,14 @@ var G = class {
|
|
|
226
226
|
toClassName(e) {
|
|
227
227
|
if (j(e)) {
|
|
228
228
|
let t = {};
|
|
229
|
-
return
|
|
229
|
+
return w(e, (e, n) => {
|
|
230
230
|
n.match(/\?\?/) ? t[n.replace(/\?\?/, this.getName())] = e : n.match(/\?/) ? t[n.replace(/\?/, this.getDesign())] = e : t[n] = e;
|
|
231
231
|
}), t;
|
|
232
232
|
}
|
|
233
233
|
return {};
|
|
234
234
|
}
|
|
235
235
|
initName(e) {
|
|
236
|
-
return
|
|
236
|
+
return w(e.split(".", 2), (e) => ne(e));
|
|
237
237
|
}
|
|
238
238
|
updateClasses() {
|
|
239
239
|
var e, t, n;
|
|
@@ -268,13 +268,13 @@ function K(e) {
|
|
|
268
268
|
}
|
|
269
269
|
//#endregion
|
|
270
270
|
//#region src/classes/ref/DatetimeRef.ts
|
|
271
|
-
var
|
|
271
|
+
var ke = class {
|
|
272
272
|
constructor(e, t = "date", n = u.getLocation()) {
|
|
273
|
-
H(this, "item", void 0), H(this, "type", void 0), H(this, "code", void 0), H(this, "date", void 0), H(this, "datetime", void 0), H(this, "year", R(2e3)), H(this, "month", R(1)), H(this, "day", R(1)), H(this, "hour", R(1)), H(this, "minute", R(1)), H(this, "second", R(1)), this.item = K(e), this.type = K(t), this.code = K(n), this.date = R(
|
|
274
|
-
this.date.value =
|
|
273
|
+
H(this, "item", void 0), H(this, "type", void 0), H(this, "code", void 0), H(this, "date", void 0), H(this, "datetime", void 0), H(this, "year", R(2e3)), H(this, "month", R(1)), H(this, "day", R(1)), H(this, "hour", R(1)), H(this, "minute", R(1)), H(this, "second", R(1)), this.item = K(e), this.type = K(t), this.code = K(n), this.date = R(re(this.item.value)), this.datetime = new o(this.date.value, this.type.value, this.code.value), B(this.item, (e) => {
|
|
274
|
+
this.date.value = re(e);
|
|
275
275
|
}), B(this.type, (e) => this.datetime.setType(e)), B(this.code, (e) => this.datetime.setCode(e)), B(this.date, (e) => {
|
|
276
276
|
this.datetime.setDate(e), this.updateDate();
|
|
277
|
-
}), this.datetime.setWatch(() =>
|
|
277
|
+
}), this.datetime.setWatch(() => me(this.date)), this.updateDate();
|
|
278
278
|
}
|
|
279
279
|
getItem() {
|
|
280
280
|
return this.item;
|
|
@@ -326,14 +326,14 @@ var Oe = class {
|
|
|
326
326
|
return this.getScope().run(e);
|
|
327
327
|
}
|
|
328
328
|
static getScope() {
|
|
329
|
-
return
|
|
329
|
+
return b.get("__ui:effect-scope-global__", () => ae(!0));
|
|
330
330
|
}
|
|
331
|
-
},
|
|
331
|
+
}, Ae = class extends c {
|
|
332
332
|
constructor(e, t, n = ["click"], r, i, a) {
|
|
333
333
|
let o = K(e), s = K(t);
|
|
334
334
|
super(o.value, n, r, i, a), s.value && this.setElementControl(s.value), B(o, (e) => this.setElement(e)), B(s, (e) => this.setElementControl(e));
|
|
335
335
|
}
|
|
336
|
-
},
|
|
336
|
+
}, je = class {
|
|
337
337
|
constructor(e = u.getLocation()) {
|
|
338
338
|
H(this, "flag", void 0), this.flag = I(() => new d(U(e)));
|
|
339
339
|
}
|
|
@@ -354,19 +354,28 @@ var Oe = class {
|
|
|
354
354
|
}
|
|
355
355
|
}, J = class {
|
|
356
356
|
static get() {
|
|
357
|
-
return
|
|
357
|
+
return b.get("__ui:geo-ref__", () => z(u.getItem()));
|
|
358
358
|
}
|
|
359
359
|
static getCountry() {
|
|
360
|
-
return
|
|
360
|
+
return b.get("__ui:geo-ref-country__", () => I(() => this.get().value.country));
|
|
361
361
|
}
|
|
362
362
|
static getLanguage() {
|
|
363
|
-
return
|
|
363
|
+
return b.get("__ui:geo-ref-language__", () => I(() => this.get().value.language));
|
|
364
364
|
}
|
|
365
365
|
static getStandard() {
|
|
366
|
-
return
|
|
366
|
+
return b.get("__ui:geo-ref-standard__", () => I(() => this.get().value.standard));
|
|
367
367
|
}
|
|
368
368
|
static getFirstDay() {
|
|
369
|
-
return
|
|
369
|
+
return b.get("__ui:geo-ref-first-day__", () => I(() => this.get().value.firstDay));
|
|
370
|
+
}
|
|
371
|
+
static getLocation() {
|
|
372
|
+
return b.get("__ui:geo-ref-location__", () => I(() => this.get().value.location));
|
|
373
|
+
}
|
|
374
|
+
static getLocationCountry() {
|
|
375
|
+
return b.get("__ui:geo-ref-location-country__", () => I(() => this.get().value.locationCountry));
|
|
376
|
+
}
|
|
377
|
+
static getLocationLanguage() {
|
|
378
|
+
return b.get("__ui:geo-ref-location-language__", () => I(() => this.get().value.locationLanguage));
|
|
370
379
|
}
|
|
371
380
|
static set(e) {
|
|
372
381
|
u.set(e, !0), this.get().value = u.getItem();
|
|
@@ -374,7 +383,7 @@ var Oe = class {
|
|
|
374
383
|
static setValueDefault(e) {
|
|
375
384
|
u.setValueDefault(e), this.get().value = u.getItem();
|
|
376
385
|
}
|
|
377
|
-
},
|
|
386
|
+
}, Me = class {
|
|
378
387
|
constructor(e) {
|
|
379
388
|
H(this, "location", void 0), H(this, "intl", void 0), this.location = K(e), this.intl = I(() => {
|
|
380
389
|
var e;
|
|
@@ -447,9 +456,9 @@ var Oe = class {
|
|
|
447
456
|
sort(e, t = (e, t) => [e, t]) {
|
|
448
457
|
return I(() => this.intl.value.sort([...U(e)], t));
|
|
449
458
|
}
|
|
450
|
-
},
|
|
459
|
+
}, Ne = class e {
|
|
451
460
|
constructor(e, t, n, r, i, a, o, s, c, l = 0, u = 9999999, d) {
|
|
452
|
-
H(this, "list", void 0), H(this, "focus", void 0), H(this, "highlight", void 0), H(this, "highlightLengthStart", void 0), H(this, "filterMode", void 0), H(this, "selected", void 0), H(this, "keyValue", void 0), H(this, "keyLabel", void 0), H(this, "lite", void 0), H(this, "min", void 0), H(this, "max", void 0), H(this, "parent", void 0), H(this, "subList", {}), H(this, "data", I(() =>
|
|
461
|
+
H(this, "list", void 0), H(this, "focus", void 0), H(this, "highlight", void 0), H(this, "highlightLengthStart", void 0), H(this, "filterMode", void 0), H(this, "selected", void 0), H(this, "keyValue", void 0), H(this, "keyLabel", void 0), H(this, "lite", void 0), H(this, "min", void 0), H(this, "max", void 0), H(this, "parent", void 0), H(this, "subList", {}), H(this, "data", I(() => w(U(this.list) || [], (e, t) => this.initItem(t, e)))), H(this, "liteData", I(() => {
|
|
453
462
|
if (this.isLite()) {
|
|
454
463
|
let e = [];
|
|
455
464
|
for (let t of this.data.value) {
|
|
@@ -468,7 +477,7 @@ var Oe = class {
|
|
|
468
477
|
return this.data.value;
|
|
469
478
|
})), H(this, "fullData", I(() => {
|
|
470
479
|
let e = this.getFocus(), t = this.getHighlight(), n = this.getSelected();
|
|
471
|
-
return
|
|
480
|
+
return w(this.data.value, (r) => {
|
|
472
481
|
var i, a;
|
|
473
482
|
let o = N(r.index, n);
|
|
474
483
|
return {
|
|
@@ -496,7 +505,7 @@ var Oe = class {
|
|
|
496
505
|
})), H(this, "mapItems", I(() => this.map.value.filter((e) => e.type === "item"))), H(this, "items", I(() => this.map.value.filter((e) => e.type === "item" || e.type === "group" || e.type === "menu"))), H(this, "highlightFirstItem", I(() => {
|
|
497
506
|
let e = this.getHighlight();
|
|
498
507
|
if (e && e.length >= this.getHighlightLengthStart()) {
|
|
499
|
-
let t =
|
|
508
|
+
let t = D(e, "i");
|
|
500
509
|
if (t) return this.map.value.findIndex((e) => {
|
|
501
510
|
var n, r, i;
|
|
502
511
|
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));
|
|
@@ -518,7 +527,7 @@ var Oe = class {
|
|
|
518
527
|
})), H(this, "selectedListInGroup", I(() => {
|
|
519
528
|
let e = this.getSelected();
|
|
520
529
|
return e && this.isSelected.value ? this.data.value.filter((t) => N(t.index, e)) : [];
|
|
521
|
-
})), H(this, "selectedNames", I(() =>
|
|
530
|
+
})), H(this, "selectedNames", I(() => T(this.selectedList.value, "label"))), H(this, "selectedValues", I(() => T(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, L(e) && B(e, () => {
|
|
522
531
|
this.subList = {};
|
|
523
532
|
});
|
|
524
533
|
}
|
|
@@ -655,9 +664,9 @@ var Oe = class {
|
|
|
655
664
|
value: e
|
|
656
665
|
};
|
|
657
666
|
}
|
|
658
|
-
},
|
|
667
|
+
}, Pe = "__ui:router-item-ref__", Y = class {
|
|
659
668
|
static get() {
|
|
660
|
-
return
|
|
669
|
+
return b.get(Pe);
|
|
661
670
|
}
|
|
662
671
|
static getLink(e, t, n) {
|
|
663
672
|
var r;
|
|
@@ -679,7 +688,7 @@ var Oe = class {
|
|
|
679
688
|
t && t.push(e).then();
|
|
680
689
|
}
|
|
681
690
|
static set(e) {
|
|
682
|
-
|
|
691
|
+
b.set(Pe, () => e);
|
|
683
692
|
}
|
|
684
693
|
static setOneTime(e) {
|
|
685
694
|
this.get() || this.set(e);
|
|
@@ -687,26 +696,26 @@ var Oe = class {
|
|
|
687
696
|
static rawToHref(e) {
|
|
688
697
|
return M(e) && "name" in e && P(e == null ? void 0 : e.name) ? this.getHref(e.name) : {};
|
|
689
698
|
}
|
|
690
|
-
},
|
|
699
|
+
}, Fe = class {
|
|
691
700
|
constructor() {
|
|
692
|
-
H(this, "item", R()), H(this, "width", R(0)), H(this, "is", I(() => this.item.value !== void 0)), k() && (
|
|
701
|
+
H(this, "item", R()), H(this, "width", R(0)), H(this, "is", I(() => this.item.value !== void 0)), k() && (v.is().then((e) => {
|
|
693
702
|
this.item.value = e;
|
|
694
|
-
}),
|
|
703
|
+
}), v.get().then((e) => {
|
|
695
704
|
this.width.value = e;
|
|
696
705
|
}));
|
|
697
706
|
}
|
|
698
707
|
};
|
|
699
708
|
//#endregion
|
|
700
709
|
//#region src/functions/ref/getApiErrorRef.ts
|
|
701
|
-
function
|
|
710
|
+
function Ie(e) {
|
|
702
711
|
return I(() => {
|
|
703
|
-
if (!(!e.value ||
|
|
712
|
+
if (!(!e.value || O(e.value) || !M(e.value))) return e.value.errorObject;
|
|
704
713
|
});
|
|
705
714
|
}
|
|
706
715
|
//#endregion
|
|
707
716
|
//#region src/functions/getOptions.ts
|
|
708
717
|
var X = (e) => typeof e == "string" ? { method: e } : e || {}, Z;
|
|
709
|
-
function
|
|
718
|
+
function Le(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
710
719
|
let d = R(), f = K(X(r)), p = R(!1), m = R(!1), h = R(), g, _ = !0, v, y = () => {
|
|
711
720
|
let e = U(n);
|
|
712
721
|
return !!((!a || a.value) && e);
|
|
@@ -744,9 +753,9 @@ function Ie(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
744
753
|
x(), d.value === void 0 && S().then(), l ? E() : q.run(() => E());
|
|
745
754
|
}
|
|
746
755
|
};
|
|
747
|
-
l &&
|
|
756
|
+
l && oe() && de(() => C());
|
|
748
757
|
let T = () => {
|
|
749
|
-
k() ||
|
|
758
|
+
k() || ue(async () => {
|
|
750
759
|
_ = !1, await S();
|
|
751
760
|
});
|
|
752
761
|
}, E = () => {
|
|
@@ -754,7 +763,7 @@ function Ie(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
754
763
|
i && e.push(f), L(n) && e.push(n), a && e.push(a), Z && e.push(Z), e.length > 0 && (v = B(e, async () => {
|
|
755
764
|
p.value || await S();
|
|
756
765
|
}));
|
|
757
|
-
}, D = I(() => (w(), d.value)), O =
|
|
766
|
+
}, D = I(() => (w(), d.value)), O = Ie(d), ee = I(() => Array.isArray(d.value) ? d.value.length : +!!d.value), A = I(() => d.value === void 0);
|
|
758
767
|
return {
|
|
759
768
|
data: D,
|
|
760
769
|
get item() {
|
|
@@ -766,8 +775,8 @@ function Ie(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
766
775
|
return ((e = h.value) == null ? void 0 : e.status) === "success";
|
|
767
776
|
}),
|
|
768
777
|
responseValidationResult: I(() => h.value),
|
|
769
|
-
length:
|
|
770
|
-
starting:
|
|
778
|
+
length: ee,
|
|
779
|
+
starting: A,
|
|
771
780
|
loading: p,
|
|
772
781
|
reading: m,
|
|
773
782
|
isStarting() {
|
|
@@ -789,13 +798,13 @@ function Ie(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
789
798
|
abort: () => g == null ? void 0 : g.abort()
|
|
790
799
|
};
|
|
791
800
|
}
|
|
792
|
-
var
|
|
801
|
+
var Re = (e) => {
|
|
793
802
|
Z || (Z = e);
|
|
794
803
|
};
|
|
795
804
|
//#endregion
|
|
796
805
|
//#region src/composables/ref/useApiAsyncRef.ts
|
|
797
|
-
function
|
|
798
|
-
let u =
|
|
806
|
+
function ze(t, n, r = !0, i, a, o, s, c = !0, l = e.getItem()) {
|
|
807
|
+
let u = Le(t, n, r, i, a, o, s, c, l);
|
|
799
808
|
return u.initSsr(), u;
|
|
800
809
|
}
|
|
801
810
|
//#endregion
|
|
@@ -809,7 +818,7 @@ function Q({ path: r, method: i = n.post, action: a, transformation: o, validate
|
|
|
809
818
|
try {
|
|
810
819
|
if (e && s) {
|
|
811
820
|
let t = s(e);
|
|
812
|
-
if (t && !
|
|
821
|
+
if (t && !O(t)) return t;
|
|
813
822
|
}
|
|
814
823
|
if (p.value = !0, t = await f.request({
|
|
815
824
|
path: U(r),
|
|
@@ -818,11 +827,11 @@ function Q({ path: r, method: i = n.post, action: a, transformation: o, validate
|
|
|
818
827
|
toData: u,
|
|
819
828
|
...m.value
|
|
820
829
|
}), t) {
|
|
821
|
-
if (c &&
|
|
830
|
+
if (c && O(t)) {
|
|
822
831
|
let e = c(t);
|
|
823
|
-
e && !
|
|
832
|
+
e && !O(e) && (t = e);
|
|
824
833
|
}
|
|
825
|
-
if (o &&
|
|
834
|
+
if (o && O(t) && (t = o(t)), a) {
|
|
826
835
|
let e = a(t);
|
|
827
836
|
e instanceof Promise && await e;
|
|
828
837
|
}
|
|
@@ -836,7 +845,7 @@ function Q({ path: r, method: i = n.post, action: a, transformation: o, validate
|
|
|
836
845
|
}
|
|
837
846
|
//#endregion
|
|
838
847
|
//#region src/composables/ref/useApiDelete.ts
|
|
839
|
-
function
|
|
848
|
+
function Be(e) {
|
|
840
849
|
return Q({
|
|
841
850
|
...e,
|
|
842
851
|
method: n.delete
|
|
@@ -844,7 +853,7 @@ function ze(e) {
|
|
|
844
853
|
}
|
|
845
854
|
//#endregion
|
|
846
855
|
//#region src/composables/ref/useApiGet.ts
|
|
847
|
-
function
|
|
856
|
+
function Ve(e) {
|
|
848
857
|
return Q({
|
|
849
858
|
...e,
|
|
850
859
|
method: n.get
|
|
@@ -852,7 +861,7 @@ function Be(e) {
|
|
|
852
861
|
}
|
|
853
862
|
//#endregion
|
|
854
863
|
//#region src/composables/ref/useApiPost.ts
|
|
855
|
-
function
|
|
864
|
+
function He(e) {
|
|
856
865
|
return Q({
|
|
857
866
|
...e,
|
|
858
867
|
method: n.post
|
|
@@ -860,7 +869,7 @@ function Ve(e) {
|
|
|
860
869
|
}
|
|
861
870
|
//#endregion
|
|
862
871
|
//#region src/composables/ref/useApiPut.ts
|
|
863
|
-
function
|
|
872
|
+
function Ue(e) {
|
|
864
873
|
return Q({
|
|
865
874
|
...e,
|
|
866
875
|
method: n.put
|
|
@@ -868,7 +877,7 @@ function He(e) {
|
|
|
868
877
|
}
|
|
869
878
|
//#endregion
|
|
870
879
|
//#region src/composables/ref/useFormattersRef.ts
|
|
871
|
-
function
|
|
880
|
+
function We(e, t) {
|
|
872
881
|
let n = new l(t);
|
|
873
882
|
return {
|
|
874
883
|
listFormat: I(() => n.setList(e.value).to()),
|
|
@@ -877,7 +886,7 @@ function Ue(e, t) {
|
|
|
877
886
|
}
|
|
878
887
|
//#endregion
|
|
879
888
|
//#region src/composables/ref/useSearchValueRef.ts
|
|
880
|
-
function
|
|
889
|
+
function Ge(e, t) {
|
|
881
890
|
let n = t == null ? R("") : t, r = R(n.value), i = R(!1), a;
|
|
882
891
|
return B(n, (t, o, s) => {
|
|
883
892
|
let c = e.getOptions().getDelay();
|
|
@@ -894,8 +903,8 @@ function We(e, t) {
|
|
|
894
903
|
}
|
|
895
904
|
//#endregion
|
|
896
905
|
//#region src/composables/ref/useSearchRef.ts
|
|
897
|
-
function
|
|
898
|
-
let i = new
|
|
906
|
+
function Ke(e, t, n, r) {
|
|
907
|
+
let i = new y(void 0, t, void 0, r), { search: a, searchDelay: o, loading: s } = Ge(i, n), c = () => U(S(e)) || [], l = I(() => i.setValue(o.value).getItem().isSearch()), u = I(() => i.setList(c()).setValue(o.value).to());
|
|
899
908
|
return {
|
|
900
909
|
isSearch: l,
|
|
901
910
|
search: a,
|
|
@@ -906,33 +915,33 @@ function Ge(e, t, n, r) {
|
|
|
906
915
|
}
|
|
907
916
|
//#endregion
|
|
908
917
|
//#region src/composables/ref/useApiManagementRef.ts
|
|
909
|
-
function
|
|
910
|
-
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,
|
|
911
|
-
if (t && (v =
|
|
918
|
+
function qe(e, t, n, r, i, a, o, s) {
|
|
919
|
+
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, w = Le(c, l, u, d, f, p, m, g, s), T = I(() => h === void 0 ? !0 : w.isStarting() ? !1 : A(h) ? h(w.data.value) : w.data.value instanceof h), E = I(() => w.isStarting() && _ ? _() : w.data.value);
|
|
920
|
+
if (t && (v = We(E, t)), n && (y = Ke(I(() => {
|
|
912
921
|
var e;
|
|
913
922
|
let t = (e = v == null ? void 0 : v.listFormat.value) == null ? w.data.value : e;
|
|
914
923
|
if (Array.isArray(t)) return t;
|
|
915
924
|
}), n.columns, n.value, n.options)), r || i || a) {
|
|
916
925
|
let e = (e) => {
|
|
917
|
-
o == null || o(),
|
|
926
|
+
o == null || o(), O(e) && w.reset().then();
|
|
918
927
|
}, t = (t) => async (n) => {
|
|
919
|
-
A(t) && await
|
|
928
|
+
A(t) && await C(t(n)), e(n);
|
|
920
929
|
};
|
|
921
|
-
r && (b =
|
|
930
|
+
r && (b = He({
|
|
922
931
|
...r,
|
|
923
932
|
action: t(r.action),
|
|
924
933
|
apiInstance: s
|
|
925
|
-
})), i && (x =
|
|
934
|
+
})), i && (x = Ue({
|
|
926
935
|
...i,
|
|
927
936
|
action: t(i.action),
|
|
928
937
|
apiInstance: s
|
|
929
|
-
})), a && (
|
|
938
|
+
})), a && (S = Be({
|
|
930
939
|
...a,
|
|
931
940
|
action: t(a.action),
|
|
932
941
|
apiInstance: s
|
|
933
942
|
}));
|
|
934
943
|
}
|
|
935
|
-
let
|
|
944
|
+
let D = I(() => {
|
|
936
945
|
if (T.value) {
|
|
937
946
|
if (y && Array.isArray(w.data.value)) return y.listSearch.value;
|
|
938
947
|
if (v) return v.listFormat.value;
|
|
@@ -943,7 +952,7 @@ function Ke(e, t, n, r, i, a, o, s) {
|
|
|
943
952
|
isValid: T,
|
|
944
953
|
isResponseContractValid: w.isResponseContractValid,
|
|
945
954
|
responseValidationResult: w.responseValidationResult,
|
|
946
|
-
list:
|
|
955
|
+
list: D,
|
|
947
956
|
get data() {
|
|
948
957
|
return w.data;
|
|
949
958
|
},
|
|
@@ -958,7 +967,7 @@ function Ke(e, t, n, r, i, a, o, s) {
|
|
|
958
967
|
loadingSearch: y == null ? void 0 : y.loading,
|
|
959
968
|
loadingPost: b == null ? void 0 : b.loading,
|
|
960
969
|
loadingPut: x == null ? void 0 : x.loading,
|
|
961
|
-
loadingDelete:
|
|
970
|
+
loadingDelete: S == null ? void 0 : S.loading,
|
|
962
971
|
isSearch: y == null ? void 0 : y.isSearch,
|
|
963
972
|
search: y == null ? void 0 : y.search,
|
|
964
973
|
init: w.init,
|
|
@@ -967,22 +976,22 @@ function Ke(e, t, n, r, i, a, o, s) {
|
|
|
967
976
|
abort: w.abort,
|
|
968
977
|
sendPost: async (e) => await (b == null ? void 0 : b.send(e)),
|
|
969
978
|
sendPut: async (e) => await (x == null ? void 0 : x.send(e)),
|
|
970
|
-
sendDelete: async (e) => await (
|
|
979
|
+
sendDelete: async (e) => await (S == null ? void 0 : S.send(e))
|
|
971
980
|
};
|
|
972
981
|
}
|
|
973
982
|
//#endregion
|
|
974
983
|
//#region src/composables/ref/useApiManagementAsyncRef.ts
|
|
975
|
-
function
|
|
976
|
-
let c =
|
|
984
|
+
function Je(e, t, n, r, i, a, o, s) {
|
|
985
|
+
let c = qe(e, t, n, r, i, a, o, s);
|
|
977
986
|
return c.initSsr(), c;
|
|
978
987
|
}
|
|
979
988
|
//#endregion
|
|
980
989
|
//#region src/composables/ref/useBroadcastValueRef.ts
|
|
981
|
-
var
|
|
982
|
-
function
|
|
983
|
-
let n = `broadcast--${e}`, i =
|
|
990
|
+
var Ye = () => b.get("__ui:broadcast-value-ref__", () => ({}));
|
|
991
|
+
function Xe(e, t) {
|
|
992
|
+
let n = `broadcast--${e}`, i = Ye();
|
|
984
993
|
if (n in i) return i[n];
|
|
985
|
-
let a = R(
|
|
994
|
+
let a = R(S(t));
|
|
986
995
|
if (k()) {
|
|
987
996
|
let e = new r(n, (e) => {
|
|
988
997
|
a.value !== e.data.message && (a.value = e.data.message);
|
|
@@ -995,11 +1004,11 @@ function Ye(e, t) {
|
|
|
995
1004
|
}
|
|
996
1005
|
//#endregion
|
|
997
1006
|
//#region src/composables/ref/useCookieRef.ts
|
|
998
|
-
var
|
|
999
|
-
function
|
|
1000
|
-
let r =
|
|
1007
|
+
var Ze = () => b.get("__ui:cookie-ref__", () => ({}));
|
|
1008
|
+
function Qe(e, t, n) {
|
|
1009
|
+
let r = Ze();
|
|
1001
1010
|
if (e in r) return r[e];
|
|
1002
|
-
let a = new i(e), o =
|
|
1011
|
+
let a = new i(e), o = Xe(`__cookie:${e}`, a.get(t, n));
|
|
1003
1012
|
return q.run(() => {
|
|
1004
1013
|
B(o, (e) => {
|
|
1005
1014
|
a.set(e, n);
|
|
@@ -1008,14 +1017,14 @@ function Ze(e, t, n) {
|
|
|
1008
1017
|
}
|
|
1009
1018
|
//#endregion
|
|
1010
1019
|
//#region src/composables/ref/useGeoIntlRef.ts
|
|
1011
|
-
function
|
|
1012
|
-
return new
|
|
1020
|
+
function $e() {
|
|
1021
|
+
return new Me();
|
|
1013
1022
|
}
|
|
1014
1023
|
//#endregion
|
|
1015
1024
|
//#region src/composables/ref/useHashRef.ts
|
|
1016
|
-
var
|
|
1017
|
-
function
|
|
1018
|
-
let n =
|
|
1025
|
+
var et = () => b.get("__ui:hash-ref__", () => ({}));
|
|
1026
|
+
function tt(e, t) {
|
|
1027
|
+
let n = et();
|
|
1019
1028
|
if (e in n) return n[e];
|
|
1020
1029
|
let r = z(p.get(e, t));
|
|
1021
1030
|
return k() && (q.run(() => {
|
|
@@ -1026,10 +1035,10 @@ function et(e, t) {
|
|
|
1026
1035
|
}
|
|
1027
1036
|
//#endregion
|
|
1028
1037
|
//#region src/composables/ref/useLazyRef.ts
|
|
1029
|
-
var
|
|
1038
|
+
var nt = (e = { rootMargin: "128px 0px" }) => {
|
|
1030
1039
|
let t = {}, n = k() && "IntersectionObserver" in window ? new IntersectionObserver((e) => {
|
|
1031
1040
|
e.forEach((e) => {
|
|
1032
|
-
let n =
|
|
1041
|
+
let n = E(e.target);
|
|
1033
1042
|
if (n in t) {
|
|
1034
1043
|
let r = t[n];
|
|
1035
1044
|
r.status.value = e.isIntersecting, r.ratio.value = e.intersectionRatio, r.entry.value = e;
|
|
@@ -1037,7 +1046,7 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1037
1046
|
});
|
|
1038
1047
|
}, e) : void 0, r = (e) => {
|
|
1039
1048
|
if (e) {
|
|
1040
|
-
let i =
|
|
1049
|
+
let i = E(e);
|
|
1041
1050
|
if (i in t) {
|
|
1042
1051
|
var r;
|
|
1043
1052
|
n == null || n.unobserve(e), (r = t[i]) == null || r.stopWatch(), delete t[i];
|
|
@@ -1047,7 +1056,7 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1047
1056
|
return {
|
|
1048
1057
|
intersectionObserver: n,
|
|
1049
1058
|
getItem(e) {
|
|
1050
|
-
return t[
|
|
1059
|
+
return t[E(e)];
|
|
1051
1060
|
},
|
|
1052
1061
|
addLazyItem(e) {
|
|
1053
1062
|
let i = z(!n);
|
|
@@ -1055,7 +1064,7 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1055
1064
|
let a;
|
|
1056
1065
|
a = B(e, (o, s) => {
|
|
1057
1066
|
if (s && r(s), e.value) {
|
|
1058
|
-
let r =
|
|
1067
|
+
let r = E(e.value);
|
|
1059
1068
|
t[r] = {
|
|
1060
1069
|
status: i,
|
|
1061
1070
|
ratio: z(0),
|
|
@@ -1070,16 +1079,16 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1070
1079
|
removeLazyItem: r,
|
|
1071
1080
|
disconnectLazy: () => n == null ? void 0 : n.disconnect()
|
|
1072
1081
|
};
|
|
1073
|
-
},
|
|
1074
|
-
let t =
|
|
1082
|
+
}, rt = () => b.get("__ui:lazy-item-by-margin-ref__", () => []), it = (e) => {
|
|
1083
|
+
let t = rt(), n = t.find((t) => t.rootMargin === e);
|
|
1075
1084
|
if (n) return n.item;
|
|
1076
|
-
let r =
|
|
1085
|
+
let r = nt({ rootMargin: e });
|
|
1077
1086
|
return t.push({
|
|
1078
1087
|
rootMargin: e,
|
|
1079
1088
|
item: r
|
|
1080
1089
|
}), r;
|
|
1081
|
-
},
|
|
1082
|
-
let n =
|
|
1090
|
+
}, at = (e, t) => {
|
|
1091
|
+
let n = it(t);
|
|
1083
1092
|
return {
|
|
1084
1093
|
lazyItemStatus: n.addLazyItem(e),
|
|
1085
1094
|
get lazyItem() {
|
|
@@ -1089,7 +1098,7 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1089
1098
|
};
|
|
1090
1099
|
//#endregion
|
|
1091
1100
|
//#region src/composables/ref/useLoadingRef.ts
|
|
1092
|
-
function
|
|
1101
|
+
function ot() {
|
|
1093
1102
|
let e = z(h.is());
|
|
1094
1103
|
return k() && h.registrationEvent(({ detail: t }) => {
|
|
1095
1104
|
e.value = t.loading;
|
|
@@ -1097,11 +1106,11 @@ function at() {
|
|
|
1097
1106
|
}
|
|
1098
1107
|
//#endregion
|
|
1099
1108
|
//#region src/functions/executeUse.ts
|
|
1100
|
-
var
|
|
1109
|
+
var st = /* @__PURE__ */ function(e) {
|
|
1101
1110
|
return e.global = "global", e.provide = "provide", e.local = "local", e;
|
|
1102
|
-
}({}),
|
|
1111
|
+
}({}), ct = 1, lt = te(1e5, 999999), ut = () => `__execute_use${lt}::${ct++}`, dt = () => b.get("__ui:execute-use-global__", () => []);
|
|
1103
1112
|
function $(e, t = "provide") {
|
|
1104
|
-
let n =
|
|
1113
|
+
let n = ut(), r, i = (t) => {
|
|
1105
1114
|
let n = Object.freeze(e(...t));
|
|
1106
1115
|
return {
|
|
1107
1116
|
...n,
|
|
@@ -1111,7 +1120,7 @@ function $(e, t = "provide") {
|
|
|
1111
1120
|
};
|
|
1112
1121
|
}, a = (e) => {
|
|
1113
1122
|
let t = Object.freeze(i(e));
|
|
1114
|
-
return
|
|
1123
|
+
return fe(n, t), t;
|
|
1115
1124
|
}, o = (e) => {
|
|
1116
1125
|
let t = i(e);
|
|
1117
1126
|
return Object.freeze({
|
|
@@ -1120,26 +1129,26 @@ function $(e, t = "provide") {
|
|
|
1120
1129
|
r = void 0;
|
|
1121
1130
|
}
|
|
1122
1131
|
});
|
|
1123
|
-
}, s = (...e) => t === "provide" ?
|
|
1132
|
+
}, s = (...e) => t === "provide" ? le(n, void 0) || a(e) : (r || q.run(() => {
|
|
1124
1133
|
r = o(e);
|
|
1125
1134
|
}), r);
|
|
1126
|
-
return t === "global" &&
|
|
1135
|
+
return t === "global" && dt().push(s), s;
|
|
1127
1136
|
}
|
|
1128
|
-
function
|
|
1137
|
+
function ft(e) {
|
|
1129
1138
|
return $(e, "global");
|
|
1130
1139
|
}
|
|
1131
|
-
function
|
|
1140
|
+
function pt(e) {
|
|
1132
1141
|
return $(e, "provide");
|
|
1133
1142
|
}
|
|
1134
|
-
function
|
|
1143
|
+
function mt(e) {
|
|
1135
1144
|
return $(e, "local");
|
|
1136
1145
|
}
|
|
1137
|
-
function
|
|
1138
|
-
|
|
1146
|
+
function ht() {
|
|
1147
|
+
dt().forEach((e) => e());
|
|
1139
1148
|
}
|
|
1140
1149
|
//#endregion
|
|
1141
1150
|
//#region src/composables/ref/useMeta.ts
|
|
1142
|
-
var
|
|
1151
|
+
var gt = mt(() => {
|
|
1143
1152
|
let e = g, t = R(e.getTitle()), n = R(e.getKeywords()), r = R(e.getDescription()), i = R(e.getImage()), a = R(e.getCanonical()), o = R(e.getRobots()), s = R(e.getAuthor()), c = R(e.getSiteName()), l = () => e.html(), u = (e) => {
|
|
1144
1153
|
t.value = e, x();
|
|
1145
1154
|
}, d = (e) => {
|
|
@@ -1196,7 +1205,20 @@ var ht = pt(() => {
|
|
|
1196
1205
|
setSiteName: v,
|
|
1197
1206
|
setSuffix: (t) => e.setSuffix(t)
|
|
1198
1207
|
};
|
|
1199
|
-
}),
|
|
1208
|
+
}), _t = () => gt(), vt = () => b.get("__ui:query-ref__", () => ({}));
|
|
1209
|
+
function yt(e, t) {
|
|
1210
|
+
let n = vt();
|
|
1211
|
+
if (e in n) return n[e];
|
|
1212
|
+
let r = z(_.get(e, t));
|
|
1213
|
+
return k() && (q.run(() => {
|
|
1214
|
+
B(r, (t) => _.set(e, t));
|
|
1215
|
+
}), _.addWatch(e, (e) => {
|
|
1216
|
+
r.value = e;
|
|
1217
|
+
})), n[e] = r, r;
|
|
1218
|
+
}
|
|
1219
|
+
//#endregion
|
|
1220
|
+
//#region src/composables/ref/useRouterList.ts
|
|
1221
|
+
var bt = (e, t, n = !0) => {
|
|
1200
1222
|
var r;
|
|
1201
1223
|
let i = L(t) ? t : R(t || ((r = e.value) == null || (r = r[0]) == null ? void 0 : r.value) || ""), a = () => o(i.value), o = (t) => {
|
|
1202
1224
|
var n;
|
|
@@ -1211,7 +1233,7 @@ var ht = pt(() => {
|
|
|
1211
1233
|
var e;
|
|
1212
1234
|
return ((e = a()) == null ? void 0 : e.label) || "";
|
|
1213
1235
|
}),
|
|
1214
|
-
list: I(() => e.value ?
|
|
1236
|
+
list: I(() => e.value ? w(e.value, (e) => n && !("to" in e) ? {
|
|
1215
1237
|
...e,
|
|
1216
1238
|
to: { name: e.value }
|
|
1217
1239
|
} : e) : []),
|
|
@@ -1221,9 +1243,9 @@ var ht = pt(() => {
|
|
|
1221
1243
|
s((t = e.value) == null || (t = t[0]) == null ? void 0 : t.value);
|
|
1222
1244
|
}
|
|
1223
1245
|
};
|
|
1224
|
-
},
|
|
1225
|
-
function
|
|
1226
|
-
let n =
|
|
1246
|
+
}, xt = () => b.get("__ui:session-ref__", () => ({}));
|
|
1247
|
+
function St(e, t) {
|
|
1248
|
+
let n = xt();
|
|
1227
1249
|
if (e in n) return n[e];
|
|
1228
1250
|
let r = new a(e, !0), i = R(r.get(t));
|
|
1229
1251
|
return q.run(() => {
|
|
@@ -1232,9 +1254,9 @@ function yt(e, t) {
|
|
|
1232
1254
|
}
|
|
1233
1255
|
//#endregion
|
|
1234
1256
|
//#region src/composables/ref/useStorageRef.ts
|
|
1235
|
-
var
|
|
1236
|
-
function
|
|
1237
|
-
let r =
|
|
1257
|
+
var Ct = () => b.get("__ui:storage-ref__", () => ({}));
|
|
1258
|
+
function wt(e, t, n) {
|
|
1259
|
+
let r = Ct();
|
|
1238
1260
|
if (e in r) return r[e];
|
|
1239
1261
|
let i = new a(e), o = R(i.get(t, n));
|
|
1240
1262
|
return q.run(() => {
|
|
@@ -1245,7 +1267,7 @@ function xt(e, t, n) {
|
|
|
1245
1267
|
}
|
|
1246
1268
|
//#endregion
|
|
1247
1269
|
//#region src/composables/ref/useTranslateRef.ts
|
|
1248
|
-
function
|
|
1270
|
+
function Tt(e, t = x.getItem()) {
|
|
1249
1271
|
let n = z(t.getListSync(e, !0)), r = async () => {
|
|
1250
1272
|
n.value = { ...await t.getList(e) };
|
|
1251
1273
|
};
|
|
@@ -1258,38 +1280,38 @@ function St(e, t = b.getItem()) {
|
|
|
1258
1280
|
}
|
|
1259
1281
|
return n;
|
|
1260
1282
|
}
|
|
1261
|
-
var
|
|
1283
|
+
var Et = (e) => Tt(e);
|
|
1262
1284
|
//#endregion
|
|
1263
1285
|
//#region src/functions/computedAsync.ts
|
|
1264
|
-
function
|
|
1265
|
-
let i = z(
|
|
1266
|
-
let t = await
|
|
1286
|
+
function Dt(e, t, n, r) {
|
|
1287
|
+
let i = z(S(t)), a = !0, o = async () => {
|
|
1288
|
+
let t = await C(e);
|
|
1267
1289
|
t !== n && (i.value = t);
|
|
1268
1290
|
}, s = () => {
|
|
1269
|
-
a && (a = !1, k() ?
|
|
1291
|
+
a && (a = !1, k() ? _e(o) : o().then());
|
|
1270
1292
|
};
|
|
1271
1293
|
return I(() => (s(), i.value), r);
|
|
1272
1294
|
}
|
|
1273
1295
|
//#endregion
|
|
1274
1296
|
//#region src/functions/computedByLanguage.ts
|
|
1275
|
-
function
|
|
1297
|
+
function Ot(e, t = () => void 0, n, r) {
|
|
1276
1298
|
return I(() => {
|
|
1277
1299
|
if (J.get().value && (n === void 0 || n())) {
|
|
1278
1300
|
let t = e();
|
|
1279
1301
|
if (t !== void 0) return t;
|
|
1280
1302
|
}
|
|
1281
|
-
return
|
|
1303
|
+
return S(t);
|
|
1282
1304
|
}, r);
|
|
1283
1305
|
}
|
|
1284
1306
|
//#endregion
|
|
1285
1307
|
//#region src/functions/computedEternity.ts
|
|
1286
|
-
function
|
|
1287
|
-
return
|
|
1288
|
-
let i = z(
|
|
1289
|
-
i.value = await
|
|
1308
|
+
function kt(e, t) {
|
|
1309
|
+
return ie((n, r) => {
|
|
1310
|
+
let i = z(S(t)), a = !1, o = async () => {
|
|
1311
|
+
i.value = await C(e), r();
|
|
1290
1312
|
}, s = () => {
|
|
1291
1313
|
a || (a = !0, k() ? q.run(() => {
|
|
1292
|
-
|
|
1314
|
+
_e(async () => await o());
|
|
1293
1315
|
}) : o().then());
|
|
1294
1316
|
};
|
|
1295
1317
|
return {
|
|
@@ -1304,42 +1326,42 @@ function Et(e, t) {
|
|
|
1304
1326
|
}
|
|
1305
1327
|
//#endregion
|
|
1306
1328
|
//#region src/functions/dxtFunctionalPlugin.ts
|
|
1307
|
-
var
|
|
1308
|
-
if (n.api && e.setConfig(n.api), n.translate &&
|
|
1329
|
+
var At = { install(t, n = {}) {
|
|
1330
|
+
if (n.api && e.setConfig(n.api), n.translate && x.setConfig(n.translate), n.location && J.setValueDefault(n.location), n.icons && m.setConfig(n.icons), n.metaSuffix && _t().setSuffix(n.metaSuffix), n.router) Y.set(n.router);
|
|
1309
1331
|
else {
|
|
1310
1332
|
let e = t.config.globalProperties.$router;
|
|
1311
1333
|
e && Y.set(e);
|
|
1312
1334
|
}
|
|
1313
|
-
n.errorCauses && s.addList(n.errorCauses), n.errorHandlers && s.addHandlerList(n.errorHandlers),
|
|
1335
|
+
n.errorCauses && s.addList(n.errorCauses), n.errorHandlers && s.addHandlerList(n.errorHandlers), ht();
|
|
1314
1336
|
} };
|
|
1315
1337
|
//#endregion
|
|
1316
1338
|
//#region src/functions/getInject.ts
|
|
1317
|
-
function
|
|
1318
|
-
if (
|
|
1319
|
-
let t =
|
|
1339
|
+
function jt(e) {
|
|
1340
|
+
if (ce()) {
|
|
1341
|
+
let t = le(e);
|
|
1320
1342
|
if (t) return t;
|
|
1321
1343
|
}
|
|
1322
1344
|
}
|
|
1323
1345
|
//#endregion
|
|
1324
1346
|
//#region src/functions/ref/executeFunctionRef.ts
|
|
1325
|
-
function
|
|
1326
|
-
return U(
|
|
1347
|
+
function Mt(e) {
|
|
1348
|
+
return U(S(e));
|
|
1327
1349
|
}
|
|
1328
1350
|
//#endregion
|
|
1329
1351
|
//#region src/functions/render/getBind.ts
|
|
1330
|
-
function
|
|
1352
|
+
function Nt(e, t = {}, n = "value", r = !1) {
|
|
1331
1353
|
let i = typeof t == "string", a = i ? t : n, o = i ? {} : t;
|
|
1332
1354
|
return e ? e && M(e) && (a in e || r) ? W(o, e) : W(o, { [a]: e }) : i ? {} : { ...o };
|
|
1333
1355
|
}
|
|
1334
1356
|
//#endregion
|
|
1335
1357
|
//#region src/functions/ref/getBindRef.ts
|
|
1336
|
-
function
|
|
1337
|
-
return I(() =>
|
|
1358
|
+
function Pt(e, t = {}, n = "value") {
|
|
1359
|
+
return I(() => Nt(U(e), U(t), n));
|
|
1338
1360
|
}
|
|
1339
1361
|
//#endregion
|
|
1340
1362
|
//#region src/functions/ref/setRef.ts
|
|
1341
|
-
function
|
|
1363
|
+
function Ft(e, t) {
|
|
1342
1364
|
e.value !== t && (e.value = t);
|
|
1343
1365
|
}
|
|
1344
1366
|
//#endregion
|
|
1345
|
-
export {
|
|
1367
|
+
export { ke as DatetimeRef, xe as DesignAbstract, Se as DesignAsyncAbstract, be as DesignChanged, De as DesignComp, G as DesignComponents, Oe as DesignConstructorAbstract, q as EffectScopeGlobal, Ae as EventRef, st as ExecuteUseType, je as GeoFlagRef, Me as GeoIntlRef, J as GeoRef, Ne as ListDataRef, Y as RouterItemRef, Fe as ScrollbarWidthRef, Dt as computedAsync, Ot as computedByLanguage, kt as computedEternity, At as dxtFunctionalPlugin, Mt as executeFunctionRef, $ as executeUse, ft as executeUseGlobal, ht as executeUseGlobalInit, mt as executeUseLocal, pt as executeUseProvide, Ie as getApiErrorRef, Nt as getBind, Pt as getBindRef, Ce as getClassName, we as getIndexForRender, jt as getInject, X as getOptions, U as getRef, Te as render, Re as setApiRefGlobalConditions, Ft as setRef, Et as t, W as toBind, Ee as toBinds, K as toRefItem, ze as useApiAsyncRef, Be as useApiDelete, Ve as useApiGet, Je as useApiManagementAsyncRef, qe as useApiManagementRef, He as useApiPost, Ue as useApiPut, Le as useApiRef, Q as useApiRequest, Xe as useBroadcastValueRef, Qe as useCookieRef, We as useFormattersRef, $e as useGeoIntlRef, tt as useHashRef, at as useLazyItemByMarginRef, nt as useLazyRef, ot as useLoadingRef, _t as useMeta, yt as useQueryRef, bt as useRouterList, Ke as useSearchRef, Ge as useSearchValueRef, St as useSessionRef, wt as useStorageRef, Tt as useTranslateRef };
|