sprof 0.8.12 → 0.8.14
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/core/brand/quasar.d.ts +11 -2
- package/dist/core/composables/index.d.ts +1 -1
- package/dist/core/composables/useTheme.d.ts +6 -0
- package/dist/index.d.ts +1 -1
- package/dist/sprof.js +1968 -1957
- package/dist/sprof.umd.cjs +12 -12
- package/package.json +3 -2
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
*
|
|
19
19
|
* ```ts
|
|
20
20
|
* // quasar.config.ts клиента
|
|
21
|
-
* import {
|
|
21
|
+
* import { quasarBrandRdkb } from 'sprof';
|
|
22
22
|
* // ...
|
|
23
|
-
* framework: { config: { brand:
|
|
23
|
+
* framework: { config: { brand: quasarBrandRdkb } }
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
26
|
export interface QuasarBrand {
|
|
@@ -33,6 +33,15 @@ export interface QuasarBrand {
|
|
|
33
33
|
warning: string;
|
|
34
34
|
dark: string;
|
|
35
35
|
['dark-page']: string;
|
|
36
|
+
/**
|
|
37
|
+
* ⚠️ ИНДЕКСНАЯ СИГНАТУРА ОБЯЗАТЕЛЬНА. Quasar типизирует `framework.config.brand`
|
|
38
|
+
* как `{ [customColors: string]: string | undefined; … }` — то есть допускает
|
|
39
|
+
* свои дополнительные цвета. Без этой строки `quasarBrandRdkb` НЕ присваивается
|
|
40
|
+
* этому типу (`Index signature for type 'string' is missing in type
|
|
41
|
+
* 'QuasarBrand'`), и `vue-tsc` в каждом клиенте падает на `quasar.config.ts`.
|
|
42
|
+
* Найдено 24.09 при бампе клиентов на sprof 0.8.12 (типы стали видны).
|
|
43
|
+
*/
|
|
44
|
+
[customColor: string]: string;
|
|
36
45
|
}
|
|
37
46
|
/**
|
|
38
47
|
* Бренд Quasar для админки РДКБ.
|
|
@@ -15,4 +15,4 @@ export { useFilters } from './useFilters';
|
|
|
15
15
|
export type { UsePaginationReturn } from './usePagination';
|
|
16
16
|
export { usePagination } from './usePagination';
|
|
17
17
|
export type { ThemeName, UseThemeOptions, UseThemeReturn } from './useTheme';
|
|
18
|
-
export { getStoredTheme, useTheme } from './useTheme';
|
|
18
|
+
export { getStoredTheme, isThemeLockedLight, lockLightTheme, useTheme } from './useTheme';
|
|
@@ -25,6 +25,12 @@ export interface UseThemeReturn {
|
|
|
25
25
|
/** Переключить */
|
|
26
26
|
toggle(): void;
|
|
27
27
|
}
|
|
28
|
+
/** Заморозить тему в светлой (см. `themeLockedLight`). */
|
|
29
|
+
export declare function lockLightTheme(): void;
|
|
30
|
+
/** Тема заморожена в светлой. */
|
|
31
|
+
export declare function isThemeLockedLight(): boolean;
|
|
32
|
+
/** Снять/поставить замок — для тестов (в приложении — только `lockLightTheme`). */
|
|
33
|
+
export declare function _setThemeLockForTests(locked: boolean): void;
|
|
28
34
|
/**
|
|
29
35
|
* Переключатель темы дизайн-системы (UI-6.1).
|
|
30
36
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export type { UseCrudOptions, UseCrudReturn } from './core/composables/useCrud';
|
|
|
48
48
|
export type { UseFiltersReturn } from './core/composables/useFilters';
|
|
49
49
|
export type { UsePaginationReturn } from './core/composables/usePagination';
|
|
50
50
|
export type { ThemeName, UseThemeOptions, UseThemeReturn } from './core/composables/useTheme';
|
|
51
|
-
export { getStoredTheme, useTheme } from './core/composables/useTheme';
|
|
51
|
+
export { getStoredTheme, isThemeLockedLight, lockLightTheme, useTheme } from './core/composables/useTheme';
|
|
52
52
|
export type { QuasarBrand } from './core/brand/quasar';
|
|
53
53
|
export { quasarBrandExample, quasarBrandRdkb } from './core/brand/quasar';
|
|
54
54
|
export type { AuthLogOperation, AuthLogProvider, AuthLogReason, AuthLogUser } from './core/auth/AuthLog';
|