dce-reactkit 3.2.5 → 3.2.7
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 +28 -28
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/ButtonInputGroup.d.ts +1 -0
- package/dist/cjs/types/types/LogAction.d.ts +1 -1
- package/dist/esm/index.js +28 -28
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/ButtonInputGroup.d.ts +1 -0
- package/dist/esm/types/types/LogAction.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
- package/src/components/ButtonInputGroup.tsx +12 -1
- package/src/components/LogReviewer.tsx +51 -51
- package/src/types/LogAction.ts +2 -2
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 = [
|
|
@@ -2172,8 +2174,8 @@ var LogAction;
|
|
|
2172
2174
|
LogAction["Interrupt"] = "Interrupt";
|
|
2173
2175
|
// Target was created by the user (it did not exist before)
|
|
2174
2176
|
LogAction["Create"] = "Create";
|
|
2175
|
-
// Target was
|
|
2176
|
-
LogAction["
|
|
2177
|
+
// Target was modified by the user (it existed and was changed)
|
|
2178
|
+
LogAction["Modify"] = "Modify";
|
|
2177
2179
|
// Target was deleted by the user (it existed and now it doesn't)
|
|
2178
2180
|
LogAction["Delete"] = "Delete";
|
|
2179
2181
|
// Target was added by the user (it already existed and was added to another place)
|
|
@@ -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" },
|