bt-core-app 1.4.370 → 1.4.371
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/dist/bt-core-app.js +35 -15
- package/dist/index.d.ts +10 -0
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -33289,6 +33289,25 @@ function fP(e) {
|
|
|
33289
33289
|
};
|
|
33290
33290
|
}
|
|
33291
33291
|
function mP(e) {
|
|
33292
|
+
return new Promise((t, n) => {
|
|
33293
|
+
"geolocation" in window.navigator ? window.navigator.geolocation.getCurrentPosition(
|
|
33294
|
+
(l) => {
|
|
33295
|
+
t({
|
|
33296
|
+
lat: l.coords.latitude,
|
|
33297
|
+
lng: l.coords.longitude,
|
|
33298
|
+
altitude: l.coords.altitude,
|
|
33299
|
+
altitudeAccuracy: l.coords.altitudeAccuracy,
|
|
33300
|
+
accuracy: l.coords.accuracy
|
|
33301
|
+
});
|
|
33302
|
+
},
|
|
33303
|
+
() => {
|
|
33304
|
+
n("no position access");
|
|
33305
|
+
},
|
|
33306
|
+
e
|
|
33307
|
+
) : n("no browser support");
|
|
33308
|
+
});
|
|
33309
|
+
}
|
|
33310
|
+
function vP(e) {
|
|
33292
33311
|
var r;
|
|
33293
33312
|
const t = ((r = e == null ? void 0 : e.dates) == null ? void 0 : r.tzDate) ?? dd().tzDate, n = gi();
|
|
33294
33313
|
function a(i) {
|
|
@@ -33380,7 +33399,7 @@ const hI = {
|
|
|
33380
33399
|
component: kd
|
|
33381
33400
|
};
|
|
33382
33401
|
var yI = "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z", pI = "M20 21H4V10H6V19H18V10H20V21M3 3H21V9H3V3M9.5 11H14.5C14.78 11 15 11.22 15 11.5V13H9V11.5C9 11.22 9.22 11 9.5 11M5 5V7H19V5H5Z", bI = "M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z", wI = "M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z", xI = "M22,3H7C6.31,3 5.77,3.35 5.41,3.88L0,12L5.41,20.11C5.77,20.64 6.31,21 7,21H22A2,2 0 0,0 24,19V5A2,2 0 0,0 22,3M19,15.59L17.59,17L14,13.41L10.41,17L9,15.59L12.59,12L9,8.41L10.41,7L14,10.59L17.59,7L19,8.41L15.41,12", kI = "M19,3H18V1H16V3H8V1H6V3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H10V19H5V8H19V9H21V5A2,2 0 0,0 19,3M21.7,13.35L20.7,14.35L18.65,12.35L19.65,11.35C19.85,11.14 20.19,11.13 20.42,11.35L21.7,12.63C21.89,12.83 21.89,13.15 21.7,13.35M12,18.94L18.07,12.88L20.12,14.88L14.06,21H12V18.94Z", SI = "M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z", CI = "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z", _I = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", MI = "M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z", TI = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", DI = "M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z", AI = "M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z", LI = "M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L6.04,7.5L12,10.85L17.96,7.5L12,4.15M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V9.21L13,12.58V19.29L19,15.91Z", II = "M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z", EI = "M22.67,12L18.18,16.5L15.67,14L17.65,12L15.67,10.04L18.18,7.53L22.67,12M12,1.33L16.47,5.82L13.96,8.33L12,6.35L10,8.33L7.5,5.82L12,1.33M12,22.67L7.53,18.18L10.04,15.67L12,17.65L14,15.67L16.5,18.18L12,22.67M1.33,12L5.82,7.5L8.33,10L6.35,12L8.33,13.96L5.82,16.47L1.33,12M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10Z", VI = "M16.24,3.56L21.19,8.5C21.97,9.29 21.97,10.55 21.19,11.34L12,20.53C10.44,22.09 7.91,22.09 6.34,20.53L2.81,17C2.03,16.21 2.03,14.95 2.81,14.16L13.41,3.56C14.2,2.78 15.46,2.78 16.24,3.56M4.22,15.58L7.76,19.11C8.54,19.9 9.8,19.9 10.59,19.11L14.12,15.58L9.17,10.63L4.22,15.58Z", PI = "M15.14,3C14.63,3 14.12,3.2 13.73,3.59L2.59,14.73C1.81,15.5 1.81,16.77 2.59,17.56L5.03,20H12.69L21.41,11.27C22.2,10.5 22.2,9.23 21.41,8.44L16.56,3.59C16.17,3.2 15.65,3 15.14,3M17,18L15,20H22V18", $I = "M14 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V8L14 2M15 16L13 20H10L12 16H9V11H15V16M13 9V3.5L18.5 9H13Z", BI = "M14,12V19.88C14.04,20.18 13.94,20.5 13.71,20.71C13.32,21.1 12.69,21.1 12.3,20.71L10.29,18.7C10.06,18.47 9.96,18.16 10,17.87V12H9.97L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L14.03,12H14Z", NI = "M17 7L15.59 8.41L18.17 11H8V13H18.17L15.59 15.58L17 17L22 12M4 5H12V3H4C2.9 3 2 3.9 2 5V19C2 20.1 2.9 21 4 21H12V19H4V5Z", FI = "M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z", RI = "M7,10L12,15L17,10H7Z", zI = "M1.88,0.46L0.46,1.88L5.59,7H2V9H9V2H7V5.59M11,7V9H21V15H23V9A2,2 0 0,0 21,7M7,11V21A2,2 0 0,0 9,23H15V21H9V11M15.88,14.46L14.46,15.88L19.6,21H17V23H23V17H21V19.59", HI = "M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z", OI = "M18.66,2C18.4,2 18.16,2.09 17.97,2.28L16.13,4.13L19.88,7.88L21.72,6.03C22.11,5.64 22.11,5 21.72,4.63L19.38,2.28C19.18,2.09 18.91,2 18.66,2M3.28,4L2,5.28L8.5,11.75L4,16.25V20H7.75L12.25,15.5L18.72,22L20,20.72L13.5,14.25L9.75,10.5L3.28,4M15.06,5.19L11.03,9.22L14.78,12.97L18.81,8.94L15.06,5.19Z", WI = "M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z", YI = "M7.5,2C5.71,3.15 4.5,5.18 4.5,7.5C4.5,9.82 5.71,11.85 7.53,13C4.46,13 2,10.54 2,7.5A5.5,5.5 0 0,1 7.5,2M19.07,3.5L20.5,4.93L4.93,20.5L3.5,19.07L19.07,3.5M12.89,5.93L11.41,5L9.97,6L10.39,4.3L9,3.24L10.75,3.12L11.33,1.47L12,3.1L13.73,3.13L12.38,4.26L12.89,5.93M9.59,9.54L8.43,8.81L7.31,9.59L7.65,8.27L6.56,7.44L7.92,7.35L8.37,6.06L8.88,7.33L10.24,7.36L9.19,8.23L9.59,9.54M19,13.5A5.5,5.5 0 0,1 13.5,19C12.28,19 11.15,18.6 10.24,17.93L17.93,10.24C18.6,11.15 19,12.28 19,13.5M14.6,20.08L17.37,18.93L17.13,22.28L14.6,20.08M18.93,17.38L20.08,14.61L22.28,17.15L18.93,17.38M20.08,12.42L18.94,9.64L22.28,9.88L20.08,12.42M9.63,18.93L12.4,20.08L9.87,22.27L9.63,18.93Z", UI = "M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z", jI = "M16,5V18H21V5M4,18H9V5H4M10,18H15V5H10V18Z", qI = "M4,4H20V20H4V4M6,8V18H18V8H6Z";
|
|
33383
|
-
function
|
|
33402
|
+
function hP(e) {
|
|
33384
33403
|
return {
|
|
33385
33404
|
defaultSet: "mdi",
|
|
33386
33405
|
aliases: {
|
|
@@ -33643,7 +33662,7 @@ function p1(e, t, n) {
|
|
|
33643
33662
|
...v
|
|
33644
33663
|
};
|
|
33645
33664
|
}
|
|
33646
|
-
function
|
|
33665
|
+
function gP(e) {
|
|
33647
33666
|
const t = (e == null ? void 0 : e.iterationCount) ?? 20, n = U(), a = (e == null ? void 0 : e.onError) ?? (() => {
|
|
33648
33667
|
});
|
|
33649
33668
|
async function l(r) {
|
|
@@ -33666,7 +33685,7 @@ function hP(e) {
|
|
|
33666
33685
|
loadingMsg: n
|
|
33667
33686
|
};
|
|
33668
33687
|
}
|
|
33669
|
-
function
|
|
33688
|
+
function yP(e) {
|
|
33670
33689
|
const t = U([]), n = U(!1);
|
|
33671
33690
|
function a() {
|
|
33672
33691
|
t.value.every((r) => r.loaded) && (e.onAllLoaded(), n.value = !1);
|
|
@@ -33744,7 +33763,7 @@ function KI() {
|
|
|
33744
33763
|
let Iv, Ev, Vv, Pv = !1;
|
|
33745
33764
|
const Bu = U(!1), Nu = U(!1), $v = U(), No = U();
|
|
33746
33765
|
let Ic;
|
|
33747
|
-
function
|
|
33766
|
+
function pP() {
|
|
33748
33767
|
return Ic;
|
|
33749
33768
|
}
|
|
33750
33769
|
function XI() {
|
|
@@ -33778,7 +33797,7 @@ function XI() {
|
|
|
33778
33797
|
}, Ic;
|
|
33779
33798
|
}
|
|
33780
33799
|
const b1 = Symbol(), JI = Symbol(), w1 = Symbol(), x1 = Symbol();
|
|
33781
|
-
function
|
|
33800
|
+
function bP(e, t, n) {
|
|
33782
33801
|
const a = Ye(b1), l = Ye(x1), r = Ye(w1), i = a.findItem(e.meta.nav ?? e.name) ?? void 0, o = e.meta.requiresAuth !== !1 || i != null && i.requiresAuth !== !1, s = e.query.isDemo === "true";
|
|
33783
33802
|
if (!o)
|
|
33784
33803
|
a.updateNavigationChange(e, t);
|
|
@@ -33794,7 +33813,7 @@ function pP(e, t, n) {
|
|
|
33794
33813
|
} else
|
|
33795
33814
|
return l.login(window.location.pathname), n;
|
|
33796
33815
|
}
|
|
33797
|
-
function
|
|
33816
|
+
function wP(e) {
|
|
33798
33817
|
const t = [];
|
|
33799
33818
|
return (e == null ? void 0 : e.required) == !0 && t.push((n) => !!n || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((n) => !!n || "Password is required"), t.push((n) => n != null && n.length > 9 || "Password must be 10 or more characters"), t.push((n) => /^(.*[a-z].*)$/.test(n) || "Password must contain a lowercase letter"), t.push((n) => /^(.*[A-Z].*)$/.test(n) || "Password must contain an uppercase letter"), t.push((n) => /^(.*\d.*)$/.test(n) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((n) => !!n || "Email is required"), t.push((n) => ex(n) || "Email must be valid")), t;
|
|
33800
33819
|
}
|
|
@@ -40023,7 +40042,7 @@ const pV = /* @__PURE__ */ Qe({
|
|
|
40023
40042
|
return (l, r) => (B(), oe("span", null, $e(l.prefix) + $e(a.value) + $e(l.suffix), 1));
|
|
40024
40043
|
}
|
|
40025
40044
|
});
|
|
40026
|
-
function
|
|
40045
|
+
function xP(e) {
|
|
40027
40046
|
return {
|
|
40028
40047
|
install(t, n) {
|
|
40029
40048
|
var f, c, v;
|
|
@@ -40066,7 +40085,7 @@ export {
|
|
|
40066
40085
|
Gw as copyItemByAlphabet,
|
|
40067
40086
|
ux as createApi,
|
|
40068
40087
|
cx as createAuth,
|
|
40069
|
-
|
|
40088
|
+
xP as createCore,
|
|
40070
40089
|
vx as createCosmetics,
|
|
40071
40090
|
zx as createDates,
|
|
40072
40091
|
Wx as createDemo,
|
|
@@ -40102,7 +40121,7 @@ export {
|
|
|
40102
40121
|
Uw as getMinDateString,
|
|
40103
40122
|
Xw as getRandomColor,
|
|
40104
40123
|
Rw as group,
|
|
40105
|
-
|
|
40124
|
+
bP as guardRoute,
|
|
40106
40125
|
Jw as hasSearch,
|
|
40107
40126
|
jV as isArrayOfLength,
|
|
40108
40127
|
It as isLengthyArray,
|
|
@@ -40141,15 +40160,16 @@ export {
|
|
|
40141
40160
|
fP as useDocumentMeta,
|
|
40142
40161
|
dx as useDraggable,
|
|
40143
40162
|
gi as useFilters,
|
|
40144
|
-
mP as
|
|
40145
|
-
vP as
|
|
40163
|
+
mP as useGeolocationAsync,
|
|
40164
|
+
vP as useGraphing,
|
|
40165
|
+
hP as useIcons,
|
|
40146
40166
|
$0 as useId,
|
|
40147
40167
|
DV as useIds,
|
|
40148
40168
|
eP as useImageUrl,
|
|
40149
40169
|
p1 as useItem,
|
|
40150
|
-
|
|
40170
|
+
gP as useIterating,
|
|
40151
40171
|
Zd as useList,
|
|
40152
|
-
|
|
40172
|
+
yP as useLists,
|
|
40153
40173
|
lP as useLocalActions,
|
|
40154
40174
|
nP as useLocalCache,
|
|
40155
40175
|
rP as useLocalCosmetics,
|
|
@@ -40158,10 +40178,10 @@ export {
|
|
|
40158
40178
|
Tp as useNavBack,
|
|
40159
40179
|
br as useNavigation,
|
|
40160
40180
|
GM as useNested,
|
|
40161
|
-
|
|
40181
|
+
pP as usePWA,
|
|
40162
40182
|
Hs as usePresets,
|
|
40163
40183
|
mx as useResizable,
|
|
40164
|
-
|
|
40184
|
+
wP as useRules,
|
|
40165
40185
|
cP as useSelectDate,
|
|
40166
40186
|
uP as useSelectItem,
|
|
40167
40187
|
dP as useSelectNumber,
|
package/dist/index.d.ts
CHANGED
|
@@ -564,6 +564,14 @@ export declare interface GeoCoordinate {
|
|
|
564
564
|
lng?: number;
|
|
565
565
|
}
|
|
566
566
|
|
|
567
|
+
declare interface Geolocation_2 {
|
|
568
|
+
lat: number;
|
|
569
|
+
lng: number;
|
|
570
|
+
altitude: number | null;
|
|
571
|
+
altitudeAccuracy: number | null;
|
|
572
|
+
accuracy: number;
|
|
573
|
+
}
|
|
574
|
+
|
|
567
575
|
declare interface GetAllOptions<T, TReturn> extends StorePathOptions, DoActionOptions {
|
|
568
576
|
/**returns an error msg if failed */
|
|
569
577
|
onGetAsync?: OnGetAllAsync<T>;
|
|
@@ -1480,6 +1488,8 @@ export declare interface UseFiltersOptions {
|
|
|
1480
1488
|
filters?: any;
|
|
1481
1489
|
}
|
|
1482
1490
|
|
|
1491
|
+
export declare function useGeolocationAsync(options?: any): Promise<Geolocation_2>;
|
|
1492
|
+
|
|
1483
1493
|
export declare function useGraphing(useOptions?: UseGraphingOptions): {
|
|
1484
1494
|
getRawXY: <T>(options: GetRawXYOptions<T>) => GraphedData[];
|
|
1485
1495
|
getXY: <T_1>(options: GetXYOptions<T_1>) => GraphedData[];
|
package/package.json
CHANGED