ngx-wapp-components 3.0.21 → 3.0.22-alpha.2

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.
@@ -4312,11 +4312,14 @@ class WPeriodSelectFieldComponent {
4312
4312
  this.doOnChange(this.periodCategorySelected);
4313
4313
  }
4314
4314
  onClearCategory() {
4315
- this.periodCategorySelected = null;
4316
- this.fromDateValue = null;
4317
- this.toDateValue = null;
4318
- this.wSessionStorage.removeTenantPeriodSelectType(this.wLocalStorage.getTenant().tenantId, 'ticketsPeriodSelectType');
4315
+ this.periodCategorySelected = PeriodSelectEnum.Last24Hours;
4316
+ const now = new Date();
4317
+ const last24 = new Date(now.getTime() - 24 * 60 * 60 * 1000);
4318
+ this.fromDateValue = last24;
4319
+ this.toDateValue = now;
4319
4320
  this.doOnChange(this.periodCategorySelected);
4321
+ // this.periodCategorySelected = null;
4322
+ // this.wSessionStorage.removeTenantPeriodSelectType(this.wLocalStorage.getTenant().tenantId, 'ticketsPeriodSelectType');
4320
4323
  }
4321
4324
  onPeriodCategorySelected() {
4322
4325
  if (this.periodCategorySelected === PeriodSelectEnum.Last24Hours) {