tnx-shared 5.3.274 → 5.3.276

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.
@@ -4724,9 +4724,10 @@
4724
4724
  };
4725
4725
  CommonService.prototype.getStartDayEndDayWeek = function (date) {
4726
4726
  if (date === void 0) { date = new Date(); }
4727
- var dateDiff = date.getDate() - date.getDay() + (date.getDay() == 0 ? -6 : 1);
4728
- var startDate = new Date(date.setDate(dateDiff));
4729
- var endDate = new Date(new Date(date.setDate(dateDiff + 6)));
4727
+ var tmpDate = new Date(date.toDateString());
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*/];