@mcurros2/microm 1.1.51-0 → 1.1.53-0

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/index.js CHANGED
@@ -32803,7 +32803,7 @@ function $dedc41fffbcb9b37$export$ee9dff5c41556888(props) {
32803
32803
  variant: actionsButtonVariant,
32804
32804
  onClick: ()=>{
32805
32805
  var _a;
32806
- return handleExecuteAction(action, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
32806
+ return handleExecuteAction(action, undefined, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
32807
32807
  },
32808
32808
  children: action.label
32809
32809
  }, action.name);
@@ -33548,7 +33548,7 @@ function $42d3a2ac8447d6e0$export$f77741f33c48605(props, stateProps) {
33548
33548
  }), [
33549
33549
  UIAPI
33550
33550
  ]);
33551
- const handleExecuteAction = (0, $b4te3$react.useCallback)((action, element)=>$42d3a2ac8447d6e0$var$__awaiter(this, void 0, void 0, function*() {
33551
+ const handleExecuteAction = (0, $b4te3$react.useCallback)((action, recordIndex, element)=>$42d3a2ac8447d6e0$var$__awaiter(this, void 0, void 0, function*() {
33552
33552
  const keys = selectionKeys.current;
33553
33553
  yield UIAPI.handleExecuteAction(action, keys, element);
33554
33554
  }), [
@@ -36307,7 +36307,10 @@ function $40c00e2ecacb5ae0$export$2d2c672e82add59e(props, stateProps) {
36307
36307
  }), [
36308
36308
  UIAPI
36309
36309
  ]);
36310
- const handleExecuteAction = (0, $b4te3$react.useCallback)((action, element)=>$40c00e2ecacb5ae0$var$__awaiter(this, void 0, void 0, function*() {
36310
+ const handleExecuteAction = (0, $b4te3$react.useCallback)((action, recordIndex, element)=>$40c00e2ecacb5ae0$var$__awaiter(this, void 0, void 0, function*() {
36311
+ if (recordIndex !== undefined) selectedRecords.current = [
36312
+ recordIndex
36313
+ ];
36311
36314
  const keys = getSelectionKeys();
36312
36315
  return yield UIAPI.handleExecuteAction(action, keys, element);
36313
36316
  }), [
@@ -41456,7 +41459,7 @@ function $ebc755cf8229705f$export$5e3b704eab811f8f(props) {
41456
41459
  variant: actionsButtonVariant,
41457
41460
  onClick: ()=>{
41458
41461
  var _a;
41459
- return data1.dataGridAPI.handleExecuteAction(action, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41462
+ return data1.dataGridAPI.handleExecuteAction(action, undefined, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41460
41463
  },
41461
41464
  children: action.label
41462
41465
  }, action.name);
@@ -41471,7 +41474,7 @@ function $ebc755cf8229705f$export$5e3b704eab811f8f(props) {
41471
41474
  variant: actionsButtonVariant,
41472
41475
  onClick: ()=>{
41473
41476
  var _a;
41474
- return data2.dataGridAPI.handleExecuteAction(action, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41477
+ return data2.dataGridAPI.handleExecuteAction(action, undefined, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41475
41478
  },
41476
41479
  children: action.label
41477
41480
  }, action.name);
@@ -41486,7 +41489,7 @@ function $ebc755cf8229705f$export$5e3b704eab811f8f(props) {
41486
41489
  variant: actionsButtonVariant,
41487
41490
  onClick: ()=>{
41488
41491
  var _a;
41489
- return data3.dataGridAPI.handleExecuteAction(action, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41492
+ return data3.dataGridAPI.handleExecuteAction(action, undefined, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41490
41493
  },
41491
41494
  children: action.label
41492
41495
  }, action.name);
@@ -41501,7 +41504,7 @@ function $ebc755cf8229705f$export$5e3b704eab811f8f(props) {
41501
41504
  variant: actionsButtonVariant,
41502
41505
  onClick: ()=>{
41503
41506
  var _a;
41504
- return data4.dataGridAPI.handleExecuteAction(action, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41507
+ return data4.dataGridAPI.handleExecuteAction(action, undefined, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41505
41508
  },
41506
41509
  children: action.label
41507
41510
  }, action.name);
@@ -41516,7 +41519,7 @@ function $ebc755cf8229705f$export$5e3b704eab811f8f(props) {
41516
41519
  variant: actionsButtonVariant,
41517
41520
  onClick: ()=>{
41518
41521
  var _a;
41519
- return data5.dataGridAPI.handleExecuteAction(action, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41522
+ return data5.dataGridAPI.handleExecuteAction(action, undefined, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41520
41523
  },
41521
41524
  children: action.label
41522
41525
  }, action.name);