aptechka 0.3.0 → 0.3.1
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/ComponentElement-CIl1lnep.cjs +1 -0
- package/lib/ComponentElement-CzGRgBvs.js +76 -0
- package/lib/ElementConstructor-C_HDpVEZ.cjs +1 -0
- package/{build-browser-lib/ElementConstructor-CvNdPKJy.js → lib/ElementConstructor-ChgHpqb6.js} +89 -77
- package/{build-browser-lib → lib}/abstract-elements/AbstractButtonElement.d.ts +1 -0
- package/{build-browser-lib → lib}/abstract-elements/index.cjs +1 -1
- package/{build-browser-lib → lib}/abstract-elements/index.js +1 -1
- package/{build-browser-lib → lib}/accordion/AccordionElement.d.ts +3 -2
- package/{build-browser-lib → lib}/animation/Damped.d.ts +2 -1
- package/{build-browser-lib → lib}/animation/Tweened.d.ts +3 -2
- package/{build-browser-lib → lib}/animation/hooks/index.cjs +1 -1
- package/{build-browser-lib → lib}/animation/hooks/index.d.ts +2 -1
- package/{build-browser-lib → lib}/animation/hooks/index.js +1 -1
- package/{build-browser-lib → lib}/attribute/hooks/index.d.ts +1 -0
- package/{build-browser-lib → lib}/attribute/index.d.ts +2 -1
- package/{build-browser-lib → lib}/canvas/index.cjs +1 -1
- package/{build-browser-lib → lib}/canvas/index.d.ts +1 -0
- package/{build-browser-lib → lib}/canvas/index.js +2 -2
- package/{build-browser-lib → lib}/controls/Controls.d.ts +1 -0
- package/{build-browser-lib → lib}/controls/KeyboardControls.d.ts +1 -0
- package/{build-browser-lib → lib}/controls/LinearControls.d.ts +1 -0
- package/{build-browser-lib → lib}/controls/WheelControls.d.ts +2 -1
- package/{build-browser-lib/createStore-DncUX-yj.js → lib/createStore-BSUQyZjo.js} +2 -2
- package/{build-browser-lib/createStore-CUWrqVrV.cjs → lib/createStore-D61G4jpF.cjs} +1 -1
- package/{build-browser-lib/createStylesheet-CD11E4C8.js → lib/createStylesheet-CYZlwj0H.js} +1 -1
- package/{build-browser-lib/createStylesheet-C0OnN0Br.cjs → lib/createStylesheet-De-6zF24.cjs} +1 -1
- package/{build-browser-lib → lib}/device/Device.d.ts +1 -0
- package/{build-browser-lib → lib}/device/Viewport.d.ts +1 -0
- package/{build-browser-lib → lib}/element-constructor/ElementConstructor.d.ts +12 -2
- package/{build-browser-lib → lib}/element-constructor/createStylesheet.d.ts +1 -0
- package/{build-browser-lib → lib}/element-constructor/createTheme.d.ts +1 -0
- package/{build-browser-lib → lib}/element-constructor/index.cjs +1 -1
- package/{build-browser-lib → lib}/element-constructor/index.js +3 -3
- package/{build-browser-lib → lib}/element-constructor/tags.d.ts +1 -0
- package/{build-browser-lib → lib}/element-resizer/hooks/index.cjs +1 -1
- package/{build-browser-lib → lib}/element-resizer/hooks/index.d.ts +2 -1
- package/{build-browser-lib → lib}/element-resizer/hooks/index.js +1 -1
- package/{build-browser-lib → lib}/element-resizer/index.d.ts +1 -0
- package/{build-browser-lib → lib}/en3/attachments/En3SourceManager.d.ts +3 -2
- package/{build-browser-lib → lib}/en3/core/En3Raycaster.d.ts +1 -0
- package/{build-browser-lib → lib}/en3/core/en3.d.ts +6 -5
- package/{build-browser-lib → lib}/en3/instances/en3LazyLoader.d.ts +2 -1
- package/{build-browser-lib → lib}/en3/loaders/en3GLTFLoader.d.ts +3 -5
- package/{build-browser-lib → lib}/en3/loaders/en3TextureLoader.d.ts +1 -0
- package/{build-browser-lib → lib}/en3/objects/En3Clip.d.ts +3 -2
- package/{build-browser-lib → lib}/en3/objects/En3ClipHelpers.d.ts +2 -1
- package/{build-browser-lib → lib}/en3/objects/En3GLTF.d.ts +4 -3
- package/{build-browser-lib → lib}/en3/objects/En3Image.d.ts +2 -1
- package/{build-browser-lib → lib}/en3/objects/En3ImageLike.d.ts +3 -2
- package/{build-browser-lib → lib}/en3/objects/En3SourceConsumer.d.ts +1 -0
- package/{build-browser-lib → lib}/en3/objects/En3Video.d.ts +2 -1
- package/{build-browser-lib → lib}/en3/test/En3HTML.d.ts +1 -0
- package/{build-browser-lib → lib}/en3/test/En3ModifiedMaterial.d.ts +1 -0
- package/{build-browser-lib → lib}/en3/utils/coverTexture.d.ts +2 -1
- package/{build-browser-lib → lib}/en3/utils/dispose.d.ts +1 -0
- package/lib/en3/utils/getCurrentViewport.d.ts +9 -0
- package/{build-browser-lib → lib}/en3/utils/traverseMaterials.d.ts +1 -0
- package/{build-browser-lib → lib}/en3/utils/traverseMeshes.d.ts +1 -0
- package/{build-browser-lib → lib}/image/index.d.ts +1 -0
- package/{build-browser-lib/index-Dq6GRJ9W.js → lib/index-8MIh-Dcx.js} +2 -2
- package/{build-browser-lib/index--wI4MTuv.cjs → lib/index-CHamNqUl.cjs} +1 -1
- package/{build-browser-lib/instantiate-BYzkD4SE.js → lib/instantiate-CXUQ7AmI.js} +2 -2
- package/{build-browser-lib/instantiate-DrQ1MNUN.cjs → lib/instantiate-D63dC3Vr.cjs} +1 -1
- package/{build-browser-lib → lib}/intersector/hooks/index.cjs +1 -1
- package/{build-browser-lib → lib}/intersector/hooks/index.d.ts +2 -1
- package/{build-browser-lib → lib}/intersector/hooks/index.js +1 -1
- package/{build-browser-lib → lib}/intersector/index.d.ts +1 -0
- package/{build-browser-lib → lib}/jsx/ComponentElement.d.ts +1 -2
- package/{build-browser-lib → lib}/jsx/h.d.ts +1 -0
- package/{build-browser-lib → lib}/jsx/hooks/attachStylesheet.d.ts +1 -0
- package/lib/jsx/hooks/createContext.d.ts +2 -0
- package/{build-browser-lib → lib}/jsx/hooks/createStore.d.ts +2 -1
- package/lib/jsx/hooks/index.cjs +1 -0
- package/{build-browser-lib → lib}/jsx/hooks/index.d.ts +1 -1
- package/lib/jsx/hooks/index.js +73 -0
- package/{build-browser-lib → lib}/jsx/hooks/onConnect.d.ts +1 -0
- package/{build-browser-lib → lib}/jsx/hooks/onDisconnect.d.ts +1 -0
- package/{build-browser-lib → lib}/jsx/hooks/withCurrentComponent.d.ts +1 -0
- package/{build-browser-lib → lib}/jsx/index.cjs +1 -1
- package/{build-browser-lib → lib}/jsx/index.js +2 -2
- package/{build-browser-lib → lib}/jsx/type.d.ts +4 -3
- package/{build-browser-lib → lib}/ladder/index.d.ts +1 -0
- package/{build-browser-lib → lib}/layout-box/index.d.ts +3 -2
- package/{build-browser-lib → lib}/loading/index.d.ts +1 -0
- package/{build-browser-lib → lib}/media/index.d.ts +1 -0
- package/{build-browser-lib → lib}/modal/ModalElement.d.ts +1 -0
- package/{build-browser-lib → lib}/modal/index.cjs +1 -1
- package/{build-browser-lib → lib}/modal/index.js +2 -2
- package/{build-browser-lib → lib}/morph/Link.d.ts +1 -0
- package/{build-browser-lib/onConnect-FWEekrNj.js → lib/onConnect-CNMynOhK.js} +1 -1
- package/{build-browser-lib/onConnect-XY4UppQZ.cjs → lib/onConnect-DyAwFqQQ.cjs} +1 -1
- package/{build-browser-lib → lib}/popover/PopoverButtonElement.d.ts +2 -1
- package/{build-browser-lib → lib}/popover/PopoverElement.d.ts +3 -2
- package/{build-browser-lib → lib}/resized/index.d.ts +2 -1
- package/{build-browser-lib → lib}/router/Link.d.ts +1 -0
- package/{build-browser-lib → lib}/router/Router.d.ts +1 -0
- package/{build-browser-lib → lib}/router/index.cjs +1 -1
- package/{build-browser-lib → lib}/router/index.js +1 -1
- package/{build-browser-lib → lib}/scroll/ScrollElement.d.ts +5 -4
- package/{build-browser-lib → lib}/scroll/ScrollUserElement.d.ts +2 -1
- package/{build-browser-lib → lib}/scroll/ScrollbarElement.d.ts +1 -0
- package/{build-browser-lib → lib}/scroll/index.cjs +1 -1
- package/{build-browser-lib → lib}/scroll/index.js +2 -2
- package/{build-browser-lib → lib}/scroll-entries/index.d.ts +1 -0
- package/{build-browser-lib → lib}/select/SelectElement.d.ts +1 -0
- package/{build-browser-lib → lib}/select/SelectHeadElement.d.ts +1 -0
- package/{build-browser-lib → lib}/select/SelectOptionElement.d.ts +1 -0
- package/{build-browser-lib → lib}/select/SelectUserElement.d.ts +2 -1
- package/{build-browser-lib → lib}/select/index.cjs +1 -1
- package/{build-browser-lib → lib}/select/index.js +1 -1
- package/{build-browser-lib → lib}/slicer/DecoderElement.d.ts +1 -0
- package/{build-browser-lib → lib}/slicer/SlicerElement.d.ts +3 -2
- package/{build-browser-lib → lib}/slicer/Word.d.ts +1 -0
- package/{build-browser-lib → lib}/source/SourceElement.d.ts +2 -1
- package/{build-browser-lib → lib}/source/SourceManager.d.ts +2 -1
- package/{build-browser-lib → lib}/source/SourceSet.d.ts +1 -0
- package/{build-browser-lib → lib}/store/Composed.d.ts +1 -0
- package/{build-browser-lib → lib}/store/CumulativeResource.d.ts +1 -0
- package/{build-browser-lib → lib}/store/Derived.d.ts +1 -0
- package/{build-browser-lib → lib}/store/DerivedArray.d.ts +1 -0
- package/{build-browser-lib → lib}/store/Resource.d.ts +2 -1
- package/{build-browser-lib → lib}/store/StoreRegistry.d.ts +1 -0
- package/{build-browser-lib → lib}/store/hooks/index.cjs +1 -1
- package/{build-browser-lib → lib}/store/hooks/index.d.ts +1 -0
- package/{build-browser-lib → lib}/store/hooks/index.js +1 -1
- package/{build-browser-lib → lib}/studio/StudioElement.d.ts +1 -0
- package/{build-browser-lib → lib}/studio/index.cjs +1 -1
- package/{build-browser-lib → lib}/studio/index.js +3 -3
- package/{build-browser-lib → lib}/studio/tweaker/TweakerBooleanManagerElement.d.ts +2 -1
- package/{build-browser-lib → lib}/studio/tweaker/TweakerColorManagerElement.d.ts +2 -1
- package/{build-browser-lib → lib}/studio/tweaker/TweakerElement.d.ts +2 -1
- package/{build-browser-lib → lib}/studio/tweaker/TweakerFieldElement.d.ts +3 -2
- package/{build-browser-lib → lib}/studio/tweaker/TweakerFolderElement.d.ts +4 -3
- package/{build-browser-lib → lib}/studio/tweaker/TweakerLinkManagerElement.d.ts +2 -1
- package/{build-browser-lib → lib}/studio/tweaker/TweakerNumberManagerElement.d.ts +2 -1
- package/{build-browser-lib → lib}/studio/tweaker/TweakerRangeManagerElement.d.ts +2 -1
- package/{build-browser-lib → lib}/studio/tweaker/TweakerSelectManagerElement.d.ts +2 -1
- package/{build-browser-lib → lib}/studio/tweaker/TweakerStoreManagerElement.d.ts +2 -1
- package/{build-browser-lib → lib}/studio/tweaker/TweakerStringManagerElement.d.ts +2 -1
- package/{build-browser-lib → lib}/studio/tweaker/tweakerManagerConstructors.d.ts +2 -1
- package/{build-browser-lib/tags-C2jg1zYB.js → lib/tags-DSmoyoPZ.js} +1 -1
- package/{build-browser-lib/tags-DX-eNxbA.cjs → lib/tags-Di21YbUL.cjs} +1 -1
- package/{build-browser-lib → lib}/theme/index.cjs +1 -1
- package/{build-browser-lib → lib}/theme/index.js +1 -1
- package/{build-browser-lib → lib}/ticker/hooks/index.cjs +1 -1
- package/{build-browser-lib → lib}/ticker/hooks/index.d.ts +2 -1
- package/{build-browser-lib → lib}/ticker/hooks/index.js +1 -1
- package/{build-browser-lib → lib}/ticker/index.d.ts +1 -0
- package/{build-browser-lib → lib}/utils/collisions.d.ts +1 -0
- package/{build-browser-lib → lib}/utils/coordinates.d.ts +1 -0
- package/{build-browser-lib → lib}/utils/math.d.ts +1 -0
- package/{build-browser-lib → lib}/video/index.d.ts +1 -0
- package/{build-browser-lib → lib}/window-resizer/hooks/index.cjs +1 -1
- package/{build-browser-lib → lib}/window-resizer/hooks/index.d.ts +1 -0
- package/{build-browser-lib → lib}/window-resizer/hooks/index.js +1 -1
- package/{build-browser-lib → lib}/window-resizer/index.d.ts +1 -0
- package/{build-browser-lib/withCurrentComponent-Cig6ryJK.cjs → lib/withCurrentComponent-BDsFmjJ9.cjs} +1 -1
- package/lib/withCurrentComponent-DIBND_yO.js +7 -0
- package/package.json +196 -207
- package/build-browser-lib/ComponentElement-B8zjY3Dh.js +0 -92
- package/build-browser-lib/ComponentElement-DuiOKawv.cjs +0 -1
- package/build-browser-lib/ElementConstructor-B61ZFTEB.cjs +0 -1
- package/build-browser-lib/en3/utils/getCurrentViewport.d.ts +0 -7
- package/build-browser-lib/jsx/hooks/index.cjs +0 -1
- package/build-browser-lib/jsx/hooks/index.js +0 -77
- package/build-browser-lib/jsx/hooks/onContext.d.ts +0 -3
- package/build-browser-lib/withCurrentComponent-Cd8KOtNf.js +0 -7
- package/build-vite-plugin-htmc/index.d.ts +0 -7
- package/build-vite-plugin-htmc/index.js +0 -352
- /package/{build-browser-lib → lib}/Composed-ClTo1f0b.js +0 -0
- /package/{build-browser-lib → lib}/Composed-Mdr4ZFbI.cjs +0 -0
- /package/{build-browser-lib → lib}/Damped-BvkThM-2.cjs +0 -0
- /package/{build-browser-lib → lib}/Damped-DEHDBwBz.js +0 -0
- /package/{build-browser-lib → lib}/Derived-Bc88XJ8J.js +0 -0
- /package/{build-browser-lib → lib}/Derived-SjPdLJiZ.cjs +0 -0
- /package/{build-browser-lib → lib}/SourceManager-BoP9RAJr.js +0 -0
- /package/{build-browser-lib → lib}/SourceManager-CI6NfLzW.cjs +0 -0
- /package/{build-browser-lib → lib}/Store-D0_rDIsE.cjs +0 -0
- /package/{build-browser-lib → lib}/Store-JOKrNVEr.js +0 -0
- /package/{build-browser-lib → lib}/Viewport-COsaberc.cjs +0 -0
- /package/{build-browser-lib → lib}/Viewport-CXY5xcGJ.js +0 -0
- /package/{build-browser-lib → lib}/WheelControls-BJdZsEkS.js +0 -0
- /package/{build-browser-lib → lib}/WheelControls-CctFwJwY.cjs +0 -0
- /package/{build-browser-lib → lib}/abstract-elements/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/accordion/index.cjs +0 -0
- /package/{build-browser-lib → lib}/accordion/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/accordion/index.js +0 -0
- /package/{build-browser-lib → lib}/animation/index.cjs +0 -0
- /package/{build-browser-lib → lib}/animation/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/animation/index.js +0 -0
- /package/{build-browser-lib → lib}/attribute/index.cjs +0 -0
- /package/{build-browser-lib → lib}/attribute/index.js +0 -0
- /package/{build-browser-lib → lib}/attributes-69we3byR.js +0 -0
- /package/{build-browser-lib → lib}/attributes-Bf2svn4j.cjs +0 -0
- /package/{build-browser-lib → lib}/browser-0zX67oeU.js +0 -0
- /package/{build-browser-lib → lib}/browser-CpzFX2xg.cjs +0 -0
- /package/{build-browser-lib → lib}/connector/index.cjs +0 -0
- /package/{build-browser-lib → lib}/connector/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/connector/index.js +0 -0
- /package/{build-browser-lib → lib}/controls/hooks/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/controls/index.cjs +0 -0
- /package/{build-browser-lib → lib}/controls/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/controls/index.js +0 -0
- /package/{build-browser-lib → lib}/createTheme-B_W5dUY9.cjs +0 -0
- /package/{build-browser-lib → lib}/createTheme-D0IoYkYN.js +0 -0
- /package/{build-browser-lib → lib}/css-unit-parser/index.cjs +0 -0
- /package/{build-browser-lib → lib}/css-unit-parser/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/css-unit-parser/index.js +0 -0
- /package/{build-browser-lib → lib}/custom-element/index.cjs +0 -0
- /package/{build-browser-lib → lib}/custom-element/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/custom-element/index.js +0 -0
- /package/{build-browser-lib → lib}/device/index.cjs +0 -0
- /package/{build-browser-lib → lib}/device/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/device/index.js +0 -0
- /package/{build-browser-lib → lib}/dom-BY7JhTx5.js +0 -0
- /package/{build-browser-lib → lib}/dom-qY2LdCVL.cjs +0 -0
- /package/{build-browser-lib → lib}/easings-BKi40vHz.js +0 -0
- /package/{build-browser-lib → lib}/easings-DsS5-Kqc.cjs +0 -0
- /package/{build-browser-lib → lib}/element-constructor/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/element-constructor/knownSvgTags.d.ts +0 -0
- /package/{build-browser-lib → lib}/element-resizer/index.cjs +0 -0
- /package/{build-browser-lib → lib}/element-resizer/index.js +0 -0
- /package/{build-browser-lib → lib}/en3/index.cjs +0 -0
- /package/{build-browser-lib → lib}/en3/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/en3/index.js +0 -0
- /package/{build-browser-lib → lib}/en3/libs/MeshoptDecoder.d.ts +0 -0
- /package/{build-browser-lib → lib}/events-Crwi8fz6.cjs +0 -0
- /package/{build-browser-lib → lib}/events-_C2CztxR.js +0 -0
- /package/{build-browser-lib → lib}/file-EevnUtRj.cjs +0 -0
- /package/{build-browser-lib → lib}/file-lxi_oXJf.js +0 -0
- /package/{build-browser-lib → lib}/function-C10DGppn.js +0 -0
- /package/{build-browser-lib → lib}/function-MthRj-GJ.cjs +0 -0
- /package/{build-browser-lib → lib}/image/index.cjs +0 -0
- /package/{build-browser-lib → lib}/image/index.js +0 -0
- /package/{build-browser-lib → lib}/intersector/index.cjs +0 -0
- /package/{build-browser-lib → lib}/intersector/index.js +0 -0
- /package/{build-browser-lib → lib}/jsx/hooks/attachInternals.d.ts +0 -0
- /package/{build-browser-lib → lib}/jsx/hooks/attachShadow.d.ts +0 -0
- /package/{build-browser-lib → lib}/jsx/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/jsx/instantiate.d.ts +0 -0
- /package/{build-browser-lib → lib}/jsx/register.d.ts +0 -0
- /package/{build-browser-lib → lib}/jsx/render.d.ts +0 -0
- /package/{build-browser-lib → lib}/ladder/index.cjs +0 -0
- /package/{build-browser-lib → lib}/ladder/index.js +0 -0
- /package/{build-browser-lib → lib}/layout-8ryRAMGJ.cjs +0 -0
- /package/{build-browser-lib → lib}/layout-HoBT_Da2.js +0 -0
- /package/{build-browser-lib → lib}/layout-box/index.cjs +0 -0
- /package/{build-browser-lib → lib}/layout-box/index.js +0 -0
- /package/{build-browser-lib → lib}/loading/index.cjs +0 -0
- /package/{build-browser-lib → lib}/loading/index.js +0 -0
- /package/{build-browser-lib → lib}/math-BOBiC4TN.js +0 -0
- /package/{build-browser-lib → lib}/math-GDWEqu7y.cjs +0 -0
- /package/{build-browser-lib → lib}/media/index.cjs +0 -0
- /package/{build-browser-lib → lib}/media/index.js +0 -0
- /package/{build-browser-lib → lib}/modal/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/morph/Morph.d.ts +0 -0
- /package/{build-browser-lib → lib}/morph/index.cjs +0 -0
- /package/{build-browser-lib → lib}/morph/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/morph/index.js +0 -0
- /package/{build-browser-lib → lib}/notifier/index.cjs +0 -0
- /package/{build-browser-lib → lib}/notifier/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/notifier/index.js +0 -0
- /package/{build-browser-lib → lib}/number-Bo5RdrA1.js +0 -0
- /package/{build-browser-lib → lib}/number-yVpzMdbQ.cjs +0 -0
- /package/{build-browser-lib → lib}/object-BZELAoVj.cjs +0 -0
- /package/{build-browser-lib → lib}/object-R34VLqhp.js +0 -0
- /package/{build-browser-lib → lib}/order/index.cjs +0 -0
- /package/{build-browser-lib → lib}/order/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/order/index.js +0 -0
- /package/{build-browser-lib → lib}/polyfills-CrcS4RcO.cjs +0 -0
- /package/{build-browser-lib → lib}/polyfills-DJUYczFm.js +0 -0
- /package/{build-browser-lib → lib}/popover/index.cjs +0 -0
- /package/{build-browser-lib → lib}/popover/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/popover/index.js +0 -0
- /package/{build-browser-lib → lib}/resized/index.cjs +0 -0
- /package/{build-browser-lib → lib}/resized/index.js +0 -0
- /package/{build-browser-lib → lib}/router/Route.d.ts +0 -0
- /package/{build-browser-lib → lib}/router/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/scroll/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/scroll-entries/index.cjs +0 -0
- /package/{build-browser-lib → lib}/scroll-entries/index.js +0 -0
- /package/{build-browser-lib → lib}/select/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/slicer/Letter.d.ts +0 -0
- /package/{build-browser-lib → lib}/slicer/index.cjs +0 -0
- /package/{build-browser-lib → lib}/slicer/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/slicer/index.js +0 -0
- /package/{build-browser-lib → lib}/source/SourceClass.d.ts +0 -0
- /package/{build-browser-lib → lib}/source/index.cjs +0 -0
- /package/{build-browser-lib → lib}/source/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/source/index.js +0 -0
- /package/{build-browser-lib → lib}/store/Store.d.ts +0 -0
- /package/{build-browser-lib → lib}/store/index.cjs +0 -0
- /package/{build-browser-lib → lib}/store/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/store/index.js +0 -0
- /package/{build-browser-lib → lib}/string-3lAkpJJP.js +0 -0
- /package/{build-browser-lib → lib}/string-vBu90jhV.cjs +0 -0
- /package/{build-browser-lib → lib}/studio/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/studio/studioStorage.d.ts +0 -0
- /package/{build-browser-lib → lib}/style-At6aDoqG.cjs +0 -0
- /package/{build-browser-lib → lib}/style-j2TwriJ_.js +0 -0
- /package/{build-browser-lib → lib}/theme/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/ticker/index.cjs +0 -0
- /package/{build-browser-lib → lib}/ticker/index.js +0 -0
- /package/{build-browser-lib → lib}/utils/array.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/attributes.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/browser.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/canvas.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/cssom.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/decoding.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/dom.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/easings.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/events.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/file.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/function.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/index.cjs +0 -0
- /package/{build-browser-lib → lib}/utils/index.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/index.js +0 -0
- /package/{build-browser-lib → lib}/utils/layout.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/number.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/object.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/polyfills.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/string.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/style.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/ts-shape.d.ts +0 -0
- /package/{build-browser-lib → lib}/utils/ts-utility.d.ts +0 -0
- /package/{build-browser-lib → lib}/video/index.cjs +0 -0
- /package/{build-browser-lib → lib}/video/index.js +0 -0
- /package/{build-browser-lib → lib}/window-resizer/index.cjs +0 -0
- /package/{build-browser-lib → lib}/window-resizer/index.js +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Ladder } from '../ladder';
|
|
2
|
-
import { StoreCallback, StoreEntry } from '../store';
|
|
3
1
|
import { ElementOrSelector, Axes3D, Axes2D } from '../utils';
|
|
2
|
+
import { StoreCallback, StoreEntry } from '../store';
|
|
3
|
+
import { Ladder } from '../ladder';
|
|
4
|
+
|
|
4
5
|
export declare function decomposeCSSMatrix(matrix: WebKitCSSMatrix): {
|
|
5
6
|
scaleX: number;
|
|
6
7
|
scaleY: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../custom-element/index.cjs");require("../Store-D0_rDIsE.cjs");const b=require("../browser-CpzFX2xg.cjs"),s=require("../tags-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../custom-element/index.cjs");require("../Store-D0_rDIsE.cjs");const b=require("../browser-CpzFX2xg.cjs"),s=require("../tags-Di21YbUL.cjs"),m=require("../createStylesheet-De-6zF24.cjs"),g=require("../popover/index.cjs"),d=require("../theme/index.cjs");var w=Object.defineProperty,_=Object.getOwnPropertyDescriptor,y=(t,e,o,r)=>{for(var n=r>1?void 0:r?_(e,o):e,c=t.length-1,h;c>=0;c--)(h=t[c])&&(n=(r?h(e,o,n):h(n))||n);return r&&n&&w(e,o,n),n},p=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)},l=(t,e,o)=>(p(t,e,"read from private field"),o?o.call(t):e.get(t)),u=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)},f=(t,e,o,r)=>(p(t,e,"write to private field"),r?r.call(t,o):e.set(t,o),o),i,a;const C=m.createStylesheet({":host":{position:"fixed",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%",transitionProperty:"opacity",transitionDuration:d.aptechkaTheme.durationShort.var},":host::before":{content:'""',position:"fixed",top:"0",left:"0",zIndex:"-1",width:"100%",height:"100%",backgroundColor:"var(--backdrop, rgba(0, 0, 0, 0.8))"},".inner":{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden auto"},".overflow .inner":{alignItems:"flex-start"},".content":{position:"relative"},".close-button":{position:"absolute",top:"var(---close-button-top, 0.5em)",right:"var(---close-button-right, 0.5em)",background:"none",border:"none",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit"},".close-button-default":{width:"var(---close-button-size, 1.5em)",height:"var(---close-button-size, 1.5em)",display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"transform",transitionDuration:d.aptechkaTheme.durationShort.var,willChange:"transform"},".close-button:hover .close-button-default":{transform:"scale(0.9)"},".close-button:active .close-button-default":{transform:"scale(0.7)"},".close-button-default::before, .close-button-default::after":{content:'""',position:"absolute",width:"var(---close-button-thickness, 0.1em)",height:"100%",backgroundColor:`var(--close-button-color, ${d.aptechkaTheme.colorDark.var})`},".close-button-default::before":{transform:"rotate(-45deg)"},".close-button-default::after":{transform:"rotate(45deg)"}});exports.ModalElement=class extends g.PopoverElement{constructor(){super(),u(this,i,null),u(this,a,null),b.isBrowser&&(this.openShadow(C),s.element(this,{children:s.div({class:"inner",outside:!0,children:s.div({class:"content",children:[s.element("e-popover-button",{type:"close",target:this.id,class:"close-button",children:[s.slot({name:"close-button",children:s.span({class:"close-button-default"})})]}),s.slot()]}),ref:e=>f(this,a,e)})}),f(this,i,new ResizeObserver(()=>{l(this,a).scrollHeight>l(this,a).clientHeight?this.classList.add("overflow"):this.classList.remove("overflow")})))}connectedCallback(){super.connectedCallback(),l(this,i).observe(this)}disconnectedCallback(){super.disconnectedCallback(),l(this,i).disconnect()}};i=new WeakMap;a=new WeakMap;exports.ModalElement=y([v.define("e-modal")],exports.ModalElement);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { define as g } from "../custom-element/index.js";
|
|
2
2
|
import "../Store-JOKrNVEr.js";
|
|
3
3
|
import { i as w } from "../browser-0zX67oeU.js";
|
|
4
|
-
import { e as d, D as f, ax as u, aA as _ } from "../tags-
|
|
5
|
-
import { c as y } from "../createStylesheet-
|
|
4
|
+
import { e as d, D as f, ax as u, aA as _ } from "../tags-DSmoyoPZ.js";
|
|
5
|
+
import { c as y } from "../createStylesheet-CYZlwj0H.js";
|
|
6
6
|
import { PopoverElement as C } from "../popover/index.js";
|
|
7
7
|
import { aptechkaTheme as h } from "../theme/index.js";
|
|
8
8
|
var k = Object.defineProperty, x = Object.getOwnPropertyDescriptor, z = (t, e, o, r) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./withCurrentComponent-
|
|
1
|
+
"use strict";const o=require("./withCurrentComponent-BDsFmjJ9.cjs");function e(n){o.withCurrentComponent(t=>{t.addConnectCallback(n)})}exports.onConnect=e;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { PopoverElement } from './PopoverElement';
|
|
2
1
|
import { AbstractButtonElement } from '../abstract-elements';
|
|
2
|
+
import { PopoverElement } from './PopoverElement';
|
|
3
|
+
|
|
3
4
|
export type PopoverButtonType = 'open' | 'close' | 'toggle';
|
|
4
5
|
export declare class PopoverButtonElement extends AbstractButtonElement {
|
|
5
6
|
#private;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Attribute } from '../attribute';
|
|
2
|
-
import { CustomElement } from '../custom-element';
|
|
3
1
|
import { Store } from '../store';
|
|
2
|
+
import { CustomElement } from '../custom-element';
|
|
3
|
+
import { Attribute } from '../attribute';
|
|
4
|
+
|
|
4
5
|
export declare class PopoverElement extends CustomElement {
|
|
5
6
|
#private;
|
|
6
7
|
private static __opened;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var X=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n);var z=(n,t,s)=>{if(!t.has(n))throw TypeError("Cannot "+s)};var e=(n,t,s)=>(z(n,t,"read from private field"),s?s.call(n):t.get(n)),o=(n,t,s)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,s)},r=(n,t,s,i)=>(z(n,t,"write to private field"),i?i.call(n,s):t.set(n,s),s);var F=(n,t,s)=>(z(n,t,"access private method"),s);var B=(n,t,s)=>new Promise((i,f)=>{var h=u=>{try{d(s.next(u))}catch(T){f(T)}},a=u=>{try{d(s.throw(u))}catch(T){f(T)}},d=u=>u.done?i(u.value):Promise.resolve(u.value).then(h,a);d((s=s.apply(n,t)).next())});var G=(n,t,s)=>(t=n[X("asyncIterator")])?t.call(n):(n=n[X("iterator")](),t={},s=(i,f)=>(f=n[i])&&(t[i]=h=>new Promise((a,d,u)=>(h=f.call(n,h),u=h.done,Promise.resolve(h.value).then(T=>a({value:T,done:u}),d)))),s("next"),s("return"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const et=require("urlpattern-polyfill"),st=require("../notifier/index.cjs"),_=require("../browser-CpzFX2xg.cjs"),it=require("../function-MthRj-GJ.cjs");require("../Store-D0_rDIsE.cjs");const Z=require("../object-BZELAoVj.cjs"),nt=require("../instantiate-
|
|
1
|
+
"use strict";var X=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n);var z=(n,t,s)=>{if(!t.has(n))throw TypeError("Cannot "+s)};var e=(n,t,s)=>(z(n,t,"read from private field"),s?s.call(n):t.get(n)),o=(n,t,s)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,s)},r=(n,t,s,i)=>(z(n,t,"write to private field"),i?i.call(n,s):t.set(n,s),s);var F=(n,t,s)=>(z(n,t,"access private method"),s);var B=(n,t,s)=>new Promise((i,f)=>{var h=u=>{try{d(s.next(u))}catch(T){f(T)}},a=u=>{try{d(s.throw(u))}catch(T){f(T)}},d=u=>u.done?i(u.value):Promise.resolve(u.value).then(h,a);d((s=s.apply(n,t)).next())});var G=(n,t,s)=>(t=n[X("asyncIterator")])?t.call(n):(n=n[X("iterator")](),t={},s=(i,f)=>(f=n[i])&&(t[i]=h=>new Promise((a,d,u)=>(h=f.call(n,h),u=h.done,Promise.resolve(h.value).then(T=>a({value:T,done:u}),d)))),s("next"),s("return"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const et=require("urlpattern-polyfill"),st=require("../notifier/index.cjs"),_=require("../browser-CpzFX2xg.cjs"),it=require("../function-MthRj-GJ.cjs");require("../Store-D0_rDIsE.cjs");const Z=require("../object-BZELAoVj.cjs"),nt=require("../instantiate-D63dC3Vr.cjs");var b,O,R,m,l,v,S,p,P,y,I,$;class rt{constructor(t,s){o(this,I);o(this,b,void 0);o(this,O,void 0);o(this,R,void 0);o(this,m,void 0);o(this,l,void 0);o(this,v,void 0);o(this,S,void 0);o(this,p,null);o(this,P,[]);o(this,y,[]);r(this,b,t),r(this,O,s),r(this,R,new URLPattern({pathname:e(this,b)})),r(this,m,null),r(this,l,null),r(this,v,!1),r(this,S,null),_.isBrowser&&r(this,p,new MutationObserver(i=>{i[0].addedNodes.forEach(h=>{e(this,m)?e(this,y).push(h):e(this,P).push(h)})}))}get pattern(){return e(this,b)}get urlPattern(){return e(this,R)}get isActive(){return e(this,v)}get element(){return e(this,l)}get nest(){return e(this,S)}testPathname(t){return this.urlPattern.test({pathname:t})}render(t,s){return B(this,null,function*(){var i,f;if(e(this,p).observe(document.head,{childList:!0,subtree:!0}),e(this,m))e(this,P).forEach(h=>{document.head.appendChild(h)});else{const h=yield e(this,O).call(this);if(r(this,y,[...e(this,P)]),typeof h.default=="function"&&(r(this,m,h.default),Z.isESClass(h.default))){const a="e-"+((i=e(this,m))==null?void 0:i.name.toLowerCase());customElements.get(a)||customElements.define(a,h.default)}}if(yield F(this,I,$).call(this),e(this,m)){const h=e(this,R).exec({pathname:s}),a=(h==null?void 0:h.pathname.groups)||{},d=Object.fromEntries(new URLSearchParams(location.search)),u={pathnameParams:a,searchParams:d};Z.isESClass(e(this,m))?r(this,l,new(e(this,m))(u)):r(this,l,nt.instantiate(e(this,m),u)),t.appendChild(e(this,l)),r(this,S,e(this,l).querySelector("[data-nest]")||((f=e(this,l).shadowRoot)==null?void 0:f.querySelector("[data-nest]"))||e(this,l).shadowRoot||e(this,l)),r(this,v,!0)}e(this,p).disconnect()})}close(){var t;e(this,p).disconnect(),(t=e(this,l))==null||t.remove(),r(this,v,!1),e(this,y).forEach(s=>document.head.removeChild(s)),r(this,y,[])}getAnchorElements(){var s;let t=[];return e(this,l)&&(t=[...e(this,l).querySelectorAll("a")]),(s=e(this,l))!=null&&s.shadowRoot&&(t=[...t,...e(this,l).shadowRoot.querySelectorAll("a")]),t}}b=new WeakMap,O=new WeakMap,R=new WeakMap,m=new WeakMap,l=new WeakMap,v=new WeakMap,S=new WeakMap,p=new WeakMap,P=new WeakMap,y=new WeakMap,I=new WeakSet,$=function(){return B(this,null,function*(){const t=e(this,P).filter(a=>a instanceof HTMLElement?a.tagName==="STYLE"||a.tagName==="SCRIPT"||a.tagName==="LINK":!1);try{for(var s=G(t),i,f,h;i=!(f=yield s.next()).done;i=!1){const a=f.value;yield new Promise(d=>{a.onload=()=>{d()}})}}catch(f){h=[f]}finally{try{i&&(f=s.return)&&(yield f.call(s))}finally{if(h)throw h[0]}}})};var H,g,A,U,j;class ot{constructor(t,s){o(this,H,void 0);o(this,g,void 0);o(this,A,void 0);o(this,U,void 0);o(this,j,t=>{t.preventDefault(),e(this,H).navigate(e(this,A),e(this,U))});r(this,H,t),r(this,g,s),r(this,A,e(this,g).getAttribute("href")||"/"),r(this,U,e(this,g).getAttribute("data-history-action")||"push"),e(this,g).addEventListener("click",e(this,j)),location.pathname===e(this,A)&&e(this,g).classList.add("current")}destroy(){e(this,g).removeEventListener("click",e(this,j)),e(this,g).classList.remove("current")}}H=new WeakMap,g=new WeakMap,A=new WeakMap,U=new WeakMap,j=new WeakMap;globalThis.URLPattern=et.URLPattern;var q,k,w,C,M,E,N,x,D,K,tt,W;const Y=class Y{constructor(t){o(this,K);o(this,q,null);o(this,k,void 0);o(this,w,[]);o(this,C,null);o(this,M,[]);o(this,E,void 0);o(this,N,null);o(this,x,new st.Notifier);o(this,D,it.debounce(()=>{const t=s=>s.split("/").length;r(this,w,e(this,w).sort((s,i)=>t(s.pattern)-t(i.pattern))),this.navigate(location.pathname.replace(e(this,k),""))},0));o(this,W,t=>{t.state&&this.navigate(t.state,"none")});r(this,k,(t==null?void 0:t.base)||""),Y.active=this,_.isBrowser&&(r(this,q,(t==null?void 0:t.rootElement)||document.body),addEventListener("popstate",e(this,W)))}get currentPathname(){return e(this,N)}get candidatePathname(){return e(this,E)}get routes(){return e(this,w)}navigationEvent(t){return e(this,x).subscribe(t)}defineRoute(t,s){const i=new rt(t,s);e(this,w).push(i),e(this,D).call(this)}navigate(t,s="push"){return B(this,null,function*(){var u,Q;if(e(this,E)===t||e(this,N)===t)return;Y.active=this,r(this,E,t);const i=e(this,w).filter(c=>c.isActive),f=e(this,w).filter(c=>!i.includes(c)&&c.testPathname(t)),h=i.filter(c=>!c.testPathname(t)),a=i.filter(c=>c.testPathname(t));let d=!0;if(this.preprocessor)try{yield new Promise((c,L)=>{var V;(V=this.preprocessor)==null||V.call(this,{pathname:t,resolve:c,reject:L})})}catch(c){c?console.error(c):console.log("Route change canceled"),d=!1}if(d&&e(this,E)===t){r(this,C,a[a.length-1]),h.forEach(L=>{L.close()}),r(this,N,t);try{for(var T=G(f),ct,lt,ut;ct=!(lt=yield T.next()).done;ct=!1){const L=lt.value;yield L.render(((u=e(this,C))==null?void 0:u.nest)||e(this,q),t),r(this,C,L)}}catch(lt){ut=[lt]}finally{try{ct&&(lt=T.return)&&(yield lt.call(T))}finally{if(ut)throw ut[0]}}const c=e(this,k)+t+location.search;s==="push"?history.pushState(c,"",c):s==="replace"&&history.replaceState(c,"",c),F(this,K,tt).call(this),(Q=this.postprocessor)==null||Q.call(this,{pathname:t}),e(this,x).notify({pathname:t})}})}};q=new WeakMap,k=new WeakMap,w=new WeakMap,C=new WeakMap,M=new WeakMap,E=new WeakMap,N=new WeakMap,x=new WeakMap,D=new WeakMap,K=new WeakSet,tt=function(){const t=e(this,w).filter(i=>i.isActive),s=Array.from(new Set([...e(this,q).querySelectorAll("a"),...t.map(i=>i.getAnchorElements()).flat()].filter(i=>{var f;return(f=i.getAttribute("href"))==null?void 0:f.startsWith("/")})));e(this,M).forEach(i=>{i.destroy()}),r(this,M,s.map(i=>new ot(this,i)))},W=new WeakMap;let J=Y;exports.Router=J;
|
|
@@ -32,7 +32,7 @@ import { i as Z } from "../browser-0zX67oeU.js";
|
|
|
32
32
|
import { d as it } from "../function-C10DGppn.js";
|
|
33
33
|
import "../Store-JOKrNVEr.js";
|
|
34
34
|
import { i as V } from "../object-R34VLqhp.js";
|
|
35
|
-
import { i as nt } from "../instantiate-
|
|
35
|
+
import { i as nt } from "../instantiate-CXUQ7AmI.js";
|
|
36
36
|
var R, U, b, m, l, w, A, v, P, E, B, _;
|
|
37
37
|
class rt {
|
|
38
38
|
constructor(t, s) {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Damped } from '../animation';
|
|
2
|
-
import { Attribute } from '../attribute';
|
|
3
|
-
import { CustomElement } from '../custom-element';
|
|
4
|
-
import { Store } from '../store';
|
|
5
1
|
import { Axes2D } from '../utils';
|
|
2
|
+
import { Store } from '../store';
|
|
3
|
+
import { CustomElement } from '../custom-element';
|
|
4
|
+
import { Attribute } from '../attribute';
|
|
5
|
+
import { Damped } from '../animation';
|
|
6
|
+
|
|
6
7
|
export type ScrollBehaviour = 'smooth' | 'instant';
|
|
7
8
|
export declare class ScrollElement extends CustomElement {
|
|
8
9
|
#private;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CustomElement } from '../custom-element';
|
|
2
1
|
import { ScrollElement } from './ScrollElement';
|
|
2
|
+
import { CustomElement } from '../custom-element';
|
|
3
|
+
|
|
3
4
|
export declare class ScrollUserElement extends CustomElement {
|
|
4
5
|
#private;
|
|
5
6
|
get scrollElement(): ScrollElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Ct=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var h=(i,e,s)=>(Ct(i,e,"read from private field"),s?s.call(i):e.get(i)),T=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},R=(i,e,s,r)=>(Ct(i,e,"write to private field"),r?r.call(i,s):e.set(i,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $t=require("../Damped-BvkThM-2.cjs"),Tt=require("../Store-D0_rDIsE.cjs"),Dt=require("../Derived-SjPdLJiZ.cjs"),Pt=require("../browser-CpzFX2xg.cjs"),H=require("../layout-8ryRAMGJ.cjs"),zt=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const x=require("../attribute/index.cjs"),At=require("../WheelControls-CctFwJwY.cjs"),wt=require("../custom-element/index.cjs"),yt=require("../order/index.cjs"),dt=require("../window-resizer/index.cjs"),B=require("../scroll-entries/index.cjs"),V=require("../tags-DX-eNxbA.cjs"),Lt=require("../createStylesheet-C0OnN0Br.cjs"),It=require("../css-unit-parser/index.cjs"),Ht=require("../dom-qY2LdCVL.cjs");var Bt=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,Ut=(i,e,s,r)=>{for(var n=r>1?void 0:r?Ft(e,s):e,p=i.length-1,f;p>=0;p--)(f=i[p])&&(n=(r?f(e,s,n):f(n))||n);return r&&n&&Bt(e,s,n),n},kt=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(kt(i,e,"read from private field"),s?s.call(i):e.get(i)),l=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},g=(i,e,s,r)=>(kt(i,e,"write to private field"),r?r.call(i,s):e.set(i,s),s),m=(i,e,s)=>(kt(i,e,"access private method"),s),a,C,D,q,I,j,y,G,tt,et,u,ft,c,st,it,S,d,z,k,F,w,K,O,N,gt,U,Q,mt,Wt,bt,Mt,rt,St,nt,_t,$,vt,Et,Rt,ht,lt,xt,_,b,L,W;class Gt{constructor(e,s){T(this,_,void 0);T(this,b,void 0);T(this,L,0);T(this,W,0);R(this,_,e),R(this,b,s),B.scrollEntries.register(h(this,_))}get size(){return h(this,L)}get position(){return h(this,W)}destroy(){B.scrollEntries.unregister(h(this,_)),h(this,_).style.transform=""}resize(){R(this,L,h(this,b).vertical?h(this,_).offsetHeight:h(this,_).offsetWidth),R(this,W,h(this,b).vertical?H.getCumulativeOffsetTop(h(this,_)):H.getCumulativeOffsetLeft(h(this,_))),R(this,W,h(this,W)-h(this,b).contentPosition)}transform(){let e=0;const s=h(this,b).viewportSize-h(this,L);h(this,b).infiniteAttribute.current&&h(this,b).overscroll&&h(this,W)+h(this,L)<h(this,b).currentScrollValue&&(e=h(this,b).distance*-1-h(this,b).gap),B.scrollEntries.update(h(this,_),h(this,b).axisAttibute.current,e);const r=h(this,b).currentScrollValue+e,n=h(this,W)-h(this,b).viewportSize-s,p=h(this,W)+h(this,L)+s,f=zt.clamp(r,n,p);h(this,b).vertical?h(this,_).style.transform=`translate3d(0px, ${f*-1}px, 0px)`:h(this,_).style.transform=`translate3d(${f*-1}px, 0px, 0px)`}}_=new WeakMap,b=new WeakMap,L=new WeakMap,W=new WeakMap;const Kt=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",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 wt.CustomElement{constructor(){super(),l(this,N),l(this,U),l(this,mt),l(this,bt),l(this,rt),l(this,nt),l(this,Et),l(this,lt),l(this,a,null),l(this,C,new x.Attribute(this,"axis","y")),l(this,D,new x.Attribute(this,"pages",0,{validate:e=>Math.max(0,e-1)})),l(this,q,new x.Attribute(this,"split",!1)),l(this,I,new x.Attribute(this,"sectional",!1)),l(this,j,new x.Attribute(this,"wheel-max-delta",!1)),l(this,y,new x.Attribute(this,"infinite",!1)),l(this,G,new x.Attribute(this,"damping",.03)),l(this,tt,new x.Attribute(this,"disabled",!1)),l(this,et,new x.Attribute(this,"hibernated",!1)),l(this,u,null),l(this,ft,null),l(this,c,[]),l(this,st,0),l(this,it,0),l(this,S,0),l(this,d,0),l(this,z,0),l(this,k,null),l(this,F,null),l(this,w,new Tt.Store(0)),l(this,K,0),l(this,O,0),l(this,$,()=>{const e=this.currentScrollValue/t(this,d)||0;if(g(this,st,this.vertical?H.getCumulativeOffsetTop(this):H.getCumulativeOffsetLeft(this)),g(this,it,this.vertical?H.getCumulativeOffsetTop(t(this,u)):H.getCumulativeOffsetLeft(t(this,u))),g(this,S,this.vertical?this.offsetHeight:this.offsetWidth),t(this,D).current){g(this,d,t(this,S)*t(this,D).current);const s=t(this,d)+t(this,S);this.vertical?(t(this,u).style.width=s+"px",t(this,u).style.height="100%"):(t(this,u).style.height=s+"px",t(this,u).style.width="100%")}else this.vertical?(t(this,u).style.width="100%",t(this,u).style.height="max-content",g(this,d,t(this,u).offsetHeight-t(this,S))):(t(this,u).style.width="max-content",t(this,u).style.height="100%",g(this,d,t(this,u).offsetWidth-t(this,S)));if(g(this,z,It.cssUnitParser.parse(getComputedStyle(t(this,u)).gap)),!t(this,y).current){const s=getComputedStyle(this);g(this,d,t(this,d)+(this.vertical?parseFloat(s.paddingBlockStart)+parseFloat(s.paddingBlockEnd):parseFloat(s.paddingInlineStart)+parseFloat(s.paddingInlineEnd))),t(this,a).max=t(this,d)}if(t(this,c).forEach(s=>{s.resize(),s.transform()}),t(this,y).current&&t(this,c).length){const s=t(this,c)[t(this,c).length-1],r=s.position+s.size-t(this,S),n=t(this,d)-r;g(this,O,s.position+s.size+n)}else g(this,O,t(this,d));if(t(this,I).current&&t(this,c).length){const s=t(this,c)[t(this,w).current];t(this,a).set(s.position,!0)}else t(this,a).set(e*t(this,d),!0)}),l(this,vt,()=>{const e=this.currentScrollValue;if(g(this,K,Math.max(0,e-t(this,d))),t(this,c).length){let s=0;for(let r=0;r<t(this,c).length;r++){const n=t(this,c)[r];n.transform(),this.targetScrollValue+this.viewportSize/2>=n.position&&(s=r)}t(this,w).current=s}else this.vertical?t(this,u).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,u).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;B.scrollEntries.update(this,t(this,C).current,e)}),l(this,ht,e=>{if(typeof e=="number")if(t(this,I).current){const s=Math.sign(e);t(this,c).length?this.shiftSections(s):t(this,a).shift(s*t(this,S))}else t(this,a).shift(e);else e==="min"?t(this,a).set(t(this,a).min):e==="max"&&t(this,a).set(t(this,a).length)}),Pt.isBrowser&&(g(this,a,new $t.Damped(0,{damping:.01,min:0,order:yt.TICK_ORDER.SCROLL})),this.openShadow(Kt),V.element(this,{tabIndex:0,children:[V.div({class:"static",children:[V.slot({name:"static"})]}),V.div({class:"content",children:[V.slot({ref:e=>g(this,ft,e)})],style:{flexDirection:new Dt.Derived(t(this,C),e=>e==="x"?"row":"column")},ref:e=>g(this,u,e)})]}),g(this,k,new At.WheelControls({element:this})),t(this,k).changeEvent.subscribe(t(this,ht)),g(this,F,new At.KeyboardControls({element:this})),t(this,F).changeEvent.subscribe(t(this,ht)),t(this,C).subscribe(({current:e})=>{t(this,u).style.flexDirection=e==="x"?"row":"column",t(this,k).axis=t(this,j).current?"max":e,this.isConnected&&t(this,$).call(this)}),t(this,j).subscribe(e=>{t(this,k).axis=e.current?"max":t(this,C).current}),t(this,D).subscribe(()=>{this.isConnected&&t(this,$).call(this)}),t(this,q).subscribe(({current:e})=>{this.isConnected&&(e?m(this,N,gt).call(this):m(this,U,Q).call(this))}),t(this,I).subscribe(e=>{t(this,w).current=0,t(this,k).debounce=e.current,t(this,a).reset(),this.isConnected&&(e.current&&!e.previous?m(this,N,gt).call(this):!e.current&&e.previous&&m(this,U,Q).call(this))}),t(this,y).subscribe(e=>{e.current?(this.isConnected&&(t(this,c).length||(t(this,q).current=!0)),t(this,c).length&&(t(this,a).max=1/0,t(this,a).min=-1/0)):(g(this,K,0),t(this,a).max=t(this,d),t(this,a).min=0)}),t(this,G).subscribe(e=>{t(this,a).damping=e.current}),t(this,tt).subscribe(e=>{e.current&&!e.previous?m(this,mt,Wt).call(this):!e.current&&e.previous&&m(this,bt,Mt).call(this)}),t(this,et).subscribe(e=>{e.current&&!e.previous?m(this,rt,St).call(this):!e.current&&e.previous&&m(this,nt,_t).call(this)}))}get dampingAttribute(){return t(this,G)}get axisAttibute(){return t(this,C)}get pagesAttibute(){return t(this,D)}get splitAttibute(){return t(this,q)}get sectionalAttibute(){return t(this,I)}get infiniteAttribute(){return t(this,y)}get dampingAttibute(){return t(this,G)}get disabledAttibute(){return t(this,tt)}get hibernatedAttibute(){return t(this,et)}get currentScrollValue(){return m(this,lt,xt).call(this,"current")}get targetScrollValue(){return m(this,lt,xt).call(this,"target")}get contentElement(){return t(this,u)}get position(){return t(this,st)}get contentPosition(){return t(this,it)}get viewportSize(){return t(this,S)}get scrollSize(){return t(this,d)}get gap(){return t(this,z)}get counter(){return t(this,w)}get distance(){return t(this,O)}get overscroll(){return t(this,K)}get vertical(){return t(this,C).current==="y"}get currentProgress(){return this.currentScrollValue/t(this,O)||0}get targetProgress(){return this.targetScrollValue/t(this,O)||0}get speed(){return t(this,a).speed}get direction(){return t(this,a).direction}get isRunning(){return t(this,a).isRunning}onScroll(...e){return t(this,a).subscribe(...e)}offScroll(...e){t(this,a).unsubscribe(...e)}get context(){return{currentScrollValue:this.currentScrollValue,targetScrollValue:this.targetScrollValue,contentElement:this.contentElement,position:this.position,contentPosition:this.contentPosition,viewportSize:this.viewportSize,scrollSize:this.scrollSize,gap:this.gap,counter:this.counter,distance:this.distance,overscroll:this.overscroll,vertical:this.vertical,currentProgress:this.currentProgress,targetProgress:this.targetProgress,speed:this.speed,direction:this.direction,isRunning:this.isRunning,range:this.range,curve:this.curve,visible:this.visible}}range(e,s,r=0){const n=e-r,p=n+s+r*2;return this.currentProgress<n?0:this.currentProgress>p?1:(this.currentProgress-n)/(p-n)}curve(e,s,r=0){return Math.sin(this.range(e,s,r)*Math.PI)}visible(e,s,r=0){const n=e-r,p=n+s+r*2;return this.currentProgress>=n&&this.currentProgress<=p}scrollToSection(e,s="smooth"){if(!t(this,c).length)return;const r=t(this,w).current;m(this,Et,Rt).call(this,e);const n=t(this,c)[r],p=t(this,c)[t(this,w).current];if(n&&p){let f=0;const Y=t(this,c).length-1;t(this,y).current?t(this,w).current===0&&r===Y?f=t(this,d)+t(this,S)-n.position+t(this,z):t(this,w).current===Y&&r===0?f=p.position-(t(this,d)+t(this,S)+t(this,z)):f=p.position-n.position:f=p.position-n.position,t(this,a).shift(f,s==="instant")}}shiftSections(e,s="smooth"){t(this,c).length&&this.scrollToSection(t(this,w).current+e,s)}setPosition(e,s="smooth"){t(this,a).set(e,s==="instant")}connectedCallback(){m(this,nt,_t).call(this)}disconnectedCallback(){m(this,rt,St).call(this)}};a=new WeakMap;C=new WeakMap;D=new WeakMap;q=new WeakMap;I=new WeakMap;j=new WeakMap;y=new WeakMap;G=new WeakMap;tt=new WeakMap;et=new WeakMap;u=new WeakMap;ft=new WeakMap;c=new WeakMap;st=new WeakMap;it=new WeakMap;S=new WeakMap;d=new WeakMap;z=new WeakMap;k=new WeakMap;F=new WeakMap;w=new WeakMap;K=new WeakMap;O=new WeakMap;N=new WeakSet;gt=function(){m(this,U,Q).call(this),t(this,ft).assignedElements().forEach(i=>{i instanceof HTMLElement&&t(this,c).push(new Gt(i,this))}),t(this,u).style.transform="",t(this,$).call(this)};U=new WeakSet;Q=function(){t(this,c).forEach(i=>{i.destroy()}),g(this,c,[])};mt=new WeakSet;Wt=function(){t(this,a).unsubscribe(t(this,vt)),t(this,a).stopAnimation(),t(this,k).disconnect(),t(this,F).disconnect()};bt=new WeakSet;Mt=function(){t(this,a).subscribe(t(this,vt)),t(this,k).connect(),t(this,F).connect()};rt=new WeakSet;St=function(){dt.windowResizer.unsubscribe(t(this,$)),t(this,a).reset(),m(this,mt,Wt).call(this),t(this,u).style.transform="",t(this,q).current&&m(this,U,Q).call(this),B.scrollEntries.unregister(this)};nt=new WeakSet;_t=function(){t(this,q).current&&m(this,N,gt).call(this),B.scrollEntries.register(this),dt.windowResizer.subscribe(t(this,$),yt.RESIZE_ORDER.SCROLL),m(this,bt,Mt).call(this)};$=new WeakMap;vt=new WeakMap;Et=new WeakSet;Rt=function(i){t(this,y).current?(t(this,w).current=i%t(this,c).length,t(this,w).current=t(this,w).current<0?t(this,c).length+t(this,w).current:t(this,w).current):t(this,w).current=zt.clamp(i,0,t(this,c).length-1)};ht=new WeakMap;lt=new WeakSet;xt=function(i="current"){if(t(this,y).current&&t(this,c).length){const e=t(this,a)[i]%(t(this,d)+t(this,S)+t(this,z));return e<0?t(this,d)+e+t(this,S)+t(this,z):e}else return t(this,a)[i]};exports.ScrollElement=Ut([wt.define("e-scroll")],exports.ScrollElement);var X;class Zt extends wt.CustomElement{constructor(){super(...arguments);T(this,X,null)}get scrollElement(){return h(this,X)}connectedCallback(){const s=Ht.findParentElement(this,exports.ScrollElement);s instanceof exports.ScrollElement?R(this,X,s):console.error(this,"e-scroll not found")}}X=new WeakMap;var Jt=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,Qt=(i,e,s,r)=>{for(var n=r>1?void 0:r?Nt(e,s):e,p=i.length-1,f;p>=0;p--)(f=i[p])&&(n=(r?f(e,s,n):f(n))||n);return r&&n&&Jt(e,s,n),n},Ot=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},o=(i,e,s)=>(Ot(i,e,"read from private field"),s?s.call(i):e.get(i)),E=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},M=(i,e,s,r)=>(Ot(i,e,"write to private field"),r?r.call(i,s):e.set(i,s),s),ot,v,A,P,Z,J,at,ct,ut,pt;const Xt=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 Zt{constructor(){super(),E(this,ot,null),E(this,v,null),E(this,A,!1),E(this,P,0),E(this,Z,0),E(this,J,0),E(this,at,()=>{M(this,A,this.offsetWidth>this.offsetHeight);const e=o(this,A)?this.offsetWidth:this.offsetHeight;M(this,P,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),M(this,P,Math.max(o(this,P),30)),o(this,A)?(o(this,v).style.width=o(this,P)+"px",o(this,v).style.height="100%"):(o(this,v).style.width="100%",o(this,v).style.height=o(this,P)+"px"),M(this,Z,e-o(this,P)),this.scrollElement.scrollSize||(this.style.display="none")}),E(this,ct,()=>{M(this,J,this.scrollElement.currentProgress*o(this,Z)),o(this,A)?o(this,v).style.transform=`translate3d(${o(this,J)}px, 0px, 0px)`:o(this,v).style.transform=`translate3d(0px, ${o(this,J)}px, 0px)`}),E(this,ut,()=>{this.setAttribute("axis",this.scrollElement.axisAttibute.current)}),E(this,pt,e=>{const s=f=>{const Y=o(this,A)?f.x:f.y,Vt=this.scrollElement.distance/o(this,Z),qt=(Y-p)*Vt;this.scrollElement.setPosition(n+qt)},r=()=>{removeEventListener("pointermove",s),removeEventListener("pointerup",r),removeEventListener("touchend",r)};addEventListener("pointermove",s),addEventListener("pointerup",r),addEventListener("touchend",r);const n=this.scrollElement.targetScrollValue,p=o(this,A)?e.x:e.y}),Pt.isBrowser&&(this.openShadow(Xt),V.element(this,{children:[V.slot({ref:e=>M(this,ot,e)})]}))}get thumbElement(){return o(this,v)}connectedCallback(){super.connectedCallback();const e=o(this,ot).assignedElements()[0];e instanceof HTMLElement?M(this,v,e):(M(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,pt)),dt.windowResizer.subscribe(o(this,at),yt.RESIZE_ORDER.SCROLL+1),this.scrollElement.onScroll(o(this,ct)),this.scrollElement.axisAttibute.subscribe(o(this,ut))}disconnectedCallback(){o(this,v).removeEventListener("pointerdown",o(this,pt)),dt.windowResizer.unsubscribe(o(this,at)),this.scrollElement.offScroll(o(this,ct)),this.scrollElement.axisAttibute.unsubscribe(o(this,ut))}};ot=new WeakMap;v=new WeakMap;A=new WeakMap;P=new WeakMap;Z=new WeakMap;J=new WeakMap;at=new WeakMap;ct=new WeakMap;ut=new WeakMap;pt=new WeakMap;exports.ScrollbarElement=Qt([wt.define("e-scrollbar")],exports.ScrollbarElement);
|
|
1
|
+
"use strict";var Ct=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var h=(i,e,s)=>(Ct(i,e,"read from private field"),s?s.call(i):e.get(i)),T=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},R=(i,e,s,r)=>(Ct(i,e,"write to private field"),r?r.call(i,s):e.set(i,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $t=require("../Damped-BvkThM-2.cjs"),Tt=require("../Store-D0_rDIsE.cjs"),Dt=require("../Derived-SjPdLJiZ.cjs"),Pt=require("../browser-CpzFX2xg.cjs"),H=require("../layout-8ryRAMGJ.cjs"),zt=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const x=require("../attribute/index.cjs"),At=require("../WheelControls-CctFwJwY.cjs"),wt=require("../custom-element/index.cjs"),yt=require("../order/index.cjs"),dt=require("../window-resizer/index.cjs"),B=require("../scroll-entries/index.cjs"),V=require("../tags-Di21YbUL.cjs"),Lt=require("../createStylesheet-De-6zF24.cjs"),It=require("../css-unit-parser/index.cjs"),Ht=require("../dom-qY2LdCVL.cjs");var Bt=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,Ut=(i,e,s,r)=>{for(var n=r>1?void 0:r?Ft(e,s):e,p=i.length-1,f;p>=0;p--)(f=i[p])&&(n=(r?f(e,s,n):f(n))||n);return r&&n&&Bt(e,s,n),n},kt=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(kt(i,e,"read from private field"),s?s.call(i):e.get(i)),l=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},g=(i,e,s,r)=>(kt(i,e,"write to private field"),r?r.call(i,s):e.set(i,s),s),m=(i,e,s)=>(kt(i,e,"access private method"),s),a,C,D,q,I,j,y,G,tt,et,u,ft,c,st,it,S,d,z,k,F,w,K,O,N,gt,U,Q,mt,Wt,bt,Mt,rt,St,nt,_t,$,vt,Et,Rt,ht,lt,xt,_,b,L,W;class Gt{constructor(e,s){T(this,_,void 0);T(this,b,void 0);T(this,L,0);T(this,W,0);R(this,_,e),R(this,b,s),B.scrollEntries.register(h(this,_))}get size(){return h(this,L)}get position(){return h(this,W)}destroy(){B.scrollEntries.unregister(h(this,_)),h(this,_).style.transform=""}resize(){R(this,L,h(this,b).vertical?h(this,_).offsetHeight:h(this,_).offsetWidth),R(this,W,h(this,b).vertical?H.getCumulativeOffsetTop(h(this,_)):H.getCumulativeOffsetLeft(h(this,_))),R(this,W,h(this,W)-h(this,b).contentPosition)}transform(){let e=0;const s=h(this,b).viewportSize-h(this,L);h(this,b).infiniteAttribute.current&&h(this,b).overscroll&&h(this,W)+h(this,L)<h(this,b).currentScrollValue&&(e=h(this,b).distance*-1-h(this,b).gap),B.scrollEntries.update(h(this,_),h(this,b).axisAttibute.current,e);const r=h(this,b).currentScrollValue+e,n=h(this,W)-h(this,b).viewportSize-s,p=h(this,W)+h(this,L)+s,f=zt.clamp(r,n,p);h(this,b).vertical?h(this,_).style.transform=`translate3d(0px, ${f*-1}px, 0px)`:h(this,_).style.transform=`translate3d(${f*-1}px, 0px, 0px)`}}_=new WeakMap,b=new WeakMap,L=new WeakMap,W=new WeakMap;const Kt=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",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 wt.CustomElement{constructor(){super(),l(this,N),l(this,U),l(this,mt),l(this,bt),l(this,rt),l(this,nt),l(this,Et),l(this,lt),l(this,a,null),l(this,C,new x.Attribute(this,"axis","y")),l(this,D,new x.Attribute(this,"pages",0,{validate:e=>Math.max(0,e-1)})),l(this,q,new x.Attribute(this,"split",!1)),l(this,I,new x.Attribute(this,"sectional",!1)),l(this,j,new x.Attribute(this,"wheel-max-delta",!1)),l(this,y,new x.Attribute(this,"infinite",!1)),l(this,G,new x.Attribute(this,"damping",.03)),l(this,tt,new x.Attribute(this,"disabled",!1)),l(this,et,new x.Attribute(this,"hibernated",!1)),l(this,u,null),l(this,ft,null),l(this,c,[]),l(this,st,0),l(this,it,0),l(this,S,0),l(this,d,0),l(this,z,0),l(this,k,null),l(this,F,null),l(this,w,new Tt.Store(0)),l(this,K,0),l(this,O,0),l(this,$,()=>{const e=this.currentScrollValue/t(this,d)||0;if(g(this,st,this.vertical?H.getCumulativeOffsetTop(this):H.getCumulativeOffsetLeft(this)),g(this,it,this.vertical?H.getCumulativeOffsetTop(t(this,u)):H.getCumulativeOffsetLeft(t(this,u))),g(this,S,this.vertical?this.offsetHeight:this.offsetWidth),t(this,D).current){g(this,d,t(this,S)*t(this,D).current);const s=t(this,d)+t(this,S);this.vertical?(t(this,u).style.width=s+"px",t(this,u).style.height="100%"):(t(this,u).style.height=s+"px",t(this,u).style.width="100%")}else this.vertical?(t(this,u).style.width="100%",t(this,u).style.height="max-content",g(this,d,t(this,u).offsetHeight-t(this,S))):(t(this,u).style.width="max-content",t(this,u).style.height="100%",g(this,d,t(this,u).offsetWidth-t(this,S)));if(g(this,z,It.cssUnitParser.parse(getComputedStyle(t(this,u)).gap)),!t(this,y).current){const s=getComputedStyle(this);g(this,d,t(this,d)+(this.vertical?parseFloat(s.paddingBlockStart)+parseFloat(s.paddingBlockEnd):parseFloat(s.paddingInlineStart)+parseFloat(s.paddingInlineEnd))),t(this,a).max=t(this,d)}if(t(this,c).forEach(s=>{s.resize(),s.transform()}),t(this,y).current&&t(this,c).length){const s=t(this,c)[t(this,c).length-1],r=s.position+s.size-t(this,S),n=t(this,d)-r;g(this,O,s.position+s.size+n)}else g(this,O,t(this,d));if(t(this,I).current&&t(this,c).length){const s=t(this,c)[t(this,w).current];t(this,a).set(s.position,!0)}else t(this,a).set(e*t(this,d),!0)}),l(this,vt,()=>{const e=this.currentScrollValue;if(g(this,K,Math.max(0,e-t(this,d))),t(this,c).length){let s=0;for(let r=0;r<t(this,c).length;r++){const n=t(this,c)[r];n.transform(),this.targetScrollValue+this.viewportSize/2>=n.position&&(s=r)}t(this,w).current=s}else this.vertical?t(this,u).style.transform=`translate3d(0px, ${e*-1}px, 0px)`:t(this,u).style.transform=`translate3d(${e*-1}px, 0px, 0px)`;B.scrollEntries.update(this,t(this,C).current,e)}),l(this,ht,e=>{if(typeof e=="number")if(t(this,I).current){const s=Math.sign(e);t(this,c).length?this.shiftSections(s):t(this,a).shift(s*t(this,S))}else t(this,a).shift(e);else e==="min"?t(this,a).set(t(this,a).min):e==="max"&&t(this,a).set(t(this,a).length)}),Pt.isBrowser&&(g(this,a,new $t.Damped(0,{damping:.01,min:0,order:yt.TICK_ORDER.SCROLL})),this.openShadow(Kt),V.element(this,{tabIndex:0,children:[V.div({class:"static",children:[V.slot({name:"static"})]}),V.div({class:"content",children:[V.slot({ref:e=>g(this,ft,e)})],style:{flexDirection:new Dt.Derived(t(this,C),e=>e==="x"?"row":"column")},ref:e=>g(this,u,e)})]}),g(this,k,new At.WheelControls({element:this})),t(this,k).changeEvent.subscribe(t(this,ht)),g(this,F,new At.KeyboardControls({element:this})),t(this,F).changeEvent.subscribe(t(this,ht)),t(this,C).subscribe(({current:e})=>{t(this,u).style.flexDirection=e==="x"?"row":"column",t(this,k).axis=t(this,j).current?"max":e,this.isConnected&&t(this,$).call(this)}),t(this,j).subscribe(e=>{t(this,k).axis=e.current?"max":t(this,C).current}),t(this,D).subscribe(()=>{this.isConnected&&t(this,$).call(this)}),t(this,q).subscribe(({current:e})=>{this.isConnected&&(e?m(this,N,gt).call(this):m(this,U,Q).call(this))}),t(this,I).subscribe(e=>{t(this,w).current=0,t(this,k).debounce=e.current,t(this,a).reset(),this.isConnected&&(e.current&&!e.previous?m(this,N,gt).call(this):!e.current&&e.previous&&m(this,U,Q).call(this))}),t(this,y).subscribe(e=>{e.current?(this.isConnected&&(t(this,c).length||(t(this,q).current=!0)),t(this,c).length&&(t(this,a).max=1/0,t(this,a).min=-1/0)):(g(this,K,0),t(this,a).max=t(this,d),t(this,a).min=0)}),t(this,G).subscribe(e=>{t(this,a).damping=e.current}),t(this,tt).subscribe(e=>{e.current&&!e.previous?m(this,mt,Wt).call(this):!e.current&&e.previous&&m(this,bt,Mt).call(this)}),t(this,et).subscribe(e=>{e.current&&!e.previous?m(this,rt,St).call(this):!e.current&&e.previous&&m(this,nt,_t).call(this)}))}get dampingAttribute(){return t(this,G)}get axisAttibute(){return t(this,C)}get pagesAttibute(){return t(this,D)}get splitAttibute(){return t(this,q)}get sectionalAttibute(){return t(this,I)}get infiniteAttribute(){return t(this,y)}get dampingAttibute(){return t(this,G)}get disabledAttibute(){return t(this,tt)}get hibernatedAttibute(){return t(this,et)}get currentScrollValue(){return m(this,lt,xt).call(this,"current")}get targetScrollValue(){return m(this,lt,xt).call(this,"target")}get contentElement(){return t(this,u)}get position(){return t(this,st)}get contentPosition(){return t(this,it)}get viewportSize(){return t(this,S)}get scrollSize(){return t(this,d)}get gap(){return t(this,z)}get counter(){return t(this,w)}get distance(){return t(this,O)}get overscroll(){return t(this,K)}get vertical(){return t(this,C).current==="y"}get currentProgress(){return this.currentScrollValue/t(this,O)||0}get targetProgress(){return this.targetScrollValue/t(this,O)||0}get speed(){return t(this,a).speed}get direction(){return t(this,a).direction}get isRunning(){return t(this,a).isRunning}onScroll(...e){return t(this,a).subscribe(...e)}offScroll(...e){t(this,a).unsubscribe(...e)}get context(){return{currentScrollValue:this.currentScrollValue,targetScrollValue:this.targetScrollValue,contentElement:this.contentElement,position:this.position,contentPosition:this.contentPosition,viewportSize:this.viewportSize,scrollSize:this.scrollSize,gap:this.gap,counter:this.counter,distance:this.distance,overscroll:this.overscroll,vertical:this.vertical,currentProgress:this.currentProgress,targetProgress:this.targetProgress,speed:this.speed,direction:this.direction,isRunning:this.isRunning,range:this.range,curve:this.curve,visible:this.visible}}range(e,s,r=0){const n=e-r,p=n+s+r*2;return this.currentProgress<n?0:this.currentProgress>p?1:(this.currentProgress-n)/(p-n)}curve(e,s,r=0){return Math.sin(this.range(e,s,r)*Math.PI)}visible(e,s,r=0){const n=e-r,p=n+s+r*2;return this.currentProgress>=n&&this.currentProgress<=p}scrollToSection(e,s="smooth"){if(!t(this,c).length)return;const r=t(this,w).current;m(this,Et,Rt).call(this,e);const n=t(this,c)[r],p=t(this,c)[t(this,w).current];if(n&&p){let f=0;const Y=t(this,c).length-1;t(this,y).current?t(this,w).current===0&&r===Y?f=t(this,d)+t(this,S)-n.position+t(this,z):t(this,w).current===Y&&r===0?f=p.position-(t(this,d)+t(this,S)+t(this,z)):f=p.position-n.position:f=p.position-n.position,t(this,a).shift(f,s==="instant")}}shiftSections(e,s="smooth"){t(this,c).length&&this.scrollToSection(t(this,w).current+e,s)}setPosition(e,s="smooth"){t(this,a).set(e,s==="instant")}connectedCallback(){m(this,nt,_t).call(this)}disconnectedCallback(){m(this,rt,St).call(this)}};a=new WeakMap;C=new WeakMap;D=new WeakMap;q=new WeakMap;I=new WeakMap;j=new WeakMap;y=new WeakMap;G=new WeakMap;tt=new WeakMap;et=new WeakMap;u=new WeakMap;ft=new WeakMap;c=new WeakMap;st=new WeakMap;it=new WeakMap;S=new WeakMap;d=new WeakMap;z=new WeakMap;k=new WeakMap;F=new WeakMap;w=new WeakMap;K=new WeakMap;O=new WeakMap;N=new WeakSet;gt=function(){m(this,U,Q).call(this),t(this,ft).assignedElements().forEach(i=>{i instanceof HTMLElement&&t(this,c).push(new Gt(i,this))}),t(this,u).style.transform="",t(this,$).call(this)};U=new WeakSet;Q=function(){t(this,c).forEach(i=>{i.destroy()}),g(this,c,[])};mt=new WeakSet;Wt=function(){t(this,a).unsubscribe(t(this,vt)),t(this,a).stopAnimation(),t(this,k).disconnect(),t(this,F).disconnect()};bt=new WeakSet;Mt=function(){t(this,a).subscribe(t(this,vt)),t(this,k).connect(),t(this,F).connect()};rt=new WeakSet;St=function(){dt.windowResizer.unsubscribe(t(this,$)),t(this,a).reset(),m(this,mt,Wt).call(this),t(this,u).style.transform="",t(this,q).current&&m(this,U,Q).call(this),B.scrollEntries.unregister(this)};nt=new WeakSet;_t=function(){t(this,q).current&&m(this,N,gt).call(this),B.scrollEntries.register(this),dt.windowResizer.subscribe(t(this,$),yt.RESIZE_ORDER.SCROLL),m(this,bt,Mt).call(this)};$=new WeakMap;vt=new WeakMap;Et=new WeakSet;Rt=function(i){t(this,y).current?(t(this,w).current=i%t(this,c).length,t(this,w).current=t(this,w).current<0?t(this,c).length+t(this,w).current:t(this,w).current):t(this,w).current=zt.clamp(i,0,t(this,c).length-1)};ht=new WeakMap;lt=new WeakSet;xt=function(i="current"){if(t(this,y).current&&t(this,c).length){const e=t(this,a)[i]%(t(this,d)+t(this,S)+t(this,z));return e<0?t(this,d)+e+t(this,S)+t(this,z):e}else return t(this,a)[i]};exports.ScrollElement=Ut([wt.define("e-scroll")],exports.ScrollElement);var X;class Zt extends wt.CustomElement{constructor(){super(...arguments);T(this,X,null)}get scrollElement(){return h(this,X)}connectedCallback(){const s=Ht.findParentElement(this,exports.ScrollElement);s instanceof exports.ScrollElement?R(this,X,s):console.error(this,"e-scroll not found")}}X=new WeakMap;var Jt=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,Qt=(i,e,s,r)=>{for(var n=r>1?void 0:r?Nt(e,s):e,p=i.length-1,f;p>=0;p--)(f=i[p])&&(n=(r?f(e,s,n):f(n))||n);return r&&n&&Jt(e,s,n),n},Ot=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},o=(i,e,s)=>(Ot(i,e,"read from private field"),s?s.call(i):e.get(i)),E=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},M=(i,e,s,r)=>(Ot(i,e,"write to private field"),r?r.call(i,s):e.set(i,s),s),ot,v,A,P,Z,J,at,ct,ut,pt;const Xt=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 Zt{constructor(){super(),E(this,ot,null),E(this,v,null),E(this,A,!1),E(this,P,0),E(this,Z,0),E(this,J,0),E(this,at,()=>{M(this,A,this.offsetWidth>this.offsetHeight);const e=o(this,A)?this.offsetWidth:this.offsetHeight;M(this,P,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),M(this,P,Math.max(o(this,P),30)),o(this,A)?(o(this,v).style.width=o(this,P)+"px",o(this,v).style.height="100%"):(o(this,v).style.width="100%",o(this,v).style.height=o(this,P)+"px"),M(this,Z,e-o(this,P)),this.scrollElement.scrollSize||(this.style.display="none")}),E(this,ct,()=>{M(this,J,this.scrollElement.currentProgress*o(this,Z)),o(this,A)?o(this,v).style.transform=`translate3d(${o(this,J)}px, 0px, 0px)`:o(this,v).style.transform=`translate3d(0px, ${o(this,J)}px, 0px)`}),E(this,ut,()=>{this.setAttribute("axis",this.scrollElement.axisAttibute.current)}),E(this,pt,e=>{const s=f=>{const Y=o(this,A)?f.x:f.y,Vt=this.scrollElement.distance/o(this,Z),qt=(Y-p)*Vt;this.scrollElement.setPosition(n+qt)},r=()=>{removeEventListener("pointermove",s),removeEventListener("pointerup",r),removeEventListener("touchend",r)};addEventListener("pointermove",s),addEventListener("pointerup",r),addEventListener("touchend",r);const n=this.scrollElement.targetScrollValue,p=o(this,A)?e.x:e.y}),Pt.isBrowser&&(this.openShadow(Xt),V.element(this,{children:[V.slot({ref:e=>M(this,ot,e)})]}))}get thumbElement(){return o(this,v)}connectedCallback(){super.connectedCallback();const e=o(this,ot).assignedElements()[0];e instanceof HTMLElement?M(this,v,e):(M(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,pt)),dt.windowResizer.subscribe(o(this,at),yt.RESIZE_ORDER.SCROLL+1),this.scrollElement.onScroll(o(this,ct)),this.scrollElement.axisAttibute.subscribe(o(this,ut))}disconnectedCallback(){o(this,v).removeEventListener("pointerdown",o(this,pt)),dt.windowResizer.unsubscribe(o(this,at)),this.scrollElement.offScroll(o(this,ct)),this.scrollElement.axisAttibute.unsubscribe(o(this,ut))}};ot=new WeakMap;v=new WeakMap;A=new WeakMap;P=new WeakMap;Z=new WeakMap;J=new WeakMap;at=new WeakMap;ct=new WeakMap;ut=new WeakMap;pt=new WeakMap;exports.ScrollbarElement=Qt([wt.define("e-scrollbar")],exports.ScrollbarElement);
|
|
@@ -20,8 +20,8 @@ import { CustomElement as Lt, define as Vt } from "../custom-element/index.js";
|
|
|
20
20
|
import { TICK_ORDER as Zt, RESIZE_ORDER as $t } from "../order/index.js";
|
|
21
21
|
import { windowResizer as ct } from "../window-resizer/index.js";
|
|
22
22
|
import { scrollEntries as H } from "../scroll-entries/index.js";
|
|
23
|
-
import { e as Ot, D as Ct, ax as bt } from "../tags-
|
|
24
|
-
import { c as Rt } from "../createStylesheet-
|
|
23
|
+
import { e as Ot, D as Ct, ax as bt } from "../tags-DSmoyoPZ.js";
|
|
24
|
+
import { c as Rt } from "../createStylesheet-CYZlwj0H.js";
|
|
25
25
|
import { cssUnitParser as qt } from "../css-unit-parser/index.js";
|
|
26
26
|
import { f as Jt } from "../dom-BY7JhTx5.js";
|
|
27
27
|
var Nt = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, Xt = (e, s, i, r) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CustomElement } from '../custom-element';
|
|
2
1
|
import { SelectElement } from './SelectElement';
|
|
2
|
+
import { CustomElement } from '../custom-element';
|
|
3
|
+
|
|
3
4
|
export declare class SelectUserElement extends CustomElement {
|
|
4
5
|
#private;
|
|
5
6
|
get selectElement(): SelectElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-CHamNqUl.cjs");Object.defineProperty(exports,"SelectElement",{enumerable:!0,get:()=>e.SelectElement});Object.defineProperty(exports,"SelectHeadElement",{enumerable:!0,get:()=>e.SelectHeadElement});Object.defineProperty(exports,"SelectOptionElement",{enumerable:!0,get:()=>e.SelectOptionElement});exports.SelectUserElement=e.SelectUserElement;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Word } from './Word.js';
|
|
2
|
-
import { Letter } from './Letter';
|
|
3
1
|
import { CustomElement } from '../custom-element';
|
|
2
|
+
import { Letter } from './Letter';
|
|
3
|
+
import { Word } from './Word.js';
|
|
4
|
+
|
|
4
5
|
export interface SlicerParameters {
|
|
5
6
|
wordConstructor?: typeof Word;
|
|
6
7
|
letterConstructor?: typeof Letter;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Store, StoreOptions } from './Store';
|
|
2
|
+
|
|
2
3
|
export type DerivedArrayCallback<StoreType, DerivedType> = (value: StoreType, index: number) => DerivedType;
|
|
3
4
|
export declare class DerivedArray<DerivedType, StoreType extends Array<any> = Array<any>> extends Store<DerivedType[]> {
|
|
4
5
|
#private;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Store, StoreOptions } from './Store';
|
|
2
|
+
|
|
2
3
|
export type ResourceFetcher<StoreType = unknown> = () => Promise<StoreType>;
|
|
3
4
|
export interface ResourceOptions<StoreType> extends StoreOptions<StoreType> {
|
|
4
5
|
manualControl?: boolean;
|
|
@@ -6,7 +7,7 @@ export interface ResourceOptions<StoreType> extends StoreOptions<StoreType> {
|
|
|
6
7
|
export declare class Resource<StoreType> extends Store<StoreType> {
|
|
7
8
|
#private;
|
|
8
9
|
constructor(defaultValue: StoreType, fetcher: ResourceFetcher<StoreType>, options?: ResourceOptions<StoreType>);
|
|
9
|
-
get isPending(): Store<boolean, keyof import(
|
|
10
|
+
get isPending(): Store<boolean, keyof import('./Store').StoreManagers, import('./Store').StoreEntry<boolean>>;
|
|
10
11
|
/**
|
|
11
12
|
* Calls fetcher again and sets isPending to true.
|
|
12
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../createStore-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../createStore-D61G4jpF.cjs"),o=require("../../Store-D0_rDIsE.cjs"),c=require("../../Derived-SjPdLJiZ.cjs"),t=require("../../Composed-Mdr4ZFbI.cjs");function n(...e){return r._createStore(new o.Store(...e))}function a(...e){return r._createStore(new c.Derived(...e))}function u(...e){return r._createStore(new t.DerivedArray(...e))}function i(...e){return r._createStore(new t.Composed(...e))}function d(...e){return r._createStore(new t.Resource(...e))}exports.createComposed=i;exports.createDerived=a;exports.createDerivedArray=u;exports.createResource=d;exports.createStore=n;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { StoreManagerType, StoreEntry, Store, Derived, DerivedArray, Composed, Resource } from '..';
|
|
2
|
+
|
|
2
3
|
export declare function createStore<StoreType = unknown, StoreManager extends StoreManagerType = StoreManagerType, Entry extends StoreEntry<StoreType> = StoreEntry<StoreType>>(...parameters: ConstructorParameters<typeof Store<StoreType, StoreManager, Entry>>): Store<StoreType, StoreManager, StoreEntry<StoreType>>;
|
|
3
4
|
export declare function createDerived<DerivedType, StoreType>(...parameters: ConstructorParameters<typeof Derived<DerivedType, StoreType>>): Derived<DerivedType, StoreType>;
|
|
4
5
|
export declare function createDerivedArray<DerivedType, StoreType extends Array<any> = Array<any>>(...parameters: ConstructorParameters<typeof DerivedArray<DerivedType, StoreType>>): DerivedArray<DerivedType, StoreType>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as r } from "../../createStore-
|
|
1
|
+
import { _ as r } from "../../createStore-BSUQyZjo.js";
|
|
2
2
|
import { S as t } from "../../Store-JOKrNVEr.js";
|
|
3
3
|
import { D as o } from "../../Derived-Bc88XJ8J.js";
|
|
4
4
|
import { D as n, C as a, R as c } from "../../Composed-ClTo1f0b.js";
|