@coolon/angular-ui-powerups 12.4.0-alpha.63 → 12.4.0-alpha.65

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 (28) hide show
  1. package/bundles/coolon-angular-ui-powerups.umd.js +28 -17
  2. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  3. package/coolon-angular-ui-powerups.metadata.json +1 -1
  4. package/esm2015/lib/components/commands/command-face/command-face.component.js +4 -0
  5. package/esm2015/lib/components/commands/command-face/command-face.component.js.map +1 -1
  6. package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -1
  7. package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js +1 -1
  8. package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js.map +1 -1
  9. package/esm2015/lib/components/tables/table/column-model.js +5 -4
  10. package/esm2015/lib/components/tables/table/column-model.js.map +1 -1
  11. package/esm2015/lib/components/tables/table/column-model.metadata.json +1 -1
  12. package/esm2015/lib/directives/command.directive.js +1 -1
  13. package/esm2015/lib/directives/command.directive.js.map +1 -1
  14. package/esm2015/lib/interaction/activity.js +1 -1
  15. package/esm2015/lib/interaction/activity.js.map +1 -1
  16. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +1 -1
  17. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  18. package/esm2015/lib/interaction/services/interaction.service.js +1 -1
  19. package/esm2015/lib/interaction/services/interaction.service.js.map +1 -1
  20. package/esm2015/lib/place/components/abstract-place-navigation.component.js +1 -1
  21. package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
  22. package/esm2015/lib/place/place-router.js +1 -1
  23. package/esm2015/lib/place/place-router.js.map +1 -1
  24. package/fesm2015/coolon-angular-ui-powerups.js +15 -10
  25. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  26. package/lib/components/commands/command-face/command-face.component.d.ts +1 -0
  27. package/lib/components/tables/table/column-model.d.ts +2 -2
  28. package/package.json +1 -1
@@ -357,7 +357,7 @@
357
357
  function CommandDirective(elementRef, matButton, matMenuItem) {
358
358
  var _this = _super.call(this) || this;
359
359
  _this.elementRef = elementRef;
360
- _this._commandEnabled = new pectin.DelegatingValueModel().withDefault(false);
360
+ _this._commandEnabled = _this.registerDisposable(new pectin.DelegatingValueModel().withDefault(false));
361
361
  _this._commandParameterProvided = false;
362
362
  // Material buttons and menu items don't respond to the disabled binding so we
363
363
  // need to inject them from our host element and handle them manually.
@@ -1177,6 +1177,13 @@
1177
1177
  _this.activeColor = activeFace.pluck("color");
1178
1178
  return _this;
1179
1179
  }
1180
+ Object.defineProperty(CommandFaceComponent.prototype, "face", {
1181
+ set: function (face) {
1182
+ this.facesModel.value = [face];
1183
+ },
1184
+ enumerable: false,
1185
+ configurable: true
1186
+ });
1180
1187
  Object.defineProperty(CommandFaceComponent.prototype, "requiresMissingIconInLayout", {
1181
1188
  get: function () {
1182
1189
  return this.includeMissingIconInLayout && !this.activeIcon.value;
@@ -1215,6 +1222,7 @@
1215
1222
  CommandFaceComponent.ctorParameters = function () { return []; };
1216
1223
  CommandFaceComponent.propDecorators = {
1217
1224
  _rawFaces: [{ type: i0.Input, args: ['faces',] }],
1225
+ face: [{ type: i0.Input }],
1218
1226
  ignoreIcon: [{ type: i0.Input }],
1219
1227
  ignoreText: [{ type: i0.Input }],
1220
1228
  includeMissingIconInLayout: [{ type: i0.Input }],
@@ -1372,7 +1380,7 @@
1372
1380
  function AbstractPopupMenuComponent(element, parent) {
1373
1381
  var _this = _super.call(this, element, parent) || this;
1374
1382
  _this._unorderedChildren = new pectin.MutableListModel();
1375
- _this.faceModelDelegate = new pectin.DelegatingValueModel();
1383
+ _this.faceModelDelegate = _this.registerDisposable(new pectin.DelegatingValueModel());
1376
1384
  _this.xPosition = 'after';
1377
1385
  _this.yPosition = 'below';
1378
1386
  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;
@@ -3073,16 +3081,19 @@
3073
3081
  };
3074
3082
  var ɵ0 = noop;
3075
3083
  var CELL_RENDERER_COMPONENT_ROW_CACHE = Symbol('aup-cell-renderer:row-data-cache');
3076
- var ColumnModel = /** @class */ (function () {
3084
+ var ColumnModel = /** @class */ (function (_super) {
3085
+ __extends(ColumnModel, _super);
3077
3086
  function ColumnModel(columnId, textPropertiesProvider) {
3078
- this.columnId = columnId;
3079
- this.textPropertiesProvider = textPropertiesProvider;
3080
- this._enableRowSelection = true;
3081
- this._flex = false;
3082
- this._defaultVisibility = new pectin.DelegatingValueModel().withDefault(true);
3083
- this._visible = new pectin.DelegatingValueModel().withDefault(this._defaultVisibility);
3084
- this.installHeaderRenderer();
3085
- this.dasherisedColumnId = typescriptUtilities.Stringy.from(columnId).dasherize().toString();
3087
+ var _this = _super.call(this) || this;
3088
+ _this.columnId = columnId;
3089
+ _this.textPropertiesProvider = textPropertiesProvider;
3090
+ _this._enableRowSelection = true;
3091
+ _this._flex = false;
3092
+ _this._defaultVisibility = _this.registerDisposable(new pectin.DelegatingValueModel().withDefault(true));
3093
+ _this._visible = _this.registerDisposable(new pectin.DelegatingValueModel().withDefault(_this._defaultVisibility));
3094
+ _this.installHeaderRenderer();
3095
+ _this.dasherisedColumnId = typescriptUtilities.Stringy.from(columnId).dasherize().toString();
3096
+ return _this;
3086
3097
  }
3087
3098
  ColumnModel.prototype.installHeaderRenderer = function () {
3088
3099
  this.cellHeaderRenderer(DefaultHeaderCellRendererComponent, function (component, column) {
@@ -3180,7 +3191,7 @@
3180
3191
  return this._enableRowSelection;
3181
3192
  };
3182
3193
  return ColumnModel;
3183
- }());
3194
+ }(pectin.GarbageCollector));
3184
3195
  __decorate([
3185
3196
  src.Memoize(),
3186
3197
  __metadata("design:type", Function),
@@ -5189,7 +5200,7 @@
5189
5200
  __extends(Activity, _super);
5190
5201
  function Activity() {
5191
5202
  var _this = _super.call(this) || this;
5192
- _this._busyModel = new pectin.DelegatingValueModel().withDefault(false);
5203
+ _this._busyModel = _this.registerDisposable(new pectin.DelegatingValueModel().withDefault(false));
5193
5204
  _this._focusedModel = _this.registerDisposable(new pectin.DelegatingValueModel());
5194
5205
  _this.class = 'aup-activity';
5195
5206
  return _this;
@@ -5596,7 +5607,7 @@
5596
5607
  _this.activityRefs = [];
5597
5608
  _this.garbage = new pectin.GarbageCollector();
5598
5609
  _this.inAnimation = new pectin.MutableValueModel(false);
5599
- _this.busy = new pectin.DelegatingValueModel().withDefault(false);
5610
+ _this.busy = _this.registerDisposable(new pectin.DelegatingValueModel().withDefault(false));
5600
5611
  _this.registerDisposable(_this.busy);
5601
5612
  return _this;
5602
5613
  }
@@ -6070,7 +6081,7 @@
6070
6081
  function ContextRegistry() {
6071
6082
  var _this = _super.call(this) || this;
6072
6083
  _this._interactions = new pectin.MutableListModel();
6073
- _this._disabledDelegate = new pectin.DelegatingValueModel().withDefault(false);
6084
+ _this._disabledDelegate = _this.registerDisposable(new pectin.DelegatingValueModel().withDefault(false));
6074
6085
  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;
6075
6086
  _this.active = chain(_this._interactions).isNotEmpty();
6076
6087
  _this.interactionContextIds = chain(_this._interactions).pluck("identifier");
@@ -9038,7 +9049,7 @@
9038
9049
  * An observable model containing the authoriser function. This allows places to react to changes
9039
9050
  * in permissions when any underlying auth logic changes, e.g. a role being removed from a user.
9040
9051
  */
9041
- _this._accessGuard = new pectin.DelegatingValueModel().withDefault(new exports.PlaceAccessGuard.NoAuth());
9052
+ _this._accessGuard = _this.registerDisposable(new pectin.DelegatingValueModel().withDefault(new exports.PlaceAccessGuard.NoAuth()));
9042
9053
  if (window['Cypress']) {
9043
9054
  window['aup.PlaceRouter'] = _this;
9044
9055
  }
@@ -9688,7 +9699,7 @@
9688
9699
  function AbstractPlaceNavigationComponent(placeRouter) {
9689
9700
  var _this = _super.call(this) || this;
9690
9701
  _this.placeRouter = placeRouter;
9691
- _this._activePlaceComponent = new pectin.DelegatingValueModel();
9702
+ _this._activePlaceComponent = _this.registerDisposable(new pectin.DelegatingValueModel());
9692
9703
  _this.trackByPlaceDef = function (data) { return data.place; };
9693
9704
  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;
9694
9705
  _this.placeDefinitions = chain(_this.placesModel)