sctj-components 1.0.59 → 1.0.60

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.
@@ -5031,7 +5031,7 @@ const _sfc_main$6 = {
5031
5031
  };
5032
5032
  }
5033
5033
  };
5034
- const index_vue_vue_type_style_index_0_scoped_8c2ed7f7_lang = "";
5034
+ const index_vue_vue_type_style_index_0_scoped_ae15bc12_lang = "";
5035
5035
  const _hoisted_1$4 = { class: "action-container" };
5036
5036
  const _hoisted_2$3 = {
5037
5037
  key: 0,
@@ -5108,15 +5108,33 @@ const _sfc_main$5 = {
5108
5108
  showMapType: {
5109
5109
  type: Boolean,
5110
5110
  default: true
5111
+ },
5112
+ controlsPosition: {
5113
+ type: Object,
5114
+ default: () => {
5115
+ return {
5116
+ bottom: "10px",
5117
+ right: "10px"
5118
+ };
5119
+ }
5111
5120
  }
5112
5121
  },
5113
5122
  emits: ["loaded", "overlay-click", "overlay-mouseover", "overlay-mouseout"],
5114
5123
  setup(__props, { expose, emit }) {
5115
5124
  const props = __props;
5116
5125
  useCssVars((_ctx) => ({
5117
- "abb75a64": __props.width,
5118
- "fed1e5c2": __props.height
5126
+ "3fd21866": __props.width,
5127
+ "bebc0af2": __props.height
5119
5128
  }));
5129
+ const controlsPositionVars = computed$1(() => {
5130
+ const position = props.controlsPosition || {};
5131
+ const cssVars = {};
5132
+ Object.entries(position).forEach(([key, value]) => {
5133
+ const cssKey = key.replace(/([A-Z])/g, "-$1").toLowerCase();
5134
+ cssVars[`--controls-${cssKey}`] = value;
5135
+ });
5136
+ return cssVars;
5137
+ });
5120
5138
  const mapContainer = ref$1(null);
5121
5139
  const map = shallowRef(null);
5122
5140
  const legend = ref$1([]);
@@ -5960,7 +5978,8 @@ const _sfc_main$5 = {
5960
5978
  class: "mapViewContainer",
5961
5979
  id: "mapContainer",
5962
5980
  ref_key: "mapContainer",
5963
- ref: mapContainer
5981
+ ref: mapContainer,
5982
+ style: normalizeStyle(unref(controlsPositionVars))
5964
5983
  }, [
5965
5984
  createElementVNode("div", _hoisted_1$4, [
5966
5985
  __props.legendConfig.length ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
@@ -5986,11 +6005,11 @@ const _sfc_main$5 = {
5986
6005
  }, 8, ["modelValue"])
5987
6006
  ])) : createCommentVNode("", true)
5988
6007
  ])
5989
- ], 512);
6008
+ ], 4);
5990
6009
  };
5991
6010
  }
5992
6011
  };
5993
- const SCTJMapViewer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-8c2ed7f7"]]);
6012
+ const SCTJMapViewer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-ae15bc12"]]);
5994
6013
  const index_vue_vue_type_style_index_0_scoped_761d2ab4_lang = "";
5995
6014
  const _withScopeId$2 = (n) => (pushScopeId("data-v-761d2ab4"), n = n(), popScopeId(), n);
5996
6015
  const _hoisted_1$3 = {