zartui 3.0.6 → 3.0.8

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 (446) 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/calendar/Calendar.d.ts +23 -33
  5. package/es/calendar/Calendar.mjs +124 -31
  6. package/es/calendar/CalendarDay.mjs +1 -1
  7. package/es/calendar/CalendarHeader.d.ts +15 -1
  8. package/es/calendar/CalendarHeader.mjs +106 -4
  9. package/es/calendar/CalendarMonth.d.ts +23 -24
  10. package/es/calendar/CalendarMonth.mjs +49 -8
  11. package/es/calendar/index.css +1 -1
  12. package/es/calendar/index.d.ts +15 -22
  13. package/es/calendar/types.d.ts +3 -1
  14. package/es/calendar/utils.d.ts +4 -1
  15. package/es/calendar/utils.mjs +23 -3
  16. package/es/cascader/Cascader.mjs +1 -3
  17. package/es/cascader/index.css +1 -1
  18. package/es/checkbox/Checkbox.d.ts +1 -1
  19. package/es/checkbox/Checker.d.ts +2 -2
  20. package/es/checkbox/index.d.ts +1 -1
  21. package/es/collapse-item/CollapseItem.mjs +3 -1
  22. package/es/date-time-picker/DateTimePicker.d.ts +1 -1
  23. package/es/date-time-picker/DateTimePicker.mjs +9 -3
  24. package/es/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
  25. package/es/date-time-picker/index.d.ts +1 -1
  26. package/es/dialog/Dialog.d.ts +4 -0
  27. package/es/dialog/Dialog.mjs +24 -9
  28. package/es/dialog/index.css +1 -1
  29. package/es/dialog/index.d.ts +3 -0
  30. package/es/dialog/types.d.ts +1 -0
  31. package/es/divider/index.css +1 -1
  32. package/es/dropdown-item/DropdownItem.mjs +7 -4
  33. package/es/dropdown-menu/DropdownMenu.mjs +2 -2
  34. package/es/dropdown-menu/types.d.ts +1 -0
  35. package/es/empty/Images.mjs +9 -9
  36. package/es/empty/index.css +1 -1
  37. package/es/field/Field.d.ts +3 -0
  38. package/es/field/Field.mjs +2 -1
  39. package/es/field/index.d.ts +2 -0
  40. package/es/hierarchy-select/Breadcrumb.d.ts +43 -0
  41. package/es/hierarchy-select/Breadcrumb.mjs +56 -0
  42. package/es/hierarchy-select/HierarchySelect.d.ts +104 -0
  43. package/es/hierarchy-select/HierarchySelect.mjs +221 -0
  44. package/es/hierarchy-select/index.css +1 -0
  45. package/es/hierarchy-select/index.d.ts +79 -0
  46. package/es/hierarchy-select/index.mjs +8 -0
  47. package/es/hierarchy-select/style/index.d.ts +1 -0
  48. package/es/hierarchy-select/style/index.mjs +8 -0
  49. package/es/hierarchy-select/svg/SubIcon.d.ts +1 -0
  50. package/es/hierarchy-select/svg/SubIcon.mjs +33 -0
  51. package/es/hierarchy-select/types.d.ts +7 -0
  52. package/es/hierarchy-select/types.mjs +0 -0
  53. package/es/icon/config.mjs +4 -1
  54. package/es/icon/index.css +1 -1
  55. package/es/image-preview/ImagePreview.mjs +1 -1
  56. package/es/index-anchor/IndexAnchor.d.ts +11 -0
  57. package/es/index-anchor/IndexAnchor.mjs +88 -0
  58. package/es/index-anchor/index.css +1 -0
  59. package/es/index-anchor/index.d.ts +14 -0
  60. package/es/index-anchor/index.mjs +10 -0
  61. package/es/index-anchor/style/index.d.ts +1 -0
  62. package/es/index-anchor/style/index.mjs +3 -0
  63. package/es/index-anchor/types.d.ts +11 -0
  64. package/es/index-anchor/types.mjs +0 -0
  65. package/es/index-bar/IndexBar.d.ts +64 -0
  66. package/es/index-bar/IndexBar.mjs +275 -0
  67. package/es/index-bar/index.css +1 -0
  68. package/es/index-bar/index.d.ts +50 -0
  69. package/es/index-bar/index.mjs +10 -0
  70. package/es/index-bar/style/index.d.ts +1 -0
  71. package/es/index-bar/style/index.mjs +2 -0
  72. package/es/index-bar/types.d.ts +16 -0
  73. package/es/index-bar/types.mjs +0 -0
  74. package/es/index.d.ts +8 -1
  75. package/es/index.mjs +22 -1
  76. package/es/lazyload/vue-lazyload/index.mjs +5 -0
  77. package/es/lazyload/vue-lazyload/lazy.mjs +81 -0
  78. package/es/lazyload/vue-lazyload/listener.mjs +45 -0
  79. package/es/list/List.mjs +2 -4
  80. package/es/list/index.css +1 -1
  81. package/es/locale/lang/en-US.d.ts +7 -23
  82. package/es/locale/lang/en-US.mjs +7 -23
  83. package/es/locale/lang/zh-CN.d.ts +7 -23
  84. package/es/locale/lang/zh-CN.mjs +7 -23
  85. package/es/media-picker/MediaPicker.mjs +20 -0
  86. package/es/media-picker/image/PickFileIcon.mjs +1 -1
  87. package/es/media-picker/image/PickPhotoIcon.mjs +1 -1
  88. package/es/media-picker/image/TakeAudioIcon.mjs +1 -1
  89. package/es/media-picker/image/TakePhotoIcon.mjs +1 -1
  90. package/es/media-picker/image/TakeVideoIcon.mjs +1 -1
  91. package/es/media-picker/index.css +1 -1
  92. package/es/media-picker/util/media-util.mjs +3 -0
  93. package/es/media-picker/watermark/image-processor.mjs +10 -6
  94. package/es/media-picker/watermark/resize-options.mjs +1 -0
  95. package/es/media-picker/watermark/watermark.mjs +4 -0
  96. package/es/multiple-picker/MultiplePicker.d.ts +4 -4
  97. package/es/multiple-picker/MultiplePicker.mjs +3 -3
  98. package/es/multiple-picker/MultiplePickerOptions.d.ts +4 -4
  99. package/es/multiple-picker/MultiplePickerOptions.mjs +3 -3
  100. package/es/multiple-picker/index.d.ts +3 -3
  101. package/es/notice-bar/index.css +1 -1
  102. package/es/overlay/index.d.ts +1 -1
  103. package/es/picker/Picker.mjs +7 -4
  104. package/es/picker/PickerToolbar.mjs +1 -0
  105. package/es/popover/Popover.d.ts +13 -0
  106. package/es/popover/Popover.mjs +99 -4
  107. package/es/popover/index.css +1 -1
  108. package/es/popover/index.d.ts +9 -0
  109. package/es/popup/Popup.mjs +1 -0
  110. package/es/popup/index.css +1 -1
  111. package/es/popup/shared.mjs +12 -0
  112. package/es/radio/Radio.d.ts +1 -1
  113. package/es/radio/index.d.ts +1 -1
  114. package/es/rate/index.css +1 -1
  115. package/es/search/Search.d.ts +1 -1
  116. package/es/search/Search.mjs +1 -0
  117. package/es/search/index.d.ts +1 -1
  118. package/es/signature/Signature.mjs +13 -10
  119. package/es/signature/index.css +1 -1
  120. package/es/step/Step.mjs +10 -6
  121. package/es/step/index.css +1 -1
  122. package/es/stepper/Stepper.mjs +2 -0
  123. package/es/stepper/index.css +1 -1
  124. package/es/steps/index.css +1 -1
  125. package/es/sticky/Sticky.mjs +2 -0
  126. package/es/style/base.css +1 -1
  127. package/es/style/css-variables.css +1 -1
  128. package/es/swipe/Swipe.d.ts +3 -1
  129. package/es/swipe/Swipe.mjs +19 -2
  130. package/es/swipe/index.d.ts +3 -1
  131. package/es/swipe-cell/SwipeCell.d.ts +44 -0
  132. package/es/swipe-cell/SwipeCell.mjs +163 -0
  133. package/es/swipe-cell/index.css +1 -0
  134. package/es/swipe-cell/index.d.ts +39 -0
  135. package/es/swipe-cell/index.mjs +10 -0
  136. package/es/swipe-cell/style/index.d.ts +1 -0
  137. package/es/swipe-cell/style/index.mjs +2 -0
  138. package/es/swipe-cell/types.d.ts +9 -0
  139. package/es/swipe-cell/types.mjs +0 -0
  140. package/es/switch/index.css +1 -1
  141. package/es/tabbar-item/index.css +1 -1
  142. package/es/table/Table.d.ts +118 -0
  143. package/es/table/Table.mjs +209 -0
  144. package/es/table/index.css +1 -0
  145. package/es/table/index.d.ts +77 -0
  146. package/es/table/index.mjs +10 -0
  147. package/es/table/style/index.d.ts +1 -0
  148. package/es/table/style/index.mjs +4 -0
  149. package/es/table/types.d.ts +5 -0
  150. package/es/table/types.mjs +8 -0
  151. package/es/tabs/Tabs.mjs +2 -0
  152. package/es/tabs/index.css +1 -1
  153. package/es/tag/Tag.d.ts +21 -1
  154. package/es/tag/Tag.mjs +63 -10
  155. package/es/tag/index.css +1 -1
  156. package/es/tag/index.d.ts +15 -1
  157. package/es/tag/style/index.mjs +1 -0
  158. package/es/text-ellipsis/TextEllipsis.d.ts +76 -0
  159. package/es/text-ellipsis/TextEllipsis.mjs +118 -0
  160. package/es/text-ellipsis/index.css +1 -0
  161. package/es/text-ellipsis/index.d.ts +60 -0
  162. package/es/text-ellipsis/index.mjs +10 -0
  163. package/es/text-ellipsis/style/index.d.ts +1 -0
  164. package/es/text-ellipsis/style/index.mjs +2 -0
  165. package/es/text-ellipsis/types.d.ts +3 -0
  166. package/es/text-ellipsis/types.mjs +0 -0
  167. package/es/timeline/Timeline.d.ts +113 -0
  168. package/es/timeline/Timeline.mjs +162 -0
  169. package/es/timeline/index.css +1 -0
  170. package/es/timeline/index.d.ts +75 -0
  171. package/es/timeline/index.mjs +10 -0
  172. package/es/timeline/style/index.d.ts +1 -0
  173. package/es/timeline/style/index.mjs +4 -0
  174. package/es/uploader/Uploader.d.ts +1 -1
  175. package/es/uploader/UploaderPreviewItem.d.ts +1 -1
  176. package/es/uploader/index.d.ts +1 -1
  177. package/es/uploader/utils.mjs +1 -1
  178. package/es/utils/dom.d.ts +1 -0
  179. package/es/utils/dom.mjs +11 -0
  180. package/lib/action-sheet/index.js +4 -0
  181. package/lib/avatar/Avatar.js +4 -0
  182. package/lib/avatar/index.js +4 -0
  183. package/lib/badge/index.js +4 -0
  184. package/lib/button/Button.d.ts +3 -0
  185. package/lib/button/Button.js +2 -0
  186. package/lib/button/index.d.ts +2 -0
  187. package/lib/button/index.js +4 -0
  188. package/lib/calendar/Calendar.d.ts +23 -33
  189. package/lib/calendar/Calendar.js +127 -30
  190. package/lib/calendar/CalendarDay.js +1 -1
  191. package/lib/calendar/CalendarHeader.d.ts +15 -1
  192. package/lib/calendar/CalendarHeader.js +106 -4
  193. package/lib/calendar/CalendarMonth.d.ts +23 -24
  194. package/lib/calendar/CalendarMonth.js +52 -7
  195. package/lib/calendar/index.css +1 -1
  196. package/lib/calendar/index.d.ts +15 -22
  197. package/lib/calendar/index.js +4 -0
  198. package/lib/calendar/types.d.ts +3 -1
  199. package/lib/calendar/utils.d.ts +4 -1
  200. package/lib/calendar/utils.js +23 -3
  201. package/lib/cascader/Cascader.js +5 -3
  202. package/lib/cascader/index.css +1 -1
  203. package/lib/cascader/index.js +4 -0
  204. package/lib/cell/index.js +4 -0
  205. package/lib/cell-group/index.js +4 -0
  206. package/lib/checkbox/Checkbox.d.ts +1 -1
  207. package/lib/checkbox/Checkbox.js +4 -0
  208. package/lib/checkbox/Checker.d.ts +2 -2
  209. package/lib/checkbox/index.d.ts +1 -1
  210. package/lib/checkbox/index.js +4 -0
  211. package/lib/checkbox-group/index.js +4 -0
  212. package/lib/col/index.js +4 -0
  213. package/lib/collapse/index.js +4 -0
  214. package/lib/collapse-item/CollapseItem.js +7 -1
  215. package/lib/collapse-item/index.js +4 -0
  216. package/lib/config-provider/index.js +4 -0
  217. package/lib/date-time-picker/DateTimePicker.d.ts +1 -1
  218. package/lib/date-time-picker/DateTimePicker.js +13 -3
  219. package/lib/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
  220. package/lib/date-time-picker/DateTimePickerWrapper.js +4 -0
  221. package/lib/date-time-picker/index.d.ts +1 -1
  222. package/lib/date-time-picker/index.js +4 -0
  223. package/lib/dialog/Dialog.d.ts +4 -0
  224. package/lib/dialog/Dialog.js +24 -9
  225. package/lib/dialog/function-call.js +4 -0
  226. package/lib/dialog/index.css +1 -1
  227. package/lib/dialog/index.d.ts +3 -0
  228. package/lib/dialog/index.js +4 -0
  229. package/lib/dialog/types.d.ts +1 -0
  230. package/lib/divider/index.css +1 -1
  231. package/lib/divider/index.js +4 -0
  232. package/lib/dropdown-item/DropdownItem.js +6 -3
  233. package/lib/dropdown-item/index.js +4 -0
  234. package/lib/dropdown-menu/DropdownMenu.js +6 -2
  235. package/lib/dropdown-menu/index.js +4 -0
  236. package/lib/dropdown-menu/types.d.ts +1 -0
  237. package/lib/empty/Images.js +9 -9
  238. package/lib/empty/index.css +1 -1
  239. package/lib/empty/index.js +4 -0
  240. package/lib/field/Field.d.ts +3 -0
  241. package/lib/field/Field.js +2 -1
  242. package/lib/field/index.d.ts +2 -0
  243. package/lib/field/index.js +4 -0
  244. package/lib/form/index.js +4 -0
  245. package/lib/grid/index.js +4 -0
  246. package/lib/grid-item/index.js +4 -0
  247. package/lib/hierarchy-select/Breadcrumb.d.ts +43 -0
  248. package/lib/hierarchy-select/Breadcrumb.js +85 -0
  249. package/lib/hierarchy-select/HierarchySelect.d.ts +104 -0
  250. package/lib/hierarchy-select/HierarchySelect.js +250 -0
  251. package/lib/hierarchy-select/index.css +1 -0
  252. package/lib/hierarchy-select/index.d.ts +79 -0
  253. package/lib/hierarchy-select/index.js +37 -0
  254. package/lib/hierarchy-select/style/index.d.ts +1 -0
  255. package/lib/hierarchy-select/style/index.js +8 -0
  256. package/lib/hierarchy-select/svg/SubIcon.d.ts +1 -0
  257. package/lib/hierarchy-select/svg/SubIcon.js +52 -0
  258. package/lib/hierarchy-select/types.d.ts +7 -0
  259. package/lib/hierarchy-select/types.js +15 -0
  260. package/lib/icon/config.js +4 -1
  261. package/lib/icon/index.css +1 -1
  262. package/lib/icon/index.js +4 -0
  263. package/lib/image/index.js +4 -0
  264. package/lib/image-preview/ImagePreview.js +5 -1
  265. package/lib/image-preview/function-call.js +4 -0
  266. package/lib/image-preview/index.js +4 -0
  267. package/lib/index-anchor/IndexAnchor.d.ts +11 -0
  268. package/lib/index-anchor/IndexAnchor.js +107 -0
  269. package/lib/index-anchor/index.css +1 -0
  270. package/lib/index-anchor/index.d.ts +14 -0
  271. package/lib/index-anchor/index.js +39 -0
  272. package/lib/index-anchor/style/index.d.ts +1 -0
  273. package/lib/index-anchor/style/index.js +3 -0
  274. package/lib/index-anchor/types.d.ts +11 -0
  275. package/lib/index-anchor/types.js +15 -0
  276. package/lib/index-bar/IndexBar.d.ts +64 -0
  277. package/lib/index-bar/IndexBar.js +294 -0
  278. package/lib/index-bar/index.css +1 -0
  279. package/lib/index-bar/index.d.ts +50 -0
  280. package/lib/index-bar/index.js +39 -0
  281. package/lib/index-bar/style/index.d.ts +1 -0
  282. package/lib/index-bar/style/index.js +2 -0
  283. package/lib/index-bar/types.d.ts +16 -0
  284. package/lib/index-bar/types.js +15 -0
  285. package/lib/index.css +1 -1
  286. package/lib/index.d.ts +8 -1
  287. package/lib/index.js +22 -1
  288. package/lib/lazyload/vue-lazyload/index.js +9 -0
  289. package/lib/lazyload/vue-lazyload/lazy.js +85 -0
  290. package/lib/lazyload/vue-lazyload/listener.js +45 -0
  291. package/lib/list/List.js +2 -4
  292. package/lib/list/index.css +1 -1
  293. package/lib/list/index.js +4 -0
  294. package/lib/loading/index.js +4 -0
  295. package/lib/locale/index.js +4 -0
  296. package/lib/locale/lang/en-US.d.ts +7 -23
  297. package/lib/locale/lang/en-US.js +7 -23
  298. package/lib/locale/lang/zh-CN.d.ts +7 -23
  299. package/lib/locale/lang/zh-CN.js +7 -23
  300. package/lib/media-picker/MediaPicker.js +24 -0
  301. package/lib/media-picker/image/PickFileIcon.js +1 -1
  302. package/lib/media-picker/image/PickPhotoIcon.js +1 -1
  303. package/lib/media-picker/image/TakeAudioIcon.js +1 -1
  304. package/lib/media-picker/image/TakePhotoIcon.js +1 -1
  305. package/lib/media-picker/image/TakeVideoIcon.js +1 -1
  306. package/lib/media-picker/index.css +1 -1
  307. package/lib/media-picker/index.js +4 -0
  308. package/lib/media-picker/util/media-util.js +3 -0
  309. package/lib/media-picker/watermark/image-processor.js +10 -6
  310. package/lib/media-picker/watermark/resize-options.js +1 -0
  311. package/lib/media-picker/watermark/watermark.js +4 -0
  312. package/lib/media-player/MediaPlayer.js +4 -0
  313. package/lib/media-player/index.js +4 -0
  314. package/lib/multiple-picker/MultiplePicker.d.ts +4 -4
  315. package/lib/multiple-picker/MultiplePicker.js +7 -3
  316. package/lib/multiple-picker/MultiplePickerOptions.d.ts +4 -4
  317. package/lib/multiple-picker/MultiplePickerOptions.js +3 -3
  318. package/lib/multiple-picker/index.d.ts +3 -3
  319. package/lib/multiple-picker/index.js +4 -0
  320. package/lib/nav-bar/index.js +4 -0
  321. package/lib/notice-bar/NoticeBar.js +4 -0
  322. package/lib/notice-bar/index.css +1 -1
  323. package/lib/notice-bar/index.js +4 -0
  324. package/lib/notify/function-call.js +4 -0
  325. package/lib/notify/index.js +4 -0
  326. package/lib/number-keyboard/NumberKeyboard.js +4 -0
  327. package/lib/number-keyboard/NumberKeyboardKey.js +4 -0
  328. package/lib/number-keyboard/index.js +4 -0
  329. package/lib/overlay/index.d.ts +1 -1
  330. package/lib/overlay/index.js +4 -0
  331. package/lib/password-input/index.js +4 -0
  332. package/lib/picker/Picker.js +10 -3
  333. package/lib/picker/PickerToolbar.js +1 -0
  334. package/lib/picker/index.js +4 -0
  335. package/lib/popover/Popover.d.ts +13 -0
  336. package/lib/popover/Popover.js +98 -3
  337. package/lib/popover/index.css +1 -1
  338. package/lib/popover/index.d.ts +9 -0
  339. package/lib/popover/index.js +4 -0
  340. package/lib/popup/Popup.js +1 -0
  341. package/lib/popup/index.css +1 -1
  342. package/lib/popup/index.js +4 -0
  343. package/lib/popup/shared.js +12 -0
  344. package/lib/pull-refresh/index.js +4 -0
  345. package/lib/radio/Radio.d.ts +1 -1
  346. package/lib/radio/Radio.js +4 -0
  347. package/lib/radio/index.d.ts +1 -1
  348. package/lib/radio/index.js +4 -0
  349. package/lib/radio-group/index.js +4 -0
  350. package/lib/rate/index.css +1 -1
  351. package/lib/rate/index.js +4 -0
  352. package/lib/row/index.js +4 -0
  353. package/lib/search/Search.d.ts +1 -1
  354. package/lib/search/Search.js +1 -0
  355. package/lib/search/index.d.ts +1 -1
  356. package/lib/search/index.js +4 -0
  357. package/lib/signature/Signature.js +16 -9
  358. package/lib/signature/index.css +1 -1
  359. package/lib/signature/index.js +4 -0
  360. package/lib/skeleton/index.js +4 -0
  361. package/lib/step/Step.js +10 -6
  362. package/lib/step/index.css +1 -1
  363. package/lib/step/index.js +4 -0
  364. package/lib/stepper/Stepper.js +6 -0
  365. package/lib/stepper/index.css +1 -1
  366. package/lib/stepper/index.js +4 -0
  367. package/lib/steps/index.css +1 -1
  368. package/lib/steps/index.js +4 -0
  369. package/lib/sticky/Sticky.js +2 -0
  370. package/lib/sticky/index.js +4 -0
  371. package/lib/style/base.css +1 -1
  372. package/lib/style/css-variables.css +1 -1
  373. package/lib/swipe/Swipe.d.ts +3 -1
  374. package/lib/swipe/Swipe.js +19 -2
  375. package/lib/swipe/index.d.ts +3 -1
  376. package/lib/swipe/index.js +4 -0
  377. package/lib/swipe-cell/SwipeCell.d.ts +44 -0
  378. package/lib/swipe-cell/SwipeCell.js +182 -0
  379. package/lib/swipe-cell/index.css +1 -0
  380. package/lib/swipe-cell/index.d.ts +39 -0
  381. package/lib/swipe-cell/index.js +39 -0
  382. package/lib/swipe-cell/style/index.d.ts +1 -0
  383. package/lib/swipe-cell/style/index.js +2 -0
  384. package/lib/swipe-cell/types.d.ts +9 -0
  385. package/lib/swipe-cell/types.js +15 -0
  386. package/lib/swipe-item/index.js +4 -0
  387. package/lib/switch/index.css +1 -1
  388. package/lib/switch/index.js +4 -0
  389. package/lib/tab/index.js +4 -0
  390. package/lib/tabbar/index.js +4 -0
  391. package/lib/tabbar-item/index.css +1 -1
  392. package/lib/tabbar-item/index.js +4 -0
  393. package/lib/table/Table.d.ts +118 -0
  394. package/lib/table/Table.js +228 -0
  395. package/lib/table/index.css +1 -0
  396. package/lib/table/index.d.ts +77 -0
  397. package/lib/table/index.js +39 -0
  398. package/lib/table/style/index.d.ts +1 -0
  399. package/lib/table/style/index.js +4 -0
  400. package/lib/table/types.d.ts +5 -0
  401. package/lib/table/types.js +27 -0
  402. package/lib/tabs/Tabs.js +6 -0
  403. package/lib/tabs/index.css +1 -1
  404. package/lib/tabs/index.js +4 -0
  405. package/lib/tag/Tag.d.ts +21 -1
  406. package/lib/tag/Tag.js +73 -10
  407. package/lib/tag/index.css +1 -1
  408. package/lib/tag/index.d.ts +15 -1
  409. package/lib/tag/index.js +4 -0
  410. package/lib/tag/style/index.js +1 -0
  411. package/lib/text-ellipsis/TextEllipsis.d.ts +76 -0
  412. package/lib/text-ellipsis/TextEllipsis.js +137 -0
  413. package/lib/text-ellipsis/index.css +1 -0
  414. package/lib/text-ellipsis/index.d.ts +60 -0
  415. package/lib/text-ellipsis/index.js +39 -0
  416. package/lib/text-ellipsis/style/index.d.ts +1 -0
  417. package/lib/text-ellipsis/style/index.js +2 -0
  418. package/lib/text-ellipsis/types.d.ts +3 -0
  419. package/lib/text-ellipsis/types.js +15 -0
  420. package/lib/time-picker/TimePicker.js +4 -0
  421. package/lib/time-picker/TimePickerColumn.js +4 -0
  422. package/lib/time-picker/index.js +4 -0
  423. package/lib/timeline/Timeline.d.ts +113 -0
  424. package/lib/timeline/Timeline.js +191 -0
  425. package/lib/timeline/index.css +1 -0
  426. package/lib/timeline/index.d.ts +75 -0
  427. package/lib/timeline/index.js +39 -0
  428. package/lib/timeline/style/index.d.ts +1 -0
  429. package/lib/timeline/style/index.js +4 -0
  430. package/lib/toast/function-call.js +4 -0
  431. package/lib/toast/index.js +4 -0
  432. package/lib/uploader/Uploader.d.ts +1 -1
  433. package/lib/uploader/Uploader.js +4 -0
  434. package/lib/uploader/UploaderPreviewItem.d.ts +1 -1
  435. package/lib/uploader/index.d.ts +1 -1
  436. package/lib/uploader/index.js +4 -0
  437. package/lib/uploader/utils.js +1 -1
  438. package/lib/utils/create.js +4 -0
  439. package/lib/utils/dom.d.ts +1 -0
  440. package/lib/utils/dom.js +11 -0
  441. package/lib/web-types.json +1 -1
  442. package/lib/zartui.cjs.js +3054 -1076
  443. package/lib/zartui.es.js +3102 -1124
  444. package/lib/zartui.js +3817 -1303
  445. package/lib/zartui.min.js +1 -1
  446. package/package.json +18 -17
@@ -7,6 +7,7 @@ import { Button } from "../button/index.mjs";
7
7
  const [name, bem, t] = createNamespace("dialog");
8
8
  const dialogProps = extend({}, popupSharedProps, {
9
9
  title: String,
10
+ primaryHeader: Boolean,
10
11
  theme: String,
11
12
  width: numericProp,
12
13
  message: [String, Function],
@@ -84,12 +85,21 @@ var stdin_default = defineComponent({
84
85
  const renderTitle = () => {
85
86
  const title = slots.title ? slots.title() : props.title;
86
87
  if (title) {
87
- return _createVNode("div", {
88
- "class": bem("header", {
89
- isolated: !props.message && !slots.default,
90
- "custom-title": !!slots.title
91
- })
92
- }, [title]);
88
+ return (
89
+ // <div
90
+ // class={bem(['header', props.titleType, {
91
+ // isolated: !props.message && !slots.default,
92
+ // 'custom-title': !!slots.title,
93
+ // }])}
94
+ // >
95
+ _createVNode("div", {
96
+ "class": bem("header", {
97
+ isolated: !props.message && !slots.default,
98
+ "custom-title": !!slots.title,
99
+ primary: props.primaryHeader
100
+ })
101
+ }, [title])
102
+ );
93
103
  }
94
104
  };
95
105
  const renderMessage = (hasTitle) => {
@@ -98,10 +108,15 @@ var stdin_default = defineComponent({
98
108
  allowHtml,
99
109
  messageAlign
100
110
  } = props;
101
- const classNames = bem("message", {
102
- "has-title": hasTitle,
111
+ const mods = {
103
112
  [messageAlign]: messageAlign
104
- });
113
+ };
114
+ if (props.primaryHeader) {
115
+ mods["primary-header"] = props.primaryHeader;
116
+ } else if (hasTitle) {
117
+ mods["has-title"] = hasTitle;
118
+ }
119
+ const classNames = bem("message", mods);
105
120
  const content = isFunction(message) ? message() : message;
106
121
  if (allowHtml && typeof content === "string") {
107
122
  return _createVNode("div", {
@@ -1 +1 @@
1
- :root{--zt-dialog-width: 350px;--zt-dialog-max-width: 90%;--zt-dialog-font-size: var(--zt-font-size-lg);--zt-dialog-transition: var(--zt-duration-base);--zt-dialog-radius: 12px;--zt-dialog-background: var(--zt-background-2);--zt-dialog-header-font-weight: var(--zt-font-bold);--zt-dialog-header-line-height: 24px;--zt-dialog-header-padding-top: 24px;--zt-dialog-header-isolated-padding: var(--zt-padding-lg) 0;--zt-dialog-message-padding: var(--zt-padding-lg) var(--zt-padding-md);--zt-dialog-message-font-size: var(--zt-font-size-lg);--zt-dialog-message-line-height: var(--zt-line-height-md);--zt-dialog-message-max-height: 60vh;--zt-dialog-has-title-message-font-size: var(--zt-font-size-md);--zt-dialog-has-title-message-text-color: var(--zt-gray-a6);--zt-dialog-has-title-message-padding-top: var(--zt-padding-xs);--zt-dialog-confirm-button-text-color: var(--zt-white);--zt-dialog-cancel-button-background-color: var(--zt-white);--zt-dialog-cancel-button-border: 0}.zt-dialog{top:45%;width:var(--zt-dialog-width);max-width:var(--zt-dialog-max-width);overflow:hidden;font-size:var(--zt-dialog-font-size);background:var(--zt-dialog-background);border-radius:var(--zt-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--zt-dialog-transition);transition-property:transform,opacity}.zt-dialog__header{color:var(--zt-text-color);padding-top:var(--zt-dialog-header-padding-top);font-weight:var(--zt-dialog-header-font-weight);line-height:var(--zt-dialog-header-line-height);text-align:center}.zt-dialog__header--isolated{padding:var(--zt-dialog-header-isolated-padding)}.zt-dialog__header--custom-title{padding-left:0;padding-right:0;padding-top:0}.zt-dialog__content{text-align:center;font-size:0}.zt-dialog__message{display:inline-block;color:var(--zt-gray-a8);max-height:var(--zt-dialog-message-max-height);padding:var(--zt-dialog-message-padding);overflow-y:auto;font-size:var(--zt-dialog-message-font-size);line-height:var(--zt-dialog-message-line-height);white-space:pre-wrap;text-align:left;word-wrap:break-word;-webkit-overflow-scrolling:touch}.zt-dialog__message--has-title{padding-top:var(--zt-dialog-has-title-message-padding-top);color:var(--zt-dialog-has-title-message-text-color);font-size:var(--zt-dialog-has-title-message-font-size)}.zt-dialog__message--left{text-align:left}.zt-dialog__message--right{text-align:right}.zt-dialog__message--justify{text-align:justify}.zt-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none;margin:0 var(--zt-padding-xl) var(--zt-padding-lg)}.zt-dialog__confirm,.zt-dialog__cancel{flex:1;margin:0;border:var(--zt-dialog-cancel-button-border);background-color:var(--zt-dialog-cancel-button-background-color)}.zt-dialog__confirm,.zt-dialog__confirm:active{color:var(--zt-dialog-confirm-button-text-color)}.zt-dialog__confirm--with-cancel{margin-left:8px}.zt-dialog--round-button .zt-dialog__footer{position:relative;height:auto;padding:var(--zt-padding-xs) var(--zt-padding-lg) var(--zt-padding-md)}.zt-dialog--round-button .zt-dialog__message{padding-bottom:var(--zt-padding-md);color:var(--zt-text-color)}.zt-dialog--round-button .zt-dialog__confirm,.zt-dialog--round-button .zt-dialog__cancel{height:var(--zt-dialog-round-button-height)}.zt-dialog--round-button .zt-dialog__confirm{color:var(--zt-white)}.zt-dialog-bounce-enter-from{transform:translate3d(-50%,-50%,0) scale(.7);opacity:0}.zt-dialog-bounce-leave-active{transform:translate3d(-50%,-50%,0) scale(.9);opacity:0}.zt-theme-dark{--zt-dialog-cancel-button-border: .5px solid rgba(255, 255, 255, .2);--zt-dialog-cancel-button-background-color: rbga(255, 255, 255, .2)}
1
+ :root{--zt-dialog-width: 350px;--zt-dialog-max-width: 90%;--zt-dialog-font-size: var(--zt-font-size-lg);--zt-dialog-transition: var(--zt-duration-base);--zt-dialog-radius: 12px;--zt-dialog-background: var(--zt-background-2);--zt-dialog-header-font-weight: var(--zt-font-bold);--zt-dialog-header-line-height: 24px;--zt-dialog-header-padding-top: 24px;--zt-dialog-header-isolated-padding: var(--zt-padding-lg) 0;--zt-dialog-header-primary-padding: 10px;--zt-dialog-message-padding: var(--zt-padding-lg) var(--zt-padding-md);--zt-dialog-message-font-size: var(--zt-font-size-lg);--zt-dialog-message-line-height: var(--zt-line-height-md);--zt-dialog-message-max-height: 60vh;--zt-dialog-has-title-message-font-size: var(--zt-font-size-md);--zt-dialog-has-title-message-text-color: var(--zt-gray-a6);--zt-dialog-has-title-message-padding-top: var(--zt-padding-xs);--zt-dialog-has-title-message-primary-header: var(--zt-padding-lg);--zt-dialog-confirm-button-text-color: var(--zt-white);--zt-dialog-cancel-button-background-color: var(--zt-white);--zt-dialog-cancel-button-border: 0}.zt-dialog{top:45%;width:var(--zt-dialog-width);max-width:var(--zt-dialog-max-width);overflow:hidden;font-size:var(--zt-dialog-font-size);background:var(--zt-dialog-background);border-radius:var(--zt-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--zt-dialog-transition);transition-property:transform,opacity}.zt-dialog__header{color:var(--zt-text-color);padding-top:var(--zt-dialog-header-padding-top);font-weight:var(--zt-dialog-header-font-weight);line-height:var(--zt-dialog-header-line-height);text-align:center}.zt-dialog__header--isolated{padding:var(--zt-dialog-header-isolated-padding)}.zt-dialog__header--custom-title{padding-left:0;padding-right:0;padding-top:0}.zt-dialog__header--primary{padding:var(--zt-dialog-header-primary-padding);background:var(--zt-primary-color);color:var(--zt-white)}.zt-dialog__content{text-align:center;font-size:0}.zt-dialog__message{display:inline-block;color:var(--zt-gray-a8);max-height:var(--zt-dialog-message-max-height);padding:var(--zt-dialog-message-padding);overflow-y:auto;font-size:var(--zt-dialog-message-font-size);line-height:var(--zt-dialog-message-line-height);white-space:pre-wrap;text-align:left;word-wrap:break-word;-webkit-overflow-scrolling:touch}.zt-dialog__message--has-title{padding-top:var(--zt-dialog-has-title-message-padding-top);color:var(--zt-dialog-has-title-message-text-color);font-size:var(--zt-dialog-has-title-message-font-size)}.zt-dialog__message--primary-header{padding-top:var(--zt-dialog-has-title-message-primary-header)}.zt-dialog__message--left{text-align:left}.zt-dialog__message--right{text-align:right}.zt-dialog__message--justify{text-align:justify}.zt-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none;margin:0 var(--zt-padding-xl) var(--zt-padding-lg)}.zt-dialog__confirm,.zt-dialog__cancel{flex:1;margin:0;border-width:var(--zt-dialog-cancel-button-border);background-color:var(--zt-dialog-cancel-button-background-color)}.zt-dialog__confirm,.zt-dialog__confirm:active{color:var(--zt-dialog-confirm-button-text-color)}.zt-dialog__confirm--with-cancel{margin-left:8px}.zt-dialog--round-button .zt-dialog__footer{position:relative;height:auto;padding:var(--zt-padding-xs) var(--zt-padding-lg) var(--zt-padding-md)}.zt-dialog--round-button .zt-dialog__message{padding-bottom:var(--zt-padding-md);color:var(--zt-text-color)}.zt-dialog--round-button .zt-dialog__confirm,.zt-dialog--round-button .zt-dialog__cancel{height:var(--zt-dialog-round-button-height)}.zt-dialog--round-button .zt-dialog__confirm{color:var(--zt-white)}.zt-dialog-bounce-enter-from{transform:translate3d(-50%,-50%,0) scale(.7);opacity:0}.zt-dialog-bounce-leave-active{transform:translate3d(-50%,-50%,0) scale(.9);opacity:0}.zt-theme-dark{--zt-dialog-cancel-button-border: .5px solid rgba(255, 255, 255, .2);--zt-dialog-cancel-button-background-color: rbga(255, 255, 255, .2)}
@@ -25,6 +25,7 @@ export declare const Dialog: import("../utils").WithInstall<import("vue").Define
25
25
  };
26
26
  } & {
27
27
  title: StringConstructor;
28
+ primaryHeader: BooleanConstructor;
28
29
  theme: import("vue").PropType<import("./types").DialogTheme>;
29
30
  width: (NumberConstructor | StringConstructor)[];
30
31
  message: import("vue").PropType<import("./types").DialogMessage>;
@@ -79,6 +80,7 @@ export declare const Dialog: import("../utils").WithInstall<import("vue").Define
79
80
  };
80
81
  } & {
81
82
  title: StringConstructor;
83
+ primaryHeader: BooleanConstructor;
82
84
  theme: import("vue").PropType<import("./types").DialogTheme>;
83
85
  width: (NumberConstructor | StringConstructor)[];
84
86
  message: import("vue").PropType<import("./types").DialogMessage>;
@@ -121,6 +123,7 @@ export declare const Dialog: import("../utils").WithInstall<import("vue").Define
121
123
  transition: string;
122
124
  closeOnPopstate: boolean;
123
125
  allowHtml: boolean;
126
+ primaryHeader: boolean;
124
127
  showCancelButton: boolean;
125
128
  cancelButtonDisabled: boolean;
126
129
  confirmButtonDisabled: boolean;
@@ -6,6 +6,7 @@ export declare type DialogMessage = string | (() => JSX.Element);
6
6
  export declare type DialogMessageAlign = 'left' | 'center' | 'right' | 'justify';
7
7
  export declare type DialogOptions = {
8
8
  title?: string;
9
+ primaryHeader?: boolean;
9
10
  width?: Numeric;
10
11
  theme?: DialogTheme;
11
12
  message?: DialogMessage;
@@ -1 +1 @@
1
- :root{--zt-divider-margin: var(--zt-padding-md) 0;--zt-divider-text-color: var(--zt-text-color-2);--zt-divider-font-size: var(--zt-font-size-md);--zt-divider-line-height: 24px;--zt-divider-border-color: var(--zt-border-color);--zt-divider-content-padding: var(--zt-padding-md);--zt-divider-content-left-width: 10%;--zt-divider-content-right-width: 10%}.zt-divider{display:flex;align-items:center;margin:var(--zt-divider-margin);color:var(--zt-divider-text-color);font-size:var(--zt-divider-font-size);line-height:var(--zt-divider-line-height);border-color:var(--zt-divider-border-color);border-style:solid;border-width:0}.zt-divider:before,.zt-divider:after{display:block;flex:1;box-sizing:border-box;height:1px;border-color:inherit;border-style:inherit;border-width:var(--zt-border-width) 0 0}.zt-divider:before{content:""}.zt-divider--hairline:before,.zt-divider--hairline:after{transform:scaleY(.5)}.zt-divider--dashed{border-style:dashed}.zt-divider--content-center:before,.zt-divider--content-left:before,.zt-divider--content-right:before{margin-right:var(--zt-divider-content-padding)}.zt-divider--content-center:after,.zt-divider--content-left:after,.zt-divider--content-right:after{margin-left:var(--zt-divider-content-padding);content:""}.zt-divider--content-left:before{max-width:var(--zt-divider-content-left-width)}.zt-divider--content-right:after{max-width:var(--zt-divider-content-right-width)}
1
+ :root{--zt-divider-margin: var(--zt-padding-md) 0;--zt-divider-text-color: var(--zt-gray-a4);--zt-divider-font-size: var(--zt-font-size-md);--zt-divider-line-height: 24px;--zt-divider-border-color: var(--zt-border-color);--zt-divider-content-padding: var(--zt-padding-md);--zt-divider-content-left-width: 10%;--zt-divider-content-right-width: 10%}.zt-divider{display:flex;align-items:center;margin:var(--zt-divider-margin);color:var(--zt-divider-text-color);font-size:var(--zt-divider-font-size);line-height:var(--zt-divider-line-height);border-color:var(--zt-divider-border-color);border-style:solid;border-width:0}.zt-divider:before,.zt-divider:after{display:block;flex:1;box-sizing:border-box;height:1px;border-color:inherit;border-style:inherit;border-width:var(--zt-border-width) 0 0}.zt-divider:before{content:""}.zt-divider--hairline:before,.zt-divider--hairline:after{transform:scaleY(.5)}.zt-divider--dashed{border-style:dashed}.zt-divider--content-center:before,.zt-divider--content-left:before,.zt-divider--content-right:before{margin-right:var(--zt-divider-content-padding)}.zt-divider--content-center:after,.zt-divider--content-left:after,.zt-divider--content-right:after{margin-left:var(--zt-divider-content-padding);content:""}.zt-divider--content-left:before{max-width:var(--zt-divider-content-left-width)}.zt-divider--content-right:after{max-width:var(--zt-divider-content-right-width)}
@@ -1,4 +1,4 @@
1
- import { createTextVNode as _createTextVNode, withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode } from "vue";
1
+ import { mergeProps as _mergeProps, createTextVNode as _createTextVNode, withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode } from "vue";
2
2
  import { reactive, Teleport, defineComponent } from "vue";
3
3
  import { truthProp, unknownProp, getZIndexStyle, createNamespace, makeArrayProp, HAPTICS_FEEDBACK } from "../utils/index.mjs";
4
4
  import { DROPDOWN_KEY } from "../dropdown-menu/DropdownMenu.mjs";
@@ -23,11 +23,13 @@ const dropdownItemProps = {
23
23
  };
24
24
  var stdin_default = defineComponent({
25
25
  name,
26
+ inheritAttrs: false,
26
27
  props: dropdownItemProps,
27
28
  emits: ["open", "opened", "close", "closed", "change", "update:modelValue", "reset", "confirm"],
28
29
  setup(props, {
29
30
  emit,
30
- slots
31
+ slots,
32
+ attrs
31
33
  }) {
32
34
  const state = reactive({
33
35
  showPopup: false,
@@ -87,6 +89,7 @@ var stdin_default = defineComponent({
87
89
  state.showPopup = show;
88
90
  state.transition = !options.immediate;
89
91
  if (show) {
92
+ parent.updateOffset();
90
93
  state.showWrapper = true;
91
94
  }
92
95
  };
@@ -233,11 +236,11 @@ var stdin_default = defineComponent({
233
236
  buttonStyle.top = `176px`;
234
237
  }
235
238
  }
236
- return _withDirectives(_createVNode("div", {
239
+ return _withDirectives(_createVNode("div", _mergeProps({
237
240
  "style": style,
238
241
  "class": bem([direction]),
239
242
  "onClick": onClickWrapper
240
- }, [_createVNode(Popup, {
243
+ }, attrs), [_createVNode(Popup, {
241
244
  "show": state.showPopup,
242
245
  "onUpdate:show": ($event) => state.showPopup = $event,
243
246
  "role": "menu",
@@ -63,7 +63,6 @@ var stdin_default = defineComponent({
63
63
  const toggleItem = (active) => {
64
64
  children.forEach((item, index) => {
65
65
  if (index === active) {
66
- updateOffset();
67
66
  item.toggle();
68
67
  } else if (item.state.showPopup) {
69
68
  item.toggle(false, {
@@ -113,7 +112,8 @@ var stdin_default = defineComponent({
113
112
  linkChildren({
114
113
  id,
115
114
  props,
116
- offset
115
+ offset,
116
+ updateOffset
117
117
  });
118
118
  useClickAway(root, onClickAway);
119
119
  useEventListener("scroll", onScroll, {
@@ -5,4 +5,5 @@ export declare type DropdownMenuProvide = {
5
5
  id: string;
6
6
  props: DropdownMenuProps;
7
7
  offset: Ref<number>;
8
+ updateOffset: () => void;
8
9
  };
@@ -86,7 +86,7 @@ const renderNotFound = () => _createVNode("svg", {
86
86
  "fill": "none",
87
87
  "fill-rule": "evenodd"
88
88
  }, [_createVNode("path", {
89
- "fill": "#E6F5FF",
89
+ "fill": "currentColor",
90
90
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z",
91
91
  "transform": "translate(20 20)"
92
92
  }, null), _createVNode("path", {
@@ -209,7 +209,7 @@ const renderServerError = () => _createVNode("svg", {
209
209
  "fill": "none",
210
210
  "fill-rule": "evenodd"
211
211
  }, [_createVNode("path", {
212
- "fill": "#E6F5FF",
212
+ "fill": "currentColor",
213
213
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z",
214
214
  "transform": "translate(20 20)"
215
215
  }, null), _createVNode("path", {
@@ -300,7 +300,7 @@ const renderAccessRestricted = () => _createVNode("svg", {
300
300
  "fill": "none",
301
301
  "fill-rule": "evenodd"
302
302
  }, [_createVNode("path", {
303
- "fill": "#E6F5FF",
303
+ "fill": "currentColor",
304
304
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
305
305
  }, null), _createVNode("path", {
306
306
  "d": "M88,80 L114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C83.581722,128 80,124.418278 80,120 L80,88 C80,83.581722 83.581722,80 88,80 Z",
@@ -431,7 +431,7 @@ const renderDeveloping = () => _createVNode("svg", {
431
431
  "fill": "none",
432
432
  "fill-rule": "evenodd"
433
433
  }, [_createVNode("path", {
434
- "fill": "#E6F5FF",
434
+ "fill": "currentColor",
435
435
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z",
436
436
  "transform": "translate(20 20)"
437
437
  }, null), _createVNode("path", {
@@ -530,7 +530,7 @@ const renderNetworkError = () => _createVNode("svg", {
530
530
  "fill": "none",
531
531
  "fill-rule": "evenodd"
532
532
  }, [_createVNode("path", {
533
- "fill": "#E6F5FF",
533
+ "fill": "currentColor",
534
534
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
535
535
  }, null), _createVNode("path", {
536
536
  "d": "M88,80 L114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C83.581722,128 80,124.418278 80,120 L80,88 C80,83.581722 83.581722,80 88,80 Z",
@@ -616,7 +616,7 @@ const renderEmptyResult = () => _createVNode("svg", {
616
616
  "fill": "none",
617
617
  "fill-rule": "evenodd"
618
618
  }, [_createVNode("path", {
619
- "fill": "#E6F5FF",
619
+ "fill": "currentColor",
620
620
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
621
621
  }, null), _createVNode("path", {
622
622
  "d": "M88,80 L114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C83.581722,128 80,124.418278 80,120 L80,88 C80,83.581722 83.581722,80 88,80 Z",
@@ -702,7 +702,7 @@ const renderFindNull = () => _createVNode("svg", {
702
702
  "fill": "none",
703
703
  "fill-rule": "evenodd"
704
704
  }, [_createVNode("path", {
705
- "fill": "#E6F5FF",
705
+ "fill": "currentColor",
706
706
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
707
707
  }, null), _createVNode("path", {
708
708
  "d": "M88,80 L114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C83.581722,128 80,124.418278 80,120 L80,88 C80,83.581722 83.581722,80 88,80 Z",
@@ -788,7 +788,7 @@ const renderEmptyInterface = () => _createVNode("svg", {
788
788
  "fill": "none",
789
789
  "fill-rule": "evenodd"
790
790
  }, [_createVNode("path", {
791
- "fill": "#E6F5FF",
791
+ "fill": "currentColor",
792
792
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
793
793
  }, null), _createVNode("path", {
794
794
  "d": "M88,80 L114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C83.581722,128 80,124.418278 80,120 L80,88 C80,83.581722 83.581722,80 88,80 Z",
@@ -895,7 +895,7 @@ const renderReportSuccess = () => _createVNode("svg", {
895
895
  "fill": "none",
896
896
  "fill-rule": "evenodd"
897
897
  }, [_createVNode("path", {
898
- "fill": "#E6F5FF",
898
+ "fill": "currentColor",
899
899
  "d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
900
900
  }, null), _createVNode("path", {
901
901
  "d": "M88,80 L114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C83.581722,128 80,124.418278 80,120 L80,88 C80,83.581722 83.581722,80 88,80 Z",
@@ -1 +1 @@
1
- :root{--zt-empty-image-width: 200px;--zt-empty-image-height: 200px;--zt-empty-description-padding: 8px 64px 16px;--zt-empty-description-color: var(--zt-gray-a6);--zt-empty-description-font-size: var(--zt-font-size-md);--zt-empty-description-line-height: var(--zt-line-height-md);--zt-empty-bottom-margin-top: 32px}.zt-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box}.zt-empty__image{width:var(--zt-empty-image-width);height:var(--zt-empty-image-height)}.zt-empty__image img{width:100%;height:100%}.zt-empty__description{text-align:center;padding:var(--zt-empty-description-padding);color:var(--zt-empty-description-color);font-size:var(--zt-empty-description-font-size);line-height:var(--zt-empty-description-line-height)}.zt-empty__bottom{margin-top:var(--zt-empty-bottom-margin-top);width:100%}
1
+ :root{--zt-empty-image-width: 200px;--zt-empty-image-height: 200px;--zt-empty-image-background-color: #e6f5ff;--zt-empty-description-padding: 8px 64px 16px;--zt-empty-description-color: var(--zt-gray-a6);--zt-empty-description-font-size: var(--zt-font-size-md);--zt-empty-description-line-height: var(--zt-line-height-md);--zt-empty-bottom-margin-top: 32px}.zt-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box}.zt-empty__image{width:var(--zt-empty-image-width);height:var(--zt-empty-image-height);color:var(--zt-empty-image-background-color)}.zt-empty__image img{width:100%;height:100%}.zt-empty__description{text-align:center;padding:var(--zt-empty-description-padding);color:var(--zt-empty-description-color);font-size:var(--zt-empty-description-font-size);line-height:var(--zt-empty-description-line-height)}.zt-empty__bottom{margin-top:var(--zt-empty-bottom-margin-top);width:100%}.zt-theme-dark{--zt-empty-image-background-color: #1e3347}
@@ -130,6 +130,7 @@ declare const fieldProps: {
130
130
  labelAlign: PropType<FieldTextAlign>;
131
131
  showWordLimit: BooleanConstructor;
132
132
  errorMessageAlign: PropType<FieldTextAlign>;
133
+ descriptionClass: PropType<unknown>;
133
134
  description: {
134
135
  type: PropType<string>;
135
136
  default: string;
@@ -226,6 +227,7 @@ declare const _default: import("vue").DefineComponent<{
226
227
  labelAlign: PropType<FieldTextAlign>;
227
228
  showWordLimit: BooleanConstructor;
228
229
  errorMessageAlign: PropType<FieldTextAlign>;
230
+ descriptionClass: PropType<unknown>;
229
231
  description: {
230
232
  type: PropType<string>;
231
233
  default: string;
@@ -320,6 +322,7 @@ declare const _default: import("vue").DefineComponent<{
320
322
  labelAlign: PropType<FieldTextAlign>;
321
323
  showWordLimit: BooleanConstructor;
322
324
  errorMessageAlign: PropType<FieldTextAlign>;
325
+ descriptionClass: PropType<unknown>;
323
326
  description: {
324
327
  type: PropType<string>;
325
328
  default: string;
@@ -51,6 +51,7 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
51
51
  labelAlign: String,
52
52
  showWordLimit: Boolean,
53
53
  errorMessageAlign: String,
54
+ descriptionClass: unknownProp,
54
55
  description: makeStringProp(""),
55
56
  colon: {
56
57
  type: Boolean,
@@ -388,7 +389,7 @@ var stdin_default = defineComponent({
388
389
  return;
389
390
  }
390
391
  return _createVNode("div", {
391
- "class": bem("description")
392
+ "class": [bem("description"), props.descriptionClass]
392
393
  }, [props.description]);
393
394
  };
394
395
  const showMessage = computed(() => !(form && form.props.showErrorMessage === false) && (props.errorMessage || state.validateMessage));
@@ -85,6 +85,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
85
85
  labelAlign: import("vue").PropType<import("./types").FieldTextAlign>;
86
86
  showWordLimit: BooleanConstructor;
87
87
  errorMessageAlign: import("vue").PropType<import("./types").FieldTextAlign>;
88
+ descriptionClass: import("vue").PropType<unknown>;
88
89
  description: {
89
90
  type: import("vue").PropType<string>;
90
91
  default: string;
@@ -179,6 +180,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
179
180
  labelAlign: import("vue").PropType<import("./types").FieldTextAlign>;
180
181
  showWordLimit: BooleanConstructor;
181
182
  errorMessageAlign: import("vue").PropType<import("./types").FieldTextAlign>;
183
+ descriptionClass: import("vue").PropType<unknown>;
182
184
  description: {
183
185
  type: import("vue").PropType<string>;
184
186
  default: string;
@@ -0,0 +1,43 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ data: {
3
+ type: ArrayConstructor;
4
+ default: () => never[];
5
+ };
6
+ valueKey: {
7
+ type: import("vue").PropType<string>;
8
+ default: string;
9
+ };
10
+ textKey: {
11
+ type: import("vue").PropType<string>;
12
+ default: string;
13
+ };
14
+ breadcrumbTitle: {
15
+ type: import("vue").PropType<string>;
16
+ default: string;
17
+ };
18
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "chooseSenior"[], "chooseSenior", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ data: {
20
+ type: ArrayConstructor;
21
+ default: () => never[];
22
+ };
23
+ valueKey: {
24
+ type: import("vue").PropType<string>;
25
+ default: string;
26
+ };
27
+ textKey: {
28
+ type: import("vue").PropType<string>;
29
+ default: string;
30
+ };
31
+ breadcrumbTitle: {
32
+ type: import("vue").PropType<string>;
33
+ default: string;
34
+ };
35
+ }>> & {
36
+ onChooseSenior?: ((...args: any[]) => any) | undefined;
37
+ }, {
38
+ data: unknown[];
39
+ valueKey: string;
40
+ textKey: string;
41
+ breadcrumbTitle: string;
42
+ }>;
43
+ export default _default;
@@ -0,0 +1,56 @@
1
+ import { createVNode as _createVNode } from "vue";
2
+ import { defineComponent } from "vue";
3
+ import { createNamespace, makeStringProp } from "../utils/index.mjs";
4
+ import Icon from "../icon/index.mjs";
5
+ const [name, bem] = createNamespace("breadcrumb");
6
+ const BreadcrumbProps = {
7
+ data: {
8
+ type: Array,
9
+ default: () => []
10
+ },
11
+ valueKey: makeStringProp("id"),
12
+ textKey: makeStringProp("name"),
13
+ breadcrumbTitle: makeStringProp("\u5168\u90E8")
14
+ };
15
+ var stdin_default = defineComponent({
16
+ name,
17
+ props: BreadcrumbProps,
18
+ emits: ["chooseSenior"],
19
+ setup(props, {
20
+ emit
21
+ }) {
22
+ const chooseSenior = (index) => {
23
+ if (props.data.length === index + 1) {
24
+ return;
25
+ }
26
+ emit("chooseSenior", index);
27
+ };
28
+ return () => _createVNode("section", {
29
+ "class": bem()
30
+ }, [_createVNode("div", {
31
+ "class": bem("list")
32
+ }, [_createVNode("div", {
33
+ "class": bem("default"),
34
+ "onClick": () => {
35
+ chooseSenior(-1);
36
+ }
37
+ }, [props.breadcrumbTitle]), props.data.map((item, index) => _createVNode("div", {
38
+ "class": bem("item")
39
+ }, [_createVNode(Icon, {
40
+ "class": bem("icon"),
41
+ "name": "arrow-right",
42
+ "color": "#C6CED9"
43
+ }, null), _createVNode("span", {
44
+ "class": bem("name"),
45
+ "style": {
46
+ color: index === props.data.length - 1 ? "" : "#0091fa"
47
+ },
48
+ "onClick": () => {
49
+ chooseSenior(index);
50
+ }
51
+ }, [item[props.textKey]])]))])]);
52
+ }
53
+ });
54
+ export {
55
+ stdin_default as default
56
+ };
@@ -0,0 +1,104 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ declare const hierarchySelectProps: {
3
+ treeData: {
4
+ type: ArrayConstructor;
5
+ default: () => never[];
6
+ };
7
+ disableParent: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ multiple: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ asyncGetter: {
16
+ type: FunctionConstructor;
17
+ };
18
+ valueKey: {
19
+ type: import("vue").PropType<string>;
20
+ default: string;
21
+ };
22
+ textKey: {
23
+ type: import("vue").PropType<string>;
24
+ default: string;
25
+ };
26
+ breadcrumbTitle: {
27
+ type: import("vue").PropType<string>;
28
+ default: string;
29
+ };
30
+ autoChangeToChildren: BooleanConstructor;
31
+ };
32
+ export declare type HierarchySelectProps = ExtractPropTypes<typeof hierarchySelectProps>;
33
+ declare const _default: import("vue").DefineComponent<{
34
+ treeData: {
35
+ type: ArrayConstructor;
36
+ default: () => never[];
37
+ };
38
+ disableParent: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ multiple: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ asyncGetter: {
47
+ type: FunctionConstructor;
48
+ };
49
+ valueKey: {
50
+ type: import("vue").PropType<string>;
51
+ default: string;
52
+ };
53
+ textKey: {
54
+ type: import("vue").PropType<string>;
55
+ default: string;
56
+ };
57
+ breadcrumbTitle: {
58
+ type: import("vue").PropType<string>;
59
+ default: string;
60
+ };
61
+ autoChangeToChildren: BooleanConstructor;
62
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "selected" | "asyncGetter")[], "selected" | "change" | "asyncGetter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
63
+ treeData: {
64
+ type: ArrayConstructor;
65
+ default: () => never[];
66
+ };
67
+ disableParent: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ multiple: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ asyncGetter: {
76
+ type: FunctionConstructor;
77
+ };
78
+ valueKey: {
79
+ type: import("vue").PropType<string>;
80
+ default: string;
81
+ };
82
+ textKey: {
83
+ type: import("vue").PropType<string>;
84
+ default: string;
85
+ };
86
+ breadcrumbTitle: {
87
+ type: import("vue").PropType<string>;
88
+ default: string;
89
+ };
90
+ autoChangeToChildren: BooleanConstructor;
91
+ }>> & {
92
+ onChange?: ((...args: any[]) => any) | undefined;
93
+ onSelected?: ((...args: any[]) => any) | undefined;
94
+ onAsyncGetter?: ((...args: any[]) => any) | undefined;
95
+ }, {
96
+ multiple: boolean;
97
+ valueKey: string;
98
+ textKey: string;
99
+ breadcrumbTitle: string;
100
+ treeData: unknown[];
101
+ disableParent: boolean;
102
+ autoChangeToChildren: boolean;
103
+ }>;
104
+ export default _default;