morya-ui 0.2.9 → 0.3.1

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 (457) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/dist/{Button-DO5oukfg.js → Button-smoDleh0.js} +2 -2
  3. package/dist/{Card-BQfmv5Iw.js → Card-Dsmnzong.js} +1 -1
  4. package/dist/{Checkbox-CL05RRUD.js → Checkbox-BzbAUfyZ.js} +2 -2
  5. package/dist/FlyoutSubmenu-BrUPmJa1.js +45 -0
  6. package/dist/Icon-od9Ob-Ay.js +393 -0
  7. package/dist/Loading-BSsRs6v9.js +420 -0
  8. package/dist/{Pagination-CUwCtWhz.js → Pagination-DrXmzcEy.js} +3 -3
  9. package/dist/Popover-BQ07q4VV.js +179 -0
  10. package/dist/{Radio-DsaKvbhk.js → Radio-rF6zdR5Y.js} +2 -2
  11. package/dist/{ScrollBody-D2IHKP6U.js → ScrollBody-5hUnHj_M.js} +1 -1
  12. package/dist/{Scrollbar-BYnCO8fv.js → Scrollbar-DTeJ8P5b.js} +2 -2
  13. package/dist/Tooltip-D5DO0B3z.js +105 -0
  14. package/dist/VirtualScroller-CHoFCmpP.js +75 -0
  15. package/dist/accordion/index.js +42 -39
  16. package/dist/accordion/style.css +271 -17
  17. package/dist/auto-complete/index.js +185 -124
  18. package/dist/auto-complete/style.css +445 -56
  19. package/dist/auto-complete/style.js +2 -0
  20. package/dist/avatar/index.js +2 -2
  21. package/dist/avatar/style.css +233 -22
  22. package/dist/badge/index.js +25 -20
  23. package/dist/badge/style.css +253 -24
  24. package/dist/block-ui/index.js +26 -13
  25. package/dist/block-ui/style.css +228 -17
  26. package/dist/breadcrumb/index.js +2 -2
  27. package/dist/breadcrumb/style.css +228 -17
  28. package/dist/button/index.js +2 -2
  29. package/dist/button/style.css +229 -18
  30. package/dist/card/index.js +1 -1
  31. package/dist/card/style.css +228 -17
  32. package/dist/carousel/index.js +74 -66
  33. package/dist/carousel/style.css +256 -28
  34. package/dist/cascade-select/index.js +172 -143
  35. package/dist/cascade-select/style.css +460 -61
  36. package/dist/cascade-select/style.js +1 -0
  37. package/dist/checkbox/index.js +2 -2
  38. package/dist/checkbox/style.css +228 -17
  39. package/dist/chip/index.js +2 -2
  40. package/dist/chip/style.css +236 -19
  41. package/dist/command-menu/index.js +58 -45
  42. package/dist/command-menu/style.css +234 -21
  43. package/dist/components/Accordion/Accordion.vue.d.ts +2 -2
  44. package/dist/components/Accordion/Accordion.vue.d.ts.map +1 -1
  45. package/dist/components/Accordion/styles.css +43 -0
  46. package/dist/components/AutoComplete/AutoComplete.vue.d.ts +11 -4
  47. package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
  48. package/dist/components/AutoComplete/styles.css +9 -35
  49. package/dist/components/AutoComplete/types.d.ts +8 -0
  50. package/dist/components/AutoComplete/types.d.ts.map +1 -1
  51. package/dist/components/Avatar/styles.css +4 -4
  52. package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
  53. package/dist/components/Badge/styles.css +25 -7
  54. package/dist/components/BlockUI/BlockUI.vue.d.ts +2 -0
  55. package/dist/components/BlockUI/BlockUI.vue.d.ts.map +1 -1
  56. package/dist/components/BlockUI/types.d.ts +3 -0
  57. package/dist/components/BlockUI/types.d.ts.map +1 -1
  58. package/dist/components/Button/index.d.ts.map +1 -1
  59. package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
  60. package/dist/components/Carousel/styles.css +27 -10
  61. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +2 -0
  62. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
  63. package/dist/components/CascadeSelect/styles.css +39 -38
  64. package/dist/components/CascadeSelect/types.d.ts +3 -0
  65. package/dist/components/CascadeSelect/types.d.ts.map +1 -1
  66. package/dist/components/Chip/styles.css +7 -1
  67. package/dist/components/CommandMenu/CommandMenu.vue.d.ts +2 -0
  68. package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
  69. package/dist/components/CommandMenu/styles.css +2 -0
  70. package/dist/components/CommandMenu/types.d.ts +3 -0
  71. package/dist/components/CommandMenu/types.d.ts.map +1 -1
  72. package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -0
  73. package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts.map +1 -1
  74. package/dist/components/ConfigProvider/types.d.ts +1 -1
  75. package/dist/components/ConfigProvider/types.d.ts.map +1 -1
  76. package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts +2 -1
  77. package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts.map +1 -1
  78. package/dist/components/ConfirmDialog/types.d.ts +3 -0
  79. package/dist/components/ConfirmDialog/types.d.ts.map +1 -1
  80. package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts +2 -0
  81. package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
  82. package/dist/components/ConfirmPopup/types.d.ts +3 -0
  83. package/dist/components/ConfirmPopup/types.d.ts.map +1 -1
  84. package/dist/components/ContextMenu/ContextMenu.vue.d.ts +2 -0
  85. package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
  86. package/dist/components/ContextMenu/styles.css +2 -0
  87. package/dist/components/ContextMenu/types.d.ts +3 -0
  88. package/dist/components/ContextMenu/types.d.ts.map +1 -1
  89. package/dist/components/DataView/DataView.vue.d.ts +7 -7
  90. package/dist/components/DataView/DataView.vue.d.ts.map +1 -1
  91. package/dist/components/DataView/styles.css +0 -20
  92. package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -0
  93. package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
  94. package/dist/components/DatePicker/types.d.ts +3 -0
  95. package/dist/components/DatePicker/types.d.ts.map +1 -1
  96. package/dist/components/Dialog/Dialog.vue.d.ts +2 -0
  97. package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
  98. package/dist/components/Dialog/index.d.ts.map +1 -1
  99. package/dist/components/Dialog/styles.css +190 -4
  100. package/dist/components/Dialog/types.d.ts +3 -0
  101. package/dist/components/Dialog/types.d.ts.map +1 -1
  102. package/dist/components/Drawer/Drawer.vue.d.ts +2 -0
  103. package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
  104. package/dist/components/Drawer/styles.css +189 -4
  105. package/dist/components/Drawer/types.d.ts +3 -0
  106. package/dist/components/Drawer/types.d.ts.map +1 -1
  107. package/dist/components/Dropdown/Dropdown.vue.d.ts +4 -2
  108. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  109. package/dist/components/Dropdown/DropdownNodes.vue.d.ts +8 -9
  110. package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
  111. package/dist/components/Dropdown/styles.css +27 -4
  112. package/dist/components/Dropdown/types.d.ts +3 -0
  113. package/dist/components/Dropdown/types.d.ts.map +1 -1
  114. package/dist/components/Empty/index.d.ts.map +1 -1
  115. package/dist/components/Empty/styles.css +6 -6
  116. package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
  117. package/dist/components/Fieldset/styles.css +17 -6
  118. package/dist/components/FileUpload/FileUpload.vue.d.ts +1 -1
  119. package/dist/components/FloatLabel/styles.css +19 -7
  120. package/dist/components/Form/styles.css +21 -0
  121. package/dist/components/Icon/Icon.vue.d.ts.map +1 -1
  122. package/dist/components/Icon/icon-categories.d.ts.map +1 -1
  123. package/dist/components/Icon/icons-types.d.ts +4 -2
  124. package/dist/components/Icon/icons-types.d.ts.map +1 -1
  125. package/dist/components/Icon/icons.d.ts +250 -561
  126. package/dist/components/Icon/icons.d.ts.map +1 -1
  127. package/dist/components/Icon/index.d.ts +2 -2
  128. package/dist/components/Icon/index.d.ts.map +1 -1
  129. package/dist/components/Icon/styles.css +1 -1
  130. package/dist/components/Input/index.d.ts.map +1 -1
  131. package/dist/components/Input/styles.css +19 -2
  132. package/dist/components/InputTags/styles.css +3 -1
  133. package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
  134. package/dist/components/Layout/styles.css +29 -16
  135. package/dist/components/Layout/types.d.ts +4 -2
  136. package/dist/components/Layout/types.d.ts.map +1 -1
  137. package/dist/components/Listbox/Listbox.vue.d.ts +7 -2
  138. package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
  139. package/dist/components/Listbox/styles.css +10 -0
  140. package/dist/components/Listbox/types.d.ts +5 -0
  141. package/dist/components/Listbox/types.d.ts.map +1 -1
  142. package/dist/components/Loading/Loading.vue.d.ts +2 -0
  143. package/dist/components/Loading/Loading.vue.d.ts.map +1 -1
  144. package/dist/components/Loading/LoadingIndicator.vue.d.ts.map +1 -1
  145. package/dist/components/Loading/loading.d.ts.map +1 -1
  146. package/dist/components/Loading/styles.css +25 -17
  147. package/dist/components/Loading/types.d.ts +3 -0
  148. package/dist/components/Loading/types.d.ts.map +1 -1
  149. package/dist/components/MegaMenu/MegaMenu.vue.d.ts +2 -0
  150. package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
  151. package/dist/components/MegaMenu/styles.css +1 -0
  152. package/dist/components/MegaMenu/types.d.ts +3 -0
  153. package/dist/components/MegaMenu/types.d.ts.map +1 -1
  154. package/dist/components/Menu/Menu.vue.d.ts +3 -1
  155. package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
  156. package/dist/components/Menu/styles.css +16 -9
  157. package/dist/components/Menu/types.d.ts +3 -0
  158. package/dist/components/Menu/types.d.ts.map +1 -1
  159. package/dist/components/Menubar/Menubar.vue.d.ts +2 -0
  160. package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
  161. package/dist/components/Menubar/styles.css +8 -0
  162. package/dist/components/Menubar/types.d.ts +3 -0
  163. package/dist/components/Menubar/types.d.ts.map +1 -1
  164. package/dist/components/Message/Message.vue.d.ts +2 -0
  165. package/dist/components/Message/Message.vue.d.ts.map +1 -1
  166. package/dist/components/Message/types.d.ts +3 -0
  167. package/dist/components/Message/types.d.ts.map +1 -1
  168. package/dist/components/MeterGroup/styles.css +2 -2
  169. package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
  170. package/dist/components/Panel/styles.css +21 -6
  171. package/dist/components/Popover/Popover.vue.d.ts +2 -0
  172. package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
  173. package/dist/components/Popover/types.d.ts +3 -0
  174. package/dist/components/Popover/types.d.ts.map +1 -1
  175. package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -1
  176. package/dist/components/ProgressBar/styles.css +30 -8
  177. package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts.map +1 -1
  178. package/dist/components/ProgressSpinner/styles.css +3 -3
  179. package/dist/components/Result/index.d.ts.map +1 -1
  180. package/dist/components/Result/styles.css +17 -17
  181. package/dist/components/ScrollTop/ScrollTop.vue.d.ts +1 -1
  182. package/dist/components/Scrollbar/Scrollbar.vue.d.ts +1 -1
  183. package/dist/components/Scrollbar/Scrollbar.vue.d.ts.map +1 -1
  184. package/dist/components/Scrollbar/styles.css +3 -3
  185. package/dist/components/Select/Select.vue.d.ts +15 -4
  186. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  187. package/dist/components/Select/index.d.ts.map +1 -1
  188. package/dist/components/Select/styles.css +42 -91
  189. package/dist/components/Select/types.d.ts +19 -1
  190. package/dist/components/Select/types.d.ts.map +1 -1
  191. package/dist/components/Sidebar/styles.css +8 -10
  192. package/dist/components/Skeleton/Skeleton.vue.d.ts +1 -1
  193. package/dist/components/Skeleton/Skeleton.vue.d.ts.map +1 -1
  194. package/dist/components/Slider/Slider.vue.d.ts +1 -1
  195. package/dist/components/Slider/styles.css +9 -0
  196. package/dist/components/SpeedDial/SpeedDial.vue.d.ts +2 -0
  197. package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
  198. package/dist/components/SpeedDial/types.d.ts +3 -0
  199. package/dist/components/SpeedDial/types.d.ts.map +1 -1
  200. package/dist/components/SplitButton/SplitButton.vue.d.ts +2 -0
  201. package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
  202. package/dist/components/SplitButton/styles.css +5 -0
  203. package/dist/components/SplitButton/types.d.ts +3 -0
  204. package/dist/components/SplitButton/types.d.ts.map +1 -1
  205. package/dist/components/Splitter/Splitter.vue.d.ts +5 -3
  206. package/dist/components/Splitter/Splitter.vue.d.ts.map +1 -1
  207. package/dist/components/Splitter/index.d.ts +1 -1
  208. package/dist/components/Splitter/index.d.ts.map +1 -1
  209. package/dist/components/Splitter/styles.css +12 -0
  210. package/dist/components/Splitter/types.d.ts +9 -3
  211. package/dist/components/Splitter/types.d.ts.map +1 -1
  212. package/dist/components/Status/Status.vue.d.ts.map +1 -1
  213. package/dist/components/Status/index.d.ts.map +1 -1
  214. package/dist/components/Status/styles.css +18 -16
  215. package/dist/components/Switch/Switch.vue.d.ts +1 -1
  216. package/dist/components/Table/Table.vue.d.ts +26 -26
  217. package/dist/components/Table/Table.vue.d.ts.map +1 -1
  218. package/dist/components/Table/TableLoadingLine.vue.d.ts.map +1 -1
  219. package/dist/components/Table/hooks/useTotalItems.d.ts.map +1 -1
  220. package/dist/components/Table/styles.css +60 -40
  221. package/dist/components/Tag/styles.css +4 -2
  222. package/dist/components/TieredMenu/TieredMenu.vue.d.ts +3 -1
  223. package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
  224. package/dist/components/TieredMenu/styles.css +2 -0
  225. package/dist/components/TieredMenu/types.d.ts +3 -0
  226. package/dist/components/TieredMenu/types.d.ts.map +1 -1
  227. package/dist/components/Toast/Toast.vue.d.ts +2 -0
  228. package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
  229. package/dist/components/Toast/types.d.ts +3 -0
  230. package/dist/components/Toast/types.d.ts.map +1 -1
  231. package/dist/components/Toolbar/styles.css +1 -0
  232. package/dist/components/Tooltip/Tooltip.vue.d.ts +2 -0
  233. package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
  234. package/dist/components/Tooltip/types.d.ts +3 -0
  235. package/dist/components/Tooltip/types.d.ts.map +1 -1
  236. package/dist/components/Tree/styles.css +1 -1
  237. package/dist/components/TreeSelect/TreeSelect.vue.d.ts +2 -0
  238. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  239. package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts +2 -0
  240. package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts.map +1 -1
  241. package/dist/components/TreeSelect/styles.css +5 -57
  242. package/dist/components/TreeSelect/types.d.ts +3 -0
  243. package/dist/components/TreeSelect/types.d.ts.map +1 -1
  244. package/dist/components/TreeTable/styles.css +1 -1
  245. package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts +7 -3
  246. package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts.map +1 -1
  247. package/dist/components/VirtualScroller/index.d.ts +1 -1
  248. package/dist/components/VirtualScroller/index.d.ts.map +1 -1
  249. package/dist/components/VirtualScroller/types.d.ts +5 -0
  250. package/dist/components/VirtualScroller/types.d.ts.map +1 -1
  251. package/dist/{config-BdK5ccNT.js → config-CapALqt3.js} +10 -2
  252. package/dist/config-provider/index.js +5 -3
  253. package/dist/config-provider/style.css +247 -19
  254. package/dist/confirm-dialog/index.js +87 -74
  255. package/dist/confirm-dialog/style.css +419 -22
  256. package/dist/confirm-popup/index.js +82 -68
  257. package/dist/confirm-popup/style.css +229 -18
  258. package/dist/context-menu/index.js +112 -99
  259. package/dist/context-menu/style.css +234 -21
  260. package/dist/data-view/index.js +49 -49
  261. package/dist/data-view/style.css +623 -123
  262. package/dist/data-view/style.js +1 -1
  263. package/dist/date-picker/index.js +166 -152
  264. package/dist/date-picker/style.css +229 -18
  265. package/dist/dialog/index.js +76 -63
  266. package/dist/dialog/style.css +419 -22
  267. package/dist/divider/style.css +228 -17
  268. package/dist/dock/index.js +3 -3
  269. package/dist/dock/style.css +229 -18
  270. package/dist/drawer/index.js +72 -61
  271. package/dist/drawer/style.css +418 -22
  272. package/dist/dropdown/index.js +157 -124
  273. package/dist/dropdown/style.css +259 -25
  274. package/dist/empty/index.js +3 -3
  275. package/dist/empty/style.css +235 -24
  276. package/dist/fieldset/index.js +19 -19
  277. package/dist/fieldset/style.css +246 -24
  278. package/dist/file-upload/index.js +3 -3
  279. package/dist/file-upload/style.css +229 -18
  280. package/dist/flex/index.js +2 -2
  281. package/dist/flex/style.css +228 -17
  282. package/dist/float-label/index.js +1 -1
  283. package/dist/float-label/style.css +247 -24
  284. package/dist/fluid/index.js +1 -1
  285. package/dist/fluid/style.css +228 -17
  286. package/dist/form/index.js +2 -2
  287. package/dist/form/style.css +249 -17
  288. package/dist/gallery/index.js +4 -4
  289. package/dist/gallery/style.css +232 -21
  290. package/dist/grid/index.js +1 -1
  291. package/dist/grid/style.css +228 -17
  292. package/dist/icon/index.js +93 -39
  293. package/dist/icon/style.css +229 -18
  294. package/dist/icon-COrt_N8A.js +18 -0
  295. package/dist/icon-field/index.js +2 -2
  296. package/dist/icon-field/style.css +247 -19
  297. package/dist/index.d.ts +5 -5
  298. package/dist/index.d.ts.map +1 -1
  299. package/dist/index.js +5964 -5327
  300. package/dist/inplace/index.js +1 -1
  301. package/dist/inplace/style.css +228 -17
  302. package/dist/input/index.js +4 -4
  303. package/dist/input/style.css +248 -20
  304. package/dist/input-color/index.js +3 -3
  305. package/dist/input-color/style.css +228 -17
  306. package/dist/input-group/index.js +1 -1
  307. package/dist/input-group/style.css +228 -17
  308. package/dist/input-number/index.js +4 -4
  309. package/dist/input-number/style.css +229 -18
  310. package/dist/input-otp/index.js +3 -3
  311. package/dist/input-otp/style.css +228 -17
  312. package/dist/input-password/index.js +4 -4
  313. package/dist/input-password/style.css +229 -18
  314. package/dist/input-tags/index.js +4 -4
  315. package/dist/input-tags/style.css +232 -19
  316. package/dist/knob/index.js +1 -1
  317. package/dist/knob/style.css +228 -17
  318. package/dist/label/index.js +1 -1
  319. package/dist/label/style.css +228 -17
  320. package/dist/layout/index.js +7 -7
  321. package/dist/layout/style.css +261 -37
  322. package/dist/listbox/index.js +142 -87
  323. package/dist/listbox/style.css +269 -20
  324. package/dist/listbox/style.js +1 -0
  325. package/dist/loading/index.js +32 -407
  326. package/dist/loading/style.css +253 -34
  327. package/dist/{locale-B36KH7c3.js → locale-Bzm2nbEp.js} +1 -1
  328. package/dist/mega-menu/index.js +131 -119
  329. package/dist/mega-menu/style.css +230 -18
  330. package/dist/menu/index.js +278 -261
  331. package/dist/menu/style.css +248 -30
  332. package/dist/menubar/index.js +148 -133
  333. package/dist/menubar/style.css +240 -21
  334. package/dist/message/index.js +120 -107
  335. package/dist/message/style.css +229 -18
  336. package/dist/meter-group/index.js +1 -1
  337. package/dist/meter-group/style.css +230 -19
  338. package/dist/order-list/index.js +4 -4
  339. package/dist/order-list/style.css +229 -18
  340. package/dist/page/index.js +3 -3
  341. package/dist/page/style.css +229 -18
  342. package/dist/pagination/index.js +1 -1
  343. package/dist/pagination/style.css +229 -18
  344. package/dist/panel/index.js +31 -31
  345. package/dist/panel/style.css +250 -24
  346. package/dist/pick-list/index.js +4 -4
  347. package/dist/pick-list/style.css +229 -18
  348. package/dist/popover/index.js +1 -1
  349. package/dist/popover/style.css +228 -17
  350. package/dist/progress-bar/index.js +5 -2
  351. package/dist/progress-bar/style.css +258 -25
  352. package/dist/progress-spinner/index.js +105 -2
  353. package/dist/progress-spinner/style.css +231 -20
  354. package/dist/radio/index.js +2 -2
  355. package/dist/radio/style.css +228 -17
  356. package/dist/rating/index.js +4 -4
  357. package/dist/rating/style.css +229 -18
  358. package/dist/result/index.js +3 -3
  359. package/dist/result/style.css +246 -35
  360. package/dist/scroll-top/index.js +4 -4
  361. package/dist/scroll-top/style.css +232 -21
  362. package/dist/scrollbar/index.js +1 -1
  363. package/dist/scrollbar/style.css +231 -20
  364. package/dist/select/index.js +343 -181
  365. package/dist/select/style.css +491 -114
  366. package/dist/select/style.js +2 -0
  367. package/dist/select-button/index.js +2 -2
  368. package/dist/select-button/style.css +228 -17
  369. package/dist/shared/FlyoutSubmenu.vue.d.ts.map +1 -1
  370. package/dist/shared/componentDefaults.d.ts +62 -0
  371. package/dist/shared/componentDefaults.d.ts.map +1 -1
  372. package/dist/shared/config.d.ts +13 -2
  373. package/dist/shared/config.d.ts.map +1 -1
  374. package/dist/shared/menu/icon.d.ts.map +1 -1
  375. package/dist/shared/styles/control-suffix.css +13 -2
  376. package/dist/shared/styles/select-overlay.css +175 -0
  377. package/dist/shared/useFloatingViewportSync.d.ts +10 -0
  378. package/dist/shared/useFloatingViewportSync.d.ts.map +1 -0
  379. package/dist/shared/usePauseOffscreen.d.ts +14 -0
  380. package/dist/shared/usePauseOffscreen.d.ts.map +1 -0
  381. package/dist/sidebar/index.js +4 -4
  382. package/dist/sidebar/style.css +237 -28
  383. package/dist/skeleton/index.js +34 -19
  384. package/dist/skeleton/style.css +228 -17
  385. package/dist/slider/index.js +3 -3
  386. package/dist/slider/style.css +237 -17
  387. package/dist/space/index.js +2 -2
  388. package/dist/space/style.css +228 -17
  389. package/dist/speed-dial/index.js +112 -98
  390. package/dist/speed-dial/style.css +229 -18
  391. package/dist/split-button/index.js +106 -92
  392. package/dist/split-button/style.css +234 -18
  393. package/dist/splitter/index.js +94 -80
  394. package/dist/splitter/style.css +240 -17
  395. package/dist/status/index.js +30 -26
  396. package/dist/status/style.css +247 -34
  397. package/dist/stepper/index.js +2 -2
  398. package/dist/stepper/style.css +229 -18
  399. package/dist/styles/base.css +132 -5
  400. package/dist/styles.css +1 -1
  401. package/dist/switch/index.js +2 -2
  402. package/dist/switch/style.css +228 -17
  403. package/dist/table/index.js +351 -349
  404. package/dist/table/style.css +687 -147
  405. package/dist/table/style.js +1 -1
  406. package/dist/tabs/index.js +4 -4
  407. package/dist/tabs/style.css +232 -21
  408. package/dist/tag/index.js +3 -3
  409. package/dist/tag/style.css +233 -20
  410. package/dist/terminal/index.js +3 -3
  411. package/dist/terminal/style.css +228 -17
  412. package/dist/textarea/index.js +4 -4
  413. package/dist/textarea/style.css +229 -18
  414. package/dist/theme/index.d.ts +4 -0
  415. package/dist/theme/index.d.ts.map +1 -1
  416. package/dist/theme/motionPresets.d.ts +30 -0
  417. package/dist/theme/motionPresets.d.ts.map +1 -0
  418. package/dist/theme/styles.css +96 -12
  419. package/dist/theme/tokens.d.ts +17 -0
  420. package/dist/theme/tokens.d.ts.map +1 -1
  421. package/dist/theme/useMotion.d.ts.map +1 -1
  422. package/dist/theme/useMotionTransition.d.ts +19 -0
  423. package/dist/theme/useMotionTransition.d.ts.map +1 -0
  424. package/dist/tiered-menu/index.js +81 -67
  425. package/dist/tiered-menu/style.css +234 -21
  426. package/dist/timeline/index.js +3 -3
  427. package/dist/timeline/style.css +232 -21
  428. package/dist/toast/index.js +49 -36
  429. package/dist/toast/style.css +229 -18
  430. package/dist/toggle-button/index.js +3 -3
  431. package/dist/toggle-button/style.css +229 -18
  432. package/dist/toolbar/index.js +1 -1
  433. package/dist/toolbar/style.css +229 -17
  434. package/dist/tooltip/index.js +1 -1
  435. package/dist/tooltip/style.css +228 -17
  436. package/dist/tree/index.js +5 -8
  437. package/dist/tree/style.css +230 -19
  438. package/dist/tree-select/index.js +228 -203
  439. package/dist/tree-select/style.css +427 -81
  440. package/dist/tree-select/style.js +1 -0
  441. package/dist/tree-table/index.js +4 -4
  442. package/dist/tree-table/style.css +230 -19
  443. package/dist/{useComponentAttrs-BTYEe61P.js → useComponentAttrs-e-5QAjdw.js} +1 -1
  444. package/dist/useFloatingViewportSync-DZdJ7W8n.js +19 -0
  445. package/dist/useMotionTransition-Bxnnb_9u.js +49 -0
  446. package/dist/usePauseOffscreen-BIikV_gj.js +25 -0
  447. package/dist/virtual-scroller/index.js +2 -56
  448. package/dist/virtual-scroller/style.css +231 -20
  449. package/package.json +2 -1
  450. package/dist/FlyoutSubmenu-B_bkgKag.js +0 -49
  451. package/dist/Icon-B6IBrJ5S.js +0 -606
  452. package/dist/Popover-Dq_p0vib.js +0 -166
  453. package/dist/ProgressSpinner-DuBpPkna.js +0 -90
  454. package/dist/Tooltip-CU1xFt_N.js +0 -93
  455. package/dist/components/Icon/icons-tabler.d.ts +0 -77
  456. package/dist/components/Icon/icons-tabler.d.ts.map +0 -1
  457. package/dist/icon-iOBeyIRp.js +0 -27
@@ -1,18 +1,18 @@
1
- import { r as e } from "../useComponentAttrs-BTYEe61P.js";
1
+ import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
2
2
  import { t } from "../useControllable-elmWaz23.js";
3
- import { t as n } from "../Icon-B6IBrJ5S.js";
4
- import { t as r } from "../Scrollbar-BYnCO8fv.js";
5
- import { t as i } from "../Checkbox-CL05RRUD.js";
6
- import { t as a } from "../Pagination-CUwCtWhz.js";
7
- import { t as o } from "../ProgressSpinner-DuBpPkna.js";
8
- import { t as s } from "../Tooltip-CU1xFt_N.js";
9
- import { t as c } from "../Radio-DsaKvbhk.js";
10
- import { o as l } from "../config-BdK5ccNT.js";
11
- import { n as u } from "../locale-B36KH7c3.js";
3
+ import { t as n } from "../Icon-od9Ob-Ay.js";
4
+ import { t as r } from "../Scrollbar-DTeJ8P5b.js";
5
+ import { t as i } from "../Checkbox-BzbAUfyZ.js";
6
+ import { t as a } from "../Loading-BSsRs6v9.js";
7
+ import { t as o } from "../Pagination-DrXmzcEy.js";
8
+ import { t as s } from "../Tooltip-D5DO0B3z.js";
9
+ import { t as c } from "../Radio-rF6zdR5Y.js";
10
+ import { o as l } from "../config-CapALqt3.js";
11
+ import { n as u } from "../locale-Bzm2nbEp.js";
12
12
  import "./style.js";
13
- import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as _, defineComponent as v, guardReactiveProps as y, mergeProps as b, normalizeClass as x, normalizeProps as S, normalizeStyle as C, openBlock as w, provide as ee, ref as T, renderList as E, renderSlot as D, toDisplayString as O, toRefs as te, unref as k, useAttrs as ne, useSlots as re, watch as A, withCtx as ie, withModifiers as j } from "vue";
13
+ import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as ee, createVNode as _, defineComponent as v, guardReactiveProps as y, mergeProps as b, normalizeClass as x, normalizeProps as S, normalizeStyle as C, openBlock as w, provide as T, ref as E, renderList as D, renderSlot as O, toDisplayString as k, toRefs as te, unref as A, useAttrs as ne, useSlots as re, watch as j, withCtx as M, withModifiers as N } from "vue";
14
14
  //#region src/components/Table/hooks/useClickRow.ts
15
- function ae(e, t, n, r) {
15
+ function ie(e, t, n, r) {
16
16
  return { clickRow: (i, a, o, s) => {
17
17
  if (e.value !== o) return;
18
18
  let c = { ...i };
@@ -24,7 +24,7 @@ function ae(e, t, n, r) {
24
24
  }
25
25
  //#endregion
26
26
  //#region src/components/Table/utils.ts
27
- function M(e, t) {
27
+ function P(e, t) {
28
28
  if (e.includes(".")) {
29
29
  let n = e.split("."), r = t;
30
30
  for (let e of n) if (r && typeof r == "object") r = r[e];
@@ -33,22 +33,22 @@ function M(e, t) {
33
33
  }
34
34
  return t[e] ?? "";
35
35
  }
36
- function oe(e, t) {
37
- let n = M(e, t);
36
+ function ae(e, t) {
37
+ let n = P(e, t);
38
38
  return Array.isArray(n) ? n.join(",") : String(n ?? "");
39
39
  }
40
- function se(e, t, n = "id") {
40
+ function oe(e, t, n = "id") {
41
41
  let r = e[n];
42
42
  return typeof r == "string" || typeof r == "number" ? r : t;
43
43
  }
44
- function N(e, t, n = "id") {
44
+ function F(e, t, n = "id") {
45
45
  let r = e[n], i = t[n];
46
46
  return (typeof r == "string" || typeof r == "number") && (typeof i == "string" || typeof i == "number") ? r === i : JSON.stringify(e) === JSON.stringify(t);
47
47
  }
48
48
  //#endregion
49
49
  //#region src/components/Table/hooks/useExpandableRow.ts
50
- function ce(e, t, n, r) {
51
- let i = T([]), a = f(() => e.value ?? i.value), o = (e, r) => se(e, n.value + r, t.value);
50
+ function se(e, t, n, r) {
51
+ let i = E([]), a = f(() => e.value ?? i.value), o = (e, r) => oe(e, n.value + r, t.value);
52
52
  return {
53
53
  expandedKeys: a,
54
54
  isRowExpanded: (e, t) => a.value.includes(o(e, t)),
@@ -64,9 +64,9 @@ function ce(e, t, n, r) {
64
64
  }
65
65
  //#endregion
66
66
  //#region src/components/Table/hooks/useFixedColumn.ts
67
- var le = (e) => e.fixed === "right", ue = (e) => !!e.fixed;
68
- function de(e) {
69
- let t = f(() => e.value.filter(ue)), n = f(() => e.value.filter((e) => ue(e) && !le(e))), r = f(() => e.value.filter(le));
67
+ var ce = (e) => e.fixed === "right", le = (e) => !!e.fixed;
68
+ function ue(e) {
69
+ let t = f(() => e.value.filter(le)), n = f(() => e.value.filter((e) => le(e) && !ce(e))), r = f(() => e.value.filter(ce));
70
70
  return {
71
71
  fixedHeaders: t,
72
72
  lastFixedColumn: f(() => n.value.length ? n.value[n.value.length - 1].value : ""),
@@ -88,23 +88,23 @@ function de(e) {
88
88
  })
89
89
  };
90
90
  }
91
- function fe(e, t, n, r, i, a, o, s, c, l, u, d, p, m, h, g, _, v, y, b) {
92
- let x = f(() => o.value.some((e) => e.fixed)), S = f(() => x.value ? o.value.filter((e) => e.fixed && e.fixed !== "right") : []), C = f(() => x.value ? o.value.filter((e) => e.fixed === "right") : []), w = f(() => o.value.filter((e) => !e.fixed)), ee = (e, t) => Array.isArray(e) && Array.isArray(t) ? {
91
+ function de(e, t, n, r, i, a, o, s, c, l, u, d, p, m, h, g, ee, _, v, y) {
92
+ let b = f(() => o.value.some((e) => e.fixed)), x = f(() => b.value ? o.value.filter((e) => e.fixed && e.fixed !== "right") : []), S = f(() => b.value ? o.value.filter((e) => e.fixed === "right") : []), C = f(() => o.value.filter((e) => !e.fixed)), w = (e, t) => Array.isArray(e) && Array.isArray(t) ? {
93
93
  sortBy: e,
94
94
  sortDesc: t.map((e) => e === "desc")
95
95
  } : e === "" ? null : {
96
96
  sortBy: h.value,
97
97
  sortDesc: g.value === "desc"
98
- }, E = T(ee(h.value, g.value)), D = f({
99
- get: () => v.value === "emit" ? ee(h.value, g.value) : E.value,
98
+ }, T = E(w(h.value, g.value)), D = f({
99
+ get: () => _.value === "emit" ? w(h.value, g.value) : T.value,
100
100
  set: (e) => {
101
- E.value = e;
101
+ T.value = e;
102
102
  }
103
103
  }), O = f(() => {
104
104
  let o = [
105
- ...S.value,
106
- ...w.value,
107
- ...C.value
105
+ ...x.value,
106
+ ...C.value,
107
+ ...S.value
108
108
  ].map((e) => {
109
109
  let t = { ...e };
110
110
  if (t.sortable && (t.sortType = "none"), p.value) {
@@ -121,22 +121,22 @@ function fe(e, t, n, r, i, a, o, s, c, l, u, d, p, m, h, g, _, v, y, b) {
121
121
  }), u = s.value ? [{
122
122
  text: "",
123
123
  value: "expand",
124
- fixed: i.value || x.value,
124
+ fixed: i.value || b.value,
125
125
  width: n.value
126
126
  }, ...o] : o, d = m.value ? [{
127
127
  text: e.value,
128
128
  value: "index",
129
- fixed: a.value || x.value,
129
+ fixed: a.value || b.value,
130
130
  width: c.value
131
131
  }, ...u] : u, f = l.value === "checkbox" ? [{
132
132
  text: "checkbox",
133
133
  value: "checkbox",
134
- fixed: r.value || x.value,
134
+ fixed: r.value || b.value,
135
135
  width: t.value ?? 48
136
136
  }] : l.value === "radio" ? [{
137
137
  text: "",
138
138
  value: "radio",
139
- fixed: r.value || x.value,
139
+ fixed: r.value || b.value,
140
140
  width: t.value ?? 48
141
141
  }] : [];
142
142
  return f.length ? [...f, ...d] : d;
@@ -147,16 +147,16 @@ function fe(e, t, n, r, i, a, o, s, c, l, u, d, p, m, h, g, _, v, y, b) {
147
147
  headersForRender: O,
148
148
  updateSortField: (e, t) => {
149
149
  let n = null;
150
- if (n = t === "none" ? "asc" : t === "asc" ? "desc" : d.value ? "asc" : null, u.value && y(e, n), v.value !== "emit") {
151
- if (E.value && Array.isArray(E.value.sortBy) && Array.isArray(E.value.sortDesc)) {
152
- let t = E.value.sortBy.indexOf(e);
153
- t === -1 ? n !== null && (E.value.sortBy.push(e), E.value.sortDesc.push(n === "desc")) : n === null ? (E.value.sortDesc.splice(t, 1), E.value.sortBy.splice(t, 1)) : E.value.sortDesc[t] = n === "desc";
154
- } else n === null ? E.value = null : E.value = {
150
+ if (n = t === "none" ? "asc" : t === "asc" ? "desc" : d.value ? "asc" : null, u.value && v(e, n), _.value !== "emit") {
151
+ if (T.value && Array.isArray(T.value.sortBy) && Array.isArray(T.value.sortDesc)) {
152
+ let t = T.value.sortBy.indexOf(e);
153
+ t === -1 ? n !== null && (T.value.sortBy.push(e), T.value.sortDesc.push(n === "desc")) : n === null ? (T.value.sortDesc.splice(t, 1), T.value.sortBy.splice(t, 1)) : T.value.sortDesc[t] = n === "desc";
154
+ } else n === null ? T.value = null : T.value = {
155
155
  sortBy: e,
156
156
  sortDesc: n === "desc"
157
157
  };
158
158
  }
159
- b("sort", {
159
+ y("sort", {
160
160
  sortField: e,
161
161
  sortOrder: n
162
162
  });
@@ -167,11 +167,11 @@ function fe(e, t, n, r, i, a, o, s, c, l, u, d, p, m, h, g, _, v, y, b) {
167
167
  }
168
168
  //#endregion
169
169
  //#region src/components/Table/hooks/usePageItems.ts
170
- function pe(e, t, n, r, i, a, o, s, c, l) {
170
+ function fe(e, t, n, r, i, a, o, s, c, l) {
171
171
  let u = f(() => (e.value - 1) * i.value + 1), d = f(() => n.value ? Math.min(c.value, e.value * i.value) : Math.min(s.value.length, e.value * i.value)), p = f(() => n.value ? r.value : s.value.slice(u.value - 1, d.value)), m = f(() => o.value ? p.value.map((e, t) => ({
172
172
  index: u.value + t,
173
173
  ...e
174
- })) : p.value), h = f(() => a.value.length === 0 || a.value.every((e) => s.value.every((t) => !N(e, t, l.value))) ? "noneSelected" : a.value.length === s.value.length && a.value.every((e) => s.value.some((t) => N(e, t, l.value))) ? "allSelected" : "partSelected");
174
+ })) : p.value), h = f(() => a.value.length === 0 || a.value.every((e) => s.value.every((t) => !F(e, t, l.value))) ? "noneSelected" : a.value.length === s.value.length && a.value.every((e) => s.value.some((t) => F(e, t, l.value))) ? "allSelected" : "partSelected");
175
175
  return {
176
176
  currentPageFirstIndex: u,
177
177
  currentPageLastIndex: d,
@@ -185,7 +185,7 @@ function pe(e, t, n, r, i, a, o, s, c, l) {
185
185
  })) : m.value.map((e) => {
186
186
  let t = { ...e };
187
187
  return delete t.index, {
188
- checkbox: a.value.some((e) => N(e, t, l.value)),
188
+ checkbox: a.value.some((e) => F(e, t, l.value)),
189
189
  ...e
190
190
  };
191
191
  }) : m.value)
@@ -193,8 +193,8 @@ function pe(e, t, n, r, i, a, o, s, c, l) {
193
193
  }
194
194
  //#endregion
195
195
  //#region src/components/Table/hooks/usePagination.ts
196
- function me(e, t, n, r, i, a, o) {
197
- let s = T(a.value ? a.value.page : e.value), c = f(() => Math.ceil(r.value / i.value)), l = f(() => c.value === 0 || s.value === c.value), u = f(() => s.value === 1);
196
+ function pe(e, t, n, r, i, a, o) {
197
+ let s = E(a.value ? a.value.page : e.value), c = f(() => Math.ceil(r.value / i.value)), l = f(() => c.value === 0 || s.value === c.value), u = f(() => s.value === 1);
198
198
  return {
199
199
  currentPaginationNumber: s,
200
200
  maxPaginationNumber: c,
@@ -216,8 +216,8 @@ function me(e, t, n, r, i, a, o) {
216
216
  }
217
217
  //#endregion
218
218
  //#region src/components/Table/hooks/useRows.ts
219
- function he(e, t, n, r) {
220
- let i = f(() => !e.value && !t.value.includes(r.value) ? [r.value, ...t.value] : t.value), a = T(n.value ? n.value.rowsPerPage : r.value);
219
+ function me(e, t, n, r) {
220
+ let i = f(() => !e.value && !t.value.includes(r.value) ? [r.value, ...t.value] : t.value), a = E(n.value ? n.value.rowsPerPage : r.value);
221
221
  return {
222
222
  rowsItemsComputed: i,
223
223
  rowsPerPageRef: a,
@@ -228,7 +228,7 @@ function he(e, t, n, r) {
228
228
  }
229
229
  //#endregion
230
230
  //#region src/components/Table/hooks/useServerOptions.ts
231
- function ge(e, t, n) {
231
+ function he(e, t, n) {
232
232
  let r = f({
233
233
  get: () => {
234
234
  if (!e.value) return null;
@@ -275,16 +275,16 @@ function ge(e, t, n) {
275
275
  }
276
276
  //#endregion
277
277
  //#region src/components/Table/hooks/useTotalItems.ts
278
- function P(e, t, n) {
278
+ function I(e, t, n) {
279
279
  if (typeof e == "number" && typeof t == "number") return e < t ? n ? 1 : -1 : e > t ? n ? -1 : 1 : 0;
280
280
  let r = String(e ?? ""), i = String(t ?? "");
281
281
  return r < i ? n ? 1 : -1 : r > i ? n ? -1 : 1 : 0;
282
282
  }
283
- function F(e, t) {
283
+ function L(e, t) {
284
284
  return typeof t == "function" ? t(e) : Array.isArray(t) ? t.includes(e) : e === t || String(e ?? "") === String(t);
285
285
  }
286
- function _e(e, t, n, r, i, a, o, s, c, l, u, d) {
287
- let p = (e) => typeof o.value == "string" && o.value !== "" ? String(M(o.value, e)) : Array.isArray(o.value) ? o.value.map((t) => String(M(t, e))).join("") : Object.values(e).join(" "), m = f(() => {
286
+ function ge(e, t, n, r, i, a, o, s, c, l, u, d) {
287
+ let p = (e) => typeof o.value == "string" && o.value !== "" ? String(P(o.value, e)) : Array.isArray(o.value) ? o.value.map((t) => String(P(t, e))).join("") : Object.values(e).join(" "), m = f(() => {
288
288
  if (!r.value && s.value !== "") {
289
289
  let e = s.value.toLowerCase();
290
290
  return i.value.filter((t) => p(t).toLowerCase().includes(e));
@@ -292,9 +292,9 @@ function _e(e, t, n, r, i, a, o, s, c, l, u, d) {
292
292
  return i.value;
293
293
  }), h = f(() => {
294
294
  let e = [...m.value];
295
- if (n.value) for (let [t, r] of Object.entries(n.value)) r != null && r !== "" && (e = e.filter((e) => F(M(t, e), r)));
295
+ if (n.value) for (let [t, r] of Object.entries(n.value)) r != null && r !== "" && (e = e.filter((e) => L(P(t, e), r)));
296
296
  if (t.value) for (let n of t.value) e = e.filter((e) => {
297
- let { field: t, comparison: r, criteria: i } = n, a = M(String(t), e);
297
+ let { field: t, comparison: r, criteria: i } = n, a = P(String(t), e);
298
298
  if (typeof r == "function") return r(a, i);
299
299
  switch (r) {
300
300
  case "=": return a === i;
@@ -313,123 +313,119 @@ function _e(e, t, n, r, i, a, o, s, c, l, u, d) {
313
313
  });
314
314
  return e;
315
315
  });
316
- A(h, (e) => {}, {
317
- immediate: !0,
318
- deep: !0
319
- });
320
316
  function g(e, t, n, r) {
321
317
  let i = e[r], a = t[r];
322
318
  return (r === 0 ? n : g(e, t, n, r - 1)).sort((t, n) => {
323
- for (let i = 0; i < r; i += 1) if (M(e[i], t) !== M(e[i], n)) return 0;
324
- return P(M(i, t), M(i, n), a);
319
+ for (let i = 0; i < r; i += 1) if (P(e[i], t) !== P(e[i], n)) return 0;
320
+ return I(P(i, t), P(i, n), a);
325
321
  });
326
322
  }
327
- let _ = f(() => {
323
+ let ee = f(() => {
328
324
  if (r.value) return i.value;
329
325
  if (e.value === null) return h.value;
330
326
  let { sortBy: t, sortDesc: n } = e.value, a = [...h.value];
331
- return l.value && Array.isArray(t) && Array.isArray(n) ? t.length === 0 ? a : g(t, n, a, t.length - 1) : a.sort((e, r) => P(M(t, e), M(t, r), n));
332
- }), v = f(() => r.value ? c.value : _.value.length), y = f({
327
+ return l.value && Array.isArray(t) && Array.isArray(n) ? t.length === 0 ? a : g(t, n, a, t.length - 1) : a.sort((e, r) => I(P(t, e), P(t, r), n));
328
+ }), _ = f(() => r.value ? c.value : ee.value.length), v = f({
333
329
  get: () => a.value ?? [],
334
330
  set: (e) => d("update:selection", e)
335
331
  });
336
332
  return {
337
- totalItems: _,
338
- selectItemsComputed: y,
339
- totalItemsLength: v,
333
+ totalItems: ee,
334
+ selectItemsComputed: v,
335
+ totalItemsLength: _,
340
336
  toggleSelectAll: (e) => {
341
- y.value = e ? _.value : [], e && d("selectAll");
337
+ v.value = e ? ee.value : [], e && d("selectAll");
342
338
  },
343
339
  toggleSelectItem: (e) => {
344
340
  let t = e.checkbox, n = { ...e };
345
- delete n.checkbox, delete n.index, t ? (y.value = y.value.filter((e) => !N(e, n, u.value)), d("deselectRow", n)) : (y.value = [n, ...y.value], d("selectRow", n));
341
+ delete n.checkbox, delete n.index, t ? (v.value = v.value.filter((e) => !F(e, n, u.value)), d("deselectRow", n)) : (v.value = [n, ...v.value], d("selectRow", n));
346
342
  }
347
343
  };
348
344
  }
349
- function ve(e) {
345
+ function _e(e) {
350
346
  if (e) return e === "left" || e === "start" ? "start" : e === "right" || e === "end" ? "end" : "center";
351
347
  }
352
- function ye(e) {
348
+ function ve(e) {
353
349
  if (e === !0 || e === "left") return "left";
354
350
  if (e === "right") return "right";
355
351
  }
356
- function be(e) {
352
+ function ye(e) {
357
353
  return {
358
354
  text: e.label,
359
355
  value: e.key,
360
356
  sortable: e.sortable,
361
- fixed: ye(e.fixed),
357
+ fixed: ve(e.fixed),
362
358
  width: e.width,
363
359
  minWidth: e.minWidth ?? (e.width ? void 0 : 80),
364
- align: ve(e.align),
360
+ align: _e(e.align),
365
361
  render: e.render,
366
362
  showOverflowTooltip: e.showOverflowTooltip
367
363
  };
368
364
  }
369
- function xe(e) {
370
- return e.map(be);
365
+ function be(e) {
366
+ return e.map(ye);
371
367
  }
372
- function Se(e) {
368
+ function xe(e) {
373
369
  return e ?? "asc";
374
370
  }
375
- function Ce(e) {
371
+ function Se(e) {
376
372
  return e ?? "";
377
373
  }
378
374
  //#endregion
379
- //#region \0plugin-vue:export-helper
380
- var I = (e, t) => {
381
- let n = e.__vccOpts || e;
382
- for (let [e, r] of t) n[e] = r;
383
- return n;
384
- }, we = {}, Te = { class: "loader-line" };
385
- function L(e, t) {
386
- return w(), h("div", Te);
387
- }
388
- var Ee = /*#__PURE__*/ I(we, [["render", L]]), De = ["aria-label"], Oe = ["aria-busy"], ke = ["id"], Ae = [
375
+ //#region src/components/Table/TableLoadingLine.vue?vue&type=script&setup=true&lang.ts
376
+ var R = ["aria-label"], Ce = /* @__PURE__ */ v({
377
+ __name: "TableLoadingLine",
378
+ setup(e) {
379
+ let t = u();
380
+ return (e, n) => (w(), h("div", {
381
+ class: "m-table__loading-line",
382
+ role: "status",
383
+ "aria-label": A(t).loading
384
+ }, null, 8, R));
385
+ }
386
+ }), we = ["aria-label"], Te = ["aria-busy"], Ee = ["id"], De = [
389
387
  "aria-sort",
390
388
  "tabindex",
391
389
  "onClick",
392
390
  "onKeydown"
393
- ], je = {
391
+ ], Oe = {
394
392
  key: 0,
395
393
  class: "m-table__cell-inner m-table__cell-inner--selection"
396
- }, Me = {
394
+ }, ke = {
397
395
  key: 1,
398
396
  class: "m-table__cell-inner m-table__cell-inner--selection"
399
- }, Ne = ["title"], Pe = {
397
+ }, Ae = ["title"], je = {
400
398
  key: 4,
401
- class: "m-table__caret-wrapper"
402
- }, Fe = {
399
+ class: "m-table__sort",
400
+ "aria-hidden": "true"
401
+ }, Me = {
403
402
  key: 5,
404
403
  class: "m-table__multi-sort-number"
405
- }, Ie = {
404
+ }, Ne = {
406
405
  key: 3,
407
406
  class: "m-table__body"
408
- }, Le = [
407
+ }, Pe = [
409
408
  "onClick",
410
409
  "onDblclick",
411
410
  "onContextmenu"
412
- ], Re = ["onClick"], ze = [
411
+ ], Fe = ["onClick"], Ie = [
413
412
  "aria-expanded",
414
413
  "aria-label",
415
414
  "onClick"
416
- ], Be = {
415
+ ], Le = {
417
416
  key: 6,
418
417
  class: "m-table__cell-text"
419
- }, Ve = { class: "m-table__tooltip-trigger" }, He = { class: "m-table__cell-text" }, Ue = ["colspan"], We = {
418
+ }, Re = { class: "m-table__tooltip-trigger" }, ze = { class: "m-table__cell-text" }, Be = ["colspan"], Ve = {
420
419
  key: 0,
421
- class: "m-table__loading"
422
- }, Ge = { class: "m-table__loading-body" }, Ke = {
423
- key: 1,
424
420
  class: "m-table__message",
425
421
  role: "status"
426
- }, qe = { class: "m-table__empty-text" }, Je = {
422
+ }, He = { class: "m-table__empty-text" }, Ue = {
427
423
  key: 0,
428
424
  class: "m-table__empty-description"
429
- }, Ye = {
425
+ }, We = {
430
426
  key: 0,
431
427
  class: "m-table__footer"
432
- }, Xe = { class: "m-table__items-index" }, Ze = /* @__PURE__ */ v({
428
+ }, Ge = { class: "m-table__items-index" }, Ke = /* @__PURE__ */ v({
433
429
  inheritAttrs: !1,
434
430
  __name: "Table",
435
431
  props: {
@@ -599,362 +595,368 @@ var Ee = /*#__PURE__*/ I(we, [["render", L]]), De = ["aria-label"], Oe = ["aria-
599
595
  "update:expandedRowKeys",
600
596
  "update:filters"
601
597
  ],
602
- setup(v, { expose: le, emit: ue }) {
603
- let P = v, F = ue, ye = ne(), { rootAttrs: be } = e(ye, () => P.pt), I = (e, ...t) => {
604
- F(e, ...t);
605
- }, { value: we, setValue: Te } = t({
606
- controlled: () => P.filters ?? void 0,
598
+ setup(v, { expose: ce, emit: le }) {
599
+ let I = v, L = le, ve = ne(), { rootAttrs: ye } = e(ve, () => I.pt), R = (e, ...t) => {
600
+ L(e, ...t);
601
+ }, { value: Ke, setValue: qe } = t({
602
+ controlled: () => I.filters ?? void 0,
607
603
  defaultValue: null
608
604
  }, (e) => {
609
- F("filter", e), F("update:filters", e);
610
- }), L = u(), { tableNodeId: Ze, clickEventType: Qe, bodyTextDirection: $e, checkboxColumnWidth: et, expandColumnWidth: tt, expandedRowKeys: nt, filterOptions: rt, fixedCheckbox: it, fixedExpand: at, fixedHeader: ot, fixedIndex: st, headerTextDirection: ct, indexColumnWidth: lt, selectionMode: ut, selectedItem: dt, loading: R, mustSort: ft, multiSort: z, rowsItems: pt, rowsPerPage: mt, searchField: ht, searchValue: gt, serverItemsLength: _t, serverOptions: B, showIndex: vt, sortMode: yt, tableHeight: bt, tableMinHeight: xt, rowsOfPageSeparatorMessage: St, showIndexSymbol: Ct, preventContextMenuRow: wt, headerItemClassName: Tt, bodyRowClassName: Et, bodyExpandRowClassName: Dt, bodyItemClassName: Ot, tableClassName: kt, headerClassName: At, rowsPerPageMessage: jt, hideHeader: Mt, hideRowsPerPage: Nt, clickRowToExpand: Pt, expandable: Ft, emptyDescription: It, fit: Lt, emptyText: Rt, showHeader: zt, maxHeight: Bt, paginator: Vt, rowKey: V, ariaLabel: Ht, size: Ut } = te(P), H = f(() => xe(P.columns)), Wt = f(() => P.rows), Gt = f(() => P.selection ?? null), Kt = f(() => Ce(P.sortField)), qt = f(() => Se(P.sortOrder)), Jt = f(() => P.page ?? 1), Yt = f(() => P.striped), Xt = f(() => P.bordered), Zt = f(() => P.highlightCurrent), Qt = f(() => !P.rowHover), $t = l("Table", () => Ut.value), en = f(() => {
611
- if ($t.value === "small") return "m-table--small";
612
- if ($t.value === "large") return "m-table--large";
613
- }), tn = f(() => [
614
- kt.value,
615
- en.value,
605
+ L("filter", e), L("update:filters", e);
606
+ }), z = u(), { tableNodeId: Je, clickEventType: Ye, bodyTextDirection: Xe, checkboxColumnWidth: Ze, expandColumnWidth: Qe, expandedRowKeys: $e, filterOptions: et, fixedCheckbox: tt, fixedExpand: nt, fixedHeader: rt, fixedIndex: it, headerTextDirection: at, indexColumnWidth: ot, selectionMode: st, selectedItem: ct, loading: B, mustSort: lt, multiSort: V, rowsItems: ut, rowsPerPage: dt, searchField: ft, searchValue: pt, serverItemsLength: mt, serverOptions: H, showIndex: ht, sortMode: gt, tableHeight: _t, tableMinHeight: vt, rowsOfPageSeparatorMessage: yt, showIndexSymbol: bt, preventContextMenuRow: xt, headerItemClassName: St, bodyRowClassName: Ct, bodyExpandRowClassName: wt, bodyItemClassName: Tt, tableClassName: Et, headerClassName: Dt, rowsPerPageMessage: Ot, hideHeader: kt, hideRowsPerPage: At, clickRowToExpand: jt, expandable: Mt, emptyDescription: Nt, fit: Pt, emptyText: Ft, showHeader: It, maxHeight: Lt, paginator: Rt, rowKey: U, ariaLabel: zt, size: Bt } = te(I), W = f(() => be(I.columns)), Vt = f(() => I.rows), Ht = f(() => I.selection ?? null), Ut = f(() => Se(I.sortField)), Wt = f(() => xe(I.sortOrder)), Gt = f(() => I.page ?? 1), Kt = f(() => I.striped), qt = f(() => I.bordered), Jt = f(() => I.highlightCurrent), Yt = f(() => !I.rowHover), Xt = l("Table", () => Bt.value), Zt = f(() => {
607
+ if (Xt.value === "small") return "m-table--small";
608
+ if (Xt.value === "large") return "m-table--large";
609
+ }), Qt = f(() => [
610
+ Et.value,
611
+ Zt.value,
616
612
  {
617
- "m-table--border": Xt.value,
618
- "m-table--striped": Yt.value,
619
- "m-table--enable-row-hover": !Qt.value
613
+ "m-table--border": qt.value,
614
+ "m-table--striped": Kt.value,
615
+ "m-table--enable-row-hover": !Yt.value
620
616
  }
621
- ]), nn = f(() => er.value.length > 0 || Lt.value !== !1), rn = f(() => Rt.value ?? L.value.emptyMessage), an = f(() => zt.value ?? !Mt.value), on = f(() => Bt.value ?? bt.value), sn = f(() => on.value ? `${on.value}px` : null), cn = f(() => `${xt.value}px`), U = re(), ln = f(() => !!U.pagination), un = f(() => !!U.loading), dn = f(() => Ft.value || !!U.expansion), fn = f(() => !!U.body), pn = f(() => {
617
+ ]), $t = f(() => $n.value.length > 0 || Pt.value !== !1), en = f(() => Ft.value ?? z.value.emptyMessage), tn = f(() => It.value ?? !kt.value), nn = f(() => Lt.value ?? _t.value), rn = f(() => nn.value ? `${nn.value}px` : null), an = f(() => `${vt.value}px`), G = re(), on = f(() => !!G.pagination), sn = f(() => !!G.loading), cn = f(() => Mt.value || !!G.expansion), ln = f(() => !!G.body), un = f(() => {
622
618
  let e = /* @__PURE__ */ new Map();
623
- for (let t of H.value) t.render && e.set(t.value, t.render);
619
+ for (let t of W.value) t.render && e.set(t.value, t.render);
624
620
  return e;
625
- }), mn = f(() => {
621
+ }), dn = f(() => {
626
622
  let e = /* @__PURE__ */ new Map();
627
- for (let t of H.value) {
628
- let n = ve(t.align);
623
+ for (let t of W.value) {
624
+ let n = _e(t.align);
629
625
  n && e.set(t.value, n);
630
626
  }
631
627
  return e;
632
- }), hn = T(), gn = T();
633
- ee("dataTable", hn);
634
- let _n = T(!1), vn = T(!1), yn = T(null), bn = f(() => P.currentRowKey ?? yn.value);
635
- function xn(e) {
636
- _n.value = e.scrollLeft > 0;
637
- let t = gn.value?.wrapRef;
638
- vn.value = t ? t.scrollWidth - t.clientWidth - t.scrollLeft > 1 : !1;
628
+ }), fn = E(), pn = E();
629
+ T("dataTable", fn);
630
+ let mn = E(!1), hn = E(!1), gn = E(null), _n = f(() => I.currentRowKey ?? gn.value);
631
+ function vn(e) {
632
+ mn.value = e.scrollLeft > 0;
633
+ let t = pn.value?.wrapRef;
634
+ hn.value = t ? t.scrollWidth - t.clientWidth - t.scrollLeft > 1 : !1;
639
635
  }
640
- let Sn = f(() => {
641
- let e = ut.value ?? (Gt.value === null ? null : "multiple");
636
+ let yn = f(() => {
637
+ let e = st.value ?? (Ht.value === null ? null : "multiple");
642
638
  return e === "multiple" ? "checkbox" : e === "single" ? "radio" : null;
643
- }), Cn = f(() => Sn.value === "checkbox"), wn = f(() => Sn.value === "radio"), Tn = f(() => ["m-table__main", {
644
- "m-table__main--fixed-header": ot.value,
645
- "m-table__main--fixed-height": !!on.value,
646
- "m-table__main--shadow": _n.value,
647
- "m-table__main--shadow-end": vn.value,
648
- "m-table__main--table-fixed": nn.value,
649
- "m-table__main--border-cell": Xt.value
650
- }]), En = f(() => ({ minHeight: cn.value })), W = f(() => B.value !== null), { serverOptionsComputed: Dn, updateServerOptionsPage: On, updateServerOptionsSort: kn, updateServerOptionsRowsPerPage: An } = ge(B, z, I), { clientSortOptions: jn, headerColumns: Mn, headersForRender: G, updateSortField: Nn, isMultiSorting: Pn, getMultiSortNumber: Fn } = fe(Ct, et, tt, it, at, st, H, dn, lt, Sn, W, ft, Dn, vt, Kt, qt, z, yt, kn, I), In = f(() => yt.value === "emit" ? null : jn.value), { rowsItemsComputed: Ln, rowsPerPageRef: K, updateRowsPerPage: Rn } = he(W, pt, B, mt), { totalItems: zn, selectItemsComputed: Bn, totalItemsLength: q, toggleSelectAll: Vn, toggleSelectItem: Hn } = _e(In, rt, we, W, Wt, Gt, ht, gt, _t, z, V, I), Un = f(() => {
651
- if (!dt.value) return null;
652
- let e = zn.value.findIndex((e) => N(e, dt.value, V.value));
653
- return e >= 0 ? se(dt.value, e, V.value) : null;
654
- }), { currentPaginationNumber: J, maxPaginationNumber: Y, isLastPage: X, isFirstPage: Wn, nextPage: Gn, prevPage: Kn, updatePage: Z, updateCurrentPaginationNumber: qn } = me(Jt, W, R, q, K, B, On), { currentPageFirstIndex: Jn, currentPageLastIndex: Yn, multipleSelectStatus: Xn, pageItems: Q } = pe(J, Cn, W, Wt, K, Bn, vt, zn, q, V), Zn = f(() => J.value === 0 ? 0 : (J.value - 1) * K.value), { isRowExpanded: Qn, toggleExpandRow: $n } = ce(nt, V, Zn, I), { fixedHeaders: er, lastFixedColumn: tr, firstRightFixedColumn: nr, fixedColumnsInfos: rr } = de(G), { clickRow: ir } = ae(Qe, Cn, vt, I);
655
- function ar(e, t) {
656
- wt.value && t.preventDefault(), F("contextmenuRow", e, t);
639
+ }), bn = f(() => yn.value === "checkbox"), xn = f(() => yn.value === "radio"), Sn = f(() => ["m-table__main", {
640
+ "m-table__main--fixed-header": rt.value,
641
+ "m-table__main--fixed-height": !!nn.value,
642
+ "m-table__main--shadow": mn.value,
643
+ "m-table__main--shadow-end": hn.value,
644
+ "m-table__main--table-fixed": $t.value,
645
+ "m-table__main--border-cell": qt.value
646
+ }]), Cn = f(() => ({ minHeight: an.value })), K = f(() => H.value !== null), { serverOptionsComputed: wn, updateServerOptionsPage: Tn, updateServerOptionsSort: En, updateServerOptionsRowsPerPage: Dn } = he(H, V, R), { clientSortOptions: On, headerColumns: kn, headersForRender: q, updateSortField: An, isMultiSorting: jn, getMultiSortNumber: Mn } = de(bt, Ze, Qe, tt, nt, it, W, cn, ot, yn, K, lt, wn, ht, Ut, Wt, V, gt, En, R), Nn = f(() => gt.value === "emit" ? null : On.value), { rowsItemsComputed: Pn, rowsPerPageRef: J, updateRowsPerPage: Fn } = me(K, ut, H, dt), { totalItems: In, selectItemsComputed: Ln, totalItemsLength: Y, toggleSelectAll: Rn, toggleSelectItem: zn } = ge(Nn, et, Ke, K, Vt, Ht, ft, pt, mt, V, U, R), Bn = f(() => {
647
+ if (!ct.value) return null;
648
+ let e = In.value.findIndex((e) => F(e, ct.value, U.value));
649
+ return e >= 0 ? oe(ct.value, e, U.value) : null;
650
+ }), { currentPaginationNumber: X, maxPaginationNumber: Vn, isLastPage: Hn, isFirstPage: Un, nextPage: Wn, prevPage: Gn, updatePage: Z, updateCurrentPaginationNumber: Kn } = pe(Gt, K, B, Y, J, H, Tn), { currentPageFirstIndex: qn, currentPageLastIndex: Jn, multipleSelectStatus: Yn, pageItems: Q } = fe(X, bn, K, Vt, J, Ln, ht, In, Y, U), Xn = f(() => X.value === 0 ? 0 : (X.value - 1) * J.value), { isRowExpanded: Zn, toggleExpandRow: Qn } = se($e, U, Xn, R), { fixedHeaders: $n, lastFixedColumn: er, firstRightFixedColumn: tr, fixedColumnsInfos: nr } = ue(q), { clickRow: rr } = ie(Ye, bn, ht, R);
651
+ function ir(e, t) {
652
+ xt.value && t.preventDefault(), L("contextmenuRow", e, t);
657
653
  }
658
- function or(e) {
659
- let t = H.value.find((t) => t.value === e.value), n = e.width ?? t?.width ?? (er.value.length ? 100 : null);
660
- if (n && nn.value) return `width: ${n}px; min-width: ${n}px;`;
654
+ function ar(e) {
655
+ let t = W.value.find((t) => t.value === e.value), n = e.width ?? t?.width ?? ($n.value.length ? 100 : null);
656
+ if (n && $t.value) return `width: ${n}px; min-width: ${n}px;`;
661
657
  let r = t?.minWidth;
662
- if (r && nn.value) return `min-width: ${r}px;`;
658
+ if (r && $t.value) return `min-width: ${r}px;`;
663
659
  }
664
- function sr(e, t = "th") {
665
- if (!er.value.length) return;
666
- let n = rr.value.find((t) => t.value === e);
660
+ function or(e, t = "th") {
661
+ if (!$n.value.length) return;
662
+ let n = nr.value.find((t) => t.value === e);
667
663
  if (n) return `${n.fixed === "right" ? "right" : "left"}: ${n.distance}px;z-index: ${t === "th" ? 3 : 1};position: sticky;`;
668
664
  }
669
- function cr(e, t) {
670
- let n = typeof Tt.value == "string" ? Tt.value : Tt.value(e, t + 1);
665
+ function sr(e, t) {
666
+ let n = typeof St.value == "string" ? St.value : St.value(e, t + 1);
671
667
  return [{
672
668
  "m-table__cell--selection": e.text === "checkbox" || e.value === "radio",
673
669
  "m-table__header-cell--sortable": e.sortable,
674
670
  "m-table__header-cell--ascending": e.sortable && e.sortType === "asc",
675
671
  "m-table__header-cell--descending": e.sortable && e.sortType === "desc",
676
- "m-table__header-cell--shadow": e.value === tr.value,
677
- "m-table__header-cell--shadow-end": e.value === nr.value
672
+ "m-table__header-cell--shadow": e.value === er.value,
673
+ "m-table__header-cell--shadow-end": e.value === tr.value
678
674
  }, n];
679
675
  }
680
- function lr() {
681
- return ["m-table__header-inner", `m-table__header-inner--${ct.value}`];
676
+ function cr() {
677
+ return ["m-table__header-inner", `m-table__header-inner--${at.value}`];
682
678
  }
683
- function ur(e) {
679
+ function lr(e) {
684
680
  if (e === "center") return "m-table__cell--center";
685
681
  if (e === "right" || e === "end") return "m-table__cell--right";
686
682
  }
687
- function dr(e) {
688
- return ur(mn.value.get(e) || $e.value);
683
+ function ur(e) {
684
+ return lr(dn.value.get(e) || Xe.value);
689
685
  }
690
- function fr(e, t) {
686
+ function dr(e, t) {
691
687
  return {
692
688
  row: t,
693
689
  item: t,
694
690
  column: e,
695
- value: M(e, t)
691
+ value: P(e, t)
696
692
  };
697
693
  }
694
+ function fr(e) {
695
+ return I.showOverflowTooltip ? !0 : !!W.value.find((t) => t.value === e)?.showOverflowTooltip;
696
+ }
698
697
  function pr(e) {
699
- return P.showOverflowTooltip ? !0 : !!H.value.find((t) => t.value === e)?.showOverflowTooltip;
698
+ if (e.sortable) return e.sortType === "asc" ? "ascending" : e.sortType === "desc" ? "descending" : "none";
700
699
  }
701
700
  function mr(e) {
702
- if (e.sortable) return e.sortType === "asc" ? "ascending" : e.sortType === "desc" ? "descending" : "none";
701
+ e.sortable && e.sortType && An(e.value, e.sortType);
703
702
  }
704
- function hr(e) {
705
- e.sortable && e.sortType && Nn(e.value, e.sortType);
706
- }
707
- function gr(e, t) {
708
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), hr(e));
703
+ function hr(e, t) {
704
+ (t.key === "Enter" || t.key === " ") && (t.preventDefault(), mr(e));
709
705
  }
710
706
  function $(e, t) {
711
- return se(e, Zn.value + t, V.value);
707
+ return oe(e, Xn.value + t, U.value);
712
708
  }
713
- function _r(e, t) {
714
- return Cn.value ? !!e.checkbox : wn.value ? Un.value === $(e, t) : !1;
709
+ function gr(e, t) {
710
+ return bn.value ? !!e.checkbox : xn.value ? Bn.value === $(e, t) : !1;
715
711
  }
716
- function vr(e) {
712
+ function _r(e) {
717
713
  let t = { ...e };
718
- delete t.index, F("update:selectedItem", t), F("selectRow", t);
714
+ delete t.index, L("update:selectedItem", t), L("selectRow", t);
719
715
  }
720
- function yr(e) {
721
- Rn(e);
716
+ function vr(e) {
717
+ Fn(e);
722
718
  }
723
- function br(e, t) {
724
- return !Zt.value || bn.value == null ? !1 : bn.value === $(e, t);
719
+ function yr(e, t) {
720
+ return !Jt.value || _n.value == null ? !1 : _n.value === $(e, t);
725
721
  }
726
- function xr(e, t) {
727
- if (!Zt.value) return;
728
- let n = $(e, t), r = bn.value;
722
+ function br(e, t) {
723
+ if (!Jt.value) return;
724
+ let n = $(e, t), r = _n.value;
729
725
  if (r === n) return;
730
726
  let i = r == null ? null : Q.value.find((e, t) => $(e, t) === r) ?? null;
731
- yn.value = n, F("update:currentRowKey", n), F("current-change", e, i);
727
+ gn.value = n, L("update:currentRowKey", n), L("current-change", e, i);
732
728
  }
733
- function Sr(e, t, n, r) {
734
- ir(e, Zn.value + t, n, r), n === "single" && xr(e, t);
729
+ function xr(e, t, n, r) {
730
+ rr(e, Xn.value + t, n, r), n === "single" && br(e, t);
735
731
  }
736
- return A(() => P.currentRowKey, (e) => {
737
- e != null && (yn.value = e);
738
- }), A(R, (e, t) => {
739
- Dn.value && e === !1 && t === !0 && qn(Dn.value.page);
740
- }), A(K, (e) => {
741
- W.value ? An(e) : Z(1);
742
- }), A([gt, rt], () => {
743
- W.value || Z(1);
744
- }), A(() => P.filters, (e) => {
745
- F("filter", e ?? null);
746
- }, { deep: !0 }), A(Q, (e) => F("updatePageItems", e), { deep: !0 }), A(zn, (e) => F("updateTotalItems", e), { deep: !0 }), A(J, (e) => {
747
- F("update:page", e), F("page", e);
748
- }), le({
749
- currentPageFirstIndex: Jn,
750
- currentPageLastIndex: Yn,
751
- clientItemsLength: q,
752
- maxPaginationNumber: Y,
753
- currentPaginationNumber: J,
754
- isLastPage: X,
755
- isFirstPage: Wn,
756
- nextPage: Gn,
757
- prevPage: Kn,
732
+ return j(() => I.currentRowKey, (e) => {
733
+ e != null && (gn.value = e);
734
+ }), j(B, (e, t) => {
735
+ wn.value && e === !1 && t === !0 && Kn(wn.value.page);
736
+ }), j(J, (e) => {
737
+ K.value ? Dn(e) : Z(1);
738
+ }), j([pt, et], () => {
739
+ K.value || Z(1);
740
+ }), j(() => I.filters, (e) => {
741
+ L("filter", e ?? null);
742
+ }, { deep: !0 }), j(Q, (e) => L("updatePageItems", e)), j(In, (e) => L("updateTotalItems", e)), j(X, (e) => {
743
+ L("update:page", e), L("page", e);
744
+ }), ce({
745
+ currentPageFirstIndex: qn,
746
+ currentPageLastIndex: Jn,
747
+ clientItemsLength: Y,
748
+ maxPaginationNumber: Vn,
749
+ currentPaginationNumber: X,
750
+ isLastPage: Hn,
751
+ isFirstPage: Un,
752
+ nextPage: Wn,
753
+ prevPage: Gn,
758
754
  updatePage: Z,
759
- rowsPerPageOptions: Ln,
760
- rowsPerPageActiveOption: K,
761
- updateRowsPerPageActiveOption: Rn,
762
- setFilters: Te
755
+ rowsPerPageOptions: Pn,
756
+ rowsPerPageActiveOption: J,
757
+ updateRowsPerPageActiveOption: Fn,
758
+ setFilters: qe
763
759
  }), (e, t) => (w(), h("div", b({
764
760
  ref_key: "dataTable",
765
- ref: hn
766
- }, k(be), {
767
- class: ["m-table", tn.value],
768
- "aria-label": k(Ht) || void 0
769
- }), [_(r, {
770
- ref_key: "scrollbarRef",
771
- ref: gn,
772
- class: "m-table__scrollbar",
773
- height: sn.value || void 0,
774
- "wrap-style": En.value,
775
- "wrap-class": Tn.value,
776
- noresize: "",
777
- onScroll: xn
778
- }, {
779
- default: ie(() => [g("div", {
780
- class: "m-table__surface",
781
- "aria-busy": k(R) || void 0
782
- }, [
783
- g("table", { id: k(Ze) || void 0 }, [
784
- g("colgroup", null, [(w(!0), h(d, null, E(k(G), (e, t) => (w(), h("col", {
761
+ ref: fn
762
+ }, A(ye), {
763
+ class: ["m-table", Qt.value],
764
+ "aria-label": A(zt) || void 0
765
+ }), [_(a, {
766
+ loading: A(B),
767
+ size: "sm"
768
+ }, ee({
769
+ default: M(() => [_(r, {
770
+ ref_key: "scrollbarRef",
771
+ ref: pn,
772
+ class: "m-table__scrollbar",
773
+ height: rn.value || void 0,
774
+ "wrap-style": Cn.value,
775
+ "wrap-class": Sn.value,
776
+ noresize: "",
777
+ onScroll: vn
778
+ }, {
779
+ default: M(() => [g("div", {
780
+ class: "m-table__surface",
781
+ "aria-busy": A(B) || void 0
782
+ }, [g("table", { id: A(Je) || void 0 }, [
783
+ g("colgroup", null, [(w(!0), h(d, null, D(A(q), (e, t) => (w(), h("col", {
785
784
  key: t,
786
- style: C(or(e))
785
+ style: C(ar(e))
787
786
  }, null, 4))), 128))]),
788
- k(U)["customize-headers"] ? D(e.$slots, "customize-headers", {}, void 0, void 0, 0) : k(G).length && an.value ? (w(), h("thead", {
787
+ A(G)["customize-headers"] ? O(e.$slots, "customize-headers", {}, void 0, void 0, 0) : A(q).length && tn.value ? (w(), h("thead", {
789
788
  key: 1,
790
- class: x(["m-table__header", [k(At)]])
791
- }, [g("tr", null, [(w(!0), h(d, null, E(k(G), (n, r) => (w(), h("th", {
792
- key: r,
793
- class: x(cr(n, r)),
794
- style: C(sr(n.value)),
795
- "aria-sort": mr(n),
796
- tabindex: n.sortable ? 0 : void 0,
797
- onClick: j((e) => hr(n), ["stop"]),
798
- onKeydown: (e) => gr(n, e)
799
- }, [n.text === "checkbox" ? (w(), h("div", je, [(w(), p(i, {
800
- key: k(Xn),
801
- "model-value": k(Xn) === "allSelected",
802
- indeterminate: k(Xn) === "partSelected",
803
- "aria-label": k(L).selectAllPage,
804
- "onUpdate:modelValue": k(Vn),
805
- onClick: t[0] ||= j(() => {}, ["stop"])
789
+ class: x(["m-table__header", [A(Dt)]])
790
+ }, [g("tr", null, [(w(!0), h(d, null, D(A(q), (r, a) => (w(), h("th", {
791
+ key: a,
792
+ class: x(sr(r, a)),
793
+ style: C(or(r.value)),
794
+ "aria-sort": pr(r),
795
+ tabindex: r.sortable ? 0 : void 0,
796
+ onClick: N((e) => mr(r), ["stop"]),
797
+ onKeydown: (e) => hr(r, e)
798
+ }, [r.text === "checkbox" ? (w(), h("div", Oe, [(w(), p(i, {
799
+ key: A(Yn),
800
+ "model-value": A(Yn) === "allSelected",
801
+ indeterminate: A(Yn) === "partSelected",
802
+ "aria-label": A(z).selectAllPage,
803
+ "onUpdate:modelValue": A(Rn),
804
+ onClick: t[0] ||= N(() => {}, ["stop"])
806
805
  }, null, 8, [
807
806
  "model-value",
808
807
  "indeterminate",
809
808
  "aria-label",
810
809
  "onUpdate:modelValue"
811
- ]))])) : n.value === "radio" ? (w(), h("div", Me)) : (w(), h("span", {
810
+ ]))])) : r.value === "radio" ? (w(), h("div", ke)) : (w(), h("span", {
812
811
  key: 2,
813
- class: x(lr())
812
+ class: x(cr())
814
813
  }, [
815
- k(U)[`header-${n.value}`] ? D(e.$slots, `header-${n.value}`, b({ ref_for: !0 }, n), void 0, void 0, 0) : k(U)[`header-${n.value.toLowerCase()}`] ? D(e.$slots, `header-${n.value.toLowerCase()}`, b({ ref_for: !0 }, n), void 0, void 0, 1) : k(U).header ? D(e.$slots, "header", b({ ref_for: !0 }, n), void 0, void 0, 2) : (w(), h("span", {
814
+ A(G)[`header-${r.value}`] ? O(e.$slots, `header-${r.value}`, b({ ref_for: !0 }, r), void 0, void 0, 0) : A(G)[`header-${r.value.toLowerCase()}`] ? O(e.$slots, `header-${r.value.toLowerCase()}`, b({ ref_for: !0 }, r), void 0, void 0, 1) : A(G).header ? O(e.$slots, "header", b({ ref_for: !0 }, r), void 0, void 0, 2) : (w(), h("span", {
816
815
  key: 3,
817
816
  class: "m-table__header-text",
818
- title: n.text
819
- }, O(n.text), 9, Ne)),
820
- n.sortable ? (w(), h("span", Pe, [...t[3] ||= [g("i", { class: "m-table__sort-caret m-table__sort-caret--ascending" }, null, -1), g("i", { class: "m-table__sort-caret m-table__sort-caret--descending" }, null, -1)]])) : m("", !0),
821
- k(z) && k(Pn)(n.value) ? (w(), h("span", Fe, O(k(Fn)(n.value)), 1)) : m("", !0)
822
- ], 2))], 46, Ae))), 128))])], 2)) : m("", !0),
823
- fn.value ? D(e.$slots, "body", S(y(k(Q))), void 0, void 0, 2) : k(Mn).length ? (w(), h("tbody", Ie, [
824
- D(e.$slots, "body-prepend", S(y({
825
- items: k(Q),
817
+ title: r.text
818
+ }, k(r.text), 9, Ae)),
819
+ r.sortable ? (w(), h("span", je, [_(n, {
820
+ name: "triangle-up",
821
+ class: "m-table__sort-icon m-table__sort-icon--ascending"
822
+ }), _(n, {
823
+ name: "triangle-down",
824
+ class: "m-table__sort-icon m-table__sort-icon--descending"
825
+ })])) : m("", !0),
826
+ A(V) && A(jn)(r.value) ? (w(), h("span", Me, k(A(Mn)(r.value)), 1)) : m("", !0)
827
+ ], 2))], 46, De))), 128))])], 2)) : m("", !0),
828
+ ln.value ? O(e.$slots, "body", S(y(A(Q))), void 0, void 0, 2) : A(kn).length ? (w(), h("tbody", Ne, [
829
+ O(e.$slots, "body-prepend", S(y({
830
+ items: A(Q),
826
831
  pagination: {
827
- isFirstPage: k(Wn),
828
- isLastPage: k(X),
829
- currentPaginationNumber: k(J),
830
- maxPaginationNumber: k(Y),
831
- nextPage: k(Gn),
832
- prevPage: k(Kn)
832
+ isFirstPage: A(Un),
833
+ isLastPage: A(Hn),
834
+ currentPaginationNumber: A(X),
835
+ maxPaginationNumber: A(Vn),
836
+ nextPage: A(Wn),
837
+ prevPage: A(Gn)
833
838
  },
834
- headers: k(G)
839
+ headers: A(q)
835
840
  }))),
836
- (w(!0), h(d, null, E(k(Q), (r, a) => (w(), h(d, { key: $(r, a) }, [g("tr", {
841
+ (w(!0), h(d, null, D(A(Q), (r, a) => (w(), h(d, { key: $(r, a) }, [g("tr", {
837
842
  class: x([{
838
- "m-table__row--striped": Yt.value && (a + 1) % 2 == 0,
839
- "m-table__row--selected": _r(r, a),
840
- "m-table__row--current": br(r, a)
841
- }, typeof k(Et) == "string" ? k(Et) : k(Et)(r, a + 1)]),
843
+ "m-table__row--striped": Kt.value && (a + 1) % 2 == 0,
844
+ "m-table__row--selected": gr(r, a),
845
+ "m-table__row--current": yr(r, a)
846
+ }, typeof A(Ct) == "string" ? A(Ct) : A(Ct)(r, a + 1)]),
842
847
  onClick: (e) => {
843
- Sr(r, a, "single", e), k(Pt) && k($n)(r, a, e);
848
+ xr(r, a, "single", e), A(jt) && A(Qn)(r, a, e);
844
849
  },
845
- onDblclick: (e) => Sr(r, a, "double", e),
846
- onContextmenu: (e) => ar(r, e)
847
- }, [(w(!0), h(d, null, E(k(Mn), (o, l) => (w(), h("td", {
850
+ onDblclick: (e) => xr(r, a, "double", e),
851
+ onContextmenu: (e) => ir(r, e)
852
+ }, [(w(!0), h(d, null, D(A(kn), (o, l) => (w(), h("td", {
848
853
  key: l,
849
- style: C(sr(o, "td")),
854
+ style: C(or(o, "td")),
850
855
  class: x([
851
856
  {
852
- "m-table__cell--shadow": o === k(tr),
853
- "m-table__cell--shadow-end": o === k(nr),
857
+ "m-table__cell--shadow": o === A(er),
858
+ "m-table__cell--shadow-end": o === A(tr),
854
859
  "m-table__cell--expand": o === "expand",
855
860
  "m-table__cell--selection": o === "checkbox" || o === "radio"
856
861
  },
857
- dr(o),
858
- typeof k(Ot) == "string" ? k(Ot) : k(Ot)(o, a + 1)
862
+ ur(o),
863
+ typeof A(Tt) == "string" ? A(Tt) : A(Tt)(o, a + 1)
859
864
  ]),
860
- onClick: (e) => o === "expand" ? k($n)(r, a, e) : null
865
+ onClick: (e) => o === "expand" ? A(Qn)(r, a, e) : null
861
866
  }, [g("div", { class: x(["m-table__cell-inner", {
862
867
  "m-table__cell-inner--expand": o === "expand",
863
868
  "m-table__cell-inner--selection": o === "checkbox" || o === "radio"
864
- }]) }, [k(U)[`cell-${o}`] ? D(e.$slots, `cell-${o}`, b({ ref_for: !0 }, fr(o, r)), void 0, void 0, 0) : k(U)[`cell-${o.toLowerCase()}`] ? D(e.$slots, `cell-${o.toLowerCase()}`, b({ ref_for: !0 }, fr(o, r)), void 0, void 0, 1) : o === "expand" ? (w(), h("button", {
869
+ }]) }, [A(G)[`cell-${o}`] ? O(e.$slots, `cell-${o}`, b({ ref_for: !0 }, dr(o, r)), void 0, void 0, 0) : A(G)[`cell-${o.toLowerCase()}`] ? O(e.$slots, `cell-${o.toLowerCase()}`, b({ ref_for: !0 }, dr(o, r)), void 0, void 0, 1) : o === "expand" ? (w(), h("button", {
865
870
  key: 2,
866
871
  type: "button",
867
- class: x(["m-table__expand-btn", { "m-table__expand-btn--expanded": k(Qn)(r, a) }]),
868
- "aria-expanded": k(Qn)(r, a),
869
- "aria-label": k(L).expand,
870
- onClick: j((e) => k($n)(r, a, e), ["stop"])
871
- }, [_(n, { name: "chevron-right" })], 10, ze)) : o === "checkbox" ? (w(), p(i, {
872
+ class: x(["m-table__expand-btn", { "m-table__expand-btn--expanded": A(Zn)(r, a) }]),
873
+ "aria-expanded": A(Zn)(r, a),
874
+ "aria-label": A(z).expand,
875
+ onClick: N((e) => A(Qn)(r, a, e), ["stop"])
876
+ }, [_(n, { name: "chevron-right" })], 10, Ie)) : o === "checkbox" ? (w(), p(i, {
872
877
  key: 3,
873
878
  "model-value": !!r.checkbox,
874
- "aria-label": k(L).selectRow.replace("{index}", String(k(Jn) + a)),
875
- "onUpdate:modelValue": (e) => k(Hn)(r),
876
- onClick: t[1] ||= j(() => {}, ["stop"])
879
+ "aria-label": A(z).selectRow.replace("{index}", String(A(qn) + a)),
880
+ "onUpdate:modelValue": (e) => A(zn)(r),
881
+ onClick: t[1] ||= N(() => {}, ["stop"])
877
882
  }, null, 8, [
878
883
  "model-value",
879
884
  "aria-label",
880
885
  "onUpdate:modelValue"
881
886
  ])) : o === "radio" ? (w(), p(c, {
882
887
  key: 4,
883
- "model-value": Un.value ?? void 0,
888
+ "model-value": Bn.value ?? void 0,
884
889
  value: $(r, a),
885
- "aria-label": k(L).selectRow.replace("{index}", String(k(Jn) + a)),
886
- "onUpdate:modelValue": (e) => vr(r),
887
- onClick: t[2] ||= j(() => {}, ["stop"])
890
+ "aria-label": A(z).selectRow.replace("{index}", String(A(qn) + a)),
891
+ "onUpdate:modelValue": (e) => _r(r),
892
+ onClick: t[2] ||= N(() => {}, ["stop"])
888
893
  }, null, 8, [
889
894
  "model-value",
890
895
  "value",
891
896
  "aria-label",
892
897
  "onUpdate:modelValue"
893
- ])) : k(U)["body-cell"] ? D(e.$slots, "body-cell", b({ ref_for: !0 }, {
898
+ ])) : A(G)["body-cell"] ? O(e.$slots, "body-cell", b({ ref_for: !0 }, {
894
899
  column: o,
895
900
  item: r,
896
901
  row: r,
897
- value: k(M)(o, r)
898
- }), void 0, void 0, 5) : pn.value.get(o) ? (w(), h("span", Be, O(pn.value.get(o)(r)), 1)) : (w(), p(s, {
902
+ value: A(P)(o, r)
903
+ }), void 0, void 0, 5) : un.value.get(o) ? (w(), h("span", Le, k(un.value.get(o)(r)), 1)) : (w(), p(s, {
899
904
  key: 7,
900
- content: k(oe)(o, r),
901
- disabled: !pr(o)
905
+ content: A(ae)(o, r),
906
+ disabled: !fr(o)
902
907
  }, {
903
- default: ie(() => [g("span", Ve, [g("span", He, O(k(oe)(o, r)), 1)])]),
908
+ default: M(() => [g("span", Re, [g("span", ze, k(A(ae)(o, r)), 1)])]),
904
909
  _: 2
905
- }, 1032, ["content", "disabled"]))], 2)], 14, Re))), 128))], 42, Le), dn.value && k(Qn)(r, a) ? (w(), h("tr", {
910
+ }, 1032, ["content", "disabled"]))], 2)], 14, Fe))), 128))], 42, Pe), cn.value && A(Zn)(r, a) ? (w(), h("tr", {
906
911
  key: 0,
907
- class: x([{ "m-table__row--striped": Yt.value && (a + 1) % 2 == 0 }, typeof k(Dt) == "string" ? k(Dt) : k(Dt)(r, a + 1)])
912
+ class: x([{ "m-table__row--striped": Kt.value && (a + 1) % 2 == 0 }, typeof A(wt) == "string" ? A(wt) : A(wt)(r, a + 1)])
908
913
  }, [g("td", {
909
- colspan: k(G).length,
914
+ colspan: A(q).length,
910
915
  class: "m-table__cell--expanded"
911
- }, [r.expandLoading ? (w(), p(Ee, {
912
- key: 0,
913
- class: "expand-loading"
914
- })) : m("", !0), D(e.$slots, "expansion", b({ ref_for: !0 }, { row: r }))], 8, Ue)], 2)) : m("", !0)], 64))), 128)),
915
- D(e.$slots, "body-append", S(y({
916
- items: k(Q),
916
+ }, [r.expandLoading ? (w(), p(Ce, { key: 0 })) : m("", !0), O(e.$slots, "expansion", b({ ref_for: !0 }, { row: r }))], 8, Be)], 2)) : m("", !0)], 64))), 128)),
917
+ O(e.$slots, "body-append", S(y({
918
+ items: A(Q),
917
919
  pagination: {
918
- isFirstPage: k(Wn),
919
- isLastPage: k(X),
920
- currentPaginationNumber: k(J),
921
- maxPaginationNumber: k(Y),
922
- nextPage: k(Gn),
923
- prevPage: k(Kn),
924
- updatePage: k(Z)
920
+ isFirstPage: A(Un),
921
+ isLastPage: A(Hn),
922
+ currentPaginationNumber: A(X),
923
+ maxPaginationNumber: A(Vn),
924
+ nextPage: A(Wn),
925
+ prevPage: A(Gn),
926
+ updatePage: A(Z)
925
927
  },
926
- headers: k(G)
928
+ headers: A(q)
927
929
  })))
928
930
  ])) : m("", !0)
929
- ], 8, ke),
930
- k(R) ? (w(), h("div", We, [t[4] ||= g("div", { class: "m-table__loading-mask" }, null, -1), g("div", Ge, [un.value ? D(e.$slots, "loading", {}, void 0, void 0, 0) : (w(), p(o, {
931
- key: 1,
932
- size: "sm"
933
- }))])])) : m("", !0),
934
- !k(Q).length && !k(R) ? (w(), h("div", Ke, [k(U).empty ? D(e.$slots, "empty", {}, void 0, void 0, 0) : D(e.$slots, "empty", {}, () => [g("p", qe, O(rn.value), 1), k(It) ? (w(), h("p", Je, O(k(It)), 1)) : m("", !0)], void 0, 1)])) : m("", !0)
935
- ], 8, Oe)]),
936
- _: 3
937
- }, 8, [
938
- "height",
939
- "wrap-style",
940
- "wrap-class"
941
- ]), k(Vt) ? (w(), h("div", Ye, [g("div", Xe, O(`${k(Jn)}–${k(Yn)}`) + " " + O(k(St)) + " " + O(k(q)), 1), ln.value ? D(e.$slots, "pagination", S(y({
942
- isFirstPage: k(Wn),
943
- isLastPage: k(X),
944
- currentPaginationNumber: k(J),
945
- maxPaginationNumber: k(Y),
946
- nextPage: k(Gn),
947
- prevPage: k(Kn)
948
- })), void 0, void 0, 0) : (w(), p(a, {
931
+ ], 8, Ee), !A(Q).length && !A(B) ? (w(), h("div", Ve, [A(G).empty ? O(e.$slots, "empty", {}, void 0, void 0, 0) : O(e.$slots, "empty", {}, () => [g("p", He, k(en.value), 1), A(Nt) ? (w(), h("p", Ue, k(A(Nt)), 1)) : m("", !0)], void 0, 1)])) : m("", !0)], 8, Te)]),
932
+ _: 3
933
+ }, 8, [
934
+ "height",
935
+ "wrap-style",
936
+ "wrap-class"
937
+ ])]),
938
+ _: 2
939
+ }, [sn.value ? {
940
+ name: "indicator",
941
+ fn: M(() => [O(e.$slots, "loading")]),
942
+ key: "0"
943
+ } : void 0]), 1032, ["loading"]), A(Rt) ? (w(), h("div", We, [g("div", Ge, k(`${A(qn)}–${A(Jn)}`) + " " + k(A(yt)) + " " + k(A(Y)), 1), on.value ? O(e.$slots, "pagination", S(y({
944
+ isFirstPage: A(Un),
945
+ isLastPage: A(Hn),
946
+ currentPaginationNumber: A(X),
947
+ maxPaginationNumber: A(Vn),
948
+ nextPage: A(Wn),
949
+ prevPage: A(Gn)
950
+ })), void 0, void 0, 0) : (w(), p(o, {
949
951
  key: 1,
950
- "model-value": k(J),
951
- "total-records": k(q),
952
- rows: k(K),
953
- "page-sizes": k(Ln),
954
- "show-size-picker": !k(Nt),
955
- disabled: k(R),
956
- "onUpdate:modelValue": k(Z),
957
- "onUpdate:rows": yr
952
+ "model-value": A(X),
953
+ "total-records": A(Y),
954
+ rows: A(J),
955
+ "page-sizes": A(Pn),
956
+ "show-size-picker": !A(At),
957
+ disabled: A(B),
958
+ "onUpdate:modelValue": A(Z),
959
+ "onUpdate:rows": vr
958
960
  }, null, 8, [
959
961
  "model-value",
960
962
  "total-records",
@@ -963,8 +965,8 @@ var Ee = /*#__PURE__*/ I(we, [["render", L]]), De = ["aria-label"], Oe = ["aria-
963
965
  "show-size-picker",
964
966
  "disabled",
965
967
  "onUpdate:modelValue"
966
- ]))])) : m("", !0)], 16, De));
968
+ ]))])) : m("", !0)], 16, we));
967
969
  }
968
970
  });
969
971
  //#endregion
970
- export { Ze as MTable };
972
+ export { Ke as MTable };