@po-ui/ng-components 21.33.0 → 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 +1779 -1266
- 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 +41 -2
- package/lib/components/po-dropdown/po-dropdown.component.d.ts +13 -5
- package/lib/components/po-listbox/interfaces/po-listbox-literals.interface.d.ts +6 -0
- package/lib/components/po-listbox/po-listbox-base.component.d.ts +1 -0
- package/lib/components/po-listbox/po-listbox.component.d.ts +31 -5
- package/lib/components/po-popup/po-popup-action.interface.d.ts +29 -0
- package/lib/components/po-popup/po-popup-base.component.d.ts +38 -2
- package/lib/components/po-popup/po-popup.component.d.ts +16 -1
- 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 +506 -348
- package/po-ui-ng-components-21.33.0.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
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
1
3
|
import { PoDropdownAction } from './po-dropdown-action.interface';
|
|
2
4
|
/**
|
|
3
5
|
* @description
|
|
@@ -64,13 +66,18 @@ export declare class PoDropdownBaseComponent {
|
|
|
64
66
|
icon: string;
|
|
65
67
|
open: boolean;
|
|
66
68
|
private _actions;
|
|
69
|
+
private _rootLazyLoad?;
|
|
67
70
|
private _disabled;
|
|
68
71
|
private _size?;
|
|
69
72
|
private _initialSize?;
|
|
70
73
|
private _position;
|
|
71
|
-
/**
|
|
72
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Lista de ações que serão exibidas no componente.
|
|
76
|
+
* Aceita um *array* de `PoDropdownAction`.
|
|
77
|
+
*/
|
|
78
|
+
set actions(value: Array<PoDropdownAction> | (() => Observable<Array<PoDropdownAction>>));
|
|
73
79
|
get actions(): Array<PoDropdownAction>;
|
|
80
|
+
get popupActions(): Array<PoDropdownAction> | (() => Observable<Array<PoDropdownAction>>);
|
|
74
81
|
/**
|
|
75
82
|
* @optional
|
|
76
83
|
*
|
|
@@ -125,6 +132,38 @@ export declare class PoDropdownBaseComponent {
|
|
|
125
132
|
*/
|
|
126
133
|
set position(value: string);
|
|
127
134
|
get position(): string;
|
|
135
|
+
/**
|
|
136
|
+
* @optional
|
|
137
|
+
*
|
|
138
|
+
* @description
|
|
139
|
+
*
|
|
140
|
+
* Evento disparado a cada clique em um item do menu.
|
|
141
|
+
* Retorna o item clicado (`PoDropdownAction`).
|
|
142
|
+
*
|
|
143
|
+
* > Não é disparado para a ação interna de voltar (`goBack`).
|
|
144
|
+
*/
|
|
145
|
+
clickItem: EventEmitter<PoDropdownAction>;
|
|
146
|
+
/**
|
|
147
|
+
* @optional
|
|
148
|
+
*
|
|
149
|
+
* @description
|
|
150
|
+
*
|
|
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.
|
|
153
|
+
*
|
|
154
|
+
* > Compatível com a propriedade PoPopupAction.subItemsLazy
|
|
155
|
+
*/
|
|
156
|
+
subItemsLoad: EventEmitter<PoDropdownAction>;
|
|
157
|
+
/**
|
|
158
|
+
* @optional
|
|
159
|
+
*
|
|
160
|
+
* @description
|
|
161
|
+
*
|
|
162
|
+
* Evento disparado no momento em que a requisição assíncrona do nível raiz é iniciada
|
|
163
|
+
*
|
|
164
|
+
* > Compatível com a propriedade PoPopupAction.subItemsLazy
|
|
165
|
+
*/
|
|
166
|
+
rootItemsLoad: EventEmitter<void>;
|
|
128
167
|
get popupCustomPositions(): Array<string>;
|
|
129
168
|
protected onThemeChange(): void;
|
|
130
169
|
private applySizeBasedOnA11y;
|
|
@@ -10,11 +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
13
|
* <example name="po-dropdown-labs" title="PO Dropdown Labs" >
|
|
19
14
|
* <file name="sample-po-dropdown-labs/sample-po-dropdown-labs.component.html"> </file>
|
|
20
15
|
* <file name="sample-po-dropdown-labs/sample-po-dropdown-labs.component.ts"> </file>
|
|
@@ -24,6 +19,16 @@ import { PoDropdownBaseComponent } from './po-dropdown-base.component';
|
|
|
24
19
|
* <file name="sample-po-dropdown-social-network/sample-po-dropdown-social-network.component.html"> </file>
|
|
25
20
|
* <file name="sample-po-dropdown-social-network/sample-po-dropdown-social-network.component.ts"> </file>
|
|
26
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>
|
|
27
32
|
*/
|
|
28
33
|
export declare class PoDropdownComponent extends PoDropdownBaseComponent {
|
|
29
34
|
private readonly renderer;
|
|
@@ -34,10 +39,13 @@ export declare class PoDropdownComponent extends PoDropdownBaseComponent {
|
|
|
34
39
|
private resizeListener;
|
|
35
40
|
onKeyDown(event: any): void;
|
|
36
41
|
toggleDropdown(): void;
|
|
42
|
+
onPopupClose(): void;
|
|
43
|
+
private isEventInsideElement;
|
|
37
44
|
private checkClickArea;
|
|
38
45
|
private hideDropdown;
|
|
39
46
|
private initializeListeners;
|
|
40
47
|
private readonly onScroll;
|
|
48
|
+
private isScrollInsidePopup;
|
|
41
49
|
private isDropdownClosed;
|
|
42
50
|
private removeListeners;
|
|
43
51
|
private showDropdown;
|
|
@@ -15,4 +15,10 @@ export interface PoListBoxLiterals {
|
|
|
15
15
|
/** Texto do checkbox para selecionar todos os itens. */
|
|
16
16
|
selectAll?: string;
|
|
17
17
|
footerActionListbox?: string;
|
|
18
|
+
/** Mensagem exibida quando o carregamento assíncrono de um subnível falha. */
|
|
19
|
+
subItemsErrorMessage?: string;
|
|
20
|
+
/** Texto acessível anunciado durante o carregamento assíncrono de um subnível. */
|
|
21
|
+
subItemsLoading?: string;
|
|
22
|
+
/** Texto do botão para tentar novamente o carregamento de um subnível. */
|
|
23
|
+
retry?: string;
|
|
18
24
|
}
|
|
@@ -75,6 +75,7 @@ export declare class PoListBoxBaseComponent {
|
|
|
75
75
|
clickTab: EventEmitter<any>;
|
|
76
76
|
changeStateTabs: EventEmitter<any>;
|
|
77
77
|
clickItem: EventEmitter<any>;
|
|
78
|
+
subItemsLoad: EventEmitter<any>;
|
|
78
79
|
footerActionListboxEvent: EventEmitter<any>;
|
|
79
80
|
constructor(languageService: PoLanguageService);
|
|
80
81
|
protected onThemeChange(): void;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges, WritableSignal } from '@angular/core';
|
|
2
2
|
import { CdkListbox, CdkOption } from '@angular/cdk/listbox';
|
|
3
3
|
import { PoListBoxBaseComponent } from './po-listbox-base.component';
|
|
4
|
-
import { PoItemListOptionGroup } from './po-item-list/interfaces/po-item-list-option-group.interface';
|
|
5
|
-
import { PoItemListOption } from './po-item-list/interfaces/po-item-list-option.interface';
|
|
6
4
|
import { PoSearchListComponent } from './po-search-list/po-search-list.component';
|
|
7
5
|
import { PoDropdownAction } from '../po-dropdown/po-dropdown-action.interface';
|
|
8
6
|
import { Observable } from 'rxjs';
|
|
@@ -10,6 +8,16 @@ export declare class PoListBoxComponent extends PoListBoxBaseComponent implement
|
|
|
10
8
|
element: ElementRef<any>;
|
|
11
9
|
currentItems: Array<PoDropdownAction>;
|
|
12
10
|
currentGroup: PoDropdownAction | null;
|
|
11
|
+
readonly subItemsLoading: WritableSignal<Record<string, boolean>>;
|
|
12
|
+
readonly subItemsError: WritableSignal<Record<string, boolean>>;
|
|
13
|
+
readonly subItemsSkeletonPlaceholders: number[];
|
|
14
|
+
rootLazyLoad?: () => Observable<Array<PoDropdownAction>>;
|
|
15
|
+
rootItemsLoad: EventEmitter<void>;
|
|
16
|
+
contentChange: EventEmitter<void>;
|
|
17
|
+
private readonly loadedSubItems;
|
|
18
|
+
private lastLoadedGroup;
|
|
19
|
+
private rootLoaded;
|
|
20
|
+
private readonly destroySubItems$;
|
|
13
21
|
private readonly navigationStack;
|
|
14
22
|
private readonly renderer;
|
|
15
23
|
private readonly router;
|
|
@@ -30,12 +38,30 @@ export declare class PoListBoxComponent extends PoListBoxBaseComponent implement
|
|
|
30
38
|
ngOnChanges(changes?: SimpleChanges): void;
|
|
31
39
|
ngOnDestroy(): void;
|
|
32
40
|
openGroup(group: PoDropdownAction, event?: MouseEvent | KeyboardEvent): void;
|
|
41
|
+
private loadSubItemsAsync;
|
|
42
|
+
onRetryKeydown(event: KeyboardEvent, scope: 'root' | 'subItems'): void;
|
|
43
|
+
retrySubItems(event?: MouseEvent | KeyboardEvent): void;
|
|
44
|
+
loadRootItemsAsync(): void;
|
|
45
|
+
retryRootItems(event?: MouseEvent | KeyboardEvent): void;
|
|
46
|
+
isRootLoading(): boolean;
|
|
47
|
+
isRootError(): boolean;
|
|
48
|
+
isSubItemsLoading(group: PoDropdownAction | null): boolean;
|
|
49
|
+
isSubItemsError(group: PoDropdownAction | null): boolean;
|
|
50
|
+
isFunction(value: unknown): boolean;
|
|
51
|
+
isGroupItem(item: PoDropdownAction): boolean;
|
|
52
|
+
private hasSubItems;
|
|
53
|
+
private getGroupKey;
|
|
54
|
+
private setSubItemsState;
|
|
55
|
+
private clearSubItemsState;
|
|
56
|
+
private focusGroupHeader;
|
|
33
57
|
goBack(event: MouseEvent | KeyboardEvent): void;
|
|
34
58
|
onKeydownGoBack(event: KeyboardEvent, currentGroup?: PoDropdownAction): void;
|
|
35
59
|
protected onKeydownTemplate(event: KeyboardEvent): void;
|
|
36
|
-
onSelectItem(itemListAction:
|
|
60
|
+
onSelectItem(itemListAction: any, event?: MouseEvent | KeyboardEvent): void | Promise<boolean>;
|
|
37
61
|
onSelectAllCheckboxKeyDown(event: KeyboardEvent): void;
|
|
38
|
-
onKeyDown(itemListAction:
|
|
62
|
+
onKeyDown(itemListAction: any, event?: KeyboardEvent): void;
|
|
63
|
+
private handleArrowRightKey;
|
|
64
|
+
private handleEnterOrSpaceKey;
|
|
39
65
|
checkboxClicked({ option, selected }: {
|
|
40
66
|
option: any;
|
|
41
67
|
selected: any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
/**
|
|
3
4
|
* @usedBy PoPopupComponent, PoWidgetComponent
|
|
4
5
|
*
|
|
@@ -111,6 +112,10 @@ export interface PoPopupAction {
|
|
|
111
112
|
*
|
|
112
113
|
* Define uma lista de subitens para criação de menus aninhados.
|
|
113
114
|
*
|
|
115
|
+
* ```
|
|
116
|
+
* { label: 'Relatórios', subItems: [{ label: 'Mensal' }, { label: 'Anual' }] }
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
114
119
|
* Ao definir esta propriedade, o item exibirá um ícone indicador de subnível.
|
|
115
120
|
* Recomenda-se utilizar no máximo três níveis hierárquicos para garantir a usabilidade.
|
|
116
121
|
*
|
|
@@ -121,5 +126,29 @@ export interface PoPopupAction {
|
|
|
121
126
|
* > Em subníveis aninhados, o `icon` do agrupador é substituído pelo indicador de navegação (seta).
|
|
122
127
|
*/
|
|
123
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:
|
|
139
|
+
*
|
|
140
|
+
* ```
|
|
141
|
+
* {
|
|
142
|
+
* label: 'Relatórios',
|
|
143
|
+
* subItemsLazy: (item) => this.reportService.getReports(item)
|
|
144
|
+
* }
|
|
145
|
+
* ```
|
|
146
|
+
*
|
|
147
|
+
* > O resultado é armazenado em cache após o primeiro carregamento bem-sucedido.
|
|
148
|
+
* Em caso de falha, é exibida uma mensagem com a opção de tentar novamente.
|
|
149
|
+
*
|
|
150
|
+
* Ao definir esta propriedade, o item exibirá um ícone indicador de subnível.
|
|
151
|
+
*/
|
|
152
|
+
subItemsLazy?: (item: PoPopupAction) => Observable<Array<PoPopupAction>>;
|
|
124
153
|
$subItemTemplate?: TemplateRef<any>;
|
|
125
154
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
import { PoPopupAction } from './po-popup-action.interface';
|
|
3
4
|
/**
|
|
4
5
|
* @description
|
|
@@ -78,10 +79,14 @@ export declare class PoPopupBaseComponent {
|
|
|
78
79
|
private _position?;
|
|
79
80
|
private _size?;
|
|
80
81
|
private _target;
|
|
82
|
+
rootLazyLoad?: () => Observable<Array<PoPopupAction>>;
|
|
81
83
|
get computedListboxSubitems(): boolean;
|
|
82
84
|
templateIcon: boolean;
|
|
83
|
-
/**
|
|
84
|
-
|
|
85
|
+
/**
|
|
86
|
+
* Lista de ações que serão exibidas no componente.
|
|
87
|
+
* Aceita um *array* de `PoPopupAction`.
|
|
88
|
+
*/
|
|
89
|
+
set actions(value: Array<PoPopupAction> | (() => Observable<Array<PoPopupAction>>));
|
|
85
90
|
get actions(): Array<PoPopupAction>;
|
|
86
91
|
/**
|
|
87
92
|
* @optional
|
|
@@ -209,6 +214,37 @@ export declare class PoPopupBaseComponent {
|
|
|
209
214
|
set target(value: any);
|
|
210
215
|
get target(): any;
|
|
211
216
|
closeEvent: EventEmitter<any>;
|
|
217
|
+
/**
|
|
218
|
+
* @optional
|
|
219
|
+
*
|
|
220
|
+
* @description
|
|
221
|
+
*
|
|
222
|
+
* Evento disparado a cada clique em um item do menu.
|
|
223
|
+
* Retorna o item clicado (`PoDropdownAction`).
|
|
224
|
+
*
|
|
225
|
+
* > Não é disparado para a ação interna de voltar (`goBack`).
|
|
226
|
+
*/
|
|
212
227
|
clickItem: EventEmitter<any>;
|
|
213
228
|
openEvent: EventEmitter<any>;
|
|
229
|
+
/**
|
|
230
|
+
* @optional
|
|
231
|
+
*
|
|
232
|
+
* @description
|
|
233
|
+
*
|
|
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.
|
|
236
|
+
*
|
|
237
|
+
* > Compatível com a propriedade PoPopupAction.subItemsLazy
|
|
238
|
+
*/
|
|
239
|
+
subItemsLoad: EventEmitter<PoPopupAction>;
|
|
240
|
+
/**
|
|
241
|
+
* @optional
|
|
242
|
+
*
|
|
243
|
+
* @description
|
|
244
|
+
*
|
|
245
|
+
* Evento disparado no momento em que a requisição assíncrona do nível raiz é iniciada
|
|
246
|
+
*
|
|
247
|
+
* > Compatível com a propriedade PoPopupAction.subItemsLazy
|
|
248
|
+
*/
|
|
249
|
+
rootItemsLoad: EventEmitter<void>;
|
|
214
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
|
/**
|
|
@@ -41,7 +43,10 @@ export declare class PoPopupComponent extends PoPopupBaseComponent implements Af
|
|
|
41
43
|
*
|
|
42
44
|
* > Por padrão, este comportamento é acionado somente ao clicar fora do componente ou em determinada ação / url.
|
|
43
45
|
*/
|
|
44
|
-
close(
|
|
46
|
+
close(closeEvent?: {
|
|
47
|
+
reason?: string;
|
|
48
|
+
origin?: string;
|
|
49
|
+
}): void;
|
|
45
50
|
onActionClick(popupAction: PoPopupAction): void | Promise<boolean>;
|
|
46
51
|
/**
|
|
47
52
|
* Abre o componente *popup*.
|
|
@@ -59,10 +64,13 @@ export declare class PoPopupComponent extends PoPopupBaseComponent implements Af
|
|
|
59
64
|
*/
|
|
60
65
|
toggle(param?: any): void;
|
|
61
66
|
onClickItem(item: any): void;
|
|
67
|
+
onContentChange(): void;
|
|
62
68
|
protected checkAllActionIsInvisible(): boolean;
|
|
63
69
|
private clickedOutDisabledItem;
|
|
64
70
|
private clickedOutHeaderTemplate;
|
|
71
|
+
private isEventInsideElement;
|
|
65
72
|
private clickedOutTarget;
|
|
73
|
+
private clickedOutPopup;
|
|
66
74
|
private closePopupOnClickout;
|
|
67
75
|
private elementContains;
|
|
68
76
|
private hasContentToShow;
|
|
@@ -71,5 +79,12 @@ export declare class PoPopupComponent extends PoPopupBaseComponent implements Af
|
|
|
71
79
|
private openUrl;
|
|
72
80
|
private removeListeners;
|
|
73
81
|
private setPosition;
|
|
82
|
+
private resolvePositions;
|
|
83
|
+
private getVerticalFirstPositions;
|
|
84
|
+
private clampHeightToViewport;
|
|
85
|
+
private getScrollableListboxElement;
|
|
86
|
+
private isOpeningUp;
|
|
87
|
+
private getStickyPositions;
|
|
74
88
|
private validateInitialContent;
|
|
89
|
+
private focusTarget;
|
|
75
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) => {
|