@po-ui/ng-components 20.1.0 → 20.2.1
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 +91 -8
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/index.d.ts +88 -6
- package/lib/interceptors/po-http-interceptor/po-http-interceptor-base.service.d.ts +34 -6
- package/lib/interceptors/po-http-request/po-http-request-interceptor.service.d.ts +54 -0
- package/package.json +4 -4
- package/po-ui-ng-components-20.2.1.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/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/po-ui-ng-components-20.1.0.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -31338,11 +31338,15 @@ declare function InputRequired(): (target: any, property: string) => void;
|
|
|
31338
31338
|
*
|
|
31339
31339
|
* ## Configuração
|
|
31340
31340
|
*
|
|
31341
|
-
* Para o correto funcionamento do interceptor `po-http-interceptor`, deve ser importado o `BrowserAnimationsModule`
|
|
31342
|
-
*
|
|
31343
|
-
*
|
|
31341
|
+
* Para o correto funcionamento do interceptor `po-http-interceptor`, deve ser importado o `BrowserAnimationsModule` na
|
|
31342
|
+
* aplicação. Além disso, é necessário configurar o `HttpClient` para utilizar os interceptors registrados via Dependency
|
|
31343
|
+
* Injection (DI) por meio da função `provideHttpClient(withInterceptorsFromDi())`.
|
|
31344
|
+
*
|
|
31345
|
+
* ### 1) NgModule
|
|
31346
|
+
*
|
|
31347
|
+
* No módulo principal da aplicação (geralmente `AppModule`), importe o `BrowserAnimationsModule` e configure o `HttpClient`,
|
|
31348
|
+
* como no exemplo abaixo:
|
|
31344
31349
|
*
|
|
31345
|
-
* Módulo da aplicação:
|
|
31346
31350
|
* ```
|
|
31347
31351
|
* import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
31348
31352
|
* import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
@@ -31372,6 +31376,32 @@ declare function InputRequired(): (target: any, property: string) => void;
|
|
|
31372
31376
|
* Ao importar o módulo `PoModule` na aplicação, o `po-http-interceptor` é automaticamente configurado sem a necessidade
|
|
31373
31377
|
* de qualquer configuração extra.
|
|
31374
31378
|
*
|
|
31379
|
+
* ### 2) Standalone
|
|
31380
|
+
*
|
|
31381
|
+
* No arquivo contendo a configuração da aplicação (geralmente `src/app/app.config.ts`), adicione os providers e configure o `HttpClient`,
|
|
31382
|
+
* como no exemplo abaixo:
|
|
31383
|
+
*
|
|
31384
|
+
* ```
|
|
31385
|
+
* import { ApplicationConfig, importProvidersFrom } from '@angular/core';
|
|
31386
|
+
* import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
31387
|
+
* import { provideAnimations } from '@angular/platform-browser/animations';
|
|
31388
|
+
* import { PoHttpInterceptorModule } from '@po-ui/ng-components';
|
|
31389
|
+
*
|
|
31390
|
+
* export const appConfig: ApplicationConfig = {
|
|
31391
|
+
* providers: [
|
|
31392
|
+
* ...
|
|
31393
|
+
* provideAnimations(),
|
|
31394
|
+
* provideHttpClient(withInterceptorsFromDi()),
|
|
31395
|
+
* importProvidersFrom([
|
|
31396
|
+
* PoHttpInterceptorModule
|
|
31397
|
+
* ]),
|
|
31398
|
+
* ...
|
|
31399
|
+
* ]
|
|
31400
|
+
* };
|
|
31401
|
+
* ```
|
|
31402
|
+
*
|
|
31403
|
+
* ## Como usar
|
|
31404
|
+
*
|
|
31375
31405
|
* Ao realizar requisições utilize o `HttpClient`, conforme exemplo abaixo:
|
|
31376
31406
|
*
|
|
31377
31407
|
* ```
|
|
@@ -31395,8 +31425,6 @@ declare function InputRequired(): (target: any, property: string) => void;
|
|
|
31395
31425
|
* }
|
|
31396
31426
|
* ```
|
|
31397
31427
|
*
|
|
31398
|
-
* ## Como usar
|
|
31399
|
-
*
|
|
31400
31428
|
* Para exibir as noticações é necessário informar a mensagem no retorno da requisição. A estrutura da mensagem
|
|
31401
31429
|
* é feita com base no status da resposta, conforme será apresentado nos próximos tópicos.
|
|
31402
31430
|
*
|
|
@@ -31551,9 +31579,63 @@ declare class PoHttpRequesControltService {
|
|
|
31551
31579
|
* ```
|
|
31552
31580
|
* > Após a validação no interceptor, o parâmetro será removido do cabeçalho da requisição.
|
|
31553
31581
|
*
|
|
31582
|
+
* ## Configuração
|
|
31583
|
+
*
|
|
31584
|
+
* É necessário configurar o `HttpClient` para utilizar os interceptors registrados via Dependency Injection (DI)
|
|
31585
|
+
* por meio da função `provideHttpClient(withInterceptorsFromDi())`.
|
|
31586
|
+
*
|
|
31587
|
+
* ### 1) NgModule
|
|
31588
|
+
*
|
|
31589
|
+
* ```
|
|
31590
|
+
* import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
31591
|
+
* import { PoModule } from '@po-ui/ng-components';
|
|
31592
|
+
* ...
|
|
31593
|
+
*
|
|
31594
|
+
* @NgModule({
|
|
31595
|
+
* imports: [
|
|
31596
|
+
* ...
|
|
31597
|
+
* PoModule
|
|
31598
|
+
* ],
|
|
31599
|
+
* declarations: [
|
|
31600
|
+
* AppComponent,
|
|
31601
|
+
* ...
|
|
31602
|
+
* ],
|
|
31603
|
+
* providers: [
|
|
31604
|
+
* provideHttpClient(withInterceptorsFromDi()),
|
|
31605
|
+
* ...
|
|
31606
|
+
* ],
|
|
31607
|
+
* bootstrap: [AppComponent]
|
|
31608
|
+
* })
|
|
31609
|
+
* export class AppModule { }
|
|
31610
|
+
* ```
|
|
31611
|
+
*
|
|
31554
31612
|
* Ao importar o módulo `PoModule` na aplicação, o `po-http-request-interceptor` é automaticamente configurado sem a necessidade
|
|
31555
31613
|
* de qualquer configuração extra.
|
|
31556
31614
|
*
|
|
31615
|
+
* ### 2) Standalone
|
|
31616
|
+
*
|
|
31617
|
+
* No arquivo contendo a configuração da aplicação (geralmente `src/app/app.config.ts`), adicione os providers e configure o `HttpClient`,
|
|
31618
|
+
* como no exemplo abaixo:
|
|
31619
|
+
*
|
|
31620
|
+
* ```
|
|
31621
|
+
* import { ApplicationConfig, importProvidersFrom } from '@angular/core';
|
|
31622
|
+
* import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
31623
|
+
* import { provideAnimations } from '@angular/platform-browser/animations';
|
|
31624
|
+
* import { PoHttpRequestModule } from '@po-ui/ng-components';
|
|
31625
|
+
*
|
|
31626
|
+
* export const appConfig: ApplicationConfig = {
|
|
31627
|
+
* providers: [
|
|
31628
|
+
* ...
|
|
31629
|
+
* provideHttpClient(withInterceptorsFromDi()),
|
|
31630
|
+
* importProvidersFrom([
|
|
31631
|
+
* PoHttpRequestModule
|
|
31632
|
+
* ]),
|
|
31633
|
+
* ...
|
|
31634
|
+
* ]
|
|
31635
|
+
* };
|
|
31636
|
+
* ```
|
|
31637
|
+
*
|
|
31638
|
+
* ## Como usar
|
|
31557
31639
|
*
|
|
31558
31640
|
* Segue abaixo um exemplo de uso:
|
|
31559
31641
|
*
|
|
@@ -12,11 +12,15 @@ import { PoLanguageService } from '../../services/po-language/po-language.servic
|
|
|
12
12
|
*
|
|
13
13
|
* ## Configuração
|
|
14
14
|
*
|
|
15
|
-
* Para o correto funcionamento do interceptor `po-http-interceptor`, deve ser importado o `BrowserAnimationsModule`
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* Para o correto funcionamento do interceptor `po-http-interceptor`, deve ser importado o `BrowserAnimationsModule` na
|
|
16
|
+
* aplicação. Além disso, é necessário configurar o `HttpClient` para utilizar os interceptors registrados via Dependency
|
|
17
|
+
* Injection (DI) por meio da função `provideHttpClient(withInterceptorsFromDi())`.
|
|
18
|
+
*
|
|
19
|
+
* ### 1) NgModule
|
|
20
|
+
*
|
|
21
|
+
* No módulo principal da aplicação (geralmente `AppModule`), importe o `BrowserAnimationsModule` e configure o `HttpClient`,
|
|
22
|
+
* como no exemplo abaixo:
|
|
18
23
|
*
|
|
19
|
-
* Módulo da aplicação:
|
|
20
24
|
* ```
|
|
21
25
|
* import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
22
26
|
* import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
@@ -46,6 +50,32 @@ import { PoLanguageService } from '../../services/po-language/po-language.servic
|
|
|
46
50
|
* Ao importar o módulo `PoModule` na aplicação, o `po-http-interceptor` é automaticamente configurado sem a necessidade
|
|
47
51
|
* de qualquer configuração extra.
|
|
48
52
|
*
|
|
53
|
+
* ### 2) Standalone
|
|
54
|
+
*
|
|
55
|
+
* No arquivo contendo a configuração da aplicação (geralmente `src/app/app.config.ts`), adicione os providers e configure o `HttpClient`,
|
|
56
|
+
* como no exemplo abaixo:
|
|
57
|
+
*
|
|
58
|
+
* ```
|
|
59
|
+
* import { ApplicationConfig, importProvidersFrom } from '@angular/core';
|
|
60
|
+
* import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
61
|
+
* import { provideAnimations } from '@angular/platform-browser/animations';
|
|
62
|
+
* import { PoHttpInterceptorModule } from '@po-ui/ng-components';
|
|
63
|
+
*
|
|
64
|
+
* export const appConfig: ApplicationConfig = {
|
|
65
|
+
* providers: [
|
|
66
|
+
* ...
|
|
67
|
+
* provideAnimations(),
|
|
68
|
+
* provideHttpClient(withInterceptorsFromDi()),
|
|
69
|
+
* importProvidersFrom([
|
|
70
|
+
* PoHttpInterceptorModule
|
|
71
|
+
* ]),
|
|
72
|
+
* ...
|
|
73
|
+
* ]
|
|
74
|
+
* };
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* ## Como usar
|
|
78
|
+
*
|
|
49
79
|
* Ao realizar requisições utilize o `HttpClient`, conforme exemplo abaixo:
|
|
50
80
|
*
|
|
51
81
|
* ```
|
|
@@ -69,8 +99,6 @@ import { PoLanguageService } from '../../services/po-language/po-language.servic
|
|
|
69
99
|
* }
|
|
70
100
|
* ```
|
|
71
101
|
*
|
|
72
|
-
* ## Como usar
|
|
73
|
-
*
|
|
74
102
|
* Para exibir as noticações é necessário informar a mensagem no retorno da requisição. A estrutura da mensagem
|
|
75
103
|
* é feita com base no status da resposta, conforme será apresentado nos próximos tópicos.
|
|
76
104
|
*
|
|
@@ -38,9 +38,63 @@ import { PoHttpRequesControltService } from './po-http-request-control-service';
|
|
|
38
38
|
* ```
|
|
39
39
|
* > Após a validação no interceptor, o parâmetro será removido do cabeçalho da requisição.
|
|
40
40
|
*
|
|
41
|
+
* ## Configuração
|
|
42
|
+
*
|
|
43
|
+
* É necessário configurar o `HttpClient` para utilizar os interceptors registrados via Dependency Injection (DI)
|
|
44
|
+
* por meio da função `provideHttpClient(withInterceptorsFromDi())`.
|
|
45
|
+
*
|
|
46
|
+
* ### 1) NgModule
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
* import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
50
|
+
* import { PoModule } from '@po-ui/ng-components';
|
|
51
|
+
* ...
|
|
52
|
+
*
|
|
53
|
+
* @NgModule({
|
|
54
|
+
* imports: [
|
|
55
|
+
* ...
|
|
56
|
+
* PoModule
|
|
57
|
+
* ],
|
|
58
|
+
* declarations: [
|
|
59
|
+
* AppComponent,
|
|
60
|
+
* ...
|
|
61
|
+
* ],
|
|
62
|
+
* providers: [
|
|
63
|
+
* provideHttpClient(withInterceptorsFromDi()),
|
|
64
|
+
* ...
|
|
65
|
+
* ],
|
|
66
|
+
* bootstrap: [AppComponent]
|
|
67
|
+
* })
|
|
68
|
+
* export class AppModule { }
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
41
71
|
* Ao importar o módulo `PoModule` na aplicação, o `po-http-request-interceptor` é automaticamente configurado sem a necessidade
|
|
42
72
|
* de qualquer configuração extra.
|
|
43
73
|
*
|
|
74
|
+
* ### 2) Standalone
|
|
75
|
+
*
|
|
76
|
+
* No arquivo contendo a configuração da aplicação (geralmente `src/app/app.config.ts`), adicione os providers e configure o `HttpClient`,
|
|
77
|
+
* como no exemplo abaixo:
|
|
78
|
+
*
|
|
79
|
+
* ```
|
|
80
|
+
* import { ApplicationConfig, importProvidersFrom } from '@angular/core';
|
|
81
|
+
* import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
82
|
+
* import { provideAnimations } from '@angular/platform-browser/animations';
|
|
83
|
+
* import { PoHttpRequestModule } from '@po-ui/ng-components';
|
|
84
|
+
*
|
|
85
|
+
* export const appConfig: ApplicationConfig = {
|
|
86
|
+
* providers: [
|
|
87
|
+
* ...
|
|
88
|
+
* provideHttpClient(withInterceptorsFromDi()),
|
|
89
|
+
* importProvidersFrom([
|
|
90
|
+
* PoHttpRequestModule
|
|
91
|
+
* ]),
|
|
92
|
+
* ...
|
|
93
|
+
* ]
|
|
94
|
+
* };
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* ## Como usar
|
|
44
98
|
*
|
|
45
99
|
* Segue abaixo um exemplo de uso:
|
|
46
100
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "20.1
|
|
3
|
+
"version": "20.2.1",
|
|
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": "~20.0.3",
|
|
25
|
-
"@po-ui/style": "20.1
|
|
26
|
-
"@po-ui/ng-schematics": "20.1
|
|
25
|
+
"@po-ui/style": "20.2.1",
|
|
26
|
+
"@po-ui/ng-schematics": "20.2.1",
|
|
27
27
|
"echarts": "^5.6.0",
|
|
28
28
|
"tslib": "^2.3.0"
|
|
29
29
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@angular/platform-browser-dynamic": "^20",
|
|
39
39
|
"@angular/router": "^20",
|
|
40
40
|
"@angular-devkit/schematics": "^20",
|
|
41
|
-
"@po-ui/style": "20.1
|
|
41
|
+
"@po-ui/style": "20.2.1",
|
|
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', '20.1
|
|
21
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '20.2.1');
|
|
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)('20.1
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.1', 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)('20.1
|
|
14
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.1', 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)('20.1
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.1', 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)('20.1
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.1', 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)('20.1
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.1', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('20.1
|
|
47
|
+
(0, package_config_1.updatePackageJson)('20.2.1', 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)('20.1
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.1', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('20.1
|
|
47
|
+
(0, package_config_1.updatePackageJson)('20.2.1', 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('20.1
|
|
13
|
+
updatePackageJson('20.2.1', 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)('20.1
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.1', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('20.1
|
|
47
|
+
(0, package_config_1.updatePackageJson)('20.2.1', changes_1.updateDepedenciesVersion),
|
|
48
48
|
addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
|
|
49
49
|
addProviderToAppModule(options, newProviderDictionary),
|
|
50
50
|
updateAppConfigFileRule(),
|
|
@@ -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)('20.1
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.1', 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)('20.1
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.1', 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)('20.1
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.1', 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)('20.1
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.1', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
Binary file
|