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.
@@ -8,6 +8,7 @@ declare type Props = {
8
8
  minLabelWidth?: string;
9
9
  children: React.ReactNode;
10
10
  className?: string;
11
+ wrapButtonsAndAddGaps?: boolean;
11
12
  };
12
13
  declare const ButtonInputGroup: React.FC<Props>;
13
14
  export default ButtonInputGroup;
@@ -11,7 +11,7 @@ declare enum LogAction {
11
11
  View = "View",
12
12
  Interrupt = "Interrupt",
13
13
  Create = "Create",
14
- Edit = "Edit",
14
+ Modify = "Modify",
15
15
  Delete = "Delete",
16
16
  Add = "Add",
17
17
  Remove = "Remove",
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
- } }, children))));
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 edited by the user (it existed and was changed)
2168
- LogAction["Edit"] = "Edit";
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
- React.createElement("div", { className: "d-flex gap-1 flex-wrap" }, Object.keys(LogAction$1)
3590
- .map((action) => {
3591
- const description = genHumanReadableName(action);
3592
- 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) => {
3593
- actionErrorFilterState.action[action] = checked;
3594
- dispatch({
3595
- type: ActionType.UpdateActionErrorFilterState,
3596
- actionErrorFilterState,
3597
- });
3598
- } }));
3599
- }))),
3600
- React.createElement(ButtonInputGroup, { label: "Target" },
3601
- React.createElement("div", { className: "d-flex gap-1 flex-wrap" }, 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
- }))))),
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" },