bt-core-app 2.0.146 → 2.0.147
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 +11 -4
- package/dist/index.d.ts +7 -2
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -14034,9 +14034,12 @@ function AB(e) {
|
|
|
14034
14034
|
function d(v) {
|
|
14035
14035
|
document.dispatchEvent(new CustomEvent("swUpdated", { detail: v }));
|
|
14036
14036
|
}
|
|
14037
|
-
if ("serviceWorker" in navigator) {
|
|
14037
|
+
if (e.registerServiceWorker && "serviceWorker" in navigator) {
|
|
14038
14038
|
let v = Ff(e.urls);
|
|
14039
|
-
console.log("registering"), navigator.serviceWorker.register(
|
|
14039
|
+
console.log("registering"), navigator.serviceWorker.register(
|
|
14040
|
+
v == "production" ? "/sw.js" : "/dev-sw.js?dev-sw",
|
|
14041
|
+
{ type: v == "production" ? "classic" : "module" }
|
|
14042
|
+
).then((f) => {
|
|
14040
14043
|
if (console.log("registering done"), f.waiting) {
|
|
14041
14044
|
console.log("waiting"), d(f);
|
|
14042
14045
|
return;
|
|
@@ -45161,7 +45164,7 @@ const nY = /* @__PURE__ */ Je({
|
|
|
45161
45164
|
function ose(e) {
|
|
45162
45165
|
return {
|
|
45163
45166
|
install(t, a) {
|
|
45164
|
-
var u, d, v, f, g, m, p, w;
|
|
45167
|
+
var u, d, v, f, g, m, p, w, S;
|
|
45165
45168
|
e.includeComponents == !0 && (t.component("bt-avatar", t8), t.component("bt-background-task", D8), t.component("bt-blade-item", ON), t.component("bt-blade-items", aF), t.component("bt-blade-steps", wF), t.component("bt-blade", OF), t.component("bt-btn", HF), t.component("bt-camera-overlay", jF), t.component("bt-col", UF), t.component("bt-cosmetics-menu", zR), t.component("bt-cron", _9), t.component("bt-date", FW), t.component("bt-drag-counter", jW), t.component("bt-entity", qW), t.component("bt-error", im), t.component("bt-field", GW), t.component("bt-field-checkbox", QW), t.component("bt-field-date", JW), t.component("bt-field-entity", ej), t.component("bt-field-select", aj), t.component("bt-field-string", lj), t.component("bt-field-switch", ij), t.component("bt-field-tags", mj), t.component("bt-field-text-area", pj), t.component("bt-field-trigger", xj), t.component("bt-header-option", Cj), t.component("bt-image-uploader", o3), t.component("bt-json", BU), t.component("bt-loader", Gd), t.component("bt-nav-sidebar", YU), t.component("bt-number", GU), t.component("bt-numpad", ZU), t.component("bt-select-inline", Ou), t.component("bt-select-list-box", QU), t.component("bt-select", RA), t.component("bt-signature", nY), t.component("bt-signature-overlay", lY), t.component("bt-slider", rY), t.component("bt-span", iY), t.component("bt-status-item", uY), t.component("bt-tags", zA)), e.cosmetics ?? (e.cosmetics = {}), (u = e.cosmetics).vuetifyInstance ?? (u.vuetifyInstance = a.vuetifyInstance), hP(e.assistant ?? { items: [] });
|
|
45166
45169
|
const n = nP(e.urls);
|
|
45167
45170
|
IF(e.componentConfig), xP(e.cosmetics);
|
|
@@ -45187,7 +45190,11 @@ function ose(e) {
|
|
|
45187
45190
|
dates: c,
|
|
45188
45191
|
demo: o,
|
|
45189
45192
|
filters: e.filters
|
|
45190
|
-
}), e.
|
|
45193
|
+
}), e.pwa ?? (e.pwa = {}), (S = e.pwa).usePWA ?? (S.usePWA = !0), e.pwa.usePWA && AB({
|
|
45194
|
+
registerServiceWorker: e.pwa.registerServiceWorker,
|
|
45195
|
+
urls: n,
|
|
45196
|
+
usePWA: e.pwa.usePWA
|
|
45197
|
+
}), rP({
|
|
45191
45198
|
api: s,
|
|
45192
45199
|
auth: i,
|
|
45193
45200
|
dates: c,
|
package/dist/index.d.ts
CHANGED
|
@@ -625,10 +625,10 @@ export declare interface CreateCoreOptions {
|
|
|
625
625
|
menu?: CreateMenuOptions;
|
|
626
626
|
navigation?: UseNavigationOptions;
|
|
627
627
|
presets?: any;
|
|
628
|
+
pwa?: CreatePWAOptions;
|
|
628
629
|
/**suboptions */
|
|
629
630
|
subscriptionOptions?: AuthSubscription[];
|
|
630
631
|
urls: CreateUrlOptions;
|
|
631
|
-
usePWA?: boolean;
|
|
632
632
|
}
|
|
633
633
|
|
|
634
634
|
export declare function createCosmetics<T extends BaseCosmeticTheme>(options: UseCosmeticsOptions<T>): BTCosmetics;
|
|
@@ -691,6 +691,11 @@ export declare interface CreatePresetsOptions {
|
|
|
691
691
|
|
|
692
692
|
export declare function createPWA(options: UsePWAOptions): BTPWA;
|
|
693
693
|
|
|
694
|
+
declare interface CreatePWAOptions {
|
|
695
|
+
registerServiceWorker?: boolean;
|
|
696
|
+
usePWA?: boolean;
|
|
697
|
+
}
|
|
698
|
+
|
|
694
699
|
export declare function createSessionStoreDefinition(options: UseSessionStoreOptions): BTStoreDefinition;
|
|
695
700
|
|
|
696
701
|
export declare function createStoreBuilder(options: CreateStoreBuilderOptions): (opt: CreateStoreOptions) => BTStoreDefinition;
|
|
@@ -2579,7 +2584,7 @@ export declare function usePresets(preset?: string): any;
|
|
|
2579
2584
|
|
|
2580
2585
|
export declare function usePWA(): BTPWA;
|
|
2581
2586
|
|
|
2582
|
-
declare interface UsePWAOptions {
|
|
2587
|
+
declare interface UsePWAOptions extends CreatePWAOptions {
|
|
2583
2588
|
urls: CreateUrlOptions;
|
|
2584
2589
|
}
|
|
2585
2590
|
|
package/package.json
CHANGED