structra-ui 0.1.42 → 0.1.43
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/fesm2022/structra-ui.mjs +33 -41
- package/fesm2022/structra-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/structra-ui.d.ts +14 -7
package/package.json
CHANGED
package/types/structra-ui.d.ts
CHANGED
|
@@ -895,7 +895,6 @@ declare class DropdownBaseComponent {
|
|
|
895
895
|
*/
|
|
896
896
|
readonly panelThemeNgClass: i0.Signal<{
|
|
897
897
|
[x: string]: boolean;
|
|
898
|
-
'app-library-theme': boolean;
|
|
899
898
|
}>;
|
|
900
899
|
open: boolean;
|
|
901
900
|
readonly openChange: EventEmitter<boolean>;
|
|
@@ -2258,15 +2257,26 @@ interface AppThemeOption {
|
|
|
2258
2257
|
readonly label: string;
|
|
2259
2258
|
}
|
|
2260
2259
|
/**
|
|
2261
|
-
* Estado global do tema da library:
|
|
2262
|
-
* Os tokens
|
|
2260
|
+
* Estado global do tema da library: **sempre** `.app-library-theme` + `theme-*` juntos.
|
|
2261
|
+
* Os tokens de paleta em `_theme-palettes.scss` usam o selector `.app-library-theme.theme-*`.
|
|
2263
2262
|
*/
|
|
2264
2263
|
declare class AppThemeService {
|
|
2265
2264
|
private readonly activeId;
|
|
2266
2265
|
/** Identificador do tema activo (`blue`, `green`, …). */
|
|
2267
2266
|
readonly activeThemeId: i0.Signal<"blue" | "green" | "purple" | "orange" | "white" | "gray" | "sepia" | "black">;
|
|
2268
|
-
/**
|
|
2267
|
+
/**
|
|
2268
|
+
* Classes separadas (ex.: CDK `panelClass` — uma string com espaço quebra `classList.add`).
|
|
2269
|
+
*/
|
|
2270
|
+
readonly themeClassList: i0.Signal<readonly [string, string]>;
|
|
2271
|
+
/**
|
|
2272
|
+
* As duas classes numa string — útil para `[class]`, `[ngClass]` com string, ou hosts HTML.
|
|
2273
|
+
* Ex.: `<div [ngClass]="libTheme.themeClass()">` aplica paleta completa no consumidor.
|
|
2274
|
+
*/
|
|
2269
2275
|
readonly themeClass: i0.Signal<string>;
|
|
2276
|
+
/** Mapa para `[ngClass]` com chaves dinâmicas (painéis overlay). */
|
|
2277
|
+
readonly themeClassMap: i0.Signal<{
|
|
2278
|
+
[x: string]: boolean;
|
|
2279
|
+
}>;
|
|
2270
2280
|
/** Lista fixa de temas suportados pela library. */
|
|
2271
2281
|
readonly themeOptions: readonly AppThemeOption[];
|
|
2272
2282
|
setTheme(id: AppThemeId): void;
|
|
@@ -2430,7 +2440,6 @@ declare class ContextMenuComponent<T = string> implements OnDestroy {
|
|
|
2430
2440
|
private readonly generatedId;
|
|
2431
2441
|
readonly panelThemeNgClass: i0.Signal<{
|
|
2432
2442
|
[x: string]: boolean;
|
|
2433
|
-
'app-library-theme': boolean;
|
|
2434
2443
|
}>;
|
|
2435
2444
|
get resolvedMenuId(): string;
|
|
2436
2445
|
ngOnDestroy(): void;
|
|
@@ -2547,7 +2556,6 @@ declare class MenuListComponent<T = string> implements OnChanges {
|
|
|
2547
2556
|
readonly submenuPositions: _angular_cdk_overlay.ConnectedPosition[];
|
|
2548
2557
|
readonly panelThemeNgClass: i0.Signal<{
|
|
2549
2558
|
[x: string]: boolean;
|
|
2550
|
-
'app-library-theme': boolean;
|
|
2551
2559
|
}>;
|
|
2552
2560
|
overlayPanelClasses(): string[];
|
|
2553
2561
|
onNestedItemSelect(id: T): void;
|
|
@@ -2658,7 +2666,6 @@ declare class AnchoredOverlayComponent {
|
|
|
2658
2666
|
readonly overlayPanelClasses: i0.Signal<string[]>;
|
|
2659
2667
|
readonly panelThemeNgClass: i0.Signal<{
|
|
2660
2668
|
[x: string]: boolean;
|
|
2661
|
-
'app-library-theme': boolean;
|
|
2662
2669
|
}>;
|
|
2663
2670
|
readonly defaultScrollStrategy: _angular_cdk_overlay.RepositionScrollStrategy;
|
|
2664
2671
|
get effectiveScrollStrategy(): ScrollStrategy;
|