@zyzgroup/core-web 0.1.92 → 0.1.94
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/font.css +108 -0
- package/dist/css/theme.css +58 -53
- package/dist/zyzgroup_core_web.iife.js +115 -54
- package/dist/zyzgroup_core_web.iife.js.map +1 -1
- package/dist/zyzgroup_core_web.js +30456 -23273
- package/dist/zyzgroup_core_web.js.map +1 -1
- package/dist/zyzgroup_core_web.umd.cjs +115 -54
- package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
- package/package.json +10 -2
- 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 +7 -2
- package/types/components/component-core.d.ts.map +1 -1
- package/types/components/index.d.ts +1 -0
- package/types/components/index.d.ts.map +1 -1
- 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/index.d.ts +2 -0
- package/types/components/react/index.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/motion/index.d.ts +2 -0
- package/types/components/react/motion/index.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/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} +8 -8
- package/types/dom/dom.d.ts.map +1 -0
- package/types/{hooks/useElementEvents.d.ts → dom/elementEvents.d.ts} +24 -84
- 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 +0 -4
- 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 -20
- 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/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/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 +6 -3
- package/types/index.d.ts.map +1 -1
- package/types/math/Shape.d.ts +4 -4
- package/types/math/Shape.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/{hooks/useTheme.d.ts → theme.d.ts} +13 -14
- package/types/theme.d.ts.map +1 -0
- package/types/Context.d.ts +0 -33
- package/types/Context.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/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.map +0 -1
- package/types/hooks/useVisible.d.ts +0 -10
- package/types/hooks/useVisible.d.ts.map +0 -1
- package/types/svg/DOMSVGUtil.d.ts +0 -20
- package/types/svg/DOMSVGUtil.d.ts.map +0 -1
- /package/types/{hooks/useDraw/svg → svg}/SVGUtil.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
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,mBA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E,EAAE,WAAW,GAAG,OAAO,CASrD;AAkDD,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,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,IA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WAAW,CAAC;CACpB,GACA,UAAU,CAAC,OAAO,CAAC,CAYrB"}
|
package/types/file.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { MIME, BufferEncoding, TimeArray, FileReaderResponseTypeInBrowser, FetchWithAxios } from "@zyzgroup/core-common";
|
|
2
|
-
export declare const isBrowserSupportFileAPI: false | {
|
|
3
|
-
new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
|
|
4
|
-
prototype: Blob;
|
|
5
|
-
};
|
|
6
2
|
export declare function querySelectorAllToStringArray(query?: string): string[];
|
|
7
3
|
export declare const domToString: (el: HTMLElement) => string;
|
|
8
4
|
export declare const stringToDom: (str: string, type?: DOMParserSupportedType) => Document;
|
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,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IAAI,EAAE,IAAI,CAAC;QACX,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QACrB,UAAU,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;QAC5D,UAAU,CAAC,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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,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,23 +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
5
|
export * from "./useLocale/useLocale";
|
|
23
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AAEtB,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/react/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAnimationLoop.d.ts","sourceRoot":"","sources":["../../../src/hooks/react/useAnimationLoop.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,QAyBxC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Dispatch, State, StateStore, ValueUpdater } from "@zyzgroup/core-common";
|
|
3
|
+
export declare function createReactAppStoreContext<T extends State>(store: StateStore<T>): {
|
|
4
|
+
AppStoreProvider: ({ children }: {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}) => import("react").JSX.Element;
|
|
7
|
+
useAppStore: () => StateStore<T>;
|
|
8
|
+
useAppState: {
|
|
9
|
+
(): T;
|
|
10
|
+
<Selected>(selector: (state: T) => Selected, equalityFn?: (a: Selected, b: Selected) => boolean): Selected;
|
|
11
|
+
};
|
|
12
|
+
useSetAppState: () => ValueUpdater<T>;
|
|
13
|
+
useDispatch: () => Dispatch;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=useAppState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAppState.d.ts","sourceRoot":"","sources":["../../../src/hooks/react/useAppState.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAGV,MAAM,OAAO,CAAC;AAEf,OAAO,EACL,QAAQ,EAGR,KAAK,EAEL,UAAU,EACV,YAAY,EACb,MAAM,uBAAuB,CAAC;AAwB/B,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,KAAK,EACxD,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC;qCAIoB;QAAE,QAAQ,EAAE,SAAS,CAAA;KAAE;uBASvC,UAAU,CAAC,CAAC,CAAC;;YAUb,CAAC;SACJ,QAAQ,YACjB,CAAC,KAAK,EAAE,CAAC,KAAK,QAAQ,eACnB,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,KAAK,OAAO,GACjD,QAAQ;;0BAuBgB,YAAY,CAAC,CAAC,CAAC;uBAQlB,QAAQ;EAejC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDelayedValue.d.ts","sourceRoot":"","sources":["../../../src/hooks/react/useDelayedValue.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,OAUxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDimensions.d.ts","sourceRoot":"","sources":["../../../src/hooks/react/useDimensions.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa,CAAC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,GAAG;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAaA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDoublePress.d.ts","sourceRoot":"","sources":["../../../src/hooks/react/useDoublePress.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAa3C,wBAAgB,cAAc,CAG5B,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,EAEtC,aAAa,EAAE,MAAM,IAAI,EAEzB,YAAY,CAAC,EAAE,MAAM,IAAI,GACxB,MAAM,IAAI,CAmDZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFadeIn.d.ts","sourceRoot":"","sources":["../../../src/hooks/react/useFadeIn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAe5C,wBAAgB,SAAS,CAAC,GAAG,EAAE,SAAS,CAAC,WAAW,CAAC,EAAE,QAAQ,EAAE,MAAM,QAUtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFetch.d.ts","sourceRoot":"","sources":["../../../src/hooks/react/useFetch.ts"],"names":[],"mappings":"AAEA,wBAAgB,QAAQ,CAAC,CAAC,GAAG,GAAG,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAkBtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/react/useFormInput.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,YAAY,EAAE,GAAG;;kBAGnB,GAAG;EAQ7B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Draft, nothing } from "immer";
|
|
2
|
+
import { type Dispatch } from "react";
|
|
3
|
+
export type DraftFunction<S> = (draft: Draft<S>) => void;
|
|
4
|
+
export type Updater<S> = (arg: S | DraftFunction<S>) => void;
|
|
5
|
+
export type ImmerHook<S> = [S, Updater<S>];
|
|
6
|
+
export declare function useImmer<S = any>(initialValue: S | (() => S)): ImmerHook<S>;
|
|
7
|
+
export type ImmerReducer<S, A> = (draft: Draft<S>, action: A) => S | void | typeof nothing;
|
|
8
|
+
export declare function useImmerReducer<S, A, I>(reducer: ImmerReducer<S, A>, initializerArg: S & I, initializer?: (arg: S & I) => S): [S, Dispatch<A>];
|
|
9
|
+
//# sourceMappingURL=useImmer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useImmer.d.ts","sourceRoot":"","sources":["../../../src/hooks/react/useImmer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,KAAK,EAAE,OAAO,EAAU,MAAM,OAAO,CAAC;AAC7D,OAAO,EAKL,KAAK,QAAQ,EACd,MAAM,OAAO,CAAC;AAMf,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AACzD,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAC7D,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AAE3C,wBAAgB,QAAQ,CAAC,CAAC,GAAG,GAAG,EAAE,YAAY,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAqB7E,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,IAAI,CAC/B,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EACf,MAAM,EAAE,CAAC,KACN,CAAC,GAAG,IAAI,GAAG,OAAO,OAAO,CAAC;AAE/B,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EACrC,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,EAC3B,cAAc,EAAE,CAAC,GAAG,CAAC,EACrB,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAC9B,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAMlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMailbox.d.ts","sourceRoot":"","sources":["../../../src/hooks/react/useMailbox.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,eAAO,MAAM,cAAc,yCAAsC,CAAC;AAGlE,wBAAgB,UAAU,YAMzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMinDisplayTime.d.ts","sourceRoot":"","sources":["../../../src/hooks/react/useMinDisplayTime.ts"],"names":[],"mappings":"AASA,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,CAyB/D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOnlineStatus.d.ts","sourceRoot":"","sources":["../../../src/hooks/react/useOnlineStatus.ts"],"names":[],"mappings":"AAoBA,wBAAgB,eAAe,IAAI,OAAO,CAazC"}
|