@tarojs/components 3.5.1-aplha.0 → 3.5.2
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/cjs/{index-13289aba.js → index-7c61bee9.js} +8 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-button-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-components.cjs.js +2 -2
- package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-cover-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-icon-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-image-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-input-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-movable-area-core.cjs.entry.js +141 -3
- package/dist/cjs/taro-movable-view-core.cjs.entry.js +377 -3
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-navigator-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-picker-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +1 -1
- package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-rich-text-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-root-portal-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +1 -1
- package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-tabbar.cjs.entry.js +1 -1
- package/dist/cjs/taro-text-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-video-control_3.cjs.entry.js +1 -1
- package/dist/cjs/taro-view-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
- package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
- package/dist/collection/components/movable-area/area.css +6 -0
- package/dist/collection/components/movable-area/movable-area.js +165 -4
- package/dist/collection/components/movable-area/movable-view.js +735 -3
- package/dist/collection/components/movable-area/view.css +8 -0
- package/dist/esm/{index-26d8b479.js → index-8809c729.js} +8 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/taro-ad-core.entry.js +1 -1
- package/dist/esm/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm/taro-audio-core.entry.js +1 -1
- package/dist/esm/taro-block-core.entry.js +1 -1
- package/dist/esm/taro-button-core.entry.js +1 -1
- package/dist/esm/taro-camera-core.entry.js +1 -1
- package/dist/esm/taro-canvas-core.entry.js +1 -1
- package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm/taro-components.js +2 -2
- package/dist/esm/taro-cover-image-core.entry.js +1 -1
- package/dist/esm/taro-cover-view-core.entry.js +1 -1
- package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm/taro-editor-core.entry.js +1 -1
- package/dist/esm/taro-form-core.entry.js +1 -1
- package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm/taro-icon-core.entry.js +1 -1
- package/dist/esm/taro-image-core.entry.js +1 -1
- package/dist/esm/taro-input-core.entry.js +1 -1
- package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm/taro-label-core.entry.js +1 -1
- package/dist/esm/taro-live-player-core.entry.js +1 -1
- package/dist/esm/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm/taro-map-core.entry.js +1 -1
- package/dist/esm/taro-match-media-core.entry.js +1 -1
- package/dist/esm/taro-movable-area-core.entry.js +141 -3
- package/dist/esm/taro-movable-view-core.entry.js +377 -3
- package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm/taro-navigator-core.entry.js +1 -1
- package/dist/esm/taro-official-account-core.entry.js +1 -1
- package/dist/esm/taro-open-data-core.entry.js +1 -1
- package/dist/esm/taro-page-container-core.entry.js +1 -1
- package/dist/esm/taro-page-meta-core.entry.js +1 -1
- package/dist/esm/taro-picker-core_2.entry.js +1 -1
- package/dist/esm/taro-picker-view-column-core.entry.js +1 -1
- package/dist/esm/taro-picker-view-core.entry.js +1 -1
- package/dist/esm/taro-progress-core.entry.js +1 -1
- package/dist/esm/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm/taro-radio-core_2.entry.js +1 -1
- package/dist/esm/taro-rich-text-core.entry.js +1 -1
- package/dist/esm/taro-root-portal-core.entry.js +1 -1
- package/dist/esm/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm/taro-share-element-core.entry.js +1 -1
- package/dist/esm/taro-slider-core.entry.js +1 -1
- package/dist/esm/taro-slot-core.entry.js +1 -1
- package/dist/esm/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm/taro-switch-core.entry.js +1 -1
- package/dist/esm/taro-tabbar.entry.js +1 -1
- package/dist/esm/taro-text-core.entry.js +1 -1
- package/dist/esm/taro-textarea-core.entry.js +1 -1
- package/dist/esm/taro-video-control_3.entry.js +1 -1
- package/dist/esm/taro-view-core.entry.js +1 -1
- package/dist/esm/taro-voip-room-core.entry.js +1 -1
- package/dist/esm/taro-web-view-core.entry.js +1 -1
- package/dist/esm-es5/{index-26d8b479.js → index-8809c729.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-ad-core.entry.js +1 -1
- package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
- package/dist/esm-es5/taro-audio-core.entry.js +1 -1
- package/dist/esm-es5/taro-block-core.entry.js +1 -1
- package/dist/esm-es5/taro-button-core.entry.js +1 -1
- package/dist/esm-es5/taro-camera-core.entry.js +1 -1
- package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
- package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
- package/dist/esm-es5/taro-editor-core.entry.js +1 -1
- package/dist/esm-es5/taro-form-core.entry.js +1 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-icon-core.entry.js +1 -1
- package/dist/esm-es5/taro-image-core.entry.js +1 -1
- package/dist/esm-es5/taro-input-core.entry.js +1 -1
- package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
- package/dist/esm-es5/taro-label-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
- package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
- package/dist/esm-es5/taro-map-core.entry.js +1 -1
- package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-area-core.entry.js +1 -1
- package/dist/esm-es5/taro-movable-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
- package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
- package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
- package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
- package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -1
- package/dist/esm-es5/taro-picker-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-progress-core.entry.js +1 -1
- package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
- package/dist/esm-es5/taro-slider-core.entry.js +1 -1
- package/dist/esm-es5/taro-slot-core.entry.js +1 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
- package/dist/esm-es5/taro-switch-core.entry.js +1 -1
- package/dist/esm-es5/taro-tabbar.entry.js +1 -1
- package/dist/esm-es5/taro-text-core.entry.js +1 -1
- package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
- package/dist/esm-es5/taro-video-control_3.entry.js +55 -55
- package/dist/esm-es5/taro-view-core.entry.js +1 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
- package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
- package/dist/taro-components/{p-44a199e4.entry.js → p-00201a61.entry.js} +1 -1
- package/dist/taro-components/p-0380841f.system.js +1 -0
- package/dist/taro-components/{p-66b1d5f9.system.entry.js → p-0414632d.system.entry.js} +1 -1
- package/dist/taro-components/p-059912fd.js +1 -0
- package/dist/taro-components/{p-abb9c7d0.entry.js → p-06bef0f9.entry.js} +1 -1
- package/dist/taro-components/{p-62608b28.system.entry.js → p-0a70de87.system.entry.js} +1 -1
- package/dist/taro-components/{p-9b90554b.system.entry.js → p-10c47df8.system.entry.js} +1 -1
- package/dist/taro-components/{p-a9ab6434.system.entry.js → p-10e5df98.system.entry.js} +1 -1
- package/dist/taro-components/{p-8f466248.system.entry.js → p-14058364.system.entry.js} +1 -1
- package/dist/taro-components/{p-831ebd02.system.entry.js → p-1a638246.system.entry.js} +1 -1
- package/dist/taro-components/p-1c775a11.system.entry.js +1 -0
- package/dist/taro-components/p-1e530acd.entry.js +1 -0
- package/dist/taro-components/p-22e33350.entry.js +1 -0
- package/dist/taro-components/p-24a66088.system.entry.js +1 -0
- package/dist/taro-components/p-25df0ce9.entry.js +1 -0
- package/dist/taro-components/{p-a900b437.system.entry.js → p-27126803.system.entry.js} +1 -1
- package/dist/taro-components/{p-1e0406ec.system.entry.js → p-275d883f.system.entry.js} +1 -1
- package/dist/taro-components/{p-d56c45bf.system.entry.js → p-27c80869.system.entry.js} +1 -1
- package/dist/taro-components/{p-9ce624a4.system.entry.js → p-2fd0250d.system.entry.js} +1 -1
- package/dist/taro-components/{p-49954245.system.entry.js → p-3255f11f.system.entry.js} +1 -1
- package/dist/taro-components/{p-4c890c5d.entry.js → p-362998cf.entry.js} +1 -1
- package/dist/taro-components/{p-cfebd931.entry.js → p-3c6090fd.entry.js} +1 -1
- package/dist/taro-components/p-3c7cdf6f.entry.js +1 -0
- package/dist/taro-components/{p-6e0a22dc.entry.js → p-410d449f.entry.js} +1 -1
- package/dist/taro-components/{p-0ea13d67.system.entry.js → p-44398c17.system.entry.js} +1 -1
- package/dist/taro-components/p-443fb8b0.entry.js +1 -0
- package/dist/taro-components/p-44cbb351.system.js +1 -0
- package/dist/taro-components/{p-ec59899b.system.entry.js → p-44fa48b9.system.entry.js} +1 -1
- package/dist/taro-components/{p-36f2c1e1.system.entry.js → p-481a8bc1.system.entry.js} +1 -1
- package/dist/taro-components/p-49b64020.entry.js +1 -0
- package/dist/taro-components/{p-a74f4c26.entry.js → p-4ada10aa.entry.js} +1 -1
- package/dist/taro-components/{p-4ee47fc0.system.entry.js → p-4e8d4a72.system.entry.js} +1 -1
- package/dist/taro-components/{p-a36bfe97.system.entry.js → p-4f0e98c0.system.entry.js} +1 -1
- package/dist/taro-components/p-4f805045.entry.js +1 -0
- package/dist/taro-components/{p-69334f7c.entry.js → p-5733124c.entry.js} +1 -1
- package/dist/taro-components/{p-53244eac.entry.js → p-5a2305e7.entry.js} +1 -1
- package/dist/taro-components/{p-78676120.system.entry.js → p-5c87902f.system.entry.js} +1 -1
- package/dist/taro-components/{p-a838e0f7.system.entry.js → p-5e223bab.system.entry.js} +1 -1
- package/dist/taro-components/{p-a90bfe9d.system.entry.js → p-5e3bd0db.system.entry.js} +1 -1
- package/dist/taro-components/{p-5c2497a4.system.entry.js → p-5f18259d.system.entry.js} +1 -1
- package/dist/taro-components/{p-4339ad63.system.entry.js → p-64447f5a.system.entry.js} +1 -1
- package/dist/taro-components/{p-372f53d8.system.entry.js → p-67222d90.system.entry.js} +1 -1
- package/dist/taro-components/{p-2bd2ea9a.system.entry.js → p-692d986d.system.entry.js} +1 -1
- package/dist/taro-components/p-6da73376.entry.js +1 -0
- package/dist/taro-components/{p-3e223f2f.system.entry.js → p-6e9805e2.system.entry.js} +1 -1
- package/dist/taro-components/p-72f858e4.entry.js +1 -0
- package/dist/taro-components/{p-45e6f8be.entry.js → p-7325d380.entry.js} +1 -1
- package/dist/taro-components/{p-060858b1.entry.js → p-7407013d.entry.js} +1 -1
- package/dist/taro-components/{p-86205110.entry.js → p-77ad7941.entry.js} +1 -1
- package/dist/taro-components/p-7ab91097.entry.js +1 -0
- package/dist/taro-components/{p-0d1e0e91.system.entry.js → p-7b96cec3.system.entry.js} +1 -1
- package/dist/taro-components/p-7e23b551.entry.js +1 -0
- package/dist/taro-components/{p-d7e13592.entry.js → p-7e8943d8.entry.js} +1 -1
- package/dist/taro-components/{p-74013ace.entry.js → p-7f0a12a9.entry.js} +1 -1
- package/dist/taro-components/{p-7f7aa688.entry.js → p-7f93fa08.entry.js} +1 -1
- package/dist/taro-components/{p-ac398961.system.entry.js → p-82661d45.system.entry.js} +1 -1
- package/dist/taro-components/{p-828efe43.system.entry.js → p-840ef0c3.system.entry.js} +1 -1
- package/dist/taro-components/{p-75811f84.system.entry.js → p-8475421b.system.entry.js} +1 -1
- package/dist/taro-components/{p-8ba35b31.system.entry.js → p-8788dc46.system.entry.js} +1 -1
- package/dist/taro-components/{p-0d0b3677.entry.js → p-886571e5.entry.js} +1 -1
- package/dist/taro-components/{p-fc226017.entry.js → p-888fac99.entry.js} +1 -1
- package/dist/taro-components/{p-12deba0b.system.entry.js → p-89c876a6.system.entry.js} +1 -1
- package/dist/taro-components/p-8aea3de3.entry.js +1 -0
- package/dist/taro-components/{p-16aff829.entry.js → p-8c8be53b.entry.js} +1 -1
- package/dist/taro-components/{p-9130dfca.system.entry.js → p-8cf86f31.system.entry.js} +1 -1
- package/dist/taro-components/{p-3d3cd72f.entry.js → p-90a6c15a.entry.js} +1 -1
- package/dist/taro-components/{p-d2b6b891.entry.js → p-92699438.entry.js} +1 -1
- package/dist/taro-components/p-95a36917.entry.js +1 -0
- package/dist/taro-components/{p-2e8a1479.system.entry.js → p-9965cf11.system.entry.js} +1 -1
- package/dist/taro-components/{p-7dc268ee.entry.js → p-9a0e70b1.entry.js} +1 -1
- package/dist/taro-components/{p-2887213d.system.entry.js → p-9afbb423.system.entry.js} +1 -1
- package/dist/taro-components/{p-e01af6c8.entry.js → p-9b39a940.entry.js} +1 -1
- package/dist/taro-components/{p-16c1e564.entry.js → p-9fcb40a3.entry.js} +1 -1
- package/dist/taro-components/{p-3b801a38.system.entry.js → p-a63fbc50.system.entry.js} +1 -1
- package/dist/taro-components/{p-de573939.system.entry.js → p-a8c9b126.system.entry.js} +1 -1
- package/dist/taro-components/{p-3b85bb4b.system.entry.js → p-a94524c9.system.entry.js} +1 -1
- package/dist/taro-components/{p-5ff0e954.system.entry.js → p-aa5d45de.system.entry.js} +1 -1
- package/dist/taro-components/{p-9151ef65.entry.js → p-ab1256fe.entry.js} +1 -1
- package/dist/taro-components/{p-019591c8.system.entry.js → p-ad6ad7e3.system.entry.js} +1 -1
- package/dist/taro-components/p-b2800ccd.entry.js +1 -0
- package/dist/taro-components/{p-178a3adf.system.entry.js → p-b3693ca2.system.entry.js} +1 -1
- package/dist/taro-components/{p-d636e22e.entry.js → p-b3b677fc.entry.js} +1 -1
- package/dist/taro-components/{p-fe252a81.system.entry.js → p-b3d961f9.system.entry.js} +1 -1
- package/dist/taro-components/p-b7639674.entry.js +1 -0
- package/dist/taro-components/{p-8b30e18c.system.entry.js → p-b7ac0b7f.system.entry.js} +1 -1
- package/dist/taro-components/{p-f1da4ed7.system.entry.js → p-b83c3eca.system.entry.js} +1 -1
- package/dist/taro-components/{p-8b23a081.system.entry.js → p-b9903f15.system.entry.js} +1 -1
- package/dist/taro-components/p-c0c8b2be.entry.js +1 -0
- package/dist/taro-components/p-c8da5c10.entry.js +1 -0
- package/dist/taro-components/{p-88063d40.system.entry.js → p-cd88d81a.system.entry.js} +1 -1
- package/dist/taro-components/{p-29b7c721.system.entry.js → p-d72075ef.system.entry.js} +1 -1
- package/dist/taro-components/{p-0ca42006.entry.js → p-db1f2db7.entry.js} +1 -1
- package/dist/taro-components/{p-baa5019a.system.entry.js → p-df3b544a.system.entry.js} +1 -1
- package/dist/taro-components/{p-133e3ac4.entry.js → p-dff55efd.entry.js} +1 -1
- package/dist/taro-components/{p-0f42b8a4.entry.js → p-e1ed00f7.entry.js} +1 -1
- package/dist/taro-components/{p-832cc63a.entry.js → p-e3f39099.entry.js} +1 -1
- package/dist/taro-components/{p-ca7ad427.system.entry.js → p-e671c8c5.system.entry.js} +1 -1
- package/dist/taro-components/{p-841a2031.system.entry.js → p-ed8c1bb8.system.entry.js} +1 -1
- package/dist/taro-components/{p-430d72e8.entry.js → p-eec00033.entry.js} +1 -1
- package/dist/taro-components/{p-06e3d685.system.entry.js → p-eeed74e3.system.entry.js} +1 -1
- package/dist/taro-components/{p-81dc5b7b.entry.js → p-ef006b23.entry.js} +1 -1
- package/dist/taro-components/p-f8b9c4b0.entry.js +1 -0
- package/dist/taro-components/{p-e7dcb4d5.entry.js → p-fa2a9bab.entry.js} +1 -1
- package/dist/taro-components/{p-4793e6ba.system.entry.js → p-fc9f4fd7.system.entry.js} +1 -1
- package/dist/taro-components/{p-81976128.entry.js → p-fec6ac36.entry.js} +1 -1
- package/dist/taro-components/{p-ac56ffed.entry.js → p-ff84986d.entry.js} +1 -1
- package/dist/taro-components/{p-ce46f79d.entry.js → p-ffefd74f.entry.js} +1 -1
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/taro-components/taro-components.js +1 -1
- package/dist/types/components/movable-area/movable-area.d.ts +23 -0
- package/dist/types/components/movable-area/movable-view.d.ts +153 -0
- package/dist/types/components.d.ts +140 -0
- package/package.json +3 -4
- package/types/Video.d.ts +18 -0
- package/types/{props.ts → props.d.ts} +0 -0
- package/dist/taro-components/p-0996daee.entry.js +0 -1
- package/dist/taro-components/p-1e516bd0.entry.js +0 -1
- package/dist/taro-components/p-2241b671.system.js +0 -1
- package/dist/taro-components/p-26e9ce75.entry.js +0 -1
- package/dist/taro-components/p-29bb3ebe.entry.js +0 -1
- package/dist/taro-components/p-3bb72c08.entry.js +0 -1
- package/dist/taro-components/p-46b7f84e.entry.js +0 -1
- package/dist/taro-components/p-62c64770.entry.js +0 -1
- package/dist/taro-components/p-671defcd.entry.js +0 -1
- package/dist/taro-components/p-6f2f468b.entry.js +0 -1
- package/dist/taro-components/p-70313eed.entry.js +0 -1
- package/dist/taro-components/p-756d56d1.system.entry.js +0 -1
- package/dist/taro-components/p-7b2049b7.entry.js +0 -1
- package/dist/taro-components/p-80abb865.entry.js +0 -1
- package/dist/taro-components/p-83adb645.system.js +0 -1
- package/dist/taro-components/p-8ead6b19.entry.js +0 -1
- package/dist/taro-components/p-95e51d62.entry.js +0 -1
- package/dist/taro-components/p-9961074d.entry.js +0 -1
- package/dist/taro-components/p-a4721ae0.js +0 -1
- package/dist/taro-components/p-c1458fbe.system.entry.js +0 -1
- package/dist/taro-components/p-c9b73495.entry.js +0 -1
- package/dist/taro-components/p-ce0489a6.entry.js +0 -1
- package/dist/taro-components/p-d6c8f31d.entry.js +0 -1
- package/dist/types/home/runner/work/taro/taro/packages/taro-components/.stencil/types/props.d.ts +0 -62
- package/dist/types/props.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as e,H as o}from"./p-
|
|
1
|
+
import{r,h as e,H as o}from"./p-059912fd.js";let s=class{constructor(e){r(this,e)}componentDidLoad(){console.error("H5 暂不支持 LivePusher 组件!")}render(){return e(o,null)}};export{s as taro_live_pusher_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-44cbb351.system.js"],(function(t){"use strict";var r,e,n;return{setters:[function(t){r=t.r;e=t.h;n=t.H}],execute:function(){var u=t("taro_block_core",function(){function t(t){r(this,t)}t.prototype.render=function(){return e(n,null)};return t}())}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return l([e,t])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(r)try{if(i=1,n&&(a=s[0]&2?n["return"]:s[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,s[1])).done)return a;if(n=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;n=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){r.label=s[1];break}if(s[0]===6&&r.label<a[1]){r.label=a[1];a=s;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(s);break}if(a[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];n=0}finally{i=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t){for(var r=0,i=t.length,n=e.length;r<i;r++,n++)e[n]=t[r];return e};System.register(["./p-
|
|
1
|
+
var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return l([e,t])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(r)try{if(i=1,n&&(a=s[0]&2?n["return"]:s[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,s[1])).done)return a;if(n=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;n=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){r.label=s[1];break}if(s[0]===6&&r.label<a[1]){r.label=a[1];a=s;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(s);break}if(a[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];n=0}finally{i=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t){for(var r=0,i=t.length,n=e.length;r<i;r++,n++)e[n]=t[r];return e};System.register(["./p-44cbb351.system.js","./p-61f225ef.system.js","./p-663d1bb9.system.js"],(function(e){"use strict";var t,r,i,n,a,s,o,l,u,f;return{setters:[function(e){t=e.r;r=e.h;i=e.H;n=e.g;a=e.c},function(e){s=e.a;o=e.b;l=e.g;u=e.c},function(e){f=e.t}],execute:function(){var d=function(e){if(!e)return"";var t=Math.round(e%60);var r=Math.round((e-t)/60);return(r<10?"0"+r:r)+":"+(t<10?"0"+t:t)};var c=function(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))};var h=function(e){return Math.max(-1,Math.min(e,1))};var v="default";var g=function(){var e;var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];var r=["webkitEnterFullscreen","webkitExitFullscreen","webkitCurrentFullScreenElement","webkitSupportsFullscreen","fullscreenchange","fullscreenerror"];var i=0;var n=t.length;var a={};for(;i<n;i++){e=t[i];if(e&&e[1]in document){for(i=0;i<e.length;i++){a[t[0][i]]=e[i]}return a}}if(!a[t[0][0]]){v="iOS";for(i=0;i<r.length;i++){a[t[0][i]]=r[i]}}return a}();var p=function(e){return/\.(m3u8)($|\?)/i.test(e)};var m=undefined&&undefined.__awaiter||function(e,t,r,i){function n(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i["throw"](e))}catch(e){a(e)}}function l(e){e.done?r(e.value):n(e.value).then(s,o)}l((i=i.apply(e,t||[])).next())}))};var y=e("taro_video_control",function(){function e(e){var r=this;t(this,e);this.visible=false;this.isDraggingProgressBall=false;this.percentage=0;this.progressDimensions={left:0,width:0};this.calcPercentage=function(e){var t=e-r.progressDimensions.left;t=Math.max(t,0);t=Math.min(t,r.progressDimensions.width);return t/r.progressDimensions.width};this.onDragProgressBallStart=function(){r.isDraggingProgressBall=true;r.hideControlsTimer&&clearTimeout(r.hideControlsTimer)};this.onClickProgress=function(e){e.stopPropagation();var t=r.calcPercentage(e.pageX);r.seekFunc(t*r.duration);r.toggleVisibility(true)}}e.prototype.onDocumentTouchMove=function(e){if(!this.isDraggingProgressBall)return;var t=e.touches[0].pageX;this.percentage=this.calcPercentage(t);this.setProgressBall(this.percentage);this.setCurrentTime(this.percentage*this.duration)};e.prototype.onDocumentTouchEnd=function(){if(!this.isDraggingProgressBall)return;this.isDraggingProgressBall=false;this.seekFunc(this.percentage*this.duration);this.toggleVisibility(true)};e.prototype.setProgressBall=function(e){return m(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.progressBallRef){this.progressBallRef.style.left=e*100+"%"}return[2]}))}))};e.prototype.toggleVisibility=function(e){return m(this,void 0,void 0,(function(){var t;var r=this;return __generator(this,(function(i){t=e===undefined?!this.visible:e;if(t){this.hideControlsTimer&&clearTimeout(this.hideControlsTimer);if(this.isPlaying){this.hideControlsTimer=setTimeout((function(){r.toggleVisibility(false)}),2e3)}this.el.style.visibility="visible"}else{this.el.style.visibility="hidden"}this.visible=!!t;return[2]}))}))};e.prototype.getIsDraggingProgressBall=function(){return m(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.isDraggingProgressBall]}))}))};e.prototype.setCurrentTime=function(e){return m(this,void 0,void 0,(function(){return __generator(this,(function(t){this.currentTimeRef.innerHTML=d(e);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this,n=t.controls,a=t.currentTime,s=t.duration,o=t.isPlaying,l=t.pauseFunc,u=t.playFunc,f=t.showPlayBtn,c=t.showProgress;var h=d(s);var v;if(!f){v=null}else if(o){v=r("div",{class:"taro-video-control-button taro-video-control-button-pause",onClick:l})}else{v=r("div",{class:"taro-video-control-button taro-video-control-button-play",onClick:u})}return r(i,{class:"taro-video-bar taro-video-bar-full"},n&&r("div",{class:"taro-video-controls"},v,c&&r("div",{class:"taro-video-current-time",ref:function(t){return e.currentTimeRef=t}},d(a)),c&&r("div",{class:"taro-video-progress-container",onClick:this.onClickProgress},r("div",{class:"taro-video-progress",ref:function(t){if(!t)return;var r=t.getBoundingClientRect();e.progressDimensions.left=r.left;e.progressDimensions.width=r.width}},r("div",{class:"taro-video-progress-buffered",style:{width:"100%"}}),r("div",{class:"taro-video-ball",ref:function(t){return e.progressBallRef=t},onTouchStart:this.onDragProgressBallStart,style:{left:(h?this.currentTime/s*100:0)+"%"}},r("div",{class:"taro-video-inner"})))),c&&r("div",{class:"taro-video-duration"},h)),r("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());var E=s((function(e,t){typeof window!=="undefined"&&function t(r,i){e.exports=i()}(o,(function(){return function(e){var t={};function r(i){if(t[i]){return t[i].exports}var n=t[i]={i:i,l:false,exports:{}};e[i].call(n.exports,n,n.exports,r);n.l=true;return n.exports}r.m=e;r.c=t;r.d=function(e,t,i){if(!r.o(e,t)){Object.defineProperty(e,t,{enumerable:true,get:i})}};r.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})};r.t=function(e,t){if(t&1)e=r(e);if(t&8)return e;if(t&4&&typeof e==="object"&&e&&e.__esModule)return e;var i=Object.create(null);r.r(i);Object.defineProperty(i,"default",{enumerable:true,value:e});if(t&2&&typeof e!="string")for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i};r.n=function(e){var t=e&&e.__esModule?function t(){return e["default"]}:function t(){return e};r.d(t,"a",t);return t};r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};r.p="/dist/";return r(r.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":
|
|
2
2
|
/*!*********************************************!*\
|
|
3
3
|
!*** ./node_modules/eventemitter3/index.js ***!
|
|
4
4
|
\*********************************************/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as e,g as r}from"./p-
|
|
1
|
+
import{r as t,c as i,h as s,H as e,g as r}from"./p-059912fd.js";import h from"@tarojs/taro";import{c as a}from"./p-76724e58.js";const o="undefined"!=typeof navigator&&/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),n={activate:"release",deactivate:"pull",release:"loading",finish:"finish"};let l=!1;try{const t=Object.defineProperty({},"passive",{get(){l=!0}});window.addEventListener("cancel",(()=>({})),t)}catch(t){}const c=!!l&&{passive:!1};let d=class{constructor(s){t(this,s),this.onRefresh=i(this,"refresh",7),this.prefixCls="rmc-pull-to-refresh",this.distanceToRefresh=50,this.damping=100,this.indicator=n,this.currSt="deactivate",this.dragOnEdge=!1,this._ScreenY=0,this._startScreenY=0,this._lastScreenY=0,this._isMounted=!1,this.triggerPullDownRefresh=t=>{!this.dragOnEdge&&this._isMounted&&(t?(this._lastScreenY=this.distanceToRefresh+1,this.currSt="release",this.setContentStyle(this._lastScreenY)):(this.currSt="finish",this.reset()))},this.init=()=>{const t=this.scrollContainer,i=this.el.querySelector("rmc-pull-to-refresh-content");this.el.appendChild=null==i?void 0:i.appendChild.bind(i),this.el.insertBefore=null==i?void 0:i.insertBefore.bind(i),this.el.replaceChild=null==i?void 0:i.replaceChild.bind(i),this.el.removeChild=null==i?void 0:i.removeChild.bind(i),this._to={touchstart:this.onTouchStart.bind(this,t),touchmove:this.onTouchMove.bind(this,t),touchend:this.onTouchEnd.bind(this,t),touchcancel:this.onTouchEnd.bind(this,t)},Object.keys(this._to).forEach((i=>{t.addEventListener(i,this._to[i],c)}))},this.destroy=()=>{const t=this.scrollContainer;Object.keys(this._to).forEach((i=>{t.removeEventListener(i,this._to[i])}))},this.onTouchStart=(t,i)=>{this._ScreenY=this._startScreenY=i.touches[0].screenY,this._lastScreenY=this._lastScreenY||0},this.isEdge=t=>{const i=this.scrollContainer;return i&&i===document.body?(document.scrollingElement?document.scrollingElement:document.body).scrollTop<=0:t.scrollTop<=0},this.damp=t=>Math.abs(this._lastScreenY)>this.damping?0:t*(.6*(1-Math.abs(this._ScreenY-this._startScreenY)/window.screen.height)),this.onTouchMove=(t,i)=>{const s=i.touches[0].screenY;if(!(this._startScreenY>s)&&this.isEdge(t)){this.dragOnEdge||(this._ScreenY=this._startScreenY=i.touches[0].screenY,this.dragOnEdge=!0),i.cancelable&&i.preventDefault();const t=Math.round(s-this._ScreenY);this._ScreenY=s,this._lastScreenY+=this.damp(t),this.setContentStyle(this._lastScreenY),Math.abs(this._lastScreenY)<this.distanceToRefresh?"deactivate"!==this.currSt&&(this.currSt="deactivate"):"deactivate"===this.currSt&&(this.currSt="activate"),o&&i.changedTouches[0].clientY<0&&this.onTouchEnd()}},this.onTouchEnd=()=>{this.dragOnEdge&&(this.dragOnEdge=!1),"activate"===this.currSt?(this.currSt="release",this.onRefresh.emit(this),this._lastScreenY=this.distanceToRefresh+1,this.setContentStyle(this._lastScreenY)):"release"===this.currSt?(this._lastScreenY=this.distanceToRefresh+1,this.setContentStyle(this._lastScreenY)):this.reset()},this.reset=()=>{this._lastScreenY=0,this.setContentStyle(0)},this.setContentStyle=t=>{var i,s;this.contentRef&&((i=this.contentRef.style).transform=s=t?`translate3d(0px,${t}px,0)`:"",i.webkitTransform=s,i.MozTransform=s)}}get scrollContainer(){return this.el.parentElement||this.el.closest(".taro_page_stationed")||document.querySelector(".taro_page_stationed")||document.querySelector(".taro_page")||document.querySelector(".taro_router")||document.querySelector(".taro-tabbar__panel")||document.body}statusChange(){var t,i,s,e;const r=this.scrollContainer;switch(this.currSt){case"release":null===(i=null===(t=null==r?void 0:r.__page)||void 0===t?void 0:t.onPullDownRefresh)||void 0===i||i.call(t);break;case"deactivate":null===(e=null===(s=null==r?void 0:r.__page)||void 0===s?void 0:s.onPullIntercept)||void 0===e||e.call(s)}}disconnectedCallback(){this.destroy()}componentDidLoad(){this.init(),this._isMounted=!0,h.eventCenter.on("__taroStartPullDownRefresh",(({successHandler:t,errorHandler:i})=>{try{this.triggerPullDownRefresh(!0),t({errMsg:"startPullDownRefresh: ok"})}catch(t){i({errMsg:"startPullDownRefresh: fail"})}})),h.eventCenter.on("__taroStopPullDownRefresh",(({successHandler:t,errorHandler:i})=>{try{this.triggerPullDownRefresh(!1),t({errMsg:"stopPullDownRefresh: ok"})}catch(t){i({errMsg:"stopPullDownRefresh: fail"})}}))}render(){const t=t=>{const{currSt:i,dragOnEdge:e,prefixCls:r}=this,h=a(t,!e&&`${r}-transition`);return s("div",{class:`${r}-content-wrapper`},s("div",{class:h,ref:t=>{this.contentRef=t}},("activate"===i||"release"===i)&&s("div",{class:`${r}-indicator`},s("div",null),s("div",null),s("div",null)),s("slot",null)))};return this.scrollContainer?t(`${this.prefixCls}-content ${this.prefixCls}-down`):s(e,{class:a(this.prefixCls,`${this.prefixCls}-down`)},t(`${this.prefixCls}-content`))}get el(){return r(this)}static get watchers(){return{currSt:["statusChange"]}}};d.style=".rmc-pull-to-refresh-content{-webkit-transform-origin:left top 0;transform-origin:left top 0}.rmc-pull-to-refresh-content-wrapper{overflow:hidden;min-height:100vh}.rmc-pull-to-refresh-transition{-webkit-transition:-webkit-transform 0.3s;transition:-webkit-transform 0.3s;transition:transform 0.3s;transition:transform 0.3s, -webkit-transform 0.3s}@-webkit-keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:0.2}100%{opacity:1}}.rmc-pull-to-refresh-indicator{height:30px;line-height:10px;text-align:center}.rmc-pull-to-refresh-indicator>div{display:inline-block;margin:3px;border-radius:100%;width:6px;height:6px;background-color:grey;-webkit-animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;animation:rmc-pull-to-refresh-indicator 0.5s 0s infinite linear;-webkit-animation-fill-mode:both;animation-fill-mode:both}.rmc-pull-to-refresh-indicator>div:nth-child(0){-webkit-animation-delay:-0.1s !important;animation-delay:-0.1s !important}.rmc-pull-to-refresh-indicator>div:nth-child(1){-webkit-animation-delay:-0.2s !important;animation-delay:-0.2s !important}.rmc-pull-to-refresh-indicator>div:nth-child(2){-webkit-animation-delay:-0.3s !important;animation-delay:-0.3s !important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";export{d as taro_pull_to_refresh}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-44cbb351.system.js"],(function(r){"use strict";var t,i,e;return{setters:[function(r){t=r.r;i=r.c;e=r.h}],execute:function(){var o="taro-cover-image-core{overflow:hidden;width:320px;height:240px}";var n=r("taro_cover_image_core",function(){function r(r){t(this,r);this.onLoad=i(this,"load",7);this.onError=i(this,"error",7);this.nativeProps={}}r.prototype.imageOnLoad=function(){var r=this.imgRef,t=r.width,i=r.height;this.onLoad.emit({width:t,height:i})};r.prototype.imageOnError=function(){this.onError.emit()};r.prototype.render=function(){var r=this;var t=this,i=t.src,o=t.imageOnLoad,n=t.imageOnError,s=t.nativeProps;return e("img",Object.assign({ref:function(t){return r.imgRef=t},src:i,onLoad:o.bind(this),onError:n.bind(this)},s))};return r}());n.style=o}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as o,H as i,g as l}from"./p-
|
|
1
|
+
import{r as t,c as s,h as o,H as i,g as l}from"./p-059912fd.js";import{c as r}from"./p-76724e58.js";import{d as c}from"./p-5746d7ce.js";function h(t,s,o){if(t===s||"number"!=typeof t)return;const i=s-t,l=Date.now(),r=s>=t;!function c(){var h;h=Date.now()-l,t=i*h/500+t,r&&t>=s||!r&&s>=t?o(s):(o(t),requestAnimationFrame(c))}()}let e=class{constructor(o){t(this,o),this.onScroll=s(this,"scroll",3),this.onScrollToUpper=s(this,"scrolltoupper",3),this.onScrollToLower=s(this,"scrolltolower",3),this.scrollX=!1,this.scrollY=!1,this.upperThreshold=50,this.lowerThreshold=50,this.scrollWithAnimation=!1,this.handleScroll=t=>{if(t instanceof CustomEvent)return;const{scrollLeft:s,scrollTop:o,scrollHeight:i,scrollWidth:l}=this.el;this._scrollLeft=s,this._scrollTop=o,this.upperAndLower(),this.onScroll.emit({scrollLeft:s,scrollTop:o,scrollHeight:i,scrollWidth:l})},this.upperAndLower=c((()=>{const{offsetWidth:t,offsetHeight:s,scrollLeft:o,scrollTop:i,scrollHeight:l,scrollWidth:r}=this.el,c=Number(this.lowerThreshold),h=Number(this.upperThreshold);!isNaN(c)&&(this.scrollY&&s+i+c>=l||this.scrollX&&t+o+c>=r)&&this.onScrollToLower.emit({direction:this.scrollX?"right":this.scrollY?"bottom":""}),!isNaN(h)&&(this.scrollY&&i<=h||this.scrollX&&o<=h)&&this.onScrollToUpper.emit({direction:this.scrollX?"left":this.scrollY?"top":""})}),200)}watchScrollLeft(t){const s=Number(t);this.scrollX&&!isNaN(s)&&s!==this._scrollLeft&&(this.scrollWithAnimation?h(this._scrollLeft,s,(t=>this.el.scrollLeft=t)):this.el.scrollLeft=s,this._scrollLeft=s)}watchScrollTop(t){const s=Number(t);this.scrollY&&!isNaN(s)&&s!==this._scrollTop&&(this.scrollWithAnimation?h(this._scrollTop,s,(t=>this.el.scrollTop=t)):this.el.scrollTop=s,this._scrollTop=s)}watchScrollIntoView(t){var s;"string"==typeof t&&t&&(null===(s=document.querySelector(`#${t}`))||void 0===s||s.scrollIntoView({behavior:"smooth",block:"center",inline:"start"}))}componentDidLoad(){const{scrollY:t,scrollX:s,scrollWithAnimation:o}=this,i=Number(this.mpScrollTop),l=Number(this.mpScrollLeft);t&&!isNaN(i)&&(o?h(0,i,(t=>this.el.scrollTop=t)):this.el.scrollTop=i,this._scrollTop=i),s&&!isNaN(l)&&(o?h(0,l,(t=>this.el.scrollLeft=t)):this.el.scrollLeft=l,this._scrollLeft=l)}render(){const{scrollX:t,scrollY:s}=this,l=r({"taro-scroll-view__scroll-x":t,"taro-scroll-view__scroll-y":s});return o(i,{class:l,onScroll:this.handleScroll},o("slot",null))}get el(){return l(this)}static get watchers(){return{mpScrollLeft:["watchScrollLeft"],mpScrollTop:["watchScrollTop"],mpScrollIntoView:["watchScrollIntoView"]}}};e.style="taro-scroll-view-core{display:block;width:100%;-webkit-overflow-scrolling:auto}taro-scroll-view-core::-webkit-scrollbar{display:none}.taro-scroll-view__scroll-x{overflow-x:scroll;overflow-y:hidden}.taro-scroll-view__scroll-y{overflow-x:hidden;overflow-y:scroll}";export{e as taro_scroll_view_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,g as s,H as o}from"./p-059912fd.js";let h=class{constructor(i){t(this,i),this.views=[],this.scaleLength=0,this.viewsChanged=()=>{this.views=[];const t=this.element.querySelectorAll("taro-movable-view-core");Array.from(t).forEach((t=>{this.views.push(t)})),this.updateArea()},this.handleTouchStart=t=>{const i=t.touches;if(!i||i.length<=1)return;const s=i[1].pageX-i[0].pageX,o=i[1].pageY-i[0].pageY;if(this.scaleLength=Math.sqrt(s*s+o*o),this.scaleArea)return;const h=(t,i)=>{const s=(t,i)=>!!(t=t.parentNode)&&(!(t instanceof HTMLElement)||t!==document.body)&&(t===i||t===i.element||t.element===i||s(t,i));for(let o=0;o<i.length;o++){const h=i[o];if(t===h.element||s(t,h))return h}},e=h(i[0].target,this.views),r=h(i[1].target,this.views);this.scaleTarget=e&&e===r?e:void 0},this.handleTouchMove=t=>{const i=t.touches;if(!i||i.length<=1)return;t.preventDefault();const s=i[1].pageX-i[0].pageX,o=i[1].pageY-i[0].pageY;this.scaleLength>0&&this.updateScale(Math.sqrt(s*s+o*o)/this.scaleLength)},this.handleTouchEnd=t=>{var i,s;t.touches&&t.touches.length||!t.changedTouches||(this.scaleLength=0,this.scaleArea?this.views.forEach((t=>{var i;null===(i=t.endScale)||void 0===i||i.call(t)})):null===(s=null===(i=this.scaleTarget)||void 0===i?void 0:i.endScale)||void 0===s||s.call(i),this.scaleTarget=void 0)},this.updateScale=t=>{var i,s;t&&1!==t&&(this.scaleArea?this.views.forEach((i=>{var s;null===(s=i.setScale)||void 0===s||s.call(i,t)})):null===(s=null===(i=this.scaleTarget)||void 0===i?void 0:i.setScale)||void 0===s||s.call(i,t))},this.updateArea=()=>{const t=window.getComputedStyle(this.element),i=this.element.getBoundingClientRect(),s=["Left","Right"].map((i=>parseFloat(t["border"+i+"Width"])+parseFloat(t["padding"+i]))),o=["Top","Bottom"].map((i=>parseFloat(t["border"+i+"Width"])+parseFloat(t["padding"+i])));this.views.forEach((t=>{var h;null===(h=t.setParent)||void 0===h||h.call(t,{element:this.element,area:{height:i.height-o[0]-o[1],width:i.width-s[0]-s[1]}})}))}}connectedCallback(){this.observer=new MutationObserver((t=>{t.forEach((t=>{var i,s;if("class"===t.attributeName||"style"===t.attributeName){const t=this.element.offsetWidth,o=this.element.offsetHeight;t===(null===(i=this.offset)||void 0===i?void 0:i.width)&&o===(null===(s=this.offset)||void 0===s?void 0:s.height)||this.updateArea(),this.offset={width:t,height:o}}}))})),this.observer.observe(this.element,{attributes:!0})}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}componentDidLoad(){this.viewsChanged()}render(){return i(o,{onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd})}get element(){return s(this)}};h.style="taro-movable-area-core{display:block;height:10px;width:10px;position:relative}";export{h as taro_movable_area_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as e,g as h}from"./p-a4721ae0.js";import{c as n}from"./p-76724e58.js";function o(t,i){const s=[];for(let e=t;e<=i;e++)s.push(`${e<10?"0":""}${e}`);return s}const r=["20","21","22","23",...o(0,23),"00","01","02","03"],a=["56","57","58","59",...o(0,59),"00","01","02","03"];function c(t,i){return!isNaN(+t)&&t>=0&&t<i.length}function u(t){if(!/^\d{1,2}:\d{1,2}$/.test(t))return!1;const i=t.split(":").map((t=>+t));return!(i[0]<0||i[0]>23||i[1]<0||i[1]>59)}function l(t,i){const s=t.split(":").map((t=>+t)),e=i.split(":").map((t=>+t));return s[0]<e[0]||s[0]===e[0]&&s[1]<=e[1]}function d(t){if(!t)return!1;const i=new Date(t.replace(/-/g,"/"));return!isNaN(i.getMonth())&&i}function p(t){let i;return i=Array.isArray(t)?t.map((t=>String(t))):t,i}function m(t,i){const s=[];for(let e=t;e<=i;e++)s.push(e);return s}function g(t,i){return m(t,i)}function f(t,i,s){let e=1,h=12;return t.getFullYear()===s&&(e=t.getMonth()+1),i.getFullYear()===s&&(h=i.getMonth()+1),m(e,h)}function _(t,i,s,e){let h=1,n=function(t,i){return 4===i||6===i||9===i||11===i?30:2===i?t%4==0&&t%100!=0||t%400==0?29:28:31}(s,e);return t.getFullYear()===s&&t.getMonth()+1===e&&(h=t.getDate()),i.getFullYear()===s&&i.getMonth()+1===e&&(n=i.getDate()),m(h,n)}let k=class{constructor(e){t(this,e),this.onChange=i(this,"change",7),this.onColumnChange=i(this,"columnchange",7),this.onCancel=i(this,"cancel",7),this.index=[],this.mode="selector",this.disabled=!1,this.range=[],this.start="",this.end="",this.fields="day",this.name="",this.pickerValue=[],this.height=[],this.hidden=!0,this.fadeOut=!1,this.isWillLoadCalled=!1,this.showPicker=()=>{this.disabled||(this.height=this.getHeightByIndex(),this.hidden=!1)},this.getHeightByIndex=()=>this.index.map((t=>{let i=0;return"time"===this.mode&&(i=136),102-34*t-i})),this.hidePicker=()=>{this.fadeOut=!0,setTimeout((()=>{this.hidden=!0,this.fadeOut=!1}),350)},this.handleChange=()=>{this.hidePicker(),this.index=this.height.map((t=>(102-t)/34));let t=this.index.length&&"selector"!==this.mode?this.index:this.index[0];if("time"===this.mode){const i=[r.slice(),a.slice()],s=this.index.map(((t,s)=>i[s][t]));this.index=s.map((t=>parseInt(t))),t=s.join(":")}if("date"===this.mode){const{_start:i,_end:s,_updateValue:e}=this.pickerDate,h=e[0],n=e[1],o=g(i.getFullYear(),s.getFullYear()),r=f(i,s,h),a=_(i,s,h,n),c=o[this.index[0]],u=r[this.index[1]],l=a[this.index[2]];t="year"===this.fields?[c]:"month"===this.fields?[c,u]:[c,u,l],t=t.map((t=>t<10?`0${t}`:t)).join("-")}this.pickerValue=t,this.onChange.emit({value:t})},this.handleCancel=()=>{this.hidePicker(),this.onCancel.emit()},this.updateHeight=(t,i,s=!1)=>{const e=[...this.height];if(e[i]=t,this.height=e,s){let{start:t,end:i}=this;if(u(t)||(t="00:00"),u(i)||(i="23:59"),!l(t,i))return;const s=[r.slice(),a.slice()],e=this.height.map((t=>(102-t)/34)).map(((t,i)=>s[i][t])).join(":");if(l(t,e)){if(!l(e,i)){const t=i.split(":").map((t=>102-34*(+t+4)));requestAnimationFrame((()=>this.height=t))}}else{const i=t.split(":").map((t=>102-34*(+t+4)));requestAnimationFrame((()=>this.height=i))}}},this.handleColumnChange=(t,i)=>{this.onColumnChange.emit({column:Number(i),value:(102-t)/34})},this.updateDay=(t,i)=>{const{_start:s,_end:e,_updateValue:h}=this.pickerDate;h[i]=t;const n=h[0],o=h[1],r=h[2];if(0===i){const t=f(s,e,n),i=t[t.length-1],r=t[0];o>i&&(h[1]=i),o<r&&(h[1]=r);const a=102-34*t.indexOf(h[1]);this.updateDay(h[1],1),this.updateHeight(a,"1")}else if(1===i){const t=_(s,e,n,o),i=t[t.length-1],a=t[0];r>i&&(h[2]=i),r<a&&(h[2]=a);const c=102-34*t.indexOf(h[2]);this.updateDay(h[2],2),this.updateHeight(c,"2")}},this.getSelector=()=>s("taro-picker-group",{range:this.range,rangeKey:this.rangeKey,height:this.height[0],updateHeight:this.updateHeight,columnId:"0"}),this.getMultiSelector=()=>this.range.map(((t,i)=>s("taro-picker-group",{range:t,rangeKey:this.rangeKey,height:this.height[i],updateHeight:this.updateHeight,onColumnChange:this.handleColumnChange,columnId:String(i)}))),this.getTimeSelector=()=>{const t=r.slice(),i=a.slice();return[s("taro-picker-group",{mode:"time",range:t,height:this.height[0],updateHeight:this.updateHeight,columnId:"0"}),s("taro-picker-group",{mode:"time",range:i,height:this.height[1],updateHeight:this.updateHeight,columnId:"1"})]},this.getDateSelector=()=>{const{fields:t,height:i}=this,{_start:e,_end:h,_updateValue:n}=this.pickerDate,o=n[0],r=n[1],a=g(e.getFullYear(),h.getFullYear()).map((t=>`${t}年`)),c=f(e,h,o).map((t=>`${t<10?`0${t}`:t}月`)),u=_(e,h,o,r).map((t=>`${t<10?`0${t}`:t}日`)),l=[s("taro-picker-group",{mode:"date",range:a,height:i[0],updateDay:this.updateDay,updateHeight:this.updateHeight,columnId:"0"})];return"month"!==t&&"day"!==t||l.push(s("taro-picker-group",{mode:"date",range:c,height:i[1],updateDay:this.updateDay,updateHeight:this.updateHeight,columnId:"1"})),"day"===t&&l.push(s("taro-picker-group",{mode:"date",range:u,height:i[2],updateDay:this.updateDay,updateHeight:this.updateHeight,columnId:"2"})),l}}componentWillLoad(){this.isWillLoadCalled=!0,this.handleProps()}componentDidLoad(){Object.defineProperty(this.el,"value",{get:()=>this.pickerValue,set:t=>this.value=t,configurable:!0}),this.overlay&&document.body.appendChild(this.overlay)}disconnectedCallback(){var t;this.overlay&&(null===(t=this.overlay.parentNode)||void 0===t||t.removeChild(this.overlay))}onPropsChange(){this.isWillLoadCalled&&this.handleProps()}handleProps(){const{mode:t,start:i,end:s}=this;if("selector"===t){const t=this.value;this.index=[c(t,this.range)?Math.floor(t):0]}else if("multiSelector"===t){const t=this.value;this.index=[],this.range.forEach(((i,s)=>{const e=null==t?void 0:t[s],h=c(e,i)?Math.floor(e):0;this.index.push(h)}))}else if("time"===t){let t=this.value;u(t)||(console.warn("time picker value illegal"),t="0:0");const i=t.split(":").map((t=>+t));this.index=i}else if("date"===t){const t=d(this.value)||new Date((new Date).setHours(0,0,0,0)),e=d(i)||new Date("1970/01/01"),h=d(s)||new Date("2999/01/01");if(!(t>=e&&t<=h))throw new Error("Date Interval Error");{const i=t.getFullYear(),s=t.getMonth()+1,n=t.getDate(),o=g(e.getFullYear(),h.getFullYear()),r=f(e,h,i),a=_(e,h,i,s);this.index=[o.indexOf(i),r.indexOf(s),a.indexOf(n)],this.pickerDate&&this.pickerDate._value.getTime()===t.getTime()&&this.pickerDate._start.getTime()===e.getTime()&&this.pickerDate._end.getTime()===h.getTime()||(this.pickerDate={_value:t,_start:e,_end:h,_updateValue:[i,s,n]})}}if(this.height=this.getHeightByIndex(),this.pickerValue=this.value,"date"===t){const t=this.pickerValue;"month"===this.fields?this.pickerValue=t.split("-").slice(0,2).join("-"):"year"===this.fields&&(this.pickerValue=t.split("-")[0])}}render(){const{name:t,mode:i,fadeOut:h,hidden:o}=this;let r;switch(i){case"multiSelector":r=this.getMultiSelector();break;case"time":r=this.getTimeSelector();break;case"date":r=this.getDateSelector();break;default:r=this.getSelector()}const a=n("weui-mask","weui-animate-fade-in",{"weui-animate-fade-out":h}),c=n("weui-picker","weui-animate-slide-up",{"weui-animate-slide-down":h}),u=o?{display:"none"}:{};return s(e,null,s("div",{onClick:this.showPicker},s("slot",null),s("input",{type:"hidden",name:t,value:p(this.pickerValue)})),s("div",{class:"weui-picker__overlay",style:u,ref:t=>{this.overlay=t}},s("div",{class:a,onClick:this.handleCancel}),s("div",{class:c},s("div",{class:"weui-picker__hd"},s("div",{class:"weui-picker__action",onClick:this.handleCancel},"取消"),s("div",{class:"weui-picker__action",onClick:this.handleChange},"确定")),s("div",{class:"weui-picker__bd"},r),s("input",{type:"hidden",name:t,value:p(this.pickerValue)}))))}get el(){return h(this)}static get watchers(){return{mode:["onPropsChange"],value:["onPropsChange"],range:["onPropsChange"],start:["onPropsChange"],end:["onPropsChange"]}}};k.style=".weui-picker,.weui-picker__hd{font-size:12px}";let w=class{constructor(i){t(this,i),this.range=[]}getPosition(){const t=`translate3d(0, ${this.height}px, 0)`,i=`transform ${this.touchEnd?.3:0}s`;return{transform:t,"-webkit-transform":t,transition:i,"-webkit-transition":i}}formulaUnlimitedScroll(t,i,s){const{height:e,updateHeight:h,columnId:n}=this,o="up"===s?1:-1;this.touchEnd=!1,h(-t*o*34+e,n),requestAnimationFrame((()=>{this.touchEnd=!0;const s=Math.round(i/-34)+t*o;h(102-34*s,n,!0)}))}handleMoveStart(t){this.startY=t,this.preY=t,this.hadMove=!1}handleMoving(t){const i=t,s=i-this.preY;this.preY=i,this.touchEnd=!1,Math.abs(i-this.startY)>10&&(this.hadMove=!0);let e=this.height+s;"time"===this.mode&&("0"===this.columnId?(e>0&&(e=-816+s),e<-850&&(e=-34+s)):"1"===this.columnId&&(e>0&&(e=-2040+s),e<-2074&&(e=-34+s))),this.updateHeight(e,this.columnId)}handleMoveEnd(t){const{mode:i,range:s,height:e,updateHeight:h,onColumnChange:n,columnId:o}=this,r=-34*(s.length-1),a=t;let c;if(this.touchEnd=!0,this.hadMove)c=e-102;else if(c=e-102-(a-(window.innerHeight-119)),"time"===i)if("0"===o){if(c>-85)return this.formulaUnlimitedScroll(24,c,"up");if(c<-969)return this.formulaUnlimitedScroll(24,c,"down")}else if("1"===o){if(c>-85)return this.formulaUnlimitedScroll(60,c,"up");if(c<-2193)return this.formulaUnlimitedScroll(60,c,"down")}c>0&&(c=0),c<r&&(c=r);const u=Math.round(c/-34),l=102-34*u;"date"===this.mode&&("0"===this.columnId&&this.updateDay(+this.range[u].replace(/[^0-9]/gi,""),0),"1"===this.columnId&&this.updateDay(+this.range[u].replace(/[^0-9]/gi,""),1),"2"===this.columnId&&this.updateDay(+this.range[u].replace(/[^0-9]/gi,""),2)),h(l,o,"time"===i),n&&n(l,o)}onMouseDown(t){this.isMove=!0,this.handleMoveStart(t.clientY)}onMouseMove(t){t.preventDefault(),this.isMove&&this.handleMoving(t.clientY)}onMouseMoveEnd(t){this.isMove&&(this.isMove=!1,this.handleMoveEnd(t.clientY))}onTouchStart(t){this.handleMoveStart(t.changedTouches[0].clientY)}onTouchMove(t){t.preventDefault(),this.handleMoving(t.changedTouches[0].clientY)}onTouchEnd(t){this.handleMoveEnd(t.changedTouches[0].clientY)}render(){const{range:t,rangeKey:i}=this,h=t.map((t=>s("div",{class:"weui-picker__item"},i?t[i]:t)));return s(e,{class:"weui-picker__group"},s("div",{class:"weui-picker__mask"}),s("div",{class:"weui-picker__indicator"}),s("div",{class:"weui-picker__content",style:this.getPosition()},h))}};export{k as taro_picker_core,w as taro_picker_group}
|
|
1
|
+
import{r as t,c as i,h as s,H as e,g as h}from"./p-059912fd.js";import{c as n}from"./p-76724e58.js";function o(t,i){const s=[];for(let e=t;e<=i;e++)s.push(`${e<10?"0":""}${e}`);return s}const r=["20","21","22","23",...o(0,23),"00","01","02","03"],a=["56","57","58","59",...o(0,59),"00","01","02","03"];function c(t,i){return!isNaN(+t)&&t>=0&&t<i.length}function u(t){if(!/^\d{1,2}:\d{1,2}$/.test(t))return!1;const i=t.split(":").map((t=>+t));return!(i[0]<0||i[0]>23||i[1]<0||i[1]>59)}function l(t,i){const s=t.split(":").map((t=>+t)),e=i.split(":").map((t=>+t));return s[0]<e[0]||s[0]===e[0]&&s[1]<=e[1]}function d(t){if(!t)return!1;const i=new Date(t.replace(/-/g,"/"));return!isNaN(i.getMonth())&&i}function p(t){let i;return i=Array.isArray(t)?t.map((t=>String(t))):t,i}function m(t,i){const s=[];for(let e=t;e<=i;e++)s.push(e);return s}function g(t,i){return m(t,i)}function f(t,i,s){let e=1,h=12;return t.getFullYear()===s&&(e=t.getMonth()+1),i.getFullYear()===s&&(h=i.getMonth()+1),m(e,h)}function _(t,i,s,e){let h=1,n=function(t,i){return 4===i||6===i||9===i||11===i?30:2===i?t%4==0&&t%100!=0||t%400==0?29:28:31}(s,e);return t.getFullYear()===s&&t.getMonth()+1===e&&(h=t.getDate()),i.getFullYear()===s&&i.getMonth()+1===e&&(n=i.getDate()),m(h,n)}let k=class{constructor(e){t(this,e),this.onChange=i(this,"change",7),this.onColumnChange=i(this,"columnchange",7),this.onCancel=i(this,"cancel",7),this.index=[],this.mode="selector",this.disabled=!1,this.range=[],this.start="",this.end="",this.fields="day",this.name="",this.pickerValue=[],this.height=[],this.hidden=!0,this.fadeOut=!1,this.isWillLoadCalled=!1,this.showPicker=()=>{this.disabled||(this.height=this.getHeightByIndex(),this.hidden=!1)},this.getHeightByIndex=()=>this.index.map((t=>{let i=0;return"time"===this.mode&&(i=136),102-34*t-i})),this.hidePicker=()=>{this.fadeOut=!0,setTimeout((()=>{this.hidden=!0,this.fadeOut=!1}),350)},this.handleChange=()=>{this.hidePicker(),this.index=this.height.map((t=>(102-t)/34));let t=this.index.length&&"selector"!==this.mode?this.index:this.index[0];if("time"===this.mode){const i=[r.slice(),a.slice()],s=this.index.map(((t,s)=>i[s][t]));this.index=s.map((t=>parseInt(t))),t=s.join(":")}if("date"===this.mode){const{_start:i,_end:s,_updateValue:e}=this.pickerDate,h=e[0],n=e[1],o=g(i.getFullYear(),s.getFullYear()),r=f(i,s,h),a=_(i,s,h,n),c=o[this.index[0]],u=r[this.index[1]],l=a[this.index[2]];t="year"===this.fields?[c]:"month"===this.fields?[c,u]:[c,u,l],t=t.map((t=>t<10?`0${t}`:t)).join("-")}this.pickerValue=t,this.onChange.emit({value:t})},this.handleCancel=()=>{this.hidePicker(),this.onCancel.emit()},this.updateHeight=(t,i,s=!1)=>{const e=[...this.height];if(e[i]=t,this.height=e,s){let{start:t,end:i}=this;if(u(t)||(t="00:00"),u(i)||(i="23:59"),!l(t,i))return;const s=[r.slice(),a.slice()],e=this.height.map((t=>(102-t)/34)).map(((t,i)=>s[i][t])).join(":");if(l(t,e)){if(!l(e,i)){const t=i.split(":").map((t=>102-34*(+t+4)));requestAnimationFrame((()=>this.height=t))}}else{const i=t.split(":").map((t=>102-34*(+t+4)));requestAnimationFrame((()=>this.height=i))}}},this.handleColumnChange=(t,i)=>{this.onColumnChange.emit({column:Number(i),value:(102-t)/34})},this.updateDay=(t,i)=>{const{_start:s,_end:e,_updateValue:h}=this.pickerDate;h[i]=t;const n=h[0],o=h[1],r=h[2];if(0===i){const t=f(s,e,n),i=t[t.length-1],r=t[0];o>i&&(h[1]=i),o<r&&(h[1]=r);const a=102-34*t.indexOf(h[1]);this.updateDay(h[1],1),this.updateHeight(a,"1")}else if(1===i){const t=_(s,e,n,o),i=t[t.length-1],a=t[0];r>i&&(h[2]=i),r<a&&(h[2]=a);const c=102-34*t.indexOf(h[2]);this.updateDay(h[2],2),this.updateHeight(c,"2")}},this.getSelector=()=>s("taro-picker-group",{range:this.range,rangeKey:this.rangeKey,height:this.height[0],updateHeight:this.updateHeight,columnId:"0"}),this.getMultiSelector=()=>this.range.map(((t,i)=>s("taro-picker-group",{range:t,rangeKey:this.rangeKey,height:this.height[i],updateHeight:this.updateHeight,onColumnChange:this.handleColumnChange,columnId:String(i)}))),this.getTimeSelector=()=>{const t=r.slice(),i=a.slice();return[s("taro-picker-group",{mode:"time",range:t,height:this.height[0],updateHeight:this.updateHeight,columnId:"0"}),s("taro-picker-group",{mode:"time",range:i,height:this.height[1],updateHeight:this.updateHeight,columnId:"1"})]},this.getDateSelector=()=>{const{fields:t,height:i}=this,{_start:e,_end:h,_updateValue:n}=this.pickerDate,o=n[0],r=n[1],a=g(e.getFullYear(),h.getFullYear()).map((t=>`${t}年`)),c=f(e,h,o).map((t=>`${t<10?`0${t}`:t}月`)),u=_(e,h,o,r).map((t=>`${t<10?`0${t}`:t}日`)),l=[s("taro-picker-group",{mode:"date",range:a,height:i[0],updateDay:this.updateDay,updateHeight:this.updateHeight,columnId:"0"})];return"month"!==t&&"day"!==t||l.push(s("taro-picker-group",{mode:"date",range:c,height:i[1],updateDay:this.updateDay,updateHeight:this.updateHeight,columnId:"1"})),"day"===t&&l.push(s("taro-picker-group",{mode:"date",range:u,height:i[2],updateDay:this.updateDay,updateHeight:this.updateHeight,columnId:"2"})),l}}componentWillLoad(){this.isWillLoadCalled=!0,this.handleProps()}componentDidLoad(){Object.defineProperty(this.el,"value",{get:()=>this.pickerValue,set:t=>this.value=t,configurable:!0}),this.overlay&&document.body.appendChild(this.overlay)}disconnectedCallback(){var t;this.overlay&&(null===(t=this.overlay.parentNode)||void 0===t||t.removeChild(this.overlay))}onPropsChange(){this.isWillLoadCalled&&this.handleProps()}handleProps(){const{mode:t,start:i,end:s}=this;if("selector"===t){const t=this.value;this.index=[c(t,this.range)?Math.floor(t):0]}else if("multiSelector"===t){const t=this.value;this.index=[],this.range.forEach(((i,s)=>{const e=null==t?void 0:t[s],h=c(e,i)?Math.floor(e):0;this.index.push(h)}))}else if("time"===t){let t=this.value;u(t)||(console.warn("time picker value illegal"),t="0:0");const i=t.split(":").map((t=>+t));this.index=i}else if("date"===t){const t=d(this.value)||new Date((new Date).setHours(0,0,0,0)),e=d(i)||new Date("1970/01/01"),h=d(s)||new Date("2999/01/01");if(!(t>=e&&t<=h))throw new Error("Date Interval Error");{const i=t.getFullYear(),s=t.getMonth()+1,n=t.getDate(),o=g(e.getFullYear(),h.getFullYear()),r=f(e,h,i),a=_(e,h,i,s);this.index=[o.indexOf(i),r.indexOf(s),a.indexOf(n)],this.pickerDate&&this.pickerDate._value.getTime()===t.getTime()&&this.pickerDate._start.getTime()===e.getTime()&&this.pickerDate._end.getTime()===h.getTime()||(this.pickerDate={_value:t,_start:e,_end:h,_updateValue:[i,s,n]})}}if(this.height=this.getHeightByIndex(),this.pickerValue=this.value,"date"===t){const t=this.pickerValue;"month"===this.fields?this.pickerValue=t.split("-").slice(0,2).join("-"):"year"===this.fields&&(this.pickerValue=t.split("-")[0])}}render(){const{name:t,mode:i,fadeOut:h,hidden:o}=this;let r;switch(i){case"multiSelector":r=this.getMultiSelector();break;case"time":r=this.getTimeSelector();break;case"date":r=this.getDateSelector();break;default:r=this.getSelector()}const a=n("weui-mask","weui-animate-fade-in",{"weui-animate-fade-out":h}),c=n("weui-picker","weui-animate-slide-up",{"weui-animate-slide-down":h}),u=o?{display:"none"}:{};return s(e,null,s("div",{onClick:this.showPicker},s("slot",null),s("input",{type:"hidden",name:t,value:p(this.pickerValue)})),s("div",{class:"weui-picker__overlay",style:u,ref:t=>{this.overlay=t}},s("div",{class:a,onClick:this.handleCancel}),s("div",{class:c},s("div",{class:"weui-picker__hd"},s("div",{class:"weui-picker__action",onClick:this.handleCancel},"取消"),s("div",{class:"weui-picker__action",onClick:this.handleChange},"确定")),s("div",{class:"weui-picker__bd"},r),s("input",{type:"hidden",name:t,value:p(this.pickerValue)}))))}get el(){return h(this)}static get watchers(){return{mode:["onPropsChange"],value:["onPropsChange"],range:["onPropsChange"],start:["onPropsChange"],end:["onPropsChange"]}}};k.style=".weui-picker,.weui-picker__hd{font-size:12px}";let w=class{constructor(i){t(this,i),this.range=[]}getPosition(){const t=`translate3d(0, ${this.height}px, 0)`,i=`transform ${this.touchEnd?.3:0}s`;return{transform:t,"-webkit-transform":t,transition:i,"-webkit-transition":i}}formulaUnlimitedScroll(t,i,s){const{height:e,updateHeight:h,columnId:n}=this,o="up"===s?1:-1;this.touchEnd=!1,h(-t*o*34+e,n),requestAnimationFrame((()=>{this.touchEnd=!0;const s=Math.round(i/-34)+t*o;h(102-34*s,n,!0)}))}handleMoveStart(t){this.startY=t,this.preY=t,this.hadMove=!1}handleMoving(t){const i=t,s=i-this.preY;this.preY=i,this.touchEnd=!1,Math.abs(i-this.startY)>10&&(this.hadMove=!0);let e=this.height+s;"time"===this.mode&&("0"===this.columnId?(e>0&&(e=-816+s),e<-850&&(e=-34+s)):"1"===this.columnId&&(e>0&&(e=-2040+s),e<-2074&&(e=-34+s))),this.updateHeight(e,this.columnId)}handleMoveEnd(t){const{mode:i,range:s,height:e,updateHeight:h,onColumnChange:n,columnId:o}=this,r=-34*(s.length-1),a=t;let c;if(this.touchEnd=!0,this.hadMove)c=e-102;else if(c=e-102-(a-(window.innerHeight-119)),"time"===i)if("0"===o){if(c>-85)return this.formulaUnlimitedScroll(24,c,"up");if(c<-969)return this.formulaUnlimitedScroll(24,c,"down")}else if("1"===o){if(c>-85)return this.formulaUnlimitedScroll(60,c,"up");if(c<-2193)return this.formulaUnlimitedScroll(60,c,"down")}c>0&&(c=0),c<r&&(c=r);const u=Math.round(c/-34),l=102-34*u;"date"===this.mode&&("0"===this.columnId&&this.updateDay(+this.range[u].replace(/[^0-9]/gi,""),0),"1"===this.columnId&&this.updateDay(+this.range[u].replace(/[^0-9]/gi,""),1),"2"===this.columnId&&this.updateDay(+this.range[u].replace(/[^0-9]/gi,""),2)),h(l,o,"time"===i),n&&n(l,o)}onMouseDown(t){this.isMove=!0,this.handleMoveStart(t.clientY)}onMouseMove(t){t.preventDefault(),this.isMove&&this.handleMoving(t.clientY)}onMouseMoveEnd(t){this.isMove&&(this.isMove=!1,this.handleMoveEnd(t.clientY))}onTouchStart(t){this.handleMoveStart(t.changedTouches[0].clientY)}onTouchMove(t){t.preventDefault(),this.handleMoving(t.changedTouches[0].clientY)}onTouchEnd(t){this.handleMoveEnd(t.changedTouches[0].clientY)}render(){const{range:t,rangeKey:i}=this,h=t.map((t=>s("div",{class:"weui-picker__item"},i?t[i]:t)));return s(e,{class:"weui-picker__group"},s("div",{class:"weui-picker__mask"}),s("div",{class:"weui-picker__indicator"}),s("div",{class:"weui-picker__content",style:this.getPosition()},h))}};export{k as taro_picker_core,w as taro_picker_group}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-44cbb351.system.js","./p-61f225ef.system.js"],(function(e){"use strict";var t,s,r,n;return{setters:[function(e){t=e.r;s=e.h;r=e.H},function(e){n=e.c}],execute:function(){var c="taro-text-core{display:inline;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:pre-wrap}.taro-text__selectable{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}";var l=e("taro_text_core",function(){function e(e){t(this,e);this.selectable=false}e.prototype.render=function(){var e=n({"taro-text__selectable":this.selectable});return s(r,{class:e},s("slot",null))};return e}());l.style=c}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as e,g as h}from"./p-
|
|
1
|
+
import{r as t,c as i,h as s,H as e,g as h}from"./p-059912fd.js";let r=class{constructor(s){t(this,s),this.onChange=i(this,"radiochange",7),this.value="",this.checked=!1,this.disabled=!1,this.nativeProps={},this.isWillLoadCalled=!1,this.handleClick=()=>{this.disabled||this.checked||(this.checked=!0)}}watchChecked(t){this.isWillLoadCalled&&t&&this.onChange.emit({value:this.value})}watchId(t){this.isWillLoadCalled&&t&&this.inputEl.setAttribute("id",t)}componentDidRender(){this.id&&this.el.removeAttribute("id")}componentWillLoad(){this.isWillLoadCalled=!0}render(){const{checked:t,name:i,value:h,disabled:r,nativeProps:c}=this;return s(e,{className:"weui-cells_checkbox",onClick:this.handleClick},s("input",Object.assign({ref:t=>{t&&(this.inputEl=t,this.id&&t.setAttribute("id",this.id))},type:"radio",name:i,value:h,class:"weui-check",checked:t,disabled:r,onChange:t=>t.stopPropagation()},c)),s("i",{class:"weui-icon-checked"}),s("slot",null))}get el(){return h(this)}static get watchers(){return{checked:["watchChecked"],id:["watchId"]}}},c=class{constructor(s){t(this,s),this.onChange=i(this,"change",7),this.uniqueName=Date.now().toString(36)}function(t){if(t.stopPropagation(),"TARO-RADIO-CORE"!==t.target.tagName)return;const i=t.target;i.checked&&(this.el.querySelectorAll("taro-radio-core").forEach((t=>{t!==i&&(t.checked=!1)})),this.value=t.detail.value,this.onChange.emit({value:this.value}))}componentDidLoad(){this.el.querySelectorAll("taro-radio-core").forEach((t=>{t.setAttribute("name",this.name||this.uniqueName)})),Object.defineProperty(this.el,"value",{get:()=>{if(!this.value){const t=this.el.querySelectorAll("taro-radio-core");this.value=this.getValues(t)}return this.value},configurable:!0})}getValues(t){let i="";return Array.from(t).forEach((t=>{const s=t.querySelector("input");(null==s?void 0:s.checked)&&(i=s.value||"")})),i}render(){return s(e,{class:"weui-cells_radiogroup"})}get el(){return h(this)}};export{r as taro_radio_core,c as taro_radio_group_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,g as
|
|
1
|
+
import{r as t,c as s,h as i,g as h}from"./p-059912fd.js";let o=class{constructor(i){t(this,i),this.onLongTap=s(this,"longtap",7),this.nativeProps={},this.onTouchStart=()=>{this.timer=setTimeout((()=>{this.onLongTap.emit()}),500)},this.onTouchMove=()=>{clearTimeout(this.timer)},this.onTouchEnd=()=>{clearTimeout(this.timer)}}render(){const{canvasId:t,nativeProps:s}=this;return i("canvas",Object.assign({"canvas-id":t,style:{width:"100%",height:"100%"},onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd},s))}get el(){return h(this)}};o.style="taro-canvas-core{display:block;position:relative;width:300px;height:150px}";export{o as taro_canvas_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,c as t,h as i}from"./p-
|
|
1
|
+
import{r,c as t,h as i}from"./p-059912fd.js";let o=class{constructor(i){r(this,i),this.onLoad=t(this,"load",7),this.onError=t(this,"error",7),this.nativeProps={}}imageOnLoad(){const{width:r,height:t}=this.imgRef;this.onLoad.emit({width:r,height:t})}imageOnError(){this.onError.emit()}render(){const{src:r,imageOnLoad:t,imageOnError:o,nativeProps:s}=this;return i("img",Object.assign({ref:r=>this.imgRef=r,src:r,onLoad:t.bind(this),onError:o.bind(this)},s))}};o.style="taro-cover-image-core{overflow:hidden;width:320px;height:240px}";export{o as taro_cover_image_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-
|
|
1
|
+
import{p as e,b as o}from"./p-059912fd.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),e(r)})().then((e=>o([["p-92699438",[[4,"taro-checkbox-core",{name:[1],value:[1],color:[1],id:[1025],checked:[4],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-checkbox-group-core",{name:[8]},[[0,"checkboxchange","function"]]]]],["p-fec6ac36",[[4,"taro-radio-core",{name:[1],value:[1],id:[1025],checked:[1028],disabled:[4],nativeProps:[16],isWillLoadCalled:[32]}],[0,"taro-radio-group-core",{name:[8]},[[0,"radiochange","function"]]]]],["p-e1ed00f7",[[4,"taro-swiper-core",{indicatorDots:[4,"indicator-dots"],indicatorColor:[1,"indicator-color"],indicatorActiveColor:[1,"indicator-active-color"],autoplay:[4],current:[2],interval:[2],duration:[2],circular:[4],vertical:[4],previousMargin:[1,"previous-margin"],nextMargin:[1,"next-margin"],displayMultipleItems:[2,"display-multiple-items"],full:[4],swiperWrapper:[32],swiper:[32],isWillLoadCalled:[32],observer:[32],observerFirst:[32],observerLast:[32]}],[0,"taro-swiper-item-core",{itemId:[1,"item-id"]}]]],["p-7ab91097",[[0,"taro-ad-core"]]],["p-9fcb40a3",[[0,"taro-ad-custom-core"]]],["p-8c8be53b",[[0,"taro-audio-core",{src:[1],controls:[4],autoplay:[4],loop:[4],muted:[4],nativeProps:[16]}]]],["p-72f858e4",[[0,"taro-block-core"]]],["p-7f93fa08",[[4,"taro-button-core",{disabled:[4],hoverClass:[1,"hover-class"],type:[1],hoverStartTime:[2,"hover-start-time"],hoverStayTime:[2,"hover-stay-time"],size:[1],plain:[4],loading:[4],formType:[1,"form-type"],hover:[32],touch:[32]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-4f805045",[[0,"taro-camera-core"]]],["p-ff84986d",[[0,"taro-canvas-core",{canvasId:[1,"canvas-id"],nativeProps:[16]}]]],["p-ffefd74f",[[0,"taro-cover-image-core",{src:[1],nativeProps:[16]}]]],["p-362998cf",[[4,"taro-cover-view-core",{animation:[1],hoverClass:[1,"hover-class"],hoverStartTime:[2,"hover-start-time"],hoverStayTime:[2,"hover-stay-time"],hover:[32],touch:[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-8aea3de3",[[0,"taro-custom-wrapper-core"]]],["p-db1f2db7",[[0,"taro-editor-core"]]],["p-ab1256fe",[[4,"taro-form-core",{slotParent:[32]},[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-95a36917",[[0,"taro-functional-page-navigator-core"]]],["p-b2800ccd",[[0,"taro-icon-core",{type:[1],size:[8],color:[1]}]]],["p-888fac99",[[0,"taro-image-core",{src:[1],mode:[1],lazyLoad:[4,"lazy-load"],nativeProps:[16],aspectFillMode:[32]}]]],["p-06bef0f9",[[0,"taro-input-core",{value:[1],type:[1],password:[4],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],confirmType:[1,"confirm-type"],name:[1],nativeProps:[16]}]]],["p-443fb8b0",[[0,"taro-keyboard-accessory-core"]]],["p-b7639674",[[4,"taro-label-core",{for:[1]}]]],["p-c0c8b2be",[[0,"taro-live-player-core"]]],["p-e3f39099",[[0,"taro-live-pusher-core"]]],["p-3c7cdf6f",[[0,"taro-map-core"]]],["p-22e33350",[[0,"taro-match-media-core"]]],["p-f8b9c4b0",[[0,"taro-movable-area-core",{scaleArea:[4,"scale-area"]}]]],["p-1e530acd",[[4,"taro-movable-view-core",{x:[8],y:[8],direction:[1],outOfBounds:[4,"out-of-bounds"],inertia:[4],friction:[2],damping:[2],disabled:[4],scale:[4],scaleMin:[2,"scale-min"],scaleMax:[2,"scale-max"],scaleValue:[2,"scale-value"],animation:[4],setParent:[64],endScale:[64],setScale:[64]}]]],["p-7e23b551",[[0,"taro-navigation-bar-core"]]],["p-3c6090fd",[[0,"taro-navigator-core",{hoverClass:[1,"hover-class"],url:[1],openType:[1,"open-type"],isHover:[4,"is-hover"],delta:[2]},[[0,"click","onClick"]]]]],["p-90a6c15a",[[0,"taro-official-account-core"]]],["p-c8da5c10",[[0,"taro-open-data-core"]]],["p-77ad7941",[[0,"taro-page-container-core"]]],["p-6da73376",[[0,"taro-page-meta-core"]]],["p-9a0e70b1",[[0,"taro-picker-view-column-core",{col:[1],initialPosition:[1,"initial-position"],paddingVertical:[2,"padding-vertical"],isInit:[32],isMove:[32]},[[1,"scroll","onScroll"],[1,"mouseup","onMouseEnd"],[1,"mouseout","onMouseEnd"],[1,"mouseleave","onMouseEnd"],[1,"touchend","onTouchEnd"]]]]],["p-9b39a940",[[4,"taro-picker-view-core",{indicatorStyle:[1,"indicator-style"],indicatorClass:[1,"indicator-class"],value:[16],maskStyle:[1,"mask-style"],maskClass:[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-b3b677fc",[[0,"taro-progress-core",{percent:[2],showInfo:[4,"show-info"],borderRadius:[8,"border-radius"],fontSize:[8,"font-size"],strokeWidth:[8,"stroke-width"],activeColor:[1,"active-color"],backgroundColor:[1,"background-color"],active:[4]}]]],["p-eec00033",[[4,"taro-pull-to-refresh",{prefixCls:[1,"prefix-cls"],distanceToRefresh:[2,"distance-to-refresh"],damping:[2],indicator:[16],currSt:[32],dragOnEdge:[32]}]]],["p-7407013d",[[0,"taro-rich-text-core",{nodes:[1]}]]],["p-410d449f",[[0,"taro-root-portal-core"]]],["p-ef006b23",[[4,"taro-scroll-view-core",{scrollX:[4,"scroll-x"],scrollY:[4,"scroll-y"],upperThreshold:[8,"upper-threshold"],lowerThreshold:[8,"lower-threshold"],mpScrollTop:[8,"scroll-top"],mpScrollLeft:[8,"scroll-left"],mpScrollIntoView:[1,"scroll-into-view"],scrollWithAnimation:[4,"scroll-with-animation"]}]]],["p-7325d380",[[0,"taro-share-element-core"]]],["p-886571e5",[[0,"taro-slider-core",{min:[2],max:[2],step:[2],disabled:[4],value:[1026],activeColor:[1,"active-color"],backgroundColor:[1,"background-color"],blockSize:[2,"block-size"],blockColor:[1,"block-color"],showValue:[4,"show-value"],name:[1],val:[32],totalWidth:[32],touching:[32],ogX:[32],touchId:[32],percent:[32],ogPercent:[32],isWillLoadCalled:[32]}]]],["p-7f0a12a9",[[0,"taro-slot-core"]]],["p-4ada10aa",[[0,"taro-switch-core",{type:[1],checked:[4],color:[1],name:[1],disabled:[4],nativeProps:[16],isChecked:[32],isWillLoadCalled:[32]}]]],["p-5733124c",[[0,"taro-tabbar",{conf:[16],list:[32],borderStyle:[32],backgroundColor:[32],color:[32],selectedColor:[32],selectedIndex:[32],status:[32]}]]],["p-dff55efd",[[4,"taro-text-core",{selectable:[4]}]]],["p-00201a61",[[0,"taro-textarea-core",{value:[1],placeholder:[1],disabled:[4],maxlength:[2],autoFocus:[4,"auto-focus"],autoHeight:[4,"auto-height"],name:[1],nativeProps:[16],line:[32]}]]],["p-5a2305e7",[[4,"taro-view-core",{animation:[1],hoverClass:[1,"hover-class"],hoverStartTime:[2,"hover-start-time"],hoverStayTime:[2,"hover-stay-time"],hover:[32],touch:[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-49b64020",[[0,"taro-voip-room-core"]]],["p-25df0ce9",[[0,"taro-web-view-core",{src:[1]}]]],["p-fa2a9bab",[[4,"taro-picker-core",{mode:[1],disabled:[4],range:[16],rangeKey:[1,"range-key"],value:[8],start:[1],end:[1],fields:[1],name:[1],pickerValue:[32],height:[32],hidden:[32],fadeOut:[32],isWillLoadCalled:[32]}],[0,"taro-picker-group",{mode:[1],range:[16],rangeKey:[1,"range-key"],height:[2],columnId:[1,"column-id"],updateHeight:[16],onColumnChange:[16],updateDay:[16],startY:[32],preY:[32],hadMove:[32],touchEnd:[32],isMove:[32]},[[1,"mousedown","onMouseDown"],[1,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-7e8943d8",[[0,"taro-video-core",{src:[1],duration:[2],controls:[4],autoplay:[4],loop:[4],muted:[4],initialTime:[2,"initial-time"],poster:[1],objectFit:[1,"object-fit"],showProgress:[4,"show-progress"],showFullscreenBtn:[4,"show-fullscreen-btn"],showPlayBtn:[4,"show-play-btn"],showCenterPlayBtn:[4,"show-center-play-btn"],showMuteBtn:[4,"show-mute-btn"],danmuList:[16],danmuBtn:[4,"danmu-btn"],enableDanmu:[4,"enable-danmu"],enablePlayGesture:[4,"enable-play-gesture"],enableProgressGesture:[4,"enable-progress-gesture"],vslideGesture:[4,"vslide-gesture"],vslideGestureInFullscreen:[4,"vslide-gesture-in-fullscreen"],nativeProps:[16],_duration:[32],_enableDanmu:[32],isPlaying:[32],isFirst:[32],isFullScreen:[32],fullScreenTimestamp:[32],isMute:[32],play:[64],pause:[64],stop:[64],seek:[64],requestFullScreen:[64],exitFullScreen:[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{controls:[4],currentTime:[2,"current-time"],duration:[2],isPlaying:[4,"is-playing"],pauseFunc:[16],playFunc:[16],seekFunc:[16],showPlayBtn:[4,"show-play-btn"],showProgress:[4,"show-progress"],setProgressBall:[64],toggleVisibility:[64],getIsDraggingProgressBall:[64],setCurrentTime:[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{enable:[4],danmuList:[32],sendDanmu:[64],tick:[64]}]]]],e)));
|
|
@@ -114,7 +114,7 @@ DOMTokenList
|
|
|
114
114
|
|
|
115
115
|
var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
|
|
116
116
|
var start = function() {
|
|
117
|
-
var url = new URL('./p-
|
|
117
|
+
var url = new URL('./p-0380841f.system.js', new URL(resourcesUrl, window.location.origin));
|
|
118
118
|
System.import(url.href);
|
|
119
119
|
};
|
|
120
120
|
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
export declare class MovableArea {
|
|
2
|
+
/**
|
|
3
|
+
* 当里面的 movable-view 设置为支持双指缩放时,设置此值可将缩放手势生效区域修改为整个movable-area
|
|
4
|
+
*/
|
|
5
|
+
scaleArea: boolean;
|
|
6
|
+
element: HTMLElement;
|
|
7
|
+
/** 观察者 */
|
|
8
|
+
private observer?;
|
|
9
|
+
/** 子元素集合 */
|
|
10
|
+
private views;
|
|
11
|
+
/** 单个元素缩放时的目标元素 */
|
|
12
|
+
private scaleTarget?;
|
|
13
|
+
/** 手势缩放 */
|
|
14
|
+
private scaleLength;
|
|
15
|
+
/** 宽高 */
|
|
16
|
+
private offset?;
|
|
17
|
+
connectedCallback(): void;
|
|
18
|
+
disconnectedCallback(): void;
|
|
2
19
|
componentDidLoad(): void;
|
|
20
|
+
viewsChanged: () => void;
|
|
21
|
+
handleTouchStart: (e: TouchEvent) => void;
|
|
22
|
+
handleTouchMove: (e: TouchEvent) => void;
|
|
23
|
+
handleTouchEnd: (e: TouchEvent) => void;
|
|
24
|
+
updateScale: (scale: number) => void;
|
|
25
|
+
updateArea: () => void;
|
|
3
26
|
render(): any;
|
|
4
27
|
}
|
|
@@ -1,4 +1,157 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
1
2
|
export declare class MovableView {
|
|
3
|
+
/**
|
|
4
|
+
* 定义x轴方向的偏移,如果x的值不在可移动范围内,会自动移动到可移动范围;改变x的值会触发动画;单位支持px;
|
|
5
|
+
*/
|
|
6
|
+
x: number | string;
|
|
7
|
+
/**
|
|
8
|
+
* 定义y轴方向的偏移,如果y的值不在可移动范围内,会自动移动到可移动范围;改变y的值会触发动画;单位支持px;
|
|
9
|
+
*/
|
|
10
|
+
y: number | string;
|
|
11
|
+
/**
|
|
12
|
+
* 移动方向,属性值有all、vertical、horizontal、none
|
|
13
|
+
*/
|
|
14
|
+
direction: "all" | "vertical" | "horizontal" | "none";
|
|
15
|
+
/**
|
|
16
|
+
* 超过可移动区域后,是否还可以移动
|
|
17
|
+
*/
|
|
18
|
+
outOfBounds: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* 是否带有惯性
|
|
21
|
+
*/
|
|
22
|
+
inertia: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* 摩擦系数,用于控制惯性滑动的动画,值越大摩擦力越大,滑动越快停止;必须大于0,否则会被设置成默认值
|
|
25
|
+
*/
|
|
26
|
+
friction: number;
|
|
27
|
+
/**
|
|
28
|
+
* 阻尼系数,用于控制x或y改变时的动画和过界回弹的动画,值越大移动越快
|
|
29
|
+
*/
|
|
30
|
+
damping: number;
|
|
31
|
+
/**
|
|
32
|
+
* 是否禁用
|
|
33
|
+
*/
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* 是否支持双指缩放,默认缩放手势生效区域是在movable-view内
|
|
37
|
+
*/
|
|
38
|
+
scale: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* 定义缩放倍数最小值
|
|
41
|
+
*/
|
|
42
|
+
scaleMin: number;
|
|
43
|
+
/**
|
|
44
|
+
* 定义缩放倍数最大值
|
|
45
|
+
*/
|
|
46
|
+
scaleMax: number;
|
|
47
|
+
/**
|
|
48
|
+
* 定义缩放倍数,取值范围为 0.5 - 10
|
|
49
|
+
*/
|
|
50
|
+
scaleValue: number;
|
|
51
|
+
/**
|
|
52
|
+
* 是否使用动画
|
|
53
|
+
*/
|
|
54
|
+
animation: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* 拖动过程中触发的事件,event.detail = {x, y, source}
|
|
57
|
+
*/
|
|
58
|
+
onChange: EventEmitter;
|
|
59
|
+
/**
|
|
60
|
+
* 缩放过程中触发的事件,event.detail = {x, y, scale},x和y字段在2.1.0之后支持
|
|
61
|
+
*/
|
|
62
|
+
onScale: EventEmitter;
|
|
63
|
+
/**
|
|
64
|
+
* 初次手指触摸后移动为横向的移动时触发,如果catch此事件,则意味着touchmove事件也被catch
|
|
65
|
+
*/
|
|
66
|
+
onHTouchMove: EventEmitter;
|
|
67
|
+
/**
|
|
68
|
+
* 初次手指触摸后移动为纵向的移动时触发,如果catch此事件,则意味着touchmove事件也被catch
|
|
69
|
+
*/
|
|
70
|
+
onVTouchMove: EventEmitter;
|
|
71
|
+
element: HTMLElement;
|
|
72
|
+
watchX(newValue: number | string): void;
|
|
73
|
+
watchY(newValue: number | string): void;
|
|
74
|
+
watchScaleMinOrMax(): false | undefined;
|
|
75
|
+
watchScaleValue(scale: any): any;
|
|
76
|
+
/**
|
|
77
|
+
* 设置父节点
|
|
78
|
+
*/
|
|
79
|
+
setParent({ element, area }: {
|
|
80
|
+
element: HTMLElement;
|
|
81
|
+
area: {
|
|
82
|
+
width: number;
|
|
83
|
+
height: number;
|
|
84
|
+
};
|
|
85
|
+
}): Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* 结束缩放
|
|
88
|
+
*/
|
|
89
|
+
endScale(): Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* 更新缩放
|
|
92
|
+
*/
|
|
93
|
+
setScale(scale: number): Promise<void>;
|
|
94
|
+
connectedCallback(): void;
|
|
95
|
+
disconnectedCallback(): void;
|
|
96
|
+
/** 观察者 */
|
|
97
|
+
private observer?;
|
|
98
|
+
/** 缩放中 */
|
|
99
|
+
private scaling;
|
|
100
|
+
/** 移动中 */
|
|
101
|
+
private touching;
|
|
102
|
+
/** 更新中 */
|
|
103
|
+
private updating;
|
|
104
|
+
/** 水平方向是否可移动 */
|
|
105
|
+
private xMove;
|
|
106
|
+
/** 垂直方向是否可移动 */
|
|
107
|
+
private yMove;
|
|
108
|
+
/** 首次移动方向事件是否已触发 */
|
|
109
|
+
private firstMoveFireEvent;
|
|
110
|
+
/** 当前水平偏移 */
|
|
111
|
+
private translateX;
|
|
112
|
+
/** 当前垂直偏移 */
|
|
113
|
+
private translateY;
|
|
114
|
+
/** touch-start 原点 */
|
|
115
|
+
private origin;
|
|
116
|
+
/** 父容器大小 */
|
|
117
|
+
private area;
|
|
118
|
+
/** 父容器 */
|
|
119
|
+
private parent?;
|
|
120
|
+
/** 原始缩放倍数 */
|
|
121
|
+
private originScale;
|
|
122
|
+
/** 当前缩放倍数 */
|
|
123
|
+
private currentScale;
|
|
124
|
+
/** 宽度 */
|
|
125
|
+
private width;
|
|
126
|
+
/** 高度 */
|
|
127
|
+
private height;
|
|
128
|
+
/** 移动边界 */
|
|
129
|
+
private minX;
|
|
130
|
+
private minY;
|
|
131
|
+
private maxX;
|
|
132
|
+
private maxY;
|
|
133
|
+
/** 移动基础位置 */
|
|
134
|
+
private baseX;
|
|
135
|
+
private baseY;
|
|
136
|
+
/** 偏移量 */
|
|
137
|
+
private offset;
|
|
138
|
+
private scaleOffset;
|
|
139
|
+
getLimitXY: (x: number, y: number) => {
|
|
140
|
+
x: number;
|
|
141
|
+
y: number;
|
|
142
|
+
outOfBounds: boolean;
|
|
143
|
+
};
|
|
144
|
+
animationTo: (x: number, y: number, scale?: number | undefined, source?: string | undefined, noEmitChange?: boolean | undefined, emitScale?: boolean | undefined, callback?: (() => void) | undefined) => void;
|
|
145
|
+
setTransform: (x: number, y: number, scale?: number | undefined, source?: string | undefined, noEmitChange?: boolean | undefined, emitScale?: boolean | undefined) => void;
|
|
146
|
+
updateOffset: () => void;
|
|
147
|
+
updateScaleOffset: (scale?: number) => void;
|
|
148
|
+
updateBoundary: () => void;
|
|
149
|
+
updateScale: (scale: number, animation?: boolean | undefined, animationCallback?: (() => void) | undefined) => void;
|
|
150
|
+
setOriginScale: (scale: number) => void;
|
|
151
|
+
adjustScale: (scale: number) => number;
|
|
2
152
|
componentDidLoad(): void;
|
|
153
|
+
handleTouchStart: (e: TouchEvent) => void;
|
|
154
|
+
handleTouchMove: (e: TouchEvent) => void;
|
|
155
|
+
handleTouchEnd: (e: TouchEvent) => void;
|
|
3
156
|
render(): any;
|
|
4
157
|
}
|
|
@@ -110,8 +110,76 @@ export namespace Components {
|
|
|
110
110
|
interface TaroMatchMediaCore {
|
|
111
111
|
}
|
|
112
112
|
interface TaroMovableAreaCore {
|
|
113
|
+
/**
|
|
114
|
+
* 当里面的 movable-view 设置为支持双指缩放时,设置此值可将缩放手势生效区域修改为整个movable-area
|
|
115
|
+
*/
|
|
116
|
+
"scaleArea": boolean;
|
|
113
117
|
}
|
|
114
118
|
interface TaroMovableViewCore {
|
|
119
|
+
/**
|
|
120
|
+
* 是否使用动画
|
|
121
|
+
*/
|
|
122
|
+
"animation": boolean;
|
|
123
|
+
/**
|
|
124
|
+
* 阻尼系数,用于控制x或y改变时的动画和过界回弹的动画,值越大移动越快
|
|
125
|
+
*/
|
|
126
|
+
"damping": number;
|
|
127
|
+
/**
|
|
128
|
+
* 移动方向,属性值有all、vertical、horizontal、none
|
|
129
|
+
*/
|
|
130
|
+
"direction": "all" | "vertical" | "horizontal" | "none";
|
|
131
|
+
/**
|
|
132
|
+
* 是否禁用
|
|
133
|
+
*/
|
|
134
|
+
"disabled": boolean;
|
|
135
|
+
/**
|
|
136
|
+
* 结束缩放
|
|
137
|
+
*/
|
|
138
|
+
"endScale": () => Promise<void>;
|
|
139
|
+
/**
|
|
140
|
+
* 摩擦系数,用于控制惯性滑动的动画,值越大摩擦力越大,滑动越快停止;必须大于0,否则会被设置成默认值
|
|
141
|
+
*/
|
|
142
|
+
"friction": number;
|
|
143
|
+
/**
|
|
144
|
+
* 是否带有惯性
|
|
145
|
+
*/
|
|
146
|
+
"inertia": boolean;
|
|
147
|
+
/**
|
|
148
|
+
* 超过可移动区域后,是否还可以移动
|
|
149
|
+
*/
|
|
150
|
+
"outOfBounds": boolean;
|
|
151
|
+
/**
|
|
152
|
+
* 是否支持双指缩放,默认缩放手势生效区域是在movable-view内
|
|
153
|
+
*/
|
|
154
|
+
"scale": boolean;
|
|
155
|
+
/**
|
|
156
|
+
* 定义缩放倍数最大值
|
|
157
|
+
*/
|
|
158
|
+
"scaleMax": number;
|
|
159
|
+
/**
|
|
160
|
+
* 定义缩放倍数最小值
|
|
161
|
+
*/
|
|
162
|
+
"scaleMin": number;
|
|
163
|
+
/**
|
|
164
|
+
* 定义缩放倍数,取值范围为 0.5 - 10
|
|
165
|
+
*/
|
|
166
|
+
"scaleValue": number;
|
|
167
|
+
/**
|
|
168
|
+
* 设置父节点
|
|
169
|
+
*/
|
|
170
|
+
"setParent": ({ element, area }: { element: HTMLElement; area: { width: number; height: number; }; }) => Promise<void>;
|
|
171
|
+
/**
|
|
172
|
+
* 更新缩放
|
|
173
|
+
*/
|
|
174
|
+
"setScale": (scale: number) => Promise<void>;
|
|
175
|
+
/**
|
|
176
|
+
* 定义x轴方向的偏移,如果x的值不在可移动范围内,会自动移动到可移动范围;改变x的值会触发动画;单位支持px;
|
|
177
|
+
*/
|
|
178
|
+
"x": number | string;
|
|
179
|
+
/**
|
|
180
|
+
* 定义y轴方向的偏移,如果y的值不在可移动范围内,会自动移动到可移动范围;改变y的值会触发动画;单位支持px;
|
|
181
|
+
*/
|
|
182
|
+
"y": number | string;
|
|
115
183
|
}
|
|
116
184
|
interface TaroNavigationBarCore {
|
|
117
185
|
}
|
|
@@ -978,8 +1046,80 @@ declare namespace LocalJSX {
|
|
|
978
1046
|
interface TaroMatchMediaCore {
|
|
979
1047
|
}
|
|
980
1048
|
interface TaroMovableAreaCore {
|
|
1049
|
+
/**
|
|
1050
|
+
* 当里面的 movable-view 设置为支持双指缩放时,设置此值可将缩放手势生效区域修改为整个movable-area
|
|
1051
|
+
*/
|
|
1052
|
+
"scaleArea"?: boolean;
|
|
981
1053
|
}
|
|
982
1054
|
interface TaroMovableViewCore {
|
|
1055
|
+
/**
|
|
1056
|
+
* 是否使用动画
|
|
1057
|
+
*/
|
|
1058
|
+
"animation"?: boolean;
|
|
1059
|
+
/**
|
|
1060
|
+
* 阻尼系数,用于控制x或y改变时的动画和过界回弹的动画,值越大移动越快
|
|
1061
|
+
*/
|
|
1062
|
+
"damping"?: number;
|
|
1063
|
+
/**
|
|
1064
|
+
* 移动方向,属性值有all、vertical、horizontal、none
|
|
1065
|
+
*/
|
|
1066
|
+
"direction"?: "all" | "vertical" | "horizontal" | "none";
|
|
1067
|
+
/**
|
|
1068
|
+
* 是否禁用
|
|
1069
|
+
*/
|
|
1070
|
+
"disabled"?: boolean;
|
|
1071
|
+
/**
|
|
1072
|
+
* 摩擦系数,用于控制惯性滑动的动画,值越大摩擦力越大,滑动越快停止;必须大于0,否则会被设置成默认值
|
|
1073
|
+
*/
|
|
1074
|
+
"friction"?: number;
|
|
1075
|
+
/**
|
|
1076
|
+
* 是否带有惯性
|
|
1077
|
+
*/
|
|
1078
|
+
"inertia"?: boolean;
|
|
1079
|
+
/**
|
|
1080
|
+
* 拖动过程中触发的事件,event.detail = {x, y, source}
|
|
1081
|
+
*/
|
|
1082
|
+
"onChange"?: (event: CustomEvent<any>) => void;
|
|
1083
|
+
/**
|
|
1084
|
+
* 初次手指触摸后移动为横向的移动时触发,如果catch此事件,则意味着touchmove事件也被catch
|
|
1085
|
+
*/
|
|
1086
|
+
"onHtouchmove"?: (event: CustomEvent<any>) => void;
|
|
1087
|
+
/**
|
|
1088
|
+
* 缩放过程中触发的事件,event.detail = {x, y, scale},x和y字段在2.1.0之后支持
|
|
1089
|
+
*/
|
|
1090
|
+
"onScale"?: (event: CustomEvent<any>) => void;
|
|
1091
|
+
/**
|
|
1092
|
+
* 初次手指触摸后移动为纵向的移动时触发,如果catch此事件,则意味着touchmove事件也被catch
|
|
1093
|
+
*/
|
|
1094
|
+
"onVtouchmove"?: (event: CustomEvent<any>) => void;
|
|
1095
|
+
/**
|
|
1096
|
+
* 超过可移动区域后,是否还可以移动
|
|
1097
|
+
*/
|
|
1098
|
+
"outOfBounds"?: boolean;
|
|
1099
|
+
/**
|
|
1100
|
+
* 是否支持双指缩放,默认缩放手势生效区域是在movable-view内
|
|
1101
|
+
*/
|
|
1102
|
+
"scale"?: boolean;
|
|
1103
|
+
/**
|
|
1104
|
+
* 定义缩放倍数最大值
|
|
1105
|
+
*/
|
|
1106
|
+
"scaleMax"?: number;
|
|
1107
|
+
/**
|
|
1108
|
+
* 定义缩放倍数最小值
|
|
1109
|
+
*/
|
|
1110
|
+
"scaleMin"?: number;
|
|
1111
|
+
/**
|
|
1112
|
+
* 定义缩放倍数,取值范围为 0.5 - 10
|
|
1113
|
+
*/
|
|
1114
|
+
"scaleValue"?: number;
|
|
1115
|
+
/**
|
|
1116
|
+
* 定义x轴方向的偏移,如果x的值不在可移动范围内,会自动移动到可移动范围;改变x的值会触发动画;单位支持px;
|
|
1117
|
+
*/
|
|
1118
|
+
"x"?: number | string;
|
|
1119
|
+
/**
|
|
1120
|
+
* 定义y轴方向的偏移,如果y的值不在可移动范围内,会自动移动到可移动范围;改变y的值会触发动画;单位支持px;
|
|
1121
|
+
*/
|
|
1122
|
+
"y"?: number | string;
|
|
983
1123
|
}
|
|
984
1124
|
interface TaroNavigationBarCore {
|
|
985
1125
|
}
|