@po-ui/ng-components 20.0.0 → 20.2.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 +76 -31
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/index.d.ts +66 -6
- package/lib/components/po-chart/interfaces/po-chart-serie.interface.d.ts +33 -2
- package/lib/components/po-chart/po-chart.component.d.ts +3 -0
- package/lib/components/po-navbar/interfaces/po-navbar-icon-action.interface.d.ts +2 -0
- package/lib/components/po-navbar/interfaces/po-navbar-item.interface.d.ts +2 -0
- package/lib/components/po-navbar/interfaces/po-navbar-literals.interface.d.ts +2 -0
- package/lib/components/po-navbar/po-navbar-base.component.d.ts +12 -0
- package/lib/components/po-navbar/po-navbar.component.d.ts +2 -0
- package/lib/components/po-navbar/po-navbar.module.d.ts +7 -2
- package/lib/directives/po-tooltip/po-tooltip.directive.d.ts +3 -1
- package/package.json +4 -4
- package/po-ui-ng-components-20.2.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/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/po-ui-ng-components-20.0.0.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { EventEmitter, ElementRef, TemplateRef, OnInit, OnDestroy, Renderer2, QueryList, OnChanges, ChangeDetectorRef, SimpleChanges, AfterViewInit, DoCheck, ComponentFactoryResolver, ApplicationRef, Injector, ComponentRef, IterableDiffers, AfterViewChecked, PipeTransform, ViewContainerRef, AfterContentInit, SimpleChange, RendererFactory2, InjectionToken, ModuleWithProviders } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/common';
|
|
4
4
|
import { DecimalPipe, TitleCasePipe, CurrencyPipe, DatePipe } from '@angular/common';
|
|
5
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
5
6
|
import * as rxjs from 'rxjs';
|
|
6
7
|
import { Observable, Subject, Subscription } from 'rxjs';
|
|
7
8
|
import * as i4 from '@angular/router';
|
|
8
9
|
import { Router } from '@angular/router';
|
|
9
|
-
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
10
10
|
import * as i3 from '@angular/forms';
|
|
11
11
|
import { ControlValueAccessor, AbstractControl, Validator, ValidationErrors, NgForm } from '@angular/forms';
|
|
12
12
|
import * as i8 from '@angular/cdk/listbox';
|
|
@@ -975,6 +975,7 @@ declare class PoTooltipDirective extends PoTooltipBaseDirective implements OnIni
|
|
|
975
975
|
private elementRef;
|
|
976
976
|
private renderer;
|
|
977
977
|
private poControlPosition;
|
|
978
|
+
private readonly sanitizer;
|
|
978
979
|
private arrowDirection;
|
|
979
980
|
private divArrow;
|
|
980
981
|
private divContent;
|
|
@@ -983,7 +984,7 @@ declare class PoTooltipDirective extends PoTooltipBaseDirective implements OnIni
|
|
|
983
984
|
private textContent;
|
|
984
985
|
private tooltipOffset;
|
|
985
986
|
private eventListenerFunction;
|
|
986
|
-
constructor(elementRef: ElementRef, renderer: Renderer2, poControlPosition: PoTooltipControlPositionService);
|
|
987
|
+
constructor(elementRef: ElementRef, renderer: Renderer2, poControlPosition: PoTooltipControlPositionService, sanitizer: DomSanitizer);
|
|
987
988
|
ngOnDestroy(): void;
|
|
988
989
|
ngOnInit(): void;
|
|
989
990
|
onMouseEnter(): void;
|
|
@@ -10447,13 +10448,44 @@ interface PoChartSerie {
|
|
|
10447
10448
|
*
|
|
10448
10449
|
* @description
|
|
10449
10450
|
*
|
|
10450
|
-
* Define o texto que será exibido ao passar o mouse por cima das séries do *chart*.
|
|
10451
|
+
* Define o texto que será exibido na tooltip ao passar o mouse por cima das séries do *chart*.
|
|
10452
|
+
*
|
|
10453
|
+
* Formatos aceitos:
|
|
10454
|
+
*
|
|
10455
|
+
* - **string**: pode conter marcadores dinâmicos e HTML simples.
|
|
10456
|
+
* - Marcadores disponíveis:
|
|
10457
|
+
* - `{name}` → Nome do item/categoria.
|
|
10458
|
+
* - `{seriesName}` → Nome da série.
|
|
10459
|
+
* - `{value}` → Valor correspondente.
|
|
10460
|
+
*
|
|
10461
|
+
* - **function**: função que recebe o objeto `params` e deve retornar uma *string* com o conteúdo da tooltip.
|
|
10462
|
+
*
|
|
10463
|
+
* > É possível utilizar marcação HTML simples (`<b>`, `<i>`, `<br>`, `<hr>`, etc.) que será interpretada via `innerHTML`.
|
|
10464
|
+
*
|
|
10465
|
+
* > Formatação customizada (será convertido internamente para HTML):
|
|
10466
|
+
* - `\n` → quebra de linha (`<br>`).
|
|
10467
|
+
* - `**texto**` → negrito (`<b>`).
|
|
10468
|
+
* - `__texto__` → itálico (`<i>`).
|
|
10451
10469
|
*
|
|
10452
10470
|
* > Caso não seja informado um valor para o *tooltip*, será exibido da seguinte forma:
|
|
10453
10471
|
* - `donut`: `label`: valor proporcional ao total em porcentagem.
|
|
10454
10472
|
* - `area`, `bar`, `column`, `line` e `pie`: `label`: `data`.
|
|
10473
|
+
*
|
|
10474
|
+
* ### Exemplos:
|
|
10475
|
+
*
|
|
10476
|
+
* **Usando string com placeholders:**
|
|
10477
|
+
* ```ts
|
|
10478
|
+
* tooltip: 'Ano: {name}<br>Série: {seriesName}<br>Valor: <b>{value}</b>'
|
|
10479
|
+
* ```
|
|
10480
|
+
*
|
|
10481
|
+
* **Usando função de callback:**
|
|
10482
|
+
* ```ts
|
|
10483
|
+
* tooltip = (params) => {
|
|
10484
|
+
* return `Ano: ${params.name}<br><i>Valor:</i> ${params.value}`;
|
|
10485
|
+
* }
|
|
10486
|
+
* ```
|
|
10455
10487
|
*/
|
|
10456
|
-
tooltip?: string;
|
|
10488
|
+
tooltip?: string | ((params: any) => string);
|
|
10457
10489
|
/**
|
|
10458
10490
|
* @optional
|
|
10459
10491
|
*
|
|
@@ -10872,12 +10904,15 @@ declare class PoChartComponent extends PoChartBaseComponent implements OnInit, A
|
|
|
10872
10904
|
getCSSVariable(variable: string, selector?: string): string;
|
|
10873
10905
|
openModal(): Promise<void>;
|
|
10874
10906
|
toggleExpand(): void;
|
|
10907
|
+
private applyStringFormatter;
|
|
10875
10908
|
private observeContainerResize;
|
|
10876
10909
|
private checkShowCEcharts;
|
|
10877
10910
|
private setInitialPopupActions;
|
|
10878
10911
|
private setHeightProperties;
|
|
10879
10912
|
private initECharts;
|
|
10880
10913
|
private initEChartsEvents;
|
|
10914
|
+
private parseTooltipText;
|
|
10915
|
+
private resolveCustomTooltip;
|
|
10881
10916
|
private setTooltipProperties;
|
|
10882
10917
|
private setChartsProperties;
|
|
10883
10918
|
private setOptions;
|
|
@@ -24415,6 +24450,8 @@ declare class PoMenuPanelModule {
|
|
|
24415
24450
|
}
|
|
24416
24451
|
|
|
24417
24452
|
/**
|
|
24453
|
+
* @deprecated v23.x.x
|
|
24454
|
+
*
|
|
24418
24455
|
* @usedBy PoNavbarComponent
|
|
24419
24456
|
*
|
|
24420
24457
|
* @description
|
|
@@ -24470,6 +24507,8 @@ interface PoNavbarIconAction {
|
|
|
24470
24507
|
}
|
|
24471
24508
|
|
|
24472
24509
|
/**
|
|
24510
|
+
* @deprecated v23.x.x
|
|
24511
|
+
*
|
|
24473
24512
|
* @usedBy PoNavbarComponent
|
|
24474
24513
|
*
|
|
24475
24514
|
* @description
|
|
@@ -24492,6 +24531,8 @@ interface PoNavbarItem {
|
|
|
24492
24531
|
}
|
|
24493
24532
|
|
|
24494
24533
|
/**
|
|
24534
|
+
* @deprecated v23.x.x
|
|
24535
|
+
*
|
|
24495
24536
|
* @usedBy PoNavbarComponent
|
|
24496
24537
|
*
|
|
24497
24538
|
* @description
|
|
@@ -24523,6 +24564,8 @@ declare abstract class PoNavbarBaseComponent {
|
|
|
24523
24564
|
private _shadow;
|
|
24524
24565
|
private language;
|
|
24525
24566
|
/**
|
|
24567
|
+
* @deprecated v23.x.x
|
|
24568
|
+
*
|
|
24526
24569
|
* @optional
|
|
24527
24570
|
*
|
|
24528
24571
|
* @description
|
|
@@ -24532,6 +24575,8 @@ declare abstract class PoNavbarBaseComponent {
|
|
|
24532
24575
|
set iconActions(value: Array<PoNavbarIconAction>);
|
|
24533
24576
|
get iconActions(): Array<PoNavbarIconAction>;
|
|
24534
24577
|
/**
|
|
24578
|
+
* @deprecated v23.x.x
|
|
24579
|
+
*
|
|
24535
24580
|
* @optional
|
|
24536
24581
|
*
|
|
24537
24582
|
* @description
|
|
@@ -24541,6 +24586,8 @@ declare abstract class PoNavbarBaseComponent {
|
|
|
24541
24586
|
set items(value: Array<PoNavbarItem>);
|
|
24542
24587
|
get items(): Array<PoNavbarItem>;
|
|
24543
24588
|
/**
|
|
24589
|
+
* @deprecated v23.x.x
|
|
24590
|
+
*
|
|
24544
24591
|
* @optional
|
|
24545
24592
|
*
|
|
24546
24593
|
* @description
|
|
@@ -24569,6 +24616,8 @@ declare abstract class PoNavbarBaseComponent {
|
|
|
24569
24616
|
set literals(value: PoNavbarLiterals);
|
|
24570
24617
|
get literals(): PoNavbarLiterals;
|
|
24571
24618
|
/**
|
|
24619
|
+
* @deprecated v23.x.x
|
|
24620
|
+
*
|
|
24572
24621
|
* @optional
|
|
24573
24622
|
*
|
|
24574
24623
|
* @description
|
|
@@ -24578,6 +24627,8 @@ declare abstract class PoNavbarBaseComponent {
|
|
|
24578
24627
|
set logo(value: string);
|
|
24579
24628
|
get logo(): string;
|
|
24580
24629
|
/**
|
|
24630
|
+
* @deprecated v23.x.x
|
|
24631
|
+
*
|
|
24581
24632
|
* @optional
|
|
24582
24633
|
*
|
|
24583
24634
|
* @description
|
|
@@ -24591,6 +24642,8 @@ declare abstract class PoNavbarBaseComponent {
|
|
|
24591
24642
|
*/
|
|
24592
24643
|
logoAlt?: string;
|
|
24593
24644
|
/**
|
|
24645
|
+
* @deprecated v23.x.x
|
|
24646
|
+
*
|
|
24594
24647
|
* @optional
|
|
24595
24648
|
*
|
|
24596
24649
|
* @description
|
|
@@ -24624,6 +24677,8 @@ declare class PoNavbarItemsComponent implements OnInit, OnDestroy {
|
|
|
24624
24677
|
}
|
|
24625
24678
|
|
|
24626
24679
|
/**
|
|
24680
|
+
* @deprecated v23.x.x use `po-header`
|
|
24681
|
+
*
|
|
24627
24682
|
* @docsExtends PoNavbarBaseComponent
|
|
24628
24683
|
*/
|
|
24629
24684
|
declare class PoNavbarComponent extends PoNavbarBaseComponent implements AfterViewInit, OnDestroy, OnInit {
|
|
@@ -24758,12 +24813,17 @@ declare class PoNavbarItemsModule {
|
|
|
24758
24813
|
}
|
|
24759
24814
|
|
|
24760
24815
|
/**
|
|
24816
|
+
* @deprecated v23.x.x use `po-header`
|
|
24817
|
+
*
|
|
24761
24818
|
* @description
|
|
24762
24819
|
*
|
|
24763
24820
|
* Módulo do componente `po-navbar`.
|
|
24764
|
-
*
|
|
24821
|
+
* > Esse componente está **depreciado** e será removido na `v23.x.x`. Recomendamos utilizar o componente
|
|
24822
|
+
* [po-header](https://po-ui.io/documentation/po-header), que oferece compatibilidade com todas as funcionalidades do
|
|
24823
|
+
* `po-navbar`, além de maior flexibilidade, usabilidade e acessibilidade.
|
|
24824
|
+
* >
|
|
24765
24825
|
* > Para o correto funcionamento do componente `po-navbar`, deve ser importado o módulo `BrowserAnimationsModule` no
|
|
24766
|
-
*
|
|
24826
|
+
* módulo principal da sua aplicação.
|
|
24767
24827
|
*
|
|
24768
24828
|
* Módulo da aplicação:
|
|
24769
24829
|
* ```
|
|
@@ -50,13 +50,44 @@ export interface PoChartSerie {
|
|
|
50
50
|
*
|
|
51
51
|
* @description
|
|
52
52
|
*
|
|
53
|
-
* Define o texto que será exibido ao passar o mouse por cima das séries do *chart*.
|
|
53
|
+
* Define o texto que será exibido na tooltip ao passar o mouse por cima das séries do *chart*.
|
|
54
|
+
*
|
|
55
|
+
* Formatos aceitos:
|
|
56
|
+
*
|
|
57
|
+
* - **string**: pode conter marcadores dinâmicos e HTML simples.
|
|
58
|
+
* - Marcadores disponíveis:
|
|
59
|
+
* - `{name}` → Nome do item/categoria.
|
|
60
|
+
* - `{seriesName}` → Nome da série.
|
|
61
|
+
* - `{value}` → Valor correspondente.
|
|
62
|
+
*
|
|
63
|
+
* - **function**: função que recebe o objeto `params` e deve retornar uma *string* com o conteúdo da tooltip.
|
|
64
|
+
*
|
|
65
|
+
* > É possível utilizar marcação HTML simples (`<b>`, `<i>`, `<br>`, `<hr>`, etc.) que será interpretada via `innerHTML`.
|
|
66
|
+
*
|
|
67
|
+
* > Formatação customizada (será convertido internamente para HTML):
|
|
68
|
+
* - `\n` → quebra de linha (`<br>`).
|
|
69
|
+
* - `**texto**` → negrito (`<b>`).
|
|
70
|
+
* - `__texto__` → itálico (`<i>`).
|
|
54
71
|
*
|
|
55
72
|
* > Caso não seja informado um valor para o *tooltip*, será exibido da seguinte forma:
|
|
56
73
|
* - `donut`: `label`: valor proporcional ao total em porcentagem.
|
|
57
74
|
* - `area`, `bar`, `column`, `line` e `pie`: `label`: `data`.
|
|
75
|
+
*
|
|
76
|
+
* ### Exemplos:
|
|
77
|
+
*
|
|
78
|
+
* **Usando string com placeholders:**
|
|
79
|
+
* ```ts
|
|
80
|
+
* tooltip: 'Ano: {name}<br>Série: {seriesName}<br>Valor: <b>{value}</b>'
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* **Usando função de callback:**
|
|
84
|
+
* ```ts
|
|
85
|
+
* tooltip = (params) => {
|
|
86
|
+
* return `Ano: ${params.name}<br><i>Valor:</i> ${params.value}`;
|
|
87
|
+
* }
|
|
88
|
+
* ```
|
|
58
89
|
*/
|
|
59
|
-
tooltip?: string;
|
|
90
|
+
tooltip?: string | ((params: any) => string);
|
|
60
91
|
/**
|
|
61
92
|
* @optional
|
|
62
93
|
*
|
|
@@ -98,12 +98,15 @@ export declare class PoChartComponent extends PoChartBaseComponent implements On
|
|
|
98
98
|
getCSSVariable(variable: string, selector?: string): string;
|
|
99
99
|
openModal(): Promise<void>;
|
|
100
100
|
toggleExpand(): void;
|
|
101
|
+
private applyStringFormatter;
|
|
101
102
|
private observeContainerResize;
|
|
102
103
|
private checkShowCEcharts;
|
|
103
104
|
private setInitialPopupActions;
|
|
104
105
|
private setHeightProperties;
|
|
105
106
|
private initECharts;
|
|
106
107
|
private initEChartsEvents;
|
|
108
|
+
private parseTooltipText;
|
|
109
|
+
private resolveCustomTooltip;
|
|
107
110
|
private setTooltipProperties;
|
|
108
111
|
private setChartsProperties;
|
|
109
112
|
private setOptions;
|
|
@@ -29,6 +29,8 @@ export declare abstract class PoNavbarBaseComponent {
|
|
|
29
29
|
private _shadow;
|
|
30
30
|
private language;
|
|
31
31
|
/**
|
|
32
|
+
* @deprecated v23.x.x
|
|
33
|
+
*
|
|
32
34
|
* @optional
|
|
33
35
|
*
|
|
34
36
|
* @description
|
|
@@ -38,6 +40,8 @@ export declare abstract class PoNavbarBaseComponent {
|
|
|
38
40
|
set iconActions(value: Array<PoNavbarIconAction>);
|
|
39
41
|
get iconActions(): Array<PoNavbarIconAction>;
|
|
40
42
|
/**
|
|
43
|
+
* @deprecated v23.x.x
|
|
44
|
+
*
|
|
41
45
|
* @optional
|
|
42
46
|
*
|
|
43
47
|
* @description
|
|
@@ -47,6 +51,8 @@ export declare abstract class PoNavbarBaseComponent {
|
|
|
47
51
|
set items(value: Array<PoNavbarItem>);
|
|
48
52
|
get items(): Array<PoNavbarItem>;
|
|
49
53
|
/**
|
|
54
|
+
* @deprecated v23.x.x
|
|
55
|
+
*
|
|
50
56
|
* @optional
|
|
51
57
|
*
|
|
52
58
|
* @description
|
|
@@ -75,6 +81,8 @@ export declare abstract class PoNavbarBaseComponent {
|
|
|
75
81
|
set literals(value: PoNavbarLiterals);
|
|
76
82
|
get literals(): PoNavbarLiterals;
|
|
77
83
|
/**
|
|
84
|
+
* @deprecated v23.x.x
|
|
85
|
+
*
|
|
78
86
|
* @optional
|
|
79
87
|
*
|
|
80
88
|
* @description
|
|
@@ -84,6 +92,8 @@ export declare abstract class PoNavbarBaseComponent {
|
|
|
84
92
|
set logo(value: string);
|
|
85
93
|
get logo(): string;
|
|
86
94
|
/**
|
|
95
|
+
* @deprecated v23.x.x
|
|
96
|
+
*
|
|
87
97
|
* @optional
|
|
88
98
|
*
|
|
89
99
|
* @description
|
|
@@ -97,6 +107,8 @@ export declare abstract class PoNavbarBaseComponent {
|
|
|
97
107
|
*/
|
|
98
108
|
logoAlt?: string;
|
|
99
109
|
/**
|
|
110
|
+
* @deprecated v23.x.x
|
|
111
|
+
*
|
|
100
112
|
* @optional
|
|
101
113
|
*
|
|
102
114
|
* @description
|
|
@@ -3,6 +3,8 @@ import { PoMenuComponent } from '../po-menu/po-menu.component';
|
|
|
3
3
|
import { PoNavbarBaseComponent } from './po-navbar-base.component';
|
|
4
4
|
import { PoNavbarItemsComponent } from './po-navbar-items/po-navbar-items.component';
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated v23.x.x use `po-header`
|
|
7
|
+
*
|
|
6
8
|
* @docsExtends PoNavbarBaseComponent
|
|
7
9
|
*/
|
|
8
10
|
export declare class PoNavbarComponent extends PoNavbarBaseComponent implements AfterViewInit, OnDestroy, OnInit {
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* @deprecated v23.x.x use `po-header`
|
|
3
|
+
*
|
|
2
4
|
* @description
|
|
3
5
|
*
|
|
4
6
|
* Módulo do componente `po-navbar`.
|
|
5
|
-
*
|
|
7
|
+
* > Esse componente está **depreciado** e será removido na `v23.x.x`. Recomendamos utilizar o componente
|
|
8
|
+
* [po-header](https://po-ui.io/documentation/po-header), que oferece compatibilidade com todas as funcionalidades do
|
|
9
|
+
* `po-navbar`, além de maior flexibilidade, usabilidade e acessibilidade.
|
|
10
|
+
* >
|
|
6
11
|
* > Para o correto funcionamento do componente `po-navbar`, deve ser importado o módulo `BrowserAnimationsModule` no
|
|
7
|
-
*
|
|
12
|
+
* módulo principal da sua aplicação.
|
|
8
13
|
*
|
|
9
14
|
* Módulo da aplicação:
|
|
10
15
|
* ```
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ElementRef, OnInit, Renderer2, OnDestroy } from '@angular/core';
|
|
2
2
|
import { PoTooltipBaseDirective } from './po-tooltip-base.directive';
|
|
3
3
|
import { PoTooltipControlPositionService } from './po-tooltip-control-position.service';
|
|
4
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
5
|
/**
|
|
5
6
|
* @docsExtends PoTooltipBaseDirective
|
|
6
7
|
*
|
|
@@ -26,6 +27,7 @@ export declare class PoTooltipDirective extends PoTooltipBaseDirective implement
|
|
|
26
27
|
private elementRef;
|
|
27
28
|
private renderer;
|
|
28
29
|
private poControlPosition;
|
|
30
|
+
private readonly sanitizer;
|
|
29
31
|
private arrowDirection;
|
|
30
32
|
private divArrow;
|
|
31
33
|
private divContent;
|
|
@@ -34,7 +36,7 @@ export declare class PoTooltipDirective extends PoTooltipBaseDirective implement
|
|
|
34
36
|
private textContent;
|
|
35
37
|
private tooltipOffset;
|
|
36
38
|
private eventListenerFunction;
|
|
37
|
-
constructor(elementRef: ElementRef, renderer: Renderer2, poControlPosition: PoTooltipControlPositionService);
|
|
39
|
+
constructor(elementRef: ElementRef, renderer: Renderer2, poControlPosition: PoTooltipControlPositionService, sanitizer: DomSanitizer);
|
|
38
40
|
ngOnDestroy(): void;
|
|
39
41
|
ngOnInit(): void;
|
|
40
42
|
onMouseEnter(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.2.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": "~20.0.3",
|
|
25
|
-
"@po-ui/style": "20.
|
|
26
|
-
"@po-ui/ng-schematics": "20.
|
|
25
|
+
"@po-ui/style": "20.2.0",
|
|
26
|
+
"@po-ui/ng-schematics": "20.2.0",
|
|
27
27
|
"echarts": "^5.6.0",
|
|
28
28
|
"tslib": "^2.3.0"
|
|
29
29
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@angular/platform-browser-dynamic": "^20",
|
|
39
39
|
"@angular/router": "^20",
|
|
40
40
|
"@angular-devkit/schematics": "^20",
|
|
41
|
-
"@po-ui/style": "20.
|
|
41
|
+
"@po-ui/style": "20.2.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', '20.
|
|
21
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '20.2.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)('20.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.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)('20.
|
|
14
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.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)('20.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.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)('20.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.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)('20.
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('20.
|
|
47
|
+
(0, package_config_1.updatePackageJson)('20.2.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)('20.
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('20.
|
|
47
|
+
(0, package_config_1.updatePackageJson)('20.2.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('20.
|
|
13
|
+
updatePackageJson('20.2.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)('20.
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('20.
|
|
47
|
+
(0, package_config_1.updatePackageJson)('20.2.0', changes_1.updateDepedenciesVersion),
|
|
48
48
|
addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
|
|
49
49
|
addProviderToAppModule(options, newProviderDictionary),
|
|
50
50
|
updateAppConfigFileRule(),
|
|
@@ -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)('20.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.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)('20.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.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)('20.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.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)('20.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.2.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
Binary file
|