@veltra/desktop 1.3.2 → 1.3.4

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 (400) hide show
  1. package/dist/components/action/action-group.vue.d.ts +2 -2
  2. package/dist/components/action/action.vue.d.ts +3 -1
  3. package/dist/components/action/index.d.ts +3 -2
  4. package/dist/components/action/style.d.ts +2 -1
  5. package/dist/components/auto-complete/auto-complete.vue.d.ts +2 -1
  6. package/dist/components/auto-complete/index.d.ts +2 -1
  7. package/dist/components/auto-complete/style.d.ts +4 -1
  8. package/dist/components/auto-complete/use-keyboard.js +1 -1
  9. package/dist/components/auto-complete/use-keyboard.js.map +1 -1
  10. package/dist/components/badge/badge.vue.d.ts +2 -1
  11. package/dist/components/badge/index.d.ts +2 -1
  12. package/dist/components/batch-edit/batch-edit.vue.d.ts +3 -1
  13. package/dist/components/batch-edit/helper.d.ts +1 -0
  14. package/dist/components/batch-edit/index.d.ts +3 -2
  15. package/dist/components/batch-edit/style.d.ts +5 -1
  16. package/dist/components/batch-edit/use-features.js +1 -1
  17. package/dist/components/batch-edit/use-features.js.map +1 -1
  18. package/dist/components/breadcrumb/breadcrumb.vue.d.ts +2 -1
  19. package/dist/components/breadcrumb/index.d.ts +2 -1
  20. package/dist/components/button/button-group.vue.d.ts +2 -1
  21. package/dist/components/button/button.vue.d.ts +2 -1
  22. package/dist/components/button/index.d.ts +3 -2
  23. package/dist/components/button/style.d.ts +1 -1
  24. package/dist/components/calendar/calendar.vue.d.ts +2 -1
  25. package/dist/components/calendar/index.d.ts +2 -1
  26. package/dist/components/card/card-action.vue.d.ts +2 -1
  27. package/dist/components/card/card-content.vue.d.ts +2 -1
  28. package/dist/components/card/card-cover.vue.d.ts +2 -1
  29. package/dist/components/card/card-header.vue.d.ts +1 -1
  30. package/dist/components/card/card.vue.d.ts +2 -1
  31. package/dist/components/card/index.d.ts +6 -5
  32. package/dist/components/cascade/cascade.vue.d.ts +3 -2
  33. package/dist/components/cascade/index.d.ts +2 -1
  34. package/dist/components/cascade/style.d.ts +3 -1
  35. package/dist/components/check-tag/check-tag.vue.d.ts +2 -1
  36. package/dist/components/check-tag/index.d.ts +2 -1
  37. package/dist/components/checkbox/checkbox-button.vue.d.ts +2 -1
  38. package/dist/components/checkbox/checkbox.vue.d.ts +2 -1
  39. package/dist/components/checkbox/index.d.ts +3 -2
  40. package/dist/components/checkbox/style.d.ts +1 -1
  41. package/dist/components/checkbox-group/checkbox-group.vue.d.ts +2 -1
  42. package/dist/components/checkbox-group/index.d.ts +2 -1
  43. package/dist/components/checkbox-group/style.d.ts +1 -1
  44. package/dist/components/code-editor/code-editor.vue.d.ts +2 -1
  45. package/dist/components/code-editor/index.d.ts +2 -1
  46. package/dist/components/code-editor/langs/spel/language.js +2 -2
  47. package/dist/components/code-editor/langs/spel/language.js.map +1 -1
  48. package/dist/components/code-editor/style.d.ts +1 -1
  49. package/dist/components/collapse/collapse-item.vue.d.ts +4 -3
  50. package/dist/components/collapse/collapse.vue.d.ts +2 -1
  51. package/dist/components/collapse/index.d.ts +3 -2
  52. package/dist/components/condition-editor/condition-editor.vue.d.ts +3 -1
  53. package/dist/components/condition-editor/core/evaluator.d.ts +1 -0
  54. package/dist/components/condition-editor/index.d.ts +3 -2
  55. package/dist/components/condition-editor/style.d.ts +2 -1
  56. package/dist/components/contextmenu/api.d.ts +1 -0
  57. package/dist/components/contextmenu/contextmenu.vue.d.ts +2 -1
  58. package/dist/components/contextmenu/index.d.ts +3 -2
  59. package/dist/components/contextmenu/style.d.ts +2 -1
  60. package/dist/components/date-panel/date-panel.vue.d.ts +2 -1
  61. package/dist/components/date-panel/index.d.ts +2 -1
  62. package/dist/components/date-picker/date-picker.vue.d.ts +2 -1
  63. package/dist/components/date-picker/index.d.ts +2 -1
  64. package/dist/components/date-picker/style.d.ts +2 -1
  65. package/dist/components/date-range-picker/date-range-picker.vue.d.ts +2 -1
  66. package/dist/components/date-range-picker/index.d.ts +2 -1
  67. package/dist/components/date-range-picker/style.d.ts +1 -1
  68. package/dist/components/dialog/dialog.vue.d.ts +5 -2
  69. package/dist/components/dialog/index.d.ts +2 -1
  70. package/dist/components/dialog/style.d.ts +1 -1
  71. package/dist/components/drawer/drawer.vue.d.ts +3 -1
  72. package/dist/components/drawer/index.d.ts +2 -1
  73. package/dist/components/drawer/style.d.ts +1 -1
  74. package/dist/components/dropdown/dropdown.vue.d.ts +6 -2
  75. package/dist/components/dropdown/index.d.ts +2 -1
  76. package/dist/components/dropdown/style.d.ts +1 -1
  77. package/dist/components/dual-nav/dual-nav.vue.d.ts +2 -1
  78. package/dist/components/dual-nav/index.d.ts +2 -1
  79. package/dist/components/dual-nav/style.d.ts +1 -1
  80. package/dist/components/empty/empty.vue.d.ts +2 -1
  81. package/dist/components/empty/index.d.ts +2 -1
  82. package/dist/components/expression-editor/expression-editor.vue.d.ts +3 -1
  83. package/dist/components/expression-editor/index.d.ts +2 -1
  84. package/dist/components/file-picker/file-picker.js +6 -3
  85. package/dist/components/file-picker/file-picker.js.map +1 -1
  86. package/dist/components/file-picker/file-picker.vue.d.ts +2 -1
  87. package/dist/components/file-picker/index.d.ts +2 -1
  88. package/dist/components/file-viewer/file-viewer.js +2 -2
  89. package/dist/components/file-viewer/file-viewer.js.map +1 -1
  90. package/dist/components/file-viewer/file-viewer.vue.d.ts +1 -2
  91. package/dist/components/file-viewer/helper.js +4 -4
  92. package/dist/components/file-viewer/helper.js.map +1 -1
  93. package/dist/components/file-viewer/index.d.ts +2 -1
  94. package/dist/components/float-button/float-button.vue.d.ts +2 -1
  95. package/dist/components/float-button/index.d.ts +2 -1
  96. package/dist/components/float-button/style.d.ts +1 -1
  97. package/dist/components/form/form.vue.d.ts +2 -1
  98. package/dist/components/form/index.d.ts +2 -1
  99. package/dist/components/form-item/form-item.vue.d.ts +4 -2
  100. package/dist/components/form-item/form-item.vue_vue_type_script_setup_true_lang.js +1 -1
  101. package/dist/components/form-item/form-item.vue_vue_type_script_setup_true_lang.js.map +1 -1
  102. package/dist/components/form-item/index.d.ts +2 -1
  103. package/dist/components/gantt-chart/gantt-chart.vue.d.ts +2 -1
  104. package/dist/components/gantt-chart/index.d.ts +2 -1
  105. package/dist/components/grid/grid-item.vue.d.ts +2 -1
  106. package/dist/components/grid/grid.vue.d.ts +3 -1
  107. package/dist/components/grid/index.d.ts +3 -2
  108. package/dist/components/grid/use-responsive.js +2 -1
  109. package/dist/components/grid/use-responsive.js.map +1 -1
  110. package/dist/components/grid-input/grid-input.vue.d.ts +3 -1
  111. package/dist/components/grid-input/index.d.ts +2 -1
  112. package/dist/components/group-input/group-input.vue.d.ts +4 -3
  113. package/dist/components/group-input/index.d.ts +2 -1
  114. package/dist/components/group-input/style.d.ts +1 -1
  115. package/dist/components/group-nav/group-nav.vue.d.ts +1 -2
  116. package/dist/components/group-nav/index.d.ts +2 -1
  117. package/dist/components/icon/icon.vue.d.ts +2 -1
  118. package/dist/components/icon/index.d.ts +2 -1
  119. package/dist/components/index.d.ts +168 -92
  120. package/dist/components/index.js +5 -5
  121. package/dist/components/input/index.d.ts +2 -1
  122. package/dist/components/input/input.vue.d.ts +6 -5
  123. package/dist/components/input/style.d.ts +1 -1
  124. package/dist/components/kbd/kbd.vue.d.ts +1 -1
  125. package/dist/components/layout/index.d.ts +2 -1
  126. package/dist/components/layout/layout.vue.d.ts +2 -1
  127. package/dist/components/list/index.d.ts +3 -2
  128. package/dist/components/list/list-item.vue.d.ts +1 -1
  129. package/dist/components/list/list.vue.d.ts +2 -1
  130. package/dist/components/list/style.d.ts +1 -1
  131. package/dist/components/loading/directive.d.ts +0 -1
  132. package/dist/components/loading/index.d.ts +3 -2
  133. package/dist/components/loading/loading.vue.d.ts +3 -1
  134. package/dist/components/loading/style.d.ts +1 -1
  135. package/dist/components/message/index.d.ts +3 -2
  136. package/dist/components/message/message.d.ts +1 -0
  137. package/dist/components/message/message.vue.d.ts +3 -1
  138. package/dist/components/message-confirm/index.d.ts +3 -2
  139. package/dist/components/message-confirm/message-confirm-box.js +39 -0
  140. package/dist/components/message-confirm/message-confirm-box.js.map +1 -0
  141. package/dist/components/message-confirm/message-confirm.d.ts +5 -7
  142. package/dist/components/message-confirm/message-confirm.js +32 -46
  143. package/dist/components/message-confirm/message-confirm.js.map +1 -1
  144. package/dist/components/message-confirm/message-confirm.vue.d.ts +8 -4
  145. package/dist/components/message-confirm/message-confirm2.js +98 -23
  146. package/dist/components/message-confirm/message-confirm2.js.map +1 -1
  147. package/dist/components/message-confirm/style2.css +9 -9
  148. package/dist/components/multi-select/index.d.ts +2 -1
  149. package/dist/components/multi-select/multi-select.vue.d.ts +8 -7
  150. package/dist/components/multi-select/style.d.ts +5 -1
  151. package/dist/components/multi-tree-select/index.d.ts +2 -1
  152. package/dist/components/multi-tree-select/multi-tree-select.vue.d.ts +2 -2
  153. package/dist/components/multi-tree-select/style.d.ts +6 -1
  154. package/dist/components/nav/index.d.ts +4 -3
  155. package/dist/components/nav/nav-item.vue.d.ts +2 -1
  156. package/dist/components/nav/nav-sub.vue.d.ts +2 -1
  157. package/dist/components/nav/nav.vue.d.ts +2 -1
  158. package/dist/components/node-render/index.d.ts +2 -1
  159. package/dist/components/node-render/node-render.d.ts +1 -2
  160. package/dist/components/notification/index.d.ts +3 -8
  161. package/dist/components/notification/notification-box.js +130 -0
  162. package/dist/components/notification/notification-box.js.map +1 -0
  163. package/dist/components/notification/notification.d.ts +8 -0
  164. package/dist/components/notification/notification.js +62 -84
  165. package/dist/components/notification/notification.js.map +1 -1
  166. package/dist/components/notification/notification.vue.d.ts +10 -5
  167. package/dist/components/notification/notification2.js +134 -0
  168. package/dist/components/notification/notification2.js.map +1 -0
  169. package/dist/components/notification/style2.css +62 -32
  170. package/dist/components/number/index.d.ts +2 -1
  171. package/dist/components/number/number.vue.d.ts +2 -1
  172. package/dist/components/number-input/index.d.ts +2 -1
  173. package/dist/components/number-input/number-input.js +2 -1
  174. package/dist/components/number-input/number-input.js.map +1 -1
  175. package/dist/components/number-input/number-input.vue.d.ts +4 -2
  176. package/dist/components/number-input/style.d.ts +2 -1
  177. package/dist/components/number-range-input/index.d.ts +2 -1
  178. package/dist/components/number-range-input/number-range-input.js +4 -2
  179. package/dist/components/number-range-input/number-range-input.js.map +1 -1
  180. package/dist/components/number-range-input/number-range-input.vue.d.ts +2 -1
  181. package/dist/components/number-range-input/style.d.ts +1 -1
  182. package/dist/components/paginator/index.d.ts +2 -1
  183. package/dist/components/paginator/paginator.vue.d.ts +2 -1
  184. package/dist/components/paginator/style.d.ts +2 -1
  185. package/dist/components/palette/index.d.ts +2 -1
  186. package/dist/components/palette/palette-sv.js +4 -2
  187. package/dist/components/palette/palette-sv.js.map +1 -1
  188. package/dist/components/palette/palette.vue.d.ts +2 -1
  189. package/dist/components/palette/style.d.ts +2 -1
  190. package/dist/components/password-input/index.d.ts +2 -1
  191. package/dist/components/password-input/password-input.vue.d.ts +2 -1
  192. package/dist/components/password-input/style.d.ts +1 -1
  193. package/dist/components/pop-confirm/index.d.ts +2 -1
  194. package/dist/components/pop-confirm/pop-confirm.vue.d.ts +4 -2
  195. package/dist/components/pop-confirm/style.d.ts +1 -1
  196. package/dist/components/progress/index.d.ts +2 -1
  197. package/dist/components/progress/progress.vue.d.ts +4 -3
  198. package/dist/components/progress-nodes/index.d.ts +2 -1
  199. package/dist/components/progress-nodes/progress-nodes.js +2 -1
  200. package/dist/components/progress-nodes/progress-nodes.js.map +1 -1
  201. package/dist/components/progress-nodes/progress-nodes.vue.d.ts +8 -7
  202. package/dist/components/radio/index.d.ts +2 -1
  203. package/dist/components/radio/radio.vue.d.ts +2 -1
  204. package/dist/components/radio/style.d.ts +1 -1
  205. package/dist/components/radio-group/index.d.ts +2 -1
  206. package/dist/components/radio-group/radio-group.vue.d.ts +2 -1
  207. package/dist/components/radio-group/style.d.ts +1 -1
  208. package/dist/components/rich-text-editor/index.d.ts +2 -1
  209. package/dist/components/rich-text-editor/rich-text-editor.js +2 -1
  210. package/dist/components/rich-text-editor/rich-text-editor.js.map +1 -1
  211. package/dist/components/rich-text-editor/rich-text-editor.vue.d.ts +3 -1
  212. package/dist/components/rich-text-editor/toolbar.js +2 -1
  213. package/dist/components/rich-text-editor/toolbar.js.map +1 -1
  214. package/dist/components/scroll/index.d.ts +2 -1
  215. package/dist/components/scroll/scroll.vue.d.ts +5 -2
  216. package/dist/components/select/index.d.ts +2 -1
  217. package/dist/components/select/select.vue.d.ts +5 -2
  218. package/dist/components/select/style.d.ts +3 -1
  219. package/dist/components/slider/index.d.ts +2 -1
  220. package/dist/components/slider/slider.vue.d.ts +4 -3
  221. package/dist/components/steps/index.d.ts +2 -1
  222. package/dist/components/steps/steps.vue.d.ts +4 -3
  223. package/dist/components/switch/index.d.ts +2 -1
  224. package/dist/components/switch/switch.vue.d.ts +2 -1
  225. package/dist/components/table/index.d.ts +3 -2
  226. package/dist/components/table/node/col.d.ts +1 -1
  227. package/dist/components/table/node/row.d.ts +0 -1
  228. package/dist/components/table/style.d.ts +3 -1
  229. package/dist/components/table/table-row.js +2 -1
  230. package/dist/components/table/table-row.js.map +1 -1
  231. package/dist/components/table/table.vue.d.ts +3 -1
  232. package/dist/components/table/use-columns.d.ts +3 -0
  233. package/dist/components/table/use-columns.js +2 -1
  234. package/dist/components/table/use-columns.js.map +1 -1
  235. package/dist/components/table-editor/index.d.ts +2 -1
  236. package/dist/components/table-editor/style.d.ts +2 -1
  237. package/dist/components/table-editor/table-editor.vue.d.ts +2 -1
  238. package/dist/components/tabs/index.d.ts +4 -3
  239. package/dist/components/tabs/style.d.ts +2 -1
  240. package/dist/components/tabs/tabs-horizontal.vue.d.ts +3 -2
  241. package/dist/components/tabs/tabs-vertical.vue.d.ts +3 -2
  242. package/dist/components/tabs/tabs.vue.d.ts +3 -2
  243. package/dist/components/tag/index.d.ts +2 -1
  244. package/dist/components/tag/tag.vue.d.ts +2 -1
  245. package/dist/components/text/index.d.ts +2 -1
  246. package/dist/components/text/text.vue.d.ts +2 -1
  247. package/dist/components/textarea/index.d.ts +2 -1
  248. package/dist/components/textarea/style.d.ts +1 -1
  249. package/dist/components/textarea/textarea.js +4 -2
  250. package/dist/components/textarea/textarea.js.map +1 -1
  251. package/dist/components/textarea/textarea.vue.d.ts +2 -1
  252. package/dist/components/theme/index.d.ts +2 -1
  253. package/dist/components/theme/style.d.ts +5 -1
  254. package/dist/components/theme/theme.vue.d.ts +2 -1
  255. package/dist/components/tip/index.d.ts +2 -1
  256. package/dist/components/tip/tip.vue.d.ts +4 -2
  257. package/dist/components/tree/di.d.ts +2 -0
  258. package/dist/components/tree/index.d.ts +2 -1
  259. package/dist/components/tree/style.d.ts +1 -1
  260. package/dist/components/tree/tree.vue.d.ts +3 -1
  261. package/dist/components/tree-select/index.d.ts +2 -1
  262. package/dist/components/tree-select/style.d.ts +3 -1
  263. package/dist/components/tree-select/tree-select.vue.d.ts +5 -3
  264. package/dist/components/watermark/index.d.ts +2 -1
  265. package/dist/components/watermark/watermark.vue.d.ts +2 -1
  266. package/dist/index.d.ts +97 -98
  267. package/dist/index.js +3 -3
  268. package/dist/install.d.ts +1 -1
  269. package/dist/node_modules/.bun/@codemirror_autocomplete@6.20.3/node_modules/@codemirror/autocomplete/dist/index.js +13 -4
  270. package/dist/node_modules/.bun/@codemirror_autocomplete@6.20.3/node_modules/@codemirror/autocomplete/dist/index.js.map +1 -1
  271. package/dist/node_modules/.bun/@codemirror_commands@6.10.4/node_modules/@codemirror/commands/dist/index.js +1 -1
  272. package/dist/node_modules/.bun/@codemirror_lang-css@6.3.1/node_modules/@codemirror/lang-css/dist/index.js +3 -2
  273. package/dist/node_modules/.bun/@codemirror_lang-css@6.3.1/node_modules/@codemirror/lang-css/dist/index.js.map +1 -1
  274. package/dist/node_modules/.bun/@codemirror_lang-html@6.4.11/node_modules/@codemirror/lang-html/dist/index.js +1 -1
  275. package/dist/node_modules/.bun/@codemirror_lang-java@6.0.2/node_modules/@codemirror/lang-java/dist/index.js +1 -1
  276. package/dist/node_modules/.bun/@codemirror_lang-javascript@6.2.5/node_modules/@codemirror/lang-javascript/dist/index.js +1 -1
  277. package/dist/node_modules/.bun/@codemirror_lang-json@6.0.2/node_modules/@codemirror/lang-json/dist/index.js +1 -1
  278. package/dist/node_modules/.bun/@codemirror_lang-markdown@6.5.1/node_modules/@codemirror/lang-markdown/dist/index.js +1 -1
  279. package/dist/node_modules/.bun/@codemirror_lang-sql@6.10.0/node_modules/@codemirror/lang-sql/dist/index.js +31 -5
  280. package/dist/node_modules/.bun/@codemirror_lang-sql@6.10.0/node_modules/@codemirror/lang-sql/dist/index.js.map +1 -1
  281. package/dist/node_modules/.bun/@codemirror_language@6.12.4/node_modules/@codemirror/language/dist/index.js +5 -3
  282. package/dist/node_modules/.bun/@codemirror_language@6.12.4/node_modules/@codemirror/language/dist/index.js.map +1 -1
  283. package/dist/node_modules/.bun/@codemirror_lint@6.9.7/node_modules/@codemirror/lint/dist/index.js +1 -1
  284. package/dist/node_modules/.bun/@codemirror_search@6.7.1/node_modules/@codemirror/search/dist/index.js +3 -2
  285. package/dist/node_modules/.bun/@codemirror_search@6.7.1/node_modules/@codemirror/search/dist/index.js.map +1 -1
  286. package/dist/node_modules/.bun/@codemirror_state@6.7.0/node_modules/@codemirror/state/dist/index.js +3 -2
  287. package/dist/node_modules/.bun/@codemirror_state@6.7.0/node_modules/@codemirror/state/dist/index.js.map +1 -1
  288. package/dist/node_modules/.bun/@codemirror_theme-one-dark@6.1.3/node_modules/@codemirror/theme-one-dark/dist/index.js +30 -7
  289. package/dist/node_modules/.bun/@codemirror_theme-one-dark@6.1.3/node_modules/@codemirror/theme-one-dark/dist/index.js.map +1 -1
  290. package/dist/node_modules/.bun/@codemirror_view@6.43.4/node_modules/@codemirror/view/dist/index.js +11 -5
  291. package/dist/node_modules/.bun/@codemirror_view@6.43.4/node_modules/@codemirror/view/dist/index.js.map +1 -1
  292. package/dist/node_modules/.bun/@lezer_common@1.5.2/node_modules/@lezer/common/dist/index.js +3 -2
  293. package/dist/node_modules/.bun/@lezer_common@1.5.2/node_modules/@lezer/common/dist/index.js.map +1 -1
  294. package/dist/node_modules/.bun/@lezer_css@1.3.4/node_modules/@lezer/css/dist/index.js +20 -2
  295. package/dist/node_modules/.bun/@lezer_css@1.3.4/node_modules/@lezer/css/dist/index.js.map +1 -1
  296. package/dist/node_modules/.bun/@lezer_highlight@1.2.3/node_modules/@lezer/highlight/dist/index.js +15 -2
  297. package/dist/node_modules/.bun/@lezer_highlight@1.2.3/node_modules/@lezer/highlight/dist/index.js.map +1 -1
  298. package/dist/node_modules/.bun/@lezer_html@1.3.13/node_modules/@lezer/html/dist/index.js +42 -3
  299. package/dist/node_modules/.bun/@lezer_html@1.3.13/node_modules/@lezer/html/dist/index.js.map +1 -1
  300. package/dist/node_modules/.bun/@lezer_javascript@1.5.4/node_modules/@lezer/javascript/dist/index.js +23 -2
  301. package/dist/node_modules/.bun/@lezer_javascript@1.5.4/node_modules/@lezer/javascript/dist/index.js.map +1 -1
  302. package/dist/node_modules/.bun/@lezer_lr@1.4.10/node_modules/@lezer/lr/dist/index.js +1 -1
  303. package/dist/node_modules/.bun/@lezer_markdown@1.7.2/node_modules/@lezer/markdown/dist/index.js +39 -29
  304. package/dist/node_modules/.bun/@lezer_markdown@1.7.2/node_modules/@lezer/markdown/dist/index.js.map +1 -1
  305. package/dist/node_modules/.bun/@marijn_find-cluster-break@1.0.2/node_modules/@marijn/find-cluster-break/src/index.js +3 -2
  306. package/dist/node_modules/.bun/@marijn_find-cluster-break@1.0.2/node_modules/@marijn/find-cluster-break/src/index.js.map +1 -1
  307. package/dist/style.d.ts +39 -1
  308. package/dist/types/action.d.ts +0 -1
  309. package/dist/types/animation.d.ts +0 -1
  310. package/dist/types/auto-complete.d.ts +0 -1
  311. package/dist/types/badge.d.ts +0 -1
  312. package/dist/types/batch-edit.d.ts +18 -13
  313. package/dist/types/breadcrumb.d.ts +0 -1
  314. package/dist/types/button.d.ts +0 -1
  315. package/dist/types/calendar.d.ts +0 -1
  316. package/dist/types/card.d.ts +0 -1
  317. package/dist/types/cascade.d.ts +0 -1
  318. package/dist/types/check-tag.d.ts +0 -1
  319. package/dist/types/checkbox-group.d.ts +0 -1
  320. package/dist/types/checkbox.d.ts +0 -1
  321. package/dist/types/code-editor.d.ts +0 -1
  322. package/dist/types/collapse.d.ts +0 -1
  323. package/dist/types/condition-editor.d.ts +0 -1
  324. package/dist/types/contextmenu.d.ts +0 -1
  325. package/dist/types/css-transition.d.ts +0 -1
  326. package/dist/types/date-panel.d.ts +0 -1
  327. package/dist/types/date-picker.d.ts +0 -1
  328. package/dist/types/date-range-picker.d.ts +0 -1
  329. package/dist/types/dialog.d.ts +0 -1
  330. package/dist/types/drawer.d.ts +0 -1
  331. package/dist/types/dropdown.d.ts +2 -2
  332. package/dist/types/dual-nav.d.ts +0 -1
  333. package/dist/types/empty.d.ts +0 -1
  334. package/dist/types/expression-editor.d.ts +0 -1
  335. package/dist/types/file-picker.d.ts +0 -1
  336. package/dist/types/file-viewer.d.ts +0 -1
  337. package/dist/types/float-button.d.ts +0 -1
  338. package/dist/types/form-item.d.ts +0 -1
  339. package/dist/types/form.d.ts +0 -1
  340. package/dist/types/grid-input.d.ts +0 -1
  341. package/dist/types/grid.d.ts +1 -2
  342. package/dist/types/group-input.d.ts +0 -1
  343. package/dist/types/group-nav.d.ts +0 -1
  344. package/dist/types/index.d.ts +4 -6
  345. package/dist/types/input.d.ts +0 -1
  346. package/dist/types/layout.d.ts +0 -1
  347. package/dist/types/list.d.ts +0 -1
  348. package/dist/types/loading.d.ts +0 -1
  349. package/dist/types/message-confirm.d.ts +48 -5
  350. package/dist/types/message.d.ts +3 -2
  351. package/dist/types/multi-auto-complete.d.ts +0 -1
  352. package/dist/types/multi-select.d.ts +0 -1
  353. package/dist/types/multi-tree-select.d.ts +0 -1
  354. package/dist/types/nav.d.ts +0 -1
  355. package/dist/types/node-render.d.ts +0 -1
  356. package/dist/types/notification.d.ts +67 -17
  357. package/dist/types/number-input.d.ts +0 -1
  358. package/dist/types/number-range-input.d.ts +0 -1
  359. package/dist/types/paginator.d.ts +0 -1
  360. package/dist/types/palette.d.ts +0 -1
  361. package/dist/types/password-input.d.ts +0 -1
  362. package/dist/types/pop-confirm.d.ts +0 -1
  363. package/dist/types/pop.d.ts +0 -1
  364. package/dist/types/progress-nodes.d.ts +0 -1
  365. package/dist/types/progress.d.ts +0 -1
  366. package/dist/types/quick-batch-edit.d.ts +0 -1
  367. package/dist/types/radio-group.d.ts +0 -1
  368. package/dist/types/radio.d.ts +0 -1
  369. package/dist/types/rich-text-editor.d.ts +0 -1
  370. package/dist/types/scroll.d.ts +11 -6
  371. package/dist/types/select.d.ts +0 -1
  372. package/dist/types/slider.d.ts +0 -1
  373. package/dist/types/steps.d.ts +0 -1
  374. package/dist/types/switch.d.ts +0 -1
  375. package/dist/types/table-editor.d.ts +0 -1
  376. package/dist/types/table.d.ts +0 -1
  377. package/dist/types/tabs.d.ts +2 -2
  378. package/dist/types/tag.d.ts +0 -1
  379. package/dist/types/text-editor.d.ts +0 -1
  380. package/dist/types/textarea.d.ts +0 -1
  381. package/dist/types/theme.d.ts +0 -1
  382. package/dist/types/tip.d.ts +0 -1
  383. package/dist/types/tree-select.d.ts +0 -1
  384. package/dist/types/tree.d.ts +0 -1
  385. package/dist/types/watermark.d.ts +0 -1
  386. package/package.json +19 -19
  387. package/src/components/message-confirm/index.ts +1 -1
  388. package/src/components/message-confirm/message-confirm-box.vue +36 -0
  389. package/src/components/message-confirm/message-confirm.ts +113 -21
  390. package/src/components/message-confirm/message-confirm.vue +30 -37
  391. package/src/components/message-confirm/style.scss +10 -12
  392. package/src/components/notification/index.ts +1 -143
  393. package/src/components/notification/notification-box.vue +150 -0
  394. package/src/components/notification/notification.ts +142 -0
  395. package/src/components/notification/notification.vue +40 -66
  396. package/src/components/notification/style.scss +65 -38
  397. package/src/types/message-confirm.ts +52 -3
  398. package/src/types/notification.ts +71 -15
  399. package/dist/components/notification/index.js +0 -140
  400. package/dist/components/notification/index.js.map +0 -1
@@ -1,140 +0,0 @@
1
- import _sfc_main from "./notification.js";
2
- import { createVNode, reactive, render } from "vue";
3
- import { zIndex } from "@veltra/utils";
4
- //#region src/components/notification/index.ts
5
- const notificationQueue = reactive({
6
- "bottom-right": [],
7
- "bottom-left": [],
8
- "top-right": [],
9
- "top-left": []
10
- });
11
- const length = (key) => {
12
- return notificationQueue[key].length;
13
- };
14
- let count = 1;
15
- const close = (id, position, userClose) => {
16
- const index = notificationQueue[position].findIndex(({ vm }) => {
17
- return id === vm.component.props.id;
18
- });
19
- if (index > -1) {
20
- const { vm } = notificationQueue[position][index];
21
- userClose?.(vm);
22
- let offset = Number(notificationQueue[position][index].vm.component.props.offset);
23
- notificationQueue[position].splice(index, 1);
24
- let temp = 0;
25
- for (let i = length(position); i > 0; i--) if (i < index + 1) {
26
- temp = Number(notificationQueue[position][i - 1].vm.component.props.offset);
27
- notificationQueue[position][i - 1].vm.component.props.offset = offset;
28
- offset = temp;
29
- }
30
- }
31
- if (!notificationQueue[position].length) {
32
- const wrapper = document.getElementById(`notification-${position}-id`);
33
- wrapper.style.removeProperty("height");
34
- wrapper.style.removeProperty("overflow");
35
- }
36
- };
37
- const createWrapper = (options) => {
38
- const position = options.position || "bottom-right";
39
- if (document.getElementById(`notification-${position}-id`)) return document.getElementById(`notification-${position}-id`);
40
- else {
41
- const offset = options.offset || 20;
42
- const wrapper = document.createElement("div");
43
- wrapper.id = `notification-${position}-id`;
44
- Object.assign(wrapper.style, {
45
- position: "fixed",
46
- textAlign: "center"
47
- }, {
48
- "top-right": {
49
- top: `${offset}px`,
50
- right: `${offset}px`
51
- },
52
- "top-left": {
53
- top: `${offset}px`,
54
- left: `${offset}px`
55
- },
56
- "bottom-left": {
57
- bottom: `${offset}px`,
58
- left: `${offset}px`
59
- },
60
- "bottom-right": {
61
- bottom: `${offset}px`,
62
- right: `${offset}px`
63
- }
64
- }[position]);
65
- wrapper.addEventListener("mouseenter", (e) => {
66
- if (length(position)) {
67
- let innerCount = 0;
68
- let innerOffset = 0;
69
- let width = 0;
70
- let height = 0;
71
- for (let i = length(position); i > 0; i--) {
72
- notificationQueue[position][i - 1].vm.component.exposed.clearTimer();
73
- if (i === length(position)) width = notificationQueue[position][i - 1].vm.el?.offsetWidth + 8;
74
- notificationQueue[position][i - 1].vm.component.props.offset = innerOffset;
75
- innerOffset += notificationQueue[position][i - 1].vm.el?.offsetHeight / 2 + 5;
76
- if (innerCount < 3) height += notificationQueue[position][i - 1].vm.el?.offsetHeight + 10;
77
- innerCount++;
78
- }
79
- Object.assign(e.target.style, {
80
- width: `${width}px`,
81
- height: `${height}px`,
82
- overflow: "hidden",
83
- transition: "height 0.4s"
84
- });
85
- }
86
- });
87
- wrapper.addEventListener("mouseleave", (e) => {
88
- if (length(position)) {
89
- let innerOffset = 0;
90
- let innerCount = 0;
91
- let height = 0;
92
- for (let i = length(position); i > 0; i--) {
93
- notificationQueue[position][i - 1].vm.component.exposed.startTimer();
94
- if (i === length(position)) height = notificationQueue[position][i - 1].vm.el?.offsetHeight + 80;
95
- notificationQueue[position][i - 1].vm.component.props.offset = innerOffset;
96
- if (innerCount < 2) innerOffset += 10;
97
- innerCount++;
98
- }
99
- e.target.style.transition = "height 0.45s";
100
- e.target.style.height = `${height}px`;
101
- } else {
102
- e.target.style.removeProperty("height");
103
- e.target.style.removeProperty("overflow");
104
- }
105
- });
106
- document.body.appendChild(wrapper);
107
- return wrapper;
108
- }
109
- };
110
- const Notification = (options) => {
111
- const position = options.position || "bottom-right";
112
- const container = document.createElement("div");
113
- const id = `notification_${count++}`;
114
- if (length(position)) {
115
- let innerOffset = 0;
116
- let innerCount = 0;
117
- for (let i = length(position); i > 0; i--) {
118
- if (innerCount < 2) innerOffset += 10;
119
- notificationQueue[position][i - 1].vm.component.props.offset = innerOffset;
120
- innerCount++;
121
- }
122
- }
123
- const vm = createVNode(_sfc_main, {
124
- ...options,
125
- offset: 0,
126
- id,
127
- zIndex: zIndex(),
128
- onClose: () => {
129
- close(id, position, options.onClose);
130
- }
131
- });
132
- vm.props.onDestroy = () => render(null, container);
133
- render(vm, container);
134
- notificationQueue[position].push({ vm });
135
- createWrapper(options)?.appendChild(container.firstElementChild);
136
- };
137
- //#endregion
138
- export { Notification };
139
-
140
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["UNotification"],"sources":["../../../src/components/notification/index.ts"],"sourcesContent":["export { default as UNotification } from './notification.vue'\nimport { zIndex } from '@veltra/utils'\nimport { createVNode, render, type VNode, reactive } from 'vue'\n\nimport type { NotificationProps } from '../../types'\nimport UNotification from './notification.vue'\n\ntype NotificationItem = { vm: VNode }\n\nconst notificationQueue = reactive({\n 'bottom-right': [] as NotificationItem[],\n 'bottom-left': [] as NotificationItem[],\n 'top-right': [] as NotificationItem[],\n 'top-left': [] as NotificationItem[]\n})\n\nconst length = (key: string) => {\n return notificationQueue[key].length\n}\n\nlet count = 1\n\nconst close = (id: string, position: string, userClose?: (vm: VNode) => void) => {\n const index = notificationQueue[position].findIndex(({ vm }) => {\n return id === vm.component!.props.id\n })\n if (index > -1) {\n const { vm } = notificationQueue[position][index]!\n userClose?.(vm)\n let offset = Number(notificationQueue[position][index]!.vm.component!.props.offset)\n notificationQueue[position].splice(index, 1)\n let temp = 0\n for (let i = length(position); i > 0; i--) {\n if (i < index + 1) {\n temp = Number(notificationQueue[position][i - 1]!.vm.component!.props.offset)\n notificationQueue[position][i - 1]!.vm.component!.props.offset = offset\n offset = temp\n }\n }\n }\n if (!notificationQueue[position].length) {\n const wrapper = document.getElementById(`notification-${position}-id`)!\n wrapper.style.removeProperty('height')\n wrapper.style.removeProperty('overflow')\n }\n}\n\nconst createWrapper = (options: NotificationProps) => {\n const position = options.position || 'bottom-right'\n if (document.getElementById(`notification-${position}-id`)) {\n return document.getElementById(`notification-${position}-id`)\n } else {\n const offset = options.offset || 20\n const wrapper = document.createElement('div')\n wrapper.id = `notification-${position}-id`\n Object.assign(\n wrapper.style,\n { position: 'fixed', textAlign: 'center' },\n {\n 'top-right': { top: `${offset}px`, right: `${offset}px` },\n 'top-left': { top: `${offset}px`, left: `${offset}px` },\n 'bottom-left': { bottom: `${offset}px`, left: `${offset}px` },\n 'bottom-right': { bottom: `${offset}px`, right: `${offset}px` }\n }[position]\n )\n wrapper.addEventListener('mouseenter', (e: MouseEvent) => {\n if (length(position)) {\n let innerCount = 0\n let innerOffset = 0\n let width = 0\n let height = 0\n for (let i = length(position); i > 0; i--) {\n notificationQueue[position][i - 1]!.vm.component!.exposed!.clearTimer()\n if (i === length(position)) {\n width = notificationQueue[position][i - 1]!.vm.el?.offsetWidth + 8\n }\n notificationQueue[position][i - 1]!.vm.component!.props.offset = innerOffset\n innerOffset += notificationQueue[position][i - 1]!.vm.el?.offsetHeight / 2 + 5\n if (innerCount < 3) height += notificationQueue[position][i - 1]!.vm.el?.offsetHeight + 10\n innerCount++\n }\n\n Object.assign((e.target as HTMLElement).style, {\n width: `${width}px`,\n height: `${height}px`,\n overflow: 'hidden',\n transition: 'height 0.4s'\n })\n }\n })\n wrapper.addEventListener('mouseleave', (e: MouseEvent) => {\n if (length(position)) {\n let innerOffset = 0\n let innerCount = 0\n let height = 0\n for (let i = length(position); i > 0; i--) {\n notificationQueue[position][i - 1]!.vm.component!.exposed!.startTimer()\n if (i === length(position))\n height = notificationQueue[position][i - 1]!.vm.el?.offsetHeight + 80\n notificationQueue[position][i - 1]!.vm.component!.props.offset = innerOffset\n if (innerCount < 2) innerOffset += 10\n innerCount++\n }\n ;(e.target as HTMLElement).style.transition = 'height 0.45s'\n ;(e.target as HTMLElement).style.height = `${height}px`\n } else {\n ;(e.target as HTMLElement).style.removeProperty('height')\n ;(e.target as HTMLElement).style.removeProperty('overflow')\n }\n })\n document.body.appendChild(wrapper)\n return wrapper\n }\n}\n\nexport const Notification = (options: NotificationProps): void => {\n const position = options.position || 'bottom-right'\n const container = document.createElement('div')\n const id = `notification_${count++}`\n\n if (length(position)) {\n let innerOffset = 0\n let innerCount = 0\n for (let i = length(position); i > 0; i--) {\n if (innerCount < 2) innerOffset += 10\n notificationQueue[position][i - 1]!.vm.component!.props.offset = innerOffset\n innerCount++\n }\n }\n\n const vm = createVNode(UNotification, {\n ...options,\n offset: 0,\n id,\n zIndex: zIndex(),\n onClose: () => {\n close(id, position, options.onClose)\n }\n })\n vm.props!.onDestroy = () => render(null, container)\n render(vm, container)\n notificationQueue[position].push({ vm })\n const wrapper = createWrapper(options)\n wrapper?.appendChild(container.firstElementChild!)\n}\n"],"mappings":";;;;AASA,MAAM,oBAAoB,SAAS;CACjC,gBAAgB,CAAC;CACjB,eAAe,CAAC;CAChB,aAAa,CAAC;CACd,YAAY,CAAC;AACf,CAAC;AAED,MAAM,UAAU,QAAgB;CAC9B,OAAO,kBAAkB,IAAI,CAAC;AAChC;AAEA,IAAI,QAAQ;AAEZ,MAAM,SAAS,IAAY,UAAkB,cAAoC;CAC/E,MAAM,QAAQ,kBAAkB,SAAS,CAAC,WAAW,EAAE,SAAS;EAC9D,OAAO,OAAO,GAAG,UAAW,MAAM;CACpC,CAAC;CACD,IAAI,QAAQ,IAAI;EACd,MAAM,EAAE,OAAO,kBAAkB,SAAS,CAAC;EAC3C,YAAY,EAAE;EACd,IAAI,SAAS,OAAO,kBAAkB,SAAS,CAAC,MAAM,CAAE,GAAG,UAAW,MAAM,MAAM;EAClF,kBAAkB,SAAS,CAAC,OAAO,OAAO,CAAC;EAC3C,IAAI,OAAO;EACX,KAAK,IAAI,IAAI,OAAO,QAAQ,GAAG,IAAI,GAAG,KACpC,IAAI,IAAI,QAAQ,GAAG;GACjB,OAAO,OAAO,kBAAkB,SAAS,CAAC,IAAI,EAAE,CAAE,GAAG,UAAW,MAAM,MAAM;GAC5E,kBAAkB,SAAS,CAAC,IAAI,EAAE,CAAE,GAAG,UAAW,MAAM,SAAS;GACjE,SAAS;EACX;CAEJ;CACA,IAAI,CAAC,kBAAkB,SAAS,CAAC,QAAQ;EACvC,MAAM,UAAU,SAAS,eAAe,gBAAgB,SAAS,IAAI;EACrE,Q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