@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.
Files changed (235) hide show
  1. package/build/buildHelpers.js +60 -11
  2. package/build/buildTypes.js +9 -5
  3. package/build/bundle.js +1 -1
  4. package/build/info/publish.js +25 -31
  5. package/build/lintTypes.js +5 -0
  6. package/config/base.config.json +2 -7
  7. package/config/dev.config.json +11 -1
  8. package/config/projects.config.json +2 -1
  9. package/config/theming.config.json +68 -0
  10. package/config/www.config.json +27 -23
  11. package/dist/assets/@mdi/font/css/{materialdesignicons.min-7a4f6be0.css → materialdesignicons.min-680621ca.css} +1 -1
  12. package/dist/assets/{cesium-cb4dbfba.js → cesium-ccb4cc30.js} +272 -385
  13. package/dist/assets/cesium.js +1 -1
  14. package/dist/assets/{core-72f21835.js → core-e06aa7a6.js} +2313 -2321
  15. package/dist/assets/core.js +1 -1
  16. package/dist/assets/{ol-2d33bc8b.js → ol-e7981d5c.js} +233 -329
  17. package/dist/assets/ol.js +1 -1
  18. package/dist/assets/ui-5dda32d2.css +1 -0
  19. package/dist/assets/{ui-2ab43a16.js → ui-5dda32d2.js} +11344 -11078
  20. package/dist/assets/ui.js +1 -1
  21. package/dist/assets/vue-87bc6efe.js +6083 -0
  22. package/dist/assets/vue.js +1 -1
  23. package/dist/assets/{vuetify-760ced3b.css → vuetify-4c4e4217.css} +2 -2
  24. package/dist/assets/{vuetify-760ced3b.js → vuetify-4c4e4217.js} +8063 -8262
  25. package/dist/assets/vuetify.js +1 -1
  26. package/index.d.ts +27 -17
  27. package/index.js +16 -8
  28. package/package.json +17 -17
  29. package/plugins/@vcmap-show-case/custom-icons-example/README.md +3 -0
  30. package/plugins/@vcmap-show-case/custom-icons-example/assets/imageExample.png +0 -0
  31. package/plugins/@vcmap-show-case/custom-icons-example/assets/svgExample.svg +1 -0
  32. package/plugins/@vcmap-show-case/custom-icons-example/package.json +5 -0
  33. package/plugins/@vcmap-show-case/custom-icons-example/src/CustomIconsExample.vue +90 -0
  34. package/plugins/@vcmap-show-case/custom-icons-example/src/index.js +45 -0
  35. package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +2 -3
  36. package/plugins/@vcmap-show-case/plugin-editors/src/PluginEditors.vue +11 -7
  37. package/plugins/@vcmap-show-case/project-selector/src/ModulesListComponent.vue +18 -11
  38. package/plugins/@vcmap-show-case/search-example/src/index.js +1 -0
  39. package/plugins/@vcmap-show-case/search-example/src/searchImpl.js +35 -5
  40. package/plugins/@vcmap-show-case/theming-example/README.md +3 -0
  41. package/plugins/@vcmap-show-case/theming-example/package.json +5 -0
  42. package/plugins/@vcmap-show-case/theming-example/src/ThemingExample.vue +116 -0
  43. package/plugins/@vcmap-show-case/theming-example/src/index.js +53 -0
  44. package/plugins/@vcmap-show-case/toolbox-example/src/index.js +2 -1
  45. package/plugins/package.json +7 -23
  46. package/public/assets/@mdi/font/css/materialdesignicons.min.css +1 -1
  47. package/src/actions/StyleSelector.vue +1 -1
  48. package/src/actions/actionHelper.d.ts +4 -11
  49. package/src/actions/actionHelper.js +15 -7
  50. package/src/actions/listActions.d.ts +5 -5
  51. package/src/actions/listActions.js +2 -2
  52. package/src/application/VcsApp.vue +113 -50
  53. package/src/application/VcsApp.vue.d.ts +301 -4
  54. package/src/application/VcsAttributionsFooter.vue.d.ts +1 -1
  55. package/src/application/VcsContainer.vue +27 -10
  56. package/src/application/VcsContainer.vue.d.ts +241 -0
  57. package/src/application/VcsMainMap.vue +7 -7
  58. package/src/application/VcsMainMap.vue.d.ts +2 -2
  59. package/src/application/VcsNavbar.vue +14 -2
  60. package/src/application/VcsNavbar.vue.d.ts +1 -0
  61. package/src/application/VcsSplashScreen.vue +33 -26
  62. package/src/application/VcsTextPageFooter.vue +2 -1
  63. package/src/application/attributionsHelper.d.ts +20 -22
  64. package/src/application/attributionsHelper.js +4 -4
  65. package/src/callback/vcsCallback.d.ts +2 -2
  66. package/src/callback/vcsCallback.js +1 -1
  67. package/src/components/buttons/VcsActionButtonList.vue +61 -6
  68. package/src/components/buttons/VcsActionButtonList.vue.d.ts +28 -0
  69. package/src/components/buttons/VcsButton.vue +2 -4
  70. package/src/components/buttons/VcsButton.vue.d.ts +1 -1
  71. package/src/components/buttons/VcsFormButton.vue +4 -4
  72. package/src/components/buttons/VcsToolButton.vue +4 -2
  73. package/src/components/buttons/VcsToolButton.vue.d.ts +2 -2
  74. package/src/components/composables.d.ts +5 -0
  75. package/src/components/composables.js +79 -9
  76. package/src/components/extent/VcsExtent.vue +10 -6
  77. package/src/components/extent/VcsExtent.vue.d.ts +1 -0
  78. package/src/components/flight/VcsFlightComponent.vue +13 -13
  79. package/src/components/flight/VcsFlightComponent.vue.d.ts +1 -0
  80. package/src/components/form-inputs-controls/VcsCheckbox.vue +8 -3
  81. package/src/components/form-inputs-controls/VcsChipArrayInput.vue +13 -16
  82. package/src/components/form-inputs-controls/VcsChipArrayInput.vue.d.ts +2 -4
  83. package/src/components/form-inputs-controls/VcsCoordinate.vue +4 -4
  84. package/src/components/form-inputs-controls/VcsFileInput.vue +1 -1
  85. package/src/components/form-inputs-controls/VcsLabel.vue +1 -1
  86. package/src/components/form-inputs-controls/VcsRadio.vue +8 -6
  87. package/src/components/form-inputs-controls/VcsRadio.vue.d.ts +1 -0
  88. package/src/components/form-inputs-controls/VcsSelect.vue +2 -5
  89. package/src/components/form-inputs-controls/VcsSlider.vue +5 -6
  90. package/src/components/form-inputs-controls/VcsSlider.vue.d.ts +2 -4
  91. package/src/components/form-inputs-controls/VcsTextArea.vue +2 -5
  92. package/src/components/form-inputs-controls/VcsTextField.vue +24 -1
  93. package/src/components/form-inputs-controls/VcsTextField.vue.d.ts +11 -1
  94. package/src/components/form-inputs-controls/VcsWizard.vue +3 -3
  95. package/src/components/form-inputs-controls/VcsWizardStep.vue +6 -5
  96. package/src/components/form-inputs-controls/vcsTextField.scss +8 -5
  97. package/src/components/form-output/VcsFormattedNumber.vue +7 -5
  98. package/src/components/form-output/VcsMarkdown.vue +15 -12
  99. package/src/components/form-output/VcsMarkdown.vue.d.ts +1 -0
  100. package/src/components/form-output/markdownHelper.d.ts +30 -0
  101. package/src/components/form-output/markdownHelper.js +398 -0
  102. package/src/components/import/VcsFileDrop.vue +8 -5
  103. package/src/components/import/VcsImportComponent.vue +8 -4
  104. package/src/components/import/VcsImportComponent.vue.d.ts +1 -2
  105. package/src/components/lists/VcsActionList.vue +6 -6
  106. package/src/components/lists/VcsList.vue +22 -37
  107. package/src/components/lists/VcsList.vue.d.ts +14 -55
  108. package/src/components/lists/{VcsListItem.vue → VcsListItemComponent.vue} +37 -11
  109. package/src/components/lists/VcsListItemComponent.vue.d.ts +79 -0
  110. package/src/components/lists/VcsTreeview.vue +95 -26
  111. package/src/components/lists/VcsTreeview.vue.d.ts +16 -3
  112. package/src/components/lists/VcsTreeviewSearchbar.vue +16 -5
  113. package/src/components/lists/VcsTreeviewSearchbar.vue.d.ts +3 -1
  114. package/src/components/lists/VcsTreeviewTitle.vue +36 -0
  115. package/src/components/modelHelper.d.ts +10 -8
  116. package/src/components/modelHelper.js +8 -6
  117. package/src/components/notification/VcsHelp.vue +6 -7
  118. package/src/components/notification/VcsHelp.vue.d.ts +0 -8
  119. package/src/components/plugins/AbstractConfigEditor.vue +1 -22
  120. package/src/components/plugins/AbstractConfigEditor.vue.d.ts +6 -29
  121. package/src/components/section/VcsExpansionPanel.vue +9 -3
  122. package/src/components/section/VcsExpansionPanel.vue.d.ts +2 -2
  123. package/src/components/section/VcsFormSection.vue +13 -7
  124. package/src/components/section/VcsFormSection.vue.d.ts +2 -3
  125. package/src/components/style/VcsImageSelector.vue +14 -6
  126. package/src/components/style/VcsImageSelector.vue.d.ts +1 -0
  127. package/src/components/style/VcsStrokeSelector.vue +5 -2
  128. package/src/components/style/VcsStrokeSelector.vue.d.ts +1 -0
  129. package/src/components/style/VcsTextMenu.vue +3 -3
  130. package/src/components/style/VcsVectorStyleComponent.vue +1 -1
  131. package/src/components/tables/VcsDataTable.vue +42 -32
  132. package/src/components/tables/VcsDataTable.vue.d.ts +1 -0
  133. package/src/components/tables/VcsTable.vue +45 -62
  134. package/src/components/tables/VcsTable.vue.d.ts +30 -17
  135. package/src/components/tables/VcsTableCell.vue +72 -0
  136. package/src/components/tables/VcsTableCell.vue.d.ts +13 -0
  137. package/src/components/vector-properties/VcsFeatureEditingWindow.vue +6 -5
  138. package/src/components/vector-properties/VcsFeatureTransforms.vue +5 -0
  139. package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +42 -31
  140. package/src/components/vector-properties/VcsVectorPropertiesComponent.vue.d.ts +1 -0
  141. package/src/components/viewpoint/VcsViewpointComponent.vue +14 -11
  142. package/src/components/viewpoint/VcsViewpointComponent.vue.d.ts +1 -0
  143. package/src/components/viewpoint/VcsViewpointEditor.vue +2 -2
  144. package/src/contentTree/LayerTree.vue +9 -27
  145. package/src/contentTree/LayerTree.vue.d.ts +1 -1
  146. package/src/contentTree/contentTreeCollection.d.ts +1 -0
  147. package/src/contentTree/contentTreeCollection.js +45 -11
  148. package/src/contentTree/contentTreeItem.d.ts +2 -2
  149. package/src/contentTree/contentTreeItem.js +1 -1
  150. package/src/featureInfo/BalloonComponent.vue +32 -25
  151. package/src/featureInfo/BalloonComponent.vue.d.ts +1 -0
  152. package/src/featureInfo/MarkdownBalloonComponent.vue +4 -2
  153. package/src/featureInfo/MarkdownBalloonComponent.vue.d.ts +2 -2
  154. package/src/featureInfo/abstractFeatureInfoView.d.ts +10 -4
  155. package/src/featureInfo/abstractFeatureInfoView.js +19 -11
  156. package/src/featureInfo/featureInfo.d.ts +7 -7
  157. package/src/featureInfo/featureInfo.js +51 -31
  158. package/src/featureInfo/iframeFeatureInfoView.d.ts +8 -2
  159. package/src/featureInfo/iframeFeatureInfoView.js +15 -5
  160. package/src/featureInfo/markdownBalloonFeatureInfoView.d.ts +1 -1
  161. package/src/featureInfo/markdownBalloonFeatureInfoView.js +5 -5
  162. package/src/featureInfo/markdownFeatureInfoView.d.ts +1 -1
  163. package/src/featureInfo/markdownFeatureInfoView.js +9 -11
  164. package/src/featureInfo/tableFeatureInfoView.js +13 -4
  165. package/src/i18n/i18nCollection.d.ts +9 -15
  166. package/src/i18n/i18nCollection.js +3 -3
  167. package/src/legend/VcsLegend.vue +6 -2
  168. package/src/legend/VcsLegend.vue.d.ts +1 -0
  169. package/src/manager/collectionManager/CollectionComponentList.vue +2 -2
  170. package/src/manager/collectionManager/CollectionComponentList.vue.d.ts +2 -2
  171. package/src/manager/collectionManager/categoryManager.d.ts +1 -1
  172. package/src/manager/collectionManager/collectionComponentClass.d.ts +3 -3
  173. package/src/manager/collectionManager/collectionComponentClass.js +6 -6
  174. package/src/manager/collectionManager/collectionManager.d.ts +1 -1
  175. package/src/manager/collectionManager/editorCollectionComponentClass.js +2 -1
  176. package/src/manager/panel/PanelComponent.vue +2 -9
  177. package/src/manager/panel/PanelManagerComponent.vue +7 -3
  178. package/src/manager/panel/panelHelper.js +3 -3
  179. package/src/manager/panel/panelManager.d.ts +9 -1
  180. package/src/manager/panel/panelManager.js +15 -3
  181. package/src/manager/toolbox/GroupToolboxComponent.vue +11 -5
  182. package/src/manager/toolbox/GroupToolboxComponent.vue.d.ts +1 -0
  183. package/src/manager/toolbox/SelectToolboxComponent.vue +11 -6
  184. package/src/manager/toolbox/SelectToolboxComponent.vue.d.ts +1 -0
  185. package/src/manager/toolbox/{ToolboxManager.vue → ToolboxManagerComponent.vue} +13 -7
  186. package/src/manager/toolbox/{ToolboxManager.vue.d.ts → ToolboxManagerComponent.vue.d.ts} +1 -0
  187. package/src/manager/window/WindowComponent.vue +12 -8
  188. package/src/manager/window/WindowComponentHeader.vue +33 -9
  189. package/src/manager/window/WindowComponentHeader.vue.d.ts +3 -0
  190. package/src/manager/window/WindowManager.vue +2 -2
  191. package/src/manager/window/windowManager.d.ts +6 -6
  192. package/src/manager/window/windowManager.js +3 -3
  193. package/src/navigation/MapNavigation.vue +20 -0
  194. package/src/navigation/OrientationToolsButton.vue +2 -4
  195. package/src/navigation/TiltSlider.vue +3 -5
  196. package/src/navigation/locatorHelper.js +1 -1
  197. package/src/navigation/overviewMap.js +1 -1
  198. package/src/notifier/NotifierComponent.vue +18 -15
  199. package/src/search/ResultItem.vue +18 -6
  200. package/src/search/ResultsComponent.vue +31 -20
  201. package/src/search/ResultsComponent.vue.d.ts +2 -1
  202. package/src/search/SearchComponent.vue +11 -15
  203. package/src/search/SearchComponent.vue.d.ts +1 -0
  204. package/src/siteConfig.js +8 -8
  205. package/src/styles/_typography.scss +0 -2
  206. package/src/styles/main.scss +0 -4
  207. package/src/styles/vcsList.scss +1 -1
  208. package/src/uiConfig.d.ts +311 -7
  209. package/src/uiConfig.js +30 -17
  210. package/src/vcsUiApp.d.ts +48 -63
  211. package/src/vcsUiApp.js +44 -37
  212. package/src/vuePlugins/vuetify.d.ts +88 -62
  213. package/src/vuePlugins/vuetify.js +119 -20
  214. package/dist/assets/ui-2ab43a16.css +0 -1
  215. package/dist/assets/vue-03b265aa.js +0 -6096
  216. package/plugins/@vcmap-show-case/theme-changer/README.md +0 -23
  217. package/plugins/@vcmap-show-case/theme-changer/config.json +0 -69
  218. package/plugins/@vcmap-show-case/theme-changer/package.json +0 -11
  219. package/plugins/@vcmap-show-case/theme-changer/src/ThemeChangerComponent.vue +0 -120
  220. package/plugins/@vcmap-show-case/theme-changer/src/index.js +0 -108
  221. package/src/application/markdownHelper.d.ts +0 -12
  222. package/src/application/markdownHelper.js +0 -70
  223. package/src/components/lists/VcsListItem.vue.d.ts +0 -27
  224. package/src/components/lists/VcsTreeviewLeaf.vue +0 -83
  225. package/src/components/notification/VcsTooltip.vue +0 -156
  226. package/src/components/notification/VcsTooltip.vue.d.ts +0 -27
  227. package/src/featureInfo/MarkdownComponent.vue +0 -16
  228. package/src/featureInfo/MarkdownComponent.vue.d.ts +0 -7
  229. package/src/styles/_theming.scss +0 -73
  230. package/src/styles/settings.scss +0 -6
  231. package/src/styles/shades.scss +0 -4
  232. package/src/styles/variables.scss +0 -140
  233. package/src/styles/vcsFont.scss +0 -2
  234. package/src/styles/vcsGrid.scss +0 -3
  235. /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.value.primaryColor ?? getDefaultPrimaryColor(app),
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.value.primaryColor ?? getDefaultPrimaryColor(app);
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
- .v-snack {
67
- :deep(.v-snack__content) {
68
- display: grid;
69
- gap: 8px 4px;
70
- grid-template-columns: 20px auto;
71
- .v-icon {
72
- grid-row-start: 1;
73
- grid-row-end: 3;
74
- align-self: start;
75
- font-size: 17px;
76
- }
77
- }
78
- :deep(.v-snack__action) {
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 class="ma-2 d-flex flex-row align-center" v-if="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
- <div class="px-2 d-flex align-center" :title="$t('search.select')">
9
- <span v-html="marked" />
10
- </div>
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 { VIcon, VListItem } from 'vuetify/components';
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--text">$2</span></span>',
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 px-0"
11
- v-for="(item, index) in results"
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 highlightedRef = ref(-1);
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 (highlightedRef.value >= 0) {
51
- if (
52
- feature &&
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
- highlightedRef.value = -1;
62
+ selectedRef.value = [];
58
63
  } else if (feature) {
59
- highlightedRef.value = props.results.findIndex(
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 highlightedRef.value;
79
+ return selectedRef.value;
74
80
  },
75
81
  set(value) {
76
- highlightedRef.value = value;
77
- if (value >= 0) {
78
- const item = props.results[value];
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
- highlighted: import("vue").WritableComputedRef<number>;
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-input) {
30
- fieldset {
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.value.favicon === 'string') {
48
- setFavicon(uiConfig.config.value.favicon);
47
+ if (typeof uiConfig.config.favicon === 'string') {
48
+ setFavicon(uiConfig.config.favicon);
49
49
  }
50
50
 
51
- if (typeof uiConfig.config.value.headerTitle === 'string') {
52
- setHeaderTitle(uiConfig.config.value.headerTitle);
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.value.favicon === 'string') {
57
- setFavicon(uiConfig.config.value.favicon);
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.value.headerTitle === 'string') {
65
- setHeaderTitle(uiConfig.config.value.headerTitle);
64
+ if (typeof uiConfig.config.headerTitle === 'string') {
65
+ setHeaderTitle(uiConfig.config.headerTitle);
66
66
  } else {
67
67
  setHeaderTitle(defaultHeaderTitle);
68
68
  }
@@ -1,5 +1,3 @@
1
- @import 'vcsFont.scss';
2
-
3
1
  .v-application,
4
2
  .v-overlay-container {
5
3
  h1,
@@ -1,8 +1,4 @@
1
1
  @import './typography';
2
- @import './shades';
3
- @import './variables';
4
- @import './vcsFont';
5
- @import './vcsGrid';
6
2
  @import './vcsList';
7
3
 
8
4
  /* latin-ext */
@@ -3,6 +3,6 @@
3
3
 
4
4
  .vcsList {
5
5
  .v-list-item--density-compact.v-list-item--one-line {
6
- min-height: var(--v-vcs-item-height);
6
+ min-height: calc(var(--v-vcs-font-size) * 2 + 6px);
7
7
  }
8
8
  }