aptechka 0.74.2 → 0.76.0
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/element-linked-store/index.cjs +1 -1
- package/lib/element-linked-store/index.js +38 -29
- package/lib/en3/{en3.d.ts → En3.d.ts} +1 -5
- package/lib/en3/En3View.d.ts +2 -1
- package/lib/en3/index.cjs +2 -2
- package/lib/en3/index.d.ts +1 -1
- package/lib/en3/index.js +144 -253
- package/lib/en3/utils/getCurrentViewport.d.ts +2 -1
- package/lib/{layout-DpZo-I0y.js → layout-BSMtwCga.js} +2 -2
- package/lib/layout-box/index.js +1 -1
- package/lib/morph/Morph.d.ts +4 -2
- package/lib/morph/MorphParamsDependent.d.ts +5 -0
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +500 -420
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +1 -1
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +1 -1
- package/lib/scroll/{ScrollbarElement.d.ts → ScrollScrollbarElement.d.ts} +2 -2
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.d.ts +1 -1
- package/lib/scroll/index.js +4 -4
- package/lib/{scroll-DPkCFTxg.js → scroll-DNGJVxa2.js} +1 -1
- package/lib/scroll-kit/ScrollRegionElement.d.ts +38 -0
- package/lib/{custom-scrollbar/index.d.ts → scroll-kit/ScrollbarElement.d.ts} +2 -2
- package/lib/scroll-kit/SmoothScrollElement.d.ts +16 -0
- package/lib/scroll-kit/index.cjs +1 -0
- package/lib/scroll-kit/index.d.ts +3 -0
- package/lib/scroll-kit/index.js +382 -0
- package/lib/url-CBKXmNOi.js +59 -0
- package/lib/url-Dns-01WU.cjs +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +3 -3
- package/lib/utils/url.d.ts +2 -1
- package/package.json +9 -9
- package/lib/custom-scrollbar/index.cjs +0 -1
- package/lib/custom-scrollbar/index.js +0 -100
- package/lib/en3/En3Raycaster.d.ts +0 -20
- package/lib/url-CFnGU6md.js +0 -52
- package/lib/url-DGcX4fGV.cjs +0 -1
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
var v = (o) => {
|
|
2
|
-
throw TypeError(o);
|
|
3
|
-
};
|
|
4
|
-
var W = (o, n, e) => n.has(o) || v("Cannot " + e);
|
|
5
|
-
var t = (o, n, e) => (W(o, n, "read from private field"), e ? e.call(o) : n.get(o)), r = (o, n, e) => n.has(o) ? v("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(o) : n.set(o, e), a = (o, n, e, s) => (W(o, n, "write to private field"), s ? s.call(o, e) : n.set(o, e), e);
|
|
6
|
-
import { i as k, a as w } from "../index-Bv9zgfdb.js";
|
|
7
|
-
import { f as P } from "../dom-CVWzyXPH.js";
|
|
8
|
-
import { s as C } from "../gestures-CcXV6fCp.js";
|
|
9
|
-
import "construct-style-sheets-polyfill";
|
|
10
|
-
import { ticker as x } from "../ticker/index.js";
|
|
11
|
-
var i, h, b, u, l, p, c, H, z, T, E, L, g, f, y;
|
|
12
|
-
class q extends HTMLElement {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
r(this, c);
|
|
16
|
-
r(this, i, null);
|
|
17
|
-
r(this, h, null);
|
|
18
|
-
r(this, b, 0);
|
|
19
|
-
r(this, u, 0);
|
|
20
|
-
r(this, l, !1);
|
|
21
|
-
r(this, p);
|
|
22
|
-
r(this, E, () => {
|
|
23
|
-
this.classList.add("active"), clearTimeout(t(this, p));
|
|
24
|
-
const s = t(this, c, H) / t(this, u) * t(this, b);
|
|
25
|
-
t(this, l) ? t(this, h).style.transform = `translate3d(${s}px, 0px, 0px)` : t(this, h).style.transform = `translate3d(0px, ${s}px, 0px)`, a(this, p, setTimeout(() => {
|
|
26
|
-
this.classList.remove("active");
|
|
27
|
-
}, 1e3));
|
|
28
|
-
});
|
|
29
|
-
r(this, L, () => {
|
|
30
|
-
const e = t(this, l) ? this.offsetWidth : this.offsetHeight, s = t(this, c, z), m = t(this, c, T);
|
|
31
|
-
a(this, u, s - m);
|
|
32
|
-
let d = e * e / (t(this, u) + e);
|
|
33
|
-
d = Math.max(d, 30), t(this, l) ? (t(this, h).style.width = d + "px", t(this, h).style.height = "100%") : (t(this, h).style.width = "100%", t(this, h).style.height = d + "px"), a(this, b, e - d), s <= m ? this.style.display = "none" : this.style.display = "block";
|
|
34
|
-
});
|
|
35
|
-
r(this, g, (e) => {
|
|
36
|
-
document.documentElement.classList.add("grabbing");
|
|
37
|
-
const s = t(this, c, H), m = t(this, l) ? e.x : e.y;
|
|
38
|
-
C(
|
|
39
|
-
(d) => {
|
|
40
|
-
const M = t(this, u) / t(this, b), S = (t(this, l) ? d.x - m : d.y - m) * M;
|
|
41
|
-
t(this, l) ? t(this, i).scroll({
|
|
42
|
-
left: s + S,
|
|
43
|
-
behavior: "instant"
|
|
44
|
-
}) : t(this, i).scroll({
|
|
45
|
-
top: s + S,
|
|
46
|
-
behavior: "instant"
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
() => {
|
|
50
|
-
document.documentElement.classList.remove("grabbing");
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
});
|
|
54
|
-
r(this, f, () => {
|
|
55
|
-
t(this, L).call(this);
|
|
56
|
-
});
|
|
57
|
-
r(this, y, (e) => {
|
|
58
|
-
e.isIntersecting ? (x.subscribe(t(this, f), { maxFPS: 5 }), t(this, f).call(this)) : x.unsubscribe(t(this, f));
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
connectedCallback() {
|
|
62
|
-
const e = this.getAttribute("data-scroll");
|
|
63
|
-
a(this, l, this.hasAttribute("horisontal"));
|
|
64
|
-
let s = null;
|
|
65
|
-
e && (e === "parent" ? s = this.parentElement : s = document.querySelector(e)), s || (s = P(this), s === document.body && (s = window));
|
|
66
|
-
const m = this.querySelector("[data-thumb]");
|
|
67
|
-
s && m && (a(this, i, s), a(this, h, m), t(this, i).addEventListener("scroll", t(this, E)), t(this, h).addEventListener("pointerdown", t(this, g)), w.subscribe(
|
|
68
|
-
this.parentElement === document.body ? this : this.parentElement,
|
|
69
|
-
t(this, y)
|
|
70
|
-
));
|
|
71
|
-
}
|
|
72
|
-
disconnectedCallback() {
|
|
73
|
-
t(this, i).removeEventListener("scroll", t(this, E)), t(this, h).removeEventListener("pointerdown", t(this, g)), clearTimeout(t(this, p)), w.unsubscribe(t(this, y)), x.unsubscribe(t(this, f));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
i = new WeakMap(), h = new WeakMap(), b = new WeakMap(), u = new WeakMap(), l = new WeakMap(), p = new WeakMap(), c = new WeakSet(), H = function() {
|
|
77
|
-
return t(this, i) instanceof HTMLElement ? t(this, l) ? t(this, i).scrollLeft : t(this, i).scrollTop : t(this, l) ? t(this, i).scrollX : t(this, i).scrollY;
|
|
78
|
-
}, z = function() {
|
|
79
|
-
return t(this, i) instanceof HTMLElement ? t(this, l) ? t(this, i).scrollWidth : t(this, i).scrollHeight : t(this, l) ? Math.max(
|
|
80
|
-
document.body.scrollWidth,
|
|
81
|
-
document.documentElement.scrollWidth,
|
|
82
|
-
document.body.offsetWidth,
|
|
83
|
-
document.documentElement.offsetWidth,
|
|
84
|
-
document.body.clientWidth,
|
|
85
|
-
document.documentElement.clientWidth
|
|
86
|
-
) : Math.max(
|
|
87
|
-
document.body.scrollHeight,
|
|
88
|
-
document.documentElement.scrollHeight,
|
|
89
|
-
document.body.offsetHeight,
|
|
90
|
-
document.documentElement.offsetHeight,
|
|
91
|
-
document.body.clientHeight,
|
|
92
|
-
document.documentElement.clientHeight
|
|
93
|
-
);
|
|
94
|
-
}, T = function() {
|
|
95
|
-
return t(this, i) instanceof HTMLElement ? t(this, l) ? t(this, i).offsetWidth : t(this, i).offsetHeight : t(this, l) ? innerWidth : innerHeight;
|
|
96
|
-
}, E = new WeakMap(), L = new WeakMap(), g = new WeakMap(), f = new WeakMap(), y = new WeakMap();
|
|
97
|
-
k && !customElements.get("e-custom-scrollbar") && customElements.define("e-custom-scrollbar", q);
|
|
98
|
-
export {
|
|
99
|
-
q as CustomScrollbarElement
|
|
100
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Intersection, Object3D } from 'three';
|
|
2
|
-
export type En3RaycasterEventType = 'pointerDown' | 'pointerUp' | 'pointerMove' | 'pointerLeave' | 'pointerEnter' | 'pointerMove';
|
|
3
|
-
export type En3RaycasterEvent = {
|
|
4
|
-
type: En3RaycasterEventType;
|
|
5
|
-
originalEvent: PointerEvent;
|
|
6
|
-
target: Object3D;
|
|
7
|
-
} & Intersection<Object3D>;
|
|
8
|
-
export interface En3RaycasterOptions {
|
|
9
|
-
targetName?: string;
|
|
10
|
-
eventDispatcher?: Object3D;
|
|
11
|
-
propagation?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export type En3RaycasterCallback = (event: En3RaycasterEvent) => void;
|
|
14
|
-
export declare class En3Raycaster {
|
|
15
|
-
#private;
|
|
16
|
-
constructor();
|
|
17
|
-
destroy(): void;
|
|
18
|
-
add(object3D: Object3D, options?: En3RaycasterOptions): void;
|
|
19
|
-
remove(object3D: Object3D): void;
|
|
20
|
-
}
|
package/lib/url-CFnGU6md.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
var u = Object.defineProperty, P = Object.defineProperties;
|
|
2
|
-
var S = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var o = Object.getOwnPropertySymbols;
|
|
4
|
-
var p = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var i = (t, s, a) => s in t ? u(t, s, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[s] = a, f = (t, s) => {
|
|
6
|
-
for (var a in s || (s = {}))
|
|
7
|
-
p.call(s, a) && i(t, a, s[a]);
|
|
8
|
-
if (o)
|
|
9
|
-
for (var a of o(s))
|
|
10
|
-
y.call(s, a) && i(t, a, s[a]);
|
|
11
|
-
return t;
|
|
12
|
-
}, m = (t, s) => P(t, S(s));
|
|
13
|
-
function $(t, { base: s = "", trailingSlash: a = !1 } = {}) {
|
|
14
|
-
s = s.endsWith("/") ? s.slice(0, -1) : s, t = t.replace(s, ""), t.startsWith("/") && (t = t.slice(1));
|
|
15
|
-
const e = t.split("#"), n = e[0].split("?");
|
|
16
|
-
let r = n[0].startsWith("/") ? n[0] : "/" + n[0];
|
|
17
|
-
a ? r = !r.endsWith("/") && r !== "/" ? r + "/" : r : r = r.endsWith("/") && r !== "/" ? r.slice(0, -1) : r;
|
|
18
|
-
const c = s + r, h = (n == null ? void 0 : n[1]) || "", l = e == null ? void 0 : e[1], W = `${c}${h ? "?" + h : ""}`;
|
|
19
|
-
return {
|
|
20
|
-
leaf: r,
|
|
21
|
-
pathname: c,
|
|
22
|
-
parameters: h,
|
|
23
|
-
hash: l,
|
|
24
|
-
path: W
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
function g(t = "/") {
|
|
28
|
-
return t.endsWith("/") || (t += "/"), t.startsWith("/") || (t += "/"), t;
|
|
29
|
-
}
|
|
30
|
-
function w(t) {
|
|
31
|
-
if (t.action === "none")
|
|
32
|
-
return;
|
|
33
|
-
const s = t == null ? void 0 : t.searchParameters, a = t.hash ? t.hash.startsWith("#") ? t.hash : "#" + t.hash : "", e = s ? s.startsWith("?") ? s : "?" + s : "", n = `${t.pathname}${e}${a}`, r = m(f({}, t.state), { path: n });
|
|
34
|
-
t.action === "push" ? history.pushState(r, "", n) : t.action === "replace" && history.replaceState(r, "", n);
|
|
35
|
-
}
|
|
36
|
-
function L(t) {
|
|
37
|
-
const s = new URLSearchParams(t), a = {};
|
|
38
|
-
for (const [e, n] of s)
|
|
39
|
-
a[e] = n;
|
|
40
|
-
return a;
|
|
41
|
-
}
|
|
42
|
-
function R(t, s) {
|
|
43
|
-
const a = new URL(location.href), e = (s == null ? void 0 : s.toString()) || "";
|
|
44
|
-
a.searchParams.set(t, e), history.replaceState(history.state, "", a.href);
|
|
45
|
-
}
|
|
46
|
-
export {
|
|
47
|
-
w as c,
|
|
48
|
-
g as n,
|
|
49
|
-
L as p,
|
|
50
|
-
$ as s,
|
|
51
|
-
R as u
|
|
52
|
-
};
|
package/lib/url-DGcX4fGV.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var u=Object.defineProperty,S=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var p=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var o=(t,s,r)=>s in t?u(t,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[s]=r,f=(t,s)=>{for(var r in s||(s={}))p.call(s,r)&&o(t,r,s[r]);if(i)for(var r of i(s))y.call(s,r)&&o(t,r,s[r]);return t},m=(t,s)=>S(t,W(s));function d(t,{base:s="",trailingSlash:r=!1}={}){s=s.endsWith("/")?s.slice(0,-1):s,t=t.replace(s,""),t.startsWith("/")&&(t=t.slice(1));const n=t.split("#"),e=n[0].split("?");let a=e[0].startsWith("/")?e[0]:"/"+e[0];r?a=!a.endsWith("/")&&a!=="/"?a+"/":a:a=a.endsWith("/")&&a!=="/"?a.slice(0,-1):a;const c=s+a,h=(e==null?void 0:e[1])||"",l=n==null?void 0:n[1],P=`${c}${h?"?"+h:""}`;return{leaf:a,pathname:c,parameters:h,hash:l,path:P}}function $(t="/"){return t.endsWith("/")||(t+="/"),t.startsWith("/")||(t+="/"),t}function g(t){if(t.action==="none")return;const s=t==null?void 0:t.searchParameters,r=t.hash?t.hash.startsWith("#")?t.hash:"#"+t.hash:"",n=s?s.startsWith("?")?s:"?"+s:"",e=`${t.pathname}${n}${r}`,a=m(f({},t.state),{path:e});t.action==="push"?history.pushState(a,"",e):t.action==="replace"&&history.replaceState(a,"",e)}function w(t){const s=new URLSearchParams(t),r={};for(const[n,e]of s)r[n]=e;return r}function z(t,s){const r=new URL(location.href),n=(s==null?void 0:s.toString())||"";r.searchParams.set(t,n),history.replaceState(history.state,"",r.href)}exports.changeHistory=g;exports.normalizeBase=$;exports.parseSearchParameters=w;exports.splitPath=d;exports.updateSearchParameter=z;
|