@coolon/angular-ui-powerups 3.7.0-alpha.9 → 3.7.1

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 (24) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/bundles/coolon-angular-ui-powerups.umd.js +20 -14
  3. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  6. package/coolon-angular-ui-powerups.metadata.json +1 -1
  7. package/esm2015/lib/components/commands/group/popup-aware.component.js +3 -0
  8. package/esm2015/lib/components/commands/group/popup-aware.component.js.map +1 -1
  9. package/esm2015/lib/components/commands/group/popup-aware.component.metadata.json +1 -1
  10. package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js +11 -9
  11. package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js.map +1 -1
  12. package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.metadata.json +1 -1
  13. package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.js.map +1 -1
  14. package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.metadata.json +1 -1
  15. package/esm2015/lib/components/commands/group/popup-menu/popup-menu.component.js.map +1 -1
  16. package/fesm2015/coolon-angular-ui-powerups.js +14 -8
  17. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  18. package/lib/components/commands/group/popup-aware.component.d.ts +1 -0
  19. package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +3 -2
  20. package/package.json +5 -4
  21. package/schematics/ng-add/index.js +4 -4
  22. package/schematics/ng-add/index.js.map +1 -1
  23. package/schematics/place-routes/place-builder.js +1 -1
  24. package/schematics/place-routes/place-builder.js.map +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
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.1](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.7.0...v3.7.1) (2021-01-22)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * added debug hook to find null pointer in production ([beae695](https://bitbucket.org/coolon/angular-ui-powerups/commit/beae6955c4d743f2526eb4e4c1a07d3ebc8214a1))
11
+
12
+ ## [3.7.0](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.7.0-alpha.10...v3.7.0) (2021-01-22)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * fixed schematic issues and updated package versions ([d24992c](https://bitbucket.org/coolon/angular-ui-powerups/commit/d24992c7d04259a557771d0adfb4358ced57f54b))
18
+
19
+ ## [3.7.0-alpha.10](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.7.0-alpha.9...v3.7.0-alpha.10) (2020-12-30)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * updated AbstractPopupMenu to re-order correctly on content changes ([6d63a1b](https://bitbucket.org/coolon/angular-ui-powerups/commit/6d63a1b49e271db0b10c52e2db77310349142b8e))
25
+
5
26
  ## [3.7.0-alpha.9](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.7.0-alpha.7...v3.7.0-alpha.9) (2020-12-30)
6
27
 
7
28
 
@@ -870,16 +870,19 @@
870
870
  }
871
871
  Object.defineProperty(PopupAwareComponent.prototype, "componentIndex", {
872
872
  get: function () {
873
- var node = this.element.nativeElement;
874
- var index = 0;
875
- while ((node = node.previousElementSibling)) {
876
- index++;
877
- }
878
- return index;
873
+ return this.computeComponentIndex();
879
874
  },
880
875
  enumerable: false,
881
876
  configurable: true
882
877
  });
878
+ PopupAwareComponent.prototype.computeComponentIndex = function () {
879
+ var node = this.element.nativeElement;
880
+ var index = 0;
881
+ while ((node = node.previousElementSibling)) {
882
+ index++;
883
+ }
884
+ return index;
885
+ };
883
886
  PopupAwareComponent.prototype.getFace = function () {
884
887
  return undefined;
885
888
  };
@@ -1072,15 +1075,23 @@
1072
1075
  _this.faceModelDelegate = new pectin.DelegatingValueModel();
1073
1076
  _this.xPosition = 'after';
1074
1077
  _this.yPosition = 'below';
1075
- 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;
1078
+ var _b = pectin.Dsl.disposeWith(_this), chain = _b.chain, valueOf = _b.valueOf, before = _b.before, when = _b.when, after = _b.after, observe = _b.observe, switchOn = _b.switchOn;
1076
1079
  // group.faceListModel = chain(this.faceModel).mapToList(face => [face]);
1077
1080
  _this.faceAdapterModel = chain(_this.faceModelDelegate).map(function (f) { return new exports.CommandFace.Adapter(f); });
1078
1081
  _this.children = chain(_this._unorderedChildren).sortBy('componentIndex');
1079
1082
  return _this;
1080
1083
  }
1084
+ AbstractPopupMenuComponent.prototype.ngAfterContentChecked = function () {
1085
+ // force the list to re-order as the child indicies may have changed.
1086
+ this._unorderedChildren.value = __spread(this._unorderedChildren.value);
1087
+ };
1081
1088
  Object.defineProperty(AbstractPopupMenuComponent.prototype, "faceAdapter", {
1082
1089
  get: function () {
1083
- return this.faceAdapterModel.value;
1090
+ var _a;
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 (_a = this.faceAdapterModel) === null || _a === void 0 ? void 0 : _a.value;
1084
1095
  },
1085
1096
  enumerable: false,
1086
1097
  configurable: true
@@ -1088,6 +1099,7 @@
1088
1099
  AbstractPopupMenuComponent.prototype.isRoot = function () {
1089
1100
  return !this.parent;
1090
1101
  };
1102
+ // @Trace()
1091
1103
  AbstractPopupMenuComponent.prototype.register = function (component) {
1092
1104
  var _this = this;
1093
1105
  this._unorderedChildren.push(component);
@@ -1122,12 +1134,6 @@
1122
1134
  yPosition: [{ type: i0.Input }],
1123
1135
  triggers: [{ type: i0.ViewChildren, args: [menu.MatMenuTrigger,] }]
1124
1136
  };
1125
- __decorate([
1126
- pectin.Trace(),
1127
- __metadata("design:type", Function),
1128
- __metadata("design:paramtypes", [PopupAwareComponent]),
1129
- __metadata("design:returntype", void 0)
1130
- ], AbstractPopupMenuComponent.prototype, "register", null);
1131
1137
 
1132
1138
  var PopupMenuRendererComponent = /** @class */ (function (_super) {
1133
1139
  __extends(PopupMenuRendererComponent, _super);