@dxtmisha/functional 1.11.11 → 1.11.13
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 +19 -0
- package/ai-description.txt +3 -3
- package/ai-doc.ru.txt +11 -0
- package/ai-doc.txt +11 -0
- package/ai-types.txt +665 -289
- package/dist/library.js +406 -390
- 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/dxtFunctionalPlugin.d.ts +6 -1
- 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/package.json +1 -1
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
|
}
|
|
@@ -636,10 +636,10 @@ var Ne = class {
|
|
|
636
636
|
return t.parent === e && this.isItem(t);
|
|
637
637
|
}
|
|
638
638
|
getIndex(e, t, n, r) {
|
|
639
|
-
return e && !
|
|
639
|
+
return e && !j(e) ? e : t && !j(t) ? t : n && r;
|
|
640
640
|
}
|
|
641
641
|
initItem(e, t) {
|
|
642
|
-
if (
|
|
642
|
+
if (M(t)) {
|
|
643
643
|
var n, r, i, a, o, s;
|
|
644
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);
|
|
645
645
|
return {
|
|
@@ -659,9 +659,9 @@ var Ne = class {
|
|
|
659
659
|
value: e
|
|
660
660
|
};
|
|
661
661
|
}
|
|
662
|
-
},
|
|
662
|
+
}, Ne = "__ui:router-item-ref__", X = class {
|
|
663
663
|
static get() {
|
|
664
|
-
return
|
|
664
|
+
return y.get(Ne);
|
|
665
665
|
}
|
|
666
666
|
static getLink(e, t, n) {
|
|
667
667
|
var r;
|
|
@@ -683,173 +683,188 @@ var Ne = class {
|
|
|
683
683
|
t && t.push(e).then();
|
|
684
684
|
}
|
|
685
685
|
static set(e) {
|
|
686
|
-
|
|
686
|
+
y.set(Ne, () => e);
|
|
687
687
|
}
|
|
688
688
|
static setOneTime(e) {
|
|
689
689
|
this.get() || this.set(e);
|
|
690
690
|
}
|
|
691
691
|
static rawToHref(e) {
|
|
692
|
-
return
|
|
692
|
+
return M(e) && "name" in e && P(e == null ? void 0 : e.name) ? this.getHref(e.name) : {};
|
|
693
693
|
}
|
|
694
|
-
},
|
|
694
|
+
}, Pe = class {
|
|
695
695
|
constructor() {
|
|
696
|
-
|
|
696
|
+
H(this, "item", R()), H(this, "width", R(0)), H(this, "is", I(() => this.item.value !== void 0)), k() && (_.is().then((e) => {
|
|
697
697
|
this.item.value = e;
|
|
698
|
-
}),
|
|
698
|
+
}), _.get().then((e) => {
|
|
699
699
|
this.width.value = e;
|
|
700
700
|
}));
|
|
701
701
|
}
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
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);
|
|
714
724
|
}
|
|
715
|
-
},
|
|
716
|
-
if (!
|
|
717
|
-
|
|
725
|
+
}, S = async () => {
|
|
726
|
+
if (!_) if (g && g.abort(), g = f.value.controller || new AbortController(), y()) {
|
|
727
|
+
p.value = !0, m.value = !0;
|
|
718
728
|
try {
|
|
719
|
-
let e = await
|
|
720
|
-
controller:
|
|
721
|
-
...
|
|
729
|
+
let e = await u.request({
|
|
730
|
+
controller: g,
|
|
731
|
+
...b()
|
|
722
732
|
});
|
|
723
|
-
e && (
|
|
733
|
+
e && (h.value = s == null ? void 0 : s(e), o ? d.value = o(e, h.value) : d.value = e);
|
|
724
734
|
} catch (e) {
|
|
725
|
-
|
|
735
|
+
d.value = void 0;
|
|
726
736
|
}
|
|
727
|
-
|
|
728
|
-
} else
|
|
729
|
-
},
|
|
730
|
-
|
|
731
|
-
},
|
|
732
|
-
if (
|
|
733
|
-
if (
|
|
734
|
-
|
|
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());
|
|
735
749
|
}
|
|
736
750
|
};
|
|
737
|
-
|
|
738
|
-
let
|
|
739
|
-
|
|
740
|
-
|
|
751
|
+
l && ae() && ue(() => C());
|
|
752
|
+
let T = () => {
|
|
753
|
+
k() || le(async () => {
|
|
754
|
+
_ = !1, await S();
|
|
741
755
|
});
|
|
742
|
-
},
|
|
756
|
+
}, E = () => {
|
|
743
757
|
let e = [];
|
|
744
|
-
|
|
745
|
-
|
|
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();
|
|
746
760
|
}));
|
|
747
|
-
},
|
|
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);
|
|
748
762
|
return {
|
|
749
|
-
data:
|
|
763
|
+
data: D,
|
|
750
764
|
get item() {
|
|
751
|
-
return
|
|
765
|
+
return w(), d;
|
|
752
766
|
},
|
|
753
|
-
|
|
767
|
+
errorItem: O,
|
|
768
|
+
isResponseContractValid: I(() => {
|
|
754
769
|
var e;
|
|
755
|
-
return ((e =
|
|
770
|
+
return ((e = h.value) == null ? void 0 : e.status) === "success";
|
|
756
771
|
}),
|
|
757
|
-
responseValidationResult:
|
|
758
|
-
length:
|
|
759
|
-
starting:
|
|
760
|
-
loading:
|
|
761
|
-
reading:
|
|
772
|
+
responseValidationResult: I(() => h.value),
|
|
773
|
+
length: A,
|
|
774
|
+
starting: j,
|
|
775
|
+
loading: p,
|
|
776
|
+
reading: m,
|
|
762
777
|
isStarting() {
|
|
763
|
-
return
|
|
778
|
+
return d.value === void 0;
|
|
764
779
|
},
|
|
765
780
|
isLoading() {
|
|
766
|
-
return
|
|
781
|
+
return p.value;
|
|
767
782
|
},
|
|
768
783
|
isReading() {
|
|
769
|
-
return
|
|
784
|
+
return m.value;
|
|
770
785
|
},
|
|
771
786
|
getItem() {
|
|
772
|
-
return
|
|
787
|
+
return d.value;
|
|
773
788
|
},
|
|
774
|
-
init:
|
|
775
|
-
initSsr:
|
|
776
|
-
reset:
|
|
777
|
-
stop:
|
|
778
|
-
abort: () =>
|
|
789
|
+
init: w,
|
|
790
|
+
initSsr: T,
|
|
791
|
+
reset: S,
|
|
792
|
+
stop: C,
|
|
793
|
+
abort: () => g == null ? void 0 : g.abort()
|
|
779
794
|
};
|
|
780
795
|
}
|
|
781
|
-
var
|
|
782
|
-
|
|
796
|
+
var Re = (e) => {
|
|
797
|
+
Z || (Z = e);
|
|
783
798
|
};
|
|
784
799
|
//#endregion
|
|
785
800
|
//#region src/composables/ref/useApiAsyncRef.ts
|
|
786
|
-
function
|
|
787
|
-
let
|
|
788
|
-
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;
|
|
789
804
|
}
|
|
790
805
|
//#endregion
|
|
791
806
|
//#region src/composables/ref/useApiRequest.ts
|
|
792
|
-
function
|
|
793
|
-
let
|
|
794
|
-
return {
|
|
795
|
-
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,
|
|
796
811
|
async send(e) {
|
|
797
|
-
|
|
812
|
+
d.value = !0;
|
|
798
813
|
let t;
|
|
799
814
|
try {
|
|
800
|
-
if (t = await
|
|
801
|
-
path:
|
|
802
|
-
method:
|
|
815
|
+
if (t = await u.request({
|
|
816
|
+
path: U(r),
|
|
817
|
+
method: i,
|
|
803
818
|
request: e,
|
|
804
|
-
toData:
|
|
805
|
-
...
|
|
806
|
-
}), t && (
|
|
807
|
-
let e =
|
|
819
|
+
toData: c,
|
|
820
|
+
...f.value
|
|
821
|
+
}), t && (o && (t = o(t)), a)) {
|
|
822
|
+
let e = a(t);
|
|
808
823
|
e instanceof Promise && await e;
|
|
809
824
|
}
|
|
810
825
|
} catch (e) {
|
|
811
826
|
t = void 0;
|
|
812
827
|
}
|
|
813
|
-
return
|
|
828
|
+
return d.value = !1, t;
|
|
814
829
|
}
|
|
815
830
|
};
|
|
816
831
|
}
|
|
817
832
|
//#endregion
|
|
818
833
|
//#region src/composables/ref/useApiDelete.ts
|
|
819
|
-
function
|
|
820
|
-
return
|
|
834
|
+
function Be(e, t, r, i, a = !0, o, s) {
|
|
835
|
+
return Q(e, n.delete, t, r, i, a, o, s);
|
|
821
836
|
}
|
|
822
837
|
//#endregion
|
|
823
838
|
//#region src/composables/ref/useApiGet.ts
|
|
824
|
-
function
|
|
825
|
-
return
|
|
839
|
+
function Ve(e, t, r, i, a = !0, o, s) {
|
|
840
|
+
return Q(e, n.get, t, r, i, a, o, s);
|
|
826
841
|
}
|
|
827
842
|
//#endregion
|
|
828
843
|
//#region src/composables/ref/useApiPost.ts
|
|
829
|
-
function
|
|
830
|
-
return
|
|
844
|
+
function He(e, t, r, i, a = !0, o, s) {
|
|
845
|
+
return Q(e, n.post, t, r, i, a, o, s);
|
|
831
846
|
}
|
|
832
847
|
//#endregion
|
|
833
848
|
//#region src/composables/ref/useApiPut.ts
|
|
834
|
-
function
|
|
835
|
-
return
|
|
849
|
+
function Ue(e, t, r, i, a = !0, o, s) {
|
|
850
|
+
return Q(e, n.put, t, r, i, a, o, s);
|
|
836
851
|
}
|
|
837
852
|
//#endregion
|
|
838
853
|
//#region src/composables/ref/useFormattersRef.ts
|
|
839
|
-
function
|
|
840
|
-
let n = new
|
|
854
|
+
function We(e, t) {
|
|
855
|
+
let n = new l(t);
|
|
841
856
|
return {
|
|
842
|
-
listFormat:
|
|
843
|
-
length:
|
|
857
|
+
listFormat: I(() => n.setList(e.value).to()),
|
|
858
|
+
length: I(() => n.setList(e.value).length())
|
|
844
859
|
};
|
|
845
860
|
}
|
|
846
861
|
//#endregion
|
|
847
862
|
//#region src/composables/ref/useSearchValueRef.ts
|
|
848
|
-
function
|
|
849
|
-
let n = t == null ?
|
|
850
|
-
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) => {
|
|
851
866
|
let c = e.getOptions().getDelay();
|
|
852
|
-
c &&
|
|
867
|
+
c && k() ? (i.value = !0, a = setTimeout(() => {
|
|
853
868
|
a = void 0, r.value = n.value, i.value = !1;
|
|
854
869
|
}, c), s(() => {
|
|
855
870
|
a && clearTimeout(a);
|
|
@@ -862,129 +877,130 @@ function We(e, t) {
|
|
|
862
877
|
}
|
|
863
878
|
//#endregion
|
|
864
879
|
//#region src/composables/ref/useSearchRef.ts
|
|
865
|
-
function
|
|
866
|
-
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());
|
|
867
882
|
return {
|
|
868
883
|
isSearch: l,
|
|
869
884
|
search: a,
|
|
870
885
|
loading: s,
|
|
871
886
|
listSearch: u,
|
|
872
|
-
length:
|
|
887
|
+
length: I(() => u.value.length)
|
|
873
888
|
};
|
|
874
889
|
}
|
|
875
890
|
//#endregion
|
|
876
891
|
//#region src/composables/ref/useApiManagementRef.ts
|
|
877
|
-
function
|
|
878
|
-
let { path: c, options: l, reactivity: u, conditions: d, transformation: f, validateResponseContract: p,
|
|
879
|
-
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(() => {
|
|
880
895
|
var e;
|
|
881
|
-
let t = (e =
|
|
896
|
+
let t = (e = v == null ? void 0 : v.listFormat.value) == null ? w.data.value : e;
|
|
882
897
|
if (Array.isArray(t)) return t;
|
|
883
898
|
}), n.columns, n.value, n.options)), r || i || a) {
|
|
884
899
|
let e = (e) => {
|
|
885
|
-
o == null || o(),
|
|
900
|
+
o == null || o(), D(e) && w.reset().then();
|
|
886
901
|
}, t = (t) => async (n) => {
|
|
887
|
-
|
|
902
|
+
A(t) && await S(t(n)), e(n);
|
|
888
903
|
};
|
|
889
|
-
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));
|
|
890
905
|
}
|
|
891
|
-
let
|
|
892
|
-
if (
|
|
893
|
-
if (
|
|
894
|
-
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;
|
|
895
910
|
}
|
|
896
|
-
return
|
|
911
|
+
return E.value;
|
|
897
912
|
});
|
|
898
913
|
return {
|
|
899
|
-
isValid:
|
|
900
|
-
isResponseContractValid:
|
|
901
|
-
responseValidationResult:
|
|
902
|
-
list:
|
|
914
|
+
isValid: T,
|
|
915
|
+
isResponseContractValid: w.isResponseContractValid,
|
|
916
|
+
responseValidationResult: w.responseValidationResult,
|
|
917
|
+
list: O,
|
|
903
918
|
get data() {
|
|
904
|
-
return
|
|
919
|
+
return w.data;
|
|
905
920
|
},
|
|
921
|
+
errorItem: w.errorItem,
|
|
906
922
|
get length() {
|
|
907
|
-
return
|
|
923
|
+
return y ? y.length : w.length;
|
|
908
924
|
},
|
|
909
|
-
lengthData:
|
|
910
|
-
starting:
|
|
911
|
-
reading:
|
|
912
|
-
loading:
|
|
913
|
-
loadingSearch:
|
|
914
|
-
loadingPost:
|
|
915
|
-
loadingPut:
|
|
916
|
-
loadingDelete:
|
|
917
|
-
isSearch:
|
|
918
|
-
search:
|
|
919
|
-
init:
|
|
920
|
-
initSsr:
|
|
921
|
-
reset:
|
|
922
|
-
abort:
|
|
923
|
-
sendPost: async (e) => await (
|
|
924
|
-
sendPut: async (e) => await (
|
|
925
|
-
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))
|
|
926
942
|
};
|
|
927
943
|
}
|
|
928
944
|
//#endregion
|
|
929
945
|
//#region src/composables/ref/useApiManagementAsyncRef.ts
|
|
930
|
-
function
|
|
931
|
-
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);
|
|
932
948
|
return c.initSsr(), c;
|
|
933
949
|
}
|
|
934
950
|
//#endregion
|
|
935
951
|
//#region src/composables/ref/useBroadcastValueRef.ts
|
|
936
|
-
var
|
|
937
|
-
function
|
|
938
|
-
let
|
|
939
|
-
if (
|
|
940
|
-
let a =
|
|
941
|
-
if (
|
|
942
|
-
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) => {
|
|
943
959
|
a.value !== e.data.message && (a.value = e.data.message);
|
|
944
960
|
});
|
|
945
|
-
|
|
946
|
-
|
|
961
|
+
q.run(() => {
|
|
962
|
+
B(a, (t) => e.post({ message: t }));
|
|
947
963
|
});
|
|
948
964
|
}
|
|
949
|
-
return i[
|
|
965
|
+
return i[n] = a, a;
|
|
950
966
|
}
|
|
951
967
|
//#endregion
|
|
952
968
|
//#region src/composables/ref/useCookieRef.ts
|
|
953
|
-
var
|
|
954
|
-
function
|
|
955
|
-
let
|
|
956
|
-
if (e in
|
|
957
|
-
let a = new
|
|
958
|
-
return
|
|
959
|
-
|
|
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) => {
|
|
960
976
|
a.set(e, n);
|
|
961
977
|
});
|
|
962
|
-
}),
|
|
978
|
+
}), r[e] = o, o;
|
|
963
979
|
}
|
|
964
980
|
//#endregion
|
|
965
981
|
//#region src/composables/ref/useGeoIntlRef.ts
|
|
966
|
-
function
|
|
967
|
-
return new
|
|
982
|
+
function $e() {
|
|
983
|
+
return new je();
|
|
968
984
|
}
|
|
969
985
|
//#endregion
|
|
970
986
|
//#region src/composables/ref/useHashRef.ts
|
|
971
|
-
var
|
|
972
|
-
function
|
|
973
|
-
let n =
|
|
987
|
+
var et = () => y.get("__ui:hash-ref__", () => ({}));
|
|
988
|
+
function tt(e, t) {
|
|
989
|
+
let n = et();
|
|
974
990
|
if (e in n) return n[e];
|
|
975
|
-
let r =
|
|
976
|
-
return
|
|
977
|
-
|
|
978
|
-
}),
|
|
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) => {
|
|
979
995
|
r.value = e;
|
|
980
996
|
})), n[e] = r, r;
|
|
981
997
|
}
|
|
982
998
|
//#endregion
|
|
983
999
|
//#region src/composables/ref/useLazyRef.ts
|
|
984
|
-
var
|
|
985
|
-
let t = {}, n =
|
|
1000
|
+
var nt = (e = { rootMargin: "128px 0px" }) => {
|
|
1001
|
+
let t = {}, n = k() && "IntersectionObserver" in window ? new IntersectionObserver((e) => {
|
|
986
1002
|
e.forEach((e) => {
|
|
987
|
-
let n =
|
|
1003
|
+
let n = T(e.target);
|
|
988
1004
|
if (n in t) {
|
|
989
1005
|
let r = t[n];
|
|
990
1006
|
r.status.value = e.isIntersecting, r.ratio.value = e.intersectionRatio, r.entry.value = e;
|
|
@@ -992,7 +1008,7 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
992
1008
|
});
|
|
993
1009
|
}, e) : void 0, r = (e) => {
|
|
994
1010
|
if (e) {
|
|
995
|
-
let i =
|
|
1011
|
+
let i = T(e);
|
|
996
1012
|
if (i in t) {
|
|
997
1013
|
var r;
|
|
998
1014
|
n == null || n.unobserve(e), (r = t[i]) == null || r.stopWatch(), delete t[i];
|
|
@@ -1002,19 +1018,19 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1002
1018
|
return {
|
|
1003
1019
|
intersectionObserver: n,
|
|
1004
1020
|
getItem(e) {
|
|
1005
|
-
return t[
|
|
1021
|
+
return t[T(e)];
|
|
1006
1022
|
},
|
|
1007
1023
|
addLazyItem(e) {
|
|
1008
|
-
let i =
|
|
1024
|
+
let i = z(!n);
|
|
1009
1025
|
if (n) {
|
|
1010
1026
|
let a;
|
|
1011
|
-
a =
|
|
1027
|
+
a = B(e, (o, s) => {
|
|
1012
1028
|
if (s && r(s), e.value) {
|
|
1013
|
-
let r =
|
|
1029
|
+
let r = T(e.value);
|
|
1014
1030
|
t[r] = {
|
|
1015
1031
|
status: i,
|
|
1016
|
-
ratio:
|
|
1017
|
-
entry:
|
|
1032
|
+
ratio: z(0),
|
|
1033
|
+
entry: z(void 0),
|
|
1018
1034
|
stopWatch: () => a == null ? void 0 : a()
|
|
1019
1035
|
}, n.observe(e.value);
|
|
1020
1036
|
} else r(e.value);
|
|
@@ -1025,16 +1041,16 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1025
1041
|
removeLazyItem: r,
|
|
1026
1042
|
disconnectLazy: () => n == null ? void 0 : n.disconnect()
|
|
1027
1043
|
};
|
|
1028
|
-
},
|
|
1029
|
-
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);
|
|
1030
1046
|
if (n) return n.item;
|
|
1031
|
-
let r =
|
|
1047
|
+
let r = nt({ rootMargin: e });
|
|
1032
1048
|
return t.push({
|
|
1033
1049
|
rootMargin: e,
|
|
1034
1050
|
item: r
|
|
1035
1051
|
}), r;
|
|
1036
|
-
},
|
|
1037
|
-
let n =
|
|
1052
|
+
}, at = (e, t) => {
|
|
1053
|
+
let n = it(t);
|
|
1038
1054
|
return {
|
|
1039
1055
|
lazyItemStatus: n.addLazyItem(e),
|
|
1040
1056
|
get lazyItem() {
|
|
@@ -1044,19 +1060,19 @@ var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1044
1060
|
};
|
|
1045
1061
|
//#endregion
|
|
1046
1062
|
//#region src/composables/ref/useLoadingRef.ts
|
|
1047
|
-
function
|
|
1048
|
-
let e =
|
|
1049
|
-
return
|
|
1063
|
+
function ot() {
|
|
1064
|
+
let e = z(h.is());
|
|
1065
|
+
return k() && h.registrationEvent(({ detail: t }) => {
|
|
1050
1066
|
e.value = t.loading;
|
|
1051
1067
|
}), e;
|
|
1052
1068
|
}
|
|
1053
1069
|
//#endregion
|
|
1054
1070
|
//#region src/functions/executeUse.ts
|
|
1055
|
-
var
|
|
1071
|
+
var st = /* @__PURE__ */ function(e) {
|
|
1056
1072
|
return e.global = "global", e.provide = "provide", e.local = "local", e;
|
|
1057
|
-
}({}),
|
|
1058
|
-
function $(e, t =
|
|
1059
|
-
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) => {
|
|
1060
1076
|
let n = Object.freeze(e(...t));
|
|
1061
1077
|
return {
|
|
1062
1078
|
...n,
|
|
@@ -1066,7 +1082,7 @@ function $(e, t = Q.provide) {
|
|
|
1066
1082
|
};
|
|
1067
1083
|
}, a = (e) => {
|
|
1068
1084
|
let t = Object.freeze(i(e));
|
|
1069
|
-
return
|
|
1085
|
+
return de(n, t), t;
|
|
1070
1086
|
}, o = (e) => {
|
|
1071
1087
|
let t = i(e);
|
|
1072
1088
|
return Object.freeze({
|
|
@@ -1075,27 +1091,27 @@ function $(e, t = Q.provide) {
|
|
|
1075
1091
|
r = void 0;
|
|
1076
1092
|
}
|
|
1077
1093
|
});
|
|
1078
|
-
}, s = (...e) => t ===
|
|
1094
|
+
}, s = (...e) => t === "provide" ? ce(n, void 0) || a(e) : (r || q.run(() => {
|
|
1079
1095
|
r = o(e);
|
|
1080
1096
|
}), r);
|
|
1081
|
-
return t ===
|
|
1097
|
+
return t === "global" && dt().push(s), s;
|
|
1082
1098
|
}
|
|
1083
|
-
function
|
|
1084
|
-
return $(e,
|
|
1099
|
+
function ft(e) {
|
|
1100
|
+
return $(e, "global");
|
|
1085
1101
|
}
|
|
1086
|
-
function
|
|
1087
|
-
return $(e,
|
|
1102
|
+
function pt(e) {
|
|
1103
|
+
return $(e, "provide");
|
|
1088
1104
|
}
|
|
1089
|
-
function
|
|
1090
|
-
return $(e,
|
|
1105
|
+
function mt(e) {
|
|
1106
|
+
return $(e, "local");
|
|
1091
1107
|
}
|
|
1092
|
-
function
|
|
1093
|
-
|
|
1108
|
+
function ht() {
|
|
1109
|
+
dt().forEach((e) => e());
|
|
1094
1110
|
}
|
|
1095
1111
|
//#endregion
|
|
1096
1112
|
//#region src/composables/ref/useMeta.ts
|
|
1097
|
-
var
|
|
1098
|
-
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) => {
|
|
1099
1115
|
t.value = e, x();
|
|
1100
1116
|
}, d = (e) => {
|
|
1101
1117
|
n.value = e, x();
|
|
@@ -1105,7 +1121,7 @@ var mt = ft(() => {
|
|
|
1105
1121
|
i.value = e, x();
|
|
1106
1122
|
}, m = (e) => {
|
|
1107
1123
|
a.value = e, x();
|
|
1108
|
-
},
|
|
1124
|
+
}, h = (e) => {
|
|
1109
1125
|
o.value = e, x();
|
|
1110
1126
|
}, _ = (e) => {
|
|
1111
1127
|
s.value = e, x();
|
|
@@ -1116,9 +1132,9 @@ var mt = ft(() => {
|
|
|
1116
1132
|
}, b = () => {
|
|
1117
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);
|
|
1118
1134
|
}, x = () => {
|
|
1119
|
-
|
|
1135
|
+
k() || b();
|
|
1120
1136
|
};
|
|
1121
|
-
return
|
|
1137
|
+
return B([
|
|
1122
1138
|
t,
|
|
1123
1139
|
n,
|
|
1124
1140
|
r,
|
|
@@ -1147,26 +1163,26 @@ var mt = ft(() => {
|
|
|
1147
1163
|
setAuthor: _,
|
|
1148
1164
|
setImage: p,
|
|
1149
1165
|
setCanonical: m,
|
|
1150
|
-
setRobots:
|
|
1166
|
+
setRobots: h,
|
|
1151
1167
|
setSiteName: v,
|
|
1152
1168
|
setSuffix: (t) => e.setSuffix(t)
|
|
1153
1169
|
};
|
|
1154
|
-
}),
|
|
1170
|
+
}), _t = () => gt(), vt = (e, t, n = !0) => {
|
|
1155
1171
|
var r;
|
|
1156
|
-
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) => {
|
|
1157
1173
|
var n;
|
|
1158
1174
|
return (n = e.value) == null ? void 0 : n.find((e) => e.value === t);
|
|
1159
1175
|
}, s = (e) => {
|
|
1160
|
-
e && e !== i.value && o(e) && (i.value = e,
|
|
1176
|
+
e && e !== i.value && o(e) && (i.value = e, X.push({ name: e }));
|
|
1161
1177
|
};
|
|
1162
1178
|
return {
|
|
1163
|
-
item:
|
|
1179
|
+
item: I(() => a()),
|
|
1164
1180
|
selected: i,
|
|
1165
|
-
label:
|
|
1181
|
+
label: I(() => {
|
|
1166
1182
|
var e;
|
|
1167
1183
|
return ((e = a()) == null ? void 0 : e.label) || "";
|
|
1168
1184
|
}),
|
|
1169
|
-
list:
|
|
1185
|
+
list: I(() => e.value ? C(e.value, (e) => n && !("to" in e) ? {
|
|
1170
1186
|
...e,
|
|
1171
1187
|
to: { name: e.value }
|
|
1172
1188
|
} : e) : []),
|
|
@@ -1176,36 +1192,36 @@ var mt = ft(() => {
|
|
|
1176
1192
|
s((t = e.value) == null || (t = t[0]) == null ? void 0 : t.value);
|
|
1177
1193
|
}
|
|
1178
1194
|
};
|
|
1179
|
-
},
|
|
1180
|
-
function
|
|
1181
|
-
let n =
|
|
1195
|
+
}, yt = () => y.get("__ui:session-ref__", () => ({}));
|
|
1196
|
+
function bt(e, t) {
|
|
1197
|
+
let n = yt();
|
|
1182
1198
|
if (e in n) return n[e];
|
|
1183
|
-
let r = new
|
|
1184
|
-
return
|
|
1185
|
-
|
|
1186
|
-
}), 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;
|
|
1187
1203
|
}
|
|
1188
1204
|
//#endregion
|
|
1189
1205
|
//#region src/composables/ref/useStorageRef.ts
|
|
1190
|
-
var
|
|
1191
|
-
function
|
|
1192
|
-
let r =
|
|
1206
|
+
var xt = () => y.get("__ui:storage-ref__", () => ({}));
|
|
1207
|
+
function St(e, t, n) {
|
|
1208
|
+
let r = xt();
|
|
1193
1209
|
if (e in r) return r[e];
|
|
1194
|
-
let
|
|
1195
|
-
return
|
|
1196
|
-
|
|
1197
|
-
}),
|
|
1198
|
-
|
|
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();
|
|
1199
1215
|
}), r[e] = o, o;
|
|
1200
1216
|
}
|
|
1201
1217
|
//#endregion
|
|
1202
1218
|
//#region src/composables/ref/useTranslateRef.ts
|
|
1203
|
-
function
|
|
1204
|
-
let n =
|
|
1219
|
+
function Ct(e, t = b.getItem()) {
|
|
1220
|
+
let n = z(t.getListSync(e, !0)), r = async () => {
|
|
1205
1221
|
n.value = { ...await t.getList(e) };
|
|
1206
1222
|
};
|
|
1207
|
-
if (
|
|
1208
|
-
|
|
1223
|
+
if (k()) {
|
|
1224
|
+
B(Y.getLanguage(), r);
|
|
1209
1225
|
for (let e in n.value) if (n.value[e] === e || n.value[e] === " ") {
|
|
1210
1226
|
r().then();
|
|
1211
1227
|
break;
|
|
@@ -1213,38 +1229,38 @@ function xt(e, t = y.getItem()) {
|
|
|
1213
1229
|
}
|
|
1214
1230
|
return n;
|
|
1215
1231
|
}
|
|
1216
|
-
var
|
|
1232
|
+
var wt = (e) => Ct(e);
|
|
1217
1233
|
//#endregion
|
|
1218
1234
|
//#region src/functions/computedAsync.ts
|
|
1219
|
-
function
|
|
1220
|
-
let i =
|
|
1221
|
-
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);
|
|
1222
1238
|
t !== n && (i.value = t);
|
|
1223
1239
|
}, s = () => {
|
|
1224
|
-
a && (a = !1,
|
|
1240
|
+
a && (a = !1, k() ? ge(o) : o().then());
|
|
1225
1241
|
};
|
|
1226
|
-
return
|
|
1242
|
+
return I(() => (s(), i.value), r);
|
|
1227
1243
|
}
|
|
1228
1244
|
//#endregion
|
|
1229
1245
|
//#region src/functions/computedByLanguage.ts
|
|
1230
|
-
function
|
|
1231
|
-
return
|
|
1232
|
-
if (
|
|
1246
|
+
function Et(e, t = () => void 0, n, r) {
|
|
1247
|
+
return I(() => {
|
|
1248
|
+
if (Y.get().value && (n === void 0 || n())) {
|
|
1233
1249
|
let t = e();
|
|
1234
1250
|
if (t !== void 0) return t;
|
|
1235
1251
|
}
|
|
1236
|
-
return
|
|
1252
|
+
return x(t);
|
|
1237
1253
|
}, r);
|
|
1238
1254
|
}
|
|
1239
1255
|
//#endregion
|
|
1240
1256
|
//#region src/functions/computedEternity.ts
|
|
1241
|
-
function
|
|
1242
|
-
return
|
|
1243
|
-
let i =
|
|
1244
|
-
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();
|
|
1245
1261
|
}, s = () => {
|
|
1246
|
-
a || (a = !0,
|
|
1247
|
-
|
|
1262
|
+
a || (a = !0, k() ? q.run(() => {
|
|
1263
|
+
ge(async () => await o());
|
|
1248
1264
|
}) : o().then());
|
|
1249
1265
|
};
|
|
1250
1266
|
return {
|
|
@@ -1259,37 +1275,37 @@ function Tt(e, t) {
|
|
|
1259
1275
|
}
|
|
1260
1276
|
//#endregion
|
|
1261
1277
|
//#region src/functions/dxtFunctionalPlugin.ts
|
|
1262
|
-
var
|
|
1263
|
-
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);
|
|
1264
1280
|
else {
|
|
1265
1281
|
let e = t.config.globalProperties.$router;
|
|
1266
|
-
e &&
|
|
1282
|
+
e && X.set(e);
|
|
1267
1283
|
}
|
|
1268
|
-
n.errorCauses &&
|
|
1284
|
+
n.errorCauses && s.addList(n.errorCauses), n.errorHandlers && s.addHandlerList(n.errorHandlers), ht();
|
|
1269
1285
|
} };
|
|
1270
1286
|
//#endregion
|
|
1271
1287
|
//#region src/functions/getInject.ts
|
|
1272
|
-
function
|
|
1273
|
-
if (
|
|
1274
|
-
let t =
|
|
1288
|
+
function kt(e) {
|
|
1289
|
+
if (se()) {
|
|
1290
|
+
let t = ce(e);
|
|
1275
1291
|
if (t) return t;
|
|
1276
1292
|
}
|
|
1277
1293
|
}
|
|
1278
1294
|
//#endregion
|
|
1279
1295
|
//#region src/functions/render/getBind.ts
|
|
1280
|
-
function
|
|
1296
|
+
function At(e, t = {}, n = "value", r = !1) {
|
|
1281
1297
|
let i = typeof t == "string", a = i ? t : n, o = i ? {} : t;
|
|
1282
|
-
return e ? e &&
|
|
1298
|
+
return e ? e && M(e) && (a in e || r) ? W(o, e) : W(o, { [a]: e }) : i ? {} : { ...o };
|
|
1283
1299
|
}
|
|
1284
1300
|
//#endregion
|
|
1285
1301
|
//#region src/functions/ref/getBindRef.ts
|
|
1286
|
-
function
|
|
1287
|
-
return
|
|
1302
|
+
function jt(e, t = {}, n = "value") {
|
|
1303
|
+
return I(() => At(U(e), U(t), n));
|
|
1288
1304
|
}
|
|
1289
1305
|
//#endregion
|
|
1290
1306
|
//#region src/functions/ref/setRef.ts
|
|
1291
|
-
function
|
|
1307
|
+
function Mt(e, t) {
|
|
1292
1308
|
e.value !== t && (e.value = t);
|
|
1293
1309
|
}
|
|
1294
1310
|
//#endregion
|
|
1295
|
-
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 };
|