@mcurros2/microm 1.1.22-0 → 1.1.24-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
@@ -4159,7 +4159,7 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
4159
4159
  (0, $b4te3$reactjsxruntime.jsxs)((0, $b4te3$mantinecore.Group), {
4160
4160
  position: "right",
4161
4161
  children: [
4162
- (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
4162
+ modal.props.withFullscreenButton && (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
4163
4163
  onClick: (e)=>{
4164
4164
  e.stopPropagation();
4165
4165
  setModals((prev)=>prev.map((m, i)=>{
@@ -4184,7 +4184,7 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
4184
4184
  size: "1rem"
4185
4185
  })
4186
4186
  }),
4187
- (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Modal).CloseButton, {
4187
+ modal.props.withCloseButton && (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Modal).CloseButton, {
4188
4188
  title: $ea58ddf30d0b80dd$export$6ccb6e1de3749d56.closeLabel
4189
4189
  })
4190
4190
  ]
@@ -6325,7 +6325,7 @@ var $1164c88542aeac1d$var$__awaiter = undefined && undefined.__awaiter || functi
6325
6325
  });
6326
6326
  };
6327
6327
  function $1164c88542aeac1d$export$c7c6b9c457b10b8a(props) {
6328
- const { entity: entity, onModalCancelled: onModalCancelled, onModalSaved: onModalSaved, modalFormSize: modalFormSize, parentFormAPI: parentFormAPI, saveFormBeforeAdd: saveFormBeforeAdd, onModalClosed: onModalClosed, parentKeys: parentKeys, labels: labels, onRecordsDeleted: onRecordsDeleted, onActionRefreshOnClose: onActionRefreshOnClose, onAddClick: onAddClick, onEditClick: onEditClick, onDeleteClick: onDeleteClick, onActionExecuted: onActionExecuted } = props;
6328
+ const { entity: entity, onModalCancelled: onModalCancelled, onModalSaved: onModalSaved, modalFormSize: modalFormSize, parentFormAPI: parentFormAPI, saveFormBeforeAdd: saveFormBeforeAdd, onModalClosed: onModalClosed, parentKeys: parentKeys, labels: labels, onRecordsDeleted: onRecordsDeleted, onActionRefreshOnClose: onActionRefreshOnClose, onAddClick: onAddClick, onEditClick: onEditClick, onDeleteClick: onDeleteClick, onActionExecuted: onActionExecuted, withModalFullscreenButton: withModalFullscreenButton } = props;
6329
6329
  const modals = (0, $k7qj2.useModal)();
6330
6330
  const cancelled = (0, $b4te3$react.useRef)();
6331
6331
  const handleModalSaved = (0, $b4te3$react.useCallback)((new_status)=>$1164c88542aeac1d$var$__awaiter(this, void 0, void 0, function*() {
@@ -6356,6 +6356,7 @@ function $1164c88542aeac1d$export$c7c6b9c457b10b8a(props) {
6356
6356
  handleModalSaved: handleModalSaved,
6357
6357
  handleModalCancel: handleModalCancel,
6358
6358
  modalFormSize: modalFormSize,
6359
+ withModalFullscreenButton: withModalFullscreenButton,
6359
6360
  handleModalClosed: ()=>$1164c88542aeac1d$var$__awaiter(this, void 0, void 0, function*() {
6360
6361
  yield handleModalClosed();
6361
6362
  if (onClosed) yield onClosed();
@@ -6368,9 +6369,10 @@ function $1164c88542aeac1d$export$c7c6b9c457b10b8a(props) {
6368
6369
  });
6369
6370
  }), [
6370
6371
  modals,
6371
- modalFormSize,
6372
6372
  handleModalSaved,
6373
6373
  handleModalCancel,
6374
+ modalFormSize,
6375
+ withModalFullscreenButton,
6374
6376
  handleModalClosed
6375
6377
  ]);
6376
6378
  const importData = (0, $99l4z.useImportDataForm)({
@@ -8307,7 +8309,8 @@ const $eca5c8f2655679a5$export$7a235056ace2c138 = {
8307
8309
  showToolbar: true,
8308
8310
  showActionsToolbar: true,
8309
8311
  doubleClickAction: "edit",
8310
- showColumnsConfigMenu: true
8312
+ showColumnsConfigMenu: true,
8313
+ withModalFullscreenButton: true
8311
8314
  };
8312
8315
  function $eca5c8f2655679a5$export$c8dd51eb24f71762(props) {
8313
8316
  var _a;
@@ -33433,7 +33436,7 @@ var $42d3a2ac8447d6e0$var$__awaiter = undefined && undefined.__awaiter || functi
33433
33436
  });
33434
33437
  };
33435
33438
  function $42d3a2ac8447d6e0$export$f77741f33c48605(props, stateProps) {
33436
- const { entity: entity, parentKeys: parentKeys, viewName: viewName, onSelectionChanged: onSelectionChanged, modalFormSize: modalFormSize, labels: labels, saveFormBeforeAdd: saveFormBeforeAdd, parentFormAPI: parentFormAPI, allwaysRefreshOnEntityClose: allwaysRefreshOnEntityClose, onAddClick: onAddClick, onModalSaved: onModalSaved, onDataRefresh: onDataRefresh, onActionExecuted: onActionExecuted, formMode: formMode, doubleClickAction: doubleClickAction, notExportableColumns: notExportableColumns } = props;
33439
+ const { entity: entity, parentKeys: parentKeys, viewName: viewName, onSelectionChanged: onSelectionChanged, modalFormSize: modalFormSize, labels: labels, saveFormBeforeAdd: saveFormBeforeAdd, parentFormAPI: parentFormAPI, allwaysRefreshOnEntityClose: allwaysRefreshOnEntityClose, onAddClick: onAddClick, onModalSaved: onModalSaved, onDataRefresh: onDataRefresh, onActionExecuted: onActionExecuted, formMode: formMode, doubleClickAction: doubleClickAction, notExportableColumns: notExportableColumns, withModalFullscreenButton: withModalFullscreenButton } = props;
33437
33440
  const { setRefresh: setRefresh, setSearchText: setSearchText, executeViewState: executeViewState } = stateProps;
33438
33441
  const selection = (0, $b4te3$react.useRef)([]);
33439
33442
  const selectionKeys = (0, $b4te3$react.useRef)([]);
@@ -33479,7 +33482,8 @@ function $42d3a2ac8447d6e0$export$f77741f33c48605(props, stateProps) {
33479
33482
  onActionRefreshOnClose: internalRefresh,
33480
33483
  labels: labels,
33481
33484
  onAddClick: onAddClick,
33482
- onActionExecuted: onActionExecuted
33485
+ onActionExecuted: onActionExecuted,
33486
+ withModalFullscreenButton: withModalFullscreenButton
33483
33487
  });
33484
33488
  const getSelectionKeys = (0, $b4te3$react.useCallback)((selection)=>{
33485
33489
  const result = [];
@@ -36110,7 +36114,7 @@ var $40c00e2ecacb5ae0$var$__awaiter = undefined && undefined.__awaiter || functi
36110
36114
  });
36111
36115
  };
36112
36116
  function $40c00e2ecacb5ae0$export$2d2c672e82add59e(props, stateProps) {
36113
- const { entity: entity, parentKeys: parentKeys, viewName: viewName, limit: limit, onSelectionChanged: onSelectionChanged, modalFormSize: modalFormSize, onModalSaved: onModalSaved, labels: labels, saveFormBeforeAdd: saveFormBeforeAdd, parentFormAPI: parentFormAPI, allwaysRefreshOnEntityClose: allwaysRefreshOnEntityClose, notExportableColumns: notExportableColumns, itemsPerPage: itemsPerPage, onActionExecuted: onActionExecuted, convertResultToLocaleString: convertResultToLocaleString, onDataRefresh: onDataRefresh } = props;
36117
+ const { entity: entity, parentKeys: parentKeys, viewName: viewName, limit: limit, onSelectionChanged: onSelectionChanged, modalFormSize: modalFormSize, onModalSaved: onModalSaved, labels: labels, saveFormBeforeAdd: saveFormBeforeAdd, parentFormAPI: parentFormAPI, allwaysRefreshOnEntityClose: allwaysRefreshOnEntityClose, notExportableColumns: notExportableColumns, itemsPerPage: itemsPerPage, onActionExecuted: onActionExecuted, convertResultToLocaleString: convertResultToLocaleString, withModalFullscreenButton: withModalFullscreenButton, onDataRefresh: onDataRefresh } = props;
36114
36118
  const localeFormat = (0, $a2vzY.useLocaleFormat)({});
36115
36119
  const { setRefresh: setRefresh, setSearchText: setSearchText, executeViewState: executeViewState } = stateProps;
36116
36120
  const selectedRecords = (0, $b4te3$react.useRef)([]);
@@ -36154,6 +36158,7 @@ function $40c00e2ecacb5ae0$export$2d2c672e82add59e(props, stateProps) {
36154
36158
  modalFormSize: modalFormSize,
36155
36159
  parentFormAPI: parentFormAPI,
36156
36160
  saveFormBeforeAdd: saveFormBeforeAdd,
36161
+ withModalFullscreenButton: withModalFullscreenButton,
36157
36162
  onModalSaved: handleModalSaved,
36158
36163
  onModalClosed: handleAllwaysRefreshOnClose,
36159
36164
  onRecordsDeleted: internalRefresh,
@@ -36415,7 +36420,8 @@ const $55dd21617ac1c7dc$export$8d0177ff9f5686ad = {
36415
36420
  convertResultToLocaleString: true,
36416
36421
  showActions: true,
36417
36422
  showToolbar: true,
36418
- showDeleteOnlyWhenMultiselect: true
36423
+ showDeleteOnlyWhenMultiselect: true,
36424
+ withModalFullscreenButton: true
36419
36425
  };
36420
36426
  const $55dd21617ac1c7dc$export$5e15d737b33a1c27 = /*#__PURE__*/ (0, $b4te3$react.forwardRef)(function DataView(props, ref) {
36421
36427
  var _a;
@@ -45835,7 +45841,7 @@ var $d79003fd5611c3b6$var$__awaiter = undefined && undefined.__awaiter || functi
45835
45841
  });
45836
45842
  };
45837
45843
  function $d79003fd5611c3b6$export$66b3c1a9709bd8fc(_a) {
45838
- return $d79003fd5611c3b6$var$__awaiter(this, arguments, void 0, function*({ modals: modals, title: title, element: element, handleModalCancel: handleModalCancel, handleModalSaved: handleModalSaved, modalFormSize: modalFormSize, formProps: formProps, handleModalClosed: handleModalClosed }) {
45844
+ return $d79003fd5611c3b6$var$__awaiter(this, arguments, void 0, function*({ modals: modals, title: title, element: element, handleModalCancel: handleModalCancel, handleModalSaved: handleModalSaved, modalFormSize: modalFormSize, formProps: formProps, handleModalClosed: handleModalClosed, withModalFullscreenButton: withModalFullscreenButton }) {
45839
45845
  const showOK = formProps.initialFormMode !== "view";
45840
45846
  const onSaved = formProps.initialFormMode !== "view" ? (new_status)=>handleModalSaved(new_status) : ()=>Promise.resolve();
45841
45847
  const onCancel = ()=>handleModalCancel();
@@ -45854,7 +45860,8 @@ function $d79003fd5611c3b6$export$66b3c1a9709bd8fc(_a) {
45854
45860
  formProps.entity.Title
45855
45861
  ]
45856
45862
  }),
45857
- size: modalFormSize
45863
+ size: modalFormSize,
45864
+ withFullscreenButton: withModalFullscreenButton
45858
45865
  },
45859
45866
  onClosed: handleModalClosed,
45860
45867
  focusOnClosed: element,