@dxtmisha/functional 1.11.10 → 1.11.12
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 +21 -0
- package/ai-description.txt +1 -5
- package/ai-doc.ru.txt +11 -0
- package/ai-doc.txt +11 -0
- package/ai-types.txt +260 -277
- package/dist/library.js +409 -390
- package/dist/src/classes/ref/ListDataRef.d.ts +7 -0
- package/dist/src/composables/ref/useApiAsyncRef.d.ts +64 -12
- package/dist/src/composables/ref/useApiDelete.d.ts +10 -2
- package/dist/src/composables/ref/useApiGet.d.ts +10 -2
- package/dist/src/composables/ref/useApiManagementAsyncRef.d.ts +11 -4
- package/dist/src/composables/ref/useApiManagementRef.d.ts +5 -3
- package/dist/src/composables/ref/useApiPost.d.ts +10 -2
- package/dist/src/composables/ref/useApiPut.d.ts +10 -2
- package/dist/src/composables/ref/useApiRef.d.ts +65 -12
- package/dist/src/composables/ref/useApiRequest.d.ts +9 -2
- package/dist/src/functions/ref/getApiErrorRef.d.ts +10 -0
- package/dist/src/library.d.ts +1 -0
- package/dist/src/types/apiTypes.d.ts +5 -1
- package/dist/src/types/listTypes.d.ts +2 -0
- package/package.json +2 -3
package/dist/library.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { Api as e,
|
|
2
|
-
import { computed 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, ScrollbarWidth as _, SearchList as v, ServerStorage as y, Translate as b, executeFunction as x, executePromise as S, forEach as C, getColumn as w, getElementId as T, getExp as E, isApiSuccess as D, isArray as O, isDomRuntime as k, isFunction as A, isObject as j, isObjectNotArray as M, isSelected as N, isString as P, random as ee, toArray as F, toCamelCase as te, toDate as ne } from "@dxtmisha/functional-basic";
|
|
2
|
+
import { computed as I, customRef as re, effectScope as ie, getCurrentInstance as ae, h as oe, hasInjectionContext as se, inject as ce, isRef as L, onServerPrefetch as le, onUnmounted as ue, provide as de, ref as R, shallowRef as z, toRefs as fe, triggerRef as pe, useAttrs as me, useSlots as he, watch as B, watchEffect as ge } from "vue";
|
|
3
3
|
export * from "@dxtmisha/functional-basic";
|
|
4
4
|
//#endregion
|
|
5
|
-
//#region \0@oxc-project+runtime@0.
|
|
6
|
-
function
|
|
5
|
+
//#region \0@oxc-project+runtime@0.130.0/helpers/typeof.js
|
|
6
|
+
function V(e) {
|
|
7
7
|
"@babel/helpers - typeof";
|
|
8
|
-
return
|
|
8
|
+
return V = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
9
9
|
return typeof e;
|
|
10
10
|
} : function(e) {
|
|
11
11
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
12
|
-
},
|
|
12
|
+
}, V(e);
|
|
13
13
|
}
|
|
14
14
|
//#endregion
|
|
15
|
-
//#region \0@oxc-project+runtime@0.
|
|
16
|
-
function
|
|
17
|
-
if (
|
|
15
|
+
//#region \0@oxc-project+runtime@0.130.0/helpers/toPrimitive.js
|
|
16
|
+
function _e(e, t) {
|
|
17
|
+
if (V(e) != "object" || !e) return e;
|
|
18
18
|
var n = e[Symbol.toPrimitive];
|
|
19
19
|
if (n !== void 0) {
|
|
20
20
|
var r = n.call(e, t || "default");
|
|
21
|
-
if (
|
|
21
|
+
if (V(r) != "object") return r;
|
|
22
22
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
23
23
|
}
|
|
24
24
|
return (t === "string" ? String : Number)(e);
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
|
-
//#region \0@oxc-project+runtime@0.
|
|
28
|
-
function
|
|
29
|
-
var t =
|
|
30
|
-
return
|
|
27
|
+
//#region \0@oxc-project+runtime@0.130.0/helpers/toPropertyKey.js
|
|
28
|
+
function ve(e) {
|
|
29
|
+
var t = _e(e, "string");
|
|
30
|
+
return V(t) == "symbol" ? t : t + "";
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region \0@oxc-project+runtime@0.
|
|
34
|
-
function
|
|
35
|
-
return (t =
|
|
33
|
+
//#region \0@oxc-project+runtime@0.130.0/helpers/defineProperty.js
|
|
34
|
+
function H(e, t, n) {
|
|
35
|
+
return (t = ve(t)) in e ? Object.defineProperty(e, t, {
|
|
36
36
|
value: n,
|
|
37
37
|
enumerable: !0,
|
|
38
38
|
configurable: !0,
|
|
@@ -41,12 +41,12 @@ function z(e, t, n) {
|
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/classes/design/DesignChanged.ts
|
|
44
|
-
var
|
|
44
|
+
var ye = 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 O(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 xe = 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
|
+
}, be = class {
|
|
66
66
|
constructor(e, t, n) {
|
|
67
|
-
|
|
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 ye(e, n);
|
|
68
68
|
}
|
|
69
69
|
make(e) {
|
|
70
70
|
return this.makeCallback(e), this;
|
|
@@ -81,7 +81,7 @@ var xe = class {
|
|
|
81
81
|
makeCallbackItem() {
|
|
82
82
|
this.callback && this.callback(this.event);
|
|
83
83
|
}
|
|
84
|
-
},
|
|
84
|
+
}, xe = class extends be {
|
|
85
85
|
make(e) {
|
|
86
86
|
return this.makeCallback(e).then(), this;
|
|
87
87
|
}
|
|
@@ -91,32 +91,32 @@ var xe = class {
|
|
|
91
91
|
};
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region src/functions/ref/getRef.ts
|
|
94
|
-
function
|
|
95
|
-
return
|
|
94
|
+
function U(e) {
|
|
95
|
+
return L(e) ? e.value : e;
|
|
96
96
|
}
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region src/functions/render/getClassName.ts
|
|
99
|
-
function
|
|
99
|
+
function Se(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 =
|
|
106
|
-
if (
|
|
104
|
+
function Ce(e, t, n) {
|
|
105
|
+
let r = t == null ? void 0 : t.id, i = t == null ? void 0 : t.index, a = Se(t), o = "";
|
|
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 we(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: Ce(e, t, r)
|
|
115
|
+
}), oe(e, i, n);
|
|
116
116
|
}
|
|
117
117
|
//#endregion
|
|
118
118
|
//#region src/functions/toBind.ts
|
|
119
|
-
function
|
|
119
|
+
function W(e, t) {
|
|
120
120
|
let n = e == null ? void 0 : e.class, r = t == null ? void 0 : t.class, i = e == null ? void 0 : e.style, a = t == null ? void 0 : t.style, o = {
|
|
121
121
|
...e,
|
|
122
122
|
...t
|
|
@@ -125,17 +125,17 @@ function V(e, t) {
|
|
|
125
125
|
}
|
|
126
126
|
//#endregion
|
|
127
127
|
//#region src/functions/toBinds.ts
|
|
128
|
-
function
|
|
128
|
+
function Te(...e) {
|
|
129
129
|
let t = {};
|
|
130
130
|
return e.forEach((e) => {
|
|
131
|
-
e && (t =
|
|
131
|
+
e && (t = W(t, e));
|
|
132
132
|
}), t;
|
|
133
133
|
}
|
|
134
134
|
//#endregion
|
|
135
135
|
//#region src/classes/design/DesignComponents.ts
|
|
136
|
-
var
|
|
136
|
+
var G = class {
|
|
137
137
|
constructor(e = {}, t) {
|
|
138
|
-
|
|
138
|
+
H(this, "components", void 0), H(this, "modification", void 0), H(this, "caching", {}), this.components = e, this.modification = t;
|
|
139
139
|
}
|
|
140
140
|
is(e) {
|
|
141
141
|
return e in this.components;
|
|
@@ -146,9 +146,9 @@ var H = class {
|
|
|
146
146
|
}
|
|
147
147
|
getModification(e, t) {
|
|
148
148
|
if (e) {
|
|
149
|
-
e in this.caching || (this.caching[e] =
|
|
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 ? Te(n.value, t) : n.value;
|
|
152
152
|
}
|
|
153
153
|
return t;
|
|
154
154
|
}
|
|
@@ -159,7 +159,7 @@ var H = 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 we(this.get(e), this.getModification(i, t), n, i);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
renderAdd(e, t, n, r, i) {
|
|
@@ -167,21 +167,21 @@ var H = class {
|
|
|
167
167
|
}
|
|
168
168
|
computeModification(e) {
|
|
169
169
|
var t;
|
|
170
|
-
let n =
|
|
171
|
-
if (n &&
|
|
170
|
+
let n = U((t = this.modification) == null ? void 0 : t[e]);
|
|
171
|
+
if (n && M(n)) {
|
|
172
172
|
let e = {};
|
|
173
|
-
return
|
|
174
|
-
e[n] =
|
|
173
|
+
return C(n, (t, n) => {
|
|
174
|
+
e[n] = U(t);
|
|
175
175
|
}), e;
|
|
176
176
|
}
|
|
177
177
|
return {};
|
|
178
178
|
}
|
|
179
|
-
},
|
|
179
|
+
}, Ee = class extends G {}, De = class {
|
|
180
180
|
constructor(e, t, n) {
|
|
181
|
-
|
|
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 ? fe(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 = me(), this.slots = he();
|
|
182
182
|
}
|
|
183
183
|
init() {
|
|
184
|
-
return this.classesSub =
|
|
184
|
+
return this.classesSub = I(() => this.initClasses()), this.stylesSub = I(() => this.initStyles()), this.dataExpose = this.initExpose(), this;
|
|
185
185
|
}
|
|
186
186
|
getName() {
|
|
187
187
|
return this.name.join("-");
|
|
@@ -190,13 +190,13 @@ var H = class {
|
|
|
190
190
|
return String(this.name[0]);
|
|
191
191
|
}
|
|
192
192
|
getSubClass(e) {
|
|
193
|
-
return `${this.getName()}__${
|
|
193
|
+
return `${this.getName()}__${F(e).join("__")}`;
|
|
194
194
|
}
|
|
195
195
|
getStatusClass(e) {
|
|
196
|
-
return `${this.getName()}--${
|
|
196
|
+
return `${this.getName()}--${F(e).join("--")}`;
|
|
197
197
|
}
|
|
198
198
|
getStyle(e) {
|
|
199
|
-
return `--${this.getName()}-sys-${
|
|
199
|
+
return `--${this.getName()}-sys-${F(e).join("-")}`;
|
|
200
200
|
}
|
|
201
201
|
getAttrs() {
|
|
202
202
|
var e;
|
|
@@ -221,19 +221,19 @@ var H = class {
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
toClass(e) {
|
|
224
|
-
return
|
|
224
|
+
return M(e) ? e : Array.isArray(e) ? { [e.filter((e) => typeof e == "string" && e.trim() !== "").join(" ")]: !0 } : typeof e == "string" ? { [e]: !0 } : {};
|
|
225
225
|
}
|
|
226
226
|
toClassName(e) {
|
|
227
|
-
if (
|
|
227
|
+
if (j(e)) {
|
|
228
228
|
let t = {};
|
|
229
|
-
return
|
|
229
|
+
return C(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 C(e.split(".", 2), (e) => te(e));
|
|
237
237
|
}
|
|
238
238
|
updateClasses() {
|
|
239
239
|
var e, t, n;
|
|
@@ -263,18 +263,18 @@ var H = class {
|
|
|
263
263
|
};
|
|
264
264
|
//#endregion
|
|
265
265
|
//#region src/functions/ref/toRefItem.ts
|
|
266
|
-
function
|
|
267
|
-
return
|
|
266
|
+
function K(e) {
|
|
267
|
+
return L(e) ? e : R(e);
|
|
268
268
|
}
|
|
269
269
|
//#endregion
|
|
270
270
|
//#region src/classes/ref/DatetimeRef.ts
|
|
271
|
-
var
|
|
272
|
-
constructor(e, t = "date", n =
|
|
273
|
-
|
|
274
|
-
this.date.value =
|
|
275
|
-
}),
|
|
271
|
+
var Oe = class {
|
|
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(ne(this.item.value)), this.datetime = new o(this.date.value, this.type.value, this.code.value), B(this.item, (e) => {
|
|
274
|
+
this.date.value = ne(e);
|
|
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(() => pe(this.date)), this.updateDate();
|
|
278
278
|
}
|
|
279
279
|
getItem() {
|
|
280
280
|
return this.item;
|
|
@@ -286,78 +286,78 @@ var Ae = class {
|
|
|
286
286
|
return this.datetime;
|
|
287
287
|
}
|
|
288
288
|
getHoursType() {
|
|
289
|
-
return
|
|
289
|
+
return I(() => this.date.value && this.datetime.getHoursType());
|
|
290
290
|
}
|
|
291
291
|
getFirstDayCode() {
|
|
292
|
-
return
|
|
292
|
+
return I(() => this.date.value && this.datetime.getFirstDayCode());
|
|
293
293
|
}
|
|
294
294
|
getYear() {
|
|
295
|
-
return
|
|
295
|
+
return I(() => this.year.value);
|
|
296
296
|
}
|
|
297
297
|
getMonth() {
|
|
298
|
-
return
|
|
298
|
+
return I(() => this.month.value);
|
|
299
299
|
}
|
|
300
300
|
getDay() {
|
|
301
|
-
return
|
|
301
|
+
return I(() => this.day.value);
|
|
302
302
|
}
|
|
303
303
|
getHour() {
|
|
304
|
-
return
|
|
304
|
+
return I(() => this.hour.value);
|
|
305
305
|
}
|
|
306
306
|
getMinute() {
|
|
307
|
-
return
|
|
307
|
+
return I(() => this.minute.value);
|
|
308
308
|
}
|
|
309
309
|
getSecond() {
|
|
310
|
-
return
|
|
310
|
+
return I(() => this.second.value);
|
|
311
311
|
}
|
|
312
312
|
getMaxDay() {
|
|
313
|
-
return
|
|
313
|
+
return I(() => this.date.value && this.datetime.getMaxDay());
|
|
314
314
|
}
|
|
315
315
|
locale(e = this.type.value, t) {
|
|
316
|
-
return
|
|
316
|
+
return I(() => this.date.value && this.datetime.locale(e, t));
|
|
317
317
|
}
|
|
318
318
|
standard(e = !0) {
|
|
319
|
-
return
|
|
319
|
+
return I(() => this.date.value && this.datetime.standard(e));
|
|
320
320
|
}
|
|
321
321
|
updateDate() {
|
|
322
322
|
return this.year.value = this.datetime.getYear(), this.month.value = this.datetime.getMonth(), this.day.value = this.datetime.getDay(), this.hour.value = this.datetime.getHour(), this.minute.value = this.datetime.getMinute(), this.second.value = this.datetime.getSecond(), this;
|
|
323
323
|
}
|
|
324
|
-
},
|
|
324
|
+
}, q = class {
|
|
325
325
|
static run(e) {
|
|
326
326
|
return this.getScope().run(e);
|
|
327
327
|
}
|
|
328
328
|
static getScope() {
|
|
329
|
-
return
|
|
329
|
+
return y.get("__ui:effect-scope-global__", () => ie(!0));
|
|
330
330
|
}
|
|
331
|
-
},
|
|
331
|
+
}, ke = class extends c {
|
|
332
332
|
constructor(e, t, n = ["click"], r, i, a) {
|
|
333
|
-
let o =
|
|
334
|
-
super(o.value, n, r, i, a), s.value && this.setElementControl(s.value),
|
|
333
|
+
let o = K(e), s = K(t);
|
|
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
|
-
},
|
|
337
|
-
constructor(e =
|
|
338
|
-
|
|
336
|
+
}, Ae = class {
|
|
337
|
+
constructor(e = u.getLocation()) {
|
|
338
|
+
H(this, "code", void 0), H(this, "flag", void 0), this.code = K(e), this.flag = new d(this.code.value), B(this.code, (e) => this.flag.setCode(e));
|
|
339
339
|
}
|
|
340
340
|
getCode() {
|
|
341
341
|
return this.code;
|
|
342
342
|
}
|
|
343
343
|
get(e = this.code.value) {
|
|
344
|
-
return
|
|
344
|
+
return I(() => this.flag.get(e));
|
|
345
345
|
}
|
|
346
346
|
getFlag(e = this.code.value) {
|
|
347
|
-
return
|
|
347
|
+
return I(() => {
|
|
348
348
|
var t;
|
|
349
349
|
return (t = this.flag.get(e)) == null ? void 0 : t.icon;
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
352
|
getList(e) {
|
|
353
|
-
return
|
|
353
|
+
return I(() => this.flag.getList(e));
|
|
354
354
|
}
|
|
355
355
|
getNational(e) {
|
|
356
|
-
return
|
|
356
|
+
return I(() => this.flag.getNational(e));
|
|
357
357
|
}
|
|
358
|
-
},
|
|
358
|
+
}, J, Y = class {
|
|
359
359
|
static get() {
|
|
360
|
-
return
|
|
360
|
+
return y.get("__ui:geo-ref__", () => z(u.getItem()));
|
|
361
361
|
}
|
|
362
362
|
static getCountry() {
|
|
363
363
|
return this.country;
|
|
@@ -372,88 +372,88 @@ var Ae = class {
|
|
|
372
372
|
return this.firstDay;
|
|
373
373
|
}
|
|
374
374
|
static set(e) {
|
|
375
|
-
|
|
375
|
+
u.set(e, !0), this.get().value = u.getItem();
|
|
376
376
|
}
|
|
377
377
|
};
|
|
378
|
-
|
|
378
|
+
J = Y, H(Y, "country", I(() => J.get().value.country)), H(Y, "language", I(() => J.get().value.language)), H(Y, "standard", I(() => J.get().value.standard)), H(Y, "firstDay", I(() => J.get().value.firstDay));
|
|
379
379
|
//#endregion
|
|
380
380
|
//#region src/classes/ref/GeoIntlRef.ts
|
|
381
|
-
var
|
|
381
|
+
var je = class {
|
|
382
382
|
constructor(e) {
|
|
383
|
-
|
|
383
|
+
H(this, "location", void 0), H(this, "intl", void 0), this.location = K(e), this.intl = I(() => {
|
|
384
384
|
var e;
|
|
385
|
-
return new
|
|
385
|
+
return new f((e = this.location.value) == null ? Y.getLanguage().value : e);
|
|
386
386
|
});
|
|
387
387
|
}
|
|
388
388
|
display(e, t) {
|
|
389
|
-
return
|
|
389
|
+
return I(() => this.intl.value.display(U(e), t));
|
|
390
390
|
}
|
|
391
391
|
languageName(e, t) {
|
|
392
|
-
return
|
|
392
|
+
return I(() => this.intl.value.languageName(U(e), t));
|
|
393
393
|
}
|
|
394
394
|
countryName(e, t) {
|
|
395
|
-
return
|
|
395
|
+
return I(() => this.intl.value.countryName(U(e), t));
|
|
396
396
|
}
|
|
397
397
|
number(e, t) {
|
|
398
|
-
return
|
|
398
|
+
return I(() => this.intl.value.number(U(e), t));
|
|
399
399
|
}
|
|
400
400
|
decimal() {
|
|
401
|
-
return
|
|
401
|
+
return I(() => this.intl.value.decimal());
|
|
402
402
|
}
|
|
403
403
|
currency(e, t, n = !1) {
|
|
404
|
-
return
|
|
404
|
+
return I(() => this.intl.value.currency(U(e), U(t), n));
|
|
405
405
|
}
|
|
406
406
|
currencySymbol(e, t = "symbol") {
|
|
407
|
-
return
|
|
407
|
+
return I(() => this.intl.value.currencySymbol(U(e), t));
|
|
408
408
|
}
|
|
409
409
|
unit(e, t) {
|
|
410
|
-
return
|
|
410
|
+
return I(() => this.intl.value.unit(U(e), t));
|
|
411
411
|
}
|
|
412
412
|
sizeFile(e, t = "byte") {
|
|
413
|
-
return
|
|
413
|
+
return I(() => this.intl.value.sizeFile(U(e), t));
|
|
414
414
|
}
|
|
415
415
|
percent(e, t) {
|
|
416
|
-
return
|
|
416
|
+
return I(() => this.intl.value.percent(U(e), t));
|
|
417
417
|
}
|
|
418
418
|
percentBy100(e, t) {
|
|
419
|
-
return
|
|
419
|
+
return I(() => this.intl.value.percentBy100(U(e), t));
|
|
420
420
|
}
|
|
421
421
|
plural(e, t, n, r) {
|
|
422
|
-
return
|
|
422
|
+
return I(() => this.intl.value.plural(U(e), t, n, r));
|
|
423
423
|
}
|
|
424
424
|
date(e, t, n, r) {
|
|
425
|
-
return
|
|
425
|
+
return I(() => this.intl.value.date(U(e), t, n, r));
|
|
426
426
|
}
|
|
427
427
|
relative(e, t, n) {
|
|
428
|
-
return
|
|
428
|
+
return I(() => this.intl.value.relative(U(e), t, n));
|
|
429
429
|
}
|
|
430
430
|
relativeLimit(e, t, n, r, i, a, o) {
|
|
431
|
-
return
|
|
431
|
+
return I(() => this.intl.value.relativeLimit(U(e), t, n, r, i, a, o));
|
|
432
432
|
}
|
|
433
433
|
relativeByValue(e, t, n) {
|
|
434
|
-
return
|
|
434
|
+
return I(() => this.intl.value.relativeByValue(U(e), t, n));
|
|
435
435
|
}
|
|
436
436
|
month(e, t) {
|
|
437
|
-
return
|
|
437
|
+
return I(() => this.intl.value.month(U(e), t));
|
|
438
438
|
}
|
|
439
439
|
months(e) {
|
|
440
|
-
return
|
|
440
|
+
return I(() => this.intl.value.months(e));
|
|
441
441
|
}
|
|
442
442
|
weekday(e, t) {
|
|
443
|
-
return
|
|
443
|
+
return I(() => this.intl.value.weekday(U(e), t));
|
|
444
444
|
}
|
|
445
445
|
weekdays(e) {
|
|
446
|
-
return
|
|
446
|
+
return I(() => this.intl.value.weekdays(e));
|
|
447
447
|
}
|
|
448
448
|
time(e) {
|
|
449
|
-
return
|
|
449
|
+
return I(() => this.intl.value.time(U(e)));
|
|
450
450
|
}
|
|
451
451
|
sort(e, t = (e, t) => [e, t]) {
|
|
452
|
-
return
|
|
452
|
+
return I(() => this.intl.value.sort([...U(e)], t));
|
|
453
453
|
}
|
|
454
|
-
},
|
|
454
|
+
}, Me = class e {
|
|
455
455
|
constructor(e, t, n, r, i, a, o, s, c, l = 0, u = 9999999, d) {
|
|
456
|
-
|
|
456
|
+
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(() => C(U(this.list) || [], (e, t) => this.initItem(t, e)))), H(this, "liteData", I(() => {
|
|
457
457
|
if (this.isLite()) {
|
|
458
458
|
let e = [];
|
|
459
459
|
for (let t of this.data.value) {
|
|
@@ -470,11 +470,11 @@ var Ne = class {
|
|
|
470
470
|
return e;
|
|
471
471
|
}
|
|
472
472
|
return this.data.value;
|
|
473
|
-
})),
|
|
473
|
+
})), H(this, "fullData", I(() => {
|
|
474
474
|
let e = this.getFocus(), t = this.getHighlight(), n = this.getSelected();
|
|
475
|
-
return
|
|
475
|
+
return C(this.data.value, (r) => {
|
|
476
476
|
var i, a;
|
|
477
|
-
let o =
|
|
477
|
+
let o = N(r.index, n);
|
|
478
478
|
return {
|
|
479
479
|
...r,
|
|
480
480
|
focus: e === r.index,
|
|
@@ -484,7 +484,7 @@ var Ne = class {
|
|
|
484
484
|
disabled: (a = r.disabled) == null ? !o && r.type === "item" && this.isSelectedMax.value : a
|
|
485
485
|
};
|
|
486
486
|
});
|
|
487
|
-
})),
|
|
487
|
+
})), H(this, "map", I(() => {
|
|
488
488
|
let e = [];
|
|
489
489
|
return this.data.value.forEach((t) => {
|
|
490
490
|
switch (t.type) {
|
|
@@ -497,32 +497,32 @@ var Ne = class {
|
|
|
497
497
|
break;
|
|
498
498
|
}
|
|
499
499
|
}), e;
|
|
500
|
-
})),
|
|
500
|
+
})), 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(() => {
|
|
501
501
|
let e = this.getHighlight();
|
|
502
502
|
if (e && e.length >= this.getHighlightLengthStart()) {
|
|
503
|
-
let t =
|
|
503
|
+
let t = E(e, "i");
|
|
504
504
|
if (t) return this.map.value.findIndex((e) => {
|
|
505
505
|
var n, r, i;
|
|
506
506
|
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));
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
509
|
return -1;
|
|
510
|
-
})),
|
|
510
|
+
})), H(this, "isSelected", I(() => {
|
|
511
511
|
let e = this.getSelected();
|
|
512
|
-
return !!e && this.mapItems.value.findIndex((t) =>
|
|
513
|
-
})),
|
|
514
|
-
let e = Number(
|
|
512
|
+
return !!e && this.mapItems.value.findIndex((t) => N(t.index, e)) !== -1;
|
|
513
|
+
})), H(this, "isSelectedMin", I(() => {
|
|
514
|
+
let e = Number(U(this.min) || 0);
|
|
515
515
|
return e > 0 ? this.selectedListInGroup.value.length >= e : !1;
|
|
516
|
-
})),
|
|
517
|
-
let e = Number(
|
|
516
|
+
})), H(this, "isSelectedMax", I(() => {
|
|
517
|
+
let e = Number(U(this.max) || 9999999);
|
|
518
518
|
return e > 0 ? this.selectedListInGroup.value.length >= e : !1;
|
|
519
|
-
})),
|
|
519
|
+
})), H(this, "selectedList", I(() => {
|
|
520
520
|
let e = this.getSelected();
|
|
521
|
-
return e && this.isSelected.value ? this.mapItems.value.filter((t) =>
|
|
522
|
-
})),
|
|
521
|
+
return e && this.isSelected.value ? this.mapItems.value.filter((t) => N(t.index, e)) : [];
|
|
522
|
+
})), H(this, "selectedListInGroup", I(() => {
|
|
523
523
|
let e = this.getSelected();
|
|
524
|
-
return e && this.isSelected.value ? this.data.value.filter((t) =>
|
|
525
|
-
})),
|
|
524
|
+
return e && this.isSelected.value ? this.data.value.filter((t) => N(t.index, e)) : [];
|
|
525
|
+
})), H(this, "selectedNames", I(() => w(this.selectedList.value, "label"))), H(this, "selectedValues", I(() => w(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, () => {
|
|
526
526
|
this.subList = {};
|
|
527
527
|
});
|
|
528
528
|
}
|
|
@@ -554,6 +554,9 @@ var Ne = class {
|
|
|
554
554
|
var e;
|
|
555
555
|
return (e = this.focus) == null ? void 0 : e.value;
|
|
556
556
|
}
|
|
557
|
+
getFocusItem() {
|
|
558
|
+
return this.data.value.find((e) => e.index === this.getFocus());
|
|
559
|
+
}
|
|
557
560
|
getHighlight() {
|
|
558
561
|
var e;
|
|
559
562
|
return (e = this.highlight) == null ? void 0 : e.value;
|
|
@@ -633,10 +636,10 @@ var Ne = class {
|
|
|
633
636
|
return t.parent === e && this.isItem(t);
|
|
634
637
|
}
|
|
635
638
|
getIndex(e, t, n, r) {
|
|
636
|
-
return e && !
|
|
639
|
+
return e && !j(e) ? e : t && !j(t) ? t : n && r;
|
|
637
640
|
}
|
|
638
641
|
initItem(e, t) {
|
|
639
|
-
if (
|
|
642
|
+
if (M(t)) {
|
|
640
643
|
var n, r, i, a, o, s;
|
|
641
644
|
let c = t == null ? void 0 : t[(n = (r = this.keyValue) == null ? void 0 : r.value) == null ? "value" : n], l = (i = t == null ? void 0 : t[(a = (o = this.keyLabel) == null ? void 0 : o.value) == null ? "label" : a]) == null ? c : i, u = this.getIndex(t == null ? void 0 : t.index, c, e, l);
|
|
642
645
|
return {
|
|
@@ -656,9 +659,9 @@ var Ne = class {
|
|
|
656
659
|
value: e
|
|
657
660
|
};
|
|
658
661
|
}
|
|
659
|
-
},
|
|
662
|
+
}, Ne = "__ui:router-item-ref__", X = class {
|
|
660
663
|
static get() {
|
|
661
|
-
return
|
|
664
|
+
return y.get(Ne);
|
|
662
665
|
}
|
|
663
666
|
static getLink(e, t, n) {
|
|
664
667
|
var r;
|
|
@@ -680,173 +683,188 @@ var Ne = class {
|
|
|
680
683
|
t && t.push(e).then();
|
|
681
684
|
}
|
|
682
685
|
static set(e) {
|
|
683
|
-
|
|
686
|
+
y.set(Ne, () => e);
|
|
684
687
|
}
|
|
685
688
|
static setOneTime(e) {
|
|
686
689
|
this.get() || this.set(e);
|
|
687
690
|
}
|
|
688
691
|
static rawToHref(e) {
|
|
689
|
-
return
|
|
692
|
+
return M(e) && "name" in e && P(e == null ? void 0 : e.name) ? this.getHref(e.name) : {};
|
|
690
693
|
}
|
|
691
|
-
},
|
|
694
|
+
}, Pe = class {
|
|
692
695
|
constructor() {
|
|
693
|
-
|
|
696
|
+
H(this, "item", R()), H(this, "width", R(0)), H(this, "is", I(() => this.item.value !== void 0)), k() && (_.is().then((e) => {
|
|
694
697
|
this.item.value = e;
|
|
695
|
-
}),
|
|
698
|
+
}), _.get().then((e) => {
|
|
696
699
|
this.width.value = e;
|
|
697
700
|
}));
|
|
698
701
|
}
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
702
|
+
};
|
|
703
|
+
//#endregion
|
|
704
|
+
//#region src/functions/ref/getApiErrorRef.ts
|
|
705
|
+
function Fe(e) {
|
|
706
|
+
return I(() => {
|
|
707
|
+
if (!(!e.value || D(e.value) || !M(e.value))) return e.value.errorObject;
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
//#endregion
|
|
711
|
+
//#region src/functions/getOptions.ts
|
|
712
|
+
var Ie = (e) => typeof e == "string" ? { method: e } : e || {}, Z;
|
|
713
|
+
function Le(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
714
|
+
let d = R(), f = K(Ie(r)), p = R(!1), m = R(!1), h = R(), g, _ = !0, v, y = () => {
|
|
715
|
+
let e = U(n);
|
|
716
|
+
return !!((!a || a.value) && e);
|
|
717
|
+
}, b = () => ({
|
|
718
|
+
path: U(n),
|
|
719
|
+
...f.value
|
|
720
|
+
}), x = () => {
|
|
721
|
+
if (k() && y()) {
|
|
722
|
+
let e = u.getResponse().emulatorAsync(b());
|
|
723
|
+
e && (d.value = e);
|
|
711
724
|
}
|
|
712
|
-
},
|
|
713
|
-
if (!
|
|
714
|
-
|
|
725
|
+
}, S = async () => {
|
|
726
|
+
if (!_) if (g && g.abort(), g = f.value.controller || new AbortController(), y()) {
|
|
727
|
+
p.value = !0, m.value = !0;
|
|
715
728
|
try {
|
|
716
|
-
let e = await
|
|
717
|
-
controller:
|
|
718
|
-
...
|
|
729
|
+
let e = await u.request({
|
|
730
|
+
controller: g,
|
|
731
|
+
...b()
|
|
719
732
|
});
|
|
720
|
-
e && (
|
|
733
|
+
e && (h.value = s == null ? void 0 : s(e), o ? d.value = o(e, h.value) : d.value = e);
|
|
721
734
|
} catch (e) {
|
|
722
|
-
|
|
735
|
+
d.value = void 0;
|
|
723
736
|
}
|
|
724
|
-
|
|
725
|
-
} else
|
|
726
|
-
},
|
|
727
|
-
|
|
728
|
-
},
|
|
729
|
-
if (
|
|
730
|
-
if (
|
|
731
|
-
|
|
737
|
+
p.value = !1;
|
|
738
|
+
} else d.value !== void 0 && (d.value = void 0);
|
|
739
|
+
}, C = () => {
|
|
740
|
+
v == null || v(), d.value = void 0, _ = !0;
|
|
741
|
+
}, w = () => {
|
|
742
|
+
if (_) {
|
|
743
|
+
if (_ = !1, c) {
|
|
744
|
+
let e = b();
|
|
745
|
+
t.add(c, e.path, e.method);
|
|
746
|
+
}
|
|
747
|
+
if (!k()) return;
|
|
748
|
+
x(), d.value === void 0 && S().then(), l ? E() : q.run(() => E());
|
|
732
749
|
}
|
|
733
750
|
};
|
|
734
|
-
|
|
735
|
-
let
|
|
736
|
-
|
|
737
|
-
|
|
751
|
+
l && ae() && ue(() => C());
|
|
752
|
+
let T = () => {
|
|
753
|
+
k() || le(async () => {
|
|
754
|
+
_ = !1, await S();
|
|
738
755
|
});
|
|
739
|
-
},
|
|
756
|
+
}, E = () => {
|
|
740
757
|
let e = [];
|
|
741
|
-
|
|
742
|
-
|
|
758
|
+
i && e.push(f), L(n) && e.push(n), a && e.push(a), Z && e.push(Z), e.length > 0 && (v = B(e, async () => {
|
|
759
|
+
p.value || await S();
|
|
743
760
|
}));
|
|
744
|
-
},
|
|
761
|
+
}, D = I(() => (w(), d.value)), O = Fe(d), A = I(() => Array.isArray(d.value) ? d.value.length : +!!d.value), j = I(() => d.value === void 0);
|
|
745
762
|
return {
|
|
746
|
-
data:
|
|
763
|
+
data: D,
|
|
747
764
|
get item() {
|
|
748
|
-
return
|
|
765
|
+
return w(), d;
|
|
749
766
|
},
|
|
750
|
-
|
|
767
|
+
errorItem: O,
|
|
768
|
+
isResponseContractValid: I(() => {
|
|
751
769
|
var e;
|
|
752
|
-
return ((e =
|
|
770
|
+
return ((e = h.value) == null ? void 0 : e.status) === "success";
|
|
753
771
|
}),
|
|
754
|
-
responseValidationResult:
|
|
755
|
-
length:
|
|
756
|
-
starting:
|
|
757
|
-
loading:
|
|
758
|
-
reading:
|
|
772
|
+
responseValidationResult: I(() => h.value),
|
|
773
|
+
length: A,
|
|
774
|
+
starting: j,
|
|
775
|
+
loading: p,
|
|
776
|
+
reading: m,
|
|
759
777
|
isStarting() {
|
|
760
|
-
return
|
|
778
|
+
return d.value === void 0;
|
|
761
779
|
},
|
|
762
780
|
isLoading() {
|
|
763
|
-
return
|
|
781
|
+
return p.value;
|
|
764
782
|
},
|
|
765
783
|
isReading() {
|
|
766
|
-
return
|
|
784
|
+
return m.value;
|
|
767
785
|
},
|
|
768
786
|
getItem() {
|
|
769
|
-
return
|
|
787
|
+
return d.value;
|
|
770
788
|
},
|
|
771
|
-
init:
|
|
772
|
-
initSsr:
|
|
773
|
-
reset:
|
|
774
|
-
stop:
|
|
775
|
-
abort: () =>
|
|
789
|
+
init: w,
|
|
790
|
+
initSsr: T,
|
|
791
|
+
reset: S,
|
|
792
|
+
stop: C,
|
|
793
|
+
abort: () => g == null ? void 0 : g.abort()
|
|
776
794
|
};
|
|
777
795
|
}
|
|
778
|
-
var
|
|
779
|
-
|
|
796
|
+
var Re = (e) => {
|
|
797
|
+
Z || (Z = e);
|
|
780
798
|
};
|
|
781
799
|
//#endregion
|
|
782
800
|
//#region src/composables/ref/useApiAsyncRef.ts
|
|
783
|
-
function
|
|
784
|
-
let
|
|
785
|
-
return
|
|
801
|
+
function ze(t, n, r = !0, i, a, o, s, c = !0, l = e.getItem()) {
|
|
802
|
+
let u = Le(t, n, r, i, a, o, s, c, l);
|
|
803
|
+
return u.initSsr(), u;
|
|
786
804
|
}
|
|
787
805
|
//#endregion
|
|
788
806
|
//#region src/composables/ref/useApiRequest.ts
|
|
789
|
-
function
|
|
790
|
-
let
|
|
791
|
-
return {
|
|
792
|
-
loading:
|
|
807
|
+
function Q(r, i = n.post, a, o, s, c = !0, l, u = e.getItem()) {
|
|
808
|
+
let d = R(!1), f = K(Ie(l));
|
|
809
|
+
return s && t.add(s, U(r), i), {
|
|
810
|
+
loading: d,
|
|
793
811
|
async send(e) {
|
|
794
|
-
|
|
812
|
+
d.value = !0;
|
|
795
813
|
let t;
|
|
796
814
|
try {
|
|
797
|
-
if (t = await
|
|
798
|
-
path:
|
|
799
|
-
method:
|
|
815
|
+
if (t = await u.request({
|
|
816
|
+
path: U(r),
|
|
817
|
+
method: i,
|
|
800
818
|
request: e,
|
|
801
|
-
toData:
|
|
802
|
-
...
|
|
803
|
-
}), t && (
|
|
804
|
-
let e =
|
|
819
|
+
toData: c,
|
|
820
|
+
...f.value
|
|
821
|
+
}), t && (o && (t = o(t)), a)) {
|
|
822
|
+
let e = a(t);
|
|
805
823
|
e instanceof Promise && await e;
|
|
806
824
|
}
|
|
807
825
|
} catch (e) {
|
|
808
826
|
t = void 0;
|
|
809
827
|
}
|
|
810
|
-
return
|
|
828
|
+
return d.value = !1, t;
|
|
811
829
|
}
|
|
812
830
|
};
|
|
813
831
|
}
|
|
814
832
|
//#endregion
|
|
815
833
|
//#region src/composables/ref/useApiDelete.ts
|
|
816
|
-
function
|
|
817
|
-
return
|
|
834
|
+
function Be(e, t, r, i, a = !0, o, s) {
|
|
835
|
+
return Q(e, n.delete, t, r, i, a, o, s);
|
|
818
836
|
}
|
|
819
837
|
//#endregion
|
|
820
838
|
//#region src/composables/ref/useApiGet.ts
|
|
821
|
-
function
|
|
822
|
-
return
|
|
839
|
+
function Ve(e, t, r, i, a = !0, o, s) {
|
|
840
|
+
return Q(e, n.get, t, r, i, a, o, s);
|
|
823
841
|
}
|
|
824
842
|
//#endregion
|
|
825
843
|
//#region src/composables/ref/useApiPost.ts
|
|
826
|
-
function
|
|
827
|
-
return
|
|
844
|
+
function He(e, t, r, i, a = !0, o, s) {
|
|
845
|
+
return Q(e, n.post, t, r, i, a, o, s);
|
|
828
846
|
}
|
|
829
847
|
//#endregion
|
|
830
848
|
//#region src/composables/ref/useApiPut.ts
|
|
831
|
-
function
|
|
832
|
-
return
|
|
849
|
+
function Ue(e, t, r, i, a = !0, o, s) {
|
|
850
|
+
return Q(e, n.put, t, r, i, a, o, s);
|
|
833
851
|
}
|
|
834
852
|
//#endregion
|
|
835
853
|
//#region src/composables/ref/useFormattersRef.ts
|
|
836
|
-
function
|
|
837
|
-
let n = new
|
|
854
|
+
function We(e, t) {
|
|
855
|
+
let n = new l(t);
|
|
838
856
|
return {
|
|
839
|
-
listFormat:
|
|
840
|
-
length:
|
|
857
|
+
listFormat: I(() => n.setList(e.value).to()),
|
|
858
|
+
length: I(() => n.setList(e.value).length())
|
|
841
859
|
};
|
|
842
860
|
}
|
|
843
861
|
//#endregion
|
|
844
862
|
//#region src/composables/ref/useSearchValueRef.ts
|
|
845
|
-
function
|
|
846
|
-
let n = t == null ?
|
|
847
|
-
return
|
|
863
|
+
function Ge(e, t) {
|
|
864
|
+
let n = t == null ? R("") : t, r = R(n.value), i = R(!1), a;
|
|
865
|
+
return B(n, (t, o, s) => {
|
|
848
866
|
let c = e.getOptions().getDelay();
|
|
849
|
-
c &&
|
|
867
|
+
c && k() ? (i.value = !0, a = setTimeout(() => {
|
|
850
868
|
a = void 0, r.value = n.value, i.value = !1;
|
|
851
869
|
}, c), s(() => {
|
|
852
870
|
a && clearTimeout(a);
|
|
@@ -859,129 +877,130 @@ function We(e, t) {
|
|
|
859
877
|
}
|
|
860
878
|
//#endregion
|
|
861
879
|
//#region src/composables/ref/useSearchRef.ts
|
|
862
|
-
function
|
|
863
|
-
let i = new
|
|
880
|
+
function Ke(e, t, n, r) {
|
|
881
|
+
let i = new v(void 0, t, void 0, r), { search: a, searchDelay: o, loading: s } = Ge(i, n), c = () => U(x(e)) || [], l = I(() => i.setValue(o.value).getItem().isSearch()), u = I(() => i.setList(c()).setValue(o.value).to());
|
|
864
882
|
return {
|
|
865
883
|
isSearch: l,
|
|
866
884
|
search: a,
|
|
867
885
|
loading: s,
|
|
868
886
|
listSearch: u,
|
|
869
|
-
length:
|
|
887
|
+
length: I(() => u.value.length)
|
|
870
888
|
};
|
|
871
889
|
}
|
|
872
890
|
//#endregion
|
|
873
891
|
//#region src/composables/ref/useApiManagementRef.ts
|
|
874
|
-
function
|
|
875
|
-
let { path: c, options: l, reactivity: u, conditions: d, transformation: f, validateResponseContract: p,
|
|
876
|
-
if (t && (
|
|
892
|
+
function qe(e, t, n, r, i, a, o, s) {
|
|
893
|
+
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, C, 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);
|
|
894
|
+
if (t && (v = We(E, t)), n && (y = Ke(I(() => {
|
|
877
895
|
var e;
|
|
878
|
-
let t = (e =
|
|
896
|
+
let t = (e = v == null ? void 0 : v.listFormat.value) == null ? w.data.value : e;
|
|
879
897
|
if (Array.isArray(t)) return t;
|
|
880
898
|
}), n.columns, n.value, n.options)), r || i || a) {
|
|
881
899
|
let e = (e) => {
|
|
882
|
-
o == null || o(),
|
|
900
|
+
o == null || o(), D(e) && w.reset().then();
|
|
883
901
|
}, t = (t) => async (n) => {
|
|
884
|
-
|
|
902
|
+
A(t) && await S(t(n)), e(n);
|
|
885
903
|
};
|
|
886
|
-
r && (
|
|
904
|
+
r && (b = He(r.path, t(r.action), r.transformation, r.errorContract, r.toData, r.options, s)), i && (x = Ue(i.path, t(i.action), i.transformation, i.errorContract, i.toData, i.options, s)), a && (C = Be(a.path, t(a.action), a.transformation, a.errorContract, a.toData, a.options, s));
|
|
887
905
|
}
|
|
888
|
-
let
|
|
889
|
-
if (
|
|
890
|
-
if (
|
|
891
|
-
if (
|
|
906
|
+
let O = I(() => {
|
|
907
|
+
if (T.value) {
|
|
908
|
+
if (y && Array.isArray(w.data.value)) return y.listSearch.value;
|
|
909
|
+
if (v) return v.listFormat.value;
|
|
892
910
|
}
|
|
893
|
-
return
|
|
911
|
+
return E.value;
|
|
894
912
|
});
|
|
895
913
|
return {
|
|
896
|
-
isValid:
|
|
897
|
-
isResponseContractValid:
|
|
898
|
-
responseValidationResult:
|
|
899
|
-
list:
|
|
914
|
+
isValid: T,
|
|
915
|
+
isResponseContractValid: w.isResponseContractValid,
|
|
916
|
+
responseValidationResult: w.responseValidationResult,
|
|
917
|
+
list: O,
|
|
900
918
|
get data() {
|
|
901
|
-
return
|
|
919
|
+
return w.data;
|
|
902
920
|
},
|
|
921
|
+
errorItem: w.errorItem,
|
|
903
922
|
get length() {
|
|
904
|
-
return
|
|
923
|
+
return y ? y.length : w.length;
|
|
905
924
|
},
|
|
906
|
-
lengthData:
|
|
907
|
-
starting:
|
|
908
|
-
reading:
|
|
909
|
-
loading:
|
|
910
|
-
loadingSearch:
|
|
911
|
-
loadingPost:
|
|
912
|
-
loadingPut:
|
|
913
|
-
loadingDelete:
|
|
914
|
-
isSearch:
|
|
915
|
-
search:
|
|
916
|
-
init:
|
|
917
|
-
initSsr:
|
|
918
|
-
reset:
|
|
919
|
-
abort:
|
|
920
|
-
sendPost: async (e) => await (
|
|
921
|
-
sendPut: async (e) => await (
|
|
922
|
-
sendDelete: async (e) => await (
|
|
925
|
+
lengthData: w.length,
|
|
926
|
+
starting: w.starting,
|
|
927
|
+
reading: w.reading,
|
|
928
|
+
loading: w.loading,
|
|
929
|
+
loadingSearch: y == null ? void 0 : y.loading,
|
|
930
|
+
loadingPost: b == null ? void 0 : b.loading,
|
|
931
|
+
loadingPut: x == null ? void 0 : x.loading,
|
|
932
|
+
loadingDelete: C == null ? void 0 : C.loading,
|
|
933
|
+
isSearch: y == null ? void 0 : y.isSearch,
|
|
934
|
+
search: y == null ? void 0 : y.search,
|
|
935
|
+
init: w.init,
|
|
936
|
+
initSsr: w.initSsr,
|
|
937
|
+
reset: w.reset,
|
|
938
|
+
abort: w.abort,
|
|
939
|
+
sendPost: async (e) => await (b == null ? void 0 : b.send(e)),
|
|
940
|
+
sendPut: async (e) => await (x == null ? void 0 : x.send(e)),
|
|
941
|
+
sendDelete: async (e) => await (C == null ? void 0 : C.send(e))
|
|
923
942
|
};
|
|
924
943
|
}
|
|
925
944
|
//#endregion
|
|
926
945
|
//#region src/composables/ref/useApiManagementAsyncRef.ts
|
|
927
|
-
function
|
|
928
|
-
let c =
|
|
946
|
+
function Je(e, t, n, r, i, a, o, s) {
|
|
947
|
+
let c = qe(e, t, n, r, i, a, o, s);
|
|
929
948
|
return c.initSsr(), c;
|
|
930
949
|
}
|
|
931
950
|
//#endregion
|
|
932
951
|
//#region src/composables/ref/useBroadcastValueRef.ts
|
|
933
|
-
var
|
|
934
|
-
function
|
|
935
|
-
let
|
|
936
|
-
if (
|
|
937
|
-
let a =
|
|
938
|
-
if (
|
|
939
|
-
let e = new n
|
|
952
|
+
var Ye = () => y.get("__ui:broadcast-value-ref__", () => ({}));
|
|
953
|
+
function Xe(e, t) {
|
|
954
|
+
let n = `broadcast--${e}`, i = Ye();
|
|
955
|
+
if (n in i) return i[n];
|
|
956
|
+
let a = R(x(t));
|
|
957
|
+
if (k()) {
|
|
958
|
+
let e = new r(n, (e) => {
|
|
940
959
|
a.value !== e.data.message && (a.value = e.data.message);
|
|
941
960
|
});
|
|
942
|
-
|
|
943
|
-
|
|
961
|
+
q.run(() => {
|
|
962
|
+
B(a, (t) => e.post({ message: t }));
|
|
944
963
|
});
|
|
945
964
|
}
|
|
946
|
-
return i[
|
|
965
|
+
return i[n] = a, a;
|
|
947
966
|
}
|
|
948
967
|
//#endregion
|
|
949
968
|
//#region src/composables/ref/useCookieRef.ts
|
|
950
|
-
var
|
|
951
|
-
function
|
|
952
|
-
let
|
|
953
|
-
if (e in
|
|
954
|
-
let a = new
|
|
955
|
-
return
|
|
956
|
-
|
|
969
|
+
var Ze = () => y.get("__ui:cookie-ref__", () => ({}));
|
|
970
|
+
function Qe(e, t, n) {
|
|
971
|
+
let r = Ze();
|
|
972
|
+
if (e in r) return r[e];
|
|
973
|
+
let a = new i(e), o = Xe(`__cookie:${e}`, a.get(t, n));
|
|
974
|
+
return q.run(() => {
|
|
975
|
+
B(o, (e) => {
|
|
957
976
|
a.set(e, n);
|
|
958
977
|
});
|
|
959
|
-
}),
|
|
978
|
+
}), r[e] = o, o;
|
|
960
979
|
}
|
|
961
980
|
//#endregion
|
|
962
981
|
//#region src/composables/ref/useGeoIntlRef.ts
|
|
963
|
-
function
|
|
964
|
-
return new
|
|
982
|
+
function $e() {
|
|
983
|
+
return new je();
|
|
965
984
|
}
|
|
966
985
|
//#endregion
|
|
967
986
|
//#region src/composables/ref/useHashRef.ts
|
|
968
|
-
var
|
|
969
|
-
function
|
|
970
|
-
let n =
|
|
987
|
+
var et = () => y.get("__ui:hash-ref__", () => ({}));
|
|
988
|
+
function tt(e, t) {
|
|
989
|
+
let n = et();
|
|
971
990
|
if (e in n) return n[e];
|
|
972
|
-
let r =
|
|
973
|
-
return
|
|
974
|
-
|
|
975
|
-
}),
|
|
991
|
+
let r = z(p.get(e, t));
|
|
992
|
+
return k() && (q.run(() => {
|
|
993
|
+
B(r, (t) => p.set(e, t));
|
|
994
|
+
}), p.addWatch(e, (e) => {
|
|
976
995
|
r.value = e;
|
|
977
996
|
})), n[e] = r, r;
|
|
978
997
|
}
|
|
979
998
|
//#endregion
|
|
980
999
|
//#region src/composables/ref/useLazyRef.ts
|
|
981
|
-
var
|
|
982
|
-
let t = {}, n =
|
|
1000
|
+
var nt = (e = { rootMargin: "128px 0px" }) => {
|
|
1001
|
+
let t = {}, n = k() && "IntersectionObserver" in window ? new IntersectionObserver((e) => {
|
|
983
1002
|
e.forEach((e) => {
|
|
984
|
-
let n =
|
|
1003
|
+
let n = T(e.target);
|
|
985
1004
|
if (n in t) {
|
|
986
1005
|
let r = t[n];
|
|
987
1006
|
r.status.value = e.isIntersecting, r.ratio.value = e.intersectionRatio, r.entry.value = e;
|
|
@@ -989,7 +1008,7 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
989
1008
|
});
|
|
990
1009
|
}, e) : void 0, r = (e) => {
|
|
991
1010
|
if (e) {
|
|
992
|
-
let i =
|
|
1011
|
+
let i = T(e);
|
|
993
1012
|
if (i in t) {
|
|
994
1013
|
var r;
|
|
995
1014
|
n == null || n.unobserve(e), (r = t[i]) == null || r.stopWatch(), delete t[i];
|
|
@@ -999,19 +1018,19 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
999
1018
|
return {
|
|
1000
1019
|
intersectionObserver: n,
|
|
1001
1020
|
getItem(e) {
|
|
1002
|
-
return t[
|
|
1021
|
+
return t[T(e)];
|
|
1003
1022
|
},
|
|
1004
1023
|
addLazyItem(e) {
|
|
1005
|
-
let i =
|
|
1024
|
+
let i = z(!n);
|
|
1006
1025
|
if (n) {
|
|
1007
1026
|
let a;
|
|
1008
|
-
a =
|
|
1027
|
+
a = B(e, (o, s) => {
|
|
1009
1028
|
if (s && r(s), e.value) {
|
|
1010
|
-
let r =
|
|
1029
|
+
let r = T(e.value);
|
|
1011
1030
|
t[r] = {
|
|
1012
1031
|
status: i,
|
|
1013
|
-
ratio:
|
|
1014
|
-
entry:
|
|
1032
|
+
ratio: z(0),
|
|
1033
|
+
entry: z(void 0),
|
|
1015
1034
|
stopWatch: () => a == null ? void 0 : a()
|
|
1016
1035
|
}, n.observe(e.value);
|
|
1017
1036
|
} else r(e.value);
|
|
@@ -1022,16 +1041,16 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1022
1041
|
removeLazyItem: r,
|
|
1023
1042
|
disconnectLazy: () => n == null ? void 0 : n.disconnect()
|
|
1024
1043
|
};
|
|
1025
|
-
},
|
|
1026
|
-
let t =
|
|
1044
|
+
}, rt = () => y.get("__ui:lazy-item-by-margin-ref__", () => []), it = (e) => {
|
|
1045
|
+
let t = rt(), n = t.find((t) => t.rootMargin === e);
|
|
1027
1046
|
if (n) return n.item;
|
|
1028
|
-
let r =
|
|
1047
|
+
let r = nt({ rootMargin: e });
|
|
1029
1048
|
return t.push({
|
|
1030
1049
|
rootMargin: e,
|
|
1031
1050
|
item: r
|
|
1032
1051
|
}), r;
|
|
1033
|
-
},
|
|
1034
|
-
let n =
|
|
1052
|
+
}, at = (e, t) => {
|
|
1053
|
+
let n = it(t);
|
|
1035
1054
|
return {
|
|
1036
1055
|
lazyItemStatus: n.addLazyItem(e),
|
|
1037
1056
|
get lazyItem() {
|
|
@@ -1041,19 +1060,19 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1041
1060
|
};
|
|
1042
1061
|
//#endregion
|
|
1043
1062
|
//#region src/composables/ref/useLoadingRef.ts
|
|
1044
|
-
function
|
|
1045
|
-
let e =
|
|
1046
|
-
return
|
|
1063
|
+
function ot() {
|
|
1064
|
+
let e = z(h.is());
|
|
1065
|
+
return k() && h.registrationEvent(({ detail: t }) => {
|
|
1047
1066
|
e.value = t.loading;
|
|
1048
1067
|
}), e;
|
|
1049
1068
|
}
|
|
1050
1069
|
//#endregion
|
|
1051
1070
|
//#region src/functions/executeUse.ts
|
|
1052
|
-
var
|
|
1071
|
+
var st = /* @__PURE__ */ function(e) {
|
|
1053
1072
|
return e.global = "global", e.provide = "provide", e.local = "local", e;
|
|
1054
|
-
}({}),
|
|
1055
|
-
function $(e, t =
|
|
1056
|
-
let n =
|
|
1073
|
+
}({}), ct = 1, lt = ee(1e5, 999999), ut = () => `__execute_use${lt}::${ct++}`, dt = () => y.get("__ui:execute-use-global__", () => []);
|
|
1074
|
+
function $(e, t = "provide") {
|
|
1075
|
+
let n = ut(), r, i = (t) => {
|
|
1057
1076
|
let n = Object.freeze(e(...t));
|
|
1058
1077
|
return {
|
|
1059
1078
|
...n,
|
|
@@ -1063,7 +1082,7 @@ function $(e, t = Q.provide) {
|
|
|
1063
1082
|
};
|
|
1064
1083
|
}, a = (e) => {
|
|
1065
1084
|
let t = Object.freeze(i(e));
|
|
1066
|
-
return
|
|
1085
|
+
return de(n, t), t;
|
|
1067
1086
|
}, o = (e) => {
|
|
1068
1087
|
let t = i(e);
|
|
1069
1088
|
return Object.freeze({
|
|
@@ -1072,27 +1091,27 @@ function $(e, t = Q.provide) {
|
|
|
1072
1091
|
r = void 0;
|
|
1073
1092
|
}
|
|
1074
1093
|
});
|
|
1075
|
-
}, s = (...e) => t ===
|
|
1094
|
+
}, s = (...e) => t === "provide" ? ce(n, void 0) || a(e) : (r || q.run(() => {
|
|
1076
1095
|
r = o(e);
|
|
1077
1096
|
}), r);
|
|
1078
|
-
return t ===
|
|
1097
|
+
return t === "global" && dt().push(s), s;
|
|
1079
1098
|
}
|
|
1080
|
-
function
|
|
1081
|
-
return $(e,
|
|
1099
|
+
function ft(e) {
|
|
1100
|
+
return $(e, "global");
|
|
1082
1101
|
}
|
|
1083
|
-
function
|
|
1084
|
-
return $(e,
|
|
1102
|
+
function pt(e) {
|
|
1103
|
+
return $(e, "provide");
|
|
1085
1104
|
}
|
|
1086
|
-
function
|
|
1087
|
-
return $(e,
|
|
1105
|
+
function mt(e) {
|
|
1106
|
+
return $(e, "local");
|
|
1088
1107
|
}
|
|
1089
|
-
function
|
|
1090
|
-
|
|
1108
|
+
function ht() {
|
|
1109
|
+
dt().forEach((e) => e());
|
|
1091
1110
|
}
|
|
1092
1111
|
//#endregion
|
|
1093
1112
|
//#region src/composables/ref/useMeta.ts
|
|
1094
|
-
var
|
|
1095
|
-
let e =
|
|
1113
|
+
var gt = mt(() => {
|
|
1114
|
+
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) => {
|
|
1096
1115
|
t.value = e, x();
|
|
1097
1116
|
}, d = (e) => {
|
|
1098
1117
|
n.value = e, x();
|
|
@@ -1102,7 +1121,7 @@ var mt = ft(() => {
|
|
|
1102
1121
|
i.value = e, x();
|
|
1103
1122
|
}, m = (e) => {
|
|
1104
1123
|
a.value = e, x();
|
|
1105
|
-
},
|
|
1124
|
+
}, h = (e) => {
|
|
1106
1125
|
o.value = e, x();
|
|
1107
1126
|
}, _ = (e) => {
|
|
1108
1127
|
s.value = e, x();
|
|
@@ -1113,9 +1132,9 @@ var mt = ft(() => {
|
|
|
1113
1132
|
}, b = () => {
|
|
1114
1133
|
e.setTitle(t.value), e.setKeywords(n.value), e.setDescription(r.value), e.setImage(i.value), e.setCanonical(a.value), e.setRobots(o.value), e.setAuthor(s.value), e.setSiteName(c.value);
|
|
1115
1134
|
}, x = () => {
|
|
1116
|
-
|
|
1135
|
+
k() || b();
|
|
1117
1136
|
};
|
|
1118
|
-
return
|
|
1137
|
+
return B([
|
|
1119
1138
|
t,
|
|
1120
1139
|
n,
|
|
1121
1140
|
r,
|
|
@@ -1144,26 +1163,26 @@ var mt = ft(() => {
|
|
|
1144
1163
|
setAuthor: _,
|
|
1145
1164
|
setImage: p,
|
|
1146
1165
|
setCanonical: m,
|
|
1147
|
-
setRobots:
|
|
1166
|
+
setRobots: h,
|
|
1148
1167
|
setSiteName: v,
|
|
1149
1168
|
setSuffix: (t) => e.setSuffix(t)
|
|
1150
1169
|
};
|
|
1151
|
-
}),
|
|
1170
|
+
}), _t = () => gt(), vt = (e, t, n = !0) => {
|
|
1152
1171
|
var r;
|
|
1153
|
-
let i =
|
|
1172
|
+
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) => {
|
|
1154
1173
|
var n;
|
|
1155
1174
|
return (n = e.value) == null ? void 0 : n.find((e) => e.value === t);
|
|
1156
1175
|
}, s = (e) => {
|
|
1157
|
-
e && e !== i.value && o(e) && (i.value = e,
|
|
1176
|
+
e && e !== i.value && o(e) && (i.value = e, X.push({ name: e }));
|
|
1158
1177
|
};
|
|
1159
1178
|
return {
|
|
1160
|
-
item:
|
|
1179
|
+
item: I(() => a()),
|
|
1161
1180
|
selected: i,
|
|
1162
|
-
label:
|
|
1181
|
+
label: I(() => {
|
|
1163
1182
|
var e;
|
|
1164
1183
|
return ((e = a()) == null ? void 0 : e.label) || "";
|
|
1165
1184
|
}),
|
|
1166
|
-
list:
|
|
1185
|
+
list: I(() => e.value ? C(e.value, (e) => n && !("to" in e) ? {
|
|
1167
1186
|
...e,
|
|
1168
1187
|
to: { name: e.value }
|
|
1169
1188
|
} : e) : []),
|
|
@@ -1173,36 +1192,36 @@ var mt = ft(() => {
|
|
|
1173
1192
|
s((t = e.value) == null || (t = t[0]) == null ? void 0 : t.value);
|
|
1174
1193
|
}
|
|
1175
1194
|
};
|
|
1176
|
-
},
|
|
1177
|
-
function
|
|
1178
|
-
let n =
|
|
1195
|
+
}, yt = () => y.get("__ui:session-ref__", () => ({}));
|
|
1196
|
+
function bt(e, t) {
|
|
1197
|
+
let n = yt();
|
|
1179
1198
|
if (e in n) return n[e];
|
|
1180
|
-
let r = new
|
|
1181
|
-
return
|
|
1182
|
-
|
|
1183
|
-
}), n[e] =
|
|
1199
|
+
let r = new a(e, !0), i = R(r.get(t));
|
|
1200
|
+
return q.run(() => {
|
|
1201
|
+
B(i, (e) => r.set(e));
|
|
1202
|
+
}), n[e] = i, i;
|
|
1184
1203
|
}
|
|
1185
1204
|
//#endregion
|
|
1186
1205
|
//#region src/composables/ref/useStorageRef.ts
|
|
1187
|
-
var
|
|
1188
|
-
function
|
|
1189
|
-
let r =
|
|
1206
|
+
var xt = () => y.get("__ui:storage-ref__", () => ({}));
|
|
1207
|
+
function St(e, t, n) {
|
|
1208
|
+
let r = xt();
|
|
1190
1209
|
if (e in r) return r[e];
|
|
1191
|
-
let
|
|
1192
|
-
return
|
|
1193
|
-
|
|
1194
|
-
}),
|
|
1195
|
-
|
|
1210
|
+
let i = new a(e), o = R(i.get(t, n));
|
|
1211
|
+
return q.run(() => {
|
|
1212
|
+
B(o, (e) => i.set(e));
|
|
1213
|
+
}), k() && window.addEventListener("storage", () => {
|
|
1214
|
+
i.update(), o.value = i.get();
|
|
1196
1215
|
}), r[e] = o, o;
|
|
1197
1216
|
}
|
|
1198
1217
|
//#endregion
|
|
1199
1218
|
//#region src/composables/ref/useTranslateRef.ts
|
|
1200
|
-
function
|
|
1201
|
-
let n =
|
|
1219
|
+
function Ct(e, t = b.getItem()) {
|
|
1220
|
+
let n = z(t.getListSync(e, !0)), r = async () => {
|
|
1202
1221
|
n.value = { ...await t.getList(e) };
|
|
1203
1222
|
};
|
|
1204
|
-
if (
|
|
1205
|
-
|
|
1223
|
+
if (k()) {
|
|
1224
|
+
B(Y.getLanguage(), r);
|
|
1206
1225
|
for (let e in n.value) if (n.value[e] === e || n.value[e] === " ") {
|
|
1207
1226
|
r().then();
|
|
1208
1227
|
break;
|
|
@@ -1210,38 +1229,38 @@ function xt(e, t = y.getItem()) {
|
|
|
1210
1229
|
}
|
|
1211
1230
|
return n;
|
|
1212
1231
|
}
|
|
1213
|
-
var
|
|
1232
|
+
var wt = (e) => Ct(e);
|
|
1214
1233
|
//#endregion
|
|
1215
1234
|
//#region src/functions/computedAsync.ts
|
|
1216
|
-
function
|
|
1217
|
-
let i =
|
|
1218
|
-
let t = await
|
|
1235
|
+
function Tt(e, t, n, r) {
|
|
1236
|
+
let i = z(x(t)), a = !0, o = async () => {
|
|
1237
|
+
let t = await S(e);
|
|
1219
1238
|
t !== n && (i.value = t);
|
|
1220
1239
|
}, s = () => {
|
|
1221
|
-
a && (a = !1,
|
|
1240
|
+
a && (a = !1, k() ? ge(o) : o().then());
|
|
1222
1241
|
};
|
|
1223
|
-
return
|
|
1242
|
+
return I(() => (s(), i.value), r);
|
|
1224
1243
|
}
|
|
1225
1244
|
//#endregion
|
|
1226
1245
|
//#region src/functions/computedByLanguage.ts
|
|
1227
|
-
function
|
|
1228
|
-
return
|
|
1229
|
-
if (
|
|
1246
|
+
function Et(e, t = () => void 0, n, r) {
|
|
1247
|
+
return I(() => {
|
|
1248
|
+
if (Y.get().value && (n === void 0 || n())) {
|
|
1230
1249
|
let t = e();
|
|
1231
1250
|
if (t !== void 0) return t;
|
|
1232
1251
|
}
|
|
1233
|
-
return
|
|
1252
|
+
return x(t);
|
|
1234
1253
|
}, r);
|
|
1235
1254
|
}
|
|
1236
1255
|
//#endregion
|
|
1237
1256
|
//#region src/functions/computedEternity.ts
|
|
1238
|
-
function
|
|
1239
|
-
return
|
|
1240
|
-
let i =
|
|
1241
|
-
i.value = await
|
|
1257
|
+
function Dt(e, t) {
|
|
1258
|
+
return re((n, r) => {
|
|
1259
|
+
let i = z(x(t)), a = !1, o = async () => {
|
|
1260
|
+
i.value = await S(e), r();
|
|
1242
1261
|
}, s = () => {
|
|
1243
|
-
a || (a = !0,
|
|
1244
|
-
|
|
1262
|
+
a || (a = !0, k() ? q.run(() => {
|
|
1263
|
+
ge(async () => await o());
|
|
1245
1264
|
}) : o().then());
|
|
1246
1265
|
};
|
|
1247
1266
|
return {
|
|
@@ -1256,37 +1275,37 @@ function Tt(e, t) {
|
|
|
1256
1275
|
}
|
|
1257
1276
|
//#endregion
|
|
1258
1277
|
//#region src/functions/dxtFunctionalPlugin.ts
|
|
1259
|
-
var
|
|
1260
|
-
if (n.api && e.setConfig(n.api), n.translate &&
|
|
1278
|
+
var Ot = { install(t, n = {}) {
|
|
1279
|
+
if (n.api && e.setConfig(n.api), n.translate && b.setConfig(n.translate), n.icons && m.setConfig(n.icons), n.metaSuffix && _t().setSuffix(n.metaSuffix), n.router) X.set(n.router);
|
|
1261
1280
|
else {
|
|
1262
1281
|
let e = t.config.globalProperties.$router;
|
|
1263
|
-
e &&
|
|
1282
|
+
e && X.set(e);
|
|
1264
1283
|
}
|
|
1265
|
-
n.errorCauses &&
|
|
1284
|
+
n.errorCauses && s.addList(n.errorCauses), ht();
|
|
1266
1285
|
} };
|
|
1267
1286
|
//#endregion
|
|
1268
1287
|
//#region src/functions/getInject.ts
|
|
1269
|
-
function
|
|
1270
|
-
if (
|
|
1271
|
-
let t =
|
|
1288
|
+
function kt(e) {
|
|
1289
|
+
if (se()) {
|
|
1290
|
+
let t = ce(e);
|
|
1272
1291
|
if (t) return t;
|
|
1273
1292
|
}
|
|
1274
1293
|
}
|
|
1275
1294
|
//#endregion
|
|
1276
1295
|
//#region src/functions/render/getBind.ts
|
|
1277
|
-
function
|
|
1296
|
+
function At(e, t = {}, n = "value", r = !1) {
|
|
1278
1297
|
let i = typeof t == "string", a = i ? t : n, o = i ? {} : t;
|
|
1279
|
-
return e ? e &&
|
|
1298
|
+
return e ? e && M(e) && (a in e || r) ? W(o, e) : W(o, { [a]: e }) : i ? {} : { ...o };
|
|
1280
1299
|
}
|
|
1281
1300
|
//#endregion
|
|
1282
1301
|
//#region src/functions/ref/getBindRef.ts
|
|
1283
|
-
function
|
|
1284
|
-
return
|
|
1302
|
+
function jt(e, t = {}, n = "value") {
|
|
1303
|
+
return I(() => At(U(e), U(t), n));
|
|
1285
1304
|
}
|
|
1286
1305
|
//#endregion
|
|
1287
1306
|
//#region src/functions/ref/setRef.ts
|
|
1288
|
-
function
|
|
1307
|
+
function Mt(e, t) {
|
|
1289
1308
|
e.value !== t && (e.value = t);
|
|
1290
1309
|
}
|
|
1291
1310
|
//#endregion
|
|
1292
|
-
export {
|
|
1311
|
+
export { Oe as DatetimeRef, be as DesignAbstract, xe as DesignAsyncAbstract, ye as DesignChanged, Ee as DesignComp, G as DesignComponents, De as DesignConstructorAbstract, q as EffectScopeGlobal, ke as EventRef, st as ExecuteUseType, Ae as GeoFlagRef, je as GeoIntlRef, Y as GeoRef, Me as ListDataRef, X as RouterItemRef, Pe as ScrollbarWidthRef, Tt as computedAsync, Et as computedByLanguage, Dt as computedEternity, Ot as dxtFunctionalPlugin, $ as executeUse, ft as executeUseGlobal, ht as executeUseGlobalInit, mt as executeUseLocal, pt as executeUseProvide, Fe as getApiErrorRef, At as getBind, jt as getBindRef, Se as getClassName, Ce as getIndexForRender, kt as getInject, Ie as getOptions, U as getRef, we as render, Re as setApiRefGlobalConditions, Mt as setRef, wt as t, W as toBind, Te 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, vt as useRouterList, Ke as useSearchRef, Ge as useSearchValueRef, bt as useSessionRef, St as useStorageRef, Ct as useTranslateRef };
|