@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
@@ -24,7 +24,7 @@ import { getDefaultPrimaryColor } from '../vuePlugins/vuetify.js';
|
|
24
24
|
*/
|
25
25
|
function getColor(opacity, app) {
|
26
26
|
return Color.fromCssColorString(
|
27
|
-
app.uiConfig.config.
|
27
|
+
app.uiConfig.config.primaryColor ?? getDefaultPrimaryColor(app),
|
28
28
|
)
|
29
29
|
.withAlpha(opacity)
|
30
30
|
.toCssColorString();
|
@@ -140,7 +140,7 @@ class OverviewMap {
|
|
140
140
|
this._obliqueSelectedImageLayer = null;
|
141
141
|
|
142
142
|
const primary =
|
143
|
-
app.uiConfig.config.
|
143
|
+
app.uiConfig.config.primaryColor ?? getDefaultPrimaryColor(app);
|
144
144
|
const fillColor = Color.fromCssColorString('#EDEDED');
|
145
145
|
|
146
146
|
/**
|
@@ -5,6 +5,7 @@
|
|
5
5
|
:key="notification.id"
|
6
6
|
v-model="notification.open"
|
7
7
|
:timeout="notification.timeout"
|
8
|
+
class="vcs-notifier"
|
8
9
|
>
|
9
10
|
<v-icon :color="notification.type">
|
10
11
|
{{ icon[notification.type] }}
|
@@ -63,21 +64,23 @@
|
|
63
64
|
</script>
|
64
65
|
|
65
66
|
<style lang="scss" scoped>
|
66
|
-
.
|
67
|
-
:
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
align-self: flex-start;
|
80
|
-
margin-top: 4px;
|
67
|
+
.vcs-notifier {
|
68
|
+
opacity: 0.95;
|
69
|
+
}
|
70
|
+
:deep(.v-snackbar__content) {
|
71
|
+
display: grid;
|
72
|
+
padding: 8px 8px;
|
73
|
+
gap: 8px 4px;
|
74
|
+
grid-template-columns: 20px auto;
|
75
|
+
.v-icon {
|
76
|
+
grid-row-start: 1;
|
77
|
+
grid-row-end: 3;
|
78
|
+
align-self: start;
|
79
|
+
font-size: var(--v-vcs-font-size);
|
81
80
|
}
|
82
81
|
}
|
82
|
+
:deep(.v-snackbar__actions) {
|
83
|
+
align-self: flex-start;
|
84
|
+
margin-top: 4px;
|
85
|
+
}
|
83
86
|
</style>
|
@@ -1,13 +1,18 @@
|
|
1
1
|
<template>
|
2
|
-
<v-list-item
|
2
|
+
<v-list-item v-if="item" v-bind="$attrs">
|
3
3
|
<template #prepend v-if="item.icon">
|
4
4
|
<v-icon>
|
5
5
|
{{ item.icon }}
|
6
6
|
</v-icon>
|
7
7
|
</template>
|
8
|
-
<
|
9
|
-
<
|
10
|
-
|
8
|
+
<template #title>
|
9
|
+
<v-list-item-title>
|
10
|
+
<span v-html="marked" />
|
11
|
+
</v-list-item-title>
|
12
|
+
</template>
|
13
|
+
<v-tooltip activator="parent">
|
14
|
+
{{ $st('search.select') }}
|
15
|
+
</v-tooltip>
|
11
16
|
<template #append>
|
12
17
|
<VcsActionButtonList
|
13
18
|
v-if="hasActions"
|
@@ -21,7 +26,12 @@
|
|
21
26
|
|
22
27
|
<script>
|
23
28
|
import { computed } from 'vue';
|
24
|
-
import {
|
29
|
+
import {
|
30
|
+
VIcon,
|
31
|
+
VListItem,
|
32
|
+
VListItemTitle,
|
33
|
+
VTooltip,
|
34
|
+
} from 'vuetify/components';
|
25
35
|
import VcsActionButtonList from '../components/buttons/VcsActionButtonList.vue';
|
26
36
|
|
27
37
|
/**
|
@@ -38,7 +48,7 @@
|
|
38
48
|
partials.forEach((partial) => {
|
39
49
|
replacement = replacement.replaceAll(
|
40
50
|
new RegExp(`(^|[^>])(${partial})`, 'ig'),
|
41
|
-
'<span>$1<span class="primary
|
51
|
+
'<span>$1<span class="text-primary">$2</span></span>',
|
42
52
|
);
|
43
53
|
});
|
44
54
|
}
|
@@ -58,6 +68,8 @@
|
|
58
68
|
VcsActionButtonList,
|
59
69
|
VIcon,
|
60
70
|
VListItem,
|
71
|
+
VListItemTitle,
|
72
|
+
VTooltip,
|
61
73
|
},
|
62
74
|
props: {
|
63
75
|
query: {
|
@@ -1,15 +1,16 @@
|
|
1
1
|
<template>
|
2
2
|
<v-list
|
3
|
-
density="compact"
|
4
3
|
class="ma-0 overflow-y-auto vcs-search-results"
|
5
|
-
v-model="highlighted"
|
4
|
+
v-model:selected="highlighted"
|
6
5
|
>
|
7
6
|
<ResultItem
|
8
7
|
:item="item"
|
9
8
|
:query="query"
|
10
|
-
class="cursor-pointer
|
11
|
-
|
9
|
+
class="cursor-pointer"
|
10
|
+
:class="{ 'vcs-search-result-border': index < items.length - 1 }"
|
11
|
+
v-for="(item, index) in items"
|
12
12
|
:key="index"
|
13
|
+
:value="item.value"
|
13
14
|
/>
|
14
15
|
</v-list>
|
15
16
|
</template>
|
@@ -22,7 +23,7 @@
|
|
22
23
|
/**
|
23
24
|
* @description ResultsComponent listing all available result items in a scrollable list
|
24
25
|
* @vue-prop {string} query - The query string forwarded to mark results within resultItem component.
|
25
|
-
* @vue-prop {Array<ResultItem>} results - Array of results.
|
26
|
+
* @vue-prop {Array<import("./search.js").ResultItem>} results - Array of results.
|
26
27
|
* @vue-computed {import("vue").Ref<string>} highlighted - The highlighted result item. Updates also on feature select.
|
27
28
|
*/
|
28
29
|
export default {
|
@@ -42,23 +43,27 @@
|
|
42
43
|
},
|
43
44
|
},
|
44
45
|
setup(props) {
|
45
|
-
const
|
46
|
+
const items = computed(() => {
|
47
|
+
return props.results.map((item, index) => ({
|
48
|
+
...item,
|
49
|
+
value: index,
|
50
|
+
}));
|
51
|
+
});
|
52
|
+
const selectedRef = ref([]);
|
46
53
|
/** @type {import("@src/vcsUiApp.js").default} */
|
47
54
|
const app = inject('vcsApp');
|
48
55
|
const selectedListener = app.featureInfo.featureChanged.addEventListener(
|
49
56
|
(feature) => {
|
50
|
-
if (
|
51
|
-
|
52
|
-
|
53
|
-
props.results[highlightedRef.value].feature === feature
|
54
|
-
) {
|
57
|
+
if (selectedRef.value.length > 0) {
|
58
|
+
const [index] = selectedRef.value;
|
59
|
+
if (feature && items.value[index].feature === feature) {
|
55
60
|
return;
|
56
61
|
}
|
57
|
-
|
62
|
+
selectedRef.value = [];
|
58
63
|
} else if (feature) {
|
59
|
-
|
60
|
-
(r) => r.feature === feature,
|
61
|
-
|
64
|
+
selectedRef.value = [
|
65
|
+
items.value.findIndex((r) => r.feature === feature),
|
66
|
+
];
|
62
67
|
}
|
63
68
|
},
|
64
69
|
);
|
@@ -68,14 +73,16 @@
|
|
68
73
|
});
|
69
74
|
|
70
75
|
return {
|
76
|
+
items,
|
71
77
|
highlighted: computed({
|
72
78
|
get() {
|
73
|
-
return
|
79
|
+
return selectedRef.value;
|
74
80
|
},
|
75
81
|
set(value) {
|
76
|
-
|
77
|
-
|
78
|
-
|
82
|
+
selectedRef.value = value;
|
83
|
+
const [index] = value;
|
84
|
+
if (index >= 0) {
|
85
|
+
const item = items.value[index];
|
79
86
|
item.clicked();
|
80
87
|
}
|
81
88
|
},
|
@@ -85,8 +92,12 @@
|
|
85
92
|
};
|
86
93
|
</script>
|
87
94
|
|
88
|
-
<style scoped>
|
95
|
+
<style lang="scss" scoped>
|
89
96
|
.vcs-search-results {
|
90
97
|
max-height: 400px;
|
91
98
|
}
|
99
|
+
.vcs-search-result-border {
|
100
|
+
border-bottom: thin solid;
|
101
|
+
border-color: rgb(var(--v-theme-base-lighten-2));
|
102
|
+
}
|
92
103
|
</style>
|
@@ -8,7 +8,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
8
8
|
required: true;
|
9
9
|
};
|
10
10
|
}, {
|
11
|
-
|
11
|
+
items: import("vue").ComputedRef<any[]>;
|
12
|
+
highlighted: import("vue").WritableComputedRef<never[]>;
|
12
13
|
}, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
13
14
|
query: {
|
14
15
|
type: StringConstructor;
|
@@ -1,17 +1,17 @@
|
|
1
1
|
<template>
|
2
2
|
<v-sheet>
|
3
3
|
<span class="d-flex justify-space-between align-center mt-1 ml-2">
|
4
|
-
<v-icon class="pa-1"> $vcsSearch </v-icon>
|
4
|
+
<v-icon class="pa-1" :size="searchIconSize"> $vcsSearch </v-icon>
|
5
5
|
<VcsTextField
|
6
6
|
class="d-inline-block user-select-none w-100 mx-1"
|
7
7
|
autofocus
|
8
8
|
:loading="searching"
|
9
9
|
clearable
|
10
|
-
dense
|
11
10
|
:placeholder="$t('search.placeholder')"
|
12
11
|
v-model.trim="query"
|
13
12
|
@keydown.enter="search"
|
14
13
|
@input="reset"
|
14
|
+
@click:clear="reset"
|
15
15
|
/>
|
16
16
|
</span>
|
17
17
|
<v-divider class="mt-1 base-darken-1" v-if="!!results.length" />
|
@@ -26,18 +26,8 @@
|
|
26
26
|
</template>
|
27
27
|
|
28
28
|
<style lang="scss" scoped>
|
29
|
-
:deep(.v-
|
30
|
-
|
31
|
-
padding: 0 !important;
|
32
|
-
}
|
33
|
-
fieldset,
|
34
|
-
input {
|
35
|
-
border-color: transparent !important;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
:deep(.v-icon .v-icon__component) {
|
39
|
-
width: 16px;
|
40
|
-
height: 16px;
|
29
|
+
:deep(.v-field .v-field__outline *) {
|
30
|
+
border-color: transparent !important;
|
41
31
|
}
|
42
32
|
.user-select-none {
|
43
33
|
user-select: none;
|
@@ -45,12 +35,13 @@
|
|
45
35
|
</style>
|
46
36
|
|
47
37
|
<script>
|
48
|
-
import { inject, onUnmounted, ref } from 'vue';
|
38
|
+
import { inject, onUnmounted, ref, computed } from 'vue';
|
49
39
|
import { getLogger } from '@vcsuite/logger';
|
50
40
|
import { VSheet, VDivider, VIcon } from 'vuetify/components';
|
51
41
|
import VcsTextField from '../components/form-inputs-controls/VcsTextField.vue';
|
52
42
|
import ResultsComponent from './ResultsComponent.vue';
|
53
43
|
import VcsFormButton from '../components/buttons/VcsFormButton.vue';
|
44
|
+
import { useFontSize } from '../vuePlugins/vuetify.js';
|
54
45
|
|
55
46
|
/**
|
56
47
|
* @description Stylized search component providing an input field for search inputs.
|
@@ -103,6 +94,10 @@
|
|
103
94
|
clear();
|
104
95
|
});
|
105
96
|
|
97
|
+
const fontSize = useFontSize();
|
98
|
+
const searchIconSize = computed(() => {
|
99
|
+
return fontSize.value + 11;
|
100
|
+
});
|
106
101
|
return {
|
107
102
|
query,
|
108
103
|
searching,
|
@@ -111,6 +106,7 @@
|
|
111
106
|
clear,
|
112
107
|
search,
|
113
108
|
zoomToAll,
|
109
|
+
searchIconSize,
|
114
110
|
};
|
115
111
|
},
|
116
112
|
};
|
@@ -6,5 +6,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
6
6
|
clear: () => void;
|
7
7
|
search: () => Promise<void>;
|
8
8
|
zoomToAll: () => void;
|
9
|
+
searchIconSize: import("vue").ComputedRef<number>;
|
9
10
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
10
11
|
export default _default;
|
package/src/siteConfig.js
CHANGED
@@ -44,25 +44,25 @@ const defaultHeaderTitle = 'VC Map';
|
|
44
44
|
* @returns {() => void}
|
45
45
|
*/
|
46
46
|
export default function createSiteConfig(uiConfig) {
|
47
|
-
if (typeof uiConfig.config.
|
48
|
-
setFavicon(uiConfig.config.
|
47
|
+
if (typeof uiConfig.config.favicon === 'string') {
|
48
|
+
setFavicon(uiConfig.config.favicon);
|
49
49
|
}
|
50
50
|
|
51
|
-
if (typeof uiConfig.config.
|
52
|
-
setHeaderTitle(uiConfig.config.
|
51
|
+
if (typeof uiConfig.config.headerTitle === 'string') {
|
52
|
+
setHeaderTitle(uiConfig.config.headerTitle);
|
53
53
|
}
|
54
54
|
|
55
55
|
const updateFavicon = () => {
|
56
|
-
if (typeof uiConfig.config.
|
57
|
-
setFavicon(uiConfig.config.
|
56
|
+
if (typeof uiConfig.config.favicon === 'string') {
|
57
|
+
setFavicon(uiConfig.config.favicon);
|
58
58
|
} else {
|
59
59
|
setFavicon(defaultFavicon);
|
60
60
|
}
|
61
61
|
};
|
62
62
|
|
63
63
|
const updateHeaderTitle = () => {
|
64
|
-
if (typeof uiConfig.config.
|
65
|
-
setHeaderTitle(uiConfig.config.
|
64
|
+
if (typeof uiConfig.config.headerTitle === 'string') {
|
65
|
+
setHeaderTitle(uiConfig.config.headerTitle);
|
66
66
|
} else {
|
67
67
|
setHeaderTitle(defaultHeaderTitle);
|
68
68
|
}
|
package/src/styles/main.scss
CHANGED