tango-app-ui-shared 3.7.3-dev6-demo10 → 3.7.3-dev6-demo12

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.
@@ -8407,12 +8407,12 @@ class ZoneHeaderComponent {
8407
8407
  selectedDateRange = { startDate: dayjs().subtract(30, 'days'),
8408
8408
  endDate: dayjs().subtract(1, "days"), };
8409
8409
  selectedFilters = {
8410
- client: null,
8410
+ client: '11',
8411
8411
  clientName: null,
8412
- clients: [],
8412
+ clients: ['11'],
8413
8413
  store: null,
8414
8414
  stores: [],
8415
- date: null,
8415
+ date: { startDate: "2025-09-09", endDate: "2025-09-09" },
8416
8416
  group: [],
8417
8417
  location: [],
8418
8418
  country: [],
@@ -8529,10 +8529,10 @@ class ZoneHeaderComponent {
8529
8529
  if (storedFilters) {
8530
8530
  const headerFilters = JSON.parse(storedFilters);
8531
8531
  // if (headerFilters.date) {
8532
- headerFilters.date = {
8533
- startDate: this.dayjs("09-09-2025").format("YYYY-MM-DD"),
8534
- endDate: this.dayjs("09-09-2025").format("YYYY-MM-DD"),
8535
- };
8532
+ // headerFilters.date = {
8533
+ // startDate: this.dayjs("09-09-2025").format("YYYY-MM-DD"),
8534
+ // endDate: this.dayjs("09-09-2025").format("YYYY-MM-DD"),
8535
+ // };
8536
8536
  // headerFilters.date = this.selectedDateRange;
8537
8537
  // }
8538
8538
  // Initialize selectedFilters with defaults or existing values
@@ -8541,7 +8541,7 @@ class ZoneHeaderComponent {
8541
8541
  clientName: headerFilters.clientName || '',
8542
8542
  clients: headerFilters.clients || [],
8543
8543
  store: headerFilters.store || null,
8544
- date: headerFilters.date || {},
8544
+ date: headerFilters.date || this.selectedFilters.date,
8545
8545
  stores: headerFilters.stores || [],
8546
8546
  group: headerFilters.group || [],
8547
8547
  location: headerFilters.location || [],
@@ -8554,10 +8554,10 @@ class ZoneHeaderComponent {
8554
8554
  this.filteredStores = this.syncWithLocalStorage(headerFilters.stores);
8555
8555
  // Format date range if it exists
8556
8556
  // if (headerFilters.date) {
8557
- headerFilters.date = {
8558
- startDate: this.dayjs("09-09-2025").format("YYYY-MM-DD"),
8559
- endDate: this.dayjs("09-09-2025").format("YYYY-MM-DD"),
8560
- };
8557
+ // headerFilters.date = {
8558
+ // startDate: this.dayjs("09-09-2025").format("YYYY-MM-DD"),
8559
+ // endDate: this.dayjs("09-09-2025").format("YYYY-MM-DD"),
8560
+ // };
8561
8561
  // }
8562
8562
  // headerFilters.date = this.selectedDateRange;
8563
8563
  // console.log("3")
@@ -8588,11 +8588,11 @@ class ZoneHeaderComponent {
8588
8588
  */
8589
8589
  resetFilters() {
8590
8590
  this.selectedFilters = {
8591
- client: null,
8591
+ client: '11',
8592
8592
  clientName: '',
8593
- clients: [],
8593
+ clients: ['11'],
8594
8594
  store: null,
8595
- date: {},
8595
+ date: { startDate: "2025-09-09", endDate: "2025-09-09" },
8596
8596
  stores: [],
8597
8597
  group: [],
8598
8598
  location: [],