@coolon/angular-ui-powerups 3.7.0 → 3.7.2

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,20 @@
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
+ ### [3.7.2](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.7.1...v3.7.2) (2021-01-22)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * fixed null point workaround to always return something ([b53bb4b](https://bitbucket.org/coolon/angular-ui-powerups/commit/b53bb4b322908189d087b27c4fce5f87de077c7d))
11
+
12
+ ### [3.7.1](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.7.0...v3.7.1) (2021-01-22)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * added debug hook to find null pointer in production ([beae695](https://bitbucket.org/coolon/angular-ui-powerups/commit/beae6955c4d743f2526eb4e4c1a07d3ebc8214a1))
18
+
5
19
  ## [3.7.0](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.7.0-alpha.10...v3.7.0) (2021-01-22)
6
20
 
7
21
 
@@ -1073,13 +1073,11 @@
1073
1073
  var _this = _super.call(this, element, parent) || this;
1074
1074
  _this._unorderedChildren = new pectin.MutableListModel();
1075
1075
  _this.faceModelDelegate = new pectin.DelegatingValueModel();
1076
- _this.faceAdapterModel = new pectin.DelegatingValueModel();
1077
1076
  _this.xPosition = 'after';
1078
1077
  _this.yPosition = 'below';
1079
- var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
1080
- // TODO: get faceAdapter seems to get called during the super constuctor so we have to use a delegate
1081
- // to avoid null pointers.
1082
- _this.faceAdapterModel.setDelegate(chain(_this.faceModelDelegate).map(function (f) { return new exports.CommandFace.Adapter(f); }));
1078
+ var _c = pectin.Dsl.disposeWith(_this), chain = _c.chain, valueOf = _c.valueOf, before = _c.before, when = _c.when, after = _c.after, observe = _c.observe, switchOn = _c.switchOn;
1079
+ // group.faceListModel = chain(this.faceModel).mapToList(face => [face]);
1080
+ _this.faceAdapterModel = chain(_this.faceModelDelegate).map(function (f) { return new exports.CommandFace.Adapter(f); });
1083
1081
  _this.children = chain(_this._unorderedChildren).sortBy('componentIndex');
1084
1082
  return _this;
1085
1083
  }
@@ -1089,7 +1087,11 @@
1089
1087
  };
1090
1088
  Object.defineProperty(AbstractPopupMenuComponent.prototype, "faceAdapter", {
1091
1089
  get: function () {
1092
- return this.faceAdapterModel.value;
1090
+ var _a, _b;
1091
+ if (!this.faceAdapterModel) {
1092
+ console.error("Somehow faceAdapterModel is nil -- set a break point here and let me know what's going on");
1093
+ }
1094
+ return (_b = (_a = this.faceAdapterModel) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : new exports.CommandFace.Adapter(undefined);
1093
1095
  },
1094
1096
  enumerable: false,
1095
1097
  configurable: true