@vcmap/ui 6.0.0-rc.2 → 6.0.0-rc.5

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 (278) hide show
  1. package/build/build.js +40 -60
  2. package/build/buildHelpers.js +62 -19
  3. package/build/bundle.js +1 -1
  4. package/build/info/conf.json +1 -1
  5. package/build/info/publish.js +25 -31
  6. package/build/lintTypes.js +5 -0
  7. package/config/base.config.json +2 -1
  8. package/config/dev.config.json +7 -1
  9. package/config/projects.config.json +2 -1
  10. package/config/splashscreen.config.json +45 -0
  11. package/config/www.config.json +25 -22
  12. package/dist/.htaccess +7 -0
  13. package/dist/assets/@mdi/font/README.md +25 -0
  14. package/dist/assets/@mdi/font/css/materialdesignicons.min-680621ca.css +3 -0
  15. package/dist/assets/@mdi/font/css/materialdesignicons.min.css.map +16 -0
  16. package/dist/assets/@mdi/font/fonts/materialdesignicons-webfont.woff2 +0 -0
  17. package/dist/assets/{cesium.0b750d.js → cesium-126f111a.js} +272 -385
  18. package/dist/assets/cesium.js +1 -1
  19. package/dist/assets/{core.cbf44a.js → core-1c8b8674.js} +2015 -2019
  20. package/dist/assets/core.js +1 -1
  21. package/dist/assets/{ol.86e93c.js → ol-27f9b3f3.js} +42521 -44394
  22. package/dist/assets/ol.js +1 -1
  23. package/dist/assets/ui-7214428e.css +1 -0
  24. package/dist/assets/{ui.7c276c.js → ui-7214428e.js} +13968 -13907
  25. package/dist/assets/ui.js +1 -1
  26. package/dist/assets/vue-c78a5f76.js +6083 -0
  27. package/dist/assets/vue.js +1 -1
  28. package/dist/assets/{vuetify.4d18fe.css → vuetify-88a2fabe.css} +2 -2
  29. package/dist/assets/{vuetify.4d18fe.js → vuetify-88a2fabe.js} +7793 -7940
  30. package/dist/assets/vuetify.js +1 -1
  31. package/dist/index.html +11 -10
  32. package/index.d.ts +11 -11
  33. package/index.html +5 -5
  34. package/index.js +9 -7
  35. package/lib/olLib.js +84 -23
  36. package/package.json +19 -19
  37. package/plugins/@vcmap-show-case/flight-component-example/src/FlightExample.vue +41 -1
  38. package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +71 -32
  39. package/plugins/@vcmap-show-case/form-inputs-example/src/exampleActions.js +7 -11
  40. package/plugins/@vcmap-show-case/form-inputs-example/src/index.js +2 -2
  41. package/plugins/@vcmap-show-case/list-example/src/ListExample.vue +21 -8
  42. package/plugins/@vcmap-show-case/project-selector/src/ModulesListComponent.vue +18 -11
  43. package/plugins/@vcmap-show-case/search-example/src/index.js +1 -0
  44. package/plugins/@vcmap-show-case/search-example/src/searchImpl.js +35 -5
  45. package/plugins/@vcmap-show-case/style-input-example/src/StyleExample.vue +29 -90
  46. package/plugins/@vcmap-show-case/toolbox-example/src/index.js +2 -1
  47. package/plugins/package.json +3 -23
  48. package/public/assets/@mdi/font/README.md +25 -0
  49. package/public/assets/@mdi/font/css/materialdesignicons.min.css +2 -2
  50. package/public/assets/@mdi/font/css/materialdesignicons.min.css.map +16 -0
  51. package/public/assets/@mdi/font/fonts/materialdesignicons-webfont.woff2 +0 -0
  52. package/src/actions/StyleSelector.vue +1 -1
  53. package/src/actions/actionHelper.js +33 -22
  54. package/src/actions/flightActions.js +5 -5
  55. package/src/actions/listActions.d.ts +4 -11
  56. package/src/actions/listActions.js +6 -22
  57. package/src/actions/stateRefAction.js +2 -2
  58. package/src/application/VcsApp.vue +147 -57
  59. package/src/application/VcsApp.vue.d.ts +298 -4
  60. package/src/application/VcsAttributions.vue +2 -13
  61. package/src/application/VcsAttributionsFooter.vue +10 -11
  62. package/src/application/VcsContainer.vue +26 -9
  63. package/src/application/VcsContainer.vue.d.ts +237 -0
  64. package/src/application/VcsMainMap.vue +7 -7
  65. package/src/application/VcsMainMap.vue.d.ts +2 -2
  66. package/src/application/VcsNavbar.vue +5 -1
  67. package/src/application/VcsPositionDisplay.vue +8 -23
  68. package/src/application/VcsPositionDisplay.vue.d.ts +0 -1
  69. package/src/application/VcsSettings.vue +10 -17
  70. package/src/application/VcsSplashScreen.vue +21 -40
  71. package/src/application/VcsSplashScreen.vue.d.ts +0 -2
  72. package/src/application/VcsTextPage.vue +12 -43
  73. package/src/application/VcsTextPage.vue.d.ts +4 -8
  74. package/src/application/VcsTextPageFooter.vue +23 -40
  75. package/src/components/buttons/VcsActionButtonList.vue +59 -3
  76. package/src/components/buttons/VcsActionButtonList.vue.d.ts +28 -0
  77. package/src/components/extent/VcsExtentEditor.vue +1 -1
  78. package/src/components/flight/VcsFlightAnchorsComponent.vue +63 -36
  79. package/src/components/flight/VcsFlightComponent.vue +16 -21
  80. package/src/components/flight/VcsFlightPlayer.vue +27 -5
  81. package/src/components/form-inputs-controls/VcsCheckbox.vue +9 -5
  82. package/src/components/form-inputs-controls/VcsChipArrayInput.vue +15 -13
  83. package/src/components/form-inputs-controls/VcsChipArrayInput.vue.d.ts +3 -4
  84. package/src/components/form-inputs-controls/VcsCoordinate.vue +17 -4
  85. package/src/components/form-inputs-controls/VcsCoordinate.vue.d.ts +5 -2
  86. package/src/components/form-inputs-controls/VcsDatePicker.vue +34 -60
  87. package/src/components/form-inputs-controls/VcsDatePicker.vue.d.ts +1 -63
  88. package/src/components/form-inputs-controls/VcsFileInput.vue +17 -18
  89. package/src/components/form-inputs-controls/VcsFileInput.vue.d.ts +1 -0
  90. package/src/components/form-inputs-controls/VcsLabel.vue +1 -1
  91. package/src/components/form-inputs-controls/VcsRadio.vue +17 -3
  92. package/src/components/form-inputs-controls/VcsRadio.vue.d.ts +1 -0
  93. package/src/components/form-inputs-controls/VcsSelect.vue +40 -31
  94. package/src/components/form-inputs-controls/VcsSelect.vue.d.ts +5 -2
  95. package/src/components/form-inputs-controls/VcsSlider.vue +13 -1
  96. package/src/components/form-inputs-controls/VcsSlider.vue.d.ts +1 -0
  97. package/src/components/form-inputs-controls/VcsTextArea.vue +27 -26
  98. package/src/components/form-inputs-controls/VcsTextArea.vue.d.ts +1 -0
  99. package/src/components/form-inputs-controls/VcsTextField.vue +20 -4
  100. package/src/components/form-inputs-controls/VcsTextField.vue.d.ts +9 -0
  101. package/src/components/form-inputs-controls/VcsWizardStep.vue +3 -6
  102. package/src/components/form-inputs-controls/vcsTextField.scss +9 -12
  103. package/src/components/form-output/VcsFormattedNumber.vue +21 -5
  104. package/src/components/form-output/VcsFormattedNumber.vue.d.ts +9 -0
  105. package/src/components/form-output/VcsMarkdown.vue +15 -12
  106. package/src/components/form-output/VcsMarkdown.vue.d.ts +1 -0
  107. package/src/components/form-output/markdownHelper.d.ts +30 -0
  108. package/src/components/form-output/markdownHelper.js +398 -0
  109. package/src/components/import/VcsFileDrop.vue +8 -5
  110. package/src/components/import/VcsImportComponent.vue +4 -3
  111. package/src/components/import/VcsImportComponent.vue.d.ts +1 -2
  112. package/src/components/lists/VcsActionList.vue +11 -7
  113. package/src/components/lists/VcsList.vue +30 -52
  114. package/src/components/lists/VcsList.vue.d.ts +14 -59
  115. package/src/components/lists/{VcsListItem.vue → VcsListItemComponent.vue} +68 -22
  116. package/src/components/lists/VcsListItemComponent.vue.d.ts +69 -0
  117. package/src/components/lists/VcsTreeview.vue +43 -16
  118. package/src/components/lists/VcsTreeview.vue.d.ts +14 -3
  119. package/src/components/lists/VcsTreeviewLeaf.vue +15 -6
  120. package/src/components/lists/VcsTreeviewSearchbar.vue +2 -2
  121. package/src/components/notification/VcsHelp.vue +1 -1
  122. package/src/components/notification/VcsHelp.vue.d.ts +3 -2
  123. package/src/components/section/VcsExpansionPanel.vue +101 -0
  124. package/src/components/section/VcsExpansionPanel.vue.d.ts +19 -0
  125. package/src/components/{form-inputs-controls → section}/VcsFormSection.vue +10 -4
  126. package/src/components/{form-inputs-controls → section}/VcsFormSection.vue.d.ts +1 -2
  127. package/src/components/style/MenuWrapper.vue +24 -26
  128. package/src/components/style/MenuWrapper.vue.d.ts +4 -4
  129. package/src/components/style/VcsFillMenu.vue +9 -16
  130. package/src/components/style/VcsFillMenu.vue.d.ts +0 -18
  131. package/src/components/style/VcsFillSelector.vue +13 -16
  132. package/src/components/style/VcsImageMenu.vue +8 -25
  133. package/src/components/style/VcsImageMenu.vue.d.ts +0 -27
  134. package/src/components/style/VcsImageSelector.vue +102 -167
  135. package/src/components/style/VcsImageSelector.vue.d.ts +15 -15
  136. package/src/components/style/VcsStrokeMenu.vue +8 -15
  137. package/src/components/style/VcsStrokeMenu.vue.d.ts +0 -18
  138. package/src/components/style/VcsStrokeSelector.vue +11 -18
  139. package/src/components/style/VcsTextMenu.vue +9 -12
  140. package/src/components/style/VcsTextMenu.vue.d.ts +0 -9
  141. package/src/components/style/VcsTextSelector.vue +79 -95
  142. package/src/components/style/VcsTextSelector.vue.d.ts +20 -22
  143. package/src/components/style/VcsVectorStyleComponent.vue +8 -19
  144. package/src/components/style/VcsVectorStyleComponent.vue.d.ts +1 -1
  145. package/src/components/style/composables.d.ts +0 -14
  146. package/src/components/style/composables.js +0 -49
  147. package/src/components/tables/VcsDataTable.vue +28 -22
  148. package/src/components/tables/VcsTable.vue +45 -62
  149. package/src/components/tables/VcsTable.vue.d.ts +30 -17
  150. package/src/components/tables/VcsTableCell.vue +72 -0
  151. package/src/components/tables/VcsTableCell.vue.d.ts +13 -0
  152. package/src/components/vector-properties/VcsFeatureEditingWindow.vue +43 -9
  153. package/src/components/vector-properties/VcsFeatureTransforms.vue +5 -0
  154. package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +1 -1
  155. package/src/components/viewpoint/VcsViewpointComponent.vue +23 -10
  156. package/src/components/viewpoint/VcsViewpointEditor.vue +2 -1
  157. package/src/contentTree/LayerTree.vue +9 -27
  158. package/src/contentTree/LayerTree.vue.d.ts +1 -1
  159. package/src/contentTree/contentTreeCollection.d.ts +1 -0
  160. package/src/contentTree/contentTreeCollection.js +45 -11
  161. package/src/contentTree/contentTreeItem.d.ts +2 -2
  162. package/src/contentTree/contentTreeItem.js +7 -7
  163. package/src/featureInfo/BalloonComponent.vue +14 -15
  164. package/src/featureInfo/MarkdownBalloonComponent.vue +4 -2
  165. package/src/featureInfo/MarkdownBalloonComponent.vue.d.ts +2 -2
  166. package/src/featureInfo/abstractFeatureInfoView.d.ts +6 -0
  167. package/src/featureInfo/abstractFeatureInfoView.js +15 -7
  168. package/src/featureInfo/featureInfo.d.ts +5 -5
  169. package/src/featureInfo/featureInfo.js +59 -41
  170. package/src/featureInfo/iframeFeatureInfoView.d.ts +8 -2
  171. package/src/featureInfo/iframeFeatureInfoView.js +15 -5
  172. package/src/featureInfo/markdownBalloonFeatureInfoView.d.ts +1 -1
  173. package/src/featureInfo/markdownBalloonFeatureInfoView.js +5 -5
  174. package/src/featureInfo/markdownFeatureInfoView.d.ts +1 -1
  175. package/src/featureInfo/markdownFeatureInfoView.js +9 -11
  176. package/src/featureInfo/tableFeatureInfoView.js +13 -4
  177. package/src/init.d.ts +5 -38
  178. package/src/init.js +19 -18
  179. package/src/legend/StyleLegendItem.vue +4 -9
  180. package/src/legend/VcsLegend.vue +28 -54
  181. package/src/manager/buttonManager.js +4 -4
  182. package/src/manager/collectionManager/CollectionComponent.vue +17 -42
  183. package/src/manager/collectionManager/CollectionComponent.vue.d.ts +4 -2
  184. package/src/manager/collectionManager/CollectionComponentContent.vue +7 -6
  185. package/src/manager/collectionManager/CollectionComponentContent.vue.d.ts +3 -1
  186. package/src/manager/collectionManager/CollectionComponentList.vue +11 -9
  187. package/src/manager/collectionManager/CollectionComponentList.vue.d.ts +6 -4
  188. package/src/manager/collectionManager/CollectionComponentProvider.vue +1 -1
  189. package/src/manager/collectionManager/CollectionComponentStandalone.vue +3 -2
  190. package/src/manager/collectionManager/CollectionManager.vue +1 -1
  191. package/src/manager/collectionManager/collectionComponentClass.d.ts +1 -1
  192. package/src/manager/collectionManager/collectionComponentClass.js +7 -10
  193. package/src/manager/collectionManager/collectionManager.js +10 -10
  194. package/src/manager/collectionManager/editorCollectionComponentClass.js +6 -5
  195. package/src/manager/contextMenu/contextMenuManager.js +2 -2
  196. package/src/manager/navbarManager.js +2 -2
  197. package/src/manager/panel/PanelComponent.vue +2 -9
  198. package/src/manager/panel/PanelManagerComponent.vue +7 -3
  199. package/src/manager/panel/panelHelper.js +3 -3
  200. package/src/manager/panel/panelManager.d.ts +9 -1
  201. package/src/manager/panel/panelManager.js +18 -6
  202. package/src/manager/toolbox/GroupToolboxComponent.vue +8 -4
  203. package/src/manager/toolbox/GroupToolboxComponent.vue.d.ts +1 -0
  204. package/src/manager/toolbox/SelectToolboxComponent.vue +7 -4
  205. package/src/manager/toolbox/SelectToolboxComponent.vue.d.ts +1 -0
  206. package/src/manager/toolbox/ToolboxManager.vue +9 -6
  207. package/src/manager/toolbox/ToolboxManager.vue.d.ts +1 -0
  208. package/src/manager/toolbox/toolboxManager.js +10 -10
  209. package/src/manager/window/WindowComponent.vue +12 -8
  210. package/src/manager/window/WindowComponentHeader.vue +29 -8
  211. package/src/manager/window/WindowComponentHeader.vue.d.ts +2 -0
  212. package/src/manager/window/WindowManager.vue +2 -2
  213. package/src/manager/window/windowManager.d.ts +2 -2
  214. package/src/manager/window/windowManager.js +4 -4
  215. package/src/navigation/MapNavigation.vue +20 -0
  216. package/src/navigation/locatorHelper.js +1 -1
  217. package/src/navigation/overviewMap.js +1 -1
  218. package/src/notifier/NotifierComponent.vue +18 -15
  219. package/src/search/ResultItem.vue +18 -6
  220. package/src/search/ResultsComponent.vue +31 -20
  221. package/src/search/ResultsComponent.vue.d.ts +2 -1
  222. package/src/search/SearchComponent.vue +8 -14
  223. package/src/search/SearchComponent.vue.d.ts +1 -0
  224. package/src/search/search.js +2 -2
  225. package/src/siteConfig.js +9 -9
  226. package/src/state.js +4 -4
  227. package/src/styles/_typography.scss +0 -2
  228. package/src/styles/main.scss +0 -4
  229. package/src/uiConfig.d.ts +300 -5
  230. package/src/uiConfig.js +28 -16
  231. package/src/vcsUiApp.d.ts +21 -17
  232. package/src/vcsUiApp.js +11 -10
  233. package/src/vuePlugins/vuetify.d.ts +2 -0
  234. package/src/vuePlugins/vuetify.js +14 -0
  235. package/dist/assets/@mdi/font/css/materialdesignicons.css.map +0 -16
  236. package/dist/assets/@mdi/font/css/materialdesignicons.min.e3f476.css +0 -3
  237. package/dist/assets/index-8eGauqjA.js +0 -1
  238. package/dist/assets/ui.7c276c.css +0 -1
  239. package/dist/assets/vue.a3cd64.js +0 -6096
  240. package/public/assets/@mdi/font/css/materialdesignicons.css.map +0 -16
  241. package/src/application/VcsCustomScreen.vue +0 -45
  242. package/src/application/VcsCustomScreen.vue.d.ts +0 -15
  243. package/src/application/markdownHelper.d.ts +0 -12
  244. package/src/application/markdownHelper.js +0 -70
  245. package/src/components/lists/VcsListItem.vue.d.ts +0 -21
  246. package/src/components/notification/VcsTooltip.vue +0 -156
  247. package/src/components/notification/VcsTooltip.vue.d.ts +0 -27
  248. package/src/featureInfo/MarkdownComponent.vue +0 -16
  249. package/src/featureInfo/MarkdownComponent.vue.d.ts +0 -7
  250. package/src/styles/_theming.scss +0 -73
  251. package/src/styles/settings.scss +0 -6
  252. package/src/styles/shades.scss +0 -4
  253. package/src/styles/variables.scss +0 -140
  254. package/src/styles/vcsFont.scss +0 -2
  255. package/src/styles/vcsGrid.scss +0 -3
  256. /package/dist/assets/{favicon-128.4c4ce5.png → favicon-128-4c4ce5df.png} +0 -0
  257. /package/dist/assets/{favicon-180.5b99c0.png → favicon-180-4c4ce5df.png} +0 -0
  258. /package/dist/assets/{favicon-192.0e205e.png → favicon-192-4c4ce5df.png} +0 -0
  259. /package/dist/assets/{favicon-32.6b9add.png → favicon-32-4c4ce5df.png} +0 -0
  260. /package/dist/assets/{favicon.d5ec97.svg → favicon-4c4ce5df.svg} +0 -0
  261. /package/dist/assets/font/{TitilliumWeb-Regular.9ca076.woff2 → TitilliumWeb-Regular-9ca076be.woff2} +0 -0
  262. /package/dist/assets/style/{icon-marker.70960f.png → icon-marker-70960f05.png} +0 -0
  263. /package/dist/assets/style/{icon-marker-blue.534e37.png → icon-marker-blue-534e374b.png} +0 -0
  264. /package/dist/assets/style/{icon-marker-green.0b6a92.png → icon-marker-green-0b6a92bc.png} +0 -0
  265. /package/dist/assets/style/{icon-marker-o.036477.png → icon-marker-o-036477fa.png} +0 -0
  266. /package/dist/assets/style/{icon-marker-o-blue.7b6d62.png → icon-marker-o-blue-7b6d6279.png} +0 -0
  267. /package/dist/assets/style/{icon-marker-o-green.c863c0.png → icon-marker-o-green-c863c0fa.png} +0 -0
  268. /package/dist/assets/style/{icon-marker-o-red.93ff58.png → icon-marker-o-red-93ff58df.png} +0 -0
  269. /package/dist/assets/style/{icon-marker-red.313d03.png → icon-marker-red-313d03e8.png} +0 -0
  270. /package/dist/assets/style/{icon-pin.b7ce77.png → icon-pin-b7ce771e.png} +0 -0
  271. /package/dist/assets/style/{icon-pin-blue.7be369.png → icon-pin-blue-7be369a3.png} +0 -0
  272. /package/dist/assets/style/{icon-pin-green.cbb935.png → icon-pin-green-cbb935fe.png} +0 -0
  273. /package/dist/assets/style/{icon-pin-red.3f25b2.png → icon-pin-red-3f25b245.png} +0 -0
  274. /package/public/assets/{favicon-128.png → favicon-128-4c4ce5df.png} +0 -0
  275. /package/public/assets/{favicon-180.png → favicon-180-4c4ce5df.png} +0 -0
  276. /package/public/assets/{favicon-192.png → favicon-192-4c4ce5df.png} +0 -0
  277. /package/public/assets/{favicon-32.png → favicon-32-4c4ce5df.png} +0 -0
  278. /package/public/assets/{favicon.svg → favicon-4c4ce5df.svg} +0 -0
@@ -7,7 +7,7 @@
7
7
  :menu-props="{ origin: 'overlap' }"
8
8
  :item-title="(item) => $st(getTitle(item))"
9
9
  color="primary"
10
- class="primary--placeholder"
10
+ class="primary--placeholder vcs-select"
11
11
  :class="{
12
12
  'py-1': !paddingProvided,
13
13
  }"
@@ -23,8 +23,8 @@
23
23
  </span>
24
24
  </template>
25
25
 
26
- <template #append-inner>
27
- <slot name="append-inner"></slot>
26
+ <template #append-inner="scope">
27
+ <slot name="append-inner" v-bind="scope ?? {}"></slot>
28
28
  <v-tooltip
29
29
  :activator="selectFieldRef"
30
30
  v-if="tooltip && !errorTooltipRef"
@@ -32,37 +32,38 @@
32
32
  :location="tooltipPosition"
33
33
  />
34
34
  </template>
35
- <template
36
- v-for="slot of Object.keys($slots).filter(
37
- (name) => name !== 'append-inner',
38
- )"
39
- #[slot]="scope"
40
- >
41
- <slot :name="slot" v-bind="scope" />
35
+ <template v-for="slot of forwardSlots" #[slot]="scope">
36
+ <slot :name="slot" v-bind="scope ?? {}" />
42
37
  </template>
43
- <template #message="{ message }">
38
+ <template #message="scope">
44
39
  <v-tooltip
45
40
  :activator="selectFieldRef"
46
41
  ref="errorTooltipRef"
47
- v-if="message"
48
- :text="$st(message)"
42
+ v-if="scope?.message"
43
+ :text="$st(scope?.message)"
49
44
  content-class="bg-error"
50
45
  :location="tooltipPosition"
51
46
  />
47
+ <slot name="message" v-bind="scope ?? {}"></slot>
52
48
  </template>
53
- <template #item="{ props }">
54
- <v-list-item density="compact" v-bind="props" role="option">
55
- <template #prepend="scope" v-if="multiple">
56
- <VcsCheckbox v-model="scope.isSelected" class="py-0"></VcsCheckbox>
57
- </template>
58
- </v-list-item>
49
+ <template #item="itemScope">
50
+ <slot name="item" v-bind="itemScope ?? {}">
51
+ <v-list-item density="compact" v-bind="itemScope.props" role="option">
52
+ <template #prepend="prependScope" v-if="multiple">
53
+ <VcsCheckbox
54
+ v-model="prependScope.isSelected"
55
+ class="py-0"
56
+ ></VcsCheckbox>
57
+ </template>
58
+ </v-list-item>
59
+ </slot>
59
60
  </template>
60
61
  </v-select>
61
62
  </template>
62
63
  <style lang="scss" scoped>
63
64
  :deep(.v-field) {
64
- --v-field-padding-start: 8px;
65
- --v-field-padding-end: 8px;
65
+ --v-field-padding-start: 4px;
66
+ --v-field-padding-end: 4px;
66
67
  }
67
68
  :deep(.v-field__input) {
68
69
  flex-wrap: unset;
@@ -95,12 +96,12 @@
95
96
  border-radius: 0;
96
97
  }
97
98
  .v-field__outline {
98
- padding-left: 8px;
99
- padding-right: 8px;
99
+ padding-left: 4px;
100
+ padding-right: 4px;
100
101
  }
101
102
  .v-field__loader {
102
- padding-left: 8px;
103
- padding-right: 8px;
103
+ padding-left: 3px;
104
+ padding-right: 3px;
104
105
  }
105
106
  .v-field__outline *::before {
106
107
  border-width: 0;
@@ -111,16 +112,21 @@
111
112
  margin-left: -4px;
112
113
  }
113
114
  }
115
+ :deep(.v-field--appended) {
116
+ padding-inline-end: 4px;
117
+ .v-field__append-inner {
118
+ i {
119
+ margin-left: 0;
120
+ }
121
+ }
122
+ }
114
123
  .primary--placeholder {
115
124
  :deep(input::placeholder) {
116
125
  color: rgb(var(--v-theme-primary));
117
126
  opacity: 1;
118
- // line-height: unset !important;
127
+ font-style: italic !important;
119
128
  padding: 0 3px 0 0;
120
129
  }
121
- :deep(input::-moz-placeholder) {
122
- font-style: italic;
123
- }
124
130
  }
125
131
  // remove details
126
132
  :deep(.v-input__details) {
@@ -135,7 +141,7 @@
135
141
  <script>
136
142
  import { VSelect, VTooltip, VListItem } from 'vuetify/components';
137
143
  import { computed, ref } from 'vue';
138
- import { usePadding } from '../composables.js';
144
+ import { useForwardSlots, usePadding } from '../composables.js';
139
145
  import VcsCheckbox from './VcsCheckbox.vue';
140
146
  import { useProxiedComplexModel } from '../modelHelper.js';
141
147
 
@@ -183,7 +189,8 @@
183
189
  default: undefined,
184
190
  },
185
191
  },
186
- setup(props, { attrs, emit }) {
192
+ emits: ['update:modelValue'],
193
+ setup(props, { attrs, slots, emit }) {
187
194
  const selectFieldRef = ref();
188
195
  const errorTooltipRef = ref();
189
196
  const localModelValue = useProxiedComplexModel(props, 'modelValue', emit);
@@ -206,8 +213,10 @@
206
213
  return props.multiple;
207
214
  });
208
215
  const paddingProvided = usePadding(attrs);
216
+ const forwardSlots = useForwardSlots(slots, ['append-inner', 'message']);
209
217
 
210
218
  return {
219
+ forwardSlots,
211
220
  localModelValue,
212
221
  additionalItems,
213
222
  isMultiple,
@@ -20,6 +20,7 @@ declare const _default: import("vue").DefineComponent<{
20
20
  default: undefined;
21
21
  };
22
22
  }, {
23
+ forwardSlots: import("vue").ComputedRef<string[]>;
23
24
  localModelValue: import("vue").Ref<any>;
24
25
  additionalItems: import("vue").ComputedRef<number>;
25
26
  isMultiple: import("vue").ComputedRef<boolean>;
@@ -27,7 +28,7 @@ declare const _default: import("vue").DefineComponent<{
27
28
  selectFieldRef: import("vue").Ref<any>;
28
29
  errorTooltipRef: import("vue").Ref<any>;
29
30
  getTitle: (item: any) => any;
30
- }, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
31
+ }, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
31
32
  multiple: {
32
33
  type: BooleanConstructor;
33
34
  default: boolean;
@@ -48,7 +49,9 @@ declare const _default: import("vue").DefineComponent<{
48
49
  type: FunctionConstructor;
49
50
  default: undefined;
50
51
  };
51
- }>>, {
52
+ }>> & {
53
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
54
+ }, {
52
55
  modelValue: string | number | boolean | unknown[];
53
56
  multiple: boolean;
54
57
  tooltip: string;
@@ -2,8 +2,9 @@
2
2
  <v-slider
3
3
  :class="{
4
4
  'py-1': !paddingProvided,
5
+ 'remove-append-margin': !hasAppendSlot,
5
6
  }"
6
- class="vcs-slider"
7
+ class="vcs-slider mx-1"
7
8
  hide-details
8
9
  ref="sliderRef"
9
10
  :track-color="'base-darken-1'"
@@ -33,6 +34,9 @@
33
34
  .v-input--horizontal :deep(.v-input__control) {
34
35
  min-height: calc(var(--v-vcs-item-height) - 8px);
35
36
  }
37
+ .v-input--horizontal.v-slider--has-labels {
38
+ margin-bottom: var(--v-vcs-font-size);
39
+ }
36
40
  .v-slider.v-input--horizontal {
37
41
  :deep(.v-slider-track__fill) {
38
42
  height: 2px;
@@ -63,6 +67,11 @@
63
67
  :deep(.v-slider-track__tick) {
64
68
  background-color: rgb(var(--v-theme-base-darken-1));
65
69
  }
70
+ .remove-append-margin {
71
+ :deep(.v-input__append) {
72
+ margin-inline-start: 0px;
73
+ }
74
+ }
66
75
  </style>
67
76
  <script>
68
77
  import { computed, ref } from 'vue';
@@ -106,6 +115,9 @@
106
115
  const forwardSlots = useForwardSlots(slots, ['append']);
107
116
  const sliderRef = ref();
108
117
  return {
118
+ hasAppendSlot: computed(() => {
119
+ return !!slots.append;
120
+ }),
109
121
  forwardSlots,
110
122
  sliderRef,
111
123
  thumbSize,
@@ -8,6 +8,7 @@ declare const _default: import("vue").DefineComponent<{
8
8
  default: string;
9
9
  };
10
10
  }, {
11
+ hasAppendSlot: import("vue").ComputedRef<boolean>;
11
12
  forwardSlots: import("vue").ComputedRef<string[]>;
12
13
  sliderRef: import("vue").Ref<any>;
13
14
  thumbSize: import("vue").ComputedRef<number>;
@@ -4,27 +4,29 @@
4
4
  variant="outlined"
5
5
  clear-icon="$close"
6
6
  :rows="$attrs.rows"
7
- class="primary--placeholder"
7
+ color="primary"
8
+ class="primary--placeholder vcs-text-area"
8
9
  :class="{
9
10
  'py-1': !paddingProvided,
10
11
  }"
11
- v-bind="{ ...$attrs }"
12
+ v-bind="$attrs"
12
13
  >
13
- <template v-for="slot of Object.keys($slots)" #[slot]="scope">
14
- <slot :name="slot" v-bind="scope" />
14
+ <template v-for="slot of forwardSlots" #[slot]="scope">
15
+ <slot :name="slot" v-bind="scope ?? {}" />
15
16
  </template>
16
- <template #message="{ message }">
17
+ <template #message="scope">
17
18
  <v-tooltip
18
19
  ref="errorTooltipRef"
19
20
  :activator="textAreaRef"
20
- v-if="message"
21
- :text="$st(message)"
21
+ v-if="scope?.message"
22
+ :text="$st(scope?.message)"
22
23
  content-class="bg-error"
23
24
  :location="tooltipPosition"
24
25
  />
26
+ <slot name="message" v-bind="scope ?? {}"></slot>
25
27
  </template>
26
- <template #append-inner>
27
- <slot name="append-inner"></slot>
28
+ <template #append-inner="scope">
29
+ <slot name="append-inner" v-bind="scope ?? {}"></slot>
28
30
  <v-tooltip
29
31
  v-if="tooltip && !errorTooltipRef"
30
32
  :activator="textAreaRef"
@@ -44,12 +46,12 @@
44
46
  }
45
47
 
46
48
  :deep(.v-field) {
47
- --v-field-padding-start: 8px;
48
- --v-field-padding-end: 8px;
49
- padding-left: 8px;
50
- padding-right: 8px;
49
+ --v-field-padding-start: 4px;
50
+ --v-field-padding-end: 4px;
51
+ padding-left: 4px;
52
+ padding-right: 4px;
51
53
  .v-field__clearable {
52
- margin: 4px -4px 0px 0px;
54
+ margin: 2px -2px 0px 0px;
53
55
  }
54
56
  }
55
57
 
@@ -86,10 +88,13 @@
86
88
  .v-field__outline__end {
87
89
  border-width: 0 0 1px 0 !important;
88
90
  border-radius: 0;
89
- margin-right: 8px;
90
- margin-left: -4px;
91
+ margin-right: 4px;
92
+ margin-left: -8px;
93
+ }
94
+ .v-field__loader {
95
+ padding-left: 3px;
96
+ padding-right: 3px;
91
97
  }
92
-
93
98
  .v-field__outline *::before {
94
99
  border-width: 0;
95
100
  border-radius: 0;
@@ -116,13 +121,10 @@
116
121
  .primary--placeholder {
117
122
  :deep(textarea::placeholder) {
118
123
  color: rgb(var(--v-theme-primary));
119
- font-style: italic;
124
+ font-style: italic !important;
120
125
  opacity: 1;
121
126
  padding: 0 3px 0 0;
122
127
  }
123
- :deep(textarea::-moz-placeholder) {
124
- font-style: initial;
125
- }
126
128
  }
127
129
 
128
130
  // remove details
@@ -131,9 +133,6 @@
131
133
  }
132
134
 
133
135
  // Progress Bar
134
- :deep(.v-progress-linear) {
135
- color: rgb(var(--v-theme-primary));
136
- }
137
136
  :deep(.v-field__loader) {
138
137
  top: calc(100% - 2px);
139
138
  }
@@ -142,7 +141,7 @@
142
141
  <script>
143
142
  import { ref } from 'vue';
144
143
  import { VTextarea, VTooltip } from 'vuetify/components';
145
- import { usePadding } from '../composables.js';
144
+ import { useForwardSlots, usePadding } from '../composables.js';
146
145
 
147
146
  /**
148
147
  * @description extends API of {@link https://vuetifyjs.com/en/api/v-textarea/|vuetify v-textarea}.
@@ -169,13 +168,15 @@
169
168
  default: 'right',
170
169
  },
171
170
  },
172
- setup(_p, { attrs }) {
171
+ setup(_p, { attrs, slots }) {
173
172
  const textAreaRef = ref();
174
173
  const errorTooltipRef = ref();
175
174
 
176
175
  const paddingProvided = usePadding(attrs);
176
+ const forwardSlots = useForwardSlots(slots, ['append-inner', 'message']);
177
177
 
178
178
  return {
179
+ forwardSlots,
179
180
  textAreaRef,
180
181
  errorTooltipRef,
181
182
  paddingProvided,
@@ -8,6 +8,7 @@ declare const _default: import("vue").DefineComponent<{
8
8
  default: string;
9
9
  };
10
10
  }, {
11
+ forwardSlots: import("vue").ComputedRef<string[]>;
11
12
  textAreaRef: import("vue").Ref<any>;
12
13
  errorTooltipRef: import("vue").Ref<any>;
13
14
  paddingProvided: import("vue").ComputedRef<boolean>;
@@ -6,11 +6,13 @@
6
6
  :hide-details="false"
7
7
  :rules="rules"
8
8
  :type="type"
9
+ color="primary"
9
10
  class="vcs-text-field primary--placeholder"
10
11
  :class="{
11
12
  'py-1': !paddingProvided,
12
13
  }"
13
14
  v-bind="$attrs"
15
+ :prefix="forcePrefix ? undefined : $attrs.prefix"
14
16
  v-model="visibleValue"
15
17
  v-model:focused="focused"
16
18
  >
@@ -20,15 +22,16 @@
20
22
  <template v-for="slot of forwardSlots" #[slot]="scope">
21
23
  <slot :name="slot" v-bind="scope ?? {}" />
22
24
  </template>
23
- <template #message="{ message }">
25
+ <template #message="scope">
24
26
  <v-tooltip
25
27
  ref="errorTooltipRef"
26
28
  :activator="textFieldRef"
27
- v-if="message"
28
- :text="$st(message)"
29
+ v-if="scope?.message"
30
+ :text="$st(scope?.message)"
29
31
  content-class="bg-error"
30
32
  :location="tooltipPosition"
31
33
  />
34
+ <slot name="message" v-bind="scope ?? {}"></slot>
32
35
  </template>
33
36
  <template #default="scope">
34
37
  <v-tooltip
@@ -39,6 +42,14 @@
39
42
  ></v-tooltip>
40
43
  <slot name="default" v-bind="scope ?? {}"></slot>
41
44
  </template>
45
+ <!-- use slot to show prefix always, independent of modelValue (unlike prefix prop) -->
46
+ <template #prepend-inner="prependInnerScope">
47
+ <slot name="prepend-inner" v-bind="prependInnerScope">
48
+ <template v-if="forcePrefix && $attrs.prefix">
49
+ {{ $attrs.prefix }}
50
+ </template>
51
+ </slot>
52
+ </template>
42
53
  </v-text-field>
43
54
  </template>
44
55
 
@@ -72,6 +83,7 @@
72
83
  * @vue-prop {string|undefined} tooltip - Optional tooltip which will be shown on hover when no error message is shown
73
84
  * @vue-prop {string} unit - Unit for number input fields. Is displayed behind the number.
74
85
  * @vue-prop {number|undefined} [decimals] - An optional number of decimal places the visible value will be rounded to. Does not affect the input value!
86
+ * @vue-prop {boolean} [forcePrefix=false] - If set, forces the prefix to be always rendered independent of modelValue by using prepend-inner slot
75
87
  */
76
88
  export default {
77
89
  name: 'VcsTextField',
@@ -110,6 +122,10 @@
110
122
  type: Number,
111
123
  default: undefined,
112
124
  },
125
+ forcePrefix: {
126
+ type: Boolean,
127
+ default: false,
128
+ },
113
129
  },
114
130
  setup(props, { attrs, slots }) {
115
131
  const textFieldRef = ref();
@@ -151,7 +167,7 @@
151
167
  });
152
168
 
153
169
  const paddingProvided = usePadding(attrs);
154
- const forwardSlots = useForwardSlots(slots, ['default']);
170
+ const forwardSlots = useForwardSlots(slots, ['default', 'message']);
155
171
 
156
172
  return {
157
173
  forwardSlots,
@@ -23,6 +23,10 @@ declare const _default: import("vue").DefineComponent<{
23
23
  type: NumberConstructor;
24
24
  default: undefined;
25
25
  };
26
+ forcePrefix: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
26
30
  }, {
27
31
  forwardSlots: import("vue").ComputedRef<string[]>;
28
32
  paddingProvided: import("vue").ComputedRef<boolean>;
@@ -56,6 +60,10 @@ declare const _default: import("vue").DefineComponent<{
56
60
  type: NumberConstructor;
57
61
  default: undefined;
58
62
  };
63
+ forcePrefix: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
59
67
  }>>, {
60
68
  type: string;
61
69
  modelValue: string | number;
@@ -63,5 +71,6 @@ declare const _default: import("vue").DefineComponent<{
63
71
  tooltipPosition: string;
64
72
  unit: string;
65
73
  decimals: number;
74
+ forcePrefix: boolean;
66
75
  }, {}>;
67
76
  export default _default;
@@ -23,17 +23,14 @@
23
23
  v-if="isActiveStep"
24
24
  :actions="actions"
25
25
  :overflow-count="actionButtonListOverflowCount"
26
- @mousedown.stop
27
- @touchstart.stop
28
- @keydown.stop
29
26
  class="justify-end"
30
27
  />
31
28
  </div>
32
29
  </slot>
33
30
  </template>
34
31
  <template #default>
35
- <div class="pr-4">
36
- <VcsHelp :text="helpText" :show="showHelp">
32
+ <div>
33
+ <VcsHelp :text="helpText" :show="showHelp" class="mb-1">
37
34
  <slot name="help" />
38
35
  </VcsHelp>
39
36
  <slot />
@@ -136,7 +133,7 @@
136
133
  const helpAction = reactive({
137
134
  name: 'help',
138
135
  title: 'components.vcsFormSection.help',
139
- active: false,
136
+ active: true,
140
137
  icon: 'mdi-help-circle',
141
138
  callback() {
142
139
  this.active = !this.active;
@@ -1,6 +1,6 @@
1
1
  :deep(.v-field) {
2
- --v-field-padding-start: 8px;
3
- --v-field-padding-end: 8px;
2
+ --v-field-padding-start: 4px;
3
+ --v-field-padding-end: 4px;
4
4
  }
5
5
  .v-input--density-compact :deep(.v-field) {
6
6
  --v-input-control-height: calc(var(--v-vcs-item-height) - 8px);
@@ -29,12 +29,12 @@
29
29
  border-radius: 0;
30
30
  }
31
31
  .v-field__outline {
32
- padding-left: 8px;
33
- padding-right: 8px;
32
+ padding-left: 4px;
33
+ padding-right: 4px;
34
34
  }
35
35
  .v-field__loader {
36
- padding-left: 8px;
37
- padding-right: 8px;
36
+ padding-left: 3px;
37
+ padding-right: 3px;
38
38
  }
39
39
  .v-field__outline *::before {
40
40
  border-width: 0;
@@ -48,7 +48,7 @@
48
48
 
49
49
  // move unit to the right
50
50
  :deep(.v-field--appended) {
51
- padding-inline-end: 8px;
51
+ padding-inline-end: 4px;
52
52
  }
53
53
 
54
54
  // remove margin from prepended Icon
@@ -58,13 +58,10 @@
58
58
  .primary--placeholder {
59
59
  :deep(input::placeholder) {
60
60
  color: rgb(var(--v-theme-primary));
61
- font-style: italic;
61
+ font-style: italic !important;
62
62
  opacity: 1;
63
63
  padding: 0 3px 0 0;
64
64
  }
65
- :deep(input::-moz-placeholder) {
66
- font-style: initial;
67
- }
68
65
  }
69
66
 
70
67
  // remove details
@@ -72,7 +69,6 @@
72
69
  display: none;
73
70
  }
74
71
 
75
- // Progress Bar
76
72
  :deep(.v-field__loader) {
77
73
  top: calc(100% - 2px);
78
74
  }
@@ -80,4 +76,5 @@
80
76
  // unit margin
81
77
  :deep(.v-field__clearable) {
82
78
  margin-left: 0;
79
+ margin-right: 0;
83
80
  }
@@ -1,14 +1,22 @@
1
1
  <template>
2
- <span class="vcs-formatted-number" :class="{ 'py-1': !paddingProvided }">
2
+ <span
3
+ class="vcs-formatted-number"
4
+ :class="{
5
+ 'vcs-disabled': disabled,
6
+ 'pa-1': !paddingProvided,
7
+ }"
8
+ >
3
9
  <slot name="prepend">
4
10
  <span v-if="prefix" class="pr-1">{{ prefix }}</span>
5
11
  </slot>
6
12
  {{ formatted }}
7
13
  <slot name="append">
8
- <span v-if="unit === SpecialUnits.SQM"> m<sup>2</sup> </span>
9
- <span v-else-if="unit === SpecialUnits.CBM"> m<sup>3</sup> </span>
10
- <span v-else-if="unit === SpecialUnits.DEG"> ° </span>
11
- <span v-else>
14
+ <span class="pl-1" v-if="unit === SpecialUnits.SQM"> m<sup>2</sup> </span>
15
+ <span class="pl-1" v-else-if="unit === SpecialUnits.CBM">
16
+ m<sup>3</sup>
17
+ </span>
18
+ <span class="pl-1" v-else-if="unit === SpecialUnits.DEG"> ° </span>
19
+ <span class="pl-1" v-else>
12
20
  {{ unit }}
13
21
  </span>
14
22
  </slot>
@@ -27,6 +35,9 @@
27
35
  align-items: center;
28
36
  height: calc(var(--v-vcs-item-height) - 8px);
29
37
  }
38
+ .vcs-disabled {
39
+ opacity: var(--v-disabled-opacity);
40
+ }
30
41
  </style>
31
42
  <script>
32
43
  import { computed } from 'vue';
@@ -70,6 +81,7 @@
70
81
 
71
82
  /**
72
83
  * @description Formatted number display, optionally with unit
84
+ * @vue-prop {boolean} [disabled=false] - disabled by adding transparency to the label.
73
85
  * @vue-prop {string|SpecialUnits} [unit=undefined]
74
86
  * @vue-prop {number} [fractionDigits=undefined]
75
87
  * @vue-prop {number} modelValue
@@ -83,6 +95,10 @@
83
95
  VTooltip,
84
96
  },
85
97
  props: {
98
+ disabled: {
99
+ type: Boolean,
100
+ default: false,
101
+ },
86
102
  unit: {
87
103
  type: [String || SpecialUnits],
88
104
  default: undefined,
@@ -16,6 +16,10 @@ export namespace SpecialUnits {
16
16
  let DEG: string;
17
17
  }
18
18
  declare const _default: import("vue").DefineComponent<{
19
+ disabled: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
19
23
  unit: {
20
24
  type: StringConstructor[];
21
25
  default: undefined;
@@ -49,6 +53,10 @@ declare const _default: import("vue").DefineComponent<{
49
53
  formatted: import("vue").ComputedRef<string | number>;
50
54
  paddingProvided: import("vue").ComputedRef<boolean>;
51
55
  }, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
56
+ disabled: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
52
60
  unit: {
53
61
  type: StringConstructor[];
54
62
  default: undefined;
@@ -74,6 +82,7 @@ declare const _default: import("vue").DefineComponent<{
74
82
  default: string;
75
83
  };
76
84
  }>>, {
85
+ disabled: boolean;
77
86
  modelValue: number;
78
87
  prefix: string | number;
79
88
  tooltip: string;