@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.
- package/esm2020/lib/components/po-button/po-button-base.component.mjs +31 -8
- package/esm2020/lib/components/po-button/po-button.component.mjs +4 -4
- package/esm2020/lib/components/po-field/index.mjs +2 -1
- package/esm2020/lib/components/po-field/po-checkbox/po-checkbox.module.mjs +20 -0
- package/esm2020/lib/components/po-field/po-field.module.mjs +15 -13
- package/esm2020/lib/components/po-menu/po-menu-base.component.mjs +46 -6
- package/esm2020/lib/components/po-menu/po-menu.component.mjs +5 -5
- package/esm2020/lib/components/po-table/po-table-base.component.mjs +6 -2
- package/esm2020/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.mjs +17 -3
- package/esm2020/lib/components/po-table/po-table-detail/po-table-detail.component.mjs +40 -40
- package/esm2020/lib/components/po-table/po-table.component.mjs +441 -438
- package/esm2020/lib/components/po-table/po-table.module.mjs +12 -4
- package/esm2020/lib/services/po-notification/po-notification-base.service.mjs +6 -4
- package/esm2020/lib/services/po-notification/po-notification.interface.mjs +1 -1
- package/esm2020/lib/services/po-notification/po-notification.module.mjs +6 -4
- package/esm2020/lib/services/po-notification/po-notification.service.mjs +3 -2
- package/esm2020/lib/services/po-notification/po-toaster/po-toaster.component.mjs +49 -32
- package/esm2020/lib/services/po-notification/po-toaster/po-toaster.literals.mjs +15 -0
- package/fesm2015/po-ui-ng-components.mjs +968 -840
- package/fesm2015/po-ui-ng-components.mjs.map +1 -1
- package/fesm2020/po-ui-ng-components.mjs +960 -825
- package/fesm2020/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-button/po-button-base.component.d.ts +16 -6
- package/lib/components/po-field/index.d.ts +1 -0
- package/lib/components/po-field/po-checkbox/po-checkbox.module.d.ts +9 -0
- package/lib/components/po-field/po-field.module.d.ts +54 -54
- package/lib/components/po-menu/po-menu-base.component.d.ts +19 -1
- package/lib/components/po-table/po-table-base.component.d.ts +2 -0
- package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts +3 -0
- package/lib/components/po-table/po-table.component.d.ts +2 -0
- package/lib/components/po-table/po-table.module.d.ts +14 -12
- package/lib/services/po-notification/po-notification-base.service.d.ts +4 -2
- package/lib/services/po-notification/po-notification.interface.d.ts +5 -1
- package/lib/services/po-notification/po-notification.module.d.ts +3 -1
- package/lib/services/po-notification/po-toaster/po-toaster.component.d.ts +5 -1
- package/lib/services/po-notification/po-toaster/po-toaster.literals.d.ts +14 -0
- package/package.json +4 -4
- package/po-ui-ng-components-6.12.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.spec.js +5 -5
- package/schematics/ng-generate/po-page-default/index.spec.js +12 -12
- package/schematics/ng-generate/po-page-detail/index.spec.js +12 -12
- package/schematics/ng-generate/po-page-edit/index.spec.js +12 -12
- package/schematics/ng-generate/po-page-list/index.spec.js +12 -12
- package/schematics/ng-generate/sidemenu/index.spec.js +4 -4
- 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-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
|
|
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
|
|
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`:
|
|
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-
|
|
3
|
-
import * as i2 from "./po-combo/po-combo.
|
|
4
|
-
import * as i3 from "./po-
|
|
5
|
-
import * as i4 from "./po-
|
|
6
|
-
import * as i5 from "./po-
|
|
7
|
-
import * as i6 from "./po-
|
|
8
|
-
import * as i7 from "./po-
|
|
9
|
-
import * as i8 from "./po-
|
|
10
|
-
import * as i9 from "./po-lookup/po-lookup.component";
|
|
11
|
-
import * as i10 from "./po-
|
|
12
|
-
import * as i11 from "./po-multiselect/po-multiselect.component";
|
|
13
|
-
import * as i12 from "./po-multiselect/po-multiselect-
|
|
14
|
-
import * as i13 from "./po-multiselect/po-multiselect-
|
|
15
|
-
import * as i14 from "./po-
|
|
16
|
-
import * as i15 from "./po-
|
|
17
|
-
import * as i16 from "./po-
|
|
18
|
-
import * as i17 from "./po-
|
|
19
|
-
import * as i18 from "./po-rich-text/po-rich-text
|
|
20
|
-
import * as i19 from "./po-rich-text/po-rich-text.component";
|
|
21
|
-
import * as i20 from "./po-rich-text/po-rich-text-
|
|
22
|
-
import * as i21 from "./po-rich-text/po-rich-text-
|
|
23
|
-
import * as i22 from "./po-
|
|
24
|
-
import * as i23 from "./po-select/po-select.
|
|
25
|
-
import * as i24 from "./po-
|
|
26
|
-
import * as i25 from "./po-
|
|
27
|
-
import * as i26 from "./po-
|
|
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.
|
|
30
|
-
import * as i29 from "./po-upload/po-upload-drag-drop/po-upload-drag-drop.
|
|
31
|
-
import * as i30 from "./po-upload/po-upload-drag-drop/po-upload-drag-drop-area
|
|
32
|
-
import * as i31 from "./po-upload/po-upload-
|
|
33
|
-
import * as i32 from "./po-
|
|
34
|
-
import * as i33 from "
|
|
35
|
-
import * as i34 from "@angular/
|
|
36
|
-
import * as i35 from "@angular/
|
|
37
|
-
import * as i36 from "
|
|
38
|
-
import * as i37 from "../po-button
|
|
39
|
-
import * as i38 from "
|
|
40
|
-
import * as i39 from "
|
|
41
|
-
import * as i40 from "
|
|
42
|
-
import * as i41 from "
|
|
43
|
-
import * as i42 from "
|
|
44
|
-
import * as i43 from "
|
|
45
|
-
import * as i44 from "../po-disclaimer
|
|
46
|
-
import * as i45 from "
|
|
47
|
-
import * as i46 from "
|
|
48
|
-
import * as i47 from "../po-
|
|
49
|
-
import * as i48 from "../po-
|
|
50
|
-
import * as i49 from "
|
|
51
|
-
import * as i50 from "
|
|
52
|
-
import * as i51 from "
|
|
53
|
-
import * as i52 from "
|
|
54
|
-
import * as i53 from "
|
|
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.
|
|
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;
|
package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts
CHANGED
|
@@ -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/
|
|
18
|
-
import * as i17 from "
|
|
19
|
-
import * as i18 from "../po-
|
|
20
|
-
import * as i19 from "../po-
|
|
21
|
-
import * as i20 from "../po-
|
|
22
|
-
import * as i21 from "../po-
|
|
23
|
-
import * as i22 from "../po-
|
|
24
|
-
import * as i23 from "../po-
|
|
25
|
-
import * as i24 from "
|
|
26
|
-
import * as i25 from "../../
|
|
27
|
-
import * as i26 from "
|
|
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.
|
|
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
|
|
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
|
|
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
|
-
/**
|
|
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(
|
|
26
|
+
constructor(poLanguageService: PoLanguageService, changeDetector: ChangeDetectorRef, elementeRef?: ElementRef, renderer?: Renderer2);
|
|
23
27
|
ngOnDestroy(): void;
|
|
24
28
|
ngAfterViewInit(): void;
|
|
25
29
|
changePosition(position: number): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "6.
|
|
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.
|
|
25
|
-
"@po-ui/ng-schematics": "6.
|
|
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.
|
|
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.
|
|
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(() =>
|
|
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', () =>
|
|
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', () =>
|
|
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', () =>
|
|
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', () =>
|
|
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();
|