@po-ui/ng-components 21.21.0 → 21.22.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 +217 -50
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts +5 -5
- package/lib/components/po-field/po-datetimepicker/po-datetimepicker-base.component.d.ts +1 -2
- package/lib/components/po-field/po-datetimepicker/po-datetimepicker.component.d.ts +12 -1
- package/lib/components/po-field/po-lookup/interfaces/po-lookup-column.interface.d.ts +36 -0
- package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +6 -0
- package/lib/components/po-table/interfaces/po-table-column.interface.d.ts +41 -2
- package/lib/components/po-table/po-table.component.d.ts +2 -0
- package/package.json +4 -4
- package/po-ui-ng-components-21.22.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 +104 -11
- package/po-ui-ng-components-21.21.0.tgz +0 -0
package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts
CHANGED
|
@@ -376,7 +376,7 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
376
376
|
* Também pode-se utilizar em conjunto com `searchService`, informando uma lista de propriedades que será utilizado
|
|
377
377
|
* para formatação da exibição no campo, por exemplo: ["id", "name"].
|
|
378
378
|
*
|
|
379
|
-
* **Componentes compatíveis:** `po-datepicker`, `po-timepicker`, `po-lookup`.
|
|
379
|
+
* **Componentes compatíveis:** `po-datepicker`, `po-datetimepicker`, `po-timepicker`, `po-lookup`.
|
|
380
380
|
*/
|
|
381
381
|
format?: string | Array<string>;
|
|
382
382
|
/**
|
|
@@ -543,7 +543,7 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
543
543
|
*
|
|
544
544
|
* @default `false`
|
|
545
545
|
*
|
|
546
|
-
* **Componente compatível:** `po-timepicker`
|
|
546
|
+
* **Componente compatível:** `po-datetimepicker`, `po-timepicker`
|
|
547
547
|
*/
|
|
548
548
|
showSeconds?: boolean;
|
|
549
549
|
/**
|
|
@@ -551,7 +551,7 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
551
551
|
*
|
|
552
552
|
* @default `5`
|
|
553
553
|
*
|
|
554
|
-
* **Componente compatível:** `po-timepicker`
|
|
554
|
+
* **Componente compatível:** `po-datetimepicker`, `po-timepicker`
|
|
555
555
|
*/
|
|
556
556
|
minuteInterval?: number;
|
|
557
557
|
/**
|
|
@@ -559,7 +559,7 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
559
559
|
*
|
|
560
560
|
* @default `1`
|
|
561
561
|
*
|
|
562
|
-
* **Componente compatível:** `po-timepicker`
|
|
562
|
+
* **Componente compatível:** `po-datetimepicker`, `po-timepicker`
|
|
563
563
|
*/
|
|
564
564
|
secondInterval?: number;
|
|
565
565
|
/**
|
|
@@ -964,7 +964,7 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
964
964
|
/**
|
|
965
965
|
* Define o formato de exibição do timer (`'12'` ou `'24'`).
|
|
966
966
|
*
|
|
967
|
-
* **Componente compatível:** `po-datetimepicker
|
|
967
|
+
* **Componente compatível:** `po-datetimepicker`
|
|
968
968
|
*/
|
|
969
969
|
formatTime?: string;
|
|
970
970
|
}
|
|
@@ -102,7 +102,6 @@ export declare abstract class PoDatetimepickerBaseComponent implements ControlVa
|
|
|
102
102
|
protected onTouchedModel: any;
|
|
103
103
|
protected validatorChange: any;
|
|
104
104
|
protected shortLanguage: string;
|
|
105
|
-
currentErrorPattern: import("@angular/core").WritableSignal<string>;
|
|
106
105
|
/**
|
|
107
106
|
* @optional
|
|
108
107
|
*
|
|
@@ -170,7 +169,7 @@ export declare abstract class PoDatetimepickerBaseComponent implements ControlVa
|
|
|
170
169
|
*
|
|
171
170
|
* Mensagem apresentada quando a data/hora for inválida ou fora do período.
|
|
172
171
|
*/
|
|
173
|
-
errorPattern: import("@angular/core").
|
|
172
|
+
errorPattern: import("@angular/core").ModelSignal<string>;
|
|
174
173
|
/**
|
|
175
174
|
* @optional
|
|
176
175
|
*
|
|
@@ -35,6 +35,7 @@ export declare class PoDatetimepickerComponent extends PoDatetimepickerBaseCompo
|
|
|
35
35
|
iconClean: ElementRef<HTMLElement>;
|
|
36
36
|
dialogPicker: ElementRef;
|
|
37
37
|
helperEl?: PoHelperComponent;
|
|
38
|
+
datetimepickerField: ElementRef;
|
|
38
39
|
private readonly renderer;
|
|
39
40
|
private readonly cd;
|
|
40
41
|
private readonly poCalendarService;
|
|
@@ -44,6 +45,8 @@ export declare class PoDatetimepickerComponent extends PoDatetimepickerBaseCompo
|
|
|
44
45
|
el: ElementRef;
|
|
45
46
|
literals: any;
|
|
46
47
|
visible: boolean;
|
|
48
|
+
currentPeriod: string;
|
|
49
|
+
isInputFocused: boolean;
|
|
47
50
|
private clickListener;
|
|
48
51
|
private eventResizeListener;
|
|
49
52
|
private valueBeforeChange;
|
|
@@ -59,8 +62,12 @@ export declare class PoDatetimepickerComponent extends PoDatetimepickerBaseCompo
|
|
|
59
62
|
getErrorPattern(): string;
|
|
60
63
|
onKeyup($event: any): void;
|
|
61
64
|
onKeydown($event: any): void;
|
|
65
|
+
onInputFocus(): void;
|
|
66
|
+
onPeriodBlur(): void;
|
|
62
67
|
eventOnBlur($event: any): void;
|
|
68
|
+
eventOnButtonKeydown(event: KeyboardEvent): void;
|
|
63
69
|
eventOnClick($event: any): void;
|
|
70
|
+
onFieldClick($event: any): void;
|
|
64
71
|
private isFocusOnFirstCombo;
|
|
65
72
|
eventOnCalendarKeydown(event: KeyboardEvent): void;
|
|
66
73
|
onTimerBoundaryTab(event: {
|
|
@@ -68,10 +75,11 @@ export declare class PoDatetimepickerComponent extends PoDatetimepickerBaseCompo
|
|
|
68
75
|
event: KeyboardEvent;
|
|
69
76
|
column: string;
|
|
70
77
|
}): void;
|
|
78
|
+
writeValue(value: any): void;
|
|
71
79
|
refreshValue(value: Date): void;
|
|
72
80
|
onTimeChange(time: string): void;
|
|
73
81
|
onDateChange(date: any): void;
|
|
74
|
-
clear(): void;
|
|
82
|
+
clear(triggeredByKeyboard?: boolean): void;
|
|
75
83
|
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
76
84
|
hideAdditionalHelp: boolean;
|
|
77
85
|
helperSettings?: any;
|
|
@@ -127,4 +135,7 @@ export declare class PoDatetimepickerComponent extends PoDatetimepickerBaseCompo
|
|
|
127
135
|
private hasOverlayClass;
|
|
128
136
|
private hasAttrCalendar;
|
|
129
137
|
private emitChangeIfDifferent;
|
|
138
|
+
onPeriodKeydown(event: KeyboardEvent): void;
|
|
139
|
+
onPeriodClick(event: MouseEvent): void;
|
|
140
|
+
private togglePeriod;
|
|
130
141
|
}
|
|
@@ -29,6 +29,42 @@ export interface PoLookupColumn {
|
|
|
29
29
|
* Caso não seja informado, será utilizado como *label* o valor da propriedade *property* com a primeira letra em maiúsculo.
|
|
30
30
|
*/
|
|
31
31
|
label?: string;
|
|
32
|
+
/**
|
|
33
|
+
* @optional
|
|
34
|
+
*
|
|
35
|
+
* @description
|
|
36
|
+
*
|
|
37
|
+
* Define uma máscara para formatação do valor exibido na coluna.
|
|
38
|
+
*
|
|
39
|
+
* A máscara é aplicada somente para **exibição** na tabela da modal do lookup, formatando o valor bruto
|
|
40
|
+
* armazenado no model antes de apresentá-lo ao usuário.
|
|
41
|
+
*
|
|
42
|
+
* Caracteres válidos para a máscara:
|
|
43
|
+
* - `9` : aceita um dígito numérico (0-9).
|
|
44
|
+
* - `@` : aceita um caractere alfabético (a-z, A-Z).
|
|
45
|
+
* - `w` : aceita um caractere alfanumérico (a-z, A-Z, 0-9).
|
|
46
|
+
* - Demais caracteres são considerados fixos e inseridos automaticamente na formatação
|
|
47
|
+
* (por exemplo: `.`, `-`, `/`, `(`, `)`, `+`, ` `).
|
|
48
|
+
*
|
|
49
|
+
* Exemplos de uso:
|
|
50
|
+
* ```
|
|
51
|
+
* // CPF
|
|
52
|
+
* { property: 'cpf', label: 'CPF', mask: '999.999.999-99' }
|
|
53
|
+
*
|
|
54
|
+
* // CNPJ
|
|
55
|
+
* { property: 'cnpj', label: 'CNPJ', mask: '99.999.999/9999-99' }
|
|
56
|
+
*
|
|
57
|
+
* // Telefone
|
|
58
|
+
* { property: 'phone', label: 'Telefone', mask: '(99) 99999-9999' }
|
|
59
|
+
*
|
|
60
|
+
* // CEP
|
|
61
|
+
* { property: 'zipCode', label: 'CEP', mask: '99999-999' }
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* > Esta propriedade é utilizada apenas para colunas do tipo `string` (padrão).
|
|
65
|
+
* Caso a coluna possua um `type` diferente de `string`, a máscara será ignorada.
|
|
66
|
+
*/
|
|
67
|
+
mask?: string;
|
|
32
68
|
/** Nome identificador da coluna. */
|
|
33
69
|
property?: string;
|
|
34
70
|
/**
|
|
@@ -90,6 +90,12 @@ import { PoHelperComponent } from '../../po-helper';
|
|
|
90
90
|
* <file name="sample-po-lookup-multiple/sample-po-lookup-multiple.component.ts"> </file>
|
|
91
91
|
* <file name="sample-po-lookup-multiple/sample-po-lookup-multiple.service.ts"> </file>
|
|
92
92
|
* </example>
|
|
93
|
+
*
|
|
94
|
+
* <example name="po-lookup-mask" title="PO Lookup - Mask">
|
|
95
|
+
* <file name="sample-po-lookup-mask/sample-po-lookup-mask.component.html"> </file>
|
|
96
|
+
* <file name="sample-po-lookup-mask/sample-po-lookup-mask.component.ts"> </file>
|
|
97
|
+
* <file name="sample-po-lookup-mask/sample-po-lookup-mask.service.ts"> </file>
|
|
98
|
+
* </example>
|
|
93
99
|
*/
|
|
94
100
|
export declare class PoLookupComponent extends PoLookupBaseComponent implements AfterViewInit, OnDestroy, OnInit, DoCheck, OnChanges {
|
|
95
101
|
private readonly renderer;
|
|
@@ -106,6 +106,7 @@ export interface PoTableColumn {
|
|
|
106
106
|
* |------------|-----------------|-----------|----------|
|
|
107
107
|
* | Monetário | `currency` | Formato para valores monetários. Informe o código da moeda (ISO 4217). | `'BRL'`, `'USD'`, `'EUR'`, `'RUB'` |
|
|
108
108
|
* | Data | `date` | Aceita apenas os caracteres de dia(dd), mês(MM) e ano (yyyy ou yy), caso não seja informado um formato o mesmo será 'dd/MM/yyyy' | `'dd/MM/yyyy'`, `'dd-MM-yy'`, `'mm/dd/yyyy'` |
|
|
109
|
+
* | Data/Hora | `dateTime` | Aceita os caracteres de dia(dd), mês(MM), ano(yyyy), hora(HH para 24h ou hh para 12h), minutos(mm), segundos(ss), milissegundos(SSS) e período(a para AM/PM). Caso não seja informado um formato o mesmo será 'dd/MM/yyyy HH:mm:ss' | `'dd/MM/yyyy HH:mm'`, `'dd/MM/yyyy HH:mm:ss'`, `'dd/MM/yyyy HH:mm:ss.SSS'`, `'MM/dd/yyyy hh:mm a'`, `'yyyy-MM-dd HH:mm'`, `'short'`, `'medium'` |
|
|
109
110
|
* | Hora | `time` | Aceita apenas os caracteres de hora(HH), minutos(mm), segundos(ss) e milisegundos(f-ffffff), os milisegundos são opcionais, caso não seja informado um formato o mesmo será 'HH:mm:ss' | `'HH:mm'`, `'HH:mm:ss.ffffff'`, `'HH:mm:ss.ff'`, `'mm:ss.fff'` |
|
|
110
111
|
* | Número | `number` | Aceita um valor seguindo o padrão [**DecimalPipe**](https://angular.dev/api/common/DecimalPipe) para formatação, e caso não seja informado, o número será exibido na sua forma original. | `'1.2-5'` (ex.: `50` → `50.00`) |
|
|
111
112
|
*
|
|
@@ -214,8 +215,10 @@ export interface PoTableColumn {
|
|
|
214
215
|
* por exemplo: `'2017-11-28'` ou `new Date(2017, 10, 28)`.
|
|
215
216
|
*
|
|
216
217
|
* - `dateTime`: valor de data com horário.
|
|
217
|
-
* + Aceita o tipo _string_ no formato **ISO-8601** extendido **'yyyy-mm-
|
|
218
|
-
*
|
|
218
|
+
* + Aceita o tipo _string_ no formato **ISO-8601** extendido **'yyyy-mm-ddTHH:mm:ss+|-hh:mm'**
|
|
219
|
+
* ou **'yyyy-mm-ddTHH:mm+|-hh:mm'** (sem segundos),
|
|
220
|
+
* e o tipo _Date_ padrão do Javascript, por exemplo: `'2017-11-28T00:00:00-02:00'`, `'2017-11-28T14:30-02:00'` ou `new Date(2017, 10, 28)`.
|
|
221
|
+
* + A formatação de exibição pode ser configurada pela propriedade `format`.
|
|
219
222
|
*
|
|
220
223
|
* - `detail`: array de objetos para o master-detail.
|
|
221
224
|
* + Incompatível com `virtual-scroll`, que requer altura fixa nas linhas.
|
|
@@ -260,4 +263,40 @@ export interface PoTableColumn {
|
|
|
260
263
|
*/
|
|
261
264
|
width?: string;
|
|
262
265
|
fixed?: boolean;
|
|
266
|
+
/**
|
|
267
|
+
* @optional
|
|
268
|
+
*
|
|
269
|
+
* @description
|
|
270
|
+
*
|
|
271
|
+
* Define uma máscara para formatação do valor exibido na coluna.
|
|
272
|
+
*
|
|
273
|
+
* A máscara é aplicada somente para **exibição** na tabela, formatando o valor bruto
|
|
274
|
+
* armazenado no model antes de apresentá-lo ao usuário.
|
|
275
|
+
*
|
|
276
|
+
* Caracteres válidos para a máscara:
|
|
277
|
+
* - `9` : aceita um dígito numérico (0-9).
|
|
278
|
+
* - `@` : aceita um caractere alfabético (a-z, A-Z).
|
|
279
|
+
* - `w` : aceita um caractere alfanumérico (a-z, A-Z, 0-9).
|
|
280
|
+
* - Demais caracteres são considerados fixos e inseridos automaticamente na formatação
|
|
281
|
+
* (por exemplo: `.`, `-`, `/`, `(`, `)`, `+`, ` `).
|
|
282
|
+
*
|
|
283
|
+
* Exemplos de uso:
|
|
284
|
+
* ```
|
|
285
|
+
* // CPF
|
|
286
|
+
* { property: 'cpf', label: 'CPF', mask: '999.999.999-99' }
|
|
287
|
+
*
|
|
288
|
+
* // CNPJ
|
|
289
|
+
* { property: 'cnpj', label: 'CNPJ', mask: '99.999.999/9999-99' }
|
|
290
|
+
*
|
|
291
|
+
* // Telefone
|
|
292
|
+
* { property: 'phone', label: 'Telefone', mask: '(99) 99999-9999' }
|
|
293
|
+
*
|
|
294
|
+
* // CEP
|
|
295
|
+
* { property: 'zipCode', label: 'CEP', mask: '99999-999' }
|
|
296
|
+
* ```
|
|
297
|
+
*
|
|
298
|
+
* > Esta propriedade é utilizada apenas para colunas do tipo `string` (padrão).
|
|
299
|
+
* Caso a coluna possua um `type` diferente de `string`, a máscara será ignorada.
|
|
300
|
+
*/
|
|
301
|
+
mask?: string;
|
|
263
302
|
}
|
|
@@ -231,6 +231,8 @@ export declare class PoTableComponent extends PoTableBaseComponent implements Af
|
|
|
231
231
|
*/
|
|
232
232
|
deleteItems(): void;
|
|
233
233
|
formatNumber(value: any, format: string): any;
|
|
234
|
+
protected formatWithMask(value: any, mask: string): string;
|
|
235
|
+
private isValidMaskChar;
|
|
234
236
|
getCellData(row: any, column: PoTableColumn): any;
|
|
235
237
|
getBooleanLabel(rowValue: any, columnBoolean: PoTableColumn): string;
|
|
236
238
|
getColumnIcons(row: any, column: PoTableColumn): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.22.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.2.4",
|
|
25
|
-
"@po-ui/style": "21.
|
|
26
|
-
"@po-ui/ng-schematics": "21.
|
|
25
|
+
"@po-ui/style": "21.22.0",
|
|
26
|
+
"@po-ui/ng-schematics": "21.22.0",
|
|
27
27
|
"driver.js": "~1.4.0",
|
|
28
28
|
"echarts": "^5.6.0",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@angular/platform-browser-dynamic": "^21",
|
|
40
40
|
"@angular/router": "^21",
|
|
41
41
|
"@angular-devkit/schematics": "^21",
|
|
42
|
-
"@po-ui/style": "21.
|
|
42
|
+
"@po-ui/style": "21.22.0",
|
|
43
43
|
"rxjs": "~7.8.1",
|
|
44
44
|
"zone.js": "~0.15.0"
|
|
45
45
|
},
|
|
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.22.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.22.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.22.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.22.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.22.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.22.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.22.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.22.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.22.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.22.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(),
|
|
@@ -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.22.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.22.0', changes_1.updateDepedenciesVersion),
|
|
48
48
|
addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
|
|
49
49
|
addProviderToAppModule(options, newProviderDictionary),
|
|
50
50
|
updateAppConfigFileRule(),
|
|
@@ -9,7 +9,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
9
9
|
const changes_1 = require("./changes");
|
|
10
10
|
function main() {
|
|
11
11
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
12
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.
|
|
12
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.22.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
function default_1() {
|
|
@@ -7,7 +7,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
7
7
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
8
8
|
const changes_1 = require("./changes");
|
|
9
9
|
function updateToV3() {
|
|
10
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.22.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
11
11
|
}
|
|
12
12
|
function postUpdate() {
|
|
13
13
|
return (_, context) => {
|
|
@@ -7,7 +7,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
7
7
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
8
8
|
const changes_1 = require("./changes");
|
|
9
9
|
function default_1() {
|
|
10
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.22.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
11
11
|
}
|
|
12
12
|
function postUpdate() {
|
|
13
13
|
return (_, context) => {
|
|
@@ -7,7 +7,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
7
7
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
8
8
|
const changes_1 = require("./changes");
|
|
9
9
|
function default_1() {
|
|
10
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.22.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
11
11
|
}
|
|
12
12
|
function postUpdate() {
|
|
13
13
|
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.22.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|