@po-ui/ng-components 16.2.0 → 16.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 (70) hide show
  1. package/esm2022/lib/components/po-accordion/index.mjs +2 -1
  2. package/esm2022/lib/components/po-accordion/interfaces/po-accordion-literals.interface.mjs +2 -0
  3. package/esm2022/lib/components/po-accordion/po-accordion-base.component.mjs +150 -2
  4. package/esm2022/lib/components/po-accordion/po-accordion-item/po-accordion-item.component.mjs +63 -6
  5. package/esm2022/lib/components/po-accordion/po-accordion-item-header/po-accordion-item-header.component.mjs +44 -10
  6. package/esm2022/lib/components/po-accordion/po-accordion-manager/po-accordion-manager.component.mjs +43 -0
  7. package/esm2022/lib/components/po-accordion/po-accordion.component.mjs +93 -27
  8. package/esm2022/lib/components/po-accordion/po-accordion.module.mjs +13 -7
  9. package/esm2022/lib/components/po-breadcrumb/po-breadcrumb-base.component.mjs +24 -1
  10. package/esm2022/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.component.mjs +11 -6
  11. package/esm2022/lib/components/po-breadcrumb/po-breadcrumb.component.mjs +163 -65
  12. package/esm2022/lib/components/po-breadcrumb/po-breadcrumb.module.mjs +8 -15
  13. package/esm2022/lib/components/po-field/po-input/po-input-base.component.mjs +2 -1
  14. package/esm2022/lib/components/po-field/po-input/po-mask.mjs +1 -1
  15. package/esm2022/lib/components/po-field/po-input-generic/po-input-generic.mjs +20 -1
  16. package/esm2022/lib/components/po-field/po-lookup/po-lookup-base.component.mjs +15 -2
  17. package/esm2022/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.mjs +7 -2
  18. package/esm2022/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal.component.mjs +4 -4
  19. package/esm2022/lib/components/po-field/po-lookup/po-lookup.component.mjs +3 -2
  20. package/esm2022/lib/components/po-field/po-lookup/services/po-lookup-modal.service.mjs +3 -2
  21. package/esm2022/lib/components/po-field/po-upload/po-upload-base.service.mjs +6 -2
  22. package/esm2022/lib/components/po-list-view/po-list-view.component.mjs +4 -4
  23. package/esm2022/lib/components/po-popup/po-popup-base.component.mjs +7 -3
  24. package/esm2022/lib/components/po-popup/po-popup.component.mjs +2 -1
  25. package/esm2022/lib/components/po-tree-view/po-tree-view-base.component.mjs +37 -7
  26. package/esm2022/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.component.mjs +14 -6
  27. package/esm2022/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.interface.mjs +1 -1
  28. package/esm2022/lib/components/po-tree-view/po-tree-view-item-header/po-tree-view-item-header.component.mjs +50 -16
  29. package/esm2022/lib/components/po-tree-view/po-tree-view.component.mjs +5 -5
  30. package/fesm2022/po-ui-ng-components.mjs +10205 -9783
  31. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  32. package/lib/components/po-accordion/index.d.ts +1 -0
  33. package/lib/components/po-accordion/interfaces/po-accordion-literals.interface.d.ts +13 -0
  34. package/lib/components/po-accordion/po-accordion-base.component.d.ts +105 -1
  35. package/lib/components/po-accordion/po-accordion-item/po-accordion-item.component.d.ts +41 -1
  36. package/lib/components/po-accordion/po-accordion-item-header/po-accordion-item-header.component.d.ts +7 -1
  37. package/lib/components/po-accordion/po-accordion-manager/po-accordion-manager.component.d.ts +11 -0
  38. package/lib/components/po-accordion/po-accordion.component.d.ts +15 -1
  39. package/lib/components/po-accordion/po-accordion.module.d.ts +6 -2
  40. package/lib/components/po-breadcrumb/po-breadcrumb-base.component.d.ts +3 -0
  41. package/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.component.d.ts +2 -1
  42. package/lib/components/po-breadcrumb/po-breadcrumb.component.d.ts +14 -6
  43. package/lib/components/po-breadcrumb/po-breadcrumb.module.d.ts +7 -6
  44. package/lib/components/po-field/po-input-generic/po-input-generic.d.ts +2 -0
  45. package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +17 -1
  46. package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.d.ts +4 -1
  47. package/lib/components/po-field/po-lookup/services/po-lookup-modal.service.d.ts +1 -0
  48. package/lib/components/po-field/po-switch/po-switch.component.d.ts +1 -1
  49. package/lib/components/po-modal/po-modal.component.d.ts +1 -1
  50. package/lib/components/po-popup/po-popup-base.component.d.ts +3 -1
  51. package/lib/components/po-tree-view/po-tree-view-base.component.d.ts +14 -1
  52. package/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.component.d.ts +3 -1
  53. package/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.interface.d.ts +4 -0
  54. package/lib/components/po-tree-view/po-tree-view-item-header/po-tree-view-item-header.component.d.ts +4 -1
  55. package/package.json +4 -4
  56. package/po-ui-ng-components-16.3.0.tgz +0 -0
  57. package/schematics/ng-add/index.js +1 -1
  58. package/schematics/ng-update/v14/index.js +1 -1
  59. package/schematics/ng-update/v15/index.js +1 -1
  60. package/schematics/ng-update/v16/index.js +1 -1
  61. package/schematics/ng-update/v2/index.js +1 -1
  62. package/schematics/ng-update/v3/index.js +1 -1
  63. package/schematics/ng-update/v4/index.js +1 -1
  64. package/schematics/ng-update/v5/index.js +1 -1
  65. package/schematics/ng-update/v6/index.js +1 -1
  66. package/esm2022/lib/components/po-breadcrumb/po-breadcrumb-dropdown/po-breadcrumb-dropdown.component.mjs +0 -44
  67. package/esm2022/lib/components/po-breadcrumb/po-breadcrumb-item/po-breadcrumb-item.component.mjs +0 -109
  68. package/lib/components/po-breadcrumb/po-breadcrumb-dropdown/po-breadcrumb-dropdown.component.d.ts +0 -14
  69. package/lib/components/po-breadcrumb/po-breadcrumb-item/po-breadcrumb-item.component.d.ts +0 -16
  70. package/po-ui-ng-components-16.2.0.tgz +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@po-ui/ng-components",
3
- "version": "16.2.0",
3
+ "version": "16.3.0",
4
4
  "tag": "next",
5
5
  "description": "PO UI - Components",
6
6
  "author": "PO UI",
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@angular/cdk": "~16.2.0",
25
- "@po-ui/style": "16.2.0",
26
- "@po-ui/ng-schematics": "16.2.0",
25
+ "@po-ui/style": "16.3.0",
26
+ "@po-ui/ng-schematics": "16.3.0",
27
27
  "tslib": "^2.3.0"
28
28
  },
29
29
  "peerDependencies": {
@@ -36,7 +36,7 @@
36
36
  "@angular/platform-browser": "~16.2.0",
37
37
  "@angular/platform-browser-dynamic": "~16.2.0",
38
38
  "@angular/router": "~16.2.0",
39
- "@po-ui/style": "16.2.0",
39
+ "@po-ui/style": "16.3.0",
40
40
  "rxjs": "~7.5.5",
41
41
  "zone.js": "~0.13.1"
42
42
  },
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', '16.2.0');
21
+ (0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '16.3.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)('16.2.0', changes_1.updateDepedenciesVersion), postUpdate()]);
8
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.3.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)('16.2.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
13
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.3.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)('16.2.0', changes_1.updateDepedenciesVersion), postUpdate()]);
8
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.3.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
9
  }
10
10
  exports.default = default_1;
11
11
  function postUpdate() {
@@ -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('16.2.0', changes_1.dependeciesChanges),
13
+ updatePackageJson('16.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)('16.2.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.3.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)('16.2.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.3.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)('16.2.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.3.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)('16.2.0', changes_1.updateDepedenciesVersion), postUpdate()]);
8
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.3.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
9
  }
10
10
  exports.default = default_1;
11
11
  function postUpdate() {
@@ -1,44 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- import * as i2 from "@angular/router";
5
- function PoBreadcrumbDropdownComponent_li_1_Template(rf, ctx) { if (rf & 1) {
6
- const _r3 = i0.ɵɵgetCurrentView();
7
- i0.ɵɵelementStart(0, "li", 2);
8
- i0.ɵɵlistener("click", function PoBreadcrumbDropdownComponent_li_1_Template_li_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r3); const item_r1 = restoredCtx.$implicit; return i0.ɵɵresetView(item_r1.action == null ? null : item_r1.action()); });
9
- i0.ɵɵtext(1);
10
- i0.ɵɵelementEnd();
11
- } if (rf & 2) {
12
- const item_r1 = ctx.$implicit;
13
- i0.ɵɵproperty("routerLink", item_r1.link);
14
- i0.ɵɵadvance(1);
15
- i0.ɵɵtextInterpolate1(" ", item_r1.label, " ");
16
- } }
17
- /**
18
- * @docsPrivate
19
- *
20
- * @description
21
- *
22
- * Componente que renderiza o dropdown do po-breadcrumb.
23
- */
24
- export class PoBreadcrumbDropdownComponent {
25
- // Itens a serem apresentados na lista do dropdown.
26
- items;
27
- static ɵfac = function PoBreadcrumbDropdownComponent_Factory(t) { return new (t || PoBreadcrumbDropdownComponent)(); };
28
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoBreadcrumbDropdownComponent, selectors: [["po-breadcrumb-dropdown"]], inputs: { items: ["p-items", "items"] }, decls: 2, vars: 1, consts: [[1, "po-breadcrumb-dropdown"], ["class", "po-breadcrumb-dropdown-item", 3, "routerLink", "click", 4, "ngFor", "ngForOf"], [1, "po-breadcrumb-dropdown-item", 3, "routerLink", "click"]], template: function PoBreadcrumbDropdownComponent_Template(rf, ctx) { if (rf & 1) {
29
- i0.ɵɵelementStart(0, "ul", 0);
30
- i0.ɵɵtemplate(1, PoBreadcrumbDropdownComponent_li_1_Template, 2, 2, "li", 1);
31
- i0.ɵɵelementEnd();
32
- } if (rf & 2) {
33
- i0.ɵɵadvance(1);
34
- i0.ɵɵproperty("ngForOf", ctx.items);
35
- } }, dependencies: [i1.NgForOf, i2.RouterLink], encapsulation: 2 });
36
- }
37
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoBreadcrumbDropdownComponent, [{
38
- type: Component,
39
- args: [{ selector: 'po-breadcrumb-dropdown', template: "<ul class=\"po-breadcrumb-dropdown\">\n <li class=\"po-breadcrumb-dropdown-item\" *ngFor=\"let item of items\" [routerLink]=\"item.link\" (click)=\"item.action?.()\">\n {{ item.label }}\n </li>\n</ul>\n" }]
40
- }], null, { items: [{
41
- type: Input,
42
- args: ['p-items']
43
- }] }); })();
44
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG8tYnJlYWRjcnVtYi1kcm9wZG93bi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy91aS9zcmMvbGliL2NvbXBvbmVudHMvcG8tYnJlYWRjcnVtYi9wby1icmVhZGNydW1iLWRyb3Bkb3duL3BvLWJyZWFkY3J1bWItZHJvcGRvd24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdWkvc3JjL2xpYi9jb21wb25lbnRzL3BvLWJyZWFkY3J1bWIvcG8tYnJlYWRjcnVtYi1kcm9wZG93bi9wby1icmVhZGNydW1iLWRyb3Bkb3duLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7Ozs7SUNDL0MsNkJBQXNIO0lBQTFCLDRPQUFTLGdCQUFlLEtBQUM7SUFDbkgsWUFDRjtJQUFBLGlCQUFLOzs7SUFGOEQseUNBQXdCO0lBQ3pGLGVBQ0Y7SUFERSw4Q0FDRjs7QURDRjs7Ozs7O0dBTUc7QUFLSCxNQUFNLE9BQU8sNkJBQTZCO0lBQ3hDLG1EQUFtRDtJQUNqQyxLQUFLLENBQTBCO3VGQUZ0Qyw2QkFBNkI7NkRBQTdCLDZCQUE2QjtZQ2YxQyw2QkFBbUM7WUFDakMsNEVBRUs7WUFDU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+XG4gICAge3sgaXRlbS5sYWJlbCB9fVxuICA8L2xpPlxuPC91bD5cbiJdfQ==
@@ -1,109 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- import * as i2 from "@angular/router";
5
- function PoBreadcrumbItemComponent_li_0_a_1_Template(rf, ctx) { if (rf & 1) {
6
- i0.ɵɵelementStart(0, "a", 5)(1, "label", 6);
7
- i0.ɵɵtext(2);
8
- i0.ɵɵelementEnd();
9
- i0.ɵɵelement(3, "div", 7);
10
- i0.ɵɵelementEnd();
11
- } if (rf & 2) {
12
- const ctx_r2 = i0.ɵɵnextContext(2);
13
- i0.ɵɵproperty("routerLink", ctx_r2.link);
14
- i0.ɵɵadvance(2);
15
- i0.ɵɵtextInterpolate(ctx_r2.label);
16
- } }
17
- function PoBreadcrumbItemComponent_li_0_a_2_Template(rf, ctx) { if (rf & 1) {
18
- const _r6 = i0.ɵɵgetCurrentView();
19
- i0.ɵɵelementStart(0, "a", 8);
20
- i0.ɵɵlistener("click", function PoBreadcrumbItemComponent_li_0_a_2_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r5.action(ctx_r5.label)); });
21
- i0.ɵɵelementStart(1, "label", 6);
22
- i0.ɵɵtext(2);
23
- i0.ɵɵelementEnd();
24
- i0.ɵɵelement(3, "div", 7);
25
- i0.ɵɵelementEnd();
26
- } if (rf & 2) {
27
- const ctx_r3 = i0.ɵɵnextContext(2);
28
- i0.ɵɵadvance(2);
29
- i0.ɵɵtextInterpolate(ctx_r3.label);
30
- } }
31
- function PoBreadcrumbItemComponent_li_0_a_3_Template(rf, ctx) { if (rf & 1) {
32
- i0.ɵɵelementStart(0, "a")(1, "label", 6);
33
- i0.ɵɵtext(2);
34
- i0.ɵɵelementEnd();
35
- i0.ɵɵelement(3, "div", 7);
36
- i0.ɵɵelementEnd();
37
- } if (rf & 2) {
38
- const ctx_r4 = i0.ɵɵnextContext(2);
39
- i0.ɵɵadvance(2);
40
- i0.ɵɵtextInterpolate(ctx_r4.label);
41
- } }
42
- function PoBreadcrumbItemComponent_li_0_Template(rf, ctx) { if (rf & 1) {
43
- i0.ɵɵelementStart(0, "li");
44
- i0.ɵɵtemplate(1, PoBreadcrumbItemComponent_li_0_a_1_Template, 4, 2, "a", 2);
45
- i0.ɵɵtemplate(2, PoBreadcrumbItemComponent_li_0_a_2_Template, 4, 1, "a", 3);
46
- i0.ɵɵtemplate(3, PoBreadcrumbItemComponent_li_0_a_3_Template, 4, 1, "a", 4);
47
- i0.ɵɵelementEnd();
48
- } if (rf & 2) {
49
- const ctx_r0 = i0.ɵɵnextContext();
50
- i0.ɵɵclassProp("po-breadcrumb-item", ctx_r0.link || ctx_r0.action)("po-breadcrumb-item-unclickable", !ctx_r0.link && !ctx_r0.action);
51
- i0.ɵɵadvance(1);
52
- i0.ɵɵproperty("ngIf", ctx_r0.link);
53
- i0.ɵɵadvance(1);
54
- i0.ɵɵproperty("ngIf", !ctx_r0.link && ctx_r0.action);
55
- i0.ɵɵadvance(1);
56
- i0.ɵɵproperty("ngIf", !ctx_r0.link && !ctx_r0.action);
57
- } }
58
- function PoBreadcrumbItemComponent_li_1_Template(rf, ctx) { if (rf & 1) {
59
- i0.ɵɵelementStart(0, "li", 9)(1, "label", 6);
60
- i0.ɵɵtext(2);
61
- i0.ɵɵelementEnd()();
62
- } if (rf & 2) {
63
- const ctx_r1 = i0.ɵɵnextContext();
64
- i0.ɵɵadvance(2);
65
- i0.ɵɵtextInterpolate(ctx_r1.label);
66
- } }
67
- /**
68
- * @docsPrivate
69
- *
70
- * @description
71
- *
72
- * Componente que renderiza cada item do po-breadcrumb.
73
- */
74
- export class PoBreadcrumbItemComponent {
75
- // Ação que será executada ao clicar sobre o item.
76
- action;
77
- // Label do item.
78
- label;
79
- // Link do item.
80
- link;
81
- // Especifica se item é o link ativo.
82
- itemActive = false;
83
- static ɵfac = function PoBreadcrumbItemComponent_Factory(t) { return new (t || PoBreadcrumbItemComponent)(); };
84
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoBreadcrumbItemComponent, selectors: [["po-breadcrumb-item"]], inputs: { action: ["p-action", "action"], label: ["p-label", "label"], link: ["p-link", "link"], itemActive: ["p-item-active", "itemActive"] }, decls: 2, vars: 2, consts: [[3, "po-breadcrumb-item", "po-breadcrumb-item-unclickable", 4, "ngIf"], ["class", "po-breadcrumb-item-unclickable", 4, "ngIf"], [3, "routerLink", 4, "ngIf"], [3, "click", 4, "ngIf"], [4, "ngIf"], [3, "routerLink"], [1, "po-breadcrumb-label"], [1, "po-breadcrumb-arrow"], [3, "click"], [1, "po-breadcrumb-item-unclickable"]], template: function PoBreadcrumbItemComponent_Template(rf, ctx) { if (rf & 1) {
85
- i0.ɵɵtemplate(0, PoBreadcrumbItemComponent_li_0_Template, 4, 7, "li", 0);
86
- i0.ɵɵtemplate(1, PoBreadcrumbItemComponent_li_1_Template, 3, 1, "li", 1);
87
- } if (rf & 2) {
88
- i0.ɵɵproperty("ngIf", !ctx.itemActive);
89
- i0.ɵɵadvance(1);
90
- i0.ɵɵproperty("ngIf", ctx.itemActive);
91
- } }, dependencies: [i1.NgIf, i2.RouterLink], encapsulation: 2 });
92
- }
93
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoBreadcrumbItemComponent, [{
94
- type: Component,
95
- args: [{ selector: 'po-breadcrumb-item', template: "<li\n *ngIf=\"!itemActive\"\n [class.po-breadcrumb-item]=\"link || action\"\n [class.po-breadcrumb-item-unclickable]=\"!link && !action\"\n>\n <a *ngIf=\"link\" [routerLink]=\"link\">\n <label class=\"po-breadcrumb-label\">{{ label }}</label>\n <div class=\"po-breadcrumb-arrow\"></div>\n </a>\n\n <a *ngIf=\"!link && action\" (click)=\"action(label)\">\n <label class=\"po-breadcrumb-label\">{{ label }}</label>\n <div class=\"po-breadcrumb-arrow\"></div>\n </a>\n\n <a *ngIf=\"!link && !action\">\n <label class=\"po-breadcrumb-label\">{{ label }}</label>\n <div class=\"po-breadcrumb-arrow\"></div>\n </a>\n</li>\n\n<li *ngIf=\"itemActive\" class=\"po-breadcrumb-item-unclickable\">\n <label class=\"po-breadcrumb-label\">{{ label }}</label>\n</li>\n" }]
96
- }], null, { action: [{
97
- type: Input,
98
- args: ['p-action']
99
- }], label: [{
100
- type: Input,
101
- args: ['p-label']
102
- }], link: [{
103
- type: Input,
104
- args: ['p-link']
105
- }], itemActive: [{
106
- type: Input,
107
- args: ['p-item-active']
108
- }] }); })();
109
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG8tYnJlYWRjcnVtYi1pdGVtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3VpL3NyYy9saWIvY29tcG9uZW50cy9wby1icmVhZGNydW1iL3BvLWJyZWFkY3J1bWItaXRlbS9wby1icmVhZGNydW1iLWl0ZW0uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdWkvc3JjL2xpYi9jb21wb25lbnRzL3BvLWJyZWFkY3J1bWIvcG8tYnJlYWRjcnVtYi1pdGVtL3BvLWJyZWFkY3J1bWItaXRlbS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQzs7Ozs7SUNLL0MsNEJBQW9DLGVBQUE7SUFDQyxZQUFXO0lBQUEsaUJBQVE7SUFDdEQseUJBQXVDO0lBQ3pDLGlCQUFJOzs7SUFIWSx3Q0FBbUI7SUFDRSxlQUFXO0lBQVgsa0NBQVc7Ozs7SUFJaEQsNEJBQW1EO0lBQXhCLHFLQUFTLGVBQ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bGlja2FibGVdPVwiIWxpbmsgJiYgIWFjdGlvblwiXG4+XG4gIDxhICpuZ0lmPVwibGlua1wiIFtyb3V0ZXJMaW5rXT1cImxpbmtcIj5cbiAgICA8bGFiZWwgY2xhc3M9XCJwby1icmVhZGNydW1iLWxhYmVsXCI+e3sgbGFiZWwgfX08L2xhYmVsPlxuICAgIDxkaXYgY2xhc3M9XCJwby1icmVhZGNydW1iLWFycm93XCI+PC9kaXY+XG4gIDwvYT5cblxuICA8YSAqbmdJZj1cIiFsaW5rICYmIGFjdGlvblwiIChjbGljayk9XCJhY3Rpb24obGFiZWwpXCI+XG4gICAgPGxhYmVsIGNsYXNzPVwicG8tYnJlYWRjcnVtYi1sYWJlbFwiPnt7IGxhYmVsIH19PC9sYWJlbD5cbiAgICA8ZGl2IGNsYXNzPVwicG8tYnJlYWRjcnVtYi1hcnJvd1wiPjwvZGl2PlxuICA8L2E+XG5cbiAgPGEgKm5nSWY9XCIhbGluayAmJiAhYWN0aW9uXCI+XG4gICAgPGxhYmVsIGNsYXNzPVwicG8tYnJlYWRjcnVtYi1sYWJlbFwiPnt7IGxhYmVsIH19PC9sYWJlbD5cbiAgICA8ZGl2IGNsYXNzPVwicG8tYnJlYWRjcnVtYi1hcnJvd1wiPjwvZGl2PlxuICA8L2E+XG48L2xpPlxuXG48bGkgKm5nSWY9XCJpdGVtQWN0aXZlXCIgY2xhc3M9XCJwby1icmVhZGNydW1iLWl0ZW0tdW5jbGlja2FibGVcIj5cbiAgPGxhYmVsIGNsYXNzPVwicG8tYnJlYWRjcnVtYi1sYWJlbFwiPnt7IGxhYmVsIH19PC9sYWJlbD5cbjwvbGk+XG4iXX0=
@@ -1,14 +0,0 @@
1
- import { PoBreadcrumbItem } from './../po-breadcrumb-item.interface';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @docsPrivate
5
- *
6
- * @description
7
- *
8
- * Componente que renderiza o dropdown do po-breadcrumb.
9
- */
10
- export declare class PoBreadcrumbDropdownComponent {
11
- items: Array<PoBreadcrumbItem>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<PoBreadcrumbDropdownComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<PoBreadcrumbDropdownComponent, "po-breadcrumb-dropdown", never, { "items": { "alias": "p-items"; "required": false; }; }, {}, never, never, false, never>;
14
- }
@@ -1,16 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * @docsPrivate
4
- *
5
- * @description
6
- *
7
- * Componente que renderiza cada item do po-breadcrumb.
8
- */
9
- export declare class PoBreadcrumbItemComponent {
10
- action: Function;
11
- label: string;
12
- link: string;
13
- itemActive: boolean;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<PoBreadcrumbItemComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<PoBreadcrumbItemComponent, "po-breadcrumb-item", never, { "action": { "alias": "p-action"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "link": { "alias": "p-link"; "required": false; }; "itemActive": { "alias": "p-item-active"; "required": false; }; }, {}, never, never, false, never>;
16
- }
Binary file