@coolon/angular-ui-powerups 11.0.0-alpha.8 → 11.0.0-alpha.9
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/bundles/coolon-angular-ui-powerups.umd.js +28 -11
- 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/table/table-model.js +9 -0
- package/esm2015/lib/components/table/table-model.js.map +1 -1
- package/esm2015/lib/components/table/table-model.metadata.json +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js +16 -2
- package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/place-component.js +1 -3
- package/esm2015/lib/place/place-component.js.map +1 -1
- package/esm2015/lib/place/place-component.metadata.json +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +29 -8
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/table/table-model.d.ts +9 -0
- package/lib/place/components/abstract-place-navigation.component.d.ts +8 -1
- package/lib/place/place-component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6003,6 +6003,15 @@
|
|
|
6003
6003
|
* table.addCustomColumn("fullName", hero => `${hero.firstName} ${hero.lastName}`);
|
|
6004
6004
|
* });
|
|
6005
6005
|
*
|
|
6006
|
+
* Template columns
|
|
6007
|
+
* @example
|
|
6008
|
+
* const model = TableModel.fromList(heroList, table => {
|
|
6009
|
+
* table.addSelectionColumn(selectionModel); // <- can be single or multiple selection model
|
|
6010
|
+
* table.addTemplateColumn("myTemplate");
|
|
6011
|
+
* });
|
|
6012
|
+
*
|
|
6013
|
+
* <div *aupColumnTemplate="let hero; columnId: 'myTemplate'">{{hero.age}}</div>
|
|
6014
|
+
*
|
|
6006
6015
|
* I18n
|
|
6007
6016
|
* @example
|
|
6008
6017
|
* [table.yml]
|
|
@@ -6369,6 +6378,7 @@
|
|
|
6369
6378
|
_this._active = new pectin.MutableValueModel(false);
|
|
6370
6379
|
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;
|
|
6371
6380
|
when(_this._active).becomesTruthy(function () { return _this.onPlaceReady(); });
|
|
6381
|
+
_this.childPlaces = _this.placeDefinition.children.map(function (d) { return d.component; });
|
|
6372
6382
|
return _this;
|
|
6373
6383
|
}
|
|
6374
6384
|
// @Trace()
|
|
@@ -6418,13 +6428,6 @@
|
|
|
6418
6428
|
enumerable: false,
|
|
6419
6429
|
configurable: true
|
|
6420
6430
|
});
|
|
6421
|
-
Object.defineProperty(PlaceComponent.prototype, "childPlaces", {
|
|
6422
|
-
get: function () {
|
|
6423
|
-
return this.placeDefinition.children.map(function (d) { return d.component; });
|
|
6424
|
-
},
|
|
6425
|
-
enumerable: false,
|
|
6426
|
-
configurable: true
|
|
6427
|
-
});
|
|
6428
6431
|
Object.defineProperty(PlaceComponent.prototype, "active", {
|
|
6429
6432
|
get: function () {
|
|
6430
6433
|
return this._active.readonly;
|
|
@@ -8397,6 +8400,7 @@
|
|
|
8397
8400
|
var _this = _super.call(this) || this;
|
|
8398
8401
|
_this.placeRouter = placeRouter;
|
|
8399
8402
|
_this._activePlaceComponent = new pectin.DelegatingValueModel();
|
|
8403
|
+
_this.trackByPlaceDef = function (data) { return data.place; };
|
|
8400
8404
|
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;
|
|
8401
8405
|
_this.placeDefinitions = chain(_this.placesModel)
|
|
8402
8406
|
.map(function (c) { return exports.PlaceComponent.getDefinition(c); })
|
|
@@ -8415,6 +8419,19 @@
|
|
|
8415
8419
|
setTimeout(function () { return _this._activePlaceComponent.setDelegate(outlet ? outlet.activePlaceModel : null); });
|
|
8416
8420
|
});
|
|
8417
8421
|
_this.activePlaceDefinition = chain(_this._activePlaceComponent).pluck('placeDefinition');
|
|
8422
|
+
_this.menuItems = chain(_this.placeDefinitions).map(function (d) {
|
|
8423
|
+
return {
|
|
8424
|
+
place: d,
|
|
8425
|
+
active: _this.activePlaceDefinition.value === d
|
|
8426
|
+
};
|
|
8427
|
+
}, {
|
|
8428
|
+
dependsOn: _this.activePlaceDefinition
|
|
8429
|
+
});
|
|
8430
|
+
var txo = new pectin.TransactionObserver({ verbose: true }).onEvent(function (e) { return console.log(e.name, e.payload); });
|
|
8431
|
+
txo.observe('this.placesModel', _this.placesModel);
|
|
8432
|
+
txo.observe('this.placeDefinitions', _this.placeDefinitions);
|
|
8433
|
+
txo.observe('this.activePlaceDefinition', _this.activePlaceDefinition);
|
|
8434
|
+
txo.observe('this.menuItems', _this.menuItems);
|
|
8418
8435
|
return _this;
|
|
8419
8436
|
}
|
|
8420
8437
|
AbstractPlaceNavigationComponent.prototype.getNavigationFace = function (placeDef) {
|
|
@@ -8426,7 +8443,7 @@
|
|
|
8426
8443
|
};
|
|
8427
8444
|
};
|
|
8428
8445
|
AbstractPlaceNavigationComponent.prototype.isActive = function (place) {
|
|
8429
|
-
return
|
|
8446
|
+
return;
|
|
8430
8447
|
};
|
|
8431
8448
|
AbstractPlaceNavigationComponent.prototype.ngOnInit = function () {
|
|
8432
8449
|
};
|
|
@@ -8479,7 +8496,7 @@
|
|
|
8479
8496
|
ListPlaceNavComponent.decorators = [
|
|
8480
8497
|
{ type: i0.Component, args: [{
|
|
8481
8498
|
selector: 'aup-list-place-nav',
|
|
8482
|
-
template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let
|
|
8499
|
+
template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n [pectinCommand]=\"commandFactory.create(item.place)\"\n [class.active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n</mat-nav-list>\n",
|
|
8483
8500
|
styles: [":host{display:flex;flex-direction:column;--selected-border-color:#838383;--selected-color:inherit;--selected-background:#f1f1f1}mat-nav-list{padding-top:0}a{border-right:2px solid transparent}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}"]
|
|
8484
8501
|
},] }
|
|
8485
8502
|
];
|
|
@@ -8550,7 +8567,7 @@
|
|
|
8550
8567
|
SidePlaceNavigationComponent.decorators = [
|
|
8551
8568
|
{ type: i0.Component, args: [{
|
|
8552
8569
|
selector: 'aup-side-place-navigation',
|
|
8553
|
-
template: "<mat-nav-list>\n <a mat-list-item (click)=\"toggleMenu()\" class=\"home\">\n <aup-icon class=\"collapsed-only\" icon=\"mat:menu\"></aup-icon>\n <aup-icon class=\"expanded-only\" icon=\"mat:arrow_back\"></aup-icon>\n <span class=\"expanded-only\">Menu</span>\n </a>\n <a mat-list-item *ngFor=\"let
|
|
8570
|
+
template: "<mat-nav-list>\n <a mat-list-item (click)=\"toggleMenu()\" class=\"home\">\n <aup-icon class=\"collapsed-only\" icon=\"mat:menu\"></aup-icon>\n <aup-icon class=\"expanded-only\" icon=\"mat:arrow_back\"></aup-icon>\n <span class=\"expanded-only\">Menu</span>\n </a>\n <a mat-list-item *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n [pectinCommand]=\"commandFactory.create(item.place)\"\n [class.active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-icon *ngIf=\"getNavigationFace(item.place).icon()\" [icon]=\"getNavigationFace(item.place).icon()\"></aup-icon>\n <span class=\"expanded-only\">{{getNavigationFace(item.place).text()}}</span>\n </a>\n <span [style.flex]=\"1\"></span>\n <ng-container *ngIf=\"navEndTemplate\" [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n</mat-nav-list>\n",
|
|
8554
8571
|
styles: [":host{display:flex;flex-direction:column;--resolved-nav-item-width:var(--nav-width,56px);--resolved-nav-item-height:var(--nav-item-height,var(--resolved-nav-item-width));--resolved-expanded-width:var(--nav-expanded-width,235px);--resolved-color:var(--nav-color,hsla(0,0%,100%,0.9));--resolved-background-color:var(--nav-background-color,#555);width:var(--resolved-nav-item-width);transition:width 125ms linear;background-color:var(--resolved-background-color);color:var(--resolved-color)}:host.expanded{width:var(--resolved-expanded-width);max-width:var(--resolved-expanded-width)}:host-context(.expanded) .expanded-only{max-width:100%}:host-context(.expanded) .collapsed-only{max-width:0}:host-context(.expanded) .mat-list-item aup-icon:not(.collapsed-only){margin-right:12px}:host-context(.expanded) .mat-list-item span{text-wrap:none;white-space:nowrap}.expanded-only{max-width:0;overflow:hidden}.collapsed-only{max-width:100%;overflow:hidden}mat-nav-list{flex:1;display:flex;flex-direction:column}.mat-list-item{width:var(--resolved-nav-item-width);height:var(--resolved-nav-item-height);color:inherit}.mat-list-item.active{background-color:#444}.mat-list-item.home{text-align:left}mat-icon{color:inherit}mat-icon.flip-horizontal{transform:scaleX(-1)}"]
|
|
8555
8572
|
},] }
|
|
8556
8573
|
];
|
|
@@ -8572,7 +8589,7 @@
|
|
|
8572
8589
|
TabbedPlaceNavigationComponent.decorators = [
|
|
8573
8590
|
{ type: i0.Component, args: [{
|
|
8574
8591
|
selector: 'aup-tabbed-place-navigation',
|
|
8575
|
-
template: "<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor=\"let
|
|
8592
|
+
template: "<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n [pectinCommand]=\"commandFactory.create(item.place)\"\n [active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n</nav>\n",
|
|
8576
8593
|
styles: [""]
|
|
8577
8594
|
},] }
|
|
8578
8595
|
];
|