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 { unit as r } from "../../../../@ant-design/cssinjs/es/util/index.js";
2
- import { resetComponent as L, operationUnit as R, textEllipsis as h, resetIcon as X } from "../../style/index.js";
2
+ import { resetComponent as L, textEllipsis as h, operationUnit as R, resetIcon as X } from "../../style/index.js";
3
3
  import { genStyleHooks as A } from "../../theme/util/genStyleUtils.js";
4
4
  import { merge as D } from "../../../../@ant-design/cssinjs-utils/es/util/statistic.js";
5
5
  const G = (t) => {
@@ -9,88 +9,89 @@ import { convertDataToEntities as G, convertTreeToData as H } from "../../../@rc
9
9
  import { clsx as J } from "../../../clsx/dist/clsx.js";
10
10
  import "../config-provider/index.js";
11
11
  import M from "./Tree.js";
12
- import { convertDirectoryKeysToNodes as x, calcRangeKeys as Q } from "./utils/dictUtil.js";
12
+ import { convertDirectoryKeysToNodes as E, calcRangeKeys as Q } from "./utils/dictUtil.js";
13
13
  import { ConfigContext as U } from "../config-provider/context.js";
14
- function W(s) {
14
+ function W(r) {
15
15
  const {
16
16
  isLeaf: o,
17
- expanded: i
18
- } = s;
19
- return o ? /* @__PURE__ */ t.createElement(L, null) : i ? /* @__PURE__ */ t.createElement(V, null) : /* @__PURE__ */ t.createElement(q, null);
17
+ expanded: m
18
+ } = r;
19
+ return o ? /* @__PURE__ */ t.createElement(L, null) : m ? /* @__PURE__ */ t.createElement(V, null) : /* @__PURE__ */ t.createElement(q, null);
20
20
  }
21
21
  function T({
22
- treeData: s,
22
+ treeData: r,
23
23
  children: o
24
24
  }) {
25
- return s || H(o);
25
+ return r || H(o);
26
26
  }
27
27
  const X = ({
28
- defaultExpandAll: s,
28
+ defaultExpandAll: r,
29
29
  defaultExpandParent: o,
30
- defaultExpandedKeys: i,
30
+ defaultExpandedKeys: m,
31
31
  ...e
32
32
  }, R) => {
33
- const m = t.useRef(null), y = t.useRef(null), w = () => {
33
+ const y = t.useRef(null), u = t.useRef(null), g = () => {
34
34
  const {
35
- keyEntities: r
35
+ keyEntities: s
36
36
  } = G(T(e), {
37
37
  fieldNames: e.fieldNames
38
38
  });
39
39
  let c;
40
- return s ? c = Object.keys(r) : o ? c = B(e.expandedKeys || i || [], r) : c = e.expandedKeys || i || [], c;
41
- }, [I, E] = t.useState(e.selectedKeys || e.defaultSelectedKeys || []), [N, S] = t.useState(() => w());
40
+ const d = e.expandedKeys || m || [];
41
+ return r ? c = Object.keys(s) : o ? c = B(d, s) : c = d, c;
42
+ }, [w, N] = t.useState(e.selectedKeys || e.defaultSelectedKeys || []), [S, C] = t.useState(() => g());
42
43
  t.useEffect(() => {
43
- "selectedKeys" in e && E(e.selectedKeys);
44
+ "selectedKeys" in e && N(e.selectedKeys);
44
45
  }, [e.selectedKeys]), t.useEffect(() => {
45
- "expandedKeys" in e && S(e.expandedKeys);
46
+ "expandedKeys" in e && C(e.expandedKeys);
46
47
  }, [e.expandedKeys]);
47
- const g = (r, c) => ("expandedKeys" in e || S(r), e.onExpand?.(r, c)), h = (r, c) => {
48
+ const I = (s, c) => ("expandedKeys" in e || C(s), e.onExpand?.(s, c)), k = (s, c) => {
48
49
  const {
49
- multiple: C,
50
- fieldNames: d
50
+ multiple: d,
51
+ fieldNames: i
51
52
  } = e, {
52
53
  node: _,
53
- nativeEvent: K
54
+ nativeEvent: x
54
55
  } = c, {
55
56
  key: l = ""
56
57
  } = _, a = T(e), f = {
57
58
  ...c,
58
59
  selected: !0
59
60
  // Directory selected always true
60
- }, j = K?.ctrlKey || K?.metaKey, z = K?.shiftKey;
61
+ }, j = x?.ctrlKey || x?.metaKey, z = x?.shiftKey;
61
62
  let n;
62
- C && j ? (n = r, m.current = l, y.current = n, f.selectedNodes = x(a, n, d)) : C && z ? (n = Array.from(new Set([].concat(D(y.current || []), D(Q({
63
+ d && j ? (n = s, y.current = l, u.current = n, f.selectedNodes = E(a, n, i)) : d && z ? (n = Array.from(new Set([].concat(D(u.current || []), D(Q({
63
64
  treeData: a,
64
- expandedKeys: N,
65
+ expandedKeys: S,
65
66
  startKey: l,
66
- endKey: m.current,
67
- fieldNames: d
68
- }))))), f.selectedNodes = x(a, n, d)) : (n = [l], m.current = l, y.current = n, f.selectedNodes = x(a, n, d)), e.onSelect?.(n, f), "selectedKeys" in e || E(n);
67
+ endKey: y.current,
68
+ fieldNames: i
69
+ }))))), f.selectedNodes = E(a, n, i)) : (n = [l], y.current = l, u.current = n, f.selectedNodes = E(a, n, i)), e.onSelect?.(n, f), "selectedKeys" in e || N(n);
69
70
  }, {
70
- getPrefixCls: k,
71
+ getPrefixCls: p,
71
72
  direction: v
72
73
  } = t.useContext(U), {
73
74
  prefixCls: P,
74
- className: $,
75
- showIcon: A = !0,
76
- expandAction: b = "click",
77
- ...p
78
- } = e, u = k("tree", P), O = J(`${u}-directory`, {
79
- [`${u}-directory-rtl`]: v === "rtl"
80
- }, $);
75
+ className: h,
76
+ showIcon: $ = !0,
77
+ expandAction: A = "click",
78
+ ...b
79
+ } = e, K = p("tree", P), O = J(`${K}-directory`, {
80
+ [`${K}-directory-rtl`]: v === "rtl"
81
+ }, h);
81
82
  return /* @__PURE__ */ t.createElement(M, {
82
83
  icon: W,
83
84
  ref: R,
84
85
  blockNode: !0,
85
- ...p,
86
- showIcon: A,
87
- expandAction: b,
88
- prefixCls: u,
86
+ ...b,
87
+ showIcon: $,
88
+ expandAction: A,
89
+ prefixCls: K,
89
90
  className: O,
90
- expandedKeys: N,
91
- selectedKeys: I,
92
- onSelect: h,
93
- onExpand: g
91
+ expandedKeys: S,
92
+ selectedKeys: w,
93
+ onSelect: k,
94
+ onExpand: I
94
95
  });
95
96
  }, Y = /* @__PURE__ */ t.forwardRef(X);
96
97
  F.env.NODE_ENV !== "production" && (Y.displayName = "DirectoryTree");
@@ -1 +1 @@
1
- {"version":3,"file":"DirectoryTree.js","sources":["../../../../../node_modules/antd/es/tree/DirectoryTree.js"],"sourcesContent":["\"use client\";\n\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport * as React from 'react';\nimport FileOutlined from \"@ant-design/icons/es/icons/FileOutlined\";\nimport FolderOpenOutlined from \"@ant-design/icons/es/icons/FolderOpenOutlined\";\nimport FolderOutlined from \"@ant-design/icons/es/icons/FolderOutlined\";\nimport { conductExpandParent } from \"@rc-component/tree/es/util\";\nimport { convertDataToEntities, convertTreeToData } from \"@rc-component/tree/es/utils/treeUtil\";\nimport { clsx } from 'clsx';\nimport { ConfigContext } from '../config-provider';\nimport Tree from './Tree';\nimport { calcRangeKeys, convertDirectoryKeysToNodes } from './utils/dictUtil';\nfunction getIcon(props) {\n const {\n isLeaf,\n expanded\n } = props;\n if (isLeaf) {\n return /*#__PURE__*/React.createElement(FileOutlined, null);\n }\n return expanded ? /*#__PURE__*/React.createElement(FolderOpenOutlined, null) : /*#__PURE__*/React.createElement(FolderOutlined, null);\n}\nfunction getTreeData({\n treeData,\n children\n}) {\n return treeData || convertTreeToData(children);\n}\nconst DirectoryTree = ({\n defaultExpandAll,\n defaultExpandParent,\n defaultExpandedKeys,\n ...props\n}, ref) => {\n // Shift click usage\n const lastSelectedKey = React.useRef(null);\n const cachedSelectedKeys = React.useRef(null);\n const getInitExpandedKeys = () => {\n const {\n keyEntities\n } = convertDataToEntities(getTreeData(props), {\n fieldNames: props.fieldNames\n });\n let initExpandedKeys;\n // Expanded keys\n if (defaultExpandAll) {\n initExpandedKeys = Object.keys(keyEntities);\n } else if (defaultExpandParent) {\n initExpandedKeys = conductExpandParent(props.expandedKeys || defaultExpandedKeys || [], keyEntities);\n } else {\n initExpandedKeys = props.expandedKeys || defaultExpandedKeys || [];\n }\n return initExpandedKeys;\n };\n const [selectedKeys, setSelectedKeys] = React.useState(props.selectedKeys || props.defaultSelectedKeys || []);\n const [expandedKeys, setExpandedKeys] = React.useState(() => getInitExpandedKeys());\n React.useEffect(() => {\n if ('selectedKeys' in props) {\n setSelectedKeys(props.selectedKeys);\n }\n }, [props.selectedKeys]);\n React.useEffect(() => {\n if ('expandedKeys' in props) {\n setExpandedKeys(props.expandedKeys);\n }\n }, [props.expandedKeys]);\n const onExpand = (keys, info) => {\n if (!('expandedKeys' in props)) {\n setExpandedKeys(keys);\n }\n // Call origin function\n return props.onExpand?.(keys, info);\n };\n const onSelect = (keys, event) => {\n const {\n multiple,\n fieldNames\n } = props;\n const {\n node,\n nativeEvent\n } = event;\n const {\n key = ''\n } = node;\n const treeData = getTreeData(props);\n // const newState: DirectoryTreeState = {};\n // We need wrap this event since some value is not same\n const newEvent = {\n ...event,\n selected: true // Directory selected always true\n };\n // Windows / Mac single pick\n const ctrlPick = nativeEvent?.ctrlKey || nativeEvent?.metaKey;\n const shiftPick = nativeEvent?.shiftKey;\n // Generate new selected keys\n let newSelectedKeys;\n if (multiple && ctrlPick) {\n // Control click\n newSelectedKeys = keys;\n lastSelectedKey.current = key;\n cachedSelectedKeys.current = newSelectedKeys;\n newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys, fieldNames);\n } else if (multiple && shiftPick) {\n // Shift click\n newSelectedKeys = Array.from(new Set([].concat(_toConsumableArray(cachedSelectedKeys.current || []), _toConsumableArray(calcRangeKeys({\n treeData,\n expandedKeys,\n startKey: key,\n endKey: lastSelectedKey.current,\n fieldNames\n })))));\n newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys, fieldNames);\n } else {\n // Single click\n newSelectedKeys = [key];\n lastSelectedKey.current = key;\n cachedSelectedKeys.current = newSelectedKeys;\n newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys, fieldNames);\n }\n props.onSelect?.(newSelectedKeys, newEvent);\n if (!('selectedKeys' in props)) {\n setSelectedKeys(newSelectedKeys);\n }\n };\n const {\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n const {\n prefixCls: customizePrefixCls,\n className,\n showIcon = true,\n expandAction = 'click',\n ...otherProps\n } = props;\n const prefixCls = getPrefixCls('tree', customizePrefixCls);\n const connectClassName = clsx(`${prefixCls}-directory`, {\n [`${prefixCls}-directory-rtl`]: direction === 'rtl'\n }, className);\n return /*#__PURE__*/React.createElement(Tree, {\n icon: getIcon,\n ref: ref,\n blockNode: true,\n ...otherProps,\n showIcon: showIcon,\n expandAction: expandAction,\n prefixCls: prefixCls,\n className: connectClassName,\n expandedKeys: expandedKeys,\n selectedKeys: selectedKeys,\n onSelect: onSelect,\n onExpand: onExpand\n });\n};\nconst ForwardDirectoryTree = /*#__PURE__*/React.forwardRef(DirectoryTree);\nif (process.env.NODE_ENV !== 'production') {\n ForwardDirectoryTree.displayName = 'DirectoryTree';\n}\nexport default ForwardDirectoryTree;"],"names":["getIcon","props","isLeaf","expanded","React","FileOutlined","FolderOpenOutlined","FolderOutlined","getTreeData","treeData","children","convertTreeToData","DirectoryTree","defaultExpandAll","defaultExpandParent","defaultExpandedKeys","ref","lastSelectedKey","cachedSelectedKeys","getInitExpandedKeys","keyEntities","convertDataToEntities","initExpandedKeys","conductExpandParent","selectedKeys","setSelectedKeys","expandedKeys","setExpandedKeys","onExpand","keys","info","onSelect","event","multiple","fieldNames","node","nativeEvent","key","newEvent","ctrlPick","shiftPick","newSelectedKeys","convertDirectoryKeysToNodes","_toConsumableArray","calcRangeKeys","getPrefixCls","direction","ConfigContext","customizePrefixCls","className","showIcon","expandAction","otherProps","prefixCls","connectClassName","clsx","Tree","ForwardDirectoryTree","process"],"mappings":";;;;;;;;;;;;;AAaA,SAASA,EAAQC,GAAO;AACtB,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,UAAAC;AAAA,EACJ,IAAMF;AACJ,SAAIC,IACkB,gBAAAE,EAAM,cAAcC,GAAc,IAAI,IAErDF,IAAwB,gBAAAC,EAAM,cAAcE,GAAoB,IAAI,IAAiB,gBAAAF,EAAM,cAAcG,GAAgB,IAAI;AACtI;AACA,SAASC,EAAY;AAAA,EACnB,UAAAC;AAAA,EACA,UAAAC;AACF,GAAG;AACD,SAAOD,KAAYE,EAAkBD,CAAQ;AAC/C;AACA,MAAME,IAAgB,CAAC;AAAA,EACrB,kBAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,GAAGd;AACL,GAAGe,MAAQ;AAET,QAAMC,IAAkBb,EAAM,OAAO,IAAI,GACnCc,IAAqBd,EAAM,OAAO,IAAI,GACtCe,IAAsB,MAAM;AAChC,UAAM;AAAA,MACJ,aAAAC;AAAA,IACN,IAAQC,EAAsBb,EAAYP,CAAK,GAAG;AAAA,MAC5C,YAAYA,EAAM;AAAA,IACxB,CAAK;AACD,QAAIqB;AAEJ,WAAIT,IACFS,IAAmB,OAAO,KAAKF,CAAW,IACjCN,IACTQ,IAAmBC,EAAoBtB,EAAM,gBAAgBc,KAAuB,CAAA,GAAIK,CAAW,IAEnGE,IAAmBrB,EAAM,gBAAgBc,KAAuB,CAAA,GAE3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V,QAAQpB,EAAgB;AAAA,MACxB,YAAAiB;AAAA,IACR,CAAO,CAAC,CAAC,CAAC,CAAC,GACLI,EAAS,gBAAgBI,EAA4BjC,GAAUgC,GAAiBP,CAAU,MAG1FO,IAAkB,CAACJ,CAAG,GACtBpB,EAAgB,UAAUoB,GAC1BnB,EAAmB,UAAUuB,GAC7BH,EAAS,gBAAgBI,EAA4BjC,GAAUgC,GAAiBP,CAAU,IAE5FjC,EAAM,WAAWwC,GAAiBH,CAAQ,GACpC,kBAAkBrC,KACtBwB,EAAgBgB,CAAe;AAAA,EAEnC,GACM;AAAA,IACJ,cAAAI;AAAA,IACA,WAAAC;AAAA,EACJ,IAAM1C,EAAM,WAAW2C,CAAa,GAC5B;AAAA,IACJ,WAAWC;AAAA,IACX,WAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,cAAAC,IAAe;AAAA,IACf,GAAGC;AAAA,EACP,IAAMnD,GACEoD,IAAYR,EAAa,QAAQG,CAAkB,GACnDM,IAAmBC,EAAK,GAAGF,CAAS,cAAc;AAAA,IACtD,CAAC,GAAGA,CAAS,gBAAgB,GAAGP,MAAc;AAAA,EAClD,GAAKG,CAAS;AACZ,SAAoB,gBAAA7C,EAAM,cAAcoD,GAAM;AAAA,IAC5C,MAAMxD;AAAA,IACN,KAAKgB;AAAA,IACL,WAAW;AAAA,IACX,GAAGoC;AAAA,IACH,UAAUF;AAAA,IACV,cAAcC;AAAA,IACd,WAAWE;AAAA,IACX,WAAWC;AAAA,IACX,cAAc5B;AAAA,IACd,cAAcF;AAAA,IACd,UAAUO;AAAA,IACV,UAAUH;AAAA,EACd,CAAG;AACH,GACM6B,IAAoC,gBAAArD,EAAM,WAAWQ,CAAa;AACpE8C,EAAQ,IAAI,aAAa,iBAC3BD,EAAqB,cAAc;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"DirectoryTree.js","sources":["../../../../../node_modules/antd/es/tree/DirectoryTree.js"],"sourcesContent":["\"use client\";\n\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport * as React from 'react';\nimport FileOutlined from \"@ant-design/icons/es/icons/FileOutlined\";\nimport FolderOpenOutlined from \"@ant-design/icons/es/icons/FolderOpenOutlined\";\nimport FolderOutlined from \"@ant-design/icons/es/icons/FolderOutlined\";\nimport { conductExpandParent } from \"@rc-component/tree/es/util\";\nimport { convertDataToEntities, convertTreeToData } from \"@rc-component/tree/es/utils/treeUtil\";\nimport { clsx } from 'clsx';\nimport { ConfigContext } from '../config-provider';\nimport Tree from './Tree';\nimport { calcRangeKeys, convertDirectoryKeysToNodes } from './utils/dictUtil';\nfunction getIcon(props) {\n const {\n isLeaf,\n expanded\n } = props;\n if (isLeaf) {\n return /*#__PURE__*/React.createElement(FileOutlined, null);\n }\n return expanded ? /*#__PURE__*/React.createElement(FolderOpenOutlined, null) : /*#__PURE__*/React.createElement(FolderOutlined, null);\n}\nfunction getTreeData({\n treeData,\n children\n}) {\n return treeData || convertTreeToData(children);\n}\nconst DirectoryTree = ({\n defaultExpandAll,\n defaultExpandParent,\n defaultExpandedKeys,\n ...props\n}, ref) => {\n // Shift click usage\n const lastSelectedKey = React.useRef(null);\n const cachedSelectedKeys = React.useRef(null);\n const getInitExpandedKeys = () => {\n const {\n keyEntities\n } = convertDataToEntities(getTreeData(props), {\n fieldNames: props.fieldNames\n });\n let initExpandedKeys;\n const mergedExpandedKeys = props.expandedKeys || defaultExpandedKeys || [];\n // Expanded keys\n if (defaultExpandAll) {\n initExpandedKeys = Object.keys(keyEntities);\n } else if (defaultExpandParent) {\n initExpandedKeys = conductExpandParent(mergedExpandedKeys, keyEntities);\n } else {\n initExpandedKeys = mergedExpandedKeys;\n }\n return initExpandedKeys;\n };\n const [selectedKeys, setSelectedKeys] = React.useState(props.selectedKeys || props.defaultSelectedKeys || []);\n const [expandedKeys, setExpandedKeys] = React.useState(() => getInitExpandedKeys());\n React.useEffect(() => {\n if ('selectedKeys' in props) {\n setSelectedKeys(props.selectedKeys);\n }\n }, [props.selectedKeys]);\n React.useEffect(() => {\n if ('expandedKeys' in props) {\n setExpandedKeys(props.expandedKeys);\n }\n }, [props.expandedKeys]);\n const onExpand = (keys, info) => {\n if (!('expandedKeys' in props)) {\n setExpandedKeys(keys);\n }\n // Call origin function\n return props.onExpand?.(keys, info);\n };\n const onSelect = (keys, event) => {\n const {\n multiple,\n fieldNames\n } = props;\n const {\n node,\n nativeEvent\n } = event;\n const {\n key = ''\n } = node;\n const treeData = getTreeData(props);\n // We need wrap this event since some value is not same\n const newEvent = {\n ...event,\n selected: true // Directory selected always true\n };\n // Windows / Mac single pick\n const ctrlPick = nativeEvent?.ctrlKey || nativeEvent?.metaKey;\n const shiftPick = nativeEvent?.shiftKey;\n // Generate new selected keys\n let newSelectedKeys;\n if (multiple && ctrlPick) {\n // Control click\n newSelectedKeys = keys;\n lastSelectedKey.current = key;\n cachedSelectedKeys.current = newSelectedKeys;\n newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys, fieldNames);\n } else if (multiple && shiftPick) {\n // Shift click\n newSelectedKeys = Array.from(new Set([].concat(_toConsumableArray(cachedSelectedKeys.current || []), _toConsumableArray(calcRangeKeys({\n treeData,\n expandedKeys,\n startKey: key,\n endKey: lastSelectedKey.current,\n fieldNames\n })))));\n newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys, fieldNames);\n } else {\n // Single click\n newSelectedKeys = [key];\n lastSelectedKey.current = key;\n cachedSelectedKeys.current = newSelectedKeys;\n newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys, fieldNames);\n }\n props.onSelect?.(newSelectedKeys, newEvent);\n if (!('selectedKeys' in props)) {\n setSelectedKeys(newSelectedKeys);\n }\n };\n const {\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n const {\n prefixCls: customizePrefixCls,\n className,\n showIcon = true,\n expandAction = 'click',\n ...restProps\n } = props;\n const prefixCls = getPrefixCls('tree', customizePrefixCls);\n const connectClassName = clsx(`${prefixCls}-directory`, {\n [`${prefixCls}-directory-rtl`]: direction === 'rtl'\n }, className);\n return /*#__PURE__*/React.createElement(Tree, {\n icon: getIcon,\n ref: ref,\n blockNode: true,\n ...restProps,\n showIcon: showIcon,\n expandAction: expandAction,\n prefixCls: prefixCls,\n className: connectClassName,\n expandedKeys: expandedKeys,\n selectedKeys: selectedKeys,\n onSelect: onSelect,\n onExpand: onExpand\n });\n};\nconst ForwardDirectoryTree = /*#__PURE__*/React.forwardRef(DirectoryTree);\nif (process.env.NODE_ENV !== 'production') {\n ForwardDirectoryTree.displayName = 'DirectoryTree';\n}\nexport default ForwardDirectoryTree;"],"names":["getIcon","props","isLeaf","expanded","React","FileOutlined","FolderOpenOutlined","FolderOutlined","getTreeData","treeData","children","convertTreeToData","DirectoryTree","defaultExpandAll","defaultExpandParent","defaultExpandedKeys","ref","lastSelectedKey","cachedSelectedKeys","getInitExpandedKeys","keyEntities","convertDataToEntities","initExpandedKeys","mergedExpandedKeys","conductExpandParent","selectedKeys","setSelectedKeys","expandedKeys","setExpandedKeys","onExpand","keys","info","onSelect","event","multiple","fieldNames","node","nativeEvent","key","newEvent","ctrlPick","shiftPick","newSelectedKeys","convertDirectoryKeysToNodes","_toConsumableArray","calcRangeKeys","getPrefixCls","direction","ConfigContext","customizePrefixCls","className","showIcon","expandAction","restProps","prefixCls","connectClassName","clsx","Tree","ForwardDirectoryTree","process"],"mappings":";;;;;;;;;;;;;AAaA,SAASA,EAAQC,GAAO;AACtB,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,UAAAC;AAAA,EACJ,IAAMF;AACJ,SAAIC,IACkB,gBAAAE,EAAM,cAAcC,GAAc,IAAI,IAErDF,IAAwB,gBAAAC,EAAM,cAAcE,GAAoB,IAAI,IAAiB,gBAAAF,EAAM,cAAcG,GAAgB,IAAI;AACtI;AACA,SAASC,EAAY;AAAA,EACnB,UAAAC;AAAA,EACA,UAAAC;AACF,GAAG;AACD,SAAOD,KAAYE,EAAkBD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EAClD,GAAKG,CAAS;AACZ,SAAoB,gBAAA9C,EAAM,cAAcqD,GAAM;AAAA,IAC5C,MAAMzD;AAAA,IACN,KAAKgB;AAAA,IACL,WAAW;AAAA,IACX,GAAGqC;AAAA,IACH,UAAUF;AAAA,IACV,cAAcC;AAAA,IACd,WAAWE;AAAA,IACX,WAAWC;AAAA,IACX,cAAc5B;AAAA,IACd,cAAcF;AAAA,IACd,UAAUO;AAAA,IACV,UAAUH;AAAA,EACd,CAAG;AACH,GACM6B,IAAoC,gBAAAtD,EAAM,WAAWQ,CAAa;AACpE+C,EAAQ,IAAI,aAAa,iBAC3BD,EAAqB,cAAc;","x_google_ignoreList":[0]}
@@ -27,36 +27,36 @@ import Ke from "../../../../@rc-component/util/es/Children/toArray.js";
27
27
  function Qe({
28
28
  mark: u,
29
29
  code: L,
30
- underline: b,
31
- delete: C,
32
- strong: y,
33
- keyboard: g,
30
+ underline: C,
31
+ delete: y,
32
+ strong: g,
33
+ keyboard: S,
34
34
  italic: R
35
35
  }, l) {
36
36
  let E = l;
37
- function a(w, S) {
38
- S && (E = /* @__PURE__ */ t.createElement(w, {}, E));
37
+ function p(w, x) {
38
+ x && (E = /* @__PURE__ */ t.createElement(w, {}, E));
39
39
  }
40
- return a("strong", y), a("u", b), a("del", C), a("code", L), a("mark", u), a("kbd", g), a("i", R), E;
40
+ return p("strong", g), p("u", C), p("del", y), p("code", L), p("mark", u), p("kbd", S), p("i", R), E;
41
41
  }
42
42
  const Xe = "...", ee = ["delete", "mark", "code", "underline", "strong", "keyboard", "italic"], kt = /* @__PURE__ */ t.forwardRef((u, L) => {
43
43
  const {
44
- prefixCls: b,
45
- className: C,
46
- style: y,
47
- type: g,
44
+ prefixCls: C,
45
+ className: y,
46
+ style: g,
47
+ type: S,
48
48
  disabled: R,
49
49
  children: l,
50
50
  ellipsis: E,
51
- editable: a,
51
+ editable: p,
52
52
  copyable: w,
53
- component: S,
53
+ component: x,
54
54
  title: T,
55
55
  ...te
56
56
  } = u, {
57
57
  getPrefixCls: oe,
58
58
  direction: D
59
- } = t.useContext(Ge), [d] = Me("Text"), N = t.useRef(null), J = t.useRef(null), p = oe("typography", b), ne = He(te, ee), [k, n] = A(a), [v, se] = j(!1, n.editing), {
59
+ } = t.useContext(Ge), [d] = Me("Text"), N = t.useRef(null), J = t.useRef(null), r = oe("typography", C), ne = He(te, ee), [k, n] = A(p), [v, se] = j(!1, n.editing), {
60
60
  triggerType: V = ["icon"]
61
61
  } = n, O = (e) => {
62
62
  e && n.onStart?.(), se(e);
@@ -81,7 +81,7 @@ const Xe = "...", ee = ["delete", "mark", "code", "underline", "strong", "keyboa
81
81
  expandable: !1,
82
82
  symbol: (e) => e ? d?.collapse : d?.expand
83
83
  }), [c, Ee] = j(s.defaultExpanded || !1, s.expanded), i = f && (!c || s.expandable === "collapsible"), {
84
- rows: x = 1
84
+ rows: b = 1
85
85
  } = s, h = t.useMemo(() => (
86
86
  // Disable ellipsis
87
87
  i && // Provide suffix
@@ -91,11 +91,11 @@ const Xe = "...", ee = ["delete", "mark", "code", "underline", "strong", "keyboa
91
91
  z(() => {
92
92
  f && !h && (pe(Z("webkitLineClamp")), ce(Z("textOverflow")));
93
93
  }, [h, f]);
94
- const [r, xe] = t.useState(i), K = t.useMemo(() => h ? !1 : x === 1 ? q : U, [h, q, U]);
94
+ const [a, xe] = t.useState(i), K = t.useMemo(() => h ? !1 : b === 1 ? q : U, [h, q, U]);
95
95
  z(() => {
96
96
  xe(K && i);
97
97
  }, [K, i]);
98
- const Q = i && (r ? H : G), be = i && x === 1 && r, P = i && x > 1 && r, Ce = (e, o) => {
98
+ const Q = i && (a ? H : G), be = i && b === 1 && a, P = i && b > 1 && a, Ce = (e, o) => {
99
99
  Ee(o.expanded), s.onExpand?.(e, o);
100
100
  }, [X, ye] = t.useState(0), ge = ({
101
101
  offsetWidth: e
@@ -106,13 +106,13 @@ const Xe = "...", ee = ["delete", "mark", "code", "underline", "strong", "keyboa
106
106
  };
107
107
  t.useEffect(() => {
108
108
  const e = N.current;
109
- if (f && r && e) {
109
+ if (f && a && e) {
110
110
  const o = Ue(e);
111
111
  H !== o && de(o);
112
112
  }
113
- }, [f, r, l, P, me, X]), t.useEffect(() => {
113
+ }, [f, a, l, P, me, X]), t.useEffect(() => {
114
114
  const e = N.current;
115
- if (typeof IntersectionObserver > "u" || !e || !r || !i)
115
+ if (typeof IntersectionObserver > "u" || !e || !a || !i)
116
116
  return;
117
117
  const o = new IntersectionObserver(() => {
118
118
  ue(!!e.offsetParent);
@@ -120,22 +120,22 @@ const Xe = "...", ee = ["delete", "mark", "code", "underline", "strong", "keyboa
120
120
  return o.observe(e), () => {
121
121
  o.disconnect();
122
122
  };
123
- }, [r, i]);
123
+ }, [a, i]);
124
124
  const $ = Ve(s.tooltip, n.text, l), Y = t.useMemo(() => {
125
- if (!(!f || r))
125
+ if (!(!f || a))
126
126
  return [n.text, l, T, $.title].find(qe);
127
- }, [f, r, T, $.title, Q]);
127
+ }, [f, a, T, $.title, Q]);
128
128
  if (v)
129
129
  return /* @__PURE__ */ t.createElement(Ae, {
130
130
  value: n.text ?? (typeof l == "string" ? l : ""),
131
131
  onSave: le,
132
132
  onCancel: re,
133
133
  onEnd: n.onEnd,
134
- prefixCls: p,
135
- className: C,
136
- style: y,
134
+ prefixCls: r,
135
+ className: y,
136
+ style: g,
137
137
  direction: D,
138
- component: S,
138
+ component: x,
139
139
  maxLength: n.maxLength,
140
140
  autoSize: n.autoSize,
141
141
  enterIcon: n.enterIcon
@@ -148,7 +148,7 @@ const Xe = "...", ee = ["delete", "mark", "code", "underline", "strong", "keyboa
148
148
  return e ? /* @__PURE__ */ t.createElement("button", {
149
149
  type: "button",
150
150
  key: "expand",
151
- className: `${p}-${c ? "collapse" : "expand"}`,
151
+ className: `${r}-${c ? "collapse" : "expand"}`,
152
152
  onClick: (m) => Ce(m, {
153
153
  expanded: !c
154
154
  }),
@@ -168,7 +168,7 @@ const Xe = "...", ee = ["delete", "mark", "code", "underline", "strong", "keyboa
168
168
  }, /* @__PURE__ */ t.createElement("button", {
169
169
  type: "button",
170
170
  ref: J,
171
- className: `${p}-edit`,
171
+ className: `${r}-edit`,
172
172
  onClick: W,
173
173
  "aria-label": Re,
174
174
  tabIndex: m
@@ -178,7 +178,7 @@ const Xe = "...", ee = ["delete", "mark", "code", "underline", "strong", "keyboa
178
178
  }, Ie = () => I ? /* @__PURE__ */ t.createElement(_e, {
179
179
  key: "copy",
180
180
  ..._,
181
- prefixCls: p,
181
+ prefixCls: r,
182
182
  copied: B,
183
183
  locale: d,
184
184
  onCopy: ae,
@@ -197,18 +197,19 @@ const Xe = "...", ee = ["delete", "mark", "code", "underline", "strong", "keyboa
197
197
  isEllipsis: Q
198
198
  }, /* @__PURE__ */ t.createElement(We, {
199
199
  className: Pe({
200
- [`${p}-${g}`]: g,
201
- [`${p}-disabled`]: R,
202
- [`${p}-ellipsis`]: f,
203
- [`${p}-ellipsis-single-line`]: be,
204
- [`${p}-ellipsis-multiple-line`]: P
205
- }, C),
206
- prefixCls: b,
200
+ [`${r}-${S}`]: S,
201
+ [`${r}-disabled`]: R,
202
+ [`${r}-ellipsis`]: f,
203
+ [`${r}-ellipsis-single-line`]: be,
204
+ [`${r}-ellipsis-multiple-line`]: P,
205
+ [`${r}-link`]: x === "a"
206
+ }, y),
207
+ prefixCls: C,
207
208
  style: {
208
- ...y,
209
- WebkitLineClamp: P ? x : void 0
209
+ ...g,
210
+ WebkitLineClamp: P ? b : void 0
210
211
  },
211
- component: S,
212
+ component: x,
212
213
  ref: Oe(e, N, L),
213
214
  direction: D,
214
215
  onClick: V.includes("text") ? W : void 0,
@@ -216,9 +217,9 @@ const Xe = "...", ee = ["delete", "mark", "code", "underline", "strong", "keyboa
216
217
  title: T,
217
218
  ...ne
218
219
  }, /* @__PURE__ */ t.createElement(Be, {
219
- enableMeasure: i && !r,
220
+ enableMeasure: i && !a,
220
221
  text: l,
221
- rows: x,
222
+ rows: b,
222
223
  width: X,
223
224
  onEllipsis: Se,
224
225
  expanded: c,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/typography/Base/index.js"],"sourcesContent":["\"use client\";\n\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport * as React from 'react';\nimport EditOutlined from \"@ant-design/icons/es/icons/EditOutlined\";\nimport ResizeObserver from '@rc-component/resize-observer';\nimport { omit, toArray, useControlledState } from '@rc-component/util';\nimport useLayoutEffect from \"@rc-component/util/es/hooks/useLayoutEffect\";\nimport { composeRef } from \"@rc-component/util/es/ref\";\nimport { clsx } from 'clsx';\nimport isNonNullable from '../../_util/isNonNullable';\nimport { isStyleSupport } from '../../_util/styleChecker';\nimport { ConfigContext } from '../../config-provider';\nimport useLocale from '../../locale/useLocale';\nimport Tooltip from '../../tooltip';\nimport Editable from '../Editable';\nimport useCopyClick from '../hooks/useCopyClick';\nimport useMergedConfig from '../hooks/useMergedConfig';\nimport usePrevious from '../hooks/usePrevious';\nimport useTooltipProps from '../hooks/useTooltipProps';\nimport Typography from '../Typography';\nimport CopyBtn from './CopyBtn';\nimport Ellipsis from './Ellipsis';\nimport EllipsisTooltip from './EllipsisTooltip';\nimport { isEleEllipsis, isValidText } from './util';\nfunction wrapperDecorations({\n mark,\n code,\n underline,\n delete: del,\n strong,\n keyboard,\n italic\n}, content) {\n let currentContent = content;\n function wrap(tag, needed) {\n if (!needed) {\n return;\n }\n currentContent = /*#__PURE__*/React.createElement(tag, {}, currentContent);\n }\n wrap('strong', strong);\n wrap('u', underline);\n wrap('del', del);\n wrap('code', code);\n wrap('mark', mark);\n wrap('kbd', keyboard);\n wrap('i', italic);\n return currentContent;\n}\nconst ELLIPSIS_STR = '...';\nconst DECORATION_PROPS = ['delete', 'mark', 'code', 'underline', 'strong', 'keyboard', 'italic'];\nconst Base = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n className,\n style,\n type,\n disabled,\n children,\n ellipsis,\n editable,\n copyable,\n component,\n title,\n ...restProps\n } = props;\n const {\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n const [textLocale] = useLocale('Text');\n const typographyRef = React.useRef(null);\n const editIconRef = React.useRef(null);\n // ============================ MISC ============================\n const prefixCls = getPrefixCls('typography', customizePrefixCls);\n const textProps = omit(restProps, DECORATION_PROPS);\n // ========================== Editable ==========================\n const [enableEdit, editConfig] = useMergedConfig(editable);\n const [editing, setEditing] = useControlledState(false, editConfig.editing);\n const {\n triggerType = ['icon']\n } = editConfig;\n const triggerEdit = edit => {\n if (edit) {\n editConfig.onStart?.();\n }\n setEditing(edit);\n };\n // Focus edit icon when back\n const prevEditing = usePrevious(editing);\n useLayoutEffect(() => {\n if (!editing && prevEditing) {\n editIconRef.current?.focus();\n }\n }, [editing]);\n const onEditClick = e => {\n e?.preventDefault();\n triggerEdit(true);\n };\n const onEditChange = value => {\n editConfig.onChange?.(value);\n triggerEdit(false);\n };\n const onEditCancel = () => {\n editConfig.onCancel?.();\n triggerEdit(false);\n };\n // ========================== Copyable ==========================\n const [enableCopy, copyConfig] = useMergedConfig(copyable);\n const {\n copied,\n copyLoading,\n onClick: onCopyClick\n } = useCopyClick({\n copyConfig,\n children\n });\n // ========================== Ellipsis ==========================\n const [isLineClampSupport, setIsLineClampSupport] = React.useState(false);\n const [isTextOverflowSupport, setIsTextOverflowSupport] = React.useState(false);\n const [isJsEllipsis, setIsJsEllipsis] = React.useState(false);\n const [isNativeEllipsis, setIsNativeEllipsis] = React.useState(false);\n const [isNativeVisible, setIsNativeVisible] = React.useState(true);\n const [enableEllipsis, ellipsisConfig] = useMergedConfig(ellipsis, {\n expandable: false,\n symbol: isExpanded => isExpanded ? textLocale?.collapse : textLocale?.expand\n });\n const [expanded, setExpanded] = useControlledState(ellipsisConfig.defaultExpanded || false, ellipsisConfig.expanded);\n const mergedEnableEllipsis = enableEllipsis && (!expanded || ellipsisConfig.expandable === 'collapsible');\n // Shared prop to reduce bundle size\n const {\n rows = 1\n } = ellipsisConfig;\n const needMeasureEllipsis = React.useMemo(() =>\n // Disable ellipsis\n mergedEnableEllipsis && (\n // Provide suffix\n ellipsisConfig.suffix !== undefined || ellipsisConfig.onEllipsis ||\n // Can't use css ellipsis since we need to provide the place for button\n ellipsisConfig.expandable || enableEdit || enableCopy), [mergedEnableEllipsis, ellipsisConfig, enableEdit, enableCopy]);\n useLayoutEffect(() => {\n if (enableEllipsis && !needMeasureEllipsis) {\n setIsLineClampSupport(isStyleSupport('webkitLineClamp'));\n setIsTextOverflowSupport(isStyleSupport('textOverflow'));\n }\n }, [needMeasureEllipsis, enableEllipsis]);\n const [cssEllipsis, setCssEllipsis] = React.useState(mergedEnableEllipsis);\n const canUseCssEllipsis = React.useMemo(() => {\n if (needMeasureEllipsis) {\n return false;\n }\n if (rows === 1) {\n return isTextOverflowSupport;\n }\n return isLineClampSupport;\n }, [needMeasureEllipsis, isTextOverflowSupport, isLineClampSupport]);\n // We use effect to change from css ellipsis to js ellipsis.\n // To make SSR still can see the ellipsis.\n useLayoutEffect(() => {\n setCssEllipsis(canUseCssEllipsis && mergedEnableEllipsis);\n }, [canUseCssEllipsis, mergedEnableEllipsis]);\n const isMergedEllipsis = mergedEnableEllipsis && (cssEllipsis ? isNativeEllipsis : isJsEllipsis);\n const cssTextOverflow = mergedEnableEllipsis && rows === 1 && cssEllipsis;\n const cssLineClamp = mergedEnableEllipsis && rows > 1 && cssEllipsis;\n // >>>>> Expand\n const onExpandClick = (e, info) => {\n setExpanded(info.expanded);\n ellipsisConfig.onExpand?.(e, info);\n };\n const [ellipsisWidth, setEllipsisWidth] = React.useState(0);\n const onResize = ({\n offsetWidth\n }) => {\n setEllipsisWidth(offsetWidth);\n };\n // >>>>> JS Ellipsis\n const onJsEllipsis = jsEllipsis => {\n setIsJsEllipsis(jsEllipsis);\n // Trigger if changed\n if (isJsEllipsis !== jsEllipsis) {\n ellipsisConfig.onEllipsis?.(jsEllipsis);\n }\n };\n // >>>>> Native ellipsis\n React.useEffect(() => {\n const textEle = typographyRef.current;\n if (enableEllipsis && cssEllipsis && textEle) {\n const currentEllipsis = isEleEllipsis(textEle);\n if (isNativeEllipsis !== currentEllipsis) {\n setIsNativeEllipsis(currentEllipsis);\n }\n }\n }, [enableEllipsis, cssEllipsis, children, cssLineClamp, isNativeVisible, ellipsisWidth]);\n // https://github.com/ant-design/ant-design/issues/36786\n // Use IntersectionObserver to check if element is invisible\n React.useEffect(() => {\n const textEle = typographyRef.current;\n if (typeof IntersectionObserver === 'undefined' || !textEle || !cssEllipsis || !mergedEnableEllipsis) {\n return;\n }\n /* eslint-disable-next-line compat/compat */\n const observer = new IntersectionObserver(() => {\n setIsNativeVisible(!!textEle.offsetParent);\n });\n observer.observe(textEle);\n return () => {\n observer.disconnect();\n };\n }, [cssEllipsis, mergedEnableEllipsis]);\n // ========================== Tooltip ===========================\n const tooltipProps = useTooltipProps(ellipsisConfig.tooltip, editConfig.text, children);\n const topAriaLabel = React.useMemo(() => {\n if (!enableEllipsis || cssEllipsis) {\n return undefined;\n }\n return [editConfig.text, children, title, tooltipProps.title].find(isValidText);\n }, [enableEllipsis, cssEllipsis, title, tooltipProps.title, isMergedEllipsis]);\n // =========================== Render ===========================\n // >>>>>>>>>>> Editing input\n if (editing) {\n return /*#__PURE__*/React.createElement(Editable, {\n value: editConfig.text ?? (typeof children === 'string' ? children : ''),\n onSave: onEditChange,\n onCancel: onEditCancel,\n onEnd: editConfig.onEnd,\n prefixCls: prefixCls,\n className: className,\n style: style,\n direction: direction,\n component: component,\n maxLength: editConfig.maxLength,\n autoSize: editConfig.autoSize,\n enterIcon: editConfig.enterIcon\n });\n }\n // >>>>>>>>>>> Typography\n // Expand\n const renderExpand = () => {\n const {\n expandable,\n symbol\n } = ellipsisConfig;\n return expandable ? (/*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n key: \"expand\",\n className: `${prefixCls}-${expanded ? 'collapse' : 'expand'}`,\n onClick: e => onExpandClick(e, {\n expanded: !expanded\n }),\n \"aria-label\": expanded ? textLocale.collapse : textLocale?.expand\n }, typeof symbol === 'function' ? symbol(expanded) : symbol)) : null;\n };\n // Edit\n const renderEdit = () => {\n if (!enableEdit) {\n return;\n }\n const {\n icon,\n tooltip,\n tabIndex\n } = editConfig;\n const editTitle = toArray(tooltip)[0] || textLocale?.edit;\n const ariaLabel = typeof editTitle === 'string' ? editTitle : '';\n return triggerType.includes('icon') ? (/*#__PURE__*/React.createElement(Tooltip, {\n key: \"edit\",\n title: tooltip === false ? '' : editTitle\n }, /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n ref: editIconRef,\n className: `${prefixCls}-edit`,\n onClick: onEditClick,\n \"aria-label\": ariaLabel,\n tabIndex: tabIndex\n }, icon || /*#__PURE__*/React.createElement(EditOutlined, {\n role: \"button\"\n })))) : null;\n };\n // Copy\n const renderCopy = () => {\n if (!enableCopy) {\n return null;\n }\n return /*#__PURE__*/React.createElement(CopyBtn, {\n key: \"copy\",\n ...copyConfig,\n prefixCls: prefixCls,\n copied: copied,\n locale: textLocale,\n onCopy: onCopyClick,\n loading: copyLoading,\n iconOnly: !isNonNullable(children)\n });\n };\n const renderOperations = canEllipsis => [canEllipsis && renderExpand(), renderEdit(), renderCopy()];\n const renderEllipsis = canEllipsis => [canEllipsis && !expanded && (/*#__PURE__*/React.createElement(\"span\", {\n \"aria-hidden\": true,\n key: \"ellipsis\"\n }, ELLIPSIS_STR)), ellipsisConfig.suffix, renderOperations(canEllipsis)];\n return /*#__PURE__*/React.createElement(ResizeObserver, {\n onResize: onResize,\n disabled: !mergedEnableEllipsis\n }, resizeRef => (/*#__PURE__*/React.createElement(EllipsisTooltip, {\n tooltipProps: tooltipProps,\n enableEllipsis: mergedEnableEllipsis,\n isEllipsis: isMergedEllipsis\n }, /*#__PURE__*/React.createElement(Typography, {\n className: clsx({\n [`${prefixCls}-${type}`]: type,\n [`${prefixCls}-disabled`]: disabled,\n [`${prefixCls}-ellipsis`]: enableEllipsis,\n [`${prefixCls}-ellipsis-single-line`]: cssTextOverflow,\n [`${prefixCls}-ellipsis-multiple-line`]: cssLineClamp\n }, className),\n prefixCls: customizePrefixCls,\n style: {\n ...style,\n WebkitLineClamp: cssLineClamp ? rows : undefined\n },\n component: component,\n ref: composeRef(resizeRef, typographyRef, ref),\n direction: direction,\n onClick: triggerType.includes('text') ? onEditClick : undefined,\n \"aria-label\": topAriaLabel?.toString(),\n title: title,\n ...textProps\n }, /*#__PURE__*/React.createElement(Ellipsis, {\n enableMeasure: mergedEnableEllipsis && !cssEllipsis,\n text: children,\n rows: rows,\n width: ellipsisWidth,\n onEllipsis: onJsEllipsis,\n expanded: expanded,\n miscDeps: [copied, expanded, copyLoading, enableEdit, enableCopy, textLocale].concat(_toConsumableArray(DECORATION_PROPS.map(key => props[key])))\n }, (node, canEllipsis) => wrapperDecorations(props, /*#__PURE__*/React.createElement(React.Fragment, null, node.length > 0 && canEllipsis && !expanded && topAriaLabel ? (/*#__PURE__*/React.createElement(\"span\", {\n key: \"show-content\",\n \"aria-hidden\": true\n }, node)) : node, renderEllipsis(canEllipsis))))))));\n});\nexport default Base;"],"names":["wrapperDecorations","mark","code","underline","del","strong","keyboard","italic","content","currentContent","wrap","tag","needed","React","ELLIPSIS_STR","DECORATION_PROPS","Base","props","ref","customizePrefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title","restProps","getPrefixCls","direction","ConfigContext","textLocale","useLocale","typographyRef","editIconRef","prefixCls","textProps","omit","enableEdit","editConfig","useMergedConfig","editing","setEditing","useControlledState","triggerType","triggerEdit","edit","prevEditing","usePrevious","useLayoutEffect","onEditClick","onEditChange","value","onEditCancel","enableCopy","copyConfig","copied","copyLoading","onCopyClick","useCopyClick","isLineClampSupport","setIsLineClampSupport","isTextOverflowSupport","setIsTextOverflowSupport","isJsEllipsis","setIsJsEllipsis","isNativeEllipsis","setIsNativeEllipsis","isNativeVisible","setIsNativeVisible","enableEllipsis","ellipsisConfig","isExpanded","expanded","setExpanded","mergedEnableEllipsis","rows","needMeasureEllipsis","isStyleSupport","cssEllipsis","setCssEllipsis","canUseCssEllipsis","isMergedEllipsis","cssTextOverflow","cssLineClamp","onExpandClick","info","ellipsisWidth","setEllipsisWidth","onResize","offsetWidth","onJsEllipsis","jsEllipsis","textEle","currentEllipsis","isEleEllipsis","observer","tooltipProps","useTooltipProps","topAriaLabel","isValidText","Editable","renderExpand","expandable","symbol","e","renderEdit","icon","tooltip","tabIndex","editTitle","toArray","ariaLabel","Tooltip","EditOutlined","renderCopy","CopyBtn","isNonNullable","renderOperations","canEllipsis","renderEllipsis","ResizeObserver","resizeRef","EllipsisTooltip","Typography","clsx","composeRef","Ellipsis","_toConsumableArray","key","node"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,SAASA,GAAmB;AAAA,EAC1B,MAAAC;AAAA,EACA,MAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAQC;AAAA,EACR,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AACF,GAAGC,GAAS;AACV,MAAIC,IAAiBD;AACrB,WAASE,EAAKC,GAAKC,GAAQ;AACzB,IAAKA,MAGLH,IAA8B,gBAAAI,EAAM,cAAcF,GAAK,CAAA,GAAIF,CAAc;AAAA,EAC3E;AACA,SAAAC,EAAK,UAAUL,CAAM,GACrBK,EAAK,KAAKP,CAAS,GACnBO,EAAK,OAAON,CAAG,GACfM,EAAK,QAAQR,CAAI,GACjBQ,EAAK,QAAQT,CAAI,GACjBS,EAAK,OAAOJ,CAAQ,GACpBI,EAAK,KAAKH,CAAM,GACTE;AACT;AACA,MAAMK,KAAe,OACfC,KAAmB,CAAC,UAAU,QAAQ,QAAQ,aAAa,UAAU,YAAY,QAAQ,GACzFC,KAAoB,gBAAAH,EAAM,WAAW,CAACI,GAAOC,MAAQ;AACzD,QAAM;AAAA,IACJ,WAAWC;AAAA,IACX,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,MAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA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AeD,CAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE;AACrD,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/typography/Base/index.js"],"sourcesContent":["\"use client\";\n\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport * as React from 'react';\nimport EditOutlined from \"@ant-design/icons/es/icons/EditOutlined\";\nimport ResizeObserver from '@rc-component/resize-observer';\nimport { omit, toArray, useControlledState } from '@rc-component/util';\nimport useLayoutEffect from \"@rc-component/util/es/hooks/useLayoutEffect\";\nimport { composeRef } from \"@rc-component/util/es/ref\";\nimport { clsx } from 'clsx';\nimport isNonNullable from '../../_util/isNonNullable';\nimport { isStyleSupport } from '../../_util/styleChecker';\nimport { ConfigContext } from '../../config-provider';\nimport useLocale from '../../locale/useLocale';\nimport Tooltip from '../../tooltip';\nimport Editable from '../Editable';\nimport useCopyClick from '../hooks/useCopyClick';\nimport useMergedConfig from '../hooks/useMergedConfig';\nimport usePrevious from '../hooks/usePrevious';\nimport useTooltipProps from '../hooks/useTooltipProps';\nimport Typography from '../Typography';\nimport CopyBtn from './CopyBtn';\nimport Ellipsis from './Ellipsis';\nimport EllipsisTooltip from './EllipsisTooltip';\nimport { isEleEllipsis, isValidText } from './util';\nfunction wrapperDecorations({\n mark,\n code,\n underline,\n delete: del,\n strong,\n keyboard,\n italic\n}, content) {\n let currentContent = content;\n function wrap(tag, needed) {\n if (!needed) {\n return;\n }\n currentContent = /*#__PURE__*/React.createElement(tag, {}, currentContent);\n }\n wrap('strong', strong);\n wrap('u', underline);\n wrap('del', del);\n wrap('code', code);\n wrap('mark', mark);\n wrap('kbd', keyboard);\n wrap('i', italic);\n return currentContent;\n}\nconst ELLIPSIS_STR = '...';\nconst DECORATION_PROPS = ['delete', 'mark', 'code', 'underline', 'strong', 'keyboard', 'italic'];\nconst Base = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n className,\n style,\n type,\n disabled,\n children,\n ellipsis,\n editable,\n copyable,\n component,\n title,\n ...restProps\n } = props;\n const {\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n const [textLocale] = useLocale('Text');\n const typographyRef = React.useRef(null);\n const editIconRef = React.useRef(null);\n // ============================ MISC ============================\n const prefixCls = getPrefixCls('typography', customizePrefixCls);\n const textProps = omit(restProps, DECORATION_PROPS);\n // ========================== Editable ==========================\n const [enableEdit, editConfig] = useMergedConfig(editable);\n const [editing, setEditing] = useControlledState(false, editConfig.editing);\n const {\n triggerType = ['icon']\n } = editConfig;\n const triggerEdit = edit => {\n if (edit) {\n editConfig.onStart?.();\n }\n setEditing(edit);\n };\n // Focus edit icon when back\n const prevEditing = usePrevious(editing);\n useLayoutEffect(() => {\n if (!editing && prevEditing) {\n editIconRef.current?.focus();\n }\n }, [editing]);\n const onEditClick = e => {\n e?.preventDefault();\n triggerEdit(true);\n };\n const onEditChange = value => {\n editConfig.onChange?.(value);\n triggerEdit(false);\n };\n const onEditCancel = () => {\n editConfig.onCancel?.();\n triggerEdit(false);\n };\n // ========================== Copyable ==========================\n const [enableCopy, copyConfig] = useMergedConfig(copyable);\n const {\n copied,\n copyLoading,\n onClick: onCopyClick\n } = useCopyClick({\n copyConfig,\n children\n });\n // ========================== Ellipsis ==========================\n const [isLineClampSupport, setIsLineClampSupport] = React.useState(false);\n const [isTextOverflowSupport, setIsTextOverflowSupport] = React.useState(false);\n const [isJsEllipsis, setIsJsEllipsis] = React.useState(false);\n const [isNativeEllipsis, setIsNativeEllipsis] = React.useState(false);\n const [isNativeVisible, setIsNativeVisible] = React.useState(true);\n const [enableEllipsis, ellipsisConfig] = useMergedConfig(ellipsis, {\n expandable: false,\n symbol: isExpanded => isExpanded ? textLocale?.collapse : textLocale?.expand\n });\n const [expanded, setExpanded] = useControlledState(ellipsisConfig.defaultExpanded || false, ellipsisConfig.expanded);\n const mergedEnableEllipsis = enableEllipsis && (!expanded || ellipsisConfig.expandable === 'collapsible');\n // Shared prop to reduce bundle size\n const {\n rows = 1\n } = ellipsisConfig;\n const needMeasureEllipsis = React.useMemo(() =>\n // Disable ellipsis\n mergedEnableEllipsis && (\n // Provide suffix\n ellipsisConfig.suffix !== undefined || ellipsisConfig.onEllipsis ||\n // Can't use css ellipsis since we need to provide the place for button\n ellipsisConfig.expandable || enableEdit || enableCopy), [mergedEnableEllipsis, ellipsisConfig, enableEdit, enableCopy]);\n useLayoutEffect(() => {\n if (enableEllipsis && !needMeasureEllipsis) {\n setIsLineClampSupport(isStyleSupport('webkitLineClamp'));\n setIsTextOverflowSupport(isStyleSupport('textOverflow'));\n }\n }, [needMeasureEllipsis, enableEllipsis]);\n const [cssEllipsis, setCssEllipsis] = React.useState(mergedEnableEllipsis);\n const canUseCssEllipsis = React.useMemo(() => {\n if (needMeasureEllipsis) {\n return false;\n }\n if (rows === 1) {\n return isTextOverflowSupport;\n }\n return isLineClampSupport;\n }, [needMeasureEllipsis, isTextOverflowSupport, isLineClampSupport]);\n // We use effect to change from css ellipsis to js ellipsis.\n // To make SSR still can see the ellipsis.\n useLayoutEffect(() => {\n setCssEllipsis(canUseCssEllipsis && mergedEnableEllipsis);\n }, [canUseCssEllipsis, mergedEnableEllipsis]);\n const isMergedEllipsis = mergedEnableEllipsis && (cssEllipsis ? isNativeEllipsis : isJsEllipsis);\n const cssTextOverflow = mergedEnableEllipsis && rows === 1 && cssEllipsis;\n const cssLineClamp = mergedEnableEllipsis && rows > 1 && cssEllipsis;\n // >>>>> Expand\n const onExpandClick = (e, info) => {\n setExpanded(info.expanded);\n ellipsisConfig.onExpand?.(e, info);\n };\n const [ellipsisWidth, setEllipsisWidth] = React.useState(0);\n const onResize = ({\n offsetWidth\n }) => {\n setEllipsisWidth(offsetWidth);\n };\n // >>>>> JS Ellipsis\n const onJsEllipsis = jsEllipsis => {\n setIsJsEllipsis(jsEllipsis);\n // Trigger if changed\n if (isJsEllipsis !== jsEllipsis) {\n ellipsisConfig.onEllipsis?.(jsEllipsis);\n }\n };\n // >>>>> Native ellipsis\n React.useEffect(() => {\n const textEle = typographyRef.current;\n if (enableEllipsis && cssEllipsis && textEle) {\n const currentEllipsis = isEleEllipsis(textEle);\n if (isNativeEllipsis !== currentEllipsis) {\n setIsNativeEllipsis(currentEllipsis);\n }\n }\n }, [enableEllipsis, cssEllipsis, children, cssLineClamp, isNativeVisible, ellipsisWidth]);\n // https://github.com/ant-design/ant-design/issues/36786\n // Use IntersectionObserver to check if element is invisible\n React.useEffect(() => {\n const textEle = typographyRef.current;\n if (typeof IntersectionObserver === 'undefined' || !textEle || !cssEllipsis || !mergedEnableEllipsis) {\n return;\n }\n /* eslint-disable-next-line compat/compat */\n const observer = new IntersectionObserver(() => {\n setIsNativeVisible(!!textEle.offsetParent);\n });\n observer.observe(textEle);\n return () => {\n observer.disconnect();\n };\n }, [cssEllipsis, mergedEnableEllipsis]);\n // ========================== Tooltip ===========================\n const tooltipProps = useTooltipProps(ellipsisConfig.tooltip, editConfig.text, children);\n const topAriaLabel = React.useMemo(() => {\n if (!enableEllipsis || cssEllipsis) {\n return undefined;\n }\n return [editConfig.text, children, title, tooltipProps.title].find(isValidText);\n }, [enableEllipsis, cssEllipsis, title, tooltipProps.title, isMergedEllipsis]);\n // =========================== Render ===========================\n // >>>>>>>>>>> Editing input\n if (editing) {\n return /*#__PURE__*/React.createElement(Editable, {\n value: editConfig.text ?? (typeof children === 'string' ? children : ''),\n onSave: onEditChange,\n onCancel: onEditCancel,\n onEnd: editConfig.onEnd,\n prefixCls: prefixCls,\n className: className,\n style: style,\n direction: direction,\n component: component,\n maxLength: editConfig.maxLength,\n autoSize: editConfig.autoSize,\n enterIcon: editConfig.enterIcon\n });\n }\n // >>>>>>>>>>> Typography\n // Expand\n const renderExpand = () => {\n const {\n expandable,\n symbol\n } = ellipsisConfig;\n return expandable ? (/*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n key: \"expand\",\n className: `${prefixCls}-${expanded ? 'collapse' : 'expand'}`,\n onClick: e => onExpandClick(e, {\n expanded: !expanded\n }),\n \"aria-label\": expanded ? textLocale.collapse : textLocale?.expand\n }, typeof symbol === 'function' ? symbol(expanded) : symbol)) : null;\n };\n // Edit\n const renderEdit = () => {\n if (!enableEdit) {\n return;\n }\n const {\n icon,\n tooltip,\n tabIndex\n } = editConfig;\n const editTitle = toArray(tooltip)[0] || textLocale?.edit;\n const ariaLabel = typeof editTitle === 'string' ? editTitle : '';\n return triggerType.includes('icon') ? (/*#__PURE__*/React.createElement(Tooltip, {\n key: \"edit\",\n title: tooltip === false ? '' : editTitle\n }, /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n ref: editIconRef,\n className: `${prefixCls}-edit`,\n onClick: onEditClick,\n \"aria-label\": ariaLabel,\n tabIndex: tabIndex\n }, icon || /*#__PURE__*/React.createElement(EditOutlined, {\n role: \"button\"\n })))) : null;\n };\n // Copy\n const renderCopy = () => {\n if (!enableCopy) {\n return null;\n }\n return /*#__PURE__*/React.createElement(CopyBtn, {\n key: \"copy\",\n ...copyConfig,\n prefixCls: prefixCls,\n copied: copied,\n locale: textLocale,\n onCopy: onCopyClick,\n loading: copyLoading,\n iconOnly: !isNonNullable(children)\n });\n };\n const renderOperations = canEllipsis => [canEllipsis && renderExpand(), renderEdit(), renderCopy()];\n const renderEllipsis = canEllipsis => [canEllipsis && !expanded && (/*#__PURE__*/React.createElement(\"span\", {\n \"aria-hidden\": true,\n key: \"ellipsis\"\n }, ELLIPSIS_STR)), ellipsisConfig.suffix, renderOperations(canEllipsis)];\n return /*#__PURE__*/React.createElement(ResizeObserver, {\n onResize: onResize,\n disabled: !mergedEnableEllipsis\n }, resizeRef => (/*#__PURE__*/React.createElement(EllipsisTooltip, {\n tooltipProps: tooltipProps,\n enableEllipsis: mergedEnableEllipsis,\n isEllipsis: isMergedEllipsis\n }, /*#__PURE__*/React.createElement(Typography, {\n className: clsx({\n [`${prefixCls}-${type}`]: type,\n [`${prefixCls}-disabled`]: disabled,\n [`${prefixCls}-ellipsis`]: enableEllipsis,\n [`${prefixCls}-ellipsis-single-line`]: cssTextOverflow,\n [`${prefixCls}-ellipsis-multiple-line`]: cssLineClamp,\n [`${prefixCls}-link`]: component === 'a'\n }, className),\n prefixCls: customizePrefixCls,\n style: {\n ...style,\n WebkitLineClamp: cssLineClamp ? rows : undefined\n },\n component: component,\n ref: composeRef(resizeRef, typographyRef, ref),\n direction: direction,\n onClick: triggerType.includes('text') ? onEditClick : undefined,\n \"aria-label\": topAriaLabel?.toString(),\n title: title,\n ...textProps\n }, /*#__PURE__*/React.createElement(Ellipsis, {\n enableMeasure: mergedEnableEllipsis && !cssEllipsis,\n text: children,\n rows: rows,\n width: ellipsisWidth,\n onEllipsis: onJsEllipsis,\n expanded: expanded,\n miscDeps: [copied, expanded, copyLoading, enableEdit, enableCopy, textLocale].concat(_toConsumableArray(DECORATION_PROPS.map(key => props[key])))\n }, (node, canEllipsis) => wrapperDecorations(props, /*#__PURE__*/React.createElement(React.Fragment, null, node.length > 0 && canEllipsis && !expanded && topAriaLabel ? (/*#__PURE__*/React.createElement(\"span\", {\n key: \"show-content\",\n \"aria-hidden\": true\n }, node)) : node, renderEllipsis(canEllipsis))))))));\n});\nexport default Base;"],"names":["wrapperDecorations","mark","code","underline","del","strong","keyboard","italic","content","currentContent","wrap","tag","needed","React","ELLIPSIS_STR","DECORATION_PROPS","Base","props","ref","customizePrefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title","restProps","getPrefixCls","direction","ConfigContext","textLocale","useLocale","typographyRef","editIconRef","prefixCls","textProps","omit","enableEdit","editConfig","useMergedConfig","editing","setEditing","useControlledState","triggerType","triggerEdit","edit","prevEditing","usePrevious","useLayoutEffect","onEditClick","onEditChange","value","onEditCancel","enableCopy","copyConfig","copied","copyLoading","onCopyClick","useCopyClick","isLineClampSupport","setIsLineClampSupport","isTextOverflowSupport","setIsTextOverflowSupport","isJsEllipsis","setIsJsEllipsis","isNativeEllipsis","setIsNativeEllipsis","isNativeVisible","setIsNativeVisible","enableEllipsis","ellipsisConfig","isExpanded","expanded","setExpanded","mergedEnableEllipsis","rows","needMeasureEllipsis","isStyleSupport","cssEllipsis","setCssEllipsis","canUseCssEllipsis","isMergedEllipsis","cssTextOverflow","cssLineClamp","onExpandClick","info","ellipsisWidth","setEllipsisWidth","onResize","offsetWidth","onJsEllipsis","jsEllipsis","textEle","currentEllipsis","isEleEllipsis","observer","tooltipProps","useTooltipProps","topAriaLabel","isValidText","Editable","renderExpand","expandable","symbol","e","renderEdit","icon","tooltip","tabIndex","editTitle","toArray","ariaLabel","Tooltip","EditOutlined","renderCopy","CopyBtn","isNonNullable","renderOperations","canEllipsis","renderEllipsis","ResizeObserver","resizeRef","EllipsisTooltip","Typography","clsx","composeRef","Ellipsis","_toConsumableArray","key","node"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,SAASA,GAAmB;AAAA,EAC1B,MAAAC;AAAA,EACA,MAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAQC;AAAA,EACR,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AACF,GAAGC,GAAS;AACV,MAAIC,IAAiBD;AACrB,WAASE,EAAKC,GAAKC,GAAQ;AACzB,IAAKA,MAGLH,IAA8B,gBAAAI,EAAM,cAAcF,GAAK,CAAA,GAAIF,CAAc;AAAA,EAC3E;AACA,SAAAC,EAAK,UAAUL,CAAM,GACrBK,EAAK,KAAKP,CAAS,GACnBO,EAAK,OAAON,CAAG,GACfM,EAAK,QAAQR,CAAI,GACjBQ,EAAK,QAAQT,CAAI,GACjBS,EAAK,OAAOJ,CAAQ,GACpBI,EAAK,KAAKH,CAAM,GACTE;AACT;AACA,MAAMK,KAAe,OACfC,KAAmB,CAAC,UAAU,QAAQ,QAAQ,aAAa,UAAU,YAAY,QAAQ,GACzFC,KAAoB,gBAAAH,EAAM,WAAW,CAACI,GAAOC,MAAQ;AACzD,QAAM;AAAA,IACJ,WAAWC;AAAA,IACX,WAAAC;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C9C,KAAY0B,IAA6B,gBAAAzF,EAAM,cAAc,QAAQ;AAAA,IACjN,KAAK;AAAA,IACL,eAAe;AAAA,EACnB,GAAKwH,CAAI,IAAKA,GAAMV,GAAeD,CAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE;AACrD,CAAC;","x_google_ignoreList":[0]}
@@ -1,49 +1,49 @@
1
1
  import { operationUnit as l } from "../../style/index.js";
2
- import { genStyleHooks as t } from "../../theme/util/genStyleUtils.js";
3
- import { getEllipsisStyles as i, getCopyableStyles as c, getEditableStyles as a, getLinkStyles as s, getResetStyles as p, getTitleStyles as g } from "./mixins.js";
4
- const n = (r) => {
2
+ import { genStyleHooks as i } from "../../theme/util/genStyleUtils.js";
3
+ import { getEllipsisStyles as t, getCopyableStyles as c, getEditableStyles as n, getLinkStyles as s, getResetStyles as a, getTitleStyles as g } from "./mixins.js";
4
+ const p = (o) => {
5
5
  const {
6
- componentCls: o,
6
+ componentCls: r,
7
7
  titleMarginTop: e
8
- } = r;
8
+ } = o;
9
9
  return {
10
- [o]: {
11
- color: r.colorText,
10
+ [r]: {
11
+ color: o.colorText,
12
12
  wordBreak: "break-word",
13
- lineHeight: r.lineHeight,
14
- [`&${o}-secondary`]: {
15
- color: r.colorTextDescription
13
+ lineHeight: o.lineHeight,
14
+ [`&${r}-secondary, &${r}-link${r}-secondary`]: {
15
+ color: o.colorTextDescription
16
16
  },
17
- [`&${o}-success`]: {
18
- color: r.colorSuccessText
17
+ [`&${r}-success, &${r}-link${r}-success`]: {
18
+ color: o.colorSuccessText
19
19
  },
20
- [`&${o}-warning`]: {
21
- color: r.colorWarningText
20
+ [`&${r}-warning, &${r}-link${r}-warning`]: {
21
+ color: o.colorWarningText
22
22
  },
23
- [`&${o}-danger`]: {
24
- color: r.colorErrorText,
25
- "a&:active, a&:focus": {
26
- color: r.colorErrorTextActive
23
+ [`&${r}-danger, &${r}-link${r}-danger`]: {
24
+ color: o.colorErrorText,
25
+ [`&${r}-link:active, &${r}-link:focus`]: {
26
+ color: o.colorErrorTextActive
27
27
  },
28
- "a&:hover": {
29
- color: r.colorErrorTextHover
28
+ [`&${r}-link:hover`]: {
29
+ color: o.colorErrorTextHover
30
30
  }
31
31
  },
32
- [`&${o}-disabled`]: {
33
- color: r.colorTextDisabled,
32
+ [`&${r}-disabled`]: {
33
+ color: o.colorTextDisabled,
34
34
  cursor: "not-allowed",
35
35
  userSelect: "none"
36
36
  },
37
37
  "\n div&,\n p\n ": {
38
38
  marginBottom: "1em"
39
39
  },
40
- ...g(r),
40
+ ...g(o),
41
41
  [`
42
- & + h1${o},
43
- & + h2${o},
44
- & + h3${o},
45
- & + h4${o},
46
- & + h5${o}
42
+ & + h1${r},
43
+ & + h2${r},
44
+ & + h3${r},
45
+ & + h4${r},
46
+ & + h5${r}
47
47
  `]: {
48
48
  marginTop: e
49
49
  },
@@ -52,32 +52,32 @@ const n = (r) => {
52
52
  marginTop: e
53
53
  }
54
54
  },
55
- ...p(r),
56
- ...s(r),
55
+ ...a(o),
56
+ ...s(o),
57
57
  // Operation
58
58
  [`
59
- ${o}-expand,
60
- ${o}-collapse,
61
- ${o}-edit,
62
- ${o}-copy
59
+ ${r}-expand,
60
+ ${r}-collapse,
61
+ ${r}-edit,
62
+ ${r}-copy
63
63
  `]: {
64
- ...l(r),
65
- marginInlineStart: r.marginXXS
64
+ ...l(o),
65
+ marginInlineStart: o.marginXXS
66
66
  },
67
- ...a(r),
68
- ...c(r),
69
- ...i(),
67
+ ...n(o),
68
+ ...c(o),
69
+ ...t(),
70
70
  "&-rtl": {
71
71
  direction: "rtl"
72
72
  }
73
73
  }
74
74
  };
75
- }, h = () => ({
75
+ }, $ = () => ({
76
76
  titleMarginTop: "1.2em",
77
77
  titleMarginBottom: "0.5em"
78
- }), d = t("Typography", n, h);
78
+ }), y = i("Typography", p, $);
79
79
  export {
80
- d as default,
81
- h as prepareComponentToken
80
+ y as default,
81
+ $ as prepareComponentToken
82
82
  };
83
83
  //# sourceMappingURL=index.js.map