@vcmap/ui 6.0.0-rc.3 → 6.0.0-rc.6
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/build/buildHelpers.js +60 -11
- package/build/buildTypes.js +9 -5
- package/build/bundle.js +1 -1
- package/build/info/publish.js +25 -31
- package/build/lintTypes.js +5 -0
- package/config/base.config.json +2 -7
- package/config/dev.config.json +11 -1
- package/config/projects.config.json +2 -1
- package/config/theming.config.json +68 -0
- package/config/www.config.json +27 -23
- package/dist/assets/@mdi/font/css/{materialdesignicons.min-7a4f6be0.css → materialdesignicons.min-680621ca.css} +1 -1
- package/dist/assets/{cesium-cb4dbfba.js → cesium-ccb4cc30.js} +272 -385
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core-72f21835.js → core-e06aa7a6.js} +2313 -2321
- package/dist/assets/core.js +1 -1
- package/dist/assets/{ol-2d33bc8b.js → ol-e7981d5c.js} +233 -329
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui-5dda32d2.css +1 -0
- package/dist/assets/{ui-2ab43a16.js → ui-5dda32d2.js} +11344 -11078
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue-87bc6efe.js +6083 -0
- package/dist/assets/vue.js +1 -1
- package/dist/assets/{vuetify-760ced3b.css → vuetify-4c4e4217.css} +2 -2
- package/dist/assets/{vuetify-760ced3b.js → vuetify-4c4e4217.js} +8063 -8262
- package/dist/assets/vuetify.js +1 -1
- package/index.d.ts +27 -17
- package/index.js +16 -8
- package/package.json +17 -17
- package/plugins/@vcmap-show-case/custom-icons-example/README.md +3 -0
- package/plugins/@vcmap-show-case/custom-icons-example/assets/imageExample.png +0 -0
- package/plugins/@vcmap-show-case/custom-icons-example/assets/svgExample.svg +1 -0
- package/plugins/@vcmap-show-case/custom-icons-example/package.json +5 -0
- package/plugins/@vcmap-show-case/custom-icons-example/src/CustomIconsExample.vue +90 -0
- package/plugins/@vcmap-show-case/custom-icons-example/src/index.js +45 -0
- package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +2 -3
- package/plugins/@vcmap-show-case/plugin-editors/src/PluginEditors.vue +11 -7
- package/plugins/@vcmap-show-case/project-selector/src/ModulesListComponent.vue +18 -11
- package/plugins/@vcmap-show-case/search-example/src/index.js +1 -0
- package/plugins/@vcmap-show-case/search-example/src/searchImpl.js +35 -5
- package/plugins/@vcmap-show-case/theming-example/README.md +3 -0
- package/plugins/@vcmap-show-case/theming-example/package.json +5 -0
- package/plugins/@vcmap-show-case/theming-example/src/ThemingExample.vue +116 -0
- package/plugins/@vcmap-show-case/theming-example/src/index.js +53 -0
- package/plugins/@vcmap-show-case/toolbox-example/src/index.js +2 -1
- package/plugins/package.json +7 -23
- package/public/assets/@mdi/font/css/materialdesignicons.min.css +1 -1
- package/src/actions/StyleSelector.vue +1 -1
- package/src/actions/actionHelper.d.ts +4 -11
- package/src/actions/actionHelper.js +15 -7
- package/src/actions/listActions.d.ts +5 -5
- package/src/actions/listActions.js +2 -2
- package/src/application/VcsApp.vue +113 -50
- package/src/application/VcsApp.vue.d.ts +301 -4
- package/src/application/VcsAttributionsFooter.vue.d.ts +1 -1
- package/src/application/VcsContainer.vue +27 -10
- package/src/application/VcsContainer.vue.d.ts +241 -0
- package/src/application/VcsMainMap.vue +7 -7
- package/src/application/VcsMainMap.vue.d.ts +2 -2
- package/src/application/VcsNavbar.vue +14 -2
- package/src/application/VcsNavbar.vue.d.ts +1 -0
- package/src/application/VcsSplashScreen.vue +33 -26
- package/src/application/VcsTextPageFooter.vue +2 -1
- package/src/application/attributionsHelper.d.ts +20 -22
- package/src/application/attributionsHelper.js +4 -4
- package/src/callback/vcsCallback.d.ts +2 -2
- package/src/callback/vcsCallback.js +1 -1
- package/src/components/buttons/VcsActionButtonList.vue +61 -6
- package/src/components/buttons/VcsActionButtonList.vue.d.ts +28 -0
- package/src/components/buttons/VcsButton.vue +2 -4
- package/src/components/buttons/VcsButton.vue.d.ts +1 -1
- package/src/components/buttons/VcsFormButton.vue +4 -4
- package/src/components/buttons/VcsToolButton.vue +4 -2
- package/src/components/buttons/VcsToolButton.vue.d.ts +2 -2
- package/src/components/composables.d.ts +5 -0
- package/src/components/composables.js +79 -9
- package/src/components/extent/VcsExtent.vue +10 -6
- package/src/components/extent/VcsExtent.vue.d.ts +1 -0
- package/src/components/flight/VcsFlightComponent.vue +13 -13
- package/src/components/flight/VcsFlightComponent.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsCheckbox.vue +8 -3
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue +13 -16
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue.d.ts +2 -4
- package/src/components/form-inputs-controls/VcsCoordinate.vue +4 -4
- package/src/components/form-inputs-controls/VcsFileInput.vue +1 -1
- package/src/components/form-inputs-controls/VcsLabel.vue +1 -1
- package/src/components/form-inputs-controls/VcsRadio.vue +8 -6
- package/src/components/form-inputs-controls/VcsRadio.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsSelect.vue +2 -5
- package/src/components/form-inputs-controls/VcsSlider.vue +5 -6
- package/src/components/form-inputs-controls/VcsSlider.vue.d.ts +2 -4
- package/src/components/form-inputs-controls/VcsTextArea.vue +2 -5
- package/src/components/form-inputs-controls/VcsTextField.vue +24 -1
- package/src/components/form-inputs-controls/VcsTextField.vue.d.ts +11 -1
- package/src/components/form-inputs-controls/VcsWizard.vue +3 -3
- package/src/components/form-inputs-controls/VcsWizardStep.vue +6 -5
- package/src/components/form-inputs-controls/vcsTextField.scss +8 -5
- package/src/components/form-output/VcsFormattedNumber.vue +7 -5
- package/src/components/form-output/VcsMarkdown.vue +15 -12
- package/src/components/form-output/VcsMarkdown.vue.d.ts +1 -0
- package/src/components/form-output/markdownHelper.d.ts +30 -0
- package/src/components/form-output/markdownHelper.js +398 -0
- package/src/components/import/VcsFileDrop.vue +8 -5
- package/src/components/import/VcsImportComponent.vue +8 -4
- package/src/components/import/VcsImportComponent.vue.d.ts +1 -2
- package/src/components/lists/VcsActionList.vue +6 -6
- package/src/components/lists/VcsList.vue +22 -37
- package/src/components/lists/VcsList.vue.d.ts +14 -55
- package/src/components/lists/{VcsListItem.vue → VcsListItemComponent.vue} +37 -11
- package/src/components/lists/VcsListItemComponent.vue.d.ts +79 -0
- package/src/components/lists/VcsTreeview.vue +95 -26
- package/src/components/lists/VcsTreeview.vue.d.ts +16 -3
- package/src/components/lists/VcsTreeviewSearchbar.vue +16 -5
- package/src/components/lists/VcsTreeviewSearchbar.vue.d.ts +3 -1
- package/src/components/lists/VcsTreeviewTitle.vue +36 -0
- package/src/components/modelHelper.d.ts +10 -8
- package/src/components/modelHelper.js +8 -6
- package/src/components/notification/VcsHelp.vue +6 -7
- package/src/components/notification/VcsHelp.vue.d.ts +0 -8
- package/src/components/plugins/AbstractConfigEditor.vue +1 -22
- package/src/components/plugins/AbstractConfigEditor.vue.d.ts +6 -29
- package/src/components/section/VcsExpansionPanel.vue +9 -3
- package/src/components/section/VcsExpansionPanel.vue.d.ts +2 -2
- package/src/components/section/VcsFormSection.vue +13 -7
- package/src/components/section/VcsFormSection.vue.d.ts +2 -3
- package/src/components/style/VcsImageSelector.vue +14 -6
- package/src/components/style/VcsImageSelector.vue.d.ts +1 -0
- package/src/components/style/VcsStrokeSelector.vue +5 -2
- package/src/components/style/VcsStrokeSelector.vue.d.ts +1 -0
- package/src/components/style/VcsTextMenu.vue +3 -3
- package/src/components/style/VcsVectorStyleComponent.vue +1 -1
- package/src/components/tables/VcsDataTable.vue +42 -32
- package/src/components/tables/VcsDataTable.vue.d.ts +1 -0
- package/src/components/tables/VcsTable.vue +45 -62
- package/src/components/tables/VcsTable.vue.d.ts +30 -17
- package/src/components/tables/VcsTableCell.vue +72 -0
- package/src/components/tables/VcsTableCell.vue.d.ts +13 -0
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue +6 -5
- package/src/components/vector-properties/VcsFeatureTransforms.vue +5 -0
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +42 -31
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue.d.ts +1 -0
- package/src/components/viewpoint/VcsViewpointComponent.vue +14 -11
- package/src/components/viewpoint/VcsViewpointComponent.vue.d.ts +1 -0
- package/src/components/viewpoint/VcsViewpointEditor.vue +2 -2
- package/src/contentTree/LayerTree.vue +9 -27
- package/src/contentTree/LayerTree.vue.d.ts +1 -1
- package/src/contentTree/contentTreeCollection.d.ts +1 -0
- package/src/contentTree/contentTreeCollection.js +45 -11
- package/src/contentTree/contentTreeItem.d.ts +2 -2
- package/src/contentTree/contentTreeItem.js +1 -1
- package/src/featureInfo/BalloonComponent.vue +32 -25
- package/src/featureInfo/BalloonComponent.vue.d.ts +1 -0
- package/src/featureInfo/MarkdownBalloonComponent.vue +4 -2
- package/src/featureInfo/MarkdownBalloonComponent.vue.d.ts +2 -2
- package/src/featureInfo/abstractFeatureInfoView.d.ts +10 -4
- package/src/featureInfo/abstractFeatureInfoView.js +19 -11
- package/src/featureInfo/featureInfo.d.ts +7 -7
- package/src/featureInfo/featureInfo.js +51 -31
- package/src/featureInfo/iframeFeatureInfoView.d.ts +8 -2
- package/src/featureInfo/iframeFeatureInfoView.js +15 -5
- package/src/featureInfo/markdownBalloonFeatureInfoView.d.ts +1 -1
- package/src/featureInfo/markdownBalloonFeatureInfoView.js +5 -5
- package/src/featureInfo/markdownFeatureInfoView.d.ts +1 -1
- package/src/featureInfo/markdownFeatureInfoView.js +9 -11
- package/src/featureInfo/tableFeatureInfoView.js +13 -4
- package/src/i18n/i18nCollection.d.ts +9 -15
- package/src/i18n/i18nCollection.js +3 -3
- package/src/legend/VcsLegend.vue +6 -2
- package/src/legend/VcsLegend.vue.d.ts +1 -0
- package/src/manager/collectionManager/CollectionComponentList.vue +2 -2
- package/src/manager/collectionManager/CollectionComponentList.vue.d.ts +2 -2
- package/src/manager/collectionManager/categoryManager.d.ts +1 -1
- package/src/manager/collectionManager/collectionComponentClass.d.ts +3 -3
- package/src/manager/collectionManager/collectionComponentClass.js +6 -6
- package/src/manager/collectionManager/collectionManager.d.ts +1 -1
- package/src/manager/collectionManager/editorCollectionComponentClass.js +2 -1
- package/src/manager/panel/PanelComponent.vue +2 -9
- package/src/manager/panel/PanelManagerComponent.vue +7 -3
- package/src/manager/panel/panelHelper.js +3 -3
- package/src/manager/panel/panelManager.d.ts +9 -1
- package/src/manager/panel/panelManager.js +15 -3
- package/src/manager/toolbox/GroupToolboxComponent.vue +11 -5
- package/src/manager/toolbox/GroupToolboxComponent.vue.d.ts +1 -0
- package/src/manager/toolbox/SelectToolboxComponent.vue +11 -6
- package/src/manager/toolbox/SelectToolboxComponent.vue.d.ts +1 -0
- package/src/manager/toolbox/{ToolboxManager.vue → ToolboxManagerComponent.vue} +13 -7
- package/src/manager/toolbox/{ToolboxManager.vue.d.ts → ToolboxManagerComponent.vue.d.ts} +1 -0
- package/src/manager/window/WindowComponent.vue +12 -8
- package/src/manager/window/WindowComponentHeader.vue +33 -9
- package/src/manager/window/WindowComponentHeader.vue.d.ts +3 -0
- package/src/manager/window/WindowManager.vue +2 -2
- package/src/manager/window/windowManager.d.ts +6 -6
- package/src/manager/window/windowManager.js +3 -3
- package/src/navigation/MapNavigation.vue +20 -0
- package/src/navigation/OrientationToolsButton.vue +2 -4
- package/src/navigation/TiltSlider.vue +3 -5
- package/src/navigation/locatorHelper.js +1 -1
- package/src/navigation/overviewMap.js +1 -1
- package/src/notifier/NotifierComponent.vue +18 -15
- package/src/search/ResultItem.vue +18 -6
- package/src/search/ResultsComponent.vue +31 -20
- package/src/search/ResultsComponent.vue.d.ts +2 -1
- package/src/search/SearchComponent.vue +11 -15
- package/src/search/SearchComponent.vue.d.ts +1 -0
- package/src/siteConfig.js +8 -8
- package/src/styles/_typography.scss +0 -2
- package/src/styles/main.scss +0 -4
- package/src/styles/vcsList.scss +1 -1
- package/src/uiConfig.d.ts +311 -7
- package/src/uiConfig.js +30 -17
- package/src/vcsUiApp.d.ts +48 -63
- package/src/vcsUiApp.js +44 -37
- package/src/vuePlugins/vuetify.d.ts +88 -62
- package/src/vuePlugins/vuetify.js +119 -20
- package/dist/assets/ui-2ab43a16.css +0 -1
- package/dist/assets/vue-03b265aa.js +0 -6096
- package/plugins/@vcmap-show-case/theme-changer/README.md +0 -23
- package/plugins/@vcmap-show-case/theme-changer/config.json +0 -69
- package/plugins/@vcmap-show-case/theme-changer/package.json +0 -11
- package/plugins/@vcmap-show-case/theme-changer/src/ThemeChangerComponent.vue +0 -120
- package/plugins/@vcmap-show-case/theme-changer/src/index.js +0 -108
- package/src/application/markdownHelper.d.ts +0 -12
- package/src/application/markdownHelper.js +0 -70
- package/src/components/lists/VcsListItem.vue.d.ts +0 -27
- package/src/components/lists/VcsTreeviewLeaf.vue +0 -83
- package/src/components/notification/VcsTooltip.vue +0 -156
- package/src/components/notification/VcsTooltip.vue.d.ts +0 -27
- package/src/featureInfo/MarkdownComponent.vue +0 -16
- package/src/featureInfo/MarkdownComponent.vue.d.ts +0 -7
- package/src/styles/_theming.scss +0 -73
- package/src/styles/settings.scss +0 -6
- package/src/styles/shades.scss +0 -4
- package/src/styles/variables.scss +0 -140
- package/src/styles/vcsFont.scss +0 -2
- package/src/styles/vcsGrid.scss +0 -3
- /package/src/components/lists/{VcsTreeviewLeaf.vue.d.ts → VcsTreeviewTitle.vue.d.ts} +0 -0
package/build/buildHelpers.js
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
/* eslint import/no-extraneous-dependencies: ["error", { "devDependencies": false }] */
|
2
1
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
3
2
|
import { build } from 'vite'; // vite is also a plugin-cli dep
|
4
3
|
import fs from 'fs';
|
@@ -279,7 +278,12 @@ const toCopy = [
|
|
279
278
|
'README.md',
|
280
279
|
];
|
281
280
|
|
282
|
-
async function buildInlinePlugin(
|
281
|
+
async function buildInlinePlugin(
|
282
|
+
plugin,
|
283
|
+
baseConfig,
|
284
|
+
minify,
|
285
|
+
isDependend = false,
|
286
|
+
) {
|
283
287
|
// the relative path between plugins and libraries, is not known beforehand, so we calculate the distance.
|
284
288
|
// posixRelativePath is the relative path between the index.js of the plugin and the specific library.
|
285
289
|
const relativePluginPaths = {};
|
@@ -292,7 +296,15 @@ async function buildInlinePlugin(plugin, baseConfig, minify) {
|
|
292
296
|
.join(path.posix.sep);
|
293
297
|
});
|
294
298
|
|
295
|
-
const pluginDir =
|
299
|
+
const pluginDir = isDependend
|
300
|
+
? getProjectPath('plugins', 'node_modules', plugin)
|
301
|
+
: getProjectPath('plugins', plugin);
|
302
|
+
|
303
|
+
const isTs = fs.existsSync(path.join(pluginDir, 'src', 'index.ts'));
|
304
|
+
const entry = isTs
|
305
|
+
? path.join(pluginDir, 'src', 'index.ts')
|
306
|
+
: path.join(pluginDir, 'src', 'index.js');
|
307
|
+
|
296
308
|
const pluginConfig = {
|
297
309
|
...baseConfig,
|
298
310
|
esbuild: {
|
@@ -303,13 +315,14 @@ async function buildInlinePlugin(plugin, baseConfig, minify) {
|
|
303
315
|
emptyOutDir: false,
|
304
316
|
outDir: `dist/plugins/${plugin}/`,
|
305
317
|
lib: {
|
306
|
-
entry
|
318
|
+
entry,
|
307
319
|
formats: ['es'],
|
308
320
|
fileName: 'index',
|
309
321
|
},
|
310
322
|
rollupOptions: {
|
311
323
|
external: Object.keys(libraries),
|
312
324
|
output: {
|
325
|
+
manualChunks: () => 'index.js',
|
313
326
|
paths: relativePluginPaths,
|
314
327
|
},
|
315
328
|
},
|
@@ -321,11 +334,11 @@ async function buildInlinePlugin(plugin, baseConfig, minify) {
|
|
321
334
|
}
|
322
335
|
await buildLibrary(pluginConfig, `plugins/${plugin}`, 'index', '', true);
|
323
336
|
await Promise.all(
|
324
|
-
toCopy.map(async (
|
325
|
-
if (fs.existsSync(path.join(pluginDir,
|
337
|
+
toCopy.map(async (fileEntry) => {
|
338
|
+
if (fs.existsSync(path.join(pluginDir, fileEntry))) {
|
326
339
|
await fs.promises.cp(
|
327
|
-
path.join(pluginDir,
|
328
|
-
path.join(distPath,
|
340
|
+
path.join(pluginDir, fileEntry),
|
341
|
+
path.join(distPath, fileEntry),
|
329
342
|
{ recursive: true, force: true },
|
330
343
|
);
|
331
344
|
}
|
@@ -333,6 +346,10 @@ async function buildInlinePlugin(plugin, baseConfig, minify) {
|
|
333
346
|
);
|
334
347
|
}
|
335
348
|
|
349
|
+
/**
|
350
|
+
* Dependent Plugins which are installed from npm are already build and we just copy the relevant files
|
351
|
+
* @param {string} pluginName
|
352
|
+
*/
|
336
353
|
async function buildDependentPlugin(pluginName) {
|
337
354
|
const pluginsDirectory = getPluginDirectory();
|
338
355
|
let scope = '';
|
@@ -365,6 +382,19 @@ async function buildDependentPlugin(pluginName) {
|
|
365
382
|
);
|
366
383
|
}
|
367
384
|
|
385
|
+
function filterDependentPlugins(dependentPlugins, pluginIsBuild = true) {
|
386
|
+
const pluginsDir = getPluginDirectory();
|
387
|
+
return dependentPlugins.filter((pluginName) => {
|
388
|
+
const pluginExists = fs.existsSync(
|
389
|
+
path.join(pluginsDir, 'node_modules', ...pluginName.split('/'), 'dist'),
|
390
|
+
);
|
391
|
+
if (pluginIsBuild) {
|
392
|
+
return pluginExists;
|
393
|
+
}
|
394
|
+
return !pluginExists;
|
395
|
+
});
|
396
|
+
}
|
397
|
+
|
368
398
|
/**
|
369
399
|
* Will build a preview of all the current plugins & inline plugins
|
370
400
|
* @param {import("vite").InlineConfig} [baseConfig={}] - the base config to use. build & esbuild will be completely overwritten
|
@@ -374,14 +404,25 @@ async function buildDependentPlugin(pluginName) {
|
|
374
404
|
export async function buildPluginsForPreview(baseConfig = {}, minify = true) {
|
375
405
|
const inlinePlugins = await getInlinePlugins();
|
376
406
|
const dependentPlugins = await getPluginNames();
|
407
|
+
// only take already build plugins into account.
|
408
|
+
// Plugins loaded from a git repository do not have a dist folder.
|
409
|
+
// These plugins need to be build, same as the inline plugins
|
410
|
+
const buildDependentPlugins = filterDependentPlugins(dependentPlugins, true);
|
411
|
+
const notBuildDependentPlugins = filterDependentPlugins(
|
412
|
+
dependentPlugins,
|
413
|
+
false,
|
414
|
+
);
|
377
415
|
|
378
416
|
const promises = inlinePlugins.map((plugin) =>
|
379
417
|
buildInlinePlugin(plugin, baseConfig, minify),
|
380
418
|
);
|
381
419
|
|
382
420
|
promises.push(
|
383
|
-
...
|
384
|
-
buildDependentPlugin(pluginName
|
421
|
+
...buildDependentPlugins.map(async (pluginName) =>
|
422
|
+
buildDependentPlugin(pluginName),
|
423
|
+
),
|
424
|
+
...notBuildDependentPlugins.map(async (pluginName) =>
|
425
|
+
buildInlinePlugin(pluginName, baseConfig, minify, true),
|
385
426
|
),
|
386
427
|
);
|
387
428
|
await Promise.all(promises);
|
@@ -390,14 +431,22 @@ export async function buildPluginsForPreview(baseConfig = {}, minify = true) {
|
|
390
431
|
export async function buildPluginsForBundle(baseConfig = {}) {
|
391
432
|
const inlinePlugins = await getInlinePlugins();
|
392
433
|
const dependentPlugins = await getPluginNames(false);
|
434
|
+
const buildDependentPlugins = filterDependentPlugins(dependentPlugins, true);
|
435
|
+
const notBuildDependentPlugins = filterDependentPlugins(
|
436
|
+
dependentPlugins,
|
437
|
+
false,
|
438
|
+
);
|
393
439
|
const promises = inlinePlugins
|
394
440
|
.filter((plugin) => plugin.startsWith('@vcmap/'))
|
395
441
|
.map((plugin) => buildInlinePlugin(plugin, baseConfig, true));
|
396
442
|
|
397
443
|
promises.push(
|
398
|
-
...
|
444
|
+
...buildDependentPlugins.map(async (pluginName) =>
|
399
445
|
buildDependentPlugin(pluginName),
|
400
446
|
),
|
447
|
+
...notBuildDependentPlugins.map(async (pluginName) =>
|
448
|
+
buildInlinePlugin(pluginName, baseConfig, true, true),
|
449
|
+
),
|
401
450
|
);
|
402
451
|
await Promise.all(promises);
|
403
452
|
}
|
package/build/buildTypes.js
CHANGED
@@ -113,12 +113,16 @@ async function vueAugmentations() {
|
|
113
113
|
let content = await readFile('./index.d.ts', 'utf-8');
|
114
114
|
content = `${content}
|
115
115
|
declare module 'vue' {
|
116
|
-
type ReplaceFirstParam<TParams extends readonly any[], TReplace> = {
|
117
|
-
[K in keyof TParams]: K extends "0" ? TReplace : TParams[K]
|
118
|
-
}
|
119
|
-
|
120
116
|
interface ComponentCustomProperties {
|
121
|
-
$st
|
117
|
+
$st(key: string | number | undefined | null): string;
|
118
|
+
$st(key: string | number | undefined | null, plural: number, options?: import("vue-i18n").TranslateOptions<import("vue-i18n").Locale>): string;
|
119
|
+
$st(key: string | number | undefined | null, defaultMsg: string, options?: import("vue-i18n").TranslateOptions<import("vue-i18n").Locale>): string;
|
120
|
+
$st(key: string | number | undefined | null, list: unknown[], options?: import("vue-i18n").TranslateOptions<import("vue-i18n").Locale>): string;
|
121
|
+
$st(key: string | number | undefined | null, list: unknown[], plural: number): string;
|
122
|
+
$st(key: string | number | undefined | null, list: unknown[], defaultMsg: string): string;
|
123
|
+
$st(key: string | number | undefined | null, named: import("vue-i18n").NamedValue, options?: import("vue-i18n").TranslateOptions<import("vue-i18n").Locale>): string;
|
124
|
+
$st(key: string | number | undefined | null, named: import("vue-i18n").NamedValue, plural: number): string;
|
125
|
+
$st(key: string | number | undefined | null, named: import("vue-i18n").NamedValue, defaultMsg: string): string;
|
122
126
|
}
|
123
127
|
}
|
124
128
|
`;
|
package/build/bundle.js
CHANGED
package/build/info/publish.js
CHANGED
@@ -20,37 +20,31 @@ exports.publish = function publish(data) {
|
|
20
20
|
|
21
21
|
// get all doclets that have exports
|
22
22
|
const classes = {};
|
23
|
-
const docs = data(
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
);
|
49
|
-
},
|
50
|
-
],
|
51
|
-
{ kind: { '!is': 'file' } },
|
52
|
-
{ kind: { '!is': 'event' } },
|
53
|
-
).get();
|
23
|
+
const docs = data(function someKindOfExportsTransformer() {
|
24
|
+
if (this?.meta?.code?.name) {
|
25
|
+
if (this.meta.code.name === 'module.exports') {
|
26
|
+
this.exports = 'default';
|
27
|
+
} else if (String(this.meta.code.name).startsWith('exports.')) {
|
28
|
+
this.exports = this.meta.code.name.replace(/exports./, '');
|
29
|
+
}
|
30
|
+
}
|
31
|
+
if (this.kind === 'class') {
|
32
|
+
if (
|
33
|
+
!('extends' in this) ||
|
34
|
+
typeof this.api === 'boolean' ||
|
35
|
+
this.exports
|
36
|
+
) {
|
37
|
+
classes[this.longname] = this;
|
38
|
+
return true;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
return (
|
42
|
+
!['file', 'event', 'module'].includes(this.kind) &&
|
43
|
+
(typeof this.api === 'boolean' ||
|
44
|
+
this.exports ||
|
45
|
+
(this.meta && /[\\/]externs$/.test(this.meta.path)))
|
46
|
+
);
|
47
|
+
}).get();
|
54
48
|
|
55
49
|
// get symbols data, filter out those that are members of private classes
|
56
50
|
const symbols = [];
|
package/build/lintTypes.js
CHANGED
@@ -15,6 +15,11 @@ async function lintTypes() {
|
|
15
15
|
// eslint-disable-next-line no-continue
|
16
16
|
continue;
|
17
17
|
}
|
18
|
+
if (path.endsWith('uiConfig.d.ts')) {
|
19
|
+
// we do not check the vcsUiApp.d.ts, because import("vue").DeepReadonly creates an any type
|
20
|
+
// eslint-disable-next-line no-continue
|
21
|
+
continue;
|
22
|
+
}
|
18
23
|
// eslint-disable-next-line no-loop-func
|
19
24
|
content.split(EOL).forEach((line, index) => {
|
20
25
|
const matches = line.match(anyRegex);
|
package/config/base.config.json
CHANGED
@@ -571,7 +571,8 @@
|
|
571
571
|
"name": "tableAllWithTemplateHeader",
|
572
572
|
"keyMapping": {
|
573
573
|
"roofType": "codeLists.keys.roofType",
|
574
|
-
"function": "codeLists.keys.function"
|
574
|
+
"function": "codeLists.keys.function",
|
575
|
+
"featureId": "Feature ID"
|
575
576
|
},
|
576
577
|
"valueMapping": {
|
577
578
|
"roofType": "codeLists.values.roofType.${value}",
|
@@ -1111,12 +1112,6 @@
|
|
1111
1112
|
}
|
1112
1113
|
}
|
1113
1114
|
],
|
1114
|
-
"plugins": [
|
1115
|
-
{
|
1116
|
-
"name": "@vcmap-show-case/theme-changer",
|
1117
|
-
"entry": "plugins/@vcmap-show-case/theme-changer/index.js"
|
1118
|
-
}
|
1119
|
-
],
|
1120
1115
|
"plugins2": [
|
1121
1116
|
{
|
1122
1117
|
"name": "@vcmap/create-link",
|
package/config/dev.config.json
CHANGED
@@ -512,7 +512,8 @@
|
|
512
512
|
"name": "flight",
|
513
513
|
"flightName": "FlightExampleBerlin",
|
514
514
|
"type": "FlightContentTreeItem",
|
515
|
-
"title": "this flight has a very long name. You can find the rest in the tooltip"
|
515
|
+
"title": "this flight has a very long name. You can find the rest in the tooltip",
|
516
|
+
"icon": "mdi-airplane"
|
516
517
|
},
|
517
518
|
{
|
518
519
|
"name": "flight2",
|
@@ -549,6 +550,7 @@
|
|
549
550
|
"name": "building.myTest",
|
550
551
|
"type": "ContentTreeItem",
|
551
552
|
"title": "test SwitchMapCallback Test",
|
553
|
+
"icon": "mdi-toggle-switch",
|
552
554
|
"onClick": [
|
553
555
|
{
|
554
556
|
"type": "ActivateLayersCallback",
|
@@ -656,6 +658,14 @@
|
|
656
658
|
"name": "@vcmap-show-case/hello-world",
|
657
659
|
"entry": "plugins/@vcmap-show-case/hello-world/index.js",
|
658
660
|
"showComponent": false
|
661
|
+
},
|
662
|
+
{
|
663
|
+
"name": "@vcmap-show-case/search-example",
|
664
|
+
"entry": "plugins/@vcmap-show-case/search-example/index.js"
|
665
|
+
},
|
666
|
+
{
|
667
|
+
"name": "@vcmap-show-case/custom-icons-example",
|
668
|
+
"entry": "plugins/@vcmap-show-case/custom-icons-example/index.js"
|
659
669
|
}
|
660
670
|
],
|
661
671
|
"plugins2": [
|
@@ -0,0 +1,68 @@
|
|
1
|
+
{
|
2
|
+
"name": "Theming Examples",
|
3
|
+
"plugins": [
|
4
|
+
{
|
5
|
+
"name": "@vcmap-show-case/theming-example",
|
6
|
+
"entry": "plugins/@vcmap-show-case/theming-example/index.js"
|
7
|
+
}
|
8
|
+
],
|
9
|
+
"uiConfig": [
|
10
|
+
{
|
11
|
+
"name": "vuetifyTheme",
|
12
|
+
"value": {
|
13
|
+
"light": {
|
14
|
+
"colors": {
|
15
|
+
"base": "#9E9E9E",
|
16
|
+
"base-lighten-5": "#FFFFFF",
|
17
|
+
"base-lighten-4": "#F8F8F8",
|
18
|
+
"base-lighten-3": "#EBEBEB",
|
19
|
+
"base-lighten-2": "#D0D0D0",
|
20
|
+
"base-lighten-1": "#B8B8B8",
|
21
|
+
"base-darken-1": "#858585",
|
22
|
+
"base-darken-2": "#6B6B6B",
|
23
|
+
"base-darken-3": "#525252",
|
24
|
+
"base-darken-4": "#383838",
|
25
|
+
"warning": "#FFCE00",
|
26
|
+
"error": "#AA0000",
|
27
|
+
"info": "#2196F3",
|
28
|
+
"success": "#4CAF50",
|
29
|
+
"surface-light": "#ffffff"
|
30
|
+
},
|
31
|
+
"variables": {
|
32
|
+
"hover-opacity": 0.16,
|
33
|
+
"high-emphasis-opacity": 1,
|
34
|
+
"medium-emphasis-opacity": 1,
|
35
|
+
"vcs-font-size": "14px",
|
36
|
+
"vcs-font-family": "Times New Roman"
|
37
|
+
}
|
38
|
+
},
|
39
|
+
"dark": {
|
40
|
+
"colors": {
|
41
|
+
"base": "#9E9E9E",
|
42
|
+
"base-lighten-5": "#FFFFFF",
|
43
|
+
"base-lighten-4": "#383838",
|
44
|
+
"base-lighten-3": "#525252",
|
45
|
+
"base-lighten-2": "#6B6B6B",
|
46
|
+
"base-lighten-1": "#858585",
|
47
|
+
"base-darken-1": "#B8B8B8",
|
48
|
+
"base-darken-2": "#D0D0D0",
|
49
|
+
"base-darken-3": "#EBEBEB",
|
50
|
+
"base-darken-4": "#F8F8F8",
|
51
|
+
"warning": "#FFCE00",
|
52
|
+
"error": "#FF5252",
|
53
|
+
"info": "#2196F3",
|
54
|
+
"success": "#4CAF50",
|
55
|
+
"surface-light": "#222222"
|
56
|
+
},
|
57
|
+
"variables": {
|
58
|
+
"hover-opacity": 0.16,
|
59
|
+
"high-emphasis-opacity": 1,
|
60
|
+
"medium-emphasis-opacity": 1,
|
61
|
+
"vcs-font-size": "14px",
|
62
|
+
"vcs-font-family": "Times New Roman"
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
]
|
68
|
+
}
|
package/config/www.config.json
CHANGED
@@ -1827,20 +1827,20 @@
|
|
1827
1827
|
"layerName": "festgesetzte Überschwemmungsgebiete"
|
1828
1828
|
}
|
1829
1829
|
],
|
1830
|
-
"
|
1830
|
+
"plugins": [
|
1831
1831
|
{
|
1832
1832
|
"name": "@vcmap/link-button",
|
1833
1833
|
"entry": "plugins/@vcmap/link-button/index.js",
|
1834
1834
|
"buttons": [
|
1835
1835
|
{
|
1836
1836
|
"buttonLocation": 5,
|
1837
|
-
"templateUrl": "https://
|
1837
|
+
"templateUrl": "https://www.virtualcitymap.de/?state=[[[{{cameraPosition}}],[{{groundPosition}}],{{distance}},{{heading}},{{pitch}},{{roll}}],\"cesium\",[\"VC Map Demo\"]]",
|
1838
1838
|
"title": "Zweites Fenster öffnen",
|
1839
1839
|
"projection": {}
|
1840
1840
|
},
|
1841
1841
|
{
|
1842
1842
|
"buttonLocation": 5,
|
1843
|
-
"templateUrl": "https://
|
1843
|
+
"templateUrl": "https://old.virtualcitymap.de/?cameraPosition={{cameraPosition}}&groundPosition={{groundPosition}}&distance={{distance}}&pitch={{pitch}}&heading={{heading}}&roll={{roll}}#/",
|
1844
1844
|
"title": "Alte 4.3 Map öffnen",
|
1845
1845
|
"projection": {}
|
1846
1846
|
}
|
@@ -1850,10 +1850,6 @@
|
|
1850
1850
|
"name": "@vcmap/walk",
|
1851
1851
|
"entry": "plugins/@vcmap/walk/index.js"
|
1852
1852
|
},
|
1853
|
-
{
|
1854
|
-
"name": "@vcmap/create-link",
|
1855
|
-
"entry": "plugins/@vcmap/create-link/index.js"
|
1856
|
-
},
|
1857
1853
|
{
|
1858
1854
|
"name": "@vcmap/print",
|
1859
1855
|
"entry": "plugins/@vcmap/print/index.js",
|
@@ -1868,6 +1864,28 @@
|
|
1868
1864
|
"fax": "+49 (0) 30 . 8904 . 871 . 0"
|
1869
1865
|
}
|
1870
1866
|
},
|
1867
|
+
{
|
1868
|
+
"name": "@vcmap/multi-view",
|
1869
|
+
"entry": "plugins/@vcmap/multi-view/index.js"
|
1870
|
+
},
|
1871
|
+
{
|
1872
|
+
"name": "@vcmap/transparent-terrain",
|
1873
|
+
"entry": "plugins/@vcmap/transparent-terrain/index.js"
|
1874
|
+
},
|
1875
|
+
{
|
1876
|
+
"name": "@vcmap/viewshed",
|
1877
|
+
"entry": "plugins/@vcmap/viewshed/index.js"
|
1878
|
+
},
|
1879
|
+
{
|
1880
|
+
"name": "@vcmap/clipping-tool",
|
1881
|
+
"entry": "plugins/@vcmap/clipping-tool/index.js"
|
1882
|
+
}
|
1883
|
+
],
|
1884
|
+
"plugins2": [
|
1885
|
+
{
|
1886
|
+
"name": "@vcmap/create-link",
|
1887
|
+
"entry": "plugins/@vcmap/create-link/index.js"
|
1888
|
+
},
|
1871
1889
|
{
|
1872
1890
|
"name": "@vcmap/swipe-tool",
|
1873
1891
|
"entry": "plugins/@vcmap/swipe-tool/index.js"
|
@@ -1884,10 +1902,6 @@
|
|
1884
1902
|
"name": "@vcmap/search-nominatim",
|
1885
1903
|
"entry": "plugins/@vcmap/search-nominatim/index.js"
|
1886
1904
|
},
|
1887
|
-
{
|
1888
|
-
"name": "@vcmap/multi-view",
|
1889
|
-
"entry": "plugins/@vcmap/multi-view/index.js"
|
1890
|
-
},
|
1891
1905
|
{
|
1892
1906
|
"name": "@vcmap/cesium-filters",
|
1893
1907
|
"entry": "plugins/@vcmap/cesium-filters/index.js"
|
@@ -1917,10 +1931,7 @@
|
|
1917
1931
|
}
|
1918
1932
|
]
|
1919
1933
|
},
|
1920
|
-
|
1921
|
-
"name": "@vcmap/viewshed",
|
1922
|
-
"entry": "plugins/@vcmap/viewshed/index.js"
|
1923
|
-
},
|
1934
|
+
|
1924
1935
|
{
|
1925
1936
|
"name": "@vcmap/measurement",
|
1926
1937
|
"entry": "plugins/@vcmap/measurement/index.js"
|
@@ -1936,18 +1947,11 @@
|
|
1936
1947
|
"projectId": "rBW58EJz5RwCz75Q3",
|
1937
1948
|
"mapId": "csunCGqmQE8Py4KCe"
|
1938
1949
|
},
|
1939
|
-
|
1940
|
-
"name": "@vcmap/transparent-terrain",
|
1941
|
-
"entry": "plugins/@vcmap/transparent-terrain/index.js"
|
1942
|
-
},
|
1950
|
+
|
1943
1951
|
{
|
1944
1952
|
"name": "@vcmap/search-coordinate",
|
1945
1953
|
"entry": "plugins/@vcmap/search-coordinate/index.js"
|
1946
1954
|
},
|
1947
|
-
{
|
1948
|
-
"name": "@vcmap/clipping-tool",
|
1949
|
-
"entry": "plugins/@vcmap/clipping-tool/index.js"
|
1950
|
-
},
|
1951
1955
|
{
|
1952
1956
|
"name": "@vcmap/height-profile",
|
1953
1957
|
"entry": "plugins/@vcmap/height-profile/index.js"
|