@seniorsistemas/angular-components 17.16.2 → 17.16.3
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/seniorsistemas-angular-components.umd.js +4 -2
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/esm2015/components/locale/services/numeric.service.js +4 -1
- package/esm5/components/locale/services/numeric.service.js +4 -1
- package/fesm2015/seniorsistemas-angular-components.js +4 -2
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +4 -2
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -5925,6 +5925,8 @@ var CurrencyService = /** @class */ (function () {
|
|
|
5925
5925
|
return CurrencyService;
|
|
5926
5926
|
}());
|
|
5927
5927
|
|
|
5928
|
+
var isNullOrUndefined = function (value) { return value === null || value === undefined; };
|
|
5929
|
+
|
|
5928
5930
|
var NumericService = /** @class */ (function () {
|
|
5929
5931
|
function NumericService(localeService, currencyService) {
|
|
5930
5932
|
this.localeService = localeService;
|
|
@@ -5945,6 +5947,8 @@ var NumericService = /** @class */ (function () {
|
|
|
5945
5947
|
*/
|
|
5946
5948
|
NumericService.prototype.instant = function (value, options) {
|
|
5947
5949
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
5950
|
+
if (isNullOrUndefined(value))
|
|
5951
|
+
return null;
|
|
5948
5952
|
options = __assign(__assign({}, options), { locale: (_c = (_a = options === null || options === void 0 ? void 0 : options.locale) !== null && _a !== void 0 ? _a : (_b = this.localeService.getLocaleOptions()) === null || _b === void 0 ? void 0 : _b.locale) !== null && _c !== void 0 ? _c : "pt-BR", numberFormatOptions: __assign(__assign({}, options === null || options === void 0 ? void 0 : options.numberFormatOptions), { currency: ((_d = options === null || options === void 0 ? void 0 : options.numberFormatOptions) === null || _d === void 0 ? void 0 : _d.style) === "currency" ? ((_f = (_e = options === null || options === void 0 ? void 0 : options.numberFormatOptions) === null || _e === void 0 ? void 0 : _e.currency) !== null && _f !== void 0 ? _f : "BRL") : undefined, currencyDisplay: ((_g = options === null || options === void 0 ? void 0 : options.numberFormatOptions) === null || _g === void 0 ? void 0 : _g.style) === "currency"
|
|
5949
5953
|
? ((_j = (_h = options === null || options === void 0 ? void 0 : options.numberFormatOptions) === null || _h === void 0 ? void 0 : _h.currencyDisplay) !== null && _j !== void 0 ? _j : "narrowSymbol")
|
|
5950
5954
|
: undefined, minimumFractionDigits: (_l = (_k = options === null || options === void 0 ? void 0 : options.numberFormatOptions) === null || _k === void 0 ? void 0 : _k.minimumFractionDigits) !== null && _l !== void 0 ? _l : this.getCurrencyMinimumFractionDigits((_m = options === null || options === void 0 ? void 0 : options.numberFormatOptions) === null || _m === void 0 ? void 0 : _m.currency) }) });
|
|
@@ -7871,8 +7875,6 @@ var convertToMomentDateFormat = function (format) {
|
|
|
7871
7875
|
.replace(/\byy\b/, "YYYY"); // year (four digits)
|
|
7872
7876
|
};
|
|
7873
7877
|
|
|
7874
|
-
var isNullOrUndefined = function (value) { return value === null || value === undefined; };
|
|
7875
|
-
|
|
7876
7878
|
var ValidateErrors;
|
|
7877
7879
|
(function (ValidateErrors) {
|
|
7878
7880
|
ValidateErrors["MAX_FILE_SIZE"] = "MAX_FILE_SIZE";
|