@coolon/angular-ui-powerups 1.5.0 → 1.6.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.
- package/CHANGELOG.md +16 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +23 -31
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
- 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/card-container/card-container.component.js +11 -6
- package/esm2015/lib/components/card-container/card-container.component.js.map +1 -1
- package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +3 -17
- 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 +8 -6
- 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/place.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/card-container/card-container.component.js +14 -8
- package/esm5/lib/components/card-container/card-container.component.js.map +1 -1
- package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js +4 -19
- package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
- package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js +8 -6
- package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
- package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +20 -28
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +23 -31
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/card-container/card-container.component.d.ts +9 -5
- package/lib/place/components/list-place-nav/list-place-nav.component.d.ts +0 -4
- package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +8 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
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
|
+
### [1.6.1](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.6.0...v1.6.1) (2020-05-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* removed obsolete internal methods from list place nav ([098a343](https://bitbucket.org/coolon/angular-ui-powerups/commit/098a343a975af87b0c2c7c1dba968c847d30ab1e))
|
|
11
|
+
* updated card container to extend disposable component ([a878141](https://bitbucket.org/coolon/angular-ui-powerups/commit/a87814137544a20c3fc2b43dbc4910878e5b6114))
|
|
12
|
+
* visual tweaks to list place nav ([ca25a87](https://bitbucket.org/coolon/angular-ui-powerups/commit/ca25a87b4a03f27da5d16c2b82cabfb54bd1667e))
|
|
13
|
+
|
|
14
|
+
## [1.6.0](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.5.0...v1.6.0) (2020-05-22)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* added min height support for aup-card-container ([1366ac6](https://bitbucket.org/coolon/angular-ui-powerups/commit/1366ac63fc052e37a9e6dc413af33ed3eb9ce405))
|
|
20
|
+
|
|
5
21
|
## [1.5.0](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.4.2...v1.5.0) (2020-05-22)
|
|
6
22
|
|
|
7
23
|
|
|
@@ -1225,10 +1225,13 @@
|
|
|
1225
1225
|
/**
|
|
1226
1226
|
* @example
|
|
1227
1227
|
* // CSS Vars
|
|
1228
|
-
*
|
|
1229
|
-
*
|
|
1230
|
-
*
|
|
1231
|
-
*
|
|
1228
|
+
* aup-card-container {
|
|
1229
|
+
* --card-gap: var(--card-gap, 16px);
|
|
1230
|
+
* --card-width: var(--card-width, 300px);
|
|
1231
|
+
* --card-height: var(--card-height, auto);
|
|
1232
|
+
* --card-min-height: var(--card-min-height, auto);
|
|
1233
|
+
* --card-background: var(--card-background, #fcfcfb);
|
|
1234
|
+
* }
|
|
1232
1235
|
*
|
|
1233
1236
|
* // Content Templates:
|
|
1234
1237
|
* #addCardTemplate
|
|
@@ -1237,8 +1240,10 @@
|
|
|
1237
1240
|
* </nav-template>
|
|
1238
1241
|
*
|
|
1239
1242
|
*/
|
|
1240
|
-
var CardContainerComponent = /** @class */ (function () {
|
|
1243
|
+
var CardContainerComponent = /** @class */ (function (_super) {
|
|
1244
|
+
__extends(CardContainerComponent, _super);
|
|
1241
1245
|
function CardContainerComponent() {
|
|
1246
|
+
return _super.call(this) || this;
|
|
1242
1247
|
}
|
|
1243
1248
|
CardContainerComponent.prototype.ngOnInit = function () {
|
|
1244
1249
|
};
|
|
@@ -1255,12 +1260,12 @@
|
|
|
1255
1260
|
core.Component({
|
|
1256
1261
|
selector: 'aup-card-container',
|
|
1257
1262
|
template: "<div class=\"card-container\">\n <ng-content></ng-content>\n\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled.value\" [pectinCommand]=\"addCardCommand\">\n <mat-icon>add</mat-icon>\n </div>\n\n <div class=\"add-card-template\" *ngIf=\"addCardTemplate\">\n <ng-container [ngTemplateOutlet]=\"addCardTemplate\"></ng-container>\n </div>\n\n</div>\n",
|
|
1258
|
-
styles: [":root{--aup-default-padding:var(--default-padding, 18px)}.dialog-interaction-context{max-width:95vw!important;max-height:95vh!important}.dialog-interaction-context mat-dialog-container{max-width:95vw!important;max-height:95vh!important;padding:0}[no-tab-header]>mat-tab-header{display:none}[full-height-tabs] .mat-tab-body-wrapper,mat-tab-group.full-height-tabs .mat-tab-body-wrapper{flex:1}[full-height-tabs] .mat-tab-body-wrapper .mat-tab-body-content,[full-height-tabs] .mat-tab-body-wrapper mat-tab-body,mat-tab-group.full-height-tabs .mat-tab-body-wrapper .mat-tab-body-content,mat-tab-group.full-height-tabs .mat-tab-body-wrapper mat-tab-body{display:flex;flex-direction:column;justify-content:stretch}.router-outlet-container>*{position:absolute;top:0;left:0;bottom:0;right:0}:host{--resolved-card-gap:var(--card-gap, 16px);--resolved-card-width:var(--card-width, 300px);--resolved-card-height:var(--card-height, auto);--resolved-card-background:var(--card-background, #fcfcfb);flex:1;display:block;background:var(--resolved-card-background)}.card-container{display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,var(--resolved-card-width));grid-template-rows:repeat(auto-fit,minmax(0,var(--resolved-card-height)));grid-gap:var(--resolved-card-gap);box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));min-width:calc(var(--resolved-card-width) + 2 * var(--resolved-card-gap));width:calc((var(--resolved-card-width) + var(--resolved-card-gap)) * 2 + var(--grid-gap));max-width:100%}.add-card-container{width:var(--resolved-card-width);height:var(--resolved-card-height);display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:rgba(0,0,0,.54);background-color:rgba(255,255,255,.8);transition:280ms cubic-bezier(.4,0,.2,1)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{transition:280ms cubic-bezier(.4,0,.2,1);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}.add-card-container:hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.add-card-template-container{width:var(--resolved-card-width);height:var(--resolved-card-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}"]
|
|
1263
|
+
styles: [":root{--aup-default-padding:var(--default-padding, 18px)}.dialog-interaction-context{max-width:95vw!important;max-height:95vh!important}.dialog-interaction-context mat-dialog-container{max-width:95vw!important;max-height:95vh!important;padding:0}[no-tab-header]>mat-tab-header{display:none}[full-height-tabs] .mat-tab-body-wrapper,mat-tab-group.full-height-tabs .mat-tab-body-wrapper{flex:1}[full-height-tabs] .mat-tab-body-wrapper .mat-tab-body-content,[full-height-tabs] .mat-tab-body-wrapper mat-tab-body,mat-tab-group.full-height-tabs .mat-tab-body-wrapper .mat-tab-body-content,mat-tab-group.full-height-tabs .mat-tab-body-wrapper mat-tab-body{display:flex;flex-direction:column;justify-content:stretch}.router-outlet-container>*{position:absolute;top:0;left:0;bottom:0;right:0}:host{--resolved-card-gap:var(--card-gap, 16px);--resolved-card-width:var(--card-width, 300px);--resolved-card-height:var(--card-height, auto);--resolved-card-min-height:var(--card-min-height, auto);--resolved-card-background:var(--card-background, #fcfcfb);flex:1;display:block;background:var(--resolved-card-background)}.card-container{display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,var(--resolved-card-width));grid-template-rows:repeat(auto-fit,minmax(0,var(--resolved-card-height)));grid-gap:var(--resolved-card-gap);box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));min-width:calc(var(--resolved-card-width) + 2 * var(--resolved-card-gap));width:calc((var(--resolved-card-width) + var(--resolved-card-gap)) * 2 + var(--grid-gap));max-width:100%}.add-card-container{width:var(--resolved-card-width);height:var(--resolved-card-height);min-height:var(--resolved-card-min-height);display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;border:2px dashed rgba(0,0,0,.1);border-radius:6px;font-weight:300;cursor:pointer;color:rgba(0,0,0,.54);background-color:rgba(255,255,255,.8);transition:280ms cubic-bezier(.4,0,.2,1)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{transition:280ms cubic-bezier(.4,0,.2,1);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}.add-card-container:hover:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.add-card-template-container{width:var(--resolved-card-width);height:var(--resolved-card-height);display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}"]
|
|
1259
1264
|
}),
|
|
1260
1265
|
__metadata("design:paramtypes", [])
|
|
1261
1266
|
], CardContainerComponent);
|
|
1262
1267
|
return CardContainerComponent;
|
|
1263
|
-
}());
|
|
1268
|
+
}(DisposableComponent));
|
|
1264
1269
|
|
|
1265
1270
|
var ComponentsModule = /** @class */ (function () {
|
|
1266
1271
|
function ComponentsModule() {
|
|
@@ -4266,31 +4271,16 @@
|
|
|
4266
4271
|
var ListPlaceNavComponent = /** @class */ (function (_super) {
|
|
4267
4272
|
__extends(ListPlaceNavComponent, _super);
|
|
4268
4273
|
function ListPlaceNavComponent(placeRouter) {
|
|
4269
|
-
|
|
4270
|
-
_this.expanded = true;
|
|
4271
|
-
return _this;
|
|
4274
|
+
return _super.call(this, placeRouter) || this;
|
|
4272
4275
|
}
|
|
4273
|
-
ListPlaceNavComponent.prototype.expandMenu = function () {
|
|
4274
|
-
this.expanded = true;
|
|
4275
|
-
};
|
|
4276
|
-
ListPlaceNavComponent.prototype.collapseMenu = function () {
|
|
4277
|
-
this.expanded = false;
|
|
4278
|
-
};
|
|
4279
|
-
ListPlaceNavComponent.prototype.toggleMenu = function () {
|
|
4280
|
-
this.expanded = !this.expanded;
|
|
4281
|
-
};
|
|
4282
4276
|
ListPlaceNavComponent.ctorParameters = function () { return [
|
|
4283
4277
|
{ type: PlaceRouter }
|
|
4284
4278
|
]; };
|
|
4285
|
-
__decorate([
|
|
4286
|
-
core.HostBinding('class.expanded'),
|
|
4287
|
-
__metadata("design:type", Object)
|
|
4288
|
-
], ListPlaceNavComponent.prototype, "expanded", void 0);
|
|
4289
4279
|
ListPlaceNavComponent = __decorate([
|
|
4290
4280
|
core.Component({
|
|
4291
4281
|
selector: 'aup-list-place-nav',
|
|
4292
|
-
template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNav(placeDefinition).tooltip()\">\n <mat-icon *ngIf=\"getNav(placeDefinition).icon()\">{{getNav(placeDefinition).icon()}}</mat-icon>\n <span
|
|
4293
|
-
styles: [":host{display:flex;flex-direction:column}"]
|
|
4282
|
+
template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNav(placeDefinition).tooltip()\">\n <mat-icon *ngIf=\"getNav(placeDefinition).icon()\">{{getNav(placeDefinition).icon()}}</mat-icon>\n <span>{{getNav(placeDefinition).title()}}</span>\n </a>\n</mat-nav-list>\n",
|
|
4283
|
+
styles: [":host{display:flex;flex-direction:column;--selected-border-color:#838383;--selected-color:inherit;--selected-background:#f1f1f1}mat-nav-list{padding-top:0}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}"]
|
|
4294
4284
|
}),
|
|
4295
4285
|
__metadata("design:paramtypes", [PlaceRouter])
|
|
4296
4286
|
], ListPlaceNavComponent);
|
|
@@ -4325,18 +4315,20 @@
|
|
|
4325
4315
|
* <aup-place-outlet #placeOutletComponent></aup-place-outlet>
|
|
4326
4316
|
*
|
|
4327
4317
|
* // CSS overrides:
|
|
4328
|
-
*
|
|
4329
|
-
*
|
|
4330
|
-
*
|
|
4331
|
-
*
|
|
4332
|
-
*
|
|
4318
|
+
* aup-side-place-navigation {
|
|
4319
|
+
* --nav-width: 56px
|
|
4320
|
+
* --nav-expanded-width: 235px
|
|
4321
|
+
* --nav-item-height: var(--nav-width)
|
|
4322
|
+
* --nav-background-color: #555;
|
|
4323
|
+
* --nav-color: rgba(255, 255, 255, 0.9);
|
|
4324
|
+
* }
|
|
4333
4325
|
*
|
|
4334
4326
|
* // Content Templates:
|
|
4335
4327
|
* #navEndTemplate
|
|
4336
4328
|
* <ng-template #navEndTemplate>
|
|
4337
4329
|
* <a mat-list-item (click)="logout()" matTooltip="Logout">
|
|
4338
4330
|
* <mat-icon>exit_to_app</mat-icon>
|
|
4339
|
-
* <span
|
|
4331
|
+
* <span *ngIf="sideNav.expanded">Logout</span>
|
|
4340
4332
|
* </a>
|
|
4341
4333
|
* </nav-template>
|
|
4342
4334
|
*
|