morya-ui 0.4.3 → 0.4.5

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 (263) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +6 -0
  3. package/README.zh-CN.md +6 -0
  4. package/dist/{Button-Bjsth0ct.js → Button-fKkfCnYv.js} +1 -1
  5. package/dist/{Checkbox-Bo26OGHP.js → Checkbox-BXC2mLNd.js} +1 -1
  6. package/dist/DatePicker-DcVjiS5d.js +848 -0
  7. package/dist/{Empty-rMhOPi79.js → Empty-By1qe-ew.js} +1 -1
  8. package/dist/{FlyoutSubmenu-C0id6-Sb.js → FlyoutSubmenu-C1n-fr6i.js} +1 -1
  9. package/dist/{Input-CxSTVp9E.js → Input-D2bee2LU.js} +2 -2
  10. package/dist/{Loading-D_qRwfKv.js → Loading-DE9Iaiao.js} +3 -3
  11. package/dist/Pagination-DpNOb0CS.js +178 -0
  12. package/dist/{Popover-D1uZ1N9Z.js → Popover-Bnz7KNZq.js} +2 -2
  13. package/dist/{ProgressSpinner-hmR23xpi.js → ProgressSpinner-vBXGvQ92.js} +1 -1
  14. package/dist/{Radio-CZAyelC_.js → Radio-BbznzRbr.js} +1 -1
  15. package/dist/{Segmented-BpdO7arR.js → Segmented-CMP3nBAP.js} +1 -1
  16. package/dist/{Select-CySmusHs.js → Select-q4X2ff_M.js} +3 -3
  17. package/dist/{Textarea-DskjTCcz.js → Textarea-DsFOAtPd.js} +2 -2
  18. package/dist/{Tooltip-DSfkflHp.js → Tooltip-5zRVTTVs.js} +2 -2
  19. package/dist/accordion/style.css +4 -3
  20. package/dist/affix/style.css +4 -3
  21. package/dist/alert/index.js +2 -2
  22. package/dist/alert/style.css +4 -3
  23. package/dist/anchor/style.css +4 -3
  24. package/dist/auto-complete/index.js +3 -3
  25. package/dist/auto-complete/style.css +4 -3
  26. package/dist/avatar/style.css +4 -3
  27. package/dist/badge/style.css +4 -3
  28. package/dist/block-ui/index.js +1 -1
  29. package/dist/block-ui/style.css +4 -3
  30. package/dist/breadcrumb/index.js +1 -1
  31. package/dist/breadcrumb/style.css +4 -3
  32. package/dist/button/index.js +1 -1
  33. package/dist/button/style.css +4 -3
  34. package/dist/calendar/index.js +3 -3
  35. package/dist/calendar/style.css +246 -45
  36. package/dist/card/style.css +4 -3
  37. package/dist/carousel/index.js +2 -2
  38. package/dist/carousel/style.css +4 -3
  39. package/dist/cascade-select/index.js +3 -3
  40. package/dist/cascade-select/style.css +4 -3
  41. package/dist/checkbox/index.js +1 -1
  42. package/dist/checkbox/style.css +4 -3
  43. package/dist/chip/index.js +1 -1
  44. package/dist/chip/style.css +4 -3
  45. package/dist/command-menu/index.js +3 -3
  46. package/dist/command-menu/style.css +4 -3
  47. package/dist/components/DatePicker/DatePicker.vue.d.ts +21 -0
  48. package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
  49. package/dist/components/DatePicker/styles.css +242 -42
  50. package/dist/components/DatePicker/types.d.ts +20 -2
  51. package/dist/components/DatePicker/types.d.ts.map +1 -1
  52. package/dist/components/OrderList/OrderList.vue.d.ts +13 -7
  53. package/dist/components/OrderList/OrderList.vue.d.ts.map +1 -1
  54. package/dist/components/OrderList/styles.css +80 -7
  55. package/dist/components/OrderList/types.d.ts +20 -3
  56. package/dist/components/OrderList/types.d.ts.map +1 -1
  57. package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
  58. package/dist/components/Pagination/styles.css +3 -30
  59. package/dist/components/Table/Table.vue.d.ts +37 -282
  60. package/dist/components/Table/Table.vue.d.ts.map +1 -1
  61. package/dist/components/Table/core/tree.d.ts +4 -0
  62. package/dist/components/Table/core/tree.d.ts.map +1 -1
  63. package/dist/components/Table/core/utils.d.ts +11 -3
  64. package/dist/components/Table/core/utils.d.ts.map +1 -1
  65. package/dist/components/Table/index.d.ts +1 -1
  66. package/dist/components/Table/index.d.ts.map +1 -1
  67. package/dist/components/Table/render/TableColumnSetting.vue.d.ts +25 -0
  68. package/dist/components/Table/render/TableColumnSetting.vue.d.ts.map +1 -0
  69. package/dist/components/Table/render/TableTbody.vue.d.ts +16 -0
  70. package/dist/components/Table/render/TableTbody.vue.d.ts.map +1 -1
  71. package/dist/components/Table/render/TableThead.vue.d.ts +8 -0
  72. package/dist/components/Table/render/TableThead.vue.d.ts.map +1 -1
  73. package/dist/components/Table/state/internal.d.ts +1 -1
  74. package/dist/components/Table/state/internal.d.ts.map +1 -1
  75. package/dist/components/Table/state/usePageItems.d.ts +1 -3
  76. package/dist/components/Table/state/usePageItems.d.ts.map +1 -1
  77. package/dist/components/Table/state/useVirtualRows.d.ts +20 -2
  78. package/dist/components/Table/state/useVirtualRows.d.ts.map +1 -1
  79. package/dist/components/Table/styles.css +95 -0
  80. package/dist/components/Table/types.d.ts +77 -12
  81. package/dist/components/Table/types.d.ts.map +1 -1
  82. package/dist/{config-BEpyhJi3.js → config-Cd20zAyW.js} +11 -1
  83. package/dist/config-provider/index.js +1 -1
  84. package/dist/config-provider/style.css +4 -3
  85. package/dist/confirm-dialog/index.js +4 -4
  86. package/dist/confirm-dialog/style.css +4 -3
  87. package/dist/confirm-popup/index.js +4 -4
  88. package/dist/confirm-popup/style.css +4 -3
  89. package/dist/context-menu/index.js +3 -3
  90. package/dist/context-menu/style.css +4 -3
  91. package/dist/data-view/index.js +3 -3
  92. package/dist/data-view/style.css +7 -33
  93. package/dist/date-picker/index.js +1 -1
  94. package/dist/date-picker/style.css +378 -45
  95. package/dist/date-picker/style.js +1 -0
  96. package/dist/descriptions/index.js +1 -1
  97. package/dist/descriptions/style.css +4 -3
  98. package/dist/dialog/index.js +4 -4
  99. package/dist/dialog/style.css +4 -3
  100. package/dist/divider/style.css +4 -3
  101. package/dist/dock/style.css +4 -3
  102. package/dist/drawer/index.js +3 -3
  103. package/dist/drawer/style.css +4 -3
  104. package/dist/dropdown/index.js +4 -4
  105. package/dist/dropdown/style.css +4 -3
  106. package/dist/empty/index.js +1 -1
  107. package/dist/empty/style.css +4 -3
  108. package/dist/fieldset/style.css +4 -3
  109. package/dist/file-upload/index.js +1 -1
  110. package/dist/file-upload/style.css +4 -3
  111. package/dist/flex/index.js +1 -1
  112. package/dist/flex/style.css +4 -3
  113. package/dist/float-label/style.css +4 -3
  114. package/dist/fluid/style.css +4 -3
  115. package/dist/form/index.js +1 -1
  116. package/dist/form/style.css +4 -3
  117. package/dist/gallery/index.js +1 -1
  118. package/dist/gallery/style.css +4 -3
  119. package/dist/grid/style.css +4 -3
  120. package/dist/icon/style.css +4 -3
  121. package/dist/icon-field/style.css +4 -3
  122. package/dist/image/index.js +1 -1
  123. package/dist/image/style.css +4 -3
  124. package/dist/index.d.ts +1 -1
  125. package/dist/index.d.ts.map +1 -1
  126. package/dist/index.js +4118 -3439
  127. package/dist/inplace/style.css +4 -3
  128. package/dist/input/index.js +1 -1
  129. package/dist/input/style.css +4 -3
  130. package/dist/input-color/index.js +2 -2
  131. package/dist/input-color/style.css +4 -3
  132. package/dist/input-group/style.css +4 -3
  133. package/dist/input-number/index.js +2 -2
  134. package/dist/input-number/style.css +4 -3
  135. package/dist/input-otp/index.js +2 -2
  136. package/dist/input-otp/style.css +4 -3
  137. package/dist/input-password/index.js +2 -2
  138. package/dist/input-password/style.css +4 -3
  139. package/dist/input-tags/index.js +2 -2
  140. package/dist/input-tags/style.css +4 -3
  141. package/dist/knob/style.css +4 -3
  142. package/dist/label/style.css +4 -3
  143. package/dist/layout/index.js +1 -1
  144. package/dist/layout/style.css +4 -3
  145. package/dist/list/index.js +4 -4
  146. package/dist/list/style.css +7 -33
  147. package/dist/listbox/index.js +2 -2
  148. package/dist/listbox/style.css +4 -3
  149. package/dist/loading/index.js +1 -1
  150. package/dist/loading/style.css +4 -3
  151. package/dist/locale/de-DE.d.ts.map +1 -1
  152. package/dist/locale/en-US.d.ts.map +1 -1
  153. package/dist/locale/es-ES.d.ts.map +1 -1
  154. package/dist/locale/fr-FR.d.ts.map +1 -1
  155. package/dist/locale/ja-JP.d.ts.map +1 -1
  156. package/dist/locale/ko-KR.d.ts.map +1 -1
  157. package/dist/locale/pt-BR.d.ts.map +1 -1
  158. package/dist/locale/ru-RU.d.ts.map +1 -1
  159. package/dist/locale/types.d.ts +18 -0
  160. package/dist/locale/types.d.ts.map +1 -1
  161. package/dist/locale/zh-CN.d.ts.map +1 -1
  162. package/dist/locale/zh-TW.d.ts.map +1 -1
  163. package/dist/{locale-CZddM-tH.js → locale-BcxMPufl.js} +1 -1
  164. package/dist/mega-menu/index.js +3 -3
  165. package/dist/mega-menu/style.css +4 -3
  166. package/dist/mentions/index.js +3 -3
  167. package/dist/mentions/style.css +4 -3
  168. package/dist/menu/index.js +4 -4
  169. package/dist/menu/style.css +4 -3
  170. package/dist/menubar/index.js +3 -3
  171. package/dist/menubar/style.css +4 -3
  172. package/dist/message/index.js +3 -3
  173. package/dist/message/style.css +4 -3
  174. package/dist/meter-group/style.css +4 -3
  175. package/dist/order-list/index.js +191 -101
  176. package/dist/order-list/style.css +84 -10
  177. package/dist/page/index.js +3 -3
  178. package/dist/page/style.css +4 -3
  179. package/dist/pagination/index.js +1 -1
  180. package/dist/pagination/style.css +7 -33
  181. package/dist/panel/index.js +1 -1
  182. package/dist/panel/style.css +4 -3
  183. package/dist/pick-list/index.js +1 -1
  184. package/dist/pick-list/style.css +4 -3
  185. package/dist/popover/index.js +1 -1
  186. package/dist/popover/style.css +4 -3
  187. package/dist/progress-bar/style.css +4 -3
  188. package/dist/progress-spinner/index.js +1 -1
  189. package/dist/progress-spinner/style.css +4 -3
  190. package/dist/qr-code/index.js +3 -3
  191. package/dist/qr-code/style.css +4 -3
  192. package/dist/radio/index.js +1 -1
  193. package/dist/radio/style.css +4 -3
  194. package/dist/rating/index.js +2 -2
  195. package/dist/rating/style.css +4 -3
  196. package/dist/result/index.js +1 -1
  197. package/dist/result/style.css +4 -3
  198. package/dist/scroll-top/index.js +2 -2
  199. package/dist/scroll-top/style.css +4 -3
  200. package/dist/scrollbar/style.css +4 -3
  201. package/dist/segmented/index.js +1 -1
  202. package/dist/segmented/style.css +4 -3
  203. package/dist/select/index.js +1 -1
  204. package/dist/select/style.css +4 -3
  205. package/dist/select-button/index.js +1 -1
  206. package/dist/select-button/style.css +4 -3
  207. package/dist/sidebar/index.js +1 -1
  208. package/dist/sidebar/style.css +4 -3
  209. package/dist/skeleton/style.css +4 -3
  210. package/dist/slider/index.js +2 -2
  211. package/dist/slider/style.css +4 -3
  212. package/dist/space/index.js +1 -1
  213. package/dist/space/style.css +4 -3
  214. package/dist/speed-dial/index.js +3 -3
  215. package/dist/speed-dial/style.css +4 -3
  216. package/dist/split-button/index.js +3 -3
  217. package/dist/split-button/style.css +4 -3
  218. package/dist/splitter/index.js +1 -1
  219. package/dist/splitter/style.css +4 -3
  220. package/dist/statistic/style.css +4 -3
  221. package/dist/status/index.js +1 -1
  222. package/dist/status/style.css +4 -3
  223. package/dist/stepper/style.css +4 -3
  224. package/dist/styles.css +1 -1
  225. package/dist/switch/index.js +1 -1
  226. package/dist/switch/style.css +4 -3
  227. package/dist/table/index.js +975 -714
  228. package/dist/table/style.css +102 -33
  229. package/dist/tabs/index.js +1 -1
  230. package/dist/tabs/style.css +4 -3
  231. package/dist/tag/index.js +2 -2
  232. package/dist/tag/style.css +4 -3
  233. package/dist/terminal/index.js +1 -1
  234. package/dist/terminal/style.css +4 -3
  235. package/dist/textarea/index.js +1 -1
  236. package/dist/textarea/style.css +4 -3
  237. package/dist/theme/styles.css +4 -3
  238. package/dist/tiered-menu/index.js +3 -3
  239. package/dist/tiered-menu/style.css +4 -3
  240. package/dist/time-picker/index.js +5 -1
  241. package/dist/time-picker/style.css +246 -45
  242. package/dist/timeline/style.css +4 -3
  243. package/dist/toast/index.js +3 -3
  244. package/dist/toast/style.css +4 -3
  245. package/dist/toggle-button/index.js +1 -1
  246. package/dist/toggle-button/style.css +4 -3
  247. package/dist/toolbar/style.css +4 -3
  248. package/dist/tooltip/index.js +1 -1
  249. package/dist/tooltip/style.css +4 -3
  250. package/dist/tour/index.js +3 -3
  251. package/dist/tour/style.css +4 -3
  252. package/dist/tree/index.js +2 -2
  253. package/dist/tree/style.css +4 -3
  254. package/dist/tree-select/index.js +4 -4
  255. package/dist/tree-select/style.css +4 -3
  256. package/dist/typography/index.js +2 -2
  257. package/dist/typography/style.css +4 -3
  258. package/dist/{useMotionTransition-DqL_SEML.js → useMotionTransition-DohkfWRB.js} +1 -1
  259. package/dist/virtual-scroller/style.css +4 -3
  260. package/dist/watermark/style.css +4 -3
  261. package/package.json +2 -1
  262. package/dist/DatePicker-CsMGzCqY.js +0 -630
  263. package/dist/Pagination-CnGOpp0m.js +0 -171
@@ -17,11 +17,12 @@
17
17
  --m-control-height-small: 24px;
18
18
  --m-control-height-medium: 32px;
19
19
  --m-control-height-large: 40px;
20
+ /* Ant Design: small/medium share 14px, large uses 16px */
20
21
  --m-control-font-small: 14px;
21
22
  --m-control-font-medium: 14px;
22
- --m-control-font-large: 15px;
23
- --m-control-padding-x-small: 10px;
24
- --m-control-padding-x-medium: 15px;
23
+ --m-control-font-large: 16px;
24
+ --m-control-padding-x-small: 8px;
25
+ --m-control-padding-x-medium: 12px;
25
26
  --m-control-padding-x-large: 16px;
26
27
 
27
28
  --m-radius-control: 6px;
@@ -2,13 +2,13 @@ import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
2
2
  import { n as t, t as n } from "../overlay-oR-5MDuE.js";
3
3
  import { t as ee } from "../overlayPlacement-qwEJPVS4.js";
4
4
  import { t as te } from "../useFloatingViewportSync-wLLKIGUA.js";
5
- import { t as ne } from "../useMotionTransition-DqL_SEML.js";
5
+ import { t as ne } from "../useMotionTransition-DohkfWRB.js";
6
6
  import { t as r } from "../Icon-CmHjx7W8.js";
7
7
  import { t as re } from "../Scrollbar-DTeJ8P5b.js";
8
8
  import { t as i } from "../useMenuKeyboard-BedmYE4W.js";
9
9
  import { t as ie } from "../icon-H8prbteT.js";
10
- import { l as ae } from "../config-BEpyhJi3.js";
11
- import { n as oe } from "../locale-CZddM-tH.js";
10
+ import { l as ae } from "../config-Cd20zAyW.js";
11
+ import { n as oe } from "../locale-BcxMPufl.js";
12
12
  import "./style.js";
13
13
  import { Fragment as a, Teleport as se, Transition as ce, computed as o, createBlock as le, createCommentVNode as s, createElementBlock as c, createElementVNode as ue, createTextVNode as l, createVNode as u, defineComponent as d, mergeProps as de, nextTick as f, normalizeClass as p, normalizeStyle as fe, onBeforeUnmount as m, onMounted as pe, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, useAttrs as me, watch as x, withCtx as S, withModifiers as C } from "vue";
14
14
  //#region src/components/Menubar/Menubar.vue?vue&type=script&setup=true&lang.ts
@@ -17,11 +17,12 @@
17
17
  --m-control-height-small: 24px;
18
18
  --m-control-height-medium: 32px;
19
19
  --m-control-height-large: 40px;
20
+ /* Ant Design: small/medium share 14px, large uses 16px */
20
21
  --m-control-font-small: 14px;
21
22
  --m-control-font-medium: 14px;
22
- --m-control-font-large: 15px;
23
- --m-control-padding-x-small: 10px;
24
- --m-control-padding-x-medium: 15px;
23
+ --m-control-font-large: 16px;
24
+ --m-control-padding-x-small: 8px;
25
+ --m-control-padding-x-medium: 12px;
25
26
  --m-control-padding-x-large: 16px;
26
27
 
27
28
  --m-radius-control: 6px;
@@ -1,12 +1,12 @@
1
1
  import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
2
2
  import { n as t } from "../overlay-oR-5MDuE.js";
3
- import { t as n } from "../useMotionTransition-DqL_SEML.js";
3
+ import { t as n } from "../useMotionTransition-DohkfWRB.js";
4
4
  import { t as r } from "../Icon-CmHjx7W8.js";
5
5
  import { r as i, t as a } from "../content-h8POj44-.js";
6
6
  import { t as ee } from "../Renderable-DHU4Jcfw.js";
7
7
  import { n as o } from "../overlayHost-78CGtMgR.js";
8
- import { l as s } from "../config-BEpyhJi3.js";
9
- import { n as c } from "../locale-CZddM-tH.js";
8
+ import { l as s } from "../config-Cd20zAyW.js";
9
+ import { n as c } from "../locale-BcxMPufl.js";
10
10
  import "./style.js";
11
11
  import { Fragment as l, Teleport as u, TransitionGroup as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as _, defineComponent as v, h as y, mergeProps as b, normalizeClass as x, onBeforeUnmount as te, onMounted as ne, openBlock as S, reactive as C, renderList as w, unref as T, useAttrs as E, watch as D, withCtx as O } from "vue";
12
12
  //#region src/components/Message/messageState.ts
@@ -17,11 +17,12 @@
17
17
  --m-control-height-small: 24px;
18
18
  --m-control-height-medium: 32px;
19
19
  --m-control-height-large: 40px;
20
+ /* Ant Design: small/medium share 14px, large uses 16px */
20
21
  --m-control-font-small: 14px;
21
22
  --m-control-font-medium: 14px;
22
- --m-control-font-large: 15px;
23
- --m-control-padding-x-small: 10px;
24
- --m-control-padding-x-medium: 15px;
23
+ --m-control-font-large: 16px;
24
+ --m-control-padding-x-small: 8px;
25
+ --m-control-padding-x-medium: 12px;
25
26
  --m-control-padding-x-large: 16px;
26
27
 
27
28
  --m-radius-control: 6px;
@@ -17,11 +17,12 @@
17
17
  --m-control-height-small: 24px;
18
18
  --m-control-height-medium: 32px;
19
19
  --m-control-height-large: 40px;
20
+ /* Ant Design: small/medium share 14px, large uses 16px */
20
21
  --m-control-font-small: 14px;
21
22
  --m-control-font-medium: 14px;
22
- --m-control-font-large: 15px;
23
- --m-control-padding-x-small: 10px;
24
- --m-control-padding-x-medium: 15px;
23
+ --m-control-font-large: 16px;
24
+ --m-control-padding-x-small: 8px;
25
+ --m-control-padding-x-medium: 12px;
25
26
  --m-control-padding-x-large: 16px;
26
27
 
27
28
  --m-radius-control: 6px;
@@ -2,11 +2,11 @@ import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
2
2
  import { t } from "../Icon-CmHjx7W8.js";
3
3
  import { t as n } from "../ScrollBody-5hUnHj_M.js";
4
4
  import { t as r } from "../useMenuKeyboard-BedmYE4W.js";
5
- import { n as i } from "../locale-CZddM-tH.js";
5
+ import { n as i } from "../locale-BcxMPufl.js";
6
6
  import "./style.js";
7
- import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, mergeProps as m, nextTick as ee, normalizeClass as h, openBlock as g, ref as _, renderList as v, renderSlot as y, toDisplayString as b, unref as x, useAttrs as te, watch as S, withCtx as C, withModifiers as w } from "vue";
7
+ import { Fragment as a, TransitionGroup as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, mergeProps as h, nextTick as ee, normalizeClass as te, onBeforeUnmount as g, openBlock as _, ref as v, renderList as y, renderSlot as b, toDisplayString as x, unref as S, useAttrs as C, watch as w, withCtx as T, withModifiers as E } from "vue";
8
8
  //#region src/components/OrderList/OrderList.vue?vue&type=script&setup=true&lang.ts
9
- var T = { class: "m-orderlist__controls" }, E = ["aria-label", "disabled"], D = ["aria-label", "disabled"], ne = ["aria-label"], O = [
9
+ var ne = { class: "m-orderlist__controls" }, re = ["aria-label", "disabled"], ie = ["aria-label", "disabled"], ae = ["aria-label", "disabled"], oe = ["aria-label", "disabled"], se = [
10
10
  "aria-selected",
11
11
  "draggable",
12
12
  "tabindex",
@@ -15,157 +15,247 @@ var T = { class: "m-orderlist__controls" }, E = ["aria-label", "disabled"], D =
15
15
  "onDragstart",
16
16
  "onDragover",
17
17
  "onDrop"
18
- ], k = ["aria-label"], A = { class: "m-orderlist__label" }, j = {
18
+ ], ce = ["aria-label", "disabled"], le = { class: "m-orderlist__label" }, ue = {
19
19
  key: 1,
20
20
  class: "m-orderlist__message",
21
21
  role: "status"
22
- }, M = { class: "m-orderlist__empty-text" }, N = /* @__PURE__ */ p({
22
+ }, de = { class: "m-orderlist__empty-text" }, D = /* @__PURE__ */ m({
23
23
  inheritAttrs: !1,
24
24
  __name: "OrderList",
25
25
  props: {
26
26
  pt: {},
27
27
  modelValue: { default: () => [] },
28
+ selection: { default: void 0 },
28
29
  dataKey: { default: void 0 },
29
30
  listStyle: {},
30
31
  dragdrop: {
31
32
  type: Boolean,
32
33
  default: !0
33
34
  },
35
+ disabled: {
36
+ type: Boolean,
37
+ default: !1
38
+ },
34
39
  emptyMessage: {}
35
40
  },
36
- emits: ["update:modelValue", "reorder"],
37
- setup(p, { emit: N }) {
38
- let P = p, F = N, I = te(), { rootAttrs: L } = e(I, () => P.pt), R = i(), z = o(() => P.emptyMessage ?? R.value.emptyMessage), B = _(null), V = _(null), H = _(null), U = _(!1);
39
- function W(e, t) {
40
- return P.dataKey && e && typeof e == "object" && P.dataKey in e ? String(e[P.dataKey]) : String(t);
41
+ emits: [
42
+ "update:modelValue",
43
+ "update:selection",
44
+ "reorder"
45
+ ],
46
+ setup(m, { emit: D }) {
47
+ let O = m, k = D, A = C(), { rootAttrs: j } = e(A, () => O.pt), M = i(), N = s(() => O.emptyMessage ?? M.value.emptyMessage), P = v(null), F = s({
48
+ get: () => O.selection === void 0 ? P.value : O.selection,
49
+ set: (e) => {
50
+ P.value = e, k("update:selection", e);
51
+ }
52
+ }), I = v(null), L = v(null), R = v(!1), z = v(null), B = v(null), V = v(null);
53
+ function H() {
54
+ let e = B.value;
55
+ return e ? e.$el ?? e : null;
56
+ }
57
+ let U = s(() => !O.disabled && O.modelValue.length > 0), W = s(() => U.value && F.value !== null && F.value > 0), G = s(() => U.value && F.value !== null && F.value < O.modelValue.length - 1);
58
+ function fe(e, t) {
59
+ return O.dataKey && e && typeof e == "object" && O.dataKey in e ? String(e[O.dataKey]) : String(t);
41
60
  }
42
- let G = _(null), K = r({ itemCount: () => P.modelValue.length });
61
+ let K = r({
62
+ itemCount: () => O.modelValue.length,
63
+ enabled: () => !O.disabled
64
+ });
43
65
  function q(e) {
44
- B.value = e, K.setActive(e);
66
+ O.disabled || (F.value = e, K.setActive(e));
45
67
  }
46
- function J(e) {
47
- return K.activeIndex.value >= 0 ? K.tabindexFor(e) : e === (B.value ?? 0) ? 0 : -1;
68
+ function pe(e) {
69
+ return K.activeIndex.value >= 0 ? K.tabindexFor(e) : e === (F.value ?? 0) ? 0 : -1;
48
70
  }
49
- function Y(e) {
50
- G.value?.querySelectorAll(".m-orderlist__item")[e]?.focus({ preventScroll: !0 });
71
+ function J(e) {
72
+ H()?.querySelectorAll(".m-orderlist__item")[e]?.focus({ preventScroll: !0 });
51
73
  }
52
- function X(e) {
53
- if ((e.ctrlKey || e.metaKey) && (e.key === "ArrowUp" || e.key === "ArrowDown")) {
54
- e.preventDefault(), Q(e.key === "ArrowUp" ? -1 : 1);
74
+ function me(e) {
75
+ if (O.disabled) return;
76
+ let t = e.ctrlKey || e.metaKey;
77
+ if (t && (e.key === "ArrowUp" || e.key === "ArrowDown")) {
78
+ e.preventDefault(), X(e.key === "ArrowUp" ? -1 : 1);
79
+ return;
80
+ }
81
+ if (t && (e.key === "Home" || e.key === "End")) {
82
+ e.preventDefault(), Z(e.key === "Home" ? 0 : O.modelValue.length - 1);
55
83
  return;
56
84
  }
57
85
  K.onKeydown(e);
58
86
  }
59
- S(K.activeIndex, (e) => {
60
- e < 0 || (B.value = e, Y(e));
87
+ w(K.activeIndex, (e) => {
88
+ e < 0 || (F.value = e, J(e));
61
89
  });
90
+ function Y(e, t, n) {
91
+ k("update:modelValue", e), k("reorder", {
92
+ item: e[n],
93
+ from: t,
94
+ to: n
95
+ });
96
+ }
97
+ function X(e) {
98
+ if (F.value === null || !U.value) return;
99
+ let t = F.value;
100
+ Z(t + e);
101
+ }
62
102
  function Z(e) {
63
- F("update:modelValue", e), F("reorder", e);
103
+ if (F.value === null || !U.value) return;
104
+ let t = F.value, n = Math.max(0, Math.min(O.modelValue.length - 1, e));
105
+ if (n === t) return;
106
+ let r = [...O.modelValue], [i] = r.splice(t, 1);
107
+ r.splice(n, 0, i), F.value = n, K.setActive(n), Y(r, t, n), ee(() => J(n));
64
108
  }
65
- function Q(e) {
66
- if (B.value === null) return;
67
- let t = B.value, n = t + e;
68
- if (n < 0 || n >= P.modelValue.length) return;
69
- let r = [...P.modelValue], [i] = r.splice(t, 1);
70
- r.splice(n, 0, i), B.value = n, K.setActive(n), Z(r), ee(() => Y(n));
109
+ function Q() {
110
+ !O.dragdrop || O.disabled || (R.value = !0);
71
111
  }
72
- function re() {
73
- P.dragdrop && (U.value = !0);
112
+ function he(e) {
113
+ let t = H()?.querySelectorAll(".m-orderlist__item")[e];
114
+ if (!t) return null;
115
+ let n = t.getBoundingClientRect(), r = t.cloneNode(!0);
116
+ return r.classList.add("m-orderlist__drag-preview"), r.style.width = `${n.width}px`, r.style.height = `${n.height}px`, document.body.appendChild(r), r;
74
117
  }
75
- function ie(e, t) {
76
- if (!P.dragdrop || !U.value) {
118
+ function ge(e, t) {
119
+ if (!O.dragdrop || O.disabled || !R.value) {
77
120
  t.preventDefault();
78
121
  return;
79
122
  }
80
- V.value = e, H.value = e, t.dataTransfer?.setData("text/plain", String(e)), t.dataTransfer.effectAllowed = "move", q(e);
123
+ I.value = e, L.value = e, t.dataTransfer?.setData("text/plain", String(e)), t.dataTransfer.effectAllowed = "move";
124
+ let n = he(e);
125
+ n && typeof t.dataTransfer?.setDragImage == "function" ? (z.value = n, t.dataTransfer.setDragImage(n, 20, 16)) : n && n.remove(), q(e);
81
126
  }
82
- function ae(e, t) {
83
- !P.dragdrop || V.value == null || V.value === e || (t.preventDefault(), t.dataTransfer.dropEffect = "move", H.value = e);
127
+ function _e(e) {
128
+ let t = V.value?.wrapRef;
129
+ if (!t) return;
130
+ let n = t.getBoundingClientRect();
131
+ e.clientY < n.top + 32 ? t.scrollTop -= 12 : e.clientY > n.bottom - 32 && (t.scrollTop += 12);
84
132
  }
85
- function oe(e, t) {
86
- if (!P.dragdrop || V.value == null) return;
133
+ function ve(e, t) {
134
+ !O.dragdrop || O.disabled || I.value == null || (_e(t), I.value !== e && (t.preventDefault(), t.dataTransfer.dropEffect = "move", L.value = e));
135
+ }
136
+ function ye(e, t) {
137
+ if (!O.dragdrop || O.disabled || I.value == null) return;
87
138
  t.preventDefault();
88
- let n = V.value;
139
+ let n = I.value;
89
140
  if (n === e) {
90
141
  $();
91
142
  return;
92
143
  }
93
- let r = [...P.modelValue], [i] = r.splice(n, 1);
94
- r.splice(e, 0, i), B.value = e, Z(r), $();
144
+ let r = [...O.modelValue], [i] = r.splice(n, 1);
145
+ r.splice(e, 0, i), F.value = e, K.setActive(e), Y(r, n, e), $();
95
146
  }
96
- function se() {
147
+ function be() {
97
148
  $();
98
149
  }
99
150
  function $() {
100
- V.value = null, H.value = null, U.value = !1;
101
- }
102
- return (e, r) => (g(), l("div", m(x(L), { class: "m-orderlist" }), [u("div", T, [u("button", {
103
- type: "button",
104
- class: "m-orderlist__btn",
105
- "aria-label": x(R).moveUp,
106
- disabled: B.value === null || B.value <= 0,
107
- onClick: r[0] ||= (e) => Q(-1)
108
- }, [f(t, {
109
- name: "chevron-up",
110
- size: "sm"
111
- })], 8, E), u("button", {
112
- type: "button",
113
- class: "m-orderlist__btn",
114
- "aria-label": x(R).moveDown,
115
- disabled: B.value === null || B.value >= p.modelValue.length - 1,
116
- onClick: r[1] ||= (e) => Q(1)
117
- }, [f(t, {
118
- name: "chevron-down",
119
- size: "sm"
120
- })], 8, D)]), p.modelValue.length ? (g(), s(n, {
151
+ I.value = null, L.value = null, R.value = !1, z.value &&= (z.value.remove(), null);
152
+ }
153
+ return g(() => {
154
+ z.value &&= (z.value.remove(), null);
155
+ }), (e, r) => (_(), u("div", h(S(j), { class: ["m-orderlist", { "m-orderlist--disabled": m.disabled }] }), [d("div", ne, [
156
+ d("button", {
157
+ type: "button",
158
+ class: "m-orderlist__btn",
159
+ "aria-label": S(M).moveTop,
160
+ disabled: !W.value,
161
+ onClick: r[0] ||= (e) => Z(0)
162
+ }, [p(t, {
163
+ name: "chevrons-up",
164
+ size: "sm"
165
+ })], 8, re),
166
+ d("button", {
167
+ type: "button",
168
+ class: "m-orderlist__btn",
169
+ "aria-label": S(M).moveUp,
170
+ disabled: !W.value,
171
+ onClick: r[1] ||= (e) => X(-1)
172
+ }, [p(t, {
173
+ name: "chevron-up",
174
+ size: "sm"
175
+ })], 8, ie),
176
+ d("button", {
177
+ type: "button",
178
+ class: "m-orderlist__btn",
179
+ "aria-label": S(M).moveDown,
180
+ disabled: !G.value,
181
+ onClick: r[2] ||= (e) => X(1)
182
+ }, [p(t, {
183
+ name: "chevron-down",
184
+ size: "sm"
185
+ })], 8, ae),
186
+ d("button", {
187
+ type: "button",
188
+ class: "m-orderlist__btn",
189
+ "aria-label": S(M).moveBottom,
190
+ disabled: !G.value,
191
+ onClick: r[3] ||= (e) => Z(m.modelValue.length - 1)
192
+ }, [p(t, {
193
+ name: "chevrons-down",
194
+ size: "sm"
195
+ })], 8, oe)
196
+ ]), m.modelValue.length ? (_(), c(n, {
121
197
  key: 0,
198
+ ref_key: "scrollBodyRef",
199
+ ref: V,
122
200
  "root-class": "m-orderlist__scrollbar",
123
201
  "wrap-class": "m-orderlist__list",
124
- "wrap-style": p.listStyle
202
+ "wrap-style": m.listStyle
125
203
  }, {
126
- default: C(() => [u("ul", {
204
+ default: T(() => [p(o, {
127
205
  ref_key: "list",
128
- ref: G,
206
+ ref: B,
207
+ tag: "ul",
208
+ name: "m-orderlist",
129
209
  class: "m-orderlist__options",
130
210
  role: "listbox",
131
211
  tabindex: "0",
132
- "aria-label": x(R).selectOption,
133
- onKeydown: X
134
- }, [(g(!0), l(a, null, v(p.modelValue, (n, i) => (g(), l("li", {
135
- key: W(n, i),
136
- class: h(["m-orderlist__item", {
137
- "m-orderlist__item--selected": B.value === i,
138
- "m-orderlist__ghost": p.dragdrop && V.value === i,
139
- "m-orderlist__drop-target": p.dragdrop && H.value === i && V.value !== i
140
- }]),
141
- role: "option",
142
- "aria-selected": B.value === i,
143
- draggable: p.dragdrop,
144
- tabindex: J(i),
145
- onClick: (e) => q(i),
146
- onFocus: (e) => q(i),
147
- onDragstart: (e) => ie(i, e),
148
- onDragover: (e) => ae(i, e),
149
- onDrop: (e) => oe(i, e),
150
- onDragend: se
151
- }, [p.dragdrop ? (g(), l("button", {
152
- key: 0,
153
- type: "button",
154
- class: "m-orderlist__handle",
155
- "aria-label": x(R).dragToReorder,
156
- tabindex: "-1",
157
- onClick: r[2] ||= w(() => {}, ["stop"]),
158
- onPointerdown: re
159
- }, [f(t, {
160
- name: "grip",
161
- size: "sm"
162
- })], 40, k)) : c("", !0), u("span", A, [y(e.$slots, "item", {
163
- item: n,
164
- index: i
165
- }, () => [d(b(n), 1)])])], 42, O))), 128))], 40, ne)]),
212
+ "aria-label": S(M).selectOption,
213
+ "aria-disabled": m.disabled || void 0,
214
+ onKeydown: me
215
+ }, {
216
+ default: T(() => [(_(!0), u(a, null, y(m.modelValue, (n, i) => (_(), u("li", {
217
+ key: fe(n, i),
218
+ class: te(["m-orderlist__item", {
219
+ "m-orderlist__item--selected": F.value === i,
220
+ "m-orderlist__item--disabled": m.disabled,
221
+ "m-orderlist__ghost": m.dragdrop && I.value === i,
222
+ "m-orderlist__drop-target": m.dragdrop && L.value === i && I.value !== i,
223
+ "m-orderlist__drop-before": m.dragdrop && L.value === i && I.value !== null && I.value > i,
224
+ "m-orderlist__drop-after": m.dragdrop && L.value === i && I.value !== null && I.value < i
225
+ }]),
226
+ role: "option",
227
+ "aria-selected": F.value === i,
228
+ draggable: m.dragdrop && !m.disabled,
229
+ tabindex: m.disabled ? -1 : pe(i),
230
+ onClick: (e) => q(i),
231
+ onFocus: (e) => q(i),
232
+ onDragstart: (e) => ge(i, e),
233
+ onDragover: (e) => ve(i, e),
234
+ onDrop: (e) => ye(i, e),
235
+ onDragend: be
236
+ }, [m.dragdrop ? (_(), u("button", {
237
+ key: 0,
238
+ type: "button",
239
+ class: "m-orderlist__handle",
240
+ "aria-label": S(M).dragToReorder,
241
+ disabled: m.disabled,
242
+ tabindex: "-1",
243
+ onClick: r[4] ||= E(() => {}, ["stop"]),
244
+ onPointerdown: Q
245
+ }, [p(t, {
246
+ name: "grip",
247
+ size: "sm"
248
+ })], 40, ce)) : l("", !0), d("span", le, [b(e.$slots, "item", {
249
+ item: n,
250
+ index: i,
251
+ selected: F.value === i,
252
+ dragging: I.value === i
253
+ }, () => [f(x(n), 1)])])], 42, se))), 128))]),
254
+ _: 3
255
+ }, 8, ["aria-label", "aria-disabled"])]),
166
256
  _: 3
167
- }, 8, ["wrap-style"])) : (g(), l("div", j, [y(e.$slots, "empty", {}, () => [u("p", M, b(z.value), 1)])]))], 16));
257
+ }, 8, ["wrap-style"])) : (_(), u("div", ue, [b(e.$slots, "empty", {}, () => [d("p", de, x(N.value), 1)])]))], 16));
168
258
  }
169
259
  });
170
260
  //#endregion
171
- export { N as MOrderList };
261
+ export { D as MOrderList };
@@ -17,11 +17,12 @@
17
17
  --m-control-height-small: 24px;
18
18
  --m-control-height-medium: 32px;
19
19
  --m-control-height-large: 40px;
20
+ /* Ant Design: small/medium share 14px, large uses 16px */
20
21
  --m-control-font-small: 14px;
21
22
  --m-control-font-medium: 14px;
22
- --m-control-font-large: 15px;
23
- --m-control-padding-x-small: 10px;
24
- --m-control-padding-x-medium: 15px;
23
+ --m-control-font-large: 16px;
24
+ --m-control-padding-x-small: 8px;
25
+ --m-control-padding-x-medium: 12px;
25
26
  --m-control-padding-x-large: 16px;
26
27
 
27
28
  --m-radius-control: 6px;
@@ -1254,7 +1255,10 @@
1254
1255
  animation: none;
1255
1256
  }
1256
1257
 
1257
- /* —— Data: OrderList —— */
1258
+ /* —— Data: OrderList ——
1259
+ * Shared list/item/scrollbar visuals live in styles/base.css (with PickList).
1260
+ * Only OrderList-specific layout, drag affordance, and motion live here.
1261
+ */
1258
1262
  .m-orderlist {
1259
1263
  display: flex;
1260
1264
  gap: var(--m-space-2);
@@ -1274,14 +1278,21 @@
1274
1278
 
1275
1279
  .m-orderlist__item {
1276
1280
  align-items: center;
1277
- border-radius: var(--m-radius-sm);
1278
1281
  display: flex;
1279
1282
  gap: var(--m-space-2);
1280
1283
  }
1281
1284
 
1282
- .m-orderlist__item:focus-visible {
1283
- box-shadow: var(--m-focus-shadow);
1284
- outline: none;
1285
+ .m-orderlist__item--disabled {
1286
+ color: var(--m-color-text-disabled);
1287
+ cursor: not-allowed;
1288
+ }
1289
+
1290
+ .m-orderlist__item--disabled:hover {
1291
+ background: transparent;
1292
+ }
1293
+
1294
+ .m-orderlist--disabled .m-orderlist__handle {
1295
+ cursor: not-allowed;
1285
1296
  }
1286
1297
 
1287
1298
  .m-orderlist__handle {
@@ -1295,17 +1306,60 @@
1295
1306
  padding: 0;
1296
1307
  }
1297
1308
 
1298
- .m-orderlist__handle:active {
1309
+ .m-orderlist__handle:disabled {
1310
+ cursor: not-allowed;
1311
+ opacity: var(--m-opacity-disabled);
1312
+ }
1313
+
1314
+ .m-orderlist__handle:not(:disabled):active {
1299
1315
  cursor: grabbing;
1300
1316
  }
1301
1317
 
1318
+ .m-orderlist__label {
1319
+ flex: 1 1 auto;
1320
+ min-width: 0;
1321
+ }
1322
+
1323
+ /* Drag source: dimmed placeholder left in the list. */
1302
1324
  .m-orderlist__ghost {
1303
1325
  background: color-mix(in srgb, var(--m-color-primary) 10%, var(--m-color-surface));
1304
1326
  opacity: var(--m-opacity-disabled);
1305
1327
  }
1306
1328
 
1329
+ /* Insertion indicator: a line above (moving up) or below (moving down) the target. */
1307
1330
  .m-orderlist__drop-target {
1308
- box-shadow: inset 0 0 0 1px var(--m-color-primary);
1331
+ position: relative;
1332
+ }
1333
+
1334
+ .m-orderlist__drop-target::after {
1335
+ background: var(--m-color-primary);
1336
+ border-radius: 1px;
1337
+ content: '';
1338
+ height: 2px;
1339
+ left: var(--m-space-1);
1340
+ position: absolute;
1341
+ right: var(--m-space-1);
1342
+ }
1343
+
1344
+ .m-orderlist__drop-before::after {
1345
+ top: 0;
1346
+ }
1347
+
1348
+ .m-orderlist__drop-after::after {
1349
+ bottom: 0;
1350
+ }
1351
+
1352
+ /* Drag preview that follows the pointer (cloned from the source row). */
1353
+ .m-orderlist__drag-preview {
1354
+ background: var(--m-color-surface);
1355
+ border-radius: var(--m-radius-sm);
1356
+ box-shadow: var(--m-shadow-md);
1357
+ left: -9999px;
1358
+ opacity: 0.9;
1359
+ pointer-events: none;
1360
+ position: fixed;
1361
+ top: -9999px;
1362
+ z-index: var(--m-z-tooltip);
1309
1363
  }
1310
1364
 
1311
1365
  .m-orderlist__message {
@@ -1323,3 +1377,23 @@
1323
1377
  font-size: var(--m-font-size-sm);
1324
1378
  line-height: 1.5;
1325
1379
  }
1380
+
1381
+ /* Reorder FLIP animation (TransitionGroup move). Respects reduced motion. */
1382
+ .m-orderlist-move {
1383
+ transition: transform var(--m-motion-normal) var(--m-motion-ease);
1384
+ }
1385
+
1386
+ .m-orderlist-leave-active {
1387
+ transition: opacity var(--m-motion-fast) var(--m-motion-ease);
1388
+ }
1389
+
1390
+ .m-orderlist-leave-to {
1391
+ opacity: 0;
1392
+ }
1393
+
1394
+ @media (prefers-reduced-motion: reduce) {
1395
+ .m-orderlist-move,
1396
+ .m-orderlist-leave-active {
1397
+ transition: none;
1398
+ }
1399
+ }
@@ -1,11 +1,11 @@
1
1
  import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
2
2
  import { t } from "../Icon-CmHjx7W8.js";
3
- import { t as n } from "../Button-Bjsth0ct.js";
3
+ import { t as n } from "../Button-fKkfCnYv.js";
4
4
  import { t as r } from "../Card-Ct5vJmoV.js";
5
- import { t as i } from "../Empty-rMhOPi79.js";
5
+ import { t as i } from "../Empty-By1qe-ew.js";
6
6
  import { r as a } from "../responsive-DA5bxylA.js";
7
7
  import { t as o } from "../Skeleton-DCYdXAH2.js";
8
- import { n as s } from "../locale-CZddM-tH.js";
8
+ import { n as s } from "../locale-BcxMPufl.js";
9
9
  import "./style.js";
10
10
  import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as m, createTextVNode as h, createVNode as g, defineComponent as _, guardReactiveProps as v, mergeProps as y, normalizeClass as b, normalizeProps as x, openBlock as S, renderSlot as C, resolveDynamicComponent as w, toDisplayString as T, unref as E, useAttrs as D, useId as O, useSlots as k, withCtx as A } from "vue";
11
11
  //#endregion
@@ -17,11 +17,12 @@
17
17
  --m-control-height-small: 24px;
18
18
  --m-control-height-medium: 32px;
19
19
  --m-control-height-large: 40px;
20
+ /* Ant Design: small/medium share 14px, large uses 16px */
20
21
  --m-control-font-small: 14px;
21
22
  --m-control-font-medium: 14px;
22
- --m-control-font-large: 15px;
23
- --m-control-padding-x-small: 10px;
24
- --m-control-padding-x-medium: 15px;
23
+ --m-control-font-large: 16px;
24
+ --m-control-padding-x-small: 8px;
25
+ --m-control-padding-x-medium: 12px;
25
26
  --m-control-padding-x-large: 16px;
26
27
 
27
28
  --m-radius-control: 6px;
@@ -1,3 +1,3 @@
1
- import { t as e } from "../Pagination-CnGOpp0m.js";
1
+ import { t as e } from "../Pagination-DpNOb0CS.js";
2
2
  import "./style.js";
3
3
  export { e as MPagination };