@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,203 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<v-sheet>
|
3
|
-
<v-sheet class="px-2 d-grid">
|
4
|
-
<v-switch
|
5
|
-
v-model="selectable"
|
6
|
-
label="Selectable"
|
7
|
-
density="compact"
|
8
|
-
class="mx-1"
|
9
|
-
/>
|
10
|
-
<v-switch
|
11
|
-
:disabled="!selectable"
|
12
|
-
v-model="selectSingle"
|
13
|
-
label=" Single Select"
|
14
|
-
density="compact"
|
15
|
-
class="mx-1"
|
16
|
-
/>
|
17
|
-
<v-switch
|
18
|
-
v-model="searchable"
|
19
|
-
label="Searchable"
|
20
|
-
density="compact"
|
21
|
-
class="mx-1"
|
22
|
-
/>
|
23
|
-
<v-dialog v-model="dialog" width="400">
|
24
|
-
<template #activator="{ props }">
|
25
|
-
<vcs-form-button v-bind="props"> Add An item </vcs-form-button>
|
26
|
-
</template>
|
27
|
-
<v-card class="pa-2">
|
28
|
-
<v-form @submit.prevent="add">
|
29
|
-
<vcs-text-field
|
30
|
-
v-model="newItem.name"
|
31
|
-
label="Name"
|
32
|
-
:rules="required"
|
33
|
-
/>
|
34
|
-
<vcs-text-field
|
35
|
-
v-model="newItem.type"
|
36
|
-
label="type"
|
37
|
-
:rules="required"
|
38
|
-
/>
|
39
|
-
<vcs-text-field v-model="newItem.date" type="date" label="date" />
|
40
|
-
<vcs-checkbox label="disabled" v-model="newItem.disabled" />
|
41
|
-
<vcs-form-button type="submit" variant="filled">
|
42
|
-
Add
|
43
|
-
</vcs-form-button>
|
44
|
-
</v-form>
|
45
|
-
</v-card>
|
46
|
-
</v-dialog>
|
47
|
-
</v-sheet>
|
48
|
-
|
49
|
-
<vcs-data-table
|
50
|
-
:items="items"
|
51
|
-
:headers="headers"
|
52
|
-
:show-select="selectable"
|
53
|
-
:select-strategy="selectSingle ? 'single' : 'page'"
|
54
|
-
:items-per-page="2"
|
55
|
-
:show-searchbar="searchable"
|
56
|
-
v-model="selected"
|
57
|
-
>
|
58
|
-
<!-- eslint-disable-next-line -->
|
59
|
-
<template v-slot:item.actions="{ item }">
|
60
|
-
<VcsActionButtonList
|
61
|
-
v-if="item.actions"
|
62
|
-
:actions="item.actions"
|
63
|
-
:overflow-count="2"
|
64
|
-
/>
|
65
|
-
</template>
|
66
|
-
</vcs-data-table>
|
67
|
-
</v-sheet>
|
68
|
-
</template>
|
69
|
-
|
70
|
-
<script>
|
71
|
-
import {
|
72
|
-
VcsDataTable,
|
73
|
-
VcsFormButton,
|
74
|
-
VcsTextField,
|
75
|
-
VcsCheckbox,
|
76
|
-
VcsActionButtonList,
|
77
|
-
} from '@vcmap/ui';
|
78
|
-
import { VSwitch, VSheet, VDialog, VCard, VForm } from 'vuetify/components';
|
79
|
-
import { ref } from 'vue';
|
80
|
-
|
81
|
-
const defaultHeaders = [
|
82
|
-
{
|
83
|
-
title: 'Name',
|
84
|
-
key: 'name',
|
85
|
-
},
|
86
|
-
{
|
87
|
-
title: 'Type',
|
88
|
-
key: 'type',
|
89
|
-
},
|
90
|
-
{
|
91
|
-
title: 'Datum',
|
92
|
-
key: 'date',
|
93
|
-
sort: (a, b) => new Date(b) - new Date(a),
|
94
|
-
},
|
95
|
-
{ title: 'Actions', key: 'actions', sortable: false },
|
96
|
-
];
|
97
|
-
|
98
|
-
const defaultItems = [
|
99
|
-
{
|
100
|
-
id: 0,
|
101
|
-
name: 'foo',
|
102
|
-
type: 'Foo',
|
103
|
-
date: '8/3/2023 9:24',
|
104
|
-
actions: [
|
105
|
-
{
|
106
|
-
name: 'console.log',
|
107
|
-
icon: 'mdi-printer',
|
108
|
-
callback() {
|
109
|
-
console.log('foo action');
|
110
|
-
},
|
111
|
-
},
|
112
|
-
],
|
113
|
-
},
|
114
|
-
{
|
115
|
-
id: 1,
|
116
|
-
name: 'bar',
|
117
|
-
type: 'Bar',
|
118
|
-
date: '1/8/2022 19:54',
|
119
|
-
},
|
120
|
-
{
|
121
|
-
id: 2,
|
122
|
-
name: 'baz',
|
123
|
-
type: 'Baz',
|
124
|
-
date: '11/2/2012 14:03',
|
125
|
-
},
|
126
|
-
{
|
127
|
-
id: 3,
|
128
|
-
name: 'foo-bar',
|
129
|
-
type: 'Foo Bar',
|
130
|
-
date: '18/4/1992 21:53',
|
131
|
-
},
|
132
|
-
];
|
133
|
-
|
134
|
-
export default {
|
135
|
-
name: 'DataTableExample',
|
136
|
-
components: {
|
137
|
-
VcsDataTable,
|
138
|
-
VcsFormButton,
|
139
|
-
VcsTextField,
|
140
|
-
VcsCheckbox,
|
141
|
-
VcsActionButtonList,
|
142
|
-
VSwitch,
|
143
|
-
VSheet,
|
144
|
-
VDialog,
|
145
|
-
VCard,
|
146
|
-
VForm,
|
147
|
-
},
|
148
|
-
setup() {
|
149
|
-
const selectable = ref(true);
|
150
|
-
const searchable = ref(true);
|
151
|
-
const selectSingle = ref(false);
|
152
|
-
const selected = ref([]);
|
153
|
-
const items = ref(defaultItems);
|
154
|
-
const headers = ref(defaultHeaders);
|
155
|
-
const newItem = ref({
|
156
|
-
name: 'foo',
|
157
|
-
type: 'foo',
|
158
|
-
date: new Date(),
|
159
|
-
disabled: false,
|
160
|
-
});
|
161
|
-
const dialog = ref(false);
|
162
|
-
|
163
|
-
return {
|
164
|
-
selectable,
|
165
|
-
searchable,
|
166
|
-
selectSingle,
|
167
|
-
selected,
|
168
|
-
items,
|
169
|
-
headers,
|
170
|
-
newItem,
|
171
|
-
dialog,
|
172
|
-
required: [
|
173
|
-
(v) => !!v || 'Input may not be null',
|
174
|
-
(v) => v.length > 0 || 'Input must have a length',
|
175
|
-
],
|
176
|
-
add() {
|
177
|
-
const item = {
|
178
|
-
name: newItem.value.name,
|
179
|
-
type: newItem.value.type,
|
180
|
-
date: newItem.value.date,
|
181
|
-
disabled: newItem.value.disabled,
|
182
|
-
id: items.value.length,
|
183
|
-
};
|
184
|
-
|
185
|
-
items.value.push(item);
|
186
|
-
newItem.value = {
|
187
|
-
name: 'foo',
|
188
|
-
type: 'foo',
|
189
|
-
date: new Date(),
|
190
|
-
};
|
191
|
-
dialog.value = false;
|
192
|
-
},
|
193
|
-
};
|
194
|
-
},
|
195
|
-
};
|
196
|
-
</script>
|
197
|
-
|
198
|
-
<style lang="scss" scoped>
|
199
|
-
.d-grid {
|
200
|
-
display: grid;
|
201
|
-
grid-template-columns: 1fr 1fr;
|
202
|
-
}
|
203
|
-
</style>
|
@@ -1,115 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<v-sheet style="height: 100%">
|
3
|
-
<v-container class="pa-2">
|
4
|
-
<v-row dense>
|
5
|
-
<v-col>
|
6
|
-
<label> test</label>
|
7
|
-
</v-col>
|
8
|
-
<v-col>
|
9
|
-
<v-text-field hide-details dense outlined />
|
10
|
-
</v-col>
|
11
|
-
</v-row>
|
12
|
-
<v-row dense>
|
13
|
-
<v-col>
|
14
|
-
<v-text-field dense hide-details outlined class="ma-0" />
|
15
|
-
</v-col>
|
16
|
-
<v-col>
|
17
|
-
<v-text-field dense hide-details class="ma-0" />
|
18
|
-
</v-col>
|
19
|
-
<v-col>
|
20
|
-
<v-text-field label="test" dense hide-details outlined class="ma-0" />
|
21
|
-
</v-col>
|
22
|
-
<v-col>
|
23
|
-
<v-text-field label="test" dense hide-details class="ma-0" />
|
24
|
-
</v-col>
|
25
|
-
</v-row>
|
26
|
-
<v-row dense>
|
27
|
-
<v-col>
|
28
|
-
<v-text-field hide-details outlined />
|
29
|
-
</v-col>
|
30
|
-
<v-col>
|
31
|
-
<v-text-field hide-details class="ma-0 pb-1 pt-1" />
|
32
|
-
</v-col>
|
33
|
-
<v-col>
|
34
|
-
<v-text-field label="test" hide-details outlined />
|
35
|
-
</v-col>
|
36
|
-
<v-col>
|
37
|
-
<v-text-field label="test" hide-details class="ma-0 pb-1 pt-1" />
|
38
|
-
</v-col>
|
39
|
-
</v-row>
|
40
|
-
<v-row dense>
|
41
|
-
<v-col>
|
42
|
-
<v-text-field
|
43
|
-
dense
|
44
|
-
hide-details
|
45
|
-
@mouseover="hover1 = true"
|
46
|
-
@mouseleave="hover1 = false"
|
47
|
-
:outlined="hover1"
|
48
|
-
class="ma-0"
|
49
|
-
/>
|
50
|
-
</v-col>
|
51
|
-
<v-col>
|
52
|
-
<v-text-field
|
53
|
-
dense
|
54
|
-
hide-details
|
55
|
-
class="ma-0"
|
56
|
-
@mouseover="hover2 = true"
|
57
|
-
@mouseleave="hover2 = false"
|
58
|
-
:outlined="hover2"
|
59
|
-
/>
|
60
|
-
</v-col>
|
61
|
-
<v-col>
|
62
|
-
<v-text-field
|
63
|
-
dense
|
64
|
-
hide-details
|
65
|
-
class="ma-0"
|
66
|
-
label="test"
|
67
|
-
@mouseover="hover3 = true"
|
68
|
-
@mouseleave="hover3 = false"
|
69
|
-
:outlined="hover3"
|
70
|
-
/>
|
71
|
-
</v-col>
|
72
|
-
<v-col>
|
73
|
-
<v-text-field
|
74
|
-
dense
|
75
|
-
hide-details
|
76
|
-
class="ma-0"
|
77
|
-
label="test"
|
78
|
-
@mouseover="hover4 = true"
|
79
|
-
@mouseleave="hover4 = false"
|
80
|
-
:outlined="hover4"
|
81
|
-
/>
|
82
|
-
</v-col>
|
83
|
-
</v-row>
|
84
|
-
</v-container>
|
85
|
-
</v-sheet>
|
86
|
-
</template>
|
87
|
-
<script>
|
88
|
-
import {
|
89
|
-
VSheet,
|
90
|
-
VContainer,
|
91
|
-
VRow,
|
92
|
-
VCol,
|
93
|
-
VTextField,
|
94
|
-
} from 'vuetify/components';
|
95
|
-
|
96
|
-
export default {
|
97
|
-
name: 'TextfieldsExample',
|
98
|
-
components: {
|
99
|
-
VSheet,
|
100
|
-
VContainer,
|
101
|
-
VRow,
|
102
|
-
VCol,
|
103
|
-
VTextField,
|
104
|
-
},
|
105
|
-
data() {
|
106
|
-
return {
|
107
|
-
hover1: false,
|
108
|
-
hover2: false,
|
109
|
-
hover3: false,
|
110
|
-
hover4: false,
|
111
|
-
email: 'test',
|
112
|
-
};
|
113
|
-
},
|
114
|
-
};
|
115
|
-
</script>
|
@@ -1,64 +0,0 @@
|
|
1
|
-
/* eslint-disable no-console */
|
2
|
-
import { ButtonLocation, createToggleAction, WindowSlot } from '@vcmap/ui';
|
3
|
-
import packageJSON from '../package.json';
|
4
|
-
import mySuperComponent from './TextfieldsExample.vue';
|
5
|
-
|
6
|
-
/**
|
7
|
-
*
|
8
|
-
* @param {FormInputsExampleConfig} config
|
9
|
-
* @returns {VcsPlugin}
|
10
|
-
*/
|
11
|
-
export default async function textfieldsExample(config) {
|
12
|
-
return {
|
13
|
-
get name() {
|
14
|
-
return packageJSON.name;
|
15
|
-
},
|
16
|
-
get version() {
|
17
|
-
return packageJSON.version;
|
18
|
-
},
|
19
|
-
get mapVersion() {
|
20
|
-
return packageJSON.mapVersion;
|
21
|
-
},
|
22
|
-
initialize(app) {
|
23
|
-
console.log('initialize', app, config);
|
24
|
-
},
|
25
|
-
onVcsAppMounted(app) {
|
26
|
-
console.log('onVcsAppMounted', app, config);
|
27
|
-
// XXX supportedMaps: ['vcs.vcm.maps.Openlayers', 'vcs.vcm.maps.Cesium'],
|
28
|
-
const { action, destroy } = createToggleAction(
|
29
|
-
{
|
30
|
-
name: 'Textfields Example',
|
31
|
-
icon: '$vcsPen',
|
32
|
-
},
|
33
|
-
{
|
34
|
-
id: '228',
|
35
|
-
component: mySuperComponent,
|
36
|
-
slot: WindowSlot.DETACHED,
|
37
|
-
state: {
|
38
|
-
headerTitle: 'Textfields Example',
|
39
|
-
headerIcon: '$vcsPen',
|
40
|
-
},
|
41
|
-
position: {
|
42
|
-
width: 1200,
|
43
|
-
},
|
44
|
-
},
|
45
|
-
app.windowManager,
|
46
|
-
packageJSON.name,
|
47
|
-
);
|
48
|
-
this._destroyAction = destroy;
|
49
|
-
app.navbarManager.add(
|
50
|
-
{
|
51
|
-
action,
|
52
|
-
},
|
53
|
-
packageJSON.name,
|
54
|
-
ButtonLocation.TOOL,
|
55
|
-
);
|
56
|
-
},
|
57
|
-
destroy() {
|
58
|
-
if (this._destroyAction) {
|
59
|
-
this._destroyAction();
|
60
|
-
this._destroyAction = null;
|
61
|
-
}
|
62
|
-
},
|
63
|
-
};
|
64
|
-
}
|
File without changes
|
File without changes
|
File without changes
|