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.
@@ -3867,9 +3867,10 @@ class CommonService {
3867
3867
  return -1;
3868
3868
  }
3869
3869
  getStartDayEndDayWeek(date = new Date()) {
3870
- const dateDiff = date.getDate() - date.getDay() + (date.getDay() == 0 ? -6 : 1);
3871
- const startDate = new Date(date.setDate(dateDiff));
3872
- const endDate = new Date(new Date(date.setDate(dateDiff + 6)));
3870
+ const tmpDate = new Date(date.toLocaleDateString());
3871
+ const dateDiff = tmpDate.getDate() - tmpDate.getDay() + (tmpDate.getDay() == 0 ? -6 : 1);
3872
+ const startDate = new Date(tmpDate.setDate(dateDiff));
3873
+ const endDate = new Date(new Date(tmpDate.setDate(dateDiff + 6)));
3873
3874
  if (startDate.getDate() > endDate.getDate() && startDate.getMonth() == endDate.getMonth()) {
3874
3875
  endDate.setMonth(endDate.getMonth() + 1);
3875
3876
  }
@@ -23148,7 +23149,7 @@ class ListBase extends ComponentBaseWithButton {
23148
23149
  }
23149
23150
  setAuthorizeButtons() {
23150
23151
  return __awaiter(this, void 0, void 0, function* () {
23151
- if (this.crudList && !this.setting.hiddenAuthorizeButton) {
23152
+ if (this.crudList && !this.setting.hiddenAuthorizeButton && !this.setting.hiddenToolbar) {
23152
23153
  this.crudList.setAuthorizeButton(this.lstButtonElement[EnumProperties.RESULTS]);
23153
23154
  }
23154
23155
  });