@mcurros2/microm 1.1.13-0 → 1.1.15-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 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +50 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3967,6 +3967,7 @@ function $991669c453bd55ba$export$15c9a37039d15c3e({ entity: entity, onSaved: on
|
|
|
3967
3967
|
|
|
3968
3968
|
parcelRegister("k7qj2", function(module, exports) {
|
|
3969
3969
|
|
|
3970
|
+
$parcel$export(module.exports, "ModalsManagerLabelsDefaultProps", function () { return $ea58ddf30d0b80dd$export$20f67a9940806830; });
|
|
3970
3971
|
$parcel$export(module.exports, "ModalsManager", function () { return $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c; });
|
|
3971
3972
|
$parcel$export(module.exports, "useModal", function () { return $ea58ddf30d0b80dd$export$33ffd74ebf07f060; });
|
|
3972
3973
|
|
|
@@ -3975,6 +3976,7 @@ $parcel$export(module.exports, "useModal", function () { return $ea58ddf30d0b80d
|
|
|
3975
3976
|
|
|
3976
3977
|
parcelRequire("2eyXi");
|
|
3977
3978
|
var $lTNXP = parcelRequire("lTNXP");
|
|
3979
|
+
|
|
3978
3980
|
var $ea58ddf30d0b80dd$var$__awaiter = undefined && undefined.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
3979
3981
|
function adopt(value) {
|
|
3980
3982
|
return value instanceof P ? value : new P(function(resolve) {
|
|
@@ -4002,6 +4004,12 @@ var $ea58ddf30d0b80dd$var$__awaiter = undefined && undefined.__awaiter || functi
|
|
|
4002
4004
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
4003
4005
|
});
|
|
4004
4006
|
};
|
|
4007
|
+
const $ea58ddf30d0b80dd$export$20f67a9940806830 = {
|
|
4008
|
+
closeLabel: "Close",
|
|
4009
|
+
fullscreenLabel: "Fullscreen",
|
|
4010
|
+
minimizeLabel: "Minimize",
|
|
4011
|
+
toggleLabel: "Toggle"
|
|
4012
|
+
};
|
|
4005
4013
|
const $ea58ddf30d0b80dd$var$NEW_SIZES = {
|
|
4006
4014
|
xs: "20%",
|
|
4007
4015
|
sm: "30%",
|
|
@@ -4050,7 +4058,8 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
|
|
|
4050
4058
|
id: modal_id,
|
|
4051
4059
|
props: modalProps,
|
|
4052
4060
|
onClosed: onClosed,
|
|
4053
|
-
focusOnClosed: focusOnClosed
|
|
4061
|
+
focusOnClosed: focusOnClosed,
|
|
4062
|
+
initialSize: modalProps.size
|
|
4054
4063
|
}
|
|
4055
4064
|
]);
|
|
4056
4065
|
} else setModals((prevModals)=>[
|
|
@@ -4062,7 +4071,8 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
|
|
|
4062
4071
|
id: modal_id,
|
|
4063
4072
|
props: modalProps,
|
|
4064
4073
|
onClosed: onClosed,
|
|
4065
|
-
focusOnClosed: focusOnClosed
|
|
4074
|
+
focusOnClosed: focusOnClosed,
|
|
4075
|
+
initialSize: modalProps.size
|
|
4066
4076
|
}
|
|
4067
4077
|
]);
|
|
4068
4078
|
}), [
|
|
@@ -4134,7 +4144,43 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
|
|
|
4134
4144
|
returnFocus: false,
|
|
4135
4145
|
onClose: ()=>$ea58ddf30d0b80dd$var$__awaiter(void 0, void 0, void 0, function*() {
|
|
4136
4146
|
yield close();
|
|
4137
|
-
})
|
|
4147
|
+
}),
|
|
4148
|
+
title: (0, $b4te3$reactjsxruntime.jsxs)((0, $b4te3$mantinecore.Group), {
|
|
4149
|
+
position: "apart",
|
|
4150
|
+
align: "center",
|
|
4151
|
+
noWrap: true,
|
|
4152
|
+
children: [
|
|
4153
|
+
(0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Title), {
|
|
4154
|
+
order: 2,
|
|
4155
|
+
children: modal.props.title
|
|
4156
|
+
}),
|
|
4157
|
+
(0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
|
|
4158
|
+
onClick: (e)=>{
|
|
4159
|
+
e.stopPropagation();
|
|
4160
|
+
setModals((prev)=>prev.map((m, i)=>{
|
|
4161
|
+
var _a;
|
|
4162
|
+
if (i !== index) return m;
|
|
4163
|
+
const original = (_a = m.initialSize) !== null && _a !== void 0 ? _a : "lg";
|
|
4164
|
+
const currentSize = m.props.size;
|
|
4165
|
+
const newSize = currentSize === "fullscreen" ? original === "fullscreen" ? "lg" : original : "fullscreen";
|
|
4166
|
+
return Object.assign(Object.assign({}, m), {
|
|
4167
|
+
props: Object.assign(Object.assign({}, m.props), {
|
|
4168
|
+
size: newSize
|
|
4169
|
+
})
|
|
4170
|
+
});
|
|
4171
|
+
}));
|
|
4172
|
+
},
|
|
4173
|
+
variant: "subtle",
|
|
4174
|
+
size: "sm",
|
|
4175
|
+
title: `${$ea58ddf30d0b80dd$export$20f67a9940806830.toggleLabel} ${$ea58ddf30d0b80dd$export$20f67a9940806830.fullscreenLabel}`,
|
|
4176
|
+
children: modal.props.size === "fullscreen" ? (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconArrowsMinimize), {
|
|
4177
|
+
size: "1rem"
|
|
4178
|
+
}) : (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconArrowsMaximize), {
|
|
4179
|
+
size: "1rem"
|
|
4180
|
+
})
|
|
4181
|
+
})
|
|
4182
|
+
]
|
|
4183
|
+
})
|
|
4138
4184
|
}), modal.resolvedContent ? modal.resolvedContent : (0, $lTNXP.isPromise)(modal.originalContent) ? (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Skeleton), {}) : modal.originalContent);
|
|
4139
4185
|
})
|
|
4140
4186
|
]
|
|
@@ -32809,15 +32855,13 @@ $parcel$export(module.exports, "DataGridColumnsMenu", function () { return $4147
|
|
|
32809
32855
|
|
|
32810
32856
|
function $4147ddc1926c6c51$export$72c73377cef8aa5(props) {
|
|
32811
32857
|
const { columns: columns, setOpened: setOpened, setColumns: setColumns } = props;
|
|
32812
|
-
const theme = (0, $b4te3$mantinecore.useMantineTheme)();
|
|
32813
32858
|
return (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Menu).Dropdown, {
|
|
32814
32859
|
children: columns === null || columns === void 0 ? void 0 : columns.map((column, index)=>{
|
|
32815
32860
|
return (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Menu).Item, {
|
|
32816
32861
|
icon: column.hidden ? (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconCircleDashedCheck), {
|
|
32817
32862
|
size: "1rem"
|
|
32818
32863
|
}) : (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconCircleCheck), {
|
|
32819
|
-
size: "1rem"
|
|
32820
|
-
color: theme.primaryColor
|
|
32864
|
+
size: "1rem"
|
|
32821
32865
|
}),
|
|
32822
32866
|
onClick: ()=>{
|
|
32823
32867
|
column.hidden = !column.hidden;
|