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/cjs/index.js
CHANGED
|
@@ -1347,7 +1347,7 @@ const SimpleDateChooser = (props) => {
|
|
|
1347
1347
|
let startMonth = today.month;
|
|
1348
1348
|
if (chooseFromPast) {
|
|
1349
1349
|
startMonth -= Math.max(0, numMonthsToShow - 1);
|
|
1350
|
-
|
|
1350
|
+
while (startMonth <= 0) {
|
|
1351
1351
|
startMonth += 12;
|
|
1352
1352
|
startYear -= 1;
|
|
1353
1353
|
}
|
|
@@ -1355,13 +1355,13 @@ const SimpleDateChooser = (props) => {
|
|
|
1355
1355
|
for (let i = 0; i < numMonthsToShow; i++) {
|
|
1356
1356
|
// Get month and year info
|
|
1357
1357
|
const unmoddedMonth = (startMonth + i);
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1358
|
+
let month = unmoddedMonth;
|
|
1359
|
+
while (month > 12) {
|
|
1360
|
+
month -= 12;
|
|
1361
|
+
}
|
|
1361
1362
|
const monthName = getMonthName(month).full;
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
: startYear);
|
|
1363
|
+
// Year is start year +1 for each 12 months
|
|
1364
|
+
const year = (startYear + (Math.floor(unmoddedMonth / 12)));
|
|
1365
1365
|
// Figure out which days are allowed
|
|
1366
1366
|
const days = [];
|
|
1367
1367
|
const numDaysInMonth = (new Date(year, month, 0)).getDate();
|
|
@@ -3431,7 +3431,7 @@ const LogReviewer = (props) => {
|
|
|
3431
3431
|
if (expandedFilterDrawer) {
|
|
3432
3432
|
if (expandedFilterDrawer === FilterDrawer.Date) {
|
|
3433
3433
|
filterDrawer = (React__default["default"].createElement(TabBox, { title: "Date" },
|
|
3434
|
-
React__default["default"].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:
|
|
3434
|
+
React__default["default"].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) => {
|
|
3435
3435
|
dateFilterState.startDate = { month, day, year };
|
|
3436
3436
|
handleDateRangeUpdated(dateFilterState);
|
|
3437
3437
|
} }),
|
|
@@ -3601,7 +3601,7 @@ const LogReviewer = (props) => {
|
|
|
3601
3601
|
React__default["default"].createElement("div", { className: "d-flex gap-1 flex-wrap" }, Object.keys(targetMap)
|
|
3602
3602
|
.map((target) => {
|
|
3603
3603
|
const description = genHumanReadableName(target);
|
|
3604
|
-
return (React__default["default"].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) => {
|
|
3604
|
+
return (React__default["default"].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) => {
|
|
3605
3605
|
actionErrorFilterState.target[target] = checked;
|
|
3606
3606
|
console.log(actionErrorFilterState, target, checked);
|
|
3607
3607
|
dispatch({
|