@vcmap/ui 5.0.0-rc.21 → 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.
- package/build/buildHelpers.js +1 -0
- package/build/commonViteConfig.js +1 -0
- package/config/www.config.json +25 -14
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.59d4d1.js → core.a66593.js} +2443 -2457
- package/dist/assets/core.js +1 -1
- package/dist/assets/favicon.decf54cc.svg +10 -0
- package/dist/assets/{index.a3861d4e.js → index.8b833ead.js} +1 -1
- package/dist/assets/{ol.c1c512.js → ol.d4539f.js} +12406 -12152
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui.d760e4.css +5 -0
- package/dist/assets/{ui.80175f.js → ui.d760e4.js} +5218 -4240
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +2 -2
- package/dist/assets/vuetify.427322.css +5 -0
- package/dist/assets/{vuetify.efc158.js → vuetify.427322.js} +1 -1
- package/dist/assets/vuetify.js +2 -2
- package/dist/index.html +6 -1
- package/index.html +5 -0
- package/index.js +2 -1
- package/lib/olLib.js +15 -1
- package/package.json +4 -3
- package/plugins/@vcmap/project-selector/ProjectSelectorComponent.vue +1 -1
- package/plugins/@vcmap/theme-changer/ThemeChangerComponent.vue +10 -4
- package/plugins/@vcmap-show-case/form-inputs-example/FormInputsExample.vue +75 -81
- package/plugins/@vcmap-show-case/form-inputs-example/index.js +7 -3
- package/plugins/@vcmap-show-case/form-inputs-example/validation.js +1 -1
- package/plugins/@vcmap-show-case/list-example/ListExample.vue +5 -2
- package/plugins/@vcmap-show-case/wizard-example/wizardExample.vue +57 -23
- package/plugins/package.json +2 -1
- package/src/application/VcsApp.vue +13 -5
- package/src/application/VcsAttributions.vue +2 -3
- package/src/application/VcsAttributionsFooter.vue +10 -16
- package/src/application/VcsNavbar.vue +1 -2
- package/src/application/VcsSettings.vue +21 -8
- package/src/assets/favicon-128.png +0 -0
- package/src/assets/favicon-180.png +0 -0
- package/src/assets/favicon-192.png +0 -0
- package/src/assets/favicon-32.png +0 -0
- package/src/assets/favicon.svg +10 -0
- package/src/components/buttons/VcsButton.vue +2 -3
- package/src/components/form-inputs-controls/VcsCheckbox.vue +46 -26
- package/src/components/form-inputs-controls/VcsFormSection.vue +15 -13
- package/src/components/form-inputs-controls/VcsLabel.vue +10 -1
- package/src/components/form-inputs-controls/VcsRadio.vue +38 -18
- package/src/components/form-inputs-controls/VcsSelect.vue +117 -59
- package/src/components/form-inputs-controls/VcsTextArea.vue +101 -60
- package/src/components/form-inputs-controls/VcsTextField.vue +171 -69
- package/src/components/form-inputs-controls/VcsWizard.vue +20 -14
- package/src/components/form-inputs-controls/VcsWizardStep.vue +18 -16
- package/src/components/form-inputs-controls/composables.js +26 -0
- package/src/components/form-output/VcsFormattedNumber.vue +1 -1
- package/src/components/icons/2DDistanceIcon.vue +0 -3
- package/src/components/icons/3DDistanceIcon.vue +0 -3
- package/src/components/icons/3DHeightIcon.vue +0 -3
- package/src/components/icons/CheckboxCheckedIcon.vue +4 -11
- package/src/components/icons/CheckboxIcon.vue +9 -2
- package/src/components/icons/CheckboxIndeterminateIcon.vue +4 -21
- package/src/components/icons/CommentIcon.vue +1 -5
- package/src/components/icons/ObliqueViewIcon.vue +6 -8
- package/src/components/icons/SimpleCircleOutlinedIcon.vue +1 -1
- package/src/components/icons/SplitViewIcon.vue +0 -4
- package/src/components/icons/ToolsIcon.vue +2 -4
- package/src/components/lists/VcsActionList.vue +0 -1
- package/src/components/lists/VcsList.vue +6 -25
- package/src/components/lists/VcsTreeview.vue +2 -2
- package/src/components/lists/VcsTreeviewLeaf.vue +3 -9
- package/src/components/lists/VcsTreeviewSearchbar.vue +4 -4
- package/src/components/notification/VcsBadge.vue +6 -2
- package/src/components/notification/VcsHelp.vue +39 -0
- package/src/components/tables/VcsTable.vue +70 -24
- package/src/featureInfo/AddressBalloonComponent.vue +1 -1
- package/src/featureInfo/BalloonComponent.vue +14 -9
- package/src/featureInfo/featureInfo.js +25 -7
- package/src/featureInfo/tableFeatureInfoView.js +4 -0
- package/src/i18n/de.js +5 -1
- package/src/i18n/en.js +5 -1
- package/src/legend/styleLegendItem.vue +24 -2
- package/src/legend/vcsLegend.vue +24 -31
- package/src/manager/toolbox/GroupToolboxComponent.vue +2 -3
- package/src/manager/toolbox/SelectToolboxComponent.vue +11 -5
- package/src/manager/toolbox/ToolboxManager.vue +0 -7
- package/src/manager/window/WindowComponent.vue +0 -1
- package/src/manager/window/WindowComponentHeader.vue +2 -2
- package/src/navigation/overviewMap.js +6 -15
- package/src/navigation/tiltSlider.vue +30 -6
- package/src/search/resultsComponent.vue +0 -1
- package/src/search/search.js +7 -17
- package/src/search/searchComponent.vue +6 -7
- package/src/styles/_theming.scss +72 -3
- package/src/styles/_typography.scss +0 -5
- package/src/styles/main.scss +1 -0
- package/src/styles/shades.scss +2 -0
- package/src/styles/variables.scss +40 -4
- package/src/uiConfig.js +1 -0
- package/src/vcsUiApp.js +5 -0
- package/src/vuePlugins/vuetify.js +59 -13
- package/dist/assets/ui.80175f.css +0 -1
- package/dist/assets/vuetify.efc158.css +0 -5
- /package/dist/assets/{cesium.49585c.js → cesium.88cffd.js} +0 -0
- /package/dist/assets/{vue.a08ab1.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 =
|
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
|
-
|
31
|
-
|
32
|
-
|
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
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
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
|
+
}
|