@coolon/angular-ui-powerups 3.7.0-alpha.9 → 3.7.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.
- package/CHANGELOG.md +14 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +18 -14
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/popup-aware.component.js +3 -0
- package/esm2015/lib/components/commands/group/popup-aware.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/popup-aware.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js +10 -10
- package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu.component.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +13 -9
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/commands/group/popup-aware.component.d.ts +1 -0
- package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +3 -2
- package/package.json +5 -4
- package/schematics/ng-add/index.js +4 -4
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/place-routes/place-builder.js +1 -1
- package/schematics/place-routes/place-builder.js.map +1 -1
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.0](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.7.0-alpha.10...v3.7.0) (2021-01-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* fixed schematic issues and updated package versions ([d24992c](https://bitbucket.org/coolon/angular-ui-powerups/commit/d24992c7d04259a557771d0adfb4358ced57f54b))
|
|
11
|
+
|
|
12
|
+
## [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)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* updated AbstractPopupMenu to re-order correctly on content changes ([6d63a1b](https://bitbucket.org/coolon/angular-ui-powerups/commit/6d63a1b49e271db0b10c52e2db77310349142b8e))
|
|
18
|
+
|
|
5
19
|
## [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
20
|
|
|
7
21
|
|
|
@@ -870,16 +870,19 @@
|
|
|
870
870
|
}
|
|
871
871
|
Object.defineProperty(PopupAwareComponent.prototype, "componentIndex", {
|
|
872
872
|
get: function () {
|
|
873
|
-
|
|
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
|
};
|
|
@@ -1070,14 +1073,20 @@
|
|
|
1070
1073
|
var _this = _super.call(this, element, parent) || this;
|
|
1071
1074
|
_this._unorderedChildren = new pectin.MutableListModel();
|
|
1072
1075
|
_this.faceModelDelegate = new pectin.DelegatingValueModel();
|
|
1076
|
+
_this.faceAdapterModel = new pectin.DelegatingValueModel();
|
|
1073
1077
|
_this.xPosition = 'after';
|
|
1074
1078
|
_this.yPosition = 'below';
|
|
1075
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;
|
|
1076
|
-
//
|
|
1077
|
-
|
|
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
1083
|
_this.children = chain(_this._unorderedChildren).sortBy('componentIndex');
|
|
1079
1084
|
return _this;
|
|
1080
1085
|
}
|
|
1086
|
+
AbstractPopupMenuComponent.prototype.ngAfterContentChecked = function () {
|
|
1087
|
+
// force the list to re-order as the child indicies may have changed.
|
|
1088
|
+
this._unorderedChildren.value = __spread(this._unorderedChildren.value);
|
|
1089
|
+
};
|
|
1081
1090
|
Object.defineProperty(AbstractPopupMenuComponent.prototype, "faceAdapter", {
|
|
1082
1091
|
get: function () {
|
|
1083
1092
|
return this.faceAdapterModel.value;
|
|
@@ -1088,6 +1097,7 @@
|
|
|
1088
1097
|
AbstractPopupMenuComponent.prototype.isRoot = function () {
|
|
1089
1098
|
return !this.parent;
|
|
1090
1099
|
};
|
|
1100
|
+
// @Trace()
|
|
1091
1101
|
AbstractPopupMenuComponent.prototype.register = function (component) {
|
|
1092
1102
|
var _this = this;
|
|
1093
1103
|
this._unorderedChildren.push(component);
|
|
@@ -1122,12 +1132,6 @@
|
|
|
1122
1132
|
yPosition: [{ type: i0.Input }],
|
|
1123
1133
|
triggers: [{ type: i0.ViewChildren, args: [menu.MatMenuTrigger,] }]
|
|
1124
1134
|
};
|
|
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
1135
|
|
|
1132
1136
|
var PopupMenuRendererComponent = /** @class */ (function (_super) {
|
|
1133
1137
|
__extends(PopupMenuRendererComponent, _super);
|