@dxtmisha/functional 1.15.13 → 1.15.15
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 +8 -0
- package/ai-description.md +7 -7
- package/ai-mcp-resources.json +8 -8
- package/ai-types.md +736 -1047
- package/dist/library.d.ts +3556 -67
- package/dist/library.js +281 -311
- package/package.json +11 -4
- package/dist/classes/design/DesignAbstract.d.ts +0 -61
- package/dist/classes/design/DesignAsyncAbstract.d.ts +0 -28
- package/dist/classes/design/DesignChanged.d.ts +0 -42
- package/dist/classes/design/DesignComp.d.ts +0 -4
- package/dist/classes/design/DesignComponents.d.ts +0 -81
- package/dist/classes/design/DesignConstructorAbstract.d.ts +0 -150
- package/dist/classes/ref/DatetimeRef.d.ts +0 -123
- package/dist/classes/ref/EffectScopeGlobal.d.ts +0 -22
- package/dist/classes/ref/EventRef.d.ts +0 -22
- package/dist/classes/ref/GeoFlagRef.d.ts +0 -82
- package/dist/classes/ref/GeoIntlRef.d.ts +0 -220
- package/dist/classes/ref/GeoRef.d.ts +0 -82
- package/dist/classes/ref/GeoUnitRef.d.ts +0 -153
- package/dist/classes/ref/ListDataRef.d.ts +0 -366
- package/dist/classes/ref/RouterItemRef.d.ts +0 -61
- package/dist/classes/ref/ScrollbarWidthRef.d.ts +0 -22
- package/dist/composables/ref/useApiAsyncRef.d.ts +0 -70
- package/dist/composables/ref/useApiDelete.d.ts +0 -23
- package/dist/composables/ref/useApiGet.d.ts +0 -23
- package/dist/composables/ref/useApiManagementAsyncRef.d.ts +0 -58
- package/dist/composables/ref/useApiManagementRef.d.ts +0 -161
- package/dist/composables/ref/useApiPost.d.ts +0 -23
- package/dist/composables/ref/useApiPut.d.ts +0 -23
- package/dist/composables/ref/useApiRef.d.ts +0 -159
- package/dist/composables/ref/useApiRequest.d.ts +0 -105
- package/dist/composables/ref/useBroadcastValueRef.d.ts +0 -11
- package/dist/composables/ref/useCookieRef.d.ts +0 -11
- package/dist/composables/ref/useFormattersRef.d.ts +0 -21
- package/dist/composables/ref/useGeoIntlRef.d.ts +0 -14
- package/dist/composables/ref/useGeoUnitRef.d.ts +0 -7
- package/dist/composables/ref/useHashRef.d.ts +0 -9
- package/dist/composables/ref/useLazyItemByMarginRef.d.ts +0 -24
- package/dist/composables/ref/useLazyRef.d.ts +0 -42
- package/dist/composables/ref/useLoadingRef.d.ts +0 -7
- package/dist/composables/ref/useMeta.d.ts +0 -223
- package/dist/composables/ref/useQueryRef.d.ts +0 -9
- package/dist/composables/ref/useRouterList.d.ts +0 -28
- package/dist/composables/ref/useSearchRef.d.ts +0 -36
- package/dist/composables/ref/useSearchValueRef.d.ts +0 -19
- package/dist/composables/ref/useSessionRef.d.ts +0 -9
- package/dist/composables/ref/useStorageRef.d.ts +0 -10
- package/dist/composables/ref/useTranslateRef.d.ts +0 -40
- package/dist/flags.d.ts +0 -1
- package/dist/functions/basic.d.ts +0 -1
- package/dist/functions/computedAsync.d.ts +0 -13
- package/dist/functions/computedByLanguage.d.ts +0 -15
- package/dist/functions/computedEternity.d.ts +0 -15
- package/dist/functions/dxtFunctionalPlugin.d.ts +0 -82
- package/dist/functions/executeUse.d.ts +0 -216
- package/dist/functions/getInject.d.ts +0 -7
- package/dist/functions/getOptions.d.ts +0 -10
- package/dist/functions/ref/executeFunctionRef.d.ts +0 -11
- package/dist/functions/ref/getApiErrorRef.d.ts +0 -10
- package/dist/functions/ref/getBindRef.d.ts +0 -13
- package/dist/functions/ref/getRef.d.ts +0 -8
- package/dist/functions/ref/render.d.ts +0 -13
- package/dist/functions/ref/setRef.d.ts +0 -9
- package/dist/functions/ref/toRefItem.d.ts +0 -9
- package/dist/functions/render/getBind.d.ts +0 -14
- package/dist/functions/render/getClassName.d.ts +0 -8
- package/dist/functions/render/getIndexForRender.d.ts +0 -10
- package/dist/functions/toBind.d.ts +0 -10
- package/dist/functions/toBinds.d.ts +0 -9
- package/dist/types/apiTypes.d.ts +0 -74
- package/dist/types/constructorTypes.d.ts +0 -126
- package/dist/types/listTypes.d.ts +0 -65
- package/dist/types/refTypes.d.ts +0 -43
- package/dist/types/searchTypes.d.ts +0 -10
package/dist/library.js
CHANGED
|
@@ -1,49 +1,12 @@
|
|
|
1
1
|
import { Api as e, ApiError as t, ApiMethodItem as n, BroadcastMessage as r, Cookie as i, DataStorage as a, Datetime as o, ErrorCenter as s, EventItem as c, Formatters as l, Geo as u, GeoFlag as d, GeoIntl as f, GeoUnit as p, Hash as m, Icons as h, Loading as g, MetaStatic as _, Query as v, ScrollbarWidth as y, SearchList as b, ServerStorage as x, Translate as S, executeFunction as C, executePromise as w, forEach as T, getColumn as E, getElementId as D, getExp as ee, isApiSuccess as O, isArray as te, isDomRuntime as k, isFunction as ne, isObject as A, isObjectNotArray as j, isSelected as M, isString as N, random as re, toArray as P, toCamelCase as ie, toDate as ae } from "@dxtmisha/functional-basic";
|
|
2
|
-
import
|
|
2
|
+
import F from "@oxc-project/runtime/helpers/defineProperty";
|
|
3
|
+
import { computed as I, customRef as oe, effectScope as se, getCurrentInstance as ce, h as le, hasInjectionContext as ue, inject as de, isRef as L, onServerPrefetch as fe, onUnmounted as pe, provide as me, ref as R, shallowRef as z, toRefs as he, triggerRef as ge, useAttrs as _e, useSlots as ve, watch as B, watchEffect as ye } from "vue";
|
|
3
4
|
import { MediaSocial as be } from "@dxtmisha/media";
|
|
4
5
|
export * from "@dxtmisha/functional-basic";
|
|
5
|
-
//#region \0@oxc-project+runtime@0.144.0/helpers/esm/typeof.js
|
|
6
|
-
function B(e) {
|
|
7
|
-
"@babel/helpers - typeof";
|
|
8
|
-
return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
9
|
-
return typeof e;
|
|
10
|
-
} : function(e) {
|
|
11
|
-
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
12
|
-
}, B(e);
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region \0@oxc-project+runtime@0.144.0/helpers/esm/toPrimitive.js
|
|
16
|
-
function xe(e, t) {
|
|
17
|
-
if (B(e) != "object" || !e) return e;
|
|
18
|
-
var n = e[Symbol.toPrimitive];
|
|
19
|
-
if (n !== void 0) {
|
|
20
|
-
var r = n.call(e, t || "default");
|
|
21
|
-
if (B(r) != "object") return r;
|
|
22
|
-
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
23
|
-
}
|
|
24
|
-
return (t === "string" ? String : Number)(e);
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region \0@oxc-project+runtime@0.144.0/helpers/esm/toPropertyKey.js
|
|
28
|
-
function Se(e) {
|
|
29
|
-
var t = xe(e, "string");
|
|
30
|
-
return B(t) == "symbol" ? t : t + "";
|
|
31
|
-
}
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region \0@oxc-project+runtime@0.144.0/helpers/esm/defineProperty.js
|
|
34
|
-
function V(e, t, n) {
|
|
35
|
-
return (t = Se(t)) in e ? Object.defineProperty(e, t, {
|
|
36
|
-
value: n,
|
|
37
|
-
enumerable: !0,
|
|
38
|
-
configurable: !0,
|
|
39
|
-
writable: !0
|
|
40
|
-
}) : e[t] = n, e;
|
|
41
|
-
}
|
|
42
|
-
//#endregion
|
|
43
6
|
//#region src/classes/design/DesignChanged.ts
|
|
44
|
-
var
|
|
7
|
+
var xe = class {
|
|
45
8
|
constructor(e, t = Object.keys(e)) {
|
|
46
|
-
|
|
9
|
+
F(this, "props", void 0), F(this, "watch", void 0), F(this, "cache", {}), this.props = e, this.watch = t;
|
|
47
10
|
}
|
|
48
11
|
is(e) {
|
|
49
12
|
return te(e) ? !!e.find((e) => this.isDifferent(e)) : this.isDifferent(e);
|
|
@@ -62,9 +25,9 @@ var Ce = class {
|
|
|
62
25
|
var t, n;
|
|
63
26
|
return ((t = this.cache) == null ? void 0 : t[e]) !== ((n = this.props) == null ? void 0 : n[e]);
|
|
64
27
|
}
|
|
65
|
-
},
|
|
28
|
+
}, Se = class {
|
|
66
29
|
constructor(e, t, n) {
|
|
67
|
-
|
|
30
|
+
F(this, "props", void 0), F(this, "callback", void 0), F(this, "event", {}), F(this, "changed", void 0), this.props = e, this.callback = t, this.changed = new xe(e, n);
|
|
68
31
|
}
|
|
69
32
|
make(e) {
|
|
70
33
|
return this.makeCallback(e), this;
|
|
@@ -81,7 +44,7 @@ var Ce = class {
|
|
|
81
44
|
makeCallbackItem() {
|
|
82
45
|
this.callback && this.callback(this.event);
|
|
83
46
|
}
|
|
84
|
-
},
|
|
47
|
+
}, Ce = class extends Se {
|
|
85
48
|
make(e) {
|
|
86
49
|
return this.makeCallback(e).then(), this;
|
|
87
50
|
}
|
|
@@ -91,32 +54,32 @@ var Ce = class {
|
|
|
91
54
|
};
|
|
92
55
|
//#endregion
|
|
93
56
|
//#region src/functions/ref/getRef.ts
|
|
94
|
-
function
|
|
95
|
-
return
|
|
57
|
+
function V(e) {
|
|
58
|
+
return L(e) ? e.value : e;
|
|
96
59
|
}
|
|
97
60
|
//#endregion
|
|
98
61
|
//#region src/functions/render/getClassName.ts
|
|
99
|
-
function
|
|
62
|
+
function we(e) {
|
|
100
63
|
return e && "class" in e && typeof e.class == "string" ? e.class : void 0;
|
|
101
64
|
}
|
|
102
65
|
//#endregion
|
|
103
66
|
//#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 =
|
|
67
|
+
function Te(e, t, n) {
|
|
68
|
+
let r = t == null ? void 0 : t.id, i = t == null ? void 0 : t.index, a = we(t), o = "";
|
|
106
69
|
if (N(e) && (o += e), n && (o += `.${n}`), i && N(i) && (o += `.${i}`), a && (o += `.${a}`), r && (o += `.${r}`), o !== "") return o;
|
|
107
70
|
}
|
|
108
71
|
//#endregion
|
|
109
72
|
//#region src/functions/ref/render.ts
|
|
110
|
-
function
|
|
73
|
+
function Ee(e, t, n, r) {
|
|
111
74
|
let i = t, a = t && "key" in t;
|
|
112
75
|
return (!t || !a) && (i = {
|
|
113
76
|
...t,
|
|
114
|
-
key:
|
|
77
|
+
key: Te(e, t, r)
|
|
115
78
|
}), le(e, i, n);
|
|
116
79
|
}
|
|
117
80
|
//#endregion
|
|
118
81
|
//#region src/functions/toBind.ts
|
|
119
|
-
function
|
|
82
|
+
function H(e, t) {
|
|
120
83
|
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
84
|
...e,
|
|
122
85
|
...t
|
|
@@ -125,17 +88,17 @@ function U(e, t) {
|
|
|
125
88
|
}
|
|
126
89
|
//#endregion
|
|
127
90
|
//#region src/functions/toBinds.ts
|
|
128
|
-
function
|
|
91
|
+
function De(...e) {
|
|
129
92
|
let t = {};
|
|
130
93
|
return e.forEach((e) => {
|
|
131
|
-
e && (t =
|
|
94
|
+
e && (t = H(t, e));
|
|
132
95
|
}), t;
|
|
133
96
|
}
|
|
134
97
|
//#endregion
|
|
135
98
|
//#region src/classes/design/DesignComponents.ts
|
|
136
|
-
var
|
|
99
|
+
var U = class {
|
|
137
100
|
constructor(e = {}, t) {
|
|
138
|
-
|
|
101
|
+
F(this, "components", void 0), F(this, "modification", void 0), F(this, "caching", {}), this.components = e, this.modification = t;
|
|
139
102
|
}
|
|
140
103
|
is(e) {
|
|
141
104
|
return e in this.components;
|
|
@@ -146,9 +109,9 @@ var W = class {
|
|
|
146
109
|
}
|
|
147
110
|
getModification(e, t) {
|
|
148
111
|
if (e) {
|
|
149
|
-
e in this.caching || (this.caching[e] =
|
|
112
|
+
e in this.caching || (this.caching[e] = I(() => this.computeModification(e)));
|
|
150
113
|
let n = this.caching[e];
|
|
151
|
-
if (n) return t ?
|
|
114
|
+
if (n) return t ? De(n.value, t) : n.value;
|
|
152
115
|
}
|
|
153
116
|
return t;
|
|
154
117
|
}
|
|
@@ -159,7 +122,7 @@ var W = class {
|
|
|
159
122
|
renderOne(e, t, n, r) {
|
|
160
123
|
if (this.is(e)) {
|
|
161
124
|
let i = r == null ? e : r;
|
|
162
|
-
return
|
|
125
|
+
return Ee(this.get(e), this.getModification(i, t), n, i);
|
|
163
126
|
}
|
|
164
127
|
}
|
|
165
128
|
renderAdd(e, t, n, r, i) {
|
|
@@ -167,21 +130,21 @@ var W = class {
|
|
|
167
130
|
}
|
|
168
131
|
computeModification(e) {
|
|
169
132
|
var t;
|
|
170
|
-
let n =
|
|
133
|
+
let n = V((t = this.modification) == null ? void 0 : t[e]);
|
|
171
134
|
if (n && j(n)) {
|
|
172
135
|
let e = {};
|
|
173
136
|
return T(n, (t, n) => {
|
|
174
|
-
e[n] =
|
|
137
|
+
e[n] = V(t);
|
|
175
138
|
}), e;
|
|
176
139
|
}
|
|
177
140
|
return {};
|
|
178
141
|
}
|
|
179
|
-
},
|
|
142
|
+
}, Oe = class extends U {}, ke = class {
|
|
180
143
|
constructor(e, t, n) {
|
|
181
|
-
|
|
144
|
+
F(this, "props", void 0), F(this, "options", void 0), F(this, "name", void 0), F(this, "element", R()), F(this, "refs", void 0), F(this, "components", void 0), F(this, "emits", void 0), F(this, "classes", void 0), F(this, "classesSub", void 0), F(this, "styles", void 0), F(this, "stylesSub", void 0), F(this, "attrs", void 0), F(this, "slots", void 0), F(this, "dataExpose", void 0), this.props = t, this.options = n, this.name = this.initName(e), this.refs = this.props ? he(this.props) : {}, this.components = new U(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 = _e(), this.slots = ve();
|
|
182
145
|
}
|
|
183
146
|
init() {
|
|
184
|
-
return this.classesSub =
|
|
147
|
+
return this.classesSub = I(() => this.initClasses()), this.stylesSub = I(() => this.initStyles()), this.dataExpose = this.initExpose(), this;
|
|
185
148
|
}
|
|
186
149
|
getName() {
|
|
187
150
|
return this.name.join("-");
|
|
@@ -203,6 +166,13 @@ var W = class {
|
|
|
203
166
|
let t = { ...(e = this.attrs) == null ? {} : e };
|
|
204
167
|
return "class" in t && delete t.class, "style" in t && delete t.style, t;
|
|
205
168
|
}
|
|
169
|
+
getKeyClass(e) {
|
|
170
|
+
var t;
|
|
171
|
+
return {
|
|
172
|
+
key: e,
|
|
173
|
+
class: (t = this.classes) == null || (t = t.value) == null ? void 0 : t[e]
|
|
174
|
+
};
|
|
175
|
+
}
|
|
206
176
|
expose() {
|
|
207
177
|
var e;
|
|
208
178
|
return {
|
|
@@ -263,16 +233,16 @@ var W = class {
|
|
|
263
233
|
};
|
|
264
234
|
//#endregion
|
|
265
235
|
//#region src/functions/ref/toRefItem.ts
|
|
266
|
-
function
|
|
267
|
-
return
|
|
236
|
+
function W(e) {
|
|
237
|
+
return L(e) ? e : R(e);
|
|
268
238
|
}
|
|
269
239
|
//#endregion
|
|
270
240
|
//#region src/classes/ref/DatetimeRef.ts
|
|
271
|
-
var
|
|
241
|
+
var Ae = class {
|
|
272
242
|
constructor(e, t = "date", n = u.getLocation()) {
|
|
273
|
-
|
|
243
|
+
F(this, "item", void 0), F(this, "type", void 0), F(this, "code", void 0), F(this, "date", void 0), F(this, "datetime", void 0), F(this, "year", R(2e3)), F(this, "month", R(1)), F(this, "day", R(1)), F(this, "hour", R(1)), F(this, "minute", R(1)), F(this, "second", R(1)), this.item = W(e), this.type = W(t), this.code = W(n), this.date = R(ae(this.item.value)), this.datetime = new o(this.date.value, this.type.value, this.code.value), B(this.item, (e) => {
|
|
274
244
|
this.date.value = ae(e);
|
|
275
|
-
}),
|
|
245
|
+
}), B(this.type, (e) => this.datetime.setType(e)), B(this.code, (e) => this.datetime.setCode(e)), B(this.date, (e) => {
|
|
276
246
|
this.datetime.setDate(e), this.updateDate();
|
|
277
247
|
}), this.datetime.setWatch(() => ge(this.date)), this.updateDate();
|
|
278
248
|
}
|
|
@@ -286,77 +256,77 @@ var Me = class {
|
|
|
286
256
|
return this.datetime;
|
|
287
257
|
}
|
|
288
258
|
getHoursType() {
|
|
289
|
-
return
|
|
259
|
+
return I(() => this.date.value && this.datetime.getHoursType());
|
|
290
260
|
}
|
|
291
261
|
getFirstDayCode() {
|
|
292
|
-
return
|
|
262
|
+
return I(() => this.date.value && this.datetime.getFirstDayCode());
|
|
293
263
|
}
|
|
294
264
|
getYear() {
|
|
295
|
-
return
|
|
265
|
+
return I(() => this.year.value);
|
|
296
266
|
}
|
|
297
267
|
getMonth() {
|
|
298
|
-
return
|
|
268
|
+
return I(() => this.month.value);
|
|
299
269
|
}
|
|
300
270
|
getDay() {
|
|
301
|
-
return
|
|
271
|
+
return I(() => this.day.value);
|
|
302
272
|
}
|
|
303
273
|
getHour() {
|
|
304
|
-
return
|
|
274
|
+
return I(() => this.hour.value);
|
|
305
275
|
}
|
|
306
276
|
getMinute() {
|
|
307
|
-
return
|
|
277
|
+
return I(() => this.minute.value);
|
|
308
278
|
}
|
|
309
279
|
getSecond() {
|
|
310
|
-
return
|
|
280
|
+
return I(() => this.second.value);
|
|
311
281
|
}
|
|
312
282
|
getMaxDay() {
|
|
313
|
-
return
|
|
283
|
+
return I(() => this.date.value && this.datetime.getMaxDay());
|
|
314
284
|
}
|
|
315
285
|
locale(e = this.type.value, t) {
|
|
316
|
-
return
|
|
286
|
+
return I(() => this.date.value && this.datetime.locale(e, t));
|
|
317
287
|
}
|
|
318
288
|
standard(e = !0) {
|
|
319
|
-
return
|
|
289
|
+
return I(() => this.date.value && this.datetime.standard(e));
|
|
320
290
|
}
|
|
321
291
|
updateDate() {
|
|
322
292
|
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
293
|
}
|
|
324
|
-
},
|
|
294
|
+
}, G = class {
|
|
325
295
|
static run(e) {
|
|
326
296
|
return this.getScope().run(e);
|
|
327
297
|
}
|
|
328
298
|
static getScope() {
|
|
329
299
|
return x.get("__ui:effect-scope-global__", () => se(!0));
|
|
330
300
|
}
|
|
331
|
-
},
|
|
301
|
+
}, je = class extends c {
|
|
332
302
|
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),
|
|
303
|
+
let o = W(e), s = W(t);
|
|
304
|
+
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
305
|
}
|
|
336
|
-
},
|
|
306
|
+
}, K = class {
|
|
337
307
|
static get() {
|
|
338
|
-
return x.get("__ui:geo-ref__", () =>
|
|
308
|
+
return x.get("__ui:geo-ref__", () => z(u.getItem()));
|
|
339
309
|
}
|
|
340
310
|
static getCountry() {
|
|
341
|
-
return x.get("__ui:geo-ref-country__", () =>
|
|
311
|
+
return x.get("__ui:geo-ref-country__", () => I(() => this.get().value.country));
|
|
342
312
|
}
|
|
343
313
|
static getLanguage() {
|
|
344
|
-
return x.get("__ui:geo-ref-language__", () =>
|
|
314
|
+
return x.get("__ui:geo-ref-language__", () => I(() => this.get().value.language));
|
|
345
315
|
}
|
|
346
316
|
static getStandard() {
|
|
347
|
-
return x.get("__ui:geo-ref-standard__", () =>
|
|
317
|
+
return x.get("__ui:geo-ref-standard__", () => I(() => this.get().value.standard));
|
|
348
318
|
}
|
|
349
319
|
static getFirstDay() {
|
|
350
|
-
return x.get("__ui:geo-ref-first-day__", () =>
|
|
320
|
+
return x.get("__ui:geo-ref-first-day__", () => I(() => this.get().value.firstDay));
|
|
351
321
|
}
|
|
352
322
|
static getLocation() {
|
|
353
|
-
return x.get("__ui:geo-ref-location__", () =>
|
|
323
|
+
return x.get("__ui:geo-ref-location__", () => I(() => this.get().value.location));
|
|
354
324
|
}
|
|
355
325
|
static getLocationCountry() {
|
|
356
|
-
return x.get("__ui:geo-ref-location-country__", () =>
|
|
326
|
+
return x.get("__ui:geo-ref-location-country__", () => I(() => this.get().value.locationCountry));
|
|
357
327
|
}
|
|
358
328
|
static getLocationLanguage() {
|
|
359
|
-
return x.get("__ui:geo-ref-location-language__", () =>
|
|
329
|
+
return x.get("__ui:geo-ref-location-language__", () => I(() => this.get().value.locationLanguage));
|
|
360
330
|
}
|
|
361
331
|
static set(e) {
|
|
362
332
|
u.set(e, !0), this.get().value = u.getItem();
|
|
@@ -364,165 +334,165 @@ var Me = class {
|
|
|
364
334
|
static setValueDefault(e) {
|
|
365
335
|
u.setValueDefault(e), this.get().value = u.getItem();
|
|
366
336
|
}
|
|
367
|
-
},
|
|
337
|
+
}, Me = class {
|
|
368
338
|
constructor(e) {
|
|
369
|
-
|
|
339
|
+
F(this, "flag", void 0), this.flag = I(() => {
|
|
370
340
|
var t;
|
|
371
|
-
return new d((t =
|
|
341
|
+
return new d((t = V(e)) == null ? K.getLocation().value : t);
|
|
372
342
|
});
|
|
373
343
|
}
|
|
374
344
|
getCode() {
|
|
375
345
|
return this.flag.value.getCode();
|
|
376
346
|
}
|
|
377
347
|
get(e = this.getCode()) {
|
|
378
|
-
return
|
|
348
|
+
return I(() => this.flag.value.get(V(e)));
|
|
379
349
|
}
|
|
380
350
|
getLanguage(e = this.getCode()) {
|
|
381
|
-
return
|
|
351
|
+
return I(() => this.flag.value.getLanguage(V(e)));
|
|
382
352
|
}
|
|
383
353
|
getFlag(e = this.getCode()) {
|
|
384
|
-
return
|
|
354
|
+
return I(() => this.flag.value.getFlag(V(e)));
|
|
385
355
|
}
|
|
386
356
|
getList(e) {
|
|
387
|
-
return
|
|
357
|
+
return I(() => this.flag.value.getList(V(e)));
|
|
388
358
|
}
|
|
389
359
|
getListLanguage(e) {
|
|
390
|
-
return
|
|
360
|
+
return I(() => this.flag.value.getListLanguage(V(e)));
|
|
391
361
|
}
|
|
392
362
|
getNational(e) {
|
|
393
|
-
return
|
|
363
|
+
return I(() => this.flag.value.getNational(V(e)));
|
|
394
364
|
}
|
|
395
365
|
getNationalLanguage(e) {
|
|
396
|
-
return
|
|
366
|
+
return I(() => this.flag.value.getNationalLanguage(V(e)));
|
|
397
367
|
}
|
|
398
|
-
},
|
|
368
|
+
}, Ne = class {
|
|
399
369
|
constructor(e) {
|
|
400
|
-
|
|
370
|
+
F(this, "location", void 0), F(this, "intl", void 0), this.location = W(e), this.intl = I(() => {
|
|
401
371
|
var e;
|
|
402
|
-
return new f((e = this.location.value) == null ?
|
|
372
|
+
return new f((e = this.location.value) == null ? K.getLocation().value : e);
|
|
403
373
|
});
|
|
404
374
|
}
|
|
405
375
|
display(e, t) {
|
|
406
|
-
return
|
|
376
|
+
return I(() => this.intl.value.display(V(e), t));
|
|
407
377
|
}
|
|
408
378
|
languageName(e, t) {
|
|
409
|
-
return
|
|
379
|
+
return I(() => this.intl.value.languageName(V(e), t));
|
|
410
380
|
}
|
|
411
381
|
countryName(e, t) {
|
|
412
|
-
return
|
|
382
|
+
return I(() => this.intl.value.countryName(V(e), t));
|
|
413
383
|
}
|
|
414
384
|
number(e, t) {
|
|
415
|
-
return
|
|
385
|
+
return I(() => this.intl.value.number(V(e), t));
|
|
416
386
|
}
|
|
417
387
|
decimal() {
|
|
418
|
-
return
|
|
388
|
+
return I(() => this.intl.value.decimal());
|
|
419
389
|
}
|
|
420
390
|
currency(e, t, n = !1) {
|
|
421
|
-
return
|
|
391
|
+
return I(() => this.intl.value.currency(V(e), V(t), n));
|
|
422
392
|
}
|
|
423
393
|
currencySymbol(e, t = "symbol") {
|
|
424
|
-
return
|
|
394
|
+
return I(() => this.intl.value.currencySymbol(V(e), t));
|
|
425
395
|
}
|
|
426
396
|
unit(e, t) {
|
|
427
|
-
return
|
|
397
|
+
return I(() => this.intl.value.unit(V(e), t));
|
|
428
398
|
}
|
|
429
399
|
sizeFile(e, t = "byte") {
|
|
430
|
-
return
|
|
400
|
+
return I(() => this.intl.value.sizeFile(V(e), t));
|
|
431
401
|
}
|
|
432
402
|
percent(e, t) {
|
|
433
|
-
return
|
|
403
|
+
return I(() => this.intl.value.percent(V(e), t));
|
|
434
404
|
}
|
|
435
405
|
percentBy100(e, t) {
|
|
436
|
-
return
|
|
406
|
+
return I(() => this.intl.value.percentBy100(V(e), t));
|
|
437
407
|
}
|
|
438
408
|
plural(e, t, n, r) {
|
|
439
|
-
return
|
|
409
|
+
return I(() => this.intl.value.plural(V(e), t, n, r));
|
|
440
410
|
}
|
|
441
411
|
date(e, t, n, r) {
|
|
442
|
-
return
|
|
412
|
+
return I(() => this.intl.value.date(V(e), t, n, r));
|
|
443
413
|
}
|
|
444
414
|
relative(e, t, n) {
|
|
445
|
-
return
|
|
415
|
+
return I(() => this.intl.value.relative(V(e), t, n));
|
|
446
416
|
}
|
|
447
417
|
relativeLimit(e, t, n, r, i, a, o) {
|
|
448
|
-
return
|
|
418
|
+
return I(() => this.intl.value.relativeLimit(V(e), t, n, r, i, a, o));
|
|
449
419
|
}
|
|
450
420
|
relativeByValue(e, t, n) {
|
|
451
|
-
return
|
|
421
|
+
return I(() => this.intl.value.relativeByValue(V(e), t, n));
|
|
452
422
|
}
|
|
453
423
|
month(e, t) {
|
|
454
|
-
return
|
|
424
|
+
return I(() => this.intl.value.month(V(e), t));
|
|
455
425
|
}
|
|
456
426
|
months(e) {
|
|
457
|
-
return
|
|
427
|
+
return I(() => this.intl.value.months(e));
|
|
458
428
|
}
|
|
459
429
|
weekday(e, t) {
|
|
460
|
-
return
|
|
430
|
+
return I(() => this.intl.value.weekday(V(e), t));
|
|
461
431
|
}
|
|
462
432
|
weekdays(e) {
|
|
463
|
-
return
|
|
433
|
+
return I(() => this.intl.value.weekdays(e));
|
|
464
434
|
}
|
|
465
435
|
time(e) {
|
|
466
|
-
return
|
|
436
|
+
return I(() => this.intl.value.time(V(e)));
|
|
467
437
|
}
|
|
468
438
|
sort(e, t = (e, t) => [e, t]) {
|
|
469
|
-
return
|
|
439
|
+
return I(() => this.intl.value.sort([...V(e)], t));
|
|
470
440
|
}
|
|
471
|
-
},
|
|
441
|
+
}, Pe = class {
|
|
472
442
|
constructor(e) {
|
|
473
|
-
|
|
443
|
+
F(this, "location", void 0), F(this, "unitInstance", void 0), this.location = W(e), this.unitInstance = I(() => {
|
|
474
444
|
var e;
|
|
475
|
-
return new p((e = this.location.value) == null ?
|
|
445
|
+
return new p((e = this.location.value) == null ? K.getLocation().value : e);
|
|
476
446
|
});
|
|
477
447
|
}
|
|
478
448
|
getLocation() {
|
|
479
|
-
return
|
|
449
|
+
return I(() => this.unitInstance.value.getLocation());
|
|
480
450
|
}
|
|
481
451
|
millimeter(e, t) {
|
|
482
|
-
return
|
|
452
|
+
return I(() => this.unitInstance.value.millimeter(V(e), t));
|
|
483
453
|
}
|
|
484
454
|
centimeter(e, t) {
|
|
485
|
-
return
|
|
455
|
+
return I(() => this.unitInstance.value.centimeter(V(e), t));
|
|
486
456
|
}
|
|
487
457
|
meter(e, t) {
|
|
488
|
-
return
|
|
458
|
+
return I(() => this.unitInstance.value.meter(V(e), t));
|
|
489
459
|
}
|
|
490
460
|
kilometer(e, t) {
|
|
491
|
-
return
|
|
461
|
+
return I(() => this.unitInstance.value.kilometer(V(e), t));
|
|
492
462
|
}
|
|
493
463
|
squareMeter(e, t) {
|
|
494
|
-
return
|
|
464
|
+
return I(() => this.unitInstance.value.squareMeter(V(e), t));
|
|
495
465
|
}
|
|
496
466
|
hectare(e, t) {
|
|
497
|
-
return
|
|
467
|
+
return I(() => this.unitInstance.value.hectare(V(e), t));
|
|
498
468
|
}
|
|
499
469
|
gram(e, t) {
|
|
500
|
-
return
|
|
470
|
+
return I(() => this.unitInstance.value.gram(V(e), t));
|
|
501
471
|
}
|
|
502
472
|
kilogram(e, t) {
|
|
503
|
-
return
|
|
473
|
+
return I(() => this.unitInstance.value.kilogram(V(e), t));
|
|
504
474
|
}
|
|
505
475
|
tonne(e, t) {
|
|
506
|
-
return
|
|
476
|
+
return I(() => this.unitInstance.value.tonne(V(e), t));
|
|
507
477
|
}
|
|
508
478
|
milliliter(e, t) {
|
|
509
|
-
return
|
|
479
|
+
return I(() => this.unitInstance.value.milliliter(V(e), t));
|
|
510
480
|
}
|
|
511
481
|
liter(e, t) {
|
|
512
|
-
return
|
|
482
|
+
return I(() => this.unitInstance.value.liter(V(e), t));
|
|
513
483
|
}
|
|
514
484
|
celsius(e, t) {
|
|
515
|
-
return
|
|
485
|
+
return I(() => this.unitInstance.value.celsius(V(e), t));
|
|
516
486
|
}
|
|
517
487
|
kilometerPerHour(e, t) {
|
|
518
|
-
return
|
|
488
|
+
return I(() => this.unitInstance.value.kilometerPerHour(V(e), t));
|
|
519
489
|
}
|
|
520
490
|
format(e, t, n) {
|
|
521
|
-
return
|
|
491
|
+
return I(() => this.unitInstance.value.format(V(e), V(t), n));
|
|
522
492
|
}
|
|
523
|
-
},
|
|
493
|
+
}, Fe = class e {
|
|
524
494
|
constructor(e, t, n, r, i, a, o, s, c, l = 0, u = 9999999, d) {
|
|
525
|
-
|
|
495
|
+
F(this, "list", void 0), F(this, "focus", void 0), F(this, "highlight", void 0), F(this, "highlightLengthStart", void 0), F(this, "filterMode", void 0), F(this, "selected", void 0), F(this, "keyValue", void 0), F(this, "keyLabel", void 0), F(this, "lite", void 0), F(this, "min", void 0), F(this, "max", void 0), F(this, "parent", void 0), F(this, "subList", {}), F(this, "data", I(() => T(V(this.list) || [], (e, t) => this.initItem(t, e)))), F(this, "liteData", I(() => {
|
|
526
496
|
if (this.isLite()) {
|
|
527
497
|
let e = [];
|
|
528
498
|
for (let t of this.data.value) {
|
|
@@ -539,7 +509,7 @@ var Me = class {
|
|
|
539
509
|
return e;
|
|
540
510
|
}
|
|
541
511
|
return this.data.value;
|
|
542
|
-
})),
|
|
512
|
+
})), F(this, "fullData", I(() => {
|
|
543
513
|
let e = this.getFocus(), t = this.getHighlight(), n = this.getSelected();
|
|
544
514
|
return T(this.data.value, (r) => {
|
|
545
515
|
var i, a;
|
|
@@ -553,7 +523,7 @@ var Me = class {
|
|
|
553
523
|
disabled: (a = r.disabled) == null ? !o && r.type === "item" && this.isSelectedMax.value : a
|
|
554
524
|
};
|
|
555
525
|
});
|
|
556
|
-
})),
|
|
526
|
+
})), F(this, "map", I(() => {
|
|
557
527
|
let e = [];
|
|
558
528
|
return this.data.value.forEach((t) => {
|
|
559
529
|
switch (t.type) {
|
|
@@ -564,7 +534,7 @@ var Me = class {
|
|
|
564
534
|
case "menu": e.push(t, ...this.getSubList(t).map.value);
|
|
565
535
|
}
|
|
566
536
|
}), e;
|
|
567
|
-
})),
|
|
537
|
+
})), F(this, "mapItems", I(() => this.map.value.filter((e) => e.type === "item"))), F(this, "items", I(() => this.map.value.filter((e) => e.type === "item" || e.type === "group" || e.type === "menu"))), F(this, "highlightFirstItem", I(() => {
|
|
568
538
|
let e = this.getHighlight();
|
|
569
539
|
if (e && e.length >= this.getHighlightLengthStart()) {
|
|
570
540
|
let t = ee(e, "i");
|
|
@@ -574,22 +544,22 @@ var Me = class {
|
|
|
574
544
|
});
|
|
575
545
|
}
|
|
576
546
|
return -1;
|
|
577
|
-
})),
|
|
547
|
+
})), F(this, "isSelected", I(() => {
|
|
578
548
|
let e = this.getSelected();
|
|
579
549
|
return !!e && this.mapItems.value.findIndex((t) => M(t.index, e)) !== -1;
|
|
580
|
-
})),
|
|
581
|
-
let e = Number(
|
|
550
|
+
})), F(this, "isSelectedMin", I(() => {
|
|
551
|
+
let e = Number(V(this.min) || 0);
|
|
582
552
|
return e > 0 && this.selectedListInGroup.value.length >= e;
|
|
583
|
-
})),
|
|
584
|
-
let e = Number(
|
|
553
|
+
})), F(this, "isSelectedMax", I(() => {
|
|
554
|
+
let e = Number(V(this.max) || 9999999);
|
|
585
555
|
return e > 0 && this.selectedListInGroup.value.length >= e;
|
|
586
|
-
})),
|
|
556
|
+
})), F(this, "selectedList", I(() => {
|
|
587
557
|
let e = this.getSelected();
|
|
588
558
|
return e && this.isSelected.value ? this.mapItems.value.filter((t) => M(t.index, e)) : [];
|
|
589
|
-
})),
|
|
559
|
+
})), F(this, "selectedListInGroup", I(() => {
|
|
590
560
|
let e = this.getSelected();
|
|
591
561
|
return e && this.isSelected.value ? this.data.value.filter((t) => M(t.index, e)) : [];
|
|
592
|
-
})),
|
|
562
|
+
})), F(this, "selectedNames", I(() => E(this.selectedList.value, "label"))), F(this, "selectedValues", I(() => E(this.selectedList.value, "value"))), this.list = e, this.focus = t, this.highlight = n, this.highlightLengthStart = r, this.filterMode = i, this.selected = a, this.keyValue = o, this.keyLabel = s, this.lite = c, this.min = l, this.max = u, this.parent = d, L(e) && B(e, () => {
|
|
593
563
|
this.subList = {};
|
|
594
564
|
});
|
|
595
565
|
}
|
|
@@ -726,9 +696,9 @@ var Me = class {
|
|
|
726
696
|
value: e
|
|
727
697
|
};
|
|
728
698
|
}
|
|
729
|
-
},
|
|
699
|
+
}, Ie = "__ui:router-item-ref__", q = class {
|
|
730
700
|
static get() {
|
|
731
|
-
return x.get(
|
|
701
|
+
return x.get(Ie);
|
|
732
702
|
}
|
|
733
703
|
static getLink(e, t, n) {
|
|
734
704
|
var r;
|
|
@@ -750,7 +720,7 @@ var Me = class {
|
|
|
750
720
|
t && t.push(e).then();
|
|
751
721
|
}
|
|
752
722
|
static set(e) {
|
|
753
|
-
x.set(
|
|
723
|
+
x.set(Ie, () => e);
|
|
754
724
|
}
|
|
755
725
|
static setOneTime(e) {
|
|
756
726
|
this.get() || this.set(e);
|
|
@@ -758,9 +728,9 @@ var Me = class {
|
|
|
758
728
|
static rawToHref(e) {
|
|
759
729
|
return j(e) && "name" in e && N(e == null ? void 0 : e.name) ? this.getHref(e.name) : {};
|
|
760
730
|
}
|
|
761
|
-
},
|
|
731
|
+
}, Le = class {
|
|
762
732
|
constructor() {
|
|
763
|
-
|
|
733
|
+
F(this, "item", R()), F(this, "width", R(0)), F(this, "is", I(() => this.item.value !== void 0)), k() && (y.is().then((e) => {
|
|
764
734
|
this.item.value = e;
|
|
765
735
|
}), y.get().then((e) => {
|
|
766
736
|
this.width.value = e;
|
|
@@ -769,20 +739,20 @@ var Me = class {
|
|
|
769
739
|
};
|
|
770
740
|
//#endregion
|
|
771
741
|
//#region src/functions/ref/getApiErrorRef.ts
|
|
772
|
-
function
|
|
773
|
-
return
|
|
742
|
+
function Re(e) {
|
|
743
|
+
return I(() => {
|
|
774
744
|
if (!(!e.value || O(e.value) || !j(e.value))) return e.value.errorObject;
|
|
775
745
|
});
|
|
776
746
|
}
|
|
777
747
|
//#endregion
|
|
778
748
|
//#region src/functions/getOptions.ts
|
|
779
|
-
var
|
|
780
|
-
function
|
|
781
|
-
let d =
|
|
782
|
-
let e =
|
|
749
|
+
var J = (e) => typeof e == "string" ? { method: e } : e || {}, Y;
|
|
750
|
+
function X(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
751
|
+
let d = R(), f = W(J(r)), p = R(!1), m = R(!1), h = R(), g, _ = !0, v, y = () => {
|
|
752
|
+
let e = V(n);
|
|
783
753
|
return !!((!a || a.value) && e);
|
|
784
754
|
}, b = () => ({
|
|
785
|
-
path:
|
|
755
|
+
path: V(n),
|
|
786
756
|
...f.value
|
|
787
757
|
}), x = () => {
|
|
788
758
|
if (k() && y()) {
|
|
@@ -814,7 +784,7 @@ function Z(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
814
784
|
t.add(c, e.path, e.method);
|
|
815
785
|
}
|
|
816
786
|
if (!k()) return;
|
|
817
|
-
x(), d.value === void 0 && S().then(), l ? E() :
|
|
787
|
+
x(), d.value === void 0 && S().then(), l ? E() : G.run(() => E());
|
|
818
788
|
}
|
|
819
789
|
};
|
|
820
790
|
l && ce() && pe(() => C());
|
|
@@ -824,21 +794,21 @@ function Z(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
824
794
|
});
|
|
825
795
|
}, E = () => {
|
|
826
796
|
let e = [];
|
|
827
|
-
i && e.push(f),
|
|
797
|
+
i && e.push(f), L(n) && e.push(n), a && e.push(a), Y && e.push(Y), e.length > 0 && (v = B(e, async () => {
|
|
828
798
|
p.value || await S();
|
|
829
799
|
}));
|
|
830
|
-
}, D =
|
|
800
|
+
}, D = I(() => (w(), d.value)), ee = Re(d), O = I(() => Array.isArray(d.value) ? d.value.length : +!!d.value), te = I(() => d.value === void 0);
|
|
831
801
|
return {
|
|
832
802
|
data: D,
|
|
833
803
|
get item() {
|
|
834
804
|
return w(), d;
|
|
835
805
|
},
|
|
836
806
|
errorItem: ee,
|
|
837
|
-
isResponseContractValid:
|
|
807
|
+
isResponseContractValid: I(() => {
|
|
838
808
|
var e;
|
|
839
809
|
return ((e = h.value) == null ? void 0 : e.status) === "success";
|
|
840
810
|
}),
|
|
841
|
-
responseValidationResult:
|
|
811
|
+
responseValidationResult: I(() => h.value),
|
|
842
812
|
length: O,
|
|
843
813
|
starting: te,
|
|
844
814
|
loading: p,
|
|
@@ -862,20 +832,20 @@ function Z(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
862
832
|
abort: () => g == null ? void 0 : g.abort()
|
|
863
833
|
};
|
|
864
834
|
}
|
|
865
|
-
var
|
|
866
|
-
|
|
835
|
+
var ze = (e) => {
|
|
836
|
+
Y || (Y = e);
|
|
867
837
|
};
|
|
868
838
|
//#endregion
|
|
869
839
|
//#region src/composables/ref/useApiAsyncRef.ts
|
|
870
|
-
function
|
|
871
|
-
let u =
|
|
840
|
+
function Be(t, n, r = !0, i, a, o, s, c = !0, l = e.getItem()) {
|
|
841
|
+
let u = X(t, n, r, i, a, o, s, c, l);
|
|
872
842
|
return u.initSsr(), u;
|
|
873
843
|
}
|
|
874
844
|
//#endregion
|
|
875
845
|
//#region src/composables/ref/useApiRequest.ts
|
|
876
|
-
function
|
|
877
|
-
let p =
|
|
878
|
-
return l && t.add(l,
|
|
846
|
+
function Z({ path: r, method: i = n.post, action: a, transformation: o, validateRequestContract: s, validateResponseContract: c, errorContract: l, toData: u = !0, options: d, apiInstance: f = e.getItem() }) {
|
|
847
|
+
let p = R(!1), m = W(J(d));
|
|
848
|
+
return l && t.add(l, V(r), i), {
|
|
879
849
|
loading: p,
|
|
880
850
|
async send(e) {
|
|
881
851
|
let t;
|
|
@@ -885,7 +855,7 @@ function Q({ path: r, method: i = n.post, action: a, transformation: o, validate
|
|
|
885
855
|
if (t && !O(t)) return t;
|
|
886
856
|
}
|
|
887
857
|
if (p.value = !0, t = await f.request({
|
|
888
|
-
path:
|
|
858
|
+
path: V(r),
|
|
889
859
|
method: i,
|
|
890
860
|
request: e,
|
|
891
861
|
toData: u,
|
|
@@ -909,50 +879,50 @@ function Q({ path: r, method: i = n.post, action: a, transformation: o, validate
|
|
|
909
879
|
}
|
|
910
880
|
//#endregion
|
|
911
881
|
//#region src/composables/ref/useApiDelete.ts
|
|
912
|
-
function
|
|
913
|
-
return
|
|
882
|
+
function Ve(e) {
|
|
883
|
+
return Z({
|
|
914
884
|
...e,
|
|
915
885
|
method: n.delete
|
|
916
886
|
});
|
|
917
887
|
}
|
|
918
888
|
//#endregion
|
|
919
889
|
//#region src/composables/ref/useApiGet.ts
|
|
920
|
-
function
|
|
921
|
-
return
|
|
890
|
+
function He(e) {
|
|
891
|
+
return Z({
|
|
922
892
|
...e,
|
|
923
893
|
method: n.get
|
|
924
894
|
});
|
|
925
895
|
}
|
|
926
896
|
//#endregion
|
|
927
897
|
//#region src/composables/ref/useApiPost.ts
|
|
928
|
-
function
|
|
929
|
-
return
|
|
898
|
+
function Ue(e) {
|
|
899
|
+
return Z({
|
|
930
900
|
...e,
|
|
931
901
|
method: n.post
|
|
932
902
|
});
|
|
933
903
|
}
|
|
934
904
|
//#endregion
|
|
935
905
|
//#region src/composables/ref/useApiPut.ts
|
|
936
|
-
function
|
|
937
|
-
return
|
|
906
|
+
function We(e) {
|
|
907
|
+
return Z({
|
|
938
908
|
...e,
|
|
939
909
|
method: n.put
|
|
940
910
|
});
|
|
941
911
|
}
|
|
942
912
|
//#endregion
|
|
943
913
|
//#region src/composables/ref/useFormattersRef.ts
|
|
944
|
-
function
|
|
914
|
+
function Ge(e, t) {
|
|
945
915
|
let n = new l(t);
|
|
946
916
|
return {
|
|
947
|
-
listFormat:
|
|
948
|
-
length:
|
|
917
|
+
listFormat: I(() => n.setList(e.value).to()),
|
|
918
|
+
length: I(() => n.setList(e.value).length())
|
|
949
919
|
};
|
|
950
920
|
}
|
|
951
921
|
//#endregion
|
|
952
922
|
//#region src/composables/ref/useSearchValueRef.ts
|
|
953
|
-
function
|
|
954
|
-
let n = t == null ?
|
|
955
|
-
return
|
|
923
|
+
function Ke(e, t) {
|
|
924
|
+
let n = t == null ? R("") : t, r = R(n.value), i = R(!1), a;
|
|
925
|
+
return B(n, (t, o, s) => {
|
|
956
926
|
let c = e.getOptions().getDelay();
|
|
957
927
|
c && k() ? (i.value = !0, a = setTimeout(() => {
|
|
958
928
|
a = void 0, r.value = n.value, i.value = !1;
|
|
@@ -967,21 +937,21 @@ function Je(e, t) {
|
|
|
967
937
|
}
|
|
968
938
|
//#endregion
|
|
969
939
|
//#region src/composables/ref/useSearchRef.ts
|
|
970
|
-
function
|
|
971
|
-
let i = () =>
|
|
940
|
+
function qe(e, t, n, r) {
|
|
941
|
+
let i = () => V(C(t)), a = new b(void 0, i(), void 0, r), { search: o, searchDelay: s, loading: c } = Ke(a, n), l = () => V(C(e)) || [], u = I(() => a.setColumns(i()).setValue(s.value).getItem().isSearch()), d = I(() => a.setList(l()).setColumns(i()).setValue(s.value).to());
|
|
972
942
|
return {
|
|
973
943
|
isSearch: u,
|
|
974
944
|
search: o,
|
|
975
945
|
loading: c,
|
|
976
946
|
listSearch: d,
|
|
977
|
-
length:
|
|
947
|
+
length: I(() => d.value.length)
|
|
978
948
|
};
|
|
979
949
|
}
|
|
980
950
|
//#endregion
|
|
981
951
|
//#region src/composables/ref/useApiManagementRef.ts
|
|
982
|
-
function
|
|
983
|
-
let { path: c, options: l, reactivity: u, conditions: d, transformation: f, validateResponseContract: p, errorContract: m, typeData: h, unmounted: g, skeleton: _ } = e, v, y, b, x, S, C =
|
|
984
|
-
if (t && (v =
|
|
952
|
+
function Je(e, t, n, r, i, a, o, s) {
|
|
953
|
+
let { path: c, options: l, reactivity: u, conditions: d, transformation: f, validateResponseContract: p, errorContract: m, typeData: h, unmounted: g, skeleton: _ } = e, v, y, b, x, S, C = X(c, l, u, d, f, p, m, g, s), T = I(() => h === void 0 ? !0 : C.isStarting() ? !1 : ne(h) ? h(C.data.value) : C.data.value instanceof h), E = I(() => C.isStarting() && _ ? _() : C.data.value);
|
|
954
|
+
if (t && (v = Ge(E, t)), n && (y = qe(I(() => {
|
|
985
955
|
var e;
|
|
986
956
|
let t = (e = v == null ? void 0 : v.listFormat.value) == null ? C.data.value : e;
|
|
987
957
|
if (Array.isArray(t)) return t;
|
|
@@ -991,21 +961,21 @@ function Xe(e, t, n, r, i, a, o, s) {
|
|
|
991
961
|
}, t = (t) => async (n) => {
|
|
992
962
|
ne(t) && await w(t(n)), e(n);
|
|
993
963
|
};
|
|
994
|
-
r && (b =
|
|
964
|
+
r && (b = Ue({
|
|
995
965
|
...r,
|
|
996
966
|
action: t(r.action),
|
|
997
967
|
apiInstance: s
|
|
998
|
-
})), i && (x =
|
|
968
|
+
})), i && (x = We({
|
|
999
969
|
...i,
|
|
1000
970
|
action: t(i.action),
|
|
1001
971
|
apiInstance: s
|
|
1002
|
-
})), a && (S =
|
|
972
|
+
})), a && (S = Ve({
|
|
1003
973
|
...a,
|
|
1004
974
|
action: t(a.action),
|
|
1005
975
|
apiInstance: s
|
|
1006
976
|
}));
|
|
1007
977
|
}
|
|
1008
|
-
let D =
|
|
978
|
+
let D = I(() => {
|
|
1009
979
|
if (T.value) {
|
|
1010
980
|
if (y && Array.isArray(C.data.value)) return y.listSearch.value;
|
|
1011
981
|
if (v) return v.listFormat.value;
|
|
@@ -1045,66 +1015,66 @@ function Xe(e, t, n, r, i, a, o, s) {
|
|
|
1045
1015
|
}
|
|
1046
1016
|
//#endregion
|
|
1047
1017
|
//#region src/composables/ref/useApiManagementAsyncRef.ts
|
|
1048
|
-
function
|
|
1049
|
-
let c =
|
|
1018
|
+
function Ye(e, t, n, r, i, a, o, s) {
|
|
1019
|
+
let c = Je(e, t, n, r, i, a, o, s);
|
|
1050
1020
|
return c.initSsr(), c;
|
|
1051
1021
|
}
|
|
1052
1022
|
//#endregion
|
|
1053
1023
|
//#region src/composables/ref/useBroadcastValueRef.ts
|
|
1054
|
-
var
|
|
1055
|
-
function
|
|
1056
|
-
let n = `broadcast--${e}`, i =
|
|
1024
|
+
var Xe = () => x.get("__ui:broadcast-value-ref__", () => ({}));
|
|
1025
|
+
function Ze(e, t) {
|
|
1026
|
+
let n = `broadcast--${e}`, i = Xe();
|
|
1057
1027
|
if (n in i) return i[n];
|
|
1058
|
-
let a =
|
|
1028
|
+
let a = R(C(t));
|
|
1059
1029
|
if (k()) {
|
|
1060
1030
|
let e = new r(n, (e) => {
|
|
1061
1031
|
a.value !== e.data.message && (a.value = e.data.message);
|
|
1062
1032
|
});
|
|
1063
|
-
|
|
1064
|
-
|
|
1033
|
+
G.run(() => {
|
|
1034
|
+
B(a, (t) => e.post({ message: t }));
|
|
1065
1035
|
});
|
|
1066
1036
|
}
|
|
1067
1037
|
return i[n] = a, a;
|
|
1068
1038
|
}
|
|
1069
1039
|
//#endregion
|
|
1070
1040
|
//#region src/composables/ref/useCookieRef.ts
|
|
1071
|
-
var
|
|
1072
|
-
function
|
|
1073
|
-
let r =
|
|
1041
|
+
var Qe = () => x.get("__ui:cookie-ref__", () => ({}));
|
|
1042
|
+
function $e(e, t, n) {
|
|
1043
|
+
let r = Qe();
|
|
1074
1044
|
if (e in r) return r[e];
|
|
1075
|
-
let a = new i(e), o =
|
|
1076
|
-
return
|
|
1077
|
-
|
|
1045
|
+
let a = new i(e), o = Ze(`__cookie:${e}`, a.get(t, n));
|
|
1046
|
+
return G.run(() => {
|
|
1047
|
+
B(o, (e) => {
|
|
1078
1048
|
a.set(e, n);
|
|
1079
1049
|
});
|
|
1080
1050
|
}), r[e] = o, o;
|
|
1081
1051
|
}
|
|
1082
1052
|
//#endregion
|
|
1083
1053
|
//#region src/composables/ref/useGeoIntlRef.ts
|
|
1084
|
-
function
|
|
1085
|
-
return new
|
|
1054
|
+
function et() {
|
|
1055
|
+
return new Ne();
|
|
1086
1056
|
}
|
|
1087
1057
|
//#endregion
|
|
1088
1058
|
//#region src/composables/ref/useGeoUnitRef.ts
|
|
1089
|
-
function
|
|
1090
|
-
return new
|
|
1059
|
+
function tt() {
|
|
1060
|
+
return new Pe();
|
|
1091
1061
|
}
|
|
1092
1062
|
//#endregion
|
|
1093
1063
|
//#region src/composables/ref/useHashRef.ts
|
|
1094
|
-
var
|
|
1095
|
-
function
|
|
1096
|
-
let n =
|
|
1064
|
+
var nt = () => x.get("__ui:hash-ref__", () => ({}));
|
|
1065
|
+
function rt(e, t) {
|
|
1066
|
+
let n = nt();
|
|
1097
1067
|
if (e in n) return n[e];
|
|
1098
|
-
let r =
|
|
1099
|
-
return k() && (
|
|
1100
|
-
|
|
1068
|
+
let r = z(m.get(e, t));
|
|
1069
|
+
return k() && (G.run(() => {
|
|
1070
|
+
B(r, (t) => m.set(e, t));
|
|
1101
1071
|
}), m.addWatch(e, (e) => {
|
|
1102
1072
|
r.value = e;
|
|
1103
1073
|
})), n[e] = r, r;
|
|
1104
1074
|
}
|
|
1105
1075
|
//#endregion
|
|
1106
1076
|
//#region src/composables/ref/useLazyRef.ts
|
|
1107
|
-
var
|
|
1077
|
+
var it = (e = { rootMargin: "128px 0px" }) => {
|
|
1108
1078
|
let t = {}, n = k() && "IntersectionObserver" in window ? new IntersectionObserver((e) => {
|
|
1109
1079
|
e.forEach((e) => {
|
|
1110
1080
|
let n = D(e.target);
|
|
@@ -1130,16 +1100,16 @@ var ot = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1130
1100
|
return t[n];
|
|
1131
1101
|
},
|
|
1132
1102
|
addLazyItem(e) {
|
|
1133
|
-
let i =
|
|
1103
|
+
let i = z(!n);
|
|
1134
1104
|
if (n) {
|
|
1135
1105
|
let a;
|
|
1136
|
-
a =
|
|
1106
|
+
a = B(e, (o, s) => {
|
|
1137
1107
|
if (s && r(s), e.value) {
|
|
1138
1108
|
let r = D(e.value);
|
|
1139
1109
|
t[r] = {
|
|
1140
1110
|
status: i,
|
|
1141
|
-
ratio:
|
|
1142
|
-
entry:
|
|
1111
|
+
ratio: z(0),
|
|
1112
|
+
entry: z(void 0),
|
|
1143
1113
|
stopWatch: () => a == null ? void 0 : a()
|
|
1144
1114
|
}, n.observe(e.value);
|
|
1145
1115
|
} else r(e.value);
|
|
@@ -1150,16 +1120,16 @@ var ot = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1150
1120
|
removeLazyItem: r,
|
|
1151
1121
|
disconnectLazy: () => n == null ? void 0 : n.disconnect()
|
|
1152
1122
|
};
|
|
1153
|
-
},
|
|
1154
|
-
let t =
|
|
1123
|
+
}, at = () => x.get("__ui:lazy-item-by-margin-ref__", () => []), ot = (e) => {
|
|
1124
|
+
let t = at(), n = t.find((t) => t.rootMargin === e);
|
|
1155
1125
|
if (n) return n.item;
|
|
1156
|
-
let r =
|
|
1126
|
+
let r = it({ rootMargin: e });
|
|
1157
1127
|
return t.push({
|
|
1158
1128
|
rootMargin: e,
|
|
1159
1129
|
item: r
|
|
1160
1130
|
}), r;
|
|
1161
|
-
},
|
|
1162
|
-
let n =
|
|
1131
|
+
}, st = (e, t = "128px 0px") => {
|
|
1132
|
+
let n = ot(t);
|
|
1163
1133
|
return {
|
|
1164
1134
|
lazyItemStatus: n.addLazyItem(e),
|
|
1165
1135
|
get lazyItem() {
|
|
@@ -1169,19 +1139,19 @@ var ot = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1169
1139
|
};
|
|
1170
1140
|
//#endregion
|
|
1171
1141
|
//#region src/composables/ref/useLoadingRef.ts
|
|
1172
|
-
function
|
|
1173
|
-
let e =
|
|
1142
|
+
function ct() {
|
|
1143
|
+
let e = z(g.is());
|
|
1174
1144
|
return k() && g.registrationEvent(({ detail: t }) => {
|
|
1175
1145
|
e.value = t.loading;
|
|
1176
1146
|
}), e;
|
|
1177
1147
|
}
|
|
1178
1148
|
//#endregion
|
|
1179
1149
|
//#region src/functions/executeUse.ts
|
|
1180
|
-
var
|
|
1150
|
+
var lt = /* @__PURE__ */ function(e) {
|
|
1181
1151
|
return e.global = "global", e.provide = "provide", e.local = "local", e;
|
|
1182
|
-
}({}),
|
|
1183
|
-
function
|
|
1184
|
-
let n =
|
|
1152
|
+
}({}), ut = 1, dt = re(1e5, 999999), ft = () => `__execute_use${dt}::${ut++}`, pt = () => x.get("__ui:execute-use-global__", () => []);
|
|
1153
|
+
function Q(e, t = "provide") {
|
|
1154
|
+
let n = ft(), r = (t) => {
|
|
1185
1155
|
let n = Object.freeze(e(...t));
|
|
1186
1156
|
return {
|
|
1187
1157
|
...n,
|
|
@@ -1200,25 +1170,25 @@ function $(e, t = "provide") {
|
|
|
1200
1170
|
x.remove(n);
|
|
1201
1171
|
}
|
|
1202
1172
|
});
|
|
1203
|
-
}, o = (...e) => t === "provide" ? de(n, void 0) || i(e) : x.get(n, () =>
|
|
1204
|
-
return t === "global" &&
|
|
1173
|
+
}, o = (...e) => t === "provide" ? de(n, void 0) || i(e) : x.get(n, () => G.run(() => a(e)));
|
|
1174
|
+
return t === "global" && pt().push(o), o;
|
|
1205
1175
|
}
|
|
1206
|
-
function
|
|
1207
|
-
return
|
|
1176
|
+
function mt(e) {
|
|
1177
|
+
return Q(e, "global");
|
|
1208
1178
|
}
|
|
1209
|
-
function
|
|
1210
|
-
return
|
|
1179
|
+
function ht(e) {
|
|
1180
|
+
return Q(e, "provide");
|
|
1211
1181
|
}
|
|
1212
|
-
function
|
|
1213
|
-
return
|
|
1182
|
+
function gt(e) {
|
|
1183
|
+
return Q(e, "local");
|
|
1214
1184
|
}
|
|
1215
|
-
function
|
|
1216
|
-
|
|
1185
|
+
function _t() {
|
|
1186
|
+
pt().forEach((e) => e());
|
|
1217
1187
|
}
|
|
1218
1188
|
//#endregion
|
|
1219
1189
|
//#region src/composables/ref/useMeta.ts
|
|
1220
|
-
var
|
|
1221
|
-
let e = _.getItem(), t =
|
|
1190
|
+
var vt = gt(() => {
|
|
1191
|
+
let e = _.getItem(), 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) => {
|
|
1222
1192
|
t.value = e, x();
|
|
1223
1193
|
}, d = (e) => {
|
|
1224
1194
|
n.value = e, x();
|
|
@@ -1241,7 +1211,7 @@ var bt = vt(() => {
|
|
|
1241
1211
|
}, x = () => {
|
|
1242
1212
|
k() || b();
|
|
1243
1213
|
};
|
|
1244
|
-
return
|
|
1214
|
+
return B([
|
|
1245
1215
|
t,
|
|
1246
1216
|
n,
|
|
1247
1217
|
r,
|
|
@@ -1274,35 +1244,35 @@ var bt = vt(() => {
|
|
|
1274
1244
|
setSiteName: v,
|
|
1275
1245
|
setSuffix: (t) => e.setSuffix(t)
|
|
1276
1246
|
};
|
|
1277
|
-
}),
|
|
1278
|
-
function
|
|
1279
|
-
let n =
|
|
1247
|
+
}), $ = () => vt(), yt = () => x.get("__ui:query-ref__", () => ({}));
|
|
1248
|
+
function bt(e, t) {
|
|
1249
|
+
let n = yt();
|
|
1280
1250
|
if (e in n) return n[e];
|
|
1281
|
-
let r =
|
|
1282
|
-
return k() && (
|
|
1283
|
-
|
|
1251
|
+
let r = z(v.get(e, t));
|
|
1252
|
+
return k() && (G.run(() => {
|
|
1253
|
+
B(r, (t) => v.set(e, t));
|
|
1284
1254
|
}), v.addWatch(e, (e) => {
|
|
1285
1255
|
r.value = e;
|
|
1286
1256
|
})), n[e] = r, r;
|
|
1287
1257
|
}
|
|
1288
1258
|
//#endregion
|
|
1289
1259
|
//#region src/composables/ref/useRouterList.ts
|
|
1290
|
-
var
|
|
1260
|
+
var xt = (e, t, n = !0) => {
|
|
1291
1261
|
var r;
|
|
1292
|
-
let i =
|
|
1262
|
+
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) => {
|
|
1293
1263
|
var n;
|
|
1294
1264
|
return (n = e.value) == null ? void 0 : n.find((e) => e.value === t);
|
|
1295
1265
|
}, s = (e) => {
|
|
1296
|
-
e && e !== i.value && o(e) && (i.value = e,
|
|
1266
|
+
e && e !== i.value && o(e) && (i.value = e, q.push({ name: e }));
|
|
1297
1267
|
};
|
|
1298
1268
|
return {
|
|
1299
|
-
item:
|
|
1269
|
+
item: I(() => a()),
|
|
1300
1270
|
selected: i,
|
|
1301
|
-
label:
|
|
1271
|
+
label: I(() => {
|
|
1302
1272
|
var e;
|
|
1303
1273
|
return ((e = a()) == null ? void 0 : e.label) || "";
|
|
1304
1274
|
}),
|
|
1305
|
-
list:
|
|
1275
|
+
list: I(() => e.value ? T(e.value, (e) => n && !("to" in e) ? {
|
|
1306
1276
|
...e,
|
|
1307
1277
|
to: { name: e.value }
|
|
1308
1278
|
} : e) : []),
|
|
@@ -1312,36 +1282,36 @@ var wt = (e, t, n = !0) => {
|
|
|
1312
1282
|
s((t = e.value) == null || (t = t[0]) == null ? void 0 : t.value);
|
|
1313
1283
|
}
|
|
1314
1284
|
};
|
|
1315
|
-
},
|
|
1316
|
-
function
|
|
1317
|
-
let n =
|
|
1285
|
+
}, St = () => x.get("__ui:session-ref__", () => ({}));
|
|
1286
|
+
function Ct(e, t) {
|
|
1287
|
+
let n = St();
|
|
1318
1288
|
if (e in n) return n[e];
|
|
1319
|
-
let r = new a(e, !0), i =
|
|
1320
|
-
return
|
|
1321
|
-
|
|
1289
|
+
let r = new a(e, !0), i = R(r.get(t));
|
|
1290
|
+
return G.run(() => {
|
|
1291
|
+
B(i, (e) => r.set(e));
|
|
1322
1292
|
}), n[e] = i, i;
|
|
1323
1293
|
}
|
|
1324
1294
|
//#endregion
|
|
1325
1295
|
//#region src/composables/ref/useStorageRef.ts
|
|
1326
|
-
var
|
|
1327
|
-
function
|
|
1328
|
-
let r =
|
|
1296
|
+
var wt = () => x.get("__ui:storage-ref__", () => ({}));
|
|
1297
|
+
function Tt(e, t, n) {
|
|
1298
|
+
let r = wt();
|
|
1329
1299
|
if (e in r) return r[e];
|
|
1330
|
-
let i = new a(e), o =
|
|
1331
|
-
return
|
|
1332
|
-
|
|
1300
|
+
let i = new a(e), o = R(i.get(t, n));
|
|
1301
|
+
return G.run(() => {
|
|
1302
|
+
B(o, (e) => i.set(e));
|
|
1333
1303
|
}), k() && window.addEventListener("storage", () => {
|
|
1334
1304
|
i.update(), o.value = i.get();
|
|
1335
1305
|
}), r[e] = o, o;
|
|
1336
1306
|
}
|
|
1337
1307
|
//#endregion
|
|
1338
1308
|
//#region src/composables/ref/useTranslateRef.ts
|
|
1339
|
-
function
|
|
1340
|
-
let n =
|
|
1309
|
+
function Et(e, t = S.getItem()) {
|
|
1310
|
+
let n = z(t.getListSync(e, !0)), r = async () => {
|
|
1341
1311
|
n.value = { ...await t.getList(e) };
|
|
1342
1312
|
};
|
|
1343
1313
|
if (k()) {
|
|
1344
|
-
|
|
1314
|
+
B(K.getLanguage(), r);
|
|
1345
1315
|
for (let e in n.value) if (n.value[e] === e || n.value[e] === " ") {
|
|
1346
1316
|
r().then();
|
|
1347
1317
|
break;
|
|
@@ -1349,23 +1319,23 @@ function kt(e, t = S.getItem()) {
|
|
|
1349
1319
|
}
|
|
1350
1320
|
return n;
|
|
1351
1321
|
}
|
|
1352
|
-
var
|
|
1322
|
+
var Dt = (e) => Et(e);
|
|
1353
1323
|
//#endregion
|
|
1354
1324
|
//#region src/functions/computedAsync.ts
|
|
1355
|
-
function
|
|
1356
|
-
let i =
|
|
1325
|
+
function Ot(e, t, n, r) {
|
|
1326
|
+
let i = z(C(t)), a = !0, o = async () => {
|
|
1357
1327
|
let t = await w(e);
|
|
1358
1328
|
t !== n && (i.value = t);
|
|
1359
1329
|
}, s = () => {
|
|
1360
1330
|
a && (a = !1, k() ? ye(o) : o().then());
|
|
1361
1331
|
};
|
|
1362
|
-
return
|
|
1332
|
+
return I(() => (s(), i.value), r);
|
|
1363
1333
|
}
|
|
1364
1334
|
//#endregion
|
|
1365
1335
|
//#region src/functions/computedByLanguage.ts
|
|
1366
|
-
function
|
|
1367
|
-
return
|
|
1368
|
-
if (
|
|
1336
|
+
function kt(e, t = () => void 0, n, r) {
|
|
1337
|
+
return I(() => {
|
|
1338
|
+
if (K.get().value && (n === void 0 || n())) {
|
|
1369
1339
|
let t = e();
|
|
1370
1340
|
if (t !== void 0) return t;
|
|
1371
1341
|
}
|
|
@@ -1374,12 +1344,12 @@ function Mt(e, t = () => void 0, n, r) {
|
|
|
1374
1344
|
}
|
|
1375
1345
|
//#endregion
|
|
1376
1346
|
//#region src/functions/computedEternity.ts
|
|
1377
|
-
function
|
|
1347
|
+
function At(e, t) {
|
|
1378
1348
|
return oe((n, r) => {
|
|
1379
|
-
let i =
|
|
1349
|
+
let i = z(C(t)), a = !1, o = async () => {
|
|
1380
1350
|
i.value = await w(e), r();
|
|
1381
1351
|
}, s = () => {
|
|
1382
|
-
a || (a = !0, k() ?
|
|
1352
|
+
a || (a = !0, k() ? G.run(() => {
|
|
1383
1353
|
ye(async () => await o());
|
|
1384
1354
|
}) : o().then());
|
|
1385
1355
|
};
|
|
@@ -1395,17 +1365,17 @@ function Nt(e, t) {
|
|
|
1395
1365
|
}
|
|
1396
1366
|
//#endregion
|
|
1397
1367
|
//#region src/functions/dxtFunctionalPlugin.ts
|
|
1398
|
-
var
|
|
1399
|
-
if (n.api && e.setConfig(n.api), n.translate && S.setConfig(n.translate), n.location &&
|
|
1368
|
+
var jt = { install(t, n = {}) {
|
|
1369
|
+
if (n.api && e.setConfig(n.api), n.translate && S.setConfig(n.translate), n.location && K.setValueDefault(n.location), n.icons && h.setConfig(n.icons), n.iconsSocial && be.addIcons(n.iconsSocial), n.metaSuffix && $().setSuffix(n.metaSuffix), n.router) q.set(n.router);
|
|
1400
1370
|
else {
|
|
1401
1371
|
let e = t.config.globalProperties.$router;
|
|
1402
|
-
e &&
|
|
1372
|
+
e && q.set(e);
|
|
1403
1373
|
}
|
|
1404
|
-
n.errorCauses && s.addList(n.errorCauses), n.errorHandlers && s.addHandlerList(n.errorHandlers), n.errorCallbacks && n.errorCallbacks.forEach((e) => s.addCallback(e)),
|
|
1374
|
+
n.errorCauses && s.addList(n.errorCauses), n.errorHandlers && s.addHandlerList(n.errorHandlers), n.errorCallbacks && n.errorCallbacks.forEach((e) => s.addCallback(e)), _t();
|
|
1405
1375
|
} };
|
|
1406
1376
|
//#endregion
|
|
1407
1377
|
//#region src/functions/getInject.ts
|
|
1408
|
-
function
|
|
1378
|
+
function Mt(e) {
|
|
1409
1379
|
if (ue()) {
|
|
1410
1380
|
let t = de(e);
|
|
1411
1381
|
if (t) return t;
|
|
@@ -1413,24 +1383,24 @@ function Ft(e) {
|
|
|
1413
1383
|
}
|
|
1414
1384
|
//#endregion
|
|
1415
1385
|
//#region src/functions/ref/executeFunctionRef.ts
|
|
1416
|
-
function
|
|
1417
|
-
return
|
|
1386
|
+
function Nt(e) {
|
|
1387
|
+
return V(C(e));
|
|
1418
1388
|
}
|
|
1419
1389
|
//#endregion
|
|
1420
1390
|
//#region src/functions/render/getBind.ts
|
|
1421
|
-
function
|
|
1391
|
+
function Pt(e, t = {}, n = "value", r = !1) {
|
|
1422
1392
|
let i = typeof t == "string", a = i ? t : n, o = i ? {} : t;
|
|
1423
|
-
return e ? e && j(e) && (a in e || r) ?
|
|
1393
|
+
return e ? e && j(e) && (a in e || r) ? H(o, e) : H(o, { [a]: e }) : i ? {} : { ...o };
|
|
1424
1394
|
}
|
|
1425
1395
|
//#endregion
|
|
1426
1396
|
//#region src/functions/ref/getBindRef.ts
|
|
1427
|
-
function
|
|
1428
|
-
return
|
|
1397
|
+
function Ft(e, t = {}, n = "value") {
|
|
1398
|
+
return I(() => Pt(V(e), V(t), n));
|
|
1429
1399
|
}
|
|
1430
1400
|
//#endregion
|
|
1431
1401
|
//#region src/functions/ref/setRef.ts
|
|
1432
|
-
function
|
|
1402
|
+
function It(e, t) {
|
|
1433
1403
|
e.value !== t && (e.value = t);
|
|
1434
1404
|
}
|
|
1435
1405
|
//#endregion
|
|
1436
|
-
export {
|
|
1406
|
+
export { Ae as DatetimeRef, Se as DesignAbstract, Ce as DesignAsyncAbstract, xe as DesignChanged, Oe as DesignComp, U as DesignComponents, ke as DesignConstructorAbstract, G as EffectScopeGlobal, je as EventRef, lt as ExecuteUseType, Me as GeoFlagRef, Ne as GeoIntlRef, K as GeoRef, Pe as GeoUnitRef, Fe as ListDataRef, q as RouterItemRef, Le as ScrollbarWidthRef, Ot as computedAsync, kt as computedByLanguage, At as computedEternity, jt as dxtFunctionalPlugin, Nt as executeFunctionRef, Q as executeUse, mt as executeUseGlobal, _t as executeUseGlobalInit, gt as executeUseLocal, ht as executeUseProvide, Re as getApiErrorRef, Pt as getBind, Ft as getBindRef, we as getClassName, Te as getIndexForRender, Mt as getInject, J as getOptions, V as getRef, Ee as render, ze as setApiRefGlobalConditions, It as setRef, Dt as t, H as toBind, De as toBinds, W as toRefItem, Be as useApiAsyncRef, Ve as useApiDelete, He as useApiGet, Ye as useApiManagementAsyncRef, Je as useApiManagementRef, Ue as useApiPost, We as useApiPut, X as useApiRef, Z as useApiRequest, Ze as useBroadcastValueRef, $e as useCookieRef, Ge as useFormattersRef, et as useGeoIntlRef, tt as useGeoUnitRef, rt as useHashRef, st as useLazyItemByMarginRef, it as useLazyRef, ct as useLoadingRef, $ as useMeta, bt as useQueryRef, xt as useRouterList, qe as useSearchRef, Ke as useSearchValueRef, Ct as useSessionRef, Tt as useStorageRef, Et as useTranslateRef };
|