@seniorsistemas/components-ai 2.4.1 → 2.5.0

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.
@@ -0,0 +1,34 @@
1
+ import { ElementRef, Renderer2, AfterViewInit, OnDestroy } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Directive that injects an expand/collapse toggle button into elements
5
+ * with the `.layout-main` class. The button is only visible on screens
6
+ * wider than 1400px (where the max-width constraint is active).
7
+ *
8
+ * When expanded, the element gets `max-width: 100%` removing the 1400px cap.
9
+ * The user preference is persisted in localStorage.
10
+ *
11
+ * Usage:
12
+ * Just import the directive in your standalone component or module.
13
+ * It auto-applies to any element with class `.layout-main`.
14
+ *
15
+ * ```ts
16
+ * imports: [LayoutExpandDirective]
17
+ * ```
18
+ */
19
+ export declare class LayoutExpandDirective implements AfterViewInit, OnDestroy {
20
+ private el;
21
+ private renderer;
22
+ private button;
23
+ private styleEl;
24
+ private expanded;
25
+ constructor(el: ElementRef<HTMLElement>, renderer: Renderer2);
26
+ ngAfterViewInit(): void;
27
+ ngOnDestroy(): void;
28
+ private toggle;
29
+ private applyState;
30
+ private createButton;
31
+ private injectStyles;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutExpandDirective, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LayoutExpandDirective, ".layout-main", never, {}, {}, never, never, true, never>;
34
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seniorsistemas/components-ai",
3
- "version": "2.4.1",
3
+ "version": "2.5.0",
4
4
  "description": "Biblioteca de componentes reutilizáveis com IA para aplicações Angular da Senior Sistemas",
5
5
  "keywords": [
6
6
  "angular",
package/public-api.d.ts CHANGED
@@ -31,6 +31,7 @@ export { DocumentMaskDirective } from './lib/directives/document-mask.directive'
31
31
  export { PhoneMaskDirective } from './lib/directives/phone-mask.directive';
32
32
  export { MoneyMaskDirective } from './lib/directives/money-mask.directive';
33
33
  export { TableLoadingDirective } from './lib/directives/table-loading/table-loading.directive';
34
+ export { LayoutExpandDirective } from './lib/directives/layout-expand/layout-expand.directive';
34
35
  export { TranslatePipe } from './lib/pipes/translate.pipe';
35
36
  export { CpfPipe } from './lib/pipes/cpf.pipe';
36
37
  export { CnpjPipe } from './lib/pipes/cnpj.pipe';