@evercam/ui 1.0.0-preview-fix-compare-b91b3ae20 → 1.0.0-preview-refactor-automations-tests-4134614c2

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.
package/dist/index.mjs CHANGED
@@ -14126,7 +14126,7 @@ const ei = E5.exports, L5 = F.extend({
14126
14126
  },
14127
14127
  computed: {
14128
14128
  beforeImageStyle() {
14129
- if (this.isComponentLoading)
14129
+ if (this.isLoading)
14130
14130
  return {
14131
14131
  clip: "none"
14132
14132
  };
@@ -14174,11 +14174,8 @@ const ei = E5.exports, L5 = F.extend({
14174
14174
  }
14175
14175
  },
14176
14176
  watch: {
14177
- beforeImageSrc() {
14178
- this.isBeforeImageLoaded = !1;
14179
- },
14180
- afterImageSrc() {
14181
- this.isAfterImageLoaded = !1;
14177
+ isLoading(t) {
14178
+ t && (this.isBeforeImageLoaded = !1, this.isAfterImageLoaded = !1);
14182
14179
  }
14183
14180
  },
14184
14181
  methods: {
@@ -14252,16 +14249,16 @@ const ei = E5.exports, L5 = F.extend({
14252
14249
  });
14253
14250
  var D5 = function() {
14254
14251
  var e = this, r = e._self._c;
14255
- return r("div", { directives: [{ name: "resize-observer", rawName: "v-resize-observer", value: e.handleResize, expression: "handleResize" }], ref: "container", staticClass: "e-h-full e-w-full e-relative e-bg-black e-border-black !e-select-none" }, [r("div", { staticClass: "e-w-full e-h-full" }, [r("EZoomableImg", { ref: "afterImage", staticClass: "e-block e-w-full e-h-full e-image-comparator__image", style: e.afterImageStyle, attrs: { src: e.afterImageSrc, alt: "After Image", embedded: !0, allowZoom: !0, pan: !0, slider: !0, showMiniature: !0, hideContentOnBlur: !1 }, on: { change: e.onZoomChange, load: e.handleAfterImageLoad } }), r("EZoomableImg", { staticClass: "!e-absolute e-top-0 e-left-0 e-pointer-events-none e-block e-w-full e-h-full e-image-comparator__image", style: e.beforeImageStyle, attrs: { src: e.beforeImageSrc, alt: "Before Image", embedded: !0, allowZoom: !1, pan: !1, slider: !1, showMiniature: !1, initialParams: e.zoomState }, on: { load: e.handleBeforeImageLoad } })], 1), e.mode === e.CompareMode.Curtain && !e.isComponentLoading ? r("ECompareSeparator", { attrs: { "x-offset": e.computedSeparatorPositionX }, on: { mousedown: function(n) {
14252
+ return r("div", { directives: [{ name: "resize-observer", rawName: "v-resize-observer", value: e.handleResize, expression: "handleResize" }], ref: "container", staticClass: "e-h-full e-w-full e-relative e-bg-black e-border-black !e-select-none" }, [r("div", { staticClass: "e-w-full e-h-full" }, [r("EZoomableImg", { ref: "afterImage", staticClass: "e-block e-w-full e-h-full e-image-comparator__image", style: e.afterImageStyle, attrs: { src: e.afterImageSrc, alt: "After Image", embedded: !0, allowZoom: !0, pan: !0, slider: !0, showMiniature: !0, hideContentOnBlur: !1 }, on: { change: e.onZoomChange, load: e.handleAfterImageLoad } }), r("EZoomableImg", { staticClass: "!e-absolute e-top-0 e-left-0 e-pointer-events-none e-block e-w-full e-h-full e-image-comparator__image", style: e.beforeImageStyle, attrs: { src: e.beforeImageSrc, alt: "Before Image", embedded: !0, allowZoom: !1, pan: !1, slider: !1, showMiniature: !1, initialParams: e.zoomState }, on: { load: e.handleBeforeImageLoad } })], 1), e.mode === e.CompareMode.Curtain && !e.isLoading ? r("ECompareSeparator", { attrs: { "x-offset": e.computedSeparatorPositionX }, on: { mousedown: function(n) {
14256
14253
  return n.stopPropagation(), n.preventDefault(), e.handleMouseDown.apply(null, arguments);
14257
- }, touchstart: e.handleTouchStart } }) : e._e(), e.mode === "window" && !e.isComponentLoading ? r("EDragResize", { attrs: { initial: e.windowState, bounds: e.windowBounds }, on: { change: e.handleWindowChange } }) : e._e(), e.isComponentLoading ? e._e() : r("div", { staticClass: "e-images-comparator__watermark", style: e.watermarkStyle }, [e._t("watermark", null, null, e.watermarkStyle)], 2), e.isComponentLoading ? r("div", { staticClass: "e-images-comparator__overlay" }, [e._t("overlay")], 2) : e._e(), r("div", { staticClass: "e-images-comparator__imageOverlay" }, [e._t("imageOverlay")], 2), e._t("default", null, { imageDimensions: e.computedImageDimension })], 2);
14254
+ }, touchstart: e.handleTouchStart } }) : e._e(), e.mode === "window" && !e.isLoading ? r("EDragResize", { attrs: { initial: e.windowState, bounds: e.windowBounds }, on: { change: e.handleWindowChange } }) : e._e(), e.isLoading ? e._e() : r("div", { staticClass: "e-images-comparator__watermark", style: e.watermarkStyle }, [e._t("watermark", null, null, e.watermarkStyle)], 2), e.isComponentLoading ? r("div", { staticClass: "e-images-comparator__overlay" }, [e._t("overlay")], 2) : e._e(), r("div", { staticClass: "e-images-comparator__imageOverlay" }, [e._t("imageOverlay")], 2), e._t("default", null, { imageDimensions: e.computedImageDimension })], 2);
14258
14255
  }, P5 = [], z5 = /* @__PURE__ */ H(
14259
14256
  L5,
14260
14257
  D5,
14261
14258
  P5,
14262
14259
  !1,
14263
14260
  null,
14264
- "e5b9302f",
14261
+ "3322d16d",
14265
14262
  null,
14266
14263
  null
14267
14264
  );
@@ -21373,7 +21370,7 @@ const ed = J7.exports, td = F.extend({
21373
21370
  var rd = function() {
21374
21371
  var e = this, r = e._self._c;
21375
21372
  return e._self._setupProxy, r("div", { staticClass: "e-radio-group__wrapper e-mx-auto e-w-full" }, [r("div", [r("div", { staticClass: "e-radio-group__items e-space-y-2", class: e.itemsWrapperClasses }, e._l(e.options, function(n, s) {
21376
- return r("div", { key: s, staticClass: "e-radio-group__container e-relative e-flex e-border-solid e-border-[1.67px] e-rounded-lg e-px-4 e-py-2.5 e-shadow-md focus:e-outline-none e-max-h-[66px]", class: e.containerClasses(n), on: { click: function(i) {
21373
+ return r("div", { key: s, staticClass: "e-radio-group__container e-relative e-flex e-border-solid e-border-[1.67px] e-rounded-lg e-px-4 e-py-2.5 e-shadow-md focus:e-outline-none e-max-h-[66px]", class: e.containerClasses(n), attrs: { "data-test-id": `radio-option-${n.value}` }, on: { click: function(i) {
21377
21374
  return e.onItemClick(n.value);
21378
21375
  } } }, [r("div", { staticClass: "e-radio-group__option-wrapper e-flex e-w-full e-items-center e-justify-between" }, [r("div", { staticClass: "e-radio-group__option-wrapper e-flex e-items-center" }, [e.withIcon && n.icon ? r("div", { staticClass: "e-mr-4" }, [e._t("icon", function() {
21379
21376
  return [r("EIcon", { class: e.isSelected(n.value) ? e.selectedItemClasses : e.radioItemClasses, attrs: { icon: n.icon, size: "base" } })];
@@ -21381,7 +21378,7 @@ var rd = function() {
21381
21378
  return [r("h2", { staticClass: "e-radio-group__option-title e-font-semibold e-text-sm e-mb-1 e-mt-1" }, [e._v(" " + e._s(n.label) + " ")])];
21382
21379
  }, { option: n }), e._t("description", function() {
21383
21380
  return [e.showDescription(n) ? r("span", { staticClass: "e-radio-group__option-description e-mt-2 e-text-[0.75rem]" }, [e._v(" " + e._s(n.description) + " ")]) : e._e()];
21384
- }, { option: n })], 2)], 2)]), r("div", { directives: [{ name: "show", rawName: "v-show", value: e.isSelected(n.value), expression: "isSelected(option.value)" }], staticClass: "e-shrink-0 e-text-white" }, [e._t("highlight-icon", function() {
21381
+ }, { option: n })], 2)], 2)]), r("div", { directives: [{ name: "show", rawName: "v-show", value: e.isSelected(n.value), expression: "isSelected(option.value)" }], staticClass: "e-shrink-0 e-text-white", attrs: { "data-test-id": "radio-option-checkmark" } }, [e._t("highlight-icon", function() {
21385
21382
  return [r("svg", { staticClass: "e-h-6 e-w-6", attrs: { viewBox: "0 0 24 24", fill: "none" } }, [r("circle", { attrs: { cx: "12", cy: "12", r: "12", fill: "#fff", "fill-opacity": "0.2" } }), r("path", { attrs: { d: "M7 13l3 3 7-7", stroke: "#fff", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" } })])];
21386
21383
  }, { option: n })], 2)])]);
21387
21384
  }), 0)])]);