@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.
- package/bundles/seniorsistemas-angular-components.umd.js +46 -34
- 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/dynamic-form/components/lookup/lookup.component.js +13 -3
- package/esm2015/components/table/table-paging/table-paging.component.js +8 -7
- package/esm2015/locale/fallback.js +2 -2
- package/esm5/components/dynamic-form/components/lookup/lookup.component.js +13 -3
- package/esm5/components/table/table-paging/table-paging.component.js +8 -7
- package/esm5/locale/fallback.js +2 -2
- package/fesm2015/seniorsistemas-angular-components.js +46 -34
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +46 -34
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -3532,8 +3532,18 @@ var LookupComponent = /** @class */ (function () {
|
|
|
3532
3532
|
});
|
|
3533
3533
|
};
|
|
3534
3534
|
LookupComponent.prototype.printRecordTotalizer = function () {
|
|
3535
|
-
|
|
3536
|
-
|
|
3535
|
+
if (this.searchTotalRecordsLabel) {
|
|
3536
|
+
return this.searchTotalRecordsLabel;
|
|
3537
|
+
}
|
|
3538
|
+
var recordLabel = this.recordLabel
|
|
3539
|
+
? this.searchTotalRecords + " " + this.recordLabel
|
|
3540
|
+
: this.translateService.instant("platform.angular_components.total_record", { count: this.searchTotalRecords });
|
|
3541
|
+
var recordsLabel = this.recordsLabel
|
|
3542
|
+
? this.searchTotalRecords + " " + this.recordsLabel
|
|
3543
|
+
: this.translateService.instant("platform.angular_components.total_records", { count: this.searchTotalRecords });
|
|
3544
|
+
return this.searchTotalRecords === 1
|
|
3545
|
+
? recordLabel
|
|
3546
|
+
: recordsLabel;
|
|
3537
3547
|
};
|
|
3538
3548
|
LookupComponent.prototype._convertToMomentHourFormat = function (hourFormat, format) {
|
|
3539
3549
|
if (format === "dd/mm/yy") { // valor padrão para o format.
|
|
@@ -6611,7 +6621,6 @@ var TokenListModule = /** @class */ (function () {
|
|
|
6611
6621
|
return TokenListModule;
|
|
6612
6622
|
}());
|
|
6613
6623
|
|
|
6614
|
-
var moment$5 = moment_;
|
|
6615
6624
|
var TablePagingComponent = /** @class */ (function () {
|
|
6616
6625
|
function TablePagingComponent(translate, hostProjectConfigs) {
|
|
6617
6626
|
this.translate = translate;
|
|
@@ -6770,10 +6779,13 @@ var TablePagingComponent = /** @class */ (function () {
|
|
|
6770
6779
|
.replace(/^_/, '');
|
|
6771
6780
|
};
|
|
6772
6781
|
TablePagingComponent.prototype.getExportFileName = function () {
|
|
6773
|
-
var _a;
|
|
6774
|
-
var
|
|
6775
|
-
var
|
|
6776
|
-
|
|
6782
|
+
var _a, _b;
|
|
6783
|
+
var lang = (_a = this.translate.currentLang) !== null && _a !== void 0 ? _a : "pt-BR";
|
|
6784
|
+
var date = new Date();
|
|
6785
|
+
var fileName = (_b = this.exportFileName) !== null && _b !== void 0 ? _b : "download";
|
|
6786
|
+
var formattedDate = date.toLocaleDateString(lang).replace("_", "-");
|
|
6787
|
+
var formattedTime = date.toLocaleTimeString(lang).replace(" ", "-");
|
|
6788
|
+
return fileName + "_" + formattedDate + "_" + formattedTime;
|
|
6777
6789
|
};
|
|
6778
6790
|
TablePagingComponent.prototype.exportCurrentPage = function () {
|
|
6779
6791
|
this.validateComponent();
|
|
@@ -8329,7 +8341,7 @@ var CustomFieldType;
|
|
|
8329
8341
|
CustomFieldType["Any"] = "Any";
|
|
8330
8342
|
CustomFieldType["Enum"] = "Enum";
|
|
8331
8343
|
})(CustomFieldType || (CustomFieldType = {}));
|
|
8332
|
-
var moment$
|
|
8344
|
+
var moment$5 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
|
|
8333
8345
|
var CustomFieldsComponent = /** @class */ (function () {
|
|
8334
8346
|
function CustomFieldsComponent(customFieldsService, localeService, sanitizer, translateService, controlContainer) {
|
|
8335
8347
|
this.customFieldsService = customFieldsService;
|
|
@@ -8538,16 +8550,16 @@ var CustomFieldsComponent = /** @class */ (function () {
|
|
|
8538
8550
|
return;
|
|
8539
8551
|
switch (type) {
|
|
8540
8552
|
case FieldType.Date:
|
|
8541
|
-
parsedValues[name] = moment$
|
|
8553
|
+
parsedValues[name] = moment$5(value).toDate();
|
|
8542
8554
|
break;
|
|
8543
8555
|
case FieldType.DateTime:
|
|
8544
|
-
parsedValues[name] = moment$
|
|
8556
|
+
parsedValues[name] = moment$5(value).toDate();
|
|
8545
8557
|
break;
|
|
8546
8558
|
case FieldType.LocalDateTime:
|
|
8547
|
-
parsedValues[name] = moment$
|
|
8559
|
+
parsedValues[name] = moment$5(value, "YYYY-MM-DD[T]HH:mm:ss.SSS").toDate();
|
|
8548
8560
|
break;
|
|
8549
8561
|
case FieldType.Time:
|
|
8550
|
-
parsedValues[name] = moment$
|
|
8562
|
+
parsedValues[name] = moment$5(value, "HH:mm:ss").toDate();
|
|
8551
8563
|
break;
|
|
8552
8564
|
}
|
|
8553
8565
|
});
|
|
@@ -8580,16 +8592,16 @@ var CustomFieldsComponent = /** @class */ (function () {
|
|
|
8580
8592
|
value = new BigNumber(value).toFixed(scale).toString();
|
|
8581
8593
|
break;
|
|
8582
8594
|
case FieldType.Date:
|
|
8583
|
-
value = moment$
|
|
8595
|
+
value = moment$5(value).format("YYYY-MM-DD");
|
|
8584
8596
|
break;
|
|
8585
8597
|
case FieldType.DateTime:
|
|
8586
|
-
value = moment$
|
|
8598
|
+
value = moment$5(value).format();
|
|
8587
8599
|
break;
|
|
8588
8600
|
case FieldType.LocalDateTime:
|
|
8589
|
-
value = moment$
|
|
8601
|
+
value = moment$5(value).format("YYYY-MM-DD[T]HH:mm:ss.SSS");
|
|
8590
8602
|
break;
|
|
8591
8603
|
case FieldType.Time:
|
|
8592
|
-
value = moment$
|
|
8604
|
+
value = moment$5(value).format("HH:mm:ss");
|
|
8593
8605
|
break;
|
|
8594
8606
|
}
|
|
8595
8607
|
}
|
|
@@ -9002,7 +9014,7 @@ var EditableOverlayModule = /** @class */ (function () {
|
|
|
9002
9014
|
return EditableOverlayModule;
|
|
9003
9015
|
}());
|
|
9004
9016
|
|
|
9005
|
-
var moment$
|
|
9017
|
+
var moment$6 = moment_;
|
|
9006
9018
|
var YEAR = "year";
|
|
9007
9019
|
var MONTH = "month";
|
|
9008
9020
|
var DAY = "day";
|
|
@@ -9014,22 +9026,22 @@ var DateUtils = /** @class */ (function () {
|
|
|
9014
9026
|
function DateUtils() {
|
|
9015
9027
|
}
|
|
9016
9028
|
DateUtils.parse = function (date) {
|
|
9017
|
-
return moment$
|
|
9029
|
+
return moment$6(date).toDate();
|
|
9018
9030
|
};
|
|
9019
9031
|
DateUtils.toString = function (date, with_time) {
|
|
9020
9032
|
if (with_time === void 0) { with_time = false; }
|
|
9021
|
-
var result = with_time ? moment$
|
|
9033
|
+
var result = with_time ? moment$6(date, "YYYY-MM-DD hh:mm:ss.SSS") : moment$6(date, "YYYY-MM-DD");
|
|
9022
9034
|
return result.toString();
|
|
9023
9035
|
};
|
|
9024
9036
|
DateUtils.format = function (date, formatString, lang) {
|
|
9025
9037
|
if (formatString === void 0) { formatString = "YYYY-MM-DD HH:mm:ss.SSS"; }
|
|
9026
9038
|
if (lang === void 0) { lang = "en"; }
|
|
9027
|
-
var monthName = moment$
|
|
9039
|
+
var monthName = moment$6(date)
|
|
9028
9040
|
.locale(lang)
|
|
9029
9041
|
.startOf("month")
|
|
9030
9042
|
.format("MMMM");
|
|
9031
9043
|
var monthNameCapitalized = monthName.charAt(0).toUpperCase() + monthName.slice(1);
|
|
9032
|
-
var dateToFormat = moment$
|
|
9044
|
+
var dateToFormat = moment$6(date).locale(lang);
|
|
9033
9045
|
var format_map = {
|
|
9034
9046
|
YYYY: dateToFormat.format("YYYY"),
|
|
9035
9047
|
MM: dateToFormat.format("MM"),
|
|
@@ -9059,13 +9071,13 @@ var DateUtils = /** @class */ (function () {
|
|
|
9059
9071
|
return str;
|
|
9060
9072
|
};
|
|
9061
9073
|
DateUtils.diff = function (fistDate, secondDate, scale) {
|
|
9062
|
-
var milliseconds = moment$
|
|
9063
|
-
var seconds = moment$
|
|
9064
|
-
var minutes = moment$
|
|
9065
|
-
var hours = moment$
|
|
9066
|
-
var days = moment$
|
|
9067
|
-
var months = moment$
|
|
9068
|
-
var years = moment$
|
|
9074
|
+
var milliseconds = moment$6(fistDate).diff(secondDate, MILLISECOND);
|
|
9075
|
+
var seconds = moment$6(fistDate).diff(secondDate, SECOND);
|
|
9076
|
+
var minutes = moment$6(fistDate).diff(secondDate, MINUTE);
|
|
9077
|
+
var hours = moment$6(fistDate).diff(secondDate, HOUR);
|
|
9078
|
+
var days = moment$6(fistDate).diff(secondDate, DAY);
|
|
9079
|
+
var months = moment$6(fistDate).diff(secondDate, MONTH);
|
|
9080
|
+
var years = moment$6(fistDate).diff(secondDate, YEAR);
|
|
9069
9081
|
if (!scale.endsWith("s")) {
|
|
9070
9082
|
scale += "s";
|
|
9071
9083
|
}
|
|
@@ -9080,14 +9092,14 @@ var DateUtils = /** @class */ (function () {
|
|
|
9080
9092
|
}[scale]);
|
|
9081
9093
|
};
|
|
9082
9094
|
DateUtils.today = function () {
|
|
9083
|
-
var dateStr = moment$
|
|
9095
|
+
var dateStr = moment$6().format("YYY-MM-DD");
|
|
9084
9096
|
return new Date(dateStr);
|
|
9085
9097
|
};
|
|
9086
9098
|
DateUtils.now = function () {
|
|
9087
|
-
return moment$
|
|
9099
|
+
return moment$6().toDate();
|
|
9088
9100
|
};
|
|
9089
9101
|
DateUtils.add = function (date, quantity, scale) {
|
|
9090
|
-
return moment$
|
|
9102
|
+
return moment$6(date).add(quantity, scale).toDate();
|
|
9091
9103
|
};
|
|
9092
9104
|
DateUtils.startOf = function (date, scale) {
|
|
9093
9105
|
var _a;
|
|
@@ -9116,7 +9128,7 @@ var DateUtils = /** @class */ (function () {
|
|
|
9116
9128
|
return new Date(vals[0], vals[1], vals[2], vals[3], vals[4], vals[5], vals[6]);
|
|
9117
9129
|
};
|
|
9118
9130
|
DateUtils.clone = function (date) {
|
|
9119
|
-
return moment$
|
|
9131
|
+
return moment$6(date).toDate();
|
|
9120
9132
|
};
|
|
9121
9133
|
DateUtils.getDateValues = function (date) {
|
|
9122
9134
|
return [
|
|
@@ -9130,7 +9142,7 @@ var DateUtils = /** @class */ (function () {
|
|
|
9130
9142
|
];
|
|
9131
9143
|
};
|
|
9132
9144
|
DateUtils.getDaysInMonth = function (date) {
|
|
9133
|
-
return moment$
|
|
9145
|
+
return moment$6(date, "YYYY-MM").daysInMonth();
|
|
9134
9146
|
};
|
|
9135
9147
|
return DateUtils;
|
|
9136
9148
|
}());
|
|
@@ -15726,7 +15738,7 @@ var fallback = {
|
|
|
15726
15738
|
"platform.angular_components.not_informed": "Não informado",
|
|
15727
15739
|
"platform.angular_components.advanced_search": "Pesquisa avançada",
|
|
15728
15740
|
"platform.angular_components.no_records_found": "Nenhum registro encontrado",
|
|
15729
|
-
"platform.angular_components.total_record": "{{ count }}
|
|
15741
|
+
"platform.angular_components.total_record": "{{ count }} registro encontrado",
|
|
15730
15742
|
"platform.angular_components.total_records": "{{ count }} registros encontrados",
|
|
15731
15743
|
"platform.angular_components.total_records_selected": "{0} registros selecionados",
|
|
15732
15744
|
"platform.angular_components.country_name_br": "Brasil",
|