cty-mui-core 1.0.35 → 1.0.37
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/camera.js +17 -6
- package/components/circle.js +3 -3
- package/components/crop-image.js +1 -1
- package/components/cty-camera-photo.js +1 -1
- 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 +3 -3
- 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 +1 -1
- package/components/cty-notice-bar.js +1 -1
- package/components/cty-pdf-viewer.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/components/divider.js +2 -2
- package/components/icon.js +1 -1
- package/components/image-viewer.js +1 -1
- package/components/index.js +12 -27
- package/components/nav-bar.js +1 -1
- package/components/overlay.js +1 -1
- package/components/permission-purpose.js +1 -1
- package/components/swipe-item.js +2 -2
- package/components/swipe.js +1 -1
- package/components/swiper.js +1 -1
- package/dist/cjs/cty-alert_2.cjs.entry.js +3 -3
- package/dist/cjs/cty-camera-photo.cjs.entry.js +1 -1
- package/dist/cjs/cty-camera_2.cjs.entry.js +17 -7
- 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-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 +3 -3
- 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 +3 -3
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/cjs/index.cjs.js +12 -27
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/camera/camera.js +18 -7
- package/dist/collection/components/camera-photo/camera-photo.js +1 -1
- 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.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.js +1 -1
- 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 +1 -1
- 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-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 +1 -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.js +1 -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 +1 -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.js +1 -1
- package/dist/collection/utils/native/media-downloader.js +12 -27
- package/dist/cty-mui/cty-mui.esm.js +1 -1
- package/dist/cty-mui/index.esm.js +1 -1
- package/dist/cty-mui/{p-1f3e77ad.entry.js → p-019cfadb.entry.js} +1 -1
- package/dist/cty-mui/{p-e90050ff.system.entry.js → p-0e982b61.system.entry.js} +1 -1
- package/dist/cty-mui/{p-dc55ca39.system.entry.js → p-1078ee6a.system.entry.js} +1 -1
- package/dist/cty-mui/{p-1d7cabe8.system.entry.js → p-14d54127.system.entry.js} +1 -1
- package/dist/cty-mui/{p-05a00a55.entry.js → p-1c082713.entry.js} +1 -1
- package/dist/cty-mui/{p-01871fbc.system.entry.js → p-1cb056b2.system.entry.js} +1 -1
- package/dist/cty-mui/p-1d3aca02.entry.js +1 -0
- package/dist/cty-mui/{p-2f5ead92.entry.js → p-215219ca.entry.js} +1 -1
- package/dist/cty-mui/{p-72354b31.system.entry.js → p-2518352c.system.entry.js} +1 -1
- package/dist/cty-mui/{p-be1fc2ec.entry.js → p-2b0dc5e3.entry.js} +1 -1
- package/dist/cty-mui/{p-4572ba44.entry.js → p-3080e6c5.entry.js} +1 -1
- package/dist/cty-mui/{p-7abe483b.entry.js → p-36619007.entry.js} +1 -1
- package/dist/cty-mui/{p-855b747d.system.entry.js → p-3c8e24c4.system.entry.js} +1 -1
- package/dist/cty-mui/{p-106456bc.entry.js → p-3e894981.entry.js} +1 -1
- package/dist/cty-mui/p-3f54848b.entry.js +1 -0
- package/dist/cty-mui/{p-b8d7997d.entry.js → p-475efd63.entry.js} +1 -1
- package/dist/cty-mui/{p-af8bb93f.system.entry.js → p-4890b69c.system.entry.js} +1 -1
- package/dist/cty-mui/{p-31cf19c0.system.entry.js → p-49341ac0.system.entry.js} +1 -1
- package/dist/cty-mui/{p-423fe7c0.entry.js → p-4f60b693.entry.js} +1 -1
- package/dist/cty-mui/{p-54054435.entry.js → p-5029b2d1.entry.js} +1 -1
- package/dist/cty-mui/{p-564e30de.system.entry.js → p-5524f103.system.entry.js} +1 -1
- package/dist/cty-mui/{p-c71a9fd1.entry.js → p-5528eb5e.entry.js} +1 -1
- package/dist/cty-mui/{p-49c2d176.system.entry.js → p-55a730c1.system.entry.js} +1 -1
- package/dist/cty-mui/{p-f398c194.system.entry.js → p-5645d522.system.entry.js} +1 -1
- package/dist/cty-mui/{p-a70b556d.system.entry.js → p-587210af.system.entry.js} +1 -1
- package/dist/cty-mui/{p-3722a475.entry.js → p-5a33becc.entry.js} +1 -1
- package/dist/cty-mui/{p-c8ee0b57.system.entry.js → p-5d59f92f.system.entry.js} +1 -1
- package/dist/cty-mui/{p-8a52b8ba.system.entry.js → p-5ea1965a.system.entry.js} +1 -1
- package/dist/cty-mui/{p-f13d0eae.entry.js → p-62a9c160.entry.js} +1 -1
- package/dist/cty-mui/{p-a316f17f.entry.js → p-68d73325.entry.js} +2 -2
- package/dist/cty-mui/p-6dddba8f.system.entry.js +1 -0
- package/dist/cty-mui/{p-5846c151.system.entry.js → p-71a51c66.system.entry.js} +1 -1
- package/dist/cty-mui/{p-7e9e7f9d.system.entry.js → p-751ca0a3.system.entry.js} +1 -1
- package/dist/cty-mui/{p-88322634.entry.js → p-7530dbf4.entry.js} +1 -1
- package/dist/cty-mui/{p-4cd95229.system.entry.js → p-844ef4f2.system.entry.js} +1 -1
- package/dist/cty-mui/{p-e529c11d.entry.js → p-8b03016d.entry.js} +1 -1
- package/dist/cty-mui/{p-3ec91db1.entry.js → p-8bfd28fc.entry.js} +1 -1
- package/dist/cty-mui/{p-0128caf4.entry.js → p-8e03fe9c.entry.js} +1 -1
- package/dist/cty-mui/{p-81079795.system.entry.js → p-90f8d468.system.entry.js} +1 -1
- package/dist/cty-mui/{p-702faa4b.entry.js → p-97d899b3.entry.js} +1 -1
- package/dist/cty-mui/{p-9754acb3.entry.js → p-99ce288e.entry.js} +1 -1
- package/dist/cty-mui/{p-073eb081.entry.js → p-9ba0f75c.entry.js} +1 -1
- package/dist/cty-mui/{p-cac7b9e8.system.entry.js → p-9cf3001f.system.entry.js} +1 -1
- package/dist/cty-mui/{p-a990c587.system.entry.js → p-9d07466a.system.entry.js} +1 -1
- package/dist/cty-mui/p-CcRtmdkf.system.js +1 -0
- package/dist/cty-mui/p-Cegbc1c7.system.js +1 -1
- package/dist/cty-mui/{p-0c58f748.entry.js → p-a02134a3.entry.js} +1 -1
- package/dist/cty-mui/{p-42371383.entry.js → p-a4ec9006.entry.js} +1 -1
- package/dist/cty-mui/{p-945d1f5e.system.entry.js → p-a5537cb3.system.entry.js} +1 -1
- package/dist/cty-mui/{p-20ab6f8b.entry.js → p-a586fcb6.entry.js} +1 -1
- package/dist/cty-mui/{p-1f08189f.system.entry.js → p-a88f7145.system.entry.js} +1 -1
- package/dist/cty-mui/{p-3ac0ac69.system.entry.js → p-a8ada422.system.entry.js} +1 -1
- package/dist/cty-mui/{p-d197ef1f.entry.js → p-ad85921c.entry.js} +1 -1
- package/dist/cty-mui/{p-09b59454.system.entry.js → p-adc25955.system.entry.js} +1 -1
- package/dist/cty-mui/{p-81582afa.entry.js → p-afc54cf3.entry.js} +1 -1
- package/dist/cty-mui/{p-47327d46.entry.js → p-b0056ff5.entry.js} +1 -1
- package/dist/cty-mui/{p-7861de8e.system.entry.js → p-b00db557.system.entry.js} +1 -1
- package/dist/cty-mui/{p-3c25811a.entry.js → p-b1f6e59c.entry.js} +1 -1
- package/dist/cty-mui/{p-54f6f9f1.entry.js → p-bd9c8e43.entry.js} +1 -1
- package/dist/cty-mui/{p-22315315.entry.js → p-c2833f8f.entry.js} +1 -1
- package/dist/cty-mui/{p-9a023f01.entry.js → p-c36ad14e.entry.js} +1 -1
- package/dist/cty-mui/{p-a9bc205d.entry.js → p-c3bb2f2a.entry.js} +1 -1
- package/dist/cty-mui/{p-d66e71cf.system.entry.js → p-c91ca631.system.entry.js} +1 -1
- package/dist/cty-mui/{p-b72461aa.system.entry.js → p-cbd8842f.system.entry.js} +1 -1
- package/dist/cty-mui/{p-fd9befef.system.entry.js → p-cdee2447.system.entry.js} +1 -1
- package/dist/cty-mui/{p-c6028243.system.entry.js → p-d0c16dfb.system.entry.js} +1 -1
- package/dist/cty-mui/{p-c330e10e.system.entry.js → p-d390049b.system.entry.js} +1 -1
- package/dist/cty-mui/{p-e0f340fa.system.entry.js → p-d4915a3a.system.entry.js} +1 -1
- package/dist/cty-mui/{p-d72a9038.system.entry.js → p-d62ba819.system.entry.js} +1 -1
- package/dist/cty-mui/{p-fb4642ec.system.entry.js → p-d74dbc79.system.entry.js} +1 -1
- package/dist/cty-mui/{p-121b0706.entry.js → p-d94cdb9d.entry.js} +1 -1
- package/dist/cty-mui/{p-37673d54.entry.js → p-db2289f6.entry.js} +1 -1
- package/dist/cty-mui/{p-fcd9f408.system.entry.js → p-ddd7a69a.system.entry.js} +1 -1
- package/dist/cty-mui/{p-ef299c38.system.entry.js → p-df2367ca.system.entry.js} +1 -1
- package/dist/cty-mui/{p-84bce568.entry.js → p-e55ab7ee.entry.js} +1 -1
- package/dist/cty-mui/{p-dc733f54.system.entry.js → p-e66d35a9.system.entry.js} +1 -1
- package/dist/cty-mui/p-ea36cfac.entry.js +1 -0
- package/dist/cty-mui/{p-7e264f45.system.entry.js → p-edc23b12.system.entry.js} +1 -1
- package/dist/cty-mui/{p-a96b1415.system.entry.js → p-f4775bbd.system.entry.js} +1 -1
- package/dist/cty-mui/{p-74c307de.system.entry.js → p-f57da567.system.entry.js} +1 -1
- package/dist/cty-mui/p-f9f7ee85.entry.js +1 -0
- package/dist/cty-mui/p-fd7e26fd.entry.js +1 -0
- package/dist/cty-mui/{p-fe1f850e.entry.js → p-ff4436a4.entry.js} +1 -1
- package/dist/cty-mui/{p-39328eb7.system.entry.js → p-ff973e68.system.entry.js} +1 -1
- package/dist/docs.json +5 -1
- package/dist/esm/cty-alert_2.entry.js +3 -3
- package/dist/esm/cty-camera-photo.entry.js +1 -1
- package/dist/esm/cty-camera_2.entry.js +17 -7
- 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-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 +3 -3
- 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 +3 -3
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/esm/index.js +12 -27
- package/dist/esm/loader.js +1 -1
- 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-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/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/types/components/camera/camera.d.ts +4 -1
- package/package.json +1 -1
- package/dist/cty-mui/p-2b0425b4.entry.js +0 -1
- package/dist/cty-mui/p-58c84307.system.entry.js +0 -1
- package/dist/cty-mui/p-79c7921c.entry.js +0 -1
- package/dist/cty-mui/p-9a6fa357.entry.js +0 -1
- package/dist/cty-mui/p-CULOFO8H.system.js +0 -1
- package/dist/cty-mui/p-a40ddbbc.entry.js +0 -1
- package/dist/cty-mui/p-d52e4a59.entry.js +0 -1
package/components/camera.js
CHANGED
|
@@ -55,12 +55,14 @@ const Camera = /*@__PURE__*/ proxyCustomElement(class Camera extends HTMLElement
|
|
|
55
55
|
this.showImageViewer = false;
|
|
56
56
|
this.imageViewerIndex = 0;
|
|
57
57
|
this.currentPhotoMode = 'multiple';
|
|
58
|
+
this.currentZoom = 1;
|
|
59
|
+
this.startZoom = 1;
|
|
58
60
|
this.SCREEN_WIDTH = window.screen.width;
|
|
59
61
|
this.SCREEN_HEIGHT = window.screen.height;
|
|
60
62
|
this.originalBodyBackground = '';
|
|
61
63
|
this.isTakingPhoto = false;
|
|
62
64
|
this.distance = 0;
|
|
63
|
-
this.
|
|
65
|
+
this.startCameraZoom = 0;
|
|
64
66
|
}
|
|
65
67
|
connectedCallback() {
|
|
66
68
|
if (this.mode === 'single') {
|
|
@@ -177,13 +179,18 @@ const Camera = /*@__PURE__*/ proxyCustomElement(class Camera extends HTMLElement
|
|
|
177
179
|
pictures.pop();
|
|
178
180
|
this.pictures = pictures;
|
|
179
181
|
}
|
|
182
|
+
resetZoom() {
|
|
183
|
+
this.currentZoom = 1;
|
|
184
|
+
this.setZoom(0);
|
|
185
|
+
}
|
|
180
186
|
async touchstart(e) {
|
|
181
187
|
e.stopPropagation();
|
|
182
188
|
if (this.touchZoom && e.touches.length == 2) {
|
|
183
189
|
const xMove = e.touches[1].clientX - e.touches[0].clientX;
|
|
184
190
|
const yMove = e.touches[1].clientY - e.touches[0].clientY;
|
|
185
191
|
this.distance = Math.sqrt(xMove * xMove + yMove * yMove);
|
|
186
|
-
this.
|
|
192
|
+
this.startCameraZoom = await cameraPreview.getZoom();
|
|
193
|
+
this.startZoom = this.currentZoom;
|
|
187
194
|
}
|
|
188
195
|
}
|
|
189
196
|
touchmove(e) {
|
|
@@ -201,10 +208,13 @@ const Camera = /*@__PURE__*/ proxyCustomElement(class Camera extends HTMLElement
|
|
|
201
208
|
e.stopPropagation();
|
|
202
209
|
}
|
|
203
210
|
async updateZoom(diff) {
|
|
204
|
-
const { startZoom } = this;
|
|
211
|
+
const { startCameraZoom, startZoom } = this;
|
|
205
212
|
let maxZoom = await cameraPreview.getMaxZoom();
|
|
206
213
|
const zoomStep = (maxZoom + 1) / this.zoomSteps;
|
|
207
214
|
const lastZoom = this.zooms.slice(-1)[0] || 10;
|
|
215
|
+
this.currentZoom = Math.floor((startZoom + diff) * 10) / 10;
|
|
216
|
+
this.currentZoom = Math.max(this.currentZoom, 1);
|
|
217
|
+
this.currentZoom = Math.min(this.currentZoom, lastZoom);
|
|
208
218
|
if (deviceInfo.isIos) {
|
|
209
219
|
maxZoom = lastZoom;
|
|
210
220
|
}
|
|
@@ -212,11 +222,11 @@ const Camera = /*@__PURE__*/ proxyCustomElement(class Camera extends HTMLElement
|
|
|
212
222
|
maxZoom = Math.min(maxZoom, lastZoom * zoomStep);
|
|
213
223
|
diff = zoomStep * diff;
|
|
214
224
|
}
|
|
215
|
-
cameraPreview.setZoom(Math.min(
|
|
225
|
+
cameraPreview.setZoom(Math.min(startCameraZoom + diff, maxZoom));
|
|
216
226
|
}
|
|
217
227
|
render() {
|
|
218
|
-
const { title, closeIcon, flash, flipText, flashText, ratioText, ratios, ratioIndex, zoomIndex, zooms, mode, singleText, multipleText, currentPhotoMode, confirmIcon, confirmText, deleteIcon, pictures, showImageViewer, imageViewerIndex, touchZoom } = this;
|
|
219
|
-
return (h(Host, { key: '
|
|
228
|
+
const { title, closeIcon, flash, flipText, flashText, ratioText, ratios, ratioIndex, zoomIndex, zooms, mode, singleText, multipleText, currentPhotoMode, confirmIcon, confirmText, deleteIcon, pictures, showImageViewer, imageViewerIndex, touchZoom, currentZoom } = this;
|
|
229
|
+
return (h(Host, { key: 'f40edbc29fe5da2917d4010c6d3b1a518aedaa41', class: "cty-camera", onClick: (e) => e.stopPropagation() }, h("cty-nav-bar", { key: '5ff4256016fa09b23178155358ebf130e43bcb7f', title: title, type: "clear" }, h("slot", { key: 'd2e04b67a7d3950bf4affa93bb5cb4d7c2a617c9', name: "header-start", slot: "start" }, !!closeIcon && h("ion-button", { key: '15ac081655793b3e389a1f3639bedfc1d9ecbf07', class: "cty-camera__close", onClick: () => this.close() }, h("cty-icon", { key: '0a502cc7dacef6aae4f0d378dde420bdc809fe06', class: "cty-camera__close-icon", name: closeIcon })))), h("div", { key: '50daa357c535b0b664cee8f7f2f373a6580b1999', class: "cty-camera-main", onTouchStart: (e) => this.touchstart(e), onTouchMove: (e) => this.touchmove(e), onTouchEnd: (e) => this.touchend(e) }, h("div", { key: '9480b0a5d2ecf27c8c29a4ff92b96ef3ea88ef42', class: "cty-camera-widgets", part: "widgets" }, !!flipText && h("button", { key: '686db6af3c4dafb1581bea7fa2e6b4a2f4f27083', class: "cty-button-native cty-camera-widget", part: "widget", onClick: () => this.flipCamera() }, h("cty-icon", { key: 'e79bfc8da5c2b406ac216c06b6a968f5abec969a', class: "cty-camera-widget__icon", name: "cty-flip" }), !!flipText && h("span", { key: 'ba9aa97adee38dac5b7ac62162748cbe1692fdd0', class: "cty-camera-widget__text" }, flipText)), !!flashText && h("button", { key: '40e364c8c390b8d34a10483dd9c59e6308af086a', class: "cty-button-native cty-camera-widget", part: "widget", onClick: () => this.toggleFlash() }, h("cty-icon", { key: 'b3529fb6899eec50a9dd23cafd14c702b73f0eab', class: "cty-camera-widget__icon", name: flash ? 'cty-flash-on' : 'cty-flash-off' }), !!flashText && h("span", { key: '5db6b0cdeda7be4a9dfc141ac2853f77b39480b3', class: "cty-camera-widget__text" }, flashText)), !!ratioText && h("button", { key: 'ca8f01983dd7c8d881e62f6537b59e54147989ba', class: "cty-button-native cty-camera-widget", part: "ratio", onClick: () => this.ratioChange() }, h("span", { key: 'ce1b6eae99a1a28490b5e354dc7b5d787f33012d', class: "cty-camera-widget__ratio flex-center" }, ratios[ratioIndex]), !!ratioText && h("span", { key: '5f8782c77973f304783f090c0d074d9aa4d37529', class: "cty-camera-widget__text" }, ratioText)))), h("div", { key: 'eb9fbcf73791d348b2721af75eb6379fac9edc5a', class: "cty-camera-controls safe-area-bottom-padding" }, mode == 'both' && pictures.length <= 0 && h("div", { key: 'd8ab77317beba8093cfa5b14a7b58b576f92b0d4', class: "cty-camera-controls__mode flex-center", part: "mode" }, h("button", { key: 'ba2f4a6ce81f5d7cd34cc9ccb405c3b42f399d38', class: { 'cty-button-native cty-camera-controls__mode-button': true, 'cty-camera-controls__mode-button__active': currentPhotoMode === 'single' }, onClick: () => this.currentPhotoMode = 'single' }, singleText), h("button", { key: '8617e01437655cc1dfa2f77c977f826375be9b6a', class: { 'cty-button-native cty-camera-controls__mode-button': true, 'cty-camera-controls__mode-button__active': currentPhotoMode === 'multiple' }, onClick: () => this.currentPhotoMode = 'multiple' }, multipleText)), h("slot", { key: 'c23efc3fc61cb836bb970252106ed1e1cf3558d9', name: "zooms" }, !touchZoom && zooms.length > 0 && h("div", { key: '02e630d9fb5e30cc9257d74102301991f4f34cda', class: "cty-camera-controls__zooms flex-center", part: "zooms" }, zooms.map((item, idx) => (h("div", { class: { 'cty-camera-controls__zoom-item flex-center': true, 'cty-camera-controls__zoom-item__active': zoomIndex === idx }, onClick: () => this.setZoom(idx) }, h("span", { class: "cty-camera-controls__zoom-text flex-center" }, item, "X"))))), touchZoom && h("div", { key: 'e9f24d62c30dd73fd7be61a92b2a9e8477444d31', class: "cty-camera-controls__zooms flex-center", part: "zooms" }, h("div", { key: '15c9dfb471ebbc9d042b43c0798ca09fa20866d9', class: { 'cty-camera-controls__zoom-item flex-center cty-camera-controls__zoom-item__active': true }, onClick: () => this.resetZoom() }, h("span", { key: '02bf72c6259c9580006fa3ae14623686478e0637', class: "cty-camera-controls__zoom-text flex-center" }, currentZoom, "X")))), h("div", { key: 'd48ce6b8c8100b91876519bcc3aaae6ec6c64bb2', class: "cty-camera-controls__main flex-center" }, h("div", { key: 'bab57f9bb2276980e1eaf97db8a3473c393bd2a9', class: "cty-camera-controls__main-left flex-center" }), h("div", { key: '771f14a7d81b3ddd8ee3389de781baa408e58ab2', class: "cty-camera-controls__take-photo flex-center" }, h("button", { key: 'eb69383d3140935cf780d90f7a2f094295341613', class: "cty-button-native cty-camera-controls__take-photo-button", part: "take-photo", onClick: () => this.takePhoto() })), h("div", { key: '4de8c1abb63d4413d80fc6038b2d01161b61d03e', class: "cty-camera-controls__main-confirm flex-center" }, currentPhotoMode !== 'single' && pictures.length > 0 && !!deleteIcon && h("button", { key: 'd147510274b3f2d6afd7b8bc484a674274805556', class: "cty-camera-controls__main-delete cty-button-native flex-column-center", onClick: () => this.deleteLastPicture() }, h("cty-icon", { key: '28b17cecf4e4f3dbc25a2b1a6c9dd08cdace231a', class: "cty-camera-controls__main-delete-icon", name: deleteIcon })), currentPhotoMode !== 'single' && pictures.length > 0 && h("button", { key: 'be6a8e67255e4265f5f5744ba4bc12ea86fd8413', class: "cty-button-native flex-column-center", onClick: () => this.confirm() }, h("cty-icon", { key: 'e721a132723d3ec61d450d7bb92551fb3255a85b', class: "cty-camera-controls__main-confirm-icon", name: confirmIcon }), confirmText && h("span", { key: 'cd3413a3f091755709d4766bfb9851cd62797637', class: "cty-camera-controls__main-confirm-text" }, confirmText)))), h("slot", { key: '25cd2fd4dbf4383a38944f7a05c82d8529a1f329', name: "images" }, h("div", { key: 'd494fba5318e56f1bbd5e298c94d0db792fe2466', class: "cty-camera-controls__images flex-align-center" }, currentPhotoMode !== 'single' && pictures.map((item, idx) => (h("div", { class: "cty-camera-controls__image", onClick: () => this.toImageViewer(idx) }, h("img", { class: 'cty-camera-controls__image-img', src: item.url }), h("button", { class: "cty-button-native", onClick: (e) => this.deletePicture(e, idx) }, h("cty-icon", { class: "cty-camera-controls__image-delete", name: closeOutline })))))))), showImageViewer && h("cty-image-viewer", { key: 'e7b85e1ee2817e30dffd31b8dc54bb688e7eebda', images: pictures.map(item => item.url), initialSlide: imageViewerIndex, overlayIndex: 100, backdropDismiss: false, closeable: false, onCtyDismiss: (e) => this.closeImageViewer(e) }, currentPhotoMode !== 'multiple' && h("div", { key: '5ee748c3a00c7b59a06caf8452e991923f8b0e03', class: "cty-camera-viewer__single flex-center-between", slot: "pager" }, h("button", { key: 'e887095785b5a51ba6e7b9535302048f52847fec', class: "cty-camera-viewer__single-close cty-button-native", onClick: (event) => this.closeSingleImageViewer(event) }, h("cty-icon", { key: '9835324ca3a6d13a5492cc71e275a10176a2c41a', name: "cty-close2" })), h("button", { key: 'ead287871bcf1427012c48efff2f13e51acb8fc9', class: "cty-camera-viewer__single-confirm cty-button-native", onClick: () => this.confirm() }, h("cty-icon", { key: '5bcfd41d3c8998abcc06bf9852efcb4b1b821ffb', name: "cty-tick" }))), currentPhotoMode !== 'multiple' && h("i", { key: 'd1410f731edc011af6acdc1652264e760d557213', slot: "close" }))));
|
|
220
230
|
}
|
|
221
231
|
get el() { return this; }
|
|
222
232
|
static get style() { return cameraCss; }
|
|
@@ -251,6 +261,7 @@ const Camera = /*@__PURE__*/ proxyCustomElement(class Camera extends HTMLElement
|
|
|
251
261
|
"showImageViewer": [32],
|
|
252
262
|
"imageViewerIndex": [32],
|
|
253
263
|
"currentPhotoMode": [32],
|
|
264
|
+
"currentZoom": [32],
|
|
254
265
|
"flipCamera": [64],
|
|
255
266
|
"toggleFlash": [64],
|
|
256
267
|
"flashOff": [64],
|
package/components/circle.js
CHANGED
|
@@ -62,14 +62,14 @@ const Circle = /*@__PURE__*/ proxyCustomElement(class Circle extends HTMLElement
|
|
|
62
62
|
return `M ${viewBoxSize / 2} ${viewBoxSize / 2} m 0, ${-rad} a ${rad}, ${rad} 0 1, ${sweepFlag} 0, ${rad * 2} a ${rad}, ${rad} 0 1, ${sweepFlag} 0, ${-rad * 2}`;
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
|
-
return (h(Host, { key: '
|
|
65
|
+
return (h(Host, { key: 'b552b6f0190327fbd9fcf458994feee63b761d38', class: "cty-circle" }, h("svg", { key: '64b07a4798544cc9f9878dc4be3a046c881a6706', ref: el => (this.svgEl = el) }, this.needDefs && h("defs", { key: '5762f3641189b8d8dd8da4beddaeb82c28b68287' }, h("linearGradient", { key: '03205dd0dc64e90bf6ca30fb613ceeffe688585e', id: this.gradientId, x1: "100%", y1: "0%", x2: "0%", y2: "0%", gradientTransform: "rotate(90)" }, this.colors.map(() => (h("stop", null))))), h("path", { key: '8075a1ece096aa40e2e57bba80760bfb87c38b01', ref: el => (this.layerEl = el), class: "cty-circle__layer", style: {
|
|
66
66
|
'stroke-width': this.width + 'px',
|
|
67
67
|
'strokeDasharray': (this.ratio * this.perimeter) + 'px ' + this.perimeter + 'px'
|
|
68
|
-
} }), h("path", { key: '
|
|
68
|
+
} }), h("path", { key: 'fefec8d3cb6927b35b37ca04498d3abc572e8b63', ref: el => (this.hoverEl = el), class: "cty-circle__hover", style: {
|
|
69
69
|
'stroke': this.rate <= 0 && this.zeroTransparent ? 'transparent' : this.needDefs ? 'url(#' + this.gradientId + ')' : this.color,
|
|
70
70
|
'stroke-width': +this.width + this.widthDif + 'px',
|
|
71
71
|
'strokeDasharray': (this.ratio * this.rate / 100 * this.perimeter) + 'px ' + this.perimeter + 'px'
|
|
72
|
-
} })), this.text !== '' && h("div", { key: '
|
|
72
|
+
} })), this.text !== '' && h("div", { key: 'f683c2dc61d281e6c506ff9a15b3a2a2f4ef56da', class: "cty-circle__text" }, this.text), h("slot", { key: '64eba94a1e793fe3dec863d0733f8a7ceb9e659b' })));
|
|
73
73
|
}
|
|
74
74
|
get el() { return this; }
|
|
75
75
|
static get watchers() { return {
|
package/components/crop-image.js
CHANGED
|
@@ -208,7 +208,7 @@ const CropImage = /*@__PURE__*/ proxyCustomElement(class CropImage extends HTMLE
|
|
|
208
208
|
return (h("div", { class: "cty-crop-image__buttons flex-center-between safe-area-bottom-border-color" }, this.cancelText && cancelCmp, this.confirmText && confirmCmp));
|
|
209
209
|
}
|
|
210
210
|
render() {
|
|
211
|
-
return (h(Host, { key: '
|
|
211
|
+
return (h(Host, { key: 'f03ef034659039ca694e92e094e6f771b65ed41d', class: "cty-crop-image", onMouseDown: (e) => this.doTouchStart(e), onTouchStart: (e) => this.doTouchStart(e), onTouchMove: (e) => this.doTouchMove(e), onTouchEnd: () => this.doTouchEnd() }, h("slot", { key: '4d1f7dcd27ebf1824937e8e056fec2e64b871610', name: "header" }), h("div", { key: '53adedd36ec4b3d2a622d9c308f35b593df3c7dd', class: "cty-crop-image__wrapper", ref: el => (this.imageEl = el) }, h("img", { key: '70dc841fd80c5e80923e3365597653837ee2d01d', src: this.url, class: "cty-crop-image__image" })), h("div", { key: '7c19c8da9253e17615aa2699391fcc545cb1f9ac', class: "cty-crop-image__clip", ref: el => (this.clipEl = el) }), h("slot", { key: '8394107199cf8626534e3d0c1a258225306c6eaf', name: "clip" }), this.renderButtons(), h("slot", { key: 'e723cd0166a0a1d752d6f69af3873ac97b96298c', name: "footer" })));
|
|
212
212
|
}
|
|
213
213
|
get el() { return this; }
|
|
214
214
|
static get style() { return cropImageCss; }
|
|
@@ -217,7 +217,7 @@ const CameraPhoto = /*@__PURE__*/ proxyCustomElement(class CameraPhoto extends H
|
|
|
217
217
|
this.ctyTap.emit({ index, imageList });
|
|
218
218
|
}
|
|
219
219
|
render() {
|
|
220
|
-
return (h(Host, { key: '
|
|
220
|
+
return (h(Host, { key: 'eea07b307cd18485730d5c3eadce68aaf8dc1b29', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'cty-pos-cover': this.overlay }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-action-sheet", { key: '7efa3cb1bbcf392be95095f4aebec0f50281cce3', class: "cty-camera-photo", animated: false, overlayIndex: 1, backdropDismiss: this.backdropDismiss, title: this.title, closeable: this.closeable, closeIcon: this.closeIcon, cancelText: this.cancelText, options: this.options, onCtyDismiss: () => this.dismiss(), onCtyTap: e => this._buttonClick(e) }), this.showCropImage && (h("cty-backdrop", { key: 'beb314ab8d1f1001bb6031f94d6cb3caa5d02e78', backdropDismiss: false }, h("cty-crop-image", { key: '898aa3f15eed3c289f3f543d07520bfc09c10640', url: this.clipImage, cancelText: this.clipCancelText, confirmText: this.clipCconfirmText, imageWidth: this.clipImageWidth, imageBackground: this.clipImageBg, maxScale: this.clipMaxScale, minScale: this.clipMinScale, suffix: this.clipImageSuffix, quality: this.clipImageQuality, onCtyCancel: () => this._doCropCancel(), onCtyConfirm: (e) => this._doCropConfirm(e) }))), this.showPermissionPurpose && h("cty-permission-purpose", { key: '556c162b22f867697445d72d30befd9c92a66985', description: this.permissionDescription }), this.continuous && this.showCameraPreview && h("cty-camera", Object.assign({ key: '45d9311b5eea8abc67fbd62bcb4c6ad8177a9e4c' }, this.cameraProps, { onCtyDismiss: () => this.showCameraPreview = false, onCtyConfirm: (e) => this.continuousConfirm(e) }))));
|
|
221
221
|
}
|
|
222
222
|
get el() { return this; }
|
|
223
223
|
static get watchers() { return {
|
|
@@ -207,7 +207,7 @@ const CanvasBoard = /*@__PURE__*/ proxyCustomElement(class CanvasBoard extends H
|
|
|
207
207
|
} }, h("i", { style: { width: item * 2 + 'px', height: item * 2 + 'px' } }))))), h("div", { class: "cty-canvas-board__line-alpha", onClick: e => e.stopPropagation() }, h("div", { class: "cty-canvas-board__line-alpha-bg" }), h("ion-range", { max: 1, min: 0, step: 0.01, ref: (el) => (this.alphaRangeRef = el), class: "cty-canvas-board__line-alpha-range", value: this.alpha, onIonChange: (event) => this.alphaChange(event) })))));
|
|
208
208
|
}
|
|
209
209
|
render() {
|
|
210
|
-
return (h(Host, { key: '
|
|
210
|
+
return (h(Host, { key: '77461f05c3380459bbf8663b7b17adbefc1a9eb5', class: "cty-canvas-board flex-column" }, h("slot", { key: '1b9fdfc979353af1e012207341007884ebc854d3', name: "header" }), this.headerOpn && (h("div", { key: '44f83e96e5ee8d8ecbf192bbf6068a39d3f54eef', class: "cty-canvas-board__header flex-center-between" }, h("slot", { key: '1ece92c8330cabf64d6be6245b8586b576862e6c', name: "header-start" }), this.bgIcon && h("button", { key: 'c4a1a08e5db586d55e145f60d28c429d02d346be', class: "cty-button-native", onClick: () => this.updateBgColor() }, h("cty-icon", { key: '86113a93e80216c1fa342a41d6e144e6c8873762', name: this.bgIcon, class: "cty-canvas-board__palette" }), h("input", { key: 'ab128a619a0548e3bda4ab952144f8735e004874', type: "color", class: "cty-canvas-board__picker-color", ref: el => (this.bgPickerEl = el), value: this.bgColor, onInput: (e) => this.bgColorChange(e) })), h("slot", { key: '62bcbe6f83e52bf9ce60c36f57388b080e330763', name: "header-opn-start" }, " "), (this.undoIcon || this.redoIcon) && h("div", { key: 'e061c427becfd216bb547ac2a43bd88d84a8516d', class: "cty-canvas-board__opn flex-center" }, this.undoIcon && h("button", { key: '7a120805a9cda67ec76f7ceb7e1e9e2f9b43119e', class: "cty-button-native cty-canvas-board__opn-icon", onClick: () => this.undo() }, h("cty-icon", { key: '61f9e434e4c1175e0e0deb645c588286e11abb72', name: this.undoIcon, class: { 'cty-canvas-board__opn-active': this.drawingHistory.length > 1 && this.step > 0 } })), this.redoIcon && h("button", { key: '65240b6060be512120983d70affb6320507b9a3f', class: "cty-button-native cty-canvas-board__opn-icon", onClick: () => this.redo() }, h("cty-icon", { key: '60e2c28cadd3c2d40eeb98a8cad9f72d792f8589', name: this.redoIcon, class: { 'cty-canvas-board__opn-active': this.step < this.drawingHistory.length - 1 } }))), h("slot", { key: '8e867a01cdaafbbe08da91fce36f22fa049f4db9', name: "header-opn-end" }), this.clearIcon && h("button", { key: '19a809120e0f4604d52dbe03dc3f67f2c5698f83', class: "cty-button-native cty-canvas-board__clear", onClick: () => this.clear() }, h("cty-icon", { key: 'c49522de5d1b2d442f0e44b2ac36fdff97ea41ab', name: this.clearIcon })), h("slot", { key: 'fc0ba8abb29039edf9151dfb9d51a1aeede60cd8', name: "header-end" }))), h("slot", { key: '1ec5283eb61319f212d0898d8a5ac1d88d13f508', name: "main" }), h("div", { key: 'c0b508a7b55cdc56df6c848543d1b2b0e65bddb2', class: "cty-canvas-board__main" }, h("canvas", { key: '3a22c825d29c62a52aef31ab60deefbbd062d1b5', ref: el => (this.canvasEl = el), style: { background: this.bgColor }, onTouchStart: e => this.startDrawing(e), onTouchMove: e => this.moveDrawing(e), onTouchEnd: e => this.endDrawing(e), onMouseDown: e => this.startDrawing(e), onMouseMove: e => this.moveDrawing(e), onMouseUp: e => this.endDrawing(e) }), h("canvas", { key: '89311b6698020381cd3b35895997678c111dcd98', ref: el => (this.imageCanvasEl = el), style: { display: 'none' } }), h("span", { key: '5f462b61d2b29b1b702376085bc166681fa18ce9', class: "cty-canvas-board__eraser-circle", ref: el => (this.eraserEl = el) }), this.isCanvasEmpty && h("slot", { key: '765b89a4bd4b89d4be9435b7b28f1460830e5c40', name: "placeholder" }), h("slot", { key: '05bd544f4293977a3e505b50f2fc1563c51461df' })), h("slot", { key: 'c5828b000c59d7ac6c788fd8f058bf3cd17b9b32', name: "footer" }), this.footerOpn && (h("div", { key: '6420abefc57b8ee8f11a79ddea686f4804b19119', class: "cty-canvas-board__footer flex-center" }, h("slot", { key: 'f3ccd75e1e869c98e123b8e419e8a59ba9113bce', name: "footer-start" }), this.pencilIcon && (h("button", { key: 'c140c157ae713d94c9d0f6da55ae3e87d488b5b7', class: "cty-button-native cty-canvas-board__pen", onClick: e => this.updatePencil(e) }, h("cty-icon", { key: '7262819d76c1552a9566f025270255625f22ecc3', name: this.pencilIcon, class: { 'cty-canvas-board__footer-active': !this.isEraser } }))), h("button", { key: '31f3f0f0f2a68c5290809a4ae8a012fd353917f2', class: "cty-button-native cty-canvas-board__eraser", onClick: () => (this.isEraser = !this.isEraser) }, h("cty-icon", { key: '897c7d062bbdd7dceccaeb759f5967a000023e41', name: this.eraserIcon, class: { 'cty-canvas-board__footer-active': this.isEraser } })), h("button", { key: 'c9a7a647baa4ac93b081c3f9586c7455a5c5ef44', class: "cty-button-native cty-canvas-board__color-button", onClick: () => this.updateColor() }, h("input", { key: 'd91f1947c9f66a5050d92a6c9fd2c4758d119c20', type: "color", value: this.strokeColor, class: "cty-canvas-board__picker-color", ref: el => (this.colorPickerEl = el), onInput: (e) => this.penColorChange(e) })), h("slot", { key: 'bc134a972e3d5bca92e59b612cdff45ee7d1041f', name: "footer-end" }))), h("slot", { key: '5ab3b8c50038cbf8d98728ded8565d831d8eed1b', name: "bottom" }), this.showButtons && (h("div", { key: 'af85a5d9ef4d6e1ae76c43a9700e2b2b1a1bdcc3', class: "cty-canvas-board__buttons flex-justify-end" }, h("slot", { key: 'cb01fd8b02cf4b47af3143574c519de888b9edf9', name: "bottom-button-start" }), h("button", { key: '62141bb06b1e69946080a385043127c10963a25c', class: "cty-canvas-board__button cty-button-native", onClick: () => this.clear() }, this.clearLabel), h("button", { key: 'abf4c4bbab5f2dda8ea5b52f5d1bfbad64eca70b', class: "cty-canvas-board__button cty-button-native", onClick: () => this.confirm() }, this.confirmLabel), h("slot", { key: '91e5ab4da613f99793f900f154bdf94dd4c0adbb', name: "bottom-button-end" }))), this.renderPopover()));
|
|
211
211
|
}
|
|
212
212
|
get el() { return this; }
|
|
213
213
|
static get style() { return canvasBoardCss; }
|
|
@@ -769,7 +769,7 @@ const CanvasVideo = /*@__PURE__*/ proxyCustomElement(class CanvasVideo extends H
|
|
|
769
769
|
}, onTransitionEnd: () => this.transitionend() }, h("div", { class: "cty-canvas-video__progress-inner" }))), !this.isVertical && this.isMove && !!this.progressBar && (h("div", { class: "cty-canvas-video__time" }, h("span", { class: "cty-canvas-video__time-left" }, this.transTime(this.pTime)), h("span", { class: "cty-canvas-video__time-center" }, "/"), h("span", { class: "cty-canvas-video__time-right" }, this.transTime(this.pDuration)))), !(!this.isVertical && this.isMove && !!this.progressBar) && (h("div", { class: "cty-canvas-video__content" }, option.renderSlot !== 'content' && (h("div", { class: "cty-canvas-video__content-box" }, h("div", { class: "cty-canvas-video__tip" }, h("cty-icon", { name: "cty-lamp" }), option[this._props.tip || 'tip']), h("p", { class: "cty-canvas-video__date" }, option[this._props.date || 'date']), h("p", { class: "cty-canvas-video__description" }, option[this._props.description || 'description']), h("button", { class: "cty-canvas-video__name cty-button-native", onClick: e => this.clickName(e) }, '@' + option[this._props.name || 'name']))), option.contentRender !== undefined && h("slot", { name: option.contentRender }))), !(!this.isVertical && this.isMove && !!this.progressBar) && (h("div", { class: "cty-canvas-video__sidebar" }, option.renderSlot !== 'sidebar' && (h("button", { class: "cty-canvas-video__avatar cty-button-native", onClick: e => this.clickAvatar(e) }, h("img", { src: option[this._props.avatar || 'avatar'] }), this.avatarButton && h("span", { class: "cty-canvas-video__avatar-button" }, this.avatarButton))), option.renderSlot !== 'sidebar' && option[this._props.likeCount || 'likeCount'] && (h("button", { class: "cty-canvas-video__sidebar-item cty-button-native", onClick: e => this.clickLike(e) }, h("cty-icon", { name: "cty-thumb" }), h("span", null, option[this._props.likeCount || 'likeCount']))), option.renderSlot !== 'sidebar' && option[this._props.viewCount || 'viewCount'] && (h("button", { class: "cty-canvas-video__sidebar-item cty-button-native" }, h("cty-icon", { name: "cty-eye" }), h("span", null, option[this._props.viewCount || 'viewCount']))), option.renderSlot !== 'sidebar' && option[this._props.collectCount || 'collectCount'] && (h("button", { class: "cty-canvas-video__sidebar-item cty-button-native", onClick: e => this.clickCollect(e) }, h("cty-icon", { name: "cty-star" }), h("span", null, option[this._props.collectCount || 'collectCount']))), option.sidebarRender !== 'sidebar' && (h("button", { class: "cty-canvas-video__sidebar-item cty-button-native", onClick: e => this.clickShare(e) }, h("cty-icon", { name: "cty-share" }), h("span", null, "\u5206\u4EAB"))), option.sidebarRender !== undefined && h("slot", { name: option.sidebarRender }))))));
|
|
770
770
|
}
|
|
771
771
|
render() {
|
|
772
|
-
return (h(Host, { key: '
|
|
772
|
+
return (h(Host, { key: 'c9247641307c3565f4162b4ac9527af5901f0d57', class: "cty-canvas-video" }, h("div", { key: '1064099a468d1cb4e1bfcbfcba86726c7b03a778', class: "cty-canvas-videos" }, h("video", { key: 'd07090531623c5def3b458f32882ecbd3f79d760', ref: el => (this.videoEl1 = el), preload: this.preload, "x5-video-player-type": "h5", "x5-video-player-fullscreen": "true", playsinline: true, "webkit-playsinline": true, onTimeUpdate: () => this.videoTimeupdate1(), onEnded: () => this.videoEnded(), src: this.videoUrl1, typeof: "video/mp4", autoplay: this.autoplay && this.videoIndex == 0 }), h("video", { key: '5a3cce01cf472b86a2fb57ec2c3152537cae51c3', ref: el => (this.videoEl2 = el), preload: this.preload, "x5-video-player-type": "h5", "x5-video-player-fullscreen": "true", playsinline: true, "webkit-playsinline": true, onTimeUpdate: () => this.videoTimeupdate2(), onEnded: () => this.videoEnded(), src: this.videoUrl2, typeof: "video/mp4", autoplay: this.autoplay && this.videoIndex == 1 }), h("video", { key: '10972bbb0330fe362e7182f672d09fcfbf8722f2', ref: el => (this.videoEl3 = el), preload: this.preload, "x5-video-player-type": "h5", "x5-video-player-fullscreen": "true", playsinline: true, "webkit-playsinline": true, onTimeUpdate: () => this.videoTimeupdate3(), onEnded: () => this.videoEnded(), src: this.videoUrl3, typeof: "video/mp4", autoplay: this.autoplay && this.videoIndex == 2 })), h("div", { key: '4970e44d666e586da384372056a835b226ab7529', class: "cty-canvas-video__slides", ref: el => (this.videoSlidesEl = el) }, this.renderSlide())));
|
|
773
773
|
}
|
|
774
774
|
get el() { return this; }
|
|
775
775
|
static get watchers() { return {
|
|
@@ -112,13 +112,13 @@ const CascaderView = /*@__PURE__*/ proxyCustomElement(class CascaderView extends
|
|
|
112
112
|
}
|
|
113
113
|
render() {
|
|
114
114
|
const levels = this.getLevels();
|
|
115
|
-
return (h(Host, { key: '
|
|
115
|
+
return (h(Host, { key: '02b0f40ab83b2f227be69ada8954abeb95ccd0ae', class: "cty-cascader-view" }, h("div", { key: '33be506937c8a4438a3002dad686e0680fdde965', class: "cty-cascader-tabs" }, levels.map((level, index) => (h("div", { class: {
|
|
116
116
|
'cty-cascader-tab': true,
|
|
117
117
|
'cty-cascader-tab-active': this.tabActiveIndex === index,
|
|
118
|
-
}, part: "tab-item", onClick: () => this.onTabChange(index) }, h("div", { class: "cty-cascader-header-title", ref: el => (this.tabRefs[index] = el) }, level.selected ? level.selected[this.props.label] : this.placeholder)))), h("div", { key: '
|
|
118
|
+
}, part: "tab-item", onClick: () => this.onTabChange(index) }, h("div", { class: "cty-cascader-header-title", ref: el => (this.tabRefs[index] = el) }, level.selected ? level.selected[this.props.label] : this.placeholder)))), h("div", { key: 'cfdf8e4d323feba09c2f869c9188e349c439d831', class: "cty-cascader-tab-underline", style: {
|
|
119
119
|
width: `${this.underlineWidth}px`,
|
|
120
120
|
transform: `translateX(${this.underlineLeft}px)`,
|
|
121
|
-
} })), h("div", { key: '
|
|
121
|
+
} })), h("div", { key: '67bbfb1a0b7df79506e672cc25582e63cabb499d', class: "cty-cascader-content" }, (() => {
|
|
122
122
|
const level = levels[this.tabActiveIndex];
|
|
123
123
|
if (!level)
|
|
124
124
|
return null;
|
|
@@ -392,7 +392,7 @@ const Cascader = /*@__PURE__*/ proxyCustomElement(class Cascader extends HTMLEle
|
|
|
392
392
|
this.ctyConfirm.emit({ values, indexes, options });
|
|
393
393
|
}
|
|
394
394
|
render() {
|
|
395
|
-
return (h(Host, { key: '
|
|
395
|
+
return (h(Host, { key: 'f77c6e1424f111bc8d37bd12b12070feb39101cf', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden': true }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-backdrop", { key: '95b6eaafaf4803d2a86a5110855541ad67f6e49e', position: "bottom", backdropDismiss: this.backdropDismiss, onCtyDismiss: () => this.dismiss() }, h("div", { key: '572fceaf785626fac23dda2bce92bf5a6286d868', class: "cty-cascader", part: "cascader", onClick: (e) => e.stopPropagation() }, h("slot", { key: '0942125916bf919c0a65e5627331126afded4826', name: 'header' }), h("div", { key: 'd6df99527b420d74799fc46c0cc6bd705e1a8029', class: "cty-cascader-header", part: "header" }, h("button", { key: '62d51a685660ea3f72cb43ae86e11f95aa829359', onClick: () => this.dismiss(), class: "cancel cty-button-native" }, this.cancelText), h("div", { key: '4e24518a56ef746cbc8416817fa22d2bd64befbe', class: "cty-cascader-title" }, this.title), h("button", { key: 'bb2cd0c4f2300fb9880038e2e9ba516b1ec479b0', onClick: () => this.confirm(), class: "confirm cty-button-native" }, this.confirmText)), h("div", { key: 'eff01b56ebb0abeda07bab0ade1532f7555484b3', class: "cty-cascader-columns", part: "columns", style: { height: this.columnHeight + 'px' } }, this.scrollColumns.map(c => h("div", { class: "cty-cascader-column", onTouchStart: (e) => this.handleTouchstart(e, c), onTouchMove: (e) => this.handleTouchmove(e, c), onTouchEnd: () => this.handleTouchend(c), onMouseDown: (e) => this.handleTouchstart(e, c), onMouseMove: (e) => this.handleTouchmove(e, c), onMouseUp: () => this.handleTouchend(c) }, h("div", { ref: (el) => this.setScrollEl(el, c), class: "cty-cascader-scroller", style: { transform: 'translateY(' + c.translate + 'px)', 'transition-duration': c.duration + 'ms', 'transition-property': c.duration ? 'transform' : 'none' }, onTransitionEnd: () => this.handleTransitionend(c) }, c.column.map((option, i) => h("div", { class: 'cty-cascader-option ' + (option.className || ''), style: { height: this.optionHeight + 'px' }, onClick: () => this.handleClick(c, i) }, h("div", { class: 'cty-cascader-text ' + (option.textClassName || '') }, option[this.textKey])))))), h("div", { key: 'dbf1e0cb4fb9134316f93c6a3030237dde566f7b', class: "cty-cascader-picked", style: { top: this.center + 'px', height: this.optionHeight + 'px' } }), h("div", { key: '537c696af3cdb849c6beb2a8cd3d2dccb2921333', class: "cty-cascader-mask", style: { 'background-size': '100% ' + (this.columnHeight - this.optionHeight) / 2 + 'px' } }))))));
|
|
396
396
|
}
|
|
397
397
|
get el() { return this; }
|
|
398
398
|
static get watchers() { return {
|
|
@@ -143,8 +143,8 @@ const CountDown = /*@__PURE__*/ proxyCustomElement(class CountDown extends HTMLE
|
|
|
143
143
|
return timeText;
|
|
144
144
|
}
|
|
145
145
|
render() {
|
|
146
|
-
return (h(Host, { key: '
|
|
147
|
-
this.timeRange.map((item, idx) => (h("div", { class: "cty-count-down__item", part: "item" }, h("span", { class: "cty-count-down__label", part: "label" }, pad(this.timeData[item], 2) || this.timeData[item]), (this.unit || idx !== this.timeRange.length - 1) && h("span", { class: "cty-count-down__unit" }, this.unit ? this.dateFormatUnit[item] : ':')))), this.isSingle && (h("div", { key: '
|
|
146
|
+
return (h(Host, { key: '2f81e4f12a44af17c35088f25634497f32abc9c5', class: "cty-count-down" }, !this.isSingle &&
|
|
147
|
+
this.timeRange.map((item, idx) => (h("div", { class: "cty-count-down__item", part: "item" }, h("span", { class: "cty-count-down__label", part: "label" }, pad(this.timeData[item], 2) || this.timeData[item]), (this.unit || idx !== this.timeRange.length - 1) && h("span", { class: "cty-count-down__unit" }, this.unit ? this.dateFormatUnit[item] : ':')))), this.isSingle && (h("div", { key: 'fafb431baf155e6ddb6d9288b2fcb28cc4afc50f', class: "cty-count-down__item", part: "item" }, h("span", { key: '7c5e49d9a4e4459c7804afd8e6c7c1fd21d91892', class: "cty-count-down__label", part: "label" }, " ", this.formattedTime, " "))), h("slot", { key: '7a60d356c17a00eb9700e034fe20efc9f0b16398' })));
|
|
148
148
|
}
|
|
149
149
|
get el() { return this; }
|
|
150
150
|
static get style() { return countDownCss; }
|
|
@@ -102,24 +102,24 @@ const Dropdown = /*@__PURE__*/ proxyCustomElement(class Dropdown extends HTMLEle
|
|
|
102
102
|
}
|
|
103
103
|
render() {
|
|
104
104
|
const { elRect, innerOptions, tabActiveIndex, arrowIcon, innerValue, direction } = this;
|
|
105
|
-
return (h(Host, { key: '
|
|
105
|
+
return (h(Host, { key: '5cd075db391b80bff2c3802c5864ffe76b9931c2', class: {
|
|
106
106
|
'cty-dropdown': true,
|
|
107
107
|
'cty-dropdown-open': tabActiveIndex !== -1,
|
|
108
|
-
} }, h("div", { key: '
|
|
108
|
+
} }, h("div", { key: 'fbf91dbc7e7636adadcdabc7751dd74582e293cd', class: "cty-dropdown-nav" }, innerOptions.map((option, index) => (h("div", { class: {
|
|
109
109
|
'cty-dropdown-item': true,
|
|
110
110
|
'cty-dropdown-item__disabled': !!option.disabled,
|
|
111
111
|
'cty-dropdown-item__active': index === tabActiveIndex,
|
|
112
112
|
}, onClick: () => this.toggleNavPop(index) }, h("div", { class: "cty-dropdown-item-title flex-center" }, h("span", { class: "cty-dropdown-item-title-text" }, option.label), h("span", { class: {
|
|
113
113
|
'cty-dropdown-item-title-arrow': true,
|
|
114
114
|
'cty-dropdown-item-title-arrow__active': index === tabActiveIndex,
|
|
115
|
-
} }, h("cty-icon", { name: option.arrowIcon || arrowIcon }))))))), h("div", { key: '
|
|
115
|
+
} }, h("cty-icon", { name: option.arrowIcon || arrowIcon }))))))), h("div", { key: '11c4c8c68c670c92ae86af2e105969b2daffdd6e', class: {
|
|
116
116
|
'cty-dropdown-popup': true,
|
|
117
117
|
'cty-dropdown-popup__visible': tabActiveIndex != -1,
|
|
118
118
|
}, style: {
|
|
119
119
|
top: `${direction == 'up' ? 0 : elRect.bottom}px`,
|
|
120
120
|
bottom: `${direction == 'up' ? 'auto' : 0}`,
|
|
121
121
|
height: `${direction == 'up' ? `${elRect.top}px` : 'auto'}`
|
|
122
|
-
} }, h("div", { key: '
|
|
122
|
+
} }, h("div", { key: 'f7f816b8237b11c4a46a08fc474e5a6ffa35ca46', class: "cty-dropdown-popup-mask", onClick: this.handleMaskClick }), h("div", { key: '73a5db305846157a312f197045cfb1fa2f221a0c', class: "cty-dropdown-popup-body", style: { bottom: `${direction == 'up' ? '0px' : 'auto'}` } }, innerOptions.map((option, index) => {
|
|
123
123
|
if (index != tabActiveIndex)
|
|
124
124
|
return null;
|
|
125
125
|
return (h("slot", { name: "content" }, h("div", { class: "cty-dropdown-popup-content" }, option.children && Array.isArray(option.children) && option.children.map((child, index) => (h("slot", { name: 'content-item' + index }, h("div", { class: { 'cty-dropdown-popup-item': true, "cty-dropdown-popup-item__active": innerValue[tabActiveIndex] == child.key }, onClick: () => this.handleItemClick(child) }, child.label)))))));
|
package/components/cty-empty.js
CHANGED
|
@@ -12,7 +12,7 @@ const Empty = /*@__PURE__*/ proxyCustomElement(class Empty extends HTMLElement {
|
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
14
|
const image = this.image === undefined ? (config.get('resUrlPrefix', '') + 'assets/cty_res/svg/cty-no-data.svg') : this.image;
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '4eb56b280eeb9f0fbe4b67cd71a558cf0f0bc7e2', class: "cty-empty" }, h("slot", { key: '241e56e654739d1edb6af501f37652ffd07d834e', name: "top" }), image && h("img", { key: '429d88a5b6b0c24b6db1e877afb514189fb26eb5', class: "cty-empty__image", src: image }), h("slot", { key: '41e9cfc4948a4a72dbf83d992db62bba8269781c', name: "image" }), this.description && h("p", { key: '4cb5825ef8ad176b427d14595d8892cae299fdc1', class: "cty-empty__description" }, this.description), h("slot", { key: 'f0b31f8bdd3749419cb11d776191169b1f692b7c', name: "description" })));
|
|
16
16
|
}
|
|
17
17
|
static get assetsDirs() { return ["assets"]; }
|
|
18
18
|
get el() { return this; }
|
|
@@ -148,7 +148,7 @@ const FloatingBubble = /*@__PURE__*/ proxyCustomElement(class FloatingBubble ext
|
|
|
148
148
|
return touch;
|
|
149
149
|
}
|
|
150
150
|
render() {
|
|
151
|
-
return (h(Host, { key: '
|
|
151
|
+
return (h(Host, { key: 'e0ec234a20abec0ba7294d31656bfbc89f8974ff', class: "cty-floating-bubble", onTouchStart: () => this.onTouchStart(), onTouchMove: (e) => this.onTouchMove(e), onTouchEnd: (e) => this.onTouchEnd(e), onTouchCancel: (e) => this.onTouchEnd(e), onMouseDown: () => this.onTouchStart(), onMouseMove: (e) => this.onTouchMove(e), onMouseUp: (e) => this.onTouchEnd(e), onMouseLeave: (e) => this.onTouchEnd(e), onClick: (e) => this.onClick(e), style: this.rootStyle }, this.icon && (h("cty-icon", { key: '84dd9f24811481d7a513d10242deecc7678a2255', class: "cty-floating-bubble__icon", name: this.icon })), h("slot", { key: 'bc7ea18aa26283be64dd255b78f3df8010bc577d' })));
|
|
152
152
|
}
|
|
153
153
|
get el() { return this; }
|
|
154
154
|
static get style() { return floatingBubbleCss; }
|
|
@@ -100,15 +100,15 @@ const FloatingPanel = /*@__PURE__*/ proxyCustomElement(class FloatingPanel exten
|
|
|
100
100
|
return moveY;
|
|
101
101
|
}
|
|
102
102
|
render() {
|
|
103
|
-
return (h(Host, { key: '
|
|
103
|
+
return (h(Host, { key: 'f2cf5536d268f54f0ec3683afabb99dc10459f52', class: "cty-floating-panel flex-column", onTouchStart: (e) => this.dragStart(e), onTouchMove: (e) => this.dragMove(e), onTouchEnd: () => this.dragEnd(), onMouseDown: (e) => this.dragStart(e), onMouseMove: (e) => this.dragMove(e), onMouseUp: () => this.dragEnd() }, h("div", { key: '00f3f71ee575b3205f1b6c6bc83e9a332a41600c', class: "cty-floating-panel__header flex-center", onTouchStart: () => {
|
|
104
104
|
this.setContentTouched(false);
|
|
105
105
|
}, onMouseDown: () => {
|
|
106
106
|
this.setContentTouched(false);
|
|
107
|
-
} }, h("slot", { key: '
|
|
107
|
+
} }, h("slot", { key: 'a2c0b49cdf13aefc8d82442e6ae4caae6ddb7bf1', name: "icon-start" }), this.icon && h("cty-icon", { key: '33b43106ced47e3a46a0b4e34284ff042bcae596', class: "cty-floating-panel__header-bar", name: this.icon }), h("slot", { key: '185bcb4c5d3e3b1dd6b841ce89ffe5c478ca40f7', name: "icon-end" })), h("div", { key: '60791d76b61410d85f4e34601a47dd22bd8a5f1b', class: "cty-floating-panel__content", ref: (el) => (this.contentRef = el), onTouchStart: () => {
|
|
108
108
|
this.setContentTouched(true);
|
|
109
109
|
}, onMouseDown: () => {
|
|
110
110
|
this.setContentTouched(true);
|
|
111
|
-
} }, h("slot", { key: '
|
|
111
|
+
} }, h("slot", { key: 'd84ff597db9ec40cb588e306dbf6a87b658d0078' }))));
|
|
112
112
|
}
|
|
113
113
|
get el() { return this; }
|
|
114
114
|
static get style() { return floatingPanelCss; }
|
|
@@ -94,7 +94,7 @@ const ImageUpload = /*@__PURE__*/ proxyCustomElement(class ImageUpload extends H
|
|
|
94
94
|
this.ctyDeleteImage.emit(this.internalImages);
|
|
95
95
|
}
|
|
96
96
|
render() {
|
|
97
|
-
return (h(Host, { key: '
|
|
97
|
+
return (h(Host, { key: 'c74ff7c9782bd2d28df239249336aab72814307e', class: "cty-image-upload flex-wrap" }, this.internalImages.map((item, idx) => (h("div", { class: "cty-image-upload__item", onClick: () => this.handleImageTap(idx) }, h("img", { class: "cty-image-upload__item-img", src: item.url, style: { 'object-fit': item.fit } }), this.deleteable && (h("div", { class: "cty-image-upload__item-delete flex", onClick: e => this.handleImageDelete(e, idx) }, h("slot", { name: "deleteable" }, h("cty-icon", { class: "cty-image-upload__item-delete-icon", name: "cty-close2" }))))))), this.internalImages.length < this.count && (h("div", { key: 'bc2aca9606226e308fac0da596d9aa7d57c0cdc9', class: "cty-image-upload__item flex-column-center", onClick: () => this.handlePickerImage() }, !this.addImage && this.addIcon && h("cty-icon", { key: '71a7f9080d66c77ca6a13e85f442209f7c0ea42f', class: "cty-image-upload__add-icon", name: this.addIcon }), this.addImage && h("img", { key: '86c409c6007ab662098dd1c35d437e7b4ccf5192', class: "cty-image-upload__add-image", src: this.addImage }), h("slot", { key: '85eddf095240e759f6e8039b443da1b62e8cb206', name: "description" })))));
|
|
98
98
|
}
|
|
99
99
|
get el() { return this; }
|
|
100
100
|
static get watchers() { return {
|
|
@@ -92,10 +92,10 @@ const IndexBar = /*@__PURE__*/ proxyCustomElement(class IndexBar extends HTMLEle
|
|
|
92
92
|
this.ctyScrollToPoint.emit(index);
|
|
93
93
|
}
|
|
94
94
|
render() {
|
|
95
|
-
return (h(Host, { key: '
|
|
95
|
+
return (h(Host, { key: 'a53f2aba840cde51fad96c3fa152f55f5eec29cb', class: "cty-index-bar" }, h("div", { key: '0b9cf94a3abaa9c0b6f634da2956067875bec151', class: "cty-index-bar__list" }, this.indexList.map((item, idx) => {
|
|
96
96
|
var _a;
|
|
97
97
|
return h("div", { class: "cty-index-bar__item" }, h("div", { part: "header", class: { 'cty-index-bar__item-header': true, 'cty-index-bar__item-header-active': this.alphabet === item.belong }, style: { position: this.sticky ? 'sticky' : 'initial', 'top': this.stickyTop + 'px' } }, h("span", null, item.belong), this.sum && h("span", { class: "cty-index-bar__item-header-sum" }, "(", item.sum, ")")), h("slot", { name: (_a = item.slot) !== null && _a !== void 0 ? _a : `${idx}` }));
|
|
98
|
-
})), h("div", { key: '
|
|
98
|
+
})), h("div", { key: 'ff0cbe06ef99762719a251aad755841d37acc798', class: "cty-index-bar__sidebar", part: "sidebar" }, this.alphabets.map((item, i) => h("button", { class: { 'cty-index-bar__index cty-button-native': true, 'cty-index-bar__index-active': this.alphabet === item }, onClick: () => this.scrollToIndex(i), onKeyUp: (e) => this.onKeyUp(e, i), tabindex: "0" }, item)))));
|
|
99
99
|
}
|
|
100
100
|
get el() { return this; }
|
|
101
101
|
static get watchers() { return {
|
|
@@ -65,7 +65,7 @@ const Keyboard = /*@__PURE__*/ proxyCustomElement(class Keyboard extends HTMLEle
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: 'd525c65b7c5e689b1569fb2216867221b67f0f09' }));
|
|
69
69
|
}
|
|
70
70
|
get el() { return this; }
|
|
71
71
|
static get style() { return keyboardCss; }
|
|
@@ -82,7 +82,7 @@ const Loading = /*@__PURE__*/ proxyCustomElement(class Loading extends HTMLEleme
|
|
|
82
82
|
return this.spinnerComponents[this.spinner] || null;
|
|
83
83
|
}
|
|
84
84
|
render() {
|
|
85
|
-
return (h(Host, { key: '
|
|
85
|
+
return (h(Host, { key: 'bd3ac53bbc22cc0222ee21c3428d52311d05ff31', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden cty-pos-cover': true }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-backdrop", { key: '0458cd35d0e0875f4c3d20a131df8e8829bc9af5', backdropDismiss: this.backdropDismiss, onCtyDismiss: () => this.dismiss() }, h("div", { key: '2b479bb6111d23af385ab4ebd433c575f0fc5dca', class: this.vertical ? 'cty-loading flex-column-center' : 'cty-loading flex-center', onClick: (e) => e.stopPropagation() }, this.renderSpinner(), h("div", { key: '06a9afa4f27f78e83bfa988eb48a39da95c35e67', class: { 'cty-loading__text': true, 'cty-loading__text-hor': !this.vertical } }, h("slot", { key: '615e24637383a1c57a98b59a9d87746b30116b52' }))))));
|
|
86
86
|
}
|
|
87
87
|
get el() { return this; }
|
|
88
88
|
static get watchers() { return {
|
|
@@ -115,7 +115,7 @@ const MediaCapture = /*@__PURE__*/ proxyCustomElement(class MediaCapture extends
|
|
|
115
115
|
}
|
|
116
116
|
render() {
|
|
117
117
|
const captureDuration = secondsToVehicle(this.captureDuration);
|
|
118
|
-
return (h(Host, { key: '
|
|
118
|
+
return (h(Host, { key: 'a2348b392a4dfc583c83f0aa45ca688c516d3a33', class: { 'cty-media-capture': true, 'cty-media-captured': this.isCaptured } }, h("div", { key: '8941dcb4cbca994d15aead39cf77dea0a621bde8', class: "cty-media-capture__header" }, h("button", { key: '603afe4b821ef29f29db2cd359d9722dc30f41f3', onClick: () => this.doHeaderAction(), class: "cty-button-native" }, h("cty-icon", { key: 'fd886d9f6fd97b34e8950a1e7cc77df9d035f8f5', class: "cty-capture__close-icon", name: this.isCaptured ? this.revocationIcon : this.closeIcon })), this.captureTime && (this.isCaptured || this.capturing) && (h("span", { key: 'b03a09ae0dc739a43961bc9bbde4a6a641fb467b', class: { 'cty-media-capture__time': true, 'cty-media-capture__time-active': this.capturing } }, captureDuration))), this.isCaptured && (h("video", { key: 'a31e886e82bb680bb3a8293f43b7a4231bfa5a31', ref: el => (this.videoEl = el), class: "cty-media-capture__video", autoplay: this.autoplay, loop: this.loop, poster: this.poster, src: this.videoFileUrl, playsinline: true, "webkit-playsinline": true, controls: this.controls, onClick: e => this.toggleVideo(e) })), h("div", { key: 'ad1dc5425bd7df3aafdd2ef1b169999b784ccd44', class: "cty-media-capture__footer flex-center" }, !this.isCaptured && (h("button", { key: '7c9f565bbfb783c28743c44b27dea30ec385e8ed', class: "cty-media-capture__switch cty-button-native", onClick: () => this.doCapture() }, h("span", { key: '27099ff17056b20c3b5615a564712e82727c33e5', class: { 'cty-media-capture__status': true, 'cty-media-capture__status-active': this.capturing } }))), this.isCaptured && (h("button", { key: '693f23683121bc970cd83d6a032be0a007c827de', class: "cty-media-capture__confirm cty-button-native", onClick: () => this.confirm() }, this.confirmText))), h("slot", { key: 'c767b7dac399530e54a34e49c712aefff61af093' })));
|
|
119
119
|
}
|
|
120
120
|
get el() { return this; }
|
|
121
121
|
static get style() { return mediaCaptureCss; }
|
|
@@ -55,7 +55,7 @@ const NoticeBar = /*@__PURE__*/ proxyCustomElement(class NoticeBar extends HTMLE
|
|
|
55
55
|
}, 1000);
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: '8fe4badffd3c26a5b90f3c70bc1266cff3e48dd7', class: "cty-notice-bar flex-align-center" }, this.startIcon && h("button", { key: '42b2ce640e0082a697aabddd09d0e8957e57bc68', part: "start", class: "cty-button-native", onClick: (e) => this.doIconAction(e, 'start') }, h("cty-icon", { key: 'fb3fbccc467ec64d367e99f7125d8b60a7c427b6', name: this.startIcon, class: "cty-notice-bar__start-icon" })), h("slot", { key: '2c87ec53addee98f6d7e3fb2bfce71fc84135851', name: 'start' }), h("div", { key: '009bc56d904bdcaf474d4030537c59a22165f1ae', class: "cty-notice-bar__wrap flex-align-center", ref: el => this.wrapRefEl = el }, h("div", { key: '1a0c6125a02b1bb298476826936461e4f77a3f79', class: { 'cty-ellipsis': !this.scrollable, 'cty-notice-bar__content': true }, ref: el => this.contentEl = el }, this.text, h("slot", { key: '4acc839afa9b5f03c62cd4db2332c3a9cbcc53a1' }))), this.endIcon && h("button", { key: '8277fc5efbf37b01c4747751d89c46e43118b068', part: "start", class: "cty-button-native", onClick: (e) => this.doIconAction(e, 'end') }, h("cty-icon", { key: 'b3b6d477bde47c77b1cfe8c14caf9b8115e0f0ac', name: this.endIcon, class: "cty-notice-bar__end-icon" })), h("slot", { key: 'c0508546a5af3fe0369562be3cc1aa77f9c7488f', name: 'end' })));
|
|
59
59
|
}
|
|
60
60
|
get el() { return this; }
|
|
61
61
|
static get style() { return noticeBarCss; }
|
|
@@ -30,7 +30,7 @@ const PdfViewer = /*@__PURE__*/ proxyCustomElement(class PdfViewer extends HTMLE
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: 'aed6d8695d41419600bad134950fc019f3c0cabd', class: "cty-pdf-viewer" }, h("slot", { key: 'b450966e3adba96b285fec2a06191cb70b705fa2' })));
|
|
34
34
|
}
|
|
35
35
|
get el() { return this; }
|
|
36
36
|
static get style() { return pdfViewerCss; }
|
|
@@ -19,7 +19,7 @@ const Progress = /*@__PURE__*/ proxyCustomElement(class Progress extends HTMLEle
|
|
|
19
19
|
this.handleProgressChange(this.percentage);
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '423e3f4f656108d7f9ad7fcb736970c2991a1cf7', class: "cty-progress" }, h("span", { key: 'de8725f62c537ded20dd6792c4b09d951f453d24', class: "cty-progress__portion", style: { width: this._percentage + '%' } }), this.pivot && (h("span", { key: '6cb688a90e1f875828d895a4550732751784e163', class: "cty-progress__pivot", style: {
|
|
23
23
|
left: this._percentage + '%',
|
|
24
24
|
transform: 'translate(-' + (this._percentage + '%') + ',-50%)',
|
|
25
25
|
} }, this.pivotText || this._percentage + '%'))));
|
|
@@ -118,7 +118,7 @@ const QuickAccess = /*@__PURE__*/ proxyCustomElement(class QuickAccess extends H
|
|
|
118
118
|
return dataList.map((item, idx) => (h("div", { class: "cty-quick-access__list-item flex-column-center", style: { width: this.itemWidth + '%' }, onClick: () => this.clickItem(item, idx) }, item[this._props.icon] && h("cty-icon", { name: item[this._props.icon], class: "cty-quick-access__list-item-icon" }), item[this._props.image] && h("img", { src: item[this._props.image], class: "cty-quick-access__list-item-img" }), item[this._props.text] && h("div", { class: "cty-quick-access__list-item-text" }, item[this._props.text]))));
|
|
119
119
|
}
|
|
120
120
|
render() {
|
|
121
|
-
return (h(Host, { key: '
|
|
121
|
+
return (h(Host, { key: 'da9f105f1edd62ae0907033cd4e1550264a97144', class: "cty-quick-access" }, h("slot", { key: 'bb394487a338085609ccff43ca54a90d2d33d1a8', name: "header" }), h("div", { key: 'fae0602581b0c19ad3a95cbb4424bf507943ef25', ref: el => (this.slideEl = el), class: "cty-quick-access__wrapper flex-align-start", style: { width: this.sliderTotalWidth + '%' }, onTouchStart: e => this.handleDragStart(e), onTouchMove: e => this.handleDragMove(e), onTouchEnd: () => this.handleDragEnd(), onMouseDown: e => this.handleDragStart(e), onMouseMove: e => this.handleDragMove(e), onMouseUp: () => this.handleDragEnd() }, this.list.map(dataList => (h("div", { class: "cty-quick-access__list flex-wrap" }, this.renderDataList(dataList))))), h("slot", { key: '6d06c241da55cd9ce4d06950409c0c9b33eebf47', name: "bottom" }), this.list.length > 1 && this.paper && (h("div", { key: 'c995942baa11333fa2be555d35d30169029c794d', class: "cty-quick-access__pagination flex-center" }, [...this.list.keys()].map(idx => (h("div", { class: { 'cty-quick-access__pagination-point': true, 'active': idx === this.currentPage } }))))), h("slot", { key: '197c43ef5ccf77f33abcbf552150d9955c743ddb', name: "p-bottom" })));
|
|
122
122
|
}
|
|
123
123
|
get el() { return this; }
|
|
124
124
|
static get watchers() { return {
|
package/components/cty-rate.js
CHANGED
|
@@ -156,7 +156,7 @@ const Rate = /*@__PURE__*/ proxyCustomElement(class Rate extends HTMLElement {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
render() {
|
|
159
|
-
return (h(Host, { key: '
|
|
159
|
+
return (h(Host, { key: '2dc67f1fea979036a8adfb4fa4b8634294086b6c', class: { 'cty-rate': true, 'cty-rate__disabled': this.disabled, 'cty-rate__readonly': this.readonly }, onTouchStart: () => this._start(), onTouchMove: (e) => this._move(e), onTouchEnd: () => this._end(), onMouseDown: () => this._start(), onMouseMove: (e) => this._move(e), onMouseUp: () => this._end() }, this.statusList.map(item => (h("div", { class: "cty-rate__item", onClick: (e) => this._doAction(e) }, h("cty-icon", { name: item.status === 'full' ? this.icon : this.voidIcon, class: { 'cty-rate__icon': true, 'cty-rate__icon-full': item.status === 'full', 'cty-rate__icon-disabled': this.disabled } }), this.half && item.value > 0 && item.value < 1 && (h("cty-icon", { name: item.status === 'void' ? this.voidIcon : this.icon, class: { 'cty-rate__icon cty-rate__icon-half': true, 'cty-rate__icon-full': item.status !== 'void', 'cty-rate__icon-disabled': this.disabled }, style: { width: item.value * 100 + '%' } })))))));
|
|
160
160
|
}
|
|
161
161
|
get el() { return this; }
|
|
162
162
|
static get watchers() { return {
|
package/components/cty-record.js
CHANGED
|
@@ -243,7 +243,7 @@ const Record = /*@__PURE__*/ proxyCustomElement(class Record extends HTMLElement
|
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
render() {
|
|
246
|
-
return (h(Host, { key: '
|
|
246
|
+
return (h(Host, { key: 'c4ba73a48a1bc147e056847d4ae46b203c44366c', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden cty-pos-cover': true }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-backdrop", { key: '7218fe22a46c4ac3c028e46494597f36cab4ebe8', position: "bottom", backdropDismiss: this.backdropDismiss, onCtyDismiss: () => this.dismiss() }, h("div", { key: 'a87aec16b7b82b1bde78b687b925d7b48153391e', class: "cty-record safe-area-bottom-padding flex-center-column", onClick: (e) => e.stopPropagation() }, h("slot", { key: 'eccd57954f17e968d23ea94f75d8c3802366d691', name: "header" }), this.closeable && (h("div", { key: 'cbbc613e735c0ac4e2cf135ada8d09eb54aa7d6d', class: "cty-record__close", onClick: () => this.handleCloseRecord() }, h("cty-icon", { key: '77a6c951b39ac67bf8379cbd2753fce83f59338e', name: closeOutline }))), h("p", { key: '86ab24df51b170261d59b8f96a2965affc8c4f59', class: "cty-record__desc" }, this.recordDescription), h("p", { key: 'fde15e3b3250d5426067b2ee499fc352bb9aae27', class: "cty-record__time" }, this.recordDuration), h("div", { key: '897f325e516653d08fe27a250b11a02158e9bd89', class: "cty-record__main flex-align-end-center" }, this.recorded && (h("button", { key: 'a364a0b36d7f783b722f610e55acf6a4fd68b52f', class: "cty-record__redo flex-column-center cty-button-native", onClick: () => this.restartRecording() }, h("cty-icon", { key: '3ae2d555119e0f4a6bd9108067cac53ede537cf6', name: "cty-redo", class: "flex-center" }), h("span", { key: '3174b87f43dec28f2360266f5d7d96265b35877e' }, "\u91CD\u5F55"))), !this.recording && (h("button", { key: '3613cd1f3efcaa231a1ec6ee98239df3cba5de8d', class: "cty-record__button cty-button-native", onClick: () => this.handleRecordAction() }, !this.auditioning && !this.recorded && h("cty-icon", { key: 'ee0fe4426c826face420e41fbcfece92cd892861', name: "cty-record" }), this.auditioning && this.recorded && h("cty-icon", { key: 'd58ce9dcc99395534e9413c0ef7f807421556b94', name: "cty-pause" }), !this.auditioning && this.recorded && h("cty-icon", { key: '76e18cbd690d36bae0bc7cf910aeeaf8bbfa1e46', name: "cty-play" }))), this.recording && (h("div", { key: 'c0fc560fc891395af022ffe392fb12a0bd03dbcc', class: "cty-record__recording flex-center", onClick: () => this.stopRecording() }, h("cty-circle", { key: 'ad604f13d72f3817a43f5d1de4f869f0df888658', rate: (this.recordSecond / this.maxSeconds) * 100, width: this.circleWidth, color: this.circleColor }), h("cty-icon", { key: '2f45c995452aab5a2de6c4854a13dc87594690cc', name: "cty-pause" }))), this.recorded && (h("button", { key: '7b9075d36e6662ebc486d3303f4bb0d10eee63e5', class: "cty-record__yes flex-column-center cty-button-native", onClick: () => this.confirmRecording() }, h("cty-icon", { key: 'f15efd03ccebc4162ef678788a1753fd776327ef', name: "cty-yes", class: "flex-center" }), h("span", { key: '62bcfd0bfab7c3786ec083c1648a4bf996c6ee84' }, "\u786E\u5B9A")))), !this.auditioning && !this.recorded && !this.recording && h("p", { key: 'e03781ff170a57aad3a5d45a0ce5a42cefc13ba4', class: "cty-record__send" }, "\u4EC5\u53D1\u9001\u8BED\u97F3"), (this.auditioning || this.recorded || this.recording) && h("p", { key: '656d9e3141991dc629df234e663b0134dc56296c', class: "cty-record__status" }, this.recordState))), h("ion-toast", { key: '7ae66bbecd89e30b2ad8b0026558969244ad8ee2', isOpen: this.toastOptions.isOpen, message: this.toastOptions.message, duration: 2000, position: "middle", onIonToastWillDismiss: () => (this.toastOptions.isOpen = false) }), this.showWarning && h("cty-alert", { key: '128f2bb455c95c3822a963ae32c16f9074b828f3', title: "\u53D6\u6D88\u5F55\u97F3", content: "\u786E\u5B9A\u53D6\u6D88\u672C\u6761\u5F55\u97F3\uFF1F", buttons: ['取消', '确定'], overlayIndex: 1, onCtyTap: e => this.handleAlertAction(e) }, h("button", { key: '36942f7899f78986cea3bd7844a66fa591267ab3', slot: "close", class: "cty--record__alert-close cty-button-native", onClick: () => this.showWarning = false }, h("cty-icon", { key: 'f0ee3344beed11b83af7832ed23f28b329104ff8', name: "cty-close2" })))));
|
|
247
247
|
}
|
|
248
248
|
get el() { return this; }
|
|
249
249
|
static get watchers() { return {
|
|
@@ -67,7 +67,7 @@ const SegmentSlides = /*@__PURE__*/ proxyCustomElement(class SegmentSlides exten
|
|
|
67
67
|
return this.slidesEl.swiper;
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: '4213f7b87bc6340e47b5a365b6e102a11c57df56', class: "cty-segment-slides" }, h("ion-segment", { key: '7219e32d86bc3a5009e10f05acdee3ead8f2bcb4', part: "segment", class: "cty-segment-slides__segment", value: this._slideValue, onIonChange: (e) => this.segmentChanged(e), mode: "md", style: { 'top': this._top } }, h("slot", { key: '6a2c2d61dcb53180ca3d334032f7e88e3f62b78b', name: 'segments' }), this._segments.map((item, idx) => h("ion-segment-button", { part: "segment-button", value: idx, layout: this.layout, class: "cty-segment-slides__segment-button" }, item[this._segmentProps['label']] && h("span", { class: "cty-segment-slides__segment-label" }, item[this._segmentProps['label']]), item[this._segmentProps['icon']] && h("cty-icon", { name: item[this._segmentProps['icon']], class: "cty-segment-slides__segment-icon" }), h("slot", { name: 'segment-button' + idx })))), h("swiper-container", { key: 'dc948453d173fc4531c01c07807569ee5f8676e5', part: "container", class: "cty-segment-slides__swiper-container", ref: (el) => this.slidesEl = el, observer: this.observer, observerParents: this.observerParents, resistanceRatio: '0', autoHeight: this.autoHeight, onSwiperslidechangetransitionstart: () => this.slideChange() }, this._segments.map((_, idx) => h("swiper-slide", { part: "slide", class: "cty-segment-slides__swiper-slide" }, h("slot", { name: 'content' + idx }))))));
|
|
71
71
|
}
|
|
72
72
|
get el() { return this; }
|
|
73
73
|
static get watchers() { return {
|
|
@@ -64,7 +64,7 @@ const Selector = /*@__PURE__*/ proxyCustomElement(class Selector extends HTMLEle
|
|
|
64
64
|
return [this.value];
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: '4294be3a3fa8169d9ad4e26c5d18b261cee659bf', role: "listbox", class: {
|
|
68
68
|
'cty-selector-grid': !!this.columns,
|
|
69
69
|
}, style: { 'grid-template-columns': `repeat(${this.columns}, 1fr)` } }, this.options.map(option => {
|
|
70
70
|
const valueArr = this.getValueArray();
|