cty-mui-core 1.0.36 → 1.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (356) hide show
  1. package/components/camera.js +36 -11
  2. package/components/circle.js +3 -3
  3. package/components/crop-image.js +1 -1
  4. package/components/cty-camera-photo.js +1 -1
  5. package/components/cty-canvas-board.js +1 -1
  6. package/components/cty-canvas-video.js +1 -1
  7. package/components/cty-cascader-view.js +3 -3
  8. package/components/cty-cascader.js +1 -1
  9. package/components/cty-count-down.js +2 -2
  10. package/components/cty-dropdown.js +4 -4
  11. package/components/cty-empty.js +1 -1
  12. package/components/cty-floating-bubble.js +1 -1
  13. package/components/cty-floating-panel.js +4 -4
  14. package/components/cty-image-upload.js +1 -1
  15. package/components/cty-index-bar.js +2 -2
  16. package/components/cty-keyboard.js +1 -1
  17. package/components/cty-loading.js +1 -1
  18. package/components/cty-media-capture.js +1 -1
  19. package/components/cty-notice-bar.js +1 -1
  20. package/components/cty-pdf-viewer.js +1 -1
  21. package/components/cty-progress.js +1 -1
  22. package/components/cty-quick-access.js +1 -1
  23. package/components/cty-rate.js +1 -1
  24. package/components/cty-record.js +1 -1
  25. package/components/cty-segment-slides.js +1 -1
  26. package/components/cty-selector.js +1 -1
  27. package/components/cty-share-sheet.js +1 -1
  28. package/components/cty-side-panel.js +1 -1
  29. package/components/cty-stepper.js +10 -2
  30. package/components/cty-steps.js +1 -1
  31. package/components/cty-text-ellipsis.js +2 -2
  32. package/components/cty-title-bar.js +1 -1
  33. package/components/cty-tour.js +4 -4
  34. package/components/cty-tutorial.js +1 -1
  35. package/components/cty-video.js +2 -2
  36. package/components/cty-virtual-list.js +12 -7
  37. package/components/divider.js +2 -2
  38. package/components/icon.js +1 -1
  39. package/components/image-picker.js +13 -3
  40. package/components/image-viewer.js +10 -5
  41. package/components/index.js +1 -1
  42. package/components/nav-bar.js +1 -1
  43. package/components/overlay.js +1 -1
  44. package/components/permission-purpose.js +1 -1
  45. package/components/swipe-item.js +2 -2
  46. package/components/swipe.js +1 -1
  47. package/components/swiper.js +5 -1
  48. package/dist/cjs/{camera-preview-CTbXcOZK.js → camera-preview-CjkBcrrF.js} +1 -1
  49. package/dist/cjs/cty-alert_2.cjs.entry.js +3 -3
  50. package/dist/cjs/cty-camera-photo.cjs.entry.js +2 -2
  51. package/dist/cjs/cty-camera_2.cjs.entry.js +36 -14
  52. package/dist/cjs/cty-canvas-board.cjs.entry.js +1 -1
  53. package/dist/cjs/cty-canvas-video.cjs.entry.js +1 -1
  54. package/dist/cjs/cty-cascader-view.cjs.entry.js +3 -3
  55. package/dist/cjs/cty-cascader.cjs.entry.js +1 -1
  56. package/dist/cjs/cty-count-down.cjs.entry.js +2 -2
  57. package/dist/cjs/cty-divider.cjs.entry.js +2 -2
  58. package/dist/cjs/cty-dropdown.cjs.entry.js +4 -4
  59. package/dist/cjs/cty-empty.cjs.entry.js +1 -1
  60. package/dist/cjs/cty-floating-bubble.cjs.entry.js +1 -1
  61. package/dist/cjs/cty-floating-panel.cjs.entry.js +4 -4
  62. package/dist/cjs/cty-icon.cjs.entry.js +1 -1
  63. package/dist/cjs/cty-image-upload.cjs.entry.js +1 -1
  64. package/dist/cjs/cty-image-viewer_6.cjs.entry.js +15 -7
  65. package/dist/cjs/cty-index-bar.cjs.entry.js +2 -2
  66. package/dist/cjs/cty-keyboard.cjs.entry.js +1 -1
  67. package/dist/cjs/cty-loading.cjs.entry.js +1 -1
  68. package/dist/cjs/cty-media-capture.cjs.entry.js +1 -1
  69. package/dist/cjs/cty-mui.cjs.js +1 -1
  70. package/dist/cjs/cty-notice-bar.cjs.entry.js +1 -1
  71. package/dist/cjs/cty-overlay.cjs.entry.js +1 -1
  72. package/dist/cjs/cty-pdf-viewer.cjs.entry.js +1 -1
  73. package/dist/cjs/cty-permission-purpose.cjs.entry.js +1 -1
  74. package/dist/cjs/cty-progress.cjs.entry.js +1 -1
  75. package/dist/cjs/cty-quick-access.cjs.entry.js +1 -1
  76. package/dist/cjs/cty-rate.cjs.entry.js +1 -1
  77. package/dist/cjs/cty-record.cjs.entry.js +1 -1
  78. package/dist/cjs/cty-segment-slides.cjs.entry.js +1 -1
  79. package/dist/cjs/cty-selector.cjs.entry.js +1 -1
  80. package/dist/cjs/cty-share-sheet.cjs.entry.js +1 -1
  81. package/dist/cjs/cty-side-panel.cjs.entry.js +1 -1
  82. package/dist/cjs/cty-stepper.cjs.entry.js +9 -2
  83. package/dist/cjs/cty-steps.cjs.entry.js +1 -1
  84. package/dist/cjs/cty-swipe_2.cjs.entry.js +3 -3
  85. package/dist/cjs/cty-text-ellipsis.cjs.entry.js +2 -2
  86. package/dist/cjs/cty-title-bar.cjs.entry.js +1 -1
  87. package/dist/cjs/cty-tour.cjs.entry.js +4 -4
  88. package/dist/cjs/cty-tutorial.cjs.entry.js +1 -1
  89. package/dist/cjs/cty-video.cjs.entry.js +2 -2
  90. package/dist/cjs/cty-virtual-list.cjs.entry.js +11 -7
  91. package/dist/cjs/{image-picker-BoG8_gzp.js → image-picker-DztF-H0P.js} +12 -2
  92. package/dist/cjs/index.cjs.js +3 -3
  93. package/dist/cjs/loader.cjs.js +1 -1
  94. package/dist/collection/components/camera/camera.js +75 -12
  95. package/dist/collection/components/camera-photo/camera-photo.js +1 -1
  96. package/dist/collection/components/canvas-board/canvas-board.js +1 -1
  97. package/dist/collection/components/canvas-video/canvas-video.js +1 -1
  98. package/dist/collection/components/cascader/cascader.js +1 -1
  99. package/dist/collection/components/cascader-view/cascader-view.js +3 -3
  100. package/dist/collection/components/circle/circle.js +3 -3
  101. package/dist/collection/components/count-down/count-down.js +2 -2
  102. package/dist/collection/components/crop-image/crop-image.js +1 -1
  103. package/dist/collection/components/divider/divider.js +2 -2
  104. package/dist/collection/components/dropdown/dropdown.js +4 -4
  105. package/dist/collection/components/empty/empty.js +1 -1
  106. package/dist/collection/components/floating-bubble/floating-bubble.js +1 -1
  107. package/dist/collection/components/floating-panel/floating-panel.css +1 -0
  108. package/dist/collection/components/floating-panel/floating-panel.js +3 -3
  109. package/dist/collection/components/icon/icon.js +1 -1
  110. package/dist/collection/components/image-upload/image-upload.js +1 -1
  111. package/dist/collection/components/image-viewer/image-viewer.css +139 -2
  112. package/dist/collection/components/image-viewer/image-viewer.js +10 -5
  113. package/dist/collection/components/index-bar/index-bar.js +2 -2
  114. package/dist/collection/components/keyboard/keyboard.js +1 -1
  115. package/dist/collection/components/loading/loading.js +1 -1
  116. package/dist/collection/components/media-capture/media-capture.js +1 -1
  117. package/dist/collection/components/nav-bar/nav-bar.js +1 -1
  118. package/dist/collection/components/notice-bar/notice-bar.js +1 -1
  119. package/dist/collection/components/overlay/overlay.js +1 -1
  120. package/dist/collection/components/pdf-viewer/pdf-viewer.js +1 -1
  121. package/dist/collection/components/permission-purpose/permission-purpose.js +1 -1
  122. package/dist/collection/components/progress/progress.js +1 -1
  123. package/dist/collection/components/quick-access/quick-access.js +1 -1
  124. package/dist/collection/components/rate/rate.js +1 -1
  125. package/dist/collection/components/record/record.js +1 -1
  126. package/dist/collection/components/segment-slides/segment-slides.js +1 -1
  127. package/dist/collection/components/selector/selector.js +1 -1
  128. package/dist/collection/components/share-sheet/share-sheet.js +1 -1
  129. package/dist/collection/components/side-panel/side-panel.js +1 -1
  130. package/dist/collection/components/stepper/stepper.css +5 -2
  131. package/dist/collection/components/stepper/stepper.js +32 -1
  132. package/dist/collection/components/steps/steps.js +1 -1
  133. package/dist/collection/components/swipe/swipe.js +1 -1
  134. package/dist/collection/components/swipe-item/swipe-item.js +2 -2
  135. package/dist/collection/components/swiper/swiper.js +5 -1
  136. package/dist/collection/components/text-ellipsis/text-ellipsis.js +2 -2
  137. package/dist/collection/components/title-bar/title-bar.js +1 -1
  138. package/dist/collection/components/tour/tour.js +4 -4
  139. package/dist/collection/components/tutorial/tutorial.js +1 -1
  140. package/dist/collection/components/video/video.js +2 -2
  141. package/dist/collection/components/virtual-list/virtual-list.css +2 -5
  142. package/dist/collection/components/virtual-list/virtual-list.js +33 -6
  143. package/dist/collection/utils/native/camera-preview.js +1 -1
  144. package/dist/collection/utils/native/image-picker.js +12 -2
  145. package/dist/collection/utils/native/media-downloader.js +1 -1
  146. package/dist/cty-mui/cty-mui.esm.js +1 -1
  147. package/dist/cty-mui/index.esm.js +1 -1
  148. package/dist/cty-mui/{p-1f3e77ad.entry.js → p-019cfadb.entry.js} +1 -1
  149. package/dist/cty-mui/{p-7abe483b.entry.js → p-09bacf31.entry.js} +1 -1
  150. package/dist/cty-mui/p-113bbc57.entry.js +1 -0
  151. package/dist/cty-mui/{p-1d7cabe8.system.entry.js → p-19154758.system.entry.js} +1 -1
  152. package/dist/cty-mui/{p-05a00a55.entry.js → p-1c082713.entry.js} +1 -1
  153. package/dist/cty-mui/p-212b7176.entry.js +1 -0
  154. package/dist/cty-mui/{p-9754acb3.entry.js → p-2788723f.entry.js} +1 -1
  155. package/dist/cty-mui/p-280c5fc9.system.entry.js +1 -0
  156. package/dist/cty-mui/p-2aee1302.entry.js +1 -0
  157. package/dist/cty-mui/{p-be1fc2ec.entry.js → p-2b0dc5e3.entry.js} +1 -1
  158. package/dist/cty-mui/{p-09b59454.system.entry.js → p-307f8af0.system.entry.js} +1 -1
  159. package/dist/cty-mui/{p-e0f340fa.system.entry.js → p-32fda949.system.entry.js} +1 -1
  160. package/dist/cty-mui/{p-20ab6f8b.entry.js → p-36dfb017.entry.js} +1 -1
  161. package/dist/cty-mui/{p-81582afa.entry.js → p-38aa5d20.entry.js} +1 -1
  162. package/dist/cty-mui/{p-49c2d176.system.entry.js → p-38aa83ec.system.entry.js} +1 -1
  163. package/dist/cty-mui/{p-855b747d.system.entry.js → p-3c8e24c4.system.entry.js} +1 -1
  164. package/dist/cty-mui/p-3f54848b.entry.js +1 -0
  165. package/dist/cty-mui/{p-8a52b8ba.system.entry.js → p-422e9688.system.entry.js} +1 -1
  166. package/dist/cty-mui/p-432bfb8b.system.entry.js +4 -0
  167. package/dist/cty-mui/{p-84bce568.entry.js → p-46da49d4.entry.js} +1 -1
  168. package/dist/cty-mui/{p-b8d7997d.entry.js → p-475efd63.entry.js} +1 -1
  169. package/dist/cty-mui/{p-af8bb93f.system.entry.js → p-4890b69c.system.entry.js} +1 -1
  170. package/dist/cty-mui/{p-31cf19c0.system.entry.js → p-49341ac0.system.entry.js} +1 -1
  171. package/dist/cty-mui/{p-5846c151.system.entry.js → p-493bcff8.system.entry.js} +1 -1
  172. package/dist/cty-mui/{p-d72a9038.system.entry.js → p-506fd54f.system.entry.js} +1 -1
  173. package/dist/cty-mui/{p-564e30de.system.entry.js → p-5524f103.system.entry.js} +1 -1
  174. package/dist/cty-mui/{p-dc55ca39.system.entry.js → p-593ff7f5.system.entry.js} +1 -1
  175. package/dist/cty-mui/{p-4572ba44.entry.js → p-59c2ba2b.entry.js} +1 -1
  176. package/dist/cty-mui/{p-c8ee0b57.system.entry.js → p-5d59f92f.system.entry.js} +1 -1
  177. package/dist/cty-mui/{p-a9bc205d.entry.js → p-62167dcd.entry.js} +1 -1
  178. package/dist/cty-mui/{p-7861de8e.system.entry.js → p-63a9ed6a.system.entry.js} +1 -1
  179. package/dist/cty-mui/{p-72354b31.system.entry.js → p-63f73f69.system.entry.js} +1 -1
  180. package/dist/cty-mui/p-6a0ca54c.system.entry.js +1 -0
  181. package/dist/cty-mui/p-6bf50d2d.entry.js +5 -0
  182. package/dist/cty-mui/{p-7e264f45.system.entry.js → p-6c4fd05d.system.entry.js} +1 -1
  183. package/dist/cty-mui/{p-fcd9f408.system.entry.js → p-6d6b6673.system.entry.js} +1 -1
  184. package/dist/cty-mui/{p-4cd95229.system.entry.js → p-6f8e5488.system.entry.js} +1 -1
  185. package/dist/cty-mui/p-71ad5b55.entry.js +1 -0
  186. package/dist/cty-mui/p-722774b8.entry.js +1 -0
  187. package/dist/cty-mui/{p-88322634.entry.js → p-7530dbf4.entry.js} +1 -1
  188. package/dist/cty-mui/{p-81079795.system.entry.js → p-78453bfe.system.entry.js} +1 -1
  189. package/dist/cty-mui/{p-1f08189f.system.entry.js → p-785345b0.system.entry.js} +1 -1
  190. package/dist/cty-mui/{p-3ac0ac69.system.entry.js → p-7a247c3c.system.entry.js} +1 -1
  191. package/dist/cty-mui/{p-9a023f01.entry.js → p-7da45a22.entry.js} +1 -1
  192. package/dist/cty-mui/{p-22315315.entry.js → p-8a9b07aa.entry.js} +1 -1
  193. package/dist/cty-mui/{p-3ec91db1.entry.js → p-8bfd28fc.entry.js} +1 -1
  194. package/dist/cty-mui/{p-945d1f5e.system.entry.js → p-9b29ae81.system.entry.js} +1 -1
  195. package/dist/cty-mui/{p-e529c11d.entry.js → p-9b871c8b.entry.js} +1 -1
  196. package/dist/cty-mui/{p-3722a475.entry.js → p-9c6a1a8e.entry.js} +1 -1
  197. package/dist/cty-mui/{p-a990c587.system.entry.js → p-9d07466a.system.entry.js} +1 -1
  198. package/dist/cty-mui/{p-Dty0N6Ky.system.js → p-B3jWXqo2.system.js} +1 -1
  199. package/dist/cty-mui/p-BInSqJtk.system.js +1 -0
  200. package/dist/cty-mui/p-BS5AYmeF.js +1 -0
  201. package/dist/cty-mui/p-BmrwhKbs.system.js +1 -0
  202. package/dist/cty-mui/p-Cegbc1c7.system.js +1 -1
  203. package/dist/cty-mui/{p-f398c194.system.entry.js → p-a1909b50.system.entry.js} +1 -1
  204. package/dist/cty-mui/{p-fd9befef.system.entry.js → p-a2d2f9a3.system.entry.js} +1 -1
  205. package/dist/cty-mui/{p-42371383.entry.js → p-a4ec9006.entry.js} +1 -1
  206. package/dist/cty-mui/{p-a96b1415.system.entry.js → p-a94a17dd.system.entry.js} +1 -1
  207. package/dist/cty-mui/{p-c6028243.system.entry.js → p-ab05a712.system.entry.js} +1 -1
  208. package/dist/cty-mui/{p-d197ef1f.entry.js → p-ad85921c.entry.js} +1 -1
  209. package/dist/cty-mui/{p-a70b556d.system.entry.js → p-ae0063ec.system.entry.js} +1 -1
  210. package/dist/cty-mui/{p-b72461aa.system.entry.js → p-ae61ce14.system.entry.js} +1 -1
  211. package/dist/cty-mui/{p-0c58f748.entry.js → p-afbfb654.entry.js} +1 -1
  212. package/dist/cty-mui/{p-3c25811a.entry.js → p-b1f6e59c.entry.js} +1 -1
  213. package/dist/cty-mui/{p-e90050ff.system.entry.js → p-b2a51fa6.system.entry.js} +1 -1
  214. package/dist/cty-mui/{p-073eb081.entry.js → p-b38e30aa.entry.js} +1 -1
  215. package/dist/cty-mui/{p-702faa4b.entry.js → p-b5d222a3.entry.js} +1 -1
  216. package/dist/cty-mui/{p-c71a9fd1.entry.js → p-ba50ffbb.entry.js} +1 -1
  217. package/dist/cty-mui/p-bd15bdaa.entry.js +1 -0
  218. package/dist/cty-mui/{p-54f6f9f1.entry.js → p-bd9c8e43.entry.js} +1 -1
  219. package/dist/cty-mui/{p-0128caf4.entry.js → p-c021a07b.entry.js} +1 -1
  220. package/dist/cty-mui/{p-106456bc.entry.js → p-c374511d.entry.js} +1 -1
  221. package/dist/cty-mui/{p-f13d0eae.entry.js → p-c46f0ac3.entry.js} +1 -1
  222. package/dist/cty-mui/{p-d66e71cf.system.entry.js → p-c91ca631.system.entry.js} +1 -1
  223. package/dist/cty-mui/{p-54054435.entry.js → p-c9ad48be.entry.js} +1 -1
  224. package/dist/cty-mui/{p-c330e10e.system.entry.js → p-d390049b.system.entry.js} +1 -1
  225. package/dist/cty-mui/{p-fb4642ec.system.entry.js → p-d74dbc79.system.entry.js} +1 -1
  226. package/dist/cty-mui/{p-121b0706.entry.js → p-d94cdb9d.entry.js} +1 -1
  227. package/dist/cty-mui/{p-ef299c38.system.entry.js → p-df2367ca.system.entry.js} +1 -1
  228. package/dist/cty-mui/p-df53aafa.entry.js +1 -0
  229. package/dist/cty-mui/{p-dc733f54.system.entry.js → p-e66d35a9.system.entry.js} +1 -1
  230. package/dist/cty-mui/{p-cac7b9e8.system.entry.js → p-ec0106a5.system.entry.js} +1 -1
  231. package/dist/cty-mui/{p-47327d46.entry.js → p-f037a2aa.entry.js} +1 -1
  232. package/dist/cty-mui/{p-423fe7c0.entry.js → p-f0ebd9ba.entry.js} +1 -1
  233. package/dist/cty-mui/p-ff0f839d.system.entry.js +1 -0
  234. package/dist/cty-mui/{p-39328eb7.system.entry.js → p-ff973e68.system.entry.js} +1 -1
  235. package/dist/cty-mui/p-khnuCOA-.js +1 -0
  236. package/dist/docs.json +138 -4
  237. package/dist/esm/{camera-preview-SS7McUtz.js → camera-preview-khnuCOA-.js} +1 -1
  238. package/dist/esm/cty-alert_2.entry.js +3 -3
  239. package/dist/esm/cty-camera-photo.entry.js +2 -2
  240. package/dist/esm/cty-camera_2.entry.js +36 -14
  241. package/dist/esm/cty-canvas-board.entry.js +1 -1
  242. package/dist/esm/cty-canvas-video.entry.js +1 -1
  243. package/dist/esm/cty-cascader-view.entry.js +3 -3
  244. package/dist/esm/cty-cascader.entry.js +1 -1
  245. package/dist/esm/cty-count-down.entry.js +2 -2
  246. package/dist/esm/cty-divider.entry.js +2 -2
  247. package/dist/esm/cty-dropdown.entry.js +4 -4
  248. package/dist/esm/cty-empty.entry.js +1 -1
  249. package/dist/esm/cty-floating-bubble.entry.js +1 -1
  250. package/dist/esm/cty-floating-panel.entry.js +4 -4
  251. package/dist/esm/cty-icon.entry.js +1 -1
  252. package/dist/esm/cty-image-upload.entry.js +1 -1
  253. package/dist/esm/cty-image-viewer_6.entry.js +15 -7
  254. package/dist/esm/cty-index-bar.entry.js +2 -2
  255. package/dist/esm/cty-keyboard.entry.js +1 -1
  256. package/dist/esm/cty-loading.entry.js +1 -1
  257. package/dist/esm/cty-media-capture.entry.js +1 -1
  258. package/dist/esm/cty-mui.js +1 -1
  259. package/dist/esm/cty-notice-bar.entry.js +1 -1
  260. package/dist/esm/cty-overlay.entry.js +1 -1
  261. package/dist/esm/cty-pdf-viewer.entry.js +1 -1
  262. package/dist/esm/cty-permission-purpose.entry.js +1 -1
  263. package/dist/esm/cty-progress.entry.js +1 -1
  264. package/dist/esm/cty-quick-access.entry.js +1 -1
  265. package/dist/esm/cty-rate.entry.js +1 -1
  266. package/dist/esm/cty-record.entry.js +1 -1
  267. package/dist/esm/cty-segment-slides.entry.js +1 -1
  268. package/dist/esm/cty-selector.entry.js +1 -1
  269. package/dist/esm/cty-share-sheet.entry.js +1 -1
  270. package/dist/esm/cty-side-panel.entry.js +1 -1
  271. package/dist/esm/cty-stepper.entry.js +9 -2
  272. package/dist/esm/cty-steps.entry.js +1 -1
  273. package/dist/esm/cty-swipe_2.entry.js +3 -3
  274. package/dist/esm/cty-text-ellipsis.entry.js +2 -2
  275. package/dist/esm/cty-title-bar.entry.js +1 -1
  276. package/dist/esm/cty-tour.entry.js +4 -4
  277. package/dist/esm/cty-tutorial.entry.js +1 -1
  278. package/dist/esm/cty-video.entry.js +2 -2
  279. package/dist/esm/cty-virtual-list.entry.js +11 -7
  280. package/dist/esm/{image-picker-FShbNAm_.js → image-picker-CslKfwO_.js} +12 -2
  281. package/dist/esm/index.js +3 -3
  282. package/dist/esm/loader.js +1 -1
  283. package/dist/esm-es5/camera-preview-khnuCOA-.js +1 -0
  284. package/dist/esm-es5/cty-alert_2.entry.js +1 -1
  285. package/dist/esm-es5/cty-camera-photo.entry.js +1 -1
  286. package/dist/esm-es5/cty-camera_2.entry.js +1 -1
  287. package/dist/esm-es5/cty-canvas-board.entry.js +1 -1
  288. package/dist/esm-es5/cty-canvas-video.entry.js +1 -1
  289. package/dist/esm-es5/cty-cascader-view.entry.js +1 -1
  290. package/dist/esm-es5/cty-cascader.entry.js +1 -1
  291. package/dist/esm-es5/cty-count-down.entry.js +1 -1
  292. package/dist/esm-es5/cty-divider.entry.js +1 -1
  293. package/dist/esm-es5/cty-dropdown.entry.js +1 -1
  294. package/dist/esm-es5/cty-empty.entry.js +1 -1
  295. package/dist/esm-es5/cty-floating-bubble.entry.js +1 -1
  296. package/dist/esm-es5/cty-floating-panel.entry.js +1 -1
  297. package/dist/esm-es5/cty-icon.entry.js +1 -1
  298. package/dist/esm-es5/cty-image-upload.entry.js +1 -1
  299. package/dist/esm-es5/cty-image-viewer_6.entry.js +2 -2
  300. package/dist/esm-es5/cty-index-bar.entry.js +1 -1
  301. package/dist/esm-es5/cty-keyboard.entry.js +1 -1
  302. package/dist/esm-es5/cty-loading.entry.js +1 -1
  303. package/dist/esm-es5/cty-media-capture.entry.js +1 -1
  304. package/dist/esm-es5/cty-mui.js +1 -1
  305. package/dist/esm-es5/cty-notice-bar.entry.js +1 -1
  306. package/dist/esm-es5/cty-overlay.entry.js +1 -1
  307. package/dist/esm-es5/cty-pdf-viewer.entry.js +1 -1
  308. package/dist/esm-es5/cty-permission-purpose.entry.js +1 -1
  309. package/dist/esm-es5/cty-progress.entry.js +1 -1
  310. package/dist/esm-es5/cty-quick-access.entry.js +1 -1
  311. package/dist/esm-es5/cty-rate.entry.js +1 -1
  312. package/dist/esm-es5/cty-record.entry.js +1 -1
  313. package/dist/esm-es5/cty-segment-slides.entry.js +1 -1
  314. package/dist/esm-es5/cty-selector.entry.js +1 -1
  315. package/dist/esm-es5/cty-share-sheet.entry.js +1 -1
  316. package/dist/esm-es5/cty-side-panel.entry.js +1 -1
  317. package/dist/esm-es5/cty-stepper.entry.js +1 -1
  318. package/dist/esm-es5/cty-steps.entry.js +1 -1
  319. package/dist/esm-es5/cty-swipe_2.entry.js +1 -1
  320. package/dist/esm-es5/cty-text-ellipsis.entry.js +1 -1
  321. package/dist/esm-es5/cty-title-bar.entry.js +1 -1
  322. package/dist/esm-es5/cty-tour.entry.js +1 -1
  323. package/dist/esm-es5/cty-tutorial.entry.js +1 -1
  324. package/dist/esm-es5/cty-video.entry.js +1 -1
  325. package/dist/esm-es5/cty-virtual-list.entry.js +1 -1
  326. package/dist/esm-es5/image-picker-CslKfwO_.js +1 -0
  327. package/dist/esm-es5/index.js +1 -1
  328. package/dist/esm-es5/loader.js +1 -1
  329. package/dist/types/components/camera/camera.d.ts +6 -1
  330. package/dist/types/components/image-viewer/image-viewer.d.ts +1 -0
  331. package/dist/types/components/stepper/stepper.d.ts +1 -0
  332. package/dist/types/components/swiper/swiper.d.ts +1 -0
  333. package/dist/types/components/virtual-list/virtual-list.d.ts +1 -1
  334. package/dist/types/components.d.ts +8 -0
  335. package/dist/types/utils/native/camera-preview.d.ts +6 -1
  336. package/dist/types/utils/native/image-picker.d.ts +5 -0
  337. package/package.json +2 -2
  338. package/dist/cty-mui/p-01871fbc.system.entry.js +0 -1
  339. package/dist/cty-mui/p-2b0425b4.entry.js +0 -1
  340. package/dist/cty-mui/p-2f5ead92.entry.js +0 -1
  341. package/dist/cty-mui/p-37673d54.entry.js +0 -1
  342. package/dist/cty-mui/p-58c84307.system.entry.js +0 -1
  343. package/dist/cty-mui/p-74c307de.system.entry.js +0 -1
  344. package/dist/cty-mui/p-79c7921c.entry.js +0 -1
  345. package/dist/cty-mui/p-7e9e7f9d.system.entry.js +0 -4
  346. package/dist/cty-mui/p-9a6fa357.entry.js +0 -1
  347. package/dist/cty-mui/p-C6cVxtBr.system.js +0 -1
  348. package/dist/cty-mui/p-CeTAtFGa.system.js +0 -1
  349. package/dist/cty-mui/p-D0fcC0rL.js +0 -1
  350. package/dist/cty-mui/p-SS7McUtz.js +0 -1
  351. package/dist/cty-mui/p-a316f17f.entry.js +0 -5
  352. package/dist/cty-mui/p-a40ddbbc.entry.js +0 -1
  353. package/dist/cty-mui/p-d52e4a59.entry.js +0 -1
  354. package/dist/cty-mui/p-fe1f850e.entry.js +0 -1
  355. package/dist/esm-es5/camera-preview-SS7McUtz.js +0 -1
  356. package/dist/esm-es5/image-picker-FShbNAm_.js +0 -1
@@ -33,6 +33,8 @@ const Camera = /*@__PURE__*/ proxyCustomElement(class Camera extends HTMLElement
33
33
  this.width = 0;
34
34
  this.height = 0;
35
35
  this.quality = 85;
36
+ this.includeThumb = true;
37
+ this.thumbWidth = 120;
36
38
  this.file = true;
37
39
  this.max = 9;
38
40
  this.flipText = '翻转';
@@ -55,12 +57,14 @@ const Camera = /*@__PURE__*/ proxyCustomElement(class Camera extends HTMLElement
55
57
  this.showImageViewer = false;
56
58
  this.imageViewerIndex = 0;
57
59
  this.currentPhotoMode = 'multiple';
60
+ this.currentZoom = 1;
61
+ this.startZoom = 1;
58
62
  this.SCREEN_WIDTH = window.screen.width;
59
63
  this.SCREEN_HEIGHT = window.screen.height;
60
64
  this.originalBodyBackground = '';
61
65
  this.isTakingPhoto = false;
62
66
  this.distance = 0;
63
- this.startZoom = 0;
67
+ this.startCameraZoom = 0;
64
68
  }
65
69
  connectedCallback() {
66
70
  if (this.mode === 'single') {
@@ -127,14 +131,24 @@ const Camera = /*@__PURE__*/ proxyCustomElement(class Camera extends HTMLElement
127
131
  return cameraPreview.setZoom(idx === 0 ? 0 : Math.min(zoom, maxZoom));
128
132
  }
129
133
  async takePhoto() {
130
- const { quality, width, height, file, max, pictures } = this;
134
+ const { quality, width, height, includeThumb, thumbWidth, file, max, pictures } = this;
131
135
  if (max > 0 && pictures.length >= max || this.currentPhotoMode === 'single' && this.pictures.length > 0 || this.isTakingPhoto) {
132
136
  return;
133
137
  }
134
138
  this.isTakingPhoto = true;
135
- const data = await cameraPreview.takePicture({ width, height, quality });
136
- const result = await imagePicker.formatPictureResult(file, data);
137
- this.pictures = [...pictures, result];
139
+ const data = await cameraPreview.takePicture({ width, height, quality, includeThumb, thumbWidth });
140
+ let uri = '';
141
+ let thumbnail = '';
142
+ if (data && typeof data === 'object') {
143
+ uri = data.image;
144
+ thumbnail = data.thumbnail;
145
+ }
146
+ else {
147
+ uri = data;
148
+ }
149
+ const result = await imagePicker.formatPictureResult(file, uri);
150
+ const thumbResult = await imagePicker.formatPictureResult(file, thumbnail);
151
+ this.pictures = [...pictures, Object.assign(Object.assign({}, result), { thumbnail: thumbResult.url })];
138
152
  this.ctyTakePhoto.emit(result);
139
153
  this.isTakingPhoto = false;
140
154
  if (this.currentPhotoMode === 'single') {
@@ -170,20 +184,25 @@ const Camera = /*@__PURE__*/ proxyCustomElement(class Camera extends HTMLElement
170
184
  this.closeImageViewer(e);
171
185
  }
172
186
  confirm() {
173
- this.ctyConfirm.emit(this.pictures);
187
+ this.ctyConfirm.emit(this.pictures.map(({ url, data }) => ({ url, data })));
174
188
  }
175
189
  deleteLastPicture() {
176
190
  const pictures = [...this.pictures];
177
191
  pictures.pop();
178
192
  this.pictures = pictures;
179
193
  }
194
+ resetZoom() {
195
+ this.currentZoom = 1;
196
+ this.setZoom(0);
197
+ }
180
198
  async touchstart(e) {
181
199
  e.stopPropagation();
182
200
  if (this.touchZoom && e.touches.length == 2) {
183
201
  const xMove = e.touches[1].clientX - e.touches[0].clientX;
184
202
  const yMove = e.touches[1].clientY - e.touches[0].clientY;
185
203
  this.distance = Math.sqrt(xMove * xMove + yMove * yMove);
186
- this.startZoom = await cameraPreview.getZoom();
204
+ this.startCameraZoom = await cameraPreview.getZoom();
205
+ this.startZoom = this.currentZoom;
187
206
  }
188
207
  }
189
208
  touchmove(e) {
@@ -201,10 +220,13 @@ const Camera = /*@__PURE__*/ proxyCustomElement(class Camera extends HTMLElement
201
220
  e.stopPropagation();
202
221
  }
203
222
  async updateZoom(diff) {
204
- const { startZoom } = this;
223
+ const { startCameraZoom, startZoom } = this;
205
224
  let maxZoom = await cameraPreview.getMaxZoom();
206
225
  const zoomStep = (maxZoom + 1) / this.zoomSteps;
207
226
  const lastZoom = this.zooms.slice(-1)[0] || 10;
227
+ this.currentZoom = Math.floor((startZoom + diff) * 10) / 10;
228
+ this.currentZoom = Math.max(this.currentZoom, 1);
229
+ this.currentZoom = Math.min(this.currentZoom, lastZoom);
208
230
  if (deviceInfo.isIos) {
209
231
  maxZoom = lastZoom;
210
232
  }
@@ -212,11 +234,11 @@ const Camera = /*@__PURE__*/ proxyCustomElement(class Camera extends HTMLElement
212
234
  maxZoom = Math.min(maxZoom, lastZoom * zoomStep);
213
235
  diff = zoomStep * diff;
214
236
  }
215
- cameraPreview.setZoom(Math.min(startZoom + diff, maxZoom));
237
+ cameraPreview.setZoom(Math.min(startCameraZoom + diff, maxZoom));
216
238
  }
217
239
  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: '0e1236ed3e7ded3d45a20557720d0a1cb73cacbc', class: "cty-camera", onClick: (e) => e.stopPropagation() }, h("cty-nav-bar", { key: '2138287d88ab3b3e7c479e1e7081e7a84913330c', title: title, type: "clear" }, h("slot", { key: '116f078017c84816398aeaf160a752c37cc04f8e', name: "header-start", slot: "start" }, !!closeIcon && h("ion-button", { key: '865c3e7b3fde6d3f4af25797aa06b9951768ad43', class: "cty-camera__close", onClick: () => this.close() }, h("cty-icon", { key: 'fd6221b44faabef4946c159caf79c6e92ef954a1', class: "cty-camera__close-icon", name: closeIcon })))), h("div", { key: 'e3f231b248e2d3d28d02abc94f756c00e03dfc7c', class: "cty-camera-main", onTouchStart: (e) => this.touchstart(e), onTouchMove: (e) => this.touchmove(e), onTouchEnd: (e) => this.touchend(e) }, h("div", { key: '7eef3b7f58ed5f9b879ed9d06ea305bf6a2aeded', class: "cty-camera-widgets", part: "widgets" }, !!flipText && h("button", { key: 'd6cec2925a2f8764b012ad1236c2e1604bff0655', class: "cty-button-native cty-camera-widget", part: "widget", onClick: () => this.flipCamera() }, h("cty-icon", { key: '21d6f991eeb503edd1052e522ba4fdbfd295a390', class: "cty-camera-widget__icon", name: "cty-flip" }), !!flipText && h("span", { key: '170cbbd39f096f131b7eeb35c9bdc56ca13eb660', class: "cty-camera-widget__text" }, flipText)), !!flashText && h("button", { key: '4229d973f0de5cb7a1b32f1c75cc7b490c8914b4', class: "cty-button-native cty-camera-widget", part: "widget", onClick: () => this.toggleFlash() }, h("cty-icon", { key: 'bdb3655ae114f987a8b7b351379e42a9cc6080bf', class: "cty-camera-widget__icon", name: flash ? 'cty-flash-on' : 'cty-flash-off' }), !!flashText && h("span", { key: '16e1c210050d4655dd4efbde5801735114caf0d3', class: "cty-camera-widget__text" }, flashText)), !!ratioText && h("button", { key: '70ab5fad1921117f852f5ddde7b8869f18bee67f', class: "cty-button-native cty-camera-widget", part: "ratio", onClick: () => this.ratioChange() }, h("span", { key: '60400bddd066b601271c5145cd0fc974a74bf251', class: "cty-camera-widget__ratio flex-center" }, ratios[ratioIndex]), !!ratioText && h("span", { key: '0c7dcc67fc1a42f0af3a7a97a95e456d635b21e2', class: "cty-camera-widget__text" }, ratioText)))), h("div", { key: '0ab4ac819601e800f67a738506bd7b598e807793', class: "cty-camera-controls safe-area-bottom-padding" }, mode == 'both' && pictures.length <= 0 && h("div", { key: '5a7a68b29e56ed0fa08efed78b440a33aeb8bba3', class: "cty-camera-controls__mode flex-center", part: "mode" }, h("button", { key: '37f5fd30dd852d12283045ffc97ce62713565379', 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: '8db9de7660b537b2323ecb8257a29b03a5a1b739', 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: '563ba129d45a1654397d1f661e0d4a878a3eb98f', name: "zooms" }, !touchZoom && zooms.length > 0 && h("div", { key: '4141297ceb466b1b048c3dbe615e438754726be0', class: "cty-camera-controls__zooms flex-center" }, 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")))))), h("div", { key: '6ad6e1b222de0dd719f3d585d3c6d5142e50ac95', class: "cty-camera-controls__main flex-center" }, h("div", { key: '8e022c6b28fbfb68e3b92bf450fdc0fcb340c4cb', class: "cty-camera-controls__main-left flex-center" }), h("div", { key: 'ec1b6be8a71a7980ebe762a921d525f89a9acf93', class: "cty-camera-controls__take-photo flex-center" }, h("button", { key: '2f70643b5323354d66f1722701baee3c7afa7713', class: "cty-button-native cty-camera-controls__take-photo-button", part: "take-photo", onClick: () => this.takePhoto() })), h("div", { key: '59a140ade0e6aba2954c4916f2721604cc72bfb8', class: "cty-camera-controls__main-confirm flex-center" }, currentPhotoMode !== 'single' && pictures.length > 0 && !!deleteIcon && h("button", { key: 'b748cf4b9c14858b75bf45d8583f596afeb6b87d', class: "cty-camera-controls__main-delete cty-button-native flex-column-center", onClick: () => this.deleteLastPicture() }, h("cty-icon", { key: '70968ad36c52dc7af04d830342847156ffe44d8b', class: "cty-camera-controls__main-delete-icon", name: deleteIcon })), currentPhotoMode !== 'single' && pictures.length > 0 && h("button", { key: 'b8fb364fb8a1f71570589ca62262c7b742fa275c', class: "cty-button-native flex-column-center", onClick: () => this.confirm() }, h("cty-icon", { key: '0b299878047b1cdeb26a55a310fa237cdca02a56', class: "cty-camera-controls__main-confirm-icon", name: confirmIcon }), confirmText && h("span", { key: '7fc9bf60f54ac7b1fa4dd6b9ddce67d0976c159b', class: "cty-camera-controls__main-confirm-text" }, confirmText)))), h("slot", { key: '8e779e2656ca8ac77dc4a8c624aeb5e517352ab5', name: "images" }, h("div", { key: 'ea7893d466cb404d0cae3c506ffb9a16ad7e7766', 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: '6b3983c245ef6f73b848732c8cddbe5239c3356a', images: pictures.map(item => item.url), initialSlide: imageViewerIndex, overlayIndex: 100, backdropDismiss: false, closeable: false, onCtyDismiss: (e) => this.closeImageViewer(e) }, currentPhotoMode !== 'multiple' && h("div", { key: '7cfebe0c9321aa7ed268e27842fcd763e2230020', class: "cty-camera-viewer__single flex-center-between", slot: "pager" }, h("button", { key: 'a22468122b2923d3556157bb345f781f0c2eceee', class: "cty-camera-viewer__single-close cty-button-native", onClick: (event) => this.closeSingleImageViewer(event) }, h("cty-icon", { key: 'e7b6b467b217590b80abf0c64b2fe1818e0a4f96', name: "cty-close2" })), h("button", { key: '8bddc0bb96d9cc2eb1d12baeeaaf8a610f9c0837', class: "cty-camera-viewer__single-confirm cty-button-native", onClick: () => this.confirm() }, h("cty-icon", { key: '5f0f94f95f02a1609f5a26994eaba85f7b9c7b5a', name: "cty-tick" }))), currentPhotoMode !== 'multiple' && h("i", { key: '90a85c170d700bb74b0ce919fa99469ebc8605b5', slot: "close" }))));
240
+ const { title, closeIcon, flash, flipText, flashText, ratioText, ratios, ratioIndex, zoomIndex, zooms, mode, singleText, multipleText, currentPhotoMode, confirmIcon, confirmText, deleteIcon, pictures, showImageViewer, imageViewerIndex, touchZoom, currentZoom } = this;
241
+ return (h(Host, { key: 'f2dbbeee10fef4293fa66a78076f751893d93608', class: "cty-camera", onClick: (e) => e.stopPropagation() }, h("cty-nav-bar", { key: '054634ffc50db9a53cf9120e1546f0ab1519a179', title: title, type: "clear" }, h("slot", { key: '1440253fbb8a78ef418ffba4971eb2548832e7db', name: "header-start", slot: "start" }, !!closeIcon && h("ion-button", { key: '49f8467e23a693abcd3213c403fe308f46600293', class: "cty-camera__close", onClick: () => this.close() }, h("cty-icon", { key: 'dcdf35990d7609c0fd4fe720d2166d864bd62946', class: "cty-camera__close-icon", name: closeIcon })))), h("div", { key: 'a07a80a5039e04174bffd5223883f2c97ab21314', class: "cty-camera-main", onTouchStart: (e) => this.touchstart(e), onTouchMove: (e) => this.touchmove(e), onTouchEnd: (e) => this.touchend(e) }, h("div", { key: '1105f0e3ba35b3076057f3d61f8a94e7c449079c', class: "cty-camera-widgets", part: "widgets" }, !!flipText && h("button", { key: 'c9206213c57615b8d0228d16d9e2ab50c93ce2f7', class: "cty-button-native cty-camera-widget", part: "widget", onClick: () => this.flipCamera() }, h("cty-icon", { key: 'd0490581bf68da9fcbe8d661771a016e096aa4e6', class: "cty-camera-widget__icon", name: "cty-flip" }), !!flipText && h("span", { key: '57d763faca03d9f713f6eb73c24daf2a6b6b4057', class: "cty-camera-widget__text" }, flipText)), !!flashText && h("button", { key: '8c2e80d3f1dc0136b2b1bd8a27df12c950f81e2f', class: "cty-button-native cty-camera-widget", part: "widget", onClick: () => this.toggleFlash() }, h("cty-icon", { key: 'ff771e3b1c75d0e4a4c797d6ce0d7e7aec93f097', class: "cty-camera-widget__icon", name: flash ? 'cty-flash-on' : 'cty-flash-off' }), !!flashText && h("span", { key: 'c15e58dc18a185c5b99303f821447e31cde5c02d', class: "cty-camera-widget__text" }, flashText)), !!ratioText && h("button", { key: '67f70b3a009c2761fe3b0c1c4d8ab844972420f5', class: "cty-button-native cty-camera-widget", part: "ratio", onClick: () => this.ratioChange() }, h("span", { key: '0c5be61834b53c2281eba2912d47d083d5f16403', class: "cty-camera-widget__ratio flex-center" }, ratios[ratioIndex]), !!ratioText && h("span", { key: 'd75675b27ac00ad662cf687dbec16d1d607932a6', class: "cty-camera-widget__text" }, ratioText)))), h("div", { key: 'ea3852cbb926abb151942500a140a78d8b3ee712', class: "cty-camera-controls safe-area-bottom-padding" }, mode == 'both' && pictures.length <= 0 && h("div", { key: '15d0990b2dbacab7d81b73f0aac8766106d93226', class: "cty-camera-controls__mode flex-center", part: "mode" }, h("button", { key: 'ae5a5de840f895568d2ed72ca12d14d6e028bebe', 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: '33109a8369c68dfd902e9b0ad7a36a6e571fddb5', 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: 'cecb11c3b01fdc6c2b207bf846674c9816535004', name: "zooms" }, !touchZoom && zooms.length > 0 && h("div", { key: '32d91389660d8ab71c91777a85c6093d700eae73', 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: '2979d870a22334d7329b122eb5eb32737fd48b58', class: "cty-camera-controls__zooms flex-center", part: "zooms" }, h("div", { key: 'fcb6e01d6e9913c810e02b08f172e1eaecaf42a6', class: { 'cty-camera-controls__zoom-item flex-center cty-camera-controls__zoom-item__active': true }, onClick: () => this.resetZoom() }, h("span", { key: '5b413b10485d7b5cf0c41e2ca47a4834c812da09', class: "cty-camera-controls__zoom-text flex-center" }, currentZoom, "X")))), h("div", { key: '4907c6ed45def804b5d4b8072e33dd77d8ddf750', class: "cty-camera-controls__main flex-center" }, h("div", { key: 'ea116cc9eb7bc8b49775f0cc76c0047cbe50f5ff', class: "cty-camera-controls__main-left flex-center" }), h("div", { key: 'ff332ec62a18093c632cfb9bfb693999cdfe0b26', class: "cty-camera-controls__take-photo flex-center" }, h("button", { key: '2e1dd2ac2fb3d916d80a18920005fe13eb5447ac', class: "cty-button-native cty-camera-controls__take-photo-button", part: "take-photo", onClick: () => this.takePhoto() })), h("div", { key: '3414c6ed97b0a361804161c6bb3ccee75b719565', class: "cty-camera-controls__main-confirm flex-center" }, currentPhotoMode !== 'single' && pictures.length > 0 && !!deleteIcon && h("button", { key: '1ca16002c7d041af5e289936140379c81a60ff1a', class: "cty-camera-controls__main-delete cty-button-native flex-column-center", onClick: () => this.deleteLastPicture() }, h("cty-icon", { key: '52809317515b8b9c967a7d19b97230bf38f902ee', class: "cty-camera-controls__main-delete-icon", name: deleteIcon })), currentPhotoMode !== 'single' && pictures.length > 0 && h("button", { key: 'dca02780b3f7af11b5b538af4f039f9e0308449d', class: "cty-button-native flex-column-center", onClick: () => this.confirm() }, h("cty-icon", { key: '40c8d5ac9859f76e01ef23c80b71d6d22ab0bd1f', class: "cty-camera-controls__main-confirm-icon", name: confirmIcon }), confirmText && h("span", { key: '92186800f1c93464c5c38e190bcfec43444f80a7', class: "cty-camera-controls__main-confirm-text" }, confirmText)))), h("slot", { key: '17a6034ad5c152cdb575f79d1f74ba435eb503e0', name: "images" }, h("div", { key: 'eb7429358baf366ee7a34d0f6b84d9bc9daf150a', 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.thumbnail || 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: 'bae500ca714d13cbca2bf1ff03209cec29612e06', images: pictures.map(item => item.url), initialSlide: imageViewerIndex, overlayIndex: 100, backdropDismiss: false, closeable: false, onCtyDismiss: (e) => this.closeImageViewer(e) }, currentPhotoMode !== 'multiple' && h("div", { key: '10b99a568c83aaa375c061f5a060018cdbcc0e99', class: "cty-camera-viewer__single flex-center-between", slot: "pager" }, h("button", { key: '3b3b52f74c5115aa8be3460621f4a02db00ce9c9', class: "cty-camera-viewer__single-close cty-button-native", onClick: (event) => this.closeSingleImageViewer(event) }, h("cty-icon", { key: '006d14a44c03870f4b17dc4e5cb0f0eb16bc9504', name: "cty-close2" })), h("button", { key: 'db9707996bf8bba7211792c5f4e66282080f9008', class: "cty-camera-viewer__single-confirm cty-button-native", onClick: () => this.confirm() }, h("cty-icon", { key: 'a8db29743f5d6c043fbda19265432ac0e89eb168', name: "cty-tick" }))), currentPhotoMode !== 'multiple' && h("i", { key: '091022dccdf8a1796b175be4a001de06bbdadc6e', slot: "close" }))));
220
242
  }
221
243
  get el() { return this; }
222
244
  static get style() { return cameraCss; }
@@ -229,6 +251,8 @@ const Camera = /*@__PURE__*/ proxyCustomElement(class Camera extends HTMLElement
229
251
  "width": [2],
230
252
  "height": [2],
231
253
  "quality": [2],
254
+ "includeThumb": [4, "include-thumb"],
255
+ "thumbWidth": [2, "thumb-width"],
232
256
  "file": [4],
233
257
  "max": [2],
234
258
  "flipText": [1, "flip-text"],
@@ -251,6 +275,7 @@ const Camera = /*@__PURE__*/ proxyCustomElement(class Camera extends HTMLElement
251
275
  "showImageViewer": [32],
252
276
  "imageViewerIndex": [32],
253
277
  "currentPhotoMode": [32],
278
+ "currentZoom": [32],
254
279
  "flipCamera": [64],
255
280
  "toggleFlash": [64],
256
281
  "flashOff": [64],
@@ -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: 'd853d65cf1fa3dc9626349e942c8d19f661dc306', class: "cty-circle" }, h("svg", { key: '33311fb22d6ca02b070e547ebc709c78eaadb9e9', ref: el => (this.svgEl = el) }, this.needDefs && h("defs", { key: '2e9dbdd1c3a34a5afcaea680f63371b92c227cdc' }, h("linearGradient", { key: 'da81536ff0c00bbb06f5c19759a6c5b5f79fbf34', id: this.gradientId, x1: "100%", y1: "0%", x2: "0%", y2: "0%", gradientTransform: "rotate(90)" }, this.colors.map(() => (h("stop", null))))), h("path", { key: 'dc61d62409c3a02b4ffb27501c9f71914f34f4a0', ref: el => (this.layerEl = el), class: "cty-circle__layer", style: {
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: '878ef384292e1316f84ade7bb88ffb8870ac3cff', ref: el => (this.hoverEl = el), class: "cty-circle__hover", style: {
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: '52556d7b0b513272cf2e7ea986b06b4a757e2c61', class: "cty-circle__text" }, this.text), h("slot", { key: '140a0fc9b856b00fc8ca1e16bdb0908c98c64a22' })));
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 {
@@ -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: 'f1039fb41379b4d04afe4326bf75eaf4a8be49fe', 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: 'c5392eee0b3f4b65749885fb775172ceee97a136', name: "header" }), h("div", { key: '601d7002e3fc1db6bd74c1d523eeb642abd41546', class: "cty-crop-image__wrapper", ref: el => (this.imageEl = el) }, h("img", { key: '62fd554ba538281f858990028847a1909fe93d58', src: this.url, class: "cty-crop-image__image" })), h("div", { key: '318457a3274a31d53da93a02cb888afff7c6b724', class: "cty-crop-image__clip", ref: el => (this.clipEl = el) }), h("slot", { key: 'e02928c120f4926e1d8b85e8b13263268e2f53a3', name: "clip" }), this.renderButtons(), h("slot", { key: '4d283c4409b97c811c01bd03ca000d47843b560e', name: "footer" })));
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: '1660d92dc6eefab105541df6d3e70fce7adaf200', 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: 'c2951d679744abbfd012284697dc550108be5d06', 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: 'ba53667d270e776f62292711e3f76e05692fa01d', backdropDismiss: false }, h("cty-crop-image", { key: 'f079c373994a79cb0b005ecb95f69832900b68b6', 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: '4595efb3231fb52c788d2ee28a889be593965359', description: this.permissionDescription }), this.continuous && this.showCameraPreview && h("cty-camera", Object.assign({ key: 'f79e7606e1edbda07665a89437d73cc716a654d8' }, this.cameraProps, { onCtyDismiss: () => this.showCameraPreview = false, onCtyConfirm: (e) => this.continuousConfirm(e) }))));
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: '9afc781ac5ed12f60ca42466b7a394a8db17e045', class: "cty-canvas-board flex-column" }, h("slot", { key: '64a18b2afa1b122d17770706722caeafda5e7d13', name: "header" }), this.headerOpn && (h("div", { key: 'bf799759cde3991f1bb36d165c03c951d47d6ac3', class: "cty-canvas-board__header flex-center-between" }, h("slot", { key: '707e692ccb92f8223d5f0ae7718869550cf5fc3b', name: "header-start" }), this.bgIcon && h("button", { key: '7cd686f69a71572c796514d2a0b77796fa0ccb59', class: "cty-button-native", onClick: () => this.updateBgColor() }, h("cty-icon", { key: 'c587102c8eef24f00505c91a2bfec1d279395d3a', name: this.bgIcon, class: "cty-canvas-board__palette" }), h("input", { key: 'f13b2f8650a22d83804233bcd3cdf0414cb6e1b3', type: "color", class: "cty-canvas-board__picker-color", ref: el => (this.bgPickerEl = el), value: this.bgColor, onInput: (e) => this.bgColorChange(e) })), h("slot", { key: '4c1140c45cc754f922f417530c0130fd29a24cf8', name: "header-opn-start" }, " "), (this.undoIcon || this.redoIcon) && h("div", { key: '37e7d2a0215a7a390a3e5ec7428a9932dc38da04', class: "cty-canvas-board__opn flex-center" }, this.undoIcon && h("button", { key: '98dbd56b598780eec663815a9a5d562005ff4f2f', class: "cty-button-native cty-canvas-board__opn-icon", onClick: () => this.undo() }, h("cty-icon", { key: '9847b4a2d029a281f8c85f7580b6284cac733ff9', name: this.undoIcon, class: { 'cty-canvas-board__opn-active': this.drawingHistory.length > 1 && this.step > 0 } })), this.redoIcon && h("button", { key: '0a9c4d6ef4e2c5cc7572c82b67e190894bc29be0', class: "cty-button-native cty-canvas-board__opn-icon", onClick: () => this.redo() }, h("cty-icon", { key: '105f2a5a113f9c60641a46f7b4947bed22f605f5', name: this.redoIcon, class: { 'cty-canvas-board__opn-active': this.step < this.drawingHistory.length - 1 } }))), h("slot", { key: '80783ce611b1e8d2a658a38874f1245bdfcf2fac', name: "header-opn-end" }), this.clearIcon && h("button", { key: '1f8996a2a0c0cef2dd9f46284ab26bea10526c07', class: "cty-button-native cty-canvas-board__clear", onClick: () => this.clear() }, h("cty-icon", { key: 'f253cc175f6c93e35bf101e3e834d21c8665a906', name: this.clearIcon })), h("slot", { key: '5e5decd0672313a4752a456a4366d134f6700052', name: "header-end" }))), h("slot", { key: '98e43ead5ffad546dafe76033e9d765a91bc3f6a', name: "main" }), h("div", { key: 'b1c95af52d23ce5c85125cb311c8056900dbd7ed', class: "cty-canvas-board__main" }, h("canvas", { key: '5afba3a8e94fad88f75ca76593d829ba9a21a62c', 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: '803e98e0c44557d30b5362d318a467b7b69082c4', ref: el => (this.imageCanvasEl = el), style: { display: 'none' } }), h("span", { key: '7856a12b5eaa4d02b10eed26eeea7d435bb9ded6', class: "cty-canvas-board__eraser-circle", ref: el => (this.eraserEl = el) }), this.isCanvasEmpty && h("slot", { key: 'b284fec28f9f6f12367cd1d68501563c93f81c3c', name: "placeholder" }), h("slot", { key: '9e26453a3295d07889721a02c073a4c82bb6c8e3' })), h("slot", { key: '4b563fc43095dd418630bad198fb159e9c9fa18e', name: "footer" }), this.footerOpn && (h("div", { key: 'e354969d8c8570a0081770ff5db2ce28d49f9727', class: "cty-canvas-board__footer flex-center" }, h("slot", { key: '3a25b72b21a19ecccd455ed4662ffc1d14426236', name: "footer-start" }), this.pencilIcon && (h("button", { key: 'f80a39bab59334d3fba7164da12d54d8d4affc9f', class: "cty-button-native cty-canvas-board__pen", onClick: e => this.updatePencil(e) }, h("cty-icon", { key: 'a8391e0d5951256bb0930c32b64529950bd5c326', name: this.pencilIcon, class: { 'cty-canvas-board__footer-active': !this.isEraser } }))), h("button", { key: '233915aab3fb18c5c6cf471f6cd7f6d9599f31f1', class: "cty-button-native cty-canvas-board__eraser", onClick: () => (this.isEraser = !this.isEraser) }, h("cty-icon", { key: '5d802cba0c2e6ed0dadb54e625c4888b7ba1843d', name: this.eraserIcon, class: { 'cty-canvas-board__footer-active': this.isEraser } })), h("button", { key: '9eb5df625d51d425b3bae8a7783a72efd6d3b97b', class: "cty-button-native cty-canvas-board__color-button", onClick: () => this.updateColor() }, h("input", { key: '87e370114a4e757d0021061979b958fcacfc9d11', type: "color", value: this.strokeColor, class: "cty-canvas-board__picker-color", ref: el => (this.colorPickerEl = el), onInput: (e) => this.penColorChange(e) })), h("slot", { key: 'dcfb708bfec564de474eb62be2967ee1db80a855', name: "footer-end" }))), h("slot", { key: '8af87c25d9074ee42059d9cd0e3a3dd648b9dc4d', name: "bottom" }), this.showButtons && (h("div", { key: '66addf12614741a3552a3df2c5f501c0479db0a5', class: "cty-canvas-board__buttons flex-justify-end" }, h("slot", { key: '3147d3af051a14924418c34c7fb91d3389766b1a', name: "bottom-button-start" }), h("button", { key: 'cbfb65c129ad31fcc697a2329e5f4ee3f18a2ac8', class: "cty-canvas-board__button cty-button-native", onClick: () => this.clear() }, this.clearLabel), h("button", { key: '3aa8dc25e8610b1050f5faea2fc9058bff2428f8', class: "cty-canvas-board__button cty-button-native", onClick: () => this.confirm() }, this.confirmLabel), h("slot", { key: '72911c7683069f53acbb0f599ebede14aab9e6f8', name: "bottom-button-end" }))), this.renderPopover()));
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: 'ef023759451a16bd63eb5bdee6ab972880a2440c', class: "cty-canvas-video" }, h("div", { key: '2edf6097b8c2aeb68e6bdde2d810a74101679429', class: "cty-canvas-videos" }, h("video", { key: '2674bf8f147ff1730ebf75b1a8a3b04576f91962', 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: '574b5811ddbacf3510e66f6ea66ce217afbf42bc', 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: '1e9683a4fa603c3c04fb2f159736f1731fc134fb', 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: 'c0ab9aec0d20ff99e715ca2656b516e99e110db9', class: "cty-canvas-video__slides", ref: el => (this.videoSlidesEl = el) }, this.renderSlide())));
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: 'e48b6314ecc1f7f793369bf1b79ab2442a71eb0e', class: "cty-cascader-view" }, h("div", { key: '258c8e6bb0230beacaa5c7ce19fd494266b55757', class: "cty-cascader-tabs" }, levels.map((level, index) => (h("div", { class: {
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: '71cbef40a1e6c083e84674a188073d659434ea57', class: "cty-cascader-tab-underline", style: {
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: 'd7bd53add2fc975d5cd2279dad54fbf06a3378a0', class: "cty-cascader-content" }, (() => {
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: 'db6cec6243c28a0dc82503d528ef36190d8cb3c4', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden': true }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-backdrop", { key: '0ae6c4315bc4bbcb9e69a51071c7376dc2c20d01', position: "bottom", backdropDismiss: this.backdropDismiss, onCtyDismiss: () => this.dismiss() }, h("div", { key: 'd327bf69c0c6dd648505f20c4cbe3e5434e8299c', class: "cty-cascader", part: "cascader", onClick: (e) => e.stopPropagation() }, h("slot", { key: 'b99f7be1e92409f71a8bd357a58b985af790b7d0', name: 'header' }), h("div", { key: 'a9000078bb76dab3444bca10a35a6cc4fa9aeaf9', class: "cty-cascader-header", part: "header" }, h("button", { key: 'de8da2d954d77e686e0fc684cda44eaa10cd0283', onClick: () => this.dismiss(), class: "cancel cty-button-native" }, this.cancelText), h("div", { key: '4951be3afed0c8f019621da44de74ccaea341d2d', class: "cty-cascader-title" }, this.title), h("button", { key: '246d476bb00234cdf1df00db65733630f3898142', onClick: () => this.confirm(), class: "confirm cty-button-native" }, this.confirmText)), h("div", { key: '43d243de03a05411df3e3e8b47dd9f1e8bdcf892', 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: '098ccb99299be8a5f073b5ade75714c01a2bf7fc', class: "cty-cascader-picked", style: { top: this.center + 'px', height: this.optionHeight + 'px' } }), h("div", { key: 'e3ff801a7b3c821ddcaf9bc8210824b283c3b888', class: "cty-cascader-mask", style: { 'background-size': '100% ' + (this.columnHeight - this.optionHeight) / 2 + 'px' } }))))));
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: '2a7568ea351f90316d3f935644033d9642743e2d', 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: 'ceb129111c92bc0a8b3f5af48d13369da3ae18b9', class: "cty-count-down__item", part: "item" }, h("span", { key: 'ddb0ff0c791a2d490341df9dfacef7cef721e9ba', class: "cty-count-down__label", part: "label" }, " ", this.formattedTime, " "))), h("slot", { key: '45afe6d44deb88adaed12ed51fe6692e93f85877' })));
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: 'ab1c7183a831abd19a0e4d59b154c7529bb83c84', class: {
105
+ return (h(Host, { key: '5cd075db391b80bff2c3802c5864ffe76b9931c2', class: {
106
106
  'cty-dropdown': true,
107
107
  'cty-dropdown-open': tabActiveIndex !== -1,
108
- } }, h("div", { key: '22abe3ffa96e6c085f9cca90e2b61331a82f5239', class: "cty-dropdown-nav" }, innerOptions.map((option, index) => (h("div", { class: {
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: 'b35afb67165191669ffa3c707751322754715377', class: {
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: '864a765df060abc552a23d06cdb2df49a3973b47', class: "cty-dropdown-popup-mask", onClick: this.handleMaskClick }), h("div", { key: '56c8c4affe03652a96a7691818312831c18934dd', class: "cty-dropdown-popup-body", style: { bottom: `${direction == 'up' ? '0px' : 'auto'}` } }, innerOptions.map((option, index) => {
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)))))));
@@ -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: '0a0739e0f79ceac617e345c6bbcca60c90f0647c', class: "cty-empty" }, h("slot", { key: 'de1e22f56efa532629c6ec9dd03bb6e4638e0035', name: "top" }), image && h("img", { key: '4ac5616a87b9b71429be9969fb007c263e8bc21d', class: "cty-empty__image", src: image }), h("slot", { key: 'f536fe175752de7bce77da2056e83ea43e6152b0', name: "image" }), this.description && h("p", { key: '061bad50887d4e8bc8bc906cb1c1ed0acc590277', class: "cty-empty__description" }, this.description), h("slot", { key: '6702d4ed80beb09f8221a6a5610e4b52610d488f', name: "description" })));
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: '85181e1a986368493bc7d97e630fd2160b055406', 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: '2c23afeef2e7ef22b47d0fa3eafc958561653542', class: "cty-floating-bubble__icon", name: this.icon })), h("slot", { key: '31a5c469ace8d7619fabb25373b3a86d9963c2d3' })));
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; }
@@ -5,7 +5,7 @@ import { j as remove } from './index2.js';
5
5
  import { d as defineCustomElement$3 } from './icon.js';
6
6
  import { d as defineCustomElement$2 } from './icon2.js';
7
7
 
8
- const floatingPanelCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.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-floating-panel-content-background:var(--cty-color-white);--cty-floating-panel-header-height:30px;--cty-floating-panel-bar-width:30px;--cty-floating-panel-bar-color:var(--cty-text-color-primary);position:fixed;z-index:10;bottom:0;left:0;width:100%;background-color:var(--cty-color-white);border-radius:var(--cty-border-radius-round) var(--cty-border-radius-round) 0 0;-webkit-transition-duration:0.3s;transition-duration:0.3s;-webkit-transition-timing-function:cubic-bezier(0.18, 0.89, 0.32, 1.28);transition-timing-function:cubic-bezier(0.18, 0.89, 0.32, 1.28)}:host::after{content:\"\";display:block;position:absolute;bottom:-100vh;height:100vh;width:100vw;background-color:inherit}.cty-floating-panel__header{width:100%;height:var(--cty-floating-panel-header-height);cursor:pointer}.cty-floating-panel__header-bar{font-size:var(--cty-floating-panel-bar-width);color:var(--cty-floating-panel-bar-color)}.cty-floating-panel__content{-ms-flex:1;flex:1;overflow-y:auto;width:100%;background:var(--cty-floating-panel-content-background)}";
8
+ const floatingPanelCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.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-floating-panel-content-background:var(--cty-color-white);--cty-floating-panel-header-height:30px;--cty-floating-panel-bar-width:30px;--cty-floating-panel-bar-color:var(--cty-text-color-primary);position:fixed;z-index:10;bottom:0;left:0;width:100%;background-color:var(--cty-color-white);border-radius:var(--cty-border-radius-round) var(--cty-border-radius-round) 0 0;-webkit-transition-property:none;transition-property:none;-webkit-transition-duration:0.3s;transition-duration:0.3s;-webkit-transition-timing-function:cubic-bezier(0.18, 0.89, 0.32, 1.28);transition-timing-function:cubic-bezier(0.18, 0.89, 0.32, 1.28)}:host::after{content:\"\";display:block;position:absolute;bottom:-100vh;height:100vh;width:100vw;background-color:inherit}.cty-floating-panel__header{width:100%;height:var(--cty-floating-panel-header-height);cursor:pointer}.cty-floating-panel__header-bar{font-size:var(--cty-floating-panel-bar-width);color:var(--cty-floating-panel-bar-color)}.cty-floating-panel__content{-ms-flex:1;flex:1;overflow-y:auto;width:100%;background:var(--cty-floating-panel-content-background)}";
9
9
 
10
10
  const FloatingPanel = /*@__PURE__*/ proxyCustomElement(class FloatingPanel extends HTMLElement {
11
11
  constructor() {
@@ -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: '1822f791d1b0c79b753a9e4320e7a28e2cfeb7ff', 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: 'e8aaae838024cf93869d01ffc28edafb62d9002c', class: "cty-floating-panel__header flex-center", onTouchStart: () => {
103
+ return (h(Host, { key: '2d14123d617d72dc55d2d0985c96356136ef31ee', 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: '641a8326446112be8c8b2648e4beec20a62b4ee4', 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: 'eba74d3402c490b7228975e8223df6d1e9f71cf9', name: "icon-start" }), this.icon && h("cty-icon", { key: '5149f391746eefa79e9a754c515c23828eed7a19', class: "cty-floating-panel__header-bar", name: this.icon }), h("slot", { key: '1d742308399786f3a80786d465a5a57bee23203d', name: "icon-end" })), h("div", { key: '4c314da3928737c9bffcbad03629d918b4c7c654', class: "cty-floating-panel__content", ref: (el) => (this.contentRef = el), onTouchStart: () => {
107
+ } }, h("slot", { key: 'd18478ad493c3dbe4d43272c5c6ab47f66352d71', name: "icon-start" }), this.icon && h("cty-icon", { key: 'a283b28aa84e3690ffdebf8a4e2300935412d757', class: "cty-floating-panel__header-bar", name: this.icon }), h("slot", { key: '4afa066649dc4f0a0560d7c6f0b6ae04062ed19c', name: "icon-end" })), h("div", { key: '6ab596de7f2cc199e05fa35dfff2b1ecf8961c05', 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: '79ff0b772b9f1cfd1b20e368c5bc921f86423cbc' }))));
111
+ } }, h("slot", { key: 'b30f4baa0659d53c5012092f324d10e64f7207e1' }))));
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: 'cc963a6a3cec6ebd6f3c12af0810c37730c4983e', 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: '233ea747c7d8b57cde1c3d5ae561a683834a472e', class: "cty-image-upload__item flex-column-center", onClick: () => this.handlePickerImage() }, !this.addImage && this.addIcon && h("cty-icon", { key: 'a3089afd69af41d3ee8c2745079ad75f03627766', class: "cty-image-upload__add-icon", name: this.addIcon }), this.addImage && h("img", { key: 'bdc4d1de7bcb96251645dd54ca26d2b668e6c0a3', class: "cty-image-upload__add-image", src: this.addImage }), h("slot", { key: 'd5b454ee1e9eab5edb8d4f0b8b585d2477be49db', name: "description" })))));
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: '9a642f3ede74ca2e52e035975eb983d0e4a8b6b6', class: "cty-index-bar" }, h("div", { key: '6f573fbb5729db11cf754a91e70ab02c429e3582', class: "cty-index-bar__list" }, this.indexList.map((item, idx) => {
95
+ return (h(Host, { key: 'bc00b8af843eb3a42d82e8e726c659ce667c8c20', class: "cty-index-bar" }, h("div", { key: '46a8872b25852e21753d3e2d607abe1b56746345', 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: '86d9a895e685ab137ebfe14af4416fdf59d9f9a1', 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)))));
98
+ })), h("div", { key: 'ff56f582d6061e2d64a3a26deb39f0a811a742e1', 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: 'af371f575d865d95eb5ab93f99847f609ecd06cd' }));
68
+ return (h(Host, { key: '756612330eb4802d2c00f86270518a22f129a559' }));
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: 'fa7c45d34d10f948bbd067b85ade00397d9c225d', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden cty-pos-cover': true }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-backdrop", { key: 'a73b8fe371c02c96c90d818a59df91c873d7c935', backdropDismiss: this.backdropDismiss, onCtyDismiss: () => this.dismiss() }, h("div", { key: '6866a4f3bfcfe91ae0d4b9bc162572505fd98cb6', class: this.vertical ? 'cty-loading flex-column-center' : 'cty-loading flex-center', onClick: (e) => e.stopPropagation() }, this.renderSpinner(), h("div", { key: 'b40e848697d93605691b618856f89db85e5374f4', class: { 'cty-loading__text': true, 'cty-loading__text-hor': !this.vertical } }, h("slot", { key: '9f6184d18e1f9f67b46dee7c57f5bab604722f8c' }))))));
85
+ return (h(Host, { key: 'a7dc78d83899f394b4eb78f9db58702161362e75', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden cty-pos-cover': true }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-backdrop", { key: '2579570daded08ffbd29af20d5b7c7ed1e629e0b', backdropDismiss: this.backdropDismiss, onCtyDismiss: () => this.dismiss() }, h("div", { key: '8d17d847989cd8096847f6a9fd0c7cccfe09bfd5', class: this.vertical ? 'cty-loading flex-column-center' : 'cty-loading flex-center', onClick: (e) => e.stopPropagation() }, this.renderSpinner(), h("div", { key: 'ad7a7abc9ea517b16ae8d9a0e1e056917e85f0bf', class: { 'cty-loading__text': true, 'cty-loading__text-hor': !this.vertical } }, h("slot", { key: 'ccce9a41fa3e8fcce84932f57dc849a45adad9b3' }))))));
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: '94bb1371e3a7ed55516f8b8cb9831dabbdc383bf', class: { 'cty-media-capture': true, 'cty-media-captured': this.isCaptured } }, h("div", { key: 'a3da381683e3320965ad06bc7d159e64d41e1da7', class: "cty-media-capture__header" }, h("button", { key: '4e3ec2292d5906c30a2dc5c2df2f0ec1acbf7f29', onClick: () => this.doHeaderAction(), class: "cty-button-native" }, h("cty-icon", { key: 'cfb32b62119040b65885463d90cb8ce45235a333', class: "cty-capture__close-icon", name: this.isCaptured ? this.revocationIcon : this.closeIcon })), this.captureTime && (this.isCaptured || this.capturing) && (h("span", { key: 'e64231390aacfa85adbac103edf1d1b3b46c4fc4', class: { 'cty-media-capture__time': true, 'cty-media-capture__time-active': this.capturing } }, captureDuration))), this.isCaptured && (h("video", { key: '531867b2e0ef21c8b910a695614f5735427f3c28', 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: 'd58cb511c5c8a0c8a1d68e5c07d3b04944e26e64', class: "cty-media-capture__footer flex-center" }, !this.isCaptured && (h("button", { key: '30f8698451a4e5978e91dc856fe1b743e5a190e6', class: "cty-media-capture__switch cty-button-native", onClick: () => this.doCapture() }, h("span", { key: 'c54bc3d1db75d7beb34a370c15105b6b7e1a4430', class: { 'cty-media-capture__status': true, 'cty-media-capture__status-active': this.capturing } }))), this.isCaptured && (h("button", { key: '99296dda3a6da80cb9c41625200f7faa8ea85997', class: "cty-media-capture__confirm cty-button-native", onClick: () => this.confirm() }, this.confirmText))), h("slot", { key: '96c008cc141e4bc14e924497690b91af37e57f2f' })));
118
+ return (h(Host, { key: '41cd3b9c071abf32b0428b62c62978c1b30cdf5e', class: { 'cty-media-capture': true, 'cty-media-captured': this.isCaptured } }, h("div", { key: '131fd33826409aae41e4e0ef8433f38010a49c23', class: "cty-media-capture__header" }, h("button", { key: 'a2c93c5e1389f0d376493d6015749dadd8cdf639', onClick: () => this.doHeaderAction(), class: "cty-button-native" }, h("cty-icon", { key: '152d631296205e667c42077c2298d600483661ed', class: "cty-capture__close-icon", name: this.isCaptured ? this.revocationIcon : this.closeIcon })), this.captureTime && (this.isCaptured || this.capturing) && (h("span", { key: '7313ce3898f26261f5223a4e9ed81ef8f3000d75', class: { 'cty-media-capture__time': true, 'cty-media-capture__time-active': this.capturing } }, captureDuration))), this.isCaptured && (h("video", { key: '698056a0a60d562bfeeb3fa8c91a3f1ab23c3a42', 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: '0a9f675c5d461dcc65cbd1e53f99a87ae38283b8', class: "cty-media-capture__footer flex-center" }, !this.isCaptured && (h("button", { key: 'afce2cd74e03beeb38804e5aeb7a6574406ac335', class: "cty-media-capture__switch cty-button-native", onClick: () => this.doCapture() }, h("span", { key: 'a973a14eab73f918fbf8a9a8c10e28a0c0228dcd', class: { 'cty-media-capture__status': true, 'cty-media-capture__status-active': this.capturing } }))), this.isCaptured && (h("button", { key: '159a4f9d93e976f8c60fc43433387dfb448fbab8', class: "cty-media-capture__confirm cty-button-native", onClick: () => this.confirm() }, this.confirmText))), h("slot", { key: '6722138ab3c5824b80478fffb871910491ae97d8' })));
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: 'c3d9d23abf08c3a59ad48088bbe6d460ac5e6438', class: "cty-notice-bar flex-align-center" }, this.startIcon && h("button", { key: 'd1f1e474790f6f1121a0c0ad7ce622abf0634efb', part: "start", class: "cty-button-native", onClick: (e) => this.doIconAction(e, 'start') }, h("cty-icon", { key: '73058738e8f16040c507163f145b8ad338ed834b', name: this.startIcon, class: "cty-notice-bar__start-icon" })), h("slot", { key: '2855dfcb6fbe4cec7102cb362f2334bc3b238a56', name: 'start' }), h("div", { key: '80115da541ed08d84c50844a9a3ce2db0797348e', class: "cty-notice-bar__wrap flex-align-center", ref: el => this.wrapRefEl = el }, h("div", { key: 'bb51a93ee2d3230f5a1289c30c842e784bde7b06', class: { 'cty-ellipsis': !this.scrollable, 'cty-notice-bar__content': true }, ref: el => this.contentEl = el }, this.text, h("slot", { key: '430f4e13c185bd76f9d5716ec96c865baa279648' }))), this.endIcon && h("button", { key: '67e586f8d5e32ee60c6e79a3ed8d96b74f334ed7', part: "start", class: "cty-button-native", onClick: (e) => this.doIconAction(e, 'end') }, h("cty-icon", { key: '5f2e90b32409ad4fe3342382774b6f3b086b9b69', name: this.endIcon, class: "cty-notice-bar__end-icon" })), h("slot", { key: '51371076a6c600b721d7e1cf666b80bfe1ef3a55', name: 'end' })));
58
+ return (h(Host, { key: 'd49e29d973b13c99e47e2f0642e537480540da6e', class: "cty-notice-bar flex-align-center" }, this.startIcon && h("button", { key: 'c2afe7476cba33e01abee2314760477cf8eb3e9f', part: "start", class: "cty-button-native", onClick: (e) => this.doIconAction(e, 'start') }, h("cty-icon", { key: '9f1acb695183c59ecfe3f78c7ab3553a28d94127', name: this.startIcon, class: "cty-notice-bar__start-icon" })), h("slot", { key: '3433798c43db564cce542d953c9797e788ddd39e', name: 'start' }), h("div", { key: 'ad7a29de39ebb0b3db4feddfa09b143a0cd31deb', class: "cty-notice-bar__wrap flex-align-center", ref: el => this.wrapRefEl = el }, h("div", { key: '8c47634eac63f04e7dea54a7f65c3a74f9531995', class: { 'cty-ellipsis': !this.scrollable, 'cty-notice-bar__content': true }, ref: el => this.contentEl = el }, this.text, h("slot", { key: '7863622878e28bfda0a2ccd45edff0e9f6c17f7f' }))), this.endIcon && h("button", { key: '8d0bc08eaa2fe7dfff37444ebcf89e4b2661b063', part: "start", class: "cty-button-native", onClick: (e) => this.doIconAction(e, 'end') }, h("cty-icon", { key: 'b8a6112a462ef4f445745dbd0487efaa454be261', name: this.endIcon, class: "cty-notice-bar__end-icon" })), h("slot", { key: '7b241f62ecc605436574eb5930a524db4290588e', 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: '63e7ef8bd3f752f6ec0babd274d9406b34391ec7', class: "cty-pdf-viewer" }, h("slot", { key: '980af64c9fbcfdbd2b7c87d272ab9ac5bceee481' })));
33
+ return (h(Host, { key: '49483c3b906cf75e91c1d2b61eaf4a49a6338ff0', class: "cty-pdf-viewer" }, h("slot", { key: '0803085a97e73fe5324e3ca2424d576e3b5f8afb' })));
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: '232634327fc3757e0c1e0ece4efeeb1b3816564a', class: "cty-progress" }, h("span", { key: '8edc0e324ad3df79bddb20563dcd455905594a23', class: "cty-progress__portion", style: { width: this._percentage + '%' } }), this.pivot && (h("span", { key: '6c932a76091a8d7ee4493396fc23639efc46a549', class: "cty-progress__pivot", style: {
22
+ return (h(Host, { key: 'e3a60e82da726bc2ea5e1e9a7e70e9370e5065cc', class: "cty-progress" }, h("span", { key: '94600114f1bca83302c725e539c7165a0ea37bcd', class: "cty-progress__portion", style: { width: this._percentage + '%' } }), this.pivot && (h("span", { key: '163d967728fad42ccf21558976059296051647b2', 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: '26903a99a241531eca59feaf228c2417daff8795', class: "cty-quick-access" }, h("slot", { key: '4bc5b12a251d74550ebe12dac8109e58b4832fef', name: "header" }), h("div", { key: '6b137446e93e78d638191d35da6303b9ca755ff6', 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: 'f80a871cf6bce848fc758f098d30379129ff3e13', name: "bottom" }), this.list.length > 1 && this.paper && (h("div", { key: '672f3d07f40492717fe4570f80a0c5e9a5bebe4e', 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: '1380cafaf4b1a558f514867f1351514bb74c5beb', name: "p-bottom" })));
121
+ return (h(Host, { key: 'eedf2912ded1785ce42d5a56ffbd722c19cf76c2', class: "cty-quick-access" }, h("slot", { key: 'b937dac3c520004915d0275fc7039b228e4bd770', name: "header" }), h("div", { key: 'ed9770f62c1f5cfa2417ff7284cbf0225bef234a', 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: '6268ab5970c1e67f71296b185ca700356794463f', name: "bottom" }), this.list.length > 1 && this.paper && (h("div", { key: '955bb9a5826a0306fe47ebb8d0aba9b027b4357d', 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: '14cfc5cfa8d565827c52269747ab7a906b62c3f7', name: "p-bottom" })));
122
122
  }
123
123
  get el() { return this; }
124
124
  static get watchers() { return {