dce-reactkit 3.2.5 → 3.2.6
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 +26 -26
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/ButtonInputGroup.d.ts +1 -0
- package/dist/esm/index.js +26 -26
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/ButtonInputGroup.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/ButtonInputGroup.tsx +12 -1
- package/src/components/LogReviewer.tsx +51 -51
package/dist/cjs/index.js
CHANGED
|
@@ -1188,7 +1188,7 @@ const ButtonInputGroup = (props) => {
|
|
|
1188
1188
|
/*------------------------------------------------------------------------*/
|
|
1189
1189
|
/* -------------- Props ------------- */
|
|
1190
1190
|
// Destructure all props
|
|
1191
|
-
const { label, minLabelWidth, children, className, } = props;
|
|
1191
|
+
const { label, minLabelWidth, children, className, wrapButtonsAndAddGaps, } = props;
|
|
1192
1192
|
/*------------------------------------------------------------------------*/
|
|
1193
1193
|
/* Render */
|
|
1194
1194
|
/*------------------------------------------------------------------------*/
|
|
@@ -1207,7 +1207,9 @@ const ButtonInputGroup = (props) => {
|
|
|
1207
1207
|
borderTopLeftRadius: 0,
|
|
1208
1208
|
borderBottomLeftRadius: 0,
|
|
1209
1209
|
borderLeftWidth: 0,
|
|
1210
|
-
} },
|
|
1210
|
+
} }, wrapButtonsAndAddGaps
|
|
1211
|
+
? (React__default["default"].createElement("div", { className: "d-flex gap-1 flex-wrap" }, children))
|
|
1212
|
+
: children))));
|
|
1211
1213
|
};
|
|
1212
1214
|
|
|
1213
1215
|
const monthNames = [
|
|
@@ -3593,30 +3595,28 @@ const LogReviewer = (props) => {
|
|
|
3593
3595
|
}, ariaLabel: "only show error logs", selected: actionErrorFilterState.type === LogType$1.Error, noMarginOnRight: true })),
|
|
3594
3596
|
(actionErrorFilterState.type === undefined
|
|
3595
3597
|
|| actionErrorFilterState.type === LogType$1.Action) && (React__default["default"].createElement(TabBox, { title: "Action Log Details" },
|
|
3596
|
-
React__default["default"].createElement(ButtonInputGroup, { label: "Action", className: "mb-2" },
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
} }));
|
|
3619
|
-
}))))),
|
|
3598
|
+
React__default["default"].createElement(ButtonInputGroup, { label: "Action", className: "mb-2", wrapButtonsAndAddGaps: true }, Object.keys(LogAction$1)
|
|
3599
|
+
.map((action) => {
|
|
3600
|
+
const description = genHumanReadableName(action);
|
|
3601
|
+
return (React__default["default"].createElement(CheckboxButton, { key: action, id: `LogReviewer-action-${action}-checkbox`, text: description, ariaLabel: `include logs with action type "${description}" in results`, noMarginOnRight: true, checked: actionErrorFilterState.action[action], onChanged: (checked) => {
|
|
3602
|
+
actionErrorFilterState.action[action] = checked;
|
|
3603
|
+
dispatch({
|
|
3604
|
+
type: ActionType.UpdateActionErrorFilterState,
|
|
3605
|
+
actionErrorFilterState,
|
|
3606
|
+
});
|
|
3607
|
+
} }));
|
|
3608
|
+
})),
|
|
3609
|
+
React__default["default"].createElement(ButtonInputGroup, { label: "Target", wrapButtonsAndAddGaps: true }, Object.keys(targetMap)
|
|
3610
|
+
.map((target) => {
|
|
3611
|
+
const description = genHumanReadableName(target);
|
|
3612
|
+
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) => {
|
|
3613
|
+
actionErrorFilterState.target[target] = checked;
|
|
3614
|
+
dispatch({
|
|
3615
|
+
type: ActionType.UpdateActionErrorFilterState,
|
|
3616
|
+
actionErrorFilterState,
|
|
3617
|
+
});
|
|
3618
|
+
} }));
|
|
3619
|
+
})))),
|
|
3620
3620
|
(actionErrorFilterState.type === undefined
|
|
3621
3621
|
|| actionErrorFilterState.type === LogType$1.Error) && (React__default["default"].createElement(TabBox, { title: "Error Log Details" },
|
|
3622
3622
|
React__default["default"].createElement("div", { className: "input-group mb-2" },
|