@m4l/styles 7.1.13 → 7.1.14-beta.4
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/config.js +8 -6
- package/index.js +36 -36
- package/package.json +3 -2
- package/theme/overrides/M4LExtendedComponents/M4LAccordion.js +113 -111
- package/theme/overrides/M4LExtendedComponents/M4LAccountPopover.js +193 -191
- package/theme/overrides/M4LExtendedComponents/M4LAppBar.js +94 -92
- package/theme/overrides/M4LExtendedComponents/M4LAppBarCommercial.js +22 -20
- package/theme/overrides/M4LExtendedComponents/M4LAreasAdmin.js +410 -408
- package/theme/overrides/M4LExtendedComponents/M4LAreasViewer.js +473 -471
- package/theme/overrides/M4LExtendedComponents/M4LAvatar.js +40 -38
- package/theme/overrides/M4LExtendedComponents/M4LBadge.js +31 -29
- package/theme/overrides/M4LExtendedComponents/M4LButton.js +214 -212
- package/theme/overrides/M4LExtendedComponents/M4LCheckBox.js +76 -74
- package/theme/overrides/M4LExtendedComponents/M4LCommonActions.js +15 -13
- package/theme/overrides/M4LExtendedComponents/M4LDataGrid.js +347 -345
- package/theme/overrides/M4LExtendedComponents/M4LErrorLabel.js +25 -23
- package/theme/overrides/M4LExtendedComponents/M4LFieldLabel.js +23 -21
- package/theme/overrides/M4LExtendedComponents/M4LFormatter.js +15 -13
- package/theme/overrides/M4LExtendedComponents/M4LGridLayout.js +10 -8
- package/theme/overrides/M4LExtendedComponents/M4LHamburgerMenuCommercial.js +11 -9
- package/theme/overrides/M4LExtendedComponents/M4LIcon.js +50 -48
- package/theme/overrides/M4LExtendedComponents/M4LIconButton.js +132 -130
- package/theme/overrides/M4LExtendedComponents/M4LImage.js +13 -11
- package/theme/overrides/M4LExtendedComponents/M4LImageButton.js +53 -51
- package/theme/overrides/M4LExtendedComponents/M4LMFLoader.js +17 -15
- package/theme/overrides/M4LExtendedComponents/M4LMap.js +262 -260
- package/theme/overrides/M4LExtendedComponents/M4LMapGpsTools.js +53 -51
- package/theme/overrides/M4LExtendedComponents/M4LMasterDetailLayout.js +30 -28
- package/theme/overrides/M4LExtendedComponents/M4LMenuActions.js +31 -29
- package/theme/overrides/M4LExtendedComponents/M4LModalDialog.js +124 -122
- package/theme/overrides/M4LExtendedComponents/M4LModuleLayout.js +15 -13
- package/theme/overrides/M4LExtendedComponents/M4LNavLink.js +19 -17
- package/theme/overrides/M4LExtendedComponents/M4LNoItemSelected.js +21 -19
- package/theme/overrides/M4LExtendedComponents/M4LPDFViewer.js +16 -14
- package/theme/overrides/M4LExtendedComponents/M4LPager.js +96 -94
- package/theme/overrides/M4LExtendedComponents/M4LPaperForm.js +51 -49
- package/theme/overrides/M4LExtendedComponents/M4LPeriod.js +151 -149
- package/theme/overrides/M4LExtendedComponents/M4LPopover.js +83 -81
- package/theme/overrides/M4LExtendedComponents/M4LPrintingSystem.js +157 -155
- package/theme/overrides/M4LExtendedComponents/M4LPropertyValue.js +107 -105
- package/theme/overrides/M4LExtendedComponents/M4LRHFormProvider.js +16 -14
- package/theme/overrides/M4LExtendedComponents/M4LScrollBar.js +33 -31
- package/theme/overrides/M4LExtendedComponents/M4LSectionCommercial.js +19 -17
- package/theme/overrides/M4LExtendedComponents/M4LSideBar.js +1393 -1391
- package/theme/overrides/M4LExtendedComponents/M4LSplitLayout.js +133 -131
- package/theme/overrides/M4LExtendedComponents/M4LStack.js +15 -13
- package/theme/overrides/M4LExtendedComponents/M4LTab.js +62 -60
- package/theme/overrides/M4LExtendedComponents/M4LTabContent.js +32 -30
- package/theme/overrides/M4LExtendedComponents/M4LTabs.js +39 -37
- package/theme/overrides/M4LExtendedComponents/M4LTooltip.js +23 -21
- package/theme/overrides/M4LExtendedComponents/M4LTopBar.js +54 -52
- package/theme/overrides/M4LExtendedComponents/M4LTypography.js +13 -11
- package/theme/overrides/M4LExtendedComponents/M4LanguagePopover.js +17 -15
- package/theme/overrides/M4LExtendedComponents/M4LinearProgressIndeterminate.js +52 -50
- package/theme/overrides/M4LExtendedComponents/M4LoadingButton.js +202 -200
- package/theme/overrides/M4LExtendedComponents/M4LoadingError.js +59 -57
- package/theme/overrides/M4LRHFComponents/M4LRHFAutocomplete.js +325 -321
- package/theme/overrides/M4LRHFComponents/M4LRHFAutocompleteAsync.js +11 -9
- package/theme/overrides/M4LRHFComponents/M4LRHFCheckbox.js +73 -71
- package/theme/overrides/M4LRHFComponents/M4LRHFColorPicker.js +111 -109
- package/theme/overrides/M4LRHFComponents/M4LRHFDateTime.js +156 -154
- package/theme/overrides/M4LRHFComponents/M4LRHFPeriod.js +10 -8
- package/theme/overrides/M4LRHFComponents/M4LRHFTextField.js +150 -148
- package/theme/overrides/M4LRHFComponents/M4LRHFTextFieldPassword.js +10 -8
- package/theme/overrides/M4LRHFComponents/M4LRHFUploadImage.js +152 -150
- package/theme/overrides/MUIComponents/Accordion.js +17 -17
- package/theme/overrides/MUIComponents/Autocomplete.js +4 -4
- package/theme/overrides/MUIComponents/Avatar.js +8 -8
- package/theme/overrides/MUIComponents/Backdrop.js +9 -8
- package/theme/overrides/MUIComponents/Badge.js +2 -2
- package/theme/overrides/MUIComponents/Breadcrumbs.js +4 -4
- package/theme/overrides/MUIComponents/Button.js +14 -14
- package/theme/overrides/MUIComponents/ButtonGroup.js +16 -16
- package/theme/overrides/MUIComponents/Card.js +7 -7
- package/theme/overrides/MUIComponents/Checkbox.js +6 -6
- package/theme/overrides/MUIComponents/CmpDisenoTest.js +8 -6
- package/theme/overrides/MUIComponents/ControlLabel.js +5 -5
- package/theme/overrides/MUIComponents/CssBaseline.js +2 -2
- package/theme/overrides/MUIComponents/DataGrid.js +27 -27
- package/theme/overrides/MUIComponents/Drawer.js +11 -11
- package/theme/overrides/MUIComponents/Fab.js +9 -9
- package/theme/overrides/MUIComponents/IconButton.js +4 -4
- package/theme/overrides/MUIComponents/Input.js +19 -19
- package/theme/overrides/MUIComponents/InputLabel.js +2 -2
- package/theme/overrides/MUIComponents/Link.js +3 -3
- package/theme/overrides/MUIComponents/List.js +4 -4
- package/theme/overrides/MUIComponents/LoadingButton.js +4 -4
- package/theme/overrides/MUIComponents/Menu.js +4 -4
- package/theme/overrides/MUIComponents/Pagination.js +11 -11
- package/theme/overrides/MUIComponents/Paper.js +22 -22
- package/theme/overrides/MUIComponents/Popover.js +2 -2
- package/theme/overrides/MUIComponents/Progress.js +4 -4
- package/theme/overrides/MUIComponents/Radio.js +3 -3
- package/theme/overrides/MUIComponents/Skeleton.js +3 -3
- package/theme/overrides/MUIComponents/Slider.js +6 -6
- package/theme/overrides/MUIComponents/Stepper.js +3 -3
- package/theme/overrides/MUIComponents/SvgIcon.js +2 -2
- package/theme/overrides/MUIComponents/Switch.js +8 -8
- package/theme/overrides/MUIComponents/Table.js +25 -25
- package/theme/overrides/MUIComponents/Timeline.js +3 -3
- package/theme/overrides/MUIComponents/ToggleButton.js +20 -20
- package/theme/overrides/MUIComponents/Tooltip.js +5 -5
- package/theme/overrides/MUIComponents/Typography.js +4 -4
- package/theme/overrides/index.js +202 -202
- package/theme/palette/baseChipsPalette.js +107 -106
- package/theme/palette/baseColors.js +2 -2
- package/theme/palette/baseOpacityColors.js +110 -110
- package/theme/palette/commonColors.js +2 -2
- package/theme/palette/defaultColors.js +67 -65
- package/theme/palette/greyPalette.js +11 -11
- package/theme/palette/presetColors.js +366 -362
- package/theme/palette/semanticColors.js +241 -239
- package/theme/shadows.js +82 -72
- package/theme/sizes/baseBorder.js +2 -2
- package/theme/sizes/baseBorderRadius.js +2 -2
- package/theme/sizes/baseSizes.js +2 -2
- package/theme/sizes/pointerQr.js +24 -23
- package/theme/sizes/presetSizes.js +24 -23
- package/theme/sizes/size.js +13 -13
- package/theme/typography/baseFontSize.js +2 -2
- package/theme/typography/baseLetterSpacing.js +2 -2
- package/theme/typography/baseLineHeight.js +2 -2
- package/theme/typography/baseWeight.js +2 -2
- package/theme/typography/typography.js +11 -11
- package/theme/typography/typographySizes.js +169 -168
- package/theme/typography.d.ts +0 -4
- package/theme/typography.js +27 -27
- package/utils/getColorPresets.js +10 -9
- package/utils/getColorState.js +4 -2
- package/utils/getFontValue.js +11 -11
- package/utils/getPaletteByPreset.js +102 -100
- package/utils/getUserThemeOptions.d.ts +1 -1
- package/utils/getUserThemeOptions.js +19 -18
- package/utils/useResponsive.js +21 -13
|
@@ -1,283 +1,285 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
* Control superior derecho
|
|
20
|
-
*/
|
|
21
|
-
"& .M4LMap-topRigthToolsRoot": {
|
|
22
|
-
backgroundColor: "blue",
|
|
23
|
-
//Por cambiar
|
|
24
|
-
display: "flex",
|
|
25
|
-
right: 0,
|
|
26
|
-
position: "absolute",
|
|
1
|
+
const M4LMap = (theme) => {
|
|
2
|
+
return {
|
|
3
|
+
M4LMap: {
|
|
4
|
+
styleOverrides: {
|
|
5
|
+
"&.M4LMap-root": {
|
|
6
|
+
width: "100%",
|
|
7
|
+
height: "100%",
|
|
8
|
+
flexGrow: "1",
|
|
9
|
+
overflow: "hidden",
|
|
10
|
+
position: "relative",
|
|
11
|
+
/*
|
|
12
|
+
* Control superior izquierdo
|
|
13
|
+
*/
|
|
14
|
+
"& .M4LMap-topLeftToolsRoot": {
|
|
15
|
+
display: "flex",
|
|
16
|
+
backgroundColor: "blue"
|
|
17
|
+
//Por cambiar
|
|
18
|
+
},
|
|
27
19
|
/**
|
|
28
|
-
*
|
|
20
|
+
* Control superior derecho
|
|
29
21
|
*/
|
|
30
|
-
"& .M4LMap-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
22
|
+
"& .M4LMap-topRigthToolsRoot": {
|
|
23
|
+
backgroundColor: "blue",
|
|
24
|
+
//Por cambiar
|
|
25
|
+
display: "flex",
|
|
26
|
+
right: 0,
|
|
27
|
+
position: "absolute",
|
|
28
|
+
/**
|
|
29
|
+
* Zoom buttons
|
|
30
|
+
*/
|
|
31
|
+
"& .M4LMap-zoomButtons": {
|
|
32
|
+
display: "flex"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
/**
|
|
36
|
+
* Marcas
|
|
37
|
+
*/
|
|
38
|
+
"& .M4LMap-markerLayerRoot": {},
|
|
39
|
+
"& .M4LMap-markerLayerIcon": {
|
|
40
|
+
transformOrigin: "center center",
|
|
41
|
+
justifyContent: "center",
|
|
42
|
+
top: 0,
|
|
43
|
+
left: 0,
|
|
44
|
+
filter: "drop-shadow(0px 0px 3px rgba(0,0,0,.4))",
|
|
45
|
+
display: "flex",
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
" > img ": {
|
|
48
|
+
height: "24px"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"& .M4LMap-featureLabel": {
|
|
52
|
+
position: "absolute",
|
|
53
|
+
display: "flex",
|
|
54
|
+
transformOrigin: "left center",
|
|
55
|
+
fontSize: "11px",
|
|
56
|
+
borderRadius: "4px",
|
|
57
|
+
maxWidth: "300px",
|
|
58
|
+
fontWeight: "bolder",
|
|
59
|
+
padding: "2px 8px",
|
|
60
|
+
opacity: ".85",
|
|
61
|
+
filter: "drop-shadow(0px 0px 3px rgba(0,0,0,.3))",
|
|
62
|
+
whiteSpace: "nowrap",
|
|
63
|
+
overflow: "hidden",
|
|
64
|
+
textOverflow: "ellipsis"
|
|
65
|
+
},
|
|
66
|
+
//Herramienta de medición Formulario
|
|
67
|
+
"& .M4LMap-meaureToolRoot": {
|
|
68
|
+
backgroundColor: "green",
|
|
69
|
+
//Por cambiar
|
|
70
|
+
height: "100%",
|
|
71
|
+
width: "100%"
|
|
72
|
+
},
|
|
73
|
+
"& .M4LMap-measureToolFormValue": {
|
|
74
|
+
justifyContent: "center"
|
|
75
|
+
},
|
|
76
|
+
"& .M4LMap-measureToolFormValueDistance": {
|
|
77
|
+
border: "1px solid white",
|
|
78
|
+
margin: "0 5px",
|
|
79
|
+
fontWeight: 800,
|
|
80
|
+
//Por cambiar
|
|
81
|
+
fontSize: "large"
|
|
82
|
+
//Por cambiar
|
|
83
|
+
},
|
|
84
|
+
//Marker measure Point Icon
|
|
85
|
+
"& .M4LMap-measureMarkerRoot": {
|
|
86
|
+
"--color": "green"
|
|
87
|
+
},
|
|
88
|
+
"& .M4LMap-measureMarkerContainer": {
|
|
89
|
+
position: "relative",
|
|
90
|
+
cursor: "pointer"
|
|
91
|
+
},
|
|
92
|
+
"& .M4LMap-measureMarkerContainerRhomb": {
|
|
93
|
+
position: "absolute",
|
|
94
|
+
filter: "drop-shadow(0px 0px 3px rgba(0,0,0,.4))",
|
|
95
|
+
width: "31px",
|
|
96
|
+
height: "31px",
|
|
97
|
+
borderRadius: "50% 50% 50% 0",
|
|
98
|
+
border: "4px solid var(--color)",
|
|
99
|
+
backgroundColor: "var(--color)",
|
|
100
|
+
transform: "rotate(-45deg)"
|
|
101
|
+
},
|
|
102
|
+
"& .M4LMap-measureMarkerContainerSlot": {
|
|
103
|
+
position: "absolute",
|
|
104
|
+
background: "#fff",
|
|
105
|
+
borderRadius: "50%",
|
|
106
|
+
overflow: "hidden",
|
|
107
|
+
top: "3px",
|
|
108
|
+
left: "3px",
|
|
109
|
+
width: "25px",
|
|
47
110
|
height: "24px"
|
|
111
|
+
},
|
|
112
|
+
"& .M4LMap-measureMarkerContainerSlotNumber": {
|
|
113
|
+
fontSize: "14px",
|
|
114
|
+
fontWeight: "600",
|
|
115
|
+
textAlign: "center",
|
|
116
|
+
marginTop: "1px",
|
|
117
|
+
color: "black"
|
|
118
|
+
},
|
|
119
|
+
//Marker Point Label
|
|
120
|
+
"& .M4LMap-measureLabelMarkerRoot": {
|
|
121
|
+
"--color": "yellow"
|
|
122
|
+
},
|
|
123
|
+
"& .M4LMap-measureLabelMarkerContainer": {
|
|
124
|
+
backgroundColor: "var(--color)",
|
|
125
|
+
border: "1px solid gray",
|
|
126
|
+
color: "#fff",
|
|
127
|
+
width: "80px",
|
|
128
|
+
marginLeft: "15px",
|
|
129
|
+
marginTop: "15px"
|
|
130
|
+
},
|
|
131
|
+
"& .M4LMap-measureLabelMarkerDistance": {
|
|
132
|
+
color: "gray"
|
|
133
|
+
},
|
|
134
|
+
"& .M4LMap-measureLabelMarkerRemove": {
|
|
135
|
+
color: "blue"
|
|
136
|
+
},
|
|
137
|
+
//Cluster Markers
|
|
138
|
+
//Animacion
|
|
139
|
+
"& .leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow": {
|
|
140
|
+
"-webkit-transition": "-webkit-transform 0.3s ease-out, opacity 0.3s ease-in",
|
|
141
|
+
"-moz-transition": "-moz-transform 0.3s ease-out, opacity 0.3s ease-in",
|
|
142
|
+
"-o-transition": "-o-transform 0.3s ease-out, opacity 0.3s ease-in",
|
|
143
|
+
transition: "transform 0.3s ease-out, opacity 0.3s ease-in"
|
|
144
|
+
},
|
|
145
|
+
//Spider
|
|
146
|
+
"& .leaflet-cluster-spider-leg": {
|
|
147
|
+
"-webkit-transition": "-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in",
|
|
148
|
+
"-moz-transition": "-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in",
|
|
149
|
+
"-o-transition": "-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in",
|
|
150
|
+
transition: "stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in"
|
|
151
|
+
},
|
|
152
|
+
//Colores de los clusters dependiendo de la cantidad de las marcas
|
|
153
|
+
"& .marker-cluster-small": {
|
|
154
|
+
backgroundColor: "rgba(181, 226, 140, 0.6)"
|
|
155
|
+
},
|
|
156
|
+
"& .marker-cluster-small div": {
|
|
157
|
+
backgroundColor: "rgba(110, 204, 57, 0.6)"
|
|
158
|
+
},
|
|
159
|
+
"& .marker-cluster-medium": {
|
|
160
|
+
backgroundColor: "rgba(241, 211, 87, 0.6)"
|
|
161
|
+
},
|
|
162
|
+
"& .marker-cluster-medium div": {
|
|
163
|
+
backgroundColor: "rgba(240, 194, 12, 0.6)"
|
|
164
|
+
},
|
|
165
|
+
"& .marker-cluster-large": {
|
|
166
|
+
backgroundColor: "rgba(253, 156, 115, 0.6)"
|
|
167
|
+
},
|
|
168
|
+
"& .marker-cluster-large div": {
|
|
169
|
+
backgroundColor: "rgba(241, 128, 23, 0.6)"
|
|
170
|
+
},
|
|
171
|
+
/* IE 6-8 fallback colors */
|
|
172
|
+
"& .leaflet-oldie .marker-cluster-small": {
|
|
173
|
+
backgroundColor: "rgb(181, 226, 140)"
|
|
174
|
+
},
|
|
175
|
+
"& .leaflet-oldie .marker-cluster-small div": {
|
|
176
|
+
backgroundColor: "rgb(110, 204, 57)"
|
|
177
|
+
},
|
|
178
|
+
"& .leaflet-oldie .marker-cluster-medium": {
|
|
179
|
+
backgroundColor: "rgb(241, 211, 87)"
|
|
180
|
+
},
|
|
181
|
+
"& .leaflet-oldie .marker-cluster-medium div": {
|
|
182
|
+
backgroundColor: "rgb(240, 194, 12)"
|
|
183
|
+
},
|
|
184
|
+
"& .leaflet-oldie .marker-cluster-large": {
|
|
185
|
+
backgroundColor: "rgb(253, 156, 115)"
|
|
186
|
+
},
|
|
187
|
+
"& .leaflet-oldie .marker-cluster-large div": {
|
|
188
|
+
backgroundColor: "rgb(241, 128, 23)"
|
|
189
|
+
},
|
|
190
|
+
//Cluster Markers
|
|
191
|
+
"& .marker-cluster": {
|
|
192
|
+
backgroundClip: "padding-box",
|
|
193
|
+
borderRadius: "20px"
|
|
194
|
+
},
|
|
195
|
+
"& .marker-cluster div": {
|
|
196
|
+
width: "30px",
|
|
197
|
+
height: "30px",
|
|
198
|
+
marginLeft: "5px",
|
|
199
|
+
marginTop: "5px",
|
|
200
|
+
textAlign: "center",
|
|
201
|
+
borderRadius: "15px",
|
|
202
|
+
font: '12px "Helvetica Neue", Arial, Helvetica, sans-serif'
|
|
203
|
+
},
|
|
204
|
+
//Cluster Markers
|
|
205
|
+
"& .marker-cluster span": {
|
|
206
|
+
lineHeight: "30px"
|
|
207
|
+
},
|
|
208
|
+
"& .xxxxx": {
|
|
209
|
+
color: theme.vars.palette.error.main,
|
|
210
|
+
"& .M4LIcon-root .M4LIcon-icon": {
|
|
211
|
+
backgroundColor: theme.vars.palette.error.main
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"& .leaflet-control-scale-line": {
|
|
215
|
+
color: "red"
|
|
216
|
+
//Ejemplo de como estilar el control de scala
|
|
48
217
|
}
|
|
49
|
-
},
|
|
50
|
-
"& .M4LMap-featureLabel": {
|
|
51
|
-
position: "absolute",
|
|
52
|
-
display: "flex",
|
|
53
|
-
transformOrigin: "left center",
|
|
54
|
-
fontSize: "11px",
|
|
55
|
-
borderRadius: "4px",
|
|
56
|
-
maxWidth: "300px",
|
|
57
|
-
fontWeight: "bolder",
|
|
58
|
-
padding: "2px 8px",
|
|
59
|
-
opacity: ".85",
|
|
60
|
-
filter: "drop-shadow(0px 0px 3px rgba(0,0,0,.3))",
|
|
61
|
-
whiteSpace: "nowrap",
|
|
62
|
-
overflow: "hidden",
|
|
63
|
-
textOverflow: "ellipsis"
|
|
64
|
-
},
|
|
65
|
-
//Herramienta de medición Formulario
|
|
66
|
-
"& .M4LMap-meaureToolRoot": {
|
|
67
|
-
backgroundColor: "green",
|
|
68
|
-
//Por cambiar
|
|
69
|
-
height: "100%",
|
|
70
|
-
width: "100%"
|
|
71
|
-
},
|
|
72
|
-
"& .M4LMap-measureToolFormValue": {
|
|
73
|
-
justifyContent: "center"
|
|
74
|
-
},
|
|
75
|
-
"& .M4LMap-measureToolFormValueDistance": {
|
|
76
|
-
border: "1px solid white",
|
|
77
|
-
margin: "0 5px",
|
|
78
|
-
fontWeight: 800,
|
|
79
|
-
//Por cambiar
|
|
80
|
-
fontSize: "large"
|
|
81
|
-
//Por cambiar
|
|
82
|
-
},
|
|
83
|
-
//Marker measure Point Icon
|
|
84
|
-
"& .M4LMap-measureMarkerRoot": {
|
|
85
|
-
"--color": "green"
|
|
86
|
-
},
|
|
87
|
-
"& .M4LMap-measureMarkerContainer": {
|
|
88
|
-
position: "relative",
|
|
89
|
-
cursor: "pointer"
|
|
90
|
-
},
|
|
91
|
-
"& .M4LMap-measureMarkerContainerRhomb": {
|
|
92
|
-
position: "absolute",
|
|
93
|
-
filter: "drop-shadow(0px 0px 3px rgba(0,0,0,.4))",
|
|
94
|
-
width: "31px",
|
|
95
|
-
height: "31px",
|
|
96
|
-
borderRadius: "50% 50% 50% 0",
|
|
97
|
-
border: "4px solid var(--color)",
|
|
98
|
-
backgroundColor: "var(--color)",
|
|
99
|
-
transform: "rotate(-45deg)"
|
|
100
|
-
},
|
|
101
|
-
"& .M4LMap-measureMarkerContainerSlot": {
|
|
102
|
-
position: "absolute",
|
|
103
|
-
background: "#fff",
|
|
104
|
-
borderRadius: "50%",
|
|
105
|
-
overflow: "hidden",
|
|
106
|
-
top: "3px",
|
|
107
|
-
left: "3px",
|
|
108
|
-
width: "25px",
|
|
109
|
-
height: "24px"
|
|
110
|
-
},
|
|
111
|
-
"& .M4LMap-measureMarkerContainerSlotNumber": {
|
|
112
|
-
fontSize: "14px",
|
|
113
|
-
fontWeight: "600",
|
|
114
|
-
textAlign: "center",
|
|
115
|
-
marginTop: "1px",
|
|
116
|
-
color: "black"
|
|
117
|
-
},
|
|
118
|
-
//Marker Point Label
|
|
119
|
-
"& .M4LMap-measureLabelMarkerRoot": {
|
|
120
|
-
"--color": "yellow"
|
|
121
|
-
},
|
|
122
|
-
"& .M4LMap-measureLabelMarkerContainer": {
|
|
123
|
-
backgroundColor: "var(--color)",
|
|
124
|
-
border: "1px solid gray",
|
|
125
|
-
color: "#fff",
|
|
126
|
-
width: "80px",
|
|
127
|
-
marginLeft: "15px",
|
|
128
|
-
marginTop: "15px"
|
|
129
|
-
},
|
|
130
|
-
"& .M4LMap-measureLabelMarkerDistance": {
|
|
131
|
-
color: "gray"
|
|
132
|
-
},
|
|
133
|
-
"& .M4LMap-measureLabelMarkerRemove": {
|
|
134
|
-
color: "blue"
|
|
135
|
-
},
|
|
136
|
-
//Cluster Markers
|
|
137
|
-
//Animacion
|
|
138
|
-
"& .leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow": {
|
|
139
|
-
"-webkit-transition": "-webkit-transform 0.3s ease-out, opacity 0.3s ease-in",
|
|
140
|
-
"-moz-transition": "-moz-transform 0.3s ease-out, opacity 0.3s ease-in",
|
|
141
|
-
"-o-transition": "-o-transform 0.3s ease-out, opacity 0.3s ease-in",
|
|
142
|
-
transition: "transform 0.3s ease-out, opacity 0.3s ease-in"
|
|
143
|
-
},
|
|
144
|
-
//Spider
|
|
145
|
-
"& .leaflet-cluster-spider-leg": {
|
|
146
|
-
"-webkit-transition": "-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in",
|
|
147
|
-
"-moz-transition": "-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in",
|
|
148
|
-
"-o-transition": "-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in",
|
|
149
|
-
transition: "stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in"
|
|
150
|
-
},
|
|
151
|
-
//Colores de los clusters dependiendo de la cantidad de las marcas
|
|
152
|
-
"& .marker-cluster-small": {
|
|
153
|
-
backgroundColor: "rgba(181, 226, 140, 0.6)"
|
|
154
|
-
},
|
|
155
|
-
"& .marker-cluster-small div": {
|
|
156
|
-
backgroundColor: "rgba(110, 204, 57, 0.6)"
|
|
157
|
-
},
|
|
158
|
-
"& .marker-cluster-medium": {
|
|
159
|
-
backgroundColor: "rgba(241, 211, 87, 0.6)"
|
|
160
|
-
},
|
|
161
|
-
"& .marker-cluster-medium div": {
|
|
162
|
-
backgroundColor: "rgba(240, 194, 12, 0.6)"
|
|
163
|
-
},
|
|
164
|
-
"& .marker-cluster-large": {
|
|
165
|
-
backgroundColor: "rgba(253, 156, 115, 0.6)"
|
|
166
|
-
},
|
|
167
|
-
"& .marker-cluster-large div": {
|
|
168
|
-
backgroundColor: "rgba(241, 128, 23, 0.6)"
|
|
169
|
-
},
|
|
170
|
-
/* IE 6-8 fallback colors */
|
|
171
|
-
"& .leaflet-oldie .marker-cluster-small": {
|
|
172
|
-
backgroundColor: "rgb(181, 226, 140)"
|
|
173
|
-
},
|
|
174
|
-
"& .leaflet-oldie .marker-cluster-small div": {
|
|
175
|
-
backgroundColor: "rgb(110, 204, 57)"
|
|
176
|
-
},
|
|
177
|
-
"& .leaflet-oldie .marker-cluster-medium": {
|
|
178
|
-
backgroundColor: "rgb(241, 211, 87)"
|
|
179
|
-
},
|
|
180
|
-
"& .leaflet-oldie .marker-cluster-medium div": {
|
|
181
|
-
backgroundColor: "rgb(240, 194, 12)"
|
|
182
|
-
},
|
|
183
|
-
"& .leaflet-oldie .marker-cluster-large": {
|
|
184
|
-
backgroundColor: "rgb(253, 156, 115)"
|
|
185
|
-
},
|
|
186
|
-
"& .leaflet-oldie .marker-cluster-large div": {
|
|
187
|
-
backgroundColor: "rgb(241, 128, 23)"
|
|
188
|
-
},
|
|
189
|
-
//Cluster Markers
|
|
190
|
-
"& .marker-cluster": {
|
|
191
|
-
backgroundClip: "padding-box",
|
|
192
|
-
borderRadius: "20px"
|
|
193
|
-
},
|
|
194
|
-
"& .marker-cluster div": {
|
|
195
|
-
width: "30px",
|
|
196
|
-
height: "30px",
|
|
197
|
-
marginLeft: "5px",
|
|
198
|
-
marginTop: "5px",
|
|
199
|
-
textAlign: "center",
|
|
200
|
-
borderRadius: "15px",
|
|
201
|
-
font: '12px "Helvetica Neue", Arial, Helvetica, sans-serif'
|
|
202
|
-
},
|
|
203
|
-
//Cluster Markers
|
|
204
|
-
"& .marker-cluster span": {
|
|
205
|
-
lineHeight: "30px"
|
|
206
|
-
},
|
|
207
|
-
"& .xxxxx": {
|
|
208
|
-
color: e.vars.palette.error.main,
|
|
209
|
-
"& .M4LIcon-root .M4LIcon-icon": {
|
|
210
|
-
backgroundColor: e.vars.palette.error.main
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
"& .leaflet-control-scale-line": {
|
|
214
|
-
color: "red"
|
|
215
|
-
//Ejemplo de como estilar el control de scala
|
|
216
218
|
}
|
|
217
219
|
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
"& .M4LMap-mapSourcesOption": {
|
|
235
|
-
display: "flex",
|
|
236
|
-
"& .M4LMap-mapSourcesOptionIconLabel": {
|
|
237
|
-
display: "flex"
|
|
238
|
-
},
|
|
239
|
-
"& .M4LMap-mapSourcesOptionRoadOptions": {
|
|
220
|
+
},
|
|
221
|
+
M4LMapMapSources: {
|
|
222
|
+
styleOverrides: {
|
|
223
|
+
"&.M4LMap-mapSourcesPopoverRoot": {
|
|
224
|
+
mt: 1.5,
|
|
225
|
+
ml: 0.75,
|
|
226
|
+
"& .MuiPaper-root": {
|
|
227
|
+
backgroundColor: "gray",
|
|
228
|
+
//Por cambiar
|
|
229
|
+
width: "400px!important",
|
|
230
|
+
height: 400
|
|
231
|
+
},
|
|
232
|
+
"& .M4LMap-mapSourcesRoot": {
|
|
233
|
+
postion: "relative",
|
|
234
|
+
height: "100%",
|
|
235
|
+
"& .M4LMap-mapSourcesOption": {
|
|
240
236
|
display: "flex",
|
|
241
|
-
"& .M4LMap-
|
|
237
|
+
"& .M4LMap-mapSourcesOptionIconLabel": {
|
|
242
238
|
display: "flex"
|
|
239
|
+
},
|
|
240
|
+
"& .M4LMap-mapSourcesOptionRoadOptions": {
|
|
241
|
+
display: "flex",
|
|
242
|
+
"& .M4LMap-mapSourcesOptionRoadOptionsCheck": {
|
|
243
|
+
display: "flex"
|
|
244
|
+
}
|
|
243
245
|
}
|
|
244
246
|
}
|
|
245
247
|
}
|
|
246
248
|
}
|
|
247
249
|
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
"& .M4LMap-mapSourcesOption": {
|
|
265
|
-
display: "flex",
|
|
266
|
-
"& .M4LMap-mapSourcesOptionIconLabel": {
|
|
267
|
-
display: "flex"
|
|
268
|
-
},
|
|
269
|
-
"& .M4LMap-mapSourcesOptionRoadOptions": {
|
|
250
|
+
},
|
|
251
|
+
M4LMapLayers: {
|
|
252
|
+
styleOverrides: {
|
|
253
|
+
"&.M4LMap-layersPopoverRoot": {
|
|
254
|
+
mt: 1.5,
|
|
255
|
+
ml: 0.75,
|
|
256
|
+
"& .MuiPaper-root": {
|
|
257
|
+
backgroundColor: "gray",
|
|
258
|
+
//Por cambiar
|
|
259
|
+
width: "400px!important",
|
|
260
|
+
height: 400
|
|
261
|
+
},
|
|
262
|
+
"& .M4LMap-mapSourcesRoot": {
|
|
263
|
+
postion: "relative",
|
|
264
|
+
height: "100%",
|
|
265
|
+
"& .M4LMap-mapSourcesOption": {
|
|
270
266
|
display: "flex",
|
|
271
|
-
"& .M4LMap-
|
|
267
|
+
"& .M4LMap-mapSourcesOptionIconLabel": {
|
|
272
268
|
display: "flex"
|
|
269
|
+
},
|
|
270
|
+
"& .M4LMap-mapSourcesOptionRoadOptions": {
|
|
271
|
+
display: "flex",
|
|
272
|
+
"& .M4LMap-mapSourcesOptionRoadOptionsCheck": {
|
|
273
|
+
display: "flex"
|
|
274
|
+
}
|
|
273
275
|
}
|
|
274
276
|
}
|
|
275
277
|
}
|
|
276
278
|
}
|
|
277
279
|
}
|
|
278
280
|
}
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
+
};
|
|
282
|
+
};
|
|
281
283
|
export {
|
|
282
|
-
|
|
284
|
+
M4LMap as M
|
|
283
285
|
};
|
|
@@ -1,62 +1,64 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
const M4LMapGpsTools = (_theme) => {
|
|
2
|
+
return {
|
|
3
|
+
M4LMapGpsTools: {
|
|
4
|
+
styleOverrides: {
|
|
5
|
+
"&.M4LMapGpsTools-gpsToolsRoot": {
|
|
6
|
+
position: "relative",
|
|
7
|
+
display: "flex",
|
|
8
|
+
flexDirection: "column",
|
|
9
|
+
flexGrow: 1,
|
|
10
|
+
width: "100%",
|
|
11
|
+
height: "100%",
|
|
12
|
+
"& .M4LMapGpsTools-gpsToolsTabContent.M4LMapGpsTools-hidden": {
|
|
13
|
+
display: "none"
|
|
14
|
+
}
|
|
13
15
|
}
|
|
14
16
|
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
},
|
|
18
|
+
M4LMapGpsToolsGeofencesList: {
|
|
19
|
+
styleOverrides: {
|
|
20
|
+
"&.M4LMapGpsTools-gpsToolsGeofencesList": {
|
|
21
|
+
padding: "12px",
|
|
22
|
+
position: "relative !important",
|
|
23
|
+
flexGrow: 1,
|
|
24
|
+
width: "100%",
|
|
25
|
+
"& .M4LDataGrid-root": {
|
|
26
|
+
height: "unset !important",
|
|
27
|
+
flexGrow: 1
|
|
28
|
+
}
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
overflow: "hidden",
|
|
37
|
-
display: "flex",
|
|
38
|
-
flexDirection: "column",
|
|
39
|
-
flexGrow: 1,
|
|
40
|
-
// height: '100%',
|
|
41
|
-
"& .M4LMapGpsTools-gpsToolsTabContent": {
|
|
42
|
-
padding: "12px",
|
|
43
|
-
overflow: "auto"
|
|
44
|
-
},
|
|
45
|
-
"& .M4LMapGpsTools-gpsToolsGeofencesAddEditDrawFinishContainer": {
|
|
31
|
+
},
|
|
32
|
+
M4LMapGpsToolsGeofencesAddEdit: {
|
|
33
|
+
styleOverrides: {
|
|
34
|
+
"&.M4LMapGpsTools-gpsToolsGeofencesAddEdit": {
|
|
35
|
+
height: "100% !important",
|
|
36
|
+
"& .M4LMapGpsTools-gpsToolsGeofencesAddEditContent": {
|
|
37
|
+
overflow: "hidden",
|
|
46
38
|
display: "flex",
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
//
|
|
50
|
-
|
|
39
|
+
flexDirection: "column",
|
|
40
|
+
flexGrow: 1,
|
|
41
|
+
// height: '100%',
|
|
42
|
+
"& .M4LMapGpsTools-gpsToolsTabContent": {
|
|
43
|
+
padding: "12px",
|
|
44
|
+
overflow: "auto"
|
|
45
|
+
},
|
|
46
|
+
"& .M4LMapGpsTools-gpsToolsGeofencesAddEditDrawFinishContainer": {
|
|
47
|
+
display: "flex",
|
|
48
|
+
minWidth: "60px",
|
|
49
|
+
marginTop: "14px"
|
|
50
|
+
// justifyContent: 'flex-end',
|
|
51
|
+
// padding: '12px',
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"& .M4LMapGpsTools-gpsToolsTabContent.M4LMapGpsTools-hidden": {
|
|
55
|
+
display: "none"
|
|
51
56
|
}
|
|
52
|
-
},
|
|
53
|
-
"& .M4LMapGpsTools-gpsToolsTabContent.M4LMapGpsTools-hidden": {
|
|
54
|
-
display: "none"
|
|
55
57
|
}
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
+
};
|
|
61
|
+
};
|
|
60
62
|
export {
|
|
61
|
-
|
|
63
|
+
M4LMapGpsTools as M
|
|
62
64
|
};
|