@m4l/components 1.1.1 → 1.1.2
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/@types/export.d.ts +269 -274
- package/@types/types.d.ts +34 -25
- package/components/AccountPopover/{index.dde11a5c.js → index.84049a50.js} +3 -3
- package/components/AppBar/{index.19b11c19.js → index.22ed1a0e.js} +4 -4
- package/components/BaseModule/{index.4b725d16.js → index.0fc648c5.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index.c3cddacf.js → index.33cf608e.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.3ec840af.js → index.d1359a38.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.3187e7a7.js → index.415de2bb.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.db2b2999.js → index.0893587b.js} +2 -2
- package/components/CommonActions/components/Actions/{index.84b8fd47.js → index.2342a37e.js} +2 -2
- package/components/DataGrid/assets/icons/datagrid.svg +4 -4
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.ea1b882e.js → index.9d6f8597.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.cff633f6.js → index.9bcaba12.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.d2e656a0.js → index.a58a8712.js} +1 -1
- package/components/DataGrid/formatters/{index.4b65c281.js → index.6698b419.js} +2 -2
- package/components/DataGrid/{index.9aa088f6.js → index.b1cac6af.js} +4 -4
- package/components/DataGrid/subcomponents/Actions/{index.9416e750.js → index.a60b17d5.js} +11 -11
- package/components/DragResizeWindow/DragResizeWindow.d.ts +1 -1
- package/components/DragResizeWindow/classes/types.d.ts +1 -0
- package/components/DragResizeWindow/helpers/index.d.ts +3 -0
- package/components/DragResizeWindow/{index.8f5a2e3e.js → index.46048367.js} +52 -39
- package/components/DragResizeWindow/types.d.ts +7 -0
- package/components/DynamicFilter/{dictionary.e9ad0f7c.js → dictionary.da256925.js} +2 -2
- package/components/DynamicFilter/{index.e737845f.js → index.08abfc2c.js} +4 -4
- package/components/DynamicFilter/slots/{dynamicFilterSlots.c6d731f1.js → dynamicFilterSlots.b02bff6a.js} +6 -6
- package/components/DynamicFilter/store/{index.7a5e5f6a.js → index.1e4af8b4.js} +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.f714d323.js → index.37bcd016.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index.c4131ff0.js → index.2740f285.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.9be8d255.js → index.63102514.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.5caf5b34.js → index.3824d701.js} +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.f5262ca2.js → index.57ddf344.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.f48b4af1.js → index.7beac9f0.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.86de8517.js → index.e9e1af93.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.1ba1cc22.js → index.d27a8bcc.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/{index.8d2e925e.js → index.e8f1d8e5.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index.066a32f4.js → index.35014c15.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index.f3f01ebc.js → index.f42e9571.js} +4 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index.7805f621.js → index.ada7eb0c.js} +6 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.d5efe247.js → index.144885cf.js} +2 -2
- package/components/FieldLabel/{index.a6235bcc.js → index.59b9b63a.js} +4 -4
- package/components/GridLayout/{index.14b734d6.js → index.56c3f4fa.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.5c8546c8.js → index.02bcb3b3.js} +3 -3
- package/components/GridLayout/subcomponents/Responsive/{index.6646c077.js → index.65aeef5e.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.1108dd01.js → index.0aad6f90.js} +1 -1
- package/components/HelperText/{index.b1961313.js → index.5c72277a.js} +2 -2
- package/components/Icon/{index.e06c693f.js → index.13aaae3c.js} +3 -3
- package/components/Image/{index.8a3d05d3.js → index.4b51d4ba.js} +2 -2
- package/components/LanguagePopover/{index.25266514.js → index.7605fda8.js} +4 -4
- package/components/LinearProgressIndeterminate/{index.80f8b74d.js → index.292a4af8.js} +2 -2
- package/components/LoadingError/{index.81979bb3.js → index.b129b573.js} +5 -5
- package/components/MFIsolationApp/{index.3125cd12.js → index.9f718621.js} +2 -2
- package/components/MFLoader/{index.952a3fee.js → index.5d340e32.js} +2 -2
- package/components/ModalDialog/{index.0dba90d3.js → index.ff275011.js} +4 -4
- package/components/NavLink/{index.0c844a30.js → index.506c7827.js} +2 -2
- package/components/NoItemSelected/{index.dd2cee48.js → index.1d7d5a9d.js} +1 -1
- package/components/ObjectLogs/{index.f98e884b.js → index.473ebd65.js} +9 -9
- package/components/PDFViewer/{index.1b7068e5.js → index.4e7ffac8.js} +2 -2
- package/components/Page/{index.fa45b3d5.js → index.b75c74e3.js} +1 -1
- package/components/PaperForm/{index.f1467e34.js → index.8289409f.js} +2 -2
- package/components/Period/{index.732248a8.js → index.13e4c351.js} +4 -4
- package/components/PrintingSystem/{index.7aed44a2.js → index.e1535b80.js} +14 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.3e82f72e.js → index.6b36842d.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.8d4e4894.js → index.4aab9d2c.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.f9343c1f.js → index.23a9dc95.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.1cdf54cf.js → index.d0e8fd15.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.32a2e08a.js → index.35ff7dab.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.715f4e49.js → index.9547c826.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.92df744d.js → index.71afe03e.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.4316a07a.js → index.abbb154c.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.21b9d770.js → index.b3f2ba6c.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.03e73c9d.js → index.809aaad2.js} +1 -1
- package/components/PropertyValue/{index.f85c4118.js → index.36555931.js} +3 -3
- package/components/Resizeable/{index.305dae8c.js → index.57363836.js} +1 -1
- package/components/ScrollBar/{index.9c677335.js → index.236e2aa3.js} +1 -1
- package/components/SideBar/{index.d33d87f4.js → index.bb6c2c7b.js} +6 -6
- package/components/SplitLayout/{index.a5414b61.js → index.75953afb.js} +1 -1
- package/components/ToastContainer/{index.ce752150.js → index.bb972338.js} +3 -3
- package/components/animate/LoadingScreen/{index.881ca784.js → index.09915798.js} +1 -1
- package/components/animate/{index.d6f073fe.js → index.5c545243.js} +1 -1
- package/components/areas/components/AreasAdmin/{index.80da2678.js → index.42d40964.js} +15 -15
- package/components/areas/components/AreasViewer/{index.7836a623.js → index.266a3815.js} +15 -15
- package/components/areas/contexts/AreasContext/{index.c4e41ac3.js → index.c2289888.js} +4 -4
- package/components/areas/hooks/useAreas/{index.cf3f35fa.js → index.509c1703.js} +1 -1
- package/components/areas/types.d.ts +1 -1
- package/components/commercial/AppBarCommercial/{index.00571293.js → index.3fd10868.js} +2 -2
- package/components/commercial/SectionCommercial/{index.c3f56cb3.js → index.bd45c64e.js} +2 -2
- package/components/commercial/TopBar/{index.56ade547.js → index.4e55cffa.js} +6 -6
- package/components/commercial/{index.788464b6.js → index.4bdbb8fe.js} +3 -3
- package/components/formatters/BooleanFormatter/{index.6f664715.js → index.ac870381.js} +2 -2
- package/components/formatters/{index.d1846e98.js → index.53ad2f51.js} +2 -2
- package/components/hook-form/HelperError/{index.a0faefe4.js → index.9f93c627.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index.dab5e2d6.js → index.b8347185.js} +6 -6
- package/components/hook-form/RHFAutocompleteAsync/{index.a61e7dda.js → index.aeb3bf66.js} +2 -2
- package/components/hook-form/RHFCheckbox/{index.71751a9d.js → index.c3b7ce0f.js} +3 -3
- package/components/hook-form/RHFColorPicker/{index.3a8f36b1.js → index.c259b8ac.js} +6 -6
- package/components/hook-form/RHFDateTime/{index.2f4ce21c.js → index.4efe48ce.js} +4 -4
- package/components/hook-form/RHFPeriod/{index.acf46fb2.js → index.0f912e3e.js} +4 -4
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.d.ts +1 -1
- package/components/hook-form/RHFRadioGroup/formatters/OptionIconLabelFormatter/index.d.ts +2 -0
- package/components/hook-form/RHFRadioGroup/index.96c94958.js +52 -0
- package/components/hook-form/RHFRadioGroup/types.d.ts +10 -4
- package/components/hook-form/RHFTextField/{index.06342648.js → index.828b30f5.js} +5 -5
- package/components/hook-form/RHFUpload/{index.ef58c607.js → index.b664c68b.js} +5 -5
- package/components/maps/components/GpsTools/{index.3cc627c5.js → index.e759163d.js} +23 -23
- package/components/maps/components/Map/external/Control/index.d.ts +1 -1
- package/components/maps/components/Map/external/googleMutant/index.d.ts +159 -159
- package/components/maps/components/Map/{index.c50fc538.js → index.c568e68d.js} +30 -27
- package/components/maps/leaflet-geoman.d.ts +1476 -1476
- package/components/modal/{WindowBase.af49e2e8.js → WindowBase.58f9e2b0.js} +3 -3
- package/components/modal/{WindowConfirm.141e19a9.js → WindowConfirm.60955735.js} +6 -6
- package/components/mui_extended/Accordion/{index.e76a8701.js → index.e6971e30.js} +4 -4
- package/components/mui_extended/Avatar/{index.fc674f4b.js → index.8cc99f13.js} +1 -1
- package/components/mui_extended/Badge/{index.615959af.js → index.07fb40c0.js} +1 -1
- package/components/mui_extended/Button/{index.a391ee9f.js → index.111f830e.js} +3 -3
- package/components/mui_extended/{CheckBox.ae30825c.js → CheckBox.a8958eb8.js} +2 -2
- package/components/mui_extended/IconButton/{index.97e91dae.js → index.9425bdc5.js} +2 -2
- package/components/mui_extended/MenuActions/{index.1092605e.js → index.8b0d69b7.js} +5 -5
- package/components/mui_extended/Pager/{index.4d510ef5.js → index.cb749e65.js} +4 -4
- package/components/mui_extended/Popover/{index.82970357.js → index.5e78a637.js} +1 -1
- package/components/mui_extended/Stack/{index.e64a379b.js → index.3674daf7.js} +1 -1
- package/components/mui_extended/Tab/{index.f31eb904.js → index.a94a92c1.js} +1 -1
- package/components/mui_extended/ToggleButton/{index.4afacb33.js → index.a55def3b.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.621ff8bc.js → index.cd20de81.js} +1 -1
- package/components/mui_extended/Typography/{index.8a0f958b.js → index.45e97bdd.js} +1 -1
- package/components/popups/PopupsProvider/{index.6591c56e.js → index.776c62e7.js} +8 -34
- package/components/popups/PopupsViewer/constants.29247547.js +4 -0
- package/components/popups/PopupsViewer/icons.066abd43.js +7 -0
- package/components/popups/PopupsViewer/{index.caf23a5d.js → index.8fe4aa5d.js} +43 -78
- package/components/popups/PopupsViewer/slots/index.154e4e5f.js +14 -0
- package/components/popups/PopupsViewer/slots/popupsViewerSlots.aaf546e2.js +39 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.d.ts +1 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +27 -47
- package/components/popups/components/PopupsViewer/PopupsViewer.d.ts +1 -2
- package/components/popups/components/PopupsViewer/constants.d.ts +1 -1
- package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +25 -0
- package/components/popups/components/PopupsViewer/slots/slots.d.ts +10 -0
- package/components/popups/components/PopupsViewer/types.d.ts +17 -3
- package/contexts/ModalContext/{index.8281527d.js → index.a5c622d6.js} +1 -1
- package/contexts/RHFormContext/{index.939811b3.js → index.40a9547e.js} +1 -1
- package/hooks/useFormAddEdit/{index.dfb5570d.js → index.b6a3cf63.js} +2 -2
- package/hooks/useModal/{index.538e8219.js → index.3ad1e014.js} +1 -1
- package/hooks/useTab/{index.bc8d38fc.js → index.4081b113.js} +1 -1
- package/index.js +126 -122
- package/package.json +1 -1
- package/{react-draggable.1c1ba224.js → react-draggable.310e3387.js} +1 -1
- package/{react-resizable.a59c14f4.js → react-resizable.3755959b.js} +2 -2
- package/styles/{DynamicFilter.27c16026.js → DynamicFilter.557ee3a7.js} +1 -1
- package/styles/PopupViewer.styles.d.ts +2 -0
- package/styles/{index.7868464e.js → index.239f949e.js} +99 -9
- package/vite-env.d.ts +4 -4
- package/components/hook-form/RHFRadioGroup/index.11c0add8.js +0 -35
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/helper.d.ts +0 -7
- package/components/popups/components/PopupsViewer/classes/index.d.ts +0 -17
- package/components/popups/components/PopupsViewer/classes/types.d.ts +0 -15
- package/components/popups/components/PopupsViewer/styled.d.ts +0 -2
- /package/utils/{index.14912462.js → index.78d1638f.js} +0 -0
|
@@ -1,159 +1,159 @@
|
|
|
1
|
-
import 'leaflet';
|
|
2
|
-
|
|
3
|
-
declare module 'leaflet' {
|
|
4
|
-
namespace gridLayer {
|
|
5
|
-
interface GoogleMutant extends GridLayer {
|
|
6
|
-
setElementSize(e: HTMLElement, size: Point): void;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Add additional Google Maps layer.
|
|
10
|
-
*
|
|
11
|
-
* https://developers.google.com/maps/documentation/javascript/trafficlayer
|
|
12
|
-
*
|
|
13
|
-
* @param googleLayerName such as BicyclingLayer, TrafficLayer, or TransitLayer.
|
|
14
|
-
* @param options? constructor arguments to pass through to the google layer.
|
|
15
|
-
* @returns Promise for the native Google Maps Layer instance.
|
|
16
|
-
*/
|
|
17
|
-
addGoogleLayer(googleLayerName: string, options?: object): Promise<object>;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Removes Google Maps layer.
|
|
21
|
-
*
|
|
22
|
-
* https://developers.google.com/maps/documentation/javascript/trafficlayer
|
|
23
|
-
*
|
|
24
|
-
* @param googleLayerName such as BicyclingLayer, TrafficLayer, or TransitLayer.
|
|
25
|
-
*/
|
|
26
|
-
removeGoogleLayer(googleLayerName: string): void;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
type GoogleMutantType = 'roadmap' | 'satellite' | 'terrain' | 'hybrid';
|
|
30
|
-
|
|
31
|
-
interface GoogleMutantStyler {
|
|
32
|
-
hue?: string | undefined;
|
|
33
|
-
lightness?: number | undefined;
|
|
34
|
-
saturation?: number | undefined;
|
|
35
|
-
gamma?: number | undefined;
|
|
36
|
-
invert_lightness?: boolean | undefined;
|
|
37
|
-
visibility?: string | undefined;
|
|
38
|
-
color?: string | undefined;
|
|
39
|
-
weight?: number | undefined;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Google's map style.
|
|
44
|
-
*
|
|
45
|
-
* https://developers.google.com/maps/documentation/javascript/style-reference
|
|
46
|
-
*/
|
|
47
|
-
interface GoogleMutantStyle {
|
|
48
|
-
/**
|
|
49
|
-
* https://developers.google.com/maps/documentation/javascript/style-reference#style-features
|
|
50
|
-
*/
|
|
51
|
-
featureType?: string | undefined;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* https://developers.google.com/maps/documentation/javascript/style-reference#style-elements
|
|
55
|
-
*/
|
|
56
|
-
elementType?: string | undefined;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* https://developers.google.com/maps/documentation/javascript/style-reference#stylers
|
|
60
|
-
*/
|
|
61
|
-
stylers?: GoogleMutantStyler[] | undefined;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
interface GoogleMutantOptions extends TileLayerOptions {
|
|
65
|
-
minZoom?: number | undefined;
|
|
66
|
-
maxZoom?: number | undefined;
|
|
67
|
-
maxNativeZoom?: number | undefined;
|
|
68
|
-
tileSize?: number | Point | undefined;
|
|
69
|
-
subdomains?: string | string[] | undefined;
|
|
70
|
-
errorTileUrl?: string | undefined;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* The mutant container will add its own attribution anyways.
|
|
74
|
-
*/
|
|
75
|
-
attribution?: string | undefined;
|
|
76
|
-
|
|
77
|
-
opacity?: number | undefined;
|
|
78
|
-
continuousWorld?: boolean | undefined;
|
|
79
|
-
noWrap?: boolean | undefined;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Google's map type. 'hybrid' is not really supported.
|
|
83
|
-
*/
|
|
84
|
-
type?: GoogleMutantType | undefined;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Google's map styles.
|
|
88
|
-
*/
|
|
89
|
-
styles?: GoogleMutantStyle[] | undefined;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function googleMutant(options?: GoogleMutantOptions): GoogleMutant;
|
|
93
|
-
|
|
94
|
-
// Remove the duplicate declaration of GoogleMutantType
|
|
95
|
-
|
|
96
|
-
interface GoogleMutantStyler {
|
|
97
|
-
hue?: string | undefined;
|
|
98
|
-
lightness?: number | undefined;
|
|
99
|
-
saturation?: number | undefined;
|
|
100
|
-
gamma?: number | undefined;
|
|
101
|
-
invert_lightness?: boolean | undefined;
|
|
102
|
-
visibility?: string | undefined;
|
|
103
|
-
color?: string | undefined;
|
|
104
|
-
weight?: number | undefined;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Google's map style.
|
|
109
|
-
*
|
|
110
|
-
* https://developers.google.com/maps/documentation/javascript/style-reference
|
|
111
|
-
*/
|
|
112
|
-
interface GoogleMutantStyle {
|
|
113
|
-
/**
|
|
114
|
-
* https://developers.google.com/maps/documentation/javascript/style-reference#style-features
|
|
115
|
-
*/
|
|
116
|
-
featureType?: string | undefined;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* https://developers.google.com/maps/documentation/javascript/style-reference#style-elements
|
|
120
|
-
*/
|
|
121
|
-
elementType?: string | undefined;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* https://developers.google.com/maps/documentation/javascript/style-reference#stylers
|
|
125
|
-
*/
|
|
126
|
-
stylers?: GoogleMutantStyler[] | undefined;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
interface GoogleMutantOptions extends TileLayerOptions {
|
|
130
|
-
minZoom?: number | undefined;
|
|
131
|
-
maxZoom?: number | undefined;
|
|
132
|
-
maxNativeZoom?: number | undefined;
|
|
133
|
-
tileSize?: number | Point | undefined;
|
|
134
|
-
subdomains?: string | string[] | undefined;
|
|
135
|
-
errorTileUrl?: string | undefined;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* The mutant container will add its own attribution anyways.
|
|
139
|
-
*/
|
|
140
|
-
attribution?: string | undefined;
|
|
141
|
-
|
|
142
|
-
opacity?: number | undefined;
|
|
143
|
-
continuousWorld?: boolean | undefined;
|
|
144
|
-
noWrap?: boolean | undefined;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Google's map type. 'hybrid' is not really supported.
|
|
148
|
-
*/
|
|
149
|
-
type?: GoogleMutantType | undefined;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Google's map styles.
|
|
153
|
-
*/
|
|
154
|
-
styles?: GoogleMutantStyle[] | undefined;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
function googleMutant(options?: GoogleMutantOptions): GoogleMutant;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
1
|
+
import 'leaflet';
|
|
2
|
+
|
|
3
|
+
declare module 'leaflet' {
|
|
4
|
+
namespace gridLayer {
|
|
5
|
+
interface GoogleMutant extends GridLayer {
|
|
6
|
+
setElementSize(e: HTMLElement, size: Point): void;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Add additional Google Maps layer.
|
|
10
|
+
*
|
|
11
|
+
* https://developers.google.com/maps/documentation/javascript/trafficlayer
|
|
12
|
+
*
|
|
13
|
+
* @param googleLayerName such as BicyclingLayer, TrafficLayer, or TransitLayer.
|
|
14
|
+
* @param options? constructor arguments to pass through to the google layer.
|
|
15
|
+
* @returns Promise for the native Google Maps Layer instance.
|
|
16
|
+
*/
|
|
17
|
+
addGoogleLayer(googleLayerName: string, options?: object): Promise<object>;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Removes Google Maps layer.
|
|
21
|
+
*
|
|
22
|
+
* https://developers.google.com/maps/documentation/javascript/trafficlayer
|
|
23
|
+
*
|
|
24
|
+
* @param googleLayerName such as BicyclingLayer, TrafficLayer, or TransitLayer.
|
|
25
|
+
*/
|
|
26
|
+
removeGoogleLayer(googleLayerName: string): void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
type GoogleMutantType = 'roadmap' | 'satellite' | 'terrain' | 'hybrid';
|
|
30
|
+
|
|
31
|
+
interface GoogleMutantStyler {
|
|
32
|
+
hue?: string | undefined;
|
|
33
|
+
lightness?: number | undefined;
|
|
34
|
+
saturation?: number | undefined;
|
|
35
|
+
gamma?: number | undefined;
|
|
36
|
+
invert_lightness?: boolean | undefined;
|
|
37
|
+
visibility?: string | undefined;
|
|
38
|
+
color?: string | undefined;
|
|
39
|
+
weight?: number | undefined;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Google's map style.
|
|
44
|
+
*
|
|
45
|
+
* https://developers.google.com/maps/documentation/javascript/style-reference
|
|
46
|
+
*/
|
|
47
|
+
interface GoogleMutantStyle {
|
|
48
|
+
/**
|
|
49
|
+
* https://developers.google.com/maps/documentation/javascript/style-reference#style-features
|
|
50
|
+
*/
|
|
51
|
+
featureType?: string | undefined;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* https://developers.google.com/maps/documentation/javascript/style-reference#style-elements
|
|
55
|
+
*/
|
|
56
|
+
elementType?: string | undefined;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* https://developers.google.com/maps/documentation/javascript/style-reference#stylers
|
|
60
|
+
*/
|
|
61
|
+
stylers?: GoogleMutantStyler[] | undefined;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
interface GoogleMutantOptions extends TileLayerOptions {
|
|
65
|
+
minZoom?: number | undefined;
|
|
66
|
+
maxZoom?: number | undefined;
|
|
67
|
+
maxNativeZoom?: number | undefined;
|
|
68
|
+
tileSize?: number | Point | undefined;
|
|
69
|
+
subdomains?: string | string[] | undefined;
|
|
70
|
+
errorTileUrl?: string | undefined;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The mutant container will add its own attribution anyways.
|
|
74
|
+
*/
|
|
75
|
+
attribution?: string | undefined;
|
|
76
|
+
|
|
77
|
+
opacity?: number | undefined;
|
|
78
|
+
continuousWorld?: boolean | undefined;
|
|
79
|
+
noWrap?: boolean | undefined;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Google's map type. 'hybrid' is not really supported.
|
|
83
|
+
*/
|
|
84
|
+
type?: GoogleMutantType | undefined;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Google's map styles.
|
|
88
|
+
*/
|
|
89
|
+
styles?: GoogleMutantStyle[] | undefined;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function googleMutant(options?: GoogleMutantOptions): GoogleMutant;
|
|
93
|
+
|
|
94
|
+
// Remove the duplicate declaration of GoogleMutantType
|
|
95
|
+
|
|
96
|
+
interface GoogleMutantStyler {
|
|
97
|
+
hue?: string | undefined;
|
|
98
|
+
lightness?: number | undefined;
|
|
99
|
+
saturation?: number | undefined;
|
|
100
|
+
gamma?: number | undefined;
|
|
101
|
+
invert_lightness?: boolean | undefined;
|
|
102
|
+
visibility?: string | undefined;
|
|
103
|
+
color?: string | undefined;
|
|
104
|
+
weight?: number | undefined;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Google's map style.
|
|
109
|
+
*
|
|
110
|
+
* https://developers.google.com/maps/documentation/javascript/style-reference
|
|
111
|
+
*/
|
|
112
|
+
interface GoogleMutantStyle {
|
|
113
|
+
/**
|
|
114
|
+
* https://developers.google.com/maps/documentation/javascript/style-reference#style-features
|
|
115
|
+
*/
|
|
116
|
+
featureType?: string | undefined;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* https://developers.google.com/maps/documentation/javascript/style-reference#style-elements
|
|
120
|
+
*/
|
|
121
|
+
elementType?: string | undefined;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* https://developers.google.com/maps/documentation/javascript/style-reference#stylers
|
|
125
|
+
*/
|
|
126
|
+
stylers?: GoogleMutantStyler[] | undefined;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
interface GoogleMutantOptions extends TileLayerOptions {
|
|
130
|
+
minZoom?: number | undefined;
|
|
131
|
+
maxZoom?: number | undefined;
|
|
132
|
+
maxNativeZoom?: number | undefined;
|
|
133
|
+
tileSize?: number | Point | undefined;
|
|
134
|
+
subdomains?: string | string[] | undefined;
|
|
135
|
+
errorTileUrl?: string | undefined;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* The mutant container will add its own attribution anyways.
|
|
139
|
+
*/
|
|
140
|
+
attribution?: string | undefined;
|
|
141
|
+
|
|
142
|
+
opacity?: number | undefined;
|
|
143
|
+
continuousWorld?: boolean | undefined;
|
|
144
|
+
noWrap?: boolean | undefined;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Google's map type. 'hybrid' is not really supported.
|
|
148
|
+
*/
|
|
149
|
+
type?: GoogleMutantType | undefined;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Google's map styles.
|
|
153
|
+
*/
|
|
154
|
+
styles?: GoogleMutantStyle[] | undefined;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function googleMutant(options?: GoogleMutantOptions): GoogleMutant;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
@@ -9,24 +9,24 @@ import { createPortal } from "react-dom";
|
|
|
9
9
|
import { useModuleDictionary, useModuleSkeleton, useEnvironment, useModulePrivileges } from "@m4l/core";
|
|
10
10
|
import clsx from "clsx";
|
|
11
11
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
12
|
-
import { A as Actions } from "../../../CommonActions/components/Actions/index.
|
|
13
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
12
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.2342a37e.js";
|
|
13
|
+
import { B as Button } from "../../../mui_extended/Button/index.111f830e.js";
|
|
14
14
|
import * as Yup from "yup";
|
|
15
15
|
import { u as useFormReadyForUpdate } from "../../../../hooks/useFormReadyForUpdate/index.f60f500e.js";
|
|
16
|
-
import { R as RHFAutocompleteAsync } from "../../../hook-form/RHFAutocompleteAsync/index.
|
|
17
|
-
import { S as Stack } from "../../../mui_extended/Stack/index.
|
|
18
|
-
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.
|
|
19
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
20
|
-
import { u as usePopupsStore, P as PopupsProvider } from "../../../popups/PopupsProvider/index.
|
|
21
|
-
import { T as ToggleIconButton } from "../../../mui_extended/ToggleIconButton/index.
|
|
22
|
-
import { D as DataGrid } from "../../../DataGrid/index.
|
|
16
|
+
import { R as RHFAutocompleteAsync } from "../../../hook-form/RHFAutocompleteAsync/index.aeb3bf66.js";
|
|
17
|
+
import { S as Stack } from "../../../mui_extended/Stack/index.3674daf7.js";
|
|
18
|
+
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.40a9547e.js";
|
|
19
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.9425bdc5.js";
|
|
20
|
+
import { u as usePopupsStore, P as PopupsProvider } from "../../../popups/PopupsProvider/index.776c62e7.js";
|
|
21
|
+
import { T as ToggleIconButton } from "../../../mui_extended/ToggleIconButton/index.cd20de81.js";
|
|
22
|
+
import { D as DataGrid } from "../../../DataGrid/index.b1cac6af.js";
|
|
23
23
|
import { generateUtilityClasses, Tooltip, FormControl, RadioGroup, FormControlLabel, Radio, useTheme } from "@mui/material";
|
|
24
24
|
import { C as ColumnSetCheckFormatter } from "../../../DataGrid/formatters/ColumnSetCheckFormatter/index.4045b2f2.js";
|
|
25
|
-
import { I as Icon, M as MarkerIconLabel } from "../../../Icon/index.
|
|
25
|
+
import { I as Icon, M as MarkerIconLabel } from "../../../Icon/index.13aaae3c.js";
|
|
26
26
|
import { u as useStateRef } from "../../../../hooks/useStateRef/index.538edb89.js";
|
|
27
|
-
import { C as CheckBox } from "../../../mui_extended/CheckBox.
|
|
28
|
-
import { P as Popover } from "../../../mui_extended/Popover/index.
|
|
29
|
-
import { P as PopupsViewer } from "../../../popups/PopupsViewer/index.
|
|
27
|
+
import { C as CheckBox } from "../../../mui_extended/CheckBox.a8958eb8.js";
|
|
28
|
+
import { P as Popover } from "../../../mui_extended/Popover/index.5e78a637.js";
|
|
29
|
+
import { P as PopupsViewer } from "../../../popups/PopupsViewer/index.8fe4aa5d.js";
|
|
30
30
|
import { createPathComponent } from "@react-leaflet/core";
|
|
31
31
|
import "leaflet.markercluster";
|
|
32
32
|
import { cloneDeep, throttle } from "lodash";
|
|
@@ -37,7 +37,7 @@ import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
|
37
37
|
import { devtools } from "zustand/middleware";
|
|
38
38
|
import { immer } from "zustand/middleware/immer";
|
|
39
39
|
import { unstable_composeClasses } from "@mui/base";
|
|
40
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.
|
|
40
|
+
import { g as getComponentUtilityClass } from "../../../../utils/index.78d1638f.js";
|
|
41
41
|
import { b as bearingRawToCSS } from "../../index.13bb982c.js";
|
|
42
42
|
import "leaflet-polylinedecorator";
|
|
43
43
|
const COMPONENT_CLASS_NAME = "M4LMap";
|
|
@@ -1708,10 +1708,21 @@ function Controls(props) {
|
|
|
1708
1708
|
L__default.DomEvent.disableScrollPropagation(cContainer);
|
|
1709
1709
|
}
|
|
1710
1710
|
}, [map]);
|
|
1711
|
-
return /* @__PURE__ */ jsxs(PopupsProvider, { baseZindex: MAP_ZINDEX_OVER_MAP,
|
|
1711
|
+
return /* @__PURE__ */ jsxs(PopupsProvider, { baseZindex: MAP_ZINDEX_OVER_MAP, containerElement: map.getContainer(), initialPopups: [
|
|
1712
|
+
{
|
|
1713
|
+
popupId: "popup1",
|
|
1714
|
+
status: "init",
|
|
1715
|
+
iconUrl: "`https://s3.amazonaws.com/static.made4labs/environments/d1/frontend/components/dynamic_filter/assets/icons/edit.svg`,",
|
|
1716
|
+
title: "Popup 1",
|
|
1717
|
+
subTitle: "Subtitulo",
|
|
1718
|
+
zIndex: 1,
|
|
1719
|
+
componentProps: {},
|
|
1720
|
+
functionComponent: () => /* @__PURE__ */ jsx("div", { children: "MyComponent" })
|
|
1721
|
+
}
|
|
1722
|
+
], children: [
|
|
1712
1723
|
/* @__PURE__ */ jsx(TopLeftTools, {}),
|
|
1713
1724
|
/* @__PURE__ */ jsx(TopRightTools, { gpsTools }),
|
|
1714
|
-
controlContainer && createPortal(/* @__PURE__ */ jsx(PopupsViewer, {
|
|
1725
|
+
controlContainer && createPortal(/* @__PURE__ */ jsx(PopupsViewer, {}), controlContainer)
|
|
1715
1726
|
] });
|
|
1716
1727
|
}
|
|
1717
1728
|
const MarkerClusterGroup = createPathComponent(({ children: _c, ...props }, ctx) => {
|
|
@@ -1768,10 +1779,8 @@ const MyLayer = (props) => {
|
|
|
1768
1779
|
if (lefaletLayerRef.current.clickCount === 1) {
|
|
1769
1780
|
lefaletLayerRef.current.clickTimeout = setTimeout(() => {
|
|
1770
1781
|
const cluster2 = a.propagatedFrom;
|
|
1771
|
-
if (cluster2 && cluster2 instanceof L__default.MarkerCluster)
|
|
1772
|
-
|
|
1773
|
-
console.log("Markers in this cluster: ", childMarkers);
|
|
1774
|
-
}
|
|
1782
|
+
if (cluster2 && cluster2 instanceof L__default.MarkerCluster)
|
|
1783
|
+
;
|
|
1775
1784
|
if (!popupRef.current) {
|
|
1776
1785
|
popupRef.current = L__default.popup().setLatLng(a.sourceTarget._cLatLng).setContent("Hello, World!");
|
|
1777
1786
|
map.addLayer(popupRef.current);
|
|
@@ -2167,10 +2176,6 @@ const CommonFeatureRender = (props) => {
|
|
|
2167
2176
|
fetchData();
|
|
2168
2177
|
}
|
|
2169
2178
|
}, [feature]);
|
|
2170
|
-
useEffect(() => {
|
|
2171
|
-
return () => {
|
|
2172
|
-
};
|
|
2173
|
-
}, []);
|
|
2174
2179
|
if (!feature) {
|
|
2175
2180
|
return null;
|
|
2176
2181
|
}
|
|
@@ -2229,9 +2234,7 @@ const CommonFeatureRender = (props) => {
|
|
|
2229
2234
|
},
|
|
2230
2235
|
draggable: false,
|
|
2231
2236
|
eventHandlers: {
|
|
2232
|
-
add: onAddPointLayer
|
|
2233
|
-
click: (_e) => {
|
|
2234
|
-
}
|
|
2237
|
+
add: onAddPointLayer
|
|
2235
2238
|
},
|
|
2236
2239
|
...styleProperties,
|
|
2237
2240
|
...propFeature
|