@po-ui/ng-components 18.4.0 → 18.6.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.
@@ -96,6 +96,28 @@ export declare class PoDynamicViewBaseComponent extends PoDynamicSharedBase {
96
96
  */
97
97
  set showAllValue(value: boolean);
98
98
  get showAllValue(): boolean;
99
+ /**
100
+ * @optional
101
+ *
102
+ * @description
103
+ *
104
+ * Permite a quebra de linha no texto do `p-value`, aplicando-a onde há `\n`.
105
+ *
106
+ * ```
107
+ * <po-dynamic-view
108
+ * [p-value]="{ description: 'Primeira linha\nSegunda linha' }"
109
+ * [p-text-wrap]="true"
110
+ * ></po-dynamic-view>
111
+ * ```
112
+ *
113
+ * Saída:
114
+ * ```
115
+ * Primeira linha
116
+ * Segunda linha
117
+ * ```
118
+ * @default `false`
119
+ */
120
+ textWrap: boolean;
99
121
  /**
100
122
  * @description
101
123
  *
@@ -168,5 +190,5 @@ export declare class PoDynamicViewBaseComponent extends PoDynamicSharedBase {
168
190
  private transformValue;
169
191
  private formatField;
170
192
  static ɵfac: i0.ɵɵFactoryDeclaration<PoDynamicViewBaseComponent, never>;
171
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoDynamicViewBaseComponent, never, never, { "load": { "alias": "p-load"; "required": false; }; "fields": { "alias": "p-fields"; "required": false; }; "showAllValue": { "alias": "p-show-all-value"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; }, {}, never, never, false, never>;
193
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoDynamicViewBaseComponent, never, never, { "load": { "alias": "p-load"; "required": false; }; "fields": { "alias": "p-fields"; "required": false; }; "showAllValue": { "alias": "p-show-all-value"; "required": false; }; "textWrap": { "alias": "p-text-wrap"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; }, {}, never, never, false, never>;
172
194
  }
@@ -38,6 +38,7 @@ export declare class PoDynamicViewComponent extends PoDynamicViewBaseComponent i
38
38
  ngOnChanges(changes: SimpleChanges): void;
39
39
  ngOnInit(): void;
40
40
  setFieldValue(field: any): any;
41
+ protected containsLineBreak(value: string): boolean;
41
42
  private getValuesAndFieldsFromLoad;
42
43
  private getVisibleFields;
43
44
  private setFieldOnLoad;
@@ -1,3 +1,4 @@
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef } from '@angular/core';
1
2
  import { PoToolbarAction } from '../po-toolbar-action.interface';
2
3
  import * as i0 from "@angular/core";
3
4
  /**
@@ -13,13 +14,15 @@ import * as i0 from "@angular/core";
13
14
  * O mesmo também permite que a cada nova notificação seja incrementado e exibido, ou não, este número em uma *tag* ao lado do
14
15
  * ícone de notificações.
15
16
  */
16
- export declare class PoToolbarNotificationComponent {
17
- /** Define uma lista de ações. */
17
+ export declare class PoToolbarNotificationComponent implements AfterViewInit {
18
+ private cdr;
19
+ notificationRef: ElementRef;
18
20
  notificationActions?: Array<PoToolbarAction>;
19
21
  private _notificationNumber?;
20
- /** Define o número de notificações. */
21
22
  set notificationNumber(value: number);
22
23
  get notificationNumber(): number;
24
+ constructor(cdr: ChangeDetectorRef);
25
+ ngAfterViewInit(): void;
23
26
  static ɵfac: i0.ɵɵFactoryDeclaration<PoToolbarNotificationComponent, never>;
24
27
  static ɵcmp: i0.ɵɵComponentDeclaration<PoToolbarNotificationComponent, "po-toolbar-notification", never, { "notificationActions": { "alias": "p-notification-actions"; "required": false; }; "notificationNumber": { "alias": "p-notification-number"; "required": false; }; }, {}, never, never, false, never>;
25
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@po-ui/ng-components",
3
- "version": "18.4.0",
3
+ "version": "18.6.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": "~18.0.1",
25
- "@po-ui/style": "18.4.0",
26
- "@po-ui/ng-schematics": "18.4.0",
25
+ "@po-ui/style": "18.6.0",
26
+ "@po-ui/ng-schematics": "18.6.0",
27
27
  "tslib": "^2.6.2"
28
28
  },
29
29
  "peerDependencies": {
@@ -37,7 +37,7 @@
37
37
  "@angular/platform-browser-dynamic": "^18",
38
38
  "@angular/router": "^18",
39
39
  "@angular-devkit/schematics": "^18",
40
- "@po-ui/style": "18.4.0",
40
+ "@po-ui/style": "18.6.0",
41
41
  "rxjs": "~7.8.1",
42
42
  "zone.js": "~0.14.4"
43
43
  },
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', '18.4.0');
21
+ (0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '18.6.0');
22
22
  // install packages
23
23
  context.addTask(new tasks_1.NodePackageInstallTask());
24
24
  };
@@ -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)('18.4.0', changes_1.updateDepedenciesVersion), postUpdate()]);
8
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.6.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
9
  }
10
10
  exports.default = default_1;
11
11
  function postUpdate() {
@@ -10,7 +10,7 @@ const changes_1 = require("./changes");
10
10
  const httpClientModuleName = 'HttpClientModule';
11
11
  const httpClientModuleSourcePath = '@angular/common/http';
12
12
  function default_1() {
13
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.4.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
13
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.6.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
14
14
  }
15
15
  exports.default = default_1;
16
16
  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)('18.4.0', changes_1.updateDepedenciesVersion), postUpdate()]);
8
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.6.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
9
  }
10
10
  exports.default = default_1;
11
11
  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)('18.4.0', changes_1.updateDepedenciesVersion), postUpdate()]);
8
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.6.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
9
  }
10
10
  exports.default = default_1;
11
11
  function postUpdate() {
@@ -36,11 +36,11 @@ function main(options) {
36
36
  configureNewIcon.toLowerCase() === 'y' ||
37
37
  configureNewIcon.toLowerCase() === 'sim' ||
38
38
  configureNewIcon.toLowerCase() === '') {
39
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.4.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
39
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.6.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
40
40
  }
41
41
  else {
42
42
  return (0, schematics_1.chain)([
43
- (0, package_config_1.updatePackageJson)('18.4.0', changes_1.updateDepedenciesVersion),
43
+ (0, package_config_1.updatePackageJson)('18.6.0', changes_1.updateDepedenciesVersion),
44
44
  addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
45
45
  addProviderToAppModule(options, newProviderDictionary),
46
46
  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('18.4.0', changes_1.dependeciesChanges),
13
+ updatePackageJson('18.6.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)('18.4.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.6.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)('18.4.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.6.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)('18.4.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.6.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)('18.4.0', changes_1.updateDepedenciesVersion), postUpdate()]);
8
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.6.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
9
  }
10
10
  exports.default = default_1;
11
11
  function postUpdate() {
Binary file