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 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
- } }, children))));
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 edited by the user (it existed and was changed)
2176
- LogAction["Edit"] = "Edit";
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
- React__default["default"].createElement("div", { className: "d-flex gap-1 flex-wrap" }, Object.keys(LogAction$1)
3598
- .map((action) => {
3599
- const description = genHumanReadableName(action);
3600
- 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) => {
3601
- actionErrorFilterState.action[action] = checked;
3602
- dispatch({
3603
- type: ActionType.UpdateActionErrorFilterState,
3604
- actionErrorFilterState,
3605
- });
3606
- } }));
3607
- }))),
3608
- React__default["default"].createElement(ButtonInputGroup, { label: "Target" },
3609
- React__default["default"].createElement("div", { className: "d-flex gap-1 flex-wrap" }, 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
- }))))),
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" },