@seniorsistemas/angular-components 17.2.15 → 17.2.17

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.
@@ -3679,8 +3679,18 @@
3679
3679
  });
3680
3680
  };
3681
3681
  LookupComponent.prototype.printRecordTotalizer = function () {
3682
- var _a, _b, _c;
3683
- return ((_a = this.searchTotalRecordsLabel) !== null && _a !== void 0 ? _a : this.searchTotalRecords === 1) ? (_b = this.recordLabel) !== null && _b !== void 0 ? _b : this.translateService.instant("platform.angular_components.total_record", { count: this.searchTotalRecords }) : (_c = this.recordsLabel) !== null && _c !== void 0 ? _c : this.translateService.instant("platform.angular_components.total_records", { count: this.searchTotalRecords });
3682
+ if (this.searchTotalRecordsLabel) {
3683
+ return this.searchTotalRecordsLabel;
3684
+ }
3685
+ var recordLabel = this.recordLabel
3686
+ ? this.searchTotalRecords + " " + this.recordLabel
3687
+ : this.translateService.instant("platform.angular_components.total_record", { count: this.searchTotalRecords });
3688
+ var recordsLabel = this.recordsLabel
3689
+ ? this.searchTotalRecords + " " + this.recordsLabel
3690
+ : this.translateService.instant("platform.angular_components.total_records", { count: this.searchTotalRecords });
3691
+ return this.searchTotalRecords === 1
3692
+ ? recordLabel
3693
+ : recordsLabel;
3684
3694
  };
3685
3695
  LookupComponent.prototype._convertToMomentHourFormat = function (hourFormat, format) {
3686
3696
  if (format === "dd/mm/yy") { // valor padrão para o format.
@@ -6758,7 +6768,6 @@
6758
6768
  return TokenListModule;
6759
6769
  }());
6760
6770
 
6761
- var moment$5 = moment_;
6762
6771
  var TablePagingComponent = /** @class */ (function () {
6763
6772
  function TablePagingComponent(translate, hostProjectConfigs) {
6764
6773
  this.translate = translate;
@@ -6917,10 +6926,13 @@
6917
6926
  .replace(/^_/, '');
6918
6927
  };
6919
6928
  TablePagingComponent.prototype.getExportFileName = function () {
6920
- var _a;
6921
- var fileName = (_a = this.exportFileName) !== null && _a !== void 0 ? _a : "download";
6922
- var currentDate = moment$5(new Date()).format("DD-MM-YYYY[_]HH:mm");
6923
- return fileName + "_" + currentDate;
6929
+ var _a, _b;
6930
+ var lang = (_a = this.translate.currentLang) !== null && _a !== void 0 ? _a : "pt-BR";
6931
+ var date = new Date();
6932
+ var fileName = (_b = this.exportFileName) !== null && _b !== void 0 ? _b : "download";
6933
+ var formattedDate = date.toLocaleDateString(lang).replace("_", "-");
6934
+ var formattedTime = date.toLocaleTimeString(lang).replace(" ", "-");
6935
+ return fileName + "_" + formattedDate + "_" + formattedTime;
6924
6936
  };
6925
6937
  TablePagingComponent.prototype.exportCurrentPage = function () {
6926
6938
  this.validateComponent();
@@ -8476,7 +8488,7 @@
8476
8488
  CustomFieldType["Any"] = "Any";
8477
8489
  CustomFieldType["Enum"] = "Enum";
8478
8490
  })(CustomFieldType || (CustomFieldType = {}));
8479
- var moment$6 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
8491
+ var moment$5 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
8480
8492
  var CustomFieldsComponent = /** @class */ (function () {
8481
8493
  function CustomFieldsComponent(customFieldsService, localeService, sanitizer, translateService, controlContainer) {
8482
8494
  this.customFieldsService = customFieldsService;
@@ -8685,16 +8697,16 @@
8685
8697
  return;
8686
8698
  switch (type) {
8687
8699
  case exports.FieldType.Date:
8688
- parsedValues[name] = moment$6(value).toDate();
8700
+ parsedValues[name] = moment$5(value).toDate();
8689
8701
  break;
8690
8702
  case exports.FieldType.DateTime:
8691
- parsedValues[name] = moment$6(value).toDate();
8703
+ parsedValues[name] = moment$5(value).toDate();
8692
8704
  break;
8693
8705
  case exports.FieldType.LocalDateTime:
8694
- parsedValues[name] = moment$6(value, "YYYY-MM-DD[T]HH:mm:ss.SSS").toDate();
8706
+ parsedValues[name] = moment$5(value, "YYYY-MM-DD[T]HH:mm:ss.SSS").toDate();
8695
8707
  break;
8696
8708
  case exports.FieldType.Time:
8697
- parsedValues[name] = moment$6(value, "HH:mm:ss").toDate();
8709
+ parsedValues[name] = moment$5(value, "HH:mm:ss").toDate();
8698
8710
  break;
8699
8711
  }
8700
8712
  });
@@ -8727,16 +8739,16 @@
8727
8739
  value = new BigNumber__default(value).toFixed(scale).toString();
8728
8740
  break;
8729
8741
  case exports.FieldType.Date:
8730
- value = moment$6(value).format("YYYY-MM-DD");
8742
+ value = moment$5(value).format("YYYY-MM-DD");
8731
8743
  break;
8732
8744
  case exports.FieldType.DateTime:
8733
- value = moment$6(value).format();
8745
+ value = moment$5(value).format();
8734
8746
  break;
8735
8747
  case exports.FieldType.LocalDateTime:
8736
- value = moment$6(value).format("YYYY-MM-DD[T]HH:mm:ss.SSS");
8748
+ value = moment$5(value).format("YYYY-MM-DD[T]HH:mm:ss.SSS");
8737
8749
  break;
8738
8750
  case exports.FieldType.Time:
8739
- value = moment$6(value).format("HH:mm:ss");
8751
+ value = moment$5(value).format("HH:mm:ss");
8740
8752
  break;
8741
8753
  }
8742
8754
  }
@@ -9149,7 +9161,7 @@
9149
9161
  return EditableOverlayModule;
9150
9162
  }());
9151
9163
 
9152
- var moment$7 = moment_;
9164
+ var moment$6 = moment_;
9153
9165
  var YEAR = "year";
9154
9166
  var MONTH = "month";
9155
9167
  var DAY = "day";
@@ -9161,22 +9173,22 @@
9161
9173
  function DateUtils() {
9162
9174
  }
9163
9175
  DateUtils.parse = function (date) {
9164
- return moment$7(date).toDate();
9176
+ return moment$6(date).toDate();
9165
9177
  };
9166
9178
  DateUtils.toString = function (date, with_time) {
9167
9179
  if (with_time === void 0) { with_time = false; }
9168
- var result = with_time ? moment$7(date, "YYYY-MM-DD hh:mm:ss.SSS") : moment$7(date, "YYYY-MM-DD");
9180
+ var result = with_time ? moment$6(date, "YYYY-MM-DD hh:mm:ss.SSS") : moment$6(date, "YYYY-MM-DD");
9169
9181
  return result.toString();
9170
9182
  };
9171
9183
  DateUtils.format = function (date, formatString, lang) {
9172
9184
  if (formatString === void 0) { formatString = "YYYY-MM-DD HH:mm:ss.SSS"; }
9173
9185
  if (lang === void 0) { lang = "en"; }
9174
- var monthName = moment$7(date)
9186
+ var monthName = moment$6(date)
9175
9187
  .locale(lang)
9176
9188
  .startOf("month")
9177
9189
  .format("MMMM");
9178
9190
  var monthNameCapitalized = monthName.charAt(0).toUpperCase() + monthName.slice(1);
9179
- var dateToFormat = moment$7(date).locale(lang);
9191
+ var dateToFormat = moment$6(date).locale(lang);
9180
9192
  var format_map = {
9181
9193
  YYYY: dateToFormat.format("YYYY"),
9182
9194
  MM: dateToFormat.format("MM"),
@@ -9206,13 +9218,13 @@
9206
9218
  return str;
9207
9219
  };
9208
9220
  DateUtils.diff = function (fistDate, secondDate, scale) {
9209
- var milliseconds = moment$7(fistDate).diff(secondDate, MILLISECOND);
9210
- var seconds = moment$7(fistDate).diff(secondDate, SECOND);
9211
- var minutes = moment$7(fistDate).diff(secondDate, MINUTE);
9212
- var hours = moment$7(fistDate).diff(secondDate, HOUR);
9213
- var days = moment$7(fistDate).diff(secondDate, DAY);
9214
- var months = moment$7(fistDate).diff(secondDate, MONTH);
9215
- var years = moment$7(fistDate).diff(secondDate, YEAR);
9221
+ var milliseconds = moment$6(fistDate).diff(secondDate, MILLISECOND);
9222
+ var seconds = moment$6(fistDate).diff(secondDate, SECOND);
9223
+ var minutes = moment$6(fistDate).diff(secondDate, MINUTE);
9224
+ var hours = moment$6(fistDate).diff(secondDate, HOUR);
9225
+ var days = moment$6(fistDate).diff(secondDate, DAY);
9226
+ var months = moment$6(fistDate).diff(secondDate, MONTH);
9227
+ var years = moment$6(fistDate).diff(secondDate, YEAR);
9216
9228
  if (!scale.endsWith("s")) {
9217
9229
  scale += "s";
9218
9230
  }
@@ -9227,14 +9239,14 @@
9227
9239
  }[scale]);
9228
9240
  };
9229
9241
  DateUtils.today = function () {
9230
- var dateStr = moment$7().format("YYY-MM-DD");
9242
+ var dateStr = moment$6().format("YYY-MM-DD");
9231
9243
  return new Date(dateStr);
9232
9244
  };
9233
9245
  DateUtils.now = function () {
9234
- return moment$7().toDate();
9246
+ return moment$6().toDate();
9235
9247
  };
9236
9248
  DateUtils.add = function (date, quantity, scale) {
9237
- return moment$7(date).add(quantity, scale).toDate();
9249
+ return moment$6(date).add(quantity, scale).toDate();
9238
9250
  };
9239
9251
  DateUtils.startOf = function (date, scale) {
9240
9252
  var _a;
@@ -9263,7 +9275,7 @@
9263
9275
  return new Date(vals[0], vals[1], vals[2], vals[3], vals[4], vals[5], vals[6]);
9264
9276
  };
9265
9277
  DateUtils.clone = function (date) {
9266
- return moment$7(date).toDate();
9278
+ return moment$6(date).toDate();
9267
9279
  };
9268
9280
  DateUtils.getDateValues = function (date) {
9269
9281
  return [
@@ -9277,7 +9289,7 @@
9277
9289
  ];
9278
9290
  };
9279
9291
  DateUtils.getDaysInMonth = function (date) {
9280
- return moment$7(date, "YYYY-MM").daysInMonth();
9292
+ return moment$6(date, "YYYY-MM").daysInMonth();
9281
9293
  };
9282
9294
  return DateUtils;
9283
9295
  }());
@@ -15873,7 +15885,7 @@
15873
15885
  "platform.angular_components.not_informed": "Não informado",
15874
15886
  "platform.angular_components.advanced_search": "Pesquisa avançada",
15875
15887
  "platform.angular_components.no_records_found": "Nenhum registro encontrado",
15876
- "platform.angular_components.total_record": "{{ count }} registros encontrados",
15888
+ "platform.angular_components.total_record": "{{ count }} registro encontrado",
15877
15889
  "platform.angular_components.total_records": "{{ count }} registros encontrados",
15878
15890
  "platform.angular_components.total_records_selected": "{0} registros selecionados",
15879
15891
  "platform.angular_components.country_name_br": "Brasil",