aptechka 0.2.2 → 0.3.0-test
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/build-browser-lib/ComponentElement-B8zjY3Dh.js +92 -0
- package/build-browser-lib/ComponentElement-DuiOKawv.cjs +1 -0
- package/build-browser-lib/Damped-BvkThM-2.cjs +1 -0
- package/build-browser-lib/Damped-DEHDBwBz.js +132 -0
- package/build-browser-lib/WheelControls-BJdZsEkS.js +92 -0
- package/build-browser-lib/WheelControls-CctFwJwY.cjs +1 -0
- package/build-browser-lib/animation/Damped.d.ts +38 -0
- package/build-browser-lib/animation/Tweened.d.ts +30 -0
- package/build-browser-lib/animation/hooks/index.cjs +1 -0
- package/{lib → build-browser-lib}/animation/hooks/index.d.ts +2 -2
- package/build-browser-lib/animation/hooks/index.js +32 -0
- package/build-browser-lib/animation/index.cjs +1 -0
- package/build-browser-lib/animation/index.d.ts +2 -0
- package/build-browser-lib/animation/index.js +98 -0
- package/build-browser-lib/attribute/hooks/index.d.ts +2 -0
- package/{lib → build-browser-lib}/controls/index.cjs +1 -1
- package/{lib → build-browser-lib}/controls/index.js +2 -2
- package/build-browser-lib/createStore-CUWrqVrV.cjs +1 -0
- package/build-browser-lib/createStore-DncUX-yj.js +15 -0
- package/build-browser-lib/element-resizer/hooks/index.cjs +1 -0
- package/build-browser-lib/element-resizer/hooks/index.d.ts +4 -0
- package/build-browser-lib/element-resizer/hooks/index.js +12 -0
- package/build-browser-lib/element-resizer/index.cjs +1 -0
- package/build-browser-lib/element-resizer/index.js +65 -0
- package/build-browser-lib/instantiate-BYzkD4SE.js +72 -0
- package/build-browser-lib/instantiate-DrQ1MNUN.cjs +1 -0
- package/build-browser-lib/intersector/hooks/index.cjs +1 -0
- package/build-browser-lib/intersector/hooks/index.js +12 -0
- package/{lib → build-browser-lib}/jsx/ComponentElement.d.ts +1 -1
- package/build-browser-lib/jsx/hooks/attachInternals.d.ts +1 -0
- package/build-browser-lib/jsx/hooks/attachShadow.d.ts +1 -0
- package/build-browser-lib/jsx/hooks/attachStylesheet.d.ts +2 -0
- package/build-browser-lib/jsx/hooks/createStore.d.ts +3 -0
- package/build-browser-lib/jsx/hooks/index.cjs +1 -0
- package/build-browser-lib/jsx/hooks/index.d.ts +8 -0
- package/build-browser-lib/jsx/hooks/index.js +77 -0
- package/build-browser-lib/jsx/hooks/onConnect.d.ts +2 -0
- package/{lib/jsx/hooks/useContext.d.ts → build-browser-lib/jsx/hooks/onContext.d.ts} +1 -1
- package/build-browser-lib/jsx/hooks/onDisconnect.d.ts +2 -0
- package/build-browser-lib/jsx/hooks/withCurrentComponent.d.ts +2 -0
- package/build-browser-lib/jsx/index.cjs +1 -0
- package/build-browser-lib/jsx/index.js +27 -0
- package/{lib → build-browser-lib}/jsx/type.d.ts +1 -0
- package/build-browser-lib/onConnect-FWEekrNj.js +9 -0
- package/build-browser-lib/onConnect-XY4UppQZ.cjs +1 -0
- package/build-browser-lib/polyfills-CrcS4RcO.cjs +1 -0
- package/build-browser-lib/polyfills-DJUYczFm.js +6 -0
- package/{lib → build-browser-lib}/router/index.cjs +1 -1
- package/{lib → build-browser-lib}/router/index.js +1 -1
- package/build-browser-lib/scroll/ScrollElement.d.ts +73 -0
- package/build-browser-lib/scroll/index.cjs +1 -0
- package/build-browser-lib/scroll/index.js +523 -0
- package/build-browser-lib/store/hooks/index.cjs +1 -0
- package/build-browser-lib/store/hooks/index.d.ts +6 -0
- package/build-browser-lib/store/hooks/index.js +26 -0
- package/build-browser-lib/studio/index.cjs +10 -0
- package/{lib → build-browser-lib}/studio/index.js +102 -105
- package/build-browser-lib/ticker/hooks/index.cjs +1 -0
- package/{lib → build-browser-lib}/ticker/hooks/index.d.ts +1 -1
- package/build-browser-lib/ticker/hooks/index.js +23 -0
- package/build-browser-lib/ticker/index.cjs +1 -0
- package/{lib → build-browser-lib}/ticker/index.d.ts +2 -1
- package/build-browser-lib/ticker/index.js +115 -0
- package/build-browser-lib/utils/index.cjs +1 -0
- package/{lib → build-browser-lib}/utils/index.d.ts +1 -0
- package/{lib → build-browser-lib}/utils/index.js +13 -11
- package/build-browser-lib/utils/polyfills.d.ts +1 -0
- package/build-browser-lib/window-resizer/hooks/index.cjs +1 -0
- package/build-browser-lib/window-resizer/hooks/index.d.ts +2 -0
- package/build-browser-lib/window-resizer/hooks/index.js +9 -0
- package/build-browser-lib/withCurrentComponent-Cd8KOtNf.js +7 -0
- package/build-browser-lib/withCurrentComponent-Cig6ryJK.cjs +1 -0
- package/build-vite-plugin-htmc/index.d.ts +7 -0
- package/build-vite-plugin-htmc/index.js +352 -0
- package/package.json +201 -189
- package/lib/Animated-Bf-gPIQM.cjs +0 -1
- package/lib/Animated-Br_4OSth.js +0 -131
- package/lib/ComponentElement-BUesLP4b.cjs +0 -1
- package/lib/ComponentElement-NMlh1Ptn.js +0 -92
- package/lib/Damped-Fy7tHx4d.js +0 -33
- package/lib/Damped-mdFs8WSd.cjs +0 -1
- package/lib/WheelControls-BN4XGOpG.js +0 -78
- package/lib/WheelControls-Dc1xcVG6.cjs +0 -1
- package/lib/animation/Animated.d.ts +0 -38
- package/lib/animation/Damped.d.ts +0 -11
- package/lib/animation/Tweened.d.ts +0 -15
- package/lib/animation/hooks/index.cjs +0 -1
- package/lib/animation/hooks/index.js +0 -38
- package/lib/animation/index.cjs +0 -1
- package/lib/animation/index.d.ts +0 -3
- package/lib/animation/index.js +0 -44
- package/lib/attribute/hooks/index.d.ts +0 -2
- package/lib/element-resizer/hooks/index.cjs +0 -1
- package/lib/element-resizer/hooks/index.d.ts +0 -4
- package/lib/element-resizer/hooks/index.js +0 -12
- package/lib/element-resizer/index.cjs +0 -1
- package/lib/element-resizer/index.js +0 -65
- package/lib/instantiate-BAz2WZtO.cjs +0 -1
- package/lib/instantiate-BDteLwW6.js +0 -55
- package/lib/intersector/hooks/index.cjs +0 -1
- package/lib/intersector/hooks/index.js +0 -12
- package/lib/jsx/hooks/index.cjs +0 -1
- package/lib/jsx/hooks/index.d.ts +0 -7
- package/lib/jsx/hooks/index.js +0 -76
- package/lib/jsx/hooks/useConnect.d.ts +0 -2
- package/lib/jsx/hooks/useCreate.d.ts +0 -2
- package/lib/jsx/hooks/useDisconnect.d.ts +0 -2
- package/lib/jsx/hooks/useInternals.d.ts +0 -1
- package/lib/jsx/hooks/useShadow.d.ts +0 -1
- package/lib/jsx/hooks/useStylesheet.d.ts +0 -2
- package/lib/jsx/index.cjs +0 -1
- package/lib/jsx/index.js +0 -15
- package/lib/scroll/ScrollElement.d.ts +0 -42
- package/lib/scroll/index.cjs +0 -1
- package/lib/scroll/index.js +0 -476
- package/lib/store/hooks/index.cjs +0 -1
- package/lib/store/hooks/index.d.ts +0 -6
- package/lib/store/hooks/index.js +0 -31
- package/lib/studio/index.cjs +0 -10
- package/lib/ticker/hooks/index.cjs +0 -1
- package/lib/ticker/hooks/index.js +0 -23
- package/lib/ticker/index.cjs +0 -1
- package/lib/ticker/index.js +0 -113
- package/lib/useConnect-CXdqKdRX.js +0 -9
- package/lib/useConnect-DcfeqwzW.cjs +0 -1
- package/lib/useCreate-ClGKVMeG.cjs +0 -1
- package/lib/useCreate-DQSfJu7r.js +0 -7
- package/lib/useDisconnect-D5cBD1bq.js +0 -9
- package/lib/useDisconnect-sA74z4IZ.cjs +0 -1
- package/lib/utils/index.cjs +0 -1
- package/lib/window-resizer/hooks/index.cjs +0 -1
- package/lib/window-resizer/hooks/index.d.ts +0 -2
- package/lib/window-resizer/hooks/index.js +0 -9
- /package/{lib → build-browser-lib}/Composed-ClTo1f0b.js +0 -0
- /package/{lib → build-browser-lib}/Composed-Mdr4ZFbI.cjs +0 -0
- /package/{lib → build-browser-lib}/Derived-Bc88XJ8J.js +0 -0
- /package/{lib → build-browser-lib}/Derived-SjPdLJiZ.cjs +0 -0
- /package/{lib → build-browser-lib}/ElementConstructor-B61ZFTEB.cjs +0 -0
- /package/{lib → build-browser-lib}/ElementConstructor-CvNdPKJy.js +0 -0
- /package/{lib → build-browser-lib}/SourceManager-BoP9RAJr.js +0 -0
- /package/{lib → build-browser-lib}/SourceManager-CI6NfLzW.cjs +0 -0
- /package/{lib → build-browser-lib}/Store-D0_rDIsE.cjs +0 -0
- /package/{lib → build-browser-lib}/Store-JOKrNVEr.js +0 -0
- /package/{lib → build-browser-lib}/Viewport-COsaberc.cjs +0 -0
- /package/{lib → build-browser-lib}/Viewport-CXY5xcGJ.js +0 -0
- /package/{lib → build-browser-lib}/abstract-elements/AbstractButtonElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/abstract-elements/index.cjs +0 -0
- /package/{lib → build-browser-lib}/abstract-elements/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/abstract-elements/index.js +0 -0
- /package/{lib → build-browser-lib}/accordion/AccordionElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/accordion/index.cjs +0 -0
- /package/{lib → build-browser-lib}/accordion/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/accordion/index.js +0 -0
- /package/{lib → build-browser-lib}/attribute/index.cjs +0 -0
- /package/{lib → build-browser-lib}/attribute/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/attribute/index.js +0 -0
- /package/{lib → build-browser-lib}/attributes-69we3byR.js +0 -0
- /package/{lib → build-browser-lib}/attributes-Bf2svn4j.cjs +0 -0
- /package/{lib → build-browser-lib}/browser-0zX67oeU.js +0 -0
- /package/{lib → build-browser-lib}/browser-CpzFX2xg.cjs +0 -0
- /package/{lib → build-browser-lib}/canvas/index.cjs +0 -0
- /package/{lib → build-browser-lib}/canvas/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/canvas/index.js +0 -0
- /package/{lib → build-browser-lib}/connector/index.cjs +0 -0
- /package/{lib → build-browser-lib}/connector/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/connector/index.js +0 -0
- /package/{lib → build-browser-lib}/controls/Controls.d.ts +0 -0
- /package/{lib → build-browser-lib}/controls/KeyboardControls.d.ts +0 -0
- /package/{lib → build-browser-lib}/controls/LinearControls.d.ts +0 -0
- /package/{lib → build-browser-lib}/controls/WheelControls.d.ts +0 -0
- /package/{lib → build-browser-lib}/controls/hooks/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/controls/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/createStylesheet-C0OnN0Br.cjs +0 -0
- /package/{lib → build-browser-lib}/createStylesheet-CD11E4C8.js +0 -0
- /package/{lib → build-browser-lib}/createTheme-B_W5dUY9.cjs +0 -0
- /package/{lib → build-browser-lib}/createTheme-D0IoYkYN.js +0 -0
- /package/{lib → build-browser-lib}/css-unit-parser/index.cjs +0 -0
- /package/{lib → build-browser-lib}/css-unit-parser/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/css-unit-parser/index.js +0 -0
- /package/{lib → build-browser-lib}/custom-element/index.cjs +0 -0
- /package/{lib → build-browser-lib}/custom-element/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/custom-element/index.js +0 -0
- /package/{lib → build-browser-lib}/device/Device.d.ts +0 -0
- /package/{lib → build-browser-lib}/device/Viewport.d.ts +0 -0
- /package/{lib → build-browser-lib}/device/index.cjs +0 -0
- /package/{lib → build-browser-lib}/device/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/device/index.js +0 -0
- /package/{lib → build-browser-lib}/dom-BY7JhTx5.js +0 -0
- /package/{lib → build-browser-lib}/dom-qY2LdCVL.cjs +0 -0
- /package/{lib → build-browser-lib}/easings-BKi40vHz.js +0 -0
- /package/{lib → build-browser-lib}/easings-DsS5-Kqc.cjs +0 -0
- /package/{lib → build-browser-lib}/element-constructor/ElementConstructor.d.ts +0 -0
- /package/{lib → build-browser-lib}/element-constructor/createStylesheet.d.ts +0 -0
- /package/{lib → build-browser-lib}/element-constructor/createTheme.d.ts +0 -0
- /package/{lib → build-browser-lib}/element-constructor/index.cjs +0 -0
- /package/{lib → build-browser-lib}/element-constructor/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/element-constructor/index.js +0 -0
- /package/{lib → build-browser-lib}/element-constructor/knownSvgTags.d.ts +0 -0
- /package/{lib → build-browser-lib}/element-constructor/tags.d.ts +0 -0
- /package/{lib → build-browser-lib}/element-resizer/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/attachments/En3SourceManager.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/core/En3Raycaster.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/core/en3.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/index.cjs +0 -0
- /package/{lib → build-browser-lib}/en3/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/index.js +0 -0
- /package/{lib → build-browser-lib}/en3/instances/en3LazyLoader.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/libs/MeshoptDecoder.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/loaders/en3GLTFLoader.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/loaders/en3TextureLoader.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/objects/En3Clip.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/objects/En3ClipHelpers.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/objects/En3GLTF.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/objects/En3Image.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/objects/En3ImageLike.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/objects/En3SourceConsumer.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/objects/En3Video.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/test/En3HTML.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/test/En3ModifiedMaterial.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/utils/coverTexture.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/utils/dispose.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/utils/getCurrentViewport.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/utils/traverseMaterials.d.ts +0 -0
- /package/{lib → build-browser-lib}/en3/utils/traverseMeshes.d.ts +0 -0
- /package/{lib → build-browser-lib}/events-Crwi8fz6.cjs +0 -0
- /package/{lib → build-browser-lib}/events-_C2CztxR.js +0 -0
- /package/{lib → build-browser-lib}/file-EevnUtRj.cjs +0 -0
- /package/{lib → build-browser-lib}/file-lxi_oXJf.js +0 -0
- /package/{lib → build-browser-lib}/function-C10DGppn.js +0 -0
- /package/{lib → build-browser-lib}/function-MthRj-GJ.cjs +0 -0
- /package/{lib → build-browser-lib}/image/index.cjs +0 -0
- /package/{lib → build-browser-lib}/image/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/image/index.js +0 -0
- /package/{lib → build-browser-lib}/index--wI4MTuv.cjs +0 -0
- /package/{lib → build-browser-lib}/index-Dq6GRJ9W.js +0 -0
- /package/{lib → build-browser-lib}/intersector/hooks/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/intersector/index.cjs +0 -0
- /package/{lib → build-browser-lib}/intersector/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/intersector/index.js +0 -0
- /package/{lib → build-browser-lib}/jsx/h.d.ts +0 -0
- /package/{lib → build-browser-lib}/jsx/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/jsx/instantiate.d.ts +0 -0
- /package/{lib → build-browser-lib}/jsx/register.d.ts +0 -0
- /package/{lib → build-browser-lib}/jsx/render.d.ts +0 -0
- /package/{lib → build-browser-lib}/ladder/index.cjs +0 -0
- /package/{lib → build-browser-lib}/ladder/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/ladder/index.js +0 -0
- /package/{lib → build-browser-lib}/layout-8ryRAMGJ.cjs +0 -0
- /package/{lib → build-browser-lib}/layout-HoBT_Da2.js +0 -0
- /package/{lib → build-browser-lib}/layout-box/index.cjs +0 -0
- /package/{lib → build-browser-lib}/layout-box/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/layout-box/index.js +0 -0
- /package/{lib → build-browser-lib}/loading/index.cjs +0 -0
- /package/{lib → build-browser-lib}/loading/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/loading/index.js +0 -0
- /package/{lib → build-browser-lib}/math-BOBiC4TN.js +0 -0
- /package/{lib → build-browser-lib}/math-GDWEqu7y.cjs +0 -0
- /package/{lib → build-browser-lib}/media/index.cjs +0 -0
- /package/{lib → build-browser-lib}/media/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/media/index.js +0 -0
- /package/{lib → build-browser-lib}/modal/ModalElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/modal/index.cjs +0 -0
- /package/{lib → build-browser-lib}/modal/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/modal/index.js +0 -0
- /package/{lib → build-browser-lib}/morph/Link.d.ts +0 -0
- /package/{lib → build-browser-lib}/morph/Morph.d.ts +0 -0
- /package/{lib → build-browser-lib}/morph/index.cjs +0 -0
- /package/{lib → build-browser-lib}/morph/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/morph/index.js +0 -0
- /package/{lib → build-browser-lib}/notifier/index.cjs +0 -0
- /package/{lib → build-browser-lib}/notifier/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/notifier/index.js +0 -0
- /package/{lib → build-browser-lib}/number-Bo5RdrA1.js +0 -0
- /package/{lib → build-browser-lib}/number-yVpzMdbQ.cjs +0 -0
- /package/{lib → build-browser-lib}/object-BZELAoVj.cjs +0 -0
- /package/{lib → build-browser-lib}/object-R34VLqhp.js +0 -0
- /package/{lib → build-browser-lib}/order/index.cjs +0 -0
- /package/{lib → build-browser-lib}/order/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/order/index.js +0 -0
- /package/{lib → build-browser-lib}/popover/PopoverButtonElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/popover/PopoverElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/popover/index.cjs +0 -0
- /package/{lib → build-browser-lib}/popover/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/popover/index.js +0 -0
- /package/{lib → build-browser-lib}/resized/index.cjs +0 -0
- /package/{lib → build-browser-lib}/resized/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/resized/index.js +0 -0
- /package/{lib → build-browser-lib}/router/Link.d.ts +0 -0
- /package/{lib → build-browser-lib}/router/Route.d.ts +0 -0
- /package/{lib → build-browser-lib}/router/Router.d.ts +0 -0
- /package/{lib → build-browser-lib}/router/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/scroll/ScrollUserElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/scroll/ScrollbarElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/scroll/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/scroll-entries/index.cjs +0 -0
- /package/{lib → build-browser-lib}/scroll-entries/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/scroll-entries/index.js +0 -0
- /package/{lib → build-browser-lib}/select/SelectElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/select/SelectHeadElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/select/SelectOptionElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/select/SelectUserElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/select/index.cjs +0 -0
- /package/{lib → build-browser-lib}/select/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/select/index.js +0 -0
- /package/{lib → build-browser-lib}/slicer/DecoderElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/slicer/Letter.d.ts +0 -0
- /package/{lib → build-browser-lib}/slicer/SlicerElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/slicer/Word.d.ts +0 -0
- /package/{lib → build-browser-lib}/slicer/index.cjs +0 -0
- /package/{lib → build-browser-lib}/slicer/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/slicer/index.js +0 -0
- /package/{lib → build-browser-lib}/source/SourceClass.d.ts +0 -0
- /package/{lib → build-browser-lib}/source/SourceElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/source/SourceManager.d.ts +0 -0
- /package/{lib → build-browser-lib}/source/SourceSet.d.ts +0 -0
- /package/{lib → build-browser-lib}/source/index.cjs +0 -0
- /package/{lib → build-browser-lib}/source/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/source/index.js +0 -0
- /package/{lib → build-browser-lib}/store/Composed.d.ts +0 -0
- /package/{lib → build-browser-lib}/store/CumulativeResource.d.ts +0 -0
- /package/{lib → build-browser-lib}/store/Derived.d.ts +0 -0
- /package/{lib → build-browser-lib}/store/DerivedArray.d.ts +0 -0
- /package/{lib → build-browser-lib}/store/Resource.d.ts +0 -0
- /package/{lib → build-browser-lib}/store/Store.d.ts +0 -0
- /package/{lib → build-browser-lib}/store/StoreRegistry.d.ts +0 -0
- /package/{lib → build-browser-lib}/store/index.cjs +0 -0
- /package/{lib → build-browser-lib}/store/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/store/index.js +0 -0
- /package/{lib → build-browser-lib}/string-3lAkpJJP.js +0 -0
- /package/{lib → build-browser-lib}/string-vBu90jhV.cjs +0 -0
- /package/{lib → build-browser-lib}/studio/StudioElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/studio/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/studio/studioStorage.d.ts +0 -0
- /package/{lib → build-browser-lib}/studio/tweaker/TweakerBooleanManagerElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/studio/tweaker/TweakerColorManagerElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/studio/tweaker/TweakerElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/studio/tweaker/TweakerFieldElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/studio/tweaker/TweakerFolderElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/studio/tweaker/TweakerLinkManagerElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/studio/tweaker/TweakerNumberManagerElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/studio/tweaker/TweakerRangeManagerElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/studio/tweaker/TweakerSelectManagerElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/studio/tweaker/TweakerStoreManagerElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/studio/tweaker/TweakerStringManagerElement.d.ts +0 -0
- /package/{lib → build-browser-lib}/studio/tweaker/tweakerManagerConstructors.d.ts +0 -0
- /package/{lib → build-browser-lib}/style-At6aDoqG.cjs +0 -0
- /package/{lib → build-browser-lib}/style-j2TwriJ_.js +0 -0
- /package/{lib → build-browser-lib}/tags-C2jg1zYB.js +0 -0
- /package/{lib → build-browser-lib}/tags-DX-eNxbA.cjs +0 -0
- /package/{lib → build-browser-lib}/theme/index.cjs +0 -0
- /package/{lib → build-browser-lib}/theme/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/theme/index.js +0 -0
- /package/{lib → build-browser-lib}/utils/array.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/attributes.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/browser.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/canvas.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/collisions.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/coordinates.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/cssom.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/decoding.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/dom.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/easings.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/events.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/file.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/function.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/layout.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/math.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/number.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/object.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/string.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/style.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/ts-shape.d.ts +0 -0
- /package/{lib → build-browser-lib}/utils/ts-utility.d.ts +0 -0
- /package/{lib → build-browser-lib}/video/index.cjs +0 -0
- /package/{lib → build-browser-lib}/video/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/video/index.js +0 -0
- /package/{lib → build-browser-lib}/window-resizer/index.cjs +0 -0
- /package/{lib → build-browser-lib}/window-resizer/index.d.ts +0 -0
- /package/{lib → build-browser-lib}/window-resizer/index.js +0 -0
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
var C = Object.defineProperty, E = Object.defineProperties;
|
|
2
|
-
var y = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var f = Object.getOwnPropertySymbols;
|
|
4
|
-
var A = Object.prototype.hasOwnProperty, h = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var i = (e, t, n) => t in e ? C(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, a = (e, t) => {
|
|
6
|
-
for (var n in t || (t = {}))
|
|
7
|
-
A.call(t, n) && i(e, n, t[n]);
|
|
8
|
-
if (f)
|
|
9
|
-
for (var n of f(t))
|
|
10
|
-
h.call(t, n) && i(e, n, t[n]);
|
|
11
|
-
return e;
|
|
12
|
-
}, l = (e, t) => E(e, y(t));
|
|
13
|
-
import { E as p } from "./ElementConstructor-CvNdPKJy.js";
|
|
14
|
-
import { c as w } from "./string-3lAkpJJP.js";
|
|
15
|
-
import { C as x, n as F } from "./ComponentElement-NMlh1Ptn.js";
|
|
16
|
-
function d(e) {
|
|
17
|
-
const t = Array.isArray(e) ? e : [e];
|
|
18
|
-
let n = [];
|
|
19
|
-
return t.forEach((r) => {
|
|
20
|
-
if (typeof r == "function") {
|
|
21
|
-
const o = r();
|
|
22
|
-
n = [...n, ...d(o)];
|
|
23
|
-
} else
|
|
24
|
-
n.push(r);
|
|
25
|
-
}), n;
|
|
26
|
-
}
|
|
27
|
-
function b(e, t, ...n) {
|
|
28
|
-
var s;
|
|
29
|
-
if (typeof e == "function") {
|
|
30
|
-
if (e === c)
|
|
31
|
-
return c(n);
|
|
32
|
-
const m = `e-${w(e.name)}`;
|
|
33
|
-
let u = customElements.get(m);
|
|
34
|
-
return u || (u = (s = class extends x {
|
|
35
|
-
}, s.formAssociated = e.formAssociated, s), customElements.define(m, u)), () => new u({ tag: e, attributes: t, children: n });
|
|
36
|
-
}
|
|
37
|
-
const r = n.map((m) => d(m)).flat();
|
|
38
|
-
let o = null;
|
|
39
|
-
return e === "component" ? (o = c(r), F.value = t) : o = new p(e, l(a({}, t), {
|
|
40
|
-
children: r
|
|
41
|
-
})), o.node;
|
|
42
|
-
}
|
|
43
|
-
function c(e) {
|
|
44
|
-
return new p(document.createDocumentFragment(), {
|
|
45
|
-
children: e
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function $(e, t = null, ...n) {
|
|
49
|
-
return b(e, t, ...n)();
|
|
50
|
-
}
|
|
51
|
-
export {
|
|
52
|
-
c as F,
|
|
53
|
-
b as h,
|
|
54
|
-
$ as i
|
|
55
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../useConnect-DcfeqwzW.cjs");require("../../Store-D0_rDIsE.cjs");const o=require("../index.cjs");function u(...e){c.useConnect(t=>{const n=e.length>1?e[0]:t,r=e.length>1?e[1]:e[0];return o.intersector.subscribe(n,r)})}exports.useIntersector=u;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { u as c } from "../../useConnect-CXdqKdRX.js";
|
|
2
|
-
import "../../Store-JOKrNVEr.js";
|
|
3
|
-
import { intersector as r } from "../index.js";
|
|
4
|
-
function l(...t) {
|
|
5
|
-
c((e) => {
|
|
6
|
-
const n = t.length > 1 ? t[0] : e, o = t.length > 1 ? t[1] : t[0];
|
|
7
|
-
return r.subscribe(n, o);
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
l as useIntersector
|
|
12
|
-
};
|
package/lib/jsx/hooks/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var C=Object.defineProperty;var l=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var i=(t,e,n)=>e in t?C(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,d=(t,e)=>{for(var n in e||(e={}))y.call(e,n)&&i(t,n,e[n]);if(l)for(var n of l(e))S.call(e,n)&&i(t,n,e[n]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../useConnect-DcfeqwzW.cjs"),o=require("../../useCreate-ClGKVMeG.cjs"),w=require("../../useDisconnect-sA74z4IZ.cjs");require("../../Store-D0_rDIsE.cjs");const x=require("../../tags-DX-eNxbA.cjs"),f=require("../../createStylesheet-C0OnN0Br.cjs");function R(t,e){a.useConnect(n=>{const s=n.findContext(t);if(!s){console.warn(n,`Context "${t}" not found`);return}return e(s)})}function m(t,e){o.useCreate(n=>{n.createContext(t,e)})}function T(){return o.useCreate(t=>t.attachInternals())}function p(t){return o.useCreate(e=>e.attachShadow(d({mode:"open"},t)))}function q(t){o.useCreate(e=>{e.shadowRoot&&e.shadowRoot.adoptedStyleSheets.push(f.createStylesheet(t))}),a.useConnect(e=>{if(e.shadowRoot)return;const n=e.getRootNode();if(n===document){const s=x.style(t).node;if(![...document.head.querySelectorAll("style")].find(u=>u.outerHTML===s.outerHTML))return document.head.appendChild(s),()=>{s.remove()}}else if(n instanceof ShadowRoot){const s=f.createStylesheet(t);n.adoptedStyleSheets.filter(r=>{const u=Array.from(r.cssRules);Array.from(s.cssRules).filter(c=>!u.find(h=>h.cssText===c.cssText)).forEach(c=>{r.insertRule(c.cssText)})})}})}exports.useConnect=a.useConnect;exports.useCreate=o.useCreate;exports.useDisconnect=w.useDisconnect;exports.createContext=m;exports.useContext=R;exports.useInternals=T;exports.useShadow=p;exports.useStylesheet=q;
|
package/lib/jsx/hooks/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { useConnect } from './useConnect';
|
|
2
|
-
export { useContext, createContext, type ContextCallback } from './useContext';
|
|
3
|
-
export { useCreate } from './useCreate';
|
|
4
|
-
export { useDisconnect } from './useDisconnect';
|
|
5
|
-
export { useInternals } from './useInternals';
|
|
6
|
-
export { useShadow } from './useShadow';
|
|
7
|
-
export { useStylesheet } from './useStylesheet';
|
package/lib/jsx/hooks/index.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
var m = Object.defineProperty;
|
|
2
|
-
var c = Object.getOwnPropertySymbols;
|
|
3
|
-
var p = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var f = (t, e, o) => e in t ? m(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, l = (t, e) => {
|
|
5
|
-
for (var o in e || (e = {}))
|
|
6
|
-
p.call(e, o) && f(t, o, e[o]);
|
|
7
|
-
if (c)
|
|
8
|
-
for (var o of c(e))
|
|
9
|
-
y.call(e, o) && f(t, o, e[o]);
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import { u as i } from "../../useConnect-CXdqKdRX.js";
|
|
13
|
-
import { u as s } from "../../useCreate-DQSfJu7r.js";
|
|
14
|
-
import { u as v } from "../../useDisconnect-D5cBD1bq.js";
|
|
15
|
-
import "../../Store-JOKrNVEr.js";
|
|
16
|
-
import { aC as x } from "../../tags-C2jg1zYB.js";
|
|
17
|
-
import { c as d } from "../../createStylesheet-CD11E4C8.js";
|
|
18
|
-
function E(t, e) {
|
|
19
|
-
i((o) => {
|
|
20
|
-
const n = o.findContext(t);
|
|
21
|
-
if (!n) {
|
|
22
|
-
console.warn(o, `Context "${t}" not found`);
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
return e(n);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
function H(t, e) {
|
|
29
|
-
s((o) => {
|
|
30
|
-
o.createContext(t, e);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function I() {
|
|
34
|
-
return s((t) => t.attachInternals());
|
|
35
|
-
}
|
|
36
|
-
function L(t) {
|
|
37
|
-
return s((e) => e.attachShadow(l({ mode: "open" }, t)));
|
|
38
|
-
}
|
|
39
|
-
function M(t) {
|
|
40
|
-
s((e) => {
|
|
41
|
-
e.shadowRoot && e.shadowRoot.adoptedStyleSheets.push(d(t));
|
|
42
|
-
}), i((e) => {
|
|
43
|
-
if (e.shadowRoot)
|
|
44
|
-
return;
|
|
45
|
-
const o = e.getRootNode();
|
|
46
|
-
if (o === document) {
|
|
47
|
-
const n = x(t).node;
|
|
48
|
-
if (![...document.head.querySelectorAll("style")].find((u) => u.outerHTML === n.outerHTML))
|
|
49
|
-
return document.head.appendChild(n), () => {
|
|
50
|
-
n.remove();
|
|
51
|
-
};
|
|
52
|
-
} else if (o instanceof ShadowRoot) {
|
|
53
|
-
const n = d(t);
|
|
54
|
-
o.adoptedStyleSheets.filter((r) => {
|
|
55
|
-
const u = Array.from(r.cssRules);
|
|
56
|
-
Array.from(n.cssRules).filter(
|
|
57
|
-
(a) => !u.find(
|
|
58
|
-
(h) => h.cssText === a.cssText
|
|
59
|
-
)
|
|
60
|
-
).forEach((a) => {
|
|
61
|
-
r.insertRule(a.cssText);
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
export {
|
|
68
|
-
H as createContext,
|
|
69
|
-
i as useConnect,
|
|
70
|
-
E as useContext,
|
|
71
|
-
s as useCreate,
|
|
72
|
-
v as useDisconnect,
|
|
73
|
-
I as useInternals,
|
|
74
|
-
L as useShadow,
|
|
75
|
-
M as useStylesheet
|
|
76
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useInternals(): ElementInternals;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useShadow(init?: ShadowRootInit): ShadowRoot;
|
package/lib/jsx/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../instantiate-BAz2WZtO.cjs");function i(e,n=null,...r){return t.h(e,n,...r)}function a(e,n=document.body){n.appendChild(t.instantiate(e))}exports.Fragment=t.Fragment;exports.h=t.h;exports.instantiate=t.instantiate;exports.register=i;exports.render=a;
|
package/lib/jsx/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { h as e, i as o } from "../instantiate-BDteLwW6.js";
|
|
2
|
-
import { F as u } from "../instantiate-BDteLwW6.js";
|
|
3
|
-
function a(n, r = null, ...t) {
|
|
4
|
-
return e(n, r, ...t);
|
|
5
|
-
}
|
|
6
|
-
function d(n, r = document.body) {
|
|
7
|
-
r.appendChild(o(n));
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
u as Fragment,
|
|
11
|
-
e as h,
|
|
12
|
-
o as instantiate,
|
|
13
|
-
a as register,
|
|
14
|
-
d as render
|
|
15
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Damped } from '../animation';
|
|
2
|
-
import { Attribute } from '../attribute';
|
|
3
|
-
import { CustomElement } from '../custom-element';
|
|
4
|
-
import { Store } from '../store';
|
|
5
|
-
import { Axes2D } from '../utils';
|
|
6
|
-
export type ScrollBehaviour = 'smooth' | 'instant';
|
|
7
|
-
export declare class ScrollElement extends CustomElement {
|
|
8
|
-
#private;
|
|
9
|
-
constructor(name?: string);
|
|
10
|
-
get currentScrollValue(): number;
|
|
11
|
-
get targetScrollValue(): number;
|
|
12
|
-
get damped(): Damped;
|
|
13
|
-
get dampedAttibute(): Damped;
|
|
14
|
-
get axisAttibute(): Attribute<Axes2D>;
|
|
15
|
-
get pagesAttibute(): Attribute<number>;
|
|
16
|
-
get splitAttibute(): Attribute<boolean>;
|
|
17
|
-
get sectionalAttibute(): Attribute<boolean>;
|
|
18
|
-
get infiniteAttribute(): Attribute<boolean>;
|
|
19
|
-
get dampingAttibute(): Attribute<number>;
|
|
20
|
-
get disabledAttibute(): Attribute<boolean>;
|
|
21
|
-
get hibernatedAttibute(): Attribute<boolean>;
|
|
22
|
-
get contentElement(): HTMLElement;
|
|
23
|
-
get position(): number;
|
|
24
|
-
get contentPosition(): number;
|
|
25
|
-
get viewportSize(): number;
|
|
26
|
-
get scrollSize(): number;
|
|
27
|
-
get counter(): Store<number, keyof import('../store').StoreManagers, import('../store').StoreEntry<number>>;
|
|
28
|
-
get distance(): number;
|
|
29
|
-
get overscroll(): number;
|
|
30
|
-
get vertical(): boolean;
|
|
31
|
-
get currentProgress(): number;
|
|
32
|
-
get targetProgress(): number;
|
|
33
|
-
scrollToSection(sectionIndex: number, behaviour?: ScrollBehaviour): void;
|
|
34
|
-
shiftSections(direction: number, behaviour?: ScrollBehaviour): void;
|
|
35
|
-
protected connectedCallback(): void;
|
|
36
|
-
protected disconnectedCallback(): void;
|
|
37
|
-
}
|
|
38
|
-
declare global {
|
|
39
|
-
interface HTMLElementTagNameMap {
|
|
40
|
-
'e-scroll': ScrollElement;
|
|
41
|
-
}
|
|
42
|
-
}
|
package/lib/scroll/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var Ct=(s,e,i)=>{if(!e.has(s))throw TypeError("Cannot "+i)};var h=(s,e,i)=>(Ct(s,e,"read from private field"),i?i.call(s):e.get(s)),D=(s,e,i)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,i)},O=(s,e,i,n)=>(Ct(s,e,"write to private field"),n?n.call(s,i):e.set(s,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const qt=require("../Store-D0_rDIsE.cjs"),Dt=require("../Derived-SjPdLJiZ.cjs"),At=require("../browser-CpzFX2xg.cjs"),I=require("../layout-8ryRAMGJ.cjs"),zt=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const Tt=require("../Damped-mdFs8WSd.cjs"),x=require("../attribute/index.cjs"),Mt=require("../WheelControls-Dc1xcVG6.cjs"),gt=require("../custom-element/index.cjs"),xt=require("../order/index.cjs"),pt=require("../window-resizer/index.cjs"),H=require("../scroll-entries/index.cjs"),P=require("../tags-DX-eNxbA.cjs"),Lt=require("../createStylesheet-C0OnN0Br.cjs"),Vt=require("../dom-qY2LdCVL.cjs");var It=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Ft=(s,e,i,n)=>{for(var r=n>1?void 0:n?Ht(e,i):e,d=s.length-1,g;d>=0;d--)(g=s[d])&&(r=(n?g(e,i,r):g(r))||r);return n&&r&&It(e,i,r),r},yt=(s,e,i)=>{if(!e.has(s))throw TypeError("Cannot "+i)},t=(s,e,i)=>(yt(s,e,"read from private field"),i?i.call(s):e.get(s)),l=(s,e,i)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,i)},m=(s,e,i,n)=>(yt(s,e,"write to private field"),n?n.call(s,i):e.set(s,i),i),f=(s,e,i)=>(yt(s,e,"access private method"),i),a,M,T,$,V,X,y,Y,j,tt,u,dt,c,et,it,_,p,k,F,b,G,R,N,ft,B,U,mt,kt,bt,Wt,st,vt,rt,_t,q,wt,St,Ot,nt,ht,Et,S,w,L,W;class Bt{constructor(e,i){D(this,S,void 0);D(this,w,void 0);D(this,L,0);D(this,W,0);O(this,S,e),O(this,w,i),H.scrollEntries.register(h(this,S))}get size(){return h(this,L)}get position(){return h(this,W)}destroy(){H.scrollEntries.unregister(h(this,S)),h(this,S).style.transform=""}resize(){O(this,L,h(this,w).vertical?h(this,S).offsetHeight:h(this,S).offsetWidth),O(this,W,h(this,w).vertical?I.getCumulativeOffsetTop(h(this,S)):I.getCumulativeOffsetLeft(h(this,S))),O(this,W,h(this,W)-h(this,w).contentPosition)}transform(){let e=0;h(this,w).infiniteAttribute.current&&h(this,w).overscroll&&h(this,W)+h(this,L)<h(this,w).currentScrollValue&&(e=h(this,w).distance*-1),H.scrollEntries.update(h(this,S),h(this,w).axisAttibute.current,e);const i=h(this,w).viewportSize-h(this,L),n=zt.clamp(h(this,w).currentScrollValue+e,h(this,W)-h(this,w).viewportSize-i,h(this,W)+h(this,L)+i);h(this,w).vertical?h(this,S).style.transform=`translate3d(0px, ${n*-1}px, 0px)`:h(this,S).style.transform=`translate3d(${n*-1}px, 0px, 0px)`}}S=new WeakMap,w=new WeakMap,L=new WeakMap,W=new WeakMap;const Gt=Lt.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"absolute",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends gt.CustomElement{constructor(e){if(super(),l(this,N),l(this,B),l(this,mt),l(this,bt),l(this,st),l(this,rt),l(this,St),l(this,ht),l(this,a,null),l(this,M,new x.Attribute(this,"axis","y")),l(this,T,new x.Attribute(this,"pages",0,{validate:i=>Math.max(0,i-1)})),l(this,$,new x.Attribute(this,"split",!1)),l(this,V,new x.Attribute(this,"sectional",!1)),l(this,X,new x.Attribute(this,"wheel-max-delta",!1)),l(this,y,new x.Attribute(this,"infinite",!1)),l(this,Y,new x.Attribute(this,"damping",.03)),l(this,j,new x.Attribute(this,"disabled",!1)),l(this,tt,new x.Attribute(this,"hibernated",!1)),l(this,u,null),l(this,dt,null),l(this,c,[]),l(this,et,0),l(this,it,0),l(this,_,0),l(this,p,0),l(this,k,null),l(this,F,null),l(this,b,new qt.Store(0)),l(this,G,0),l(this,R,0),l(this,q,()=>{const i=this.currentScrollValue/t(this,p);if(m(this,et,this.vertical?I.getCumulativeOffsetTop(this):I.getCumulativeOffsetLeft(this)),m(this,it,this.vertical?I.getCumulativeOffsetTop(t(this,u)):I.getCumulativeOffsetLeft(t(this,u))),m(this,_,this.vertical?this.offsetHeight:this.offsetWidth),t(this,T).current){m(this,p,t(this,_)*t(this,T).current);const n=t(this,p)+t(this,_);this.vertical?(t(this,u).style.width=n+"px",t(this,u).style.height="100%"):(t(this,u).style.height=n+"px",t(this,u).style.width="100%")}else this.vertical?(t(this,u).style.width="100%",t(this,u).style.height="max-content",m(this,p,t(this,u).offsetHeight-t(this,_))):(t(this,u).style.width="max-content",t(this,u).style.height="100%",m(this,p,t(this,u).offsetWidth-t(this,_)));if(!t(this,y).current){const n=getComputedStyle(this);m(this,p,t(this,p)+(this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd))),t(this,a).max.current=t(this,p)}if(t(this,c).forEach(n=>{n.resize(),n.transform()}),t(this,y).current&&t(this,c).length){const n=t(this,c)[t(this,c).length-1],r=n.position+n.size-t(this,_),d=t(this,p)-r;m(this,R,n.position+n.size+d)}else m(this,R,t(this,p));if(t(this,V).current&&t(this,c).length){const n=t(this,c)[t(this,b).current];t(this,a).set(n.position,!0)}else t(this,a).set(i*t(this,p),!0)}),l(this,wt,()=>{const i=this.currentScrollValue;if(m(this,G,Math.max(0,i-t(this,p))),t(this,c).length){let n=0;for(let r=0;r<t(this,c).length;r++){const d=t(this,c)[r];d.transform(),this.targetScrollValue+this.viewportSize/2>=d.position&&(n=r)}t(this,b).current=n}else this.vertical?t(this,u).style.transform=`translate3d(0px, ${i*-1}px, 0px)`:t(this,u).style.transform=`translate3d(${i*-1}px, 0px, 0px)`;H.scrollEntries.update(this,t(this,M).current,i)}),l(this,nt,i=>{if(typeof i=="number")if(t(this,V).current){const n=Math.sign(i);t(this,c).length?this.shiftSections(n):t(this,a).shift(n*t(this,_))}else t(this,a).shift(i);else i==="min"?t(this,a).set(t(this,a).min.current):i==="max"&&t(this,a).set(t(this,a).delta)}),At.isBrowser){let i,n=e||this.getAttribute("name");n&&(i={name:n}),m(this,a,new Tt.Damped({damping:.01,min:0,order:xt.TICK_ORDER.SCROLL,passport:i})),this.openShadow(Gt),P.element(this,{tabIndex:0,children:[P.div({class:"static",children:[P.slot({name:"static"})]}),P.div({class:"content",children:[P.slot({ref:r=>m(this,dt,r)})],style:{flexDirection:new Dt.Derived(t(this,M),r=>r==="x"?"row":"column")},ref:r=>m(this,u,r)})]}),m(this,k,new Mt.WheelControls({element:this})),t(this,k).changeEvent.subscribe(t(this,nt)),m(this,F,new Mt.KeyboardControls({element:this})),t(this,F).changeEvent.subscribe(t(this,nt)),t(this,M).subscribe(({current:r})=>{t(this,u).style.flexDirection=r==="x"?"row":"column",t(this,k).axis=t(this,X).current?"max":r,this.isConnected&&t(this,q).call(this)}),t(this,X).subscribe(r=>{t(this,k).axis=r.current?"max":t(this,M).current}),t(this,T).subscribe(()=>{this.isConnected&&t(this,q).call(this)}),t(this,$).subscribe(({current:r})=>{this.isConnected&&(r?f(this,N,ft).call(this):f(this,B,U).call(this))}),t(this,V).subscribe(r=>{t(this,b).current=0,t(this,k).debounce=r.current,t(this,a).reset(),this.isConnected&&(r.current&&!r.previous?f(this,N,ft).call(this):!r.current&&r.previous&&f(this,B,U).call(this))}),t(this,y).subscribe(r=>{r.current?(this.isConnected&&(t(this,c).length||(t(this,$).current=!0)),t(this,c).length&&(t(this,a).max.current=1/0,t(this,a).min.current=-1/0)):(m(this,G,0),t(this,a).max.current=t(this,p),t(this,a).min.current=0)}),t(this,Y).subscribe(r=>{t(this,a).damping=r.current}),t(this,j).subscribe(r=>{r.current&&!r.previous?f(this,mt,kt).call(this):!r.current&&r.previous&&f(this,bt,Wt).call(this)}),t(this,tt).subscribe(r=>{r.current&&!r.previous?f(this,st,vt).call(this):!r.current&&r.previous&&f(this,rt,_t).call(this)})}}get currentScrollValue(){return f(this,ht,Et).call(this,"current")}get targetScrollValue(){return f(this,ht,Et).call(this,"target")}get damped(){return t(this,a)}get dampedAttibute(){return t(this,a)}get axisAttibute(){return t(this,M)}get pagesAttibute(){return t(this,T)}get splitAttibute(){return t(this,$)}get sectionalAttibute(){return t(this,V)}get infiniteAttribute(){return t(this,y)}get dampingAttibute(){return t(this,Y)}get disabledAttibute(){return t(this,j)}get hibernatedAttibute(){return t(this,tt)}get contentElement(){return t(this,u)}get position(){return t(this,et)}get contentPosition(){return t(this,it)}get viewportSize(){return t(this,_)}get scrollSize(){return t(this,p)}get counter(){return t(this,b)}get distance(){return t(this,R)}get overscroll(){return t(this,G)}get vertical(){return t(this,M).current==="y"}get currentProgress(){return this.currentScrollValue/t(this,R)}get targetProgress(){return this.targetScrollValue/t(this,R)}scrollToSection(e,i="smooth"){if(!t(this,c).length)return;const n=t(this,b).current;f(this,St,Ot).call(this,e);const r=t(this,c)[n],d=t(this,c)[t(this,b).current];if(r&&d){let g=0;const Q=t(this,c).length-1;t(this,y).current?t(this,b).current===0&&n===Q?g=t(this,p)+t(this,_)-r.position:t(this,b).current===Q&&n===0?g=d.position-(t(this,p)+t(this,_)):g=d.position-r.position:g=d.position-r.position,t(this,a).shift(g,i==="instant")}}shiftSections(e,i="smooth"){t(this,c).length&&this.scrollToSection(t(this,b).current+e,i)}connectedCallback(){f(this,rt,_t).call(this)}disconnectedCallback(){f(this,st,vt).call(this)}};a=new WeakMap;M=new WeakMap;T=new WeakMap;$=new WeakMap;V=new WeakMap;X=new WeakMap;y=new WeakMap;Y=new WeakMap;j=new WeakMap;tt=new WeakMap;u=new WeakMap;dt=new WeakMap;c=new WeakMap;et=new WeakMap;it=new WeakMap;_=new WeakMap;p=new WeakMap;k=new WeakMap;F=new WeakMap;b=new WeakMap;G=new WeakMap;R=new WeakMap;N=new WeakSet;ft=function(){f(this,B,U).call(this),t(this,dt).assignedElements().forEach(s=>{s instanceof HTMLElement&&t(this,c).push(new Bt(s,this))}),t(this,u).style.transform="",t(this,q).call(this)};B=new WeakSet;U=function(){t(this,c).forEach(s=>{s.destroy()}),m(this,c,[])};mt=new WeakSet;kt=function(){t(this,a).unsubscribe(t(this,wt)),t(this,a).unlistenAnimationFrame(),t(this,k).disconnect(),t(this,F).disconnect()};bt=new WeakSet;Wt=function(){t(this,a).subscribe(t(this,wt)),t(this,k).connect(),t(this,F).connect()};st=new WeakSet;vt=function(){pt.windowResizer.unsubscribe(t(this,q)),t(this,a).reset(),f(this,mt,kt).call(this),t(this,u).style.transform="",t(this,$).current&&f(this,B,U).call(this),H.scrollEntries.unregister(this)};rt=new WeakSet;_t=function(){t(this,$).current&&f(this,N,ft).call(this),H.scrollEntries.register(this),pt.windowResizer.subscribe(t(this,q),xt.RESIZE_ORDER.SCROLL),f(this,bt,Wt).call(this)};q=new WeakMap;wt=new WeakMap;St=new WeakSet;Ot=function(s){t(this,y).current?(t(this,b).current=s%t(this,c).length,t(this,b).current=t(this,b).current<0?t(this,c).length+t(this,b).current:t(this,b).current):t(this,b).current=zt.clamp(s,0,t(this,c).length-1)};nt=new WeakMap;ht=new WeakSet;Et=function(s="current"){if(t(this,y).current&&t(this,c).length){const e=t(this,a)[s]%(t(this,p)+t(this,_));return e<0?t(this,p)+e+t(this,_):e}else return t(this,a)[s]};exports.ScrollElement=Ft([gt.define("e-scroll")],exports.ScrollElement);var J;class Kt extends gt.CustomElement{constructor(){super(...arguments);D(this,J,null)}get scrollElement(){return h(this,J)}connectedCallback(){const i=Vt.findParentElement(this,exports.ScrollElement);i instanceof exports.ScrollElement?O(this,J,i):console.error(this,"e-scroll not found")}}J=new WeakMap;var Zt=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,Ut=(s,e,i,n)=>{for(var r=n>1?void 0:n?Nt(e,i):e,d=s.length-1,g;d>=0;d--)(g=s[d])&&(r=(n?g(e,i,r):g(r))||r);return n&&r&&Zt(e,i,r),r},Rt=(s,e,i)=>{if(!e.has(s))throw TypeError("Cannot "+i)},o=(s,e,i)=>(Rt(s,e,"read from private field"),i?i.call(s):e.get(s)),E=(s,e,i)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,i)},C=(s,e,i,n)=>(Rt(s,e,"write to private field"),n?n.call(s,i):e.set(s,i),i),lt,v,A,z,K,Z,ot,at,ct,ut;const Jt=Lt.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:"#efefef"},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:"#181818",borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends Kt{constructor(){super(),E(this,lt,null),E(this,v,null),E(this,A,!1),E(this,z,0),E(this,K,0),E(this,Z,0),E(this,ot,()=>{C(this,A,this.offsetWidth>this.offsetHeight);const e=o(this,A)?this.offsetWidth:this.offsetHeight;C(this,z,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),C(this,z,Math.max(o(this,z),30)),o(this,A)?(o(this,v).style.width=o(this,z)+"px",o(this,v).style.height="100%"):(o(this,v).style.width="100%",o(this,v).style.height=o(this,z)+"px"),C(this,K,e-o(this,z)),this.scrollElement.scrollSize||(this.style.display="none")}),E(this,at,()=>{C(this,Z,this.scrollElement.currentProgress*o(this,K)),o(this,A)?o(this,v).style.transform=`translate3d(${o(this,Z)}px, 0px, 0px)`:o(this,v).style.transform=`translate3d(0px, ${o(this,Z)}px, 0px)`}),E(this,ct,()=>{this.setAttribute("axis",this.scrollElement.axisAttibute.current)}),E(this,ut,e=>{const i=g=>{const Q=o(this,A)?g.x:g.y,Pt=this.scrollElement.distance/o(this,K),$t=(Q-d)*Pt;this.scrollElement.damped.set(r+$t)},n=()=>{removeEventListener("pointermove",i),removeEventListener("pointerup",n),removeEventListener("touchend",n)};addEventListener("pointermove",i),addEventListener("pointerup",n),addEventListener("touchend",n);const r=this.scrollElement.damped.target,d=o(this,A)?e.x:e.y}),At.isBrowser&&(this.openShadow(Jt),P.element(this,{children:[P.slot({ref:e=>C(this,lt,e)})]}))}get thumbElement(){return o(this,v)}connectedCallback(){super.connectedCallback();const e=o(this,lt).assignedElements()[0];e instanceof HTMLElement?C(this,v,e):(C(this,v,document.createElement("div")),o(this,v).classList.add("default-thumb"),this.shadowRoot.appendChild(o(this,v))),o(this,v).addEventListener("pointerdown",o(this,ut)),pt.windowResizer.subscribe(o(this,ot),xt.RESIZE_ORDER.SCROLL+1),this.scrollElement.damped.subscribe(o(this,at)),this.scrollElement.axisAttibute.subscribe(o(this,ct))}disconnectedCallback(){o(this,v).removeEventListener("pointerdown",o(this,ut)),pt.windowResizer.unsubscribe(o(this,ot)),this.scrollElement.damped.unsubscribe(o(this,at)),this.scrollElement.axisAttibute.unsubscribe(o(this,ct))}};lt=new WeakMap;v=new WeakMap;A=new WeakMap;z=new WeakMap;K=new WeakMap;Z=new WeakMap;ot=new WeakMap;at=new WeakMap;ct=new WeakMap;ut=new WeakMap;exports.ScrollbarElement=Ut([gt.define("e-scrollbar")],exports.ScrollbarElement);
|