@kiva/kv-shop 3.7.72 → 3.7.73
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/components/KvPaymentSelect2.js +4 -2
- package/dist/kv-components/dist/data/allCountriesISOMap.js +249 -0
- package/dist/kv-components/dist/data/simpleMapCentroids.js +1265 -0
- package/dist/kv-components/dist/data/simpleMapCountryPaths.js +215 -0
- package/dist/kv-components/dist/data/simpleMapPaths.js +216 -0
- package/dist/kv-components/dist/utils/useMapTourCycle.js +73 -0
- package/dist/kv-components/dist/vue/KvSimpleMap.css +1 -0
- package/dist/kv-components/dist/vue/KvSimpleMap2.js +20 -0
- package/package.json +3 -3
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ref as r, watch as g, onBeforeUnmount as P } from "vue";
|
|
2
|
+
const T = {
|
|
3
|
+
initialDelay: 1e3,
|
|
4
|
+
panDuration: 1200,
|
|
5
|
+
holdPerStep: 2e3,
|
|
6
|
+
popupHideBefore: 350,
|
|
7
|
+
holdAll: 2e3,
|
|
8
|
+
fadeDuration: 500
|
|
9
|
+
};
|
|
10
|
+
function E(d, D, y, A = {}) {
|
|
11
|
+
const e = { ...T, ...A }, i = r(-1), t = r(/* @__PURE__ */ new Set()), l = r(-1), u = r(!1);
|
|
12
|
+
let f = [];
|
|
13
|
+
function w() {
|
|
14
|
+
f.forEach((a) => clearTimeout(a)), f = [];
|
|
15
|
+
}
|
|
16
|
+
function S() {
|
|
17
|
+
i.value = -1, t.value = /* @__PURE__ */ new Set(), l.value = -1;
|
|
18
|
+
}
|
|
19
|
+
function n(a, o) {
|
|
20
|
+
f.push(setTimeout(a, o));
|
|
21
|
+
}
|
|
22
|
+
function m() {
|
|
23
|
+
const a = d.value;
|
|
24
|
+
if (!a.length) {
|
|
25
|
+
u.value = !1;
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const o = e.panDuration + e.holdPerStep;
|
|
29
|
+
a.forEach((x, v) => {
|
|
30
|
+
const h = e.initialDelay + v * o;
|
|
31
|
+
n(() => {
|
|
32
|
+
i.value = v, l.value = -1;
|
|
33
|
+
}, h), n(() => {
|
|
34
|
+
t.value = /* @__PURE__ */ new Set([...t.value, x.id]), l.value = v;
|
|
35
|
+
}, h + e.panDuration), n(() => {
|
|
36
|
+
l.value = -1;
|
|
37
|
+
}, h + o - e.popupHideBefore);
|
|
38
|
+
});
|
|
39
|
+
const s = e.initialDelay + a.length * o, B = s + e.holdAll + e.fadeDuration;
|
|
40
|
+
n(() => {
|
|
41
|
+
i.value = -1, l.value = -1;
|
|
42
|
+
}, s), n(() => {
|
|
43
|
+
t.value = /* @__PURE__ */ new Set();
|
|
44
|
+
}, s + e.holdAll), n(() => {
|
|
45
|
+
y.value ? m() : u.value = !1;
|
|
46
|
+
}, B);
|
|
47
|
+
}
|
|
48
|
+
function p() {
|
|
49
|
+
w(), S(), u.value = !0, m();
|
|
50
|
+
}
|
|
51
|
+
function c() {
|
|
52
|
+
w(), S(), u.value = !1;
|
|
53
|
+
}
|
|
54
|
+
return g(
|
|
55
|
+
D,
|
|
56
|
+
(a) => {
|
|
57
|
+
a ? p() : c();
|
|
58
|
+
},
|
|
59
|
+
{ immediate: !0 }
|
|
60
|
+
), g(d, () => {
|
|
61
|
+
D.value && p();
|
|
62
|
+
}), P(c), {
|
|
63
|
+
panIdx: i,
|
|
64
|
+
highlighted: t,
|
|
65
|
+
showPopupIdx: l,
|
|
66
|
+
isRunning: u,
|
|
67
|
+
start: p,
|
|
68
|
+
stop: c
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export {
|
|
72
|
+
E as useMapTourCycle
|
|
73
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.kv-simple-map__pan-layer[data-v-49496ad7]{transform-origin:0 0}.kv-simple-map__control-btn[data-v-49496ad7]{display:flex;height:2rem;width:2rem;cursor:pointer;align-items:center;justify-content:center;border-radius:.25rem;border-width:.0625rem;--tw-border-opacity: 1;border-color:rgba(var(--border-tertiary),var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));--tw-shadow: 0 1px 4px 0 rgb(0 0 0 / .08);--tw-shadow-colored: 0 1px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.kv-simple-map__control-btn[data-v-49496ad7]:disabled{cursor:default;opacity:.3}.kv-simple-map__control-btn[data-v-49496ad7]:hover:not(:disabled){--tw-bg-opacity: 1;background-color:rgba(var(--bg-secondary),var(--tw-bg-opacity, 1))}.kv-simple-map__play-btn[data-v-49496ad7]{border-radius:500rem}.kv-simple-map__default-popup[data-v-49496ad7]{white-space:nowrap;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:.5rem 1.5rem;text-align:center;--tw-shadow: 0 1px 4px 0 rgb(0 0 0 / .08);--tw-shadow-colored: 0 1px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);min-width:80px}.kv-simple-map__popup[data-v-49496ad7]{height:0;width:0}.kv-simple-map__popup-content[data-v-49496ad7]{position:absolute;white-space:nowrap}.kv-simple-map__popup--top>.kv-simple-map__popup-content[data-v-49496ad7]{bottom:var(--kv-simple-map-popup-offset, 4px);left:0;transform:translate(-50%)}.kv-simple-map__popup--bottom>.kv-simple-map__popup-content[data-v-49496ad7]{top:var(--kv-simple-map-popup-offset, 4px);left:0;transform:translate(-50%)}.kv-simple-map__popup--bottom-right>.kv-simple-map__popup-content[data-v-49496ad7]{top:var(--kv-simple-map-popup-offset, 4px);left:var(--kv-simple-map-popup-offset, 4px)}.kv-simple-map-popup-enter-active[data-v-49496ad7],.kv-simple-map-popup-leave-active[data-v-49496ad7]{transition:opacity .18s ease-out}.kv-simple-map-popup-enter-from[data-v-49496ad7],.kv-simple-map-popup-leave-to[data-v-49496ad7]{opacity:0}.kv-simple-map-popup-enter-to[data-v-49496ad7],.kv-simple-map-popup-leave-from[data-v-49496ad7]{opacity:1}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineComponent as Ve, useSlots as qe, computed as o, ref as m, watch as U, createElementBlock as f, onMounted as Xe, onBeforeUnmount as je, openBlock as d, normalizeStyle as N, createElementVNode as g, createCommentVNode as D, Fragment as Ke, renderList as Ye, unref as k, createVNode as T, Transition as Ge, withCtx as Je, normalizeClass as Qe, renderSlot as We, toDisplayString as oe } from "vue";
|
|
2
|
+
import { mdiPlus as et, mdiMinus as tt, mdiPlay as lt } from "@mdi/js";
|
|
3
|
+
import S from "@kiva/kv-tokens";
|
|
4
|
+
import at from "../data/simpleMapPaths.js";
|
|
5
|
+
import ot from "../data/simpleMapCountryPaths.js";
|
|
6
|
+
import V from "../data/simpleMapCentroids.js";
|
|
7
|
+
import { ALL_COUNTRIES_ISO_MAP as ne } from "../data/allCountriesISOMap.js";
|
|
8
|
+
import { useMapTourCycle as nt } from "../utils/useMapTourCycle.js";
|
|
9
|
+
import q from "./KvMaterialIcon.js";
|
|
10
|
+
const ut = ["viewBox"], rt = ["d", "fill", "onPointerenter", "onPointerleave"], it = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "kv-simple-map__zoom-controls tw-absolute tw-top-2 tw-right-2 tw-flex tw-flex-col tw-gap-1"
|
|
13
|
+
}, st = ["disabled"], ct = ["disabled"], pt = { class: "kv-simple-map__popup-layer tw-absolute tw-inset-0 tw-pointer-events-none" }, vt = { class: "kv-simple-map__popup-content" }, mt = { class: "kv-simple-map__default-popup" }, ft = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "tw-text-label"
|
|
16
|
+
}, dt = {
|
|
17
|
+
key: 1,
|
|
18
|
+
class: "tw-text-caption"
|
|
19
|
+
}, P = 1300.02, B = 571.784, yt = "cubic-bezier(0.76, 0, 0.24, 1)", xt = 60;
|
|
20
|
+
P / B, S.colors["eco-green"].DEFAULT, S.colors.gray[200];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-shop",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.73",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@apollo/client": "^3.13.1",
|
|
36
36
|
"@kiva/kv-analytics": "^1.3.1",
|
|
37
|
-
"@kiva/kv-components": "^8.
|
|
37
|
+
"@kiva/kv-components": "^8.12.0",
|
|
38
38
|
"@kiva/vite-plugin-vue-lib-css": "^2.0.0",
|
|
39
39
|
"@types/braintree-web-drop-in": "^1.39.3",
|
|
40
40
|
"@types/jest": "^29.5.14",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"numeral": "2.x",
|
|
64
64
|
"vue": "3.x"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "395f5add0d2149a52dd1e07d7df2da2a321ab11a"
|
|
67
67
|
}
|