@po-ui/ng-components 6.5.1 → 6.8.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 (27) hide show
  1. package/esm2020/lib/components/po-chart/interfaces/po-chart-serie.interface.mjs +1 -1
  2. package/esm2020/lib/components/po-field/po-checkbox/po-checkbox-base.component.mjs +12 -4
  3. package/esm2020/lib/components/po-field/po-checkbox/po-checkbox.component.mjs +15 -10
  4. package/esm2020/lib/components/po-field/po-combo/po-combo-base.component.mjs +2 -2
  5. package/esm2020/lib/components/po-field/po-combo/po-combo.component.mjs +3 -3
  6. package/esm2020/lib/components/po-field/po-radio-group/po-radio-group-base.component.mjs +5 -2
  7. package/esm2020/lib/components/po-field/po-radio-group/po-radio-group.component.mjs +2 -1
  8. package/esm2020/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.mjs +5 -3
  9. package/esm2020/lib/services/po-color/po-color.service.mjs +3 -2
  10. package/fesm2015/po-ui-ng-components.mjs +40 -19
  11. package/fesm2015/po-ui-ng-components.mjs.map +1 -1
  12. package/fesm2020/po-ui-ng-components.mjs +39 -19
  13. package/fesm2020/po-ui-ng-components.mjs.map +1 -1
  14. package/lib/components/po-chart/interfaces/po-chart-serie.interface.d.ts +3 -0
  15. package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +12 -4
  16. package/lib/components/po-field/po-checkbox/po-checkbox.component.d.ts +2 -2
  17. package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +1 -0
  18. package/lib/services/po-color/po-color.service.d.ts +1 -0
  19. package/package.json +4 -4
  20. package/po-ui-ng-components-6.8.0.tgz +0 -0
  21. package/schematics/ng-add/index.js +1 -1
  22. package/schematics/ng-update/v2/index.js +1 -1
  23. package/schematics/ng-update/v3/index.js +1 -1
  24. package/schematics/ng-update/v4/index.js +1 -1
  25. package/schematics/ng-update/v5/index.js +1 -1
  26. package/schematics/ng-update/v6/index.js +1 -1
  27. package/po-ui-ng-components-6.5.1.tgz +0 -0
@@ -28,6 +28,9 @@ export interface PoChartSerie {
28
28
  * - <span class="dot po-color-10"></span> `color-10`
29
29
  * - <span class="dot po-color-11"></span> `color-11`
30
30
  * - <span class="dot po-color-12"></span> `color-12`
31
+ *
32
+ *
33
+ * - A partir da 13° série o valor da cor será preta caso não seja enviada uma cor customizada.
31
34
  */
32
35
  color?: string;
33
36
  /**
@@ -7,10 +7,18 @@ import * as i0 from "@angular/core";
7
7
  * O componente `po-checkbox` exibe uma caixa de opção com um texto ao lado, na qual é possível marcar e desmarcar através tanto
8
8
  * no *click* do *mouse* quanto por meio da tecla *space* quando estiver com foco.
9
9
  *
10
- * Cada opção poderá receber um estado de marcado, desmarcado, indeterminado e desabilitado, como também uma ação que será disparada quando
10
+ * Cada opção poderá receber um estado de marcado, desmarcado, indeterminado/mixed e desabilitado, como também uma ação que será disparada quando
11
11
  * ocorrer mudanças do valor.
12
12
  *
13
- * > O *model* deste componente aceitará valores igual à `true`, `false` ou `null` para quando for indeterminado.
13
+ * > O *model* deste componente aceitará valores igual à `true`, `false` ou `null` para quando for indeterminado/mixed.
14
+ *
15
+ * **Acessibilidade tratada no componente:**
16
+ *
17
+ * Algumas diretrizes de acessibilidade já são tratadas no componente, internamente, e não podem ser alteradas pelo proprietário do conteúdo. São elas:
18
+ *
19
+ * - O componente foi desenvolvido utilizando controles padrões HTML para permitir a identificação do mesmo na interface por tecnologias assistivas. [WCAG 4.1.2: Name, Role, Value](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value)
20
+ * - A área do foco precisar ter uma espessura de pelo menos 2 pixels CSS e o foco não pode ficar escondido por outros elementos da tela. [WCAG 2.4.12: Focus Appearance](https://www.w3.org/WAI/WCAG22/Understanding/focus-appearance-enhanced)
21
+ * - A cor não deve ser o único meio para diferenciar o componente do seu estado marcado e desmarcado. [WGAG 1.4.1: Use of Color, 3.2.4: Consistent Identification](https://www.w3.org/WAI/WCAG21/Understanding/use-of-color)
14
22
  */
15
23
  export declare abstract class PoCheckboxBaseComponent implements ControlValueAccessor {
16
24
  /** Define o nome do *checkbox*. */
@@ -37,7 +45,7 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
37
45
  * Evento disparado quando o valor do *checkbox* for alterado.
38
46
  */
39
47
  change: EventEmitter<any>;
40
- checkboxValue: boolean | null;
48
+ checkboxValue: boolean | null | string;
41
49
  id: string;
42
50
  propagateChange: any;
43
51
  onTouched: any;
@@ -54,7 +62,7 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
54
62
  set disabled(value: boolean);
55
63
  get disabled(): boolean;
56
64
  changeValue(): void;
57
- checkOption(value: boolean | null): void;
65
+ checkOption(value: boolean | null | string): void;
58
66
  setDisabledState(isDisabled: boolean): void;
59
67
  registerOnChange(fn: any): void;
60
68
  registerOnTouched(fn: any): void;
@@ -47,8 +47,8 @@ export declare class PoCheckboxComponent extends PoCheckboxBaseComponent impleme
47
47
  focus(): void;
48
48
  onBlur(): void;
49
49
  ngAfterViewInit(): void;
50
- onKeyDown(event: KeyboardEvent, value: boolean): void;
51
- protected changeModelValue(value: boolean | null): void;
50
+ onKeyDown(event: KeyboardEvent, value: boolean | string): void;
51
+ protected changeModelValue(value: boolean | null | string): void;
52
52
  static ɵfac: i0.ɵɵFactoryDeclaration<PoCheckboxComponent, never>;
53
53
  static ɵcmp: i0.ɵɵComponentDeclaration<PoCheckboxComponent, "po-checkbox", never, {}, {}, never, never>;
54
54
  }
@@ -53,6 +53,7 @@ export declare abstract class PoRadioGroupBaseComponent implements ControlValueA
53
53
  change: EventEmitter<any>;
54
54
  mdColumns: number;
55
55
  value: any;
56
+ protected onTouched: any;
56
57
  private _columns;
57
58
  private _disabled?;
58
59
  private _options;
@@ -4,6 +4,7 @@ interface PoColorArgs {
4
4
  }
5
5
  export declare class PoColorService {
6
6
  defaultColors: Array<string>;
7
+ private readonly colorBlack;
7
8
  /**
8
9
  * Avalia a propriedade `color` na lista de items passada. Caso sim, trata se é decimal ou string `po-color`. Caso não haja, retorna a cor default.
9
10
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@po-ui/ng-components",
3
- "version": "6.5.1",
3
+ "version": "6.8.0",
4
4
  "tag": "next",
5
5
  "description": "PO UI - Components",
6
6
  "author": "PO UI",
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@po-ui/style": "6.5.1",
25
- "@po-ui/ng-schematics": "6.5.1",
24
+ "@po-ui/style": "6.8.0",
25
+ "@po-ui/ng-schematics": "6.8.0",
26
26
  "tslib": "^2.3.0"
27
27
  },
28
28
  "peerDependencies": {
@@ -34,7 +34,7 @@
34
34
  "@angular/platform-browser": "^13.0.2",
35
35
  "@angular/platform-browser-dynamic": "^13.0.2",
36
36
  "@angular/router": "^13.0.2",
37
- "@po-ui/style": "6.5.1",
37
+ "@po-ui/style": "6.8.0",
38
38
  "rxjs": "~7.4.0",
39
39
  "zone.js": "~0.11.4"
40
40
  },
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', '6.5.1');
21
+ (0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '6.8.0');
22
22
  // install packages
23
23
  context.addTask(new tasks_1.NodePackageInstallTask());
24
24
  };
@@ -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('6.5.1', changes_1.dependeciesChanges),
13
+ updatePackageJson('6.8.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)('6.5.1', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('6.8.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)('6.5.1', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('6.8.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)('6.5.1', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('6.8.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)('6.5.1', changes_1.updateDepedenciesVersion), postUpdate()]);
8
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('6.8.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
9
  }
10
10
  exports.default = default_1;
11
11
  function postUpdate() {
Binary file