@tarojs/components 3.5.7-alpha.6 → 3.6.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/helper-db78e01a.js +2 -0
- package/dist/cjs/helper-db78e01a.js.map +1 -0
- package/dist/cjs/index-47a1959e.js +2 -0
- package/dist/cjs/index-47a1959e.js.map +1 -0
- package/dist/cjs/{index-7c61bee9.js → index-9174e0b1.js} +477 -234
- package/dist/cjs/index-9174e0b1.js.map +1 -0
- package/dist/cjs/index-f9d21cc5.js +2 -0
- package/dist/cjs/index-f9d21cc5.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/intersection-observer-dc4cfcef.js +2 -0
- package/dist/cjs/intersection-observer-dc4cfcef.js.map +1 -0
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/taro-ad-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-ad-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-ad-custom-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-audio-core.cjs.entry.js +5 -2
- package/dist/cjs/taro-audio-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-block-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-block-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-button-core.cjs.entry.js +7 -2
- package/dist/cjs/taro-button-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-camera-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-camera-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-canvas-core.cjs.entry.js +6 -3
- package/dist/cjs/taro-canvas-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +14 -8
- package/dist/cjs/taro-checkbox-core_2.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-components.cjs.js +5 -3
- package/dist/cjs/taro-components.cjs.js.map +1 -0
- package/dist/cjs/taro-cover-image-core.cjs.entry.js +5 -2
- package/dist/cjs/taro-cover-image-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-cover-view-core.cjs.entry.js +7 -3
- package/dist/cjs/taro-cover-view-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-editor-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-editor-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-form-core.cjs.entry.js +5 -2
- package/dist/cjs/taro-form-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-icon-core.cjs.entry.js +6 -2
- package/dist/cjs/taro-icon-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-image-core.cjs.entry.js +5 -2
- package/dist/cjs/taro-image-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-input-core.cjs.entry.js +18 -10
- package/dist/cjs/taro-input-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-label-core.cjs.entry.js +5 -2
- package/dist/cjs/taro-label-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-live-player-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-live-player-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-live-pusher-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-map-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-map-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-match-media-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-match-media-core.cjs.entry.js.map +1 -0
- package/dist/cjs/{taro-movable-view-core.cjs.entry.js → taro-movable-area-core_2.cjs.entry.js} +187 -97
- package/dist/cjs/taro-movable-area-core_2.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-navigation-bar-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-navigator-core.cjs.entry.js +6 -2
- package/dist/cjs/taro-navigator-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-official-account-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-official-account-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-open-data-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-open-data-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-page-container-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-page-container-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-page-meta-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-page-meta-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-picker-core_2.cjs.entry.js +31 -15
- package/dist/cjs/taro-picker-core_2.cjs.entry.js.map +1 -0
- package/dist/cjs/{taro-picker-view-core.cjs.entry.js → taro-picker-view-column-core_2.cjs.entry.js} +101 -6
- package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-progress-core.cjs.entry.js +7 -5
- package/dist/cjs/taro-progress-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +10 -8
- package/dist/cjs/taro-pull-to-refresh.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-radio-core_2.cjs.entry.js +15 -9
- package/dist/cjs/taro-radio-core_2.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-rich-text-core.cjs.entry.js +5 -2
- package/dist/cjs/taro-rich-text-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-root-portal-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-root-portal-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js +28 -22
- package/dist/cjs/taro-scroll-view-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-share-element-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-share-element-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-slider-core.cjs.entry.js +23 -19
- package/dist/cjs/taro-slider-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-slot-core.cjs.entry.js +4 -7
- package/dist/cjs/taro-slot-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js +25 -56
- package/dist/cjs/taro-swiper-core_2.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-switch-core.cjs.entry.js +12 -8
- package/dist/cjs/taro-switch-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-tabbar.cjs.entry.js +12 -4
- package/dist/cjs/taro-tabbar.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-text-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-text-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-textarea-core.cjs.entry.js +13 -8
- package/dist/cjs/taro-textarea-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-video-control_3.cjs.entry.js +142 -260
- package/dist/cjs/taro-video-control_3.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-view-core.cjs.entry.js +7 -3
- package/dist/cjs/taro-view-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-voip-room-core.cjs.entry.js +4 -2
- package/dist/cjs/taro-voip-room-core.cjs.entry.js.map +1 -0
- package/dist/cjs/taro-web-view-core.cjs.entry.js +5 -2
- package/dist/cjs/taro-web-view-core.cjs.entry.js.map +1 -0
- package/dist/collection/collection-manifest.json +16 -4
- package/dist/collection/components/ad/ad.js +2 -1
- package/dist/collection/components/ad/ad.js.map +1 -0
- package/dist/collection/components/ad-custom/ad-custom.js +2 -1
- package/dist/collection/components/ad-custom/ad-custom.js.map +1 -0
- package/dist/collection/components/audio/audio.js +199 -190
- package/dist/collection/components/audio/audio.js.map +1 -0
- package/dist/collection/components/block/block.js +2 -2
- package/dist/collection/components/block/block.js.map +1 -0
- package/dist/collection/components/button/button.js +224 -211
- package/dist/collection/components/button/button.js.map +1 -0
- package/dist/collection/components/camera/camera.js +2 -1
- package/dist/collection/components/camera/camera.js.map +1 -0
- package/dist/collection/components/canvas/canvas.js +67 -58
- package/dist/collection/components/canvas/canvas.js.map +1 -0
- package/dist/collection/components/checkbox/checkbox-group.js +50 -42
- package/dist/collection/components/checkbox/checkbox-group.js.map +1 -0
- package/dist/collection/components/checkbox/checkbox.js +174 -161
- package/dist/collection/components/checkbox/checkbox.js.map +1 -0
- package/dist/collection/components/cover-image/cover-image.js +81 -72
- package/dist/collection/components/cover-image/cover-image.js.map +1 -0
- package/dist/collection/components/cover-view/cover-view.js +131 -118
- package/dist/collection/components/cover-view/cover-view.js.map +1 -0
- package/dist/collection/components/custom-wrapper/custom-wrapper.js +2 -2
- package/dist/collection/components/custom-wrapper/custom-wrapper.js.map +1 -0
- package/dist/collection/components/editor/editor.js +2 -1
- package/dist/collection/components/editor/editor.js.map +1 -0
- package/dist/collection/components/form/form.js +48 -40
- package/dist/collection/components/form/form.js.map +1 -0
- package/dist/collection/components/functional-page-navigator/functional-page-navigator.js +2 -1
- package/dist/collection/components/functional-page-navigator/functional-page-navigator.js.map +1 -0
- package/dist/collection/components/icon/icon.js +61 -56
- package/dist/collection/components/icon/icon.js.map +1 -0
- package/dist/collection/components/image/image.js +123 -111
- package/dist/collection/components/image/image.js.map +1 -0
- package/dist/collection/components/input/input.js +310 -293
- package/dist/collection/components/input/input.js.map +1 -0
- package/dist/collection/components/keyboard-accessory/keyboard-accessory.js +2 -1
- package/dist/collection/components/keyboard-accessory/keyboard-accessory.js.map +1 -0
- package/dist/collection/components/label/label.js +27 -22
- package/dist/collection/components/label/label.js.map +1 -0
- package/dist/collection/components/live-player/live-player.js +2 -1
- package/dist/collection/components/live-player/live-player.js.map +1 -0
- package/dist/collection/components/live-pusher/live-pusher.js +2 -1
- package/dist/collection/components/live-pusher/live-pusher.js.map +1 -0
- package/dist/collection/components/map/map.js +2 -1
- package/dist/collection/components/map/map.js.map +1 -0
- package/dist/collection/components/match-media/match-media.js +2 -1
- package/dist/collection/components/match-media/match-media.js.map +1 -0
- package/dist/collection/components/movable-area/movable-area.js +34 -26
- package/dist/collection/components/movable-area/movable-area.js.map +1 -0
- package/dist/collection/components/movable-area/movable-view.js +415 -457
- package/dist/collection/components/movable-area/movable-view.js.map +1 -0
- package/dist/collection/components/navigation-bar/navigation-bar.js +2 -1
- package/dist/collection/components/navigation-bar/navigation-bar.js.map +1 -0
- package/dist/collection/components/navigator/navigator.js +158 -145
- package/dist/collection/components/navigator/navigator.js.map +1 -0
- package/dist/collection/components/official-account/official-account.js +2 -1
- package/dist/collection/components/official-account/official-account.js.map +1 -0
- package/dist/collection/components/open-data/open-data.js +2 -1
- package/dist/collection/components/open-data/open-data.js.map +1 -0
- package/dist/collection/components/page-container/page-container.js +2 -1
- package/dist/collection/components/page-container/page-container.js.map +1 -0
- package/dist/collection/components/page-meta/page-meta.js +2 -1
- package/dist/collection/components/page-meta/page-meta.js.map +1 -0
- package/dist/collection/components/picker/constant.js +1 -0
- package/dist/collection/components/picker/constant.js.map +1 -0
- package/dist/collection/components/picker/picker-group.js +194 -179
- package/dist/collection/components/picker/picker-group.js.map +1 -0
- package/dist/collection/components/picker/picker.js +261 -257
- package/dist/collection/components/picker/picker.js.map +1 -0
- package/dist/collection/components/picker/utils.js +1 -0
- package/dist/collection/components/picker/utils.js.map +1 -0
- package/dist/collection/components/picker-view/picker-view-column.js +158 -147
- package/dist/collection/components/picker-view/picker-view-column.js.map +1 -0
- package/dist/collection/components/picker-view/picker-view.js +171 -159
- package/dist/collection/components/picker-view/picker-view.js.map +1 -0
- package/dist/collection/components/progress/progress.js +153 -157
- package/dist/collection/components/progress/progress.js.map +1 -0
- package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +121 -114
- package/dist/collection/components/pull-to-refresh/pull-to-refresh.js.map +1 -0
- package/dist/collection/components/radio/radio-group.js +50 -43
- package/dist/collection/components/radio/radio-group.js.map +1 -0
- package/dist/collection/components/radio/radio.js +152 -144
- package/dist/collection/components/radio/radio.js.map +1 -0
- package/dist/collection/components/rich-text/rich-text.js +27 -23
- package/dist/collection/components/rich-text/rich-text.js.map +1 -0
- package/dist/collection/components/root-portal/root-portal.js +2 -1
- package/dist/collection/components/root-portal/root-portal.js.map +1 -0
- package/dist/collection/components/scroll-view/scroll-view.js +242 -220
- package/dist/collection/components/scroll-view/scroll-view.js.map +1 -0
- package/dist/collection/components/share-element/share-element.js +2 -1
- package/dist/collection/components/share-element/share-element.js.map +1 -0
- package/dist/collection/components/slider/slider.js +267 -263
- package/dist/collection/components/slider/slider.js.map +1 -0
- package/dist/collection/components/slot/slot.js +2 -5
- package/dist/collection/components/slot/slot.js.map +1 -0
- package/dist/collection/components/swiper/swiper-item.js +26 -21
- package/dist/collection/components/swiper/swiper-item.js.map +1 -0
- package/dist/collection/components/swiper/swiper.js +325 -352
- package/dist/collection/components/swiper/swiper.js.map +1 -0
- package/dist/collection/components/switch/switch.js +153 -139
- package/dist/collection/components/switch/switch.js.map +1 -0
- package/dist/collection/components/tabbar/tabbar-item.js +2 -6
- package/dist/collection/components/tabbar/tabbar-item.js.map +1 -0
- package/dist/collection/components/tabbar/tabbar.js +86 -70
- package/dist/collection/components/tabbar/tabbar.js.map +1 -0
- package/dist/collection/components/text/text.js +35 -30
- package/dist/collection/components/text/text.js.map +1 -0
- package/dist/collection/components/textarea/textarea.js +239 -226
- package/dist/collection/components/textarea/textarea.js.map +1 -0
- package/dist/collection/components/video/utils.js +1 -0
- package/dist/collection/components/video/utils.js.map +1 -0
- package/dist/collection/components/video/video-control.js +274 -286
- package/dist/collection/components/video/video-control.js.map +1 -0
- package/dist/collection/components/video/video-danmu.js +111 -118
- package/dist/collection/components/video/video-danmu.js.map +1 -0
- package/dist/collection/components/video/video.js +740 -810
- package/dist/collection/components/video/video.js.map +1 -0
- package/dist/collection/components/view/view.js +131 -118
- package/dist/collection/components/view/view.js.map +1 -0
- package/dist/collection/components/voip-room/voip-room.js +2 -1
- package/dist/collection/components/voip-room/voip-room.js.map +1 -0
- package/dist/collection/components/web-view/web-view.js +68 -57
- package/dist/collection/components/web-view/web-view.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/utils/helper.js +1 -0
- package/dist/collection/utils/helper.js.map +1 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/index.js.map +1 -0
- package/dist/collection/utils/style.js +1 -0
- package/dist/collection/utils/style.js.map +1 -0
- package/dist/collection/utils/url.js +1 -0
- package/dist/collection/utils/url.js.map +1 -0
- package/dist/esm/helper-3d0ecf0f.js +2 -0
- package/dist/esm/helper-3d0ecf0f.js.map +1 -0
- package/dist/esm/index-1d8e8acd.js +2 -0
- package/dist/esm/index-1d8e8acd.js.map +1 -0
- package/dist/esm/{index-8809c729.js → index-5d881caf.js} +477 -234
- package/dist/esm/index-5d881caf.js.map +1 -0
- package/dist/esm/index-cad8203e.js +2 -0
- package/dist/esm/index-cad8203e.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/intersection-observer-8e4c7135.js +2 -0
- package/dist/esm/intersection-observer-8e4c7135.js.map +1 -0
- package/dist/esm/loader.js +5 -3
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/taro-ad-core.entry.js +4 -2
- package/dist/esm/taro-ad-core.entry.js.map +1 -0
- package/dist/esm/taro-ad-custom-core.entry.js +4 -2
- package/dist/esm/taro-ad-custom-core.entry.js.map +1 -0
- package/dist/esm/taro-audio-core.entry.js +5 -2
- package/dist/esm/taro-audio-core.entry.js.map +1 -0
- package/dist/esm/taro-block-core.entry.js +4 -2
- package/dist/esm/taro-block-core.entry.js.map +1 -0
- package/dist/esm/taro-button-core.entry.js +7 -2
- package/dist/esm/taro-button-core.entry.js.map +1 -0
- package/dist/esm/taro-camera-core.entry.js +4 -2
- package/dist/esm/taro-camera-core.entry.js.map +1 -0
- package/dist/esm/taro-canvas-core.entry.js +6 -3
- package/dist/esm/taro-canvas-core.entry.js.map +1 -0
- package/dist/esm/taro-checkbox-core_2.entry.js +14 -8
- package/dist/esm/taro-checkbox-core_2.entry.js.map +1 -0
- package/dist/esm/taro-components.js +5 -3
- package/dist/esm/taro-components.js.map +1 -0
- package/dist/esm/taro-cover-image-core.entry.js +5 -2
- package/dist/esm/taro-cover-image-core.entry.js.map +1 -0
- package/dist/esm/taro-cover-view-core.entry.js +7 -3
- package/dist/esm/taro-cover-view-core.entry.js.map +1 -0
- package/dist/esm/taro-custom-wrapper-core.entry.js +4 -2
- package/dist/esm/taro-custom-wrapper-core.entry.js.map +1 -0
- package/dist/esm/taro-editor-core.entry.js +4 -2
- package/dist/esm/taro-editor-core.entry.js.map +1 -0
- package/dist/esm/taro-form-core.entry.js +5 -2
- package/dist/esm/taro-form-core.entry.js.map +1 -0
- package/dist/esm/taro-functional-page-navigator-core.entry.js +4 -2
- package/dist/esm/taro-functional-page-navigator-core.entry.js.map +1 -0
- package/dist/esm/taro-icon-core.entry.js +6 -2
- package/dist/esm/taro-icon-core.entry.js.map +1 -0
- package/dist/esm/taro-image-core.entry.js +5 -2
- package/dist/esm/taro-image-core.entry.js.map +1 -0
- package/dist/esm/taro-input-core.entry.js +18 -10
- package/dist/esm/taro-input-core.entry.js.map +1 -0
- package/dist/esm/taro-keyboard-accessory-core.entry.js +4 -2
- package/dist/esm/taro-keyboard-accessory-core.entry.js.map +1 -0
- package/dist/esm/taro-label-core.entry.js +5 -2
- package/dist/esm/taro-label-core.entry.js.map +1 -0
- package/dist/esm/taro-live-player-core.entry.js +4 -2
- package/dist/esm/taro-live-player-core.entry.js.map +1 -0
- package/dist/esm/taro-live-pusher-core.entry.js +4 -2
- package/dist/esm/taro-live-pusher-core.entry.js.map +1 -0
- package/dist/esm/taro-map-core.entry.js +4 -2
- package/dist/esm/taro-map-core.entry.js.map +1 -0
- package/dist/esm/taro-match-media-core.entry.js +4 -2
- package/dist/esm/taro-match-media-core.entry.js.map +1 -0
- package/dist/esm/{taro-movable-view-core.entry.js → taro-movable-area-core_2.entry.js} +187 -98
- package/dist/esm/taro-movable-area-core_2.entry.js.map +1 -0
- package/dist/esm/taro-navigation-bar-core.entry.js +4 -2
- package/dist/esm/taro-navigation-bar-core.entry.js.map +1 -0
- package/dist/esm/taro-navigator-core.entry.js +6 -2
- package/dist/esm/taro-navigator-core.entry.js.map +1 -0
- package/dist/esm/taro-official-account-core.entry.js +4 -2
- package/dist/esm/taro-official-account-core.entry.js.map +1 -0
- package/dist/esm/taro-open-data-core.entry.js +4 -2
- package/dist/esm/taro-open-data-core.entry.js.map +1 -0
- package/dist/esm/taro-page-container-core.entry.js +4 -2
- package/dist/esm/taro-page-container-core.entry.js.map +1 -0
- package/dist/esm/taro-page-meta-core.entry.js +4 -2
- package/dist/esm/taro-page-meta-core.entry.js.map +1 -0
- package/dist/esm/taro-picker-core_2.entry.js +31 -15
- package/dist/esm/taro-picker-core_2.entry.js.map +1 -0
- package/dist/esm/{taro-picker-view-core.entry.js → taro-picker-view-column-core_2.entry.js} +97 -3
- package/dist/esm/taro-picker-view-column-core_2.entry.js.map +1 -0
- package/dist/esm/taro-progress-core.entry.js +7 -5
- package/dist/esm/taro-progress-core.entry.js.map +1 -0
- package/dist/esm/taro-pull-to-refresh.entry.js +10 -8
- package/dist/esm/taro-pull-to-refresh.entry.js.map +1 -0
- package/dist/esm/taro-radio-core_2.entry.js +15 -9
- package/dist/esm/taro-radio-core_2.entry.js.map +1 -0
- package/dist/esm/taro-rich-text-core.entry.js +5 -2
- package/dist/esm/taro-rich-text-core.entry.js.map +1 -0
- package/dist/esm/taro-root-portal-core.entry.js +4 -2
- package/dist/esm/taro-root-portal-core.entry.js.map +1 -0
- package/dist/esm/taro-scroll-view-core.entry.js +28 -22
- package/dist/esm/taro-scroll-view-core.entry.js.map +1 -0
- package/dist/esm/taro-share-element-core.entry.js +4 -2
- package/dist/esm/taro-share-element-core.entry.js.map +1 -0
- package/dist/esm/taro-slider-core.entry.js +23 -19
- package/dist/esm/taro-slider-core.entry.js.map +1 -0
- package/dist/esm/taro-slot-core.entry.js +4 -7
- package/dist/esm/taro-slot-core.entry.js.map +1 -0
- package/dist/esm/taro-swiper-core_2.entry.js +25 -56
- package/dist/esm/taro-swiper-core_2.entry.js.map +1 -0
- package/dist/esm/taro-switch-core.entry.js +12 -8
- package/dist/esm/taro-switch-core.entry.js.map +1 -0
- package/dist/esm/taro-tabbar.entry.js +12 -4
- package/dist/esm/taro-tabbar.entry.js.map +1 -0
- package/dist/esm/taro-text-core.entry.js +4 -2
- package/dist/esm/taro-text-core.entry.js.map +1 -0
- package/dist/esm/taro-textarea-core.entry.js +13 -8
- package/dist/esm/taro-textarea-core.entry.js.map +1 -0
- package/dist/esm/taro-video-control_3.entry.js +142 -260
- package/dist/esm/taro-video-control_3.entry.js.map +1 -0
- package/dist/esm/taro-view-core.entry.js +7 -3
- package/dist/esm/taro-view-core.entry.js.map +1 -0
- package/dist/esm/taro-voip-room-core.entry.js +4 -2
- package/dist/esm/taro-voip-room-core.entry.js.map +1 -0
- package/dist/esm/taro-web-view-core.entry.js +5 -2
- package/dist/esm/taro-web-view-core.entry.js.map +1 -0
- package/dist/esm-es5/helper-3d0ecf0f.js +2 -1
- package/dist/esm-es5/helper-3d0ecf0f.js.map +1 -0
- package/dist/esm-es5/index-1d8e8acd.js +2 -1
- package/dist/esm-es5/index-1d8e8acd.js.map +1 -0
- package/dist/esm-es5/index-5d881caf.js +3 -0
- package/dist/esm-es5/index-5d881caf.js.map +1 -0
- package/dist/esm-es5/index-cad8203e.js +2 -1
- package/dist/esm-es5/index-cad8203e.js.map +1 -0
- package/dist/esm-es5/index.js +2 -0
- package/dist/esm-es5/index.js.map +1 -0
- package/dist/esm-es5/intersection-observer-8e4c7135.js +2 -1
- package/dist/esm-es5/intersection-observer-8e4c7135.js.map +1 -0
- package/dist/esm-es5/loader.js +2 -1
- package/dist/esm-es5/loader.js.map +1 -0
- package/dist/esm-es5/taro-ad-core.entry.js +2 -1
- package/dist/esm-es5/taro-ad-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-ad-custom-core.entry.js +2 -1
- package/dist/esm-es5/taro-ad-custom-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-audio-core.entry.js +2 -1
- package/dist/esm-es5/taro-audio-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-block-core.entry.js +2 -1
- package/dist/esm-es5/taro-block-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-button-core.entry.js +2 -1
- package/dist/esm-es5/taro-button-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-camera-core.entry.js +2 -1
- package/dist/esm-es5/taro-camera-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-canvas-core.entry.js +2 -1
- package/dist/esm-es5/taro-canvas-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-checkbox-core_2.entry.js +2 -1
- package/dist/esm-es5/taro-checkbox-core_2.entry.js.map +1 -0
- package/dist/esm-es5/taro-components.js +2 -1
- package/dist/esm-es5/taro-components.js.map +1 -0
- package/dist/esm-es5/taro-cover-image-core.entry.js +2 -1
- package/dist/esm-es5/taro-cover-image-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-cover-view-core.entry.js +2 -1
- package/dist/esm-es5/taro-cover-view-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js +2 -1
- package/dist/esm-es5/taro-custom-wrapper-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-editor-core.entry.js +2 -1
- package/dist/esm-es5/taro-editor-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-form-core.entry.js +2 -1
- package/dist/esm-es5/taro-form-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +2 -1
- package/dist/esm-es5/taro-functional-page-navigator-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-icon-core.entry.js +2 -1
- package/dist/esm-es5/taro-icon-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-image-core.entry.js +2 -1
- package/dist/esm-es5/taro-image-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-input-core.entry.js +2 -1
- package/dist/esm-es5/taro-input-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +2 -1
- package/dist/esm-es5/taro-keyboard-accessory-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-label-core.entry.js +2 -1
- package/dist/esm-es5/taro-label-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-live-player-core.entry.js +2 -1
- package/dist/esm-es5/taro-live-player-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-live-pusher-core.entry.js +2 -1
- package/dist/esm-es5/taro-live-pusher-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-map-core.entry.js +2 -1
- package/dist/esm-es5/taro-map-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-match-media-core.entry.js +2 -1
- package/dist/esm-es5/taro-match-media-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-movable-area-core_2.entry.js +2 -0
- package/dist/esm-es5/taro-movable-area-core_2.entry.js.map +1 -0
- package/dist/esm-es5/taro-navigation-bar-core.entry.js +2 -1
- package/dist/esm-es5/taro-navigation-bar-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-navigator-core.entry.js +2 -1
- package/dist/esm-es5/taro-navigator-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-official-account-core.entry.js +2 -1
- package/dist/esm-es5/taro-official-account-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-open-data-core.entry.js +2 -1
- package/dist/esm-es5/taro-open-data-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-page-container-core.entry.js +2 -1
- package/dist/esm-es5/taro-page-container-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-page-meta-core.entry.js +2 -1
- package/dist/esm-es5/taro-page-meta-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-picker-core_2.entry.js +2 -1
- package/dist/esm-es5/taro-picker-core_2.entry.js.map +1 -0
- package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +2 -0
- package/dist/esm-es5/taro-picker-view-column-core_2.entry.js.map +1 -0
- package/dist/esm-es5/taro-progress-core.entry.js +2 -1
- package/dist/esm-es5/taro-progress-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-pull-to-refresh.entry.js +2 -1
- package/dist/esm-es5/taro-pull-to-refresh.entry.js.map +1 -0
- package/dist/esm-es5/taro-radio-core_2.entry.js +2 -1
- package/dist/esm-es5/taro-radio-core_2.entry.js.map +1 -0
- package/dist/esm-es5/taro-rich-text-core.entry.js +2 -1
- package/dist/esm-es5/taro-rich-text-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-root-portal-core.entry.js +2 -1
- package/dist/esm-es5/taro-root-portal-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-scroll-view-core.entry.js +2 -1
- package/dist/esm-es5/taro-scroll-view-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-share-element-core.entry.js +2 -1
- package/dist/esm-es5/taro-share-element-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-slider-core.entry.js +2 -1
- package/dist/esm-es5/taro-slider-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-slot-core.entry.js +2 -1
- package/dist/esm-es5/taro-slot-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-swiper-core_2.entry.js +2 -1
- package/dist/esm-es5/taro-swiper-core_2.entry.js.map +1 -0
- package/dist/esm-es5/taro-switch-core.entry.js +2 -1
- package/dist/esm-es5/taro-switch-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-tabbar.entry.js +2 -1
- package/dist/esm-es5/taro-tabbar.entry.js.map +1 -0
- package/dist/esm-es5/taro-text-core.entry.js +2 -1
- package/dist/esm-es5/taro-text-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-textarea-core.entry.js +2 -1
- package/dist/esm-es5/taro-textarea-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-video-control_3.entry.js +56 -55
- package/dist/esm-es5/taro-video-control_3.entry.js.map +1 -0
- package/dist/esm-es5/taro-view-core.entry.js +2 -1
- package/dist/esm-es5/taro-view-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-voip-room-core.entry.js +2 -1
- package/dist/esm-es5/taro-voip-room-core.entry.js.map +1 -0
- package/dist/esm-es5/taro-web-view-core.entry.js +2 -1
- package/dist/esm-es5/taro-web-view-core.entry.js.map +1 -0
- package/{dist-h5/react/components → dist/react/component-lib}/index.js +1 -1
- package/{dist-h5/react/components → dist/react/component-lib}/input.js +5 -5
- package/{dist-h5/react/utils → dist/react/component-lib}/reactify-wc.js +10 -20
- package/dist/react/components.js +65 -0
- package/dist/react/helper.js +13 -0
- package/{dist-h5 → dist}/react/index.js +0 -0
- package/dist/react/react-component-lib/index.js +2 -0
- package/dist/react/react-component-lib/interfaces.js +1 -0
- package/dist/react/react-component-lib/utils/attachProps.js +107 -0
- package/dist/react/react-component-lib/utils/case.js +10 -0
- package/dist/react/react-component-lib/utils/dev.js +12 -0
- package/dist/taro-components/index.esm.js +2 -0
- package/dist/taro-components/index.esm.js.map +1 -0
- package/dist/taro-components/p-001ef419.system.entry.js +2 -0
- package/dist/taro-components/p-001ef419.system.entry.js.map +1 -0
- package/dist/taro-components/{p-a94524c9.system.entry.js → p-057159bc.system.entry.js} +2 -1
- package/dist/taro-components/p-057159bc.system.entry.js.map +1 -0
- package/dist/taro-components/p-07281375.entry.js +2 -0
- package/dist/taro-components/p-07281375.entry.js.map +1 -0
- package/dist/taro-components/p-0a896bc7.entry.js +2 -0
- package/dist/taro-components/p-0a896bc7.entry.js.map +1 -0
- package/dist/taro-components/p-0b38e6c7.system.entry.js +2 -0
- package/dist/taro-components/p-0b38e6c7.system.entry.js.map +1 -0
- package/dist/taro-components/p-0d36ef6b.entry.js +2 -0
- package/dist/taro-components/p-0d36ef6b.entry.js.map +1 -0
- package/dist/taro-components/{p-f81a74bb.system.entry.js → p-0dfbdfdb.system.entry.js} +82 -81
- package/dist/taro-components/p-0dfbdfdb.system.entry.js.map +1 -0
- package/dist/taro-components/p-0ee6a068.entry.js +2 -0
- package/dist/taro-components/p-0ee6a068.entry.js.map +1 -0
- package/dist/taro-components/p-12e4b019.entry.js +2 -0
- package/dist/taro-components/p-12e4b019.entry.js.map +1 -0
- package/dist/taro-components/p-15dced71.system.entry.js +2 -0
- package/dist/taro-components/p-15dced71.system.entry.js.map +1 -0
- package/dist/taro-components/p-15e45ed6.system.js +2 -1
- package/dist/taro-components/p-15e45ed6.system.js.map +1 -0
- package/dist/taro-components/p-17657dca.entry.js +2 -0
- package/dist/taro-components/p-17657dca.entry.js.map +1 -0
- package/dist/taro-components/p-1b2556e2.system.entry.js +2 -0
- package/dist/taro-components/p-1b2556e2.system.entry.js.map +1 -0
- package/dist/taro-components/p-1b64d2a2.entry.js +2 -0
- package/dist/taro-components/p-1b64d2a2.entry.js.map +1 -0
- package/dist/taro-components/p-1bd3d09b.system.entry.js +2 -0
- package/dist/taro-components/p-1bd3d09b.system.entry.js.map +1 -0
- package/dist/taro-components/p-1cb76199.entry.js +2 -0
- package/dist/taro-components/p-1cb76199.entry.js.map +1 -0
- package/dist/taro-components/p-1e436d5b.entry.js +2 -0
- package/dist/taro-components/p-1e436d5b.entry.js.map +1 -0
- package/dist/taro-components/p-2096bc5f.entry.js +2 -0
- package/dist/taro-components/p-2096bc5f.entry.js.map +1 -0
- package/dist/taro-components/p-20ec6387.entry.js +2 -0
- package/dist/taro-components/p-20ec6387.entry.js.map +1 -0
- package/dist/taro-components/{p-c5fd5c7f.system.entry.js → p-21b77a13.system.entry.js} +2 -1
- package/dist/taro-components/p-21b77a13.system.entry.js.map +1 -0
- package/dist/taro-components/p-2243a376.entry.js +2 -0
- package/dist/taro-components/p-2243a376.entry.js.map +1 -0
- package/dist/taro-components/p-22f9f9fa.entry.js +2 -0
- package/dist/taro-components/p-22f9f9fa.entry.js.map +1 -0
- package/dist/taro-components/p-2915c2dd.entry.js +2 -0
- package/dist/taro-components/p-2915c2dd.entry.js.map +1 -0
- package/dist/taro-components/p-29f04296.entry.js +2 -0
- package/dist/taro-components/p-29f04296.entry.js.map +1 -0
- package/dist/taro-components/{p-3e11c8cc.system.entry.js → p-301a8b85.system.entry.js} +2 -1
- package/dist/taro-components/p-301a8b85.system.entry.js.map +1 -0
- package/dist/taro-components/p-3b1d2d37.system.js +2 -1
- package/dist/taro-components/p-3b1d2d37.system.js.map +1 -0
- package/dist/taro-components/p-3b9a1125.entry.js +2 -0
- package/dist/taro-components/p-3b9a1125.entry.js.map +1 -0
- package/dist/taro-components/p-3c256e0e.entry.js +2 -0
- package/dist/taro-components/p-3c256e0e.entry.js.map +1 -0
- package/dist/taro-components/p-3e6b29c6.entry.js +2 -0
- package/dist/taro-components/p-3e6b29c6.entry.js.map +1 -0
- package/dist/taro-components/{p-a63fbc50.system.entry.js → p-439a3349.system.entry.js} +2 -1
- package/dist/taro-components/p-439a3349.system.entry.js.map +1 -0
- package/dist/taro-components/{p-d075934f.system.entry.js → p-45b6ea0c.system.entry.js} +2 -1
- package/dist/taro-components/p-45b6ea0c.system.entry.js.map +1 -0
- package/dist/taro-components/p-49a6cae4.system.entry.js +2 -0
- package/dist/taro-components/p-49a6cae4.system.entry.js.map +1 -0
- package/dist/taro-components/p-4b05e003.entry.js +2 -0
- package/dist/taro-components/p-4b05e003.entry.js.map +1 -0
- package/dist/taro-components/{p-692d986d.system.entry.js → p-4b27df71.system.entry.js} +2 -1
- package/dist/taro-components/p-4b27df71.system.entry.js.map +1 -0
- package/dist/taro-components/{p-f7c80795.system.entry.js → p-4fbb8b4c.system.entry.js} +2 -1
- package/dist/taro-components/p-4fbb8b4c.system.entry.js.map +1 -0
- package/dist/taro-components/p-50ea2036.system.js +2 -1
- package/dist/taro-components/p-50ea2036.system.js.map +1 -0
- package/dist/taro-components/p-51de23e4.entry.js +366 -0
- package/dist/taro-components/p-51de23e4.entry.js.map +1 -0
- package/dist/taro-components/p-55519002.entry.js +2 -0
- package/dist/taro-components/p-55519002.entry.js.map +1 -0
- package/dist/taro-components/p-559bb98a.system.entry.js +2 -0
- package/dist/taro-components/p-559bb98a.system.entry.js.map +1 -0
- package/dist/taro-components/p-570222e2.entry.js +2 -0
- package/dist/taro-components/p-570222e2.entry.js.map +1 -0
- package/dist/taro-components/p-5746d7ce.js +2 -1
- package/dist/taro-components/p-5746d7ce.js.map +1 -0
- package/dist/taro-components/{p-6ad59489.system.entry.js → p-580a72d1.system.entry.js} +2 -1
- package/dist/taro-components/p-580a72d1.system.entry.js.map +1 -0
- package/dist/taro-components/{p-93eed5d7.system.entry.js → p-59418be7.system.entry.js} +2 -1
- package/dist/taro-components/p-59418be7.system.entry.js.map +1 -0
- package/dist/taro-components/p-59e02aca.system.entry.js +2 -0
- package/dist/taro-components/p-59e02aca.system.entry.js.map +1 -0
- package/dist/taro-components/p-5bfefd19.js +3 -0
- package/dist/taro-components/p-5bfefd19.js.map +1 -0
- package/dist/taro-components/p-61f225ef.system.js +2 -1
- package/dist/taro-components/p-61f225ef.system.js.map +1 -0
- package/dist/taro-components/p-663d1bb9.system.js +2 -1
- package/dist/taro-components/p-663d1bb9.system.js.map +1 -0
- package/dist/taro-components/p-6a96da58.js +2 -1
- package/dist/taro-components/p-6a96da58.js.map +1 -0
- package/dist/taro-components/p-6af8be19.entry.js +2 -0
- package/dist/taro-components/p-6af8be19.entry.js.map +1 -0
- package/dist/taro-components/p-6ea2995b.entry.js +2 -0
- package/dist/taro-components/p-6ea2995b.entry.js.map +1 -0
- package/dist/taro-components/p-6f8af69f.entry.js +2 -0
- package/dist/taro-components/p-6f8af69f.entry.js.map +1 -0
- package/dist/taro-components/{p-f4ea8a56.system.entry.js → p-701b0286.system.entry.js} +2 -1
- package/dist/taro-components/p-701b0286.system.entry.js.map +1 -0
- package/dist/taro-components/p-72f327e1.js +2 -1
- package/dist/taro-components/p-72f327e1.js.map +1 -0
- package/dist/taro-components/p-72f626ab.system.entry.js +2 -0
- package/dist/taro-components/p-72f626ab.system.entry.js.map +1 -0
- package/dist/taro-components/p-76724e58.js +3 -2
- package/dist/taro-components/p-76724e58.js.map +1 -0
- package/dist/taro-components/{p-13f0b11f.system.entry.js → p-79e9322e.system.entry.js} +2 -1
- package/dist/taro-components/p-79e9322e.system.entry.js.map +1 -0
- package/dist/taro-components/p-7baff0b4.entry.js +2 -0
- package/dist/taro-components/p-7baff0b4.entry.js.map +1 -0
- package/dist/taro-components/p-8231e748.entry.js +2 -0
- package/dist/taro-components/p-8231e748.entry.js.map +1 -0
- package/dist/taro-components/p-825f8dec.system.entry.js +2 -0
- package/dist/taro-components/p-825f8dec.system.entry.js.map +1 -0
- package/dist/taro-components/{p-07294134.system.entry.js → p-8a3620a6.system.entry.js} +2 -1
- package/dist/taro-components/p-8a3620a6.system.entry.js.map +1 -0
- package/dist/taro-components/p-8a8f286f.system.js +3 -0
- package/dist/taro-components/p-8a8f286f.system.js.map +1 -0
- package/dist/taro-components/{p-7e960ac3.system.entry.js → p-8bec95d4.system.entry.js} +2 -1
- package/dist/taro-components/p-8bec95d4.system.entry.js.map +1 -0
- package/dist/taro-components/{p-e671c8c5.system.entry.js → p-8c8fe164.system.entry.js} +2 -1
- package/dist/taro-components/p-8c8fe164.system.entry.js.map +1 -0
- package/dist/taro-components/p-8e3c923b.entry.js +2 -0
- package/dist/taro-components/p-8e3c923b.entry.js.map +1 -0
- package/dist/taro-components/p-93cc7adc.entry.js +2 -0
- package/dist/taro-components/p-93cc7adc.entry.js.map +1 -0
- package/dist/taro-components/p-946c0799.system.entry.js +2 -0
- package/dist/taro-components/p-946c0799.system.entry.js.map +1 -0
- package/dist/taro-components/p-96a784f1.entry.js +2 -0
- package/dist/taro-components/p-96a784f1.entry.js.map +1 -0
- package/dist/taro-components/p-99bbe34a.system.entry.js +2 -0
- package/dist/taro-components/p-99bbe34a.system.entry.js.map +1 -0
- package/dist/taro-components/{p-075458e5.system.entry.js → p-9f1ca602.system.entry.js} +2 -1
- package/dist/taro-components/p-9f1ca602.system.entry.js.map +1 -0
- package/dist/taro-components/p-a1ace8c7.system.entry.js +2 -0
- package/dist/taro-components/p-a1ace8c7.system.entry.js.map +1 -0
- package/dist/taro-components/p-a29509fa.system.entry.js +2 -0
- package/dist/taro-components/p-a29509fa.system.entry.js.map +1 -0
- package/dist/taro-components/p-a29e3051.entry.js +2 -0
- package/dist/taro-components/p-a29e3051.entry.js.map +1 -0
- package/dist/taro-components/{p-d4da725f.system.entry.js → p-a6f2dc54.system.entry.js} +2 -1
- package/dist/taro-components/p-a6f2dc54.system.entry.js.map +1 -0
- package/dist/taro-components/p-ab105c26.entry.js +2 -0
- package/dist/taro-components/p-ab105c26.entry.js.map +1 -0
- package/dist/taro-components/{p-c93bb915.system.entry.js → p-b04a56bd.system.entry.js} +2 -1
- package/dist/taro-components/p-b04a56bd.system.entry.js.map +1 -0
- package/dist/taro-components/p-b10cb428.entry.js +2 -0
- package/dist/taro-components/p-b10cb428.entry.js.map +1 -0
- package/dist/taro-components/{p-d6662ab3.system.entry.js → p-b500c116.system.entry.js} +2 -1
- package/dist/taro-components/p-b500c116.system.entry.js.map +1 -0
- package/dist/taro-components/p-b832f4e8.entry.js +2 -0
- package/dist/taro-components/p-b832f4e8.entry.js.map +1 -0
- package/dist/taro-components/p-b90926cc.entry.js +2 -0
- package/dist/taro-components/p-b90926cc.entry.js.map +1 -0
- package/dist/taro-components/p-ba743573.entry.js +2 -0
- package/dist/taro-components/p-ba743573.entry.js.map +1 -0
- package/dist/taro-components/p-be3f5ac0.entry.js +2 -0
- package/dist/taro-components/p-be3f5ac0.entry.js.map +1 -0
- package/dist/taro-components/p-beea63a7.entry.js +2 -0
- package/dist/taro-components/p-beea63a7.entry.js.map +1 -0
- package/dist/taro-components/{p-b7681c76.system.entry.js → p-c0e3c822.system.entry.js} +2 -1
- package/dist/taro-components/p-c0e3c822.system.entry.js.map +1 -0
- package/dist/taro-components/p-c3acf0ea.system.entry.js +2 -0
- package/dist/taro-components/p-c3acf0ea.system.entry.js.map +1 -0
- package/dist/taro-components/p-c3bb8fa6.entry.js +2 -0
- package/dist/taro-components/p-c3bb8fa6.entry.js.map +1 -0
- package/dist/taro-components/{p-733cc64a.system.entry.js → p-c4cf58af.system.entry.js} +2 -1
- package/dist/taro-components/p-c4cf58af.system.entry.js.map +1 -0
- package/dist/taro-components/{p-b11aaf69.system.entry.js → p-c5c331bf.system.entry.js} +2 -1
- package/dist/taro-components/p-c5c331bf.system.entry.js.map +1 -0
- package/dist/taro-components/p-ca64c7d4.system.entry.js +2 -0
- package/dist/taro-components/p-ca64c7d4.system.entry.js.map +1 -0
- package/dist/taro-components/p-cb17d8bd.system.js +2 -0
- package/dist/taro-components/p-cb17d8bd.system.js.map +1 -0
- package/dist/taro-components/{p-fc9f4fd7.system.entry.js → p-cbe2436d.system.entry.js} +2 -1
- package/dist/taro-components/p-cbe2436d.system.entry.js.map +1 -0
- package/dist/taro-components/p-cc506879.entry.js +2 -0
- package/dist/taro-components/p-cc506879.entry.js.map +1 -0
- package/dist/taro-components/p-cd6a7eea.entry.js +2 -0
- package/dist/taro-components/p-cd6a7eea.entry.js.map +1 -0
- package/dist/taro-components/p-d4b6f19e.system.entry.js +2 -0
- package/dist/taro-components/p-d4b6f19e.system.entry.js.map +1 -0
- package/dist/taro-components/p-d5579efa.system.entry.js +2 -0
- package/dist/taro-components/p-d5579efa.system.entry.js.map +1 -0
- package/dist/taro-components/p-d619f198.system.entry.js +2 -0
- package/dist/taro-components/p-d619f198.system.entry.js.map +1 -0
- package/dist/taro-components/p-d7ab3e23.system.entry.js +2 -0
- package/dist/taro-components/p-d7ab3e23.system.entry.js.map +1 -0
- package/dist/taro-components/p-d7f4b10f.entry.js +2 -0
- package/dist/taro-components/p-d7f4b10f.entry.js.map +1 -0
- package/dist/taro-components/p-d85b216d.entry.js +2 -0
- package/dist/taro-components/p-d85b216d.entry.js.map +1 -0
- package/dist/taro-components/p-dc75145c.system.entry.js +2 -0
- package/dist/taro-components/p-dc75145c.system.entry.js.map +1 -0
- package/dist/taro-components/p-de762042.entry.js +2 -0
- package/dist/taro-components/p-de762042.entry.js.map +1 -0
- package/dist/taro-components/p-df862d0c.entry.js +2 -0
- package/dist/taro-components/p-df862d0c.entry.js.map +1 -0
- package/dist/taro-components/p-e0d6b00b.entry.js +2 -0
- package/dist/taro-components/p-e0d6b00b.entry.js.map +1 -0
- package/dist/taro-components/p-e25653b4.system.entry.js +2 -0
- package/dist/taro-components/p-e25653b4.system.entry.js.map +1 -0
- package/dist/taro-components/p-e528e0ff.system.entry.js +2 -0
- package/dist/taro-components/p-e528e0ff.system.entry.js.map +1 -0
- package/dist/taro-components/p-e59f999e.entry.js +2 -0
- package/dist/taro-components/p-e59f999e.entry.js.map +1 -0
- package/dist/taro-components/p-e7239faa.system.entry.js +2 -0
- package/dist/taro-components/p-e7239faa.system.entry.js.map +1 -0
- package/dist/taro-components/p-e98c07c3.system.entry.js +2 -0
- package/dist/taro-components/p-e98c07c3.system.entry.js.map +1 -0
- package/dist/taro-components/p-e9abe3e2.entry.js +2 -0
- package/dist/taro-components/p-e9abe3e2.entry.js.map +1 -0
- package/dist/taro-components/{p-8e2b048e.system.entry.js → p-f0d0160d.system.entry.js} +2 -1
- package/dist/taro-components/p-f0d0160d.system.entry.js.map +1 -0
- package/dist/taro-components/p-f273ee4e.entry.js +2 -0
- package/dist/taro-components/p-f273ee4e.entry.js.map +1 -0
- package/dist/taro-components/{p-f2803c2e.system.entry.js → p-f2c75971.system.entry.js} +2 -1
- package/dist/taro-components/p-f2c75971.system.entry.js.map +1 -0
- package/dist/taro-components/p-fc1fe388.entry.js +2 -0
- package/dist/taro-components/p-fc1fe388.entry.js.map +1 -0
- package/dist/taro-components/taro-components.esm.js +2 -1
- package/dist/taro-components/taro-components.esm.js.map +1 -0
- package/dist/taro-components/taro-components.js +2 -1
- package/dist/types/components/input/input.d.ts +1 -1
- package/dist/types/components/movable-area/movable-view.d.ts +3 -3
- package/dist/types/components/progress/progress.d.ts +1 -1
- package/dist/types/components/radio/radio.d.ts +2 -2
- package/dist/types/components/scroll-view/scroll-view.d.ts +1 -1
- package/dist/types/components/slot/slot.d.ts +0 -1
- package/dist/types/components/video/utils.d.ts +1 -1
- package/dist/types/components.d.ts +176 -68
- package/dist/types/stencil-public-runtime.d.ts +20 -4
- package/{dist-h5/vue/components/index.js → dist/vue2/component-lib/components.js} +0 -0
- package/{dist-h5/vue → dist/vue2/component-lib}/createComponent.js +0 -0
- package/{dist-h5/vue → dist/vue2/component-lib}/createFormsComponent.js +0 -0
- package/{dist-h5/vue/components → dist/vue2/component-lib}/icon.js +2 -2
- package/{dist-h5/vue/components → dist/vue2/component-lib}/image.js +2 -2
- package/{dist-h5/vue → dist/vue2/component-lib}/index.js +4 -3
- package/{dist-h5/vue → dist/vue2/component-lib}/mixins/listeners.js +0 -0
- package/{dist-h5/vue → dist/vue2/component-lib}/mixins/refs.js +0 -0
- package/{dist-h5/vue/components → dist/vue2/component-lib}/picker.js +2 -2
- package/{dist-h5/vue/components → dist/vue2/component-lib}/scroll-view.js +2 -2
- package/{dist-h5/vue/components → dist/vue2/component-lib}/text.js +2 -2
- package/dist/vue2/components.js +479 -0
- package/dist/vue2/index.js +26 -0
- package/dist/vue2/vue-component-lib/utils.js +45 -0
- package/{dist-h5/vue3 → dist/vue3/component-lib}/createComponent.js +1 -1
- package/{dist-h5/vue3 → dist/vue3/component-lib}/createFormsComponent.js +0 -0
- package/{dist-h5/vue3 → dist/vue3/component-lib}/forwardRef.js +0 -0
- package/{dist-h5/vue3/components → dist/vue3/component-lib}/icon.js +2 -2
- package/{dist-h5/vue3/components → dist/vue3/component-lib}/image.js +2 -2
- package/{dist-h5/vue3/components → dist/vue3/component-lib}/index.js +2 -2
- package/{dist-h5/vue3/components → dist/vue3/component-lib}/scroll-view.js +2 -2
- package/{dist-h5/vue3/components → dist/vue3/component-lib}/text.js +2 -2
- package/dist/vue3/components.js +64 -0
- package/{dist-h5 → dist}/vue3/index.js +0 -0
- package/dist/vue3/vue-component-lib/utils.js +201 -0
- package/loader/package.json +1 -0
- package/package.json +23 -22
- package/types/Input.d.ts +3 -1
- package/dist/cjs/taro-movable-area-core.cjs.entry.js +0 -157
- package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +0 -95
- package/dist/esm/taro-movable-area-core.entry.js +0 -153
- package/dist/esm/taro-picker-view-column-core.entry.js +0 -91
- package/dist/esm-es5/index-8809c729.js +0 -1
- package/dist/esm-es5/taro-movable-area-core.entry.js +0 -1
- package/dist/esm-es5/taro-movable-view-core.entry.js +0 -1
- package/dist/esm-es5/taro-picker-view-column-core.entry.js +0 -1
- package/dist/esm-es5/taro-picker-view-core.entry.js +0 -1
- package/dist/taro-components/p-028e2728.entry.js +0 -1
- package/dist/taro-components/p-0380841f.system.js +0 -1
- package/dist/taro-components/p-059912fd.js +0 -1
- package/dist/taro-components/p-06178a0c.entry.js +0 -1
- package/dist/taro-components/p-06e6864b.system.entry.js +0 -1
- package/dist/taro-components/p-10c47df8.system.entry.js +0 -1
- package/dist/taro-components/p-232ebfae.system.entry.js +0 -1
- package/dist/taro-components/p-25df0ce9.entry.js +0 -1
- package/dist/taro-components/p-27126803.system.entry.js +0 -1
- package/dist/taro-components/p-275d883f.system.entry.js +0 -1
- package/dist/taro-components/p-27c80869.system.entry.js +0 -1
- package/dist/taro-components/p-2ec47545.entry.js +0 -1
- package/dist/taro-components/p-3255f11f.system.entry.js +0 -1
- package/dist/taro-components/p-362998cf.entry.js +0 -1
- package/dist/taro-components/p-3744e978.entry.js +0 -365
- package/dist/taro-components/p-3c6090fd.entry.js +0 -1
- package/dist/taro-components/p-42630f45.entry.js +0 -1
- package/dist/taro-components/p-44398c17.system.entry.js +0 -1
- package/dist/taro-components/p-44cbb351.system.js +0 -1
- package/dist/taro-components/p-4ada10aa.entry.js +0 -1
- package/dist/taro-components/p-4cf436f9.entry.js +0 -1
- package/dist/taro-components/p-4d826fb7.entry.js +0 -1
- package/dist/taro-components/p-55266a1f.entry.js +0 -1
- package/dist/taro-components/p-56c86512.entry.js +0 -1
- package/dist/taro-components/p-5733124c.entry.js +0 -1
- package/dist/taro-components/p-57a2a441.entry.js +0 -1
- package/dist/taro-components/p-59d93770.entry.js +0 -1
- package/dist/taro-components/p-5a2305e7.entry.js +0 -1
- package/dist/taro-components/p-5a374cb9.entry.js +0 -1
- package/dist/taro-components/p-5c87902f.system.entry.js +0 -1
- package/dist/taro-components/p-5e223bab.system.entry.js +0 -1
- package/dist/taro-components/p-5f18259d.system.entry.js +0 -1
- package/dist/taro-components/p-62fc514e.entry.js +0 -1
- package/dist/taro-components/p-63a0c6b0.entry.js +0 -1
- package/dist/taro-components/p-64447f5a.system.entry.js +0 -1
- package/dist/taro-components/p-67222d90.system.entry.js +0 -1
- package/dist/taro-components/p-6800ac6f.entry.js +0 -1
- package/dist/taro-components/p-6aa557f0.entry.js +0 -1
- package/dist/taro-components/p-72f858e4.entry.js +0 -1
- package/dist/taro-components/p-7374537f.entry.js +0 -1
- package/dist/taro-components/p-7407013d.entry.js +0 -1
- package/dist/taro-components/p-7d329ab0.entry.js +0 -1
- package/dist/taro-components/p-7f93fa08.entry.js +0 -1
- package/dist/taro-components/p-82661d45.system.entry.js +0 -1
- package/dist/taro-components/p-8475421b.system.entry.js +0 -1
- package/dist/taro-components/p-8788dc46.system.entry.js +0 -1
- package/dist/taro-components/p-886571e5.entry.js +0 -1
- package/dist/taro-components/p-888fac99.entry.js +0 -1
- package/dist/taro-components/p-8aea3de3.entry.js +0 -1
- package/dist/taro-components/p-8c8be53b.entry.js +0 -1
- package/dist/taro-components/p-8cf86f31.system.entry.js +0 -1
- package/dist/taro-components/p-9234cc1d.entry.js +0 -1
- package/dist/taro-components/p-92699438.entry.js +0 -1
- package/dist/taro-components/p-9a0e70b1.entry.js +0 -1
- package/dist/taro-components/p-9afbb423.system.entry.js +0 -1
- package/dist/taro-components/p-9b39a940.entry.js +0 -1
- package/dist/taro-components/p-9e1572c5.system.entry.js +0 -1
- package/dist/taro-components/p-ab1256fe.entry.js +0 -1
- package/dist/taro-components/p-ad6ad7e3.system.entry.js +0 -1
- package/dist/taro-components/p-afbcd093.entry.js +0 -1
- package/dist/taro-components/p-b1ae9401.entry.js +0 -1
- package/dist/taro-components/p-b2800ccd.entry.js +0 -1
- package/dist/taro-components/p-b3b677fc.entry.js +0 -1
- package/dist/taro-components/p-b3d961f9.system.entry.js +0 -1
- package/dist/taro-components/p-b60820b4.entry.js +0 -1
- package/dist/taro-components/p-b7639674.entry.js +0 -1
- package/dist/taro-components/p-b7ac0b7f.system.entry.js +0 -1
- package/dist/taro-components/p-b9903f15.system.entry.js +0 -1
- package/dist/taro-components/p-bd706d39.entry.js +0 -1
- package/dist/taro-components/p-c92bafb6.system.entry.js +0 -1
- package/dist/taro-components/p-cf048af9.entry.js +0 -1
- package/dist/taro-components/p-d5f3080c.entry.js +0 -1
- package/dist/taro-components/p-df3b544a.system.entry.js +0 -1
- package/dist/taro-components/p-dff55efd.entry.js +0 -1
- package/dist/taro-components/p-eec00033.entry.js +0 -1
- package/dist/taro-components/p-eeed74e3.system.entry.js +0 -1
- package/dist/taro-components/p-ef006b23.entry.js +0 -1
- package/dist/taro-components/p-f5f1c3b7.system.entry.js +0 -1
- package/dist/taro-components/p-fa2a9bab.entry.js +0 -1
- package/dist/taro-components/p-fec6ac36.entry.js +0 -1
- package/dist/taro-components/p-ff84986d.entry.js +0 -1
- package/dist/taro-components/p-ffefd74f.entry.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r,h as o,H as t}from"./p-5bfefd19.js";import{n as a}from"./p-6a96da58.js";import"@tarojs/taro";const s=class{constructor(o){r(this,o)}componentDidLoad(){a("PageContainer",this)}render(){return o(t,null)}};export{s as taro_page_container_core};
|
|
2
|
+
//# sourceMappingURL=p-0ee6a068.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/page-container/page-container.tsx"],"names":["PageContainer","[object Object]","notSupport","this","h","Host"],"mappings":"4GAOaA,EAAa,+BACxBC,mBACEC,EAAW,gBAAiBC,MAG9BF,SACE,OACEG,EAACC,EAAI","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-page-container-core'\n})\nexport class PageContainer implements ComponentInterface {\n componentDidLoad () {\n notSupport('PageContainer', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r,h as o,H as t}from"./p-5bfefd19.js";import{n as a}from"./p-6a96da58.js";import"@tarojs/taro";const s=class{constructor(o){r(this,o)}componentDidLoad(){a("MatchMedia",this)}render(){return o(t,null)}};export{s as taro_match_media_core};
|
|
2
|
+
//# sourceMappingURL=p-12e4b019.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/match-media/match-media.tsx"],"names":["MatchMedia","[object Object]","notSupport","this","h","Host"],"mappings":"4GAOaA,EAAU,+BACrBC,mBACEC,EAAW,aAAcC,MAG3BF,SACE,OACEG,EAACC,EAAI","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-match-media-core'\n})\nexport class MatchMedia implements ComponentInterface {\n componentDidLoad () {\n notSupport('MatchMedia', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,a){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function o(e){try{c(a.next(e))}catch(e){r(e)}}function s(e){try{c(a["throw"](e))}catch(e){r(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,i,r,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(a)throw new TypeError("Generator is already executing.");while(n)try{if(a=1,i&&(r=o[0]&2?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;if(i=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){n.label=o[1];break}if(o[0]===6&&n.label<r[1]){n.label=r[1];r=o;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(o);break}if(r[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{a=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-8a8f286f.system.js"],(function(e){"use strict";var t,n,a,i,r;return{setters:[function(e){t=e.r;n=e.h;a=e.g;i=e.H;r=e.c}],execute:function(){var o="taro-movable-area-core{display:block;position:relative;width:10px;height:10px}";var s=e("taro_movable_area_core",function(){function e(e){var n=this;t(this,e);this.views=[];this.scaleLength=0;this.viewsChanged=function(){n.views=[];var e=n.element.querySelectorAll("taro-movable-view-core");Array.from(e).forEach((function(e){n.views.push(e)}));n.updateArea()};this.handleTouchStart=function(e){var t=e.touches;if(!t||t.length<=1){return}var a={width:t[1].pageX-t[0].pageX,height:t[1].pageY-t[0].pageY};n.scaleLength=Math.sqrt(a.width*a.width+a.height*a.height);if(n.scaleArea){return}var i=function(e,t){var n=function(e,t){if(!(e=e.parentNode)){return false}return(!(e instanceof HTMLElement)||e!==document.body)&&(e===t||e===t.element||e.element===t||n(e,t))};for(var a=0;a<t.length;a++){var i=t[a];if(e===i["element"]||n(e,i)){return i}}};var r=i(t[0].target,n.views);var o=i(t[1].target,n.views);n.scaleTarget=r&&r===o?r:undefined};this.handleTouchMove=function(e){var t=e.touches;if(!t||t.length<=1){return}e.preventDefault();var a={width:t[1].pageX-t[0].pageX,height:t[1].pageY-t[0].pageY};if(n.scaleLength>0){n.updateScale(Math.sqrt(a.width*a.width+a.height*a.height)/n.scaleLength)}};this.handleTouchEnd=function(e){var t,a;if(e.touches&&e.touches.length||!e.changedTouches){return}n.scaleLength=0;if(n.scaleArea){n.views.forEach((function(e){var t;(t=e["endScale"])===null||t===void 0?void 0:t.call(e)}))}else{(a=(t=n.scaleTarget)===null||t===void 0?void 0:t["endScale"])===null||a===void 0?void 0:a.call(t)}n.scaleTarget=undefined};this.updateScale=function(e){var t,a;if(!e||e===1){return}if(n.scaleArea){n.views.forEach((function(t){var n;(n=t["setScale"])===null||n===void 0?void 0:n.call(t,e)}))}else{(a=(t=n.scaleTarget)===null||t===void 0?void 0:t["setScale"])===null||a===void 0?void 0:a.call(t,e)}};this.updateArea=function(){var e=window.getComputedStyle(n.element);var t=n.element.getBoundingClientRect();var a=["Left","Right"].map((function(t){return parseFloat(e["border"+t+"Width"])+parseFloat(e["padding"+t])}));var i=["Top","Bottom"].map((function(t){return parseFloat(e["border"+t+"Width"])+parseFloat(e["padding"+t])}));n.views.forEach((function(e){var r;(r=e["setParent"])===null||r===void 0?void 0:r.call(e,{element:n.element,area:{height:t.height-i[0]-i[1],width:t.width-a[0]-a[1]}})}))};this.scaleArea=undefined}e.prototype.connectedCallback=function(){var e=this;this.observer=new MutationObserver((function(t){t.forEach((function(t){var n,a;if(t.attributeName==="class"||t.attributeName==="style"){var i=e.element.offsetWidth;var r=e.element.offsetHeight;if(i!==((n=e.offset)===null||n===void 0?void 0:n.width)||r!==((a=e.offset)===null||a===void 0?void 0:a.height)){e.updateArea()}e.offset={width:i,height:r}}}))}));this.observer.observe(this.element,{attributes:true})};e.prototype.disconnectedCallback=function(){var e;(e=this.observer)===null||e===void 0?void 0:e.disconnect()};e.prototype.componentDidLoad=function(){this.viewsChanged()};e.prototype.render=function(){return n(i,{onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd})};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());s.style=o;var c="taro-movable-view-core{display:inline-block;position:absolute;left:0;top:0;width:10px;height:10px}";var l=e("taro_movable_view_core",function(){function e(e){var n=this;t(this,e);this.onChange=r(this,"change",7);this.onScale=r(this,"scale",7);this.onHTouchMove=r(this,"htouchmove",7);this.onVTouchMove=r(this,"vtouchmove",7);this.translateX=0;this.translateY=0;this.origin={x:0,y:0};this.area={width:0,height:0};this.originScale=1;this.currentScale=1;this.width=0;this.height=0;this.minX=0;this.minY=0;this.maxX=0;this.maxY=0;this.baseX=0;this.baseY=0;this.offset={x:0,y:0};this.scaleOffset={x:0,y:0};this.getLimitXY=function(e,t){var a=false;e>n.maxX?(e=n.maxX,a=true):e<n.minX&&(e=n.minX,a=true);t>n.maxY?(t=n.maxY,a=true):t<n.minY&&(t=n.minY,a=true);return{x:e,y:t,outOfBounds:a}};this.animationTo=function(e,t,a,i,r,o,s){if(n.animation){n.setTransform(e,t,a,i,r,o);s===null||s===void 0?void 0:s()}else{n.setTransform(e,t,a,i,r,o)}};this.setTransform=function(e,t,a,i,r,o){e=Number(e.toFixed(1));t=Number(t.toFixed(1));a=Number((a!==null&&a!==void 0?a:n.currentScale).toFixed(3));if(!n.outOfBounds){var s=n.getLimitXY(e,t);e=s.x;t=s.y}var c=function(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)};var l=c(e,n.scaleOffset.x);var u=c(t,n.scaleOffset.y);if(n.translateX!==e||n.translateY!==t){!r&&n.onChange.emit({x:l,y:u,source:i})}if(a!==n.currentScale){o&&n.onScale.emit({scale:a,x:l,y:u})}var h="translateX(".concat(e,"px) translateY(").concat(t,"px) translateZ(0px) scale(").concat(a,")");n.element.style.transform=h;n.element.style.webkitTransform=h;n.translateX=e;n.translateY=t;n.currentScale=a};this.updateOffset=function(){var e=function(t,n){if(t===n||!t.offsetParent){return{left:0,top:0}}var a=e(t.offsetParent,n);return{left:t.offsetLeft+a.left,top:t.offsetTop+a.top}};if(!n.parent){return}var t=e(n.element,n.parent);n.offset.x=t.left;n.offset.y=t.top};this.updateScaleOffset=function(e){if(e===void 0){e=n.currentScale}var t=n.element.getBoundingClientRect();n.height=t.height/n.currentScale;n.width=t.width/n.currentScale;n.scaleOffset.x=(n.width*e-n.width)/2;n.scaleOffset.y=(n.height*e-n.height)/2};this.updateBoundary=function(){var e=0-n.offset.x+n.scaleOffset.x;var t=n.area.width-n.width-n.offset.x-n.scaleOffset.x;n.minX=Math.min(e,t);n.maxX=Math.max(e,t);var a=0-n.offset.y+n.scaleOffset.y;var i=n.area.height-n.height-n.offset.y-n.scaleOffset.y;n.minY=Math.min(a,i);n.maxY=Math.max(a,i)};this.updateScale=function(e,t,a){if(!n.scale){return}var i=n.adjustScale(e);n.updateScaleOffset(i);n.updateBoundary();var r=n.getLimitXY(n.translateX,n.translateY),o=r.x,s=r.y;if(t){n.animationTo(o,s,i,"",true,true,a)}else if(!n.updating){n.updating=true;requestAnimationFrame((function(){n.setTransform(o,s,i,"",true,true);n.updating=false}))}};this.setOriginScale=function(e){n.originScale=e};this.adjustScale=function(e){return Math.min(10,n.scaleMax,Math.max(.5,n.scaleMin,e))};this.handleTouchStart=function(e){var t=e.touches;if(n.disabled||t.length>1||!n.element){return}var a=t[0];n.touching=true;n.firstMoveFireEvent=false;n.origin.x=a.screenX;n.origin.y=a.screenY;n.baseX=n.translateX;n.baseY=n.translateY;n.element.style.willChange="transform"};this.handleTouchMove=function(e){var t=e.touches;if(n.disabled||!n.element||n.scaling||!n.touching||t.length>1){return}e.preventDefault();var a=t[0];var i=a.screenX-n.origin.x;var r=a.screenY-n.origin.y;n.setTransform(n.xMove?i+n.baseX:0,n.yMove?r+n.baseY:0);if(!n.firstMoveFireEvent){n.firstMoveFireEvent=true;var o=Math.abs(i)>Math.abs(r)?n.onHTouchMove:n.onVTouchMove;o.emit({originalEvent:e,bubbles:false,capturePhase:false,composed:true,extraFields:{touches:e.touches||{},changedTouches:e.changedTouches||{}}})}};this.handleTouchEnd=function(e){var t=e.changedTouches[0];if(n.disabled||!n.touching||!t){return}n.touching=false;var a=t.screenX-n.origin.x;var i=t.screenY-n.origin.y;n.setTransform(n.xMove?a+n.baseX:0,n.yMove?i+n.baseY:0)};this.x=0;this.y=0;this.direction="none";this.outOfBounds=false;this.inertia=false;this.friction=2;this.damping=20;this.disabled=false;this.scale=false;this.scaleMin=.5;this.scaleMax=10;this.scaleValue=1;this.animation=true}e.prototype.watchX=function(e){this.setTransform(parseFloat("".concat(e||0)),this.translateY)};e.prototype.watchY=function(e){this.setTransform(this.translateX,parseFloat("".concat(e||0)))};e.prototype.watchScaleMinOrMax=function(){if(!this.scale)return false;this.updateScale(this.currentScale,true);this.setOriginScale(this.currentScale)};e.prototype.watchScaleValue=function(e){if(!this.scale){return false}this.updateScale(e,true);this.setOriginScale(e);return e};e.prototype.setParent=function(e){var t=e.element,n=e.area;return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){e=this.scale?this.scaleValue:1;this.area=n;this.parent=t;this.updateOffset();this.updateScaleOffset(e);this.updateBoundary();this.setTransform(Number(this.x)+this.scaleOffset.x,Number(this.y)+this.scaleOffset.y,e,"",true);this.setOriginScale(e);return[2]}))}))};e.prototype.endScale=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.scaling=false;this.setOriginScale(this.currentScale);return[2]}))}))};e.prototype.setScale=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.scale){return[2]}this.scaling=true;this.updateScale(e*this.originScale);return[2]}))}))};e.prototype.connectedCallback=function(){var e=this;this.observer=new MutationObserver((function(t){t.forEach((function(t){var n=t.attributeName;if(n&&["class","style"].includes(n)){var a=t.oldValue;var i=t.target.getAttribute(n);if(a===i){return}var r=function(e){return e===null||e===void 0?void 0:e.split(";").filter((function(e){return!["transform","will-change"].find((function(t){return e.trim().startsWith(t)}))})).join(";")};if(n==="style"&&r(i)===r(a)){return}e.updateOffset();e.updateScaleOffset();e.updateBoundary();e.setTransform(e.translateX,e.translateY)}}))}));this.observer.observe(this.element,{attributes:true,attributeOldValue:true})};e.prototype.disconnectedCallback=function(){var e;(e=this.observer)===null||e===void 0?void 0:e.disconnect()};e.prototype.componentDidLoad=function(){this.element.style.transformOrigin="center";this.xMove=["horizontal","all"].includes(this.direction);this.yMove=["vertical","all"].includes(this.direction);if(this.friction<=0){this.friction=2}if(this.x||this.y){var e=parseFloat("".concat(this.x||0));var t=parseFloat("".concat(this.y||0));this.setTransform(e,t)}};e.prototype.render=function(){return n(i,{onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd})};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{x:["watchX"],y:["watchY"],scaleMin:["watchScaleMinOrMax"],scaleMax:["watchScaleMinOrMax"],scaleValue:["watchScaleValue"]}},enumerable:false,configurable:true});return e}());l.style=c}}}));
|
|
2
|
+
//# sourceMappingURL=p-15dced71.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/movable-area/area.scss?tag=taro-movable-area-core","src/components/movable-area/movable-area.tsx","src/components/movable-area/view.scss?tag=taro-movable-view-core","src/components/movable-area/movable-view.tsx"],"names":["areaCss","MovableArea","exports","this","views","scaleLength","viewsChanged","_this","elements","element","querySelectorAll","Array","from","forEach","push","updateArea","handleTouchStart","e","touches","length","gap","width","pageX","height","pageY","Math","sqrt","scaleArea","find","target","loop","t","parentNode","HTMLElement","document","body","i","view","touch1","touch2","scaleTarget","undefined","handleTouchMove","preventDefault","updateScale","handleTouchEnd","changedTouches","_a","call","_b","scale","computedStyle","window","getComputedStyle","clientRect","getBoundingClientRect","horizontal","map","parseFloat","vertical","area","class_1","prototype","connectedCallback","observer","MutationObserver","mutations","mutation","attributeName","offsetWidth","offsetHeight","offset","observe","attributes","disconnectedCallback","disconnect","componentDidLoad","render","h","Host","onTouchStart","onTouchMove","onTouchEnd","viewCss","MovableView","translateX","translateY","origin","x","y","originScale","currentScale","minX","minY","maxX","maxY","baseX","baseY","scaleOffset","getLimitXY","outOfBounds","animationTo","source","noEmitChange","emitScale","callback","animation","setTransform","Number","toFixed","limit","subtract","realX","realY","onChange","emit","onScale","transform","concat","style","webkitTransform","updateOffset","parent","offsetParent","left","top","current","offsetLeft","offsetTop","updateScaleOffset","rect","updateBoundary","x1","x2","min","max","y1","y2","animationCallback","adjustScale","_c","updating","requestAnimationFrame","setOriginScale","scaleMax","scaleMin","disabled","touch","touching","firstMoveFireEvent","screenX","screenY","willChange","scaling","xMove","yMove","abs","onHTouchMove","onVTouchMove","originalEvent","bubbles","capturePhase","composed","extraFields","class_2","watchX","newValue","watchY","watchScaleMinOrMax","watchScaleValue","setParent","scaleValue","endScale","setScale","name","includes","oldValue","getAttribute","filter","input","split","item","key","trim","startsWith","join","attributeOldValue","transformOrigin","direction","friction"],"mappings":"2lDAAA,IAAMA,EAAU,qFCMHC,EAAWC,EAAA,yBAAA,8CAYdC,KAAAC,MAA4B,GAI5BD,KAAAE,YAAsB,EAkC9BF,KAAAG,aAAe,WACbC,EAAKH,MAAQ,GACb,IAAMI,EAAWD,EAAKE,QAAQC,iBAAiB,0BAC/CC,MAAMC,KAAKJ,GAAUK,SAAQ,SAACJ,GAC5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SAACG,GAC/B,OAAQ,CAAC,YAAa,eAAezJ,MAAK,SAAC0J,GACzC,OAAOD,EAAKE,OAAOC,WAAWF,SAE/BG,KAAK,MAEV,GAAIX,IAAS,SAAWI,EAAOZ,KAAcY,EAAOF,GAAW,CAC7D,OAGFzK,EAAKkH,eACLlH,EAAK0H,oBACL1H,EAAK4H,iBACL5H,EAAKoG,aAAapG,EAAK8E,WAAY9E,EAAK+E,mBAK9CnF,KAAK6D,SAASQ,QAAQrE,KAAKM,QAAS,CAClCgE,WAAY,KACZiH,kBAAmB,QAIvBtB,EAAAtG,UAAAY,qBAAA,kBACE3B,EAAA5C,KAAK6D,YAAQ,MAAAjB,SAAA,OAAA,EAAAA,EAAE4B,cA+KjByF,EAAAtG,UAAAc,iBAAA,WACEzE,KAAKM,QAAQ8G,MAAMoE,gBAAkB,SAErCxL,KAAKuJ,MAAQ,CAAC,aAAc,OAAOqB,SAAS5K,KAAKyL,WACjDzL,KAAKwJ,MAAQ,CAAC,WAAY,OAAOoB,SAAS5K,KAAKyL,WAC/C,GAAIzL,KAAK0L,UAAY,EAAG,CACtB1L,KAAK0L,SAAW,EAGlB,GAAI1L,KAAKqF,GAAKrF,KAAKsF,EAAG,CACpB,IAAMD,EAAI9B,WAAW,GAAA4D,OAAGnH,KAAKqF,GAAK,IAClC,IAAMC,EAAI/B,WAAW,GAAA4D,OAAGnH,KAAKsF,GAAK,IAClCtF,KAAKwG,aAAanB,EAAGC,KAiEzB2E,EAAAtG,UAAAe,OAAA,WACE,OACEC,EAACC,EAAI,CACHC,aAAc7E,KAAKa,iBACnBiE,YAAa9E,KAAKuC,gBAClBwC,WAAY/E,KAAK0C,sWA3bD","sourcesContent":["taro-movable-area-core {\n display: block;\n position: relative;\n width: 10px;\n height: 10px;\n}\n","import { Component, h, Host, Prop, Element } from '@stencil/core'\n\n@Component({\n tag: 'taro-movable-area-core',\n styleUrl: './area.scss'\n})\nexport class MovableArea {\n\n /** \n * 当里面的 movable-view 设置为支持双指缩放时,设置此值可将缩放手势生效区域修改为整个movable-area\n */\n @Prop() scaleArea: boolean\n\n @Element() element: HTMLElement\n\n /** 观察者 */\n private observer?: MutationObserver\n /** 子元素集合 */\n private views: Array<HTMLElement> = []\n /** 单个元素缩放时的目标元素 */\n private scaleTarget?: HTMLElement\n /** 手势缩放 */\n private scaleLength: number = 0\n /** 宽高 */\n private offset?: { width: number; height: number; }\n\n connectedCallback () {\n this.observer = new MutationObserver((mutations) => {\n mutations.forEach((mutation) => {\n if (mutation.attributeName === \"class\" || mutation.attributeName === \"style\") {\n const offsetWidth = this.element.offsetWidth\n const offsetHeight = this.element.offsetHeight\n if (offsetWidth !== this.offset?.width || offsetHeight !== this.offset?.height) {\n this.updateArea()\n }\n this.offset = {\n width: offsetWidth,\n height: offsetHeight\n }\n }\n })\n })\n\n this.observer.observe(this.element, {\n attributes: true\n })\n }\n\n disconnectedCallback () {\n this.observer?.disconnect()\n }\n\n componentDidLoad () {\n this.viewsChanged()\n }\n\n viewsChanged = () => {\n this.views = []\n const elements = this.element.querySelectorAll('taro-movable-view-core')\n Array.from(elements).forEach((element) => {\n this.views.push(element)\n })\n this.updateArea()\n }\n\n handleTouchStart = (e: TouchEvent) => {\n const touches = e.touches\n if (!touches || touches.length <= 1) {\n return\n }\n\n const gap = {\n width: touches[1].pageX - touches[0].pageX,\n height: touches[1].pageY - touches[0].pageY\n }\n this.scaleLength = Math.sqrt(gap.width * gap.width + gap.height * gap.height)\n if (this.scaleArea) {\n return\n }\n\n const find = (target: EventTarget, views: Array<HTMLElement>) => {\n const loop = (e, t) => {\n if (!(e = e.parentNode)) {\n return false\n }\n return (!(e instanceof HTMLElement) || e !== document.body) && (e === t || e === t.element || e.element === t || loop(e, t))\n }\n\n for (let i = 0; i < views.length; i++) {\n const view = views[i]\n if (target === view[\"element\"] || loop(target, view)) {\n return view\n }\n }\n }\n\n const touch1 = find(touches[0].target, this.views)\n const touch2 = find(touches[1].target, this.views)\n this.scaleTarget = touch1 && touch1 === touch2 ? touch1 : undefined\n }\n\n handleTouchMove = (e: TouchEvent) => {\n const touches = e.touches\n if (!touches || touches.length <= 1) {\n return\n }\n e.preventDefault()\n const gap = {\n width: touches[1].pageX - touches[0].pageX,\n height: touches[1].pageY - touches[0].pageY\n }\n if (this.scaleLength > 0) {\n this.updateScale(Math.sqrt(gap.width * gap.width + gap.height * gap.height) / this.scaleLength)\n }\n }\n\n handleTouchEnd = (e: TouchEvent) => {\n if ((e.touches && e.touches.length) || !e.changedTouches) {\n return\n }\n this.scaleLength = 0\n if (this.scaleArea) {\n this.views.forEach((element) => {\n element[\"endScale\"]?.()\n })\n } else {\n this.scaleTarget?.[\"endScale\"]?.()\n }\n this.scaleTarget = undefined\n }\n\n updateScale = (scale: number) => {\n if (!scale || scale === 1) {\n return\n }\n\n if (this.scaleArea) {\n this.views.forEach((element) => {\n element[\"setScale\"]?.(scale)\n })\n } else {\n this.scaleTarget?.[\"setScale\"]?.(scale)\n }\n }\n\n updateArea = () => {\n const computedStyle = window.getComputedStyle(this.element)\n const clientRect = this.element.getBoundingClientRect()\n const horizontal = [\"Left\", \"Right\"].map((e) => {\n return parseFloat(computedStyle[\"border\" + e + \"Width\"]) + parseFloat(computedStyle[\"padding\" + e])\n })\n const vertical = [\"Top\", \"Bottom\"].map((e) => {\n return parseFloat(computedStyle[\"border\" + e + \"Width\"]) + parseFloat(computedStyle[\"padding\" + e])\n })\n\n this.views.forEach((element) => {\n element[\"setParent\"]?.({\n element: this.element,\n area: {\n height: clientRect.height - vertical[0] - vertical[1],\n width: clientRect.width - horizontal[0] - horizontal[1]\n }\n })\n })\n }\n\n render () {\n return (\n <Host\n onTouchStart={this.handleTouchStart}\n onTouchMove={this.handleTouchMove}\n onTouchEnd={this.handleTouchEnd}\n />\n )\n }\n}\n","taro-movable-view-core {\n display: inline-block;\n position: absolute;\n left: 0;\n top: 0;\n width: 10px;\n height: 10px;\n}\n","import { Component, h, Host, Prop, Event, EventEmitter, Element, Watch, Method } from '@stencil/core'\n\n@Component({\n tag: 'taro-movable-view-core',\n styleUrl: './view.scss'\n})\nexport class MovableView {\n /**\n * 定义x轴方向的偏移,如果x的值不在可移动范围内,会自动移动到可移动范围;改变x的值会触发动画;单位支持px;\n */\n @Prop() x: number | string = 0\n /**\n * 定义y轴方向的偏移,如果y的值不在可移动范围内,会自动移动到可移动范围;改变y的值会触发动画;单位支持px;\n */\n @Prop() y: number | string = 0\n /**\n * 移动方向,属性值有all、vertical、horizontal、none\n */\n @Prop() direction: \"all\" | \"vertical\" | \"horizontal\" | \"none\" = \"none\"\n /**\n * 超过可移动区域后,是否还可以移动\n */\n @Prop() outOfBounds: boolean = false\n /** \n * 是否带有惯性 \n */\n @Prop() inertia: boolean = false\n /**\n * 摩擦系数,用于控制惯性滑动的动画,值越大摩擦力越大,滑动越快停止;必须大于0,否则会被设置成默认值\n */\n @Prop() friction: number = 2\n /**\n * 阻尼系数,用于控制x或y改变时的动画和过界回弹的动画,值越大移动越快\n */\n @Prop() damping: number = 20\n /**\n * 是否禁用\n */\n @Prop() disabled: boolean = false\n /**\n * 是否支持双指缩放,默认缩放手势生效区域是在movable-view内\n */\n @Prop() scale: boolean = false\n /**\n * 定义缩放倍数最小值\n */\n @Prop() scaleMin: number = .5\n /**\n * 定义缩放倍数最大值\n */\n @Prop() scaleMax: number = 10\n /**\n * 定义缩放倍数,取值范围为 0.5 - 10\n */\n @Prop() scaleValue: number = 1\n /**\n * 是否使用动画\n */\n @Prop() animation: boolean = true\n\n /**\n * 拖动过程中触发的事件,event.detail = {x, y, source}\n */\n @Event({\n eventName: 'change'\n }) onChange: EventEmitter\n\n /**\n * 缩放过程中触发的事件,event.detail = {x, y, scale},x和y字段在2.1.0之后支持\n */\n @Event({\n eventName: 'scale'\n }) onScale: EventEmitter\n\n /**\n * 初次手指触摸后移动为横向的移动时触发,如果catch此事件,则意味着touchmove事件也被catch\n */\n @Event({\n eventName: 'htouchmove'\n }) onHTouchMove: EventEmitter\n\n /**\n * 初次手指触摸后移动为纵向的移动时触发,如果catch此事件,则意味着touchmove事件也被catch\n */\n @Event({\n eventName: 'vtouchmove'\n }) onVTouchMove: EventEmitter\n\n @Element() element: HTMLElement\n\n @Watch('x')\n watchX (newValue: number | string) {\n this.setTransform(parseFloat(`${newValue || 0}`), this.translateY)\n }\n\n @Watch('y')\n watchY (newValue: number | string) {\n this.setTransform(this.translateX, parseFloat(`${newValue || 0}`))\n }\n\n @Watch('scaleMin')\n @Watch('scaleMax')\n watchScaleMinOrMax () {\n if (!this.scale) return false\n this.updateScale(this.currentScale, true)\n this.setOriginScale(this.currentScale)\n }\n\n @Watch('scaleValue')\n watchScaleValue (scale) {\n if (!this.scale) {\n return false\n }\n this.updateScale(scale, true)\n this.setOriginScale(scale)\n\n return scale\n }\n\n /**\n * 设置父节点\n */\n @Method()\n async setParent ({ element, area }: { element: HTMLElement, area: { width: number; height: number; } }) {\n const scale = this.scale ? this.scaleValue : 1\n this.area = area\n this.parent = element\n\n this.updateOffset()\n this.updateScaleOffset(scale)\n this.updateBoundary()\n this.setTransform(Number(this.x) + this.scaleOffset.x, Number(this.y) + this.scaleOffset.y, scale, \"\", true)\n this.setOriginScale(scale)\n }\n\n /**\n * 结束缩放\n */\n @Method()\n async endScale () {\n this.scaling = false\n this.setOriginScale(this.currentScale)\n }\n\n /**\n * 更新缩放\n */\n @Method()\n async setScale (scale: number) {\n if (!this.scale) {\n return\n }\n this.scaling = true\n this.updateScale(scale * this.originScale)\n }\n\n connectedCallback () {\n this.observer = new MutationObserver((mutations) => {\n mutations.forEach((mutation) => {\n const name = mutation.attributeName\n if (name && [\"class\", \"style\"].includes(name)) {\n const oldValue = mutation.oldValue\n const newValue = (mutation.target as HTMLElement).getAttribute(name)\n if (oldValue === newValue) {\n return\n }\n const filter = (input: string | null) => {\n return input?.split(\";\").filter((item) => {\n return ![\"transform\", \"will-change\"].find((key) => {\n return item.trim().startsWith(key)\n })\n }).join(\";\")\n }\n if (name === \"style\" && filter(newValue) === filter(oldValue)) {\n return\n }\n\n this.updateOffset()\n this.updateScaleOffset()\n this.updateBoundary()\n this.setTransform(this.translateX, this.translateY)\n }\n })\n })\n\n this.observer.observe(this.element, {\n attributes: true,\n attributeOldValue: true\n })\n }\n\n disconnectedCallback () {\n this.observer?.disconnect()\n }\n\n /** 观察者 */\n private observer?: MutationObserver\n /** 缩放中 */\n private scaling: boolean\n /** 移动中 */\n private touching: boolean\n /** 更新中 */\n private updating: boolean\n /** 水平方向是否可移动 */\n private xMove: boolean\n /** 垂直方向是否可移动 */\n private yMove: boolean\n /** 首次移动方向事件是否已触发 */\n private firstMoveFireEvent: boolean\n /** 当前水平偏移 */\n private translateX: number = 0\n /** 当前垂直偏移 */\n private translateY: number = 0\n /** touch-start 原点 */\n private origin: { x: number; y: number; } = { x: 0, y: 0 }\n /** 父容器大小 */\n private area: { width: number; height: number; } = { width: 0, height: 0 }\n /** 父容器 */\n private parent?: HTMLElement\n /** 原始缩放倍数 */\n private originScale: number = 1\n /** 当前缩放倍数 */\n private currentScale: number = 1\n /** 宽度 */\n private width: number = 0\n /** 高度 */\n private height: number = 0\n /** 移动边界 */\n private minX: number = 0\n private minY: number = 0\n private maxX: number = 0\n private maxY: number = 0\n /** 移动基础位置 */\n private baseX: number = 0\n private baseY: number = 0\n /** 偏移量 */\n private offset: { x: number; y: number; } = { x: 0, y: 0 }\n private scaleOffset: { x: number; y: number; } = { x: 0, y: 0 }\n\n getLimitXY = (x: number, y: number) => {\n let outOfBounds = false\n x > this.maxX ? (x = this.maxX, outOfBounds = true) : x < this.minX && (x = this.minX, outOfBounds = true)\n y > this.maxY ? (y = this.maxY, outOfBounds = true) : y < this.minY && (y = this.minY, outOfBounds = true)\n\n return { x, y, outOfBounds }\n }\n\n animationTo = (x: number, y: number, scale?: number, source?: string, noEmitChange?: boolean, emitScale?: boolean, callback?: () => void) => {\n if (this.animation) {\n this.setTransform(x, y, scale, source, noEmitChange, emitScale)\n callback?.()\n } else {\n this.setTransform(x, y, scale, source, noEmitChange, emitScale)\n }\n }\n\n setTransform = (x: number, y: number, scale?: number, source?: string, noEmitChange?: boolean, emitScale?: boolean) => {\n x = Number(x.toFixed(1))\n y = Number(y.toFixed(1))\n scale = Number((scale ?? this.currentScale).toFixed(3))\n\n if (!this.outOfBounds) {\n const limit = this.getLimitXY(x, y)\n x = limit.x\n y = limit.y\n }\n\n const subtract = (e, t) => {\n return +((1e3 * e - 1e3 * t) / 1e3).toFixed(1)\n }\n\n const realX = subtract(x, this.scaleOffset.x)\n const realY = subtract(y, this.scaleOffset.y)\n if (this.translateX !== x || this.translateY !== y) {\n !noEmitChange && this.onChange.emit({\n x: realX,\n y: realY,\n source\n })\n }\n\n if (scale !== this.currentScale) {\n emitScale && this.onScale.emit({\n scale,\n x: realX,\n y: realY\n })\n }\n\n const transform = `translateX(${x}px) translateY(${y}px) translateZ(0px) scale(${scale})`\n this.element.style.transform = transform\n this.element.style.webkitTransform = transform\n this.translateX = x\n this.translateY = y\n this.currentScale = scale\n }\n\n updateOffset = () => {\n const offset = (element: HTMLElement, parent: HTMLElement): { left: number; top: number; } => {\n if (element === parent || !element.offsetParent) {\n return { left: 0, top: 0 }\n }\n const current = offset(element.offsetParent as HTMLElement, parent)\n return {\n left: element.offsetLeft + current.left,\n top: element.offsetTop + current.top\n }\n }\n\n if (!this.parent) {\n return\n }\n\n const current = offset(this.element, this.parent)\n\n this.offset.x = current.left\n this.offset.y = current.top\n }\n\n updateScaleOffset = (scale: number = this.currentScale) => {\n const rect = this.element.getBoundingClientRect()\n this.height = rect.height / this.currentScale\n this.width = rect.width / this.currentScale\n this.scaleOffset.x = (this.width * scale - this.width) / 2\n this.scaleOffset.y = (this.height * scale - this.height) / 2\n }\n\n updateBoundary = () => {\n const x1 = 0 - this.offset.x + this.scaleOffset.x\n const x2 = this.area.width - this.width - this.offset.x - this.scaleOffset.x\n this.minX = Math.min(x1, x2)\n this.maxX = Math.max(x1, x2)\n const y1 = 0 - this.offset.y + this.scaleOffset.y\n const y2 = this.area.height - this.height - this.offset.y - this.scaleOffset.y\n this.minY = Math.min(y1, y2)\n this.maxY = Math.max(y1, y2)\n }\n\n updateScale = (scale: number, animation?: boolean, animationCallback?: () => void) => {\n if (!this.scale) {\n return\n }\n\n const target = this.adjustScale(scale)\n this.updateScaleOffset(target)\n this.updateBoundary()\n\n const { x, y } = this.getLimitXY(this.translateX, this.translateY)\n if (animation) {\n this.animationTo(x, y, target, \"\", true, true, animationCallback)\n } else if (!this.updating) {\n this.updating = true\n requestAnimationFrame(() => {\n this.setTransform(x, y, target, \"\", true, true)\n this.updating = false\n })\n }\n }\n\n setOriginScale = (scale: number) => {\n this.originScale = scale\n }\n\n adjustScale = (scale: number) => {\n return Math.min(10, this.scaleMax, Math.max(.5, this.scaleMin, scale))\n }\n\n componentDidLoad () {\n this.element.style.transformOrigin = \"center\"\n\n this.xMove = [\"horizontal\", \"all\"].includes(this.direction)\n this.yMove = [\"vertical\", \"all\"].includes(this.direction)\n if (this.friction <= 0) {\n this.friction = 2\n }\n\n if (this.x || this.y) {\n const x = parseFloat(`${this.x || 0}`)\n const y = parseFloat(`${this.y || 0}`)\n this.setTransform(x, y)\n }\n }\n\n handleTouchStart = (e: TouchEvent) => {\n const touches = e.touches\n if (this.disabled || touches.length > 1 || !this.element) {\n return\n }\n const touch = touches[0]\n\n this.touching = true\n this.firstMoveFireEvent = false\n this.origin.x = touch.screenX\n this.origin.y = touch.screenY\n\n this.baseX = this.translateX\n this.baseY = this.translateY\n\n this.element.style.willChange = \"transform\"\n }\n\n handleTouchMove = (e: TouchEvent) => {\n const touches = e.touches\n if (this.disabled || !this.element || this.scaling || !this.touching || touches.length > 1) {\n return\n }\n e.preventDefault()\n\n const touch = touches[0]\n\n const x = touch.screenX - this.origin.x\n const y = touch.screenY - this.origin.y\n\n this.setTransform(this.xMove ? (x + this.baseX) : 0, this.yMove ? (y + this.baseY) : 0)\n\n if (!this.firstMoveFireEvent) {\n this.firstMoveFireEvent = true\n const onTouchMove = Math.abs(x) > Math.abs(y) ? this.onHTouchMove : this.onVTouchMove\n onTouchMove.emit({\n originalEvent: e,\n bubbles: false,\n capturePhase: false,\n composed: true,\n extraFields: {\n touches: e.touches || {},\n changedTouches: e.changedTouches || {}\n }\n })\n }\n }\n\n handleTouchEnd = (e: TouchEvent) => {\n const touch = e.changedTouches[0]\n if (this.disabled || !this.touching || !touch) {\n return\n }\n this.touching = false\n\n const x = touch.screenX - this.origin.x\n const y = touch.screenY - this.origin.y\n\n this.setTransform(this.xMove ? (x + this.baseX) : 0, this.yMove ? (y + this.baseY) : 0)\n }\n\n render () {\n return (\n <Host\n onTouchStart={this.handleTouchStart}\n onTouchMove={this.handleTouchMove}\n onTouchEnd={this.handleTouchEnd}\n />\n )\n }\n}\n"]}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
System.register(["@tarojs/taro"],(function(t){"use strict";var e;return{setters:[function(t){e=t.default}],execute:function(){t("n",r);function r(t,r){if(t===void 0){t=""}if(r===void 0){r={}}console.error("H5 暂不支持 "
|
|
1
|
+
System.register(["@tarojs/taro"],(function(t){"use strict";var e;return{setters:[function(t){e=t.default}],execute:function(){t("n",r);function r(t,r){if(t===void 0){t=""}if(r===void 0){r={}}console.error("H5 暂不支持 ".concat(t," 组件!"));e.eventCenter.trigger("__taroNotSupport",{name:t,instance:r,type:"component",category:"temporarily"})}}}}));
|
|
2
|
+
//# sourceMappingURL=p-15e45ed6.system.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/utils/helper.ts"],"names":["notSupport","name","instance","console","error","concat","Taro","eventCenter","trigger","type","category"],"mappings":"gJAEgBA,EAAYC,EAAWC,GAAX,GAAAD,SAAA,EAAA,CAAAA,EAAA,GAAW,GAAAC,SAAA,EAAA,CAAAA,EAAA,GACrCC,QAAQC,MAAM,WAAAC,OAAWJ,EAAI,SAE7BK,EAAKC,YAAYC,QAAQ,mBAAoB,CAC3CP,KAAIA,EACJC,SAAQA,EACRO,KAAM,YACNC,SAAU","sourcesContent":["import Taro from '@tarojs/taro'\n\nexport function notSupport (name = '', instance = {}) {\n console.error(`H5 暂不支持 ${name} 组件!`)\n\n Taro.eventCenter.trigger('__taroNotSupport', {\n name,\n instance,\n type: 'component',\n category: 'temporarily',\n })\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as s,h as i,g as o}from"./p-5bfefd19.js";const e="taro-canvas-core{display:block;position:relative;width:300px;height:150px}";const h=500;const a=class{constructor(i){t(this,i);this.onLongTap=s(this,"longtap",7);this.onTouchStart=()=>{this.timer=setTimeout((()=>{this.onLongTap.emit()}),h)};this.onTouchMove=()=>{clearTimeout(this.timer)};this.onTouchEnd=()=>{clearTimeout(this.timer)};this.canvasId=undefined;this.nativeProps={}}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 o(this)}};a.style=e;export{a as taro_canvas_core};
|
|
2
|
+
//# sourceMappingURL=p-17657dca.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/canvas/style/index.scss?tag=taro-canvas-core","src/components/canvas/canvas.tsx"],"names":["indexCss","LONG_TAP_DELAY","Canvas","this","onTouchStart","timer","setTimeout","onLongTap","emit","onTouchMove","clearTimeout","onTouchEnd","[object Object]","canvasId","nativeProps","h","Object","assign","canvas-id","style","width","height"],"mappings":"yDAAA,MAAMA,EAAW,6ECEjB,MAAMC,EAAiB,UAMVC,EAAM,kEAcjBC,KAAAC,aAAe,KACbD,KAAKE,MAAQC,YAAW,KACtBH,KAAKI,UAAUC,SACdP,IAGLE,KAAAM,YAAc,KACZC,aAAaP,KAAKE,QAGpBF,KAAAQ,WAAa,KACXD,aAAaP,KAAKE,iDArBE,GAwBtBO,SACE,MAAMC,SAAEA,EAAQC,YAAEA,GAAgBX,KAElC,OACEY,EAAA,SAAAC,OAAAC,OAAA,CAAAC,YACaL,EACXM,MAAO,CACLC,MAAO,OACPC,OAAQ,QAEVjB,aAAcD,KAAKC,aACnBK,YAAaN,KAAKM,YAClBE,WAAYR,KAAKQ,YACbG","sourcesContent":["taro-canvas-core {\r\n display: block;\r\n position: relative;\r\n width: 300px;\r\n height: 150px;\r\n}\r\n","import { Component, h, ComponentInterface, Prop, Element, Event } from '@stencil/core'\n\nconst LONG_TAP_DELAY = 500\n\n@Component({\n tag: 'taro-canvas-core',\n styleUrl: './style/index.scss'\n})\nexport class Canvas implements ComponentInterface {\n private timer: ReturnType<typeof setTimeout>\n\n @Prop() canvasId: string\n @Prop() nativeProps = {}\n\n @Element() el: HTMLElement\n\n @Event({\n eventName: 'longtap'\n })\n\n onLongTap\n\n onTouchStart = () => {\n this.timer = setTimeout(() => {\n this.onLongTap.emit()\n }, LONG_TAP_DELAY)\n }\n\n onTouchMove = () => {\n clearTimeout(this.timer)\n }\n\n onTouchEnd = () => {\n clearTimeout(this.timer)\n }\n\n render () {\n const { canvasId, nativeProps } = this\n\n return (\n <canvas\n canvas-id={canvasId}\n style={{\n width: '100%',\n height: '100%'\n }}\n onTouchStart={this.onTouchStart}\n onTouchMove={this.onTouchMove}\n onTouchEnd={this.onTouchEnd}\n {...nativeProps}\n />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./p-8a8f286f.system.js"],(function(e){"use strict";var t,i,n,o;return{setters:[function(e){t=e.r;i=e.c;n=e.h;o=e.g}],execute:function(){var s="taro-switch-core{display:inline-block;width:52px;height:32px}taro-switch-core .weui-switch{display:block;width:100%;height:100%}";var r=e("taro_switch_core",function(){function e(e){var n=this;t(this,e);this.onChange=i(this,"change",7);this.switchChange=function(e){e.stopPropagation();var t=e.target.checked;n.isChecked=t;n.onChange.emit({value:t})};this.type="switch";this.checked=false;this.color="#04BE02";this.name=undefined;this.disabled=false;this.nativeProps={};this.isChecked=undefined;this.isWillLoadCalled=false}e.prototype.function=function(e,t){if(!this.isWillLoadCalled)return;if(e!==t)this.isChecked=e};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true;this.isChecked=this.checked};e.prototype.componentDidLoad=function(){var e=this;Object.defineProperty(this.el,"value",{get:function(){return e.isChecked},configurable:true})};e.prototype.render=function(){var e=this,t=e.type,i=e.color,o=e.isChecked,s=e.name,r=e.disabled,c=e.nativeProps;var a=o?{borderColor:i||"04BE02",backgroundColor:i||"04BE02"}:{};return n("input",Object.assign({type:"checkbox",class:"weui-".concat(t),style:a,checked:o,name:s,disabled:r,onChange:this.switchChange},c))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["function"]}},enumerable:false,configurable:true});return e}());r.style=s}}}));
|
|
2
|
+
//# sourceMappingURL=p-1b2556e2.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/switch/style/index.scss?tag=taro-switch-core","src/components/switch/switch.tsx"],"names":["indexCss","Switch","exports","this","switchChange","e","stopPropagation","value","target","checked","_this","isChecked","onChange","emit","class_1","prototype","function","newVal","oldVal","isWillLoadCalled","componentWillLoad","componentDidLoad","Object","defineProperty","el","get","configurable","render","_a","type","color","name","disabled","nativeProps","style","borderColor","backgroundColor","h","assign","class","concat"],"mappings":"0JAAA,IAAMA,EAAW,uICMJC,EAAMC,EAAA,mBAAA,+EAoCjBC,KAAAC,aAAe,SAAAC,GACbA,EAAEC,kBACF,IAAMC,EAAQF,EAAEG,OAAOC,QACvBC,EAAKC,UAAYJ,EACjBG,EAAKE,SAASC,KAAK,CACjBN,MAAKA,eAxCM,sBACG,iBACF,4CAEG,uBACG,kDAGM,MAK5BO,EAAAC,UAAAC,SAAA,SAAUC,EAAiBC,GACzB,IAAKf,KAAKgB,iBAAkB,OAC5B,GAAIF,IAAWC,EAAQf,KAAKQ,UAAYM,GAQ1CH,EAAAC,UAAAK,kBAAA,WACEjB,KAAKgB,iBAAmB,KACxBhB,KAAKQ,UAAYR,KAAKM,SAGxBK,EAAAC,UAAAM,iBAAA,WAAA,IAAAX,EAAAP,KACEmB,OAAOC,eAAepB,KAAKqB,GAAI,QAAS,CACtCC,IAAK,WAAM,OAAAf,EAAKC,WAChBe,aAAc,QAalBZ,EAAAC,UAAAY,OAAA,WACQ,IAAAC,EAOFzB,KANF0B,EAAID,EAAAC,KACJC,EAAKF,EAAAE,MACLnB,EAASiB,EAAAjB,UACToB,EAAIH,EAAAG,KACJC,EAAQJ,EAAAI,SACRC,EAAWL,EAAAK,YAGb,IAAMC,EAAQvB,EACV,CACAwB,YAAaL,GAAS,SACtBM,gBAAiBN,GAAS,UAE1B,GAEJ,OACEO,EAAA,QAAAf,OAAAgB,OAAA,CACET,KAAK,WACLU,MAAO,QAAAC,OAAQX,GACfK,MAAOA,EACPzB,QAASE,EACToB,KAAMA,EACNC,SAAUA,EACVpB,SAAUT,KAAKC,cACX6B,gPAvEO","sourcesContent":["taro-switch-core {\n display: inline-block;\n width: 52px;\n height: 32px;\n\n .weui-switch {\n display: block;\n width: 100%;\n height: 100%;\n }\n}\n","import { Component, h, ComponentInterface, Prop, State, Event, EventEmitter, Watch, Element } from '@stencil/core'\n\n@Component({\n tag: 'taro-switch-core',\n styleUrl: './style/index.scss'\n})\nexport class Switch implements ComponentInterface {\n @Prop() type = 'switch'\n @Prop() checked = false\n @Prop() color = '#04BE02'\n @Prop() name: string\n @Prop() disabled = false\n @Prop() nativeProps = {}\n\n @State() isChecked: boolean\n @State() isWillLoadCalled = false\n\n @Element() el: HTMLElement\n\n @Watch('checked')\n function (newVal: boolean, oldVal: boolean) {\n if (!this.isWillLoadCalled) return\n if (newVal !== oldVal) this.isChecked = newVal\n }\n\n @Event({\n eventName: 'change'\n })\n onChange: EventEmitter\n\n componentWillLoad () {\n this.isWillLoadCalled = true\n this.isChecked = this.checked\n }\n\n componentDidLoad () {\n Object.defineProperty(this.el, 'value', {\n get: () => this.isChecked,\n configurable: true\n })\n }\n\n switchChange = e => {\n e.stopPropagation()\n const value = e.target.checked\n this.isChecked = value\n this.onChange.emit({\n value\n })\n }\n\n render () {\n const {\n type,\n color,\n isChecked,\n name,\n disabled,\n nativeProps\n } = this\n\n const style = isChecked\n ? {\n borderColor: color || '04BE02',\n backgroundColor: color || '04BE02'\n }\n : {}\n\n return (\n <input\n type='checkbox'\n class={`weui-${type}`}\n style={style}\n checked={isChecked}\n name={name}\n disabled={disabled}\n onChange={this.switchChange}\n {...nativeProps}\n />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r,c as o,h as s}from"./p-5bfefd19.js";const t="iframe{border:none}.taro-webview{position:fixed;top:0;bottom:0;z-index:999;width:100%;height:100%}";const e=class{constructor(s){r(this,s);this.onLoad=o(this,"load",7);this.onError=o(this,"error",7);this.src=undefined}render(){const{src:r,onLoad:o,onError:t}=this;return s("iframe",{class:"taro-webview",onLoad:s=>{s.stopPropagation();o.emit({src:r})},onError:o=>{o.stopPropagation();t.emit({src:r})},src:r})}};e.style=t;export{e as taro_web_view_core};
|
|
2
|
+
//# sourceMappingURL=p-1b64d2a2.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/web-view/style/index.scss?tag=taro-web-view-core","src/components/web-view/web-view.tsx"],"names":["indexCss","WebView","[object Object]","src","onLoad","onError","this","h","class","e","stopPropagation","emit"],"mappings":"6CAAA,MAAMA,EAAW,2GCMJC,EAAO,8GAalBC,SACE,MAAMC,IACJA,EAAGC,OACHA,EAAMC,QACNA,GACEC,KACJ,OACEC,EAAA,SAAA,CACEC,MAAM,eACNJ,OAASK,IACPA,EAAEC,kBACFN,EAAOO,KAAK,CAAER,IAAAA,KAEhBE,QAAUI,IACRA,EAAEC,kBACFL,EAAQM,KAAK,CAAER,IAAAA,KAEjBA,IAAKA","sourcesContent":["iframe {\n border: none;\n}\n\n.taro-webview {\n position: fixed;\n top: 0;\n bottom: 0;\n z-index: 999;\n width: 100%;\n height: 100%;\n}\n","import { Component, h, ComponentInterface, Prop, Event, EventEmitter } from '@stencil/core'\n\n@Component({\n tag: 'taro-web-view-core',\n styleUrl: './style/index.scss'\n})\nexport class WebView implements ComponentInterface {\n @Prop() src: string\n\n @Event({\n eventName: 'load'\n })\n onLoad: EventEmitter\n\n @Event({\n eventName: 'error'\n })\n onError: EventEmitter\n\n render () {\n const {\n src,\n onLoad,\n onError\n } = this\n return (\n <iframe\n class='taro-webview'\n onLoad={(e: Event) => {\n e.stopPropagation()\n onLoad.emit({ src })\n }}\n onError={(e: Event) => {\n e.stopPropagation()\n onError.emit({ src })\n }}\n src={src}\n />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./p-8a8f286f.system.js"],(function(t){"use strict";var n,e,o,i;return{setters:[function(t){n=t.r;e=t.c;o=t.h;i=t.g}],execute:function(){var r="taro-canvas-core{display:block;position:relative;width:300px;height:150px}";var s=500;var a=t("taro_canvas_core",function(){function t(t){var o=this;n(this,t);this.onLongTap=e(this,"longtap",7);this.onTouchStart=function(){o.timer=setTimeout((function(){o.onLongTap.emit()}),s)};this.onTouchMove=function(){clearTimeout(o.timer)};this.onTouchEnd=function(){clearTimeout(o.timer)};this.canvasId=undefined;this.nativeProps={}}t.prototype.render=function(){var t=this,n=t.canvasId,e=t.nativeProps;return o("canvas",Object.assign({"canvas-id":n,style:{width:"100%",height:"100%"},onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd},e))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());a.style=r}}}));
|
|
2
|
+
//# sourceMappingURL=p-1bd3d09b.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/canvas/style/index.scss?tag=taro-canvas-core","src/components/canvas/canvas.tsx"],"names":["indexCss","LONG_TAP_DELAY","Canvas","exports","this","onTouchStart","_this","timer","setTimeout","onLongTap","emit","onTouchMove","clearTimeout","onTouchEnd","class_1","prototype","render","_a","canvasId","nativeProps","h","Object","assign","canvas-id","style","width","height"],"mappings":"0JAAA,IAAMA,EAAW,6ECEjB,IAAMC,EAAiB,QAMVC,EAAMC,EAAA,mBAAA,iFAcjBC,KAAAC,aAAe,WACbC,EAAKC,MAAQC,YAAW,WACtBF,EAAKG,UAAUC,SACdT,IAGLG,KAAAO,YAAc,WACZC,aAAaN,EAAKC,QAGpBH,KAAAS,WAAa,WACXD,aAAaN,EAAKC,iDArBE,GAwBtBO,EAAAC,UAAAC,OAAA,WACQ,IAAAC,EAA4Bb,KAA1Bc,EAAQD,EAAAC,SAAEC,EAAWF,EAAAE,YAE7B,OACEC,EAAA,SAAAC,OAAAC,OAAA,CAAAC,YACaL,EACXM,MAAO,CACLC,MAAO,OACPC,OAAQ,QAEVrB,aAAcD,KAAKC,aACnBM,YAAaP,KAAKO,YAClBE,WAAYT,KAAKS,YACbM,0HAzCO","sourcesContent":["taro-canvas-core {\r\n display: block;\r\n position: relative;\r\n width: 300px;\r\n height: 150px;\r\n}\r\n","import { Component, h, ComponentInterface, Prop, Element, Event } from '@stencil/core'\n\nconst LONG_TAP_DELAY = 500\n\n@Component({\n tag: 'taro-canvas-core',\n styleUrl: './style/index.scss'\n})\nexport class Canvas implements ComponentInterface {\n private timer: ReturnType<typeof setTimeout>\n\n @Prop() canvasId: string\n @Prop() nativeProps = {}\n\n @Element() el: HTMLElement\n\n @Event({\n eventName: 'longtap'\n })\n\n onLongTap\n\n onTouchStart = () => {\n this.timer = setTimeout(() => {\n this.onLongTap.emit()\n }, LONG_TAP_DELAY)\n }\n\n onTouchMove = () => {\n clearTimeout(this.timer)\n }\n\n onTouchEnd = () => {\n clearTimeout(this.timer)\n }\n\n render () {\n const { canvasId, nativeProps } = this\n\n return (\n <canvas\n canvas-id={canvasId}\n style={{\n width: '100%',\n height: '100%'\n }}\n onTouchStart={this.onTouchStart}\n onTouchMove={this.onTouchMove}\n onTouchEnd={this.onTouchEnd}\n {...nativeProps}\n />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r,h as o,H as s}from"./p-5bfefd19.js";import{n as a}from"./p-6a96da58.js";import"@tarojs/taro";const t=class{constructor(o){r(this,o)}componentDidLoad(){a("KeyboardAccessory",this)}render(){return o(s,null)}};export{t as taro_keyboard_accessory_core};
|
|
2
|
+
//# sourceMappingURL=p-1cb76199.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/keyboard-accessory/keyboard-accessory.tsx"],"names":["KeyboardAccessory","[object Object]","notSupport","this","h","Host"],"mappings":"4GAOaA,EAAiB,+BAC5BC,mBACEC,EAAW,oBAAqBC,MAGlCF,SACE,OACEG,EAACC,EAAI","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-keyboard-accessory-core'\n})\nexport class KeyboardAccessory implements ComponentInterface {\n componentDidLoad () {\n notSupport('KeyboardAccessory', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/slot/slot.tsx"],"names":["Slot","[object Object]","h","Host"],"mappings":"mDAKaA,EAAI,+BACfC,SACE,OACEC,EAACC,EAAI","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\n@Component({\n tag: 'taro-slot-core'\n})\nexport class Slot implements ComponentInterface {\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,h as t,H as s}from"./p-5bfefd19.js";import{c as r}from"./p-76724e58.js";const o="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}";const c=class{constructor(t){e(this,t);this.selectable=false}render(){const e=r({"taro-text__selectable":this.selectable});return t(s,{class:e},t("slot",null))}};c.style=o;export{c as taro_text_core};
|
|
2
|
+
//# sourceMappingURL=p-2096bc5f.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/text/style/index.scss?tag=taro-text-core","src/components/text/text.tsx"],"names":["indexCss","Text","[object Object]","cls","classNames","taro-text__selectable","this","selectable","h","Host","class"],"mappings":"sFAAA,MAAMA,EAAW,6PCOJC,EAAI,+CACM,MAErBC,SACE,MAAMC,EAAMC,EAAW,CACrBC,wBAAyBC,KAAKC,aAEhC,OACEC,EAACC,EAAI,CAACC,MAAOP,GACXK,EAAA,OAAA","sourcesContent":["taro-text-core {\n display: inline;\n user-select: none;\n white-space: pre-wrap;\n}\n\n.taro-text__selectable {\n user-select: text;\n}\n","import { Component, Prop, h, ComponentInterface, Host } from '@stencil/core'\nimport classNames from 'classnames'\n\n@Component({\n tag: 'taro-text-core',\n styleUrl: './style/index.scss'\n})\nexport class Text implements ComponentInterface {\n @Prop() selectable = false\n\n render () {\n const cls = classNames({\n 'taro-text__selectable': this.selectable\n })\n return (\n <Host class={cls}>\n <slot></slot>\n </Host>\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r,h as o,H as t}from"./p-5bfefd19.js";import{n as a}from"./p-6a96da58.js";import"@tarojs/taro";const s=class{constructor(o){r(this,o)}componentDidLoad(){a("LivePlayer",this)}render(){return o(t,null)}};export{s as taro_live_player_core};
|
|
2
|
+
//# sourceMappingURL=p-20ec6387.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/live-player/live-player.tsx"],"names":["LivePlayer","[object Object]","notSupport","this","h","Host"],"mappings":"4GAOaA,EAAU,+BACrBC,mBACEC,EAAW,aAAcC,MAG3BF,SACE,OACEG,EAACC,EAAI","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-live-player-core'\n})\nexport class LivePlayer implements ComponentInterface {\n componentDidLoad () {\n notSupport('LivePlayer', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-8a8f286f.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,o,r;return{setters:[function(t){n=t.r;e=t.h;o=t.H},function(t){r=t.n},function(){}],execute:function(){var i=t("taro_functional_page_navigator_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){r("FunctionalPageNavigator",this)};t.prototype.render=function(){return e(o,null)};return t}())}}}));
|
|
2
|
+
//# sourceMappingURL=p-21b77a13.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/functional-page-navigator/functional-page-navigator.tsx"],"names":["FunctionalPageNavigator","exports","class_1","prototype","componentDidLoad","notSupport","this","render","h","Host"],"mappings":"gOAOaA,EAAuBC,EAAA,sCAAA,mCAClCC,EAAAC,UAAAC,iBAAA,WACEC,EAAW,0BAA2BC,OAGxCJ,EAAAC,UAAAI,OAAA,WACE,OACEC,EAACC,EAAI,gBAPyB","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-functional-page-navigator-core'\n})\nexport class FunctionalPageNavigator implements ComponentInterface {\n componentDidLoad () {\n notSupport('FunctionalPageNavigator', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as s,h as e,g as i}from"./p-5bfefd19.js";const h="taro-switch-core{display:inline-block;width:52px;height:32px}taro-switch-core .weui-switch{display:block;width:100%;height:100%}";const c=class{constructor(e){t(this,e);this.onChange=s(this,"change",7);this.switchChange=t=>{t.stopPropagation();const s=t.target.checked;this.isChecked=s;this.onChange.emit({value:s})};this.type="switch";this.checked=false;this.color="#04BE02";this.name=undefined;this.disabled=false;this.nativeProps={};this.isChecked=undefined;this.isWillLoadCalled=false}function(t,s){if(!this.isWillLoadCalled)return;if(t!==s)this.isChecked=t}componentWillLoad(){this.isWillLoadCalled=true;this.isChecked=this.checked}componentDidLoad(){Object.defineProperty(this.el,"value",{get:()=>this.isChecked,configurable:true})}render(){const{type:t,color:s,isChecked:i,name:h,disabled:c,nativeProps:o}=this;const n=i?{borderColor:s||"04BE02",backgroundColor:s||"04BE02"}:{};return e("input",Object.assign({type:"checkbox",class:`weui-${t}`,style:n,checked:i,name:h,disabled:c,onChange:this.switchChange},o))}get el(){return i(this)}static get watchers(){return{checked:["function"]}}};c.style=h;export{c as taro_switch_core};
|
|
2
|
+
//# sourceMappingURL=p-2243a376.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/switch/style/index.scss?tag=taro-switch-core","src/components/switch/switch.tsx"],"names":["indexCss","Switch","this","switchChange","e","stopPropagation","value","target","checked","isChecked","onChange","emit","[object Object]","newVal","oldVal","isWillLoadCalled","Object","defineProperty","el","get","configurable","type","color","name","disabled","nativeProps","style","borderColor","backgroundColor","h","assign","class"],"mappings":"yDAAA,MAAMA,EAAW,yICMJC,EAAM,gEAoCjBC,KAAAC,aAAeC,IACbA,EAAEC,kBACF,MAAMC,EAAQF,EAAEG,OAAOC,QACvBN,KAAKO,UAAYH,EACjBJ,KAAKQ,SAASC,KAAK,CACjBL,MAAAA,eAxCW,sBACG,iBACF,4CAEG,uBACG,kDAGM,MAK5BM,SAAUC,EAAiBC,GACzB,IAAKZ,KAAKa,iBAAkB,OAC5B,GAAIF,IAAWC,EAAQZ,KAAKO,UAAYI,EAQ1CD,oBACEV,KAAKa,iBAAmB,KACxBb,KAAKO,UAAYP,KAAKM,QAGxBI,mBACEI,OAAOC,eAAef,KAAKgB,GAAI,QAAS,CACtCC,IAAK,IAAMjB,KAAKO,UAChBW,aAAc,OAalBR,SACE,MAAMS,KACJA,EAAIC,MACJA,EAAKb,UACLA,EAASc,KACTA,EAAIC,SACJA,EAAQC,YACRA,GACEvB,KAEJ,MAAMwB,EAAQjB,EACV,CACAkB,YAAaL,GAAS,SACtBM,gBAAiBN,GAAS,UAE1B,GAEJ,OACEO,EAAA,QAAAb,OAAAc,OAAA,CACET,KAAK,WACLU,MAAO,QAAQV,IACfK,MAAOA,EACPlB,QAASC,EACTc,KAAMA,EACNC,SAAUA,EACVd,SAAUR,KAAKC,cACXsB","sourcesContent":["taro-switch-core {\n display: inline-block;\n width: 52px;\n height: 32px;\n\n .weui-switch {\n display: block;\n width: 100%;\n height: 100%;\n }\n}\n","import { Component, h, ComponentInterface, Prop, State, Event, EventEmitter, Watch, Element } from '@stencil/core'\n\n@Component({\n tag: 'taro-switch-core',\n styleUrl: './style/index.scss'\n})\nexport class Switch implements ComponentInterface {\n @Prop() type = 'switch'\n @Prop() checked = false\n @Prop() color = '#04BE02'\n @Prop() name: string\n @Prop() disabled = false\n @Prop() nativeProps = {}\n\n @State() isChecked: boolean\n @State() isWillLoadCalled = false\n\n @Element() el: HTMLElement\n\n @Watch('checked')\n function (newVal: boolean, oldVal: boolean) {\n if (!this.isWillLoadCalled) return\n if (newVal !== oldVal) this.isChecked = newVal\n }\n\n @Event({\n eventName: 'change'\n })\n onChange: EventEmitter\n\n componentWillLoad () {\n this.isWillLoadCalled = true\n this.isChecked = this.checked\n }\n\n componentDidLoad () {\n Object.defineProperty(this.el, 'value', {\n get: () => this.isChecked,\n configurable: true\n })\n }\n\n switchChange = e => {\n e.stopPropagation()\n const value = e.target.checked\n this.isChecked = value\n this.onChange.emit({\n value\n })\n }\n\n render () {\n const {\n type,\n color,\n isChecked,\n name,\n disabled,\n nativeProps\n } = this\n\n const style = isChecked\n ? {\n borderColor: color || '04BE02',\n backgroundColor: color || '04BE02'\n }\n : {}\n\n return (\n <input\n type='checkbox'\n class={`weui-${type}`}\n style={style}\n checked={isChecked}\n name={name}\n disabled={disabled}\n onChange={this.switchChange}\n {...nativeProps}\n />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as s,h as i,H as o,g as l}from"./p-5bfefd19.js";import{c as r}from"./p-76724e58.js";import{d as e}from"./p-5746d7ce.js";const c="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}";function h(t,s,i){if(t===s||typeof t!=="number"){return}const o=s-t;const l=500;const r=Date.now();const e=s>=t;function c(t,s,i,o){return i*t/o+s}function h(){t=c(Date.now()-r,t,o,l);if(e&&t>=s||!e&&s>=t){i(s);return}i(t);requestAnimationFrame(h)}h()}const n=class{constructor(i){t(this,i);this.onScroll=s(this,"scroll",3);this.onScrollToUpper=s(this,"scrolltoupper",3);this.onScrollToLower=s(this,"scrolltolower",3);this.upperAndLower=e((()=>{const{offsetWidth:t,offsetHeight:s,scrollLeft:i,scrollTop:o,scrollHeight:l,scrollWidth:r}=this.el;const e=Number(this.lowerThreshold);const c=Number(this.upperThreshold);if(!isNaN(e)&&(this.scrollY&&s+o+e>=l||this.scrollX&&t+i+e>=r)){this.onScrollToLower.emit({direction:this.scrollX?"right":this.scrollY?"bottom":""})}if(!isNaN(c)&&(this.scrollY&&o<=c||this.scrollX&&i<=c)){this.onScrollToUpper.emit({direction:this.scrollX?"left":this.scrollY?"top":""})}}),200);this.scrollX=false;this.scrollY=false;this.upperThreshold=50;this.lowerThreshold=50;this.mpScrollTop=undefined;this.mpScrollLeft=undefined;this.mpScrollIntoView=undefined;this.scrollWithAnimation=false}watchScrollLeft(t){const s=Number(t);if(this.scrollX&&!isNaN(s)&&s!==this._scrollLeft){if(this.scrollWithAnimation){h(this._scrollLeft,s,(t=>this.el.scrollLeft=t))}else{this.el.scrollLeft=s}this._scrollLeft=s}}watchScrollTop(t){const s=Number(t);if(this.scrollY&&!isNaN(s)&&s!==this._scrollTop){if(this.scrollWithAnimation){h(this._scrollTop,s,(t=>this.el.scrollTop=t))}else{this.el.scrollTop=s}this._scrollTop=s}}watchScrollIntoView(t){var s;if(typeof t==="string"&&t){(s=document.querySelector(`#${t}`))===null||s===void 0?void 0:s.scrollIntoView({behavior:"smooth",block:"center",inline:"start"})}}handleScroll(t){if(t instanceof CustomEvent)return;const{scrollLeft:s,scrollTop:i,scrollHeight:o,scrollWidth:l}=this.el;this._scrollLeft=s;this._scrollTop=i;this.upperAndLower();this.onScroll.emit({scrollLeft:s,scrollTop:i,scrollHeight:o,scrollWidth:l});t.cancelBubble=true}componentDidLoad(){const{scrollY:t,scrollX:s,scrollWithAnimation:i}=this;const o=Number(this.mpScrollTop);const l=Number(this.mpScrollLeft);if(t&&!isNaN(o)){if(i){h(0,o,(t=>this.el.scrollTop=t))}else{this.el.scrollTop=o}this._scrollTop=o}if(s&&!isNaN(l)){if(i){h(0,l,(t=>this.el.scrollLeft=t))}else{this.el.scrollLeft=l}this._scrollLeft=l}}render(){const{scrollX:t,scrollY:s}=this;const l=r({"taro-scroll-view__scroll-x":t,"taro-scroll-view__scroll-y":s});return i(o,{class:l},i("slot",null))}get el(){return l(this)}static get watchers(){return{mpScrollLeft:["watchScrollLeft"],mpScrollTop:["watchScrollTop"],mpScrollIntoView:["watchScrollIntoView"]}}};n.style=c;export{n as taro_scroll_view_core};
|
|
2
|
+
//# sourceMappingURL=p-22f9f9fa.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/scroll-view/style/index.scss?tag=taro-scroll-view-core","src/components/scroll-view/scroll-view.tsx"],"names":["indexCss","easeOutScroll","from","to","callback","change","dur","sTime","Date","now","isLarger","linear","t","b","c","d","step","requestAnimationFrame","ScrollView","this","upperAndLower","debounce","offsetWidth","offsetHeight","scrollLeft","scrollTop","scrollHeight","scrollWidth","el","lowerThreshold","Number","upperThreshold","isNaN","scrollY","scrollX","onScrollToLower","emit","direction","onScrollToUpper","[object Object]","newVal","_scrollLeft","scrollWithAnimation","pos","_scrollTop","_a","document","querySelector","scrollIntoView","behavior","block","inline","e","CustomEvent","onScroll","cancelBubble","mpScrollTop","mpScrollLeft","cls","classNames","taro-scroll-view__scroll-x","taro-scroll-view__scroll-y","h","Host","class"],"mappings":"wIAAA,MAAMA,EAAW,wQCKjB,SAASC,EAAeC,EAAcC,EAAYC,GAChD,GAAIF,IAASC,UAAaD,IAAS,SAAU,CAC3C,OAGF,MAAMG,EAASF,EAAKD,EACpB,MAAMI,EAAM,IACZ,MAAMC,EAAQC,KAAKC,MACnB,MAAMC,EAAWP,GAAMD,EAEvB,SAASS,EAAQC,EAAWC,EAAWC,EAAWC,GAChD,OAAOD,EAAIF,EAAIG,EAAIF,EAGrB,SAASG,IACPd,EAAOS,EAAOH,KAAKC,MAAQF,EAAOL,EAAMG,EAAQC,GAChD,GAAKI,GAAYR,GAAQC,IAASO,GAAYP,GAAMD,EAAO,CACzDE,EAASD,GACT,OAEFC,EAASF,GACTe,sBAAsBD,GAGxBA,UAOWE,EAAU,8JAmIrBC,KAAAC,cAAgBC,GAAS,KACvB,MAAMC,YACJA,EAAWC,aACXA,EAAYC,WACZA,EAAUC,UACVA,EAASC,aACTA,EAAYC,YACZA,GACER,KAAKS,GAET,MAAMC,EAAiBC,OAAOX,KAAKU,gBACnC,MAAME,EAAiBD,OAAOX,KAAKY,gBAEnC,IACGC,MAAMH,KACLV,KAAKc,SAAWV,EAAeE,EAAYI,GAAkBH,GAC9DP,KAAKe,SAAWZ,EAAcE,EAAaK,GAAkBF,GAC9D,CACAR,KAAKgB,gBAAgBC,KAAK,CACxBC,UAAWlB,KAAKe,QAAU,QAAWf,KAAKc,QAAU,SAAW,KAInE,IACGD,MAAMD,KACLZ,KAAKc,SAAWR,GAAaM,GAC9BZ,KAAKe,SAAWV,GAAcO,G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MAAMhC,EAAaM,OAAOX,KAAKsC,cAE/B,GAAIxB,IAAYD,MAAMP,GAAY,CAChC,GAAIiB,EAAqB,CACvBzC,EAAc,EAAGwB,GAAWkB,GAAQxB,KAAKS,GAAGH,UAAYkB,QACnD,CACLxB,KAAKS,GAAGH,UAAYA,EAEtBN,KAAKyB,WAAanB,EAGpB,GAAIS,IAAYF,MAAMR,GAAa,CACjC,GAAIkB,EAAqB,CACvBzC,EAAc,EAAGuB,GAAYmB,GAAQxB,KAAKS,GAAGJ,WAAamB,QACrD,CACLxB,KAAKS,GAAGJ,WAAaA,EAEvBL,KAAKsB,YAAcjB,GAsCvBe,SACE,MAAML,QACJA,EAAOD,QACPA,GACEd,KAEJ,MAAMuC,EAAMC,EAAW,CACrBC,6BAA8B1B,EAC9B2B,6BAA8B5B,IAEhC,OACE6B,EAACC,EAAI,CAACC,MAAON,GACXI,EAAA,OAAA","sourcesContent":["taro-scroll-view-core {\n display: block;\n width: 100%;\n -webkit-overflow-scrolling: auto;\n\n &::-webkit-scrollbar {\n display: none;\n }\n}\n\n.taro-scroll-view {\n &__scroll-x {\n overflow-x: scroll;\n overflow-y: hidden;\n }\n\n &__scroll-y {\n overflow-x: hidden;\n overflow-y: scroll;\n }\n}\n","import { Component, h, ComponentInterface, Prop, Event, EventEmitter, Watch, Element, Host, Listen } from '@stencil/core'\nimport classNames from 'classnames'\n\nimport { debounce } from '../../utils'\n\nfunction easeOutScroll (from: number, to: number, callback) {\n if (from === to || typeof from !== 'number') {\n return\n }\n\n const change = to - from\n const dur = 500\n const sTime = Date.now()\n const isLarger = to >= from\n\n function linear (t: number, b: number, c: number, d: number): number {\n return c * t / d + b\n }\n\n function step () {\n from = linear(Date.now() - sTime, from, change, dur)\n if ((isLarger && from >= to) || (!isLarger && to >= from)) {\n callback(to)\n return\n }\n callback(from)\n requestAnimationFrame(step)\n }\n\n step()\n}\n\n@Component({\n tag: 'taro-scroll-view-core',\n styleUrl: './style/index.scss'\n})\nexport class ScrollView implements ComponentInterface {\n private _scrollLeft: number\n private _scrollTop: number\n\n @Element() el: HTMLElement\n\n @Prop() scrollX = false\n @Prop() scrollY = false\n @Prop() upperThreshold: number | string = 50\n @Prop() lowerThreshold: number | string = 50\n @Prop({ attribute: 'scroll-top', reflect: true }) mpScrollTop: number | string\n @Prop({ attribute: 'scroll-left', reflect: true }) mpScrollLeft: number | string\n @Prop({ attribute: 'scroll-into-view', reflect: true }) mpScrollIntoView: string\n @Prop() scrollWithAnimation = false\n\n @Event({\n eventName: 'scroll',\n bubbles: false\n })\n onScroll: EventEmitter\n\n @Event({\n eventName: 'scrolltoupper',\n bubbles: false\n })\n onScrollToUpper: EventEmitter\n\n @Event({\n eventName: 'scrolltolower',\n bubbles: false\n })\n onScrollToLower: EventEmitter\n\n @Watch('mpScrollLeft')\n watchScrollLeft (newVal) {\n const scrollLeft = Number(newVal)\n if (\n this.scrollX &&\n !isNaN(scrollLeft) &&\n scrollLeft !== this._scrollLeft\n ) {\n if (this.scrollWithAnimation) {\n easeOutScroll(this._scrollLeft, scrollLeft, pos => (this.el.scrollLeft = pos))\n } else {\n this.el.scrollLeft = scrollLeft\n }\n this._scrollLeft = scrollLeft\n }\n }\n\n @Watch('mpScrollTop')\n watchScrollTop (newVal) {\n const scrollTop = Number(newVal)\n if (\n this.scrollY &&\n !isNaN(scrollTop) &&\n scrollTop !== this._scrollTop\n ) {\n if (this.scrollWithAnimation) {\n easeOutScroll(this._scrollTop, scrollTop, pos => (this.el.scrollTop = pos))\n } else {\n this.el.scrollTop = scrollTop\n }\n this._scrollTop = scrollTop\n }\n }\n\n @Watch('mpScrollIntoView')\n watchScrollIntoView (newVal) {\n if (typeof newVal === 'string' && newVal) {\n document.querySelector(`#${newVal}`)?.scrollIntoView({\n behavior: 'smooth',\n block: 'center',\n inline: 'start'\n })\n }\n }\n\n @Listen('scroll', { capture: true })\n handleScroll (e: Event) {\n if (e instanceof CustomEvent) return\n\n const {\n scrollLeft,\n scrollTop,\n scrollHeight,\n scrollWidth\n } = this.el\n this._scrollLeft = scrollLeft\n this._scrollTop = scrollTop\n\n this.upperAndLower()\n\n this.onScroll.emit({\n scrollLeft,\n scrollTop,\n scrollHeight,\n scrollWidth\n })\n e.cancelBubble = true\n }\n\n componentDidLoad () {\n const {\n scrollY,\n scrollX,\n scrollWithAnimation\n } = this\n\n const scrollTop = Number(this.mpScrollTop)\n const scrollLeft = Number(this.mpScrollLeft)\n\n if (scrollY && !isNaN(scrollTop)) {\n if (scrollWithAnimation) {\n easeOutScroll(0, scrollTop, pos => (this.el.scrollTop = pos))\n } else {\n this.el.scrollTop = scrollTop\n }\n this._scrollTop = scrollTop\n }\n\n if (scrollX && !isNaN(scrollLeft)) {\n if (scrollWithAnimation) {\n easeOutScroll(0, scrollLeft, pos => (this.el.scrollLeft = pos))\n } else {\n this.el.scrollLeft = scrollLeft\n }\n this._scrollLeft = scrollLeft\n }\n }\n\n upperAndLower = debounce(() => {\n const {\n offsetWidth,\n offsetHeight,\n scrollLeft,\n scrollTop,\n scrollHeight,\n scrollWidth\n } = this.el\n\n const lowerThreshold = Number(this.lowerThreshold)\n const upperThreshold = Number(this.upperThreshold)\n\n if (\n !isNaN(lowerThreshold) &&\n ((this.scrollY && offsetHeight + scrollTop + lowerThreshold >= scrollHeight) ||\n (this.scrollX && offsetWidth + scrollLeft + lowerThreshold >= scrollWidth))\n ) {\n this.onScrollToLower.emit({\n direction: this.scrollX ? 'right' : (this.scrollY ? 'bottom' : '')\n })\n }\n\n if (\n !isNaN(upperThreshold) &&\n ((this.scrollY && scrollTop <= upperThreshold) ||\n (this.scrollX && scrollLeft <= upperThreshold))\n ) {\n this.onScrollToUpper.emit({\n direction: this.scrollX ? 'left' : (this.scrollY ? 'top' : '')\n })\n }\n }, 200)\n\n render () {\n const {\n scrollX,\n scrollY\n } = this\n\n const cls = classNames({\n 'taro-scroll-view__scroll-x': scrollX,\n 'taro-scroll-view__scroll-y': scrollY\n })\n return (\n <Host class={cls}>\n <slot />\n </Host>\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as s,h as i,H as h,g as e}from"./p-5bfefd19.js";const n=class{constructor(i){t(this,i);this.onChange=s(this,"change",7);this.onChanging=s(this,"changing",7);this.handleTouchStart=t=>{if(this.touching||this.disabled)return;this.touching=true;this.touchId=t.targetTouches[0].identifier;this.totalWidth=this.sliderInsRef.clientWidth;this.ogX=t.targetTouches[0].pageX;this.ogPercent=this.percent};this.handleTouchMove=t=>{const{disabled:s,touching:i,touchId:h,totalWidth:e,max:n,min:a,ogX:o,ogPercent:l}=this;if(!i||s)return;if(t.targetTouches[0].identifier!==h)return;t.preventDefault();const r=t.targetTouches[0].pageX;const c=r-o;let u=c/e*100+l;u=Math.max(0,Math.min(u,100));const d=a+u*.01*(n-a);this.updateByStep(d);this.onChanging.emit({detail:t.detail,value:this.val})};this.handleTouchEnd=t=>{const{disabled:s,touching:i}=this;if(!i||s)return;if(this.percent!==this.ogPercent){this.onChange.emit({detail:t.detail,value:this.val})}this.touching=false;this.touchId=null;this.ogX=0;this.ogPercent=0};this.min=0;this.max=100;this.step=1;this.disabled=false;this.value=0;this.activeColor="#1aad19";this.backgroundColor="#e9e9e9";this.blockSize=28;this.blockColor="#ffffff";this.showValue=false;this.name="";this.val=undefined;this.totalWidth=0;this.touching=false;this.ogX=0;this.touchId=null;this.percent=0;this.ogPercent=undefined;this.isWillLoadCalled=false}function(t){if(!this.isWillLoadCalled)return;const{max:s,min:i}=this;if(t!==null&&t!==this.val){const h=Math.max(i,Math.min(t,s));this.updateByStep(h)}}componentDidLoad(){Object.defineProperty(this.el,"value",{get:()=>this.val,set:t=>this.value=t,configurable:true});this.handler.addEventListener("touchstart",this.handleTouchStart);this.handler.addEventListener("touchmove",this.handleTouchMove);this.handler.addEventListener("touchend",this.handleTouchEnd)}componentDidUpdate(){this.value=null}componentWillLoad(){this.isWillLoadCalled=true;const{value:t,max:s,min:i}=this;if(t===null)return;const h=Math.max(i,Math.min(t,s));this.updateByStep(h)}updateByStep(t){const{max:s,min:i,step:h}=this;const e=Math.floor((s-i)/h);for(let s=0;s<=e;s++){const n=i+h*s;const a=s===e?null:i+h*(s+1);if(t===n)break;if(!a&&t>n){t=n}if(a&&t>n&&t<a){if(t-n<h/2){t=n}else{t=a}break}}const n=(t-i)/(s-i)*100;this.val=t;this.percent=n}render(){const{showValue:t,backgroundColor:s,activeColor:e,blockColor:n,name:a,percent:o,val:l}=this;let r=this.blockSize;const c={backgroundColor:s};const u=o>100?100:o;const d={width:`${u}%`,backgroundColor:e};if(r<12){r=12}if(r>28){r=28}const f={left:`${u}%`,width:`${r}px`,height:`${r}px`,backgroundColor:n,marginTop:`-${Math.floor(r/2)}px`,marginLeft:`-${Math.floor(r/2)}px`};return i(h,{class:"weui-slider-box"},i("div",{class:"weui-slider"},i("div",{class:"weui-slider__inner",style:c,ref:t=>this.sliderInsRef=t},i("div",{style:d,class:"weui-slider__track"}),i("div",{class:"weui-slider__handler",ref:t=>{if(t)this.handler=t},style:f}),i("input",{type:"hidden",name:a,value:l}))),t&&i("div",{class:"weui-slider-box__value"},l))}get el(){return e(this)}static get watchers(){return{value:["function"]}}};export{n as taro_slider_core};
|
|
2
|
+
//# sourceMappingURL=p-2915c2dd.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/slider/slider.tsx"],"names":["Slider","this","handleTouchStart","e","touching","disabled","touchId","targetTouches","identifier","totalWidth","sliderInsRef","clientWidth","ogX","pageX","ogPercent","percent","handleTouchMove","max","min","preventDefault","diffX","Math","val","updateByStep","onChanging","emit","detail","value","handleTouchEnd","onChange","[object Object]","newVal","isWillLoadCalled","Object","defineProperty","el","get","set","configurable","handler","addEventListener","step","steps","floor","i","current","next","showValue","backgroundColor","activeColor","blockColor","name","blockSize","innerStyles","percentage","trackStyles","width","handlerStyles","left","height","marginTop","marginLeft","h","Host","class","style","ref","c","dom","type"],"mappings":"sEAKaA,EAAM,qGA2EjBC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,MAAM/B,GAAWY,EAAQT,IAAQD,EAAMC,GAAO,IAE9CjB,KAAKqB,IAAMK,EACX1B,KAAKc,QAAUA,EAGjBe,SACE,MAAMiB,UACJA,EAASC,gBACTA,EAAeC,YACfA,EAAWC,WACXA,EAAUC,KACVA,EAAIpC,QACJA,EAAOO,IACPA,GACErB,KACJ,IAAImD,EAAYnD,KAAKmD,UAErB,MAAMC,EAAc,CAAEL,gBAAAA,GACtB,MAAMM,EAAavC,EAAU,IAAM,IAAMA,EACzC,MAAMwC,EAAc,CAClBC,MAAO,GAAGF,KACVN,gBAAiBC,GAGnB,GAAIG,EAAY,GAAI,CAClBA,EAAY,GAEd,GAAIA,EAAY,GAAI,CAClBA,EAAY,GAGd,MAAMK,EAAgB,CACpBC,KAAM,GAAGJ,KACTE,MAAO,GAAGJ,MACVO,OAAQ,GAAGP,MACXJ,gBAAiBE,EACjBU,UAAW,IAAIvC,KAAKsB,MAAMS,EAAY,OACtCS,WAAY,IAAIxC,KAAKsB,MAAMS,EAAY,QAEzC,OACEU,EAACC,EAAI,CAACC,MAAM,mBACVF,EAAA,MAAA,CAAKE,MAAM,eACTF,EAAA,MAAA,CAAKE,MAAM,qBAAqBC,MAAOZ,EAAaa,IAAKC,GAAMlE,KAAKS,aAAeyD,GACjFL,EAAA,MAAA,CAAKG,MAAOV,EAAaS,MAAM,uBAC/BF,EAAA,MAAA,CACEE,MAAM,uBACNE,IAAKE,IACH,GAAIA,EAAKnE,KAAKsC,QAAU6B,GAE1BH,MAAOR,IAETK,EAAA,QAAA,CAAOO,KAAK,SAASlB,KAAMA,EAAMxB,MAAOL,MAG3CyB,GAAae,EAAA,MAAA,CAAKE,MAAM,0BAA0B1C","sourcesContent":["import { Component, h, ComponentInterface, Prop, Event, EventEmitter, State, Watch, Host, Element } from '@stencil/core'\n\n@Component({\n tag: 'taro-slider-core'\n})\nexport class Slider implements ComponentInterface {\n private sliderInsRef: HTMLDivElement\n private handler: HTMLDivElement\n\n @Element() el: HTMLElement\n\n @Prop() min = 0\n @Prop() max = 100\n @Prop() step = 1\n @Prop() disabled = false\n @Prop({ mutable: true }) value: number | null = 0\n @Prop() activeColor = '#1aad19'\n @Prop() backgroundColor = '#e9e9e9'\n @Prop() blockSize = 28\n @Prop() blockColor = '#ffffff'\n @Prop() showValue = false\n @Prop() name = ''\n\n @State() val: number\n @State() totalWidth = 0\n @State() touching = false\n @State() ogX = 0\n @State() touchId: number | null = null\n @State() percent = 0\n @State() ogPercent: number\n @State() isWillLoadCalled = false\n\n @Watch('value')\n function (newVal) {\n if (!this.isWillLoadCalled) return\n const { max, min } = this\n if (newVal !== null && newVal !== this.val) {\n const val = Math.max(min, Math.min(newVal, max))\n this.updateByStep(val)\n }\n }\n\n componentDidLoad () {\n Object.defineProperty(this.el, 'value', {\n get: () => this.val,\n set: value => (this.value = value),\n configurable: true\n })\n\n // 在自动化测试时,如果通过 JSX 绑定 touch 事件,\n // 模拟的 touch 事件只会在浏览器的 device mode 下触发,Karma 跑的测试就会跪。\n // 因此改为 didLoad 后 addEventListener 的形式。\n this.handler.addEventListener('touchstart', this.handleTouchStart)\n this.handler.addEventListener('touchmove', this.handleTouchMove)\n this.handler.addEventListener('touchend', this.handleTouchEnd)\n }\n\n componentDidUpdate () {\n this.value = null\n }\n\n @Event({\n eventName: 'change'\n })\n onChange: EventEmitter\n\n @Event({\n eventName: 'changing'\n })\n onChanging: EventEmitter\n\n componentWillLoad () {\n this.isWillLoadCalled = true\n const { value, max, min } = this\n if (value === null) return\n\n const val = Math.max(min, Math.min(value, max))\n this.updateByStep(val)\n }\n\n handleTouchStart = (e: TouchEvent) => {\n if (this.touching || this.disabled) return\n\n this.touching = true\n this.touchId = e.targetTouches[0].identifier\n this.totalWidth = this.sliderInsRef.clientWidth\n this.ogX = e.targetTouches[0].pageX\n this.ogPercent = this.percent\n }\n\n handleTouchMove = (e: TouchEvent) => {\n const {\n disabled,\n touching,\n touchId,\n totalWidth,\n max,\n min,\n ogX,\n ogPercent\n } = this\n if (!touching || disabled) return\n if (e.targetTouches[0].identifier !== touchId) return\n\n // 阻止默认事件\n e.preventDefault()\n\n const pageX = e.targetTouches[0].pageX\n const diffX = pageX - ogX\n\n let percent = diffX / totalWidth * 100 + ogPercent\n percent = Math.max(0, Math.min(percent, 100))\n const val = min + percent * 0.01 * (max - min)\n\n this.updateByStep(val)\n\n this.onChanging.emit({\n detail: e.detail,\n value: this.val\n })\n }\n\n handleTouchEnd = (e: TouchEvent) => {\n const { disabled, touching } = this\n if (!touching || disabled) return\n\n if (this.percent !== this.ogPercent) {\n this.onChange.emit({\n detail: e.detail,\n value: this.val\n })\n }\n\n this.touching = false\n this.touchId = null\n this.ogX = 0\n this.ogPercent = 0\n }\n\n // 根据步长 step 修改 value\n updateByStep (value: number) {\n const { max, min, step } = this\n const steps = Math.floor((max - min) / step)\n for (let i = 0; i <= steps; i++) {\n const current = min + step * i\n const next = i === steps ? null : min + step * (i + 1)\n\n if (value === current) break\n\n if (!next && value > current) {\n // step 不能被 max - min 整除\n value = current\n }\n\n if (next && value > current && value < next) {\n if (value - current < step / 2) {\n value = current\n } else {\n value = next\n }\n break\n }\n }\n\n const percent = (value - min) / (max - min) * 100\n\n this.val = value\n this.percent = percent\n }\n\n render () {\n const {\n showValue,\n backgroundColor,\n activeColor,\n blockColor,\n name,\n percent,\n val\n } = this\n let blockSize = this.blockSize\n\n const innerStyles = { backgroundColor }\n const percentage = percent > 100 ? 100 : percent\n const trackStyles = {\n width: `${percentage}%`,\n backgroundColor: activeColor\n }\n\n if (blockSize < 12) {\n blockSize = 12\n }\n if (blockSize > 28) {\n blockSize = 28\n }\n\n const handlerStyles = {\n left: `${percentage}%`,\n width: `${blockSize}px`,\n height: `${blockSize}px`,\n backgroundColor: blockColor,\n marginTop: `-${Math.floor(blockSize / 2)}px`,\n marginLeft: `-${Math.floor(blockSize / 2)}px`\n }\n return (\n <Host class='weui-slider-box'>\n <div class='weui-slider'>\n <div class='weui-slider__inner' style={innerStyles} ref={c => (this.sliderInsRef = c!)}>\n <div style={trackStyles} class='weui-slider__track' />\n <div\n class='weui-slider__handler'\n ref={dom => {\n if (dom) this.handler = dom\n }}\n style={handlerStyles}\n />\n <input type='hidden' name={name} value={val} />\n </div>\n </div>\n {showValue && <div class='weui-slider-box__value'>{val}</div>}\n </Host>\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as s,h as o,H as r}from"./p-5bfefd19.js";const t=class{constructor(o){s(this,o);this.percent=0;this.showInfo=false;this.borderRadius=0;this.fontSize=16;this.strokeWidth=6;this.activeColor="#09BB07";this.backgroundColor="#EBEBEB";this.active=false}render(){const{percent:s,showInfo:t,borderRadius:e,fontSize:i,strokeWidth:n,activeColor:a,backgroundColor:c,active:h}=this;const l=s>100?100:s<0?0:s;const d={height:n+"px",backgroundColor:c};const p=h?"width 1s ease-in-out":"none";const u={width:`${l}%`,transition:p,WebkitTransition:p,backgroundColor:a,borderRadius:e?`${e}px`:"0px"};return o(r,{class:"weui-progress"},o("div",{class:"weui-progress__bar",style:d},o("div",{class:"weui-progress__inner-bar",style:u})),t&&o("div",{class:"weui-progress__opr",style:{"font-size":`${i}px`}},o("span",null,l,"%")))}};export{t as taro_progress_core};
|
|
2
|
+
//# sourceMappingURL=p-29f04296.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/progress/progress.tsx"],"names":["Progress","[object Object]","percent","showInfo","borderRadius","fontSize","strokeWidth","activeColor","backgroundColor","active","this","pgPercent","pgHeight","height","transition","pgWidth","width","WebkitTransition","h","Host","class","style","font-size"],"mappings":"wDAKaA,EAAQ,4CACD,gBACC,wBACqB,gBACJ,oBACG,mBACjB,+BACI,sBACT,MAEjBC,SACE,MAAMC,QACJA,EAAOC,SACPA,EAAQC,aACRA,EAAYC,SACZA,EAAQC,YACRA,EAAWC,YACXA,EAAWC,gBACXA,EAAeC,OACfA,GACEC,KAEJ,MAAMC,EAAYT,EAAU,IAAM,IAAMA,EAAU,EAAI,EAAIA,EAC1D,MAAMU,EAAW,CACfC,OAAQP,EAAc,KACtBE,gBAAAA,GAEF,MAAMM,EAAaL,EAAS,uBAAyB,OACrD,MAAMM,EAAU,CACdC,MAAO,GAAGL,KACVG,WAAAA,EACAG,iBAAkBH,EAClBN,gBAAiBD,EACjBH,aAAcA,EAAe,GAAGA,MAAmB,OAGrD,OACEc,EAACC,EAAI,CAACC,MAAM,iBACVF,EAAA,MAAA,CAAKE,MAAM,qBAAqBC,MAAOT,GACrCM,EAAA,MAAA,CAAKE,MAAM,2BAA2BC,MAAON,KAG9CZ,GACCe,EAAA,MAAA,CAAKE,MAAM,qBAAqBC,MAAO,CAAEC,YAAa,GAAGjB,QACvDa,EAAA,OAAA,KAAOP,EAAS","sourcesContent":["import { Component, h, ComponentInterface, Prop, Host } from '@stencil/core'\n\n@Component({\n tag: 'taro-progress-core'\n})\nexport class Progress implements ComponentInterface {\n @Prop() percent = 0\n @Prop() showInfo = false\n @Prop() borderRadius: number | string = 0\n @Prop() fontSize: number | string = 16\n @Prop() strokeWidth: number | string = 6\n @Prop() activeColor = '#09BB07'\n @Prop() backgroundColor = '#EBEBEB'\n @Prop() active = false\n\n render () {\n const {\n percent,\n showInfo,\n borderRadius,\n fontSize,\n strokeWidth,\n activeColor,\n backgroundColor,\n active\n } = this\n\n const pgPercent = percent > 100 ? 100 : percent < 0 ? 0 : percent\n const pgHeight = {\n height: strokeWidth + 'px',\n backgroundColor\n }\n const transition = active ? 'width 1s ease-in-out' : 'none'\n const pgWidth = {\n width: `${pgPercent}%`,\n transition,\n WebkitTransition: transition,\n backgroundColor: activeColor,\n borderRadius: borderRadius ? `${borderRadius}px` : '0px'\n }\n\n return (\n <Host class='weui-progress'>\n <div class='weui-progress__bar' style={pgHeight}>\n <div class='weui-progress__inner-bar' style={pgWidth} />\n </div>\n\n {showInfo && (\n <div class='weui-progress__opr' style={{ 'font-size': `${fontSize}px` }}>\n <span>{pgPercent}%</span>\n </div>\n )}\n </Host>\n )\n }\n}\n"]}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-8a8f286f.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var e,n,r,o;return{setters:[function(t){e=t.r;n=t.h;r=t.H},function(t){o=t.n},function(){}],execute:function(){var s=t("taro_share_element_core",function(){function t(t){e(this,t)}t.prototype.componentDidLoad=function(){o("ShareElement",this)};t.prototype.render=function(){return n(r,null)};return t}())}}}));
|
|
2
|
+
//# sourceMappingURL=p-301a8b85.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/share-element/share-element.tsx"],"names":["ShareElement","exports","class_1","prototype","componentDidLoad","notSupport","this","render","h","Host"],"mappings":"gOAOaA,EAAYC,EAAA,0BAAA,mCACvBC,EAAAC,UAAAC,iBAAA,WACEC,EAAW,eAAgBC,OAG7BJ,EAAAC,UAAAI,OAAA,WACE,OACEC,EAACC,EAAI,gBAPc","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-share-element-core'\n})\nexport class ShareElement implements ComponentInterface {\n componentDidLoad () {\n notSupport('ShareElement', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
System.register([],(function(){"use strict";return{execute:function(){(function(){if(typeof window!=="object"){return}if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){if(!("isIntersecting"in window.IntersectionObserverEntry.prototype)){Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}})}return}var t=window.document;function e(t){this.time=t.time;this.target=t.target;this.rootBounds=t.rootBounds;this.boundingClientRect=t.boundingClientRect;this.intersectionRect=t.intersectionRect||a();this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect;var n=e.width*e.height;var r=this.intersectionRect;var i=r.width*r.height;if(n){this.intersectionRatio=Number((i/n).toFixed(4))}else{this.intersectionRatio=this.isIntersecting?1:0}}function n(t,e){var n=e||{};if(typeof t!="function"){throw new Error("callback must be a function")}if(n.root&&n.root.nodeType!=1){throw new Error("root must be an Element")}this._checkForIntersections=i(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT);this._callback=t;this._observationTargets=[];this._queuedEntries=[];this._rootMarginValues=this._parseRootMargin(n.rootMargin);this.thresholds=this._initThresholds(n.threshold);this.root=n.root||null;this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" ")}n.prototype.THROTTLE_TIMEOUT=100;n.prototype.POLL_INTERVAL=null;n.prototype.USE_MUTATION_OBSERVER=true;n.prototype.observe=function(t){var e=this._observationTargets.some((function(e){return e.element==t}));if(e){return}if(!(t&&t.nodeType==1)){throw new Error("target must be an Element")}this._registerInstance();this._observationTargets.push({element:t,entry:null});this._monitorIntersections();this._checkForIntersections()};n.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t}));if(!this._observationTargets.length){this._unmonitorIntersections();this._unregisterInstance()}};n.prototype.disconnect=function(){this._observationTargets=[];this._unmonitorIntersections();this._unregisterInstance()};n.prototype.takeRecords=function(){var t=this._queuedEntries.slice();this._queuedEntries=[];return t};n.prototype._initThresholds=function(t){var e=t||[0];if(!Array.isArray(e))e=[e];return e.sort().filter((function(t,e,n){if(typeof t!="number"||isNaN(t)||t<0||t>1){throw new Error("threshold must be a number between 0 and 1 inclusively")}return t!==n[e-1]}))};n.prototype._parseRootMargin=function(t){var e=t||"0px";var n=e.split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e){throw new Error("rootMargin must be specified in pixels or percent")}return{value:parseFloat(e[1]),unit:e[2]}}));n[1]=n[1]||n[0];n[2]=n[2]||n[0];n[3]=n[3]||n[1];return n};n.prototype._monitorIntersections=function(){if(!this._monitoringIntersections){this._monitoringIntersections=true;if(this.POLL_INTERVAL){this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL)}else{o(window,"resize",this._checkForIntersections,true);o(t,"scroll",this._checkForIntersections,true);if(this.USE_MUTATION_OBSERVER&&"MutationObserver"in window){this._domObserver=new MutationObserver(this._checkForIntersections);this._domObserver.observe(t,{attributes:true,childList:true,characterData:true,subtree:true})}}}};n.prototype._unmonitorIntersections=function(){if(this._monitoringIntersections){this._monitoringIntersections=false;clearInterval(this._monitoringInterval);this._monitoringInterval=null;s(window,"resize",this._checkForIntersections,true);s(t,"scroll",this._checkForIntersections,true);if(this._domObserver){this._domObserver.disconnect();this._domObserver=null}}};n.prototype._checkForIntersections=function(){var t=this._rootIsInDom();var n=t?this._getRootRect():a();this._observationTargets.forEach((function(i){var o=i.element;var s=c(o);var h=this._rootContainsTarget(o);var a=i.entry;var u=t&&h&&this._computeTargetAndRootIntersection(o,n);var f=i.entry=new e({time:r(),target:o,boundingClientRect:s,rootBounds:n,intersectionRect:u});if(!a){this._queuedEntries.push(f)}else if(t&&h){if(this._hasCrossedThreshold(a,f)){this._queuedEntries.push(f)}}else{if(a&&a.isIntersecting){this._queuedEntries.push(f)}}}),this);if(this._queuedEntries.length){this._callback(this.takeRecords(),this)}};n.prototype._computeTargetAndRootIntersection=function(e,n){if(window.getComputedStyle(e).display=="none")return;var r=c(e);var i=r;var o=f(e);var s=false;while(!s){var a=null;var u=o.nodeType==1?window.getComputedStyle(o):{};if(u.display=="none")return;if(o==this.root||o==t){s=true;a=n}else{if(o!=t.body&&o!=t.documentElement&&u.overflow!="visible"){a=c(o)}}if(a){i=h(a,i);if(!i)break}o=f(o)}return i};n.prototype._getRootRect=function(){var e;if(this.root){e=c(this.root)}else{var n=t.documentElement;var r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)};n.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return e.unit=="px"?e.value:e.value*(n%2?t.width:t.height)/100}));var n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};n.width=n.right-n.left;n.height=n.bottom-n.top;return n};n.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1;var r=e.isIntersecting?e.intersectionRatio||0:-1;if(n===r)return;for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==n||o==r||o<n!==o<r){return true}}};n.prototype._rootIsInDom=function(){return!this.root||u(t,this.root)};n.prototype._rootContainsTarget=function(e){return u(this.root||t,e)};n.prototype._registerInstance=function(){};n.prototype._unregisterInstance=function(){};function r(){return window.performance&&performance.now&&performance.now()}function i(t,e){var n=null;return function(){if(!n){n=setTimeout((function(){t();n=null}),e)}}}function o(t,e,n,r){if(typeof t.addEventListener=="function"){t.addEventListener(e,n,r||false)}else if(typeof t.attachEvent=="function"){t.attachEvent("on"+e,n)}}function s(t,e,n,r){if(typeof t.removeEventListener=="function"){t.removeEventListener(e,n,r||false)}else if(typeof t.detatchEvent=="function"){t.detatchEvent("on"+e,n)}}function h(t,e){var n=Math.max(t.top,e.top);var r=Math.min(t.bottom,e.bottom);var i=Math.max(t.left,e.left);var o=Math.min(t.right,e.right);var s=o-i;var h=r-n;return s>=0&&h>=0&&{top:n,bottom:r,left:i,right:o,width:s,height:h}}function c(t){var e;try{e=t.getBoundingClientRect()}catch(t){}if(!e)return a();if(!(e.width&&e.height)){e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}}return e}function a(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(t,e){var n=e;while(n){if(n==t)return true;n=f(n)}return false}function f(t){var e=t.parentNode;if(e&&e.nodeType==11&&e.host){return e.host}if(e&&e.assignedSlot){return e.assignedSlot.parentNode}return e}window.IntersectionObserver=n;window.IntersectionObserverEntry=e})()}}}));
|
|
1
|
+
System.register([],(function(){"use strict";return{execute:function(){(function(){if(typeof window!=="object"){return}if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){if(!("isIntersecting"in window.IntersectionObserverEntry.prototype)){Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}})}return}var t=window.document;function e(t){this.time=t.time;this.target=t.target;this.rootBounds=t.rootBounds;this.boundingClientRect=t.boundingClientRect;this.intersectionRect=t.intersectionRect||a();this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect;var n=e.width*e.height;var r=this.intersectionRect;var i=r.width*r.height;if(n){this.intersectionRatio=Number((i/n).toFixed(4))}else{this.intersectionRatio=this.isIntersecting?1:0}}function n(t,e){var n=e||{};if(typeof t!="function"){throw new Error("callback must be a function")}if(n.root&&n.root.nodeType!=1){throw new Error("root must be an Element")}this._checkForIntersections=i(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT);this._callback=t;this._observationTargets=[];this._queuedEntries=[];this._rootMarginValues=this._parseRootMargin(n.rootMargin);this.thresholds=this._initThresholds(n.threshold);this.root=n.root||null;this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" ")}n.prototype.THROTTLE_TIMEOUT=100;n.prototype.POLL_INTERVAL=null;n.prototype.USE_MUTATION_OBSERVER=true;n.prototype.observe=function(t){var e=this._observationTargets.some((function(e){return e.element==t}));if(e){return}if(!(t&&t.nodeType==1)){throw new Error("target must be an Element")}this._registerInstance();this._observationTargets.push({element:t,entry:null});this._monitorIntersections();this._checkForIntersections()};n.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t}));if(!this._observationTargets.length){this._unmonitorIntersections();this._unregisterInstance()}};n.prototype.disconnect=function(){this._observationTargets=[];this._unmonitorIntersections();this._unregisterInstance()};n.prototype.takeRecords=function(){var t=this._queuedEntries.slice();this._queuedEntries=[];return t};n.prototype._initThresholds=function(t){var e=t||[0];if(!Array.isArray(e))e=[e];return e.sort().filter((function(t,e,n){if(typeof t!="number"||isNaN(t)||t<0||t>1){throw new Error("threshold must be a number between 0 and 1 inclusively")}return t!==n[e-1]}))};n.prototype._parseRootMargin=function(t){var e=t||"0px";var n=e.split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e){throw new Error("rootMargin must be specified in pixels or percent")}return{value:parseFloat(e[1]),unit:e[2]}}));n[1]=n[1]||n[0];n[2]=n[2]||n[0];n[3]=n[3]||n[1];return n};n.prototype._monitorIntersections=function(){if(!this._monitoringIntersections){this._monitoringIntersections=true;if(this.POLL_INTERVAL){this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL)}else{o(window,"resize",this._checkForIntersections,true);o(t,"scroll",this._checkForIntersections,true);if(this.USE_MUTATION_OBSERVER&&"MutationObserver"in window){this._domObserver=new MutationObserver(this._checkForIntersections);this._domObserver.observe(t,{attributes:true,childList:true,characterData:true,subtree:true})}}}};n.prototype._unmonitorIntersections=function(){if(this._monitoringIntersections){this._monitoringIntersections=false;clearInterval(this._monitoringInterval);this._monitoringInterval=null;s(window,"resize",this._checkForIntersections,true);s(t,"scroll",this._checkForIntersections,true);if(this._domObserver){this._domObserver.disconnect();this._domObserver=null}}};n.prototype._checkForIntersections=function(){var t=this._rootIsInDom();var n=t?this._getRootRect():a();this._observationTargets.forEach((function(i){var o=i.element;var s=c(o);var h=this._rootContainsTarget(o);var a=i.entry;var u=t&&h&&this._computeTargetAndRootIntersection(o,n);var f=i.entry=new e({time:r(),target:o,boundingClientRect:s,rootBounds:n,intersectionRect:u});if(!a){this._queuedEntries.push(f)}else if(t&&h){if(this._hasCrossedThreshold(a,f)){this._queuedEntries.push(f)}}else{if(a&&a.isIntersecting){this._queuedEntries.push(f)}}}),this);if(this._queuedEntries.length){this._callback(this.takeRecords(),this)}};n.prototype._computeTargetAndRootIntersection=function(e,n){if(window.getComputedStyle(e).display=="none")return;var r=c(e);var i=r;var o=f(e);var s=false;while(!s){var a=null;var u=o.nodeType==1?window.getComputedStyle(o):{};if(u.display=="none")return;if(o==this.root||o==t){s=true;a=n}else{if(o!=t.body&&o!=t.documentElement&&u.overflow!="visible"){a=c(o)}}if(a){i=h(a,i);if(!i)break}o=f(o)}return i};n.prototype._getRootRect=function(){var e;if(this.root){e=c(this.root)}else{var n=t.documentElement;var r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)};n.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return e.unit=="px"?e.value:e.value*(n%2?t.width:t.height)/100}));var n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};n.width=n.right-n.left;n.height=n.bottom-n.top;return n};n.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1;var r=e.isIntersecting?e.intersectionRatio||0:-1;if(n===r)return;for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==n||o==r||o<n!==o<r){return true}}};n.prototype._rootIsInDom=function(){return!this.root||u(t,this.root)};n.prototype._rootContainsTarget=function(e){return u(this.root||t,e)};n.prototype._registerInstance=function(){};n.prototype._unregisterInstance=function(){};function r(){return window.performance&&performance.now&&performance.now()}function i(t,e){var n=null;return function(){if(!n){n=setTimeout((function(){t();n=null}),e)}}}function o(t,e,n,r){if(typeof t.addEventListener=="function"){t.addEventListener(e,n,r||false)}else if(typeof t.attachEvent=="function"){t.attachEvent("on"+e,n)}}function s(t,e,n,r){if(typeof t.removeEventListener=="function"){t.removeEventListener(e,n,r||false)}else if(typeof t.detatchEvent=="function"){t.detatchEvent("on"+e,n)}}function h(t,e){var n=Math.max(t.top,e.top);var r=Math.min(t.bottom,e.bottom);var i=Math.max(t.left,e.left);var o=Math.min(t.right,e.right);var s=o-i;var h=r-n;return s>=0&&h>=0&&{top:n,bottom:r,left:i,right:o,width:s,height:h}}function c(t){var e;try{e=t.getBoundingClientRect()}catch(t){}if(!e)return a();if(!(e.width&&e.height)){e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}}return e}function a(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(t,e){var n=e;while(n){if(n==t)return true;n=f(n)}return false}function f(t){var e=t.parentNode;if(e&&e.nodeType==11&&e.host){return e.host}if(e&&e.assignedSlot){return e.assignedSlot.parentNode}return e}window.IntersectionObserver=n;window.IntersectionObserverEntry=e})()}}}));
|
|
2
|
+
//# sourceMappingURL=p-3b1d2d37.system.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../node_modules/.pnpm/registry.npmjs.org+intersection-observer@0.7.0/node_modules/intersection-observer/intersection-observer.js"],"names":["window","IntersectionObserverEntry","prototype","Object","defineProperty","get","this","intersectionRatio","document","entry","time","target","rootBounds","boundingClientRect","intersectionRect","getEmptyRect","isIntersecting","targetRect","targetArea","width","height","intersectionArea","Number","toFixed","IntersectionObserver","callback","opt_options","options","Error","root","nodeType","_checkForIntersections","throttle","bind","THROTTLE_TIMEOUT","_callback","_observationTargets","_queuedEntries","_rootMarginValues","_parseRootMargin","rootMargin","thresholds","_initThresholds","threshold","map","margin","value","unit","join","POLL_INTERVAL","USE_MUTATION_OBSERVER","observe","isTargetAlreadyObserved","some","item","element","_registerInstance","push","_monitorIntersections","unobserve","filter","length","_unmonitorIntersections","_unregisterInstance","disconnect","takeRecords","records","slice","opt_threshold","Array","isArray","sort","t","i","a","isNaN","opt_rootMargin","marginString","margins","split","parts","exec","parseFloat","_monitoringIntersections","_monitoringInterval","setInterval","addEvent","_domObserver","MutationObserver","attributes","childList","characterData","subtree","clearInterval","removeEvent","rootIsInDom","_rootIsInDom","rootRect","_getRootRect","forEach","getBoundingClientRect","rootContainsTarget","_rootContainsTarget","oldEntry","_computeTargetAndRootIntersection","newEntry","now","_hasCrossedThreshold","getComputedStyle","display","parent","getParentNode","atRoot","parentRect","parentComputedStyle","body","documentElement","overflow","computeRectIntersection","html","top","left","right","clientWidth","bottom","clientHeight","_expandRectByRootMargin","rect","newRect","oldRatio","newRatio","containsDeep","performance","fn","timeout","timer","setTimeout","node","event","opt_useCapture","addEventListener","attachEvent","removeEventListener","detatchEvent","rect1","rect2","Math","max","min","el","err","child","parentNode","host","assignedSlot"],"mappings":"uEAQC,WAID,UAAWA,SAAW,SAAU,CAC9B,OAKF,GAAI,yBAA0BA,QAC1B,8BAA+BA,QAC/B,sBAAuBA,OAAOC,0BAA0BC,UAAW,CAIrE,KAAM,mBAAoBF,OAAOC,0BAA0BC,WAAY,CACrEC,OAAOC,eAAeJ,OAAOC,0BAA0BC,UACrD,iBAAkB,CAClBG,IAAK,WACH,OAAOC,KAAKC,kBAAoB,KAItC,OAOF,IAAIC,EAAWR,OAAOQ,SAkBtB,SAASP,EAA0BQ,GACjCH,KAAKI,KAAOD,EAAMC,KAClBJ,KAAKK,OAASF,EAAME,OACpBL,KAAKM,WAAaH,EAAMG,WACxBN,KAAKO,mBAAqBJ,EAAMI,mBAChCP,KAAKQ,iBAAmBL,EAAMK,kBAAoBC,IAClDT,KAAKU,iBAAmBP,EAAMK,iBAG9B,IAAIG,EAAaX,KAAKO,mBACtB,IAAIK,EAAaD,EAAWE,MAAQF,EAAWG,OAC/C,IAAIN,EAAmBR,KAAKQ,iBAC5B,IAAIO,EAAmBP,EAAiBK,MAAQL,EAAiBM,OAGjE,GAAIF,EAAY,CAGdZ,KAAKC,kBAAoBe,QAAQD,EAAmBH,GAAYK,QAAQ,QACnE,CAELjB,KAAKC,kBAAoBD,KAAKU,eAAiB,EAAI,GAcvD,SAASQ,EAAqBC,EAAUC,GAEtC,IAAIC,EAAUD,GAAe,GAE7B,UAAWD,GAAY,WAAY,CACjC,MAAM,IAAIG,MAAM,+BAGlB,GA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Q,GAWZ,SAAS+G,EAAarB,EAAQyC,GAC5B,IAAId,EAAOc,EACX,MAAOd,EAAM,CACX,GAAIA,GAAQ3B,EAAQ,OAAO,KAE3B2B,EAAO1B,EAAc0B,GAEvB,OAAO,MAUT,SAAS1B,EAAc0B,GACrB,IAAI3B,EAAS2B,EAAKe,WAElB,GAAI1C,GAAUA,EAAOhF,UAAY,IAAMgF,EAAO2C,KAAM,CAElD,OAAO3C,EAAO2C,KAGhB,GAAI3C,GAAUA,EAAO4C,aAAc,CAEjC,OAAO5C,EAAO4C,aAAaF,WAG7B,OAAO1C,EAKT9G,OAAOwB,qBAAuBA,EAC9BxB,OAAOC,0BAA4BA,GA1tBnC","sourcesContent":["/**\n * Copyright 2016 Google Inc. All Rights Reserved.\n *\n * Licensed under the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE.\n *\n * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n *\n */\n(function() {\n'use strict';\n\n// Exit early if we're not running in a browser.\nif (typeof window !== 'object') {\n return;\n}\n\n// Exit early if all IntersectionObserver and IntersectionObserverEntry\n// features are natively supported.\nif ('IntersectionObserver' in window &&\n 'IntersectionObserverEntry' in window &&\n 'intersectionRatio' in window.IntersectionObserverEntry.prototype) {\n\n // Minimal polyfill for Edge 15's lack of `isIntersecting`\n // See: https://github.com/w3c/IntersectionObserver/issues/211\n if (!('isIntersecting' in window.IntersectionObserverEntry.prototype)) {\n Object.defineProperty(window.IntersectionObserverEntry.prototype,\n 'isIntersecting', {\n get: function () {\n return this.intersectionRatio > 0;\n }\n });\n }\n return;\n}\n\n\n/**\n * A local reference to the document.\n */\nvar document = window.document;\n\n\n/**\n * An IntersectionObserver registry. This registry exists to hold a strong\n * reference to IntersectionObserver instances currently observing a target\n * element. Without this registry, instances without another reference may be\n * garbage collected.\n */\nvar registry = [];\n\n\n/**\n * Creates the global IntersectionObserverEntry constructor.\n * https://w3c.github.io/IntersectionObserver/#intersection-observer-entry\n * @param {Object} entry A dictionary of instance properties.\n * @constructor\n */\nfunction IntersectionObserverEntry(entry) {\n this.time = entry.time;\n this.target = entry.target;\n this.rootBounds = entry.rootBounds;\n this.boundingClientRect = entry.boundingClientRect;\n this.intersectionRect = entry.intersectionRect || getEmptyRect();\n this.isIntersecting = !!entry.intersectionRect;\n\n // Calculates the intersection ratio.\n var targetRect = this.boundingClientRect;\n var targetArea = targetRect.width * targetRect.height;\n var intersectionRect = this.intersectionRect;\n var intersectionArea = intersectionRect.width * intersectionRect.height;\n\n // Sets intersection ratio.\n if (targetArea) {\n // Round the intersection ratio to avoid floating point math issues:\n // https://github.com/w3c/IntersectionObserver/issues/324\n this.intersectionRatio = Number((intersectionArea / targetArea).toFixed(4));\n } else {\n // If area is zero and is intersecting, sets to 1, otherwise to 0\n this.intersectionRatio = this.isIntersecting ? 1 : 0;\n }\n}\n\n\n/**\n * Creates the global IntersectionObserver constructor.\n * https://w3c.github.io/IntersectionObserver/#intersection-observer-interface\n * @param {Function} callback The function to be invoked after intersection\n * changes have queued. The function is not invoked if the queue has\n * been emptied by calling the `takeRecords` method.\n * @param {Object=} opt_options Optional configuration options.\n * @constructor\n */\nfunction IntersectionObserver(callback, opt_options) {\n\n var options = opt_options || {};\n\n if (typeof callback != 'function') {\n throw new Error('callback must be a function');\n }\n\n if (options.root && options.root.nodeType != 1) {\n throw new Error('root must be an Element');\n }\n\n // Binds and throttles `this._checkForIntersections`.\n this._checkForIntersections = throttle(\n this._checkForIntersections.bind(this), this.THROTTLE_TIMEOUT);\n\n // Private properties.\n this._callback = callback;\n this._observationTargets = [];\n this._queuedEntries = [];\n this._rootMarginValues = this._parseRootMargin(options.rootMargin);\n\n // Public properties.\n this.thresholds = this._initThresholds(options.threshold);\n this.root = options.root || null;\n this.rootMargin = this._rootMarginValues.map(function(margin) {\n return margin.value + margin.unit;\n }).join(' ');\n}\n\n\n/**\n * The minimum interval within which the document will be checked for\n * intersection changes.\n */\nIntersectionObserver.prototype.THROTTLE_TIMEOUT = 100;\n\n\n/**\n * The frequency in which the polyfill polls for intersection changes.\n * this can be updated on a per instance basis and must be set prior to\n * calling `observe` on the first target.\n */\nIntersectionObserver.prototype.POLL_INTERVAL = null;\n\n/**\n * Use a mutation observer on the root element\n * to detect intersection changes.\n */\nIntersectionObserver.prototype.USE_MUTATION_OBSERVER = true;\n\n\n/**\n * Starts observing a target element for intersection changes based on\n * the thresholds values.\n * @param {Element} target The DOM element to observe.\n */\nIntersectionObserver.prototype.observe = function(target) {\n var isTargetAlreadyObserved = this._observationTargets.some(function(item) {\n return item.element == target;\n });\n\n if (isTargetAlreadyObserved) {\n return;\n }\n\n if (!(target && target.nodeType == 1)) {\n throw new Error('target must be an Element');\n }\n\n this._registerInstance();\n this._observationTargets.push({element: target, entry: null});\n this._monitorIntersections();\n this._checkForIntersections();\n};\n\n\n/**\n * Stops observing a target element for intersection changes.\n * @param {Element} target The DOM element to observe.\n */\nIntersectionObserver.prototype.unobserve = function(target) {\n this._observationTargets =\n this._observationTargets.filter(function(item) {\n\n return item.element != target;\n });\n if (!this._observationTargets.length) {\n this._unmonitorIntersections();\n this._unregisterInstance();\n }\n};\n\n\n/**\n * Stops observing all target elements for intersection changes.\n */\nIntersectionObserver.prototype.disconnect = function() {\n this._observationTargets = [];\n this._unmonitorIntersections();\n this._unregisterInstance();\n};\n\n\n/**\n * Returns any queue entries that have not yet been reported to the\n * callback and clears the queue. This can be used in conjunction with the\n * callback to obtain the absolute most up-to-date intersection information.\n * @return {Array} The currently queued entries.\n */\nIntersectionObserver.prototype.takeRecords = function() {\n var records = this._queuedEntries.slice();\n this._queuedEntries = [];\n return records;\n};\n\n\n/**\n * Accepts the threshold value from the user configuration object and\n * returns a sorted array of unique threshold values. If a value is not\n * between 0 and 1 and error is thrown.\n * @private\n * @param {Array|number=} opt_threshold An optional threshold value or\n * a list of threshold values, defaulting to [0].\n * @return {Array} A sorted list of unique and valid threshold values.\n */\nIntersectionObserver.prototype._initThresholds = function(opt_threshold) {\n var threshold = opt_threshold || [0];\n if (!Array.isArray(threshold)) threshold = [threshold];\n\n return threshold.sort().filter(function(t, i, a) {\n if (typeof t != 'number' || isNaN(t) || t < 0 || t > 1) {\n throw new Error('threshold must be a number between 0 and 1 inclusively');\n }\n return t !== a[i - 1];\n });\n};\n\n\n/**\n * Accepts the rootMargin value from the user configuration object\n * and returns an array of the four margin values as an object containing\n * the value and unit properties. If any of the values are not properly\n * formatted or use a unit other than px or %, and error is thrown.\n * @private\n * @param {string=} opt_rootMargin An optional rootMargin value,\n * defaulting to '0px'.\n * @return {Array<Object>} An array of margin objects with the keys\n * value and unit.\n */\nIntersectionObserver.prototype._parseRootMargin = function(opt_rootMargin) {\n var marginString = opt_rootMargin || '0px';\n var margins = marginString.split(/\\s+/).map(function(margin) {\n var parts = /^(-?\\d*\\.?\\d+)(px|%)$/.exec(margin);\n if (!parts) {\n throw new Error('rootMargin must be specified in pixels or percent');\n }\n return {value: parseFloat(parts[1]), unit: parts[2]};\n });\n\n // Handles shorthand.\n margins[1] = margins[1] || margins[0];\n margins[2] = margins[2] || margins[0];\n margins[3] = margins[3] || margins[1];\n\n return margins;\n};\n\n\n/**\n * Starts polling for intersection changes if the polling is not already\n * happening, and if the page's visibility state is visible.\n * @private\n */\nIntersectionObserver.prototype._monitorIntersections = function() {\n if (!this._monitoringIntersections) {\n this._monitoringIntersections = true;\n\n // If a poll interval is set, use polling instead of listening to\n // resize and scroll events or DOM mutations.\n if (this.POLL_INTERVAL) {\n this._monitoringInterval = setInterval(\n this._checkForIntersections, this.POLL_INTERVAL);\n }\n else {\n addEvent(window, 'resize', this._checkForIntersections, true);\n addEvent(document, 'scroll', this._checkForIntersections, true);\n\n if (this.USE_MUTATION_OBSERVER && 'MutationObserver' in window) {\n this._domObserver = new MutationObserver(this._checkForIntersections);\n this._domObserver.observe(document, {\n attributes: true,\n childList: true,\n characterData: true,\n subtree: true\n });\n }\n }\n }\n};\n\n\n/**\n * Stops polling for intersection changes.\n * @private\n */\nIntersectionObserver.prototype._unmonitorIntersections = function() {\n if (this._monitoringIntersections) {\n this._monitoringIntersections = false;\n\n clearInterval(this._monitoringInterval);\n this._monitoringInterval = null;\n\n removeEvent(window, 'resize', this._checkForIntersections, true);\n removeEvent(document, 'scroll', this._checkForIntersections, true);\n\n if (this._domObserver) {\n this._domObserver.disconnect();\n this._domObserver = null;\n }\n }\n};\n\n\n/**\n * Scans each observation target for intersection changes and adds them\n * to the internal entries queue. If new entries are found, it\n * schedules the callback to be invoked.\n * @private\n */\nIntersectionObserver.prototype._checkForIntersections = function() {\n var rootIsInDom = this._rootIsInDom();\n var rootRect = rootIsInDom ? this._getRootRect() : getEmptyRect();\n\n this._observationTargets.forEach(function(item) {\n var target = item.element;\n var targetRect = getBoundingClientRect(target);\n var rootContainsTarget = this._rootContainsTarget(target);\n var oldEntry = item.entry;\n var intersectionRect = rootIsInDom && rootContainsTarget &&\n this._computeTargetAndRootIntersection(target, rootRect);\n\n var newEntry = item.entry = new IntersectionObserverEntry({\n time: now(),\n target: target,\n boundingClientRect: targetRect,\n rootBounds: rootRect,\n intersectionRect: intersectionRect\n });\n\n if (!oldEntry) {\n this._queuedEntries.push(newEntry);\n } else if (rootIsInDom && rootContainsTarget) {\n // If the new entry intersection ratio has crossed any of the\n // thresholds, add a new entry.\n if (this._hasCrossedThreshold(oldEntry, newEntry)) {\n this._queuedEntries.push(newEntry);\n }\n } else {\n // If the root is not in the DOM or target is not contained within\n // root but the previous entry for this target had an intersection,\n // add a new record indicating removal.\n if (oldEntry && oldEntry.isIntersecting) {\n this._queuedEntries.push(newEntry);\n }\n }\n }, this);\n\n if (this._queuedEntries.length) {\n this._callback(this.takeRecords(), this);\n }\n};\n\n\n/**\n * Accepts a target and root rect computes the intersection between then\n * following the algorithm in the spec.\n * TODO(philipwalton): at this time clip-path is not considered.\n * https://w3c.github.io/IntersectionObserver/#calculate-intersection-rect-algo\n * @param {Element} target The target DOM element\n * @param {Object} rootRect The bounding rect of the root after being\n * expanded by the rootMargin value.\n * @return {?Object} The final intersection rect object or undefined if no\n * intersection is found.\n * @private\n */\nIntersectionObserver.prototype._computeTargetAndRootIntersection =\n function(target, rootRect) {\n\n // If the element isn't displayed, an intersection can't happen.\n if (window.getComputedStyle(target).display == 'none') return;\n\n var targetRect = getBoundingClientRect(target);\n var intersectionRect = targetRect;\n var parent = getParentNode(target);\n var atRoot = false;\n\n while (!atRoot) {\n var parentRect = null;\n var parentComputedStyle = parent.nodeType == 1 ?\n window.getComputedStyle(parent) : {};\n\n // If the parent isn't displayed, an intersection can't happen.\n if (parentComputedStyle.display == 'none') return;\n\n if (parent == this.root || parent == document) {\n atRoot = true;\n parentRect = rootRect;\n } else {\n // If the element has a non-visible overflow, and it's not the <body>\n // or <html> element, update the intersection rect.\n // Note: <body> and <html> cannot be clipped to a rect that's not also\n // the document rect, so no need to compute a new intersection.\n if (parent != document.body &&\n parent != document.documentElement &&\n parentComputedStyle.overflow != 'visible') {\n parentRect = getBoundingClientRect(parent);\n }\n }\n\n // If either of the above conditionals set a new parentRect,\n // calculate new intersection data.\n if (parentRect) {\n intersectionRect = computeRectIntersection(parentRect, intersectionRect);\n\n if (!intersectionRect) break;\n }\n parent = getParentNode(parent);\n }\n return intersectionRect;\n};\n\n\n/**\n * Returns the root rect after being expanded by the rootMargin value.\n * @return {Object} The expanded root rect.\n * @private\n */\nIntersectionObserver.prototype._getRootRect = function() {\n var rootRect;\n if (this.root) {\n rootRect = getBoundingClientRect(this.root);\n } else {\n // Use <html>/<body> instead of window since scroll bars affect size.\n var html = document.documentElement;\n var body = document.body;\n rootRect = {\n top: 0,\n left: 0,\n right: html.clientWidth || body.clientWidth,\n width: html.clientWidth || body.clientWidth,\n bottom: html.clientHeight || body.clientHeight,\n height: html.clientHeight || body.clientHeight\n };\n }\n return this._expandRectByRootMargin(rootRect);\n};\n\n\n/**\n * Accepts a rect and expands it by the rootMargin value.\n * @param {Object} rect The rect object to expand.\n * @return {Object} The expanded rect.\n * @private\n */\nIntersectionObserver.prototype._expandRectByRootMargin = function(rect) {\n var margins = this._rootMarginValues.map(function(margin, i) {\n return margin.unit == 'px' ? margin.value :\n margin.value * (i % 2 ? rect.width : rect.height) / 100;\n });\n var newRect = {\n top: rect.top - margins[0],\n right: rect.right + margins[1],\n bottom: rect.bottom + margins[2],\n left: rect.left - margins[3]\n };\n newRect.width = newRect.right - newRect.left;\n newRect.height = newRect.bottom - newRect.top;\n\n return newRect;\n};\n\n\n/**\n * Accepts an old and new entry and returns true if at least one of the\n * threshold values has been crossed.\n * @param {?IntersectionObserverEntry} oldEntry The previous entry for a\n * particular target element or null if no previous entry exists.\n * @param {IntersectionObserverEntry} newEntry The current entry for a\n * particular target element.\n * @return {boolean} Returns true if a any threshold has been crossed.\n * @private\n */\nIntersectionObserver.prototype._hasCrossedThreshold =\n function(oldEntry, newEntry) {\n\n // To make comparing easier, an entry that has a ratio of 0\n // but does not actually intersect is given a value of -1\n var oldRatio = oldEntry && oldEntry.isIntersecting ?\n oldEntry.intersectionRatio || 0 : -1;\n var newRatio = newEntry.isIntersecting ?\n newEntry.intersectionRatio || 0 : -1;\n\n // Ignore unchanged ratios\n if (oldRatio === newRatio) return;\n\n for (var i = 0; i < this.thresholds.length; i++) {\n var threshold = this.thresholds[i];\n\n // Return true if an entry matches a threshold or if the new ratio\n // and the old ratio are on the opposite sides of a threshold.\n if (threshold == oldRatio || threshold == newRatio ||\n threshold < oldRatio !== threshold < newRatio) {\n return true;\n }\n }\n};\n\n\n/**\n * Returns whether or not the root element is an element and is in the DOM.\n * @return {boolean} True if the root element is an element and is in the DOM.\n * @private\n */\nIntersectionObserver.prototype._rootIsInDom = function() {\n return !this.root || containsDeep(document, this.root);\n};\n\n\n/**\n * Returns whether or not the target element is a child of root.\n * @param {Element} target The target element to check.\n * @return {boolean} True if the target element is a child of root.\n * @private\n */\nIntersectionObserver.prototype._rootContainsTarget = function(target) {\n return containsDeep(this.root || document, target);\n};\n\n\n/**\n * Adds the instance to the global IntersectionObserver registry if it isn't\n * already present.\n * @private\n */\nIntersectionObserver.prototype._registerInstance = function() {\n if (registry.indexOf(this) < 0) {\n registry.push(this);\n }\n};\n\n\n/**\n * Removes the instance from the global IntersectionObserver registry.\n * @private\n */\nIntersectionObserver.prototype._unregisterInstance = function() {\n var index = registry.indexOf(this);\n if (index != -1) registry.splice(index, 1);\n};\n\n\n/**\n * Returns the result of the performance.now() method or null in browsers\n * that don't support the API.\n * @return {number} The elapsed time since the page was requested.\n */\nfunction now() {\n return window.performance && performance.now && performance.now();\n}\n\n\n/**\n * Throttles a function and delays its execution, so it's only called at most\n * once within a given time period.\n * @param {Function} fn The function to throttle.\n * @param {number} timeout The amount of time that must pass before the\n * function can be called again.\n * @return {Function} The throttled function.\n */\nfunction throttle(fn, timeout) {\n var timer = null;\n return function () {\n if (!timer) {\n timer = setTimeout(function() {\n fn();\n timer = null;\n }, timeout);\n }\n };\n}\n\n\n/**\n * Adds an event handler to a DOM node ensuring cross-browser compatibility.\n * @param {Node} node The DOM node to add the event handler to.\n * @param {string} event The event name.\n * @param {Function} fn The event handler to add.\n * @param {boolean} opt_useCapture Optionally adds the even to the capture\n * phase. Note: this only works in modern browsers.\n */\nfunction addEvent(node, event, fn, opt_useCapture) {\n if (typeof node.addEventListener == 'function') {\n node.addEventListener(event, fn, opt_useCapture || false);\n }\n else if (typeof node.attachEvent == 'function') {\n node.attachEvent('on' + event, fn);\n }\n}\n\n\n/**\n * Removes a previously added event handler from a DOM node.\n * @param {Node} node The DOM node to remove the event handler from.\n * @param {string} event The event name.\n * @param {Function} fn The event handler to remove.\n * @param {boolean} opt_useCapture If the event handler was added with this\n * flag set to true, it should be set to true here in order to remove it.\n */\nfunction removeEvent(node, event, fn, opt_useCapture) {\n if (typeof node.removeEventListener == 'function') {\n node.removeEventListener(event, fn, opt_useCapture || false);\n }\n else if (typeof node.detatchEvent == 'function') {\n node.detatchEvent('on' + event, fn);\n }\n}\n\n\n/**\n * Returns the intersection between two rect objects.\n * @param {Object} rect1 The first rect.\n * @param {Object} rect2 The second rect.\n * @return {?Object} The intersection rect or undefined if no intersection\n * is found.\n */\nfunction computeRectIntersection(rect1, rect2) {\n var top = Math.max(rect1.top, rect2.top);\n var bottom = Math.min(rect1.bottom, rect2.bottom);\n var left = Math.max(rect1.left, rect2.left);\n var right = Math.min(rect1.right, rect2.right);\n var width = right - left;\n var height = bottom - top;\n\n return (width >= 0 && height >= 0) && {\n top: top,\n bottom: bottom,\n left: left,\n right: right,\n width: width,\n height: height\n };\n}\n\n\n/**\n * Shims the native getBoundingClientRect for compatibility with older IE.\n * @param {Element} el The element whose bounding rect to get.\n * @return {Object} The (possibly shimmed) rect of the element.\n */\nfunction getBoundingClientRect(el) {\n var rect;\n\n try {\n rect = el.getBoundingClientRect();\n } catch (err) {\n // Ignore Windows 7 IE11 \"Unspecified error\"\n // https://github.com/w3c/IntersectionObserver/pull/205\n }\n\n if (!rect) return getEmptyRect();\n\n // Older IE\n if (!(rect.width && rect.height)) {\n rect = {\n top: rect.top,\n right: rect.right,\n bottom: rect.bottom,\n left: rect.left,\n width: rect.right - rect.left,\n height: rect.bottom - rect.top\n };\n }\n return rect;\n}\n\n\n/**\n * Returns an empty rect object. An empty rect is returned when an element\n * is not in the DOM.\n * @return {Object} The empty rect.\n */\nfunction getEmptyRect() {\n return {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n width: 0,\n height: 0\n };\n}\n\n/**\n * Checks to see if a parent element contains a child element (including inside\n * shadow DOM).\n * @param {Node} parent The parent element.\n * @param {Node} child The child element.\n * @return {boolean} True if the parent node contains the child node.\n */\nfunction containsDeep(parent, child) {\n var node = child;\n while (node) {\n if (node == parent) return true;\n\n node = getParentNode(node);\n }\n return false;\n}\n\n\n/**\n * Gets the parent node of an element or its host element if the parent node\n * is a shadow root.\n * @param {Node} node The node whose parent to get.\n * @return {Node|null} The parent node or null if no parent exists.\n */\nfunction getParentNode(node) {\n var parent = node.parentNode;\n\n if (parent && parent.nodeType == 11 && parent.host) {\n // If the parent is a shadow root, return the host element.\n return parent.host;\n }\n\n if (parent && parent.assignedSlot) {\n // If the parent is distributed in a <slot>, return the parent of a slot.\n return parent.assignedSlot.parentNode;\n }\n\n return parent;\n}\n\n\n// Exposes the constructors globally.\nwindow.IntersectionObserver = IntersectionObserver;\nwindow.IntersectionObserverEntry = IntersectionObserverEntry;\n\n}());\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as o,h as r,H as t}from"./p-5bfefd19.js";import{n as a}from"./p-6a96da58.js";import"@tarojs/taro";const s=class{constructor(r){o(this,r)}componentDidLoad(){a("RootPortal",this)}render(){return r(t,null)}};export{s as taro_root_portal_core};
|
|
2
|
+
//# sourceMappingURL=p-3b9a1125.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/root-portal/root-portal.tsx"],"names":["RootPortal","[object Object]","notSupport","this","h","Host"],"mappings":"iHAOaA,EAAU,+BACrBC,mBACEC,EAAW,aAAcC,MAG3BF,SACE,OACEG,EAACC,EAAI","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-root-portal-core'\n})\nexport class RootPortal implements ComponentInterface {\n componentDidLoad () {\n notSupport('RootPortal', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as s,c as e,h as t,H as a}from"./p-5bfefd19.js";import i from"@tarojs/taro";import{c as r}from"./p-76724e58.js";const o=".navigator-hover{background:#efefef}";const c=class{constructor(t){s(this,t);this.onSuccess=e(this,"cuccess",7);this.onFail=e(this,"fail",7);this.onComplete=e(this,"Complete",7);this.hoverClass=undefined;this.url=undefined;this.openType="navigate";this.isHover=false;this.delta=0}onClick(){const{openType:s,onSuccess:e,onFail:t,onComplete:a}=this;let r=Promise.resolve();switch(s){case"navigate":r=i.navigateTo({url:this.url});break;case"redirect":r=i.redirectTo({url:this.url});break;case"switchTab":r=i.switchTab({url:this.url});break;case"reLaunch":r=i.reLaunch({url:this.url});break;case"navigateBack":r=i.navigateBack({delta:this.delta});break;case"exit":r=Promise.reject(new Error('navigator:fail 暂不支持"openType: exit"'));break}if(r){r.then((s=>{e.emit(s)})).catch((s=>{t.emit(s)})).finally((()=>{a.emit()}))}}render(){const{isHover:s,hoverClass:e}=this;return t(a,{class:r({[e]:s})})}};c.style=o;export{c as taro_navigator_core};
|
|
2
|
+
//# sourceMappingURL=p-3c256e0e.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/navigator/style/index.scss?tag=taro-navigator-core","src/components/navigator/navigator.tsx"],"names":["indexCss","Navigator","[object Object]","openType","onSuccess","onFail","onComplete","this","promise","Promise","resolve","Taro","navigateTo","url","redirectTo","switchTab","reLaunch","navigateBack","delta","reject","Error","then","res","emit","catch","finally","isHover","hoverClass","h","Host","class","classNames"],"mappings":"yHAAA,MAAMA,EAAW,6CC+BJC,EAAS,+LAGD,wBACD,iBACF,EAehBC,UACE,MAAMC,SAAEA,EAAQC,UAAEA,EAASC,OAAEA,EAAMC,WAAEA,GAAeC,KACpD,IAAIC,EAAwBC,QAAQC,UACpC,OAAQP,GACN,IAAK,WACHK,EAAUG,EAAKC,WAAW,CACxBC,IAAKN,KAAKM,MAEZ,MACF,IAAK,WACHL,EAAUG,EAAKG,WAAW,CACxBD,IAAKN,KAAKM,MAEZ,MACF,IAAK,YACHL,EAAUG,EAAKI,UAAU,CACvBF,IAAKN,KAAKM,MAEZ,MACF,IAAK,WACHL,EAAUG,EAAKK,SAAS,CACtBH,IAAKN,KAAKM,MAEZ,MACF,IAAK,eACHL,EAAUG,EAAKM,aAAa,CAC1BC,MAAOX,KAAKW,QAEd,MACF,IAAK,OACHV,EAAUC,QAAQU,OAAO,IAAIC,MAAM,wCACnC,MAEJ,GAAIZ,EAAS,CACXA,EAAQa,MAAKC,IACXlB,EAAUmB,KAAKD,MACdE,OAAMF,IACPjB,EAAOkB,KAAKD,MACXG,SAAQ,KACTnB,EAAWiB,WAKjBrB,SACE,MAAMwB,QAAEA,EAAOC,WAAEA,GAAepB,KAEhC,OACEqB,EAACC,EAAI,CACHC,MAAOC,EAAW,CAChB7B,CAACyB,GAAaD","sourcesContent":[".navigator-hover {\r\n background: #efefef;\r\n}\r\n","import { Component, Prop, h, ComponentInterface, Host, Listen, Event, EventEmitter } from '@stencil/core'\nimport Taro from '@tarojs/taro'\nimport classNames from 'classnames'\n\n/**\n * Navigator组件参数\n * @typedef NavigatorProps\n * @property {String} appId 当target=\"miniProgram\"时有效,要打开的小程序 appId\n * @property {String} ariaLabel 无障碍访问,(属性)元素的额外描述\n * @property {Number} delta 当 openType 为 'navigateBack' 时有效,表示回退的层数\n * @property {Object} extraData 当target=\"miniProgram\"时有效,需要传递给目标小程序的数据,目标小程序可在 App.onLaunch(),App.onShow() 中获取到这份数据。详情\n * @property {String} [openType=navigate] 跳转方式\n * @property {String} path 当target=\"miniProgram\"时有效,打开的页面路径,如果为空则打开首页\n * @property {String} [target=self] 在哪个目标上发生跳转,默认当前小程序,可选值self/miniProgram\n * @property {String} url 当前小程序内的跳转链接\n * @property {version} [version=release] 当target=\"miniProgram\"时有效,要打开的小程序版本,有效值 develop(开发版),trial(体验版),release(正式版),仅在当前小程序为开发版或体验版时此参数有效;如果当前小程序是 *式版,则打开的小程序必定是正式版。\n * @property {String} onFail 当target=\"miniProgram\"时有效,跳转小程序失败\n * @property {String} onComplete 当target=\"miniProgram\"时有效,跳转小程序完成\n * @property {String} onSuccess 当target=\"miniProgram\"时有效,跳转小程序成功\n */\n\n/**\n * TODO: 参数还需要进一步细化对齐\n * Navigator组件\n * https://developers.weixin.qq.com/miniprogram/dev/component/navigator.html\n **/\n\n@Component({\n tag: 'taro-navigator-core',\n styleUrl: './style/index.scss'\n})\nexport class Navigator implements ComponentInterface {\n @Prop() hoverClass: string\n @Prop() url: string\n @Prop() openType = 'navigate'\n @Prop() isHover = false\n @Prop() delta = 0\n\n @Event({\n eventName: 'cuccess'\n }) onSuccess: EventEmitter\n\n @Event({\n eventName: 'fail'\n }) onFail: EventEmitter\n\n @Event({\n eventName: 'Complete'\n }) onComplete: EventEmitter\n\n @Listen('click')\n onClick () {\n const { openType, onSuccess, onFail, onComplete } = this\n let promise: Promise<any> = Promise.resolve()\n switch (openType) {\n case 'navigate':\n promise = Taro.navigateTo({\n url: this.url\n })\n break\n case 'redirect':\n promise = Taro.redirectTo({\n url: this.url\n })\n break\n case 'switchTab':\n promise = Taro.switchTab({\n url: this.url\n })\n break\n case 'reLaunch':\n promise = Taro.reLaunch({\n url: this.url\n })\n break\n case 'navigateBack':\n promise = Taro.navigateBack({\n delta: this.delta\n })\n break\n case 'exit':\n promise = Promise.reject(new Error('navigator:fail 暂不支持\"openType: exit\"'))\n break\n }\n if (promise) {\n promise.then(res => {\n onSuccess.emit(res)\n }).catch(res => {\n onFail.emit(res)\n }).finally(() => {\n onComplete.emit()\n })\n }\n }\n\n render () {\n const { isHover, hoverClass } = this\n\n return (\n <Host\n class={classNames({\n [hoverClass]: isHover\n })}\n />\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as o,h as r,H as t}from"./p-5bfefd19.js";import{n as s}from"./p-6a96da58.js";import"@tarojs/taro";const a=class{constructor(r){o(this,r)}componentDidLoad(){s("AdCustom",this)}render(){return r(t,null)}};export{a as taro_ad_custom_core};
|
|
2
|
+
//# sourceMappingURL=p-3e6b29c6.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/ad-custom/ad-custom.tsx"],"names":["AdCustom","[object Object]","notSupport","this","h","Host"],"mappings":"iHAOaA,EAAQ,+BACnBC,mBACEC,EAAW,WAAYC,MAGzBF,SACE,OACEG,EAACC,EAAI","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-ad-custom-core'\n})\nexport class AdCustom implements ComponentInterface {\n componentDidLoad () {\n notSupport('AdCustom', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-8a8f286f.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_custom_wrapper_core",function(){function t(t){r(this,t)}t.prototype.render=function(){return e(n,null)};return t}())}}}));
|
|
2
|
+
//# sourceMappingURL=p-439a3349.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/custom-wrapper/custom-wrapper.tsx"],"names":["CustomWrapper","exports","class_1","prototype","render","h","Host"],"mappings":"sJAKaA,EAAaC,EAAA,2BAAA,mCACxBC,EAAAC,UAAAC,OAAA,WACE,OACEC,EAACC,EAAI,gBAHe","sourcesContent":["import { Component, h, Host, ComponentInterface } from '@stencil/core'\n\n@Component({\n tag: 'taro-custom-wrapper-core'\n})\nexport class CustomWrapper implements ComponentInterface {\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-8a8f286f.system.js","./p-15e45ed6.system.js","@tarojs/taro"],(function(t){"use strict";var e,n,r,o;return{setters:[function(t){e=t.r;n=t.h;r=t.H},function(t){o=t.n},function(){}],execute:function(){var i=t("taro_live_player_core",function(){function t(t){e(this,t)}t.prototype.componentDidLoad=function(){o("LivePlayer",this)};t.prototype.render=function(){return n(r,null)};return t}())}}}));
|
|
2
|
+
//# sourceMappingURL=p-45b6ea0c.system.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["src/components/live-player/live-player.tsx"],"names":["LivePlayer","exports","class_1","prototype","componentDidLoad","notSupport","this","render","h","Host"],"mappings":"gOAOaA,EAAUC,EAAA,wBAAA,mCACrBC,EAAAC,UAAAC,iBAAA,WACEC,EAAW,aAAcC,OAG3BJ,EAAAC,UAAAI,OAAA,WACE,OACEC,EAACC,EAAI,gBAPY","sourcesContent":["import { Component, ComponentInterface, h, Host } from '@stencil/core'\n\nimport { notSupport } from '../../utils'\n\n@Component({\n tag: 'taro-live-player-core'\n})\nexport class LivePlayer implements ComponentInterface {\n componentDidLoad () {\n notSupport('LivePlayer', this)\n }\n\n render () {\n return (\n <Host />\n )\n }\n}\n"]}
|