@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.
Files changed (160) hide show
  1. package/README.md +2 -0
  2. package/build/commonViteConfig.js +7 -0
  3. package/config/aerowest.config.json +12 -2
  4. package/config/analysis.config.json +17 -0
  5. package/config/base.config.json +16 -4
  6. package/config/components-show-case.config.json +53 -0
  7. package/config/concepts-show-case.config.json +39 -0
  8. package/config/dev.config.json +165 -104
  9. package/config/dynamic-layer.config.json +32 -0
  10. package/config/hello-world.config.json +11 -0
  11. package/config/projects.config.json +9 -1
  12. package/config/solar.config.json +65 -0
  13. package/config/vectorTile.config.json +70 -0
  14. package/config/www.config.json +33 -10
  15. package/dist/assets/cesium.js +1 -1
  16. package/dist/assets/{core-ccecb5f4.js → core-a599e8b6.js} +7302 -6838
  17. package/dist/assets/core.js +1 -1
  18. package/dist/assets/{ol-3c6b9b5b.js → ol-21bbc740.js} +5057 -5178
  19. package/dist/assets/ol.js +1 -1
  20. package/dist/assets/ui-adeddc7d.css +1 -0
  21. package/dist/assets/{ui-8a8aef2a.js → ui-adeddc7d.js} +9687 -8940
  22. package/dist/assets/ui.js +1 -1
  23. package/dist/assets/vue.js +1 -1
  24. package/dist/assets/{vuetify-ac50bfc8.js → vuetify-c0e02f11.js} +2507 -2504
  25. package/dist/assets/vuetify.js +1 -1
  26. package/index.d.ts +2 -0
  27. package/index.js +1 -0
  28. package/package.json +12 -12
  29. package/plugins/@vcmap-show-case/README.md +15 -6
  30. package/plugins/@vcmap-show-case/category-tester/package.json +1 -1
  31. package/plugins/@vcmap-show-case/category-tester/src/CollectionComponentOptions.vue +23 -23
  32. package/plugins/@vcmap-show-case/category-tester/src/FoobarEditor.vue +2 -8
  33. package/plugins/@vcmap-show-case/collection-manager-example/package.json +1 -1
  34. package/plugins/@vcmap-show-case/collection-manager-example/src/CollectionManagerExample.vue +10 -8
  35. package/plugins/@vcmap-show-case/context-menu-tester/package.json +1 -1
  36. package/plugins/@vcmap-show-case/extent-example/package.json +1 -1
  37. package/plugins/@vcmap-show-case/flight-component-example/package.json +1 -1
  38. package/plugins/@vcmap-show-case/form-inputs-example/package.json +1 -1
  39. package/plugins/@vcmap-show-case/hello-world/package.json +1 -1
  40. package/plugins/@vcmap-show-case/icons-example/package.json +1 -1
  41. package/plugins/@vcmap-show-case/notifier-tester/package.json +1 -1
  42. package/plugins/@vcmap-show-case/panel-tester/package.json +1 -1
  43. package/plugins/@vcmap-show-case/plugin-editors/package.json +1 -1
  44. package/plugins/@vcmap-show-case/plugin-editors/src/index.js +17 -6
  45. package/plugins/@vcmap-show-case/project-selector/package.json +1 -9
  46. package/plugins/@vcmap-show-case/project-selector/src/ModulesListComponent.vue +22 -31
  47. package/plugins/@vcmap-show-case/project-selector/src/ProjectSelectorComponent.vue +15 -23
  48. package/plugins/@vcmap-show-case/projection-example/README.md +3 -0
  49. package/plugins/@vcmap-show-case/projection-example/package.json +5 -0
  50. package/plugins/@vcmap-show-case/projection-example/src/ProjectionExample.vue +73 -0
  51. package/plugins/@vcmap-show-case/{table-example → projection-example}/src/index.js +22 -11
  52. package/plugins/@vcmap-show-case/search-example/package.json +1 -1
  53. package/plugins/@vcmap-show-case/simple-graph/package.json +1 -4
  54. package/plugins/@vcmap-show-case/style-input-example/package.json +1 -1
  55. package/plugins/@vcmap-show-case/switch-map-callback-example/README.md +2 -2
  56. package/plugins/@vcmap-show-case/switch-map-callback-example/package.json +2 -1
  57. package/plugins/@vcmap-show-case/switch-map-callback-example/src/index.js +4 -1
  58. package/plugins/@vcmap-show-case/theming-example/package.json +1 -1
  59. package/plugins/@vcmap-show-case/toolbox-example/package.json +1 -1
  60. package/plugins/@vcmap-show-case/vector-properties-example/package.json +1 -1
  61. package/plugins/@vcmap-show-case/viewpoint-component-example/package.json +1 -1
  62. package/plugins/@vcmap-show-case/window-tester/package.json +1 -1
  63. package/plugins/@vcmap-show-case/window-tester/src/WindowExample.vue +1 -1
  64. package/plugins/@vcmap-show-case/window-tester/src/WindowExampleToggleChild.vue +5 -1
  65. package/plugins/@vcmap-show-case/wizard-example/package.json +1 -1
  66. package/plugins/package.json +7 -3
  67. package/src/actions/flightActions.js +40 -20
  68. package/src/actions/listActions.d.ts +1 -1
  69. package/src/actions/listActions.js +1 -1
  70. package/src/application/VcsApp.vue +3 -0
  71. package/src/application/VcsApp.vue.d.ts +12 -0
  72. package/src/application/VcsAttributions.vue +1 -1
  73. package/src/application/VcsAttributionsFooter.vue +1 -1
  74. package/src/application/VcsContainer.vue +0 -1
  75. package/src/application/VcsContainer.vue.d.ts +12 -0
  76. package/src/application/VcsObliqueFooter.vue +110 -0
  77. package/src/application/VcsObliqueFooter.vue.d.ts +4 -0
  78. package/src/application/VcsTextPageFooter.vue +1 -0
  79. package/src/application/attributionsHelper.js +10 -6
  80. package/src/components/flight/VcsFlightPlayer.vue +26 -20
  81. package/src/components/form-inputs-controls/VcsDatePicker.vue +23 -3
  82. package/src/components/form-inputs-controls/VcsDatePicker.vue.d.ts +1 -1
  83. package/src/components/form-inputs-controls/VcsFileInput.vue +1 -1
  84. package/src/components/form-inputs-controls/VcsLabel.vue +10 -1
  85. package/src/components/form-inputs-controls/VcsLabel.vue.d.ts +9 -0
  86. package/src/components/form-inputs-controls/VcsRadio.vue +4 -0
  87. package/src/components/form-inputs-controls/VcsSelect.vue.d.ts +2 -2
  88. package/src/components/form-inputs-controls/VcsTextField.vue +1 -1
  89. package/src/components/form-inputs-controls/VcsWizardStep.vue.d.ts +2 -2
  90. package/src/components/import/VcsImportComponent.vue +3 -3
  91. package/src/components/lists/VcsActionList.vue +1 -1
  92. package/src/components/lists/VcsList.vue +42 -29
  93. package/src/components/lists/VcsListItemComponent.vue +1 -1
  94. package/src/components/lists/VcsListItemComponent.vue.d.ts +5 -32
  95. package/src/components/lists/VcsTreeview.vue +2 -0
  96. package/src/components/notification/VcsHelp.vue +0 -1
  97. package/src/components/notification/VcsHelpTooltip.vue +48 -0
  98. package/src/components/notification/VcsHelpTooltip.vue.d.ts +25 -0
  99. package/src/components/projection/VcsProjection.vue +329 -0
  100. package/src/components/projection/VcsProjection.vue.d.ts +7 -0
  101. package/src/components/section/VcsFormSection.vue +0 -1
  102. package/src/components/section/VcsFormSection.vue.d.ts +1 -1
  103. package/src/components/tables/VcsDataTable.vue +13 -2
  104. package/src/components/tables/VcsDataTable.vue.d.ts +12 -1
  105. package/src/components/vector-properties/VcsFeatureEditingWindow.vue +17 -1
  106. package/src/components/vector-properties/VcsFeatureEditingWindow.vue.d.ts +10 -1
  107. package/src/components/vector-properties/VcsFeatureTransforms.vue +39 -5
  108. package/src/components/vector-properties/VcsFeatureTransforms.vue.d.ts +2 -1
  109. package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +44 -24
  110. package/src/components/vector-properties/VcsVectorPropertiesComponent.vue.d.ts +27 -2
  111. package/src/components/viewpoint/VcsViewpointComponent.vue +6 -6
  112. package/src/contentTree/contentTreeCollection.js +12 -1
  113. package/src/featureInfo/abstractFeatureInfoView.d.ts +9 -0
  114. package/src/featureInfo/abstractFeatureInfoView.js +17 -1
  115. package/src/i18n/de.d.ts +90 -41
  116. package/src/i18n/de.js +63 -22
  117. package/src/i18n/en.d.ts +90 -41
  118. package/src/i18n/en.js +59 -18
  119. package/src/legend/StyleLegendItem.vue +1 -5
  120. package/src/legend/VcsLegend.vue +9 -10
  121. package/src/legend/VcsLegend.vue.d.ts +1 -1
  122. package/src/legend/legendHelper.js +6 -1
  123. package/src/manager/collectionManager/collectionComponentClass.js +4 -4
  124. package/src/manager/collectionManager/editorCollectionComponentClass.js +5 -3
  125. package/src/manager/toolbox/GroupToolboxComponent.vue +6 -1
  126. package/src/manager/toolbox/SelectToolboxComponent.vue +6 -2
  127. package/src/manager/toolbox/ToolboxManagerComponent.vue +7 -2
  128. package/src/manager/window/WindowComponentHeader.vue +1 -1
  129. package/src/navigation/MapNavCompass.vue +166 -140
  130. package/src/navigation/MapNavCompass.vue.d.ts +3 -1
  131. package/src/navigation/MapNavigation.vue +22 -5
  132. package/src/navigation/VcsCompass.vue +2 -1
  133. package/src/navigation/overviewMap.js +4 -1
  134. package/src/styles/main.scss +2 -2
  135. package/src/uiConfig.d.ts +27 -0
  136. package/src/uiConfig.js +3 -0
  137. package/src/vuePlugins/vuetify.js +2 -0
  138. package/dist/assets/ui-8a8aef2a.css +0 -1
  139. package/plugins/@vcmap-show-case/buttons-example/README.md +0 -4
  140. package/plugins/@vcmap-show-case/buttons-example/package.json +0 -5
  141. package/plugins/@vcmap-show-case/buttons-example/src/ButtonsExample.vue +0 -281
  142. package/plugins/@vcmap-show-case/buttons-example/src/index.js +0 -51
  143. package/plugins/@vcmap-show-case/config-editor/README.md +0 -3
  144. package/plugins/@vcmap-show-case/config-editor/package.json +0 -5
  145. package/plugins/@vcmap-show-case/config-editor/src/ConfigEditor.vue +0 -62
  146. package/plugins/@vcmap-show-case/config-editor/src/index.js +0 -49
  147. package/plugins/@vcmap-show-case/list-example/README.md +0 -3
  148. package/plugins/@vcmap-show-case/list-example/package.json +0 -5
  149. package/plugins/@vcmap-show-case/list-example/src/ListExample.vue +0 -406
  150. package/plugins/@vcmap-show-case/list-example/src/index.js +0 -46
  151. package/plugins/@vcmap-show-case/table-example/README.md +0 -3
  152. package/plugins/@vcmap-show-case/table-example/package.json +0 -5
  153. package/plugins/@vcmap-show-case/table-example/src/DataTableExample.vue +0 -203
  154. package/plugins/@vcmap-show-case/textfields-example/README.md +0 -3
  155. package/plugins/@vcmap-show-case/textfields-example/package.json +0 -5
  156. package/plugins/@vcmap-show-case/textfields-example/src/TextfieldsExample.vue +0 -115
  157. package/plugins/@vcmap-show-case/textfields-example/src/index.js +0 -64
  158. /package/dist/assets/{cesium-a21a380a.js → cesium-00deba88.js} +0 -0
  159. /package/dist/assets/{vue-bcc58dd1.js → vue-8269279d.js} +0 -0
  160. /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
- const playerChangedListener = app.flights.playerChanged.addEventListener(
98
- (player) => {
99
- clockChangedListener();
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
- },
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").Ref<any>;
12
+ localValue: import("vue").WritableComputedRef<Date>;
13
13
  menuOpen: import("vue").Ref<boolean>;
14
14
  formatDate: (date: any) => string;
15
15
  goToToday: () => void;
@@ -38,7 +38,7 @@
38
38
  </template>
39
39
 
40
40
  <style lang="scss" scoped>
41
- @import './vcsTextField.scss';
41
+ @use './vcsTextField.scss';
42
42
 
43
43
  // set text overflow for file input
44
44
  :deep(.v-field__input) {
@@ -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 | ArrayConstructor | StringConstructor | NumberConstructor)[];
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 | ArrayConstructor | StringConstructor | NumberConstructor)[];
37
+ type: (BooleanConstructor | StringConstructor | NumberConstructor | ArrayConstructor)[];
38
38
  default(rawProps: any): never[] | null;
39
39
  };
40
40
  tooltip: {
@@ -55,7 +55,7 @@
55
55
  </template>
56
56
 
57
57
  <style lang="scss" scoped>
58
- @import './vcsTextField.scss';
58
+ @use './vcsTextField.scss';
59
59
  </style>
60
60
  <script>
61
61
  import { computed, ref } from 'vue';
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<{
4
4
  default: boolean;
5
5
  };
6
6
  modelValue: {
7
- type: (BooleanConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
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 | ArrayConstructor | StringConstructor | NumberConstructor)[];
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>
@@ -13,7 +13,7 @@
13
13
  </template>
14
14
  <v-list-item-title>{{ $st(action.name) }}</v-list-item-title>
15
15
  <v-tooltip
16
- v-if="action.title"
16
+ v-if="action.title && $st(action.title)"
17
17
  activator="parent"
18
18
  :text="$st(action.title)"
19
19
  :location="tooltipPosition"
@@ -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
- return [
113
- {
114
- name: 'list.selectAll',
115
- tooltip: 'list.selectAll',
116
- callback() {
117
- const currentSelection = [...selected.value];
118
- selected.value = items.value.filter((item) => !item.disabled);
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
- selected.value.forEach((item) => {
121
- if (item.selectionChanged && !currentSelection.includes(item)) {
122
- item.selectionChanged(true);
123
- }
124
- });
125
- emit('update:modelValue', selected.value);
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
- name: 'list.clearSelection',
130
- tooltip: 'list.clearSelection',
131
- callback() {
132
- [...selected.value].forEach((item) => {
133
- if (item.selectionChanged) {
134
- item.selectionChanged(false);
135
- }
136
- });
137
- selected.value = [];
138
- emit('update:modelValue', selected.value);
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-base));
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: transparent;
609
+ background-color: rgb(var(--v-theme-on-surface));
597
610
  }
598
611
  }
599
612
  }
@@ -207,7 +207,7 @@
207
207
  width: 8px;
208
208
  }
209
209
  :deep(.v-list-item__overlay) {
210
- background-color: transparent;
210
+ background-color: rgb(var(--v-theme-on-surface));
211
211
  }
212
212
  :deep(.vcs-list-item__rename) {
213
213
  color: rgb(var(--v-theme-on-surface));
@@ -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
- isActive: boolean;
8
- isOpen: boolean;
9
- isSelected: boolean;
10
- isIndeterminate: boolean;
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 = {
@@ -92,6 +92,8 @@
92
92
  width: var(--v-vcs-font-size);
93
93
  height: var(--v-vcs-font-size);
94
94
  margin: auto;
95
+ // for alignment of chevron
96
+ display: flex;
95
97
  }
96
98
  }
97
99
 
@@ -13,7 +13,6 @@
13
13
  <style lang="scss">
14
14
  .vcs-help {
15
15
  box-sizing: border-box;
16
- padding-left: 16px;
17
16
  ol,
18
17
  ul {
19
18
  padding-left: 16px; /* Indentation for list items */
@@ -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;