@vcmap/ui 6.0.0-rc.1 → 6.0.0-rc.2

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 (200) hide show
  1. package/config/base.config.json +4 -4
  2. package/dist/assets/cesium/Assets/approximateTerrainHeights.json +1 -1
  3. package/dist/assets/cesium/ThirdParty/Workers/z-worker-pako.js +1 -1
  4. package/dist/assets/cesium/Workers/{chunk-ZA25DG4Y.js → chunk-3DRPXHZ4.js} +11 -11
  5. package/dist/assets/cesium/Workers/{chunk-OAVNIRB4.js → chunk-3GI7DWF7.js} +5 -7
  6. package/dist/assets/cesium/Workers/{chunk-TFC6TZ3S.js → chunk-4EW3HFFI.js} +33 -22
  7. package/dist/assets/cesium/Workers/{chunk-LLUNNUJV.js → chunk-4OX4RYLB.js} +5 -5
  8. package/dist/assets/cesium/Workers/{chunk-66QLLS45.js → chunk-4RJH3H6D.js} +11 -9
  9. package/dist/assets/cesium/Workers/{chunk-MPAZH4BF.js → chunk-5OUTANXX.js} +1 -1
  10. package/dist/assets/cesium/Workers/{chunk-WXTV4ATB.js → chunk-6DH5PLFD.js} +1 -1
  11. package/dist/assets/cesium/Workers/{chunk-A4JVFBQ3.js → chunk-6DXIYFX3.js} +2 -2
  12. package/dist/assets/cesium/Workers/chunk-A5C2A5O5.js +963 -0
  13. package/dist/assets/cesium/Workers/{chunk-HQF437NJ.js → chunk-AGTH5JMJ.js} +6 -6
  14. package/dist/assets/cesium/Workers/{chunk-RP2A7BR5.js → chunk-AVFIYUKX.js} +12 -14
  15. package/dist/assets/cesium/Workers/{chunk-227AJNOA.js → chunk-BAJAVGUF.js} +5 -5
  16. package/dist/assets/cesium/Workers/{chunk-N3JIFFX2.js → chunk-BPY4HDAK.js} +5 -6
  17. package/dist/assets/cesium/Workers/{chunk-ABADGKYE.js → chunk-D6PDWQXW.js} +2 -2
  18. package/dist/assets/cesium/Workers/{chunk-34YUDLRP.js → chunk-DR7LK6PG.js} +13 -13
  19. package/dist/assets/cesium/Workers/{chunk-OYFCF4PL.js → chunk-DTACCQDR.js} +6 -6
  20. package/dist/assets/cesium/Workers/{chunk-C3SXRKRW.js → chunk-EVU2UNBD.js} +7 -7
  21. package/dist/assets/cesium/Workers/{chunk-6BTKZDRG.js → chunk-F7IEM66T.js} +3 -5
  22. package/dist/assets/cesium/Workers/{chunk-QT3MPEMI.js → chunk-FSXNF76Y.js} +4 -4
  23. package/dist/assets/cesium/Workers/{chunk-PCJWUS4M.js → chunk-FYYT5EVH.js} +830 -14
  24. package/dist/assets/cesium/Workers/{chunk-QMEMZIJI.js → chunk-FZDKIUDT.js} +4 -4
  25. package/dist/assets/cesium/Workers/{chunk-XTY7B2N6.js → chunk-G6346EDR.js} +16 -16
  26. package/dist/assets/cesium/Workers/{chunk-CHHNOC2C.js → chunk-H7PSTL64.js} +95 -155
  27. package/dist/assets/cesium/Workers/{chunk-2R5O53JW.js → chunk-I67V66MN.js} +6 -6
  28. package/dist/assets/cesium/Workers/{chunk-JS3AW5BK.js → chunk-IALQGTA2.js} +6 -6
  29. package/dist/assets/cesium/Workers/{chunk-K36FEYS7.js → chunk-KNMGSIIN.js} +16 -12
  30. package/dist/assets/cesium/Workers/{chunk-J3JY6I2C.js → chunk-L4XQPD6P.js} +49 -88
  31. package/dist/assets/cesium/Workers/{chunk-X4SU25DT.js → chunk-LMTN7R7M.js} +10 -12
  32. package/dist/assets/cesium/Workers/{chunk-JB2LWGH4.js → chunk-LUYI3XCB.js} +14 -14
  33. package/dist/assets/cesium/Workers/{chunk-AFFLIKOH.js → chunk-N5MIFVXJ.js} +7 -7
  34. package/dist/assets/cesium/Workers/{chunk-MYZB7C4T.js → chunk-O7OUBDMZ.js} +10 -10
  35. package/dist/assets/cesium/Workers/{chunk-VLGOATD6.js → chunk-P24I5VUS.js} +22 -22
  36. package/dist/assets/cesium/Workers/{chunk-KD4Y7CZL.js → chunk-PIOKSAZH.js} +15 -17
  37. package/dist/assets/cesium/Workers/{chunk-3W63OHNJ.js → chunk-PRKEY4QK.js} +5 -5
  38. package/dist/assets/cesium/Workers/{chunk-O5AMBQ36.js → chunk-Q7PM4W34.js} +8 -8
  39. package/dist/assets/cesium/Workers/{chunk-GLZBE3ML.js → chunk-QLC66ZRL.js} +13 -13
  40. package/dist/assets/cesium/Workers/{chunk-OZJDGN5F.js → chunk-RRLGJV3Q.js} +16 -16
  41. package/dist/assets/cesium/Workers/{chunk-CCFQRR6D.js → chunk-S2UEXF6T.js} +1 -1
  42. package/dist/assets/cesium/Workers/{chunk-QIKODV5G.js → chunk-S4VTLNAJ.js} +4 -4
  43. package/dist/assets/cesium/Workers/{chunk-EW2GWJYB.js → chunk-SJC5PRDX.js} +2 -2
  44. package/dist/assets/cesium/Workers/{chunk-KTJSNCK4.js → chunk-T6TZXGG5.js} +230 -20
  45. package/dist/assets/cesium/Workers/{chunk-RW6LU2CJ.js → chunk-TLGODPEV.js} +5 -5
  46. package/dist/assets/cesium/Workers/{chunk-CTELOFLA.js → chunk-UC566ISB.js} +6 -6
  47. package/dist/assets/cesium/Workers/{chunk-ZFOBYDGF.js → chunk-UMX265HW.js} +2 -2
  48. package/dist/assets/cesium/Workers/{chunk-Z24VKNDO.js → chunk-V7WJDCPA.js} +12 -12
  49. package/dist/assets/cesium/Workers/{chunk-4MFFIWUA.js → chunk-VD6G7UPU.js} +2 -2
  50. package/dist/assets/cesium/Workers/{chunk-XY7MGBKC.js → chunk-WMVCLETM.js} +14 -16
  51. package/dist/assets/cesium/Workers/{chunk-IPA4EACJ.js → chunk-WOA6WSHH.js} +12 -12
  52. package/dist/assets/cesium/Workers/{chunk-PFQBCKBM.js → chunk-X67EJ6X6.js} +4398 -2722
  53. package/dist/assets/cesium/Workers/{chunk-V3NGATMV.js → chunk-XGI4FRXF.js} +11 -13
  54. package/dist/assets/cesium/Workers/{chunk-AHKEZ2OE.js → chunk-YFVI4SQI.js} +1 -1
  55. package/dist/assets/cesium/Workers/{chunk-HARLBUOL.js → chunk-YFYPR4MW.js} +11 -8
  56. package/dist/assets/cesium/Workers/combineGeometry.js +22 -23
  57. package/dist/assets/cesium/Workers/createBoxGeometry.js +16 -17
  58. package/dist/assets/cesium/Workers/createBoxOutlineGeometry.js +14 -15
  59. package/dist/assets/cesium/Workers/createCircleGeometry.js +29 -26
  60. package/dist/assets/cesium/Workers/createCircleOutlineGeometry.js +17 -18
  61. package/dist/assets/cesium/Workers/createCoplanarPolygonGeometry.js +35 -36
  62. package/dist/assets/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +29 -30
  63. package/dist/assets/cesium/Workers/createCorridorGeometry.js +29 -30
  64. package/dist/assets/cesium/Workers/createCorridorOutlineGeometry.js +27 -28
  65. package/dist/assets/cesium/Workers/createCylinderGeometry.js +18 -19
  66. package/dist/assets/cesium/Workers/createCylinderOutlineGeometry.js +17 -19
  67. package/dist/assets/cesium/Workers/createEllipseGeometry.js +24 -25
  68. package/dist/assets/cesium/Workers/createEllipseOutlineGeometry.js +17 -18
  69. package/dist/assets/cesium/Workers/createEllipsoidGeometry.js +17 -18
  70. package/dist/assets/cesium/Workers/createEllipsoidOutlineGeometry.js +16 -17
  71. package/dist/assets/cesium/Workers/createFrustumGeometry.js +16 -17
  72. package/dist/assets/cesium/Workers/createFrustumOutlineGeometry.js +18 -18
  73. package/dist/assets/cesium/Workers/createGeometry.js +52 -33
  74. package/dist/assets/cesium/Workers/createGroundPolylineGeometry.js +28 -29
  75. package/dist/assets/cesium/Workers/createPlaneGeometry.js +14 -15
  76. package/dist/assets/cesium/Workers/createPlaneOutlineGeometry.js +13 -14
  77. package/dist/assets/cesium/Workers/createPolygonGeometry.js +451 -176
  78. package/dist/assets/cesium/Workers/createPolygonOutlineGeometry.js +29 -30
  79. package/dist/assets/cesium/Workers/createPolylineGeometry.js +24 -25
  80. package/dist/assets/cesium/Workers/createPolylineVolumeGeometry.js +31 -33
  81. package/dist/assets/cesium/Workers/createPolylineVolumeOutlineGeometry.js +27 -29
  82. package/dist/assets/cesium/Workers/createRectangleGeometry.js +30 -31
  83. package/dist/assets/cesium/Workers/createRectangleOutlineGeometry.js +21 -24
  84. package/dist/assets/cesium/Workers/createSimplePolylineGeometry.js +22 -23
  85. package/dist/assets/cesium/Workers/createSphereGeometry.js +17 -18
  86. package/dist/assets/cesium/Workers/createSphereOutlineGeometry.js +16 -17
  87. package/dist/assets/cesium/Workers/createTaskProcessorWorker.js +3 -3
  88. package/dist/assets/cesium/Workers/createVectorTileClampedPolylines.js +14 -16
  89. package/dist/assets/cesium/Workers/createVectorTileGeometries.js +22 -23
  90. package/dist/assets/cesium/Workers/createVectorTilePoints.js +12 -12
  91. package/dist/assets/cesium/Workers/createVectorTilePolygons.js +20 -21
  92. package/dist/assets/cesium/Workers/createVectorTilePolylines.js +14 -16
  93. package/dist/assets/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +24 -25
  94. package/dist/assets/cesium/Workers/createVerticesFromHeightmap.js +25 -26
  95. package/dist/assets/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +19 -21
  96. package/dist/assets/cesium/Workers/createWallGeometry.js +23 -24
  97. package/dist/assets/cesium/Workers/createWallOutlineGeometry.js +22 -23
  98. package/dist/assets/cesium/Workers/decodeDraco.js +11 -11
  99. package/dist/assets/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +12 -19
  100. package/dist/assets/cesium/Workers/decodeI3S.js +600 -92
  101. package/dist/assets/cesium/Workers/transcodeKTX2.js +46 -82
  102. package/dist/assets/cesium/Workers/transferTypedArrayTest.js +1 -1
  103. package/dist/assets/cesium/Workers/upsampleQuantizedTerrainMesh.js +21 -22
  104. package/dist/assets/{cesium.6b12b4.js → cesium.0b750d.js} +151166 -145641
  105. package/dist/assets/cesium.js +1 -1
  106. package/dist/assets/{core.074b78.js → core.cbf44a.js} +1944 -1902
  107. package/dist/assets/core.js +1 -1
  108. package/dist/assets/index-8eGauqjA.js +1 -0
  109. package/dist/assets/ol.js +1 -1
  110. package/dist/assets/ui.7c276c.css +1 -0
  111. package/dist/assets/{ui.715986.js → ui.7c276c.js} +13826 -12887
  112. package/dist/assets/ui.js +1 -1
  113. package/dist/assets/vue.js +1 -1
  114. package/dist/assets/{vuetify.28d881.js → vuetify.4d18fe.js} +1 -1
  115. package/dist/assets/vuetify.js +1 -1
  116. package/dist/index.html +1 -1
  117. package/index.d.ts +2 -0
  118. package/index.js +1 -0
  119. package/package.json +7 -6
  120. package/plugins/@vcmap-show-case/list-example/src/ListExample.vue +24 -86
  121. package/plugins/@vcmap-show-case/vector-properties-example/src/VectorPropertiesExample.vue +35 -10
  122. package/plugins/@vcmap-show-case/wizard-example/src/WizardExample.vue +40 -54
  123. package/src/application/VcsApp.vue +1 -2
  124. package/src/application/VcsCustomScreen.vue +4 -4
  125. package/src/application/VcsCustomScreen.vue.d.ts +1 -1
  126. package/src/application/VcsNavbar.vue.d.ts +1 -1
  127. package/src/application/VcsSplashScreen.vue +18 -21
  128. package/src/application/VcsSplashScreen.vue.d.ts +5 -5
  129. package/src/application/VcsTextPage.vue +4 -4
  130. package/src/application/VcsTextPage.vue.d.ts +1 -1
  131. package/src/application/markdownHelper.js +2 -17
  132. package/src/components/buttons/VcsButton.vue +1 -1
  133. package/src/components/buttons/VcsButton.vue.d.ts +3 -3
  134. package/src/components/buttons/VcsFormButton.vue +1 -1
  135. package/src/components/buttons/VcsFormButton.vue.d.ts +2 -2
  136. package/src/components/buttons/VcsToolButton.vue +1 -1
  137. package/src/components/buttons/VcsToolButton.vue.d.ts +4 -4
  138. package/src/components/composables.d.ts +7 -0
  139. package/src/components/composables.js +35 -1
  140. package/src/components/form-inputs-controls/VcsCheckbox.vue +12 -8
  141. package/src/components/form-inputs-controls/VcsCheckbox.vue.d.ts +1 -0
  142. package/src/components/form-inputs-controls/VcsChipArrayInput.vue +1 -1
  143. package/src/components/form-inputs-controls/VcsDatePicker.vue.d.ts +1 -1
  144. package/src/components/form-inputs-controls/VcsFileInput.vue +2 -2
  145. package/src/components/form-inputs-controls/VcsFormSection.vue.d.ts +1 -1
  146. package/src/components/form-inputs-controls/VcsLabel.vue +31 -1
  147. package/src/components/form-inputs-controls/VcsLabel.vue.d.ts +21 -1
  148. package/src/components/form-inputs-controls/VcsRadio.vue +2 -2
  149. package/src/components/form-inputs-controls/VcsSelect.vue +7 -16
  150. package/src/components/form-inputs-controls/VcsSelect.vue.d.ts +2 -2
  151. package/src/components/form-inputs-controls/VcsSlider.vue +36 -10
  152. package/src/components/form-inputs-controls/VcsSlider.vue.d.ts +25 -2
  153. package/src/components/form-inputs-controls/VcsTextArea.vue +35 -20
  154. package/src/components/form-inputs-controls/VcsTextField.vue +17 -12
  155. package/src/components/form-inputs-controls/VcsTextField.vue.d.ts +1 -0
  156. package/src/components/form-inputs-controls/VcsWizard.vue +89 -112
  157. package/src/components/form-inputs-controls/VcsWizard.vue.d.ts +3 -13
  158. package/src/components/form-inputs-controls/VcsWizardStep.vue +75 -57
  159. package/src/components/form-inputs-controls/VcsWizardStep.vue.d.ts +24 -11
  160. package/src/components/form-inputs-controls/vcsTextField.scss +5 -0
  161. package/src/components/form-output/VcsFormattedNumber.vue +25 -9
  162. package/src/components/form-output/VcsFormattedNumber.vue.d.ts +18 -0
  163. package/src/components/form-output/VcsMarkdown.vue +53 -0
  164. package/src/components/form-output/VcsMarkdown.vue.d.ts +16 -0
  165. package/src/components/lists/VcsActionList.vue +43 -27
  166. package/src/components/lists/VcsActionList.vue.d.ts +3 -1
  167. package/src/components/lists/VcsList.vue +82 -151
  168. package/src/components/lists/VcsList.vue.d.ts +5 -8
  169. package/src/components/lists/VcsListItem.vue +154 -0
  170. package/src/components/lists/VcsListItem.vue.d.ts +21 -0
  171. package/src/components/lists/VcsTreeviewLeaf.vue +1 -1
  172. package/src/components/modelHelper.d.ts +11 -0
  173. package/src/components/modelHelper.js +42 -2
  174. package/src/components/vector-properties/VcsFeatureEditingWindow.vue +14 -6
  175. package/src/components/vector-properties/VcsFeatureEditingWindow.vue.d.ts +3 -3
  176. package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +474 -585
  177. package/src/components/vector-properties/VcsVectorPropertiesComponent.vue.d.ts +193 -22
  178. package/src/manager/window/windowManager.d.ts +4 -4
  179. package/src/manager/window/windowManager.js +2 -2
  180. package/src/navigation/MapNavigation.vue +6 -3
  181. package/src/navigation/OrientationToolsButton.vue +39 -26
  182. package/src/navigation/OrientationToolsButton.vue.d.ts +5 -1
  183. package/src/navigation/TiltSlider.vue +83 -88
  184. package/src/navigation/TiltSlider.vue.d.ts +10 -7
  185. package/src/navigation/VcsCompass.vue +17 -11
  186. package/src/navigation/VcsCompass.vue.d.ts +2 -0
  187. package/src/styles/_typography.scss +1 -0
  188. package/src/vcsUiApp.d.ts +11 -17
  189. package/src/vcsUiApp.js +10 -3
  190. package/src/vuePlugins/i18n.js +7 -0
  191. package/src/vuePlugins/vuetify.js +4 -0
  192. package/dist/assets/cesium/Workers/chunk-DUHWWBQQ.js +0 -3273
  193. package/dist/assets/cesium/Workers/chunk-QJ3DFBH3.js +0 -73
  194. package/dist/assets/index-ca7EmZ3d.js +0 -1
  195. package/dist/assets/ui.715986.css +0 -1
  196. package/src/components/vector-properties/composables.d.ts +0 -33
  197. package/src/components/vector-properties/composables.js +0 -100
  198. /package/dist/assets/{ol.8b2e3a.js → ol.86e93c.js} +0 -0
  199. /package/dist/assets/{vue.0f2c53.js → vue.a3cd64.js} +0 -0
  200. /package/dist/assets/{vuetify.28d881.css → vuetify.4d18fe.css} +0 -0
package/dist/assets/ui.js CHANGED
@@ -1 +1 @@
1
- export * from "./ui.715986.js";
1
+ export * from "./ui.7c276c.js";
@@ -1 +1 @@
1
- export * from "./vue.0f2c53.js";
1
+ export * from "./vue.a3cd64.js";
@@ -13,7 +13,7 @@ function loadCss(href) {
13
13
  elem.onerror = reject;
14
14
  document.head.appendChild(elem);
15
15
  });
16
- } await loadCss('./assets/vuetify.28d881.css');import { watch as q, onScopeDispose as et, effectScope as Ul, shallowRef as U, Fragment as le, reactive as vt, computed as y, watchEffect as pe, toRefs as ia, capitalize as pn, isVNode as Rc, Comment as Nc, readonly as Ha, unref as nt, warn as za, getCurrentInstance as Hc, ref as W, provide as _e, inject as ge, defineComponent as zc, camelize as Vr, h as Wt, toRaw as at, createVNode as r, mergeProps as H, onBeforeUnmount as lt, nextTick as ye, onDeactivated as Wc, onActivated as jc, Suspense as Pr, TransitionGroup as Kl, Transition as Nt, isRef as xn, toRef as L, onBeforeMount as Ir, withDirectives as Ae, resolveDirective as ot, vShow as wt, onMounted as Ke, onUpdated as Yc, Text as Gc, resolveDynamicComponent as Uc, markRaw as Kc, Teleport as qc, cloneVNode as Xc, createTextVNode as Vt, onUnmounted as Zc, onBeforeUpdate as Qc, withModifiers as Pl, toDisplayString as Jc, vModelText as ed, resolveComponent as td, render as _r } from "./vue.0f2c53.js";
16
+ } await loadCss('./assets/vuetify.4d18fe.css');import { watch as q, onScopeDispose as et, effectScope as Ul, shallowRef as U, Fragment as le, reactive as vt, computed as y, watchEffect as pe, toRefs as ia, capitalize as pn, isVNode as Rc, Comment as Nc, readonly as Ha, unref as nt, warn as za, getCurrentInstance as Hc, ref as W, provide as _e, inject as ge, defineComponent as zc, camelize as Vr, h as Wt, toRaw as at, createVNode as r, mergeProps as H, onBeforeUnmount as lt, nextTick as ye, onDeactivated as Wc, onActivated as jc, Suspense as Pr, TransitionGroup as Kl, Transition as Nt, isRef as xn, toRef as L, onBeforeMount as Ir, withDirectives as Ae, resolveDirective as ot, vShow as wt, onMounted as Ke, onUpdated as Yc, Text as Gc, resolveDynamicComponent as Uc, markRaw as Kc, Teleport as qc, cloneVNode as Xc, createTextVNode as Vt, onUnmounted as Zc, onBeforeUpdate as Qc, withModifiers as Pl, toDisplayString as Jc, vModelText as ed, resolveComponent as td, render as _r } from "./vue.a3cd64.js";
17
17
  function it(e, n) {
18
18
  let t;
19
19
  function a() {
@@ -1 +1 @@
1
- export * from "./vuetify.28d881.js";
1
+ export * from "./vuetify.4d18fe.js";
package/dist/index.html CHANGED
@@ -95,7 +95,7 @@
95
95
  }
96
96
  }
97
97
  </style>
98
- <script type="module" crossorigin src="./assets/index-ca7EmZ3d.js"></script>
98
+ <script type="module" crossorigin src="./assets/index-8eGauqjA.js"></script>
99
99
  </head>
100
100
  <body style="height: 100vh; margin: 0;">
101
101
  <noscript>
package/index.d.ts CHANGED
@@ -154,6 +154,8 @@ export { default as VcsDatePicker } from "./src/components/form-inputs-controls/
154
154
  export type * from "./src/components/form-inputs-controls/VcsDatePicker.vue.d.ts";
155
155
  export { default as VcsFormattedNumber } from "./src/components/form-output/VcsFormattedNumber.vue";
156
156
  export type * from "./src/components/form-output/VcsFormattedNumber.vue.d.ts";
157
+ export { default as VcsMarkdown } from "./src/components/form-output/VcsMarkdown.vue";
158
+ export type * from "./src/components/form-output/VcsMarkdown.vue.d.ts";
157
159
  export { default as VcsTextPage } from "./src/application/VcsTextPage.vue";
158
160
  export type * from "./src/application/VcsTextPage.vue.d.ts";
159
161
  export { default as VcsList } from "./src/components/lists/VcsList.vue";
package/index.js CHANGED
@@ -251,6 +251,7 @@ export { default as VcsWizard } from './src/components/form-inputs-controls/VcsW
251
251
  export { default as VcsWizardStep } from './src/components/form-inputs-controls/VcsWizardStep.vue';
252
252
  export { default as VcsDatePicker } from './src/components/form-inputs-controls/VcsDatePicker.vue';
253
253
  export { default as VcsFormattedNumber } from './src/components/form-output/VcsFormattedNumber.vue';
254
+ export { default as VcsMarkdown } from './src/components/form-output/VcsMarkdown.vue';
254
255
  export { default as VcsTextPage } from './src/application/VcsTextPage.vue';
255
256
  export {
256
257
  default as VcsActionList,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vcmap/ui",
3
- "version": "6.0.0-rc.1",
3
+ "version": "6.0.0-rc.2",
4
4
  "author": "Virtual City Systems",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -44,19 +44,20 @@
44
44
  "!plugins/node_modules/"
45
45
  ],
46
46
  "dependencies": {
47
+ "@intlify/core-base": "^9.13.1",
47
48
  "@vcsuite/check": "^1.1.2",
48
49
  "@vcsuite/logger": "^1.0.1",
49
50
  "@vcsuite/parsers": "^1.0.3",
50
- "dompurify": "^3.0.6",
51
+ "dompurify": "^3.1.6",
51
52
  "fast-deep-equal": "^3.1.3",
52
- "marked": "^11.1.0",
53
+ "marked": "^13.0.2",
53
54
  "semver": "^7.5.4",
54
- "uuid": "^9.0.0",
55
+ "uuid": "^10.0.0",
55
56
  "vue-i18n": "^9.13.1"
56
57
  },
57
58
  "peerDependencies": {
58
- "@vcmap-cesium/engine": "^4.0.3",
59
- "@vcmap/core": "^5.3.0",
59
+ "@vcmap-cesium/engine": "^10.0.1",
60
+ "@vcmap/core": "^6.0.0-rc.2",
60
61
  "ol": "^7.5.2",
61
62
  "vue": "~3.4.27",
62
63
  "vuetify": "^3.6.8"
@@ -1,74 +1,46 @@
1
1
  <template>
2
2
  <v-sheet>
3
3
  <VcsFormSection heading="Settings">
4
- <v-container class="py-0 px-1">
4
+ <v-container class="py-0 px-4">
5
5
  <v-row no-gutters>
6
6
  <v-col>
7
- <v-switch
8
- v-model="selectable"
9
- label="Selectable"
10
- class="ma-0"
11
- dense
12
- />
7
+ <v-switch v-model="selectable" label="Selectable" />
13
8
  </v-col>
14
9
  <v-col>
15
10
  <v-switch
16
11
  :disabled="!selectable"
17
12
  v-model="selectSingle"
18
13
  label=" Single Select"
19
- class="ma-0"
20
- dense
21
14
  />
22
15
  </v-col>
23
16
  </v-row>
24
17
  <v-row no-gutters>
25
18
  <v-col>
26
- <v-switch
27
- dense
28
- v-model="searchable"
29
- label="Searchable"
30
- class="ma-0"
31
- />
19
+ <v-switch v-model="searchable" label="Searchable" />
32
20
  </v-col>
33
21
  <v-col>
34
- <v-switch
35
- dense
36
- v-model="draggable"
37
- label="Draggable"
38
- class="ma-0"
39
- />
22
+ <v-switch v-model="draggable" label="Draggable" />
40
23
  </v-col>
41
24
  </v-row>
42
25
  <v-row no-gutters>
43
26
  <v-col>
44
27
  <v-switch
45
- dense
46
28
  v-model="prependIndex"
47
29
  label="Prepend Index"
48
30
  class="ma-0"
49
31
  />
50
32
  </v-col>
51
33
  <v-col>
52
- <v-switch
53
- dense
54
- v-model="appendIndex"
55
- label="Append Index"
56
- class="ma-0"
57
- />
34
+ <v-switch v-model="appendIndex" label="Append Index" />
58
35
  </v-col>
59
36
  </v-row>
60
37
  </v-container>
61
38
  </VcsFormSection>
62
39
  <VcsFormSection heading="Title">
63
- <v-container class="py-0 px-1">
40
+ <v-container class="py-0 px-4">
64
41
  <v-row no-gutters>
65
42
  <v-col>
66
- <v-switch
67
- dense
68
- v-model="showTitle"
69
- label="Show Title"
70
- class="ma-0"
71
- />
43
+ <v-switch v-model="showTitle" label="Show Title" />
72
44
  </v-col>
73
45
  <v-col>
74
46
  <vcs-text-field
@@ -84,28 +56,22 @@
84
56
  v-model="titleActions"
85
57
  label="Title Actions"
86
58
  class="ma-0"
87
- dense
88
59
  />
89
60
  </v-col>
90
61
  <v-col>
91
- <v-switch
92
- dense
93
- v-model="titleIcon"
94
- label="Title Icon"
95
- class="ma-0"
96
- />
62
+ <v-switch v-model="titleIcon" label="Title Icon" class="ma-0" />
97
63
  </v-col>
98
64
  </v-row>
99
65
  </v-container>
100
66
  </VcsFormSection>
101
67
  <VcsFormSection heading="Item">
102
- <v-container class="py-1 px-1">
68
+ <v-container class="py-2 px-4">
103
69
  <v-row no-gutters>
104
70
  <v-dialog v-model="dialog" width="400">
105
71
  <template #activator="{ props }">
106
72
  <vcs-form-button v-bind="props"> Add An item </vcs-form-button>
107
73
  </template>
108
- <v-card class="pa-2">
74
+ <v-card class="py-2 px-4">
109
75
  <v-form @submit.prevent="add">
110
76
  <vcs-text-field
111
77
  v-model="newItem.name"
@@ -117,52 +83,22 @@
117
83
  label="Title"
118
84
  :rules="required"
119
85
  />
86
+ <v-switch label="visible" v-model="newItem.visible" />
87
+ <v-switch label="disabled" v-model="newItem.disabled" />
88
+ <v-switch label="random icon" v-model="newItem.icon" />
89
+ <v-switch label="hasUpdate" v-model="newItem.hasUpdate" />
120
90
  <v-switch
121
- dense
122
- label="visible"
123
- v-model="newItem.visible"
124
- class="ma-0"
125
- />
126
- <v-switch
127
- dense
128
- label="disabled"
129
- v-model="newItem.disabled"
130
- class="ma-0"
131
- />
132
- <v-switch
133
- dense
134
- label="random icon"
135
- v-model="newItem.icon"
136
- class="ma-0"
137
- />
138
- <v-switch
139
- dense
140
- label="hasUpdate"
141
- v-model="newItem.hasUpdate"
142
- class="ma-0"
143
- />
144
- <v-switch
145
- dense
146
91
  label="rename action"
147
92
  v-model="newItem.renameAction"
148
- class="ma-0"
149
- />
150
- <v-switch
151
- dense
152
- label="console.log action"
153
- v-model="newItem.action"
154
- class="ma-0"
155
93
  />
94
+ <v-switch label="console.log action" v-model="newItem.action" />
156
95
  <v-switch
157
96
  label="console.log on clicked"
158
97
  v-model="newItem.clicked"
159
- class="ma-0"
160
98
  />
161
99
  <v-switch
162
- dense
163
100
  label="console.log selected state"
164
101
  v-model="newItem.selected"
165
- class="ma-0"
166
102
  />
167
103
  <vcs-form-button type="submit"> Add </vcs-form-button>
168
104
  </v-form>
@@ -172,7 +108,7 @@
172
108
  </v-container>
173
109
  </VcsFormSection>
174
110
  <VcsFormSection heading="Selection">
175
- <v-container class="py-1 px-1">
111
+ <v-container class="py-2 px-4">
176
112
  <v-row no-gutters>
177
113
  <template v-if="selectable">
178
114
  <v-col>
@@ -238,7 +174,7 @@
238
174
  VRow,
239
175
  VCol,
240
176
  } from 'vuetify/components';
241
- import { computed, ref } from 'vue';
177
+ import { computed, reactive, ref } from 'vue';
242
178
 
243
179
  function getRandomIcon() {
244
180
  const keys = Object.keys(Icons);
@@ -339,13 +275,13 @@
339
275
  (v) => v.length > 0 || 'Input must have a length',
340
276
  ],
341
277
  add() {
342
- const item = {
278
+ const item = reactive({
343
279
  name: newItem.value.name,
344
280
  title: newItem.value.title,
345
281
  disabled: newItem.value.disabled,
346
282
  visible: newItem.value.visible,
347
283
  hasUpdate: newItem.value.hasUpdate,
348
- };
284
+ });
349
285
 
350
286
  if (newItem.value.icon) {
351
287
  item.icon = getRandomIcon();
@@ -368,9 +304,11 @@
368
304
  }
369
305
 
370
306
  if (newItem.value.clicked) {
371
- item.clicked = () => {
372
- console.log(`${item.name} just got clicked`);
373
- };
307
+ item.clickedCallbacks = [
308
+ () => {
309
+ console.log(`${item.name} just got clicked`);
310
+ },
311
+ ];
374
312
  }
375
313
 
376
314
  if (newItem.value.selected) {
@@ -6,7 +6,7 @@
6
6
  <VcsList
7
7
  :items="propertiesToSelectFrom"
8
8
  :selectable="true"
9
- v-model="propertiesToDisplay"
9
+ v-model="propertiesSelected"
10
10
  title="Select all"
11
11
  />
12
12
  </v-col>
@@ -29,13 +29,20 @@
29
29
  />
30
30
  </v-col>
31
31
  </v-row>
32
+ <v-row no-gutters>
33
+ <v-col>
34
+ <VcsFormButton @click="() => console.log({ ...featureProperties })"
35
+ >Log VectorProperties</VcsFormButton
36
+ >
37
+ </v-col>
38
+ </v-row>
32
39
  </v-container>
33
40
  <VcsVectorPropertiesComponent
34
41
  v-model="featureProperties"
35
42
  :value-default="defaultOptions"
36
43
  :show3-d-properties="is3D"
37
- :properties="propertiesToDisplay.map((item) => item.name)"
38
- :hide-dividers="hideDividers"
44
+ :properties="properties"
45
+ :show-dividers="!hideDividers"
39
46
  :expandable="expandable"
40
47
  :show-reset="showReset"
41
48
  />
@@ -43,12 +50,22 @@
43
50
  </template>
44
51
 
45
52
  <script>
46
- import { inject, onMounted, onUnmounted, ref, watch } from 'vue';
53
+ import {
54
+ computed,
55
+ inject,
56
+ onMounted,
57
+ onUnmounted,
58
+ reactive,
59
+ ref,
60
+ shallowRef,
61
+ watch,
62
+ } from 'vue';
47
63
  import { CesiumMap, VectorLayer, VectorProperties } from '@vcmap/core';
48
64
  import {
49
65
  VcsVectorPropertiesComponent,
50
66
  VcsList,
51
67
  VcsCheckbox,
68
+ VcsFormButton,
52
69
  } from '@vcmap/ui';
53
70
  import { VSheet, VContainer, VRow, VCol } from 'vuetify/components';
54
71
  import { Feature } from 'ol';
@@ -69,6 +86,7 @@
69
86
  VcsVectorPropertiesComponent,
70
87
  VcsList,
71
88
  VcsCheckbox,
89
+ VcsFormButton,
72
90
  VSheet,
73
91
  VContainer,
74
92
  VRow,
@@ -96,9 +114,10 @@
96
114
  },
97
115
  });
98
116
 
99
- const featureProperties = ref(
117
+ const featureProperties = shallowRef(
100
118
  layer.vectorProperties.getValuesForFeatures([feature]),
101
119
  );
120
+ featureProperties.value.scaleByDistance = [0, 1, 100, 0];
102
121
  watch(featureProperties, () => {
103
122
  layer.vectorProperties.setValuesForFeatures(featureProperties.value, [
104
123
  feature,
@@ -106,10 +125,13 @@
106
125
  });
107
126
 
108
127
  const defaultOptions = VectorProperties.getDefaultOptions();
109
- const propertiesToSelectFrom = Object.keys(defaultOptions).map((key) => ({
110
- name: key,
111
- title: key,
112
- }));
128
+ const propertiesToSelectFrom = reactive(
129
+ Object.keys(defaultOptions).map((key) => ({
130
+ name: key,
131
+ title: key,
132
+ })),
133
+ );
134
+ const propertiesSelected = shallowRef([...propertiesToSelectFrom]);
113
135
 
114
136
  onMounted(() => {
115
137
  vcsApp.layers.add(layer);
@@ -128,7 +150,10 @@
128
150
  defaultOptions,
129
151
  is3D,
130
152
  propertiesToSelectFrom,
131
- propertiesToDisplay: ref([...propertiesToSelectFrom]),
153
+ propertiesSelected,
154
+ properties: computed(() =>
155
+ propertiesSelected.value.map(({ name }) => name),
156
+ ),
132
157
  hideDividers: ref(false),
133
158
  expandable: ref(false),
134
159
  showReset: ref(true),
@@ -1,24 +1,20 @@
1
1
  <template>
2
2
  <VcsWizard v-model.number="step">
3
3
  <VcsWizardStep
4
- step="1"
5
- :complete="step > 1"
4
+ step="0"
5
+ :complete="step > 0"
6
6
  help-text="1. this is the help text"
7
7
  heading="This is the first step"
8
8
  v-model.number="step"
9
9
  >
10
- <template #content>
11
- <!-- px-2 because does not contain input components -->
12
- <v-container class="px-2 py-0">
13
- <div>This is the content of the first step.</div>
14
- <VcsFormButton @click="increaseStep()" class="my-2">
15
- Next
16
- </VcsFormButton>
17
- </v-container>
10
+ <!-- px-2 because does not contain input components -->
11
+ <div>This is the content of the first step.</div>
12
+ <template #actions="{ next }">
13
+ <VcsFormButton @click="next">Next</VcsFormButton>
18
14
  </template>
19
15
  </VcsWizardStep>
20
16
  <VcsWizardStep
21
- step="2"
17
+ step="1"
22
18
  editable
23
19
  :header-actions="actions.second"
24
20
  heading="This is the second step"
@@ -33,35 +29,29 @@
33
29
  <li>test</li>
34
30
  </ol>
35
31
  </template>
36
- <template #content>
37
- <v-container class="px-1 py-0">
38
- <v-form ref="form" v-model="formValid" lazy-validation>
39
- <VcsSelect
40
- :items="['this', 'is', 'a', 'test']"
41
- v-model="selection"
42
- placeholder="Select"
43
- :rules="[
44
- (v) => (!!v && v !== 'this') || 'Please select a valid option.',
45
- ]"
46
- />
47
- <VcsFormButton @click="decreaseStep()"> Back </VcsFormButton>
48
- </v-form>
49
- </v-container>
50
- </template>
51
- </VcsWizardStep>
52
- <VcsWizardStep step="3" v-model.number="step">
53
- <template #header>
54
- <div class="d-flex flex-grow-1 flex-row-reverse">
55
- <VcsFormButton
56
- :disabled="!selection || !formValid"
57
- @click="finish()"
58
- variant="filled"
59
- >
60
- Finish
61
- </VcsFormButton>
62
- </div>
32
+ <v-form ref="formRef" v-model="formValid" lazy-validation>
33
+ <VcsSelect
34
+ :items="['this', 'is', 'a', 'test']"
35
+ v-model="selection"
36
+ placeholder="Select"
37
+ :rules="[
38
+ (v) => (!!v && v !== 'this') || 'Please select a valid option.',
39
+ ]"
40
+ />
41
+ </v-form>
42
+ <template #actions="{ prev }">
43
+ <VcsFormButton @click="prev">Back</VcsFormButton>
63
44
  </template>
64
45
  </VcsWizardStep>
46
+ <div class="d-flex flex-grow-1 flex-row-reverse pa-2">
47
+ <VcsFormButton
48
+ :disabled="!selection || !formValid"
49
+ @click="finish()"
50
+ variant="filled"
51
+ >
52
+ Finish
53
+ </VcsFormButton>
54
+ </div>
65
55
  </VcsWizard>
66
56
  </template>
67
57
 
@@ -72,7 +62,7 @@
72
62
  VcsFormButton,
73
63
  VcsSelect,
74
64
  } from '@vcmap/ui';
75
- import { VForm, VContainer } from 'vuetify/components';
65
+ import { VForm } from 'vuetify/components';
76
66
  import { ref } from 'vue';
77
67
 
78
68
  /** Component to showcase the VcsWizard and VcsWizardStep. */
@@ -84,12 +74,11 @@
84
74
  VcsFormButton,
85
75
  VcsSelect,
86
76
  VForm,
87
- VContainer,
88
77
  },
89
78
  setup() {
90
- const step = ref(1);
91
- const selection = ref();
92
- const form = ref();
79
+ const step = ref(0);
80
+ const selection = ref(undefined);
81
+ const formRef = ref(null);
93
82
  const formValid = ref(false);
94
83
  const actions = {
95
84
  second: [
@@ -103,22 +92,19 @@
103
92
  },
104
93
  ],
105
94
  };
95
+
96
+ function finish() {
97
+ step.value = 0;
98
+ formRef.value?.resetValidation();
99
+ }
100
+
106
101
  return {
107
102
  step,
108
- increaseStep() {
109
- step.value += 1;
110
- },
111
- decreaseStep() {
112
- step.value -= 1;
113
- },
114
103
  selection,
115
104
  actions,
116
105
  formValid,
117
- form,
118
- finish() {
119
- step.value = 1;
120
- form.value.reset();
121
- },
106
+ formRef,
107
+ finish,
122
108
  };
123
109
  },
124
110
  };
@@ -2,9 +2,8 @@
2
2
  <v-container class="fill-height pa-0" absolute fluid>
3
3
  <VcsSplashScreen
4
4
  v-if="splashScreen"
5
- v-model="splashScreenRef"
6
5
  :options="splashScreen"
7
- :window-id="'splashScreen'"
6
+ v-model="splashScreenRef"
8
7
  ></VcsSplashScreen>
9
8
  <VcsNavbar />
10
9
  <VcsContainer :attribution-action="attributionAction" />
@@ -2,7 +2,7 @@
2
2
  <v-card>
3
3
  <div class="px-2 pt-2 pb-1">
4
4
  <v-card-text>
5
- <div v-html="customScreenText"></div>
5
+ <VcsMarkdown :content="customScreenText"></VcsMarkdown>
6
6
  </v-card-text>
7
7
  </div>
8
8
  </v-card>
@@ -12,11 +12,12 @@
12
12
  import { VCard, VCardText } from 'vuetify/components';
13
13
 
14
14
  import { computed, getCurrentInstance } from 'vue';
15
- import { parseAndSanitizeMarkdown } from './markdownHelper.js';
15
+ import VcsMarkdown from '../components/form-output/VcsMarkdown.vue';
16
16
 
17
17
  export default {
18
18
  name: 'VcsCustomScreen',
19
19
  components: {
20
+ VcsMarkdown,
20
21
  VCard,
21
22
  VCardText,
22
23
  },
@@ -30,8 +31,7 @@
30
31
  const vm = getCurrentInstance().proxy;
31
32
  const dialog = true;
32
33
  const customScreenText = computed(() => {
33
- const translatedContent = vm.$t(props.content);
34
- return parseAndSanitizeMarkdown(translatedContent);
34
+ return vm.$st(props.content);
35
35
  });
36
36
 
37
37
  return {
@@ -5,7 +5,7 @@ declare const _default: import("vue").DefineComponent<{
5
5
  };
6
6
  }, {
7
7
  dialog: boolean;
8
- customScreenText: import("vue").ComputedRef<string>;
8
+ customScreenText: import("vue").ComputedRef<any>;
9
9
  }, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
10
  content: {
11
11
  type: StringConstructor;
@@ -42,7 +42,7 @@ declare const _default: import("vue").DefineComponent<{}, {
42
42
  config: any;
43
43
  logo: import("vue").ComputedRef<any>;
44
44
  xs: import("vue").Ref<boolean>;
45
- density: import("vue").ComputedRef<"comfortable" | "compact">;
45
+ density: import("vue").ComputedRef<"compact" | "comfortable">;
46
46
  mdAndUp: import("vue").Ref<boolean>;
47
47
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
48
48
  export default _default;