aptechka 0.5.39 → 0.5.41
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-AkD1vhRW.js → Animation-BCsZmZbP.js} +16 -16
- package/lib/Animation-BcWwYyuC.cjs +1 -0
- package/lib/Damped-C9p_f19T.cjs +1 -0
- package/lib/{Damped-CH96byE8.js → Damped-Ct0JVxUB.js} +4 -5
- package/lib/{Tweened-DzckT3pw.js → Tweened-CdEuSQDX.js} +9 -10
- package/lib/Tweened-DISO_ORE.cjs +1 -0
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.js +29 -29
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +72 -69
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +1 -1
- package/lib/{index-BAHHdcp3.js → index-BtsOv9u0.js} +85 -85
- package/lib/index-Buf76Qoq.cjs +9 -0
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +30 -30
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +1 -1
- package/lib/polyfills-BsJ5md2Q.cjs +1 -0
- package/lib/polyfills-mNjpy6Nt.js +27 -0
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +86 -86
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +44 -43
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.d.ts +9 -84
- package/lib/theme/index.js +12 -27
- package/lib/tweaker/index.cjs +6 -6
- package/lib/tweaker/index.js +207 -199
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +26 -27
- package/package.json +1 -1
- package/lib/Animation-BIRIzLIL.cjs +0 -1
- package/lib/Damped-3daHRLIW.cjs +0 -1
- package/lib/Tweened-Bv9mgPvl.cjs +0 -1
- package/lib/index-D2XtQX56.cjs +0 -9
- package/lib/number-Bo5RdrA1.js +0 -23
- package/lib/number-yVpzMdbQ.cjs +0 -1
- package/lib/polyfills-CrcS4RcO.cjs +0 -1
- package/lib/polyfills-DJUYczFm.js +0 -6
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 g=require("../attributes-Bf2svn4j.cjs"),h=require("../browser-CpzFX2xg.cjs"),l=require("../canvas-CU5Xjahf.cjs"),m=require("../coordinates-D8Np3cPD.cjs"),d=require("../dom-JBOkFLTh.cjs"),n=require("../easings-DsS5-Kqc.cjs"),E=require("../events-Crwi8fz6.cjs"),I=require("../file-EevnUtRj.cjs"),b=require("../function-MthRj-GJ.cjs"),S=require("../gestures-DHLrn6Q8.cjs"),p=require("../layout-8ryRAMGJ.cjs"),i=require("../math-GDWEqu7y.cjs"),f=require("../polyfills-BsJ5md2Q.cjs"),o=require("../object-CCiXnER2.cjs"),r=require("../string-DhgS_iFl.cjs"),C=require("../style-At6aDoqG.cjs");function T(t,e,...a){return[...t.slice(0,e),...a,...t.slice(e)]}function v(t,e){const a=t.length;e=e%a;const s=new Array(a);for(let u=0;u<a;u++){const c=(u+e)%a;s[c]=t[u]}return s}function y(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 O(t,e){const a=t.styleMap.get(e);if(a){const s=a.toString();return s.startsWith("var")?O(t,s.slice(4,-1)):s}}function P(...t){const e={};return Array.from(document.styleSheets).forEach(a=>{Array.from(a.cssRules).forEach(s=>{s instanceof CSSStyleRule&&s.selectorText===":root"&&t.forEach(u=>{const c=O(s,u);c&&(e[u]=c)})})}),t.forEach(a=>{e[a]||console.warn(`variable named ${a} not found`)}),e}function Q(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function q(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}exports.parseAttribute=g.parseAttribute;exports.parseAttributeValue=g.parseAttributeValue;exports.isBrowser=h.isBrowser;exports.contain=l.contain;exports.cover=l.cover;exports.fixPosition=l.fixPosition;exports.measureText=l.measureText;exports.getPointerPosition=m.getPointerPosition;exports.normalize=m.normalize;exports.screenToCartesian=m.screenToCartesian;exports.findParentElement=d.findParentElement;exports.findScrollParentElement=d.findScrollParentElement;exports.getAllParentElements=d.getAllParentElements;exports.getElement=d.getElement;exports.easeInCubic=n.easeInCubic;exports.easeInExpo=n.easeInExpo;exports.easeInOutCubic=n.easeInOutCubic;exports.easeInOutExpo=n.easeInOutExpo;exports.easeInOutQuad=n.easeInOutQuad;exports.easeInOutQuart=n.easeInOutQuart;exports.easeInOutQuint=n.easeInOutQuint;exports.easeInQuad=n.easeInQuad;exports.easeInQuart=n.easeInQuart;exports.easeInQuint=n.easeInQuint;exports.easeOutCubic=n.easeOutCubic;exports.easeOutExpo=n.easeOutExpo;exports.easeOutQuad=n.easeOutQuad;exports.easeOutQuart=n.easeOutQuart;exports.easeOutQuint=n.easeOutQuint;exports.linear=n.linear;exports.dispatchSizeChangeEvent=E.dispatchSizeChangeEvent;exports.createJSONAndSave=I.createJSONAndSave;exports.debounce=b.debounce;exports.throttle=b.throttle;exports.setupDrag=S.setupDrag;exports.getCumulativeOffsetLeft=p.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=p.getCumulativeOffsetTop;exports.getCumulativePosition=p.getCumulativePosition;exports.calculateDistance=i.calculateDistance;exports.calculateDistanceWithRadius=i.calculateDistanceWithRadius;exports.clamp=i.clamp;exports.damp=i.damp;exports.lerp=i.lerp;exports.mapRange=i.mapRange;exports.round=i.round;exports.smootherstep=i.smootherstep;exports.smoothstep=i.smoothstep;exports.step=i.step;exports.nullishCoalescing=f.nullishCoalescing;exports.preciseNumber=f.preciseNumber;exports.roundNumberTo=f.roundNumberTo;exports.cloneDeep=o.cloneDeep;exports.compareObjects=o.compareObjects;exports.isESClass=o.isESClass;exports.isNullish=o.isNullish;exports.isObject=o.isObject;exports.mergeDeep=o.mergeDeep;exports.mixin=o.mixin;exports.omit=o.omit;exports.pick=o.pick;exports.camelToKebab=r.camelToKebab;exports.capitalize=r.capitalize;exports.generateId=r.generateId;exports.isUppercase=r.isUppercase;exports.kebabToCamel=r.kebabToCamel;exports.snakeToDotted=r.snakeToDotted;exports.toPascalCase=r.toPascalCase;exports.uncapitalize=r.uncapitalize;exports.getElementTransitionDurationMS=C.getElementTransitionDurationMS;exports.getElementTransitionDurationS=C.getElementTransitionDurationS;exports.decode=q;exports.dotCircleCollision=x;exports.dotRectCollision=y;exports.encode=Q;exports.getRootVariables=P;exports.insert=T;exports.shiftArray=v;
|
package/lib/utils/index.js
CHANGED
|
@@ -10,11 +10,10 @@ import { d as se, t as te } from "../function-C10DGppn.js";
|
|
|
10
10
|
import { s as ne } from "../gestures-D2Fdra_G.js";
|
|
11
11
|
import { g as ie, a as ue, b as ce } from "../layout-HoBT_Da2.js";
|
|
12
12
|
import { e as fe, f as pe, c as me, d as de, l as xe, m as ge, r as be, b as he, a as Ce, s as Ee } from "../math-BOBiC4TN.js";
|
|
13
|
-
import {
|
|
14
|
-
import { c as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { a as $e, g as Fe } from "../style-CklEF62D.js";
|
|
13
|
+
import { n as Se, p as we, r as ye } from "../polyfills-mNjpy6Nt.js";
|
|
14
|
+
import { c as ve, d as Te, i as Ae, b as Pe, a as Qe, m as De, e as Re, o as ke, p as je } from "../object-D6MVWB4l.js";
|
|
15
|
+
import { c as Ne, a as Ve, g as Me, i as Ue, k as We, s as qe, t as Be, u as Je } from "../string-f0Dnk0L1.js";
|
|
16
|
+
import { a as Le, g as $e } from "../style-CklEF62D.js";
|
|
18
17
|
function i(a, e, ...s) {
|
|
19
18
|
return [...a.slice(0, e), ...s, ...a.slice(e)];
|
|
20
19
|
}
|
|
@@ -65,11 +64,11 @@ function m(a) {
|
|
|
65
64
|
export {
|
|
66
65
|
fe as calculateDistance,
|
|
67
66
|
pe as calculateDistanceWithRadius,
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
Ne as camelToKebab,
|
|
68
|
+
Ve as capitalize,
|
|
70
69
|
me as clamp,
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
ve as cloneDeep,
|
|
71
|
+
Te as compareObjects,
|
|
73
72
|
O as contain,
|
|
74
73
|
S as cover,
|
|
75
74
|
ee as createJSONAndSave,
|
|
@@ -98,46 +97,46 @@ export {
|
|
|
98
97
|
Q as findParentElement,
|
|
99
98
|
D as findScrollParentElement,
|
|
100
99
|
w as fixPosition,
|
|
101
|
-
|
|
100
|
+
Me as generateId,
|
|
102
101
|
R as getAllParentElements,
|
|
103
102
|
ie as getCumulativeOffsetLeft,
|
|
104
103
|
ue as getCumulativeOffsetTop,
|
|
105
104
|
ce as getCumulativePosition,
|
|
106
105
|
k as getElement,
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
Le as getElementTransitionDurationMS,
|
|
107
|
+
$e as getElementTransitionDurationS,
|
|
109
108
|
v as getPointerPosition,
|
|
110
109
|
f as getRootVariables,
|
|
111
110
|
i as insert,
|
|
112
111
|
C as isBrowser,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
112
|
+
Ae as isESClass,
|
|
113
|
+
Pe as isNullish,
|
|
114
|
+
Qe as isObject,
|
|
115
|
+
Ue as isUppercase,
|
|
116
|
+
We as kebabToCamel,
|
|
118
117
|
xe as lerp,
|
|
119
118
|
X as linear,
|
|
120
119
|
ge as mapRange,
|
|
121
120
|
y as measureText,
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
De as mergeDeep,
|
|
122
|
+
Re as mixin,
|
|
124
123
|
T as normalize,
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
Se as nullishCoalescing,
|
|
125
|
+
ke as omit,
|
|
127
126
|
g as parseAttribute,
|
|
128
127
|
b as parseAttributeValue,
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
je as pick,
|
|
129
|
+
we as preciseNumber,
|
|
131
130
|
be as round,
|
|
132
|
-
|
|
131
|
+
ye as roundNumberTo,
|
|
133
132
|
A as screenToCartesian,
|
|
134
133
|
ne as setupDrag,
|
|
135
134
|
u as shiftArray,
|
|
136
135
|
he as smootherstep,
|
|
137
136
|
Ce as smoothstep,
|
|
138
|
-
|
|
137
|
+
qe as snakeToDotted,
|
|
139
138
|
Ee as step,
|
|
140
139
|
te as throttle,
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
Be as toPascalCase,
|
|
141
|
+
Je as uncapitalize
|
|
143
142
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var X=Object.defineProperty,Y=Object.defineProperties;var Z=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var K=(e,s,t)=>s in e?X(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,j=(e,s)=>{for(var t in s||(s={}))$.call(s,t)&&K(e,t,s[t]);if(V)for(var t of V(s))v.call(s,t)&&K(e,t,s[t]);return e},G=(e,s)=>Y(e,Z(s));var _=(e,s,t)=>{if(!s.has(e))throw TypeError("Cannot "+t)};var i=(e,s,t)=>(_(e,s,"read from private field"),t?t.call(e):s.get(e)),r=(e,s,t)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,t)},n=(e,s,t,h)=>(_(e,s,"write to private field"),h?h.call(e,t):s.set(e,t),t);var F=(e,s,t)=>(_(e,s,"access private method"),t);const L=require("./Store-C-1ruEIm.cjs"),tt=require("./math-GDWEqu7y.cjs"),H=require("./number-yVpzMdbQ.cjs"),M=require("./polyfills-CrcS4RcO.cjs"),J=require("./ticker/index.cjs"),it=require("./order/index.cjs");var u,m,o,q,b,x,y,S,R,Q,T,U,O,B,z,W,P;class st{constructor(s,t,h,N,E){r(this,R);r(this,T);r(this,O);r(this,z);r(this,u,void 0);r(this,m,void 0);r(this,o,void 0);r(this,q,void 0);r(this,b,!1);r(this,x,!1);r(this,y,!1);r(this,S,void 0);r(this,P,s=>{!i(this,y)&&i(this,u).initial!==i(this,u).current&&n(this,y,!0),i(this,y)&&(s.direction>0&&s.progress>=i(this,o).current?F(this,R,Q).call(this):s.direction<0&&s.progress<=i(this,o).current&&F(this,T,U).call(this))});n(this,u,s),n(this,m,t),n(this,o,new L.Store(h,{passport:t.passport?{name:t.passport+"-start",manager:{type:"number"}}:void 0})),n(this,q,new L.Store(N,{passport:t.passport?{name:t.passport+"-set",manager:{type:"number"}}:void 0})),n(this,S,E),i(this,u).subscribe(i(this,P)),i(this,u).linked.add(this)}get targetAnimation(){return i(this,m)}get triggerAnimation(){return i(this,u)}destroy(){i(this,q).close(),i(this,o).close(),i(this,u).unsubscribe(i(this,P)),i(this,u).linked.delete(this)}}u=new WeakMap,m=new WeakMap,o=new WeakMap,q=new WeakMap,b=new WeakMap,x=new WeakMap,y=new WeakMap,S=new WeakMap,R=new WeakSet,Q=function(){i(this,b)||(n(this,x,!1),n(this,b,!0),F(this,O,B).call(this,i(this,q).current))},T=new WeakSet,U=function(){i(this,b)&&!i(this,x)&&(n(this,b,!1),n(this,x,!0),F(this,O,B).call(this,i(this,m).initial))},O=new WeakSet,B=function(s){F(this,z,W).call(this),i(this,m).updateOptions(i(this,S)),i(this,m).set(s)},z=new WeakSet,W=function(){var s;(s=i(this,S))!=null&&s.once&&this.destroy()},P=new WeakMap;var w,C,D,g,k,d,p,a,c,l,f,A,I;class et extends L.Store{constructor(t,h){super(t||0,h);r(this,w,void 0);r(this,C,it.TICK_ORDER.ANIMATION);r(this,D,void 0);r(this,g,new L.Store(!1));r(this,k,new Set);r(this,d,null);r(this,p,0);r(this,a,0);r(this,c,-1/0);r(this,l,1/0);r(this,f,0);r(this,A,1);r(this,I,t=>{this.handleAnimationFrame(t)})}get linked(){return i(this,k)}get animationLink(){return i(this,d)}get direction(){return i(this,p)}get target(){return i(this,a)}get min(){return i(this,c)}set min(t){n(this,c,t),this.set(i(this,a),{equalize:!0})}get max(){return i(this,l)}set max(t){n(this,l,t),this.set(i(this,a),{equalize:!0})}get from(){return i(this,f)}get to(){return i(this,A)}get isRunning(){return i(this,g)}get currentDistance(){return Math.abs(i(this,A)-i(this,f))}get distance(){return Math.abs(i(this,l)-i(this,c))}get currentProgress(){return this.currentDistance?H.preciseNumber(Math.abs(this.current-i(this,f))/this.currentDistance,6):0}get progress(){return this.distance?H.preciseNumber(Math.abs(this.current-i(this,c))/this.distance,6):0}get entry(){return G(j({},super.entry),{from:i(this,f),to:i(this,A),currentDistance:this.currentDistance,distance:this.distance,direction:this.direction,currentProgress:this.currentProgress,progress:this.progress})}setTarget(t){n(this,p,Math.sign(t-i(this,a))),n(this,a,tt.clamp(t,i(this,c),i(this,l))),n(this,f,this.current),n(this,A,t)}set(t,h){i(this,a)!==t&&(this.setTarget(t),h&&this.updateOptions(h),i(this,a)!==this.current&&this.start())}shift(t,h){this.set(i(this,a)+t,h)}reset(){this.set(this.initial,{equalize:!0}),super.reset(),i(this,k).forEach(t=>{t.targetAnimation.reset()})}close(){super.close(),this.unlistenAnimationFrame(),this.unlink(),i(this,k).clear()}listenAnimationFrame(){i(this,g).current||(i(this,g).current=!0,J.ticker.subscribe(i(this,I),{maxFPS:i(this,w),order:i(this,C),culling:i(this,D)}))}unlistenAnimationFrame(){i(this,g).current&&(i(this,g).current=!1,J.ticker.unsubscribe(i(this,I)),i(this,k).forEach(t=>{t.targetAnimation.unlistenAnimationFrame()}))}updateOptions(t){n(this,w,M.nullishCoalescing(t==null?void 0:t.maxFPS,i(this,w))),n(this,C,M.nullishCoalescing(t==null?void 0:t.order,i(this,C))),n(this,D,M.nullishCoalescing(t==null?void 0:t.culling,i(this,D))),n(this,c,M.nullishCoalescing(t==null?void 0:t.min,i(this,c))),n(this,l,M.nullishCoalescing(t==null?void 0:t.max,i(this,l))),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=i(this,a))}linkTo(t,h,N,E){this.unlink(),n(this,d,new st(t,this,h,N,E))}unlink(){i(this,d)&&(i(this,d).destroy(),n(this,d,null))}start(){this.listenAnimationFrame()}}w=new WeakMap,C=new WeakMap,D=new WeakMap,g=new WeakMap,k=new WeakMap,d=new WeakMap,p=new WeakMap,a=new WeakMap,c=new WeakMap,l=new WeakMap,f=new WeakMap,A=new WeakMap,I=new WeakMap;exports.Animation=et;
|
package/lib/Damped-3daHRLIW.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var A=Object.defineProperty,F=Object.defineProperties;var v=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var f=(e,s,t)=>s in e?A(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,c=(e,s)=>{for(var t in s||(s={}))C.call(s,t)&&f(e,t,s[t]);if(g)for(var t of g(s))O.call(s,t)&&f(e,t,s[t]);return e},m=(e,s)=>F(e,v(s));var p=(e,s,t)=>{if(!s.has(e))throw TypeError("Cannot "+t)};var r=(e,s,t)=>(p(e,s,"read from private field"),t?t.call(e):s.get(e)),l=(e,s,t)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,t)},n=(e,s,t,a)=>(p(e,s,"write to private field"),a?a.call(e,t):s.set(e,t),t);const w=require("./math-GDWEqu7y.cjs"),y=require("./number-yVpzMdbQ.cjs"),d=require("./polyfills-CrcS4RcO.cjs"),B=require("./Animation-BIRIzLIL.cjs");var i,h;class D extends B.Animation{constructor(t,a){super(t,a);l(this,i,void 0);l(this,h,void 0);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(m(c({},a),{equalize:!0}))}get velocity(){return r(this,i)}get speed(){return r(this,h)}get entry(){return m(c({},super.entry),{velocity:r(this,i),speed:r(this,h)})}updateOptions(t){this.damping=d.nullishCoalescing(t==null?void 0:t.damping,this.damping),this.mass=d.nullishCoalescing(t==null?void 0:t.mass,this.mass),this.stiffness=d.nullishCoalescing(t==null?void 0:t.stiffness,this.stiffness),super.updateOptions(t)}updateManually(t){this.setTarget(t),this.current=this.target}handleAnimationFrame(t){y.preciseNumber(this.current,4)===y.preciseNumber(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target);const a=this.current,q=Math.abs(a-this.target);n(this,h,q/t.timeBetweenFrames);const u=t.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const b=(this.target-this.current)*this.stiffness-r(this,i)*this.damping;n(this,i,r(this,i)+b/this.mass*u),this.current+=r(this,i)*u}else this.current=w.damp(this.current,this.target,this.damping,u)}}i=new WeakMap,h=new WeakMap;exports.Damped=D;
|
package/lib/Tweened-Bv9mgPvl.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var g=Object.defineProperty,F=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var c=(t,i,e)=>i in t?g(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,m=(t,i)=>{for(var e in i||(i={}))y.call(i,e)&&c(t,e,i[e]);if(h)for(var e of h(i))O.call(i,e)&&c(t,e,i[e]);return t},d=(t,i)=>F(t,b(i));var q=(t,i,e)=>{if(!i.has(t))throw TypeError("Cannot "+e)};var n=(t,i,e)=>(q(t,i,"read from private field"),e?e.call(t):i.get(t)),u=(t,i,e)=>{if(i.has(t))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(t):i.set(t,e)},l=(t,i,e,r)=>(q(t,i,"write to private field"),r?r.call(t,e):i.set(t,e),e);const w=require("./easings-DsS5-Kqc.cjs"),C=require("./math-GDWEqu7y.cjs"),M=require("./number-yVpzMdbQ.cjs"),A=require("./polyfills-CrcS4RcO.cjs"),S=require("./Animation-BIRIzLIL.cjs");var a,s;class T extends S.Animation{constructor(e,r){super(e||0,r);u(this,a,w.linear);u(this,s,1e3);this.updateOptions(d(m({},r),{equalize:!0}))}updateOptions(e){super.updateOptions(e),l(this,a,A.nullishCoalescing(e==null?void 0:e.easing,n(this,a))),l(this,s,A.nullishCoalescing(e==null?void 0:e.duration,n(this,s))),e!=null&&e.restart&&(this.current=this.initial)}updateManually(e){const r=e/1e3/(n(this,s)/1e3),f=n(this,a).call(this,C.clamp(r,0,1));return this.current=M.preciseNumber(this.from+(this.to-this.from)*f,6),r}handleAnimationFrame(e){this.updateManually(e.timeElapsedSinceSubscription)>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}a=new WeakMap,s=new WeakMap;exports.Tweened=T;
|
package/lib/index-D2XtQX56.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";var z=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var A=(t,e,s)=>(z(t,e,"read from private field"),s?s.call(t):e.get(t)),H=(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)},I=(t,e,s,i)=>(z(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s);const S=require("./custom-element/index.cjs");require("./Store-C-1ruEIm.cjs");const M=require("./browser-CpzFX2xg.cjs"),N=require("./events-Crwi8fz6.cjs"),V=require("./style-At6aDoqG.cjs"),a=require("./tags-Djb6mb1o.cjs"),P=require("./createStylesheet-CqHU9_qv.cjs"),E=require("./theme/index.cjs");var Y=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,J=(t,e,s,i)=>{for(var n=i>1?void 0:i?Z(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&Y(e,s,n),n},q=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},r=(t,e,s)=>(q(t,e,"read from private field"),s?s.call(t):e.get(t)),c=(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)},d=(t,e,s,i)=>(q(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),B=(t,e,s)=>(q(t,e,"access private method"),s),u,f,o,v,m,g,L,C,W;const Q=P.createStylesheet({":host":{position:"relative"},".head":{width:"100%",cursor:"default",background:"none",border:"none",color:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",textAlign:"start",padding:"0",margin:"0"},".body":{boxSizing:"border-box",position:"var(--position, unset)",top:"100%",left:"0",width:"100%",overflow:"hidden",transitionDuration:`var(--duration, ${E.aptechkaTheme.durationShort.var})`,transitionProperty:"height",cursor:"default"},".body-inner":{display:"grid",gap:"var(--gap, 0px)",width:"100%",paddingTop:"var(--gap, 0px)"}});exports.SelectElement=class extends S.CustomElement{constructor(){super(),c(this,C),c(this,u,null),c(this,f,""),c(this,o,null),c(this,v,!1),c(this,m,void 0),c(this,g,null),c(this,L,()=>{N.dispatchSizeChangeEvent(this)}),M.isBrowser&&(this.openShadow(Q),d(this,u,this.attachInternals()),d(this,g,new ResizeObserver(r(this,L))),a.element(this,{children:[a.button({class:"head",children:a.slot({name:"head"}),onClick:()=>{this.opened?this.close():this.open()}}),a.div({class:"body",style:{height:"0px"},children:a.div({class:"body-inner",children:a.slot()}),ref:e=>{d(this,o,e)}})]}))}get value(){return r(this,f)}set value(e){d(this,f,e),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),r(this,u).setFormValue(r(this,f))}get internals(){return r(this,u)}get opened(){return r(this,v)}open(){clearTimeout(r(this,m)),d(this,v,!0),r(this,o).style.display="grid",this.classList.add("triggered"),setTimeout(()=>{this.classList.add("opened"),r(this,o).style.height=r(this,o).scrollHeight+"px",B(this,C,W).call(this)},0)}close(){d(this,v,!1),r(this,o).style.height="0px",this.classList.remove("opened"),B(this,C,W).call(this),d(this,m,setTimeout(()=>{this.classList.remove("triggered"),r(this,o).style.display="none"},V.getElementTransitionDurationMS(r(this,o))))}connectedCallback(){r(this,g).observe(r(this,o))}disconnectedCallback(){clearTimeout(r(this,m)),r(this,g).disconnect()}};u=new WeakMap;f=new WeakMap;o=new WeakMap;v=new WeakMap;m=new WeakMap;g=new WeakMap;L=new WeakMap;C=new WeakSet;W=function(){this.dispatchEvent(new CustomEvent("selectToggle",{bubbles:!0,composed:!0,detail:{opened:r(this,v)}}))};exports.SelectElement.formAssociated=!0;exports.SelectElement=J([S.define("e-select")],exports.SelectElement);var y;class D extends S.CustomElement{constructor(){super(...arguments);H(this,y,null)}get selectElement(){return A(this,y)}connectedCallback(){var i,n;const s=(n=(i=this.assignedSlot)==null?void 0:i.getRootNode())==null?void 0:n.host;s?I(this,y,s):console.log(this,"e-select not found")}}y=new WeakMap;var X=Object.defineProperty,j=Object.getOwnPropertyDescriptor,ee=(t,e,s,i)=>{for(var n=i>1?void 0:i?j(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&X(e,s,n),n},F=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},O=(t,e,s)=>(F(t,e,"read from private field"),s?s.call(t):e.get(t)),G=(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)},R=(t,e,s)=>(F(t,e,"access private method"),s),w,T,b;const te=P.createStylesheet({":host":{width:"100%",height:E.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center"}});exports.SelectOptionElement=class extends D{constructor(){super(),G(this,T),G(this,w,()=>{this.selectElement.value===this.value?this.style.display="none":this.style.display=""}),M.isBrowser&&(this.openShadow(te),a.element(this,{tabindex:0,onClick:()=>{R(this,T,b).call(this)},onKeydown:e=>{e.code==="Space"&&R(this,T,b).call(this)},children:a.slot()}))}get value(){return(this.hasAttribute("value")?this.getAttribute("value"):this.innerText)||""}connectedCallback(){super.connectedCallback(),this.hasAttribute("default")&&(this.selectElement.value||(this.selectElement.value=this.value)),this.selectElement.addEventListener("change",O(this,w)),setTimeout(()=>{O(this,w).call(this)})}disconnectedCallback(){this.selectElement.removeEventListener("change",O(this,w))}};w=new WeakMap;T=new WeakSet;b=function(){this.selectElement.value=this.value,this.selectElement.close()};exports.SelectOptionElement=ee([S.define("e-select-option")],exports.SelectOptionElement);const U=`<svg
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
-
width="32"
|
|
4
|
-
height="32"
|
|
5
|
-
viewBox="0 0 24 24"
|
|
6
|
-
>
|
|
7
|
-
<path d="m12.37 15.835l6.43-6.63C19.201 8.79 18.958 8 18.43 8H5.57c-.528 0-.771.79-.37 1.205l6.43 6.63c.213.22.527.22.74 0Z" />
|
|
8
|
-
</svg>
|
|
9
|
-
`;var se=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ne=(t,e,s,i)=>{for(var n=i>1?void 0:i?ie(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&se(e,s,n),n},K=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},p=(t,e,s)=>(K(t,e,"read from private field"),s?s.call(t):e.get(t)),$=(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)},re=(t,e,s,i)=>(K(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),k,_,x;const ae=P.createStylesheet({":host":{width:"100%",height:E.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center",justifyContent:"space-between"},".default-arrow":{flexShrink:"0",width:"var(--arrow-size, 1em)",height:"var(--arrow-size, 1em)",fill:`var(--arrow-color, ${E.aptechkaTheme.colorDark.var})`,transitionProperty:"transform",transitionDuration:`var(--duration, ${E.aptechkaTheme.durationShort.var})`},":host(.opened) .default-arrow":{transform:"scaleY(-1)"}});exports.SelectHeadElement=class extends D{constructor(){super(),$(this,k,null),$(this,_,()=>{const s=this.selectElement.shadowRoot.querySelector(".body slot").assignedElements().find(i=>i.value===this.selectElement.value);s&&(p(this,k).innerHTML=s.innerHTML)}),$(this,x,()=>{this.classList.toggle("opened",this.selectElement.opened)}),M.isBrowser&&(this.openShadow(ae),a.element(this,{children:[a.slot(),a.slot({name:"arrow",children:a.element(U,{class:"default-arrow"})})]}),this.slot="head")}connectedCallback(){super.connectedCallback(),re(this,k,this.querySelector("[data-value-holder]")||this),this.selectElement.addEventListener("change",p(this,_)),p(this,_).call(this),this.selectElement.addEventListener("selectToggle",p(this,x))}disconnectedCallback(){this.selectElement.removeEventListener("change",p(this,_)),this.selectElement.removeEventListener("selectToggle",p(this,x))}};k=new WeakMap;_=new WeakMap;x=new WeakMap;exports.SelectHeadElement=ne([S.define("e-select-head")],exports.SelectHeadElement);exports.SelectUserElement=D;exports.arrowIcon=U;
|
package/lib/number-Bo5RdrA1.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const n = [
|
|
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(r, e = 5) {
|
|
15
|
-
return (0.5 + r * n[e] << 0) / n[e];
|
|
16
|
-
}
|
|
17
|
-
function o(r, e) {
|
|
18
|
-
return Math.round(r / e) * e;
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
u as p,
|
|
22
|
-
o as r
|
|
23
|
-
};
|
package/lib/number-yVpzMdbQ.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const u=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10];function n(r,e=5){return(.5+r*u[e]<<0)/u[e]}function o(r,e){return Math.round(r/e)*e}exports.preciseNumber=n;exports.roundNumberTo=o;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function e(n,i){return typeof n=="undefined"?i:n}exports.nullishCoalescing=e;
|