@vcmap/ui 5.3.1 → 5.3.3

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.
@@ -13,7 +13,7 @@ function loadCss(href) {
13
13
  elem.onerror = reject;
14
14
  document.head.appendChild(elem);
15
15
  });
16
- } await loadCss('./assets/ui.cf282c.css');await loadCss('./assets/@mdi/font/css/materialdesignicons.min.e3f476.css');var U1 = Object.defineProperty;
16
+ } await loadCss('./assets/ui.ce88d9.css');await loadCss('./assets/@mdi/font/css/materialdesignicons.min.e3f476.css');var U1 = Object.defineProperty;
17
17
  var W1 = (s, e, t) => e in s ? U1(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
18
18
  var ce = (s, e, t) => (W1(s, typeof e != "symbol" ? e + "" : e, t), t), Y1 = (s, e, t) => {
19
19
  if (!e.has(s))
@@ -25,11 +25,11 @@ var cr = (s, e, t) => {
25
25
  e instanceof WeakSet ? e.add(s) : e.set(s, t);
26
26
  };
27
27
  var Ws = (s, e, t) => (Y1(s, e, "access private method"), t);
28
- import Xn, { inject as Q, ref as w, onUnmounted as _e, computed as y, reactive as se, onMounted as wt, watch as X, nextTick as Hn, shallowRef as va, getCurrentInstance as Ze, provide as Es, shallowReactive as Q1, onBeforeMount as J1, useCssVars as q1, isRef as X1, unref as K1 } from "./vue.89f1c0.js";
29
- import { VcsEvent as ge, MapCollection as ga, Viewpoint as Je, Collection as ks, Extent as $s, mercatorProjection as je, LayerState as e0, startCreateFeatureSession as t0, GeometryType as Ye, VectorLayer as Zt, maxZIndex as Ht, markVolatile as Ni, startEditFeaturesSession as n0, startEditGeometrySession as s0, isSameOrigin as i0, createFlightVisualization as Gr, parseFlightOptionsFromGeoJson as r0, FlightInstance as Zr, moduleIdSymbol as ht, exportFlightPathAsGeoJson as a0, exportFlightAsGeoJson as o0, parseGeoJSON as l0, ClassRegistry as ya, FeatureLayer as c0, VectorStyleItem as $t, CesiumMap as Ge, ensureFeatureAbsolute as Lc, Projection as mn, AbstractInteraction as Di, EventType as ft, ModificationKeyType as wa, OpenlayersMap as Ri, EventHandler as u0, deserializeLayer as d0, ObliqueMap as it, DataState as h0, emptyStyle as $o, transformToImage as Ic, DisplayQualityLevel as ur, IndexedCollection as Ut, getShapeFromOptions as f0, getStringColor as p0, getDefaultProjection as No, wgs84Projection as dr, getVcsAppById as m0, makeOverrideCollection as vs, getObjectFromClassRegistry as Cc, DefaultObliqueCollection as _0, isOverrideCollection as v0, defaultDynamicModuleId as On, PointerKeyType as Do, BaseOLMap as g0, VcsObject as y0, getDefaultVectorStyleItemOptions as Sc, fromCesiumColor as w0, vcsLayerName as Hr, isProvidedFeature as b0, TransformationMode as xe, VcsApp as A0, OverrideClassRegistry as hr, volatileModuleId as fr, destroyCollection as Ys, VcsModule as Ur, anchorFromViewpoint as Tc, anchorToViewpoint as Ec, getSplineAndTimesForInstance as M0, getTextFromOptions as x0, getImageStyleFromOptions as L0, highlighted as kc, originalStyle as ba, getStyleOptions as I0, vectorStyleSymbol as C0, parseColor as Ro, getImageStyleOptions as S0, getTextOptions as T0, SessionType as jo, VectorProperties as E0 } from "./core.380ce3.js";
30
- import $c, { VSheet as de, VList as bt, VListItem as At, VListItemIcon as ji, VListItemTitle as Ot, VChip as Nc, VListItemContent as Vt, VTooltip as k0, VTextField as Aa, VFileInput as $0, VBtn as Kn, VIcon as ue, VMenu as qt, VSpacer as N0, VListItemGroup as Dc, VDivider as Mt, VCard as Pt, VCardTitle as D0, VToolbar as Fi, VContainer as ve, VRow as Oe, VCol as Ke, VToolbarItems as Oi, VSlider as Rc, VDataTable as R0, VListItemAvatar as jc, VListItemSubtitle as Ma, VSnackbar as j0, VSelect as F0, VRadioGroup as Fc, VRadio as Oc, VListItemAction as O0, VExpansionPanel as Vc, VExpansionPanelHeader as Pc, VExpansionPanelContent as Bc, VExpansionPanels as zc, VLayout as V0, VFlex as P0, VImg as B0, VCheckbox as z0, VDialog as G0, VCardText as Gc, VCardActions as Z0, VFooter as H0, VApp as U0, VTreeview as W0, VAlert as Y0, VTextarea as Q0, VStepper as J0, VStepperStep as q0, VStepperContent as X0, VDatePicker as K0, VColorPicker as Zc, VTabs as ed, VTab as td, VForm as nd } from "./vuetify.12f757.js";
31
- import { Feature as _n, ol$proj$transformExtent as Hc, ol$Observable$unByKey as Un, ol$geom$Polygon$fromExtent as sd, ol$geom$Polygon as id, ol$extent$createOrUpdateFromCoordinates as rd, ol$style$Circle as Uc, ol$style$Fill as xa, ol$style$Stroke as La, ol$geom$Point as Ia, ol$geom$Circle as ad, ol$style$Icon as Ca, ol$Feature as od, ol$source$Vector as pr, ol$math$clamp as ld, ol$extent$getCenter as cd, ol$proj$get as ud, ol$render$toContext as dd, ol$style$RegularShape as hd, ol$style$Style as fd } from "./ol.d0972a.js";
32
- import { Color as Sa, Cartographic as vn, Math as Pn, Cartesian2 as Wc, SceneTransforms as pd, Entity as Yc, Cesium3DTileFeature as md, Cesium3DTilePointFeature as _d, Cartesian3 as mr } from "./cesium.86b93e.js";
28
+ import Xn, { inject as Q, ref as w, onUnmounted as _e, computed as y, reactive as se, onMounted as wt, watch as X, nextTick as Hn, shallowRef as va, getCurrentInstance as Ze, provide as Es, shallowReactive as Q1, onBeforeMount as J1, useCssVars as q1, isRef as X1, unref as K1 } from "./vue.808297.js";
29
+ import { VcsEvent as ge, MapCollection as ga, Viewpoint as Je, Collection as ks, Extent as $s, mercatorProjection as je, LayerState as e0, startCreateFeatureSession as t0, GeometryType as Ye, VectorLayer as Zt, maxZIndex as Ht, markVolatile as Ni, startEditFeaturesSession as n0, startEditGeometrySession as s0, isSameOrigin as i0, createFlightVisualization as Gr, parseFlightOptionsFromGeoJson as r0, FlightInstance as Zr, moduleIdSymbol as ht, exportFlightPathAsGeoJson as a0, exportFlightAsGeoJson as o0, parseGeoJSON as l0, ClassRegistry as ya, FeatureLayer as c0, VectorStyleItem as $t, CesiumMap as Ge, ensureFeatureAbsolute as Lc, Projection as mn, AbstractInteraction as Di, EventType as ft, ModificationKeyType as wa, OpenlayersMap as Ri, EventHandler as u0, deserializeLayer as d0, ObliqueMap as it, DataState as h0, emptyStyle as $o, transformToImage as Ic, DisplayQualityLevel as ur, IndexedCollection as Ut, getShapeFromOptions as f0, getStringColor as p0, getDefaultProjection as No, wgs84Projection as dr, getVcsAppById as m0, makeOverrideCollection as vs, getObjectFromClassRegistry as Cc, DefaultObliqueCollection as _0, isOverrideCollection as v0, defaultDynamicModuleId as On, PointerKeyType as Do, BaseOLMap as g0, VcsObject as y0, getDefaultVectorStyleItemOptions as Sc, fromCesiumColor as w0, vcsLayerName as Hr, isProvidedFeature as b0, TransformationMode as xe, VcsApp as A0, OverrideClassRegistry as hr, volatileModuleId as fr, destroyCollection as Ys, VcsModule as Ur, anchorFromViewpoint as Tc, anchorToViewpoint as Ec, getSplineAndTimesForInstance as M0, getTextFromOptions as x0, getImageStyleFromOptions as L0, highlighted as kc, originalStyle as ba, getStyleOptions as I0, vectorStyleSymbol as C0, parseColor as Ro, getImageStyleOptions as S0, getTextOptions as T0, SessionType as jo, VectorProperties as E0 } from "./core.2823d9.js";
30
+ import $c, { VSheet as de, VList as bt, VListItem as At, VListItemIcon as ji, VListItemTitle as Ot, VChip as Nc, VListItemContent as Vt, VTooltip as k0, VTextField as Aa, VFileInput as $0, VBtn as Kn, VIcon as ue, VMenu as qt, VSpacer as N0, VListItemGroup as Dc, VDivider as Mt, VCard as Pt, VCardTitle as D0, VToolbar as Fi, VContainer as ve, VRow as Oe, VCol as Ke, VToolbarItems as Oi, VSlider as Rc, VDataTable as R0, VListItemAvatar as jc, VListItemSubtitle as Ma, VSnackbar as j0, VSelect as F0, VRadioGroup as Fc, VRadio as Oc, VListItemAction as O0, VExpansionPanel as Vc, VExpansionPanelHeader as Pc, VExpansionPanelContent as Bc, VExpansionPanels as zc, VLayout as V0, VFlex as P0, VImg as B0, VCheckbox as z0, VDialog as G0, VCardText as Gc, VCardActions as Z0, VFooter as H0, VApp as U0, VTreeview as W0, VAlert as Y0, VTextarea as Q0, VStepper as J0, VStepperStep as q0, VStepperContent as X0, VDatePicker as K0, VColorPicker as Zc, VTabs as ed, VTab as td, VForm as nd } from "./vuetify.01ade4.js";
31
+ import { Feature as _n, ol$proj$transformExtent as Hc, ol$Observable$unByKey as Un, ol$geom$Polygon$fromExtent as sd, ol$geom$Polygon as id, ol$extent$createOrUpdateFromCoordinates as rd, ol$style$Circle as Uc, ol$style$Fill as xa, ol$style$Stroke as La, ol$geom$Point as Ia, ol$geom$Circle as ad, ol$style$Icon as Ca, ol$Feature as od, ol$source$Vector as pr, ol$math$clamp as ld, ol$extent$getCenter as cd, ol$proj$get as ud, ol$render$toContext as dd, ol$style$RegularShape as hd, ol$style$Style as fd } from "./ol.f4bb15.js";
32
+ import { Color as Sa, Cartographic as vn, Math as Pn, Cartesian2 as Wc, SceneTransforms as pd, Entity as Yc, Cesium3DTileFeature as md, Cesium3DTilePointFeature as _d, Cartesian3 as mr } from "./cesium.7b7975.js";
33
33
  Xn.config.productionTip = !1;
34
34
  window.CESIUM_BASE_URL = "./assets/cesium/";
35
35
  function _(s, e, t, n, i, r, a, o) {
@@ -1570,7 +1570,7 @@ var $p = {
1570
1570
  compareIdentifiers: ol.compareIdentifiers,
1571
1571
  rcompareIdentifiers: ol.rcompareIdentifiers
1572
1572
  };
1573
- const ci = "5.3.1";
1573
+ const ci = "5.3.3";
1574
1574
  function an() {
1575
1575
  return ke("plugin-helpers");
1576
1576
  }
@@ -13190,36 +13190,34 @@ const Vx = {
13190
13190
  const t = w(s.value);
13191
13191
  X(
13192
13192
  () => s.value,
13193
- (d) => {
13194
- t.value = d;
13193
+ (c) => {
13194
+ t.value = c;
13195
13195
  }
13196
13196
  );
13197
13197
  const n = Ze().proxy, i = y(() => {
13198
- const d = n.$t(s.options.content);
13199
- return Wn(d);
13200
- }), r = n.$t(s.options.buttonTitle), a = y(() => {
13201
- const d = n.$t(s.options.checkBoxText);
13202
- return Wn(d);
13203
- }), o = w(s.options.acceptInput), l = w(!o.value), c = () => {
13198
+ const c = n.$t(s.options.content);
13199
+ return Wn(c);
13200
+ }), r = y(() => {
13201
+ const c = n.$t(s.options.checkBoxText);
13202
+ return Wn(c);
13203
+ }), a = w(!s.options.acceptInput), o = () => {
13204
13204
  t.value = !1, e("input", t.value);
13205
- }, u = y(() => {
13206
- var d, h, f, p;
13205
+ }, l = y(() => {
13206
+ var c, u, d, h;
13207
13207
  return {
13208
- width: ((d = s.options.position) == null ? void 0 : d.width) || 800,
13209
- height: ((h = s.options.position) == null ? void 0 : h.width) || 500,
13210
- maxWidth: (f = s.options.position) == null ? void 0 : f.maxWidth,
13211
- maxHeight: (p = s.options.position) == null ? void 0 : p.maxHeight
13208
+ width: ((c = s.options.position) == null ? void 0 : c.width) || 800,
13209
+ height: ((u = s.options.position) == null ? void 0 : u.width) || 500,
13210
+ maxWidth: (d = s.options.position) == null ? void 0 : d.maxWidth,
13211
+ maxHeight: (h = s.options.position) == null ? void 0 : h.maxHeight
13212
13212
  };
13213
13213
  });
13214
13214
  return {
13215
13215
  localValue: t,
13216
- exitScreen: c,
13216
+ exitScreen: o,
13217
13217
  splashScreenText: i,
13218
- splashScreenCheckboxText: a,
13219
- checkBox: l,
13220
- acceptInput: o,
13221
- buttonTitle: r,
13222
- position: u
13218
+ splashScreenCheckboxText: r,
13219
+ checkBox: a,
13220
+ position: l
13223
13221
  };
13224
13222
  }
13225
13223
  };
@@ -13227,16 +13225,16 @@ var Px = function() {
13227
13225
  var e = this, t = e._self._c;
13228
13226
  return e.options ? t("v-dialog", { attrs: { width: e.position.width, height: e.position.height, "max-width": e.position.maxWidth, "max-height": e.position.maxHeight, persistent: "" }, model: { value: e.localValue, callback: function(n) {
13229
13227
  e.localValue = n;
13230
- }, expression: "localValue" } }, [t("v-card", [t("div", { staticClass: "px-2 pt-2 pb-1" }, [t("v-card-text", [t("div", { domProps: { innerHTML: e._s(e.splashScreenText) } }), e.acceptInput ? t("v-row", { staticClass: "mt-2", attrs: { "no-gutters": "" } }, [t("v-col", { staticClass: "align-center d-flex" }, [t("VcsCheckbox", { staticStyle: { "margin-bottom": "16px" }, attrs: { id: "checkbox_splashScreen" }, model: { value: e.checkBox, callback: function(n) {
13228
+ }, expression: "localValue" } }, [t("v-card", [t("div", { staticClass: "px-2 pt-2 pb-1" }, [t("v-card-text", [t("div", { domProps: { innerHTML: e._s(e.splashScreenText) } }), e.options.acceptInput ? t("v-row", { staticClass: "mt-2", attrs: { "no-gutters": "" } }, [t("v-col", { staticClass: "align-center d-flex" }, [t("VcsCheckbox", { staticStyle: { "margin-bottom": "16px" }, attrs: { id: "checkbox_splashScreen" }, model: { value: e.checkBox, callback: function(n) {
13231
13229
  e.checkBox = n;
13232
- }, expression: "checkBox" } }), t("VcsLabel", [t("div", { staticClass: "marked-checkbox-content", domProps: { innerHTML: e._s(e.splashScreenCheckboxText) } })])], 1)], 1) : e._e()], 1), t("v-card-actions", [t("v-col", { staticClass: "text-right" }, [t("VcsFormButton", { attrs: { color: "primary", disabled: !e.checkBox }, on: { click: e.exitScreen } }, [e._v(e._s(e.buttonTitle))])], 1)], 1)], 1)])], 1) : e._e();
13230
+ }, expression: "checkBox" } }), t("VcsLabel", [t("div", { staticClass: "marked-checkbox-content", domProps: { innerHTML: e._s(e.splashScreenCheckboxText) } })])], 1)], 1) : e._e()], 1), t("v-card-actions", [t("v-col", { staticClass: "text-right" }, [t("VcsFormButton", { attrs: { color: "primary", variant: "filled", disabled: !e.checkBox }, on: { click: e.exitScreen } }, [e._v(e._s(e.$t(e.options.buttonTitle)))])], 1)], 1)], 1)])], 1) : e._e();
13233
13231
  }, Bx = [], zx = /* @__PURE__ */ _(
13234
13232
  Vx,
13235
13233
  Px,
13236
13234
  Bx,
13237
13235
  !1,
13238
13236
  null,
13239
- "f6a4064d",
13237
+ "b2979b23",
13240
13238
  null,
13241
13239
  null
13242
13240
  );
@@ -15230,7 +15228,7 @@ function nI(s, e, t) {
15230
15228
  function dk(s, e) {
15231
15229
  return x(s, [[String], Function]), (t, n, i) => {
15232
15230
  const r = typeof s == "function" ? s(t) : s;
15233
- i.disabled = !r.includes(e.activeMap.className), i.destroyFunctions.push(
15231
+ e.activeMap ? i.disabled = !r.includes(e.activeMap.className) : i.disabled = !0, i.destroyFunctions.push(
15234
15232
  e.mapActivated.addEventListener((a) => {
15235
15233
  i.disabled = !r.includes(a.className);
15236
15234
  })
package/dist/assets/ui.js CHANGED
@@ -1 +1 @@
1
- export * from "./ui.cf282c.js";
1
+ export * from "./ui.ce88d9.js";
@@ -1,5 +1,5 @@
1
- export * from "./vue.89f1c0.js";
2
- import { default as f } from "./vue.89f1c0.js";
1
+ export * from "./vue.808297.js";
2
+ import { default as f } from "./vue.808297.js";
3
3
  export {
4
4
  f as default
5
5
  };
@@ -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.12f757.css');import v from "./vue.89f1c0.js";
16
+ } await loadCss('./assets/vuetify.01ade4.css');import v from "./vue.808297.js";
17
17
  const Ne = v.extend().extend({
18
18
  name: "themeable",
19
19
  provide() {
@@ -1,5 +1,5 @@
1
- export * from "./vuetify.12f757.js";
2
- import { default as f } from "./vuetify.12f757.js";
1
+ export * from "./vuetify.01ade4.js";
2
+ import { default as f } from "./vuetify.01ade4.js";
3
3
  export {
4
4
  f as default
5
5
  };
package/dist/index.html CHANGED
@@ -95,7 +95,7 @@
95
95
  }
96
96
  }
97
97
  </style>
98
- <script type="module" crossorigin src="./assets/index-b466fb2c.js"></script>
98
+ <script type="module" crossorigin src="./assets/index-7043a93a.js"></script>
99
99
  </head>
100
100
  <body style="height: 100vh; margin: 0;">
101
101
  <noscript>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vcmap/ui",
3
- "version": "5.3.1",
3
+ "version": "5.3.3",
4
4
  "author": "Virtual City Systems",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@vcmap-cesium/engine": "^4.0.3",
56
- "@vcmap/core": "^5.3.0",
56
+ "@vcmap/core": "^5.3.1",
57
57
  "ol": "^7.5.2",
58
58
  "vue": "~2.7.3",
59
59
  "vuetify": "~2.6.7"
@@ -13,7 +13,7 @@
13
13
  <v-card-text>
14
14
  <div v-html="splashScreenText"></div>
15
15
 
16
- <v-row class="mt-2" v-if="acceptInput" no-gutters>
16
+ <v-row class="mt-2" v-if="options.acceptInput" no-gutters>
17
17
  <v-col class="align-center d-flex">
18
18
  <VcsCheckbox
19
19
  id="checkbox_splashScreen"
@@ -36,9 +36,10 @@
36
36
  <v-col class="text-right">
37
37
  <VcsFormButton
38
38
  color="primary"
39
+ variant="filled"
39
40
  @click="exitScreen"
40
41
  :disabled="!checkBox"
41
- >{{ buttonTitle }}</VcsFormButton
42
+ >{{ $t(options.buttonTitle) }}</VcsFormButton
42
43
  >
43
44
  </v-col>
44
45
  </v-card-actions>
@@ -98,15 +99,13 @@
98
99
  const translatedContent = vm.$t(props.options.content);
99
100
  return parseAndSanitizeMarkdown(translatedContent);
100
101
  });
101
- const buttonTitle = vm.$t(props.options.buttonTitle);
102
102
 
103
103
  const splashScreenCheckboxText = computed(() => {
104
104
  const translatedContent = vm.$t(props.options.checkBoxText);
105
105
  return parseAndSanitizeMarkdown(translatedContent);
106
106
  });
107
107
 
108
- const acceptInput = ref(props.options.acceptInput);
109
- const checkBox = ref(!acceptInput.value);
108
+ const checkBox = ref(!props.options.acceptInput);
110
109
  const exitScreen = () => {
111
110
  localValue.value = false;
112
111
  emit('input', localValue.value);
@@ -125,8 +124,6 @@
125
124
  splashScreenText,
126
125
  splashScreenCheckboxText,
127
126
  checkBox,
128
- acceptInput,
129
- buttonTitle,
130
127
  position,
131
128
  };
132
129
  },
@@ -13,8 +13,6 @@ declare const _default: import("vue").DefineComponent<{
13
13
  splashScreenText: import("vue").ComputedRef<string>;
14
14
  splashScreenCheckboxText: import("vue").ComputedRef<string>;
15
15
  checkBox: import("vue").Ref<boolean>;
16
- acceptInput: any;
17
- buttonTitle: any;
18
16
  position: import("vue").ComputedRef<{
19
17
  width: any;
20
18
  height: any;
@@ -82,7 +82,11 @@ export function createSupportedMapMappingFunction(
82
82
  return (item, _c, listItem) => {
83
83
  const mapNames =
84
84
  typeof supportedMaps === 'function' ? supportedMaps(item) : supportedMaps;
85
- listItem.disabled = !mapNames.includes(mapCollection.activeMap.className);
85
+ if (mapCollection.activeMap) {
86
+ listItem.disabled = !mapNames.includes(mapCollection.activeMap.className);
87
+ } else {
88
+ listItem.disabled = true;
89
+ }
86
90
  listItem.destroyFunctions.push(
87
91
  mapCollection.mapActivated.addEventListener((map) => {
88
92
  listItem.disabled = !mapNames.includes(map.className);
@@ -1 +0,0 @@
1
- import{initAppFromAppConfig as p}from"./ui.cf282c.js";p("#app","app.config.json");
File without changes
File without changes