@vcmap/module-selector 2.0.4 → 2.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vcmap/module-selector",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -144,7 +144,7 @@
144
144
  </v-col>
145
145
  </template>
146
146
  </v-row>
147
- <v-row justify="end">
147
+ <v-row class="fixed-bottom" justify="end">
148
148
  <VcsFormButton
149
149
  variant="filled"
150
150
  class="ma-5"
@@ -325,4 +325,10 @@
325
325
  .groupIcon {
326
326
  margin-left: 20px !important;
327
327
  }
328
+ .fixed-bottom {
329
+ position: sticky;
330
+ bottom: 0;
331
+ background-color: rgb(var(--v-theme-surface));
332
+ z-index: 10;
333
+ }
328
334
  </style>
@@ -1,43 +1,50 @@
1
1
  <template>
2
2
  <v-card>
3
3
  <div>
4
- <VcsDataTable
4
+ <VcsFormSection
5
5
  v-if="isItemIdEmpty"
6
- base-component="VDataTableServer"
7
- :loading="loading"
8
- :items="items"
9
- :server-items-length="totalItems"
10
- :server-pages-length="totalPages"
11
- :searchbar-placeholder="
12
- $t('moduleSelector.configEditor.moduleCloudPicker.searchName')
13
- "
14
- :headers="headers"
15
- select-strategy="single"
16
- return-object
17
- show-select
18
- item-value="_id"
19
- v-model="selected"
20
- @update:items="getItems"
6
+ heading="moduleSelector.configEditor.moduleSettings"
7
+ >
8
+ <VcsDataTable
9
+ base-component="VDataTableServer"
10
+ :loading="loading"
11
+ :items="items"
12
+ :server-items-length="totalItems"
13
+ :server-pages-length="totalPages"
14
+ :searchbar-placeholder="
15
+ $t('moduleSelector.configEditor.moduleCloudPicker.searchName')
16
+ "
17
+ :headers="headers"
18
+ select-strategy="single"
19
+ return-object
20
+ show-select
21
+ item-value="_id"
22
+ v-model="selected"
23
+ @update:items="getItems"
24
+ >
25
+ <!-- eslint-disable-next-line -->
26
+ <template v-slot:item.type="{ item }">
27
+ <v-icon v-bind="{ ...$attrs }">
28
+ {{ typeIcon(item.type) }}
29
+ </v-icon>
30
+ <v-tooltip activator="parent" location="right">
31
+ {{ $t(`appConfigurator.dialogs.vcsModuleTable.${item.type}`) }}
32
+ </v-tooltip>
33
+ </template>
34
+ <!-- eslint-disable-next-line -->
35
+ <template v-slot:item.createdAt="{ item }">
36
+ {{ formatDate(item.createdAt, $i18n.locale) }}
37
+ </template>
38
+ <!-- eslint-disable-next-line -->
39
+ <template v-slot:item.updatedAt="{ item }">
40
+ {{ formatDate(item.updatedAt, $i18n.locale) }}
41
+ </template>
42
+ </VcsDataTable>
43
+ </VcsFormSection>
44
+ <VcsFormSection
45
+ v-else
46
+ heading="moduleSelector.configEditor.moduleSettings"
21
47
  >
22
- <!-- eslint-disable-next-line -->
23
- <template v-slot:item.type="{ item }">
24
- <v-icon v-bind="{ ...$attrs }">
25
- {{ typeIcon(item.type) }}
26
- </v-icon>
27
- <v-tooltip activator="parent" location="right">
28
- {{ $t(`appConfigurator.dialogs.vcsModuleTable.${item.type}`) }}
29
- </v-tooltip>
30
- </template>
31
- <!-- eslint-disable-next-line -->
32
- <template v-slot:item.createdAt="{ item }">
33
- {{ formatDate(item.createdAt, $i18n.locale) }}
34
- </template>
35
- <!-- eslint-disable-next-line -->
36
- <template v-slot:item.updatedAt="{ item }">
37
- {{ formatDate(item.updatedAt, $i18n.locale) }}
38
- </template>
39
- </VcsDataTable>
40
- <VcsFormSection v-else>
41
48
  <v-form v-model="isFValid" ref="form">
42
49
  <v-container class="px-2 pt-0 pb-2">
43
50
  <v-row no-gutters class="px-2">
@@ -86,41 +93,45 @@
86
93
  </v-container>
87
94
  </v-form>
88
95
  </VcsFormSection>
89
- <div class="d-flex px-2 justify-end w-100">
90
- <VcsFormButton
91
- v-if="isItemIdEmpty"
92
- variant="filled"
93
- :disabled="selected[0] === undefined"
94
- class="ma-2"
95
- @click="addSelected"
96
- tooltip="appConfigurator.dialogs.addTooltip"
97
- tooltip-position="bottom"
98
- >
99
- {{ $t('moduleSelector.configEditor.moduleCloudPicker.continue') }}
100
- </VcsFormButton>
101
- <VcsFormButton
96
+ <div class="d-flex gc-2 px-2 pt-2 pb-2">
97
+ <div v-if="isItemIdEmpty" class="d-flex gc-2 justify-end w-100">
98
+ <VcsFormButton
99
+ variant="filled"
100
+ :disabled="selected[0] === undefined"
101
+ @click="addSelected"
102
+ tooltip="appConfigurator.dialogs.addTooltip"
103
+ tooltip-position="bottom"
104
+ >
105
+ {{ $t('moduleSelector.configEditor.moduleCloudPicker.continue') }}
106
+ </VcsFormButton>
107
+ <VcsFormButton @click="close">
108
+ {{ $t('components.cancel') }}
109
+ </VcsFormButton>
110
+ </div>
111
+ <div
102
112
  v-if="!isItemIdEmpty"
103
- :disabled="!isFValid"
104
- variant="filled"
105
- class="ma-2"
106
- @click="
107
- () => {
108
- $emit('submit', selectedItem);
109
- }
110
- "
113
+ class="d-flex gc-2 justify-space-between w-100"
111
114
  >
112
- {{ $t('components.apply') }}
113
- </VcsFormButton>
114
- <VcsFormButton
115
- v-if="!isItemIdEmpty"
116
- @click="removeSelected"
117
- class="ma-2"
118
- >
119
- {{ $t('moduleSelector.configEditor.moduleCloudPicker.back') }}
120
- </VcsFormButton>
121
- <VcsFormButton class="ma-2" @click="close">
122
- {{ $t('components.cancel') }}
123
- </VcsFormButton>
115
+ <VcsFormButton @click="removeSelected">
116
+ {{ $t('moduleSelector.configEditor.moduleCloudPicker.back') }}
117
+ </VcsFormButton>
118
+ <div class="d-flex gc-2">
119
+ <VcsFormButton
120
+ :disabled="!isFValid"
121
+ variant="filled"
122
+ @click="
123
+ () => {
124
+ $emit('submit', selectedItem);
125
+ }
126
+ "
127
+ >
128
+ {{ $t('components.apply') }}
129
+ </VcsFormButton>
130
+ <VcsFormButton @click="close">
131
+ {{ $t('components.cancel') }}
132
+ </VcsFormButton>
133
+ </div>
134
+ </div>
124
135
  </div>
125
136
  </div>
126
137
  </v-card>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <v-card>
3
- <VcsFormSection>
3
+ <VcsFormSection heading="moduleSelector.configEditor.moduleSettings">
4
4
  <v-form v-model="isFormValid" ref="form">
5
5
  <v-container class="px-2 pt-0 pb-2">
6
6
  <v-row no-gutters>
@@ -163,7 +163,7 @@
163
163
  </v-form>
164
164
  </VcsFormSection>
165
165
  <VcsFormSection
166
- heading="moduleSelector.configEditor.heading"
166
+ heading="moduleSelector.configEditor.heading2"
167
167
  :start-open="true"
168
168
  :header-actions="headerActions"
169
169
  >
@@ -174,18 +174,19 @@
174
174
  @item-moved="moveCard"
175
175
  />
176
176
  </VcsFormSection>
177
- <div class="d-flex px-2 justify-end w-100">
178
- <VcsFormButton
179
- variant="filled"
180
- class="ma-2"
181
- :disabled="!isFormValid"
182
- @click="returnLevel()"
183
- >
184
- {{ $t('components.apply') }}
185
- </VcsFormButton>
186
- <VcsFormButton class="ma-2" @click="cancelCurrentGroup()">
187
- {{ $t('components.cancel') }}
188
- </VcsFormButton>
177
+ <div class="d-flex gc-2 px-2 pt-2 pb-2">
178
+ <div class="d-flex gc-2 justify-end w-100">
179
+ <VcsFormButton
180
+ variant="filled"
181
+ :disabled="!isFormValid"
182
+ @click="returnLevel()"
183
+ >
184
+ {{ $t('components.apply') }}
185
+ </VcsFormButton>
186
+ <VcsFormButton @click="cancelCurrentGroup()">
187
+ {{ $t('components.cancel') }}
188
+ </VcsFormButton>
189
+ </div>
189
190
  </div>
190
191
  </v-sheet>
191
192
  </v-dialog>
package/src/index.ts CHANGED
@@ -94,7 +94,9 @@ export default function plugin(
94
94
  state: {
95
95
  headerIcon: 'mdi-view-grid',
96
96
  headerTitle: this.config.windowTitle,
97
- infoUrlCallback: app.getHelpUrlCallback('/tools/moduleSelector.html'),
97
+ infoUrlCallback: app.getHelpUrlCallback(
98
+ '/components/genericFunctions.html#id_moduleSelector',
99
+ ),
98
100
  },
99
101
  props: {
100
102
  modules: this.config.modules,
@@ -260,6 +262,7 @@ export default function plugin(
260
262
  editorError: 'Bitte füllen Sie das Feld aus',
261
263
  breadcrumbs: { overview: 'Übersicht', group: 'Gruppe' },
262
264
  heading: 'Themen- & Modulzuordnung',
265
+ heading2: 'Modulzuordnung',
263
266
  groupHeading: 'Gruppeneinstellungen',
264
267
  baseModule: 'Basismodul',
265
268
  baseModuleCheckbox: 'Basismodul anzeigen',
@@ -278,6 +281,7 @@ export default function plugin(
278
281
  requireModuleSelection: 'Modulauswahl erforderlich machen',
279
282
  windowTitle: 'Fenster Titel',
280
283
  windowPosition: 'Fenster Position',
284
+ moduleSettings: 'Modul Einstellungen',
281
285
  },
282
286
  },
283
287
  },
@@ -311,6 +315,7 @@ export default function plugin(
311
315
  editorError: 'Please fill in the field',
312
316
  breadcrumbs: { overview: 'Overview', group: 'Group' },
313
317
  heading: 'Topic & module assignment',
318
+ heading2: 'Module assignment',
314
319
  groupHeading: 'Group settings',
315
320
  baseModule: 'Base module',
316
321
  baseModuleCheckbox: 'Show base module',
@@ -329,10 +334,12 @@ export default function plugin(
329
334
  requireModuleSelection: 'Require module selection',
330
335
  windowTitle: 'Window title',
331
336
  windowPosition: 'Window position',
337
+ moduleSettings: 'Module settings',
332
338
  },
333
339
  },
334
340
  },
335
341
  },
342
+
336
343
  destroy(): void {},
337
344
  };
338
345
  }