@po-ui/ng-components 18.3.0 → 18.5.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/esm2022/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.mjs +27 -2
- package/esm2022/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.component.mjs +7 -3
- package/esm2022/lib/components/po-field/po-combo/po-combo-base.component.mjs +2 -1
- package/esm2022/lib/components/po-field/po-combo/po-combo.component.mjs +66 -47
- package/esm2022/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.mjs +8 -4
- package/esm2022/lib/components/po-field/po-multiselect/po-multiselect.component.mjs +52 -34
- package/esm2022/lib/components/po-listbox/po-listbox-base.component.mjs +6 -2
- package/esm2022/lib/components/po-listbox/po-listbox.component.mjs +23 -5
- package/esm2022/lib/components/po-loading/po-loading-overlay/po-loading-overlay-base.component.mjs +10 -4
- package/esm2022/lib/components/po-tabs/po-tabs.component.mjs +2 -3
- package/fesm2022/po-ui-ng-components.mjs +217 -119
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.d.ts +23 -1
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.component.d.ts +1 -0
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +1 -0
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +3 -0
- package/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.d.ts +2 -1
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +3 -0
- package/lib/components/po-listbox/po-listbox-base.component.d.ts +2 -1
- package/lib/components/po-listbox/po-listbox.component.d.ts +2 -0
- package/lib/components/po-loading/po-loading-overlay/po-loading-overlay-base.component.d.ts +9 -3
- package/package.json +4 -4
- package/po-ui-ng-components-18.5.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/v2/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/po-ui-ng-components-18.3.0.tgz +0 -0
|
@@ -96,6 +96,28 @@ export declare class PoDynamicViewBaseComponent extends PoDynamicSharedBase {
|
|
|
96
96
|
*/
|
|
97
97
|
set showAllValue(value: boolean);
|
|
98
98
|
get showAllValue(): boolean;
|
|
99
|
+
/**
|
|
100
|
+
* @optional
|
|
101
|
+
*
|
|
102
|
+
* @description
|
|
103
|
+
*
|
|
104
|
+
* Permite a quebra de linha no texto do `p-value`, aplicando-a onde há `\n`.
|
|
105
|
+
*
|
|
106
|
+
* ```
|
|
107
|
+
* <po-dynamic-view
|
|
108
|
+
* [p-value]="{ description: 'Primeira linha\nSegunda linha' }"
|
|
109
|
+
* [p-text-wrap]="true"
|
|
110
|
+
* ></po-dynamic-view>
|
|
111
|
+
* ```
|
|
112
|
+
*
|
|
113
|
+
* Saída:
|
|
114
|
+
* ```
|
|
115
|
+
* Primeira linha
|
|
116
|
+
* Segunda linha
|
|
117
|
+
* ```
|
|
118
|
+
* @default `false`
|
|
119
|
+
*/
|
|
120
|
+
textWrap: boolean;
|
|
99
121
|
/**
|
|
100
122
|
* @description
|
|
101
123
|
*
|
|
@@ -168,5 +190,5 @@ export declare class PoDynamicViewBaseComponent extends PoDynamicSharedBase {
|
|
|
168
190
|
private transformValue;
|
|
169
191
|
private formatField;
|
|
170
192
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoDynamicViewBaseComponent, never>;
|
|
171
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoDynamicViewBaseComponent, never, never, { "load": { "alias": "p-load"; "required": false; }; "fields": { "alias": "p-fields"; "required": false; }; "showAllValue": { "alias": "p-show-all-value"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; }, {}, never, never, false, never>;
|
|
193
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoDynamicViewBaseComponent, never, never, { "load": { "alias": "p-load"; "required": false; }; "fields": { "alias": "p-fields"; "required": false; }; "showAllValue": { "alias": "p-show-all-value"; "required": false; }; "textWrap": { "alias": "p-text-wrap"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; }, {}, never, never, false, never>;
|
|
172
194
|
}
|
|
@@ -38,6 +38,7 @@ export declare class PoDynamicViewComponent extends PoDynamicViewBaseComponent i
|
|
|
38
38
|
ngOnChanges(changes: SimpleChanges): void;
|
|
39
39
|
ngOnInit(): void;
|
|
40
40
|
setFieldValue(field: any): any;
|
|
41
|
+
protected containsLineBreak(value: string): boolean;
|
|
41
42
|
private getValuesAndFieldsFromLoad;
|
|
42
43
|
private getVisibleFields;
|
|
43
44
|
private setFieldOnLoad;
|
|
@@ -46,6 +46,7 @@ import * as i0 from "@angular/core";
|
|
|
46
46
|
* | `--color` | Cor principal do Combo | `var(--color-neutral-dark-70)` |
|
|
47
47
|
* | `--background` | Cor de background | `var(--color-neutral-light-05)` |
|
|
48
48
|
* | `--border-radius` | Contém o valor do raio dos cantos do elemento | `var(--border-width-lg)` |
|
|
49
|
+
* | `--min-width` | Largura mínima do combo | `150px`
|
|
49
50
|
* | **Hover** | | |
|
|
50
51
|
* | `--color-hover` | Cor principal no estado hover | `var(--color-action-hover)` |
|
|
51
52
|
* | `--background-hover` | Cor de background no estado hover | `var(--color-brand-01-lightest)` |
|
|
@@ -63,6 +63,7 @@ export declare class PoComboComponent extends PoComboBaseComponent implements Af
|
|
|
63
63
|
private changeDetector;
|
|
64
64
|
private controlPosition;
|
|
65
65
|
comboOptionTemplate: PoComboOptionTemplateDirective;
|
|
66
|
+
outerContainer: ElementRef;
|
|
66
67
|
containerElement: ElementRef;
|
|
67
68
|
contentElement: ElementRef;
|
|
68
69
|
iconElement: ElementRef;
|
|
@@ -76,6 +77,7 @@ export declare class PoComboComponent extends PoComboBaseComponent implements Af
|
|
|
76
77
|
scrollTop: number;
|
|
77
78
|
shouldMarkLetters: boolean;
|
|
78
79
|
infiniteLoading: boolean;
|
|
80
|
+
containerWidth: number;
|
|
79
81
|
private _isServerSearching;
|
|
80
82
|
private lastKey;
|
|
81
83
|
private clickoutListener;
|
|
@@ -140,6 +142,7 @@ export declare class PoComboComponent extends PoComboBaseComponent implements Af
|
|
|
140
142
|
private open;
|
|
141
143
|
private removeListeners;
|
|
142
144
|
private setContainerPosition;
|
|
145
|
+
private setContainerWidth;
|
|
143
146
|
private setOptions;
|
|
144
147
|
private prepareOptions;
|
|
145
148
|
private setPage;
|
|
@@ -31,6 +31,7 @@ export declare class PoMultiselectDropdownComponent {
|
|
|
31
31
|
fieldValue: string;
|
|
32
32
|
fieldLabel: string;
|
|
33
33
|
multiselectTemplate: TemplateRef<any> | any;
|
|
34
|
+
containerWidth: number;
|
|
34
35
|
/** Evento disparado a cada tecla digitada na pesquisa. */
|
|
35
36
|
changeSearch: EventEmitter<any>;
|
|
36
37
|
/** Evento disparado a cada alteração na lista das opções selecionadas. */
|
|
@@ -60,5 +61,5 @@ export declare class PoMultiselectDropdownComponent {
|
|
|
60
61
|
controlVisibility(toOpen: any): void;
|
|
61
62
|
private uniqueSelectedOptions;
|
|
62
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoMultiselectDropdownComponent, never>;
|
|
63
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoMultiselectDropdownComponent, "po-multiselect-dropdown", never, { "isServerSearching": { "alias": "p-searching"; "required": false; }; "hideSearch": { "alias": "p-hide-search"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "placeholderSearch": { "alias": "p-placeholder-search"; "required": false; }; "selectedOptions": { "alias": "p-selected-options"; "required": false; }; "options": { "alias": "p-options"; "required": false; }; "visibleOptions": { "alias": "p-visible-options"; "required": false; }; "hideSelectAll": { "alias": "p-hide-select-all"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "multiselectTemplate": { "alias": "p-multiselect-template"; "required": false; }; }, { "changeSearch": "p-change-search"; "change": "p-change"; "closeDropdown": "p-close-dropdown"; }, never, never, false, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoMultiselectDropdownComponent, "po-multiselect-dropdown", never, { "isServerSearching": { "alias": "p-searching"; "required": false; }; "hideSearch": { "alias": "p-hide-search"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "placeholderSearch": { "alias": "p-placeholder-search"; "required": false; }; "selectedOptions": { "alias": "p-selected-options"; "required": false; }; "options": { "alias": "p-options"; "required": false; }; "visibleOptions": { "alias": "p-visible-options"; "required": false; }; "hideSelectAll": { "alias": "p-hide-select-all"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "multiselectTemplate": { "alias": "p-multiselect-template"; "required": false; }; "containerWidth": { "alias": "p-container-width"; "required": false; }; }, { "changeSearch": "p-change-search"; "change": "p-change"; "closeDropdown": "p-close-dropdown"; }, never, never, false, never>;
|
|
64
65
|
}
|
|
@@ -60,6 +60,7 @@ export declare class PoMultiselectComponent extends PoMultiselectBaseComponent i
|
|
|
60
60
|
dropdown: any;
|
|
61
61
|
iconElement: ElementRef;
|
|
62
62
|
inputElement: ElementRef;
|
|
63
|
+
outerContainer: ElementRef;
|
|
63
64
|
literalsTag: any;
|
|
64
65
|
dropdownIcon: string;
|
|
65
66
|
dropdownOpen: boolean;
|
|
@@ -67,6 +68,7 @@ export declare class PoMultiselectComponent extends PoMultiselectBaseComponent i
|
|
|
67
68
|
hasMoreTag: boolean;
|
|
68
69
|
timeoutResize: any;
|
|
69
70
|
visibleElement: boolean;
|
|
71
|
+
containerWidth: number;
|
|
70
72
|
private subscription;
|
|
71
73
|
private enterCloseTag;
|
|
72
74
|
private initCalculateItems;
|
|
@@ -130,6 +132,7 @@ export declare class PoMultiselectComponent extends PoMultiselectBaseComponent i
|
|
|
130
132
|
private onScroll;
|
|
131
133
|
private open;
|
|
132
134
|
private removeListeners;
|
|
135
|
+
private setContainerWidth;
|
|
133
136
|
private setPositionDropdown;
|
|
134
137
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoMultiselectComponent, never>;
|
|
135
138
|
static ɵcmp: i0.ɵɵComponentDeclaration<PoMultiselectComponent, "po-multiselect", never, {}, {}, ["multiselectOptionTemplate"], never, false, never>;
|
|
@@ -62,12 +62,13 @@ export declare class PoListBoxBaseComponent {
|
|
|
62
62
|
shouldMarkLetters: boolean;
|
|
63
63
|
compareCache: boolean;
|
|
64
64
|
comboService: any;
|
|
65
|
+
containerWidth: number;
|
|
65
66
|
activatedTab: EventEmitter<any>;
|
|
66
67
|
clickTab: EventEmitter<any>;
|
|
67
68
|
changeStateTabs: EventEmitter<any>;
|
|
68
69
|
constructor(languageService: PoLanguageService);
|
|
69
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoListBoxBaseComponent, never>;
|
|
70
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoListBoxBaseComponent, never, never, { "visible": { "alias": "p-visible"; "required": false; }; "type": { "alias": "p-type"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "isTabs": { "alias": "p-is-tabs"; "required": false; }; "param": { "alias": "p-param"; "required": false; }; "checkboxAllValue": { "alias": "p-checkboxAllValue"; "required": false; }; "selectedOptions": { "alias": "p-selected-options"; "required": false; }; "selectedOption": { "alias": "p-selected-option"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "literalSearch": { "alias": "p-literal-search"; "required": false; }; "fieldValueSearch": { "alias": "p-field-value-search"; "required": false; }; "hideSearch": { "alias": "p-hide-search"; "required": false; }; "hideSelectAll": { "alias": "p-hide-select-all"; "required": false; }; "multiselectTemplate": { "alias": "p-multiselect-template"; "required": false; }; "template": { "alias": "p-template"; "required": false; }; "placeholderSearch": { "alias": "p-placeholder-search"; "required": false; }; "searchValue": { "alias": "p-search-value"; "required": false; }; "isServerSearching": { "alias": "p-is-searching"; "required": false; }; "infiniteLoading": { "alias": "p-infinite-loading"; "required": false; }; "infiniteScroll": { "alias": "p-infinite-scroll"; "required": false; }; "cache": { "alias": "p-cache"; "required": false; }; "infiniteScrollDistance": { "alias": "p-infinite-scroll-distance"; "required": false; }; "filterMode": { "alias": "p-filter-mode"; "required": false; }; "isFiltering": { "alias": "p-filtering"; "required": false; }; "shouldMarkLetters": { "alias": "p-should-mark-letter"; "required": false; }; "compareCache": { "alias": "p-compare-cache"; "required": false; }; "comboService": { "alias": "p-combo-service"; "required": false; }; }, { "selectItem": "p-select-item"; "closeEvent": "p-close"; "change": "p-change"; "selectCombo": "p-selectcombo-item"; "changeAll": "p-change-all"; "UpdateInfiniteScroll": "p-update-infinite-scroll"; "changeSearch": "p-change-search"; "activatedTab": "p-activated-tabs"; "clickTab": "p-click-tabs"; "changeStateTabs": "p-change-state-tabs"; }, never, never, false, never>;
|
|
71
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoListBoxBaseComponent, never, never, { "visible": { "alias": "p-visible"; "required": false; }; "type": { "alias": "p-type"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "isTabs": { "alias": "p-is-tabs"; "required": false; }; "param": { "alias": "p-param"; "required": false; }; "checkboxAllValue": { "alias": "p-checkboxAllValue"; "required": false; }; "selectedOptions": { "alias": "p-selected-options"; "required": false; }; "selectedOption": { "alias": "p-selected-option"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "literalSearch": { "alias": "p-literal-search"; "required": false; }; "fieldValueSearch": { "alias": "p-field-value-search"; "required": false; }; "hideSearch": { "alias": "p-hide-search"; "required": false; }; "hideSelectAll": { "alias": "p-hide-select-all"; "required": false; }; "multiselectTemplate": { "alias": "p-multiselect-template"; "required": false; }; "template": { "alias": "p-template"; "required": false; }; "placeholderSearch": { "alias": "p-placeholder-search"; "required": false; }; "searchValue": { "alias": "p-search-value"; "required": false; }; "isServerSearching": { "alias": "p-is-searching"; "required": false; }; "infiniteLoading": { "alias": "p-infinite-loading"; "required": false; }; "infiniteScroll": { "alias": "p-infinite-scroll"; "required": false; }; "cache": { "alias": "p-cache"; "required": false; }; "infiniteScrollDistance": { "alias": "p-infinite-scroll-distance"; "required": false; }; "filterMode": { "alias": "p-filter-mode"; "required": false; }; "isFiltering": { "alias": "p-filtering"; "required": false; }; "shouldMarkLetters": { "alias": "p-should-mark-letter"; "required": false; }; "compareCache": { "alias": "p-compare-cache"; "required": false; }; "comboService": { "alias": "p-combo-service"; "required": false; }; "containerWidth": { "alias": "p-container-width"; "required": false; }; }, { "selectItem": "p-select-item"; "closeEvent": "p-close"; "change": "p-change"; "selectCombo": "p-selectcombo-item"; "changeAll": "p-change-all"; "UpdateInfiniteScroll": "p-update-infinite-scroll"; "changeSearch": "p-change-search"; "activatedTab": "p-activated-tabs"; "clickTab": "p-click-tabs"; "changeStateTabs": "p-change-state-tabs"; }, never, never, false, never>;
|
|
71
72
|
static ngAcceptInputType_visible: any;
|
|
72
73
|
static ngAcceptInputType_isTabs: any;
|
|
73
74
|
static ngAcceptInputType_isServerSearching: any;
|
|
@@ -41,6 +41,8 @@ export declare class PoListBoxComponent extends PoListBoxBaseComponent implement
|
|
|
41
41
|
scrollListener(componentListner: HTMLElement): Observable<any>;
|
|
42
42
|
setFocus(): void;
|
|
43
43
|
protected checkInfiniteScroll(): void;
|
|
44
|
+
protected getSizeLoading(): "xs" | "sm" | "md";
|
|
45
|
+
protected getTextLoading(): "" | " ";
|
|
44
46
|
private hasInfiniteScroll;
|
|
45
47
|
checkTemplate(): number;
|
|
46
48
|
private includeInfiniteScroll;
|
|
@@ -46,7 +46,7 @@ export declare class PoLoadingOverlayBaseComponent {
|
|
|
46
46
|
*
|
|
47
47
|
* @description
|
|
48
48
|
*
|
|
49
|
-
* Define se o *overlay* será aplicado a um *container* ou
|
|
49
|
+
* Define se o *overlay* será aplicado a um *container* ou à página inteira.
|
|
50
50
|
*
|
|
51
51
|
* Para utilizar o componente como um *container*, o elemento pai deverá receber uma posição relativa, por exemplo:
|
|
52
52
|
*
|
|
@@ -72,7 +72,7 @@ export declare class PoLoadingOverlayBaseComponent {
|
|
|
72
72
|
*
|
|
73
73
|
* Texto a ser exibido no componente.
|
|
74
74
|
*
|
|
75
|
-
* > O valor padrão será traduzido acordo com o idioma configurado no [**PoI18n**](/documentation/po-i18n) ou navegador.
|
|
75
|
+
* > O valor padrão será traduzido de acordo com o idioma configurado no [**PoI18n**](/documentation/po-i18n) ou navegador.
|
|
76
76
|
*
|
|
77
77
|
* @default `Carregando`
|
|
78
78
|
*/
|
|
@@ -83,7 +83,13 @@ export declare class PoLoadingOverlayBaseComponent {
|
|
|
83
83
|
*
|
|
84
84
|
* @description
|
|
85
85
|
*
|
|
86
|
-
* Define o
|
|
86
|
+
* Define o tamanho do componente com base no tamanho do ícone de *loading*.
|
|
87
|
+
*
|
|
88
|
+
* Tamanhos disponíveis para o *loading*:
|
|
89
|
+
* - `xs`: 16px
|
|
90
|
+
* - `sm`: 24px
|
|
91
|
+
* - `md`: 48px
|
|
92
|
+
* - `lg`: 80px (valor padrão)
|
|
87
93
|
*
|
|
88
94
|
* @default `lg`
|
|
89
95
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.5.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": "~18.0.1",
|
|
25
|
-
"@po-ui/style": "18.
|
|
26
|
-
"@po-ui/ng-schematics": "18.
|
|
25
|
+
"@po-ui/style": "18.5.0",
|
|
26
|
+
"@po-ui/ng-schematics": "18.5.0",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@angular/platform-browser-dynamic": "^18",
|
|
38
38
|
"@angular/router": "^18",
|
|
39
39
|
"@angular-devkit/schematics": "^18",
|
|
40
|
-
"@po-ui/style": "18.
|
|
40
|
+
"@po-ui/style": "18.5.0",
|
|
41
41
|
"rxjs": "~7.8.1",
|
|
42
42
|
"zone.js": "~0.14.4"
|
|
43
43
|
},
|
|
Binary file
|
|
@@ -18,7 +18,7 @@ function default_1(options) {
|
|
|
18
18
|
exports.default = default_1;
|
|
19
19
|
function addPoPackageAndInstall() {
|
|
20
20
|
return (tree, context) => {
|
|
21
|
-
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '18.
|
|
21
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '18.5.0');
|
|
22
22
|
// install packages
|
|
23
23
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
24
24
|
};
|
|
@@ -5,7 +5,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
5
5
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
6
6
|
const changes_1 = require("./changes");
|
|
7
7
|
function default_1() {
|
|
8
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.5.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
9
9
|
}
|
|
10
10
|
exports.default = default_1;
|
|
11
11
|
function postUpdate() {
|
|
@@ -10,7 +10,7 @@ const changes_1 = require("./changes");
|
|
|
10
10
|
const httpClientModuleName = 'HttpClientModule';
|
|
11
11
|
const httpClientModuleSourcePath = '@angular/common/http';
|
|
12
12
|
function default_1() {
|
|
13
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.
|
|
13
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.5.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
14
14
|
}
|
|
15
15
|
exports.default = default_1;
|
|
16
16
|
function postUpdate() {
|
|
@@ -5,7 +5,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
5
5
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
6
6
|
const changes_1 = require("./changes");
|
|
7
7
|
function default_1() {
|
|
8
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.5.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
9
9
|
}
|
|
10
10
|
exports.default = default_1;
|
|
11
11
|
function postUpdate() {
|
|
@@ -5,7 +5,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
5
5
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
6
6
|
const changes_1 = require("./changes");
|
|
7
7
|
function default_1() {
|
|
8
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.5.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
9
9
|
}
|
|
10
10
|
exports.default = default_1;
|
|
11
11
|
function postUpdate() {
|
|
@@ -36,11 +36,11 @@ function main(options) {
|
|
|
36
36
|
configureNewIcon.toLowerCase() === 'y' ||
|
|
37
37
|
configureNewIcon.toLowerCase() === 'sim' ||
|
|
38
38
|
configureNewIcon.toLowerCase() === '') {
|
|
39
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.
|
|
39
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.5.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
40
40
|
}
|
|
41
41
|
else {
|
|
42
42
|
return (0, schematics_1.chain)([
|
|
43
|
-
(0, package_config_1.updatePackageJson)('18.
|
|
43
|
+
(0, package_config_1.updatePackageJson)('18.5.0', changes_1.updateDepedenciesVersion),
|
|
44
44
|
addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
|
|
45
45
|
addProviderToAppModule(options, newProviderDictionary),
|
|
46
46
|
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('18.
|
|
13
|
+
updatePackageJson('18.5.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(),
|
|
@@ -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)('18.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.5.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
11
11
|
}
|
|
12
12
|
exports.updateToV3 = updateToV3;
|
|
13
13
|
function postUpdate() {
|
|
@@ -6,7 +6,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
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)('18.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.5.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
exports.default = default_1;
|
|
12
12
|
function postUpdate() {
|
|
@@ -6,7 +6,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
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)('18.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.5.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
exports.default = default_1;
|
|
12
12
|
function postUpdate() {
|
|
@@ -5,7 +5,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
5
5
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
6
6
|
const changes_1 = require("./changes");
|
|
7
7
|
function default_1() {
|
|
8
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.5.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
9
9
|
}
|
|
10
10
|
exports.default = default_1;
|
|
11
11
|
function postUpdate() {
|
|
Binary file
|