aptechka 0.13.1 → 0.15.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/{Animation-De9aUv3b.cjs → Animation-DI864E0i.cjs} +1 -1
- package/lib/{Animation-NAGXiFv5.js → Animation-w6BLTCum.js} +1 -1
- package/lib/{Damped-DbJKrUIf.js → Damped-DEHDEq-b.js} +1 -1
- package/lib/{Damped-DYJ6Z0xo.cjs → Damped-ipnDc0iX.cjs} +1 -1
- package/lib/Store-CDb6RMce.cjs +1 -0
- package/lib/Store-OTdcl6SX.js +134 -0
- package/lib/{Tweened-BkkD9s4n.cjs → Tweened-B1TfANfR.cjs} +1 -1
- package/lib/{Tweened-DOSHLCZa.js → Tweened-C52xXDLY.js} +1 -1
- package/lib/{Viewport-Cv4TRGiv.cjs → Viewport-BDPsnAF4.cjs} +1 -1
- package/lib/{Viewport-B55BvLsV.js → Viewport-taEXS8Uv.js} +1 -1
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +13 -13
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +36 -39
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +3 -3
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +4 -4
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/{dom-P5QbAASX.js → dom-0S_WDL4g.js} +2 -2
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +848 -122
- package/lib/element-resizer/index.js +8 -8
- package/lib/en3/index.cjs +8 -1
- package/lib/en3/index.js +372 -4
- package/lib/file-BEr-o55N.js +31 -0
- package/lib/file-C9BbxzVU.cjs +1 -0
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/intersector/index.js +7 -7
- package/lib/jss-CjccJC-K.js +21 -0
- package/lib/jss-GJLvaNfT.cjs +1 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/layout-box/index.js +14 -14
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/need_redo_tweaker/index.cjs +18 -0
- package/lib/need_redo_tweaker/index.js +1337 -0
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +3 -3
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +68 -76
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +577 -610
- package/lib/scroll-entries/index.js +15 -15
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +1 -1
- package/lib/slicer/index.cjs +5 -5
- package/lib/slicer/index.js +55 -86
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +154 -62
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +71 -37
- package/lib/ticker/index.js +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +67 -65
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/package.json +7 -72
- package/lib/Composed-C_4slJQ6.cjs +0 -1
- package/lib/Composed-CfWa-69I.js +0 -31
- package/lib/Derived-BIBU-y7Z.cjs +0 -1
- package/lib/Derived-Vo_RsJfi.js +0 -23
- package/lib/SourceManager-B6wZpXUZ.js +0 -104
- package/lib/SourceManager-CfHcGLUa.cjs +0 -1
- package/lib/Store-C46i0nvr.js +0 -137
- package/lib/Store-npaZHvX4.cjs +0 -1
- package/lib/accordion/index.cjs +0 -1
- package/lib/accordion/index.js +0 -167
- package/lib/checkbox/index.cjs +0 -1
- package/lib/checkbox/index.js +0 -112
- package/lib/createStylesheet-COAZH1Mw.js +0 -8
- package/lib/createStylesheet-Csfmh-MH.cjs +0 -1
- package/lib/createTheme-CHnsCgAr.js +0 -15
- package/lib/createTheme-Cfaw9UmV.cjs +0 -1
- package/lib/en3/helpers/index.cjs +0 -1
- package/lib/en3/helpers/index.js +0 -1870
- package/lib/en3/libs/index.cjs +0 -1
- package/lib/en3/libs/index.js +0 -200
- package/lib/en3/loaders/index.cjs +0 -1
- package/lib/en3/loaders/index.js +0 -1742
- package/lib/en3/misc/index.cjs +0 -10
- package/lib/en3/misc/index.js +0 -110
- package/lib/en3/utils/index.cjs +0 -1
- package/lib/en3/utils/index.js +0 -20
- package/lib/en3-C1fLmsjs.cjs +0 -8
- package/lib/en3-x-Ki30MY.js +0 -344
- package/lib/events-BGwqaxVW.cjs +0 -1
- package/lib/events-CJTUMSLU.js +0 -20
- package/lib/file-EevnUtRj.cjs +0 -1
- package/lib/file-lxi_oXJf.js +0 -13
- package/lib/index-BuAuBz2_.cjs +0 -9
- package/lib/index-CenF0JbH.js +0 -261
- package/lib/modal/index.cjs +0 -1
- package/lib/modal/index.js +0 -133
- package/lib/select/index.cjs +0 -1
- package/lib/select/index.js +0 -7
- package/lib/tags-6_ETuR75.cjs +0 -1
- package/lib/tags-BL3kQp9o.js +0 -833
- package/lib/theme/index.cjs +0 -1
- package/lib/theme/index.js +0 -25
- package/lib/traverseMaterials-CD_3_56D.cjs +0 -1
- package/lib/traverseMaterials-mGC2_FkG.js +0 -29
- package/lib/tweaker/index.cjs +0 -10
- package/lib/tweaker/index.js +0 -989
package/lib/store/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var g=r=>{throw TypeError(r)};var v=(r,s,e)=>s.has(r)||g("Cannot "+e);var c=(r,s,e)=>(v(r,s,"read from private field"),e?e.call(r):s.get(r)),n=(r,s,e)=>s.has(r)?g("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,e),h=(r,s,e,t)=>(v(r,s,"write to private field"),t?t.call(r,e):s.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../Store-CDb6RMce.cjs"),m=require("../function-MthRj-GJ.cjs");var d;class D extends i.Store{constructor(e,t,u){super(null,u);n(this,d);h(this,d,e.subscribe(a=>{this.current=t(a.current)}))}close(){super.close(),c(this,d).call(this)}}d=new WeakMap;var b;class R extends i.Store{constructor(e,t,u){super(null,u);n(this,b);h(this,b,e.subscribe(a=>{this.current=a.current.map((p,x,y)=>t(p,x,y))}))}close(){super.close(),c(this,b).call(this)}}b=new WeakMap;var f,o,l;class C extends i.Store{constructor(e,t,u){super(e,u);n(this,f);n(this,o);n(this,l,0);h(this,o,new i.Store(!1)),h(this,f,t),u!=null&&u.manualControl||this.refetch()}get isPending(){return c(this,o)}refetch(){c(this,o).current=!0,h(this,l,c(this,l)+1);const e=c(this,l);c(this,f).call(this).then(t=>{e===c(this,l)&&(c(this,o).current=!1,this.current=t)})}}f=new WeakMap,o=new WeakMap,l=new WeakMap;var S;class P extends i.Store{constructor(e,t,u){super(null,u);n(this,S,[]);const a=m.debounce(()=>{this.current=t()},0);e.forEach(p=>{c(this,S).push(p.subscribe(()=>{a()}))})}close(){super.close(),c(this,S).forEach(e=>e())}}S=new WeakMap;exports.Store=i.Store;exports.activeStores=i.activeStores;exports.storeRegistry=i.storeRegistry;exports.Composed=P;exports.Derived=D;exports.DerivedArray=R;exports.Resource=C;
|
package/lib/store/index.js
CHANGED
|
@@ -1,53 +1,87 @@
|
|
|
1
|
-
var
|
|
1
|
+
var x = (e) => {
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { S as
|
|
7
|
-
import { a as
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
this.current = x.current.map((p, b, g) => c(p, b, g));
|
|
4
|
+
var g = (e, r, s) => r.has(e) || x("Cannot " + s);
|
|
5
|
+
var c = (e, r, s) => (g(e, r, "read from private field"), s ? s.call(e) : r.get(e)), i = (e, r, s) => r.has(e) ? x("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, s), h = (e, r, s, t) => (g(e, r, "write to private field"), t ? t.call(e, s) : r.set(e, s), s);
|
|
6
|
+
import { S as a } from "../Store-OTdcl6SX.js";
|
|
7
|
+
import { a as k, s as q } from "../Store-OTdcl6SX.js";
|
|
8
|
+
import { d as y } from "../function-C10DGppn.js";
|
|
9
|
+
var d;
|
|
10
|
+
class I extends a {
|
|
11
|
+
constructor(s, t, u) {
|
|
12
|
+
super(null, u);
|
|
13
|
+
i(this, d);
|
|
14
|
+
h(this, d, s.subscribe((l) => {
|
|
15
|
+
this.current = t(l.current);
|
|
17
16
|
}));
|
|
18
17
|
}
|
|
19
18
|
close() {
|
|
20
|
-
super.close(),
|
|
19
|
+
super.close(), c(this, d).call(this);
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
|
-
|
|
24
|
-
var f
|
|
25
|
-
class
|
|
26
|
-
constructor(
|
|
27
|
-
super(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
d = new WeakMap();
|
|
23
|
+
var f;
|
|
24
|
+
class P extends a {
|
|
25
|
+
constructor(s, t, u) {
|
|
26
|
+
super(null, u);
|
|
27
|
+
i(this, f);
|
|
28
|
+
h(this, f, s.subscribe((l) => {
|
|
29
|
+
this.current = l.current.map((m, v, S) => t(m, v, S));
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
close() {
|
|
33
|
+
super.close(), c(this, f).call(this);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
f = new WeakMap();
|
|
37
|
+
var b, n, o;
|
|
38
|
+
class R extends a {
|
|
39
|
+
constructor(s, t, u) {
|
|
40
|
+
super(s, u);
|
|
41
|
+
i(this, b);
|
|
42
|
+
i(this, n);
|
|
43
|
+
i(this, o, 0);
|
|
44
|
+
h(this, n, new a(!1)), h(this, b, t), u != null && u.manualControl || this.refetch();
|
|
32
45
|
}
|
|
33
46
|
get isPending() {
|
|
34
|
-
return
|
|
47
|
+
return c(this, n);
|
|
35
48
|
}
|
|
36
49
|
refetch() {
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
50
|
+
c(this, n).current = !0, h(this, o, c(this, o) + 1);
|
|
51
|
+
const s = c(this, o);
|
|
52
|
+
c(this, b).call(this).then((t) => {
|
|
53
|
+
s === c(this, o) && (c(this, n).current = !1, this.current = t);
|
|
41
54
|
});
|
|
42
55
|
}
|
|
43
56
|
}
|
|
44
|
-
|
|
57
|
+
b = new WeakMap(), n = new WeakMap(), o = new WeakMap();
|
|
58
|
+
var p;
|
|
59
|
+
class w extends a {
|
|
60
|
+
constructor(s, t, u) {
|
|
61
|
+
super(null, u);
|
|
62
|
+
i(this, p, []);
|
|
63
|
+
const l = y(() => {
|
|
64
|
+
this.current = t();
|
|
65
|
+
}, 0);
|
|
66
|
+
s.forEach((m) => {
|
|
67
|
+
c(this, p).push(
|
|
68
|
+
m.subscribe(() => {
|
|
69
|
+
l();
|
|
70
|
+
})
|
|
71
|
+
);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
close() {
|
|
75
|
+
super.close(), c(this, p).forEach((s) => s());
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
p = new WeakMap();
|
|
45
79
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
80
|
+
w as Composed,
|
|
81
|
+
I as Derived,
|
|
82
|
+
P as DerivedArray,
|
|
83
|
+
R as Resource,
|
|
84
|
+
a as Store,
|
|
85
|
+
k as activeStores,
|
|
86
|
+
q as storeRegistry
|
|
53
87
|
};
|
package/lib/ticker/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var q = (r) => {
|
|
|
4
4
|
var L = (r, i, s) => i.has(r) || q("Cannot " + s);
|
|
5
5
|
var e = (r, i, s) => (L(r, i, "read from private field"), s ? s.call(r) : i.get(r)), h = (r, i, s) => i.has(r) ? q("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(r) : i.set(r, s), t = (r, i, s, n) => (L(r, i, "write to private field"), n ? n.call(r, s) : i.set(r, s), s), A = (r, i, s) => (L(r, i, "access private method"), s);
|
|
6
6
|
import { i as S } from "../browser-0zX67oeU.js";
|
|
7
|
-
import {
|
|
7
|
+
import { g as P } from "../dom-0S_WDL4g.js";
|
|
8
8
|
var o, u, v, m, b, l, g, F, E;
|
|
9
9
|
class V {
|
|
10
10
|
constructor(i, s) {
|
package/lib/utils/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../attributes-Bf2svn4j.cjs"),y=require("../browser-CpzFX2xg.cjs"),l=require("../canvas-CU5Xjahf.cjs"),d=require("../coordinates-D8Np3cPD.cjs"),p=require("../dom-JBOkFLTh.cjs"),a=require("../easings-DsS5-Kqc.cjs"),f=require("../file-C9BbxzVU.cjs"),C=require("../function-MthRj-GJ.cjs"),I=require("../gestures-DHLrn6Q8.cjs"),O=require("../jss-GJLvaNfT.cjs"),g=require("../layout-8ryRAMGJ.cjs"),s=require("../math-GDWEqu7y.cjs"),m=require("../polyfills-CM4SCDTt.cjs"),r=require("../object-CCiXnER2.cjs"),u=require("../string-DhgS_iFl.cjs"),S=require("../style-At6aDoqG.cjs"),h=require("../url-C3dWnJQg.cjs");function T(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function P(t,e){const n=t.length;e=e%n;const i=new Array(n);for(let o=0;o<n;o++){const c=(o+e)%n;i[c]=t[o]}return i}function v(t,e=2){if(!+t)return"0 Bytes";const n=1024,i=e<0?0:e,o=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],c=Math.floor(Math.log(t)/Math.log(n));return`${parseFloat((t/Math.pow(n,c)).toFixed(i))} ${o[c]}`}function w(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function x(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function E(t,e){const n=t.styleMap.get(e);if(n){const i=n.toString();return i.startsWith("var")?E(t,i.slice(4,-1)):i}}function q(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(i=>{i instanceof CSSStyleRule&&i.selectorText===":root"&&t.forEach(o=>{const c=E(i,o);c&&(e[o]=c)})})}),t.forEach(n=>{e[n]||console.warn(`variable named ${n} not found`)}),e}function B(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function Q(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}function D(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}exports.parseAttribute=b.parseAttribute;exports.parseAttributeValue=b.parseAttributeValue;exports.isBrowser=y.isBrowser;exports.contain=l.contain;exports.cover=l.cover;exports.fixPosition=l.fixPosition;exports.measureText=l.measureText;exports.getPointerPosition=d.getPointerPosition;exports.normalize=d.normalize;exports.screenToCartesian=d.screenToCartesian;exports.findParentElement=p.findParentElement;exports.findScrollParentElement=p.findScrollParentElement;exports.getAllParentElements=p.getAllParentElements;exports.getElement=p.getElement;exports.easeInCubic=a.easeInCubic;exports.easeInExpo=a.easeInExpo;exports.easeInOutCubic=a.easeInOutCubic;exports.easeInOutExpo=a.easeInOutExpo;exports.easeInOutQuad=a.easeInOutQuad;exports.easeInOutQuart=a.easeInOutQuart;exports.easeInOutQuint=a.easeInOutQuint;exports.easeInQuad=a.easeInQuad;exports.easeInQuart=a.easeInQuart;exports.easeInQuint=a.easeInQuint;exports.easeOutCubic=a.easeOutCubic;exports.easeOutExpo=a.easeOutExpo;exports.easeOutQuad=a.easeOutQuad;exports.easeOutQuart=a.easeOutQuart;exports.easeOutQuint=a.easeOutQuint;exports.linear=a.linear;exports.createJSONAndSave=f.createJSONAndSave;exports.dispatchBeforeSizeChangeEvent=f.dispatchBeforeSizeChangeEvent;exports.dispatchSizeChangeEvent=f.dispatchSizeChangeEvent;exports.debounce=C.debounce;exports.throttle=C.throttle;exports.setupDrag=I.setupDrag;exports.createStylesheet=O.createStylesheet;exports.styleToString=O.styleToString;exports.getCumulativeOffsetLeft=g.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=g.getCumulativeOffsetTop;exports.getCumulativePosition=g.getCumulativePosition;exports.calculateDistance=s.calculateDistance;exports.calculateDistanceWithRadius=s.calculateDistanceWithRadius;exports.clamp=s.clamp;exports.damp=s.damp;exports.lerp=s.lerp;exports.mapRange=s.mapRange;exports.round=s.round;exports.smootherstep=s.smootherstep;exports.smoothstep=s.smoothstep;exports.step=s.step;exports.nullishCoalescing=m.nullishCoalescing;exports.preciseNumber=m.preciseNumber;exports.roundNumberTo=m.roundNumberTo;exports.toStep=m.toStep;exports.cloneDeep=r.cloneDeep;exports.compareObjects=r.compareObjects;exports.isESClass=r.isESClass;exports.isNullish=r.isNullish;exports.isObject=r.isObject;exports.mergeDeep=r.mergeDeep;exports.mixin=r.mixin;exports.omit=r.omit;exports.pick=r.pick;exports.camelToKebab=u.camelToKebab;exports.capitalize=u.capitalize;exports.generateId=u.generateId;exports.isUppercase=u.isUppercase;exports.kebabToCamel=u.kebabToCamel;exports.snakeToDotted=u.snakeToDotted;exports.toPascalCase=u.toPascalCase;exports.uncapitalize=u.uncapitalize;exports.getElementTransitionDurationMS=S.getElementTransitionDurationMS;exports.getElementTransitionDurationS=S.getElementTransitionDurationS;exports.changeHistory=h.changeHistory;exports.normalizeBase=h.normalizeBase;exports.splitPath=h.splitPath;exports.decode=Q;exports.dotCircleCollision=x;exports.dotRectCollision=w;exports.encode=B;exports.formatBytes=v;exports.getRootVariables=q;exports.insert=T;exports.shiftArray=P;exports.wait=D;
|
package/lib/utils/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { a as b, p as C } from "../attributes-69we3byR.js";
|
|
2
|
-
import { i as
|
|
3
|
-
import { a as
|
|
4
|
-
import { g as
|
|
5
|
-
import { f as D, b as M,
|
|
2
|
+
import { i as y } from "../browser-0zX67oeU.js";
|
|
3
|
+
import { a as w, c as O, f as B, m as I } from "../canvas-DeZ0SLUJ.js";
|
|
4
|
+
import { g as P, n as v, s as A } from "../coordinates-CgdGoSYs.js";
|
|
5
|
+
import { f as D, b as M, a as R, g as z } from "../dom-0S_WDL4g.js";
|
|
6
6
|
import { c as j, n as N, f as V, p as U, b as $, i as F, m as K, e as W, g as q, j as G, d as H, o as J, a as L, h as Y, k as Z, l as X } from "../easings-BKi40vHz.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { g as
|
|
12
|
-
import { e as
|
|
13
|
-
import { n as
|
|
14
|
-
import { c as
|
|
15
|
-
import { c as
|
|
16
|
-
import { g as
|
|
17
|
-
import { c as
|
|
7
|
+
import { c as ee, a as ae, d as te } from "../file-BEr-o55N.js";
|
|
8
|
+
import { d as oe, t as ne } from "../function-C10DGppn.js";
|
|
9
|
+
import { s as ie } from "../gestures-D2Fdra_G.js";
|
|
10
|
+
import { c as ue, s as le } from "../jss-CjccJC-K.js";
|
|
11
|
+
import { g as pe, a as me, b as de } from "../layout-HoBT_Da2.js";
|
|
12
|
+
import { e as xe, f as he, c as be, d as Ce, l as Se, m as ye, r as Ee, b as we, a as Oe, s as Be } from "../math-BOBiC4TN.js";
|
|
13
|
+
import { n as Te, p as Pe, r as ve, t as Ae } from "../polyfills-X6KXuHg-.js";
|
|
14
|
+
import { c as De, d as Me, i as Re, b as ze, a as ke, m as je, e as Ne, o as Ve, p as Ue } from "../object-D6MVWB4l.js";
|
|
15
|
+
import { c as Fe, a as Ke, g as We, i as qe, k as Ge, s as He, t as Je, u as Le } from "../string-f0Dnk0L1.js";
|
|
16
|
+
import { g as Ze, a as Xe } from "../style-j2TwriJ_.js";
|
|
17
|
+
import { c as ea, n as aa, s as ta } from "../url-DMNfW7uN.js";
|
|
18
18
|
function i(a, e, ...t) {
|
|
19
19
|
return [...a.slice(0, e), ...t, ...a.slice(e)];
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function c(a, e) {
|
|
22
22
|
const t = a.length;
|
|
23
23
|
e = e % t;
|
|
24
24
|
const s = new Array(t);
|
|
@@ -28,7 +28,7 @@ function u(a, e) {
|
|
|
28
28
|
}
|
|
29
29
|
return s;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function u(a, e = 2) {
|
|
32
32
|
if (!+a) return "0 Bytes";
|
|
33
33
|
const t = 1024, s = e < 0 ? 0 : e, o = [
|
|
34
34
|
"Bytes",
|
|
@@ -85,22 +85,23 @@ function g(a) {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
export {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
88
|
+
xe as calculateDistance,
|
|
89
|
+
he as calculateDistanceWithRadius,
|
|
90
|
+
Fe as camelToKebab,
|
|
91
|
+
Ke as capitalize,
|
|
92
|
+
ea as changeHistory,
|
|
93
|
+
be as clamp,
|
|
94
|
+
De as cloneDeep,
|
|
95
|
+
Me as compareObjects,
|
|
96
|
+
w as contain,
|
|
97
97
|
O as cover,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
ee as createJSONAndSave,
|
|
99
|
+
ue as createStylesheet,
|
|
100
|
+
Ce as damp,
|
|
101
|
+
oe as debounce,
|
|
101
102
|
d as decode,
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
ae as dispatchBeforeSizeChangeEvent,
|
|
104
|
+
te as dispatchSizeChangeEvent,
|
|
104
105
|
f as dotCircleCollision,
|
|
105
106
|
l as dotRectCollision,
|
|
106
107
|
j as easeInCubic,
|
|
@@ -122,51 +123,52 @@ export {
|
|
|
122
123
|
D as findParentElement,
|
|
123
124
|
M as findScrollParentElement,
|
|
124
125
|
B as fixPosition,
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
u as formatBytes,
|
|
127
|
+
We as generateId,
|
|
127
128
|
R as getAllParentElements,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
pe as getCumulativeOffsetLeft,
|
|
130
|
+
me as getCumulativeOffsetTop,
|
|
131
|
+
de as getCumulativePosition,
|
|
131
132
|
z as getElement,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
Ze as getElementTransitionDurationMS,
|
|
134
|
+
Xe as getElementTransitionDurationS,
|
|
135
|
+
P as getPointerPosition,
|
|
135
136
|
p as getRootVariables,
|
|
136
137
|
i as insert,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
138
|
+
y as isBrowser,
|
|
139
|
+
Re as isESClass,
|
|
140
|
+
ze as isNullish,
|
|
141
|
+
ke as isObject,
|
|
142
|
+
qe as isUppercase,
|
|
143
|
+
Ge as kebabToCamel,
|
|
144
|
+
Se as lerp,
|
|
144
145
|
X as linear,
|
|
145
|
-
|
|
146
|
+
ye as mapRange,
|
|
146
147
|
I as measureText,
|
|
147
|
-
|
|
148
|
-
|
|
148
|
+
je as mergeDeep,
|
|
149
|
+
Ne as mixin,
|
|
149
150
|
v as normalize,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
aa as normalizeBase,
|
|
152
|
+
Te as nullishCoalescing,
|
|
153
|
+
Ve as omit,
|
|
153
154
|
b as parseAttribute,
|
|
154
155
|
C as parseAttributeValue,
|
|
155
|
-
|
|
156
|
-
|
|
156
|
+
Ue as pick,
|
|
157
|
+
Pe as preciseNumber,
|
|
157
158
|
Ee as round,
|
|
158
|
-
|
|
159
|
+
ve as roundNumberTo,
|
|
159
160
|
A as screenToCartesian,
|
|
160
|
-
|
|
161
|
-
|
|
161
|
+
ie as setupDrag,
|
|
162
|
+
c as shiftArray,
|
|
162
163
|
we as smootherstep,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
164
|
+
Oe as smoothstep,
|
|
165
|
+
He as snakeToDotted,
|
|
166
|
+
ta as splitPath,
|
|
167
|
+
Be as step,
|
|
168
|
+
le as styleToString,
|
|
169
|
+
ne as throttle,
|
|
170
|
+
Je as toPascalCase,
|
|
171
|
+
Ae as toStep,
|
|
172
|
+
Le as uncapitalize,
|
|
171
173
|
g as wait
|
|
172
174
|
};
|
package/lib/video/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var l=e=>{throw TypeError(e)};var d=(e,s,t)=>s.has(e)||l("Cannot "+t);var i=(e,s,t)=>(d(e,s,"read from private field"),t?t.call(e):s.get(e)),n=(e,s,t)=>s.has(e)?l("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),c=(e,s,t,o)=>(d(e,s,"write to private field"),o?o.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../window-resizer/index.cjs");require("../Store-
|
|
1
|
+
"use strict";var l=e=>{throw TypeError(e)};var d=(e,s,t)=>s.has(e)||l("Cannot "+t);var i=(e,s,t)=>(d(e,s,"read from private field"),t?t.call(e):s.get(e)),n=(e,s,t)=>s.has(e)?l("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),c=(e,s,t,o)=>(d(e,s,"write to private field"),o?o.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../window-resizer/index.cjs");require("../Store-CDb6RMce.cjs");const m=require("../source/index.cjs"),u=require("../ticker/index.cjs");var r,a;class h extends m.SourceElement{constructor(){super(...arguments);n(this,r,0);n(this,a,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const t=this.consumerElement.readyState/4;t>i(this,r)&&c(this,r,t),this.dispatchEvent(new CustomEvent("readyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:i(this,r)}})),this.consumerElement.readyState===4&&u.ticker.unsubscribe(i(this,a))})}connectedCallback(){super.connectedCallback(),this.addEventListener("sourceCapture",()=>{u.ticker.subscribe(i(this,a)),this.hasAttribute("capture-autoplay")&&this.consumerElement.play()}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&(this.consumerElement.pause(),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0)),this.hasAttribute("reload-source")&&this.classList.remove("state-0","state-1","state-2","state-3","state-4")})}disconnectedCallback(){super.disconnectedCallback(),u.ticker.unsubscribe(i(this,a)),c(this,r,0)}createConsumer(){return document.createElement("video")}consumeSource(t){this.consumerElement.src=t||""}}r=new WeakMap,a=new WeakMap;customElements.get("e-video")||customElements.define("e-video",h);exports.VideoElement=h;
|
package/lib/video/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var m = (e) => {
|
|
|
4
4
|
var h = (e, s, t) => s.has(e) || m("Cannot " + t);
|
|
5
5
|
var i = (e, s, t) => (h(e, s, "read from private field"), t ? t.call(e) : s.get(e)), n = (e, s, t) => s.has(e) ? m("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), c = (e, s, t, u) => (h(e, s, "write to private field"), u ? u.call(e, t) : s.set(e, t), t);
|
|
6
6
|
import "../window-resizer/index.js";
|
|
7
|
-
import "../Store-
|
|
7
|
+
import "../Store-OTdcl6SX.js";
|
|
8
8
|
import { SourceElement as l } from "../source/index.js";
|
|
9
9
|
import { ticker as o } from "../ticker/index.js";
|
|
10
10
|
var r, a;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aptechka",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/denisavitski/aptechka.git"
|
|
@@ -18,11 +18,6 @@
|
|
|
18
18
|
],
|
|
19
19
|
"type": "module",
|
|
20
20
|
"exports": {
|
|
21
|
-
"./accordion": {
|
|
22
|
-
"require": "./lib/accordion/index.cjs",
|
|
23
|
-
"default": "./lib/accordion/index.js",
|
|
24
|
-
"types": "./lib/accordion/index.d.ts"
|
|
25
|
-
},
|
|
26
21
|
"./animation": {
|
|
27
22
|
"require": "./lib/animation/index.cjs",
|
|
28
23
|
"default": "./lib/animation/index.js",
|
|
@@ -38,11 +33,6 @@
|
|
|
38
33
|
"default": "./lib/canvas/index.js",
|
|
39
34
|
"types": "./lib/canvas/index.d.ts"
|
|
40
35
|
},
|
|
41
|
-
"./checkbox": {
|
|
42
|
-
"require": "./lib/checkbox/index.cjs",
|
|
43
|
-
"default": "./lib/checkbox/index.js",
|
|
44
|
-
"types": "./lib/checkbox/index.d.ts"
|
|
45
|
-
},
|
|
46
36
|
"./class-linked-status": {
|
|
47
37
|
"require": "./lib/class-linked-status/index.cjs",
|
|
48
38
|
"default": "./lib/class-linked-status/index.js",
|
|
@@ -98,31 +88,6 @@
|
|
|
98
88
|
"default": "./lib/en3/index.js",
|
|
99
89
|
"types": "./lib/en3/index.d.ts"
|
|
100
90
|
},
|
|
101
|
-
"./en3/helpers": {
|
|
102
|
-
"require": "./lib/en3/helpers/index.cjs",
|
|
103
|
-
"default": "./lib/en3/helpers/index.js",
|
|
104
|
-
"types": "./lib/en3/helpers/index.d.ts"
|
|
105
|
-
},
|
|
106
|
-
"./en3/libs": {
|
|
107
|
-
"require": "./lib/en3/libs/index.cjs",
|
|
108
|
-
"default": "./lib/en3/libs/index.js",
|
|
109
|
-
"types": "./lib/en3/libs/index.d.ts"
|
|
110
|
-
},
|
|
111
|
-
"./en3/loaders": {
|
|
112
|
-
"require": "./lib/en3/loaders/index.cjs",
|
|
113
|
-
"default": "./lib/en3/loaders/index.js",
|
|
114
|
-
"types": "./lib/en3/loaders/index.d.ts"
|
|
115
|
-
},
|
|
116
|
-
"./en3/misc": {
|
|
117
|
-
"require": "./lib/en3/misc/index.cjs",
|
|
118
|
-
"default": "./lib/en3/misc/index.js",
|
|
119
|
-
"types": "./lib/en3/misc/index.d.ts"
|
|
120
|
-
},
|
|
121
|
-
"./en3/utils": {
|
|
122
|
-
"require": "./lib/en3/utils/index.cjs",
|
|
123
|
-
"default": "./lib/en3/utils/index.js",
|
|
124
|
-
"types": "./lib/en3/utils/index.d.ts"
|
|
125
|
-
},
|
|
126
91
|
"./image": {
|
|
127
92
|
"require": "./lib/image/index.cjs",
|
|
128
93
|
"default": "./lib/image/index.js",
|
|
@@ -153,11 +118,6 @@
|
|
|
153
118
|
"default": "./lib/media/index.js",
|
|
154
119
|
"types": "./lib/media/index.d.ts"
|
|
155
120
|
},
|
|
156
|
-
"./modal": {
|
|
157
|
-
"require": "./lib/modal/index.cjs",
|
|
158
|
-
"default": "./lib/modal/index.js",
|
|
159
|
-
"types": "./lib/modal/index.d.ts"
|
|
160
|
-
},
|
|
161
121
|
"./morph": {
|
|
162
122
|
"require": "./lib/morph/index.cjs",
|
|
163
123
|
"default": "./lib/morph/index.js",
|
|
@@ -198,11 +158,6 @@
|
|
|
198
158
|
"default": "./lib/scroll-entries/index.js",
|
|
199
159
|
"types": "./lib/scroll-entries/index.d.ts"
|
|
200
160
|
},
|
|
201
|
-
"./select": {
|
|
202
|
-
"require": "./lib/select/index.cjs",
|
|
203
|
-
"default": "./lib/select/index.js",
|
|
204
|
-
"types": "./lib/select/index.d.ts"
|
|
205
|
-
},
|
|
206
161
|
"./sequence": {
|
|
207
162
|
"require": "./lib/sequence/index.cjs",
|
|
208
163
|
"default": "./lib/sequence/index.js",
|
|
@@ -223,20 +178,15 @@
|
|
|
223
178
|
"default": "./lib/store/index.js",
|
|
224
179
|
"types": "./lib/store/index.d.ts"
|
|
225
180
|
},
|
|
226
|
-
"./theme": {
|
|
227
|
-
"require": "./lib/theme/index.cjs",
|
|
228
|
-
"default": "./lib/theme/index.js",
|
|
229
|
-
"types": "./lib/theme/index.d.ts"
|
|
230
|
-
},
|
|
231
181
|
"./ticker": {
|
|
232
182
|
"require": "./lib/ticker/index.cjs",
|
|
233
183
|
"default": "./lib/ticker/index.js",
|
|
234
184
|
"types": "./lib/ticker/index.d.ts"
|
|
235
185
|
},
|
|
236
|
-
"./
|
|
237
|
-
"require": "./lib/
|
|
238
|
-
"default": "./lib/
|
|
239
|
-
"types": "./lib/
|
|
186
|
+
"./need_redo_tweaker": {
|
|
187
|
+
"require": "./lib/need_redo_tweaker/index.cjs",
|
|
188
|
+
"default": "./lib/need_redo_tweaker/index.js",
|
|
189
|
+
"types": "./lib/need_redo_tweaker/index.d.ts"
|
|
240
190
|
},
|
|
241
191
|
"./utils": {
|
|
242
192
|
"require": "./lib/utils/index.cjs",
|
|
@@ -256,9 +206,6 @@
|
|
|
256
206
|
},
|
|
257
207
|
"typesVersions": {
|
|
258
208
|
"*": {
|
|
259
|
-
"accordion": [
|
|
260
|
-
"lib/accordion/index.d.ts"
|
|
261
|
-
],
|
|
262
209
|
"animation": [
|
|
263
210
|
"lib/animation/index.d.ts"
|
|
264
211
|
],
|
|
@@ -268,9 +215,6 @@
|
|
|
268
215
|
"canvas": [
|
|
269
216
|
"lib/canvas/index.d.ts"
|
|
270
217
|
],
|
|
271
|
-
"checkbox": [
|
|
272
|
-
"lib/checkbox/index.d.ts"
|
|
273
|
-
],
|
|
274
218
|
"class-linked-status": [
|
|
275
219
|
"lib/class-linked-status/index.d.ts"
|
|
276
220
|
],
|
|
@@ -340,9 +284,6 @@
|
|
|
340
284
|
"media": [
|
|
341
285
|
"lib/media/index.d.ts"
|
|
342
286
|
],
|
|
343
|
-
"modal": [
|
|
344
|
-
"lib/modal/index.d.ts"
|
|
345
|
-
],
|
|
346
287
|
"morph": [
|
|
347
288
|
"lib/morph/index.d.ts"
|
|
348
289
|
],
|
|
@@ -367,9 +308,6 @@
|
|
|
367
308
|
"scroll-entries": [
|
|
368
309
|
"lib/scroll-entries/index.d.ts"
|
|
369
310
|
],
|
|
370
|
-
"select": [
|
|
371
|
-
"lib/select/index.d.ts"
|
|
372
|
-
],
|
|
373
311
|
"sequence": [
|
|
374
312
|
"lib/sequence/index.d.ts"
|
|
375
313
|
],
|
|
@@ -382,14 +320,11 @@
|
|
|
382
320
|
"store": [
|
|
383
321
|
"lib/store/index.d.ts"
|
|
384
322
|
],
|
|
385
|
-
"theme": [
|
|
386
|
-
"lib/theme/index.d.ts"
|
|
387
|
-
],
|
|
388
323
|
"ticker": [
|
|
389
324
|
"lib/ticker/index.d.ts"
|
|
390
325
|
],
|
|
391
|
-
"
|
|
392
|
-
"lib/
|
|
326
|
+
"need_redo_tweaker": [
|
|
327
|
+
"lib/need_redo_tweaker/index.d.ts"
|
|
393
328
|
],
|
|
394
329
|
"utils": [
|
|
395
330
|
"lib/utils/index.d.ts"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var t=s=>{throw TypeError(s)};var b=(s,e,r)=>e.has(s)||t("Cannot "+r);var c=(s,e,r)=>(b(s,e,"read from private field"),r?r.call(s):e.get(s)),u=(s,e,r)=>e.has(s)?t("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,r);const d=require("./function-MthRj-GJ.cjs"),l=require("./Store-npaZHvX4.cjs");var o;class a extends l.Store{constructor(r,n,i){super(null,i);u(this,o,[]);const h=d.debounce(()=>{this.current=n()},0);r.forEach(p=>{c(this,o).push(p.subscribe(()=>{h()}))})}close(){super.close(),c(this,o).forEach(r=>r())}}o=new WeakMap;exports.Composed=a;
|
package/lib/Composed-CfWa-69I.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
var c = (s) => {
|
|
2
|
-
throw TypeError(s);
|
|
3
|
-
};
|
|
4
|
-
var h = (s, r, o) => r.has(s) || c("Cannot " + o);
|
|
5
|
-
var t = (s, r, o) => (h(s, r, "read from private field"), o ? o.call(s) : r.get(s)), u = (s, r, o) => r.has(s) ? c("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, o);
|
|
6
|
-
import { d as b } from "./function-C10DGppn.js";
|
|
7
|
-
import { S as d } from "./Store-C46i0nvr.js";
|
|
8
|
-
var e;
|
|
9
|
-
class x extends d {
|
|
10
|
-
constructor(o, p, a) {
|
|
11
|
-
super(null, a);
|
|
12
|
-
u(this, e, []);
|
|
13
|
-
const i = b(() => {
|
|
14
|
-
this.current = p();
|
|
15
|
-
}, 0);
|
|
16
|
-
o.forEach((n) => {
|
|
17
|
-
t(this, e).push(
|
|
18
|
-
n.subscribe(() => {
|
|
19
|
-
i();
|
|
20
|
-
})
|
|
21
|
-
);
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
close() {
|
|
25
|
-
super.close(), t(this, e).forEach((o) => o());
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
e = new WeakMap();
|
|
29
|
-
export {
|
|
30
|
-
x as C
|
|
31
|
-
};
|
package/lib/Derived-BIBU-y7Z.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var u=e=>{throw TypeError(e)};var i=(e,r,s)=>r.has(e)||u("Cannot "+s);var n=(e,r,s)=>(i(e,r,"read from private field"),s?s.call(e):r.get(e)),o=(e,r,s)=>r.has(e)?u("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,s),l=(e,r,s,c)=>(i(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const h=require("./Store-npaZHvX4.cjs");var t;class p extends h.Store{constructor(s,c,b){super(null,b);o(this,t);l(this,t,s.subscribe(d=>{this.current=c(d.current)}))}close(){super.close(),n(this,t).call(this)}}t=new WeakMap;exports.Derived=p;
|
package/lib/Derived-Vo_RsJfi.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
var u = (s) => {
|
|
2
|
-
throw TypeError(s);
|
|
3
|
-
};
|
|
4
|
-
var o = (s, r, e) => r.has(s) || u("Cannot " + e);
|
|
5
|
-
var i = (s, r, e) => (o(s, r, "read from private field"), e ? e.call(s) : r.get(s)), n = (s, r, e) => r.has(s) ? u("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, e), l = (s, r, e, c) => (o(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
|
|
6
|
-
import { S as a } from "./Store-C46i0nvr.js";
|
|
7
|
-
var t;
|
|
8
|
-
class m extends a {
|
|
9
|
-
constructor(e, c, b) {
|
|
10
|
-
super(null, b);
|
|
11
|
-
n(this, t);
|
|
12
|
-
l(this, t, e.subscribe((p) => {
|
|
13
|
-
this.current = c(p.current);
|
|
14
|
-
}));
|
|
15
|
-
}
|
|
16
|
-
close() {
|
|
17
|
-
super.close(), i(this, t).call(this);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
t = new WeakMap();
|
|
21
|
-
export {
|
|
22
|
-
m as D
|
|
23
|
-
};
|