aptechka 0.1.15 → 0.1.16
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/component/index.cjs +1 -1
- package/lib/component/index.js +100 -102
- package/lib/resized/index.cjs +1 -0
- package/lib/resized/index.js +30 -0
- package/package.json +9 -1
package/lib/component/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var I=Object.defineProperty,M=Object.defineProperties;var _=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var k=(t,e,n)=>e in t?I(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,
|
|
1
|
+
"use strict";var I=Object.defineProperty,M=Object.defineProperties;var _=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var k=(t,e,n)=>e in t?I(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e)=>{for(var n in e||(e={}))F.call(e,n)&&k(t,n,e[n]);if(D)for(var n of D(e))H.call(e,n)&&k(t,n,e[n]);return t},q=(t,e)=>M(t,_(e));var L=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var s=(t,e,n)=>(L(t,e,"read from private field"),n?n.call(t):e.get(t)),w=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("../Store-D0_rDIsE.cjs"),g=require("../tags-75InVOh4.cjs"),P=require("../Derived-SjPdLJiZ.cjs"),E=require("../Composed-C2Vv1xxR.cjs"),W=require("../ticker/index.cjs"),j=require("../animation/index.cjs"),B=require("../Damped-mdFs8WSd.cjs"),v=require("../intersector/index.cjs"),T=require("../element-resizer/index.cjs"),O=require("../window-resizer/index.cjs"),A=require("../createStylesheet-DTOK6fTn.cjs");let b=null;const y=new Map;function C(t){b.addConnectCallback(t)}function l(t){b.addDisconnectCallback(t)}function S(t){return t(b)}function $(...t){var i,a,f,p;const e=typeof t[0]=="string"?HTMLElement:t[0],n=typeof t[0]=="string"?t[0]:t[1],r=typeof t[0]=="string"?t[1]:t[2],c=`e-${n}`,u=typeof t[0]=="string"?t[2]:t[3];let d=customElements.get(c);return d||(d=(p=class extends e{constructor(o){super();w(this,i,new Set);w(this,a,new Set);w(this,f,new Set);b=this;const m=r(R({element:this},o));m&&g.element(this,m),s(this,f).forEach(h=>{h(this)}),s(this,f).clear(),y.forEach((h,z)=>{h.element===this&&y.delete(z)})}addConnectCallback(o){s(this,i).add(o)}addDisconnectCallback(o){s(this,a).add(o)}addAfterCreateCallback(o){s(this,f).add(o)}connectedCallback(){var o;(o=super.connectedCallback)==null||o.call(this),s(this,i).forEach(m=>{const h=m(this);h&&s(this,a).add(h)}),s(this,i).clear()}disconnectedCallback(){var o;(o=super.disconnectedCallback)==null||o.call(this),s(this,a).forEach(m=>{m(this)}),s(this,a).clear()}},i=new WeakMap,a=new WeakMap,f=new WeakMap,p),u!=null&&u.formAssociated&&(d.formAssociated=!0),customElements.define(c,d)),x=>new d(x||{})}function G(...t){const e=new N.Store(...t);return l(e.close),e}function J(...t){const e=new P.Derived(...t);return l(e.close),e}function K(...t){const e=new E.DerivedArray(...t);return l(e.close),e}function Q(...t){const e=new E.Composed(...t);return l(e.close),e}function U(...t){const e=new E.Resource(...t);return l(e.close),e}function V(...t){const e=new B.Damped(...t);return l(e.close),e}function X(...t){const e=new j.Tweened(...t);return l(e.close),e}function Y(t,e){C(n=>{let r;const c=e==null?void 0:e.culling;return c===!0?r=n:typeof c=="string"||c instanceof Element?r=c:typeof c=="object"&&(r=c.current),W.ticker.subscribe(t,{culling:r,maxFPS:e==null?void 0:e.maxFPS,order:e==null?void 0:e.order})})}function Z(t,e){S(n=>{y.set(t,{element:n,value:e})})}function ee(t){var e;return(e=y.get(t))==null?void 0:e.value}function te(t,e){C(n=>{const r=e||(n instanceof Element?n:void 0);if(typeof r=="string"||r instanceof Element)return v.intersector.subscribe(r,t);if(r!=null&&r.current)return v.intersector.subscribe(r.current,t)})}function ne(t,e){C(n=>{const r=e||(n instanceof Element?n:void 0);if(typeof r=="string"||r instanceof Element)return T.elementResizer.subscribe(r,t);if(r!=null&&r.current)return T.elementResizer.subscribe(r.current,t)})}function re(t,e){C(n=>O.windowResizer.subscribe(t,e))}function ce(t){S(e=>{e.shadowRoot&&e.shadowRoot.adoptedStyleSheets.push(A.createStylesheet(t))}),C(e=>{if(e.shadowRoot)return;const n=e.getRootNode();if(n===document){const r=g.style(t).node;if(![...document.head.querySelectorAll("style")].find(u=>u.outerHTML===r.outerHTML))return document.head.appendChild(r),()=>{r.remove()}}else if(n instanceof ShadowRoot){const r=A.createStylesheet(t);n.adoptedStyleSheets.filter(c=>{const u=Array.from(c.cssRules);Array.from(r.cssRules).filter(i=>!u.find(a=>a.cssText===i.cssText)).forEach(i=>{c.insertRule(i.cssText)})})}})}function oe(t){return S(e=>e.attachShadow(q(R({},t),{mode:"open"})))}function se(){return S(t=>t.attachInternals())}exports.Component=$;exports.attachInternals=se;exports.attachShadow=oe;exports.attachStyle=ce;exports.createComposed=Q;exports.createContext=Z;exports.createDamped=V;exports.createDerived=J;exports.createDerivedArray=K;exports.createResource=U;exports.createStore=G;exports.createTweened=X;exports.getContext=ee;exports.onAnimationFrame=Y;exports.onConnect=C;exports.onDisconnect=l;exports.onElementResize=ne;exports.onIntersection=te;exports.onWindowResize=re;
|
package/lib/component/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var z = Object.defineProperty, M = Object.defineProperties;
|
|
|
2
2
|
var F = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var D = Object.getOwnPropertySymbols;
|
|
4
4
|
var H = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var k = (t, e, n) => e in t ? z(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n,
|
|
5
|
+
var k = (t, e, n) => e in t ? z(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, E = (t, e) => {
|
|
6
6
|
for (var n in e || (e = {}))
|
|
7
7
|
H.call(e, n) && k(t, n, e[n]);
|
|
8
8
|
if (D)
|
|
@@ -14,7 +14,7 @@ var L = (t, e, n) => {
|
|
|
14
14
|
if (!e.has(t))
|
|
15
15
|
throw TypeError("Cannot " + n);
|
|
16
16
|
};
|
|
17
|
-
var s = (t, e, n) => (L(t, e, "read from private field"), n ? n.call(t) : e.get(t)),
|
|
17
|
+
var s = (t, e, n) => (L(t, e, "read from private field"), n ? n.call(t) : e.get(t)), w = (t, e, n) => {
|
|
18
18
|
if (e.has(t))
|
|
19
19
|
throw TypeError("Cannot add the same private member more than once");
|
|
20
20
|
e instanceof WeakSet ? e.add(t) : e.set(t, n);
|
|
@@ -30,117 +30,115 @@ import { intersector as T } from "../intersector/index.js";
|
|
|
30
30
|
import { elementResizer as A } from "../element-resizer/index.js";
|
|
31
31
|
import { windowResizer as O } from "../window-resizer/index.js";
|
|
32
32
|
import { c as v } from "../createStylesheet-Zqf3lXhM.js";
|
|
33
|
-
let
|
|
34
|
-
const
|
|
33
|
+
let p = null;
|
|
34
|
+
const b = /* @__PURE__ */ new Map();
|
|
35
35
|
function C(t) {
|
|
36
|
-
|
|
36
|
+
p.addConnectCallback(t);
|
|
37
37
|
}
|
|
38
38
|
function u(t) {
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
function
|
|
42
|
-
return t(
|
|
39
|
+
p.addDisconnectCallback(t);
|
|
40
|
+
}
|
|
41
|
+
function y(t) {
|
|
42
|
+
return t(p);
|
|
43
|
+
}
|
|
44
|
+
function ce(...t) {
|
|
45
|
+
var i, a, d, R;
|
|
46
|
+
const e = typeof t[0] == "string" ? HTMLElement : t[0], n = typeof t[0] == "string" ? t[0] : t[1], r = typeof t[0] == "string" ? t[1] : t[2], o = `e-${n}`, l = typeof t[0] == "string" ? t[2] : t[3];
|
|
47
|
+
let f = customElements.get(
|
|
48
|
+
o
|
|
49
|
+
);
|
|
50
|
+
return f || (f = (R = class extends e {
|
|
51
|
+
constructor(c) {
|
|
52
|
+
super();
|
|
53
|
+
w(this, i, /* @__PURE__ */ new Set());
|
|
54
|
+
w(this, a, /* @__PURE__ */ new Set());
|
|
55
|
+
w(this, d, /* @__PURE__ */ new Set());
|
|
56
|
+
p = this;
|
|
57
|
+
const m = r(E({
|
|
58
|
+
element: this
|
|
59
|
+
}, c));
|
|
60
|
+
m && P(this, m), s(this, d).forEach((h) => {
|
|
61
|
+
h(this);
|
|
62
|
+
}), s(this, d).clear(), b.forEach((h, g) => {
|
|
63
|
+
h.element === this && b.delete(g);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
addConnectCallback(c) {
|
|
67
|
+
s(this, i).add(c);
|
|
68
|
+
}
|
|
69
|
+
addDisconnectCallback(c) {
|
|
70
|
+
s(this, a).add(c);
|
|
71
|
+
}
|
|
72
|
+
addAfterCreateCallback(c) {
|
|
73
|
+
s(this, d).add(c);
|
|
74
|
+
}
|
|
75
|
+
connectedCallback() {
|
|
76
|
+
var c;
|
|
77
|
+
(c = super.connectedCallback) == null || c.call(this), s(this, i).forEach((m) => {
|
|
78
|
+
const h = m(this);
|
|
79
|
+
h && s(this, a).add(h);
|
|
80
|
+
}), s(this, i).clear();
|
|
81
|
+
}
|
|
82
|
+
disconnectedCallback() {
|
|
83
|
+
var c;
|
|
84
|
+
(c = super.disconnectedCallback) == null || c.call(this), s(this, a).forEach((m) => {
|
|
85
|
+
m(this);
|
|
86
|
+
}), s(this, a).clear();
|
|
87
|
+
}
|
|
88
|
+
}, i = new WeakMap(), a = new WeakMap(), d = new WeakMap(), R), l != null && l.formAssociated && (f.formAssociated = !0), customElements.define(o, f)), (S) => new f(S || {});
|
|
43
89
|
}
|
|
44
90
|
function se(...t) {
|
|
45
|
-
return (e) => {
|
|
46
|
-
var a, l, d, S;
|
|
47
|
-
const n = typeof t[0] == "string" ? HTMLElement : t[0], r = typeof t[0] == "string" ? t[0] : t[1], c = typeof t[0] == "string" ? t[1] : t[2], f = `e-${r}`, w = typeof t[0] == "string" ? t[2] : t[3];
|
|
48
|
-
let i = customElements.get(
|
|
49
|
-
f
|
|
50
|
-
);
|
|
51
|
-
return i || (i = (S = class extends n {
|
|
52
|
-
constructor(o) {
|
|
53
|
-
super();
|
|
54
|
-
b(this, a, /* @__PURE__ */ new Set());
|
|
55
|
-
b(this, l, /* @__PURE__ */ new Set());
|
|
56
|
-
b(this, d, /* @__PURE__ */ new Set());
|
|
57
|
-
y = this;
|
|
58
|
-
const m = c(R({
|
|
59
|
-
element: this
|
|
60
|
-
}, o));
|
|
61
|
-
m && P(this, m), s(this, d).forEach((h) => {
|
|
62
|
-
h(this);
|
|
63
|
-
}), s(this, d).clear(), p.forEach((h, g) => {
|
|
64
|
-
h.element === this && p.delete(g);
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
addConnectCallback(o) {
|
|
68
|
-
s(this, a).add(o);
|
|
69
|
-
}
|
|
70
|
-
addDisconnectCallback(o) {
|
|
71
|
-
s(this, l).add(o);
|
|
72
|
-
}
|
|
73
|
-
addAfterCreateCallback(o) {
|
|
74
|
-
s(this, d).add(o);
|
|
75
|
-
}
|
|
76
|
-
connectedCallback() {
|
|
77
|
-
var o;
|
|
78
|
-
(o = super.connectedCallback) == null || o.call(this), s(this, a).forEach((m) => {
|
|
79
|
-
const h = m(this);
|
|
80
|
-
h && s(this, l).add(h);
|
|
81
|
-
}), s(this, a).clear();
|
|
82
|
-
}
|
|
83
|
-
disconnectedCallback() {
|
|
84
|
-
var o;
|
|
85
|
-
(o = super.disconnectedCallback) == null || o.call(this), s(this, l).forEach((m) => {
|
|
86
|
-
m(this);
|
|
87
|
-
}), s(this, l).clear();
|
|
88
|
-
}
|
|
89
|
-
}, a = new WeakMap(), l = new WeakMap(), d = new WeakMap(), S), w != null && w.formAssociated && (i.formAssociated = !0), customElements.define(f, i)), new i(e || {});
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
function ie(...t) {
|
|
93
91
|
const e = new N(...t);
|
|
94
92
|
return u(e.close), e;
|
|
95
93
|
}
|
|
96
|
-
function
|
|
94
|
+
function ie(...t) {
|
|
97
95
|
const e = new B(...t);
|
|
98
96
|
return u(e.close), e;
|
|
99
97
|
}
|
|
100
|
-
function
|
|
98
|
+
function ae(...t) {
|
|
101
99
|
const e = new W(...t);
|
|
102
100
|
return u(e.close), e;
|
|
103
101
|
}
|
|
104
|
-
function
|
|
102
|
+
function le(...t) {
|
|
105
103
|
const e = new $(...t);
|
|
106
104
|
return u(e.close), e;
|
|
107
105
|
}
|
|
108
|
-
function
|
|
106
|
+
function ue(...t) {
|
|
109
107
|
const e = new j(...t);
|
|
110
108
|
return u(e.close), e;
|
|
111
109
|
}
|
|
112
|
-
function
|
|
110
|
+
function fe(...t) {
|
|
113
111
|
const e = new K(...t);
|
|
114
112
|
return u(e.close), e;
|
|
115
113
|
}
|
|
116
|
-
function
|
|
114
|
+
function de(...t) {
|
|
117
115
|
const e = new J(...t);
|
|
118
116
|
return u(e.close), e;
|
|
119
117
|
}
|
|
120
|
-
function
|
|
118
|
+
function me(t, e) {
|
|
121
119
|
C((n) => {
|
|
122
120
|
let r;
|
|
123
|
-
const
|
|
124
|
-
return
|
|
121
|
+
const o = e == null ? void 0 : e.culling;
|
|
122
|
+
return o === !0 ? r = n : typeof o == "string" || o instanceof Element ? r = o : typeof o == "object" && (r = o.current), G.subscribe(t, {
|
|
125
123
|
culling: r,
|
|
126
124
|
maxFPS: e == null ? void 0 : e.maxFPS,
|
|
127
125
|
order: e == null ? void 0 : e.order
|
|
128
126
|
});
|
|
129
127
|
});
|
|
130
128
|
}
|
|
131
|
-
function
|
|
132
|
-
|
|
133
|
-
|
|
129
|
+
function he(t, e) {
|
|
130
|
+
y((n) => {
|
|
131
|
+
b.set(t, {
|
|
134
132
|
element: n,
|
|
135
133
|
value: e
|
|
136
134
|
});
|
|
137
135
|
});
|
|
138
136
|
}
|
|
139
|
-
function
|
|
137
|
+
function Ce(t) {
|
|
140
138
|
var e;
|
|
141
|
-
return (e =
|
|
139
|
+
return (e = b.get(t)) == null ? void 0 : e.value;
|
|
142
140
|
}
|
|
143
|
-
function
|
|
141
|
+
function we(t, e) {
|
|
144
142
|
C((n) => {
|
|
145
143
|
const r = e || (n instanceof Element ? n : void 0);
|
|
146
144
|
if (typeof r == "string" || r instanceof Element)
|
|
@@ -149,7 +147,7 @@ function be(t, e) {
|
|
|
149
147
|
return T.subscribe(r.current, t);
|
|
150
148
|
});
|
|
151
149
|
}
|
|
152
|
-
function
|
|
150
|
+
function be(t, e) {
|
|
153
151
|
C((n) => {
|
|
154
152
|
const r = e || (n instanceof Element ? n : void 0);
|
|
155
153
|
if (typeof r == "string" || r instanceof Element)
|
|
@@ -158,11 +156,11 @@ function pe(t, e) {
|
|
|
158
156
|
return A.subscribe(r.current, t);
|
|
159
157
|
});
|
|
160
158
|
}
|
|
161
|
-
function
|
|
159
|
+
function pe(t, e) {
|
|
162
160
|
C((n) => O.subscribe(t, e));
|
|
163
161
|
}
|
|
164
|
-
function
|
|
165
|
-
|
|
162
|
+
function ye(t) {
|
|
163
|
+
y((e) => {
|
|
166
164
|
e.shadowRoot && e.shadowRoot.adoptedStyleSheets.push(v(t));
|
|
167
165
|
}), C((e) => {
|
|
168
166
|
if (e.shadowRoot)
|
|
@@ -170,49 +168,49 @@ function Ee(t) {
|
|
|
170
168
|
const n = e.getRootNode();
|
|
171
169
|
if (n === document) {
|
|
172
170
|
const r = q(t).node;
|
|
173
|
-
if (![...document.head.querySelectorAll("style")].find((
|
|
171
|
+
if (![...document.head.querySelectorAll("style")].find((l) => l.outerHTML === r.outerHTML))
|
|
174
172
|
return document.head.appendChild(r), () => {
|
|
175
173
|
r.remove();
|
|
176
174
|
};
|
|
177
175
|
} else if (n instanceof ShadowRoot) {
|
|
178
176
|
const r = v(t);
|
|
179
|
-
n.adoptedStyleSheets.filter((
|
|
180
|
-
const
|
|
177
|
+
n.adoptedStyleSheets.filter((o) => {
|
|
178
|
+
const l = Array.from(o.cssRules);
|
|
181
179
|
Array.from(r.cssRules).filter(
|
|
182
|
-
(i) => !
|
|
180
|
+
(i) => !l.find(
|
|
183
181
|
(a) => a.cssText === i.cssText
|
|
184
182
|
)
|
|
185
183
|
).forEach((i) => {
|
|
186
|
-
|
|
184
|
+
o.insertRule(i.cssText);
|
|
187
185
|
});
|
|
188
186
|
});
|
|
189
187
|
}
|
|
190
188
|
});
|
|
191
189
|
}
|
|
192
|
-
function
|
|
193
|
-
return
|
|
190
|
+
function Ee(t) {
|
|
191
|
+
return y((e) => e.attachShadow(x(E({}, t), { mode: "open" })));
|
|
194
192
|
}
|
|
195
|
-
function
|
|
196
|
-
return
|
|
193
|
+
function Re() {
|
|
194
|
+
return y((t) => t.attachInternals());
|
|
197
195
|
}
|
|
198
196
|
export {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
197
|
+
ce as Component,
|
|
198
|
+
Re as attachInternals,
|
|
199
|
+
Ee as attachShadow,
|
|
200
|
+
ye as attachStyle,
|
|
201
|
+
le as createComposed,
|
|
202
|
+
he as createContext,
|
|
203
|
+
fe as createDamped,
|
|
204
|
+
ie as createDerived,
|
|
205
|
+
ae as createDerivedArray,
|
|
206
|
+
ue as createResource,
|
|
207
|
+
se as createStore,
|
|
208
|
+
de as createTweened,
|
|
209
|
+
Ce as getContext,
|
|
210
|
+
me as onAnimationFrame,
|
|
213
211
|
C as onConnect,
|
|
214
212
|
u as onDisconnect,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
213
|
+
be as onElementResize,
|
|
214
|
+
we as onIntersection,
|
|
215
|
+
pe as onWindowResize
|
|
218
216
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var l=(e,s,r)=>{if(!s.has(e))throw TypeError("Cannot "+r)};var c=(e,s,r)=>(l(e,s,"read from private field"),r?r.call(e):s.get(e)),n=(e,s,r)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,r)},d=(e,s,r,i)=>(l(e,s,"write to private field"),i?i.call(e,r):s.set(e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../element-resizer/index.cjs"),z=require("../Store-D0_rDIsE.cjs"),h=require("../window-resizer/index.cjs");var t,u;class a extends z.Store{constructor(r,i){super(r(),i);n(this,t,void 0);n(this,u,()=>{this.current=c(this,t).call(this)});d(this,t,r),(i==null?void 0:i.dispatcher)instanceof Element?b.elementResizer.subscribe(i.dispatcher,c(this,u)):h.windowResizer.subscribe(c(this,u))}close(){super.close(),h.windowResizer.unsubscribe(c(this,t)),b.elementResizer.unsubscribe(c(this,t))}}t=new WeakMap,u=new WeakMap;exports.Resized=a;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var h = (e, s, r) => {
|
|
2
|
+
if (!s.has(e))
|
|
3
|
+
throw TypeError("Cannot " + r);
|
|
4
|
+
};
|
|
5
|
+
var c = (e, s, r) => (h(e, s, "read from private field"), r ? r.call(e) : s.get(e)), b = (e, s, r) => {
|
|
6
|
+
if (s.has(e))
|
|
7
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
+
s instanceof WeakSet ? s.add(e) : s.set(e, r);
|
|
9
|
+
}, l = (e, s, r, i) => (h(e, s, "write to private field"), i ? i.call(e, r) : s.set(e, r), r);
|
|
10
|
+
import { elementResizer as m } from "../element-resizer/index.js";
|
|
11
|
+
import { S as d } from "../Store-JOKrNVEr.js";
|
|
12
|
+
import { windowResizer as a } from "../window-resizer/index.js";
|
|
13
|
+
var t, u;
|
|
14
|
+
class o extends d {
|
|
15
|
+
constructor(r, i) {
|
|
16
|
+
super(r(), i);
|
|
17
|
+
b(this, t, void 0);
|
|
18
|
+
b(this, u, () => {
|
|
19
|
+
this.current = c(this, t).call(this);
|
|
20
|
+
});
|
|
21
|
+
l(this, t, r), (i == null ? void 0 : i.dispatcher) instanceof Element ? m.subscribe(i.dispatcher, c(this, u)) : a.subscribe(c(this, u));
|
|
22
|
+
}
|
|
23
|
+
close() {
|
|
24
|
+
super.close(), a.unsubscribe(c(this, t)), m.unsubscribe(c(this, t));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
t = new WeakMap(), u = new WeakMap();
|
|
28
|
+
export {
|
|
29
|
+
o as Resized
|
|
30
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aptechka",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/denisavitski/aptechka.git"
|
|
@@ -143,6 +143,11 @@
|
|
|
143
143
|
"default": "./lib/popover/index.js",
|
|
144
144
|
"types": "./lib/popover/index.d.ts"
|
|
145
145
|
},
|
|
146
|
+
"./resized": {
|
|
147
|
+
"require": "./lib/resized/index.cjs",
|
|
148
|
+
"default": "./lib/resized/index.js",
|
|
149
|
+
"types": "./lib/resized/index.d.ts"
|
|
150
|
+
},
|
|
146
151
|
"./router": {
|
|
147
152
|
"require": "./lib/router/index.cjs",
|
|
148
153
|
"default": "./lib/router/index.js",
|
|
@@ -275,6 +280,9 @@
|
|
|
275
280
|
"popover": [
|
|
276
281
|
"lib/popover/index.d.ts"
|
|
277
282
|
],
|
|
283
|
+
"resized": [
|
|
284
|
+
"lib/resized/index.d.ts"
|
|
285
|
+
],
|
|
278
286
|
"router": [
|
|
279
287
|
"lib/router/index.d.ts"
|
|
280
288
|
],
|