@vcmap/ui 6.1.13 → 6.2.0-rc.1

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 (169) hide show
  1. package/build/build.js +2 -2
  2. package/build/buildHelpers.js +2 -3
  3. package/build/buildTypes.js +1 -1
  4. package/build/commonViteConfig.js +0 -1
  5. package/build/lintTypes.js +1 -1
  6. package/config/dev.config.json +4 -0
  7. package/dist/assets/cesium.js +1 -1
  8. package/dist/assets/{core-171d1d84.js → core-de8e51b5.js} +2 -2
  9. package/dist/assets/core.js +1 -1
  10. package/dist/assets/ol.js +1 -1
  11. package/dist/assets/ui-4f308e45.css +1 -0
  12. package/dist/assets/{ui-78b0084c.js → ui-4f308e45.js} +9084 -8706
  13. package/dist/assets/ui.js +1 -1
  14. package/dist/assets/vue.js +1 -1
  15. package/dist/assets/{vuetify-d26d8a53.js → vuetify-99195777.js} +1 -1
  16. package/dist/assets/vuetify.js +1 -1
  17. package/index.d.ts +4 -0
  18. package/index.js +5 -0
  19. package/package.json +4 -46
  20. package/plugins/@vcmap-show-case/category-tester/src/CategoriesExample.vue +2 -3
  21. package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +0 -1
  22. package/plugins/@vcmap-show-case/form-inputs-example/src/index.js +3 -3
  23. package/plugins/@vcmap-show-case/hello-world/src/helloWorld.vue +6 -6
  24. package/plugins/@vcmap-show-case/hello-world/src/index.js +0 -6
  25. package/plugins/@vcmap-show-case/hello-world/tests/helloWorld.spec.js +1 -1
  26. package/plugins/@vcmap-show-case/panel-tester/src/IframePanelExample.vue +1 -1
  27. package/plugins/@vcmap-show-case/panel-tester/src/ImgPanelExample.vue +1 -1
  28. package/plugins/@vcmap-show-case/panel-tester/src/PanelExample.vue +1 -1
  29. package/plugins/@vcmap-show-case/panel-tester/src/TextPanelExample.vue +1 -1
  30. package/plugins/@vcmap-show-case/project-selector/src/ModulesListComponent.vue +1 -0
  31. package/plugins/@vcmap-show-case/toolbox-example/src/TriStateExampleWindow.vue +1 -1
  32. package/plugins/@vcmap-show-case/window-tester/src/EmptyComponent.vue +5 -5
  33. package/plugins/@vcmap-show-case/window-tester/src/MyCustomHeader.vue +1 -0
  34. package/plugins/@vcmap-show-case/window-tester/src/WindowExample.vue +1 -1
  35. package/plugins/@vcmap-show-case/window-tester/src/WindowExampleContent.vue +1 -1
  36. package/plugins/@vcmap-show-case/window-tester/src/WindowExampleToggleChild.vue +1 -1
  37. package/src/application/MapsGroupMobileMenu.vue +6 -5
  38. package/src/application/MapsGroupMobileMenu.vue.d.ts +3 -1
  39. package/src/application/VcsApp.vue +36 -46
  40. package/src/application/VcsApp.vue.d.ts +19 -45
  41. package/src/application/VcsAppWrapper.vue +4 -4
  42. package/src/application/VcsAttributions.vue +12 -12
  43. package/src/application/VcsAttributionsFooter.vue +27 -27
  44. package/src/application/VcsContainer.vue +50 -51
  45. package/src/application/VcsContainer.vue.d.ts +14 -2
  46. package/src/application/VcsMainMap.vue +2 -2
  47. package/src/application/VcsMap.vue +16 -16
  48. package/src/application/VcsNavbar.vue +17 -15
  49. package/src/application/VcsNavbarMobile.vue +15 -15
  50. package/src/application/VcsObliqueFooter.vue +10 -9
  51. package/src/application/VcsPositionDisplay.vue +8 -8
  52. package/src/application/VcsTextPage.vue +10 -10
  53. package/src/application/VcsTextPageFooter.vue +9 -9
  54. package/src/application/uiConfigHelper.d.ts +6 -0
  55. package/src/application/uiConfigHelper.js +19 -0
  56. package/src/callback/stopRotationCallback.js +0 -1
  57. package/src/callback/toggleToolbarButtonCallback.d.ts +48 -0
  58. package/src/callback/toggleToolbarButtonCallback.js +115 -0
  59. package/src/components/attrsHelpers.js +1 -1
  60. package/src/components/buttons/VcsActionButtonList.vue +5 -5
  61. package/src/components/buttons/VcsButton.vue +26 -26
  62. package/src/components/buttons/VcsFormButton.vue +31 -31
  63. package/src/components/buttons/VcsToolButton.vue +29 -29
  64. package/src/components/extent/VcsExtent.vue +1 -1
  65. package/src/components/extent/VcsExtentEditor.vue +1 -1
  66. package/src/components/flight/VcsFlightAnchorsComponent.vue +2 -2
  67. package/src/components/flight/VcsFlightAnchorsComponent.vue.d.ts +1 -4
  68. package/src/components/flight/VcsFlightEditor.vue +1 -0
  69. package/src/components/flight/VcsFlightEditor.vue.d.ts +4 -2
  70. package/src/components/flight/VcsFlightPlayer.vue +1 -1
  71. package/src/components/form-inputs-controls/VcsCheckbox.vue +23 -23
  72. package/src/components/form-inputs-controls/VcsChipArrayInput.vue +20 -20
  73. package/src/components/form-inputs-controls/VcsCoordinate.vue +3 -3
  74. package/src/components/form-inputs-controls/VcsDatePicker.vue +7 -7
  75. package/src/components/form-inputs-controls/VcsFileInput.vue +14 -14
  76. package/src/components/form-inputs-controls/VcsLabel.vue +26 -26
  77. package/src/components/form-inputs-controls/VcsRadio.vue +27 -27
  78. package/src/components/form-inputs-controls/VcsSelect.vue +78 -78
  79. package/src/components/form-inputs-controls/VcsSlider.vue +43 -43
  80. package/src/components/form-inputs-controls/VcsTextArea.vue +47 -47
  81. package/src/components/form-inputs-controls/VcsTextField.vue +4 -4
  82. package/src/components/form-inputs-controls/VcsWizard.vue +4 -4
  83. package/src/components/form-output/VcsFormattedNumber.vue +11 -11
  84. package/src/components/form-output/VcsMarkdown.vue +23 -22
  85. package/src/components/form-output/markdownHelper.js +1 -1
  86. package/src/components/import/VcsImportComponent.vue +1 -0
  87. package/src/components/import/VcsImportComponent.vue.d.ts +4 -2
  88. package/src/components/lists/VcsActionList.vue +14 -14
  89. package/src/components/lists/VcsList.vue +24 -20
  90. package/src/components/lists/VcsList.vue.d.ts +4 -6
  91. package/src/components/lists/VcsListItemComponent.vue +28 -8
  92. package/src/components/lists/VcsTreeNode.vue +138 -38
  93. package/src/components/lists/VcsTreeview.vue +65 -23
  94. package/src/components/lists/VcsTreeview.vue.d.ts +34 -9
  95. package/src/components/lists/VcsTreeviewSearchbar.vue +50 -50
  96. package/src/components/lists/VcsTreeviewTitle.vue +13 -13
  97. package/src/components/lists/dragHelper.d.ts +118 -0
  98. package/src/components/lists/dragHelper.js +325 -0
  99. package/src/components/lists/listHelper.d.ts +3 -2
  100. package/src/components/lists/listHelper.js +8 -1
  101. package/src/components/notification/VcsBadge.vue +12 -12
  102. package/src/components/notification/VcsHelp.vue +9 -9
  103. package/src/components/notification/VcsHelpTooltip.vue +1 -1
  104. package/src/components/style/StyleMenuWrapper.vue +1 -1
  105. package/src/components/tables/VcsDataTable.vue +3 -2
  106. package/src/components/tables/VcsDataTable.vue.d.ts +4 -2
  107. package/src/components/vector-properties/VcsFeatureEditingWindow.vue +1 -1
  108. package/src/components/vector-properties/VcsFeatureTransforms.vue +1 -1
  109. package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +1 -1
  110. package/src/components/viewpoint/VcsViewpointEditor.vue +1 -0
  111. package/src/components/viewpoint/VcsViewpointEditor.vue.d.ts +4 -2
  112. package/src/contentTree/LayerSwap.vue +149 -0
  113. package/src/contentTree/LayerSwap.vue.d.ts +27 -0
  114. package/src/contentTree/LayerTree.vue +53 -3
  115. package/src/contentTree/LayerTree.vue.d.ts +3 -0
  116. package/src/contentTree/contentTreeCollection.js +0 -1
  117. package/src/i18n/de.d.ts +63 -55
  118. package/src/i18n/de.js +5 -0
  119. package/src/i18n/en.d.ts +63 -55
  120. package/src/i18n/en.js +5 -0
  121. package/src/init.js +1 -1
  122. package/src/manager/collectionManager/CollectionComponent.vue +1 -1
  123. package/src/manager/collectionManager/CollectionComponentContent.vue +2 -2
  124. package/src/manager/collectionManager/CollectionComponentContent.vue.d.ts +1 -4
  125. package/src/manager/collectionManager/CollectionComponentList.vue +14 -13
  126. package/src/manager/collectionManager/CollectionComponentList.vue.d.ts +3 -7
  127. package/src/manager/collectionManager/CollectionComponentStandalone.vue +2 -2
  128. package/src/manager/collectionManager/CollectionManager.vue +2 -2
  129. package/src/manager/panel/PanelComponent.vue +40 -39
  130. package/src/manager/panel/PanelComponent.vue.d.ts +4 -2
  131. package/src/manager/panel/PanelManagerComponent.vue +13 -13
  132. package/src/manager/panel/PanelManagerComponent.vue.d.ts +4 -2
  133. package/src/manager/panel/panelHelper.js +19 -21
  134. package/src/manager/toolbox/GroupToolboxComponent.vue +9 -8
  135. package/src/manager/toolbox/GroupToolboxComponent.vue.d.ts +5 -2
  136. package/src/manager/toolbox/SelectToolboxComponent.vue +9 -8
  137. package/src/manager/toolbox/SelectToolboxComponent.vue.d.ts +5 -2
  138. package/src/manager/toolbox/ToolboxManagerComponent.vue +23 -23
  139. package/src/manager/window/WindowComponent.vue +12 -12
  140. package/src/manager/window/WindowComponent.vue.d.ts +7 -4
  141. package/src/manager/window/WindowComponentHeader.vue +24 -24
  142. package/src/manager/window/WindowComponentHeader.vue.d.ts +7 -4
  143. package/src/manager/window/WindowManager.vue +41 -41
  144. package/src/navigation/MapNavCompass.vue +4 -3
  145. package/src/navigation/MapNavCompass.vue.d.ts +4 -2
  146. package/src/navigation/ObliqueRotation.vue +1 -0
  147. package/src/navigation/ObliqueRotation.vue.d.ts +4 -2
  148. package/src/navigation/OrientationToolsButton.vue +1 -1
  149. package/src/navigation/TiltSlider.vue +35 -35
  150. package/src/navigation/VcsCompass.vue +18 -13
  151. package/src/navigation/VcsCompass.vue.d.ts +6 -2
  152. package/src/navigation/VcsZoomButton.vue +1 -0
  153. package/src/navigation/VcsZoomButton.vue.d.ts +5 -2
  154. package/src/navigation/locatorHelper.js +1 -1
  155. package/src/notifier/NotifierComponent.vue +1 -1
  156. package/src/pluginHelper.js +2 -1
  157. package/src/search/ResultItem.vue +1 -0
  158. package/src/search/SearchComponent.vue +35 -35
  159. package/src/search/markText.js +2 -2
  160. package/src/state.d.ts +12 -1
  161. package/src/state.js +59 -4
  162. package/src/uiConfig.d.ts +30 -3
  163. package/src/uiConfig.js +4 -1
  164. package/src/vcsUiApp.js +20 -0
  165. package/dist/assets/ui-78b0084c.css +0 -1
  166. /package/dist/assets/{cesium-76fff1d7.js → cesium-ac6c193a.js} +0 -0
  167. /package/dist/assets/{ol-76b9c9e3.js → ol-94c57f2e.js} +0 -0
  168. /package/dist/assets/{vue-859ae1f4.js → vue-62303c82.js} +0 -0
  169. /package/dist/assets/{vuetify-d26d8a53.css → vuetify-99195777.css} +0 -0
@@ -35,3 +35,22 @@ export function getImprint(uiConfig) {
35
35
  return undefined;
36
36
  });
37
37
  }
38
+
39
+ /**
40
+ * Creates a computed property for mobile logo.
41
+ * @param {import("../vcsUiApp.js").default} app - The VcsUiApp.
42
+ * @returns {import('vue').ComputedRef<string>}
43
+ */
44
+ export function getMobileLogo(app) {
45
+ return computed(() => {
46
+ const { config } = app.uiConfig;
47
+ const isDark = app.vuetify.theme.current.value.dark;
48
+
49
+ return isDark
50
+ ? (config.mobileLogoDark ??
51
+ config.logoDark ??
52
+ config.mobileLogo ??
53
+ config.logo)
54
+ : (config.mobileLogo ?? config.logo);
55
+ });
56
+ }
@@ -13,7 +13,6 @@ class StopRotationCallback extends VcsCallback {
13
13
  return 'StopRotationCallback';
14
14
  }
15
15
 
16
- // eslint-disable-next-line class-methods-use-this
17
16
  callback() {
18
17
  if (this._app.maps.exclusiveMapControlsId === rotationMapControlSymbol) {
19
18
  this._app.maps.resetExclusiveMapControls();
@@ -0,0 +1,48 @@
1
+ export default ToggleToolbarButtonCallback;
2
+ export type ToggleToolbarButtonOptions = import("./vcsCallback.js").VcsCallbackOptions & {
3
+ componentId: string;
4
+ groupButtonId?: string;
5
+ };
6
+ /**
7
+ * @typedef {import("./vcsCallback.js").VcsCallbackOptions & { componentId: string, groupButtonId?:string }} ToggleToolbarButtonOptions
8
+ * @property {string} componentId - id of the Toolbar button
9
+ * @property {string} [groupButtonId] - id of the button to toggle, in case of a GroupComponentToolbox
10
+ * @property {string} [toolName] - name of the tool to toggle, in case of a SelectComponentToolbox
11
+ * @property {boolean} [activeState] - state to be applied to the button
12
+ */
13
+ /**
14
+ * @class
15
+ * @extends {VcsCallback}
16
+ */
17
+ declare class ToggleToolbarButtonCallback extends VcsCallback {
18
+ /**
19
+ * @param {ToggleToolbarButtonOptions} options
20
+ * @param {import("@src/vcsUiApp.js").default} app
21
+ */
22
+ constructor(options: ToggleToolbarButtonOptions, app: import("@src/vcsUiApp.js").default);
23
+ /**
24
+ * @type {string}
25
+ * @private
26
+ */
27
+ private _componentId;
28
+ /**
29
+ * @type {string|undefined}
30
+ * @private
31
+ */
32
+ private _groupButtonId;
33
+ /**
34
+ * @type {string|undefined}
35
+ * @private
36
+ */
37
+ private _toolName;
38
+ /**
39
+ * @type {boolean|undefined}
40
+ * @private
41
+ */
42
+ private _activeState;
43
+ /**
44
+ * @returns {ToggleToolbarButtonOptions}
45
+ */
46
+ toJSON(): ToggleToolbarButtonOptions;
47
+ }
48
+ import VcsCallback from './vcsCallback.js';
@@ -0,0 +1,115 @@
1
+ import { getLogger } from '@vcsuite/logger';
2
+ import VcsCallback, { callbackClassRegistry } from './vcsCallback.js';
3
+ import { ToolboxType } from '../manager/toolbox/toolboxManager.js';
4
+ import { callSafeAction } from '../actions/actionHelper.js';
5
+
6
+ /**
7
+ * @typedef {import("./vcsCallback.js").VcsCallbackOptions & { componentId: string, groupButtonId?:string }} ToggleToolbarButtonOptions
8
+ * @property {string} componentId - id of the Toolbar button
9
+ * @property {string} [groupButtonId] - id of the button to toggle, in case of a GroupComponentToolbox
10
+ * @property {string} [toolName] - name of the tool to toggle, in case of a SelectComponentToolbox
11
+ * @property {boolean} [activeState] - state to be applied to the button
12
+ */
13
+
14
+ /**
15
+ * @class
16
+ * @extends {VcsCallback}
17
+ */
18
+ class ToggleToolbarButtonCallback extends VcsCallback {
19
+ /**
20
+ * @type {string}
21
+ */
22
+ static get className() {
23
+ return 'ToggleToolbarButtonCallback';
24
+ }
25
+
26
+ /**
27
+ * @param {ToggleToolbarButtonOptions} options
28
+ * @param {import("@src/vcsUiApp.js").default} app
29
+ */
30
+ constructor(options, app) {
31
+ super(options, app);
32
+ /**
33
+ * @type {string}
34
+ * @private
35
+ */
36
+ this._componentId = options.componentId;
37
+ /**
38
+ * @type {string|undefined}
39
+ * @private
40
+ */
41
+ this._groupButtonId = options.groupButtonId;
42
+ /**
43
+ * @type {string|undefined}
44
+ * @private
45
+ */
46
+ this._toolName = options.toolName;
47
+ /**
48
+ * @type {boolean|undefined}
49
+ * @private
50
+ */
51
+ this._activeState = options.activeState;
52
+ }
53
+
54
+ callback() {
55
+ let action;
56
+ const component = this._app.toolboxManager.get(this._componentId);
57
+ if (component?.type === ToolboxType.GROUP && this._groupButtonId) {
58
+ const btn = component.buttonManager.get(this._groupButtonId);
59
+ if (btn?.action) {
60
+ ({ action } = btn);
61
+ }
62
+ } else if (component?.type === ToolboxType.SELECT) {
63
+ try {
64
+ const { tools } = component.action;
65
+ const toolIndex = tools.findIndex((t) => t.name === this._toolName);
66
+ if (toolIndex) {
67
+ component.action.selected(toolIndex);
68
+ ({ action } = component);
69
+ }
70
+ } catch (error) {
71
+ getLogger(this.className).error(
72
+ `Error while setting tool ${this._toolName}:`,
73
+ error,
74
+ );
75
+ }
76
+ } else if (component?.type === ToolboxType.SINGLE) {
77
+ ({ action } = component);
78
+ }
79
+
80
+ if (
81
+ action &&
82
+ (this._activeState === undefined ||
83
+ action.active === undefined ||
84
+ action.active !== this._activeState)
85
+ ) {
86
+ callSafeAction(action);
87
+ }
88
+ }
89
+
90
+ /**
91
+ * @returns {ToggleToolbarButtonOptions}
92
+ */
93
+ toJSON() {
94
+ const config = super.toJSON();
95
+ config.componentId = this._componentId;
96
+ if (this._groupButtonId) {
97
+ config.groupButtonId = this._groupButtonId;
98
+ }
99
+ if (this._toolName) {
100
+ config.toolName = this._toolName;
101
+ }
102
+ if (this._activeState) {
103
+ config.activeState = this._activeState;
104
+ }
105
+ return config;
106
+ }
107
+ }
108
+
109
+ export default ToggleToolbarButtonCallback;
110
+
111
+ // Register the class
112
+ callbackClassRegistry.registerClass(
113
+ ToggleToolbarButtonCallback.className,
114
+ ToggleToolbarButtonCallback,
115
+ );
@@ -4,7 +4,7 @@ import { is } from '@vcsuite/check';
4
4
  * @param {Record<string, unknown>} attrs
5
5
  * @returns {Record<string, unknown>}
6
6
  */
7
- // eslint-disable-next-line import/prefer-default-export
7
+
8
8
  export function removeListenersFromAttrs(attrs) {
9
9
  return Object.fromEntries(
10
10
  Object.entries(attrs).filter(
@@ -42,11 +42,6 @@
42
42
  <v-spacer v-else-if="blockOverflow" />
43
43
  </div>
44
44
  </template>
45
- <style scoped lang="scss">
46
- :deep(.v-spacer) {
47
- width: calc(var(--v-vcs-font-size) * 1.25);
48
- }
49
- </style>
50
45
  <script>
51
46
  import { VIcon, VMenu, VSpacer } from 'vuetify/components';
52
47
  import VcsButton from './VcsButton.vue';
@@ -180,3 +175,8 @@
180
175
  },
181
176
  };
182
177
  </script>
178
+ <style scoped lang="scss">
179
+ :deep(.v-spacer) {
180
+ width: calc(var(--v-vcs-font-size) * 1.25);
181
+ }
182
+ </style>
@@ -34,32 +34,6 @@
34
34
  </v-btn>
35
35
  </template>
36
36
 
37
- <style lang="scss" scoped>
38
- .badge {
39
- top: -3px;
40
- right: -3px;
41
- }
42
- .v-btn {
43
- padding: 0px;
44
- &.vcs-button {
45
- &:hover {
46
- color: rgb(var(--v-theme-primary-lighten-1)) !important;
47
- }
48
- }
49
- &.v-btn--disabled {
50
- opacity: var(--v-disabled-opacity);
51
- }
52
- :deep(.v-btn__loader > .v-progress-circular) {
53
- width: calc(var(--v-vcs-font-size) * (1.2 + 0.1 / 3)) !important;
54
- height: calc(var(--v-vcs-font-size) * (1.2 + 0.1 / 3)) !important;
55
- }
56
- }
57
- // remove hover shadow over button
58
- :deep(.v-btn__overlay) {
59
- --v-hover-opacity: 0;
60
- }
61
- </style>
62
-
63
37
  <script>
64
38
  import { computed } from 'vue';
65
39
  import { VBtn, VIcon, VTooltip } from 'vuetify/components';
@@ -143,3 +117,29 @@
143
117
  },
144
118
  };
145
119
  </script>
120
+
121
+ <style lang="scss" scoped>
122
+ .badge {
123
+ top: -3px;
124
+ right: -3px;
125
+ }
126
+ .v-btn {
127
+ padding: 0px;
128
+ &.vcs-button {
129
+ &:hover {
130
+ color: rgb(var(--v-theme-primary-lighten-1)) !important;
131
+ }
132
+ }
133
+ &.v-btn--disabled {
134
+ opacity: var(--v-disabled-opacity);
135
+ }
136
+ :deep(.v-btn__loader > .v-progress-circular) {
137
+ width: calc(var(--v-vcs-font-size) * (1.2 + 0.1 / 3)) !important;
138
+ height: calc(var(--v-vcs-font-size) * (1.2 + 0.1 / 3)) !important;
139
+ }
140
+ }
141
+ // remove hover shadow over button
142
+ :deep(.v-btn__overlay) {
143
+ --v-hover-opacity: 0;
144
+ }
145
+ </style>
@@ -32,37 +32,6 @@
32
32
  </v-btn>
33
33
  </template>
34
34
 
35
- <style lang="scss" scoped>
36
- .badge {
37
- top: -3px;
38
- right: -3px;
39
- }
40
- .v-btn {
41
- &.v-btn--variant-outlined:hover {
42
- border-color: rgb(var(--v-theme-primary-lighten-1));
43
- }
44
- &.v-btn--variant-flat:hover {
45
- background-color: rgb(var(--v-theme-primary-lighten-1)) !important;
46
- --v-hover-opacity: 0;
47
- }
48
- &.v-btn--disabled.v-btn--variant-outlined {
49
- opacity: var(--v-disabled-opacity);
50
- color: rgb(var(--v-theme-on-surface)) !important;
51
- }
52
- &.v-btn--disabled.v-btn--variant-flat {
53
- opacity: var(--v-disabled-opacity);
54
- background-color: rgb(var(--v-theme-base-lighten-1)) !important;
55
- :deep(.v-btn__overlay) {
56
- opacity: 0;
57
- }
58
- }
59
- :deep(.v-btn__loader > .v-progress-circular) {
60
- width: calc(var(--v-vcs-font-size) * (1.2 + 0.1 / 3)) !important;
61
- height: calc(var(--v-vcs-font-size) * (1.2 + 0.1 / 3)) !important;
62
- }
63
- }
64
- </style>
65
-
66
35
  <script>
67
36
  import { computed } from 'vue';
68
37
  import { VBtn, VIcon, VTooltip } from 'vuetify/components';
@@ -137,3 +106,34 @@
137
106
  },
138
107
  };
139
108
  </script>
109
+
110
+ <style lang="scss" scoped>
111
+ .badge {
112
+ top: -3px;
113
+ right: -3px;
114
+ }
115
+ .v-btn {
116
+ &.v-btn--variant-outlined:hover {
117
+ border-color: rgb(var(--v-theme-primary-lighten-1));
118
+ }
119
+ &.v-btn--variant-flat:hover {
120
+ background-color: rgb(var(--v-theme-primary-lighten-1)) !important;
121
+ --v-hover-opacity: 0;
122
+ }
123
+ &.v-btn--disabled.v-btn--variant-outlined {
124
+ opacity: var(--v-disabled-opacity);
125
+ color: rgb(var(--v-theme-on-surface)) !important;
126
+ }
127
+ &.v-btn--disabled.v-btn--variant-flat {
128
+ opacity: var(--v-disabled-opacity);
129
+ background-color: rgb(var(--v-theme-base-lighten-1)) !important;
130
+ :deep(.v-btn__overlay) {
131
+ opacity: 0;
132
+ }
133
+ }
134
+ :deep(.v-btn__loader > .v-progress-circular) {
135
+ width: calc(var(--v-vcs-font-size) * (1.2 + 0.1 / 3)) !important;
136
+ height: calc(var(--v-vcs-font-size) * (1.2 + 0.1 / 3)) !important;
137
+ }
138
+ }
139
+ </style>
@@ -40,35 +40,6 @@
40
40
  </v-btn>
41
41
  </template>
42
42
 
43
- <style lang="scss" scoped>
44
- .badge {
45
- top: -3px;
46
- right: -3px;
47
- }
48
- .vcs-active.vcs-background:not(.v-btn--disabled) :deep(.badge) {
49
- top: -5px;
50
- right: -5px;
51
- }
52
- .v-btn {
53
- padding-left: 11px;
54
- padding-right: 11px;
55
-
56
- &.vcs-active.vcs-background:not(.v-btn--disabled) {
57
- padding-left: 9px;
58
- padding-right: 9px;
59
- border: 2px solid rgb(var(--v-theme-primary));
60
- background-color: rgb(var(--v-theme-base-lighten-2)) !important;
61
- }
62
- &.v-btn--disabled.v-btn--variant-text {
63
- opacity: var(--v-disabled-opacity);
64
- }
65
- :deep(.v-btn__loader > .v-progress-circular) {
66
- width: calc(var(--v-vcs-font-size) * (1.2 + 0.1 / 3)) !important;
67
- height: calc(var(--v-vcs-font-size) * (1.2 + 0.1 / 3)) !important;
68
- }
69
- }
70
- </style>
71
-
72
43
  <script>
73
44
  import { computed } from 'vue';
74
45
  import { VBtn, VIcon, VTooltip } from 'vuetify/components';
@@ -173,3 +144,32 @@
173
144
  },
174
145
  };
175
146
  </script>
147
+
148
+ <style lang="scss" scoped>
149
+ .badge {
150
+ top: -3px;
151
+ right: -3px;
152
+ }
153
+ .vcs-active.vcs-background:not(.v-btn--disabled) :deep(.badge) {
154
+ top: -5px;
155
+ right: -5px;
156
+ }
157
+ .v-btn {
158
+ padding-left: 11px;
159
+ padding-right: 11px;
160
+
161
+ &.vcs-active.vcs-background:not(.v-btn--disabled) {
162
+ padding-left: 9px;
163
+ padding-right: 9px;
164
+ border: 2px solid rgb(var(--v-theme-primary));
165
+ background-color: rgb(var(--v-theme-base-lighten-2)) !important;
166
+ }
167
+ &.v-btn--disabled.v-btn--variant-text {
168
+ opacity: var(--v-disabled-opacity);
169
+ }
170
+ :deep(.v-btn__loader > .v-progress-circular) {
171
+ width: calc(var(--v-vcs-font-size) * (1.2 + 0.1 / 3)) !important;
172
+ height: calc(var(--v-vcs-font-size) * (1.2 + 0.1 / 3)) !important;
173
+ }
174
+ }
175
+ </style>
@@ -73,7 +73,6 @@
73
73
  */
74
74
  export default {
75
75
  name: 'VcsExtent',
76
- inheritAttrs: false,
77
76
  components: {
78
77
  VcsCoordinate,
79
78
  VContainer,
@@ -82,6 +81,7 @@
82
81
  VcsLabel,
83
82
  VcsTextField,
84
83
  },
84
+ inheritAttrs: false,
85
85
  props: {
86
86
  modelValue: {
87
87
  type: Object,
@@ -30,11 +30,11 @@
30
30
  */
31
31
  export default {
32
32
  name: 'VcsExtentEditor',
33
- inheritAttrs: false,
34
33
  components: {
35
34
  VcsFormSection,
36
35
  VcsExtent,
37
36
  },
37
+ inheritAttrs: false,
38
38
  props: {
39
39
  modelValue: {
40
40
  type: Object,
@@ -328,8 +328,8 @@
328
328
  items: collectionComponent.items,
329
329
  draggable: collectionComponent.draggable,
330
330
  actions: collectionComponent.getActions(),
331
- move({ item, targetIndex }) {
332
- moveItem(collectionComponent, item, targetIndex);
331
+ move(event) {
332
+ moveItem(collectionComponent, event);
333
333
  },
334
334
  durationRule,
335
335
  showDuration(index) {
@@ -18,10 +18,7 @@ declare const _default: import("vue").DefineComponent<{
18
18
  items: import("vue").Ref<import("../../manager/collectionManager/collectionComponentClass.js", { with: { "resolution-mode": "import" } }).CollectionComponentListItem[]>;
19
19
  draggable: import("vue").Ref<boolean>;
20
20
  actions: import("vue").ComputedRef<import("../../actions/actionHelper.js", { with: { "resolution-mode": "import" } }).VcsAction[]>;
21
- move({ item, targetIndex }: {
22
- item: any;
23
- targetIndex: any;
24
- }): void;
21
+ move(event: any): void;
25
22
  durationRule: typeof durationRule;
26
23
  showDuration(index: any): boolean;
27
24
  }, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -45,6 +45,7 @@
45
45
  default: () => {},
46
46
  },
47
47
  },
48
+ emits: ['close'],
48
49
  setup(props, { emit }) {
49
50
  const flightInstance = props.getFlightInstance();
50
51
  let cancel = false;
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
15
15
  apply(): Promise<void>;
16
16
  cancel(): Promise<void>;
17
17
  reset(): Promise<void>;
18
- }, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
+ }, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
19
  getFlightInstance: {
20
20
  type: FunctionConstructor;
21
21
  required: true;
@@ -28,7 +28,9 @@ declare const _default: import("vue").DefineComponent<{
28
28
  type: FunctionConstructor;
29
29
  default: () => void;
30
30
  };
31
- }>>, {
31
+ }>> & {
32
+ onClose?: ((...args: any[]) => any) | undefined;
33
+ }, {
32
34
  resetFlightInstance: Function;
33
35
  }, {}>;
34
36
  export default _default;
@@ -5,7 +5,7 @@
5
5
  v-if="clock"
6
6
  type="number"
7
7
  :model-value="clock.currentTime"
8
- @update:modelValue="setTime"
8
+ @update:model-value="setTime"
9
9
  :step="0"
10
10
  :min="clock.startTime"
11
11
  :max="clock.endTime"
@@ -38,28 +38,6 @@
38
38
  ></v-tooltip>
39
39
  </v-checkbox>
40
40
  </template>
41
- <style lang="scss" scoped>
42
- :deep(.v-icon--size-default) {
43
- font-size: calc(var(--v-vcs-font-size) * (1.2 + 0.1 / 3));
44
- }
45
- .v-input--density-compact :deep(.v-selection-control) {
46
- --v-selection-control-size: calc(
47
- var(--v-vcs-font-size) * (1.2 + 0.1 / 3) + 4
48
- );
49
- --v-input-control-height: calc(var(--v-vcs-font-size) + 3px);
50
- }
51
- :deep(.v-input__control) {
52
- height: calc(var(--v-vcs-font-size) * 2 - 2px);
53
- }
54
- // remove ripple effect
55
- :deep(.v-selection-control__input::before) {
56
- background-color: transparent;
57
- }
58
- // remove details
59
- :deep(.v-input__details) {
60
- display: none;
61
- }
62
- </style>
63
41
  <script>
64
42
  import { ref } from 'vue';
65
43
  import { VCheckbox, VTooltip } from 'vuetify/components';
@@ -75,11 +53,11 @@
75
53
  */
76
54
  export default {
77
55
  name: 'VcsCheckbox',
78
- inheritAttrs: true,
79
56
  components: {
80
57
  VTooltip,
81
58
  VCheckbox,
82
59
  },
60
+ inheritAttrs: true,
83
61
  props: {
84
62
  tooltip: {
85
63
  type: String,
@@ -108,3 +86,25 @@
108
86
  },
109
87
  };
110
88
  </script>
89
+ <style lang="scss" scoped>
90
+ :deep(.v-icon--size-default) {
91
+ font-size: calc(var(--v-vcs-font-size) * (1.2 + 0.1 / 3));
92
+ }
93
+ .v-input--density-compact :deep(.v-selection-control) {
94
+ --v-selection-control-size: calc(
95
+ var(--v-vcs-font-size) * (1.2 + 0.1 / 3) + 4
96
+ );
97
+ --v-input-control-height: calc(var(--v-vcs-font-size) + 3px);
98
+ }
99
+ :deep(.v-input__control) {
100
+ height: calc(var(--v-vcs-font-size) * 2 - 2px);
101
+ }
102
+ // remove ripple effect
103
+ :deep(.v-selection-control__input::before) {
104
+ background-color: transparent;
105
+ }
106
+ // remove details
107
+ :deep(.v-input__details) {
108
+ display: none;
109
+ }
110
+ </style>
@@ -85,26 +85,6 @@
85
85
  </div>
86
86
  </template>
87
87
 
88
- <style lang="scss" scoped>
89
- .hide-scrollbar {
90
- -ms-overflow-style: none; /* IE and Edge */
91
- scrollbar-width: none; /* Firefox */
92
- }
93
- .hide-scrollbar::-webkit-scrollbar {
94
- display: none;
95
- }
96
- .v-chip.v-chip--size-small {
97
- --v-chip-height: calc(var(--v-vcs-font-size) * 2 - 2px);
98
- padding: 0 calc(var(--v-vcs-font-size) - 3px);
99
- }
100
- :deep(.v-icon--size-x-small) {
101
- font-size: calc(var(--v-vcs-font-size) + 3px);
102
- }
103
- .row-gap {
104
- row-gap: 8px !important;
105
- }
106
- </style>
107
-
108
88
  <script>
109
89
  import { computed, nextTick, onMounted, ref, shallowRef, watch } from 'vue';
110
90
  import { VChip, VIcon } from 'vuetify/components';
@@ -296,3 +276,23 @@
296
276
  },
297
277
  };
298
278
  </script>
279
+
280
+ <style lang="scss" scoped>
281
+ .hide-scrollbar {
282
+ -ms-overflow-style: none; /* IE and Edge */
283
+ scrollbar-width: none; /* Firefox */
284
+ }
285
+ .hide-scrollbar::-webkit-scrollbar {
286
+ display: none;
287
+ }
288
+ .v-chip.v-chip--size-small {
289
+ --v-chip-height: calc(var(--v-vcs-font-size) * 2 - 2px);
290
+ padding: 0 calc(var(--v-vcs-font-size) - 3px);
291
+ }
292
+ :deep(.v-icon--size-x-small) {
293
+ font-size: calc(var(--v-vcs-font-size) + 3px);
294
+ }
295
+ .row-gap {
296
+ row-gap: 8px !important;
297
+ }
298
+ </style>
@@ -32,8 +32,6 @@
32
32
  </v-row>
33
33
  </template>
34
34
 
35
- <style lang="scss" scoped></style>
36
-
37
35
  <script>
38
36
  import { computed } from 'vue';
39
37
  import { VRow, VCol } from 'vuetify/components';
@@ -83,12 +81,12 @@
83
81
  */
84
82
  export default {
85
83
  name: 'VcsCoordinate',
86
- inheritAttrs: false,
87
84
  components: {
88
85
  VRow,
89
86
  VCol,
90
87
  VcsTextField,
91
88
  },
89
+ inheritAttrs: false,
92
90
  props: {
93
91
  modelValue: {
94
92
  type: Array,
@@ -152,3 +150,5 @@
152
150
  },
153
151
  };
154
152
  </script>
153
+
154
+ <style lang="scss" scoped></style>