@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
|
@@ -1048,10 +1048,13 @@ var VerticalFocusContainerComponent = /** @class */ (function (_super) {
|
|
|
1048
1048
|
/**
|
|
1049
1049
|
* @example
|
|
1050
1050
|
* // CSS Vars
|
|
1051
|
-
*
|
|
1052
|
-
*
|
|
1053
|
-
*
|
|
1054
|
-
*
|
|
1051
|
+
* aup-card-container {
|
|
1052
|
+
* --card-gap: var(--card-gap, 16px);
|
|
1053
|
+
* --card-width: var(--card-width, 300px);
|
|
1054
|
+
* --card-height: var(--card-height, auto);
|
|
1055
|
+
* --card-min-height: var(--card-min-height, auto);
|
|
1056
|
+
* --card-background: var(--card-background, #fcfcfb);
|
|
1057
|
+
* }
|
|
1055
1058
|
*
|
|
1056
1059
|
* // Content Templates:
|
|
1057
1060
|
* #addCardTemplate
|
|
@@ -1060,8 +1063,10 @@ var VerticalFocusContainerComponent = /** @class */ (function (_super) {
|
|
|
1060
1063
|
* </nav-template>
|
|
1061
1064
|
*
|
|
1062
1065
|
*/
|
|
1063
|
-
var CardContainerComponent = /** @class */ (function () {
|
|
1066
|
+
var CardContainerComponent = /** @class */ (function (_super) {
|
|
1067
|
+
__extends(CardContainerComponent, _super);
|
|
1064
1068
|
function CardContainerComponent() {
|
|
1069
|
+
return _super.call(this) || this;
|
|
1065
1070
|
}
|
|
1066
1071
|
CardContainerComponent.prototype.ngOnInit = function () {
|
|
1067
1072
|
};
|
|
@@ -1078,12 +1083,12 @@ var CardContainerComponent = /** @class */ (function () {
|
|
|
1078
1083
|
Component({
|
|
1079
1084
|
selector: 'aup-card-container',
|
|
1080
1085
|
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",
|
|
1081
|
-
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}"]
|
|
1086
|
+
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}"]
|
|
1082
1087
|
}),
|
|
1083
1088
|
__metadata("design:paramtypes", [])
|
|
1084
1089
|
], CardContainerComponent);
|
|
1085
1090
|
return CardContainerComponent;
|
|
1086
|
-
}());
|
|
1091
|
+
}(DisposableComponent));
|
|
1087
1092
|
|
|
1088
1093
|
var ComponentsModule = /** @class */ (function () {
|
|
1089
1094
|
function ComponentsModule() {
|
|
@@ -4089,31 +4094,16 @@ var EmptyStateComponent = /** @class */ (function () {
|
|
|
4089
4094
|
var ListPlaceNavComponent = /** @class */ (function (_super) {
|
|
4090
4095
|
__extends(ListPlaceNavComponent, _super);
|
|
4091
4096
|
function ListPlaceNavComponent(placeRouter) {
|
|
4092
|
-
|
|
4093
|
-
_this.expanded = true;
|
|
4094
|
-
return _this;
|
|
4097
|
+
return _super.call(this, placeRouter) || this;
|
|
4095
4098
|
}
|
|
4096
|
-
ListPlaceNavComponent.prototype.expandMenu = function () {
|
|
4097
|
-
this.expanded = true;
|
|
4098
|
-
};
|
|
4099
|
-
ListPlaceNavComponent.prototype.collapseMenu = function () {
|
|
4100
|
-
this.expanded = false;
|
|
4101
|
-
};
|
|
4102
|
-
ListPlaceNavComponent.prototype.toggleMenu = function () {
|
|
4103
|
-
this.expanded = !this.expanded;
|
|
4104
|
-
};
|
|
4105
4099
|
ListPlaceNavComponent.ctorParameters = function () { return [
|
|
4106
4100
|
{ type: PlaceRouter }
|
|
4107
4101
|
]; };
|
|
4108
|
-
__decorate([
|
|
4109
|
-
HostBinding('class.expanded'),
|
|
4110
|
-
__metadata("design:type", Object)
|
|
4111
|
-
], ListPlaceNavComponent.prototype, "expanded", void 0);
|
|
4112
4102
|
ListPlaceNavComponent = __decorate([
|
|
4113
4103
|
Component({
|
|
4114
4104
|
selector: 'aup-list-place-nav',
|
|
4115
|
-
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
|
|
4116
|
-
styles: [":host{display:flex;flex-direction:column}"]
|
|
4105
|
+
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",
|
|
4106
|
+
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)}"]
|
|
4117
4107
|
}),
|
|
4118
4108
|
__metadata("design:paramtypes", [PlaceRouter])
|
|
4119
4109
|
], ListPlaceNavComponent);
|
|
@@ -4148,18 +4138,20 @@ var TabbedPlaceNavigationComponent = /** @class */ (function (_super) {
|
|
|
4148
4138
|
* <aup-place-outlet #placeOutletComponent></aup-place-outlet>
|
|
4149
4139
|
*
|
|
4150
4140
|
* // CSS overrides:
|
|
4151
|
-
*
|
|
4152
|
-
*
|
|
4153
|
-
*
|
|
4154
|
-
*
|
|
4155
|
-
*
|
|
4141
|
+
* aup-side-place-navigation {
|
|
4142
|
+
* --nav-width: 56px
|
|
4143
|
+
* --nav-expanded-width: 235px
|
|
4144
|
+
* --nav-item-height: var(--nav-width)
|
|
4145
|
+
* --nav-background-color: #555;
|
|
4146
|
+
* --nav-color: rgba(255, 255, 255, 0.9);
|
|
4147
|
+
* }
|
|
4156
4148
|
*
|
|
4157
4149
|
* // Content Templates:
|
|
4158
4150
|
* #navEndTemplate
|
|
4159
4151
|
* <ng-template #navEndTemplate>
|
|
4160
4152
|
* <a mat-list-item (click)="logout()" matTooltip="Logout">
|
|
4161
4153
|
* <mat-icon>exit_to_app</mat-icon>
|
|
4162
|
-
* <span
|
|
4154
|
+
* <span *ngIf="sideNav.expanded">Logout</span>
|
|
4163
4155
|
* </a>
|
|
4164
4156
|
* </nav-template>
|
|
4165
4157
|
*
|