@dxtmisha/functional 1.13.4 → 1.13.5
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 +85 -89
- package/dist/src/classes/ref/GeoRef.d.ts +0 -4
- 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.13.5] - 2026-06-17
|
|
6
|
+
|
|
7
|
+
### Changed / Improved
|
|
8
|
+
- **GeoRef**: Refactored static getters (`getCountry`, `getLanguage`, `getStandard`, `getFirstDay`) to use request-isolated computed references via `ServerStorage.get`. This isolates their reactive state per request, resolving potential cross-request state pollution during SSR.
|
|
9
|
+
|
|
5
10
|
## [1.13.4] - 2026-06-17
|
|
6
11
|
|
|
7
12
|
### Added
|
package/dist/library.js
CHANGED
|
@@ -352,21 +352,21 @@ var Oe = class {
|
|
|
352
352
|
getNational(e) {
|
|
353
353
|
return I(() => this.flag.value.getNational(U(e)));
|
|
354
354
|
}
|
|
355
|
-
}, J
|
|
355
|
+
}, J = class {
|
|
356
356
|
static get() {
|
|
357
357
|
return y.get("__ui:geo-ref__", () => z(u.getItem()));
|
|
358
358
|
}
|
|
359
359
|
static getCountry() {
|
|
360
|
-
return this.country;
|
|
360
|
+
return y.get("__ui:geo-ref-country__", () => I(() => this.get().value.country));
|
|
361
361
|
}
|
|
362
362
|
static getLanguage() {
|
|
363
|
-
return this.language;
|
|
363
|
+
return y.get("__ui:geo-ref-language__", () => I(() => this.get().value.language));
|
|
364
364
|
}
|
|
365
365
|
static getStandard() {
|
|
366
|
-
return this.standard;
|
|
366
|
+
return y.get("__ui:geo-ref-standard__", () => I(() => this.get().value.standard));
|
|
367
367
|
}
|
|
368
368
|
static getFirstDay() {
|
|
369
|
-
return this.firstDay;
|
|
369
|
+
return y.get("__ui:geo-ref-first-day__", () => I(() => this.get().value.firstDay));
|
|
370
370
|
}
|
|
371
371
|
static set(e) {
|
|
372
372
|
u.set(e, !0), this.get().value = u.getItem();
|
|
@@ -374,15 +374,11 @@ var Oe = class {
|
|
|
374
374
|
static setValueDefault(e) {
|
|
375
375
|
u.setValueDefault(e), this.get().value = u.getItem();
|
|
376
376
|
}
|
|
377
|
-
}
|
|
378
|
-
J = Y, H(Y, "country", I(() => J.get().value.country)), H(Y, "language", I(() => J.get().value.language)), H(Y, "standard", I(() => J.get().value.standard)), H(Y, "firstDay", I(() => J.get().value.firstDay));
|
|
379
|
-
//#endregion
|
|
380
|
-
//#region src/classes/ref/GeoIntlRef.ts
|
|
381
|
-
var je = class {
|
|
377
|
+
}, je = class {
|
|
382
378
|
constructor(e) {
|
|
383
379
|
H(this, "location", void 0), H(this, "intl", void 0), this.location = K(e), this.intl = I(() => {
|
|
384
380
|
var e;
|
|
385
|
-
return new f((e = this.location.value) == null ?
|
|
381
|
+
return new f((e = this.location.value) == null ? J.getLanguage().value : e);
|
|
386
382
|
});
|
|
387
383
|
}
|
|
388
384
|
display(e, t) {
|
|
@@ -659,7 +655,7 @@ var je = class {
|
|
|
659
655
|
value: e
|
|
660
656
|
};
|
|
661
657
|
}
|
|
662
|
-
}, Ne = "__ui:router-item-ref__",
|
|
658
|
+
}, Ne = "__ui:router-item-ref__", Y = class {
|
|
663
659
|
static get() {
|
|
664
660
|
return y.get(Ne);
|
|
665
661
|
}
|
|
@@ -709,9 +705,9 @@ function Fe(e) {
|
|
|
709
705
|
}
|
|
710
706
|
//#endregion
|
|
711
707
|
//#region src/functions/getOptions.ts
|
|
712
|
-
var
|
|
713
|
-
function
|
|
714
|
-
let d = R(), f = K(
|
|
708
|
+
var X = (e) => typeof e == "string" ? { method: e } : e || {}, Z;
|
|
709
|
+
function Ie(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
710
|
+
let d = R(), f = K(X(r)), p = R(!1), m = R(!1), h = R(), g, _ = !0, v, y = () => {
|
|
715
711
|
let e = U(n);
|
|
716
712
|
return !!((!a || a.value) && e);
|
|
717
713
|
}, b = () => ({
|
|
@@ -793,19 +789,19 @@ function Le(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
793
789
|
abort: () => g == null ? void 0 : g.abort()
|
|
794
790
|
};
|
|
795
791
|
}
|
|
796
|
-
var
|
|
792
|
+
var Le = (e) => {
|
|
797
793
|
Z || (Z = e);
|
|
798
794
|
};
|
|
799
795
|
//#endregion
|
|
800
796
|
//#region src/composables/ref/useApiAsyncRef.ts
|
|
801
|
-
function
|
|
802
|
-
let u =
|
|
797
|
+
function Re(t, n, r = !0, i, a, o, s, c = !0, l = e.getItem()) {
|
|
798
|
+
let u = Ie(t, n, r, i, a, o, s, c, l);
|
|
803
799
|
return u.initSsr(), u;
|
|
804
800
|
}
|
|
805
801
|
//#endregion
|
|
806
802
|
//#region src/composables/ref/useApiRequest.ts
|
|
807
803
|
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() }) {
|
|
808
|
-
let p = R(!1), m = K(
|
|
804
|
+
let p = R(!1), m = K(X(d));
|
|
809
805
|
return l && t.add(l, U(r), i), {
|
|
810
806
|
loading: p,
|
|
811
807
|
async send(e) {
|
|
@@ -840,7 +836,7 @@ function Q({ path: r, method: i = n.post, action: a, transformation: o, validate
|
|
|
840
836
|
}
|
|
841
837
|
//#endregion
|
|
842
838
|
//#region src/composables/ref/useApiDelete.ts
|
|
843
|
-
function
|
|
839
|
+
function ze(e) {
|
|
844
840
|
return Q({
|
|
845
841
|
...e,
|
|
846
842
|
method: n.delete
|
|
@@ -848,7 +844,7 @@ function Be(e) {
|
|
|
848
844
|
}
|
|
849
845
|
//#endregion
|
|
850
846
|
//#region src/composables/ref/useApiGet.ts
|
|
851
|
-
function
|
|
847
|
+
function Be(e) {
|
|
852
848
|
return Q({
|
|
853
849
|
...e,
|
|
854
850
|
method: n.get
|
|
@@ -856,7 +852,7 @@ function Ve(e) {
|
|
|
856
852
|
}
|
|
857
853
|
//#endregion
|
|
858
854
|
//#region src/composables/ref/useApiPost.ts
|
|
859
|
-
function
|
|
855
|
+
function Ve(e) {
|
|
860
856
|
return Q({
|
|
861
857
|
...e,
|
|
862
858
|
method: n.post
|
|
@@ -864,7 +860,7 @@ function He(e) {
|
|
|
864
860
|
}
|
|
865
861
|
//#endregion
|
|
866
862
|
//#region src/composables/ref/useApiPut.ts
|
|
867
|
-
function
|
|
863
|
+
function He(e) {
|
|
868
864
|
return Q({
|
|
869
865
|
...e,
|
|
870
866
|
method: n.put
|
|
@@ -872,7 +868,7 @@ function Ue(e) {
|
|
|
872
868
|
}
|
|
873
869
|
//#endregion
|
|
874
870
|
//#region src/composables/ref/useFormattersRef.ts
|
|
875
|
-
function
|
|
871
|
+
function Ue(e, t) {
|
|
876
872
|
let n = new l(t);
|
|
877
873
|
return {
|
|
878
874
|
listFormat: I(() => n.setList(e.value).to()),
|
|
@@ -881,7 +877,7 @@ function We(e, t) {
|
|
|
881
877
|
}
|
|
882
878
|
//#endregion
|
|
883
879
|
//#region src/composables/ref/useSearchValueRef.ts
|
|
884
|
-
function
|
|
880
|
+
function We(e, t) {
|
|
885
881
|
let n = t == null ? R("") : t, r = R(n.value), i = R(!1), a;
|
|
886
882
|
return B(n, (t, o, s) => {
|
|
887
883
|
let c = e.getOptions().getDelay();
|
|
@@ -898,8 +894,8 @@ function Ge(e, t) {
|
|
|
898
894
|
}
|
|
899
895
|
//#endregion
|
|
900
896
|
//#region src/composables/ref/useSearchRef.ts
|
|
901
|
-
function
|
|
902
|
-
let i = new v(void 0, t, void 0, r), { search: a, searchDelay: o, loading: s } =
|
|
897
|
+
function Ge(e, t, n, r) {
|
|
898
|
+
let i = new v(void 0, t, void 0, r), { search: a, searchDelay: o, loading: s } = We(i, n), c = () => U(x(e)) || [], l = I(() => i.setValue(o.value).getItem().isSearch()), u = I(() => i.setList(c()).setValue(o.value).to());
|
|
903
899
|
return {
|
|
904
900
|
isSearch: l,
|
|
905
901
|
search: a,
|
|
@@ -910,9 +906,9 @@ function Ke(e, t, n, r) {
|
|
|
910
906
|
}
|
|
911
907
|
//#endregion
|
|
912
908
|
//#region src/composables/ref/useApiManagementRef.ts
|
|
913
|
-
function
|
|
914
|
-
let { path: c, options: l, reactivity: u, conditions: d, transformation: f, validateResponseContract: p, errorContract: m, typeData: h, unmounted: g, skeleton: _ } = e, v, y, b, x, C, w =
|
|
915
|
-
if (t && (v =
|
|
909
|
+
function Ke(e, t, n, r, i, a, o, s) {
|
|
910
|
+
let { path: c, options: l, reactivity: u, conditions: d, transformation: f, validateResponseContract: p, errorContract: m, typeData: h, unmounted: g, skeleton: _ } = e, v, y, b, x, C, w = Ie(c, l, u, d, f, p, m, g, s), T = I(() => h === void 0 ? !0 : w.isStarting() ? !1 : A(h) ? h(w.data.value) : w.data.value instanceof h), E = I(() => w.isStarting() && _ ? _() : w.data.value);
|
|
911
|
+
if (t && (v = Ue(E, t)), n && (y = Ge(I(() => {
|
|
916
912
|
var e;
|
|
917
913
|
let t = (e = v == null ? void 0 : v.listFormat.value) == null ? w.data.value : e;
|
|
918
914
|
if (Array.isArray(t)) return t;
|
|
@@ -922,15 +918,15 @@ function qe(e, t, n, r, i, a, o, s) {
|
|
|
922
918
|
}, t = (t) => async (n) => {
|
|
923
919
|
A(t) && await S(t(n)), e(n);
|
|
924
920
|
};
|
|
925
|
-
r && (b =
|
|
921
|
+
r && (b = Ve({
|
|
926
922
|
...r,
|
|
927
923
|
action: t(r.action),
|
|
928
924
|
apiInstance: s
|
|
929
|
-
})), i && (x =
|
|
925
|
+
})), i && (x = He({
|
|
930
926
|
...i,
|
|
931
927
|
action: t(i.action),
|
|
932
928
|
apiInstance: s
|
|
933
|
-
})), a && (C =
|
|
929
|
+
})), a && (C = ze({
|
|
934
930
|
...a,
|
|
935
931
|
action: t(a.action),
|
|
936
932
|
apiInstance: s
|
|
@@ -976,15 +972,15 @@ function qe(e, t, n, r, i, a, o, s) {
|
|
|
976
972
|
}
|
|
977
973
|
//#endregion
|
|
978
974
|
//#region src/composables/ref/useApiManagementAsyncRef.ts
|
|
979
|
-
function
|
|
980
|
-
let c =
|
|
975
|
+
function qe(e, t, n, r, i, a, o, s) {
|
|
976
|
+
let c = Ke(e, t, n, r, i, a, o, s);
|
|
981
977
|
return c.initSsr(), c;
|
|
982
978
|
}
|
|
983
979
|
//#endregion
|
|
984
980
|
//#region src/composables/ref/useBroadcastValueRef.ts
|
|
985
|
-
var
|
|
986
|
-
function
|
|
987
|
-
let n = `broadcast--${e}`, i =
|
|
981
|
+
var Je = () => y.get("__ui:broadcast-value-ref__", () => ({}));
|
|
982
|
+
function Ye(e, t) {
|
|
983
|
+
let n = `broadcast--${e}`, i = Je();
|
|
988
984
|
if (n in i) return i[n];
|
|
989
985
|
let a = R(x(t));
|
|
990
986
|
if (k()) {
|
|
@@ -999,11 +995,11 @@ function Xe(e, t) {
|
|
|
999
995
|
}
|
|
1000
996
|
//#endregion
|
|
1001
997
|
//#region src/composables/ref/useCookieRef.ts
|
|
1002
|
-
var
|
|
1003
|
-
function
|
|
1004
|
-
let r =
|
|
998
|
+
var Xe = () => y.get("__ui:cookie-ref__", () => ({}));
|
|
999
|
+
function Ze(e, t, n) {
|
|
1000
|
+
let r = Xe();
|
|
1005
1001
|
if (e in r) return r[e];
|
|
1006
|
-
let a = new i(e), o =
|
|
1002
|
+
let a = new i(e), o = Ye(`__cookie:${e}`, a.get(t, n));
|
|
1007
1003
|
return q.run(() => {
|
|
1008
1004
|
B(o, (e) => {
|
|
1009
1005
|
a.set(e, n);
|
|
@@ -1012,14 +1008,14 @@ function Qe(e, t, n) {
|
|
|
1012
1008
|
}
|
|
1013
1009
|
//#endregion
|
|
1014
1010
|
//#region src/composables/ref/useGeoIntlRef.ts
|
|
1015
|
-
function
|
|
1011
|
+
function Qe() {
|
|
1016
1012
|
return new je();
|
|
1017
1013
|
}
|
|
1018
1014
|
//#endregion
|
|
1019
1015
|
//#region src/composables/ref/useHashRef.ts
|
|
1020
|
-
var
|
|
1021
|
-
function
|
|
1022
|
-
let n =
|
|
1016
|
+
var $e = () => y.get("__ui:hash-ref__", () => ({}));
|
|
1017
|
+
function et(e, t) {
|
|
1018
|
+
let n = $e();
|
|
1023
1019
|
if (e in n) return n[e];
|
|
1024
1020
|
let r = z(p.get(e, t));
|
|
1025
1021
|
return k() && (q.run(() => {
|
|
@@ -1030,7 +1026,7 @@ function tt(e, t) {
|
|
|
1030
1026
|
}
|
|
1031
1027
|
//#endregion
|
|
1032
1028
|
//#region src/composables/ref/useLazyRef.ts
|
|
1033
|
-
var
|
|
1029
|
+
var tt = (e = { rootMargin: "128px 0px" }) => {
|
|
1034
1030
|
let t = {}, n = k() && "IntersectionObserver" in window ? new IntersectionObserver((e) => {
|
|
1035
1031
|
e.forEach((e) => {
|
|
1036
1032
|
let n = T(e.target);
|
|
@@ -1074,16 +1070,16 @@ var nt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1074
1070
|
removeLazyItem: r,
|
|
1075
1071
|
disconnectLazy: () => n == null ? void 0 : n.disconnect()
|
|
1076
1072
|
};
|
|
1077
|
-
},
|
|
1078
|
-
let t =
|
|
1073
|
+
}, nt = () => y.get("__ui:lazy-item-by-margin-ref__", () => []), rt = (e) => {
|
|
1074
|
+
let t = nt(), n = t.find((t) => t.rootMargin === e);
|
|
1079
1075
|
if (n) return n.item;
|
|
1080
|
-
let r =
|
|
1076
|
+
let r = tt({ rootMargin: e });
|
|
1081
1077
|
return t.push({
|
|
1082
1078
|
rootMargin: e,
|
|
1083
1079
|
item: r
|
|
1084
1080
|
}), r;
|
|
1085
|
-
},
|
|
1086
|
-
let n =
|
|
1081
|
+
}, it = (e, t) => {
|
|
1082
|
+
let n = rt(t);
|
|
1087
1083
|
return {
|
|
1088
1084
|
lazyItemStatus: n.addLazyItem(e),
|
|
1089
1085
|
get lazyItem() {
|
|
@@ -1093,7 +1089,7 @@ var nt = (e = { rootMargin: "128px 0px" }) => {
|
|
|
1093
1089
|
};
|
|
1094
1090
|
//#endregion
|
|
1095
1091
|
//#region src/composables/ref/useLoadingRef.ts
|
|
1096
|
-
function
|
|
1092
|
+
function at() {
|
|
1097
1093
|
let e = z(h.is());
|
|
1098
1094
|
return k() && h.registrationEvent(({ detail: t }) => {
|
|
1099
1095
|
e.value = t.loading;
|
|
@@ -1101,11 +1097,11 @@ function ot() {
|
|
|
1101
1097
|
}
|
|
1102
1098
|
//#endregion
|
|
1103
1099
|
//#region src/functions/executeUse.ts
|
|
1104
|
-
var
|
|
1100
|
+
var ot = /* @__PURE__ */ function(e) {
|
|
1105
1101
|
return e.global = "global", e.provide = "provide", e.local = "local", e;
|
|
1106
|
-
}({}),
|
|
1102
|
+
}({}), st = 1, ct = ee(1e5, 999999), lt = () => `__execute_use${ct}::${st++}`, ut = () => y.get("__ui:execute-use-global__", () => []);
|
|
1107
1103
|
function $(e, t = "provide") {
|
|
1108
|
-
let n =
|
|
1104
|
+
let n = lt(), r, i = (t) => {
|
|
1109
1105
|
let n = Object.freeze(e(...t));
|
|
1110
1106
|
return {
|
|
1111
1107
|
...n,
|
|
@@ -1127,23 +1123,23 @@ function $(e, t = "provide") {
|
|
|
1127
1123
|
}, s = (...e) => t === "provide" ? ce(n, void 0) || a(e) : (r || q.run(() => {
|
|
1128
1124
|
r = o(e);
|
|
1129
1125
|
}), r);
|
|
1130
|
-
return t === "global" &&
|
|
1126
|
+
return t === "global" && ut().push(s), s;
|
|
1131
1127
|
}
|
|
1132
|
-
function
|
|
1128
|
+
function dt(e) {
|
|
1133
1129
|
return $(e, "global");
|
|
1134
1130
|
}
|
|
1135
|
-
function
|
|
1131
|
+
function ft(e) {
|
|
1136
1132
|
return $(e, "provide");
|
|
1137
1133
|
}
|
|
1138
|
-
function
|
|
1134
|
+
function pt(e) {
|
|
1139
1135
|
return $(e, "local");
|
|
1140
1136
|
}
|
|
1141
|
-
function
|
|
1142
|
-
|
|
1137
|
+
function mt() {
|
|
1138
|
+
ut().forEach((e) => e());
|
|
1143
1139
|
}
|
|
1144
1140
|
//#endregion
|
|
1145
1141
|
//#region src/composables/ref/useMeta.ts
|
|
1146
|
-
var
|
|
1142
|
+
var ht = pt(() => {
|
|
1147
1143
|
let e = g, t = R(e.getTitle()), n = R(e.getKeywords()), r = R(e.getDescription()), i = R(e.getImage()), a = R(e.getCanonical()), o = R(e.getRobots()), s = R(e.getAuthor()), c = R(e.getSiteName()), l = () => e.html(), u = (e) => {
|
|
1148
1144
|
t.value = e, x();
|
|
1149
1145
|
}, d = (e) => {
|
|
@@ -1200,13 +1196,13 @@ var gt = mt(() => {
|
|
|
1200
1196
|
setSiteName: v,
|
|
1201
1197
|
setSuffix: (t) => e.setSuffix(t)
|
|
1202
1198
|
};
|
|
1203
|
-
}),
|
|
1199
|
+
}), gt = () => ht(), _t = (e, t, n = !0) => {
|
|
1204
1200
|
var r;
|
|
1205
1201
|
let i = L(t) ? t : R(t || ((r = e.value) == null || (r = r[0]) == null ? void 0 : r.value) || ""), a = () => o(i.value), o = (t) => {
|
|
1206
1202
|
var n;
|
|
1207
1203
|
return (n = e.value) == null ? void 0 : n.find((e) => e.value === t);
|
|
1208
1204
|
}, s = (e) => {
|
|
1209
|
-
e && e !== i.value && o(e) && (i.value = e,
|
|
1205
|
+
e && e !== i.value && o(e) && (i.value = e, Y.push({ name: e }));
|
|
1210
1206
|
};
|
|
1211
1207
|
return {
|
|
1212
1208
|
item: I(() => a()),
|
|
@@ -1225,9 +1221,9 @@ var gt = mt(() => {
|
|
|
1225
1221
|
s((t = e.value) == null || (t = t[0]) == null ? void 0 : t.value);
|
|
1226
1222
|
}
|
|
1227
1223
|
};
|
|
1228
|
-
},
|
|
1229
|
-
function
|
|
1230
|
-
let n =
|
|
1224
|
+
}, vt = () => y.get("__ui:session-ref__", () => ({}));
|
|
1225
|
+
function yt(e, t) {
|
|
1226
|
+
let n = vt();
|
|
1231
1227
|
if (e in n) return n[e];
|
|
1232
1228
|
let r = new a(e, !0), i = R(r.get(t));
|
|
1233
1229
|
return q.run(() => {
|
|
@@ -1236,9 +1232,9 @@ function bt(e, t) {
|
|
|
1236
1232
|
}
|
|
1237
1233
|
//#endregion
|
|
1238
1234
|
//#region src/composables/ref/useStorageRef.ts
|
|
1239
|
-
var
|
|
1240
|
-
function
|
|
1241
|
-
let r =
|
|
1235
|
+
var bt = () => y.get("__ui:storage-ref__", () => ({}));
|
|
1236
|
+
function xt(e, t, n) {
|
|
1237
|
+
let r = bt();
|
|
1242
1238
|
if (e in r) return r[e];
|
|
1243
1239
|
let i = new a(e), o = R(i.get(t, n));
|
|
1244
1240
|
return q.run(() => {
|
|
@@ -1249,12 +1245,12 @@ function St(e, t, n) {
|
|
|
1249
1245
|
}
|
|
1250
1246
|
//#endregion
|
|
1251
1247
|
//#region src/composables/ref/useTranslateRef.ts
|
|
1252
|
-
function
|
|
1248
|
+
function St(e, t = b.getItem()) {
|
|
1253
1249
|
let n = z(t.getListSync(e, !0)), r = async () => {
|
|
1254
1250
|
n.value = { ...await t.getList(e) };
|
|
1255
1251
|
};
|
|
1256
1252
|
if (k()) {
|
|
1257
|
-
B(
|
|
1253
|
+
B(J.getLanguage(), r);
|
|
1258
1254
|
for (let e in n.value) if (n.value[e] === e || n.value[e] === " ") {
|
|
1259
1255
|
r().then();
|
|
1260
1256
|
break;
|
|
@@ -1262,10 +1258,10 @@ function Ct(e, t = b.getItem()) {
|
|
|
1262
1258
|
}
|
|
1263
1259
|
return n;
|
|
1264
1260
|
}
|
|
1265
|
-
var
|
|
1261
|
+
var Ct = (e) => St(e);
|
|
1266
1262
|
//#endregion
|
|
1267
1263
|
//#region src/functions/computedAsync.ts
|
|
1268
|
-
function
|
|
1264
|
+
function wt(e, t, n, r) {
|
|
1269
1265
|
let i = z(x(t)), a = !0, o = async () => {
|
|
1270
1266
|
let t = await S(e);
|
|
1271
1267
|
t !== n && (i.value = t);
|
|
@@ -1276,9 +1272,9 @@ function Tt(e, t, n, r) {
|
|
|
1276
1272
|
}
|
|
1277
1273
|
//#endregion
|
|
1278
1274
|
//#region src/functions/computedByLanguage.ts
|
|
1279
|
-
function
|
|
1275
|
+
function Tt(e, t = () => void 0, n, r) {
|
|
1280
1276
|
return I(() => {
|
|
1281
|
-
if (
|
|
1277
|
+
if (J.get().value && (n === void 0 || n())) {
|
|
1282
1278
|
let t = e();
|
|
1283
1279
|
if (t !== void 0) return t;
|
|
1284
1280
|
}
|
|
@@ -1287,7 +1283,7 @@ function Et(e, t = () => void 0, n, r) {
|
|
|
1287
1283
|
}
|
|
1288
1284
|
//#endregion
|
|
1289
1285
|
//#region src/functions/computedEternity.ts
|
|
1290
|
-
function
|
|
1286
|
+
function Et(e, t) {
|
|
1291
1287
|
return re((n, r) => {
|
|
1292
1288
|
let i = z(x(t)), a = !1, o = async () => {
|
|
1293
1289
|
i.value = await S(e), r();
|
|
@@ -1308,17 +1304,17 @@ function Dt(e, t) {
|
|
|
1308
1304
|
}
|
|
1309
1305
|
//#endregion
|
|
1310
1306
|
//#region src/functions/dxtFunctionalPlugin.ts
|
|
1311
|
-
var
|
|
1312
|
-
if (n.api && e.setConfig(n.api), n.translate && b.setConfig(n.translate), n.location &&
|
|
1307
|
+
var Dt = { install(t, n = {}) {
|
|
1308
|
+
if (n.api && e.setConfig(n.api), n.translate && b.setConfig(n.translate), n.location && J.setValueDefault(n.location), n.icons && m.setConfig(n.icons), n.metaSuffix && gt().setSuffix(n.metaSuffix), n.router) Y.set(n.router);
|
|
1313
1309
|
else {
|
|
1314
1310
|
let e = t.config.globalProperties.$router;
|
|
1315
|
-
e &&
|
|
1311
|
+
e && Y.set(e);
|
|
1316
1312
|
}
|
|
1317
|
-
n.errorCauses && s.addList(n.errorCauses), n.errorHandlers && s.addHandlerList(n.errorHandlers),
|
|
1313
|
+
n.errorCauses && s.addList(n.errorCauses), n.errorHandlers && s.addHandlerList(n.errorHandlers), mt();
|
|
1318
1314
|
} };
|
|
1319
1315
|
//#endregion
|
|
1320
1316
|
//#region src/functions/getInject.ts
|
|
1321
|
-
function
|
|
1317
|
+
function Ot(e) {
|
|
1322
1318
|
if (se()) {
|
|
1323
1319
|
let t = ce(e);
|
|
1324
1320
|
if (t) return t;
|
|
@@ -1326,24 +1322,24 @@ function kt(e) {
|
|
|
1326
1322
|
}
|
|
1327
1323
|
//#endregion
|
|
1328
1324
|
//#region src/functions/ref/executeFunctionRef.ts
|
|
1329
|
-
function
|
|
1325
|
+
function kt(e) {
|
|
1330
1326
|
return U(x(e));
|
|
1331
1327
|
}
|
|
1332
1328
|
//#endregion
|
|
1333
1329
|
//#region src/functions/render/getBind.ts
|
|
1334
|
-
function
|
|
1330
|
+
function At(e, t = {}, n = "value", r = !1) {
|
|
1335
1331
|
let i = typeof t == "string", a = i ? t : n, o = i ? {} : t;
|
|
1336
1332
|
return e ? e && M(e) && (a in e || r) ? W(o, e) : W(o, { [a]: e }) : i ? {} : { ...o };
|
|
1337
1333
|
}
|
|
1338
1334
|
//#endregion
|
|
1339
1335
|
//#region src/functions/ref/getBindRef.ts
|
|
1340
|
-
function
|
|
1341
|
-
return I(() =>
|
|
1336
|
+
function jt(e, t = {}, n = "value") {
|
|
1337
|
+
return I(() => At(U(e), U(t), n));
|
|
1342
1338
|
}
|
|
1343
1339
|
//#endregion
|
|
1344
1340
|
//#region src/functions/ref/setRef.ts
|
|
1345
|
-
function
|
|
1341
|
+
function Mt(e, t) {
|
|
1346
1342
|
e.value !== t && (e.value = t);
|
|
1347
1343
|
}
|
|
1348
1344
|
//#endregion
|
|
1349
|
-
export { Oe as DatetimeRef, be as DesignAbstract, xe as DesignAsyncAbstract, ye as DesignChanged, Ee as DesignComp, G as DesignComponents, De as DesignConstructorAbstract, q as EffectScopeGlobal, ke as EventRef,
|
|
1345
|
+
export { Oe as DatetimeRef, be as DesignAbstract, xe as DesignAsyncAbstract, ye as DesignChanged, Ee as DesignComp, G as DesignComponents, De as DesignConstructorAbstract, q as EffectScopeGlobal, ke as EventRef, ot as ExecuteUseType, Ae as GeoFlagRef, je as GeoIntlRef, J as GeoRef, Me as ListDataRef, Y as RouterItemRef, Pe as ScrollbarWidthRef, wt as computedAsync, Tt as computedByLanguage, Et as computedEternity, Dt as dxtFunctionalPlugin, kt as executeFunctionRef, $ as executeUse, dt as executeUseGlobal, mt as executeUseGlobalInit, pt as executeUseLocal, ft as executeUseProvide, Fe as getApiErrorRef, At as getBind, jt as getBindRef, Se as getClassName, Ce as getIndexForRender, Ot as getInject, X as getOptions, U as getRef, we as render, Le as setApiRefGlobalConditions, Mt as setRef, Ct as t, W as toBind, Te as toBinds, K as toRefItem, Re as useApiAsyncRef, ze as useApiDelete, Be as useApiGet, qe as useApiManagementAsyncRef, Ke as useApiManagementRef, Ve as useApiPost, He as useApiPut, Ie as useApiRef, Q as useApiRequest, Ye as useBroadcastValueRef, Ze as useCookieRef, Ue as useFormattersRef, Qe as useGeoIntlRef, et as useHashRef, it as useLazyItemByMarginRef, tt as useLazyRef, at as useLoadingRef, gt as useMeta, _t as useRouterList, Ge as useSearchRef, We as useSearchValueRef, yt as useSessionRef, xt as useStorageRef, St as useTranslateRef };
|
|
@@ -6,10 +6,6 @@ import { GeoItemFull } from '@dxtmisha/functional-basic';
|
|
|
6
6
|
* Реактивный класс для работы с географическими данными.
|
|
7
7
|
*/
|
|
8
8
|
export declare class GeoRef {
|
|
9
|
-
private static readonly country;
|
|
10
|
-
private static readonly language;
|
|
11
|
-
private static readonly standard;
|
|
12
|
-
private static readonly firstDay;
|
|
13
9
|
/**
|
|
14
10
|
* Information about the current country.
|
|
15
11
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxtmisha/functional",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.13.
|
|
4
|
+
"version": "1.13.5",
|
|
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": [
|