@datarailsshared/datarailsshared 1.4.244 → 1.4.257
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/datarailsshared-datarailsshared.umd.js +6 -4
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.4.257.tgz +0 -0
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/lib/date-tags/week-tag/week-tag.component.js +2 -2
- package/esm2015/lib/dr-error/dr-error.component.js +5 -3
- package/esm2015/lib/models/datePicker.js +2 -2
- package/fesm2015/datarailsshared-datarailsshared.js +6 -4
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-error/dr-error.component.d.ts +1 -0
- package/lib/models/datePicker.d.ts +1 -1
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.4.244.tgz +0 -0
|
@@ -854,7 +854,7 @@
|
|
|
854
854
|
this.dateChange.emit(resultTag);
|
|
855
855
|
};
|
|
856
856
|
WeekTagComponent.prototype.getWeekLabel = function (moment) {
|
|
857
|
-
return "W" + moment.
|
|
857
|
+
return "W" + moment.week() + " " + moment.year();
|
|
858
858
|
};
|
|
859
859
|
return WeekTagComponent;
|
|
860
860
|
}(AnyTagComponent));
|
|
@@ -2052,7 +2052,7 @@
|
|
|
2052
2052
|
DateFromats["YEAR_FORMAT"] = "yyyy";
|
|
2053
2053
|
DateFromats["MONTH_YEAR_FORMAT"] = "MM/yyyy";
|
|
2054
2054
|
DateFromats["QUARTER_FORMAT"] = "Q/yyyy";
|
|
2055
|
-
DateFromats["WEEK_FORMAT"] = "
|
|
2055
|
+
DateFromats["WEEK_FORMAT"] = "w/yyyy";
|
|
2056
2056
|
})(exports.DateFromats || (exports.DateFromats = {}));
|
|
2057
2057
|
var CustomDateFormat = /** @class */ (function () {
|
|
2058
2058
|
function CustomDateFormat() {
|
|
@@ -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;
|
|
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
|
|