@po-ui/ng-components 21.0.0-next.0 → 21.0.0-rc.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-CbaQDNei.mjs → po-ui-ng-components-po-chart-modal-table.component-DTtf5iYX.mjs} +4 -4
- package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-CbaQDNei.mjs.map → po-ui-ng-components-po-chart-modal-table.component-DTtf5iYX.mjs.map} +1 -1
- package/fesm2022/po-ui-ng-components.mjs +1221 -1206
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-dynamic/po-dynamic.util.d.ts +4 -0
- package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +1 -1
- package/lib/components/po-field/validators.d.ts +2 -0
- package/lib/components/po-tag/po-tag.component.d.ts +1 -0
- package/lib/components/po-widget/po-widget-base.component.d.ts +1 -1
- package/lib/utils/util.d.ts +6 -0
- package/package.json +4 -4
- package/po-ui-ng-components-21.0.0-rc.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 +3 -2
- package/po-ui-ng-components-21.0.0-next.0.tgz +0 -0
|
@@ -2,3 +2,7 @@ export declare function getGridColumnsClasses(gridColumns: any, offsetColumns: a
|
|
|
2
2
|
export declare function isVisibleField(field: {
|
|
3
3
|
visible?: boolean;
|
|
4
4
|
}): boolean;
|
|
5
|
+
export declare const PoDynamicUtil: {
|
|
6
|
+
isVisibleField: typeof isVisibleField;
|
|
7
|
+
getGridColumnsClasses: typeof getGridColumnsClasses;
|
|
8
|
+
};
|
|
@@ -42,7 +42,7 @@ import { PoHelperComponent } from '../../po-helper';
|
|
|
42
42
|
* | **Icon** | | |
|
|
43
43
|
* | `--color-icon` | Cor principal do icone pesquisar | `var(--color-action-default)` |
|
|
44
44
|
* | **Hover** | | |
|
|
45
|
-
* | `--color-hover` | Cor principal no estado hover | `var(--color-
|
|
45
|
+
* | `--color-hover` | Cor principal no estado hover | `var(--color-brand-01-dark)` |
|
|
46
46
|
* | `--background-hover` | Cor de background no estado hover | `var(--color-brand-01-lightest)` |
|
|
47
47
|
* | **Focused** | | |
|
|
48
48
|
* | `--color-focused` | Cor principal no estado de focus | `var(--color-action-default)` |
|
|
@@ -7,5 +7,7 @@ export declare function minFailed(min: number, value: number): boolean;
|
|
|
7
7
|
export declare function maxFailed(max: number, value: number): boolean;
|
|
8
8
|
export declare function dateFailed(value: string): boolean;
|
|
9
9
|
export declare const PoValidators: {
|
|
10
|
+
maxlengpoailed: typeof maxlengpoailed;
|
|
11
|
+
minlengpoailed: typeof minlengpoailed;
|
|
10
12
|
requiredFailed: typeof requiredFailed;
|
|
11
13
|
};
|
|
@@ -49,7 +49,7 @@ import { PoTagType } from '../po-tag';
|
|
|
49
49
|
* | `--background` | Cor de background | `var(--color-neutral-light-00)` |
|
|
50
50
|
* | `--shadow` | Contém o valor da sombra do elemento | `var(--shadow-md)` |
|
|
51
51
|
* | **Hover** | | |
|
|
52
|
-
* | `--border-color-hover` | Cor da borda no estado hover | `var(--color-
|
|
52
|
+
* | `--border-color-hover` | Cor da borda no estado hover | `var(--color-action-hover)` |
|
|
53
53
|
* | **Focused** | | |
|
|
54
54
|
* | `--color-focused` | Cor principal no estado de focus | `var(--color-action-default)` |
|
|
55
55
|
* | `--outline-color-focused` | Cor do outline do estado de focus | `var(--color-action-focus)` |
|
package/lib/utils/util.d.ts
CHANGED
|
@@ -322,14 +322,20 @@ export declare const PoUtils: {
|
|
|
322
322
|
convertToBoolean: typeof convertToBoolean;
|
|
323
323
|
convertToInt: typeof convertToInt;
|
|
324
324
|
formatYear: typeof formatYear;
|
|
325
|
+
getA11yLevel: typeof getA11yLevel;
|
|
326
|
+
getBrowserLanguage: typeof getBrowserLanguage;
|
|
327
|
+
getDensityMode: typeof getDensityMode;
|
|
328
|
+
getShortBrowserLanguage: typeof getShortBrowserLanguage;
|
|
325
329
|
isExternalLink: typeof isExternalLink;
|
|
326
330
|
isFirefox: typeof isFirefox;
|
|
327
331
|
isIE: typeof isIE;
|
|
328
332
|
isIEOrEdge: typeof isIEOrEdge;
|
|
329
333
|
isKeyCodeEnter: typeof isKeyCodeEnter;
|
|
334
|
+
isLanguage: typeof isLanguage;
|
|
330
335
|
isMobile: typeof isMobile;
|
|
331
336
|
isTypeof: typeof isTypeof;
|
|
332
337
|
openExternalLink: typeof openExternalLink;
|
|
338
|
+
reloadCurrentPage: typeof reloadCurrentPage;
|
|
333
339
|
removeDuplicatedOptions: typeof removeDuplicatedOptions;
|
|
334
340
|
removeDuplicatedOptionsWithFieldValue: typeof removeDuplicatedOptionsWithFieldValue;
|
|
335
341
|
removeUndefinedAndNullOptions: typeof removeUndefinedAndNullOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "21.0.0-
|
|
3
|
+
"version": "21.0.0-rc.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.0.3",
|
|
25
|
-
"@po-ui/style": "21.0.0-
|
|
26
|
-
"@po-ui/ng-schematics": "21.0.0-
|
|
25
|
+
"@po-ui/style": "21.0.0-rc.0",
|
|
26
|
+
"@po-ui/ng-schematics": "21.0.0-rc.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.0.0-
|
|
41
|
+
"@po-ui/style": "21.0.0-rc.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.0.0-
|
|
21
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '21.0.0-rc.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.0.0-
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.0.0-rc.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.0.0-
|
|
14
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.0.0-rc.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.0.0-
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.0.0-rc.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.0.0-
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.0.0-rc.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.0.0-
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.0.0-rc.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.0.0-
|
|
47
|
+
(0, package_config_1.updatePackageJson)('21.0.0-rc.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.0.0-
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.0.0-rc.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.0.0-
|
|
47
|
+
(0, package_config_1.updatePackageJson)('21.0.0-rc.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.0.0-
|
|
13
|
+
updatePackageJson('21.0.0-rc.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.0.0-
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.0.0-rc.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.0.0-
|
|
47
|
+
(0, package_config_1.updatePackageJson)('21.0.0-rc.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.0.0-
|
|
12
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.0.0-rc.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.0.0-
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.0.0-rc.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.0.0-
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.0.0-rc.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.0.0-
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.0.0-rc.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.0.0-
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.0.0-rc.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
@@ -718,6 +718,7 @@ declare class PoTagComponent extends PoTagBaseComponent implements OnInit {
|
|
|
718
718
|
} | {
|
|
719
719
|
'background-color'?: undefined;
|
|
720
720
|
};
|
|
721
|
+
private applyTextColorByContrast;
|
|
721
722
|
getWidthTag(): boolean;
|
|
722
723
|
setAriaLabel(): string;
|
|
723
724
|
private onRemove;
|
|
@@ -16460,7 +16461,7 @@ declare abstract class PoLookupBaseComponent implements ControlValueAccessor, On
|
|
|
16460
16461
|
* | **Icon** | | |
|
|
16461
16462
|
* | `--color-icon` | Cor principal do icone pesquisar | `var(--color-action-default)` |
|
|
16462
16463
|
* | **Hover** | | |
|
|
16463
|
-
* | `--color-hover` | Cor principal no estado hover | `var(--color-
|
|
16464
|
+
* | `--color-hover` | Cor principal no estado hover | `var(--color-brand-01-dark)` |
|
|
16464
16465
|
* | `--background-hover` | Cor de background no estado hover | `var(--color-brand-01-lightest)` |
|
|
16465
16466
|
* | **Focused** | | |
|
|
16466
16467
|
* | `--color-focused` | Cor principal no estado de focus | `var(--color-action-default)` |
|
|
@@ -31641,7 +31642,7 @@ declare const poThemeDefault: PoTheme;
|
|
|
31641
31642
|
* | `--background` | Cor de background | `var(--color-neutral-light-00)` |
|
|
31642
31643
|
* | `--shadow` | Contém o valor da sombra do elemento | `var(--shadow-md)` |
|
|
31643
31644
|
* | **Hover** | | |
|
|
31644
|
-
* | `--border-color-hover` | Cor da borda no estado hover | `var(--color-
|
|
31645
|
+
* | `--border-color-hover` | Cor da borda no estado hover | `var(--color-action-hover)` |
|
|
31645
31646
|
* | **Focused** | | |
|
|
31646
31647
|
* | `--color-focused` | Cor principal no estado de focus | `var(--color-action-default)` |
|
|
31647
31648
|
* | `--outline-color-focused` | Cor do outline do estado de focus | `var(--color-action-focus)` |
|
|
Binary file
|