@po-ui/ng-components 19.12.0 → 19.14.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.
- package/fesm2022/po-ui-ng-components.mjs +27423 -25781
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/components.module.d.ts +42 -41
- package/lib/components/index.d.ts +1 -0
- package/lib/components/po-accordion/po-accordion.component.d.ts +0 -2
- package/lib/components/po-avatar/po-avatar.component.d.ts +0 -2
- package/lib/components/po-badge/po-badge-base.component.d.ts +12 -12
- package/lib/components/po-button/po-button-base.component.d.ts +1 -1
- package/lib/components/po-button/po-button.component.d.ts +1 -5
- package/lib/components/po-button-group/po-button-group-base.component.d.ts +1 -1
- package/lib/components/po-button-group/po-button-group.component.d.ts +1 -1
- package/lib/components/po-calendar/po-calendar-base.component.d.ts +27 -27
- package/lib/components/po-chart/index.d.ts +1 -0
- package/lib/components/po-chart/interfaces/po-chart-axis-options.interface.d.ts +7 -0
- package/lib/components/po-chart/interfaces/po-chart-header-options.interface.d.ts +51 -0
- package/lib/components/po-chart/interfaces/po-chart-literals-default.interface.d.ts +7 -0
- package/lib/components/po-chart/interfaces/po-chart-literals.interface.d.ts +43 -0
- package/lib/components/po-chart/interfaces/po-chart-options.interface.d.ts +29 -2
- package/lib/components/po-chart/interfaces/po-chart-serie.interface.d.ts +17 -19
- package/lib/components/po-chart/po-chart-switch.component.d.ts +22 -0
- package/lib/components/po-chart/po-chart.component.d.ts +1 -1
- package/lib/components/po-chart/po-chart.module.d.ts +4 -3
- package/lib/components/po-chart-new/index.d.ts +2 -0
- package/lib/components/po-chart-new/po-chart-grid-utils.d.ts +23 -0
- package/lib/components/po-chart-new/po-chart-new-base.component.d.ts +210 -0
- package/lib/components/po-chart-new/po-chart-new.component.d.ts +86 -0
- package/lib/components/po-chart-new/po-chart-new.module.d.ts +18 -0
- package/lib/components/po-container/po-container-base.component.d.ts +2 -2
- package/lib/components/po-dropdown/po-dropdown-base.component.d.ts +1 -1
- package/lib/components/po-dropdown/po-dropdown.component.d.ts +1 -3
- package/lib/components/po-dynamic/po-dynamic-field.interface.d.ts +4 -4
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.d.ts +4 -4
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-field.interface.d.ts +12 -12
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +9 -1
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +1 -1
- package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +0 -2
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +9 -9
- package/lib/components/po-field/po-email/po-email.component.d.ts +0 -2
- package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +23 -16
- package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.d.ts +2 -2
- package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +8 -6
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +9 -1
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +1 -1
- package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +0 -2
- package/lib/components/po-field/po-select/po-select.component.d.ts +10 -4
- package/lib/components/po-field/po-switch/po-switch.component.d.ts +1 -3
- package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +7 -7
- package/lib/components/po-list-view/po-list-view-base.component.d.ts +1 -1
- package/lib/components/po-list-view/po-list-view.component.d.ts +1 -1
- package/lib/components/po-listbox/po-listbox-base.component.d.ts +1 -1
- package/lib/components/po-listbox/po-listbox.component.d.ts +1 -1
- package/lib/components/po-menu/po-menu-base.component.d.ts +1 -1
- package/lib/components/po-menu/po-menu.component.d.ts +5 -5
- package/lib/components/po-modal/po-modal-base.component.d.ts +1 -1
- package/lib/components/po-modal/po-modal.component.d.ts +1 -1
- package/lib/components/po-popup/po-popup-base.component.d.ts +1 -1
- package/lib/components/po-popup/po-popup.component.d.ts +1 -1
- package/lib/components/po-progress/po-progress-base.component.d.ts +1 -1
- package/lib/components/po-progress/po-progress.component.d.ts +1 -1
- package/lib/components/po-search/po-search-base.component.d.ts +1 -1
- package/lib/components/po-search/po-search.component.d.ts +1 -1
- package/lib/components/po-slide/po-slide-base.component.d.ts +9 -9
- package/lib/components/po-table/enums/po-table-spacing.enum.d.ts +7 -5
- package/lib/components/po-table/interfaces/po-table-column.interface.d.ts +7 -8
- package/lib/components/po-table/po-table-base.component.d.ts +17 -12
- package/lib/components/po-table/po-table-column-label/po-table-column-label.interface.d.ts +12 -12
- package/lib/components/po-table/po-table-detail/po-table-detail-column.interface.d.ts +5 -6
- package/lib/components/po-table/po-table.component.d.ts +3 -3
- package/lib/components/po-tabs/po-tabs-base.component.d.ts +1 -1
- package/lib/components/po-tabs/po-tabs.component.d.ts +1 -1
- package/lib/components/po-tag/po-tag-base.component.d.ts +24 -24
- package/lib/components/po-toaster/po-toaster-base.component.d.ts +1 -1
- package/lib/components/po-toaster/po-toaster.component.d.ts +1 -1
- package/lib/components/po-tree-view/po-tree-view-base.component.d.ts +1 -1
- package/lib/components/po-tree-view/po-tree-view.component.d.ts +1 -1
- package/lib/directives/po-tooltip/po-tooltip-base.directive.d.ts +32 -1
- package/lib/services/po-color/index.d.ts +2 -0
- package/lib/services/po-color/po-color.module.d.ts +11 -0
- package/lib/services/po-color/po-color.service.d.ts +5 -1
- package/lib/services/po-theme/helpers/types/po-theme-dark-defaults.constant.d.ts +20 -2
- package/lib/services/po-theme/helpers/types/po-theme-light-defaults.constant.d.ts +4 -2
- package/lib/services/po-theme/interfaces/po-theme-color.interface.d.ts +36 -0
- package/lib/services/po-theme/po-theme.service.d.ts +1 -0
- package/lib/utils/util.d.ts +1 -1
- package/package.json +5 -4
- package/po-ui-ng-components-19.14.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v14/index.js +1 -1
- package/schematics/ng-update/v15/index.js +1 -1
- package/schematics/ng-update/v16/index.js +1 -1
- package/schematics/ng-update/v17/index.js +1 -1
- package/schematics/ng-update/v18/index.js +2 -2
- package/schematics/ng-update/v19/index.js +2 -2
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/po-ui-ng-components-19.12.0.tgz +0 -0
package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.d.ts
CHANGED
|
@@ -71,8 +71,8 @@ export declare abstract class PoLookupModalBaseComponent implements OnDestroy, O
|
|
|
71
71
|
*/
|
|
72
72
|
fieldValue: string;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
75
|
-
*
|
|
74
|
+
* Define o espaçamento interno das células, impactando diretamente na altura das linhas do table dentro do modal. Os
|
|
75
|
+
* valores permitidos são definidos pelo enum **PoTableColumnSpacing**.
|
|
76
76
|
*/
|
|
77
77
|
spacing: PoTableColumnSpacing;
|
|
78
78
|
/** Define o tamanho do componente. */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, DoCheck, ElementRef, Injector, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
2
|
import { PoThemeService } from '../../../services';
|
|
3
3
|
import { PoLanguageService } from '../../../services/po-language/po-language.service';
|
|
4
|
+
import { PoTableColumnSpacing } from '../../po-table';
|
|
4
5
|
import { PoLookupBaseComponent } from './po-lookup-base.component';
|
|
5
6
|
import { PoLookupFilterService } from './services/po-lookup-filter.service';
|
|
6
7
|
import { PoLookupModalService } from './services/po-lookup-modal.service';
|
|
@@ -18,12 +19,12 @@ import * as i0 from "@angular/core";
|
|
|
18
19
|
*
|
|
19
20
|
* - Caso o po-lookup contenha o [(ngModel)] sem o atributo name, ocorrerá um erro de angular.
|
|
20
21
|
* Então será necessário informar o atributo name ou o atributo [ngModelOptions]="{standalone: true}".
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
22
|
+
* ```
|
|
23
|
+
* <po-lookup
|
|
24
|
+
* [(ngModel)]="pessoa.nome"
|
|
25
|
+
* [ngModelOptions]="{standalone: true}">
|
|
26
|
+
* </po-lookup>
|
|
27
|
+
* ```
|
|
27
28
|
*
|
|
28
29
|
* #### Tokens customizáveis
|
|
29
30
|
*
|
|
@@ -175,6 +176,7 @@ export declare class PoLookupComponent extends PoLookupBaseComponent implements
|
|
|
175
176
|
*/
|
|
176
177
|
showAdditionalHelp(): boolean;
|
|
177
178
|
showAdditionalHelpIcon(): boolean;
|
|
179
|
+
protected getDefaultSpacing(): PoTableColumnSpacing;
|
|
178
180
|
private isAdditionalHelpEventTriggered;
|
|
179
181
|
private isAllowedOpenModal;
|
|
180
182
|
private formatFields;
|
|
@@ -98,6 +98,14 @@ export declare abstract class PoMultiselectBaseComponent implements ControlValue
|
|
|
98
98
|
* @default `false`
|
|
99
99
|
*/
|
|
100
100
|
autoFocus: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* @optional
|
|
103
|
+
*
|
|
104
|
+
* @description
|
|
105
|
+
*
|
|
106
|
+
* Evento disparado ao sair do campo.
|
|
107
|
+
*/
|
|
108
|
+
blur: EventEmitter<any>;
|
|
101
109
|
/** Label no componente. */
|
|
102
110
|
label?: string;
|
|
103
111
|
/** Texto de apoio para o campo. */
|
|
@@ -518,7 +526,7 @@ export declare abstract class PoMultiselectBaseComponent implements ControlValue
|
|
|
518
526
|
abstract applyFilter(value?: string): Observable<Array<PoMultiselectOption | any>>;
|
|
519
527
|
abstract updateVisibleItems(): void;
|
|
520
528
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoMultiselectBaseComponent, never>;
|
|
521
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoMultiselectBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "placeholderSearch": { "alias": "p-placeholder-search"; "required": false; }; "name": { "alias": "name"; "required": false; }; "hideSelectAll": { "alias": "p-hide-select-all"; "required": false; }; "fieldErrorMessage": { "alias": "p-field-error-message"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "controlValueWithLabel": { "alias": "p-control-value-with-label"; "required": false; }; "listboxControlPosition": { "alias": "p-listbox-control-position"; "required": false; }; "filterService": { "alias": "p-filter-service"; "required": false; }; "autoHeight": { "alias": "p-auto-height"; "required": false; }; "debounceTime": { "alias": "p-debounce-time"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "hideSearch": { "alias": "p-hide-search"; "required": false; }; "options": { "alias": "p-options"; "required": false; }; "sort": { "alias": "p-sort"; "required": false; }; "filterMode": { "alias": "p-filter-mode"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "change": "p-change"; "keydown": "p-keydown"; }, never, never, true, never>;
|
|
529
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoMultiselectBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "placeholderSearch": { "alias": "p-placeholder-search"; "required": false; }; "name": { "alias": "name"; "required": false; }; "hideSelectAll": { "alias": "p-hide-select-all"; "required": false; }; "fieldErrorMessage": { "alias": "p-field-error-message"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "controlValueWithLabel": { "alias": "p-control-value-with-label"; "required": false; }; "listboxControlPosition": { "alias": "p-listbox-control-position"; "required": false; }; "filterService": { "alias": "p-filter-service"; "required": false; }; "autoHeight": { "alias": "p-auto-height"; "required": false; }; "debounceTime": { "alias": "p-debounce-time"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "hideSearch": { "alias": "p-hide-search"; "required": false; }; "options": { "alias": "p-options"; "required": false; }; "sort": { "alias": "p-sort"; "required": false; }; "filterMode": { "alias": "p-filter-mode"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; }, { "blur": "p-blur"; "additionalHelp": "p-additional-help"; "change": "p-change"; "keydown": "p-keydown"; }, never, never, true, never>;
|
|
522
530
|
static ngAcceptInputType_autoFocus: any;
|
|
523
531
|
static ngAcceptInputType_hideSelectAll: any;
|
|
524
532
|
static ngAcceptInputType_appendBox: any;
|
|
@@ -110,7 +110,7 @@ export declare class PoMultiselectComponent extends PoMultiselectBaseComponent i
|
|
|
110
110
|
changeItems(changedItems: any): void;
|
|
111
111
|
updateVisibleItems(): void;
|
|
112
112
|
debounceResize(): void;
|
|
113
|
-
onBlur(): void;
|
|
113
|
+
onBlur(event: any): void;
|
|
114
114
|
onKeyDown(event?: any): void;
|
|
115
115
|
toggleDropdownVisibility(): void;
|
|
116
116
|
onKeyDownDropdown(event: KeyboardEvent, index: number): void;
|
|
@@ -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">
|
|
@@ -81,6 +79,14 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
|
|
|
81
79
|
protected poThemeService: PoThemeService;
|
|
82
80
|
private _iconToken;
|
|
83
81
|
selectElement: ElementRef;
|
|
82
|
+
/**
|
|
83
|
+
* @optional
|
|
84
|
+
*
|
|
85
|
+
* @description
|
|
86
|
+
*
|
|
87
|
+
* Evento disparado ao sair do campo.
|
|
88
|
+
*/
|
|
89
|
+
blur: EventEmitter<any>;
|
|
84
90
|
/**
|
|
85
91
|
* @optional
|
|
86
92
|
*
|
|
@@ -226,7 +232,7 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
|
|
|
226
232
|
focus(): void;
|
|
227
233
|
getErrorPattern(): string;
|
|
228
234
|
hasInvalidClass(): any;
|
|
229
|
-
onBlur(): void;
|
|
235
|
+
onBlur(event: any): void;
|
|
230
236
|
onSelectChange(value: any): void;
|
|
231
237
|
onUpdateOptions(): void;
|
|
232
238
|
updateValues(option: any): void;
|
|
@@ -266,7 +272,7 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
|
|
|
266
272
|
private separateOptions;
|
|
267
273
|
private validateOptions;
|
|
268
274
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoSelectComponent, [{ optional: true; }, null, null, null, null]>;
|
|
269
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoSelectComponent, "po-select", never, { "readonly": { "alias": "p-readonly"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "options": { "alias": "p-options"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "controlValueWithLabel": { "alias": "p-control-value-with-label"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, { "ngModelChange": "ngModelChange"; }, never, never, false, never>;
|
|
275
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoSelectComponent, "po-select", never, { "readonly": { "alias": "p-readonly"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "options": { "alias": "p-options"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "controlValueWithLabel": { "alias": "p-control-value-with-label"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, { "blur": "p-blur"; "ngModelChange": "ngModelChange"; }, never, never, false, never>;
|
|
270
276
|
static ngAcceptInputType_readonly: any;
|
|
271
277
|
static ngAcceptInputType_controlValueWithLabel: any;
|
|
272
278
|
}
|
|
@@ -65,8 +65,6 @@ import * as i0 from "@angular/core";
|
|
|
65
65
|
* <example name="po-switch-labs" title="PO Switch Labs">
|
|
66
66
|
* <file name="sample-po-switch-labs/sample-po-switch-labs.component.html"> </file>
|
|
67
67
|
* <file name="sample-po-switch-labs/sample-po-switch-labs.component.ts"> </file>
|
|
68
|
-
* <file name="sample-po-switch-labs/sample-po-switch-labs.component.e2e-spec.ts"> </file>
|
|
69
|
-
* <file name="sample-po-switch-labs/sample-po-switch-labs.component.po.ts"> </file>
|
|
70
68
|
* </example>
|
|
71
69
|
*
|
|
72
70
|
* <example name="po-switch-order" title="PO Switch - Order Summary">
|
|
@@ -217,7 +215,7 @@ export declare class PoSwitchComponent extends PoFieldModel<any> implements Vali
|
|
|
217
215
|
*/
|
|
218
216
|
focus(): void;
|
|
219
217
|
onBlur(): void;
|
|
220
|
-
getLabelPosition(): "
|
|
218
|
+
getLabelPosition(): "right" | "left";
|
|
221
219
|
onKeyDown(event: any): void;
|
|
222
220
|
changeValue(value: any): void;
|
|
223
221
|
eventClick(): void;
|
|
@@ -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
|
-
*
|
|
401
|
-
*
|
|
402
|
-
*
|
|
403
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
146
|
+
* Método que colapsa e expande o menu alternadamente.
|
|
147
147
|
*
|
|
148
|
-
* >
|
|
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
|
-
*
|
|
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
|
-
*
|
|
61
|
-
*
|
|
59
|
+
* ```
|
|
60
|
+
* ['/assets/image-1', '/assets/image-2' ]
|
|
61
|
+
* ```
|
|
62
62
|
* - Array com lista de itens (para utilizar template):
|
|
63
|
-
*
|
|
64
|
-
*
|
|
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
|
|
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
|
-
*
|
|
205
|
-
*
|
|
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
|
-
*
|
|
209
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
629
|
-
*
|
|
626
|
+
* ```
|
|
627
|
+
* url + ?page=1&pageSize=10&order=-name
|
|
628
|
+
* ```
|
|
630
629
|
*
|
|
631
630
|
* - Coluna ascendente:
|
|
632
|
-
*
|
|
633
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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:
|
|
666
|
-
get spacing():
|
|
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
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
47
|
-
*
|
|
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
|
-
*
|
|
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;
|