aptechka 0.4.8 → 0.4.9
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/lib/DragControls-CuGSxr1d.js +137 -0
- package/lib/DragControls-Dfbbq8Wb.cjs +1 -0
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +2 -2
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.js +2 -2
- package/lib/controls/Controls.d.ts +1 -1
- package/lib/controls/DragControls.d.ts +16 -0
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.d.ts +1 -0
- package/lib/controls/index.js +10 -9
- package/lib/{createStylesheet-BdXmIliB.js → createStylesheet-D6C3BPkl.js} +1 -1
- package/lib/{createStylesheet-DXVWlg2K.cjs → createStylesheet-W0b965g0.cjs} +1 -1
- package/lib/{createTheme-D0IoYkYN.js → createTheme-CHnsCgAr.js} +1 -1
- package/lib/{createTheme-B_W5dUY9.cjs → createTheme-Cfaw9UmV.cjs} +1 -1
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +3 -3
- package/lib/{index-B7uhBNcF.cjs → index-C_qv6rk4.cjs} +1 -1
- package/lib/{index-CSoExCvs.js → index-ilQWX_BM.js} +2 -2
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +2 -2
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +2 -2
- package/lib/scroll/ScrollElement.d.ts +2 -0
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +423 -411
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/slicer/index.cjs +1 -1
- package/lib/slicer/index.js +1 -1
- package/lib/string-DhgS_iFl.cjs +1 -0
- package/lib/{string-3lAkpJJP.js → string-f0Dnk0L1.js} +9 -5
- package/lib/{tags-B5dMXiBy.cjs → tags-CK7mk_EP.cjs} +1 -1
- package/lib/{tags-pG4smcDE.js → tags-D0zt3vue.js} +1 -1
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +2 -2
- package/lib/tweaker/index.cjs +1 -1
- package/lib/tweaker/index.js +3 -3
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +43 -42
- package/lib/utils/string.d.ts +1 -0
- package/package.json +2 -2
- package/lib/WheelControls-0zNcnAB3.cjs +0 -1
- package/lib/WheelControls-BAyRKpRZ.js +0 -97
- package/lib/string-vBu90jhV.cjs +0 -1
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
var x = (s, i, e) => {
|
|
2
|
-
if (!i.has(s))
|
|
3
|
-
throw TypeError("Cannot " + e);
|
|
4
|
-
};
|
|
5
|
-
var t = (s, i, e) => (x(s, i, "read from private field"), e ? e.call(s) : i.get(s)), n = (s, i, e) => {
|
|
6
|
-
if (i.has(s))
|
|
7
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
i instanceof WeakSet ? i.add(s) : i.set(s, e);
|
|
9
|
-
}, r = (s, i, e, l) => (x(s, i, "write to private field"), l ? l.call(s, e) : i.set(s, e), e);
|
|
10
|
-
import { i as c } from "./browser-0zX67oeU.js";
|
|
11
|
-
import { g as b } from "./dom-0S_WDL4g.js";
|
|
12
|
-
import { Notifier as M } from "./notifier/index.js";
|
|
13
|
-
var E;
|
|
14
|
-
class y {
|
|
15
|
-
constructor() {
|
|
16
|
-
n(this, E, new M());
|
|
17
|
-
}
|
|
18
|
-
get changeEvent() {
|
|
19
|
-
return t(this, E);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
E = new WeakMap();
|
|
23
|
-
var f, a, d, u;
|
|
24
|
-
class W extends y {
|
|
25
|
-
constructor(e) {
|
|
26
|
-
super();
|
|
27
|
-
n(this, f, null);
|
|
28
|
-
n(this, a, null);
|
|
29
|
-
n(this, d, "offsetHeight");
|
|
30
|
-
n(this, u, (e) => {
|
|
31
|
-
const l = e.shiftKey ? -1 : 1;
|
|
32
|
-
let h;
|
|
33
|
-
e.code === "Space" ? h = l * t(this, a)[t(this, d)] * 0.4 : e.code === "ArrowLeft" ? h = -1 * t(this, a)[t(this, d)] * 0.2 : e.code === "ArrowRight" ? h = 1 * t(this, a)[t(this, d)] * 0.2 : e.code === "ArrowUp" ? h = -1 * t(this, a)[t(this, d)] * 0.2 : e.code === "ArrowDown" ? h = 1 * t(this, a)[t(this, d)] * 0.2 : e.code === "PageUp" ? h = -1 * t(this, a)[t(this, d)] : e.code === "PageDown" ? h = 1 * t(this, a)[t(this, d)] : e.code === "Home" ? h = 0 : e.code === "End" && (h = t(this, d) === "offsetWidth" ? t(this, a).scrollWidth : t(this, a).scrollHeight), h && (e.stopPropagation(), this.changeEvent.notify(h));
|
|
34
|
-
});
|
|
35
|
-
c && (r(this, f, e != null && e.element && b(e.element) || window), r(this, a, t(this, f) instanceof HTMLElement ? t(this, f) : document.documentElement), this.dimension = e == null ? void 0 : e.dimension);
|
|
36
|
-
}
|
|
37
|
-
set dimension(e) {
|
|
38
|
-
r(this, d, e === "width" ? "offsetWidth" : "offsetHeight");
|
|
39
|
-
}
|
|
40
|
-
connect() {
|
|
41
|
-
c && t(this, f).addEventListener(
|
|
42
|
-
"keydown",
|
|
43
|
-
t(this, u)
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
disconnect() {
|
|
47
|
-
c && t(this, f).removeEventListener(
|
|
48
|
-
"keydown",
|
|
49
|
-
t(this, u)
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
f = new WeakMap(), a = new WeakMap(), d = new WeakMap(), u = new WeakMap();
|
|
54
|
-
var m, w, o, g;
|
|
55
|
-
class X extends y {
|
|
56
|
-
constructor(e) {
|
|
57
|
-
super();
|
|
58
|
-
n(this, m, null);
|
|
59
|
-
n(this, w, void 0);
|
|
60
|
-
n(this, o, void 0);
|
|
61
|
-
n(this, g, (e) => {
|
|
62
|
-
let l = 0;
|
|
63
|
-
if (!(this.axis === "x" && Math.abs(e.deltaY) > Math.abs(e.deltaX) || this.axis === "y" && Math.abs(e.deltaX) > Math.abs(e.deltaY)))
|
|
64
|
-
if (l = (this.axis === "max" ? Math.abs(e.deltaX) > Math.abs(e.deltaY) ? e.deltaX : e.deltaY : this.axis === "x" ? e.deltaX : e.deltaY) * this.speed, e.stopPropagation(), e.preventDefault(), this.debounce) {
|
|
65
|
-
const h = Date.now();
|
|
66
|
-
if (h - t(this, o) > 40 && (l = 100 * Math.sign(l)), r(this, o, h), Math.abs(l) < 100 || t(this, w))
|
|
67
|
-
return;
|
|
68
|
-
this.changeEvent.notify(l), r(this, w, setTimeout(() => {
|
|
69
|
-
r(this, w, void 0);
|
|
70
|
-
}, 80));
|
|
71
|
-
} else
|
|
72
|
-
this.changeEvent.notify(l);
|
|
73
|
-
});
|
|
74
|
-
this.axis = (e == null ? void 0 : e.axis) || "y", this.speed = (e == null ? void 0 : e.speed) || 1, this.debounce = (e == null ? void 0 : e.debounce) || !1, r(this, o, Date.now()), c && r(this, m, e != null && e.element && b(e.element) || window);
|
|
75
|
-
}
|
|
76
|
-
connect() {
|
|
77
|
-
c && t(this, m).addEventListener(
|
|
78
|
-
"wheel",
|
|
79
|
-
t(this, g),
|
|
80
|
-
{
|
|
81
|
-
passive: !1
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
disconnect() {
|
|
86
|
-
c && t(this, m).removeEventListener(
|
|
87
|
-
"wheel",
|
|
88
|
-
t(this, g)
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
m = new WeakMap(), w = new WeakMap(), o = new WeakMap(), g = new WeakMap();
|
|
93
|
-
export {
|
|
94
|
-
y as C,
|
|
95
|
-
W as K,
|
|
96
|
-
X as W
|
|
97
|
-
};
|
package/lib/string-vBu90jhV.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function u(e,t=!1){let a="";return e.split("-").forEach((n,o)=>{if(o===0&&!t)a+=n;else{const i=n[0],s=n.slice(1),l=i.toUpperCase()+s;a+=l}}),a}function f(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function p(e){return e.split("_").join(".")}function d(e){return/^[a-z\d]+$/i.test(e)?e.charAt(0).toUpperCase()+e.slice(1):e.replace(/([a-z\d])([a-z\d]*)/gi,(t,a,n)=>a.toUpperCase()+n.toLowerCase()).replace(/[^a-z\d]/gi,"")}function r(e,t){return e.slice(0,1)[t]()+e.slice(1)}function c(e,t=!1,a){return t?e.split(" ").map(n=>r(n,a)).join(" "):r(e,a)}function z(e,t=!1){return c(e,t,"toUpperCase")}function C(e,t=!1){return c(e,t,"toLowerCase")}function b(e,t="abcdefghijklmnopqrstuvwxyz0123456789"){const a=t.length,n=crypto.getRandomValues(new Uint8Array(e));let o="";for(let i=0;i<e;i++)o+=t.charAt(n[i]%a);return o}exports.camelToKebab=f;exports.capitalize=z;exports.generateId=b;exports.kebabToCamel=u;exports.snakeToDotted=p;exports.toPascalCase=d;exports.uncapitalize=C;
|