@po-ui/ng-components 19.23.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 (32) hide show
  1. package/fesm2022/po-ui-ng-components.mjs +685 -258
  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-context-tabs/index.d.ts +3 -0
  6. package/lib/components/po-context-tabs/po-context-tab-button/po-context-tab-button.component.d.ts +26 -0
  7. package/lib/components/po-context-tabs/po-context-tabs.component.d.ts +81 -0
  8. package/lib/components/po-context-tabs/po-context-tabs.module.d.ts +16 -0
  9. package/lib/components/po-tabs/index.d.ts +2 -0
  10. package/lib/components/po-tabs/po-tab/po-tab-base.component.d.ts +28 -2
  11. package/lib/components/po-tabs/po-tab/po-tab.component.d.ts +3 -1
  12. package/lib/components/po-tabs/po-tab/po-tab.interface.d.ts +23 -0
  13. package/lib/components/po-tabs/po-tab-button/po-tab-button.component.d.ts +2 -2
  14. package/lib/components/po-tabs/po-tabs-base.component.d.ts +1 -16
  15. package/lib/components/po-tabs/po-tabs.component.d.ts +25 -4
  16. package/lib/components/po-tabs/po-tabs.module.d.ts +1 -1
  17. package/lib/components/po-tabs/po-tabs.service.d.ts +2 -2
  18. package/package.json +4 -4
  19. package/po-ui-ng-components-19.24.0.tgz +0 -0
  20. package/schematics/ng-add/index.js +1 -1
  21. package/schematics/ng-update/v14/index.js +1 -1
  22. package/schematics/ng-update/v15/index.js +1 -1
  23. package/schematics/ng-update/v16/index.js +1 -1
  24. package/schematics/ng-update/v17/index.js +1 -1
  25. package/schematics/ng-update/v18/index.js +2 -2
  26. package/schematics/ng-update/v19/index.js +2 -2
  27. package/schematics/ng-update/v2/index.js +1 -1
  28. package/schematics/ng-update/v3/index.js +1 -1
  29. package/schematics/ng-update/v4/index.js +1 -1
  30. package/schematics/ng-update/v5/index.js +1 -1
  31. package/schematics/ng-update/v6/index.js +1 -1
  32. package/po-ui-ng-components-19.23.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';
@@ -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
+ }
@@ -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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@po-ui/ng-components",
3
- "version": "19.23.0",
3
+ "version": "19.24.0",
4
4
  "description": "PO UI - Components",
5
5
  "author": "PO UI",
6
6
  "license": "MIT",
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@angular/cdk": "~19.0.3",
25
- "@po-ui/style": "19.23.0",
26
- "@po-ui/ng-schematics": "19.23.0",
25
+ "@po-ui/style": "19.24.0",
26
+ "@po-ui/ng-schematics": "19.24.0",
27
27
  "echarts": "^5.6.0",
28
28
  "tslib": "^2.6.2"
29
29
  },
@@ -38,7 +38,7 @@
38
38
  "@angular/platform-browser-dynamic": "^19",
39
39
  "@angular/router": "^19",
40
40
  "@angular-devkit/schematics": "^19",
41
- "@po-ui/style": "19.23.0",
41
+ "@po-ui/style": "19.24.0",
42
42
  "rxjs": "~7.8.1",
43
43
  "zone.js": "~0.15.0"
44
44
  },
Binary file
@@ -18,7 +18,7 @@ function default_1(options) {
18
18
  }
19
19
  function addPoPackageAndInstall() {
20
20
  return (tree, context) => {
21
- (0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '19.23.0');
21
+ (0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '19.24.0');
22
22
  // install packages
23
23
  context.addTask(new tasks_1.NodePackageInstallTask());
24
24
  };
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
6
6
  const package_config_1 = require("@po-ui/ng-schematics/package-config");
7
7
  const changes_1 = require("./changes");
8
8
  function default_1() {
9
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.23.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.24.0', changes_1.updateDepedenciesVersion), postUpdate()]);
10
10
  }
11
11
  function postUpdate() {
12
12
  return (_, context) => {
@@ -11,7 +11,7 @@ const changes_1 = require("./changes");
11
11
  const httpClientModuleName = 'HttpClientModule';
12
12
  const httpClientModuleSourcePath = '@angular/common/http';
13
13
  function default_1() {
14
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.23.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
14
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.24.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
15
15
  }
16
16
  function postUpdate() {
17
17
  return (_, context) => {
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
6
6
  const package_config_1 = require("@po-ui/ng-schematics/package-config");
7
7
  const changes_1 = require("./changes");
8
8
  function default_1() {
9
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.23.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.24.0', changes_1.updateDepedenciesVersion), postUpdate()]);
10
10
  }
11
11
  function postUpdate() {
12
12
  return (_, context) => {
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
6
6
  const package_config_1 = require("@po-ui/ng-schematics/package-config");
7
7
  const changes_1 = require("./changes");
8
8
  function default_1() {
9
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.23.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.24.0', changes_1.updateDepedenciesVersion), postUpdate()]);
10
10
  }
11
11
  function postUpdate() {
12
12
  return (_, context) => {
@@ -40,11 +40,11 @@ function main(options) {
40
40
  configureNewIcon.toLowerCase() === 'y' ||
41
41
  configureNewIcon.toLowerCase() === 'sim' ||
42
42
  configureNewIcon.toLowerCase() === '') {
43
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.23.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.24.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
44
44
  }
45
45
  else {
46
46
  return (0, schematics_1.chain)([
47
- (0, package_config_1.updatePackageJson)('19.23.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('19.24.0', changes_1.updateDepedenciesVersion),
48
48
  addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
49
49
  addProviderToAppModule(options, newProviderDictionary),
50
50
  updateAppConfigFileRule(),
@@ -40,11 +40,11 @@ function main(options) {
40
40
  configureNewIcon.toLowerCase() === 'y' ||
41
41
  configureNewIcon.toLowerCase() === 'sim' ||
42
42
  configureNewIcon.toLowerCase() === '') {
43
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.23.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.24.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
44
44
  }
45
45
  else {
46
46
  return (0, schematics_1.chain)([
47
- (0, package_config_1.updatePackageJson)('19.23.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('19.24.0', changes_1.updateDepedenciesVersion),
48
48
  addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
49
49
  addProviderToAppModule(options, newProviderDictionary),
50
50
  updateAppConfigFileRule(),
@@ -10,7 +10,7 @@ const package_config_1 = require("@po-ui/ng-schematics/package-config");
10
10
  const changes_1 = require("./changes");
11
11
  function updateToV2() {
12
12
  return (0, schematics_1.chain)([
13
- updatePackageJson('19.23.0', changes_1.dependeciesChanges),
13
+ updatePackageJson('19.24.0', changes_1.dependeciesChanges),
14
14
  (0, replace_1.replaceInFile)('tslint.json', changes_1.tsLintReplaces),
15
15
  (0, replace_1.replaceInFile)('angular.json', changes_1.angularJsonReplaces),
16
16
  createUpgradeRule(),
@@ -7,7 +7,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
7
7
  const package_config_1 = require("@po-ui/ng-schematics/package-config");
8
8
  const changes_1 = require("./changes");
9
9
  function updateToV3() {
10
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.23.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.24.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
11
11
  }
12
12
  function postUpdate() {
13
13
  return (_, context) => {
@@ -7,7 +7,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
7
7
  const package_config_1 = require("@po-ui/ng-schematics/package-config");
8
8
  const changes_1 = require("./changes");
9
9
  function default_1() {
10
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.23.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.24.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
11
11
  }
12
12
  function postUpdate() {
13
13
  return (_, context) => {
@@ -7,7 +7,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
7
7
  const package_config_1 = require("@po-ui/ng-schematics/package-config");
8
8
  const changes_1 = require("./changes");
9
9
  function default_1() {
10
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.23.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.24.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
11
11
  }
12
12
  function postUpdate() {
13
13
  return (_, context) => {
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
6
6
  const package_config_1 = require("@po-ui/ng-schematics/package-config");
7
7
  const changes_1 = require("./changes");
8
8
  function default_1() {
9
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.23.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.24.0', changes_1.updateDepedenciesVersion), postUpdate()]);
10
10
  }
11
11
  function postUpdate() {
12
12
  return (_, context) => {
Binary file