@po-ui/ng-components 19.29.0 → 19.30.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 +3715 -2450
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/components.module.d.ts +3 -2
- package/lib/components/index.d.ts +1 -0
- package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +40 -2
- package/lib/components/po-field/po-checkbox/po-checkbox.component.d.ts +26 -2
- package/lib/components/po-field/po-checkbox/po-checkbox.module.d.ts +3 -1
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +37 -1
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.d.ts +16 -0
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +39 -1
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +17 -0
- package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +39 -1
- package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +18 -0
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +39 -1
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +18 -0
- package/lib/components/po-field/po-decimal/po-decimal.component.d.ts +6 -0
- package/lib/components/po-field/po-email/po-email.component.d.ts +3 -2
- package/lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.d.ts +7 -1
- package/lib/components/po-field/po-field-container/po-field-container.component.d.ts +23 -3
- package/lib/components/po-field/po-field-container/po-field-container.module.d.ts +2 -1
- package/lib/components/po-field/po-field.model.d.ts +23 -1
- package/lib/components/po-field/po-field.module.d.ts +2 -1
- package/lib/components/po-field/po-input/po-input-base.component.d.ts +53 -2
- package/lib/components/po-field/po-input/po-input.component.d.ts +3 -2
- package/lib/components/po-field/po-input-generic/po-input-generic.d.ts +6 -0
- package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +39 -1
- package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +18 -0
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +39 -1
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +18 -0
- package/lib/components/po-field/po-number/po-number.component.d.ts +3 -1
- package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +39 -1
- package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +17 -0
- package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +39 -1
- package/lib/components/po-field/po-rich-text/po-rich-text.component.d.ts +16 -0
- package/lib/components/po-field/po-select/po-select.component.d.ts +48 -3
- package/lib/components/po-field/po-switch/po-switch.component.d.ts +32 -1
- package/lib/components/po-field/po-switch/po-switch.module.d.ts +2 -1
- package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +39 -1
- package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +16 -0
- package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +39 -1
- package/lib/components/po-field/po-upload/po-upload.component.d.ts +15 -0
- package/lib/components/po-helper/index.d.ts +3 -0
- package/lib/components/po-helper/interfaces/po-helper.interface.d.ts +87 -0
- package/lib/components/po-helper/po-helper-base.component.d.ts +112 -0
- package/lib/components/po-helper/po-helper.component.d.ts +52 -0
- package/lib/components/po-helper/po-helper.module.d.ts +16 -0
- package/lib/components/po-label/po-label.component.d.ts +14 -1
- package/lib/components/po-label/po-label.module.d.ts +2 -1
- package/lib/components/po-popover/po-popover.component.d.ts +5 -3
- package/lib/services/po-theme/po-theme.service.d.ts +1 -0
- package/lib/utils/util.d.ts +23 -0
- package/package.json +4 -4
- package/po-ui-ng-components-19.30.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/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-19.29.0.tgz +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, OnDestroy, OnChanges, SimpleChanges, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { PoHelperBaseComponent } from './po-helper-base.component';
|
|
3
|
+
import { PoPopoverComponent } from '../po-popover/po-popover.component';
|
|
4
|
+
import { PoButtonComponent } from '../po-button';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* @docsExtends PoHelperBaseComponent
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* <example name="po-helper-basic" title="PO Helper Basic">
|
|
12
|
+
* <file name="sample-po-helper-basic/sample-po-helper-basic.component.html"> </file>
|
|
13
|
+
* <file name="sample-po-helper-basic/sample-po-helper-basic.component.ts"> </file>
|
|
14
|
+
* </example>
|
|
15
|
+
*
|
|
16
|
+
* <example name="po-helper-labs" title="PO Helper Labs">
|
|
17
|
+
* <file name="sample-po-helper-labs/sample-po-helper-labs.component.html"> </file>
|
|
18
|
+
* <file name="sample-po-helper-labs/sample-po-helper-labs.component.ts"> </file>
|
|
19
|
+
* </example>
|
|
20
|
+
*
|
|
21
|
+
* <example name="po-helper-sales-performance" title="PO Helper Sales Performance">
|
|
22
|
+
* <file name="sample-po-helper-sales-performance/sample-po-helper-sales-performance.component.html"> </file>
|
|
23
|
+
* <file name="sample-po-helper-sales-performance/sample-po-helper-sales-performance.component.ts"> </file>
|
|
24
|
+
* </example>
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class PoHelperComponent extends PoHelperBaseComponent implements AfterViewInit, OnDestroy, OnChanges {
|
|
28
|
+
private readonly cdr;
|
|
29
|
+
target: ElementRef;
|
|
30
|
+
popover: PoPopoverComponent;
|
|
31
|
+
poButton: PoButtonComponent;
|
|
32
|
+
private static instances;
|
|
33
|
+
private static idCounter;
|
|
34
|
+
protected popoverPosition: string;
|
|
35
|
+
id: string;
|
|
36
|
+
private boundFocusIn;
|
|
37
|
+
private readonly poHelperLiterals;
|
|
38
|
+
constructor(cdr: ChangeDetectorRef);
|
|
39
|
+
ngAfterViewInit(): void;
|
|
40
|
+
setPopoverPositionByScreen(): void;
|
|
41
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
42
|
+
ngOnDestroy(): void;
|
|
43
|
+
openHelperPopover(): void;
|
|
44
|
+
closeHelperPopover(): void;
|
|
45
|
+
emitClick(event: MouseEvent): void;
|
|
46
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
47
|
+
private handleEmitEvent;
|
|
48
|
+
closePopoverOnFocusOut(event: FocusEvent): void;
|
|
49
|
+
protected ariaLabel(): string;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoHelperComponent, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoHelperComponent, "po-helper", never, {}, {}, never, never, false, never>;
|
|
52
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./po-helper.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../po-icon/po-icon.module";
|
|
5
|
+
import * as i4 from "../po-popover/po-popover.module";
|
|
6
|
+
import * as i5 from "../po-link/po-link.module";
|
|
7
|
+
import * as i6 from "../po-divider/po-divider.module";
|
|
8
|
+
/**
|
|
9
|
+
* @description
|
|
10
|
+
* Módulo do componente po-helper
|
|
11
|
+
*/
|
|
12
|
+
export declare class PoHelperModule {
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoHelperModule, never>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoHelperModule, [typeof i1.PoHelperComponent], [typeof i2.CommonModule, typeof i3.PoIconModule, typeof i4.PoPopoverModule, typeof i5.PoLinkModule, typeof i6.PoDividerModule], [typeof i1.PoHelperComponent]>;
|
|
15
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PoHelperModule>;
|
|
16
|
+
}
|
|
@@ -35,6 +35,19 @@ export declare class PoLabelComponent {
|
|
|
35
35
|
label?: string;
|
|
36
36
|
/** Indica o tipo do campo vinculado ao label */
|
|
37
37
|
requirement?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @optional
|
|
40
|
+
*
|
|
41
|
+
* @description
|
|
42
|
+
*
|
|
43
|
+
* Habilita a quebra automática do texto. Quando ativada, o texto que excede
|
|
44
|
+
* o espaço disponível é transferido para a próxima linha em pontos apropriados para uma
|
|
45
|
+
* leitura clara.
|
|
46
|
+
*
|
|
47
|
+
* @default `false`
|
|
48
|
+
*/
|
|
49
|
+
textWrap: import("@angular/core").InputSignal<boolean>;
|
|
50
|
+
isRequiredLiteral(value: string): boolean;
|
|
38
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoLabelComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoLabelComponent, "po-label", never, { "disabled": { "alias": "p-disabled"; "required": false; }; "field": { "alias": "p-field"; "required": false; }; "for": { "alias": "p-for"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "requirement": { "alias": "p-requirement"; "required": false; }; }, {}, never, never, false, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoLabelComponent, "po-label", never, { "disabled": { "alias": "p-disabled"; "required": false; }; "field": { "alias": "p-field"; "required": false; }; "for": { "alias": "p-for"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "requirement": { "alias": "p-requirement"; "required": false; }; "textWrap": { "alias": "p-text-wrap"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
40
53
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./po-label.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../po-helper/po-helper.module";
|
|
4
5
|
export declare class PoLabelModule {
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoLabelModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoLabelModule, [typeof i1.PoLabelComponent], [typeof i2.CommonModule], [typeof i1.PoLabelComponent]>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoLabelModule, [typeof i1.PoLabelComponent], [typeof i2.CommonModule, typeof i3.PoHelperModule], [typeof i1.PoLabelComponent]>;
|
|
7
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<PoLabelModule>;
|
|
8
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { PoControlPositionService } from './../../services/po-control-position/po-control-position.service';
|
|
3
3
|
import { PoPopoverBaseComponent } from './po-popover-base.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -25,14 +25,15 @@ import * as i0 from "@angular/core";
|
|
|
25
25
|
*/
|
|
26
26
|
export declare class PoPopoverComponent extends PoPopoverBaseComponent implements AfterViewInit, OnDestroy, OnChanges {
|
|
27
27
|
private renderer;
|
|
28
|
-
private poControlPosition;
|
|
28
|
+
private readonly poControlPosition;
|
|
29
|
+
private readonly cd;
|
|
29
30
|
popoverElement: ElementRef;
|
|
30
31
|
arrowDirection: string;
|
|
31
32
|
timeoutResize: any;
|
|
32
33
|
targetElement: any;
|
|
33
34
|
afterViewInitWasCalled: boolean;
|
|
34
35
|
eventListenerFunction: () => void;
|
|
35
|
-
constructor(renderer: Renderer2, poControlPosition: PoControlPositionService);
|
|
36
|
+
constructor(renderer: Renderer2, poControlPosition: PoControlPositionService, cd: ChangeDetectorRef);
|
|
36
37
|
ngOnChanges(changes: SimpleChanges): void;
|
|
37
38
|
ngAfterViewInit(): void;
|
|
38
39
|
initEvents(): void;
|
|
@@ -40,6 +41,7 @@ export declare class PoPopoverComponent extends PoPopoverBaseComponent implement
|
|
|
40
41
|
close(): void;
|
|
41
42
|
debounceResize(): void;
|
|
42
43
|
open(): void;
|
|
44
|
+
ensurePopoverPosition(): void;
|
|
43
45
|
setOpacity(value: number): void;
|
|
44
46
|
setPopoverPosition(): void;
|
|
45
47
|
setRendererListenInit(): void;
|
|
@@ -42,6 +42,7 @@ export declare class PoThemeService {
|
|
|
42
42
|
* @param {boolean} [persistPreference=true] - (Opcional) Define se a preferência de tema deve ser salva no localStorage para persistência. `true` para salvar, `false` para não salvar.
|
|
43
43
|
*/
|
|
44
44
|
setTheme(themeConfig: PoTheme, themeType?: PoThemeTypeEnum, a11yLevel?: PoThemeA11yEnum, persistPreference?: boolean): void;
|
|
45
|
+
private setDataDefaultSizeHTML;
|
|
45
46
|
/**
|
|
46
47
|
* Retorna o nível de acessibilidade configurado no tema.
|
|
47
48
|
* Se não estiver configurado, retorna `AAA` como padrão.
|
package/lib/utils/util.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PoThemeService } from '../services/po-theme/po-theme.service';
|
|
2
2
|
import { PoThemeA11yEnum } from '../services/po-theme/enum/po-theme-a11y.enum';
|
|
3
|
+
import { ElementRef } from '@angular/core';
|
|
3
4
|
/**
|
|
4
5
|
* Converte e formata os bytes em formato mais legível para o usuário.
|
|
5
6
|
*
|
|
@@ -272,3 +273,25 @@ export declare function getA11yDefaultSize(): string;
|
|
|
272
273
|
* @returns {PoThemeA11yEnum} O nível de acessibilidade, que pode ser `AA` ou `AAA`.
|
|
273
274
|
*/
|
|
274
275
|
export declare function getA11yLevel(): PoThemeA11yEnum;
|
|
276
|
+
/**
|
|
277
|
+
* Realiza a tradução das propriedades de ajuda dos componentes.
|
|
278
|
+
* Type do Helper default é 'help' e size 'medium'.
|
|
279
|
+
* @returns Objeto {helperSettings} com as propriedades do helper
|
|
280
|
+
* @returns Propriedade {hideAdditionalHelp} para controle ao esconder o ícone de ajuda adicional depreciado.
|
|
281
|
+
*/
|
|
282
|
+
export declare function setHelperSettings(label: string, additionalHelpTooltip: string, poHelperComponent?: any, size?: string, onClick?: any): {
|
|
283
|
+
hideAdditionalHelp: boolean;
|
|
284
|
+
helperSettings?: any;
|
|
285
|
+
};
|
|
286
|
+
/** Atualiza o estado do tooltip baseado na propriedade scrollWidth e clientWidth do labelElement.
|
|
287
|
+
* @param isTooltipActive Indica se o tooltip já está ativo
|
|
288
|
+
* @param labelElement ElementRef do label que será verificado se está com ellipsis
|
|
289
|
+
* @returns boolean indicando se o tooltip deve ser ativado ou desativado
|
|
290
|
+
*/
|
|
291
|
+
export declare function updateTooltip(isTooltipActive: boolean, labelElement: ElementRef<HTMLElement>): boolean;
|
|
292
|
+
/**
|
|
293
|
+
* Retorna o elemento label que deve ser medido para verificar se está com ellipsis.
|
|
294
|
+
* @param labelElement ElementRef do label que será verificado se está com ellipsis
|
|
295
|
+
* @returns O elemento que deve ser medido para verificar se está com ellipsis.
|
|
296
|
+
*/
|
|
297
|
+
export declare function getMeasurableEl(labelElement: ElementRef<HTMLElement>): Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.30.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": "~19.0.3",
|
|
25
|
-
"@po-ui/style": "19.
|
|
26
|
-
"@po-ui/ng-schematics": "19.
|
|
25
|
+
"@po-ui/style": "19.30.0",
|
|
26
|
+
"@po-ui/ng-schematics": "19.30.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": "^19",
|
|
39
39
|
"@angular/router": "^19",
|
|
40
40
|
"@angular-devkit/schematics": "^19",
|
|
41
|
-
"@po-ui/style": "19.
|
|
41
|
+
"@po-ui/style": "19.30.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', '19.
|
|
21
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '19.30.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)('19.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.30.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)('19.
|
|
14
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.30.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)('19.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.30.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)('19.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.30.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)('19.
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.30.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('19.
|
|
47
|
+
(0, package_config_1.updatePackageJson)('19.30.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)('19.
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.30.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('19.
|
|
47
|
+
(0, package_config_1.updatePackageJson)('19.30.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('19.
|
|
13
|
+
updatePackageJson('19.30.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)('19.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.30.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)('19.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.30.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)('19.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.30.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)('19.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.30.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
Binary file
|