bt-core-app 1.4.162 → 1.4.164
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 +7 -9
- package/dist/index.d.ts +4 -3
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -20915,10 +20915,7 @@ function ms(e) {
|
|
|
20915
20915
|
}
|
|
20916
20916
|
function zk(e) {
|
|
20917
20917
|
function t(n) {
|
|
20918
|
-
|
|
20919
|
-
return {};
|
|
20920
|
-
let a = n;
|
|
20921
|
-
return e.presets[a] ?? {};
|
|
20918
|
+
return n ? (e.presets ?? {})[n] ?? {} : {};
|
|
20922
20919
|
}
|
|
20923
20920
|
return Oo = {
|
|
20924
20921
|
usePresets: t
|
|
@@ -29855,6 +29852,7 @@ const AM = { key: 0 }, DM = /* @__PURE__ */ tt({
|
|
|
29855
29852
|
canRestore: { type: Boolean, default: !1 },
|
|
29856
29853
|
density: { default: "compact" },
|
|
29857
29854
|
flat: { type: Boolean, default: !0 },
|
|
29855
|
+
getLabel: {},
|
|
29858
29856
|
hideRefresh: { type: Boolean },
|
|
29859
29857
|
label: {},
|
|
29860
29858
|
preset: {},
|
|
@@ -29906,7 +29904,7 @@ const AM = { key: 0 }, DM = /* @__PURE__ */ tt({
|
|
|
29906
29904
|
setup(e) {
|
|
29907
29905
|
const t = e, n = ms(t.preset), a = U(), { findSingleDisplay: r } = fs(), l = nl(), i = iy(t), s = Ne("size", () => U("small"), !0);
|
|
29908
29906
|
ln("isEditing", i.isEditing);
|
|
29909
|
-
const u = C(() => (n.canEdit ?? t.canEdit) && i.mode.value != "new"), c = C(() => n.canDelete ?? t.canDelete), h = C(() => n.canRestore ?? t.canRestore), f = C(() => n.canSave ?? t.canSave), m = C(() => n.hideRefresh ?? t.hideRefresh), d = C(() => t.label ?? r(t.nav ?? t.bladeName ?? ""));
|
|
29907
|
+
const u = C(() => (n.canEdit ?? t.canEdit) && i.mode.value != "new"), c = C(() => n.canDelete ?? t.canDelete), h = C(() => n.canRestore ?? t.canRestore), f = C(() => n.canSave ?? t.canSave), m = C(() => n.hideRefresh ?? t.hideRefresh), d = C(() => t.label ?? (t.getLabel != null ? t.getLabel(i.asyncItem.value) : void 0) ?? r(t.nav ?? t.bladeName ?? ""));
|
|
29910
29908
|
async function o(v) {
|
|
29911
29909
|
const { valid: w } = await a.value.validate();
|
|
29912
29910
|
w && await i.saveItem(i.asyncItem.value, { navBack: v });
|
|
@@ -31831,12 +31829,12 @@ const AM = { key: 0 }, DM = /* @__PURE__ */ tt({
|
|
|
31831
31829
|
function G_(e) {
|
|
31832
31830
|
return {
|
|
31833
31831
|
install(t, n) {
|
|
31834
|
-
var c;
|
|
31835
|
-
e.includeComponents == !0 && (t.component("bt-blade-item", DM), t.component("bt-blade-items", gh), t.component("bt-blade", IM), t.component("bt-btn", EM), t.component("bt-col", VM), t.component("bt-date", ry), t.component("bt-entity", $M), t.component("bt-field-checkbox", NM), t.component("bt-field-date", BM), t.component("bt-field-entity", RM), t.component("bt-field-select", FM), t.component("bt-field-string", OM), t.component("bt-field-switch", HM), t.component("bt-field-tags", zM), t.component("bt-field-text-area", YM), t.component("bt-field-trigger", ZM), t.component("bt-header-option", QM), t.component("bt-json", e_), t.component("bt-nav-sidebar", t_), t.component("bt-number", ly), t.component("bt-select-list-box", n_), t.component("bt-select", a_), t.component("bt-span", r_)), e.
|
|
31832
|
+
var c, h;
|
|
31833
|
+
e.includeComponents == !0 && (t.component("bt-blade-item", DM), t.component("bt-blade-items", gh), t.component("bt-blade", IM), t.component("bt-btn", EM), t.component("bt-col", VM), t.component("bt-date", ry), t.component("bt-entity", $M), t.component("bt-field-checkbox", NM), t.component("bt-field-date", BM), t.component("bt-field-entity", RM), t.component("bt-field-select", FM), t.component("bt-field-string", OM), t.component("bt-field-switch", HM), t.component("bt-field-tags", zM), t.component("bt-field-text-area", YM), t.component("bt-field-trigger", ZM), t.component("bt-header-option", QM), t.component("bt-json", e_), t.component("bt-nav-sidebar", t_), t.component("bt-number", ly), t.component("bt-select-list-box", n_), t.component("bt-select", a_), t.component("bt-span", r_)), e.cosmetics ?? (e.cosmetics = {}), (c = e.cosmetics).vuetifyInstance ?? (c.vuetifyInstance = n.vuetifyInstance);
|
|
31836
31834
|
const a = M0(e.urls);
|
|
31837
|
-
B0(e);
|
|
31835
|
+
B0(e.cosmetics);
|
|
31838
31836
|
const r = H0(), l = Hk(e.navigation ?? {});
|
|
31839
|
-
zk(e), (
|
|
31837
|
+
zk(e), (h = e.auth).demo ?? (h.demo = r), e.auth.getAuthItem = l.findItem;
|
|
31840
31838
|
const i = V0(e.auth);
|
|
31841
31839
|
xM(e.menu);
|
|
31842
31840
|
const s = E0({
|
package/dist/index.d.ts
CHANGED
|
@@ -302,12 +302,13 @@ export declare interface CreateAuthOptions {
|
|
|
302
302
|
|
|
303
303
|
export declare function createCore(options: CreateCoreOptions): CoreApp;
|
|
304
304
|
|
|
305
|
-
export declare interface CreateCoreOptions
|
|
305
|
+
export declare interface CreateCoreOptions {
|
|
306
306
|
auth: CreateAuthOptions;
|
|
307
|
+
cosmetics?: UseCosmeticsOptions<BaseCosmeticTheme>;
|
|
307
308
|
includeComponents?: boolean;
|
|
308
309
|
menu?: CreateMenuOptions;
|
|
309
310
|
navigation?: UseNavigationOptions;
|
|
310
|
-
presets
|
|
311
|
+
presets?: any;
|
|
311
312
|
/**suboptions */
|
|
312
313
|
subscriptionOptions?: AuthSubscription[];
|
|
313
314
|
urls: CreateUrlOptions;
|
|
@@ -344,7 +345,7 @@ export declare function createNavigation(options: UseNavigationOptions): BTNavig
|
|
|
344
345
|
export declare function createPresets(options: CreatePresetsOptions): BTPresets;
|
|
345
346
|
|
|
346
347
|
export declare interface CreatePresetsOptions {
|
|
347
|
-
presets
|
|
348
|
+
presets?: any;
|
|
348
349
|
}
|
|
349
350
|
|
|
350
351
|
export declare function createPWA(): BTPWA;
|
package/package.json
CHANGED