dce-reactkit 3.2.2-beta.12 → 3.2.2-beta.14
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/dist/cjs/index.js +13 -13
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +13 -13
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/LogReviewer.tsx +15 -19
package/dist/esm/index.js
CHANGED
|
@@ -2863,11 +2863,14 @@ const LogReviewer = (props) => {
|
|
|
2863
2863
|
// Current year but included month
|
|
2864
2864
|
|| (year === newDateFilterState.endDate.year
|
|
2865
2865
|
&& month <= newDateFilterState.endDate.month)) {
|
|
2866
|
-
// Add to list
|
|
2867
|
-
|
|
2868
|
-
year
|
|
2869
|
-
|
|
2870
|
-
|
|
2866
|
+
// Add to list if not already loaded
|
|
2867
|
+
if (!logMap[year]
|
|
2868
|
+
|| !logMap[year][month]) {
|
|
2869
|
+
toLoad.push({
|
|
2870
|
+
year,
|
|
2871
|
+
month,
|
|
2872
|
+
});
|
|
2873
|
+
}
|
|
2871
2874
|
// Increment
|
|
2872
2875
|
month += 1;
|
|
2873
2876
|
if (month > 12) {
|
|
@@ -2891,6 +2894,7 @@ const LogReviewer = (props) => {
|
|
|
2891
2894
|
});
|
|
2892
2895
|
// Check which year/month combos we need to load
|
|
2893
2896
|
const toLoad = listMonthsToLoad(newDateFilterState);
|
|
2897
|
+
console.log('Filter update:', newDateFilterState, toLoad, logMap);
|
|
2894
2898
|
// If nothing to load, finished
|
|
2895
2899
|
if (toLoad.length === 0) {
|
|
2896
2900
|
return;
|
|
@@ -3004,19 +3008,15 @@ const LogReviewer = (props) => {
|
|
|
3004
3008
|
if (expandedFilterDrawer === FilterDrawer.Date) {
|
|
3005
3009
|
filterDrawer = (React.createElement(TabBox, { title: "Date" },
|
|
3006
3010
|
React.createElement(SimpleDateChooser, { ariaLabel: "filter start date", name: "filter-start-date", year: dateFilterState.startDate.year, month: dateFilterState.startDate.month, day: dateFilterState.startDate.day, chooseFromPast: true, onChange: (month, day, year) => {
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
dateFilterState: Object.assign(Object.assign({}, dateFilterState), { startDate: { month, day, year } }),
|
|
3010
|
-
});
|
|
3011
|
+
dateFilterState.startDate = { month, day, year };
|
|
3012
|
+
handleDateRangeUpdated(dateFilterState);
|
|
3011
3013
|
} }),
|
|
3012
3014
|
' ',
|
|
3013
3015
|
"to",
|
|
3014
3016
|
' ',
|
|
3015
3017
|
React.createElement(SimpleDateChooser, { ariaLabel: "filter end date", name: "filter-end-date", year: dateFilterState.endDate.year, month: dateFilterState.endDate.month, day: dateFilterState.endDate.day, chooseFromPast: true, onChange: (month, day, year) => {
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
dateFilterState: Object.assign(Object.assign({}, dateFilterState), { endDate: { month, day, year } }),
|
|
3019
|
-
});
|
|
3018
|
+
dateFilterState.endDate = { month, day, year };
|
|
3019
|
+
handleDateRangeUpdated(dateFilterState);
|
|
3020
3020
|
} })));
|
|
3021
3021
|
}
|
|
3022
3022
|
else if (expandedFilterDrawer === FilterDrawer.Context) {
|