@datarailsshared/datarailsshared 1.4.243 → 1.4.248

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.
@@ -3821,6 +3821,7 @@
3821
3821
  this.formGroupDirective = formGroupDirective;
3822
3822
  this.label = 'Field error';
3823
3823
  this.errorTooltipPosition = 'top';
3824
+ this.displayAsLabel = false;
3824
3825
  this.noIcon = false;
3825
3826
  }
3826
3827
  Object.defineProperty(DrErrorComponent.prototype, "control", {
@@ -3867,9 +3868,9 @@
3867
3868
  }());
3868
3869
  DrErrorComponent.decorators = [
3869
3870
  { type: i0.Component, args: [{
3870
- template: "<div *ngIf=\"_control.status === 'INVALID' && !_control.pristine\"\n [drTooltip]=\"errorString\"\n [drTooltipPosition]=\"errorTooltipPosition\"\n class=\"error-container\"\n [class.warning]=\"isWarning\">\n <i *ngIf=\"!noIcon\" class=\"dr-icon-status-error\"></i>\n <span>{{label}}</span>\n</div>\n",
3871
+ template: "<div *ngIf=\"_control.status === 'INVALID' && !_control.pristine\"\n [drTooltip]=\"displayAsLabel ? null : errorString\"\n [drTooltipPosition]=\"errorTooltipPosition\"\n class=\"error-container\"\n [class.error-container--cursor-pointer]=\"!displayAsLabel\"\n [class.warning]=\"isWarning\">\n <i *ngIf=\"!noIcon\" class=\"dr-icon-status-error\"></i>\n <span>{{ displayAsLabel ? errorString : label }}</span>\n</div>\n",
3871
3872
  selector: 'dr-error',
3872
- styles: [":host{display:flex;margin-top:8px}:host:empty{display:none}:host .error-container{display:flex;align-items:center;cursor:pointer;width:auto;color:#bf1d30}:host .error-container i{font-size:16px;margin-right:2px}:host .error-container span{font-family:\"Poppins\",sans-serif;font-style:normal;font-weight:400;font-size:11px;line-height:20px}:host .error-container.warning{color:#ffb800}:host .error-container.warning span{color:#9e5f00}:host.no-icon{margin-top:2px}:host.no-icon .error-container span{font-size:12px}\n"]
3873
+ styles: [":host{display:flex;margin-top:8px}:host:empty{display:none}:host .error-container{display:flex;align-items:center;width:auto;color:#bf1d30}:host .error-container i{font-size:16px;margin-right:2px}:host .error-container span{font-family:\"Poppins\",sans-serif;font-style:normal;font-weight:400;font-size:11px;line-height:20px}:host .error-container.warning{color:#ffb800}:host .error-container.warning span{color:#9e5f00}:host .error-container--cursor-pointer{cursor:pointer}:host.no-icon{margin-top:2px}:host.no-icon .error-container span{font-size:12px}\n"]
3873
3874
  },] }
3874
3875
  ];
3875
3876
  DrErrorComponent.ctorParameters = function () { return [
@@ -3881,6 +3882,7 @@
3881
3882
  controlName: [{ type: i0.Input }],
3882
3883
  label: [{ type: i0.Input }],
3883
3884
  errorTooltipPosition: [{ type: i0.Input }],
3885
+ displayAsLabel: [{ type: i0.Input }],
3884
3886
  noIcon: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.no-icon',] }]
3885
3887
  };
3886
3888
 
@@ -6985,15 +6987,18 @@
6985
6987
  imports: [
6986
6988
  common.CommonModule
6987
6989
  ],
6988
- exports: __spreadArray([
6990
+ declarations: __spreadArray([
6989
6991
  TooltipComponent,
6990
6992
  DrTooltipDirective
6991
6993
  ], __read(TOOLTIP_COMPONENTS)),
6992
- providers: [],
6993
- declarations: __spreadArray([
6994
+ exports: __spreadArray([
6994
6995
  TooltipComponent,
6995
6996
  DrTooltipDirective
6996
6997
  ], __read(TOOLTIP_COMPONENTS)),
6998
+ providers: [],
6999
+ entryComponents: [
7000
+ TooltipComponent
7001
+ ]
6997
7002
  },] }
6998
7003
  ];
6999
7004