@pisell/materials 1.0.926 → 1.0.928

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 (276) 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 +5 -5
  6. package/build/lowcode/preview.js +148 -164
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +23 -37
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +28 -42
  11. package/es/components/batch-editor/index.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  13. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  14. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  15. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  16. package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +11 -4
  17. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  18. package/es/components/dataSourceComponents/dataSourceTable/filter/index.js +7 -2
  19. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  20. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  21. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +9 -10
  22. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +11 -4
  23. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +2 -1
  24. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +92 -6
  25. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +5 -0
  26. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  27. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  28. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  29. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  30. package/es/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
  31. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  32. package/es/components/dataSourceComponents/fields/Upload/index.js +4 -0
  33. package/es/components/dataSourceComponents/fields/index.d.ts +14 -13
  34. package/es/components/date-picker/datePickerCpt.d.ts +1 -0
  35. package/es/components/date-picker/index.d.ts +1 -0
  36. package/es/components/filter/index.d.ts +1 -0
  37. package/es/components/filter/types.d.ts +1 -0
  38. package/es/components/list/index.d.ts +1 -0
  39. package/es/components/lowCodePage/index.d.ts +1 -0
  40. package/es/components/page/index.d.ts +1 -0
  41. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  42. package/es/components/pisellAdjustPrice/index.d.ts +1 -0
  43. package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
  44. package/es/components/pisellInput/index.d.ts +1 -0
  45. package/es/components/pisellLoading/index.d.ts +1 -0
  46. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  47. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  48. package/es/components/pisellModal/components/index.d.ts +1 -0
  49. package/es/components/pisellText/components/Editable/index.d.ts +29 -0
  50. package/es/components/pisellText/components/Editable/index.js +159 -0
  51. package/es/components/pisellText/components/Editable/index.less +40 -0
  52. package/es/components/pisellText/index.d.ts +1 -0
  53. package/es/components/pisellText/index.js +2 -0
  54. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +1 -0
  55. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +1 -0
  56. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +1 -0
  57. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
  58. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +1 -0
  59. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
  60. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +1 -0
  61. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
  62. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
  63. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +1 -0
  64. package/es/components/productCard/cartSkuCard/index.d.ts +1 -0
  65. package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
  66. package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  67. package/es/components/productCard/components/Header/index.d.ts +1 -0
  68. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  69. package/es/components/productCard/components/Note/index.d.ts +1 -0
  70. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  71. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  72. package/es/components/productCard/components/Packages/index.d.ts +1 -0
  73. package/es/components/productCard/components/Sales/index.d.ts +1 -0
  74. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
  75. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  76. package/es/components/qrcode/index.d.ts +1 -0
  77. package/es/components/select/index.js +4 -2
  78. package/es/components/sortableList/index.d.ts +1 -1
  79. package/es/components/sortableList/index.js +2 -1
  80. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  81. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  82. package/es/components/table/Actions/index.d.ts +1 -0
  83. package/es/components/table/BasicTable/index.d.ts +1 -0
  84. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  85. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  86. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  87. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  88. package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
  89. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  90. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  91. package/es/components/table/Table/fields/index.d.ts +3 -2
  92. package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
  93. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  94. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  95. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  96. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  97. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  98. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  99. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  100. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  101. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  102. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  103. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  104. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  105. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  106. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  107. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  108. package/es/components/table/Table/utils.d.ts +1 -7
  109. package/es/components/table/Table/utils.js +23 -2
  110. package/es/components/table/View/index.d.ts +1 -0
  111. package/es/components/table/hooks/useTableSetting.d.ts +3 -4
  112. package/es/components/table/hooks/useTableSetting.js +113 -5
  113. package/es/components/table/index.js +14 -3
  114. package/es/components/table/types.d.ts +17 -0
  115. package/es/components/versionSelect/index.d.ts +1 -0
  116. package/es/components/virtual-keyboard/Amount/index.d.ts +1 -0
  117. package/es/components/virtual-keyboard/Number/index.d.ts +1 -0
  118. package/lib/components/batch-editor/index.d.ts +1 -0
  119. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  120. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  121. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  122. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  123. package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +8 -2
  124. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  125. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.js +7 -2
  126. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  127. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  128. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +9 -10
  129. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +11 -4
  130. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +2 -1
  131. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +78 -7
  132. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +5 -0
  133. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  134. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  135. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  136. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  137. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
  138. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  139. package/lib/components/dataSourceComponents/fields/Upload/index.js +2 -0
  140. package/lib/components/dataSourceComponents/fields/index.d.ts +14 -13
  141. package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
  142. package/lib/components/date-picker/index.d.ts +1 -0
  143. package/lib/components/filter/index.d.ts +1 -0
  144. package/lib/components/filter/types.d.ts +1 -0
  145. package/lib/components/list/index.d.ts +1 -0
  146. package/lib/components/lowCodePage/index.d.ts +1 -0
  147. package/lib/components/page/index.d.ts +1 -0
  148. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  149. package/lib/components/pisellAdjustPrice/index.d.ts +1 -0
  150. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
  151. package/lib/components/pisellInput/index.d.ts +1 -0
  152. package/lib/components/pisellLoading/index.d.ts +1 -0
  153. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  154. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  155. package/lib/components/pisellModal/components/index.d.ts +1 -0
  156. package/lib/components/pisellText/components/Editable/index.d.ts +29 -0
  157. package/lib/components/pisellText/components/Editable/index.js +143 -0
  158. package/lib/components/pisellText/components/Editable/index.less +40 -0
  159. package/lib/components/pisellText/index.d.ts +1 -0
  160. package/lib/components/pisellText/index.js +2 -0
  161. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +1 -0
  162. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +1 -0
  163. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +1 -0
  164. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
  165. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +1 -0
  166. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
  167. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +1 -0
  168. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
  169. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
  170. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +1 -0
  171. package/lib/components/productCard/cartSkuCard/index.d.ts +1 -0
  172. package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
  173. package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  174. package/lib/components/productCard/components/Header/index.d.ts +1 -0
  175. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  176. package/lib/components/productCard/components/Note/index.d.ts +1 -0
  177. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  178. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  179. package/lib/components/productCard/components/Packages/index.d.ts +1 -0
  180. package/lib/components/productCard/components/Sales/index.d.ts +1 -0
  181. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
  182. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  183. package/lib/components/qrcode/index.d.ts +1 -0
  184. package/lib/components/select/index.js +7 -2
  185. package/lib/components/sortableList/index.d.ts +1 -1
  186. package/lib/components/sortableList/index.js +2 -2
  187. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  188. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  189. package/lib/components/table/Actions/index.d.ts +1 -0
  190. package/lib/components/table/BasicTable/index.d.ts +1 -0
  191. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  192. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  193. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  194. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  195. package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
  196. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  197. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  198. package/lib/components/table/Table/fields/index.d.ts +3 -2
  199. package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
  200. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  201. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  202. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  203. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  204. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  205. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  206. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  207. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  208. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  209. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  210. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  211. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  212. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  213. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  214. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  215. package/lib/components/table/Table/utils.d.ts +1 -7
  216. package/lib/components/table/Table/utils.js +18 -3
  217. package/lib/components/table/View/index.d.ts +1 -0
  218. package/lib/components/table/hooks/useTableSetting.d.ts +3 -4
  219. package/lib/components/table/hooks/useTableSetting.js +104 -4
  220. package/lib/components/table/index.js +12 -1
  221. package/lib/components/table/types.d.ts +17 -0
  222. package/lib/components/versionSelect/index.d.ts +1 -0
  223. package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -0
  224. package/lib/components/virtual-keyboard/Number/index.d.ts +1 -0
  225. package/lowcode/data-source-table/meta.ts +113 -0
  226. package/lowcode/pisell-text.editable/meta.ts +115 -0
  227. package/lowcode/pisell-text.editable/snippets.ts +15 -0
  228. package/lowcode/sortable-list/meta.ts +1 -1
  229. package/lowcode/table/meta.ts +104 -0
  230. package/package.json +3 -3
  231. package/dist/umd/materials.min.css +0 -1
  232. package/dist/umd/materials.min.js +0 -1
  233. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  234. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  235. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  236. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  237. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  238. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
  239. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  240. package/es/components/iconfont/index.d.ts +0 -8
  241. package/es/components/pisell-config-provider/context.d.ts +0 -22
  242. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  243. package/es/components/pisellAdjustPrice/type.d.ts +0 -22
  244. package/es/components/pisellToast/squareToast/index.d.ts +0 -15
  245. package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
  246. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
  247. package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
  248. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  249. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
  250. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
  251. package/es/components/productCard/components/Action/index.d.ts +0 -3
  252. package/es/components/productCard/locales.d.ts +0 -84
  253. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  254. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  255. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  256. package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
  257. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  258. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  259. package/lib/components/iconfont/index.d.ts +0 -8
  260. package/lib/components/pisell-config-provider/context.d.ts +0 -22
  261. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  262. package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
  263. package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
  264. package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
  265. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
  266. package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
  267. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  268. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
  269. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
  270. package/lib/components/productCard/components/Action/index.d.ts +0 -3
  271. package/lib/components/productCard/locales.d.ts +0 -84
  272. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  273. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  274. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  275. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
  276. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  import "./index.less";
3
4
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const SortRow: ({ children, rowKey, onSortChange }: any) => JSX.Element;
3
4
  export default SortRow;
@@ -119,12 +119,6 @@ export declare const setFormValuesToLocalStorage: ({ tableId, allValues, keys, c
119
119
  key: string;
120
120
  value: Record<string, any>;
121
121
  } | undefined;
122
- /**
123
- * 获取表格键值
124
- * @param tableId 表格ID
125
- * @returns 返回格式化后的表格键值
126
- */
127
- export declare const getTableKey: (tableId: string) => string;
128
122
  /**
129
123
  * 合并筛选设置
130
124
  * @param list 列表数据
@@ -167,7 +161,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
167
161
  sort?: SortType | undefined;
168
162
  mode: "" | "localStorage" | "remote";
169
163
  currentViewMode: ModeType;
170
- }) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
164
+ }) => ("filters" | "view_mode" | "order_by" | "group_by" | "column_setting" | "gallery_setting" | "filter_setting")[];
171
165
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
172
166
  export declare const stringify: (obj: Record<string, any>) => string;
173
167
  export {};
@@ -350,8 +350,29 @@ export var setFormValuesToLocalStorage = function setFormValuesToLocalStorage(_r
350
350
  * @param tableId 表格ID
351
351
  * @returns 返回格式化后的表格键值
352
352
  */
353
- export var getTableKey = function getTableKey(tableId) {
354
- return "".concat(tableKeyPrefix, "-").concat(tableId);
353
+ var getTableKey = function getTableKey(tableId) {
354
+ // 兼容非浏览器环境(如SSR/测试)
355
+ if (typeof window === "undefined" || typeof window.location === "undefined") {
356
+ return "".concat(tableKeyPrefix, "-").concat(tableId);
357
+ }
358
+ var _window$location = window.location,
359
+ pathname = _window$location.pathname,
360
+ search = _window$location.search;
361
+ var appendPath = pathname || "/";
362
+
363
+ // 仅用于读取 memory_key,其余查询参数忽略
364
+ var memoryKey = "";
365
+ try {
366
+ var _params = new URLSearchParams(search || "");
367
+ var mk = _params.get("memory_key");
368
+ if (mk && mk.trim() !== "") {
369
+ memoryKey = mk.trim();
370
+ }
371
+ } catch (e) {
372
+ // 忽略解析异常,降级为仅使用 pathname
373
+ }
374
+ var urlPart = memoryKey ? "".concat(appendPath, "#").concat(memoryKey) : appendPath;
375
+ return "".concat(tableKeyPrefix, "-").concat(tableId, "-").concat(urlPart);
355
376
  };
356
377
 
357
378
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GridViewProps } from '../types';
2
3
  declare const View: (props: GridViewProps & {
3
4
  setTableSetting: (values: Record<string, any>) => void;
@@ -1,5 +1,5 @@
1
1
  import { FilterType } from "../../filter/types";
2
- import { ColumnSettingType, DataSourceGroupType, GallerySettingType, GridViewType, ModeType, SortType, ExportImportModeType } from "../types";
2
+ import { ColumnSettingType, DataSourceGroupType, GallerySettingType, GridViewType, ModeType, SortType, ExportImportModeType, LocalSettingsType } from "../types";
3
3
  declare type UseTableSettingProps = {
4
4
  tableId?: string;
5
5
  filter: FilterType;
@@ -12,11 +12,10 @@ declare type UseTableSettingProps = {
12
12
  gallery?: GallerySettingType;
13
13
  currentSettingHash: string;
14
14
  exportImport?: ExportImportModeType;
15
+ localSettings?: LocalSettingsType;
15
16
  };
16
17
  declare const useTableSetting: (params: UseTableSettingProps) => {
17
18
  setTableSetting: (values: Record<string, any>) => void;
18
- tableSetting: {
19
- [x: string]: any;
20
- };
19
+ tableSetting: any;
21
20
  };
22
21
  export default useTableSetting;
@@ -5,9 +5,10 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import { useMemo } from "react";
8
- import { getSettingKeyArrByMode, getTableSettingByCurrentViewMode, getTableSettingFromLocalStorage, mergeColumnSetting, mergeFilterSetting, setFormValuesToLocalStorage } from "../Table/utils";
8
+ import { getSettingKeyArrByMode, getTableSettingByCurrentViewMode, getTableSettingFromLocalStorage, mergeColumnSetting, mergeFilterSetting, setTableSettingToLocalStorage, setFormValuesToLocalStorage } from "../Table/utils";
9
9
  import useEngineContext from "../../../hooks/useEngineContext";
10
10
  import { useMemoizedFn } from "ahooks";
11
+ import React from "react";
11
12
  var useTableSetting = function useTableSetting(params) {
12
13
  var _context$appHelper;
13
14
  var tableId = params.tableId,
@@ -20,7 +21,8 @@ var useTableSetting = function useTableSetting(params) {
20
21
  propsColumns = params.columns,
21
22
  gallery = params.gallery,
22
23
  currentSettingHash = params.currentSettingHash,
23
- exportImport = params.exportImport;
24
+ exportImport = params.exportImport,
25
+ localSettings = params.localSettings;
24
26
  var context = useEngineContext();
25
27
  var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
26
28
  isTerminal = _ref.isTerminal,
@@ -66,7 +68,8 @@ var useTableSetting = function useTableSetting(params) {
66
68
  * 获取需要本地存储的 keyArr
67
69
  */
68
70
  var localStorageSettingKeyArr = useMemo(function () {
69
- return getSettingKeyArrByMode({
71
+ var _localSettings$scope;
72
+ var keys = getSettingKeyArrByMode({
70
73
  filter: filter,
71
74
  columnSetting: columnSetting,
72
75
  dataSourceGroup: dataSourceGroup,
@@ -74,6 +77,13 @@ var useTableSetting = function useTableSetting(params) {
74
77
  mode: "localStorage",
75
78
  currentViewMode: currentViewMode
76
79
  });
80
+ // 本地记忆:filters 范围 -> 存储到 filter 字段
81
+ if (localSettings !== null && localSettings !== void 0 && localSettings.enable && (_localSettings$scope = localSettings.scope) !== null && _localSettings$scope !== void 0 && _localSettings$scope.includes("filters")) {
82
+ if (!keys.includes("filters")) {
83
+ keys.push("filters");
84
+ }
85
+ }
86
+ return keys;
77
87
  }, [tableId, filter, columnSetting, dataSourceGroup, sort, currentViewMode]);
78
88
  var defaultKeyArr = useMemo(function () {
79
89
  return getSettingKeyArrByMode({
@@ -123,6 +133,8 @@ var useTableSetting = function useTableSetting(params) {
123
133
  compactMode: (mergedSetting === null || mergedSetting === void 0 || (_mergedSetting$item3 = mergedSetting[item]) === null || _mergedSetting$item3 === void 0 ? void 0 : _mergedSetting$item3.compactMode) || defaultGalleryCoverSetting.compactMode,
124
134
  isShowLabel: (_mergedSetting$item$i = mergedSetting === null || mergedSetting === void 0 || (_mergedSetting$item4 = mergedSetting[item]) === null || _mergedSetting$item4 === void 0 ? void 0 : _mergedSetting$item4.isShowLabel) !== null && _mergedSetting$item$i !== void 0 ? _mergedSetting$item$i : defaultGalleryCoverSetting.isShowLabel
125
135
  });
136
+ } else if (item === "filters") {
137
+ setting[item] = (mergedSetting === null || mergedSetting === void 0 ? void 0 : mergedSetting[item]) || {};
126
138
  } else {
127
139
  setting[item] = mergedSetting === null || mergedSetting === void 0 ? void 0 : mergedSetting[item];
128
140
  }
@@ -164,9 +176,28 @@ var useTableSetting = function useTableSetting(params) {
164
176
  * @param values
165
177
  */
166
178
  var setTableSetting = useMemoizedFn(function (values) {
179
+ var _localSettings$scope2;
180
+ // 计算需要存储的 filter 值(仅当开启本地记忆且包含 filters 时)
181
+ var valuesForSave = values;
182
+ if (localSettings !== null && localSettings !== void 0 && localSettings.enable && (_localSettings$scope2 = localSettings.scope) !== null && _localSettings$scope2 !== void 0 && _localSettings$scope2.includes("filters")) {
183
+ var excluded = new Set((localSettings === null || localSettings === void 0 ? void 0 : localSettings.excludedFilterFields) || []);
184
+ var filterValue = {};
185
+ ((filter === null || filter === void 0 ? void 0 : filter.list) || []).forEach(function (item) {
186
+ var rawName = item === null || item === void 0 ? void 0 : item.name;
187
+ if (!rawName) return;
188
+ var key = Array.isArray(rawName) ? rawName.join(",") : String(rawName);
189
+ if (excluded.has(key)) return;
190
+ if (values.hasOwnProperty(key)) {
191
+ filterValue[key] = values[key];
192
+ }
193
+ });
194
+ valuesForSave = _objectSpread(_objectSpread({}, values), {}, {
195
+ filters: filterValue
196
+ });
197
+ }
167
198
  var result = setFormValuesToLocalStorage({
168
199
  tableId: tableId,
169
- allValues: values,
200
+ allValues: valuesForSave,
170
201
  keys: localStorageSettingKeyArr,
171
202
  currentViewMode: currentViewMode,
172
203
  currentSettingHash: currentSettingHash
@@ -187,8 +218,85 @@ var useTableSetting = function useTableSetting(params) {
187
218
  */
188
219
  });
189
220
  var tableSetting = useMemo(function () {
190
- return _objectSpread(_objectSpread({}, tableLocalSetting), defaultTableSetting);
221
+ var _localSettings$scope3;
222
+ var merged = _objectSpread(_objectSpread({}, tableLocalSetting), defaultTableSetting);
223
+ // 将本地记忆的 filter 扁平化注入初始表单值(不改变存储结构)
224
+ if (localSettings !== null && localSettings !== void 0 && localSettings.enable && (_localSettings$scope3 = localSettings.scope) !== null && _localSettings$scope3 !== void 0 && _localSettings$scope3.includes("filters")) {
225
+ var persistedFilter = tableLocalSetting === null || tableLocalSetting === void 0 ? void 0 : tableLocalSetting.filters;
226
+ if (persistedFilter && _typeof(persistedFilter) === "object") {
227
+ return _objectSpread(_objectSpread({}, merged), persistedFilter);
228
+ }
229
+ }
230
+ return merged;
191
231
  }, [tableLocalSetting, defaultTableSetting]);
232
+
233
+ /**
234
+ * 当刷新后获得新的 localSettings(scope 或 excludedFilterFields 变化)时,
235
+ * 根据最新规则调整已存储的 filters
236
+ */
237
+ // 对本地已存储 filters 做一次对齐(仅在必要时写回)
238
+ useMemo(function () {
239
+ try {
240
+ var _localSettings$scope4;
241
+ if (!tableId) return;
242
+ var current = getTableSettingByCurrentViewMode(tableId, currentViewMode) || {};
243
+ var persistedFilters = (current === null || current === void 0 ? void 0 : current.filters) || {};
244
+ var nextFilters = _objectSpread({}, persistedFilters);
245
+ var shouldUpdate = false;
246
+ var enableFiltersMemory = !!(localSettings !== null && localSettings !== void 0 && localSettings.enable && (_localSettings$scope4 = localSettings.scope) !== null && _localSettings$scope4 !== void 0 && _localSettings$scope4.includes("filters"));
247
+ if (!enableFiltersMemory) {
248
+ if (Object.keys(persistedFilters || {}).length > 0) {
249
+ nextFilters = {};
250
+ shouldUpdate = true;
251
+ }
252
+ } else {
253
+ var names = new Set();
254
+ if ( /*#__PURE__*/React.isValidElement(filter)) {
255
+ names = new Set(((filter === null || filter === void 0 ? void 0 : filter.items) || []).filter(function (item) {
256
+ return !item.isHidden;
257
+ }).map(function (item) {
258
+ var rawName = item === null || item === void 0 ? void 0 : item.value;
259
+ if (!rawName) return undefined;
260
+ return Array.isArray(rawName) ? rawName.join(",") : String(rawName);
261
+ }));
262
+ } else {
263
+ names = new Set(((filter === null || filter === void 0 ? void 0 : filter.list) || []).map(function (item) {
264
+ var rawName = item === null || item === void 0 ? void 0 : item.name;
265
+ if (!rawName) return undefined;
266
+ return Array.isArray(rawName) ? rawName.join(",") : String(rawName);
267
+ }).filter(Boolean));
268
+ }
269
+ var excluded = new Set((localSettings === null || localSettings === void 0 ? void 0 : localSettings.excludedFilterFields) || []);
270
+ var allowed = new Set(Array.from(names).filter(function (k) {
271
+ return !excluded.has(k);
272
+ }));
273
+ var filtered = {};
274
+ Object.keys(persistedFilters || {}).forEach(function (k) {
275
+ if (allowed.has(k)) {
276
+ filtered[k] = persistedFilters[k];
277
+ } else {
278
+ shouldUpdate = true;
279
+ }
280
+ });
281
+ if (Object.keys(filtered).length !== Object.keys(persistedFilters || {}).length) {
282
+ shouldUpdate = true;
283
+ }
284
+ nextFilters = filtered;
285
+ }
286
+ if (shouldUpdate) {
287
+ setTableSettingToLocalStorage({
288
+ tableId: tableId,
289
+ tableSettingObj: {
290
+ filters: nextFilters
291
+ },
292
+ currentViewMode: currentViewMode,
293
+ currentSettingHash: currentSettingHash
294
+ });
295
+ }
296
+ } catch (e) {
297
+ // ignore
298
+ }
299
+ }, []);
192
300
  return {
193
301
  setTableSetting: setTableSetting,
194
302
  tableSetting: tableSetting
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["dataSource", "columns", "dispatch", "style", "filter", "sort", "buttons", "actionButtons", "title", "showTitle", "subTitle", "showSubTitle", "summary", "onValuesChange", "columnSetting", "dataSourceGroup", "view", "gallery", "currentSettingKey", "exportImport", "currentComponentId", "tabs"];
2
+ var _excluded = ["dataSource", "columns", "dispatch", "style", "filter", "sort", "buttons", "actionButtons", "title", "showTitle", "subTitle", "showSubTitle", "summary", "onValuesChange", "columnSetting", "dataSourceGroup", "localSettings", "view", "gallery", "currentSettingKey", "exportImport", "currentComponentId", "tabs"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -24,7 +24,7 @@ import useEngineContext from "../../hooks/useEngineContext";
24
24
  import Actions from "./Actions";
25
25
  import Header from "./Header";
26
26
  import Summary from "./Summary";
27
- import { clearTableSettingToLocalStorage, getCurrentViewModeFromLocalStorage, getHash, getTableSettingFromLocalStorage, mergeColumnSetting, omit, stringify } from "./Table/utils";
27
+ import { clearTableSettingToLocalStorage, getCurrentViewModeFromLocalStorage, getTableSettingByCurrentViewMode, getHash, getTableSettingFromLocalStorage, mergeColumnSetting, omit, stringify } from "./Table/utils";
28
28
  import View from "./View";
29
29
  import useTableSetting from "./hooks/useTableSetting";
30
30
  import useTransDataSourceGroupSetting from "./hooks/useTransDataSourceGroupSetting";
@@ -58,6 +58,7 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
58
58
  _onValuesChange = props.onValuesChange,
59
59
  columnSetting = props.columnSetting,
60
60
  propsDataSourceGroup = props.dataSourceGroup,
61
+ _localSettings = props.localSettings,
61
62
  _props$view = props.view,
62
63
  view = _props$view === void 0 ? defaultView : _props$view,
63
64
  gallery = props.gallery,
@@ -162,7 +163,8 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
162
163
  view: view,
163
164
  currentViewMode: currentViewMode,
164
165
  gallery: gallery,
165
- currentSettingHash: currentSettingHash
166
+ currentSettingHash: currentSettingHash,
167
+ localSettings: _localSettings
166
168
  }),
167
169
  setTableSetting = _useTableSetting.setTableSetting,
168
170
  tableSetting = _useTableSetting.tableSetting;
@@ -246,6 +248,15 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
246
248
  useImperativeHandle(ref, function () {
247
249
  if (wrapRef.current) {
248
250
  wrapRef.current.formInstance = form;
251
+ wrapRef.current.getCachedFilters = function () {
252
+ try {
253
+ if (!tableId) return {};
254
+ var setting = getTableSettingByCurrentViewMode(tableId, currentViewMode);
255
+ return (setting === null || setting === void 0 ? void 0 : setting.filters) || {};
256
+ } catch (e) {
257
+ return {};
258
+ }
259
+ };
249
260
  }
250
261
  // forwardRef 后需要返回元素才能选中
251
262
  return wrapRef.current;
@@ -193,6 +193,21 @@ export declare type ExportImportType = {
193
193
  apiUrl?: ApiProps;
194
194
  otherParams?: any;
195
195
  };
196
+ /**
197
+ * 设置记忆范围
198
+ */
199
+ export declare type LocalSettingsScope = "filters" | "sorting" | "columns";
200
+ /**
201
+ * 本地记忆设置
202
+ */
203
+ export declare type LocalSettingsType = {
204
+ /** 启用设置记忆 */
205
+ enable: boolean;
206
+ /** 记忆范围 */
207
+ scope: LocalSettingsScope[];
208
+ /** 不需要记忆的筛选字段(当 scope 包含 filters 时生效) */
209
+ excludedFilterFields?: string[];
210
+ };
196
211
  export declare type GridViewProps = {
197
212
  columns: any;
198
213
  dataSource: any[];
@@ -249,5 +264,7 @@ export declare type GridViewProps = {
249
264
  sortBy?: string;
250
265
  }[];
251
266
  };
267
+ /** 本地记忆设置 */
268
+ localSettings?: LocalSettingsType;
252
269
  };
253
270
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  import './index.less';
3
4
  export interface Version {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AmountProps, RightItemsStyleProps } from './types';
2
3
  import './index.less';
3
4
  export type { AmountProps, RightItemsStyleProps };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { NumberProps } from './types';
2
3
  import './index.less';
3
4
  export type { NumberProps };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface BatchEditorProps {
3
4
  columns: any[];
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItem: (props: any) => JSX.Element;
2
3
  export default FormItem;
@@ -43,7 +43,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
43
43
  }) => JSX.Element;
44
44
  export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
45
45
  options?: any;
46
- optionSourceType?: "default" | "custom" | "api" | undefined;
46
+ optionSourceType?: "custom" | "default" | "api" | undefined;
47
47
  labelField: string;
48
48
  valueField: string;
49
49
  extraParams?: Record<string, any> | undefined;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DataSourceImage: (props: import("../utils").ParsedProps) => JSX.Element;
2
3
  export default DataSourceImage;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DataSourceQRCode: (props: any) => JSX.Element;
2
3
  export default DataSourceQRCode;
@@ -56,6 +56,7 @@ var BaseTable = (props, ref) => {
56
56
  columns: propsColumns,
57
57
  dataSource,
58
58
  operationContent,
59
+ currentSettingKey,
59
60
  ...others
60
61
  } = props;
61
62
  const tableRef = (0, import_react.useRef)(null);
@@ -70,6 +71,9 @@ var BaseTable = (props, ref) => {
70
71
  }
71
72
  return originData;
72
73
  }, [originData, __designMode]);
74
+ const formatCurrentSettingKey = (0, import_react.useMemo)(() => {
75
+ return currentSettingKey || props.__id || "";
76
+ }, [currentSettingKey]);
73
77
  const { dataSourceKey, dataSourceKeyRef } = (0, import_useDataSourceKey.default)();
74
78
  const beforeClose = (0, import_react.useRef)();
75
79
  const setBeforeClose = (0, import_react.useCallback)((fn) => {
@@ -84,7 +88,7 @@ var BaseTable = (props, ref) => {
84
88
  Container,
85
89
  drawerContent
86
90
  } = (0, import_useDrawerState.default)(operationContent);
87
- const { queryPageConfig, handleValuesChange, refreshData, handleFilterChange, refreshCurrentPage } = (0, import_useTableQuery.default)(props);
91
+ const { queryPageConfig, handleValuesChange, refreshData, handleFilterChange, refreshCurrentPage, getInitialValues } = (0, import_useTableQuery.default)(props, formatCurrentSettingKey);
88
92
  const handleAllValuesChange = (changedValues, values) => {
89
93
  var _a;
90
94
  (_a = props == null ? void 0 : props.onValuesChange) == null ? void 0 : _a.call(props, changedValues, values);
@@ -130,7 +134,8 @@ var BaseTable = (props, ref) => {
130
134
  closeDrawer,
131
135
  refreshData,
132
136
  handleFilterChange,
133
- tableRef
137
+ tableRef,
138
+ getInitialValues
134
139
  });
135
140
  (0, import_react.useImperativeHandle)(ref, () => {
136
141
  if (tableRef.current) {
@@ -147,6 +152,7 @@ var BaseTable = (props, ref) => {
147
152
  ref: tableRef,
148
153
  ...others,
149
154
  ...transformProps,
155
+ currentSettingKey: formatCurrentSettingKey,
150
156
  dataSource: (data == null ? void 0 : data.data) || [],
151
157
  loading: list == null ? void 0 : list.loading,
152
158
  onValuesChange: handleAllValuesChange
@@ -21,6 +21,7 @@ interface FilterProps {
21
21
  placeholder: string;
22
22
  key: string;
23
23
  };
24
+ getInitialValues?: () => Record<string, any>;
24
25
  }
25
26
  declare const Filter: (props: FilterProps) => JSX.Element;
26
27
  export default Filter;
@@ -52,7 +52,8 @@ var Filter = (props) => {
52
52
  handleValuesChange,
53
53
  search,
54
54
  filterBy,
55
- show
55
+ show,
56
+ getInitialValues
56
57
  } = props;
57
58
  const [form] = import_antd.Form.useForm();
58
59
  const { dataSource } = (0, import_useDataSource.default)();
@@ -155,6 +156,9 @@ var Filter = (props) => {
155
156
  }
156
157
  ) : null;
157
158
  }, [search]);
159
+ const initialValues = (0, import_react.useMemo)(() => {
160
+ return getInitialValues == null ? void 0 : getInitialValues();
161
+ }, [search, filterBy]);
158
162
  return /* @__PURE__ */ import_react.default.createElement(
159
163
  import_antd.Form,
160
164
  {
@@ -163,7 +167,8 @@ var Filter = (props) => {
163
167
  size: "large",
164
168
  layout: "inline",
165
169
  className: "filter-form-wrapper",
166
- onValuesChange
170
+ onValuesChange,
171
+ initialValues
167
172
  },
168
173
  searchDom,
169
174
  filterDom,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterItemProps } from '../../../filter/types';
2
3
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
3
4
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const useDataSourceKey: () => {
2
3
  dataSourceKey: string | undefined;
3
4
  dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
@@ -9,6 +9,7 @@ interface UseTablePropsProps {
9
9
  refreshData: () => void;
10
10
  handleFilterChange: (changedFields: any, allFields: any) => void;
11
11
  tableRef: any;
12
+ getInitialValues: () => Record<string, any>;
12
13
  }
13
14
  /**
14
15
  * 处理table的props
@@ -17,7 +18,8 @@ interface UseTablePropsProps {
17
18
  * @returns
18
19
  */
19
20
  declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
21
+ currentComponentId: any;
22
+ title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
21
23
  pagination: {
22
24
  total: number;
23
25
  current: number;
@@ -26,11 +28,13 @@ declare const useTableProps: (props: UseTablePropsProps) => {
26
28
  showSizeChanger: boolean;
27
29
  };
28
30
  columns: import("./useColumns").Column[];
29
- subTitle: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
31
+ subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
30
32
  buttons: any[] | null;
31
- filter: JSX.Element | null;
33
+ filter: any;
32
34
  onRow: (record: any) => any;
33
35
  actionButtons: any[] | null;
36
+ __id?: string | undefined;
37
+ currentSettingKey?: string | undefined;
34
38
  titleButtons?: {
35
39
  show: boolean;
36
40
  maxCount: number;
@@ -42,18 +46,12 @@ declare const useTableProps: (props: UseTablePropsProps) => {
42
46
  items: OperationItem[];
43
47
  } | undefined;
44
48
  operation?: {
45
- /**
46
- * 处理table的props
47
- * 转换title
48
- * @param props
49
- * @returns
50
- */
51
49
  show: boolean;
52
50
  title: string;
53
51
  width: number;
54
52
  align: "center" | "left" | "right";
55
53
  fixed: false | "left" | "right";
56
- type: "button" | "link";
54
+ type: "link" | "button";
57
55
  items: OperationItem[];
58
56
  } | undefined;
59
57
  operationContent?: {
@@ -95,5 +93,6 @@ declare const useTableProps: (props: UseTablePropsProps) => {
95
93
  create?: Record<string, any> | undefined;
96
94
  destroy?: Record<string, any> | undefined;
97
95
  } | undefined;
96
+ localSettings?: import("../../../table/types").LocalSettingsType | undefined;
98
97
  };
99
98
  export default useTableProps;