@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
|
@@ -944,10 +944,13 @@ VerticalFocusContainerComponent = __decorate([
|
|
|
944
944
|
/**
|
|
945
945
|
* @example
|
|
946
946
|
* // CSS Vars
|
|
947
|
-
*
|
|
948
|
-
*
|
|
949
|
-
*
|
|
950
|
-
*
|
|
947
|
+
* aup-card-container {
|
|
948
|
+
* --card-gap: var(--card-gap, 16px);
|
|
949
|
+
* --card-width: var(--card-width, 300px);
|
|
950
|
+
* --card-height: var(--card-height, auto);
|
|
951
|
+
* --card-min-height: var(--card-min-height, auto);
|
|
952
|
+
* --card-background: var(--card-background, #fcfcfb);
|
|
953
|
+
* }
|
|
951
954
|
*
|
|
952
955
|
* // Content Templates:
|
|
953
956
|
* #addCardTemplate
|
|
@@ -956,8 +959,9 @@ VerticalFocusContainerComponent = __decorate([
|
|
|
956
959
|
* </nav-template>
|
|
957
960
|
*
|
|
958
961
|
*/
|
|
959
|
-
let CardContainerComponent = class CardContainerComponent {
|
|
962
|
+
let CardContainerComponent = class CardContainerComponent extends DisposableComponent {
|
|
960
963
|
constructor() {
|
|
964
|
+
super();
|
|
961
965
|
}
|
|
962
966
|
ngOnInit() {
|
|
963
967
|
}
|
|
@@ -975,7 +979,7 @@ CardContainerComponent = __decorate([
|
|
|
975
979
|
Component({
|
|
976
980
|
selector: 'aup-card-container',
|
|
977
981
|
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",
|
|
978
|
-
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}"]
|
|
982
|
+
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}"]
|
|
979
983
|
}),
|
|
980
984
|
__metadata("design:paramtypes", [])
|
|
981
985
|
], CardContainerComponent);
|
|
@@ -3690,30 +3694,16 @@ EmptyStateComponent = __decorate([
|
|
|
3690
3694
|
let ListPlaceNavComponent = class ListPlaceNavComponent extends AbstractPlaceNavigationComponent {
|
|
3691
3695
|
constructor(placeRouter) {
|
|
3692
3696
|
super(placeRouter);
|
|
3693
|
-
this.expanded = true;
|
|
3694
|
-
}
|
|
3695
|
-
expandMenu() {
|
|
3696
|
-
this.expanded = true;
|
|
3697
|
-
}
|
|
3698
|
-
collapseMenu() {
|
|
3699
|
-
this.expanded = false;
|
|
3700
|
-
}
|
|
3701
|
-
toggleMenu() {
|
|
3702
|
-
this.expanded = !this.expanded;
|
|
3703
3697
|
}
|
|
3704
3698
|
};
|
|
3705
3699
|
ListPlaceNavComponent.ctorParameters = () => [
|
|
3706
3700
|
{ type: PlaceRouter }
|
|
3707
3701
|
];
|
|
3708
|
-
__decorate([
|
|
3709
|
-
HostBinding('class.expanded'),
|
|
3710
|
-
__metadata("design:type", Object)
|
|
3711
|
-
], ListPlaceNavComponent.prototype, "expanded", void 0);
|
|
3712
3702
|
ListPlaceNavComponent = __decorate([
|
|
3713
3703
|
Component({
|
|
3714
3704
|
selector: 'aup-list-place-nav',
|
|
3715
|
-
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
|
|
3716
|
-
styles: [":host{display:flex;flex-direction:column}"]
|
|
3705
|
+
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",
|
|
3706
|
+
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)}"]
|
|
3717
3707
|
}),
|
|
3718
3708
|
__metadata("design:paramtypes", [PlaceRouter])
|
|
3719
3709
|
], ListPlaceNavComponent);
|
|
@@ -3744,18 +3734,20 @@ TabbedPlaceNavigationComponent = __decorate([
|
|
|
3744
3734
|
* <aup-place-outlet #placeOutletComponent></aup-place-outlet>
|
|
3745
3735
|
*
|
|
3746
3736
|
* // CSS overrides:
|
|
3747
|
-
*
|
|
3748
|
-
*
|
|
3749
|
-
*
|
|
3750
|
-
*
|
|
3751
|
-
*
|
|
3737
|
+
* aup-side-place-navigation {
|
|
3738
|
+
* --nav-width: 56px
|
|
3739
|
+
* --nav-expanded-width: 235px
|
|
3740
|
+
* --nav-item-height: var(--nav-width)
|
|
3741
|
+
* --nav-background-color: #555;
|
|
3742
|
+
* --nav-color: rgba(255, 255, 255, 0.9);
|
|
3743
|
+
* }
|
|
3752
3744
|
*
|
|
3753
3745
|
* // Content Templates:
|
|
3754
3746
|
* #navEndTemplate
|
|
3755
3747
|
* <ng-template #navEndTemplate>
|
|
3756
3748
|
* <a mat-list-item (click)="logout()" matTooltip="Logout">
|
|
3757
3749
|
* <mat-icon>exit_to_app</mat-icon>
|
|
3758
|
-
* <span
|
|
3750
|
+
* <span *ngIf="sideNav.expanded">Logout</span>
|
|
3759
3751
|
* </a>
|
|
3760
3752
|
* </nav-template>
|
|
3761
3753
|
*
|