@po-ui/ng-components 6.11.0 → 6.12.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 (51) hide show
  1. package/esm2020/lib/components/po-button/po-button-base.component.mjs +31 -8
  2. package/esm2020/lib/components/po-button/po-button.component.mjs +4 -4
  3. package/esm2020/lib/components/po-field/index.mjs +2 -1
  4. package/esm2020/lib/components/po-field/po-checkbox/po-checkbox.module.mjs +20 -0
  5. package/esm2020/lib/components/po-field/po-field.module.mjs +15 -13
  6. package/esm2020/lib/components/po-menu/po-menu-base.component.mjs +46 -6
  7. package/esm2020/lib/components/po-menu/po-menu.component.mjs +5 -5
  8. package/esm2020/lib/components/po-table/po-table-base.component.mjs +6 -2
  9. package/esm2020/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.mjs +17 -3
  10. package/esm2020/lib/components/po-table/po-table-detail/po-table-detail.component.mjs +40 -40
  11. package/esm2020/lib/components/po-table/po-table.component.mjs +441 -438
  12. package/esm2020/lib/components/po-table/po-table.module.mjs +12 -4
  13. package/esm2020/lib/services/po-notification/po-notification-base.service.mjs +6 -4
  14. package/esm2020/lib/services/po-notification/po-notification.interface.mjs +1 -1
  15. package/esm2020/lib/services/po-notification/po-notification.module.mjs +6 -4
  16. package/esm2020/lib/services/po-notification/po-notification.service.mjs +3 -2
  17. package/esm2020/lib/services/po-notification/po-toaster/po-toaster.component.mjs +49 -32
  18. package/esm2020/lib/services/po-notification/po-toaster/po-toaster.literals.mjs +15 -0
  19. package/fesm2015/po-ui-ng-components.mjs +968 -840
  20. package/fesm2015/po-ui-ng-components.mjs.map +1 -1
  21. package/fesm2020/po-ui-ng-components.mjs +960 -825
  22. package/fesm2020/po-ui-ng-components.mjs.map +1 -1
  23. package/lib/components/po-button/po-button-base.component.d.ts +16 -6
  24. package/lib/components/po-field/index.d.ts +1 -0
  25. package/lib/components/po-field/po-checkbox/po-checkbox.module.d.ts +9 -0
  26. package/lib/components/po-field/po-field.module.d.ts +54 -54
  27. package/lib/components/po-menu/po-menu-base.component.d.ts +19 -1
  28. package/lib/components/po-table/po-table-base.component.d.ts +2 -0
  29. package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts +3 -0
  30. package/lib/components/po-table/po-table.component.d.ts +2 -0
  31. package/lib/components/po-table/po-table.module.d.ts +14 -12
  32. package/lib/services/po-notification/po-notification-base.service.d.ts +4 -2
  33. package/lib/services/po-notification/po-notification.interface.d.ts +5 -1
  34. package/lib/services/po-notification/po-notification.module.d.ts +3 -1
  35. package/lib/services/po-notification/po-toaster/po-toaster.component.d.ts +5 -1
  36. package/lib/services/po-notification/po-toaster/po-toaster.literals.d.ts +14 -0
  37. package/package.json +4 -4
  38. package/po-ui-ng-components-6.12.0.tgz +0 -0
  39. package/schematics/ng-add/index.js +1 -1
  40. package/schematics/ng-add/index.spec.js +5 -5
  41. package/schematics/ng-generate/po-page-default/index.spec.js +12 -12
  42. package/schematics/ng-generate/po-page-detail/index.spec.js +12 -12
  43. package/schematics/ng-generate/po-page-edit/index.spec.js +12 -12
  44. package/schematics/ng-generate/po-page-list/index.spec.js +12 -12
  45. package/schematics/ng-generate/sidemenu/index.spec.js +4 -4
  46. package/schematics/ng-update/v2/index.js +1 -1
  47. package/schematics/ng-update/v3/index.js +1 -1
  48. package/schematics/ng-update/v4/index.js +1 -1
  49. package/schematics/ng-update/v5/index.js +1 -1
  50. package/schematics/ng-update/v6/index.js +1 -1
  51. package/po-ui-ng-components-6.11.0.tgz +0 -0
@@ -5,14 +5,13 @@ import * as i0 from "@angular/core";
5
5
  *
6
6
  * O `po-button` permite que o usuário execute ações predefinidas pelo desenvolvedor.
7
7
  *
8
- * Através dos tipos, é possível identificar a importância de cada ação, sendo ela primária (`primary`) ou até mesmo uma
9
- * ação irreversível (`danger`), como a exclusão de um registro.
8
+ * Através dos tipos, é possível identificar a importância de cada ação.
10
9
  *
11
10
  * #### Boas práticas
12
11
  *
13
12
  * - Evite `labels` extensos que quebram o layout do `po-button`, use `labels` diretos, curtos e intuitivos.
14
13
  * - Utilize apenas um `po-button` configurado como `primary` por página.
15
- * - Para ações irreversíveis use sempre o tipo `danger`.
14
+ * - Para ações irreversíveis use sempre a propriedade `p-danger`.
16
15
  */
17
16
  export declare class PoButtonBaseComponent {
18
17
  /**
@@ -66,6 +65,7 @@ export declare class PoButtonBaseComponent {
66
65
  icon?: string | TemplateRef<void>;
67
66
  /** Ação que será executada quando o usuário clicar sobre o `po-button`. */
68
67
  click: EventEmitter<null>;
68
+ private _danger?;
69
69
  private _disabled?;
70
70
  private _loading?;
71
71
  private _small?;
@@ -100,6 +100,7 @@ export declare class PoButtonBaseComponent {
100
100
  * @optional
101
101
  *
102
102
  * @description
103
+ *
103
104
  * **Deprecated 15.x.x**. Utilizar `p-kind` no lugar.
104
105
  *
105
106
  * Define o estilo do `po-button`.
@@ -107,7 +108,7 @@ export declare class PoButtonBaseComponent {
107
108
  * Valore válidos:
108
109
  * - `default`: **Deprecated 15.x.x**. Utilizar `p-kind="secondary"`.
109
110
  * - `primary`: deixa o `po-button` com destaque, deve ser usado para ações primárias.
110
- * - `danger`: deve ser usado para ações que o usuário precisa ter cuidado ao executa-lá.
111
+ * - `danger`: **Deprecated 15.x.x**. Utilizar `p-danger`.
111
112
  * - `link`: **Deprecated 15.x.x**. Utilizar `p-kind="tertiary"`.
112
113
  *
113
114
  * @default `secondary`
@@ -115,7 +116,17 @@ export declare class PoButtonBaseComponent {
115
116
  set type(value: string);
116
117
  get type(): string;
117
118
  /**
119
+ * @optional
120
+ *
121
+ * @description
118
122
  *
123
+ * Deve ser usado em ações irreversíveis que o usuário precisa ter cuidado ao executá-la, como a exclusão de um registro.
124
+ *
125
+ * > Ao utilizar esta propriedade será atribuído `p-kind="secondary"`.
126
+ */
127
+ set danger(value: boolean);
128
+ get danger(): boolean;
129
+ /**
119
130
  * @optional
120
131
  *
121
132
  * @description
@@ -125,7 +136,6 @@ export declare class PoButtonBaseComponent {
125
136
  * Valore válidos:
126
137
  * - `primary`: deixa o `po-button` com destaque, deve ser usado para ações primárias.
127
138
  * - `secondary`: estilo padrão do `po-button`.
128
- * - `danger`: deve ser usado para ações que o usuário precisa ter cuidado ao executa-lá.
129
139
  * - `tertiary`: o `po-button` é exibido sem cor do fundo, recebendo menos destaque entre as ações.
130
140
  *
131
141
  * @default `secondary`
@@ -144,5 +154,5 @@ export declare class PoButtonBaseComponent {
144
154
  set disabled(value: boolean);
145
155
  get disabled(): boolean;
146
156
  static ɵfac: i0.ɵɵFactoryDeclaration<PoButtonBaseComponent, never>;
147
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoButtonBaseComponent, never, never, { "autoFocus": "p-auto-focus"; "label": "p-label"; "icon": "p-icon"; "loading": "p-loading"; "small": "p-small"; "type": "p-type"; "kind": "p-kind"; "disabled": "p-disabled"; }, { "click": "p-click"; }, never>;
157
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoButtonBaseComponent, never, never, { "autoFocus": "p-auto-focus"; "label": "p-label"; "icon": "p-icon"; "loading": "p-loading"; "small": "p-small"; "type": "p-type"; "danger": "p-danger"; "kind": "p-kind"; "disabled": "p-disabled"; }, { "click": "p-click"; }, never>;
148
158
  }
@@ -47,6 +47,7 @@ export * from './po-upload/po-upload.component';
47
47
  export * from './po-url/po-url.component';
48
48
  export * from './po-checkbox-group/po-checkbox-group.module';
49
49
  export * from './po-datepicker/po-datepicker.module';
50
+ export * from './po-checkbox/po-checkbox.module';
50
51
  export * from './po-field.module';
51
52
  export * from './po-field-container/index';
52
53
  export * from './po-clean/index';
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./po-checkbox.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ export declare class PoCheckboxModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<PoCheckboxModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PoCheckboxModule, [typeof i1.PoCheckboxComponent], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.PoCheckboxComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<PoCheckboxModule>;
9
+ }
@@ -1,57 +1,57 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./po-checkbox/po-checkbox.component";
3
- import * as i2 from "./po-combo/po-combo.component";
4
- import * as i3 from "./po-combo/po-combo-option-template/po-combo-option-template.directive";
5
- import * as i4 from "./po-decimal/po-decimal.component";
6
- import * as i5 from "./po-datepicker-range/po-datepicker-range.component";
7
- import * as i6 from "./po-email/po-email.component";
8
- import * as i7 from "./po-input/po-input.component";
9
- import * as i8 from "./po-login/po-login.component";
10
- import * as i9 from "./po-lookup/po-lookup.component";
11
- import * as i10 from "./po-lookup/po-lookup-modal/po-lookup-modal.component";
12
- import * as i11 from "./po-multiselect/po-multiselect.component";
13
- import * as i12 from "./po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component";
14
- import * as i13 from "./po-multiselect/po-multiselect-item/po-multiselect-item.component";
15
- import * as i14 from "./po-multiselect/po-multiselect-search/po-multiselect-search.component";
16
- import * as i15 from "./po-number/po-number.component";
17
- import * as i16 from "./po-password/po-password.component";
18
- import * as i17 from "./po-radio-group/po-radio-group.component";
19
- import * as i18 from "./po-rich-text/po-rich-text-body/po-rich-text-body.component";
20
- import * as i19 from "./po-rich-text/po-rich-text.component";
21
- import * as i20 from "./po-rich-text/po-rich-text-image-modal/po-rich-text-image-modal.component";
22
- import * as i21 from "./po-rich-text/po-rich-text-link-modal/po-rich-text-link-modal.component";
23
- import * as i22 from "./po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component";
24
- import * as i23 from "./po-select/po-select.component";
25
- import * as i24 from "./po-select/po-select-option-template/po-select-option-template.directive";
26
- import * as i25 from "./po-switch/po-switch.component";
27
- import * as i26 from "./po-textarea/po-textarea.component";
28
- import * as i27 from "./po-upload/po-upload.component";
29
- import * as i28 from "./po-upload/po-upload-drag-drop/po-upload-drag-drop.component";
30
- import * as i29 from "./po-upload/po-upload-drag-drop/po-upload-drag-drop.directive";
31
- import * as i30 from "./po-upload/po-upload-drag-drop/po-upload-drag-drop-area-overlay/po-upload-drag-drop-area-overlay.component";
32
- import * as i31 from "./po-upload/po-upload-drag-drop/po-upload-drag-drop-area/po-upload-drag-drop-area.component";
33
- import * as i32 from "./po-upload/po-upload-file-restrictions/po-upload-file-restrictions.component";
34
- import * as i33 from "./po-url/po-url.component";
35
- import * as i34 from "@angular/common";
36
- import * as i35 from "@angular/forms";
37
- import * as i36 from "@angular/common/http";
38
- import * as i37 from "../po-button-group/po-button-group.module";
39
- import * as i38 from "../po-button/po-button.module";
40
- import * as i39 from "./po-clean/po-clean.module";
41
- import * as i40 from "../po-calendar/po-calendar.module";
42
- import * as i41 from "./po-checkbox-group/po-checkbox-group.module";
43
- import * as i42 from "../po-container/po-container.module";
44
- import * as i43 from "./po-datepicker/po-datepicker.module";
45
- import * as i44 from "../po-disclaimer-group/po-disclaimer-group.module";
46
- import * as i45 from "../po-disclaimer/po-disclaimer.module";
47
- import * as i46 from "./po-field-container/po-field-container.module";
48
- import * as i47 from "../po-loading/po-loading.module";
49
- import * as i48 from "../po-modal/po-modal.module";
50
- import * as i49 from "../po-progress/po-progress.module";
51
- import * as i50 from "../../services/services.module";
52
- import * as i51 from "../po-table/po-table.module";
53
- import * as i52 from "../../directives/po-tooltip/po-tooltip.module";
54
- import * as i53 from "../po-icon/po-icon.module";
2
+ import * as i1 from "./po-combo/po-combo.component";
3
+ import * as i2 from "./po-combo/po-combo-option-template/po-combo-option-template.directive";
4
+ import * as i3 from "./po-decimal/po-decimal.component";
5
+ import * as i4 from "./po-datepicker-range/po-datepicker-range.component";
6
+ import * as i5 from "./po-email/po-email.component";
7
+ import * as i6 from "./po-input/po-input.component";
8
+ import * as i7 from "./po-login/po-login.component";
9
+ import * as i8 from "./po-lookup/po-lookup.component";
10
+ import * as i9 from "./po-lookup/po-lookup-modal/po-lookup-modal.component";
11
+ import * as i10 from "./po-multiselect/po-multiselect.component";
12
+ import * as i11 from "./po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component";
13
+ import * as i12 from "./po-multiselect/po-multiselect-item/po-multiselect-item.component";
14
+ import * as i13 from "./po-multiselect/po-multiselect-search/po-multiselect-search.component";
15
+ import * as i14 from "./po-number/po-number.component";
16
+ import * as i15 from "./po-password/po-password.component";
17
+ import * as i16 from "./po-radio-group/po-radio-group.component";
18
+ import * as i17 from "./po-rich-text/po-rich-text-body/po-rich-text-body.component";
19
+ import * as i18 from "./po-rich-text/po-rich-text.component";
20
+ import * as i19 from "./po-rich-text/po-rich-text-image-modal/po-rich-text-image-modal.component";
21
+ import * as i20 from "./po-rich-text/po-rich-text-link-modal/po-rich-text-link-modal.component";
22
+ import * as i21 from "./po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component";
23
+ import * as i22 from "./po-select/po-select.component";
24
+ import * as i23 from "./po-select/po-select-option-template/po-select-option-template.directive";
25
+ import * as i24 from "./po-switch/po-switch.component";
26
+ import * as i25 from "./po-textarea/po-textarea.component";
27
+ import * as i26 from "./po-upload/po-upload.component";
28
+ import * as i27 from "./po-upload/po-upload-drag-drop/po-upload-drag-drop.component";
29
+ import * as i28 from "./po-upload/po-upload-drag-drop/po-upload-drag-drop.directive";
30
+ import * as i29 from "./po-upload/po-upload-drag-drop/po-upload-drag-drop-area-overlay/po-upload-drag-drop-area-overlay.component";
31
+ import * as i30 from "./po-upload/po-upload-drag-drop/po-upload-drag-drop-area/po-upload-drag-drop-area.component";
32
+ import * as i31 from "./po-upload/po-upload-file-restrictions/po-upload-file-restrictions.component";
33
+ import * as i32 from "./po-url/po-url.component";
34
+ import * as i33 from "@angular/common";
35
+ import * as i34 from "@angular/forms";
36
+ import * as i35 from "@angular/common/http";
37
+ import * as i36 from "../po-button-group/po-button-group.module";
38
+ import * as i37 from "../po-button/po-button.module";
39
+ import * as i38 from "./po-clean/po-clean.module";
40
+ import * as i39 from "../po-calendar/po-calendar.module";
41
+ import * as i40 from "./po-checkbox-group/po-checkbox-group.module";
42
+ import * as i41 from "../po-container/po-container.module";
43
+ import * as i42 from "./po-datepicker/po-datepicker.module";
44
+ import * as i43 from "../po-disclaimer-group/po-disclaimer-group.module";
45
+ import * as i44 from "../po-disclaimer/po-disclaimer.module";
46
+ import * as i45 from "./po-field-container/po-field-container.module";
47
+ import * as i46 from "../po-loading/po-loading.module";
48
+ import * as i47 from "../po-modal/po-modal.module";
49
+ import * as i48 from "../po-progress/po-progress.module";
50
+ import * as i49 from "../../services/services.module";
51
+ import * as i50 from "../po-table/po-table.module";
52
+ import * as i51 from "../../directives/po-tooltip/po-tooltip.module";
53
+ import * as i52 from "../po-icon/po-icon.module";
54
+ import * as i53 from "./po-checkbox/po-checkbox.module";
55
55
  /**
56
56
  * @description
57
57
  *
@@ -64,6 +64,6 @@ import * as i53 from "../po-icon/po-icon.module";
64
64
  */
65
65
  export declare class PoFieldModule {
66
66
  static ɵfac: i0.ɵɵFactoryDeclaration<PoFieldModule, never>;
67
- static ɵmod: i0.ɵɵNgModuleDeclaration<PoFieldModule, [typeof i1.PoCheckboxComponent, typeof i2.PoComboComponent, typeof i3.PoComboOptionTemplateDirective, typeof i4.PoDecimalComponent, typeof i5.PoDatepickerRangeComponent, typeof i6.PoEmailComponent, typeof i7.PoInputComponent, typeof i8.PoLoginComponent, typeof i9.PoLookupComponent, typeof i10.PoLookupModalComponent, typeof i11.PoMultiselectComponent, typeof i12.PoMultiselectDropdownComponent, typeof i13.PoMultiselectItemComponent, typeof i14.PoMultiselectSearchComponent, typeof i15.PoNumberComponent, typeof i16.PoPasswordComponent, typeof i17.PoRadioGroupComponent, typeof i18.PoRichTextBodyComponent, typeof i19.PoRichTextComponent, typeof i20.PoRichTextImageModalComponent, typeof i21.PoRichTextLinkModalComponent, typeof i22.PoRichTextToolbarComponent, typeof i23.PoSelectComponent, typeof i24.PoSelectOptionTemplateDirective, typeof i25.PoSwitchComponent, typeof i26.PoTextareaComponent, typeof i27.PoUploadComponent, typeof i28.PoUploadDragDropComponent, typeof i29.PoUploadDragDropDirective, typeof i30.PoUploadDragDropAreaOverlayComponent, typeof i31.PoUploadDragDropAreaComponent, typeof i32.PoUploadFileRestrictionsComponent, typeof i33.PoUrlComponent], [typeof i34.CommonModule, typeof i35.FormsModule, typeof i36.HttpClientModule, typeof i37.PoButtonGroupModule, typeof i38.PoButtonModule, typeof i39.PoCleanModule, typeof i40.PoCalendarModule, typeof i41.PoCheckboxGroupModule, typeof i42.PoContainerModule, typeof i43.PoDatepickerModule, typeof i44.PoDisclaimerGroupModule, typeof i45.PoDisclaimerModule, typeof i46.PoFieldContainerModule, typeof i47.PoLoadingModule, typeof i48.PoModalModule, typeof i49.PoProgressModule, typeof i50.PoServicesModule, typeof i51.PoTableModule, typeof i52.PoTooltipModule, typeof i53.PoIconModule], [typeof i41.PoCheckboxGroupModule, typeof i39.PoCleanModule, typeof i43.PoDatepickerModule, typeof i1.PoCheckboxComponent, typeof i2.PoComboComponent, typeof i3.PoComboOptionTemplateDirective, typeof i4.PoDecimalComponent, typeof i5.PoDatepickerRangeComponent, typeof i6.PoEmailComponent, typeof i46.PoFieldContainerModule, typeof i7.PoInputComponent, typeof i8.PoLoginComponent, typeof i9.PoLookupComponent, typeof i10.PoLookupModalComponent, typeof i11.PoMultiselectComponent, typeof i15.PoNumberComponent, typeof i16.PoPasswordComponent, typeof i17.PoRadioGroupComponent, typeof i19.PoRichTextComponent, typeof i23.PoSelectComponent, typeof i24.PoSelectOptionTemplateDirective, typeof i25.PoSwitchComponent, typeof i26.PoTextareaComponent, typeof i27.PoUploadComponent, typeof i33.PoUrlComponent]>;
67
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PoFieldModule, [typeof i1.PoComboComponent, typeof i2.PoComboOptionTemplateDirective, typeof i3.PoDecimalComponent, typeof i4.PoDatepickerRangeComponent, typeof i5.PoEmailComponent, typeof i6.PoInputComponent, typeof i7.PoLoginComponent, typeof i8.PoLookupComponent, typeof i9.PoLookupModalComponent, typeof i10.PoMultiselectComponent, typeof i11.PoMultiselectDropdownComponent, typeof i12.PoMultiselectItemComponent, typeof i13.PoMultiselectSearchComponent, typeof i14.PoNumberComponent, typeof i15.PoPasswordComponent, typeof i16.PoRadioGroupComponent, typeof i17.PoRichTextBodyComponent, typeof i18.PoRichTextComponent, typeof i19.PoRichTextImageModalComponent, typeof i20.PoRichTextLinkModalComponent, typeof i21.PoRichTextToolbarComponent, typeof i22.PoSelectComponent, typeof i23.PoSelectOptionTemplateDirective, typeof i24.PoSwitchComponent, typeof i25.PoTextareaComponent, typeof i26.PoUploadComponent, typeof i27.PoUploadDragDropComponent, typeof i28.PoUploadDragDropDirective, typeof i29.PoUploadDragDropAreaOverlayComponent, typeof i30.PoUploadDragDropAreaComponent, typeof i31.PoUploadFileRestrictionsComponent, typeof i32.PoUrlComponent], [typeof i33.CommonModule, typeof i34.FormsModule, typeof i35.HttpClientModule, typeof i36.PoButtonGroupModule, typeof i37.PoButtonModule, typeof i38.PoCleanModule, typeof i39.PoCalendarModule, typeof i40.PoCheckboxGroupModule, typeof i41.PoContainerModule, typeof i42.PoDatepickerModule, typeof i43.PoDisclaimerGroupModule, typeof i44.PoDisclaimerModule, typeof i45.PoFieldContainerModule, typeof i46.PoLoadingModule, typeof i47.PoModalModule, typeof i48.PoProgressModule, typeof i49.PoServicesModule, typeof i50.PoTableModule, typeof i51.PoTooltipModule, typeof i52.PoIconModule, typeof i53.PoCheckboxModule], [typeof i40.PoCheckboxGroupModule, typeof i38.PoCleanModule, typeof i42.PoDatepickerModule, typeof i1.PoComboComponent, typeof i2.PoComboOptionTemplateDirective, typeof i3.PoDecimalComponent, typeof i4.PoDatepickerRangeComponent, typeof i5.PoEmailComponent, typeof i45.PoFieldContainerModule, typeof i6.PoInputComponent, typeof i7.PoLoginComponent, typeof i8.PoLookupComponent, typeof i9.PoLookupModalComponent, typeof i10.PoMultiselectComponent, typeof i14.PoNumberComponent, typeof i15.PoPasswordComponent, typeof i16.PoRadioGroupComponent, typeof i18.PoRichTextComponent, typeof i22.PoSelectComponent, typeof i23.PoSelectOptionTemplateDirective, typeof i24.PoSwitchComponent, typeof i25.PoTextareaComponent, typeof i26.PoUploadComponent, typeof i32.PoUrlComponent, typeof i53.PoCheckboxModule]>;
68
68
  static ɵinj: i0.ɵɵInjectorDeclaration<PoFieldModule>;
69
69
  }
@@ -8,20 +8,25 @@ export declare const poMenuLiteralsDefault: {
8
8
  en: {
9
9
  itemNotFound: string;
10
10
  emptyLabelError: string;
11
+ logomarcaHome: string;
11
12
  };
12
13
  es: {
13
14
  itemNotFound: string;
14
15
  emptyLabelError: string;
16
+ logomarcaHome: string;
15
17
  };
16
18
  pt: {
17
19
  itemNotFound: string;
18
20
  emptyLabelError: string;
21
+ logomarcaHome: string;
19
22
  };
20
23
  ru: {
21
24
  itemNotFound: string;
22
25
  emptyLabelError: string;
26
+ logomarcaHome: string;
23
27
  };
24
28
  };
29
+ export declare const MAX_LENGHT: number;
25
30
  /**
26
31
  * @description
27
32
  *
@@ -43,6 +48,7 @@ export declare abstract class PoMenuBaseComponent {
43
48
  private _filter;
44
49
  private _level;
45
50
  private _logo;
51
+ private _logoAlt;
46
52
  private _maxLevel;
47
53
  private _menus;
48
54
  private _params;
@@ -151,6 +157,17 @@ export declare abstract class PoMenuBaseComponent {
151
157
  */
152
158
  set logo(value: any);
153
159
  get logo(): any;
160
+ /**
161
+ * @optional
162
+ *
163
+ * @description
164
+ *
165
+ * Texto alternativo para o logo.
166
+ *
167
+ * > Caso esta propriedade seja indefinida ou inválida o texto padrão será "Logomarca home".
168
+ */
169
+ set logoAlt(value: string);
170
+ get logoAlt(): string;
154
171
  /**
155
172
  * @optional
156
173
  *
@@ -177,9 +194,10 @@ export declare abstract class PoMenuBaseComponent {
177
194
  private removeBadgeAlert;
178
195
  private setMenuBadgeAlert;
179
196
  private validateMenu;
197
+ private maxLength;
180
198
  protected abstract checkActiveMenuByUrl(urlRouter: any): any;
181
199
  protected abstract checkingRouterChildrenFragments(): any;
182
200
  protected abstract validateCollapseClass(): any;
183
201
  static ɵfac: i0.ɵɵFactoryDeclaration<PoMenuBaseComponent, never>;
184
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoMenuBaseComponent, never, never, { "collapsed": "p-collapsed"; "menus": "p-menus"; "filter": "p-filter"; "service": "p-service"; "params": "p-params"; "logo": "p-logo"; "shortLogo": "p-short-logo"; }, {}, never>;
202
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoMenuBaseComponent, never, never, { "collapsed": "p-collapsed"; "menus": "p-menus"; "filter": "p-filter"; "service": "p-service"; "params": "p-params"; "logo": "p-logo"; "logoAlt": "p-logo-alt"; "shortLogo": "p-short-logo"; }, {}, never>;
185
203
  }
@@ -313,6 +313,8 @@ export declare abstract class PoTableBaseComponent implements OnChanges, OnDestr
313
313
  * @description
314
314
  *
315
315
  * Define a altura da tabela em *pixels* e fixa o cabeçalho.
316
+ *
317
+ * Ao utilizar essa propriedade será inserido o `virtual-scroll` na tabela melhorando a performance.
316
318
  */
317
319
  set height(height: number);
318
320
  get height(): number;
@@ -35,11 +35,13 @@ export declare class PoTableColumnManagerComponent implements OnChanges, OnDestr
35
35
  literals: any;
36
36
  columnsOptions: Array<PoCheckboxGroupOption>;
37
37
  visibleColumns: Array<string>;
38
+ columnUpdate: any;
38
39
  private _maxColumns;
39
40
  private defaultColumns;
40
41
  private resizeListener;
41
42
  private restoreDefaultEvent;
42
43
  private lastEmittedValue;
44
+ private minColumns;
43
45
  set maxColumns(value: number);
44
46
  get maxColumns(): number;
45
47
  constructor(renderer: Renderer2, languageService: PoLanguageService);
@@ -70,6 +72,7 @@ export declare class PoTableColumnManagerComponent implements OnChanges, OnDestr
70
72
  private initializeListeners;
71
73
  private isDisableColumn;
72
74
  private mapTableColumnsToCheckboxOptions;
75
+ private disabledLastColumn;
73
76
  private onChangeColumns;
74
77
  private updateValues;
75
78
  private removeListeners;
@@ -72,6 +72,7 @@ export declare class PoTableComponent extends PoTableBaseComponent implements Af
72
72
  tableWrapperElement: any;
73
73
  poTableTbody: any;
74
74
  poTableThead: any;
75
+ poTableTbodyVirtual: any;
75
76
  actionsIconElement: QueryList<any>;
76
77
  actionsElement: QueryList<any>;
77
78
  headersTable: QueryList<any>;
@@ -79,6 +80,7 @@ export declare class PoTableComponent extends PoTableBaseComponent implements Af
79
80
  popupTarget: any;
80
81
  tableOpacity: number;
81
82
  tooltipText: string;
83
+ itemSize: number;
82
84
  lastVisibleColumnsSelected: Array<PoTableColumn>;
83
85
  private _columnManagerTarget;
84
86
  private differ;
@@ -14,23 +14,25 @@ import * as i12 from "./po-table-cell-template/po-table-cell-template.directive"
14
14
  import * as i13 from "./po-table-column-template/po-table-column-template.directive";
15
15
  import * as i14 from "@angular/common";
16
16
  import * as i15 from "@angular/forms";
17
- import * as i16 from "@angular/router";
18
- import * as i17 from "../po-button/po-button.module";
19
- import * as i18 from "../po-field/po-checkbox-group/po-checkbox-group.module";
20
- import * as i19 from "../po-container/po-container.module";
21
- import * as i20 from "../po-loading/po-loading.module";
22
- import * as i21 from "../po-modal/po-modal.module";
23
- import * as i22 from "../po-popover/po-popover.module";
24
- import * as i23 from "../po-popup/po-popup.module";
25
- import * as i24 from "../../pipes/po-time/po-time.module";
26
- import * as i25 from "../../directives/po-tooltip/po-tooltip.module";
27
- import * as i26 from "../po-icon/po-icon.module";
17
+ import * as i16 from "@angular/cdk/scrolling";
18
+ import * as i17 from "@angular/router";
19
+ import * as i18 from "../po-button/po-button.module";
20
+ import * as i19 from "../po-field/po-checkbox-group/po-checkbox-group.module";
21
+ import * as i20 from "../po-container/po-container.module";
22
+ import * as i21 from "../po-loading/po-loading.module";
23
+ import * as i22 from "../po-modal/po-modal.module";
24
+ import * as i23 from "../po-popover/po-popover.module";
25
+ import * as i24 from "../po-popup/po-popup.module";
26
+ import * as i25 from "../../pipes/po-time/po-time.module";
27
+ import * as i26 from "../../directives/po-tooltip/po-tooltip.module";
28
+ import * as i27 from "../po-icon/po-icon.module";
29
+ import * as i28 from "../po-field/po-checkbox/po-checkbox.module";
28
30
  /**
29
31
  * @description
30
32
  * Módulo do componente po-table
31
33
  */
32
34
  export declare class PoTableModule {
33
35
  static ɵfac: i0.ɵɵFactoryDeclaration<PoTableModule, never>;
34
- static ɵmod: i0.ɵɵNgModuleDeclaration<PoTableModule, [typeof i1.PoTableComponent, typeof i2.PoTableColumnIconComponent, typeof i3.PoTableColumnLabelComponent, typeof i4.PoTableColumnLinkComponent, typeof i5.PoTableColumnManagerComponent, typeof i6.PoTableDetailComponent, typeof i7.PoTableIconComponent, typeof i8.PoTableRowTemplateDirective, typeof i9.PoTableShowSubtitleComponent, typeof i10.PoTableSubtitleCircleComponent, typeof i11.PoTableSubtitleFooterComponent, typeof i12.PoTableCellTemplateDirective, typeof i13.PoTableColumnTemplateDirective], [typeof i14.CommonModule, typeof i15.FormsModule, typeof i16.RouterModule, typeof i17.PoButtonModule, typeof i18.PoCheckboxGroupModule, typeof i19.PoContainerModule, typeof i20.PoLoadingModule, typeof i21.PoModalModule, typeof i22.PoPopoverModule, typeof i23.PoPopupModule, typeof i24.PoTimeModule, typeof i25.PoTooltipModule, typeof i26.PoIconModule], [typeof i1.PoTableComponent, typeof i8.PoTableRowTemplateDirective, typeof i12.PoTableCellTemplateDirective, typeof i13.PoTableColumnTemplateDirective]>;
36
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PoTableModule, [typeof i1.PoTableComponent, typeof i2.PoTableColumnIconComponent, typeof i3.PoTableColumnLabelComponent, typeof i4.PoTableColumnLinkComponent, typeof i5.PoTableColumnManagerComponent, typeof i6.PoTableDetailComponent, typeof i7.PoTableIconComponent, typeof i8.PoTableRowTemplateDirective, typeof i9.PoTableShowSubtitleComponent, typeof i10.PoTableSubtitleCircleComponent, typeof i11.PoTableSubtitleFooterComponent, typeof i12.PoTableCellTemplateDirective, typeof i13.PoTableColumnTemplateDirective], [typeof i14.CommonModule, typeof i15.FormsModule, typeof i16.ScrollingModule, typeof i17.RouterModule, typeof i18.PoButtonModule, typeof i19.PoCheckboxGroupModule, typeof i20.PoContainerModule, typeof i21.PoLoadingModule, typeof i22.PoModalModule, typeof i23.PoPopoverModule, typeof i24.PoPopupModule, typeof i25.PoTimeModule, typeof i26.PoTooltipModule, typeof i27.PoIconModule, typeof i28.PoCheckboxModule], [typeof i1.PoTableComponent, typeof i8.PoTableRowTemplateDirective, typeof i12.PoTableCellTemplateDirective, typeof i13.PoTableColumnTemplateDirective]>;
35
37
  static ɵinj: i0.ɵɵInjectorDeclaration<PoTableModule>;
36
38
  }
@@ -14,9 +14,11 @@ import { PoToaster } from './po-toaster/po-toaster.interface';
14
14
  * Cada um destes métodos recebe como parâmetro o objeto `PoNotification` que contém os dados da mensagem e o
15
15
  * objeto ViewContainerRef que é a representação do container do componente onde será criada a notificação.
16
16
  *
17
- * Estas notificações serão exibidas durante 10 segundos por padrão, podendo ser alterada conforme necessidade.
17
+ * Estas notificações serão exibidas durante 9 segundos por padrão, podendo ser alterada conforme necessidade.
18
18
  * Após este tempo a mesma é removida automaticamente.
19
19
  *
20
+ * Notificações com ação ou notificações de `erro` permanecerão em tela até o usuário fecha-lá ou clicar na ação.
21
+ *
20
22
  * O serviço possui um limite de até 5 notificações por vez, a partir do sexto a primeira notificação será removida dando lugar a nova.
21
23
  *
22
24
  */
@@ -51,7 +53,7 @@ export declare abstract class PoNotificationBaseService {
51
53
  /**
52
54
  * Define em milissegundos a duração padrão para as notificações.
53
55
  *
54
- * > Padrão 10 segundos.
56
+ * > Padrão 9 segundos.
55
57
  *
56
58
  * @param {number} defaultDuration Duração em milisegundos
57
59
  */
@@ -28,6 +28,10 @@ export interface PoNotification {
28
28
  * @default `Bottom`
29
29
  */
30
30
  orientation?: PoToasterOrientation;
31
- /** Define em milissegundos o tempo de duração que a notificação ficará disponível em tela. O padrão é 10000 milissegundos. */
31
+ /**
32
+ * Define em milissegundos o tempo de duração que a notificação ficará disponível em tela. O padrão é 9000 milissegundos.
33
+ *
34
+ * > Caso a notificação tenha uma ação ou seja uma notificação de `erro`, a propriedade será ignorada.
35
+ */
32
36
  duration?: number;
33
37
  }
@@ -1,8 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./po-toaster/po-toaster.component";
3
3
  import * as i2 from "@angular/common";
4
+ import * as i3 from "../../components/po-button/po-button.module";
5
+ import * as i4 from "../../components/po-icon/po-icon.module";
4
6
  export declare class PoNotificationModule {
5
7
  static ɵfac: i0.ɵɵFactoryDeclaration<PoNotificationModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<PoNotificationModule, [typeof i1.PoToasterComponent], [typeof i2.CommonModule], never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PoNotificationModule, [typeof i1.PoToasterComponent], [typeof i2.CommonModule, typeof i3.PoButtonModule, typeof i4.PoIconModule], never>;
7
9
  static ɵinj: i0.ɵɵInjectorDeclaration<PoNotificationModule>;
8
10
  }
@@ -2,6 +2,7 @@ import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, Renderer2 } fr
2
2
  import { PoLanguageService } from '../../po-language/po-language.service';
3
3
  import { PoToasterBaseComponent } from './po-toaster-base.component';
4
4
  import { PoToaster } from './po-toaster.interface';
5
+ import { PoButtonComponent } from '../../../components/po-button/po-button.component';
5
6
  import * as i0 from "@angular/core";
6
7
  /**
7
8
  * @docsPrivate
@@ -13,13 +14,16 @@ export declare class PoToasterComponent extends PoToasterBaseComponent implement
13
14
  private elementeRef?;
14
15
  private renderer?;
15
16
  toaster: ElementRef;
17
+ buttonClose: PoButtonComponent;
16
18
  alive: boolean;
19
+ language: string;
20
+ literals: any;
17
21
  private icon;
18
22
  private margin;
19
23
  private observableOnClose;
20
24
  private toasterPosition;
21
25
  private toasterType;
22
- constructor(languageService: PoLanguageService, changeDetector: ChangeDetectorRef, elementeRef?: ElementRef, renderer?: Renderer2);
26
+ constructor(poLanguageService: PoLanguageService, changeDetector: ChangeDetectorRef, elementeRef?: ElementRef, renderer?: Renderer2);
23
27
  ngOnDestroy(): void;
24
28
  ngAfterViewInit(): void;
25
29
  changePosition(position: number): void;
@@ -0,0 +1,14 @@
1
+ export declare const poToasterLiterals: {
2
+ en: {
3
+ close: string;
4
+ };
5
+ es: {
6
+ close: string;
7
+ };
8
+ pt: {
9
+ close: string;
10
+ };
11
+ ru: {
12
+ close: string;
13
+ };
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@po-ui/ng-components",
3
- "version": "6.11.0",
3
+ "version": "6.12.0",
4
4
  "tag": "next",
5
5
  "description": "PO UI - Components",
6
6
  "author": "PO UI",
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@po-ui/style": "6.11.0",
25
- "@po-ui/ng-schematics": "6.11.0",
24
+ "@po-ui/style": "6.12.0",
25
+ "@po-ui/ng-schematics": "6.12.0",
26
26
  "tslib": "^2.3.0"
27
27
  },
28
28
  "peerDependencies": {
@@ -34,7 +34,7 @@
34
34
  "@angular/platform-browser": "^13.0.2",
35
35
  "@angular/platform-browser-dynamic": "^13.0.2",
36
36
  "@angular/router": "^13.0.2",
37
- "@po-ui/style": "6.11.0",
37
+ "@po-ui/style": "6.12.0",
38
38
  "rxjs": "~7.4.0",
39
39
  "zone.js": "~0.11.4"
40
40
  },
Binary file
@@ -18,7 +18,7 @@ function default_1(options) {
18
18
  exports.default = default_1;
19
19
  function addPoPackageAndInstall() {
20
20
  return (tree, context) => {
21
- (0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '6.11.0');
21
+ (0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '6.12.0');
22
22
  // install packages
23
23
  context.addTask(new tasks_1.NodePackageInstallTask());
24
24
  };
@@ -18,14 +18,14 @@ describe('Schematic: ng-add', () => {
18
18
  skipTests: false
19
19
  };
20
20
  let appTree;
21
- beforeEach(() => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
21
+ beforeEach(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
22
22
  appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
23
23
  appTree = yield runner
24
24
  .runExternalSchematicAsync('@schematics/angular', 'application', componentOptions, appTree)
25
25
  .toPromise();
26
26
  }));
27
27
  describe('Dependencies:', () => {
28
- it('should update package.json with @po-ui/ng-components dependency and run nodePackageInstall', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
28
+ it('should update package.json with @po-ui/ng-components dependency and run nodePackageInstall', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
29
29
  const tree = yield runner.runSchematicAsync('ng-add', componentOptions, appTree).toPromise();
30
30
  const packageJson = JSON.parse(getFileContent(tree, '/package.json'));
31
31
  const dependencies = packageJson.dependencies;
@@ -35,7 +35,7 @@ describe('Schematic: ng-add', () => {
35
35
  }));
36
36
  });
37
37
  describe('Imports:', () => {
38
- it('should add the PoModule to the project module', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
38
+ it('should add the PoModule to the project module', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
39
39
  const poModuleName = 'PoModule';
40
40
  const tree = yield runner.runSchematicAsync('ng-add-setup-project', componentOptions, appTree).toPromise();
41
41
  const fileContent = getFileContent(tree, `projects/${componentOptions.name}/src/app/app.module.ts`);
@@ -44,14 +44,14 @@ describe('Schematic: ng-add', () => {
44
44
  });
45
45
  describe('Theme configuration:', () => {
46
46
  const defaultThemePath = './node_modules/@po-ui/style/css/po-theme-default.min.css';
47
- it('should add default theme in styles of build project', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
47
+ it('should add default theme in styles of build project', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
48
48
  var _a;
49
49
  const tree = yield runner.runSchematicAsync('ng-add-setup-project', componentOptions, appTree).toPromise();
50
50
  const workspace = (_a = (0, project_1.getWorkspaceConfigGracefully)(tree)) !== null && _a !== void 0 ? _a : {};
51
51
  const project = (0, project_1.getProjectFromWorkspace)(workspace);
52
52
  expectProjectStyleFile(project, defaultThemePath);
53
53
  }));
54
- it('shouldn`t add a theme file in styles of build project multiple times', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
54
+ it('shouldn`t add a theme file in styles of build project multiple times', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
55
55
  var _b;
56
56
  writeStyleFileToWorkspace(appTree, defaultThemePath);
57
57
  const tree = yield runner.runSchematicAsync('ng-add-setup-project', componentOptions, appTree).toPromise();