@po-ui/ng-components 21.28.0 → 21.30.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 (46) hide show
  1. package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-CIfW0N91.mjs → po-ui-ng-components-po-chart-modal-table.component-BEh4YifL.mjs} +4 -4
  2. package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-CIfW0N91.mjs.map → po-ui-ng-components-po-chart-modal-table.component-BEh4YifL.mjs.map} +1 -1
  3. package/fesm2022/po-ui-ng-components.mjs +2035 -1278
  4. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  5. package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts +28 -0
  6. package/lib/components/po-field/index.d.ts +3 -0
  7. package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +16 -0
  8. package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +16 -0
  9. package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +16 -0
  10. package/lib/components/po-field/po-combo/po-combo.component.d.ts +1 -0
  11. package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +16 -0
  12. package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +16 -0
  13. package/lib/components/po-field/po-datetimepicker/po-datetimepicker-base.component.d.ts +16 -0
  14. package/lib/components/po-field/po-decimal/interfaces/po-decimal-format-parsed.interface.d.ts +16 -0
  15. package/lib/components/po-field/po-decimal/interfaces/po-decimal-format-result.interface.d.ts +12 -0
  16. package/lib/components/po-field/po-decimal/po-decimal.component.d.ts +42 -1
  17. package/lib/components/po-field/po-decimal/utils/po-decimal-format.util.d.ts +47 -0
  18. package/lib/components/po-field/po-input/po-input-base.component.d.ts +7 -1
  19. package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +16 -0
  20. package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +16 -0
  21. package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +16 -0
  22. package/lib/components/po-field/po-select/po-select.component.d.ts +16 -0
  23. package/lib/components/po-field/po-switch/po-switch.component.d.ts +17 -1
  24. package/lib/components/po-field/po-timepicker/po-timepicker-base.component.d.ts +16 -0
  25. package/lib/pipes/index.d.ts +1 -0
  26. package/lib/pipes/po-decimal/index.d.ts +2 -0
  27. package/lib/pipes/po-decimal/po-decimal.module.d.ts +2 -0
  28. package/lib/pipes/po-decimal/po-decimal.pipe.d.ts +15 -0
  29. package/package.json +4 -4
  30. package/po-ui-ng-components-21.30.0.tgz +0 -0
  31. package/schematics/ng-add/index.js +1 -1
  32. package/schematics/ng-update/v14/index.js +1 -1
  33. package/schematics/ng-update/v15/index.js +1 -1
  34. package/schematics/ng-update/v16/index.js +1 -1
  35. package/schematics/ng-update/v17/index.js +1 -1
  36. package/schematics/ng-update/v18/index.js +2 -2
  37. package/schematics/ng-update/v19/index.js +2 -2
  38. package/schematics/ng-update/v2/index.js +1 -1
  39. package/schematics/ng-update/v20/index.js +2 -2
  40. package/schematics/ng-update/v21/index.js +1 -1
  41. package/schematics/ng-update/v3/index.js +1 -1
  42. package/schematics/ng-update/v4/index.js +1 -1
  43. package/schematics/ng-update/v5/index.js +1 -1
  44. package/schematics/ng-update/v6/index.js +1 -1
  45. package/types/po-ui-ng-components.d.ts +383 -17
  46. package/po-ui-ng-components-21.28.0.tgz +0 -0
@@ -120,6 +120,20 @@ export declare abstract class PoTimepickerBaseComponent implements ControlValueA
120
120
  onblur: EventEmitter<any>;
121
121
  /** Evento disparado ao alterar valor do campo. */
122
122
  onchange: EventEmitter<any>;
123
+ /**
124
+ * @optional
125
+ *
126
+ * @description
127
+ *
128
+ * Evento disparado sempre que o valor do model é alterado, seja por interação do usuário
129
+ * ou por atualização programática (ex: `setValue`, `patchValue`, carregamento assíncrono).
130
+ *
131
+ * Diferentemente do `p-change`, que é disparado apenas por interação do usuário,
132
+ * o `p-change-model` cobre todos os cenários de alteração de valor.
133
+ *
134
+ * Não emite quando o novo valor é idêntico ao anterior (deduplicação automática).
135
+ */
136
+ changeModel: EventEmitter<any>;
123
137
  /** Evento disparado quando uma tecla é pressionada enquanto o foco está no componente. */
124
138
  keydown: EventEmitter<KeyboardEvent>;
125
139
  /**
@@ -160,6 +174,7 @@ export declare abstract class PoTimepickerBaseComponent implements ControlValueA
160
174
  required?: boolean;
161
175
  /** Habilita ação para limpar o campo. */
162
176
  clean?: boolean;
177
+ modelLastUpdate: any;
163
178
  protected onChangeModel: any;
164
179
  protected validatorChange: any;
165
180
  protected onTouchedModel: any;
@@ -358,6 +373,7 @@ export declare abstract class PoTimepickerBaseComponent implements ControlValueA
358
373
  protected getDefaultInvalidTimeMessage(): string;
359
374
  protected getDefaultOutOfRangeTimeMessage(): string;
360
375
  protected callOnChange(value: any): void;
376
+ controlChangeModelEmitter(value: any): void;
361
377
  mapSizeToIcon(size: string): string;
362
378
  setDisabledState(isDisabled: boolean): void;
363
379
  registerOnChange(func: any): void;
@@ -1,2 +1,3 @@
1
1
  export * from './pipes.module';
2
2
  export * from './po-time/index';
3
+ export * from './po-decimal/index';
@@ -0,0 +1,2 @@
1
+ export * from './po-decimal.pipe';
2
+ export * from './po-decimal.module';
@@ -0,0 +1,2 @@
1
+ export declare class PoDecimalFormatModule {
2
+ }
@@ -0,0 +1,15 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ /**
3
+ * Aplica máscaras de formatação numérica avançada a valores numéricos.
4
+ *
5
+ * > Retorna string vazia quando o valor excede a capacidade do formato (overflow).
6
+ *
7
+ * @example
8
+ * ```html
9
+ * {{ 4567.88 | poDecimalFormat: '>>>,>>>,>>9.99' }}
10
+ * ```
11
+ */
12
+ export declare class PoDecimalFormatPipe implements PipeTransform {
13
+ private readonly languageService;
14
+ transform(value: number | string | null | undefined, format: string, locale?: string): string;
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@po-ui/ng-components",
3
- "version": "21.28.0",
3
+ "version": "21.30.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.2.14",
25
- "@po-ui/style": "21.28.0",
26
- "@po-ui/ng-schematics": "21.28.0",
25
+ "@po-ui/style": "21.30.0",
26
+ "@po-ui/ng-schematics": "21.30.0",
27
27
  "driver.js": "~1.4.0",
28
28
  "echarts": "^6.1.0",
29
29
  "tslib": "^2.6.2"
@@ -39,7 +39,7 @@
39
39
  "@angular/platform-browser-dynamic": "^21",
40
40
  "@angular/router": "^21",
41
41
  "@angular-devkit/schematics": "^21",
42
- "@po-ui/style": "21.28.0",
42
+ "@po-ui/style": "21.30.0",
43
43
  "rxjs": "~7.8.1",
44
44
  "zone.js": "~0.15.0"
45
45
  },
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.28.0');
21
+ (0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '21.30.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.28.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.30.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.28.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
14
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.30.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.28.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.30.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.28.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.30.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.28.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.30.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.28.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('21.30.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.28.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.30.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.28.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('21.30.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.28.0', changes_1.dependeciesChanges),
13
+ updatePackageJson('21.30.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.28.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.30.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.28.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('21.30.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.28.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
12
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.30.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.28.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.30.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.28.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.30.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.28.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.30.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.28.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.30.0', changes_1.updateDepedenciesVersion), postUpdate()]);
10
10
  }
11
11
  function postUpdate() {
12
12
  return (_, context) => {