@zyzgroup/core-web 0.1.90 → 0.1.93
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/dist/css/better.css +5 -0
- package/dist/css/font.css +108 -0
- package/dist/css/theme.css +85 -56
- package/dist/zyzgroup_core_web.iife.js +115 -36
- package/dist/zyzgroup_core_web.iife.js.map +1 -1
- package/dist/zyzgroup_core_web.js +25535 -20837
- package/dist/zyzgroup_core_web.js.map +1 -1
- package/dist/zyzgroup_core_web.umd.cjs +115 -36
- package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
- package/package.json +10 -2
- package/types/Pagination.d.ts +1 -1
- package/types/Pagination.d.ts.map +1 -1
- package/types/WebMonitor.d.ts +6 -0
- package/types/WebMonitor.d.ts.map +1 -1
- package/types/WebSocketClient.d.ts.map +1 -1
- package/types/animate/Timeline.d.ts.map +1 -1
- package/types/animate/index.d.ts +0 -1
- package/types/animate/index.d.ts.map +1 -1
- package/types/canvas/html-in-canvas.d.ts +1 -0
- package/types/canvas/html-in-canvas.d.ts.map +1 -0
- package/types/components/SideEffectTags.d.ts +25 -0
- package/types/components/SideEffectTags.d.ts.map +1 -0
- package/types/components/angular/demoAngular.d.ts +1 -0
- package/types/components/angular/demoAngular.d.ts.map +1 -0
- package/types/components/component-core.d.ts +34 -0
- package/types/components/component-core.d.ts.map +1 -0
- package/types/components/index.d.ts +3 -0
- package/types/components/index.d.ts.map +1 -0
- package/types/components/react/CatFriends.d.ts +2 -0
- package/types/components/react/CatFriends.d.ts.map +1 -0
- package/types/components/react/DemoForm.d.ts +2 -0
- package/types/components/react/DemoForm.d.ts.map +1 -0
- package/types/components/react/ErrorBoundary.d.ts +16 -0
- package/types/components/react/ErrorBoundary.d.ts.map +1 -0
- package/types/components/react/TravelPlan.d.ts +2 -0
- package/types/components/react/TravelPlan.d.ts.map +1 -0
- package/types/components/react/VideoPlayer.d.ts +5 -0
- package/types/components/react/VideoPlayer.d.ts.map +1 -0
- package/types/components/react/demoReact.d.ts +4 -0
- package/types/components/react/demoReact.d.ts.map +1 -0
- package/types/components/react/motion/Refresh.d.ts +4 -0
- package/types/components/react/motion/Refresh.d.ts.map +1 -0
- package/types/components/react/motion/demo/AddToBasket.d.ts +12 -0
- package/types/components/react/motion/demo/AddToBasket.d.ts.map +1 -0
- package/types/components/react/motion/demo/Cursor.d.ts +4 -0
- package/types/components/react/motion/demo/Cursor.d.ts.map +1 -0
- package/types/components/react/motion/demo/LayoutAnchor.d.ts +6 -0
- package/types/components/react/motion/demo/LayoutAnchor.d.ts.map +1 -0
- package/types/components/react/motion/demo/LayoutAnimation.d.ts +2 -0
- package/types/components/react/motion/demo/LayoutAnimation.d.ts.map +1 -0
- package/types/components/react/motion/demo/LayoutGroup.d.ts +2 -0
- package/types/components/react/motion/demo/LayoutGroup.d.ts.map +1 -0
- package/types/components/react/motion/demo/MotionDemo.d.ts +2 -0
- package/types/components/react/motion/demo/MotionDemo.d.ts.map +1 -0
- package/types/components/react/motion/demo/Navigation.d.ts +2 -0
- package/types/components/react/motion/demo/Navigation.d.ts.map +1 -0
- package/types/components/react/motion/demo/Reordering.d.ts +2 -0
- package/types/components/react/motion/demo/Reordering.d.ts.map +1 -0
- package/types/components/react/motion/demo/ScrollLinked.d.ts +2 -0
- package/types/components/react/motion/demo/ScrollLinked.d.ts.map +1 -0
- package/types/components/react/motion/demo/ScrollTriggered.d.ts +2 -0
- package/types/components/react/motion/demo/ScrollTriggered.d.ts.map +1 -0
- package/types/components/react/motion/demo/SharedLayoutAnimation.d.ts +2 -0
- package/types/components/react/motion/demo/SharedLayoutAnimation.d.ts.map +1 -0
- package/types/components/react/motion/demo/StateAnimations.d.ts +2 -0
- package/types/components/react/motion/demo/StateAnimations.d.ts.map +1 -0
- package/types/components/react/motion/demo/UseTransform.d.ts +2 -0
- package/types/components/react/motion/demo/UseTransform.d.ts.map +1 -0
- package/types/components/react/ssr/Html.d.ts +7 -0
- package/types/components/react/ssr/Html.d.ts.map +1 -0
- package/types/components/vnode.d.ts +12 -0
- package/types/components/vnode.d.ts.map +1 -0
- package/types/components/vue/demoVue.d.ts +16 -0
- package/types/components/vue/demoVue.d.ts.map +1 -0
- package/types/{hooks/useCookie.d.ts → createCookie.d.ts} +2 -2
- package/types/createCookie.d.ts.map +1 -0
- package/types/{hooks/useIndexDB.d.ts → createIndexDB.d.ts} +1 -1
- package/types/createIndexDB.d.ts.map +1 -0
- package/types/{hooks/useLocalStorage.d.ts → createLocalStorage.d.ts} +2 -2
- package/types/createLocalStorage.d.ts.map +1 -0
- package/types/{hooks/useSessionStorage.d.ts → createSessionStorage.d.ts} +2 -2
- package/types/createSessionStorage.d.ts.map +1 -0
- package/types/{hooks/useAttribute.d.ts → dom/attribute.d.ts} +3 -3
- package/types/dom/attribute.d.ts.map +1 -0
- package/types/dom/coords.d.ts +6 -0
- package/types/dom/coords.d.ts.map +1 -0
- package/types/{hooks/useElementEventBus.d.ts → dom/createElementEventBus.d.ts} +8 -8
- package/types/dom/createElementEventBus.d.ts.map +1 -0
- package/types/{hooks/useEventListener.d.ts → dom/createEventListener.d.ts} +7 -7
- package/types/dom/createEventListener.d.ts.map +1 -0
- package/types/dom/dataset.d.ts +7 -0
- package/types/dom/dataset.d.ts.map +1 -0
- package/types/{hooks/useElement.d.ts → dom/dom.d.ts} +10 -9
- package/types/dom/dom.d.ts.map +1 -0
- package/types/{hooks/useElementEvents.d.ts → dom/elementEvents.d.ts} +25 -85
- package/types/dom/elementEvents.d.ts.map +1 -0
- package/types/{hooks/useFeRouteChange.d.ts → dom/feRouteChange.d.ts} +6 -6
- package/types/dom/feRouteChange.d.ts.map +1 -0
- package/types/dom/index.d.ts +15 -0
- package/types/dom/index.d.ts.map +1 -1
- package/types/dom/intersection.d.ts +4 -0
- package/types/dom/intersection.d.ts.map +1 -0
- package/types/dom/matchMedia.d.ts +3 -0
- package/types/dom/matchMedia.d.ts.map +1 -0
- package/types/{hooks/useMutation.d.ts → dom/mutation.d.ts} +2 -2
- package/types/dom/mutation.d.ts.map +1 -0
- package/types/dom/resize.d.ts +9 -0
- package/types/dom/resize.d.ts.map +1 -0
- package/types/{hooks/useSafeArea.d.ts → dom/safeArea.d.ts} +2 -2
- package/types/dom/safeArea.d.ts.map +1 -0
- package/types/{hooks/useStyle.d.ts → dom/style.d.ts} +1 -1
- package/types/dom/style.d.ts.map +1 -0
- package/types/dom/visible.d.ts +7 -0
- package/types/dom/visible.d.ts.map +1 -0
- package/types/file.d.ts +9 -15
- package/types/file.d.ts.map +1 -1
- package/types/hooks/alimini/createAliMiniControllableState.d.ts +12 -0
- package/types/hooks/alimini/createAliMiniControllableState.d.ts.map +1 -0
- package/types/hooks/core/index.d.ts +3 -0
- package/types/hooks/core/index.d.ts.map +1 -0
- package/types/hooks/core/reduxStore.d.ts +30 -0
- package/types/hooks/core/reduxStore.d.ts.map +1 -0
- package/types/hooks/core/stateStore.d.ts +10 -0
- package/types/hooks/core/stateStore.d.ts.map +1 -0
- package/types/hooks/index.d.ts +3 -22
- package/types/hooks/index.d.ts.map +1 -1
- package/types/hooks/react/index.d.ts +5 -0
- package/types/hooks/react/index.d.ts.map +1 -0
- package/types/hooks/react/useAnimationLoop.d.ts +2 -0
- package/types/hooks/react/useAnimationLoop.d.ts.map +1 -0
- package/types/hooks/react/useAppState.d.ts +15 -0
- package/types/hooks/react/useAppState.d.ts.map +1 -0
- package/types/hooks/react/useDelayedValue.d.ts +2 -0
- package/types/hooks/react/useDelayedValue.d.ts.map +1 -0
- package/types/hooks/react/useDimensions.d.ts +5 -0
- package/types/hooks/react/useDimensions.d.ts.map +1 -0
- package/types/hooks/react/useDoublePress.d.ts +3 -0
- package/types/hooks/react/useDoublePress.d.ts.map +1 -0
- package/types/hooks/react/useFadeIn.d.ts +3 -0
- package/types/hooks/react/useFadeIn.d.ts.map +1 -0
- package/types/hooks/react/useFetch.d.ts +2 -0
- package/types/hooks/react/useFetch.d.ts.map +1 -0
- package/types/hooks/react/useFormInput.d.ts +5 -0
- package/types/hooks/react/useFormInput.d.ts.map +1 -0
- package/types/hooks/react/useImmer.d.ts +9 -0
- package/types/hooks/react/useImmer.d.ts.map +1 -0
- package/types/hooks/react/useMailbox.d.ts +4 -0
- package/types/hooks/react/useMailbox.d.ts.map +1 -0
- package/types/hooks/react/useMinDisplayTime.d.ts +2 -0
- package/types/hooks/react/useMinDisplayTime.d.ts.map +1 -0
- package/types/hooks/react/useOnlineStatus.d.ts +2 -0
- package/types/hooks/react/useOnlineStatus.d.ts.map +1 -0
- package/types/hooks/react/usePointerPosition.d.ts +5 -0
- package/types/hooks/react/usePointerPosition.d.ts.map +1 -0
- package/types/hooks/react/useProgressBar.d.ts +1 -0
- package/types/hooks/react/useProgressBar.d.ts.map +1 -0
- package/types/hooks/react/useQuery.d.ts +12 -0
- package/types/hooks/react/useQuery.d.ts.map +1 -0
- package/types/hooks/react/useReactControllableState.d.ts +10 -0
- package/types/hooks/react/useReactControllableState.d.ts.map +1 -0
- package/types/hooks/react/useTimeout.d.ts +2 -0
- package/types/hooks/react/useTimeout.d.ts.map +1 -0
- package/types/hooks/react/useTimer.d.ts +2 -0
- package/types/hooks/react/useTimer.d.ts.map +1 -0
- package/types/hooks/useDraw/DrawContext.d.ts +3 -3
- package/types/hooks/useDraw/DrawContext.d.ts.map +1 -1
- package/types/hooks/useDraw/Shape.d.ts +2 -2
- package/types/hooks/useDraw/Shape.d.ts.map +1 -1
- package/types/hooks/useDraw/line/Arc.d.ts +1 -1
- package/types/hooks/useDraw/line/Arc.d.ts.map +1 -1
- package/types/hooks/useDraw/line/CubicBezier.d.ts +1 -1
- package/types/hooks/useDraw/line/CubicBezier.d.ts.map +1 -1
- package/types/hooks/useDraw/line/L.d.ts +1 -1
- package/types/hooks/useDraw/line/L.d.ts.map +1 -1
- package/types/hooks/useDraw/line/PathD.d.ts +1 -1
- package/types/hooks/useDraw/line/PathD.d.ts.map +1 -1
- package/types/hooks/useDraw/line/QuadraticBezier.d.ts +1 -1
- package/types/hooks/useDraw/line/QuadraticBezier.d.ts.map +1 -1
- package/types/hooks/useDraw/shapes/ArrowShape.d.ts +1 -1
- package/types/hooks/useDraw/shapes/ArrowShape.d.ts.map +1 -1
- package/types/hooks/useDraw/shapes/BallShape.d.ts +1 -1
- package/types/hooks/useDraw/shapes/BallShape.d.ts.map +1 -1
- package/types/hooks/useDraw/shapes/ConfettiShapeCombo.d.ts.map +1 -1
- package/types/hooks/useDraw/shapes/CurveShape.d.ts +1 -1
- package/types/hooks/useDraw/shapes/CurveShape.d.ts.map +1 -1
- package/types/hooks/useDraw/shapes/EllipseShape.d.ts +1 -1
- package/types/hooks/useDraw/shapes/EllipseShape.d.ts.map +1 -1
- package/types/hooks/useDraw/shapes/FoxShape.d.ts +1 -1
- package/types/hooks/useDraw/shapes/FoxShape.d.ts.map +1 -1
- package/types/hooks/useDraw/shapes/HeartShape.d.ts +1 -1
- package/types/hooks/useDraw/shapes/HeartShape.d.ts.map +1 -1
- package/types/hooks/useDraw/shapes/HeartVariantShape.d.ts +1 -1
- package/types/hooks/useDraw/shapes/HeartVariantShape.d.ts.map +1 -1
- package/types/hooks/useDraw/shapes/LineShape.d.ts +1 -1
- package/types/hooks/useDraw/shapes/LineShape.d.ts.map +1 -1
- package/types/hooks/useDraw/shapes/PointsShape.d.ts +1 -1
- package/types/hooks/useDraw/shapes/PointsShape.d.ts.map +1 -1
- package/types/hooks/useDraw/shapes/RabbitShape.d.ts +1 -1
- package/types/hooks/useDraw/shapes/RabbitShape.d.ts.map +1 -1
- package/types/hooks/useDraw/shapes/RectShape.d.ts +1 -1
- package/types/hooks/useDraw/shapes/RectShape.d.ts.map +1 -1
- package/types/hooks/useDraw/shapes/RingShape.d.ts +1 -1
- package/types/hooks/useDraw/shapes/RingShape.d.ts.map +1 -1
- package/types/hooks/useDraw/shapes/StarShape.d.ts +1 -1
- package/types/hooks/useDraw/shapes/StarShape.d.ts.map +1 -1
- package/types/hooks/useDraw/shapes/TextShape.d.ts +1 -1
- package/types/hooks/useDraw/shapes/TextShape.d.ts.map +1 -1
- package/types/hooks/useLocale/useLocale.d.ts +2 -2
- package/types/hooks/useLocale/useLocale.d.ts.map +1 -1
- package/types/hooks/vue/index.d.ts +3 -0
- package/types/hooks/vue/index.d.ts.map +1 -0
- package/types/hooks/vue/useAppState.d.ts +13 -0
- package/types/hooks/vue/useAppState.d.ts.map +1 -0
- package/types/hooks/vue/useVueControllableState.d.ts +11 -0
- package/types/hooks/vue/useVueControllableState.d.ts.map +1 -0
- package/types/hooks/wxmini/createWxMiniControllableState.d.ts +12 -0
- package/types/hooks/wxmini/createWxMiniControllableState.d.ts.map +1 -0
- package/types/index.d.ts +7 -8
- package/types/index.d.ts.map +1 -1
- package/types/math/BufferAttribute.d.ts +0 -71
- package/types/math/BufferAttribute.d.ts.map +1 -1
- package/types/math/Euler.d.ts +0 -32
- package/types/math/Euler.d.ts.map +1 -1
- package/types/math/Matrix.d.ts +0 -6
- package/types/math/Matrix.d.ts.map +1 -1
- package/types/math/Quaternion.d.ts +0 -51
- package/types/math/Quaternion.d.ts.map +1 -1
- package/types/math/Shape.d.ts +5 -4
- package/types/math/Shape.d.ts.map +1 -1
- package/types/math/Vector.d.ts +0 -11
- package/types/math/Vector.d.ts.map +1 -1
- package/types/math/core/Box3.d.ts +0 -45
- package/types/math/core/Box3.d.ts.map +1 -1
- package/types/math/core/Frustum.d.ts +0 -22
- package/types/math/core/Frustum.d.ts.map +1 -1
- package/types/math/core/Object3D.d.ts +0 -95
- package/types/math/core/Object3D.d.ts.map +1 -1
- package/types/math/core/Plane.d.ts +0 -30
- package/types/math/core/Plane.d.ts.map +1 -1
- package/types/math/core/Ray.d.ts +0 -31
- package/types/math/core/Ray.d.ts.map +1 -1
- package/types/math/core/Sphere.d.ts +0 -28
- package/types/math/core/Sphere.d.ts.map +1 -1
- package/types/math/core/Triangle.d.ts +0 -33
- package/types/math/core/Triangle.d.ts.map +1 -1
- package/types/math/index.d.ts +0 -1
- package/types/math/index.d.ts.map +1 -1
- package/types/math/line/Arc.d.ts +2 -2
- package/types/math/line/Arc.d.ts.map +1 -1
- package/types/math/line/CubicBezier.d.ts +2 -2
- package/types/math/line/CubicBezier.d.ts.map +1 -1
- package/types/math/line/L.d.ts +2 -2
- package/types/math/line/L.d.ts.map +1 -1
- package/types/math/line/PathD.d.ts +6 -6
- package/types/math/line/PathD.d.ts.map +1 -1
- package/types/math/line/QuadraticBezier.d.ts +2 -2
- package/types/math/line/QuadraticBezier.d.ts.map +1 -1
- package/types/math/shapes/Light3D.d.ts +2 -2
- package/types/math/shapes/Light3D.d.ts.map +1 -1
- package/types/math/shapes/Point3D.d.ts +2 -2
- package/types/math/shapes/Point3D.d.ts.map +1 -1
- package/types/math/shapes/Point3Ds.d.ts +2 -2
- package/types/math/shapes/Point3Ds.d.ts.map +1 -1
- package/types/motion.d.ts +7 -0
- package/types/motion.d.ts.map +1 -0
- package/types/{hooks/useServiceWorker.d.ts → serviceWorker.d.ts} +1 -1
- package/types/serviceWorker.d.ts.map +1 -0
- package/types/svg/SVGParse.d.ts +1 -1
- package/types/svg/SVGParse.d.ts.map +1 -1
- package/types/svg/SVGUtil.d.ts.map +1 -0
- package/types/svg/index.d.ts +2 -1
- package/types/svg/index.d.ts.map +1 -1
- package/types/theme.d.ts +57 -0
- package/types/theme.d.ts.map +1 -0
- package/types/Context.d.ts +0 -36
- package/types/Context.d.ts.map +0 -1
- package/types/MVVM.d.ts +0 -12
- package/types/MVVM.d.ts.map +0 -1
- package/types/animate/schedule.d.ts +0 -15
- package/types/animate/schedule.d.ts.map +0 -1
- package/types/color.d.ts +0 -111
- package/types/color.d.ts.map +0 -1
- package/types/env.d.ts +0 -23
- package/types/env.d.ts.map +0 -1
- package/types/hooks/useAttribute.d.ts.map +0 -1
- package/types/hooks/useCookie.d.ts.map +0 -1
- package/types/hooks/useCoords.d.ts +0 -6
- package/types/hooks/useCoords.d.ts.map +0 -1
- package/types/hooks/useDataset.d.ts +0 -4
- package/types/hooks/useDataset.d.ts.map +0 -1
- package/types/hooks/useDraw/svg/SVGParse.d.ts +0 -16
- package/types/hooks/useDraw/svg/SVGParse.d.ts.map +0 -1
- package/types/hooks/useDraw/svg/SVGUtil.d.ts.map +0 -1
- package/types/hooks/useDraw/svg/index.d.ts +0 -4
- package/types/hooks/useDraw/svg/index.d.ts.map +0 -1
- package/types/hooks/useDraw/svg/line2c.d.ts +0 -5
- package/types/hooks/useDraw/svg/line2c.d.ts.map +0 -1
- package/types/hooks/useElement.d.ts.map +0 -1
- package/types/hooks/useElementEventBus.d.ts.map +0 -1
- package/types/hooks/useElementEvents.d.ts.map +0 -1
- package/types/hooks/useEventListener.d.ts.map +0 -1
- package/types/hooks/useFeRouteChange.d.ts.map +0 -1
- package/types/hooks/useFetch.d.ts +0 -14
- package/types/hooks/useFetch.d.ts.map +0 -1
- package/types/hooks/useIndexDB.d.ts.map +0 -1
- package/types/hooks/useIntersection.d.ts +0 -4
- package/types/hooks/useIntersection.d.ts.map +0 -1
- package/types/hooks/useLocalStorage.d.ts.map +0 -1
- package/types/hooks/useMatchMedia.d.ts +0 -3
- package/types/hooks/useMatchMedia.d.ts.map +0 -1
- package/types/hooks/useMutation.d.ts.map +0 -1
- package/types/hooks/useResize.d.ts +0 -9
- package/types/hooks/useResize.d.ts.map +0 -1
- package/types/hooks/useSafeArea.d.ts.map +0 -1
- package/types/hooks/useServiceWorker.d.ts.map +0 -1
- package/types/hooks/useSessionStorage.d.ts.map +0 -1
- package/types/hooks/useStyle.d.ts.map +0 -1
- package/types/hooks/useTheme.d.ts +0 -9
- package/types/hooks/useTheme.d.ts.map +0 -1
- package/types/hooks/useVisible.d.ts +0 -10
- package/types/hooks/useVisible.d.ts.map +0 -1
- package/types/hooks/useVnode.d.ts +0 -7
- package/types/hooks/useVnode.d.ts.map +0 -1
- package/types/signature.d.ts +0 -30
- package/types/signature.d.ts.map +0 -1
- package/types/svg/DOMSVGUtil.d.ts +0 -20
- package/types/svg/DOMSVGUtil.d.ts.map +0 -1
- package/types/vnode.d.ts +0 -18
- package/types/vnode.d.ts.map +0 -1
- /package/types/{hooks/useDraw/svg → svg}/SVGUtil.d.ts +0 -0
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
|
-
import { NodeEventHandler } from "rxjs/internal/observable/fromEvent";
|
|
2
|
+
import { type NodeEventHandler } from "rxjs/internal/observable/fromEvent";
|
|
3
3
|
export type EventMap = GlobalEventHandlersEventMap & ElementEventMap & HTMLElementEventMap & DocumentEventMap & WindowEventHandlersEventMap & WindowEventMap & MediaQueryListEventMap;
|
|
4
4
|
type EventName = keyof EventMap | "wheel" | "mousewheel" | "DOMMouseScroll" | "transitionend" | "webkitTransitionEnd" | "oTransitionEnd" | "MSTransitionEnd";
|
|
5
5
|
type EventScope = MouseEvent | KeyboardEvent | TouchEvent | PointerEvent | DragEvent | Event | CustomEvent | UIEvent | TransitionEvent | AnimationEvent | StorageEvent | any;
|
|
6
6
|
export declare function getEventCurrentTarget(e: any): any;
|
|
7
7
|
export type HTMLEventObservable = EventTarget | HTMLElement | SVGElement | SVGSVGElement | HTMLCanvasElement | any;
|
|
8
|
-
export declare function
|
|
9
|
-
export declare function
|
|
8
|
+
export declare function createEventListener(target: HTMLEventObservable, eventName: EventName, handler: (e: EventScope) => void | Promise<void>, useCapture?: boolean): () => void;
|
|
9
|
+
export declare function createParentEventListener(parent: HTMLEventObservable, target: HTMLEventObservable, eventName: EventName, handler: (e: EventScope) => void | Promise<void>, useCapture?: boolean): () => void;
|
|
10
10
|
export declare function removeAllEventListeners(target: HTMLEventObservable): void;
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function createFromEventPattern(options: {
|
|
11
|
+
export declare function createEventListener$<T extends EventScope = EventScope>(target: HTMLEventObservable, eventName: EventName, useCapture?: boolean): Observable<T>;
|
|
12
|
+
export declare function createFromEventPattern$(options: {
|
|
13
13
|
register: (handler: NodeEventHandler) => any;
|
|
14
14
|
unregister?: (handler: NodeEventHandler, ...args: any[]) => any;
|
|
15
15
|
share?: boolean;
|
|
16
16
|
bufferSize?: number;
|
|
17
17
|
}): Observable<any[]>;
|
|
18
|
-
export declare function preventDefault(e: EventScope): void;
|
|
19
18
|
export declare function stopPropagation(e: EventScope): void;
|
|
19
|
+
export declare function preventDefault(e: EventScope): void;
|
|
20
20
|
export declare function createEvent(eventName: EventName, options?: MouseEventInit | KeyboardEventInit | TouchEventInit | PointerEventInit | DragEventInit | EventInit | CustomEventInit): EventScope;
|
|
21
21
|
export declare function dispatchEvent(target: HTMLEventObservable, eventName: EventName, event: EventScope): void;
|
|
22
22
|
export declare function dispatchEventFromEvent(e: EventScope, eventName: EventName): void;
|
|
23
23
|
export declare function dispatchClickFromEvent(e: EventScope): void;
|
|
24
24
|
export declare function simulateEventFromTouch(touchEvent: TouchEvent, eventName: EventName): EventScope;
|
|
25
25
|
export {};
|
|
26
|
-
//# sourceMappingURL=
|
|
26
|
+
//# sourceMappingURL=createEventListener.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createEventListener.d.ts","sourceRoot":"","sources":["../../src/dom/createEventListener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4C,MAAM,MAAM,CAAC;AAC5E,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAU3E,MAAM,MAAM,QAAQ,GAAG,2BAA2B,GAChD,eAAe,GACf,mBAAmB,GACnB,gBAAgB,GAChB,2BAA2B,GAC3B,cAAc,GACd,sBAAsB,CAAC;AAGzB,KAAK,SAAS,GACV,MAAM,QAAQ,GACd,OAAO,GACP,YAAY,GACZ,gBAAgB,GAChB,eAAe,GACf,qBAAqB,GACrB,gBAAgB,GAChB,iBAAiB,CAAC;AAEtB,KAAK,UAAU,GACX,UAAU,GACV,aAAa,GACb,UAAU,GACV,YAAY,GACZ,SAAS,GACT,KAAK,GACL,WAAW,GACX,OAAO,GACP,eAAe,GACf,cAAc,GACd,YAAY,GACZ,GAAG,CAA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,EAAE,UAAU,QAU3C;AAoCD,wBAAgB,WAAW,CACzB,SAAS,EAAE,SAAS,EACpB,OAAO,GACH,cAAc,GACd,iBAAiB,GACjB,cAAc,GACd,gBAAgB,GAChB,aAAa,GACb,SAAS,GACT,eAGH,GACA,UAAU,CAqDZ;AAED,wBAAgB,aAAa,CAC3B,MAAM,EAAE,mBAAmB,EAC3B,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,UAAU,QAclB;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,QAIzE;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,UAAU,QAsBnD;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,GACnB,UAAU,CAkBZ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type AnyElement } from "@zyzgroup/core-common";
|
|
2
|
+
export declare function dataset(el: AnyElement): Record<string, any>;
|
|
3
|
+
export declare function dataset(el: AnyElement, key: string): string;
|
|
4
|
+
export declare function dataset(el: AnyElement, key: string, value: string): void;
|
|
5
|
+
export declare function dataset(el: AnyElement, key: Record<string, any>): void;
|
|
6
|
+
export declare function atomRemoveDataset(el: AnyElement, key: string): void;
|
|
7
|
+
//# sourceMappingURL=dataset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataset.d.ts","sourceRoot":"","sources":["../../src/dom/dataset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAW,MAAM,uBAAuB,CAAC;AAEjE,wBAAgB,OAAO,CAAC,EAAE,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAC7D,wBAAgB,OAAO,CAAC,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;AAC7D,wBAAgB,OAAO,CAAC,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;AAC1E,wBAAgB,OAAO,CAAC,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;AAwCxE,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,QAM5D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyElement,
|
|
1
|
+
import { AnyElement, FileReaderResponseTypeInBrowser } from "@zyzgroup/core-common";
|
|
2
2
|
import { EasingFunction } from "../animate";
|
|
3
3
|
export declare const domPrefixes: string[];
|
|
4
4
|
export declare function transform(el: AnyElement, options: {
|
|
@@ -18,9 +18,9 @@ export declare function createObjectURL(blob: File | Blob | MediaSource): string
|
|
|
18
18
|
export declare function revokeObjectURL(url: string): void;
|
|
19
19
|
export declare function onDocumentReady(cb: () => void): () => void;
|
|
20
20
|
export declare function onBeforeUnload(cb: (e: BeforeUnloadEvent) => void): () => void;
|
|
21
|
-
export declare function
|
|
22
|
-
export declare function
|
|
23
|
-
export declare function
|
|
21
|
+
export declare function loadScript(url: string, ms?: number): Promise<unknown>;
|
|
22
|
+
export declare function clickA(blobOrUrl: Blob | string, fileName: string): void;
|
|
23
|
+
export declare function loadLink(url: string, parent?: HTMLHeadElement, ms?: number): Promise<unknown>;
|
|
24
24
|
export declare function waitForStyleSheetsLoaded(): Promise<void>;
|
|
25
25
|
export interface RawImageInfo {
|
|
26
26
|
width: number;
|
|
@@ -29,14 +29,14 @@ export interface RawImageInfo {
|
|
|
29
29
|
element: HTMLImageElement;
|
|
30
30
|
imageData?: ImageData;
|
|
31
31
|
}
|
|
32
|
-
export declare function
|
|
33
|
-
export declare function
|
|
32
|
+
export declare function loadImage(url: string | Blob | File, ms?: number): Promise<RawImageInfo>;
|
|
33
|
+
export declare function selectFile<T extends string | ArrayBuffer>(readType?: FileReaderResponseTypeInBrowser, accepts?: string[]): Promise<{
|
|
34
34
|
type: string;
|
|
35
35
|
name: string;
|
|
36
36
|
size: number;
|
|
37
37
|
data: T;
|
|
38
38
|
}>;
|
|
39
|
-
export declare function
|
|
39
|
+
export declare function selectFileImage(accepts?: string[]): Promise<Error | {
|
|
40
40
|
type: string;
|
|
41
41
|
name: string;
|
|
42
42
|
size: number;
|
|
@@ -49,7 +49,7 @@ export declare function useSelectFileImage(accepts?: string[]): Promise<Error |
|
|
|
49
49
|
export declare function getSelectedText(): string;
|
|
50
50
|
export declare function setWindowTitle(title: string): void;
|
|
51
51
|
export declare function vibrate(ms?: number): void;
|
|
52
|
-
export declare function
|
|
52
|
+
export declare function clipboard(text: string): Promise<boolean | void>;
|
|
53
53
|
export declare function scrollTo(x?: number, y?: number): void;
|
|
54
54
|
export declare function setManualScroll(): () => void;
|
|
55
55
|
export declare function isRootEl(el: AnyElement): boolean;
|
|
@@ -96,4 +96,5 @@ export declare function createElementNS(name: string): HTMLElement;
|
|
|
96
96
|
export declare function createTextNode(data: string): Text;
|
|
97
97
|
export declare function iframePostMessage(message: any, targetOrigin?: string): void;
|
|
98
98
|
export declare function runInSandbox(code: string): void;
|
|
99
|
-
|
|
99
|
+
export declare function compileTemplate(template: string): string;
|
|
100
|
+
//# sourceMappingURL=dom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/dom/dom.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EAGV,+BAA+B,EAIhC,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EAAU,cAAc,EAAE,MAAM,YAAY,CAAC;AAwCpD,eAAO,MAAM,WAAW,UAA2C,CAAC;AAEpE,wBAAgB,SAAS,CACvB,EAAE,EAAE,UAAU,EACd,OAAO,EAAE;IACP,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAA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AC,EAAE,OAAO,QAS9D;AAED,wBAAgB,MAAM,CAAC,EAAE,EAAE,UAAU,QAUpC;AAED,wBAAgB,MAAM,CAAC,EAAE,EAAE,UAAU,QAEpC;AAED,wBAAgB,WAAW,CACzB,EAAE,EAAE,UAAU,EACd,SAAS,EAAE,MAAM,EACjB,GAAG,GAAE,QAAQ,GAAG,KAAK,GAAG,QAAmB,QAiD5C;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,QAEzD;AAED,wBAAgB,WAAW,CAAC,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,QAE5D;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAEnE;AAKD,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,EACZ,OAAO,UAAQ,GACd,gBAAgB,CAYlB;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,eAE5C;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,eAE3C;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,QAE1C;AAkCD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,GAAG,EACZ,YAAY,SAAsC,QAYnD;AAGD,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,QAmBxC;AAeD,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,UAc/C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AnyElement,
|
|
1
|
+
import { AnyElement, FileReaderResponseTypeInBrowser } from "@zyzgroup/core-common";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
|
-
import { HTMLEventObservable } from "./
|
|
3
|
+
import { HTMLEventObservable } from "./createEventListener";
|
|
4
4
|
export declare function isSupportTouch(): boolean;
|
|
5
5
|
export declare function isSupportPointer(): boolean;
|
|
6
6
|
export declare function isSupportEvent(nodeName: any, eventName: string): boolean;
|
|
@@ -18,7 +18,7 @@ export declare function createDefaultMousePoint(): {
|
|
|
18
18
|
y: number;
|
|
19
19
|
isDown: boolean;
|
|
20
20
|
};
|
|
21
|
-
export declare function
|
|
21
|
+
export declare function createMousePoint(): {
|
|
22
22
|
start: MousePoint;
|
|
23
23
|
current: MousePoint;
|
|
24
24
|
setStart: (p: {
|
|
@@ -86,32 +86,35 @@ export declare function dragOver$(el?: HTMLEventObservable, useCapture?: boolean
|
|
|
86
86
|
export declare function keyDown$(el?: HTMLEventObservable, useCapture?: boolean): Observable<KeyboardEvent>;
|
|
87
87
|
export declare function keyUp$(el?: HTMLEventObservable, useCapture?: boolean): Observable<KeyboardEvent>;
|
|
88
88
|
export declare function keyPress$(el?: HTMLEventObservable, useCapture?: boolean): Observable<KeyboardEvent>;
|
|
89
|
+
export declare function elValueChange$(el: HTMLSelectElement | HTMLInputElement, useCapture?: boolean): Observable<MouseEvent>;
|
|
90
|
+
export declare function formSubmit$(el: HTMLFormElement, useCapture?: boolean): Observable<MouseEvent>;
|
|
91
|
+
export declare function scroll$(time?: number): Observable<Event>;
|
|
92
|
+
export declare function documentVisible$(): Observable<boolean>;
|
|
93
|
+
export declare function createStorage$(): Observable<StorageEvent>;
|
|
94
|
+
export declare function createOnlineStatus$(): Observable<boolean>;
|
|
89
95
|
type MousePointMoveOptions = {
|
|
90
96
|
start?: (e: MousePointEvent, mpg: MousePointGroup) => void;
|
|
91
97
|
end?: (e: MousePointEvent, mpg: MousePointGroup) => void;
|
|
92
|
-
|
|
93
|
-
};
|
|
94
|
-
export declare function
|
|
95
|
-
export declare function
|
|
96
|
-
export declare function
|
|
97
|
-
export declare function
|
|
98
|
-
export declare function
|
|
99
|
-
export declare function
|
|
100
|
-
export declare function
|
|
101
|
-
export declare function
|
|
98
|
+
createMousePoint?: ReturnType<typeof createMousePoint>;
|
|
99
|
+
};
|
|
100
|
+
export declare function mouseMovePoint$(el?: HTMLElement, options?: Pick<MousePointMoveOptions, "createMousePoint">): Observable<MousePointGroup>;
|
|
101
|
+
export declare function mouseDownMovePoint$(el?: HTMLElement, options?: MousePointMoveOptions): Observable<MousePointGroup>;
|
|
102
|
+
export declare function touchDownMovePoint$(el?: HTMLElement, options?: MousePointMoveOptions): Observable<MousePointGroup>;
|
|
103
|
+
export declare function pointerDownMovePoint$(el?: HTMLElement, options?: MousePointMoveOptions): Observable<MousePointGroup>;
|
|
104
|
+
export declare function compatableDownMovePoint$(el?: HTMLElement, options?: MousePointMoveOptions): Observable<MousePointGroup>;
|
|
105
|
+
export declare function mouseAndPointerDownMovePoint$(el?: HTMLElement, options?: MousePointMoveOptions): Observable<MousePointGroup>;
|
|
106
|
+
export declare function pull$(el: HTMLElement): Observable<number>;
|
|
107
|
+
export declare function createDraggable(el: HTMLElement, options?: {
|
|
102
108
|
onStart?: (e: DragEvent) => void;
|
|
103
109
|
onDrag?: (e: DragEvent) => void;
|
|
104
110
|
onEnd?: (e: DragEvent) => void;
|
|
105
111
|
}): () => void;
|
|
106
|
-
export declare function
|
|
112
|
+
export declare function createDrop(el: HTMLElement, options?: {
|
|
107
113
|
onEnter?: (e: DragEvent) => void;
|
|
108
114
|
onLeave?: (e: DragEvent) => void;
|
|
109
115
|
onOver?: (e: DragEvent) => void;
|
|
110
116
|
onDrop?: (e: DragEvent, files: File[]) => void;
|
|
111
117
|
}): () => void;
|
|
112
|
-
export declare function useScroll$(time?: number): Observable<Event>;
|
|
113
|
-
export declare function useDocumentVisible$(): Observable<boolean>;
|
|
114
|
-
export declare function storage$(): Observable<StorageEvent>;
|
|
115
118
|
export declare function getWindow(): {
|
|
116
119
|
screenWidth: number;
|
|
117
120
|
screenHeight: number;
|
|
@@ -201,69 +204,6 @@ export declare const CommonKeyCode: {
|
|
|
201
204
|
RIGHT: number;
|
|
202
205
|
SPACE: number;
|
|
203
206
|
};
|
|
204
|
-
export declare const Key: {
|
|
205
|
-
NULL: string;
|
|
206
|
-
CANCEL: string;
|
|
207
|
-
HELP: string;
|
|
208
|
-
BACK_SPACE: string;
|
|
209
|
-
TAB: string;
|
|
210
|
-
CLEAR: string;
|
|
211
|
-
RETURN: string;
|
|
212
|
-
ENTER: string;
|
|
213
|
-
SHIFT: string;
|
|
214
|
-
CONTROL: string;
|
|
215
|
-
ALT: string;
|
|
216
|
-
PAUSE: string;
|
|
217
|
-
ESCAPE: string;
|
|
218
|
-
SPACE: string;
|
|
219
|
-
PAGE_UP: string;
|
|
220
|
-
PAGE_DOWN: string;
|
|
221
|
-
END: string;
|
|
222
|
-
HOME: string;
|
|
223
|
-
ARROW_LEFT: string;
|
|
224
|
-
LEFT: string;
|
|
225
|
-
ARROW_UP: string;
|
|
226
|
-
UP: string;
|
|
227
|
-
ARROW_RIGHT: string;
|
|
228
|
-
RIGHT: string;
|
|
229
|
-
ARROW_DOWN: string;
|
|
230
|
-
DOWN: string;
|
|
231
|
-
INSERT: string;
|
|
232
|
-
DELETE: string;
|
|
233
|
-
SEMICOLON: string;
|
|
234
|
-
EQUALS: string;
|
|
235
|
-
NUMPAD0: string;
|
|
236
|
-
NUMPAD1: string;
|
|
237
|
-
NUMPAD2: string;
|
|
238
|
-
NUMPAD3: string;
|
|
239
|
-
NUMPAD4: string;
|
|
240
|
-
NUMPAD5: string;
|
|
241
|
-
NUMPAD6: string;
|
|
242
|
-
NUMPAD7: string;
|
|
243
|
-
NUMPAD8: string;
|
|
244
|
-
NUMPAD9: string;
|
|
245
|
-
MULTIPLY: string;
|
|
246
|
-
ADD: string;
|
|
247
|
-
SEPARATOR: string;
|
|
248
|
-
SUBTRACT: string;
|
|
249
|
-
DECIMAL: string;
|
|
250
|
-
DIVIDE: string;
|
|
251
|
-
F1: string;
|
|
252
|
-
F2: string;
|
|
253
|
-
F3: string;
|
|
254
|
-
F4: string;
|
|
255
|
-
F5: string;
|
|
256
|
-
F6: string;
|
|
257
|
-
F7: string;
|
|
258
|
-
F8: string;
|
|
259
|
-
F9: string;
|
|
260
|
-
F10: string;
|
|
261
|
-
F11: string;
|
|
262
|
-
F12: string;
|
|
263
|
-
COMMAND: string;
|
|
264
|
-
META: string;
|
|
265
|
-
ZENKAKU_HANKAKU: string;
|
|
266
|
-
};
|
|
267
207
|
export declare function getKeyCode(e: KeyboardEvent): string | number | undefined;
|
|
268
208
|
export interface HotKeyOptions {
|
|
269
209
|
keys: string[];
|
|
@@ -272,19 +212,19 @@ export interface HotKeyOptions {
|
|
|
272
212
|
alt?: boolean;
|
|
273
213
|
target?: EventTarget;
|
|
274
214
|
}
|
|
275
|
-
export declare function
|
|
276
|
-
export declare function
|
|
277
|
-
export declare function
|
|
215
|
+
export declare function hotKeyDown$(options: HotKeyOptions): Observable<void>;
|
|
216
|
+
export declare function hotKeyUp$(options: HotKeyOptions): Observable<void>;
|
|
217
|
+
export declare function hotKeyFile$(hotKeyOptions?: HotKeyOptions, type?: FileReaderResponseTypeInBrowser): Observable<{
|
|
278
218
|
type: string;
|
|
279
219
|
name: string;
|
|
280
220
|
size: number;
|
|
281
221
|
data: string | ArrayBuffer;
|
|
282
222
|
}>;
|
|
283
|
-
export declare function
|
|
223
|
+
export declare function hotKeyFile(hotKeyOptions?: HotKeyOptions, type?: FileReaderResponseTypeInBrowser): Promise<{
|
|
284
224
|
type: string;
|
|
285
225
|
name: string;
|
|
286
226
|
size: number;
|
|
287
227
|
data: string | ArrayBuffer;
|
|
288
228
|
}>;
|
|
289
229
|
export {};
|
|
290
|
-
//# sourceMappingURL=
|
|
230
|
+
//# sourceMappingURL=elementEvents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elementEvents.d.ts","sourceRoot":"","sources":["../../src/dom/elementEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,+BAA+B,EAEhC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,UAAU,EASX,MAAM,MAAM,CAAC;AAkBd,OAAO,EAEL,mBAAmB,EAGpB,MAAM,uBAAuB,CAAC;AAU/B,wBAAgB,cAAc,IAAI,OAAO,CAMx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AAG,KAAK,GAAG,YAAY,GAAG,WAAW,CAAC;AAE9E,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,eAAe;;;EAa7D;AAED,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,eAAe,eAezD;AAED,wBAAgB,yBAAyB,CACvC,EAAE,EAAE,eAAe,EACnB,OAAO,CAAC,EAAE,UAAU;;;EAyCrB;AAQD,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,GAAG,UAmBzC;AAOD,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,sBAkB/C;AAID,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;CAiBzB,CAAC;AAmFF,wBAAgB,UAAU,CAAC,CAAC,EAAE,aAAa,+BAQ1C;AAGD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAsBD,wBAAgB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,UAAU,CAAC,IAAI,CAAC,CASpE;AAGD,wBAAgB,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,UAAU,CAAC,IAAI,CAAC,CASlE;AAGD,wBAAgB,WAAW,CACzB,aAAa,GAAE,aAA+B,EAC9C,IAAI,GAAE,+BAAsE;;;;;GAY7E;AAGD,wBAAsB,UAAU,CAC9B,aAAa,GAAE,aAA+B,EAC9C,IAAI,GAAE,+BAAsE;;;;;GAG7E"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
import { State } from "@zyzgroup/core-common";
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
3
|
+
export declare function location$(): Observable<Location>;
|
|
4
|
+
export declare function urlChange$(): Observable<string>;
|
|
5
|
+
export declare function hashChange$(): Observable<string>;
|
|
6
|
+
export declare function popStateChange$(nameInState?: string): Observable<any>;
|
|
7
7
|
export type FeRouteDirection = "forward" | "backward" | "keep";
|
|
8
|
-
export declare function
|
|
8
|
+
export declare function createFeRoute(options?: {
|
|
9
9
|
nameInState: string;
|
|
10
10
|
alreadyPushState?: boolean;
|
|
11
11
|
}): {
|
|
@@ -25,4 +25,4 @@ export declare function useFeRoute(options?: {
|
|
|
25
25
|
forward(): void;
|
|
26
26
|
destroy: () => void;
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=
|
|
28
|
+
//# sourceMappingURL=feRouteChange.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feRouteChange.d.ts","sourceRoot":"","sources":["../../src/dom/feRouteChange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlC,OAAO,EAAS,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAIrD,wBAAgB,SAAS,IAAI,UAAU,CAAC,QAAQ,CAAC,CAKhD;AAED,wBAAgB,UAAU,IAAI,UAAU,CAAC,MAAM,CAAC,CAM/C;AAED,wBAAgB,WAAW,IAAI,UAAU,CAAC,MAAM,CAAC,CAQhD;AAsDD,wBAAgB,eAAe,CAAC,WAAW,SAAY,GAAG,UAAU,CAAC,GAAG,CAAC,CAgBxE;AAUD,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;AAQ/D,wBAAgB,aAAa,CAC3B,OAAO,GAAE;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAGzD;;;;;sBA+Be,MAAM;aACf,MAAM;eACJ,MAAM;oBACD,gBAAgB;gBACpB,MAAM;;oBAyFE,MAAM,UAAU,KAAK;cAG3B,MAAM;;;;EAanB"}
|
package/types/dom/index.d.ts
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
|
+
export * from "./dom";
|
|
1
2
|
export * from "./DOMVideo";
|
|
2
3
|
export * from "./DOMParse";
|
|
3
4
|
export * from "./parseCSS";
|
|
5
|
+
export * from "./createEventListener";
|
|
6
|
+
export * from "./createElementEventBus";
|
|
7
|
+
export * from "./elementEvents";
|
|
8
|
+
export * from "./dataset";
|
|
9
|
+
export * from "./attribute";
|
|
10
|
+
export * from "./style";
|
|
11
|
+
export * from "./mutation";
|
|
12
|
+
export * from "./intersection";
|
|
13
|
+
export * from "./resize";
|
|
14
|
+
export * from "./visible";
|
|
15
|
+
export * from "./feRouteChange";
|
|
16
|
+
export * from "./matchMedia";
|
|
17
|
+
export * from "./safeArea";
|
|
18
|
+
export * from "./coords";
|
|
4
19
|
//# sourceMappingURL=index.d.ts.map
|
package/types/dom/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dom/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dom/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAE3B,cAAc,uBAAuB,CAAC;AAEtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AAExB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAE1B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intersection.d.ts","sourceRoot":"","sources":["../../src/dom/intersection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlC,wBAAgB,aAAa,CAC3B,EAAE,EAAE,UAAU,EACd,OAAO,GAAE,wBAGR,GACA,UAAU,CAAC,yBAAyB,CAAC,CAoCvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matchMedia.d.ts","sourceRoot":"","sources":["../../src/dom/matchMedia.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAQlC,wBAAgB,WAAW,CACzB,KAAK,SAAiC,GACrC,UAAU,CAAC,OAAO,CAAC,CAOrB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
import { type AnyElement } from "@zyzgroup/core-common";
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function mutation$(el: AnyElement | Document, options?: MutationObserverInit): Observable<MutationRecord[]>;
|
|
4
4
|
export declare function waitElementAddedInDOM(parent: AnyElement | Document, child: AnyElement): Promise<boolean>;
|
|
5
|
-
//# sourceMappingURL=
|
|
5
|
+
//# sourceMappingURL=mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutation.d.ts","sourceRoot":"","sources":["../../src/dom/mutation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGxD,wBAAgB,SAAS,CACvB,EAAE,EAAE,UAAU,GAAG,QAAQ,EACzB,OAAO,GAAE,oBAIR,GACA,UAAU,CAAC,cAAc,EAAE,CAAC,CAsB9B;AAGD,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,UAAU,GAAG,QAAQ,EAC7B,KAAK,EAAE,UAAU,GAChB,OAAO,CAAC,OAAO,CAAC,CAgBlB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { type AnyElement } from "@zyzgroup/core-common";
|
|
3
|
+
export declare function resize(el: AnyElement, cb: (r: DOMRect) => void): Promise<() => void>;
|
|
4
|
+
export declare function resize$(el?: AnyElement, options?: ResizeObserverOptions): Observable<DOMRect>;
|
|
5
|
+
export declare function useWindowResize$(): Observable<{
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
}>;
|
|
9
|
+
//# sourceMappingURL=resize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resize.d.ts","sourceRoot":"","sources":["../../src/dom/resize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAS,MAAM,MAAM,CAAC;AAEzC,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGxD,wBAAsB,MAAM,CAAC,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,iBAC1C,IAAI,EAY9B;AAGD,wBAAgB,OAAO,CACrB,EAAE,GAAE,UAAqC,EACzC,OAAO,CAAC,EAAE,qBAAqB,GAC9B,UAAU,CAAC,OAAO,CAAC,CAgCrB;AAED,wBAAgB,gBAAgB,IAAI,UAAU,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CAgBD"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function safeArea$(): Observable<{
|
|
3
3
|
bottom: string;
|
|
4
4
|
top: string;
|
|
5
5
|
right: string;
|
|
6
6
|
left: string;
|
|
7
7
|
}>;
|
|
8
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=safeArea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safeArea.d.ts","sourceRoot":"","sources":["../../src/dom/safeArea.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,MAAM,CAAC;AAoDlD,wBAAgB,SAAS,IAAI,UAAU,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC,CAaD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../src/dom/style.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,UAAU,EAMhB,MAAM,uBAAuB,CAAC;AAqE/B,wBAAgB,QAAQ,CACtB,EAAE,EAAE,UAAU,GAAG,GAAG,EACpB,IAAI,CAAC,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,MAAM,OAmBhB;AAGD,wBAAgB,QAAQ,CACtB,EAAE,EAAE,WAAW,GAAG,GAAG,EACrB,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,CAAC,EACtD,KAAK,CAAC,EAAE,MAAM,QAaf;AAED,wBAAgB,cAAc,CAC5B,EAAE,EAAE,WAAW,GAAG,GAAG,EACrB,eAAe,UAAQ,GACtB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAgCxB;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,IAAI,EAAE,MAAM,GACX,MAAM,CAYR;AAED,wBAAgB,aAAa,CAC3B,EAAE,EAAE,WAAW,GAAG,GAAG,EACrB,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,MAAM,GACd,MAAM,CA6BR;AAED,wB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
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const isBrowserSupportFileAPI: false | {
|
|
3
|
-
new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
|
|
4
|
-
prototype: Blob;
|
|
5
|
-
};
|
|
1
|
+
import { MIME, BufferEncoding, TimeArray, FileReaderResponseTypeInBrowser, FetchWithAxios } from "@zyzgroup/core-common";
|
|
6
2
|
export declare function querySelectorAllToStringArray(query?: string): string[];
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
mime?: MIMEEnum;
|
|
11
|
-
encode?: EncodeEnum;
|
|
3
|
+
export declare const domToString: (el: HTMLElement) => string;
|
|
4
|
+
export declare const stringToDom: (str: string, type?: DOMParserSupportedType) => Document;
|
|
5
|
+
export declare const domToBlob: (el: HTMLElement, options?: {
|
|
12
6
|
type?: string;
|
|
7
|
+
mime?: MIME;
|
|
8
|
+
encode?: BufferEncoding;
|
|
13
9
|
}) => Blob;
|
|
14
10
|
export declare function selectFileInBrowser(accepts?: string[], multiple?: boolean): Promise<File[]>;
|
|
15
|
-
export declare function readFileInBrowser<T extends string | ArrayBuffer>(file: File | Blob, type?:
|
|
16
|
-
export declare function
|
|
17
|
-
export declare const getFileExtension: (file: File | string) => string;
|
|
18
|
-
export declare function getMIME(name: string): MIMEEnum.JPEG | MIMEEnum.PNG | MIMEEnum.GIF | MIMEEnum.SVG | MIMEEnum.PDF;
|
|
11
|
+
export declare function readFileInBrowser<T extends string | ArrayBuffer>(file: File | Blob, type?: FileReaderResponseTypeInBrowser, progressCb?: (loaded: number, total: number) => void): Promise<T>;
|
|
12
|
+
export declare function getFileMimeFromFileInBrowser(file: File): Promise<MIME>;
|
|
19
13
|
export declare function getFileMD5Hash(file: File, chunkSize?: number): Promise<string>;
|
|
20
14
|
export declare class FileUpload {
|
|
21
15
|
axios: FetchWithAxios;
|
|
@@ -30,7 +24,7 @@ export declare class FileUpload {
|
|
|
30
24
|
begin: number;
|
|
31
25
|
end: number;
|
|
32
26
|
timer?: ReturnType<typeof setInterval>;
|
|
33
|
-
time:
|
|
27
|
+
time: TimeArray;
|
|
34
28
|
onExist?: () => void;
|
|
35
29
|
onStart?: () => void;
|
|
36
30
|
onProgress?: (currentChunk: number, chunks: number) => void;
|
package/types/file.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../src/file.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../src/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,IAAI,EACJ,cAAc,EACd,SAAS,EAGT,+BAA+B,EAC/B,cAAc,EAEf,MAAM,uBAAuB,CAAC;AAG/B,wBAAgB,6BAA6B,CAC3C,KAAK,SAAkC,GACtC,MAAM,EAAE,CAKV;AAED,eAAO,MAAM,WAAW,GAAI,IAAI,WAAW,WAE1C,CAAC;AAEF,eAAO,MAAM,WAAW,GACtB,KAAK,MAAM,EACX,OAAM,sBAAoC,aAG3C,CAAC;AAEF,eAAO,MAAM,SAAS,GACpB,IAAI,WAAW,EACf,UAAS;IACP,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,cAAc,CAAC;CAIzB,SAGF,CAAC;AAEF,wBAAsB,mBAAmB,CACvC,OAAO,GAAE,MAAM,EAAU,EACzB,QAAQ,CAAC,EAAE,OAAO,GACjB,OAAO,CAAC,IAAI,EAAE,CAAC,CAmEjB;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,EAE9D,IAAI,EAAE,IAAI,GAAG,IAAI,EACjB,IAAI,GAAE,+BAAsE,EAC5E,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,GACnD,OAAO,CAA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AC,EAAE,MAAM,IAAI,CAAC;QACxB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;KACjC;IAoCY,KAAK;IAqBX,KAAK;YAOE,WAAW;IAczB,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,aAAa;CAMtB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare function createAliMiniControllableState<T = any>(component: any, options: {
|
|
2
|
+
propName?: string;
|
|
3
|
+
dataName?: string;
|
|
4
|
+
defaultValue?: T;
|
|
5
|
+
onChange?: (value: T) => void;
|
|
6
|
+
beforeChange?: (nextValue: T) => boolean | Promise<boolean>;
|
|
7
|
+
}): {
|
|
8
|
+
getState(): T;
|
|
9
|
+
setState(newValue: T | ((prev: T) => T)): Promise<void>;
|
|
10
|
+
checkControlledMode(): void;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=createAliMiniControllableState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAliMiniControllableState.d.ts","sourceRoot":"","sources":["../../../src/hooks/alimini/createAliMiniControllableState.ts"],"names":[],"mappings":"AA0CA,wBAAgB,8BAA8B,CAAC,CAAC,GAAG,GAAG,EACpD,SAAS,EAAE,GAAG,EACd,OAAO,EAAE;IACP,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAE9B,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC7D,GACA;IACD,QAAQ,IAAI,CAAC,CAAC;IACd,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,mBAAmB,IAAI,IAAI,CAAC;CAC7B,CA6EA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Action, State, Reducer, ReduxStoreMiddleware, ReduxStore, ReduxStoreCreatorEnhancer, Dispatch, MiniReduxStore, Epic, Thunk } from "@zyzgroup/core-common";
|
|
2
|
+
import { Subscription } from "rxjs";
|
|
3
|
+
export declare function createReduxStore<T extends State = State>(options: {
|
|
4
|
+
reducer: Reducer<T>;
|
|
5
|
+
initState?: T;
|
|
6
|
+
enhancer?: ReduxStoreCreatorEnhancer<T>;
|
|
7
|
+
}): ReduxStore<T>;
|
|
8
|
+
export declare function combineReducers(reducers: Record<string, Reducer>, immutable?: boolean): Reducer;
|
|
9
|
+
export declare function applyMiddleware(...middlewares: ReduxStoreMiddleware[]): ReduxStoreCreatorEnhancer;
|
|
10
|
+
export declare function createEpicMiddleware<S extends State, D = unknown>(options?: {
|
|
11
|
+
dependencies?: D;
|
|
12
|
+
}): {
|
|
13
|
+
middleware(store: MiniReduxStore<S>): (next: Dispatch) => Dispatch;
|
|
14
|
+
run(rootEpic: Epic<S, D>, store: MiniReduxStore<S>): Subscription;
|
|
15
|
+
destroy(): void;
|
|
16
|
+
};
|
|
17
|
+
export declare function combineEpics<S extends State>(...epics: Epic<S>[]): Epic<S>;
|
|
18
|
+
export declare function ofType<T extends Action>(...types: string[]): import("rxjs").MonoTypeOperatorFunction<T>;
|
|
19
|
+
export declare function createThunkMiddleware<S extends State>(): {
|
|
20
|
+
middleware(store: MiniReduxStore<S>): (next: Dispatch) => (action: Action | Thunk<S>) => unknown;
|
|
21
|
+
};
|
|
22
|
+
export declare const stateLoggerMiddleware: (store: MiniReduxStore) => (next: Dispatch) => (action: Action) => void;
|
|
23
|
+
export declare const exceptionLoggerMiddleware: (store: MiniReduxStore) => (next: Dispatch) => (action: Action) => void;
|
|
24
|
+
export declare const executeTimeLoggerMiddleware: (store: MiniReduxStore) => (next: Dispatch) => (action: Action) => void;
|
|
25
|
+
export declare function operationParser(path?: string, opt?: {
|
|
26
|
+
OPERATION_DELIMITER?: string;
|
|
27
|
+
KEY_DELIMITER?: string;
|
|
28
|
+
KEY_VALUE_DELIMITER?: string;
|
|
29
|
+
}): Array<Action>;
|
|
30
|
+
//# sourceMappingURL=reduxStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reduxStore.d.ts","sourceRoot":"","sources":["../../../src/hooks/core/reduxStore.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,KAAK,EACL,OAAO,EACP,oBAAoB,EACpB,UAAU,EACV,yBAAyB,EACzB,QAAQ,EAER,cAAc,EACd,IAAI,EACJ,KAAK,EAON,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAOL,YAAY,EAIb,MAAM,MAAM,CAAC;AAuDd,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EAAE,OAAO,EAAE;IACjE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACpB,SAAS,CAAC,EAAE,CAAC,CAAC;IACd,QAAQ,CAAC,EAAE,yBAAyB,CAAC,CAAC,CAAC,CAAC;CACzC,GAAG,UAAU,CAAC,CAAC,CAAC,CAiChB;AAGD,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,SAAS,UAAO,GACf,OAAO,CAaT;AAUD,wBAAgB,eAAe,CAC7B,GAAG,WAAW,EAAE,oBAAoB,EAAE,GACrC,yBAAyB,CAe3B;AAGD,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,KAAK,EAAE,CAAC,GAAG,OAAO,EAAE,OAAO,CAAC,EAAE;IAC3E,YAAY,CAAC,EAAE,CAAC,CAAC;CAClB;sBASqB,cAAc,CAAC,CAAC,CAAC,UAEjB,QAAQ;kBAeZ,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,CAAC,GAAG,YAAY;;EA6CpE;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,KAAK,EAAE,GAAG,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC,CAG1E;AAED,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,8CAE1D;AA4ED,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,KAAK;sBAE/B,cAAc,CAAC,CAAC,CAAC,IACzB,MAAM,QAAQ,MACZ,QAAQ,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC;EAWxC;AAGD,eAAO,MAAM,qBAAqB,GAAI,OAAO,cAAc,MAEjD,MAAM,QAAQ,MAAM,QAAQ,MAAM,SAQ3C,CAAC;AAGF,eAAO,MAAM,yBAAyB,GACnC,OAAO,cAAc,MAAM,MAAM,QAAQ,MAAM,QAAQ,MAAM,SAO7D,CAAC;AAGJ,eAAO,MAAM,2BAA2B,GACrC,OAAO,cAAc,MAAM,MAAM,QAAQ,MAAM,QAAQ,MAAM,SAK7D,CAAC;AAQJ,wBAAgB,eAAe,CAC7B,IAAI,SAAK,EACT,GAAG,CAAC,EAAE;IACJ,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,GACA,KAAK,CAAC,MAAM,CAAC,CAsCf"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StateStoreLike, State } from "@zyzgroup/core-common";
|
|
2
|
+
export declare function useReactState<T = any>(initial: T): StateStoreLike<T>;
|
|
3
|
+
export declare function useVueState<T = any>(initial: T): StateStoreLike<T>;
|
|
4
|
+
export declare function rxState<T = any>(initial: T): StateStoreLike<T>;
|
|
5
|
+
type Options<T> = {
|
|
6
|
+
beforeChange?: (nextValue: T) => boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare function rawState<T = State>(initial: T, options?: Options<T>): StateStoreLike<T>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=stateStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stateStore.d.ts","sourceRoot":"","sources":["../../../src/hooks/core/stateStore.ts"],"names":[],"mappings":"AAyCA,OAAO,EAEL,cAAc,EAEd,KAAK,EAQN,MAAM,uBAAuB,CAAC;AA+B/B,wBAAgB,aAAa,CAAC,CAAC,GAAG,GAAG,EAAE,OAAO,EAAE,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CA+EpE;AAGD,wBAAgB,WAAW,CAAC,CAAC,GAAG,GAAG,EAAE,OAAO,EAAE,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CA6DlE;AAGD,wBAAgB,OAAO,CAAC,CAAC,GAAG,GAAG,EAAE,OAAO,EAAE,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CA+D9D;AAED,KAAK,OAAO,CAAC,CAAC,IAAI;IAEhB,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,KAAK,OAAO,CAAC;CAC1C,CAAC;AAEF,wBAAgB,QAAQ,CAAC,CAAC,GAAG,KAAK,EAChC,OAAO,EAAE,CAAC,EACV,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,GACnB,cAAc,CAAC,CAAC,CAAC,CA0DnB"}
|
package/types/hooks/index.d.ts
CHANGED
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
1
|
+
export * from "./core";
|
|
2
|
+
export * from "./react";
|
|
3
|
+
export * from "./vue";
|
|
4
4
|
export * from "./useDraw";
|
|
5
|
-
export * from "./useEventListener";
|
|
6
|
-
export * from "./useMutation";
|
|
7
|
-
export * from "./useIntersection";
|
|
8
|
-
export * from "./useResize";
|
|
9
|
-
export * from "./useVisible";
|
|
10
|
-
export * from "./useSafeArea";
|
|
11
|
-
export * from "./useCoords";
|
|
12
|
-
export * from "./useMatchMedia";
|
|
13
|
-
export * from "./useFeRouteChange";
|
|
14
|
-
export * from "./useDataset";
|
|
15
|
-
export * from "./useAttribute";
|
|
16
|
-
export * from "./useStyle";
|
|
17
|
-
export * from "./useTheme";
|
|
18
|
-
export * from "./useLocalStorage";
|
|
19
|
-
export * from "./useSessionStorage";
|
|
20
|
-
export * from "./useCookie";
|
|
21
|
-
export * from "./useIndexDB";
|
|
22
|
-
export * from "./useVnode";
|
|
23
|
-
export * from "./useFetch";
|
|
24
5
|
export * from "./useLocale/useLocale";
|
|
25
6
|
//# sourceMappingURL=index.d.ts.map
|