@coolon/angular-ui-powerups 12.4.0-alpha.45 → 12.4.0-alpha.47
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 +24 -15
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/section-header/section-header.component.js +12 -5
- package/esm2015/lib/components/section-header/section-header.component.js.map +1 -1
- package/esm2015/lib/components/section-header/section-header.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 +18 -10
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/section-header/section-header.component.d.ts +5 -2
- package/lib/place/place-router.d.ts +2 -2
- package/package.json +1 -1
|
@@ -2535,24 +2535,32 @@
|
|
|
2535
2535
|
];
|
|
2536
2536
|
ScrollContainerComponent.ctorParameters = function () { return []; };
|
|
2537
2537
|
|
|
2538
|
-
var SectionHeaderComponent = /** @class */ (function () {
|
|
2538
|
+
var SectionHeaderComponent = /** @class */ (function (_super) {
|
|
2539
|
+
__extends(SectionHeaderComponent, _super);
|
|
2539
2540
|
function SectionHeaderComponent() {
|
|
2540
|
-
|
|
2541
|
+
var _this = _super.call(this) || this;
|
|
2542
|
+
// readonly i18n = I18nMarsUi.components.layout.header;
|
|
2543
|
+
_this.size = 'medium';
|
|
2544
|
+
_this.borderTop = false;
|
|
2545
|
+
_this.borderBottom = false;
|
|
2546
|
+
return _this;
|
|
2541
2547
|
}
|
|
2542
2548
|
SectionHeaderComponent.prototype.ngOnInit = function () {
|
|
2543
2549
|
};
|
|
2544
2550
|
return SectionHeaderComponent;
|
|
2545
|
-
}());
|
|
2551
|
+
}(DisposableComponent));
|
|
2546
2552
|
SectionHeaderComponent.decorators = [
|
|
2547
2553
|
{ type: i0.Component, args: [{
|
|
2548
2554
|
selector: 'aup-section-header',
|
|
2549
|
-
template: "<ng-content></ng-content>\n",
|
|
2550
|
-
styles: [":host{--
|
|
2555
|
+
template: "<span class=\"container-start\"><ng-content select=\"[header-start]\"></ng-content><ng-content></ng-content></span>\n<span class=\"container-middle\"><ng-content select=\"[header-center]\"></ng-content></span>\n<span class=\"container-end\"><ng-content select=\"[header-end]\"></ng-content></span>\n",
|
|
2556
|
+
styles: [":host{display:flex;flex-direction:row;align-items:center;--resolved-padding:var(--padding,var(--default-padding));--resolved-padding-right:var(--padding-right,calc(var(--default-padding)/2));padding-left:var(--resolved-padding);padding-right:var(--resolved-padding-right);box-sizing:border-box}:host.has-back-button{padding-left:0}:host.toolbar{height:56px;min-height:56px}:host.toolbar span{font-weight:500;font-size:18px;color:rgba(0,0,0,.67)}:host.large{height:48px;min-height:48px}:host.large span{font-weight:500;font-size:14px;color:rgba(0,0,0,.67)}:host.medium{height:48px;min-height:48px}:host.medium span{font-weight:500;font-size:13px;color:rgba(0,0,0,.67)}:host.small{height:30px;min-height:30px}:host.small span{font-weight:300;font-size:12px;color:rgba(0,0,0,.67)}:host.border-top{border-top:var(--pinstripe-border)}:host.border-bottom{border-bottom:var(--pinstripe-border)}span{white-space:nowrap;display:inline-flex;flex-direction:row;align-items:center}span.container-start{justify-content:flex-start}span.container-middle{justify-content:center;flex:1;width:0;overflow:hidden}span.container-end{justify-content:flex-end}"]
|
|
2551
2557
|
},] }
|
|
2552
2558
|
];
|
|
2553
2559
|
SectionHeaderComponent.ctorParameters = function () { return []; };
|
|
2554
2560
|
SectionHeaderComponent.propDecorators = {
|
|
2555
|
-
|
|
2561
|
+
size: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class',] }],
|
|
2562
|
+
borderTop: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.border-top',] }],
|
|
2563
|
+
borderBottom: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.border-bottom',] }]
|
|
2556
2564
|
};
|
|
2557
2565
|
|
|
2558
2566
|
var SwitchCaseOption = /** @class */ (function () {
|
|
@@ -9025,6 +9033,9 @@
|
|
|
9025
9033
|
{ type: i1$1.UrlSerializer }
|
|
9026
9034
|
]; };
|
|
9027
9035
|
|
|
9036
|
+
function asArray(item) {
|
|
9037
|
+
return Array.isArray(item) ? item : [item];
|
|
9038
|
+
}
|
|
9028
9039
|
exports.PlaceRouter = /** @class */ (function (_super) {
|
|
9029
9040
|
__extends(PlaceRouter, _super);
|
|
9030
9041
|
function PlaceRouter(angularRouter, angularLocation, interactionService, urlService, placeHistory) {
|
|
@@ -9204,17 +9215,15 @@
|
|
|
9204
9215
|
};
|
|
9205
9216
|
PlaceRouter.prototype.navigate = function (visit, options) {
|
|
9206
9217
|
var _this = this;
|
|
9218
|
+
var commands = asArray(visit).reduce(function (result, v) {
|
|
9219
|
+
return __spreadArray(__spreadArray(__spreadArray([], __read(result)), [v.placeDefinition.path]), __read(_this.createRouteParameters(v)));
|
|
9220
|
+
}, []);
|
|
9207
9221
|
return this.doNavigation(visit, function (router) { return __awaiter(_this, void 0, void 0, function () {
|
|
9208
|
-
var commands;
|
|
9209
9222
|
return __generator(this, function (_a) {
|
|
9210
9223
|
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
|
-
})];
|
|
9224
|
+
case 0: return [4 /*yield*/, this.angularRouter.navigate(commands, {
|
|
9225
|
+
relativeTo: options ? options.relativeTo : null
|
|
9226
|
+
})];
|
|
9218
9227
|
case 1:
|
|
9219
9228
|
_a.sent();
|
|
9220
9229
|
return [2 /*return*/];
|
|
@@ -9233,7 +9242,7 @@
|
|
|
9233
9242
|
pectin.lang.illegalState('Navigation already in progress');
|
|
9234
9243
|
}
|
|
9235
9244
|
navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());
|
|
9236
|
-
navigation.storeVisit(
|
|
9245
|
+
asArray(visit).forEach(function (v) { return navigation.storeVisit(v); });
|
|
9237
9246
|
this.transitionTo(navigation);
|
|
9238
9247
|
_a.label = 1;
|
|
9239
9248
|
case 1:
|