@vcmap/ui 5.0.0-rc.20 → 5.0.0-rc.22

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 (104) hide show
  1. package/build/buildHelpers.js +1 -0
  2. package/build/commonViteConfig.js +1 -0
  3. package/config/www.config.json +25 -14
  4. package/dist/assets/cesium.js +1 -1
  5. package/dist/assets/{core.60e74d.js → core.a66593.js} +2443 -2457
  6. package/dist/assets/core.js +1 -1
  7. package/dist/assets/favicon.decf54cc.svg +10 -0
  8. package/dist/assets/{index.884a53ef.js → index.8b833ead.js} +1 -1
  9. package/dist/assets/{ol.c6ff35.js → ol.d4539f.js} +12406 -12152
  10. package/dist/assets/ol.js +1 -1
  11. package/dist/assets/ui.d760e4.css +5 -0
  12. package/dist/assets/{ui.bf504d.js → ui.d760e4.js} +5218 -4240
  13. package/dist/assets/ui.js +1 -1
  14. package/dist/assets/vue.js +2 -2
  15. package/dist/assets/vuetify.427322.css +5 -0
  16. package/dist/assets/{vuetify.0d7360.js → vuetify.427322.js} +1 -1
  17. package/dist/assets/vuetify.js +2 -2
  18. package/dist/index.html +6 -1
  19. package/index.html +5 -0
  20. package/index.js +2 -1
  21. package/lib/olLib.js +15 -1
  22. package/package.json +4 -3
  23. package/plugins/@vcmap/project-selector/ProjectSelectorComponent.vue +1 -1
  24. package/plugins/@vcmap/theme-changer/ThemeChangerComponent.vue +10 -4
  25. package/plugins/@vcmap-show-case/form-inputs-example/FormInputsExample.vue +75 -81
  26. package/plugins/@vcmap-show-case/form-inputs-example/index.js +7 -3
  27. package/plugins/@vcmap-show-case/form-inputs-example/validation.js +1 -1
  28. package/plugins/@vcmap-show-case/list-example/ListExample.vue +5 -2
  29. package/plugins/@vcmap-show-case/wizard-example/wizardExample.vue +57 -23
  30. package/plugins/package.json +2 -1
  31. package/src/application/VcsApp.vue +13 -5
  32. package/src/application/VcsAttributions.vue +2 -3
  33. package/src/application/VcsAttributionsFooter.vue +10 -16
  34. package/src/application/VcsNavbar.vue +1 -2
  35. package/src/application/VcsSettings.vue +21 -8
  36. package/src/assets/favicon-128.png +0 -0
  37. package/src/assets/favicon-180.png +0 -0
  38. package/src/assets/favicon-192.png +0 -0
  39. package/src/assets/favicon-32.png +0 -0
  40. package/src/assets/favicon.svg +10 -0
  41. package/src/components/buttons/VcsButton.vue +2 -3
  42. package/src/components/form-inputs-controls/VcsCheckbox.vue +46 -26
  43. package/src/components/form-inputs-controls/VcsFormSection.vue +15 -13
  44. package/src/components/form-inputs-controls/VcsLabel.vue +10 -1
  45. package/src/components/form-inputs-controls/VcsRadio.vue +38 -18
  46. package/src/components/form-inputs-controls/VcsSelect.vue +117 -59
  47. package/src/components/form-inputs-controls/VcsTextArea.vue +101 -60
  48. package/src/components/form-inputs-controls/VcsTextField.vue +171 -69
  49. package/src/components/form-inputs-controls/VcsWizard.vue +20 -14
  50. package/src/components/form-inputs-controls/VcsWizardStep.vue +18 -16
  51. package/src/components/form-inputs-controls/composables.js +26 -0
  52. package/src/components/form-output/VcsFormattedNumber.vue +1 -1
  53. package/src/components/icons/2DDistanceIcon.vue +0 -3
  54. package/src/components/icons/3DDistanceIcon.vue +0 -3
  55. package/src/components/icons/3DHeightIcon.vue +0 -3
  56. package/src/components/icons/CheckboxCheckedIcon.vue +4 -11
  57. package/src/components/icons/CheckboxIcon.vue +9 -2
  58. package/src/components/icons/CheckboxIndeterminateIcon.vue +4 -21
  59. package/src/components/icons/CommentIcon.vue +1 -5
  60. package/src/components/icons/ObliqueViewIcon.vue +6 -8
  61. package/src/components/icons/SimpleCircleOutlinedIcon.vue +1 -1
  62. package/src/components/icons/SplitViewIcon.vue +0 -4
  63. package/src/components/icons/ToolsIcon.vue +2 -4
  64. package/src/components/lists/VcsActionList.vue +0 -1
  65. package/src/components/lists/VcsList.vue +6 -25
  66. package/src/components/lists/VcsTreeview.vue +2 -2
  67. package/src/components/lists/VcsTreeviewLeaf.vue +3 -9
  68. package/src/components/lists/VcsTreeviewSearchbar.vue +4 -4
  69. package/src/components/notification/VcsBadge.vue +6 -2
  70. package/src/components/notification/VcsHelp.vue +39 -0
  71. package/src/components/tables/VcsTable.vue +70 -24
  72. package/src/featureInfo/AddressBalloonComponent.vue +1 -1
  73. package/src/featureInfo/BalloonComponent.vue +14 -9
  74. package/src/featureInfo/featureInfo.js +25 -7
  75. package/src/featureInfo/tableFeatureInfoView.js +4 -0
  76. package/src/i18n/de.js +5 -1
  77. package/src/i18n/en.js +5 -1
  78. package/src/legend/styleLegendItem.vue +24 -2
  79. package/src/legend/vcsLegend.vue +24 -31
  80. package/src/manager/toolbox/GroupToolboxComponent.vue +2 -3
  81. package/src/manager/toolbox/SelectToolboxComponent.vue +11 -5
  82. package/src/manager/toolbox/ToolboxManager.vue +0 -7
  83. package/src/manager/window/WindowComponent.vue +0 -1
  84. package/src/manager/window/WindowComponentHeader.vue +2 -2
  85. package/src/navigation/overviewMap.js +6 -15
  86. package/src/navigation/tiltSlider.vue +30 -6
  87. package/src/search/resultsComponent.vue +0 -1
  88. package/src/search/search.js +7 -17
  89. package/src/search/searchComponent.vue +6 -7
  90. package/src/styles/_theming.scss +72 -3
  91. package/src/styles/_typography.scss +0 -5
  92. package/src/styles/main.scss +1 -0
  93. package/src/styles/shades.scss +2 -0
  94. package/src/styles/variables.scss +40 -4
  95. package/src/uiConfig.js +1 -0
  96. package/src/vcsUiApp.js +5 -0
  97. package/src/vuePlugins/vuetify.js +59 -13
  98. package/dist/assets/core.f198cf.js +0 -15993
  99. package/dist/assets/ol.dbd604.js +0 -44299
  100. package/dist/assets/ui.bf504d.css +0 -1
  101. package/dist/assets/vue.a831f1.js +0 -4675
  102. package/dist/assets/vuetify.0d7360.css +0 -5
  103. /package/dist/assets/{cesium.adbd45.js → cesium.88cffd.js} +0 -0
  104. /package/dist/assets/{vue.75b819.js → vue.db5102.js} +0 -0
@@ -1,14 +1,19 @@
1
1
  import '@mdi/font/css/materialdesignicons.css';
2
2
  import Vue from 'vue';
3
3
  import Vuetify from 'vuetify/lib';
4
+ import { genVariations } from 'vuetify/lib/services/theme/utils.js';
5
+ import { colorToInt } from 'vuetify/lib/util/colorUtils.js';
4
6
  import Icons from '../components/icons/+all.js';
5
7
 
6
8
  Vue.use(Vuetify);
7
9
 
8
10
  /**
9
- * @type {string}
11
+ * @type {{light:string,dark:string}}
10
12
  */
11
- export const defaultPrimaryColor = '#409D76';
13
+ export const defaultPrimaryColor = {
14
+ light: '#409D76',
15
+ dark: '#27B97C',
16
+ };
12
17
 
13
18
  /**
14
19
  * @returns {import("vuetify").default}
@@ -27,23 +32,38 @@ export function createVuetify() {
27
32
  },
28
33
  themes: {
29
34
  light: {
30
- basic: '#FFFFFF',
31
- primary: defaultPrimaryColor,
32
- accent: '#EDEDED',
35
+ base: {
36
+ base: '#9E9E9E',
37
+ lighten5: '#FFFFFF',
38
+ lighten4: '#F8F8F8',
39
+ lighten3: '#EBEBEB',
40
+ lighten2: '#D0D0D0',
41
+ lighten1: '#B8B8B8',
42
+ darken1: '#858585',
43
+ darken2: '#6B6B6B',
44
+ darken3: '#525252',
45
+ darken4: '#383838',
46
+ },
47
+ primary: defaultPrimaryColor.light,
33
48
  warning: '#FFCE00',
34
- 'gray-200': '#DEDEDE',
35
- gray: '#707070',
36
- // todo: change remaining colors
37
- secondary: '#222222',
38
49
  error: '#AA0000',
39
50
  info: '#2196F3',
40
51
  success: '#4CAF50',
41
52
  },
42
53
  dark: {
43
- basic: '#000000',
44
- primary: defaultPrimaryColor,
45
- secondary: '#FFFFFF',
46
- accent: '#757575',
54
+ base: {
55
+ base: '#9E9E9E',
56
+ lighten5: '#FFFFFF',
57
+ lighten4: '#383838',
58
+ lighten3: '#525252',
59
+ lighten2: '#6B6B6B',
60
+ lighten1: '#858585',
61
+ darken1: '#B8B8B8',
62
+ darken2: '#D0D0D0',
63
+ darken3: '#EBEBEB',
64
+ darken4: '#F8F8F8',
65
+ },
66
+ primary: defaultPrimaryColor.dark,
47
67
  warning: '#FFCE00',
48
68
  error: '#FF5252',
49
69
  info: '#2196F3',
@@ -64,3 +84,29 @@ export function createVuetify() {
64
84
  * @type {import("vuetify").default}
65
85
  */
66
86
  export const vuetify = createVuetify();
87
+
88
+ /**
89
+ * Returns the default primary color depending on the selected theme mode
90
+ * @returns {string}
91
+ */
92
+ export function getDefaultPrimaryColor() {
93
+ if (vuetify.framework.theme.isDark) {
94
+ return defaultPrimaryColor.dark;
95
+ }
96
+ return defaultPrimaryColor.light;
97
+ }
98
+
99
+ /**
100
+ * Returns the color depending on the current theme mode
101
+ * @param {string} value - color key, e.g. 'primary'
102
+ * @param {string=} variant - color variant, e.g. 'lighten1', 'darken4', ...
103
+ * @returns {string}
104
+ */
105
+ export function getColorByKey(value, variant) {
106
+ const mode = vuetify.framework.theme.isDark ? 'dark' : 'light';
107
+ const color = vuetify.framework.theme.themes[mode][value];
108
+ if (color && variant) {
109
+ return color[variant] ?? genVariations(value, colorToInt(color))[variant];
110
+ }
111
+ return color?.base ?? color;
112
+ }