@coolon/angular-ui-powerups 12.4.0-alpha.46 → 12.4.0-alpha.48

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.
@@ -6,6 +6,9 @@
6
6
  aup-inline-string-editor {
7
7
  display: block;
8
8
 
9
+ // disable padding on our internal inline activity.
10
+ --aup-activity-padding: 0;
11
+
9
12
  .container {
10
13
  mat-form-field {
11
14
  &:not(.empty) {
@@ -26,7 +29,9 @@
26
29
  //opacity: 0; // hide the underline...
27
30
  }
28
31
  }
32
+
29
33
  }
34
+
30
35
  //.content {
31
36
  // position: relative;
32
37
  // display: grid;
@@ -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 () {
@@ -6906,6 +6914,7 @@
6906
6914
  _this.editing = new pectin.MutableValueModel(false);
6907
6915
  _this._validators = new pectin.MutableListModel();
6908
6916
  _this._editingEnabled = _this.registerDisposable(new pectin.DelegatingValueModel().withDefault(true));
6917
+ pectin.assert.notNil(valueModel);
6909
6918
  var when = pectin.Dsl.disposeWith(_this).when;
6910
6919
  when(_this.editingEnabled).becomesFalsey(function () { return _this.cancelEdit(); });
6911
6920
  return _this;
@@ -6937,7 +6946,6 @@
6937
6946
  this._validators.push(validator);
6938
6947
  return this;
6939
6948
  };
6940
- ;
6941
6949
  InlineEditorModel.prototype.isEditing = function () {
6942
6950
  return this.editing.value;
6943
6951
  };