@po-ui/ng-components 19.37.0 → 19.39.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 (40) hide show
  1. package/fesm2022/po-ui-ng-components.mjs +491 -97
  2. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  3. package/lib/components/po-accordion/po-accordion-base.component.d.ts +18 -1
  4. package/lib/components/po-chart/enums/po-chart-type.enum.d.ts +5 -1
  5. package/lib/components/po-chart/index.d.ts +4 -4
  6. package/lib/components/po-chart/interfaces/po-chart-indicator-options.interface.d.ts +50 -0
  7. package/lib/components/po-chart/interfaces/po-chart-options.interface.d.ts +17 -1
  8. package/lib/components/po-chart/interfaces/po-chart-radar-options.interface.d.ts +38 -0
  9. package/lib/components/po-chart/interfaces/po-chart-serie-data-label.interface.d.ts +1 -2
  10. package/lib/components/po-chart/interfaces/po-chart-serie.interface.d.ts +15 -5
  11. package/lib/components/po-chart/po-chart-base.component.d.ts +22 -9
  12. package/lib/components/po-chart/po-chart-grid-utils.d.ts +45 -0
  13. package/lib/components/po-chart/po-chart.component.d.ts +7 -0
  14. package/lib/components/po-field/po-input/po-input-base.component.d.ts +13 -1
  15. package/lib/components/po-icon/po-icon.component.d.ts +3 -1
  16. package/lib/components/po-listbox/po-item-list/po-item-list-base.component.d.ts +9 -1
  17. package/lib/components/po-listbox/po-listbox.component.d.ts +2 -1
  18. package/lib/components/po-popup/po-popup-action.interface.d.ts +1 -0
  19. package/lib/components/po-popup/po-popup-base.component.d.ts +2 -1
  20. package/lib/components/po-popup/po-popup.component.d.ts +4 -2
  21. package/lib/components/po-search/po-search-base.component.d.ts +22 -2
  22. package/lib/components/po-search/po-search.component.d.ts +1 -0
  23. package/lib/components/po-tag/po-tag-base.component.d.ts +2 -1
  24. package/lib/components/po-tag/po-tag.component.d.ts +0 -2
  25. package/lib/utils/util.d.ts +12 -0
  26. package/package.json +4 -4
  27. package/po-ui-ng-components-19.39.0.tgz +0 -0
  28. package/schematics/ng-add/index.js +1 -1
  29. package/schematics/ng-update/v14/index.js +1 -1
  30. package/schematics/ng-update/v15/index.js +1 -1
  31. package/schematics/ng-update/v16/index.js +1 -1
  32. package/schematics/ng-update/v17/index.js +1 -1
  33. package/schematics/ng-update/v18/index.js +2 -2
  34. package/schematics/ng-update/v19/index.js +2 -2
  35. package/schematics/ng-update/v2/index.js +1 -1
  36. package/schematics/ng-update/v3/index.js +1 -1
  37. package/schematics/ng-update/v4/index.js +1 -1
  38. package/schematics/ng-update/v5/index.js +1 -1
  39. package/schematics/ng-update/v6/index.js +1 -1
  40. package/po-ui-ng-components-19.37.0.tgz +0 -0
@@ -76,9 +76,9 @@ export type searchMode = 'action' | 'trigger' | 'locate' | 'execute';
76
76
  *
77
77
  */
78
78
  export declare class PoSearchBaseComponent {
79
+ protected language: string;
79
80
  private _literals?;
80
81
  private _ariaLabel?;
81
- protected language: string;
82
82
  private _filterSelect?;
83
83
  private _size?;
84
84
  private _keysLabel?;
@@ -178,6 +178,7 @@ export declare class PoSearchBaseComponent {
178
178
  * ```
179
179
  */
180
180
  icon: string | TemplateRef<void>;
181
+ id: string;
181
182
  /**
182
183
  * @optional
183
184
  *
@@ -232,6 +233,24 @@ export declare class PoSearchBaseComponent {
232
233
  * > Compatível com a propriedade `p-search-type` do tipo `locate`.
233
234
  */
234
235
  locateSummary: PoSearchLocateSummary;
236
+ /**
237
+ * @optional
238
+ *
239
+ * @description
240
+ * Nome e identificador do campo.
241
+ *
242
+ */
243
+ name: string;
244
+ /**
245
+ * @optional
246
+ *
247
+ * @description
248
+ *
249
+ * Define a propriedade nativa `autocomplete` do campo como `off`.
250
+ *
251
+ * @default `false`
252
+ */
253
+ noAutocomplete: boolean;
235
254
  /**
236
255
  * @optional
237
256
  *
@@ -387,7 +406,8 @@ export declare class PoSearchBaseComponent {
387
406
  constructor(languageService: PoLanguageService);
388
407
  ensureFilterSelectOption(values: any): any[];
389
408
  static ɵfac: i0.ɵɵFactoryDeclaration<PoSearchBaseComponent, never>;
390
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoSearchBaseComponent, never, never, { "ariaLabel": { "alias": "p-aria-label"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "filterKeys": { "alias": "p-filter-keys"; "required": false; }; "filterSelect": { "alias": "p-filter-select"; "required": false; }; "filterType": { "alias": "p-filter-type"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "locateSummary": { "alias": "p-locate-summary"; "required": false; }; "type": { "alias": "p-search-type"; "required": false; }; "showListbox": { "alias": "p-show-listbox"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "keysLabel": { "alias": "p-keys-label"; "required": false; }; }, { "blur": "p-blur"; "changeModel": "p-change-model"; "filter": "p-filter"; "filteredItemsChange": "p-filtered-items-change"; "focusEvent": "p-focus"; "keydown": "p-keydown"; "listboxOnClick": "p-listbox-onclick"; "locateNext": "p-locate-next"; "locatePrevious": "p-locate-previous"; "footerAction": "p-footer-action-listbox"; }, never, never, true, never>;
409
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoSearchBaseComponent, never, never, { "ariaLabel": { "alias": "p-aria-label"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "filterKeys": { "alias": "p-filter-keys"; "required": false; }; "filterSelect": { "alias": "p-filter-select"; "required": false; }; "filterType": { "alias": "p-filter-type"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; "id": { "alias": "p-id"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "locateSummary": { "alias": "p-locate-summary"; "required": false; }; "name": { "alias": "name"; "required": false; }; "noAutocomplete": { "alias": "p-no-autocomplete"; "required": false; }; "type": { "alias": "p-search-type"; "required": false; }; "showListbox": { "alias": "p-show-listbox"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "keysLabel": { "alias": "p-keys-label"; "required": false; }; }, { "blur": "p-blur"; "changeModel": "p-change-model"; "filter": "p-filter"; "filteredItemsChange": "p-filtered-items-change"; "focusEvent": "p-focus"; "keydown": "p-keydown"; "listboxOnClick": "p-listbox-onclick"; "locateNext": "p-locate-next"; "locatePrevious": "p-locate-previous"; "footerAction": "p-footer-action-listbox"; }, never, never, true, never>;
391
410
  static ngAcceptInputType_disabled: any;
411
+ static ngAcceptInputType_noAutocomplete: any;
392
412
  static ngAcceptInputType_showListbox: any;
393
413
  }
@@ -104,6 +104,7 @@ export declare class PoSearchComponent extends PoSearchBaseComponent implements
104
104
  label: string;
105
105
  value: string;
106
106
  }[];
107
+ get autocomplete(): string;
107
108
  onCloseListbox(): void;
108
109
  onListboxClick(option: PoSearchOption | any, event?: any): void;
109
110
  onBlur(): void;
@@ -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.37.0",
3
+ "version": "19.39.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.37.0",
26
- "@po-ui/ng-schematics": "19.37.0",
25
+ "@po-ui/style": "19.39.0",
26
+ "@po-ui/ng-schematics": "19.39.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.37.0",
41
+ "@po-ui/style": "19.39.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.37.0');
21
+ (0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '19.39.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.37.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.39.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.37.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
14
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.39.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.37.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.39.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.37.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.39.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.37.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.39.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.37.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('19.39.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.37.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.39.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.37.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('19.39.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.37.0', changes_1.dependeciesChanges),
13
+ updatePackageJson('19.39.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.37.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.39.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.37.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.39.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.37.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.39.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.37.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.39.0', changes_1.updateDepedenciesVersion), postUpdate()]);
10
10
  }
11
11
  function postUpdate() {
12
12
  return (_, context) => {
Binary file