@po-ui/ng-components 21.11.0 → 21.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/fesm2022/po-ui-ng-components.mjs +282 -13
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-chart/interfaces/po-chart-options.interface.d.ts +15 -0
- package/lib/components/po-chart/po-chart-base.component.d.ts +2 -0
- package/lib/components/po-progress/enums/po-progress-shape.enum.d.ts +13 -0
- package/lib/components/po-progress/enums/po-progress-status.enum.d.ts +1 -1
- package/lib/components/po-progress/index.d.ts +1 -0
- package/lib/components/po-progress/po-progress-bar/po-progress-bar.component.d.ts +1 -0
- package/lib/components/po-progress/po-progress-base.component.d.ts +70 -0
- package/lib/components/po-progress/po-progress-circle/po-progress-circle.component.d.ts +31 -0
- package/lib/components/po-progress/po-progress.component.d.ts +19 -2
- package/package.json +4 -4
- package/po-ui-ng-components-21.12.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 +159 -6
- package/po-ui-ng-components-21.11.0.tgz +0 -0
|
@@ -122,6 +122,21 @@ export interface PoChartOptions {
|
|
|
122
122
|
* @default `center`
|
|
123
123
|
*/
|
|
124
124
|
legendPosition?: 'left' | 'center' | 'right';
|
|
125
|
+
/**
|
|
126
|
+
* @optional
|
|
127
|
+
*
|
|
128
|
+
* @description
|
|
129
|
+
*
|
|
130
|
+
* Define o tipo da legenda.
|
|
131
|
+
*
|
|
132
|
+
* - `plain`: exibe todas as legendas de forma estática.
|
|
133
|
+
* - `scroll`: habilita rolagem quando a quantidade de legendas exceder o espaço disponível no gráfico.
|
|
134
|
+
*
|
|
135
|
+
* > Propriedade inválida para o gráfico do tipo `Gauge`.
|
|
136
|
+
*
|
|
137
|
+
* @default `plain`
|
|
138
|
+
*/
|
|
139
|
+
legendType?: 'plain' | 'scroll';
|
|
125
140
|
/**
|
|
126
141
|
* @optional
|
|
127
142
|
*
|
|
@@ -52,6 +52,8 @@ import { PoPopupAction } from '../po-popup';
|
|
|
52
52
|
* | `--font-size-grid` | Tamanho da fonte usada nos valores dos eixos | `var(--font-size-xs)` |
|
|
53
53
|
* | `--font-weight-grid` | Peso da fonte usada nos valores dos eixos | `var(--font-weight-normal)` |
|
|
54
54
|
* | `--color-legend` | Cor da fonte da legenda | `var(--color-neutral-dark-70)` |
|
|
55
|
+
* | `--color-legend-scroll-icon-active` | Cor do ícone de scroll da legenda no estado ativo, pro tipo `scroll` | `var(--color-action-default)` |
|
|
56
|
+
* | `--color-legend-scroll-icon-inactive` | Cor do ícone de scroll da legenda no estado inativo, pro tipo `scroll` | `var(--color-action-disabled)` |
|
|
55
57
|
* | `--border-radius-bar` | Tamanho da borda nos graficos `Bar` e `Column` | `var(--border-radius-none)` |
|
|
56
58
|
* | `--border-color` | Cor da borda do gráfico nos Gráficos `Donut` e `Pie` | `var(--color-neutral-light-00)` |
|
|
57
59
|
* | `--color-hightlight-value` | Cor do valor de destaque nos Gráficos `Donut` e `Gauge` | `var(--color-neutral-dark-70)` |
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @usedBy PoProgressComponent
|
|
3
|
+
*
|
|
4
|
+
* @description
|
|
5
|
+
*
|
|
6
|
+
* Enum `PoProgressShape` para definir o formato visual do componente de progresso.
|
|
7
|
+
*/
|
|
8
|
+
export declare enum PoProgressShape {
|
|
9
|
+
/** Formato barra de progresso (padrão). */
|
|
10
|
+
bar = "bar",
|
|
11
|
+
/** Formato circular de progresso. */
|
|
12
|
+
circle = "circle"
|
|
13
|
+
}
|
|
@@ -25,9 +25,22 @@ import { PoProgressAction } from './interfaces';
|
|
|
25
25
|
* | **po-progress-bar** | | |
|
|
26
26
|
* | `--background-color-tray` | Cor do background | `var(--color-brand-01-lightest)` |
|
|
27
27
|
* | `--background-color-indicator` | Cor do background do indicador | `var(--color-action-default)` |
|
|
28
|
+
* | **po-progress-circle** | | |
|
|
29
|
+
* | `--background-color-tray` | Cor do background | `var(--color-brand-01-lightest)` |
|
|
30
|
+
* | `--background-color-indicator` | Cor do background do indicador | `var(--color-action-default)` |
|
|
28
31
|
*
|
|
29
32
|
*/
|
|
30
33
|
export declare class PoProgressBaseComponent {
|
|
34
|
+
/**
|
|
35
|
+
* @optional
|
|
36
|
+
*
|
|
37
|
+
* @description
|
|
38
|
+
*
|
|
39
|
+
* Define um nome acessível para o elemento com `role="progressbar"`.
|
|
40
|
+
*
|
|
41
|
+
* Quando não informado, o componente utiliza o valor de `p-text` como alternativa, se disponível.
|
|
42
|
+
*/
|
|
43
|
+
ariaLabel?: string;
|
|
31
44
|
/**
|
|
32
45
|
* @optional
|
|
33
46
|
*
|
|
@@ -38,6 +51,8 @@ export declare class PoProgressBaseComponent {
|
|
|
38
51
|
* > Se nenhuma função for passada para o evento `(p-cancel)` ou a barra de progresso estiver com o status `PoProgressStatus.Success`,
|
|
39
52
|
* o ícone de cancelamento não será exibido.
|
|
40
53
|
*
|
|
54
|
+
* > Não compatível com `p-shape="circle"`.
|
|
55
|
+
*
|
|
41
56
|
* @default `false`
|
|
42
57
|
*/
|
|
43
58
|
disabledCancel: boolean;
|
|
@@ -47,6 +62,8 @@ export declare class PoProgressBaseComponent {
|
|
|
47
62
|
* @description
|
|
48
63
|
*
|
|
49
64
|
* Informação adicional que aparecerá abaixo da barra de progresso ao lado direito.
|
|
65
|
+
*
|
|
66
|
+
* > Não compatível com `p-shape="circle"`.
|
|
50
67
|
*/
|
|
51
68
|
info?: string;
|
|
52
69
|
/**
|
|
@@ -57,6 +74,8 @@ export declare class PoProgressBaseComponent {
|
|
|
57
74
|
* Ícone que aparecerá ao lado do texto da propriedade `p-info`.
|
|
58
75
|
*
|
|
59
76
|
* Exemplo: `an an-check`.
|
|
77
|
+
*
|
|
78
|
+
* > Não compatível com `p-shape="circle"`.
|
|
60
79
|
*/
|
|
61
80
|
infoIcon?: string | TemplateRef<void>;
|
|
62
81
|
/**
|
|
@@ -76,6 +95,8 @@ export declare class PoProgressBaseComponent {
|
|
|
76
95
|
* @description
|
|
77
96
|
*
|
|
78
97
|
* Texto principal que aparecerá abaixo da barra de progresso no lado esquerdo.
|
|
98
|
+
*
|
|
99
|
+
* > Não compatível com `p-shape="circle"`.
|
|
79
100
|
*/
|
|
80
101
|
text?: string;
|
|
81
102
|
/**
|
|
@@ -92,6 +113,8 @@ export declare class PoProgressBaseComponent {
|
|
|
92
113
|
* - **`disabled`**: Indica se o botão deve estar desabilitado (opcional).
|
|
93
114
|
* - **`visible`**: Determina se o botão será exibido. Pode ser um valor booleano ou uma função que retorna um booleano (opcional).
|
|
94
115
|
*
|
|
116
|
+
* > Não compatível com `p-shape="circle"`.
|
|
117
|
+
*
|
|
95
118
|
* @example
|
|
96
119
|
* **Exemplo de uso:**
|
|
97
120
|
* ```html
|
|
@@ -128,6 +151,8 @@ export declare class PoProgressBaseComponent {
|
|
|
128
151
|
* Evento emitido quando o botão definido em `p-custom-action` é clicado. Este evento retorna informações
|
|
129
152
|
* relacionadas à barra de progresso ou ao arquivo/processo associado, permitindo executar ações específicas.
|
|
130
153
|
*
|
|
154
|
+
* > Não compatível com `p-shape="circle"`.
|
|
155
|
+
*
|
|
131
156
|
* @example
|
|
132
157
|
* **Exemplo de uso:**
|
|
133
158
|
*
|
|
@@ -168,6 +193,8 @@ export declare class PoProgressBaseComponent {
|
|
|
168
193
|
*
|
|
169
194
|
* > Se nenhuma função for passada para o evento ou a barra de progresso estiver com o status `PoProgressStatus.Success`,
|
|
170
195
|
* o ícone de cancelamento não será exibido.
|
|
196
|
+
*
|
|
197
|
+
* > Não compatível com `p-shape="circle"`.
|
|
171
198
|
*/
|
|
172
199
|
cancel: EventEmitter<any>;
|
|
173
200
|
/**
|
|
@@ -179,6 +206,8 @@ export declare class PoProgressBaseComponent {
|
|
|
179
206
|
*
|
|
180
207
|
* > o ícone será exibido apenas se informar uma função neste evento e o status da barra de progresso for
|
|
181
208
|
* `PoProgressStatus.Error`.
|
|
209
|
+
*
|
|
210
|
+
* > Não compatível com `p-shape="circle"`.
|
|
182
211
|
*/
|
|
183
212
|
retry: EventEmitter<any>;
|
|
184
213
|
private _indeterminate?;
|
|
@@ -186,6 +215,43 @@ export declare class PoProgressBaseComponent {
|
|
|
186
215
|
private _size;
|
|
187
216
|
private _sizeActions;
|
|
188
217
|
private _initialSizeActions;
|
|
218
|
+
/**
|
|
219
|
+
* @optional
|
|
220
|
+
*
|
|
221
|
+
* @description
|
|
222
|
+
*
|
|
223
|
+
* Define o formato visual do componente de progresso.
|
|
224
|
+
*
|
|
225
|
+
* Valores válidos:
|
|
226
|
+
* - `bar`: exibe o progresso em formato de barra.
|
|
227
|
+
* - `circle`: exibe o progresso em formato circular.
|
|
228
|
+
*
|
|
229
|
+
* @example
|
|
230
|
+
* ```html
|
|
231
|
+
* <po-progress p-shape="circle" [p-value]="50"></po-progress>
|
|
232
|
+
* ```
|
|
233
|
+
*
|
|
234
|
+
* @default `bar`
|
|
235
|
+
*/
|
|
236
|
+
shape: import("@angular/core").InputSignalWithTransform<string, string>;
|
|
237
|
+
/**
|
|
238
|
+
* @optional
|
|
239
|
+
*
|
|
240
|
+
* @description
|
|
241
|
+
*
|
|
242
|
+
* Define o raio do círculo SVG em pixels. Permite ao usuário customizar o tamanho
|
|
243
|
+
* do indicador circular ao utilizar `p-shape="circle"`.
|
|
244
|
+
*
|
|
245
|
+
* > O valor mínimo aceito é **24**.
|
|
246
|
+
*
|
|
247
|
+
* > Quando não informado, o componente calcula o raio automaticamente a partir do container pai.
|
|
248
|
+
* Caso o container pai não possua dimensões definidas, o valor padrão de **45** será utilizado.
|
|
249
|
+
*
|
|
250
|
+
* > Não compatível com `p-shape="bar"`.
|
|
251
|
+
*
|
|
252
|
+
* @default `45` (automático)
|
|
253
|
+
*/
|
|
254
|
+
radius: import("@angular/core").InputSignalWithTransform<number, number>;
|
|
189
255
|
/**
|
|
190
256
|
* @optional
|
|
191
257
|
*
|
|
@@ -241,6 +307,8 @@ export declare class PoProgressBaseComponent {
|
|
|
241
307
|
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
242
308
|
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
243
309
|
*
|
|
310
|
+
* > Não compatível com `p-shape="circle"`.
|
|
311
|
+
*
|
|
244
312
|
* @default `medium`
|
|
245
313
|
*/
|
|
246
314
|
set sizeActions(value: string);
|
|
@@ -252,6 +320,8 @@ export declare class PoProgressBaseComponent {
|
|
|
252
320
|
*
|
|
253
321
|
* Ativa a exibição da porcentagem atual da barra de progresso.
|
|
254
322
|
*
|
|
323
|
+
* > Se utilizada no `p-shape="circle"` e o status estiver como `error`, a porcentagem não será exibida.
|
|
324
|
+
*
|
|
255
325
|
* @default `false`
|
|
256
326
|
*/
|
|
257
327
|
showPercentage: boolean;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare class PoProgressCircleComponent {
|
|
2
|
+
indeterminate: import("@angular/core").InputSignalWithTransform<boolean, boolean>;
|
|
3
|
+
showPercentage: import("@angular/core").InputSignalWithTransform<boolean, boolean>;
|
|
4
|
+
size: import("@angular/core").InputSignalWithTransform<string, string>;
|
|
5
|
+
status: import("@angular/core").InputSignalWithTransform<string, string>;
|
|
6
|
+
ariaLabelInput: import("@angular/core").InputSignal<string>;
|
|
7
|
+
ariaLabel: import("@angular/core").Signal<string>;
|
|
8
|
+
value: import("@angular/core").InputSignal<number>;
|
|
9
|
+
radius: import("@angular/core").InputSignal<number>;
|
|
10
|
+
parentSize: import("@angular/core").InputSignal<number>;
|
|
11
|
+
strokeWidth: import("@angular/core").Signal<4 | 8>;
|
|
12
|
+
/**
|
|
13
|
+
* Raio base calculado de acordo com as regras de prioridade:
|
|
14
|
+
*
|
|
15
|
+
* 1. Se `radius > 0` (usuário informou radius explicitamente):
|
|
16
|
+
* - Se o pai tem dimensão: limita ao máximo que cabe no pai (evita estouro)
|
|
17
|
+
* - Se o pai não tem dimensão: usa o radius informado diretamente
|
|
18
|
+
*
|
|
19
|
+
* 2. Se `radius === 0` (usuário NÃO informou radius):
|
|
20
|
+
* - Se o pai tem dimensão: ocupa o máximo disponível no pai
|
|
21
|
+
* - Se o pai não tem dimensão: usa o default de 45
|
|
22
|
+
*/
|
|
23
|
+
baseRadius: import("@angular/core").Signal<number>;
|
|
24
|
+
hasCenterContent: import("@angular/core").Signal<boolean>;
|
|
25
|
+
effectiveRadius: import("@angular/core").Signal<number>;
|
|
26
|
+
viewBoxSize: import("@angular/core").Signal<number>;
|
|
27
|
+
center: import("@angular/core").Signal<number>;
|
|
28
|
+
circumference: import("@angular/core").Signal<number>;
|
|
29
|
+
dashOffset: import("@angular/core").Signal<number>;
|
|
30
|
+
naturalSize: import("@angular/core").Signal<string>;
|
|
31
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { PoProgressBaseComponent } from './po-progress-base.component';
|
|
3
3
|
/**
|
|
4
4
|
* @docsExtends PoProgressBaseComponent
|
|
@@ -19,20 +19,37 @@ import { PoProgressBaseComponent } from './po-progress-base.component';
|
|
|
19
19
|
* <file name="sample-po-progress-publication/sample-po-progress-publication.component.html"> </file>
|
|
20
20
|
* <file name="sample-po-progress-publication/sample-po-progress-publication.component.ts"> </file>
|
|
21
21
|
* </example>
|
|
22
|
+
*
|
|
23
|
+
* <example name="po-progress-circle" title="PO Progress Circle">
|
|
24
|
+
* <file name="sample-po-progress-circle/sample-po-progress-circle.component.html"> </file>
|
|
25
|
+
* <file name="sample-po-progress-circle/sample-po-progress-circle.component.ts"> </file>
|
|
26
|
+
* <file name="sample-po-progress-circle/sample-po-progress-circle.component.css"> </file>
|
|
27
|
+
* </example>
|
|
28
|
+
*
|
|
22
29
|
*/
|
|
23
|
-
export declare class PoProgressComponent extends PoProgressBaseComponent implements OnInit {
|
|
30
|
+
export declare class PoProgressComponent extends PoProgressBaseComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
24
31
|
language: any;
|
|
25
32
|
literals: any;
|
|
33
|
+
private readonly elementRef;
|
|
34
|
+
private resizeObserver?;
|
|
35
|
+
private observeTarget;
|
|
26
36
|
get isAllowCancel(): boolean;
|
|
27
37
|
get isAllowInfoError(): boolean;
|
|
28
38
|
get isAllowRetry(): boolean;
|
|
29
39
|
get statusClass(): string;
|
|
30
40
|
private readonly poLanguageService;
|
|
31
41
|
private readonly router;
|
|
42
|
+
parentSize: import("@angular/core").WritableSignal<number>;
|
|
32
43
|
ngOnInit(): void;
|
|
44
|
+
ngAfterViewInit(): void;
|
|
45
|
+
ngOnDestroy(): void;
|
|
33
46
|
emitCancellation(): void;
|
|
34
47
|
emitRetry(): void;
|
|
35
48
|
actionIsDisabled(action: any): any;
|
|
36
49
|
callAction(): void;
|
|
37
50
|
isActionVisible(action: any): any;
|
|
51
|
+
private hasExplicitHeight;
|
|
52
|
+
private hasAllocatedHeight;
|
|
53
|
+
private measureAndSetParentSize;
|
|
54
|
+
private findConstrainedAncestor;
|
|
38
55
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.12.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.12.0",
|
|
26
|
+
"@po-ui/ng-schematics": "21.12.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.12.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.12.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.12.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.12.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.12.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.12.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.12.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.12.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.12.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.12.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.12.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.12.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.12.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.12.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.12.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.12.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.12.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.12.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|