aptechka 0.79.0 → 0.80.0
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-BDEX44-i.js → Animation-C4tLEBGM.js} +2 -2
- package/lib/{Animation-hZcAchp_.cjs → Animation-jmvFcNfM.cjs} +1 -1
- package/lib/Composed-BB1MtFiT.js +70 -0
- package/lib/Composed-CSeUTRCg.cjs +1 -0
- package/lib/{Damped-z9Uaw2MJ.cjs → Damped-77Urmi3q.cjs} +1 -1
- package/lib/{Damped-CtQmJ52v.js → Damped-DVG5nrYV.js} +2 -2
- package/lib/DerivedArray-B8A0-8uT.cjs +1 -0
- package/lib/DerivedArray-D3scYQdp.js +59 -0
- package/lib/{DragControls-K67-diF5.cjs → DragControls-BlL26P1V.cjs} +1 -1
- package/lib/{DragControls-DyIrD3GV.js → DragControls-Cm_88cLt.js} +4 -4
- package/lib/{SourceElement-VVdVc1d-.cjs → SourceElement-BBfaAgwe.cjs} +1 -1
- package/lib/{SourceElement-BnMxiOqY.js → SourceElement-BiNNtaz9.js} +2 -2
- package/lib/Store-1JrMCgdX.cjs +1 -0
- package/lib/{Store-0BVty6AZ.js → Store-BtVtCGLk.js} +52 -35
- package/lib/{Tweened-BlZB0vl4.js → Tweened-C1lnK6n9.js} +2 -2
- package/lib/{Tweened-mvHucL4Y.cjs → Tweened-CXQrFQth.cjs} +1 -1
- package/lib/{Viewport-DB0qAZPJ.cjs → Viewport-Cx50Hufs.cjs} +1 -1
- package/lib/{Viewport-DA10iWAO.js → Viewport-DbN_JWBM.js} +2 -2
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +1 -1
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +3 -3
- package/lib/billboard/index.cjs +1 -1
- package/lib/billboard/index.js +2 -2
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +2 -2
- package/lib/connector/index.cjs +1 -1
- package/lib/connector/index.js +2 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +1 -1
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +3 -3
- package/lib/css-value-parser/index.cjs +1 -1
- package/lib/css-value-parser/index.js +1 -1
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +2 -2
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/{dom-CVWzyXPH.js → dom-fgxIeFxm.js} +22 -7
- package/lib/dom-hTEdqeoj.cjs +1 -0
- package/lib/element-linked-store/index.cjs +1 -1
- package/lib/element-linked-store/index.js +2 -2
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +2 -2
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +2 -2
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +3 -3
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +4 -4
- package/lib/{index-DekP7OZe.cjs → index-CKTweR3M.cjs} +1 -1
- package/lib/{index-Bv9zgfdb.js → index-JqYHGoo6.js} +1 -1
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +2 -2
- package/lib/jsx/ComponentElement.d.ts +13 -0
- package/lib/jsx/h.d.ts +3 -0
- package/lib/jsx/hooks/common.d.ts +1 -0
- package/lib/jsx/hooks/component/lifecycle.d.ts +4 -0
- package/lib/jsx/hooks/component/useInternals.d.ts +2 -0
- package/lib/jsx/hooks/component/useShadow.d.ts +2 -0
- package/lib/jsx/hooks/component/useStylesheet.d.ts +8 -0
- package/lib/jsx/hooks/store.d.ts +8 -0
- package/lib/jsx/index.cjs +1 -0
- package/lib/jsx/index.d.ts +9 -0
- package/lib/jsx/index.js +140 -0
- package/lib/jsx/render.d.ts +1 -0
- package/lib/jsx/type.d.ts +224 -0
- package/lib/jsx/utils/attributes/class.d.ts +5 -0
- package/lib/jsx/utils/attributes/setAttributes.d.ts +2 -0
- package/lib/jsx/utils/attributes/style.d.ts +6 -0
- package/lib/jsx/utils/children/filterChildren.d.ts +2 -0
- package/lib/jsx/utils/children/findTextNode.d.ts +1 -0
- package/lib/jsx/utils/children/removeChildren.d.ts +1 -0
- package/lib/jsx/utils/children/storeChildren.d.ts +2 -0
- package/lib/jsx/utils/elementStoreSubscription.d.ts +2 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +2 -2
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +2 -2
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +1 -1
- package/lib/masonry-layout/index.cjs +1 -1
- package/lib/masonry-layout/index.js +2 -2
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +2 -2
- package/lib/morph/Morph.d.ts +3 -21
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +3 -3
- package/lib/need_redo_tweaker/element-constructor/ElementConstructor.d.ts +1 -1
- package/lib/need_redo_tweaker/index.cjs +1 -1
- package/lib/need_redo_tweaker/index.js +8 -8
- package/lib/pixel-perfect/index.cjs +1 -1
- package/lib/pixel-perfect/index.js +3 -3
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +4 -4
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +3 -3
- package/lib/radio/index.cjs +1 -1
- package/lib/radio/index.js +1 -1
- package/lib/render-BCEBRfHS.js +196 -0
- package/lib/render-Rv0UMACs.cjs +1 -0
- package/lib/router/Link.d.ts +3 -1
- package/lib/router/Route.d.ts +9 -10
- package/lib/router/Router.d.ts +13 -13
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.d.ts +2 -2
- package/lib/router/index.js +267 -216
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +8 -8
- package/lib/{scroll-DNGJVxa2.js → scroll-7JSxRKFK.js} +2 -2
- package/lib/{scroll-CIdNtj3G.cjs → scroll-DxcPU0vk.cjs} +1 -1
- package/lib/scroll-entries/index.cjs +1 -1
- package/lib/scroll-entries/index.js +1 -1
- package/lib/scroll-kit/index.cjs +1 -1
- package/lib/scroll-kit/index.js +4 -4
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +3 -3
- package/lib/size-element/index.cjs +1 -1
- package/lib/size-element/index.js +1 -1
- package/lib/slicer/SlicerElement.d.ts +1 -1
- package/lib/slicer/index.cjs +1 -1
- package/lib/slicer/index.js +13 -13
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +1 -1
- package/lib/store/DerivedArray.d.ts +11 -1
- package/lib/store/Store.d.ts +5 -0
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +10 -87
- package/lib/{stylesheet-HWF2a3nr.cjs → stylesheet-BcwbfhBp.cjs} +1 -1
- package/lib/{stylesheet-DpnWNVyD.js → stylesheet-JlRFfJIc.js} +1 -1
- package/lib/ticker/index.cjs +1 -1
- package/lib/ticker/index.js +2 -2
- package/lib/url-C2kASACG.cjs +1 -0
- package/lib/{url-Ddgqz4Q_.js → url-CGbjOTU4.js} +17 -17
- package/lib/utils/dom.d.ts +2 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +102 -100
- package/lib/utils/url.d.ts +3 -2
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +3 -3
- package/lib/window-resizer/index.cjs +1 -1
- package/lib/window-resizer/index.js +1 -1
- package/lib/youtube/index.cjs +1 -1
- package/lib/youtube/index.js +3 -3
- package/package.json +21 -11
- package/lib/Store-Cd1GlEmZ.cjs +0 -1
- package/lib/dom-JBOkFLTh.cjs +0 -1
- package/lib/url-VIZgwj_h.cjs +0 -1
package/lib/jsx/index.js
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var i = Object.getOwnPropertySymbols;
|
|
3
|
+
var m = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var d = (t, e, n) => e in t ? S(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, f = (t, e) => {
|
|
5
|
+
for (var n in e || (e = {}))
|
|
6
|
+
m.call(e, n) && d(t, n, e[n]);
|
|
7
|
+
if (i)
|
|
8
|
+
for (var n of i(e))
|
|
9
|
+
y.call(e, n) && d(t, n, e[n]);
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { a as r } from "../render-BCEBRfHS.js";
|
|
13
|
+
import { F as V, h as W, r as X } from "../render-BCEBRfHS.js";
|
|
14
|
+
import { c as h } from "../string-BlMQbe8b.js";
|
|
15
|
+
import "construct-style-sheets-polyfill";
|
|
16
|
+
import "../index-JqYHGoo6.js";
|
|
17
|
+
import { S as p } from "../Store-BtVtCGLk.js";
|
|
18
|
+
import { C, D as w, R as D } from "../Composed-BB1MtFiT.js";
|
|
19
|
+
import { D as R, a as x } from "../DerivedArray-D3scYQdp.js";
|
|
20
|
+
function N() {
|
|
21
|
+
return { value: null };
|
|
22
|
+
}
|
|
23
|
+
function v(t) {
|
|
24
|
+
r.current.addConnectCallback(t);
|
|
25
|
+
}
|
|
26
|
+
function O(t) {
|
|
27
|
+
r.current.addDisconnectCallback(t);
|
|
28
|
+
}
|
|
29
|
+
function q(t) {
|
|
30
|
+
const e = r.current.attachInternals();
|
|
31
|
+
return t == null || t(e), e;
|
|
32
|
+
}
|
|
33
|
+
function z(t, e) {
|
|
34
|
+
const n = r.current.attachShadow(f({
|
|
35
|
+
mode: "open"
|
|
36
|
+
}, t));
|
|
37
|
+
return e == null || e(n), n;
|
|
38
|
+
}
|
|
39
|
+
function l(t) {
|
|
40
|
+
const e = new CSSStyleSheet();
|
|
41
|
+
return e.replaceSync(t), e;
|
|
42
|
+
}
|
|
43
|
+
function A(t) {
|
|
44
|
+
let e = "";
|
|
45
|
+
const n = (s, o) => {
|
|
46
|
+
o && (e += `${o} {`);
|
|
47
|
+
for (const [u, c] of Object.entries(s))
|
|
48
|
+
typeof c == "object" && c !== null ? n(c, u) : e += `${h(u)}: ${c};`;
|
|
49
|
+
o && (e += "}");
|
|
50
|
+
};
|
|
51
|
+
return n(t), e;
|
|
52
|
+
}
|
|
53
|
+
function T(t, e) {
|
|
54
|
+
const n = l(e), s = [];
|
|
55
|
+
for (const o of t.adoptedStyleSheets)
|
|
56
|
+
Array.from(n.cssRules).filter((c) => !Array.from(o.cssRules).some(
|
|
57
|
+
(a) => a.cssText === c.cssText
|
|
58
|
+
)).forEach((c) => {
|
|
59
|
+
const a = o.insertRule(c.cssText);
|
|
60
|
+
s.push(() => o.deleteRule(a));
|
|
61
|
+
});
|
|
62
|
+
return () => s.forEach((o) => o());
|
|
63
|
+
}
|
|
64
|
+
function b(t) {
|
|
65
|
+
const e = document.createElement("style");
|
|
66
|
+
return e.textContent = t, document.head.appendChild(e), () => e.remove();
|
|
67
|
+
}
|
|
68
|
+
function B(t) {
|
|
69
|
+
const e = A(t);
|
|
70
|
+
if (r.current.shadowRoot) {
|
|
71
|
+
r.current.shadowRoot.adoptedStyleSheets = [
|
|
72
|
+
...r.current.shadowRoot.adoptedStyleSheets,
|
|
73
|
+
l(e)
|
|
74
|
+
];
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
v((n) => {
|
|
78
|
+
const s = n.getRootNode();
|
|
79
|
+
if (s === document) {
|
|
80
|
+
if (!Array.from(
|
|
81
|
+
document.head.querySelectorAll("style")
|
|
82
|
+
).find((u) => u.textContent === e))
|
|
83
|
+
return b(e);
|
|
84
|
+
} else if (s instanceof ShadowRoot)
|
|
85
|
+
return T(s, e);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function G(...t) {
|
|
89
|
+
const e = new p(...t);
|
|
90
|
+
return r.current && r.current.addDisconnectCallback(() => {
|
|
91
|
+
e.close();
|
|
92
|
+
}), e;
|
|
93
|
+
}
|
|
94
|
+
function H(...t) {
|
|
95
|
+
const e = new w(...t);
|
|
96
|
+
return r.current && r.current.addDisconnectCallback(() => {
|
|
97
|
+
e.close();
|
|
98
|
+
}), e;
|
|
99
|
+
}
|
|
100
|
+
function J(...t) {
|
|
101
|
+
const e = new R(...t);
|
|
102
|
+
return r.current && r.current.addDisconnectCallback(() => {
|
|
103
|
+
e.close();
|
|
104
|
+
}), e;
|
|
105
|
+
}
|
|
106
|
+
function L(...t) {
|
|
107
|
+
const e = new x(...t);
|
|
108
|
+
return r.current && r.current.addDisconnectCallback(() => {
|
|
109
|
+
e.close();
|
|
110
|
+
}), e;
|
|
111
|
+
}
|
|
112
|
+
function M(...t) {
|
|
113
|
+
const e = new D(...t);
|
|
114
|
+
return r.current && r.current.addDisconnectCallback(() => {
|
|
115
|
+
e.close();
|
|
116
|
+
}), e;
|
|
117
|
+
}
|
|
118
|
+
function P(...t) {
|
|
119
|
+
const e = new C(...t);
|
|
120
|
+
return r.current && r.current.addDisconnectCallback(() => {
|
|
121
|
+
e.close();
|
|
122
|
+
}), e;
|
|
123
|
+
}
|
|
124
|
+
export {
|
|
125
|
+
V as Fragment,
|
|
126
|
+
W as h,
|
|
127
|
+
X as render,
|
|
128
|
+
P as useComposedStore,
|
|
129
|
+
v as useConnect,
|
|
130
|
+
J as useDerivedArrayStore,
|
|
131
|
+
L as useDerivedKeyedArrayStore,
|
|
132
|
+
H as useDerivedStore,
|
|
133
|
+
O as useDisconnect,
|
|
134
|
+
q as useInternals,
|
|
135
|
+
N as useRef,
|
|
136
|
+
M as useResourceStore,
|
|
137
|
+
z as useShadow,
|
|
138
|
+
G as useStore,
|
|
139
|
+
B as useStylesheet
|
|
140
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function render(container: ParentNode, Component: JSX.Component, params?: object): any;
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { Store } from '../store';
|
|
2
|
+
import { ClassListInput } from './utils/attributes/class';
|
|
3
|
+
import { StyleAttribute } from './utils/attributes/style';
|
|
4
|
+
type StoreOr<T> = T | Store<T | null | undefined>
|
|
5
|
+
|
|
6
|
+
declare global {
|
|
7
|
+
namespace JSX {
|
|
8
|
+
export type Children = Array<
|
|
9
|
+
| Element
|
|
10
|
+
| string
|
|
11
|
+
| number
|
|
12
|
+
| null
|
|
13
|
+
| undefined
|
|
14
|
+
| Store<any>
|
|
15
|
+
| Array<Children>
|
|
16
|
+
>
|
|
17
|
+
|
|
18
|
+
type Fragment = any
|
|
19
|
+
|
|
20
|
+
type StoreOr<T> = T | Store<any>
|
|
21
|
+
|
|
22
|
+
type Ref<T = unknown> = { value: T }
|
|
23
|
+
|
|
24
|
+
type ComponentBaseProps = {
|
|
25
|
+
children?: Children
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
type Component<TProps extends object = object> = {
|
|
29
|
+
formAssociated?: boolean
|
|
30
|
+
template?: boolean
|
|
31
|
+
(props: ComponentBaseProps & TProps): Children['number']
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
type EventMap = keyof HTMLElementEventMap | keyof SVGElementEventMap
|
|
35
|
+
|
|
36
|
+
type Events = Partial<{
|
|
37
|
+
[K in `on${Capitalize<EventMap>}`]: (
|
|
38
|
+
event: (HTMLElementEventMap & SVGElementEventMap)[Uncapitalize<
|
|
39
|
+
Extract<K, `on${string}`> extends `on${infer T}` ? T : never
|
|
40
|
+
>],
|
|
41
|
+
) => void
|
|
42
|
+
}>
|
|
43
|
+
|
|
44
|
+
interface KnownAttributes {
|
|
45
|
+
accept?: StoreOr<string>
|
|
46
|
+
acceptCharset?: StoreOr<string>
|
|
47
|
+
accessKey?: StoreOr<string>
|
|
48
|
+
action?: StoreOr<string>
|
|
49
|
+
allowFullScreen?: StoreOr<boolean>
|
|
50
|
+
allowTransparency?: StoreOr<boolean>
|
|
51
|
+
alt?: StoreOr<string>
|
|
52
|
+
as?: StoreOr<string>
|
|
53
|
+
async?: StoreOr<boolean>
|
|
54
|
+
autocomplete?: StoreOr<string>
|
|
55
|
+
autoComplete?: StoreOr<string>
|
|
56
|
+
autocorrect?: StoreOr<string>
|
|
57
|
+
autoCorrect?: StoreOr<string>
|
|
58
|
+
autofocus?: StoreOr<boolean>
|
|
59
|
+
autoFocus?: StoreOr<boolean>
|
|
60
|
+
autoPlay?: StoreOr<boolean>
|
|
61
|
+
capture?: StoreOr<boolean | string>
|
|
62
|
+
cellPadding?: StoreOr<number | string>
|
|
63
|
+
cellSpacing?: StoreOr<number | string>
|
|
64
|
+
charSet?: StoreOr<string>
|
|
65
|
+
challenge?: StoreOr<string>
|
|
66
|
+
checked?: StoreOr<boolean>
|
|
67
|
+
class?: ClassListInput
|
|
68
|
+
className?: ClassListInput
|
|
69
|
+
cols?: StoreOr<number>
|
|
70
|
+
colSpan?: StoreOr<number>
|
|
71
|
+
content?: StoreOr<string>
|
|
72
|
+
contentEditable?: StoreOr<boolean>
|
|
73
|
+
contextMenu?: StoreOr<string>
|
|
74
|
+
controls?: StoreOr<boolean>
|
|
75
|
+
controlsList?: StoreOr<string>
|
|
76
|
+
coords?: StoreOr<string>
|
|
77
|
+
crossOrigin?: StoreOr<string>
|
|
78
|
+
data?: StoreOr<string>
|
|
79
|
+
dateTime?: StoreOr<string>
|
|
80
|
+
default?: StoreOr<boolean>
|
|
81
|
+
defer?: StoreOr<boolean>
|
|
82
|
+
dir?: StoreOr<'auto' | 'rtl' | 'ltr'>
|
|
83
|
+
disabled?: StoreOr<boolean>
|
|
84
|
+
disableRemotePlayback?: StoreOr<boolean>
|
|
85
|
+
download?: StoreOr<string>
|
|
86
|
+
draggable?: StoreOr<'false' | true>
|
|
87
|
+
encType?: StoreOr<string>
|
|
88
|
+
form?: StoreOr<string>
|
|
89
|
+
formAction?: StoreOr<string>
|
|
90
|
+
formEncType?: StoreOr<string>
|
|
91
|
+
formMethod?: StoreOr<string>
|
|
92
|
+
formNoValidate?: StoreOr<boolean>
|
|
93
|
+
formTarget?: StoreOr<string>
|
|
94
|
+
frameBorder?: StoreOr<number | string>
|
|
95
|
+
headers?: StoreOr<string>
|
|
96
|
+
height?: StoreOr<number | string>
|
|
97
|
+
hidden?: StoreOr<boolean>
|
|
98
|
+
high?: StoreOr<number>
|
|
99
|
+
href?: StoreOr<string>
|
|
100
|
+
hrefLang?: StoreOr<string>
|
|
101
|
+
for?: StoreOr<string>
|
|
102
|
+
htmlFor?: StoreOr<string>
|
|
103
|
+
httpEquiv?: StoreOr<string>
|
|
104
|
+
icon?: StoreOr<string>
|
|
105
|
+
id?: StoreOr<string>
|
|
106
|
+
inputMode?: StoreOr<string>
|
|
107
|
+
integrity?: StoreOr<string>
|
|
108
|
+
is?: StoreOr<string>
|
|
109
|
+
keyParams?: StoreOr<string>
|
|
110
|
+
keyType?: StoreOr<string>
|
|
111
|
+
kind?: StoreOr<string>
|
|
112
|
+
label?: StoreOr<string>
|
|
113
|
+
lang?: StoreOr<string>
|
|
114
|
+
list?: StoreOr<string>
|
|
115
|
+
loading?: StoreOr<'eager' | 'lazy'>
|
|
116
|
+
loop?: StoreOr<boolean>
|
|
117
|
+
low?: StoreOr<number>
|
|
118
|
+
manifest?: StoreOr<string>
|
|
119
|
+
marginHeight?: StoreOr<number>
|
|
120
|
+
marginWidth?: StoreOr<number>
|
|
121
|
+
max?: StoreOr<number | string>
|
|
122
|
+
maxLength?: StoreOr<number>
|
|
123
|
+
media?: StoreOr<string>
|
|
124
|
+
mediaGroup?: StoreOr<string>
|
|
125
|
+
method?: StoreOr<string>
|
|
126
|
+
min?: StoreOr<number | string>
|
|
127
|
+
minLength?: StoreOr<number>
|
|
128
|
+
multiple?: StoreOr<boolean>
|
|
129
|
+
muted?: StoreOr<boolean>
|
|
130
|
+
name?: StoreOr<string>
|
|
131
|
+
nonce?: StoreOr<string>
|
|
132
|
+
noValidate?: StoreOr<boolean>
|
|
133
|
+
open?: StoreOr<boolean>
|
|
134
|
+
optimum?: StoreOr<number>
|
|
135
|
+
pattern?: StoreOr<string>
|
|
136
|
+
placeholder?: StoreOr<string>
|
|
137
|
+
playsInline?: StoreOr<boolean>
|
|
138
|
+
poster?: StoreOr<string>
|
|
139
|
+
preload?: StoreOr<string>
|
|
140
|
+
radioGroup?: StoreOr<string>
|
|
141
|
+
readOnly?: StoreOr<boolean>
|
|
142
|
+
rel?: StoreOr<string>
|
|
143
|
+
required?: StoreOr<boolean>
|
|
144
|
+
role?: StoreOr<string>
|
|
145
|
+
rows?: StoreOr<number>
|
|
146
|
+
rowSpan?: StoreOr<number>
|
|
147
|
+
sandbox?: StoreOr<string>
|
|
148
|
+
scope?: StoreOr<string>
|
|
149
|
+
scoped?: StoreOr<boolean>
|
|
150
|
+
scrolling?: StoreOr<string>
|
|
151
|
+
seamless?: StoreOr<boolean>
|
|
152
|
+
selected?: StoreOr<boolean>
|
|
153
|
+
shape?: StoreOr<string>
|
|
154
|
+
size?: StoreOr<number>
|
|
155
|
+
sizes?: StoreOr<string>
|
|
156
|
+
slot?: StoreOr<string>
|
|
157
|
+
span?: StoreOr<number>
|
|
158
|
+
spellcheck?: StoreOr<boolean>
|
|
159
|
+
src?: StoreOr<string>
|
|
160
|
+
srcset?: StoreOr<string>
|
|
161
|
+
srcDoc?: StoreOr<string>
|
|
162
|
+
srcLang?: StoreOr<string>
|
|
163
|
+
srcSet?: StoreOr<string>
|
|
164
|
+
start?: StoreOr<number>
|
|
165
|
+
step?: StoreOr<number | string>
|
|
166
|
+
style?: StyleAttribute
|
|
167
|
+
summary?: StoreOr<string>
|
|
168
|
+
tabIndex?: StoreOr<number>
|
|
169
|
+
target?: StoreOr<string>
|
|
170
|
+
title?: StoreOr<string>
|
|
171
|
+
type?: StoreOr<string>
|
|
172
|
+
useMap?: StoreOr<string>
|
|
173
|
+
value?: StoreOr<string | string[] | number>
|
|
174
|
+
volume?: StoreOr<number>
|
|
175
|
+
width?: StoreOr<number>
|
|
176
|
+
wmode?: StoreOr<string>
|
|
177
|
+
wrap?: StoreOr<string>
|
|
178
|
+
|
|
179
|
+
about?: StoreOr<string>
|
|
180
|
+
datatype?: StoreOr<string>
|
|
181
|
+
inlist?: StoreOr<boolean>
|
|
182
|
+
prefix?: StoreOr<string>
|
|
183
|
+
property?: StoreOr<string>
|
|
184
|
+
resource?: StoreOr<string>
|
|
185
|
+
typeof?: StoreOr<string>
|
|
186
|
+
vocab?: StoreOr<string>
|
|
187
|
+
|
|
188
|
+
itemProp?: StoreOr<string>
|
|
189
|
+
itemScope?: StoreOr<boolean>
|
|
190
|
+
itemType?: StoreOr<string>
|
|
191
|
+
itemID?: StoreOr<string>
|
|
192
|
+
itemRef?: StoreOr<string>
|
|
193
|
+
|
|
194
|
+
ref?: Ref<any> | Array<Ref<any>>
|
|
195
|
+
key?: string
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
type UnknownAttributes = { [key: string]: any }
|
|
199
|
+
|
|
200
|
+
type Attributes = KnownAttributes &
|
|
201
|
+
Events & {
|
|
202
|
+
[key: string]: any
|
|
203
|
+
} & UnknownAttributes
|
|
204
|
+
|
|
205
|
+
type TagNameMap =
|
|
206
|
+
| 'component'
|
|
207
|
+
| 'shadow'
|
|
208
|
+
| 'nest'
|
|
209
|
+
| `${string}-${string}`
|
|
210
|
+
| keyof HTMLElementTagNameMap
|
|
211
|
+
| keyof SVGElementTagNameMap
|
|
212
|
+
|
|
213
|
+
type IntrinsicElementsHTML = {
|
|
214
|
+
[TKey in TagNameMap]?: Attributes
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
type IntrinsicElements = IntrinsicElementsHTML
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
interface Node {
|
|
221
|
+
__storeId: string
|
|
222
|
+
__key: string
|
|
223
|
+
}
|
|
224
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Store } from '../../../store';
|
|
2
|
+
export type ClassPrimitiveValue = string | number | boolean | null | undefined | Store<any>;
|
|
3
|
+
export type ClassValue = ClassPrimitiveValue | Record<string, ClassPrimitiveValue>;
|
|
4
|
+
export type ClassListInput = Record<string, ClassPrimitiveValue> | Array<ClassValue> | ClassPrimitiveValue;
|
|
5
|
+
export declare function setClassAttribute(element: Element, classes: ClassListInput): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Store } from '../../../store';
|
|
2
|
+
import type * as CSS from 'csstype';
|
|
3
|
+
export type StyleAttribute = Partial<{
|
|
4
|
+
[K in keyof CSS.Properties]: CSS.Properties[K] | Store<any>;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function setStyleAttribute(element: HTMLElement | SVGElement, value: StyleAttribute): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function findTextNode(element: Element, text: string): ChildNode | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function removeChildren(element: Element, ...children: JSX.Children): void;
|
package/lib/ladder/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var w=Object.defineProperty;var S=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var v=t=>{throw TypeError(t)};var k=(t,s,e)=>s in t?w(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e,q=(t,s)=>{for(var e in s||(s={}))M.call(s,e)&&k(t,e,s[e]);if(S)for(var e of S(s))V.call(s,e)&&k(t,e,s[e]);return t};var g=(t,s,e)=>s.has(t)||v("Cannot "+e);var o=(t,s,e)=>(g(t,s,"read from private field"),e?e.call(t):s.get(t)),p=(t,s,e)=>s.has(t)?v("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,e),f=(t,s,e,i)=>(g(t,s,"write to private field"),i?i.call(t,e):s.set(t,e),e),b=(t,s,e)=>(g(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../Store-
|
|
1
|
+
"use strict";var w=Object.defineProperty;var S=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var v=t=>{throw TypeError(t)};var k=(t,s,e)=>s in t?w(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e,q=(t,s)=>{for(var e in s||(s={}))M.call(s,e)&&k(t,e,s[e]);if(S)for(var e of S(s))V.call(s,e)&&k(t,e,s[e]);return t};var g=(t,s,e)=>s.has(t)||v("Cannot "+e);var o=(t,s,e)=>(g(t,s,"read from private field"),e?e.call(t):s.get(t)),p=(t,s,e)=>s.has(t)?v("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,e),f=(t,s,e,i)=>(g(t,s,"write to private field"),i?i.call(t,e):s.set(t,e),e),b=(t,s,e)=>(g(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../Store-1JrMCgdX.cjs");require("construct-style-sheets-polyfill");require("../index-CKTweR3M.cjs");var d,u,a,h,y;class x extends m.Store{constructor(e){super(e,{equalityCheck:()=>!1});p(this,h);p(this,d);p(this,u);p(this,a);f(this,d,q({},e)),f(this,u,new Map),f(this,a,new Set)}get base(){return o(this,d)}get steps(){return o(this,u)}close(){super.close(),o(this,a).clear(),o(this,u).clear()}bind(e){o(this,a).add(e)}unbind(e){o(this,a).delete(e)}deleteStep(e){this.steps.delete(e)}getStepValue(e){var i;return(i=this.steps.get(e))==null?void 0:i[1]}getExcludedStepsValue(...e){const i=new Map;return e.map(r=>{const n=this.steps.get(r);n&&i.set(r,n)}),b(this,h,y).call(this,i)}getIncludedStepsValue(...e){const i=new Map(this.steps);return e.map(r=>{this.steps.has(r)&&i.delete(r)}),b(this,h,y).call(this,i)}setStep(e,i,r){const n={};for(const c in this.current)n[c]=r[c]||0;this.steps.set(e,[i,n]),this.calculate()}calculate(){this.current=b(this,h,y).call(this,o(this,u))}}d=new WeakMap,u=new WeakMap,a=new WeakMap,h=new WeakSet,y=function(e){const i={};for(const r in this.base)i[r]=this.base[r];for(const r of e){const n=r[1];if(n[0]==="+")for(const c in this.base){const l=n[1][c];i[c]+=l}else if(n[0]==="*")for(const c in this.base){const l=n[1][c];i[c]*=l}else if(n[0]==="/")for(const c in this.base){const l=n[1][c];i[c]/=l}else if(n[0]==="-")for(const c in this.base){const l=n[1][c];i[c]-=l}}for(const r of o(this,a))for(const n in i)r[n]=i[n];return i};exports.Ladder=x;
|
package/lib/ladder/index.js
CHANGED
|
@@ -14,9 +14,9 @@ var S = (e, s, t) => s in e ? w(e, s, { enumerable: !0, configurable: !0, writab
|
|
|
14
14
|
};
|
|
15
15
|
var g = (e, s, t) => s.has(e) || m("Cannot " + t);
|
|
16
16
|
var r = (e, s, t) => (g(e, s, "read from private field"), t ? t.call(e) : s.get(e)), u = (e, s, t) => s.has(e) ? m("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), d = (e, s, t, i) => (g(e, s, "write to private field"), i ? i.call(e, t) : s.set(e, t), t), b = (e, s, t) => (g(e, s, "access private method"), t);
|
|
17
|
-
import { S as M } from "../Store-
|
|
17
|
+
import { S as M } from "../Store-BtVtCGLk.js";
|
|
18
18
|
import "construct-style-sheets-polyfill";
|
|
19
|
-
import "../index-
|
|
19
|
+
import "../index-JqYHGoo6.js";
|
|
20
20
|
var f, h, a, p, y;
|
|
21
21
|
class L extends M {
|
|
22
22
|
constructor(t) {
|
package/lib/layout-box/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var J=i=>{throw TypeError(i)};var N=(i,e,s)=>e.has(i)||J("Cannot "+s);var t=(i,e,s)=>(N(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(i,e,s)=>e.has(i)?J("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,s),r=(i,e,s,l)=>(N(i,e,"write to private field"),l?l.call(i,s):e.set(i,s),s),L=(i,e,s)=>(N(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const St=require("../css-unit-parser/index.cjs"),$=require("../ladder/index.cjs"),Q=require("../order/index.cjs"),F=require("../scroll-entries/index.cjs"),j=require("../ticker/index.cjs"),tt=require("../index-
|
|
1
|
+
"use strict";var J=i=>{throw TypeError(i)};var N=(i,e,s)=>e.has(i)||J("Cannot "+s);var t=(i,e,s)=>(N(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(i,e,s)=>e.has(i)?J("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,s),r=(i,e,s,l)=>(N(i,e,"write to private field"),l?l.call(i,s):e.set(i,s),s),L=(i,e,s)=>(N(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const St=require("../css-unit-parser/index.cjs"),$=require("../ladder/index.cjs"),Q=require("../order/index.cjs"),F=require("../scroll-entries/index.cjs"),j=require("../ticker/index.cjs"),tt=require("../index-CKTweR3M.cjs"),et=require("../dom-hTEdqeoj.cjs"),V=require("../layout-Ctc2p3uz.cjs");require("construct-style-sheets-polyfill");const st=require("../element-resizer/index.cjs"),it=require("../window-resizer/index.cjs"),dt=require("../notifier/index.cjs");function ht(i){const e=Math.sqrt(i.m11*i.m11+i.m12*i.m12+i.m13*i.m13),s=Math.sqrt(i.m21*i.m21+i.m22*i.m22+i.m23*i.m23),l=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),y=Math.atan2(i.m32,i.m33),B=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),K=Math.atan2(i.m21,i.m11),a=i.m41,P=i.m42*-1,O=i.m43;return{scaleX:e,scaleY:s,scaleZ:l,rotationX:y,rotationY:B,rotationZ:K,translationX:a,translationY:P,translationZ:O}}var u,b,m,R,A,T,v,w,W,k,x,_,X,S,d,C,Y,H,U,g,p,z,o,n,c,E,M,I,f,G,rt,nt,lt,q,D,Z;class ft{constructor(e,s){h(this,f);h(this,u,null);h(this,b,null);h(this,m,[]);h(this,R,"auto");h(this,A,"top");h(this,T,!1);h(this,v,!0);h(this,w,!0);h(this,W,!0);h(this,k,!0);h(this,x,0);h(this,_,0);h(this,X,0);h(this,S,0);h(this,d,0);h(this,C,0);h(this,Y,0);h(this,H,0);h(this,U,0);h(this,g,{x:0,y:0,z:0});h(this,p,{x:0,y:0,z:0});h(this,z,{x:1,y:1,z:1});h(this,o,new $.Ladder({x:0,y:0,z:0}));h(this,n,new $.Ladder({x:0,y:0,z:0}));h(this,c,new $.Ladder({x:0,y:0,z:0}));h(this,E,{x:0,y:0,z:0});h(this,M,new Map);h(this,I,new dt.Notifier);h(this,q,()=>{tt.isBrowser&&L(this,f,nt).call(this)});h(this,D,()=>{L(this,f,lt).call(this),L(this,f,G).call(this)});h(this,Z,()=>{const e=F.scrollEntries.getAll(this.element);t(this,M).forEach((s,l)=>{e.includes(l)||(this.deleteScrollStep(s),t(this,M).delete(l))}),e.forEach(s=>{if(!t(this,M).has(s)){const l=()=>s;t(this,M).set(s,l),this.setScrollStep(l)}})});tt.isBrowser&&(r(this,u,et.getElement(e)||document.body),r(this,b,et.getElement(s==null?void 0:s.containerElement)||document.body),r(this,R,(s==null?void 0:s.scrollAxis)||"auto"),r(this,A,(s==null?void 0:s.frontSide)||"top"),r(this,T,(s==null?void 0:s.cartesian)||!1),r(this,v,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),r(this,w,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),r(this,W,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),r(this,k,(s==null?void 0:s.scrollStep)!==void 0?s.scrollStep:!0),t(this,c).setStep("_size","+",{x:1,y:1,z:1}),t(this,n).setStep("_position","+",{x:0,y:0,z:0}),t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,n).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}),t(this,k)&&(F.scrollEntries.notifier.subscribe(t(this,Z)),t(this,Z).call(this)),st.elementResizer.subscribe(this.element,t(this,q)),it.windowResizer.subscribe(t(this,q),Q.RESIZE_ORDER.LAYOUT_BOX),j.ticker.subscribe(t(this,D),{order:Q.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}))}get element(){return t(this,u)}get containerElement(){return t(this,b)}get position(){return t(this,n).current}get rotation(){return t(this,o).current}get scale(){return t(this,c).current}get scrollValue(){return t(this,E)}get left(){return t(this,d)}get top(){return t(this,S)}get CSSTranslation(){return t(this,g)}get CSSRotation(){return t(this,p)}get CSSScale(){return t(this,z)}get front(){return t(this,C)}get width(){return t(this,x)}get height(){return t(this,_)}get depth(){return t(this,X)}destroy(){j.ticker.unsubscribe(t(this,D)),st.elementResizer.unsubscribe(t(this,q)),it.windowResizer.unsubscribe(t(this,q)),F.scrollEntries.notifier.unsubscribe(t(this,Z)),t(this,M).clear(),t(this,n).close(),t(this,o).close(),t(this,c).close()}bindObject(e){e.position&&t(this,n).bind(e.position),e.rotation&&t(this,o).bind(e.rotation),e.scale&&t(this,c).bind(e.scale)}unbindObject(e){e.position&&t(this,n).unbind(e.position),e.rotation&&t(this,o).unbind(e.rotation),e.scale&&t(this,c).unbind(e.scale)}setScrollStep(e){return t(this,m).includes(e)||t(this,m).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){r(this,m,t(this,m).filter(s=>s!==e))}setPositionStep(...e){t(this,n).setStep(...e)}getPositionStep(...e){return t(this,n).getStepValue(...e)}setRotationStep(...e){t(this,o).setStep(...e)}getRotationStep(...e){return t(this,o).getStepValue(...e)}getExcludedRotationSteps(...e){return t(this,o).getExcludedStepsValue(...e)}getIncludedRotationSteps(...e){return t(this,o).getIncludedStepsValue(...e)}setScaleStep(...e){t(this,c).setStep(...e)}getScaleStep(...e){return t(this,c).getStepValue(...e)}getExcludedScaleSteps(...e){return t(this,c).getExcludedStepsValue(...e)}getIncludedScaleSteps(...e){return t(this,c).getIncludedStepsValue(...e)}deletePositionStep(...e){t(this,n).deleteStep(...e)}getExcludedPositionSteps(...e){return t(this,n).getExcludedStepsValue(...e)}getIncludedPositionSteps(...e){return t(this,n).getIncludedStepsValue(...e)}deleteRotationStep(...e){t(this,o).deleteStep(...e)}deleteScaleStep(...e){t(this,c).deleteStep(...e)}onPosition(...e){return t(this,n).subscribe(...e)}offPosition(...e){t(this,n).unsubscribe(...e)}onScale(...e){return t(this,c).subscribe(...e)}offScale(...e){t(this,c).unsubscribe(...e)}onRotation(...e){return t(this,o).subscribe(...e)}offRotation(...e){t(this,o).unsubscribe(...e)}onResize(...e){return t(this,I).subscribe(...e)}offResize(...e){return t(this,I).unsubscribe(...e)}}u=new WeakMap,b=new WeakMap,m=new WeakMap,R=new WeakMap,A=new WeakMap,T=new WeakMap,v=new WeakMap,w=new WeakMap,W=new WeakMap,k=new WeakMap,x=new WeakMap,_=new WeakMap,X=new WeakMap,S=new WeakMap,d=new WeakMap,C=new WeakMap,Y=new WeakMap,H=new WeakMap,U=new WeakMap,g=new WeakMap,p=new WeakMap,z=new WeakMap,o=new WeakMap,n=new WeakMap,c=new WeakMap,E=new WeakMap,M=new WeakMap,I=new WeakMap,f=new WeakSet,G=function(){t(this,c).calculate(),t(this,n).calculate(),t(this,o).calculate()},rt=function(){t(this,c).setStep("_size","+",{x:t(this,v)?t(this,x):1,y:t(this,v)?t(this,_):1,z:t(this,v)?t(this,X):1});const e=t(this,w)?t(this,Y):0,s=t(this,w)?t(this,H):0,l=t(this,w)?t(this,U):0;t(this,n).setStep("_position","+",{x:e,y:s,z:l}),t(this,W)?(t(this,c).setStep("_scale","*",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z}),t(this,n).setStep("_translation","+",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z}),t(this,o).setStep("_rotation","+",{x:t(this,p).x,y:t(this,p).y,z:t(this,p).z})):(t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,n).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}))},nt=function(){const e=getComputedStyle(t(this,u));r(this,x,Math.max(t(this,u).clientWidth,1)),r(this,_,Math.max(t(this,u).clientHeight,1)),r(this,X,Math.max(St.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=V.getCumulativeOffsetLeft(t(this,b)),l=V.getCumulativeOffsetTop(t(this,b)),y=t(this,b).clientWidth,B=t(this,b).clientHeight;if(r(this,d,V.getCumulativeOffsetLeft(t(this,u))-s),r(this,S,V.getCumulativeOffsetTop(t(this,u))-l),t(this,R)==="z"){const P=t(this,d)/y,O=t(this,S)/B;r(this,d,(P-Math.floor(P))*y),r(this,S,(O-Math.floor(O))*B),t(this,A)==="left"?r(this,C,V.getCumulativeOffsetLeft(t(this,u))-s-t(this,d)):r(this,C,V.getCumulativeOffsetTop(t(this,u))-l-t(this,S))}if(r(this,d,t(this,d)+t(this,u).clientLeft),r(this,S,t(this,S)+t(this,u).clientTop),t(this,T)){const P=Math.round(y/2),O=Math.round(B/2),ct=t(this,x)?Math.round(t(this,x)/2):0,ot=t(this,_)?Math.round(t(this,_)/2):0,ut=t(this,d)-P+ct,at=(t(this,S)-O+ot)*-1;r(this,Y,ut),r(this,H,at)}else r(this,Y,t(this,d)),r(this,H,t(this,S));r(this,U,t(this,C)*-1);const K=new WebKitCSSMatrix(e.transform),a=ht(K);t(this,g).x=a.translationX,t(this,g).y=a.translationY,t(this,g).z=a.translationZ,t(this,z).x=a.scaleX,t(this,z).y=a.scaleY,t(this,z).z=a.scaleZ,t(this,p).x=a.rotationX,t(this,p).y=a.rotationY,t(this,p).z=a.rotationZ,L(this,f,rt).call(this),L(this,f,G).call(this),t(this,I).notify()},lt=function(){t(this,E).x=0,t(this,E).y=0,t(this,E).z=0;for(let e=0;e<t(this,m).length;e++){const s=t(this,m)[e]();let l=s.axis;t(this,R)!=="auto"&&(l=t(this,R));const y=s.value*(l==="x"?-1:t(this,T)?1:-1);t(this,E)[l]+=y,t(this,n).setStep(`_scroll_${e}`,"+",{[l]:y})}},q=new WeakMap,D=new WeakMap,Z=new WeakMap;exports.LayoutBox=ft;exports.decomposeCSSMatrix=ht;
|
package/lib/layout-box/index.js
CHANGED
|
@@ -8,8 +8,8 @@ import { Ladder as N } from "../ladder/index.js";
|
|
|
8
8
|
import { RESIZE_ORDER as St, TICK_ORDER as dt } from "../order/index.js";
|
|
9
9
|
import { scrollEntries as $ } from "../scroll-entries/index.js";
|
|
10
10
|
import { ticker as j } from "../ticker/index.js";
|
|
11
|
-
import { i as tt } from "../index-
|
|
12
|
-
import { g as et } from "../dom-
|
|
11
|
+
import { i as tt } from "../index-JqYHGoo6.js";
|
|
12
|
+
import { g as et } from "../dom-fgxIeFxm.js";
|
|
13
13
|
import { g as F, a as G } from "../layout-BSMtwCga.js";
|
|
14
14
|
import "construct-style-sheets-polyfill";
|
|
15
15
|
import { elementResizer as st } from "../element-resizer/index.js";
|
package/lib/loading/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var m=i=>{throw TypeError(i)};var v=(i,t,s)=>t.has(i)||m("Cannot "+s);var e=(i,t,s)=>(v(i,t,"read from private field"),s?s.call(i):t.get(i)),r=(i,t,s)=>t.has(i)?m("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,s),n=(i,t,s,d)=>(v(i,t,"write to private field"),d?d.call(i,s):t.set(i,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../events-KVanG9sR.cjs"),E=require("../function-MthRj-GJ.cjs");require("construct-style-sheets-polyfill");require("../index-
|
|
1
|
+
"use strict";var m=i=>{throw TypeError(i)};var v=(i,t,s)=>t.has(i)||m("Cannot "+s);var e=(i,t,s)=>(v(i,t,"read from private field"),s?s.call(i):t.get(i)),r=(i,t,s)=>t.has(i)?m("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,s),n=(i,t,s,d)=>(v(i,t,"write to private field"),d?d.call(i,s):t.set(i,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../events-KVanG9sR.cjs"),E=require("../function-MthRj-GJ.cjs");require("construct-style-sheets-polyfill");require("../index-CKTweR3M.cjs");var o,a,h,l,u,c,p;class q{constructor(){r(this,o,new Map);r(this,a,!1);r(this,h,0);r(this,l,0);r(this,u,E.debounce(()=>{e(this,a)||(n(this,a,!0),g.dispatchEvent(document,"loadingStart"),e(this,c).call(this))},0));r(this,c,t=>{if(!e(this,a))return;const s=e(this,o).size,d=Array.from(e(this,o)).filter(b=>b[1]).length,f=d/s;n(this,h,d),n(this,l,f),g.dispatchEvent(document,"loadingProgress",{detail:{total:s,loaded:d,progress:f,resourceName:t}}),f===1&&e(this,p).call(this)});r(this,p,E.debounce(()=>{n(this,a,!1),g.dispatchEvent(document,"loadingComplete",{detail:{total:e(this,o).size}}),n(this,h,0),n(this,l,0),e(this,o).clear()},0))}get total(){return e(this,o).size}get loaded(){return e(this,h)}get progress(){return e(this,l)}get map(){return e(this,o)}add(t){e(this,o).set(t,!1),e(this,u).call(this)}complete(t){e(this,o).set(t,!0),e(this,c).call(this,t)}error(t){e(this,o).has(t)&&(console.error(`Failed to load ${t}`),e(this,o).delete(t),g.dispatchEvent(document,"loadingError",{detail:{name:t}})),e(this,c).call(this)}}o=new WeakMap,a=new WeakMap,h=new WeakMap,l=new WeakMap,u=new WeakMap,c=new WeakMap,p=new WeakMap;const S=new q;exports.loading=S;
|
package/lib/loading/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var s = (i, t, e) => (z(i, t, "read from private field"), e ? e.call(i) : t.get(
|
|
|
6
6
|
import { d as p } from "../events-CsVF98U6.js";
|
|
7
7
|
import { d as w } from "../function-C10DGppn.js";
|
|
8
8
|
import "construct-style-sheets-polyfill";
|
|
9
|
-
import "../index-
|
|
9
|
+
import "../index-JqYHGoo6.js";
|
|
10
10
|
var o, d, l, n, c, g, m;
|
|
11
11
|
class S {
|
|
12
12
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var v=e=>{throw TypeError(e)};var p=(e,s,t)=>s.has(e)||v("Cannot "+t);var o=(e,s,t)=>(p(e,s,"read from private field"),t?t.call(e):s.get(e)),c=(e,s,t)=>s.has(e)?v("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),f=(e,s,t,i)=>(p(e,s,"write to private field"),i?i.call(e,t):s.set(e,t),t),m=(e,s,t)=>(p(e,s,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../css-property/index.cjs"),C=require("../index-
|
|
1
|
+
"use strict";var v=e=>{throw TypeError(e)};var p=(e,s,t)=>s.has(e)||v("Cannot "+t);var o=(e,s,t)=>(p(e,s,"read from private field"),t?t.call(e):s.get(e)),c=(e,s,t)=>s.has(e)?v("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),f=(e,s,t,i)=>(p(e,s,"write to private field"),i?i.call(e,t):s.set(e,t),t),m=(e,s,t)=>(p(e,s,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../css-property/index.cjs"),C=require("../index-CKTweR3M.cjs"),x=require("../events-KVanG9sR.cjs"),R=require("../stylesheet-BcwbfhBp.cjs");var l,u,a,h,y,d,b;class E extends HTMLElement{constructor(){super();c(this,d);c(this,l,new w.CSSProperty(this,"--distribute-rule","default",{skipSubscribeNotification:!0}));c(this,u,new w.CSSProperty(this,"--columns",2));c(this,a,[]);c(this,h,null);c(this,y,()=>{m(this,d,b).call(this)});const t=this.attachShadow({mode:"open"});t.adoptedStyleSheets=[R.createStylesheet({":host":{display:"grid",gridTemplateColumns:"repeat(var(--columns), 1fr)"},".column":{display:"grid",width:"100%",gap:"var(--gap, 0rem)",gridAutoRows:"max-content"}})]}get columnElements(){return o(this,a)}connectedCallback(){f(this,h,new MutationObserver(o(this,y))),o(this,h).observe(this,{childList:!0}),o(this,l).subscribe(()=>{m(this,d,b).call(this)}),o(this,u).subscribe(t=>{var i;this.shadowRoot.innerHTML="",f(this,a,[]);for(let n=0;n<t.current;n++){const r=document.createElement("div");r.classList.add("column"),r.innerHTML=`<slot name="col-${n}"></slot>`,o(this,a).push(r),(i=this.shadowRoot)==null||i.appendChild(r)}m(this,d,b).call(this)}),o(this,l).observe(),o(this,u).observe()}disconnectedCallback(){o(this,u).close(),o(this,h).disconnect(),this.classList.remove("distributed")}}l=new WeakMap,u=new WeakMap,a=new WeakMap,h=new WeakMap,y=new WeakMap,d=new WeakSet,b=function(){const t=[...this.children],i=o(this,u).current;o(this,l).current==="chessboard"&&i%2===0?t.forEach((n,r)=>{const L=Math.floor(r/i),S=r%i,g=L%2,M=(S+g)%i;n.slot=`col-${M}`}):o(this,l).current==="default"&&t.forEach((n,r)=>{n.slot=`col-${r%i}`}),this.classList.add("distributed"),x.dispatchEvent(this,"masonryLayoutDistributed",{custom:!0})};C.isBrowser&&!customElements.get("e-masonry-layout")&&customElements.define("e-masonry-layout",E);exports.MasonryLayoutElement=E;
|
|
@@ -4,9 +4,9 @@ var w = (s) => {
|
|
|
4
4
|
var f = (s, e, t) => e.has(s) || w("Cannot " + t);
|
|
5
5
|
var o = (s, e, t) => (f(s, e, "read from private field"), t ? t.call(s) : e.get(s)), c = (s, e, t) => e.has(s) ? w("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, t), y = (s, e, t, i) => (f(s, e, "write to private field"), i ? i.call(s, t) : e.set(s, t), t), m = (s, e, t) => (f(s, e, "access private method"), t);
|
|
6
6
|
import { CSSProperty as v } from "../css-property/index.js";
|
|
7
|
-
import { i as M } from "../index-
|
|
7
|
+
import { i as M } from "../index-JqYHGoo6.js";
|
|
8
8
|
import { d as C } from "../events-CsVF98U6.js";
|
|
9
|
-
import { c as R } from "../stylesheet-
|
|
9
|
+
import { c as R } from "../stylesheet-JlRFfJIc.js";
|
|
10
10
|
var l, a, h, u, b, d, p;
|
|
11
11
|
class x extends HTMLElement {
|
|
12
12
|
constructor() {
|
package/lib/media/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var a=e=>{throw TypeError(e)};var d=(e,r,s)=>r.has(e)||a("Cannot "+s);var o=(e,r,s)=>(d(e,r,"read from private field"),s?s.call(e):r.get(e)),u=(e,r,s)=>r.has(e)?a("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,s),n=(e,r,s,i)=>(d(e,r,"write to private field"),i?i.call(e,s):r.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../order/index.cjs"),h=require("../window-resizer/index.cjs"),b=require("../Store-
|
|
1
|
+
"use strict";var a=e=>{throw TypeError(e)};var d=(e,r,s)=>r.has(e)||a("Cannot "+s);var o=(e,r,s)=>(d(e,r,"read from private field"),s?s.call(e):r.get(e)),u=(e,r,s)=>r.has(e)?a("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,s),n=(e,r,s,i)=>(d(e,r,"write to private field"),i?i.call(e,s):r.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../order/index.cjs"),h=require("../window-resizer/index.cjs"),b=require("../Store-1JrMCgdX.cjs");require("construct-style-sheets-polyfill");require("../index-CKTweR3M.cjs");var t,c;class q extends b.Store{constructor(s){super(!1);u(this,t);u(this,c);n(this,t,s);const i=()=>{matchMedia(o(this,t)).matches?this.current=!0:this.current=!1};n(this,c,h.windowResizer.subscribe(i,l.RESIZE_ORDER.MEDIA)),i()}close(){super.close(),o(this,c).call(this)}}t=new WeakMap,c=new WeakMap;exports.Media=q;
|
package/lib/media/index.js
CHANGED
|
@@ -5,9 +5,9 @@ var h = (s, e, r) => e.has(s) || u("Cannot " + r);
|
|
|
5
5
|
var c = (s, e, r) => (h(s, e, "read from private field"), r ? r.call(s) : e.get(s)), m = (s, e, r) => e.has(s) ? u("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, r), a = (s, e, r, t) => (h(s, e, "write to private field"), t ? t.call(s, r) : e.set(s, r), r);
|
|
6
6
|
import { RESIZE_ORDER as l } from "../order/index.js";
|
|
7
7
|
import { windowResizer as n } from "../window-resizer/index.js";
|
|
8
|
-
import { S as p } from "../Store-
|
|
8
|
+
import { S as p } from "../Store-BtVtCGLk.js";
|
|
9
9
|
import "construct-style-sheets-polyfill";
|
|
10
|
-
import "../index-
|
|
10
|
+
import "../index-JqYHGoo6.js";
|
|
11
11
|
var i, o;
|
|
12
12
|
class M extends p {
|
|
13
13
|
constructor(r) {
|
package/lib/morph/Morph.d.ts
CHANGED
|
@@ -66,20 +66,8 @@ export declare class Morph {
|
|
|
66
66
|
preprocessor?: MorphPreprocessor;
|
|
67
67
|
pathnameModifier?: MorphPathnameModifier;
|
|
68
68
|
constructor(parameters?: Partial<MorphOptions>);
|
|
69
|
-
get currentURL():
|
|
70
|
-
|
|
71
|
-
pathname: string;
|
|
72
|
-
parameters: string;
|
|
73
|
-
hash: string;
|
|
74
|
-
path: string;
|
|
75
|
-
};
|
|
76
|
-
get previousURL(): {
|
|
77
|
-
leaf: string;
|
|
78
|
-
pathname: string;
|
|
79
|
-
parameters: string;
|
|
80
|
-
hash: string;
|
|
81
|
-
path: string;
|
|
82
|
-
} | undefined;
|
|
69
|
+
get currentURL(): import('../utils').SplitPathResult;
|
|
70
|
+
get previousURL(): import('../utils').SplitPathResult | undefined;
|
|
83
71
|
get links(): MorphLink[];
|
|
84
72
|
get scrollElement(): HTMLElement | Window;
|
|
85
73
|
get isPopstateNavigation(): boolean;
|
|
@@ -89,13 +77,7 @@ export declare class Morph {
|
|
|
89
77
|
};
|
|
90
78
|
saveState(state: any): void;
|
|
91
79
|
getState(): any;
|
|
92
|
-
normalizePath(path: string, options?: Pick<MorphNavigateOptions, 'mergeParams'>):
|
|
93
|
-
leaf: string;
|
|
94
|
-
pathname: string;
|
|
95
|
-
parameters: string;
|
|
96
|
-
hash: string;
|
|
97
|
-
path: string;
|
|
98
|
-
};
|
|
80
|
+
normalizePath(path: string, options?: Pick<MorphNavigateOptions, 'mergeParams'>): import('../utils').SplitPathResult;
|
|
99
81
|
prefetch(path: string, revalidate?: boolean): Promise<void>;
|
|
100
82
|
excludeHeadChild(child: Node): boolean;
|
|
101
83
|
setHeaders(path: string): void;
|