blixify-ui-web 1.2.116 → 1.2.117

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAqCA,OAAO,KASN,MAAM,OAAO,CAAC;AA0Ff,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AA4D1B,eAAO,MAAM,YAAY,mFA4uZvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAqCA,OAAO,KASN,MAAM,OAAO,CAAC;AA0Ff,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AA4D1B,eAAO,MAAM,YAAY,mFAwvZvB,CAAC"}
@@ -585,6 +585,9 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
585
585
  // useRef is required (not useState) so the guard is readable synchronously
586
586
  // before any re-render occurs.
587
587
  var isSubmittingRef = (0, react_1.useRef)(false);
588
+ // INFO: same guard for batch update — it writes every selected record, so a
589
+ // second run from a double Enter or double click repeats the whole batch
590
+ var isBatchUpdatingRef = (0, react_1.useRef)(false);
588
591
  var devSettings = props.devSettings;
589
592
  var serverId = (0, utils_1.parseServerId)(devSettings.server);
590
593
  /**
@@ -4097,9 +4100,12 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
4097
4100
  case 0:
4098
4101
  if (!canBatchUpdate)
4099
4102
  return [2 /*return*/];
4103
+ if (isBatchUpdatingRef.current)
4104
+ return [2 /*return*/];
4105
+ isBatchUpdatingRef.current = true;
4100
4106
  _a.label = 1;
4101
4107
  case 1:
4102
- _a.trys.push([1, 8, , 9]);
4108
+ _a.trys.push([1, 8, 9, 10]);
4103
4109
  setLoading(true);
4104
4110
  setModalVisible(true);
4105
4111
  model_1 = structure.find(function (eachModel) { return eachModel.id === batchUpdateData.columnId; });
@@ -4175,7 +4181,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
4175
4181
  handleRefresh(false, true);
4176
4182
  }
4177
4183
  _a.label = 7;
4178
- case 7: return [3 /*break*/, 9];
4184
+ case 7: return [3 /*break*/, 10];
4179
4185
  case 8:
4180
4186
  err_17 = _a.sent();
4181
4187
  if (err_17.response) {
@@ -4185,8 +4191,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
4185
4191
  msg: handleGetWriteErrorMessage(err_17.response),
4186
4192
  });
4187
4193
  }
4188
- return [3 /*break*/, 9];
4194
+ return [3 /*break*/, 10];
4189
4195
  case 9:
4196
+ isBatchUpdatingRef.current = false;
4197
+ return [7 /*endfinally*/];
4198
+ case 10:
4190
4199
  setBatchUpdateData({ columnId: "", columnData: {} });
4191
4200
  return [2 /*return*/];
4192
4201
  }
@@ -9647,7 +9656,9 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
9647
9656
  });
9648
9657
  var disabledOnEnter_2 = false;
9649
9658
  filterObjectModel.objectData.map(function (eachModel) {
9650
- if (eachModel.type === "markdown")
9659
+ if (eachModel.type === "markdown" ||
9660
+ eachModel.type === "textArea" ||
9661
+ utils_1.OBJECT_DATA_TYPES.includes(eachModel.type))
9651
9662
  disabledOnEnter_2 = true;
9652
9663
  return null;
9653
9664
  });