@po-ui/ng-components 17.7.0 → 17.9.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/esm2022/lib/components/po-table/po-table-base.component.mjs +17 -2
- package/esm2022/lib/components/po-table/po-table-column-label/po-table-column-label.component.mjs +4 -5
- package/esm2022/lib/components/po-table/po-table.component.mjs +7 -7
- package/esm2022/lib/services/index.mjs +2 -1
- package/esm2022/lib/services/po-theme/enum/po-theme-type.enum.mjs +27 -0
- package/esm2022/lib/services/po-theme/helpers/po-theme-dark-defaults.constant.mjs +203 -0
- package/esm2022/lib/services/po-theme/helpers/po-theme-light-defaults.constant.mjs +134 -0
- package/esm2022/lib/services/po-theme/helpers/po-theme-poui.constant.mjs +31 -0
- package/esm2022/lib/services/po-theme/index.mjs +10 -0
- package/esm2022/lib/services/po-theme/interfaces/po-theme-color.interface.mjs +3 -0
- package/esm2022/lib/services/po-theme/interfaces/po-theme-tokens.interface.mjs +2 -0
- package/esm2022/lib/services/po-theme/interfaces/po-theme.interface.mjs +2 -0
- package/esm2022/lib/services/po-theme/po-theme.module.mjs +27 -0
- package/esm2022/lib/services/po-theme/po-theme.service.mjs +260 -0
- package/esm2022/lib/services/services.module.mjs +14 -7
- package/fesm2022/po-ui-ng-components.mjs +711 -20
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-table/po-table-base.component.d.ts +14 -1
- package/lib/components/po-table/po-table-column-label/po-table-column-label.component.d.ts +1 -2
- package/lib/services/index.d.ts +1 -0
- package/lib/services/po-theme/enum/po-theme-type.enum.d.ts +25 -0
- package/lib/services/po-theme/helpers/po-theme-dark-defaults.constant.d.ts +116 -0
- package/lib/services/po-theme/helpers/po-theme-light-defaults.constant.d.ts +41 -0
- package/lib/services/po-theme/helpers/po-theme-poui.constant.d.ts +11 -0
- package/lib/services/po-theme/index.d.ts +9 -0
- package/lib/services/po-theme/interfaces/po-theme-color.interface.d.ts +374 -0
- package/lib/services/po-theme/interfaces/po-theme-tokens.interface.d.ts +61 -0
- package/lib/services/po-theme/interfaces/po-theme.interface.d.ts +28 -0
- package/lib/services/po-theme/po-theme.module.d.ts +9 -0
- package/lib/services/po-theme/po-theme.service.d.ts +129 -0
- package/lib/services/services.module.d.ts +2 -1
- package/package.json +4 -4
- package/po-ui-ng-components-17.9.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/v2/index.js +1 -1
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/po-ui-ng-components-17.7.0.tgz +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { PoThemeColor } from './po-theme-color.interface';
|
|
2
|
+
/**
|
|
3
|
+
* @usedBy PoThemeService
|
|
4
|
+
* @docsExtends PoThemeToken, Partial<DynamicProperties>
|
|
5
|
+
* @description
|
|
6
|
+
* Interface para o tema da aplicação.
|
|
7
|
+
*/
|
|
8
|
+
export interface PoThemeTokens extends PoThemeToken, Partial<DynamicProperties> {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @usedBy PoThemeService
|
|
12
|
+
* @description
|
|
13
|
+
* Interface para os tokens do Tema.
|
|
14
|
+
*/
|
|
15
|
+
export interface PoThemeToken {
|
|
16
|
+
/** Tokens do tipo 'color' */
|
|
17
|
+
'color'?: PoThemeColor;
|
|
18
|
+
/**
|
|
19
|
+
* Tokens do tipo 'perComponent'
|
|
20
|
+
*
|
|
21
|
+
* Exemplo de uso:
|
|
22
|
+
*
|
|
23
|
+
* ```typescript
|
|
24
|
+
* perComponent: {
|
|
25
|
+
* 'po-badge': {
|
|
26
|
+
* '--color': 'var(--color-neutral-dark-95)',
|
|
27
|
+
* },
|
|
28
|
+
* 'po-container': {
|
|
29
|
+
* '--background': '#121212',
|
|
30
|
+
* },
|
|
31
|
+
* },
|
|
32
|
+
* ```
|
|
33
|
+
* @Optional
|
|
34
|
+
*/
|
|
35
|
+
'perComponent'?: DynamicProperties;
|
|
36
|
+
/**
|
|
37
|
+
* Tokens do tipo 'onRoot'
|
|
38
|
+
* Esta propriedade adicionará todos os tokens passados e adicionado direto no `:root`
|
|
39
|
+
*
|
|
40
|
+
* Exemplo de uso:
|
|
41
|
+
*
|
|
42
|
+
* ```typescript
|
|
43
|
+
* onRoot: {
|
|
44
|
+
* '--color-page-background-color-page': '#121212',
|
|
45
|
+
* '--color-toolbar-color-badge-text': 'var(--color-neutral-dark-95)',
|
|
46
|
+
* },
|
|
47
|
+
* ```
|
|
48
|
+
* @Optional
|
|
49
|
+
*/
|
|
50
|
+
'onRoot'?: DynamicProperties;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @docsPrivate
|
|
54
|
+
* @description
|
|
55
|
+
* Interface para as variantes da cor de Brand.
|
|
56
|
+
* Tipo com index signature para aceitar propriedades dinâmicas
|
|
57
|
+
*/
|
|
58
|
+
interface DynamicProperties {
|
|
59
|
+
[key: string]: any;
|
|
60
|
+
}
|
|
61
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PoThemeTypeEnum } from '../enum/po-theme-type.enum';
|
|
2
|
+
import { PoThemeTokens } from './po-theme-tokens.interface';
|
|
3
|
+
/**
|
|
4
|
+
* @usedBy PoThemeService
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* Interface para o método `setTheme()`.
|
|
8
|
+
*/
|
|
9
|
+
export interface PoTheme {
|
|
10
|
+
/** Nome do tema: 'default', 'totvs', 'sunset', etc. */
|
|
11
|
+
name: string;
|
|
12
|
+
/** Tipos de tema: 'light' e 'dark' */
|
|
13
|
+
type: PoThemeType;
|
|
14
|
+
/** Tipo de tema ativo */
|
|
15
|
+
active?: PoThemeTypeEnum;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @docsPrivate
|
|
19
|
+
* @description
|
|
20
|
+
* Interface para os tipos de tema ('light' e 'dark').
|
|
21
|
+
*/
|
|
22
|
+
interface PoThemeType {
|
|
23
|
+
/** Tipo de tipo 'light' */
|
|
24
|
+
light?: PoThemeTokens;
|
|
25
|
+
/** Tipo de tipo 'dark' */
|
|
26
|
+
dark?: PoThemeTokens;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Módulo responsável por fornecer serviços relacionados ao tema PO.
|
|
4
|
+
*/
|
|
5
|
+
export declare class PoThemeModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoThemeModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoThemeModule, never, never, never>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PoThemeModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { RendererFactory2 } from '@angular/core';
|
|
2
|
+
import { PoThemeTypeEnum } from './enum/po-theme-type.enum';
|
|
3
|
+
import { PoTheme } from './interfaces/po-theme.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
*
|
|
8
|
+
* O `PoThemeService` possibilita a personalização das cores do tema padrão do `PO-UI`, permitindo a alteração dos valores das variáveis de estilo usadas no CSS padrão.
|
|
9
|
+
*
|
|
10
|
+
* > Para saber mais sobre como customizar as cores do tema padrão verifique o item [Customizando cores do tema padrão](https://po-ui.io/guides/colors-customization) na aba `Guias`.
|
|
11
|
+
*
|
|
12
|
+
* > Obs.: Não está documentado aqui e não indicamos a customização das cores de 'feedback' por motivos de acessibilidade e usabilidade.
|
|
13
|
+
*/
|
|
14
|
+
export declare class PoThemeService {
|
|
15
|
+
private window;
|
|
16
|
+
private document;
|
|
17
|
+
private renderer;
|
|
18
|
+
private theme;
|
|
19
|
+
constructor(window: Window, document: Document, rendererFactory: RendererFactory2);
|
|
20
|
+
/**
|
|
21
|
+
* Define o tema a ser aplicado no componente, de acordo com o tipo de tema especificado.
|
|
22
|
+
*
|
|
23
|
+
* Este método define o tema a ser aplicado no componente com base no objeto `theme` fornecido e no tipo de tema especificado.
|
|
24
|
+
* Ele atualiza as propriedades do componente para refletir o tema selecionado, como cores, estilos e comportamentos.
|
|
25
|
+
*
|
|
26
|
+
* @param {PoTheme} theme - Objeto contendo as definições de tema a serem aplicadas no componente.
|
|
27
|
+
* @param {PoThemeTypeEnum} [themeType=PoThemeTypeEnum.light] - (Opcional) Tipo de tema a ser aplicado, podendo ser 'light' (claro) ou 'dark' (escuro). Por padrão, o tema claro é aplicado.
|
|
28
|
+
*/
|
|
29
|
+
setTheme(theme: PoTheme, themeType?: PoThemeTypeEnum): void;
|
|
30
|
+
/**
|
|
31
|
+
* @docsPrivate
|
|
32
|
+
*
|
|
33
|
+
* Gera estilos adicionais com base nos tokens de tema fornecidos, excluindo os tokens de cor.
|
|
34
|
+
* @param theme Os tokens de tema contendo os estilos adicionais a serem gerados.
|
|
35
|
+
* @returns Uma string contendo os estilos adicionais formatados.
|
|
36
|
+
*/
|
|
37
|
+
private generateAdditionalStyles;
|
|
38
|
+
/**
|
|
39
|
+
* @docsPrivate
|
|
40
|
+
*
|
|
41
|
+
* Aplica os estilos de tema ao documento.
|
|
42
|
+
* @param styleCss Os estilos CSS a serem aplicados.
|
|
43
|
+
*/
|
|
44
|
+
private applyThemeStyles;
|
|
45
|
+
private changeThemeType;
|
|
46
|
+
/**
|
|
47
|
+
* Persiste e define o tema do aplicativo com base nos dados armazenados.
|
|
48
|
+
*
|
|
49
|
+
* Este método recupera os dados do tema armazenados e os aplica ao aplicativo.
|
|
50
|
+
*
|
|
51
|
+
* @returns {PoTheme} Recupera o tema armazenado.
|
|
52
|
+
*/
|
|
53
|
+
persistThemeActive(): PoTheme;
|
|
54
|
+
/**
|
|
55
|
+
* Altera o tipo do tema armazenado e aplica os novos estilos ao documento.
|
|
56
|
+
*
|
|
57
|
+
* Este método altera o tipo do tema armazenado ativo (light/dark)
|
|
58
|
+
*
|
|
59
|
+
* @param {PoThemeTypeEnum} themeType O tipo de tema a ser aplicado, light ou dark.
|
|
60
|
+
*/
|
|
61
|
+
changeCurrentThemeType(type: PoThemeTypeEnum): void;
|
|
62
|
+
/**
|
|
63
|
+
* Método remove o tema armazenado e limpa todos os estilos de tema
|
|
64
|
+
* aplicados ao documento.
|
|
65
|
+
*/
|
|
66
|
+
cleanThemeActive(): void;
|
|
67
|
+
/**
|
|
68
|
+
* @docsPrivate
|
|
69
|
+
*
|
|
70
|
+
* Este método define um dados do tema e o armazena.
|
|
71
|
+
* @param theme Os tokens de tema contendo os estilos adicionais a serem gerados.
|
|
72
|
+
*/
|
|
73
|
+
private setThemeActive;
|
|
74
|
+
/**
|
|
75
|
+
* Retorna o tema ativo como um observable.
|
|
76
|
+
* @returns {PoTheme} Tema ativo.
|
|
77
|
+
*/
|
|
78
|
+
getThemeActive(): PoTheme;
|
|
79
|
+
/**
|
|
80
|
+
* @docsPrivate
|
|
81
|
+
*
|
|
82
|
+
* Gera estilos CSS com base nos tokens de cores fornecidos.
|
|
83
|
+
* @param themeColor Os tokens de cor a serem usados para gerar os estilos.
|
|
84
|
+
* @returns Uma string contendo os estilos CSS gerados.
|
|
85
|
+
*/
|
|
86
|
+
private createStyleElement;
|
|
87
|
+
/**
|
|
88
|
+
* @docsPrivate
|
|
89
|
+
*
|
|
90
|
+
* Gera estilos CSS com base nos tokens de cores fornecidos.
|
|
91
|
+
* @param themeColor Os tokens de cor a serem usados para gerar os estilos.
|
|
92
|
+
* @returns Uma string contendo os estilos CSS gerados.
|
|
93
|
+
*/
|
|
94
|
+
private generateThemeStyles;
|
|
95
|
+
/**
|
|
96
|
+
* @docsPrivate
|
|
97
|
+
*
|
|
98
|
+
* Gera estilos CSS com base nos tokens per Component fornecidos.
|
|
99
|
+
* @param themePerComponent Os tokens de cor a serem usados para gerar os estilos.
|
|
100
|
+
* @returns Uma string contendo os estilos CSS gerados.
|
|
101
|
+
*/
|
|
102
|
+
private generatePerComponentStyles;
|
|
103
|
+
/**
|
|
104
|
+
* Define o tema atual como o tema "PoUI Padrão".
|
|
105
|
+
*
|
|
106
|
+
* @param {PoThemeTypeEnum} type O tipo de Tema a ser aplicado, light / dark.
|
|
107
|
+
*/
|
|
108
|
+
setDefaultTheme(type: PoThemeTypeEnum): void;
|
|
109
|
+
/**
|
|
110
|
+
* @docsPrivate
|
|
111
|
+
*
|
|
112
|
+
* Retorna o estilo CSS para o fundo dos ícones do componente po-select, com base nas cores do tema.
|
|
113
|
+
*
|
|
114
|
+
* @param {PoThemeColor} themeColor - Objeto contendo as cores do tema.
|
|
115
|
+
* @returns {string} - Estilo CSS para o fundo dos ícones do po-select.
|
|
116
|
+
*/
|
|
117
|
+
private getSelectBgIconsStyle;
|
|
118
|
+
/**
|
|
119
|
+
* @docsPrivate
|
|
120
|
+
*
|
|
121
|
+
* Retorna a imagem SVG utilizada como fundo do po-select.
|
|
122
|
+
*
|
|
123
|
+
* @param {string} color Cor da Imagem - Utilizada no atributo 'fill'.
|
|
124
|
+
* @returns {string} Imagem SVG utilizada no po-select.
|
|
125
|
+
*/
|
|
126
|
+
private getSelectBgIcon;
|
|
127
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoThemeService, never>;
|
|
128
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PoThemeService>;
|
|
129
|
+
}
|
|
@@ -8,8 +8,9 @@ import * as i6 from "./po-date/po-date.module";
|
|
|
8
8
|
import * as i7 from "./po-dialog/po-dialog.module";
|
|
9
9
|
import * as i8 from "./po-language/po-language.module";
|
|
10
10
|
import * as i9 from "./po-notification/po-notification.module";
|
|
11
|
+
import * as i10 from "./po-theme/po-theme.module";
|
|
11
12
|
export declare class PoServicesModule {
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoServicesModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoServicesModule, [typeof i1.PoI18nPipe], [typeof i2.PoActiveOverlayModule, typeof i3.PoColorPaletteModule, typeof i4.PoComponentInjectorModule, typeof i5.PoControlPositionModule, typeof i6.PoDateTimeModule, typeof i7.PoDialogModule, typeof i8.PoLanguageModule, typeof i9.PoNotificationModule], [typeof i2.PoActiveOverlayModule, typeof i3.PoColorPaletteModule, typeof i4.PoComponentInjectorModule, typeof i5.PoControlPositionModule, typeof i6.PoDateTimeModule, typeof i7.PoDialogModule, typeof i1.PoI18nPipe, typeof i9.PoNotificationModule]>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoServicesModule, [typeof i1.PoI18nPipe], [typeof i2.PoActiveOverlayModule, typeof i3.PoColorPaletteModule, typeof i4.PoComponentInjectorModule, typeof i5.PoControlPositionModule, typeof i6.PoDateTimeModule, typeof i7.PoDialogModule, typeof i8.PoLanguageModule, typeof i9.PoNotificationModule, typeof i10.PoThemeModule], [typeof i2.PoActiveOverlayModule, typeof i3.PoColorPaletteModule, typeof i4.PoComponentInjectorModule, typeof i5.PoControlPositionModule, typeof i6.PoDateTimeModule, typeof i7.PoDialogModule, typeof i1.PoI18nPipe, typeof i9.PoNotificationModule, typeof i10.PoThemeModule]>;
|
|
14
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<PoServicesModule>;
|
|
15
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.9.0",
|
|
4
4
|
"description": "PO UI - Components",
|
|
5
5
|
"author": "PO UI",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@angular/cdk": "~17.0.1",
|
|
24
|
-
"@po-ui/style": "17.
|
|
25
|
-
"@po-ui/ng-schematics": "17.
|
|
24
|
+
"@po-ui/style": "17.9.0",
|
|
25
|
+
"@po-ui/ng-schematics": "17.9.0",
|
|
26
26
|
"tslib": "^2.6.2"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@angular/platform-browser-dynamic": "^17",
|
|
37
37
|
"@angular/router": "^17",
|
|
38
38
|
"@angular-devkit/schematics": "^17",
|
|
39
|
-
"@po-ui/style": "17.
|
|
39
|
+
"@po-ui/style": "17.9.0",
|
|
40
40
|
"rxjs": "~7.8.1",
|
|
41
41
|
"zone.js": "~0.14.4"
|
|
42
42
|
},
|
|
Binary file
|
|
@@ -18,7 +18,7 @@ function default_1(options) {
|
|
|
18
18
|
exports.default = default_1;
|
|
19
19
|
function addPoPackageAndInstall() {
|
|
20
20
|
return (tree, context) => {
|
|
21
|
-
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '17.
|
|
21
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '17.9.0');
|
|
22
22
|
// install packages
|
|
23
23
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
24
24
|
};
|
|
@@ -5,7 +5,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
5
5
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
6
6
|
const changes_1 = require("./changes");
|
|
7
7
|
function default_1() {
|
|
8
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('17.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('17.9.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
9
9
|
}
|
|
10
10
|
exports.default = default_1;
|
|
11
11
|
function postUpdate() {
|
|
@@ -10,7 +10,7 @@ const changes_1 = require("./changes");
|
|
|
10
10
|
const httpClientModuleName = 'HttpClientModule';
|
|
11
11
|
const httpClientModuleSourcePath = '@angular/common/http';
|
|
12
12
|
function default_1() {
|
|
13
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('17.
|
|
13
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('17.9.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
14
14
|
}
|
|
15
15
|
exports.default = default_1;
|
|
16
16
|
function postUpdate() {
|
|
@@ -5,7 +5,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
5
5
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
6
6
|
const changes_1 = require("./changes");
|
|
7
7
|
function default_1() {
|
|
8
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('17.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('17.9.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
9
9
|
}
|
|
10
10
|
exports.default = default_1;
|
|
11
11
|
function postUpdate() {
|
|
@@ -5,7 +5,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
5
5
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
6
6
|
const changes_1 = require("./changes");
|
|
7
7
|
function default_1() {
|
|
8
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('17.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('17.9.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
9
9
|
}
|
|
10
10
|
exports.default = default_1;
|
|
11
11
|
function postUpdate() {
|
|
@@ -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('17.
|
|
13
|
+
updatePackageJson('17.9.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(),
|
|
@@ -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)('17.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('17.9.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
11
11
|
}
|
|
12
12
|
exports.updateToV3 = updateToV3;
|
|
13
13
|
function postUpdate() {
|
|
@@ -6,7 +6,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
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)('17.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('17.9.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
exports.default = default_1;
|
|
12
12
|
function postUpdate() {
|
|
@@ -6,7 +6,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
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)('17.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('17.9.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
exports.default = default_1;
|
|
12
12
|
function postUpdate() {
|
|
@@ -5,7 +5,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
5
5
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
6
6
|
const changes_1 = require("./changes");
|
|
7
7
|
function default_1() {
|
|
8
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('17.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('17.9.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
9
9
|
}
|
|
10
10
|
exports.default = default_1;
|
|
11
11
|
function postUpdate() {
|
|
Binary file
|