@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
@@ -1,45 +0,0 @@
1
- <template>
2
- <v-card>
3
- <div class="px-2 pt-2 pb-1">
4
- <v-card-text>
5
- <VcsMarkdown :content="customScreenText"></VcsMarkdown>
6
- </v-card-text>
7
- </div>
8
- </v-card>
9
- </template>
10
-
11
- <script>
12
- import { VCard, VCardText } from 'vuetify/components';
13
-
14
- import { computed, getCurrentInstance } from 'vue';
15
- import VcsMarkdown from '../components/form-output/VcsMarkdown.vue';
16
-
17
- export default {
18
- name: 'VcsCustomScreen',
19
- components: {
20
- VcsMarkdown,
21
- VCard,
22
- VCardText,
23
- },
24
- props: {
25
- content: {
26
- type: String,
27
- required: true,
28
- },
29
- },
30
- setup(props) {
31
- const vm = getCurrentInstance().proxy;
32
- const dialog = true;
33
- const customScreenText = computed(() => {
34
- return vm.$st(props.content);
35
- });
36
-
37
- return {
38
- dialog,
39
- customScreenText,
40
- };
41
- },
42
- };
43
- </script>
44
-
45
- <style scoped lang="scss"></style>
@@ -1,15 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- content: {
3
- type: StringConstructor;
4
- required: true;
5
- };
6
- }, {
7
- dialog: boolean;
8
- customScreenText: import("vue").ComputedRef<any>;
9
- }, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
- content: {
11
- type: StringConstructor;
12
- required: true;
13
- };
14
- }>>, {}, {}>;
15
- export default _default;
@@ -1,12 +0,0 @@
1
- /**
2
- * @param {string} content
3
- * @returns {string}
4
- */
5
- export function parseAndSanitizeMarkdown(content: string): string;
6
- /**
7
- * Replaces template strings by provided attributes, e.g. {{myAttribute}}
8
- * @param {string|string[]} template
9
- * @param {Record<string, unknown>} attributes
10
- * @returns {string}
11
- */
12
- export function replaceAttributes(template: string | string[], attributes: Record<string, unknown>): string;
@@ -1,70 +0,0 @@
1
- import { marked } from 'marked';
2
- import DOMPurify from 'dompurify';
3
-
4
- /**
5
- * @param {string} content
6
- * @returns {string}
7
- */
8
- export function parseAndSanitizeMarkdown(content) {
9
- const html = marked.parse(content, { breaks: true });
10
-
11
- // Then sanitize the HTML using DOMPurify
12
- return DOMPurify.sanitize(html, { ADD_ATTR: ['target'] });
13
- }
14
-
15
- /**
16
- * @param {Record<string, unknown>} parent
17
- * @param {(string|number)[]} keys
18
- * @returns {undefined|T}
19
- * @template {*} T
20
- */
21
- function findRecursive(parent, keys) {
22
- if (keys.length === 1) {
23
- return parent[keys[0]];
24
- } else {
25
- const nextKey = keys.shift();
26
- const nextParent = parent[nextKey];
27
- if (nextParent) {
28
- return findRecursive(nextParent, keys);
29
- }
30
- }
31
- return undefined;
32
- }
33
-
34
- /**
35
- * Replaces template strings by provided attributes, e.g. {{myAttribute}}
36
- * @param {string|string[]} template
37
- * @param {Record<string, unknown>} attributes
38
- * @returns {string}
39
- */
40
- export function replaceAttributes(template, attributes) {
41
- const templateString = Array.isArray(template)
42
- ? template.join('\n')
43
- : template;
44
- return templateString.replace(/\{\{([^}]+)}}/g, (p, value) => {
45
- const keys = value.trim().split('.');
46
-
47
- for (let i = 0; i < keys.length; i++) {
48
- let key = keys[i];
49
- if (typeof key === 'string') {
50
- const indices = [];
51
- let arrayIndex = /\[["']?([^\]]+)["']?]$/.exec(key);
52
- while (arrayIndex != null) {
53
- let bracketKey = arrayIndex[1];
54
- if (/^\d+$/.test(bracketKey)) {
55
- bracketKey = Number(bracketKey);
56
- }
57
- indices.push(bracketKey);
58
- key = key.substring(0, arrayIndex.index);
59
- arrayIndex = /\[["']?([^\]]+)["']?]$/.exec(key);
60
- }
61
-
62
- if (indices.length > 0) {
63
- keys.splice(i, 1, key, ...indices);
64
- }
65
- }
66
- }
67
-
68
- return findRecursive(attributes, keys) ?? '';
69
- });
70
- }
@@ -1,21 +0,0 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {
2
- $emit: (event: "item-renamed", ...args: any[]) => void;
3
- $props: {
4
- readonly [x: string]: any;
5
- };
6
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
7
- "prepend-title"?(_: {
8
- item: any;
9
- }): any;
10
- title?(_: {
11
- item: any;
12
- }): any;
13
- "append-title"?(_: {
14
- item: any;
15
- class: string;
16
- }): any;
17
- }>;
18
- export default _default;
19
- type __VLS_WithTemplateSlots<T, S> = T & (new () => {
20
- $slots: S;
21
- });
@@ -1,156 +0,0 @@
1
- <template>
2
- <v-tooltip
3
- :disabled="!tooltip"
4
- :content-class="`tooltip ${arrowClass}`"
5
- transition="expand-x-transition"
6
- v-bind="{ ...$props, ...$attrs }"
7
- >
8
- <template #activator="{ props }">
9
- <slot name="activator" v-bind="props" />
10
- </template>
11
- <span v-if="tooltip">{{ $st(tooltip) }}</span>
12
- </v-tooltip>
13
- </template>
14
- <style lang="scss" scoped>
15
- //.v-tooltip__content.tooltip {
16
- // border: 1px solid black;
17
- // border-radius: 0;
18
- // background-color: #222222;
19
- //
20
- //&.arrow-top {
21
- // transform: translateY(-6px);
22
- //
23
- //&::after, &::before {
24
- // bottom: 100%;
25
- // left: 50%;
26
- // border: solid transparent;
27
- // content: "";
28
- // height: 0;
29
- // width: 0;
30
- // position: absolute;
31
- // pointer-events: none;
32
- // }
33
- //
34
- //&::before {
35
- // border-color: rgba(194, 225, 245, 0);
36
- // border-bottom-color: black;
37
- // border-width: 5px;
38
- // margin-left: -5px;
39
- // }
40
- //}
41
- //
42
- //&.arrow-bottom {
43
- // transform: translateY(6px);
44
- //
45
- //&::after, &::before {
46
- // top: 100%;
47
- // left: 50%;
48
- // border: solid transparent;
49
- // content: "";
50
- // height: 0;
51
- // width: 0;
52
- // position: absolute;
53
- // pointer-events: none;
54
- // }
55
- //
56
- //&::before {
57
- // border-color: rgba(194, 225, 245, 0);
58
- // border-top-color: black;
59
- // border-width: 5px;
60
- // margin-left: -5px;
61
- // }
62
- //}
63
- //
64
- //&.arrow-right {
65
- //&::after, &::before {
66
- // top: 50%;
67
- // right: -11px;
68
- // transform: translateY(-50%);
69
- // border: solid transparent;
70
- // content: "";
71
- // height: 0;
72
- // width: 0;
73
- // position: absolute;
74
- // pointer-events: none;
75
- // }
76
- //
77
- //&::before {
78
- // border-color: rgba(255, 0, 0, 0);
79
- // border-left-color: black;
80
- // border-width: 5px;
81
- // margin-left: -5px;
82
- // }
83
- //}
84
- //
85
- //&.arrow-left {
86
- //
87
- //&::after, &::before {
88
- // top: 50%;
89
- // left: -11px;
90
- // transform: translateY(-50%);
91
- // border: solid transparent;
92
- // content: "";
93
- // height: 0;
94
- // width: 0;
95
- // position: absolute;
96
- // pointer-events: none;
97
- // }
98
- //
99
- //&::before {
100
- // border-color: rgba(194, 225, 245, 0);
101
- // border-right-color: black;
102
- // border-width: 5px;
103
- // }
104
- //}
105
- //}
106
- </style>
107
- <script>
108
- import { VTooltip } from 'vuetify/components';
109
-
110
- /**
111
- * @enum {string} TooltipPositions
112
- * @property {string} bottom
113
- * @property {string} left
114
- * @property {string} top
115
- * @property {string} right
116
- * @readonly
117
- * @module VcsTooltip
118
- */
119
- const TooltipPositions = {
120
- bottom: 'arrow-top',
121
- top: 'arrow-bottom',
122
- left: 'arrow-right',
123
- right: 'arrow-left',
124
- };
125
-
126
- /**
127
- * @description tooltip extending {@link https://vuetifyjs.com/en/api/v-tooltip/|vuetify v-tooltip}.
128
- * @vue-prop {string} tooltip - Text content of a tooltip which appears on hover with default delay. This should be an i18n key.
129
- * @vue-prop {string} [tooltipPosition='bottom'] - Position of the tooltip (allowed values: 'bottom'|'left'|'top'|'right').
130
- * @vue-computed {string} arrowClass - direction of tooltip arrow
131
- */
132
- export default {
133
- name: 'VcsTooltip',
134
- components: {
135
- VTooltip,
136
- },
137
- props: {
138
- tooltip: {
139
- type: String,
140
- default: undefined,
141
- },
142
- tooltipPosition: {
143
- type: String,
144
- default: 'bottom',
145
- validator(value) {
146
- return Object.keys(TooltipPositions).includes(value);
147
- },
148
- },
149
- },
150
- computed: {
151
- arrowClass() {
152
- return TooltipPositions[this.tooltipPosition];
153
- },
154
- },
155
- };
156
- </script>
@@ -1,27 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- tooltip: {
3
- type: StringConstructor;
4
- default: undefined;
5
- };
6
- tooltipPosition: {
7
- type: StringConstructor;
8
- default: string;
9
- validator(value: unknown): boolean;
10
- };
11
- }, any, any, {
12
- arrowClass(): any;
13
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
14
- tooltip: {
15
- type: StringConstructor;
16
- default: undefined;
17
- };
18
- tooltipPosition: {
19
- type: StringConstructor;
20
- default: string;
21
- validator(value: unknown): boolean;
22
- };
23
- }>>, {
24
- tooltip: string;
25
- tooltipPosition: string;
26
- }, {}>;
27
- export default _default;
@@ -1,16 +0,0 @@
1
- <script setup>
2
- defineOptions({});
3
-
4
- defineProps({
5
- html: {
6
- type: String,
7
- required: true,
8
- },
9
- });
10
- </script>
11
-
12
- <template>
13
- <div class="pa-2" v-html="html" />
14
- </template>
15
-
16
- <style scoped lang="scss"></style>
@@ -1,7 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {
2
- html: string;
3
- $props: {
4
- readonly html?: string | undefined;
5
- };
6
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
7
- export default _default;
@@ -1,73 +0,0 @@
1
- .v-application .base {
2
- background-color: var(--v-base-base) !important;
3
- border-color: var(--v-base-base) !important;
4
- }
5
- .v-application .base.lighten-1 {
6
- background-color: var(--v-base-lighten1) !important;
7
- border-color: var(--v-base-lighten1) !important;
8
- }
9
- .v-application .base.lighten-2 {
10
- background-color: var(--v-base-lighten2) !important;
11
- border-color: var(--v-base-lighten2) !important;
12
- }
13
- .v-application .base.lighten-3 {
14
- background-color: var(--v-base-lighten3) !important;
15
- border-color: var(--v-base-lighten3) !important;
16
- }
17
- .v-application .base.lighten-4 {
18
- background-color: var(--v-base-lighten4) !important;
19
- border-color: var(--v-base-lighten4) !important;
20
- }
21
- .v-application .base.darken-1 {
22
- background-color: var(--v-base-darken1) !important;
23
- border-color: var(--v-base-darken1) !important;
24
- }
25
- .v-application .base.darken-2 {
26
- background-color: var(--v-base-darken2) !important;
27
- border-color: var(--v-base-darken2) !important;
28
- }
29
- .v-application .base.darken-3 {
30
- background-color: var(--v-base-darken3) !important;
31
- border-color: var(--v-base-darken3) !important;
32
- }
33
- .v-application .base.darken-4 {
34
- background-color: var(--v-base-darken4) !important;
35
- border-color: var(--v-base-darken4) !important;
36
- }
37
-
38
- .v-application .base--text {
39
- color: var(--v-base-base) !important;
40
- caret-color: var(--v-base-base) !important;
41
- }
42
- .v-application .base--text.text--lighten-1 {
43
- color: var(--v-base-lighten1) !important;
44
- caret-color: var(--v-base-lighten1) !important;
45
- }
46
- .v-application .base--text.text--lighten-2 {
47
- color: var(--v-base-lighten2) !important;
48
- caret-color: var(--v-base-lighten2) !important;
49
- }
50
- .v-application .base--text.text--lighten-3 {
51
- color: var(--v-base-lighten3) !important;
52
- caret-color: var(--v-base-lighten3) !important;
53
- }
54
- .v-application .base--text.text--lighten-4 {
55
- color: var(--v-base-lighten4) !important;
56
- caret-color: var(--v-base-lighten4) !important;
57
- }
58
- .v-application .base--text.text--darken-1 {
59
- color: var(--v-base-darken1) !important;
60
- caret-color: var(--v-base-darken1) !important;
61
- }
62
- .v-application .base--text.text--darken-2 {
63
- color: var(--v-base-darken2) !important;
64
- caret-color: var(--v-base-darken2) !important;
65
- }
66
- .v-application .base--text.text--darken-3 {
67
- color: var(--v-base-darken3) !important;
68
- caret-color: var(--v-base-darken3) !important;
69
- }
70
- .v-application .base--text.text--darken-4 {
71
- color: var(--v-base-darken4) !important;
72
- caret-color: var(--v-base-darken4) !important;
73
- }
@@ -1,6 +0,0 @@
1
- // @use 'vuetify';
2
- @use 'vuetify/settings' with (
3
- // $font-size-root: 13px,
4
- // $icon-size: 20px,
5
- /** Footer **/ // $footer-padding: 0px 0px, // 6px 16px !default;
6
- );
@@ -1,4 +0,0 @@
1
- $shades: (
2
- 'black': #222222,
3
- 'white': #ffffff,
4
- );
@@ -1,140 +0,0 @@
1
- @import 'shades.scss';
2
- @import 'vcsFont.scss';
3
-
4
- /** Global **/
5
- $font-size: $vcs-font-size;
6
- $font-size-root: $vcs-font-size;
7
-
8
- $material-dark: (
9
- 'background': map-get($shades, 'black'),
10
- 'cards': map-get($shades, 'black'),
11
- 'text-fields': (
12
- 'outlined': var(--v-base-base),
13
- 'outlined-hover': var(--v-base-base),
14
- ),
15
- 'input-bottom-line': var(--v-base-base),
16
- 'dividers': var(--v-base-lighten2),
17
- //'toolbar': rgba(map-get($shades, 'black'), 0.8),
18
- 'table':
19
- (
20
- 'hover': var(--v-base-lighten4),
21
- ),
22
- );
23
- $material-light: (
24
- 'text-fields': (
25
- 'outlined': var(--v-base-base),
26
- 'outlined-hover': var(--v-base-base),
27
- ),
28
- 'input-bottom-line': var(--v-base-base),
29
- 'text': (
30
- 'primary': map-get($shades, 'black'),
31
- 'disabled': rgba(map-get($shades, 'black'), 0.3),
32
- ),
33
- 'buttons': (
34
- 'disabled': rgba(map-get($shades, 'black'), 0.5),
35
- ),
36
- 'dividers': var(--v-base-lighten2),
37
- //'toolbar': rgba(map-get($shades, 'white'), 0.8),
38
- 'table':
39
- (
40
- 'hover': var(--v-base-lighten4),
41
- ),
42
- );
43
-
44
- // input font and icon
45
- $input-font-size: $font-size;
46
- $input-icon-height: 16px; // 24px !default;
47
- $input-icon-width: 16px; // 24px !default;
48
- $input-icon-min-width: 16px; // 24px !default;
49
- $input-icon-font-size: 16px;
50
-
51
- /** VcsTextfield **/
52
-
53
- // height, size and padding
54
- $text-field-padding: 2px 0 1px; //8px 0 8px !default;
55
- $text-field-filled-full-width-outlined-slot-min-height: 32px; // 56px !default;
56
- $text-field-filled-full-width-outlined-single-line-slot-min-height: 24px; //40px !default;
57
- $text-field-solo-control-min-height: 30px; //48px !default;
58
- $text-field-solo-dense-control-min-height: 22px; //38px !default;
59
- $text-field-outlined-fieldset-border: 1px solid currentColor; // 2px solid currentColor !default;
60
-
61
- // dense non outlined
62
- $text-field-dense-padding: 2px 0 1px; //4px 0 2px !default;
63
-
64
- // clear icon non dense
65
- $text-field-enclosed-prepend-append-margin-top: 9px;
66
-
67
- // tooltip icon in append slot
68
- $text-field-outlined-append-prepend-outer-margin-top: 4px; // 18px !default;
69
- $text-field-append-prepend-margin: 0; // 4px !default;
70
- $text-field-outlined-prepend-append-margin-top: 4px; // 8px !default;
71
-
72
- // label position for outlined Label dense and non-dense
73
- $text-field-outlined-label-position-x: 6px;
74
- $text-field-outlined-label-position-y: -14px;
75
- $text-field-outlined-dense-label-position-x: 2px;
76
- $text-field-outlined-dense-label-position-y: -10px;
77
- $label-font-size: $font-size; // 1rem !default;
78
- $text-field-label-top: 2px; // 6px !default;
79
- $text-field-label-active-transform: translateY(-14px) scale(0.75); //translateY(-18px) scale(.75) !default;
80
-
81
- /** VcsTextarea **/
82
- $textarea-box-enclosed-single-outlined-margin-top: 0; // 10px !default;
83
- $textarea-dense-box-enclosed-single-outlined-margin-top: 0; // 6px !default;
84
-
85
- /** VcsCheckbox **/
86
- $icon-size: 20px; // 24px !default;
87
- $icon-size-dense: 16px; // 20px !default;
88
-
89
- /** VcsSelect **/
90
- $select-dense-selections-margin: 4px 4px 3px 0; // 5px 4px 3px 0 !default;
91
-
92
- // list box
93
- $list-padding: 0 0; // 8px 0 !default;
94
- $list-item-title-font-size: $font-size; // map-deep-get($headings, 'subtitle-1', 'size') !default;
95
- $list-item-dense-title-font-size: $font-size; // 0.8125rem !default;
96
- $list-item-dense-title-line-height: 24px; // 1rem !default;
97
- $list-item-title-subtitle-line-height: 24px; // 1.2 !default;
98
- $list-dense-subheader-height: 32px; // 40px !default;
99
- $list-item-min-height: 32px; // 48px !default;
100
- $list-dense-min-height: 24px; // 40px !default;
101
- $list-item-content-padding: 4px 0; // 12px 0 !default;
102
- $list-dense-content-padding: 0 0; // 8px 0 !default;
103
- $list-item-action-icon-margin: 0; //32px !default;
104
- $list-item-action-margin: 0 0; // 12px 0 !default;
105
- $list-item-icon-margin: auto 0; // 16px 0 !default;
106
- $list-item-content-children-margin-bottom: 0; // 2px !default;
107
-
108
- /** Treeview **/
109
- $treeview-node-level-width: 16px;
110
- $treeview-node-margin: 4px;
111
- $treeview-node-height: 32px; // 48px !default;
112
-
113
- /** Expansion Panel **/
114
- $expansion-panel-header-min-height: 32px; // 48px !default;
115
- $expansion-panel-active-header-min-height: 32px; // 64px !default;
116
- $expansion-panel-header-padding: 6px 0; // 16px 24px !default;
117
- $expansion-panel-content-padding: 0 0 4px; // 0 24px 16px !default;
118
-
119
- /** Footer **/
120
- $footer-padding: 0 8px; // 6px 16px !default;
121
-
122
- /** Wizard **/
123
- $stepper-vertical-padding-bottom: 16px; // 36px !default;
124
- $stepper-vertical-step-padding: 12px 8px;
125
- $stepper-vertical-content-ltr-margin: -14px 0 -14px 13px; // -8px -36px -16px 36px !default;
126
- $stepper-vertical-content-ltr-padding: 16px 8px 16px 16px; // 16px 23px 16px 60px !default;
127
- $stepper-vertical-step-step-margin: 8px;
128
- $stepper-step-step-min-width: 12px;
129
- $stepper-step-step-width: 12px;
130
- $stepper-step-step-height: 12px;
131
-
132
- /** Snackbar **/
133
- $snackbar-bottom: 36px;
134
- $snackbar-background-color: rgba(0, 0, 0, 0.8);
135
- $snackbar-content-padding: 8px;
136
- $snackbar-action-margin: 8px;
137
- $snackbar-wrapper-min-height: 36px;
138
-
139
- /** Datatable **/
140
- $data-table-regular-row-font-size: $font-size;
@@ -1,2 +0,0 @@
1
- // fontSize
2
- $vcs-font-size: 13px;
@@ -1,3 +0,0 @@
1
- // fonts
2
- $line-height-base: 40px; // header lines
3
- $line-height-dense: 32px; // rows in form field