aptechka 0.4.10 → 0.4.11
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/Damped-BdnkNOcb.cjs +1 -0
- package/lib/Damped-Ceg1a3X8.js +150 -0
- package/lib/animation/Animation.d.ts +23 -0
- package/lib/animation/Damped.d.ts +15 -12
- package/lib/animation/Tweened.d.ts +9 -11
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.d.ts +1 -1
- package/lib/animation/index.js +49 -75
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +2 -2
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.js +2 -2
- package/lib/{createStylesheet-W0b965g0.cjs → createStylesheet-CqHU9_qv.cjs} +1 -1
- package/lib/{createStylesheet-D6C3BPkl.js → createStylesheet-DBCEbDjI.js} +1 -1
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +2 -2
- package/lib/{index-ilQWX_BM.js → index-BUOBDenR.js} +2 -2
- package/lib/{index-C_qv6rk4.cjs → index-Bv5vIuF-.cjs} +1 -1
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +2 -2
- package/lib/{object-BZELAoVj.cjs → object-CCiXnER2.cjs} +1 -1
- package/lib/{object-R34VLqhp.js → object-D6MVWB4l.js} +8 -8
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +2 -2
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +1 -1
- package/lib/scroll/ScrollElement.d.ts +2 -0
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +413 -401
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/{tags-D0zt3vue.js → tags-CMPg9ETZ.js} +1 -1
- package/lib/{tags-CK7mk_EP.cjs → tags-Djb6mb1o.cjs} +1 -1
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +1 -1
- package/lib/tweaker/index.cjs +1 -1
- package/lib/tweaker/index.js +3 -3
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +1 -1
- package/package.json +1 -1
- package/lib/Damped-9h4qaGcS.cjs +0 -1
- package/lib/Damped-HhitpTP_.js +0 -132
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var w=Object.defineProperty,L=Object.defineProperties;var _=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var k=(e,s,t)=>s in e?w(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,N=(e,s)=>{for(var t in s||(s={}))j.call(s,t)&&k(e,t,s[t]);if(O)for(var t of O(s))z.call(s,t)&&k(e,t,s[t]);return e},P=(e,s)=>L(e,_(s));var v=(e,s,t)=>{if(!s.has(e))throw TypeError("Cannot "+t)};var i=(e,s,t)=>(v(e,s,"read from private field"),t?t.call(e):s.get(e)),a=(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)},r=(e,s,t,h)=>(v(e,s,"write to private field"),h?h.call(e,t):s.set(e,t),t);const D=require("./math-GDWEqu7y.cjs"),q=require("./number-yVpzMdbQ.cjs"),c=require("./polyfills-CrcS4RcO.cjs"),I=require("./Store-C-1ruEIm.cjs"),M=require("./ticker/index.cjs");var d,f,F,m,C;class R extends I.Store{constructor(t,h){super(t||0);a(this,d,void 0);a(this,f,void 0);a(this,F,void 0);a(this,m,new I.Store(!1));a(this,C,t=>{this.handleAnimationFrame(t)});this.updateOptions(h)}get isRunning(){return i(this,m)}reset(){this.unlistenAnimationFrame(),super.reset()}close(){super.close(),this.unlistenAnimationFrame()}updateOptions(t){r(this,d,c.nullishCoalescing(t==null?void 0:t.maxFPS,i(this,d))),r(this,f,c.nullishCoalescing(t==null?void 0:t.order,i(this,f))),r(this,F,c.nullishCoalescing(t==null?void 0:t.culling,i(this,F)))}listenAnimationFrame(){i(this,m).current||(i(this,m).current=!0,M.ticker.subscribe(i(this,C),{maxFPS:i(this,d),order:i(this,f),culling:i(this,F)}))}unlistenAnimationFrame(){i(this,m).current&&(i(this,m).current=!1,M.ticker.unsubscribe(i(this,C)))}}d=new WeakMap,f=new WeakMap,F=new WeakMap,m=new WeakMap,C=new WeakMap;var n,A,u,l,g,x,b;class B extends R{constructor(t,h){super(t||0,h);a(this,n,void 0);a(this,A,void 0);a(this,u,void 0);a(this,l,void 0);a(this,g,void 0);a(this,x,void 0);a(this,b,void 0);this.damping=.01,this.stiffness=0,this.mass=0,r(this,n,0),r(this,A,0),r(this,u,0),r(this,l,0),r(this,g,0),r(this,x,0),r(this,b,()=>{this.set(i(this,n),!0)}),r(this,u,c.nullishCoalescing(h==null?void 0:h.min,-1/0)),r(this,l,c.nullishCoalescing(h==null?void 0:h.max,1/0)),r(this,n,this.current)}get target(){return i(this,n)}get direction(){return i(this,A)}get min(){return i(this,u)}set min(t){r(this,u,t),i(this,b).call(this)}get max(){return i(this,l)}set max(t){r(this,l,t),i(this,b).call(this)}get velocity(){return i(this,g)}get speed(){return i(this,x)}get length(){return i(this,l)-i(this,u)}get progress(){return this.length?q.preciseNumber((this.current-i(this,u))/this.length,6):0}get entry(){return P(N({},super.entry),{min:i(this,u),max:i(this,l),length:this.length,direction:this.direction,progress:this.progress})}set(t,h=!1){const y=i(this,n);r(this,n,D.clamp(t,i(this,u),i(this,l))),h&&(this.current=i(this,n)),i(this,n)!==y&&(r(this,A,Math.sign(t-i(this,n))||1),this.listenAnimationFrame())}shift(t,h=!1){this.set(i(this,n)+t,h)}reset(){this.set(this.initial,!0),super.reset()}listenAnimationFrame(){this.current!==this.target&&super.listenAnimationFrame()}updateOptions(t){super.updateOptions(t),this.damping=c.nullishCoalescing(t==null?void 0:t.damping,this.damping),this.mass=c.nullishCoalescing(t==null?void 0:t.damping,this.mass),this.stiffness=c.nullishCoalescing(t==null?void 0:t.damping,this.stiffness)}handleAnimationFrame(t){q.preciseNumber(this.current,4)===q.preciseNumber(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target);const h=this.current,y=Math.abs(h-this.target);r(this,x,y/t.elapsed);const S=t.elapsed/1e3;if(this.mass||this.stiffness){const p=(i(this,n)-this.current)*this.stiffness-i(this,g)*this.damping;r(this,g,i(this,g)+p/this.mass*S),this.current+=i(this,g)*S}else this.current=D.damp(this.current,this.target,this.damping,S)}}n=new WeakMap,A=new WeakMap,u=new WeakMap,l=new WeakMap,g=new WeakMap,x=new WeakMap,b=new WeakMap;exports.Animation=R;exports.Damped=B;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
var w = Object.defineProperty, L = Object.defineProperties;
|
|
2
|
+
var N = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var P = Object.getOwnPropertySymbols;
|
|
4
|
+
var j = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var v = (e, i, t) => i in e ? w(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, C = (e, i) => {
|
|
6
|
+
for (var t in i || (i = {}))
|
|
7
|
+
j.call(i, t) && v(e, t, i[t]);
|
|
8
|
+
if (P)
|
|
9
|
+
for (var t of P(i))
|
|
10
|
+
q.call(i, t) && v(e, t, i[t]);
|
|
11
|
+
return e;
|
|
12
|
+
}, D = (e, i) => L(e, N(i));
|
|
13
|
+
var I = (e, i, t) => {
|
|
14
|
+
if (!i.has(e))
|
|
15
|
+
throw TypeError("Cannot " + t);
|
|
16
|
+
};
|
|
17
|
+
var s = (e, i, t) => (I(e, i, "read from private field"), t ? t.call(e) : i.get(e)), a = (e, i, t) => {
|
|
18
|
+
if (i.has(e))
|
|
19
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
20
|
+
i instanceof WeakSet ? i.add(e) : i.set(e, t);
|
|
21
|
+
}, r = (e, i, t, h) => (I(e, i, "write to private field"), h ? h.call(e, t) : i.set(e, t), t);
|
|
22
|
+
import { c as z, d as B } from "./math-BOBiC4TN.js";
|
|
23
|
+
import { p as O } from "./number-Bo5RdrA1.js";
|
|
24
|
+
import { n as c } from "./polyfills-DJUYczFm.js";
|
|
25
|
+
import { S as M } from "./Store-BQXXikps.js";
|
|
26
|
+
import { ticker as R } from "./ticker/index.js";
|
|
27
|
+
var d, f, F, g, y;
|
|
28
|
+
class E extends M {
|
|
29
|
+
constructor(t, h) {
|
|
30
|
+
super(t || 0);
|
|
31
|
+
a(this, d, void 0);
|
|
32
|
+
a(this, f, void 0);
|
|
33
|
+
a(this, F, void 0);
|
|
34
|
+
a(this, g, new M(!1));
|
|
35
|
+
a(this, y, (t) => {
|
|
36
|
+
this.handleAnimationFrame(t);
|
|
37
|
+
});
|
|
38
|
+
this.updateOptions(h);
|
|
39
|
+
}
|
|
40
|
+
get isRunning() {
|
|
41
|
+
return s(this, g);
|
|
42
|
+
}
|
|
43
|
+
reset() {
|
|
44
|
+
this.unlistenAnimationFrame(), super.reset();
|
|
45
|
+
}
|
|
46
|
+
close() {
|
|
47
|
+
super.close(), this.unlistenAnimationFrame();
|
|
48
|
+
}
|
|
49
|
+
updateOptions(t) {
|
|
50
|
+
r(this, d, c(t == null ? void 0 : t.maxFPS, s(this, d))), r(this, f, c(t == null ? void 0 : t.order, s(this, f))), r(this, F, c(t == null ? void 0 : t.culling, s(this, F)));
|
|
51
|
+
}
|
|
52
|
+
listenAnimationFrame() {
|
|
53
|
+
s(this, g).current || (s(this, g).current = !0, R.subscribe(s(this, y), {
|
|
54
|
+
maxFPS: s(this, d),
|
|
55
|
+
order: s(this, f),
|
|
56
|
+
culling: s(this, F)
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
unlistenAnimationFrame() {
|
|
60
|
+
s(this, g).current && (s(this, g).current = !1, R.unsubscribe(s(this, y)));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
d = new WeakMap(), f = new WeakMap(), F = new WeakMap(), g = new WeakMap(), y = new WeakMap();
|
|
64
|
+
var n, A, m, u, l, x, b;
|
|
65
|
+
class U extends E {
|
|
66
|
+
constructor(t, h) {
|
|
67
|
+
super(t || 0, h);
|
|
68
|
+
a(this, n, void 0);
|
|
69
|
+
a(this, A, void 0);
|
|
70
|
+
a(this, m, void 0);
|
|
71
|
+
a(this, u, void 0);
|
|
72
|
+
a(this, l, void 0);
|
|
73
|
+
a(this, x, void 0);
|
|
74
|
+
a(this, b, void 0);
|
|
75
|
+
this.damping = 0.01, this.stiffness = 0, this.mass = 0, r(this, n, 0), r(this, A, 0), r(this, m, 0), r(this, u, 0), r(this, l, 0), r(this, x, 0), r(this, b, () => {
|
|
76
|
+
this.set(s(this, n), !0);
|
|
77
|
+
}), r(this, m, c(h == null ? void 0 : h.min, -1 / 0)), r(this, u, c(h == null ? void 0 : h.max, 1 / 0)), r(this, n, this.current);
|
|
78
|
+
}
|
|
79
|
+
get target() {
|
|
80
|
+
return s(this, n);
|
|
81
|
+
}
|
|
82
|
+
get direction() {
|
|
83
|
+
return s(this, A);
|
|
84
|
+
}
|
|
85
|
+
get min() {
|
|
86
|
+
return s(this, m);
|
|
87
|
+
}
|
|
88
|
+
set min(t) {
|
|
89
|
+
r(this, m, t), s(this, b).call(this);
|
|
90
|
+
}
|
|
91
|
+
get max() {
|
|
92
|
+
return s(this, u);
|
|
93
|
+
}
|
|
94
|
+
set max(t) {
|
|
95
|
+
r(this, u, t), s(this, b).call(this);
|
|
96
|
+
}
|
|
97
|
+
get velocity() {
|
|
98
|
+
return s(this, l);
|
|
99
|
+
}
|
|
100
|
+
get speed() {
|
|
101
|
+
return s(this, x);
|
|
102
|
+
}
|
|
103
|
+
get length() {
|
|
104
|
+
return s(this, u) - s(this, m);
|
|
105
|
+
}
|
|
106
|
+
get progress() {
|
|
107
|
+
return this.length ? O((this.current - s(this, m)) / this.length, 6) : 0;
|
|
108
|
+
}
|
|
109
|
+
get entry() {
|
|
110
|
+
return D(C({}, super.entry), {
|
|
111
|
+
min: s(this, m),
|
|
112
|
+
max: s(this, u),
|
|
113
|
+
length: this.length,
|
|
114
|
+
direction: this.direction,
|
|
115
|
+
progress: this.progress
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
set(t, h = !1) {
|
|
119
|
+
const S = s(this, n);
|
|
120
|
+
r(this, n, z(t, s(this, m), s(this, u))), h && (this.current = s(this, n)), s(this, n) !== S && (r(this, A, Math.sign(t - s(this, n)) || 1), this.listenAnimationFrame());
|
|
121
|
+
}
|
|
122
|
+
shift(t, h = !1) {
|
|
123
|
+
this.set(s(this, n) + t, h);
|
|
124
|
+
}
|
|
125
|
+
reset() {
|
|
126
|
+
this.set(this.initial, !0), super.reset();
|
|
127
|
+
}
|
|
128
|
+
listenAnimationFrame() {
|
|
129
|
+
this.current !== this.target && super.listenAnimationFrame();
|
|
130
|
+
}
|
|
131
|
+
updateOptions(t) {
|
|
132
|
+
super.updateOptions(t), this.damping = c(t == null ? void 0 : t.damping, this.damping), this.mass = c(t == null ? void 0 : t.damping, this.mass), this.stiffness = c(t == null ? void 0 : t.damping, this.stiffness);
|
|
133
|
+
}
|
|
134
|
+
handleAnimationFrame(t) {
|
|
135
|
+
O(this.current, 4) === O(this.target, 4) && (this.unlistenAnimationFrame(), this.current = this.target);
|
|
136
|
+
const h = this.current, S = Math.abs(h - this.target);
|
|
137
|
+
r(this, x, S / t.elapsed);
|
|
138
|
+
const p = t.elapsed / 1e3;
|
|
139
|
+
if (this.mass || this.stiffness) {
|
|
140
|
+
const k = (s(this, n) - this.current) * this.stiffness - s(this, l) * this.damping;
|
|
141
|
+
r(this, l, s(this, l) + k / this.mass * p), this.current += s(this, l) * p;
|
|
142
|
+
} else
|
|
143
|
+
this.current = B(this.current, this.target, this.damping, p);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
n = new WeakMap(), A = new WeakMap(), m = new WeakMap(), u = new WeakMap(), l = new WeakMap(), x = new WeakMap(), b = new WeakMap();
|
|
147
|
+
export {
|
|
148
|
+
E as A,
|
|
149
|
+
U as D
|
|
150
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TickerAddOptions, TickerCallbackEntry } from '../ticker';
|
|
2
|
+
import { Store, StoreEntry, StoreOptions } from '../store';
|
|
3
|
+
|
|
4
|
+
export interface AnimationEntry extends StoreEntry<number> {
|
|
5
|
+
length: number;
|
|
6
|
+
progress: number;
|
|
7
|
+
direction: number;
|
|
8
|
+
}
|
|
9
|
+
export interface AnimationOptions extends TickerAddOptions, StoreOptions<number> {
|
|
10
|
+
}
|
|
11
|
+
export declare abstract class Animation<Options extends AnimationOptions, Entry extends StoreEntry<number> = StoreEntry<number>> extends Store<number, 'number', Entry> {
|
|
12
|
+
#private;
|
|
13
|
+
constructor(initial?: number, options?: Options);
|
|
14
|
+
get isRunning(): Store<boolean, keyof import('../store').StoreManagers, StoreEntry<boolean>>;
|
|
15
|
+
abstract set(value: number): void;
|
|
16
|
+
abstract shift(value: number): void;
|
|
17
|
+
reset(): void;
|
|
18
|
+
close(): void;
|
|
19
|
+
updateOptions(options?: Omit<Options, keyof StoreOptions<number>>): void;
|
|
20
|
+
listenAnimationFrame(): void;
|
|
21
|
+
unlistenAnimationFrame(): void;
|
|
22
|
+
protected abstract handleAnimationFrame(e: TickerCallbackEntry): void;
|
|
23
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Animation } from './Animation';
|
|
2
|
+
import { TickerAddOptions, TickerCallbackEntry } from '../ticker';
|
|
3
|
+
import { StoreEntry, StoreManagers, StoreOptions } from '../store';
|
|
3
4
|
|
|
4
5
|
export interface DampedOptions extends TickerAddOptions, StoreOptions<number> {
|
|
5
|
-
damping?: number;
|
|
6
6
|
min?: number;
|
|
7
7
|
max?: number;
|
|
8
|
+
stiffness?: number;
|
|
9
|
+
damping?: number;
|
|
10
|
+
mass?: number;
|
|
8
11
|
}
|
|
9
12
|
export interface DampedEntry extends StoreEntry<number> {
|
|
10
13
|
min: number;
|
|
@@ -12,28 +15,28 @@ export interface DampedEntry extends StoreEntry<number> {
|
|
|
12
15
|
length: number;
|
|
13
16
|
progress: number;
|
|
14
17
|
direction: number;
|
|
15
|
-
speed: number;
|
|
16
18
|
}
|
|
17
|
-
export declare class Damped extends
|
|
19
|
+
export declare class Damped extends Animation<DampedOptions, DampedEntry> {
|
|
18
20
|
#private;
|
|
21
|
+
damping: number;
|
|
22
|
+
stiffness: number;
|
|
23
|
+
mass: number;
|
|
19
24
|
constructor(initial?: number, options?: DampedOptions);
|
|
20
25
|
get target(): number;
|
|
21
|
-
get isRunning(): Store<boolean, keyof import('../store').StoreManagers, StoreEntry<boolean>>;
|
|
22
26
|
get direction(): number;
|
|
23
|
-
get maxFPS(): number | undefined;
|
|
24
|
-
get speed(): number;
|
|
25
27
|
get min(): number;
|
|
26
28
|
set min(value: number);
|
|
27
29
|
get max(): number;
|
|
28
30
|
set max(value: number);
|
|
31
|
+
get velocity(): number;
|
|
32
|
+
get speed(): number;
|
|
29
33
|
get length(): number;
|
|
30
34
|
get progress(): number;
|
|
31
|
-
get damping(): number;
|
|
32
|
-
set damping(value: number);
|
|
33
35
|
get entry(): DampedEntry;
|
|
34
36
|
set(value: number, equalize?: boolean): void;
|
|
35
37
|
shift(value: number, equalize?: boolean): void;
|
|
36
|
-
close(): void;
|
|
37
38
|
reset(): void;
|
|
38
|
-
|
|
39
|
+
listenAnimationFrame(): void;
|
|
40
|
+
updateOptions(options?: Omit<DampedOptions, keyof StoreOptions<number, keyof StoreManagers>> | undefined): void;
|
|
41
|
+
protected handleAnimationFrame(e: TickerCallbackEntry): void;
|
|
39
42
|
}
|
|
@@ -1,31 +1,29 @@
|
|
|
1
|
+
import { Animation, AnimationOptions } from './Animation';
|
|
1
2
|
import { EasingFunction } from '../utils';
|
|
2
|
-
import { TickerAddOptions } from '../ticker';
|
|
3
|
-
import {
|
|
3
|
+
import { TickerAddOptions, TickerCallbackEntry } from '../ticker';
|
|
4
|
+
import { StoreEntry, StoreManagers, StoreOptions } from '../store';
|
|
4
5
|
|
|
5
|
-
export interface
|
|
6
|
+
export interface TweenedOptions extends AnimationOptions {
|
|
6
7
|
easing?: EasingFunction;
|
|
7
8
|
duration?: number;
|
|
8
9
|
}
|
|
9
|
-
export interface TweenedSetOptions extends
|
|
10
|
+
export interface TweenedSetOptions extends Omit<TweenedOptions, keyof StoreOptions<number>> {
|
|
10
11
|
restart?: boolean;
|
|
11
12
|
}
|
|
12
|
-
export interface TweenedOptions extends TweenedAnimationOptions, StoreOptions<number> {
|
|
13
|
-
}
|
|
14
13
|
export interface TweenedEntry extends StoreEntry<number> {
|
|
15
14
|
length: number;
|
|
16
15
|
progress: number;
|
|
17
16
|
direction: number;
|
|
18
17
|
}
|
|
19
|
-
export declare class Tweened extends
|
|
18
|
+
export declare class Tweened extends Animation<TweenedOptions, TweenedEntry> {
|
|
20
19
|
#private;
|
|
21
|
-
constructor(initial?: number, options?: TweenedOptions);
|
|
22
|
-
get isRunning(): Store<boolean, keyof import('../store').StoreManagers, StoreEntry<boolean>>;
|
|
20
|
+
constructor(initial?: number, options?: TweenedOptions & TickerAddOptions & StoreOptions<number>);
|
|
23
21
|
get direction(): number;
|
|
24
22
|
get length(): number;
|
|
25
23
|
get progress(): number;
|
|
26
24
|
get entry(): TweenedEntry;
|
|
27
25
|
set(value: number, options?: TweenedSetOptions): void;
|
|
28
26
|
shift(value: number, options?: TweenedSetOptions): void;
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
updateOptions(options?: Omit<TweenedOptions, keyof StoreOptions<number, keyof StoreManagers>> | undefined): void;
|
|
28
|
+
protected handleAnimationFrame(e: TickerCallbackEntry): void;
|
|
31
29
|
}
|
package/lib/animation/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var F=Object.defineProperty,O=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var d=(i,e,t)=>e in i?F(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,f=(i,e)=>{for(var t in e||(e={}))D.call(e,t)&&d(i,t,e[t]);if(g)for(var t of g(e))w.call(e,t)&&d(i,t,e[t]);return i},p=(i,e)=>O(i,T(e));var o=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)};var r=(i,e,t)=>(o(i,e,"read from private field"),t?t.call(i):e.get(i)),u=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},l=(i,e,t,s)=>(o(i,e,"write to private field"),s?s.call(i,t):e.set(i,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../Damped-BdnkNOcb.cjs"),C=require("../easings-DsS5-Kqc.cjs"),M=require("../math-GDWEqu7y.cjs"),A=require("../number-yVpzMdbQ.cjs"),b=require("../polyfills-CrcS4RcO.cjs");var c,h,n,a,m;class N extends q.Animation{constructor(t,s){super(t||0,s);u(this,c,C.linear);u(this,h,1e3);u(this,n,0);u(this,a,0);u(this,m,0)}get direction(){return r(this,m)}get length(){return r(this,a)-r(this,n)}get progress(){return this.length?A.preciseNumber((this.current-r(this,n))/this.length,6):0}get entry(){return p(f({},super.entry),{length:this.length,direction:this.direction,progress:this.progress})}set(t,s){s!=null&&s.restart&&(this.current=this.initial),l(this,n,this.current),l(this,a,t),l(this,m,Math.sign(this.length)),this.updateOptions(s),r(this,h)?(this.unlistenAnimationFrame(),this.listenAnimationFrame()):(this.current=r(this,a),this.unlistenAnimationFrame())}shift(t,s){this.set(this.current+t,s)}updateOptions(t){super.updateOptions(t),l(this,c,b.nullishCoalescing(t==null?void 0:t.easing,r(this,c))),l(this,h,b.nullishCoalescing(t==null?void 0:t.duration,r(this,h)))}handleAnimationFrame(t){const s=(t.timestamp-t.startTimestamp)/1e3/(r(this,h)/1e3),y=r(this,c).call(this,M.clamp(s,0,1));this.current=A.preciseNumber(r(this,n)+(r(this,a)-r(this,n))*y,6),s>1&&this.unlistenAnimationFrame()}}c=new WeakMap,h=new WeakMap,n=new WeakMap,a=new WeakMap,m=new WeakMap;exports.Damped=q.Damped;exports.Tweened=N;
|
package/lib/animation/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Damped, type DampedOptions, type DampedEntry } from './Damped';
|
|
2
|
-
export { Tweened, type
|
|
2
|
+
export { Tweened, type TweenedOptions, type TweenedSetOptions, type TweenedEntry, } from './Tweened';
|
package/lib/animation/index.js
CHANGED
|
@@ -1,98 +1,72 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var t in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
if (!
|
|
1
|
+
var O = Object.defineProperty, y = Object.defineProperties;
|
|
2
|
+
var D = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var g = Object.getOwnPropertySymbols;
|
|
4
|
+
var T = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var d = (e, i, t) => i in e ? O(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, f = (e, i) => {
|
|
6
|
+
for (var t in i || (i = {}))
|
|
7
|
+
T.call(i, t) && d(e, t, i[t]);
|
|
8
|
+
if (g)
|
|
9
|
+
for (var t of g(i))
|
|
10
|
+
b.call(i, t) && d(e, t, i[t]);
|
|
11
|
+
return e;
|
|
12
|
+
}, p = (e, i) => y(e, D(i));
|
|
13
|
+
var o = (e, i, t) => {
|
|
14
|
+
if (!i.has(e))
|
|
15
15
|
throw TypeError("Cannot " + t);
|
|
16
16
|
};
|
|
17
|
-
var
|
|
18
|
-
if (
|
|
17
|
+
var s = (e, i, t) => (o(e, i, "read from private field"), t ? t.call(e) : i.get(e)), m = (e, i, t) => {
|
|
18
|
+
if (i.has(e))
|
|
19
19
|
throw TypeError("Cannot add the same private member more than once");
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
import { D as
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
h(this, d, void 0);
|
|
38
|
-
h(this, x, void 0);
|
|
39
|
-
h(this, F, void 0);
|
|
40
|
-
h(this, b, H);
|
|
41
|
-
h(this, l, 1e3);
|
|
42
|
-
h(this, a, new M(!1));
|
|
43
|
-
h(this, c, 0);
|
|
44
|
-
h(this, g, 0);
|
|
45
|
-
h(this, P, 0);
|
|
46
|
-
h(this, y, (t) => {
|
|
47
|
-
const s = (t.timestamp - t.startTimestamp) / 1e3 / (r(this, l) / 1e3), q = r(this, b).call(this, I(s, 0, 1));
|
|
48
|
-
this.current = N(r(this, c) + (r(this, g) - r(this, c)) * q, 6), s > 1 && u(this, m, f).call(this);
|
|
49
|
-
});
|
|
50
|
-
u(this, w, R).call(this, s);
|
|
51
|
-
}
|
|
52
|
-
get isRunning() {
|
|
53
|
-
return r(this, a);
|
|
20
|
+
i instanceof WeakSet ? i.add(e) : i.set(e, t);
|
|
21
|
+
}, u = (e, i, t, r) => (o(e, i, "write to private field"), r ? r.call(e, t) : i.set(e, t), t);
|
|
22
|
+
import { A as w } from "../Damped-Ceg1a3X8.js";
|
|
23
|
+
import { D as H } from "../Damped-Ceg1a3X8.js";
|
|
24
|
+
import { l as C } from "../easings-BKi40vHz.js";
|
|
25
|
+
import { c as M } from "../math-BOBiC4TN.js";
|
|
26
|
+
import { p as A } from "../number-Bo5RdrA1.js";
|
|
27
|
+
import { n as F } from "../polyfills-DJUYczFm.js";
|
|
28
|
+
var l, n, h, a, c;
|
|
29
|
+
class B extends w {
|
|
30
|
+
constructor(t, r) {
|
|
31
|
+
super(t || 0, r);
|
|
32
|
+
m(this, l, C);
|
|
33
|
+
m(this, n, 1e3);
|
|
34
|
+
m(this, h, 0);
|
|
35
|
+
m(this, a, 0);
|
|
36
|
+
m(this, c, 0);
|
|
54
37
|
}
|
|
55
38
|
get direction() {
|
|
56
|
-
return
|
|
39
|
+
return s(this, c);
|
|
57
40
|
}
|
|
58
41
|
get length() {
|
|
59
|
-
return
|
|
42
|
+
return s(this, a) - s(this, h);
|
|
60
43
|
}
|
|
61
44
|
get progress() {
|
|
62
|
-
return this.length ?
|
|
45
|
+
return this.length ? A((this.current - s(this, h)) / this.length, 6) : 0;
|
|
63
46
|
}
|
|
64
47
|
get entry() {
|
|
65
|
-
return
|
|
48
|
+
return p(f({}, super.entry), {
|
|
66
49
|
length: this.length,
|
|
67
50
|
direction: this.direction,
|
|
68
51
|
progress: this.progress
|
|
69
52
|
});
|
|
70
53
|
}
|
|
71
|
-
set(t,
|
|
72
|
-
|
|
54
|
+
set(t, r) {
|
|
55
|
+
r != null && r.restart && (this.current = this.initial), u(this, h, this.current), u(this, a, t), u(this, c, Math.sign(this.length)), this.updateOptions(r), s(this, n) ? (this.unlistenAnimationFrame(), this.listenAnimationFrame()) : (this.current = s(this, a), this.unlistenAnimationFrame());
|
|
73
56
|
}
|
|
74
|
-
shift(t,
|
|
75
|
-
this.set(this.current + t,
|
|
57
|
+
shift(t, r) {
|
|
58
|
+
this.set(this.current + t, r);
|
|
76
59
|
}
|
|
77
|
-
|
|
78
|
-
u(this,
|
|
60
|
+
updateOptions(t) {
|
|
61
|
+
super.updateOptions(t), u(this, l, F(t == null ? void 0 : t.easing, s(this, l))), u(this, n, F(t == null ? void 0 : t.duration, s(this, n)));
|
|
79
62
|
}
|
|
80
|
-
|
|
81
|
-
|
|
63
|
+
handleAnimationFrame(t) {
|
|
64
|
+
const r = (t.timestamp - t.startTimestamp) / 1e3 / (s(this, n) / 1e3), x = s(this, l).call(this, M(r, 0, 1));
|
|
65
|
+
this.current = A(s(this, h) + (s(this, a) - s(this, h)) * x, 6), r > 1 && this.unlistenAnimationFrame();
|
|
82
66
|
}
|
|
83
67
|
}
|
|
84
|
-
|
|
85
|
-
n(this, b, S(t == null ? void 0 : t.easing, r(this, b))), n(this, l, S(t == null ? void 0 : t.duration, r(this, l))), n(this, d, S(t == null ? void 0 : t.maxFPS, r(this, d))), n(this, x, S(t == null ? void 0 : t.order, r(this, x))), n(this, F, S(t == null ? void 0 : t.culling, r(this, F)));
|
|
86
|
-
}, A = new WeakSet(), j = function() {
|
|
87
|
-
r(this, a).current || (r(this, a).current = !0, O.subscribe(r(this, y), {
|
|
88
|
-
maxFPS: r(this, d),
|
|
89
|
-
order: r(this, x),
|
|
90
|
-
culling: r(this, F)
|
|
91
|
-
}));
|
|
92
|
-
}, m = new WeakSet(), f = function() {
|
|
93
|
-
r(this, a).current && (r(this, a).current = !1, O.unsubscribe(r(this, y)));
|
|
94
|
-
}, y = new WeakMap();
|
|
68
|
+
l = new WeakMap(), n = new WeakMap(), h = new WeakMap(), a = new WeakMap(), c = new WeakMap();
|
|
95
69
|
export {
|
|
96
|
-
|
|
97
|
-
|
|
70
|
+
H as Damped,
|
|
71
|
+
B as Tweened
|
|
98
72
|
};
|
package/lib/canvas/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../custom-element/index.cjs");require("../Store-C-1ruEIm.cjs");const S=require("../math-GDWEqu7y.cjs"),E=require("../tags-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../custom-element/index.cjs");require("../Store-C-1ruEIm.cjs");const S=require("../math-GDWEqu7y.cjs"),E=require("../tags-Djb6mb1o.cjs"),b=require("../createStylesheet-CqHU9_qv.cjs"),k=require("../element-resizer/index.cjs"),C=require("../ticker/index.cjs");var y=Object.defineProperty,q=Object.getOwnPropertyDescriptor,P=(i,e,s,h)=>{for(var r=h>1?void 0:h?q(e,s):e,f=i.length-1,g;f>=0;f--)(g=i[f])&&(r=(h?g(e,s,r):g(r))||r);return h&&r&&y(e,s,r),r},R=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(R(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)},c=(i,e,s,h)=>(R(i,e,"write to private field"),h?h.call(i,s):e.set(i,s),s),M=(i,e,s)=>(R(i,e,"access private method"),s),n,p,l,o,d,u,v,_,m,w,x;const O=b.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});exports.CanvasElement=class extends W.CustomElement{constructor(){super(),a(this,w),a(this,n,null),a(this,p,null),a(this,l,0),a(this,o,0),a(this,d,1),a(this,u,0),a(this,v,1),a(this,_,e=>{c(this,d,S.clamp(devicePixelRatio,1,2)),c(this,l,e.contentRect.width),c(this,o,e.contentRect.height),t(this,n).width=t(this,l)*this.pixelRatio,t(this,n).height=t(this,o)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),M(this,w,x).call(this)}),a(this,m,e=>{c(this,u,e.timestamp),c(this,v,e.elapsed),M(this,w,x).call(this)}),this.openShadow(O),E.element(this,{children:E.canvas({ref:e=>{c(this,n,e),c(this,p,e.getContext("2d"))}})})}get canvasElement(){return t(this,n)}get context(){return t(this,p)}get pixelRatio(){return t(this,d)}get width(){return t(this,l)}get height(){return t(this,o)}get detail(){return{width:t(this,l),height:t(this,o),element:this,canvasElement:t(this,n),pixelRatio:t(this,d),context:t(this,p),timestamp:t(this,u),elapsed:t(this,v)}}connectedCallback(){k.elementResizer.subscribe(this,t(this,_)),this.hasAttribute("static")||C.ticker.subscribe(t(this,m),{culling:this,maxFPS:this.hasAttribute("fps")?parseInt(this.getAttribute("fps")):void 0})}disconnectedCallback(){k.elementResizer.unsubscribe(t(this,_)),C.ticker.unsubscribe(t(this,m)),t(this,n).remove()}};n=new WeakMap;p=new WeakMap;l=new WeakMap;o=new WeakMap;d=new WeakMap;u=new WeakMap;v=new WeakMap;_=new WeakMap;m=new WeakMap;w=new WeakSet;x=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))};exports.CanvasElement=P([W.define("e-canvas")],exports.CanvasElement);
|
package/lib/canvas/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CustomElement as M, define as b } from "../custom-element/index.js";
|
|
2
2
|
import "../Store-BQXXikps.js";
|
|
3
3
|
import { c as P } from "../math-BOBiC4TN.js";
|
|
4
|
-
import { e as S, q as y } from "../tags-
|
|
5
|
-
import { c as A } from "../createStylesheet-
|
|
4
|
+
import { e as S, q as y } from "../tags-CMPg9ETZ.js";
|
|
5
|
+
import { c as A } from "../createStylesheet-DBCEbDjI.js";
|
|
6
6
|
import { elementResizer as k } from "../element-resizer/index.js";
|
|
7
7
|
import { ticker as E } from "../ticker/index.js";
|
|
8
8
|
var O = Object.defineProperty, z = Object.getOwnPropertyDescriptor, D = (t, i, s, r) => {
|
package/lib/checkbox/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../custom-element/index.cjs");require("../Store-C-1ruEIm.cjs");const r=require("../tags-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../custom-element/index.cjs");require("../Store-C-1ruEIm.cjs");const r=require("../tags-Djb6mb1o.cjs"),_=require("../createStylesheet-CqHU9_qv.cjs"),l=require("../theme/index.cjs"),w='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>';var x=Object.defineProperty,b=Object.getOwnPropertyDescriptor,y=(t,e,a,i)=>{for(var h=i>1?void 0:i?b(e,a):e,p=t.length-1,v;p>=0;p--)(v=t[p])&&(h=(i?v(e,a,h):v(h))||h);return i&&h&&x(e,a,h),h},k=(t,e,a)=>{if(!e.has(t))throw TypeError("Cannot "+a)},n=(t,e,a)=>(k(t,e,"read from private field"),a?a.call(t):e.get(t)),f=(t,e,a)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,a)},g=(t,e,a,i)=>(k(t,e,"write to private field"),i?i.call(t,a):e.set(t,a),a),u=(t,e,a)=>(k(t,e,"access private method"),a),s,d,c,o;const C=_.createStylesheet({":host":{position:"relative",display:"inline-block",width:l.aptechkaTheme.heightInput.var,height:l.aptechkaTheme.heightInput.var,borderRadius:l.aptechkaTheme.borderRadiusSmall.var,overflow:"hidden"},"label, .fake":{display:"block"},"label, .fake, .default":{width:"100%",height:"100%"},".real":{position:"absolute",top:"0",left:"0",width:"0px",height:"0px",visibility:"hidden",margin:"0"},".default":{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:l.aptechkaTheme.colorDarkAux.var},".default svg":{width:"60%",height:"60%",fill:l.aptechkaTheme.colorLight.var,opacity:0,transition:l.aptechkaTheme.durationShort.var},":host(.checked) .default svg":{opacity:1}});exports.CheckboxElement=class extends m.CustomElement{constructor(){super(),f(this,c),f(this,s,null),f(this,d,void 0),this.openShadow(C),g(this,d,this.attachInternals()),r.element(this,{children:r.label({children:[r.span({class:"fake",children:r.slot({children:[r.span({class:"default",children:[w]})]})}),r.input({ref:e=>{g(this,s,e),e.required=this.hasAttribute("required"),e.value=this.getAttribute("value")||"",e.checked=this.hasAttribute("checked"),e.name=this.getAttribute("name")||"",u(this,c,o).call(this)},class:"real",type:"checkbox",onChange:()=>{u(this,c,o).call(this),this.dispatchEvent(new Event("change",{composed:!0}))}})]})})}get checked(){return n(this,s).checked}set checked(e){n(this,s).checked=e,u(this,c,o).call(this)}get value(){return n(this,s).value}set value(e){n(this,s).value=e,u(this,c,o).call(this)}};s=new WeakMap;d=new WeakMap;c=new WeakSet;o=function(){this.checked?n(this,d).setFormValue(this.value):n(this,d).setFormValue(null),this.classList.toggle("checked",this.checked)};exports.CheckboxElement.formAssociated=!0;exports.CheckboxElement=y([m.define("e-checkbox")],exports.CheckboxElement);
|
package/lib/checkbox/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CustomElement as w, define as _ } from "../custom-element/index.js";
|
|
2
2
|
import "../Store-BQXXikps.js";
|
|
3
|
-
import { e as y, a3 as x, aB as m, ay as b, a0 as C } from "../tags-
|
|
4
|
-
import { c as A } from "../createStylesheet-
|
|
3
|
+
import { e as y, a3 as x, aB as m, ay as b, a0 as C } from "../tags-CMPg9ETZ.js";
|
|
4
|
+
import { c as A } from "../createStylesheet-DBCEbDjI.js";
|
|
5
5
|
import { aptechkaTheme as h } from "../theme/index.js";
|
|
6
6
|
const E = '<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>';
|
|
7
7
|
var S = Object.defineProperty, I = Object.getOwnPropertyDescriptor, F = (e, t, a, i) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./tags-
|
|
1
|
+
"use strict";const n=require("./tags-Djb6mb1o.cjs");function r(t){const e=new CSSStyleSheet;return e.replaceSync(n.style(t).node.innerHTML),e}exports.createStylesheet=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../tags-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../tags-Djb6mb1o.cjs"),t=require("../createStylesheet-CqHU9_qv.cjs"),a=require("../createTheme-Cfaw9UmV.cjs");exports.ElementConstructor=e.ElementConstructor;exports.a=e.a;exports.abbr=e.abbr;exports.address=e.address;exports.area=e.area;exports.article=e.article;exports.aside=e.aside;exports.audio=e.audio;exports.b=e.b;exports.base=e.base;exports.bdi=e.bdi;exports.bdo=e.bdo;exports.blockquote=e.blockquote;exports.body=e.body;exports.br=e.br;exports.button=e.button;exports.canvas=e.canvas;exports.caption=e.caption;exports.cite=e.cite;exports.code=e.code;exports.col=e.col;exports.colgroup=e.colgroup;exports.contents=e.contents;exports.data=e.data;exports.datalist=e.datalist;exports.dd=e.dd;exports.del=e.del;exports.details=e.details;exports.dfn=e.dfn;exports.dialog=e.dialog;exports.div=e.div;exports.dl=e.dl;exports.dt=e.dt;exports.element=e.element;exports.em=e.em;exports.embed=e.embed;exports.empty=e.empty;exports.fieldset=e.fieldset;exports.figcaption=e.figcaption;exports.figure=e.figure;exports.footer=e.footer;exports.form=e.form;exports.fragment=e.fragment;exports.h1=e.h1;exports.h2=e.h2;exports.h3=e.h3;exports.h4=e.h4;exports.h5=e.h5;exports.h6=e.h6;exports.head=e.head;exports.header=e.header;exports.hgroup=e.hgroup;exports.hr=e.hr;exports.html=e.html;exports.htmlVar=e.htmlVar;exports.i=e.i;exports.iframe=e.iframe;exports.img=e.img;exports.input=e.input;exports.ins=e.ins;exports.kbd=e.kbd;exports.label=e.label;exports.legend=e.legend;exports.li=e.li;exports.link=e.link;exports.main=e.main;exports.map=e.map;exports.mark=e.mark;exports.menu=e.menu;exports.meta=e.meta;exports.meter=e.meter;exports.nav=e.nav;exports.noscript=e.noscript;exports.object=e.object;exports.ol=e.ol;exports.optgroup=e.optgroup;exports.option=e.option;exports.output=e.output;exports.p=e.p;exports.picture=e.picture;exports.pre=e.pre;exports.progress=e.progress;exports.q=e.q;exports.rp=e.rp;exports.rt=e.rt;exports.ruby=e.ruby;exports.s=e.s;exports.samp=e.samp;exports.script=e.script;exports.search=e.search;exports.section=e.section;exports.select=e.select;exports.slot=e.slot;exports.small=e.small;exports.source=e.source;exports.span=e.span;exports.strong=e.strong;exports.style=e.style;exports.sub=e.sub;exports.summary=e.summary;exports.sup=e.sup;exports.table=e.table;exports.tbody=e.tbody;exports.td=e.td;exports.template=e.template;exports.textarea=e.textarea;exports.tfoot=e.tfoot;exports.th=e.th;exports.thead=e.thead;exports.time=e.time;exports.title=e.title;exports.tr=e.tr;exports.track=e.track;exports.u=e.u;exports.ul=e.ul;exports.video=e.video;exports.wbr=e.wbr;exports.createStylesheet=t.createStylesheet;exports.createTheme=a.createTheme;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as e, a as t, b as r, c as o, d as i, f as l, g as d, h as m, i as p, j as c, k as n, l as u, m as b, n as h, o as f, p as g, q as y, r as k, s as v, t as x, u as q, v as j, a_ as w, w as C, x as E, y as S, z as T, A as V, B as z, C as A, D as B, F as D, G as F, e as G, H, I, aZ as J, J as K, K as L, L as M, M as N, N as O, aY as P, O as Q, P as R, Q as U, R as W, S as X, T as Y, U as Z, V as _, W as $, X as aa, Y as sa, aV as ea, Z as ta, _ as ra, $ as oa, a0 as ia, a1 as la, a2 as da, a3 as ma, a4 as pa, a5 as ca, a6 as na, a7 as ua, a8 as ba, a9 as ha, aa as fa, ab as ga, ac as ya, ad as ka, ae as va, af as xa, ag as qa, ah as ja, ai as wa, aj as Ca, ak as Ea, al as Sa, am as Ta, an as Va, ao as za, ap as Aa, aq as Ba, ar as Da, as as Fa, at as Ga, au as Ha, av as Ia, aw as Ja, ax as Ka, ay as La, az as Ma, aA as Na, aB as Oa, aC as Pa, aD as Qa, aE as Ra, aF as Ua, aG as Wa, aH as Xa, aI as Ya, aJ as Za, aK as _a, aL as $a, aM as as, aN as ss, aO as es, aP as ts, aQ as rs, aR as os, aS as is, aT as ls, aU as ds, aW as ms, aX as ps } from "../tags-
|
|
2
|
-
import { c as ns } from "../createStylesheet-
|
|
1
|
+
import { E as e, a as t, b as r, c as o, d as i, f as l, g as d, h as m, i as p, j as c, k as n, l as u, m as b, n as h, o as f, p as g, q as y, r as k, s as v, t as x, u as q, v as j, a_ as w, w as C, x as E, y as S, z as T, A as V, B as z, C as A, D as B, F as D, G as F, e as G, H, I, aZ as J, J as K, K as L, L as M, M as N, N as O, aY as P, O as Q, P as R, Q as U, R as W, S as X, T as Y, U as Z, V as _, W as $, X as aa, Y as sa, aV as ea, Z as ta, _ as ra, $ as oa, a0 as ia, a1 as la, a2 as da, a3 as ma, a4 as pa, a5 as ca, a6 as na, a7 as ua, a8 as ba, a9 as ha, aa as fa, ab as ga, ac as ya, ad as ka, ae as va, af as xa, ag as qa, ah as ja, ai as wa, aj as Ca, ak as Ea, al as Sa, am as Ta, an as Va, ao as za, ap as Aa, aq as Ba, ar as Da, as as Fa, at as Ga, au as Ha, av as Ia, aw as Ja, ax as Ka, ay as La, az as Ma, aA as Na, aB as Oa, aC as Pa, aD as Qa, aE as Ra, aF as Ua, aG as Wa, aH as Xa, aI as Ya, aJ as Za, aK as _a, aL as $a, aM as as, aN as ss, aO as es, aP as ts, aQ as rs, aR as os, aS as is, aT as ls, aU as ds, aW as ms, aX as ps } from "../tags-CMPg9ETZ.js";
|
|
2
|
+
import { c as ns } from "../createStylesheet-DBCEbDjI.js";
|
|
3
3
|
import { c as bs } from "../createTheme-CHnsCgAr.js";
|
|
4
4
|
export {
|
|
5
5
|
e as ElementConstructor,
|
|
@@ -12,8 +12,8 @@ import "./Store-BQXXikps.js";
|
|
|
12
12
|
import { i as P } from "./browser-0zX67oeU.js";
|
|
13
13
|
import { d as Q } from "./events-_C2CztxR.js";
|
|
14
14
|
import { g as X } from "./style-j2TwriJ_.js";
|
|
15
|
-
import { e as k, p as V, ay as E, D as R } from "./tags-
|
|
16
|
-
import { c as D } from "./createStylesheet-
|
|
15
|
+
import { e as k, p as V, ay as E, D as R } from "./tags-CMPg9ETZ.js";
|
|
16
|
+
import { c as D } from "./createStylesheet-DBCEbDjI.js";
|
|
17
17
|
import { aptechkaTheme as w } from "./theme/index.js";
|
|
18
18
|
var j = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, te = (t, e, s, i) => {
|
|
19
19
|
for (var n = i > 1 ? void 0 : i ? ee(e, s) : e, r = t.length - 1, l; r >= 0; r--)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var D=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var z=(t,e,s)=>(D(t,e,"read from private field"),s?s.call(t):e.get(t)),A=(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)},H=(t,e,s,i)=>(D(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 W=require("./browser-CpzFX2xg.cjs"),N=require("./events-Crwi8fz6.cjs"),V=require("./style-At6aDoqG.cjs"),a=require("./tags-
|
|
1
|
+
"use strict";var D=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var z=(t,e,s)=>(D(t,e,"read from private field"),s?s.call(t):e.get(t)),A=(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)},H=(t,e,s,i)=>(D(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 W=require("./browser-CpzFX2xg.cjs"),N=require("./events-Crwi8fz6.cjs"),V=require("./style-At6aDoqG.cjs"),a=require("./tags-Djb6mb1o.cjs"),M=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},P=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},r=(t,e,s)=>(P(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)=>(P(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),I=(t,e,s)=>(P(t,e,"access private method"),s),u,f,o,v,m,g,$,C,b;const K=M.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,$,()=>{N.dispatchSizeChangeEvent(this)}),W.isBrowser&&(this.openShadow(K),d(this,u,this.attachInternals()),d(this,g,new ResizeObserver(r(this,$))),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",I(this,C,b).call(this)},0)}close(){d(this,v,!1),r(this,o).style.height="0px",this.classList.remove("opened"),I(this,C,b).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;$=new WeakMap;C=new WeakSet;b=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 q extends S.CustomElement{constructor(){super(...arguments);A(this,y,null)}get selectElement(){return z(this,y)}connectedCallback(){var i,n;const s=(n=(i=this.assignedSlot)==null?void 0:i.getRootNode())==null?void 0:n.host;s?H(this,y,s):console.log(this,"e-select not found")}}y=new WeakMap;var Q=Object.defineProperty,X=Object.getOwnPropertyDescriptor,j=(t,e,s,i)=>{for(var n=i>1?void 0:i?X(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&&Q(e,s,n),n},G=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},x=(t,e,s)=>(G(t,e,"read from private field"),s?s.call(t):e.get(t)),B=(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)},ee=(t,e,s)=>(G(t,e,"access private method"),s),w,L,R;const te=M.createStylesheet({":host":{width:"100%",height:E.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center"},button:{all:"inherit"}});exports.SelectOptionElement=class extends q{constructor(){super(),B(this,L),B(this,w,()=>{this.selectElement.value===this.value?this.style.display="none":this.style.display=""}),W.isBrowser&&(this.openShadow(te),a.element(this,{children:[a.button({onClick:()=>{ee(this,L,R).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",x(this,w)),setTimeout(()=>{x(this,w).call(this)})}disconnectedCallback(){this.selectElement.removeEventListener("change",x(this,w))}};w=new WeakMap;L=new WeakSet;R=function(){this.selectElement.value=this.value,this.selectElement.close()};exports.SelectOptionElement=j([S.define("e-select-option")],exports.SelectOptionElement);const F=`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="32"
|
|
4
4
|
height="32"
|