@vcmap/ui 6.0.0-rc.9 → 6.0.0
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/README.md +2 -0
- package/build/commonViteConfig.js +7 -0
- package/config/aerowest.config.json +12 -2
- package/config/analysis.config.json +17 -0
- package/config/base.config.json +16 -4
- package/config/components-show-case.config.json +53 -0
- package/config/concepts-show-case.config.json +39 -0
- package/config/dev.config.json +165 -104
- package/config/dynamic-layer.config.json +32 -0
- package/config/hello-world.config.json +11 -0
- package/config/projects.config.json +9 -1
- package/config/solar.config.json +65 -0
- package/config/vectorTile.config.json +70 -0
- package/config/www.config.json +33 -10
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core-ccecb5f4.js → core-a599e8b6.js} +7302 -6838
- package/dist/assets/core.js +1 -1
- package/dist/assets/{ol-3c6b9b5b.js → ol-21bbc740.js} +5057 -5178
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui-adeddc7d.css +1 -0
- package/dist/assets/{ui-8a8aef2a.js → ui-adeddc7d.js} +9687 -8940
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +1 -1
- package/dist/assets/{vuetify-ac50bfc8.js → vuetify-c0e02f11.js} +2507 -2504
- package/dist/assets/vuetify.js +1 -1
- package/index.d.ts +2 -0
- package/index.js +1 -0
- package/package.json +12 -12
- package/plugins/@vcmap-show-case/README.md +15 -6
- package/plugins/@vcmap-show-case/category-tester/package.json +1 -1
- package/plugins/@vcmap-show-case/category-tester/src/CollectionComponentOptions.vue +23 -23
- package/plugins/@vcmap-show-case/category-tester/src/FoobarEditor.vue +2 -8
- package/plugins/@vcmap-show-case/collection-manager-example/package.json +1 -1
- package/plugins/@vcmap-show-case/collection-manager-example/src/CollectionManagerExample.vue +10 -8
- package/plugins/@vcmap-show-case/context-menu-tester/package.json +1 -1
- package/plugins/@vcmap-show-case/extent-example/package.json +1 -1
- package/plugins/@vcmap-show-case/flight-component-example/package.json +1 -1
- package/plugins/@vcmap-show-case/form-inputs-example/package.json +1 -1
- package/plugins/@vcmap-show-case/hello-world/package.json +1 -1
- package/plugins/@vcmap-show-case/icons-example/package.json +1 -1
- package/plugins/@vcmap-show-case/notifier-tester/package.json +1 -1
- package/plugins/@vcmap-show-case/panel-tester/package.json +1 -1
- package/plugins/@vcmap-show-case/plugin-editors/package.json +1 -1
- package/plugins/@vcmap-show-case/plugin-editors/src/index.js +17 -6
- package/plugins/@vcmap-show-case/project-selector/package.json +1 -9
- package/plugins/@vcmap-show-case/project-selector/src/ModulesListComponent.vue +22 -31
- package/plugins/@vcmap-show-case/project-selector/src/ProjectSelectorComponent.vue +15 -23
- package/plugins/@vcmap-show-case/projection-example/README.md +3 -0
- package/plugins/@vcmap-show-case/projection-example/package.json +5 -0
- package/plugins/@vcmap-show-case/projection-example/src/ProjectionExample.vue +73 -0
- package/plugins/@vcmap-show-case/{table-example → projection-example}/src/index.js +22 -11
- package/plugins/@vcmap-show-case/search-example/package.json +1 -1
- package/plugins/@vcmap-show-case/simple-graph/package.json +1 -4
- package/plugins/@vcmap-show-case/style-input-example/package.json +1 -1
- package/plugins/@vcmap-show-case/switch-map-callback-example/README.md +2 -2
- package/plugins/@vcmap-show-case/switch-map-callback-example/package.json +2 -1
- package/plugins/@vcmap-show-case/switch-map-callback-example/src/index.js +4 -1
- package/plugins/@vcmap-show-case/theming-example/package.json +1 -1
- package/plugins/@vcmap-show-case/toolbox-example/package.json +1 -1
- package/plugins/@vcmap-show-case/vector-properties-example/package.json +1 -1
- package/plugins/@vcmap-show-case/viewpoint-component-example/package.json +1 -1
- package/plugins/@vcmap-show-case/window-tester/package.json +1 -1
- package/plugins/@vcmap-show-case/window-tester/src/WindowExample.vue +1 -1
- package/plugins/@vcmap-show-case/window-tester/src/WindowExampleToggleChild.vue +5 -1
- package/plugins/@vcmap-show-case/wizard-example/package.json +1 -1
- package/plugins/package.json +7 -3
- package/src/actions/flightActions.js +40 -20
- package/src/actions/listActions.d.ts +1 -1
- package/src/actions/listActions.js +1 -1
- package/src/application/VcsApp.vue +3 -0
- package/src/application/VcsApp.vue.d.ts +12 -0
- package/src/application/VcsAttributions.vue +1 -1
- package/src/application/VcsAttributionsFooter.vue +1 -1
- package/src/application/VcsContainer.vue +0 -1
- package/src/application/VcsContainer.vue.d.ts +12 -0
- package/src/application/VcsObliqueFooter.vue +110 -0
- package/src/application/VcsObliqueFooter.vue.d.ts +4 -0
- package/src/application/VcsTextPageFooter.vue +1 -0
- package/src/application/attributionsHelper.js +10 -6
- package/src/components/flight/VcsFlightPlayer.vue +26 -20
- package/src/components/form-inputs-controls/VcsDatePicker.vue +23 -3
- package/src/components/form-inputs-controls/VcsDatePicker.vue.d.ts +1 -1
- package/src/components/form-inputs-controls/VcsFileInput.vue +1 -1
- package/src/components/form-inputs-controls/VcsLabel.vue +10 -1
- package/src/components/form-inputs-controls/VcsLabel.vue.d.ts +9 -0
- package/src/components/form-inputs-controls/VcsRadio.vue +4 -0
- package/src/components/form-inputs-controls/VcsSelect.vue.d.ts +2 -2
- package/src/components/form-inputs-controls/VcsTextField.vue +1 -1
- package/src/components/form-inputs-controls/VcsWizardStep.vue.d.ts +2 -2
- package/src/components/import/VcsImportComponent.vue +3 -3
- package/src/components/lists/VcsActionList.vue +1 -1
- package/src/components/lists/VcsList.vue +42 -29
- package/src/components/lists/VcsListItemComponent.vue +1 -1
- package/src/components/lists/VcsListItemComponent.vue.d.ts +5 -32
- package/src/components/lists/VcsTreeview.vue +2 -0
- package/src/components/notification/VcsHelp.vue +0 -1
- package/src/components/notification/VcsHelpTooltip.vue +48 -0
- package/src/components/notification/VcsHelpTooltip.vue.d.ts +25 -0
- package/src/components/projection/VcsProjection.vue +329 -0
- package/src/components/projection/VcsProjection.vue.d.ts +7 -0
- package/src/components/section/VcsFormSection.vue +0 -1
- package/src/components/section/VcsFormSection.vue.d.ts +1 -1
- package/src/components/tables/VcsDataTable.vue +13 -2
- package/src/components/tables/VcsDataTable.vue.d.ts +12 -1
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue +17 -1
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue.d.ts +10 -1
- package/src/components/vector-properties/VcsFeatureTransforms.vue +39 -5
- package/src/components/vector-properties/VcsFeatureTransforms.vue.d.ts +2 -1
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +44 -24
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue.d.ts +27 -2
- package/src/components/viewpoint/VcsViewpointComponent.vue +6 -6
- package/src/contentTree/contentTreeCollection.js +12 -1
- package/src/featureInfo/abstractFeatureInfoView.d.ts +9 -0
- package/src/featureInfo/abstractFeatureInfoView.js +17 -1
- package/src/i18n/de.d.ts +90 -41
- package/src/i18n/de.js +63 -22
- package/src/i18n/en.d.ts +90 -41
- package/src/i18n/en.js +59 -18
- package/src/legend/StyleLegendItem.vue +1 -5
- package/src/legend/VcsLegend.vue +9 -10
- package/src/legend/VcsLegend.vue.d.ts +1 -1
- package/src/legend/legendHelper.js +6 -1
- package/src/manager/collectionManager/collectionComponentClass.js +4 -4
- package/src/manager/collectionManager/editorCollectionComponentClass.js +5 -3
- package/src/manager/toolbox/GroupToolboxComponent.vue +6 -1
- package/src/manager/toolbox/SelectToolboxComponent.vue +6 -2
- package/src/manager/toolbox/ToolboxManagerComponent.vue +7 -2
- package/src/manager/window/WindowComponentHeader.vue +1 -1
- package/src/navigation/MapNavCompass.vue +166 -140
- package/src/navigation/MapNavCompass.vue.d.ts +3 -1
- package/src/navigation/MapNavigation.vue +22 -5
- package/src/navigation/VcsCompass.vue +2 -1
- package/src/navigation/overviewMap.js +4 -1
- package/src/styles/main.scss +2 -2
- package/src/uiConfig.d.ts +27 -0
- package/src/uiConfig.js +3 -0
- package/src/vuePlugins/vuetify.js +2 -0
- package/dist/assets/ui-8a8aef2a.css +0 -1
- package/plugins/@vcmap-show-case/buttons-example/README.md +0 -4
- package/plugins/@vcmap-show-case/buttons-example/package.json +0 -5
- package/plugins/@vcmap-show-case/buttons-example/src/ButtonsExample.vue +0 -281
- package/plugins/@vcmap-show-case/buttons-example/src/index.js +0 -51
- package/plugins/@vcmap-show-case/config-editor/README.md +0 -3
- package/plugins/@vcmap-show-case/config-editor/package.json +0 -5
- package/plugins/@vcmap-show-case/config-editor/src/ConfigEditor.vue +0 -62
- package/plugins/@vcmap-show-case/config-editor/src/index.js +0 -49
- package/plugins/@vcmap-show-case/list-example/README.md +0 -3
- package/plugins/@vcmap-show-case/list-example/package.json +0 -5
- package/plugins/@vcmap-show-case/list-example/src/ListExample.vue +0 -406
- package/plugins/@vcmap-show-case/list-example/src/index.js +0 -46
- package/plugins/@vcmap-show-case/table-example/README.md +0 -3
- package/plugins/@vcmap-show-case/table-example/package.json +0 -5
- package/plugins/@vcmap-show-case/table-example/src/DataTableExample.vue +0 -203
- package/plugins/@vcmap-show-case/textfields-example/README.md +0 -3
- package/plugins/@vcmap-show-case/textfields-example/package.json +0 -5
- package/plugins/@vcmap-show-case/textfields-example/src/TextfieldsExample.vue +0 -115
- package/plugins/@vcmap-show-case/textfields-example/src/index.js +0 -64
- /package/dist/assets/{cesium-a21a380a.js → cesium-00deba88.js} +0 -0
- /package/dist/assets/{vue-bcc58dd1.js → vue-8269279d.js} +0 -0
- /package/dist/assets/{vuetify-ac50bfc8.css → vuetify-c0e02f11.css} +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<v-container class="py-0 px-1 vcs-flight-player">
|
3
|
-
<VcsLabel>{{ $t('flight.player') }}</VcsLabel>
|
3
|
+
<VcsLabel html-for="player">{{ $t('flight.player') }}</VcsLabel>
|
4
4
|
<VcsSlider
|
5
5
|
v-if="clock"
|
6
6
|
type="number"
|
@@ -94,30 +94,36 @@
|
|
94
94
|
);
|
95
95
|
|
96
96
|
let clockChangedListener = () => {};
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
);
|
97
|
+
let playerChangedListener = () => {};
|
98
|
+
|
99
|
+
function syncPlayer(player) {
|
100
|
+
if (player?.flightInstanceName === flightInstance.name) {
|
101
|
+
isCurrentPlayer.value = true;
|
102
|
+
flightInstancePlayer = player;
|
103
|
+
syncClocks(clock, player.clock);
|
104
|
+
clockChangedListener = player.clock.changed.addEventListener(
|
105
|
+
(changed) => {
|
106
|
+
syncClocks(clock, changed);
|
107
|
+
},
|
108
|
+
);
|
109
|
+
} else {
|
110
|
+
isCurrentPlayer.value = false;
|
111
|
+
flightInstancePlayer = undefined;
|
112
|
+
clock.value = getDefaultClock();
|
113
|
+
}
|
114
|
+
}
|
116
115
|
|
117
116
|
onMounted(async () => {
|
118
117
|
flightInstancePlayer =
|
119
118
|
await app.flights.setPlayerForFlight(flightInstance);
|
119
|
+
syncPlayer(flightInstancePlayer);
|
120
120
|
syncClocks(clock, flightInstancePlayer.clock);
|
121
|
+
playerChangedListener = app.flights.playerChanged.addEventListener(
|
122
|
+
(player) => {
|
123
|
+
clockChangedListener();
|
124
|
+
syncPlayer(player);
|
125
|
+
},
|
126
|
+
);
|
121
127
|
});
|
122
128
|
|
123
129
|
onUnmounted(() => {
|
@@ -31,11 +31,10 @@
|
|
31
31
|
</template>
|
32
32
|
<style lang="scss" scoped></style>
|
33
33
|
<script>
|
34
|
-
import { computed, ref } from 'vue';
|
34
|
+
import { computed, ref, watch } from 'vue';
|
35
35
|
import { VMenu, VDatePicker, VBtn } from 'vuetify/components';
|
36
36
|
import { useI18n } from 'vue-i18n';
|
37
37
|
import VcsTextField from './VcsTextField.vue';
|
38
|
-
import { useProxiedAtomicModel } from '../modelHelper.js';
|
39
38
|
|
40
39
|
/**
|
41
40
|
* @description stylized wrapper around {@link https://vuetifyjs.com/en/components/date-pickers/#internationalization}.
|
@@ -63,8 +62,29 @@
|
|
63
62
|
emits: ['update:modelValue'],
|
64
63
|
setup(props, { emit }) {
|
65
64
|
const i18n = useI18n();
|
66
|
-
const localValue = useProxiedAtomicModel(props, 'modelValue', emit);
|
67
65
|
const menuOpen = ref(false);
|
66
|
+
const internal = ref(props.modelValue);
|
67
|
+
|
68
|
+
watch(
|
69
|
+
() => props.modelValue,
|
70
|
+
(newValue) => {
|
71
|
+
if (!menuOpen.value) {
|
72
|
+
internal.value = newValue;
|
73
|
+
}
|
74
|
+
},
|
75
|
+
);
|
76
|
+
|
77
|
+
const localValue = computed({
|
78
|
+
get() {
|
79
|
+
return internal.value;
|
80
|
+
},
|
81
|
+
set(newValue) {
|
82
|
+
if (internal.value?.getTime() !== newValue?.getTime()) {
|
83
|
+
internal.value = newValue;
|
84
|
+
emit('update:modelValue', newValue);
|
85
|
+
}
|
86
|
+
},
|
87
|
+
});
|
68
88
|
|
69
89
|
const formatDate = (date) => {
|
70
90
|
if (date) {
|
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
9
9
|
};
|
10
10
|
}, {
|
11
11
|
formattedDate: import("vue").WritableComputedRef<string>;
|
12
|
-
localValue: import("vue").
|
12
|
+
localValue: import("vue").WritableComputedRef<Date>;
|
13
13
|
menuOpen: import("vue").Ref<boolean>;
|
14
14
|
formatDate: (date: any) => string;
|
15
15
|
goToToday: () => void;
|
@@ -17,6 +17,9 @@
|
|
17
17
|
:text="$st(labelTooltip)"
|
18
18
|
></v-tooltip>
|
19
19
|
</span>
|
20
|
+
<vcs-help-tooltip :text="helpText" v-if="helpText || $slots.help">
|
21
|
+
<slot name="help" />
|
22
|
+
</vcs-help-tooltip>
|
20
23
|
</label>
|
21
24
|
</template>
|
22
25
|
|
@@ -38,7 +41,7 @@
|
|
38
41
|
height: calc(var(--v-vcs-font-size) * 2 - 2px);
|
39
42
|
font-size: var(--v-vcs-font-size);
|
40
43
|
}
|
41
|
-
.vcs-label-required:after {
|
44
|
+
.vcs-label-required .ellipsis-text:after {
|
42
45
|
content: ' *';
|
43
46
|
color: rgb(var(--v-theme-error));
|
44
47
|
}
|
@@ -50,6 +53,7 @@
|
|
50
53
|
import { VTooltip } from 'vuetify/components';
|
51
54
|
import { computed, ref } from 'vue';
|
52
55
|
import { createEllipseTooltip, usePadding } from '../composables.js';
|
56
|
+
import VcsHelpTooltip from '../notification/VcsHelpTooltip.vue';
|
53
57
|
|
54
58
|
/**
|
55
59
|
* @description Stylized wrapper around {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label |label label}.
|
@@ -63,6 +67,7 @@
|
|
63
67
|
export default {
|
64
68
|
name: 'VcsLabel',
|
65
69
|
components: {
|
70
|
+
VcsHelpTooltip,
|
66
71
|
VTooltip,
|
67
72
|
},
|
68
73
|
props: {
|
@@ -86,6 +91,10 @@
|
|
86
91
|
type: String,
|
87
92
|
default: 'right',
|
88
93
|
},
|
94
|
+
helpText: {
|
95
|
+
type: String,
|
96
|
+
default: undefined,
|
97
|
+
},
|
89
98
|
},
|
90
99
|
setup(props, { attrs }) {
|
91
100
|
const paddingProvided = usePadding(attrs);
|
@@ -19,6 +19,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
19
19
|
type: StringConstructor;
|
20
20
|
default: string;
|
21
21
|
};
|
22
|
+
helpText: {
|
23
|
+
type: StringConstructor;
|
24
|
+
default: undefined;
|
25
|
+
};
|
22
26
|
}, {
|
23
27
|
paddingProvided: import("vue").ComputedRef<boolean>;
|
24
28
|
labelTooltip: import("vue").ComputedRef<string>;
|
@@ -44,11 +48,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
44
48
|
type: StringConstructor;
|
45
49
|
default: string;
|
46
50
|
};
|
51
|
+
helpText: {
|
52
|
+
type: StringConstructor;
|
53
|
+
default: undefined;
|
54
|
+
};
|
47
55
|
}>>, {
|
48
56
|
disabled: boolean;
|
49
57
|
required: boolean;
|
50
58
|
tooltip: string;
|
51
59
|
tooltipPosition: string;
|
52
60
|
htmlFor: string;
|
61
|
+
helpText: string;
|
53
62
|
}, {}>;
|
54
63
|
export default _default;
|
@@ -57,6 +57,10 @@
|
|
57
57
|
:deep(.v-selection-control__input::before) {
|
58
58
|
background-color: transparent;
|
59
59
|
}
|
60
|
+
:deep(.v-icon--size-default) {
|
61
|
+
font-size: calc(var(--v-vcs-font-size) + 3px);
|
62
|
+
padding-right: 2px;
|
63
|
+
}
|
60
64
|
// remove details
|
61
65
|
:deep(.v-input__details) {
|
62
66
|
display: none;
|
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
default: boolean;
|
5
5
|
};
|
6
6
|
modelValue: {
|
7
|
-
type: (BooleanConstructor |
|
7
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor | ArrayConstructor)[];
|
8
8
|
default(rawProps: any): never[] | null;
|
9
9
|
};
|
10
10
|
tooltip: {
|
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
34
34
|
default: boolean;
|
35
35
|
};
|
36
36
|
modelValue: {
|
37
|
-
type: (BooleanConstructor |
|
37
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor | ArrayConstructor)[];
|
38
38
|
default(rawProps: any): never[] | null;
|
39
39
|
};
|
40
40
|
tooltip: {
|
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
default: boolean;
|
5
5
|
};
|
6
6
|
modelValue: {
|
7
|
-
type: (BooleanConstructor |
|
7
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor | ArrayConstructor)[];
|
8
8
|
default(rawProps: any): 0 | never[];
|
9
9
|
};
|
10
10
|
step: {
|
@@ -51,7 +51,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
51
51
|
default: boolean;
|
52
52
|
};
|
53
53
|
modelValue: {
|
54
|
-
type: (BooleanConstructor |
|
54
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor | ArrayConstructor)[];
|
55
55
|
default(rawProps: any): 0 | never[];
|
56
56
|
};
|
57
57
|
step: {
|
@@ -13,15 +13,15 @@
|
|
13
13
|
v-model="files"
|
14
14
|
/>
|
15
15
|
<div class="d-flex justify-end gc-1 mx-3 pt-2 pb-1">
|
16
|
-
<vcs-form-button @click="$emit('close')">
|
17
|
-
{{ $t('components.cancel') }}
|
18
|
-
</vcs-form-button>
|
19
16
|
<vcs-form-button
|
20
17
|
variant="filled"
|
21
18
|
:disabled="files.length === 0"
|
22
19
|
@click="doImport"
|
23
20
|
>{{ $t('components.import.submit') }}</vcs-form-button
|
24
21
|
>
|
22
|
+
<vcs-form-button @click="$emit('close')">
|
23
|
+
{{ $t('components.cancel') }}
|
24
|
+
</vcs-form-button>
|
25
25
|
</div>
|
26
26
|
</v-card>
|
27
27
|
</template>
|
@@ -86,6 +86,7 @@
|
|
86
86
|
getCurrentInstance,
|
87
87
|
inject,
|
88
88
|
isReactive,
|
89
|
+
reactive,
|
89
90
|
ref,
|
90
91
|
shallowRef,
|
91
92
|
watch,
|
@@ -109,36 +110,48 @@
|
|
109
110
|
* @returns {Array<import("../../actions/actionHelper.js").VcsAction>}
|
110
111
|
*/
|
111
112
|
export function createSelectionActions(items, selected, emit) {
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
113
|
+
const selectAllAction = reactive({
|
114
|
+
name: 'list.selectAll',
|
115
|
+
tooltip: 'list.selectAll',
|
116
|
+
disabled: items.value.length - selected.value.length < 1,
|
117
|
+
callback() {
|
118
|
+
const currentSelection = [...selected.value];
|
119
|
+
selected.value = items.value.filter((item) => !item.disabled);
|
119
120
|
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
},
|
121
|
+
selected.value.forEach((item) => {
|
122
|
+
if (item.selectionChanged && !currentSelection.includes(item)) {
|
123
|
+
item.selectionChanged(true);
|
124
|
+
}
|
125
|
+
});
|
126
|
+
emit('update:modelValue', selected.value);
|
127
127
|
},
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
128
|
+
});
|
129
|
+
const clearSelectionAction = reactive({
|
130
|
+
name: 'list.clearSelection',
|
131
|
+
tooltip: 'list.clearSelection',
|
132
|
+
disabled: selected.value.length < 1,
|
133
|
+
callback() {
|
134
|
+
[...selected.value].forEach((item) => {
|
135
|
+
if (item.selectionChanged) {
|
136
|
+
item.selectionChanged(false);
|
137
|
+
}
|
138
|
+
});
|
139
|
+
selected.value = [];
|
140
|
+
emit('update:modelValue', selected.value);
|
140
141
|
},
|
141
|
-
|
142
|
+
});
|
143
|
+
|
144
|
+
watch(
|
145
|
+
[items, selected],
|
146
|
+
() => {
|
147
|
+
selectAllAction.disabled =
|
148
|
+
items.value.length - selected.value.length < 1;
|
149
|
+
clearSelectionAction.disabled = selected.value.length < 1;
|
150
|
+
},
|
151
|
+
{ deep: false, immediate: true },
|
152
|
+
);
|
153
|
+
|
154
|
+
return [selectAllAction, clearSelectionAction];
|
142
155
|
}
|
143
156
|
|
144
157
|
/**
|
@@ -572,7 +585,7 @@
|
|
572
585
|
}
|
573
586
|
&:hover {
|
574
587
|
.v-list-item__overlay {
|
575
|
-
background-color: rgb(var(--v-theme-
|
588
|
+
background-color: rgb(var(--v-theme-on-surface));
|
576
589
|
}
|
577
590
|
}
|
578
591
|
.vcs-list-title__selected {
|
@@ -593,7 +606,7 @@
|
|
593
606
|
|
594
607
|
&:hover {
|
595
608
|
.v-list-item__overlay {
|
596
|
-
background-color:
|
609
|
+
background-color: rgb(var(--v-theme-on-surface));
|
597
610
|
}
|
598
611
|
}
|
599
612
|
}
|
@@ -3,38 +3,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}
|
|
3
3
|
readonly [x: string]: any;
|
4
4
|
};
|
5
5
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
6
|
-
prepend?(_:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
select: (value: boolean) => void;
|
12
|
-
}): any;
|
13
|
-
title?(_: {
|
14
|
-
tooltip: string;
|
15
|
-
title?: string | number | undefined;
|
16
|
-
}): any;
|
17
|
-
subtitle?(_: {
|
18
|
-
subtitle?: string | number | undefined;
|
19
|
-
}): any;
|
20
|
-
default?(_: {
|
21
|
-
tooltip: string;
|
22
|
-
isActive: boolean;
|
23
|
-
isOpen: boolean;
|
24
|
-
isSelected: boolean;
|
25
|
-
isIndeterminate: boolean;
|
26
|
-
select: (value: boolean) => void;
|
27
|
-
}): any;
|
28
|
-
append?(_: {
|
29
|
-
item: any;
|
30
|
-
actions: any[];
|
31
|
-
actionButtonListOverflowCount: any;
|
32
|
-
isActive: boolean;
|
33
|
-
isOpen: boolean;
|
34
|
-
isSelected: boolean;
|
35
|
-
isIndeterminate: boolean;
|
36
|
-
select: (value: boolean) => void;
|
37
|
-
}): any;
|
6
|
+
prepend?(_: any): any;
|
7
|
+
title?(_: any): any;
|
8
|
+
subtitle?(_: any): any;
|
9
|
+
default?(_: any): any;
|
10
|
+
append?(_: any): any;
|
38
11
|
}>;
|
39
12
|
export default _default;
|
40
13
|
export type VcsListItem = {
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<template>
|
2
|
+
<v-tooltip class="vcs-help-tooltip">
|
3
|
+
<template #activator="{ props }">
|
4
|
+
<v-icon :size="fontSize" v-bind="props" :icon="icon" />
|
5
|
+
</template>
|
6
|
+
<v-container class="py-1 px-2 vcs-help-tooltip-container">
|
7
|
+
<slot>
|
8
|
+
<span class="vcs-help-tooltip-text">{{ $st(text) }}</span>
|
9
|
+
</slot>
|
10
|
+
</v-container>
|
11
|
+
</v-tooltip>
|
12
|
+
</template>
|
13
|
+
<style lang="scss" scoped></style>
|
14
|
+
<script>
|
15
|
+
import { VTooltip, VIcon, VContainer } from 'vuetify/components';
|
16
|
+
import { useFontSize } from '../../vuePlugins/vuetify.js';
|
17
|
+
|
18
|
+
/**
|
19
|
+
* @description A component for displaying help as tooltip via an icon.
|
20
|
+
* @vue-data {slot} [#default] - Slot to specify html based help. Gets precedence over text prop.
|
21
|
+
* @vue-prop {string} [text] - Optional help text. Must be plain string. Use 'help' slot for html based help texts. Help slot has precedence over text prop.
|
22
|
+
*/
|
23
|
+
export default {
|
24
|
+
name: 'VcsHelpTooltip',
|
25
|
+
components: {
|
26
|
+
VTooltip,
|
27
|
+
VIcon,
|
28
|
+
VContainer,
|
29
|
+
},
|
30
|
+
props: {
|
31
|
+
icon: {
|
32
|
+
type: String,
|
33
|
+
default: '$vcsHelp',
|
34
|
+
},
|
35
|
+
text: {
|
36
|
+
type: String,
|
37
|
+
default: undefined,
|
38
|
+
},
|
39
|
+
},
|
40
|
+
setup() {
|
41
|
+
const fontSize = useFontSize();
|
42
|
+
|
43
|
+
return {
|
44
|
+
fontSize,
|
45
|
+
};
|
46
|
+
},
|
47
|
+
};
|
48
|
+
</script>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
icon: {
|
3
|
+
type: StringConstructor;
|
4
|
+
default: string;
|
5
|
+
};
|
6
|
+
text: {
|
7
|
+
type: StringConstructor;
|
8
|
+
default: undefined;
|
9
|
+
};
|
10
|
+
}, {
|
11
|
+
fontSize: import("vue").ComputedRef<number>;
|
12
|
+
}, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
13
|
+
icon: {
|
14
|
+
type: StringConstructor;
|
15
|
+
default: string;
|
16
|
+
};
|
17
|
+
text: {
|
18
|
+
type: StringConstructor;
|
19
|
+
default: undefined;
|
20
|
+
};
|
21
|
+
}>>, {
|
22
|
+
text: string;
|
23
|
+
icon: string;
|
24
|
+
}, {}>;
|
25
|
+
export default _default;
|