@po-ui/ng-components 21.14.0 → 21.16.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-po-chart-modal-table.component-itToVZ7w.mjs → po-ui-ng-components-po-chart-modal-table.component-C4GP9pZp.mjs} +4 -4
- package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-itToVZ7w.mjs.map → po-ui-ng-components-po-chart-modal-table.component-C4GP9pZp.mjs.map} +1 -1
- package/fesm2022/po-ui-ng-components.mjs +1425 -1230
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/po-dropdown/po-dropdown-action.interface.d.ts +2 -10
- package/lib/components/po-field/po-combo/interfaces/po-combo-option-group.interface.d.ts +6 -1
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +2 -0
- package/lib/components/po-filter-chip/index.d.ts +4 -0
- package/lib/components/po-filter-chip/interfaces/po-filter-chip-selected-change.interface.d.ts +13 -0
- package/lib/components/po-filter-chip/po-filter-chip-base.component.d.ts +91 -0
- package/lib/components/po-filter-chip/po-filter-chip.component.d.ts +31 -0
- package/lib/components/po-filter-chip/po-filter-chip.module.d.ts +7 -0
- package/lib/components/po-list-view/interfaces/po-list-view-action.interface.d.ts +3 -1
- package/lib/components/po-popup/po-popup-action.interface.d.ts +22 -4
- package/lib/components/po-popup/po-popup-base.component.d.ts +4 -1
- package/package.json +4 -4
- package/po-ui-ng-components-21.16.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 +194 -21
- package/po-ui-ng-components-21.14.0.tgz +0 -0
|
@@ -15,6 +15,7 @@ export * from './po-divider/index';
|
|
|
15
15
|
export * from './po-dropdown/index';
|
|
16
16
|
export * from './po-dynamic/index';
|
|
17
17
|
export * from './po-field/index';
|
|
18
|
+
export * from './po-filter-chip/index';
|
|
18
19
|
export * from './po-gauge/index';
|
|
19
20
|
export * from './po-grid/index';
|
|
20
21
|
export * from './po-helper/index';
|
|
@@ -6,17 +6,9 @@ import { PoPopupAction } from '../po-popup/po-popup-action.interface';
|
|
|
6
6
|
*
|
|
7
7
|
* @docsExtends PoPopupAction
|
|
8
8
|
*
|
|
9
|
+
* @ignoreExtendedDescription
|
|
10
|
+
*
|
|
9
11
|
* @usedBy PoDropdownComponent
|
|
10
12
|
*/
|
|
11
13
|
export interface PoDropdownAction extends PoPopupAction {
|
|
12
|
-
/**
|
|
13
|
-
* @optional
|
|
14
|
-
*
|
|
15
|
-
* @description
|
|
16
|
-
*
|
|
17
|
-
* Array de ações (`PoDropdownAction`) usado para criar agrupadores de subitens (submenus).
|
|
18
|
-
*
|
|
19
|
-
* > Recomenda-se limitar a navegação a, no máximo, três níveis hierárquicos.
|
|
20
|
-
*/
|
|
21
|
-
subItems?: Array<PoDropdownAction>;
|
|
22
14
|
}
|
|
@@ -7,7 +7,12 @@ import { PoComboOption } from './po-combo-option.interface';
|
|
|
7
7
|
* Interface dos agrupamentos da coleção que será exibida no dropdown do `po-combo`.
|
|
8
8
|
*/
|
|
9
9
|
export interface PoComboOptionGroup {
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Título para cada grupo de opções.
|
|
12
|
+
*
|
|
13
|
+
* Recomendação: evite usar labels idênticos em diferentes grupos. Labels iguais podem
|
|
14
|
+
* causar ambiguidade para usuários e dificultar a identificação/seleção dos itens.
|
|
15
|
+
*/
|
|
11
16
|
label: string;
|
|
12
17
|
/** Lista de itens a serem exibidos. */
|
|
13
18
|
options: Array<PoComboOption>;
|
|
@@ -674,6 +674,8 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
674
674
|
getOptionFromValue(value: any, options: any): any;
|
|
675
675
|
getOptionFromLabel(label: any, options: any): any;
|
|
676
676
|
updateSelectedValue(option: any, isUpdateModel?: boolean): void;
|
|
677
|
+
private isGroupTitle;
|
|
678
|
+
private updateOptionsSelectedState;
|
|
677
679
|
callModelChange(value: any): any;
|
|
678
680
|
isEqual(value: any, inputValue: any): boolean;
|
|
679
681
|
mapSizeToIcon(size: string): string;
|
package/lib/components/po-filter-chip/interfaces/po-filter-chip-selected-change.interface.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @usedBy PoFilterChipComponent
|
|
3
|
+
*
|
|
4
|
+
* @description
|
|
5
|
+
*
|
|
6
|
+
* Interface que define o objeto emitido pelo evento `p-selected-change`.
|
|
7
|
+
*/
|
|
8
|
+
export interface PoFilterChipSelectedChange {
|
|
9
|
+
/** Rótulo de texto do *chip*. */
|
|
10
|
+
label: string;
|
|
11
|
+
/** Estado de seleção do *chip* (`true` para selecionado, `false` para desmarcado). */
|
|
12
|
+
selected: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { PoFilterChipSelectedChange } from './interfaces/po-filter-chip-selected-change.interface';
|
|
2
|
+
/**
|
|
3
|
+
* @description
|
|
4
|
+
*
|
|
5
|
+
* O `po-filter-chip` é um componente interativo que representa uma opção de filtro selecionável na forma de chip.
|
|
6
|
+
* O componente exibe um rótulo de texto e suporta três estados visuais: padrão (repouso), hover e selecionado.
|
|
7
|
+
* No estado selecionado, um ícone de check é exibido à esquerda do rótulo.
|
|
8
|
+
*
|
|
9
|
+
* #### Boas práticas
|
|
10
|
+
*
|
|
11
|
+
* - Utilize `labels` curtos e descritivos para os filtros.
|
|
12
|
+
* - Agrupe múltiplos `po-filter-chip` para representar opções de filtragem relacionadas.
|
|
13
|
+
* - Utilize a propriedade `p-disabled` para filtros temporariamente indisponíveis.
|
|
14
|
+
*
|
|
15
|
+
* #### Acessibilidade tratada no componente
|
|
16
|
+
*
|
|
17
|
+
* Algumas diretrizes de acessibilidade já são tratadas no componente, internamente, e não podem ser alteradas pelo proprietário do conteúdo. São elas:
|
|
18
|
+
*
|
|
19
|
+
* - O componente possui `role="option"` e `aria-selected` refletindo o estado de seleção. [W3C WAI-ARIA 3.14 Listbox](https://www.w3.org/WAI/ARIA/apg/#listbox)
|
|
20
|
+
* - Quando em foco, o chip é ativado usando as teclas de Espaço e Enter do teclado. [W3C WAI-ARIA 3.5 Button - Keyboard Interaction](https://www.w3.org/WAI/ARIA/apg/#keyboard-interaction-3)
|
|
21
|
+
*
|
|
22
|
+
* #### Tokens customizáveis
|
|
23
|
+
*
|
|
24
|
+
* É possível alterar o estilo do componente usando os seguintes tokens (CSS):
|
|
25
|
+
*
|
|
26
|
+
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
27
|
+
*
|
|
28
|
+
* | Propriedade | Descrição | Valor Padrão |
|
|
29
|
+
* |--------------------------------|----------------------------------------------------|---------------------------------------------|
|
|
30
|
+
* | `--border-radius` | Raio dos cantos do elemento | `var(--border-radius-lg)` |
|
|
31
|
+
* | `--border-width` | Largura da borda | `var(--border-width-sm)` |
|
|
32
|
+
* | `--font-family` | Família tipográfica | `var(--font-family-theme)` |
|
|
33
|
+
* | `--font-size` | Tamanho da fonte | `var(--font-size-default)` |
|
|
34
|
+
* | `--font-weight` | Peso da fonte | `var(--font-weight-normal)` |
|
|
35
|
+
* | **Default** | | |
|
|
36
|
+
* | `--border-color` | Cor da borda no estado padrão | `var(--color-neutral-light-20)` |
|
|
37
|
+
* | `--text-color` | Cor do texto no estado padrão | `var(--color-neutral-dark-80)` |
|
|
38
|
+
* | `--background-color` | Cor de fundo no estado padrão | `transparent` |
|
|
39
|
+
* | **Hover** | | |
|
|
40
|
+
* | `--background-color-hover` | Cor de fundo no estado hover | `var(--color-brand-01-lightest)` |
|
|
41
|
+
* | `--text-color-hover` | Cor do texto no estado hover | `var(--color-action-default)` |
|
|
42
|
+
* | **Selected** | | |
|
|
43
|
+
* | `--background-color-selected` | Cor de fundo no estado selecionado | `var(--color-brand-01-lightest)` |
|
|
44
|
+
* | `--border-color-selected` | Cor da borda no estado selecionado | `var(--color-brand-01-lighter)` |
|
|
45
|
+
* | `--text-color-selected` | Cor do texto no estado selecionado | `var(--color-action-default)` |
|
|
46
|
+
* | `--icon-color-selected` | Cor do ícone no estado selecionado | `var(--color-action-default)` |
|
|
47
|
+
* | **Disabled** | | |
|
|
48
|
+
* | `--opacity-disabled` | Opacidade no estado desabilitado | `0.5` |
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
export declare class PoFilterChipBaseComponent {
|
|
52
|
+
/**
|
|
53
|
+
* @optional
|
|
54
|
+
*
|
|
55
|
+
* @description
|
|
56
|
+
*
|
|
57
|
+
* Define se o chip está desabilitado, impedindo qualquer interação do usuário.
|
|
58
|
+
*
|
|
59
|
+
* Quando habilitado, o chip não responde a cliques nem a eventos de teclado (Enter/Space).
|
|
60
|
+
*
|
|
61
|
+
* @default `false`
|
|
62
|
+
*/
|
|
63
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
64
|
+
/**
|
|
65
|
+
* @optional
|
|
66
|
+
*
|
|
67
|
+
* @description
|
|
68
|
+
*
|
|
69
|
+
* Define o rótulo de texto exibido no chip.
|
|
70
|
+
*/
|
|
71
|
+
label: import("@angular/core").InputSignal<string>;
|
|
72
|
+
/**
|
|
73
|
+
* @optional
|
|
74
|
+
*
|
|
75
|
+
* @description
|
|
76
|
+
*
|
|
77
|
+
* Define o estado de seleção do chip.
|
|
78
|
+
*
|
|
79
|
+
* @default `false`
|
|
80
|
+
*/
|
|
81
|
+
selected: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
82
|
+
/**
|
|
83
|
+
* @optional
|
|
84
|
+
*
|
|
85
|
+
* @description
|
|
86
|
+
*
|
|
87
|
+
* Evento disparado após a alteração do estado de seleção do *chip*. Retorna o objeto PoFilterChipSelectedChange
|
|
88
|
+
* modificado.
|
|
89
|
+
*/
|
|
90
|
+
selectedChange: import("@angular/core").OutputEmitterRef<PoFilterChipSelectedChange>;
|
|
91
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PoFilterChipBaseComponent } from './po-filter-chip-base.component';
|
|
2
|
+
/**
|
|
3
|
+
* @docsExtends PoFilterChipBaseComponent
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
*
|
|
7
|
+
* <example name="po-filter-chip-basic" title="PO Filter Chip Basic">
|
|
8
|
+
* <file name="sample-po-filter-chip-basic/sample-po-filter-chip-basic.component.html"> </file>
|
|
9
|
+
* <file name="sample-po-filter-chip-basic/sample-po-filter-chip-basic.component.ts"> </file>
|
|
10
|
+
* </example>
|
|
11
|
+
*
|
|
12
|
+
* <example name="po-filter-chip-labs" title="PO Filter Chip Labs">
|
|
13
|
+
* <file name="sample-po-filter-chip-labs/sample-po-filter-chip-labs.component.html"> </file>
|
|
14
|
+
* <file name="sample-po-filter-chip-labs/sample-po-filter-chip-labs.component.ts"> </file>
|
|
15
|
+
* </example>
|
|
16
|
+
*
|
|
17
|
+
* <example name="po-filter-chip-filter-list" title="PO Filter Chip - Filter List">
|
|
18
|
+
* <file name="sample-po-filter-chip-filter-list/sample-po-filter-chip-filter-list.component.html"> </file>
|
|
19
|
+
* <file name="sample-po-filter-chip-filter-list/sample-po-filter-chip-filter-list.component.ts"> </file>
|
|
20
|
+
* </example>
|
|
21
|
+
*/
|
|
22
|
+
export declare class PoFilterChipComponent extends PoFilterChipBaseComponent {
|
|
23
|
+
private readonly _selected;
|
|
24
|
+
private initialized;
|
|
25
|
+
isSelected: import("@angular/core").Signal<boolean>;
|
|
26
|
+
constructor();
|
|
27
|
+
protected onClick(): void;
|
|
28
|
+
protected onKeydown(event: Event): void;
|
|
29
|
+
private setupSelectedEffect;
|
|
30
|
+
private toggle;
|
|
31
|
+
}
|
|
@@ -4,11 +4,13 @@ import { PoPopupAction } from '../../po-popup/po-popup-action.interface';
|
|
|
4
4
|
*
|
|
5
5
|
* Interface que define as ações do componente `po-list-view`.
|
|
6
6
|
*
|
|
7
|
-
* > As propriedades `separator`, `url` e `selected` serão vistas a partir da terceira ação e somente quando
|
|
7
|
+
* > As propriedades `subItems`, `separator`, `url` e `selected` serão vistas a partir da terceira ação e somente quando
|
|
8
8
|
* definir quatro ações ou mais.
|
|
9
9
|
*
|
|
10
10
|
* @docsExtends PoPopupAction
|
|
11
11
|
*
|
|
12
|
+
* @ignoreExtendedDescription
|
|
13
|
+
*
|
|
12
14
|
* @usedBy PoListViewComponent
|
|
13
15
|
*/
|
|
14
16
|
export interface PoListViewAction extends PoPopupAction {
|
|
@@ -12,7 +12,7 @@ export interface PoPopupAction {
|
|
|
12
12
|
*
|
|
13
13
|
* Rótulo da ação.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
15
|
+
* A label também pode representar o agrupador de subitens quando a ação possuir `subItems`.
|
|
16
16
|
*/
|
|
17
17
|
label: string;
|
|
18
18
|
/**
|
|
@@ -22,7 +22,7 @@ export interface PoPopupAction {
|
|
|
22
22
|
*
|
|
23
23
|
* Ação que será executada, sendo possível passar o nome ou a referência da função.
|
|
24
24
|
*
|
|
25
|
-
*
|
|
25
|
+
* A action também pode ser executada para o agrupador de subitens quando a ação possuir `subItems`.
|
|
26
26
|
*
|
|
27
27
|
* > Para que a função seja executada no contexto do componente, utilize *bind*:
|
|
28
28
|
* `action: this.myFunction.bind(this)`
|
|
@@ -78,8 +78,9 @@ export interface PoPopupAction {
|
|
|
78
78
|
*
|
|
79
79
|
* URL para redirecionamento. Aceita rotas internas e links externos.
|
|
80
80
|
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
81
|
+
* A url também pode ser configurada para o agrupador de subitens.
|
|
82
|
+
* Entretanto, quando a `url` é informada em um agrupador, o clique **não abrirá os subitens**, pois o item será
|
|
83
|
+
* tratado como um link e o redirecionamento terá prioridade sobre a exibição da lista.
|
|
83
84
|
*
|
|
84
85
|
* > Quando informada, tem prioridade sobre a propriedade `action`.
|
|
85
86
|
*/
|
|
@@ -103,5 +104,22 @@ export interface PoPopupAction {
|
|
|
103
104
|
*/
|
|
104
105
|
visible?: boolean | Function;
|
|
105
106
|
$id?: string;
|
|
107
|
+
/**
|
|
108
|
+
* @optional
|
|
109
|
+
*
|
|
110
|
+
* @description
|
|
111
|
+
*
|
|
112
|
+
* Define uma lista de subitens para criação de menus aninhados.
|
|
113
|
+
*
|
|
114
|
+
* Ao definir esta propriedade, o item exibirá um ícone indicador de subnível.
|
|
115
|
+
* Recomenda-se utilizar no máximo três níveis hierárquicos para garantir a usabilidade.
|
|
116
|
+
*
|
|
117
|
+
* > As propriedades `disabled`, `type` e `visible` não são aplicadas visualmente ao item agrupador.
|
|
118
|
+
*
|
|
119
|
+
* > Quando `url` é informada em um agrupador, o redirecionamento terá prioridade e os subitens não serão abertos.
|
|
120
|
+
*
|
|
121
|
+
* > Em subníveis aninhados, o `icon` do agrupador é substituído pelo indicador de navegação (seta).
|
|
122
|
+
*/
|
|
123
|
+
subItems?: Array<PoPopupAction>;
|
|
106
124
|
$subItemTemplate?: TemplateRef<any>;
|
|
107
125
|
}
|
|
@@ -6,6 +6,9 @@ import { PoPopupAction } from './po-popup-action.interface';
|
|
|
6
6
|
* O componente `po-popup` é um container pequeno recomendado para ações de navegação:
|
|
7
7
|
* Ele abre sobreposto aos outros componentes.
|
|
8
8
|
*
|
|
9
|
+
* Suporta subníveis (submenus) quando as ações possuem a propriedade `subItems`,
|
|
10
|
+
* habilitando navegação hierárquica automaticamente.
|
|
11
|
+
*
|
|
9
12
|
* É possível escolher as posições do `po-popup` em relação ao componente alvo, para isto veja a propriedade `p-position`.
|
|
10
13
|
*
|
|
11
14
|
* Também é possível informar um _template_ _header_ para o `po-popup`, que será exibido acima das ações.
|
|
@@ -75,7 +78,7 @@ export declare class PoPopupBaseComponent {
|
|
|
75
78
|
private _position?;
|
|
76
79
|
private _size?;
|
|
77
80
|
private _target;
|
|
78
|
-
|
|
81
|
+
get computedListboxSubitems(): boolean;
|
|
79
82
|
templateIcon: boolean;
|
|
80
83
|
/** Lista de ações que serão exibidas no componente. */
|
|
81
84
|
set actions(value: Array<PoPopupAction>);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.16.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.4",
|
|
25
|
-
"@po-ui/style": "21.
|
|
26
|
-
"@po-ui/ng-schematics": "21.
|
|
25
|
+
"@po-ui/style": "21.16.0",
|
|
26
|
+
"@po-ui/ng-schematics": "21.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|