@po-ui/ng-components 21.32.0 → 21.33.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 (51) hide show
  1. package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-DEB6M6ER.mjs → po-ui-ng-components-po-chart-modal-table.component-B4RdhBpp.mjs} +4 -4
  2. package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-DEB6M6ER.mjs.map → po-ui-ng-components-po-chart-modal-table.component-B4RdhBpp.mjs.map} +1 -1
  3. package/fesm2022/po-ui-ng-components.mjs +4154 -2710
  4. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  5. package/lib/components/po-field/index.d.ts +1 -0
  6. package/lib/components/po-field/po-lookup/interfaces/po-lookup-advanced-filter.interface.d.ts +18 -0
  7. package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +14 -0
  8. package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.d.ts +1 -0
  9. package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal.component.d.ts +2 -0
  10. package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +6 -0
  11. package/lib/components/po-list-view/enums/po-list-view-detail-display.enum.d.ts +14 -0
  12. package/lib/components/po-list-view/index.d.ts +2 -0
  13. package/lib/components/po-list-view/interfaces/po-list-view-field-properties.interface.d.ts +71 -0
  14. package/lib/components/po-list-view/interfaces/po-list-view-literals.interface.d.ts +2 -0
  15. package/lib/components/po-list-view/po-list-view-base.component.d.ts +276 -34
  16. package/lib/components/po-list-view/po-list-view-detail-template/po-list-view-detail-template.directive.d.ts +6 -0
  17. package/lib/components/po-list-view/po-list-view.component.d.ts +70 -4
  18. package/lib/components/po-list-view/po-list-view.module.d.ts +0 -37
  19. package/lib/components/po-tree-view/po-tree-view-base.component.d.ts +132 -51
  20. package/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.component.d.ts +15 -9
  21. package/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.interface.d.ts +92 -10
  22. package/lib/components/po-tree-view/po-tree-view-item-content/po-tree-view-item-content.component.d.ts +36 -0
  23. package/lib/components/po-tree-view/po-tree-view-item-content/po-tree-view-item-content.literals.d.ts +18 -0
  24. package/lib/components/po-tree-view/po-tree-view.component.d.ts +16 -5
  25. package/lib/components/po-tree-view/po-tree-view.literals.d.ts +26 -0
  26. package/lib/components/po-tree-view/po-tree-view.module.d.ts +0 -38
  27. package/lib/components/po-tree-view/services/po-tree-view-keyboard.service.d.ts +27 -0
  28. package/lib/components/po-tree-view/services/po-tree-view.service.d.ts +3 -0
  29. package/lib/components/po-widget/interfaces/po-widget-selection.interface.d.ts +23 -0
  30. package/lib/components/po-widget/po-widget-base.component.d.ts +28 -0
  31. package/lib/components/po-widget/po-widget.component.d.ts +6 -0
  32. package/lib/services/po-notification/po-notification-base.service.d.ts +1 -0
  33. package/package.json +4 -4
  34. package/po-ui-ng-components-21.33.0.tgz +0 -0
  35. package/schematics/ng-add/index.js +1 -1
  36. package/schematics/ng-update/v14/index.js +1 -1
  37. package/schematics/ng-update/v15/index.js +1 -1
  38. package/schematics/ng-update/v16/index.js +1 -1
  39. package/schematics/ng-update/v17/index.js +1 -1
  40. package/schematics/ng-update/v18/index.js +2 -2
  41. package/schematics/ng-update/v19/index.js +2 -2
  42. package/schematics/ng-update/v2/index.js +1 -1
  43. package/schematics/ng-update/v20/index.js +2 -2
  44. package/schematics/ng-update/v21/index.js +1 -1
  45. package/schematics/ng-update/v3/index.js +1 -1
  46. package/schematics/ng-update/v4/index.js +1 -1
  47. package/schematics/ng-update/v5/index.js +1 -1
  48. package/schematics/ng-update/v6/index.js +1 -1
  49. package/types/po-ui-ng-components.d.ts +1402 -784
  50. package/lib/components/po-tree-view/po-tree-view-item-header/po-tree-view-item-header.component.d.ts +0 -14
  51. package/po-ui-ng-components-21.32.0.tgz +0 -0
@@ -0,0 +1,26 @@
1
+ export declare const poTreeViewLiterals: {
2
+ en: {
3
+ treeView: string;
4
+ expanded: string;
5
+ collapsed: string;
6
+ selected: string;
7
+ };
8
+ es: {
9
+ treeView: string;
10
+ expanded: string;
11
+ collapsed: string;
12
+ selected: string;
13
+ };
14
+ pt: {
15
+ treeView: string;
16
+ expanded: string;
17
+ collapsed: string;
18
+ selected: string;
19
+ };
20
+ ru: {
21
+ treeView: string;
22
+ expanded: string;
23
+ collapsed: string;
24
+ selected: string;
25
+ };
26
+ };
@@ -2,44 +2,6 @@
2
2
  * @description
3
3
  *
4
4
  * Módulo do componente `po-tree-view`.
5
- *
6
- * > Para o correto funcionamento do componente `po-tree-view`, deve ser importado o módulo `BrowserAnimationsModule` no
7
- * > módulo principal da sua aplicação.
8
- *
9
- * Módulo da aplicação:
10
- * ```
11
- * import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
12
- * import { PoModule } from '@po-ui/ng-components';
13
- * ...
14
- *
15
- * @NgModule({
16
- * imports: [
17
- * BrowserModule,
18
- * BrowserAnimationsModule,
19
- * ...
20
- * PoModule
21
- * ],
22
- * declarations: [
23
- * AppComponent,
24
- * ...
25
- * ],
26
- * providers: [],
27
- * bootstrap: [AppComponent]
28
- * })
29
- * export class AppModule { }
30
- * ```
31
- *
32
- * Em aplicações Standalone, utilize a seguinte configuração para o bootstrap:
33
- *
34
- * ```
35
- * import { bootstrapApplication } from '@angular/platform-browser';
36
- * import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
37
- * import { AppComponent } from './app.component';
38
- *
39
- * bootstrapApplication(AppComponent, {
40
- * providers: [importProvidersFrom(BrowserAnimationsModule)]
41
- * }).catch(err => console.error(err));
42
- * ```
43
5
  */
44
6
  export declare class PoTreeViewModule {
45
7
  }
@@ -0,0 +1,27 @@
1
+ import { ElementRef } from '@angular/core';
2
+ /**
3
+ * @docsPrivate
4
+ *
5
+ * @description
6
+ *
7
+ * Serviço responsável pelo gerenciamento de foco e navegação por teclado do PoTreeView.
8
+ */
9
+ export declare class PoTreeViewKeyboardService {
10
+ private hostElement;
11
+ private lastFocusedNode;
12
+ setHostElement(element: ElementRef<HTMLElement>): void;
13
+ setLastFocusedNode(node: HTMLElement): void;
14
+ focusLastOrFirst(): void;
15
+ private getVisibleNodes;
16
+ private getFocusableNodes;
17
+ focusFirst(): void;
18
+ focusLast(): void;
19
+ focusNext(currentNode: HTMLElement): void;
20
+ focusPrevious(currentNode: HTMLElement): void;
21
+ focusFirstChild(currentNode: HTMLElement): void;
22
+ focusParent(currentNode: HTMLElement): void;
23
+ hasParentNode(currentNode: HTMLElement): boolean;
24
+ focusByCharacter(char: string, currentNode: HTMLElement): void;
25
+ private isNodeFocusable;
26
+ private focusNode;
27
+ }
@@ -2,8 +2,11 @@ import { PoTreeViewItem } from '../po-tree-view-item/po-tree-view-item.interface
2
2
  export declare class PoTreeViewService {
3
3
  private readonly expandedEvent;
4
4
  private readonly selectedEvent;
5
+ private readonly activatedEvent;
5
6
  emitExpandedEvent(treeViewItem: PoTreeViewItem): void;
6
7
  emitSelectedEvent(treeViewItem: PoTreeViewItem): void;
8
+ emitActivatedEvent(treeViewItem: PoTreeViewItem): void;
7
9
  onExpand(): import("rxjs").Observable<PoTreeViewItem>;
8
10
  onSelect(): import("rxjs").Observable<PoTreeViewItem>;
11
+ onActivate(): import("rxjs").Observable<PoTreeViewItem>;
9
12
  }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @docsPrivate
3
+ *
4
+ * @usedBy PoWidgetComponent
5
+ *
6
+ * @description
7
+ *
8
+ * Interface de uso **interno**, para o `po-list-view`, que descreve a coluna de seleção
9
+ * (checkbox/radio) exibida à esquerda do conteúdo do `po-widget`.
10
+ *
11
+ */
12
+ export interface PoWidgetSelection {
13
+ /**
14
+ * Tipo do controle de seleção:
15
+ * - `single`: exibe um `po-radio`.
16
+ * - `multiple`: exibe um `po-checkbox`.
17
+ */
18
+ type: 'single' | 'multiple';
19
+ /** Indica se o item está selecionado. */
20
+ selected?: boolean;
21
+ /** Callback executado quando a seleção muda. Recebe o novo estado (`boolean`). */
22
+ change?: (selected: boolean) => void;
23
+ }
@@ -2,6 +2,7 @@ import { EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { PoPopupAction } from '../po-popup';
3
3
  import { PoTagType } from '../po-tag';
4
4
  import { PoWidgetAvatar } from './interfaces/po-widget-avatar.interface';
5
+ import { PoWidgetSelection } from './interfaces/po-widget-selection.interface';
5
6
  /**
6
7
  *
7
8
  * @description
@@ -215,6 +216,33 @@ export declare class PoWidgetBaseComponent {
215
216
  * Define o avatar a ser exibido à esquerda no Widget.
216
217
  */
217
218
  avatar: import("@angular/core").InputSignalWithTransform<PoWidgetAvatar, PoWidgetAvatar>;
219
+ /**
220
+ * @docsPrivate
221
+ *
222
+ * @description
223
+ *
224
+ * Uso **interno** do `po-list-view`. Define um subtítulo exibido no header,
225
+ * abaixo do título.
226
+ */
227
+ subtitle: import("@angular/core").InputSignal<string>;
228
+ /**
229
+ * @docsPrivate
230
+ *
231
+ * @description
232
+ *
233
+ * Uso **interno** do `po-list-view`. Habilita e configura a coluna de seleção
234
+ * (checkbox/radio) à esquerda do conteúdo.
235
+ */
236
+ selection: import("@angular/core").InputSignal<PoWidgetSelection>;
237
+ /**
238
+ * @docsPrivate
239
+ *
240
+ * @description
241
+ *
242
+ * Uso **interno** do `po-list-view`. Template renderizado como coluna de ação à
243
+ * direita do conteúdo, centralizado verticalmente (em vez do header).
244
+ */
245
+ actionTemplate: import("@angular/core").InputSignal<TemplateRef<any>>;
218
246
  /**
219
247
  * @optional
220
248
  *
@@ -56,6 +56,12 @@ export declare class PoWidgetComponent extends PoWidgetBaseComponent implements
56
56
  hasTitleHelpOrSetting(): boolean;
57
57
  onClick(event: MouseEvent): void;
58
58
  onKeyDown(event: KeyboardEvent): void;
59
+ /**
60
+ * @docsPrivate
61
+ *
62
+ * Uso interno (po-list-view): propaga a mudança da coluna de seleção.
63
+ */
64
+ protected onSelectionChange(selected: boolean): void;
59
65
  openHelp(): void;
60
66
  runPrimaryAction(): void;
61
67
  runSecondaryAction(): void;
@@ -66,6 +66,7 @@ export declare abstract class PoNotificationBaseService {
66
66
  * @param {PoNotification | string} notification Objeto PoNotification com os dados da notificação
67
67
  */
68
68
  private buildToaster;
69
+ private getMessage;
69
70
  /**
70
71
  * @docsPrivate
71
72
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@po-ui/ng-components",
3
- "version": "21.32.0",
3
+ "version": "21.33.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.32.0",
26
- "@po-ui/ng-schematics": "21.32.0",
25
+ "@po-ui/style": "21.33.0",
26
+ "@po-ui/ng-schematics": "21.33.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.32.0",
42
+ "@po-ui/style": "21.33.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.32.0');
21
+ (0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '21.33.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.32.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.33.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.32.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
14
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.33.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.32.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.33.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.32.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.33.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.32.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.33.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.32.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('21.33.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.32.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.33.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.32.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('21.33.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.32.0', changes_1.dependeciesChanges),
13
+ updatePackageJson('21.33.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.32.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.33.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.32.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('21.33.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.32.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
12
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.33.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.32.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.33.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.32.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.33.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.32.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.33.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.32.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.33.0', changes_1.updateDepedenciesVersion), postUpdate()]);
10
10
  }
11
11
  function postUpdate() {
12
12
  return (_, context) => {