aptechka 0.11.11 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{client-lib/Animation-uimN7sdT.js → lib/Animation-DF5jPON_.js} +23 -28
- package/lib/Animation-seVC6-fS.cjs +1 -0
- package/lib/Composed-ChlKoJEp.cjs +1 -0
- package/lib/Composed-CoX1ImVk.js +31 -0
- package/lib/Damped-BDO-F13V.js +53 -0
- package/lib/Damped-C7WAqKPh.cjs +1 -0
- package/lib/Derived-B-2UXnVE.cjs +1 -0
- package/lib/Derived-CDGpSMKu.js +56 -0
- package/{client-lib/SourceManager--L_rA28b.js → lib/SourceManager-B8-EMNnd.js} +26 -30
- package/lib/SourceManager-TzU9Rw08.cjs +1 -0
- package/lib/Store-BnA-dJsE.cjs +1 -0
- package/{client-lib/Store-Qr3SNOSf.js → lib/Store-DGtldlBH.js} +29 -34
- package/lib/Tweened-CHhmfvzo.js +44 -0
- package/lib/Tweened-DSXD0I0k.cjs +1 -0
- package/lib/Viewport-BmLTk_6k.cjs +1 -0
- package/lib/Viewport-DTlImj28.js +123 -0
- package/lib/accordion/index.cjs +1 -0
- package/lib/accordion/index.js +167 -0
- package/{client-lib → lib}/animation/index.cjs +1 -1
- package/lib/animation/index.js +8 -0
- package/lib/attribute/index.cjs +1 -0
- package/{client-lib → lib}/attribute/index.js +15 -20
- package/lib/canvas/index.cjs +1 -0
- package/lib/canvas/index.js +111 -0
- package/lib/checkbox/index.cjs +1 -0
- package/{client-lib → lib}/checkbox/index.js +20 -25
- package/lib/class-linked-status/index.cjs +1 -0
- package/lib/class-linked-status/index.js +45 -0
- package/lib/connector/index.cjs +1 -0
- package/{client-lib → lib}/connector/index.js +14 -18
- package/lib/controls/index.cjs +1 -0
- package/lib/controls/index.js +207 -0
- package/{client-lib/createStylesheet-BBBiyAsF.cjs → lib/createStylesheet-CaDI99iu.cjs} +1 -1
- package/{client-lib/createStylesheet-CE1yXWS_.js → lib/createStylesheet-DO5t5q-m.js} +1 -1
- package/lib/css-property/index.cjs +1 -0
- package/lib/css-property/index.js +58 -0
- package/lib/css-unit-parser/index.cjs +8 -0
- package/lib/css-unit-parser/index.js +31 -0
- package/{client-lib → lib}/dev/index.cjs +1 -1
- package/{client-lib → lib}/dev/index.js +1 -1
- package/{client-lib → lib}/device/index.cjs +1 -1
- package/{client-lib → lib}/device/index.js +1 -1
- package/lib/element-constructor/index.cjs +1 -0
- package/lib/element-constructor/index.js +124 -0
- package/lib/element-resizer/index.cjs +1 -0
- package/{client-lib → lib}/element-resizer/index.js +12 -16
- package/lib/en3/helpers/index.cjs +1 -0
- package/{client-lib → lib}/en3/helpers/index.js +612 -646
- package/{client-lib → lib}/en3/index.cjs +1 -1
- package/lib/en3/index.js +6 -0
- package/{client-lib → lib}/en3/libs/index.js +1 -2
- package/lib/en3/loaders/index.cjs +1 -0
- package/{client-lib → lib}/en3/loaders/index.js +152 -167
- package/lib/en3/misc/index.cjs +10 -0
- package/{client-lib → lib}/en3/misc/index.js +18 -23
- package/{client-lib → lib}/en3/utils/index.cjs +1 -1
- package/{client-lib → lib}/en3/utils/index.js +2 -2
- package/lib/en3-C1fLmsjs.cjs +8 -0
- package/{client-lib/en3-THFHEReu.js → lib/en3-x-Ki30MY.js} +59 -64
- package/{client-lib → lib}/image/index.cjs +1 -1
- package/{client-lib → lib}/image/index.js +1 -1
- package/{client-lib/index-D-RA8KFB.js → lib/index-BhbT9PrL.js} +35 -40
- package/lib/index-BpsQqM-8.cjs +9 -0
- package/lib/intersector/index.cjs +1 -0
- package/{client-lib → lib}/intersector/index.js +12 -16
- package/lib/ladder/index.cjs +1 -0
- package/{client-lib → lib}/ladder/index.js +20 -25
- package/lib/layout-box/index.cjs +1 -0
- package/lib/layout-box/index.js +318 -0
- package/lib/loading/index.cjs +1 -0
- package/{client-lib → lib}/loading/index.js +17 -21
- package/lib/media/index.cjs +1 -0
- package/lib/media/index.js +26 -0
- package/lib/modal/index.cjs +1 -0
- package/{client-lib → lib}/modal/index.js +22 -26
- package/lib/morph/index.cjs +1 -0
- package/lib/morph/index.js +225 -0
- package/lib/notifier/index.cjs +1 -0
- package/lib/notifier/index.js +36 -0
- package/lib/pointer/index.cjs +1 -0
- package/{client-lib → lib}/pointer/index.js +37 -41
- package/lib/popover/index.cjs +1 -0
- package/{client-lib → lib}/popover/index.js +71 -79
- package/lib/router/index.cjs +1 -0
- package/{client-lib → lib}/router/index.js +62 -71
- package/lib/scroll/index.cjs +1 -0
- package/lib/scroll/index.js +1131 -0
- package/lib/scroll-entries/index.cjs +1 -0
- package/{client-lib → lib}/scroll-entries/index.js +11 -15
- package/{client-lib → lib}/select/index.cjs +1 -1
- package/{client-lib → lib}/select/index.js +1 -1
- package/lib/sequence/index.cjs +1 -0
- package/{client-lib → lib}/sequence/index.js +26 -30
- package/lib/slicer/index.cjs +11 -0
- package/{client-lib → lib}/slicer/index.js +27 -31
- package/lib/source/index.cjs +5 -0
- package/{client-lib → lib}/source/index.js +19 -24
- package/lib/store/index.cjs +1 -0
- package/{client-lib → lib}/store/index.js +29 -33
- package/{client-lib → lib}/svg-path-data/index.js +3 -6
- package/lib/tags-4AoxVUe3.js +833 -0
- package/lib/tags-v-OSVkiQ.cjs +1 -0
- package/{client-lib → lib}/theme/index.cjs +1 -1
- package/{client-lib → lib}/theme/index.js +2 -2
- package/lib/ticker/index.cjs +1 -0
- package/lib/ticker/index.js +119 -0
- package/{client-lib/traverseMaterials-BtBXV88O.cjs → lib/traverseMaterials-CD_3_56D.cjs} +1 -1
- package/{client-lib/traverseMaterials-BKSwwNmo.js → lib/traverseMaterials-mGC2_FkG.js} +1 -1
- package/lib/tweaker/index.cjs +10 -0
- package/{client-lib → lib}/tweaker/index.js +270 -278
- package/{client-lib → lib}/utils/index.js +1 -2
- package/lib/video/index.cjs +1 -0
- package/{client-lib → lib}/video/index.js +13 -17
- package/lib/window-resizer/index.cjs +1 -0
- package/lib/window-resizer/index.js +42 -0
- package/package.json +351 -450
- package/client-lib/Animation-BInSRYNr.cjs +0 -1
- package/client-lib/Composed-Fa7owymK.js +0 -35
- package/client-lib/Composed-Iihn8fT4.cjs +0 -1
- package/client-lib/Damped-Da3EnNN4.cjs +0 -1
- package/client-lib/Damped-yrNXlkDE.js +0 -57
- package/client-lib/Derived-CNbsNMn_.cjs +0 -1
- package/client-lib/Derived-rInkx3e4.js +0 -60
- package/client-lib/ElementConstructor-Be8H1POO.js +0 -378
- package/client-lib/ElementConstructor-khLPmQ9V.cjs +0 -1
- package/client-lib/SourceManager-D6D2LVKf.cjs +0 -1
- package/client-lib/Store-Cr3VaD9G.cjs +0 -1
- package/client-lib/Tweened-CjgvoOwL.js +0 -48
- package/client-lib/Tweened-DksN-Rz6.cjs +0 -1
- package/client-lib/Viewport-BBYt1Ivy.cjs +0 -1
- package/client-lib/Viewport-Cgtq2I_K.js +0 -127
- package/client-lib/_createStore-C75y9luu.cjs +0 -1
- package/client-lib/_createStore-D3qHYaSz.js +0 -12
- package/client-lib/accordion/AccordionElement.d.ts +0 -30
- package/client-lib/accordion/index.cjs +0 -1
- package/client-lib/accordion/index.d.ts +0 -1
- package/client-lib/accordion/index.js +0 -176
- package/client-lib/animation/Animation.d.ts +0 -35
- package/client-lib/animation/Damped.d.ts +0 -19
- package/client-lib/animation/Tweened.d.ts +0 -15
- package/client-lib/animation/index.d.ts +0 -3
- package/client-lib/animation/index.js +0 -8
- package/client-lib/attribute/index.cjs +0 -1
- package/client-lib/attribute/index.d.ts +0 -15
- package/client-lib/canvas/index.cjs +0 -1
- package/client-lib/canvas/index.d.ts +0 -35
- package/client-lib/canvas/index.js +0 -119
- package/client-lib/checkbox/index.cjs +0 -1
- package/client-lib/checkbox/index.d.ts +0 -14
- package/client-lib/class-linked-status/index.cjs +0 -1
- package/client-lib/class-linked-status/index.d.ts +0 -12
- package/client-lib/class-linked-status/index.js +0 -49
- package/client-lib/connector/index.cjs +0 -1
- package/client-lib/connector/index.d.ts +0 -15
- package/client-lib/controls/AutoplayControls.d.ts +0 -17
- package/client-lib/controls/Controls.d.ts +0 -9
- package/client-lib/controls/DragControls.d.ts +0 -16
- package/client-lib/controls/KeyboardControls.d.ts +0 -14
- package/client-lib/controls/WheelControls.d.ts +0 -19
- package/client-lib/controls/index.cjs +0 -1
- package/client-lib/controls/index.d.ts +0 -5
- package/client-lib/controls/index.js +0 -213
- package/client-lib/counter/index.d.ts +0 -6
- package/client-lib/css-property/index.cjs +0 -1
- package/client-lib/css-property/index.d.ts +0 -17
- package/client-lib/css-property/index.js +0 -62
- package/client-lib/css-unit-parser/index.cjs +0 -8
- package/client-lib/css-unit-parser/index.d.ts +0 -6
- package/client-lib/css-unit-parser/index.js +0 -36
- package/client-lib/css-value-parser/index.d.ts +0 -6
- package/client-lib/dev/index.d.ts +0 -1
- package/client-lib/device/Device.d.ts +0 -19
- package/client-lib/device/Viewport.d.ts +0 -29
- package/client-lib/device/index.d.ts +0 -2
- package/client-lib/element-constructor/ElementConstructor.d.ts +0 -75
- package/client-lib/element-constructor/createStylesheet.d.ts +0 -3
- package/client-lib/element-constructor/createTheme.d.ts +0 -13
- package/client-lib/element-constructor/index.cjs +0 -1
- package/client-lib/element-constructor/index.d.ts +0 -4
- package/client-lib/element-constructor/index.js +0 -125
- package/client-lib/element-constructor/knownSvgTags.d.ts +0 -1
- package/client-lib/element-constructor/tags.d.ts +0 -119
- package/client-lib/element-resizer/index.cjs +0 -1
- package/client-lib/element-resizer/index.d.ts +0 -10
- package/client-lib/en3/core/En3Raycaster.d.ts +0 -21
- package/client-lib/en3/core/En3View.d.ts +0 -40
- package/client-lib/en3/core/en3.d.ts +0 -39
- package/client-lib/en3/core/en3Cache.d.ts +0 -4
- package/client-lib/en3/helpers/En3ComposerManager.d.ts +0 -5
- package/client-lib/en3/helpers/En3GridHelper.d.ts +0 -8
- package/client-lib/en3/helpers/En3Helpers.d.ts +0 -5
- package/client-lib/en3/helpers/En3Object3dManager.d.ts +0 -14
- package/client-lib/en3/helpers/En3OrbitControls.d.ts +0 -8
- package/client-lib/en3/helpers/En3ParametersManager.d.ts +0 -16
- package/client-lib/en3/helpers/En3TransformControls.d.ts +0 -8
- package/client-lib/en3/helpers/index.cjs +0 -1
- package/client-lib/en3/helpers/index.d.ts +0 -2
- package/client-lib/en3/index.d.ts +0 -3
- package/client-lib/en3/index.js +0 -6
- package/client-lib/en3/libs/MeshoptDecoder.d.ts +0 -1
- package/client-lib/en3/libs/index.d.ts +0 -1
- package/client-lib/en3/loaders/En3GLTFLoader.d.ts +0 -12
- package/client-lib/en3/loaders/En3TextureLoader.d.ts +0 -8
- package/client-lib/en3/loaders/index.cjs +0 -1
- package/client-lib/en3/loaders/index.d.ts +0 -3
- package/client-lib/en3/loaders/loaders.d.ts +0 -13
- package/client-lib/en3/misc/En3ModifiedMaterial.d.ts +0 -33
- package/client-lib/en3/misc/En3SourceManager.d.ts +0 -32
- package/client-lib/en3/misc/index.cjs +0 -10
- package/client-lib/en3/misc/index.d.ts +0 -2
- package/client-lib/en3/objects/En3Clip.d.ts +0 -15
- package/client-lib/en3/objects/En3ClipHelpers.d.ts +0 -6
- package/client-lib/en3/objects/En3GLTF.d.ts +0 -11
- package/client-lib/en3/objects/En3Image.d.ts +0 -8
- package/client-lib/en3/objects/En3ImageLike.d.ts +0 -25
- package/client-lib/en3/objects/En3SourceConsumer.d.ts +0 -5
- package/client-lib/en3/objects/En3Video.d.ts +0 -13
- package/client-lib/en3/objects/fluid/Advection.d.ts +0 -30
- package/client-lib/en3/objects/fluid/Divergence.d.ts +0 -23
- package/client-lib/en3/objects/fluid/En3Fluid.d.ts +0 -16
- package/client-lib/en3/objects/fluid/En3FluidElement.d.ts +0 -13
- package/client-lib/en3/objects/fluid/En3FluidPointer.d.ts +0 -13
- package/client-lib/en3/objects/fluid/ExternalForce.d.ts +0 -19
- package/client-lib/en3/objects/fluid/Poisson.d.ts +0 -24
- package/client-lib/en3/objects/fluid/Pressure.d.ts +0 -26
- package/client-lib/en3/objects/fluid/ShaderPass.d.ts +0 -24
- package/client-lib/en3/objects/fluid/Simulation.d.ts +0 -33
- package/client-lib/en3/objects/fluid/Viscous.d.ts +0 -30
- package/client-lib/en3/objects/fluid/index.d.ts +0 -3
- package/client-lib/en3/objects/index.d.ts +0 -7
- package/client-lib/en3/utils/coverTexture.d.ts +0 -7
- package/client-lib/en3/utils/dispose.d.ts +0 -3
- package/client-lib/en3/utils/getCurrentViewport.d.ts +0 -9
- package/client-lib/en3/utils/index.d.ts +0 -5
- package/client-lib/en3/utils/traverseMaterials.d.ts +0 -3
- package/client-lib/en3/utils/traverseMeshes.d.ts +0 -3
- package/client-lib/en3-CBBYE8rb.cjs +0 -8
- package/client-lib/globals-DMjysUXI.js +0 -8
- package/client-lib/globals-bYKki-b9.cjs +0 -1
- package/client-lib/image/index.d.ts +0 -11
- package/client-lib/index-PReYu1AQ.cjs +0 -9
- package/client-lib/instantiate-CfK7LHHy.js +0 -152
- package/client-lib/instantiate-DfsD19EH.cjs +0 -1
- package/client-lib/intersector/index.cjs +0 -1
- package/client-lib/intersector/index.d.ts +0 -10
- package/client-lib/jsx/ComponentElement.d.ts +0 -17
- package/client-lib/jsx/globals.d.ts +0 -13
- package/client-lib/jsx/h.d.ts +0 -6
- package/client-lib/jsx/hooks/animation/createDamped.d.ts +0 -3
- package/client-lib/jsx/hooks/animation/createTweened.d.ts +0 -3
- package/client-lib/jsx/hooks/animation/index.cjs +0 -1
- package/client-lib/jsx/hooks/animation/index.d.ts +0 -2
- package/client-lib/jsx/hooks/animation/index.js +0 -15
- package/client-lib/jsx/hooks/basic/_createStore.d.ts +0 -4
- package/client-lib/jsx/hooks/basic/attachInternals.d.ts +0 -1
- package/client-lib/jsx/hooks/basic/attachShadow.d.ts +0 -1
- package/client-lib/jsx/hooks/basic/attachStylesheet.d.ts +0 -3
- package/client-lib/jsx/hooks/basic/createContext.d.ts +0 -2
- package/client-lib/jsx/hooks/basic/createRef.d.ts +0 -3
- package/client-lib/jsx/hooks/basic/onConnect.d.ts +0 -3
- package/client-lib/jsx/hooks/basic/onDisconnect.d.ts +0 -3
- package/client-lib/jsx/hooks/basic/onStoreChange.d.ts +0 -3
- package/client-lib/jsx/hooks/onAnimationFrame.cjs +0 -1
- package/client-lib/jsx/hooks/onAnimationFrame.d.ts +0 -6
- package/client-lib/jsx/hooks/onAnimationFrame.js +0 -22
- package/client-lib/jsx/hooks/onElementResize.cjs +0 -1
- package/client-lib/jsx/hooks/onElementResize.d.ts +0 -5
- package/client-lib/jsx/hooks/onElementResize.js +0 -11
- package/client-lib/jsx/hooks/onIntersection.cjs +0 -1
- package/client-lib/jsx/hooks/onIntersection.d.ts +0 -5
- package/client-lib/jsx/hooks/onIntersection.js +0 -11
- package/client-lib/jsx/hooks/onWindowResize.cjs +0 -1
- package/client-lib/jsx/hooks/onWindowResize.d.ts +0 -3
- package/client-lib/jsx/hooks/onWindowResize.js +0 -8
- package/client-lib/jsx/hooks/store/createCached.d.ts +0 -4
- package/client-lib/jsx/hooks/store/createComposed.d.ts +0 -3
- package/client-lib/jsx/hooks/store/createDerived.d.ts +0 -4
- package/client-lib/jsx/hooks/store/createDerivedArray.d.ts +0 -4
- package/client-lib/jsx/hooks/store/createResource.d.ts +0 -3
- package/client-lib/jsx/hooks/store/createStore.d.ts +0 -3
- package/client-lib/jsx/hooks/store/index.cjs +0 -1
- package/client-lib/jsx/hooks/store/index.d.ts +0 -6
- package/client-lib/jsx/hooks/store/index.js +0 -45
- package/client-lib/jsx/hooks/watchAttribute.cjs +0 -1
- package/client-lib/jsx/hooks/watchAttribute.d.ts +0 -6
- package/client-lib/jsx/hooks/watchAttribute.js +0 -17
- package/client-lib/jsx/hooks/watchCSSProperty.cjs +0 -1
- package/client-lib/jsx/hooks/watchCSSProperty.d.ts +0 -7
- package/client-lib/jsx/hooks/watchCSSProperty.js +0 -17
- package/client-lib/jsx/index.cjs +0 -1
- package/client-lib/jsx/index.d.ts +0 -15
- package/client-lib/jsx/index.js +0 -106
- package/client-lib/jsx/instantiate.d.ts +0 -5
- package/client-lib/jsx/register.d.ts +0 -1
- package/client-lib/jsx/render.d.ts +0 -6
- package/client-lib/jsx/type.d.ts +0 -195
- package/client-lib/ladder/index.cjs +0 -1
- package/client-lib/ladder/index.d.ts +0 -24
- package/client-lib/layout-box/index.cjs +0 -1
- package/client-lib/layout-box/index.d.ts +0 -96
- package/client-lib/layout-box/index.js +0 -326
- package/client-lib/libs/path-data-polyfill.d.ts +0 -1
- package/client-lib/loading/index.cjs +0 -1
- package/client-lib/loading/index.d.ts +0 -39
- package/client-lib/media/index.cjs +0 -1
- package/client-lib/media/index.d.ts +0 -12
- package/client-lib/media/index.js +0 -30
- package/client-lib/modal/ModalElement.d.ts +0 -13
- package/client-lib/modal/index.cjs +0 -1
- package/client-lib/modal/index.d.ts +0 -1
- package/client-lib/morph/Link.d.ts +0 -7
- package/client-lib/morph/Morph.d.ts +0 -37
- package/client-lib/morph/index.cjs +0 -1
- package/client-lib/morph/index.d.ts +0 -1
- package/client-lib/morph/index.js +0 -235
- package/client-lib/notifier/index.cjs +0 -1
- package/client-lib/notifier/index.d.ts +0 -8
- package/client-lib/notifier/index.js +0 -40
- package/client-lib/onConnect-DGP866cj.cjs +0 -1
- package/client-lib/onConnect-y5DrxJ9P.js +0 -7
- package/client-lib/order/index.d.ts +0 -22
- package/client-lib/pointer/Pointer.d.ts +0 -23
- package/client-lib/pointer/PointerElement.d.ts +0 -14
- package/client-lib/pointer/index.cjs +0 -1
- package/client-lib/pointer/index.d.ts +0 -2
- package/client-lib/popover/PopoverButtonElement.d.ts +0 -15
- package/client-lib/popover/PopoverElement.d.ts +0 -26
- package/client-lib/popover/index.cjs +0 -1
- package/client-lib/popover/index.d.ts +0 -2
- package/client-lib/router/Link.d.ts +0 -7
- package/client-lib/router/Route.d.ts +0 -21
- package/client-lib/router/Router.d.ts +0 -41
- package/client-lib/router/index.cjs +0 -1
- package/client-lib/router/index.d.ts +0 -2
- package/client-lib/scroll/ScrollBulletButtonsElement.d.ts +0 -12
- package/client-lib/scroll/ScrollButtonElement.d.ts +0 -6
- package/client-lib/scroll/ScrollElement.d.ts +0 -82
- package/client-lib/scroll/ScrollSection.d.ts +0 -23
- package/client-lib/scroll/ScrollSegmentElement.d.ts +0 -63
- package/client-lib/scroll/ScrollSetButtonElement.d.ts +0 -10
- package/client-lib/scroll/ScrollStepButtonElement.d.ts +0 -10
- package/client-lib/scroll/ScrollUserElement.d.ts +0 -7
- package/client-lib/scroll/ScrollbarElement.d.ts +0 -14
- package/client-lib/scroll/index.cjs +0 -1
- package/client-lib/scroll/index.d.ts +0 -6
- package/client-lib/scroll/index.js +0 -1154
- package/client-lib/scroll-entries/index.cjs +0 -1
- package/client-lib/scroll-entries/index.d.ts +0 -21
- package/client-lib/select/SelectElement.d.ts +0 -24
- package/client-lib/select/SelectHeadElement.d.ts +0 -13
- package/client-lib/select/SelectOptionElement.d.ts +0 -14
- package/client-lib/select/SelectUserElement.d.ts +0 -7
- package/client-lib/select/index.d.ts +0 -4
- package/client-lib/sequence/index.cjs +0 -1
- package/client-lib/sequence/index.d.ts +0 -21
- package/client-lib/slicer/DecoderElement.d.ts +0 -11
- package/client-lib/slicer/Letter.d.ts +0 -11
- package/client-lib/slicer/SlicerElement.d.ts +0 -21
- package/client-lib/slicer/Word.d.ts +0 -17
- package/client-lib/slicer/index.cjs +0 -11
- package/client-lib/slicer/index.d.ts +0 -4
- package/client-lib/source/SourceClass.d.ts +0 -11
- package/client-lib/source/SourceElement.d.ts +0 -25
- package/client-lib/source/SourceManager.d.ts +0 -14
- package/client-lib/source/SourceSet.d.ts +0 -9
- package/client-lib/source/index.cjs +0 -5
- package/client-lib/source/index.d.ts +0 -4
- package/client-lib/store/Cached.d.ts +0 -18
- package/client-lib/store/Composed.d.ts +0 -8
- package/client-lib/store/Derived.d.ts +0 -13
- package/client-lib/store/DerivedArray.d.ts +0 -13
- package/client-lib/store/Resource.d.ts +0 -12
- package/client-lib/store/Store.d.ts +0 -76
- package/client-lib/store/StoreRegistry.d.ts +0 -23
- package/client-lib/store/index.cjs +0 -1
- package/client-lib/store/index.d.ts +0 -7
- package/client-lib/svg-path-data/index.d.ts +0 -15
- package/client-lib/tags-BdW7ATzD.cjs +0 -1
- package/client-lib/tags-C75owfOo.js +0 -485
- package/client-lib/test/starting-style/index.d.ts +0 -1
- package/client-lib/theme/index.d.ts +0 -35
- package/client-lib/ticker/index.cjs +0 -1
- package/client-lib/ticker/index.d.ts +0 -22
- package/client-lib/ticker/index.js +0 -125
- package/client-lib/tweaker/TweakerBooleanManagerElement.d.ts +0 -11
- package/client-lib/tweaker/TweakerColorManagerElement.d.ts +0 -11
- package/client-lib/tweaker/TweakerElement.d.ts +0 -18
- package/client-lib/tweaker/TweakerFieldElement.d.ts +0 -21
- package/client-lib/tweaker/TweakerFolderElement.d.ts +0 -24
- package/client-lib/tweaker/TweakerLinkManagerElement.d.ts +0 -11
- package/client-lib/tweaker/TweakerNumberManagerElement.d.ts +0 -14
- package/client-lib/tweaker/TweakerSelectManagerElement.d.ts +0 -11
- package/client-lib/tweaker/TweakerStoreManagerElement.d.ts +0 -10
- package/client-lib/tweaker/TweakerStringManagerElement.d.ts +0 -11
- package/client-lib/tweaker/index.cjs +0 -10
- package/client-lib/tweaker/index.d.ts +0 -1
- package/client-lib/tweaker/tweakerManagerConstructors.d.ts +0 -6
- package/client-lib/tweaker/tweakerStorage.d.ts +0 -23
- package/client-lib/utils/array.d.ts +0 -2
- package/client-lib/utils/attributes.d.ts +0 -2
- package/client-lib/utils/browser.d.ts +0 -1
- package/client-lib/utils/bytes.d.ts +0 -1
- package/client-lib/utils/canvas.d.ts +0 -7
- package/client-lib/utils/collisions.d.ts +0 -4
- package/client-lib/utils/coordinates.d.ts +0 -14
- package/client-lib/utils/cssom.d.ts +0 -5
- package/client-lib/utils/decoding.d.ts +0 -2
- package/client-lib/utils/dom.d.ts +0 -5
- package/client-lib/utils/easings.d.ts +0 -17
- package/client-lib/utils/events.d.ts +0 -8
- package/client-lib/utils/file.d.ts +0 -1
- package/client-lib/utils/function.d.ts +0 -2
- package/client-lib/utils/gestures.d.ts +0 -1
- package/client-lib/utils/index.d.ts +0 -26
- package/client-lib/utils/layout.d.ts +0 -3
- package/client-lib/utils/math.d.ts +0 -12
- package/client-lib/utils/number.d.ts +0 -3
- package/client-lib/utils/object.d.ts +0 -9
- package/client-lib/utils/polyfills.d.ts +0 -1
- package/client-lib/utils/promises.d.ts +0 -1
- package/client-lib/utils/string.d.ts +0 -8
- package/client-lib/utils/style.d.ts +0 -2
- package/client-lib/utils/ts-shape.d.ts +0 -20
- package/client-lib/utils/ts-utility.d.ts +0 -26
- package/client-lib/utils/url.d.ts +0 -9
- package/client-lib/video/index.cjs +0 -1
- package/client-lib/video/index.d.ts +0 -22
- package/client-lib/window-resizer/index.cjs +0 -1
- package/client-lib/window-resizer/index.d.ts +0 -10
- package/client-lib/window-resizer/index.js +0 -46
- package/server-lib/optimizer/FFmpeg.d.ts +0 -10
- package/server-lib/optimizer/generateFavicon.d.ts +0 -4
- package/server-lib/optimizer/generateSequence.d.ts +0 -3
- package/server-lib/optimizer/generateSprite.d.ts +0 -4
- package/server-lib/optimizer/index.d.ts +0 -10
- package/server-lib/optimizer/index.js +0 -404
- package/server-lib/optimizer/inputFiles.d.ts +0 -26
- package/server-lib/optimizer/optimize.d.ts +0 -13
- package/server-lib/optimizer/optimizeImage.d.ts +0 -4
- package/server-lib/optimizer/optimizeVideo.d.ts +0 -3
- package/server-lib/optimizer/optimizer.d.ts +0 -5
- package/server-lib/optimizer/types.d.ts +0 -51
- package/server-lib/optimizer/utils.d.ts +0 -1
- package/server-lib/utils/buffer.d.ts +0 -1
- package/server-lib/utils/fs.d.ts +0 -11
- package/server-lib/utils/index.d.ts +0 -5
- package/server-lib/utils/index.js +0 -65
- package/server-lib/utils/math.d.ts +0 -1
- package/server-lib/utils/path.d.ts +0 -3
- package/server-lib/utils/types.d.ts +0 -8
- /package/{client-lib → lib}/attributes-69we3byR.js +0 -0
- /package/{client-lib → lib}/attributes-Bf2svn4j.cjs +0 -0
- /package/{client-lib → lib}/browser-0zX67oeU.js +0 -0
- /package/{client-lib → lib}/browser-CpzFX2xg.cjs +0 -0
- /package/{client-lib → lib}/canvas-CU5Xjahf.cjs +0 -0
- /package/{client-lib → lib}/canvas-DeZ0SLUJ.js +0 -0
- /package/{client-lib → lib}/coordinates-CgdGoSYs.js +0 -0
- /package/{client-lib → lib}/coordinates-D8Np3cPD.cjs +0 -0
- /package/{client-lib → lib}/createTheme-CHnsCgAr.js +0 -0
- /package/{client-lib → lib}/createTheme-Cfaw9UmV.cjs +0 -0
- /package/{client-lib → lib}/css-value-parser/index.cjs +0 -0
- /package/{client-lib → lib}/css-value-parser/index.js +0 -0
- /package/{client-lib → lib}/dom-JBOkFLTh.cjs +0 -0
- /package/{client-lib → lib}/dom-P5QbAASX.js +0 -0
- /package/{client-lib → lib}/easings-BKi40vHz.js +0 -0
- /package/{client-lib → lib}/easings-DsS5-Kqc.cjs +0 -0
- /package/{client-lib → lib}/en3/libs/index.cjs +0 -0
- /package/{client-lib → lib}/events-BGwqaxVW.cjs +0 -0
- /package/{client-lib → lib}/events-CJTUMSLU.js +0 -0
- /package/{client-lib → lib}/file-EevnUtRj.cjs +0 -0
- /package/{client-lib → lib}/file-lxi_oXJf.js +0 -0
- /package/{client-lib → lib}/function-C10DGppn.js +0 -0
- /package/{client-lib → lib}/function-MthRj-GJ.cjs +0 -0
- /package/{client-lib → lib}/gestures-D2Fdra_G.js +0 -0
- /package/{client-lib → lib}/gestures-DHLrn6Q8.cjs +0 -0
- /package/{client-lib → lib}/layout-8ryRAMGJ.cjs +0 -0
- /package/{client-lib → lib}/layout-HoBT_Da2.js +0 -0
- /package/{client-lib → lib}/math-BOBiC4TN.js +0 -0
- /package/{client-lib → lib}/math-GDWEqu7y.cjs +0 -0
- /package/{client-lib → lib}/object-CCiXnER2.cjs +0 -0
- /package/{client-lib → lib}/object-D6MVWB4l.js +0 -0
- /package/{client-lib → lib}/order/index.cjs +0 -0
- /package/{client-lib → lib}/order/index.js +0 -0
- /package/{client-lib → lib}/polyfills-CM4SCDTt.cjs +0 -0
- /package/{client-lib → lib}/polyfills-X6KXuHg-.js +0 -0
- /package/{client-lib → lib}/string-DhgS_iFl.cjs +0 -0
- /package/{client-lib → lib}/string-f0Dnk0L1.js +0 -0
- /package/{client-lib → lib}/style-At6aDoqG.cjs +0 -0
- /package/{client-lib → lib}/style-j2TwriJ_.js +0 -0
- /package/{client-lib → lib}/svg-path-data/index.cjs +0 -0
- /package/{client-lib → lib}/url-C3dWnJQg.cjs +0 -0
- /package/{client-lib → lib}/url-DMNfW7uN.js +0 -0
- /package/{client-lib → lib}/utils/index.cjs +0 -0
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { Ladder } from '../ladder';
|
|
2
|
-
import { StoreCallback } from '../store';
|
|
3
|
-
import { ElementOrSelector, Axes3D, Axes2D } from '../utils';
|
|
4
|
-
import { Notifier } from '../notifier';
|
|
5
|
-
|
|
6
|
-
export declare function decomposeCSSMatrix(matrix: WebKitCSSMatrix): {
|
|
7
|
-
scaleX: number;
|
|
8
|
-
scaleY: number;
|
|
9
|
-
scaleZ: number;
|
|
10
|
-
rotationX: number;
|
|
11
|
-
rotationY: number;
|
|
12
|
-
rotationZ: number;
|
|
13
|
-
translationX: number;
|
|
14
|
-
translationY: number;
|
|
15
|
-
translationZ: number;
|
|
16
|
-
};
|
|
17
|
-
export interface LayoutBoxOptions {
|
|
18
|
-
containerElement?: ElementOrSelector<HTMLElement>;
|
|
19
|
-
cartesian?: boolean;
|
|
20
|
-
scrollAxis?: Axes3D | 'auto';
|
|
21
|
-
frontSide?: LayoutBoxFrontSide;
|
|
22
|
-
sizeStep?: boolean;
|
|
23
|
-
positionStep?: boolean;
|
|
24
|
-
culling?: boolean;
|
|
25
|
-
transformStep?: boolean;
|
|
26
|
-
scrollStep?: boolean;
|
|
27
|
-
}
|
|
28
|
-
export interface LayoutBoxScrollStepCallbackReturn {
|
|
29
|
-
axis: Axes2D;
|
|
30
|
-
value: number;
|
|
31
|
-
}
|
|
32
|
-
export type LayoutBoxXYZ = {
|
|
33
|
-
x: number;
|
|
34
|
-
y: number;
|
|
35
|
-
z: number;
|
|
36
|
-
};
|
|
37
|
-
export type LayoutBoxScrollStepCallback = () => LayoutBoxScrollStepCallbackReturn;
|
|
38
|
-
export type LayoutBoxStepCallback = StoreCallback<LayoutBoxXYZ>;
|
|
39
|
-
export type LayoutBoxFrontSide = 'left' | 'top';
|
|
40
|
-
export interface LayoutBoxBindedObject {
|
|
41
|
-
position?: LayoutBoxXYZ;
|
|
42
|
-
scale?: LayoutBoxXYZ;
|
|
43
|
-
rotation?: LayoutBoxXYZ;
|
|
44
|
-
}
|
|
45
|
-
export type LayoutBoxLadder = {
|
|
46
|
-
x: number;
|
|
47
|
-
y: number;
|
|
48
|
-
z: number;
|
|
49
|
-
};
|
|
50
|
-
export declare class LayoutBox {
|
|
51
|
-
#private;
|
|
52
|
-
constructor(element: ElementOrSelector<HTMLElement>, options?: LayoutBoxOptions);
|
|
53
|
-
get element(): HTMLElement;
|
|
54
|
-
get containerElement(): HTMLElement;
|
|
55
|
-
get position(): LayoutBoxLadder;
|
|
56
|
-
get rotation(): LayoutBoxLadder;
|
|
57
|
-
get scale(): LayoutBoxLadder;
|
|
58
|
-
get scrollValue(): LayoutBoxXYZ;
|
|
59
|
-
get left(): number;
|
|
60
|
-
get top(): number;
|
|
61
|
-
get CSSTranslation(): LayoutBoxXYZ;
|
|
62
|
-
get CSSRotation(): LayoutBoxXYZ;
|
|
63
|
-
get CSSScale(): LayoutBoxXYZ;
|
|
64
|
-
get front(): number;
|
|
65
|
-
get width(): number;
|
|
66
|
-
get height(): number;
|
|
67
|
-
get depth(): number;
|
|
68
|
-
destroy(): void;
|
|
69
|
-
bindObject(object: LayoutBoxBindedObject): void;
|
|
70
|
-
unbindObject(object: LayoutBoxBindedObject): void;
|
|
71
|
-
setScrollStep(callback: LayoutBoxScrollStepCallback): () => void;
|
|
72
|
-
deleteScrollStep(callback: LayoutBoxScrollStepCallback): void;
|
|
73
|
-
setPositionStep(...args: Parameters<Ladder<LayoutBoxLadder>['setStep']>): void;
|
|
74
|
-
getPositionStep(...args: Parameters<Ladder<LayoutBoxLadder>['getStepValue']>): LayoutBoxLadder;
|
|
75
|
-
setRotationStep(...args: Parameters<Ladder<LayoutBoxLadder>['setStep']>): void;
|
|
76
|
-
getRotationStep(...args: Parameters<Ladder<LayoutBoxLadder>['getStepValue']>): LayoutBoxLadder;
|
|
77
|
-
getExcludedRotationSteps(...args: Parameters<Ladder<LayoutBoxLadder>['getExcludedStepsValue']>): LayoutBoxLadder;
|
|
78
|
-
getIncludedRotationSteps(...args: Parameters<Ladder<LayoutBoxLadder>['getIncludedStepsValue']>): LayoutBoxLadder;
|
|
79
|
-
setScaleStep(...args: Parameters<Ladder<LayoutBoxLadder>['setStep']>): void;
|
|
80
|
-
getScaleStep(...args: Parameters<Ladder<LayoutBoxLadder>['getStepValue']>): LayoutBoxLadder;
|
|
81
|
-
getExcludedScaleSteps(...args: Parameters<Ladder<LayoutBoxLadder>['getExcludedStepsValue']>): LayoutBoxLadder;
|
|
82
|
-
getIncludedScaleSteps(...args: Parameters<Ladder<LayoutBoxLadder>['getIncludedStepsValue']>): LayoutBoxLadder;
|
|
83
|
-
deletePositionStep(...args: Parameters<Ladder<LayoutBoxLadder>['deleteStep']>): void;
|
|
84
|
-
getExcludedPositionSteps(...args: Parameters<Ladder<LayoutBoxLadder>['getExcludedStepsValue']>): LayoutBoxLadder;
|
|
85
|
-
getIncludedPositionSteps(...args: Parameters<Ladder<LayoutBoxLadder>['getIncludedStepsValue']>): LayoutBoxLadder;
|
|
86
|
-
deleteRotationStep(...args: Parameters<Ladder<LayoutBoxLadder>['deleteStep']>): void;
|
|
87
|
-
deleteScaleStep(...args: Parameters<Ladder<LayoutBoxLadder>['deleteStep']>): void;
|
|
88
|
-
onPosition(...args: Parameters<Ladder<LayoutBoxLadder>['subscribe']>): () => void;
|
|
89
|
-
offPosition(...args: Parameters<Ladder<LayoutBoxLadder>['unsubscribe']>): void;
|
|
90
|
-
onScale(...args: Parameters<Ladder<LayoutBoxLadder>['subscribe']>): () => void;
|
|
91
|
-
offScale(...args: Parameters<Ladder<LayoutBoxLadder>['unsubscribe']>): void;
|
|
92
|
-
onRotation(...args: Parameters<Ladder<LayoutBoxLadder>['subscribe']>): () => void;
|
|
93
|
-
offRotation(...args: Parameters<Ladder<LayoutBoxLadder>['unsubscribe']>): void;
|
|
94
|
-
onResize(...args: Parameters<Notifier['subscribe']>): () => void;
|
|
95
|
-
offResize(...args: Parameters<Notifier['unsubscribe']>): void;
|
|
96
|
-
}
|
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
var F = (i, e, s) => {
|
|
2
|
-
if (!e.has(i))
|
|
3
|
-
throw TypeError("Cannot " + s);
|
|
4
|
-
};
|
|
5
|
-
var t = (i, e, s) => (F(i, e, "read from private field"), s ? s.call(i) : e.get(i)), h = (i, e, s) => {
|
|
6
|
-
if (e.has(i))
|
|
7
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
e instanceof WeakSet ? e.add(i) : e.set(i, s);
|
|
9
|
-
}, r = (i, e, s, l) => (F(i, e, "write to private field"), l ? l.call(i, s) : e.set(i, s), s);
|
|
10
|
-
var O = (i, e, s) => (F(i, e, "access private method"), s);
|
|
11
|
-
import { cssUnitParser as dt } from "../css-unit-parser/index.js";
|
|
12
|
-
import { Ladder as G } from "../ladder/index.js";
|
|
13
|
-
import { RESIZE_ORDER as ft, TICK_ORDER as pt } from "../order/index.js";
|
|
14
|
-
import { scrollEntries as J } from "../scroll-entries/index.js";
|
|
15
|
-
import { ticker as et } from "../ticker/index.js";
|
|
16
|
-
import { i as st } from "../browser-0zX67oeU.js";
|
|
17
|
-
import { a as it } from "../dom-P5QbAASX.js";
|
|
18
|
-
import { g as Q, a as j } from "../layout-HoBT_Da2.js";
|
|
19
|
-
import { elementResizer as ht } from "../element-resizer/index.js";
|
|
20
|
-
import { windowResizer as rt } from "../window-resizer/index.js";
|
|
21
|
-
import { Notifier as mt } from "../notifier/index.js";
|
|
22
|
-
function gt(i) {
|
|
23
|
-
const e = Math.sqrt(
|
|
24
|
-
i.m11 * i.m11 + i.m12 * i.m12 + i.m13 * i.m13
|
|
25
|
-
), s = Math.sqrt(
|
|
26
|
-
i.m21 * i.m21 + i.m22 * i.m22 + i.m23 * i.m23
|
|
27
|
-
), l = Math.sqrt(
|
|
28
|
-
i.m31 * i.m31 + i.m32 * i.m32 + i.m33 * i.m33
|
|
29
|
-
), b = Math.atan2(i.m32, i.m33), Z = Math.atan2(
|
|
30
|
-
-i.m31,
|
|
31
|
-
Math.sqrt(i.m32 * i.m32 + i.m33 * i.m33)
|
|
32
|
-
), $ = Math.atan2(i.m21, i.m11), u = i.m41, P = i.m42 * -1, V = i.m43;
|
|
33
|
-
return {
|
|
34
|
-
scaleX: e,
|
|
35
|
-
scaleY: s,
|
|
36
|
-
scaleZ: l,
|
|
37
|
-
rotationX: b,
|
|
38
|
-
rotationY: Z,
|
|
39
|
-
rotationZ: $,
|
|
40
|
-
translationX: u,
|
|
41
|
-
translationY: P,
|
|
42
|
-
translationZ: V
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
var a, g, z, R, A, L, _, v, W, q, y, x, X, S, d, w, Y, H, B, f, p, m, c, n, o, M, E, I, D, tt, k, nt, K, lt, N, ot, C, U, T;
|
|
46
|
-
class Vt {
|
|
47
|
-
constructor(e, s) {
|
|
48
|
-
h(this, D);
|
|
49
|
-
h(this, k);
|
|
50
|
-
h(this, K);
|
|
51
|
-
h(this, N);
|
|
52
|
-
h(this, a, null);
|
|
53
|
-
h(this, g, null);
|
|
54
|
-
h(this, z, []);
|
|
55
|
-
h(this, R, "auto");
|
|
56
|
-
h(this, A, "top");
|
|
57
|
-
h(this, L, !1);
|
|
58
|
-
h(this, _, !0);
|
|
59
|
-
h(this, v, !0);
|
|
60
|
-
h(this, W, !0);
|
|
61
|
-
h(this, q, !0);
|
|
62
|
-
h(this, y, 0);
|
|
63
|
-
h(this, x, 0);
|
|
64
|
-
h(this, X, 0);
|
|
65
|
-
h(this, S, 0);
|
|
66
|
-
h(this, d, 0);
|
|
67
|
-
h(this, w, 0);
|
|
68
|
-
h(this, Y, 0);
|
|
69
|
-
h(this, H, 0);
|
|
70
|
-
h(this, B, 0);
|
|
71
|
-
h(this, f, { x: 0, y: 0, z: 0 });
|
|
72
|
-
h(this, p, { x: 0, y: 0, z: 0 });
|
|
73
|
-
h(this, m, { x: 1, y: 1, z: 1 });
|
|
74
|
-
h(this, c, new G({ x: 0, y: 0, z: 0 }));
|
|
75
|
-
h(this, n, new G({ x: 0, y: 0, z: 0 }));
|
|
76
|
-
h(this, o, new G({ x: 0, y: 0, z: 0 }));
|
|
77
|
-
h(this, M, { x: 0, y: 0, z: 0 });
|
|
78
|
-
h(this, E, /* @__PURE__ */ new Map());
|
|
79
|
-
h(this, I, new mt());
|
|
80
|
-
h(this, C, () => {
|
|
81
|
-
st && O(this, K, lt).call(this);
|
|
82
|
-
});
|
|
83
|
-
h(this, U, () => {
|
|
84
|
-
O(this, N, ot).call(this), O(this, D, tt).call(this);
|
|
85
|
-
});
|
|
86
|
-
h(this, T, () => {
|
|
87
|
-
const e = J.getAll(this.element);
|
|
88
|
-
t(this, E).forEach((s, l) => {
|
|
89
|
-
e.includes(l) || (this.deleteScrollStep(s), t(this, E).delete(l));
|
|
90
|
-
}), e.forEach((s) => {
|
|
91
|
-
if (!t(this, E).has(s)) {
|
|
92
|
-
const l = () => s;
|
|
93
|
-
t(this, E).set(s, l), this.setScrollStep(l);
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
st && (r(this, a, it(e) || document.body), r(this, g, it(s == null ? void 0 : s.containerElement) || document.body), r(this, R, (s == null ? void 0 : s.scrollAxis) || "auto"), r(this, A, (s == null ? void 0 : s.frontSide) || "top"), r(this, L, (s == null ? void 0 : s.cartesian) || !1), r(this, _, (s == null ? void 0 : s.sizeStep) !== void 0 ? s.sizeStep : !0), r(this, v, (s == null ? void 0 : s.positionStep) !== void 0 ? s.positionStep : !0), r(this, W, (s == null ? void 0 : s.transformStep) !== void 0 ? s.transformStep : !0), r(this, q, (s == null ? void 0 : s.scrollStep) !== void 0 ? s.scrollStep : !0), t(this, o).setStep("_size", "+", {
|
|
98
|
-
x: 1,
|
|
99
|
-
y: 1,
|
|
100
|
-
z: 1
|
|
101
|
-
}), t(this, n).setStep("_position", "+", {
|
|
102
|
-
x: 0,
|
|
103
|
-
y: 0,
|
|
104
|
-
z: 0
|
|
105
|
-
}), t(this, o).setStep("_scale", "*", {
|
|
106
|
-
x: 1,
|
|
107
|
-
y: 1,
|
|
108
|
-
z: 1
|
|
109
|
-
}), t(this, n).setStep("_translation", "+", {
|
|
110
|
-
x: 0,
|
|
111
|
-
y: 0,
|
|
112
|
-
z: 0
|
|
113
|
-
}), t(this, c).setStep("_rotation", "+", {
|
|
114
|
-
x: 0,
|
|
115
|
-
y: 0,
|
|
116
|
-
z: 0
|
|
117
|
-
}), t(this, q) && (J.notifier.subscribe(t(this, T)), t(this, T).call(this)), ht.subscribe(this.element, t(this, C)), rt.subscribe(t(this, C), ft.LAYOUT_BOX), et.subscribe(t(this, U), {
|
|
118
|
-
order: pt.LAYOUT_BOX,
|
|
119
|
-
culling: s != null && s.culling ? this.element : void 0
|
|
120
|
-
}));
|
|
121
|
-
}
|
|
122
|
-
get element() {
|
|
123
|
-
return t(this, a);
|
|
124
|
-
}
|
|
125
|
-
get containerElement() {
|
|
126
|
-
return t(this, g);
|
|
127
|
-
}
|
|
128
|
-
get position() {
|
|
129
|
-
return t(this, n).current;
|
|
130
|
-
}
|
|
131
|
-
get rotation() {
|
|
132
|
-
return t(this, c).current;
|
|
133
|
-
}
|
|
134
|
-
get scale() {
|
|
135
|
-
return t(this, o).current;
|
|
136
|
-
}
|
|
137
|
-
get scrollValue() {
|
|
138
|
-
return t(this, M);
|
|
139
|
-
}
|
|
140
|
-
get left() {
|
|
141
|
-
return t(this, d);
|
|
142
|
-
}
|
|
143
|
-
get top() {
|
|
144
|
-
return t(this, S);
|
|
145
|
-
}
|
|
146
|
-
get CSSTranslation() {
|
|
147
|
-
return t(this, f);
|
|
148
|
-
}
|
|
149
|
-
get CSSRotation() {
|
|
150
|
-
return t(this, p);
|
|
151
|
-
}
|
|
152
|
-
get CSSScale() {
|
|
153
|
-
return t(this, m);
|
|
154
|
-
}
|
|
155
|
-
get front() {
|
|
156
|
-
return t(this, w);
|
|
157
|
-
}
|
|
158
|
-
get width() {
|
|
159
|
-
return t(this, y);
|
|
160
|
-
}
|
|
161
|
-
get height() {
|
|
162
|
-
return t(this, x);
|
|
163
|
-
}
|
|
164
|
-
get depth() {
|
|
165
|
-
return t(this, X);
|
|
166
|
-
}
|
|
167
|
-
destroy() {
|
|
168
|
-
et.unsubscribe(t(this, U)), ht.unsubscribe(t(this, C)), rt.unsubscribe(t(this, C)), J.notifier.unsubscribe(t(this, T)), t(this, E).clear(), t(this, n).close(), t(this, c).close(), t(this, o).close();
|
|
169
|
-
}
|
|
170
|
-
bindObject(e) {
|
|
171
|
-
e.position && t(this, n).bind(e.position), e.rotation && t(this, c).bind(e.rotation), e.scale && t(this, o).bind(e.scale);
|
|
172
|
-
}
|
|
173
|
-
unbindObject(e) {
|
|
174
|
-
e.position && t(this, n).unbind(e.position), e.rotation && t(this, c).unbind(e.rotation), e.scale && t(this, o).unbind(e.scale);
|
|
175
|
-
}
|
|
176
|
-
setScrollStep(e) {
|
|
177
|
-
return t(this, z).includes(e) || t(this, z).push(e), () => this.deleteScrollStep(e);
|
|
178
|
-
}
|
|
179
|
-
deleteScrollStep(e) {
|
|
180
|
-
r(this, z, t(this, z).filter(
|
|
181
|
-
(s) => s !== e
|
|
182
|
-
));
|
|
183
|
-
}
|
|
184
|
-
setPositionStep(...e) {
|
|
185
|
-
t(this, n).setStep(...e);
|
|
186
|
-
}
|
|
187
|
-
getPositionStep(...e) {
|
|
188
|
-
return t(this, n).getStepValue(...e);
|
|
189
|
-
}
|
|
190
|
-
setRotationStep(...e) {
|
|
191
|
-
t(this, c).setStep(...e);
|
|
192
|
-
}
|
|
193
|
-
getRotationStep(...e) {
|
|
194
|
-
return t(this, c).getStepValue(...e);
|
|
195
|
-
}
|
|
196
|
-
getExcludedRotationSteps(...e) {
|
|
197
|
-
return t(this, c).getExcludedStepsValue(...e);
|
|
198
|
-
}
|
|
199
|
-
getIncludedRotationSteps(...e) {
|
|
200
|
-
return t(this, c).getIncludedStepsValue(...e);
|
|
201
|
-
}
|
|
202
|
-
setScaleStep(...e) {
|
|
203
|
-
t(this, o).setStep(...e);
|
|
204
|
-
}
|
|
205
|
-
getScaleStep(...e) {
|
|
206
|
-
return t(this, o).getStepValue(...e);
|
|
207
|
-
}
|
|
208
|
-
getExcludedScaleSteps(...e) {
|
|
209
|
-
return t(this, o).getExcludedStepsValue(...e);
|
|
210
|
-
}
|
|
211
|
-
getIncludedScaleSteps(...e) {
|
|
212
|
-
return t(this, o).getIncludedStepsValue(...e);
|
|
213
|
-
}
|
|
214
|
-
deletePositionStep(...e) {
|
|
215
|
-
t(this, n).deleteStep(...e);
|
|
216
|
-
}
|
|
217
|
-
getExcludedPositionSteps(...e) {
|
|
218
|
-
return t(this, n).getExcludedStepsValue(...e);
|
|
219
|
-
}
|
|
220
|
-
getIncludedPositionSteps(...e) {
|
|
221
|
-
return t(this, n).getIncludedStepsValue(...e);
|
|
222
|
-
}
|
|
223
|
-
deleteRotationStep(...e) {
|
|
224
|
-
t(this, c).deleteStep(...e);
|
|
225
|
-
}
|
|
226
|
-
deleteScaleStep(...e) {
|
|
227
|
-
t(this, o).deleteStep(...e);
|
|
228
|
-
}
|
|
229
|
-
onPosition(...e) {
|
|
230
|
-
return t(this, n).subscribe(...e);
|
|
231
|
-
}
|
|
232
|
-
offPosition(...e) {
|
|
233
|
-
t(this, n).unsubscribe(...e);
|
|
234
|
-
}
|
|
235
|
-
onScale(...e) {
|
|
236
|
-
return t(this, o).subscribe(...e);
|
|
237
|
-
}
|
|
238
|
-
offScale(...e) {
|
|
239
|
-
t(this, o).unsubscribe(...e);
|
|
240
|
-
}
|
|
241
|
-
onRotation(...e) {
|
|
242
|
-
return t(this, c).subscribe(...e);
|
|
243
|
-
}
|
|
244
|
-
offRotation(...e) {
|
|
245
|
-
t(this, c).unsubscribe(...e);
|
|
246
|
-
}
|
|
247
|
-
onResize(...e) {
|
|
248
|
-
return t(this, I).subscribe(...e);
|
|
249
|
-
}
|
|
250
|
-
offResize(...e) {
|
|
251
|
-
return t(this, I).unsubscribe(...e);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
a = new WeakMap(), g = new WeakMap(), z = new WeakMap(), R = new WeakMap(), A = new WeakMap(), L = new WeakMap(), _ = new WeakMap(), v = new WeakMap(), W = new WeakMap(), q = new WeakMap(), y = new WeakMap(), x = new WeakMap(), X = new WeakMap(), S = new WeakMap(), d = new WeakMap(), w = new WeakMap(), Y = new WeakMap(), H = new WeakMap(), B = new WeakMap(), f = new WeakMap(), p = new WeakMap(), m = new WeakMap(), c = new WeakMap(), n = new WeakMap(), o = new WeakMap(), M = new WeakMap(), E = new WeakMap(), I = new WeakMap(), D = new WeakSet(), tt = function() {
|
|
255
|
-
t(this, o).calculate(), t(this, n).calculate(), t(this, c).calculate();
|
|
256
|
-
}, k = new WeakSet(), nt = function() {
|
|
257
|
-
t(this, o).setStep("_size", "+", {
|
|
258
|
-
x: t(this, _) ? t(this, y) : 1,
|
|
259
|
-
y: t(this, _) ? t(this, x) : 1,
|
|
260
|
-
z: t(this, _) ? t(this, X) : 1
|
|
261
|
-
});
|
|
262
|
-
const e = t(this, v) ? t(this, Y) : 0, s = t(this, v) ? t(this, H) : 0, l = t(this, v) ? t(this, B) : 0;
|
|
263
|
-
t(this, n).setStep("_position", "+", {
|
|
264
|
-
x: e,
|
|
265
|
-
y: s,
|
|
266
|
-
z: l
|
|
267
|
-
}), t(this, W) ? (t(this, o).setStep("_scale", "*", {
|
|
268
|
-
x: t(this, m).x,
|
|
269
|
-
y: t(this, m).y,
|
|
270
|
-
z: t(this, m).z
|
|
271
|
-
}), t(this, n).setStep("_translation", "+", {
|
|
272
|
-
x: t(this, f).x,
|
|
273
|
-
y: t(this, f).y,
|
|
274
|
-
z: t(this, f).z
|
|
275
|
-
}), t(this, c).setStep("_rotation", "+", {
|
|
276
|
-
x: t(this, p).x,
|
|
277
|
-
y: t(this, p).y,
|
|
278
|
-
z: t(this, p).z
|
|
279
|
-
})) : (t(this, o).setStep("_scale", "*", {
|
|
280
|
-
x: 1,
|
|
281
|
-
y: 1,
|
|
282
|
-
z: 1
|
|
283
|
-
}), t(this, n).setStep("_translation", "+", {
|
|
284
|
-
x: 0,
|
|
285
|
-
y: 0,
|
|
286
|
-
z: 0
|
|
287
|
-
}), t(this, c).setStep("_rotation", "+", {
|
|
288
|
-
x: 0,
|
|
289
|
-
y: 0,
|
|
290
|
-
z: 0
|
|
291
|
-
}));
|
|
292
|
-
}, K = new WeakSet(), lt = function() {
|
|
293
|
-
const e = getComputedStyle(t(this, a));
|
|
294
|
-
r(this, y, Math.max(t(this, a).clientWidth, 1)), r(this, x, Math.max(t(this, a).clientHeight, 1)), r(this, X, Math.max(
|
|
295
|
-
dt.parse(e.getPropertyValue("--depth") || "0px"),
|
|
296
|
-
1
|
|
297
|
-
));
|
|
298
|
-
const s = Q(t(this, g)), l = j(t(this, g)), b = t(this, g).clientWidth, Z = t(this, g).clientHeight;
|
|
299
|
-
if (r(this, d, Q(t(this, a)) - s), r(this, S, j(t(this, a)) - l), t(this, R) === "z") {
|
|
300
|
-
const P = t(this, d) / b, V = t(this, S) / Z;
|
|
301
|
-
r(this, d, (P - Math.floor(P)) * b), r(this, S, (V - Math.floor(V)) * Z), t(this, A) === "left" ? r(this, w, Q(t(this, a)) - s - t(this, d)) : r(this, w, j(t(this, a)) - l - t(this, S));
|
|
302
|
-
}
|
|
303
|
-
if (r(this, d, t(this, d) + t(this, a).clientLeft), r(this, S, t(this, S) + t(this, a).clientTop), t(this, L)) {
|
|
304
|
-
const P = Math.round(b / 2), V = Math.round(Z / 2), ct = t(this, y) ? Math.round(t(this, y) / 2) : 0, at = t(this, x) ? Math.round(t(this, x) / 2) : 0, ut = t(this, d) - P + ct, St = (t(this, S) - V + at) * -1;
|
|
305
|
-
r(this, Y, ut), r(this, H, St);
|
|
306
|
-
} else
|
|
307
|
-
r(this, Y, t(this, d)), r(this, H, t(this, S));
|
|
308
|
-
r(this, B, t(this, w) * -1);
|
|
309
|
-
const $ = new WebKitCSSMatrix(e.transform), u = gt($);
|
|
310
|
-
t(this, f).x = u.translationX, t(this, f).y = u.translationY, t(this, f).z = u.translationZ, t(this, m).x = u.scaleX, t(this, m).y = u.scaleY, t(this, m).z = u.scaleZ, t(this, p).x = u.rotationX, t(this, p).y = u.rotationY, t(this, p).z = u.rotationZ, O(this, k, nt).call(this), O(this, D, tt).call(this), t(this, I).notify();
|
|
311
|
-
}, N = new WeakSet(), ot = function() {
|
|
312
|
-
t(this, M).x = 0, t(this, M).y = 0, t(this, M).z = 0;
|
|
313
|
-
for (let e = 0; e < t(this, z).length; e++) {
|
|
314
|
-
const s = t(this, z)[e]();
|
|
315
|
-
let l = s.axis;
|
|
316
|
-
t(this, R) !== "auto" && (l = t(this, R));
|
|
317
|
-
const b = s.value * (l === "x" ? -1 : t(this, L) ? 1 : -1);
|
|
318
|
-
t(this, M)[l] += b, t(this, n).setStep(`_scroll_${e}`, "+", {
|
|
319
|
-
[l]: b
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
}, C = new WeakMap(), U = new WeakMap(), T = new WeakMap();
|
|
323
|
-
export {
|
|
324
|
-
Vt as LayoutBox,
|
|
325
|
-
gt as decomposeCSSMatrix
|
|
326
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var p=Object.defineProperty,b=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var S=(s,t,e)=>t in s?p(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,f=(s,t)=>{for(var e in t||(t={}))L.call(t,e)&&S(s,e,t[e]);if(E)for(var e of E(t))N.call(t,e)&&S(s,e,t[e]);return s},c=(s,t)=>b(s,C(t));var w=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(w(s,t,"read from private field"),e?e.call(s):t.get(s)),l=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},v=(s,t,e,o)=>(w(s,t,"write to private field"),o?o.call(s,e):t.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../notifier/index.cjs"),_=require("../function-MthRj-GJ.cjs");var i,h,a,d,n,u,g;class q{constructor(){l(this,i,new Map);l(this,h,new y.Notifier);l(this,a,new y.Notifier);l(this,d,new y.Notifier);l(this,n,!1);l(this,u,t=>{const{loaded:e,total:o}=this.getStats();r(this,h).notify({progress:e/o,loaded:e,total:o,namespace:t}),r(this,g).call(this)});l(this,g,_.debounce(()=>{const{loaded:t,total:e}=this.getStats();if(t===e){v(this,n,!0);const{total:o}=this.getStats();r(this,a).notify({total:o})}},150))}get progressEvent(){return r(this,h)}get completeEvent(){return r(this,a)}get errorEvent(){return r(this,d)}get _counter(){return r(this,i)}get isComplete(){return r(this,n)}reset(){v(this,n,!1),r(this,i).clear()}setTotal(t,e=1){r(this,n)||r(this,i).set(t,{loaded:0,total:e})}setLoaded(t,e=1){if(!r(this,n)&&r(this,i).has(t)){const o=r(this,i).get(t);o.loaded!==e&&(r(this,i).set(t,c(f({},o),{loaded:e})),r(this,u).call(this,t))}}setError(t,e){if(!r(this,n)&&r(this,i).has(t)){const o=r(this,i).get(t);r(this,i).set(t,c(f({},o),{total:o.total-1})),r(this,d).notify({namespace:t,url:e})}}getStats(){return Array.from(r(this,i)).reduce((t,e)=>({loaded:t.loaded+e[1].loaded,total:t.total+e[1].total}),{loaded:0,total:0})}}i=new WeakMap,h=new WeakMap,a=new WeakMap,d=new WeakMap,n=new WeakMap,u=new WeakMap,g=new WeakMap;const M=new q;exports.loading=M;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Notifier } from '../notifier';
|
|
2
|
-
|
|
3
|
-
export interface LoadingProgressDetail {
|
|
4
|
-
loaded: number;
|
|
5
|
-
total: number;
|
|
6
|
-
progress: number;
|
|
7
|
-
namespace: string;
|
|
8
|
-
}
|
|
9
|
-
export interface LoadingErrorDetail {
|
|
10
|
-
namespace: string;
|
|
11
|
-
url: string;
|
|
12
|
-
}
|
|
13
|
-
export interface LoadingCompleteDetail {
|
|
14
|
-
total: number;
|
|
15
|
-
}
|
|
16
|
-
export type LoadingProgressSubscriber = (detail: LoadingProgressDetail) => void;
|
|
17
|
-
export type LoadingErrorSubscriber = (detail: LoadingErrorDetail) => void;
|
|
18
|
-
export type LoadingCompleteSubscriber = (detail: LoadingCompleteDetail) => void;
|
|
19
|
-
declare class Loading {
|
|
20
|
-
#private;
|
|
21
|
-
get progressEvent(): Notifier<LoadingProgressSubscriber>;
|
|
22
|
-
get completeEvent(): Notifier<LoadingCompleteSubscriber>;
|
|
23
|
-
get errorEvent(): Notifier<LoadingErrorSubscriber>;
|
|
24
|
-
get _counter(): Map<string, {
|
|
25
|
-
total: number;
|
|
26
|
-
loaded: number;
|
|
27
|
-
}>;
|
|
28
|
-
get isComplete(): boolean;
|
|
29
|
-
reset(): void;
|
|
30
|
-
setTotal(namespace: string, total?: number): void;
|
|
31
|
-
setLoaded(namespace: string, loaded?: number): void;
|
|
32
|
-
setError(namespace: string, url: string): void;
|
|
33
|
-
getStats(): {
|
|
34
|
-
loaded: number;
|
|
35
|
-
total: number;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export declare const loading: Loading;
|
|
39
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var d=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var o=(e,r,s)=>(d(e,r,"read from private field"),s?s.call(e):r.get(e)),c=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},u=(e,r,s,n)=>(d(e,r,"write to private field"),n?n.call(e,s):r.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../order/index.cjs"),l=require("../window-resizer/index.cjs"),h=require("../Store-Cr3VaD9G.cjs");var i,t;class b extends h.Store{constructor(s){super(!1);c(this,i,void 0);c(this,t,void 0);u(this,i,s),u(this,t,l.windowResizer.subscribe(()=>{matchMedia(o(this,i)).matches?this.current=!0:this.current=!1},a.RESIZE_ORDER.MEDIA))}close(){super.close(),o(this,t).call(this)}}i=new WeakMap,t=new WeakMap;exports.Media=b;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Store } from '../store';
|
|
2
|
-
|
|
3
|
-
export type MediaCallback = () => void;
|
|
4
|
-
export type MediaQueries<T extends string = string> = Map<T, {
|
|
5
|
-
match: MediaCallback;
|
|
6
|
-
unmatch?: MediaCallback;
|
|
7
|
-
}>;
|
|
8
|
-
export declare class Media extends Store<boolean> {
|
|
9
|
-
#private;
|
|
10
|
-
constructor(query: string);
|
|
11
|
-
close(): void;
|
|
12
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
var a = (e, s, r) => {
|
|
2
|
-
if (!s.has(e))
|
|
3
|
-
throw TypeError("Cannot " + r);
|
|
4
|
-
};
|
|
5
|
-
var o = (e, s, r) => (a(e, s, "read from private field"), r ? r.call(e) : s.get(e)), c = (e, s, r) => {
|
|
6
|
-
if (s.has(e))
|
|
7
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
s instanceof WeakSet ? s.add(e) : s.set(e, r);
|
|
9
|
-
}, u = (e, s, r, m) => (a(e, s, "write to private field"), m ? m.call(e, r) : s.set(e, r), r);
|
|
10
|
-
import { RESIZE_ORDER as h } from "../order/index.js";
|
|
11
|
-
import { windowResizer as n } from "../window-resizer/index.js";
|
|
12
|
-
import { S as f } from "../Store-Qr3SNOSf.js";
|
|
13
|
-
var t, i;
|
|
14
|
-
class b extends f {
|
|
15
|
-
constructor(r) {
|
|
16
|
-
super(!1);
|
|
17
|
-
c(this, t, void 0);
|
|
18
|
-
c(this, i, void 0);
|
|
19
|
-
u(this, t, r), u(this, i, n.subscribe(() => {
|
|
20
|
-
matchMedia(o(this, t)).matches ? this.current = !0 : this.current = !1;
|
|
21
|
-
}, h.MEDIA));
|
|
22
|
-
}
|
|
23
|
-
close() {
|
|
24
|
-
super.close(), o(this, i).call(this);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
t = new WeakMap(), i = new WeakMap();
|
|
28
|
-
export {
|
|
29
|
-
b as Media
|
|
30
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PopoverElement } from '../popover';
|
|
2
|
-
|
|
3
|
-
export declare class ModalElement extends PopoverElement {
|
|
4
|
-
#private;
|
|
5
|
-
constructor();
|
|
6
|
-
protected connectedCallback(): void;
|
|
7
|
-
protected disconnectedCallback(): void;
|
|
8
|
-
}
|
|
9
|
-
declare global {
|
|
10
|
-
interface HTMLElementTagNameMap {
|
|
11
|
-
'e-modal': ModalElement;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var d=(e,t,o)=>{if(!t.has(e))throw TypeError("Cannot "+o)};var i=(e,t,o)=>(d(e,t,"read from private field"),o?o.call(e):t.get(e)),a=(e,t,o)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,o)},c=(e,t,o,l)=>(d(e,t,"write to private field"),l?l.call(e,o):t.set(e,o),o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-Cr3VaD9G.cjs");const h=require("../browser-CpzFX2xg.cjs");require("../ticker/index.cjs");const n=require("../tags-BdW7ATzD.cjs"),b=require("../createStylesheet-BBBiyAsF.cjs"),f=require("../popover/index.cjs"),m=require("../theme/index.cjs"),p=b.createStylesheet({":host":{position:"fixed",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%",transitionProperty:"opacity",transitionDuration:"var(--transition-duration)"},":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",zIndex:"1",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:"var(--transition-duration)",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, ${m.aptechkaTheme.colorMain.var})`},".close-button-default::before":{transform:"rotate(-45deg)"},".close-button-default::after":{transform:"rotate(45deg)"}});var s,r;class u extends f.PopoverElement{constructor(){super();a(this,s,null);a(this,r,null);h.isBrowser&&(this.attachShadow({mode:"open"}).adoptedStyleSheets.push(p),n.element(this,{children:n.div({class:"inner",outside:!0,children:n.div({class:"content",children:[n.element("e-popover-button",{type:"close",target:"parent",class:"close-button",lightChildren:[n.slot({name:"close-button",children:n.span({class:"close-button-default"})})]}),n.slot()]}),ref:l=>c(this,r,l)})}),c(this,s,new ResizeObserver(()=>{i(this,r).scrollHeight>i(this,r).clientHeight?this.classList.add("overflow"):this.classList.remove("overflow")})))}connectedCallback(){super.connectedCallback(),i(this,s).observe(this)}disconnectedCallback(){super.disconnectedCallback(),i(this,s).disconnect()}}s=new WeakMap,r=new WeakMap;customElements.get("e-modal")||customElements.define("e-modal",u);exports.ModalElement=u;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ModalElement } from './ModalElement';
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ChangeHistoryAction } from '../utils';
|
|
2
|
-
import { Link } from './Link';
|
|
3
|
-
|
|
4
|
-
export interface MorphParameters {
|
|
5
|
-
base?: string;
|
|
6
|
-
waitForHeadToLoad?: boolean;
|
|
7
|
-
cachePages?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface MorphNavigationEntry {
|
|
10
|
-
pathname: string;
|
|
11
|
-
isCached: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface MorphPreprocessorEntry extends MorphNavigationEntry {
|
|
14
|
-
resolve: () => void;
|
|
15
|
-
reject: () => void;
|
|
16
|
-
}
|
|
17
|
-
export type MorphPreprocessor = (entry: MorphPreprocessorEntry) => void;
|
|
18
|
-
export type MorphNavigationCallback = (entry: MorphNavigationEntry) => void;
|
|
19
|
-
export type MorphPostprocessor = MorphNavigationCallback;
|
|
20
|
-
export declare class Morph {
|
|
21
|
-
#private;
|
|
22
|
-
preprocessor?: MorphPreprocessor;
|
|
23
|
-
postprocessor?: MorphPostprocessor;
|
|
24
|
-
constructor(parameters?: MorphParameters);
|
|
25
|
-
get currentPathname(): string;
|
|
26
|
-
get links(): Link[];
|
|
27
|
-
normalizePath(path: string): {
|
|
28
|
-
leaf: string;
|
|
29
|
-
pathname: string;
|
|
30
|
-
parameters: string;
|
|
31
|
-
hash: string;
|
|
32
|
-
};
|
|
33
|
-
beforeNavigationEvent(callback: MorphNavigationCallback): () => void;
|
|
34
|
-
afterNavigationEvent(callback: MorphNavigationCallback): () => void;
|
|
35
|
-
prefetch(path: string): Promise<Document>;
|
|
36
|
-
navigate(path: string, historyAction?: ChangeHistoryAction): Promise<void>;
|
|
37
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var at=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n);var U=(n,t,i)=>{if(!t.has(n))throw TypeError("Cannot "+i)};var e=(n,t,i)=>(U(n,t,"read from private field"),i?i.call(n):t.get(n)),r=(n,t,i)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,i)},c=(n,t,i,a)=>(U(n,t,"write to private field"),a?a.call(n,i):t.set(n,i),i);var d=(n,t,i)=>(U(n,t,"access private method"),i);var T=(n,t,i)=>new Promise((a,s)=>{var u=l=>{try{f(i.next(l))}catch(g){s(g)}},p=l=>{try{f(i.throw(l))}catch(g){s(g)}},f=l=>l.done?a(l.value):Promise.resolve(l.value).then(u,p);f((i=i.apply(n,t)).next())});var ot=(n,t,i)=>(t=n[at("asyncIterator")])?t.call(n):(n=n[at("iterator")](),t={},i=(a,s)=>(s=n[a])&&(t[a]=u=>new Promise((p,f,l)=>(u=s.call(n,u),l=u.done,Promise.resolve(u.value).then(g=>p({value:g,done:l}),f)))),i("next"),i("return"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ht=require("../notifier/index.cjs"),mt=require("../browser-CpzFX2xg.cjs"),V=require("../url-C3dWnJQg.cjs");var w,h,m,k,P,C,A;class ft{constructor(t,i){r(this,w,void 0);r(this,h,void 0);r(this,m,void 0);r(this,k,void 0);r(this,P,void 0);r(this,C,t=>{t.preventDefault(),e(this,w).links.forEach(i=>{var a;e(this,m)===e(i,m)||(a=e(i,P))!=null&&a.includes(e(this,m))?e(i,h).classList.add("clicked"):e(i,h).classList.remove("clicked")}),e(this,w).navigate(e(this,m),e(this,k))});r(this,A,()=>{e(this,w).prefetch(e(this,m)),e(this,h).removeEventListener("pointerenter",e(this,A))});var u,p;c(this,w,i),c(this,h,t),c(this,m,e(this,h).getAttribute("href")||"/"),c(this,k,e(this,h).getAttribute("data-history-action")||"push"),e(this,h).addEventListener("click",e(this,C));const a=i.normalizePath(e(this,m)),s=i.normalizePath(location.pathname);c(this,P,(u=e(this,h).getAttribute("data-match-paths"))==null?void 0:u.split(",").map(f=>i.normalizePath(f.trim()).pathname)),e(this,h).hasAttribute("data-include")?s.pathname.includes(a.pathname)&&e(this,h).classList.add("current"):a.pathname===s.pathname||(p=e(this,P))!=null&&p.includes(s.pathname)?(e(this,h).classList.add("current"),e(this,h).classList.add("clicked")):e(this,h).classList.remove("clicked"),e(this,h).hasAttribute("data-prefetch")&&e(this,h).addEventListener("pointerenter",e(this,A))}destroy(){e(this,h).removeEventListener("click",e(this,C)),e(this,h).removeEventListener("pointerenter",e(this,A)),e(this,h).classList.remove("current")}}w=new WeakMap,h=new WeakMap,m=new WeakMap,k=new WeakMap,P=new WeakMap,C=new WeakMap,A=new WeakMap;var M,S,z,q,H,K,y,v,L,x,D,R,X,F,Z,I,$,Y,ct,O,tt,_;class pt{constructor(t){r(this,R);r(this,F);r(this,I);r(this,Y);r(this,O);r(this,M,null);r(this,S,null);r(this,z,null);r(this,q,null);r(this,H,[]);r(this,K,new DOMParser);r(this,y,new Map);r(this,v,void 0);r(this,L,null);r(this,x,new ht.Notifier);r(this,D,new ht.Notifier);r(this,_,t=>{t.state&&this.navigate(t.state,"none")});if(mt.isBrowser){t!=null&&t.base?c(this,M,V.normalizeBase(t.base)):c(this,M,"/"),c(this,S,(t==null?void 0:t.waitForHeadToLoad)!==!1),c(this,z,(t==null?void 0:t.cachePages)!==!1),c(this,q,d(this,I,$).call(this,document.body));const i=this.normalizePath(location.pathname);c(this,L,i.pathname),document.documentElement.setAttribute("data-current-pathname",e(this,L)),document.documentElement.setAttribute("data-current-leaf",i.leaf),d(this,F,Z).call(this),addEventListener("popstate",e(this,_))}}get currentPathname(){return e(this,L)}get links(){return e(this,H)}normalizePath(t){return V.splitPath(t,e(this,M))}beforeNavigationEvent(t){return e(this,x).subscribe(t)}afterNavigationEvent(t){return e(this,D).subscribe(t)}prefetch(t){return T(this,null,function*(){const i=this.normalizePath(t);return d(this,R,X).call(this,i.pathname)})}navigate(t,i="push"){return T(this,null,function*(){var g;const a=this.normalizePath(t);let{pathname:s,hash:u,parameters:p,leaf:f}=a;if(e(this,v)===s||e(this,L)===s)return;c(this,v,s);const l=e(this,y).has(s);try{let B=!0;if(e(this,x).notify({pathname:s,isCached:l}),this.preprocessor)try{yield new Promise((o,E)=>{var b;(b=this.preprocessor)==null||b.call(this,{pathname:s,resolve:o,reject:E,isCached:l})})}catch(o){o?console.error(o):console.log("Route change canceled"),B=!1}if(!B||e(this,v)!==s)return;const et=e(this,y).get(s)||(yield d(this,R,X).call(this,s));if(e(this,v)!==s)return;const it=Array.from(document.head.children),st=Array.from(et.head.cloneNode(!0).children),nt=d(this,Y,ct).call(this,it,st),lt=d(this,O,tt).call(this,it,nt),W=d(this,O,tt).call(this,st,nt);W.forEach((o,E)=>{if(o.tagName==="SCRIPT"&&o.getAttribute("src")){const b=document.createElement("script");b.type="module",b.src=o.getAttribute("src"),W[E]=b}}),W.forEach(o=>{document.head.appendChild(o)});const G=W.filter(o=>(o.tagName==="STYLE"||o.tagName==="SCRIPT"||o.tagName==="LINK")&&o.getAttribute("rel")!=="canonical");e(this,S)&&G.length&&(yield new Promise(o=>T(this,null,function*(){let E=0;try{for(var b=ot(G),dt,J,j;dt=!(J=yield b.next()).done;dt=!1){const N=J.value;N.onload=()=>{E++,E===G.length&&o()}}}catch(J){j=[J]}finally{try{dt&&(J=b.return)&&(yield J.call(b))}finally{if(j)throw j[0]}}}))),lt.forEach(o=>{o.hasAttribute("data-permanent")||o.remove()}),c(this,L,s),V.changeHistory(i,s,p,u);const ut=d(this,I,$).call(this,et.body.cloneNode(!0));e(this,q).forEach((o,E)=>{const b=ut[E];let dt=[...o.childNodes],J=[...b.childNodes];dt.forEach(j=>{if(j instanceof HTMLElement){const N=j.getAttribute("data-remain");let rt;J=J.filter(Q=>Q instanceof HTMLElement&&N&&Q.getAttribute("data-remain")===N?(rt=Q,!1):!0),N&&rt||j.remove()}else j.remove()}),o.append(...J)}),d(this,F,Z).call(this),document.documentElement.setAttribute("data-current-pathname",s),document.documentElement.setAttribute("data-current-leaf",f),(g=this.postprocessor)==null||g.call(this,{pathname:s,isCached:l}),e(this,D).notify({pathname:s,isCached:l})}catch(B){console.error(B)}c(this,v,void 0)})}}M=new WeakMap,S=new WeakMap,z=new WeakMap,q=new WeakMap,H=new WeakMap,K=new WeakMap,y=new WeakMap,v=new WeakMap,L=new WeakMap,x=new WeakMap,D=new WeakMap,R=new WeakSet,X=function(t){return T(this,null,function*(){const i=e(this,y).get(t);if(i)return i;const s=yield(yield fetch(t)).text(),u=e(this,K).parseFromString(s,"text/html");return e(this,z)&&e(this,y).set(t,u),u})},F=new WeakSet,Z=function(){const t=[...document.documentElement.querySelectorAll("a")].filter(i=>{var a;return(a=i.getAttribute("href"))==null?void 0:a.startsWith("/")});e(this,H).forEach(i=>i.destroy()),c(this,H,t.map(i=>new ft(i,this)))},I=new WeakSet,$=function(t){return[...t.querySelectorAll("[data-morph]")]},Y=new WeakSet,ct=function(t,i){return t.filter(a=>i.find(s=>s.outerHTML===a.outerHTML))},O=new WeakSet,tt=function(t,i){return t.filter(a=>!i.find(s=>s.outerHTML===a.outerHTML))},_=new WeakMap;exports.Morph=pt;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Morph, type MorphPostprocessor, type MorphNavigationCallback, type MorphPreprocessor, type MorphPreprocessorEntry, type MorphNavigationEntry, type MorphParameters, } from './Morph';
|