@dskripchenko/laravel-admin 1.10.6 → 1.10.8
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/components/shell/AdminShell.test.d.ts +1 -0
- package/dist/components/shell/AdminShell.vue.d.ts +10 -0
- package/dist/composables/useBrand.d.ts +9 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +3861 -3838
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/bootstrap.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,6 +2,13 @@ interface ImpersonationData {
|
|
|
2
2
|
/** Имя того, в кого вошли. */
|
|
3
3
|
asName: string;
|
|
4
4
|
}
|
|
5
|
+
interface BrandData {
|
|
6
|
+
name?: string;
|
|
7
|
+
logo?: string | null;
|
|
8
|
+
favicon?: string | null;
|
|
9
|
+
copyright?: string | null;
|
|
10
|
+
footer?: string | null;
|
|
11
|
+
}
|
|
5
12
|
interface Props {
|
|
6
13
|
/**
|
|
7
14
|
* v-model:collapsed — состояние сворачивания. Опционально: если host
|
|
@@ -11,6 +18,8 @@ interface Props {
|
|
|
11
18
|
collapsed?: boolean;
|
|
12
19
|
/** Если задано — показывает amber-banner и сдвигает контент. */
|
|
13
20
|
impersonation?: ImpersonationData | null;
|
|
21
|
+
/** Брендинг (name/logo/copyright) из config('admin.brand') (BL-12). */
|
|
22
|
+
brand?: BrandData | null;
|
|
14
23
|
}
|
|
15
24
|
declare var __VLS_9: {}, __VLS_14: {
|
|
16
25
|
openSearch: () => boolean;
|
|
@@ -33,6 +42,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
33
42
|
}>, {
|
|
34
43
|
collapsed: boolean;
|
|
35
44
|
impersonation: ImpersonationData | null;
|
|
45
|
+
brand: BrandData | null;
|
|
36
46
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
47
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
38
48
|
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type InjectionKey } from 'vue';
|
|
2
|
+
import type { AdminBrand } from '../types/bootstrap';
|
|
3
|
+
/**
|
|
4
|
+
* Брендинг панели (name/logo/favicon/copyright) из bootstrap.brand
|
|
5
|
+
* (config('admin.brand')). Провайдится в createAdminApp, потребляется
|
|
6
|
+
* shell'ом. Host кастомизирует чисто через config — без патча библиотеки.
|
|
7
|
+
*/
|
|
8
|
+
export declare const BRAND_KEY: InjectionKey<AdminBrand>;
|
|
9
|
+
export declare function useBrand(): AdminBrand;
|