andoncloud-map-widget 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/assets/.gitkeep +0 -0
- package/dist/assets/map.png +0 -0
- package/dist/components/Map/index.d.ts +7 -0
- package/dist/components/SettingsFormContent/index.d.ts +5 -0
- package/dist/components/SettingsFormContent/styles.d.ts +3 -0
- package/dist/components/Widget/index.d.ts +5 -0
- package/dist/components/WidgetView/index.d.ts +4 -0
- package/dist/components/WidgetView/styles.d.ts +3 -0
- package/dist/i18n.d.ts +2 -0
- package/dist/index.css +127 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +22750 -0
- package/dist/index.js.map +1 -0
- package/dist/stories/Widget.stories.d.ts +5 -0
- package/dist/types.d.ts +23 -0
- package/dist/version.d.ts +1 -0
- package/package.json +62 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# andoncloud-map-widget
|
|
2
|
+
|
|
3
|
+
> Made with create-andoncloud-widget
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/map-widget) [](https://standardjs.com)
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install --save andoncloud-map-widget
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { Widget, permissions } from 'andoncloud-map-widget';
|
|
17
|
+
```
|
|
File without changes
|
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SettingsFormContentProps } from 'andoncloud-widget-base';
|
|
3
|
+
import { WidgetData, WidgetSettings } from '@/types';
|
|
4
|
+
declare const SettingsFormContent: React.FC<SettingsFormContentProps<WidgetData, WidgetSettings>>;
|
|
5
|
+
export default SettingsFormContent;
|
package/dist/i18n.d.ts
ADDED
package/dist/index.css
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
@import '~leaflet/dist/leaflet.css';
|
|
2
|
+
@import '~leaflet-draw/dist/leaflet.draw.css';
|
|
3
|
+
|
|
4
|
+
.leaflet-container {
|
|
5
|
+
height: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.leaflet-touch .leaflet-bar {
|
|
9
|
+
border: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.leaflet-bar a {
|
|
13
|
+
line-height: 27px !important;
|
|
14
|
+
color: #333333;
|
|
15
|
+
border: 0.5px solid rgba(0, 0, 0, 0.1);
|
|
16
|
+
background-color: #ccc;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.leaflet-bar a:hover {
|
|
20
|
+
color: #333333;
|
|
21
|
+
background-color: #ccc;
|
|
22
|
+
filter: opacity(0.9);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.leaflet-top {
|
|
26
|
+
display: flex;
|
|
27
|
+
width: 50%;
|
|
28
|
+
height: 50px;
|
|
29
|
+
background: #333333;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.leaflet-right {
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
justify-content: flex-end;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.leaflet-control-attribution.leaflet-control {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.leaflet-draw {
|
|
42
|
+
height: 100vh;
|
|
43
|
+
background: #333333;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.leaflet-draw.leaflet-control {
|
|
47
|
+
margin: 0;
|
|
48
|
+
margin-top: 50px;
|
|
49
|
+
padding: 10px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.leaflet-control-zoom {
|
|
53
|
+
display: inline-flex;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.leaflet-control-zoom-in {
|
|
57
|
+
border-radius: 2px !important;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.leaflet-control-zoom-out {
|
|
61
|
+
margin-left: 2px;
|
|
62
|
+
border-radius: 2px !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.leaflet-tooltip {
|
|
66
|
+
padding: 0.5em 1em;
|
|
67
|
+
font-weight: 600;
|
|
68
|
+
color: white;
|
|
69
|
+
border-radius: 1em;
|
|
70
|
+
background: #333333;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.leaflet-contextmenu {
|
|
74
|
+
display: none;
|
|
75
|
+
box-shadow: 0 1px 7px rgba(0,0,0,0.4);
|
|
76
|
+
border-radius: 4px;
|
|
77
|
+
padding: 4px 0;
|
|
78
|
+
background-color: #fff;
|
|
79
|
+
cursor: default;
|
|
80
|
+
-webkit-user-select: none;
|
|
81
|
+
-moz-user-select: none;
|
|
82
|
+
user-select: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.leaflet-contextmenu a.leaflet-contextmenu-item {
|
|
86
|
+
display: block;
|
|
87
|
+
color: #222;
|
|
88
|
+
font-size: 12px;
|
|
89
|
+
line-height: 20px;
|
|
90
|
+
text-decoration: none;
|
|
91
|
+
padding: 0 12px;
|
|
92
|
+
border-top: 1px solid transparent;
|
|
93
|
+
border-bottom: 1px solid transparent;
|
|
94
|
+
cursor: default;
|
|
95
|
+
outline: none;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.leaflet-contextmenu a.leaflet-contextmenu-item-disabled {
|
|
99
|
+
opacity: 0.5;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.leaflet-contextmenu a.leaflet-contextmenu-item.over {
|
|
103
|
+
background-color: #f4f4f4;
|
|
104
|
+
border-top: 1px solid #f0f0f0;
|
|
105
|
+
border-bottom: 1px solid #f0f0f0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.leaflet-contextmenu a.leaflet-contextmenu-item-disabled.over {
|
|
109
|
+
background-color: inherit;
|
|
110
|
+
border-top: 1px solid transparent;
|
|
111
|
+
border-bottom: 1px solid transparent;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.leaflet-contextmenu-icon {
|
|
115
|
+
margin: 2px 8px 0 0;
|
|
116
|
+
width: 16px;
|
|
117
|
+
height: 16px;
|
|
118
|
+
float: left;
|
|
119
|
+
border: 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.leaflet-contextmenu-separator {
|
|
123
|
+
border-bottom: 1px solid #ccc;
|
|
124
|
+
margin: 5px 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index.css","leaflet.contextmenu.css"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,6CAA6C;;AAE7C;EACE,YAAY;AACd;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,4BAA4B;EAC5B,cAAc;EACd,sCAAsC;EACtC,sBAAsB;AACxB;;AAEA;EACE,cAAc;EACd,sBAAsB;EACtB,oBAAoB;AACtB;;AAEA;EACE,aAAa;EACb,UAAU;EACV,YAAY;EACZ,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;EACpB,yBAAyB;AAC3B;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,SAAS;EACT,gBAAgB;EAChB,aAAa;AACf;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,gBAAgB;EAChB,6BAA6B;AAC/B;;AAEA;EACE,kBAAkB;EAClB,gBAAgB;EAChB,YAAY;EACZ,kBAAkB;EAClB,mBAAmB;AACrB;;ACtEA;IACI,aAAa;IACb,qCAAqC;IAErC,kBAAkB;IAClB,cAAc;IACd,sBAAsB;IACtB,eAAe;IACf,yBAAyB;IACzB,sBAAsB;IACtB,iBAAiB;AACrB;;AAEA;IACI,cAAc;IACd,WAAW;IACX,eAAe;IACf,iBAAiB;IACjB,qBAAqB;IACrB,eAAe;IACf,iCAAiC;IACjC,oCAAoC;IACpC,eAAe;IACf,aAAa;AACjB;;AAEA;IACI,YAAY;AAChB;;AAEA;IACI,yBAAyB;IACzB,6BAA6B;IAC7B,gCAAgC;AACpC;;AAEA;IACI,yBAAyB;IACzB,iCAAiC;IACjC,oCAAoC;AACxC;;AAEA;IACI,mBAAmB;IACnB,WAAW;IACX,YAAY;IACZ,WAAW;IACX,SAAS;AACb;;AAEA;IACI,6BAA6B;IAC7B,aAAa;AACjB","file":"index.css","sourcesContent":["@import '~leaflet/dist/leaflet.css';\n@import '~leaflet-draw/dist/leaflet.draw.css';\n\n.leaflet-container {\n height: 100%;\n}\n\n.leaflet-touch .leaflet-bar {\n border: none;\n}\n\n.leaflet-bar a {\n line-height: 27px !important;\n color: #333333;\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n background-color: #ccc;\n}\n\n.leaflet-bar a:hover {\n color: #333333;\n background-color: #ccc;\n filter: opacity(0.9);\n}\n\n.leaflet-top {\n display: flex;\n width: 50%;\n height: 50px;\n background: #333333;\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: #333333;\n}\n\n.leaflet-draw.leaflet-control {\n margin: 0;\n margin-top: 50px;\n padding: 10px;\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 border-radius: 1em;\n background: #333333;\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"]}
|