@mcurros2/microm 1.1.23-0 → 1.1.25-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.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4010,7 +4010,8 @@ const $ea58ddf30d0b80dd$export$6ccb6e1de3749d56 = {
|
|
|
4010
4010
|
minimizeLabel: "Minimize",
|
|
4011
4011
|
toggleLabel: "Toggle",
|
|
4012
4012
|
FullScreenIcon: (0, $b4te3$tablericonsreact.IconSquareChevronUp),
|
|
4013
|
-
RestoreScreeSizeIcon: (0, $b4te3$tablericonsreact.IconSquareChevronDown)
|
|
4013
|
+
RestoreScreeSizeIcon: (0, $b4te3$tablericonsreact.IconSquareChevronDown),
|
|
4014
|
+
withCloseButton: true
|
|
4014
4015
|
};
|
|
4015
4016
|
const $ea58ddf30d0b80dd$var$NEW_SIZES = {
|
|
4016
4017
|
xs: "20%",
|
|
@@ -4061,7 +4062,8 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
|
|
|
4061
4062
|
props: modalProps,
|
|
4062
4063
|
onClosed: onClosed,
|
|
4063
4064
|
focusOnClosed: focusOnClosed,
|
|
4064
|
-
initialSize: modalProps.size
|
|
4065
|
+
initialSize: modalProps.size,
|
|
4066
|
+
withFullscreenButton: modalProps.withFullscreenButton
|
|
4065
4067
|
}
|
|
4066
4068
|
]);
|
|
4067
4069
|
} else setModals((prevModals)=>[
|
|
@@ -4074,7 +4076,8 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
|
|
|
4074
4076
|
props: modalProps,
|
|
4075
4077
|
onClosed: onClosed,
|
|
4076
4078
|
focusOnClosed: focusOnClosed,
|
|
4077
|
-
initialSize: modalProps.size
|
|
4079
|
+
initialSize: modalProps.size,
|
|
4080
|
+
withFullscreenButton: modalProps.withFullscreenButton
|
|
4078
4081
|
}
|
|
4079
4082
|
]);
|
|
4080
4083
|
}), [
|
|
@@ -4159,7 +4162,7 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
|
|
|
4159
4162
|
(0, $b4te3$reactjsxruntime.jsxs)((0, $b4te3$mantinecore.Group), {
|
|
4160
4163
|
position: "right",
|
|
4161
4164
|
children: [
|
|
4162
|
-
(0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
|
|
4165
|
+
modal.withFullscreenButton && (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
|
|
4163
4166
|
onClick: (e)=>{
|
|
4164
4167
|
e.stopPropagation();
|
|
4165
4168
|
setModals((prev)=>prev.map((m, i)=>{
|
|
@@ -4184,7 +4187,7 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
|
|
|
4184
4187
|
size: "1rem"
|
|
4185
4188
|
})
|
|
4186
4189
|
}),
|
|
4187
|
-
(0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Modal).CloseButton, {
|
|
4190
|
+
modal.props.withCloseButton && (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Modal).CloseButton, {
|
|
4188
4191
|
title: $ea58ddf30d0b80dd$export$6ccb6e1de3749d56.closeLabel
|
|
4189
4192
|
})
|
|
4190
4193
|
]
|
|
@@ -6325,7 +6328,7 @@ var $1164c88542aeac1d$var$__awaiter = undefined && undefined.__awaiter || functi
|
|
|
6325
6328
|
});
|
|
6326
6329
|
};
|
|
6327
6330
|
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;
|
|
6331
|
+
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
6332
|
const modals = (0, $k7qj2.useModal)();
|
|
6330
6333
|
const cancelled = (0, $b4te3$react.useRef)();
|
|
6331
6334
|
const handleModalSaved = (0, $b4te3$react.useCallback)((new_status)=>$1164c88542aeac1d$var$__awaiter(this, void 0, void 0, function*() {
|
|
@@ -6356,6 +6359,7 @@ function $1164c88542aeac1d$export$c7c6b9c457b10b8a(props) {
|
|
|
6356
6359
|
handleModalSaved: handleModalSaved,
|
|
6357
6360
|
handleModalCancel: handleModalCancel,
|
|
6358
6361
|
modalFormSize: modalFormSize,
|
|
6362
|
+
withModalFullscreenButton: withModalFullscreenButton,
|
|
6359
6363
|
handleModalClosed: ()=>$1164c88542aeac1d$var$__awaiter(this, void 0, void 0, function*() {
|
|
6360
6364
|
yield handleModalClosed();
|
|
6361
6365
|
if (onClosed) yield onClosed();
|
|
@@ -6368,9 +6372,10 @@ function $1164c88542aeac1d$export$c7c6b9c457b10b8a(props) {
|
|
|
6368
6372
|
});
|
|
6369
6373
|
}), [
|
|
6370
6374
|
modals,
|
|
6371
|
-
modalFormSize,
|
|
6372
6375
|
handleModalSaved,
|
|
6373
6376
|
handleModalCancel,
|
|
6377
|
+
modalFormSize,
|
|
6378
|
+
withModalFullscreenButton,
|
|
6374
6379
|
handleModalClosed
|
|
6375
6380
|
]);
|
|
6376
6381
|
const importData = (0, $99l4z.useImportDataForm)({
|
|
@@ -8307,7 +8312,8 @@ const $eca5c8f2655679a5$export$7a235056ace2c138 = {
|
|
|
8307
8312
|
showToolbar: true,
|
|
8308
8313
|
showActionsToolbar: true,
|
|
8309
8314
|
doubleClickAction: "edit",
|
|
8310
|
-
showColumnsConfigMenu: true
|
|
8315
|
+
showColumnsConfigMenu: true,
|
|
8316
|
+
withModalFullscreenButton: true
|
|
8311
8317
|
};
|
|
8312
8318
|
function $eca5c8f2655679a5$export$c8dd51eb24f71762(props) {
|
|
8313
8319
|
var _a;
|
|
@@ -33433,7 +33439,7 @@ var $42d3a2ac8447d6e0$var$__awaiter = undefined && undefined.__awaiter || functi
|
|
|
33433
33439
|
});
|
|
33434
33440
|
};
|
|
33435
33441
|
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;
|
|
33442
|
+
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
33443
|
const { setRefresh: setRefresh, setSearchText: setSearchText, executeViewState: executeViewState } = stateProps;
|
|
33438
33444
|
const selection = (0, $b4te3$react.useRef)([]);
|
|
33439
33445
|
const selectionKeys = (0, $b4te3$react.useRef)([]);
|
|
@@ -33479,7 +33485,8 @@ function $42d3a2ac8447d6e0$export$f77741f33c48605(props, stateProps) {
|
|
|
33479
33485
|
onActionRefreshOnClose: internalRefresh,
|
|
33480
33486
|
labels: labels,
|
|
33481
33487
|
onAddClick: onAddClick,
|
|
33482
|
-
onActionExecuted: onActionExecuted
|
|
33488
|
+
onActionExecuted: onActionExecuted,
|
|
33489
|
+
withModalFullscreenButton: withModalFullscreenButton
|
|
33483
33490
|
});
|
|
33484
33491
|
const getSelectionKeys = (0, $b4te3$react.useCallback)((selection)=>{
|
|
33485
33492
|
const result = [];
|
|
@@ -36110,7 +36117,7 @@ var $40c00e2ecacb5ae0$var$__awaiter = undefined && undefined.__awaiter || functi
|
|
|
36110
36117
|
});
|
|
36111
36118
|
};
|
|
36112
36119
|
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;
|
|
36120
|
+
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
36121
|
const localeFormat = (0, $a2vzY.useLocaleFormat)({});
|
|
36115
36122
|
const { setRefresh: setRefresh, setSearchText: setSearchText, executeViewState: executeViewState } = stateProps;
|
|
36116
36123
|
const selectedRecords = (0, $b4te3$react.useRef)([]);
|
|
@@ -36154,6 +36161,7 @@ function $40c00e2ecacb5ae0$export$2d2c672e82add59e(props, stateProps) {
|
|
|
36154
36161
|
modalFormSize: modalFormSize,
|
|
36155
36162
|
parentFormAPI: parentFormAPI,
|
|
36156
36163
|
saveFormBeforeAdd: saveFormBeforeAdd,
|
|
36164
|
+
withModalFullscreenButton: withModalFullscreenButton,
|
|
36157
36165
|
onModalSaved: handleModalSaved,
|
|
36158
36166
|
onModalClosed: handleAllwaysRefreshOnClose,
|
|
36159
36167
|
onRecordsDeleted: internalRefresh,
|
|
@@ -36415,7 +36423,8 @@ const $55dd21617ac1c7dc$export$8d0177ff9f5686ad = {
|
|
|
36415
36423
|
convertResultToLocaleString: true,
|
|
36416
36424
|
showActions: true,
|
|
36417
36425
|
showToolbar: true,
|
|
36418
|
-
showDeleteOnlyWhenMultiselect: true
|
|
36426
|
+
showDeleteOnlyWhenMultiselect: true,
|
|
36427
|
+
withModalFullscreenButton: true
|
|
36419
36428
|
};
|
|
36420
36429
|
const $55dd21617ac1c7dc$export$5e15d737b33a1c27 = /*#__PURE__*/ (0, $b4te3$react.forwardRef)(function DataView(props, ref) {
|
|
36421
36430
|
var _a;
|
|
@@ -45835,7 +45844,7 @@ var $d79003fd5611c3b6$var$__awaiter = undefined && undefined.__awaiter || functi
|
|
|
45835
45844
|
});
|
|
45836
45845
|
};
|
|
45837
45846
|
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 }) {
|
|
45847
|
+
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
45848
|
const showOK = formProps.initialFormMode !== "view";
|
|
45840
45849
|
const onSaved = formProps.initialFormMode !== "view" ? (new_status)=>handleModalSaved(new_status) : ()=>Promise.resolve();
|
|
45841
45850
|
const onCancel = ()=>handleModalCancel();
|
|
@@ -45854,7 +45863,8 @@ function $d79003fd5611c3b6$export$66b3c1a9709bd8fc(_a) {
|
|
|
45854
45863
|
formProps.entity.Title
|
|
45855
45864
|
]
|
|
45856
45865
|
}),
|
|
45857
|
-
size: modalFormSize
|
|
45866
|
+
size: modalFormSize,
|
|
45867
|
+
withFullscreenButton: withModalFullscreenButton
|
|
45858
45868
|
},
|
|
45859
45869
|
onClosed: handleModalClosed,
|
|
45860
45870
|
focusOnClosed: element,
|