@po-ui/ng-components 19.2.0 → 19.3.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 (60) hide show
  1. package/fesm2022/po-ui-ng-components.mjs +1265 -507
  2. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  3. package/lib/components/po-button/po-button-base.component.d.ts +2 -1
  4. package/lib/components/po-button/po-button.component.d.ts +1 -0
  5. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-field.interface.d.ts +5 -12
  6. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.d.ts +2 -0
  7. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form.component.d.ts +31 -0
  8. package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +11 -1
  9. package/lib/components/po-field/po-checkbox/po-checkbox.component.d.ts +22 -0
  10. package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +18 -9
  11. package/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.d.ts +25 -1
  12. package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +10 -1
  13. package/lib/components/po-field/po-combo/po-combo.component.d.ts +22 -0
  14. package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +9 -1
  15. package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +24 -0
  16. package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +11 -1
  17. package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +22 -0
  18. package/lib/components/po-field/po-decimal/po-decimal.component.d.ts +1 -0
  19. package/lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.d.ts +9 -3
  20. package/lib/components/po-field/po-field.model.d.ts +32 -1
  21. package/lib/components/po-field/po-input/po-input-base.component.d.ts +32 -1
  22. package/lib/components/po-field/po-input-generic/po-input-generic.d.ts +1 -0
  23. package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +10 -1
  24. package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +24 -0
  25. package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +18 -9
  26. package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +22 -0
  27. package/lib/components/po-field/po-radio/po-radio.component.d.ts +2 -1
  28. package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +18 -9
  29. package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +25 -0
  30. package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +10 -1
  31. package/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.d.ts +2 -1
  32. package/lib/components/po-field/po-rich-text/po-rich-text.component.d.ts +23 -0
  33. package/lib/components/po-field/po-select/po-select.component.d.ts +22 -0
  34. package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +18 -9
  35. package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +23 -0
  36. package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +10 -1
  37. package/lib/components/po-field/po-upload/po-upload.component.d.ts +27 -1
  38. package/lib/components/po-table/po-table.component.d.ts +1 -0
  39. package/lib/directives/po-tooltip/po-tooltip.directive.d.ts +1 -0
  40. package/lib/services/po-i18n/index.d.ts +1 -0
  41. package/lib/services/po-i18n/interfaces/po-i18n-config-context.interface.d.ts +18 -0
  42. package/lib/services/po-i18n/interfaces/po-i18n-config.interface.d.ts +2 -1
  43. package/lib/services/po-i18n/po-i18n-config-injection-token.d.ts +1 -1
  44. package/lib/services/po-i18n/po-i18n.module.d.ts +1 -2
  45. package/lib/services/po-i18n/po-i18n.service.d.ts +2 -1
  46. package/package.json +4 -4
  47. package/po-ui-ng-components-19.3.0.tgz +0 -0
  48. package/schematics/ng-add/index.js +1 -1
  49. package/schematics/ng-update/v14/index.js +1 -1
  50. package/schematics/ng-update/v15/index.js +1 -1
  51. package/schematics/ng-update/v16/index.js +1 -1
  52. package/schematics/ng-update/v17/index.js +1 -1
  53. package/schematics/ng-update/v18/index.js +2 -2
  54. package/schematics/ng-update/v19/index.js +2 -2
  55. package/schematics/ng-update/v2/index.js +1 -1
  56. package/schematics/ng-update/v3/index.js +1 -1
  57. package/schematics/ng-update/v4/index.js +1 -1
  58. package/schematics/ng-update/v5/index.js +1 -1
  59. package/schematics/ng-update/v6/index.js +1 -1
  60. package/po-ui-ng-components-19.2.0.tgz +0 -0
@@ -3,6 +3,7 @@ import { PoI18nPipe } from '../../../services/po-i18n/po-i18n.pipe';
3
3
  import { PoLanguageService } from '../../../services/po-language/po-language.service';
4
4
  import { PoNotificationService } from '../../../services/po-notification/po-notification.service';
5
5
  import { PoProgressStatus } from '../../po-progress/enums/po-progress-status.enum';
6
+ import { PoButtonComponent } from './../../po-button/po-button.component';
6
7
  import { PoUploadBaseComponent } from './po-upload-base.component';
7
8
  import { PoUploadFile } from './po-upload-file';
8
9
  import { PoUploadStatus } from './po-upload-status.enum';
@@ -45,7 +46,7 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
45
46
  private cd;
46
47
  private inputFile;
47
48
  private poUploadDragDropComponent;
48
- private uploadButton;
49
+ uploadButton: PoButtonComponent;
49
50
  id: string;
50
51
  infoByUploadStatus: {
51
52
  [key: string]: {
@@ -93,8 +94,10 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
93
94
  getAdditionalHelpTooltip(): string;
94
95
  hasAnyFileUploading(files: Array<PoUploadFile>): boolean;
95
96
  isAllowCancelEvent(status: PoUploadStatus): status is PoUploadStatus.Uploading | PoUploadStatus.Error | PoUploadStatus.None;
97
+ onBlur(): void;
96
98
  onFileChange(event: any): void;
97
99
  onFileChangeDragDrop(files: any): void;
100
+ onKeyDown(event: KeyboardEvent): void;
98
101
  removeFile(file: any): void;
99
102
  /** Método responsável por **abrir** a janela para seleção de arquivo(s). */
100
103
  selectFiles(): void;
@@ -102,6 +105,28 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
102
105
  /** Método responsável por **enviar** o(s) arquivo(s) selecionado(s). */
103
106
  sendFiles(): void;
104
107
  setDirectoryAttribute(canHandleDirectory: boolean): void;
108
+ /**
109
+ * Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
110
+ * Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
111
+ *
112
+ * ```
113
+ * <po-upload
114
+ * #upload
115
+ * ...
116
+ * p-additional-help-tooltip="Mensagem de ajuda complementar"
117
+ * (p-keydown)="onKeyDown($event, upload)"
118
+ * ></po-upload>
119
+ * ```
120
+ * ```
121
+ * ...
122
+ * onKeyDown(event: KeyboardEvent, inp: PoUploadComponent): void {
123
+ * if (event.code === 'F9') {
124
+ * inp.showAdditionalHelp();
125
+ * }
126
+ * }
127
+ * ```
128
+ */
129
+ showAdditionalHelp(): boolean;
105
130
  showAdditionalHelpIcon(): boolean;
106
131
  stopUpload(file: PoUploadFile): void;
107
132
  trackByFn(index: any, file: PoUploadFile): string;
@@ -109,6 +134,7 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
109
134
  customClick(file: PoUploadFile): void;
110
135
  private cleanInputValue;
111
136
  private isAdditionalHelpEventTriggered;
137
+ private isUploadButtonFocused;
112
138
  private responseHandler;
113
139
  private setPipeArguments;
114
140
  private stopUploadHandler;
@@ -289,6 +289,7 @@ export declare class PoTableComponent extends PoTableBaseComponent implements Af
289
289
  protected changeSizeLoading(): void;
290
290
  private checkChangesItems;
291
291
  private checkingIfColumnHasTooltip;
292
+ private countExtraColumns;
292
293
  private debounceResize;
293
294
  private deleteItemsLocal;
294
295
  private deleteItemsService;
@@ -44,6 +44,7 @@ export declare class PoTooltipDirective extends PoTooltipBaseDirective implement
44
44
  onFocusOut(): void;
45
45
  onFocusIn(): void;
46
46
  onKeyDown(event: any): void;
47
+ toggleTooltipVisibility(show: boolean): void;
47
48
  protected addTooltipAction(): void;
48
49
  protected removeTooltipAction(): void;
49
50
  private addArrow;
@@ -1,4 +1,5 @@
1
1
  export * from './interfaces/po-i18n-config.interface';
2
+ export * from './interfaces/po-i18n-config-context.interface';
2
3
  export * from './interfaces/po-i18n-config-default.interface';
3
4
  export * from './interfaces/po-i18n-literals.interface';
4
5
  export * from './po-i18n.pipe';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @description
3
+ *
4
+ * <a id="poI18nConfigContext"></a>
5
+ *
6
+ * Interface para a configuração dos contextos do módulo `PoI18nModule`.
7
+ *
8
+ * @usedBy PoI18nModule
9
+ */
10
+ export interface PoI18nConfigContext {
11
+ [name: string]: {
12
+ [language: string]: {
13
+ [literal: string]: string;
14
+ };
15
+ } | {
16
+ url: string;
17
+ };
18
+ }
@@ -1,4 +1,5 @@
1
1
  import { PoI18nConfigDefault } from './po-i18n-config-default.interface';
2
+ import { PoI18nConfigContext } from './po-i18n-config-context.interface';
2
3
  /**
3
4
  * @description
4
5
  *
@@ -74,5 +75,5 @@ export interface PoI18nConfig {
74
75
  * ```
75
76
  * > Caso a constante contenha alguma literal que o serviço não possua será utilizado a literal da constante.
76
77
  */
77
- contexts: object;
78
+ contexts: PoI18nConfigContext;
78
79
  }
@@ -1,3 +1,3 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { PoI18nConfig } from './interfaces/po-i18n-config.interface';
3
- export declare const I18N_CONFIG: InjectionToken<PoI18nConfig>;
3
+ export declare const I18N_CONFIG: InjectionToken<PoI18nConfig[]>;
@@ -139,7 +139,6 @@ import * as i1 from "../po-language/po-language.module";
139
139
  * Para aplicações que utilizem a abordagem de módulos com carregamento *lazy loading*, caso seja
140
140
  * definida outra configuração do `PoI18nModule`, deve-se atentar os seguintes detalhes:
141
141
  *
142
- * - Caso existam literais comuns na aplicação, estas devem ser reimportadas;
143
142
  * - Não defina outra *default language* para este módulo. Caso for definida, será sobreposta para
144
143
  * toda a aplicação;
145
144
  * - Caso precise de módulos carregados via *lazy loading* com linguagens diferentes, utilize o
@@ -152,4 +151,4 @@ export declare class PoI18nModule {
152
151
  static ɵmod: i0.ɵɵNgModuleDeclaration<PoI18nModule, never, [typeof i1.PoLanguageModule], never>;
153
152
  static ɵinj: i0.ɵɵInjectorDeclaration<PoI18nModule>;
154
153
  }
155
- export declare function initializeLanguageDefault(config: PoI18nConfig, languageService: PoLanguageService): () => void;
154
+ export declare function initializeLanguageDefault(configs: Array<PoI18nConfig>, languageService: PoLanguageService): () => void;
@@ -10,4 +10,5 @@ export declare class PoI18nService extends PoI18nBaseService {
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<PoI18nService, never>;
11
11
  static ɵprov: i0.ɵɵInjectableDeclaration<PoI18nService>;
12
12
  }
13
- export declare function returnPoI18nService(config: PoI18nConfig, http: HttpClient, languageService: PoLanguageService): PoI18nService;
13
+ export declare function returnPoI18nService(configs: Array<PoI18nConfig>, http: HttpClient, languageService: PoLanguageService): PoI18nService;
14
+ export declare function mergePoI18nConfigs(objects: Array<any>): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@po-ui/ng-components",
3
- "version": "19.2.0",
3
+ "version": "19.3.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.2.0",
26
- "@po-ui/ng-schematics": "19.2.0",
25
+ "@po-ui/style": "19.3.0",
26
+ "@po-ui/ng-schematics": "19.3.0",
27
27
  "tslib": "^2.6.2"
28
28
  },
29
29
  "peerDependencies": {
@@ -37,7 +37,7 @@
37
37
  "@angular/platform-browser-dynamic": "^19",
38
38
  "@angular/router": "^19",
39
39
  "@angular-devkit/schematics": "^19",
40
- "@po-ui/style": "19.2.0",
40
+ "@po-ui/style": "19.3.0",
41
41
  "rxjs": "~7.8.1",
42
42
  "zone.js": "~0.15.0"
43
43
  },
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.2.0');
21
+ (0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '19.3.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.2.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.3.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.2.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
14
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.3.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.2.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.3.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.2.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.3.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.2.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.3.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.2.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('19.3.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.2.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.3.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.2.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('19.3.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.2.0', changes_1.dependeciesChanges),
13
+ updatePackageJson('19.3.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.2.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.3.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.2.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.3.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.2.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.3.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.2.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.3.0', changes_1.updateDepedenciesVersion), postUpdate()]);
10
10
  }
11
11
  function postUpdate() {
12
12
  return (_, context) => {
Binary file