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/esm/index.js
CHANGED
|
@@ -1180,7 +1180,7 @@ const ButtonInputGroup = (props) => {
|
|
|
1180
1180
|
/*------------------------------------------------------------------------*/
|
|
1181
1181
|
/* -------------- Props ------------- */
|
|
1182
1182
|
// Destructure all props
|
|
1183
|
-
const { label, minLabelWidth, children, className, } = props;
|
|
1183
|
+
const { label, minLabelWidth, children, className, wrapButtonsAndAddGaps, } = props;
|
|
1184
1184
|
/*------------------------------------------------------------------------*/
|
|
1185
1185
|
/* Render */
|
|
1186
1186
|
/*------------------------------------------------------------------------*/
|
|
@@ -1199,7 +1199,9 @@ const ButtonInputGroup = (props) => {
|
|
|
1199
1199
|
borderTopLeftRadius: 0,
|
|
1200
1200
|
borderBottomLeftRadius: 0,
|
|
1201
1201
|
borderLeftWidth: 0,
|
|
1202
|
-
} },
|
|
1202
|
+
} }, wrapButtonsAndAddGaps
|
|
1203
|
+
? (React.createElement("div", { className: "d-flex gap-1 flex-wrap" }, children))
|
|
1204
|
+
: children))));
|
|
1203
1205
|
};
|
|
1204
1206
|
|
|
1205
1207
|
const monthNames = [
|
|
@@ -2164,8 +2166,8 @@ var LogAction;
|
|
|
2164
2166
|
LogAction["Interrupt"] = "Interrupt";
|
|
2165
2167
|
// Target was created by the user (it did not exist before)
|
|
2166
2168
|
LogAction["Create"] = "Create";
|
|
2167
|
-
// Target was
|
|
2168
|
-
LogAction["
|
|
2169
|
+
// Target was modified by the user (it existed and was changed)
|
|
2170
|
+
LogAction["Modify"] = "Modify";
|
|
2169
2171
|
// Target was deleted by the user (it existed and now it doesn't)
|
|
2170
2172
|
LogAction["Delete"] = "Delete";
|
|
2171
2173
|
// Target was added by the user (it already existed and was added to another place)
|
|
@@ -3585,30 +3587,28 @@ const LogReviewer = (props) => {
|
|
|
3585
3587
|
}, ariaLabel: "only show error logs", selected: actionErrorFilterState.type === LogType$1.Error, noMarginOnRight: true })),
|
|
3586
3588
|
(actionErrorFilterState.type === undefined
|
|
3587
3589
|
|| actionErrorFilterState.type === LogType$1.Action) && (React.createElement(TabBox, { title: "Action Log Details" },
|
|
3588
|
-
React.createElement(ButtonInputGroup, { label: "Action", className: "mb-2" },
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
} }));
|
|
3611
|
-
}))))),
|
|
3590
|
+
React.createElement(ButtonInputGroup, { label: "Action", className: "mb-2", wrapButtonsAndAddGaps: true }, Object.keys(LogAction$1)
|
|
3591
|
+
.map((action) => {
|
|
3592
|
+
const description = genHumanReadableName(action);
|
|
3593
|
+
return (React.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) => {
|
|
3594
|
+
actionErrorFilterState.action[action] = checked;
|
|
3595
|
+
dispatch({
|
|
3596
|
+
type: ActionType.UpdateActionErrorFilterState,
|
|
3597
|
+
actionErrorFilterState,
|
|
3598
|
+
});
|
|
3599
|
+
} }));
|
|
3600
|
+
})),
|
|
3601
|
+
React.createElement(ButtonInputGroup, { label: "Target", wrapButtonsAndAddGaps: true }, Object.keys(targetMap)
|
|
3602
|
+
.map((target) => {
|
|
3603
|
+
const description = genHumanReadableName(target);
|
|
3604
|
+
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) => {
|
|
3605
|
+
actionErrorFilterState.target[target] = checked;
|
|
3606
|
+
dispatch({
|
|
3607
|
+
type: ActionType.UpdateActionErrorFilterState,
|
|
3608
|
+
actionErrorFilterState,
|
|
3609
|
+
});
|
|
3610
|
+
} }));
|
|
3611
|
+
})))),
|
|
3612
3612
|
(actionErrorFilterState.type === undefined
|
|
3613
3613
|
|| actionErrorFilterState.type === LogType$1.Error) && (React.createElement(TabBox, { title: "Error Log Details" },
|
|
3614
3614
|
React.createElement("div", { className: "input-group mb-2" },
|