@floegence/floe-webapp-core 0.1.13 → 0.1.14
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/context/DeckContext.d.ts +6 -0
- package/dist/context/WidgetStateContext.d.ts +47 -0
- package/dist/context/index.d.ts +1 -0
- package/dist/index.js +178 -173
- package/dist/index10.js +2 -2
- package/dist/index11.js +50 -38
- package/dist/index12.js +1 -1
- package/dist/index13.js +3 -3
- package/dist/index14.js +2 -2
- package/dist/index15.js +2 -2
- package/dist/index16.js +2 -2
- package/dist/index17.js +2 -2
- package/dist/index18.js +2 -2
- package/dist/index19.js +1 -1
- package/dist/index2.js +3 -3
- package/dist/index20.js +1 -1
- package/dist/index21.js +2 -2
- package/dist/index22.js +2 -2
- package/dist/index23.js +2 -2
- package/dist/index24.js +1 -1
- package/dist/index25.js +2 -2
- package/dist/index26.js +1 -1
- package/dist/index27.js +1 -1
- package/dist/index28.js +1 -1
- package/dist/index29.js +1 -1
- package/dist/index3.js +1 -1
- package/dist/index30.js +1 -1
- package/dist/index37.js +1 -1
- package/dist/index39.js +1 -1
- package/dist/index4.js +1 -1
- package/dist/index40.js +1 -1
- package/dist/index41.js +1 -1
- package/dist/index42.js +1 -1
- package/dist/index43.js +1 -1
- package/dist/index44.js +1 -1
- package/dist/index5.js +1 -1
- package/dist/index50.js +1 -1
- package/dist/index52.js +2 -2
- package/dist/index53.js +1 -1
- package/dist/index54.js +1 -1
- package/dist/index56.js +92 -79
- package/dist/index57.js +38 -13
- package/dist/index58.js +13 -10
- package/dist/index59.js +10 -16
- package/dist/index6.js +1 -1
- package/dist/index60.js +16 -10
- package/dist/index61.js +10 -8
- package/dist/index62.js +8 -58
- package/dist/index63.js +58 -5
- package/dist/index64.js +5 -3
- package/dist/index65.js +3 -45
- package/dist/index66.js +42 -23
- package/dist/index67.js +24 -30
- package/dist/index68.js +31 -90
- package/dist/index69.js +91 -22
- package/dist/index7.js +1 -1
- package/dist/index70.js +19 -43
- package/dist/index71.js +45 -13
- package/dist/index72.js +14 -35
- package/dist/index73.js +33 -62
- package/dist/index74.js +61 -81
- package/dist/index75.js +84 -14
- package/dist/index76.js +12 -2261
- package/dist/index77.js +2262 -6
- package/dist/index78.js +10 -0
- package/dist/index8.js +2 -2
- package/dist/index9.js +1 -1
- package/package.json +1 -1
package/dist/index65.js
CHANGED
|
@@ -1,48 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (typeof window > "u") return;
|
|
4
|
-
const t = r + o, c = i.get(t);
|
|
5
|
-
c && clearTimeout(c), i.set(
|
|
6
|
-
t,
|
|
7
|
-
setTimeout(() => {
|
|
8
|
-
try {
|
|
9
|
-
localStorage.setItem(t, JSON.stringify(e)), i.delete(t);
|
|
10
|
-
} catch (s) {
|
|
11
|
-
console.warn(`Failed to save ${t}:`, s);
|
|
12
|
-
}
|
|
13
|
-
}, n)
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
function l(o, e) {
|
|
17
|
-
if (typeof window > "u") return e;
|
|
18
|
-
const n = r + o;
|
|
19
|
-
try {
|
|
20
|
-
const t = localStorage.getItem(n);
|
|
21
|
-
return t === null ? e : JSON.parse(t);
|
|
22
|
-
} catch {
|
|
23
|
-
return e;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function a(o, e) {
|
|
27
|
-
if (typeof window > "u") return;
|
|
28
|
-
const n = r + o;
|
|
29
|
-
try {
|
|
30
|
-
localStorage.setItem(n, JSON.stringify(e));
|
|
31
|
-
} catch (t) {
|
|
32
|
-
console.warn(`Failed to save ${n}:`, t);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
function u(o) {
|
|
36
|
-
typeof window > "u" || localStorage.removeItem(r + o);
|
|
37
|
-
}
|
|
38
|
-
function d() {
|
|
39
|
-
if (typeof window > "u") return;
|
|
40
|
-
Object.keys(localStorage).filter((e) => e.startsWith(r)).forEach((e) => localStorage.removeItem(e));
|
|
1
|
+
function n(e, o = 0) {
|
|
2
|
+
setTimeout(e, o);
|
|
41
3
|
}
|
|
42
4
|
export {
|
|
43
|
-
|
|
44
|
-
f as debouncedSave,
|
|
45
|
-
l as load,
|
|
46
|
-
u as remove,
|
|
47
|
-
a as save
|
|
5
|
+
n as deferNonBlocking
|
|
48
6
|
};
|
package/dist/index66.js
CHANGED
|
@@ -1,29 +1,48 @@
|
|
|
1
|
-
const r =
|
|
2
|
-
function o
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
const r = "floe-", i = /* @__PURE__ */ new Map();
|
|
2
|
+
function f(o, e, n = 300) {
|
|
3
|
+
if (typeof window > "u") return;
|
|
4
|
+
const t = r + o, c = i.get(t);
|
|
5
|
+
c && clearTimeout(c), i.set(
|
|
6
|
+
t,
|
|
7
|
+
setTimeout(() => {
|
|
8
|
+
try {
|
|
9
|
+
localStorage.setItem(t, JSON.stringify(e)), i.delete(t);
|
|
10
|
+
} catch (s) {
|
|
11
|
+
console.warn(`Failed to save ${t}:`, s);
|
|
12
|
+
}
|
|
13
|
+
}, n)
|
|
14
|
+
);
|
|
11
15
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
function l(o, e) {
|
|
17
|
+
if (typeof window > "u") return e;
|
|
18
|
+
const n = r + o;
|
|
19
|
+
try {
|
|
20
|
+
const t = localStorage.getItem(n);
|
|
21
|
+
return t === null ? e : JSON.parse(t);
|
|
22
|
+
} catch {
|
|
23
|
+
return e;
|
|
24
|
+
}
|
|
15
25
|
}
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
26
|
+
function a(o, e) {
|
|
27
|
+
if (typeof window > "u") return;
|
|
28
|
+
const n = r + o;
|
|
29
|
+
try {
|
|
30
|
+
localStorage.setItem(n, JSON.stringify(e));
|
|
31
|
+
} catch (t) {
|
|
32
|
+
console.warn(`Failed to save ${n}:`, t);
|
|
33
|
+
}
|
|
21
34
|
}
|
|
22
|
-
function
|
|
23
|
-
|
|
35
|
+
function u(o) {
|
|
36
|
+
typeof window > "u" || localStorage.removeItem(r + o);
|
|
37
|
+
}
|
|
38
|
+
function d() {
|
|
39
|
+
if (typeof window > "u") return;
|
|
40
|
+
Object.keys(localStorage).filter((e) => e.startsWith(r)).forEach((e) => localStorage.removeItem(e));
|
|
24
41
|
}
|
|
25
42
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
43
|
+
d as clearAll,
|
|
44
|
+
f as debouncedSave,
|
|
45
|
+
l as load,
|
|
46
|
+
u as remove,
|
|
47
|
+
a as save
|
|
29
48
|
};
|
package/dist/index67.js
CHANGED
|
@@ -1,35 +1,29 @@
|
|
|
1
|
-
const
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
const r = typeof navigator < "u" && /Mac|iPhone|iPad|iPod/.test(navigator.userAgent);
|
|
2
|
+
function o(s) {
|
|
3
|
+
const t = s.toLowerCase().split("+"), e = t.pop() || "";
|
|
4
|
+
return {
|
|
5
|
+
mod: t.includes("mod"),
|
|
6
|
+
ctrl: t.includes("ctrl"),
|
|
7
|
+
alt: t.includes("alt"),
|
|
8
|
+
shift: t.includes("shift"),
|
|
9
|
+
key: e
|
|
10
|
+
};
|
|
4
11
|
}
|
|
5
|
-
function
|
|
6
|
-
const s =
|
|
7
|
-
|
|
8
|
-
const l = n.stack[n.stack.length - 1], r = l ? l.value : n.initial;
|
|
9
|
-
r ? s.style.setProperty(c, r) : s.style.removeProperty(c);
|
|
12
|
+
function c(s, t) {
|
|
13
|
+
const e = typeof t == "string" ? o(t) : t, i = r ? s.metaKey : s.ctrlKey, n = s.key.toLowerCase();
|
|
14
|
+
return e.mod && !i || !e.mod && e.ctrl && !s.ctrlKey || e.alt && !s.altKey || e.shift && !s.shiftKey ? !1 : n === e.key;
|
|
10
15
|
}
|
|
11
|
-
function
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
let o = i.get(t);
|
|
20
|
-
o || (o = { initial: n.style.getPropertyValue(t), stack: [] }, i.set(t, o)), o.stack.push({ id: s, value: e }), u(t, o);
|
|
21
|
-
}
|
|
22
|
-
let r = !1;
|
|
23
|
-
return () => {
|
|
24
|
-
if (!r) {
|
|
25
|
-
r = !0;
|
|
26
|
-
for (const t of l) {
|
|
27
|
-
const e = i.get(t);
|
|
28
|
-
e && (e.stack = e.stack.filter((o) => o.id !== s), e.stack.length === 0 ? (u(t, e), i.delete(t)) : u(t, e));
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
16
|
+
function l(s) {
|
|
17
|
+
const t = o(s), e = [];
|
|
18
|
+
t.mod && e.push(r ? "⌘" : "Ctrl"), t.ctrl && !t.mod && e.push(r ? "⌃" : "Ctrl"), t.alt && e.push(r ? "⌥" : "Alt"), t.shift && e.push(r ? "⇧" : "Shift");
|
|
19
|
+
const i = t.key.length === 1 ? t.key.toUpperCase() : a(t.key);
|
|
20
|
+
return e.push(i), e.join(r ? "" : "+");
|
|
21
|
+
}
|
|
22
|
+
function a(s) {
|
|
23
|
+
return s.charAt(0).toUpperCase() + s.slice(1);
|
|
32
24
|
}
|
|
33
25
|
export {
|
|
34
|
-
|
|
26
|
+
l as formatKeybind,
|
|
27
|
+
c as matchKeybind,
|
|
28
|
+
o as parseKeybind
|
|
35
29
|
};
|
package/dist/index68.js
CHANGED
|
@@ -1,94 +1,35 @@
|
|
|
1
|
-
const i =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
transition: { duration: t.normal }
|
|
22
|
-
}, e = {
|
|
23
|
-
initial: { x: -20, opacity: 0 },
|
|
24
|
-
animate: { x: 0, opacity: 1 },
|
|
25
|
-
exit: { x: -20, opacity: 0 },
|
|
26
|
-
transition: { duration: t.normal, ease: a.easeOut }
|
|
27
|
-
}, s = {
|
|
28
|
-
initial: { x: 20, opacity: 0 },
|
|
29
|
-
animate: { x: 0, opacity: 1 },
|
|
30
|
-
exit: { x: 20, opacity: 0 },
|
|
31
|
-
transition: { duration: t.normal, ease: a.easeOut }
|
|
32
|
-
}, o = {
|
|
33
|
-
initial: { y: -20, opacity: 0 },
|
|
34
|
-
animate: { y: 0, opacity: 1 },
|
|
35
|
-
exit: { y: -20, opacity: 0 },
|
|
36
|
-
transition: { duration: t.normal, ease: a.easeOut }
|
|
37
|
-
}, c = {
|
|
38
|
-
initial: { y: 20, opacity: 0 },
|
|
39
|
-
animate: { y: 0, opacity: 1 },
|
|
40
|
-
exit: { y: 20, opacity: 0 },
|
|
41
|
-
transition: { duration: t.normal, ease: a.easeOut }
|
|
42
|
-
}, r = {
|
|
43
|
-
initial: { scale: 0.95, opacity: 0 },
|
|
44
|
-
animate: { scale: 1, opacity: 1 },
|
|
45
|
-
exit: { scale: 0.95, opacity: 0 },
|
|
46
|
-
transition: { duration: t.fast, ease: a.easeOut }
|
|
47
|
-
}, p = {
|
|
48
|
-
initial: { scale: 0.9, opacity: 0 },
|
|
49
|
-
animate: { scale: 1, opacity: 1 },
|
|
50
|
-
exit: { scale: 0.9, opacity: 0 },
|
|
51
|
-
transition: { type: "spring", ...i.bouncy }
|
|
52
|
-
}, l = {
|
|
53
|
-
open: {
|
|
54
|
-
width: 300,
|
|
55
|
-
transition: { duration: t.normal, ease: a.easeOut }
|
|
56
|
-
},
|
|
57
|
-
collapsed: {
|
|
58
|
-
width: 48,
|
|
59
|
-
transition: { duration: t.normal, ease: a.easeOut }
|
|
60
|
-
},
|
|
61
|
-
closed: {
|
|
62
|
-
width: 0,
|
|
63
|
-
transition: { duration: t.normal, ease: a.easeOut }
|
|
1
|
+
const i = /* @__PURE__ */ new Map();
|
|
2
|
+
function f() {
|
|
3
|
+
return typeof document > "u" ? null : document.body;
|
|
4
|
+
}
|
|
5
|
+
function u(c, n) {
|
|
6
|
+
const s = f();
|
|
7
|
+
if (!s) return;
|
|
8
|
+
const l = n.stack[n.stack.length - 1], r = l ? l.value : n.initial;
|
|
9
|
+
r ? s.style.setProperty(c, r) : s.style.removeProperty(c);
|
|
10
|
+
}
|
|
11
|
+
function a(c) {
|
|
12
|
+
const n = f();
|
|
13
|
+
if (!n) return () => {
|
|
14
|
+
};
|
|
15
|
+
const s = Symbol("body-style-lock"), l = Object.keys(c);
|
|
16
|
+
for (const t of l) {
|
|
17
|
+
const e = c[t];
|
|
18
|
+
if (e === void 0) continue;
|
|
19
|
+
let o = i.get(t);
|
|
20
|
+
o || (o = { initial: n.style.getPropertyValue(t), stack: [] }, i.set(t, o)), o.stack.push({ id: s, value: e }), u(t, o);
|
|
64
21
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
22
|
+
let r = !1;
|
|
23
|
+
return () => {
|
|
24
|
+
if (!r) {
|
|
25
|
+
r = !0;
|
|
26
|
+
for (const t of l) {
|
|
27
|
+
const e = i.get(t);
|
|
28
|
+
e && (e.stack = e.stack.filter((o) => o.id !== s), e.stack.length === 0 ? (u(t, e), i.delete(t)) : u(t, e));
|
|
29
|
+
}
|
|
71
30
|
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
initial: { opacity: 0, y: 10 },
|
|
75
|
-
animate: { opacity: 1, y: 0 },
|
|
76
|
-
exit: { opacity: 0, y: -10 },
|
|
77
|
-
transition: { duration: t.fast }
|
|
78
|
-
};
|
|
31
|
+
};
|
|
32
|
+
}
|
|
79
33
|
export {
|
|
80
|
-
|
|
81
|
-
a as easing,
|
|
82
|
-
n as fadeIn,
|
|
83
|
-
d as listContainer,
|
|
84
|
-
m as listItem,
|
|
85
|
-
y as panelResize,
|
|
86
|
-
p as popIn,
|
|
87
|
-
r as scaleIn,
|
|
88
|
-
l as sidebarVariants,
|
|
89
|
-
c as slideInFromBottom,
|
|
90
|
-
e as slideInFromLeft,
|
|
91
|
-
s as slideInFromRight,
|
|
92
|
-
o as slideInFromTop,
|
|
93
|
-
i as springConfig
|
|
34
|
+
a as lockBodyStyle
|
|
94
35
|
};
|
package/dist/index69.js
CHANGED
|
@@ -1,25 +1,94 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
const i = {
|
|
2
|
+
default: { stiffness: 300, damping: 30 },
|
|
3
|
+
gentle: { stiffness: 150, damping: 20 },
|
|
4
|
+
snappy: { stiffness: 500, damping: 25 },
|
|
5
|
+
bouncy: { stiffness: 400, damping: 10 }
|
|
6
|
+
}, t = {
|
|
7
|
+
instant: 0,
|
|
8
|
+
fast: 0.1,
|
|
9
|
+
normal: 0.2,
|
|
10
|
+
slow: 0.3,
|
|
11
|
+
slower: 0.5
|
|
12
|
+
}, a = {
|
|
13
|
+
easeOut: [0.33, 1, 0.68, 1],
|
|
14
|
+
easeIn: [0.32, 0, 0.67, 0],
|
|
15
|
+
easeInOut: [0.65, 0, 0.35, 1],
|
|
16
|
+
spring: [0.175, 0.885, 0.32, 1.275]
|
|
17
|
+
}, n = {
|
|
18
|
+
initial: { opacity: 0 },
|
|
19
|
+
animate: { opacity: 1 },
|
|
20
|
+
exit: { opacity: 0 },
|
|
21
|
+
transition: { duration: t.normal }
|
|
22
|
+
}, e = {
|
|
23
|
+
initial: { x: -20, opacity: 0 },
|
|
24
|
+
animate: { x: 0, opacity: 1 },
|
|
25
|
+
exit: { x: -20, opacity: 0 },
|
|
26
|
+
transition: { duration: t.normal, ease: a.easeOut }
|
|
27
|
+
}, s = {
|
|
28
|
+
initial: { x: 20, opacity: 0 },
|
|
29
|
+
animate: { x: 0, opacity: 1 },
|
|
30
|
+
exit: { x: 20, opacity: 0 },
|
|
31
|
+
transition: { duration: t.normal, ease: a.easeOut }
|
|
32
|
+
}, o = {
|
|
33
|
+
initial: { y: -20, opacity: 0 },
|
|
34
|
+
animate: { y: 0, opacity: 1 },
|
|
35
|
+
exit: { y: -20, opacity: 0 },
|
|
36
|
+
transition: { duration: t.normal, ease: a.easeOut }
|
|
37
|
+
}, c = {
|
|
38
|
+
initial: { y: 20, opacity: 0 },
|
|
39
|
+
animate: { y: 0, opacity: 1 },
|
|
40
|
+
exit: { y: 20, opacity: 0 },
|
|
41
|
+
transition: { duration: t.normal, ease: a.easeOut }
|
|
42
|
+
}, r = {
|
|
43
|
+
initial: { scale: 0.95, opacity: 0 },
|
|
44
|
+
animate: { scale: 1, opacity: 1 },
|
|
45
|
+
exit: { scale: 0.95, opacity: 0 },
|
|
46
|
+
transition: { duration: t.fast, ease: a.easeOut }
|
|
47
|
+
}, p = {
|
|
48
|
+
initial: { scale: 0.9, opacity: 0 },
|
|
49
|
+
animate: { scale: 1, opacity: 1 },
|
|
50
|
+
exit: { scale: 0.9, opacity: 0 },
|
|
51
|
+
transition: { type: "spring", ...i.bouncy }
|
|
52
|
+
}, l = {
|
|
53
|
+
open: {
|
|
54
|
+
width: 300,
|
|
55
|
+
transition: { duration: t.normal, ease: a.easeOut }
|
|
56
|
+
},
|
|
57
|
+
collapsed: {
|
|
58
|
+
width: 48,
|
|
59
|
+
transition: { duration: t.normal, ease: a.easeOut }
|
|
60
|
+
},
|
|
61
|
+
closed: {
|
|
62
|
+
width: 0,
|
|
63
|
+
transition: { duration: t.normal, ease: a.easeOut }
|
|
64
|
+
}
|
|
65
|
+
}, y = {
|
|
66
|
+
transition: { duration: t.fast, ease: a.easeOut }
|
|
67
|
+
}, d = {
|
|
68
|
+
animate: {
|
|
69
|
+
transition: {
|
|
70
|
+
staggerChildren: 0.05
|
|
13
71
|
}
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
72
|
+
}
|
|
73
|
+
}, m = {
|
|
74
|
+
initial: { opacity: 0, y: 10 },
|
|
75
|
+
animate: { opacity: 1, y: 0 },
|
|
76
|
+
exit: { opacity: 0, y: -10 },
|
|
77
|
+
transition: { duration: t.fast }
|
|
78
|
+
};
|
|
20
79
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
80
|
+
t as duration,
|
|
81
|
+
a as easing,
|
|
82
|
+
n as fadeIn,
|
|
83
|
+
d as listContainer,
|
|
84
|
+
m as listItem,
|
|
85
|
+
y as panelResize,
|
|
86
|
+
p as popIn,
|
|
87
|
+
r as scaleIn,
|
|
88
|
+
l as sidebarVariants,
|
|
89
|
+
c as slideInFromBottom,
|
|
90
|
+
e as slideInFromLeft,
|
|
91
|
+
s as slideInFromRight,
|
|
92
|
+
o as slideInFromTop,
|
|
93
|
+
i as springConfig
|
|
25
94
|
};
|
package/dist/index7.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { delegateEvents as A, template as f, insert as o, createComponent as c, effect as w, className as m, Dynamic as C, memo as S, setAttribute as k, use as _ } from "solid-js/web";
|
|
2
2
|
import { createSignal as $, onMount as I, onCleanup as L, Show as h, For as F } from "solid-js";
|
|
3
|
-
import { cn as v } from "./
|
|
3
|
+
import { cn as v } from "./index64.js";
|
|
4
4
|
var W = /* @__PURE__ */ f('<div class="absolute left-0 top-0 bottom-0 w-8 bg-gradient-to-r from-background to-transparent z-10 pointer-events-none">'), M = /* @__PURE__ */ f('<div class="absolute right-0 top-0 bottom-0 w-8 bg-gradient-to-l from-background to-transparent z-10 pointer-events-none">'), R = /* @__PURE__ */ f('<nav><div class="relative h-14"><div class="h-full flex items-center overflow-x-auto scrollbar-hide snap-x snap-mandatory"style=-webkit-overflow-scrolling:touch>'), j = /* @__PURE__ */ f("<span>"), q = /* @__PURE__ */ f('<div class="absolute bottom-0 left-1/2 -translate-x-1/2 w-8 h-0.5 bg-primary rounded-t">'), z = /* @__PURE__ */ f("<button type=button role=tab><div></div><span>");
|
|
5
5
|
function N(e) {
|
|
6
6
|
let n;
|
package/dist/index70.js
CHANGED
|
@@ -1,49 +1,25 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
return `${n} / ${o} / ${c} / ${a}`;
|
|
1
|
+
function e(o, n) {
|
|
2
|
+
return !(o.col + o.colSpan <= n.col || o.col >= n.col + n.colSpan || o.row + o.rowSpan <= n.row || o.row >= n.row + n.rowSpan);
|
|
4
3
|
}
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
return {
|
|
8
|
-
col: Math.max(0, Math.min(l - 1, i)),
|
|
9
|
-
row: Math.max(0, e)
|
|
10
|
-
};
|
|
4
|
+
function s(o, n, t) {
|
|
5
|
+
return n.some((c) => t && c.id === t ? !1 : e(o, c.position));
|
|
11
6
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
function w(o, n, t, c = 24) {
|
|
8
|
+
for (let r = 0; r < 100; r++)
|
|
9
|
+
for (let a = 0; a <= c - n; a++) {
|
|
10
|
+
const i = { col: a, row: r, colSpan: n, rowSpan: t };
|
|
11
|
+
if (!s(i, o))
|
|
12
|
+
return i;
|
|
13
|
+
}
|
|
14
|
+
return { col: 0, row: Math.max(0, ...o.map((r) => r.position.row + r.position.rowSpan)), colSpan: n, rowSpan: t };
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
rowDelta: Math.round(n / c)
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
function m(t, n, o, c = 24) {
|
|
23
|
-
const a = Math.max(0, Math.min(c - t.colSpan, t.col + n)), l = Math.max(0, t.row + o);
|
|
24
|
-
return {
|
|
25
|
-
...t,
|
|
26
|
-
col: a,
|
|
27
|
-
row: l
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
function S(t, n, o, c, a = 4, l = 4, i = 24) {
|
|
31
|
-
let { col: e, row: u, colSpan: r, rowSpan: h } = t;
|
|
32
|
-
if (n.includes("e") && (r = Math.max(a, Math.min(i - e, r + o))), n.includes("w")) {
|
|
33
|
-
const s = Math.max(0, e + o), M = e - s, w = r + M;
|
|
34
|
-
w >= a && (e = s, r = w);
|
|
35
|
-
}
|
|
36
|
-
if (n.includes("s") && (h = Math.max(l, h + c)), n.includes("n")) {
|
|
37
|
-
const s = Math.max(0, u + c), M = u - s, w = h + M;
|
|
38
|
-
w >= l && (u = s, h = w);
|
|
39
|
-
}
|
|
40
|
-
return { col: e, row: u, colSpan: r, rowSpan: h };
|
|
16
|
+
function f(o, n = 4, t = 4, c = 24) {
|
|
17
|
+
const l = Math.max(0, Math.min(c - 1, o.col)), r = Math.max(0, o.row), a = Math.max(n, Math.min(c - l, o.colSpan)), i = Math.max(t, o.rowSpan);
|
|
18
|
+
return { col: l, row: r, colSpan: a, rowSpan: i };
|
|
41
19
|
}
|
|
42
20
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
d as positionToGridArea,
|
|
48
|
-
f as snapToGrid
|
|
21
|
+
e as checkCollision,
|
|
22
|
+
f as constrainPosition,
|
|
23
|
+
w as findFreePosition,
|
|
24
|
+
s as hasCollision
|
|
49
25
|
};
|
package/dist/index71.js
CHANGED
|
@@ -1,17 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
{
|
|
4
|
-
];
|
|
5
|
-
function o() {
|
|
6
|
-
return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
1
|
+
function d(t) {
|
|
2
|
+
const n = t.row + 1, o = t.col + 1, c = n + t.rowSpan, a = o + t.colSpan;
|
|
3
|
+
return `${n} / ${o} / ${c} / ${a}`;
|
|
7
4
|
}
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
function f(t, n, o, c, a, l = 24) {
|
|
6
|
+
const i = Math.round((t - o.left) / c), e = Math.round((n - o.top) / a);
|
|
7
|
+
return {
|
|
8
|
+
col: Math.max(0, Math.min(l - 1, i)),
|
|
9
|
+
row: Math.max(0, e)
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function p(t, n = 4, o = 24) {
|
|
13
|
+
const c = n * (o - 1);
|
|
14
|
+
return { cellWidth: (t.width - c) / o, cellHeight: 40 };
|
|
15
|
+
}
|
|
16
|
+
function x(t, n, o, c) {
|
|
17
|
+
return {
|
|
18
|
+
colDelta: Math.round(t / o),
|
|
19
|
+
rowDelta: Math.round(n / c)
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function m(t, n, o, c = 24) {
|
|
23
|
+
const a = Math.max(0, Math.min(c - t.colSpan, t.col + n)), l = Math.max(0, t.row + o);
|
|
24
|
+
return {
|
|
25
|
+
...t,
|
|
26
|
+
col: a,
|
|
27
|
+
row: l
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function S(t, n, o, c, a = 4, l = 4, i = 24) {
|
|
31
|
+
let { col: e, row: u, colSpan: r, rowSpan: h } = t;
|
|
32
|
+
if (n.includes("e") && (r = Math.max(a, Math.min(i - e, r + o))), n.includes("w")) {
|
|
33
|
+
const s = Math.max(0, e + o), M = e - s, w = r + M;
|
|
34
|
+
w >= a && (e = s, r = w);
|
|
35
|
+
}
|
|
36
|
+
if (n.includes("s") && (h = Math.max(l, h + c)), n.includes("n")) {
|
|
37
|
+
const s = Math.max(0, u + c), M = u - s, w = h + M;
|
|
38
|
+
w >= l && (u = s, h = w);
|
|
39
|
+
}
|
|
40
|
+
return { col: e, row: u, colSpan: r, rowSpan: h };
|
|
12
41
|
}
|
|
13
42
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
43
|
+
m as applyDragDelta,
|
|
44
|
+
S as applyResizeDelta,
|
|
45
|
+
p as getGridCellSize,
|
|
46
|
+
x as pixelDeltaToGridDelta,
|
|
47
|
+
d as positionToGridArea,
|
|
48
|
+
f as snapToGrid
|
|
17
49
|
};
|
package/dist/index72.js
CHANGED
|
@@ -1,38 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function
|
|
6
|
-
return (()
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
const d = [
|
|
2
|
+
{ name: "light", displayName: "Light", type: "light" },
|
|
3
|
+
{ name: "dark", displayName: "Dark", type: "dark" }
|
|
4
|
+
];
|
|
5
|
+
function o() {
|
|
6
|
+
return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
7
|
+
}
|
|
8
|
+
function i(t) {
|
|
9
|
+
if (typeof document > "u") return;
|
|
10
|
+
const e = document.documentElement, n = t === "system" ? o() : t;
|
|
11
|
+
e.classList.remove("light", "dark"), e.classList.add(n), e.style.colorScheme = n;
|
|
10
12
|
}
|
|
11
|
-
const b = (s) => (() => {
|
|
12
|
-
var e = h(), t = e.firstChild, l = t.firstChild;
|
|
13
|
-
return r(t, a(c, {
|
|
14
|
-
class: "w-8 h-8 mb-2"
|
|
15
|
-
}), l), n(() => o(e, d("h-full", s.isEditMode && "pointer-events-none"))), e;
|
|
16
|
-
})(), w = (s) => (() => {
|
|
17
|
-
var e = p(), t = e.firstChild, l = t.firstChild;
|
|
18
|
-
return r(t, a(f, {
|
|
19
|
-
class: "w-8 h-8 mb-2"
|
|
20
|
-
}), l), n(() => o(e, d("h-full", s.isEditMode && "pointer-events-none"))), e;
|
|
21
|
-
})(), W = (s) => (() => {
|
|
22
|
-
var e = g(), t = e.firstChild, l = t.firstChild;
|
|
23
|
-
return r(t, a(u, {
|
|
24
|
-
class: "w-8 h-8 mb-2"
|
|
25
|
-
}), l), n(() => o(e, d("h-full", s.isEditMode && "pointer-events-none"))), e;
|
|
26
|
-
})(), E = (s) => (() => {
|
|
27
|
-
var e = v(), t = e.firstChild, l = t.firstChild;
|
|
28
|
-
return r(t, a(x, {
|
|
29
|
-
class: "w-8 h-8 mb-2"
|
|
30
|
-
}), l), n(() => o(e, d("h-full", s.isEditMode && "pointer-events-none"))), e;
|
|
31
|
-
})();
|
|
32
13
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
E as ShowcaseSidebarWidget,
|
|
37
|
-
S as SidebarWidget
|
|
14
|
+
i as applyTheme,
|
|
15
|
+
d as builtInThemes,
|
|
16
|
+
o as getSystemTheme
|
|
38
17
|
};
|