ods-component-lib 1.22.2 → 1.22.3

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 (261) hide show
  1. package/dist/_virtual/index5.js +2 -3
  2. package/dist/_virtual/index5.js.map +1 -1
  3. package/dist/_virtual/index6.js +3 -2
  4. package/dist/_virtual/index6.js.map +1 -1
  5. package/dist/components/antd/currencyInput/CurrencySelect.js +15 -14
  6. package/dist/components/antd/currencyInput/CurrencySelect.js.map +1 -1
  7. package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js +6 -6
  8. package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js.map +1 -1
  9. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js +20 -20
  10. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js.map +1 -1
  11. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js.map +1 -1
  12. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js +101 -98
  13. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js.map +1 -1
  14. package/dist/node_modules/@ant-design/cssinjs/es/util/index.js +29 -27
  15. package/dist/node_modules/@ant-design/cssinjs/es/util/index.js.map +1 -1
  16. package/dist/node_modules/@rc-component/async-validator/es/index.js +20 -20
  17. package/dist/node_modules/@rc-component/async-validator/es/index.js.map +1 -1
  18. package/dist/node_modules/@rc-component/async-validator/es/messages.js +1 -0
  19. package/dist/node_modules/@rc-component/async-validator/es/messages.js.map +1 -1
  20. package/dist/node_modules/@rc-component/async-validator/es/rule/type.js +18 -8
  21. package/dist/node_modules/@rc-component/async-validator/es/rule/type.js.map +1 -1
  22. package/dist/node_modules/@rc-component/async-validator/es/util.js +1 -1
  23. package/dist/node_modules/@rc-component/async-validator/es/util.js.map +1 -1
  24. package/dist/node_modules/@rc-component/async-validator/es/validator/index.js +1 -0
  25. package/dist/node_modules/@rc-component/async-validator/es/validator/index.js.map +1 -1
  26. package/dist/node_modules/@rc-component/collapse/es/hooks/useItems.js +88 -68
  27. package/dist/node_modules/@rc-component/collapse/es/hooks/useItems.js.map +1 -1
  28. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js +75 -96
  29. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js.map +1 -1
  30. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/index.js +22 -20
  31. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/index.js.map +1 -1
  32. package/dist/node_modules/@rc-component/dialog/es/Dialog/index.js +92 -100
  33. package/dist/node_modules/@rc-component/dialog/es/Dialog/index.js.map +1 -1
  34. package/dist/node_modules/@rc-component/dialog/es/DialogWrap.js +40 -29
  35. package/dist/node_modules/@rc-component/dialog/es/DialogWrap.js.map +1 -1
  36. package/dist/node_modules/@rc-component/form/es/hooks/useForm.js +115 -100
  37. package/dist/node_modules/@rc-component/form/es/hooks/useForm.js.map +1 -1
  38. package/dist/node_modules/@rc-component/form/es/utils/NameMap.js +28 -22
  39. package/dist/node_modules/@rc-component/form/es/utils/NameMap.js.map +1 -1
  40. package/dist/node_modules/@rc-component/form/es/utils/messages.js +1 -0
  41. package/dist/node_modules/@rc-component/form/es/utils/messages.js.map +1 -1
  42. package/dist/node_modules/@rc-component/image/es/Preview/index.js +111 -105
  43. package/dist/node_modules/@rc-component/image/es/Preview/index.js.map +1 -1
  44. package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js +42 -22
  45. package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js.map +1 -1
  46. package/dist/node_modules/@rc-component/resize-observer/es/SingleObserver/index.js +18 -54
  47. package/dist/node_modules/@rc-component/resize-observer/es/SingleObserver/index.js.map +1 -1
  48. package/dist/node_modules/@rc-component/resize-observer/es/index.js.map +1 -1
  49. package/dist/node_modules/@rc-component/resize-observer/es/useResizeObserver.js +50 -0
  50. package/dist/node_modules/@rc-component/resize-observer/es/useResizeObserver.js.map +1 -0
  51. package/dist/node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js +50 -50
  52. package/dist/node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js.map +1 -1
  53. package/dist/node_modules/@rc-component/select/es/SelectInput/index.js +85 -80
  54. package/dist/node_modules/@rc-component/select/es/SelectInput/index.js.map +1 -1
  55. package/dist/node_modules/@rc-component/table/es/VirtualTable/BodyGrid.js +85 -80
  56. package/dist/node_modules/@rc-component/table/es/VirtualTable/BodyGrid.js.map +1 -1
  57. package/dist/node_modules/@rc-component/trigger/es/Popup/index.js +74 -72
  58. package/dist/node_modules/@rc-component/trigger/es/Popup/index.js.map +1 -1
  59. package/dist/node_modules/@rc-component/trigger/es/UniqueProvider/index.js +10 -9
  60. package/dist/node_modules/@rc-component/trigger/es/UniqueProvider/index.js.map +1 -1
  61. package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js +27 -27
  62. package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js.map +1 -1
  63. package/dist/node_modules/@rc-component/trigger/es/index.js +150 -140
  64. package/dist/node_modules/@rc-component/trigger/es/index.js.map +1 -1
  65. package/dist/node_modules/@rc-component/util/es/Dom/focus.js +65 -20
  66. package/dist/node_modules/@rc-component/util/es/Dom/focus.js.map +1 -1
  67. package/dist/node_modules/@rc-component/util/es/ref.js +1 -1
  68. package/dist/node_modules/antd/es/_util/wave/WaveEffect.js +53 -48
  69. package/dist/node_modules/antd/es/_util/wave/WaveEffect.js.map +1 -1
  70. package/dist/node_modules/antd/es/_util/wave/style.js +8 -7
  71. package/dist/node_modules/antd/es/_util/wave/style.js.map +1 -1
  72. package/dist/node_modules/antd/es/alert/Alert.js +133 -128
  73. package/dist/node_modules/antd/es/alert/Alert.js.map +1 -1
  74. package/dist/node_modules/antd/es/badge/Badge.js +29 -28
  75. package/dist/node_modules/antd/es/badge/Badge.js.map +1 -1
  76. package/dist/node_modules/antd/es/badge/style/index.js +1 -1
  77. package/dist/node_modules/antd/es/badge/style/index.js.map +1 -1
  78. package/dist/node_modules/antd/es/button/buttonHelpers.js +47 -41
  79. package/dist/node_modules/antd/es/button/buttonHelpers.js.map +1 -1
  80. package/dist/node_modules/antd/es/button/style/variant.js +132 -132
  81. package/dist/node_modules/antd/es/button/style/variant.js.map +1 -1
  82. package/dist/node_modules/antd/es/calendar/generateCalendar.js +55 -57
  83. package/dist/node_modules/antd/es/calendar/generateCalendar.js.map +1 -1
  84. package/dist/node_modules/antd/es/calendar/style/index.js +18 -18
  85. package/dist/node_modules/antd/es/calendar/style/index.js.map +1 -1
  86. package/dist/node_modules/antd/es/card/CardGrid.js.map +1 -1
  87. package/dist/node_modules/antd/es/card/style/index.js +15 -7
  88. package/dist/node_modules/antd/es/card/style/index.js.map +1 -1
  89. package/dist/node_modules/antd/es/checkbox/Group.js +32 -30
  90. package/dist/node_modules/antd/es/checkbox/Group.js.map +1 -1
  91. package/dist/node_modules/antd/es/collapse/Collapse.js +61 -61
  92. package/dist/node_modules/antd/es/collapse/Collapse.js.map +1 -1
  93. package/dist/node_modules/antd/es/config-provider/index.js +76 -71
  94. package/dist/node_modules/antd/es/config-provider/index.js.map +1 -1
  95. package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js +29 -31
  96. package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js.map +1 -1
  97. package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js +7 -9
  98. package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js.map +1 -1
  99. package/dist/node_modules/antd/es/date-picker/generatePicker/{SuffixIcon.js → useSuffixIcon.js} +4 -4
  100. package/dist/node_modules/antd/es/date-picker/generatePicker/useSuffixIcon.js.map +1 -0
  101. package/dist/node_modules/antd/es/date-picker/style/panel.js +4 -4
  102. package/dist/node_modules/antd/es/date-picker/style/panel.js.map +1 -1
  103. package/dist/node_modules/antd/es/drawer/useFocusable.js +14 -0
  104. package/dist/node_modules/antd/es/drawer/useFocusable.js.map +1 -0
  105. package/dist/node_modules/antd/es/form/style/index.js +24 -24
  106. package/dist/node_modules/antd/es/form/style/index.js.map +1 -1
  107. package/dist/node_modules/antd/es/grid/col.js +56 -54
  108. package/dist/node_modules/antd/es/grid/col.js.map +1 -1
  109. package/dist/node_modules/antd/es/grid/style/index.js +50 -50
  110. package/dist/node_modules/antd/es/grid/style/index.js.map +1 -1
  111. package/dist/node_modules/antd/es/input/style/index.js +1 -0
  112. package/dist/node_modules/antd/es/input/style/index.js.map +1 -1
  113. package/dist/node_modules/antd/es/input-number/index.js +91 -91
  114. package/dist/node_modules/antd/es/input-number/index.js.map +1 -1
  115. package/dist/node_modules/antd/es/input-number/style/index.js +80 -79
  116. package/dist/node_modules/antd/es/input-number/style/index.js.map +1 -1
  117. package/dist/node_modules/antd/es/layout/style/sider.js +9 -9
  118. package/dist/node_modules/antd/es/layout/style/sider.js.map +1 -1
  119. package/dist/node_modules/antd/es/menu/MenuItem.js +6 -6
  120. package/dist/node_modules/antd/es/menu/MenuItem.js.map +1 -1
  121. package/dist/node_modules/antd/es/menu/SubMenu.js +8 -8
  122. package/dist/node_modules/antd/es/menu/SubMenu.js.map +1 -1
  123. package/dist/node_modules/antd/es/menu/style/horizontal.js +1 -1
  124. package/dist/node_modules/antd/es/menu/style/horizontal.js.map +1 -1
  125. package/dist/node_modules/antd/es/menu/style/index.js +58 -58
  126. package/dist/node_modules/antd/es/menu/style/index.js.map +1 -1
  127. package/dist/node_modules/antd/es/menu/style/vertical.js +1 -1
  128. package/dist/node_modules/antd/es/menu/style/vertical.js.map +1 -1
  129. package/dist/node_modules/antd/es/modal/ConfirmDialog.js +117 -112
  130. package/dist/node_modules/antd/es/modal/ConfirmDialog.js.map +1 -1
  131. package/dist/node_modules/antd/es/modal/Modal.js +115 -109
  132. package/dist/node_modules/antd/es/modal/Modal.js.map +1 -1
  133. package/dist/node_modules/antd/es/modal/style/index.js +83 -80
  134. package/dist/node_modules/antd/es/modal/style/index.js.map +1 -1
  135. package/dist/node_modules/antd/es/pagination/Pagination.js +85 -81
  136. package/dist/node_modules/antd/es/pagination/Pagination.js.map +1 -1
  137. package/dist/node_modules/antd/es/pagination/style/bordered.js +2 -2
  138. package/dist/node_modules/antd/es/pagination/style/bordered.js.map +1 -1
  139. package/dist/node_modules/antd/es/pagination/style/index.js +98 -132
  140. package/dist/node_modules/antd/es/pagination/style/index.js.map +1 -1
  141. package/dist/node_modules/antd/es/popover/index.js +77 -82
  142. package/dist/node_modules/antd/es/popover/index.js.map +1 -1
  143. package/dist/node_modules/antd/es/popover/style/index.js +65 -63
  144. package/dist/node_modules/antd/es/popover/style/index.js.map +1 -1
  145. package/dist/node_modules/antd/es/radio/context.js +3 -3
  146. package/dist/node_modules/antd/es/radio/context.js.map +1 -1
  147. package/dist/node_modules/antd/es/radio/group.js +31 -29
  148. package/dist/node_modules/antd/es/radio/group.js.map +1 -1
  149. package/dist/node_modules/antd/es/radio/style/index.js +1 -1
  150. package/dist/node_modules/antd/es/radio/style/index.js.map +1 -1
  151. package/dist/node_modules/antd/es/select/style/dropdown.js +1 -1
  152. package/dist/node_modules/antd/es/select/style/dropdown.js.map +1 -1
  153. package/dist/node_modules/antd/es/select/style/select-input-multiple.js +71 -69
  154. package/dist/node_modules/antd/es/select/style/select-input-multiple.js.map +1 -1
  155. package/dist/node_modules/antd/es/select/style/select-input.js +104 -98
  156. package/dist/node_modules/antd/es/select/style/select-input.js.map +1 -1
  157. package/dist/node_modules/antd/es/space/Item.js +2 -2
  158. package/dist/node_modules/antd/es/space/Item.js.map +1 -1
  159. package/dist/node_modules/antd/es/space/index.js +4 -4
  160. package/dist/node_modules/antd/es/space/index.js.map +1 -1
  161. package/dist/node_modules/antd/es/space/style/addon.js +47 -46
  162. package/dist/node_modules/antd/es/space/style/addon.js.map +1 -1
  163. package/dist/node_modules/antd/es/steps/PanelArrow.js +2 -2
  164. package/dist/node_modules/antd/es/steps/PanelArrow.js.map +1 -1
  165. package/dist/node_modules/antd/es/steps/ProgressIcon.js +12 -10
  166. package/dist/node_modules/antd/es/steps/ProgressIcon.js.map +1 -1
  167. package/dist/node_modules/antd/es/steps/index.js +108 -106
  168. package/dist/node_modules/antd/es/steps/index.js.map +1 -1
  169. package/dist/node_modules/antd/es/steps/style/horizontal.js +13 -11
  170. package/dist/node_modules/antd/es/steps/style/horizontal.js.map +1 -1
  171. package/dist/node_modules/antd/es/steps/style/icon.js +23 -18
  172. package/dist/node_modules/antd/es/steps/style/icon.js.map +1 -1
  173. package/dist/node_modules/antd/es/steps/style/index.js +41 -41
  174. package/dist/node_modules/antd/es/steps/style/index.js.map +1 -1
  175. package/dist/node_modules/antd/es/steps/style/inline.js +28 -23
  176. package/dist/node_modules/antd/es/steps/style/inline.js.map +1 -1
  177. package/dist/node_modules/antd/es/steps/style/label-placement.js +44 -39
  178. package/dist/node_modules/antd/es/steps/style/label-placement.js.map +1 -1
  179. package/dist/node_modules/antd/es/steps/style/nav.js +29 -27
  180. package/dist/node_modules/antd/es/steps/style/nav.js.map +1 -1
  181. package/dist/node_modules/antd/es/steps/style/panel.js +61 -56
  182. package/dist/node_modules/antd/es/steps/style/panel.js.map +1 -1
  183. package/dist/node_modules/antd/es/steps/style/progress-dot.js +28 -26
  184. package/dist/node_modules/antd/es/steps/style/progress-dot.js.map +1 -1
  185. package/dist/node_modules/antd/es/steps/style/progress.js +24 -57
  186. package/dist/node_modules/antd/es/steps/style/progress.js.map +1 -1
  187. package/dist/node_modules/antd/es/steps/style/rtl.js +10 -8
  188. package/dist/node_modules/antd/es/steps/style/rtl.js.map +1 -1
  189. package/dist/node_modules/antd/es/steps/style/small.js +21 -16
  190. package/dist/node_modules/antd/es/steps/style/small.js.map +1 -1
  191. package/dist/node_modules/antd/es/steps/style/status.js +187 -176
  192. package/dist/node_modules/antd/es/steps/style/status.js.map +1 -1
  193. package/dist/node_modules/antd/es/steps/style/util.js +18 -16
  194. package/dist/node_modules/antd/es/steps/style/util.js.map +1 -1
  195. package/dist/node_modules/antd/es/steps/style/vertical.js +21 -16
  196. package/dist/node_modules/antd/es/steps/style/vertical.js.map +1 -1
  197. package/dist/node_modules/antd/es/style/placementArrow.js +31 -29
  198. package/dist/node_modules/antd/es/style/placementArrow.js.map +1 -1
  199. package/dist/node_modules/antd/es/table/InternalTable.js +65 -62
  200. package/dist/node_modules/antd/es/table/InternalTable.js.map +1 -1
  201. package/dist/node_modules/antd/es/table/TableMeasureRowContext.js +6 -0
  202. package/dist/node_modules/antd/es/table/TableMeasureRowContext.js.map +1 -0
  203. package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js +145 -137
  204. package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js.map +1 -1
  205. package/dist/node_modules/antd/es/table/style/index.js +3 -3
  206. package/dist/node_modules/antd/es/table/style/index.js.map +1 -1
  207. package/dist/node_modules/antd/es/table/style/radius.js +10 -0
  208. package/dist/node_modules/antd/es/table/style/radius.js.map +1 -1
  209. package/dist/node_modules/antd/es/table/style/virtual.js +5 -5
  210. package/dist/node_modules/antd/es/table/style/virtual.js.map +1 -1
  211. package/dist/node_modules/antd/es/theme/util/genStyleUtils.js +29 -32
  212. package/dist/node_modules/antd/es/theme/util/genStyleUtils.js.map +1 -1
  213. package/dist/node_modules/antd/es/timeline/Timeline.js +76 -74
  214. package/dist/node_modules/antd/es/timeline/Timeline.js.map +1 -1
  215. package/dist/node_modules/antd/es/timeline/style/horizontal.js +21 -18
  216. package/dist/node_modules/antd/es/timeline/style/horizontal.js.map +1 -1
  217. package/dist/node_modules/antd/es/timeline/style/index.js +85 -70
  218. package/dist/node_modules/antd/es/timeline/style/index.js.map +1 -1
  219. package/dist/node_modules/antd/es/timeline/useItems.js +38 -37
  220. package/dist/node_modules/antd/es/timeline/useItems.js.map +1 -1
  221. package/dist/node_modules/antd/es/tooltip/PurePanel.js +27 -27
  222. package/dist/node_modules/antd/es/tooltip/PurePanel.js.map +1 -1
  223. package/dist/node_modules/antd/es/tooltip/UniqueProvider/MotionContent.js +17 -22
  224. package/dist/node_modules/antd/es/tooltip/UniqueProvider/MotionContent.js.map +1 -1
  225. package/dist/node_modules/antd/es/tooltip/UniqueProvider/index.js +27 -26
  226. package/dist/node_modules/antd/es/tooltip/UniqueProvider/index.js.map +1 -1
  227. package/dist/node_modules/antd/es/tooltip/index.js +50 -50
  228. package/dist/node_modules/antd/es/tooltip/index.js.map +1 -1
  229. package/dist/node_modules/antd/es/tooltip/style/index.js +55 -52
  230. package/dist/node_modules/antd/es/tooltip/style/index.js.map +1 -1
  231. package/dist/node_modules/antd/es/tooltip/util.js +13 -12
  232. package/dist/node_modules/antd/es/tooltip/util.js.map +1 -1
  233. package/dist/node_modules/antd/es/tree/DirectoryTree.js +42 -41
  234. package/dist/node_modules/antd/es/tree/DirectoryTree.js.map +1 -1
  235. package/dist/node_modules/antd/es/version/version.js +1 -1
  236. package/dist/node_modules/antd/es/version/version.js.map +1 -1
  237. package/dist/node_modules/canvg/lib/index.es.js +84 -84
  238. package/dist/node_modules/canvg/lib/index.es.js.map +1 -1
  239. package/dist/node_modules/compute-scroll-into-view/dist/index.js +17 -17
  240. package/dist/node_modules/compute-scroll-into-view/dist/index.js.map +1 -1
  241. package/dist/node_modules/dompurify/dist/purify.es.js +217 -223
  242. package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
  243. package/dist/node_modules/fflate/esm/browser.js +295 -335
  244. package/dist/node_modules/fflate/esm/browser.js.map +1 -1
  245. package/dist/node_modules/jspdf/dist/jspdf.es.min.js +1771 -1781
  246. package/dist/node_modules/jspdf/dist/jspdf.es.min.js.map +1 -1
  247. package/dist/node_modules/raf/index.js +1 -1
  248. package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
  249. package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
  250. package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
  251. package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
  252. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
  253. package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
  254. package/dist/node_modules/uuid/dist/esm-browser/v4.js +6 -9
  255. package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
  256. package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
  257. package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
  258. package/package.json +1 -1
  259. package/dist/node_modules/antd/es/date-picker/generatePicker/SuffixIcon.js.map +0 -1
  260. package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
  261. package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
@@ -1,15 +1,15 @@
1
- var T = Object.defineProperty;
2
- var C = (m, e, t) => e in m ? T(m, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[e] = t;
1
+ var O = Object.defineProperty;
2
+ var C = (m, e, t) => e in m ? O(m, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[e] = t;
3
3
  var r = (m, e, t) => C(m, typeof e != "symbol" ? e + "" : e, t);
4
4
  import D from "../../../../vite-plugin-node-polyfills/shims/process/dist/index.js";
5
5
  import F, { merge as b, mergeWith as H } from "../../../util/es/utils/set.js";
6
6
  import { warningOnce as k } from "../../../util/es/warning.js";
7
7
  import * as M from "react";
8
- import { HOOK_MARK as R } from "../FieldContext.js";
9
- import { allPromiseFinish as _ } from "../utils/asyncUtil.js";
8
+ import { HOOK_MARK as _ } from "../FieldContext.js";
9
+ import { allPromiseFinish as R } from "../utils/asyncUtil.js";
10
10
  import { defaultValidateMessages as j } from "../utils/messages.js";
11
11
  import E from "../utils/NameMap.js";
12
- import { getNamePath as g, cloneByNamePathList as A, containsNamePath as W, matchNamePath as L } from "../utils/valueUtil.js";
12
+ import { getNamePath as u, cloneByNamePathList as U, containsNamePath as A, matchNamePath as L } from "../utils/valueUtil.js";
13
13
  import x from "./useNotifyWatch.js";
14
14
  import y from "../../../util/es/utils/get.js";
15
15
  class $ {
@@ -45,7 +45,7 @@ class $ {
45
45
  getInternalHooks: this.getInternalHooks
46
46
  }));
47
47
  // ======================== Internal Hooks ========================
48
- r(this, "getInternalHooks", (e) => e === R ? (this.formHooked = !0, {
48
+ r(this, "getInternalHooks", (e) => e === _ ? (this.formHooked = !0, {
49
49
  dispatch: this.dispatch,
50
50
  initEntityValue: this.initEntityValue,
51
51
  registerField: this.registerField,
@@ -125,6 +125,11 @@ class $ {
125
125
  * @param pure Only return field which has a `name`. Default: false
126
126
  */
127
127
  r(this, "getFieldEntities", (e = !1) => e ? this.fieldEntities.filter((t) => t.getNamePath().length) : this.fieldEntities);
128
+ /**
129
+ * Get a map of registered field entities with their name path as the key.
130
+ * @param pure Only include fields which have a `name`. Default: false
131
+ * @returns A NameMap containing field entities indexed by their name paths
132
+ */
128
133
  r(this, "getFieldsMap", (e = !1) => {
129
134
  const t = new E();
130
135
  return this.getFieldEntities(e).forEach((i) => {
@@ -132,14 +137,24 @@ class $ {
132
137
  t.set(s, i);
133
138
  }), t;
134
139
  });
135
- r(this, "getFieldEntitiesForNamePathList", (e) => {
140
+ /**
141
+ * Get field entities based on a list of name paths.
142
+ * @param nameList - Array of name paths to search for. If not provided, returns all field entities with names.
143
+ * @param includesSubNamePath - Whether to include fields that have the given name path as a prefix.
144
+ */
145
+ r(this, "getFieldEntitiesForNamePathList", (e, t = !1) => {
136
146
  if (!e)
137
147
  return this.getFieldEntities(!0);
138
- const t = this.getFieldsMap(!0);
139
- return e.map((i) => {
140
- const s = g(i);
141
- return t.get(s) || {
142
- INVALIDATE_NAME_PATH: g(i)
148
+ const i = this.getFieldsMap(!0);
149
+ return t ? e.flatMap((s) => {
150
+ const n = u(s), a = i.getAsPrefix(n);
151
+ return a.length ? a : [{
152
+ INVALIDATE_NAME_PATH: n
153
+ }];
154
+ }) : e.map((s) => {
155
+ const n = u(s);
156
+ return i.get(n) || {
157
+ INVALIDATE_NAME_PATH: u(s)
143
158
  };
144
159
  });
145
160
  });
@@ -148,28 +163,28 @@ class $ {
148
163
  let i, s;
149
164
  if (e === !0 || Array.isArray(e) ? (i = e, s = t) : e && typeof e == "object" && (s = e.filter), i === !0 && !s)
150
165
  return this.store;
151
- const o = this.getFieldEntitiesForNamePathList(Array.isArray(i) ? i : null), a = [], n = [];
152
- o.forEach((l) => {
153
- const u = l.INVALIDATE_NAME_PATH || l.getNamePath();
166
+ const n = this.getFieldEntitiesForNamePathList(Array.isArray(i) ? i : null, !0), a = [], o = [];
167
+ n.forEach((l) => {
168
+ const g = l.INVALIDATE_NAME_PATH || l.getNamePath();
154
169
  if (l.isList?.()) {
155
- n.push(u);
170
+ o.push(g);
156
171
  return;
157
172
  }
158
173
  if (!s)
159
- a.push(u);
174
+ a.push(g);
160
175
  else {
161
176
  const d = "getMeta" in l ? l.getMeta() : null;
162
- s(d) && a.push(u);
177
+ s(d) && a.push(g);
163
178
  }
164
179
  });
165
- let h = A(this.store, a.map(g));
166
- return n.forEach((l) => {
180
+ let h = U(this.store, a.map(u));
181
+ return o.forEach((l) => {
167
182
  y(h, l) || (h = F(h, l, []));
168
183
  }), h;
169
184
  });
170
185
  r(this, "getFieldValue", (e) => {
171
186
  this.warningUnhooked();
172
- const t = g(e);
187
+ const t = u(e);
173
188
  return y(this.store, t);
174
189
  });
175
190
  r(this, "getFieldsError", (e) => (this.warningUnhooked(), this.getFieldEntitiesForNamePathList(e).map((i, s) => i && !i.INVALIDATE_NAME_PATH ? {
@@ -177,41 +192,41 @@ class $ {
177
192
  errors: i.getErrors(),
178
193
  warnings: i.getWarnings()
179
194
  } : {
180
- name: g(e[s]),
195
+ name: u(e[s]),
181
196
  errors: [],
182
197
  warnings: []
183
198
  })));
184
199
  r(this, "getFieldError", (e) => {
185
200
  this.warningUnhooked();
186
- const t = g(e);
201
+ const t = u(e);
187
202
  return this.getFieldsError([t])[0].errors;
188
203
  });
189
204
  r(this, "getFieldWarning", (e) => {
190
205
  this.warningUnhooked();
191
- const t = g(e);
206
+ const t = u(e);
192
207
  return this.getFieldsError([t])[0].warnings;
193
208
  });
194
209
  r(this, "isFieldsTouched", (...e) => {
195
210
  this.warningUnhooked();
196
211
  const [t, i] = e;
197
- let s, o = !1;
198
- e.length === 0 ? s = null : e.length === 1 ? Array.isArray(t) ? (s = t.map(g), o = !1) : (s = null, o = t) : (s = t.map(g), o = i);
199
- const a = this.getFieldEntities(!0), n = (d) => d.isFieldTouched();
212
+ let s, n = !1;
213
+ e.length === 0 ? s = null : e.length === 1 ? Array.isArray(t) ? (s = t.map(u), n = !1) : (s = null, n = t) : (s = t.map(u), n = i);
214
+ const a = this.getFieldEntities(!0), o = (d) => d.isFieldTouched();
200
215
  if (!s)
201
- return o ? a.every((d) => n(d) || d.isList()) : a.some(n);
216
+ return n ? a.every((d) => o(d) || d.isList()) : a.some(o);
202
217
  const h = new E();
203
218
  s.forEach((d) => {
204
219
  h.set(d, []);
205
220
  }), a.forEach((d) => {
206
221
  const v = d.getNamePath();
207
222
  s.forEach((p) => {
208
- p.every((V, S) => v[S] === V) && h.update(p, (V) => [...V, d]);
223
+ p.every((V, I) => v[I] === V) && h.update(p, (V) => [...V, d]);
209
224
  });
210
225
  });
211
- const l = (d) => d.some(n), u = h.map(({
226
+ const l = (d) => d.some(o), g = h.map(({
212
227
  value: d
213
228
  }) => d);
214
- return o ? u.every(l) : u.some(l);
229
+ return n ? g.every(l) : g.some(l);
215
230
  });
216
231
  r(this, "isFieldTouched", (e) => (this.warningUnhooked(), this.isFieldsTouched([e])));
217
232
  r(this, "isFieldsValidating", (e) => {
@@ -219,10 +234,10 @@ class $ {
219
234
  const t = this.getFieldEntities();
220
235
  if (!e)
221
236
  return t.some((s) => s.isFieldValidating());
222
- const i = e.map(g);
237
+ const i = e.map(u);
223
238
  return t.some((s) => {
224
- const o = s.getNamePath();
225
- return W(i, o) && s.isFieldValidating();
239
+ const n = s.getNamePath();
240
+ return A(i, n) && s.isFieldValidating();
226
241
  });
227
242
  });
228
243
  r(this, "isFieldValidating", (e) => (this.warningUnhooked(), this.isFieldsValidating([e])));
@@ -234,23 +249,23 @@ class $ {
234
249
  const t = new E(), i = this.getFieldEntities(!0);
235
250
  i.forEach((a) => {
236
251
  const {
237
- initialValue: n
252
+ initialValue: o
238
253
  } = a.props, h = a.getNamePath();
239
- if (n !== void 0) {
254
+ if (o !== void 0) {
240
255
  const l = t.get(h) || /* @__PURE__ */ new Set();
241
256
  l.add({
242
257
  entity: a,
243
- value: n
258
+ value: o
244
259
  }), t.set(h, l);
245
260
  }
246
261
  });
247
262
  const s = (a) => {
248
- a.forEach((n) => {
263
+ a.forEach((o) => {
249
264
  const {
250
265
  initialValue: h
251
- } = n.props;
266
+ } = o.props;
252
267
  if (h !== void 0) {
253
- const l = n.getNamePath();
268
+ const l = o.getNamePath();
254
269
  if (this.getInitialValue(l) !== void 0)
255
270
  k(!1, `Form already set 'initialValues' with path '${l.join(".")}'. Field can not overwrite it.`);
256
271
  else {
@@ -259,17 +274,17 @@ class $ {
259
274
  k(!1, `Multiple Field with path '${l.join(".")}' set 'initialValue'. Can not decide which one to pick.`);
260
275
  else if (d) {
261
276
  const v = this.getFieldValue(l);
262
- !n.isListField() && (!e.skipExist || v === void 0) && this.updateStore(F(this.store, l, [...d][0].value));
277
+ !o.isListField() && (!e.skipExist || v === void 0) && this.updateStore(F(this.store, l, [...d][0].value));
263
278
  }
264
279
  }
265
280
  }
266
281
  });
267
282
  };
268
- let o;
269
- e.entities ? o = e.entities : e.namePathList ? (o = [], e.namePathList.forEach((a) => {
270
- const n = t.get(a);
271
- n && o.push(...[...n].map((h) => h.entity));
272
- })) : o = i, s(o);
283
+ let n;
284
+ e.entities ? n = e.entities : e.namePathList ? (n = [], e.namePathList.forEach((a) => {
285
+ const o = t.get(a);
286
+ o && n.push(...[...o].map((h) => h.entity));
287
+ })) : n = i, s(n);
273
288
  });
274
289
  r(this, "resetFields", (e) => {
275
290
  this.warningUnhooked();
@@ -280,10 +295,10 @@ class $ {
280
295
  }), this.notifyWatch();
281
296
  return;
282
297
  }
283
- const i = e.map(g);
298
+ const i = e.map(u);
284
299
  i.forEach((s) => {
285
- const o = this.getInitialValue(s);
286
- this.updateStore(F(this.store, s, o));
300
+ const n = this.getInitialValue(s);
301
+ this.updateStore(F(this.store, s, n));
287
302
  }), this.resetWithFieldInitialValue({
288
303
  namePathList: i
289
304
  }), this.notifyObservers(t, i, {
@@ -295,10 +310,10 @@ class $ {
295
310
  const t = this.store, i = [];
296
311
  e.forEach((s) => {
297
312
  const {
298
- name: o,
313
+ name: n,
299
314
  ...a
300
- } = s, n = g(o);
301
- i.push(n), "value" in a && this.updateStore(F(this.store, n, a.value)), this.notifyObservers(t, [n], {
315
+ } = s, o = u(n);
316
+ i.push(o), "value" in a && this.updateStore(F(this.store, o, a.value)), this.notifyObservers(t, [o], {
302
317
  type: "setField",
303
318
  data: s
304
319
  });
@@ -341,17 +356,17 @@ class $ {
341
356
  source: "internal"
342
357
  });
343
358
  }
344
- return (i, s, o = []) => {
345
- if (this.fieldEntities = this.fieldEntities.filter((a) => a !== e), !this.isMergedPreserve(s) && (!i || o.length > 1)) {
359
+ return (i, s, n = []) => {
360
+ if (this.fieldEntities = this.fieldEntities.filter((a) => a !== e), !this.isMergedPreserve(s) && (!i || n.length > 1)) {
346
361
  const a = i ? void 0 : this.getInitialValue(t);
347
- if (t.length && this.getFieldValue(t) !== a && this.fieldEntities.every((n) => (
362
+ if (t.length && this.getFieldValue(t) !== a && this.fieldEntities.every((o) => (
348
363
  // Only reset when no namePath exist
349
- !L(n.getNamePath(), t)
364
+ !L(o.getNamePath(), t)
350
365
  ))) {
351
- const n = this.store;
352
- this.updateStore(F(n, t, a, !0)), this.notifyObservers(n, [t], {
366
+ const o = this.store;
367
+ this.updateStore(F(o, t, a, !0)), this.notifyObservers(o, [t], {
353
368
  type: "remove"
354
- }), this.triggerDependenciesUpdate(n, t);
369
+ }), this.triggerDependenciesUpdate(o, t);
355
370
  }
356
371
  }
357
372
  this.notifyWatch([t]);
@@ -386,9 +401,9 @@ class $ {
386
401
  store: this.getFieldsValue(!0)
387
402
  };
388
403
  this.getFieldEntities().forEach(({
389
- onStoreChange: o
404
+ onStoreChange: n
390
405
  }) => {
391
- o(e, t, s);
406
+ n(e, t, s);
392
407
  });
393
408
  } else
394
409
  this.forceRootUpdate();
@@ -405,22 +420,22 @@ class $ {
405
420
  }), i;
406
421
  });
407
422
  r(this, "updateValue", (e, t) => {
408
- const i = g(e), s = this.store;
423
+ const i = u(e), s = this.store;
409
424
  this.updateStore(F(this.store, i, t)), this.notifyObservers(s, [i], {
410
425
  type: "valueUpdate",
411
426
  source: "internal"
412
427
  }), this.notifyWatch([i]);
413
- const o = this.triggerDependenciesUpdate(s, i), {
428
+ const n = this.triggerDependenciesUpdate(s, i), {
414
429
  onValuesChange: a
415
430
  } = this.callbacks;
416
431
  if (a) {
417
- const n = this.getFieldsMap(!0).get(i), h = A(this.store, [i]), l = this.getFieldsValue(), u = H([l, h], {
432
+ const o = this.getFieldsMap(!0).get(i), h = U(this.store, [i]), l = this.getFieldsValue(), g = H([l, h], {
418
433
  // When value is array, it means trigger by Form.List which should replace directly
419
- prepareArray: (d) => n?.isList() ? [] : [...d || []]
434
+ prepareArray: (d) => o?.isList() ? [] : [...d || []]
420
435
  });
421
- a(h, u);
436
+ a(h, g);
422
437
  }
423
- this.triggerOnFieldsChange([i, ...o]);
438
+ this.triggerOnFieldsChange([i, ...n]);
424
439
  });
425
440
  // Let all child Field get update.
426
441
  r(this, "setFieldsValue", (e) => {
@@ -448,23 +463,23 @@ class $ {
448
463
  const t = /* @__PURE__ */ new Set(), i = [], s = new E();
449
464
  this.getFieldEntities().forEach((a) => {
450
465
  const {
451
- dependencies: n
466
+ dependencies: o
452
467
  } = a.props;
453
- (n || []).forEach((h) => {
454
- const l = g(h);
455
- s.update(l, (u = /* @__PURE__ */ new Set()) => (u.add(a), u));
468
+ (o || []).forEach((h) => {
469
+ const l = u(h);
470
+ s.update(l, (g = /* @__PURE__ */ new Set()) => (g.add(a), g));
456
471
  });
457
472
  });
458
- const o = (a) => {
473
+ const n = (a) => {
459
474
  (s.get(a) || /* @__PURE__ */ new Set()).forEach((h) => {
460
475
  if (!t.has(h)) {
461
476
  t.add(h);
462
477
  const l = h.getNamePath();
463
- h.isFieldDirty() && l.length && (i.push(l), o(l));
478
+ h.isFieldDirty() && l.length && (i.push(l), n(l));
464
479
  }
465
480
  });
466
481
  };
467
- return o(e), i;
482
+ return n(e), i;
468
483
  });
469
484
  r(this, "triggerOnFieldsChange", (e, t) => {
470
485
  const {
@@ -475,18 +490,18 @@ class $ {
475
490
  if (t) {
476
491
  const a = new E();
477
492
  t.forEach(({
478
- name: n,
493
+ name: o,
479
494
  errors: h
480
495
  }) => {
481
- a.set(n, h);
482
- }), s.forEach((n) => {
483
- n.errors = a.get(n.name) || n.errors;
496
+ a.set(o, h);
497
+ }), s.forEach((o) => {
498
+ o.errors = a.get(o.name) || o.errors;
484
499
  });
485
500
  }
486
- const o = s.filter(({
501
+ const n = s.filter(({
487
502
  name: a
488
- }) => W(e, a));
489
- o.length && i(o, s);
503
+ }) => A(e, a));
504
+ n.length && i(n, s);
490
505
  }
491
506
  });
492
507
  // =========================== Validate ===========================
@@ -494,15 +509,15 @@ class $ {
494
509
  this.warningUnhooked();
495
510
  let i, s;
496
511
  Array.isArray(e) || typeof e == "string" || typeof t == "string" ? (i = e, s = t) : s = e;
497
- const o = !!i, a = o ? i.map(g) : [], n = [...a], h = [], l = String(Date.now()), u = /* @__PURE__ */ new Set(), {
512
+ const n = !!i, a = n ? i.map(u) : [], o = [...a], h = [], l = String(Date.now()), g = /* @__PURE__ */ new Set(), {
498
513
  recursive: d,
499
514
  dirty: v
500
515
  } = s || {};
501
516
  this.getFieldEntities(!0).forEach((c) => {
502
517
  const f = c.getNamePath();
503
- if (o || // If is field, pass directly
518
+ if (n || // If is field, pass directly
504
519
  ((!c.isList() || // If is list, do not add if already exist sub field in the namePathList
505
- !a.some((P) => L(P, f, !0))) && n.push(f), a.push(f)), !(!c.props.rules || !c.props.rules.length) && !(v && !c.isFieldDirty()) && (u.add(f.join(l)), !o || W(a, f, d))) {
520
+ !a.some((P) => L(P, f, !0))) && o.push(f), a.push(f)), !(!c.props.rules || !c.props.rules.length) && !(v && !c.isFieldDirty()) && (g.add(f.join(l)), !n || A(a, f, d))) {
506
521
  const P = c.validateRules({
507
522
  validateMessages: {
508
523
  ...j,
@@ -514,28 +529,28 @@ class $ {
514
529
  name: f,
515
530
  errors: [],
516
531
  warnings: []
517
- })).catch((w) => {
518
- const N = [], I = [];
519
- return w.forEach?.(({
532
+ })).catch((N) => {
533
+ const w = [], S = [];
534
+ return N.forEach?.(({
520
535
  rule: {
521
- warningOnly: O
536
+ warningOnly: T
522
537
  },
523
- errors: U
538
+ errors: W
524
539
  }) => {
525
- O ? I.push(...U) : N.push(...U);
526
- }), N.length ? Promise.reject({
540
+ T ? S.push(...W) : w.push(...W);
541
+ }), w.length ? Promise.reject({
527
542
  name: f,
528
- errors: N,
529
- warnings: I
543
+ errors: w,
544
+ warnings: S
530
545
  }) : {
531
546
  name: f,
532
- errors: N,
533
- warnings: I
547
+ errors: w,
548
+ warnings: S
534
549
  };
535
550
  }));
536
551
  }
537
552
  });
538
- const p = _(h);
553
+ const p = R(h);
539
554
  this.lastValidatePromise = p, p.catch((c) => c).then((c) => {
540
555
  const f = c.map(({
541
556
  name: P
@@ -544,8 +559,8 @@ class $ {
544
559
  type: "validateFinish"
545
560
  }), this.triggerOnFieldsChange(f, c);
546
561
  });
547
- const V = p.then(() => this.lastValidatePromise === p ? Promise.resolve(this.getFieldsValue(n)) : Promise.reject([])).catch((c) => {
548
- const f = c.filter((w) => w && w.errors.length), P = f[0]?.errors?.[0];
562
+ const V = p.then(() => this.lastValidatePromise === p ? Promise.resolve(this.getFieldsValue(o)) : Promise.reject([])).catch((c) => {
563
+ const f = c.filter((N) => N && N.errors.length), P = f[0]?.errors?.[0];
549
564
  return Promise.reject({
550
565
  message: P,
551
566
  values: this.getFieldsValue(a),
@@ -554,8 +569,8 @@ class $ {
554
569
  });
555
570
  });
556
571
  V.catch((c) => c);
557
- const S = a.filter((c) => u.has(c.join(l)));
558
- return this.triggerOnFieldsChange(S), V;
572
+ const I = a.filter((c) => g.has(c.join(l)));
573
+ return this.triggerOnFieldsChange(I), V;
559
574
  });
560
575
  // ============================ Submit ============================
561
576
  r(this, "submit", () => {