dce-reactkit 3.2.2-beta.49 → 3.2.2-beta.50
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/esm/index.js
CHANGED
|
@@ -1339,7 +1339,7 @@ const SimpleDateChooser = (props) => {
|
|
|
1339
1339
|
let startMonth = today.month;
|
|
1340
1340
|
if (chooseFromPast) {
|
|
1341
1341
|
startMonth -= Math.max(0, numMonthsToShow - 1);
|
|
1342
|
-
|
|
1342
|
+
while (startMonth <= 0) {
|
|
1343
1343
|
startMonth += 12;
|
|
1344
1344
|
startYear -= 1;
|
|
1345
1345
|
}
|
|
@@ -1347,13 +1347,13 @@ const SimpleDateChooser = (props) => {
|
|
|
1347
1347
|
for (let i = 0; i < numMonthsToShow; i++) {
|
|
1348
1348
|
// Get month and year info
|
|
1349
1349
|
const unmoddedMonth = (startMonth + i);
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1350
|
+
let month = unmoddedMonth;
|
|
1351
|
+
while (month > 12) {
|
|
1352
|
+
month -= 12;
|
|
1353
|
+
}
|
|
1353
1354
|
const monthName = getMonthName(month).full;
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
: startYear);
|
|
1355
|
+
// Year is start year +1 for each 12 months
|
|
1356
|
+
const year = (startYear + (Math.floor(unmoddedMonth / 12)));
|
|
1357
1357
|
// Figure out which days are allowed
|
|
1358
1358
|
const days = [];
|
|
1359
1359
|
const numDaysInMonth = (new Date(year, month, 0)).getDate();
|
|
@@ -3423,7 +3423,7 @@ const LogReviewer = (props) => {
|
|
|
3423
3423
|
if (expandedFilterDrawer) {
|
|
3424
3424
|
if (expandedFilterDrawer === FilterDrawer.Date) {
|
|
3425
3425
|
filterDrawer = (React.createElement(TabBox, { title: "Date" },
|
|
3426
|
-
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, numMonthsToShow:
|
|
3426
|
+
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, numMonthsToShow: 36, onChange: (month, day, year) => {
|
|
3427
3427
|
dateFilterState.startDate = { month, day, year };
|
|
3428
3428
|
handleDateRangeUpdated(dateFilterState);
|
|
3429
3429
|
} }),
|
|
@@ -3593,7 +3593,7 @@ const LogReviewer = (props) => {
|
|
|
3593
3593
|
React.createElement("div", { className: "d-flex gap-1 flex-wrap" }, Object.keys(targetMap)
|
|
3594
3594
|
.map((target) => {
|
|
3595
3595
|
const description = genHumanReadableName(target);
|
|
3596
|
-
return (React.createElement(CheckboxButton, { key: target, id: `LogReviewer-target-${target}-checkbox`, text: description, ariaLabel: `include logs with target "${description}" in results`, checked: actionErrorFilterState.target[target], onChanged: (checked) => {
|
|
3596
|
+
return (React.createElement(CheckboxButton, { key: target, id: `LogReviewer-target-${target}-checkbox`, text: description, ariaLabel: `include logs with target "${description}" in results`, checked: actionErrorFilterState.target[target], noMarginOnRight: true, onChanged: (checked) => {
|
|
3597
3597
|
actionErrorFilterState.target[target] = checked;
|
|
3598
3598
|
console.log(actionErrorFilterState, target, checked);
|
|
3599
3599
|
dispatch({
|