@dxtmisha/functional 1.13.7 → 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 +9 -0
- package/ai-description.md +11 -13
- package/ai-types.md +28 -210
- package/dist/library.js +172 -159
- package/dist/src/composables/ref/useQueryRef.d.ts +9 -0
- package/dist/src/library.d.ts +1 -0
- package/package.json +1 -1
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,28 +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
370
|
}
|
|
371
371
|
static getLocation() {
|
|
372
|
-
return
|
|
372
|
+
return b.get("__ui:geo-ref-location__", () => I(() => this.get().value.location));
|
|
373
373
|
}
|
|
374
374
|
static getLocationCountry() {
|
|
375
|
-
return
|
|
375
|
+
return b.get("__ui:geo-ref-location-country__", () => I(() => this.get().value.locationCountry));
|
|
376
376
|
}
|
|
377
377
|
static getLocationLanguage() {
|
|
378
|
-
return
|
|
378
|
+
return b.get("__ui:geo-ref-location-language__", () => I(() => this.get().value.locationLanguage));
|
|
379
379
|
}
|
|
380
380
|
static set(e) {
|
|
381
381
|
u.set(e, !0), this.get().value = u.getItem();
|
|
@@ -383,7 +383,7 @@ var Oe = class {
|
|
|
383
383
|
static setValueDefault(e) {
|
|
384
384
|
u.setValueDefault(e), this.get().value = u.getItem();
|
|
385
385
|
}
|
|
386
|
-
},
|
|
386
|
+
}, Me = class {
|
|
387
387
|
constructor(e) {
|
|
388
388
|
H(this, "location", void 0), H(this, "intl", void 0), this.location = K(e), this.intl = I(() => {
|
|
389
389
|
var e;
|
|
@@ -456,9 +456,9 @@ var Oe = class {
|
|
|
456
456
|
sort(e, t = (e, t) => [e, t]) {
|
|
457
457
|
return I(() => this.intl.value.sort([...U(e)], t));
|
|
458
458
|
}
|
|
459
|
-
},
|
|
459
|
+
}, Ne = class e {
|
|
460
460
|
constructor(e, t, n, r, i, a, o, s, c, l = 0, u = 9999999, d) {
|
|
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(() =>
|
|
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(() => {
|
|
462
462
|
if (this.isLite()) {
|
|
463
463
|
let e = [];
|
|
464
464
|
for (let t of this.data.value) {
|
|
@@ -477,7 +477,7 @@ var Oe = class {
|
|
|
477
477
|
return this.data.value;
|
|
478
478
|
})), H(this, "fullData", I(() => {
|
|
479
479
|
let e = this.getFocus(), t = this.getHighlight(), n = this.getSelected();
|
|
480
|
-
return
|
|
480
|
+
return w(this.data.value, (r) => {
|
|
481
481
|
var i, a;
|
|
482
482
|
let o = N(r.index, n);
|
|
483
483
|
return {
|
|
@@ -505,7 +505,7 @@ var Oe = class {
|
|
|
505
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(() => {
|
|
506
506
|
let e = this.getHighlight();
|
|
507
507
|
if (e && e.length >= this.getHighlightLengthStart()) {
|
|
508
|
-
let t =
|
|
508
|
+
let t = D(e, "i");
|
|
509
509
|
if (t) return this.map.value.findIndex((e) => {
|
|
510
510
|
var n, r, i;
|
|
511
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));
|
|
@@ -527,7 +527,7 @@ var Oe = class {
|
|
|
527
527
|
})), H(this, "selectedListInGroup", I(() => {
|
|
528
528
|
let e = this.getSelected();
|
|
529
529
|
return e && this.isSelected.value ? this.data.value.filter((t) => N(t.index, e)) : [];
|
|
530
|
-
})), 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, () => {
|
|
531
531
|
this.subList = {};
|
|
532
532
|
});
|
|
533
533
|
}
|
|
@@ -664,9 +664,9 @@ var Oe = class {
|
|
|
664
664
|
value: e
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
|
-
},
|
|
667
|
+
}, Pe = "__ui:router-item-ref__", Y = class {
|
|
668
668
|
static get() {
|
|
669
|
-
return
|
|
669
|
+
return b.get(Pe);
|
|
670
670
|
}
|
|
671
671
|
static getLink(e, t, n) {
|
|
672
672
|
var r;
|
|
@@ -688,7 +688,7 @@ var Oe = class {
|
|
|
688
688
|
t && t.push(e).then();
|
|
689
689
|
}
|
|
690
690
|
static set(e) {
|
|
691
|
-
|
|
691
|
+
b.set(Pe, () => e);
|
|
692
692
|
}
|
|
693
693
|
static setOneTime(e) {
|
|
694
694
|
this.get() || this.set(e);
|
|
@@ -696,26 +696,26 @@ var Oe = class {
|
|
|
696
696
|
static rawToHref(e) {
|
|
697
697
|
return M(e) && "name" in e && P(e == null ? void 0 : e.name) ? this.getHref(e.name) : {};
|
|
698
698
|
}
|
|
699
|
-
},
|
|
699
|
+
}, Fe = class {
|
|
700
700
|
constructor() {
|
|
701
|
-
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) => {
|
|
702
702
|
this.item.value = e;
|
|
703
|
-
}),
|
|
703
|
+
}), v.get().then((e) => {
|
|
704
704
|
this.width.value = e;
|
|
705
705
|
}));
|
|
706
706
|
}
|
|
707
707
|
};
|
|
708
708
|
//#endregion
|
|
709
709
|
//#region src/functions/ref/getApiErrorRef.ts
|
|
710
|
-
function
|
|
710
|
+
function Ie(e) {
|
|
711
711
|
return I(() => {
|
|
712
|
-
if (!(!e.value ||
|
|
712
|
+
if (!(!e.value || O(e.value) || !M(e.value))) return e.value.errorObject;
|
|
713
713
|
});
|
|
714
714
|
}
|
|
715
715
|
//#endregion
|
|
716
716
|
//#region src/functions/getOptions.ts
|
|
717
717
|
var X = (e) => typeof e == "string" ? { method: e } : e || {}, Z;
|
|
718
|
-
function
|
|
718
|
+
function Le(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
719
719
|
let d = R(), f = K(X(r)), p = R(!1), m = R(!1), h = R(), g, _ = !0, v, y = () => {
|
|
720
720
|
let e = U(n);
|
|
721
721
|
return !!((!a || a.value) && e);
|
|
@@ -753,9 +753,9 @@ function Ie(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
753
753
|
x(), d.value === void 0 && S().then(), l ? E() : q.run(() => E());
|
|
754
754
|
}
|
|
755
755
|
};
|
|
756
|
-
l &&
|
|
756
|
+
l && oe() && de(() => C());
|
|
757
757
|
let T = () => {
|
|
758
|
-
k() ||
|
|
758
|
+
k() || ue(async () => {
|
|
759
759
|
_ = !1, await S();
|
|
760
760
|
});
|
|
761
761
|
}, E = () => {
|
|
@@ -763,7 +763,7 @@ function Ie(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
763
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 () => {
|
|
764
764
|
p.value || await S();
|
|
765
765
|
}));
|
|
766
|
-
}, 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);
|
|
767
767
|
return {
|
|
768
768
|
data: D,
|
|
769
769
|
get item() {
|
|
@@ -775,8 +775,8 @@ function Ie(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
775
775
|
return ((e = h.value) == null ? void 0 : e.status) === "success";
|
|
776
776
|
}),
|
|
777
777
|
responseValidationResult: I(() => h.value),
|
|
778
|
-
length:
|
|
779
|
-
starting:
|
|
778
|
+
length: ee,
|
|
779
|
+
starting: A,
|
|
780
780
|
loading: p,
|
|
781
781
|
reading: m,
|
|
782
782
|
isStarting() {
|
|
@@ -798,13 +798,13 @@ function Ie(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
798
798
|
abort: () => g == null ? void 0 : g.abort()
|
|
799
799
|
};
|
|
800
800
|
}
|
|
801
|
-
var
|
|
801
|
+
var Re = (e) => {
|
|
802
802
|
Z || (Z = e);
|
|
803
803
|
};
|
|
804
804
|
//#endregion
|
|
805
805
|
//#region src/composables/ref/useApiAsyncRef.ts
|
|
806
|
-
function
|
|
807
|
-
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);
|
|
808
808
|
return u.initSsr(), u;
|
|
809
809
|
}
|
|
810
810
|
//#endregion
|
|
@@ -818,7 +818,7 @@ function Q({ path: r, method: i = n.post, action: a, transformation: o, validate
|
|
|
818
818
|
try {
|
|
819
819
|
if (e && s) {
|
|
820
820
|
let t = s(e);
|
|
821
|
-
if (t && !
|
|
821
|
+
if (t && !O(t)) return t;
|
|
822
822
|
}
|
|
823
823
|
if (p.value = !0, t = await f.request({
|
|
824
824
|
path: U(r),
|
|
@@ -827,11 +827,11 @@ function Q({ path: r, method: i = n.post, action: a, transformation: o, validate
|
|
|
827
827
|
toData: u,
|
|
828
828
|
...m.value
|
|
829
829
|
}), t) {
|
|
830
|
-
if (c &&
|
|
830
|
+
if (c && O(t)) {
|
|
831
831
|
let e = c(t);
|
|
832
|
-
e && !
|
|
832
|
+
e && !O(e) && (t = e);
|
|
833
833
|
}
|
|
834
|
-
if (o &&
|
|
834
|
+
if (o && O(t) && (t = o(t)), a) {
|
|
835
835
|
let e = a(t);
|
|
836
836
|
e instanceof Promise && await e;
|
|
837
837
|
}
|
|
@@ -845,7 +845,7 @@ function Q({ path: r, method: i = n.post, action: a, transformation: o, validate
|
|
|
845
845
|
}
|
|
846
846
|
//#endregion
|
|
847
847
|
//#region src/composables/ref/useApiDelete.ts
|
|
848
|
-
function
|
|
848
|
+
function Be(e) {
|
|
849
849
|
return Q({
|
|
850
850
|
...e,
|
|
851
851
|
method: n.delete
|
|
@@ -853,7 +853,7 @@ function ze(e) {
|
|
|
853
853
|
}
|
|
854
854
|
//#endregion
|
|
855
855
|
//#region src/composables/ref/useApiGet.ts
|
|
856
|
-
function
|
|
856
|
+
function Ve(e) {
|
|
857
857
|
return Q({
|
|
858
858
|
...e,
|
|
859
859
|
method: n.get
|
|
@@ -861,7 +861,7 @@ function Be(e) {
|
|
|
861
861
|
}
|
|
862
862
|
//#endregion
|
|
863
863
|
//#region src/composables/ref/useApiPost.ts
|
|
864
|
-
function
|
|
864
|
+
function He(e) {
|
|
865
865
|
return Q({
|
|
866
866
|
...e,
|
|
867
867
|
method: n.post
|
|
@@ -869,7 +869,7 @@ function Ve(e) {
|
|
|
869
869
|
}
|
|
870
870
|
//#endregion
|
|
871
871
|
//#region src/composables/ref/useApiPut.ts
|
|
872
|
-
function
|
|
872
|
+
function Ue(e) {
|
|
873
873
|
return Q({
|
|
874
874
|
...e,
|
|
875
875
|
method: n.put
|
|
@@ -877,7 +877,7 @@ function He(e) {
|
|
|
877
877
|
}
|
|
878
878
|
//#endregion
|
|
879
879
|
//#region src/composables/ref/useFormattersRef.ts
|
|
880
|
-
function
|
|
880
|
+
function We(e, t) {
|
|
881
881
|
let n = new l(t);
|
|
882
882
|
return {
|
|
883
883
|
listFormat: I(() => n.setList(e.value).to()),
|
|
@@ -886,7 +886,7 @@ function Ue(e, t) {
|
|
|
886
886
|
}
|
|
887
887
|
//#endregion
|
|
888
888
|
//#region src/composables/ref/useSearchValueRef.ts
|
|
889
|
-
function
|
|
889
|
+
function Ge(e, t) {
|
|
890
890
|
let n = t == null ? R("") : t, r = R(n.value), i = R(!1), a;
|
|
891
891
|
return B(n, (t, o, s) => {
|
|
892
892
|
let c = e.getOptions().getDelay();
|
|
@@ -903,8 +903,8 @@ function We(e, t) {
|
|
|
903
903
|
}
|
|
904
904
|
//#endregion
|
|
905
905
|
//#region src/composables/ref/useSearchRef.ts
|
|
906
|
-
function
|
|
907
|
-
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());
|
|
908
908
|
return {
|
|
909
909
|
isSearch: l,
|
|
910
910
|
search: a,
|
|
@@ -915,33 +915,33 @@ function Ge(e, t, n, r) {
|
|
|
915
915
|
}
|
|
916
916
|
//#endregion
|
|
917
917
|
//#region src/composables/ref/useApiManagementRef.ts
|
|
918
|
-
function
|
|
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,
|
|
920
|
-
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(() => {
|
|
921
921
|
var e;
|
|
922
922
|
let t = (e = v == null ? void 0 : v.listFormat.value) == null ? w.data.value : e;
|
|
923
923
|
if (Array.isArray(t)) return t;
|
|
924
924
|
}), n.columns, n.value, n.options)), r || i || a) {
|
|
925
925
|
let e = (e) => {
|
|
926
|
-
o == null || o(),
|
|
926
|
+
o == null || o(), O(e) && w.reset().then();
|
|
927
927
|
}, t = (t) => async (n) => {
|
|
928
|
-
A(t) && await
|
|
928
|
+
A(t) && await C(t(n)), e(n);
|
|
929
929
|
};
|
|
930
|
-
r && (b =
|
|
930
|
+
r && (b = He({
|
|
931
931
|
...r,
|
|
932
932
|
action: t(r.action),
|
|
933
933
|
apiInstance: s
|
|
934
|
-
})), i && (x =
|
|
934
|
+
})), i && (x = Ue({
|
|
935
935
|
...i,
|
|
936
936
|
action: t(i.action),
|
|
937
937
|
apiInstance: s
|
|
938
|
-
})), a && (
|
|
938
|
+
})), a && (S = Be({
|
|
939
939
|
...a,
|
|
940
940
|
action: t(a.action),
|
|
941
941
|
apiInstance: s
|
|
942
942
|
}));
|
|
943
943
|
}
|
|
944
|
-
let
|
|
944
|
+
let D = I(() => {
|
|
945
945
|
if (T.value) {
|
|
946
946
|
if (y && Array.isArray(w.data.value)) return y.listSearch.value;
|
|
947
947
|
if (v) return v.listFormat.value;
|
|
@@ -952,7 +952,7 @@ function Ke(e, t, n, r, i, a, o, s) {
|
|
|
952
952
|
isValid: T,
|
|
953
953
|
isResponseContractValid: w.isResponseContractValid,
|
|
954
954
|
responseValidationResult: w.responseValidationResult,
|
|
955
|
-
list:
|
|
955
|
+
list: D,
|
|
956
956
|
get data() {
|
|
957
957
|
return w.data;
|
|
958
958
|
},
|
|
@@ -967,7 +967,7 @@ function Ke(e, t, n, r, i, a, o, s) {
|
|
|
967
967
|
loadingSearch: y == null ? void 0 : y.loading,
|
|
968
968
|
loadingPost: b == null ? void 0 : b.loading,
|
|
969
969
|
loadingPut: x == null ? void 0 : x.loading,
|
|
970
|
-
loadingDelete:
|
|
970
|
+
loadingDelete: S == null ? void 0 : S.loading,
|
|
971
971
|
isSearch: y == null ? void 0 : y.isSearch,
|
|
972
972
|
search: y == null ? void 0 : y.search,
|
|
973
973
|
init: w.init,
|
|
@@ -976,22 +976,22 @@ function Ke(e, t, n, r, i, a, o, s) {
|
|
|
976
976
|
abort: w.abort,
|
|
977
977
|
sendPost: async (e) => await (b == null ? void 0 : b.send(e)),
|
|
978
978
|
sendPut: async (e) => await (x == null ? void 0 : x.send(e)),
|
|
979
|
-
sendDelete: async (e) => await (
|
|
979
|
+
sendDelete: async (e) => await (S == null ? void 0 : S.send(e))
|
|
980
980
|
};
|
|
981
981
|
}
|
|
982
982
|
//#endregion
|
|
983
983
|
//#region src/composables/ref/useApiManagementAsyncRef.ts
|
|
984
|
-
function
|
|
985
|
-
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);
|
|
986
986
|
return c.initSsr(), c;
|
|
987
987
|
}
|
|
988
988
|
//#endregion
|
|
989
989
|
//#region src/composables/ref/useBroadcastValueRef.ts
|
|
990
|
-
var
|
|
991
|
-
function
|
|
992
|
-
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();
|
|
993
993
|
if (n in i) return i[n];
|
|
994
|
-
let a = R(
|
|
994
|
+
let a = R(S(t));
|
|
995
995
|
if (k()) {
|
|
996
996
|
let e = new r(n, (e) => {
|
|
997
997
|
a.value !== e.data.message && (a.value = e.data.message);
|
|
@@ -1004,11 +1004,11 @@ function Ye(e, t) {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
//#endregion
|
|
1006
1006
|
//#region src/composables/ref/useCookieRef.ts
|
|
1007
|
-
var
|
|
1008
|
-
function
|
|
1009
|
-
let r =
|
|
1007
|
+
var Ze = () => b.get("__ui:cookie-ref__", () => ({}));
|
|
1008
|
+
function Qe(e, t, n) {
|
|
1009
|
+
let r = Ze();
|
|
1010
1010
|
if (e in r) return r[e];
|
|
1011
|
-
let a = new i(e), o =
|
|
1011
|
+
let a = new i(e), o = Xe(`__cookie:${e}`, a.get(t, n));
|
|
1012
1012
|
return q.run(() => {
|
|
1013
1013
|
B(o, (e) => {
|
|
1014
1014
|
a.set(e, n);
|
|
@@ -1017,14 +1017,14 @@ function Ze(e, t, n) {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
//#endregion
|
|
1019
1019
|
//#region src/composables/ref/useGeoIntlRef.ts
|
|
1020
|
-
function
|
|
1021
|
-
return new
|
|
1020
|
+
function $e() {
|
|
1021
|
+
return new Me();
|
|
1022
1022
|
}
|
|
1023
1023
|
//#endregion
|
|
1024
1024
|
//#region src/composables/ref/useHashRef.ts
|
|
1025
|
-
var
|
|
1026
|
-
function
|
|
1027
|
-
let n =
|
|
1025
|
+
var et = () => b.get("__ui:hash-ref__", () => ({}));
|
|
1026
|
+
function tt(e, t) {
|
|
1027
|
+
let n = et();
|
|
1028
1028
|
if (e in n) return n[e];
|
|
1029
1029
|
let r = z(p.get(e, t));
|
|
1030
1030
|
return k() && (q.run(() => {
|
|
@@ -1035,10 +1035,10 @@ function et(e, t) {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
//#endregion
|
|
1037
1037
|
//#region src/composables/ref/useLazyRef.ts
|
|
1038
|
-
var
|
|
1038
|
+
var nt = (e = { rootMargin: "128px 0px" }) => {
|
|
1039
1039
|
let t = {}, n = k() && "IntersectionObserver" in window ? new IntersectionObserver((e) => {
|
|
1040
1040
|
e.forEach((e) => {
|
|
1041
|
-
let n =
|
|
1041
|
+
let n = E(e.target);
|
|
1042
1042
|
if (n in t) {
|
|
1043
1043
|
let r = t[n];
|
|
1044
1044
|
r.status.value = e.isIntersecting, r.ratio.value = e.intersectionRatio, r.entry.value = e;
|
|
@@ -1046,7 +1046,7 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1046
1046
|
});
|
|
1047
1047
|
}, e) : void 0, r = (e) => {
|
|
1048
1048
|
if (e) {
|
|
1049
|
-
let i =
|
|
1049
|
+
let i = E(e);
|
|
1050
1050
|
if (i in t) {
|
|
1051
1051
|
var r;
|
|
1052
1052
|
n == null || n.unobserve(e), (r = t[i]) == null || r.stopWatch(), delete t[i];
|
|
@@ -1056,7 +1056,7 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1056
1056
|
return {
|
|
1057
1057
|
intersectionObserver: n,
|
|
1058
1058
|
getItem(e) {
|
|
1059
|
-
return t[
|
|
1059
|
+
return t[E(e)];
|
|
1060
1060
|
},
|
|
1061
1061
|
addLazyItem(e) {
|
|
1062
1062
|
let i = z(!n);
|
|
@@ -1064,7 +1064,7 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1064
1064
|
let a;
|
|
1065
1065
|
a = B(e, (o, s) => {
|
|
1066
1066
|
if (s && r(s), e.value) {
|
|
1067
|
-
let r =
|
|
1067
|
+
let r = E(e.value);
|
|
1068
1068
|
t[r] = {
|
|
1069
1069
|
status: i,
|
|
1070
1070
|
ratio: z(0),
|
|
@@ -1079,16 +1079,16 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1079
1079
|
removeLazyItem: r,
|
|
1080
1080
|
disconnectLazy: () => n == null ? void 0 : n.disconnect()
|
|
1081
1081
|
};
|
|
1082
|
-
},
|
|
1083
|
-
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);
|
|
1084
1084
|
if (n) return n.item;
|
|
1085
|
-
let r =
|
|
1085
|
+
let r = nt({ rootMargin: e });
|
|
1086
1086
|
return t.push({
|
|
1087
1087
|
rootMargin: e,
|
|
1088
1088
|
item: r
|
|
1089
1089
|
}), r;
|
|
1090
|
-
},
|
|
1091
|
-
let n =
|
|
1090
|
+
}, at = (e, t) => {
|
|
1091
|
+
let n = it(t);
|
|
1092
1092
|
return {
|
|
1093
1093
|
lazyItemStatus: n.addLazyItem(e),
|
|
1094
1094
|
get lazyItem() {
|
|
@@ -1098,7 +1098,7 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1098
1098
|
};
|
|
1099
1099
|
//#endregion
|
|
1100
1100
|
//#region src/composables/ref/useLoadingRef.ts
|
|
1101
|
-
function
|
|
1101
|
+
function ot() {
|
|
1102
1102
|
let e = z(h.is());
|
|
1103
1103
|
return k() && h.registrationEvent(({ detail: t }) => {
|
|
1104
1104
|
e.value = t.loading;
|
|
@@ -1106,11 +1106,11 @@ function at() {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
//#endregion
|
|
1108
1108
|
//#region src/functions/executeUse.ts
|
|
1109
|
-
var
|
|
1109
|
+
var st = /* @__PURE__ */ function(e) {
|
|
1110
1110
|
return e.global = "global", e.provide = "provide", e.local = "local", e;
|
|
1111
|
-
}({}),
|
|
1111
|
+
}({}), ct = 1, lt = te(1e5, 999999), ut = () => `__execute_use${lt}::${ct++}`, dt = () => b.get("__ui:execute-use-global__", () => []);
|
|
1112
1112
|
function $(e, t = "provide") {
|
|
1113
|
-
let n =
|
|
1113
|
+
let n = ut(), r, i = (t) => {
|
|
1114
1114
|
let n = Object.freeze(e(...t));
|
|
1115
1115
|
return {
|
|
1116
1116
|
...n,
|
|
@@ -1120,7 +1120,7 @@ function $(e, t = "provide") {
|
|
|
1120
1120
|
};
|
|
1121
1121
|
}, a = (e) => {
|
|
1122
1122
|
let t = Object.freeze(i(e));
|
|
1123
|
-
return
|
|
1123
|
+
return fe(n, t), t;
|
|
1124
1124
|
}, o = (e) => {
|
|
1125
1125
|
let t = i(e);
|
|
1126
1126
|
return Object.freeze({
|
|
@@ -1129,26 +1129,26 @@ function $(e, t = "provide") {
|
|
|
1129
1129
|
r = void 0;
|
|
1130
1130
|
}
|
|
1131
1131
|
});
|
|
1132
|
-
}, s = (...e) => t === "provide" ?
|
|
1132
|
+
}, s = (...e) => t === "provide" ? le(n, void 0) || a(e) : (r || q.run(() => {
|
|
1133
1133
|
r = o(e);
|
|
1134
1134
|
}), r);
|
|
1135
|
-
return t === "global" &&
|
|
1135
|
+
return t === "global" && dt().push(s), s;
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1137
|
+
function ft(e) {
|
|
1138
1138
|
return $(e, "global");
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function pt(e) {
|
|
1141
1141
|
return $(e, "provide");
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function mt(e) {
|
|
1144
1144
|
return $(e, "local");
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1147
|
-
|
|
1146
|
+
function ht() {
|
|
1147
|
+
dt().forEach((e) => e());
|
|
1148
1148
|
}
|
|
1149
1149
|
//#endregion
|
|
1150
1150
|
//#region src/composables/ref/useMeta.ts
|
|
1151
|
-
var
|
|
1151
|
+
var gt = mt(() => {
|
|
1152
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) => {
|
|
1153
1153
|
t.value = e, x();
|
|
1154
1154
|
}, d = (e) => {
|
|
@@ -1205,7 +1205,20 @@ var ht = pt(() => {
|
|
|
1205
1205
|
setSiteName: v,
|
|
1206
1206
|
setSuffix: (t) => e.setSuffix(t)
|
|
1207
1207
|
};
|
|
1208
|
-
}),
|
|
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) => {
|
|
1209
1222
|
var r;
|
|
1210
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) => {
|
|
1211
1224
|
var n;
|
|
@@ -1220,7 +1233,7 @@ var ht = pt(() => {
|
|
|
1220
1233
|
var e;
|
|
1221
1234
|
return ((e = a()) == null ? void 0 : e.label) || "";
|
|
1222
1235
|
}),
|
|
1223
|
-
list: I(() => e.value ?
|
|
1236
|
+
list: I(() => e.value ? w(e.value, (e) => n && !("to" in e) ? {
|
|
1224
1237
|
...e,
|
|
1225
1238
|
to: { name: e.value }
|
|
1226
1239
|
} : e) : []),
|
|
@@ -1230,9 +1243,9 @@ var ht = pt(() => {
|
|
|
1230
1243
|
s((t = e.value) == null || (t = t[0]) == null ? void 0 : t.value);
|
|
1231
1244
|
}
|
|
1232
1245
|
};
|
|
1233
|
-
},
|
|
1234
|
-
function
|
|
1235
|
-
let n =
|
|
1246
|
+
}, xt = () => b.get("__ui:session-ref__", () => ({}));
|
|
1247
|
+
function St(e, t) {
|
|
1248
|
+
let n = xt();
|
|
1236
1249
|
if (e in n) return n[e];
|
|
1237
1250
|
let r = new a(e, !0), i = R(r.get(t));
|
|
1238
1251
|
return q.run(() => {
|
|
@@ -1241,9 +1254,9 @@ function yt(e, t) {
|
|
|
1241
1254
|
}
|
|
1242
1255
|
//#endregion
|
|
1243
1256
|
//#region src/composables/ref/useStorageRef.ts
|
|
1244
|
-
var
|
|
1245
|
-
function
|
|
1246
|
-
let r =
|
|
1257
|
+
var Ct = () => b.get("__ui:storage-ref__", () => ({}));
|
|
1258
|
+
function wt(e, t, n) {
|
|
1259
|
+
let r = Ct();
|
|
1247
1260
|
if (e in r) return r[e];
|
|
1248
1261
|
let i = new a(e), o = R(i.get(t, n));
|
|
1249
1262
|
return q.run(() => {
|
|
@@ -1254,7 +1267,7 @@ function xt(e, t, n) {
|
|
|
1254
1267
|
}
|
|
1255
1268
|
//#endregion
|
|
1256
1269
|
//#region src/composables/ref/useTranslateRef.ts
|
|
1257
|
-
function
|
|
1270
|
+
function Tt(e, t = x.getItem()) {
|
|
1258
1271
|
let n = z(t.getListSync(e, !0)), r = async () => {
|
|
1259
1272
|
n.value = { ...await t.getList(e) };
|
|
1260
1273
|
};
|
|
@@ -1267,38 +1280,38 @@ function St(e, t = b.getItem()) {
|
|
|
1267
1280
|
}
|
|
1268
1281
|
return n;
|
|
1269
1282
|
}
|
|
1270
|
-
var
|
|
1283
|
+
var Et = (e) => Tt(e);
|
|
1271
1284
|
//#endregion
|
|
1272
1285
|
//#region src/functions/computedAsync.ts
|
|
1273
|
-
function
|
|
1274
|
-
let i = z(
|
|
1275
|
-
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);
|
|
1276
1289
|
t !== n && (i.value = t);
|
|
1277
1290
|
}, s = () => {
|
|
1278
|
-
a && (a = !1, k() ?
|
|
1291
|
+
a && (a = !1, k() ? _e(o) : o().then());
|
|
1279
1292
|
};
|
|
1280
1293
|
return I(() => (s(), i.value), r);
|
|
1281
1294
|
}
|
|
1282
1295
|
//#endregion
|
|
1283
1296
|
//#region src/functions/computedByLanguage.ts
|
|
1284
|
-
function
|
|
1297
|
+
function Ot(e, t = () => void 0, n, r) {
|
|
1285
1298
|
return I(() => {
|
|
1286
1299
|
if (J.get().value && (n === void 0 || n())) {
|
|
1287
1300
|
let t = e();
|
|
1288
1301
|
if (t !== void 0) return t;
|
|
1289
1302
|
}
|
|
1290
|
-
return
|
|
1303
|
+
return S(t);
|
|
1291
1304
|
}, r);
|
|
1292
1305
|
}
|
|
1293
1306
|
//#endregion
|
|
1294
1307
|
//#region src/functions/computedEternity.ts
|
|
1295
|
-
function
|
|
1296
|
-
return
|
|
1297
|
-
let i = z(
|
|
1298
|
-
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();
|
|
1299
1312
|
}, s = () => {
|
|
1300
1313
|
a || (a = !0, k() ? q.run(() => {
|
|
1301
|
-
|
|
1314
|
+
_e(async () => await o());
|
|
1302
1315
|
}) : o().then());
|
|
1303
1316
|
};
|
|
1304
1317
|
return {
|
|
@@ -1313,42 +1326,42 @@ function Et(e, t) {
|
|
|
1313
1326
|
}
|
|
1314
1327
|
//#endregion
|
|
1315
1328
|
//#region src/functions/dxtFunctionalPlugin.ts
|
|
1316
|
-
var
|
|
1317
|
-
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);
|
|
1318
1331
|
else {
|
|
1319
1332
|
let e = t.config.globalProperties.$router;
|
|
1320
1333
|
e && Y.set(e);
|
|
1321
1334
|
}
|
|
1322
|
-
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();
|
|
1323
1336
|
} };
|
|
1324
1337
|
//#endregion
|
|
1325
1338
|
//#region src/functions/getInject.ts
|
|
1326
|
-
function
|
|
1327
|
-
if (
|
|
1328
|
-
let t =
|
|
1339
|
+
function jt(e) {
|
|
1340
|
+
if (ce()) {
|
|
1341
|
+
let t = le(e);
|
|
1329
1342
|
if (t) return t;
|
|
1330
1343
|
}
|
|
1331
1344
|
}
|
|
1332
1345
|
//#endregion
|
|
1333
1346
|
//#region src/functions/ref/executeFunctionRef.ts
|
|
1334
|
-
function
|
|
1335
|
-
return U(
|
|
1347
|
+
function Mt(e) {
|
|
1348
|
+
return U(S(e));
|
|
1336
1349
|
}
|
|
1337
1350
|
//#endregion
|
|
1338
1351
|
//#region src/functions/render/getBind.ts
|
|
1339
|
-
function
|
|
1352
|
+
function Nt(e, t = {}, n = "value", r = !1) {
|
|
1340
1353
|
let i = typeof t == "string", a = i ? t : n, o = i ? {} : t;
|
|
1341
1354
|
return e ? e && M(e) && (a in e || r) ? W(o, e) : W(o, { [a]: e }) : i ? {} : { ...o };
|
|
1342
1355
|
}
|
|
1343
1356
|
//#endregion
|
|
1344
1357
|
//#region src/functions/ref/getBindRef.ts
|
|
1345
|
-
function
|
|
1346
|
-
return I(() =>
|
|
1358
|
+
function Pt(e, t = {}, n = "value") {
|
|
1359
|
+
return I(() => Nt(U(e), U(t), n));
|
|
1347
1360
|
}
|
|
1348
1361
|
//#endregion
|
|
1349
1362
|
//#region src/functions/ref/setRef.ts
|
|
1350
|
-
function
|
|
1363
|
+
function Ft(e, t) {
|
|
1351
1364
|
e.value !== t && (e.value = t);
|
|
1352
1365
|
}
|
|
1353
1366
|
//#endregion
|
|
1354
|
-
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 };
|