@m4l/components 3.0.0 → 3.0.1
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 +266 -266
- package/@types/types.d.ts +47 -47
- package/components/AccountPopover/{index.af5aae0e.js → index-BJWLsxYq.js} +7 -5
- package/components/AppBar/{index.b8f22046.js → index-BdA-qQyV.js} +7 -5
- package/components/BaseModule/{index.f7a04fe7.js → index-Bl0GPyrz.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index.e67885bc.js → index-BlaMdPmp.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.92988013.js → index-C5ZI4ZPP.js} +5 -5
- package/components/CommonActions/components/ActionFormIntro/{index.f8867ae9.js → index-BbVMcr05.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.e58eb0c4.js → index-DGooFqVu.js} +3 -3
- package/components/CommonActions/components/Actions/{index.f674be30.js → index-B_vOmNZT.js} +5 -3
- package/components/DataGrid/assets/icons/datagrid.svg +4 -4
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.89a59c52.js → index-0wqcK8ML.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.d619d1db.js → index-Ozdfjlt2.js} +1 -1
- package/components/DataGrid/formatters/ColumnDateFormatter/{index.e00d0cf2.js → index-CKg8CJ6A.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.557bc8a5.js → index-D-98uXfl.js} +1 -1
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/{index.880e743b.js → index-BslXGK-A.js} +1 -1
- package/components/DataGrid/formatters/ColumnPointsFormatter/{index.ab152484.js → index-BXGW2CsK.js} +1 -1
- package/components/DataGrid/formatters/ColumnPriceFormatter/{index.bf9d9e60.js → index-O11tBykn.js} +1 -1
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/{index.4045b2f2.js → index-BaCawLr1.js} +1 -1
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/{index.a87302d1.js → index-Cq7a-jnE.js} +1 -1
- package/components/DataGrid/formatters/{index.06c18753.js → index-B5SJg0Qq.js} +2 -2
- package/components/DataGrid/{index.b37d6cab.js → index-7vJWvQtu.js} +33 -26
- package/components/DataGrid/subcomponents/Actions/{index.c3b1c1e2.js → index-C-p5O-cU.js} +22 -26
- package/components/DataGrid/subcomponents/editors/TextEditor/{index.3f0d9e28.js → index-BIFm8akr.js} +4 -0
- package/components/DragResizeWindow/DragResizeWindow.d.ts +1 -1
- package/components/DragResizeWindow/{index.a4bcaab8.js → index-D2jLYExo.js} +25 -6
- package/components/DynamicFilter/{dictionary.94a74eb3.js → dictionary-DbRGLe8j.js} +2 -2
- package/components/DynamicFilter/{index.b07b567a.js → index-D2CmPq_i.js} +7 -8
- package/components/DynamicFilter/slots/{dynamicFilterSlots.dd5824d5.js → dynamicFilterSlots-BSCWv_Rw.js} +8 -8
- package/components/DynamicFilter/store/{index.49d1b77f.js → index-BcaPHLdk.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.9e8fcc8c.js → index-BZAxYAp1.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index.3e52c5d7.js → index-DIFUGgys.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.68d855e9.js → index-D5BGKd5r.js} +8 -8
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.11f588b4.js → index-DFHDm1e4.js} +4 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.77555163.js → index-Hn2Rzovd.js} +10 -9
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.1c8454db.js → index-B5F1Ji7m.js} +5 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.cb31333a.js → index-BQlxIk_N.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.0ae3d439.js → index-DF7EGeSx.js} +5 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/{index.5a0c7b12.js → index-B6WQUIl7.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index.50c175e7.js → index-D5edNMdo.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index.82d4ac5a.js → index-bbdBrHj0.js} +33 -13
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index.fa62a6c3.js → index-CD3aGB5S.js} +7 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.e5e439f1.js → index-MiYNpAu0.js} +2 -2
- package/components/FieldLabel/{index.9a979def.js → index-BpW2AGJx.js} +6 -4
- package/components/GridLayout/{index.dd291886.js → index-HK_hTGnZ.js} +51 -72
- package/components/GridLayout/subcomponents/Griditem/{index.10278655.js → index-izY8S7ns.js} +11 -13
- package/components/GridLayout/subcomponents/Responsive/{index.24857a52.js → index-bpKDnaCd.js} +7 -7
- package/components/GridLayout/subcomponents/SizeProvider/{index.2f762118.js → index-OWN-RzRq.js} +15 -9
- package/components/HelperText/{index.6818980e.js → index-COWCXeJp.js} +10 -3
- package/components/Icon/{index.c06685f4.js → index-CedboS6y.js} +9 -4
- package/components/Image/{index.ae542f70.js → index-B7FhR9uF.js} +40 -31
- package/components/LanguagePopover/index-4kPWKmxk.js +179 -0
- package/components/LinearProgressIndeterminate/{index.ca78fd37.js → index-Do7CKcow.js} +5 -3
- package/components/Loadable/{index.e83cdb4e.js → index-BMbi9ISF.js} +1 -1
- package/components/LoadingError/{index.765ff885.js → index-CNh7b1ew.js} +8 -6
- package/components/MFIsolationApp/{index.677d9e93.js → index-DJ-MUHoQ.js} +5 -5
- package/components/MFLoader/{index.6af7729c.js → index-Bcg9TXnJ.js} +36 -15
- package/components/ModalDialog/{index.a57ee020.js → index-BuGRs967.js} +6 -6
- package/components/NavLink/{index.dd723dfd.js → index-B6Gmzyl0.js} +5 -3
- package/components/NoItemSelected/{index.b3e365b1.js → index-CMet73v_.js} +3 -1
- package/components/ObjectLogs/{index.54fdee14.js → index-_8l1PbEQ.js} +19 -12
- package/components/PDFViewer/{index.7932d07b.js → index-CV9x1XKR.js} +4 -2
- package/components/Page/{index.5f2963f3.js → index-DKQLs5le.js} +11 -8
- package/components/PaperForm/{index.cdb1f846.js → index-DciWfnML.js} +4 -2
- package/components/Period/{index.b0b2a03b.js → index-DxijnNw6.js} +20 -31
- package/components/PrintingSystem/{index.800a7957.js → index-sSZkZbrr.js} +16 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.60ad80bd.js → index-CxYjxWxL.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.d4aa116e.js → index-D85qi4Qz.js} +3 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.142bbf1a.js → index-BA-IYLWh.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.d16d2c5e.js → index-Bn9eNtAi.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.044363bf.js → index-gNEGVptD.js} +6 -2
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.5581a84d.js → index-CiVr-jBF.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.2994c128.js → index-BGbvh0Xk.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.166d7264.js → index-DvhbyOo3.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.642ab1b7.js → index-Cw8ZUwsm.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.d8a2a0af.js → index-l9SFQ11V.js} +1 -1
- package/components/PropertyValue/{index.d81eae0a.js → index-hcXIE6qk.js} +7 -5
- package/components/Resizeable/{index.df2f3bb8.js → index-ObbOlXFx.js} +1 -1
- package/components/ScrollBar/{index.11feff65.js → index-BpTjE7o3.js} +3 -1
- package/components/SideBar/{index.990e8667.js → index-Cg1bZn8y.js} +100 -74
- package/components/SplitLayout/{index.b247de95.js → index-CYnKlhi5.js} +5 -3
- package/components/ToastContainer/{index.c1657bde.js → index-B5VGIn45.js} +3 -3
- package/components/animate/LoadingScreen/{index.36a63311.js → index-CzDq3A0i.js} +1 -1
- package/components/animate/MotionContainer/{index.3032bd8f.js → index-eartnWyO.js} +1 -1
- package/components/animate/MotionLazyContainer/{index.d2902a6c.js → index-Be8osTiG.js} +1 -1
- package/components/animate/PropagateLoader/{index.a9da8d00.js → index-Bkq8V2SN.js} +1 -1
- package/components/animate/{index.ceb7669a.js → index-mH4o-crX.js} +1 -1
- package/components/animate/variants/{bounce.784aaaaa.js → bounce-DanQqHAX.js} +3 -1
- package/components/animate/variants/{fade.b561c0fc.js → fade-CAOJNn06.js} +3 -1
- package/components/areas/components/AreasAdmin/{index.b232384d.js → index-qqSduaty.js} +21 -19
- package/components/areas/components/AreasViewer/{index.d45bfcd2.js → index-D5If8gFK.js} +36 -25
- package/components/areas/contexts/AreasContext/{index.9edd84c3.js → index-Dyj8tCdG.js} +174 -15
- package/components/areas/hooks/useAreas/{index.5a57ab76.js → index-o0DvT3xZ.js} +2 -3
- package/components/areas/hooks/useDynamicMFParameters/{index.9e09e1e3.js → index-DhbcZPs9.js} +1 -1
- package/components/areas/hooks/useWindowToolsMF/{index.2fbae9dc.js → index-BECQfhbC.js} +2 -3
- package/components/commercial/AppBarCommercial/{index.b4f6147e.js → index-DvigwCQP.js} +4 -2
- package/components/commercial/SectionCommercial/{index.a250338c.js → index-CLHGooDg.js} +4 -2
- package/components/commercial/TopBar/{index.4fdd66e5.js → index-DJNYXgHq.js} +13 -11
- package/components/commercial/{index.be1af158.js → index-BLUHQfcA.js} +4 -4
- package/components/formatters/BooleanFormatter/{index.91435984.js → index-DpF0x_xp.js} +3 -3
- package/components/formatters/DateFormatter/{index.2ef6f261.js → index-CGcRZ8BA.js} +1 -1
- package/components/formatters/PointsFormatter/{index.51cd6774.js → index-C7sR8iqk.js} +1 -1
- package/components/formatters/PriceFormatter/{index.97f75b4b.js → index-CsvRawmc.js} +1 -1
- package/components/formatters/UncertaintyFormatter/{index.c3ffdebc.js → index-B9ESVEVp.js} +4 -4
- package/components/formatters/{index.64017cc1.js → index-CDt8LzvL.js} +13 -19
- package/components/hook-form/HelperError/{index.360f8fb7.js → index-D-_czK9n.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index.089af1b8.js → index-BhbgwNUz.js} +20 -20
- package/components/hook-form/RHFAutocompleteAsync/{index.f05b6fe3.js → index-BnUgdSnR.js} +5 -3
- package/components/hook-form/RHFCheckbox/{index.4cefbad2.js → index-ubHFuH1F.js} +53 -46
- package/components/hook-form/RHFColorPicker/{index.ed380b30.js → index-DBpi0Zhe.js} +8 -6
- package/components/hook-form/RHFDateTime/{index.118ebe6d.js → index-BtfOlX4T.js} +7 -5
- package/components/hook-form/RHFPeriod/{index.404ba4c6.js → index-BicAIry0.js} +6 -4
- package/components/hook-form/RHFRadioGroup/{index.591f779d.js → index-Di37rp0B.js} +1 -1
- package/components/hook-form/RHFTextField/index-Cz7BMTLe.js +337 -0
- package/components/hook-form/RHFUpload/{index.7b7ee732.js → index-D52JNxDh.js} +10 -8
- package/components/maps/components/GpsTools/{index.c1198f79.js → index-BP1dIwh6.js} +102 -32
- package/components/maps/components/Map/external/googleMutant/index.d.ts +159 -159
- package/components/maps/components/Map/{index.8c947175.js → index-CS6xr1Fl.js} +263 -73
- package/components/maps/leaflet-geoman.d.ts +1476 -1476
- package/components/modal/{WindowBase.00b9e5f1.js → WindowBase-CLBER1xc.js} +4 -4
- package/components/modal/{WindowConfirm.abf49573.js → WindowConfirm-DraflAKP.js} +8 -7
- package/components/modal/{index.81eb6def.js → index-CydPIpKZ.js} +2 -0
- package/components/mui_extended/Accordion/{index.26524ecd.js → index-ZFpEUCnw.js} +8 -6
- package/components/mui_extended/Avatar/{index.e7bcc850.js → index-Bk4Hq2nk.js} +5 -2
- package/components/mui_extended/Badge/{index.48948839.js → index-D6F1o3k2.js} +4 -2
- package/components/mui_extended/Breadcrumbs/{index.4a44883c.js → index-DTS7rOZH.js} +1 -2
- package/components/mui_extended/Button/{index.3d14e3e9.js → index-DlzpoczE.js} +33 -13
- package/components/mui_extended/{CheckBox.5dc01b37.js → CheckBox-ByxYagHV.js} +4 -2
- package/components/mui_extended/IconButton/{index.7b6c1ee3.js → index-BfDbi0cC.js} +42 -22
- package/components/mui_extended/MenuActions/{index.11d777bb.js → index-CUz70BPj.js} +28 -24
- package/components/mui_extended/Pager/{index.b28a2103.js → index-CRgYDkV8.js} +8 -5
- package/components/mui_extended/Popover/{index.a7da93f1.js → index-C6_2t4L1.js} +39 -27
- package/components/mui_extended/Stack/{index.99de8138.js → index-CV2W-_eL.js} +3 -1
- package/components/mui_extended/Tab/{index.5c6a6801.js → index-PyZxxeDt.js} +9 -3
- package/components/mui_extended/ToggleButton/{index.86098567.js → index-X6htsgfF.js} +2 -2
- package/components/mui_extended/ToggleIconButton/{index.cbfe1cad.js → index-mT-xXWg9.js} +3 -2
- package/components/mui_extended/Tooltip/{index.49bb5ee1.js → index-B8QUytCK.js} +2 -0
- package/components/mui_extended/Typography/{index.8c0801e4.js → index-DKPqV11f.js} +4 -2
- package/components/popups/PopupsProvider/{index.9a23e1d0.js → index-DhSxmtfJ.js} +1 -2
- package/components/popups/PopupsViewer/{index.52653047.js → index-D8iTb2JJ.js} +10 -7
- package/components/popups/PopupsViewer/slots/{popupsViewerSlots.69dd2614.js → popupsViewerSlots-DEQAZ8fq.js} +4 -4
- package/contexts/ModalContext/{index.799110fe.js → index-CMPcjPCy.js} +1 -1
- package/contexts/RHFormContext/{index.f9d41b99.js → index-B4a0h0fX.js} +3 -1
- package/hooks/useFormAddEdit/{index.8947ee59.js → index-DvRNtaub.js} +2 -2
- package/hooks/useModal/{index.eb857f6e.js → index-C9r1LQIz.js} +2 -3
- package/hooks/useSizeContainer/{index.3c48670c.js → index-D4hDjM1P.js} +2 -0
- package/hooks/useTab/{index.9ad15247.js → index-DTbLh_DH.js} +1 -1
- package/index.js +125 -237
- package/package.json +1 -1
- package/{react-data-grid.c5377916.js → react-data-grid-BfYuZ6AK.js} +59 -110
- package/{react-draggable.079122b0.js → react-draggable-DsCPdgQP.js} +238 -57
- package/{react-json-view.57125fcf.js → react-json-view-bhqIAaNg.js} +277 -467
- package/{react-resizable.330f1499.js → react-resizable-eBbFl2dX.js} +75 -37
- package/{react-spinners.342a6578.js → react-spinners-TpKN9lZg.js} +6 -8
- package/{react-splitter-layout.8b1655c8.js → react-splitter-layout-C-JTsNGs.js} +14 -23
- package/style.css +1 -65
- package/styles/{DynamicFilter.0713a406.js → DynamicFilter-CJFsIegc.js} +1 -1
- package/styles/{index.db9e7ddb.js → index-Cc9p_h7i.js} +51 -14
- package/utils/{index.f77cc2ab.js → index-DiMrtgIu.js} +26 -51
- package/vite-env.d.ts +4 -4
- package/components/LanguagePopover/index.2a7e40fc.js +0 -168
- package/components/hook-form/RHFTextField/index.80b98b98.js +0 -296
- /package/{commonjs.565e6834.js → commonjs-BfYxJMv3.js} +0 -0
- /package/components/DataGrid/{constants.e334cd50.js → constants-8L7QgBKi.js} +0 -0
- /package/components/DynamicFilter/{constants.095f1dbb.js → constants-ByqmFATV.js} +0 -0
- /package/components/DynamicFilter/slots/{SlotsEnum.104a03d4.js → SlotsEnum-cawFeNzx.js} +0 -0
- /package/components/DynamicFilter/slots/{index.36b12be1.js → index-l0sNRNKZ.js} +0 -0
- /package/components/ScrollToTop/{index.e06f98f6.js → index-TxORk5dB.js} +0 -0
- /package/components/WrapperComponent/{index.57964195.js → index-BHV-CsDU.js} +0 -0
- /package/components/animate/{features.0fbf41e1.js → features-BbnE33u3.js} +0 -0
- /package/components/animate/variants/{container.11f82b76.js → container-Dmpr6tg5.js} +0 -0
- /package/components/animate/variants/{index.7a912140.js → index-l0sNRNKZ.js} +0 -0
- /package/components/animate/variants/{transition.bd46b9ce.js → transition-B9W5SWTa.js} +0 -0
- /package/components/areas/components/{index.558684b3.js → index-l0sNRNKZ.js} +0 -0
- /package/components/areas/{constants.66529246.js → constants-rqODZNZe.js} +0 -0
- /package/components/areas/contexts/DynamicMFParmsContext/{index.3d9ad0ad.js → index-22c6E7vK.js} +0 -0
- /package/components/areas/contexts/WindowToolsMFContext/{index.992ae7a3.js → index-DkE30fhm.js} +0 -0
- /package/components/areas/contexts/{index.24025b97.js → index-l0sNRNKZ.js} +0 -0
- /package/components/areas/{dictionary.08cfc4c9.js → dictionary-YUsP9beq.js} +0 -0
- /package/components/areas/hooks/{index.d9dc1e21.js → index-l0sNRNKZ.js} +0 -0
- /package/components/areas/{icons.01fa3bcc.js → icons-CwFr-alN.js} +0 -0
- /package/components/areas/{index.4cc6a221.js → index-B_Odny9h.js} +0 -0
- /package/components/hook-form/RHFMultiCheckbox/{index.437e6ba3.js → index-BARudV1A.js} +0 -0
- /package/components/hook-form/RHFSelect/{index.c6c60ecc.js → index-LdwRuFz-.js} +0 -0
- /package/components/maps/{index.13bb982c.js → index-Ci-7-FHg.js} +0 -0
- /package/components/mui_extended/BoxIcon/{index.d61e7ac5.js → index-BUTJ2tKw.js} +0 -0
- /package/components/mui_extended/CircularProgress/{index.967e70b7.js → index-Bnnti_G6.js} +0 -0
- /package/components/mui_extended/LinearProgress/{index.4092bb69.js → index-CGgW8jq2.js} +0 -0
- /package/components/mui_extended/LinkWithRoute/{index.288c51f3.js → index-BC2miUjR.js} +0 -0
- /package/components/mui_extended/{index.b606cd9d.js → index-l0sNRNKZ.js} +0 -0
- /package/components/popups/PopupsViewer/{constants.29247547.js → constants-DuyD7aCn.js} +0 -0
- /package/components/popups/PopupsViewer/{icons.066abd43.js → icons-BUujqqbu.js} +0 -0
- /package/components/popups/PopupsViewer/slots/{index.37ef2263.js → index-B98CiRLa.js} +0 -0
- /package/components/popups/{index.c5eae682.js → index-l0sNRNKZ.js} +0 -0
- /package/hocs/withToggle/{index.548aeace.js → index-C1_DMZD3.js} +0 -0
- /package/hooks/useFormReadyForUpdate/{index.f60f500e.js → index-B3HygFCM.js} +0 -0
- /package/hooks/useStateRef/{index.538edb89.js → index-C3P6ZK3m.js} +0 -0
- /package/test/{constants_no_mock.86c553a9.js → constants_no_mock-CF-669v-.js} +0 -0
- /package/test/{getNameDataTestId.0faeade8.js → getNameDataTestId-BaBTWhBr.js} +0 -0
|
@@ -5,42 +5,42 @@ import { shallow } from "zustand/shallow";
|
|
|
5
5
|
import "@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.css";
|
|
6
6
|
import "@geoman-io/leaflet-geoman-free";
|
|
7
7
|
import clsx from "clsx";
|
|
8
|
-
import { au as RHFormProviderStyled, av as StackGeofenceListRoot, aw as DivTabGpsToolsRoot } from "../../../../styles/index.
|
|
9
|
-
import { D as DynamicFilter } from "../../../DynamicFilter/index.
|
|
10
|
-
import { C as ColumnIconFormatter } from "../../../DataGrid/formatters/index.
|
|
11
|
-
import { C as ColumnDateFormatter } from "../../../DataGrid/formatters/ColumnDateFormatter/index.
|
|
8
|
+
import { au as RHFormProviderStyled, av as StackGeofenceListRoot, aw as DivTabGpsToolsRoot } from "../../../../styles/index-Cc9p_h7i.js";
|
|
9
|
+
import { D as DynamicFilter } from "../../../DynamicFilter/index-D2CmPq_i.js";
|
|
10
|
+
import { C as ColumnIconFormatter } from "../../../DataGrid/formatters/index-B5SJg0Qq.js";
|
|
11
|
+
import { C as ColumnDateFormatter } from "../../../DataGrid/formatters/ColumnDateFormatter/index-CKg8CJ6A.js";
|
|
12
12
|
import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
13
13
|
import { useFormContext, useWatch, useFormState } from "react-hook-form";
|
|
14
|
-
import { H as HelperError } from "../../../hook-form/HelperError/index.
|
|
15
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
16
|
-
import { u as usePopupsStore } from "../../../popups/PopupsProvider/index.
|
|
14
|
+
import { H as HelperError } from "../../../hook-form/HelperError/index-D-_czK9n.js";
|
|
15
|
+
import { u as useModal } from "../../../../hooks/useModal/index-C9r1LQIz.js";
|
|
16
|
+
import { u as usePopupsStore } from "../../../popups/PopupsProvider/index-DhSxmtfJ.js";
|
|
17
17
|
import { createStore, useStore } from "zustand";
|
|
18
18
|
import { devtools } from "zustand/middleware";
|
|
19
19
|
import { immer } from "zustand/middleware/immer";
|
|
20
20
|
import { enableMapSet } from "immer";
|
|
21
|
-
import { A as ActionFormIntro } from "../../../CommonActions/components/ActionFormIntro/index.
|
|
22
|
-
import { W as WindowConfirm } from "../../../modal/WindowConfirm.
|
|
23
|
-
import { A as Actions } from "../../../CommonActions/components/Actions/index.
|
|
24
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
21
|
+
import { A as ActionFormIntro } from "../../../CommonActions/components/ActionFormIntro/index-BbVMcr05.js";
|
|
22
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm-DraflAKP.js";
|
|
23
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index-B_vOmNZT.js";
|
|
24
|
+
import { B as Button } from "../../../mui_extended/Button/index-DlzpoczE.js";
|
|
25
25
|
import { useMap } from "react-leaflet";
|
|
26
26
|
import * as L from "leaflet";
|
|
27
|
-
import { u as useFormReadyForUpdate } from "../../../../hooks/useFormReadyForUpdate/index.
|
|
28
|
-
import { u as useTab } from "../../../../hooks/useTab/index.
|
|
27
|
+
import { u as useFormReadyForUpdate } from "../../../../hooks/useFormReadyForUpdate/index-B3HygFCM.js";
|
|
28
|
+
import { u as useTab } from "../../../../hooks/useTab/index-DTbLh_DH.js";
|
|
29
29
|
import { generateUtilityClasses } from "@mui/material";
|
|
30
30
|
import "@mui/base";
|
|
31
|
-
import { P as PaperForm } from "../../../PaperForm/index.
|
|
32
|
-
import { R as RHFAutocomplete } from "../../../hook-form/RHFAutocomplete/index.
|
|
33
|
-
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.
|
|
34
|
-
import { S as Stack } from "../../../mui_extended/Stack/index.
|
|
35
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
36
|
-
import { P as PropertyValue } from "../../../PropertyValue/index.
|
|
37
|
-
import { R as RHFColorPicker } from "../../../hook-form/RHFColorPicker/index.
|
|
38
|
-
import { T as Tabs, a as Tab, b as TabContent, c as TabProvider } from "../../../mui_extended/Tab/index.
|
|
39
|
-
import { I as Icon } from "../../../Icon/index.
|
|
31
|
+
import { P as PaperForm } from "../../../PaperForm/index-DciWfnML.js";
|
|
32
|
+
import { R as RHFAutocomplete } from "../../../hook-form/RHFAutocomplete/index-BhbgwNUz.js";
|
|
33
|
+
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index-Cz7BMTLe.js";
|
|
34
|
+
import { S as Stack } from "../../../mui_extended/Stack/index-CV2W-_eL.js";
|
|
35
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index-BfDbi0cC.js";
|
|
36
|
+
import { P as PropertyValue } from "../../../PropertyValue/index-hcXIE6qk.js";
|
|
37
|
+
import { R as RHFColorPicker } from "../../../hook-form/RHFColorPicker/index-DBpi0Zhe.js";
|
|
38
|
+
import { T as Tabs, a as Tab, b as TabContent, c as TabProvider } from "../../../mui_extended/Tab/index-PyZxxeDt.js";
|
|
39
|
+
import { I as Icon } from "../../../Icon/index-CedboS6y.js";
|
|
40
40
|
import * as Yup from "yup";
|
|
41
|
-
import { u as useFormAddEdit } from "../../../../hooks/useFormAddEdit/index.
|
|
42
|
-
import { u as useMapStore, C as CommonFeatureRender, G as GPS_TOOLS_POPUP_ID } from "../Map/index.
|
|
43
|
-
import { D as DataGrid } from "../../../DataGrid/index.
|
|
41
|
+
import { u as useFormAddEdit } from "../../../../hooks/useFormAddEdit/index-DvRNtaub.js";
|
|
42
|
+
import { u as useMapStore, C as CommonFeatureRender, G as GPS_TOOLS_POPUP_ID } from "../Map/index-CS6xr1Fl.js";
|
|
43
|
+
import { D as DataGrid } from "../../../DataGrid/index-7vJWvQtu.js";
|
|
44
44
|
const COMPONENT_CLASS_NAME = "M4LMapGpsTools";
|
|
45
45
|
const COMPONENT_MAP_TOOLS_ID = "gps_tools";
|
|
46
46
|
const STYLE_OPACITIES = [
|
|
@@ -106,6 +106,7 @@ const STYLE_PATTERNS = [
|
|
|
106
106
|
}
|
|
107
107
|
];
|
|
108
108
|
const gpsToolsClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
109
|
+
/* elements */
|
|
109
110
|
"gpsToolsRoot",
|
|
110
111
|
"gpsToolsTab",
|
|
111
112
|
"gpsToolsTabContent",
|
|
@@ -115,17 +116,25 @@ const gpsToolsClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
|
115
116
|
"gpsToolsGeofencesAddEditDrawFinishContainer",
|
|
116
117
|
"toolGeofencesAddEditGeneral",
|
|
117
118
|
"toolGeofencesAddEditStyle",
|
|
119
|
+
/* states or variants of elements */
|
|
118
120
|
"visible",
|
|
119
121
|
"hidden"
|
|
120
122
|
]);
|
|
121
123
|
const MAP_GPSTOOLS_DICCTIONARY = {
|
|
124
|
+
/**
|
|
125
|
+
* GPSTools
|
|
126
|
+
*/
|
|
122
127
|
LABEL_GPSTOOLS_NAME: "label_gpstools_name",
|
|
128
|
+
/** Common */
|
|
129
|
+
/** GeofenceList */
|
|
123
130
|
ACTION_GEOFENCE_ADD: "action_geofence_add",
|
|
124
131
|
ACTION_GEOFENCE_EDIT: "action_geofence_edit",
|
|
132
|
+
// Row Actions
|
|
125
133
|
ROW_ACTION_GEO_EDIT: "row_action_geo_edit",
|
|
126
134
|
ROW_ACTION_GEO_ENABLE: "row_action_geo_enable",
|
|
127
135
|
ROW_ACTION_GEO_DISABLE: "row_action_geo_disable",
|
|
128
136
|
ROW_ACTION_GEO_DELETE: "row_action_geo_delete",
|
|
137
|
+
/** GeofenceAddEdit */
|
|
129
138
|
LABEL_TAB_GEO: "label_tab_geo",
|
|
130
139
|
TAB_GENERAL_CONFIG_TOOLTIP: "tab_general_config_tooltip",
|
|
131
140
|
PAPER_GENERAL: "paper_general",
|
|
@@ -177,6 +186,9 @@ const MAP_GPSTOOLS_DICCTIONARY = {
|
|
|
177
186
|
ACTION_CANCEL: "action_cancel"
|
|
178
187
|
};
|
|
179
188
|
const MAP_GPSTOOLS_ICONS = {
|
|
189
|
+
/**
|
|
190
|
+
* GpsTools
|
|
191
|
+
*/
|
|
180
192
|
MAP_GPS_TOOLS_TOOL: "cmp_map_gpstools_tool.svg",
|
|
181
193
|
GEOFENCES: "cmp_map_gpstools_geofences.svg",
|
|
182
194
|
GEOFENCE_ID: "cmp_map_gpstools_geofence_id.svg",
|
|
@@ -276,6 +288,34 @@ function useColumns(_props) {
|
|
|
276
288
|
type: "string",
|
|
277
289
|
width: 220
|
|
278
290
|
},
|
|
291
|
+
// {
|
|
292
|
+
// key: 'checkedCrossingFeatures',
|
|
293
|
+
// name: getLabel(DICCTIONARY.LABEL_VIEW_TRANSIT_FEATURES),
|
|
294
|
+
// width: 32,
|
|
295
|
+
// type: 'boolean',
|
|
296
|
+
// // frozen: true,
|
|
297
|
+
// // isDraggable: false,
|
|
298
|
+
// formatter: ColumnSetCheckFormatter({
|
|
299
|
+
// field: 'CrossingFeatures',
|
|
300
|
+
// rowKeyGetter,
|
|
301
|
+
// useHook,
|
|
302
|
+
// }),
|
|
303
|
+
// cellClass: 'rdg-cell-align-center',
|
|
304
|
+
// },
|
|
305
|
+
// {
|
|
306
|
+
// key: 'checkedInternalFeatures',
|
|
307
|
+
// name: getLabel(DICCTIONARY.LABEL_VIEW_INTERNAL_FEATURES),
|
|
308
|
+
// width: 32,
|
|
309
|
+
// type: 'boolean',
|
|
310
|
+
// // isDraggable: false,
|
|
311
|
+
// // frozen: true,
|
|
312
|
+
// formatter: ColumnSetCheckFormatter({
|
|
313
|
+
// field: 'InternalFeatures',
|
|
314
|
+
// rowKeyGetter,
|
|
315
|
+
// useHook,
|
|
316
|
+
// }),
|
|
317
|
+
// cellClass: 'rdg-cell-align-center',
|
|
318
|
+
// },
|
|
279
319
|
{
|
|
280
320
|
key: "created_at",
|
|
281
321
|
name: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_CREATED_AT),
|
|
@@ -353,18 +393,22 @@ const STROKE_DASH_ARRAY_DEFAULT = { value: "", label: "-----" };
|
|
|
353
393
|
const FILL_COLOR_DEFAULT = "#aa3000";
|
|
354
394
|
const FILL_OPACITY_DEFAULT = { value: 0.2, label: "20%" };
|
|
355
395
|
const initialValues = {
|
|
396
|
+
/** General Data */
|
|
356
397
|
name: "",
|
|
357
398
|
geofenceType: null,
|
|
399
|
+
/** Config Data */
|
|
358
400
|
alias: null,
|
|
359
401
|
customerId: null,
|
|
360
402
|
timeMinInSeconds: 5,
|
|
361
403
|
timeMinOutSeconds: 5,
|
|
404
|
+
/** de Apoyo */
|
|
362
405
|
inEdition: false,
|
|
363
406
|
geometry: null,
|
|
364
407
|
lat: null,
|
|
365
408
|
lng: null,
|
|
366
409
|
properties: {
|
|
367
410
|
radius: null,
|
|
411
|
+
/** Style Data */
|
|
368
412
|
strokeColor: STROKE_COLOR_DEFAULT,
|
|
369
413
|
strokeOpacity: STROKE_OPACITY_DEFAULT,
|
|
370
414
|
strokeWeight: STROKE_WHEIGTH_DEFAULT,
|
|
@@ -385,10 +429,14 @@ const formatDataEnpoint = (response) => {
|
|
|
385
429
|
properties: {
|
|
386
430
|
strokeColor: data.properties.strokeColor || STROKE_COLOR_DEFAULT,
|
|
387
431
|
strokeOpacity: STROKE_OPACITY_DEFAULT,
|
|
432
|
+
//getFormStrokeOpacityFromData(data.properties.strokeOpacity),
|
|
388
433
|
strokeWeight: STROKE_WHEIGTH_DEFAULT,
|
|
434
|
+
//,getFormStrokeWeightFromData(data.properties.strokeWeight) ,
|
|
389
435
|
strokeDashArray: STROKE_DASH_ARRAY_DEFAULT,
|
|
436
|
+
// getFormstrokeDashArrayFromData(data.properties.strokeDashArray) ,
|
|
390
437
|
fillColor: data.properties.fillColor || FILL_COLOR_DEFAULT,
|
|
391
438
|
fillOpacity: FILL_OPACITY_DEFAULT
|
|
439
|
+
//data.properties.fillOpacity || FILL_OPACITY_DEFAULT,
|
|
392
440
|
}
|
|
393
441
|
};
|
|
394
442
|
if (obRet.geofenceType?.id === "gt_circle") {
|
|
@@ -625,8 +673,7 @@ function useDrawing() {
|
|
|
625
673
|
}
|
|
626
674
|
}, []);
|
|
627
675
|
useEffect(() => {
|
|
628
|
-
if (!readyToUpdate)
|
|
629
|
-
return;
|
|
676
|
+
if (!readyToUpdate) return;
|
|
630
677
|
if (geofenceTypeId) {
|
|
631
678
|
if (geofenceTypeId !== geometrTypeIdCached) {
|
|
632
679
|
setgeofenceTypeIdCached(geofenceTypeId);
|
|
@@ -757,7 +804,8 @@ function GeneralData() {
|
|
|
757
804
|
}
|
|
758
805
|
)
|
|
759
806
|
] }),
|
|
760
|
-
geometrTypeIdCached && geometrTypeIdCached === "gt_circle" &&
|
|
807
|
+
geometrTypeIdCached && geometrTypeIdCached === "gt_circle" && // <HelperText variant='info' message={'undefined'} />
|
|
808
|
+
/* @__PURE__ */ jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
761
809
|
/* @__PURE__ */ jsx(
|
|
762
810
|
RHFTextField,
|
|
763
811
|
{
|
|
@@ -1193,9 +1241,12 @@ function useRowActionsGetter(props) {
|
|
|
1193
1241
|
editionInfo: `${getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_ID)}:${objectId} - ${name} `,
|
|
1194
1242
|
componentProps: { fullRefresh, geofenceId: objectId },
|
|
1195
1243
|
functionComponent: GeofenceAddEdit,
|
|
1244
|
+
// onMouseDown,
|
|
1196
1245
|
defaultPosition: {
|
|
1197
1246
|
vertical: { top: 50, bottom: 50 },
|
|
1198
1247
|
horizontal: { right: 50, width: 380 }
|
|
1248
|
+
// left:490,top:50,width:360, height:420},
|
|
1249
|
+
// bounds:{top:5, left:5, right:-5, bottom:-5}
|
|
1199
1250
|
},
|
|
1200
1251
|
iconUrl: urlIconEdit
|
|
1201
1252
|
});
|
|
@@ -1238,6 +1289,8 @@ function useRowActionsGetter(props) {
|
|
|
1238
1289
|
onClick: () => {
|
|
1239
1290
|
goEdit(row.id, row.name);
|
|
1240
1291
|
},
|
|
1292
|
+
// Solo se habilita si intenta editarse a él mismo, o si tiene permisos pero está en un nivel superior al usuario a editar
|
|
1293
|
+
// disabled: !(itsMe || (hasPrivilege(PRIVILEGE_EDIT) && (loggedUserType > row.user_type.id)))
|
|
1241
1294
|
disabled: !row.authUserOptions.edit
|
|
1242
1295
|
});
|
|
1243
1296
|
conditionalItems.push({
|
|
@@ -1247,6 +1300,8 @@ function useRowActionsGetter(props) {
|
|
|
1247
1300
|
onDelete(row);
|
|
1248
1301
|
},
|
|
1249
1302
|
variant: "delete",
|
|
1303
|
+
// Solo se habilita si intenta editarse a él mismo, o si tiene permisos pero está en un nivel superior al usuario a editar
|
|
1304
|
+
// disabled: !(itsMe || (hasPrivilege(PRIVILEGE_EDIT) && (loggedUserType > row.user_type.id)))
|
|
1250
1305
|
disabled: !row.authUserOptions.edit
|
|
1251
1306
|
});
|
|
1252
1307
|
return conditionalItems;
|
|
@@ -1419,9 +1474,12 @@ function useMaster() {
|
|
|
1419
1474
|
popupId: "geofencesAddEdit",
|
|
1420
1475
|
title: getLabel(MAP_GPSTOOLS_DICCTIONARY.ACTION_GEOFENCE_ADD),
|
|
1421
1476
|
functionComponent: () => /* @__PURE__ */ jsx(GeofenceAddEdit, {}),
|
|
1477
|
+
// onMouseDown,
|
|
1422
1478
|
defaultPosition: {
|
|
1423
1479
|
vertical: { top: 50, bottom: 50 },
|
|
1424
1480
|
horizontal: { right: 50, width: 380 }
|
|
1481
|
+
// left:490,top:50,width:360, height:420},
|
|
1482
|
+
// bounds:{top:5, left:5, right:-5, bottom:-5}
|
|
1425
1483
|
},
|
|
1426
1484
|
iconUrl: `${host_static_assets}/${environment_assets}/frontend/components/map_gpstools/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCE_ADD}`
|
|
1427
1485
|
});
|
|
@@ -1618,6 +1676,7 @@ const createGpsToolsStore = (initProps) => {
|
|
|
1618
1676
|
const startProps = {
|
|
1619
1677
|
currentTabGpsTool: "geofences",
|
|
1620
1678
|
geofenceState: {
|
|
1679
|
+
// currentGeofenceTool: 'list',
|
|
1621
1680
|
rows: [],
|
|
1622
1681
|
checkedGeofences: /* @__PURE__ */ new Set(),
|
|
1623
1682
|
checkedCrossingFeatures: /* @__PURE__ */ new Set(),
|
|
@@ -1658,6 +1717,18 @@ const createGpsToolsStore = (initProps) => {
|
|
|
1658
1717
|
}
|
|
1659
1718
|
},
|
|
1660
1719
|
geofenceActions: {
|
|
1720
|
+
// goToAddEdit: (geofenceId?: GeofenceId) => {
|
|
1721
|
+
// set(state => {
|
|
1722
|
+
// state.geofenceState.currentGeofenceTool = 'add_edit';
|
|
1723
|
+
// state.geofenceState.geofenceId = geofenceId;
|
|
1724
|
+
// });
|
|
1725
|
+
// },
|
|
1726
|
+
// goToList: (geofenceId?: GeofenceId) => {
|
|
1727
|
+
// set(state => {
|
|
1728
|
+
// state.geofenceState.currentGeofenceTool = 'list';
|
|
1729
|
+
// state.geofenceState.geofenceId = geofenceId;
|
|
1730
|
+
// });
|
|
1731
|
+
// },
|
|
1661
1732
|
addGeofence: (geofenceId, geofence) => {
|
|
1662
1733
|
set((state) => {
|
|
1663
1734
|
state.geofenceState.hashGeofences[geofenceId] = geofence;
|
|
@@ -1748,8 +1819,7 @@ function GpsToolsProvider(props) {
|
|
|
1748
1819
|
}
|
|
1749
1820
|
function useGpsToolsStore(selector, equalityFn) {
|
|
1750
1821
|
const context = useContext(GpsToolsContext);
|
|
1751
|
-
if (!context)
|
|
1752
|
-
throw new Error("useGpsToolsStore context must be use inside GpsToolsContext");
|
|
1822
|
+
if (!context) throw new Error("useGpsToolsStore context must be use inside GpsToolsContext");
|
|
1753
1823
|
return useStore(context, selector, equalityFn);
|
|
1754
1824
|
}
|
|
1755
1825
|
function useLayers() {
|
|
@@ -1770,7 +1840,7 @@ function useLayers() {
|
|
|
1770
1840
|
});
|
|
1771
1841
|
addLayer({
|
|
1772
1842
|
layerId: GeofencesFeaturesLayers.LAYER_GEOFENCES_TRANSIT_FEATURES,
|
|
1773
|
-
name: "
|
|
1843
|
+
name: "Geometrías de tránsito",
|
|
1774
1844
|
renderFeature: CommonFeatureRender,
|
|
1775
1845
|
geoJsonObject: {
|
|
1776
1846
|
object: {
|
|
@@ -1782,7 +1852,7 @@ function useLayers() {
|
|
|
1782
1852
|
});
|
|
1783
1853
|
addLayer({
|
|
1784
1854
|
layerId: GeofencesFeaturesLayers.LAYER_GEOFENCES_INTERNAL_FEATURES,
|
|
1785
|
-
name: "
|
|
1855
|
+
name: "Geometrías internas",
|
|
1786
1856
|
renderFeature: CommonFeatureRender,
|
|
1787
1857
|
geoJsonObject: {
|
|
1788
1858
|
object: {
|
|
@@ -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
|
+
}
|