@coolon/angular-ui-powerups 12.4.0-alpha.44 → 12.4.0-alpha.46
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 +12 -11
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.js +2 -2
- package/esm2015/lib/components/cards/card-container/card-container.component.js.map +1 -1
- package/esm2015/lib/components/cards/card-container/card-container.component.metadata.json +1 -1
- package/esm2015/lib/place/place-router.js +7 -5
- package/esm2015/lib/place/place-router.js.map +1 -1
- package/esm2015/lib/place/place-router.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +9 -7
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/cards/card-container/card-container.component.d.ts +1 -1
- package/lib/place/place-router.d.ts +2 -2
- package/package.json +1 -1
|
@@ -850,7 +850,7 @@
|
|
|
850
850
|
* aup-card-container {
|
|
851
851
|
* --card-gap: var(--card-gap, 16px);
|
|
852
852
|
* --card-width: var(--card-width, 300px);
|
|
853
|
-
* --card-width
|
|
853
|
+
* --card-max-width: auto;
|
|
854
854
|
* --card-height: var(--card-height, auto);
|
|
855
855
|
* --card-min-height: var(--card-min-height, auto);
|
|
856
856
|
* --card-background: var(--card-background, #fcfcfb);
|
|
@@ -915,7 +915,7 @@
|
|
|
915
915
|
{ type: i0.Component, args: [{
|
|
916
916
|
selector: 'aup-card-container',
|
|
917
917
|
template: "<div class=\"header-container\">\n <ng-content select=\"[card-container-header]\"></ng-content>\n</div>\n\n<ng-template #content>\n <div class=\"card-container\">\n <ng-content></ng-content>\n\n <div class=\"add-card-container\" *ngIf=\"addCardCommand.enabled.value\" [pectinCommand]=\"addCardCommand\">\n <aup-command-face *ngIf=\"addCardFace\" [faces]=\"[addCardFace]\"></aup-command-face>\n <aup-icon *ngIf=\"!addCardFace\" icon=\"mat:add\"></aup-icon>\n </div>\n\n <div class=\"add-card-template\" *ngIf=\"addCardTemplate\">\n <ng-container [ngTemplateOutlet]=\"addCardTemplate\"></ng-container>\n </div>\n </div>\n</ng-template>\n\n<div class=\"no-scroll-container\" *ngIf=\"!enabledScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</div>\n\n<aup-scroll-container *ngIf=\"enabledScroll\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</aup-scroll-container>\n\n<div class=\"footer-container\">\n <ng-content select=\"[card-container-footer]\"></ng-content>\n</div>\n\n",
|
|
918
|
-
styles: [":host{--resolved-card-gap:var(--card-gap,16px);--resolved-card-width:var(--card-width,300px);--resolved-card-max-width:var(--card-max-width,auto);--resolved-card-height:var(--card-height,auto);--resolved-card-min-height:var(--card-min-height,auto);--resolved-card-background:var(--card-background,var(--aup-card-container-default-background-color));flex:1;display:flex;flex-direction:column;align-items:stretch;background:var(--resolved-card-background)}:host.auto-columns .card-container{grid-template-columns:repeat(auto-fit,minmax(var(--resolved-card-width),
|
|
918
|
+
styles: [":host{--resolved-card-gap:var(--card-gap,16px);--resolved-card-width:var(--card-width,300px);--resolved-card-max-width:var(--card-max-width,auto);--resolved-card-height:var(--card-height,auto);--resolved-card-min-height:var(--card-min-height,auto);--resolved-card-background:var(--card-background,var(--aup-card-container-default-background-color));flex:1;display:flex;flex-direction:column;align-items:stretch;background:var(--resolved-card-background)}:host.auto-columns .card-container{grid-template-columns:repeat(auto-fit,minmax(var(--resolved-card-width),var(--resolved-card-max-width)));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))}:host:not(.auto-columns) .card-container{grid-template-columns:repeat(var(--aup-card-container-column-count),1fr)}.card-container{display:grid;box-sizing:border-box;padding:var(--resolved-card-gap);min-height:calc(var(--resolved-card-height) + 2 * var(--resolved-card-gap));max-width:100%;grid-auto-rows:minmax(var(--resolved-card-min-height),var(--resolved-card-height));grid-gap:var(--resolved-card-gap)}.no-scroll-container,aup-scroll-container{flex:1}.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;transition:box-shadow .28s cubic-bezier(.4,0,.2,1);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:hsla(0,0%,100%,.8)}.add-card-container mat-icon{font-size:200%}.add-card-container:hover{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);border-color:transparent;background-color:#fff;color:rgba(0,0,0,.54)}.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}"]
|
|
919
919
|
},] }
|
|
920
920
|
];
|
|
921
921
|
CardContainerComponent.ctorParameters = function () { return [
|
|
@@ -9025,6 +9025,9 @@
|
|
|
9025
9025
|
{ type: i1$1.UrlSerializer }
|
|
9026
9026
|
]; };
|
|
9027
9027
|
|
|
9028
|
+
function asArray(item) {
|
|
9029
|
+
return Array.isArray(item) ? item : [item];
|
|
9030
|
+
}
|
|
9028
9031
|
exports.PlaceRouter = /** @class */ (function (_super) {
|
|
9029
9032
|
__extends(PlaceRouter, _super);
|
|
9030
9033
|
function PlaceRouter(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
|
|
@@ -9204,17 +9207,15 @@
|
|
|
9204
9207
|
};
|
|
9205
9208
|
PlaceRouter.prototype.navigate = function (visit, options) {
|
|
9206
9209
|
var _this = this;
|
|
9210
|
+
var commands = asArray(visit).reduce(function (result, v) {
|
|
9211
|
+
return __spreadArray(__spreadArray(__spreadArray([], __read(result)), [v.placeDefinition.path]), __read(_this.createRouteParameters(v)));
|
|
9212
|
+
}, []);
|
|
9207
9213
|
return this.doNavigation(visit, function (router) { return __awaiter(_this, void 0, void 0, function () {
|
|
9208
|
-
var commands;
|
|
9209
9214
|
return __generator(this, function (_a) {
|
|
9210
9215
|
switch (_a.label) {
|
|
9211
|
-
case 0:
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
], __read(this.createRouteParameters(visit)));
|
|
9215
|
-
return [4 /*yield*/, this.angularRouter.navigate(commands, {
|
|
9216
|
-
relativeTo: options ? options.relativeTo : null
|
|
9217
|
-
})];
|
|
9216
|
+
case 0: return [4 /*yield*/, this.angularRouter.navigate(commands, {
|
|
9217
|
+
relativeTo: options ? options.relativeTo : null
|
|
9218
|
+
})];
|
|
9218
9219
|
case 1:
|
|
9219
9220
|
_a.sent();
|
|
9220
9221
|
return [2 /*return*/];
|
|
@@ -9233,7 +9234,7 @@
|
|
|
9233
9234
|
pectin.lang.illegalState('Navigation already in progress');
|
|
9234
9235
|
}
|
|
9235
9236
|
navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());
|
|
9236
|
-
navigation.storeVisit(
|
|
9237
|
+
asArray(visit).forEach(function (v) { return navigation.storeVisit(v); });
|
|
9237
9238
|
this.transitionTo(navigation);
|
|
9238
9239
|
_a.label = 1;
|
|
9239
9240
|
case 1:
|