@dxtmisha/functional 1.14.1 → 1.14.2
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 +5 -0
- package/dist/library.js +284 -283
- package/dist/src/functions/dxtFunctionalPlugin.d.ts +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.14.2] - 2026-06-25
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- **dxtFunctionalPlugin**: Added `iconsSocial` configuration option (type `InputSocialIcons`) to allow registering custom social network icons globally via `MediaSocial.addIcons` during Vue plugin initialization.
|
|
9
|
+
|
|
5
10
|
## [1.14.0] - 2026-06-22
|
|
6
11
|
|
|
7
12
|
### Added
|
package/dist/library.js
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
import { Api as e, ApiError as t, ApiMethodItem as n, BroadcastMessage as r, Cookie as i, DataStorage as a, Datetime as o, ErrorCenter as s, EventItem as c, Formatters as l, Geo as u, GeoFlag as d, GeoIntl as f, Hash as p, Icons as m, Loading as h, MetaStatic as g, Query as _, ScrollbarWidth as v, SearchList as y, ServerStorage as b, Translate as x, executeFunction as S, executePromise as C, forEach as w, getColumn as T, getElementId as E, getExp as D, isApiSuccess as O, isArray as ee, isDomRuntime as k, isFunction as A, isObject as
|
|
2
|
-
import { computed as
|
|
1
|
+
import { Api as e, ApiError as t, ApiMethodItem as n, BroadcastMessage as r, Cookie as i, DataStorage as a, Datetime as o, ErrorCenter as s, EventItem as c, Formatters as l, Geo as u, GeoFlag as d, GeoIntl as f, Hash as p, Icons as m, Loading as h, MetaStatic as g, Query as _, ScrollbarWidth as v, SearchList as y, ServerStorage as b, Translate as x, executeFunction as S, executePromise as C, forEach as w, getColumn as T, getElementId as E, getExp as D, isApiSuccess as O, isArray as ee, isDomRuntime as k, isFunction as A, isObject as te, isObjectNotArray as j, isSelected as M, isString as N, random as ne, toArray as P, toCamelCase as re, toDate as ie } from "@dxtmisha/functional-basic";
|
|
2
|
+
import { computed as F, customRef as ae, effectScope as oe, getCurrentInstance as se, h as ce, hasInjectionContext as le, inject as ue, isRef as I, onServerPrefetch as de, onUnmounted as fe, provide as pe, ref as L, shallowRef as R, toRefs as me, triggerRef as he, useAttrs as ge, useSlots as _e, watch as z, watchEffect as ve } from "vue";
|
|
3
|
+
import { MediaSocial as ye } from "@dxtmisha/media";
|
|
3
4
|
export * from "@dxtmisha/functional-basic";
|
|
4
5
|
//#endregion
|
|
5
6
|
//#region \0@oxc-project+runtime@0.130.0/helpers/typeof.js
|
|
6
|
-
function
|
|
7
|
+
function B(e) {
|
|
7
8
|
"@babel/helpers - typeof";
|
|
8
|
-
return
|
|
9
|
+
return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
9
10
|
return typeof e;
|
|
10
11
|
} : function(e) {
|
|
11
12
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
12
|
-
},
|
|
13
|
+
}, B(e);
|
|
13
14
|
}
|
|
14
15
|
//#endregion
|
|
15
16
|
//#region \0@oxc-project+runtime@0.130.0/helpers/toPrimitive.js
|
|
16
|
-
function
|
|
17
|
-
if (
|
|
17
|
+
function be(e, t) {
|
|
18
|
+
if (B(e) != "object" || !e) return e;
|
|
18
19
|
var n = e[Symbol.toPrimitive];
|
|
19
20
|
if (n !== void 0) {
|
|
20
21
|
var r = n.call(e, t || "default");
|
|
21
|
-
if (
|
|
22
|
+
if (B(r) != "object") return r;
|
|
22
23
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
23
24
|
}
|
|
24
25
|
return (t === "string" ? String : Number)(e);
|
|
25
26
|
}
|
|
26
27
|
//#endregion
|
|
27
28
|
//#region \0@oxc-project+runtime@0.130.0/helpers/toPropertyKey.js
|
|
28
|
-
function
|
|
29
|
-
var t =
|
|
30
|
-
return
|
|
29
|
+
function xe(e) {
|
|
30
|
+
var t = be(e, "string");
|
|
31
|
+
return B(t) == "symbol" ? t : t + "";
|
|
31
32
|
}
|
|
32
33
|
//#endregion
|
|
33
34
|
//#region \0@oxc-project+runtime@0.130.0/helpers/defineProperty.js
|
|
34
|
-
function
|
|
35
|
-
return (t =
|
|
35
|
+
function V(e, t, n) {
|
|
36
|
+
return (t = xe(t)) in e ? Object.defineProperty(e, t, {
|
|
36
37
|
value: n,
|
|
37
38
|
enumerable: !0,
|
|
38
39
|
configurable: !0,
|
|
@@ -41,9 +42,9 @@ function H(e, t, n) {
|
|
|
41
42
|
}
|
|
42
43
|
//#endregion
|
|
43
44
|
//#region src/classes/design/DesignChanged.ts
|
|
44
|
-
var
|
|
45
|
+
var Se = class {
|
|
45
46
|
constructor(e, t = Object.keys(e)) {
|
|
46
|
-
|
|
47
|
+
V(this, "props", void 0), V(this, "watch", void 0), V(this, "cache", {}), this.props = e, this.watch = t;
|
|
47
48
|
}
|
|
48
49
|
is(e) {
|
|
49
50
|
return ee(e) ? !!e.find((e) => this.isDifferent(e)) : this.isDifferent(e);
|
|
@@ -62,9 +63,9 @@ var be = class {
|
|
|
62
63
|
var t, n;
|
|
63
64
|
return ((t = this.cache) == null ? void 0 : t[e]) !== ((n = this.props) == null ? void 0 : n[e]);
|
|
64
65
|
}
|
|
65
|
-
},
|
|
66
|
+
}, Ce = class {
|
|
66
67
|
constructor(e, t, n) {
|
|
67
|
-
|
|
68
|
+
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 Se(e, n);
|
|
68
69
|
}
|
|
69
70
|
make(e) {
|
|
70
71
|
return this.makeCallback(e), this;
|
|
@@ -81,7 +82,7 @@ var be = class {
|
|
|
81
82
|
makeCallbackItem() {
|
|
82
83
|
this.callback && this.callback(this.event);
|
|
83
84
|
}
|
|
84
|
-
},
|
|
85
|
+
}, we = class extends Ce {
|
|
85
86
|
make(e) {
|
|
86
87
|
return this.makeCallback(e).then(), this;
|
|
87
88
|
}
|
|
@@ -91,32 +92,32 @@ var be = class {
|
|
|
91
92
|
};
|
|
92
93
|
//#endregion
|
|
93
94
|
//#region src/functions/ref/getRef.ts
|
|
94
|
-
function
|
|
95
|
-
return
|
|
95
|
+
function H(e) {
|
|
96
|
+
return I(e) ? e.value : e;
|
|
96
97
|
}
|
|
97
98
|
//#endregion
|
|
98
99
|
//#region src/functions/render/getClassName.ts
|
|
99
|
-
function
|
|
100
|
+
function Te(e) {
|
|
100
101
|
return e && "class" in e && typeof e.class == "string" ? e.class : void 0;
|
|
101
102
|
}
|
|
102
103
|
//#endregion
|
|
103
104
|
//#region src/functions/render/getIndexForRender.ts
|
|
104
|
-
function
|
|
105
|
-
let r = t == null ? void 0 : t.id, i = t == null ? void 0 : t.index, a =
|
|
106
|
-
if (
|
|
105
|
+
function Ee(e, t, n) {
|
|
106
|
+
let r = t == null ? void 0 : t.id, i = t == null ? void 0 : t.index, a = Te(t), o = "";
|
|
107
|
+
if (N(e) && (o += e), n && (o += `.${n}`), i && N(i) && (o += `.${i}`), a && (o += `.${a}`), r && (o += `.${r}`), o !== "") return o;
|
|
107
108
|
}
|
|
108
109
|
//#endregion
|
|
109
110
|
//#region src/functions/ref/render.ts
|
|
110
|
-
function
|
|
111
|
+
function De(e, t, n, r) {
|
|
111
112
|
let i = t, a = t && "key" in t;
|
|
112
113
|
return (!t || !a) && (i = {
|
|
113
114
|
...t,
|
|
114
|
-
key:
|
|
115
|
-
}),
|
|
115
|
+
key: Ee(e, t, r)
|
|
116
|
+
}), ce(e, i, n);
|
|
116
117
|
}
|
|
117
118
|
//#endregion
|
|
118
119
|
//#region src/functions/toBind.ts
|
|
119
|
-
function
|
|
120
|
+
function U(e, t) {
|
|
120
121
|
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
122
|
...e,
|
|
122
123
|
...t
|
|
@@ -125,17 +126,17 @@ function W(e, t) {
|
|
|
125
126
|
}
|
|
126
127
|
//#endregion
|
|
127
128
|
//#region src/functions/toBinds.ts
|
|
128
|
-
function
|
|
129
|
+
function Oe(...e) {
|
|
129
130
|
let t = {};
|
|
130
131
|
return e.forEach((e) => {
|
|
131
|
-
e && (t =
|
|
132
|
+
e && (t = U(t, e));
|
|
132
133
|
}), t;
|
|
133
134
|
}
|
|
134
135
|
//#endregion
|
|
135
136
|
//#region src/classes/design/DesignComponents.ts
|
|
136
|
-
var
|
|
137
|
+
var W = class {
|
|
137
138
|
constructor(e = {}, t) {
|
|
138
|
-
|
|
139
|
+
V(this, "components", void 0), V(this, "modification", void 0), V(this, "caching", {}), this.components = e, this.modification = t;
|
|
139
140
|
}
|
|
140
141
|
is(e) {
|
|
141
142
|
return e in this.components;
|
|
@@ -146,9 +147,9 @@ var G = class {
|
|
|
146
147
|
}
|
|
147
148
|
getModification(e, t) {
|
|
148
149
|
if (e) {
|
|
149
|
-
e in this.caching || (this.caching[e] =
|
|
150
|
+
e in this.caching || (this.caching[e] = F(() => this.computeModification(e)));
|
|
150
151
|
let n = this.caching[e];
|
|
151
|
-
if (n) return t ?
|
|
152
|
+
if (n) return t ? Oe(n.value, t) : n.value;
|
|
152
153
|
}
|
|
153
154
|
return t;
|
|
154
155
|
}
|
|
@@ -159,7 +160,7 @@ var G = class {
|
|
|
159
160
|
renderOne(e, t, n, r) {
|
|
160
161
|
if (this.is(e)) {
|
|
161
162
|
let i = r == null ? e : r;
|
|
162
|
-
return
|
|
163
|
+
return De(this.get(e), this.getModification(i, t), n, i);
|
|
163
164
|
}
|
|
164
165
|
}
|
|
165
166
|
renderAdd(e, t, n, r, i) {
|
|
@@ -167,21 +168,21 @@ var G = class {
|
|
|
167
168
|
}
|
|
168
169
|
computeModification(e) {
|
|
169
170
|
var t;
|
|
170
|
-
let n =
|
|
171
|
-
if (n &&
|
|
171
|
+
let n = H((t = this.modification) == null ? void 0 : t[e]);
|
|
172
|
+
if (n && j(n)) {
|
|
172
173
|
let e = {};
|
|
173
174
|
return w(n, (t, n) => {
|
|
174
|
-
e[n] =
|
|
175
|
+
e[n] = H(t);
|
|
175
176
|
}), e;
|
|
176
177
|
}
|
|
177
178
|
return {};
|
|
178
179
|
}
|
|
179
|
-
},
|
|
180
|
+
}, ke = class extends W {}, Ae = class {
|
|
180
181
|
constructor(e, t, n) {
|
|
181
|
-
|
|
182
|
+
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 ? me(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 = ge(), this.slots = _e();
|
|
182
183
|
}
|
|
183
184
|
init() {
|
|
184
|
-
return this.classesSub =
|
|
185
|
+
return this.classesSub = F(() => this.initClasses()), this.stylesSub = F(() => this.initStyles()), this.dataExpose = this.initExpose(), this;
|
|
185
186
|
}
|
|
186
187
|
getName() {
|
|
187
188
|
return this.name.join("-");
|
|
@@ -190,13 +191,13 @@ var G = class {
|
|
|
190
191
|
return String(this.name[0]);
|
|
191
192
|
}
|
|
192
193
|
getSubClass(e) {
|
|
193
|
-
return `${this.getName()}__${
|
|
194
|
+
return `${this.getName()}__${P(e).join("__")}`;
|
|
194
195
|
}
|
|
195
196
|
getStatusClass(e) {
|
|
196
|
-
return `${this.getName()}--${
|
|
197
|
+
return `${this.getName()}--${P(e).join("--")}`;
|
|
197
198
|
}
|
|
198
199
|
getStyle(e) {
|
|
199
|
-
return `--${this.getName()}-sys-${
|
|
200
|
+
return `--${this.getName()}-sys-${P(e).join("-")}`;
|
|
200
201
|
}
|
|
201
202
|
getAttrs() {
|
|
202
203
|
var e;
|
|
@@ -221,10 +222,10 @@ var G = class {
|
|
|
221
222
|
}
|
|
222
223
|
}
|
|
223
224
|
toClass(e) {
|
|
224
|
-
return
|
|
225
|
+
return j(e) ? e : Array.isArray(e) ? { [e.filter((e) => typeof e == "string" && e.trim() !== "").join(" ")]: !0 } : typeof e == "string" ? { [e]: !0 } : {};
|
|
225
226
|
}
|
|
226
227
|
toClassName(e) {
|
|
227
|
-
if (
|
|
228
|
+
if (te(e)) {
|
|
228
229
|
let t = {};
|
|
229
230
|
return w(e, (e, n) => {
|
|
230
231
|
n.match(/\?\?/) ? t[n.replace(/\?\?/, this.getName())] = e : n.match(/\?/) ? t[n.replace(/\?/, this.getDesign())] = e : t[n] = e;
|
|
@@ -233,7 +234,7 @@ var G = class {
|
|
|
233
234
|
return {};
|
|
234
235
|
}
|
|
235
236
|
initName(e) {
|
|
236
|
-
return w(e.split(".", 2), (e) =>
|
|
237
|
+
return w(e.split(".", 2), (e) => re(e));
|
|
237
238
|
}
|
|
238
239
|
updateClasses() {
|
|
239
240
|
var e, t, n;
|
|
@@ -263,18 +264,18 @@ var G = class {
|
|
|
263
264
|
};
|
|
264
265
|
//#endregion
|
|
265
266
|
//#region src/functions/ref/toRefItem.ts
|
|
266
|
-
function
|
|
267
|
-
return
|
|
267
|
+
function G(e) {
|
|
268
|
+
return I(e) ? e : L(e);
|
|
268
269
|
}
|
|
269
270
|
//#endregion
|
|
270
271
|
//#region src/classes/ref/DatetimeRef.ts
|
|
271
|
-
var
|
|
272
|
+
var je = class {
|
|
272
273
|
constructor(e, t = "date", n = u.getLocation()) {
|
|
273
|
-
|
|
274
|
-
this.date.value =
|
|
275
|
-
}),
|
|
274
|
+
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(ie(this.item.value)), this.datetime = new o(this.date.value, this.type.value, this.code.value), z(this.item, (e) => {
|
|
275
|
+
this.date.value = ie(e);
|
|
276
|
+
}), z(this.type, (e) => this.datetime.setType(e)), z(this.code, (e) => this.datetime.setCode(e)), z(this.date, (e) => {
|
|
276
277
|
this.datetime.setDate(e), this.updateDate();
|
|
277
|
-
}), this.datetime.setWatch(() =>
|
|
278
|
+
}), this.datetime.setWatch(() => he(this.date)), this.updateDate();
|
|
278
279
|
}
|
|
279
280
|
getItem() {
|
|
280
281
|
return this.item;
|
|
@@ -286,105 +287,105 @@ var ke = class {
|
|
|
286
287
|
return this.datetime;
|
|
287
288
|
}
|
|
288
289
|
getHoursType() {
|
|
289
|
-
return
|
|
290
|
+
return F(() => this.date.value && this.datetime.getHoursType());
|
|
290
291
|
}
|
|
291
292
|
getFirstDayCode() {
|
|
292
|
-
return
|
|
293
|
+
return F(() => this.date.value && this.datetime.getFirstDayCode());
|
|
293
294
|
}
|
|
294
295
|
getYear() {
|
|
295
|
-
return
|
|
296
|
+
return F(() => this.year.value);
|
|
296
297
|
}
|
|
297
298
|
getMonth() {
|
|
298
|
-
return
|
|
299
|
+
return F(() => this.month.value);
|
|
299
300
|
}
|
|
300
301
|
getDay() {
|
|
301
|
-
return
|
|
302
|
+
return F(() => this.day.value);
|
|
302
303
|
}
|
|
303
304
|
getHour() {
|
|
304
|
-
return
|
|
305
|
+
return F(() => this.hour.value);
|
|
305
306
|
}
|
|
306
307
|
getMinute() {
|
|
307
|
-
return
|
|
308
|
+
return F(() => this.minute.value);
|
|
308
309
|
}
|
|
309
310
|
getSecond() {
|
|
310
|
-
return
|
|
311
|
+
return F(() => this.second.value);
|
|
311
312
|
}
|
|
312
313
|
getMaxDay() {
|
|
313
|
-
return
|
|
314
|
+
return F(() => this.date.value && this.datetime.getMaxDay());
|
|
314
315
|
}
|
|
315
316
|
locale(e = this.type.value, t) {
|
|
316
|
-
return
|
|
317
|
+
return F(() => this.date.value && this.datetime.locale(e, t));
|
|
317
318
|
}
|
|
318
319
|
standard(e = !0) {
|
|
319
|
-
return
|
|
320
|
+
return F(() => this.date.value && this.datetime.standard(e));
|
|
320
321
|
}
|
|
321
322
|
updateDate() {
|
|
322
323
|
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
324
|
}
|
|
324
|
-
},
|
|
325
|
+
}, K = class {
|
|
325
326
|
static run(e) {
|
|
326
327
|
return this.getScope().run(e);
|
|
327
328
|
}
|
|
328
329
|
static getScope() {
|
|
329
|
-
return b.get("__ui:effect-scope-global__", () =>
|
|
330
|
+
return b.get("__ui:effect-scope-global__", () => oe(!0));
|
|
330
331
|
}
|
|
331
|
-
},
|
|
332
|
+
}, Me = class extends c {
|
|
332
333
|
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),
|
|
334
|
+
let o = G(e), s = G(t);
|
|
335
|
+
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));
|
|
335
336
|
}
|
|
336
|
-
},
|
|
337
|
+
}, Ne = class {
|
|
337
338
|
constructor(e = u.getLocation()) {
|
|
338
|
-
|
|
339
|
+
V(this, "flag", void 0), this.flag = F(() => new d(H(e)));
|
|
339
340
|
}
|
|
340
341
|
getCode() {
|
|
341
342
|
return this.flag.value.getCode();
|
|
342
343
|
}
|
|
343
344
|
get(e = this.getCode()) {
|
|
344
|
-
return
|
|
345
|
+
return F(() => this.flag.value.get(H(e)));
|
|
345
346
|
}
|
|
346
347
|
getLanguage(e = this.getCode()) {
|
|
347
|
-
return
|
|
348
|
+
return F(() => this.flag.value.getLanguage(H(e)));
|
|
348
349
|
}
|
|
349
350
|
getFlag(e = this.getCode()) {
|
|
350
|
-
return
|
|
351
|
+
return F(() => this.flag.value.getFlag(H(e)));
|
|
351
352
|
}
|
|
352
353
|
getList(e) {
|
|
353
|
-
return
|
|
354
|
+
return F(() => this.flag.value.getList(H(e)));
|
|
354
355
|
}
|
|
355
356
|
getListLanguage(e) {
|
|
356
|
-
return
|
|
357
|
+
return F(() => this.flag.value.getListLanguage(H(e)));
|
|
357
358
|
}
|
|
358
359
|
getNational(e) {
|
|
359
|
-
return
|
|
360
|
+
return F(() => this.flag.value.getNational(H(e)));
|
|
360
361
|
}
|
|
361
362
|
getNationalLanguage(e) {
|
|
362
|
-
return
|
|
363
|
+
return F(() => this.flag.value.getNationalLanguage(H(e)));
|
|
363
364
|
}
|
|
364
|
-
},
|
|
365
|
+
}, q = class {
|
|
365
366
|
static get() {
|
|
366
|
-
return b.get("__ui:geo-ref__", () =>
|
|
367
|
+
return b.get("__ui:geo-ref__", () => R(u.getItem()));
|
|
367
368
|
}
|
|
368
369
|
static getCountry() {
|
|
369
|
-
return b.get("__ui:geo-ref-country__", () =>
|
|
370
|
+
return b.get("__ui:geo-ref-country__", () => F(() => this.get().value.country));
|
|
370
371
|
}
|
|
371
372
|
static getLanguage() {
|
|
372
|
-
return b.get("__ui:geo-ref-language__", () =>
|
|
373
|
+
return b.get("__ui:geo-ref-language__", () => F(() => this.get().value.language));
|
|
373
374
|
}
|
|
374
375
|
static getStandard() {
|
|
375
|
-
return b.get("__ui:geo-ref-standard__", () =>
|
|
376
|
+
return b.get("__ui:geo-ref-standard__", () => F(() => this.get().value.standard));
|
|
376
377
|
}
|
|
377
378
|
static getFirstDay() {
|
|
378
|
-
return b.get("__ui:geo-ref-first-day__", () =>
|
|
379
|
+
return b.get("__ui:geo-ref-first-day__", () => F(() => this.get().value.firstDay));
|
|
379
380
|
}
|
|
380
381
|
static getLocation() {
|
|
381
|
-
return b.get("__ui:geo-ref-location__", () =>
|
|
382
|
+
return b.get("__ui:geo-ref-location__", () => F(() => this.get().value.location));
|
|
382
383
|
}
|
|
383
384
|
static getLocationCountry() {
|
|
384
|
-
return b.get("__ui:geo-ref-location-country__", () =>
|
|
385
|
+
return b.get("__ui:geo-ref-location-country__", () => F(() => this.get().value.locationCountry));
|
|
385
386
|
}
|
|
386
387
|
static getLocationLanguage() {
|
|
387
|
-
return b.get("__ui:geo-ref-location-language__", () =>
|
|
388
|
+
return b.get("__ui:geo-ref-location-language__", () => F(() => this.get().value.locationLanguage));
|
|
388
389
|
}
|
|
389
390
|
static set(e) {
|
|
390
391
|
u.set(e, !0), this.get().value = u.getItem();
|
|
@@ -392,82 +393,82 @@ var ke = class {
|
|
|
392
393
|
static setValueDefault(e) {
|
|
393
394
|
u.setValueDefault(e), this.get().value = u.getItem();
|
|
394
395
|
}
|
|
395
|
-
},
|
|
396
|
+
}, Pe = class {
|
|
396
397
|
constructor(e) {
|
|
397
|
-
|
|
398
|
+
V(this, "location", void 0), V(this, "intl", void 0), this.location = G(e), this.intl = F(() => {
|
|
398
399
|
var e;
|
|
399
|
-
return new f((e = this.location.value) == null ?
|
|
400
|
+
return new f((e = this.location.value) == null ? q.getLanguage().value : e);
|
|
400
401
|
});
|
|
401
402
|
}
|
|
402
403
|
display(e, t) {
|
|
403
|
-
return
|
|
404
|
+
return F(() => this.intl.value.display(H(e), t));
|
|
404
405
|
}
|
|
405
406
|
languageName(e, t) {
|
|
406
|
-
return
|
|
407
|
+
return F(() => this.intl.value.languageName(H(e), t));
|
|
407
408
|
}
|
|
408
409
|
countryName(e, t) {
|
|
409
|
-
return
|
|
410
|
+
return F(() => this.intl.value.countryName(H(e), t));
|
|
410
411
|
}
|
|
411
412
|
number(e, t) {
|
|
412
|
-
return
|
|
413
|
+
return F(() => this.intl.value.number(H(e), t));
|
|
413
414
|
}
|
|
414
415
|
decimal() {
|
|
415
|
-
return
|
|
416
|
+
return F(() => this.intl.value.decimal());
|
|
416
417
|
}
|
|
417
418
|
currency(e, t, n = !1) {
|
|
418
|
-
return
|
|
419
|
+
return F(() => this.intl.value.currency(H(e), H(t), n));
|
|
419
420
|
}
|
|
420
421
|
currencySymbol(e, t = "symbol") {
|
|
421
|
-
return
|
|
422
|
+
return F(() => this.intl.value.currencySymbol(H(e), t));
|
|
422
423
|
}
|
|
423
424
|
unit(e, t) {
|
|
424
|
-
return
|
|
425
|
+
return F(() => this.intl.value.unit(H(e), t));
|
|
425
426
|
}
|
|
426
427
|
sizeFile(e, t = "byte") {
|
|
427
|
-
return
|
|
428
|
+
return F(() => this.intl.value.sizeFile(H(e), t));
|
|
428
429
|
}
|
|
429
430
|
percent(e, t) {
|
|
430
|
-
return
|
|
431
|
+
return F(() => this.intl.value.percent(H(e), t));
|
|
431
432
|
}
|
|
432
433
|
percentBy100(e, t) {
|
|
433
|
-
return
|
|
434
|
+
return F(() => this.intl.value.percentBy100(H(e), t));
|
|
434
435
|
}
|
|
435
436
|
plural(e, t, n, r) {
|
|
436
|
-
return
|
|
437
|
+
return F(() => this.intl.value.plural(H(e), t, n, r));
|
|
437
438
|
}
|
|
438
439
|
date(e, t, n, r) {
|
|
439
|
-
return
|
|
440
|
+
return F(() => this.intl.value.date(H(e), t, n, r));
|
|
440
441
|
}
|
|
441
442
|
relative(e, t, n) {
|
|
442
|
-
return
|
|
443
|
+
return F(() => this.intl.value.relative(H(e), t, n));
|
|
443
444
|
}
|
|
444
445
|
relativeLimit(e, t, n, r, i, a, o) {
|
|
445
|
-
return
|
|
446
|
+
return F(() => this.intl.value.relativeLimit(H(e), t, n, r, i, a, o));
|
|
446
447
|
}
|
|
447
448
|
relativeByValue(e, t, n) {
|
|
448
|
-
return
|
|
449
|
+
return F(() => this.intl.value.relativeByValue(H(e), t, n));
|
|
449
450
|
}
|
|
450
451
|
month(e, t) {
|
|
451
|
-
return
|
|
452
|
+
return F(() => this.intl.value.month(H(e), t));
|
|
452
453
|
}
|
|
453
454
|
months(e) {
|
|
454
|
-
return
|
|
455
|
+
return F(() => this.intl.value.months(e));
|
|
455
456
|
}
|
|
456
457
|
weekday(e, t) {
|
|
457
|
-
return
|
|
458
|
+
return F(() => this.intl.value.weekday(H(e), t));
|
|
458
459
|
}
|
|
459
460
|
weekdays(e) {
|
|
460
|
-
return
|
|
461
|
+
return F(() => this.intl.value.weekdays(e));
|
|
461
462
|
}
|
|
462
463
|
time(e) {
|
|
463
|
-
return
|
|
464
|
+
return F(() => this.intl.value.time(H(e)));
|
|
464
465
|
}
|
|
465
466
|
sort(e, t = (e, t) => [e, t]) {
|
|
466
|
-
return
|
|
467
|
+
return F(() => this.intl.value.sort([...H(e)], t));
|
|
467
468
|
}
|
|
468
|
-
},
|
|
469
|
+
}, Fe = class e {
|
|
469
470
|
constructor(e, t, n, r, i, a, o, s, c, l = 0, u = 9999999, d) {
|
|
470
|
-
|
|
471
|
+
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(() => w(H(this.list) || [], (e, t) => this.initItem(t, e)))), V(this, "liteData", F(() => {
|
|
471
472
|
if (this.isLite()) {
|
|
472
473
|
let e = [];
|
|
473
474
|
for (let t of this.data.value) {
|
|
@@ -484,11 +485,11 @@ var ke = class {
|
|
|
484
485
|
return e;
|
|
485
486
|
}
|
|
486
487
|
return this.data.value;
|
|
487
|
-
})),
|
|
488
|
+
})), V(this, "fullData", F(() => {
|
|
488
489
|
let e = this.getFocus(), t = this.getHighlight(), n = this.getSelected();
|
|
489
490
|
return w(this.data.value, (r) => {
|
|
490
491
|
var i, a;
|
|
491
|
-
let o =
|
|
492
|
+
let o = M(r.index, n);
|
|
492
493
|
return {
|
|
493
494
|
...r,
|
|
494
495
|
focus: e === r.index,
|
|
@@ -498,7 +499,7 @@ var ke = class {
|
|
|
498
499
|
disabled: (a = r.disabled) == null ? !o && r.type === "item" && this.isSelectedMax.value : a
|
|
499
500
|
};
|
|
500
501
|
});
|
|
501
|
-
})),
|
|
502
|
+
})), V(this, "map", F(() => {
|
|
502
503
|
let e = [];
|
|
503
504
|
return this.data.value.forEach((t) => {
|
|
504
505
|
switch (t.type) {
|
|
@@ -511,7 +512,7 @@ var ke = class {
|
|
|
511
512
|
break;
|
|
512
513
|
}
|
|
513
514
|
}), e;
|
|
514
|
-
})),
|
|
515
|
+
})), 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(() => {
|
|
515
516
|
let e = this.getHighlight();
|
|
516
517
|
if (e && e.length >= this.getHighlightLengthStart()) {
|
|
517
518
|
let t = D(e, "i");
|
|
@@ -521,22 +522,22 @@ var ke = class {
|
|
|
521
522
|
});
|
|
522
523
|
}
|
|
523
524
|
return -1;
|
|
524
|
-
})),
|
|
525
|
+
})), V(this, "isSelected", F(() => {
|
|
525
526
|
let e = this.getSelected();
|
|
526
|
-
return !!e && this.mapItems.value.findIndex((t) =>
|
|
527
|
-
})),
|
|
528
|
-
let e = Number(
|
|
527
|
+
return !!e && this.mapItems.value.findIndex((t) => M(t.index, e)) !== -1;
|
|
528
|
+
})), V(this, "isSelectedMin", F(() => {
|
|
529
|
+
let e = Number(H(this.min) || 0);
|
|
529
530
|
return e > 0 ? this.selectedListInGroup.value.length >= e : !1;
|
|
530
|
-
})),
|
|
531
|
-
let e = Number(
|
|
531
|
+
})), V(this, "isSelectedMax", F(() => {
|
|
532
|
+
let e = Number(H(this.max) || 9999999);
|
|
532
533
|
return e > 0 ? this.selectedListInGroup.value.length >= e : !1;
|
|
533
|
-
})),
|
|
534
|
+
})), V(this, "selectedList", F(() => {
|
|
534
535
|
let e = this.getSelected();
|
|
535
|
-
return e && this.isSelected.value ? this.mapItems.value.filter((t) =>
|
|
536
|
-
})),
|
|
536
|
+
return e && this.isSelected.value ? this.mapItems.value.filter((t) => M(t.index, e)) : [];
|
|
537
|
+
})), V(this, "selectedListInGroup", F(() => {
|
|
537
538
|
let e = this.getSelected();
|
|
538
|
-
return e && this.isSelected.value ? this.data.value.filter((t) =>
|
|
539
|
-
})),
|
|
539
|
+
return e && this.isSelected.value ? this.data.value.filter((t) => M(t.index, e)) : [];
|
|
540
|
+
})), V(this, "selectedNames", F(() => T(this.selectedList.value, "label"))), V(this, "selectedValues", F(() => T(this.selectedList.value, "value"))), this.list = e, this.focus = t, this.highlight = n, this.highlightLengthStart = r, this.filterMode = i, this.selected = a, this.keyValue = o, this.keyLabel = s, this.lite = c, this.min = l, this.max = u, this.parent = d, I(e) && z(e, () => {
|
|
540
541
|
this.subList = {};
|
|
541
542
|
});
|
|
542
543
|
}
|
|
@@ -650,10 +651,10 @@ var ke = class {
|
|
|
650
651
|
return t.parent === e && this.isItem(t);
|
|
651
652
|
}
|
|
652
653
|
getIndex(e, t, n, r) {
|
|
653
|
-
return e && !
|
|
654
|
+
return e && !te(e) ? e : t && !te(t) ? t : n && r;
|
|
654
655
|
}
|
|
655
656
|
initItem(e, t) {
|
|
656
|
-
if (
|
|
657
|
+
if (j(t)) {
|
|
657
658
|
var n, r, i, a, o, s;
|
|
658
659
|
let c = t == null ? void 0 : t[(n = (r = this.keyValue) == null ? void 0 : r.value) == null ? "value" : n], l = (i = t == null ? void 0 : t[(a = (o = this.keyLabel) == null ? void 0 : o.value) == null ? "label" : a]) == null ? c : i, u = this.getIndex(t == null ? void 0 : t.index, c, e, l);
|
|
659
660
|
return {
|
|
@@ -673,9 +674,9 @@ var ke = class {
|
|
|
673
674
|
value: e
|
|
674
675
|
};
|
|
675
676
|
}
|
|
676
|
-
},
|
|
677
|
+
}, Ie = "__ui:router-item-ref__", J = class {
|
|
677
678
|
static get() {
|
|
678
|
-
return b.get(
|
|
679
|
+
return b.get(Ie);
|
|
679
680
|
}
|
|
680
681
|
static getLink(e, t, n) {
|
|
681
682
|
var r;
|
|
@@ -697,17 +698,17 @@ var ke = class {
|
|
|
697
698
|
t && t.push(e).then();
|
|
698
699
|
}
|
|
699
700
|
static set(e) {
|
|
700
|
-
b.set(
|
|
701
|
+
b.set(Ie, () => e);
|
|
701
702
|
}
|
|
702
703
|
static setOneTime(e) {
|
|
703
704
|
this.get() || this.set(e);
|
|
704
705
|
}
|
|
705
706
|
static rawToHref(e) {
|
|
706
|
-
return
|
|
707
|
+
return j(e) && "name" in e && N(e == null ? void 0 : e.name) ? this.getHref(e.name) : {};
|
|
707
708
|
}
|
|
708
|
-
},
|
|
709
|
+
}, Le = class {
|
|
709
710
|
constructor() {
|
|
710
|
-
|
|
711
|
+
V(this, "item", L()), V(this, "width", L(0)), V(this, "is", F(() => this.item.value !== void 0)), k() && (v.is().then((e) => {
|
|
711
712
|
this.item.value = e;
|
|
712
713
|
}), v.get().then((e) => {
|
|
713
714
|
this.width.value = e;
|
|
@@ -716,20 +717,20 @@ var ke = class {
|
|
|
716
717
|
};
|
|
717
718
|
//#endregion
|
|
718
719
|
//#region src/functions/ref/getApiErrorRef.ts
|
|
719
|
-
function
|
|
720
|
-
return
|
|
721
|
-
if (!(!e.value || O(e.value) || !
|
|
720
|
+
function Re(e) {
|
|
721
|
+
return F(() => {
|
|
722
|
+
if (!(!e.value || O(e.value) || !j(e.value))) return e.value.errorObject;
|
|
722
723
|
});
|
|
723
724
|
}
|
|
724
725
|
//#endregion
|
|
725
726
|
//#region src/functions/getOptions.ts
|
|
726
|
-
var
|
|
727
|
-
function
|
|
728
|
-
let d =
|
|
729
|
-
let e =
|
|
727
|
+
var Y = (e) => typeof e == "string" ? { method: e } : e || {}, X;
|
|
728
|
+
function Z(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
729
|
+
let d = L(), f = G(Y(r)), p = L(!1), m = L(!1), h = L(), g, _ = !0, v, y = () => {
|
|
730
|
+
let e = H(n);
|
|
730
731
|
return !!((!a || a.value) && e);
|
|
731
732
|
}, b = () => ({
|
|
732
|
-
path:
|
|
733
|
+
path: H(n),
|
|
733
734
|
...f.value
|
|
734
735
|
}), x = () => {
|
|
735
736
|
if (k() && y()) {
|
|
@@ -759,31 +760,31 @@ function Le(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
759
760
|
t.add(c, e.path, e.method);
|
|
760
761
|
}
|
|
761
762
|
if (!k()) return;
|
|
762
|
-
x(), d.value === void 0 && S().then(), l ? E() :
|
|
763
|
+
x(), d.value === void 0 && S().then(), l ? E() : K.run(() => E());
|
|
763
764
|
}
|
|
764
765
|
};
|
|
765
|
-
l &&
|
|
766
|
+
l && se() && fe(() => C());
|
|
766
767
|
let T = () => {
|
|
767
|
-
k() ||
|
|
768
|
+
k() || de(async () => {
|
|
768
769
|
_ = !1, await S();
|
|
769
770
|
});
|
|
770
771
|
}, E = () => {
|
|
771
772
|
let e = [];
|
|
772
|
-
i && e.push(f),
|
|
773
|
+
i && e.push(f), I(n) && e.push(n), a && e.push(a), X && e.push(X), e.length > 0 && (v = z(e, async () => {
|
|
773
774
|
p.value || await S();
|
|
774
775
|
}));
|
|
775
|
-
}, D =
|
|
776
|
+
}, D = F(() => (w(), d.value)), O = Re(d), ee = F(() => Array.isArray(d.value) ? d.value.length : +!!d.value), A = F(() => d.value === void 0);
|
|
776
777
|
return {
|
|
777
778
|
data: D,
|
|
778
779
|
get item() {
|
|
779
780
|
return w(), d;
|
|
780
781
|
},
|
|
781
782
|
errorItem: O,
|
|
782
|
-
isResponseContractValid:
|
|
783
|
+
isResponseContractValid: F(() => {
|
|
783
784
|
var e;
|
|
784
785
|
return ((e = h.value) == null ? void 0 : e.status) === "success";
|
|
785
786
|
}),
|
|
786
|
-
responseValidationResult:
|
|
787
|
+
responseValidationResult: F(() => h.value),
|
|
787
788
|
length: ee,
|
|
788
789
|
starting: A,
|
|
789
790
|
loading: p,
|
|
@@ -807,20 +808,20 @@ function Le(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
807
808
|
abort: () => g == null ? void 0 : g.abort()
|
|
808
809
|
};
|
|
809
810
|
}
|
|
810
|
-
var
|
|
811
|
-
|
|
811
|
+
var ze = (e) => {
|
|
812
|
+
X || (X = e);
|
|
812
813
|
};
|
|
813
814
|
//#endregion
|
|
814
815
|
//#region src/composables/ref/useApiAsyncRef.ts
|
|
815
|
-
function
|
|
816
|
-
let u =
|
|
816
|
+
function Be(t, n, r = !0, i, a, o, s, c = !0, l = e.getItem()) {
|
|
817
|
+
let u = Z(t, n, r, i, a, o, s, c, l);
|
|
817
818
|
return u.initSsr(), u;
|
|
818
819
|
}
|
|
819
820
|
//#endregion
|
|
820
821
|
//#region src/composables/ref/useApiRequest.ts
|
|
821
822
|
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() }) {
|
|
822
|
-
let p =
|
|
823
|
-
return l && t.add(l,
|
|
823
|
+
let p = L(!1), m = G(Y(d));
|
|
824
|
+
return l && t.add(l, H(r), i), {
|
|
824
825
|
loading: p,
|
|
825
826
|
async send(e) {
|
|
826
827
|
let t;
|
|
@@ -830,7 +831,7 @@ function Q({ path: r, method: i = n.post, action: a, transformation: o, validate
|
|
|
830
831
|
if (t && !O(t)) return t;
|
|
831
832
|
}
|
|
832
833
|
if (p.value = !0, t = await f.request({
|
|
833
|
-
path:
|
|
834
|
+
path: H(r),
|
|
834
835
|
method: i,
|
|
835
836
|
request: e,
|
|
836
837
|
toData: u,
|
|
@@ -854,7 +855,7 @@ function Q({ path: r, method: i = n.post, action: a, transformation: o, validate
|
|
|
854
855
|
}
|
|
855
856
|
//#endregion
|
|
856
857
|
//#region src/composables/ref/useApiDelete.ts
|
|
857
|
-
function
|
|
858
|
+
function Ve(e) {
|
|
858
859
|
return Q({
|
|
859
860
|
...e,
|
|
860
861
|
method: n.delete
|
|
@@ -862,7 +863,7 @@ function Be(e) {
|
|
|
862
863
|
}
|
|
863
864
|
//#endregion
|
|
864
865
|
//#region src/composables/ref/useApiGet.ts
|
|
865
|
-
function
|
|
866
|
+
function He(e) {
|
|
866
867
|
return Q({
|
|
867
868
|
...e,
|
|
868
869
|
method: n.get
|
|
@@ -870,7 +871,7 @@ function Ve(e) {
|
|
|
870
871
|
}
|
|
871
872
|
//#endregion
|
|
872
873
|
//#region src/composables/ref/useApiPost.ts
|
|
873
|
-
function
|
|
874
|
+
function Ue(e) {
|
|
874
875
|
return Q({
|
|
875
876
|
...e,
|
|
876
877
|
method: n.post
|
|
@@ -878,7 +879,7 @@ function He(e) {
|
|
|
878
879
|
}
|
|
879
880
|
//#endregion
|
|
880
881
|
//#region src/composables/ref/useApiPut.ts
|
|
881
|
-
function
|
|
882
|
+
function We(e) {
|
|
882
883
|
return Q({
|
|
883
884
|
...e,
|
|
884
885
|
method: n.put
|
|
@@ -886,18 +887,18 @@ function Ue(e) {
|
|
|
886
887
|
}
|
|
887
888
|
//#endregion
|
|
888
889
|
//#region src/composables/ref/useFormattersRef.ts
|
|
889
|
-
function
|
|
890
|
+
function Ge(e, t) {
|
|
890
891
|
let n = new l(t);
|
|
891
892
|
return {
|
|
892
|
-
listFormat:
|
|
893
|
-
length:
|
|
893
|
+
listFormat: F(() => n.setList(e.value).to()),
|
|
894
|
+
length: F(() => n.setList(e.value).length())
|
|
894
895
|
};
|
|
895
896
|
}
|
|
896
897
|
//#endregion
|
|
897
898
|
//#region src/composables/ref/useSearchValueRef.ts
|
|
898
|
-
function
|
|
899
|
-
let n = t == null ?
|
|
900
|
-
return
|
|
899
|
+
function Ke(e, t) {
|
|
900
|
+
let n = t == null ? L("") : t, r = L(n.value), i = L(!1), a;
|
|
901
|
+
return z(n, (t, o, s) => {
|
|
901
902
|
let c = e.getOptions().getDelay();
|
|
902
903
|
c && k() ? (i.value = !0, a = setTimeout(() => {
|
|
903
904
|
a = void 0, r.value = n.value, i.value = !1;
|
|
@@ -912,21 +913,21 @@ function Ge(e, t) {
|
|
|
912
913
|
}
|
|
913
914
|
//#endregion
|
|
914
915
|
//#region src/composables/ref/useSearchRef.ts
|
|
915
|
-
function
|
|
916
|
-
let i = new y(void 0, t, void 0, r), { search: a, searchDelay: o, loading: s } =
|
|
916
|
+
function qe(e, t, n, r) {
|
|
917
|
+
let i = new y(void 0, t, void 0, r), { search: a, searchDelay: o, loading: s } = Ke(i, n), c = () => H(S(e)) || [], l = F(() => i.setValue(o.value).getItem().isSearch()), u = F(() => i.setList(c()).setValue(o.value).to());
|
|
917
918
|
return {
|
|
918
919
|
isSearch: l,
|
|
919
920
|
search: a,
|
|
920
921
|
loading: s,
|
|
921
922
|
listSearch: u,
|
|
922
|
-
length:
|
|
923
|
+
length: F(() => u.value.length)
|
|
923
924
|
};
|
|
924
925
|
}
|
|
925
926
|
//#endregion
|
|
926
927
|
//#region src/composables/ref/useApiManagementRef.ts
|
|
927
|
-
function
|
|
928
|
-
let { path: c, options: l, reactivity: u, conditions: d, transformation: f, validateResponseContract: p, errorContract: m, typeData: h, unmounted: g, skeleton: _ } = e, v, y, b, x, S, w =
|
|
929
|
-
if (t && (v =
|
|
928
|
+
function Je(e, t, n, r, i, a, o, s) {
|
|
929
|
+
let { path: c, options: l, reactivity: u, conditions: d, transformation: f, validateResponseContract: p, errorContract: m, typeData: h, unmounted: g, skeleton: _ } = e, v, y, b, x, S, w = Z(c, l, u, d, f, p, m, g, s), T = F(() => h === void 0 ? !0 : w.isStarting() ? !1 : A(h) ? h(w.data.value) : w.data.value instanceof h), E = F(() => w.isStarting() && _ ? _() : w.data.value);
|
|
930
|
+
if (t && (v = Ge(E, t)), n && (y = qe(F(() => {
|
|
930
931
|
var e;
|
|
931
932
|
let t = (e = v == null ? void 0 : v.listFormat.value) == null ? w.data.value : e;
|
|
932
933
|
if (Array.isArray(t)) return t;
|
|
@@ -936,21 +937,21 @@ function qe(e, t, n, r, i, a, o, s) {
|
|
|
936
937
|
}, t = (t) => async (n) => {
|
|
937
938
|
A(t) && await C(t(n)), e(n);
|
|
938
939
|
};
|
|
939
|
-
r && (b =
|
|
940
|
+
r && (b = Ue({
|
|
940
941
|
...r,
|
|
941
942
|
action: t(r.action),
|
|
942
943
|
apiInstance: s
|
|
943
|
-
})), i && (x =
|
|
944
|
+
})), i && (x = We({
|
|
944
945
|
...i,
|
|
945
946
|
action: t(i.action),
|
|
946
947
|
apiInstance: s
|
|
947
|
-
})), a && (S =
|
|
948
|
+
})), a && (S = Ve({
|
|
948
949
|
...a,
|
|
949
950
|
action: t(a.action),
|
|
950
951
|
apiInstance: s
|
|
951
952
|
}));
|
|
952
953
|
}
|
|
953
|
-
let D =
|
|
954
|
+
let D = F(() => {
|
|
954
955
|
if (T.value) {
|
|
955
956
|
if (y && Array.isArray(w.data.value)) return y.listSearch.value;
|
|
956
957
|
if (v) return v.listFormat.value;
|
|
@@ -990,61 +991,61 @@ function qe(e, t, n, r, i, a, o, s) {
|
|
|
990
991
|
}
|
|
991
992
|
//#endregion
|
|
992
993
|
//#region src/composables/ref/useApiManagementAsyncRef.ts
|
|
993
|
-
function
|
|
994
|
-
let c =
|
|
994
|
+
function Ye(e, t, n, r, i, a, o, s) {
|
|
995
|
+
let c = Je(e, t, n, r, i, a, o, s);
|
|
995
996
|
return c.initSsr(), c;
|
|
996
997
|
}
|
|
997
998
|
//#endregion
|
|
998
999
|
//#region src/composables/ref/useBroadcastValueRef.ts
|
|
999
|
-
var
|
|
1000
|
-
function
|
|
1001
|
-
let n = `broadcast--${e}`, i =
|
|
1000
|
+
var Xe = () => b.get("__ui:broadcast-value-ref__", () => ({}));
|
|
1001
|
+
function Ze(e, t) {
|
|
1002
|
+
let n = `broadcast--${e}`, i = Xe();
|
|
1002
1003
|
if (n in i) return i[n];
|
|
1003
|
-
let a =
|
|
1004
|
+
let a = L(S(t));
|
|
1004
1005
|
if (k()) {
|
|
1005
1006
|
let e = new r(n, (e) => {
|
|
1006
1007
|
a.value !== e.data.message && (a.value = e.data.message);
|
|
1007
1008
|
});
|
|
1008
|
-
|
|
1009
|
-
|
|
1009
|
+
K.run(() => {
|
|
1010
|
+
z(a, (t) => e.post({ message: t }));
|
|
1010
1011
|
});
|
|
1011
1012
|
}
|
|
1012
1013
|
return i[n] = a, a;
|
|
1013
1014
|
}
|
|
1014
1015
|
//#endregion
|
|
1015
1016
|
//#region src/composables/ref/useCookieRef.ts
|
|
1016
|
-
var
|
|
1017
|
-
function
|
|
1018
|
-
let r =
|
|
1017
|
+
var Qe = () => b.get("__ui:cookie-ref__", () => ({}));
|
|
1018
|
+
function $e(e, t, n) {
|
|
1019
|
+
let r = Qe();
|
|
1019
1020
|
if (e in r) return r[e];
|
|
1020
|
-
let a = new i(e), o =
|
|
1021
|
-
return
|
|
1022
|
-
|
|
1021
|
+
let a = new i(e), o = Ze(`__cookie:${e}`, a.get(t, n));
|
|
1022
|
+
return K.run(() => {
|
|
1023
|
+
z(o, (e) => {
|
|
1023
1024
|
a.set(e, n);
|
|
1024
1025
|
});
|
|
1025
1026
|
}), r[e] = o, o;
|
|
1026
1027
|
}
|
|
1027
1028
|
//#endregion
|
|
1028
1029
|
//#region src/composables/ref/useGeoIntlRef.ts
|
|
1029
|
-
function
|
|
1030
|
-
return new
|
|
1030
|
+
function et() {
|
|
1031
|
+
return new Pe();
|
|
1031
1032
|
}
|
|
1032
1033
|
//#endregion
|
|
1033
1034
|
//#region src/composables/ref/useHashRef.ts
|
|
1034
|
-
var
|
|
1035
|
-
function
|
|
1036
|
-
let n =
|
|
1035
|
+
var tt = () => b.get("__ui:hash-ref__", () => ({}));
|
|
1036
|
+
function nt(e, t) {
|
|
1037
|
+
let n = tt();
|
|
1037
1038
|
if (e in n) return n[e];
|
|
1038
|
-
let r =
|
|
1039
|
-
return k() && (
|
|
1040
|
-
|
|
1039
|
+
let r = R(p.get(e, t));
|
|
1040
|
+
return k() && (K.run(() => {
|
|
1041
|
+
z(r, (t) => p.set(e, t));
|
|
1041
1042
|
}), p.addWatch(e, (e) => {
|
|
1042
1043
|
r.value = e;
|
|
1043
1044
|
})), n[e] = r, r;
|
|
1044
1045
|
}
|
|
1045
1046
|
//#endregion
|
|
1046
1047
|
//#region src/composables/ref/useLazyRef.ts
|
|
1047
|
-
var
|
|
1048
|
+
var rt = (e = { rootMargin: "128px 0px" }) => {
|
|
1048
1049
|
let t = {}, n = k() && "IntersectionObserver" in window ? new IntersectionObserver((e) => {
|
|
1049
1050
|
e.forEach((e) => {
|
|
1050
1051
|
let n = E(e.target);
|
|
@@ -1068,16 +1069,16 @@ var nt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1068
1069
|
return t[E(e)];
|
|
1069
1070
|
},
|
|
1070
1071
|
addLazyItem(e) {
|
|
1071
|
-
let i =
|
|
1072
|
+
let i = R(!n);
|
|
1072
1073
|
if (n) {
|
|
1073
1074
|
let a;
|
|
1074
|
-
a =
|
|
1075
|
+
a = z(e, (o, s) => {
|
|
1075
1076
|
if (s && r(s), e.value) {
|
|
1076
1077
|
let r = E(e.value);
|
|
1077
1078
|
t[r] = {
|
|
1078
1079
|
status: i,
|
|
1079
|
-
ratio:
|
|
1080
|
-
entry:
|
|
1080
|
+
ratio: R(0),
|
|
1081
|
+
entry: R(void 0),
|
|
1081
1082
|
stopWatch: () => a == null ? void 0 : a()
|
|
1082
1083
|
}, n.observe(e.value);
|
|
1083
1084
|
} else r(e.value);
|
|
@@ -1088,16 +1089,16 @@ var nt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1088
1089
|
removeLazyItem: r,
|
|
1089
1090
|
disconnectLazy: () => n == null ? void 0 : n.disconnect()
|
|
1090
1091
|
};
|
|
1091
|
-
},
|
|
1092
|
-
let t =
|
|
1092
|
+
}, it = () => b.get("__ui:lazy-item-by-margin-ref__", () => []), at = (e) => {
|
|
1093
|
+
let t = it(), n = t.find((t) => t.rootMargin === e);
|
|
1093
1094
|
if (n) return n.item;
|
|
1094
|
-
let r =
|
|
1095
|
+
let r = rt({ rootMargin: e });
|
|
1095
1096
|
return t.push({
|
|
1096
1097
|
rootMargin: e,
|
|
1097
1098
|
item: r
|
|
1098
1099
|
}), r;
|
|
1099
|
-
},
|
|
1100
|
-
let n =
|
|
1100
|
+
}, ot = (e, t) => {
|
|
1101
|
+
let n = at(t);
|
|
1101
1102
|
return {
|
|
1102
1103
|
lazyItemStatus: n.addLazyItem(e),
|
|
1103
1104
|
get lazyItem() {
|
|
@@ -1107,19 +1108,19 @@ var nt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1107
1108
|
};
|
|
1108
1109
|
//#endregion
|
|
1109
1110
|
//#region src/composables/ref/useLoadingRef.ts
|
|
1110
|
-
function
|
|
1111
|
-
let e =
|
|
1111
|
+
function st() {
|
|
1112
|
+
let e = R(h.is());
|
|
1112
1113
|
return k() && h.registrationEvent(({ detail: t }) => {
|
|
1113
1114
|
e.value = t.loading;
|
|
1114
1115
|
}), e;
|
|
1115
1116
|
}
|
|
1116
1117
|
//#endregion
|
|
1117
1118
|
//#region src/functions/executeUse.ts
|
|
1118
|
-
var
|
|
1119
|
+
var ct = /* @__PURE__ */ function(e) {
|
|
1119
1120
|
return e.global = "global", e.provide = "provide", e.local = "local", e;
|
|
1120
|
-
}({}),
|
|
1121
|
+
}({}), lt = 1, ut = ne(1e5, 999999), dt = () => `__execute_use${ut}::${lt++}`, ft = () => b.get("__ui:execute-use-global__", () => []);
|
|
1121
1122
|
function $(e, t = "provide") {
|
|
1122
|
-
let n =
|
|
1123
|
+
let n = dt(), r, i = (t) => {
|
|
1123
1124
|
let n = Object.freeze(e(...t));
|
|
1124
1125
|
return {
|
|
1125
1126
|
...n,
|
|
@@ -1129,7 +1130,7 @@ function $(e, t = "provide") {
|
|
|
1129
1130
|
};
|
|
1130
1131
|
}, a = (e) => {
|
|
1131
1132
|
let t = Object.freeze(i(e));
|
|
1132
|
-
return
|
|
1133
|
+
return pe(n, t), t;
|
|
1133
1134
|
}, o = (e) => {
|
|
1134
1135
|
let t = i(e);
|
|
1135
1136
|
return Object.freeze({
|
|
@@ -1138,27 +1139,27 @@ function $(e, t = "provide") {
|
|
|
1138
1139
|
r = void 0;
|
|
1139
1140
|
}
|
|
1140
1141
|
});
|
|
1141
|
-
}, s = (...e) => t === "provide" ?
|
|
1142
|
+
}, s = (...e) => t === "provide" ? ue(n, void 0) || a(e) : (r || K.run(() => {
|
|
1142
1143
|
r = o(e);
|
|
1143
1144
|
}), r);
|
|
1144
|
-
return t === "global" &&
|
|
1145
|
+
return t === "global" && ft().push(s), s;
|
|
1145
1146
|
}
|
|
1146
|
-
function
|
|
1147
|
+
function pt(e) {
|
|
1147
1148
|
return $(e, "global");
|
|
1148
1149
|
}
|
|
1149
|
-
function
|
|
1150
|
+
function mt(e) {
|
|
1150
1151
|
return $(e, "provide");
|
|
1151
1152
|
}
|
|
1152
|
-
function
|
|
1153
|
+
function ht(e) {
|
|
1153
1154
|
return $(e, "local");
|
|
1154
1155
|
}
|
|
1155
|
-
function
|
|
1156
|
-
|
|
1156
|
+
function gt() {
|
|
1157
|
+
ft().forEach((e) => e());
|
|
1157
1158
|
}
|
|
1158
1159
|
//#endregion
|
|
1159
1160
|
//#region src/composables/ref/useMeta.ts
|
|
1160
|
-
var
|
|
1161
|
-
let e = g, t =
|
|
1161
|
+
var _t = ht(() => {
|
|
1162
|
+
let e = g, 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) => {
|
|
1162
1163
|
t.value = e, x();
|
|
1163
1164
|
}, d = (e) => {
|
|
1164
1165
|
n.value = e, x();
|
|
@@ -1181,7 +1182,7 @@ var gt = mt(() => {
|
|
|
1181
1182
|
}, x = () => {
|
|
1182
1183
|
k() || b();
|
|
1183
1184
|
};
|
|
1184
|
-
return
|
|
1185
|
+
return z([
|
|
1185
1186
|
t,
|
|
1186
1187
|
n,
|
|
1187
1188
|
r,
|
|
@@ -1214,35 +1215,35 @@ var gt = mt(() => {
|
|
|
1214
1215
|
setSiteName: v,
|
|
1215
1216
|
setSuffix: (t) => e.setSuffix(t)
|
|
1216
1217
|
};
|
|
1217
|
-
}),
|
|
1218
|
-
function
|
|
1219
|
-
let n =
|
|
1218
|
+
}), vt = () => _t(), yt = () => b.get("__ui:query-ref__", () => ({}));
|
|
1219
|
+
function bt(e, t) {
|
|
1220
|
+
let n = yt();
|
|
1220
1221
|
if (e in n) return n[e];
|
|
1221
|
-
let r =
|
|
1222
|
-
return k() && (
|
|
1223
|
-
|
|
1222
|
+
let r = R(_.get(e, t));
|
|
1223
|
+
return k() && (K.run(() => {
|
|
1224
|
+
z(r, (t) => _.set(e, t));
|
|
1224
1225
|
}), _.addWatch(e, (e) => {
|
|
1225
1226
|
r.value = e;
|
|
1226
1227
|
})), n[e] = r, r;
|
|
1227
1228
|
}
|
|
1228
1229
|
//#endregion
|
|
1229
1230
|
//#region src/composables/ref/useRouterList.ts
|
|
1230
|
-
var
|
|
1231
|
+
var xt = (e, t, n = !0) => {
|
|
1231
1232
|
var r;
|
|
1232
|
-
let i =
|
|
1233
|
+
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) => {
|
|
1233
1234
|
var n;
|
|
1234
1235
|
return (n = e.value) == null ? void 0 : n.find((e) => e.value === t);
|
|
1235
1236
|
}, s = (e) => {
|
|
1236
|
-
e && e !== i.value && o(e) && (i.value = e,
|
|
1237
|
+
e && e !== i.value && o(e) && (i.value = e, J.push({ name: e }));
|
|
1237
1238
|
};
|
|
1238
1239
|
return {
|
|
1239
|
-
item:
|
|
1240
|
+
item: F(() => a()),
|
|
1240
1241
|
selected: i,
|
|
1241
|
-
label:
|
|
1242
|
+
label: F(() => {
|
|
1242
1243
|
var e;
|
|
1243
1244
|
return ((e = a()) == null ? void 0 : e.label) || "";
|
|
1244
1245
|
}),
|
|
1245
|
-
list:
|
|
1246
|
+
list: F(() => e.value ? w(e.value, (e) => n && !("to" in e) ? {
|
|
1246
1247
|
...e,
|
|
1247
1248
|
to: { name: e.value }
|
|
1248
1249
|
} : e) : []),
|
|
@@ -1252,36 +1253,36 @@ var bt = (e, t, n = !0) => {
|
|
|
1252
1253
|
s((t = e.value) == null || (t = t[0]) == null ? void 0 : t.value);
|
|
1253
1254
|
}
|
|
1254
1255
|
};
|
|
1255
|
-
},
|
|
1256
|
-
function
|
|
1257
|
-
let n =
|
|
1256
|
+
}, St = () => b.get("__ui:session-ref__", () => ({}));
|
|
1257
|
+
function Ct(e, t) {
|
|
1258
|
+
let n = St();
|
|
1258
1259
|
if (e in n) return n[e];
|
|
1259
|
-
let r = new a(e, !0), i =
|
|
1260
|
-
return
|
|
1261
|
-
|
|
1260
|
+
let r = new a(e, !0), i = L(r.get(t));
|
|
1261
|
+
return K.run(() => {
|
|
1262
|
+
z(i, (e) => r.set(e));
|
|
1262
1263
|
}), n[e] = i, i;
|
|
1263
1264
|
}
|
|
1264
1265
|
//#endregion
|
|
1265
1266
|
//#region src/composables/ref/useStorageRef.ts
|
|
1266
|
-
var
|
|
1267
|
-
function
|
|
1268
|
-
let r =
|
|
1267
|
+
var wt = () => b.get("__ui:storage-ref__", () => ({}));
|
|
1268
|
+
function Tt(e, t, n) {
|
|
1269
|
+
let r = wt();
|
|
1269
1270
|
if (e in r) return r[e];
|
|
1270
|
-
let i = new a(e), o =
|
|
1271
|
-
return
|
|
1272
|
-
|
|
1271
|
+
let i = new a(e), o = L(i.get(t, n));
|
|
1272
|
+
return K.run(() => {
|
|
1273
|
+
z(o, (e) => i.set(e));
|
|
1273
1274
|
}), k() && window.addEventListener("storage", () => {
|
|
1274
1275
|
i.update(), o.value = i.get();
|
|
1275
1276
|
}), r[e] = o, o;
|
|
1276
1277
|
}
|
|
1277
1278
|
//#endregion
|
|
1278
1279
|
//#region src/composables/ref/useTranslateRef.ts
|
|
1279
|
-
function
|
|
1280
|
-
let n =
|
|
1280
|
+
function Et(e, t = x.getItem()) {
|
|
1281
|
+
let n = R(t.getListSync(e, !0)), r = async () => {
|
|
1281
1282
|
n.value = { ...await t.getList(e) };
|
|
1282
1283
|
};
|
|
1283
1284
|
if (k()) {
|
|
1284
|
-
|
|
1285
|
+
z(q.getLanguage(), r);
|
|
1285
1286
|
for (let e in n.value) if (n.value[e] === e || n.value[e] === " ") {
|
|
1286
1287
|
r().then();
|
|
1287
1288
|
break;
|
|
@@ -1289,23 +1290,23 @@ function Tt(e, t = x.getItem()) {
|
|
|
1289
1290
|
}
|
|
1290
1291
|
return n;
|
|
1291
1292
|
}
|
|
1292
|
-
var
|
|
1293
|
+
var Dt = (e) => Et(e);
|
|
1293
1294
|
//#endregion
|
|
1294
1295
|
//#region src/functions/computedAsync.ts
|
|
1295
|
-
function
|
|
1296
|
-
let i =
|
|
1296
|
+
function Ot(e, t, n, r) {
|
|
1297
|
+
let i = R(S(t)), a = !0, o = async () => {
|
|
1297
1298
|
let t = await C(e);
|
|
1298
1299
|
t !== n && (i.value = t);
|
|
1299
1300
|
}, s = () => {
|
|
1300
|
-
a && (a = !1, k() ?
|
|
1301
|
+
a && (a = !1, k() ? ve(o) : o().then());
|
|
1301
1302
|
};
|
|
1302
|
-
return
|
|
1303
|
+
return F(() => (s(), i.value), r);
|
|
1303
1304
|
}
|
|
1304
1305
|
//#endregion
|
|
1305
1306
|
//#region src/functions/computedByLanguage.ts
|
|
1306
|
-
function
|
|
1307
|
-
return
|
|
1308
|
-
if (
|
|
1307
|
+
function kt(e, t = () => void 0, n, r) {
|
|
1308
|
+
return F(() => {
|
|
1309
|
+
if (q.get().value && (n === void 0 || n())) {
|
|
1309
1310
|
let t = e();
|
|
1310
1311
|
if (t !== void 0) return t;
|
|
1311
1312
|
}
|
|
@@ -1314,13 +1315,13 @@ function Ot(e, t = () => void 0, n, r) {
|
|
|
1314
1315
|
}
|
|
1315
1316
|
//#endregion
|
|
1316
1317
|
//#region src/functions/computedEternity.ts
|
|
1317
|
-
function
|
|
1318
|
-
return
|
|
1319
|
-
let i =
|
|
1318
|
+
function At(e, t) {
|
|
1319
|
+
return ae((n, r) => {
|
|
1320
|
+
let i = R(S(t)), a = !1, o = async () => {
|
|
1320
1321
|
i.value = await C(e), r();
|
|
1321
1322
|
}, s = () => {
|
|
1322
|
-
a || (a = !0, k() ?
|
|
1323
|
-
|
|
1323
|
+
a || (a = !0, k() ? K.run(() => {
|
|
1324
|
+
ve(async () => await o());
|
|
1324
1325
|
}) : o().then());
|
|
1325
1326
|
};
|
|
1326
1327
|
return {
|
|
@@ -1335,42 +1336,42 @@ function kt(e, t) {
|
|
|
1335
1336
|
}
|
|
1336
1337
|
//#endregion
|
|
1337
1338
|
//#region src/functions/dxtFunctionalPlugin.ts
|
|
1338
|
-
var
|
|
1339
|
-
if (n.api && e.setConfig(n.api), n.translate && x.setConfig(n.translate), n.location &&
|
|
1339
|
+
var jt = { install(t, n = {}) {
|
|
1340
|
+
if (n.api && e.setConfig(n.api), n.translate && x.setConfig(n.translate), n.location && q.setValueDefault(n.location), n.icons && m.setConfig(n.icons), n.iconsSocial && ye.addIcons(n.iconsSocial), n.metaSuffix && vt().setSuffix(n.metaSuffix), n.router) J.set(n.router);
|
|
1340
1341
|
else {
|
|
1341
1342
|
let e = t.config.globalProperties.$router;
|
|
1342
|
-
e &&
|
|
1343
|
+
e && J.set(e);
|
|
1343
1344
|
}
|
|
1344
|
-
n.errorCauses && s.addList(n.errorCauses), n.errorHandlers && s.addHandlerList(n.errorHandlers),
|
|
1345
|
+
n.errorCauses && s.addList(n.errorCauses), n.errorHandlers && s.addHandlerList(n.errorHandlers), gt();
|
|
1345
1346
|
} };
|
|
1346
1347
|
//#endregion
|
|
1347
1348
|
//#region src/functions/getInject.ts
|
|
1348
|
-
function
|
|
1349
|
-
if (
|
|
1350
|
-
let t =
|
|
1349
|
+
function Mt(e) {
|
|
1350
|
+
if (le()) {
|
|
1351
|
+
let t = ue(e);
|
|
1351
1352
|
if (t) return t;
|
|
1352
1353
|
}
|
|
1353
1354
|
}
|
|
1354
1355
|
//#endregion
|
|
1355
1356
|
//#region src/functions/ref/executeFunctionRef.ts
|
|
1356
|
-
function
|
|
1357
|
-
return
|
|
1357
|
+
function Nt(e) {
|
|
1358
|
+
return H(S(e));
|
|
1358
1359
|
}
|
|
1359
1360
|
//#endregion
|
|
1360
1361
|
//#region src/functions/render/getBind.ts
|
|
1361
|
-
function
|
|
1362
|
+
function Pt(e, t = {}, n = "value", r = !1) {
|
|
1362
1363
|
let i = typeof t == "string", a = i ? t : n, o = i ? {} : t;
|
|
1363
|
-
return e ? e &&
|
|
1364
|
+
return e ? e && j(e) && (a in e || r) ? U(o, e) : U(o, { [a]: e }) : i ? {} : { ...o };
|
|
1364
1365
|
}
|
|
1365
1366
|
//#endregion
|
|
1366
1367
|
//#region src/functions/ref/getBindRef.ts
|
|
1367
|
-
function
|
|
1368
|
-
return
|
|
1368
|
+
function Ft(e, t = {}, n = "value") {
|
|
1369
|
+
return F(() => Pt(H(e), H(t), n));
|
|
1369
1370
|
}
|
|
1370
1371
|
//#endregion
|
|
1371
1372
|
//#region src/functions/ref/setRef.ts
|
|
1372
|
-
function
|
|
1373
|
+
function It(e, t) {
|
|
1373
1374
|
e.value !== t && (e.value = t);
|
|
1374
1375
|
}
|
|
1375
1376
|
//#endregion
|
|
1376
|
-
export {
|
|
1377
|
+
export { je as DatetimeRef, Ce as DesignAbstract, we as DesignAsyncAbstract, Se as DesignChanged, ke as DesignComp, W as DesignComponents, Ae as DesignConstructorAbstract, K as EffectScopeGlobal, Me as EventRef, ct as ExecuteUseType, Ne as GeoFlagRef, Pe as GeoIntlRef, q as GeoRef, Fe as ListDataRef, J as RouterItemRef, Le as ScrollbarWidthRef, Ot as computedAsync, kt as computedByLanguage, At as computedEternity, jt as dxtFunctionalPlugin, Nt as executeFunctionRef, $ as executeUse, pt as executeUseGlobal, gt as executeUseGlobalInit, ht as executeUseLocal, mt as executeUseProvide, Re as getApiErrorRef, Pt as getBind, Ft as getBindRef, Te as getClassName, Ee as getIndexForRender, Mt as getInject, Y as getOptions, H as getRef, De as render, ze as setApiRefGlobalConditions, It as setRef, Dt as t, U as toBind, Oe as toBinds, G as toRefItem, Be as useApiAsyncRef, Ve as useApiDelete, He as useApiGet, Ye as useApiManagementAsyncRef, Je as useApiManagementRef, Ue as useApiPost, We as useApiPut, Z as useApiRef, Q as useApiRequest, Ze as useBroadcastValueRef, $e as useCookieRef, Ge as useFormattersRef, et as useGeoIntlRef, nt as useHashRef, ot as useLazyItemByMarginRef, rt as useLazyRef, st as useLoadingRef, vt as useMeta, bt as useQueryRef, xt as useRouterList, qe as useSearchRef, Ke as useSearchValueRef, Ct as useSessionRef, Tt as useStorageRef, Et as useTranslateRef };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Plugin } from 'vue';
|
|
2
|
+
import { InputSocialIcons } from '@dxtmisha/media';
|
|
2
3
|
import { ApiConfig, ErrorCenterCauseList, ErrorCenterHandlerList, IconsConfig, TranslateConfig } from '@dxtmisha/functional-basic';
|
|
3
4
|
import { Router } from 'vue-router';
|
|
4
5
|
/**
|
|
@@ -31,6 +32,11 @@ export interface FunctionalPluginOptions {
|
|
|
31
32
|
* Конфигурация для сервиса управления иконками
|
|
32
33
|
*/
|
|
33
34
|
icons?: IconsConfig;
|
|
35
|
+
/**
|
|
36
|
+
* Configuration for the social networks icons management service /
|
|
37
|
+
* Конфигурация для сервиса управления иконками социальных сетей
|
|
38
|
+
*/
|
|
39
|
+
iconsSocial?: InputSocialIcons;
|
|
34
40
|
/**
|
|
35
41
|
* Vue Router instance for global navigation state management /
|
|
36
42
|
* Экземпляр Vue Router для глобального управления состоянием навигации
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxtmisha/functional",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.14.
|
|
4
|
+
"version": "1.14.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A comprehensive library of utilities, base classes, and Vue 3 composables for reactive web development. Extends @dxtmisha/functional-basic with Composition API.",
|
|
7
7
|
"keywords": [
|