@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.
@@ -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
- this.underline = false;
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{--def-border-bottom-color:var(--border-bottom-color,rgba(0,0,0,0.07));display:block;padding:8px 16px;font-size:12px;line-height:12px;color:rgba(0,0,0,.5)}:host.underline{border-bottom:1px solid var(--def-border-bottom-color)}"]
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
- underline: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.underline',] }]
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
- commands = __spreadArray([
9213
- visit.placeDefinition.path
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(visit);
9245
+ asArray(visit).forEach(function (v) { return navigation.storeVisit(v); });
9237
9246
  this.transitionTo(navigation);
9238
9247
  _a.label = 1;
9239
9248
  case 1: