ods-component-lib 1.21.2 → 1.21.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 (376) hide show
  1. package/dist/components/antd/currencyInput/CurrencySelect.js +16 -11
  2. package/dist/components/antd/currencyInput/CurrencySelect.js.map +1 -1
  3. package/dist/components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid.js +32 -43
  4. package/dist/components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid.js.map +1 -1
  5. package/dist/components/devextreme/OdsDataGrid.Legacy.js +4 -4
  6. package/dist/components/devextreme/OdsRemoteDataGrid.js +1 -1
  7. package/dist/index.js +10 -10
  8. package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js +6 -6
  9. package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js.map +1 -1
  10. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js +20 -20
  11. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js.map +1 -1
  12. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js.map +1 -1
  13. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js +101 -98
  14. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js.map +1 -1
  15. package/dist/node_modules/@ant-design/cssinjs/es/linters/utils.js +1 -1
  16. package/dist/node_modules/@ant-design/cssinjs/es/util/index.js +29 -27
  17. package/dist/node_modules/@ant-design/cssinjs/es/util/index.js.map +1 -1
  18. package/dist/node_modules/@ant-design/cssinjs-utils/es/util/getComponentToken.js +1 -1
  19. package/dist/node_modules/@ant-design/fast-color/es/FastColor.js +66 -45
  20. package/dist/node_modules/@ant-design/fast-color/es/FastColor.js.map +1 -1
  21. package/dist/node_modules/@ant-design/icons/es/icons/FrownOutlined.js +5 -8
  22. package/dist/node_modules/@ant-design/icons/es/icons/HeartOutlined.js +3 -6
  23. package/dist/node_modules/@ant-design/icons/es/icons/MehOutlined.js +12 -15
  24. package/dist/node_modules/@ant-design/icons/es/icons/SmileOutlined.js +8 -11
  25. package/dist/node_modules/@ant-design/icons/es/utils.js +2 -9
  26. package/dist/node_modules/@ant-design/icons/es/utils.js.map +1 -1
  27. package/dist/node_modules/@emotion/stylis/dist/stylis.browser.esm.js +1 -9
  28. package/dist/node_modules/@emotion/stylis/dist/stylis.browser.esm.js.map +1 -1
  29. package/dist/node_modules/@rc-component/async-validator/es/index.js +20 -20
  30. package/dist/node_modules/@rc-component/async-validator/es/index.js.map +1 -1
  31. package/dist/node_modules/@rc-component/async-validator/es/messages.js +1 -0
  32. package/dist/node_modules/@rc-component/async-validator/es/messages.js.map +1 -1
  33. package/dist/node_modules/@rc-component/async-validator/es/rule/type.js +18 -8
  34. package/dist/node_modules/@rc-component/async-validator/es/rule/type.js.map +1 -1
  35. package/dist/node_modules/@rc-component/async-validator/es/util.js +1 -1
  36. package/dist/node_modules/@rc-component/async-validator/es/util.js.map +1 -1
  37. package/dist/node_modules/@rc-component/async-validator/es/validator/index.js +1 -0
  38. package/dist/node_modules/@rc-component/async-validator/es/validator/index.js.map +1 -1
  39. package/dist/node_modules/@rc-component/collapse/es/Collapse.js +1 -1
  40. package/dist/node_modules/@rc-component/collapse/es/hooks/useItems.js +88 -68
  41. package/dist/node_modules/@rc-component/collapse/es/hooks/useItems.js.map +1 -1
  42. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js +75 -96
  43. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js.map +1 -1
  44. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/index.js +22 -20
  45. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/index.js.map +1 -1
  46. package/dist/node_modules/@rc-component/dialog/es/Dialog/index.js +92 -100
  47. package/dist/node_modules/@rc-component/dialog/es/Dialog/index.js.map +1 -1
  48. package/dist/node_modules/@rc-component/dialog/es/DialogWrap.js +40 -29
  49. package/dist/node_modules/@rc-component/dialog/es/DialogWrap.js.map +1 -1
  50. package/dist/node_modules/@rc-component/dropdown/es/Dropdown.js +2 -2
  51. package/dist/node_modules/@rc-component/form/es/Field.js +9 -9
  52. package/dist/node_modules/@rc-component/form/es/FieldContext.js +2 -3
  53. package/dist/node_modules/@rc-component/form/es/FieldContext.js.map +1 -1
  54. package/dist/node_modules/@rc-component/form/es/Form.js +78 -92
  55. package/dist/node_modules/@rc-component/form/es/Form.js.map +1 -1
  56. package/dist/node_modules/@rc-component/form/es/List.js +1 -1
  57. package/dist/node_modules/@rc-component/form/es/{useForm.js → hooks/useForm.js} +136 -143
  58. package/dist/node_modules/@rc-component/form/es/hooks/useForm.js.map +1 -0
  59. package/dist/node_modules/@rc-component/form/es/hooks/useNotifyWatch.js +43 -0
  60. package/dist/node_modules/@rc-component/form/es/hooks/useNotifyWatch.js.map +1 -0
  61. package/dist/node_modules/@rc-component/form/es/{useWatch.js → hooks/useWatch.js} +7 -7
  62. package/dist/node_modules/@rc-component/form/es/hooks/useWatch.js.map +1 -0
  63. package/dist/node_modules/@rc-component/form/es/index.js +2 -2
  64. package/dist/node_modules/@rc-component/form/es/index.js.map +1 -1
  65. package/dist/node_modules/@rc-component/form/es/utils/NameMap.js +28 -22
  66. package/dist/node_modules/@rc-component/form/es/utils/NameMap.js.map +1 -1
  67. package/dist/node_modules/@rc-component/form/es/utils/messages.js +1 -0
  68. package/dist/node_modules/@rc-component/form/es/utils/messages.js.map +1 -1
  69. package/dist/node_modules/@rc-component/form/es/utils/validateUtil.js +1 -1
  70. package/dist/node_modules/@rc-component/form/es/utils/valueUtil.js.map +1 -1
  71. package/dist/node_modules/@rc-component/image/es/Preview/index.js +111 -105
  72. package/dist/node_modules/@rc-component/image/es/Preview/index.js.map +1 -1
  73. package/dist/node_modules/@rc-component/input-number/es/hooks/useCursor.js +1 -1
  74. package/dist/node_modules/@rc-component/menu/es/Menu.js +1 -1
  75. package/dist/node_modules/@rc-component/menu/es/MenuItem.js +1 -1
  76. package/dist/node_modules/@rc-component/menu/es/SubMenu/index.js +1 -1
  77. package/dist/node_modules/@rc-component/menu/es/hooks/useKeyRecords.js +1 -1
  78. package/dist/node_modules/@rc-component/menu/es/placements.js +0 -1
  79. package/dist/node_modules/@rc-component/menu/es/utils/warnUtil.js +1 -1
  80. package/dist/node_modules/@rc-component/pagination/es/Pagination.js +1 -1
  81. package/dist/node_modules/@rc-component/picker/es/PickerInput/RangePicker.js +1 -1
  82. package/dist/node_modules/@rc-component/picker/es/PickerInput/Selector/hooks/useClearIcon.js +1 -1
  83. package/dist/node_modules/@rc-component/picker/es/PickerInput/Selector/hooks/useInputProps.js +1 -1
  84. package/dist/node_modules/@rc-component/picker/es/PickerInput/hooks/useCellRender.js +1 -1
  85. package/dist/node_modules/@rc-component/picker/es/PickerInput/hooks/useFilledProps.js +1 -1
  86. package/dist/node_modules/@rc-component/picker/es/PickerInput/hooks/usePresets.js +1 -1
  87. package/dist/node_modules/@rc-component/picker/es/PickerPanel/index.js +1 -1
  88. package/dist/node_modules/@rc-component/picker/es/hooks/useTimeInfo.js +1 -1
  89. package/dist/node_modules/@rc-component/portal/es/Portal.js +41 -35
  90. package/dist/node_modules/@rc-component/portal/es/Portal.js.map +1 -1
  91. package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js +48 -0
  92. package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js.map +1 -0
  93. package/dist/node_modules/@rc-component/resize-observer/es/SingleObserver/index.js +18 -54
  94. package/dist/node_modules/@rc-component/resize-observer/es/SingleObserver/index.js.map +1 -1
  95. package/dist/node_modules/@rc-component/resize-observer/es/index.js.map +1 -1
  96. package/dist/node_modules/@rc-component/resize-observer/es/useResizeObserver.js +50 -0
  97. package/dist/node_modules/@rc-component/resize-observer/es/useResizeObserver.js.map +1 -0
  98. package/dist/node_modules/@rc-component/select/es/BaseSelect/index.js +141 -140
  99. package/dist/node_modules/@rc-component/select/es/BaseSelect/index.js.map +1 -1
  100. package/dist/node_modules/@rc-component/select/es/OptionList.js +92 -91
  101. package/dist/node_modules/@rc-component/select/es/OptionList.js.map +1 -1
  102. package/dist/node_modules/@rc-component/select/es/Select.js +5 -5
  103. package/dist/node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js +50 -50
  104. package/dist/node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js.map +1 -1
  105. package/dist/node_modules/@rc-component/select/es/SelectInput/Content/SingleContent.js +41 -47
  106. package/dist/node_modules/@rc-component/select/es/SelectInput/Content/SingleContent.js.map +1 -1
  107. package/dist/node_modules/@rc-component/select/es/SelectInput/index.js +85 -80
  108. package/dist/node_modules/@rc-component/select/es/SelectInput/index.js.map +1 -1
  109. package/dist/node_modules/@rc-component/select/es/hooks/useOpen.js +27 -26
  110. package/dist/node_modules/@rc-component/select/es/hooks/useOpen.js.map +1 -1
  111. package/dist/node_modules/@rc-component/select/es/utils/valueUtil.js +1 -1
  112. package/dist/node_modules/@rc-component/select/es/utils/warningPropsUtil.js +6 -6
  113. package/dist/node_modules/@rc-component/table/es/Cell/useCellRender.js +1 -1
  114. package/dist/node_modules/@rc-component/table/es/Table.js +1 -1
  115. package/dist/node_modules/@rc-component/table/es/VirtualTable/BodyGrid.js +85 -80
  116. package/dist/node_modules/@rc-component/table/es/VirtualTable/BodyGrid.js.map +1 -1
  117. package/dist/node_modules/@rc-component/table/es/VirtualTable/index.js +1 -1
  118. package/dist/node_modules/@rc-component/table/es/hooks/useColumns/index.js +1 -1
  119. package/dist/node_modules/@rc-component/table/es/hooks/useExpand.js +1 -1
  120. package/dist/node_modules/@rc-component/table/es/utils/legacyUtil.js +1 -1
  121. package/dist/node_modules/@rc-component/tabs/es/hooks/useAnimateConfig.js +1 -1
  122. package/dist/node_modules/@rc-component/tooltip/es/placements.js +0 -1
  123. package/dist/node_modules/@rc-component/tree/es/Tree.js +1 -1
  124. package/dist/node_modules/@rc-component/tree/es/util.js +1 -1
  125. package/dist/node_modules/@rc-component/tree/es/utils/conductUtil.js +1 -1
  126. package/dist/node_modules/@rc-component/tree/es/utils/treeUtil.js +1 -1
  127. package/dist/node_modules/@rc-component/tree-select/es/TreeSelect.js +1 -1
  128. package/dist/node_modules/@rc-component/tree-select/es/hooks/useDataEntities.js +1 -1
  129. package/dist/node_modules/@rc-component/tree-select/es/utils/legacyUtil.js +1 -1
  130. package/dist/node_modules/@rc-component/tree-select/es/utils/warningPropsUtil.js +1 -1
  131. package/dist/node_modules/@rc-component/trigger/es/Popup/index.js +74 -72
  132. package/dist/node_modules/@rc-component/trigger/es/Popup/index.js.map +1 -1
  133. package/dist/node_modules/@rc-component/trigger/es/UniqueProvider/index.js +10 -9
  134. package/dist/node_modules/@rc-component/trigger/es/UniqueProvider/index.js.map +1 -1
  135. package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js +126 -123
  136. package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js.map +1 -1
  137. package/dist/node_modules/@rc-component/trigger/es/index.js +150 -140
  138. package/dist/node_modules/@rc-component/trigger/es/index.js.map +1 -1
  139. package/dist/node_modules/@rc-component/trigger/es/util.js +35 -34
  140. package/dist/node_modules/@rc-component/trigger/es/util.js.map +1 -1
  141. package/dist/node_modules/@rc-component/upload/es/attr-accept.js +1 -1
  142. package/dist/node_modules/@rc-component/util/es/Dom/focus.js +65 -20
  143. package/dist/node_modules/@rc-component/util/es/Dom/focus.js.map +1 -1
  144. package/dist/node_modules/@rc-component/util/es/KeyCode.js.map +1 -1
  145. package/dist/node_modules/@rc-component/util/es/hooks/useId.js.map +1 -1
  146. package/dist/node_modules/@rc-component/util/es/hooks/useState.js +6 -6
  147. package/dist/node_modules/@rc-component/util/es/hooks/useState.js.map +1 -1
  148. package/dist/node_modules/@rc-component/util/es/hooks/useSyncState.js.map +1 -1
  149. package/dist/node_modules/@rc-component/util/es/isEqual.js +1 -1
  150. package/dist/node_modules/@rc-component/util/es/utils/set.js +21 -21
  151. package/dist/node_modules/@rc-component/util/es/utils/set.js.map +1 -1
  152. package/dist/node_modules/@rc-component/virtual-list/es/hooks/useScrollTo.js +1 -1
  153. package/dist/node_modules/antd/es/_util/warning.js +1 -1
  154. package/dist/node_modules/antd/es/_util/wave/WaveEffect.js +53 -48
  155. package/dist/node_modules/antd/es/_util/wave/WaveEffect.js.map +1 -1
  156. package/dist/node_modules/antd/es/_util/wave/index.js +1 -1
  157. package/dist/node_modules/antd/es/_util/wave/index.js.map +1 -1
  158. package/dist/node_modules/antd/es/_util/wave/style.js +8 -7
  159. package/dist/node_modules/antd/es/_util/wave/style.js.map +1 -1
  160. package/dist/node_modules/antd/es/alert/Alert.js +133 -128
  161. package/dist/node_modules/antd/es/alert/Alert.js.map +1 -1
  162. package/dist/node_modules/antd/es/badge/Badge.js +29 -28
  163. package/dist/node_modules/antd/es/badge/Badge.js.map +1 -1
  164. package/dist/node_modules/antd/es/badge/style/index.js +1 -1
  165. package/dist/node_modules/antd/es/badge/style/index.js.map +1 -1
  166. package/dist/node_modules/antd/es/button/buttonHelpers.js +47 -41
  167. package/dist/node_modules/antd/es/button/buttonHelpers.js.map +1 -1
  168. package/dist/node_modules/antd/es/button/style/compact.js +45 -36
  169. package/dist/node_modules/antd/es/button/style/compact.js.map +1 -1
  170. package/dist/node_modules/antd/es/button/style/variant.js +100 -90
  171. package/dist/node_modules/antd/es/button/style/variant.js.map +1 -1
  172. package/dist/node_modules/antd/es/calendar/generateCalendar.js +55 -57
  173. package/dist/node_modules/antd/es/calendar/generateCalendar.js.map +1 -1
  174. package/dist/node_modules/antd/es/calendar/style/index.js +18 -18
  175. package/dist/node_modules/antd/es/calendar/style/index.js.map +1 -1
  176. package/dist/node_modules/antd/es/card/CardGrid.js.map +1 -1
  177. package/dist/node_modules/antd/es/card/style/index.js +23 -11
  178. package/dist/node_modules/antd/es/card/style/index.js.map +1 -1
  179. package/dist/node_modules/antd/es/checkbox/Group.js +32 -30
  180. package/dist/node_modules/antd/es/checkbox/Group.js.map +1 -1
  181. package/dist/node_modules/antd/es/collapse/Collapse.js +61 -61
  182. package/dist/node_modules/antd/es/collapse/Collapse.js.map +1 -1
  183. package/dist/node_modules/antd/es/color-picker/color.js +9 -9
  184. package/dist/node_modules/antd/es/color-picker/color.js.map +1 -1
  185. package/dist/node_modules/antd/es/config-provider/index.js +76 -71
  186. package/dist/node_modules/antd/es/config-provider/index.js.map +1 -1
  187. package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js +29 -31
  188. package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js.map +1 -1
  189. package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js +7 -9
  190. package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js.map +1 -1
  191. package/dist/node_modules/antd/es/date-picker/generatePicker/{SuffixIcon.js → useSuffixIcon.js} +4 -4
  192. package/dist/node_modules/antd/es/date-picker/generatePicker/useSuffixIcon.js.map +1 -0
  193. package/dist/node_modules/antd/es/date-picker/style/panel.js +4 -4
  194. package/dist/node_modules/antd/es/date-picker/style/panel.js.map +1 -1
  195. package/dist/node_modules/antd/es/drawer/useFocusable.js +14 -0
  196. package/dist/node_modules/antd/es/drawer/useFocusable.js.map +1 -0
  197. package/dist/node_modules/antd/es/empty/empty.js +27 -32
  198. package/dist/node_modules/antd/es/empty/empty.js.map +1 -1
  199. package/dist/node_modules/antd/es/empty/simple.js +2 -2
  200. package/dist/node_modules/antd/es/empty/simple.js.map +1 -1
  201. package/dist/node_modules/antd/es/form/hooks/useForm.js +2 -2
  202. package/dist/node_modules/antd/es/form/index.js +1 -1
  203. package/dist/node_modules/antd/es/form/style/index.js +24 -24
  204. package/dist/node_modules/antd/es/form/style/index.js.map +1 -1
  205. package/dist/node_modules/antd/es/grid/col.js +56 -54
  206. package/dist/node_modules/antd/es/grid/col.js.map +1 -1
  207. package/dist/node_modules/antd/es/grid/style/index.js +50 -50
  208. package/dist/node_modules/antd/es/grid/style/index.js.map +1 -1
  209. package/dist/node_modules/antd/es/input/TextArea.js +16 -15
  210. package/dist/node_modules/antd/es/input/TextArea.js.map +1 -1
  211. package/dist/node_modules/antd/es/input/style/index.js +1 -0
  212. package/dist/node_modules/antd/es/input/style/index.js.map +1 -1
  213. package/dist/node_modules/antd/es/input-number/index.js +91 -91
  214. package/dist/node_modules/antd/es/input-number/index.js.map +1 -1
  215. package/dist/node_modules/antd/es/input-number/style/index.js +80 -79
  216. package/dist/node_modules/antd/es/input-number/style/index.js.map +1 -1
  217. package/dist/node_modules/antd/es/layout/Sider.js +1 -2
  218. package/dist/node_modules/antd/es/layout/style/sider.js +9 -9
  219. package/dist/node_modules/antd/es/layout/style/sider.js.map +1 -1
  220. package/dist/node_modules/antd/es/menu/MenuItem.js +6 -6
  221. package/dist/node_modules/antd/es/menu/MenuItem.js.map +1 -1
  222. package/dist/node_modules/antd/es/menu/SubMenu.js +8 -8
  223. package/dist/node_modules/antd/es/menu/SubMenu.js.map +1 -1
  224. package/dist/node_modules/antd/es/menu/style/horizontal.js +1 -1
  225. package/dist/node_modules/antd/es/menu/style/horizontal.js.map +1 -1
  226. package/dist/node_modules/antd/es/menu/style/index.js +58 -58
  227. package/dist/node_modules/antd/es/menu/style/index.js.map +1 -1
  228. package/dist/node_modules/antd/es/menu/style/vertical.js +1 -1
  229. package/dist/node_modules/antd/es/menu/style/vertical.js.map +1 -1
  230. package/dist/node_modules/antd/es/message/index.js +1 -1
  231. package/dist/node_modules/antd/es/modal/ConfirmDialog.js +117 -112
  232. package/dist/node_modules/antd/es/modal/ConfirmDialog.js.map +1 -1
  233. package/dist/node_modules/antd/es/modal/Modal.js +115 -109
  234. package/dist/node_modules/antd/es/modal/Modal.js.map +1 -1
  235. package/dist/node_modules/antd/es/modal/confirm.js +3 -3
  236. package/dist/node_modules/antd/es/modal/style/index.js +83 -80
  237. package/dist/node_modules/antd/es/modal/style/index.js.map +1 -1
  238. package/dist/node_modules/antd/es/pagination/Pagination.js +85 -81
  239. package/dist/node_modules/antd/es/pagination/Pagination.js.map +1 -1
  240. package/dist/node_modules/antd/es/pagination/style/bordered.js +2 -2
  241. package/dist/node_modules/antd/es/pagination/style/bordered.js.map +1 -1
  242. package/dist/node_modules/antd/es/pagination/style/index.js +100 -133
  243. package/dist/node_modules/antd/es/pagination/style/index.js.map +1 -1
  244. package/dist/node_modules/antd/es/popover/index.js +77 -82
  245. package/dist/node_modules/antd/es/popover/index.js.map +1 -1
  246. package/dist/node_modules/antd/es/popover/style/index.js +65 -63
  247. package/dist/node_modules/antd/es/popover/style/index.js.map +1 -1
  248. package/dist/node_modules/antd/es/progress/progress.js +4 -4
  249. package/dist/node_modules/antd/es/radio/context.js +3 -3
  250. package/dist/node_modules/antd/es/radio/context.js.map +1 -1
  251. package/dist/node_modules/antd/es/radio/group.js +31 -29
  252. package/dist/node_modules/antd/es/radio/group.js.map +1 -1
  253. package/dist/node_modules/antd/es/radio/style/index.js +1 -1
  254. package/dist/node_modules/antd/es/radio/style/index.js.map +1 -1
  255. package/dist/node_modules/antd/es/select/style/dropdown.js +1 -1
  256. package/dist/node_modules/antd/es/select/style/dropdown.js.map +1 -1
  257. package/dist/node_modules/antd/es/select/style/select-input-multiple.js +71 -69
  258. package/dist/node_modules/antd/es/select/style/select-input-multiple.js.map +1 -1
  259. package/dist/node_modules/antd/es/select/style/select-input.js +113 -98
  260. package/dist/node_modules/antd/es/select/style/select-input.js.map +1 -1
  261. package/dist/node_modules/antd/es/skeleton/Image.js +9 -9
  262. package/dist/node_modules/antd/es/skeleton/Image.js.map +1 -1
  263. package/dist/node_modules/antd/es/space/Item.js +2 -2
  264. package/dist/node_modules/antd/es/space/Item.js.map +1 -1
  265. package/dist/node_modules/antd/es/space/index.js +4 -4
  266. package/dist/node_modules/antd/es/space/index.js.map +1 -1
  267. package/dist/node_modules/antd/es/space/style/addon.js +47 -46
  268. package/dist/node_modules/antd/es/space/style/addon.js.map +1 -1
  269. package/dist/node_modules/antd/es/steps/PanelArrow.js +2 -2
  270. package/dist/node_modules/antd/es/steps/PanelArrow.js.map +1 -1
  271. package/dist/node_modules/antd/es/steps/ProgressIcon.js +12 -10
  272. package/dist/node_modules/antd/es/steps/ProgressIcon.js.map +1 -1
  273. package/dist/node_modules/antd/es/steps/index.js +108 -106
  274. package/dist/node_modules/antd/es/steps/index.js.map +1 -1
  275. package/dist/node_modules/antd/es/steps/style/horizontal.js +13 -11
  276. package/dist/node_modules/antd/es/steps/style/horizontal.js.map +1 -1
  277. package/dist/node_modules/antd/es/steps/style/icon.js +23 -18
  278. package/dist/node_modules/antd/es/steps/style/icon.js.map +1 -1
  279. package/dist/node_modules/antd/es/steps/style/index.js +41 -41
  280. package/dist/node_modules/antd/es/steps/style/index.js.map +1 -1
  281. package/dist/node_modules/antd/es/steps/style/inline.js +28 -23
  282. package/dist/node_modules/antd/es/steps/style/inline.js.map +1 -1
  283. package/dist/node_modules/antd/es/steps/style/label-placement.js +44 -39
  284. package/dist/node_modules/antd/es/steps/style/label-placement.js.map +1 -1
  285. package/dist/node_modules/antd/es/steps/style/nav.js +29 -27
  286. package/dist/node_modules/antd/es/steps/style/nav.js.map +1 -1
  287. package/dist/node_modules/antd/es/steps/style/panel.js +61 -56
  288. package/dist/node_modules/antd/es/steps/style/panel.js.map +1 -1
  289. package/dist/node_modules/antd/es/steps/style/progress-dot.js +28 -26
  290. package/dist/node_modules/antd/es/steps/style/progress-dot.js.map +1 -1
  291. package/dist/node_modules/antd/es/steps/style/progress.js +24 -57
  292. package/dist/node_modules/antd/es/steps/style/progress.js.map +1 -1
  293. package/dist/node_modules/antd/es/steps/style/rtl.js +10 -8
  294. package/dist/node_modules/antd/es/steps/style/rtl.js.map +1 -1
  295. package/dist/node_modules/antd/es/steps/style/small.js +21 -16
  296. package/dist/node_modules/antd/es/steps/style/small.js.map +1 -1
  297. package/dist/node_modules/antd/es/steps/style/status.js +187 -176
  298. package/dist/node_modules/antd/es/steps/style/status.js.map +1 -1
  299. package/dist/node_modules/antd/es/steps/style/util.js +18 -16
  300. package/dist/node_modules/antd/es/steps/style/util.js.map +1 -1
  301. package/dist/node_modules/antd/es/steps/style/vertical.js +21 -16
  302. package/dist/node_modules/antd/es/steps/style/vertical.js.map +1 -1
  303. package/dist/node_modules/antd/es/style/placementArrow.js +31 -29
  304. package/dist/node_modules/antd/es/style/placementArrow.js.map +1 -1
  305. package/dist/node_modules/antd/es/table/InternalTable.js +65 -62
  306. package/dist/node_modules/antd/es/table/InternalTable.js.map +1 -1
  307. package/dist/node_modules/antd/es/table/TableMeasureRowContext.js +6 -0
  308. package/dist/node_modules/antd/es/table/TableMeasureRowContext.js.map +1 -0
  309. package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js +145 -137
  310. package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js.map +1 -1
  311. package/dist/node_modules/antd/es/table/style/index.js +3 -3
  312. package/dist/node_modules/antd/es/table/style/index.js.map +1 -1
  313. package/dist/node_modules/antd/es/table/style/radius.js +10 -0
  314. package/dist/node_modules/antd/es/table/style/radius.js.map +1 -1
  315. package/dist/node_modules/antd/es/table/style/virtual.js +5 -5
  316. package/dist/node_modules/antd/es/table/style/virtual.js.map +1 -1
  317. package/dist/node_modules/antd/es/tag/style/index.js +5 -5
  318. package/dist/node_modules/antd/es/tag/style/index.js.map +1 -1
  319. package/dist/node_modules/antd/es/theme/util/genStyleUtils.js +29 -32
  320. package/dist/node_modules/antd/es/theme/util/genStyleUtils.js.map +1 -1
  321. package/dist/node_modules/antd/es/timeline/Timeline.js +76 -74
  322. package/dist/node_modules/antd/es/timeline/Timeline.js.map +1 -1
  323. package/dist/node_modules/antd/es/timeline/style/horizontal.js +21 -18
  324. package/dist/node_modules/antd/es/timeline/style/horizontal.js.map +1 -1
  325. package/dist/node_modules/antd/es/timeline/style/index.js +85 -70
  326. package/dist/node_modules/antd/es/timeline/style/index.js.map +1 -1
  327. package/dist/node_modules/antd/es/timeline/useItems.js +38 -37
  328. package/dist/node_modules/antd/es/timeline/useItems.js.map +1 -1
  329. package/dist/node_modules/antd/es/tooltip/PurePanel.js +27 -27
  330. package/dist/node_modules/antd/es/tooltip/PurePanel.js.map +1 -1
  331. package/dist/node_modules/antd/es/tooltip/UniqueProvider/MotionContent.js +17 -22
  332. package/dist/node_modules/antd/es/tooltip/UniqueProvider/MotionContent.js.map +1 -1
  333. package/dist/node_modules/antd/es/tooltip/UniqueProvider/index.js +27 -26
  334. package/dist/node_modules/antd/es/tooltip/UniqueProvider/index.js.map +1 -1
  335. package/dist/node_modules/antd/es/tooltip/index.js +52 -51
  336. package/dist/node_modules/antd/es/tooltip/index.js.map +1 -1
  337. package/dist/node_modules/antd/es/tooltip/style/index.js +55 -52
  338. package/dist/node_modules/antd/es/tooltip/style/index.js.map +1 -1
  339. package/dist/node_modules/antd/es/tooltip/util.js +13 -12
  340. package/dist/node_modules/antd/es/tooltip/util.js.map +1 -1
  341. package/dist/node_modules/antd/es/transfer/ListBody.js +16 -16
  342. package/dist/node_modules/antd/es/transfer/ListBody.js.map +1 -1
  343. package/dist/node_modules/antd/es/transfer/ListItem.js +43 -43
  344. package/dist/node_modules/antd/es/transfer/ListItem.js.map +1 -1
  345. package/dist/node_modules/antd/es/transfer/style/index.js +1 -1
  346. package/dist/node_modules/antd/es/tree/DirectoryTree.js +42 -41
  347. package/dist/node_modules/antd/es/tree/DirectoryTree.js.map +1 -1
  348. package/dist/node_modules/antd/es/typography/Base/index.js +43 -42
  349. package/dist/node_modules/antd/es/typography/Base/index.js.map +1 -1
  350. package/dist/node_modules/antd/es/typography/style/index.js +43 -43
  351. package/dist/node_modules/antd/es/typography/style/index.js.map +1 -1
  352. package/dist/node_modules/antd/es/typography/style/mixins.js +1 -1
  353. package/dist/node_modules/antd/es/typography/style/mixins.js.map +1 -1
  354. package/dist/node_modules/antd/es/version/version.js +1 -1
  355. package/dist/node_modules/antd/es/version/version.js.map +1 -1
  356. package/dist/node_modules/antd/es/watermark/context.js +5 -6
  357. package/dist/node_modules/antd/es/watermark/context.js.map +1 -1
  358. package/dist/node_modules/antd-style/node_modules/@ant-design/cssinjs/es/StyleContext.js +1 -2
  359. package/dist/node_modules/antd-style/node_modules/@ant-design/cssinjs/es/StyleContext.js.map +1 -1
  360. package/dist/node_modules/exceljs/dist/exceljs.min.js +91 -508
  361. package/dist/node_modules/exceljs/dist/exceljs.min.js.map +1 -1
  362. package/dist/node_modules/html2canvas/dist/html2canvas.esm.js +5 -55
  363. package/dist/node_modules/html2canvas/dist/html2canvas.esm.js.map +1 -1
  364. package/dist/node_modules/jspdf/dist/jspdf.es.min.js +8 -53
  365. package/dist/node_modules/jspdf/dist/jspdf.es.min.js.map +1 -1
  366. package/dist/node_modules/lodash/lodash.js +295 -278
  367. package/dist/node_modules/lodash/lodash.js.map +1 -1
  368. package/dist/node_modules/moment/dist/moment.js +2 -8
  369. package/dist/node_modules/moment/dist/moment.js.map +1 -1
  370. package/dist/node_modules/rc-util/es/isEqual.js +1 -1
  371. package/package.json +1 -1
  372. package/dist/node_modules/@rc-component/form/es/BatchUpdate.js +0 -21
  373. package/dist/node_modules/@rc-component/form/es/BatchUpdate.js.map +0 -1
  374. package/dist/node_modules/@rc-component/form/es/useForm.js.map +0 -1
  375. package/dist/node_modules/@rc-component/form/es/useWatch.js.map +0 -1
  376. package/dist/node_modules/antd/es/date-picker/generatePicker/SuffixIcon.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import g from "../../@babel/runtime/helpers/esm/typeof.js";
2
- import { warningOnce as h } from "./warning.js";
2
+ import h from "./warning.js";
3
3
  function y(c, o) {
4
4
  var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, u = /* @__PURE__ */ new Set();
5
5
  function t(e, r) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ods-component-lib",
3
- "version": "1.21.2",
3
+ "version": "1.21.3",
4
4
  "description": "Odeon design system component lib",
5
5
  "author": "OdeonTechnology",
6
6
  "license": "MIT",
@@ -1,21 +0,0 @@
1
- import * as e from "react";
2
- const r = /* @__PURE__ */ e.forwardRef((n, s) => {
3
- const [a, o] = e.useState({});
4
- return e.useLayoutEffect(() => {
5
- const t = Object.keys(a);
6
- t.length && (t.forEach((c) => {
7
- a[c]?.();
8
- }), o({}));
9
- }, [a]), e.useImperativeHandle(s, () => ({
10
- batch: (t, c) => {
11
- o((f) => ({
12
- ...f,
13
- [t]: c
14
- }));
15
- }
16
- })), null;
17
- });
18
- export {
19
- r as default
20
- };
21
- //# sourceMappingURL=BatchUpdate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BatchUpdate.js","sources":["../../../../../node_modules/@rc-component/form/es/BatchUpdate.js"],"sourcesContent":["import * as React from 'react';\nconst BatchUpdate = /*#__PURE__*/React.forwardRef((_, ref) => {\n const [batchInfo, setBatchInfo] = React.useState({});\n React.useLayoutEffect(() => {\n const keys = Object.keys(batchInfo);\n if (keys.length) {\n keys.forEach(key => {\n batchInfo[key]?.();\n });\n setBatchInfo({});\n }\n }, [batchInfo]);\n React.useImperativeHandle(ref, () => ({\n batch: (key, callback) => {\n setBatchInfo(ori => ({\n ...ori,\n [key]: callback\n }));\n }\n }));\n return null;\n});\nexport default BatchUpdate;"],"names":["BatchUpdate","React","_","ref","batchInfo","setBatchInfo","keys","key","callback","ori"],"mappings":";AACK,MAACA,IAA2B,gBAAAC,EAAM,WAAW,CAACC,GAAGC,MAAQ;AAC5D,QAAM,CAACC,GAAWC,CAAY,IAAIJ,EAAM,SAAS,CAAA,CAAE;AACnD,SAAAA,EAAM,gBAAgB,MAAM;AAC1B,UAAMK,IAAO,OAAO,KAAKF,CAAS;AAClC,IAAIE,EAAK,WACPA,EAAK,QAAQ,CAAAC,MAAO;AAClB,MAAAH,EAAUG,CAAG,IAAC;AAAA,IAChB,CAAC,GACDF,EAAa,CAAA,CAAE;AAAA,EAEnB,GAAG,CAACD,CAAS,CAAC,GACdH,EAAM,oBAAoBE,GAAK,OAAO;AAAA,IACpC,OAAO,CAACI,GAAKC,MAAa;AACxB,MAAAH,EAAa,CAAAI,OAAQ;AAAA,QACnB,GAAGA;AAAA,QACH,CAACF,CAAG,GAAGC;AAAA,MACf,EAAQ;AAAA,IACJ;AAAA,EACJ,EAAI,GACK;AACT,CAAC;","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useForm.js","sources":["../../../../../node_modules/@rc-component/form/es/useForm.js"],"sourcesContent":["import { merge } from \"@rc-component/util/es/utils/set\";\nimport { mergeWith } from '@rc-component/util';\nimport warning from \"@rc-component/util/es/warning\";\nimport * as React from 'react';\nimport { HOOK_MARK } from \"./FieldContext\";\nimport { allPromiseFinish } from \"./utils/asyncUtil\";\nimport { defaultValidateMessages } from \"./utils/messages\";\nimport NameMap from \"./utils/NameMap\";\nimport { cloneByNamePathList, containsNamePath, getNamePath, getValue, matchNamePath, setValue } from \"./utils/valueUtil\";\nexport class FormStore {\n formHooked = false;\n forceRootUpdate;\n subscribable = true;\n store = {};\n fieldEntities = [];\n initialValues = {};\n callbacks = {};\n validateMessages = null;\n preserve = null;\n lastValidatePromise = null;\n constructor(forceRootUpdate) {\n this.forceRootUpdate = forceRootUpdate;\n }\n getForm = () => ({\n getFieldValue: this.getFieldValue,\n getFieldsValue: this.getFieldsValue,\n getFieldError: this.getFieldError,\n getFieldWarning: this.getFieldWarning,\n getFieldsError: this.getFieldsError,\n isFieldsTouched: this.isFieldsTouched,\n isFieldTouched: this.isFieldTouched,\n isFieldValidating: this.isFieldValidating,\n isFieldsValidating: this.isFieldsValidating,\n resetFields: this.resetFields,\n setFields: this.setFields,\n setFieldValue: this.setFieldValue,\n setFieldsValue: this.setFieldsValue,\n validateFields: this.validateFields,\n submit: this.submit,\n _init: true,\n getInternalHooks: this.getInternalHooks\n });\n\n // ======================== Internal Hooks ========================\n getInternalHooks = key => {\n if (key === HOOK_MARK) {\n this.formHooked = true;\n return {\n dispatch: this.dispatch,\n initEntityValue: this.initEntityValue,\n registerField: this.registerField,\n useSubscribe: this.useSubscribe,\n setInitialValues: this.setInitialValues,\n destroyForm: this.destroyForm,\n setCallbacks: this.setCallbacks,\n setValidateMessages: this.setValidateMessages,\n getFields: this.getFields,\n setPreserve: this.setPreserve,\n getInitialValue: this.getInitialValue,\n registerWatch: this.registerWatch,\n setBatchUpdate: this.setBatchUpdate\n };\n }\n warning(false, '`getInternalHooks` is internal usage. Should not call directly.');\n return null;\n };\n useSubscribe = subscribable => {\n this.subscribable = subscribable;\n };\n\n /**\n * Record prev Form unmount fieldEntities which config preserve false.\n * This need to be refill with initialValues instead of store value.\n */\n prevWithoutPreserves = null;\n\n /**\n * First time `setInitialValues` should update store with initial value\n */\n setInitialValues = (initialValues, init) => {\n this.initialValues = initialValues || {};\n if (init) {\n let nextStore = merge(initialValues, this.store);\n\n // We will take consider prev form unmount fields.\n // When the field is not `preserve`, we need fill this with initialValues instead of store.\n // eslint-disable-next-line array-callback-return\n this.prevWithoutPreserves?.map(({\n key: namePath\n }) => {\n nextStore = setValue(nextStore, namePath, getValue(initialValues, namePath));\n });\n this.prevWithoutPreserves = null;\n this.updateStore(nextStore);\n }\n };\n destroyForm = clearOnDestroy => {\n if (clearOnDestroy) {\n // destroy form reset store\n this.updateStore({});\n } else {\n // Fill preserve fields\n const prevWithoutPreserves = new NameMap();\n this.getFieldEntities(true).forEach(entity => {\n if (!this.isMergedPreserve(entity.isPreserve())) {\n prevWithoutPreserves.set(entity.getNamePath(), true);\n }\n });\n this.prevWithoutPreserves = prevWithoutPreserves;\n }\n };\n getInitialValue = namePath => {\n const initValue = getValue(this.initialValues, namePath);\n\n // Not cloneDeep when without `namePath`\n return namePath.length ? merge(initValue) : initValue;\n };\n setCallbacks = callbacks => {\n this.callbacks = callbacks;\n };\n setValidateMessages = validateMessages => {\n this.validateMessages = validateMessages;\n };\n setPreserve = preserve => {\n this.preserve = preserve;\n };\n\n // ============================= Watch ============================\n watchList = [];\n registerWatch = callback => {\n this.watchList.push(callback);\n return () => {\n this.watchList = this.watchList.filter(fn => fn !== callback);\n };\n };\n notifyWatch = (namePath = []) => {\n // No need to cost perf when nothing need to watch\n if (this.watchList.length) {\n const values = this.getFieldsValue();\n const allValues = this.getFieldsValue(true);\n this.watchList.forEach(callback => {\n callback(values, allValues, namePath);\n });\n }\n };\n notifyWatchNamePathList = [];\n batchNotifyWatch = namePath => {\n this.notifyWatchNamePathList.push(namePath);\n this.batch('notifyWatch', () => {\n this.notifyWatch(this.notifyWatchNamePathList);\n this.notifyWatchNamePathList = [];\n });\n };\n\n // ============================= Batch ============================\n batchUpdate;\n setBatchUpdate = batchUpdate => {\n this.batchUpdate = batchUpdate;\n };\n\n // Batch call the task, only last will be called\n batch = (key, callback) => {\n this.batchUpdate(key, callback);\n };\n\n // ========================== Dev Warning =========================\n timeoutId = null;\n warningUnhooked = () => {\n if (process.env.NODE_ENV !== 'production' && !this.timeoutId && typeof window !== 'undefined') {\n this.timeoutId = setTimeout(() => {\n this.timeoutId = null;\n if (!this.formHooked) {\n warning(false, 'Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?');\n }\n });\n }\n };\n\n // ============================ Store =============================\n updateStore = nextStore => {\n this.store = nextStore;\n };\n\n // ============================ Fields ============================\n /**\n * Get registered field entities.\n * @param pure Only return field which has a `name`. Default: false\n */\n getFieldEntities = (pure = false) => {\n if (!pure) {\n return this.fieldEntities;\n }\n return this.fieldEntities.filter(field => field.getNamePath().length);\n };\n getFieldsMap = (pure = false) => {\n const cache = new NameMap();\n this.getFieldEntities(pure).forEach(field => {\n const namePath = field.getNamePath();\n cache.set(namePath, field);\n });\n return cache;\n };\n getFieldEntitiesForNamePathList = nameList => {\n if (!nameList) {\n return this.getFieldEntities(true);\n }\n const cache = this.getFieldsMap(true);\n return nameList.map(name => {\n const namePath = getNamePath(name);\n return cache.get(namePath) || {\n INVALIDATE_NAME_PATH: getNamePath(name)\n };\n });\n };\n getFieldsValue = (nameList, filterFunc) => {\n this.warningUnhooked();\n\n // Fill args\n let mergedNameList;\n let mergedFilterFunc;\n if (nameList === true || Array.isArray(nameList)) {\n mergedNameList = nameList;\n mergedFilterFunc = filterFunc;\n } else if (nameList && typeof nameList === 'object') {\n mergedFilterFunc = nameList.filter;\n }\n if (mergedNameList === true && !mergedFilterFunc) {\n return this.store;\n }\n const fieldEntities = this.getFieldEntitiesForNamePathList(Array.isArray(mergedNameList) ? mergedNameList : null);\n const filteredNameList = [];\n const listNamePaths = [];\n fieldEntities.forEach(entity => {\n const namePath = entity.INVALIDATE_NAME_PATH || entity.getNamePath();\n\n // Ignore when it's a list item and not specific the namePath,\n // since parent field is already take in count\n if (entity.isList?.()) {\n listNamePaths.push(namePath);\n return;\n }\n if (!mergedFilterFunc) {\n filteredNameList.push(namePath);\n } else {\n const meta = 'getMeta' in entity ? entity.getMeta() : null;\n if (mergedFilterFunc(meta)) {\n filteredNameList.push(namePath);\n }\n }\n });\n let mergedValues = cloneByNamePathList(this.store, filteredNameList.map(getNamePath));\n\n // We need fill the list as [] if Form.List is empty\n listNamePaths.forEach(namePath => {\n if (!getValue(mergedValues, namePath)) {\n mergedValues = setValue(mergedValues, namePath, []);\n }\n });\n return mergedValues;\n };\n getFieldValue = name => {\n this.warningUnhooked();\n const namePath = getNamePath(name);\n return getValue(this.store, namePath);\n };\n getFieldsError = nameList => {\n this.warningUnhooked();\n const fieldEntities = this.getFieldEntitiesForNamePathList(nameList);\n return fieldEntities.map((entity, index) => {\n if (entity && !entity.INVALIDATE_NAME_PATH) {\n return {\n name: entity.getNamePath(),\n errors: entity.getErrors(),\n warnings: entity.getWarnings()\n };\n }\n return {\n name: getNamePath(nameList[index]),\n errors: [],\n warnings: []\n };\n });\n };\n getFieldError = name => {\n this.warningUnhooked();\n const namePath = getNamePath(name);\n const fieldError = this.getFieldsError([namePath])[0];\n return fieldError.errors;\n };\n getFieldWarning = name => {\n this.warningUnhooked();\n const namePath = getNamePath(name);\n const fieldError = this.getFieldsError([namePath])[0];\n return fieldError.warnings;\n };\n isFieldsTouched = (...args) => {\n this.warningUnhooked();\n const [arg0, arg1] = args;\n let namePathList;\n let isAllFieldsTouched = false;\n if (args.length === 0) {\n namePathList = null;\n } else if (args.length === 1) {\n if (Array.isArray(arg0)) {\n namePathList = arg0.map(getNamePath);\n isAllFieldsTouched = false;\n } else {\n namePathList = null;\n isAllFieldsTouched = arg0;\n }\n } else {\n namePathList = arg0.map(getNamePath);\n isAllFieldsTouched = arg1;\n }\n const fieldEntities = this.getFieldEntities(true);\n const isFieldTouched = field => field.isFieldTouched();\n\n // ===== Will get fully compare when not config namePathList =====\n if (!namePathList) {\n return isAllFieldsTouched ? fieldEntities.every(entity => isFieldTouched(entity) || entity.isList()) : fieldEntities.some(isFieldTouched);\n }\n\n // Generate a nest tree for validate\n const map = new NameMap();\n namePathList.forEach(shortNamePath => {\n map.set(shortNamePath, []);\n });\n fieldEntities.forEach(field => {\n const fieldNamePath = field.getNamePath();\n\n // Find matched entity and put into list\n namePathList.forEach(shortNamePath => {\n if (shortNamePath.every((nameUnit, i) => fieldNamePath[i] === nameUnit)) {\n map.update(shortNamePath, list => [...list, field]);\n }\n });\n });\n\n // Check if NameMap value is touched\n const isNamePathListTouched = entities => entities.some(isFieldTouched);\n const namePathListEntities = map.map(({\n value\n }) => value);\n return isAllFieldsTouched ? namePathListEntities.every(isNamePathListTouched) : namePathListEntities.some(isNamePathListTouched);\n };\n isFieldTouched = name => {\n this.warningUnhooked();\n return this.isFieldsTouched([name]);\n };\n isFieldsValidating = nameList => {\n this.warningUnhooked();\n const fieldEntities = this.getFieldEntities();\n if (!nameList) {\n return fieldEntities.some(testField => testField.isFieldValidating());\n }\n const namePathList = nameList.map(getNamePath);\n return fieldEntities.some(testField => {\n const fieldNamePath = testField.getNamePath();\n return containsNamePath(namePathList, fieldNamePath) && testField.isFieldValidating();\n });\n };\n isFieldValidating = name => {\n this.warningUnhooked();\n return this.isFieldsValidating([name]);\n };\n\n /**\n * Reset Field with field `initialValue` prop.\n * Can pass `entities` or `namePathList` or just nothing.\n */\n resetWithFieldInitialValue = (info = {}) => {\n // Create cache\n const cache = new NameMap();\n const fieldEntities = this.getFieldEntities(true);\n fieldEntities.forEach(field => {\n const {\n initialValue\n } = field.props;\n const namePath = field.getNamePath();\n\n // Record only if has `initialValue`\n if (initialValue !== undefined) {\n const records = cache.get(namePath) || new Set();\n records.add({\n entity: field,\n value: initialValue\n });\n cache.set(namePath, records);\n }\n });\n\n // Reset\n const resetWithFields = entities => {\n entities.forEach(field => {\n const {\n initialValue\n } = field.props;\n if (initialValue !== undefined) {\n const namePath = field.getNamePath();\n const formInitialValue = this.getInitialValue(namePath);\n if (formInitialValue !== undefined) {\n // Warning if conflict with form initialValues and do not modify value\n warning(false, `Form already set 'initialValues' with path '${namePath.join('.')}'. Field can not overwrite it.`);\n } else {\n const records = cache.get(namePath);\n if (records && records.size > 1) {\n // Warning if multiple field set `initialValue`and do not modify value\n warning(false, `Multiple Field with path '${namePath.join('.')}' set 'initialValue'. Can not decide which one to pick.`);\n } else if (records) {\n const originValue = this.getFieldValue(namePath);\n const isListField = field.isListField();\n\n // Set `initialValue`\n if (!isListField && (!info.skipExist || originValue === undefined)) {\n this.updateStore(setValue(this.store, namePath, [...records][0].value));\n }\n }\n }\n }\n });\n };\n let requiredFieldEntities;\n if (info.entities) {\n requiredFieldEntities = info.entities;\n } else if (info.namePathList) {\n requiredFieldEntities = [];\n info.namePathList.forEach(namePath => {\n const records = cache.get(namePath);\n if (records) {\n requiredFieldEntities.push(...[...records].map(r => r.entity));\n }\n });\n } else {\n requiredFieldEntities = fieldEntities;\n }\n resetWithFields(requiredFieldEntities);\n };\n resetFields = nameList => {\n this.warningUnhooked();\n const prevStore = this.store;\n if (!nameList) {\n this.updateStore(merge(this.initialValues));\n this.resetWithFieldInitialValue();\n this.notifyObservers(prevStore, null, {\n type: 'reset'\n });\n this.notifyWatch();\n return;\n }\n\n // Reset by `nameList`\n const namePathList = nameList.map(getNamePath);\n namePathList.forEach(namePath => {\n const initialValue = this.getInitialValue(namePath);\n this.updateStore(setValue(this.store, namePath, initialValue));\n });\n this.resetWithFieldInitialValue({\n namePathList\n });\n this.notifyObservers(prevStore, namePathList, {\n type: 'reset'\n });\n this.notifyWatch(namePathList);\n };\n setFields = fields => {\n this.warningUnhooked();\n const prevStore = this.store;\n const namePathList = [];\n fields.forEach(fieldData => {\n const {\n name,\n ...data\n } = fieldData;\n const namePath = getNamePath(name);\n namePathList.push(namePath);\n\n // Value\n if ('value' in data) {\n this.updateStore(setValue(this.store, namePath, data.value));\n }\n this.notifyObservers(prevStore, [namePath], {\n type: 'setField',\n data: fieldData\n });\n });\n this.notifyWatch(namePathList);\n };\n getFields = () => {\n const entities = this.getFieldEntities(true);\n const fields = entities.map(field => {\n const namePath = field.getNamePath();\n const meta = field.getMeta();\n const fieldData = {\n ...meta,\n name: namePath,\n value: this.getFieldValue(namePath)\n };\n Object.defineProperty(fieldData, 'originRCField', {\n value: true\n });\n return fieldData;\n });\n return fields;\n };\n\n // =========================== Observer ===========================\n /**\n * This only trigger when a field is on constructor to avoid we get initialValue too late\n */\n initEntityValue = entity => {\n const {\n initialValue\n } = entity.props;\n if (initialValue !== undefined) {\n const namePath = entity.getNamePath();\n const prevValue = getValue(this.store, namePath);\n if (prevValue === undefined) {\n this.updateStore(setValue(this.store, namePath, initialValue));\n }\n }\n };\n isMergedPreserve = fieldPreserve => {\n const mergedPreserve = fieldPreserve !== undefined ? fieldPreserve : this.preserve;\n return mergedPreserve ?? true;\n };\n registerField = entity => {\n this.fieldEntities.push(entity);\n const namePath = entity.getNamePath();\n this.batchNotifyWatch(namePath);\n\n // Set initial values\n if (entity.props.initialValue !== undefined) {\n const prevStore = this.store;\n this.resetWithFieldInitialValue({\n entities: [entity],\n skipExist: true\n });\n this.notifyObservers(prevStore, [entity.getNamePath()], {\n type: 'valueUpdate',\n source: 'internal'\n });\n }\n\n // un-register field callback\n return (isListField, preserve, subNamePath = []) => {\n this.fieldEntities = this.fieldEntities.filter(item => item !== entity);\n\n // Clean up store value if not preserve\n if (!this.isMergedPreserve(preserve) && (!isListField || subNamePath.length > 1)) {\n const defaultValue = isListField ? undefined : this.getInitialValue(namePath);\n if (namePath.length && this.getFieldValue(namePath) !== defaultValue && this.fieldEntities.every(field =>\n // Only reset when no namePath exist\n !matchNamePath(field.getNamePath(), namePath))) {\n const prevStore = this.store;\n this.updateStore(setValue(prevStore, namePath, defaultValue, true));\n\n // Notify that field is unmount\n this.notifyObservers(prevStore, [namePath], {\n type: 'remove'\n });\n\n // Dependencies update\n this.triggerDependenciesUpdate(prevStore, namePath);\n }\n }\n this.batchNotifyWatch(namePath);\n };\n };\n dispatch = action => {\n switch (action.type) {\n case 'updateValue':\n {\n const {\n namePath,\n value\n } = action;\n this.updateValue(namePath, value);\n break;\n }\n case 'validateField':\n {\n const {\n namePath,\n triggerName\n } = action;\n this.validateFields([namePath], {\n triggerName\n });\n break;\n }\n default:\n // Currently we don't have other action. Do nothing.\n }\n };\n notifyObservers = (prevStore, namePathList, info) => {\n if (this.subscribable) {\n const mergedInfo = {\n ...info,\n store: this.getFieldsValue(true)\n };\n this.getFieldEntities().forEach(({\n onStoreChange\n }) => {\n onStoreChange(prevStore, namePathList, mergedInfo);\n });\n } else {\n this.forceRootUpdate();\n }\n };\n\n /**\n * Notify dependencies children with parent update\n * We need delay to trigger validate in case Field is under render props\n */\n triggerDependenciesUpdate = (prevStore, namePath) => {\n const childrenFields = this.getDependencyChildrenFields(namePath);\n if (childrenFields.length) {\n this.validateFields(childrenFields);\n }\n this.notifyObservers(prevStore, childrenFields, {\n type: 'dependenciesUpdate',\n relatedFields: [namePath, ...childrenFields]\n });\n return childrenFields;\n };\n updateValue = (name, value) => {\n const namePath = getNamePath(name);\n const prevStore = this.store;\n this.updateStore(setValue(this.store, namePath, value));\n this.notifyObservers(prevStore, [namePath], {\n type: 'valueUpdate',\n source: 'internal'\n });\n this.notifyWatch([namePath]);\n\n // Dependencies update\n const childrenFields = this.triggerDependenciesUpdate(prevStore, namePath);\n\n // trigger callback function\n const {\n onValuesChange\n } = this.callbacks;\n if (onValuesChange) {\n const fieldEntity = this.getFieldsMap(true).get(namePath);\n const changedValues = cloneByNamePathList(this.store, [namePath]);\n const allValues = this.getFieldsValue();\n // Merge changedValues into allValues to ensure allValues contains the latest changes\n const mergedAllValues = mergeWith([allValues, changedValues], {\n // When value is array, it means trigger by Form.List which should replace directly\n prepareArray: current => fieldEntity?.isList() ? [] : [...(current || [])]\n });\n onValuesChange(changedValues, mergedAllValues);\n }\n this.triggerOnFieldsChange([namePath, ...childrenFields]);\n };\n\n // Let all child Field get update.\n setFieldsValue = store => {\n this.warningUnhooked();\n const prevStore = this.store;\n if (store) {\n const nextStore = merge(this.store, store);\n this.updateStore(nextStore);\n }\n this.notifyObservers(prevStore, null, {\n type: 'valueUpdate',\n source: 'external'\n });\n this.notifyWatch();\n };\n setFieldValue = (name, value) => {\n this.setFields([{\n name,\n value,\n errors: [],\n warnings: [],\n touched: true\n }]);\n };\n getDependencyChildrenFields = rootNamePath => {\n const children = new Set();\n const childrenFields = [];\n const dependencies2fields = new NameMap();\n\n /**\n * Generate maps\n * Can use cache to save perf if user report performance issue with this\n */\n this.getFieldEntities().forEach(field => {\n const {\n dependencies\n } = field.props;\n (dependencies || []).forEach(dependency => {\n const dependencyNamePath = getNamePath(dependency);\n dependencies2fields.update(dependencyNamePath, (fields = new Set()) => {\n fields.add(field);\n return fields;\n });\n });\n });\n const fillChildren = namePath => {\n const fields = dependencies2fields.get(namePath) || new Set();\n fields.forEach(field => {\n if (!children.has(field)) {\n children.add(field);\n const fieldNamePath = field.getNamePath();\n if (field.isFieldDirty() && fieldNamePath.length) {\n childrenFields.push(fieldNamePath);\n fillChildren(fieldNamePath);\n }\n }\n });\n };\n fillChildren(rootNamePath);\n return childrenFields;\n };\n triggerOnFieldsChange = (namePathList, filedErrors) => {\n const {\n onFieldsChange\n } = this.callbacks;\n if (onFieldsChange) {\n const fields = this.getFields();\n\n /**\n * Fill errors since `fields` may be replaced by controlled fields\n */\n if (filedErrors) {\n const cache = new NameMap();\n filedErrors.forEach(({\n name,\n errors\n }) => {\n cache.set(name, errors);\n });\n fields.forEach(field => {\n // eslint-disable-next-line no-param-reassign\n field.errors = cache.get(field.name) || field.errors;\n });\n }\n const changedFields = fields.filter(({\n name: fieldName\n }) => containsNamePath(namePathList, fieldName));\n if (changedFields.length) {\n onFieldsChange(changedFields, fields);\n }\n }\n };\n\n // =========================== Validate ===========================\n validateFields = (arg1, arg2) => {\n this.warningUnhooked();\n let nameList;\n let options;\n if (Array.isArray(arg1) || typeof arg1 === 'string' || typeof arg2 === 'string') {\n nameList = arg1;\n options = arg2;\n } else {\n options = arg1;\n }\n const provideNameList = !!nameList;\n const namePathList = provideNameList ? nameList.map(getNamePath) : [];\n // Same namePathList, but does not include Form.List name\n const finalValueNamePathList = [...namePathList];\n\n // Collect result in promise list\n const promiseList = [];\n\n // We temp save the path which need trigger for `onFieldsChange`\n const TMP_SPLIT = String(Date.now());\n const validateNamePathList = new Set();\n const {\n recursive,\n dirty\n } = options || {};\n this.getFieldEntities(true).forEach(field => {\n const fieldNamePath = field.getNamePath();\n\n // Add field if not provide `nameList`\n if (!provideNameList) {\n if (\n // If is field, pass directly\n !field.isList() ||\n // If is list, do not add if already exist sub field in the namePathList\n !namePathList.some(name => matchNamePath(name, fieldNamePath, true))) {\n finalValueNamePathList.push(fieldNamePath);\n }\n namePathList.push(fieldNamePath);\n }\n\n // Skip if without rule\n if (!field.props.rules || !field.props.rules.length) {\n return;\n }\n\n // Skip if only validate dirty field\n if (dirty && !field.isFieldDirty()) {\n return;\n }\n validateNamePathList.add(fieldNamePath.join(TMP_SPLIT));\n\n // Add field validate rule in to promise list\n if (!provideNameList || containsNamePath(namePathList, fieldNamePath, recursive)) {\n const promise = field.validateRules({\n validateMessages: {\n ...defaultValidateMessages,\n ...this.validateMessages\n },\n ...options\n });\n\n // Wrap promise with field\n promiseList.push(promise.then(() => ({\n name: fieldNamePath,\n errors: [],\n warnings: []\n })).catch(ruleErrors => {\n const mergedErrors = [];\n const mergedWarnings = [];\n ruleErrors.forEach?.(({\n rule: {\n warningOnly\n },\n errors\n }) => {\n if (warningOnly) {\n mergedWarnings.push(...errors);\n } else {\n mergedErrors.push(...errors);\n }\n });\n if (mergedErrors.length) {\n return Promise.reject({\n name: fieldNamePath,\n errors: mergedErrors,\n warnings: mergedWarnings\n });\n }\n return {\n name: fieldNamePath,\n errors: mergedErrors,\n warnings: mergedWarnings\n };\n }));\n }\n });\n const summaryPromise = allPromiseFinish(promiseList);\n this.lastValidatePromise = summaryPromise;\n\n // Notify fields with rule that validate has finished and need update\n summaryPromise.catch(results => results).then(results => {\n const resultNamePathList = results.map(({\n name\n }) => name);\n this.notifyObservers(this.store, resultNamePathList, {\n type: 'validateFinish'\n });\n this.triggerOnFieldsChange(resultNamePathList, results);\n });\n const returnPromise = summaryPromise.then(() => {\n if (this.lastValidatePromise === summaryPromise) {\n return Promise.resolve(this.getFieldsValue(finalValueNamePathList));\n }\n return Promise.reject([]);\n }).catch(results => {\n const errorList = results.filter(result => result && result.errors.length);\n const errorMessage = errorList[0]?.errors?.[0];\n return Promise.reject({\n message: errorMessage,\n values: this.getFieldsValue(namePathList),\n errorFields: errorList,\n outOfDate: this.lastValidatePromise !== summaryPromise\n });\n });\n\n // Do not throw in console\n returnPromise.catch(e => e);\n\n // `validating` changed. Trigger `onFieldsChange`\n const triggerNamePathList = namePathList.filter(namePath => validateNamePathList.has(namePath.join(TMP_SPLIT)));\n this.triggerOnFieldsChange(triggerNamePathList);\n return returnPromise;\n };\n\n // ============================ Submit ============================\n submit = () => {\n this.warningUnhooked();\n this.validateFields().then(values => {\n const {\n onFinish\n } = this.callbacks;\n if (onFinish) {\n try {\n onFinish(values);\n } catch (err) {\n // Should print error if user `onFinish` callback failed\n console.error(err);\n }\n }\n }).catch(e => {\n const {\n onFinishFailed\n } = this.callbacks;\n if (onFinishFailed) {\n onFinishFailed(e);\n }\n });\n };\n}\nfunction useForm(form) {\n const formRef = React.useRef(null);\n const [, forceUpdate] = React.useState({});\n if (!formRef.current) {\n if (form) {\n formRef.current = form;\n } else {\n // Create a new FormStore if not provided\n const forceReRender = () => {\n forceUpdate({});\n };\n const formStore = new FormStore(forceReRender);\n formRef.current = formStore.getForm();\n }\n }\n return [formRef.current];\n}\nexport default useForm;"],"names":["FormStore","forceRootUpdate","__publicField","key","HOOK_MARK","warning","subscribable","initialValues","init","nextStore","merge","namePath","setValue","getValue","clearOnDestroy","prevWithoutPreserves","NameMap","entity","initValue","callbacks","validateMessages","preserve","callback","fn","values","allValues","batchUpdate","process","pure","field","cache","nameList","name","getNamePath","filterFunc","mergedNameList","mergedFilterFunc","fieldEntities","filteredNameList","listNamePaths","meta","mergedValues","cloneByNamePathList","index","args","arg0","arg1","namePathList","isAllFieldsTouched","isFieldTouched","map","shortNamePath","fieldNamePath","nameUnit","i","list","isNamePathListTouched","entities","namePathListEntities","value","testField","containsNamePath","info","initialValue","records","resetWithFields","originValue","requiredFieldEntities","r","prevStore","fields","fieldData","data","fieldPreserve","isListField","subNamePath","item","defaultValue","matchNamePath","action","triggerName","mergedInfo","onStoreChange","childrenFields","onValuesChange","fieldEntity","changedValues","mergedAllValues","mergeWith","current","store","rootNamePath","children","dependencies2fields","dependencies","dependency","dependencyNamePath","fillChildren","filedErrors","onFieldsChange","errors","changedFields","fieldName","arg2","options","provideNameList","finalValueNamePathList","promiseList","TMP_SPLIT","validateNamePathList","recursive","dirty","promise","defaultValidateMessages","ruleErrors","mergedErrors","mergedWarnings","warningOnly","summaryPromise","allPromiseFinish","results","resultNamePathList","returnPromise","errorList","result","errorMessage","e","triggerNamePathList","onFinish","onFinishFailed","useForm","form","formRef","React","forceUpdate","forceReRender","formStore"],"mappings":";;;;;;;;;;;;;AASO,MAAMA,EAAU;AAAA,EAWrB,YAAYC,GAAiB;AAV7B,IAAAC,EAAA,oBAAa;AACb,IAAAA,EAAA;AACA,IAAAA,EAAA,sBAAe;AACf,IAAAA,EAAA,eAAQ,CAAA;AACR,IAAAA,EAAA,uBAAgB,CAAA;AAChB,IAAAA,EAAA,uBAAgB,CAAA;AAChB,IAAAA,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AASiI,EAAQC,GAAM;AACrB,QAAMC,IAAUC,EAAM,OAAO,IAAI,GAC3B,CAAA,EAAGC,CAAW,IAAID,EAAM,SAAS,CAAA,CAAE;AACzC,MAAI,CAACD,EAAQ;AACX,QAAID;AACF,MAAAC,EAAQ,UAAUD;AAAA,SACb;AAEL,YAAMI,IAAgB,MAAM;AAC1B,QAAAD,EAAY,CAAA,CAAE;AAAA,MAChB,GACME,IAAY,IAAIxI,EAAUuI,CAAa;AAC7C,MAAAH,EAAQ,UAAUI,EAAU,QAAO;AAAA,IACrC;AAEF,SAAO,CAACJ,EAAQ,OAAO;AACzB;","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWatch.js","sources":["../../../../../node_modules/@rc-component/form/es/useWatch.js"],"sourcesContent":["import warning from \"@rc-component/util/es/warning\";\nimport { useContext, useEffect, useMemo, useRef, useState } from 'react';\nimport FieldContext, { HOOK_MARK } from \"./FieldContext\";\nimport { isFormInstance } from \"./utils/typeUtil\";\nimport { getNamePath, getValue } from \"./utils/valueUtil\";\nimport { useEvent } from '@rc-component/util';\nexport function stringify(value) {\n try {\n return JSON.stringify(value);\n } catch {\n return Math.random();\n }\n}\n\n// ------- selector type -------\n\n// ------- selector type end -------\n\nfunction useWatch(...args) {\n const [dependencies, _form = {}] = args;\n const options = isFormInstance(_form) ? {\n form: _form\n } : _form;\n const form = options.form;\n const [value, setValue] = useState(() => typeof dependencies === 'function' ? dependencies({}) : undefined);\n const valueStr = useMemo(() => stringify(value), [value]);\n const valueStrRef = useRef(valueStr);\n valueStrRef.current = valueStr;\n const fieldContext = useContext(FieldContext);\n const formInstance = form || fieldContext;\n const isValidForm = formInstance && formInstance._init;\n\n // Warning if not exist form instance\n if (process.env.NODE_ENV !== 'production') {\n warning(args.length === 2 ? form ? isValidForm : true : isValidForm, 'useWatch requires a form instance since it can not auto detect from context.');\n }\n\n // ============================== Form ==============================\n const {\n getFieldsValue,\n getInternalHooks\n } = formInstance;\n const {\n registerWatch\n } = getInternalHooks(HOOK_MARK);\n\n // ============================= Update =============================\n const triggerUpdate = useEvent((values, allValues) => {\n const watchValue = options.preserve ? allValues ?? getFieldsValue(true) : values ?? getFieldsValue();\n const nextValue = typeof dependencies === 'function' ? dependencies(watchValue) : getValue(watchValue, getNamePath(dependencies));\n if (stringify(value) !== stringify(nextValue)) {\n setValue(nextValue);\n }\n });\n\n // ============================= Effect =============================\n const flattenDeps = typeof dependencies === 'function' ? dependencies : JSON.stringify(dependencies);\n\n // Deps changed\n useEffect(() => {\n // Skip if not exist form instance\n if (!isValidForm) {\n return;\n }\n triggerUpdate();\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isValidForm, flattenDeps]);\n\n // Value changed\n useEffect(() => {\n // Skip if not exist form instance\n if (!isValidForm) {\n return;\n }\n const cancelRegister = registerWatch((values, allValues) => {\n triggerUpdate(values, allValues);\n });\n return cancelRegister;\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isValidForm]);\n return value;\n}\nexport default useWatch;"],"names":["stringify","value","useWatch","args","dependencies","_form","options","isFormInstance","form","setValue","useState","valueStr","useMemo","valueStrRef","useRef","fieldContext","useContext","FieldContext","formInstance","isValidForm","process","warning","getFieldsValue","getInternalHooks","registerWatch","HOOK_MARK","triggerUpdate","useEvent","values","allValues","watchValue","nextValue","getValue","getNamePath","flattenDeps","useEffect"],"mappings":";;;;;;;;AAMO,SAASA,EAAUC,GAAO;AAC/B,MAAI;AACF,WAAO,KAAK,UAAUA,CAAK;AAAA,EAC7B,QAAQ;AACN,WAAO,KAAK,OAAM;AAAA,EACpB;AACF;AAMA,SAASC,KAAYC,GAAM;AACzB,QAAM,CAACC,GAAcC,IAAQ,CAAA,CAAE,IAAIF,GAC7BG,IAAUC,EAAeF,CAAK,IAAI;AAAA,IACtC,MAAMA;AAAA,EACV,IAAMA,GACEG,IAAOF,EAAQ,MACf,CAACL,GAAOQ,CAAQ,IAAIC,EAAS,MAAM,OAAON,KAAiB,aAAaA,EAAa,CAAA,CAAE,IAAI,MAAS,GACpGO,IAAWC,EAAQ,MAAMZ,EAAUC,CAAK,GAAG,CAACA,CAAK,CAAC,GAClDY,IAAcC,EAAOH,CAAQ;AACnC,EAAAE,EAAY,UAAUF;AACtB,QAAMI,IAAeC,EAAWC,CAAY,GACtCC,IAAeV,KAAQO,GACvBI,IAAcD,KAAgBA,EAAa;AAGjD,EAAIE,EAAQ,IAAI,aAAa,gBAC3BC,EAAQlB,EAAK,WAAW,IAAIK,IAAOW,IAAc,KAAOA,GAAa,8EAA8E;AAIrJ,QAAM;AAAA,IACJ,gBAAAG;AAAA,IACA,kBAAAC;AAAA,EACJ,IAAML,GACE;AAAA,IACJ,eAAAM;AAAA,EACJ,IAAMD,EAAiBE,CAAS,GAGxBC,IAAgBC,EAAS,CAACC,GAAQC,MAAc;AACpD,UAAMC,IAAaxB,EAAQ,WAAWuB,KAAaP,EAAe,EAAI,IAAIM,KAAUN,EAAc,GAC5FS,IAAY,OAAO3B,KAAiB,aAAaA,EAAa0B,CAAU,IAAIE,EAASF,GAAYG,EAAY7B,CAAY,CAAC;AAChI,IAAIJ,EAAUC,CAAK,MAAMD,EAAU+B,CAAS,KAC1CtB,EAASsB,CAAS;AAAA,EAEtB,CAAC,GAGKG,IAAc,OAAO9B,KAAiB,aAAaA,IAAe,KAAK,UAAUA,CAAY;AAGnG,SAAA+B,EAAU,MAAM;AAEd,IAAKhB,KAGLO,EAAa;AAAA,EAGf,GAAG,CAACP,GAAae,CAAW,CAAC,GAG7BC,EAAU,MAEHhB,IAGkBK,EAAc,CAACI,GAAQC,MAAc;AAC1D,IAAAH,EAAcE,GAAQC,CAAS;AAAA,EACjC,CAAC,IAJC,QAQD,CAACV,CAAW,CAAC,GACTlB;AACT;","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SuffixIcon.js","sources":["../../../../../../node_modules/antd/es/date-picker/generatePicker/SuffixIcon.js"],"sourcesContent":["\"use client\";\n\nimport React from 'react';\nimport CalendarOutlined from \"@ant-design/icons/es/icons/CalendarOutlined\";\nimport ClockCircleOutlined from \"@ant-design/icons/es/icons/ClockCircleOutlined\";\nimport { TIME } from '../generatePicker/constant';\nconst SuffixIcon = ({\n picker,\n hasFeedback,\n feedbackIcon,\n suffixIcon\n}) => {\n if (suffixIcon === null || suffixIcon === false) {\n return null;\n }\n if (suffixIcon === true || suffixIcon === undefined) {\n return /*#__PURE__*/React.createElement(React.Fragment, null, picker === TIME ? /*#__PURE__*/React.createElement(ClockCircleOutlined, null) : /*#__PURE__*/React.createElement(CalendarOutlined, null), hasFeedback && feedbackIcon);\n }\n return suffixIcon;\n};\nexport default SuffixIcon;"],"names":["SuffixIcon","picker","hasFeedback","feedbackIcon","suffixIcon","React","TIME","ClockCircleOutlined","CalendarOutlined"],"mappings":";;;;AAMK,MAACA,IAAa,CAAC;AAAA,EAClB,QAAAC;AAAA,EACA,aAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AACF,MACMA,MAAe,QAAQA,MAAe,KACjC,OAELA,MAAe,MAAQA,MAAe,SACpBC,gBAAAA,EAAM,cAAcA,EAAM,UAAU,MAAMJ,MAAWK,IAAoBD,gBAAAA,EAAM,cAAcE,GAAqB,IAAI,IAAiBF,gBAAAA,EAAM,cAAcG,GAAkB,IAAI,GAAGN,KAAeC,CAAY,IAE9NC;","x_google_ignoreList":[0]}