@vcmap/ui 6.0.0-rc.7 → 6.0.0-rc.9
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 -1
- package/config/base.config.json +3 -1
- package/config/dev.config.json +1 -3
- package/config/www.config.json +1 -3
- package/dist/assets/{cesium-2afc3568.js → cesium-a21a380a.js} +4672 -4704
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core-3fd82bc2.js → core-ccecb5f4.js} +4953 -4782
- package/dist/assets/core.js +1 -1
- package/dist/assets/{ol-edf7bfb3.js → ol-3c6b9b5b.js} +12074 -11458
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui-8a8aef2a.css +1 -0
- package/dist/assets/{ui-c6eb55a5.js → ui-8a8aef2a.js} +6906 -6784
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +1 -1
- package/dist/assets/{vuetify-c3b6c9b3.css → vuetify-ac50bfc8.css} +1 -1
- package/dist/assets/{vuetify-c3b6c9b3.js → vuetify-ac50bfc8.js} +4795 -4779
- package/dist/assets/vuetify.js +1 -1
- package/index.d.ts +2 -0
- package/index.js +1 -0
- package/lib/olLib.js +6 -0
- package/package.json +4 -4
- package/plugins/@vcmap-show-case/list-example/src/ListExample.vue +5 -2
- package/plugins/@vcmap-show-case/plugin-editors/src/PluginEditors.vue +3 -4
- package/plugins/package.json +19 -3
- package/src/actions/StyleSelector.vue +1 -1
- package/src/application/VcsApp.vue +29 -1
- package/src/application/VcsApp.vue.d.ts +8 -1
- package/src/application/VcsAppWrapper.vue +1 -1
- package/src/application/VcsAttributions.vue +1 -1
- package/src/application/VcsAttributionsFooter.vue +3 -1
- package/src/application/VcsContainer.vue.d.ts +8 -1
- package/src/application/VcsMainMap.vue +1 -1
- package/src/application/VcsMap.vue +1 -0
- package/src/application/VcsNavbar.vue +1 -1
- package/src/application/VcsPositionDisplay.vue +3 -3
- package/src/application/VcsSettings.vue +1 -1
- package/src/application/VcsSplashScreen.vue +1 -0
- package/src/application/VcsTextPage.vue +1 -1
- package/src/application/VcsTextPageFooter.vue +3 -1
- package/src/components/buttons/VcsActionButtonList.vue +5 -1
- package/src/components/buttons/VcsButton.vue +5 -5
- package/src/components/buttons/VcsButton.vue.d.ts +1 -1
- package/src/components/buttons/VcsFormButton.vue +4 -4
- package/src/components/buttons/VcsFormButton.vue.d.ts +1 -1
- package/src/components/buttons/VcsToolButton.vue +4 -4
- package/src/components/buttons/VcsToolButton.vue.d.ts +1 -1
- package/src/components/composables.d.ts +2 -2
- package/src/components/composables.js +3 -5
- package/src/components/extent/VcsExtent.vue +1 -1
- package/src/components/extent/VcsExtentEditor.vue +1 -0
- package/src/components/flight/VcsFlightAnchorsComponent.vue +1 -0
- package/src/components/flight/VcsFlightComponent.vue +1 -1
- package/src/components/flight/VcsFlightEditor.vue +1 -0
- package/src/components/flight/VcsFlightPlayer.vue +1 -1
- package/src/components/form-inputs-controls/VcsCheckbox.vue +11 -5
- package/src/components/form-inputs-controls/VcsCheckbox.vue.d.ts +10 -1
- package/src/components/form-inputs-controls/VcsFileInput.vue +2 -2
- package/src/components/form-inputs-controls/VcsFileInput.vue.d.ts +1 -1
- package/src/components/form-inputs-controls/VcsSelect.vue +2 -2
- package/src/components/form-inputs-controls/VcsSelect.vue.d.ts +1 -1
- package/src/components/form-inputs-controls/VcsSlider.vue +2 -2
- package/src/components/form-inputs-controls/VcsSlider.vue.d.ts +1 -1
- package/src/components/form-inputs-controls/VcsTextArea.vue +2 -2
- package/src/components/form-inputs-controls/VcsTextArea.vue.d.ts +1 -1
- package/src/components/form-inputs-controls/VcsTextField.vue +3 -3
- package/src/components/form-inputs-controls/VcsTextField.vue.d.ts +1 -1
- package/src/components/form-inputs-controls/VcsWizard.vue +3 -3
- package/src/components/form-inputs-controls/VcsWizard.vue.d.ts +1 -1
- package/src/components/form-inputs-controls/VcsWizardStep.vue +3 -2
- package/src/components/form-inputs-controls/VcsWizardStep.vue.d.ts +1 -1
- package/src/components/form-output/VcsMarkdown.vue +1 -1
- package/src/components/import/VcsFileDrop.vue +1 -1
- package/src/components/import/VcsImportComponent.vue +1 -1
- package/src/components/lists/VcsList.vue +14 -10
- package/src/components/lists/VcsListItemComponent.vue +18 -12
- package/src/components/lists/VcsListItemComponent.vue.d.ts +9 -5
- package/src/components/lists/VcsTreeview.vue +2 -2
- package/src/components/lists/VcsTreeview.vue.d.ts +1 -1
- package/src/components/lists/VcsTreeviewSearchbar.vue +1 -1
- package/src/components/lists/VcsTreeviewTitle.vue +1 -1
- package/src/components/notification/VcsBadge.vue +2 -2
- package/src/components/notification/VcsHelp.vue +1 -1
- package/src/components/plugins/AbstractConfigEditor.vue +1 -1
- package/src/components/section/VcsExpansionPanel.vue +5 -1
- package/src/components/style/MenuWrapper.vue +1 -1
- package/src/components/style/VcsFeatureStyleComponent.vue +1 -0
- package/src/components/style/VcsFillMenu.vue +1 -0
- package/src/components/style/VcsFillSelector.vue +1 -0
- package/src/components/style/VcsImageMenu.vue +1 -0
- package/src/components/style/VcsImageSelector.vue +1 -1
- package/src/components/style/VcsStrokeMenu.vue +1 -0
- package/src/components/style/VcsStrokeSelector.vue +1 -1
- package/src/components/style/VcsTextMenu.vue +1 -0
- package/src/components/style/VcsTextSelector.vue +1 -1
- package/src/components/style/VcsVectorStyleComponent.vue +1 -1
- package/src/components/tables/VcsDataTable.vue +3 -3
- package/src/components/tables/VcsDataTable.vue.d.ts +1 -1
- package/src/components/tables/VcsTable.vue +1 -0
- package/src/components/tables/VcsTableCell.vue +1 -1
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue +1 -1
- package/src/components/vector-properties/VcsFeatureTransforms.vue +1 -1
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +1 -0
- package/src/components/viewpoint/VcsViewpointComponent.vue +1 -1
- package/src/components/viewpoint/VcsViewpointEditor.vue +1 -0
- package/src/contentTree/LayerTree.vue +1 -1
- package/src/contentTree/obliqueCollectionContentTreeItem.js +6 -1
- package/src/featureInfo/AddressBalloonComponent.vue +1 -1
- package/src/featureInfo/BalloonComponent.vue +1 -1
- package/src/featureInfo/IframeComponent.vue +6 -1
- package/src/featureInfo/MarkdownBalloonComponent.vue +1 -1
- package/src/featureInfo/abstractFeatureInfoView.js +3 -2
- package/src/i18n/de.d.ts +35 -30
- package/src/i18n/de.js +5 -0
- package/src/i18n/en.d.ts +35 -30
- package/src/i18n/en.js +5 -0
- package/src/legend/StyleLegendItem.vue +1 -1
- package/src/legend/VcsLegend.vue +1 -1
- package/src/manager/collectionManager/CollectionComponent.vue +1 -0
- package/src/manager/collectionManager/collectionComponentClass.js +5 -1
- package/src/manager/contextMenu/ContextMenuComponent.vue +1 -1
- package/src/manager/panel/PanelManagerComponent.vue +2 -2
- package/src/manager/toolbox/GroupToolboxComponent.vue +2 -2
- package/src/manager/toolbox/SelectToolboxComponent.vue +2 -2
- package/src/manager/toolbox/ToolboxManagerComponent.vue +13 -2
- package/src/manager/window/WindowComponent.vue +1 -1
- package/src/manager/window/WindowManager.vue +4 -1
- package/src/manager/window/windowManager.d.ts +59 -3
- package/src/manager/window/windowManager.js +23 -2
- package/src/navigation/MapNavigation.vue +4 -1
- package/src/navigation/ObliqueRotation.vue +2 -2
- package/src/navigation/OrientationToolsButton.vue +1 -1
- package/src/navigation/TiltSlider.vue +1 -0
- package/src/navigation/VcsCompass.vue +1 -1
- package/src/navigation/VcsZoomButton.vue +1 -1
- package/src/notifier/NotifierComponent.vue +1 -1
- package/src/obliqueFallbackWarnings.d.ts +5 -0
- package/src/obliqueFallbackWarnings.js +54 -0
- package/src/search/ResultItem.vue +1 -1
- package/src/search/ResultsComponent.vue +1 -1
- package/src/search/SearchComponent.vue +3 -1
- package/src/uiConfig.d.ts +16 -4
- package/src/uiConfig.js +3 -2
- package/src/vcsUiApp.d.ts +43 -17
- package/src/vcsUiApp.js +17 -11
- package/src/vuePlugins/i18n.js +1 -0
- package/dist/assets/ui-c6eb55a5.css +0 -1
- /package/dist/assets/{vue-aefad438.js → vue-bcc58dd1.js} +0 -0
@@ -11,8 +11,10 @@
|
|
11
11
|
}"
|
12
12
|
v-bind="$attrs"
|
13
13
|
>
|
14
|
-
<template #label="scope">
|
15
|
-
<
|
14
|
+
<template #label="scope" v-if="label || $slots.label">
|
15
|
+
<span class="pl-1">
|
16
|
+
<slot name="label" v-bind="scope ?? {}">{{ $st(label) }}</slot>
|
17
|
+
</span>
|
16
18
|
</template>
|
17
19
|
<template v-for="slot of forwardSlots" #[slot]="scope">
|
18
20
|
<slot :name="slot" v-bind="scope ?? {}" />
|
@@ -61,14 +63,14 @@
|
|
61
63
|
<script>
|
62
64
|
import { ref } from 'vue';
|
63
65
|
import { VCheckbox, VTooltip } from 'vuetify/components';
|
64
|
-
import {
|
66
|
+
import { getForwardSlots, usePadding } from '../composables.js';
|
65
67
|
|
66
68
|
/**
|
67
69
|
* @description Stylized wrapper around {@link https://vuetifyjs.com/en/api/v-checkbox/ |vuetify checkbox}.
|
68
70
|
* Provides VTooltip to show error messages
|
69
71
|
* @vue-prop {string} [tooltip] - A message to be displayed when there is no error.
|
70
72
|
* @vue-prop {('bottom' | 'left' | 'top' | 'right')} [tooltipPosition='right'] - Position of the error tooltip, see {@link https://vuetifyjs.com/en/api/v-tooltip/#props-location | vuetify tooltip}.
|
71
|
-
* @vue-prop {string} label - Label to be displayed, will be translated.
|
73
|
+
* @vue-prop {string} [label] - Label to be displayed, will be translated.
|
72
74
|
* @vue-data {slot} [#label] - slot to pass html for Checkbox label. Overrides label passed as prop.
|
73
75
|
*/
|
74
76
|
export default {
|
@@ -87,12 +89,16 @@
|
|
87
89
|
type: String,
|
88
90
|
default: 'right',
|
89
91
|
},
|
92
|
+
label: {
|
93
|
+
type: String,
|
94
|
+
default: undefined,
|
95
|
+
},
|
90
96
|
},
|
91
97
|
setup(props, { attrs, slots }) {
|
92
98
|
const checkbox = ref();
|
93
99
|
const errorTooltip = ref();
|
94
100
|
const paddingProvided = usePadding(attrs);
|
95
|
-
const forwardSlots =
|
101
|
+
const forwardSlots = getForwardSlots(slots, ['label', 'message']);
|
96
102
|
return {
|
97
103
|
forwardSlots,
|
98
104
|
paddingProvided,
|
@@ -7,8 +7,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
7
7
|
type: StringConstructor;
|
8
8
|
default: string;
|
9
9
|
};
|
10
|
+
label: {
|
11
|
+
type: StringConstructor;
|
12
|
+
default: undefined;
|
13
|
+
};
|
10
14
|
}, {
|
11
|
-
forwardSlots:
|
15
|
+
forwardSlots: string[];
|
12
16
|
paddingProvided: import("vue").ComputedRef<boolean>;
|
13
17
|
checkbox: import("vue").Ref<any>;
|
14
18
|
errorTooltip: import("vue").Ref<any>;
|
@@ -21,7 +25,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
25
|
type: StringConstructor;
|
22
26
|
default: string;
|
23
27
|
};
|
28
|
+
label: {
|
29
|
+
type: StringConstructor;
|
30
|
+
default: undefined;
|
31
|
+
};
|
24
32
|
}>>, {
|
33
|
+
label: string;
|
25
34
|
tooltip: string;
|
26
35
|
tooltipPosition: string;
|
27
36
|
}, {}>;
|
@@ -53,7 +53,7 @@
|
|
53
53
|
<script>
|
54
54
|
import { ref } from 'vue';
|
55
55
|
import { VFileInput, VTooltip } from 'vuetify/components';
|
56
|
-
import {
|
56
|
+
import { getForwardSlots, usePadding } from '../composables.js';
|
57
57
|
|
58
58
|
/**
|
59
59
|
* @description extends API of {@link https://vuetifyjs.com/en/api/v-file-input v-text-field}.
|
@@ -86,7 +86,7 @@
|
|
86
86
|
const errorTooltipRef = ref();
|
87
87
|
|
88
88
|
const paddingProvided = usePadding(attrs);
|
89
|
-
const forwardSlots =
|
89
|
+
const forwardSlots = getForwardSlots(slots, ['append-inner', 'message']);
|
90
90
|
|
91
91
|
return {
|
92
92
|
forwardSlots,
|
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
8
8
|
default: string;
|
9
9
|
};
|
10
10
|
}, {
|
11
|
-
forwardSlots:
|
11
|
+
forwardSlots: string[];
|
12
12
|
paddingProvided: import("vue").ComputedRef<boolean>;
|
13
13
|
fileInputRef: import("vue").Ref<any>;
|
14
14
|
errorTooltipRef: import("vue").Ref<any>;
|
@@ -141,7 +141,7 @@
|
|
141
141
|
<script>
|
142
142
|
import { VSelect, VTooltip, VListItem } from 'vuetify/components';
|
143
143
|
import { computed, ref } from 'vue';
|
144
|
-
import {
|
144
|
+
import { getForwardSlots, usePadding } from '../composables.js';
|
145
145
|
import VcsCheckbox from './VcsCheckbox.vue';
|
146
146
|
import { useProxiedComplexModel } from '../modelHelper.js';
|
147
147
|
|
@@ -213,7 +213,7 @@
|
|
213
213
|
return props.multiple;
|
214
214
|
});
|
215
215
|
const paddingProvided = usePadding(attrs);
|
216
|
-
const forwardSlots =
|
216
|
+
const forwardSlots = getForwardSlots(slots, ['append-inner', 'message']);
|
217
217
|
|
218
218
|
return {
|
219
219
|
forwardSlots,
|
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
20
20
|
default: undefined;
|
21
21
|
};
|
22
22
|
}, {
|
23
|
-
forwardSlots:
|
23
|
+
forwardSlots: string[];
|
24
24
|
localModelValue: import("vue").Ref<any>;
|
25
25
|
additionalItems: import("vue").ComputedRef<number>;
|
26
26
|
isMultiple: import("vue").ComputedRef<boolean>;
|
@@ -76,7 +76,7 @@
|
|
76
76
|
<script>
|
77
77
|
import { computed, ref } from 'vue';
|
78
78
|
import { VSlider, VTooltip } from 'vuetify/components';
|
79
|
-
import {
|
79
|
+
import { getForwardSlots, usePadding } from '../composables.js';
|
80
80
|
import { useFontSize } from '../../vuePlugins/vuetify.js';
|
81
81
|
|
82
82
|
/**
|
@@ -112,7 +112,7 @@
|
|
112
112
|
return trackSize.value * 2;
|
113
113
|
});
|
114
114
|
const paddingProvided = usePadding(attrs);
|
115
|
-
const forwardSlots =
|
115
|
+
const forwardSlots = getForwardSlots(slots, ['append']);
|
116
116
|
const sliderRef = ref();
|
117
117
|
return {
|
118
118
|
hasAppendSlot: computed(() => {
|
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
9
9
|
};
|
10
10
|
}, {
|
11
11
|
hasAppendSlot: import("vue").ComputedRef<boolean>;
|
12
|
-
forwardSlots:
|
12
|
+
forwardSlots: string[];
|
13
13
|
sliderRef: import("vue").Ref<any>;
|
14
14
|
thumbSize: import("vue").ComputedRef<number>;
|
15
15
|
tickSize: import("vue").ComputedRef<number>;
|
@@ -141,7 +141,7 @@
|
|
141
141
|
<script>
|
142
142
|
import { ref } from 'vue';
|
143
143
|
import { VTextarea, VTooltip } from 'vuetify/components';
|
144
|
-
import {
|
144
|
+
import { getForwardSlots, usePadding } from '../composables.js';
|
145
145
|
|
146
146
|
/**
|
147
147
|
* @description extends API of {@link https://vuetifyjs.com/en/api/v-textarea/|vuetify v-textarea}.
|
@@ -173,7 +173,7 @@
|
|
173
173
|
const errorTooltipRef = ref();
|
174
174
|
|
175
175
|
const paddingProvided = usePadding(attrs);
|
176
|
-
const forwardSlots =
|
176
|
+
const forwardSlots = getForwardSlots(slots, ['append-inner', 'message']);
|
177
177
|
|
178
178
|
return {
|
179
179
|
forwardSlots,
|
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
8
8
|
default: string;
|
9
9
|
};
|
10
10
|
}, {
|
11
|
-
forwardSlots:
|
11
|
+
forwardSlots: string[];
|
12
12
|
textAreaRef: import("vue").Ref<any>;
|
13
13
|
errorTooltipRef: import("vue").Ref<any>;
|
14
14
|
paddingProvided: import("vue").ComputedRef<boolean>;
|
@@ -60,7 +60,7 @@
|
|
60
60
|
<script>
|
61
61
|
import { computed, ref } from 'vue';
|
62
62
|
import { VTextField, VTooltip } from 'vuetify/components';
|
63
|
-
import {
|
63
|
+
import { getForwardSlots, usePadding } from '../composables.js';
|
64
64
|
import { useProxiedAtomicModel } from '../modelHelper.js';
|
65
65
|
|
66
66
|
function countDecimalPlaces(value) {
|
@@ -146,7 +146,7 @@
|
|
146
146
|
) {
|
147
147
|
const v = parseFloat(localValue.value);
|
148
148
|
if (Number.isFinite(v)) {
|
149
|
-
return v.toFixed(props.decimals);
|
149
|
+
return parseFloat(v.toFixed(props.decimals));
|
150
150
|
}
|
151
151
|
}
|
152
152
|
return localValue.value ?? '';
|
@@ -172,7 +172,7 @@
|
|
172
172
|
});
|
173
173
|
|
174
174
|
const paddingProvided = usePadding(attrs);
|
175
|
-
const forwardSlots =
|
175
|
+
const forwardSlots = getForwardSlots(slots, ['default', 'message']);
|
176
176
|
|
177
177
|
const prependedContent = computed(() => {
|
178
178
|
return (props.forcePrefix && attrs.prefix) || !!slots['prepend-inner'];
|
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
29
29
|
};
|
30
30
|
}, {
|
31
31
|
prependedContent: import("vue").ComputedRef<{}>;
|
32
|
-
forwardSlots:
|
32
|
+
forwardSlots: string[];
|
33
33
|
paddingProvided: import("vue").ComputedRef<boolean>;
|
34
34
|
visibleValue: import("vue").WritableComputedRef<string | number | boolean>;
|
35
35
|
rules: import("vue").ComputedRef<unknown>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
<v-stepper-vertical v-bind="$attrs">
|
2
|
+
<v-stepper-vertical v-bind="$attrs" class="vcs-wizard">
|
3
3
|
<template #icon>
|
4
4
|
<slot name="icon"><v-icon>mdi-circle</v-icon></slot>
|
5
5
|
</template>
|
@@ -12,7 +12,7 @@
|
|
12
12
|
<script>
|
13
13
|
import { VStepperVertical } from 'vuetify/labs/VStepperVertical';
|
14
14
|
import { VIcon } from 'vuetify/components';
|
15
|
-
import {
|
15
|
+
import { getForwardSlots } from '../composables.js';
|
16
16
|
|
17
17
|
/**
|
18
18
|
* @description Stylized wrapper around {@link https://vuetifyjs.com/en/api/v-stepper-vertical/ |vuetify stepper vertical}per.
|
@@ -25,7 +25,7 @@
|
|
25
25
|
VIcon,
|
26
26
|
},
|
27
27
|
setup(_p, { slots }) {
|
28
|
-
const forwardSlots =
|
28
|
+
const forwardSlots = getForwardSlots(slots, ['icon']);
|
29
29
|
|
30
30
|
return {
|
31
31
|
forwardSlots,
|
@@ -1,4 +1,4 @@
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
2
|
-
forwardSlots:
|
2
|
+
forwardSlots: string[];
|
3
3
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
4
4
|
export default _default;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<v-stepper-vertical-item
|
3
|
+
class="vcs-wizard-step"
|
3
4
|
:value="step"
|
4
5
|
:editable="isActiveStep || editable"
|
5
6
|
:complete="complete"
|
@@ -51,7 +52,7 @@
|
|
51
52
|
import { VStepperVerticalItem } from 'vuetify/labs/VStepperVertical';
|
52
53
|
import { VSpacer } from 'vuetify/components';
|
53
54
|
import { useProxiedComplexModel } from '../modelHelper.js';
|
54
|
-
import {
|
55
|
+
import { getForwardSlots } from '../composables.js';
|
55
56
|
import VcsActionButtonList from '../buttons/VcsActionButtonList.vue';
|
56
57
|
import VcsHelp from '../notification/VcsHelp.vue';
|
57
58
|
|
@@ -166,7 +167,7 @@
|
|
166
167
|
return props.headerActions;
|
167
168
|
});
|
168
169
|
|
169
|
-
const forwardSlots =
|
170
|
+
const forwardSlots = getForwardSlots(slots, ['title', 'default']);
|
170
171
|
|
171
172
|
return {
|
172
173
|
showHelp,
|
@@ -44,7 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
44
44
|
showHelp: import("vue").ComputedRef<boolean>;
|
45
45
|
actions: import("vue").ComputedRef<VcsAction>;
|
46
46
|
isActiveStep: import("vue").ComputedRef<boolean>;
|
47
|
-
forwardSlots:
|
47
|
+
forwardSlots: string[];
|
48
48
|
}, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
49
49
|
multiple: {
|
50
50
|
type: BooleanConstructor;
|
@@ -4,7 +4,7 @@
|
|
4
4
|
@dragover.prevent="isDragging = true"
|
5
5
|
@dragleave.prevent="isDragging = false"
|
6
6
|
@drop.prevent="dropped"
|
7
|
-
class="d-flex justify-center drop-field"
|
7
|
+
class="d-flex justify-center drop-field vcs-file-drop"
|
8
8
|
:class="{ dragging: isDragging }"
|
9
9
|
:dragging="isDragging"
|
10
10
|
flat
|
@@ -57,14 +57,17 @@
|
|
57
57
|
}"
|
58
58
|
@click="select(item, $event)"
|
59
59
|
>
|
60
|
-
<template #
|
61
|
-
<slot name="item.
|
60
|
+
<template #append="scope">
|
61
|
+
<slot name="item.append" v-bind="{ ...scope, index, item }" />
|
62
62
|
</template>
|
63
|
-
<template #
|
64
|
-
<slot name="item.
|
63
|
+
<template #title="scope">
|
64
|
+
<slot name="item.title" v-bind="{ ...scope, index, item }" />
|
65
65
|
</template>
|
66
|
-
<template #
|
67
|
-
<slot name="item.
|
66
|
+
<template #subtitle="scope">
|
67
|
+
<slot name="item.subtitle" v-bind="{ ...scope, index, item }" />
|
68
|
+
</template>
|
69
|
+
<template #prepend="scope">
|
70
|
+
<slot name="item.prepend" v-bind="{ ...scope, index, item }" />
|
68
71
|
</template>
|
69
72
|
</VcsListItemComponent>
|
70
73
|
<slot name="item.intermediate" :item="item" :index="index" />
|
@@ -170,10 +173,11 @@
|
|
170
173
|
* @vue-prop {string} [tooltip] - tooltip to render on the list title
|
171
174
|
* @vue-prop {Array<import("../../actions/actionHelper.js").VcsAction>} [actions] - actions to render in the list title
|
172
175
|
* @vue-event {ItemMovedEvent} item-moved - event triggered after item was dragged and is dropped
|
173
|
-
* @vue-data {slot} [#item.prepend
|
174
|
-
* @vue-data {slot} [#item.title] - A slot
|
175
|
-
* @vue-data {slot} [#item.
|
176
|
-
* @vue-data {slot} [#item.
|
176
|
+
* @vue-data {slot} [#item.prepend] - A slot that forwads to v-list-item prepend slot. Binds v-list-item append slot props, item and item index.
|
177
|
+
* @vue-data {slot} [#item.title] - A slot that forwards to v-list-item title slot. Binds v-list-item title slot props, item and item index.
|
178
|
+
* @vue-data {slot} [#item.subtitle] - A slot that forwards to v-list-item subtitle slot. Binds v-list-item subtitle slot props, item and item index.
|
179
|
+
* @vue-data {slot} [#item.append] - A slot that forwards to v-list-item append slot. Binds v-list-item append slot props, item and item index.
|
180
|
+
* @vue-data {slot} [#item.intermediate] - A slot to introduce content, e.g. buttons between two list items. Binds item and item index.
|
177
181
|
*/
|
178
182
|
export default {
|
179
183
|
name: 'VcsList',
|
@@ -89,14 +89,20 @@
|
|
89
89
|
</script>
|
90
90
|
|
91
91
|
<template>
|
92
|
-
<v-list-item
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
92
|
+
<v-list-item
|
93
|
+
:disabled="item.disabled"
|
94
|
+
v-bind="$attrs"
|
95
|
+
class="vcs-list-item-component"
|
96
|
+
>
|
97
|
+
<template #prepend="scope">
|
98
|
+
<slot name="prepend" v-bind="scope">
|
99
|
+
<v-icon v-if="item.icon">
|
100
|
+
{{ item.icon }}
|
101
|
+
</v-icon>
|
102
|
+
</slot>
|
97
103
|
</template>
|
98
|
-
<template #title>
|
99
|
-
<slot name="title" v-bind="{
|
104
|
+
<template #title="scope">
|
105
|
+
<slot name="title" v-bind="{ ...scope, tooltip }">
|
100
106
|
<v-list-item-title
|
101
107
|
ref="title"
|
102
108
|
:class="{ 'vcs-list-item__rename': rename }"
|
@@ -121,17 +127,17 @@
|
|
121
127
|
</v-list-item-title>
|
122
128
|
</slot>
|
123
129
|
</template>
|
124
|
-
<template #subtitle>
|
125
|
-
<slot name="subtitle" v-bind="
|
130
|
+
<template #subtitle="scope">
|
131
|
+
<slot name="subtitle" v-bind="scope" />
|
126
132
|
</template>
|
127
133
|
<template #default="scope">
|
128
|
-
<slot name="default" v-bind="{ ...scope,
|
134
|
+
<slot name="default" v-bind="{ ...scope, tooltip }" />
|
129
135
|
</template>
|
130
|
-
<template #append="
|
136
|
+
<template #append="scope">
|
131
137
|
<slot
|
132
138
|
name="append"
|
133
139
|
v-bind="{
|
134
|
-
...
|
140
|
+
...scope,
|
135
141
|
item,
|
136
142
|
actions,
|
137
143
|
actionButtonListOverflowCount,
|
@@ -3,17 +3,21 @@ 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
|
+
isActive: boolean;
|
8
|
+
isOpen: boolean;
|
9
|
+
isSelected: boolean;
|
10
|
+
isIndeterminate: boolean;
|
11
|
+
select: (value: boolean) => void;
|
12
|
+
}): any;
|
6
13
|
title?(_: {
|
7
|
-
item: any;
|
8
|
-
dragging: any;
|
9
14
|
tooltip: string;
|
15
|
+
title?: string | number | undefined;
|
10
16
|
}): any;
|
11
17
|
subtitle?(_: {
|
12
|
-
|
18
|
+
subtitle?: string | number | undefined;
|
13
19
|
}): any;
|
14
20
|
default?(_: {
|
15
|
-
item: any;
|
16
|
-
dragging: any;
|
17
21
|
tooltip: string;
|
18
22
|
isActive: boolean;
|
19
23
|
isOpen: boolean;
|
@@ -118,7 +118,7 @@
|
|
118
118
|
import { VIcon } from 'vuetify/components';
|
119
119
|
import { VTreeview } from 'vuetify/labs/VTreeview';
|
120
120
|
import { useProxiedAtomicModel } from '../modelHelper.js';
|
121
|
-
import {
|
121
|
+
import { getForwardSlots } from '../composables.js';
|
122
122
|
import VcsTreeviewSearchbar from './VcsTreeviewSearchbar.vue';
|
123
123
|
import VcsActionButtonList from '../buttons/VcsActionButtonList.vue';
|
124
124
|
import ImageElementInjector from '../ImageElementInjector.vue';
|
@@ -184,7 +184,7 @@
|
|
184
184
|
.indexOf(q.toLocaleLowerCase());
|
185
185
|
};
|
186
186
|
|
187
|
-
const forwardSlots =
|
187
|
+
const forwardSlots = getForwardSlots(slots, [
|
188
188
|
'append',
|
189
189
|
'title',
|
190
190
|
'prepend',
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
19
19
|
iconSize: import("vue").ComputedRef<number>;
|
20
20
|
localSearchValue: import("vue").Ref<any>;
|
21
21
|
handleFilter: (value: string, q: string, item: Object) => number;
|
22
|
-
forwardSlots:
|
22
|
+
forwardSlots: string[];
|
23
23
|
itemClicked(name: any, event: any): void;
|
24
24
|
}, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:search"[], "update:search", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
25
25
|
items: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<div
|
3
|
-
class="pa-2 bg-base-lighten-3 position-relative d-flex flex-row justify-space-between align-center rounded-0"
|
3
|
+
class="pa-2 bg-base-lighten-3 position-relative d-flex flex-row justify-space-between align-center rounded-0 vcs-treeview-searchbar"
|
4
4
|
>
|
5
5
|
<slot name="prepend">
|
6
6
|
<v-icon class="search-icon my-0 ml-1" :size="iconSize - 4">
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<template>
|
2
|
-
<span class="badge rounded-circle h-3 w-3" :class="[color]" />
|
2
|
+
<span class="vcs-badge rounded-circle h-3 w-3" :class="[color]" />
|
3
3
|
</template>
|
4
4
|
|
5
5
|
<style lang="scss" scoped>
|
6
|
-
.badge {
|
6
|
+
.vcs-badge {
|
7
7
|
border: 1px solid rgb(var(--v-theme-surface)) !important;
|
8
8
|
}
|
9
9
|
.h-3 {
|
@@ -43,7 +43,11 @@
|
|
43
43
|
const iconSize = useIconSize();
|
44
44
|
</script>
|
45
45
|
<template>
|
46
|
-
<v-expansion-panel
|
46
|
+
<v-expansion-panel
|
47
|
+
:disabled="disabled"
|
48
|
+
v-bind="$attrs"
|
49
|
+
class="vcs-expansion-panel"
|
50
|
+
>
|
47
51
|
<v-expansion-panel-title static class="px-2">
|
48
52
|
<template #default="{ expanded }">
|
49
53
|
<v-list-item-title ref="panelHeader">
|