@mcurros2/microm 1.1.110-0 → 1.1.112-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 +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46330,7 +46330,7 @@ var $6cfe1c678386d764$var$__awaiter = undefined && undefined.__awaiter || functi
|
|
|
46330
46330
|
function $6cfe1c678386d764$export$cf62245ee3811550() {
|
|
46331
46331
|
const modals = (0, $k7qj2.useModal)();
|
|
46332
46332
|
const openForm = (0, $b4te3$react.useCallback)((props)=>$6cfe1c678386d764$var$__awaiter(this, void 0, void 0, function*() {
|
|
46333
|
-
const { entity: entity, initialFormMode: initialFormMode, getDataOnInit: getDataOnInit, modalFormSize: modalFormSize, title: title, element: element, onModalSaved: onModalSaved, onModalCancelled: onModalCancelled, OKText: OKText, CancelText: CancelText, showCancel: showCancel, onModalClosed: onModalClosed, otherFormProps: otherFormProps, dontAddEntityTitle: dontAddEntityTitle } = props;
|
|
46333
|
+
const { entity: entity, initialFormMode: initialFormMode, getDataOnInit: getDataOnInit, modalFormSize: modalFormSize, title: title, element: element, onModalSaved: onModalSaved, onModalCancelled: onModalCancelled, OKText: OKText, CancelText: CancelText, showCancel: showCancel, onModalClosed: onModalClosed, otherFormProps: otherFormProps, dontAddEntityTitle: dontAddEntityTitle, withFullscreenButton: withFullscreenButton, closeOnEscape: closeOnEscape, closeOnClickOutside: closeOnClickOutside } = props;
|
|
46334
46334
|
const showOK = initialFormMode !== "view";
|
|
46335
46335
|
const onSaved = initialFormMode !== "view" ? (new_status)=>$6cfe1c678386d764$var$__awaiter(this, void 0, void 0, function*() {
|
|
46336
46336
|
yield modals.close();
|
|
@@ -46363,7 +46363,10 @@ function $6cfe1c678386d764$export$cf62245ee3811550() {
|
|
|
46363
46363
|
!dontAddEntityTitle && ` ${entity.Title}`
|
|
46364
46364
|
]
|
|
46365
46365
|
}),
|
|
46366
|
-
size: modalFormSize
|
|
46366
|
+
size: modalFormSize,
|
|
46367
|
+
withFullscreenButton: withFullscreenButton,
|
|
46368
|
+
closeOnEscape: closeOnEscape,
|
|
46369
|
+
closeOnClickOutside: closeOnClickOutside
|
|
46367
46370
|
},
|
|
46368
46371
|
focusOnClosed: element,
|
|
46369
46372
|
content: entity_form,
|
|
@@ -48373,10 +48376,13 @@ var $a2f8dbbe67378f4d$var$__awaiter = undefined && undefined.__awaiter || functi
|
|
|
48373
48376
|
};
|
|
48374
48377
|
const $a2f8dbbe67378f4d$export$55c300775114d1d7 = {
|
|
48375
48378
|
initialFormMode: "add",
|
|
48376
|
-
modalFormSize: "xl"
|
|
48379
|
+
modalFormSize: "xl",
|
|
48380
|
+
withFullscreenButton: true,
|
|
48381
|
+
closeOnEscape: true,
|
|
48382
|
+
closeOnClickOutside: false
|
|
48377
48383
|
};
|
|
48378
48384
|
function $a2f8dbbe67378f4d$export$82ae7c22f1133bd2(props) {
|
|
48379
|
-
const { client: client, entityConstructor: entityConstructor, openState: openState, setOpenState: setOpenState, initialFormMode: initialFormMode, getDataOnInit: getDataOnInit, onModalClosed: onModalClosed, onModalSaved: onModalSaved, modalFormSize: modalFormSize } = (0, $b4te3$mantinecore.useComponentDefaultProps)("EntityFormModal", $a2f8dbbe67378f4d$export$55c300775114d1d7, props);
|
|
48385
|
+
const { client: client, entityConstructor: entityConstructor, openState: openState, setOpenState: setOpenState, initialFormMode: initialFormMode, getDataOnInit: getDataOnInit, onModalClosed: onModalClosed, onModalSaved: onModalSaved, modalFormSize: modalFormSize, withFullscreenButton: withFullscreenButton, closeOnClickOutside: closeOnClickOutside, closeOnEscape: closeOnEscape } = (0, $b4te3$mantinecore.useComponentDefaultProps)("EntityFormModal", $a2f8dbbe67378f4d$export$55c300775114d1d7, props);
|
|
48380
48386
|
const openForm = (0, $9maeT.useOpenForm)();
|
|
48381
48387
|
const hasOpened = (0, $b4te3$react.useRef)(false);
|
|
48382
48388
|
(0, $b4te3$react.useEffect)(()=>{
|
|
@@ -48387,6 +48393,9 @@ function $a2f8dbbe67378f4d$export$82ae7c22f1133bd2(props) {
|
|
|
48387
48393
|
entity: entity,
|
|
48388
48394
|
initialFormMode: initialFormMode,
|
|
48389
48395
|
getDataOnInit: getDataOnInit,
|
|
48396
|
+
withFullscreenButton: withFullscreenButton,
|
|
48397
|
+
closeOnClickOutside: closeOnClickOutside,
|
|
48398
|
+
closeOnEscape: closeOnEscape,
|
|
48390
48399
|
onModalClosed: ()=>{
|
|
48391
48400
|
setOpenState(false);
|
|
48392
48401
|
hasOpened.current = false;
|
|
@@ -48411,7 +48420,10 @@ function $a2f8dbbe67378f4d$export$82ae7c22f1133bd2(props) {
|
|
|
48411
48420
|
openForm,
|
|
48412
48421
|
openState,
|
|
48413
48422
|
setOpenState,
|
|
48414
|
-
modalFormSize
|
|
48423
|
+
modalFormSize,
|
|
48424
|
+
withFullscreenButton,
|
|
48425
|
+
closeOnEscape,
|
|
48426
|
+
closeOnClickOutside
|
|
48415
48427
|
]);
|
|
48416
48428
|
return null;
|
|
48417
48429
|
}
|