@po-ui/ng-components 19.11.0 → 19.13.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 (95) hide show
  1. package/fesm2022/po-ui-ng-components.mjs +21861 -20129
  2. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  3. package/lib/components/components.module.d.ts +42 -41
  4. package/lib/components/index.d.ts +1 -0
  5. package/lib/components/po-accordion/po-accordion.component.d.ts +0 -2
  6. package/lib/components/po-avatar/po-avatar.component.d.ts +0 -2
  7. package/lib/components/po-badge/po-badge-base.component.d.ts +12 -12
  8. package/lib/components/po-button/po-button-base.component.d.ts +1 -1
  9. package/lib/components/po-button/po-button.component.d.ts +1 -5
  10. package/lib/components/po-button-group/po-button-group-base.component.d.ts +1 -1
  11. package/lib/components/po-button-group/po-button-group.component.d.ts +1 -1
  12. package/lib/components/po-calendar/po-calendar-base.component.d.ts +27 -27
  13. package/lib/components/po-chart/index.d.ts +1 -0
  14. package/lib/components/po-chart/interfaces/po-chart-axis-options.interface.d.ts +7 -0
  15. package/lib/components/po-chart/interfaces/po-chart-header-options.interface.d.ts +51 -0
  16. package/lib/components/po-chart/interfaces/po-chart-literals-default.interface.d.ts +7 -0
  17. package/lib/components/po-chart/interfaces/po-chart-literals.interface.d.ts +43 -0
  18. package/lib/components/po-chart/interfaces/po-chart-options.interface.d.ts +29 -2
  19. package/lib/components/po-chart/interfaces/po-chart-serie.interface.d.ts +17 -19
  20. package/lib/components/po-chart/po-chart-switch.component.d.ts +22 -0
  21. package/lib/components/po-chart/po-chart.component.d.ts +1 -1
  22. package/lib/components/po-chart/po-chart.module.d.ts +4 -3
  23. package/lib/components/po-chart-new/index.d.ts +2 -0
  24. package/lib/components/po-chart-new/po-chart-grid-utils.d.ts +23 -0
  25. package/lib/components/po-chart-new/po-chart-new-base.component.d.ts +210 -0
  26. package/lib/components/po-chart-new/po-chart-new.component.d.ts +86 -0
  27. package/lib/components/po-chart-new/po-chart-new.module.d.ts +18 -0
  28. package/lib/components/po-container/po-container-base.component.d.ts +2 -2
  29. package/lib/components/po-dropdown/po-dropdown-base.component.d.ts +1 -1
  30. package/lib/components/po-dropdown/po-dropdown.component.d.ts +1 -3
  31. package/lib/components/po-dynamic/po-dynamic-field.interface.d.ts +4 -4
  32. package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts +14 -4
  33. package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-field.interface.d.ts +12 -12
  34. package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +0 -2
  35. package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +9 -9
  36. package/lib/components/po-field/po-email/po-email.component.d.ts +0 -2
  37. package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +23 -16
  38. package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.d.ts +2 -2
  39. package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +8 -6
  40. package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +0 -2
  41. package/lib/components/po-field/po-select/po-select.component.d.ts +0 -2
  42. package/lib/components/po-field/po-switch/po-switch.component.d.ts +53 -8
  43. package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +7 -7
  44. package/lib/components/po-list-view/po-list-view-base.component.d.ts +1 -1
  45. package/lib/components/po-list-view/po-list-view.component.d.ts +1 -1
  46. package/lib/components/po-listbox/po-listbox-base.component.d.ts +1 -1
  47. package/lib/components/po-listbox/po-listbox.component.d.ts +1 -1
  48. package/lib/components/po-menu/po-menu-base.component.d.ts +1 -1
  49. package/lib/components/po-menu/po-menu.component.d.ts +5 -5
  50. package/lib/components/po-modal/po-modal-base.component.d.ts +1 -1
  51. package/lib/components/po-modal/po-modal.component.d.ts +1 -1
  52. package/lib/components/po-popup/po-popup-base.component.d.ts +1 -1
  53. package/lib/components/po-popup/po-popup.component.d.ts +1 -1
  54. package/lib/components/po-progress/po-progress-base.component.d.ts +1 -1
  55. package/lib/components/po-progress/po-progress.component.d.ts +1 -1
  56. package/lib/components/po-search/po-search-base.component.d.ts +1 -1
  57. package/lib/components/po-search/po-search.component.d.ts +1 -1
  58. package/lib/components/po-slide/po-slide-base.component.d.ts +9 -9
  59. package/lib/components/po-table/enums/po-table-spacing.enum.d.ts +7 -5
  60. package/lib/components/po-table/interfaces/po-table-column.interface.d.ts +7 -8
  61. package/lib/components/po-table/po-table-base.component.d.ts +17 -12
  62. package/lib/components/po-table/po-table-column-label/po-table-column-label.interface.d.ts +12 -12
  63. package/lib/components/po-table/po-table-detail/po-table-detail-column.interface.d.ts +5 -6
  64. package/lib/components/po-table/po-table.component.d.ts +3 -3
  65. package/lib/components/po-tabs/po-tabs-base.component.d.ts +1 -1
  66. package/lib/components/po-tabs/po-tabs.component.d.ts +1 -1
  67. package/lib/components/po-tag/po-tag-base.component.d.ts +24 -24
  68. package/lib/components/po-toaster/po-toaster-base.component.d.ts +1 -1
  69. package/lib/components/po-toaster/po-toaster.component.d.ts +1 -1
  70. package/lib/components/po-tree-view/po-tree-view-base.component.d.ts +1 -1
  71. package/lib/components/po-tree-view/po-tree-view.component.d.ts +1 -1
  72. package/lib/directives/po-tooltip/po-tooltip-base.directive.d.ts +32 -1
  73. package/lib/services/po-color/index.d.ts +2 -0
  74. package/lib/services/po-color/po-color.module.d.ts +11 -0
  75. package/lib/services/po-color/po-color.service.d.ts +5 -1
  76. package/lib/services/po-theme/helpers/types/po-theme-dark-defaults.constant.d.ts +20 -2
  77. package/lib/services/po-theme/helpers/types/po-theme-light-defaults.constant.d.ts +4 -2
  78. package/lib/services/po-theme/interfaces/po-theme-color.interface.d.ts +36 -0
  79. package/lib/services/po-theme/po-theme.service.d.ts +42 -28
  80. package/lib/utils/util.d.ts +1 -1
  81. package/package.json +5 -4
  82. package/po-ui-ng-components-19.13.0.tgz +0 -0
  83. package/schematics/ng-add/index.js +1 -1
  84. package/schematics/ng-update/v14/index.js +1 -1
  85. package/schematics/ng-update/v15/index.js +1 -1
  86. package/schematics/ng-update/v16/index.js +1 -1
  87. package/schematics/ng-update/v17/index.js +1 -1
  88. package/schematics/ng-update/v18/index.js +2 -2
  89. package/schematics/ng-update/v19/index.js +2 -2
  90. package/schematics/ng-update/v2/index.js +1 -1
  91. package/schematics/ng-update/v3/index.js +1 -1
  92. package/schematics/ng-update/v4/index.js +1 -1
  93. package/schematics/ng-update/v5/index.js +1 -1
  94. package/schematics/ng-update/v6/index.js +1 -1
  95. package/po-ui-ng-components-19.11.0.tgz +0 -0
@@ -11,8 +11,6 @@ import * as i0 from "@angular/core";
11
11
  * <example name="po-radio-group-basic" title="PO Radio Group Basic">
12
12
  * <file name="sample-po-radio-group-basic/sample-po-radio-group-basic.component.html"> </file>
13
13
  * <file name="sample-po-radio-group-basic/sample-po-radio-group-basic.component.ts"> </file>
14
- * <file name="sample-po-radio-group-basic/sample-po-radio-group-basic.component.e2e-spec.ts"> </file>
15
- * <file name="sample-po-radio-group-basic/sample-po-radio-group-basic.component.po.ts"> </file>
16
14
  * </example>
17
15
  *
18
16
  * <example name="po-radio-group-labs" title="PO Radio Group Labs">
@@ -24,8 +24,6 @@ import * as i0 from "@angular/core";
24
24
  * <file name="sample-po-select-customer-registration/sample-po-select-customer-registration.component.html"> </file>
25
25
  * <file name="sample-po-select-customer-registration/sample-po-select-customer-registration.component.ts"> </file>
26
26
  * <file name="sample-po-select-customer-registration/sample-po-select-customer-registration.service.ts"> </file>
27
- * <file name='sample-po-select-customer-registration/sample-po-select-customer-registration.component.e2e-spec.ts'> </file>
28
- * <file name='sample-po-select-customer-registration/sample-po-select-customer-registration.component.po.ts'> </file>
29
27
  * </example>
30
28
  *
31
29
  * <example name="po-select-companies" title="PO Select Companies">
@@ -1,4 +1,5 @@
1
- import { ChangeDetectorRef, ElementRef } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, Injector, OnDestroy } from '@angular/core';
2
+ import { AbstractControl, ValidationErrors, Validator } from '@angular/forms';
2
3
  import { PoThemeService } from '../../../services';
3
4
  import { PoFieldModel } from '../po-field.model';
4
5
  import { PoSwitchLabelPosition } from './po-switch-label-position.enum';
@@ -64,8 +65,6 @@ import * as i0 from "@angular/core";
64
65
  * <example name="po-switch-labs" title="PO Switch Labs">
65
66
  * <file name="sample-po-switch-labs/sample-po-switch-labs.component.html"> </file>
66
67
  * <file name="sample-po-switch-labs/sample-po-switch-labs.component.ts"> </file>
67
- * <file name="sample-po-switch-labs/sample-po-switch-labs.component.e2e-spec.ts"> </file>
68
- * <file name="sample-po-switch-labs/sample-po-switch-labs.component.po.ts"> </file>
69
68
  * </example>
70
69
  *
71
70
  * <example name="po-switch-order" title="PO Switch - Order Summary">
@@ -78,9 +77,10 @@ import * as i0 from "@angular/core";
78
77
  * <file name="sample-po-switch-order-reactive-form/sample-po-switch-order-reactive-form.component.ts"> </file>
79
78
  * </example>
80
79
  */
81
- export declare class PoSwitchComponent extends PoFieldModel<any> {
80
+ export declare class PoSwitchComponent extends PoFieldModel<any> implements Validator, AfterViewInit, OnDestroy {
82
81
  protected poThemeService: PoThemeService;
83
- private changeDetector;
82
+ private readonly changeDetector;
83
+ private readonly injector;
84
84
  switchContainer: ElementRef;
85
85
  id: string;
86
86
  value: boolean;
@@ -89,6 +89,7 @@ export declare class PoSwitchComponent extends PoFieldModel<any> {
89
89
  private _labelPosition;
90
90
  private _formatModel;
91
91
  private _size?;
92
+ private statusChangesSubscription;
92
93
  /**
93
94
  * @optional
94
95
  *
@@ -138,6 +139,41 @@ export declare class PoSwitchComponent extends PoFieldModel<any> {
138
139
  */
139
140
  set labelOn(label: string);
140
141
  get labelOn(): string;
142
+ /**
143
+ * @optional
144
+ *
145
+ * @description
146
+ *
147
+ * Exibe a mensagem de erro configurada quando o campo estiver desligado(off/false).
148
+ *
149
+ *
150
+ */
151
+ fieldErrorMessage: string;
152
+ /**
153
+ * @optional
154
+ *
155
+ * @description
156
+ *
157
+ * Limita a exibição da mensagem de erro a duas linhas e exibe um tooltip com o texto completo.
158
+ *
159
+ * > Caso essa propriedade seja definida como `true`, a mensagem de erro será limitada a duas linhas
160
+ * e um tooltip será exibido ao passar o mouse sobre a mensagem para mostrar o conteúdo completo.
161
+ *
162
+ * @default `false`
163
+ */
164
+ errorLimit: boolean;
165
+ /**
166
+ * @optional
167
+ *
168
+ * @description
169
+ *
170
+ * Define qual valor será considerado como inválido para exibir a mensagem da propriedade `p-field-error-message`.
171
+ *
172
+ * > Caso essa propriedade seja definida como `true`, a mensagem de erro será exibida quando o campo estiver ligado(on/true).
173
+ *
174
+ * @default `false`
175
+ */
176
+ invalidValue: boolean;
141
177
  /**
142
178
  * @optional
143
179
  *
@@ -155,7 +191,11 @@ export declare class PoSwitchComponent extends PoFieldModel<any> {
155
191
  */
156
192
  set size(value: string);
157
193
  get size(): string;
158
- constructor(poThemeService: PoThemeService, changeDetector: ChangeDetectorRef);
194
+ private readonly el;
195
+ private readonly injectOptions;
196
+ private control;
197
+ constructor(poThemeService: PoThemeService, changeDetector: ChangeDetectorRef, injector: Injector);
198
+ ngOnDestroy(): void;
159
199
  /**
160
200
  * Função que atribui foco ao componente.
161
201
  *
@@ -175,13 +215,18 @@ export declare class PoSwitchComponent extends PoFieldModel<any> {
175
215
  */
176
216
  focus(): void;
177
217
  onBlur(): void;
178
- getLabelPosition(): "left" | "right";
218
+ getLabelPosition(): "right" | "left";
179
219
  onKeyDown(event: any): void;
180
220
  changeValue(value: any): void;
181
221
  eventClick(): void;
182
222
  onWriteValue(value: any): void;
223
+ validate(control: AbstractControl): ValidationErrors | null;
224
+ ngAfterViewInit(): void;
225
+ private setControl;
226
+ getErrorPattern(): string;
227
+ hasInvalidClass(): boolean;
183
228
  static ɵfac: i0.ɵɵFactoryDeclaration<PoSwitchComponent, never>;
184
- static ɵcmp: i0.ɵɵComponentDeclaration<PoSwitchComponent, "po-switch", never, { "value": { "alias": "p-value"; "required": false; }; "formatModel": { "alias": "p-format-model"; "required": false; }; "hideLabelStatus": { "alias": "p-hide-label-status"; "required": false; }; "labelPosition": { "alias": "p-label-position"; "required": false; }; "labelOff": { "alias": "p-label-off"; "required": false; }; "labelOn": { "alias": "p-label-on"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, {}, never, never, false, never>;
229
+ static ɵcmp: i0.ɵɵComponentDeclaration<PoSwitchComponent, "po-switch", never, { "value": { "alias": "p-value"; "required": false; }; "formatModel": { "alias": "p-format-model"; "required": false; }; "hideLabelStatus": { "alias": "p-hide-label-status"; "required": false; }; "labelPosition": { "alias": "p-label-position"; "required": false; }; "labelOff": { "alias": "p-label-off"; "required": false; }; "labelOn": { "alias": "p-label-on"; "required": false; }; "fieldErrorMessage": { "alias": "p-field-error-message"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "invalidValue": { "alias": "p-invalid-value"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, {}, never, never, false, never>;
185
230
  static ngAcceptInputType_value: any;
186
231
  static ngAcceptInputType_formatModel: any;
187
232
  static ngAcceptInputType_hideLabelStatus: any;
@@ -396,13 +396,13 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
396
396
  *
397
397
  * - passando um objeto implementando a interface `PoUploadLiterals` com todas as literais disponíveis;
398
398
  * - passando apenas as literais que deseja customizar:
399
- * ```
400
- * const customLiterals: PoUploadLiterals = {
401
- * folders: 'Pastas',
402
- * selectFile: 'Buscar arquivo',
403
- * startSending: 'Enviar'
404
- * };
405
- * ```
399
+ * ```
400
+ * const customLiterals: PoUploadLiterals = {
401
+ * folders: 'Pastas',
402
+ * selectFile: 'Buscar arquivo',
403
+ * startSending: 'Enviar'
404
+ * };
405
+ * ```
406
406
  *
407
407
  * E para carregar as literais customizadas, basta apenas passar o objeto para o componente:
408
408
  *
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { PoThemeService } from '../../services';
2
+ import { PoThemeService } from '../../services/po-theme/po-theme.service';
3
3
  import { PoLanguageService } from '../../services/po-language/po-language.service';
4
4
  import { PoListViewAction } from './interfaces/po-list-view-action.interface';
5
5
  import { PoListViewLiterals } from './interfaces/po-list-view-literals.interface';
@@ -1,7 +1,7 @@
1
1
  import { AfterContentInit, ChangeDetectorRef, DoCheck, IterableDiffers } from '@angular/core';
2
2
  import { PoLanguageService } from '../../services/po-language/po-language.service';
3
3
  import { PoPopupComponent } from '../po-popup/po-popup.component';
4
- import { PoThemeService } from '../../services';
4
+ import { PoThemeService } from '../../services/po-theme/po-theme.service';
5
5
  import { PoListViewAction } from './interfaces/po-list-view-action.interface';
6
6
  import { PoListViewBaseComponent } from './po-list-view-base.component';
7
7
  import { PoListViewContentTemplateDirective } from './po-list-view-content-template/po-list-view-content-template.directive';
@@ -2,7 +2,7 @@ import { EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { PoLanguageService } from '../../services/po-language/po-language.service';
3
3
  import { PoItemListType } from './enums/po-item-list-type.enum';
4
4
  import { PoItemListAction } from './po-item-list/interfaces/po-item-list-action.interface';
5
- import { PoThemeService } from '../../services';
5
+ import { PoThemeService } from '../../services/po-theme/po-theme.service';
6
6
  import { PoItemListFilterMode } from './enums/po-item-list-filter-mode.enum';
7
7
  import { PoListBoxLiterals } from './interfaces/po-listbox-literals.interface';
8
8
  import { PoItemListOptionGroup } from './po-item-list/interfaces/po-item-list-option-group.interface';
@@ -6,7 +6,7 @@ import { PoItemListOption } from './po-item-list/interfaces/po-item-list-option.
6
6
  import { PoLanguageService } from '../../services/po-language/po-language.service';
7
7
  import { PoSearchListComponent } from './po-search-list/po-search-list.component';
8
8
  import { Observable } from 'rxjs';
9
- import { PoThemeService } from '../../services';
9
+ import { PoThemeService } from '../../services/po-theme/po-theme.service';
10
10
  import * as i0 from "@angular/core";
11
11
  export declare class PoListBoxComponent extends PoListBoxBaseComponent implements AfterViewInit, OnChanges, OnDestroy {
12
12
  element: ElementRef;
@@ -1,4 +1,4 @@
1
- import { PoThemeService } from '../../services';
1
+ import { PoThemeService } from '../../services/po-theme/po-theme.service';
2
2
  import { PoLanguageService } from '../../services/po-language/po-language.service';
3
3
  import { PoMenuFilter } from './po-menu-filter/po-menu-filter.interface';
4
4
  import { PoMenuItem } from './po-menu-item.interface';
@@ -1,6 +1,6 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, DoCheck, ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
2
  import { Router } from '@angular/router';
3
- import { PoThemeService } from '../../services';
3
+ import { PoThemeService } from '../../services/po-theme/po-theme.service';
4
4
  import { PoLanguageService } from '../../services/po-language/po-language.service';
5
5
  import { PoMenuBaseComponent } from './po-menu-base.component';
6
6
  import { PoMenuHeaderTemplateDirective } from './po-menu-header-template/po-menu-header-template.directive';
@@ -129,23 +129,23 @@ export declare class PoMenuComponent extends PoMenuBaseComponent implements Afte
129
129
  /**
130
130
  * <a id="colapseMethod"></a>
131
131
  *
132
- * *Método para colapsar (retrair) o menu.
132
+ * Método para colapsar (retrair) o menu.
133
133
  */
134
134
  collapse(): void;
135
135
  debounceFilter(filter: string): void;
136
136
  /**
137
137
  * <a id="expandMethod"></a>
138
138
  *
139
- * *Método para expandir (aumentar) o menu.
139
+ * Método para expandir (aumentar) o menu.
140
140
  */
141
141
  expand(): void;
142
142
  subscribeToMenuItem(): void;
143
143
  subscribeToRoute(): void;
144
144
  /**
145
145
  * <a id="toggleMethod"></a>
146
- * *Método que colapsa e expande o menu alternadamente.
146
+ * Método que colapsa e expande o menu alternadamente.
147
147
  *
148
- * > *Os métodos apenas vão colapsar/expandir o menu se:
148
+ * > Os métodos apenas vão colapsar/expandir o menu se:
149
149
  * - Todos os itens de menu tiverem valor nas propriedades `icon` e `shortLabel`.
150
150
  */
151
151
  toggle(): void;
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { PoModalAction } from './po-modal-action.interface';
3
- import { PoThemeService } from '../../services';
3
+ import { PoThemeService } from '../../services/po-theme/po-theme.service';
4
4
  import { PoLanguageService } from '../../services/po-language/po-language.service';
5
5
  import * as i0 from "@angular/core";
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { PoModalBaseComponent } from './po-modal-base.component';
3
3
  import { PoModalFooterComponent } from './po-modal-footer/po-modal-footer.component';
4
- import { PoThemeService } from '../../services';
4
+ import { PoThemeService } from '../../services/po-theme/po-theme.service';
5
5
  import { PoActiveOverlayService } from '../../services/po-active-overlay/po-active-overlay.service';
6
6
  import { PoLanguageService } from '../../services/po-language/po-language.service';
7
7
  import * as i0 from "@angular/core";
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { PoThemeService } from '../../services';
2
+ import { PoThemeService } from '../../services/po-theme/po-theme.service';
3
3
  import { PoPopupAction } from './po-popup-action.interface';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
@@ -1,7 +1,7 @@
1
1
  import { ChangeDetectorRef, ElementRef, Renderer2, ViewContainerRef } from '@angular/core';
2
2
  import { Router } from '@angular/router';
3
3
  import { PoControlPositionService } from '../../services/po-control-position/po-control-position.service';
4
- import { PoThemeService } from '../../services';
4
+ import { PoThemeService } from '../../services/po-theme/po-theme.service';
5
5
  import { PoListBoxComponent } from '../po-listbox';
6
6
  import { PoPopupAction } from './po-popup-action.interface';
7
7
  import { PoPopupBaseComponent } from './po-popup-base.component';
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter, TemplateRef } from '@angular/core';
2
- import { PoThemeService } from '../../services';
2
+ import { PoThemeService } from '../../services/po-theme/po-theme.service';
3
3
  import { PoProgressStatus } from './enums/po-progress-status.enum';
4
4
  import { PoProgressAction } from './interfaces';
5
5
  import * as i0 from "@angular/core";
@@ -1,5 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { PoThemeService } from '../../services';
2
+ import { PoThemeService } from '../../services/po-theme/po-theme.service';
3
3
  import { PoProgressBaseComponent } from './po-progress-base.component';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import { PoLanguageService } from '../../services/po-language/po-language.service';
2
2
  import { EventEmitter, TemplateRef } from '@angular/core';
3
- import { PoThemeService } from '../../services';
3
+ import { PoThemeService } from '../../services/po-theme/po-theme.service';
4
4
  import { PoSearchFilterMode } from './enums/po-search-filter-mode.enum';
5
5
  import { PoSearchFilterSelect } from './interfaces/po-search-filter-select.interface';
6
6
  import { PoSearchLiterals } from './literals/po-search-literals';
@@ -1,5 +1,5 @@
1
1
  import { ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core';
2
- import { PoThemeService } from '../../services';
2
+ import { PoThemeService } from '../../services/po-theme/po-theme.service';
3
3
  import { PoControlPositionService } from '../../services/po-control-position/po-control-position.service';
4
4
  import { PoLanguageService } from '../../services/po-language/po-language.service';
5
5
  import { PoDropdownAction } from '../po-dropdown';
@@ -52,17 +52,17 @@ export declare abstract class PoSlideBaseComponent {
52
52
  * Array de imagens ou dados para o slide, pode ser de três formas:
53
53
  *
54
54
  * - Array implementando objetos da interface `PoSlideItem`:
55
- * ```
56
- * [{ image: '/assets/image-1', action: 'imageClick.bind(this)'}, { image: '/assets/image-2' }]
57
- * ```
55
+ * ```
56
+ * [{ image: '/assets/image-1', action: 'imageClick.bind(this)'}, { image: '/assets/image-2' }]
57
+ * ```
58
58
  * - Array de `strings` com os caminhos das imagens:
59
- * ```
60
- * ['/assets/image-1', '/assets/image-2' ]
61
- * ```
59
+ * ```
60
+ * ['/assets/image-1', '/assets/image-2' ]
61
+ * ```
62
62
  * - Array com lista de itens (para utilizar template):
63
- * ```
64
- * [{ label: '1', img: '/assets/image-1' }, { label: '2', img: '/assets/image-1' }]
65
- * ```
63
+ * ```
64
+ * [{ label: '1', img: '/assets/image-1' }, { label: '2', img: '/assets/image-1' }]
65
+ * ```
66
66
  *
67
67
  * > As setas de navegação e o controle com círculos apenas serão renderizados caso possua mais de um slide.
68
68
  */
@@ -1,14 +1,16 @@
1
1
  /**
2
- * @usedBy PoTableComponent
2
+ * @usedBy PoTableComponent, PoLookupComponent, PoPageDynamicTableComponent
3
3
  *
4
4
  * @description
5
- * Tipos de espaçamento das colunas da tabela.
5
+ * Tipos de espaçamento interno (padding) das células (**p-spacing**) do po-table.
6
6
  */
7
7
  export declare enum PoTableColumnSpacing {
8
- /** Espaçamento pequeno */
8
+ /** Espaçamento extra pequeno: 0.25rem (vertical) x 1rem (horizontal). */
9
+ ExtraSmall = "extraSmall",
10
+ /** Espaçamento pequeno: 0.5rem (vertical) x 1rem (horizontal). */
9
11
  Small = "small",
10
- /** Espaçamento médio */
12
+ /** Espaçamento médio: 0.75rem (vertical) x 1rem (horizontal). */
11
13
  Medium = "medium",
12
- /** Espaçamento grande */
14
+ /** Espaçamento grande: 1rem (vertical) x 1rem (horizontal). */
13
15
  Large = "large"
14
16
  }
@@ -99,8 +99,7 @@ export interface PoTableColumn {
99
99
  * 'HH:mm:ss'. Exemplos: 'HH:mm', 'HH:mm:ss.ffffff', 'HH:mm:ss.ff', 'mm:ss.fff'.
100
100
  * - Formato para números (number): aceita um valor seguindo o padrão [**DecimalPipe**](https://angular.io/api/common/DecimalPipe)
101
101
  * para formatação, e caso não seja informado, o número será exibido na sua forma original. Exemplo:
102
- *
103
- * + Com o valor de entrada: `50` e a valor para formatação: `'1.2-5'` o resultado será: `50.00`
102
+ * - Com o valor de entrada: `50` e a valor para formatação: `'1.2-5'` o resultado será: `50.00`
104
103
  */
105
104
  format?: string;
106
105
  /**
@@ -201,15 +200,15 @@ export interface PoTableColumn {
201
200
  * - `currency`: valores monetários.
202
201
  *
203
202
  * - `date`: valor de datas.
204
- * + Aceita os tipos _string_ e _Date_ padrão do Javascript,
205
- * por exemplo: `'2017-11-28'` ou `new Date(2017, 10, 28)`.
203
+ * + Aceita os tipos _string_ e _Date_ padrão do Javascript,
204
+ * por exemplo: `'2017-11-28'` ou `new Date(2017, 10, 28)`.
206
205
  *
207
206
  * - `dateTime`: valor de data com horário.
208
- * + Aceita o tipo _string_ no formato **ISO-8601** extendido **'yyyy-mm-ddThh:mm:ss+|-hh:mm'**
209
- * e o tipo _Date_ padrão do Javascript, por exemplo: `'2017-11-28T00:00:00-02:00'` ou `new Date(2017, 10, 28)`.
207
+ * + Aceita o tipo _string_ no formato **ISO-8601** extendido **'yyyy-mm-ddThh:mm:ss+|-hh:mm'**
208
+ * e o tipo _Date_ padrão do Javascript, por exemplo: `'2017-11-28T00:00:00-02:00'` ou `new Date(2017, 10, 28)`.
210
209
  *
211
210
  * - `detail`: array de objetos para o master-detail.
212
- * + Incompatível com `virtual-scroll`, que requer altura fixa nas linhas.
211
+ * + Incompatível com `virtual-scroll`, que requer altura fixa nas linhas.
213
212
  * - `icon`: *array* de *string* ou objetos para a coluna de ícones.
214
213
  * - `label`: texto com destaque.
215
214
  * - `link`: habilita link na coluna para ação ou navegação.
@@ -218,7 +217,7 @@ export interface PoTableColumn {
218
217
  * - `subtitle`: array de objetos para a coluna de legenda.
219
218
  *
220
219
  * - `time`: valor de horário.
221
- * + Aceita o tipo _string_ nos formatos **'HH:mm:ss'** ou **'HH:mm:ss.ffffff'**, por exemplo: `'23:12:45'`.
220
+ * + Aceita o tipo _string_ nos formatos **'HH:mm:ss'** ou **'HH:mm:ss.ffffff'**, por exemplo: `'23:12:45'`.
222
221
  * - `cellTemplate`: Indica que a coluna será utilizada como template, em conjunto com o
223
222
  * [PoTableCellTemplate](/documentation/po-table-cell-template).
224
223
  * - `columnTemplate`: Indica que a coluna será utilizada como template, em conjunto com o
@@ -2,9 +2,8 @@ import { EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core
2
2
  import { Observable } from 'rxjs';
3
3
  import { PoDateService } from '../../services/po-date/po-date.service';
4
4
  import { PoLanguageService } from '../../services/po-language/po-language.service';
5
- import { PoThemeService } from '../../services';
5
+ import { PoThemeService } from '../../services/po-theme/po-theme.service';
6
6
  import { PoSearchFilterMode } from '../po-search/enums/po-search-filter-mode.enum';
7
- import { PoTableColumnSpacing } from './enums/po-table-spacing.enum';
8
7
  import { PoTableAction } from './interfaces/po-table-action.interface';
9
8
  import { PoTableColumnSort } from './interfaces/po-table-column-sort.interface';
10
9
  import { PoTableColumn } from './interfaces/po-table-column.interface';
@@ -624,14 +623,14 @@ export declare abstract class PoTableBaseComponent implements OnChanges, OnDestr
624
623
  *
625
624
  * Caso utilizar ordenação, a coluna ordenada será enviada através do parâmetro `order`, por exemplo:
626
625
  * - Coluna decrescente:
627
- * ```
628
- * url + ?page=1&pageSize=10&order=-name
629
- * ```
626
+ * ```
627
+ * url + ?page=1&pageSize=10&order=-name
628
+ * ```
630
629
  *
631
630
  * - Coluna ascendente:
632
- * ```
633
- * url + ?page=1&pageSize=10&order=name
634
- * ```
631
+ * ```
632
+ * url + ?page=1&pageSize=10&order=name
633
+ * ```
635
634
  *
636
635
  * > Esta URL deve retornar e receber os dados no padrão de [API do PO UI](https://po-ui.io/guides/api).
637
636
  */
@@ -656,14 +655,19 @@ export declare abstract class PoTableBaseComponent implements OnChanges, OnDestr
656
655
  *
657
656
  * @description
658
657
  *
659
- * Responsável por aplicar espaçamento nas colunas.
658
+ * Define o espaçamento interno das células, impactando diretamente na altura das linhas do table. Os valores
659
+ * permitidos são definidos pelo enum **PoTableColumnSpacing**.
660
660
  *
661
- * Deve receber um dos valores do enum `PoTableColumnSpacing`.
661
+ * > Em nível de acessibilidade **AA**, caso o valor de `p-spacing` não seja definido, o valor padrão será `extraSmall`
662
+ * > nos seguintes cenários:
663
+ * > - Quando o valor de `p-components-size` for `small`;
664
+ * > - Quando o valor padrão dos componentes for configurado como `small` no
665
+ * > [serviço de tema](https://po-ui.io/documentation/po-theme).
662
666
  *
663
667
  * @default `medium`
664
668
  */
665
- set spacing(value: PoTableColumnSpacing);
666
- get spacing(): PoTableColumnSpacing;
669
+ set spacing(value: string);
670
+ get spacing(): string;
667
671
  /**
668
672
  * @optional
669
673
  *
@@ -758,6 +762,7 @@ export declare abstract class PoTableBaseComponent implements OnChanges, OnDestr
758
762
  protected abstract checkInfiniteScroll(): any;
759
763
  protected abstract changeSizeLoading(): any;
760
764
  protected abstract changeHeaderWidth(): any;
765
+ protected abstract getDefaultSpacing(): any;
761
766
  static ɵfac: i0.ɵɵFactoryDeclaration<PoTableBaseComponent, never>;
762
767
  static ɵdir: i0.ɵɵDirectiveDeclaration<PoTableBaseComponent, never, never, { "hideColumnsManager": { "alias": "p-hide-columns-manager"; "required": false; }; "hideBatchActions": { "alias": "p-hide-batch-actions"; "required": false; }; "textWrap": { "alias": "p-text-wrap"; "required": false; }; "hideActionFixedColumns": { "alias": "p-hide-action-fixed-columns"; "required": false; }; "hideTableSearch": { "alias": "p-hide-table-search"; "required": false; }; "autoCollapse": { "alias": "p-auto-collapse"; "required": false; }; "loadingShowMore": { "alias": "p-loading-show-more"; "required": false; }; "sort": { "alias": "p-sort"; "required": false; }; "showMoreDisabled": { "alias": "p-show-more-disabled"; "required": false; }; "striped": { "alias": "p-striped"; "required": false; }; "hideSelectAll": { "alias": "p-hide-select-all"; "required": false; }; "singleSelect": { "alias": "p-single-select"; "required": false; }; "selectableEntireLine": { "alias": "p-selectable-entire-line"; "required": false; }; "actionRight": { "alias": "p-actions-right"; "required": false; }; "maxColumns": { "alias": "p-max-columns"; "required": false; }; "filterType": { "alias": "p-filter-type"; "required": false; }; "componentsSize": { "alias": "p-components-size"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; "columns": { "alias": "p-columns"; "required": false; }; "container": { "alias": "p-container"; "required": false; }; "paramDeleteApi": { "alias": "p-param-delete-api"; "required": false; }; "height": { "alias": "p-height"; "required": false; }; "hideDetail": { "alias": "p-hide-detail"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "loading": { "alias": "p-loading"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "selectable": { "alias": "p-selectable"; "required": false; }; "infiniteScroll": { "alias": "p-infinite-scroll"; "required": false; }; "infiniteScrollDistance": { "alias": "p-infinite-scroll-distance"; "required": false; }; "serviceApi": { "alias": "p-service-api"; "required": false; }; "serviceDeleteApi": { "alias": "p-service-delete"; "required": false; }; "spacing": { "alias": "p-spacing"; "required": false; }; "filteredColumns": { "alias": "p-filtered-columns"; "required": false; }; "draggable": { "alias": "p-draggable"; "required": false; }; "virtualScroll": { "alias": "p-virtual-scroll"; "required": false; }; }, { "allSelected": "p-all-selected"; "allUnselected": "p-all-unselected"; "collapsed": "p-collapsed"; "expanded": "p-expanded"; "eventDelete": "p-delete-items"; "selected": "p-selected"; "showMore": "p-show-more"; "sortBy": "p-sort-by"; "unselected": "p-unselected"; "changeVisibleColumns": "p-change-visible-columns"; "columnRestoreManager": "p-restore-column-manager"; }, never, never, true, never>;
763
768
  static ngAcceptInputType_hideColumnsManager: any;
@@ -41,18 +41,18 @@ export interface PoTableColumnLabel {
41
41
  * - O nome da cor, por exemplo `blue`;
42
42
  * - Usando uma das cores do tema do PO:
43
43
  * Valores válidos:
44
- * - <span class="dot po-color-01"></span> `color-01`
45
- * - <span class="dot po-color-02"></span> `color-02`
46
- * - <span class="dot po-color-03"></span> `color-03`
47
- * - <span class="dot po-color-04"></span> `color-04`
48
- * - <span class="dot po-color-05"></span> `color-05`
49
- * - <span class="dot po-color-06"></span> `color-06`
50
- * - <span class="dot po-color-07"></span> `color-07`
51
- * - <span class="dot po-color-08"></span> `color-08`
52
- * - <span class="dot po-color-09"></span> `color-09`
53
- * - <span class="dot po-color-10"></span> `color-10`
54
- * - <span class="dot po-color-11"></span> `color-11`
55
- * - <span class="dot po-color-12"></span> `color-12`
44
+ * - <span class="dot po-color-01"></span> `color-01`
45
+ * - <span class="dot po-color-02"></span> `color-02`
46
+ * - <span class="dot po-color-03"></span> `color-03`
47
+ * - <span class="dot po-color-04"></span> `color-04`
48
+ * - <span class="dot po-color-05"></span> `color-05`
49
+ * - <span class="dot po-color-06"></span> `color-06`
50
+ * - <span class="dot po-color-07"></span> `color-07`
51
+ * - <span class="dot po-color-08"></span> `color-08`
52
+ * - <span class="dot po-color-09"></span> `color-09`
53
+ * - <span class="dot po-color-10"></span> `color-10`
54
+ * - <span class="dot po-color-11"></span> `color-11`
55
+ * - <span class="dot po-color-12"></span> `color-12`
56
56
  *
57
57
  * - Para uma melhor acessibilidade no uso do componente é recomendável utilizar cores com um melhor contraste em relação ao background.
58
58
  *
@@ -17,7 +17,7 @@ export interface PoTableDetailColumn {
17
17
  * - Formato para números (number): aceita um valor seguindo o padrão [**DecimalPipe**](https://angular.io/api/common/DecimalPipe)
18
18
  * para formatação, e caso não seja informado, o número será exibido na sua forma original. Exemplo:
19
19
  *
20
- * + Valor de entrada: `50` e valor para formatação: `'1.2-5'` o resultado será: `50.00`
20
+ * + Valor de entrada: `50` e valor para formatação: `'1.2-5'` o resultado será: `50.00`
21
21
  */
22
22
  format?: string;
23
23
  /**
@@ -43,17 +43,16 @@ export interface PoTableDetailColumn {
43
43
  * - `currency`: valores monetários.
44
44
  *
45
45
  * - `date`: valor de datas.
46
- * + Aceita os tipos _string_ e _Date_ padrão do Javascript,
47
- * por exemplo: `'2017-11-28'` ou `new Date(2017, 10, 28)`.
46
+ * + Aceita os tipos _string_ e _Date_ padrão do Javascript,
47
+ * por exemplo: `'2017-11-28'` ou `new Date(2017, 10, 28)`.
48
48
  *
49
49
  * - `time`: valor de horário.
50
50
  * - `number`: valores numéricos.
51
51
  *
52
52
  * - `dateTime`: valor de data com horário.
53
- * + Aceita o tipo _string_ no formato **ISO-8601** extendido **'yyyy-mm-ddThh:mm:ss+|-hh:mm'**
53
+ * + Aceita o tipo _string_ no formato **ISO-8601** extendido **'yyyy-mm-ddThh:mm:ss+|-hh:mm'**
54
54
  * e o tipo _Date_ padrão do Javascript, por exemplo: `'2017-11-28T00:00:00-02:00'` ou `new Date(2017, 10, 28)`.
55
- *
56
- * + Aceita o tipo _string_ nos formatos **'HH:mm:ss'** ou **'HH:mm:ss.ffffff'**, por exemplo: `'23:12:45'`.
55
+ * + Aceita o tipo _string_ nos formatos **'HH:mm:ss'** ou **'HH:mm:ss.ffffff'**, por exemplo: `'23:12:45'`.
57
56
  *
58
57
  * @default `string`
59
58
  */
@@ -8,7 +8,7 @@ import { PoNotificationService } from '../../services/po-notification/po-notific
8
8
  import { PoModalAction, PoModalComponent } from '../po-modal';
9
9
  import { PoPopupComponent } from '../po-popup/po-popup.component';
10
10
  import { PoTableColumnLabel } from './po-table-column-label/po-table-column-label.interface';
11
- import { PoThemeService } from '../../services';
11
+ import { PoThemeService } from '../../services/po-theme/po-theme.service';
12
12
  import { PoTableAction } from './interfaces/po-table-action.interface';
13
13
  import { PoTableColumn } from './interfaces/po-table-column.interface';
14
14
  import { PoTableBaseComponent, QueryParamsType } from './po-table-base.component';
@@ -17,6 +17,7 @@ import { PoTableColumnTemplateDirective } from './po-table-column-template/po-ta
17
17
  import { PoTableRowTemplateDirective } from './po-table-row-template/po-table-row-template.directive';
18
18
  import { PoTableSubtitleColumn } from './po-table-subtitle-footer/po-table-subtitle-column.interface';
19
19
  import { PoTableService } from './services/po-table.service';
20
+ import { PoTableColumnSpacing } from './enums/po-table-spacing.enum';
20
21
  import * as i0 from "@angular/core";
21
22
  /**
22
23
  * @docsExtends PoTableBaseComponent
@@ -31,8 +32,6 @@ import * as i0 from "@angular/core";
31
32
  * <example name="po-table-labs" title="PO Table Labs">
32
33
  * <file name="sample-po-table-labs/sample-po-table-labs.component.ts"> </file>
33
34
  * <file name="sample-po-table-labs/sample-po-table-labs.component.html"> </file>
34
- * <file name="sample-po-table-labs/sample-po-table-labs.component.e2e-spec.ts"> </file>
35
- * <file name="sample-po-table-labs/sample-po-table-labs.component.po.ts"> </file>
36
35
  * <file name="sample-po-table-labs/sample-po-table-labs.service.ts"> </file>
37
36
  * </example>
38
37
  *
@@ -289,6 +288,7 @@ export declare class PoTableComponent extends PoTableBaseComponent implements Af
289
288
  protected checkInfiniteScroll(): void;
290
289
  private changesAfterDelete;
291
290
  protected changeSizeLoading(): void;
291
+ protected getDefaultSpacing(): PoTableColumnSpacing;
292
292
  private checkChangesItems;
293
293
  private checkingIfColumnHasTooltip;
294
294
  private countExtraColumns;
@@ -1,4 +1,4 @@
1
- import { PoThemeService } from '../../services';
1
+ import { PoThemeService } from '../../services/po-theme/po-theme.service';
2
2
  import * as i0 from "@angular/core";
3
3
  /**
4
4
  * @description
@@ -1,6 +1,6 @@
1
1
  import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
2
2
  import { PoLanguageService } from '../../services/po-language/po-language.service';
3
- import { PoThemeService } from '../../services';
3
+ import { PoThemeService } from '../../services/po-theme/po-theme.service';
4
4
  import { PoTabDropdownComponent } from './po-tab-dropdown/po-tab-dropdown.component';
5
5
  import { PoTabComponent } from './po-tab/po-tab.component';
6
6
  import { PoTabsBaseComponent } from './po-tabs-base.component';