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
package/fesm2015/tnx-shared.js
CHANGED
|
@@ -3867,9 +3867,10 @@ class CommonService {
|
|
|
3867
3867
|
return -1;
|
|
3868
3868
|
}
|
|
3869
3869
|
getStartDayEndDayWeek(date = new Date()) {
|
|
3870
|
-
const
|
|
3871
|
-
const
|
|
3872
|
-
const
|
|
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
|
});
|