aptechka 0.1.2 → 0.1.5
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/Animated-CzBHCHNm.js +130 -0
- package/lib/Animated-DZ_fbJmi.cjs +1 -0
- package/lib/Damped--qBZAdEi.cjs +1 -0
- package/lib/Damped-Bm1kSn1f.js +36 -0
- package/lib/Derived-BS2ja9qa.js +27 -0
- package/lib/Derived-CqmIkTGN.cjs +1 -0
- package/lib/ElementConstructor-DB0xOoat.js +199 -0
- package/lib/ElementConstructor-v1FPLXAW.cjs +1 -0
- package/lib/{SourceManager-F94MRde6.js → SourceManager-B44FUTig.js} +26 -26
- package/lib/SourceManager-D447KWpH.cjs +1 -0
- package/lib/Store-BOOfmlyv.cjs +1 -0
- package/lib/Store-uTyReFzx.js +152 -0
- package/lib/Viewport-CDqiD8Ao.cjs +1 -0
- package/lib/Viewport-Cj0i-H5d.js +129 -0
- package/lib/WheelControls-CX9WUbBC.js +83 -0
- package/lib/WheelControls-CfDeGCOU.cjs +1 -0
- package/lib/abstract-elements/AbstractButtonElement.d.ts +5 -0
- package/lib/abstract-elements/index.cjs +1 -0
- package/lib/abstract-elements/index.d.ts +1 -0
- package/lib/abstract-elements/index.js +27 -0
- package/lib/accordion/AccordionElement.d.ts +30 -0
- package/lib/accordion/index.cjs +1 -0
- package/lib/accordion/index.d.ts +1 -0
- package/lib/accordion/index.js +166 -0
- package/lib/animation/Animated.d.ts +9 -12
- package/lib/animation/Tweened.d.ts +1 -1
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.d.ts +1 -1
- package/lib/animation/index.js +11 -17
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.d.ts +8 -4
- package/lib/attribute/index.js +44 -35
- package/lib/canvas/index.cjs +1 -0
- package/lib/{canvas-2d → canvas}/index.d.ts +7 -6
- package/lib/canvas/index.js +97 -0
- package/lib/connector/index.cjs +1 -0
- package/lib/connector/index.d.ts +14 -0
- package/lib/connector/index.js +53 -0
- package/lib/controls/WheelControls.d.ts +3 -2
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.d.ts +0 -1
- package/lib/controls/index.js +23 -28
- package/lib/createStylesheet-74ZP3AZm.js +8 -0
- package/lib/createStylesheet-ChhZFwSX.cjs +1 -0
- package/lib/createTheme-BMH9cRrS.js +15 -0
- package/lib/createTheme-COo8IzPG.cjs +1 -0
- package/lib/custom-element/index.cjs +1 -1
- package/lib/custom-element/index.d.ts +3 -1
- package/lib/custom-element/index.js +19 -9
- package/lib/device/Viewport.d.ts +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +5 -121
- package/lib/element-constructor/ElementConstructor.d.ts +11 -15
- package/lib/element-constructor/createStylesheet.d.ts +2 -0
- package/lib/element-constructor/createTheme.d.ts +12 -0
- package/lib/element-constructor/htmlTags.d.ts +115 -113
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.d.ts +2 -1
- package/lib/element-constructor/index.js +387 -1135
- package/lib/element-constructor/svgTags.d.ts +63 -63
- package/lib/element-resizer/index.cjs +1 -0
- package/lib/element-resizer/index.d.ts +9 -0
- package/lib/element-resizer/index.js +64 -0
- package/lib/en3/attachments/En3SourceManager.d.ts +2 -2
- package/lib/en3/index.cjs +7 -7
- package/lib/en3/index.js +252 -242
- package/lib/en3/objects/En3Clip.d.ts +2 -2
- package/lib/events-CoqmkUxo.js +11 -0
- package/lib/events-D68xg4dy.cjs +1 -0
- package/lib/file-EevnUtRj.cjs +1 -0
- package/lib/file-lxi_oXJf.js +13 -0
- package/lib/htmlTags-CNEFIHPp.js +683 -0
- package/lib/htmlTags-CwYHVo9n.cjs +1 -0
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +13 -20
- package/lib/index-DyJhLxk8.js +310 -0
- package/lib/index-tPw9mmLF.cjs +9 -0
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.d.ts +2 -1
- package/lib/intersector/index.js +33 -22
- package/lib/jsx/ComponentWrapper.d.ts +12 -0
- package/lib/jsx/h.d.ts +7 -0
- package/lib/jsx/hooks.d.ts +19 -0
- package/lib/jsx/index.cjs +1 -0
- package/lib/jsx/index.d.ts +4 -0
- package/lib/jsx/index.js +125 -0
- package/lib/jsx/render.d.ts +2 -0
- package/lib/jsx/type.d.ts +185 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +3 -4
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.d.ts +1 -0
- package/lib/layout-box/index.js +113 -99
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +1 -1
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +17 -20
- package/lib/modal/ModalElement.d.ts +12 -0
- package/lib/modal/index.cjs +1 -0
- package/lib/modal/index.d.ts +1 -0
- package/lib/modal/index.js +144 -0
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +1 -1
- package/lib/number-Bo5RdrA1.js +23 -0
- package/lib/number-yVpzMdbQ.cjs +1 -0
- package/lib/popover/PopoverButtonElement.d.ts +14 -0
- package/lib/popover/PopoverElement.d.ts +19 -0
- package/lib/popover/index.cjs +1 -0
- package/lib/popover/index.d.ts +2 -0
- package/lib/popover/index.js +122 -0
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +2 -2
- package/lib/scroll/ScrollElement.d.ts +5 -3
- package/lib/scroll/index.cjs +1 -71
- package/lib/scroll/index.js +349 -314
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.d.ts +1 -1
- package/lib/scroll-entries/index.js +4 -2
- package/lib/select/SelectElement.d.ts +25 -0
- package/lib/select/SelectHeadElement.d.ts +12 -0
- package/lib/select/SelectOptionElement.d.ts +13 -0
- package/lib/select/SelectUserElement.d.ts +7 -0
- package/lib/select/index.cjs +1 -0
- package/lib/select/index.d.ts +4 -0
- package/lib/select/index.js +7 -0
- package/lib/source/SourceClass.d.ts +1 -1
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +13 -18
- package/lib/store/CumulativeResource.d.ts +12 -0
- package/lib/store/Resource.d.ts +5 -2
- package/lib/store/Store.d.ts +56 -9
- package/lib/store/StoreRegistry.d.ts +2 -2
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +2 -1
- package/lib/store/index.js +108 -66
- package/lib/string-BrDhnNUL.js +39 -0
- package/lib/string-DzUwFYSS.cjs +1 -0
- package/lib/studio/StudioElement.d.ts +12 -0
- package/lib/studio/index.cjs +10 -0
- package/lib/studio/index.d.ts +1 -0
- package/lib/studio/index.js +985 -0
- package/lib/studio/studioStorage.d.ts +14 -0
- package/lib/studio/tweaker/TweakerBooleanManagerElement.d.ts +10 -0
- package/lib/studio/tweaker/TweakerColorManagerElement.d.ts +10 -0
- package/lib/studio/tweaker/TweakerElement.d.ts +17 -0
- package/lib/studio/tweaker/TweakerFieldElement.d.ts +20 -0
- package/lib/studio/tweaker/TweakerFolderElement.d.ts +22 -0
- package/lib/studio/tweaker/TweakerLinkManagerElement.d.ts +10 -0
- package/lib/studio/tweaker/TweakerNumberManagerElement.d.ts +17 -0
- package/lib/studio/tweaker/TweakerRangeManagerElement.d.ts +10 -0
- package/lib/studio/tweaker/TweakerSelectManagerElement.d.ts +10 -0
- package/lib/studio/tweaker/TweakerStoreManagerElement.d.ts +7 -0
- package/lib/studio/tweaker/TweakerStringManagerElement.d.ts +12 -0
- package/lib/studio/tweaker/tweakerManagerConstructors.d.ts +5 -0
- package/lib/style-At6aDoqG.cjs +1 -0
- package/lib/style-j2TwriJ_.js +10 -0
- package/lib/theme/index.cjs +1 -0
- package/lib/theme/index.d.ts +90 -0
- package/lib/theme/index.js +34 -0
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +1 -1
- package/lib/utils/events.d.ts +6 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +8 -7
- package/lib/utils/index.js +95 -105
- package/lib/utils/number.d.ts +2 -3
- package/lib/utils/string.d.ts +1 -0
- package/lib/utils/style.d.ts +2 -0
- package/lib/utils/ts-utility.d.ts +2 -0
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +13 -20
- package/lib/window-resizer/index.cjs +1 -0
- package/lib/window-resizer/index.d.ts +9 -0
- package/lib/window-resizer/index.js +46 -0
- package/package.json +92 -30
- package/lib/Damped-1hlKSFaB.cjs +0 -1
- package/lib/Damped-523xgzT3.js +0 -152
- package/lib/SourceManager-3c3kr7oj.cjs +0 -1
- package/lib/Store-2hWEUGTj.js +0 -135
- package/lib/Store-WXFmsaEI.cjs +0 -1
- package/lib/WheelControls-F-xg5-oq.js +0 -102
- package/lib/WheelControls-Hp5NWRZY.cjs +0 -1
- package/lib/canvas-2d/index.cjs +0 -5
- package/lib/canvas-2d/index.js +0 -90
- package/lib/controls/User.d.ts +0 -7
- package/lib/element-constructor/specialObjects.d.ts +0 -2
- package/lib/measurer/CumulativeOffsetLeft.d.ts +0 -4
- package/lib/measurer/CumulativeOffsetTop.d.ts +0 -4
- package/lib/measurer/Meaurer.d.ts +0 -8
- package/lib/measurer/index.cjs +0 -1
- package/lib/measurer/index.d.ts +0 -3
- package/lib/measurer/index.js +0 -48
- package/lib/number-2bR0KBcX.cjs +0 -1
- package/lib/number-bCHB2GAD.js +0 -31
- package/lib/resizer/index.cjs +0 -1
- package/lib/resizer/index.d.ts +0 -10
- package/lib/resizer/index.js +0 -45
- package/lib/string-GmxZA5Nq.js +0 -31
- package/lib/string-WmNOGq16.cjs +0 -1
- package/lib/utils/dev.d.ts +0 -3
- /package/lib/{attributes-w0u-KiIb.js → attributes-69we3byR.js} +0 -0
- /package/lib/{attributes-_2U65GDl.cjs → attributes-Bf2svn4j.cjs} +0 -0
- /package/lib/{browser-S4eq8AeN.js → browser-0zX67oeU.js} +0 -0
- /package/lib/{browser-QbF6EW-w.cjs → browser-CpzFX2xg.cjs} +0 -0
- /package/lib/{dom-bHEwc_xV.js → dom-BY7JhTx5.js} +0 -0
- /package/lib/{dom-QhWsdQS2.cjs → dom-qY2LdCVL.cjs} +0 -0
- /package/lib/{easings-uF-tgahf.js → easings-BKi40vHz.js} +0 -0
- /package/lib/{easings-_wFs9ZWc.cjs → easings-DsS5-Kqc.cjs} +0 -0
- /package/lib/{function-zwSFehNd.js → function-C10DGppn.js} +0 -0
- /package/lib/{function-QP7IreXR.cjs → function-MthRj-GJ.cjs} +0 -0
- /package/lib/{layout-rZzbsLPd.cjs → layout-8ryRAMGJ.cjs} +0 -0
- /package/lib/{layout-5SJlcXTY.js → layout-HoBT_Da2.js} +0 -0
- /package/lib/{math-_a3IpKOc.js → math-BOBiC4TN.js} +0 -0
- /package/lib/{math-FNUBmQPK.cjs → math-GDWEqu7y.cjs} +0 -0
package/lib/canvas-2d/index.cjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("../custom-element/index.cjs"),C=require("../notifier/index.cjs"),x=require("../resizer/index.cjs"),y=require("../ticker/index.cjs"),M=require("../math-FNUBmQPK.cjs");require("../browser-QbF6EW-w.cjs");require("../function-QP7IreXR.cjs");require("../intersector/index.cjs");var W=Object.defineProperty,b=Object.getOwnPropertyDescriptor,R=(i,e,s,r)=>{for(var n=r>1?void 0:r?b(e,s):e,m=i.length-1,f;m>=0;m--)(f=i[m])&&(n=(r?f(e,s,n):f(n))||n);return r&&n&&W(e,s,n),n},E=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(E(i,e,"read from private field"),s?s.call(i):e.get(i)),a=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},l=(i,e,s,r)=>(E(i,e,"write to private field"),r?r.call(i,s):e.set(i,s),s),p,h,d,c,o,u,v,_,w,g;exports.Canvas2DElement=class extends k.CustomElement{constructor(){super(...arguments),a(this,p,new C.Notifier),a(this,h,null),a(this,d,null),a(this,c,0),a(this,o,0),a(this,u,1),a(this,v,0),a(this,_,1),a(this,w,()=>{l(this,u,M.clamp(devicePixelRatio,1,2));const e=this.getBoundingClientRect();l(this,c,e.width),l(this,o,e.height),t(this,h).width=t(this,c)*this.pixelRatio,t(this,h).height=t(this,o)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),this.renderEvent.notify(this.detail)}),a(this,g,e=>{l(this,v,e.timestamp),l(this,_,e.elapsed),t(this,p).notify(this.detail)})}get renderEvent(){return t(this,p)}get canvasElement(){return t(this,h)}get context(){return t(this,d)}get pixelRatio(){return t(this,u)}get width(){return t(this,c)}get height(){return t(this,o)}get detail(){return{width:t(this,c),height:t(this,o),element:this,canvasElement:t(this,h),pixelRatio:t(this,u),context:t(this,d),timestamp:t(this,v),elapsed:t(this,_)}}connectedCallback(){this.style.display="block",this.style.width="100%",this.style.height="100%",l(this,h,document.createElement("canvas")),t(this,h).style.cssText=`
|
|
2
|
-
display: block;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100%;
|
|
5
|
-
`,l(this,d,t(this,h).getContext("2d")),this.appendChild(t(this,h)),x.resizer.subscribe(t(this,w)),this.hasAttribute("static")||y.ticker.subscribe(t(this,g),{culling:this,maxFPS:this.hasAttribute("fps")?parseInt(this.getAttribute("fps")):void 0})}disconnectedCallback(){x.resizer.unsubscribe(t(this,w)),y.ticker.unsubscribe(t(this,g)),t(this,p).close(),t(this,h).remove(),this.style.display="",this.style.width="",this.style.height=""}};p=new WeakMap;h=new WeakMap;d=new WeakMap;c=new WeakMap;o=new WeakMap;u=new WeakMap;v=new WeakMap;_=new WeakMap;w=new WeakMap;g=new WeakMap;exports.Canvas2DElement=R([k.define("canvas-2d")],exports.Canvas2DElement);
|
package/lib/canvas-2d/index.js
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { CustomElement as E, define as W } from "../custom-element/index.js";
|
|
2
|
-
import { Notifier as M } from "../notifier/index.js";
|
|
3
|
-
import { resizer as x } from "../resizer/index.js";
|
|
4
|
-
import { ticker as y } from "../ticker/index.js";
|
|
5
|
-
import { c as R } from "../math-_a3IpKOc.js";
|
|
6
|
-
import "../browser-S4eq8AeN.js";
|
|
7
|
-
import "../function-zwSFehNd.js";
|
|
8
|
-
import "../intersector/index.js";
|
|
9
|
-
var b = Object.defineProperty, P = Object.getOwnPropertyDescriptor, A = (e, i, s, r) => {
|
|
10
|
-
for (var n = r > 1 ? void 0 : r ? P(i, s) : i, f = e.length - 1, g; f >= 0; f--)
|
|
11
|
-
(g = e[f]) && (n = (r ? g(i, s, n) : g(n)) || n);
|
|
12
|
-
return r && n && b(i, s, n), n;
|
|
13
|
-
}, C = (e, i, s) => {
|
|
14
|
-
if (!i.has(e))
|
|
15
|
-
throw TypeError("Cannot " + s);
|
|
16
|
-
}, t = (e, i, s) => (C(e, i, "read from private field"), s ? s.call(e) : i.get(e)), a = (e, i, s) => {
|
|
17
|
-
if (i.has(e))
|
|
18
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
19
|
-
i instanceof WeakSet ? i.add(e) : i.set(e, s);
|
|
20
|
-
}, l = (e, i, s, r) => (C(e, i, "write to private field"), r ? r.call(e, s) : i.set(e, s), s), c, h, d, p, o, m, u, v, w, _;
|
|
21
|
-
let k = class extends E {
|
|
22
|
-
constructor() {
|
|
23
|
-
super(...arguments), a(this, c, new M()), a(this, h, null), a(this, d, null), a(this, p, 0), a(this, o, 0), a(this, m, 1), a(this, u, 0), a(this, v, 1), a(this, w, () => {
|
|
24
|
-
l(this, m, R(devicePixelRatio, 1, 2));
|
|
25
|
-
const e = this.getBoundingClientRect();
|
|
26
|
-
l(this, p, e.width), l(this, o, e.height), t(this, h).width = t(this, p) * this.pixelRatio, t(this, h).height = t(this, o) * this.pixelRatio, this.context.scale(this.pixelRatio, this.pixelRatio), this.renderEvent.notify(this.detail);
|
|
27
|
-
}), a(this, _, (e) => {
|
|
28
|
-
l(this, u, e.timestamp), l(this, v, e.elapsed), t(this, c).notify(this.detail);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
get renderEvent() {
|
|
32
|
-
return t(this, c);
|
|
33
|
-
}
|
|
34
|
-
get canvasElement() {
|
|
35
|
-
return t(this, h);
|
|
36
|
-
}
|
|
37
|
-
get context() {
|
|
38
|
-
return t(this, d);
|
|
39
|
-
}
|
|
40
|
-
get pixelRatio() {
|
|
41
|
-
return t(this, m);
|
|
42
|
-
}
|
|
43
|
-
get width() {
|
|
44
|
-
return t(this, p);
|
|
45
|
-
}
|
|
46
|
-
get height() {
|
|
47
|
-
return t(this, o);
|
|
48
|
-
}
|
|
49
|
-
get detail() {
|
|
50
|
-
return {
|
|
51
|
-
width: t(this, p),
|
|
52
|
-
height: t(this, o),
|
|
53
|
-
element: this,
|
|
54
|
-
canvasElement: t(this, h),
|
|
55
|
-
pixelRatio: t(this, m),
|
|
56
|
-
context: t(this, d),
|
|
57
|
-
timestamp: t(this, u),
|
|
58
|
-
elapsed: t(this, v)
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
connectedCallback() {
|
|
62
|
-
this.style.display = "block", this.style.width = "100%", this.style.height = "100%", l(this, h, document.createElement("canvas")), t(this, h).style.cssText = `
|
|
63
|
-
display: block;
|
|
64
|
-
width: 100%;
|
|
65
|
-
height: 100%;
|
|
66
|
-
`, l(this, d, t(this, h).getContext("2d")), this.appendChild(t(this, h)), x.subscribe(t(this, w)), this.hasAttribute("static") || y.subscribe(t(this, _), {
|
|
67
|
-
culling: this,
|
|
68
|
-
maxFPS: this.hasAttribute("fps") ? parseInt(this.getAttribute("fps")) : void 0
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
disconnectedCallback() {
|
|
72
|
-
x.unsubscribe(t(this, w)), y.unsubscribe(t(this, _)), t(this, c).close(), t(this, h).remove(), this.style.display = "", this.style.width = "", this.style.height = "";
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
c = /* @__PURE__ */ new WeakMap();
|
|
76
|
-
h = /* @__PURE__ */ new WeakMap();
|
|
77
|
-
d = /* @__PURE__ */ new WeakMap();
|
|
78
|
-
p = /* @__PURE__ */ new WeakMap();
|
|
79
|
-
o = /* @__PURE__ */ new WeakMap();
|
|
80
|
-
m = /* @__PURE__ */ new WeakMap();
|
|
81
|
-
u = /* @__PURE__ */ new WeakMap();
|
|
82
|
-
v = /* @__PURE__ */ new WeakMap();
|
|
83
|
-
w = /* @__PURE__ */ new WeakMap();
|
|
84
|
-
_ = /* @__PURE__ */ new WeakMap();
|
|
85
|
-
k = A([
|
|
86
|
-
W("canvas-2d")
|
|
87
|
-
], k);
|
|
88
|
-
export {
|
|
89
|
-
k as Canvas2DElement
|
|
90
|
-
};
|
package/lib/controls/User.d.ts
DELETED
package/lib/measurer/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var O=Object.defineProperty;var m=(t,e,s)=>e in t?O(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var c=(t,e,s)=>(m(t,typeof e!="symbol"?e+"":e,s),s),v=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var r=(t,e,s)=>(v(t,e,"read from private field"),s?s.call(t):e.get(t)),n=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},a=(t,e,s,h)=>(v(t,e,"write to private field"),h?h.call(t,s):e.set(t,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../browser-QbF6EW-w.cjs"),d=require("../layout-rZzbsLPd.cjs");var i,u,l,o;class f{constructor(e){n(this,i,void 0);n(this,u,null);n(this,l,0);c(this,"value",e=>e?e(r(this,l)):r(this,l));n(this,o,()=>{a(this,l,this.handleResize()),r(this,i).isConnected||this.destroy()});a(this,i,e),b.isBrowser&&(a(this,u,new ResizeObserver(r(this,o))),r(this,u).observe(e))}get element(){return r(this,i)}destroy(){r(this,u).disconnect()}}i=new WeakMap,u=new WeakMap,l=new WeakMap,o=new WeakMap;class C extends f{handleResize(){return d.getCumulativeOffsetLeft(this.element)}}class z extends f{handleResize(){return d.getCumulativeOffsetTop(this.element)}}exports.CumulativeOffsetLeft=C;exports.CumulativeOffsetTop=z;exports.Measurer=f;
|
package/lib/measurer/index.d.ts
DELETED
package/lib/measurer/index.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
var c = Object.defineProperty;
|
|
2
|
-
var d = (s, e, t) => e in s ? c(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
|
-
var f = (s, e, t) => (d(s, typeof e != "symbol" ? e + "" : e, t), t), m = (s, e, t) => {
|
|
4
|
-
if (!e.has(s))
|
|
5
|
-
throw TypeError("Cannot " + t);
|
|
6
|
-
};
|
|
7
|
-
var i = (s, e, t) => (m(s, e, "read from private field"), t ? t.call(s) : e.get(s)), n = (s, e, t) => {
|
|
8
|
-
if (e.has(s))
|
|
9
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
10
|
-
e instanceof WeakSet ? e.add(s) : e.set(s, t);
|
|
11
|
-
}, h = (s, e, t, o) => (m(s, e, "write to private field"), o ? o.call(s, t) : e.set(s, t), t);
|
|
12
|
-
import { i as O } from "../browser-S4eq8AeN.js";
|
|
13
|
-
import { g as z, a as C } from "../layout-5SJlcXTY.js";
|
|
14
|
-
var r, a, l, u;
|
|
15
|
-
class v {
|
|
16
|
-
constructor(e) {
|
|
17
|
-
n(this, r, void 0);
|
|
18
|
-
n(this, a, null);
|
|
19
|
-
n(this, l, 0);
|
|
20
|
-
f(this, "value", (e) => e ? e(i(this, l)) : i(this, l));
|
|
21
|
-
n(this, u, () => {
|
|
22
|
-
h(this, l, this.handleResize()), i(this, r).isConnected || this.destroy();
|
|
23
|
-
});
|
|
24
|
-
h(this, r, e), O && (h(this, a, new ResizeObserver(i(this, u))), i(this, a).observe(e));
|
|
25
|
-
}
|
|
26
|
-
get element() {
|
|
27
|
-
return i(this, r);
|
|
28
|
-
}
|
|
29
|
-
destroy() {
|
|
30
|
-
i(this, a).disconnect();
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
r = new WeakMap(), a = new WeakMap(), l = new WeakMap(), u = new WeakMap();
|
|
34
|
-
class R extends v {
|
|
35
|
-
handleResize() {
|
|
36
|
-
return z(this.element);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
class x extends v {
|
|
40
|
-
handleResize() {
|
|
41
|
-
return C(this.element);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
export {
|
|
45
|
-
R as CumulativeOffsetLeft,
|
|
46
|
-
x as CumulativeOffsetTop,
|
|
47
|
-
v as Measurer
|
|
48
|
-
};
|
package/lib/number-2bR0KBcX.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10];function i(n,e=5){return(.5+n*o[e]<<0)/o[e]}function a(n,e){return Math.round(n/e)*e}function d(n,e="abcdefghijklmnopqrstuvwxyz0123456789"){const u=e.length,c=crypto.getRandomValues(new Uint8Array(n));let r="";for(let t=0;t<n;t++)r+=e.charAt(c[t]%u);return r}exports.fix=i;exports.generateId=d;exports.roundTo=a;
|
package/lib/number-bCHB2GAD.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
const o = [
|
|
2
|
-
1,
|
|
3
|
-
10,
|
|
4
|
-
100,
|
|
5
|
-
1e3,
|
|
6
|
-
1e4,
|
|
7
|
-
1e5,
|
|
8
|
-
1e6,
|
|
9
|
-
1e7,
|
|
10
|
-
1e8,
|
|
11
|
-
1e9,
|
|
12
|
-
1e10
|
|
13
|
-
];
|
|
14
|
-
function u(n, e = 5) {
|
|
15
|
-
return (0.5 + n * o[e] << 0) / o[e];
|
|
16
|
-
}
|
|
17
|
-
function i(n, e) {
|
|
18
|
-
return Math.round(n / e) * e;
|
|
19
|
-
}
|
|
20
|
-
function s(n, e = "abcdefghijklmnopqrstuvwxyz0123456789") {
|
|
21
|
-
const a = e.length, c = crypto.getRandomValues(new Uint8Array(n));
|
|
22
|
-
let r = "";
|
|
23
|
-
for (let t = 0; t < n; t++)
|
|
24
|
-
r += e.charAt(c[t] % a);
|
|
25
|
-
return r;
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
u as f,
|
|
29
|
-
s as g,
|
|
30
|
-
i as r
|
|
31
|
-
};
|
package/lib/resizer/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var h=(e,s,i)=>{if(!s.has(e))throw TypeError("Cannot "+i)};var r=(e,s,i)=>(h(e,s,"read from private field"),i?i.call(e):s.get(e)),u=(e,s,i)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,i)},d=(e,s,i,o)=>(h(e,s,"write to private field"),o?o.call(e,i):s.set(e,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../notifier/index.cjs"),w=require("../browser-QbF6EW-w.cjs"),f=require("../function-QP7IreXR.cjs"),a=f.debounce(e=>{e?window.dispatchEvent(new CustomEvent("resize",{detail:{cause:e}})):window.dispatchEvent(new Event("resize"))},0);var t,n,c;class v extends b.Notifier{constructor(){super();u(this,t,!1);u(this,n,()=>{r(this,t)||(d(this,t,!0),r(this,c).call(this))});u(this,c,f.debounce(()=>{this.notify(),d(this,t,!1)},0));w.isBrowser&&(addEventListener("resize",r(this,n)),r(this,n).call(this))}subscribe(i,o){const z=super.subscribe(i,o);return r(this,t)||i(),z}}t=new WeakMap,n=new WeakMap,c=new WeakMap;const l=new v;exports.dispatchResizeEvent=a;exports.resizer=l;
|
package/lib/resizer/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Notifier } from '../notifier';
|
|
2
|
-
export type ResizerCallback = () => void;
|
|
3
|
-
export declare const dispatchResizeEvent: (cause?: string | undefined) => void;
|
|
4
|
-
declare class Resizer extends Notifier<ResizerCallback> {
|
|
5
|
-
#private;
|
|
6
|
-
constructor();
|
|
7
|
-
subscribe(callback: ResizerCallback, order?: number): () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const resizer: Resizer;
|
|
10
|
-
export {};
|
package/lib/resizer/index.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
var u = (e, s, i) => {
|
|
2
|
-
if (!s.has(e))
|
|
3
|
-
throw TypeError("Cannot " + i);
|
|
4
|
-
};
|
|
5
|
-
var r = (e, s, i) => (u(e, s, "read from private field"), i ? i.call(e) : s.get(e)), d = (e, s, i) => {
|
|
6
|
-
if (s.has(e))
|
|
7
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
s instanceof WeakSet ? s.add(e) : s.set(e, i);
|
|
9
|
-
}, f = (e, s, i, o) => (u(e, s, "write to private field"), o ? o.call(e, i) : s.set(e, i), i);
|
|
10
|
-
import { Notifier as z } from "../notifier/index.js";
|
|
11
|
-
import { i as w } from "../browser-S4eq8AeN.js";
|
|
12
|
-
import { d as c } from "../function-zwSFehNd.js";
|
|
13
|
-
const l = c((e) => {
|
|
14
|
-
e ? window.dispatchEvent(
|
|
15
|
-
new CustomEvent("resize", {
|
|
16
|
-
detail: {
|
|
17
|
-
cause: e
|
|
18
|
-
}
|
|
19
|
-
})
|
|
20
|
-
) : window.dispatchEvent(new Event("resize"));
|
|
21
|
-
}, 0);
|
|
22
|
-
var t, n, h;
|
|
23
|
-
class a extends z {
|
|
24
|
-
constructor() {
|
|
25
|
-
super();
|
|
26
|
-
d(this, t, !1);
|
|
27
|
-
d(this, n, () => {
|
|
28
|
-
r(this, t) || (f(this, t, !0), r(this, h).call(this));
|
|
29
|
-
});
|
|
30
|
-
d(this, h, c(() => {
|
|
31
|
-
this.notify(), f(this, t, !1);
|
|
32
|
-
}, 0));
|
|
33
|
-
w && (addEventListener("resize", r(this, n)), r(this, n).call(this));
|
|
34
|
-
}
|
|
35
|
-
subscribe(i, o) {
|
|
36
|
-
const p = super.subscribe(i, o);
|
|
37
|
-
return r(this, t) || i(), p;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
t = new WeakMap(), n = new WeakMap(), h = new WeakMap();
|
|
41
|
-
const R = new a();
|
|
42
|
-
export {
|
|
43
|
-
l as dispatchResizeEvent,
|
|
44
|
-
R as resizer
|
|
45
|
-
};
|
package/lib/string-GmxZA5Nq.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
function n(e, s = !1) {
|
|
2
|
-
let t = "";
|
|
3
|
-
return e.split("-").forEach((a, o) => {
|
|
4
|
-
if (o === 0 && !s)
|
|
5
|
-
t += a;
|
|
6
|
-
else {
|
|
7
|
-
const c = a[0], r = a.slice(1), i = c.toUpperCase() + r;
|
|
8
|
-
t += i;
|
|
9
|
-
}
|
|
10
|
-
}), t;
|
|
11
|
-
}
|
|
12
|
-
function l(e) {
|
|
13
|
-
return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
14
|
-
}
|
|
15
|
-
function p(e) {
|
|
16
|
-
return e.split("_").join(".");
|
|
17
|
-
}
|
|
18
|
-
function f(e) {
|
|
19
|
-
return /^[a-z\d]+$/i.test(e) ? e.charAt(0).toUpperCase() + e.slice(1) : e.replace(/([a-z\d])([a-z\d]*)/gi, (s, t, a) => t.toUpperCase() + a.toLowerCase()).replace(/[^a-z\d]/gi, "");
|
|
20
|
-
}
|
|
21
|
-
function u(e, s = !1) {
|
|
22
|
-
const t = (a) => a.slice(0, 1).toUpperCase() + a.slice(1);
|
|
23
|
-
return s ? e.split(" ").map((a) => t(a)).join(" ") : t(e);
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
u as a,
|
|
27
|
-
l as c,
|
|
28
|
-
n as k,
|
|
29
|
-
p as s,
|
|
30
|
-
f as t
|
|
31
|
-
};
|
package/lib/string-WmNOGq16.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function r(e,o=!1){let t="";return e.split("-").forEach((a,c)=>{if(c===0&&!o)t+=a;else{const s=a[0],i=a.slice(1),l=s.toUpperCase()+i;t+=l}}),t}function n(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function p(e){return e.split("_").join(".")}function u(e){return/^[a-z\d]+$/i.test(e)?e.charAt(0).toUpperCase()+e.slice(1):e.replace(/([a-z\d])([a-z\d]*)/gi,(o,t,a)=>t.toUpperCase()+a.toLowerCase()).replace(/[^a-z\d]/gi,"")}function f(e,o=!1){const t=a=>a.slice(0,1).toUpperCase()+a.slice(1);return o?e.split(" ").map(a=>t(a)).join(" "):t(e)}exports.camelToKebab=n;exports.capitalize=f;exports.kebabToCamel=r;exports.snakeToDotted=p;exports.toPascalCase=u;
|
package/lib/utils/dev.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|