@pisell/materials 1.0.206 → 1.0.207

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 (285) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +142 -142
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +20 -20
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +20 -20
  11. package/es/components/DragSortList/index.d.ts +1 -1
  12. package/es/components/MultipleContainersSortList/index.d.ts +1 -1
  13. package/es/components/Pagination/index.d.ts +2 -2
  14. package/es/components/Pagination/index.js +14 -9
  15. package/es/components/auto-complete/index.d.ts +5 -1
  16. package/es/components/calendar/index.d.ts +1 -1
  17. package/es/components/checkbox/index.d.ts +1 -1
  18. package/es/components/config-provider/index.d.ts +2 -2
  19. package/es/components/date-picker/index.d.ts +1 -1
  20. package/es/components/div/index.d.ts +1 -1
  21. package/es/components/div/index.js +2 -6
  22. package/es/components/drawer/index.d.ts +0 -1
  23. package/es/components/drawer/index.js +4 -42
  24. package/es/components/dropdown/index.d.ts +2 -2
  25. package/es/components/filter/components/QuickFilter/index.d.ts +2 -2
  26. package/es/components/filter/components/items/index.d.ts +6 -6
  27. package/es/components/filter/components/items/text/Editor/index.d.ts +1 -1
  28. package/es/components/filter/components/items/text/Preview/index.d.ts +1 -1
  29. package/es/components/filter/components/items/text/index.d.ts +2 -2
  30. package/es/components/filter/index.d.ts +2 -2
  31. package/es/components/form/index.d.ts +1 -1
  32. package/es/components/page/index.d.ts +2 -2
  33. package/es/components/page/index.js +1 -14
  34. package/es/components/qrcode/index.d.ts +2 -2
  35. package/es/components/radio/index.d.ts +1 -1
  36. package/es/components/record-view/index.less +0 -2
  37. package/es/components/select/index.d.ts +5 -2
  38. package/es/components/select/index.js +2 -60
  39. package/es/components/skeleton/index.d.ts +1 -1
  40. package/es/components/slider/index.d.ts +2 -2
  41. package/es/components/table/Actions/Sort/index.d.ts +12 -0
  42. package/es/components/table/Actions/Sort/index.js +59 -0
  43. package/es/components/table/Actions/Sort/index.less +0 -0
  44. package/es/components/table/Actions/index.d.ts +2 -2
  45. package/es/components/table/Actions/index.js +1 -1
  46. package/es/components/table/BasicTable/index.d.ts +2 -2
  47. package/es/components/table/Header/index.d.ts +2 -2
  48. package/es/components/table/Summary/index.d.ts +2 -2
  49. package/es/components/table/Table/SelectField/index.d.ts +2 -2
  50. package/es/components/table/Table/fields/date/Config/index.d.ts +1 -1
  51. package/es/components/table/Table/fields/date/Show/index.d.ts +2 -2
  52. package/es/components/table/Table/fields/date/Show/index.js +1 -2
  53. package/es/components/table/Table/fields/date/Sort/index.d.ts +1 -1
  54. package/es/components/table/Table/fields/date/index.d.ts +3 -3
  55. package/es/components/table/Table/fields/image/Config/index.d.ts +1 -1
  56. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -1
  57. package/es/components/table/Table/fields/image/Show/index.js +1 -2
  58. package/es/components/table/Table/fields/image/Sort/index.d.ts +1 -1
  59. package/es/components/table/Table/fields/image/index.d.ts +3 -3
  60. package/es/components/table/Table/fields/index.d.ts +57 -57
  61. package/es/components/table/Table/fields/link/Config/index.d.ts +1 -1
  62. package/es/components/table/Table/fields/link/Show/index.d.ts +1 -1
  63. package/es/components/table/Table/fields/link/Show/index.js +5 -7
  64. package/es/components/table/Table/fields/link/Sort/index.d.ts +1 -1
  65. package/es/components/table/Table/fields/link/index.d.ts +3 -3
  66. package/es/components/table/Table/fields/number/Config/index.d.ts +1 -1
  67. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -1
  68. package/es/components/table/Table/fields/number/Show/index.js +1 -2
  69. package/es/components/table/Table/fields/number/Sort/index.d.ts +1 -1
  70. package/es/components/table/Table/fields/number/index.d.ts +3 -3
  71. package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -1
  72. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +2 -2
  73. package/es/components/table/Table/fields/pSwitch/Show/index.js +1 -2
  74. package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -1
  75. package/es/components/table/Table/fields/pSwitch/index.d.ts +3 -3
  76. package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -1
  77. package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -1
  78. package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -1
  79. package/es/components/table/Table/fields/rangePicker/index.d.ts +3 -3
  80. package/es/components/table/Table/fields/search/Config/index.d.ts +1 -1
  81. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -1
  82. package/es/components/table/Table/fields/search/Show/index.js +1 -2
  83. package/es/components/table/Table/fields/search/Sort/index.d.ts +1 -1
  84. package/es/components/table/Table/fields/search/index.d.ts +3 -3
  85. package/es/components/table/Table/fields/select/Config/index.d.ts +1 -1
  86. package/es/components/table/Table/fields/select/Show/index.d.ts +1 -1
  87. package/es/components/table/Table/fields/select/Sort/index.d.ts +1 -1
  88. package/es/components/table/Table/fields/select/index.d.ts +3 -3
  89. package/es/components/table/Table/fields/text/Config/index.d.ts +1 -1
  90. package/es/components/table/Table/fields/text/Edit/index.js +3 -8
  91. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -1
  92. package/es/components/table/Table/fields/text/Show/index.js +1 -2
  93. package/es/components/table/Table/fields/text/Sort/index.d.ts +1 -1
  94. package/es/components/table/Table/fields/text/index.d.ts +3 -3
  95. package/es/components/table/Table/index.js +4 -5
  96. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +2 -2
  97. package/es/components/table/Table/tableConfig/summary/index.d.ts +2 -2
  98. package/es/components/table/TableFilter/SortIcon.d.ts +2 -2
  99. package/es/components/table/TableFilter/numberFilter.js +4 -5
  100. package/es/components/table/TableFilter/selectFilter.js +2 -3
  101. package/es/components/table/TableFilter/stringFilter.js +3 -4
  102. package/es/components/table/model.d.ts +1 -1
  103. package/es/components/table/model.js +29 -1
  104. package/es/components/tabs/index.d.ts +2 -5
  105. package/es/components/tabs/index.js +8 -51
  106. package/es/components/time-picker/index.d.ts +1 -1
  107. package/es/components/upload/index.d.ts +1 -1
  108. package/es/index.d.ts +1 -5
  109. package/es/index.js +5 -6
  110. package/es/utils/hoc.d.ts +4 -4
  111. package/es/utils/hoc.js +8 -9
  112. package/es/utils/miniRedux.d.ts +1 -1
  113. package/lib/components/DragSortList/index.d.ts +1 -1
  114. package/lib/components/MultipleContainersSortList/index.d.ts +1 -1
  115. package/lib/components/Pagination/index.d.ts +2 -2
  116. package/lib/components/Pagination/index.js +8 -9
  117. package/lib/components/auto-complete/index.d.ts +5 -1
  118. package/lib/components/calendar/index.d.ts +1 -1
  119. package/lib/components/checkbox/index.d.ts +1 -1
  120. package/lib/components/config-provider/index.d.ts +2 -2
  121. package/lib/components/date-picker/index.d.ts +1 -1
  122. package/lib/components/div/index.d.ts +1 -1
  123. package/lib/components/div/index.js +2 -2
  124. package/lib/components/drawer/index.d.ts +0 -1
  125. package/lib/components/drawer/index.js +1 -37
  126. package/lib/components/dropdown/index.d.ts +2 -2
  127. package/lib/components/filter/components/QuickFilter/index.d.ts +2 -2
  128. package/lib/components/filter/components/items/index.d.ts +6 -6
  129. package/lib/components/filter/components/items/text/Editor/index.d.ts +1 -1
  130. package/lib/components/filter/components/items/text/Preview/index.d.ts +1 -1
  131. package/lib/components/filter/components/items/text/index.d.ts +2 -2
  132. package/lib/components/filter/index.d.ts +2 -2
  133. package/lib/components/form/index.d.ts +1 -1
  134. package/lib/components/page/index.d.ts +2 -2
  135. package/lib/components/page/index.js +1 -13
  136. package/lib/components/qrcode/index.d.ts +2 -2
  137. package/lib/components/radio/index.d.ts +1 -1
  138. package/lib/components/record-view/index.less +0 -2
  139. package/lib/components/select/index.d.ts +5 -2
  140. package/lib/components/select/index.js +1 -67
  141. package/lib/components/skeleton/index.d.ts +1 -1
  142. package/lib/components/slider/index.d.ts +2 -2
  143. package/lib/components/table/Actions/Sort/index.d.ts +12 -0
  144. package/lib/components/table/Actions/Sort/index.js +86 -0
  145. package/lib/components/table/Actions/Sort/index.less +0 -0
  146. package/lib/components/table/Actions/index.d.ts +2 -2
  147. package/lib/components/table/Actions/index.js +2 -2
  148. package/lib/components/table/BasicTable/index.d.ts +2 -2
  149. package/lib/components/table/Header/index.d.ts +2 -2
  150. package/lib/components/table/Summary/index.d.ts +2 -2
  151. package/lib/components/table/Table/SelectField/index.d.ts +2 -2
  152. package/lib/components/table/Table/fields/date/Config/index.d.ts +1 -1
  153. package/lib/components/table/Table/fields/date/Show/index.d.ts +2 -2
  154. package/lib/components/table/Table/fields/date/Show/index.js +1 -2
  155. package/lib/components/table/Table/fields/date/Sort/index.d.ts +1 -1
  156. package/lib/components/table/Table/fields/date/index.d.ts +3 -3
  157. package/lib/components/table/Table/fields/image/Config/index.d.ts +1 -1
  158. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -1
  159. package/lib/components/table/Table/fields/image/Show/index.js +1 -2
  160. package/lib/components/table/Table/fields/image/Sort/index.d.ts +1 -1
  161. package/lib/components/table/Table/fields/image/index.d.ts +3 -3
  162. package/lib/components/table/Table/fields/index.d.ts +57 -57
  163. package/lib/components/table/Table/fields/link/Config/index.d.ts +1 -1
  164. package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -1
  165. package/lib/components/table/Table/fields/link/Show/index.js +5 -7
  166. package/lib/components/table/Table/fields/link/Sort/index.d.ts +1 -1
  167. package/lib/components/table/Table/fields/link/index.d.ts +3 -3
  168. package/lib/components/table/Table/fields/number/Config/index.d.ts +1 -1
  169. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -1
  170. package/lib/components/table/Table/fields/number/Show/index.js +1 -2
  171. package/lib/components/table/Table/fields/number/Sort/index.d.ts +1 -1
  172. package/lib/components/table/Table/fields/number/index.d.ts +3 -3
  173. package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -1
  174. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +2 -2
  175. package/lib/components/table/Table/fields/pSwitch/Show/index.js +1 -2
  176. package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -1
  177. package/lib/components/table/Table/fields/pSwitch/index.d.ts +3 -3
  178. package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -1
  179. package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -1
  180. package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -1
  181. package/lib/components/table/Table/fields/rangePicker/index.d.ts +3 -3
  182. package/lib/components/table/Table/fields/search/Config/index.d.ts +1 -1
  183. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -1
  184. package/lib/components/table/Table/fields/search/Show/index.js +1 -2
  185. package/lib/components/table/Table/fields/search/Sort/index.d.ts +1 -1
  186. package/lib/components/table/Table/fields/search/index.d.ts +3 -3
  187. package/lib/components/table/Table/fields/select/Config/index.d.ts +1 -1
  188. package/lib/components/table/Table/fields/select/Show/index.d.ts +1 -1
  189. package/lib/components/table/Table/fields/select/Sort/index.d.ts +1 -1
  190. package/lib/components/table/Table/fields/select/index.d.ts +3 -3
  191. package/lib/components/table/Table/fields/text/Config/index.d.ts +1 -1
  192. package/lib/components/table/Table/fields/text/Edit/index.js +1 -2
  193. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -1
  194. package/lib/components/table/Table/fields/text/Show/index.js +1 -2
  195. package/lib/components/table/Table/fields/text/Sort/index.d.ts +1 -1
  196. package/lib/components/table/Table/fields/text/index.d.ts +3 -3
  197. package/lib/components/table/Table/index.js +2 -3
  198. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +2 -2
  199. package/lib/components/table/Table/tableConfig/summary/index.d.ts +2 -2
  200. package/lib/components/table/TableFilter/SortIcon.d.ts +2 -2
  201. package/lib/components/table/TableFilter/numberFilter.js +4 -5
  202. package/lib/components/table/TableFilter/selectFilter.js +2 -3
  203. package/lib/components/table/TableFilter/stringFilter.js +3 -4
  204. package/lib/components/table/model.d.ts +1 -1
  205. package/lib/components/table/model.js +34 -1
  206. package/lib/components/tabs/index.d.ts +2 -5
  207. package/lib/components/tabs/index.js +1 -50
  208. package/lib/components/time-picker/index.d.ts +1 -1
  209. package/lib/components/upload/index.d.ts +1 -1
  210. package/lib/index.d.ts +1 -5
  211. package/lib/index.js +2 -14
  212. package/lib/utils/hoc.d.ts +4 -4
  213. package/lib/utils/hoc.js +3 -3
  214. package/lib/utils/miniRedux.d.ts +1 -1
  215. package/package.json +3 -3
  216. package/dist/umd/materials.min.css +0 -1
  217. package/dist/umd/materials.min.js +0 -1
  218. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  219. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  220. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  221. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  222. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  223. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
  224. package/es/components/classicLayout/index.d.ts +0 -4
  225. package/es/components/classicLayout/index.js +0 -25
  226. package/es/components/classicLayout/index.less +0 -22
  227. package/es/components/component/index.d.ts +0 -11
  228. package/es/components/component/index.js +0 -10
  229. package/es/components/drawer/index.less +0 -34
  230. package/es/components/list/index.d.ts +0 -7
  231. package/es/components/list/index.js +0 -104
  232. package/es/components/list/index.less +0 -38
  233. package/es/components/select/index.less +0 -11
  234. package/es/components/sort/components/InlineMenu/index.d.ts +0 -15
  235. package/es/components/sort/components/InlineMenu/index.js +0 -87
  236. package/es/components/sort/components/InlineMenu/index.less +0 -20
  237. package/es/components/sort/index.d.ts +0 -18
  238. package/es/components/sort/index.js +0 -113
  239. package/es/components/sort/index.less +0 -10
  240. package/es/components/table/Table/fields/utils/index.d.ts +0 -1
  241. package/es/components/table/Table/fields/utils/index.js +0 -29
  242. package/es/components/tabs/index.less +0 -60
  243. package/es/locales/en-US.d.ts +0 -21
  244. package/es/locales/en-US.js +0 -22
  245. package/es/locales/index.d.ts +0 -1
  246. package/es/locales/index.js +0 -21
  247. package/es/locales/zh-CN.d.ts +0 -21
  248. package/es/locales/zh-CN.js +0 -22
  249. package/es/locales/zh-TW.d.ts +0 -21
  250. package/es/locales/zh-TW.js +0 -22
  251. package/es/utils/locale.d.ts +0 -1
  252. package/es/utils/locale.js +0 -5
  253. package/es/utils/platform.d.ts +0 -1
  254. package/es/utils/platform.js +0 -8
  255. package/lib/components/classicLayout/index.d.ts +0 -4
  256. package/lib/components/classicLayout/index.js +0 -59
  257. package/lib/components/classicLayout/index.less +0 -22
  258. package/lib/components/component/index.d.ts +0 -11
  259. package/lib/components/component/index.js +0 -29
  260. package/lib/components/drawer/index.less +0 -34
  261. package/lib/components/list/index.d.ts +0 -7
  262. package/lib/components/list/index.js +0 -134
  263. package/lib/components/list/index.less +0 -38
  264. package/lib/components/select/index.less +0 -11
  265. package/lib/components/sort/components/InlineMenu/index.d.ts +0 -15
  266. package/lib/components/sort/components/InlineMenu/index.js +0 -89
  267. package/lib/components/sort/components/InlineMenu/index.less +0 -20
  268. package/lib/components/sort/index.d.ts +0 -18
  269. package/lib/components/sort/index.js +0 -147
  270. package/lib/components/sort/index.less +0 -10
  271. package/lib/components/table/Table/fields/utils/index.d.ts +0 -1
  272. package/lib/components/table/Table/fields/utils/index.js +0 -46
  273. package/lib/components/tabs/index.less +0 -60
  274. package/lib/locales/en-US.d.ts +0 -21
  275. package/lib/locales/en-US.js +0 -44
  276. package/lib/locales/index.d.ts +0 -1
  277. package/lib/locales/index.js +0 -58
  278. package/lib/locales/zh-CN.d.ts +0 -21
  279. package/lib/locales/zh-CN.js +0 -44
  280. package/lib/locales/zh-TW.d.ts +0 -21
  281. package/lib/locales/zh-TW.js +0 -44
  282. package/lib/utils/locale.d.ts +0 -1
  283. package/lib/utils/locale.js +0 -32
  284. package/lib/utils/platform.d.ts +0 -1
  285. package/lib/utils/platform.js +0 -36
@@ -41,13 +41,12 @@ var import_antd = require("antd");
41
41
  var import_classnames = __toESM(require("classnames"));
42
42
  var import_hooks = require("../../hooks");
43
43
  var import_index = require("./index.less");
44
- var import_locales = require("../../locales");
45
44
  var itemRender = (_, type, originalElement) => {
46
45
  if (type === "prev") {
47
- return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("paginator-page-btn", "left") }, /* @__PURE__ */ import_react.default.createElement(import_ArrowLeft.default, { className: "paginator-page-btn-left-icon" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "paginator-page-btn-text" }, (0, import_locales.getText)("table-pagination-previous")));
46
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("paginator-page-btn", "left") }, /* @__PURE__ */ import_react.default.createElement(import_ArrowLeft.default, { className: "paginator-page-btn-left-icon" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "paginator-page-btn-text" }, "Previous"));
48
47
  }
49
48
  if (type === "next") {
50
- return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("paginator-page-btn", "right") }, /* @__PURE__ */ import_react.default.createElement("span", { className: "paginator-page-btn-text" }, (0, import_locales.getText)("table-pagination-next")), /* @__PURE__ */ import_react.default.createElement(import_ArrowRight.default, { className: "paginator-page-btn-right-icon" }));
49
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("paginator-page-btn", "right") }, /* @__PURE__ */ import_react.default.createElement("span", { className: "paginator-page-btn-text" }, "Next"), /* @__PURE__ */ import_react.default.createElement(import_ArrowRight.default, { className: "paginator-page-btn-right-icon" }));
51
50
  }
52
51
  return originalElement;
53
52
  };
@@ -107,7 +106,7 @@ var MiniPagination = (props) => {
107
106
  }
108
107
  },
109
108
  /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("paginator-page-btn", "left") }, /* @__PURE__ */ import_react.default.createElement(import_ArrowLeft.default, { className: "paginator-page-btn-left-icon" }))
110
- ), /* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid-paginator-center" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "materials-grid-paginator-center-text" }, (0, import_locales.getText)("table-pagination-total")(current, MAX))), /* @__PURE__ */ import_react.default.createElement(
109
+ ), /* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid-paginator-center" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "materials-grid-paginator-center-text" }, "Page"), /* @__PURE__ */ import_react.default.createElement("span", { className: "materials-grid-paginator-center-value" }, current), /* @__PURE__ */ import_react.default.createElement("span", { className: "materials-grid-paginator-center-text" }, "of"), /* @__PURE__ */ import_react.default.createElement("span", { className: "materials-grid-paginator-center-value" }, MAX)), /* @__PURE__ */ import_react.default.createElement(
111
110
  "div",
112
111
  {
113
112
  className: "pisell-lowcode-pagination-next",
@@ -128,8 +127,8 @@ var FormPagination = ({
128
127
  pageSize,
129
128
  ...other
130
129
  }) => {
131
- const [_p, _setP] = (0, import_react.useState)(page || 1);
132
- const [_ps, _setPs] = (0, import_react.useState)(pageSize || 10);
130
+ const [_p, _setP] = (0, import_react.useState)(1);
131
+ const [_ps, _setPs] = (0, import_react.useState)(10);
133
132
  const _onChange = (p, ps) => {
134
133
  onChange && onChange({
135
134
  page: ps === _ps ? p : 1,
@@ -137,11 +136,11 @@ var FormPagination = ({
137
136
  });
138
137
  };
139
138
  (0, import_react.useEffect)(() => {
140
- const _page = (value == null ? void 0 : value.page) || page || 1;
141
- const _size = (value == null ? void 0 : value.size) || pageSize || 10;
139
+ const _page = (value == null ? void 0 : value.page) || 1;
140
+ const _size = (value == null ? void 0 : value.size) || 10;
142
141
  _setP(_page);
143
142
  _setPs(_size);
144
- }, [value, page, pageSize]);
143
+ }, [value]);
145
144
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
146
145
  Pagination,
147
146
  {
@@ -1,3 +1,7 @@
1
1
  /// <reference types="react" />
2
- declare const AutoComplete: (props: any) => import("react").JSX.Element;
2
+ declare const AutoComplete: import("react").ForwardRefExoticComponent<Omit<import("antd").AutoCompleteProps<unknown, import("antd/es/select").DefaultOptionType | import("antd/es/select").BaseOptionType> & {
3
+ children?: import("react").ReactNode;
4
+ } & {
5
+ ref?: import("react").Ref<import("antd").RefSelectProps> | undefined;
6
+ }, "ref"> & import("react").RefAttributes<any>>;
3
7
  export default AutoComplete;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const Calendar: (props: any) => import("react").JSX.Element;
2
+ declare const Calendar: (props: any) => JSX.Element;
3
3
  export default Calendar;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const Checkbox: (props: any) => import("react").JSX.Element;
2
+ declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<import("antd").CheckboxProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<any>>;
3
3
  export default Checkbox;
@@ -1,8 +1,8 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import { ConfigProviderProps as OriginalConfigProviderProps } from "antd/es/config-provider";
3
3
  import "dayjs/locale/zh-cn";
4
4
  export interface ConfigProviderProps extends OriginalConfigProviderProps {
5
5
  [key: string]: any;
6
6
  }
7
- declare const ConfigProvider: (props: ConfigProviderProps) => React.JSX.Element;
7
+ declare const ConfigProvider: (props: ConfigProviderProps) => JSX.Element;
8
8
  export default ConfigProvider;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const DatePicker: (props: any) => import("react").JSX.Element;
2
+ declare const DatePicker: (props: any) => JSX.Element;
3
3
  export default DatePicker;
@@ -4,5 +4,5 @@ export interface DivProps {
4
4
  style?: React.CSSProperties;
5
5
  others?: any;
6
6
  }
7
- declare const Div: (props: DivProps) => React.JSX.Element;
7
+ declare const Div: (props: DivProps) => JSX.Element;
8
8
  export default Div;
@@ -34,7 +34,7 @@ __export(div_exports, {
34
34
  module.exports = __toCommonJS(div_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var Div = (props) => {
37
- const { children, style = {}, others = {}, ...otherProps } = props;
38
- return /* @__PURE__ */ import_react.default.createElement("div", { style, ...others, ...otherProps }, children);
37
+ const { children, style = {}, others = {} } = props;
38
+ return /* @__PURE__ */ import_react.default.createElement("div", { style, ...others }, children);
39
39
  };
40
40
  var div_default = Div;
@@ -1,3 +1,2 @@
1
- import "./index.less";
2
1
  declare const Drawer: any;
3
2
  export default Drawer;
@@ -34,47 +34,11 @@ __export(drawer_exports, {
34
34
  module.exports = __toCommonJS(drawer_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
- var import_icons = require("@ant-design/icons");
38
- var import_index = require("./index.less");
39
- var prefix = "pisell-lowcode-";
40
- var Title = (props) => {
41
- const { placement, onClose } = props;
42
- return /* @__PURE__ */ import_react.default.createElement(
43
- "div",
44
- {
45
- className: `${prefix}drawer-outside-wrap ${prefix}drawer-outside-wrap-${placement}`
46
- },
47
- /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}drawer-outside-action-wrap`, onClick: onClose }, /* @__PURE__ */ import_react.default.createElement(import_icons.CloseOutlined, null))
48
- );
49
- };
50
37
  var Drawer = (props) => {
51
- const { others, ...resetProps } = props;
52
- const { operateMode, headerStyle, placement, onClose } = props;
53
38
  const innerProps = {};
54
39
  if (props.__designMode === "design") {
55
40
  innerProps.open = true;
56
41
  }
57
- const otherProps = (0, import_react.useMemo)(() => {
58
- if (operateMode === "outside") {
59
- return {
60
- headerStyle: {
61
- border: "none",
62
- height: 0,
63
- padding: 0
64
- },
65
- title: /* @__PURE__ */ import_react.default.createElement(Title, { placement, onClose })
66
- };
67
- }
68
- return headerStyle;
69
- }, [operateMode, placement, onClose]);
70
- return /* @__PURE__ */ import_react.default.createElement(
71
- import_antd.Drawer,
72
- {
73
- ...resetProps,
74
- ...innerProps,
75
- ...otherProps,
76
- ...others
77
- }
78
- );
42
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Drawer, { ...props, ...innerProps });
79
43
  };
80
44
  var drawer_default = Drawer;
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- declare const _default: (props: any) => React.JSX.Element;
1
+ /// <reference types="react" />
2
+ declare const _default: (props: any) => JSX.Element;
3
3
  export default _default;
@@ -1,7 +1,7 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import { FilterItemProps } from "../Dropdown";
3
3
  interface QuickFilterProps {
4
4
  quickFilter: FilterItemProps[];
5
5
  }
6
- declare const QuickFilter: (props: QuickFilterProps) => React.JSX.Element;
6
+ declare const QuickFilter: (props: QuickFilterProps) => JSX.Element;
7
7
  export default QuickFilter;
@@ -7,8 +7,8 @@ export declare const fieldMaps: {
7
7
  field_type: string;
8
8
  default_value: string;
9
9
  };
10
- Preview: (props: any) => import("react").JSX.Element;
11
- Editor: () => import("react").JSX.Element;
10
+ Preview: (props: any) => JSX.Element;
11
+ Editor: () => JSX.Element;
12
12
  };
13
13
  };
14
14
  export declare const fieldList: {
@@ -24,8 +24,8 @@ export declare const getFieldByType: (type: string) => {
24
24
  field_type: string;
25
25
  default_value: string;
26
26
  };
27
- Preview: (props: any) => import("react").JSX.Element;
28
- Editor: () => import("react").JSX.Element;
27
+ Preview: (props: any) => JSX.Element;
28
+ Editor: () => JSX.Element;
29
29
  };
30
30
  declare const _default: {
31
31
  text: {
@@ -35,8 +35,8 @@ declare const _default: {
35
35
  field_type: string;
36
36
  default_value: string;
37
37
  };
38
- Preview: (props: any) => import("react").JSX.Element;
39
- Editor: () => import("react").JSX.Element;
38
+ Preview: (props: any) => JSX.Element;
39
+ Editor: () => JSX.Element;
40
40
  };
41
41
  };
42
42
  export default _default;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const Text: () => import("react").JSX.Element;
2
+ declare const Text: () => JSX.Element;
3
3
  export default Text;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const Text: (props: any) => import("react").JSX.Element;
2
+ declare const Text: (props: any) => JSX.Element;
3
3
  export default Text;
@@ -6,7 +6,7 @@ declare const _default: {
6
6
  field_type: string;
7
7
  default_value: string;
8
8
  };
9
- Preview: (props: any) => import("react").JSX.Element;
10
- Editor: () => import("react").JSX.Element;
9
+ Preview: (props: any) => JSX.Element;
10
+ Editor: () => JSX.Element;
11
11
  };
12
12
  export default _default;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import { FilterItemProps } from "./components/Dropdown";
3
3
  export interface FilterProps {
4
4
  filter: {
@@ -8,5 +8,5 @@ export interface FilterProps {
8
8
  isRenderFormContent: boolean;
9
9
  onValuesChange: () => void;
10
10
  }
11
- declare const Filter: (props: FilterProps) => React.JSX.Element | null;
11
+ declare const Filter: (props: FilterProps) => JSX.Element | null;
12
12
  export default Filter;
@@ -3,6 +3,6 @@ declare class Form extends Component<any, any> {
3
3
  formRef: React.RefObject<any>;
4
4
  componentDidUpdate(prevProps: any): void;
5
5
  componentDidMount(): void;
6
- render(): React.JSX.Element;
6
+ render(): JSX.Element;
7
7
  }
8
8
  export default Form;
@@ -1,6 +1,6 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import { ConfigProviderProps } from "../config-provider";
3
3
  interface PageProps extends ConfigProviderProps {
4
4
  }
5
- declare const Page: (props: PageProps) => React.JSX.Element;
5
+ declare const Page: (props: PageProps) => JSX.Element;
6
6
  export default Page;
@@ -36,17 +36,6 @@ var import_react = __toESM(require("react"));
36
36
  var import_config_provider = __toESM(require("../config-provider"));
37
37
  var import_AdapterDayjs = require("@pisell/date-picker/es/AdapterDayjs");
38
38
  var import_date_picker = require("@pisell/date-picker");
39
- var import_en_US = __toESM(require("antd/locale/en_US"));
40
- var import_zh_CN = __toESM(require("antd/locale/zh_CN"));
41
- var import_zh_TW = __toESM(require("antd/locale/zh_TW"));
42
- var import_zh_HK = __toESM(require("antd/locale/zh_HK"));
43
- var localMap = {
44
- "zh-TW": import_zh_TW.default,
45
- "zh-CN": import_zh_CN.default,
46
- "zh-HK": import_zh_HK.default,
47
- "en-US": import_en_US.default,
48
- "en": import_en_US.default
49
- };
50
39
  var theme = {
51
40
  components: {
52
41
  Table: {
@@ -194,12 +183,11 @@ var datePickerTheme = (0, import_date_picker.createTheme)({
194
183
  }
195
184
  });
196
185
  var Page = (props) => {
197
- const { children, style, locale, ...others } = props;
186
+ const { children, style, ...others } = props;
198
187
  return /* @__PURE__ */ import_react.default.createElement(
199
188
  import_config_provider.default,
200
189
  {
201
190
  ...others,
202
- locale: localMap[locale],
203
191
  prefixCls: props.prefixCls || "pisell-lowcode",
204
192
  theme: props.theme || theme
205
193
  },
@@ -1,3 +1,3 @@
1
- import React from "react";
2
- declare const QRCode: (props: any) => React.JSX.Element;
1
+ /// <reference types="react" />
2
+ declare const QRCode: (props: any) => JSX.Element;
3
3
  export default QRCode;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const Radio: (props: any) => import("react").JSX.Element;
2
+ declare const Radio: import("react").ForwardRefExoticComponent<Omit<import("antd").RadioProps & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<any>>;
3
3
  export default Radio;
@@ -33,8 +33,6 @@
33
33
  }
34
34
  &-modal-header {
35
35
  padding: 12px 20px;
36
- position: relative;
37
- z-index: 2;
38
36
  }
39
37
  &-close-icon {
40
38
  font-size: 18px;
@@ -1,4 +1,7 @@
1
1
  /// <reference types="react" />
2
- import "./index.less";
3
- declare const Select: (props: any) => import("react").JSX.Element;
2
+ declare const Select: import("react").ForwardRefExoticComponent<Omit<import("antd").SelectProps<unknown, import("antd/es/select").DefaultOptionType | import("antd/es/select").BaseOptionType> & {
3
+ children?: import("react").ReactNode;
4
+ } & {
5
+ ref?: import("react").Ref<import("antd").RefSelectProps> | undefined;
6
+ }, "ref"> & import("react").RefAttributes<any>>;
4
7
  export default Select;
@@ -23,72 +23,6 @@ __export(select_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(select_exports);
25
25
  var import_antd = require("antd");
26
- var import_react = require("react");
27
- var import_locales = require("../../locales");
28
26
  var import_hoc = require("../../utils/hoc");
29
- var import_ahooks = require("ahooks");
30
- var import_index = require("./index.less");
31
- var prefix = "pisell-lowcode-";
32
- var SelectBase = (props) => {
33
- const {
34
- isShowDropdown,
35
- selectAll,
36
- mode,
37
- options,
38
- dropdownRender: propsDropdownRender
39
- } = props;
40
- const [state, setState] = (0, import_ahooks.useControllableValue)(props);
41
- const onSelectAllChange = (e) => {
42
- if (e.target.checked) {
43
- setState(
44
- options.map((item) => item.value),
45
- options
46
- );
47
- } else {
48
- setState([], []);
49
- }
50
- };
51
- const isShowSelectAll = (0, import_react.useMemo)(() => {
52
- return mode === "multiple" && isShowDropdown && selectAll;
53
- }, [mode, selectAll, isShowDropdown]);
54
- const checkboxChecked = (0, import_react.useMemo)(() => {
55
- if (mode !== "multiple")
56
- return false;
57
- return (state == null ? void 0 : state.length) === (options == null ? void 0 : options.length) && state.sort().join("") === options.map((item) => item.value).sort().join("");
58
- }, [state, options]);
59
- const dropdownRender = (0, import_react.useCallback)(
60
- propsDropdownRender ? propsDropdownRender : (originNode) => {
61
- return /* @__PURE__ */ React.createElement(React.Fragment, null, originNode, isShowDropdown && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
62
- import_antd.Divider,
63
- {
64
- className: `${prefix}select-dropdown-render-divider`
65
- }
66
- ), /* @__PURE__ */ React.createElement(
67
- "div",
68
- {
69
- className: `${prefix}select-dropdown-render-options-wrap`
70
- },
71
- isShowSelectAll && /* @__PURE__ */ React.createElement(
72
- import_antd.Checkbox,
73
- {
74
- onChange: onSelectAllChange,
75
- checked: checkboxChecked
76
- },
77
- (0, import_locales.getText)("select-dropdown-render-select-all")
78
- )
79
- )));
80
- },
81
- [isShowDropdown, isShowSelectAll, checkboxChecked, propsDropdownRender]
82
- );
83
- return /* @__PURE__ */ React.createElement(
84
- import_antd.Select,
85
- {
86
- ...props,
87
- value: state,
88
- onChange: (value, option) => setState(value, option),
89
- dropdownRender
90
- }
91
- );
92
- };
93
- var Select = (0, import_hoc.withWrap)(SelectBase);
27
+ var Select = (0, import_hoc.withWrap)(import_antd.Select);
94
28
  var select_default = Select;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const Skeleton: (props: any) => import("react").JSX.Element;
2
+ declare const Skeleton: (props: any) => JSX.Element;
3
3
  export default Skeleton;
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- declare const SliderOuter: (props: any) => React.JSX.Element;
1
+ /// <reference types="react" />
2
+ declare const SliderOuter: (props: any) => JSX.Element;
3
3
  export default SliderOuter;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ export declare type SortItemProps = {
3
+ type: "date" | "string" | "number";
4
+ label: string;
5
+ name: string;
6
+ };
7
+ declare type SortListProps = {
8
+ list: SortItemProps[];
9
+ onChange?: (val: string) => void;
10
+ };
11
+ declare const Sort: React.FC<SortListProps>;
12
+ export default Sort;
@@ -0,0 +1,86 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/table/Actions/Sort/index.tsx
30
+ var Sort_exports = {};
31
+ __export(Sort_exports, {
32
+ default: () => Sort_default
33
+ });
34
+ module.exports = __toCommonJS(Sort_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_SwitchVertical01 = __toESM(require("@pisell/icon/es/SwitchVertical01"));
38
+ var sortChildrenMap = {
39
+ date: (key) => [
40
+ {
41
+ key: `${key}:desc`,
42
+ label: "Oldest to newest"
43
+ },
44
+ {
45
+ key: `${key}:asc`,
46
+ label: "Newest to oldest"
47
+ }
48
+ ],
49
+ string: (key) => [
50
+ {
51
+ key: `${key}:asc`,
52
+ label: "A to Z"
53
+ },
54
+ {
55
+ key: `${key}:desc`,
56
+ label: "Z to A"
57
+ }
58
+ ],
59
+ number: (key) => [
60
+ {
61
+ key: `${key}:asc`,
62
+ label: "Lowest to highest"
63
+ },
64
+ {
65
+ key: `${key}:desc`,
66
+ label: "Highest to lowest"
67
+ }
68
+ ]
69
+ };
70
+ var Sort = ({ list = [], onChange }) => {
71
+ const sortItems = (0, import_react.useMemo)(() => {
72
+ return list.map((d) => {
73
+ return {
74
+ key: d.name,
75
+ label: d.label,
76
+ children: sortChildrenMap[d.type](d.name)
77
+ };
78
+ });
79
+ }, [list]);
80
+ const onClick = (detail) => {
81
+ var _a;
82
+ onChange == null ? void 0 : onChange((_a = detail == null ? void 0 : detail.keyPath) == null ? void 0 : _a[0]);
83
+ };
84
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Dropdown, { menu: { items: sortItems, onClick } }, /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { icon: /* @__PURE__ */ import_react.default.createElement(import_SwitchVertical01.default, null) }, "Sort"));
85
+ };
86
+ var Sort_default = Sort;
File without changes
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import "./index.less";
3
- declare const Actions: ({ filter, sort }: any) => React.JSX.Element | null;
3
+ declare const Actions: ({ filter, sort }: any) => JSX.Element | null;
4
4
  export default Actions;
@@ -34,13 +34,13 @@ __export(Actions_exports, {
34
34
  module.exports = __toCommonJS(Actions_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_filter = __toESM(require("../../filter"));
37
- var import_sort = __toESM(require("../../sort"));
38
37
  var import_antd = require("antd");
38
+ var import_Sort = __toESM(require("./Sort"));
39
39
  var import_index = require("./index.less");
40
40
  var Actions = ({ filter, sort }) => {
41
41
  const showActions = (0, import_react.useMemo)(() => {
42
42
  return (filter == null ? void 0 : filter.show) || (sort == null ? void 0 : sort.show);
43
43
  }, [filter == null ? void 0 : filter.show, sort == null ? void 0 : sort.show]);
44
- return showActions ? /* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid-actions" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "left-wrap" }, /* @__PURE__ */ import_react.default.createElement(import_filter.default, { filter, isRenderFormContent: false })), /* @__PURE__ */ import_react.default.createElement("div", { className: "right-wrap" }, (sort == null ? void 0 : sort.show) ? /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "order_by", noStyle: true }, /* @__PURE__ */ import_react.default.createElement(import_sort.default, { list: (sort == null ? void 0 : sort.list) || [] })) : null)) : null;
44
+ return showActions ? /* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid-actions" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "left-wrap" }, /* @__PURE__ */ import_react.default.createElement(import_filter.default, { filter, isRenderFormContent: false })), /* @__PURE__ */ import_react.default.createElement("div", { className: "right-wrap" }, (sort == null ? void 0 : sort.show) ? /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "order_by", noStyle: true }, /* @__PURE__ */ import_react.default.createElement(import_Sort.default, { list: (sort == null ? void 0 : sort.list) || [] })) : null)) : null;
45
45
  };
46
46
  var Actions_default = Actions;
@@ -1,4 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TableProps } from "antd";
2
- import React from "react";
3
- declare const BasicTable: (props: TableProps<any>) => React.JSX.Element;
3
+ declare const BasicTable: (props: TableProps<any>) => JSX.Element;
4
4
  export default BasicTable;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import "./index.less";
3
- declare const Header: ({ buttons, title }: any) => React.JSX.Element | null;
3
+ declare const Header: ({ buttons, title }: any) => JSX.Element | null;
4
4
  export default Header;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import "./index.less";
3
- declare const Summary: ({ summary }: any) => React.JSX.Element | null;
3
+ declare const Summary: ({ summary }: any) => JSX.Element | null;
4
4
  export default Summary;
@@ -1,3 +1,3 @@
1
- import React from "react";
2
- declare const SelectField: () => React.JSX.Element;
1
+ /// <reference types="react" />
2
+ declare const SelectField: () => JSX.Element;
3
3
  export default SelectField;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const Config: () => import("react").JSX.Element;
2
+ declare const Config: () => JSX.Element;
3
3
  export default Config;
@@ -1,4 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
- import React from "react";
3
- declare const Show: (props: FieldPropsType) => React.JSX.Element;
3
+ declare const Show: (props: FieldPropsType) => JSX.Element;
4
4
  export default Show;
@@ -34,7 +34,6 @@ __export(Show_exports, {
34
34
  module.exports = __toCommonJS(Show_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_utils = require("@pisell/utils");
37
- var import_utils2 = require("../../utils");
38
37
  var Show = (props) => {
39
38
  const {
40
39
  title,
@@ -45,6 +44,6 @@ var Show = (props) => {
45
44
  handleSave,
46
45
  ...restProps
47
46
  } = props;
48
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, (0, import_utils.formatDate)((0, import_utils2.getValueByKeys)(record, dataIndex)));
47
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, (0, import_utils.formatDate)(record[dataIndex]));
49
48
  };
50
49
  var Show_default = Show;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const Sort: () => import("react").JSX.Element;
2
+ declare const Sort: () => JSX.Element;
3
3
  export default Sort;