@mcurros2/microm 1.1.18-0 → 1.1.20-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 +1 -1
- package/dist/index.js +54 -47
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3283,8 +3283,8 @@ export function useMultiDataMapGrid({ dataMapView, viewState, selectionMode, map
|
|
|
3283
3283
|
onModalSaved: (new_status: import("src").OperationStatus<import("src").DBStatusResult | null>) => void;
|
|
3284
3284
|
modalFormSize: string | number | undefined;
|
|
3285
3285
|
onModalCancelled: () => void;
|
|
3286
|
-
parentKeys: import("src").ValuesObject;
|
|
3287
3286
|
withBorder: boolean;
|
|
3287
|
+
parentKeys: import("src").ValuesObject;
|
|
3288
3288
|
renderOnlyWhenVisible: boolean;
|
|
3289
3289
|
viewName: string;
|
|
3290
3290
|
refreshOnInit: boolean;
|
package/dist/index.js
CHANGED
|
@@ -4133,60 +4133,67 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
|
|
|
4133
4133
|
children,
|
|
4134
4134
|
modals.map((modal, index)=>{
|
|
4135
4135
|
const computedSizes = getModalSize(modal.props.size);
|
|
4136
|
-
return
|
|
4137
|
-
|
|
4136
|
+
return (0, $b4te3$reactjsxruntime.jsxs)((0, $b4te3$mantinecore.Modal).Root, {
|
|
4137
|
+
opened: modal.opened,
|
|
4138
|
+
onClose: ()=>$ea58ddf30d0b80dd$var$__awaiter(void 0, void 0, void 0, function*() {
|
|
4139
|
+
yield close();
|
|
4140
|
+
}),
|
|
4138
4141
|
size: computedSizes.size,
|
|
4139
|
-
overlayProps: index === modals.length - 1 ? modalProps.overlayProps : transparentOverlay,
|
|
4140
4142
|
fullScreen: computedSizes.fullscreen,
|
|
4141
4143
|
zIndex: (index + 1) * 5000,
|
|
4142
|
-
key: modal.id,
|
|
4143
|
-
opened: modal.opened,
|
|
4144
4144
|
returnFocus: false,
|
|
4145
|
-
|
|
4146
|
-
title: null,
|
|
4147
|
-
onClose: ()=>$ea58ddf30d0b80dd$var$__awaiter(void 0, void 0, void 0, function*() {
|
|
4148
|
-
yield close();
|
|
4149
|
-
})
|
|
4150
|
-
}), (0, $b4te3$reactjsxruntime.jsxs)((0, $b4te3$mantinecore.Modal).Header, {
|
|
4145
|
+
trapFocus: true,
|
|
4151
4146
|
children: [
|
|
4152
|
-
(0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Modal).
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4147
|
+
(0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Modal).Overlay, Object.assign({}, index === modals.length - 1 ? modalProps.overlayProps : transparentOverlay)),
|
|
4148
|
+
(0, $b4te3$reactjsxruntime.jsxs)((0, $b4te3$mantinecore.Modal).Content, {
|
|
4149
|
+
children: [
|
|
4150
|
+
(0, $b4te3$reactjsxruntime.jsxs)((0, $b4te3$mantinecore.Modal).Header, {
|
|
4151
|
+
children: [
|
|
4152
|
+
(0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Modal).Title, {
|
|
4153
|
+
children: modal.props.title
|
|
4154
|
+
}),
|
|
4155
|
+
(0, $b4te3$reactjsxruntime.jsxs)((0, $b4te3$mantinecore.Group), {
|
|
4156
|
+
position: "right",
|
|
4157
|
+
children: [
|
|
4158
|
+
(0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
|
|
4159
|
+
onClick: (e)=>{
|
|
4160
|
+
e.stopPropagation();
|
|
4161
|
+
setModals((prev)=>prev.map((m, i)=>{
|
|
4162
|
+
var _a;
|
|
4163
|
+
if (i !== index) return m;
|
|
4164
|
+
const original = (_a = m.initialSize) !== null && _a !== void 0 ? _a : "lg";
|
|
4165
|
+
const currentSize = m.props.size;
|
|
4166
|
+
const newSize = currentSize === "fullscreen" ? original === "fullscreen" ? "lg" : original : "fullscreen";
|
|
4167
|
+
return Object.assign(Object.assign({}, m), {
|
|
4168
|
+
props: Object.assign(Object.assign({}, m.props), {
|
|
4169
|
+
size: newSize
|
|
4170
|
+
})
|
|
4171
|
+
});
|
|
4172
|
+
}));
|
|
4173
|
+
},
|
|
4174
|
+
variant: "subtle",
|
|
4175
|
+
size: "sm",
|
|
4176
|
+
title: `${$ea58ddf30d0b80dd$export$20f67a9940806830.toggleLabel} ${$ea58ddf30d0b80dd$export$20f67a9940806830.fullscreenLabel}`,
|
|
4177
|
+
children: modal.props.size === "fullscreen" ? (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconWindowMinimize), {
|
|
4178
|
+
size: "1rem"
|
|
4179
|
+
}) : (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconWindowMaximize), {
|
|
4180
|
+
size: "1rem"
|
|
4181
|
+
})
|
|
4182
|
+
}),
|
|
4183
|
+
(0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Modal).CloseButton, {
|
|
4184
|
+
title: $ea58ddf30d0b80dd$export$20f67a9940806830.closeLabel
|
|
4185
|
+
})
|
|
4186
|
+
]
|
|
4187
|
+
})
|
|
4188
|
+
]
|
|
4189
|
+
}),
|
|
4190
|
+
(0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Modal).Body, {
|
|
4191
|
+
children: modal.resolvedContent ? modal.resolvedContent : (0, $lTNXP.isPromise)(modal.originalContent) ? (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Skeleton), {}) : modal.originalContent
|
|
4192
|
+
})
|
|
4193
|
+
]
|
|
4187
4194
|
})
|
|
4188
4195
|
]
|
|
4189
|
-
}
|
|
4196
|
+
}, modal.id);
|
|
4190
4197
|
})
|
|
4191
4198
|
]
|
|
4192
4199
|
});
|