@mcurros2/microm 1.1.52-0 → 1.1.54-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
  }), [
@@ -36652,7 +36655,7 @@ const $1ac999cc924a9b5d$export$d13f8a6d57c9f999 = {
36652
36655
  };
36653
36656
  function $1ac999cc924a9b5d$export$a1905d17a14ce215(props) {
36654
36657
  var _a, _b, _c;
36655
- const { recordIndex: recordIndex, selected: selected, handleDeleteClick: handleDeleteClick, handleDeselectRecord: handleDeselectRecord, handleEditClick: handleEditClick, handleSelectRecord: handleSelectRecord, handleViewClick: handleViewClick, enableDelete: enableDelete, enableEdit: enableEdit, enableView: enableView, entity: entity, record: record, toggleSelectable: toggleSelectable, EntityCard: EntityCard, CardProps: CardProps, refreshView: refreshView, handleCardClick: handleCardClick, cardHrefRootURL: cardHrefRootURL, cardHrefTarget: cardHrefTarget } = (0, $b4te3$mantinecore.useComponentDefaultProps)("DataViewCardContainer", $1ac999cc924a9b5d$export$d13f8a6d57c9f999, props);
36658
+ const { recordIndex: recordIndex, selected: selected, handleDeleteClick: handleDeleteClick, handleDeselectRecord: handleDeselectRecord, handleEditClick: handleEditClick, handleSelectRecord: handleSelectRecord, handleViewClick: handleViewClick, enableDelete: enableDelete, enableEdit: enableEdit, enableView: enableView, entity: entity, record: record, toggleSelectable: toggleSelectable, EntityCard: EntityCard, CardProps: CardProps, refreshView: refreshView, handleCardClick: handleCardClick, cardHrefRootURL: cardHrefRootURL, cardHrefTarget: cardHrefTarget, handleExecuteAction: handleExecuteAction } = (0, $b4te3$mantinecore.useComponentDefaultProps)("DataViewCardContainer", $1ac999cc924a9b5d$export$d13f8a6d57c9f999, props);
36656
36659
  const theme = (0, $b4te3$mantinecore.useMantineTheme)();
36657
36660
  const editElement = (0, $b4te3$react.useRef)(null);
36658
36661
  const deleteElement = (0, $b4te3$react.useRef)(null);
@@ -36683,6 +36686,7 @@ function $1ac999cc924a9b5d$export$a1905d17a14ce215(props) {
36683
36686
  handleEditClick: handleEditClick,
36684
36687
  handleViewClick: handleViewClick,
36685
36688
  handleCardClick: handleCardClick,
36689
+ handleExecuteAction: handleExecuteAction,
36686
36690
  selected: selected,
36687
36691
  toggleSelectable: toggleSelectable,
36688
36692
  refreshView: refreshView,
@@ -41456,7 +41460,7 @@ function $ebc755cf8229705f$export$5e3b704eab811f8f(props) {
41456
41460
  variant: actionsButtonVariant,
41457
41461
  onClick: ()=>{
41458
41462
  var _a;
41459
- return data1.dataGridAPI.handleExecuteAction(action, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41463
+ return data1.dataGridAPI.handleExecuteAction(action, undefined, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41460
41464
  },
41461
41465
  children: action.label
41462
41466
  }, action.name);
@@ -41471,7 +41475,7 @@ function $ebc755cf8229705f$export$5e3b704eab811f8f(props) {
41471
41475
  variant: actionsButtonVariant,
41472
41476
  onClick: ()=>{
41473
41477
  var _a;
41474
- return data2.dataGridAPI.handleExecuteAction(action, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41478
+ return data2.dataGridAPI.handleExecuteAction(action, undefined, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41475
41479
  },
41476
41480
  children: action.label
41477
41481
  }, action.name);
@@ -41486,7 +41490,7 @@ function $ebc755cf8229705f$export$5e3b704eab811f8f(props) {
41486
41490
  variant: actionsButtonVariant,
41487
41491
  onClick: ()=>{
41488
41492
  var _a;
41489
- return data3.dataGridAPI.handleExecuteAction(action, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41493
+ return data3.dataGridAPI.handleExecuteAction(action, undefined, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41490
41494
  },
41491
41495
  children: action.label
41492
41496
  }, action.name);
@@ -41501,7 +41505,7 @@ function $ebc755cf8229705f$export$5e3b704eab811f8f(props) {
41501
41505
  variant: actionsButtonVariant,
41502
41506
  onClick: ()=>{
41503
41507
  var _a;
41504
- return data4.dataGridAPI.handleExecuteAction(action, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41508
+ return data4.dataGridAPI.handleExecuteAction(action, undefined, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41505
41509
  },
41506
41510
  children: action.label
41507
41511
  }, action.name);
@@ -41516,7 +41520,7 @@ function $ebc755cf8229705f$export$5e3b704eab811f8f(props) {
41516
41520
  variant: actionsButtonVariant,
41517
41521
  onClick: ()=>{
41518
41522
  var _a;
41519
- return data5.dataGridAPI.handleExecuteAction(action, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41523
+ return data5.dataGridAPI.handleExecuteAction(action, undefined, (_a = actionElements.current[index]) !== null && _a !== void 0 ? _a : undefined);
41520
41524
  },
41521
41525
  children: action.label
41522
41526
  }, action.name);