ire-preview 2.2.5 → 2.2.6

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 (2) hide show
  1. package/dist/lib.es.js +17 -15
  2. package/package.json +1 -1
package/dist/lib.es.js CHANGED
@@ -231,7 +231,7 @@ const _hoisted_1$g = {
231
231
  return (t, r) => (openBlock(), createElementBlock("div", null, [
232
232
  createVNode(Transition, { name: "ire-fade-in-out" }, {
233
233
  default: withCtx(() => {
234
- var o, s, c, d, k, l, _, x, y, u, f, a, v, n, i, p, m, $, h, E, S, g, b, w, V, C, D, R;
234
+ var o, s, c, d, k, l, _, x, y, u, f, a, v, n, i, p, m, $, h, E, S, g, b, w, V, C, D, R, j;
235
235
  return [
236
236
  t.type && t.hoveredData && t.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
237
237
  t.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
@@ -286,7 +286,9 @@ const _hoisted_1$g = {
286
286
  ]),
287
287
  createElementVNode("div", _hoisted_28, [
288
288
  createElementVNode("div", _hoisted_29, [
289
- createTextVNode(toDisplayString((R = (D = t.hoveredData) == null ? void 0 : D.type) == null ? void 0 : R.area_m2) + " M", 1),
289
+ createTextVNode(toDisplayString((j = Number(
290
+ (R = (D = t.hoveredData) == null ? void 0 : D.type) == null ? void 0 : R.area_m2
291
+ )) == null ? void 0 : j.toLocaleString("fr-FR")) + " M", 1),
290
292
  r[8] || (r[8] = createElementVNode("sup", { class: "ire-bg-white !ire-text-xs" }, " 2 ", -1))
291
293
  ])
292
294
  ])
@@ -592,7 +594,7 @@ function createSetupStore(e, t, r = {}, o, s, c) {
592
594
  function R(B) {
593
595
  C.push(B);
594
596
  }
595
- function L(B) {
597
+ function j(B) {
596
598
  D.push(B);
597
599
  }
598
600
  triggerSubscriptions(u, {
@@ -600,7 +602,7 @@ function createSetupStore(e, t, r = {}, o, s, c) {
600
602
  name: w[ACTION_NAME],
601
603
  store: h,
602
604
  after: R,
603
- onError: L
605
+ onError: j
604
606
  });
605
607
  let N;
606
608
  try {
@@ -1119,7 +1121,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
1119
1121
  createVNode(_sfc_main$c, { onClick: k })
1120
1122
  ]),
1121
1123
  default: withCtx(() => {
1122
- var x, y, u, f, a, v, n, i, p, m, $, h, E, S, g, b, w, V, C, D, R, L, N, B, P, O, A, I, F, H, W;
1124
+ var x, y, u, f, a, v, n, i, p, m, $, h, E, S, g, b, w, V, C, D, R, j, N, B, P, O, A, I, F, H, W;
1123
1125
  return [
1124
1126
  createElementVNode("div", _hoisted_1$5, [
1125
1127
  createElementVNode("div", _hoisted_2$3, [
@@ -1128,9 +1130,9 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
1128
1130
  mode: "out-in"
1129
1131
  }, {
1130
1132
  default: withCtx(() => {
1131
- var j, M, T, z, X, Y, K, U, q, Z, J, Q, G, ee, te, oe, re, ie, se, le, ne, ae, ce, de;
1133
+ var M, L, T, z, X, Y, K, U, q, Z, J, Q, G, ee, te, oe, re, ie, se, le, ne, ae, ce, de;
1132
1134
  return [
1133
- s.value && ((z = (T = (M = (j = l.flat) == null ? void 0 : j.type) == null ? void 0 : M.image_2d) == null ? void 0 : T[c.value]) != null && z.url) ? (openBlock(), createElementBlock("img", {
1135
+ s.value && ((z = (T = (L = (M = l.flat) == null ? void 0 : M.type) == null ? void 0 : L.image_2d) == null ? void 0 : T[c.value]) != null && z.url) ? (openBlock(), createElementBlock("img", {
1134
1136
  key: (U = (K = (Y = (X = l.flat) == null ? void 0 : X.type) == null ? void 0 : Y.image_2d) == null ? void 0 : K[c.value]) == null ? void 0 : U.url,
1135
1137
  src: (Q = (J = (Z = (q = l.flat) == null ? void 0 : q.type) == null ? void 0 : Z.image_2d) == null ? void 0 : J[c.value]) == null ? void 0 : Q.url,
1136
1138
  class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
@@ -1148,7 +1150,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
1148
1150
  (f = (u = (y = (x = l.flat) == null ? void 0 : x.type) == null ? void 0 : y.image_2d) == null ? void 0 : u[0]) != null && f.url ? (openBlock(), createElementBlock("div", {
1149
1151
  key: 0,
1150
1152
  class: normalizeClass(["ire-group ire-flex ire-cursor-pointer ire-items-center ire-gap-2 ire-rounded-lg ire-p-3 !ire-text-xs ire-transition-all hover:ire-bg-primary", { "!ire-bg-primary !ire-text-white": s.value }]),
1151
- onClick: _[0] || (_[0] = (j) => s.value = !0)
1153
+ onClick: _[0] || (_[0] = (M) => s.value = !0)
1152
1154
  }, [
1153
1155
  createVNode(FlatIcon, {
1154
1156
  class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": s.value }])
@@ -1163,7 +1165,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
1163
1165
  (i = (n = (v = (a = l.flat) == null ? void 0 : a.type) == null ? void 0 : v.image_3d) == null ? void 0 : n[0]) != null && i.url ? (openBlock(), createElementBlock("div", {
1164
1166
  key: 1,
1165
1167
  class: normalizeClass(["ire-group ire-flex ire-cursor-pointer ire-items-center ire-gap-2 ire-rounded-lg ire-p-3 !ire-text-xs ire-transition-all hover:ire-bg-primary", { "!ire-bg-primary !ire-text-white": !s.value }]),
1166
- onClick: _[1] || (_[1] = (j) => s.value = !1)
1168
+ onClick: _[1] || (_[1] = (M) => s.value = !1)
1167
1169
  }, [
1168
1170
  createElementVNode("div", null, [
1169
1171
  createVNode(Cube, {
@@ -1179,13 +1181,13 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
1179
1181
  ], 2)) : createCommentVNode("", !0)
1180
1182
  ]),
1181
1183
  ((p = d.value) == null ? void 0 : p.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
1182
- (openBlock(!0), createElementBlock(Fragment, null, renderList(d.value, (j, M) => (openBlock(), createElementBlock("div", {
1183
- key: j,
1184
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(d.value, (M, L) => (openBlock(), createElementBlock("div", {
1185
+ key: M,
1184
1186
  class: normalizeClass(["ire-flex ire-h-10 ire-w-10 ire-cursor-pointer ire-items-center ire-justify-center ire-rounded-lg ire-p-2 ire-transition-all hover:ire-bg-black hover:ire-text-white", {
1185
- "ire-bg-black ire-text-white": c.value === M
1187
+ "ire-bg-black ire-text-white": c.value === L
1186
1188
  }]),
1187
- onClick: (T) => c.value = M
1188
- }, toDisplayString(j), 11, _hoisted_8))), 128))
1189
+ onClick: (T) => c.value = L
1190
+ }, toDisplayString(M), 11, _hoisted_8))), 128))
1189
1191
  ])) : createCommentVNode("", !0)
1190
1192
  ])
1191
1193
  ]),
@@ -1203,7 +1205,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
1203
1205
  createElementVNode("div", _hoisted_17, toDisplayString((D = l.flat) == null ? void 0 : D.floor_number), 1),
1204
1206
  _[3] || (_[3] = createElementVNode("div", { class: "!ire-text-xs ire-text-gray-600" }, "Floor", -1))
1205
1207
  ])) : createCommentVNode("", !0),
1206
- (L = (R = l.flat) == null ? void 0 : R.type) != null && L.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_18, [
1208
+ (j = (R = l.flat) == null ? void 0 : R.type) != null && j.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_18, [
1207
1209
  createElementVNode("div", _hoisted_19, toDisplayString((N = l.flat) == null ? void 0 : N.type.rooms_count), 1),
1208
1210
  _[4] || (_[4] = createElementVNode("div", { class: "!ire-text-xs ire-text-gray-600" }, "Room", -1))
1209
1211
  ])) : createCommentVNode("", !0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ire-preview",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "type": "module",
5
5
  "emitDeclarationOnly": true,
6
6
  "declaration": true,