@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.
Files changed (330) hide show
  1. package/dist/css/better.css +5 -0
  2. package/dist/css/font.css +108 -0
  3. package/dist/css/theme.css +85 -56
  4. package/dist/zyzgroup_core_web.iife.js +115 -36
  5. package/dist/zyzgroup_core_web.iife.js.map +1 -1
  6. package/dist/zyzgroup_core_web.js +25535 -20837
  7. package/dist/zyzgroup_core_web.js.map +1 -1
  8. package/dist/zyzgroup_core_web.umd.cjs +115 -36
  9. package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
  10. package/package.json +10 -2
  11. package/types/Pagination.d.ts +1 -1
  12. package/types/Pagination.d.ts.map +1 -1
  13. package/types/WebMonitor.d.ts +6 -0
  14. package/types/WebMonitor.d.ts.map +1 -1
  15. package/types/WebSocketClient.d.ts.map +1 -1
  16. package/types/animate/Timeline.d.ts.map +1 -1
  17. package/types/animate/index.d.ts +0 -1
  18. package/types/animate/index.d.ts.map +1 -1
  19. package/types/canvas/html-in-canvas.d.ts +1 -0
  20. package/types/canvas/html-in-canvas.d.ts.map +1 -0
  21. package/types/components/SideEffectTags.d.ts +25 -0
  22. package/types/components/SideEffectTags.d.ts.map +1 -0
  23. package/types/components/angular/demoAngular.d.ts +1 -0
  24. package/types/components/angular/demoAngular.d.ts.map +1 -0
  25. package/types/components/component-core.d.ts +34 -0
  26. package/types/components/component-core.d.ts.map +1 -0
  27. package/types/components/index.d.ts +3 -0
  28. package/types/components/index.d.ts.map +1 -0
  29. package/types/components/react/CatFriends.d.ts +2 -0
  30. package/types/components/react/CatFriends.d.ts.map +1 -0
  31. package/types/components/react/DemoForm.d.ts +2 -0
  32. package/types/components/react/DemoForm.d.ts.map +1 -0
  33. package/types/components/react/ErrorBoundary.d.ts +16 -0
  34. package/types/components/react/ErrorBoundary.d.ts.map +1 -0
  35. package/types/components/react/TravelPlan.d.ts +2 -0
  36. package/types/components/react/TravelPlan.d.ts.map +1 -0
  37. package/types/components/react/VideoPlayer.d.ts +5 -0
  38. package/types/components/react/VideoPlayer.d.ts.map +1 -0
  39. package/types/components/react/demoReact.d.ts +4 -0
  40. package/types/components/react/demoReact.d.ts.map +1 -0
  41. package/types/components/react/motion/Refresh.d.ts +4 -0
  42. package/types/components/react/motion/Refresh.d.ts.map +1 -0
  43. package/types/components/react/motion/demo/AddToBasket.d.ts +12 -0
  44. package/types/components/react/motion/demo/AddToBasket.d.ts.map +1 -0
  45. package/types/components/react/motion/demo/Cursor.d.ts +4 -0
  46. package/types/components/react/motion/demo/Cursor.d.ts.map +1 -0
  47. package/types/components/react/motion/demo/LayoutAnchor.d.ts +6 -0
  48. package/types/components/react/motion/demo/LayoutAnchor.d.ts.map +1 -0
  49. package/types/components/react/motion/demo/LayoutAnimation.d.ts +2 -0
  50. package/types/components/react/motion/demo/LayoutAnimation.d.ts.map +1 -0
  51. package/types/components/react/motion/demo/LayoutGroup.d.ts +2 -0
  52. package/types/components/react/motion/demo/LayoutGroup.d.ts.map +1 -0
  53. package/types/components/react/motion/demo/MotionDemo.d.ts +2 -0
  54. package/types/components/react/motion/demo/MotionDemo.d.ts.map +1 -0
  55. package/types/components/react/motion/demo/Navigation.d.ts +2 -0
  56. package/types/components/react/motion/demo/Navigation.d.ts.map +1 -0
  57. package/types/components/react/motion/demo/Reordering.d.ts +2 -0
  58. package/types/components/react/motion/demo/Reordering.d.ts.map +1 -0
  59. package/types/components/react/motion/demo/ScrollLinked.d.ts +2 -0
  60. package/types/components/react/motion/demo/ScrollLinked.d.ts.map +1 -0
  61. package/types/components/react/motion/demo/ScrollTriggered.d.ts +2 -0
  62. package/types/components/react/motion/demo/ScrollTriggered.d.ts.map +1 -0
  63. package/types/components/react/motion/demo/SharedLayoutAnimation.d.ts +2 -0
  64. package/types/components/react/motion/demo/SharedLayoutAnimation.d.ts.map +1 -0
  65. package/types/components/react/motion/demo/StateAnimations.d.ts +2 -0
  66. package/types/components/react/motion/demo/StateAnimations.d.ts.map +1 -0
  67. package/types/components/react/motion/demo/UseTransform.d.ts +2 -0
  68. package/types/components/react/motion/demo/UseTransform.d.ts.map +1 -0
  69. package/types/components/react/ssr/Html.d.ts +7 -0
  70. package/types/components/react/ssr/Html.d.ts.map +1 -0
  71. package/types/components/vnode.d.ts +12 -0
  72. package/types/components/vnode.d.ts.map +1 -0
  73. package/types/components/vue/demoVue.d.ts +16 -0
  74. package/types/components/vue/demoVue.d.ts.map +1 -0
  75. package/types/{hooks/useCookie.d.ts → createCookie.d.ts} +2 -2
  76. package/types/createCookie.d.ts.map +1 -0
  77. package/types/{hooks/useIndexDB.d.ts → createIndexDB.d.ts} +1 -1
  78. package/types/createIndexDB.d.ts.map +1 -0
  79. package/types/{hooks/useLocalStorage.d.ts → createLocalStorage.d.ts} +2 -2
  80. package/types/createLocalStorage.d.ts.map +1 -0
  81. package/types/{hooks/useSessionStorage.d.ts → createSessionStorage.d.ts} +2 -2
  82. package/types/createSessionStorage.d.ts.map +1 -0
  83. package/types/{hooks/useAttribute.d.ts → dom/attribute.d.ts} +3 -3
  84. package/types/dom/attribute.d.ts.map +1 -0
  85. package/types/dom/coords.d.ts +6 -0
  86. package/types/dom/coords.d.ts.map +1 -0
  87. package/types/{hooks/useElementEventBus.d.ts → dom/createElementEventBus.d.ts} +8 -8
  88. package/types/dom/createElementEventBus.d.ts.map +1 -0
  89. package/types/{hooks/useEventListener.d.ts → dom/createEventListener.d.ts} +7 -7
  90. package/types/dom/createEventListener.d.ts.map +1 -0
  91. package/types/dom/dataset.d.ts +7 -0
  92. package/types/dom/dataset.d.ts.map +1 -0
  93. package/types/{hooks/useElement.d.ts → dom/dom.d.ts} +10 -9
  94. package/types/dom/dom.d.ts.map +1 -0
  95. package/types/{hooks/useElementEvents.d.ts → dom/elementEvents.d.ts} +25 -85
  96. package/types/dom/elementEvents.d.ts.map +1 -0
  97. package/types/{hooks/useFeRouteChange.d.ts → dom/feRouteChange.d.ts} +6 -6
  98. package/types/dom/feRouteChange.d.ts.map +1 -0
  99. package/types/dom/index.d.ts +15 -0
  100. package/types/dom/index.d.ts.map +1 -1
  101. package/types/dom/intersection.d.ts +4 -0
  102. package/types/dom/intersection.d.ts.map +1 -0
  103. package/types/dom/matchMedia.d.ts +3 -0
  104. package/types/dom/matchMedia.d.ts.map +1 -0
  105. package/types/{hooks/useMutation.d.ts → dom/mutation.d.ts} +2 -2
  106. package/types/dom/mutation.d.ts.map +1 -0
  107. package/types/dom/resize.d.ts +9 -0
  108. package/types/dom/resize.d.ts.map +1 -0
  109. package/types/{hooks/useSafeArea.d.ts → dom/safeArea.d.ts} +2 -2
  110. package/types/dom/safeArea.d.ts.map +1 -0
  111. package/types/{hooks/useStyle.d.ts → dom/style.d.ts} +1 -1
  112. package/types/dom/style.d.ts.map +1 -0
  113. package/types/dom/visible.d.ts +7 -0
  114. package/types/dom/visible.d.ts.map +1 -0
  115. package/types/file.d.ts +9 -15
  116. package/types/file.d.ts.map +1 -1
  117. package/types/hooks/alimini/createAliMiniControllableState.d.ts +12 -0
  118. package/types/hooks/alimini/createAliMiniControllableState.d.ts.map +1 -0
  119. package/types/hooks/core/index.d.ts +3 -0
  120. package/types/hooks/core/index.d.ts.map +1 -0
  121. package/types/hooks/core/reduxStore.d.ts +30 -0
  122. package/types/hooks/core/reduxStore.d.ts.map +1 -0
  123. package/types/hooks/core/stateStore.d.ts +10 -0
  124. package/types/hooks/core/stateStore.d.ts.map +1 -0
  125. package/types/hooks/index.d.ts +3 -22
  126. package/types/hooks/index.d.ts.map +1 -1
  127. package/types/hooks/react/index.d.ts +5 -0
  128. package/types/hooks/react/index.d.ts.map +1 -0
  129. package/types/hooks/react/useAnimationLoop.d.ts +2 -0
  130. package/types/hooks/react/useAnimationLoop.d.ts.map +1 -0
  131. package/types/hooks/react/useAppState.d.ts +15 -0
  132. package/types/hooks/react/useAppState.d.ts.map +1 -0
  133. package/types/hooks/react/useDelayedValue.d.ts +2 -0
  134. package/types/hooks/react/useDelayedValue.d.ts.map +1 -0
  135. package/types/hooks/react/useDimensions.d.ts +5 -0
  136. package/types/hooks/react/useDimensions.d.ts.map +1 -0
  137. package/types/hooks/react/useDoublePress.d.ts +3 -0
  138. package/types/hooks/react/useDoublePress.d.ts.map +1 -0
  139. package/types/hooks/react/useFadeIn.d.ts +3 -0
  140. package/types/hooks/react/useFadeIn.d.ts.map +1 -0
  141. package/types/hooks/react/useFetch.d.ts +2 -0
  142. package/types/hooks/react/useFetch.d.ts.map +1 -0
  143. package/types/hooks/react/useFormInput.d.ts +5 -0
  144. package/types/hooks/react/useFormInput.d.ts.map +1 -0
  145. package/types/hooks/react/useImmer.d.ts +9 -0
  146. package/types/hooks/react/useImmer.d.ts.map +1 -0
  147. package/types/hooks/react/useMailbox.d.ts +4 -0
  148. package/types/hooks/react/useMailbox.d.ts.map +1 -0
  149. package/types/hooks/react/useMinDisplayTime.d.ts +2 -0
  150. package/types/hooks/react/useMinDisplayTime.d.ts.map +1 -0
  151. package/types/hooks/react/useOnlineStatus.d.ts +2 -0
  152. package/types/hooks/react/useOnlineStatus.d.ts.map +1 -0
  153. package/types/hooks/react/usePointerPosition.d.ts +5 -0
  154. package/types/hooks/react/usePointerPosition.d.ts.map +1 -0
  155. package/types/hooks/react/useProgressBar.d.ts +1 -0
  156. package/types/hooks/react/useProgressBar.d.ts.map +1 -0
  157. package/types/hooks/react/useQuery.d.ts +12 -0
  158. package/types/hooks/react/useQuery.d.ts.map +1 -0
  159. package/types/hooks/react/useReactControllableState.d.ts +10 -0
  160. package/types/hooks/react/useReactControllableState.d.ts.map +1 -0
  161. package/types/hooks/react/useTimeout.d.ts +2 -0
  162. package/types/hooks/react/useTimeout.d.ts.map +1 -0
  163. package/types/hooks/react/useTimer.d.ts +2 -0
  164. package/types/hooks/react/useTimer.d.ts.map +1 -0
  165. package/types/hooks/useDraw/DrawContext.d.ts +3 -3
  166. package/types/hooks/useDraw/DrawContext.d.ts.map +1 -1
  167. package/types/hooks/useDraw/Shape.d.ts +2 -2
  168. package/types/hooks/useDraw/Shape.d.ts.map +1 -1
  169. package/types/hooks/useDraw/line/Arc.d.ts +1 -1
  170. package/types/hooks/useDraw/line/Arc.d.ts.map +1 -1
  171. package/types/hooks/useDraw/line/CubicBezier.d.ts +1 -1
  172. package/types/hooks/useDraw/line/CubicBezier.d.ts.map +1 -1
  173. package/types/hooks/useDraw/line/L.d.ts +1 -1
  174. package/types/hooks/useDraw/line/L.d.ts.map +1 -1
  175. package/types/hooks/useDraw/line/PathD.d.ts +1 -1
  176. package/types/hooks/useDraw/line/PathD.d.ts.map +1 -1
  177. package/types/hooks/useDraw/line/QuadraticBezier.d.ts +1 -1
  178. package/types/hooks/useDraw/line/QuadraticBezier.d.ts.map +1 -1
  179. package/types/hooks/useDraw/shapes/ArrowShape.d.ts +1 -1
  180. package/types/hooks/useDraw/shapes/ArrowShape.d.ts.map +1 -1
  181. package/types/hooks/useDraw/shapes/BallShape.d.ts +1 -1
  182. package/types/hooks/useDraw/shapes/BallShape.d.ts.map +1 -1
  183. package/types/hooks/useDraw/shapes/ConfettiShapeCombo.d.ts.map +1 -1
  184. package/types/hooks/useDraw/shapes/CurveShape.d.ts +1 -1
  185. package/types/hooks/useDraw/shapes/CurveShape.d.ts.map +1 -1
  186. package/types/hooks/useDraw/shapes/EllipseShape.d.ts +1 -1
  187. package/types/hooks/useDraw/shapes/EllipseShape.d.ts.map +1 -1
  188. package/types/hooks/useDraw/shapes/FoxShape.d.ts +1 -1
  189. package/types/hooks/useDraw/shapes/FoxShape.d.ts.map +1 -1
  190. package/types/hooks/useDraw/shapes/HeartShape.d.ts +1 -1
  191. package/types/hooks/useDraw/shapes/HeartShape.d.ts.map +1 -1
  192. package/types/hooks/useDraw/shapes/HeartVariantShape.d.ts +1 -1
  193. package/types/hooks/useDraw/shapes/HeartVariantShape.d.ts.map +1 -1
  194. package/types/hooks/useDraw/shapes/LineShape.d.ts +1 -1
  195. package/types/hooks/useDraw/shapes/LineShape.d.ts.map +1 -1
  196. package/types/hooks/useDraw/shapes/PointsShape.d.ts +1 -1
  197. package/types/hooks/useDraw/shapes/PointsShape.d.ts.map +1 -1
  198. package/types/hooks/useDraw/shapes/RabbitShape.d.ts +1 -1
  199. package/types/hooks/useDraw/shapes/RabbitShape.d.ts.map +1 -1
  200. package/types/hooks/useDraw/shapes/RectShape.d.ts +1 -1
  201. package/types/hooks/useDraw/shapes/RectShape.d.ts.map +1 -1
  202. package/types/hooks/useDraw/shapes/RingShape.d.ts +1 -1
  203. package/types/hooks/useDraw/shapes/RingShape.d.ts.map +1 -1
  204. package/types/hooks/useDraw/shapes/StarShape.d.ts +1 -1
  205. package/types/hooks/useDraw/shapes/StarShape.d.ts.map +1 -1
  206. package/types/hooks/useDraw/shapes/TextShape.d.ts +1 -1
  207. package/types/hooks/useDraw/shapes/TextShape.d.ts.map +1 -1
  208. package/types/hooks/useLocale/useLocale.d.ts +2 -2
  209. package/types/hooks/useLocale/useLocale.d.ts.map +1 -1
  210. package/types/hooks/vue/index.d.ts +3 -0
  211. package/types/hooks/vue/index.d.ts.map +1 -0
  212. package/types/hooks/vue/useAppState.d.ts +13 -0
  213. package/types/hooks/vue/useAppState.d.ts.map +1 -0
  214. package/types/hooks/vue/useVueControllableState.d.ts +11 -0
  215. package/types/hooks/vue/useVueControllableState.d.ts.map +1 -0
  216. package/types/hooks/wxmini/createWxMiniControllableState.d.ts +12 -0
  217. package/types/hooks/wxmini/createWxMiniControllableState.d.ts.map +1 -0
  218. package/types/index.d.ts +7 -8
  219. package/types/index.d.ts.map +1 -1
  220. package/types/math/BufferAttribute.d.ts +0 -71
  221. package/types/math/BufferAttribute.d.ts.map +1 -1
  222. package/types/math/Euler.d.ts +0 -32
  223. package/types/math/Euler.d.ts.map +1 -1
  224. package/types/math/Matrix.d.ts +0 -6
  225. package/types/math/Matrix.d.ts.map +1 -1
  226. package/types/math/Quaternion.d.ts +0 -51
  227. package/types/math/Quaternion.d.ts.map +1 -1
  228. package/types/math/Shape.d.ts +5 -4
  229. package/types/math/Shape.d.ts.map +1 -1
  230. package/types/math/Vector.d.ts +0 -11
  231. package/types/math/Vector.d.ts.map +1 -1
  232. package/types/math/core/Box3.d.ts +0 -45
  233. package/types/math/core/Box3.d.ts.map +1 -1
  234. package/types/math/core/Frustum.d.ts +0 -22
  235. package/types/math/core/Frustum.d.ts.map +1 -1
  236. package/types/math/core/Object3D.d.ts +0 -95
  237. package/types/math/core/Object3D.d.ts.map +1 -1
  238. package/types/math/core/Plane.d.ts +0 -30
  239. package/types/math/core/Plane.d.ts.map +1 -1
  240. package/types/math/core/Ray.d.ts +0 -31
  241. package/types/math/core/Ray.d.ts.map +1 -1
  242. package/types/math/core/Sphere.d.ts +0 -28
  243. package/types/math/core/Sphere.d.ts.map +1 -1
  244. package/types/math/core/Triangle.d.ts +0 -33
  245. package/types/math/core/Triangle.d.ts.map +1 -1
  246. package/types/math/index.d.ts +0 -1
  247. package/types/math/index.d.ts.map +1 -1
  248. package/types/math/line/Arc.d.ts +2 -2
  249. package/types/math/line/Arc.d.ts.map +1 -1
  250. package/types/math/line/CubicBezier.d.ts +2 -2
  251. package/types/math/line/CubicBezier.d.ts.map +1 -1
  252. package/types/math/line/L.d.ts +2 -2
  253. package/types/math/line/L.d.ts.map +1 -1
  254. package/types/math/line/PathD.d.ts +6 -6
  255. package/types/math/line/PathD.d.ts.map +1 -1
  256. package/types/math/line/QuadraticBezier.d.ts +2 -2
  257. package/types/math/line/QuadraticBezier.d.ts.map +1 -1
  258. package/types/math/shapes/Light3D.d.ts +2 -2
  259. package/types/math/shapes/Light3D.d.ts.map +1 -1
  260. package/types/math/shapes/Point3D.d.ts +2 -2
  261. package/types/math/shapes/Point3D.d.ts.map +1 -1
  262. package/types/math/shapes/Point3Ds.d.ts +2 -2
  263. package/types/math/shapes/Point3Ds.d.ts.map +1 -1
  264. package/types/motion.d.ts +7 -0
  265. package/types/motion.d.ts.map +1 -0
  266. package/types/{hooks/useServiceWorker.d.ts → serviceWorker.d.ts} +1 -1
  267. package/types/serviceWorker.d.ts.map +1 -0
  268. package/types/svg/SVGParse.d.ts +1 -1
  269. package/types/svg/SVGParse.d.ts.map +1 -1
  270. package/types/svg/SVGUtil.d.ts.map +1 -0
  271. package/types/svg/index.d.ts +2 -1
  272. package/types/svg/index.d.ts.map +1 -1
  273. package/types/theme.d.ts +57 -0
  274. package/types/theme.d.ts.map +1 -0
  275. package/types/Context.d.ts +0 -36
  276. package/types/Context.d.ts.map +0 -1
  277. package/types/MVVM.d.ts +0 -12
  278. package/types/MVVM.d.ts.map +0 -1
  279. package/types/animate/schedule.d.ts +0 -15
  280. package/types/animate/schedule.d.ts.map +0 -1
  281. package/types/color.d.ts +0 -111
  282. package/types/color.d.ts.map +0 -1
  283. package/types/env.d.ts +0 -23
  284. package/types/env.d.ts.map +0 -1
  285. package/types/hooks/useAttribute.d.ts.map +0 -1
  286. package/types/hooks/useCookie.d.ts.map +0 -1
  287. package/types/hooks/useCoords.d.ts +0 -6
  288. package/types/hooks/useCoords.d.ts.map +0 -1
  289. package/types/hooks/useDataset.d.ts +0 -4
  290. package/types/hooks/useDataset.d.ts.map +0 -1
  291. package/types/hooks/useDraw/svg/SVGParse.d.ts +0 -16
  292. package/types/hooks/useDraw/svg/SVGParse.d.ts.map +0 -1
  293. package/types/hooks/useDraw/svg/SVGUtil.d.ts.map +0 -1
  294. package/types/hooks/useDraw/svg/index.d.ts +0 -4
  295. package/types/hooks/useDraw/svg/index.d.ts.map +0 -1
  296. package/types/hooks/useDraw/svg/line2c.d.ts +0 -5
  297. package/types/hooks/useDraw/svg/line2c.d.ts.map +0 -1
  298. package/types/hooks/useElement.d.ts.map +0 -1
  299. package/types/hooks/useElementEventBus.d.ts.map +0 -1
  300. package/types/hooks/useElementEvents.d.ts.map +0 -1
  301. package/types/hooks/useEventListener.d.ts.map +0 -1
  302. package/types/hooks/useFeRouteChange.d.ts.map +0 -1
  303. package/types/hooks/useFetch.d.ts +0 -14
  304. package/types/hooks/useFetch.d.ts.map +0 -1
  305. package/types/hooks/useIndexDB.d.ts.map +0 -1
  306. package/types/hooks/useIntersection.d.ts +0 -4
  307. package/types/hooks/useIntersection.d.ts.map +0 -1
  308. package/types/hooks/useLocalStorage.d.ts.map +0 -1
  309. package/types/hooks/useMatchMedia.d.ts +0 -3
  310. package/types/hooks/useMatchMedia.d.ts.map +0 -1
  311. package/types/hooks/useMutation.d.ts.map +0 -1
  312. package/types/hooks/useResize.d.ts +0 -9
  313. package/types/hooks/useResize.d.ts.map +0 -1
  314. package/types/hooks/useSafeArea.d.ts.map +0 -1
  315. package/types/hooks/useServiceWorker.d.ts.map +0 -1
  316. package/types/hooks/useSessionStorage.d.ts.map +0 -1
  317. package/types/hooks/useStyle.d.ts.map +0 -1
  318. package/types/hooks/useTheme.d.ts +0 -9
  319. package/types/hooks/useTheme.d.ts.map +0 -1
  320. package/types/hooks/useVisible.d.ts +0 -10
  321. package/types/hooks/useVisible.d.ts.map +0 -1
  322. package/types/hooks/useVnode.d.ts +0 -7
  323. package/types/hooks/useVnode.d.ts.map +0 -1
  324. package/types/signature.d.ts +0 -30
  325. package/types/signature.d.ts.map +0 -1
  326. package/types/svg/DOMSVGUtil.d.ts +0 -20
  327. package/types/svg/DOMSVGUtil.d.ts.map +0 -1
  328. package/types/vnode.d.ts +0 -18
  329. package/types/vnode.d.ts.map +0 -1
  330. /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 useEventListener(target: HTMLEventObservable, eventName: EventName, handler: (e: EventScope) => void | Promise<void>, useCapture?: boolean): () => void;
9
- export declare function useParentEventListener(parent: HTMLEventObservable, target: HTMLEventObservable, eventName: EventName, handler: (e: EventScope) => void | Promise<void>, useCapture?: boolean): () => void;
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 useEvent$<T extends EventScope = EventScope>(target: HTMLEventObservable, eventName: EventName, useCapture?: boolean): Observable<T>;
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=useEventListener.d.ts.map
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,CAAC;AAKR,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,GAAG,OAa3C;AAED,MAAM,MAAM,mBAAmB,GAC3B,WAAW,GACX,WAAW,GACX,UAAU,GACV,aAAa,GACb,iBAAiB,GACjB,GAAG,CAAC;AAOR,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,mBAAmB,EAC3B,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EAChD,UAAU,UAAQ,GACjB,MAAM,IAAI,CAkBZ;AAGD,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,mBAAmB,EAC3B,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BAAgB,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, ReadInBrowserEnum } from "@zyzgroup/core-common";
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 useLoadScript(url: string, ms?: number): Promise<unknown>;
22
- export declare function useClickA(blobOrUrl: Blob | string, fileName: string): void;
23
- export declare function useLoadLink(url: string, parent?: HTMLHeadElement, ms?: number): Promise<unknown>;
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 useLoadImage(url: string | Blob | File, ms?: number): Promise<RawImageInfo>;
33
- export declare function useSelectFile<T extends string | ArrayBuffer>(readType?: ReadInBrowserEnum, accepts?: string[]): Promise<{
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 useSelectFileImage(accepts?: string[]): Promise<Error | {
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 useClipboard(text: string): Promise<boolean | void>;
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
- //# sourceMappingURL=useElement.d.ts.map
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,CAAC;CACZ,QAUF;AAED,wBAAgB,OAAO,CACrB,EAAE,EAAE,UAAU,EACd,OAAO,EAAE;IACP,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,QA6BF;AAGD,eAAO,MAAM,SAAS,QAKc,GAAG,QAOhC,CAAC;AAER,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,WAAW,UAE9D;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,QAE1C;AAKD,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,IAAI,cAoB7C;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,CAAC,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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, ReadInBrowserEnum } from "@zyzgroup/core-common";
1
+ import { AnyElement, FileReaderResponseTypeInBrowser } from "@zyzgroup/core-common";
2
2
  import { Observable } from "rxjs";
3
- import { HTMLEventObservable } from "./useEventListener";
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 useMousePoint(): {
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
- useMousePoint?: ReturnType<typeof useMousePoint>;
93
- };
94
- export declare function useMouseMovePoint$(el?: HTMLElement, options?: Pick<MousePointMoveOptions, "useMousePoint">): Observable<MousePointGroup>;
95
- export declare function useMouseDownMovePoint$(el?: HTMLElement, options?: MousePointMoveOptions): Observable<MousePointGroup>;
96
- export declare function useTouchDownMovePoint$(el?: HTMLElement, options?: MousePointMoveOptions): Observable<MousePointGroup>;
97
- export declare function usePointerDownMovePoint$(el?: HTMLElement, options?: MousePointMoveOptions): Observable<MousePointGroup>;
98
- export declare function useCompatableDownMovePoint$(el?: HTMLElement, options?: MousePointMoveOptions): Observable<MousePointGroup>;
99
- export declare function useMouseAndPointerDownMovePoint$(el?: HTMLElement, options?: MousePointMoveOptions): Observable<MousePointGroup>;
100
- export declare function usePull$(el: HTMLElement): Observable<number>;
101
- export declare function useDraggable(el: HTMLElement, options?: {
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 useDrop(el: HTMLElement, options?: {
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 useHotKeyDown$(options: HotKeyOptions): Observable<void>;
276
- export declare function useHotKeyUp$(options: HotKeyOptions): Observable<void>;
277
- export declare function useHotKeyFile$(hotKeyOptions?: HotKeyOptions, type?: ReadInBrowserEnum): Observable<{
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 useHotKeyFile(hotKeyOptions?: HotKeyOptions, type?: ReadInBrowserEnum): Promise<{
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=useElementEvents.d.ts.map
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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"rxjs";
2
2
  import { State } from "@zyzgroup/core-common";
3
- export declare function useLocation$(): Observable<Location>;
4
- export declare function useUrlChange$(): Observable<string>;
5
- export declare function useHashChange$(): Observable<string>;
6
- export declare function usePopStateChange$(nameInState?: string): Observable<any>;
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 useFeRoute(options?: {
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=useFeRouteChange.d.ts.map
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"}
@@ -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
@@ -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,4 @@
1
+ import { type AnyElement } from "@zyzgroup/core-common";
2
+ import { Observable } from "rxjs";
3
+ export declare function intersection$(el: AnyElement, options?: IntersectionObserverInit): Observable<IntersectionObserverEntry>;
4
+ //# sourceMappingURL=intersection.d.ts.map
@@ -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,3 @@
1
+ import { Observable } from "rxjs";
2
+ export declare function matchMedia$(query?: string): Observable<boolean>;
3
+ //# sourceMappingURL=matchMedia.d.ts.map
@@ -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 useMutation$(el: AnyElement | Document, options?: MutationObserverInit): Observable<MutationRecord[]>;
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=useMutation.d.ts.map
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 useSafeArea$(): Observable<{
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=useSafeArea.d.ts.map
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"}
@@ -25,4 +25,4 @@ export declare function getRules(): Promise<{
25
25
  [index: string]: RuleList;
26
26
  }>;
27
27
  export {};
28
- //# sourceMappingURL=useStyle.d.ts.map
28
+ //# sourceMappingURL=style.d.ts.map
@@ -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,wBAAgB,cAAc,CAC5B,EAAE,EAAE,WAAW,GAAG,GAAG,EACrB,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACrC,KAAK,CAAC,EAAE,MAAM,QAoBf;AAED,wBAAgB,eAAe,CAC7B,EAAE,EAAE,WAAW,GAAG,GAAG,EACrB,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,QAStC;AAYD,wBAAgB,WAAW,CACzB,mBAAmB,EAAE,MAAM,EAC3B,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,cAmCzB;AAED,cAAM,OAAO;IACJ,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;gBAET,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAMlD,QAAQ;CAGhB;AAED,cAAM,QAAQ;IACL,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,EAAE,CAAM;gBAElB,YAAY,EAAE,MAAM;IAIzB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAG3C;AAED,wBAAsB,cAAc,sBA8BnC;AAED,wBAAsB,QAAQ;;GA8B7B"}
@@ -0,0 +1,7 @@
1
+ import { Observable } from "rxjs";
2
+ import { type AnyElement } from "@zyzgroup/core-common";
3
+ export declare function visible$(el: AnyElement, options?: {
4
+ threshold?: number;
5
+ root?: HTMLElement;
6
+ }): Observable<boolean>;
7
+ //# sourceMappingURL=visible.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visible.d.ts","sourceRoot":"","sources":["../../src/dom/visible.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAwC,MAAM,MAAM,CAAC;AACxE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAuBxD,wBAAgB,QAAQ,CACtB,EAAE,EAAE,UAAU,EACd,OAAO,CAAC,EAAE;IACR,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB,GACA,UAAU,CAAC,OAAO,CAAC,CAYrB"}
package/types/file.d.ts CHANGED
@@ -1,21 +1,15 @@
1
- import { MIMEEnum, EncodeEnum, Time, ReadInBrowserEnum, FetchWithAxios } from "@zyzgroup/core-common";
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 DOMToString: (el: HTMLElement) => string;
8
- export declare const stringToDOM: (str: string, type?: DOMParserSupportedType) => Document;
9
- export declare const DOMToBlob: (el: HTMLElement, options?: {
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?: ReadInBrowserEnum, progressCb?: (loaded: number, total: number) => void): Promise<T>;
16
- export declare function getFileTypeFromFile(file: File): Promise<MIMEEnum.UNKNOWN | MIMEEnum.JPEG | MIMEEnum.PNG | MIMEEnum.GIF | MIMEEnum.WEBP | MIMEEnum.PDF | MIMEEnum.ZIP>;
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: Time;
27
+ time: TimeArray;
34
28
  onExist?: () => void;
35
29
  onStart?: () => void;
36
30
  onProgress?: (currentChunk: number, chunks: number) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../src/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,QAAQ,EACR,UAAU,EACV,IAAI,EAGJ,iBAAiB,EACjB,cAAc,EACf,MAAM,uBAAuB,CAAC;AAG/B,eAAO,MAAM,uBAAuB;;;CAKvB,CAAC;AAEd,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,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CAIf,SAGF,CAAC;AAEF,wBAAsB,mBAAmB,CACvC,OAAO,GAAE,MAAM,EAAU,EACzB,QAAQ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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,3 @@
1
+ export * from "./stateStore";
2
+ export * from "./reduxStore";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -1,25 +1,6 @@
1
- export * from "./useElementEventBus";
2
- export * from "./useElement";
3
- export * from "./useElementEvents";
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