structra-ui 0.2.23 → 0.2.25
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/types/structra-ui.d.ts
CHANGED
|
@@ -3431,7 +3431,7 @@ declare class AppShellSidebarTemplateDirective {
|
|
|
3431
3431
|
* Tema: `[appTheme]` opcional no host; sem ele, herda paleta de um ancestral com {@link ThemeDirective}
|
|
3432
3432
|
* (ex.: `<div appTheme="purple">`). Com input explícito, aplica as classes no host.
|
|
3433
3433
|
*/
|
|
3434
|
-
declare class AppSidebarComponent<T extends string = string> implements OnChanges {
|
|
3434
|
+
declare class AppSidebarComponent<T extends string = string> implements OnChanges, AfterViewInit {
|
|
3435
3435
|
private readonly cdr;
|
|
3436
3436
|
private readonly destroyRef;
|
|
3437
3437
|
private readonly hostEl;
|
|
@@ -3452,8 +3452,11 @@ declare class AppSidebarComponent<T extends string = string> implements OnChange
|
|
|
3452
3452
|
readonly listCompressText: i0.WritableSignal<boolean>;
|
|
3453
3453
|
private listRevealTimeoutId;
|
|
3454
3454
|
constructor();
|
|
3455
|
+
ngAfterViewInit(): void;
|
|
3455
3456
|
ngOnChanges(changes: SimpleChanges): void;
|
|
3456
3457
|
private clearListRevealTimeout;
|
|
3458
|
+
private scheduleSidebarHeadLayoutGuards;
|
|
3459
|
+
private applySidebarHeadLayoutGuards;
|
|
3457
3460
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppSidebarComponent<any>, never>;
|
|
3458
3461
|
static ɵcmp: i0.ɵɵComponentDeclaration<AppSidebarComponent<any>, "app-sidebar", never, { "appTheme": { "alias": "appTheme"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": true; }; "menuId": { "alias": "menuId"; "required": false; }; "selectedItemId": { "alias": "selectedItemId"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; }, { "itemSelect": "itemSelect"; }, never, ["[appSidebarBrand]", "[appSidebarToolbar]"], true, never>;
|
|
3459
3462
|
static ngAcceptInputType_collapsed: unknown;
|
|
@@ -3477,6 +3480,10 @@ declare class AppSidebarToolbarDirective {
|
|
|
3477
3480
|
* Marca o título no topo da lateral: **na mesma linha** que o botão recolher (à esquerda);
|
|
3478
3481
|
* oculto no modo rail (só ícones).
|
|
3479
3482
|
*
|
|
3483
|
+
* **Importante:** não coloque `[appSidebarBrand]` num único `div` que também envolva o botão com classes
|
|
3484
|
+
* tipo Tailwind (`flex`, `justify-between`): use **dois projectados irmãos** (marca + `[appSidebarToolbar]`).
|
|
3485
|
+
* Caso contrário a linha inteira fica só dentro da zona da marca e o alinhamento à esquerda pode falhar no host da app.
|
|
3486
|
+
*
|
|
3480
3487
|
* ```html
|
|
3481
3488
|
* <app-sidebar [items]="nav">
|
|
3482
3489
|
* <span appSidebarBrand>Minha aplicação</span>
|