bt-core-app 1.4.53 → 1.4.54
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 +5 -5
- package/dist/index.d.ts +6 -6
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -1138,8 +1138,8 @@ function En(e) {
|
|
|
1138
1138
|
const h = localStorage.getItem("cosmetics");
|
|
1139
1139
|
h != null && h.length > 0 ? t.value = JSON.parse(h) : t.value = {
|
|
1140
1140
|
theme: e.defaultTheme ?? "light",
|
|
1141
|
-
light: e.defaultLightTheme
|
|
1142
|
-
dark: e.defaultDarkTheme
|
|
1141
|
+
light: { ...dr, ...e.defaultLightTheme },
|
|
1142
|
+
dark: { ...hr, ...e.defaultDarkTheme },
|
|
1143
1143
|
drawer: e.defaultDrawer ?? !0,
|
|
1144
1144
|
drawerStick: e.defaultDrawerStick ?? !1
|
|
1145
1145
|
};
|
|
@@ -1148,13 +1148,13 @@ function En(e) {
|
|
|
1148
1148
|
localStorage.setItem("cosmetics", JSON.stringify(t.value));
|
|
1149
1149
|
}
|
|
1150
1150
|
function g(h) {
|
|
1151
|
-
u != null && (u.global.name.value = t.value.theme, u.global.name.value == "dark" ? (h && (t.value.dark = { ...e.defaultDarkTheme
|
|
1151
|
+
u != null && (u.global.name.value = t.value.theme, u.global.name.value == "dark" ? (h && (t.value.dark = { ...hr, ...e.defaultDarkTheme }), u.themes.value.dark = {
|
|
1152
1152
|
...u.themes.value.dark,
|
|
1153
1153
|
colors: {
|
|
1154
1154
|
...u.themes.value.dark.colors,
|
|
1155
1155
|
...t.value.dark
|
|
1156
1156
|
}
|
|
1157
|
-
}) : (h && (t.value.light = { ...e.defaultLightTheme
|
|
1157
|
+
}) : (h && (t.value.light = { ...dr, ...e.defaultLightTheme }), u.themes.value.light = {
|
|
1158
1158
|
...u.themes.value.light,
|
|
1159
1159
|
colors: {
|
|
1160
1160
|
...u.themes.value.light.colors,
|
|
@@ -1182,7 +1182,7 @@ function En(e) {
|
|
|
1182
1182
|
var h;
|
|
1183
1183
|
if (u != null) {
|
|
1184
1184
|
const m = u.themes.value.dark, l = u.themes.value.light;
|
|
1185
|
-
m.colors.primary = (t.value.dark ?? e.defaultDarkTheme
|
|
1185
|
+
m.colors.primary = (t.value.dark ?? { ...hr, ...e.defaultDarkTheme }).primary, l.colors.primary = (t.value.light ?? { ...dr, ...e.defaultLightTheme }).primary, (h = document.querySelector('meta[name="theme-color"]')) == null || h.setAttribute("content", "");
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
1188
1188
|
return S(), _e(t, () => {
|
package/dist/index.d.ts
CHANGED
|
@@ -54,12 +54,12 @@ export declare interface BaseAuthCredentials {
|
|
|
54
54
|
|
|
55
55
|
export declare interface BaseCosmeticTheme {
|
|
56
56
|
primary: string;
|
|
57
|
-
secondary
|
|
58
|
-
accent
|
|
59
|
-
error
|
|
60
|
-
info
|
|
61
|
-
success
|
|
62
|
-
warning
|
|
57
|
+
secondary?: string;
|
|
58
|
+
accent?: string;
|
|
59
|
+
error?: string;
|
|
60
|
+
info?: string;
|
|
61
|
+
success?: string;
|
|
62
|
+
warning?: string;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export declare interface BaseModel {
|
package/package.json
CHANGED