@record-evolution/widget-mapbox 1.4.11 → 1.4.13

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.
@@ -0,0 +1,254 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated by json-schema-to-typescript.
4
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
+ * and run json-schema-to-typescript to regenerate this file.
6
+ */
7
+
8
+ export type Title = string;
9
+ export type Subtitle = string;
10
+ /**
11
+ * The basic style of the map.
12
+ */
13
+ export type MapStyle =
14
+ | "streets-v12"
15
+ | "outdoors-v12"
16
+ | "light-v11"
17
+ | "dark-v11"
18
+ | "satellite-v9"
19
+ | "satellite-streets-v12"
20
+ | "navigation-day-v1"
21
+ | "navigation-night-v1";
22
+ export type ShowLegend = boolean;
23
+ /**
24
+ * If true, the map automatically keeps the drawn locations in focus.
25
+ */
26
+ export type AutoFollow = boolean;
27
+ /**
28
+ * The name for this data series
29
+ */
30
+ export type SeriesLabel = string;
31
+ /**
32
+ * Create the specified type of layer on the map.
33
+ */
34
+ export type LayerType = "circle" | "symbol" | "heatmap" | "line";
35
+ export type LayerBaseColor = string;
36
+ /**
37
+ * Restrict the number of rows for this dataseries to the given number of newest values. (If pivoted, then per each of the pivot dataseries.)
38
+ */
39
+ export type LatestValues = number;
40
+ export type Blur = number;
41
+ export type Opacity = number;
42
+ export type TextColor = string;
43
+ export type TextSize = number;
44
+ /**
45
+ * For available icons check the maki icon set here https://labs.mapbox.com/maki-icons/
46
+ */
47
+ export type IconName =
48
+ | "marker"
49
+ | "airfield"
50
+ | "airport"
51
+ | "alcohol-shop"
52
+ | "america-football"
53
+ | "amusement-park"
54
+ | "aquarium"
55
+ | "art-gallery"
56
+ | "bakery"
57
+ | "bank"
58
+ | "bar"
59
+ | "baseball"
60
+ | "basketball"
61
+ | "beer"
62
+ | "bicycle"
63
+ | "building"
64
+ | "bus"
65
+ | "cafe"
66
+ | "campsite"
67
+ | "car"
68
+ | "cemetery"
69
+ | "cinema"
70
+ | "circle"
71
+ | "college"
72
+ | "commerical"
73
+ | "cricket"
74
+ | "cross"
75
+ | "dam"
76
+ | "danger"
77
+ | "dog-park"
78
+ | "embassy"
79
+ | "emergency-telephone"
80
+ | "entrance"
81
+ | "farm"
82
+ | "fast-food"
83
+ | "ferry"
84
+ | "fire-station"
85
+ | "fuel"
86
+ | "garden"
87
+ | "golf"
88
+ | "grocery-store"
89
+ | "hairdresser"
90
+ | "harbor"
91
+ | "heart"
92
+ | "heliport"
93
+ | "hospital"
94
+ | "industrial"
95
+ | "information"
96
+ | "laundry"
97
+ | "library"
98
+ | "lighthouse"
99
+ | "lodging"
100
+ | "logging"
101
+ | "london-underground"
102
+ | "marker-stroked"
103
+ | "minefield"
104
+ | "mobile-phone"
105
+ | "monument"
106
+ | "mountain"
107
+ | "museum"
108
+ | "music"
109
+ | "oil-well"
110
+ | "park"
111
+ | "parking"
112
+ | "parking-garage"
113
+ | "pharmacy"
114
+ | "picnic-site"
115
+ | "pitch"
116
+ | "place-of-worship"
117
+ | "playground"
118
+ | "police"
119
+ | "polling-place"
120
+ | "post"
121
+ | "prison"
122
+ | "rail"
123
+ | "rail-above"
124
+ | "rail-light"
125
+ | "rail-metro"
126
+ | "rail-underground"
127
+ | "railway"
128
+ | "religious-christian"
129
+ | "religious-jewish"
130
+ | "religious-muslim"
131
+ | "religious-islam"
132
+ | "restaurant"
133
+ | "roadblock"
134
+ | "rocket"
135
+ | "school"
136
+ | "scooter"
137
+ | "shop"
138
+ | "skiing"
139
+ | "slaughterhouse"
140
+ | "soccer"
141
+ | "square"
142
+ | "stadium"
143
+ | "star"
144
+ | "star-stroked"
145
+ | "suitcase"
146
+ | "swimming"
147
+ | "table-tennis"
148
+ | "teahouse"
149
+ | "tennis"
150
+ | "theatre"
151
+ | "toilet"
152
+ | "town-hall"
153
+ | "trash"
154
+ | "tree-1"
155
+ | "tree-2"
156
+ | "triangle"
157
+ | "triangle-stroked"
158
+ | "veterinary"
159
+ | "volcano"
160
+ | "warehouse"
161
+ | "waste-basket"
162
+ | "water"
163
+ | "wetland"
164
+ | "zoo";
165
+ /**
166
+ * In multiples of the original icon size
167
+ */
168
+ export type IconSize = number;
169
+ /**
170
+ * The higher the intensity, the more 'hot' the heatmap becomes. The value is a multiple with default value 1. e.g. to double the intensitiy choose 2.
171
+ */
172
+ export type Intensity = number;
173
+ export type Opacity1 = number;
174
+ /**
175
+ * The radius will be combined with the data value to to determine the heat radius of a point.
176
+ */
177
+ export type RadiusBaseSize = number;
178
+ export type LineWidth = number;
179
+ export type Longitude = number;
180
+ export type Latitude = number;
181
+ export type Altitude = number;
182
+ export type AValueForTheDataPoint = number;
183
+ /**
184
+ * You can specify a column in the input data to autogenerate dataseries for each distinct entry in this column. E.g. if you have a table with columns [city, lon, lat, temperature] and specify 'city' as pivot column, then you will get a layer for each city.
185
+ */
186
+ export type PivotColumn = string;
187
+ /**
188
+ * This is the map data
189
+ */
190
+ export type MapData = {
191
+ lon: Longitude;
192
+ lat: Latitude;
193
+ alt?: Altitude;
194
+ value?: AValueForTheDataPoint;
195
+ pivot?: PivotColumn;
196
+ [k: string]: unknown;
197
+ }[];
198
+ export type Dataseries = {
199
+ label: SeriesLabel;
200
+ type: LayerType;
201
+ color?: LayerBaseColor;
202
+ latestValues?: LatestValues;
203
+ config?: LayerConfiguration;
204
+ data?: MapData;
205
+ [k: string]: unknown;
206
+ }[];
207
+
208
+ /**
209
+ * A map-chart
210
+ */
211
+ export interface MapConfiguration {
212
+ /**
213
+ * Settings
214
+ */
215
+ settings?: {
216
+ title?: Title;
217
+ subTitle?: Subtitle;
218
+ style: MapStyle;
219
+ showLegend?: ShowLegend;
220
+ follow?: AutoFollow;
221
+ [k: string]: unknown;
222
+ };
223
+ dataseries?: Dataseries;
224
+ [k: string]: unknown;
225
+ }
226
+ export interface LayerConfiguration {
227
+ circle?: CircleLayer;
228
+ symbol?: TextLayer;
229
+ heatmap?: HeatmapLayer;
230
+ line?: TrackLayer;
231
+ [k: string]: unknown;
232
+ }
233
+ export interface CircleLayer {
234
+ "circle-blur"?: Blur;
235
+ "circle-opacity"?: Opacity;
236
+ [k: string]: unknown;
237
+ }
238
+ export interface TextLayer {
239
+ "text-color"?: TextColor;
240
+ "text-size"?: TextSize;
241
+ "icon-image"?: IconName;
242
+ "icon-size"?: IconSize;
243
+ [k: string]: unknown;
244
+ }
245
+ export interface HeatmapLayer {
246
+ "heatmap-intensity"?: Intensity;
247
+ "heatmap-opacity"?: Opacity1;
248
+ "heatmap-radius"?: RadiusBaseSize;
249
+ [k: string]: unknown;
250
+ }
251
+ export interface TrackLayer {
252
+ "line-width"?: LineWidth;
253
+ [k: string]: unknown;
254
+ }
@@ -17,20 +17,29 @@
17
17
  "title": "Subtitle",
18
18
  "type": "string",
19
19
  "order": 2
20
- },
20
+ },
21
21
  "style": {
22
22
  "title": "Map Style",
23
23
  "description": "The basic style of the map.",
24
24
  "type": "string",
25
- "enum": ["streets-v12", "outdoors-v12", "light-v11", "dark-v11", "satellite-v9", "satellite-streets-v12", "navigation-day-v1", "navigation-night-v1"],
25
+ "enum": [
26
+ "streets-v12",
27
+ "outdoors-v12",
28
+ "light-v11",
29
+ "dark-v11",
30
+ "satellite-v9",
31
+ "satellite-streets-v12",
32
+ "navigation-day-v1",
33
+ "navigation-night-v1"
34
+ ],
26
35
  "required": true,
27
36
  "order": 3
28
- },
37
+ },
29
38
  "showLegend": {
30
39
  "title": "Show Legend",
31
40
  "type": "boolean",
32
41
  "order": 4
33
- },
42
+ },
34
43
  "follow": {
35
44
  "title": "Auto Follow",
36
45
  "description": "If true, the map automatically keeps the drawn locations in focus.",
@@ -64,6 +73,7 @@
64
73
  "color": {
65
74
  "title": "Layer Base Color",
66
75
  "type": "color",
76
+ "color": true,
67
77
  "order": 3
68
78
  },
69
79
  "latestValues": {
@@ -106,6 +116,7 @@
106
116
  "text-color": {
107
117
  "title": "Text Color",
108
118
  "type": "color",
119
+ "color": true,
109
120
  "order": 1
110
121
  },
111
122
  "text-size": {
@@ -118,7 +129,125 @@
118
129
  "title": "Icon Name",
119
130
  "description": "For available icons check the maki icon set here https://labs.mapbox.com/maki-icons/",
120
131
  "type": "string",
121
- "enum": ["marker", "airfield", "airport", "alcohol-shop", "america-football", "amusement-park", "aquarium", "art-gallery", "bakery", "bank", "bar", "baseball", "basketball", "beer", "bicycle", "building", "bus", "cafe", "campsite", "car", "cemetery", "cinema", "circle", "college", "commerical", "cricket", "cross", "dam", "danger", "dog-park", "embassy", "emergency-telephone", "entrance", "farm", "fast-food", "ferry", "fire-station", "fuel", "garden", "golf", "grocery-store", "hairdresser", "harbor", "heart", "heliport", "hospital", "industrial", "information", "laundry", "library", "lighthouse", "lodging", "logging", "london-underground", "marker-stroked", "minefield", "mobile-phone", "monument", "mountain", "museum", "music", "oil-well", "park", "parking", "parking-garage", "pharmacy", "picnic-site", "pitch", "place-of-worship", "playground", "police", "polling-place", "post", "prison", "rail", "rail-above", "rail-light", "rail-metro", "rail-underground", "railway", "religious-christian", "religious-jewish", "religious-muslim", "religious-islam", "restaurant", "roadblock", "rocket", "school", "scooter", "shop", "skiing", "slaughterhouse", "soccer", "square", "stadium", "star", "star-stroked", "suitcase", "swimming", "table-tennis", "teahouse", "tennis", "theatre", "toilet", "town-hall", "trash", "tree-1", "tree-2", "triangle", "triangle-stroked", "veterinary", "volcano", "warehouse", "waste-basket", "water", "wetland", "zoo"],
132
+ "enum": [
133
+ "marker",
134
+ "airfield",
135
+ "airport",
136
+ "alcohol-shop",
137
+ "america-football",
138
+ "amusement-park",
139
+ "aquarium",
140
+ "art-gallery",
141
+ "bakery",
142
+ "bank",
143
+ "bar",
144
+ "baseball",
145
+ "basketball",
146
+ "beer",
147
+ "bicycle",
148
+ "building",
149
+ "bus",
150
+ "cafe",
151
+ "campsite",
152
+ "car",
153
+ "cemetery",
154
+ "cinema",
155
+ "circle",
156
+ "college",
157
+ "commerical",
158
+ "cricket",
159
+ "cross",
160
+ "dam",
161
+ "danger",
162
+ "dog-park",
163
+ "embassy",
164
+ "emergency-telephone",
165
+ "entrance",
166
+ "farm",
167
+ "fast-food",
168
+ "ferry",
169
+ "fire-station",
170
+ "fuel",
171
+ "garden",
172
+ "golf",
173
+ "grocery-store",
174
+ "hairdresser",
175
+ "harbor",
176
+ "heart",
177
+ "heliport",
178
+ "hospital",
179
+ "industrial",
180
+ "information",
181
+ "laundry",
182
+ "library",
183
+ "lighthouse",
184
+ "lodging",
185
+ "logging",
186
+ "london-underground",
187
+ "marker-stroked",
188
+ "minefield",
189
+ "mobile-phone",
190
+ "monument",
191
+ "mountain",
192
+ "museum",
193
+ "music",
194
+ "oil-well",
195
+ "park",
196
+ "parking",
197
+ "parking-garage",
198
+ "pharmacy",
199
+ "picnic-site",
200
+ "pitch",
201
+ "place-of-worship",
202
+ "playground",
203
+ "police",
204
+ "polling-place",
205
+ "post",
206
+ "prison",
207
+ "rail",
208
+ "rail-above",
209
+ "rail-light",
210
+ "rail-metro",
211
+ "rail-underground",
212
+ "railway",
213
+ "religious-christian",
214
+ "religious-jewish",
215
+ "religious-muslim",
216
+ "religious-islam",
217
+ "restaurant",
218
+ "roadblock",
219
+ "rocket",
220
+ "school",
221
+ "scooter",
222
+ "shop",
223
+ "skiing",
224
+ "slaughterhouse",
225
+ "soccer",
226
+ "square",
227
+ "stadium",
228
+ "star",
229
+ "star-stroked",
230
+ "suitcase",
231
+ "swimming",
232
+ "table-tennis",
233
+ "teahouse",
234
+ "tennis",
235
+ "theatre",
236
+ "toilet",
237
+ "town-hall",
238
+ "trash",
239
+ "tree-1",
240
+ "tree-2",
241
+ "triangle",
242
+ "triangle-stroked",
243
+ "veterinary",
244
+ "volcano",
245
+ "warehouse",
246
+ "waste-basket",
247
+ "water",
248
+ "wetland",
249
+ "zoo"
250
+ ],
122
251
  "order": 3
123
252
  },
124
253
  "icon-size": {