@po-ui/ng-components 21.9.0 → 21.10.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 +172 -21
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-avatar/po-avatar.component.d.ts +1 -0
- package/lib/components/po-badge/po-badge-base.component.d.ts +15 -0
- package/lib/components/po-container/po-container.component.d.ts +1 -0
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +1 -0
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +1 -0
- package/lib/components/po-field/po-select/po-select.component.d.ts +1 -0
- package/lib/components/po-loading/po-loading-overlay/po-loading-overlay.component.d.ts +2 -0
- package/lib/components/po-menu/po-menu.component.d.ts +2 -0
- package/lib/components/po-page/po-page-default/po-page-default.component.d.ts +1 -0
- package/lib/components/po-popup/po-popup.component.d.ts +2 -0
- package/lib/components/po-progress/po-progress.component.d.ts +1 -0
- package/lib/components/po-search/po-search.component.d.ts +3 -0
- package/lib/components/po-stepper/po-stepper.component.d.ts +1 -0
- package/lib/components/po-table/interfaces/po-table-column.interface.d.ts +14 -4
- package/lib/components/po-table/po-table-base.component.d.ts +22 -0
- package/lib/components/po-table/po-table-column-icon/po-table-column-icon.interface.d.ts +10 -0
- package/lib/components/po-table/po-table-column-label/po-table-column-label.interface.d.ts +21 -0
- package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts +1 -0
- package/lib/components/po-table/po-table-subtitle-footer/po-table-subtitle-column.interface.d.ts +10 -0
- package/lib/components/po-table/po-table.component.d.ts +1 -0
- package/lib/components/po-tag/po-tag-base.component.d.ts +20 -1
- package/lib/components/po-tag/po-tag.component.d.ts +7 -0
- package/lib/components/po-widget/po-widget.component.d.ts +2 -0
- package/lib/enums/po-caption-tag-color.enum.d.ts +43 -0
- package/package.json +4 -4
- package/po-ui-ng-components-21.10.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/v20/index.js +2 -2
- package/schematics/ng-update/v21/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/types/po-ui-ng-components.d.ts +142 -7
- package/po-ui-ng-components-21.9.0.tgz +0 -0
|
@@ -18,6 +18,7 @@ import { PoAvatarBaseComponent } from './po-avatar-base.component';
|
|
|
18
18
|
* <example name="po-avatar-business-card" title="PO Avatar - Business Card" >
|
|
19
19
|
* <file name="sample-po-avatar-business-card/sample-po-avatar-business-card.component.html"> </file>
|
|
20
20
|
* <file name="sample-po-avatar-business-card/sample-po-avatar-business-card.component.ts"> </file>
|
|
21
|
+
* <file name="sample-po-avatar-business-card/sample-po-avatar-business-card.component.css"> </file>
|
|
21
22
|
* </example>
|
|
22
23
|
*/
|
|
23
24
|
export declare class PoAvatarComponent extends PoAvatarBaseComponent implements OnInit {
|
|
@@ -45,6 +45,21 @@ export declare class PoBadgeBaseComponent {
|
|
|
45
45
|
* - <span class="dot po-color-11"></span> `color-11`
|
|
46
46
|
* - <span class="dot po-color-12"></span> `color-12`
|
|
47
47
|
*
|
|
48
|
+
* > Também é possível utilizar as 35 cores da paleta **Caption Tag Colors**:
|
|
49
|
+
*
|
|
50
|
+
* - <span class="dot po-caption-tag-01"></span> `caption-tag-01` <span class="dot po-caption-tag-02"></span> `caption-tag-02` <span class="dot po-caption-tag-03"></span> `caption-tag-03` <span class="dot po-caption-tag-04"></span> `caption-tag-04` <span class="dot po-caption-tag-05"></span> `caption-tag-05`
|
|
51
|
+
* - <span class="dot po-caption-tag-06"></span> `caption-tag-06` <span class="dot po-caption-tag-07"></span> `caption-tag-07` <span class="dot po-caption-tag-08"></span> `caption-tag-08` <span class="dot po-caption-tag-09"></span> `caption-tag-09` <span class="dot po-caption-tag-10"></span> `caption-tag-10`
|
|
52
|
+
* - <span class="dot po-caption-tag-11"></span> `caption-tag-11` <span class="dot po-caption-tag-12"></span> `caption-tag-12` <span class="dot po-caption-tag-13"></span> `caption-tag-13` <span class="dot po-caption-tag-14"></span> `caption-tag-14` <span class="dot po-caption-tag-15"></span> `caption-tag-15`
|
|
53
|
+
* - <span class="dot po-caption-tag-16"></span> `caption-tag-16` <span class="dot po-caption-tag-17"></span> `caption-tag-17` <span class="dot po-caption-tag-18"></span> `caption-tag-18` <span class="dot po-caption-tag-19"></span> `caption-tag-19` <span class="dot po-caption-tag-20"></span> `caption-tag-20`
|
|
54
|
+
* - <span class="dot po-caption-tag-21"></span> `caption-tag-21` <span class="dot po-caption-tag-22"></span> `caption-tag-22` <span class="dot po-caption-tag-23"></span> `caption-tag-23` <span class="dot po-caption-tag-24"></span> `caption-tag-24` <span class="dot po-caption-tag-25"></span> `caption-tag-25`
|
|
55
|
+
* - <span class="dot po-caption-tag-26"></span> `caption-tag-26` <span class="dot po-caption-tag-27"></span> `caption-tag-27` <span class="dot po-caption-tag-28"></span> `caption-tag-28` <span class="dot po-caption-tag-29"></span> `caption-tag-29` <span class="dot po-caption-tag-30"></span> `caption-tag-30`
|
|
56
|
+
* - <span class="dot po-caption-tag-31"></span> `caption-tag-31` <span class="dot po-caption-tag-32"></span> `caption-tag-32` <span class="dot po-caption-tag-33"></span> `caption-tag-33` <span class="dot po-caption-tag-34"></span> `caption-tag-34` <span class="dot po-caption-tag-35"></span> `caption-tag-35`
|
|
57
|
+
*
|
|
58
|
+
* Exemplo de uso:
|
|
59
|
+
* ```
|
|
60
|
+
* <po-badge p-color="caption-tag-13" p-value="5"></po-badge>
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
48
63
|
* @default `color-07`
|
|
49
64
|
*/
|
|
50
65
|
set color(value: string);
|
|
@@ -17,6 +17,7 @@ import { PoContainerBaseComponent } from './po-container-base.component';
|
|
|
17
17
|
* <example name="po-container-dashboard" title="PO Container - Dashboard">
|
|
18
18
|
* <file name="sample-po-container-dashboard/sample-po-container-dashboard.component.html"> </file>
|
|
19
19
|
* <file name="sample-po-container-dashboard/sample-po-container-dashboard.component.ts"> </file>
|
|
20
|
+
* <file name="sample-po-container-dashboard/sample-po-container-dashboard.component.css"> </file>
|
|
20
21
|
* <file name="sample-po-container-dashboard/sample-po-container-dashboard.service.ts"> </file>
|
|
21
22
|
* </example>
|
|
22
23
|
*/
|
|
@@ -25,6 +25,7 @@ import { PoHelperComponent } from '../../po-helper';
|
|
|
25
25
|
* <example name="po-combo-scheduling" title="PO Combo - Scheduling">
|
|
26
26
|
* <file name="sample-po-combo-scheduling/sample-po-combo-scheduling.component.html"> </file>
|
|
27
27
|
* <file name="sample-po-combo-scheduling/sample-po-combo-scheduling.component.ts"> </file>
|
|
28
|
+
* <file name="sample-po-combo-scheduling/sample-po-combo-scheduling.component.css"> </file>
|
|
28
29
|
* <file name="sample-po-combo-scheduling/sample-po-combo-scheduling.service.ts"> </file>
|
|
29
30
|
* </example>
|
|
30
31
|
*
|
|
@@ -33,6 +33,7 @@ import { PoHelperComponent } from '../../po-helper';
|
|
|
33
33
|
* <example name="po-multiselect-template" title="PO Multiselect - Template">
|
|
34
34
|
* <file name="sample-po-multiselect-template/sample-po-multiselect-template.component.html"> </file>
|
|
35
35
|
* <file name="sample-po-multiselect-template/sample-po-multiselect-template.component.ts"> </file>
|
|
36
|
+
* <file name="sample-po-multiselect-template/sample-po-multiselect-template.component.css"> </file>
|
|
36
37
|
* </example>
|
|
37
38
|
*
|
|
38
39
|
* <example name="po-multiselect-heroes" title="PO Multiselect - Heroes - using API">
|
|
@@ -22,6 +22,7 @@ import { PoHelperComponent, PoHelperOptions } from '../../po-helper';
|
|
|
22
22
|
* <example name="po-select-customer-registration" title="PO Select - Customer registration">
|
|
23
23
|
* <file name="sample-po-select-customer-registration/sample-po-select-customer-registration.component.html"> </file>
|
|
24
24
|
* <file name="sample-po-select-customer-registration/sample-po-select-customer-registration.component.ts"> </file>
|
|
25
|
+
* <file name="sample-po-select-customer-registration/sample-po-select-customer-registration.component.css"> </file>
|
|
25
26
|
* <file name="sample-po-select-customer-registration/sample-po-select-customer-registration.service.ts"> </file>
|
|
26
27
|
* </example>
|
|
27
28
|
*
|
|
@@ -9,11 +9,13 @@ import { PoLoadingOverlayBaseComponent } from './po-loading-overlay-base.compone
|
|
|
9
9
|
* <example name="po-loading-overlay-basic" title="PO Loading Overlay Basic">
|
|
10
10
|
* <file name="sample-po-loading-overlay-basic/sample-po-loading-overlay-basic.component.html"> </file>
|
|
11
11
|
* <file name="sample-po-loading-overlay-basic/sample-po-loading-overlay-basic.component.ts"> </file>
|
|
12
|
+
* <file name="sample-po-loading-overlay-basic/sample-po-loading-overlay-basic.component.css"> </file>
|
|
12
13
|
* </example>
|
|
13
14
|
*
|
|
14
15
|
* <example name="po-loading-overlay-labs" title="PO Loading Overlay Labs">
|
|
15
16
|
* <file name="sample-po-loading-overlay-labs/sample-po-loading-overlay-labs.component.html"> </file>
|
|
16
17
|
* <file name="sample-po-loading-overlay-labs/sample-po-loading-overlay-labs.component.ts"> </file>
|
|
18
|
+
* <file name="sample-po-loading-overlay-labs/sample-po-loading-overlay-labs.component.css"> </file>
|
|
17
19
|
* </example>
|
|
18
20
|
*
|
|
19
21
|
* <example name="po-loading-overlay-connection-test" title="PO Loading Overlay - Connection Test">
|
|
@@ -76,11 +76,13 @@ import { PoMenuItem } from './po-menu-item.interface';
|
|
|
76
76
|
* <example name="po-menu-labs" title="PO Menu Labs">
|
|
77
77
|
* <file name="sample-po-menu-labs/sample-po-menu-labs.component.html"> </file>
|
|
78
78
|
* <file name="sample-po-menu-labs/sample-po-menu-labs.component.ts"> </file>
|
|
79
|
+
* <file name="sample-po-menu-labs/sample-po-menu-labs.component.css"> </file>
|
|
79
80
|
* </example>
|
|
80
81
|
*
|
|
81
82
|
* <example name="po-menu-human-resources" title="PO Menu - Human Resources">
|
|
82
83
|
* <file name="sample-po-menu-human-resources/sample-po-menu-human-resources.component.html"> </file>
|
|
83
84
|
* <file name="sample-po-menu-human-resources/sample-po-menu-human-resources.component.ts"> </file>
|
|
85
|
+
* <file name="sample-po-menu-human-resources/sample-po-menu-human-resources.component.css"> </file>
|
|
84
86
|
* <file name="sample-po-menu-human-resources/sample-po-menu-human-resources.service.ts"> </file>
|
|
85
87
|
* </example>
|
|
86
88
|
*/
|
|
@@ -19,6 +19,7 @@ import { PoPageDefaultBaseComponent } from './po-page-default-base.component';
|
|
|
19
19
|
* <example name="po-page-default-dashboard" title="PO Page Default - Dashboard">
|
|
20
20
|
* <file name="sample-po-page-default-dashboard/sample-po-page-default-dashboard.component.html"> </file>
|
|
21
21
|
* <file name="sample-po-page-default-dashboard/sample-po-page-default-dashboard.component.ts"> </file>
|
|
22
|
+
* <file name="sample-po-page-default-dashboard/sample-po-page-default-dashboard.component.css"> </file>
|
|
22
23
|
* <file name="sample-po-page-default-dashboard/sample-po-page-default-dashboard.service.ts"> </file>
|
|
23
24
|
* </example>
|
|
24
25
|
*/
|
|
@@ -16,11 +16,13 @@ import { PoPopupBaseComponent } from './po-popup-base.component';
|
|
|
16
16
|
* <example name="po-popup-labs" title="PO Popup - Labs">
|
|
17
17
|
* <file name="sample-po-popup-labs/sample-po-popup-labs.component.html"> </file>
|
|
18
18
|
* <file name="sample-po-popup-labs/sample-po-popup-labs.component.ts"> </file>
|
|
19
|
+
* <file name="sample-po-popup-labs/sample-po-popup-labs.component.css"> </file>
|
|
19
20
|
* </example>
|
|
20
21
|
*
|
|
21
22
|
* <example name="po-popup-email" title="PO Popup Email">
|
|
22
23
|
* <file name="sample-po-popup-email/sample-po-popup-email.component.html"> </file>
|
|
23
24
|
* <file name="sample-po-popup-email/sample-po-popup-email.component.ts"> </file>
|
|
25
|
+
* <file name="sample-po-popup-email/sample-po-popup-email.component.css"> </file>
|
|
24
26
|
* </example>
|
|
25
27
|
*
|
|
26
28
|
*/
|
|
@@ -12,6 +12,7 @@ import { PoProgressBaseComponent } from './po-progress-base.component';
|
|
|
12
12
|
* <example name="po-progress-labs" title="PO Progress Labs">
|
|
13
13
|
* <file name="sample-po-progress-labs/sample-po-progress-labs.component.html"> </file>
|
|
14
14
|
* <file name="sample-po-progress-labs/sample-po-progress-labs.component.ts"> </file>
|
|
15
|
+
* <file name="sample-po-progress-labs/sample-po-progress-labs.component.css"> </file>
|
|
15
16
|
* </example>
|
|
16
17
|
*
|
|
17
18
|
* <example name="po-progress-publication" title="PO Progress - Publication">
|
|
@@ -19,11 +19,13 @@ import { PoSearchBaseComponent } from './po-search-base.component';
|
|
|
19
19
|
* <example name="po-search-labs" title="PO Search Labs">
|
|
20
20
|
* <file name="sample-po-search-labs/sample-po-search-labs.component.html"> </file>
|
|
21
21
|
* <file name="sample-po-search-labs/sample-po-search-labs.component.ts"> </file>
|
|
22
|
+
* <file name="sample-po-search-labs/sample-po-search-labs.component.css"> </file>
|
|
22
23
|
* </example>
|
|
23
24
|
*
|
|
24
25
|
* <example name="po-search-find-people" title="PO Search Find People">
|
|
25
26
|
* <file name="sample-po-search-find-people/sample-po-search-find-people.component.html"> </file>
|
|
26
27
|
* <file name="sample-po-search-find-people/sample-po-search-find-people.component.ts"> </file>
|
|
28
|
+
* <file name="sample-po-search-find-people/sample-po-search-find-people.component.css"> </file>
|
|
27
29
|
* <file name="sample-po-search-find-people/sample-po-search-find-people.service.ts"> </file>
|
|
28
30
|
* </example>
|
|
29
31
|
*
|
|
@@ -41,6 +43,7 @@ import { PoSearchBaseComponent } from './po-search-base.component';
|
|
|
41
43
|
* <example name="po-search-execute" title="PO Search Form Fields with Execute">
|
|
42
44
|
* <file name="sample-po-search-execute/sample-po-search-execute.component.html"> </file>
|
|
43
45
|
* <file name="sample-po-search-execute/sample-po-search-execute.component.ts"> </file>
|
|
46
|
+
* <file name="sample-po-search-execute/sample-po-search-execute.component.css"> </file>
|
|
44
47
|
* </example>
|
|
45
48
|
*
|
|
46
49
|
* <example name="po-search-fields-locate" title="PO Search Form Fields with Locate">
|
|
@@ -20,6 +20,7 @@ import { PoStepperItem } from './po-stepper-item.interface';
|
|
|
20
20
|
* <example name="po-stepper-sales" title="PO Stepper - Sales">
|
|
21
21
|
* <file name="sample-po-stepper-sales/sample-po-stepper-sales.component.html"> </file>
|
|
22
22
|
* <file name="sample-po-stepper-sales/sample-po-stepper-sales.component.ts"> </file>
|
|
23
|
+
* <file name="sample-po-stepper-sales/sample-po-stepper-sales.component.css"> </file>
|
|
23
24
|
* </example>
|
|
24
25
|
*
|
|
25
26
|
* <example name="po-stepper-active" title="PO Stepper - Active">
|
|
@@ -57,6 +57,16 @@ export interface PoTableColumn {
|
|
|
57
57
|
* - <span class="dot po-color-11"></span> `color-11`
|
|
58
58
|
* - <span class="dot po-color-12"></span> `color-12`
|
|
59
59
|
*
|
|
60
|
+
* > Também é possível utilizar as 35 cores da paleta **Caption Tag Colors**:
|
|
61
|
+
*
|
|
62
|
+
* - <span class="dot po-caption-tag-01"></span> `caption-tag-01` <span class="dot po-caption-tag-02"></span> `caption-tag-02` <span class="dot po-caption-tag-03"></span> `caption-tag-03` <span class="dot po-caption-tag-04"></span> `caption-tag-04` <span class="dot po-caption-tag-05"></span> `caption-tag-05`
|
|
63
|
+
* - <span class="dot po-caption-tag-06"></span> `caption-tag-06` <span class="dot po-caption-tag-07"></span> `caption-tag-07` <span class="dot po-caption-tag-08"></span> `caption-tag-08` <span class="dot po-caption-tag-09"></span> `caption-tag-09` <span class="dot po-caption-tag-10"></span> `caption-tag-10`
|
|
64
|
+
* - <span class="dot po-caption-tag-11"></span> `caption-tag-11` <span class="dot po-caption-tag-12"></span> `caption-tag-12` <span class="dot po-caption-tag-13"></span> `caption-tag-13` <span class="dot po-caption-tag-14"></span> `caption-tag-14` <span class="dot po-caption-tag-15"></span> `caption-tag-15`
|
|
65
|
+
* - <span class="dot po-caption-tag-16"></span> `caption-tag-16` <span class="dot po-caption-tag-17"></span> `caption-tag-17` <span class="dot po-caption-tag-18"></span> `caption-tag-18` <span class="dot po-caption-tag-19"></span> `caption-tag-19` <span class="dot po-caption-tag-20"></span> `caption-tag-20`
|
|
66
|
+
* - <span class="dot po-caption-tag-21"></span> `caption-tag-21` <span class="dot po-caption-tag-22"></span> `caption-tag-22` <span class="dot po-caption-tag-23"></span> `caption-tag-23` <span class="dot po-caption-tag-24"></span> `caption-tag-24` <span class="dot po-caption-tag-25"></span> `caption-tag-25`
|
|
67
|
+
* - <span class="dot po-caption-tag-26"></span> `caption-tag-26` <span class="dot po-caption-tag-27"></span> `caption-tag-27` <span class="dot po-caption-tag-28"></span> `caption-tag-28` <span class="dot po-caption-tag-29"></span> `caption-tag-29` <span class="dot po-caption-tag-30"></span> `caption-tag-30`
|
|
68
|
+
* - <span class="dot po-caption-tag-31"></span> `caption-tag-31` <span class="dot po-caption-tag-32"></span> `caption-tag-32` <span class="dot po-caption-tag-33"></span> `caption-tag-33` <span class="dot po-caption-tag-34"></span> `caption-tag-34` <span class="dot po-caption-tag-35"></span> `caption-tag-35`
|
|
69
|
+
*
|
|
60
70
|
* > Existe a possibilidade de informar uma função que retorne um dos valores aceitos, serão passados
|
|
61
71
|
* por parâmetro a linha e a coluna atual, por exemplo:
|
|
62
72
|
*
|
|
@@ -136,8 +146,8 @@ export interface PoTableColumn {
|
|
|
136
146
|
*
|
|
137
147
|
* ```
|
|
138
148
|
* { property: 'flightStatus', label: 'Status', type: 'label', width:'100px', labels: [
|
|
139
|
-
* { value: 'confirmed', color: '
|
|
140
|
-
* { value: 'delayed', color: '
|
|
149
|
+
* { value: 'confirmed', color: 'caption-tag-13', label: 'Confirmado', tooltip: 'Flight Status' },
|
|
150
|
+
* { value: 'delayed', color: 'caption-tag-08', label: 'Atrasado', tooltip: 'Flight Status' }
|
|
141
151
|
* }
|
|
142
152
|
* ```
|
|
143
153
|
*
|
|
@@ -173,8 +183,8 @@ export interface PoTableColumn {
|
|
|
173
183
|
*
|
|
174
184
|
* ```
|
|
175
185
|
* { property: 'flightStatus', label: 'Status', color: 'subtitle', width:'100px', subtitles: [
|
|
176
|
-
* { value: 'confirmed', color: '
|
|
177
|
-
* { value: 'delayed', color: '
|
|
186
|
+
* { value: 'confirmed', color: 'caption-tag-13', label: 'Confirmado', content: '1' },
|
|
187
|
+
* { value: 'delayed', color: 'caption-tag-08', label: 'Atrasado', content: '2' }
|
|
178
188
|
* }
|
|
179
189
|
* ```
|
|
180
190
|
* Nesse exemplo a coluna escolhida para legenda é 'flightStatus', se o valor dessa coluna for 'confirmed', o texto da legenda será
|
|
@@ -343,6 +343,28 @@ export declare abstract class PoTableBaseComponent implements OnChanges, OnDestr
|
|
|
343
343
|
* Por exemplo: ["idCard", "name", "hireStatus", "age"].
|
|
344
344
|
*/
|
|
345
345
|
changeVisibleColumns: EventEmitter<string[]>;
|
|
346
|
+
/**
|
|
347
|
+
* @optional
|
|
348
|
+
*
|
|
349
|
+
* @description
|
|
350
|
+
* Evento disparado ao alterar o estado de fixação de uma coluna no gerenciador de colunas.
|
|
351
|
+
*
|
|
352
|
+
* O componente envia como parâmetro um array de string com as propriedades das colunas fixas.
|
|
353
|
+
* Por exemplo: ["name", "age"].
|
|
354
|
+
*
|
|
355
|
+
* > Incompatível com `p-hide-action-fixed-columns`. Quando esta propriedade estiver ativa, o evento não será disparado.
|
|
356
|
+
*
|
|
357
|
+
* @example
|
|
358
|
+
*
|
|
359
|
+
* ```html
|
|
360
|
+
* <po-table
|
|
361
|
+
* [p-columns]="columns"
|
|
362
|
+
* [p-items]="items"
|
|
363
|
+
* (p-change-fixed-columns)="onFixedColumnsChange($event)">
|
|
364
|
+
* </po-table>
|
|
365
|
+
* ```
|
|
366
|
+
*/
|
|
367
|
+
changeFixedColumns: import("@angular/core").OutputEmitterRef<string[]>;
|
|
346
368
|
/**
|
|
347
369
|
* @optional
|
|
348
370
|
*
|
|
@@ -32,6 +32,16 @@ export interface PoTableColumnIcon {
|
|
|
32
32
|
* - <span class="dot po-color-11"></span> `color-11`
|
|
33
33
|
* - <span class="dot po-color-12"></span> `color-12`
|
|
34
34
|
*
|
|
35
|
+
* > Também é possível utilizar as 35 cores da paleta **Caption Tag Colors**:
|
|
36
|
+
*
|
|
37
|
+
* - <span class="dot po-caption-tag-01"></span> `caption-tag-01` <span class="dot po-caption-tag-02"></span> `caption-tag-02` <span class="dot po-caption-tag-03"></span> `caption-tag-03` <span class="dot po-caption-tag-04"></span> `caption-tag-04` <span class="dot po-caption-tag-05"></span> `caption-tag-05`
|
|
38
|
+
* - <span class="dot po-caption-tag-06"></span> `caption-tag-06` <span class="dot po-caption-tag-07"></span> `caption-tag-07` <span class="dot po-caption-tag-08"></span> `caption-tag-08` <span class="dot po-caption-tag-09"></span> `caption-tag-09` <span class="dot po-caption-tag-10"></span> `caption-tag-10`
|
|
39
|
+
* - <span class="dot po-caption-tag-11"></span> `caption-tag-11` <span class="dot po-caption-tag-12"></span> `caption-tag-12` <span class="dot po-caption-tag-13"></span> `caption-tag-13` <span class="dot po-caption-tag-14"></span> `caption-tag-14` <span class="dot po-caption-tag-15"></span> `caption-tag-15`
|
|
40
|
+
* - <span class="dot po-caption-tag-16"></span> `caption-tag-16` <span class="dot po-caption-tag-17"></span> `caption-tag-17` <span class="dot po-caption-tag-18"></span> `caption-tag-18` <span class="dot po-caption-tag-19"></span> `caption-tag-19` <span class="dot po-caption-tag-20"></span> `caption-tag-20`
|
|
41
|
+
* - <span class="dot po-caption-tag-21"></span> `caption-tag-21` <span class="dot po-caption-tag-22"></span> `caption-tag-22` <span class="dot po-caption-tag-23"></span> `caption-tag-23` <span class="dot po-caption-tag-24"></span> `caption-tag-24` <span class="dot po-caption-tag-25"></span> `caption-tag-25`
|
|
42
|
+
* - <span class="dot po-caption-tag-26"></span> `caption-tag-26` <span class="dot po-caption-tag-27"></span> `caption-tag-27` <span class="dot po-caption-tag-28"></span> `caption-tag-28` <span class="dot po-caption-tag-29"></span> `caption-tag-29` <span class="dot po-caption-tag-30"></span> `caption-tag-30`
|
|
43
|
+
* - <span class="dot po-caption-tag-31"></span> `caption-tag-31` <span class="dot po-caption-tag-32"></span> `caption-tag-32` <span class="dot po-caption-tag-33"></span> `caption-tag-33` <span class="dot po-caption-tag-34"></span> `caption-tag-34` <span class="dot po-caption-tag-35"></span> `caption-tag-35`
|
|
44
|
+
*
|
|
35
45
|
*/
|
|
36
46
|
color?: string | Function;
|
|
37
47
|
/** Função que deve retornar um booleano para habilitar ou desabilitar o ícone e sua ação. */
|
|
@@ -28,6 +28,24 @@ export interface PoTableColumnLabel {
|
|
|
28
28
|
* - <span class="dot po-color-10"></span> `color-10`
|
|
29
29
|
* - <span class="dot po-color-11"></span> `color-11`
|
|
30
30
|
* - <span class="dot po-color-12"></span> `color-12`
|
|
31
|
+
*
|
|
32
|
+
* > Também é possível utilizar as 35 cores da paleta **Caption Tag Colors**:
|
|
33
|
+
*
|
|
34
|
+
* - <span class="dot po-caption-tag-01"></span> `caption-tag-01` <span class="dot po-caption-tag-02"></span> `caption-tag-02` <span class="dot po-caption-tag-03"></span> `caption-tag-03` <span class="dot po-caption-tag-04"></span> `caption-tag-04` <span class="dot po-caption-tag-05"></span> `caption-tag-05`
|
|
35
|
+
* - <span class="dot po-caption-tag-06"></span> `caption-tag-06` <span class="dot po-caption-tag-07"></span> `caption-tag-07` <span class="dot po-caption-tag-08"></span> `caption-tag-08` <span class="dot po-caption-tag-09"></span> `caption-tag-09` <span class="dot po-caption-tag-10"></span> `caption-tag-10`
|
|
36
|
+
* - <span class="dot po-caption-tag-11"></span> `caption-tag-11` <span class="dot po-caption-tag-12"></span> `caption-tag-12` <span class="dot po-caption-tag-13"></span> `caption-tag-13` <span class="dot po-caption-tag-14"></span> `caption-tag-14` <span class="dot po-caption-tag-15"></span> `caption-tag-15`
|
|
37
|
+
* - <span class="dot po-caption-tag-16"></span> `caption-tag-16` <span class="dot po-caption-tag-17"></span> `caption-tag-17` <span class="dot po-caption-tag-18"></span> `caption-tag-18` <span class="dot po-caption-tag-19"></span> `caption-tag-19` <span class="dot po-caption-tag-20"></span> `caption-tag-20`
|
|
38
|
+
* - <span class="dot po-caption-tag-21"></span> `caption-tag-21` <span class="dot po-caption-tag-22"></span> `caption-tag-22` <span class="dot po-caption-tag-23"></span> `caption-tag-23` <span class="dot po-caption-tag-24"></span> `caption-tag-24` <span class="dot po-caption-tag-25"></span> `caption-tag-25`
|
|
39
|
+
* - <span class="dot po-caption-tag-26"></span> `caption-tag-26` <span class="dot po-caption-tag-27"></span> `caption-tag-27` <span class="dot po-caption-tag-28"></span> `caption-tag-28` <span class="dot po-caption-tag-29"></span> `caption-tag-29` <span class="dot po-caption-tag-30"></span> `caption-tag-30`
|
|
40
|
+
* - <span class="dot po-caption-tag-31"></span> `caption-tag-31` <span class="dot po-caption-tag-32"></span> `caption-tag-32` <span class="dot po-caption-tag-33"></span> `caption-tag-33` <span class="dot po-caption-tag-34"></span> `caption-tag-34` <span class="dot po-caption-tag-35"></span> `caption-tag-35`
|
|
41
|
+
*
|
|
42
|
+
* Exemplo de uso:
|
|
43
|
+
* ```
|
|
44
|
+
* { property: 'status', type: 'label', labels: [
|
|
45
|
+
* { value: 'ativo', color: 'caption-tag-13', label: 'Ativo' },
|
|
46
|
+
* { value: 'pendente', color: 'caption-tag-08', label: 'Pendente' }
|
|
47
|
+
* ]}
|
|
48
|
+
* ```
|
|
31
49
|
*/
|
|
32
50
|
color?: string;
|
|
33
51
|
/**
|
|
@@ -57,6 +75,9 @@ export interface PoTableColumnLabel {
|
|
|
57
75
|
* - Para uma melhor acessibilidade no uso do componente é recomendável utilizar cores com um melhor contraste em relação ao background.
|
|
58
76
|
*
|
|
59
77
|
* > **Atenção:** A propriedade `p-type` sobrepõe esta definição.
|
|
78
|
+
*
|
|
79
|
+
* > **Atenção:** As cores da paleta **Caption Tag Colors** (`caption-tag-01` a `caption-tag-35`) não são aceitas nesta propriedade,
|
|
80
|
+
* pois possuem cor de texto fixa definida via token CSS.
|
|
60
81
|
*/
|
|
61
82
|
textColor?: string;
|
|
62
83
|
/**
|
package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export declare class PoTableColumnManagerComponent implements OnChanges, OnDestr
|
|
|
32
32
|
lastVisibleColumnsSelected: Array<PoTableColumn>;
|
|
33
33
|
visibleColumnsChange: EventEmitter<PoTableColumn[]>;
|
|
34
34
|
changeVisibleColumns: EventEmitter<string[]>;
|
|
35
|
+
changeFixedColumns: import("@angular/core").OutputEmitterRef<string[]>;
|
|
35
36
|
initialColumns: EventEmitter<string[]>;
|
|
36
37
|
hideActionFixedColumns: boolean;
|
|
37
38
|
literals: any;
|
package/lib/components/po-table/po-table-subtitle-footer/po-table-subtitle-column.interface.d.ts
CHANGED
|
@@ -31,6 +31,16 @@ export interface PoTableSubtitleColumn {
|
|
|
31
31
|
* - <span class="dot po-color-11"></span> `color-11`
|
|
32
32
|
* - <span class="dot po-color-12"></span> `color-12`
|
|
33
33
|
*
|
|
34
|
+
* > Também é possível utilizar as 35 cores da paleta **Caption Tag Colors**:
|
|
35
|
+
*
|
|
36
|
+
* - <span class="dot po-caption-tag-01"></span> `caption-tag-01` <span class="dot po-caption-tag-02"></span> `caption-tag-02` <span class="dot po-caption-tag-03"></span> `caption-tag-03` <span class="dot po-caption-tag-04"></span> `caption-tag-04` <span class="dot po-caption-tag-05"></span> `caption-tag-05`
|
|
37
|
+
* - <span class="dot po-caption-tag-06"></span> `caption-tag-06` <span class="dot po-caption-tag-07"></span> `caption-tag-07` <span class="dot po-caption-tag-08"></span> `caption-tag-08` <span class="dot po-caption-tag-09"></span> `caption-tag-09` <span class="dot po-caption-tag-10"></span> `caption-tag-10`
|
|
38
|
+
* - <span class="dot po-caption-tag-11"></span> `caption-tag-11` <span class="dot po-caption-tag-12"></span> `caption-tag-12` <span class="dot po-caption-tag-13"></span> `caption-tag-13` <span class="dot po-caption-tag-14"></span> `caption-tag-14` <span class="dot po-caption-tag-15"></span> `caption-tag-15`
|
|
39
|
+
* - <span class="dot po-caption-tag-16"></span> `caption-tag-16` <span class="dot po-caption-tag-17"></span> `caption-tag-17` <span class="dot po-caption-tag-18"></span> `caption-tag-18` <span class="dot po-caption-tag-19"></span> `caption-tag-19` <span class="dot po-caption-tag-20"></span> `caption-tag-20`
|
|
40
|
+
* - <span class="dot po-caption-tag-21"></span> `caption-tag-21` <span class="dot po-caption-tag-22"></span> `caption-tag-22` <span class="dot po-caption-tag-23"></span> `caption-tag-23` <span class="dot po-caption-tag-24"></span> `caption-tag-24` <span class="dot po-caption-tag-25"></span> `caption-tag-25`
|
|
41
|
+
* - <span class="dot po-caption-tag-26"></span> `caption-tag-26` <span class="dot po-caption-tag-27"></span> `caption-tag-27` <span class="dot po-caption-tag-28"></span> `caption-tag-28` <span class="dot po-caption-tag-29"></span> `caption-tag-29` <span class="dot po-caption-tag-30"></span> `caption-tag-30`
|
|
42
|
+
* - <span class="dot po-caption-tag-31"></span> `caption-tag-31` <span class="dot po-caption-tag-32"></span> `caption-tag-32` <span class="dot po-caption-tag-33"></span> `caption-tag-33` <span class="dot po-caption-tag-34"></span> `caption-tag-34` <span class="dot po-caption-tag-35"></span> `caption-tag-35`
|
|
43
|
+
*
|
|
34
44
|
* @default `color-01`
|
|
35
45
|
*/
|
|
36
46
|
color?: string;
|
|
@@ -240,6 +240,7 @@ export declare class PoTableComponent extends PoTableBaseComponent implements Af
|
|
|
240
240
|
isShowRowTemplate(row: any, index: number): boolean;
|
|
241
241
|
onClickLink(event: any, row: any, column: PoTableColumn): void;
|
|
242
242
|
onChangeVisibleColumns(columns: Array<string>): void;
|
|
243
|
+
onChangeFixedColumns(columns: Array<string>): void;
|
|
243
244
|
onColumnRestoreManager(value: Array<string>): void;
|
|
244
245
|
onVisibleColumnsChange(columns: Array<PoTableColumn>): void;
|
|
245
246
|
tooltipMouseEnter(event: any, column?: PoTableColumn, row?: any): any;
|
|
@@ -157,8 +157,24 @@ export declare class PoTagBaseComponent {
|
|
|
157
157
|
* - <span class="dot po-color-11"></span> `color-11`
|
|
158
158
|
* - <span class="dot po-color-12"></span> `color-12`
|
|
159
159
|
*
|
|
160
|
+
* > Também é possível utilizar as 35 cores da paleta **Caption Tag Colors**:
|
|
161
|
+
*
|
|
162
|
+
* - <span class="dot po-caption-tag-01"></span> `caption-tag-01` <span class="dot po-caption-tag-02"></span> `caption-tag-02` <span class="dot po-caption-tag-03"></span> `caption-tag-03` <span class="dot po-caption-tag-04"></span> `caption-tag-04` <span class="dot po-caption-tag-05"></span> `caption-tag-05`
|
|
163
|
+
* - <span class="dot po-caption-tag-06"></span> `caption-tag-06` <span class="dot po-caption-tag-07"></span> `caption-tag-07` <span class="dot po-caption-tag-08"></span> `caption-tag-08` <span class="dot po-caption-tag-09"></span> `caption-tag-09` <span class="dot po-caption-tag-10"></span> `caption-tag-10`
|
|
164
|
+
* - <span class="dot po-caption-tag-11"></span> `caption-tag-11` <span class="dot po-caption-tag-12"></span> `caption-tag-12` <span class="dot po-caption-tag-13"></span> `caption-tag-13` <span class="dot po-caption-tag-14"></span> `caption-tag-14` <span class="dot po-caption-tag-15"></span> `caption-tag-15`
|
|
165
|
+
* - <span class="dot po-caption-tag-16"></span> `caption-tag-16` <span class="dot po-caption-tag-17"></span> `caption-tag-17` <span class="dot po-caption-tag-18"></span> `caption-tag-18` <span class="dot po-caption-tag-19"></span> `caption-tag-19` <span class="dot po-caption-tag-20"></span> `caption-tag-20`
|
|
166
|
+
* - <span class="dot po-caption-tag-21"></span> `caption-tag-21` <span class="dot po-caption-tag-22"></span> `caption-tag-22` <span class="dot po-caption-tag-23"></span> `caption-tag-23` <span class="dot po-caption-tag-24"></span> `caption-tag-24` <span class="dot po-caption-tag-25"></span> `caption-tag-25`
|
|
167
|
+
* - <span class="dot po-caption-tag-26"></span> `caption-tag-26` <span class="dot po-caption-tag-27"></span> `caption-tag-27` <span class="dot po-caption-tag-28"></span> `caption-tag-28` <span class="dot po-caption-tag-29"></span> `caption-tag-29` <span class="dot po-caption-tag-30"></span> `caption-tag-30`
|
|
168
|
+
* - <span class="dot po-caption-tag-31"></span> `caption-tag-31` <span class="dot po-caption-tag-32"></span> `caption-tag-32` <span class="dot po-caption-tag-33"></span> `caption-tag-33` <span class="dot po-caption-tag-34"></span> `caption-tag-34` <span class="dot po-caption-tag-35"></span> `caption-tag-35`
|
|
169
|
+
*
|
|
170
|
+
* Exemplo de uso:
|
|
171
|
+
* ```
|
|
172
|
+
* <po-tag p-color="caption-tag-15" p-value="Status"></po-tag>
|
|
173
|
+
* ```
|
|
174
|
+
*
|
|
160
175
|
* - Para uma melhor acessibilidade no uso do componente é recomendável utilizar cores com um melhor contraste em relação ao background;
|
|
161
|
-
* -
|
|
176
|
+
* - Para as cores legacy (`color-01` a `color-12`) e cores customizadas, o componente ajusta automaticamente a cor do texto para garantir legibilidade.
|
|
177
|
+
* - Para as cores **Caption Tag Colors** (`caption-tag-01` a `caption-tag-35`), a cor do texto é fixa e definida via token CSS, não sendo possível alterá-la via `p-text-color`.
|
|
162
178
|
*
|
|
163
179
|
* > **Atenção:** A propriedade `p-type` sobrepõe esta definição.
|
|
164
180
|
*/
|
|
@@ -191,6 +207,9 @@ export declare class PoTagBaseComponent {
|
|
|
191
207
|
* - Para uma melhor acessibilidade no uso do componente é recomendável utilizar cores com um melhor contraste em relação ao background.
|
|
192
208
|
*
|
|
193
209
|
* > **Atenção:** A propriedade `p-type` sobrepõe esta definição.
|
|
210
|
+
*
|
|
211
|
+
* > **Atenção:** As cores da paleta **Caption Tag Colors** (`caption-tag-01` a `caption-tag-35`) não são aceitas nesta propriedade,
|
|
212
|
+
* pois possuem cor de texto fixa definida via token CSS.
|
|
194
213
|
*/
|
|
195
214
|
set textColor(value: string);
|
|
196
215
|
get textColor(): string;
|
|
@@ -14,12 +14,18 @@ import { PoTagBaseComponent } from './po-tag-base.component';
|
|
|
14
14
|
* <example name="po-tag-labs" title="PO Tag Labs">
|
|
15
15
|
* <file name="sample-po-tag-labs/sample-po-tag-labs.component.html"> </file>
|
|
16
16
|
* <file name="sample-po-tag-labs/sample-po-tag-labs.component.ts"> </file>
|
|
17
|
+
* <file name="sample-po-tag-labs/sample-po-tag-labs.component.css"> </file>
|
|
17
18
|
* </example>
|
|
18
19
|
*
|
|
19
20
|
* <example name="po-tag-bank-account" title="PO Tag - Bank Account">
|
|
20
21
|
* <file name="sample-po-tag-bank-account/sample-po-tag-bank-account.component.html"> </file>
|
|
21
22
|
* <file name="sample-po-tag-bank-account/sample-po-tag-bank-account.component.ts"> </file>
|
|
22
23
|
* </example>
|
|
24
|
+
*
|
|
25
|
+
* <example name="po-tag-caption-tag-colors" title="PO Tag - Caption Tag Colors">
|
|
26
|
+
* <file name="sample-po-tag-caption-tag-colors/sample-po-tag-caption-tag-colors.component.html"> </file>
|
|
27
|
+
* <file name="sample-po-tag-caption-tag-colors/sample-po-tag-caption-tag-colors.component.ts"> </file>
|
|
28
|
+
* </example>
|
|
23
29
|
*/
|
|
24
30
|
export declare class PoTagComponent extends PoTagBaseComponent implements OnInit {
|
|
25
31
|
private readonly el;
|
|
@@ -30,6 +36,7 @@ export declare class PoTagComponent extends PoTagBaseComponent implements OnInit
|
|
|
30
36
|
constructor();
|
|
31
37
|
ngOnInit(): void;
|
|
32
38
|
get iconFromType(): PoTagIcon;
|
|
39
|
+
get isCaptionTag(): boolean;
|
|
33
40
|
get tagColor(): string;
|
|
34
41
|
get tagOrientation(): boolean;
|
|
35
42
|
onClick(event?: string): void;
|
|
@@ -16,11 +16,13 @@ import { PoWidgetBaseComponent } from './po-widget-base.component';
|
|
|
16
16
|
* <example name="po-widget-labs" title="PO Widget Labs">
|
|
17
17
|
* <file name="sample-po-widget-labs/sample-po-widget-labs.component.html"> </file>
|
|
18
18
|
* <file name="sample-po-widget-labs/sample-po-widget-labs.component.ts"> </file>
|
|
19
|
+
* <file name="sample-po-widget-labs/sample-po-widget-labs.component.css"> </file>
|
|
19
20
|
* </example>
|
|
20
21
|
*
|
|
21
22
|
* <example name="po-widget-finance-dashboard" title="PO Widget - Finance dashboard">
|
|
22
23
|
* <file name="sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.html"> </file>
|
|
23
24
|
* <file name="sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.ts"> </file>
|
|
25
|
+
* <file name="sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.css"> </file>
|
|
24
26
|
* </example>
|
|
25
27
|
*
|
|
26
28
|
* <example name="po-widget-card" title="PO Widget - Card">
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum que define as 35 Caption Tag Colors disponíveis para uso nos componentes.
|
|
3
|
+
*
|
|
4
|
+
* Estas cores são organizadas em 7 famílias (tag-01 a tag-07), cada uma com 5 variantes
|
|
5
|
+
* (lighter, light, base, dark, darker), totalizando 35 cores.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum PoCaptionTagColorEnum {
|
|
8
|
+
CaptionTag01 = "caption-tag-01",
|
|
9
|
+
CaptionTag02 = "caption-tag-02",
|
|
10
|
+
CaptionTag03 = "caption-tag-03",
|
|
11
|
+
CaptionTag04 = "caption-tag-04",
|
|
12
|
+
CaptionTag05 = "caption-tag-05",
|
|
13
|
+
CaptionTag06 = "caption-tag-06",
|
|
14
|
+
CaptionTag07 = "caption-tag-07",
|
|
15
|
+
CaptionTag08 = "caption-tag-08",
|
|
16
|
+
CaptionTag09 = "caption-tag-09",
|
|
17
|
+
CaptionTag10 = "caption-tag-10",
|
|
18
|
+
CaptionTag11 = "caption-tag-11",
|
|
19
|
+
CaptionTag12 = "caption-tag-12",
|
|
20
|
+
CaptionTag13 = "caption-tag-13",
|
|
21
|
+
CaptionTag14 = "caption-tag-14",
|
|
22
|
+
CaptionTag15 = "caption-tag-15",
|
|
23
|
+
CaptionTag16 = "caption-tag-16",
|
|
24
|
+
CaptionTag17 = "caption-tag-17",
|
|
25
|
+
CaptionTag18 = "caption-tag-18",
|
|
26
|
+
CaptionTag19 = "caption-tag-19",
|
|
27
|
+
CaptionTag20 = "caption-tag-20",
|
|
28
|
+
CaptionTag21 = "caption-tag-21",
|
|
29
|
+
CaptionTag22 = "caption-tag-22",
|
|
30
|
+
CaptionTag23 = "caption-tag-23",
|
|
31
|
+
CaptionTag24 = "caption-tag-24",
|
|
32
|
+
CaptionTag25 = "caption-tag-25",
|
|
33
|
+
CaptionTag26 = "caption-tag-26",
|
|
34
|
+
CaptionTag27 = "caption-tag-27",
|
|
35
|
+
CaptionTag28 = "caption-tag-28",
|
|
36
|
+
CaptionTag29 = "caption-tag-29",
|
|
37
|
+
CaptionTag30 = "caption-tag-30",
|
|
38
|
+
CaptionTag31 = "caption-tag-31",
|
|
39
|
+
CaptionTag32 = "caption-tag-32",
|
|
40
|
+
CaptionTag33 = "caption-tag-33",
|
|
41
|
+
CaptionTag34 = "caption-tag-34",
|
|
42
|
+
CaptionTag35 = "caption-tag-35"
|
|
43
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.10.0",
|
|
4
4
|
"description": "PO UI - Components",
|
|
5
5
|
"author": "PO UI",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@angular/cdk": "~21.0.3",
|
|
25
|
-
"@po-ui/style": "21.
|
|
26
|
-
"@po-ui/ng-schematics": "21.
|
|
25
|
+
"@po-ui/style": "21.10.0",
|
|
26
|
+
"@po-ui/ng-schematics": "21.10.0",
|
|
27
27
|
"echarts": "^5.6.0",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@angular/platform-browser-dynamic": "^21",
|
|
39
39
|
"@angular/router": "^21",
|
|
40
40
|
"@angular-devkit/schematics": "^21",
|
|
41
|
-
"@po-ui/style": "21.
|
|
41
|
+
"@po-ui/style": "21.10.0",
|
|
42
42
|
"rxjs": "~7.8.1",
|
|
43
43
|
"zone.js": "~0.15.0"
|
|
44
44
|
},
|
|
Binary file
|
|
@@ -18,7 +18,7 @@ function default_1(options) {
|
|
|
18
18
|
}
|
|
19
19
|
function addPoPackageAndInstall() {
|
|
20
20
|
return (tree, context) => {
|
|
21
|
-
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '21.
|
|
21
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '21.10.0');
|
|
22
22
|
// install packages
|
|
23
23
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
24
24
|
};
|
|
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
6
6
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
7
7
|
const changes_1 = require("./changes");
|
|
8
8
|
function default_1() {
|
|
9
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.10.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
@@ -11,7 +11,7 @@ const changes_1 = require("./changes");
|
|
|
11
11
|
const httpClientModuleName = 'HttpClientModule';
|
|
12
12
|
const httpClientModuleSourcePath = '@angular/common/http';
|
|
13
13
|
function default_1() {
|
|
14
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.
|
|
14
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.10.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
15
15
|
}
|
|
16
16
|
function postUpdate() {
|
|
17
17
|
return (_, context) => {
|
|
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
6
6
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
7
7
|
const changes_1 = require("./changes");
|
|
8
8
|
function default_1() {
|
|
9
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.10.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
6
6
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
7
7
|
const changes_1 = require("./changes");
|
|
8
8
|
function default_1() {
|
|
9
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.10.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
@@ -40,11 +40,11 @@ function main(options) {
|
|
|
40
40
|
configureNewIcon.toLowerCase() === 'y' ||
|
|
41
41
|
configureNewIcon.toLowerCase() === 'sim' ||
|
|
42
42
|
configureNewIcon.toLowerCase() === '') {
|
|
43
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.10.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('21.
|
|
47
|
+
(0, package_config_1.updatePackageJson)('21.10.0', changes_1.updateDepedenciesVersion),
|
|
48
48
|
addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
|
|
49
49
|
addProviderToAppModule(options, newProviderDictionary),
|
|
50
50
|
updateAppConfigFileRule(),
|
|
@@ -40,11 +40,11 @@ function main(options) {
|
|
|
40
40
|
configureNewIcon.toLowerCase() === 'y' ||
|
|
41
41
|
configureNewIcon.toLowerCase() === 'sim' ||
|
|
42
42
|
configureNewIcon.toLowerCase() === '') {
|
|
43
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.10.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('21.
|
|
47
|
+
(0, package_config_1.updatePackageJson)('21.10.0', changes_1.updateDepedenciesVersion),
|
|
48
48
|
addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
|
|
49
49
|
addProviderToAppModule(options, newProviderDictionary),
|
|
50
50
|
updateAppConfigFileRule(),
|
|
@@ -10,7 +10,7 @@ const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
|
10
10
|
const changes_1 = require("./changes");
|
|
11
11
|
function updateToV2() {
|
|
12
12
|
return (0, schematics_1.chain)([
|
|
13
|
-
updatePackageJson('21.
|
|
13
|
+
updatePackageJson('21.10.0', changes_1.dependeciesChanges),
|
|
14
14
|
(0, replace_1.replaceInFile)('tslint.json', changes_1.tsLintReplaces),
|
|
15
15
|
(0, replace_1.replaceInFile)('angular.json', changes_1.angularJsonReplaces),
|
|
16
16
|
createUpgradeRule(),
|