@po-ui/ng-components 19.36.0 → 19.38.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.
Files changed (39) hide show
  1. package/fesm2022/po-ui-ng-components.mjs +440 -94
  2. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  3. package/lib/components/po-chart/enums/po-chart-type.enum.d.ts +5 -1
  4. package/lib/components/po-chart/index.d.ts +4 -4
  5. package/lib/components/po-chart/interfaces/po-chart-indicator-options.interface.d.ts +50 -0
  6. package/lib/components/po-chart/interfaces/po-chart-options.interface.d.ts +17 -1
  7. package/lib/components/po-chart/interfaces/po-chart-radar-options.interface.d.ts +38 -0
  8. package/lib/components/po-chart/interfaces/po-chart-serie-data-label.interface.d.ts +1 -2
  9. package/lib/components/po-chart/interfaces/po-chart-serie.interface.d.ts +15 -5
  10. package/lib/components/po-chart/po-chart-base.component.d.ts +22 -9
  11. package/lib/components/po-chart/po-chart-grid-utils.d.ts +45 -0
  12. package/lib/components/po-chart/po-chart.component.d.ts +7 -0
  13. package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts +33 -6
  14. package/lib/components/po-field/po-input/po-input-base.component.d.ts +15 -3
  15. package/lib/components/po-field/po-number/po-number.component.d.ts +11 -0
  16. package/lib/components/po-icon/po-icon.component.d.ts +3 -1
  17. package/lib/components/po-listbox/po-item-list/po-item-list-base.component.d.ts +9 -1
  18. package/lib/components/po-listbox/po-listbox.component.d.ts +2 -1
  19. package/lib/components/po-popup/po-popup-action.interface.d.ts +1 -0
  20. package/lib/components/po-popup/po-popup-base.component.d.ts +2 -1
  21. package/lib/components/po-popup/po-popup.component.d.ts +4 -2
  22. package/lib/components/po-tag/po-tag-base.component.d.ts +2 -1
  23. package/lib/components/po-tag/po-tag.component.d.ts +0 -2
  24. package/lib/utils/util.d.ts +12 -0
  25. package/package.json +4 -4
  26. package/po-ui-ng-components-19.38.0.tgz +0 -0
  27. package/schematics/ng-add/index.js +1 -1
  28. package/schematics/ng-update/v14/index.js +1 -1
  29. package/schematics/ng-update/v15/index.js +1 -1
  30. package/schematics/ng-update/v16/index.js +1 -1
  31. package/schematics/ng-update/v17/index.js +1 -1
  32. package/schematics/ng-update/v18/index.js +2 -2
  33. package/schematics/ng-update/v19/index.js +2 -2
  34. package/schematics/ng-update/v2/index.js +1 -1
  35. package/schematics/ng-update/v3/index.js +1 -1
  36. package/schematics/ng-update/v4/index.js +1 -1
  37. package/schematics/ng-update/v5/index.js +1 -1
  38. package/schematics/ng-update/v6/index.js +1 -1
  39. package/po-ui-ng-components-19.36.0.tgz +0 -0
@@ -77,6 +77,7 @@ export declare class PoPopupBaseComponent {
77
77
  private _size?;
78
78
  private _target;
79
79
  listboxSubitems: boolean;
80
+ templateIcon: boolean;
80
81
  /** Lista de ações que serão exibidas no componente. */
81
82
  set actions(value: Array<PoPopupAction>);
82
83
  get actions(): Array<PoPopupAction>;
@@ -208,5 +209,5 @@ export declare class PoPopupBaseComponent {
208
209
  closeEvent: EventEmitter<any>;
209
210
  clickItem: EventEmitter<any>;
210
211
  static ɵfac: i0.ɵɵFactoryDeclaration<PoPopupBaseComponent, never>;
211
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoPopupBaseComponent, never, never, { "listboxSubitems": { "alias": "p-listbox-subitems"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "hideArrow": { "alias": "p-hide-arrow"; "required": false; }; "isCornerAlign": { "alias": "p-is-corner-align"; "required": false; }; "position": { "alias": "p-position"; "required": false; }; "customPositions": { "alias": "p-custom-positions"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "target": { "alias": "p-target"; "required": false; }; }, { "closeEvent": "p-close"; "clickItem": "p-click-item"; }, never, never, true, never>;
212
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoPopupBaseComponent, never, never, { "listboxSubitems": { "alias": "p-listbox-subitems"; "required": false; }; "templateIcon": { "alias": "p-template-icon"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "hideArrow": { "alias": "p-hide-arrow"; "required": false; }; "isCornerAlign": { "alias": "p-is-corner-align"; "required": false; }; "position": { "alias": "p-position"; "required": false; }; "customPositions": { "alias": "p-custom-positions"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "target": { "alias": "p-target"; "required": false; }; }, { "closeEvent": "p-close"; "clickItem": "p-click-item"; }, never, never, true, never>;
212
213
  }
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, ElementRef } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef } from '@angular/core';
2
2
  import { PoListBoxComponent } from '../po-listbox';
3
3
  import { PoPopupAction } from './po-popup-action.interface';
4
4
  import { PoPopupBaseComponent } from './po-popup-base.component';
@@ -25,7 +25,8 @@ import * as i0 from "@angular/core";
25
25
  * </example>
26
26
  *
27
27
  */
28
- export declare class PoPopupComponent extends PoPopupBaseComponent {
28
+ export declare class PoPopupComponent extends PoPopupBaseComponent implements AfterViewInit {
29
+ id: string;
29
30
  private renderer;
30
31
  private router;
31
32
  private poControlPosition;
@@ -33,6 +34,7 @@ export declare class PoPopupComponent extends PoPopupBaseComponent {
33
34
  popupRef: ElementRef;
34
35
  listbox: ElementRef;
35
36
  poListBoxRef: PoListBoxComponent;
37
+ ngAfterViewInit(): void;
36
38
  /**
37
39
  * Fecha o componente *popup*.
38
40
  *
@@ -158,7 +158,8 @@ export declare class PoTagBaseComponent {
158
158
  * - <span class="dot po-color-11"></span> `color-11`
159
159
  * - <span class="dot po-color-12"></span> `color-12`
160
160
  *
161
- * - Para uma melhor acessibilidade no uso do componente é recomendável utilizar cores com um melhor contraste em relação ao background.
161
+ * - Para uma melhor acessibilidade no uso do componente é recomendável utilizar cores com um melhor contraste em relação ao background;
162
+ * - O componente ajusta automaticamente a cor do texto para garantir legibilidade, escolhendo dinamicamente entre texto claro ou escuro conforme o contraste necessário.
162
163
  *
163
164
  * > **Atenção:** A propriedade `p-type` sobrepõe esta definição.
164
165
  */
@@ -38,10 +38,8 @@ export declare class PoTagComponent extends PoTagBaseComponent implements OnInit
38
38
  onKeyPressed(event: any): void;
39
39
  styleTag(): {
40
40
  'background-color': any;
41
- color: string;
42
41
  } | {
43
42
  'background-color'?: undefined;
44
- color?: undefined;
45
43
  };
46
44
  getWidthTag(): boolean;
47
45
  setAriaLabel(): string;
@@ -302,3 +302,15 @@ export declare function updateTooltip(isTooltipActive: boolean, labelElement: El
302
302
  * @returns O elemento que deve ser medido para verificar se está com ellipsis.
303
303
  */
304
304
  export declare function getMeasurableEl(labelElement: ElementRef<HTMLElement>): Element;
305
+ /**
306
+ * Retorna a cor do texto baseada no tema atual.
307
+ * @param type Tipo de cor do texto, pode ser 'lightest' ou 'darkest'.
308
+ * @returns Valor da cor no formato definido pela propriedade customizada CSS (por exemplo, '#ffffff', 'rgb(255,255,255)').
309
+ */
310
+ export declare function getTextColor(type: 'lightest' | 'darkest'): string;
311
+ /**
312
+ * Retorna a cor do texto baseada na cor de fundo informada.
313
+ * @param backgroundColor Cor de fundo em formato 'rgb(r,g,b)' ou 'rgba(r,g,b,a)'.
314
+ * @returns Valor da cor do texto (por exemplo, '#ffffff', 'rgb(255,255,255)') baseado no brilho percebido da cor de fundo usando a fórmula do espaço de cor YIQ.
315
+ */
316
+ export declare function getTextColorFromBackgroundColor(backgroundColor: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@po-ui/ng-components",
3
- "version": "19.36.0",
3
+ "version": "19.38.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": "~19.0.3",
25
- "@po-ui/style": "19.36.0",
26
- "@po-ui/ng-schematics": "19.36.0",
25
+ "@po-ui/style": "19.38.0",
26
+ "@po-ui/ng-schematics": "19.38.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": "^19",
39
39
  "@angular/router": "^19",
40
40
  "@angular-devkit/schematics": "^19",
41
- "@po-ui/style": "19.36.0",
41
+ "@po-ui/style": "19.38.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', '19.36.0');
21
+ (0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '19.38.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)('19.36.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.38.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)('19.36.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
14
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.38.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)('19.36.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.38.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)('19.36.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.38.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)('19.36.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.38.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
44
44
  }
45
45
  else {
46
46
  return (0, schematics_1.chain)([
47
- (0, package_config_1.updatePackageJson)('19.36.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('19.38.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)('19.36.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.38.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
44
44
  }
45
45
  else {
46
46
  return (0, schematics_1.chain)([
47
- (0, package_config_1.updatePackageJson)('19.36.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('19.38.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('19.36.0', changes_1.dependeciesChanges),
13
+ updatePackageJson('19.38.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)('19.36.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.38.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)('19.36.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.38.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)('19.36.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.38.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)('19.36.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.38.0', changes_1.updateDepedenciesVersion), postUpdate()]);
10
10
  }
11
11
  function postUpdate() {
12
12
  return (_, context) => {
Binary file