tango-app-ui-shared 3.7.3-dev6-demo8 → 3.7.3-dev6-demo10
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.
|
@@ -8528,25 +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
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
this.selectedDateRange = {
|
|
8539
|
-
startDate: this.dayjs("09-09-2025").format("YYYY-MM-DD"),
|
|
8540
|
-
endDate: this.dayjs("09-09-2025").format("YYYY-MM-DD"),
|
|
8541
|
-
};
|
|
8542
|
-
}
|
|
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
|
+
// }
|
|
8543
8538
|
// Initialize selectedFilters with defaults or existing values
|
|
8544
8539
|
this.selectedFilters = {
|
|
8545
8540
|
client: headerFilters.client || this.users.client || '11',
|
|
8546
8541
|
clientName: headerFilters.clientName || '',
|
|
8547
8542
|
clients: headerFilters.clients || [],
|
|
8548
8543
|
store: headerFilters.store || null,
|
|
8549
|
-
date:
|
|
8544
|
+
date: headerFilters.date || {},
|
|
8550
8545
|
stores: headerFilters.stores || [],
|
|
8551
8546
|
group: headerFilters.group || [],
|
|
8552
8547
|
location: headerFilters.location || [],
|
|
@@ -8558,18 +8553,13 @@ class ZoneHeaderComponent {
|
|
|
8558
8553
|
this.filteredGroups = this.syncWithLocalStorage(headerFilters.group);
|
|
8559
8554
|
this.filteredStores = this.syncWithLocalStorage(headerFilters.stores);
|
|
8560
8555
|
// Format date range if it exists
|
|
8561
|
-
if (headerFilters.date) {
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
}
|
|
8567
|
-
|
|
8568
|
-
this.selectedDateRange = {
|
|
8569
|
-
startDate: this.dayjs("09-09-2025").format("YYYY-MM-DD"),
|
|
8570
|
-
endDate: this.dayjs("09-09-2025").format("YYYY-MM-DD"),
|
|
8571
|
-
};
|
|
8572
|
-
}
|
|
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;
|
|
8573
8563
|
// console.log("3")
|
|
8574
8564
|
// Emit data via service and update localStorage
|
|
8575
8565
|
this.emitAndStoreFilters();
|