cty-mui-core 1.0.37 → 1.0.39
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/components/audio-recorder.js +27 -0
- package/components/camera.js +128 -30
- package/components/circle.js +3 -3
- package/components/crop-image.js +1 -1
- package/components/cty-camera-photo.js +112 -37
- package/components/cty-canvas-board.js +1 -1
- package/components/cty-canvas-video.js +1 -1
- package/components/cty-cascader-view.js +3 -3
- package/components/cty-cascader.js +1 -1
- package/components/cty-count-down.js +2 -2
- package/components/cty-dropdown.js +4 -4
- package/components/cty-empty.js +1 -1
- package/components/cty-floating-bubble.js +1 -1
- package/components/cty-floating-panel.js +4 -4
- package/components/cty-image-upload.js +1 -1
- package/components/cty-index-bar.js +2 -2
- package/components/cty-keyboard.js +1 -1
- package/components/cty-loading.js +1 -1
- package/components/cty-media-capture.js +56 -4
- package/components/cty-notice-bar.js +1 -1
- package/components/cty-pdf-viewer.js +1 -1
- package/components/cty-permission-alert.d.ts +11 -0
- package/components/cty-permission-alert.js +6 -0
- package/components/cty-progress.js +1 -1
- package/components/cty-quick-access.js +1 -1
- package/components/cty-rate.js +1 -1
- package/components/cty-record.js +66 -9
- package/components/cty-segment-slides.js +1 -1
- package/components/cty-selector.js +1 -1
- package/components/cty-share-sheet.js +1 -1
- package/components/cty-side-panel.js +1 -1
- package/components/cty-stepper.js +10 -2
- package/components/cty-steps.js +1 -1
- package/components/cty-text-ellipsis.js +2 -2
- package/components/cty-title-bar.js +1 -1
- package/components/cty-tour.js +4 -4
- package/components/cty-tutorial.js +1 -1
- package/components/cty-video.js +2 -2
- package/components/cty-virtual-list.js +12 -7
- package/components/divider.js +2 -2
- package/components/icon.js +1 -1
- package/components/image-picker.js +69 -5
- package/components/image-viewer.js +10 -5
- package/components/index.js +65 -2
- package/components/nav-bar.js +1 -1
- package/components/overlay.js +1 -1
- package/components/permission-alert.js +84 -0
- package/components/permission-purpose.js +1 -1
- package/components/swipe-item.js +2 -2
- package/components/swipe.js +1 -1
- package/components/swiper.js +5 -1
- package/components/video-capture.js +28 -1
- package/dist/cjs/{audio-recorder-ChGIymnF.js → audio-recorder-D3rqlSLq.js} +27 -0
- package/dist/cjs/{camera-preview-CTbXcOZK.js → camera-preview-BylkRIcS.js} +29 -2
- package/dist/cjs/cty-alert_2.cjs.entry.js +26 -67
- package/dist/cjs/cty-camera-photo.cjs.entry.js +59 -8
- package/dist/cjs/cty-camera_2.cjs.entry.js +83 -11
- package/dist/cjs/cty-canvas-board.cjs.entry.js +1 -1
- package/dist/cjs/cty-canvas-video.cjs.entry.js +1 -1
- package/dist/cjs/cty-cascader-view.cjs.entry.js +3 -3
- package/dist/cjs/cty-cascader.cjs.entry.js +1 -1
- package/dist/cjs/cty-circle.cjs.entry.js +82 -0
- package/dist/cjs/cty-count-down.cjs.entry.js +2 -2
- package/dist/cjs/cty-divider.cjs.entry.js +2 -2
- package/dist/cjs/cty-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/cty-empty.cjs.entry.js +1 -1
- package/dist/cjs/cty-floating-bubble.cjs.entry.js +1 -1
- package/dist/cjs/cty-floating-panel.cjs.entry.js +4 -4
- package/dist/cjs/cty-icon.cjs.entry.js +1 -1
- package/dist/cjs/cty-image-upload.cjs.entry.js +1 -1
- package/dist/cjs/cty-image-viewer_6.cjs.entry.js +15 -7
- package/dist/cjs/cty-index-bar.cjs.entry.js +2 -2
- package/dist/cjs/cty-keyboard.cjs.entry.js +1 -1
- package/dist/cjs/cty-loading.cjs.entry.js +1 -1
- package/dist/cjs/cty-media-capture.cjs.entry.js +33 -3
- package/dist/cjs/cty-mui.cjs.js +1 -1
- package/dist/cjs/cty-notice-bar.cjs.entry.js +1 -1
- package/dist/cjs/cty-overlay.cjs.entry.js +1 -1
- package/dist/cjs/cty-pdf-viewer.cjs.entry.js +1 -1
- package/dist/cjs/cty-permission-purpose.cjs.entry.js +1 -1
- package/dist/cjs/cty-progress.cjs.entry.js +1 -1
- package/dist/cjs/cty-quick-access.cjs.entry.js +1 -1
- package/dist/cjs/cty-rate.cjs.entry.js +1 -1
- package/dist/cjs/cty-record.cjs.entry.js +49 -2
- package/dist/cjs/cty-segment-slides.cjs.entry.js +1 -1
- package/dist/cjs/cty-selector.cjs.entry.js +1 -1
- package/dist/cjs/cty-share-sheet.cjs.entry.js +1 -1
- package/dist/cjs/cty-side-panel.cjs.entry.js +1 -1
- package/dist/cjs/cty-stepper.cjs.entry.js +9 -2
- package/dist/cjs/cty-steps.cjs.entry.js +1 -1
- package/dist/cjs/cty-swipe_2.cjs.entry.js +3 -3
- package/dist/cjs/cty-text-ellipsis.cjs.entry.js +2 -2
- package/dist/cjs/cty-title-bar.cjs.entry.js +1 -1
- package/dist/cjs/cty-tour.cjs.entry.js +4 -4
- package/dist/cjs/cty-tutorial.cjs.entry.js +1 -1
- package/dist/cjs/cty-video.cjs.entry.js +2 -2
- package/dist/cjs/cty-virtual-list.cjs.entry.js +11 -7
- package/dist/cjs/{image-picker-BoG8_gzp.js → image-picker-C9sdhsR_.js} +40 -3
- package/dist/cjs/index.cjs.js +68 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{video-capture-C-HjTI17.js → video-capture-BO4sLa1e.js} +28 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/camera/camera.js +188 -9
- package/dist/collection/components/camera-photo/camera-photo.js +126 -8
- package/dist/collection/components/canvas-board/canvas-board.js +1 -1
- package/dist/collection/components/canvas-video/canvas-video.js +1 -1
- package/dist/collection/components/cascader/cascader.js +1 -1
- package/dist/collection/components/cascader-view/cascader-view.js +3 -3
- package/dist/collection/components/circle/circle.js +3 -3
- package/dist/collection/components/count-down/count-down.js +2 -2
- package/dist/collection/components/crop-image/crop-image.js +1 -1
- package/dist/collection/components/divider/divider.js +2 -2
- package/dist/collection/components/dropdown/dropdown.js +4 -4
- package/dist/collection/components/empty/empty.js +1 -1
- package/dist/collection/components/floating-bubble/floating-bubble.js +1 -1
- package/dist/collection/components/floating-panel/floating-panel.css +1 -0
- package/dist/collection/components/floating-panel/floating-panel.js +3 -3
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/image-upload/image-upload.js +1 -1
- package/dist/collection/components/image-viewer/image-viewer.css +139 -2
- package/dist/collection/components/image-viewer/image-viewer.js +10 -5
- package/dist/collection/components/index-bar/index-bar.js +2 -2
- package/dist/collection/components/keyboard/keyboard.js +1 -1
- package/dist/collection/components/loading/loading.js +1 -1
- package/dist/collection/components/media-capture/media-capture.js +98 -3
- package/dist/collection/components/nav-bar/nav-bar.js +1 -1
- package/dist/collection/components/notice-bar/notice-bar.js +1 -1
- package/dist/collection/components/overlay/overlay.js +1 -1
- package/dist/collection/components/pdf-viewer/pdf-viewer.js +1 -1
- package/dist/collection/components/permission-alert/permission-alert.css +57 -0
- package/dist/collection/components/permission-alert/permission-alert.js +196 -0
- package/dist/collection/components/permission-purpose/permission-purpose.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/quick-access/quick-access.js +1 -1
- package/dist/collection/components/rate/rate.js +1 -1
- package/dist/collection/components/record/record.js +113 -1
- package/dist/collection/components/segment-slides/segment-slides.js +1 -1
- package/dist/collection/components/selector/selector.js +1 -1
- package/dist/collection/components/share-sheet/share-sheet.js +1 -1
- package/dist/collection/components/side-panel/side-panel.js +1 -1
- package/dist/collection/components/stepper/stepper.css +5 -2
- package/dist/collection/components/stepper/stepper.js +32 -1
- package/dist/collection/components/steps/steps.js +1 -1
- package/dist/collection/components/swipe/swipe.js +1 -1
- package/dist/collection/components/swipe-item/swipe-item.js +2 -2
- package/dist/collection/components/swiper/swiper.js +5 -1
- package/dist/collection/components/text-ellipsis/text-ellipsis.js +2 -2
- package/dist/collection/components/title-bar/title-bar.js +1 -1
- package/dist/collection/components/tour/tour.js +4 -4
- package/dist/collection/components/tutorial/tutorial.js +1 -1
- package/dist/collection/components/video/video.js +2 -2
- package/dist/collection/components/virtual-list/virtual-list.css +2 -5
- package/dist/collection/components/virtual-list/virtual-list.js +33 -6
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/native/audio-recorder.js +27 -0
- package/dist/collection/utils/native/camera-preview.js +29 -2
- package/dist/collection/utils/native/image-picker.js +40 -3
- package/dist/collection/utils/native/media-editor.js +62 -0
- package/dist/collection/utils/native/video-capture.js +28 -1
- package/dist/cty-mui/cty-mui.esm.js +1 -1
- package/dist/cty-mui/index.esm.js +1 -1
- package/dist/cty-mui/{p-a586fcb6.entry.js → p-005c9f17.entry.js} +1 -1
- package/dist/cty-mui/{p-9ba0f75c.entry.js → p-01a57e66.entry.js} +1 -1
- package/dist/cty-mui/{p-a8ada422.system.entry.js → p-0c4881aa.system.entry.js} +1 -1
- package/dist/cty-mui/{p-587210af.system.entry.js → p-1a3bf306.system.entry.js} +1 -1
- package/dist/cty-mui/{p-4f60b693.entry.js → p-1aca5f5b.entry.js} +1 -1
- package/dist/cty-mui/{p-475efd63.entry.js → p-1e4ee703.entry.js} +1 -1
- package/dist/cty-mui/{p-afc54cf3.entry.js → p-2005bf43.entry.js} +1 -1
- package/dist/cty-mui/{p-90f8d468.system.entry.js → p-20ce6b1f.system.entry.js} +1 -1
- package/dist/cty-mui/{p-c91ca631.system.entry.js → p-216d0332.system.entry.js} +1 -1
- package/dist/cty-mui/{p-e66d35a9.system.entry.js → p-222b8c9f.system.entry.js} +1 -1
- package/dist/cty-mui/{p-5ea1965a.system.entry.js → p-2236e06d.system.entry.js} +1 -1
- package/dist/cty-mui/p-27e63575.entry.js +1 -0
- package/dist/cty-mui/{p-ff973e68.system.entry.js → p-2b46cac8.system.entry.js} +1 -1
- package/dist/cty-mui/{p-d74dbc79.system.entry.js → p-398dc564.system.entry.js} +1 -1
- package/dist/cty-mui/{p-d62ba819.system.entry.js → p-3f47c7cc.system.entry.js} +1 -1
- package/dist/cty-mui/{p-8bfd28fc.entry.js → p-3fdb16af.entry.js} +1 -1
- package/dist/cty-mui/{p-2b0dc5e3.entry.js → p-4113a97c.entry.js} +1 -1
- package/dist/cty-mui/{p-49341ac0.system.entry.js → p-4377a67a.system.entry.js} +1 -1
- package/dist/cty-mui/{p-a5537cb3.system.entry.js → p-44748654.system.entry.js} +1 -1
- package/dist/cty-mui/p-46c45956.system.entry.js +1 -0
- package/dist/cty-mui/{p-f9f7ee85.entry.js → p-49712aa2.entry.js} +1 -1
- package/dist/cty-mui/{p-4890b69c.system.entry.js → p-49a6a0d2.system.entry.js} +1 -1
- package/dist/cty-mui/{p-5645d522.system.entry.js → p-4f53841f.system.entry.js} +1 -1
- package/dist/cty-mui/{p-b1f6e59c.entry.js → p-5087335d.entry.js} +1 -1
- package/dist/cty-mui/{p-d4915a3a.system.entry.js → p-520f708a.system.entry.js} +1 -1
- package/dist/cty-mui/p-5d4ba642.system.entry.js +1 -0
- package/dist/cty-mui/{p-ad85921c.entry.js → p-5d57fcbf.entry.js} +1 -1
- package/dist/cty-mui/{p-9d07466a.system.entry.js → p-5ec43731.system.entry.js} +1 -1
- package/dist/cty-mui/p-608ba84c.entry.js +1 -0
- package/dist/cty-mui/{p-cdee2447.system.entry.js → p-6179c262.system.entry.js} +1 -1
- package/dist/cty-mui/{p-55a730c1.system.entry.js → p-685dc602.system.entry.js} +1 -1
- package/dist/cty-mui/{p-5d59f92f.system.entry.js → p-688e3d13.system.entry.js} +1 -1
- package/dist/cty-mui/{p-7530dbf4.entry.js → p-6a2cde81.entry.js} +1 -1
- package/dist/cty-mui/{p-f4775bbd.system.entry.js → p-6acaf6b0.system.entry.js} +1 -1
- package/dist/cty-mui/p-6b00dff7.system.entry.js +1 -0
- package/dist/cty-mui/{p-3e894981.entry.js → p-6b90bc73.entry.js} +1 -1
- package/dist/cty-mui/p-6ff6ece0.entry.js +1 -0
- package/dist/cty-mui/{p-5029b2d1.entry.js → p-7067cc1e.entry.js} +1 -1
- package/dist/cty-mui/{p-a02134a3.entry.js → p-738694f5.entry.js} +1 -1
- package/dist/cty-mui/{p-c36ad14e.entry.js → p-79c493eb.entry.js} +1 -1
- package/dist/cty-mui/p-81a6cd2f.system.entry.js +1 -0
- package/dist/cty-mui/{p-019cfadb.entry.js → p-83b3627e.entry.js} +1 -1
- package/dist/cty-mui/p-83e63668.entry.js +1 -0
- package/dist/cty-mui/p-85a69c15.entry.js +1 -0
- package/dist/cty-mui/{p-edc23b12.system.entry.js → p-86fc18c6.system.entry.js} +1 -1
- package/dist/cty-mui/{p-71a51c66.system.entry.js → p-88f257ae.system.entry.js} +1 -1
- package/dist/cty-mui/p-8a3f8bbc.system.entry.js +1 -0
- package/dist/cty-mui/{p-844ef4f2.system.entry.js → p-933ae9d4.system.entry.js} +1 -1
- package/dist/cty-mui/{p-c2833f8f.entry.js → p-9a3a8e96.entry.js} +1 -1
- package/dist/cty-mui/p-B0tecevi.system.js +1 -0
- package/dist/cty-mui/p-BR2ny4zu.system.js +1 -0
- package/dist/cty-mui/p-Bkucjxe0.js +1 -0
- package/dist/cty-mui/p-Bntx5BKz.js +1 -0
- package/dist/cty-mui/p-CElxzE6f.system.js +1 -0
- package/dist/cty-mui/p-CPg00410.system.js +1 -0
- package/dist/cty-mui/p-CeJSms5W.js +1 -0
- package/dist/cty-mui/p-Cegbc1c7.system.js +1 -1
- package/dist/cty-mui/p-CnG0E7wf.js +1 -0
- package/dist/cty-mui/p-D5J8bYlQ.system.js +1 -0
- package/dist/cty-mui/{p-2518352c.system.entry.js → p-a0390733.system.entry.js} +1 -1
- package/dist/cty-mui/{p-36619007.entry.js → p-a0aec994.entry.js} +1 -1
- package/dist/cty-mui/{p-5528eb5e.entry.js → p-a2a4f620.entry.js} +1 -1
- package/dist/cty-mui/p-a337c7a9.system.entry.js +1 -0
- package/dist/cty-mui/{p-b00db557.system.entry.js → p-a68cdc7f.system.entry.js} +1 -1
- package/dist/cty-mui/{p-215219ca.entry.js → p-a77a236d.entry.js} +1 -1
- package/dist/cty-mui/{p-14d54127.system.entry.js → p-ae133756.system.entry.js} +1 -1
- package/dist/cty-mui/p-aeb79634.entry.js +1 -0
- package/dist/cty-mui/p-b295f647.entry.js +1 -0
- package/dist/cty-mui/{p-df2367ca.system.entry.js → p-b4ad5f38.system.entry.js} +1 -1
- package/dist/cty-mui/{p-99ce288e.entry.js → p-b6dfc8cc.entry.js} +1 -1
- package/dist/cty-mui/{p-97d899b3.entry.js → p-b8350f6b.entry.js} +1 -1
- package/dist/cty-mui/p-bfcd0ee8.entry.js +1 -0
- package/dist/cty-mui/{p-d0c16dfb.system.entry.js → p-c997e644.system.entry.js} +1 -1
- package/dist/cty-mui/{p-a88f7145.system.entry.js → p-cb2be37d.system.entry.js} +1 -1
- package/dist/cty-mui/p-ccc21f2e.entry.js +1 -0
- package/dist/cty-mui/{p-a4ec9006.entry.js → p-cd172ce5.entry.js} +1 -1
- package/dist/cty-mui/{p-ddd7a69a.system.entry.js → p-d030a500.system.entry.js} +1 -1
- package/dist/cty-mui/{p-d390049b.system.entry.js → p-d418bc6c.system.entry.js} +1 -1
- package/dist/cty-mui/{p-bd9c8e43.entry.js → p-d80da6a9.entry.js} +1 -1
- package/dist/cty-mui/{p-d94cdb9d.entry.js → p-d91dd1fd.entry.js} +1 -1
- package/dist/cty-mui/{p-3080e6c5.entry.js → p-d99e0f79.entry.js} +1 -1
- package/dist/cty-mui/{p-9cf3001f.system.entry.js → p-dd267090.system.entry.js} +1 -1
- package/dist/cty-mui/{p-3c8e24c4.system.entry.js → p-e0177323.system.entry.js} +1 -1
- package/dist/cty-mui/{p-b0056ff5.entry.js → p-e0bc62cf.entry.js} +1 -1
- package/dist/cty-mui/{p-cbd8842f.system.entry.js → p-e2ce5d7f.system.entry.js} +1 -1
- package/dist/cty-mui/{p-5a33becc.entry.js → p-e3653feb.entry.js} +1 -1
- package/dist/cty-mui/p-e3b5c1fc.system.entry.js +4 -0
- package/dist/cty-mui/{p-e55ab7ee.entry.js → p-e8f1c2e2.entry.js} +1 -1
- package/dist/cty-mui/{p-1c082713.entry.js → p-e92747c2.entry.js} +1 -1
- package/dist/cty-mui/{p-8e03fe9c.entry.js → p-ed751d9b.entry.js} +1 -1
- package/dist/cty-mui/{p-0e982b61.system.entry.js → p-eff6c534.system.entry.js} +1 -1
- package/dist/cty-mui/{p-5524f103.system.entry.js → p-f06ed732.system.entry.js} +1 -1
- package/dist/cty-mui/p-f3eca262.entry.js +5 -0
- package/dist/cty-mui/p-fbc7fe30.entry.js +1 -0
- package/dist/docs.json +780 -45
- package/dist/esm/{audio-recorder-CbuBJ-u7.js → audio-recorder-vTQ1Jf9u.js} +27 -0
- package/dist/esm/{camera-preview-SS7McUtz.js → camera-preview-Bntx5BKz.js} +29 -2
- package/dist/esm/cty-alert_2.entry.js +26 -67
- package/dist/esm/cty-camera-photo.entry.js +59 -8
- package/dist/esm/cty-camera_2.entry.js +83 -11
- package/dist/esm/cty-canvas-board.entry.js +1 -1
- package/dist/esm/cty-canvas-video.entry.js +1 -1
- package/dist/esm/cty-cascader-view.entry.js +3 -3
- package/dist/esm/cty-cascader.entry.js +1 -1
- package/dist/esm/cty-circle.entry.js +80 -0
- package/dist/esm/cty-count-down.entry.js +2 -2
- package/dist/esm/cty-divider.entry.js +2 -2
- package/dist/esm/cty-dropdown.entry.js +4 -4
- package/dist/esm/cty-empty.entry.js +1 -1
- package/dist/esm/cty-floating-bubble.entry.js +1 -1
- package/dist/esm/cty-floating-panel.entry.js +4 -4
- package/dist/esm/cty-icon.entry.js +1 -1
- package/dist/esm/cty-image-upload.entry.js +1 -1
- package/dist/esm/cty-image-viewer_6.entry.js +15 -7
- package/dist/esm/cty-index-bar.entry.js +2 -2
- package/dist/esm/cty-keyboard.entry.js +1 -1
- package/dist/esm/cty-loading.entry.js +1 -1
- package/dist/esm/cty-media-capture.entry.js +33 -3
- package/dist/esm/cty-mui.js +1 -1
- package/dist/esm/cty-notice-bar.entry.js +1 -1
- package/dist/esm/cty-overlay.entry.js +1 -1
- package/dist/esm/cty-pdf-viewer.entry.js +1 -1
- package/dist/esm/cty-permission-purpose.entry.js +1 -1
- package/dist/esm/cty-progress.entry.js +1 -1
- package/dist/esm/cty-quick-access.entry.js +1 -1
- package/dist/esm/cty-rate.entry.js +1 -1
- package/dist/esm/cty-record.entry.js +49 -2
- package/dist/esm/cty-segment-slides.entry.js +1 -1
- package/dist/esm/cty-selector.entry.js +1 -1
- package/dist/esm/cty-share-sheet.entry.js +1 -1
- package/dist/esm/cty-side-panel.entry.js +1 -1
- package/dist/esm/cty-stepper.entry.js +9 -2
- package/dist/esm/cty-steps.entry.js +1 -1
- package/dist/esm/cty-swipe_2.entry.js +3 -3
- package/dist/esm/cty-text-ellipsis.entry.js +2 -2
- package/dist/esm/cty-title-bar.entry.js +1 -1
- package/dist/esm/cty-tour.entry.js +4 -4
- package/dist/esm/cty-tutorial.entry.js +1 -1
- package/dist/esm/cty-video.entry.js +2 -2
- package/dist/esm/cty-virtual-list.entry.js +11 -7
- package/dist/esm/{image-picker-FShbNAm_.js → image-picker-0JHjPizE.js} +40 -3
- package/dist/esm/index.js +69 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{video-capture-B1wGDp4R.js → video-capture-B83C8hW9.js} +28 -1
- package/dist/esm-es5/audio-recorder-vTQ1Jf9u.js +1 -0
- package/dist/esm-es5/camera-preview-Bntx5BKz.js +1 -0
- package/dist/esm-es5/cty-alert_2.entry.js +1 -1
- package/dist/esm-es5/cty-camera-photo.entry.js +1 -1
- package/dist/esm-es5/cty-camera_2.entry.js +1 -1
- package/dist/esm-es5/cty-canvas-board.entry.js +1 -1
- package/dist/esm-es5/cty-canvas-video.entry.js +1 -1
- package/dist/esm-es5/cty-cascader-view.entry.js +1 -1
- package/dist/esm-es5/cty-cascader.entry.js +1 -1
- package/dist/esm-es5/cty-circle.entry.js +1 -0
- package/dist/esm-es5/cty-count-down.entry.js +1 -1
- package/dist/esm-es5/cty-divider.entry.js +1 -1
- package/dist/esm-es5/cty-dropdown.entry.js +1 -1
- package/dist/esm-es5/cty-empty.entry.js +1 -1
- package/dist/esm-es5/cty-floating-bubble.entry.js +1 -1
- package/dist/esm-es5/cty-floating-panel.entry.js +1 -1
- package/dist/esm-es5/cty-icon.entry.js +1 -1
- package/dist/esm-es5/cty-image-upload.entry.js +1 -1
- package/dist/esm-es5/cty-image-viewer_6.entry.js +2 -2
- package/dist/esm-es5/cty-index-bar.entry.js +1 -1
- package/dist/esm-es5/cty-keyboard.entry.js +1 -1
- package/dist/esm-es5/cty-loading.entry.js +1 -1
- package/dist/esm-es5/cty-media-capture.entry.js +1 -1
- package/dist/esm-es5/cty-mui.js +1 -1
- package/dist/esm-es5/cty-notice-bar.entry.js +1 -1
- package/dist/esm-es5/cty-overlay.entry.js +1 -1
- package/dist/esm-es5/cty-pdf-viewer.entry.js +1 -1
- package/dist/esm-es5/cty-permission-purpose.entry.js +1 -1
- package/dist/esm-es5/cty-progress.entry.js +1 -1
- package/dist/esm-es5/cty-quick-access.entry.js +1 -1
- package/dist/esm-es5/cty-rate.entry.js +1 -1
- package/dist/esm-es5/cty-record.entry.js +1 -1
- package/dist/esm-es5/cty-segment-slides.entry.js +1 -1
- package/dist/esm-es5/cty-selector.entry.js +1 -1
- package/dist/esm-es5/cty-share-sheet.entry.js +1 -1
- package/dist/esm-es5/cty-side-panel.entry.js +1 -1
- package/dist/esm-es5/cty-stepper.entry.js +1 -1
- package/dist/esm-es5/cty-steps.entry.js +1 -1
- package/dist/esm-es5/cty-swipe_2.entry.js +1 -1
- package/dist/esm-es5/cty-text-ellipsis.entry.js +1 -1
- package/dist/esm-es5/cty-title-bar.entry.js +1 -1
- package/dist/esm-es5/cty-tour.entry.js +1 -1
- package/dist/esm-es5/cty-tutorial.entry.js +1 -1
- package/dist/esm-es5/cty-video.entry.js +1 -1
- package/dist/esm-es5/cty-virtual-list.entry.js +1 -1
- package/dist/esm-es5/image-picker-0JHjPizE.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/video-capture-B83C8hW9.js +1 -0
- package/dist/types/components/camera/camera.d.ts +14 -1
- package/dist/types/components/camera-photo/camera-photo.d.ts +11 -1
- package/dist/types/components/image-viewer/image-viewer.d.ts +1 -0
- package/dist/types/components/media-capture/media-capture.d.ts +8 -0
- package/dist/types/components/permission-alert/permission-alert.d.ts +17 -0
- package/dist/types/components/record/record.d.ts +9 -0
- package/dist/types/components/stepper/stepper.d.ts +1 -0
- package/dist/types/components/swiper/swiper.d.ts +1 -0
- package/dist/types/components/virtual-list/virtual-list.d.ts +1 -1
- package/dist/types/components.d.ts +75 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/native/audio-recorder.d.ts +3 -0
- package/dist/types/utils/native/camera-preview.d.ts +9 -1
- package/dist/types/utils/native/image-picker.d.ts +8 -0
- package/dist/types/utils/native/media-editor.d.ts +45 -0
- package/dist/types/utils/native/video-capture.d.ts +3 -0
- package/package.json +2 -2
- package/dist/cty-mui/p-1078ee6a.system.entry.js +0 -1
- package/dist/cty-mui/p-1cb056b2.system.entry.js +0 -1
- package/dist/cty-mui/p-1d3aca02.entry.js +0 -1
- package/dist/cty-mui/p-2F5bjTGm.system.js +0 -1
- package/dist/cty-mui/p-3f54848b.entry.js +0 -1
- package/dist/cty-mui/p-4XVRwqXU.js +0 -1
- package/dist/cty-mui/p-62a9c160.entry.js +0 -1
- package/dist/cty-mui/p-68d73325.entry.js +0 -5
- package/dist/cty-mui/p-6dddba8f.system.entry.js +0 -1
- package/dist/cty-mui/p-751ca0a3.system.entry.js +0 -4
- package/dist/cty-mui/p-8b03016d.entry.js +0 -1
- package/dist/cty-mui/p-C6cVxtBr.system.js +0 -1
- package/dist/cty-mui/p-CcRtmdkf.system.js +0 -1
- package/dist/cty-mui/p-D0fcC0rL.js +0 -1
- package/dist/cty-mui/p-DTfCyY9u.system.js +0 -1
- package/dist/cty-mui/p-Dty0N6Ky.system.js +0 -1
- package/dist/cty-mui/p-SS7McUtz.js +0 -1
- package/dist/cty-mui/p-adc25955.system.entry.js +0 -1
- package/dist/cty-mui/p-c3bb2f2a.entry.js +0 -1
- package/dist/cty-mui/p-db2289f6.entry.js +0 -1
- package/dist/cty-mui/p-ea36cfac.entry.js +0 -1
- package/dist/cty-mui/p-f57da567.system.entry.js +0 -1
- package/dist/cty-mui/p-fd7e26fd.entry.js +0 -1
- package/dist/cty-mui/p-ff4436a4.entry.js +0 -1
- package/dist/cty-mui/p-fpbYSnt8.js +0 -1
- package/dist/esm-es5/audio-recorder-CbuBJ-u7.js +0 -1
- package/dist/esm-es5/camera-preview-SS7McUtz.js +0 -1
- package/dist/esm-es5/image-picker-FShbNAm_.js +0 -1
- package/dist/esm-es5/video-capture-B1wGDp4R.js +0 -1
package/components/cty-tour.js
CHANGED
|
@@ -115,10 +115,10 @@ const Tour = /*@__PURE__*/ proxyCustomElement(class Tour extends HTMLElement {
|
|
|
115
115
|
const popoverClass = (Array.isArray(cssClass) ? [...cssClass] : [cssClass]).concat(['cty-tour__popover']).join(' ');
|
|
116
116
|
const tourCloseable = (currentStep === null || currentStep === void 0 ? void 0 : currentStep.closeable) || closeable;
|
|
117
117
|
const enableFooter = Array.isArray(steps) && steps.length > 1;
|
|
118
|
-
return (h(Host, { key: '
|
|
119
|
-
h("button", { key: '
|
|
120
|
-
h("button", { key: '
|
|
121
|
-
h("button", { key: '
|
|
118
|
+
return (h(Host, { key: 'c20c9812d53ac645f699af6d21bdf2b04fbe5fa9', class: "cty-tour overlay-hidden" }, display && h("cty-overlay", { key: '11db5947418d246a174dd1c9cd870dd0afc29a8c', root: '', backdropDismiss: false }, enableAopover && h("ion-popover", Object.assign({ key: 'fe79a7d4c18e73216d743c7640d821bca56ac0be', mode: "ios", ref: (el) => (this.popoverEl = el), arrow: tourArrow, animated: false, backdropDismiss: backdropDismiss, alignment: alignment, side: side, keepContentsMounted: true, class: popoverClass, onIonPopoverWillDismiss: (e) => this.popoverWillDismiss(e) }, popoverAttrs, { showBackdrop: false }), h("div", { key: 'cd001c3f042954beb4615503c3f24880c849a6ed', class: "cty-tour__clone-wrapper flex-center", ref: (el) => this.triggerCloneParentEl = el }), h("div", { key: '31bd94e6c17a63b303739be88930a014e0955f6a', class: { 'cty-tour__content': true, 'cty-tour__content-closeable': tourCloseable } }, h("slot", { key: '3b4d70d7a4052380cb490d15b02435d33b2284f1', name: "header" }), tourCloseable && h("slot", { key: 'e6062974840b0c35d045b315f0f95abd0610a3a2', name: "closeable" }, h("button", { key: 'ff766f423ae391118f5cf31157892a84f6f862b1', class: "cty-button-native cty-tour__closeable" }, h("cty-icon", { key: 'c661dfbe84da1d4feabebe49db01b18fed568c43', name: "cty-close2", onClick: () => this.dismiss('closeable') }))), currentStep.content && h("slot", { key: '50445c1c520cabb61a3105cf769eb9edaaf3b08a', name: "content" }, h("p", { key: 'fc84bc6e6ba8d6d25833de3693e17e551fb83d27', class: "cty-tour__content-inner" }, currentStep.content)), enableFooter && h("div", { key: '5d64c59373ec1b38f38baea7f07c0a3b47480a8d', class: "cty-tour__content-footer flex-center-between" }, h("slot", { key: '0c9a3e646198c08bd50e509a433aac065681aab2', name: "indicator" }, h("div", { key: '40299e8cd865d57bd380a8869a29db9b264ece21', class: "cty-tour__content-indicator" }, current + 1, "/", steps.length)), h("slot", { key: '46b2a0cbe6362d2585f64be21e65375553f7dd26', name: "buttons" }, h("div", { key: '028f7f7f87511cba69be398164f1e4a4aa4f81d6', class: "cty-tour__content-buttons flex" }, this.showPrev && current > 0 &&
|
|
119
|
+
h("button", { key: '539b635614cf98d56d81c460b8ebc9fa9d8b2a04', class: "cty-button-native cty-tour__content-prev", onClick: () => this.prevStep() }, this.prevText), current < steps.length - 1 &&
|
|
120
|
+
h("button", { key: 'bd7d1ee594b6612a301c7cecf46a551bcec14fc3', class: "cty-button-native cty-tour__content-next", onClick: () => this.nextStep() }, this.nextText), current === steps.length - 1 &&
|
|
121
|
+
h("button", { key: 'ecaf68c7cb34ed3e5be05933b266ed456b540d04', class: "cty-button-native cty-tour__content-complete", onClick: () => this.complete() }, this.completeText)))), h("slot", { key: '1258d20c2cffdb9370d235d3381e76f30530faec', name: "footer" }))))));
|
|
122
122
|
}
|
|
123
123
|
get el() { return this; }
|
|
124
124
|
static get watchers() { return {
|
|
@@ -99,7 +99,7 @@ const Tutorial = /*@__PURE__*/ proxyCustomElement(class Tutorial extends HTMLEle
|
|
|
99
99
|
indicator,
|
|
100
100
|
touchable
|
|
101
101
|
};
|
|
102
|
-
return (h(Host, { key: '
|
|
102
|
+
return (h(Host, { key: 'ee4bc639a14ea3a54a18a1a8e1afe2225962a715', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden': true }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-backdrop", { key: '396541fdb1b5dd85e9d12e12714e4e0c91599055', backdropDismiss: this.backdropDismiss, onCtyDismiss: () => this.dismiss() }, h("cty-banner", Object.assign({ key: '9c0b8e656c6306132cbc32051271e2f237e84577' }, attrs, { onClick: (e) => e.stopPropagation, onCtySwipeChange: (e) => this.handleSlideChange(e), onCtySwipeTap: (e) => this.handleSlideTap(e) }), h("slot", { key: '20b230b396c38b366a800d28ad0216bc14daaea7', slot: "start", name: "start" }), h("slot", { key: 'faddee7f9d8cfbd457f721b3442319842aeb0402', slot: "end", name: "end" })), this.closeable && h("slot", { key: 'd6b48b8ef0ed102f3f1dea0912b42050578e18e7', name: "close" }, h("button", { key: 'ffcd33c6fb5351fc9d325a6705504762e655aec0', class: "cty-tutorial__close cty-button-native", onClick: () => this.dismiss() }, h("cty-icon", { key: 'd75a2a170b43dac5ae3d259c79888bad039e1838', name: "cty-close2" }))))));
|
|
103
103
|
}
|
|
104
104
|
get el() { return this; }
|
|
105
105
|
static get watchers() { return {
|
package/components/cty-video.js
CHANGED
|
@@ -1209,12 +1209,12 @@ const Video = /*@__PURE__*/ proxyCustomElement(class Video extends HTMLElement {
|
|
|
1209
1209
|
}, onClick: (event) => event.stopPropagation(), style: { top: this.dotDotPanelTop, left: this.dotDotPanelLeft, opacity: this.reallyShowDot ? '1' : '0' } }, h("span", { class: "cty-video__dot-label cty-ellipsis2" }, this.currentMarker.describe), h("ion-button", { onClick: this._toPoint }, h("cty-icon", { name: "cty-play-ex" }), "\u77E5\u8BC6\u70B9"), h("span", { class: "cty-video__dot-triangle", style: { 'margin-left': this.triangleMargin + 'px' } }))), h("slot", { name: "ctrl" })));
|
|
1210
1210
|
}
|
|
1211
1211
|
render() {
|
|
1212
|
-
return (h(Host, { key: '
|
|
1212
|
+
return (h(Host, { key: 'bdbc355f9bb58b14c3c16f696f5e0de5dc66afb6', class: {
|
|
1213
1213
|
'cty-video': true,
|
|
1214
1214
|
'cty-video__vertical': this.deviceIsPORTRAIT,
|
|
1215
1215
|
'cty-video__unfullscreen': !this.curIsFullscreen,
|
|
1216
1216
|
'cty-video__large-screen': this.direction == 'P' && this.curIsFullscreen && (this.isPC || this.isIpad)
|
|
1217
|
-
} }, this.renderPlayer(), this.renderControls(), (!this.isLoading || this.isMicroMessager) && !this.isPlaying && !this.showInteractiveLayer && this.showTogglePlay && (h("ion-button", { key: '
|
|
1217
|
+
} }, this.renderPlayer(), this.renderControls(), (!this.isLoading || this.isMicroMessager) && !this.isPlaying && !this.showInteractiveLayer && this.showTogglePlay && (h("ion-button", { key: 'fc67d1c40664f33d2bf97bd60da93fc9f9b05797', part: "toggle-play", class: "cty-video__toggle-play flex-center", onClick: (e) => { this.toggleVideo(e); } }, h("cty-icon", { key: '16de825ccfbf288379a80b21c3824f88d16167d0', name: "cty-play" }))), !this.isWifi && !this.isPlaying && !this.isLoading && !this.isMicroMessager && this.trafficMsg && (h("div", { key: '78511cdd5bccdb454511d01ee6b12085e34a9aab', class: "cty-video__toast cty-ellipsis", part: "toast" }, this.trafficMsg)), this.warningMsg != '' && (h("div", { key: 'a0b3e28efdf3c8be7cd3168bfa48ea9678df5f9e', class: "cty-video__toast cty-ellipsis", part: "toast" }, this.warningMsg)), this.showPlayRate && (h("div", { key: '042083660f70096ce81e10a2edb0826e92362b8e', class: "cty-video__rate", onClick: () => this.showPlayRate = false }, h("div", { key: '723dc99ab748b524dbcff33e28ff791d4d0f928a', class: "cty-video__rate-mask flex-center-justify-end" }, h("div", { key: 'a5ee156efdffcf6297ddc6aeea395b8152bd19a3', class: "cty-video__rate-list" }, this._rates.map((item) => (h("button", { onClick: () => this.setPlayRate(item), class: { active: this.rate == item, 'cty-video__rate-list-item': true } }, h("span", null, item, "X")))))))), this.hasInteractive && this.curIsFullscreen && (h("div", { key: 'fbdc97434d797b98b07932cc26b19ddbc3956e2b', class: "cty-video__player cty-video__interactive", onClick: () => { }, ref: (el) => this.interactiveEl = el }))));
|
|
1218
1218
|
}
|
|
1219
1219
|
static get assetsDirs() { return ["assets"]; }
|
|
1220
1220
|
get el() { return this; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const virtualListCss = ":host{--cty-virtual-list-horizontal-item-margin-right:20px;--cty-virtual-list-vertical-item-margin-top:20px;--cty-virtual-list-horizontal-padding:10px
|
|
3
|
+
const virtualListCss = ":host{--cty-virtual-list-horizontal-item-margin-right:20px;--cty-virtual-list-vertical-item-margin-top:20px;--cty-virtual-list-horizontal-padding:10px;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}:host::-webkit-scrollbar{display:none}:host(.cty-virtual-list-horizontal-box){padding:var(--cty-virtual-list-horizontal-padding)}.cty-list-horizontal-scroll{overflow:hidden;float:left}.cty-list-horizontal-scroll .cty-virtual-list-item{display:block;float:left;margin-right:var(--cty-virtual-list-horizontal-item-margin-right)}.cty-list-horizontal-scroll:after{content:\"\";display:block;visibility:hidden;clear:both}.cty-list-vertical-scroll{overflow:hidden}.cty-list-vertical-scroll .cty-virtual-list-item{display:block;margin-top:var(--cty-virtual-list-vertical-item-margin-top)}.cty-virtual-list{width:100%;overflow:hidden;position:relative;-webkit-overflow-scrolling:touch}[dir=rtl] .cty-list-horizontal-scroll{float:right}[dir=rtl] .cty-list-horizontal-scroll .cty-virtual-list-item{float:right;margin-right:0;margin-left:var(--cty-virtual-list-horizontal-item-margin-right)}";
|
|
4
4
|
|
|
5
5
|
const VirtualList = /*@__PURE__*/ proxyCustomElement(class VirtualList extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -24,7 +24,7 @@ const VirtualList = /*@__PURE__*/ proxyCustomElement(class VirtualList extends H
|
|
|
24
24
|
lastVisibleIndex: 10 //最后一个可见元素的索引
|
|
25
25
|
};
|
|
26
26
|
this.handleScroll = () => {
|
|
27
|
-
requestAnimationFrame(() => this.onScroll(this.
|
|
27
|
+
requestAnimationFrame(() => this.onScroll(this.el));
|
|
28
28
|
};
|
|
29
29
|
this.getEndIndex = () => {
|
|
30
30
|
const dataLength = this.items.length;
|
|
@@ -60,7 +60,7 @@ const VirtualList = /*@__PURE__*/ proxyCustomElement(class VirtualList extends H
|
|
|
60
60
|
get containerSize() {
|
|
61
61
|
if (this.containerHeight)
|
|
62
62
|
return this.containerHeight;
|
|
63
|
-
const element =
|
|
63
|
+
const element = this.el.parentNode;
|
|
64
64
|
return this.isHorizontal ? element.offsetWidth : element.offsetHeight;
|
|
65
65
|
}
|
|
66
66
|
componentWillLoad() {
|
|
@@ -94,11 +94,10 @@ const VirtualList = /*@__PURE__*/ proxyCustomElement(class VirtualList extends H
|
|
|
94
94
|
this.updateVisibleItems();
|
|
95
95
|
}
|
|
96
96
|
async setupScrollListener() {
|
|
97
|
-
|
|
98
|
-
element.addEventListener('scroll', this.handleScroll);
|
|
97
|
+
this.el.addEventListener('scroll', this.handleScroll);
|
|
99
98
|
}
|
|
100
99
|
removeScrollListener() {
|
|
101
|
-
|
|
100
|
+
this.el.removeEventListener('scroll', this.handleScroll);
|
|
102
101
|
}
|
|
103
102
|
onScroll(element) {
|
|
104
103
|
const scrollSize = this.isHorizontal ? element.scrollLeft : element.scrollTop;
|
|
@@ -231,7 +230,12 @@ const VirtualList = /*@__PURE__*/ proxyCustomElement(class VirtualList extends H
|
|
|
231
230
|
return tempIndex || 0;
|
|
232
231
|
}
|
|
233
232
|
render() {
|
|
234
|
-
|
|
233
|
+
const { isHorizontal, containerSize, itemRender } = this;
|
|
234
|
+
return (h(Host, { key: '99f26c0adb28153adccc5ff0a055315a570e5efb', class: {
|
|
235
|
+
'cty-virtual-list-box': true,
|
|
236
|
+
'cty-virtual-list-horizontal-box': isHorizontal,
|
|
237
|
+
'cty-virtual-list-vertical-box': !isHorizontal
|
|
238
|
+
}, style: { height: isHorizontal ? '100px' : containerSize + 'px' } }, h("div", { key: '9478b315e9f16448a812da4a7e0f7cbfbc87dee8', class: "cty-virtual-list", style: this.getContainerStyle() }, h("div", { key: 'd4215360700e6c99b4622314dc8c2b4a36aa284c', class: isHorizontal ? 'cty-list-horizontal-scroll' : 'cty-list-vertical-scroll', style: this.getTransformStyle(), ref: el => this.itemsContainerEl = el }, this.visibleItems.map((item, i) => h("div", { class: "cty-virtual-list-item", "data-index": this.getDataIndex(i), style: { display: this.getDisplayStyle(i) } }, itemRender ? itemRender(item, i) : null))))));
|
|
235
239
|
}
|
|
236
240
|
get el() { return this; }
|
|
237
241
|
static get style() { return virtualListCss; }
|
|
@@ -239,6 +243,7 @@ const VirtualList = /*@__PURE__*/ proxyCustomElement(class VirtualList extends H
|
|
|
239
243
|
"items": [16],
|
|
240
244
|
"direction": [1],
|
|
241
245
|
"preloadItemCount": [2, "preload-item-count"],
|
|
246
|
+
"itemRender": [16, "item-render"],
|
|
242
247
|
"containerHeight": [2, "container-height"],
|
|
243
248
|
"itemKey": [1, "item-key"],
|
|
244
249
|
"visibleItems": [32]
|
package/components/divider.js
CHANGED
|
@@ -18,10 +18,10 @@ const Divider = /*@__PURE__*/ proxyCustomElement(class Divider extends HTMLEleme
|
|
|
18
18
|
render() {
|
|
19
19
|
const { vertical, placement, hasContent } = this;
|
|
20
20
|
const classRet = vertical ? `cty-divider__vertical` : hasContent ? `cty-divider__content-${placement}` : ``;
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: 'dfd49737a845112f77896befa6ac9926a1951f48', class: {
|
|
22
22
|
'cty-divider': true,
|
|
23
23
|
[classRet]: true
|
|
24
|
-
} }, h("slot", { key: '
|
|
24
|
+
} }, h("slot", { key: '8799145031bc0605e950b4f9d3cb6632d65fd54e' })));
|
|
25
25
|
}
|
|
26
26
|
get el() { return this; }
|
|
27
27
|
static get style() { return dividerCss; }
|
package/components/icon.js
CHANGED
|
@@ -40,7 +40,7 @@ const Icon = /*@__PURE__*/ proxyCustomElement(class Icon extends HTMLElement {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: '03ee82eb0f6aae454d57b5f3c09c4188c72e7a69', class: "cty-icon" }, h("ion-icon", { key: 'e31b63f0721af3ade7af2ae7bd6f4cfc3e6e15d1', src: this._src || undefined, name: this._name || undefined, icon: this._icon || null, size: this.size, color: this.color, lazy: this.lazy, flipRtl: this.flipRtl, sanitize: this.sanitize })));
|
|
44
44
|
}
|
|
45
45
|
static get assetsDirs() { return ["assets"]; }
|
|
46
46
|
get el() { return this; }
|
|
@@ -9,10 +9,37 @@ class CTYCameraPreview {
|
|
|
9
9
|
get isCameraPreviewAvailable() {
|
|
10
10
|
return !!this.cameraPreviewPlugin;
|
|
11
11
|
}
|
|
12
|
+
hasPermission() {
|
|
13
|
+
return new Promise((resolve, reject) => {
|
|
14
|
+
if (!this.isCameraPreviewAvailable) {
|
|
15
|
+
reject('Camera preview plugin is not available');
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
this.cameraPreviewPlugin.hasPermission((result) => resolve(result), (error) => reject(error));
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
requestPermission() {
|
|
22
|
+
return new Promise((resolve, reject) => {
|
|
23
|
+
if (!this.isCameraPreviewAvailable) {
|
|
24
|
+
reject('Camera preview plugin is not available');
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
this.cameraPreviewPlugin.requestPermission(() => resolve(), (error) => reject(error));
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
openAppSettings() {
|
|
31
|
+
return new Promise((resolve, reject) => {
|
|
32
|
+
if (!this.isCameraPreviewAvailable) {
|
|
33
|
+
reject('Camera preview plugin is not available');
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
this.cameraPreviewPlugin.openAppSettings(() => resolve(), (error) => reject(error));
|
|
37
|
+
});
|
|
38
|
+
}
|
|
12
39
|
startCamera(options) {
|
|
13
40
|
return new Promise((resolve, reject) => {
|
|
14
41
|
if (!this.isCameraPreviewAvailable) {
|
|
15
|
-
return reject('Camera
|
|
42
|
+
return reject('Camera preview plugin is not available');
|
|
16
43
|
}
|
|
17
44
|
this.cameraPreviewPlugin.startCamera(options, resolve, reject);
|
|
18
45
|
});
|
|
@@ -30,7 +57,7 @@ class CTYCameraPreview {
|
|
|
30
57
|
takePicture(options) {
|
|
31
58
|
return new Promise((resolve, reject) => {
|
|
32
59
|
this.cameraPreviewPlugin.takePicture(options, (data) => {
|
|
33
|
-
resolve(data
|
|
60
|
+
resolve(data);
|
|
34
61
|
}, reject);
|
|
35
62
|
});
|
|
36
63
|
}
|
|
@@ -179,7 +206,7 @@ class CTYImagePicker {
|
|
|
179
206
|
_pickMultiplePhotos(file = true, count = 1, imagePickerOptions) {
|
|
180
207
|
return new Promise(async (resolve, reject) => {
|
|
181
208
|
if (!this.isImagePickerAvailable) {
|
|
182
|
-
reject('Image
|
|
209
|
+
reject('Image picker plugin is not available');
|
|
183
210
|
return;
|
|
184
211
|
}
|
|
185
212
|
const option = {
|
|
@@ -192,8 +219,18 @@ class CTYImagePicker {
|
|
|
192
219
|
}
|
|
193
220
|
const imageList = [];
|
|
194
221
|
for (const data of results) {
|
|
195
|
-
|
|
196
|
-
|
|
222
|
+
let uri = data;
|
|
223
|
+
let thumbnail = '';
|
|
224
|
+
if (data && typeof data === 'object') {
|
|
225
|
+
uri = data.uri;
|
|
226
|
+
thumbnail = data.thumb;
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
uri = data;
|
|
230
|
+
}
|
|
231
|
+
const result = await this.formatPictureResult(file, uri);
|
|
232
|
+
const thumbResult = await imagePicker.formatPictureResult(file, thumbnail);
|
|
233
|
+
imageList.push(Object.assign(Object.assign({}, result), { thumbnail: thumbResult.url }));
|
|
197
234
|
}
|
|
198
235
|
resolve(imageList);
|
|
199
236
|
}, (error) => { reject(error); }, Object.assign(option, imagePickerOptions, {
|
|
@@ -271,6 +308,33 @@ class CTYImagePicker {
|
|
|
271
308
|
? this._captureSinglePhoto(file, false, imagePickerOptions)
|
|
272
309
|
: this._pickMultiplePhotos(file, count, imagePickerOptions);
|
|
273
310
|
}
|
|
311
|
+
hasPermission() {
|
|
312
|
+
return new Promise((resolve, reject) => {
|
|
313
|
+
if (!this.isImagePickerAvailable) {
|
|
314
|
+
reject('Image picker plugin is not available');
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
this._imagePickerPlugin.hasReadPermission((result) => resolve(result), (error) => reject(error));
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
requestPermission() {
|
|
321
|
+
return new Promise((resolve, reject) => {
|
|
322
|
+
if (!this.isImagePickerAvailable) {
|
|
323
|
+
reject('Image picker plugin is not available');
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
this._imagePickerPlugin.requestReadPermission((result) => resolve(result), (error) => reject(error));
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
openAppSettings() {
|
|
330
|
+
return new Promise((resolve, reject) => {
|
|
331
|
+
if (!this.isImagePickerAvailable) {
|
|
332
|
+
reject('Image picker plugin is not available');
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
335
|
+
this._imagePickerPlugin.openAppSettings(() => resolve(), (error) => reject(error));
|
|
336
|
+
});
|
|
337
|
+
}
|
|
274
338
|
getPictures(options) {
|
|
275
339
|
var _a, _b, _c, _d, _e, _f;
|
|
276
340
|
return (options === null || options === void 0 ? void 0 : options.camera)
|
|
@@ -7,7 +7,7 @@ import { d as defineCustomElement$3 } from './icon.js';
|
|
|
7
7
|
import { d as defineCustomElement$2 } from './swiper.js';
|
|
8
8
|
import { d as defineCustomElement$1 } from './icon2.js';
|
|
9
9
|
|
|
10
|
-
const imageViewerCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.cty-button-native{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;background:transparent;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;line-height:1;border:0;outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}:host{--cty-image-viewer-overlay-position:fixed;--cty-image-viewer-overlay-z-index:10;--cty-image-viewer-overlay-background:var(--cty-color-black);--cty-image-viewer-overlay-width:100vw;--cty-image-viewer-overlay-height:100vh;--cty-image-viewer-header-padding-top:var(--ion-safe-area-top, 44px);--cty-image-viewer-pager-padding:0;--cty-image-viewer-pager-index-color:var(--cty-text-color-white);--cty-image-viewer-pager-color:var(--cty-text-color-white);--cty-image-viewer-pager-font-size:var(--cty-font-size-extra-small);--cty-image-viewer-pager-align:center;--cty-image-viewer-pager-font-weight:600;--cty-image-viewer-pager-
|
|
10
|
+
const imageViewerCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.cty-button-native{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;background:transparent;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;line-height:1;border:0;outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}.flex{display:-ms-flexbox;display:flex}.flex-wrap{display:-ms-flexbox;display:flex;-ms-flex-flow:wrap;flex-flow:wrap}.flex-align-start{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.flex-align-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.flex-align-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end}.flex-justify-start{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}.flex-justify-center{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.flex-justify-end{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.flex-align-end-start{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:start;justify-content:flex-start}.flex-align-end-center{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}.flex-align-end-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:end;justify-content:flex-end}.flex-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-center-justify-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.flex-between{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.flex-center-between{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.flex-column{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}.flex-column-align-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center}.flex-column-justify-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:center;justify-content:center}.flex-column-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-column-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:justify;justify-content:space-between}.flex-column-center-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}:host{--cty-image-viewer-overlay-position:fixed;--cty-image-viewer-overlay-z-index:10;--cty-image-viewer-overlay-background:var(--cty-color-black);--cty-image-viewer-overlay-width:100vw;--cty-image-viewer-overlay-height:100vh;--cty-image-viewer-header-padding-top:var(--ion-safe-area-top, 44px);--cty-image-viewer-pager-padding:0;--cty-image-viewer-pager-index-color:var(--cty-text-color-white);--cty-image-viewer-pager-color:var(--cty-text-color-white);--cty-image-viewer-pager-font-size:var(--cty-font-size-extra-small);--cty-image-viewer-pager-align:center;--cty-image-viewer-pager-font-weight:600;--cty-image-viewer-pager-min-height:44px;--cty-image-viewer-pager-font-style:initial;--cty-image-viewer-close-offset-bottom:12px;--cty-image-viewer-close-offset-right:12px;--cty-image-viewer-close-color:var(--cty-text-color-white);--cty-image-viewer-close-size:20px;--cty-image-viewer-image-width:100%;--cty-image-viewer-image-height:auto}:host(.overlay-hidden){display:none}cty-backdrop{position:var(--cty-image-viewer-overlay-position);z-index:var(--cty-image-viewer-overlay-z-index);background:var(--cty-image-viewer-overlay-background);width:var(--cty-image-viewer-overlay-width);height:var(--cty-image-viewer-overlay-height)}.cty-image-viewer{position:relative;width:100%;height:100%}.cty-image-viewer__hidden{opacity:0}.cty-image-preview__header{position:absolute;z-index:2;top:0;left:0;width:100%;min-height:calc(var(--cty-image-viewer-header-padding-top) + var(--cty-image-viewer-pager-line-height));padding-top:var(--cty-image-viewer-header-padding-top)}.cty-image-preview__pager{padding:var(--cty-image-viewer-pager-padding);text-align:var(--cty-image-viewer-pager-align);min-height:var(--cty-image-viewer-pager-min-height);font-weight:var(--cty-image-viewer-pager-font-weight);font-size:var(--cty-image-viewer-pager-font-size);font-style:var(--cty-image-viewer-pager-font-style);color:var(--cty-image-viewer-pager-color)}.cty-image-preview__pager-text{width:var(--cty-image-viewer-pager-text-width, auto);padding:var(--cty-image-viewer-pager-text-padding, 0);background:var(--cty-image-viewer-pager-text-bg, transparent);border-radius:var(--cty-image-viewer-pager-text-border-radius, 0);border:var(--cty-image-viewer-pager-text-border, none);font-size:inherit;color:inherit;font-weight:inherit;line-height:var(--cty-image-viewer-pager-text-line-height, 1)}.cty-image-preview__index{color:var(--cty-image-viewer-pager-index-color)}.cty-image-preview__close{position:absolute;bottom:var(--cty-image-viewer-close-offset-bottom);right:var(--cty-image-viewer-close-offset-right);padding:var(--cty-image-viewer-close-padding, 0);border-radius:var(--cty-image-viewer-close-border-radius, 0);border:var(--cty-image-viewer-close-border, none);background:var(--cty-image-viewer-close-bg, transparent);font-size:var(--cty-image-viewer-close-size);color:var(--cty-image-viewer-close-color)}cty-swiper{--cty-swiper-img-width:var(--cty-image-viewer-image-width);--cty-swiper-img-height:var(--cty-image-viewer-image-height)}";
|
|
11
11
|
|
|
12
12
|
const ImageViewer = /*@__PURE__*/ proxyCustomElement(class ImageViewer extends HTMLElement {
|
|
13
13
|
constructor() {
|
|
@@ -39,6 +39,7 @@ const ImageViewer = /*@__PURE__*/ proxyCustomElement(class ImageViewer extends H
|
|
|
39
39
|
this.root = 'default';
|
|
40
40
|
this.animated = false;
|
|
41
41
|
this.activeIndex = 0;
|
|
42
|
+
this.initialized = false;
|
|
42
43
|
}
|
|
43
44
|
triggerChanged() {
|
|
44
45
|
const { trigger, el, triggerController } = this;
|
|
@@ -88,7 +89,10 @@ const ImageViewer = /*@__PURE__*/ proxyCustomElement(class ImageViewer extends H
|
|
|
88
89
|
}
|
|
89
90
|
swiper === null || swiper === void 0 ? void 0 : swiper.zoom.enable();
|
|
90
91
|
swiper.update();
|
|
91
|
-
|
|
92
|
+
setTimeout(() => {
|
|
93
|
+
this.initialized = true;
|
|
94
|
+
}, 150);
|
|
95
|
+
}, 200);
|
|
92
96
|
}
|
|
93
97
|
catch (error) {
|
|
94
98
|
}
|
|
@@ -101,16 +105,16 @@ const ImageViewer = /*@__PURE__*/ proxyCustomElement(class ImageViewer extends H
|
|
|
101
105
|
return this.swiperEl.slideTo(index, speed);
|
|
102
106
|
}
|
|
103
107
|
render() {
|
|
104
|
-
const { images, speed, loop, zoom, attrs } = this;
|
|
108
|
+
const { images, speed, loop, zoom, attrs, initialized } = this;
|
|
105
109
|
const swiperAttrs = {
|
|
106
110
|
swipers: images,
|
|
107
111
|
speed,
|
|
108
112
|
loop,
|
|
109
113
|
pagination: false,
|
|
110
114
|
autoplay: false,
|
|
111
|
-
attrs: Object.assign({ zoom }, attrs)
|
|
115
|
+
attrs: Object.assign({ virtual: true, zoom }, attrs)
|
|
112
116
|
};
|
|
113
|
-
return (h(Host, { key: '
|
|
117
|
+
return (h(Host, { key: '18b1464e3e7b8d103427546e83f7f02380d053de', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden cty-pos-cover': true }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-backdrop", { key: 'c7914de771c49f43365bcd2271511595dd94fe4f', backdropDismiss: this.backdropDismiss, onCtyDismiss: () => this.dismiss() }, h("div", { key: '42ecf8b9c942639eedd01286914c947bd1231aee', class: { 'cty-image-viewer': true, 'cty-image-viewer__hidden': !initialized } }, h("slot", { key: '42c9d2f8fae0ed835148e2eba6c28b219c02b040', name: 'start' }), (this.closeable || this.pager || !this.backdropDismiss) && h("div", { key: '1416c5b64c5d96d1557b1aaf485378dd26ff2925', class: "cty-image-preview__header", onClick: (e) => e.stopPropagation() }, this.pager && h("slot", { key: '62ccb2d8d005b4d958d8daa975bd593723bedbac', name: "pager" }, h("div", { key: 'df8e9d33b45cb52b622ac4b41bcef8573922eb3c', class: "cty-image-preview__pager flex-center" }, h("h6", { key: '5a77fa57b32f9000ea7678fabd4bdc32890314a0', class: "cty-image-preview__pager-text" }, h("span", { key: 'd7f8ab7eb983dc645825f66b1ba0485d1c937e92', class: "cty-image-preview__index" }, this.activeIndex + 1), " / ", this.images.length))), (this.closeable || !this.backdropDismiss) && h("slot", { key: 'c6e1d25d84545a19d829045e8b04da64f79576fa', name: "close" }, h("button", { key: 'ab92d1d5a9423cc086af1dbba7c13a11bcfb7488', class: "cty-image-preview__close cty-button-native", onClick: () => this.dismiss() }, h("cty-icon", { key: 'b2f1536e7454414af54fd9fb0f120c5855bdbfb7', name: "cty-close2" })))), h("cty-swiper", Object.assign({ key: 'd511309c54605a5ebab94c5fea3d3d63e3ff2e5c', ref: (el) => this.swiperEl = el }, swiperAttrs, { onCtySlideChange: (e) => this._slideChange(e) })), h("slot", { key: '90e5b1090d0c6454478076d453b7d3fdbdbf0e04', name: 'end' })))));
|
|
114
118
|
}
|
|
115
119
|
get el() { return this; }
|
|
116
120
|
static get watchers() { return {
|
|
@@ -137,6 +141,7 @@ const ImageViewer = /*@__PURE__*/ proxyCustomElement(class ImageViewer extends H
|
|
|
137
141
|
"enterAnimation": [16, "enter-animation"],
|
|
138
142
|
"trigger": [1],
|
|
139
143
|
"activeIndex": [32],
|
|
144
|
+
"initialized": [32],
|
|
140
145
|
"present": [64],
|
|
141
146
|
"dismiss": [64],
|
|
142
147
|
"onDidDismiss": [64],
|
package/components/index.js
CHANGED
|
@@ -3,7 +3,8 @@ import { c as createAnimation } from './animation.js';
|
|
|
3
3
|
import { c as config } from './config.js';
|
|
4
4
|
export { s as setupConfig } from './config.js';
|
|
5
5
|
export { C as CTYCityData } from './area.js';
|
|
6
|
-
|
|
6
|
+
import { f as formatDateTime } from './status-bar.js';
|
|
7
|
+
export { C as CTYStatusBar, j as addDays, k as addHours, l as addMinutes, n as addMonths, m as addSeconds, o as addYears, q as convertDate, c as convertTimeZone, i as diff, d as formatDate, e as getFormatForDatePicker, h as getFormatForDateTimePicker, b as getTimeZone, a as getUTCDate, g as getUTCDateTime, p as isValidDate, s as secondsToVehicle, r as statusBar } from './status-bar.js';
|
|
7
8
|
export { e as checkScrollEnd, g as getElementRect, a as getEventClientCoords, b as getEventPageCoords, c as scrollElementBottom, s as scrollElementTop, d as scrollToPoint } from './dom.js';
|
|
8
9
|
import { p as parseJson } from './format.js';
|
|
9
10
|
export { h as camelToKebab, i as clamp, d as convertNumber, f as fileSize, k as kebabToCamel, n as numberToChinese, e as numberToLetter, a as pad, g as parseArray, b as percent, c as price, r as randomNum } from './format.js';
|
|
@@ -538,6 +539,68 @@ class CTYMediaDownloader {
|
|
|
538
539
|
}
|
|
539
540
|
const mediaDownloader = new CTYMediaDownloader();
|
|
540
541
|
|
|
542
|
+
class CTYMediaEditor {
|
|
543
|
+
get _mediaEditorPlugin() {
|
|
544
|
+
return window === null || window === void 0 ? void 0 : window.CTYMediaEditor;
|
|
545
|
+
}
|
|
546
|
+
;
|
|
547
|
+
get isMediaEditorAvailable() {
|
|
548
|
+
return !!this._mediaEditorPlugin;
|
|
549
|
+
}
|
|
550
|
+
hasPermission() {
|
|
551
|
+
return new Promise((resolve, reject) => {
|
|
552
|
+
if (!this.isMediaEditorAvailable) {
|
|
553
|
+
reject('Media editor plugin is not available');
|
|
554
|
+
return;
|
|
555
|
+
}
|
|
556
|
+
this._mediaEditorPlugin.hasPermission((result) => resolve(result), (error) => reject(error));
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
requestPermission() {
|
|
560
|
+
return new Promise((resolve, reject) => {
|
|
561
|
+
if (!this.isMediaEditorAvailable) {
|
|
562
|
+
reject('Media editor plugin is not available');
|
|
563
|
+
return;
|
|
564
|
+
}
|
|
565
|
+
this._mediaEditorPlugin.requestPermission((result) => resolve(result), (error) => reject(error));
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
openAppSettings() {
|
|
569
|
+
return new Promise((resolve, reject) => {
|
|
570
|
+
if (!this.isMediaEditorAvailable) {
|
|
571
|
+
reject('Media editor plugin is not available');
|
|
572
|
+
return;
|
|
573
|
+
}
|
|
574
|
+
this._mediaEditorPlugin.openAppSettings(() => resolve(), (error) => reject(error));
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
videoTrsanfer(file, options = {}) {
|
|
578
|
+
return new Promise((resolve, reject) => {
|
|
579
|
+
if (!this.isMediaEditorAvailable) {
|
|
580
|
+
return reject('Media editor plugin is not available');
|
|
581
|
+
}
|
|
582
|
+
this._mediaEditorPlugin.transcodeVideo((outputfile) => resolve(outputfile), (err) => reject(err), Object.assign(Object.assign({ outputFileName: formatDateTime(new Date(), 'yyyyMMddHHmmss'), optimizeForNetworkUse: 1, saveToLibrary: false, videoBitrate: 1536000, audioBitrate: 64000 }, options), { fileUri: file }));
|
|
583
|
+
});
|
|
584
|
+
}
|
|
585
|
+
audioTrsanfer(file, options = {}) {
|
|
586
|
+
return new Promise((resolve, reject) => {
|
|
587
|
+
if (!this.isMediaEditorAvailable) {
|
|
588
|
+
return reject('Media editor plugin is not available');
|
|
589
|
+
}
|
|
590
|
+
this._mediaEditorPlugin.transcodeAudio((outputfile) => resolve(outputfile), (err) => reject(err), Object.assign(Object.assign({ outputFileName: formatDateTime(new Date(), 'yyyyMMddHHmmss'), optimizeForNetworkUse: 1, saveToLibrary: false, audioBitrate: 64000 }, options), { fileUri: file }));
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
createThumbnail(file, options = {}) {
|
|
594
|
+
return new Promise((resolve, reject) => {
|
|
595
|
+
if (!this.isMediaEditorAvailable) {
|
|
596
|
+
return reject('Media editor plugin is not available');
|
|
597
|
+
}
|
|
598
|
+
this._mediaEditorPlugin.createThumbnail((outputfile) => resolve(outputfile), (err) => reject(err), Object.assign(Object.assign({ outputFileName: formatDateTime(new Date(), 'yyyyMMddHHmmss'), width: 256, quality: 85 }, options), { fileUri: file }));
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
const mediaEditor = new CTYMediaEditor();
|
|
603
|
+
|
|
541
604
|
class CTYPayment {
|
|
542
605
|
constructor() {
|
|
543
606
|
this._wxPayRequest = () => { };
|
|
@@ -859,4 +922,4 @@ const initialize = (userConfig = {}) => {
|
|
|
859
922
|
CtyMUI.config = config;
|
|
860
923
|
};
|
|
861
924
|
|
|
862
|
-
export { CTYMediaDownloader, CTYPayment, CTYSpeechTranscriber, DownloadMediaType, Easing, ModalFade, ModalRotate, ModalSlide, ModalZoom, SlidePosition, deviceInfo, fromBase64, initialize, localDelete, localGet, localSave, mediaDownloader, parseJson, payment, sessionDelete, sessionGet, sessionSave, speechTranscriber, toBase64 };
|
|
925
|
+
export { CTYMediaDownloader, CTYMediaEditor, CTYPayment, CTYSpeechTranscriber, DownloadMediaType, Easing, ModalFade, ModalRotate, ModalSlide, ModalZoom, SlidePosition, deviceInfo, formatDateTime, fromBase64, initialize, localDelete, localGet, localSave, mediaDownloader, mediaEditor, parseJson, payment, sessionDelete, sessionGet, sessionSave, speechTranscriber, toBase64 };
|
package/components/nav-bar.js
CHANGED
|
@@ -30,7 +30,7 @@ const NavBar = /*@__PURE__*/ proxyCustomElement(class NavBar extends HTMLElement
|
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
32
|
const { start, end, arrow, arrowIcon, type, title } = this;
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: 'a6fc9f0326ad6f7b85087348d5dcf2c3c15e78af', class: { "cty-nav-bar": true, [type ? 'cty-nav-bar__' + type : '']: true } }, h("ion-header", { key: '3ae9aa93e2b76d44e6b220058a857d132966aada' }, h("ion-toolbar", { key: '4f50bd3a5c89f530fe77cec0c6d3e3c633084373', class: "cty-nav-bar__toolbar" }, start && h("ion-buttons", { key: '02d4e96017a2fc258838e5c419157b49eae51504', slot: "start" }, h("slot", { key: '30449cb63c53a8e2abc9437cf3f113e4026cc2da', name: "start" }, arrow && h("ion-button", { key: '14b8964f2cb324ca621f45cee082d6b6bdbbd57a', class: "cty-nav-bar__arrow", onClick: () => this.action() }, h("cty-icon", { key: 'a57be5da16f0724d107e971245fff1c114a2b539', class: "cty-nav-bar__arrow-icon", name: arrowIcon })))), title && h("ion-title", { key: 'd190a2101879dc404365428c274a648562212496', class: "cty-nav-bar__title" }, h("slot", { key: '8c90403204f3bf65e9e266af8dd1f52dd84dfc73', name: 'title' }, title)), end && h("ion-buttons", { key: '5ffa889f317a33713dc384ce8ec0536406917bb5', slot: "end" }, h("slot", { key: '884a69b196cb434ca350cce621de7034b9d8c49d', name: 'end' }))))));
|
|
34
34
|
}
|
|
35
35
|
get el() { return this; }
|
|
36
36
|
static get style() { return navBarCss; }
|
package/components/overlay.js
CHANGED
|
@@ -71,7 +71,7 @@ const Overlay = /*@__PURE__*/ proxyCustomElement(class Overlay extends HTMLEleme
|
|
|
71
71
|
render() {
|
|
72
72
|
const { position } = this;
|
|
73
73
|
const positionClass = position === 'top' ? 'flex-justify-center' : position === 'bottom' ? 'flex-align-end-center' : 'flex-center';
|
|
74
|
-
return (h(Host, { key: '
|
|
74
|
+
return (h(Host, { key: '0caffb1b2222a8ad595fc880a3a7e71e9206054c', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden cty-pos-cover': true }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("div", { key: '87dd3ae3928adae35f4c8e1a8900fb2b06ec8182', class: { 'cty-overlay': true, [positionClass]: true }, onClick: () => this.backdropDismiss && this.dismiss() }, h("slot", { key: '7b24efb48b5ed298dbb9efa4665ab60c5250b417' }), this.html && h("div", { key: 'e9cacdc173e4f4e17d5109701c0199636c7d075e', innerHTML: sanitizeDOMString(this.html), onClick: (e) => e.stopPropagation() }))));
|
|
75
75
|
}
|
|
76
76
|
get el() { return this; }
|
|
77
77
|
static get watchers() { return {
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$4 } from './alert.js';
|
|
3
|
+
import { d as defineCustomElement$3 } from './backdrop.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './icon.js';
|
|
5
|
+
import { d as defineCustomElement$1 } from './icon2.js';
|
|
6
|
+
|
|
7
|
+
const permissionAlertCss = ":host{--cty-permission-alert-overlay-position:fixed;--cty-permission-alert-overlay-z-index:999999;--cty-permission-alert-overlay-background:var(--cty-overlay-color);--cty-permission-alert-overlay-width:100vw;--cty-permission-alert-overlay-height:100vh;--cty-permission-alert-width:80%;--cty-permission-alert-background:var(--cty-color-white);--cty-permission-alert-padding-bottom:15px;--cty-permission-alert-padding-end:15px;--cty-permission-alert-padding-start:15px;--cty-permission-alert-padding-top:15px;--cty-permission-alert-border-radius:12px;--cty-permission-alert-title-align:flex-start;--cty-permission-alert-title-color:var(--cty-text-color-primary);--cty-permission-alert-title-size:var(--cty-font-size-medium);--cty-permission-alert-content-margin-bottom:20px;--cty-permission-alert-content-margin-top:20px;--cty-permission-alert-content-size:var(--cty-font-size-base);--cty-permission-alert-content-align:justify;--cty-permission-alert-content-color:var(--cty-text-color-primary);--cty-permission-alert-button-min-height:36px;--cty-permission-alert-button-color:var(--cty-text-color-primary);--cty-permission-alert-button-size:var(--cty-font-size-base);--cty-permission-alert-button-radius:var(--cty-border-radius-medium);--cty-permission-alert-button-primary-background:var(--cty-color-primary);--cty-permission-alert-button-primary-color:var(--cty-text-color-white)}cty-alert{--cty-alert-overlay-position:var(--cty-permission-alert-overlay-position);--cty-alert-overlay-z-index:var(--cty-permission-alert-overlay-z-index);--cty-alert-overlay-background:var(--cty-permission-alert-overlay-background);--cty-alert-overlay-width:var(--cty-permission-alert-overlay-width);--cty-alert-overlay-height:var(--cty-permission-alert-overlay-height);--cty-alert-width:var(--cty-permission-alert-width);--cty-alert-background:var(--cty-permission-alert-background);--cty-alert-padding-bottom:var(--cty-permission-alert-padding-bottom);--cty-alert-padding-end:var(--cty-permission-alert-padding-end);--cty-alert-padding-start:var(--cty-permission-alert-padding-start);--cty-alert-padding-top:var(--cty-permission-alert-padding-top);--cty-alert-border-radius:var(--cty-permission-alert-border-radius);--cty-alert-title-align:var(--cty-permission-alert-title-align);--cty-alert-title-color:var(--cty-permission-alert-title-color);--cty-alert-title-size:var(--cty-permission-alert-title-size);--cty-alert-content-margin-bottom:var(--cty-permission-alert-content-margin-bottom);--cty-alert-content-margin-top:var(--cty-permission-alert-content-margin-top);--cty-alert-content-size:var(--cty-permission-alert-content-size);--cty-alert-content-align:var(--cty-permission-alert-content-align);--cty-alert-content-color:var(--cty-permission-alert-content-color);--cty-alert-button-min-height:var(--cty-permission-alert-button-min-height);--cty-alert-button-color:var(--cty-permission-alert-button-color);--cty-alert-button-size:var(--cty-permission-alert-button-size);--cty-alert-button-radius:var(--cty-permission-alert-button-radius);--cty-alert-button-primary-background:var(--cty-permission-alert-button-primary-background);--cty-alert-button-primary-color:var(--cty-permission-alert-button-primary-color)}";
|
|
8
|
+
|
|
9
|
+
const PermissionAlert = /*@__PURE__*/ proxyCustomElement(class PermissionAlert extends HTMLElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
this.__registerHost();
|
|
13
|
+
this.__attachShadow();
|
|
14
|
+
this.ctyDismiss = createEvent(this, "ctyDismiss", 7);
|
|
15
|
+
this.ctyTap = createEvent(this, "ctyTap", 7);
|
|
16
|
+
this.backdropDismiss = false;
|
|
17
|
+
this.title = '需要申请相机权限';
|
|
18
|
+
this.content = '需要开启相机权限,用于拍照、扫码或视频聊天。我们承诺仅在功能使用时调用摄像头。';
|
|
19
|
+
this.closeable = false;
|
|
20
|
+
this.buttons = [{
|
|
21
|
+
text: '取消',
|
|
22
|
+
action: 'cancel'
|
|
23
|
+
}, {
|
|
24
|
+
text: '去打开',
|
|
25
|
+
action: 'permission'
|
|
26
|
+
}];
|
|
27
|
+
}
|
|
28
|
+
_buttonClick(event) {
|
|
29
|
+
event.stopPropagation();
|
|
30
|
+
const { item, index } = event.detail;
|
|
31
|
+
if (item.action !== 'cancel') {
|
|
32
|
+
this.ctyTap.emit({ item, index });
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
_dismiss() {
|
|
36
|
+
this.ctyDismiss.emit();
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
return (h(Host, { key: '56a3795cba4d50f34250ae7bd6a95cd1f9aeb8be' }, h("cty-alert", { key: '30d8a9b62d7cb7c391a746755dbecdaef347ada0', part: "permission-alert", class: "cty-permission-alert", animated: false, overlayIndex: 1, backdropDismiss: this.backdropDismiss, title: this.title, content: this.content, closeable: this.closeable, buttons: this.buttons, onCtyTap: (e) => this._buttonClick(e), onCtyDismiss: () => this._dismiss() }, h("slot", { key: 'e661dd93f220462e2478233fce1a887bb6ac57d3', name: "header", slot: "header" }), h("slot", { key: '128a5f263a932e9c5263c51fccd6f2a67ef1cc49', name: "content", slot: "content" }), h("slot", { key: 'bfefd5cdb9c04a6fb3b13f1e4ea21d3b1a1b3dae', name: "buttons", slot: "buttons" }))));
|
|
40
|
+
}
|
|
41
|
+
get el() { return this; }
|
|
42
|
+
static get style() { return permissionAlertCss; }
|
|
43
|
+
}, [1, "cty-permission-alert", {
|
|
44
|
+
"backdropDismiss": [4, "backdrop-dismiss"],
|
|
45
|
+
"title": [1],
|
|
46
|
+
"content": [1],
|
|
47
|
+
"closeable": [4],
|
|
48
|
+
"buttons": [16]
|
|
49
|
+
}]);
|
|
50
|
+
function defineCustomElement() {
|
|
51
|
+
if (typeof customElements === "undefined") {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const components = ["cty-permission-alert", "cty-alert", "cty-backdrop", "cty-icon", "ion-icon"];
|
|
55
|
+
components.forEach(tagName => { switch (tagName) {
|
|
56
|
+
case "cty-permission-alert":
|
|
57
|
+
if (!customElements.get(tagName)) {
|
|
58
|
+
customElements.define(tagName, PermissionAlert);
|
|
59
|
+
}
|
|
60
|
+
break;
|
|
61
|
+
case "cty-alert":
|
|
62
|
+
if (!customElements.get(tagName)) {
|
|
63
|
+
defineCustomElement$4();
|
|
64
|
+
}
|
|
65
|
+
break;
|
|
66
|
+
case "cty-backdrop":
|
|
67
|
+
if (!customElements.get(tagName)) {
|
|
68
|
+
defineCustomElement$3();
|
|
69
|
+
}
|
|
70
|
+
break;
|
|
71
|
+
case "cty-icon":
|
|
72
|
+
if (!customElements.get(tagName)) {
|
|
73
|
+
defineCustomElement$2();
|
|
74
|
+
}
|
|
75
|
+
break;
|
|
76
|
+
case "ion-icon":
|
|
77
|
+
if (!customElements.get(tagName)) {
|
|
78
|
+
defineCustomElement$1();
|
|
79
|
+
}
|
|
80
|
+
break;
|
|
81
|
+
} });
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export { PermissionAlert as P, defineCustomElement as d };
|
|
@@ -17,7 +17,7 @@ const PermissionPurpose = /*@__PURE__*/ proxyCustomElement(class PermissionPurpo
|
|
|
17
17
|
this.ctyDismiss.emit();
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: 'bca028072a8313b0f7b774ec6693703def84181a' }, h("cty-backdrop", { key: '3a2d92e7474c23706fe520486d456d5768ccdf9f', backdropDismiss: this.backdropDismiss, position: "top", onCtyDismiss: () => this.dismiss() }, h("div", { key: 'f5d1bb932f282961ca9afc377a08b3651e20e131', class: "cty-permission-purpose", onClick: (e) => e.stopPropagation() }, h("div", { key: '91e475575512cac998bf5d3d67311e455c85c413', innerHTML: sanitizeDOMString(this.description) })))));
|
|
21
21
|
}
|
|
22
22
|
get el() { return this; }
|
|
23
23
|
static get style() { return permissionPurposeCss; }
|
package/components/swipe-item.js
CHANGED
|
@@ -31,10 +31,10 @@ const SwipeItem = /*@__PURE__*/ proxyCustomElement(class SwipeItem extends HTMLE
|
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
33
|
const { offset, size, vertical } = this;
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: '4c2d804a0671caac64268f336b33beeb21cb4385', class: "cty-swipe-item", style: {
|
|
35
35
|
[vertical ? 'height' : 'width']: `${size}px`,
|
|
36
36
|
transform: `translate${vertical ? 'Y' : 'X'}(${offset}px)`
|
|
37
|
-
} }, h("slot", { key: '
|
|
37
|
+
} }, h("slot", { key: '0622753fe67dbc647b4381c6ead2ceb51303b3b7' })));
|
|
38
38
|
}
|
|
39
39
|
get el() { return this; }
|
|
40
40
|
static get style() { return swipeItemCss; }
|
package/components/swipe.js
CHANGED
|
@@ -292,7 +292,7 @@ const Swipe = /*@__PURE__*/ proxyCustomElement(class Swipe extends HTMLElement {
|
|
|
292
292
|
'transform': `translate${vertical ? 'Y' : 'X'}(${+offset.toFixed(2)}px)`,
|
|
293
293
|
[vertical ? 'height' : 'width']: `${this.trackSize}px`,
|
|
294
294
|
};
|
|
295
|
-
return (h(Host, { key: '
|
|
295
|
+
return (h(Host, { key: '7c43fa74ff636ccb9f561bfe46b9b295742ac894', class: "cty-swipe" }, h("slot", { key: 'c66ee224e75363811866d2b70a41b27c3a1424eb', name: "start" }), h("div", { key: '015662e04b5ec9b5d3b76757de25e2c52c721557', class: { 'cty-swipe__track': true, 'cty-swipe__track-vertical': this.vertical }, style: style, onTouchStart: (e) => this.onTouchStart(e), onTouchMove: (e) => this.onTouchMove(e), onTouchEnd: (e) => this.onTouchEnd(e), onTouchCancel: (e) => this.onTouchEnd(e), onMouseDown: (e) => this.onTouchStart(e), onMouseMove: (e) => this.onTouchMove(e), onMouseUp: (e) => this.onTouchEnd(e), onMouseLeave: (e) => this.onTouchEnd(e) }, h("slot", { key: 'f60a25a27fe96cd1cd010260fff0c094750688e7', onSlotchange: () => this.slotChanged() })), this.indicator && this.renderIndicator(), h("slot", { key: '545e73e9347b1b3319bbb258287461360d13cd10', name: "end" })));
|
|
296
296
|
}
|
|
297
297
|
get el() { return this; }
|
|
298
298
|
static get style() { return swipeCss; }
|