aptechka 0.1.6 → 0.1.8
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-Bf-gPIQM.cjs +1 -0
- package/lib/{Animated-CJcYqJzq.js → Animated-Br_4OSth.js} +36 -35
- package/lib/{Damped-AHRBHNEQ.cjs → Damped-BwpMU9Gi.cjs} +1 -1
- package/lib/{Damped-Csj-9_gH.js → Damped-urvryQLo.js} +1 -1
- package/lib/abstract-elements/index.cjs +1 -1
- package/lib/abstract-elements/index.js +11 -14
- package/lib/accordion/AccordionElement.d.ts +1 -1
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +25 -26
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +2 -2
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +18 -18
- package/lib/connector/index.cjs +1 -1
- package/lib/connector/index.d.ts +1 -2
- package/lib/connector/index.js +31 -31
- package/lib/createStylesheet-BsVHqHhr.cjs +1 -0
- package/lib/createStylesheet-ITfBHk7A.js +8 -0
- package/lib/element-constructor/ElementConstructor.d.ts +27 -41
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.d.ts +1 -2
- package/lib/element-constructor/index.js +122 -639
- package/lib/element-constructor/knownSvgTags.d.ts +1 -0
- package/lib/element-constructor/tags.d.ts +119 -0
- package/lib/events-Crwi8fz6.cjs +1 -0
- package/lib/{events-CoqmkUxo.js → events-_C2CztxR.js} +1 -1
- package/lib/index-Bt91QUTY.cjs +9 -0
- package/lib/{index-DgtdcBEI.js → index-COirQu7j.js} +83 -92
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +33 -39
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +82 -85
- package/lib/select/SelectElement.d.ts +1 -1
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.d.ts +1 -1
- package/lib/select/index.js +1 -1
- package/lib/store/Derived.d.ts +1 -1
- package/lib/studio/index.cjs +6 -6
- package/lib/studio/index.js +322 -369
- package/lib/tags-8Y7LSTwg.js +779 -0
- package/lib/tags-pcim-Cws.cjs +1 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +6 -6
- package/lib/utils/events.d.ts +1 -1
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +1 -1
- package/lib/utils/ts-utility.d.ts +2 -2
- package/package.json +1 -9
- package/lib/Animated-DyZuTEQE.cjs +0 -1
- package/lib/ElementConstructor-9f-12v7T.cjs +0 -1
- package/lib/ElementConstructor-CoKM2CTK.js +0 -228
- package/lib/createStylesheet-BON7aJYs.js +0 -10
- package/lib/createStylesheet-uicRVW05.cjs +0 -1
- package/lib/element-constructor/htmlTags.d.ts +0 -115
- package/lib/element-constructor/svgTags.d.ts +0 -64
- package/lib/events-D68xg4dy.cjs +0 -1
- package/lib/htmlTags-BCNUG7oK.js +0 -683
- package/lib/htmlTags-BSQys9wH.cjs +0 -1
- package/lib/index-i_Ki9M-w.cjs +0 -9
- package/lib/jsx/ComponentElement.d.ts +0 -17
- package/lib/jsx/h.d.ts +0 -8
- package/lib/jsx/hooks.d.ts +0 -25
- package/lib/jsx/index.cjs +0 -1
- package/lib/jsx/index.d.ts +0 -4
- package/lib/jsx/index.js +0 -116
- package/lib/jsx/render.d.ts +0 -2
- package/lib/jsx/type.d.ts +0 -186
package/lib/modal/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { define as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { PopoverElement as
|
|
1
|
+
import { define as g } from "../custom-element/index.js";
|
|
2
|
+
import "../Store-JOKrNVEr.js";
|
|
3
|
+
import { i as w } from "../browser-0zX67oeU.js";
|
|
4
|
+
import { e as d, D as f, ay as u, aB as _ } from "../tags-8Y7LSTwg.js";
|
|
5
|
+
import { c as y } from "../createStylesheet-ITfBHk7A.js";
|
|
6
|
+
import { PopoverElement as C } from "../popover/index.js";
|
|
7
7
|
import { aptechkaTheme as h } from "../theme/index.js";
|
|
8
|
-
var
|
|
9
|
-
for (var n = r > 1 ? void 0 : r ?
|
|
8
|
+
var k = Object.defineProperty, x = Object.getOwnPropertyDescriptor, z = (t, e, o, r) => {
|
|
9
|
+
for (var n = r > 1 ? void 0 : r ? x(e, o) : e, l = t.length - 1, c; l >= 0; l--)
|
|
10
10
|
(c = t[l]) && (n = (r ? c(e, o, n) : c(n)) || n);
|
|
11
|
-
return r && n &&
|
|
11
|
+
return r && n && k(e, o, n), n;
|
|
12
12
|
}, b = (t, e, o) => {
|
|
13
13
|
if (!e.has(t))
|
|
14
14
|
throw TypeError("Cannot " + o);
|
|
15
|
-
},
|
|
15
|
+
}, a = (t, e, o) => (b(t, e, "read from private field"), o ? o.call(t) : e.get(t)), p = (t, e, o) => {
|
|
16
16
|
if (e.has(t))
|
|
17
17
|
throw TypeError("Cannot add the same private member more than once");
|
|
18
18
|
e instanceof WeakSet ? e.add(t) : e.set(t, o);
|
|
19
|
-
},
|
|
20
|
-
const
|
|
19
|
+
}, v = (t, e, o, r) => (b(t, e, "write to private field"), r ? r.call(t, o) : e.set(t, o), o), s, i;
|
|
20
|
+
const P = y({
|
|
21
21
|
":host": {
|
|
22
22
|
position: "fixed",
|
|
23
23
|
top: "0",
|
|
@@ -92,53 +92,47 @@ const S = C({
|
|
|
92
92
|
transform: "rotate(45deg)"
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
|
-
let
|
|
95
|
+
let m = class extends C {
|
|
96
96
|
constructor() {
|
|
97
|
-
super(),
|
|
98
|
-
|
|
97
|
+
super(), p(this, s, null), p(this, i, null), w && (this.openShadow(P), d(this, {
|
|
98
|
+
children: f({
|
|
99
99
|
class: "inner",
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
},
|
|
103
|
-
children: d({
|
|
100
|
+
outside: !0,
|
|
101
|
+
children: f({
|
|
104
102
|
class: "content",
|
|
105
103
|
children: [
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
target: this.id
|
|
110
|
-
},
|
|
104
|
+
d("e-popover-button", {
|
|
105
|
+
type: "close",
|
|
106
|
+
target: this.id,
|
|
111
107
|
class: "close-button",
|
|
112
108
|
children: [
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
name: "close-button"
|
|
116
|
-
},
|
|
109
|
+
u({
|
|
110
|
+
name: "close-button",
|
|
117
111
|
children: _({ class: "close-button-default" })
|
|
118
112
|
})
|
|
119
113
|
]
|
|
120
114
|
}),
|
|
121
|
-
|
|
115
|
+
u()
|
|
122
116
|
]
|
|
123
117
|
}),
|
|
124
|
-
ref: (t) =>
|
|
118
|
+
ref: (t) => v(this, i, t)
|
|
125
119
|
})
|
|
126
|
-
}),
|
|
127
|
-
|
|
120
|
+
}), v(this, s, new ResizeObserver(() => {
|
|
121
|
+
a(this, i).scrollHeight > a(this, i).clientHeight ? this.classList.add("overflow") : this.classList.remove("overflow");
|
|
128
122
|
})));
|
|
129
123
|
}
|
|
130
124
|
connectedCallback() {
|
|
131
|
-
super.connectedCallback(),
|
|
125
|
+
super.connectedCallback(), a(this, s).observe(this);
|
|
132
126
|
}
|
|
133
127
|
disconnectedCallback() {
|
|
134
|
-
super.disconnectedCallback(),
|
|
128
|
+
super.disconnectedCallback(), a(this, s).disconnect();
|
|
135
129
|
}
|
|
136
130
|
};
|
|
137
131
|
s = /* @__PURE__ */ new WeakMap();
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
],
|
|
132
|
+
i = /* @__PURE__ */ new WeakMap();
|
|
133
|
+
m = z([
|
|
134
|
+
g("e-modal")
|
|
135
|
+
], m);
|
|
142
136
|
export {
|
|
143
|
-
|
|
137
|
+
m as ModalElement
|
|
144
138
|
};
|
package/lib/scroll/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Ct=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var h=(i,e,s)=>(Ct(i,e,"read from private field"),s?s.call(i):e.get(i)),$=(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)},O=(i,e,s,n)=>(Ct(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Tt=require("../Store-D0_rDIsE.cjs"),Dt=require("../Derived-SjPdLJiZ.cjs"),At=require("../browser-CpzFX2xg.cjs"),V=require("../layout-8ryRAMGJ.cjs"),zt=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const Vt=require("../Damped-AHRBHNEQ.cjs"),x=require("../attribute/index.cjs"),Mt=require("../WheelControls-CfDeGCOU.cjs"),wt=require("../custom-element/index.cjs"),xt=require("../order/index.cjs"),pt=require("../window-resizer/index.cjs"),I=require("../scroll-entries/index.cjs"),Lt=require("../ElementConstructor-9f-12v7T.cjs"),B=require("../htmlTags-BSQys9wH.cjs"),Ot=require("../createStylesheet-uicRVW05.cjs"),It=require("../dom-qY2LdCVL.cjs");var Ht=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,Bt=(i,e,s,n)=>{for(var r=n>1?void 0:n?Ft(e,s):e,d=i.length-1,w;d>=0;d--)(w=i[d])&&(r=(n?w(e,s,r):w(r))||r);return n&&r&&Ht(e,s,r),r},yt=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(yt(i,e,"read from private field"),s?s.call(i):e.get(i)),l=(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)},m=(i,e,s,n)=>(yt(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s),f=(i,e,s)=>(yt(i,e,"access private method"),s),a,M,T,q,D,X,y,Y,j,tt,u,dt,c,et,st,_,p,k,H,b,G,R,N,ft,F,U,mt,kt,bt,Wt,it,vt,rt,_t,P,gt,St,Rt,nt,ht,Et,S,g,L,W;class Gt{constructor(e,s){$(this,S,void 0);$(this,g,void 0);$(this,L,0);$(this,W,0);O(this,S,e),O(this,g,s),I.scrollEntries.register(h(this,S))}get size(){return h(this,L)}get position(){return h(this,W)}destroy(){I.scrollEntries.unregister(h(this,S)),h(this,S).style.transform=""}resize(){O(this,L,h(this,g).vertical?h(this,S).offsetHeight:h(this,S).offsetWidth),O(this,W,h(this,g).vertical?V.getCumulativeOffsetTop(h(this,S)):V.getCumulativeOffsetLeft(h(this,S))),O(this,W,h(this,W)-h(this,g).contentPosition)}transform(){let e=0;h(this,g).infiniteAttribute.current&&h(this,g).overscroll&&h(this,W)+h(this,L)<h(this,g).currentScrollValue&&(e=h(this,g).distance*-1),I.scrollEntries.update(h(this,S),h(this,g).axisAttibute.current,e);const s=h(this,g).viewportSize-h(this,L),n=zt.clamp(h(this,g).currentScrollValue+e,h(this,W)-h(this,g).viewportSize-s,h(this,W)+h(this,L)+s);h(this,g).vertical?h(this,S).style.transform=`translate3d(0px, ${n*-1}px, 0px)`:h(this,S).style.transform=`translate3d(${n*-1}px, 0px, 0px)`}}S=new WeakMap,g=new WeakMap,L=new WeakMap,W=new WeakMap;const Kt=Ot.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"absolute",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends wt.CustomElement{constructor(e){if(super(),l(this,N),l(this,F),l(this,mt),l(this,bt),l(this,it),l(this,rt),l(this,St),l(this,ht),l(this,a,null),l(this,M,new x.Attribute(this,"axis","y")),l(this,T,new x.Attribute(this,"pages",0,{validate:s=>Math.max(0,s-1)})),l(this,q,new x.Attribute(this,"split",!1)),l(this,D,new x.Attribute(this,"sectional",!1)),l(this,X,new x.Attribute(this,"wheel-max-delta",!1)),l(this,y,new x.Attribute(this,"infinite",!1)),l(this,Y,new x.Attribute(this,"damping",.03)),l(this,j,new x.Attribute(this,"disabled",!1)),l(this,tt,new x.Attribute(this,"hibernated",!1)),l(this,u,null),l(this,dt,null),l(this,c,[]),l(this,et,0),l(this,st,0),l(this,_,0),l(this,p,0),l(this,k,null),l(this,H,null),l(this,b,new Tt.Store(0)),l(this,G,0),l(this,R,0),l(this,P,()=>{const s=this.currentScrollValue/t(this,p);if(m(this,et,this.vertical?V.getCumulativeOffsetTop(this):V.getCumulativeOffsetLeft(this)),m(this,st,this.vertical?V.getCumulativeOffsetTop(t(this,u)):V.getCumulativeOffsetLeft(t(this,u))),m(this,_,this.vertical?this.offsetHeight:this.offsetWidth),t(this,T).current){m(this,p,t(this,_)*t(this,T).current);const n=t(this,p)+t(this,_);this.vertical?(t(this,u).style.width=n+"px",t(this,u).style.height="100%"):(t(this,u).style.height=n+"px",t(this,u).style.width="100%")}else this.vertical?(t(this,u).style.width="100%",t(this,u).style.height="max-content",m(this,p,t(this,u).offsetHeight-t(this,_))):(t(this,u).style.width="max-content",t(this,u).style.height="100%",m(this,p,t(this,u).offsetWidth-t(this,_)));if(!t(this,y).current){const n=getComputedStyle(this);m(this,p,t(this,p)+(this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd))),t(this,a).max.current=t(this,p)}if(t(this,c).forEach(n=>{n.resize(),n.transform()}),t(this,y).current&&t(this,c).length){const n=t(this,c)[t(this,c).length-1],r=n.position+n.size-t(this,_),d=t(this,p)-r;m(this,R,n.position+n.size+d)}else m(this,R,t(this,p));if(t(this,D).current&&t(this,c).length){const n=t(this,c)[t(this,b).current];t(this,a).set(n.position,!0)}else t(this,a).set(s*t(this,p),!0)}),l(this,gt,()=>{const s=this.currentScrollValue;if(m(this,G,Math.max(0,s-t(this,p))),t(this,c).length){let n=0;for(let r=0;r<t(this,c).length;r++){const d=t(this,c)[r];d.transform(),this.targetScrollValue+this.viewportSize/2>=d.position&&(n=r)}t(this,b).current=n}else this.vertical?t(this,u).style.transform=`translate3d(0px, ${s*-1}px, 0px)`:t(this,u).style.transform=`translate3d(${s*-1}px, 0px, 0px)`;I.scrollEntries.update(this,t(this,M).current,s)}),l(this,nt,s=>{if(typeof s=="number")if(t(this,D).current){const n=Math.sign(s);t(this,c).length?this.shiftSections(n):t(this,a).shift(n*t(this,_))}else t(this,a).shift(s);else s==="min"?t(this,a).set(t(this,a).min.current):s==="max"&&t(this,a).set(t(this,a).delta)}),At.isBrowser){let s,n=e||this.getAttribute("name");n&&(s={name:n}),m(this,a,new Vt.Damped({damping:.01,min:0,order:xt.TICK_ORDER.SCROLL,passport:s})),this.openShadow(Kt),Lt.element(this,{attributes:{tabIndex:0},shadowChildren:[B.div({class:"static",children:[B.slot({attributes:{name:"static"}})]}),B.div({class:"content",children:[B.slot({ref:r=>m(this,dt,r)})],style:{flexDirection:new Dt.Derived(t(this,M),r=>r==="x"?"row":"column")},ref:r=>m(this,u,r)})]}),m(this,k,new Mt.WheelControls({element:this})),t(this,k).changeEvent.subscribe(t(this,nt)),m(this,H,new Mt.KeyboardControls({element:this})),t(this,H).changeEvent.subscribe(t(this,nt)),t(this,M).subscribe(({current:r})=>{t(this,u).style.flexDirection=r==="x"?"row":"column",t(this,k).axis=t(this,X).current?"max":r,this.isConnected&&t(this,P).call(this)}),t(this,X).subscribe(r=>{t(this,k).axis=r.current?"max":t(this,M).current}),t(this,T).subscribe(()=>{this.isConnected&&t(this,P).call(this)}),t(this,q).subscribe(({current:r})=>{this.isConnected&&(r?f(this,N,ft).call(this):f(this,F,U).call(this))}),t(this,D).subscribe(r=>{t(this,b).current=0,t(this,k).debounce=r.current,t(this,a).reset(),this.isConnected&&(r.current&&!r.previous?f(this,N,ft).call(this):!r.current&&r.previous&&f(this,F,U).call(this))}),t(this,y).subscribe(r=>{r.current?(this.isConnected&&(t(this,c).length||(t(this,q).current=!0)),t(this,c).length&&(t(this,a).max.current=1/0,t(this,a).min.current=-1/0)):(m(this,G,0),t(this,a).max.current=t(this,p),t(this,a).min.current=0)}),t(this,Y).subscribe(r=>{t(this,a).damping=r.current}),t(this,j).subscribe(r=>{r.current&&!r.previous?f(this,mt,kt).call(this):!r.current&&r.previous&&f(this,bt,Wt).call(this)}),t(this,tt).subscribe(r=>{r.current&&!r.previous?f(this,it,vt).call(this):!r.current&&r.previous&&f(this,rt,_t).call(this)})}}get currentScrollValue(){return f(this,ht,Et).call(this,"current")}get targetScrollValue(){return f(this,ht,Et).call(this,"target")}get damped(){return t(this,a)}get dampedAttibute(){return t(this,a)}get axisAttibute(){return t(this,M)}get pagesAttibute(){return t(this,T)}get splitAttibute(){return t(this,q)}get sectionalAttibute(){return t(this,D)}get infiniteAttribute(){return t(this,y)}get dampingAttibute(){return t(this,Y)}get disabledAttibute(){return t(this,j)}get hibernatedAttibute(){return t(this,tt)}get contentElement(){return t(this,u)}get position(){return t(this,et)}get contentPosition(){return t(this,st)}get viewportSize(){return t(this,_)}get scrollSize(){return t(this,p)}get counter(){return t(this,b)}get distance(){return t(this,R)}get overscroll(){return t(this,G)}get vertical(){return t(this,M).current==="y"}get currentProgress(){return this.currentScrollValue/t(this,R)}get targetProgress(){return this.targetScrollValue/t(this,R)}scrollToSection(e,s="smooth"){if(!t(this,c).length)return;const n=t(this,b).current;f(this,St,Rt).call(this,e);const r=t(this,c)[n],d=t(this,c)[t(this,b).current];if(r&&d){let w=0;const Q=t(this,c).length-1;t(this,y).current?t(this,b).current===0&&n===Q?w=t(this,p)+t(this,_)-r.position:t(this,b).current===Q&&n===0?w=d.position-(t(this,p)+t(this,_)):w=d.position-r.position:w=d.position-r.position,t(this,a).shift(w,s==="instant")}}shiftSections(e,s="smooth"){t(this,c).length&&this.scrollToSection(t(this,b).current+e,s)}connectedCallback(){f(this,rt,_t).call(this)}disconnectedCallback(){f(this,it,vt).call(this)}};a=new WeakMap;M=new WeakMap;T=new WeakMap;q=new WeakMap;D=new WeakMap;X=new WeakMap;y=new WeakMap;Y=new WeakMap;j=new WeakMap;tt=new WeakMap;u=new WeakMap;dt=new WeakMap;c=new WeakMap;et=new WeakMap;st=new WeakMap;_=new WeakMap;p=new WeakMap;k=new WeakMap;H=new WeakMap;b=new WeakMap;G=new WeakMap;R=new WeakMap;N=new WeakSet;ft=function(){f(this,F,U).call(this),t(this,dt).assignedElements().forEach(i=>{i instanceof HTMLElement&&t(this,c).push(new Gt(i,this))}),t(this,u).style.transform="",t(this,P).call(this)};F=new WeakSet;U=function(){t(this,c).forEach(i=>{i.destroy()}),m(this,c,[])};mt=new WeakSet;kt=function(){t(this,a).unsubscribe(t(this,gt)),t(this,a).unlistenAnimationFrame(),t(this,k).disconnect(),t(this,H).disconnect()};bt=new WeakSet;Wt=function(){t(this,a).subscribe(t(this,gt)),t(this,k).connect(),t(this,H).connect()};it=new WeakSet;vt=function(){pt.windowResizer.unsubscribe(t(this,P)),t(this,a).reset(),f(this,mt,kt).call(this),t(this,u).style.transform="",t(this,q).current&&f(this,F,U).call(this),I.scrollEntries.unregister(this)};rt=new WeakSet;_t=function(){t(this,q).current&&f(this,N,ft).call(this),I.scrollEntries.register(this),pt.windowResizer.subscribe(t(this,P),xt.RESIZE_ORDER.SCROLL),f(this,bt,Wt).call(this)};P=new WeakMap;gt=new WeakMap;St=new WeakSet;Rt=function(i){t(this,y).current?(t(this,b).current=i%t(this,c).length,t(this,b).current=t(this,b).current<0?t(this,c).length+t(this,b).current:t(this,b).current):t(this,b).current=zt.clamp(i,0,t(this,c).length-1)};nt=new WeakMap;ht=new WeakSet;Et=function(i="current"){if(t(this,y).current&&t(this,c).length){const e=t(this,a)[i]%(t(this,p)+t(this,_));return e<0?t(this,p)+e+t(this,_):e}else return t(this,a)[i]};exports.ScrollElement=Bt([wt.define("e-scroll")],exports.ScrollElement);var J;class Zt extends wt.CustomElement{constructor(){super(...arguments);$(this,J,null)}get scrollElement(){return h(this,J)}connectedCallback(){const s=It.findParentElement(this,exports.ScrollElement);s instanceof exports.ScrollElement?O(this,J,s):console.error(this,"e-scroll not found")}}J=new WeakMap;var Nt=Object.defineProperty,Ut=Object.getOwnPropertyDescriptor,Jt=(i,e,s,n)=>{for(var r=n>1?void 0:n?Ut(e,s):e,d=i.length-1,w;d>=0;d--)(w=i[d])&&(r=(n?w(e,s,r):w(r))||r);return n&&r&&Nt(e,s,r),r},qt=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},o=(i,e,s)=>(qt(i,e,"read from private field"),s?s.call(i):e.get(i)),E=(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)},C=(i,e,s,n)=>(qt(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s),lt,v,A,z,K,Z,ot,at,ct,ut;const Qt=Ot.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:"#efefef"},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:"#181818",borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends Zt{constructor(){super(),E(this,lt,null),E(this,v,null),E(this,A,!1),E(this,z,0),E(this,K,0),E(this,Z,0),E(this,ot,()=>{C(this,A,this.offsetWidth>this.offsetHeight);const e=o(this,A)?this.offsetWidth:this.offsetHeight;C(this,z,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),C(this,z,Math.max(o(this,z),30)),o(this,A)?(o(this,v).style.width=o(this,z)+"px",o(this,v).style.height="100%"):(o(this,v).style.width="100%",o(this,v).style.height=o(this,z)+"px"),C(this,K,e-o(this,z)),this.scrollElement.scrollSize||(this.style.display="none")}),E(this,at,()=>{C(this,Z,this.scrollElement.currentProgress*o(this,K)),o(this,A)?o(this,v).style.transform=`translate3d(${o(this,Z)}px, 0px, 0px)`:o(this,v).style.transform=`translate3d(0px, ${o(this,Z)}px, 0px)`}),E(this,ct,()=>{this.setAttribute("axis",this.scrollElement.axisAttibute.current)}),E(this,ut,e=>{const s=w=>{const Q=o(this,A)?w.x:w.y,Pt=this.scrollElement.distance/o(this,K),$t=(Q-d)*Pt;this.scrollElement.damped.set(r+$t)},n=()=>{removeEventListener("pointermove",s),removeEventListener("pointerup",n),removeEventListener("touchend",n)};addEventListener("pointermove",s),addEventListener("pointerup",n),addEventListener("touchend",n);const r=this.scrollElement.damped.target,d=o(this,A)?e.x:e.y}),At.isBrowser&&(this.openShadow(Qt),Lt.element(this,{shadowChildren:[B.slot({ref:e=>C(this,lt,e)})]}))}get thumbElement(){return o(this,v)}connectedCallback(){super.connectedCallback();const e=o(this,lt).assignedElements()[0];e instanceof HTMLElement?C(this,v,e):(C(this,v,document.createElement("div")),o(this,v).classList.add("default-thumb"),this.shadowRoot.appendChild(o(this,v))),o(this,v).addEventListener("pointerdown",o(this,ut)),pt.windowResizer.subscribe(o(this,ot),xt.RESIZE_ORDER.SCROLL+1),this.scrollElement.damped.subscribe(o(this,at)),this.scrollElement.axisAttibute.subscribe(o(this,ct))}disconnectedCallback(){o(this,v).removeEventListener("pointerdown",o(this,ut)),pt.windowResizer.unsubscribe(o(this,ot)),this.scrollElement.damped.unsubscribe(o(this,at)),this.scrollElement.axisAttibute.unsubscribe(o(this,ct))}};lt=new WeakMap;v=new WeakMap;A=new WeakMap;z=new WeakMap;K=new WeakMap;Z=new WeakMap;ot=new WeakMap;at=new WeakMap;ct=new WeakMap;ut=new WeakMap;exports.ScrollbarElement=Jt([wt.define("e-scrollbar")],exports.ScrollbarElement);
|
|
1
|
+
"use strict";var Ct=(s,e,i)=>{if(!e.has(s))throw TypeError("Cannot "+i)};var h=(s,e,i)=>(Ct(s,e,"read from private field"),i?i.call(s):e.get(s)),D=(s,e,i)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,i)},O=(s,e,i,n)=>(Ct(s,e,"write to private field"),n?n.call(s,i):e.set(s,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const qt=require("../Store-D0_rDIsE.cjs"),Dt=require("../Derived-SjPdLJiZ.cjs"),At=require("../browser-CpzFX2xg.cjs"),I=require("../layout-8ryRAMGJ.cjs"),zt=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const Tt=require("../Damped-BwpMU9Gi.cjs"),x=require("../attribute/index.cjs"),Mt=require("../WheelControls-CfDeGCOU.cjs"),gt=require("../custom-element/index.cjs"),xt=require("../order/index.cjs"),pt=require("../window-resizer/index.cjs"),H=require("../scroll-entries/index.cjs"),P=require("../tags-pcim-Cws.cjs"),Lt=require("../createStylesheet-BsVHqHhr.cjs"),Vt=require("../dom-qY2LdCVL.cjs");var It=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Ft=(s,e,i,n)=>{for(var r=n>1?void 0:n?Ht(e,i):e,d=s.length-1,g;d>=0;d--)(g=s[d])&&(r=(n?g(e,i,r):g(r))||r);return n&&r&&It(e,i,r),r},yt=(s,e,i)=>{if(!e.has(s))throw TypeError("Cannot "+i)},t=(s,e,i)=>(yt(s,e,"read from private field"),i?i.call(s):e.get(s)),l=(s,e,i)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,i)},m=(s,e,i,n)=>(yt(s,e,"write to private field"),n?n.call(s,i):e.set(s,i),i),f=(s,e,i)=>(yt(s,e,"access private method"),i),a,M,T,$,V,X,y,Y,j,tt,u,dt,c,et,it,_,p,k,F,b,G,R,N,ft,B,U,mt,kt,bt,Wt,st,vt,rt,_t,q,wt,St,Ot,nt,ht,Et,S,w,L,W;class Bt{constructor(e,i){D(this,S,void 0);D(this,w,void 0);D(this,L,0);D(this,W,0);O(this,S,e),O(this,w,i),H.scrollEntries.register(h(this,S))}get size(){return h(this,L)}get position(){return h(this,W)}destroy(){H.scrollEntries.unregister(h(this,S)),h(this,S).style.transform=""}resize(){O(this,L,h(this,w).vertical?h(this,S).offsetHeight:h(this,S).offsetWidth),O(this,W,h(this,w).vertical?I.getCumulativeOffsetTop(h(this,S)):I.getCumulativeOffsetLeft(h(this,S))),O(this,W,h(this,W)-h(this,w).contentPosition)}transform(){let e=0;h(this,w).infiniteAttribute.current&&h(this,w).overscroll&&h(this,W)+h(this,L)<h(this,w).currentScrollValue&&(e=h(this,w).distance*-1),H.scrollEntries.update(h(this,S),h(this,w).axisAttibute.current,e);const i=h(this,w).viewportSize-h(this,L),n=zt.clamp(h(this,w).currentScrollValue+e,h(this,W)-h(this,w).viewportSize-i,h(this,W)+h(this,L)+i);h(this,w).vertical?h(this,S).style.transform=`translate3d(0px, ${n*-1}px, 0px)`:h(this,S).style.transform=`translate3d(${n*-1}px, 0px, 0px)`}}S=new WeakMap,w=new WeakMap,L=new WeakMap,W=new WeakMap;const Gt=Lt.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"absolute",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends gt.CustomElement{constructor(e){if(super(),l(this,N),l(this,B),l(this,mt),l(this,bt),l(this,st),l(this,rt),l(this,St),l(this,ht),l(this,a,null),l(this,M,new x.Attribute(this,"axis","y")),l(this,T,new x.Attribute(this,"pages",0,{validate:i=>Math.max(0,i-1)})),l(this,$,new x.Attribute(this,"split",!1)),l(this,V,new x.Attribute(this,"sectional",!1)),l(this,X,new x.Attribute(this,"wheel-max-delta",!1)),l(this,y,new x.Attribute(this,"infinite",!1)),l(this,Y,new x.Attribute(this,"damping",.03)),l(this,j,new x.Attribute(this,"disabled",!1)),l(this,tt,new x.Attribute(this,"hibernated",!1)),l(this,u,null),l(this,dt,null),l(this,c,[]),l(this,et,0),l(this,it,0),l(this,_,0),l(this,p,0),l(this,k,null),l(this,F,null),l(this,b,new qt.Store(0)),l(this,G,0),l(this,R,0),l(this,q,()=>{const i=this.currentScrollValue/t(this,p);if(m(this,et,this.vertical?I.getCumulativeOffsetTop(this):I.getCumulativeOffsetLeft(this)),m(this,it,this.vertical?I.getCumulativeOffsetTop(t(this,u)):I.getCumulativeOffsetLeft(t(this,u))),m(this,_,this.vertical?this.offsetHeight:this.offsetWidth),t(this,T).current){m(this,p,t(this,_)*t(this,T).current);const n=t(this,p)+t(this,_);this.vertical?(t(this,u).style.width=n+"px",t(this,u).style.height="100%"):(t(this,u).style.height=n+"px",t(this,u).style.width="100%")}else this.vertical?(t(this,u).style.width="100%",t(this,u).style.height="max-content",m(this,p,t(this,u).offsetHeight-t(this,_))):(t(this,u).style.width="max-content",t(this,u).style.height="100%",m(this,p,t(this,u).offsetWidth-t(this,_)));if(!t(this,y).current){const n=getComputedStyle(this);m(this,p,t(this,p)+(this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd))),t(this,a).max.current=t(this,p)}if(t(this,c).forEach(n=>{n.resize(),n.transform()}),t(this,y).current&&t(this,c).length){const n=t(this,c)[t(this,c).length-1],r=n.position+n.size-t(this,_),d=t(this,p)-r;m(this,R,n.position+n.size+d)}else m(this,R,t(this,p));if(t(this,V).current&&t(this,c).length){const n=t(this,c)[t(this,b).current];t(this,a).set(n.position,!0)}else t(this,a).set(i*t(this,p),!0)}),l(this,wt,()=>{const i=this.currentScrollValue;if(m(this,G,Math.max(0,i-t(this,p))),t(this,c).length){let n=0;for(let r=0;r<t(this,c).length;r++){const d=t(this,c)[r];d.transform(),this.targetScrollValue+this.viewportSize/2>=d.position&&(n=r)}t(this,b).current=n}else this.vertical?t(this,u).style.transform=`translate3d(0px, ${i*-1}px, 0px)`:t(this,u).style.transform=`translate3d(${i*-1}px, 0px, 0px)`;H.scrollEntries.update(this,t(this,M).current,i)}),l(this,nt,i=>{if(typeof i=="number")if(t(this,V).current){const n=Math.sign(i);t(this,c).length?this.shiftSections(n):t(this,a).shift(n*t(this,_))}else t(this,a).shift(i);else i==="min"?t(this,a).set(t(this,a).min.current):i==="max"&&t(this,a).set(t(this,a).delta)}),At.isBrowser){let i,n=e||this.getAttribute("name");n&&(i={name:n}),m(this,a,new Tt.Damped({damping:.01,min:0,order:xt.TICK_ORDER.SCROLL,passport:i})),this.openShadow(Gt),P.element(this,{tabIndex:0,children:[P.div({class:"static",children:[P.slot({name:"static"})]}),P.div({class:"content",children:[P.slot({ref:r=>m(this,dt,r)})],style:{flexDirection:new Dt.Derived(t(this,M),r=>r==="x"?"row":"column")},ref:r=>m(this,u,r)})]}),m(this,k,new Mt.WheelControls({element:this})),t(this,k).changeEvent.subscribe(t(this,nt)),m(this,F,new Mt.KeyboardControls({element:this})),t(this,F).changeEvent.subscribe(t(this,nt)),t(this,M).subscribe(({current:r})=>{t(this,u).style.flexDirection=r==="x"?"row":"column",t(this,k).axis=t(this,X).current?"max":r,this.isConnected&&t(this,q).call(this)}),t(this,X).subscribe(r=>{t(this,k).axis=r.current?"max":t(this,M).current}),t(this,T).subscribe(()=>{this.isConnected&&t(this,q).call(this)}),t(this,$).subscribe(({current:r})=>{this.isConnected&&(r?f(this,N,ft).call(this):f(this,B,U).call(this))}),t(this,V).subscribe(r=>{t(this,b).current=0,t(this,k).debounce=r.current,t(this,a).reset(),this.isConnected&&(r.current&&!r.previous?f(this,N,ft).call(this):!r.current&&r.previous&&f(this,B,U).call(this))}),t(this,y).subscribe(r=>{r.current?(this.isConnected&&(t(this,c).length||(t(this,$).current=!0)),t(this,c).length&&(t(this,a).max.current=1/0,t(this,a).min.current=-1/0)):(m(this,G,0),t(this,a).max.current=t(this,p),t(this,a).min.current=0)}),t(this,Y).subscribe(r=>{t(this,a).damping=r.current}),t(this,j).subscribe(r=>{r.current&&!r.previous?f(this,mt,kt).call(this):!r.current&&r.previous&&f(this,bt,Wt).call(this)}),t(this,tt).subscribe(r=>{r.current&&!r.previous?f(this,st,vt).call(this):!r.current&&r.previous&&f(this,rt,_t).call(this)})}}get currentScrollValue(){return f(this,ht,Et).call(this,"current")}get targetScrollValue(){return f(this,ht,Et).call(this,"target")}get damped(){return t(this,a)}get dampedAttibute(){return t(this,a)}get axisAttibute(){return t(this,M)}get pagesAttibute(){return t(this,T)}get splitAttibute(){return t(this,$)}get sectionalAttibute(){return t(this,V)}get infiniteAttribute(){return t(this,y)}get dampingAttibute(){return t(this,Y)}get disabledAttibute(){return t(this,j)}get hibernatedAttibute(){return t(this,tt)}get contentElement(){return t(this,u)}get position(){return t(this,et)}get contentPosition(){return t(this,it)}get viewportSize(){return t(this,_)}get scrollSize(){return t(this,p)}get counter(){return t(this,b)}get distance(){return t(this,R)}get overscroll(){return t(this,G)}get vertical(){return t(this,M).current==="y"}get currentProgress(){return this.currentScrollValue/t(this,R)}get targetProgress(){return this.targetScrollValue/t(this,R)}scrollToSection(e,i="smooth"){if(!t(this,c).length)return;const n=t(this,b).current;f(this,St,Ot).call(this,e);const r=t(this,c)[n],d=t(this,c)[t(this,b).current];if(r&&d){let g=0;const Q=t(this,c).length-1;t(this,y).current?t(this,b).current===0&&n===Q?g=t(this,p)+t(this,_)-r.position:t(this,b).current===Q&&n===0?g=d.position-(t(this,p)+t(this,_)):g=d.position-r.position:g=d.position-r.position,t(this,a).shift(g,i==="instant")}}shiftSections(e,i="smooth"){t(this,c).length&&this.scrollToSection(t(this,b).current+e,i)}connectedCallback(){f(this,rt,_t).call(this)}disconnectedCallback(){f(this,st,vt).call(this)}};a=new WeakMap;M=new WeakMap;T=new WeakMap;$=new WeakMap;V=new WeakMap;X=new WeakMap;y=new WeakMap;Y=new WeakMap;j=new WeakMap;tt=new WeakMap;u=new WeakMap;dt=new WeakMap;c=new WeakMap;et=new WeakMap;it=new WeakMap;_=new WeakMap;p=new WeakMap;k=new WeakMap;F=new WeakMap;b=new WeakMap;G=new WeakMap;R=new WeakMap;N=new WeakSet;ft=function(){f(this,B,U).call(this),t(this,dt).assignedElements().forEach(s=>{s instanceof HTMLElement&&t(this,c).push(new Bt(s,this))}),t(this,u).style.transform="",t(this,q).call(this)};B=new WeakSet;U=function(){t(this,c).forEach(s=>{s.destroy()}),m(this,c,[])};mt=new WeakSet;kt=function(){t(this,a).unsubscribe(t(this,wt)),t(this,a).unlistenAnimationFrame(),t(this,k).disconnect(),t(this,F).disconnect()};bt=new WeakSet;Wt=function(){t(this,a).subscribe(t(this,wt)),t(this,k).connect(),t(this,F).connect()};st=new WeakSet;vt=function(){pt.windowResizer.unsubscribe(t(this,q)),t(this,a).reset(),f(this,mt,kt).call(this),t(this,u).style.transform="",t(this,$).current&&f(this,B,U).call(this),H.scrollEntries.unregister(this)};rt=new WeakSet;_t=function(){t(this,$).current&&f(this,N,ft).call(this),H.scrollEntries.register(this),pt.windowResizer.subscribe(t(this,q),xt.RESIZE_ORDER.SCROLL),f(this,bt,Wt).call(this)};q=new WeakMap;wt=new WeakMap;St=new WeakSet;Ot=function(s){t(this,y).current?(t(this,b).current=s%t(this,c).length,t(this,b).current=t(this,b).current<0?t(this,c).length+t(this,b).current:t(this,b).current):t(this,b).current=zt.clamp(s,0,t(this,c).length-1)};nt=new WeakMap;ht=new WeakSet;Et=function(s="current"){if(t(this,y).current&&t(this,c).length){const e=t(this,a)[s]%(t(this,p)+t(this,_));return e<0?t(this,p)+e+t(this,_):e}else return t(this,a)[s]};exports.ScrollElement=Ft([gt.define("e-scroll")],exports.ScrollElement);var J;class Kt extends gt.CustomElement{constructor(){super(...arguments);D(this,J,null)}get scrollElement(){return h(this,J)}connectedCallback(){const i=Vt.findParentElement(this,exports.ScrollElement);i instanceof exports.ScrollElement?O(this,J,i):console.error(this,"e-scroll not found")}}J=new WeakMap;var Zt=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,Ut=(s,e,i,n)=>{for(var r=n>1?void 0:n?Nt(e,i):e,d=s.length-1,g;d>=0;d--)(g=s[d])&&(r=(n?g(e,i,r):g(r))||r);return n&&r&&Zt(e,i,r),r},Rt=(s,e,i)=>{if(!e.has(s))throw TypeError("Cannot "+i)},o=(s,e,i)=>(Rt(s,e,"read from private field"),i?i.call(s):e.get(s)),E=(s,e,i)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,i)},C=(s,e,i,n)=>(Rt(s,e,"write to private field"),n?n.call(s,i):e.set(s,i),i),lt,v,A,z,K,Z,ot,at,ct,ut;const Jt=Lt.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:"#efefef"},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:"#181818",borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends Kt{constructor(){super(),E(this,lt,null),E(this,v,null),E(this,A,!1),E(this,z,0),E(this,K,0),E(this,Z,0),E(this,ot,()=>{C(this,A,this.offsetWidth>this.offsetHeight);const e=o(this,A)?this.offsetWidth:this.offsetHeight;C(this,z,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),C(this,z,Math.max(o(this,z),30)),o(this,A)?(o(this,v).style.width=o(this,z)+"px",o(this,v).style.height="100%"):(o(this,v).style.width="100%",o(this,v).style.height=o(this,z)+"px"),C(this,K,e-o(this,z)),this.scrollElement.scrollSize||(this.style.display="none")}),E(this,at,()=>{C(this,Z,this.scrollElement.currentProgress*o(this,K)),o(this,A)?o(this,v).style.transform=`translate3d(${o(this,Z)}px, 0px, 0px)`:o(this,v).style.transform=`translate3d(0px, ${o(this,Z)}px, 0px)`}),E(this,ct,()=>{this.setAttribute("axis",this.scrollElement.axisAttibute.current)}),E(this,ut,e=>{const i=g=>{const Q=o(this,A)?g.x:g.y,Pt=this.scrollElement.distance/o(this,K),$t=(Q-d)*Pt;this.scrollElement.damped.set(r+$t)},n=()=>{removeEventListener("pointermove",i),removeEventListener("pointerup",n),removeEventListener("touchend",n)};addEventListener("pointermove",i),addEventListener("pointerup",n),addEventListener("touchend",n);const r=this.scrollElement.damped.target,d=o(this,A)?e.x:e.y}),At.isBrowser&&(this.openShadow(Jt),P.element(this,{children:[P.slot({ref:e=>C(this,lt,e)})]}))}get thumbElement(){return o(this,v)}connectedCallback(){super.connectedCallback();const e=o(this,lt).assignedElements()[0];e instanceof HTMLElement?C(this,v,e):(C(this,v,document.createElement("div")),o(this,v).classList.add("default-thumb"),this.shadowRoot.appendChild(o(this,v))),o(this,v).addEventListener("pointerdown",o(this,ut)),pt.windowResizer.subscribe(o(this,ot),xt.RESIZE_ORDER.SCROLL+1),this.scrollElement.damped.subscribe(o(this,at)),this.scrollElement.axisAttibute.subscribe(o(this,ct))}disconnectedCallback(){o(this,v).removeEventListener("pointerdown",o(this,ut)),pt.windowResizer.unsubscribe(o(this,ot)),this.scrollElement.damped.unsubscribe(o(this,at)),this.scrollElement.axisAttibute.unsubscribe(o(this,ct))}};lt=new WeakMap;v=new WeakMap;A=new WeakMap;z=new WeakMap;K=new WeakMap;Z=new WeakMap;ot=new WeakMap;at=new WeakMap;ct=new WeakMap;ut=new WeakMap;exports.ScrollbarElement=Ut([gt.define("e-scrollbar")],exports.ScrollbarElement);
|
package/lib/scroll/index.js
CHANGED
|
@@ -2,32 +2,31 @@ var yt = (i, s, e) => {
|
|
|
2
2
|
if (!s.has(i))
|
|
3
3
|
throw TypeError("Cannot " + e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
5
|
+
var r = (i, s, e) => (yt(i, s, "read from private field"), e ? e.call(i) : s.get(i)), V = (i, s, e) => {
|
|
6
6
|
if (s.has(i))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
s instanceof WeakSet ? s.add(i) : s.set(i, e);
|
|
9
|
-
}, $ = (i, s, e,
|
|
9
|
+
}, $ = (i, s, e, n) => (yt(i, s, "write to private field"), n ? n.call(i, e) : s.set(i, e), e);
|
|
10
10
|
import { S as Ht } from "../Store-JOKrNVEr.js";
|
|
11
11
|
import { D as Ft } from "../Derived-Bc88XJ8J.js";
|
|
12
12
|
import { i as At } from "../browser-0zX67oeU.js";
|
|
13
13
|
import { a as gt, g as wt } from "../layout-HoBT_Da2.js";
|
|
14
14
|
import { c as zt } from "../math-BOBiC4TN.js";
|
|
15
15
|
import "../ticker/index.js";
|
|
16
|
-
import { D as Bt } from "../Damped-
|
|
16
|
+
import { D as Bt } from "../Damped-urvryQLo.js";
|
|
17
17
|
import { Attribute as E } from "../attribute/index.js";
|
|
18
18
|
import { W as Kt, K as Gt } from "../WheelControls-CX9WUbBC.js";
|
|
19
19
|
import { CustomElement as Lt, define as $t } from "../custom-element/index.js";
|
|
20
20
|
import { TICK_ORDER as Nt, RESIZE_ORDER as Pt } from "../order/index.js";
|
|
21
21
|
import { windowResizer as ot } from "../window-resizer/index.js";
|
|
22
22
|
import { scrollEntries as I } from "../scroll-entries/index.js";
|
|
23
|
-
import { e as Ot } from "../
|
|
24
|
-
import {
|
|
25
|
-
import { c as Vt } from "../createStylesheet-BON7aJYs.js";
|
|
23
|
+
import { e as Ot, D as Mt, ay as bt } from "../tags-8Y7LSTwg.js";
|
|
24
|
+
import { c as Dt } from "../createStylesheet-ITfBHk7A.js";
|
|
26
25
|
import { f as Ut } from "../dom-BY7JhTx5.js";
|
|
27
|
-
var Zt = Object.defineProperty, qt = Object.getOwnPropertyDescriptor, Jt = (i, s, e,
|
|
28
|
-
for (var a =
|
|
29
|
-
(x = i[g]) && (a = (
|
|
30
|
-
return
|
|
26
|
+
var Zt = Object.defineProperty, qt = Object.getOwnPropertyDescriptor, Jt = (i, s, e, n) => {
|
|
27
|
+
for (var a = n > 1 ? void 0 : n ? qt(s, e) : s, g = i.length - 1, x; g >= 0; g--)
|
|
28
|
+
(x = i[g]) && (a = (n ? x(s, e, a) : x(a)) || a);
|
|
29
|
+
return n && a && Zt(s, e, a), a;
|
|
31
30
|
}, Et = (i, s, e) => {
|
|
32
31
|
if (!s.has(i))
|
|
33
32
|
throw TypeError("Cannot " + e);
|
|
@@ -35,44 +34,44 @@ var Zt = Object.defineProperty, qt = Object.getOwnPropertyDescriptor, Jt = (i, s
|
|
|
35
34
|
if (s.has(i))
|
|
36
35
|
throw TypeError("Cannot add the same private member more than once");
|
|
37
36
|
s instanceof WeakSet ? s.add(i) : s.set(i, e);
|
|
38
|
-
}, d = (i, s, e,
|
|
37
|
+
}, d = (i, s, e, n) => (Et(i, s, "write to private field"), n ? n.call(i, e) : s.set(i, e), e), f = (i, s, e) => (Et(i, s, "access private method"), e), o, C, R, O, T, q, k, J, Q, X, u, ct, c, Y, j, v, p, W, H, m, B, P, N, ut, F, U, pt, kt, ft, Wt, tt, vt, et, _t, D, mt, xt, Vt, st, it, St, _, w, L, y;
|
|
39
38
|
class Qt {
|
|
40
39
|
constructor(s, e) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
$(this, _, s), $(this, w, e), I.register(
|
|
40
|
+
V(this, _, void 0);
|
|
41
|
+
V(this, w, void 0);
|
|
42
|
+
V(this, L, 0);
|
|
43
|
+
V(this, y, 0);
|
|
44
|
+
$(this, _, s), $(this, w, e), I.register(r(this, _));
|
|
46
45
|
}
|
|
47
46
|
get size() {
|
|
48
|
-
return
|
|
47
|
+
return r(this, L);
|
|
49
48
|
}
|
|
50
49
|
get position() {
|
|
51
|
-
return
|
|
50
|
+
return r(this, y);
|
|
52
51
|
}
|
|
53
52
|
destroy() {
|
|
54
|
-
I.unregister(
|
|
53
|
+
I.unregister(r(this, _)), r(this, _).style.transform = "";
|
|
55
54
|
}
|
|
56
55
|
resize() {
|
|
57
|
-
$(this, L,
|
|
56
|
+
$(this, L, r(this, w).vertical ? r(this, _).offsetHeight : r(this, _).offsetWidth), $(this, y, r(this, w).vertical ? gt(r(this, _)) : wt(r(this, _))), $(this, y, r(this, y) - r(this, w).contentPosition);
|
|
58
57
|
}
|
|
59
58
|
transform() {
|
|
60
59
|
let s = 0;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
r(this, w).infiniteAttribute.current && r(this, w).overscroll && r(this, y) + r(this, L) < r(this, w).currentScrollValue && (s = r(this, w).distance * -1), I.update(
|
|
61
|
+
r(this, _),
|
|
62
|
+
r(this, w).axisAttibute.current,
|
|
64
63
|
s
|
|
65
64
|
);
|
|
66
|
-
const e =
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
const e = r(this, w).viewportSize - r(this, L), n = zt(
|
|
66
|
+
r(this, w).currentScrollValue + s,
|
|
67
|
+
r(this, y) - r(this, w).viewportSize - e,
|
|
68
|
+
r(this, y) + r(this, L) + e
|
|
70
69
|
);
|
|
71
|
-
|
|
70
|
+
r(this, w).vertical ? r(this, _).style.transform = `translate3d(0px, ${n * -1}px, 0px)` : r(this, _).style.transform = `translate3d(${n * -1}px, 0px, 0px)`;
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
_ = new WeakMap(), w = new WeakMap(), L = new WeakMap(), y = new WeakMap();
|
|
75
|
-
const Xt =
|
|
74
|
+
const Xt = Dt({
|
|
76
75
|
":host": {
|
|
77
76
|
position: "relative",
|
|
78
77
|
width: "100%",
|
|
@@ -113,7 +112,7 @@ let dt = class extends Lt {
|
|
|
113
112
|
this,
|
|
114
113
|
"wheel-max-delta",
|
|
115
114
|
!1
|
|
116
|
-
)), h(this, k, new E(this, "infinite", !1)), h(this, J, new E(this, "damping", 0.03)), h(this, Q, new E(this, "disabled", !1)), h(this, X, new E(this, "hibernated", !1)), h(this, u, null), h(this, ct, null), h(this, c, []), h(this, Y, 0), h(this, j, 0), h(this, v, 0), h(this, p, 0), h(this, W, null), h(this, H, null), h(this, m, new Ht(0)), h(this, B, 0), h(this, P, 0), h(this,
|
|
115
|
+
)), h(this, k, new E(this, "infinite", !1)), h(this, J, new E(this, "damping", 0.03)), h(this, Q, new E(this, "disabled", !1)), h(this, X, new E(this, "hibernated", !1)), h(this, u, null), h(this, ct, null), h(this, c, []), h(this, Y, 0), h(this, j, 0), h(this, v, 0), h(this, p, 0), h(this, W, null), h(this, H, null), h(this, m, new Ht(0)), h(this, B, 0), h(this, P, 0), h(this, D, () => {
|
|
117
116
|
const s = this.currentScrollValue / t(this, p);
|
|
118
117
|
if (d(this, Y, this.vertical ? gt(this) : wt(this)), d(this, j, this.vertical ? gt(t(this, u)) : wt(t(this, u))), d(this, v, this.vertical ? this.offsetHeight : this.offsetWidth), t(this, R).current) {
|
|
119
118
|
d(this, p, t(this, v) * t(this, R).current);
|
|
@@ -128,7 +127,7 @@ let dt = class extends Lt {
|
|
|
128
127
|
if (t(this, c).forEach((e) => {
|
|
129
128
|
e.resize(), e.transform();
|
|
130
129
|
}), t(this, k).current && t(this, c).length) {
|
|
131
|
-
const e = t(this, c)[t(this, c).length - 1],
|
|
130
|
+
const e = t(this, c)[t(this, c).length - 1], n = e.position + e.size - t(this, v), a = t(this, p) - n;
|
|
132
131
|
d(this, P, e.position + e.size + a);
|
|
133
132
|
} else
|
|
134
133
|
d(this, P, t(this, p));
|
|
@@ -141,9 +140,9 @@ let dt = class extends Lt {
|
|
|
141
140
|
const s = this.currentScrollValue;
|
|
142
141
|
if (d(this, B, Math.max(0, s - t(this, p))), t(this, c).length) {
|
|
143
142
|
let e = 0;
|
|
144
|
-
for (let
|
|
145
|
-
const a = t(this, c)[
|
|
146
|
-
a.transform(), this.targetScrollValue + this.viewportSize / 2 >= a.position && (e =
|
|
143
|
+
for (let n = 0; n < t(this, c).length; n++) {
|
|
144
|
+
const a = t(this, c)[n];
|
|
145
|
+
a.transform(), this.targetScrollValue + this.viewportSize / 2 >= a.position && (e = n);
|
|
147
146
|
}
|
|
148
147
|
t(this, m).current = e;
|
|
149
148
|
} else
|
|
@@ -168,44 +167,42 @@ let dt = class extends Lt {
|
|
|
168
167
|
order: Nt.SCROLL,
|
|
169
168
|
passport: s
|
|
170
169
|
})), this.openShadow(Xt), Ot(this, {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
},
|
|
174
|
-
shadowChildren: [
|
|
170
|
+
tabIndex: 0,
|
|
171
|
+
children: [
|
|
175
172
|
Mt({
|
|
176
173
|
class: "static",
|
|
177
|
-
children: [bt({
|
|
174
|
+
children: [bt({ name: "static" })]
|
|
178
175
|
}),
|
|
179
176
|
Mt({
|
|
180
177
|
class: "content",
|
|
181
|
-
children: [bt({ ref: (
|
|
178
|
+
children: [bt({ ref: (n) => d(this, ct, n) })],
|
|
182
179
|
style: {
|
|
183
180
|
flexDirection: new Ft(
|
|
184
181
|
t(this, C),
|
|
185
|
-
(
|
|
182
|
+
(n) => n === "x" ? "row" : "column"
|
|
186
183
|
)
|
|
187
184
|
},
|
|
188
|
-
ref: (
|
|
185
|
+
ref: (n) => d(this, u, n)
|
|
189
186
|
})
|
|
190
187
|
]
|
|
191
|
-
}), d(this, W, new Kt({ element: this })), t(this, W).changeEvent.subscribe(t(this, st)), d(this, H, new Gt({ element: this })), t(this, H).changeEvent.subscribe(t(this, st)), t(this, C).subscribe(({ current:
|
|
192
|
-
t(this, u).style.flexDirection =
|
|
193
|
-
}), t(this, q).subscribe((
|
|
194
|
-
t(this, W).axis =
|
|
188
|
+
}), d(this, W, new Kt({ element: this })), t(this, W).changeEvent.subscribe(t(this, st)), d(this, H, new Gt({ element: this })), t(this, H).changeEvent.subscribe(t(this, st)), t(this, C).subscribe(({ current: n }) => {
|
|
189
|
+
t(this, u).style.flexDirection = n === "x" ? "row" : "column", t(this, W).axis = t(this, q).current ? "max" : n, this.isConnected && t(this, D).call(this);
|
|
190
|
+
}), t(this, q).subscribe((n) => {
|
|
191
|
+
t(this, W).axis = n.current ? "max" : t(this, C).current;
|
|
195
192
|
}), t(this, R).subscribe(() => {
|
|
196
|
-
this.isConnected && t(this,
|
|
197
|
-
}), t(this, O).subscribe(({ current:
|
|
198
|
-
this.isConnected && (
|
|
199
|
-
}), t(this, T).subscribe((
|
|
200
|
-
t(this, m).current = 0, t(this, W).debounce =
|
|
201
|
-
}), t(this, k).subscribe((
|
|
202
|
-
|
|
203
|
-
}), t(this, J).subscribe((
|
|
204
|
-
t(this, o).damping =
|
|
205
|
-
}), t(this, Q).subscribe((
|
|
206
|
-
|
|
207
|
-
}), t(this, X).subscribe((
|
|
208
|
-
|
|
193
|
+
this.isConnected && t(this, D).call(this);
|
|
194
|
+
}), t(this, O).subscribe(({ current: n }) => {
|
|
195
|
+
this.isConnected && (n ? f(this, N, ut).call(this) : f(this, F, U).call(this));
|
|
196
|
+
}), t(this, T).subscribe((n) => {
|
|
197
|
+
t(this, m).current = 0, t(this, W).debounce = n.current, t(this, o).reset(), this.isConnected && (n.current && !n.previous ? f(this, N, ut).call(this) : !n.current && n.previous && f(this, F, U).call(this));
|
|
198
|
+
}), t(this, k).subscribe((n) => {
|
|
199
|
+
n.current ? (this.isConnected && (t(this, c).length || (t(this, O).current = !0)), t(this, c).length && (t(this, o).max.current = 1 / 0, t(this, o).min.current = -1 / 0)) : (d(this, B, 0), t(this, o).max.current = t(this, p), t(this, o).min.current = 0);
|
|
200
|
+
}), t(this, J).subscribe((n) => {
|
|
201
|
+
t(this, o).damping = n.current;
|
|
202
|
+
}), t(this, Q).subscribe((n) => {
|
|
203
|
+
n.current && !n.previous ? f(this, pt, kt).call(this) : !n.current && n.previous && f(this, ft, Wt).call(this);
|
|
204
|
+
}), t(this, X).subscribe((n) => {
|
|
205
|
+
n.current && !n.previous ? f(this, tt, vt).call(this) : !n.current && n.previous && f(this, et, _t).call(this);
|
|
209
206
|
});
|
|
210
207
|
}
|
|
211
208
|
}
|
|
@@ -283,12 +280,12 @@ let dt = class extends Lt {
|
|
|
283
280
|
if (!t(this, c).length)
|
|
284
281
|
return;
|
|
285
282
|
const e = t(this, m).current;
|
|
286
|
-
f(this, xt,
|
|
287
|
-
const
|
|
288
|
-
if (
|
|
283
|
+
f(this, xt, Vt).call(this, i);
|
|
284
|
+
const n = t(this, c)[e], a = t(this, c)[t(this, m).current];
|
|
285
|
+
if (n && a) {
|
|
289
286
|
let g = 0;
|
|
290
287
|
const x = t(this, c).length - 1;
|
|
291
|
-
t(this, k).current ? t(this, m).current === 0 && e === x ? g = t(this, p) + t(this, v) -
|
|
288
|
+
t(this, k).current ? t(this, m).current === 0 && e === x ? g = t(this, p) + t(this, v) - n.position : t(this, m).current === x && e === 0 ? g = a.position - (t(this, p) + t(this, v)) : g = a.position - n.position : g = a.position - n.position, t(this, o).shift(g, s === "instant");
|
|
292
289
|
}
|
|
293
290
|
}
|
|
294
291
|
shiftSections(i, s = "smooth") {
|
|
@@ -327,7 +324,7 @@ N = /* @__PURE__ */ new WeakSet();
|
|
|
327
324
|
ut = function() {
|
|
328
325
|
f(this, F, U).call(this), t(this, ct).assignedElements().forEach((i) => {
|
|
329
326
|
i instanceof HTMLElement && t(this, c).push(new Qt(i, this));
|
|
330
|
-
}), t(this, u).style.transform = "", t(this,
|
|
327
|
+
}), t(this, u).style.transform = "", t(this, D).call(this);
|
|
331
328
|
};
|
|
332
329
|
F = /* @__PURE__ */ new WeakSet();
|
|
333
330
|
U = function() {
|
|
@@ -345,16 +342,16 @@ Wt = function() {
|
|
|
345
342
|
};
|
|
346
343
|
tt = /* @__PURE__ */ new WeakSet();
|
|
347
344
|
vt = function() {
|
|
348
|
-
ot.unsubscribe(t(this,
|
|
345
|
+
ot.unsubscribe(t(this, D)), t(this, o).reset(), f(this, pt, kt).call(this), t(this, u).style.transform = "", t(this, O).current && f(this, F, U).call(this), I.unregister(this);
|
|
349
346
|
};
|
|
350
347
|
et = /* @__PURE__ */ new WeakSet();
|
|
351
348
|
_t = function() {
|
|
352
|
-
t(this, O).current && f(this, N, ut).call(this), I.register(this), ot.subscribe(t(this,
|
|
349
|
+
t(this, O).current && f(this, N, ut).call(this), I.register(this), ot.subscribe(t(this, D), Pt.SCROLL), f(this, ft, Wt).call(this);
|
|
353
350
|
};
|
|
354
|
-
|
|
351
|
+
D = /* @__PURE__ */ new WeakMap();
|
|
355
352
|
mt = /* @__PURE__ */ new WeakMap();
|
|
356
353
|
xt = /* @__PURE__ */ new WeakSet();
|
|
357
|
-
|
|
354
|
+
Vt = function(i) {
|
|
358
355
|
t(this, k).current ? (t(this, m).current = i % t(this, c).length, t(this, m).current = t(this, m).current < 0 ? t(this, c).length + t(this, m).current : t(this, m).current) : t(this, m).current = zt(i, 0, t(this, c).length - 1);
|
|
359
356
|
};
|
|
360
357
|
st = /* @__PURE__ */ new WeakMap();
|
|
@@ -373,10 +370,10 @@ var Z;
|
|
|
373
370
|
class Yt extends Lt {
|
|
374
371
|
constructor() {
|
|
375
372
|
super(...arguments);
|
|
376
|
-
|
|
373
|
+
V(this, Z, null);
|
|
377
374
|
}
|
|
378
375
|
get scrollElement() {
|
|
379
|
-
return
|
|
376
|
+
return r(this, Z);
|
|
380
377
|
}
|
|
381
378
|
connectedCallback() {
|
|
382
379
|
const e = Ut(this, dt);
|
|
@@ -384,10 +381,10 @@ class Yt extends Lt {
|
|
|
384
381
|
}
|
|
385
382
|
}
|
|
386
383
|
Z = new WeakMap();
|
|
387
|
-
var jt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, ee = (i, s, e,
|
|
388
|
-
for (var a =
|
|
389
|
-
(x = i[g]) && (a = (
|
|
390
|
-
return
|
|
384
|
+
var jt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, ee = (i, s, e, n) => {
|
|
385
|
+
for (var a = n > 1 ? void 0 : n ? te(s, e) : s, g = i.length - 1, x; g >= 0; g--)
|
|
386
|
+
(x = i[g]) && (a = (n ? x(s, e, a) : x(a)) || a);
|
|
387
|
+
return n && a && jt(s, e, a), a;
|
|
391
388
|
}, Rt = (i, s, e) => {
|
|
392
389
|
if (!s.has(i))
|
|
393
390
|
throw TypeError("Cannot " + e);
|
|
@@ -395,8 +392,8 @@ var jt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, ee = (i, s
|
|
|
395
392
|
if (s.has(i))
|
|
396
393
|
throw TypeError("Cannot add the same private member more than once");
|
|
397
394
|
s instanceof WeakSet ? s.add(i) : s.set(i, e);
|
|
398
|
-
}, M = (i, s, e,
|
|
399
|
-
const se =
|
|
395
|
+
}, M = (i, s, e, n) => (Rt(i, s, "write to private field"), n ? n.call(i, e) : s.set(i, e), e), nt, b, A, z, K, G, rt, ht, lt, at;
|
|
396
|
+
const se = Dt({
|
|
400
397
|
":host": {
|
|
401
398
|
display: "inline-block",
|
|
402
399
|
zIndex: "1",
|
|
@@ -427,7 +424,7 @@ const se = Vt({
|
|
|
427
424
|
});
|
|
428
425
|
let Ct = class extends Yt {
|
|
429
426
|
constructor() {
|
|
430
|
-
super(), S(this,
|
|
427
|
+
super(), S(this, nt, null), S(this, b, null), S(this, A, !1), S(this, z, 0), S(this, K, 0), S(this, G, 0), S(this, rt, () => {
|
|
431
428
|
M(this, A, this.offsetWidth > this.offsetHeight);
|
|
432
429
|
const i = l(this, A) ? this.offsetWidth : this.offsetHeight;
|
|
433
430
|
M(this, z, i / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / i)), M(this, z, Math.max(l(this, z), 30)), l(this, A) ? (l(this, b).style.width = l(this, z) + "px", l(this, b).style.height = "100%") : (l(this, b).style.width = "100%", l(this, b).style.height = l(this, z) + "px"), M(this, K, i - l(this, z)), this.scrollElement.scrollSize || (this.style.display = "none");
|
|
@@ -438,14 +435,14 @@ let Ct = class extends Yt {
|
|
|
438
435
|
}), S(this, at, (i) => {
|
|
439
436
|
const s = (g) => {
|
|
440
437
|
const x = l(this, A) ? g.x : g.y, Tt = this.scrollElement.distance / l(this, K), It = (x - a) * Tt;
|
|
441
|
-
this.scrollElement.damped.set(
|
|
438
|
+
this.scrollElement.damped.set(n + It);
|
|
442
439
|
}, e = () => {
|
|
443
440
|
removeEventListener("pointermove", s), removeEventListener("pointerup", e), removeEventListener("touchend", e);
|
|
444
441
|
};
|
|
445
442
|
addEventListener("pointermove", s), addEventListener("pointerup", e), addEventListener("touchend", e);
|
|
446
|
-
const
|
|
443
|
+
const n = this.scrollElement.damped.target, a = l(this, A) ? i.x : i.y;
|
|
447
444
|
}), At && (this.openShadow(se), Ot(this, {
|
|
448
|
-
|
|
445
|
+
children: [bt({ ref: (i) => M(this, nt, i) })]
|
|
449
446
|
}));
|
|
450
447
|
}
|
|
451
448
|
get thumbElement() {
|
|
@@ -453,20 +450,20 @@ let Ct = class extends Yt {
|
|
|
453
450
|
}
|
|
454
451
|
connectedCallback() {
|
|
455
452
|
super.connectedCallback();
|
|
456
|
-
const i = l(this,
|
|
457
|
-
i instanceof HTMLElement ? M(this, b, i) : (M(this, b, document.createElement("div")), l(this, b).classList.add("default-thumb"), this.shadowRoot.appendChild(l(this, b))), l(this, b).addEventListener("pointerdown", l(this, at)), ot.subscribe(l(this,
|
|
453
|
+
const i = l(this, nt).assignedElements()[0];
|
|
454
|
+
i instanceof HTMLElement ? M(this, b, i) : (M(this, b, document.createElement("div")), l(this, b).classList.add("default-thumb"), this.shadowRoot.appendChild(l(this, b))), l(this, b).addEventListener("pointerdown", l(this, at)), ot.subscribe(l(this, rt), Pt.SCROLL + 1), this.scrollElement.damped.subscribe(l(this, ht)), this.scrollElement.axisAttibute.subscribe(l(this, lt));
|
|
458
455
|
}
|
|
459
456
|
disconnectedCallback() {
|
|
460
|
-
l(this, b).removeEventListener("pointerdown", l(this, at)), ot.unsubscribe(l(this,
|
|
457
|
+
l(this, b).removeEventListener("pointerdown", l(this, at)), ot.unsubscribe(l(this, rt)), this.scrollElement.damped.unsubscribe(l(this, ht)), this.scrollElement.axisAttibute.unsubscribe(l(this, lt));
|
|
461
458
|
}
|
|
462
459
|
};
|
|
463
|
-
|
|
460
|
+
nt = /* @__PURE__ */ new WeakMap();
|
|
464
461
|
b = /* @__PURE__ */ new WeakMap();
|
|
465
462
|
A = /* @__PURE__ */ new WeakMap();
|
|
466
463
|
z = /* @__PURE__ */ new WeakMap();
|
|
467
464
|
K = /* @__PURE__ */ new WeakMap();
|
|
468
465
|
G = /* @__PURE__ */ new WeakMap();
|
|
469
|
-
|
|
466
|
+
rt = /* @__PURE__ */ new WeakMap();
|
|
470
467
|
ht = /* @__PURE__ */ new WeakMap();
|
|
471
468
|
lt = /* @__PURE__ */ new WeakMap();
|
|
472
469
|
at = /* @__PURE__ */ new WeakMap();
|
package/lib/select/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Bt91QUTY.cjs");Object.defineProperty(exports,"SelectElement",{enumerable:!0,get:()=>e.SelectElement});Object.defineProperty(exports,"SelectHeadElement",{enumerable:!0,get:()=>e.SelectHeadElement});Object.defineProperty(exports,"SelectOptionElement",{enumerable:!0,get:()=>e.SelectOptionElement});exports.SelectUserElement=e.SelectUserElement;
|
package/lib/select/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { SelectElement } from './SelectElement';
|
|
2
|
+
export { SelectUserElement } from './SelectUserElement';
|
|
2
3
|
export { SelectOptionElement } from './SelectOptionElement';
|
|
3
4
|
export { SelectHeadElement } from './SelectHeadElement';
|
|
4
|
-
export { SelectUserElement } from './SelectUserElement';
|
package/lib/select/index.js
CHANGED
package/lib/store/Derived.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import { Store, StoreOptions } from './Store';
|
|
|
2
2
|
export type DerivedCallback<StoreType, DerivedType> = (value: StoreType) => DerivedType;
|
|
3
3
|
export declare class Derived<DerivedType, StoreType> extends Store<DerivedType> {
|
|
4
4
|
#private;
|
|
5
|
-
constructor(store: Store<StoreType>, callback: DerivedCallback<StoreType, DerivedType>, parameters?: StoreOptions<DerivedType>);
|
|
5
|
+
constructor(store: Store<StoreType, any, any>, callback: DerivedCallback<StoreType, DerivedType>, parameters?: StoreOptions<DerivedType>);
|
|
6
6
|
close(): void;
|
|
7
7
|
}
|