@po-ui/ng-components 19.22.0 → 19.24.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.
Files changed (41) hide show
  1. package/fesm2022/po-ui-ng-components.mjs +1024 -286
  2. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  3. package/lib/components/components.module.d.ts +14 -13
  4. package/lib/components/index.d.ts +1 -0
  5. package/lib/components/po-button/enums/po-button-kind.enum.d.ts +2 -2
  6. package/lib/components/po-context-tabs/index.d.ts +3 -0
  7. package/lib/components/po-context-tabs/po-context-tab-button/po-context-tab-button.component.d.ts +26 -0
  8. package/lib/components/po-context-tabs/po-context-tabs.component.d.ts +81 -0
  9. package/lib/components/po-context-tabs/po-context-tabs.module.d.ts +16 -0
  10. package/lib/components/po-popup/po-popup-action.interface.d.ts +2 -1
  11. package/lib/components/po-tabs/index.d.ts +2 -0
  12. package/lib/components/po-tabs/po-tab/po-tab-base.component.d.ts +28 -2
  13. package/lib/components/po-tabs/po-tab/po-tab.component.d.ts +3 -1
  14. package/lib/components/po-tabs/po-tab/po-tab.interface.d.ts +23 -0
  15. package/lib/components/po-tabs/po-tab-button/po-tab-button.component.d.ts +2 -2
  16. package/lib/components/po-tabs/po-tabs-base.component.d.ts +1 -16
  17. package/lib/components/po-tabs/po-tabs.component.d.ts +25 -4
  18. package/lib/components/po-tabs/po-tabs.module.d.ts +1 -1
  19. package/lib/components/po-tabs/po-tabs.service.d.ts +2 -2
  20. package/lib/components/po-tag/po-tag-base.component.d.ts +3 -1
  21. package/lib/components/po-widget/index.d.ts +1 -0
  22. package/lib/components/po-widget/literals/po-widget-language.d.ts +7 -0
  23. package/lib/components/po-widget/literals/po-widget-literals.d.ts +22 -0
  24. package/lib/components/po-widget/po-widget-base.component.d.ts +185 -37
  25. package/lib/components/po-widget/po-widget.component.d.ts +29 -7
  26. package/lib/components/po-widget/po-widget.module.d.ts +5 -1
  27. package/package.json +4 -4
  28. package/po-ui-ng-components-19.24.0.tgz +0 -0
  29. package/schematics/ng-add/index.js +1 -1
  30. package/schematics/ng-update/v14/index.js +1 -1
  31. package/schematics/ng-update/v15/index.js +1 -1
  32. package/schematics/ng-update/v16/index.js +1 -1
  33. package/schematics/ng-update/v17/index.js +1 -1
  34. package/schematics/ng-update/v18/index.js +2 -2
  35. package/schematics/ng-update/v19/index.js +2 -2
  36. package/schematics/ng-update/v2/index.js +1 -1
  37. package/schematics/ng-update/v3/index.js +1 -1
  38. package/schematics/ng-update/v4/index.js +1 -1
  39. package/schematics/ng-update/v5/index.js +1 -1
  40. package/schematics/ng-update/v6/index.js +1 -1
  41. package/po-ui-ng-components-19.22.0.tgz +0 -0
@@ -34,20 +34,21 @@ import * as i32 from "./po-slide/po-slide.module";
34
34
  import * as i33 from "./po-stepper/po-stepper.module";
35
35
  import * as i34 from "./po-table/po-table.module";
36
36
  import * as i35 from "./po-tabs/po-tabs.module";
37
- import * as i36 from "./po-tag/po-tag.module";
38
- import * as i37 from "./po-toolbar/po-toolbar.module";
39
- import * as i38 from "./po-tree-view/po-tree-view.module";
40
- import * as i39 from "./po-widget/po-widget.module";
41
- import * as i40 from "./po-link/po-link.module";
42
- import * as i41 from "./po-label/po-label.module";
43
- import * as i42 from "./po-image/po-image.module";
44
- import * as i43 from "./po-page/po-page-slide/po-page-slide.module";
45
- import * as i44 from "./po-field/po-switch/po-switch.module";
46
- import * as i45 from "./po-search/po-search.module";
47
- import * as i46 from "./po-badge/po-badge.module";
48
- import * as i47 from "./po-toaster/po-toaster.module";
37
+ import * as i36 from "./po-context-tabs/po-context-tabs.module";
38
+ import * as i37 from "./po-tag/po-tag.module";
39
+ import * as i38 from "./po-toolbar/po-toolbar.module";
40
+ import * as i39 from "./po-tree-view/po-tree-view.module";
41
+ import * as i40 from "./po-widget/po-widget.module";
42
+ import * as i41 from "./po-link/po-link.module";
43
+ import * as i42 from "./po-label/po-label.module";
44
+ import * as i43 from "./po-image/po-image.module";
45
+ import * as i44 from "./po-page/po-page-slide/po-page-slide.module";
46
+ import * as i45 from "./po-field/po-switch/po-switch.module";
47
+ import * as i46 from "./po-search/po-search.module";
48
+ import * as i47 from "./po-badge/po-badge.module";
49
+ import * as i48 from "./po-toaster/po-toaster.module";
49
50
  export declare class PoComponentsModule {
50
51
  static ɵfac: i0.ɵɵFactoryDeclaration<PoComponentsModule, never>;
51
- static ɵmod: i0.ɵɵNgModuleDeclaration<PoComponentsModule, never, [typeof i1.PoAccordionModule, typeof i2.PoAvatarModule, typeof i3.PoBreadcrumbModule, typeof i4.PoButtonModule, typeof i5.PoButtonGroupModule, typeof i6.PoCalendarModule, typeof i7.PoChartModule, typeof i8.PoContainerModule, typeof i9.PoDisclaimerGroupModule, typeof i10.PoDisclaimerModule, typeof i11.PoDividerModule, typeof i12.PoDropdownModule, typeof i13.PoDynamicModule, typeof i14.PoFieldModule, typeof i15.PoGaugeModule, typeof i16.PoGridModule, typeof i17.PoIconModule, typeof i18.PoInfoModule, typeof i19.PoListViewModule, typeof i20.PoListBoxModule, typeof i21.PoLoadingModule, typeof i22.PoLogoModule, typeof i23.PoMenuModule, typeof i24.PoMenuPanelModule, typeof i25.PoModalModule, typeof i26.PoNavbarModule, typeof i27.PoOverlayModule, typeof i28.PoPageModule, typeof i29.PoPopoverModule, typeof i30.PoPopupModule, typeof i31.PoProgressModule, typeof i32.PoSlideModule, typeof i33.PoStepperModule, typeof i34.PoTableModule, typeof i35.PoTabsModule, typeof i36.PoTagModule, typeof i37.PoToolbarModule, typeof i38.PoTreeViewModule, typeof i39.PoWidgetModule, typeof i40.PoLinkModule, typeof i41.PoLabelModule, typeof i42.PoImageModule, typeof i43.PoPageSlideModule, typeof i44.PoSwitchModule, typeof i45.PoSearchModule, typeof i46.PoBadgeModule, typeof i47.PoToasterModule], [typeof i1.PoAccordionModule, typeof i2.PoAvatarModule, typeof i3.PoBreadcrumbModule, typeof i4.PoButtonModule, typeof i5.PoButtonGroupModule, typeof i6.PoCalendarModule, typeof i7.PoChartModule, typeof i8.PoContainerModule, typeof i9.PoDisclaimerGroupModule, typeof i10.PoDisclaimerModule, typeof i11.PoDividerModule, typeof i12.PoDropdownModule, typeof i13.PoDynamicModule, typeof i14.PoFieldModule, typeof i15.PoGaugeModule, typeof i16.PoGridModule, typeof i17.PoIconModule, typeof i18.PoInfoModule, typeof i19.PoListViewModule, typeof i20.PoListBoxModule, typeof i21.PoLoadingModule, typeof i22.PoLogoModule, typeof i23.PoMenuModule, typeof i24.PoMenuPanelModule, typeof i25.PoModalModule, typeof i26.PoNavbarModule, typeof i27.PoOverlayModule, typeof i28.PoPageModule, typeof i29.PoPopoverModule, typeof i30.PoPopupModule, typeof i31.PoProgressModule, typeof i32.PoSlideModule, typeof i33.PoStepperModule, typeof i34.PoTableModule, typeof i35.PoTabsModule, typeof i36.PoTagModule, typeof i37.PoToolbarModule, typeof i38.PoTreeViewModule, typeof i39.PoWidgetModule, typeof i40.PoLinkModule, typeof i41.PoLabelModule, typeof i42.PoImageModule, typeof i43.PoPageSlideModule, typeof i44.PoSwitchModule, typeof i45.PoSearchModule, typeof i46.PoBadgeModule, typeof i47.PoToasterModule]>;
52
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PoComponentsModule, never, [typeof i1.PoAccordionModule, typeof i2.PoAvatarModule, typeof i3.PoBreadcrumbModule, typeof i4.PoButtonModule, typeof i5.PoButtonGroupModule, typeof i6.PoCalendarModule, typeof i7.PoChartModule, typeof i8.PoContainerModule, typeof i9.PoDisclaimerGroupModule, typeof i10.PoDisclaimerModule, typeof i11.PoDividerModule, typeof i12.PoDropdownModule, typeof i13.PoDynamicModule, typeof i14.PoFieldModule, typeof i15.PoGaugeModule, typeof i16.PoGridModule, typeof i17.PoIconModule, typeof i18.PoInfoModule, typeof i19.PoListViewModule, typeof i20.PoListBoxModule, typeof i21.PoLoadingModule, typeof i22.PoLogoModule, typeof i23.PoMenuModule, typeof i24.PoMenuPanelModule, typeof i25.PoModalModule, typeof i26.PoNavbarModule, typeof i27.PoOverlayModule, typeof i28.PoPageModule, typeof i29.PoPopoverModule, typeof i30.PoPopupModule, typeof i31.PoProgressModule, typeof i32.PoSlideModule, typeof i33.PoStepperModule, typeof i34.PoTableModule, typeof i35.PoTabsModule, typeof i36.PoContextTabsModule, typeof i37.PoTagModule, typeof i38.PoToolbarModule, typeof i39.PoTreeViewModule, typeof i40.PoWidgetModule, typeof i41.PoLinkModule, typeof i42.PoLabelModule, typeof i43.PoImageModule, typeof i44.PoPageSlideModule, typeof i45.PoSwitchModule, typeof i46.PoSearchModule, typeof i47.PoBadgeModule, typeof i48.PoToasterModule], [typeof i1.PoAccordionModule, typeof i2.PoAvatarModule, typeof i3.PoBreadcrumbModule, typeof i4.PoButtonModule, typeof i5.PoButtonGroupModule, typeof i6.PoCalendarModule, typeof i7.PoChartModule, typeof i8.PoContainerModule, typeof i9.PoDisclaimerGroupModule, typeof i10.PoDisclaimerModule, typeof i11.PoDividerModule, typeof i12.PoDropdownModule, typeof i13.PoDynamicModule, typeof i14.PoFieldModule, typeof i15.PoGaugeModule, typeof i16.PoGridModule, typeof i17.PoIconModule, typeof i18.PoInfoModule, typeof i19.PoListViewModule, typeof i20.PoListBoxModule, typeof i21.PoLoadingModule, typeof i22.PoLogoModule, typeof i23.PoMenuModule, typeof i24.PoMenuPanelModule, typeof i25.PoModalModule, typeof i26.PoNavbarModule, typeof i27.PoOverlayModule, typeof i28.PoPageModule, typeof i29.PoPopoverModule, typeof i30.PoPopupModule, typeof i31.PoProgressModule, typeof i32.PoSlideModule, typeof i33.PoStepperModule, typeof i34.PoTableModule, typeof i36.PoContextTabsModule, typeof i35.PoTabsModule, typeof i37.PoTagModule, typeof i38.PoToolbarModule, typeof i39.PoTreeViewModule, typeof i40.PoWidgetModule, typeof i41.PoLinkModule, typeof i42.PoLabelModule, typeof i43.PoImageModule, typeof i44.PoPageSlideModule, typeof i45.PoSwitchModule, typeof i46.PoSearchModule, typeof i47.PoBadgeModule, typeof i48.PoToasterModule]>;
52
53
  static ɵinj: i0.ɵɵInjectorDeclaration<PoComponentsModule>;
53
54
  }
@@ -38,6 +38,7 @@ export * from './po-progress/index';
38
38
  export * from './po-slide/index';
39
39
  export * from './po-stepper/index';
40
40
  export * from './po-table/index';
41
+ export * from './po-context-tabs/index';
41
42
  export * from './po-tabs/index';
42
43
  export * from './po-tag/index';
43
44
  export * from './po-toolbar/index';
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @usedBy PoButtonComponent
2
+ * @usedBy PoButtonComponent, PoWidgetComponent
3
3
  *
4
4
  * @description
5
5
  *
6
- * Estilos (`p-kind`) disponíveis do componente.
6
+ * Estilos disponíveis do button.
7
7
  */
8
8
  export declare enum PoButtonKind {
9
9
  /** Estilo primário, usado para ações principais que requerem maior destaque. */
@@ -0,0 +1,3 @@
1
+ export * from './po-context-tab-button/po-context-tab-button.component';
2
+ export * from './po-context-tabs.component';
3
+ export * from './po-context-tabs.module';
@@ -0,0 +1,26 @@
1
+ import { AfterViewInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { PoTabButtonComponent } from '../../po-tabs/po-tab-button/po-tab-button.component';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * @docsPrivate
6
+ *
7
+ * @description
8
+ *
9
+ * Componente responsável por manipular os botões de aba.
10
+ */
11
+ export declare class PoContextTabButtonComponent extends PoTabButtonComponent implements OnChanges, AfterViewInit {
12
+ hideClose: boolean;
13
+ showTooltip: boolean;
14
+ literals: any;
15
+ close: EventEmitter<any>;
16
+ changeVisible: EventEmitter<any>;
17
+ activeCloseIcon: boolean;
18
+ afterViewChecked: boolean;
19
+ ngAfterViewInit(): void;
20
+ ngOnChanges(changes: SimpleChanges): void;
21
+ closeTab(event: any): void;
22
+ onFocusIn(): void;
23
+ onFocusOut(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<PoContextTabButtonComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<PoContextTabButtonComponent, "po-context-tab-button", never, { "hideClose": { "alias": "p-hide-close"; "required": false; }; "showTooltip": { "alias": "p-show-tooltip"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; }, { "close": "p-close"; "changeVisible": "p-change-visible"; }, never, never, false, never>;
26
+ }
@@ -0,0 +1,81 @@
1
+ import { PoTabComponent, PoTabsComponent } from '../po-tabs';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * @docsExtends PoTabsBaseComponent
5
+ *
6
+ * @description
7
+ *
8
+ * O componente `po-context-tabs` é responsável por agrupar [abas](/documentation/po-tab) dispostas numa linha horizontal,
9
+ * ideal para facilitar a organização de conteúdos.
10
+ *
11
+ * O componente exibirá as abas enquanto houver espaço na tela, caso a aba ultrapasse o limite da tela a mesma será agrupada em um dropdown.
12
+ *
13
+ * > As abas que estiverem agrupadas serão dispostas numa cascata suspensa que será exibida ao clicar no botão.
14
+ *
15
+ * É possível realizar a navegação entre as abas através da tecla SETAS(direita e esquerda) do teclado.
16
+ * Caso uma aba estiver desabilitada, não receberá foco de navegação.
17
+ *
18
+ * #### Boas práticas
19
+ *
20
+ * - Evite utilizar um `po-context-tabs` dentro de outro `po-context-tabs`;
21
+ * - Evite utilizar uma quantidade excessiva de abas, pois irá gerar um *scroll* muito longo no `dropdown`;
22
+ * - Evite `labels` extensos para as `tabs` pois podem quebrar seu *layout*, use `labels` diretas, curtas e intuitivas.
23
+ *
24
+ *
25
+ * @example
26
+ *
27
+ * <example name="po-context-tabs-basic" title="PO Context Tabs Basic">
28
+ * <file name="sample-po-context-tabs-basic/sample-po-context-tabs-basic.component.html"> </file>
29
+ * <file name="sample-po-context-tabs-basic/sample-po-context-tabs-basic.component.ts"> </file>
30
+ * </example>
31
+ *
32
+ * <example name="po-context-tabs-labs" title="PO Context Tabs Labs">
33
+ * <file name="sample-po-context-tabs-labs/sample-po-context-tabs-labs.component.html"> </file>
34
+ * <file name="sample-po-context-tabs-labs/sample-po-context-tabs-labs.component.ts"> </file>
35
+ * </example>
36
+ *
37
+ * <example name="po-context-tabs-travel" title="PO Context Tabs - Travel">
38
+ * <file name="sample-po-context-tabs-travel/sample-po-context-tabs-travel.component.html"> </file>
39
+ * <file name="sample-po-context-tabs-travel/sample-po-context-tabs-travel.component.ts"> </file>
40
+ * </example>
41
+ *
42
+ * <example name="po-context-tabs-business-conf" title="PO Context Tabs - Business Conference">
43
+ * <file name="sample-po-context-tabs-business-conf/sample-po-context-tabs-business-conf.component.html"> </file>
44
+ * <file name="sample-po-context-tabs-business-conf/sample-po-context-tabs-business-conf.component.ts"> </file>
45
+ * </example>
46
+ */
47
+ export declare class PoContextTabsComponent extends PoTabsComponent {
48
+ byQuantityFunction: number;
49
+ initialTabsWidth: any[];
50
+ private sumOfWidth;
51
+ get isShowTabDropdown(): boolean;
52
+ get overflowedTabs(): any;
53
+ get tabs(): any;
54
+ closeTab(tab: PoTabComponent): void;
55
+ onChangeVisibilityTab(tab: PoTabComponent): void;
56
+ private afterRemoveTab;
57
+ calculateTabs(initializeCalculation?: boolean): void;
58
+ updateTabsState(initialState?: boolean, tabs?: PoTabComponent): void;
59
+ private checkChangesTabs;
60
+ onTabActiveByDropdown(tab: PoTabComponent, eventEmitter?: boolean): void;
61
+ /**
62
+ * Função que atribui o número de tabs fora do dropdown.
63
+ *
64
+ * Para utilizá-la é necessário ter a instância do componente no DOM, podendo ser utilizado o ViewChild da seguinte forma:
65
+ *
66
+ * ```
67
+ * import { PoContextTabsComponent } from '@po-ui/ng-components';
68
+ *
69
+ * ...
70
+ *
71
+ * @ViewChild('poContextTabs', { static: true }) poContextTabs: PoContextTabsComponent;
72
+ *
73
+ * changeQuantityTabs() {
74
+ * this.poContextTabs.setQuantityTabsButton(1); //Número de context-tabs
75
+ * }
76
+ * ```
77
+ */
78
+ setQuantityTabsButton(number: number): void;
79
+ static ɵfac: i0.ɵɵFactoryDeclaration<PoContextTabsComponent, never>;
80
+ static ɵcmp: i0.ɵɵComponentDeclaration<PoContextTabsComponent, "po-context-tabs", never, {}, {}, never, ["*"], false, never>;
81
+ }
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./po-context-tabs.component";
3
+ import * as i2 from "./po-context-tab-button/po-context-tab-button.component";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "../po-icon/po-icon.module";
6
+ import * as i5 from "../../directives/po-tooltip/po-tooltip.module";
7
+ import * as i6 from "../po-tabs/po-tabs.module";
8
+ /**
9
+ * @description
10
+ * Módulo do componente po-context-tabs
11
+ */
12
+ export declare class PoContextTabsModule {
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<PoContextTabsModule, never>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PoContextTabsModule, [typeof i1.PoContextTabsComponent, typeof i2.PoContextTabButtonComponent], [typeof i3.CommonModule, typeof i4.PoIconModule, typeof i5.PoTooltipModule, typeof i6.PoTabsModule], [typeof i1.PoContextTabsComponent]>;
15
+ static ɵinj: i0.ɵɵInjectorDeclaration<PoContextTabsModule>;
16
+ }
@@ -1,6 +1,6 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  /**
3
- * @usedBy PoPopupComponent
3
+ * @usedBy PoPopupComponent, PoWidgetComponent
4
4
  *
5
5
  * @description
6
6
  *
@@ -95,4 +95,5 @@ export interface PoPopupAction {
95
95
  *
96
96
  */
97
97
  visible?: boolean | Function;
98
+ $id?: string;
98
99
  }
@@ -2,4 +2,6 @@ export * from './po-tab/po-tab.component';
2
2
  export * from './po-tab/po-tab.interface';
3
3
  export * from './po-tabs.component';
4
4
  export * from './po-tabs.service';
5
+ export * from './po-tab-button/po-tab-button.component';
6
+ export * from './po-tab-dropdown/po-tab-dropdown.component';
5
7
  export * from './po-tabs.module';
@@ -8,13 +8,36 @@ import * as i0 from "@angular/core";
8
8
  * Com este componente é possível atribuir um rótulo para auxiliar na identificação do conteúdo, ativar para que o mesmo seja exibido,
9
9
  * desabilitar para impossibilitar o acesso, bem como ocultar para indisponibilizar a aba.
10
10
  *
11
- * > Para controlar a navegação entre diversas abas, utilizar o componente [`po-tabs`](/documentation/po-tabs).
11
+ * > Para controlar a navegação entre diversas abas, utilizar o componente [`po-tabs`](/documentation/po-tabs) ou [`po-context-tabs`](/documentation/po-context-tabs).
12
12
  */
13
13
  export declare abstract class PoTabBaseComponent {
14
14
  /** Rótulo da aba. */
15
15
  label: string;
16
+ /**
17
+ * @optional
18
+ *
19
+ * @description
20
+ *
21
+ * Esconde o botão de fechar a aba.
22
+ *
23
+ * > Atenção: Propriedade disponível somente no `po-context-tabs`.
24
+ *
25
+ * @default `false`
26
+ */
27
+ hideClose: boolean;
16
28
  /** Método disparado ao clicar na aba. */
17
29
  click: EventEmitter<any>;
30
+ /**
31
+ * @optional
32
+ *
33
+ * @description
34
+ *
35
+ * Evento disparado ao clicar no botão de fechar a aba.
36
+ *
37
+ * > Atenção: Propriedade disponível somente no `po-context-tabs`.
38
+ *
39
+ */
40
+ closeTab: EventEmitter<any>;
18
41
  id?: string;
19
42
  private _active?;
20
43
  private _disabled?;
@@ -51,11 +74,14 @@ export declare abstract class PoTabBaseComponent {
51
74
  *
52
75
  * Oculta a aba.
53
76
  *
77
+ * > Atenção: Para correto funcionamento do componente, indicamos essa propriedade para esconder e exibir e não *ngIf.
78
+ *
54
79
  * @default `false`
55
80
  */
56
81
  set hide(hide: boolean);
57
82
  get hide(): boolean;
58
83
  protected abstract setDisplayOnActive(): any;
59
84
  static ɵfac: i0.ɵɵFactoryDeclaration<PoTabBaseComponent, never>;
60
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoTabBaseComponent, never, never, { "label": { "alias": "p-label"; "required": false; }; "active": { "alias": "p-active"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "hide": { "alias": "p-hide"; "required": false; }; }, { "click": "p-click"; }, never, never, true, never>;
85
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoTabBaseComponent, never, never, { "label": { "alias": "p-label"; "required": false; }; "hideClose": { "alias": "p-hide-close"; "required": false; }; "active": { "alias": "p-active"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "hide": { "alias": "p-hide"; "required": false; }; }, { "click": "p-click"; "closeTab": "p-close-tab"; }, never, never, true, never>;
86
+ static ngAcceptInputType_hideClose: any;
61
87
  }
@@ -6,8 +6,10 @@ import * as i0 from "@angular/core";
6
6
  * @docsExtends PoTabBaseComponent
7
7
  */
8
8
  export declare class PoTabComponent extends PoTabBaseComponent implements AfterContentInit, OnChanges {
9
- private elementRef;
9
+ elementRef: ElementRef;
10
10
  private tabsService;
11
+ removed: boolean;
12
+ showTooltip: boolean;
11
13
  constructor(elementRef: ElementRef, tabsService: PoTabsService);
12
14
  ngAfterContentInit(): void;
13
15
  ngOnChanges(changes: SimpleChanges): void;
@@ -24,6 +24,17 @@ export interface PoTab {
24
24
  * Método disparado ao clicar na aba.
25
25
  */
26
26
  click?: Function;
27
+ /**
28
+ * @optional
29
+ *
30
+ * @description
31
+ *
32
+ * Método disparado ao clicar no botão de fechar a aba.
33
+ *
34
+ * > Atenção: Propriedade disponível somente no `po-context-tabs`.
35
+ *
36
+ */
37
+ closeTab?: Function;
27
38
  /**
28
39
  * @optional
29
40
  *
@@ -40,6 +51,18 @@ export interface PoTab {
40
51
  * Oculta a aba.
41
52
  */
42
53
  hide?: boolean;
54
+ /**
55
+ * @optional
56
+ *
57
+ * @description
58
+ *
59
+ * Esconde o botão de fechar a aba.
60
+ *
61
+ * > Atenção: Propriedade disponível somente no `po-context-tabs`.
62
+ *
63
+ * @default `false`
64
+ */
65
+ hideClose?: boolean;
43
66
  /** Rótulo da aba. */
44
67
  label: string;
45
68
  }
@@ -8,8 +8,8 @@ import * as i0 from "@angular/core";
8
8
  * Componente responsável por manipular os botões de aba.
9
9
  */
10
10
  export declare class PoTabButtonComponent implements OnChanges, AfterViewInit {
11
+ changeDetector: ChangeDetectorRef;
11
12
  private elementRef;
12
- private changeDetector;
13
13
  tabButtom: ElementRef;
14
14
  disabled: boolean;
15
15
  id: string;
@@ -24,7 +24,7 @@ export declare class PoTabButtonComponent implements OnChanges, AfterViewInit {
24
24
  get active(): boolean;
25
25
  set hide(value: boolean);
26
26
  get hide(): boolean;
27
- constructor(elementRef: ElementRef, changeDetector: ChangeDetectorRef);
27
+ constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef);
28
28
  ngAfterViewInit(): void;
29
29
  ngOnChanges(changes: SimpleChanges): void;
30
30
  onClick(): void;
@@ -3,22 +3,6 @@ import * as i0 from "@angular/core";
3
3
  /**
4
4
  * @description
5
5
  *
6
- * O componente `po-tabs` é responsável por agrupar [abas](/documentation/po-tab) dispostas numa linha horizontal,
7
- * ideal para facilitar a organização de conteúdos.
8
- *
9
- * O componente exibirá as abas enquanto houver espaço na tela, caso a aba ultrapasse o limite da tela a mesma será agrupada em um dropdown.
10
- *
11
- * > As abas que estiverem agrupadas serão dispostas numa cascata suspensa que será exibida ao clicar no botão.
12
- *
13
- * É possível realizar a navegação entre as abas através da tecla SETAS(direita e esquerda) do teclado.
14
- * Caso uma aba estiver desabilitada, não receberá foco de navegação.
15
- *
16
- * #### Boas práticas
17
- *
18
- * - Evite utilizar um `po-tabs` dentro de outro `po-tabs`;
19
- * - Evite utilizar uma quantidade excessiva de abas, pois irá gerar um *scroll* muito longo no `dropdown`;
20
- * - Evite `labels` extensos para as `tabs` pois podem quebrar seu *layout*, use `labels` diretas, curtas e intuitivas.
21
- *
22
6
  * #### Tokens customizáveis
23
7
  *
24
8
  * É possível alterar o estilo do componente usando os seguintes tokens (CSS):
@@ -52,6 +36,7 @@ import * as i0 from "@angular/core";
52
36
  * | **Selected** | | |
53
37
  * | `--background-item-selected` | Cor de background do item selecionado | `var(--color-brand-01-lightest)` |
54
38
  *
39
+ * <br>
55
40
  */
56
41
  export declare class PoTabsBaseComponent {
57
42
  protected poThemeService: PoThemeService;
@@ -10,6 +10,25 @@ export declare const poTabsLiterals: object;
10
10
  /**
11
11
  * @docsExtends PoTabsBaseComponent
12
12
  *
13
+ * @description
14
+ *
15
+ * O componente `po-tabs` é responsável por agrupar [abas](/documentation/po-tab) dispostas numa linha horizontal,
16
+ * ideal para facilitar a organização de conteúdos.
17
+ *
18
+ * O componente exibirá as abas enquanto houver espaço na tela, caso a aba ultrapasse o limite da tela a mesma será agrupada em um dropdown.
19
+ *
20
+ * > As abas que estiverem agrupadas serão dispostas numa cascata suspensa que será exibida ao clicar no botão.
21
+ *
22
+ * É possível realizar a navegação entre as abas através da tecla SETAS(direita e esquerda) do teclado.
23
+ * Caso uma aba estiver desabilitada, não receberá foco de navegação.
24
+ *
25
+ * #### Boas práticas
26
+ *
27
+ * - Evite utilizar um `po-tabs` dentro de outro `po-tabs`;
28
+ * - Evite utilizar uma quantidade excessiva de abas, pois irá gerar um *scroll* muito longo no `dropdown`;
29
+ * - Evite `labels` extensos para as `tabs` pois podem quebrar seu *layout*, use `labels` diretas, curtas e intuitivas.
30
+ *
31
+ *
13
32
  * @example
14
33
  *
15
34
  * <example name="po-tabs-basic" title="PO Tabs Basic">
@@ -34,7 +53,7 @@ export declare const poTabsLiterals: object;
34
53
  */
35
54
  export declare class PoTabsComponent extends PoTabsBaseComponent implements OnInit, AfterViewInit, OnDestroy, AfterContentInit {
36
55
  protected poThemeService: PoThemeService;
37
- private changeDetector;
56
+ changeDetector: ChangeDetectorRef;
38
57
  private languageService;
39
58
  private tabsService;
40
59
  tabsChildren: QueryList<PoTabComponent>;
@@ -47,6 +66,7 @@ export declare class PoTabsComponent extends PoTabsBaseComponent implements OnIn
47
66
  tabsDropdown: any[];
48
67
  initializeCalculation: boolean;
49
68
  initializeComponent: boolean;
69
+ initCheckChangesTab: boolean;
50
70
  quantityTabsButton: any;
51
71
  defaultLastTabWidth: number;
52
72
  private previousActiveTab;
@@ -67,14 +87,15 @@ export declare class PoTabsComponent extends PoTabsBaseComponent implements OnIn
67
87
  onTabActiveByDropdown(tab: PoTabComponent, eventEmitter?: boolean): void;
68
88
  onTabActive(tab: PoTabComponent): void;
69
89
  onTabChangeState(tab: PoTabComponent | any): void;
70
- reorderTabs(tabToReorder: PoTabComponent): void;
90
+ reorderTabs(tabToReorder: PoTabComponent, lastTab?: any): void;
71
91
  selectedTab(tab: PoTabComponent | any): void;
72
92
  trackByFn(_i: any, tab: PoTabComponent): string;
73
93
  private activeDistinctTab;
74
94
  private activeFirstTab;
75
- private changeTabPositionByDropdown;
95
+ changeTabPositionByDropdown(tabToActivate: PoTabComponent, byContextsTabs?: boolean): void;
76
96
  private deactivateTab;
77
- private updateTabsState;
97
+ updateTabsState(initialState?: boolean, tab?: PoTabComponent): void;
98
+ executeTabsState(initialState: any, idByContextTabs?: string): void;
78
99
  calculateTabs(initializeCalculation?: boolean): void;
79
100
  handleKeyboardNavigationTab(initialIndex?: number): void;
80
101
  /**
@@ -15,6 +15,6 @@ import * as i10 from "../po-listbox/po-listbox.module";
15
15
  */
16
16
  export declare class PoTabsModule {
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<PoTabsModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<PoTabsModule, [typeof i1.PoTabButtonComponent, typeof i2.PoTabComponent, typeof i3.PoTabDropdownComponent, typeof i4.PoTabsComponent], [typeof i5.CommonModule, typeof i6.PoPopoverModule, typeof i7.PoDropdownModule, typeof i8.PoTooltipModule, typeof i9.PoButtonModule, typeof i10.PoListBoxModule], [typeof i2.PoTabComponent, typeof i4.PoTabsComponent]>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PoTabsModule, [typeof i1.PoTabButtonComponent, typeof i2.PoTabComponent, typeof i3.PoTabDropdownComponent, typeof i4.PoTabsComponent], [typeof i5.CommonModule, typeof i6.PoPopoverModule, typeof i7.PoDropdownModule, typeof i8.PoTooltipModule, typeof i9.PoButtonModule, typeof i10.PoListBoxModule], [typeof i2.PoTabComponent, typeof i4.PoTabsComponent, typeof i1.PoTabButtonComponent, typeof i3.PoTabDropdownComponent]>;
19
19
  static ɵinj: i0.ɵɵInjectorDeclaration<PoTabsModule>;
20
20
  }
@@ -3,9 +3,9 @@ import * as i0 from "@angular/core";
3
3
  export declare class PoTabsService {
4
4
  private onChangesTriggeredSource;
5
5
  private onChangesTriggeredActiveSource;
6
- onChangesTriggered$: import("rxjs").Observable<void>;
6
+ onChangesTriggered$: import("rxjs").Observable<any>;
7
7
  triggerActiveOnChanges$: import("rxjs").Observable<any>;
8
- triggerOnChanges(): void;
8
+ triggerOnChanges(tab?: PoTabComponent): void;
9
9
  triggerActiveOnChanges(tab: PoTabComponent): void;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<PoTabsService, never>;
11
11
  static ɵprov: i0.ɵɵInjectableDeclaration<PoTabsService>;
@@ -259,6 +259,7 @@ export declare class PoTagBaseComponent {
259
259
  */
260
260
  set type(value: PoTagType);
261
261
  get type(): PoTagType;
262
+ forceIcon: boolean;
262
263
  /**
263
264
  * @optional
264
265
  *
@@ -290,7 +291,8 @@ export declare class PoTagBaseComponent {
290
291
  get literals(): PoTagLiterals;
291
292
  constructor(languageService: PoLanguageService);
292
293
  static ɵfac: i0.ɵɵFactoryDeclaration<PoTagBaseComponent, never>;
293
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoTagBaseComponent, never, never, { "label": { "alias": "p-label"; "required": false; }; "removable": { "alias": "p-removable"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; "appendInBody": { "alias": "p-append-in-body"; "required": false; }; "color": { "alias": "p-color"; "required": false; }; "textColor": { "alias": "p-text-color"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; "orientation": { "alias": "p-orientation"; "required": false; }; "type": { "alias": "p-type"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; }, { "click": "p-click"; "remove": "p-close"; }, never, never, true, never>;
294
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoTagBaseComponent, never, never, { "label": { "alias": "p-label"; "required": false; }; "removable": { "alias": "p-removable"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; "appendInBody": { "alias": "p-append-in-body"; "required": false; }; "color": { "alias": "p-color"; "required": false; }; "textColor": { "alias": "p-text-color"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; "orientation": { "alias": "p-orientation"; "required": false; }; "type": { "alias": "p-type"; "required": false; }; "forceIcon": { "alias": "p-force-icon"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; }, { "click": "p-click"; "remove": "p-close"; }, never, never, true, never>;
294
295
  static ngAcceptInputType_removable: any;
295
296
  static ngAcceptInputType_disabled: any;
297
+ static ngAcceptInputType_forceIcon: any;
296
298
  }
@@ -1,2 +1,3 @@
1
1
  export * from './po-widget.component';
2
2
  export * from './po-widget.module';
3
+ export * from './literals/po-widget-literals';
@@ -0,0 +1,7 @@
1
+ import { PoWidgetLiterals } from './po-widget-literals';
2
+ export declare const poWidgetLiteralsDefault: {
3
+ en: PoWidgetLiterals;
4
+ es: PoWidgetLiterals;
5
+ pt: PoWidgetLiterals;
6
+ ru: PoWidgetLiterals;
7
+ };
@@ -0,0 +1,22 @@
1
+ export interface PoWidgetLiterals {
2
+ /**
3
+ * @usedBy PoWidgetComponent
4
+ *
5
+ * @optional
6
+ *
7
+ * @description
8
+ *
9
+ * help: Texto exibido na ação de ajuda.
10
+ */
11
+ help?: string;
12
+ /**
13
+ * @usedBy PoWidgetComponent
14
+ *
15
+ * @optional
16
+ *
17
+ * @description
18
+ *
19
+ * configuration: help: Texto exibido na ação de configuração.
20
+ */
21
+ configuration?: string;
22
+ }