@po-ui/ng-components 21.33.0-beta.1 → 21.34.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 +197 -75
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-chart/po-chart-base.component.d.ts +1 -1
- package/lib/components/po-dropdown/po-dropdown-base.component.d.ts +12 -10
- package/lib/components/po-dropdown/po-dropdown.component.d.ts +11 -10
- package/lib/components/po-listbox/po-listbox.component.d.ts +3 -0
- package/lib/components/po-popup/po-popup-action.interface.d.ts +24 -18
- package/lib/components/po-popup/po-popup-base.component.d.ts +8 -24
- package/lib/components/po-popup/po-popup.component.d.ts +9 -0
- package/package.json +4 -4
- package/po-ui-ng-components-21.34.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 +69 -64
- package/po-ui-ng-components-21.33.0-beta.1.tgz +0 -0
|
@@ -149,7 +149,7 @@ export declare abstract class PoChartBaseComponent implements OnInit {
|
|
|
149
149
|
* - Os marcadores (*bullets*) terão seu estilo ajustado.
|
|
150
150
|
* - As outras séries ficarão com opacidade reduzida ao passar o mouse sobre a série ativa.
|
|
151
151
|
*
|
|
152
|
-
* > Disponível para gráficos do tipo `line` e `radar`.
|
|
152
|
+
* > Disponível para gráficos do tipo `line`, `area`, `column`, `bar` e `radar`.
|
|
153
153
|
*
|
|
154
154
|
* #### Exemplo de utilização:
|
|
155
155
|
* ```typescript
|
|
@@ -66,18 +66,18 @@ export declare class PoDropdownBaseComponent {
|
|
|
66
66
|
icon: string;
|
|
67
67
|
open: boolean;
|
|
68
68
|
private _actions;
|
|
69
|
+
private _rootLazyLoad?;
|
|
69
70
|
private _disabled;
|
|
70
71
|
private _size?;
|
|
71
72
|
private _initialSize?;
|
|
72
73
|
private _position;
|
|
73
74
|
/**
|
|
74
75
|
* Lista de ações que serão exibidas no componente.
|
|
75
|
-
*
|
|
76
|
-
* Aceita um *array* de `PoDropdownAction` (carregado imediatamente) ou uma função que retorna um
|
|
77
|
-
* `Observable<Array<PoDropdownAction>>`, carregando o nível raiz de forma assíncrona na abertura.
|
|
76
|
+
* Aceita um *array* de `PoDropdownAction`.
|
|
78
77
|
*/
|
|
79
78
|
set actions(value: Array<PoDropdownAction> | (() => Observable<Array<PoDropdownAction>>));
|
|
80
|
-
get actions(): Array<PoDropdownAction
|
|
79
|
+
get actions(): Array<PoDropdownAction>;
|
|
80
|
+
get popupActions(): Array<PoDropdownAction> | (() => Observable<Array<PoDropdownAction>>);
|
|
81
81
|
/**
|
|
82
82
|
* @optional
|
|
83
83
|
*
|
|
@@ -137,9 +137,10 @@ export declare class PoDropdownBaseComponent {
|
|
|
137
137
|
*
|
|
138
138
|
* @description
|
|
139
139
|
*
|
|
140
|
-
* Evento disparado a
|
|
140
|
+
* Evento disparado a cada clique em um item do menu.
|
|
141
|
+
* Retorna o item clicado (`PoDropdownAction`).
|
|
141
142
|
*
|
|
142
|
-
*
|
|
143
|
+
* > Não é disparado para a ação interna de voltar (`goBack`).
|
|
143
144
|
*/
|
|
144
145
|
clickItem: EventEmitter<PoDropdownAction>;
|
|
145
146
|
/**
|
|
@@ -147,10 +148,10 @@ export declare class PoDropdownBaseComponent {
|
|
|
147
148
|
*
|
|
148
149
|
* @description
|
|
149
150
|
*
|
|
150
|
-
* Evento disparado no momento em que a requisição assíncrona de um subnível é iniciada
|
|
151
|
-
*
|
|
151
|
+
* Evento disparado no momento em que a requisição assíncrona de um subnível é iniciada.
|
|
152
|
+
* Retorna o item agrupador (`PoDropdownAction`) que originou o carregamento.
|
|
152
153
|
*
|
|
153
|
-
*
|
|
154
|
+
* > Compatível com a propriedade PoPopupAction.subItemsLazy
|
|
154
155
|
*/
|
|
155
156
|
subItemsLoad: EventEmitter<PoDropdownAction>;
|
|
156
157
|
/**
|
|
@@ -159,7 +160,8 @@ export declare class PoDropdownBaseComponent {
|
|
|
159
160
|
* @description
|
|
160
161
|
*
|
|
161
162
|
* Evento disparado no momento em que a requisição assíncrona do nível raiz é iniciada
|
|
162
|
-
*
|
|
163
|
+
*
|
|
164
|
+
* > Compatível com a propriedade PoPopupAction.subItemsLazy
|
|
163
165
|
*/
|
|
164
166
|
rootItemsLoad: EventEmitter<void>;
|
|
165
167
|
get popupCustomPositions(): Array<string>;
|
|
@@ -10,16 +10,6 @@ import { PoDropdownBaseComponent } from './po-dropdown-base.component';
|
|
|
10
10
|
* <file name="sample-po-dropdown-basic/sample-po-dropdown-basic.component.ts"> </file>
|
|
11
11
|
* </example>
|
|
12
12
|
*
|
|
13
|
-
* <example name="po-dropdown-subitems" title="PO Dropdown Subitems" >
|
|
14
|
-
* <file name="sample-po-dropdown-subitems/sample-po-dropdown-subitems.component.html"> </file>
|
|
15
|
-
* <file name="sample-po-dropdown-subitems/sample-po-dropdown-subitems.component.ts"> </file>
|
|
16
|
-
* </example>
|
|
17
|
-
*
|
|
18
|
-
* <example name="po-dropdown-lazy-subitems" title="PO Dropdown Lazy Subitems" >
|
|
19
|
-
* <file name="sample-po-dropdown-lazy-subitems/sample-po-dropdown-lazy-subitems.component.html"> </file>
|
|
20
|
-
* <file name="sample-po-dropdown-lazy-subitems/sample-po-dropdown-lazy-subitems.component.ts"> </file>
|
|
21
|
-
* </example>
|
|
22
|
-
*
|
|
23
13
|
* <example name="po-dropdown-labs" title="PO Dropdown Labs" >
|
|
24
14
|
* <file name="sample-po-dropdown-labs/sample-po-dropdown-labs.component.html"> </file>
|
|
25
15
|
* <file name="sample-po-dropdown-labs/sample-po-dropdown-labs.component.ts"> </file>
|
|
@@ -29,6 +19,16 @@ import { PoDropdownBaseComponent } from './po-dropdown-base.component';
|
|
|
29
19
|
* <file name="sample-po-dropdown-social-network/sample-po-dropdown-social-network.component.html"> </file>
|
|
30
20
|
* <file name="sample-po-dropdown-social-network/sample-po-dropdown-social-network.component.ts"> </file>
|
|
31
21
|
* </example>
|
|
22
|
+
*
|
|
23
|
+
* <example name="po-dropdown-subitems" title="PO Dropdown Subitems" >
|
|
24
|
+
* <file name="sample-po-dropdown-subitems/sample-po-dropdown-subitems.component.html"> </file>
|
|
25
|
+
* <file name="sample-po-dropdown-subitems/sample-po-dropdown-subitems.component.ts"> </file>
|
|
26
|
+
* </example>
|
|
27
|
+
*
|
|
28
|
+
* <example name="po-dropdown-lazy-subitems" title="PO Dropdown Lazy Subitems" >
|
|
29
|
+
* <file name="sample-po-dropdown-lazy-subitems/sample-po-dropdown-lazy-subitems.component.html"> </file>
|
|
30
|
+
* <file name="sample-po-dropdown-lazy-subitems/sample-po-dropdown-lazy-subitems.component.ts"> </file>
|
|
31
|
+
* </example>
|
|
32
32
|
*/
|
|
33
33
|
export declare class PoDropdownComponent extends PoDropdownBaseComponent {
|
|
34
34
|
private readonly renderer;
|
|
@@ -45,6 +45,7 @@ export declare class PoDropdownComponent extends PoDropdownBaseComponent {
|
|
|
45
45
|
private hideDropdown;
|
|
46
46
|
private initializeListeners;
|
|
47
47
|
private readonly onScroll;
|
|
48
|
+
private isScrollInsidePopup;
|
|
48
49
|
private isDropdownClosed;
|
|
49
50
|
private removeListeners;
|
|
50
51
|
private showDropdown;
|
|
@@ -13,6 +13,7 @@ export declare class PoListBoxComponent extends PoListBoxBaseComponent implement
|
|
|
13
13
|
readonly subItemsSkeletonPlaceholders: number[];
|
|
14
14
|
rootLazyLoad?: () => Observable<Array<PoDropdownAction>>;
|
|
15
15
|
rootItemsLoad: EventEmitter<void>;
|
|
16
|
+
contentChange: EventEmitter<void>;
|
|
16
17
|
private readonly loadedSubItems;
|
|
17
18
|
private lastLoadedGroup;
|
|
18
19
|
private rootLoaded;
|
|
@@ -38,6 +39,7 @@ export declare class PoListBoxComponent extends PoListBoxBaseComponent implement
|
|
|
38
39
|
ngOnDestroy(): void;
|
|
39
40
|
openGroup(group: PoDropdownAction, event?: MouseEvent | KeyboardEvent): void;
|
|
40
41
|
private loadSubItemsAsync;
|
|
42
|
+
onRetryKeydown(event: KeyboardEvent, scope: 'root' | 'subItems'): void;
|
|
41
43
|
retrySubItems(event?: MouseEvent | KeyboardEvent): void;
|
|
42
44
|
loadRootItemsAsync(): void;
|
|
43
45
|
retryRootItems(event?: MouseEvent | KeyboardEvent): void;
|
|
@@ -47,6 +49,7 @@ export declare class PoListBoxComponent extends PoListBoxBaseComponent implement
|
|
|
47
49
|
isSubItemsError(group: PoDropdownAction | null): boolean;
|
|
48
50
|
isFunction(value: unknown): boolean;
|
|
49
51
|
isGroupItem(item: PoDropdownAction): boolean;
|
|
52
|
+
private hasSubItems;
|
|
50
53
|
private getGroupKey;
|
|
51
54
|
private setSubItemsState;
|
|
52
55
|
private clearSubItemsState;
|
|
@@ -110,39 +110,45 @@ export interface PoPopupAction {
|
|
|
110
110
|
*
|
|
111
111
|
* @description
|
|
112
112
|
*
|
|
113
|
-
* Define
|
|
114
|
-
*
|
|
115
|
-
* Aceita dois formatos:
|
|
116
|
-
*
|
|
117
|
-
* **Estático** – um *array* de `PoPopupAction` carregado imediatamente:
|
|
113
|
+
* Define uma lista de subitens para criação de menus aninhados.
|
|
118
114
|
*
|
|
119
115
|
* ```
|
|
120
116
|
* { label: 'Relatórios', subItems: [{ label: 'Mensal' }, { label: 'Anual' }] }
|
|
121
117
|
* ```
|
|
122
118
|
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
119
|
+
* Ao definir esta propriedade, o item exibirá um ícone indicador de subnível.
|
|
120
|
+
* Recomenda-se utilizar no máximo três níveis hierárquicos para garantir a usabilidade.
|
|
121
|
+
*
|
|
122
|
+
* > As propriedades `disabled`, `type` e `visible` não são aplicadas visualmente ao item agrupador.
|
|
123
|
+
*
|
|
124
|
+
* > Quando `url` é informada em um agrupador, o redirecionamento terá prioridade e os subitens não serão abertos.
|
|
125
|
+
*
|
|
126
|
+
* > Em subníveis aninhados, o `icon` do agrupador é substituído pelo indicador de navegação (seta).
|
|
127
|
+
*/
|
|
128
|
+
subItems?: Array<PoPopupAction>;
|
|
129
|
+
/**
|
|
130
|
+
* @optional
|
|
131
|
+
*
|
|
132
|
+
* @description
|
|
133
|
+
*
|
|
134
|
+
* Define o carregamento assíncrono (lazy loading) dos subitens de um agrupador.
|
|
135
|
+
*
|
|
136
|
+
* Recebe o item agrupador e retorna um `Observable<Array<PoPopupAction>>`. A requisição é disparada
|
|
137
|
+
* **apenas** no momento da expansão (clique ou atalho de teclado), exibindo placeholders com `po-skeleton`
|
|
138
|
+
* enquanto os dados são carregados:
|
|
126
139
|
*
|
|
127
140
|
* ```
|
|
128
141
|
* {
|
|
129
142
|
* label: 'Relatórios',
|
|
130
|
-
*
|
|
143
|
+
* subItemsLazy: (item) => this.reportService.getReports(item)
|
|
131
144
|
* }
|
|
132
145
|
* ```
|
|
133
146
|
*
|
|
134
|
-
* >
|
|
147
|
+
* > O resultado é armazenado em cache após o primeiro carregamento bem-sucedido.
|
|
135
148
|
* Em caso de falha, é exibida uma mensagem com a opção de tentar novamente.
|
|
136
149
|
*
|
|
137
150
|
* Ao definir esta propriedade, o item exibirá um ícone indicador de subnível.
|
|
138
|
-
* Recomenda-se utilizar no máximo três níveis hierárquicos para garantir a usabilidade.
|
|
139
|
-
*
|
|
140
|
-
* > As propriedades `disabled`, `type` e `visible` não são aplicadas visualmente ao item agrupador.
|
|
141
|
-
*
|
|
142
|
-
* > Quando `url` é informada em um agrupador, o redirecionamento terá prioridade e os subitens não serão abertos.
|
|
143
|
-
*
|
|
144
|
-
* > Em subníveis aninhados, o `icon` do agrupador é substituído pelo indicador de navegação (seta).
|
|
145
151
|
*/
|
|
146
|
-
|
|
152
|
+
subItemsLazy?: (item: PoPopupAction) => Observable<Array<PoPopupAction>>;
|
|
147
153
|
$subItemTemplate?: TemplateRef<any>;
|
|
148
154
|
}
|
|
@@ -84,9 +84,7 @@ export declare class PoPopupBaseComponent {
|
|
|
84
84
|
templateIcon: boolean;
|
|
85
85
|
/**
|
|
86
86
|
* Lista de ações que serão exibidas no componente.
|
|
87
|
-
*
|
|
88
|
-
* Aceita um *array* de `PoPopupAction` (carregado imediatamente) ou uma função que retorna um
|
|
89
|
-
* `Observable<Array<PoPopupAction>>`, carregando o nível raiz de forma assíncrona na abertura.
|
|
87
|
+
* Aceita um *array* de `PoPopupAction`.
|
|
90
88
|
*/
|
|
91
89
|
set actions(value: Array<PoPopupAction> | (() => Observable<Array<PoPopupAction>>));
|
|
92
90
|
get actions(): Array<PoPopupAction>;
|
|
@@ -215,13 +213,6 @@ export declare class PoPopupBaseComponent {
|
|
|
215
213
|
*/
|
|
216
214
|
set target(value: any);
|
|
217
215
|
get target(): any;
|
|
218
|
-
/**
|
|
219
|
-
* @optional
|
|
220
|
-
*
|
|
221
|
-
* @description
|
|
222
|
-
*
|
|
223
|
-
* Evento disparado ao fechar o popup.
|
|
224
|
-
*/
|
|
225
216
|
closeEvent: EventEmitter<any>;
|
|
226
217
|
/**
|
|
227
218
|
* @optional
|
|
@@ -229,29 +220,21 @@ export declare class PoPopupBaseComponent {
|
|
|
229
220
|
* @description
|
|
230
221
|
*
|
|
231
222
|
* Evento disparado a cada clique em um item do menu.
|
|
232
|
-
*
|
|
233
|
-
* Recebe o item clicado (`PoPopupAction`).
|
|
223
|
+
* Retorna o item clicado (`PoDropdownAction`).
|
|
234
224
|
*
|
|
235
225
|
* > Não é disparado para a ação interna de voltar (`goBack`).
|
|
236
226
|
*/
|
|
237
|
-
clickItem: EventEmitter<
|
|
238
|
-
/**
|
|
239
|
-
* @optional
|
|
240
|
-
*
|
|
241
|
-
* @description
|
|
242
|
-
*
|
|
243
|
-
* Evento disparado ao abrir o popup.
|
|
244
|
-
*/
|
|
227
|
+
clickItem: EventEmitter<any>;
|
|
245
228
|
openEvent: EventEmitter<any>;
|
|
246
229
|
/**
|
|
247
230
|
* @optional
|
|
248
231
|
*
|
|
249
232
|
* @description
|
|
250
233
|
*
|
|
251
|
-
* Evento disparado no momento em que a requisição assíncrona de um subnível é iniciada
|
|
252
|
-
*
|
|
234
|
+
* Evento disparado no momento em que a requisição assíncrona de um subnível é iniciada.
|
|
235
|
+
* Retorna o item agrupador (`PoPopupAction`) que originou o carregamento.
|
|
253
236
|
*
|
|
254
|
-
*
|
|
237
|
+
* > Compatível com a propriedade PoPopupAction.subItemsLazy
|
|
255
238
|
*/
|
|
256
239
|
subItemsLoad: EventEmitter<PoPopupAction>;
|
|
257
240
|
/**
|
|
@@ -260,7 +243,8 @@ export declare class PoPopupBaseComponent {
|
|
|
260
243
|
* @description
|
|
261
244
|
*
|
|
262
245
|
* Evento disparado no momento em que a requisição assíncrona do nível raiz é iniciada
|
|
263
|
-
*
|
|
246
|
+
*
|
|
247
|
+
* > Compatível com a propriedade PoPopupAction.subItemsLazy
|
|
264
248
|
*/
|
|
265
249
|
rootItemsLoad: EventEmitter<void>;
|
|
266
250
|
}
|
|
@@ -34,6 +34,8 @@ export declare class PoPopupComponent extends PoPopupBaseComponent implements Af
|
|
|
34
34
|
changeDetector: ChangeDetectorRef;
|
|
35
35
|
popupRef: ElementRef;
|
|
36
36
|
listbox: ElementRef;
|
|
37
|
+
private readonly popupOffset;
|
|
38
|
+
private readonly viewportMargin;
|
|
37
39
|
poListBoxRef: PoListBoxComponent;
|
|
38
40
|
ngAfterViewInit(): void;
|
|
39
41
|
/**
|
|
@@ -62,6 +64,7 @@ export declare class PoPopupComponent extends PoPopupBaseComponent implements Af
|
|
|
62
64
|
*/
|
|
63
65
|
toggle(param?: any): void;
|
|
64
66
|
onClickItem(item: any): void;
|
|
67
|
+
onContentChange(): void;
|
|
65
68
|
protected checkAllActionIsInvisible(): boolean;
|
|
66
69
|
private clickedOutDisabledItem;
|
|
67
70
|
private clickedOutHeaderTemplate;
|
|
@@ -76,6 +79,12 @@ export declare class PoPopupComponent extends PoPopupBaseComponent implements Af
|
|
|
76
79
|
private openUrl;
|
|
77
80
|
private removeListeners;
|
|
78
81
|
private setPosition;
|
|
82
|
+
private resolvePositions;
|
|
83
|
+
private getVerticalFirstPositions;
|
|
84
|
+
private clampHeightToViewport;
|
|
85
|
+
private getScrollableListboxElement;
|
|
86
|
+
private isOpeningUp;
|
|
87
|
+
private getStickyPositions;
|
|
79
88
|
private validateInitialContent;
|
|
80
89
|
private focusTarget;
|
|
81
90
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.34.0",
|
|
4
4
|
"description": "PO UI - Components",
|
|
5
5
|
"author": "PO UI",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@angular/cdk": "~21.2.14",
|
|
25
|
-
"@po-ui/style": "21.
|
|
26
|
-
"@po-ui/ng-schematics": "21.
|
|
25
|
+
"@po-ui/style": "21.34.0",
|
|
26
|
+
"@po-ui/ng-schematics": "21.34.0",
|
|
27
27
|
"driver.js": "~1.4.0",
|
|
28
28
|
"echarts": "^6.1.0",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@angular/platform-browser-dynamic": "^21",
|
|
40
40
|
"@angular/router": "^21",
|
|
41
41
|
"@angular-devkit/schematics": "^21",
|
|
42
|
-
"@po-ui/style": "21.
|
|
42
|
+
"@po-ui/style": "21.34.0",
|
|
43
43
|
"rxjs": "~7.8.1",
|
|
44
44
|
"zone.js": "~0.15.0"
|
|
45
45
|
},
|
|
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.34.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.34.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.34.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.34.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.34.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.34.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.34.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.34.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.34.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.34.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.34.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.34.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.34.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.34.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.34.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.34.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.34.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|