@mcurros2/microm 1.1.158-0 → 1.1.160-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 +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33821,10 +33821,13 @@ var $726hz = parcelRequire("726hz");
|
|
|
33821
33821
|
const $9987aca4488b336f$export$cfa3d1bdbe24a61 = {
|
|
33822
33822
|
addingRecords: "Adding records...",
|
|
33823
33823
|
confirmContent: "Do you wish to add the selected records?",
|
|
33824
|
-
showActions: false
|
|
33824
|
+
showActions: false,
|
|
33825
|
+
enableAdd: false,
|
|
33826
|
+
enableEdit: false,
|
|
33827
|
+
enableDelete: false
|
|
33825
33828
|
};
|
|
33826
33829
|
function $9987aca4488b336f$export$deb93aade685e98(props) {
|
|
33827
|
-
const { lookupEntity: lookupEntity, viewName: viewName, onOK: onOK, addingRecords: addingRecords, title: title, onCancel: onCancel, onActionFinished: onActionFinished, runOnOpen: runOnOpen, confirmContent: confirmContent, showActions: showActions } = (0, $b4te3$mantinecore.useComponentDefaultProps)('LookupFormAction', $9987aca4488b336f$export$cfa3d1bdbe24a61, props);
|
|
33830
|
+
const { lookupEntity: lookupEntity, viewName: viewName, onOK: onOK, addingRecords: addingRecords, title: title, onCancel: onCancel, onActionFinished: onActionFinished, runOnOpen: runOnOpen, confirmContent: confirmContent, showActions: showActions, enableAdd: enableAdd, enableEdit: enableEdit, enableDelete: enableDelete } = (0, $b4te3$mantinecore.useComponentDefaultProps)('LookupFormAction', $9987aca4488b336f$export$cfa3d1bdbe24a61, props);
|
|
33828
33831
|
const modal = (0, $k7qj2.useModal)();
|
|
33829
33832
|
const LookpIcon = lookupEntity.Icon ?? (0, $b4te3$tablericonsreact.IconBoxMultiple);
|
|
33830
33833
|
const labels = (0, $kjFvY.DataGridDefaultProps).labels;
|
|
@@ -33835,9 +33838,9 @@ function $9987aca4488b336f$export$deb93aade685e98(props) {
|
|
|
33835
33838
|
limit: "10000",
|
|
33836
33839
|
refreshOnInit: true,
|
|
33837
33840
|
selectionMode: 'multi',
|
|
33838
|
-
enableAdd:
|
|
33839
|
-
enableEdit:
|
|
33840
|
-
enableDelete:
|
|
33841
|
+
enableAdd: enableAdd,
|
|
33842
|
+
enableEdit: enableEdit,
|
|
33843
|
+
enableDelete: enableDelete,
|
|
33841
33844
|
parentKeys: lookupEntity.parentKeys,
|
|
33842
33845
|
showActions: showActions
|
|
33843
33846
|
},
|
|
@@ -36797,8 +36800,6 @@ $parcel$export(module.exports, "useCreateGoogleMap", function () { return $b737d
|
|
|
36797
36800
|
var $32aKS = parcelRequire("32aKS");
|
|
36798
36801
|
|
|
36799
36802
|
var $f1AFh = parcelRequire("f1AFh");
|
|
36800
|
-
|
|
36801
|
-
var $jQiQb = parcelRequire("jQiQb");
|
|
36802
36803
|
function $b737d4021abcf81e$export$bdaabecc63f2fdb2({ mapOptions: mapOptions, children: children, setInfoWindowContent: setInfoWindowContent, infoWindowContentRef: infoWindowContentRef }) {
|
|
36803
36804
|
const containerRef = (0, $b4te3$react.useRef)(null);
|
|
36804
36805
|
const [map, setMap] = (0, $b4te3$react.useState)(null);
|
|
@@ -36806,7 +36807,7 @@ function $b737d4021abcf81e$export$bdaabecc63f2fdb2({ mapOptions: mapOptions, chi
|
|
|
36806
36807
|
(0, $b4te3$react.useEffect)(()=>{
|
|
36807
36808
|
if (map === null) {
|
|
36808
36809
|
if (!containerRef.current) throw new Error("Container required.");
|
|
36809
|
-
if (mapOptions && !mapOptions.center) mapOptions.center =
|
|
36810
|
+
if (mapOptions && mapOptions.center && (!mapOptions.center.lat || !mapOptions.center.lng)) mapOptions.center = undefined;
|
|
36810
36811
|
const initMap = new google.maps.Map(containerRef.current, mapOptions);
|
|
36811
36812
|
setMap(initMap);
|
|
36812
36813
|
}
|
|
@@ -36815,6 +36816,7 @@ function $b737d4021abcf81e$export$bdaabecc63f2fdb2({ mapOptions: mapOptions, chi
|
|
|
36815
36816
|
mapOptions
|
|
36816
36817
|
]);
|
|
36817
36818
|
(0, $b4te3$react.useEffect)(()=>{
|
|
36819
|
+
if (mapOptions && mapOptions.center && (!mapOptions.center.lat || !mapOptions.center.lng)) mapOptions.center = undefined;
|
|
36818
36820
|
if (map) map.setOptions(mapOptions);
|
|
36819
36821
|
}, [
|
|
36820
36822
|
map,
|
|
@@ -37544,6 +37546,8 @@ function $477f8ab014db96d9$export$2328eff9e1bf84ef(props) {
|
|
|
37544
37546
|
|
|
37545
37547
|
});
|
|
37546
37548
|
|
|
37549
|
+
|
|
37550
|
+
|
|
37547
37551
|
parcelRegister("jQiQb", function(module, exports) {
|
|
37548
37552
|
|
|
37549
37553
|
$parcel$export(module.exports, "DEFAULT_MAP_CENTER", function () { return $fcb291f733171619$export$8cd0ab387c59a110; });
|
|
@@ -37564,8 +37568,6 @@ const $fcb291f733171619$export$67a59ec0222ad436 = {
|
|
|
37564
37568
|
|
|
37565
37569
|
});
|
|
37566
37570
|
|
|
37567
|
-
|
|
37568
|
-
|
|
37569
37571
|
parcelRegister("cBazH", function(module, exports) {
|
|
37570
37572
|
|
|
37571
37573
|
$parcel$export(module.exports, "useGoogleAddressMappingRules", function () { return $d69768ae288c9561$export$fa48517122fad011; });
|
|
@@ -37687,6 +37689,7 @@ function $f45cc5d831dfee4e$export$f8311e03dfc5ec83({ mapOptions: mapOptions, Ini
|
|
|
37687
37689
|
// Map creation
|
|
37688
37690
|
(0, $b4te3$react.useEffect)(()=>{
|
|
37689
37691
|
if (map === null && containerRef.current) {
|
|
37692
|
+
if (mapOptions && mapOptions.center && (!mapOptions.center.lat || !mapOptions.center.lng)) mapOptions.center = undefined;
|
|
37690
37693
|
const initMap = new google.maps.Map(containerRef.current, mapOptions);
|
|
37691
37694
|
setMap(initMap);
|
|
37692
37695
|
}
|
|
@@ -37696,6 +37699,7 @@ function $f45cc5d831dfee4e$export$f8311e03dfc5ec83({ mapOptions: mapOptions, Ini
|
|
|
37696
37699
|
]);
|
|
37697
37700
|
// Map options update
|
|
37698
37701
|
(0, $b4te3$react.useEffect)(()=>{
|
|
37702
|
+
if (mapOptions && mapOptions.center && (!mapOptions.center.lat || !mapOptions.center.lng)) mapOptions.center = undefined;
|
|
37699
37703
|
if (map) map.setOptions(mapOptions);
|
|
37700
37704
|
}, [
|
|
37701
37705
|
map,
|