@po-ui/ng-components 21.6.0 → 21.7.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 +327 -31
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +27 -3
- package/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.d.ts +15 -2
- package/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.d.ts +1 -0
- package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +14 -0
- package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +11 -2
- package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +14 -0
- package/lib/components/po-field/po-upload/po-upload.component.d.ts +2 -0
- package/lib/components/po-header/interfaces/po-header-action-tool.interface.d.ts +10 -2
- package/lib/components/po-popover/po-popover-base.component.d.ts +2 -0
- package/lib/components/po-popover/po-popover.component.d.ts +4 -0
- package/lib/services/po-control-position/po-control-position.service.d.ts +1 -1
- package/package.json +4 -4
- package/po-ui-ng-components-21.7.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 +108 -13
- package/po-ui-ng-components-21.6.0.tgz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
|
|
3
3
|
import { PoRichTextToolbarActions } from './enum/po-rich-text-toolbar-actions.enum';
|
|
4
4
|
import { PoRichTextService } from './po-rich-text.service';
|
|
@@ -13,7 +13,8 @@ import { PoHelperOptions } from '../../po-helper';
|
|
|
13
13
|
* > No navegador Internet Explorer não é possível alterar a cor do texto.
|
|
14
14
|
*/
|
|
15
15
|
export declare abstract class PoRichTextBaseComponent implements ControlValueAccessor, Validator {
|
|
16
|
-
private richTextService;
|
|
16
|
+
private readonly richTextService;
|
|
17
|
+
cd: ChangeDetectorRef;
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
19
20
|
* @deprecated v23.x.x use `p-helper`
|
|
@@ -64,6 +65,27 @@ export declare abstract class PoRichTextBaseComponent implements ControlValueAcc
|
|
|
64
65
|
* @default `false`
|
|
65
66
|
*/
|
|
66
67
|
disabledTextAlign: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* @optional
|
|
70
|
+
*
|
|
71
|
+
* @description
|
|
72
|
+
*
|
|
73
|
+
* Indica que o campo será desabilitado.
|
|
74
|
+
*
|
|
75
|
+
* @default `false`
|
|
76
|
+
*/
|
|
77
|
+
disabled: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* @optional
|
|
80
|
+
*
|
|
81
|
+
* @description
|
|
82
|
+
* Exibe um ícone de carregamento no lado direito do campo para sinalizar que uma operação está em andamento.
|
|
83
|
+
*
|
|
84
|
+
* @default `false`
|
|
85
|
+
*/
|
|
86
|
+
set loading(value: boolean);
|
|
87
|
+
get loading(): boolean;
|
|
88
|
+
get isDisabled(): boolean;
|
|
67
89
|
/**
|
|
68
90
|
* @description
|
|
69
91
|
*
|
|
@@ -245,6 +267,7 @@ export declare abstract class PoRichTextBaseComponent implements ControlValueAcc
|
|
|
245
267
|
invalid: boolean;
|
|
246
268
|
onChangeModel: any;
|
|
247
269
|
value: string;
|
|
270
|
+
private _loading;
|
|
248
271
|
private _height?;
|
|
249
272
|
private _placeholder;
|
|
250
273
|
private _readonly;
|
|
@@ -320,7 +343,8 @@ export declare abstract class PoRichTextBaseComponent implements ControlValueAcc
|
|
|
320
343
|
* - Não possuir `p-help` e/ou `p-label`.
|
|
321
344
|
*/
|
|
322
345
|
showRequired: boolean;
|
|
323
|
-
constructor(richTextService: PoRichTextService);
|
|
346
|
+
constructor(richTextService: PoRichTextService, cd: ChangeDetectorRef);
|
|
347
|
+
setDisabledState(isDisabled: boolean): void;
|
|
324
348
|
protected onThemeChange(): void;
|
|
325
349
|
registerOnChange(func: any): void;
|
|
326
350
|
registerOnTouched(func: any): void;
|
package/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
export declare class PoRichTextBodyComponent implements OnInit, OnDestroy {
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
export declare class PoRichTextBodyComponent implements OnInit, OnDestroy, OnChanges {
|
|
3
3
|
private richTextService;
|
|
4
|
+
private readonly cd;
|
|
4
5
|
bodyElement: ElementRef;
|
|
5
6
|
height?: string;
|
|
6
7
|
label: string;
|
|
7
8
|
modelValue?: string;
|
|
8
9
|
placeholder?: string;
|
|
9
10
|
readonly?: string;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
loading: boolean;
|
|
10
13
|
change: EventEmitter<any>;
|
|
11
14
|
commands: EventEmitter<any>;
|
|
12
15
|
keydown: EventEmitter<KeyboardEvent>;
|
|
@@ -20,7 +23,12 @@ export declare class PoRichTextBodyComponent implements OnInit, OnDestroy {
|
|
|
20
23
|
private timeoutChange;
|
|
21
24
|
private valueBeforeChange;
|
|
22
25
|
private modelSubscription;
|
|
26
|
+
private resizeObserver;
|
|
27
|
+
hasScroll: boolean;
|
|
28
|
+
hasValue: boolean;
|
|
29
|
+
onWindowResize(): void;
|
|
23
30
|
ngOnInit(): void;
|
|
31
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
24
32
|
ngOnDestroy(): void;
|
|
25
33
|
executeCommand(command: string | {
|
|
26
34
|
command: any;
|
|
@@ -35,6 +43,7 @@ export declare class PoRichTextBodyComponent implements OnInit, OnDestroy {
|
|
|
35
43
|
onKeyUp(event: any): void;
|
|
36
44
|
onPaste(): void;
|
|
37
45
|
update(): void;
|
|
46
|
+
protected mapSizeToIcon(size: string): string;
|
|
38
47
|
private addClickListenerOnAnchorElements;
|
|
39
48
|
private emitSelectionCommands;
|
|
40
49
|
private getTextSelection;
|
|
@@ -50,4 +59,8 @@ export declare class PoRichTextBodyComponent implements OnInit, OnDestroy {
|
|
|
50
59
|
private updateModel;
|
|
51
60
|
private updateValueWithModelValue;
|
|
52
61
|
private verifyCursorPositionInFirefoxIEEdge;
|
|
62
|
+
private get bodyEl();
|
|
63
|
+
private updateHasValue;
|
|
64
|
+
private checkScrollState;
|
|
65
|
+
private initResizeObserver;
|
|
53
66
|
}
|
|
@@ -254,6 +254,7 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
|
|
|
254
254
|
keydown: EventEmitter<KeyboardEvent>;
|
|
255
255
|
displayAdditionalHelp: boolean;
|
|
256
256
|
private _disabled;
|
|
257
|
+
private _loading;
|
|
257
258
|
private _maxlength;
|
|
258
259
|
private _minlength;
|
|
259
260
|
private _placeholder;
|
|
@@ -281,6 +282,17 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
|
|
|
281
282
|
*/
|
|
282
283
|
set disabled(disabled: boolean);
|
|
283
284
|
get disabled(): boolean;
|
|
285
|
+
/**
|
|
286
|
+
* @optional
|
|
287
|
+
*
|
|
288
|
+
* @description
|
|
289
|
+
* Exibe um ícone de carregamento no lado direito do campo para sinalizar que uma operação está em andamento.
|
|
290
|
+
*
|
|
291
|
+
* @default `false`
|
|
292
|
+
*/
|
|
293
|
+
set loading(value: boolean);
|
|
294
|
+
get loading(): boolean;
|
|
295
|
+
get isDisabled(): boolean;
|
|
284
296
|
/**
|
|
285
297
|
* @optional
|
|
286
298
|
*
|
|
@@ -358,6 +370,7 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
|
|
|
358
370
|
get size(): string;
|
|
359
371
|
constructor(cd: ChangeDetectorRef);
|
|
360
372
|
protected onThemeChange(): void;
|
|
373
|
+
protected onAfterThemeChange(): void;
|
|
361
374
|
callOnChange(value: any): void;
|
|
362
375
|
controlChangeModelEmitter(value: any): void;
|
|
363
376
|
setDisabledState(isDisabled: boolean): void;
|
|
@@ -368,6 +381,7 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
|
|
|
368
381
|
[key: string]: any;
|
|
369
382
|
};
|
|
370
383
|
writeValue(value: any): void;
|
|
384
|
+
protected mapSizeToIcon(size: string): string;
|
|
371
385
|
protected validateModel(): void;
|
|
372
386
|
private applySizeBasedOnA11y;
|
|
373
387
|
abstract writeValueModel(value: any): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { PoTextareaBaseComponent } from './po-textarea-base.component';
|
|
3
3
|
import { PoHelperComponent } from '../../po-helper';
|
|
4
4
|
/**
|
|
@@ -27,13 +27,16 @@ import { PoHelperComponent } from '../../po-helper';
|
|
|
27
27
|
* </example>
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
|
-
export declare class PoTextareaComponent extends PoTextareaBaseComponent implements AfterViewInit, OnChanges {
|
|
30
|
+
export declare class PoTextareaComponent extends PoTextareaBaseComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
31
31
|
private el;
|
|
32
32
|
inputEl: ElementRef;
|
|
33
33
|
helperEl?: PoHelperComponent;
|
|
34
34
|
id: string;
|
|
35
35
|
valueBeforeChange: any;
|
|
36
36
|
fireChange: boolean;
|
|
37
|
+
hasScroll: boolean;
|
|
38
|
+
hasValue: boolean;
|
|
39
|
+
private resizeObserver;
|
|
37
40
|
constructor();
|
|
38
41
|
emitAdditionalHelp(): void;
|
|
39
42
|
/**
|
|
@@ -55,7 +58,9 @@ export declare class PoTextareaComponent extends PoTextareaBaseComponent impleme
|
|
|
55
58
|
*/
|
|
56
59
|
focus(): void;
|
|
57
60
|
ngAfterViewInit(): void;
|
|
61
|
+
protected onAfterThemeChange(): void;
|
|
58
62
|
ngOnChanges(changes: SimpleChanges): void;
|
|
63
|
+
ngOnDestroy(): void;
|
|
59
64
|
getAdditionalHelpTooltip(): string;
|
|
60
65
|
getErrorPattern(): string;
|
|
61
66
|
hasInvalidClass(): boolean;
|
|
@@ -97,4 +102,8 @@ export declare class PoTextareaComponent extends PoTextareaBaseComponent impleme
|
|
|
97
102
|
hideAdditionalHelp: boolean;
|
|
98
103
|
helperSettings?: any;
|
|
99
104
|
};
|
|
105
|
+
private readonly onWindowResize;
|
|
106
|
+
private checkScrollState;
|
|
107
|
+
private calculateTextareaHeight;
|
|
108
|
+
private initResizeObserver;
|
|
100
109
|
}
|
|
@@ -500,6 +500,7 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
|
|
|
500
500
|
private _hideSendButton?;
|
|
501
501
|
private _isMultiple?;
|
|
502
502
|
private _literals?;
|
|
503
|
+
private _loading;
|
|
503
504
|
private _required?;
|
|
504
505
|
private _size?;
|
|
505
506
|
private _initialSize?;
|
|
@@ -634,6 +635,19 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
|
|
|
634
635
|
*/
|
|
635
636
|
set disabled(value: boolean);
|
|
636
637
|
get disabled(): boolean;
|
|
638
|
+
/**
|
|
639
|
+
* @optional
|
|
640
|
+
*
|
|
641
|
+
* @description
|
|
642
|
+
* Exibe um ícone de carregamento no botão `Selecionar arquivo`, à esquerda do texto, sinalizando que uma operação está em andamento.
|
|
643
|
+
*
|
|
644
|
+
* > Incompatível com `p-drag-drop` e `p-hide-select-button`, pois o estado de loading depende da exibição do botão `Selecionar arquivo`.
|
|
645
|
+
*
|
|
646
|
+
* @default `false`
|
|
647
|
+
*/
|
|
648
|
+
set loading(value: boolean);
|
|
649
|
+
get loading(): boolean;
|
|
650
|
+
get isDisabled(): boolean;
|
|
637
651
|
/**
|
|
638
652
|
* @optional
|
|
639
653
|
*
|
|
@@ -76,6 +76,8 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
|
|
|
76
76
|
get hasMultipleFiles(): boolean;
|
|
77
77
|
get hasFileNotUploaded(): boolean;
|
|
78
78
|
get isDisabled(): boolean;
|
|
79
|
+
get isSelectButtonDisabled(): boolean;
|
|
80
|
+
get isFieldDisabled(): boolean;
|
|
79
81
|
get maxFiles(): number;
|
|
80
82
|
cancel(file: PoUploadFile, keydown?: KeyboardEvent): void;
|
|
81
83
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -103,12 +103,20 @@ export interface PoHeaderActionTool {
|
|
|
103
103
|
*/
|
|
104
104
|
export interface PoHeaderActionPopoverAction {
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
107
106
|
* @description
|
|
108
107
|
*
|
|
109
|
-
* Template que será renderizado dentro do popover
|
|
108
|
+
* Template que será renderizado dentro do popover.
|
|
110
109
|
*/
|
|
111
110
|
content: TemplateRef<any>;
|
|
111
|
+
/**
|
|
112
|
+
* @description
|
|
113
|
+
*
|
|
114
|
+
* Largura, em pixels, do template renderizado dentro do popover.
|
|
115
|
+
*
|
|
116
|
+
* Valores permitidos: de 240 a 800.
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
width?: number;
|
|
112
120
|
}
|
|
113
121
|
/**
|
|
114
122
|
* @usedBy PoHeaderComponent
|
|
@@ -31,6 +31,7 @@ export declare class PoPopoverBaseComponent {
|
|
|
31
31
|
* @default `false`
|
|
32
32
|
*/
|
|
33
33
|
appendBox: boolean;
|
|
34
|
+
cornerAligned: boolean;
|
|
34
35
|
/**
|
|
35
36
|
* @description
|
|
36
37
|
*
|
|
@@ -77,6 +78,7 @@ export declare class PoPopoverBaseComponent {
|
|
|
77
78
|
target: ElementRef | HTMLElement;
|
|
78
79
|
/** Título do popover. */
|
|
79
80
|
title?: string;
|
|
81
|
+
width?: number;
|
|
80
82
|
/** Evento disparado ao fechar o popover. */
|
|
81
83
|
closePopover: EventEmitter<any>;
|
|
82
84
|
/** Evento disparado ao abrir o popover. */
|
|
@@ -31,8 +31,10 @@ export declare class PoPopoverComponent extends PoPopoverBaseComponent implement
|
|
|
31
31
|
timeoutResize: any;
|
|
32
32
|
targetElement: any;
|
|
33
33
|
afterViewInitWasCalled: boolean;
|
|
34
|
+
widthPopover: number;
|
|
34
35
|
private keydownTargetListener?;
|
|
35
36
|
private keydownPopoverListener?;
|
|
37
|
+
private resizeObserver;
|
|
36
38
|
eventListenerFunction: () => void;
|
|
37
39
|
private readonly tabbableSelector;
|
|
38
40
|
constructor(renderer: Renderer2, poControlPosition: PoControlPositionService, cd: ChangeDetectorRef);
|
|
@@ -60,4 +62,6 @@ export declare class PoPopoverComponent extends PoPopoverBaseComponent implement
|
|
|
60
62
|
private getDocumentTabbables;
|
|
61
63
|
private focusNextAfterTarget;
|
|
62
64
|
private focusPrevBeforeTarget;
|
|
65
|
+
private observeContentResize;
|
|
66
|
+
private disconnectResizeObserver;
|
|
63
67
|
}
|
|
@@ -27,7 +27,7 @@ export declare class PoControlPositionService {
|
|
|
27
27
|
* @param targetElement elemento de onde deve partir a exibição
|
|
28
28
|
* @param customPositions posições que sobrescreve as posições padrões
|
|
29
29
|
* @param isSetElementWidth indica se deve definir o tamanho do elemento a ser exibido, caso for verdadeiro será igual do targetElement
|
|
30
|
-
* @param isCornerAligned indica se o elemento filho será alinhado nos cantos do
|
|
30
|
+
* @param isCornerAligned indica se o elemento filho será alinhado nos cantos do elemento pai.
|
|
31
31
|
*/
|
|
32
32
|
setElements(element: ElementRef | HTMLElement, elementOffset: number, targetElement: ElementRef | HTMLElement, customPositions?: Array<string>, isSetElementWidth?: boolean, isCornerAligned?: boolean): void;
|
|
33
33
|
private adjustCustomPosition;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.7.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.0.3",
|
|
25
|
-
"@po-ui/style": "21.
|
|
26
|
-
"@po-ui/ng-schematics": "21.
|
|
25
|
+
"@po-ui/style": "21.7.0",
|
|
26
|
+
"@po-ui/ng-schematics": "21.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|