andoncloud-map-widget 1.1.2 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Map/LayerSettings/index.d.ts +10 -0
- package/dist/components/Map/styles.d.ts +3 -0
- package/dist/components/Map/types.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/locales/index.d.ts +6 -4
- package/dist/types.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +25 -24
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetViewData } from '@/types';
|
|
3
|
+
import { ShapeLayer } from '../types';
|
|
4
|
+
interface LayerSettingsProps {
|
|
5
|
+
data: WidgetViewData;
|
|
6
|
+
layer: ShapeLayer;
|
|
7
|
+
updateFeature: (feature: GeoJSON.Feature) => Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export declare const LayerSettings: React.FC<LayerSettingsProps>;
|
|
10
|
+
export {};
|
package/dist/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import "~leaflet/dist/leaflet.css";@import "~leaflet-draw/dist/leaflet.draw.css";@keyframes pulse{0%{stroke:#155ed1}70%{stroke:transparent}to{stroke:#155ed1}}.leaflet-container{height:100%}.leaflet-touch .leaflet-bar{border:none}.leaflet-bar a{background-color
|
|
1
|
+
@import "~leaflet/dist/leaflet.css";@import "~leaflet-draw/dist/leaflet.draw.css";@keyframes pulse{0%{stroke:#155ed1}70%{stroke:transparent}to{stroke:#155ed1}}.leaflet-container{background:#e0e0e0;height:100%}.leaflet-touch .leaflet-bar{border:none}.leaflet-bar a{background-color:hsla(0,0%,100%,.75);color:#464646;line-height:27px!important}.leaflet-bar a.leaflet-disabled{filter:opacity(.2)}.leaflet-bar a:not(.leaflet-disabled):hover{background-color:hsla(0,0%,100%,.75);filter:opacity(.8)}.leaflet-top{background:rgba(72,74,78,.95);border-bottom:1px solid #717171;display:flex;height:50px;width:50%}.leaflet-right{display:inline-flex;justify-content:flex-end}.leaflet-control-attribution.leaflet-control{display:none}.leaflet-draw{background:rgba(72,74,78,.95);height:100vh}.leaflet-draw.leaflet-control{margin:50px 0 0;padding:10px}.leaflet-draw-actions a{background-color:hsla(0,0%,100%,.85);color:#464646;line-height:27px!important}.leaflet-draw-actions a:hover{background-color:hsla(0,0%,100%,.85);filter:opacity(.8)}.leaflet-control-zoom{display:inline-flex}.leaflet-control-zoom-in,.leaflet-control-zoom-out{border-radius:2px!important}.leaflet-control-zoom-out{margin-left:2px}.leaflet-tooltip{background:transparent;border:none;box-shadow:none;color:#fff;font-weight:600;padding:.5em 1em;text-shadow:0 0 6px #000}.leaflet-path-draggable{stroke-dasharray:10;animation:pulse 2s infinite}.leaflet-popup-content-wrapper{background:rgba(14,16,19,.95);box-shadow:0 0 6px #e0e0e0;color:#e0e0e0;font-weight:600}.leaflet-popup-content-wrapper .leaflet-popup-content p{margin:.5rem 0}.leaflet-popup-tip{background:rgba(51,51,51,.95);box-shadow:0 0 6px #fff}.leaflet-contextmenu{background-color:#fff;border-radius:4px;box-shadow:0 1px 7px rgba(0,0,0,.4);cursor:default;display:none;padding:4px 0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.leaflet-contextmenu a.leaflet-contextmenu-item{border-bottom:1px solid transparent;border-top:1px solid transparent;color:#222;cursor:default;display:block;font-size:12px;line-height:20px;outline:none;padding:0 12px;text-decoration:none}.leaflet-contextmenu a.leaflet-contextmenu-item-disabled{opacity:.5}.leaflet-contextmenu a.leaflet-contextmenu-item.over{background-color:#f4f4f4;border-bottom:1px solid #f0f0f0;border-top:1px solid #f0f0f0}.leaflet-contextmenu a.leaflet-contextmenu-item-disabled.over{background-color:inherit;border-bottom:1px solid transparent;border-top:1px solid transparent}.leaflet-contextmenu-icon{border:0;float:left;height:16px;margin:2px 8px 0 0;width:16px}.leaflet-contextmenu-separator{border-bottom:1px solid #ccc;margin:5px 0}
|
|
2
2
|
/*# sourceMappingURL=index.css.map */
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.css","leaflet.contextmenu.css"],"names":[],"mappings":"AAAA,mCAAmC,CACnC,6CAA6C,CAE7C,iBACE,GACE,cACF,CAEA,IACE,kBACF,CAEA,GACE,cACF,CACF,CAEA,
|
|
1
|
+
{"version":3,"sources":["index.css","leaflet.contextmenu.css"],"names":[],"mappings":"AAAA,mCAAmC,CACnC,6CAA6C,CAE7C,iBACE,GACE,cACF,CAEA,IACE,kBACF,CAEA,GACE,cACF,CACF,CAEA,mBAEE,kBAAmB,CADnB,WAEF,CAEA,4BACE,WACF,CAEA,eAGE,oCAA2C,CAD3C,aAAc,CADd,0BAGF,CAEA,gCACE,kBACF,CAEA,4CAEE,oCAA2C,CAD3C,kBAEF,CAEA,aAKE,6BAAkC,CADlC,+BAAgC,CAHhC,YAAa,CAEb,WAAY,CADZ,SAIF,CAEA,eACE,mBAAoB,CACpB,wBACF,CAEA,6CACE,YACF,CAEA,cAEE,6BAAkC,CADlC,YAEF,CAEA,8BAEE,eAAgB,CAChB,YACF,CAEA,wBAGE,oCAA2C,CAD3C,aAAc,CADd,0BAGF,CAEA,8BAEE,oCAA2C,CAD3C,kBAEF,CAEA,sBACE,mBACF,CAMA,mDAHE,2BAMF,CAHA,0BACE,eAEF,CAEA,iBAOE,sBAAuB,CADvB,WAAY,CAFZ,eAAgB,CADhB,UAAY,CADZ,eAAgB,CADhB,gBAAkB,CAIlB,wBAGF,CAEA,wBACE,mBAAoB,CACpB,2BACF,CAEA,+BAIE,6BAAkC,CADlC,0BAA+B,CAF/B,aAAc,CACd,eAGF,CAEA,wDACE,cACF,CAEA,mBAEE,6BAAkC,CADlC,uBAEF,CC1HA,qBAMI,qBAAsB,CAFtB,iBAAkB,CAFlB,mCAAqC,CAKrC,cAAe,CANf,YAAa,CAIb,aAAc,CAGd,wBAAyB,CACzB,qBAAsB,CACtB,gBACJ,CAEA,gDAQI,mCAAoC,CADpC,gCAAiC,CALjC,UAAW,CAOX,cAAe,CARf,aAAc,CAEd,cAAe,CACf,gBAAiB,CAMjB,YAAa,CAJb,cAAe,CADf,oBAMJ,CAEA,yDACI,UACJ,CAEA,qDACI,wBAAyB,CAEzB,+BAAgC,CADhC,4BAEJ,CAEA,8DACI,wBAAyB,CAEzB,mCAAoC,CADpC,gCAEJ,CAEA,0BAKI,QAAS,CADT,UAAW,CADX,WAAY,CAFZ,kBAAmB,CACnB,UAIJ,CAEA,+BACI,4BAA6B,CAC7B,YACJ","file":"index.css","sourcesContent":["@import '~leaflet/dist/leaflet.css';\n@import '~leaflet-draw/dist/leaflet.draw.css';\n\n@keyframes pulse {\n 0% {\n stroke: #155ed1;\n }\n\n 70% {\n stroke: transparent;\n }\n\n 100% {\n stroke: #155ed1;\n }\n}\n\n.leaflet-container {\n height: 100%;\n background: #e0e0e0;\n}\n\n.leaflet-touch .leaflet-bar {\n border: none;\n}\n\n.leaflet-bar a {\n line-height: 27px !important;\n color: #464646;\n background-color: rgba(255, 255, 255, 0.75);\n}\n\n.leaflet-bar a.leaflet-disabled {\n filter: opacity(0.2);\n}\n\n.leaflet-bar a:not(.leaflet-disabled):hover {\n filter: opacity(0.8);\n background-color: rgba(255, 255, 255, 0.75);\n}\n\n.leaflet-top {\n display: flex;\n width: 50%;\n height: 50px;\n border-bottom: 1px solid #717171;\n background: rgba(72, 74, 78, 0.95);\n}\n\n.leaflet-right {\n display: inline-flex;\n justify-content: flex-end;\n}\n\n.leaflet-control-attribution.leaflet-control {\n display: none;\n}\n\n.leaflet-draw {\n height: 100vh;\n background: rgba(72, 74, 78, 0.95);\n}\n\n.leaflet-draw.leaflet-control {\n margin: 0;\n margin-top: 50px;\n padding: 10px;\n}\n\n.leaflet-draw-actions a {\n line-height: 27px !important;\n color: #464646;\n background-color: rgba(255, 255, 255, 0.85);\n}\n\n.leaflet-draw-actions a:hover {\n filter: opacity(0.8);\n background-color: rgba(255, 255, 255, 0.85);\n}\n\n.leaflet-control-zoom {\n display: inline-flex;\n}\n\n.leaflet-control-zoom-in {\n border-radius: 2px !important;\n}\n\n.leaflet-control-zoom-out {\n margin-left: 2px;\n border-radius: 2px !important;\n}\n\n.leaflet-tooltip {\n padding: 0.5em 1em;\n font-weight: 600;\n color: white;\n box-shadow: none;\n text-shadow: 0px 0px 6px rgba(0, 0, 0, 1);\n border: none;\n background: transparent;\n}\n\n.leaflet-path-draggable {\n stroke-dasharray: 10;\n animation: pulse 2s infinite;\n}\n\n.leaflet-popup-content-wrapper {\n color: #e0e0e0;\n font-weight: 600;\n box-shadow: #e0e0e0 0px 0px 6px;\n background: rgba(14, 16, 19, 0.95);\n}\n\n.leaflet-popup-content-wrapper .leaflet-popup-content p {\n margin: 0.5rem 0;\n}\n\n.leaflet-popup-tip {\n box-shadow: #ffffff 0px 0px 6px;\n background: rgba(51, 51, 51, 0.95);\n}\n",".leaflet-contextmenu {\n display: none;\n box-shadow: 0 1px 7px rgba(0,0,0,0.4);\n -webkit-border-radius: 4px;\n border-radius: 4px;\n padding: 4px 0;\n background-color: #fff;\n cursor: default;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n.leaflet-contextmenu a.leaflet-contextmenu-item {\n display: block;\n color: #222;\n font-size: 12px;\n line-height: 20px;\n text-decoration: none;\n padding: 0 12px;\n border-top: 1px solid transparent;\n border-bottom: 1px solid transparent;\n cursor: default;\n outline: none;\n}\n\n.leaflet-contextmenu a.leaflet-contextmenu-item-disabled {\n opacity: 0.5;\n}\n\n.leaflet-contextmenu a.leaflet-contextmenu-item.over {\n background-color: #f4f4f4;\n border-top: 1px solid #f0f0f0;\n border-bottom: 1px solid #f0f0f0;\n}\n\n.leaflet-contextmenu a.leaflet-contextmenu-item-disabled.over {\n background-color: inherit;\n border-top: 1px solid transparent;\n border-bottom: 1px solid transparent;\n}\n\n.leaflet-contextmenu-icon {\n margin: 2px 8px 0 0;\n width: 16px;\n height: 16px;\n float: left;\n border: 0;\n}\n\n.leaflet-contextmenu-separator {\n border-bottom: 1px solid #ccc;\n margin: 5px 0;\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
export { default as Widget } from './components/Widget';
|
|
3
3
|
export declare const getDisplayName: (lang: "en" | "pl") => "Map" | "Mapa" | "map-widget";
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const requiredFeatures: string[];
|
|
5
|
+
export declare const extraPermissions: string[];
|
|
5
6
|
export { LIBRARY_VERSION as version } from './version';
|