@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.
@@ -6070,6 +6070,8 @@
6070
6070
  return CurrencyService;
6071
6071
  }());
6072
6072
 
6073
+ var isNullOrUndefined = function (value) { return value === null || value === undefined; };
6074
+
6073
6075
  var NumericService = /** @class */ (function () {
6074
6076
  function NumericService(localeService, currencyService) {
6075
6077
  this.localeService = localeService;
@@ -6090,6 +6092,8 @@
6090
6092
  */
6091
6093
  NumericService.prototype.instant = function (value, options) {
6092
6094
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
6095
+ if (isNullOrUndefined(value))
6096
+ return null;
6093
6097
  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"
6094
6098
  ? ((_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")
6095
6099
  : 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) }) });
@@ -8016,8 +8020,6 @@
8016
8020
  .replace(/\byy\b/, "YYYY"); // year (four digits)
8017
8021
  };
8018
8022
 
8019
- var isNullOrUndefined = function (value) { return value === null || value === undefined; };
8020
-
8021
8023
 
8022
8024
  (function (ValidateErrors) {
8023
8025
  ValidateErrors["MAX_FILE_SIZE"] = "MAX_FILE_SIZE";