tango-app-ui-shared 3.7.3-dev6-demo9 → 3.7.3-dev6-demo11

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.
@@ -8412,7 +8412,7 @@ class ZoneHeaderComponent {
8412
8412
  clients: [],
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: [],
@@ -8528,20 +8528,20 @@ class ZoneHeaderComponent {
8528
8528
  const storedFilters = localStorage.getItem("header-filters1");
8529
8529
  if (storedFilters) {
8530
8530
  const headerFilters = JSON.parse(storedFilters);
8531
- if (headerFilters.date) {
8532
- this.selectedDateRange = {
8533
- startDate: this.dayjs("09-09-2025").format("YYYY-MM-DD"),
8534
- endDate: this.dayjs("09-09-2025").format("YYYY-MM-DD"),
8535
- };
8536
- headerFilters.date = this.selectedDateRange;
8537
- }
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
+ // };
8536
+ // headerFilters.date = this.selectedDateRange;
8537
+ // }
8538
8538
  // Initialize selectedFilters with defaults or existing values
8539
8539
  this.selectedFilters = {
8540
8540
  client: headerFilters.client || this.users.client || '11',
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 || [],
@@ -8553,13 +8553,13 @@ class ZoneHeaderComponent {
8553
8553
  this.filteredGroups = this.syncWithLocalStorage(headerFilters.group);
8554
8554
  this.filteredStores = this.syncWithLocalStorage(headerFilters.stores);
8555
8555
  // Format date range if it exists
8556
- if (headerFilters.date) {
8557
- this.selectedDateRange = {
8558
- startDate: this.dayjs("09-09-2025").format("YYYY-MM-DD"),
8559
- endDate: this.dayjs("09-09-2025").format("YYYY-MM-DD"),
8560
- };
8561
- }
8562
- headerFilters.date = this.selectedDateRange;
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
+ // };
8561
+ // }
8562
+ // headerFilters.date = this.selectedDateRange;
8563
8563
  // console.log("3")
8564
8564
  // Emit data via service and update localStorage
8565
8565
  this.emitAndStoreFilters();
@@ -8592,7 +8592,7 @@ class ZoneHeaderComponent {
8592
8592
  clientName: '',
8593
8593
  clients: [],
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: [],