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