tnx-shared 5.3.274 → 5.3.275
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/tnx-shared.umd.js +5 -4
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/esm2015/classes/base/list-base.js +2 -2
- package/esm2015/services/common.service.js +5 -4
- package/fesm2015/tnx-shared.js +5 -4
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/common.service.d.ts.map +1 -1
|
@@ -4724,9 +4724,10 @@
|
|
|
4724
4724
|
};
|
|
4725
4725
|
CommonService.prototype.getStartDayEndDayWeek = function (date) {
|
|
4726
4726
|
if (date === void 0) { date = new Date(); }
|
|
4727
|
-
var
|
|
4728
|
-
var
|
|
4729
|
-
var
|
|
4727
|
+
var tmpDate = new Date(date.toLocaleDateString());
|
|
4728
|
+
var dateDiff = tmpDate.getDate() - tmpDate.getDay() + (tmpDate.getDay() == 0 ? -6 : 1);
|
|
4729
|
+
var startDate = new Date(tmpDate.setDate(dateDiff));
|
|
4730
|
+
var endDate = new Date(new Date(tmpDate.setDate(dateDiff + 6)));
|
|
4730
4731
|
if (startDate.getDate() > endDate.getDate() && startDate.getMonth() == endDate.getMonth()) {
|
|
4731
4732
|
endDate.setMonth(endDate.getMonth() + 1);
|
|
4732
4733
|
}
|
|
@@ -26969,7 +26970,7 @@
|
|
|
26969
26970
|
ListBase.prototype.setAuthorizeButtons = function () {
|
|
26970
26971
|
return __awaiter(this, void 0, void 0, function () {
|
|
26971
26972
|
return __generator(this, function (_a) {
|
|
26972
|
-
if (this.crudList && !this.setting.hiddenAuthorizeButton) {
|
|
26973
|
+
if (this.crudList && !this.setting.hiddenAuthorizeButton && !this.setting.hiddenToolbar) {
|
|
26973
26974
|
this.crudList.setAuthorizeButton(this.lstButtonElement[exports.EnumProperties.RESULTS]);
|
|
26974
26975
|
}
|
|
26975
26976
|
return [2 /*return*/];
|