@coolon/angular-ui-powerups 2.0.0-alpha.37 → 2.0.0-alpha.38

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [2.0.0-alpha.38](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.37...v2.0.0-alpha.38) (2020-08-31)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * command face adapter not handling nil faces for some properties ([7c764b1](https://bitbucket.org/coolon/angular-ui-powerups/commit/7c764b10f3632cbc010411bd2fd6ba9d8e420c20))
11
+
5
12
  ## [2.0.0-alpha.37](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.36...v2.0.0-alpha.37) (2020-08-31)
6
13
 
7
14
 
@@ -614,6 +614,10 @@
614
614
  return ___default__default.isFunction(face === null || face === void 0 ? void 0 : face.icon) ? face.icon() : undefined;
615
615
  }
616
616
  CommandFace.getIconOf = getIconOf;
617
+ function getIconPositionOf(face) {
618
+ return ___default__default.isFunction(face === null || face === void 0 ? void 0 : face.iconPosition) ? face.iconPosition() : undefined;
619
+ }
620
+ CommandFace.getIconPositionOf = getIconPositionOf;
617
621
  function getTooltipOf(face) {
618
622
  return ___default__default.isFunction(face === null || face === void 0 ? void 0 : face.tooltip) ? face.tooltip() : undefined;
619
623
  }
@@ -628,7 +632,7 @@
628
632
  }
629
633
  Object.defineProperty(Adapter.prototype, "text", {
630
634
  get: function () {
631
- return ___default__default.isFunction(this.face.text) ? this.face.text() : undefined;
635
+ return CommandFace.getTextOf(this.face);
632
636
  },
633
637
  enumerable: true,
634
638
  configurable: true
@@ -642,14 +646,14 @@
642
646
  });
643
647
  Object.defineProperty(Adapter.prototype, "iconPosition", {
644
648
  get: function () {
645
- return ___default__default.isFunction(this.face.iconPosition) ? this.face.iconPosition() : undefined;
649
+ return CommandFace.getIconPositionOf(this.face);
646
650
  },
647
651
  enumerable: true,
648
652
  configurable: true
649
653
  });
650
654
  Object.defineProperty(Adapter.prototype, "tooltip", {
651
655
  get: function () {
652
- return ___default__default.isFunction(this.face.tooltip) ? this.face.tooltip() : undefined;
656
+ return CommandFace.getTooltipOf(this.face);
653
657
  },
654
658
  enumerable: true,
655
659
  configurable: true