@juau/zuri 0.0.1 → 0.1.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.
@@ -1,6 +1,63 @@
1
1
  import * as i0 from "@angular/core";
2
- import { ElementRef, InjectionToken, OnDestroy, OnInit } from "@angular/core";
2
+ import { ElementRef, InjectionToken, OnDestroy, OnInit, Provider } from "@angular/core";
3
3
  import { ControlValueAccessor } from "@angular/forms";
4
+ /**
5
+ * Textos que os componentes do Zuri mostram ou anunciam para leitores de tela
6
+ * (rótulos de botões, `aria-label` de regiões etc.). O padrão é português;
7
+ * troque com `provideZuriI18n('en')` ou passe só as chaves que quiser mudar.
8
+ */
9
+ export interface ZurI18n {
10
+ /** Botão de fechar (modal, toast, drawer). */
11
+ close: string;
12
+ /** Botão de voltar (lista e detalhe no mobile). */
13
+ back: string;
14
+ /** Botão do topbar que recolhe a sidebar ou abre a gaveta. */
15
+ toggleNav: string;
16
+ /** Região da sidebar. */
17
+ sideNav: string;
18
+ /** Links do topbar. */
19
+ topNav: string;
20
+ /** Links do rodapé. */
21
+ footerNav: string;
22
+ /** Lista de etapas do formulário/wizard. */
23
+ steps: string;
24
+ /** Painel da lista (lista e detalhe). */
25
+ list: string;
26
+ /** Painel do detalhe (lista e detalhe). */
27
+ detail: string;
28
+ /** Região do breadcrumb. */
29
+ breadcrumb: string;
30
+ /** Botão de tema quando o tema atual é escuro. */
31
+ themeToLight: string;
32
+ /** Botão de tema quando o tema atual é claro. */
33
+ themeToDark: string;
34
+ /** Paginação. */
35
+ pagination: string;
36
+ previousPage: string;
37
+ nextPage: string;
38
+ /** Rótulo de cada página, ex.: "Página 3". */
39
+ page: (n: number) => string;
40
+ /** Rótulo padrão da barra de progresso. */
41
+ progress: string;
42
+ /** Contador de caracteres do textarea, ex.: "12 de 200 caracteres". */
43
+ characterCount: (count: number, max: number) => string;
44
+ }
45
+ export declare const ZUR_I18N_PT: ZurI18n;
46
+ export declare const ZUR_I18N_EN: ZurI18n;
47
+ /** Textos usados pelos componentes. Padrão: português. */
48
+ export declare const ZUR_I18N: InjectionToken<ZurI18n>;
49
+ /**
50
+ * Define o idioma dos textos internos dos componentes.
51
+ *
52
+ * ```ts
53
+ * bootstrapApplication(App, { providers: [provideZuriI18n('en')] });
54
+ * // ou só algumas chaves, sobre o português:
55
+ * provideZuriI18n({ close: 'Fechar janela' });
56
+ * // ou sobre o inglês:
57
+ * provideZuriI18n({ ...ZUR_I18N_EN, close: 'Dismiss' });
58
+ * ```
59
+ */
60
+ export declare function provideZuriI18n(config: 'pt' | 'en' | Partial<ZurI18n>): Provider;
4
61
  export type ZurTheme = 'light' | 'dark';
5
62
  /**
6
63
  * Elemento cujo `data-theme` o serviço controla. Fornecido por `zurThemeScope`
@@ -34,9 +91,10 @@ export declare class ZurThemeService {
34
91
  * Mostra a lua no tema claro ("ir para o escuro") e o sol no escuro.
35
92
  */
36
93
  export declare class ZurThemeToggle {
94
+ protected readonly i18n: import("@juau/zuri").ZurI18n;
37
95
  protected readonly themeService: ZurThemeService;
38
96
  protected readonly isDark: import("@angular/core").Signal<boolean>;
39
- protected readonly label: import("@angular/core").Signal<"Ativar tema claro" | "Ativar tema escuro">;
97
+ protected readonly label: import("@angular/core").Signal<string>;
40
98
  static ɵfac: i0.ɵɵFactoryDeclaration<ZurThemeToggle, never>;
41
99
  static ɵcmp: i0.ɵɵComponentDeclaration<ZurThemeToggle, "zur-theme-toggle", never, {}, {}, never, never, true, never>;
42
100
  }
@@ -335,8 +393,9 @@ export declare class ZurRadio implements ControlValueAccessor {
335
393
  };
336
394
  }, {}, never, ["*"], true, never>;
337
395
  }
338
- /** Switch pill 44×24px — ligado = menta. */
339
396
  export declare class ZurSwitch implements ControlValueAccessor {
397
+ /** Liga o texto projetado ao botão como nome acessível. */
398
+ protected readonly labelId: string;
340
399
  readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
341
400
  protected readonly checked: import("@angular/core").WritableSignal<boolean>;
342
401
  protected readonly cvaDisabled: import("@angular/core").WritableSignal<boolean>;
@@ -357,6 +416,75 @@ export declare class ZurSwitch implements ControlValueAccessor {
357
416
  };
358
417
  }, {}, never, ["*"], true, never>;
359
418
  }
419
+ /**
420
+ * Área de texto do Zuri: mesmo visual do `zur-input`, com contador opcional
421
+ * quando `maxlength` é definido. Funciona com `ngModel` e formulários reativos.
422
+ *
423
+ * ```html
424
+ * <zur-textarea label="Mensagem" [maxlength]="200" [(ngModel)]="mensagem" />
425
+ * ```
426
+ */
427
+ export declare class ZurTextarea implements ControlValueAccessor {
428
+ protected readonly i18n: import("@juau/zuri").ZurI18n;
429
+ readonly label: import("@angular/core").InputSignal<string>;
430
+ readonly placeholder: import("@angular/core").InputSignal<string>;
431
+ readonly hint: import("@angular/core").InputSignal<string>;
432
+ readonly error: import("@angular/core").InputSignal<string>;
433
+ readonly rows: import("@angular/core").InputSignalWithTransform<number, unknown>;
434
+ /** Limite de caracteres; quando definido, mostra o contador. */
435
+ readonly maxlength: import("@angular/core").InputSignalWithTransform<number | null, unknown>;
436
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
437
+ protected readonly id: string;
438
+ protected readonly value: import("@angular/core").WritableSignal<string>;
439
+ protected readonly cvaDisabled: import("@angular/core").WritableSignal<boolean>;
440
+ protected onChange: (value: string) => void;
441
+ protected onTouched: () => void;
442
+ protected readonly describedBy: import("@angular/core").Signal<string | null>;
443
+ protected isDisabled(): boolean;
444
+ protected onInput(event: Event): void;
445
+ writeValue(value: string | null): void;
446
+ registerOnChange(fn: (value: string) => void): void;
447
+ registerOnTouched(fn: () => void): void;
448
+ setDisabledState(isDisabled: boolean): void;
449
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZurTextarea, never>;
450
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZurTextarea, "zur-textarea", never, {
451
+ "label": {
452
+ "alias": "label";
453
+ "required": false;
454
+ "isSignal": true;
455
+ };
456
+ "placeholder": {
457
+ "alias": "placeholder";
458
+ "required": false;
459
+ "isSignal": true;
460
+ };
461
+ "hint": {
462
+ "alias": "hint";
463
+ "required": false;
464
+ "isSignal": true;
465
+ };
466
+ "error": {
467
+ "alias": "error";
468
+ "required": false;
469
+ "isSignal": true;
470
+ };
471
+ "rows": {
472
+ "alias": "rows";
473
+ "required": false;
474
+ "isSignal": true;
475
+ };
476
+ "maxlength": {
477
+ "alias": "maxlength";
478
+ "required": false;
479
+ "isSignal": true;
480
+ };
481
+ "disabled": {
482
+ "alias": "disabled";
483
+ "required": false;
484
+ "isSignal": true;
485
+ };
486
+ }, {}, never, never, true, never>;
487
+ }
360
488
  /**
361
489
  * Navbar 80px — canvas com hairline inferior (Airbnb top-nav).
362
490
  * Slots: [zurNavbarLogo], [zurNavbarLinks], [zurNavbarActions].
@@ -422,6 +550,7 @@ export interface ZurBreadcrumbItem {
422
550
  }
423
551
  /** Breadcrumb em caption muted com separador "/". */
424
552
  export declare class ZurBreadcrumb {
553
+ protected readonly i18n: import("@juau/zuri").ZurI18n;
425
554
  readonly items: import("@angular/core").InputSignal<ZurBreadcrumbItem[]>;
426
555
  static ɵfac: i0.ɵɵFactoryDeclaration<ZurBreadcrumb, never>;
427
556
  static ɵcmp: i0.ɵɵComponentDeclaration<ZurBreadcrumb, "zur-breadcrumb", never, {
@@ -479,6 +608,182 @@ export declare class ZurSidenavLabel {
479
608
  static ɵfac: i0.ɵɵFactoryDeclaration<ZurSidenavLabel, never>;
480
609
  static ɵcmp: i0.ɵɵComponentDeclaration<ZurSidenavLabel, "zur-sidenav-label", never, {}, {}, never, ["*"], true, never>;
481
610
  }
611
+ export type ZurTableDensity = 'comfortable' | 'compact';
612
+ export type ZurSortDirection = 'asc' | 'desc';
613
+ export interface ZurSort {
614
+ key: string;
615
+ direction: ZurSortDirection;
616
+ }
617
+ /**
618
+ * Estilo do Zuri para uma `<table>` nativa: cabeçalho em caption, linhas com
619
+ * hairline, hover e densidade. A ordenação fica com você: marque as colunas com
620
+ * `zurSortable` e reaja ao `sortChange`.
621
+ *
622
+ * ```html
623
+ * <table zur-table (sortChange)="ordenar($event)">
624
+ * <thead>
625
+ * <tr><th zurSortable="nome">Nome</th><th>Destino</th></tr>
626
+ * </thead>
627
+ * <tbody>…</tbody>
628
+ * </table>
629
+ * ```
630
+ */
631
+ export declare class ZurTable {
632
+ readonly density: import("@angular/core").InputSignal<ZurTableDensity>;
633
+ /** Emite a coluna e a direção sempre que o usuário ordena. */
634
+ readonly sortChange: import("@angular/core").OutputEmitterRef<ZurSort>;
635
+ readonly sort: import("@angular/core").WritableSignal<ZurSort | null>;
636
+ toggleSort(key: string): void;
637
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZurTable, never>;
638
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZurTable, "table[zur-table]", never, {
639
+ "density": {
640
+ "alias": "density";
641
+ "required": false;
642
+ "isSignal": true;
643
+ };
644
+ }, {
645
+ "sortChange": "sortChange";
646
+ }, never, ["*"], true, never>;
647
+ }
648
+ /** Torna um `<th>` ordenável dentro de `table[zur-table]`. O valor é a chave da coluna. */
649
+ export declare class ZurSortable {
650
+ protected readonly table: ZurTable;
651
+ readonly zurSortable: import("@angular/core").InputSignal<string>;
652
+ protected readonly ariaSort: import("@angular/core").Signal<"none" | "ascending" | "descending">;
653
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZurSortable, never>;
654
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZurSortable, "th[zurSortable]", never, {
655
+ "zurSortable": {
656
+ "alias": "zurSortable";
657
+ "required": true;
658
+ "isSignal": true;
659
+ };
660
+ }, {}, never, ["*"], true, never>;
661
+ }
662
+ type PageItem = number | 'gap';
663
+ /**
664
+ * Paginação: anterior, números (com reticências quando são muitos) e próxima.
665
+ * `page` começa em 1 e é two-way.
666
+ *
667
+ * ```html
668
+ * <zur-pagination [total]="248" [pageSize]="20" [(page)]="pagina" />
669
+ * ```
670
+ */
671
+ export declare class ZurPagination {
672
+ protected readonly i18n: import("@juau/zuri").ZurI18n;
673
+ /** Página atual, começando em 1. */
674
+ readonly page: import("@angular/core").ModelSignal<number>;
675
+ /** Total de itens. */
676
+ readonly total: import("@angular/core").InputSignal<number>;
677
+ readonly pageSize: import("@angular/core").InputSignal<number>;
678
+ /** Quantas páginas mostrar de cada lado da atual. */
679
+ readonly siblings: import("@angular/core").InputSignal<number>;
680
+ readonly pageCount: import("@angular/core").Signal<number>;
681
+ protected readonly items: import("@angular/core").Signal<PageItem[]>;
682
+ protected go(p: number): void;
683
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZurPagination, never>;
684
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZurPagination, "zur-pagination", never, {
685
+ "page": {
686
+ "alias": "page";
687
+ "required": false;
688
+ "isSignal": true;
689
+ };
690
+ "total": {
691
+ "alias": "total";
692
+ "required": true;
693
+ "isSignal": true;
694
+ };
695
+ "pageSize": {
696
+ "alias": "pageSize";
697
+ "required": false;
698
+ "isSignal": true;
699
+ };
700
+ "siblings": {
701
+ "alias": "siblings";
702
+ "required": false;
703
+ "isSignal": true;
704
+ };
705
+ }, {
706
+ "page": "pageChange";
707
+ }, never, never, true, never>;
708
+ }
709
+ /**
710
+ * Seções expansíveis. Por padrão só uma fica aberta por vez; com `multi`, várias.
711
+ * Setas ↑/↓, Home e End movem o foco entre os cabeçalhos.
712
+ *
713
+ * ```html
714
+ * <zur-accordion>
715
+ * <zur-accordion-item title="Como funciona o check-in?">…</zur-accordion-item>
716
+ * <zur-accordion-item title="Posso cancelar?">…</zur-accordion-item>
717
+ * </zur-accordion>
718
+ * ```
719
+ */
720
+ export declare class ZurAccordion {
721
+ private readonly host;
722
+ /** Permite várias seções abertas ao mesmo tempo. */
723
+ readonly multi: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
724
+ private readonly items;
725
+ /** Chamado por um item ao abrir: fecha os outros quando não é `multi`. */
726
+ itemOpened(opened: ZurAccordionItem): void;
727
+ protected onKeydown(event: KeyboardEvent): void;
728
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZurAccordion, never>;
729
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZurAccordion, "zur-accordion", never, {
730
+ "multi": {
731
+ "alias": "multi";
732
+ "required": false;
733
+ "isSignal": true;
734
+ };
735
+ }, {}, ["items"], ["*"], true, never>;
736
+ }
737
+ export declare class ZurAccordionItem {
738
+ private readonly accordion;
739
+ readonly title: import("@angular/core").InputSignal<string>;
740
+ readonly open: import("@angular/core").ModelSignal<boolean>;
741
+ protected readonly id: string;
742
+ toggle(): void;
743
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZurAccordionItem, never>;
744
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZurAccordionItem, "zur-accordion-item", never, {
745
+ "title": {
746
+ "alias": "title";
747
+ "required": true;
748
+ "isSignal": true;
749
+ };
750
+ "open": {
751
+ "alias": "open";
752
+ "required": false;
753
+ "isSignal": true;
754
+ };
755
+ }, {
756
+ "open": "openChange";
757
+ }, never, ["*"], true, never>;
758
+ }
759
+ /**
760
+ * Estado vazio: ícone, título, descrição e ações, centralizados. Use em listas,
761
+ * buscas sem resultado ou telas que ainda não têm conteúdo.
762
+ *
763
+ * ```html
764
+ * <zur-empty-state title="Nenhuma reserva" description="Quando você reservar, ela aparece aqui.">
765
+ * <svg zurEmptyIcon …></svg>
766
+ * <button zur-button>Explorar</button>
767
+ * </zur-empty-state>
768
+ * ```
769
+ */
770
+ export declare class ZurEmptyState {
771
+ readonly title: import("@angular/core").InputSignal<string>;
772
+ readonly description: import("@angular/core").InputSignal<string>;
773
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZurEmptyState, never>;
774
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZurEmptyState, "zur-empty-state", never, {
775
+ "title": {
776
+ "alias": "title";
777
+ "required": true;
778
+ "isSignal": true;
779
+ };
780
+ "description": {
781
+ "alias": "description";
782
+ "required": false;
783
+ "isSignal": true;
784
+ };
785
+ }, {}, never, ["[zurEmptyIcon]", "*"], true, never>;
786
+ }
482
787
  /**
483
788
  * Passo numerado (círculo verde + título) com conteúdo projetado abaixo.
484
789
  *
@@ -553,6 +858,7 @@ export declare const ZUR_LAYOUT_WIDTH_STYLES = "\n :host([data-width='fluid'])
553
858
  * `[zurSidebarFooter]`.
554
859
  */
555
860
  export declare class ZurSidebar implements OnInit {
861
+ protected readonly i18n: import("@juau/zuri").ZurI18n;
556
862
  protected readonly shell: ZurShellState;
557
863
  /** Recolhida só vale fora do mobile (a gaveta sempre abre completa). */
558
864
  protected readonly collapsed: import("@angular/core").Signal<boolean>;
@@ -568,6 +874,7 @@ export declare class ZurSidebar implements OnInit {
568
874
  * Slots: `[zurTopbarStart]` (logo/título), `[zurTopbarLinks]`, `[zurTopbarActions]`.
569
875
  */
570
876
  export declare class ZurTopbar implements OnInit {
877
+ protected readonly i18n: import("@juau/zuri").ZurI18n;
571
878
  private readonly doc;
572
879
  protected readonly shell: ZurShellState | null;
573
880
  /** Esconde ao rolar para baixo e reaparece ao rolar para cima. */
@@ -615,6 +922,7 @@ export declare class ZurPageHeader {
615
922
  }
616
923
  /** Rodapé simples: conteúdo à esquerda (ex.: copyright), `[zurFooterLinks]` à direita. */
617
924
  export declare class ZurFooter {
925
+ protected readonly i18n: import("@juau/zuri").ZurI18n;
618
926
  static ɵfac: i0.ɵɵFactoryDeclaration<ZurFooter, never>;
619
927
  static ɵcmp: i0.ɵɵComponentDeclaration<ZurFooter, "zur-footer", never, {}, {}, never, ["*", "[zurFooterLinks]"], true, never>;
620
928
  }
@@ -680,6 +988,7 @@ export declare class ZurDashboardLayout {
680
988
  * ```
681
989
  */
682
990
  export declare class ZurListDetailLayout {
991
+ protected readonly i18n: import("@juau/zuri").ZurI18n;
683
992
  /** Mobile: `true` mostra o detalhe; `false` mostra a lista. */
684
993
  readonly detailOpen: import("@angular/core").ModelSignal<boolean>;
685
994
  static ɵfac: i0.ɵɵFactoryDeclaration<ZurListDetailLayout, never>;
@@ -708,6 +1017,7 @@ export declare class ZurListDetailLayout {
708
1017
  * ```
709
1018
  */
710
1019
  export declare class ZurFormLayout {
1020
+ protected readonly i18n: import("@juau/zuri").ZurI18n;
711
1021
  readonly width: import("@angular/core").InputSignal<ZurLayoutWidth>;
712
1022
  /** Rótulos das etapas do wizard; vazio = formulário simples. */
713
1023
  readonly steps: import("@angular/core").InputSignal<string[]>;
@@ -813,6 +1123,7 @@ export declare class ZurErrorLayout {
813
1123
  * ```
814
1124
  */
815
1125
  export declare class ZurModal {
1126
+ protected readonly i18n: import("@juau/zuri").ZurI18n;
816
1127
  readonly open: import("@angular/core").ModelSignal<boolean>;
817
1128
  readonly title: import("@angular/core").InputSignal<string>;
818
1129
  close(): void;
@@ -851,6 +1162,7 @@ export declare class ZurToastService {
851
1162
  * ZurToastService. Coloque uma única instância no shell da aplicação.
852
1163
  */
853
1164
  export declare class ZurToastContainer {
1165
+ protected readonly i18n: import("@juau/zuri").ZurI18n;
854
1166
  protected readonly service: ZurToastService;
855
1167
  static ɵfac: i0.ɵɵFactoryDeclaration<ZurToastContainer, never>;
856
1168
  static ɵcmp: i0.ɵɵComponentDeclaration<ZurToastContainer, "zur-toast-container", never, {}, {}, never, never, true, never>;
@@ -929,4 +1241,151 @@ export declare class ZurSkeleton {
929
1241
  "isSignal": true;
930
1242
  };
931
1243
  }, {}, never, never, true, never>;
932
- }
1244
+ }
1245
+ export type ZurProgressSize = 'sm' | 'md';
1246
+ /**
1247
+ * Barra de progresso linear. Com `value` (0 a `max`) é determinada; sem `value`
1248
+ * (ou `null`), fica indeterminada, com animação contínua.
1249
+ *
1250
+ * ```html
1251
+ * <zur-progress [value]="60" label="Enviando arquivo" />
1252
+ * <zur-progress /> <!-- indeterminada -->
1253
+ * ```
1254
+ */
1255
+ export declare class ZurProgress {
1256
+ protected readonly i18n: import("@juau/zuri").ZurI18n;
1257
+ /** Valor atual (0 a `max`). `null` = indeterminada. */
1258
+ readonly value: import("@angular/core").InputSignal<number | null>;
1259
+ readonly max: import("@angular/core").InputSignal<number>;
1260
+ readonly size: import("@angular/core").InputSignal<ZurProgressSize>;
1261
+ /** Rótulo para leitores de tela. Padrão: "Progresso". */
1262
+ readonly label: import("@angular/core").InputSignal<string>;
1263
+ protected readonly indeterminate: import("@angular/core").Signal<boolean>;
1264
+ protected readonly clamped: import("@angular/core").Signal<number>;
1265
+ protected readonly percent: import("@angular/core").Signal<number>;
1266
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZurProgress, never>;
1267
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZurProgress, "zur-progress", never, {
1268
+ "value": {
1269
+ "alias": "value";
1270
+ "required": false;
1271
+ "isSignal": true;
1272
+ };
1273
+ "max": {
1274
+ "alias": "max";
1275
+ "required": false;
1276
+ "isSignal": true;
1277
+ };
1278
+ "size": {
1279
+ "alias": "size";
1280
+ "required": false;
1281
+ "isSignal": true;
1282
+ };
1283
+ "label": {
1284
+ "alias": "label";
1285
+ "required": false;
1286
+ "isSignal": true;
1287
+ };
1288
+ }, {}, never, never, true, never>;
1289
+ }
1290
+ export type ZurDrawerSide = 'left' | 'right';
1291
+ /**
1292
+ * Painel lateral deslizante (gaveta) sobre a página, para filtros, detalhes ou
1293
+ * formulários curtos. Fecha com ESC, clique no fundo ou no botão de fechar; o foco
1294
+ * fica preso dentro dele enquanto aberto e volta para quem o abriu ao fechar.
1295
+ *
1296
+ * ```html
1297
+ * <button zur-button (click)="filtros = true">Filtros</button>
1298
+ * <zur-drawer [(open)]="filtros" title="Filtros">…</zur-drawer>
1299
+ * ```
1300
+ */
1301
+ export declare class ZurDrawer {
1302
+ protected readonly i18n: import("@juau/zuri").ZurI18n;
1303
+ private readonly doc;
1304
+ readonly open: import("@angular/core").ModelSignal<boolean>;
1305
+ readonly title: import("@angular/core").InputSignal<string>;
1306
+ readonly side: import("@angular/core").InputSignal<ZurDrawerSide>;
1307
+ private readonly panel;
1308
+ private returnFocusTo;
1309
+ constructor();
1310
+ close(): void;
1311
+ /** Mantém o Tab circulando dentro do painel. */
1312
+ protected trapFocus(event: KeyboardEvent): void;
1313
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZurDrawer, never>;
1314
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZurDrawer, "zur-drawer", never, {
1315
+ "open": {
1316
+ "alias": "open";
1317
+ "required": false;
1318
+ "isSignal": true;
1319
+ };
1320
+ "title": {
1321
+ "alias": "title";
1322
+ "required": false;
1323
+ "isSignal": true;
1324
+ };
1325
+ "side": {
1326
+ "alias": "side";
1327
+ "required": false;
1328
+ "isSignal": true;
1329
+ };
1330
+ }, {
1331
+ "open": "openChange";
1332
+ }, never, ["*", "[zurDrawerActions]"], true, never>;
1333
+ }
1334
+ export type ZurPopoverPlacement = 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
1335
+ /**
1336
+ * Conteúdo flutuante ancorado a um gatilho (filtros, detalhes, ações). Abre no
1337
+ * clique do elemento marcado com `zurPopoverTrigger`, fecha com ESC ou clique fora,
1338
+ * e devolve o foco ao gatilho.
1339
+ *
1340
+ * ```html
1341
+ * <zur-popover label="Filtros">
1342
+ * <button zur-button variant="secondary" zurPopoverTrigger>Filtros</button>
1343
+ * …conteúdo…
1344
+ * </zur-popover>
1345
+ * ```
1346
+ */
1347
+ export declare class ZurPopover {
1348
+ private readonly host;
1349
+ private readonly doc;
1350
+ readonly open: import("@angular/core").ModelSignal<boolean>;
1351
+ readonly placement: import("@angular/core").InputSignal<ZurPopoverPlacement>;
1352
+ /** Nome do painel para leitores de tela. */
1353
+ readonly label: import("@angular/core").InputSignal<string>;
1354
+ readonly panelId: string;
1355
+ private readonly panel;
1356
+ /** Preenchido pela diretiva do gatilho. */
1357
+ trigger: HTMLElement | null;
1358
+ constructor();
1359
+ toggle(): void;
1360
+ /** Fecha; com `returnFocus`, devolve o foco ao gatilho (ex.: ao apertar ESC). */
1361
+ close(returnFocus?: boolean): void;
1362
+ protected onDocumentClick(event: MouseEvent): void;
1363
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZurPopover, never>;
1364
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZurPopover, "zur-popover", never, {
1365
+ "open": {
1366
+ "alias": "open";
1367
+ "required": false;
1368
+ "isSignal": true;
1369
+ };
1370
+ "placement": {
1371
+ "alias": "placement";
1372
+ "required": false;
1373
+ "isSignal": true;
1374
+ };
1375
+ "label": {
1376
+ "alias": "label";
1377
+ "required": false;
1378
+ "isSignal": true;
1379
+ };
1380
+ }, {
1381
+ "open": "openChange";
1382
+ }, never, ["[zurPopoverTrigger]", "*"], true, never>;
1383
+ }
1384
+ /** Marca o elemento que abre o `zur-popover` e liga os atributos ARIA a ele. */
1385
+ export declare class ZurPopoverTrigger {
1386
+ protected readonly popover: any;
1387
+ constructor();
1388
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZurPopoverTrigger, never>;
1389
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ZurPopoverTrigger, "[zurPopoverTrigger]", never, {}, {}, never, never, true, never>;
1390
+ }
1391
+ export {};