@vcmap/ui 5.0.0-rc.11 → 5.0.0-rc.12

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.
Files changed (76) hide show
  1. package/build/build.js +6 -0
  2. package/build/buildHelpers.js +12 -3
  3. package/build/getPluginProxies.js +4 -0
  4. package/config/base.config.json +310 -156
  5. package/config/dev.config.json +211 -6
  6. package/dist/assets/{cesium.e67536.js → cesium.4057e6.js} +0 -0
  7. package/dist/assets/cesium.js +1 -1
  8. package/dist/assets/{core.ebf665.js → core.deb2b7.js} +1 -1
  9. package/dist/assets/core.js +1 -1
  10. package/dist/assets/font/OFL.txt +93 -0
  11. package/dist/assets/font/TitilliumWeb-Regular.woff2 +0 -0
  12. package/dist/assets/{index.9b213929.js → index.7aa11f5a.js} +1 -1
  13. package/dist/assets/{ol.8bbd50.js → ol.70b137.js} +0 -0
  14. package/dist/assets/ol.js +1 -1
  15. package/dist/assets/ui.9eb282.css +1 -0
  16. package/dist/assets/{ui.fdfe0d.js → ui.9eb282.js} +42 -40
  17. package/dist/assets/ui.js +1 -1
  18. package/dist/assets/{vue.0bb7c6.js → vue.65d93f.js} +0 -0
  19. package/dist/assets/vue.js +2 -2
  20. package/dist/assets/{vuetify.53300f.css → vuetify.149dde.css} +1 -1
  21. package/dist/assets/{vuetify.53300f.js → vuetify.149dde.js} +3 -3
  22. package/dist/assets/vuetify.js +2 -2
  23. package/dist/index.html +1 -5
  24. package/index.js +2 -0
  25. package/package.json +1 -1
  26. package/plugins/@vcmap/pluginExample/index.js +1 -1
  27. package/plugins/test/index.js +1 -4
  28. package/src/application/VcsApp.vue +100 -24
  29. package/src/assets/font/OFL.txt +93 -0
  30. package/src/assets/font/TitilliumWeb-Regular.woff2 +0 -0
  31. package/src/components/lists/VcsTreeviewLeaf.vue +1 -1
  32. package/src/i18n/de.js +6 -0
  33. package/src/i18n/en.js +6 -0
  34. package/src/icons/+all.js +80 -0
  35. package/src/icons/ClippingHorizontalIcon.vue +7 -0
  36. package/src/icons/ClippingIcon.vue +7 -0
  37. package/src/icons/ClippingVerticalIcon.vue +7 -0
  38. package/src/icons/ColorPickerIcon.vue +7 -0
  39. package/src/icons/ComponentsIcon.vue +2 -2
  40. package/src/icons/DimensionsHouseIcon.vue +11 -9
  41. package/src/icons/EditIcon.vue +7 -0
  42. package/src/icons/GlobalTerrainIcon.vue +9 -0
  43. package/src/icons/GroundIcon.vue +18 -0
  44. package/src/icons/HideIcon.vue +12 -0
  45. package/src/icons/LogoutIcon.vue +7 -0
  46. package/src/icons/ObjectAttributeIcon.vue +2 -13
  47. package/src/icons/PedestrianIcon.vue +2 -3
  48. package/src/icons/PenIcon.vue +2 -9
  49. package/src/icons/PoiIcon.vue +5 -2
  50. package/src/icons/PointSelectIcon.vue +4 -2
  51. package/src/icons/QueryIcon.vue +6 -7
  52. package/src/icons/ScreenshotIcon.vue +16 -0
  53. package/src/icons/ShareIcon.vue +4 -16
  54. package/src/icons/SkipNextIcon.vue +3 -1
  55. package/src/icons/TerrainBoxIcon.vue +9 -0
  56. package/src/icons/ToolsIcon.vue +4 -30
  57. package/src/icons/UploadIcon.vue +2 -9
  58. package/src/icons/UserProfileIcon.vue +7 -0
  59. package/src/icons/UserShareIcon.vue +7 -0
  60. package/src/icons/VideoRecorderIcon.vue +5 -9
  61. package/src/icons/ViewpointFlightIcon.vue +11 -0
  62. package/src/icons/ViewpointIcon.vue +11 -0
  63. package/src/icons/Viewshed360Icon.vue +7 -0
  64. package/src/icons/ViewshedConeIcon.vue +7 -0
  65. package/src/icons/ViewshedIcon.vue +7 -0
  66. package/src/icons/WallIcon.vue +4 -9
  67. package/src/legend/legendHelper.js +193 -0
  68. package/src/legend/styleLegendItem.vue +129 -0
  69. package/src/legend/vcsLegend.vue +92 -0
  70. package/src/manager/toolbox/ToolboxGroupComponent.vue +7 -3
  71. package/src/manager/toolbox/ToolboxManager.vue +2 -1
  72. package/src/pluginHelper.js +42 -10
  73. package/src/styles/variables.scss +7 -0
  74. package/src/styles/vcsFont.scss +17 -0
  75. package/src/vcsUiApp.js +2 -1
  76. package/dist/assets/ui.fdfe0d.css +0 -1
package/build/build.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import path from 'path';
2
+ import fs from 'fs';
2
3
  import { build } from 'vite';
3
4
  import { v4 as uuid } from 'uuid';
4
5
  import rollupPluginStripPragma from 'rollup-plugin-strip-pragma';
@@ -153,6 +154,11 @@ await Promise.all(Object.entries(libraryBuildOptions).map(async ([key, value]) =
153
154
  },
154
155
  };
155
156
  await build(libraryEntryConfig);
157
+ await fs.promises.cp(
158
+ path.join('src', 'assets', 'font'),
159
+ path.join('dist', 'assets', 'font'),
160
+ { recursive: true },
161
+ );
156
162
  }));
157
163
 
158
164
  await buildCesium();
@@ -193,18 +193,27 @@ export async function buildPluginsForPreview(baseConfig = {}, minify = true) {
193
193
  await buildLibrary(pluginConfig, `plugins/${plugin}`, 'index', '', true);
194
194
  });
195
195
 
196
- promises.push(...dependentPlugins.map((pluginName) => {
196
+ promises.push(...dependentPlugins.flatMap((pluginName) => {
197
197
  let scope = '';
198
198
  let name = pluginName;
199
199
  if (pluginName.startsWith('@')) {
200
200
  [scope, name] = pluginName.split('/');
201
201
  }
202
202
 
203
- return fs.promises.cp(
203
+ const copyPromises = [fs.promises.cp(
204
204
  path.join(pluginsDirectory, 'node_modules', scope, name, 'dist'),
205
205
  path.join(process.cwd(), 'dist', 'plugins', scope, name),
206
206
  { recursive: true },
207
- );
207
+ )];
208
+
209
+ if (fs.existsSync(path.join(pluginsDirectory, 'node_modules', scope, name, 'plugin-assets'))) {
210
+ copyPromises.push(fs.promises.cp(
211
+ path.join(pluginsDirectory, 'node_modules', scope, name, 'plugin-assets'),
212
+ path.join(process.cwd(), 'dist', 'plugins', scope, name, 'plugin-assets'),
213
+ { recursive: true },
214
+ ));
215
+ }
216
+ return copyPromises;
208
217
  }));
209
218
 
210
219
  await Promise.all(promises);
@@ -20,6 +20,10 @@ export default async function getPluginProxies(target = 'http://localhost:8080',
20
20
  rewrite: (route) => {
21
21
  const rest = route.replace(new RegExp(`^/plugins/${plugin}/`), '');
22
22
  const file = rest || 'index.js';
23
+ const pluginDir = path.posix.join(path.relative(root, pluginsDir), 'node_modules', plugin);
24
+ if (/plugin-assets\//.test(file)) {
25
+ return path.posix.join(pluginDir, file);
26
+ }
23
27
  return path.posix.join(path.relative(root, pluginsDir), 'node_modules', plugin, production ? 'dist' : 'src', file);
24
28
  },
25
29
  };
@@ -99,28 +99,51 @@
99
99
  ]
100
100
  }
101
101
  },
102
- "legend": [
103
- {
104
- "color": "#edf8e9",
105
- "title": "< 5 m"
106
- },
107
- {
108
- "color": "#bae4b3",
109
- "title": "< 15 m"
110
- },
111
- {
112
- "color": "#74c476",
113
- "title": "< 30 m"
114
- },
115
- {
116
- "color": "#31a354",
117
- "title": "< 65 m"
118
- },
119
- {
120
- "color": "#006d2c",
121
- "title": "> 65 m"
122
- }
123
- ]
102
+ "properties": {
103
+ "legend": [
104
+ {
105
+ "type": "StyleLegendItem",
106
+ "colNr": 1,
107
+ "rows": [
108
+ {
109
+ "type": "FillLegendRow",
110
+ "fill": {
111
+ "color": "#edf8e9"
112
+ },
113
+ "title": "< 5 m"
114
+ },
115
+ {
116
+ "type": "FillLegendRow",
117
+ "fill": {
118
+ "color": "#bae4b3"
119
+ },
120
+ "title": "< 15 m"
121
+ },
122
+ {
123
+ "type": "FillLegendRow",
124
+ "fill": {
125
+ "color": "#74c476"
126
+ },
127
+ "title": "< 30 m"
128
+ },
129
+ {
130
+ "type": "FillLegendRow",
131
+ "fill": {
132
+ "color": "#31a354"
133
+ },
134
+ "title": "< 65 m"
135
+ },
136
+ {
137
+ "type": "FillLegendRow",
138
+ "fill": {
139
+ "color": "#006d2c"
140
+ },
141
+ "title": "> 65 m"
142
+ }
143
+ ]
144
+ }
145
+ ]
146
+ }
124
147
  },
125
148
  {
126
149
  "name": "MeasuredHeightBrown",
@@ -157,28 +180,51 @@
157
180
  ]
158
181
  }
159
182
  },
160
- "legend": [
161
- {
162
- "color": "#ffffd4",
163
- "title": "< 5 m"
164
- },
165
- {
166
- "color": "#fed98e",
167
- "title": "< 15 m"
168
- },
169
- {
170
- "color": "#fe9929",
171
- "title": "< 30 m"
172
- },
173
- {
174
- "color": "#d95f0e",
175
- "title": "< 65 m"
176
- },
177
- {
178
- "color": "#993404",
179
- "title": "> 65 m"
180
- }
181
- ]
183
+ "properties": {
184
+ "legend": [
185
+ {
186
+ "type": "StyleLegendItem",
187
+ "colNr": 1,
188
+ "rows": [
189
+ {
190
+ "type": "FillLegendRow",
191
+ "fill": {
192
+ "color": "#ffffd4"
193
+ },
194
+ "title": "< 5 m"
195
+ },
196
+ {
197
+ "type": "FillLegendRow",
198
+ "fill": {
199
+ "color": "#fed98e"
200
+ },
201
+ "title": "< 15 m"
202
+ },
203
+ {
204
+ "type": "FillLegendRow",
205
+ "fill": {
206
+ "color": "#fe9929"
207
+ },
208
+ "title": "< 30 m"
209
+ },
210
+ {
211
+ "type": "FillLegendRow",
212
+ "fill": {
213
+ "color": "#d95f0e"
214
+ },
215
+ "title": "< 65 m"
216
+ },
217
+ {
218
+ "type": "FillLegendRow",
219
+ "fill": {
220
+ "color": "#993404"
221
+ },
222
+ "title": "> 65 m"
223
+ }
224
+ ]
225
+ }
226
+ ]
227
+ }
182
228
  },
183
229
  {
184
230
  "name": "MeasuredHeightBlue",
@@ -215,28 +261,51 @@
215
261
  ]
216
262
  }
217
263
  },
218
- "legend": [
219
- {
220
- "color": "#f1eef6",
221
- "title": "< 5 m"
222
- },
223
- {
224
- "color": "#bdc9e1",
225
- "title": "< 15 m"
226
- },
227
- {
228
- "color": "#74a9cf",
229
- "title": "< 30 m"
230
- },
231
- {
232
- "color": "#2b8cbe",
233
- "title": "< 65 m"
234
- },
235
- {
236
- "color": "#045a8d",
237
- "title": "> 65 m"
238
- }
239
- ]
264
+ "properties": {
265
+ "legend": [
266
+ {
267
+ "type": "StyleLegendItem",
268
+ "colNr": 1,
269
+ "rows": [
270
+ {
271
+ "type": "FillLegendRow",
272
+ "fill": {
273
+ "color": "#f1eef6"
274
+ },
275
+ "title": "< 5 m"
276
+ },
277
+ {
278
+ "type": "FillLegendRow",
279
+ "fill": {
280
+ "color": "#bdc9e1"
281
+ },
282
+ "title": "< 15 m"
283
+ },
284
+ {
285
+ "type": "FillLegendRow",
286
+ "fill": {
287
+ "color": "#74a9cf"
288
+ },
289
+ "title": "< 30 m"
290
+ },
291
+ {
292
+ "type": "FillLegendRow",
293
+ "fill": {
294
+ "color": "#2b8cbe"
295
+ },
296
+ "title": "< 65 m"
297
+ },
298
+ {
299
+ "type": "FillLegendRow",
300
+ "fill": {
301
+ "color": "#045a8d"
302
+ },
303
+ "title": "> 65 m"
304
+ }
305
+ ]
306
+ }
307
+ ]
308
+ }
240
309
  },
241
310
  {
242
311
  "type": "DeclarativeStyleItem",
@@ -316,68 +385,120 @@
316
385
  ]
317
386
  }
318
387
  },
319
- "legend": [
320
- {
321
- "color": "#91cf60",
322
- "title": "Flachdach"
323
- },
324
- {
325
- "color": "#fee08b",
326
- "title": "Pultdach"
327
- },
328
- {
329
- "color": "#8dd3c7",
330
- "title": "Versetztes Pultdach"
331
- },
332
- {
333
- "color": "#8dd3c7",
334
- "title": "Satteldach"
335
- },
336
- {
337
- "color": "#fc8d59",
338
- "title": "Walmdach"
339
- },
340
- {
341
- "color": "#ffffb3",
342
- "title": "Krüppelwalmdach"
343
- },
344
- {
345
- "color": "#bebada",
346
- "title": "Mansardendach"
347
- },
348
- {
349
- "color": "#ffffbf",
350
- "title": "Zeltdach"
351
- },
352
- {
353
- "color": "#fdb462",
354
- "title": "Kegeldach"
355
- },
356
- {
357
- "color": "#b3de69",
358
- "title": "Kuppeldach"
359
- },
360
- {
361
- "color": "#ecc34e",
362
- "title": "Sheddach"
363
- },
364
- {
365
- "color": "#fccde5",
366
- "title": "Bogendach"
367
- },
368
- {
369
- "color": "#d590b3",
370
- "title": "Turmdach"
371
- },
372
- {
373
- "color": "#888888",
374
- "title": "Mischform"
375
- },
376
- {
377
- "color": "#cccccc",
378
- "title": "Sonstiges"
379
- }
380
- ],
388
+ "properties": {
389
+ "legend": [
390
+ {
391
+ "type": "StyleLegendItem",
392
+ "rows": [
393
+ {
394
+ "type": "FillLegendRow",
395
+ "fill": {
396
+ "color": "#91cf60"
397
+ },
398
+ "title": "Flachdach"
399
+ },
400
+ {
401
+ "type": "FillLegendRow",
402
+ "fill": {
403
+ "color": "#fee08b"
404
+ },
405
+ "title": "Pultdach"
406
+ },
407
+ {
408
+ "type": "FillLegendRow",
409
+ "fill": {
410
+ "color": "#8dd3c7"
411
+ },
412
+ "title": "Versetztes Pultdach"
413
+ },
414
+ {
415
+ "type": "FillLegendRow",
416
+ "fill": {
417
+ "color": "#8dd3c7"
418
+ },
419
+ "title": "Satteldach"
420
+ },
421
+ {
422
+ "type": "FillLegendRow",
423
+ "fill": {
424
+ "color": "#fc8d59"
425
+ },
426
+ "title": "Walmdach"
427
+ },
428
+ {
429
+ "type": "FillLegendRow",
430
+ "fill": {
431
+ "color": "#ffffb3"
432
+ },
433
+ "title": "Krüppelwalmdach"
434
+ },
435
+ {
436
+ "type": "FillLegendRow",
437
+ "fill": {
438
+ "color": "#bebada"
439
+ },
440
+ "title": "Mansardendach"
441
+ },
442
+ {
443
+ "type": "FillLegendRow",
444
+ "fill": {
445
+ "color": "#ffffbf"
446
+ },
447
+ "title": "Zeltdach"
448
+ },
449
+ {
450
+ "type": "FillLegendRow",
451
+ "fill": {
452
+ "color": "#fdb462"
453
+ },
454
+ "title": "Kegeldach"
455
+ },
456
+ {
457
+ "type": "FillLegendRow",
458
+ "fill": {
459
+ "color": "#b3de69"
460
+ },
461
+ "title": "Kuppeldach"
462
+ },
463
+ {
464
+ "type": "FillLegendRow",
465
+ "fill": {
466
+ "color": "#ecc34e"
467
+ },
468
+ "title": "Sheddach"
469
+ },
470
+ {
471
+ "type": "FillLegendRow",
472
+ "fill": {
473
+ "color": "#fccde5"
474
+ },
475
+ "title": "Bogendach"
476
+ },
477
+ {
478
+ "type": "FillLegendRow",
479
+ "fill": {
480
+ "color": "#d590b3"
481
+ },
482
+ "title": "Turmdach"
483
+ },
484
+ {
485
+ "type": "FillLegendRow",
486
+ "fill": {
487
+ "color": "#888888"
488
+ },
489
+ "title": "Mischform"
490
+ },
491
+ {
492
+ "type": "FillLegendRow",
493
+ "fill": {
494
+ "color": "#cccccc"
495
+ },
496
+ "title": "Sonstiges"
497
+ }
498
+ ]
499
+ }
500
+ ]
501
+ },
381
502
  "name": "ClassifiedbyRoofType"
382
503
  },
383
504
  {
@@ -414,28 +535,51 @@
414
535
  ]
415
536
  }
416
537
  },
417
- "legend": [
418
- {
419
- "color": "#7fc97f",
420
- "title": "1121"
421
- },
422
- {
423
- "color": "#fdb462",
424
- "title": "1004"
425
- },
426
- {
427
- "color": "#fdc086",
428
- "title": "1799"
429
- },
430
- {
431
- "color": "#ffff99",
432
- "title": "1231"
433
- },
434
- {
435
- "color": "#cccccc",
436
- "title": "other function"
437
- }
438
- ],
538
+ "properties": {
539
+ "legend": [
540
+ {
541
+ "type": "StyleLegendItem",
542
+ "rows": [
543
+ {
544
+ "type": "FillLegendRow",
545
+ "fill": {
546
+ "color": "#7fc97f"
547
+ },
548
+ "title": "1121"
549
+ },
550
+ {
551
+ "type": "FillLegendRow",
552
+ "fill": {
553
+ "color": "#fdb462"
554
+ },
555
+ "title": "1004"
556
+ },
557
+ {
558
+ "type": "FillLegendRow",
559
+ "fill": {
560
+ "color": "#fdc086"
561
+ },
562
+ "title": "1799"
563
+ },
564
+ {
565
+ "type": "FillLegendRow",
566
+ "fill": {
567
+ "color": "#ffff99"
568
+ },
569
+ "title": "1231"
570
+ },
571
+ {
572
+ "type": "FillLegendRow",
573
+ "fill": {
574
+ "color": "#cccccc"
575
+ },
576
+ "title": "other function"
577
+ }
578
+
579
+ ]
580
+ }
581
+ ]
582
+ },
439
583
  "name": "BuildingFunction"
440
584
  },
441
585
  {
@@ -453,12 +597,22 @@
453
597
  ]
454
598
  }
455
599
  },
456
- "legend": [
457
- {
458
- "color": "#cccccc",
459
- "title": "Transparent buildings"
460
- }
461
- ]
600
+ "properties": {
601
+ "legend": [
602
+ {
603
+ "type": "StyleLegendItem",
604
+ "rows": [
605
+ {
606
+ "type": "FillLegendRow",
607
+ "fill": {
608
+ "color": "#cccccc"
609
+ },
610
+ "title": "Transparent buildings"
611
+ }
612
+ ]
613
+ }
614
+ ]
615
+ }
462
616
  }
463
617
  ],
464
618
  "featureInfo": [