zartui 3.0.5 → 3.0.7

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 (401) hide show
  1. package/es/button/Button.d.ts +3 -0
  2. package/es/button/Button.mjs +2 -0
  3. package/es/button/index.d.ts +2 -0
  4. package/es/cascader/Cascader.mjs +0 -2
  5. package/es/cascader/index.css +1 -1
  6. package/es/checkbox/Checkbox.d.ts +1 -1
  7. package/es/checkbox/Checker.d.ts +2 -2
  8. package/es/checkbox/index.d.ts +1 -1
  9. package/es/collapse-item/CollapseItem.mjs +3 -1
  10. package/es/date-time-picker/DateTimePicker.d.ts +1 -1
  11. package/es/date-time-picker/DateTimePicker.mjs +9 -3
  12. package/es/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
  13. package/es/date-time-picker/index.d.ts +1 -1
  14. package/es/dialog/index.css +1 -1
  15. package/es/divider/index.css +1 -1
  16. package/es/dropdown-item/DropdownItem.mjs +7 -4
  17. package/es/dropdown-menu/DropdownMenu.mjs +2 -2
  18. package/es/dropdown-menu/types.d.ts +1 -0
  19. package/es/empty/Images.mjs +9 -9
  20. package/es/empty/index.css +1 -1
  21. package/es/hierarchy-select/Breadcrumb.d.ts +43 -0
  22. package/es/hierarchy-select/Breadcrumb.mjs +56 -0
  23. package/es/hierarchy-select/HierarchySelect.d.ts +104 -0
  24. package/es/hierarchy-select/HierarchySelect.mjs +221 -0
  25. package/es/hierarchy-select/index.css +1 -0
  26. package/es/hierarchy-select/index.d.ts +79 -0
  27. package/es/hierarchy-select/index.mjs +8 -0
  28. package/es/hierarchy-select/style/index.d.ts +1 -0
  29. package/es/hierarchy-select/style/index.mjs +8 -0
  30. package/es/hierarchy-select/svg/SubIcon.d.ts +1 -0
  31. package/es/hierarchy-select/svg/SubIcon.mjs +33 -0
  32. package/es/hierarchy-select/types.d.ts +7 -0
  33. package/es/hierarchy-select/types.mjs +0 -0
  34. package/es/icon/config.mjs +3 -1
  35. package/es/icon/index.css +1 -1
  36. package/es/image-preview/ImagePreview.mjs +1 -1
  37. package/es/index-anchor/IndexAnchor.d.ts +11 -0
  38. package/es/index-anchor/IndexAnchor.mjs +88 -0
  39. package/es/index-anchor/index.css +1 -0
  40. package/es/index-anchor/index.d.ts +14 -0
  41. package/es/index-anchor/index.mjs +10 -0
  42. package/es/index-anchor/style/index.d.ts +1 -0
  43. package/es/index-anchor/style/index.mjs +3 -0
  44. package/es/index-anchor/types.d.ts +11 -0
  45. package/es/index-anchor/types.mjs +0 -0
  46. package/es/index-bar/IndexBar.d.ts +64 -0
  47. package/es/index-bar/IndexBar.mjs +275 -0
  48. package/es/index-bar/index.css +1 -0
  49. package/es/index-bar/index.d.ts +50 -0
  50. package/es/index-bar/index.mjs +10 -0
  51. package/es/index-bar/style/index.d.ts +1 -0
  52. package/es/index-bar/style/index.mjs +2 -0
  53. package/es/index-bar/types.d.ts +16 -0
  54. package/es/index-bar/types.mjs +0 -0
  55. package/es/index.d.ts +8 -1
  56. package/es/index.mjs +22 -1
  57. package/es/lazyload/vue-lazyload/index.mjs +5 -0
  58. package/es/lazyload/vue-lazyload/lazy.mjs +81 -0
  59. package/es/lazyload/vue-lazyload/listener.mjs +45 -0
  60. package/es/list/List.mjs +2 -4
  61. package/es/list/index.css +1 -1
  62. package/es/locale/lang/en-US.d.ts +7 -23
  63. package/es/locale/lang/en-US.mjs +7 -23
  64. package/es/locale/lang/zh-CN.d.ts +7 -23
  65. package/es/locale/lang/zh-CN.mjs +7 -23
  66. package/es/media-picker/MediaPicker.mjs +20 -0
  67. package/es/media-picker/image/PickFileIcon.mjs +1 -1
  68. package/es/media-picker/image/PickPhotoIcon.mjs +1 -1
  69. package/es/media-picker/image/TakeAudioIcon.mjs +1 -1
  70. package/es/media-picker/image/TakePhotoIcon.mjs +1 -1
  71. package/es/media-picker/image/TakeVideoIcon.mjs +1 -1
  72. package/es/media-picker/index.css +1 -1
  73. package/es/media-picker/util/media-util.mjs +3 -0
  74. package/es/media-picker/watermark/image-processor.mjs +10 -6
  75. package/es/media-picker/watermark/resize-options.mjs +1 -0
  76. package/es/media-picker/watermark/watermark.mjs +4 -0
  77. package/es/multiple-picker/MultiplePicker.d.ts +4 -4
  78. package/es/multiple-picker/MultiplePicker.mjs +3 -3
  79. package/es/multiple-picker/MultiplePickerOptions.d.ts +4 -4
  80. package/es/multiple-picker/MultiplePickerOptions.mjs +3 -3
  81. package/es/multiple-picker/index.d.ts +3 -3
  82. package/es/notice-bar/index.css +1 -1
  83. package/es/picker/Picker.mjs +7 -4
  84. package/es/picker/PickerToolbar.mjs +1 -0
  85. package/es/popover/Popover.d.ts +13 -0
  86. package/es/popover/Popover.mjs +91 -4
  87. package/es/popover/index.css +1 -1
  88. package/es/popover/index.d.ts +9 -0
  89. package/es/popup/Popup.mjs +1 -0
  90. package/es/popup/index.css +1 -1
  91. package/es/popup/shared.mjs +12 -0
  92. package/es/radio/Radio.d.ts +1 -1
  93. package/es/radio/index.d.ts +1 -1
  94. package/es/rate/index.css +1 -1
  95. package/es/search/Search.d.ts +1 -1
  96. package/es/search/Search.mjs +1 -0
  97. package/es/search/index.d.ts +1 -1
  98. package/es/signature/Signature.mjs +13 -10
  99. package/es/signature/index.css +1 -1
  100. package/es/step/Step.mjs +10 -6
  101. package/es/step/index.css +1 -1
  102. package/es/stepper/Stepper.mjs +2 -0
  103. package/es/stepper/index.css +1 -1
  104. package/es/steps/index.css +1 -1
  105. package/es/sticky/Sticky.mjs +2 -0
  106. package/es/style/base.css +1 -1
  107. package/es/style/css-variables.css +1 -1
  108. package/es/swipe/Swipe.d.ts +3 -1
  109. package/es/swipe/Swipe.mjs +19 -2
  110. package/es/swipe/index.d.ts +3 -1
  111. package/es/swipe-cell/SwipeCell.d.ts +44 -0
  112. package/es/swipe-cell/SwipeCell.mjs +163 -0
  113. package/es/swipe-cell/index.css +1 -0
  114. package/es/swipe-cell/index.d.ts +39 -0
  115. package/es/swipe-cell/index.mjs +10 -0
  116. package/es/swipe-cell/style/index.d.ts +1 -0
  117. package/es/swipe-cell/style/index.mjs +2 -0
  118. package/es/swipe-cell/types.d.ts +9 -0
  119. package/es/swipe-cell/types.mjs +0 -0
  120. package/es/switch/index.css +1 -1
  121. package/es/tabbar-item/index.css +1 -1
  122. package/es/table/Table.d.ts +113 -0
  123. package/es/table/Table.mjs +118 -0
  124. package/es/table/index.css +1 -0
  125. package/es/table/index.d.ts +75 -0
  126. package/es/table/index.mjs +10 -0
  127. package/es/table/style/index.d.ts +1 -0
  128. package/es/table/style/index.mjs +2 -0
  129. package/es/tabs/Tabs.mjs +2 -0
  130. package/es/tabs/index.css +1 -1
  131. package/es/tag/Tag.d.ts +18 -1
  132. package/es/tag/Tag.mjs +47 -2
  133. package/es/tag/index.css +1 -1
  134. package/es/tag/index.d.ts +13 -1
  135. package/es/text-ellipsis/TextEllipsis.d.ts +76 -0
  136. package/es/text-ellipsis/TextEllipsis.mjs +118 -0
  137. package/es/text-ellipsis/index.css +1 -0
  138. package/es/text-ellipsis/index.d.ts +60 -0
  139. package/es/text-ellipsis/index.mjs +10 -0
  140. package/es/text-ellipsis/style/index.d.ts +1 -0
  141. package/es/text-ellipsis/style/index.mjs +2 -0
  142. package/es/text-ellipsis/types.d.ts +3 -0
  143. package/es/text-ellipsis/types.mjs +0 -0
  144. package/es/timeline/Timeline.d.ts +113 -0
  145. package/es/timeline/Timeline.mjs +162 -0
  146. package/es/timeline/index.css +1 -0
  147. package/es/timeline/index.d.ts +75 -0
  148. package/es/timeline/index.mjs +10 -0
  149. package/es/timeline/style/index.d.ts +1 -0
  150. package/es/timeline/style/index.mjs +4 -0
  151. package/es/uploader/Uploader.d.ts +1 -1
  152. package/es/uploader/index.d.ts +1 -1
  153. package/es/uploader/utils.mjs +1 -1
  154. package/es/utils/dom.d.ts +1 -0
  155. package/es/utils/dom.mjs +11 -0
  156. package/lib/action-sheet/index.js +4 -0
  157. package/lib/avatar/Avatar.js +4 -0
  158. package/lib/avatar/index.js +4 -0
  159. package/lib/badge/index.js +4 -0
  160. package/lib/button/Button.d.ts +3 -0
  161. package/lib/button/Button.js +2 -0
  162. package/lib/button/index.d.ts +2 -0
  163. package/lib/button/index.js +4 -0
  164. package/lib/calendar/Calendar.js +4 -0
  165. package/lib/calendar/CalendarMonth.js +4 -0
  166. package/lib/calendar/index.js +4 -0
  167. package/lib/cascader/Cascader.js +4 -2
  168. package/lib/cascader/index.css +1 -1
  169. package/lib/cascader/index.js +4 -0
  170. package/lib/cell/index.js +4 -0
  171. package/lib/cell-group/index.js +4 -0
  172. package/lib/checkbox/Checkbox.d.ts +1 -1
  173. package/lib/checkbox/Checkbox.js +4 -0
  174. package/lib/checkbox/Checker.d.ts +2 -2
  175. package/lib/checkbox/index.d.ts +1 -1
  176. package/lib/checkbox/index.js +4 -0
  177. package/lib/checkbox-group/index.js +4 -0
  178. package/lib/col/index.js +4 -0
  179. package/lib/collapse/index.js +4 -0
  180. package/lib/collapse-item/CollapseItem.js +7 -1
  181. package/lib/collapse-item/index.js +4 -0
  182. package/lib/config-provider/index.js +4 -0
  183. package/lib/date-time-picker/DateTimePicker.d.ts +1 -1
  184. package/lib/date-time-picker/DateTimePicker.js +13 -3
  185. package/lib/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
  186. package/lib/date-time-picker/DateTimePickerWrapper.js +4 -0
  187. package/lib/date-time-picker/index.d.ts +1 -1
  188. package/lib/date-time-picker/index.js +4 -0
  189. package/lib/dialog/function-call.js +4 -0
  190. package/lib/dialog/index.css +1 -1
  191. package/lib/dialog/index.js +4 -0
  192. package/lib/divider/index.css +1 -1
  193. package/lib/divider/index.js +4 -0
  194. package/lib/dropdown-item/DropdownItem.js +6 -3
  195. package/lib/dropdown-item/index.js +4 -0
  196. package/lib/dropdown-menu/DropdownMenu.js +6 -2
  197. package/lib/dropdown-menu/index.js +4 -0
  198. package/lib/dropdown-menu/types.d.ts +1 -0
  199. package/lib/empty/Images.js +9 -9
  200. package/lib/empty/index.css +1 -1
  201. package/lib/empty/index.js +4 -0
  202. package/lib/field/index.js +4 -0
  203. package/lib/form/index.js +4 -0
  204. package/lib/grid/index.js +4 -0
  205. package/lib/grid-item/index.js +4 -0
  206. package/lib/hierarchy-select/Breadcrumb.d.ts +43 -0
  207. package/lib/hierarchy-select/Breadcrumb.js +85 -0
  208. package/lib/hierarchy-select/HierarchySelect.d.ts +104 -0
  209. package/lib/hierarchy-select/HierarchySelect.js +250 -0
  210. package/lib/hierarchy-select/index.css +1 -0
  211. package/lib/hierarchy-select/index.d.ts +79 -0
  212. package/lib/hierarchy-select/index.js +37 -0
  213. package/lib/hierarchy-select/style/index.d.ts +1 -0
  214. package/lib/hierarchy-select/style/index.js +8 -0
  215. package/lib/hierarchy-select/svg/SubIcon.d.ts +1 -0
  216. package/lib/hierarchy-select/svg/SubIcon.js +52 -0
  217. package/lib/hierarchy-select/types.d.ts +7 -0
  218. package/lib/hierarchy-select/types.js +15 -0
  219. package/lib/icon/config.js +3 -1
  220. package/lib/icon/index.css +1 -1
  221. package/lib/icon/index.js +4 -0
  222. package/lib/image/index.js +4 -0
  223. package/lib/image-preview/ImagePreview.js +5 -1
  224. package/lib/image-preview/function-call.js +4 -0
  225. package/lib/image-preview/index.js +4 -0
  226. package/lib/index-anchor/IndexAnchor.d.ts +11 -0
  227. package/lib/index-anchor/IndexAnchor.js +107 -0
  228. package/lib/index-anchor/index.css +1 -0
  229. package/lib/index-anchor/index.d.ts +14 -0
  230. package/lib/index-anchor/index.js +39 -0
  231. package/lib/index-anchor/style/index.d.ts +1 -0
  232. package/lib/index-anchor/style/index.js +3 -0
  233. package/lib/index-anchor/types.d.ts +11 -0
  234. package/lib/index-anchor/types.js +15 -0
  235. package/lib/index-bar/IndexBar.d.ts +64 -0
  236. package/lib/index-bar/IndexBar.js +294 -0
  237. package/lib/index-bar/index.css +1 -0
  238. package/lib/index-bar/index.d.ts +50 -0
  239. package/lib/index-bar/index.js +39 -0
  240. package/lib/index-bar/style/index.d.ts +1 -0
  241. package/lib/index-bar/style/index.js +2 -0
  242. package/lib/index-bar/types.d.ts +16 -0
  243. package/lib/index-bar/types.js +15 -0
  244. package/lib/index.css +1 -1
  245. package/lib/index.d.ts +8 -1
  246. package/lib/index.js +22 -1
  247. package/lib/lazyload/vue-lazyload/index.js +9 -0
  248. package/lib/lazyload/vue-lazyload/lazy.js +85 -0
  249. package/lib/lazyload/vue-lazyload/listener.js +45 -0
  250. package/lib/list/List.js +2 -4
  251. package/lib/list/index.css +1 -1
  252. package/lib/list/index.js +4 -0
  253. package/lib/loading/index.js +4 -0
  254. package/lib/locale/index.js +4 -0
  255. package/lib/locale/lang/en-US.d.ts +7 -23
  256. package/lib/locale/lang/en-US.js +7 -23
  257. package/lib/locale/lang/zh-CN.d.ts +7 -23
  258. package/lib/locale/lang/zh-CN.js +7 -23
  259. package/lib/media-picker/MediaPicker.js +24 -0
  260. package/lib/media-picker/image/PickFileIcon.js +1 -1
  261. package/lib/media-picker/image/PickPhotoIcon.js +1 -1
  262. package/lib/media-picker/image/TakeAudioIcon.js +1 -1
  263. package/lib/media-picker/image/TakePhotoIcon.js +1 -1
  264. package/lib/media-picker/image/TakeVideoIcon.js +1 -1
  265. package/lib/media-picker/index.css +1 -1
  266. package/lib/media-picker/index.js +4 -0
  267. package/lib/media-picker/util/media-util.js +3 -0
  268. package/lib/media-picker/watermark/image-processor.js +10 -6
  269. package/lib/media-picker/watermark/resize-options.js +1 -0
  270. package/lib/media-picker/watermark/watermark.js +4 -0
  271. package/lib/media-player/MediaPlayer.js +4 -0
  272. package/lib/media-player/index.js +4 -0
  273. package/lib/multiple-picker/MultiplePicker.d.ts +4 -4
  274. package/lib/multiple-picker/MultiplePicker.js +7 -3
  275. package/lib/multiple-picker/MultiplePickerOptions.d.ts +4 -4
  276. package/lib/multiple-picker/MultiplePickerOptions.js +3 -3
  277. package/lib/multiple-picker/index.d.ts +3 -3
  278. package/lib/multiple-picker/index.js +4 -0
  279. package/lib/nav-bar/index.js +4 -0
  280. package/lib/notice-bar/NoticeBar.js +4 -0
  281. package/lib/notice-bar/index.css +1 -1
  282. package/lib/notice-bar/index.js +4 -0
  283. package/lib/notify/function-call.js +4 -0
  284. package/lib/notify/index.js +4 -0
  285. package/lib/number-keyboard/NumberKeyboard.js +4 -0
  286. package/lib/number-keyboard/NumberKeyboardKey.js +4 -0
  287. package/lib/number-keyboard/index.js +4 -0
  288. package/lib/overlay/index.js +4 -0
  289. package/lib/password-input/index.js +4 -0
  290. package/lib/picker/Picker.js +10 -3
  291. package/lib/picker/PickerToolbar.js +1 -0
  292. package/lib/picker/index.js +4 -0
  293. package/lib/popover/Popover.d.ts +13 -0
  294. package/lib/popover/Popover.js +90 -3
  295. package/lib/popover/index.css +1 -1
  296. package/lib/popover/index.d.ts +9 -0
  297. package/lib/popover/index.js +4 -0
  298. package/lib/popup/Popup.js +1 -0
  299. package/lib/popup/index.css +1 -1
  300. package/lib/popup/index.js +4 -0
  301. package/lib/popup/shared.js +12 -0
  302. package/lib/pull-refresh/index.js +4 -0
  303. package/lib/radio/Radio.d.ts +1 -1
  304. package/lib/radio/Radio.js +4 -0
  305. package/lib/radio/index.d.ts +1 -1
  306. package/lib/radio/index.js +4 -0
  307. package/lib/radio-group/index.js +4 -0
  308. package/lib/rate/index.css +1 -1
  309. package/lib/rate/index.js +4 -0
  310. package/lib/row/index.js +4 -0
  311. package/lib/search/Search.d.ts +1 -1
  312. package/lib/search/Search.js +1 -0
  313. package/lib/search/index.d.ts +1 -1
  314. package/lib/search/index.js +4 -0
  315. package/lib/signature/Signature.js +16 -9
  316. package/lib/signature/index.css +1 -1
  317. package/lib/signature/index.js +4 -0
  318. package/lib/skeleton/index.js +4 -0
  319. package/lib/step/Step.js +10 -6
  320. package/lib/step/index.css +1 -1
  321. package/lib/step/index.js +4 -0
  322. package/lib/stepper/Stepper.js +6 -0
  323. package/lib/stepper/index.css +1 -1
  324. package/lib/stepper/index.js +4 -0
  325. package/lib/steps/index.css +1 -1
  326. package/lib/steps/index.js +4 -0
  327. package/lib/sticky/Sticky.js +2 -0
  328. package/lib/sticky/index.js +4 -0
  329. package/lib/style/base.css +1 -1
  330. package/lib/style/css-variables.css +1 -1
  331. package/lib/swipe/Swipe.d.ts +3 -1
  332. package/lib/swipe/Swipe.js +19 -2
  333. package/lib/swipe/index.d.ts +3 -1
  334. package/lib/swipe/index.js +4 -0
  335. package/lib/swipe-cell/SwipeCell.d.ts +44 -0
  336. package/lib/swipe-cell/SwipeCell.js +182 -0
  337. package/lib/swipe-cell/index.css +1 -0
  338. package/lib/swipe-cell/index.d.ts +39 -0
  339. package/lib/swipe-cell/index.js +39 -0
  340. package/lib/swipe-cell/style/index.d.ts +1 -0
  341. package/lib/swipe-cell/style/index.js +2 -0
  342. package/lib/swipe-cell/types.d.ts +9 -0
  343. package/lib/swipe-cell/types.js +15 -0
  344. package/lib/swipe-item/index.js +4 -0
  345. package/lib/switch/index.css +1 -1
  346. package/lib/switch/index.js +4 -0
  347. package/lib/tab/index.js +4 -0
  348. package/lib/tabbar/index.js +4 -0
  349. package/lib/tabbar-item/index.css +1 -1
  350. package/lib/tabbar-item/index.js +4 -0
  351. package/lib/table/Table.d.ts +113 -0
  352. package/lib/table/Table.js +137 -0
  353. package/lib/table/index.css +1 -0
  354. package/lib/table/index.d.ts +75 -0
  355. package/lib/table/index.js +39 -0
  356. package/lib/table/style/index.d.ts +1 -0
  357. package/lib/table/style/index.js +2 -0
  358. package/lib/tabs/Tabs.js +6 -0
  359. package/lib/tabs/index.css +1 -1
  360. package/lib/tabs/index.js +4 -0
  361. package/lib/tag/Tag.d.ts +18 -1
  362. package/lib/tag/Tag.js +47 -2
  363. package/lib/tag/index.css +1 -1
  364. package/lib/tag/index.d.ts +13 -1
  365. package/lib/tag/index.js +4 -0
  366. package/lib/text-ellipsis/TextEllipsis.d.ts +76 -0
  367. package/lib/text-ellipsis/TextEllipsis.js +137 -0
  368. package/lib/text-ellipsis/index.css +1 -0
  369. package/lib/text-ellipsis/index.d.ts +60 -0
  370. package/lib/text-ellipsis/index.js +39 -0
  371. package/lib/text-ellipsis/style/index.d.ts +1 -0
  372. package/lib/text-ellipsis/style/index.js +2 -0
  373. package/lib/text-ellipsis/types.d.ts +3 -0
  374. package/lib/text-ellipsis/types.js +15 -0
  375. package/lib/time-picker/TimePicker.js +4 -0
  376. package/lib/time-picker/TimePickerColumn.js +4 -0
  377. package/lib/time-picker/index.js +4 -0
  378. package/lib/timeline/Timeline.d.ts +113 -0
  379. package/lib/timeline/Timeline.js +191 -0
  380. package/lib/timeline/index.css +1 -0
  381. package/lib/timeline/index.d.ts +75 -0
  382. package/lib/timeline/index.js +39 -0
  383. package/lib/timeline/style/index.d.ts +1 -0
  384. package/lib/timeline/style/index.js +4 -0
  385. package/lib/toast/function-call.js +4 -0
  386. package/lib/toast/index.js +4 -0
  387. package/lib/uploader/Uploader.d.ts +1 -1
  388. package/lib/uploader/Uploader.js +4 -0
  389. package/lib/uploader/index.d.ts +1 -1
  390. package/lib/uploader/index.js +4 -0
  391. package/lib/uploader/utils.js +1 -1
  392. package/lib/utils/create.js +4 -0
  393. package/lib/utils/dom.d.ts +1 -0
  394. package/lib/utils/dom.js +11 -0
  395. package/lib/web-types.json +1 -1
  396. package/lib/zartui.cjs.js +2619 -1019
  397. package/lib/zartui.es.js +2671 -1071
  398. package/lib/zartui.js +3354 -1218
  399. package/lib/zartui.min.js +1 -1
  400. package/package.json +24 -23
  401. package/README.md +0 -25
@@ -26,6 +26,11 @@ export declare const Tag: import("../utils").WithInstall<import("vue").DefineCom
26
26
  type: NumberConstructor;
27
27
  default: number;
28
28
  };
29
+ stamp: BooleanConstructor;
30
+ stampDiameter: {
31
+ type: NumberConstructor;
32
+ default: number;
33
+ };
29
34
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
35
  mark: BooleanConstructor;
31
36
  show: {
@@ -54,18 +59,25 @@ export declare const Tag: import("../utils").WithInstall<import("vue").DefineCom
54
59
  type: NumberConstructor;
55
60
  default: number;
56
61
  };
62
+ stamp: BooleanConstructor;
63
+ stampDiameter: {
64
+ type: NumberConstructor;
65
+ default: number;
66
+ };
57
67
  }>> & {
58
68
  onClose?: ((...args: any[]) => any) | undefined;
59
69
  }, {
70
+ mark: boolean;
60
71
  type: import("./Tag").TagType;
61
72
  badge: boolean;
62
- mark: boolean;
63
73
  show: boolean;
64
74
  round: boolean;
65
75
  closeable: boolean;
66
76
  plain: boolean;
67
77
  badgeWidth: number;
68
78
  badgeHeight: number;
79
+ stamp: boolean;
80
+ stampDiameter: number;
69
81
  }>>;
70
82
  export default Tag;
71
83
  export { tagProps } from './Tag';
package/lib/tag/index.js CHANGED
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -0,0 +1,76 @@
1
+ import { type ExtractPropTypes } from 'vue';
2
+ export declare const textEllipsisProps: {
3
+ rows: {
4
+ type: (NumberConstructor | StringConstructor)[];
5
+ default: number;
6
+ };
7
+ content: {
8
+ type: import("vue").PropType<string>;
9
+ default: string;
10
+ };
11
+ expandText: {
12
+ type: import("vue").PropType<string>;
13
+ default: string;
14
+ };
15
+ collapseText: {
16
+ type: import("vue").PropType<string>;
17
+ default: string;
18
+ };
19
+ highlight: {
20
+ type: import("vue").PropType<string>;
21
+ default: string;
22
+ };
23
+ };
24
+ export declare type TextEllipsisProps = ExtractPropTypes<typeof textEllipsisProps>;
25
+ declare const _default: import("vue").DefineComponent<{
26
+ rows: {
27
+ type: (NumberConstructor | StringConstructor)[];
28
+ default: number;
29
+ };
30
+ content: {
31
+ type: import("vue").PropType<string>;
32
+ default: string;
33
+ };
34
+ expandText: {
35
+ type: import("vue").PropType<string>;
36
+ default: string;
37
+ };
38
+ collapseText: {
39
+ type: import("vue").PropType<string>;
40
+ default: string;
41
+ };
42
+ highlight: {
43
+ type: import("vue").PropType<string>;
44
+ default: string;
45
+ };
46
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickAction"[], "clickAction", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
47
+ rows: {
48
+ type: (NumberConstructor | StringConstructor)[];
49
+ default: number;
50
+ };
51
+ content: {
52
+ type: import("vue").PropType<string>;
53
+ default: string;
54
+ };
55
+ expandText: {
56
+ type: import("vue").PropType<string>;
57
+ default: string;
58
+ };
59
+ collapseText: {
60
+ type: import("vue").PropType<string>;
61
+ default: string;
62
+ };
63
+ highlight: {
64
+ type: import("vue").PropType<string>;
65
+ default: string;
66
+ };
67
+ }>> & {
68
+ onClickAction?: ((...args: any[]) => any) | undefined;
69
+ }, {
70
+ content: string;
71
+ rows: string | number;
72
+ expandText: string;
73
+ collapseText: string;
74
+ highlight: string;
75
+ }>;
76
+ export default _default;
@@ -0,0 +1,137 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name2 in all)
7
+ __defProp(target, name2, { get: all[name2], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var stdin_exports = {};
19
+ __export(stdin_exports, {
20
+ default: () => stdin_default,
21
+ textEllipsisProps: () => textEllipsisProps
22
+ });
23
+ module.exports = __toCommonJS(stdin_exports);
24
+ var import_vue = require("vue");
25
+ var import_vue2 = require("vue");
26
+ var import_use = require("@zartui/use");
27
+ var import_utils = require("../utils");
28
+ const [name, bem] = (0, import_utils.createNamespace)("text-ellipsis");
29
+ const textEllipsisProps = {
30
+ rows: (0, import_utils.makeNumericProp)(1),
31
+ content: (0, import_utils.makeStringProp)(""),
32
+ expandText: (0, import_utils.makeStringProp)(""),
33
+ collapseText: (0, import_utils.makeStringProp)(""),
34
+ highlight: (0, import_utils.makeStringProp)("")
35
+ };
36
+ var stdin_default = (0, import_vue2.defineComponent)({
37
+ name,
38
+ props: textEllipsisProps,
39
+ emits: ["clickAction"],
40
+ setup(props, {
41
+ emit
42
+ }) {
43
+ const text = (0, import_vue2.ref)("");
44
+ const expanded = (0, import_vue2.ref)(false);
45
+ const hasAction = (0, import_vue2.ref)(false);
46
+ const root = (0, import_vue2.ref)();
47
+ const pxToNum = (value) => {
48
+ if (!value)
49
+ return 0;
50
+ const match = value.match(/^\d*(\.\d*)?/);
51
+ return match ? Number(match[0]) : 0;
52
+ };
53
+ const calcEllipsised = () => {
54
+ const cloneContainer = () => {
55
+ if (!root.value)
56
+ return;
57
+ const originStyle = window.getComputedStyle(root.value);
58
+ const container2 = document.createElement("div");
59
+ const styleNames = Array.prototype.slice.apply(originStyle);
60
+ styleNames.forEach((name2) => {
61
+ container2.style.setProperty(name2, originStyle.getPropertyValue(name2));
62
+ });
63
+ container2.style.position = "fixed";
64
+ container2.style.zIndex = "-9999";
65
+ container2.style.top = "-9999px";
66
+ container2.style.height = "auto";
67
+ container2.style.minHeight = "auto";
68
+ container2.style.maxHeight = "auto";
69
+ container2.innerText = props.content;
70
+ document.body.appendChild(container2);
71
+ return container2;
72
+ };
73
+ const calcEllipsisText = (container2, maxHeight2) => {
74
+ const {
75
+ content,
76
+ expandText
77
+ } = props;
78
+ const dot = "...";
79
+ let left = 0;
80
+ let right = content.length;
81
+ let res = -1;
82
+ while (left <= right) {
83
+ const mid = Math.floor((left + right) / 2);
84
+ container2.innerText = content.slice(0, mid) + dot + expandText;
85
+ if (container2.offsetHeight <= maxHeight2) {
86
+ left = mid + 1;
87
+ res = mid;
88
+ } else {
89
+ right = mid - 1;
90
+ }
91
+ }
92
+ return content.slice(0, res) + dot;
93
+ };
94
+ const container = cloneContainer();
95
+ if (!container)
96
+ return;
97
+ const {
98
+ paddingBottom,
99
+ paddingTop,
100
+ lineHeight
101
+ } = container.style;
102
+ const maxHeight = (Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom);
103
+ if (maxHeight < container.offsetHeight) {
104
+ hasAction.value = true;
105
+ text.value = calcEllipsisText(container, maxHeight);
106
+ } else {
107
+ hasAction.value = false;
108
+ text.value = props.content;
109
+ }
110
+ document.body.removeChild(container);
111
+ };
112
+ const onClickAction = (event) => {
113
+ expanded.value = !expanded.value;
114
+ emit("clickAction", event);
115
+ };
116
+ const formatSearchKeyword = (keywords, text2) => {
117
+ if (!keywords)
118
+ return text2;
119
+ const replaceReg = new RegExp(keywords, "ig");
120
+ const replaceString = `<span style="color: #0091FA; background: rgba(0, 145, 250, 0.1);">${keywords}</span>`;
121
+ return text2.replace(replaceReg, replaceString);
122
+ };
123
+ const renderAction = () => (0, import_vue.createVNode)("span", {
124
+ "class": bem("action"),
125
+ "onClick": onClickAction
126
+ }, [expanded.value ? props.collapseText : props.expandText]);
127
+ (0, import_vue2.onMounted)(calcEllipsised);
128
+ (0, import_vue2.watch)(() => [props.content, props.rows], calcEllipsised);
129
+ (0, import_use.useEventListener)("resize", calcEllipsised);
130
+ return () => (0, import_vue.createVNode)("div", {
131
+ "ref": root,
132
+ "class": bem()
133
+ }, [(0, import_vue.createVNode)("span", {
134
+ "innerHTML": formatSearchKeyword(props.highlight, expanded.value ? props.content : text.value)
135
+ }, null), hasAction.value ? renderAction() : null]);
136
+ }
137
+ });
@@ -0,0 +1 @@
1
+ :root{--zt-text-ellipsis-line-height:calc(200% - 8px);--zt-text-ellipsis-action-color: var(--zt-blue)}.zt-text-ellipsis{line-height:var(--zt-text-ellipsis-line-height);white-space:pre-wrap;word-break:break-all}.zt-text-ellipsis__action{cursor:pointer;color:var(--zt-text-ellipsis-action-color)}.zt-text-ellipsis__action:active{opacity:var(--zt-active-opacity)}
@@ -0,0 +1,60 @@
1
+ export declare const TextEllipsis: import("../utils").WithInstall<import("vue").DefineComponent<{
2
+ rows: {
3
+ type: (NumberConstructor | StringConstructor)[];
4
+ default: number;
5
+ };
6
+ content: {
7
+ type: import("vue").PropType<string>;
8
+ default: string;
9
+ };
10
+ expandText: {
11
+ type: import("vue").PropType<string>;
12
+ default: string;
13
+ };
14
+ collapseText: {
15
+ type: import("vue").PropType<string>;
16
+ default: string;
17
+ };
18
+ highlight: {
19
+ type: import("vue").PropType<string>;
20
+ default: string;
21
+ };
22
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickAction"[], "clickAction", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
+ rows: {
24
+ type: (NumberConstructor | StringConstructor)[];
25
+ default: number;
26
+ };
27
+ content: {
28
+ type: import("vue").PropType<string>;
29
+ default: string;
30
+ };
31
+ expandText: {
32
+ type: import("vue").PropType<string>;
33
+ default: string;
34
+ };
35
+ collapseText: {
36
+ type: import("vue").PropType<string>;
37
+ default: string;
38
+ };
39
+ highlight: {
40
+ type: import("vue").PropType<string>;
41
+ default: string;
42
+ };
43
+ }>> & {
44
+ onClickAction?: ((...args: any[]) => any) | undefined;
45
+ }, {
46
+ content: string;
47
+ rows: string | number;
48
+ expandText: string;
49
+ collapseText: string;
50
+ highlight: string;
51
+ }>>;
52
+ export default TextEllipsis;
53
+ export { textEllipsisProps } from './TextEllipsis';
54
+ export type { TextEllipsisProps } from './TextEllipsis';
55
+ export type { TextEllipsisThemeVars } from './types';
56
+ declare module 'vue' {
57
+ interface GlobalComponents {
58
+ ZtTextEllipsis: typeof TextEllipsis;
59
+ }
60
+ }
@@ -0,0 +1,39 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var stdin_exports = {};
29
+ __export(stdin_exports, {
30
+ TextEllipsis: () => TextEllipsis,
31
+ default: () => stdin_default,
32
+ textEllipsisProps: () => import_TextEllipsis2.textEllipsisProps
33
+ });
34
+ module.exports = __toCommonJS(stdin_exports);
35
+ var import_utils = require("../utils");
36
+ var import_TextEllipsis = __toESM(require("./TextEllipsis"));
37
+ var import_TextEllipsis2 = require("./TextEllipsis");
38
+ const TextEllipsis = (0, import_utils.withInstall)(import_TextEllipsis.default);
39
+ var stdin_default = TextEllipsis;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ require("../../style/base.css");
2
+ require("../index.css");
@@ -0,0 +1,3 @@
1
+ export declare type TextEllipsisThemeVars = {
2
+ textEllipsisActionColor?: string;
3
+ };
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var stdin_exports = {};
15
+ module.exports = __toCommonJS(stdin_exports);
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -0,0 +1,113 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ export declare type TimelineProcessOption = {
3
+ human: string;
4
+ avatar?: string;
5
+ department: string;
6
+ timestamp: string;
7
+ opinion: string;
8
+ stage: string;
9
+ action: string;
10
+ nextAction: string;
11
+ nextDepartment: string;
12
+ nextHuman: string;
13
+ folded?: boolean;
14
+ };
15
+ export declare const timelineProps: {
16
+ title: {
17
+ type: import("vue").PropType<string>;
18
+ default: string;
19
+ };
20
+ defaultFold: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ collapseCount: {
25
+ type: NumberConstructor;
26
+ default: number;
27
+ };
28
+ processes: {
29
+ type: import("vue").PropType<TimelineProcessOption[]>;
30
+ default: () => TimelineProcessOption[];
31
+ };
32
+ opinionKey: {
33
+ type: import("vue").PropType<string>;
34
+ default: string;
35
+ };
36
+ enableSingleFold: {
37
+ type: BooleanConstructor;
38
+ default: true;
39
+ };
40
+ dot: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ };
45
+ export declare type TimelineProps = ExtractPropTypes<typeof timelineProps>;
46
+ declare const _default: import("vue").DefineComponent<{
47
+ title: {
48
+ type: import("vue").PropType<string>;
49
+ default: string;
50
+ };
51
+ defaultFold: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ collapseCount: {
56
+ type: NumberConstructor;
57
+ default: number;
58
+ };
59
+ processes: {
60
+ type: import("vue").PropType<TimelineProcessOption[]>;
61
+ default: () => TimelineProcessOption[];
62
+ };
63
+ opinionKey: {
64
+ type: import("vue").PropType<string>;
65
+ default: string;
66
+ };
67
+ enableSingleFold: {
68
+ type: BooleanConstructor;
69
+ default: true;
70
+ };
71
+ dot: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
76
+ title: {
77
+ type: import("vue").PropType<string>;
78
+ default: string;
79
+ };
80
+ defaultFold: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ collapseCount: {
85
+ type: NumberConstructor;
86
+ default: number;
87
+ };
88
+ processes: {
89
+ type: import("vue").PropType<TimelineProcessOption[]>;
90
+ default: () => TimelineProcessOption[];
91
+ };
92
+ opinionKey: {
93
+ type: import("vue").PropType<string>;
94
+ default: string;
95
+ };
96
+ enableSingleFold: {
97
+ type: BooleanConstructor;
98
+ default: true;
99
+ };
100
+ dot: {
101
+ type: BooleanConstructor;
102
+ default: boolean;
103
+ };
104
+ }>>, {
105
+ title: string;
106
+ dot: boolean;
107
+ defaultFold: boolean;
108
+ collapseCount: number;
109
+ processes: TimelineProcessOption[];
110
+ opinionKey: string;
111
+ enableSingleFold: boolean;
112
+ }>;
113
+ export default _default;