ods-component-lib 1.22.1 → 1.22.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (696) hide show
  1. package/README.md +54 -41
  2. package/dist/_virtual/es.array.index-of.js +3 -0
  3. package/dist/_virtual/es.array.index-of.js.map +1 -0
  4. package/dist/_virtual/es.array.index-of2.js +5 -0
  5. package/dist/_virtual/es.array.index-of2.js.map +1 -0
  6. package/dist/_virtual/es.array.iterator.js +3 -0
  7. package/dist/_virtual/es.array.iterator.js.map +1 -0
  8. package/dist/_virtual/es.array.reduce.js +3 -0
  9. package/dist/_virtual/es.array.reduce.js.map +1 -0
  10. package/dist/_virtual/es.array.reduce2.js +5 -0
  11. package/dist/_virtual/es.array.reduce2.js.map +1 -0
  12. package/dist/_virtual/es.array.reverse.js +3 -0
  13. package/dist/_virtual/es.array.reverse.js.map +1 -0
  14. package/dist/_virtual/es.array.reverse2.js +5 -0
  15. package/dist/_virtual/es.array.reverse2.js.map +1 -0
  16. package/dist/_virtual/es.promise.all.js +5 -0
  17. package/dist/_virtual/es.promise.all.js.map +1 -0
  18. package/dist/_virtual/es.promise.catch.js +5 -0
  19. package/dist/_virtual/es.promise.catch.js.map +1 -0
  20. package/dist/_virtual/es.promise.constructor.js +5 -0
  21. package/dist/_virtual/es.promise.constructor.js.map +1 -0
  22. package/dist/_virtual/es.promise.js +3 -0
  23. package/dist/_virtual/es.promise.js.map +1 -0
  24. package/dist/_virtual/es.promise.race.js +5 -0
  25. package/dist/_virtual/es.promise.race.js.map +1 -0
  26. package/dist/_virtual/es.promise.reject.js +5 -0
  27. package/dist/_virtual/es.promise.reject.js.map +1 -0
  28. package/dist/_virtual/es.promise.resolve.js +5 -0
  29. package/dist/_virtual/es.promise.resolve.js.map +1 -0
  30. package/dist/_virtual/es.promise2.js +5 -0
  31. package/dist/_virtual/es.promise2.js.map +1 -0
  32. package/dist/_virtual/es.regexp.exec.js +5 -0
  33. package/dist/_virtual/es.regexp.exec.js.map +1 -0
  34. package/dist/_virtual/es.regexp.to-string.js +3 -0
  35. package/dist/_virtual/es.regexp.to-string.js.map +1 -0
  36. package/dist/_virtual/es.regexp.to-string2.js +5 -0
  37. package/dist/_virtual/es.regexp.to-string2.js.map +1 -0
  38. package/dist/_virtual/es.string.ends-with.js +3 -0
  39. package/dist/_virtual/es.string.ends-with.js.map +1 -0
  40. package/dist/_virtual/es.string.ends-with2.js +5 -0
  41. package/dist/_virtual/es.string.ends-with2.js.map +1 -0
  42. package/dist/_virtual/es.string.includes.js +3 -0
  43. package/dist/_virtual/es.string.includes.js.map +1 -0
  44. package/dist/_virtual/es.string.includes2.js +5 -0
  45. package/dist/_virtual/es.string.includes2.js.map +1 -0
  46. package/dist/_virtual/es.string.match.js +3 -0
  47. package/dist/_virtual/es.string.match.js.map +1 -0
  48. package/dist/_virtual/es.string.match2.js +5 -0
  49. package/dist/_virtual/es.string.match2.js.map +1 -0
  50. package/dist/_virtual/es.string.replace.js +3 -0
  51. package/dist/_virtual/es.string.replace.js.map +1 -0
  52. package/dist/_virtual/es.string.replace2.js +5 -0
  53. package/dist/_virtual/es.string.replace2.js.map +1 -0
  54. package/dist/_virtual/es.string.split.js +3 -0
  55. package/dist/_virtual/es.string.split.js.map +1 -0
  56. package/dist/_virtual/es.string.split2.js +5 -0
  57. package/dist/_virtual/es.string.split2.js.map +1 -0
  58. package/dist/_virtual/es.string.starts-with.js +3 -0
  59. package/dist/_virtual/es.string.starts-with.js.map +1 -0
  60. package/dist/_virtual/es.string.starts-with2.js +5 -0
  61. package/dist/_virtual/es.string.starts-with2.js.map +1 -0
  62. package/dist/_virtual/es.string.trim.js +3 -0
  63. package/dist/_virtual/es.string.trim.js.map +1 -0
  64. package/dist/_virtual/es.string.trim2.js +5 -0
  65. package/dist/_virtual/es.string.trim2.js.map +1 -0
  66. package/dist/_virtual/index5.js +2 -3
  67. package/dist/_virtual/index5.js.map +1 -1
  68. package/dist/_virtual/index6.js +3 -2
  69. package/dist/_virtual/index6.js.map +1 -1
  70. package/dist/_virtual/make-built-in.js +5 -0
  71. package/dist/_virtual/make-built-in.js.map +1 -0
  72. package/dist/_virtual/new-promise-capability.js +5 -0
  73. package/dist/_virtual/new-promise-capability.js.map +1 -0
  74. package/dist/_virtual/object-define-properties.js +5 -0
  75. package/dist/_virtual/object-define-properties.js.map +1 -0
  76. package/dist/_virtual/object-define-property.js +5 -0
  77. package/dist/_virtual/object-define-property.js.map +1 -0
  78. package/dist/_virtual/object-get-own-property-descriptor.js +5 -0
  79. package/dist/_virtual/object-get-own-property-descriptor.js.map +1 -0
  80. package/dist/_virtual/object-get-own-property-names.js +5 -0
  81. package/dist/_virtual/object-get-own-property-names.js.map +1 -0
  82. package/dist/_virtual/object-get-own-property-symbols.js +5 -0
  83. package/dist/_virtual/object-get-own-property-symbols.js.map +1 -0
  84. package/dist/_virtual/object-property-is-enumerable.js +5 -0
  85. package/dist/_virtual/object-property-is-enumerable.js.map +1 -0
  86. package/dist/_virtual/shared-store.js +5 -0
  87. package/dist/_virtual/shared-store.js.map +1 -0
  88. package/dist/_virtual/web.dom-collections.iterator.js +3 -0
  89. package/dist/_virtual/web.dom-collections.iterator.js.map +1 -0
  90. package/dist/_virtual/web.dom-collections.iterator2.js +5 -0
  91. package/dist/_virtual/web.dom-collections.iterator2.js.map +1 -0
  92. package/dist/components/antd/currencyInput/CurrencySelect.js +15 -14
  93. package/dist/components/antd/currencyInput/CurrencySelect.js.map +1 -1
  94. package/dist/components/devextreme/DataGrid/OdsDataGrid/index.js +8 -9
  95. package/dist/components/devextreme/DataGrid/OdsDataGrid/index.js.map +1 -1
  96. package/dist/components/devextreme/DataGrid/OdsDataGridV2/index.js +21 -0
  97. package/dist/components/devextreme/DataGrid/OdsDataGridV2/index.js.map +1 -0
  98. package/dist/index.d.ts +8 -0
  99. package/dist/index.js +46 -44
  100. package/dist/index.js.map +1 -1
  101. package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js +6 -6
  102. package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js.map +1 -1
  103. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js +20 -20
  104. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js.map +1 -1
  105. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js.map +1 -1
  106. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js +101 -98
  107. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js.map +1 -1
  108. package/dist/node_modules/@ant-design/cssinjs/es/util/index.js +29 -27
  109. package/dist/node_modules/@ant-design/cssinjs/es/util/index.js.map +1 -1
  110. package/dist/node_modules/@rc-component/async-validator/es/index.js +20 -20
  111. package/dist/node_modules/@rc-component/async-validator/es/index.js.map +1 -1
  112. package/dist/node_modules/@rc-component/async-validator/es/messages.js +1 -0
  113. package/dist/node_modules/@rc-component/async-validator/es/messages.js.map +1 -1
  114. package/dist/node_modules/@rc-component/async-validator/es/rule/type.js +18 -8
  115. package/dist/node_modules/@rc-component/async-validator/es/rule/type.js.map +1 -1
  116. package/dist/node_modules/@rc-component/async-validator/es/util.js +1 -1
  117. package/dist/node_modules/@rc-component/async-validator/es/util.js.map +1 -1
  118. package/dist/node_modules/@rc-component/async-validator/es/validator/index.js +1 -0
  119. package/dist/node_modules/@rc-component/async-validator/es/validator/index.js.map +1 -1
  120. package/dist/node_modules/@rc-component/collapse/es/hooks/useItems.js +88 -68
  121. package/dist/node_modules/@rc-component/collapse/es/hooks/useItems.js.map +1 -1
  122. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js +75 -96
  123. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js.map +1 -1
  124. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/index.js +22 -20
  125. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/index.js.map +1 -1
  126. package/dist/node_modules/@rc-component/dialog/es/Dialog/index.js +92 -100
  127. package/dist/node_modules/@rc-component/dialog/es/Dialog/index.js.map +1 -1
  128. package/dist/node_modules/@rc-component/dialog/es/DialogWrap.js +40 -29
  129. package/dist/node_modules/@rc-component/dialog/es/DialogWrap.js.map +1 -1
  130. package/dist/node_modules/@rc-component/form/es/hooks/useForm.js +115 -100
  131. package/dist/node_modules/@rc-component/form/es/hooks/useForm.js.map +1 -1
  132. package/dist/node_modules/@rc-component/form/es/utils/NameMap.js +28 -22
  133. package/dist/node_modules/@rc-component/form/es/utils/NameMap.js.map +1 -1
  134. package/dist/node_modules/@rc-component/form/es/utils/messages.js +1 -0
  135. package/dist/node_modules/@rc-component/form/es/utils/messages.js.map +1 -1
  136. package/dist/node_modules/@rc-component/image/es/Preview/index.js +111 -105
  137. package/dist/node_modules/@rc-component/image/es/Preview/index.js.map +1 -1
  138. package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js +42 -22
  139. package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js.map +1 -1
  140. package/dist/node_modules/@rc-component/resize-observer/es/SingleObserver/index.js +18 -54
  141. package/dist/node_modules/@rc-component/resize-observer/es/SingleObserver/index.js.map +1 -1
  142. package/dist/node_modules/@rc-component/resize-observer/es/index.js.map +1 -1
  143. package/dist/node_modules/@rc-component/resize-observer/es/useResizeObserver.js +50 -0
  144. package/dist/node_modules/@rc-component/resize-observer/es/useResizeObserver.js.map +1 -0
  145. package/dist/node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js +50 -50
  146. package/dist/node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js.map +1 -1
  147. package/dist/node_modules/@rc-component/select/es/SelectInput/index.js +85 -80
  148. package/dist/node_modules/@rc-component/select/es/SelectInput/index.js.map +1 -1
  149. package/dist/node_modules/@rc-component/table/es/VirtualTable/BodyGrid.js +85 -80
  150. package/dist/node_modules/@rc-component/table/es/VirtualTable/BodyGrid.js.map +1 -1
  151. package/dist/node_modules/@rc-component/trigger/es/Popup/index.js +74 -72
  152. package/dist/node_modules/@rc-component/trigger/es/Popup/index.js.map +1 -1
  153. package/dist/node_modules/@rc-component/trigger/es/UniqueProvider/index.js +10 -9
  154. package/dist/node_modules/@rc-component/trigger/es/UniqueProvider/index.js.map +1 -1
  155. package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js +27 -27
  156. package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js.map +1 -1
  157. package/dist/node_modules/@rc-component/trigger/es/index.js +150 -140
  158. package/dist/node_modules/@rc-component/trigger/es/index.js.map +1 -1
  159. package/dist/node_modules/@rc-component/util/es/Dom/focus.js +65 -20
  160. package/dist/node_modules/@rc-component/util/es/Dom/focus.js.map +1 -1
  161. package/dist/node_modules/@rc-component/util/es/ref.js +1 -1
  162. package/dist/node_modules/antd/es/_util/wave/WaveEffect.js +53 -48
  163. package/dist/node_modules/antd/es/_util/wave/WaveEffect.js.map +1 -1
  164. package/dist/node_modules/antd/es/_util/wave/style.js +8 -7
  165. package/dist/node_modules/antd/es/_util/wave/style.js.map +1 -1
  166. package/dist/node_modules/antd/es/alert/Alert.js +133 -128
  167. package/dist/node_modules/antd/es/alert/Alert.js.map +1 -1
  168. package/dist/node_modules/antd/es/badge/Badge.js +29 -28
  169. package/dist/node_modules/antd/es/badge/Badge.js.map +1 -1
  170. package/dist/node_modules/antd/es/badge/style/index.js +1 -1
  171. package/dist/node_modules/antd/es/badge/style/index.js.map +1 -1
  172. package/dist/node_modules/antd/es/button/buttonHelpers.js +47 -41
  173. package/dist/node_modules/antd/es/button/buttonHelpers.js.map +1 -1
  174. package/dist/node_modules/antd/es/button/style/variant.js +132 -132
  175. package/dist/node_modules/antd/es/button/style/variant.js.map +1 -1
  176. package/dist/node_modules/antd/es/calendar/generateCalendar.js +55 -57
  177. package/dist/node_modules/antd/es/calendar/generateCalendar.js.map +1 -1
  178. package/dist/node_modules/antd/es/calendar/style/index.js +18 -18
  179. package/dist/node_modules/antd/es/calendar/style/index.js.map +1 -1
  180. package/dist/node_modules/antd/es/card/CardGrid.js.map +1 -1
  181. package/dist/node_modules/antd/es/card/style/index.js +15 -7
  182. package/dist/node_modules/antd/es/card/style/index.js.map +1 -1
  183. package/dist/node_modules/antd/es/checkbox/Group.js +32 -30
  184. package/dist/node_modules/antd/es/checkbox/Group.js.map +1 -1
  185. package/dist/node_modules/antd/es/collapse/Collapse.js +61 -61
  186. package/dist/node_modules/antd/es/collapse/Collapse.js.map +1 -1
  187. package/dist/node_modules/antd/es/config-provider/index.js +76 -71
  188. package/dist/node_modules/antd/es/config-provider/index.js.map +1 -1
  189. package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js +29 -31
  190. package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js.map +1 -1
  191. package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js +7 -9
  192. package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js.map +1 -1
  193. package/dist/node_modules/antd/es/date-picker/generatePicker/{SuffixIcon.js → useSuffixIcon.js} +4 -4
  194. package/dist/node_modules/antd/es/date-picker/generatePicker/useSuffixIcon.js.map +1 -0
  195. package/dist/node_modules/antd/es/date-picker/style/panel.js +4 -4
  196. package/dist/node_modules/antd/es/date-picker/style/panel.js.map +1 -1
  197. package/dist/node_modules/antd/es/drawer/useFocusable.js +14 -0
  198. package/dist/node_modules/antd/es/drawer/useFocusable.js.map +1 -0
  199. package/dist/node_modules/antd/es/form/style/index.js +24 -24
  200. package/dist/node_modules/antd/es/form/style/index.js.map +1 -1
  201. package/dist/node_modules/antd/es/grid/col.js +56 -54
  202. package/dist/node_modules/antd/es/grid/col.js.map +1 -1
  203. package/dist/node_modules/antd/es/grid/style/index.js +50 -50
  204. package/dist/node_modules/antd/es/grid/style/index.js.map +1 -1
  205. package/dist/node_modules/antd/es/input/style/index.js +1 -0
  206. package/dist/node_modules/antd/es/input/style/index.js.map +1 -1
  207. package/dist/node_modules/antd/es/input-number/index.js +91 -91
  208. package/dist/node_modules/antd/es/input-number/index.js.map +1 -1
  209. package/dist/node_modules/antd/es/input-number/style/index.js +80 -79
  210. package/dist/node_modules/antd/es/input-number/style/index.js.map +1 -1
  211. package/dist/node_modules/antd/es/layout/style/sider.js +9 -9
  212. package/dist/node_modules/antd/es/layout/style/sider.js.map +1 -1
  213. package/dist/node_modules/antd/es/menu/MenuItem.js +6 -6
  214. package/dist/node_modules/antd/es/menu/MenuItem.js.map +1 -1
  215. package/dist/node_modules/antd/es/menu/SubMenu.js +8 -8
  216. package/dist/node_modules/antd/es/menu/SubMenu.js.map +1 -1
  217. package/dist/node_modules/antd/es/menu/style/horizontal.js +1 -1
  218. package/dist/node_modules/antd/es/menu/style/horizontal.js.map +1 -1
  219. package/dist/node_modules/antd/es/menu/style/index.js +58 -58
  220. package/dist/node_modules/antd/es/menu/style/index.js.map +1 -1
  221. package/dist/node_modules/antd/es/menu/style/vertical.js +1 -1
  222. package/dist/node_modules/antd/es/menu/style/vertical.js.map +1 -1
  223. package/dist/node_modules/antd/es/modal/ConfirmDialog.js +117 -112
  224. package/dist/node_modules/antd/es/modal/ConfirmDialog.js.map +1 -1
  225. package/dist/node_modules/antd/es/modal/Modal.js +115 -109
  226. package/dist/node_modules/antd/es/modal/Modal.js.map +1 -1
  227. package/dist/node_modules/antd/es/modal/style/index.js +83 -80
  228. package/dist/node_modules/antd/es/modal/style/index.js.map +1 -1
  229. package/dist/node_modules/antd/es/pagination/Pagination.js +85 -81
  230. package/dist/node_modules/antd/es/pagination/Pagination.js.map +1 -1
  231. package/dist/node_modules/antd/es/pagination/style/bordered.js +2 -2
  232. package/dist/node_modules/antd/es/pagination/style/bordered.js.map +1 -1
  233. package/dist/node_modules/antd/es/pagination/style/index.js +98 -132
  234. package/dist/node_modules/antd/es/pagination/style/index.js.map +1 -1
  235. package/dist/node_modules/antd/es/popover/index.js +77 -82
  236. package/dist/node_modules/antd/es/popover/index.js.map +1 -1
  237. package/dist/node_modules/antd/es/popover/style/index.js +65 -63
  238. package/dist/node_modules/antd/es/popover/style/index.js.map +1 -1
  239. package/dist/node_modules/antd/es/radio/context.js +3 -3
  240. package/dist/node_modules/antd/es/radio/context.js.map +1 -1
  241. package/dist/node_modules/antd/es/radio/group.js +31 -29
  242. package/dist/node_modules/antd/es/radio/group.js.map +1 -1
  243. package/dist/node_modules/antd/es/radio/style/index.js +1 -1
  244. package/dist/node_modules/antd/es/radio/style/index.js.map +1 -1
  245. package/dist/node_modules/antd/es/select/style/dropdown.js +1 -1
  246. package/dist/node_modules/antd/es/select/style/dropdown.js.map +1 -1
  247. package/dist/node_modules/antd/es/select/style/select-input-multiple.js +71 -69
  248. package/dist/node_modules/antd/es/select/style/select-input-multiple.js.map +1 -1
  249. package/dist/node_modules/antd/es/select/style/select-input.js +104 -98
  250. package/dist/node_modules/antd/es/select/style/select-input.js.map +1 -1
  251. package/dist/node_modules/antd/es/space/Item.js +2 -2
  252. package/dist/node_modules/antd/es/space/Item.js.map +1 -1
  253. package/dist/node_modules/antd/es/space/index.js +4 -4
  254. package/dist/node_modules/antd/es/space/index.js.map +1 -1
  255. package/dist/node_modules/antd/es/space/style/addon.js +47 -46
  256. package/dist/node_modules/antd/es/space/style/addon.js.map +1 -1
  257. package/dist/node_modules/antd/es/steps/PanelArrow.js +2 -2
  258. package/dist/node_modules/antd/es/steps/PanelArrow.js.map +1 -1
  259. package/dist/node_modules/antd/es/steps/ProgressIcon.js +12 -10
  260. package/dist/node_modules/antd/es/steps/ProgressIcon.js.map +1 -1
  261. package/dist/node_modules/antd/es/steps/index.js +108 -106
  262. package/dist/node_modules/antd/es/steps/index.js.map +1 -1
  263. package/dist/node_modules/antd/es/steps/style/horizontal.js +13 -11
  264. package/dist/node_modules/antd/es/steps/style/horizontal.js.map +1 -1
  265. package/dist/node_modules/antd/es/steps/style/icon.js +23 -18
  266. package/dist/node_modules/antd/es/steps/style/icon.js.map +1 -1
  267. package/dist/node_modules/antd/es/steps/style/index.js +41 -41
  268. package/dist/node_modules/antd/es/steps/style/index.js.map +1 -1
  269. package/dist/node_modules/antd/es/steps/style/inline.js +28 -23
  270. package/dist/node_modules/antd/es/steps/style/inline.js.map +1 -1
  271. package/dist/node_modules/antd/es/steps/style/label-placement.js +44 -39
  272. package/dist/node_modules/antd/es/steps/style/label-placement.js.map +1 -1
  273. package/dist/node_modules/antd/es/steps/style/nav.js +29 -27
  274. package/dist/node_modules/antd/es/steps/style/nav.js.map +1 -1
  275. package/dist/node_modules/antd/es/steps/style/panel.js +61 -56
  276. package/dist/node_modules/antd/es/steps/style/panel.js.map +1 -1
  277. package/dist/node_modules/antd/es/steps/style/progress-dot.js +28 -26
  278. package/dist/node_modules/antd/es/steps/style/progress-dot.js.map +1 -1
  279. package/dist/node_modules/antd/es/steps/style/progress.js +24 -57
  280. package/dist/node_modules/antd/es/steps/style/progress.js.map +1 -1
  281. package/dist/node_modules/antd/es/steps/style/rtl.js +10 -8
  282. package/dist/node_modules/antd/es/steps/style/rtl.js.map +1 -1
  283. package/dist/node_modules/antd/es/steps/style/small.js +21 -16
  284. package/dist/node_modules/antd/es/steps/style/small.js.map +1 -1
  285. package/dist/node_modules/antd/es/steps/style/status.js +187 -176
  286. package/dist/node_modules/antd/es/steps/style/status.js.map +1 -1
  287. package/dist/node_modules/antd/es/steps/style/util.js +18 -16
  288. package/dist/node_modules/antd/es/steps/style/util.js.map +1 -1
  289. package/dist/node_modules/antd/es/steps/style/vertical.js +21 -16
  290. package/dist/node_modules/antd/es/steps/style/vertical.js.map +1 -1
  291. package/dist/node_modules/antd/es/style/placementArrow.js +31 -29
  292. package/dist/node_modules/antd/es/style/placementArrow.js.map +1 -1
  293. package/dist/node_modules/antd/es/table/InternalTable.js +65 -62
  294. package/dist/node_modules/antd/es/table/InternalTable.js.map +1 -1
  295. package/dist/node_modules/antd/es/table/TableMeasureRowContext.js +6 -0
  296. package/dist/node_modules/antd/es/table/TableMeasureRowContext.js.map +1 -0
  297. package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js +145 -137
  298. package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js.map +1 -1
  299. package/dist/node_modules/antd/es/table/style/index.js +3 -3
  300. package/dist/node_modules/antd/es/table/style/index.js.map +1 -1
  301. package/dist/node_modules/antd/es/table/style/radius.js +10 -0
  302. package/dist/node_modules/antd/es/table/style/radius.js.map +1 -1
  303. package/dist/node_modules/antd/es/table/style/virtual.js +5 -5
  304. package/dist/node_modules/antd/es/table/style/virtual.js.map +1 -1
  305. package/dist/node_modules/antd/es/theme/util/genStyleUtils.js +29 -32
  306. package/dist/node_modules/antd/es/theme/util/genStyleUtils.js.map +1 -1
  307. package/dist/node_modules/antd/es/timeline/Timeline.js +76 -74
  308. package/dist/node_modules/antd/es/timeline/Timeline.js.map +1 -1
  309. package/dist/node_modules/antd/es/timeline/style/horizontal.js +21 -18
  310. package/dist/node_modules/antd/es/timeline/style/horizontal.js.map +1 -1
  311. package/dist/node_modules/antd/es/timeline/style/index.js +85 -70
  312. package/dist/node_modules/antd/es/timeline/style/index.js.map +1 -1
  313. package/dist/node_modules/antd/es/timeline/useItems.js +38 -37
  314. package/dist/node_modules/antd/es/timeline/useItems.js.map +1 -1
  315. package/dist/node_modules/antd/es/tooltip/PurePanel.js +27 -27
  316. package/dist/node_modules/antd/es/tooltip/PurePanel.js.map +1 -1
  317. package/dist/node_modules/antd/es/tooltip/UniqueProvider/MotionContent.js +17 -22
  318. package/dist/node_modules/antd/es/tooltip/UniqueProvider/MotionContent.js.map +1 -1
  319. package/dist/node_modules/antd/es/tooltip/UniqueProvider/index.js +27 -26
  320. package/dist/node_modules/antd/es/tooltip/UniqueProvider/index.js.map +1 -1
  321. package/dist/node_modules/antd/es/tooltip/index.js +50 -50
  322. package/dist/node_modules/antd/es/tooltip/index.js.map +1 -1
  323. package/dist/node_modules/antd/es/tooltip/style/index.js +55 -52
  324. package/dist/node_modules/antd/es/tooltip/style/index.js.map +1 -1
  325. package/dist/node_modules/antd/es/tooltip/util.js +13 -12
  326. package/dist/node_modules/antd/es/tooltip/util.js.map +1 -1
  327. package/dist/node_modules/antd/es/tree/DirectoryTree.js +42 -41
  328. package/dist/node_modules/antd/es/tree/DirectoryTree.js.map +1 -1
  329. package/dist/node_modules/antd/es/version/version.js +1 -1
  330. package/dist/node_modules/antd/es/version/version.js.map +1 -1
  331. package/dist/node_modules/canvg/lib/index.es.js +100 -86
  332. package/dist/node_modules/canvg/lib/index.es.js.map +1 -1
  333. package/dist/node_modules/compute-scroll-into-view/dist/index.js +17 -17
  334. package/dist/node_modules/compute-scroll-into-view/dist/index.js.map +1 -1
  335. package/dist/node_modules/core-js/internals/a-callable.js +16 -0
  336. package/dist/node_modules/core-js/internals/a-callable.js.map +1 -0
  337. package/dist/node_modules/core-js/internals/a-constructor.js +16 -0
  338. package/dist/node_modules/core-js/internals/a-constructor.js.map +1 -0
  339. package/dist/node_modules/core-js/internals/a-possible-prototype.js +15 -0
  340. package/dist/node_modules/core-js/internals/a-possible-prototype.js.map +1 -0
  341. package/dist/node_modules/core-js/internals/add-to-unscopables.js +19 -0
  342. package/dist/node_modules/core-js/internals/add-to-unscopables.js.map +1 -0
  343. package/dist/node_modules/core-js/internals/advance-string-index.js +14 -0
  344. package/dist/node_modules/core-js/internals/advance-string-index.js.map +1 -0
  345. package/dist/node_modules/core-js/internals/an-instance.js +15 -0
  346. package/dist/node_modules/core-js/internals/an-instance.js.map +1 -0
  347. package/dist/node_modules/core-js/internals/an-object.js +15 -0
  348. package/dist/node_modules/core-js/internals/an-object.js.map +1 -0
  349. package/dist/node_modules/core-js/internals/array-includes.js +33 -0
  350. package/dist/node_modules/core-js/internals/array-includes.js.map +1 -0
  351. package/dist/node_modules/core-js/internals/array-method-is-strict.js +19 -0
  352. package/dist/node_modules/core-js/internals/array-method-is-strict.js.map +1 -0
  353. package/dist/node_modules/core-js/internals/array-reduce.js +38 -0
  354. package/dist/node_modules/core-js/internals/array-reduce.js.map +1 -0
  355. package/dist/node_modules/core-js/internals/array-slice.js +12 -0
  356. package/dist/node_modules/core-js/internals/array-slice.js.map +1 -0
  357. package/dist/node_modules/core-js/internals/check-correctness-of-iteration.js +47 -0
  358. package/dist/node_modules/core-js/internals/check-correctness-of-iteration.js.map +1 -0
  359. package/dist/node_modules/core-js/internals/classof-raw.js +14 -0
  360. package/dist/node_modules/core-js/internals/classof-raw.js.map +1 -0
  361. package/dist/node_modules/core-js/internals/classof.js +25 -0
  362. package/dist/node_modules/core-js/internals/classof.js.map +1 -0
  363. package/dist/node_modules/core-js/internals/copy-constructor-properties.js +20 -0
  364. package/dist/node_modules/core-js/internals/copy-constructor-properties.js.map +1 -0
  365. package/dist/node_modules/core-js/internals/correct-is-regexp-logic.js +23 -0
  366. package/dist/node_modules/core-js/internals/correct-is-regexp-logic.js.map +1 -0
  367. package/dist/node_modules/core-js/internals/correct-prototype-getter.js +16 -0
  368. package/dist/node_modules/core-js/internals/correct-prototype-getter.js.map +1 -0
  369. package/dist/node_modules/core-js/internals/create-iter-result-object.js +10 -0
  370. package/dist/node_modules/core-js/internals/create-iter-result-object.js.map +1 -0
  371. package/dist/node_modules/core-js/internals/create-non-enumerable-property.js +18 -0
  372. package/dist/node_modules/core-js/internals/create-non-enumerable-property.js.map +1 -0
  373. package/dist/node_modules/core-js/internals/create-property-descriptor.js +15 -0
  374. package/dist/node_modules/core-js/internals/create-property-descriptor.js.map +1 -0
  375. package/dist/node_modules/core-js/internals/define-built-in-accessor.js +15 -0
  376. package/dist/node_modules/core-js/internals/define-built-in-accessor.js.map +1 -0
  377. package/dist/node_modules/core-js/internals/define-built-in.js +33 -0
  378. package/dist/node_modules/core-js/internals/define-built-in.js.map +1 -0
  379. package/dist/node_modules/core-js/internals/define-global-property.js +19 -0
  380. package/dist/node_modules/core-js/internals/define-global-property.js.map +1 -0
  381. package/dist/node_modules/core-js/internals/descriptors.js +16 -0
  382. package/dist/node_modules/core-js/internals/descriptors.js.map +1 -0
  383. package/dist/node_modules/core-js/internals/document-create-element.js +15 -0
  384. package/dist/node_modules/core-js/internals/document-create-element.js.map +1 -0
  385. package/dist/node_modules/core-js/internals/dom-iterables.js +40 -0
  386. package/dist/node_modules/core-js/internals/dom-iterables.js.map +1 -0
  387. package/dist/node_modules/core-js/internals/dom-token-list-prototype.js +12 -0
  388. package/dist/node_modules/core-js/internals/dom-token-list-prototype.js.map +1 -0
  389. package/dist/node_modules/core-js/internals/enum-bug-keys.js +16 -0
  390. package/dist/node_modules/core-js/internals/enum-bug-keys.js.map +1 -0
  391. package/dist/node_modules/core-js/internals/environment-is-ios-pebble.js +12 -0
  392. package/dist/node_modules/core-js/internals/environment-is-ios-pebble.js.map +1 -0
  393. package/dist/node_modules/core-js/internals/environment-is-ios.js +12 -0
  394. package/dist/node_modules/core-js/internals/environment-is-ios.js.map +1 -0
  395. package/dist/node_modules/core-js/internals/environment-is-node.js +12 -0
  396. package/dist/node_modules/core-js/internals/environment-is-node.js.map +1 -0
  397. package/dist/node_modules/core-js/internals/environment-is-webos-webkit.js +12 -0
  398. package/dist/node_modules/core-js/internals/environment-is-webos-webkit.js.map +1 -0
  399. package/dist/node_modules/core-js/internals/environment-user-agent.js +12 -0
  400. package/dist/node_modules/core-js/internals/environment-user-agent.js.map +1 -0
  401. package/dist/node_modules/core-js/internals/environment-v8-version.js +13 -0
  402. package/dist/node_modules/core-js/internals/environment-v8-version.js.map +1 -0
  403. package/dist/node_modules/core-js/internals/environment.js +18 -0
  404. package/dist/node_modules/core-js/internals/environment.js.map +1 -0
  405. package/dist/node_modules/core-js/internals/export.js +27 -0
  406. package/dist/node_modules/core-js/internals/export.js.map +1 -0
  407. package/dist/node_modules/core-js/internals/fails.js +14 -0
  408. package/dist/node_modules/core-js/internals/fails.js.map +1 -0
  409. package/dist/node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js +44 -0
  410. package/dist/node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js.map +1 -0
  411. package/dist/node_modules/core-js/internals/function-apply.js +14 -0
  412. package/dist/node_modules/core-js/internals/function-apply.js.map +1 -0
  413. package/dist/node_modules/core-js/internals/function-bind-context.js +18 -0
  414. package/dist/node_modules/core-js/internals/function-bind-context.js.map +1 -0
  415. package/dist/node_modules/core-js/internals/function-bind-native.js +16 -0
  416. package/dist/node_modules/core-js/internals/function-bind-native.js.map +1 -0
  417. package/dist/node_modules/core-js/internals/function-call.js +14 -0
  418. package/dist/node_modules/core-js/internals/function-call.js.map +1 -0
  419. package/dist/node_modules/core-js/internals/function-name.js +18 -0
  420. package/dist/node_modules/core-js/internals/function-name.js.map +1 -0
  421. package/dist/node_modules/core-js/internals/function-uncurry-this-accessor.js +18 -0
  422. package/dist/node_modules/core-js/internals/function-uncurry-this-accessor.js.map +1 -0
  423. package/dist/node_modules/core-js/internals/function-uncurry-this-clause.js +15 -0
  424. package/dist/node_modules/core-js/internals/function-uncurry-this-clause.js.map +1 -0
  425. package/dist/node_modules/core-js/internals/function-uncurry-this.js +16 -0
  426. package/dist/node_modules/core-js/internals/function-uncurry-this.js.map +1 -0
  427. package/dist/node_modules/core-js/internals/get-built-in.js +17 -0
  428. package/dist/node_modules/core-js/internals/get-built-in.js.map +1 -0
  429. package/dist/node_modules/core-js/internals/get-iterator-method.js +18 -0
  430. package/dist/node_modules/core-js/internals/get-iterator-method.js.map +1 -0
  431. package/dist/node_modules/core-js/internals/get-iterator.js +20 -0
  432. package/dist/node_modules/core-js/internals/get-iterator.js.map +1 -0
  433. package/dist/node_modules/core-js/internals/get-method.js +16 -0
  434. package/dist/node_modules/core-js/internals/get-method.js.map +1 -0
  435. package/dist/node_modules/core-js/internals/get-substitution.js +40 -0
  436. package/dist/node_modules/core-js/internals/get-substitution.js.map +1 -0
  437. package/dist/node_modules/core-js/internals/global-this.js +19 -0
  438. package/dist/node_modules/core-js/internals/global-this.js.map +1 -0
  439. package/dist/node_modules/core-js/internals/has-own-property.js +15 -0
  440. package/dist/node_modules/core-js/internals/has-own-property.js.map +1 -0
  441. package/dist/node_modules/core-js/internals/hidden-keys.js +8 -0
  442. package/dist/node_modules/core-js/internals/hidden-keys.js.map +1 -0
  443. package/dist/node_modules/core-js/internals/host-report-errors.js +13 -0
  444. package/dist/node_modules/core-js/internals/host-report-errors.js.map +1 -0
  445. package/dist/node_modules/core-js/internals/html.js +12 -0
  446. package/dist/node_modules/core-js/internals/html.js.map +1 -0
  447. package/dist/node_modules/core-js/internals/ie8-dom-define.js +20 -0
  448. package/dist/node_modules/core-js/internals/ie8-dom-define.js.map +1 -0
  449. package/dist/node_modules/core-js/internals/indexed-object.js +18 -0
  450. package/dist/node_modules/core-js/internals/indexed-object.js.map +1 -0
  451. package/dist/node_modules/core-js/internals/inspect-source.js +16 -0
  452. package/dist/node_modules/core-js/internals/inspect-source.js.map +1 -0
  453. package/dist/node_modules/core-js/internals/internal-state.js +55 -0
  454. package/dist/node_modules/core-js/internals/internal-state.js.map +1 -0
  455. package/dist/node_modules/core-js/internals/is-array-iterator-method.js +15 -0
  456. package/dist/node_modules/core-js/internals/is-array-iterator-method.js.map +1 -0
  457. package/dist/node_modules/core-js/internals/is-array.js +14 -0
  458. package/dist/node_modules/core-js/internals/is-array.js.map +1 -0
  459. package/dist/node_modules/core-js/internals/is-callable.js +15 -0
  460. package/dist/node_modules/core-js/internals/is-callable.js.map +1 -0
  461. package/dist/node_modules/core-js/internals/is-constructor.js +43 -0
  462. package/dist/node_modules/core-js/internals/is-constructor.js.map +1 -0
  463. package/dist/node_modules/core-js/internals/is-forced.js +18 -0
  464. package/dist/node_modules/core-js/internals/is-forced.js.map +1 -0
  465. package/dist/node_modules/core-js/internals/is-null-or-undefined.js +10 -0
  466. package/dist/node_modules/core-js/internals/is-null-or-undefined.js.map +1 -0
  467. package/dist/node_modules/core-js/internals/is-object.js +14 -0
  468. package/dist/node_modules/core-js/internals/is-object.js.map +1 -0
  469. package/dist/node_modules/core-js/internals/is-possible-prototype.js +14 -0
  470. package/dist/node_modules/core-js/internals/is-possible-prototype.js.map +1 -0
  471. package/dist/node_modules/core-js/internals/is-pure.js +8 -0
  472. package/dist/node_modules/core-js/internals/is-pure.js.map +1 -0
  473. package/dist/node_modules/core-js/internals/is-regexp.js +17 -0
  474. package/dist/node_modules/core-js/internals/is-regexp.js.map +1 -0
  475. package/dist/node_modules/core-js/internals/is-symbol.js +20 -0
  476. package/dist/node_modules/core-js/internals/is-symbol.js.map +1 -0
  477. package/dist/node_modules/core-js/internals/iterate.js +51 -0
  478. package/dist/node_modules/core-js/internals/iterate.js.map +1 -0
  479. package/dist/node_modules/core-js/internals/iterator-close.js +29 -0
  480. package/dist/node_modules/core-js/internals/iterator-close.js.map +1 -0
  481. package/dist/node_modules/core-js/internals/iterator-create-constructor.js +21 -0
  482. package/dist/node_modules/core-js/internals/iterator-create-constructor.js.map +1 -0
  483. package/dist/node_modules/core-js/internals/iterator-define.js +61 -0
  484. package/dist/node_modules/core-js/internals/iterator-define.js.map +1 -0
  485. package/dist/node_modules/core-js/internals/iterators-core.js +29 -0
  486. package/dist/node_modules/core-js/internals/iterators-core.js.map +1 -0
  487. package/dist/node_modules/core-js/internals/iterators.js +8 -0
  488. package/dist/node_modules/core-js/internals/iterators.js.map +1 -0
  489. package/dist/node_modules/core-js/internals/length-of-array-like.js +14 -0
  490. package/dist/node_modules/core-js/internals/length-of-array-like.js.map +1 -0
  491. package/dist/node_modules/core-js/internals/make-built-in.js +33 -0
  492. package/dist/node_modules/core-js/internals/make-built-in.js.map +1 -0
  493. package/dist/node_modules/core-js/internals/math-trunc.js +14 -0
  494. package/dist/node_modules/core-js/internals/math-trunc.js.map +1 -0
  495. package/dist/node_modules/core-js/internals/microtask.js +42 -0
  496. package/dist/node_modules/core-js/internals/microtask.js.map +1 -0
  497. package/dist/node_modules/core-js/internals/new-promise-capability.js +21 -0
  498. package/dist/node_modules/core-js/internals/new-promise-capability.js.map +1 -0
  499. package/dist/node_modules/core-js/internals/not-a-regexp.js +16 -0
  500. package/dist/node_modules/core-js/internals/not-a-regexp.js.map +1 -0
  501. package/dist/node_modules/core-js/internals/object-create.js +39 -0
  502. package/dist/node_modules/core-js/internals/object-create.js.map +1 -0
  503. package/dist/node_modules/core-js/internals/object-define-properties.js +22 -0
  504. package/dist/node_modules/core-js/internals/object-define-properties.js.map +1 -0
  505. package/dist/node_modules/core-js/internals/object-define-property.js +34 -0
  506. package/dist/node_modules/core-js/internals/object-define-property.js.map +1 -0
  507. package/dist/node_modules/core-js/internals/object-get-own-property-descriptor.js +26 -0
  508. package/dist/node_modules/core-js/internals/object-get-own-property-descriptor.js.map +1 -0
  509. package/dist/node_modules/core-js/internals/object-get-own-property-names.js +16 -0
  510. package/dist/node_modules/core-js/internals/object-get-own-property-names.js.map +1 -0
  511. package/dist/node_modules/core-js/internals/object-get-own-property-symbols.js +9 -0
  512. package/dist/node_modules/core-js/internals/object-get-own-property-symbols.js.map +1 -0
  513. package/dist/node_modules/core-js/internals/object-get-prototype-of.js +21 -0
  514. package/dist/node_modules/core-js/internals/object-get-prototype-of.js.map +1 -0
  515. package/dist/node_modules/core-js/internals/object-is-prototype-of.js +12 -0
  516. package/dist/node_modules/core-js/internals/object-is-prototype-of.js.map +1 -0
  517. package/dist/node_modules/core-js/internals/object-keys-internal.js +21 -0
  518. package/dist/node_modules/core-js/internals/object-keys-internal.js.map +1 -0
  519. package/dist/node_modules/core-js/internals/object-keys.js +15 -0
  520. package/dist/node_modules/core-js/internals/object-keys.js.map +1 -0
  521. package/dist/node_modules/core-js/internals/object-property-is-enumerable.js +15 -0
  522. package/dist/node_modules/core-js/internals/object-property-is-enumerable.js.map +1 -0
  523. package/dist/node_modules/core-js/internals/object-set-prototype-of.js +24 -0
  524. package/dist/node_modules/core-js/internals/object-set-prototype-of.js.map +1 -0
  525. package/dist/node_modules/core-js/internals/ordinary-to-primitive.js +18 -0
  526. package/dist/node_modules/core-js/internals/ordinary-to-primitive.js.map +1 -0
  527. package/dist/node_modules/core-js/internals/own-keys.js +19 -0
  528. package/dist/node_modules/core-js/internals/own-keys.js.map +1 -0
  529. package/dist/node_modules/core-js/internals/path.js +12 -0
  530. package/dist/node_modules/core-js/internals/path.js.map +1 -0
  531. package/dist/node_modules/core-js/internals/perform.js +14 -0
  532. package/dist/node_modules/core-js/internals/perform.js.map +1 -0
  533. package/dist/node_modules/core-js/internals/promise-constructor-detection.js +39 -0
  534. package/dist/node_modules/core-js/internals/promise-constructor-detection.js.map +1 -0
  535. package/dist/node_modules/core-js/internals/promise-native-constructor.js +12 -0
  536. package/dist/node_modules/core-js/internals/promise-native-constructor.js.map +1 -0
  537. package/dist/node_modules/core-js/internals/promise-resolve.js +18 -0
  538. package/dist/node_modules/core-js/internals/promise-resolve.js.map +1 -0
  539. package/dist/node_modules/core-js/internals/promise-statics-incorrect-iteration.js +17 -0
  540. package/dist/node_modules/core-js/internals/promise-statics-incorrect-iteration.js.map +1 -0
  541. package/dist/node_modules/core-js/internals/queue.js +25 -0
  542. package/dist/node_modules/core-js/internals/queue.js.map +1 -0
  543. package/dist/node_modules/core-js/internals/regexp-exec-abstract.js +24 -0
  544. package/dist/node_modules/core-js/internals/regexp-exec-abstract.js.map +1 -0
  545. package/dist/node_modules/core-js/internals/regexp-exec.js +37 -0
  546. package/dist/node_modules/core-js/internals/regexp-exec.js.map +1 -0
  547. package/dist/node_modules/core-js/internals/regexp-flags-detection.js +35 -0
  548. package/dist/node_modules/core-js/internals/regexp-flags-detection.js.map +1 -0
  549. package/dist/node_modules/core-js/internals/regexp-flags.js +15 -0
  550. package/dist/node_modules/core-js/internals/regexp-flags.js.map +1 -0
  551. package/dist/node_modules/core-js/internals/regexp-get-flags.js +20 -0
  552. package/dist/node_modules/core-js/internals/regexp-get-flags.js.map +1 -0
  553. package/dist/node_modules/core-js/internals/regexp-sticky-helpers.js +25 -0
  554. package/dist/node_modules/core-js/internals/regexp-sticky-helpers.js.map +1 -0
  555. package/dist/node_modules/core-js/internals/regexp-unsupported-dot-all.js +17 -0
  556. package/dist/node_modules/core-js/internals/regexp-unsupported-dot-all.js.map +1 -0
  557. package/dist/node_modules/core-js/internals/regexp-unsupported-ncg.js +16 -0
  558. package/dist/node_modules/core-js/internals/regexp-unsupported-ncg.js.map +1 -0
  559. package/dist/node_modules/core-js/internals/require-object-coercible.js +15 -0
  560. package/dist/node_modules/core-js/internals/require-object-coercible.js.map +1 -0
  561. package/dist/node_modules/core-js/internals/safe-get-built-in.js +17 -0
  562. package/dist/node_modules/core-js/internals/safe-get-built-in.js.map +1 -0
  563. package/dist/node_modules/core-js/internals/set-species.js +23 -0
  564. package/dist/node_modules/core-js/internals/set-species.js.map +1 -0
  565. package/dist/node_modules/core-js/internals/set-to-string-tag.js +16 -0
  566. package/dist/node_modules/core-js/internals/set-to-string-tag.js.map +1 -0
  567. package/dist/node_modules/core-js/internals/shared-key.js +15 -0
  568. package/dist/node_modules/core-js/internals/shared-key.js.map +1 -0
  569. package/dist/node_modules/core-js/internals/shared-store.js +21 -0
  570. package/dist/node_modules/core-js/internals/shared-store.js.map +1 -0
  571. package/dist/node_modules/core-js/internals/shared.js +14 -0
  572. package/dist/node_modules/core-js/internals/shared.js.map +1 -0
  573. package/dist/node_modules/core-js/internals/species-constructor.js +18 -0
  574. package/dist/node_modules/core-js/internals/species-constructor.js.map +1 -0
  575. package/dist/node_modules/core-js/internals/string-multibyte.js +27 -0
  576. package/dist/node_modules/core-js/internals/string-multibyte.js.map +1 -0
  577. package/dist/node_modules/core-js/internals/string-trim-forced.js +18 -0
  578. package/dist/node_modules/core-js/internals/string-trim-forced.js.map +1 -0
  579. package/dist/node_modules/core-js/internals/string-trim.js +30 -0
  580. package/dist/node_modules/core-js/internals/string-trim.js.map +1 -0
  581. package/dist/node_modules/core-js/internals/symbol-constructor-detection.js +18 -0
  582. package/dist/node_modules/core-js/internals/symbol-constructor-detection.js.map +1 -0
  583. package/dist/node_modules/core-js/internals/task.js +61 -0
  584. package/dist/node_modules/core-js/internals/task.js.map +1 -0
  585. package/dist/node_modules/core-js/internals/to-absolute-index.js +15 -0
  586. package/dist/node_modules/core-js/internals/to-absolute-index.js.map +1 -0
  587. package/dist/node_modules/core-js/internals/to-indexed-object.js +15 -0
  588. package/dist/node_modules/core-js/internals/to-indexed-object.js.map +1 -0
  589. package/dist/node_modules/core-js/internals/to-integer-or-infinity.js +15 -0
  590. package/dist/node_modules/core-js/internals/to-integer-or-infinity.js.map +1 -0
  591. package/dist/node_modules/core-js/internals/to-length.js +15 -0
  592. package/dist/node_modules/core-js/internals/to-length.js.map +1 -0
  593. package/dist/node_modules/core-js/internals/to-object.js +14 -0
  594. package/dist/node_modules/core-js/internals/to-object.js.map +1 -0
  595. package/dist/node_modules/core-js/internals/to-primitive.js +25 -0
  596. package/dist/node_modules/core-js/internals/to-primitive.js.map +1 -0
  597. package/dist/node_modules/core-js/internals/to-property-key.js +16 -0
  598. package/dist/node_modules/core-js/internals/to-property-key.js.map +1 -0
  599. package/dist/node_modules/core-js/internals/to-string-tag-support.js +12 -0
  600. package/dist/node_modules/core-js/internals/to-string-tag-support.js.map +1 -0
  601. package/dist/node_modules/core-js/internals/to-string.js +15 -0
  602. package/dist/node_modules/core-js/internals/to-string.js.map +1 -0
  603. package/dist/node_modules/core-js/internals/try-to-string.js +17 -0
  604. package/dist/node_modules/core-js/internals/try-to-string.js.map +1 -0
  605. package/dist/node_modules/core-js/internals/uid.js +14 -0
  606. package/dist/node_modules/core-js/internals/uid.js.map +1 -0
  607. package/dist/node_modules/core-js/internals/use-symbol-as-uid.js +12 -0
  608. package/dist/node_modules/core-js/internals/use-symbol-as-uid.js.map +1 -0
  609. package/dist/node_modules/core-js/internals/v8-prototype-define-bug.js +19 -0
  610. package/dist/node_modules/core-js/internals/v8-prototype-define-bug.js.map +1 -0
  611. package/dist/node_modules/core-js/internals/validate-arguments-length.js +14 -0
  612. package/dist/node_modules/core-js/internals/validate-arguments-length.js.map +1 -0
  613. package/dist/node_modules/core-js/internals/weak-map-basic-detection.js +13 -0
  614. package/dist/node_modules/core-js/internals/weak-map-basic-detection.js.map +1 -0
  615. package/dist/node_modules/core-js/internals/well-known-symbol.js +19 -0
  616. package/dist/node_modules/core-js/internals/well-known-symbol.js.map +1 -0
  617. package/dist/node_modules/core-js/internals/whitespaces.js +9 -0
  618. package/dist/node_modules/core-js/internals/whitespaces.js.map +1 -0
  619. package/dist/node_modules/core-js/modules/es.array.index-of.js +21 -0
  620. package/dist/node_modules/core-js/modules/es.array.index-of.js.map +1 -0
  621. package/dist/node_modules/core-js/modules/es.array.iterator.js +47 -0
  622. package/dist/node_modules/core-js/modules/es.array.iterator.js.map +1 -0
  623. package/dist/node_modules/core-js/modules/es.array.reduce.js +22 -0
  624. package/dist/node_modules/core-js/modules/es.array.reduce.js.map +1 -0
  625. package/dist/node_modules/core-js/modules/es.array.reverse.js +19 -0
  626. package/dist/node_modules/core-js/modules/es.array.reverse.js.map +1 -0
  627. package/dist/node_modules/core-js/modules/es.promise.all.js +32 -0
  628. package/dist/node_modules/core-js/modules/es.promise.all.js.map +1 -0
  629. package/dist/node_modules/core-js/modules/es.promise.catch.js +27 -0
  630. package/dist/node_modules/core-js/modules/es.promise.catch.js.map +1 -0
  631. package/dist/node_modules/core-js/modules/es.promise.constructor.js +143 -0
  632. package/dist/node_modules/core-js/modules/es.promise.constructor.js.map +1 -0
  633. package/dist/node_modules/core-js/modules/es.promise.js +15 -0
  634. package/dist/node_modules/core-js/modules/es.promise.js.map +1 -0
  635. package/dist/node_modules/core-js/modules/es.promise.race.js +29 -0
  636. package/dist/node_modules/core-js/modules/es.promise.race.js.map +1 -0
  637. package/dist/node_modules/core-js/modules/es.promise.reject.js +20 -0
  638. package/dist/node_modules/core-js/modules/es.promise.reject.js.map +1 -0
  639. package/dist/node_modules/core-js/modules/es.promise.resolve.js +22 -0
  640. package/dist/node_modules/core-js/modules/es.promise.resolve.js.map +1 -0
  641. package/dist/node_modules/core-js/modules/es.regexp.exec.js +16 -0
  642. package/dist/node_modules/core-js/modules/es.regexp.exec.js.map +1 -0
  643. package/dist/node_modules/core-js/modules/es.regexp.to-string.js +23 -0
  644. package/dist/node_modules/core-js/modules/es.regexp.to-string.js.map +1 -0
  645. package/dist/node_modules/core-js/modules/es.string.ends-with.js +31 -0
  646. package/dist/node_modules/core-js/modules/es.string.ends-with.js.map +1 -0
  647. package/dist/node_modules/core-js/modules/es.string.includes.js +26 -0
  648. package/dist/node_modules/core-js/modules/es.string.includes.js.map +1 -0
  649. package/dist/node_modules/core-js/modules/es.string.match.js +48 -0
  650. package/dist/node_modules/core-js/modules/es.string.match.js.map +1 -0
  651. package/dist/node_modules/core-js/modules/es.string.replace.js +81 -0
  652. package/dist/node_modules/core-js/modules/es.string.replace.js.map +1 -0
  653. package/dist/node_modules/core-js/modules/es.string.split.js +75 -0
  654. package/dist/node_modules/core-js/modules/es.string.split.js.map +1 -0
  655. package/dist/node_modules/core-js/modules/es.string.starts-with.js +31 -0
  656. package/dist/node_modules/core-js/modules/es.string.starts-with.js.map +1 -0
  657. package/dist/node_modules/core-js/modules/es.string.trim.js +19 -0
  658. package/dist/node_modules/core-js/modules/es.string.trim.js.map +1 -0
  659. package/dist/node_modules/core-js/modules/web.dom-collections.iterator.js +37 -0
  660. package/dist/node_modules/core-js/modules/web.dom-collections.iterator.js.map +1 -0
  661. package/dist/node_modules/dompurify/dist/purify.es.js +217 -223
  662. package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
  663. package/dist/node_modules/fflate/esm/browser.js +295 -335
  664. package/dist/node_modules/fflate/esm/browser.js.map +1 -1
  665. package/dist/node_modules/jspdf/dist/jspdf.es.min.js +1771 -1781
  666. package/dist/node_modules/jspdf/dist/jspdf.es.min.js.map +1 -1
  667. package/dist/node_modules/raf/index.js +1 -1
  668. package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
  669. package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
  670. package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
  671. package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
  672. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
  673. package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
  674. package/dist/node_modules/uuid/dist/esm-browser/v4.js +6 -9
  675. package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
  676. package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
  677. package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
  678. package/dist/ods-component-lib.css +1 -0
  679. package/package.json +2 -1
  680. package/dist/components/antd/change/OdsChange.module.css +0 -1
  681. package/dist/components/devextreme/DataGrid/styles/OdsDataGrid.css +0 -1
  682. package/dist/components/devextreme/DxDataGrid.module.css +0 -1
  683. package/dist/components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid.module.css +0 -1
  684. package/dist/components/devextreme/OdsBatchEditDataGrid/OdsBatchEditDataGrid.module.css +0 -1
  685. package/dist/components/devextreme/OdsInlineEditDataGrid/styles.module.css +0 -1
  686. package/dist/components/devextreme/OdsMergeCellDataGrid/OdsMergeCellDataGrid.module.css +0 -1
  687. package/dist/components/devextreme/OdsServerSideDatagrid/OdsServerSideDatagrid.module.css +0 -1
  688. package/dist/components/devextreme/OdsTimelineTable/OdsTimelineTable.module.css +0 -1
  689. package/dist/components/devextreme/Transfer.module.css +0 -1
  690. package/dist/components/filter/styles.module.css +0 -1
  691. package/dist/components/filter/stylesPlus.module.css +0 -1
  692. package/dist/components/helpers/toolbarSearchBox/ToolbarSearchBox.module.css +0 -1
  693. package/dist/node_modules/antd/es/date-picker/generatePicker/SuffixIcon.js.map +0 -1
  694. package/dist/node_modules/react-phone-input-2/lib/style.css +0 -1
  695. package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
  696. package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
@@ -4,36 +4,39 @@ import { updateCSS as T, removeCSS as q } from "../../../../@rc-component/util/e
4
4
  import * as F from "react";
5
5
  import U from "../../../../@emotion/unitless/dist/unitless.browser.esm.js";
6
6
  import V, { ATTR_MARK as R, CSS_IN_JS_INSTANCE as W, ATTR_CACHE_PATH as Y } from "../StyleContext.js";
7
- import { isClientSide as O } from "../util/index.js";
8
- import { CSS_FILE_STYLE as G, existPath as J, getStyleAndHash as X } from "../util/cacheMapUtil.js";
9
- import Z from "./useGlobalCache.js";
10
- import { serialize as w, stringify as v } from "../../../../stylis/src/Serializer.js";
7
+ import { isClientSide as O, isNonNullable as G, where as J } from "../util/index.js";
8
+ import { CSS_FILE_STYLE as X, existPath as Z, getStyleAndHash as B } from "../util/cacheMapUtil.js";
9
+ import Q from "./useGlobalCache.js";
10
+ import { serialize as v, stringify as w } from "../../../../stylis/src/Serializer.js";
11
11
  import { compile as z } from "../../../../stylis/src/Parser.js";
12
- import { middleware as B, prefixer as Q } from "../../../../stylis/src/Middleware.js";
13
- import ee from "../linters/contentQuotesLinter.js";
14
- import te from "../linters/hashedAnimationLinter.js";
12
+ import { middleware as ee, prefixer as te } from "../../../../stylis/src/Middleware.js";
13
+ import re from "../linters/contentQuotesLinter.js";
14
+ import ne from "../linters/hashedAnimationLinter.js";
15
15
  const D = "_skip_check_", K = "_multi_value_";
16
- function H(t, c) {
17
- return (c ? w(z(t), B([Q, v])) : w(z(t), v)).replace(/\{%%%\:[^;];}/g, ";");
16
+ function H(r, c) {
17
+ return (c ? v(z(r), ee([te, w])) : v(z(r), w)).replace(/\{%%%\:[^;];}/g, ";");
18
18
  }
19
- function re(t) {
20
- return typeof t == "object" && t && (D in t || K in t);
19
+ function oe(r) {
20
+ return typeof r == "object" && r && (D in r || K in r);
21
21
  }
22
- function k(t, c, h) {
22
+ function k(r, c, h = "high") {
23
23
  if (!c)
24
- return t;
25
- const E = `.${c}`, C = h === "low" ? `:where(${E})` : E;
26
- return t.split(",").map((m) => {
27
- const j = m.trim().split(/\s+/);
28
- let u = j[0] || "";
29
- const N = u.match(/^\w+/)?.[0] || "";
30
- return u = `${N}${C}${u.slice(N.length)}`, [u, ...j.slice(1)].join(" ");
24
+ return r;
25
+ const C = J({
26
+ hashCls: c,
27
+ hashPriority: h
28
+ });
29
+ return r.split(",").map((f) => {
30
+ const m = f.trim().split(/\s+/);
31
+ let u = m[0] || "";
32
+ const _ = u.match(/^\w+/)?.[0] || "";
33
+ return u = `${_}${C}${u.slice(_.length)}`, [u, ...m.slice(1)].join(" ");
31
34
  }).join(",");
32
35
  }
33
- const x = (t, c = {}, {
36
+ const x = (r, c = {}, {
34
37
  root: h,
35
- injectHash: E,
36
- parentSelectors: C
38
+ injectHash: C,
39
+ parentSelectors: N
37
40
  } = {
38
41
  root: !0,
39
42
  parentSelectors: []
@@ -41,159 +44,159 @@ const x = (t, c = {}, {
41
44
  const {
42
45
  hashId: f,
43
46
  layer: m,
44
- path: j,
45
- hashPriority: u,
46
- transformers: N = [],
47
- linters: b = []
47
+ path: u,
48
+ hashPriority: _,
49
+ transformers: P = [],
50
+ linters: g = []
48
51
  } = c;
49
- let p = "", $ = {};
50
- function I(n) {
52
+ let p = "", E = {};
53
+ function b(n) {
51
54
  const a = n.getName(f);
52
- if (!$[a]) {
55
+ if (!E[a]) {
53
56
  const [o] = x(n.style, c, {
54
57
  root: !1,
55
- parentSelectors: C
58
+ parentSelectors: N
56
59
  });
57
- $[a] = `@keyframes ${n.getName(f)}${o}`;
60
+ E[a] = `@keyframes ${n.getName(f)}${o}`;
58
61
  }
59
62
  }
60
- function A(n, a = []) {
63
+ function j(n, a = []) {
61
64
  return n.forEach((o) => {
62
- Array.isArray(o) ? A(o, a) : o && a.push(o);
65
+ Array.isArray(o) ? j(o, a) : o && a.push(o);
63
66
  }), a;
64
67
  }
65
- return A(Array.isArray(t) ? t : [t]).forEach((n) => {
68
+ return j(Array.isArray(r) ? r : [r]).forEach((n) => {
66
69
  const a = typeof n == "string" && !h ? {} : n;
67
70
  if (typeof a == "string")
68
71
  p += `${a}
69
72
  `;
70
73
  else if (a._keyframe)
71
- I(a);
74
+ b(a);
72
75
  else {
73
- const o = N.reduce((s, e) => e?.visit?.(s) || s, a);
76
+ const o = P.reduce((s, e) => e?.visit?.(s) || s, a);
74
77
  Object.keys(o).forEach((s) => {
75
78
  const e = o[s];
76
- if (typeof e == "object" && e && (s !== "animationName" || !e._keyframe) && !re(e)) {
77
- let y = !1, r = s.trim(), i = !1;
78
- (h || E) && f ? r.startsWith("@") ? y = !0 : r === "&" ? r = k("", f, u) : r = k(s, f, u) : h && !f && (r === "&" || r === "") && (r = "", i = !0);
79
- const [l, _] = x(e, c, {
79
+ if (typeof e == "object" && e && (s !== "animationName" || !e._keyframe) && !oe(e)) {
80
+ let y = !1, t = s.trim(), i = !1;
81
+ (h || C) && f ? t.startsWith("@") ? y = !0 : t === "&" ? t = k("", f, _) : t = k(s, f, _) : h && !f && (t === "&" || t === "") && (t = "", i = !0);
82
+ const [l, $] = x(e, c, {
80
83
  root: i,
81
84
  injectHash: y,
82
- parentSelectors: [...C, r]
85
+ parentSelectors: [...N, t]
83
86
  });
84
- $ = {
85
- ...$,
86
- ..._
87
- }, p += `${r}${l}`;
87
+ E = {
88
+ ...E,
89
+ ...$
90
+ }, p += `${t}${l}`;
88
91
  } else {
89
92
  let y = function(i, l) {
90
- L.env.NODE_ENV !== "production" && (typeof e != "object" || !e?.[D]) && [ee, te, ...b].forEach((g) => g(i, l, {
91
- path: j,
93
+ L.env.NODE_ENV !== "production" && (typeof e != "object" || !e?.[D]) && [re, ne, ...g].forEach((A) => A(i, l, {
94
+ path: u,
92
95
  hashId: f,
93
- parentSelectors: C
96
+ parentSelectors: N
94
97
  }));
95
- const _ = i.replace(/[A-Z]/g, (g) => `-${g.toLowerCase()}`);
98
+ const $ = i.replace(/[A-Z]/g, (A) => `-${A.toLowerCase()}`);
96
99
  let S = l;
97
- !U[i] && typeof S == "number" && S !== 0 && (S = `${S}px`), i === "animationName" && l?._keyframe && (I(l), S = l.getName(f)), p += `${_}:${S};`;
100
+ !U[i] && typeof S == "number" && S !== 0 && (S = `${S}px`), i === "animationName" && l?._keyframe && (b(l), S = l.getName(f)), p += `${$}:${S};`;
98
101
  };
99
- const r = e?.value ?? e;
100
- typeof e == "object" && e?.[K] && Array.isArray(r) ? r.forEach((i) => {
102
+ const t = e?.value ?? e;
103
+ typeof e == "object" && e?.[K] && Array.isArray(t) ? t.forEach((i) => {
101
104
  y(s, i);
102
- }) : y(s, r);
105
+ }) : G(t) && y(s, t);
103
106
  }
104
107
  });
105
108
  }
106
- }), h ? m && (p && (p = `@layer ${m.name} {${p}}`), m.dependencies && ($[`@layer ${m.name}`] = m.dependencies.map((n) => `@layer ${n}, ${m.name};`).join(`
107
- `))) : p = `{${p}}`, [p, $];
109
+ }), h ? m && (p && (p = `@layer ${m.name} {${p}}`), m.dependencies && (E[`@layer ${m.name}`] = m.dependencies.map((n) => `@layer ${n}, ${m.name};`).join(`
110
+ `))) : p = `{${p}}`, [p, E];
108
111
  };
109
- function ne(t, c) {
110
- return M(`${t.join("%")}${c}`);
112
+ function se(r, c) {
113
+ return M(`${r.join("%")}${c}`);
111
114
  }
112
- const oe = "style";
113
- function $e(t, c) {
115
+ const ie = "style";
116
+ function $e(r, c) {
114
117
  const {
115
118
  path: h,
116
- hashId: E,
117
- layer: C,
119
+ hashId: C,
120
+ layer: N,
118
121
  nonce: f,
119
122
  clientOnly: m,
120
- order: j = 0
121
- } = t, {
122
- mock: u,
123
- hashPriority: N,
124
- container: b,
123
+ order: u = 0
124
+ } = r, {
125
+ mock: _,
126
+ hashPriority: P,
127
+ container: g,
125
128
  transformers: p,
126
- linters: $,
127
- cache: I,
128
- layer: A,
129
- autoPrefix: P
130
- } = F.useContext(V), n = [E || ""];
131
- A && n.push("layer"), n.push(...h);
129
+ linters: E,
130
+ cache: b,
131
+ layer: j,
132
+ autoPrefix: I
133
+ } = F.useContext(V), n = [C || ""];
134
+ j && n.push("layer"), n.push(...h);
132
135
  let a = O;
133
- L.env.NODE_ENV !== "production" && u !== void 0 && (a = u === "client"), Z(
134
- oe,
136
+ L.env.NODE_ENV !== "production" && _ !== void 0 && (a = _ === "client"), Q(
137
+ ie,
135
138
  n,
136
139
  // Create cache if needed
137
140
  () => {
138
141
  const o = n.join("|");
139
- if (J(o)) {
140
- const [l, _] = X(o);
142
+ if (Z(o)) {
143
+ const [l, $] = B(o);
141
144
  if (l)
142
- return [l, _, {}, m, j];
145
+ return [l, $, {}, m, u];
143
146
  }
144
147
  const s = c(), [e, y] = x(s, {
145
- hashId: E,
146
- hashPriority: N,
147
- layer: A ? C : void 0,
148
+ hashId: C,
149
+ hashPriority: P,
150
+ layer: j ? N : void 0,
148
151
  path: h.join("-"),
149
152
  transformers: p,
150
- linters: $
151
- }), r = H(e, P || !1), i = ne(n, r);
152
- return [r, i, y, m, j];
153
+ linters: E
154
+ }), t = H(e, I || !1), i = se(n, t);
155
+ return [t, i, y, m, u];
153
156
  },
154
157
  // Remove cache if no need
155
158
  (o, s) => {
156
159
  const [, e] = o;
157
160
  s && O && q(e, {
158
161
  mark: R,
159
- attachTo: b
162
+ attachTo: g
160
163
  });
161
164
  },
162
165
  // Effect: Inject style here
163
166
  (o) => {
164
- const [s, e, y, , r] = o;
165
- if (a && s !== G) {
167
+ const [s, e, y, , t] = o;
168
+ if (a && s !== X) {
166
169
  const i = {
167
170
  mark: R,
168
- prepend: A ? !1 : "queue",
169
- attachTo: b,
170
- priority: r
171
+ prepend: j ? !1 : "queue",
172
+ attachTo: g,
173
+ priority: t
171
174
  }, l = typeof f == "function" ? f() : f;
172
175
  l && (i.csp = {
173
176
  nonce: l
174
177
  });
175
- const _ = [], S = [];
178
+ const $ = [], S = [];
176
179
  Object.keys(y).forEach((d) => {
177
- d.startsWith("@layer") ? _.push(d) : S.push(d);
178
- }), _.forEach((d) => {
179
- T(H(y[d], P || !1), `_layer-${d}`, {
180
+ d.startsWith("@layer") ? $.push(d) : S.push(d);
181
+ }), $.forEach((d) => {
182
+ T(H(y[d], I || !1), `_layer-${d}`, {
180
183
  ...i,
181
184
  prepend: !0
182
185
  });
183
186
  });
184
- const g = T(s, e, i);
185
- g[W] = I.instanceId, L.env.NODE_ENV !== "production" && g.setAttribute(Y, n.join("|")), S.forEach((d) => {
186
- T(H(y[d], P || !1), `_effect-${d}`, i);
187
+ const A = T(s, e, i);
188
+ A[W] = b.instanceId, L.env.NODE_ENV !== "production" && A.setAttribute(Y, n.join("|")), S.forEach((d) => {
189
+ T(H(y[d], I || !1), `_effect-${d}`, i);
187
190
  });
188
191
  }
189
192
  }
190
193
  );
191
194
  }
192
195
  export {
193
- oe as STYLE_PREFIX,
196
+ ie as STYLE_PREFIX,
194
197
  $e as default,
195
198
  H as normalizeStyle,
196
199
  x as parseStyle,
197
- ne as uniqueHash
200
+ se as uniqueHash
198
201
  };
199
202
  //# sourceMappingURL=useStyleRegister.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useStyleRegister.js","sources":["../../../../../../node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js"],"sourcesContent":["import hash from '@emotion/hash';\nimport { removeCSS, updateCSS } from \"@rc-component/util/es/Dom/dynamicCSS\";\nimport * as React from 'react';\n// @ts-ignore\nimport unitless from '@emotion/unitless';\nimport { compile, middleware, prefixer, serialize, stringify } from 'stylis';\nimport { contentQuotesLinter, hashedAnimationLinter } from \"../linters\";\nimport StyleContext, { ATTR_CACHE_PATH, ATTR_MARK, CSS_IN_JS_INSTANCE } from \"../StyleContext\";\nimport { isClientSide, toStyleStr } from \"../util\";\nimport { CSS_FILE_STYLE, existPath, getStyleAndHash } from \"../util/cacheMapUtil\";\nimport useGlobalCache from \"./useGlobalCache\";\nconst SKIP_CHECK = '_skip_check_';\nconst MULTI_VALUE = '_multi_value_';\n// ============================================================================\n// == Parser ==\n// ============================================================================\n// Preprocessor style content to browser support one\nexport function normalizeStyle(styleStr, autoPrefix) {\n const serialized = autoPrefix ? serialize(compile(styleStr), middleware([prefixer, stringify])) : serialize(compile(styleStr), stringify);\n return serialized.replace(/\\{%%%\\:[^;];}/g, ';');\n}\nfunction isCompoundCSSProperty(value) {\n return typeof value === 'object' && value && (SKIP_CHECK in value || MULTI_VALUE in value);\n}\n\n// 注入 hash 值\nfunction injectSelectorHash(key, hashId, hashPriority) {\n if (!hashId) {\n return key;\n }\n const hashClassName = `.${hashId}`;\n const hashSelector = hashPriority === 'low' ? `:where(${hashClassName})` : hashClassName;\n\n // 注入 hashId\n const keys = key.split(',').map(k => {\n const fullPath = k.trim().split(/\\s+/);\n\n // 如果 Selector 第一个是 HTML Element,那我们就插到它的后面。反之,就插到最前面。\n let firstPath = fullPath[0] || '';\n const htmlElement = firstPath.match(/^\\w+/)?.[0] || '';\n firstPath = `${htmlElement}${hashSelector}${firstPath.slice(htmlElement.length)}`;\n return [firstPath, ...fullPath.slice(1)].join(' ');\n });\n return keys.join(',');\n}\n// Parse CSSObject to style content\nexport const parseStyle = (interpolation, config = {}, {\n root,\n injectHash,\n parentSelectors\n} = {\n root: true,\n parentSelectors: []\n}) => {\n const {\n hashId,\n layer,\n path,\n hashPriority,\n transformers = [],\n linters = []\n } = config;\n let styleStr = '';\n let effectStyle = {};\n function parseKeyframes(keyframes) {\n const animationName = keyframes.getName(hashId);\n if (!effectStyle[animationName]) {\n const [parsedStr] = parseStyle(keyframes.style, config, {\n root: false,\n parentSelectors\n });\n effectStyle[animationName] = `@keyframes ${keyframes.getName(hashId)}${parsedStr}`;\n }\n }\n function flattenList(list, fullList = []) {\n list.forEach(item => {\n if (Array.isArray(item)) {\n flattenList(item, fullList);\n } else if (item) {\n fullList.push(item);\n }\n });\n return fullList;\n }\n const flattenStyleList = flattenList(Array.isArray(interpolation) ? interpolation : [interpolation]);\n flattenStyleList.forEach(originStyle => {\n // Only root level can use raw string\n const style = typeof originStyle === 'string' && !root ? {} : originStyle;\n if (typeof style === 'string') {\n styleStr += `${style}\\n`;\n } else if (style._keyframe) {\n // Keyframe\n parseKeyframes(style);\n } else {\n const mergedStyle = transformers.reduce((prev, trans) => trans?.visit?.(prev) || prev, style);\n\n // Normal CSSObject\n Object.keys(mergedStyle).forEach(key => {\n const value = mergedStyle[key];\n if (typeof value === 'object' && value && (key !== 'animationName' || !value._keyframe) && !isCompoundCSSProperty(value)) {\n let subInjectHash = false;\n\n // 当成嵌套对象来处理\n let mergedKey = key.trim();\n // Whether treat child as root. In most case it is false.\n let nextRoot = false;\n\n // 拆分多个选择器\n if ((root || injectHash) && hashId) {\n if (mergedKey.startsWith('@')) {\n // 略过媒体查询,交给子节点继续插入 hashId\n subInjectHash = true;\n } else if (mergedKey === '&') {\n // 抹掉 root selector 上的单个 &\n mergedKey = injectSelectorHash('', hashId, hashPriority);\n } else {\n // 注入 hashId\n mergedKey = injectSelectorHash(key, hashId, hashPriority);\n }\n } else if (root && !hashId && (mergedKey === '&' || mergedKey === '')) {\n // In case of `{ '&': { a: { color: 'red' } } }` or `{ '': { a: { color: 'red' } } }` without hashId,\n // we will get `&{a:{color:red;}}` or `{a:{color:red;}}` string for stylis to compile.\n // But it does not conform to stylis syntax,\n // and finally we will get `{color:red;}` as css, which is wrong.\n // So we need to remove key in root, and treat child `{ a: { color: 'red' } }` as root.\n mergedKey = '';\n nextRoot = true;\n }\n const [parsedStr, childEffectStyle] = parseStyle(value, config, {\n root: nextRoot,\n injectHash: subInjectHash,\n parentSelectors: [...parentSelectors, mergedKey]\n });\n effectStyle = {\n ...effectStyle,\n ...childEffectStyle\n };\n styleStr += `${mergedKey}${parsedStr}`;\n } else {\n function appendStyle(cssKey, cssValue) {\n if (process.env.NODE_ENV !== 'production' && (typeof value !== 'object' || !value?.[SKIP_CHECK])) {\n [contentQuotesLinter, hashedAnimationLinter, ...linters].forEach(linter => linter(cssKey, cssValue, {\n path,\n hashId,\n parentSelectors\n }));\n }\n\n // 如果是样式则直接插入\n const styleName = cssKey.replace(/[A-Z]/g, match => `-${match.toLowerCase()}`);\n\n // Auto suffix with px\n let formatValue = cssValue;\n if (!unitless[cssKey] && typeof formatValue === 'number' && formatValue !== 0) {\n formatValue = `${formatValue}px`;\n }\n\n // handle animationName & Keyframe value\n if (cssKey === 'animationName' && cssValue?._keyframe) {\n parseKeyframes(cssValue);\n formatValue = cssValue.getName(hashId);\n }\n styleStr += `${styleName}:${formatValue};`;\n }\n const actualValue = value?.value ?? value;\n if (typeof value === 'object' && value?.[MULTI_VALUE] && Array.isArray(actualValue)) {\n actualValue.forEach(item => {\n appendStyle(key, item);\n });\n } else {\n appendStyle(key, actualValue);\n }\n }\n });\n }\n });\n if (!root) {\n styleStr = `{${styleStr}}`;\n } else if (layer) {\n // fixme: https://github.com/thysultan/stylis/pull/339\n if (styleStr) {\n styleStr = `@layer ${layer.name} {${styleStr}}`;\n }\n if (layer.dependencies) {\n effectStyle[`@layer ${layer.name}`] = layer.dependencies.map(deps => `@layer ${deps}, ${layer.name};`).join('\\n');\n }\n }\n return [styleStr, effectStyle];\n};\n\n// ============================================================================\n// == Register ==\n// ============================================================================\nexport function uniqueHash(path, styleStr) {\n return hash(`${path.join('%')}${styleStr}`);\n}\nexport const STYLE_PREFIX = 'style';\n/**\n * Register a style to the global style sheet.\n */\nexport default function useStyleRegister(info, styleFn) {\n const {\n path,\n hashId,\n layer,\n nonce,\n clientOnly,\n order = 0\n } = info;\n const {\n mock,\n hashPriority,\n container,\n transformers,\n linters,\n cache,\n layer: enableLayer,\n autoPrefix\n } = React.useContext(StyleContext);\n const fullPath = [hashId || ''];\n if (enableLayer) {\n fullPath.push('layer');\n }\n fullPath.push(...path);\n\n // Check if need insert style\n let isMergedClientSide = isClientSide;\n if (process.env.NODE_ENV !== 'production' && mock !== undefined) {\n isMergedClientSide = mock === 'client';\n }\n useGlobalCache(STYLE_PREFIX, fullPath,\n // Create cache if needed\n () => {\n const cachePath = fullPath.join('|');\n\n // Get style from SSR inline style directly\n if (existPath(cachePath)) {\n const [inlineCacheStyleStr, styleHash] = getStyleAndHash(cachePath);\n if (inlineCacheStyleStr) {\n return [inlineCacheStyleStr, styleHash, {}, clientOnly, order];\n }\n }\n\n // Generate style\n const styleObj = styleFn();\n const [parsedStyle, effectStyle] = parseStyle(styleObj, {\n hashId,\n hashPriority,\n layer: enableLayer ? layer : undefined,\n path: path.join('-'),\n transformers,\n linters\n });\n const styleStr = normalizeStyle(parsedStyle, autoPrefix || false);\n const styleId = uniqueHash(fullPath, styleStr);\n return [styleStr, styleId, effectStyle, clientOnly, order];\n },\n // Remove cache if no need\n (cacheValue, fromHMR) => {\n const [, styleId] = cacheValue;\n if (fromHMR && isClientSide) {\n removeCSS(styleId, {\n mark: ATTR_MARK,\n attachTo: container\n });\n }\n },\n // Effect: Inject style here\n cacheValue => {\n const [styleStr, styleId, effectStyle,, priority] = cacheValue;\n if (isMergedClientSide && styleStr !== CSS_FILE_STYLE) {\n const mergedCSSConfig = {\n mark: ATTR_MARK,\n prepend: enableLayer ? false : 'queue',\n attachTo: container,\n priority\n };\n const nonceStr = typeof nonce === 'function' ? nonce() : nonce;\n if (nonceStr) {\n mergedCSSConfig.csp = {\n nonce: nonceStr\n };\n }\n\n // ================= Split Effect Style =================\n // We will split effectStyle here since @layer should be at the top level\n const effectLayerKeys = [];\n const effectRestKeys = [];\n Object.keys(effectStyle).forEach(key => {\n if (key.startsWith('@layer')) {\n effectLayerKeys.push(key);\n } else {\n effectRestKeys.push(key);\n }\n });\n\n // ================= Inject Layer Style =================\n // Inject layer style\n effectLayerKeys.forEach(effectKey => {\n updateCSS(normalizeStyle(effectStyle[effectKey], autoPrefix || false), `_layer-${effectKey}`, {\n ...mergedCSSConfig,\n prepend: true\n });\n });\n\n // ==================== Inject Style ====================\n // Inject style\n const style = updateCSS(styleStr, styleId, mergedCSSConfig);\n style[CSS_IN_JS_INSTANCE] = cache.instanceId;\n\n // Debug usage. Dev only\n if (process.env.NODE_ENV !== 'production') {\n style.setAttribute(ATTR_CACHE_PATH, fullPath.join('|'));\n }\n\n // ================ Inject Effect Style =================\n // Inject client side effect style\n effectRestKeys.forEach(effectKey => {\n updateCSS(normalizeStyle(effectStyle[effectKey], autoPrefix || false), `_effect-${effectKey}`, mergedCSSConfig);\n });\n }\n });\n}\nexport const extract = (cache, effectStyles, options) => {\n const [styleStr, styleId, effectStyle, clientOnly, order] = cache;\n const {\n plain,\n autoPrefix\n } = options || {};\n\n // Skip client only style\n if (clientOnly) {\n return null;\n }\n let keyStyleText = styleStr;\n\n // ====================== Share ======================\n // Used for @rc-component/util\n const sharedAttrs = {\n 'data-rc-order': 'prependQueue',\n 'data-rc-priority': `${order}`\n };\n\n // ====================== Style ======================\n keyStyleText = toStyleStr(styleStr, undefined, styleId, sharedAttrs, plain);\n\n // =============== Create effect style ===============\n if (effectStyle) {\n Object.keys(effectStyle).forEach(effectKey => {\n // Effect style can be reused\n if (!effectStyles[effectKey]) {\n effectStyles[effectKey] = true;\n const effectStyleStr = normalizeStyle(effectStyle[effectKey], autoPrefix || false);\n const effectStyleHTML = toStyleStr(effectStyleStr, undefined, `_effect-${effectKey}`, sharedAttrs, plain);\n if (effectKey.startsWith('@layer')) {\n keyStyleText = effectStyleHTML + keyStyleText;\n } else {\n keyStyleText += effectStyleHTML;\n }\n }\n });\n }\n return [order, styleId, keyStyleText];\n};"],"names":["SKIP_CHECK","MULTI_VALUE","normalizeStyle","styleStr","autoPrefix","serialize","compile","middleware","prefixer","stringify","isCompoundCSSProperty","value","injectSelectorHash","key","hashId","hashPriority","hashClassName","hashSelector","k","fullPath","firstPath","htmlElement","parseStyle","interpolation","config","root","injectHash","parentSelectors","layer","path","transformers","linters","effectStyle","parseKeyframes","keyframes","animationName","parsedStr","flattenList","list","fullList","item","originStyle","style","mergedStyle","prev","trans","subInjectHash","mergedKey","nextRoot","childEffectStyle","appendStyle","cssKey","cssValue","process","contentQuotesLinter","hashedAnimationLinter","linter","styleName","match","formatValue","unitless","actualValue","deps","uniqueHash","hash","STYLE_PREFIX","useStyleRegister","info","styleFn","nonce","clientOnly","order","mock","container","cache","enableLayer","React","StyleContext","isMergedClientSide","isClientSide","useGlobalCache","cachePath","existPath","inlineCacheStyleStr","styleHash","getStyleAndHash","styleObj","parsedStyle","styleId","cacheValue","fromHMR","removeCSS","ATTR_MARK","priority","CSS_FILE_STYLE","mergedCSSConfig","nonceStr","effectLayerKeys","effectRestKeys","effectKey","updateCSS","CSS_IN_J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ACpB,OAAOC;AAAA,QACjB;AAKM,cAAMC,IAAkB,CAAA,GAClBC,IAAiB,CAAA;AACvB,eAAO,KAAKlE,CAAW,EAAE,QAAQ,CAAAnB,MAAO;AACtC,UAAIA,EAAI,WAAW,QAAQ,IACzBoF,EAAgB,KAAKpF,CAAG,IAExBqF,EAAe,KAAKrF,CAAG;AAAA,QAE3B,CAAC,GAIDoF,EAAgB,QAAQ,CAAAE,MAAa;AACnC,UAAAC,EAAUlG,EAAe8B,EAAYmE,CAAS,GAAG/F,KAAc,EAAK,GAAG,UAAU+F,CAAS,IAAI;AAAA,YAC5F,GAAGJ;AAAA,YACH,SAAS;AAAA,UACnB,CAAS;AAAA,QACH,CAAC;AAID,cAAMrD,IAAQ0D,EAAUjG,GAAUqF,GAASO,CAAe;AAC1D,QAAArD,EAAM2D,CAAkB,IAAI3B,EAAM,YAG9BrB,EAAQ,IAAI,aAAa,gBAC3BX,EAAM,aAAa4D,GAAiBnF,EAAS,KAAK,GAAG,CAAC,GAKxD+E,EAAe,QAAQ,CAAAC,MAAa;AAClC,UAAAC,EAAUlG,EAAe8B,EAAYmE,CAAS,GAAG/F,KAAc,EAAK,GAAG,WAAW+F,CAAS,IAAIJ,CAAe;AAAA,QAChH,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EAAC;AACH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useStyleRegister.js","sources":["../../../../../../node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js"],"sourcesContent":["import hash from '@emotion/hash';\nimport { removeCSS, updateCSS } from \"@rc-component/util/es/Dom/dynamicCSS\";\nimport * as React from 'react';\n// @ts-ignore\nimport unitless from '@emotion/unitless';\nimport { compile, middleware, prefixer, serialize, stringify } from 'stylis';\nimport { contentQuotesLinter, hashedAnimationLinter } from \"../linters\";\nimport StyleContext, { ATTR_CACHE_PATH, ATTR_MARK, CSS_IN_JS_INSTANCE } from \"../StyleContext\";\nimport { isClientSide, isNonNullable, toStyleStr, where } from \"../util\";\nimport { CSS_FILE_STYLE, existPath, getStyleAndHash } from \"../util/cacheMapUtil\";\nimport useGlobalCache from \"./useGlobalCache\";\nconst SKIP_CHECK = '_skip_check_';\nconst MULTI_VALUE = '_multi_value_';\n// ============================================================================\n// == Parser ==\n// ============================================================================\n// Preprocessor style content to browser support one\nexport function normalizeStyle(styleStr, autoPrefix) {\n const serialized = autoPrefix ? serialize(compile(styleStr), middleware([prefixer, stringify])) : serialize(compile(styleStr), stringify);\n return serialized.replace(/\\{%%%\\:[^;];}/g, ';');\n}\nfunction isCompoundCSSProperty(value) {\n return typeof value === 'object' && value && (SKIP_CHECK in value || MULTI_VALUE in value);\n}\n\n// 注入 hash 值\nfunction injectSelectorHash(key, hashId, hashPriority = 'high') {\n if (!hashId) {\n return key;\n }\n const hashSelector = where({\n hashCls: hashId,\n hashPriority\n });\n\n // 注入 hashId\n const keys = key.split(',').map(k => {\n const fullPath = k.trim().split(/\\s+/);\n\n // 如果 Selector 第一个是 HTML Element,那我们就插到它的后面。反之,就插到最前面。\n let firstPath = fullPath[0] || '';\n const htmlElement = firstPath.match(/^\\w+/)?.[0] || '';\n firstPath = `${htmlElement}${hashSelector}${firstPath.slice(htmlElement.length)}`;\n return [firstPath, ...fullPath.slice(1)].join(' ');\n });\n return keys.join(',');\n}\n// Parse CSSObject to style content\nexport const parseStyle = (interpolation, config = {}, {\n root,\n injectHash,\n parentSelectors\n} = {\n root: true,\n parentSelectors: []\n}) => {\n const {\n hashId,\n layer,\n path,\n hashPriority,\n transformers = [],\n linters = []\n } = config;\n let styleStr = '';\n let effectStyle = {};\n function parseKeyframes(keyframes) {\n const animationName = keyframes.getName(hashId);\n if (!effectStyle[animationName]) {\n const [parsedStr] = parseStyle(keyframes.style, config, {\n root: false,\n parentSelectors\n });\n effectStyle[animationName] = `@keyframes ${keyframes.getName(hashId)}${parsedStr}`;\n }\n }\n function flattenList(list, fullList = []) {\n list.forEach(item => {\n if (Array.isArray(item)) {\n flattenList(item, fullList);\n } else if (item) {\n fullList.push(item);\n }\n });\n return fullList;\n }\n const flattenStyleList = flattenList(Array.isArray(interpolation) ? interpolation : [interpolation]);\n flattenStyleList.forEach(originStyle => {\n // Only root level can use raw string\n const style = typeof originStyle === 'string' && !root ? {} : originStyle;\n if (typeof style === 'string') {\n styleStr += `${style}\\n`;\n } else if (style._keyframe) {\n // Keyframe\n parseKeyframes(style);\n } else {\n const mergedStyle = transformers.reduce((prev, trans) => trans?.visit?.(prev) || prev, style);\n\n // Normal CSSObject\n Object.keys(mergedStyle).forEach(key => {\n const value = mergedStyle[key];\n if (typeof value === 'object' && value && (key !== 'animationName' || !value._keyframe) && !isCompoundCSSProperty(value)) {\n let subInjectHash = false;\n\n // 当成嵌套对象来处理\n let mergedKey = key.trim();\n // Whether treat child as root. In most case it is false.\n let nextRoot = false;\n\n // 拆分多个选择器\n if ((root || injectHash) && hashId) {\n if (mergedKey.startsWith('@')) {\n // 略过媒体查询,交给子节点继续插入 hashId\n subInjectHash = true;\n } else if (mergedKey === '&') {\n // 抹掉 root selector 上的单个 &\n mergedKey = injectSelectorHash('', hashId, hashPriority);\n } else {\n // 注入 hashId\n mergedKey = injectSelectorHash(key, hashId, hashPriority);\n }\n } else if (root && !hashId && (mergedKey === '&' || mergedKey === '')) {\n // In case of `{ '&': { a: { color: 'red' } } }` or `{ '': { a: { color: 'red' } } }` without hashId,\n // we will get `&{a:{color:red;}}` or `{a:{color:red;}}` string for stylis to compile.\n // But it does not conform to stylis syntax,\n // and finally we will get `{color:red;}` as css, which is wrong.\n // So we need to remove key in root, and treat child `{ a: { color: 'red' } }` as root.\n mergedKey = '';\n nextRoot = true;\n }\n const [parsedStr, childEffectStyle] = parseStyle(value, config, {\n root: nextRoot,\n injectHash: subInjectHash,\n parentSelectors: [...parentSelectors, mergedKey]\n });\n effectStyle = {\n ...effectStyle,\n ...childEffectStyle\n };\n styleStr += `${mergedKey}${parsedStr}`;\n } else {\n function appendStyle(cssKey, cssValue) {\n if (process.env.NODE_ENV !== 'production' && (typeof value !== 'object' || !value?.[SKIP_CHECK])) {\n [contentQuotesLinter, hashedAnimationLinter, ...linters].forEach(linter => linter(cssKey, cssValue, {\n path,\n hashId,\n parentSelectors\n }));\n }\n\n // 如果是样式则直接插入\n const styleName = cssKey.replace(/[A-Z]/g, match => `-${match.toLowerCase()}`);\n\n // Auto suffix with px\n let formatValue = cssValue;\n if (!unitless[cssKey] && typeof formatValue === 'number' && formatValue !== 0) {\n formatValue = `${formatValue}px`;\n }\n\n // handle animationName & Keyframe value\n if (cssKey === 'animationName' && cssValue?._keyframe) {\n parseKeyframes(cssValue);\n formatValue = cssValue.getName(hashId);\n }\n styleStr += `${styleName}:${formatValue};`;\n }\n const actualValue = value?.value ?? value;\n if (typeof value === 'object' && value?.[MULTI_VALUE] && Array.isArray(actualValue)) {\n actualValue.forEach(item => {\n appendStyle(key, item);\n });\n } else {\n if (isNonNullable(actualValue)) {\n appendStyle(key, actualValue);\n }\n }\n }\n });\n }\n });\n if (!root) {\n styleStr = `{${styleStr}}`;\n } else if (layer) {\n // fixme: https://github.com/thysultan/stylis/pull/339\n if (styleStr) {\n styleStr = `@layer ${layer.name} {${styleStr}}`;\n }\n if (layer.dependencies) {\n effectStyle[`@layer ${layer.name}`] = layer.dependencies.map(deps => `@layer ${deps}, ${layer.name};`).join('\\n');\n }\n }\n return [styleStr, effectStyle];\n};\n\n// ============================================================================\n// == Register ==\n// ============================================================================\nexport function uniqueHash(path, styleStr) {\n return hash(`${path.join('%')}${styleStr}`);\n}\nexport const STYLE_PREFIX = 'style';\n/**\n * Register a style to the global style sheet.\n */\nexport default function useStyleRegister(info, styleFn) {\n const {\n path,\n hashId,\n layer,\n nonce,\n clientOnly,\n order = 0\n } = info;\n const {\n mock,\n hashPriority,\n container,\n transformers,\n linters,\n cache,\n layer: enableLayer,\n autoPrefix\n } = React.useContext(StyleContext);\n const fullPath = [hashId || ''];\n if (enableLayer) {\n fullPath.push('layer');\n }\n fullPath.push(...path);\n\n // Check if need insert style\n let isMergedClientSide = isClientSide;\n if (process.env.NODE_ENV !== 'production' && mock !== undefined) {\n isMergedClientSide = mock === 'client';\n }\n useGlobalCache(STYLE_PREFIX, fullPath,\n // Create cache if needed\n () => {\n const cachePath = fullPath.join('|');\n\n // Get style from SSR inline style directly\n if (existPath(cachePath)) {\n const [inlineCacheStyleStr, styleHash] = getStyleAndHash(cachePath);\n if (inlineCacheStyleStr) {\n return [inlineCacheStyleStr, styleHash, {}, clientOnly, order];\n }\n }\n\n // Generate style\n const styleObj = styleFn();\n const [parsedStyle, effectStyle] = parseStyle(styleObj, {\n hashId,\n hashPriority,\n layer: enableLayer ? layer : undefined,\n path: path.join('-'),\n transformers,\n linters\n });\n const styleStr = normalizeStyle(parsedStyle, autoPrefix || false);\n const styleId = uniqueHash(fullPath, styleStr);\n return [styleStr, styleId, effectStyle, clientOnly, order];\n },\n // Remove cache if no need\n (cacheValue, fromHMR) => {\n const [, styleId] = cacheValue;\n if (fromHMR && isClientSide) {\n removeCSS(styleId, {\n mark: ATTR_MARK,\n attachTo: container\n });\n }\n },\n // Effect: Inject style here\n cacheValue => {\n const [styleStr, styleId, effectStyle,, priority] = cacheValue;\n if (isMergedClientSide && styleStr !== CSS_FILE_STYLE) {\n const mergedCSSConfig = {\n mark: ATTR_MARK,\n prepend: enableLayer ? false : 'queue',\n attachTo: container,\n priority\n };\n const nonceStr = typeof nonce === 'function' ? nonce() : nonce;\n if (nonceStr) {\n mergedCSSConfig.csp = {\n nonce: nonceStr\n };\n }\n\n // ================= Split Effect Style =================\n // We will split effectStyle here since @layer should be at the top level\n const effectLayerKeys = [];\n const effectRestKeys = [];\n Object.keys(effectStyle).forEach(key => {\n if (key.startsWith('@layer')) {\n effectLayerKeys.push(key);\n } else {\n effectRestKeys.push(key);\n }\n });\n\n // ================= Inject Layer Style =================\n // Inject layer style\n effectLayerKeys.forEach(effectKey => {\n updateCSS(normalizeStyle(effectStyle[effectKey], autoPrefix || false), `_layer-${effectKey}`, {\n ...mergedCSSConfig,\n prepend: true\n });\n });\n\n // ==================== Inject Style ====================\n // Inject style\n const style = updateCSS(styleStr, styleId, mergedCSSConfig);\n style[CSS_IN_JS_INSTANCE] = cache.instanceId;\n\n // Debug usage. Dev only\n if (process.env.NODE_ENV !== 'production') {\n style.setAttribute(ATTR_CACHE_PATH, fullPath.join('|'));\n }\n\n // ================ Inject Effect Style =================\n // Inject client side effect style\n effectRestKeys.forEach(effectKey => {\n updateCSS(normalizeStyle(effectStyle[effectKey], autoPrefix || false), `_effect-${effectKey}`, mergedCSSConfig);\n });\n }\n });\n}\nexport const extract = (cache, effectStyles, options) => {\n const [styleStr, styleId, effectStyle, clientOnly, order] = cache;\n const {\n plain,\n autoPrefix\n } = options || {};\n\n // Skip client only style\n if (clientOnly) {\n return null;\n }\n let keyStyleText = styleStr;\n\n // ====================== Share ======================\n // Used for @rc-component/util\n const sharedAttrs = {\n 'data-rc-order': 'prependQueue',\n 'data-rc-priority': `${order}`\n };\n\n // ====================== Style ======================\n keyStyleText = toStyleStr(styleStr, undefined, styleId, sharedAttrs, plain);\n\n // =============== Create effect style ===============\n if (effectStyle) {\n Object.keys(effectStyle).forEach(effectKey => {\n // Effect style can be reused\n if (!effectStyles[effectKey]) {\n effectStyles[effectKey] = true;\n const effectStyleStr = normalizeStyle(effectStyle[effectKey], autoPrefix || false);\n const effectStyleHTML = toStyleStr(effectStyleStr, undefined, `_effect-${effectKey}`, sharedAttrs, plain);\n if (effectKey.startsWith('@layer')) {\n keyStyleText = effectStyleHTML + keyStyleText;\n } else {\n keyStyleText += effectStyleHTML;\n }\n }\n });\n }\n return [order, styleId, keyStyleText];\n};"],"names":["SKIP_CHECK","MULTI_VALUE","normalizeStyle","styleStr","autoPrefix","serialize","compile","middleware","prefixer","stringify","isCompoundCSSProperty","value","injectSelectorHash","key","hashId","hashPriority","hashSelector","where","k","fullPath","firstPath","htmlElement","parseStyle","interpolation","config","root","injectHash","parentSelectors","layer","path","transformers","linters","effectStyle","parseKeyframes","keyframes","animationName","parsedStr","flattenList","list","fullList","item","originStyle","style","mergedStyle","prev","trans","subInjectHash","mergedKey","nextRoot","childEffectStyle","appendStyle","cssKey","cssValue","process","contentQuotesLinter","hashedAnimationLinter","linter","styleName","match","formatValue","unitless","actualValue","isNonNullable","deps","uniqueHash","hash","STYLE_PREFIX","useStyleRegister","info","styleFn","nonce","clientOnly","order","mock","container","cache","enableLayer","React","StyleContext","isMergedClientSide","isClientSide","useGlobalCache","cachePath","existPath","inlineCacheStyleStr","styleHash","getStyleAndHash","styleObj","parsedStyle","styleId","cacheValue","fromHMR","removeCSS","ATTR_MARK","priority","CSS_FILE_STYLE","mergedCSSConfig","nonceStr","effectLayerKeys","effectRestKeys","effectKey","updateCSS","CSS_IN_JS_INSTANCE","ATTR_CACHE_PATH"],"mappings":";;;;;;;;;;;;;;AAWA,MAAMA,IAAa,gBACbC,IAAc;AAKb,SAASC,EAAeC,GAAUC,GAAY;AAEnD,UADmBA,IAAaC,EAAUC,EAAQH,CAAQ,GAAGI,GAAW,CAACC,IAAUC,CAAS,CAAC,CAAC,IAAIJ,EAAUC,EAAQH,CAAQ,GAAGM,CAAS,GACtH,QAAQ,kBAAkB,GAAG;AACjD;AACA,SAASC,GAAsBC,GAAO;AACpC,SAAO,OAAOA,KAAU,YAAYA,MAAUX,KAAcW,KAASV,KAAeU;AACtF;AAGA,SAASC,EAAmBC,GAAKC,GAAQC,IAAe,QAAQ;AAC9D,MAAI,CAACD;AACH,WAAOD;AAET,QAAMG,IAAeC,EAAM;AAAA,IACzB,SAASH;AAAA,IACT,cAAAC;AAAA,EACJ,CAAG;AAYD,SATaF,EAAI,MAAM,GAAG,EAAE,IAAI,CAAAK,MAAK;AACnC,UAAMC,IAAWD,EAAE,KAAI,EAAG,MAAM,KAAK;AAGrC,QAAIE,IAAYD,EAAS,CAAC,KAAK;AAC/B,UAAME,IAAcD,EAAU,MAAM,MAAM,IAAI,CAAC,KAAK;AACpD,WAAAA,IAAY,GAAGC,CAAW,GA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IJ,CAAe;AAAA,QAChH,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EAAC;AACH;","x_google_ignoreList":[0]}
@@ -1,46 +1,48 @@
1
1
  import c from "../../../../@emotion/hash/dist/hash.browser.esm.js";
2
- import a from "../../../../@rc-component/util/es/Dom/canUseDom.js";
3
- import u from "../theme/Theme.js";
4
- const l = /* @__PURE__ */ new WeakMap(), s = {};
5
- function w(t, e) {
6
- let r = l;
7
- for (let n = 0; n < e.length; n += 1) {
8
- const o = e[n];
2
+ import u from "../../../../@rc-component/util/es/Dom/canUseDom.js";
3
+ import l from "../theme/Theme.js";
4
+ const a = /* @__PURE__ */ new WeakMap(), s = {};
5
+ function w(e, t) {
6
+ let r = a;
7
+ for (let n = 0; n < t.length; n += 1) {
8
+ const o = t[n];
9
9
  r.has(o) || r.set(o, /* @__PURE__ */ new WeakMap()), r = r.get(o);
10
10
  }
11
- return r.has(s) || r.set(s, t()), r.get(s);
11
+ return r.has(s) || r.set(s, e()), r.get(s);
12
12
  }
13
13
  const i = /* @__PURE__ */ new WeakMap();
14
- function f(t) {
15
- let e = i.get(t) || "";
16
- return e || (Object.keys(t).forEach((r) => {
17
- const n = t[r];
18
- e += r, n instanceof u ? e += n.id : n && typeof n == "object" ? e += f(n) : e += n;
19
- }), e = c(e), i.set(t, e)), e;
14
+ function f(e) {
15
+ let t = i.get(e) || "";
16
+ return t || (Object.keys(e).forEach((r) => {
17
+ const n = e[r];
18
+ t += r, n instanceof l ? t += n.id : n && typeof n == "object" ? t += f(n) : t += n;
19
+ }), t = c(t), i.set(e, t)), t;
20
20
  }
21
- function $(t, e) {
22
- return c(`${e}_${f(t)}`);
21
+ function $(e, t) {
22
+ return c(`${t}_${f(e)}`);
23
23
  }
24
- const g = a();
25
- function k(t) {
26
- return typeof t == "number" ? `${t}px` : t;
24
+ const b = u();
25
+ function d(e) {
26
+ return typeof e == "number" ? `${e}px` : e;
27
27
  }
28
- function y(t) {
28
+ function g(e) {
29
29
  const {
30
- hashCls: e,
30
+ hashCls: t,
31
31
  hashPriority: r = "low"
32
- } = t || {};
33
- if (!e)
32
+ } = e || {};
33
+ if (!t)
34
34
  return "";
35
- const n = `.${e}`;
35
+ const n = `.${t}`;
36
36
  return r === "low" ? `:where(${n})` : n;
37
37
  }
38
+ const k = (e) => e != null;
38
39
  export {
39
40
  f as flattenToken,
40
- g as isClientSide,
41
+ b as isClientSide,
42
+ k as isNonNullable,
41
43
  w as memoResult,
42
44
  $ as token2key,
43
- k as unit,
44
- y as where
45
+ d as unit,
46
+ g as where
45
47
  };
46
48
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/@ant-design/cssinjs/es/util/index.js"],"sourcesContent":["import hash from '@emotion/hash';\nimport canUseDom from \"@rc-component/util/es/Dom/canUseDom\";\nimport { removeCSS, updateCSS } from \"@rc-component/util/es/Dom/dynamicCSS\";\nimport { ATTR_MARK, ATTR_TOKEN } from \"../StyleContext\";\nimport { Theme } from \"../theme\";\n\n// Create a cache for memo concat\n\nconst resultCache = new WeakMap();\nconst RESULT_VALUE = {};\nexport function memoResult(callback, deps) {\n let current = resultCache;\n for (let i = 0; i < deps.length; i += 1) {\n const dep = deps[i];\n if (!current.has(dep)) {\n current.set(dep, new WeakMap());\n }\n current = current.get(dep);\n }\n if (!current.has(RESULT_VALUE)) {\n current.set(RESULT_VALUE, callback());\n }\n return current.get(RESULT_VALUE);\n}\n\n// Create a cache here to avoid always loop generate\nconst flattenTokenCache = new WeakMap();\n\n/**\n * Flatten token to string, this will auto cache the result when token not change\n */\nexport function flattenToken(token) {\n let str = flattenTokenCache.get(token) || '';\n if (!str) {\n Object.keys(token).forEach(key => {\n const value = token[key];\n str += key;\n if (value instanceof Theme) {\n str += value.id;\n } else if (value && typeof value === 'object') {\n str += flattenToken(value);\n } else {\n str += value;\n }\n });\n\n // https://github.com/ant-design/ant-design/issues/48386\n // Should hash the string to avoid style tag name too long\n str = hash(str);\n\n // Put in cache\n flattenTokenCache.set(token, str);\n }\n return str;\n}\n\n/**\n * Convert derivative token to key string\n */\nexport function token2key(token, salt) {\n return hash(`${salt}_${flattenToken(token)}`);\n}\nconst randomSelectorKey = `random-${Date.now()}-${Math.random()}`.replace(/\\./g, '');\n\n// Magic `content` for detect selector support\nconst checkContent = '_bAmBoO_';\nfunction supportSelector(styleStr, handleElement, supportCheck) {\n if (canUseDom()) {\n updateCSS(styleStr, randomSelectorKey);\n const ele = document.createElement('div');\n ele.style.position = 'fixed';\n ele.style.left = '0';\n ele.style.top = '0';\n handleElement?.(ele);\n document.body.appendChild(ele);\n if (process.env.NODE_ENV !== 'production') {\n ele.innerHTML = 'Test';\n ele.style.zIndex = '9999999';\n }\n const support = supportCheck ? supportCheck(ele) : getComputedStyle(ele).content?.includes(checkContent);\n ele.parentNode?.removeChild(ele);\n removeCSS(randomSelectorKey);\n return support;\n }\n return false;\n}\nlet canLayer = undefined;\nexport function supportLayer() {\n if (canLayer === undefined) {\n canLayer = supportSelector(`@layer ${randomSelectorKey} { .${randomSelectorKey} { content: \"${checkContent}\"!important; } }`, ele => {\n ele.className = randomSelectorKey;\n });\n }\n return canLayer;\n}\nlet canWhere = undefined;\nexport function supportWhere() {\n if (canWhere === undefined) {\n canWhere = supportSelector(`:where(.${randomSelectorKey}) { content: \"${checkContent}\"!important; }`, ele => {\n ele.className = randomSelectorKey;\n });\n }\n return canWhere;\n}\nlet canLogic = undefined;\nexport function supportLogicProps() {\n if (canLogic === undefined) {\n canLogic = supportSelector(`.${randomSelectorKey} { inset-block: 93px !important; }`, ele => {\n ele.className = randomSelectorKey;\n }, ele => getComputedStyle(ele).bottom === '93px');\n }\n return canLogic;\n}\nexport const isClientSide = canUseDom();\nexport function unit(num) {\n if (typeof num === 'number') {\n return `${num}px`;\n }\n return num;\n}\nexport function toStyleStr(style, tokenKey, styleId, customizeAttrs = {}, plain = false) {\n if (plain) {\n return style;\n }\n const attrs = {\n ...customizeAttrs,\n [ATTR_TOKEN]: tokenKey,\n [ATTR_MARK]: styleId\n };\n const attrStr = Object.keys(attrs).map(attr => {\n const val = attrs[attr];\n return val ? `${attr}=\"${val}\"` : null;\n }).filter(v => v).join(' ');\n return `<style ${attrStr}>${style}</style>`;\n}\nexport function where(options) {\n const {\n hashCls,\n hashPriority = 'low'\n } = options || {};\n if (!hashCls) {\n return '';\n }\n const hashSelector = `.${hashCls}`;\n return hashPriority === 'low' ? `:where(${hashSelector})` : hashSelector;\n}"],"names":["resultCache","RESULT_VALUE","memoResult","callback","deps","current","i","dep","flattenTokenCache","flattenToken","token","str","key","value","Theme","hash","token2key","salt","isClientSide","canUseDom","unit","num","where","options","hashCls","hashPriority","hashSelector"],"mappings":";;;AAQA,MAAMA,IAAc,oBAAI,QAAO,GACzBC,IAAe,CAAA;AACd,SAASC,EAAWC,GAAUC,GAAM;AACzC,MAAIC,IAAUL;AACd,WAASM,IAAI,GAAGA,IAAIF,EAAK,QAAQE,KAAK,GAAG;AACvC,UAAMC,IAAMH,EAAKE,CAAC;AAClB,IAAKD,EAAQ,IAAIE,CAAG,KAClBF,EAAQ,IAAIE,GAAK,oBAAI,QAAO,CAAE,GAEhCF,IAAUA,EAAQ,IAAIE,CAAG;AAAA,EAC3B;AACA,SAAKF,EAAQ,IAAIJ,CAAY,KAC3BI,EAAQ,IAAIJ,GAAcE,GAAU,GAE/BE,EAAQ,IAAIJ,CAAY;AACjC;AAGA,MAAMO,IAAoB,oBAAI,QAAO;AAK9B,SAASC,EAAaC,GAAO;AAClC,MAAIC,IAAMH,EAAkB,IAAIE,CAAK,KAAK;AAC1C,SAAKC,MACH,OAAO,KAAKD,CAAK,EAAE,QAAQ,CAAAE,MAAO;AAChC,UAAMC,IAAQH,EAAME,CAAG;AACvB,IAAAD,KAAOC,GACHC,aAAiBC,IACnBH,KAAOE,EAAM,KACJA,KAAS,OAAOA,KAAU,WACnCF,KAAOF,EAAaI,CAAK,IAEzBF,KAAOE;AAAA,EAEX,CAAC,GAIDF,IAAMI,EAAKJ,CAAG,GAGdH,EAAkB,IAAIE,GAAOC,CAAG,IAE3BA;AACT;AAKO,SAASK,EAAUN,GAAOO,GAAM;AACrC,SAAOF,EAAK,GAAGE,CAAI,IAAIR,EAAaC,CAAK,CAAC,EAAE;AAC9C;AAoDY,MAACQ,IAAeC,EAAS;AAC9B,SAASC,EAAKC,GAAK;AACxB,SAAI,OAAOA,KAAQ,WACV,GAAGA,CAAG,OAERA;AACT;AAgBO,SAASC,EAAMC,GAAS;AAC7B,QAAM;AAAA,IACJ,SAAAC;AAAA,IACA,cAAAC,IAAe;AAAA,EACnB,IAAMF,KAAW,CAAA;AACf,MAAI,CAACC;AACH,WAAO;AAET,QAAME,IAAe,IAAIF,CAAO;AAChC,SAAOC,MAAiB,QAAQ,UAAUC,CAAY,MAAMA;AAC9D;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../node_modules/@ant-design/cssinjs/es/util/index.js"],"sourcesContent":["import hash from '@emotion/hash';\nimport canUseDom from \"@rc-component/util/es/Dom/canUseDom\";\nimport { removeCSS, updateCSS } from \"@rc-component/util/es/Dom/dynamicCSS\";\nimport { ATTR_MARK, ATTR_TOKEN } from \"../StyleContext\";\nimport { Theme } from \"../theme\";\n\n// Create a cache for memo concat\n\nconst resultCache = new WeakMap();\nconst RESULT_VALUE = {};\nexport function memoResult(callback, deps) {\n let current = resultCache;\n for (let i = 0; i < deps.length; i += 1) {\n const dep = deps[i];\n if (!current.has(dep)) {\n current.set(dep, new WeakMap());\n }\n current = current.get(dep);\n }\n if (!current.has(RESULT_VALUE)) {\n current.set(RESULT_VALUE, callback());\n }\n return current.get(RESULT_VALUE);\n}\n\n// Create a cache here to avoid always loop generate\nconst flattenTokenCache = new WeakMap();\n\n/**\n * Flatten token to string, this will auto cache the result when token not change\n */\nexport function flattenToken(token) {\n let str = flattenTokenCache.get(token) || '';\n if (!str) {\n Object.keys(token).forEach(key => {\n const value = token[key];\n str += key;\n if (value instanceof Theme) {\n str += value.id;\n } else if (value && typeof value === 'object') {\n str += flattenToken(value);\n } else {\n str += value;\n }\n });\n\n // https://github.com/ant-design/ant-design/issues/48386\n // Should hash the string to avoid style tag name too long\n str = hash(str);\n\n // Put in cache\n flattenTokenCache.set(token, str);\n }\n return str;\n}\n\n/**\n * Convert derivative token to key string\n */\nexport function token2key(token, salt) {\n return hash(`${salt}_${flattenToken(token)}`);\n}\nconst randomSelectorKey = `random-${Date.now()}-${Math.random()}`.replace(/\\./g, '');\n\n// Magic `content` for detect selector support\nconst checkContent = '_bAmBoO_';\nfunction supportSelector(styleStr, handleElement, supportCheck) {\n if (canUseDom()) {\n updateCSS(styleStr, randomSelectorKey);\n const ele = document.createElement('div');\n ele.style.position = 'fixed';\n ele.style.left = '0';\n ele.style.top = '0';\n handleElement?.(ele);\n document.body.appendChild(ele);\n if (process.env.NODE_ENV !== 'production') {\n ele.innerHTML = 'Test';\n ele.style.zIndex = '9999999';\n }\n const support = supportCheck ? supportCheck(ele) : getComputedStyle(ele).content?.includes(checkContent);\n ele.parentNode?.removeChild(ele);\n removeCSS(randomSelectorKey);\n return support;\n }\n return false;\n}\nlet canLayer = undefined;\nexport function supportLayer() {\n if (canLayer === undefined) {\n canLayer = supportSelector(`@layer ${randomSelectorKey} { .${randomSelectorKey} { content: \"${checkContent}\"!important; } }`, ele => {\n ele.className = randomSelectorKey;\n });\n }\n return canLayer;\n}\nlet canWhere = undefined;\nexport function supportWhere() {\n if (canWhere === undefined) {\n canWhere = supportSelector(`:where(.${randomSelectorKey}) { content: \"${checkContent}\"!important; }`, ele => {\n ele.className = randomSelectorKey;\n });\n }\n return canWhere;\n}\nlet canLogic = undefined;\nexport function supportLogicProps() {\n if (canLogic === undefined) {\n canLogic = supportSelector(`.${randomSelectorKey} { inset-block: 93px !important; }`, ele => {\n ele.className = randomSelectorKey;\n }, ele => getComputedStyle(ele).bottom === '93px');\n }\n return canLogic;\n}\nexport const isClientSide = canUseDom();\nexport function unit(num) {\n if (typeof num === 'number') {\n return `${num}px`;\n }\n return num;\n}\nexport function toStyleStr(style, tokenKey, styleId, customizeAttrs = {}, plain = false) {\n if (plain) {\n return style;\n }\n const attrs = {\n ...customizeAttrs,\n [ATTR_TOKEN]: tokenKey,\n [ATTR_MARK]: styleId\n };\n const attrStr = Object.keys(attrs).map(attr => {\n const val = attrs[attr];\n return val ? `${attr}=\"${val}\"` : null;\n }).filter(v => v).join(' ');\n return `<style ${attrStr}>${style}</style>`;\n}\nexport function where(options) {\n const {\n hashCls,\n hashPriority = 'low'\n } = options || {};\n if (!hashCls) {\n return '';\n }\n const hashSelector = `.${hashCls}`;\n return hashPriority === 'low' ? `:where(${hashSelector})` : hashSelector;\n}\nexport const isNonNullable = val => {\n return val !== undefined && val !== null;\n};"],"names":["resultCache","RESULT_VALUE","memoResult","callback","deps","current","i","dep","flattenTokenCache","flattenToken","token","str","key","value","Theme","hash","token2key","salt","isClientSide","canUseDom","unit","num","where","options","hashCls","hashPriority","hashSelector","isNonNullable","val"],"mappings":";;;AAQA,MAAMA,IAAc,oBAAI,QAAO,GACzBC,IAAe,CAAA;AACd,SAASC,EAAWC,GAAUC,GAAM;AACzC,MAAIC,IAAUL;AACd,WAASM,IAAI,GAAGA,IAAIF,EAAK,QAAQE,KAAK,GAAG;AACvC,UAAMC,IAAMH,EAAKE,CAAC;AAClB,IAAKD,EAAQ,IAAIE,CAAG,KAClBF,EAAQ,IAAIE,GAAK,oBAAI,QAAO,CAAE,GAEhCF,IAAUA,EAAQ,IAAIE,CAAG;AAAA,EAC3B;AACA,SAAKF,EAAQ,IAAIJ,CAAY,KAC3BI,EAAQ,IAAIJ,GAAcE,GAAU,GAE/BE,EAAQ,IAAIJ,CAAY;AACjC;AAGA,MAAMO,IAAoB,oBAAI,QAAO;AAK9B,SAASC,EAAaC,GAAO;AAClC,MAAIC,IAAMH,EAAkB,IAAIE,CAAK,KAAK;AAC1C,SAAKC,MACH,OAAO,KAAKD,CAAK,EAAE,QAAQ,CAAAE,MAAO;AAChC,UAAMC,IAAQH,EAAME,CAAG;AACvB,IAAAD,KAAOC,GACHC,aAAiBC,IACnBH,KAAOE,EAAM,KACJA,KAAS,OAAOA,KAAU,WACnCF,KAAOF,EAAaI,CAAK,IAEzBF,KAAOE;AAAA,EAEX,CAAC,GAIDF,IAAMI,EAAKJ,CAAG,GAGdH,EAAkB,IAAIE,GAAOC,CAAG,IAE3BA;AACT;AAKO,SAASK,EAAUN,GAAOO,GAAM;AACrC,SAAOF,EAAK,GAAGE,CAAI,IAAIR,EAAaC,CAAK,CAAC,EAAE;AAC9C;AAoDY,MAACQ,IAAeC,EAAS;AAC9B,SAASC,EAAKC,GAAK;AACxB,SAAI,OAAOA,KAAQ,WACV,GAAGA,CAAG,OAERA;AACT;AAgBO,SAASC,EAAMC,GAAS;AAC7B,QAAM;AAAA,IACJ,SAAAC;AAAA,IACA,cAAAC,IAAe;AAAA,EACnB,IAAMF,KAAW,CAAA;AACf,MAAI,CAACC;AACH,WAAO;AAET,QAAME,IAAe,IAAIF,CAAO;AAChC,SAAOC,MAAiB,QAAQ,UAAUC,CAAY,MAAMA;AAC9D;AACY,MAACC,IAAgB,CAAAC,MACCA,KAAQ;","x_google_ignoreList":[0]}
@@ -33,9 +33,9 @@ var M = /* @__PURE__ */ (function() {
33
33
  key: "validate",
34
34
  value: function(t) {
35
35
  var u = this, m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, k = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function() {
36
- }, l = t, n = m, E = k;
36
+ }, f = t, n = m, E = k;
37
37
  if (typeof n == "function" && (E = n, n = {}), !this.rules || Object.keys(this.rules).length === 0)
38
- return E && E(null, l), Promise.resolve(l);
38
+ return E && E(null, f), Promise.resolve(f);
39
39
  function B(r) {
40
40
  var a = [], e = {};
41
41
  function v(o) {
@@ -47,7 +47,7 @@ var M = /* @__PURE__ */ (function() {
47
47
  }
48
48
  for (var i = 0; i < r.length; i++)
49
49
  v(r[i]);
50
- a.length ? (e = N(a), E(a, e)) : E(null, l);
50
+ a.length ? (e = N(a), E(a, e)) : E(null, f);
51
51
  }
52
52
  if (n.messages) {
53
53
  var j = this.messages();
@@ -56,38 +56,38 @@ var M = /* @__PURE__ */ (function() {
56
56
  n.messages = this.messages();
57
57
  var O = {}, D = n.keys || Object.keys(this.rules);
58
58
  return D.forEach(function(r) {
59
- var a = u.rules[r], e = l[r];
59
+ var a = u.rules[r], e = f[r];
60
60
  a.forEach(function(v) {
61
61
  var i = v;
62
- typeof i.transform == "function" && (l === t && (l = b({}, l)), e = l[r] = i.transform(e), e != null && (i.type = i.type || (Array.isArray(e) ? "array" : C(e)))), typeof i == "function" ? i = {
62
+ typeof i.transform == "function" && (f === t && (f = b({}, f)), e = f[r] = i.transform(e), e != null && (i.type = i.type || (Array.isArray(e) ? "array" : C(e)))), typeof i == "function" ? i = {
63
63
  validator: i
64
64
  } : i = b({}, i), i.validator = u.getValidationMethod(i), i.validator && (i.field = r, i.fullField = i.fullField || r, i.type = u.getType(i), O[r] = O[r] || [], O[r].push({
65
65
  rule: i,
66
66
  value: e,
67
- source: l,
67
+ source: f,
68
68
  field: r
69
69
  }));
70
70
  });
71
71
  }), K(O, n, function(r, a) {
72
72
  var e = r.rule, v = (e.type === "object" || e.type === "array") && (C(e.fields) === "object" || C(e.defaultField) === "object");
73
73
  v = v && (e.required || !e.required && r.value), e.field = r.field;
74
- function i(f, y) {
74
+ function i(l, y) {
75
75
  return b(b({}, y), {}, {
76
- fullField: "".concat(e.fullField, ".").concat(f),
77
- fullFields: e.fullFields ? [].concat(q(e.fullFields), [f]) : [f]
76
+ fullField: "".concat(e.fullField, ".").concat(l),
77
+ fullFields: e.fullFields ? [].concat(q(e.fullFields), [l]) : [l]
78
78
  });
79
79
  }
80
80
  function o() {
81
- var f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], y = Array.isArray(f) ? f : [f];
82
- !n.suppressWarning && y.length && h.warning("async-validator:", y), y.length && e.message !== void 0 && (y = [].concat(e.message));
83
- var p = y.map(W(e, l));
81
+ var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], y = Array.isArray(l) ? l : [l];
82
+ !n.suppressWarning && y.length && h.warning("async-validator:", y), y.length && e.message !== void 0 && e.message !== null && (y = [].concat(e.message));
83
+ var p = y.map(W(e, f));
84
84
  if (n.first && p.length)
85
85
  return a(p);
86
86
  if (!v)
87
87
  a(p);
88
88
  else {
89
89
  if (e.required && !r.value)
90
- return e.message !== void 0 ? p = [].concat(e.message).map(W(e, l)) : n.error && (p = [n.error(e, U(n.messages.required, e.field))]), a(p);
90
+ return e.message !== void 0 ? p = [].concat(e.message).map(W(e, f)) : n.error && (p = [n.error(e, U(n.messages.required, e.field))]), a(p);
91
91
  var A = {};
92
92
  e.defaultField && Object.keys(r.value).map(function(d) {
93
93
  A[d] = e.defaultField;
@@ -110,22 +110,22 @@ var M = /* @__PURE__ */ (function() {
110
110
  else if (e.validator) {
111
111
  try {
112
112
  s = e.validator(e, r.value, o, r.source, n);
113
- } catch (f) {
113
+ } catch (l) {
114
114
  var V, _;
115
- (V = (_ = console).error) === null || V === void 0 || V.call(_, f), n.suppressValidatorError || setTimeout(function() {
116
- throw f;
117
- }, 0), o(f.message);
115
+ (V = (_ = console).error) === null || V === void 0 || V.call(_, l), n.suppressValidatorError || setTimeout(function() {
116
+ throw l;
117
+ }, 0), o(l.message);
118
118
  }
119
119
  s === !0 ? o() : s === !1 ? o(typeof e.message == "function" ? e.message(e.fullField || e.field) : e.message || "".concat(e.fullField || e.field, " fails")) : s instanceof Array ? o(s) : s instanceof Error && o(s.message);
120
120
  }
121
121
  s && s.then && s.then(function() {
122
122
  return o();
123
- }, function(f) {
124
- return o(f);
123
+ }, function(l) {
124
+ return o(l);
125
125
  });
126
126
  }, function(r) {
127
127
  B(r);
128
- }, l);
128
+ }, f);
129
129
  }
130
130
  }, {
131
131
  key: "getType",