@pisell/materials 3.3.85 → 3.3.87

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 (392) 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 +6 -6
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +21 -21
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +21 -21
  11. package/es/components/Pagination/index.d.ts +4 -5
  12. package/es/components/Pagination/index.js +77 -59
  13. package/es/components/Pagination/index.less +13 -7
  14. package/es/components/PisellFields/index.d.ts +2 -2
  15. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  16. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  17. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  18. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  19. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  20. package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
  21. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +21 -0
  22. package/es/components/dataSourceComponents/fields/index.d.ts +7 -7
  23. package/es/components/filter/components/Dropdown/index.js +6 -2
  24. package/es/components/filter/components/FilterButton/index.js +19 -4
  25. package/es/components/filter/components/FilterButton/types.d.ts +8 -0
  26. package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.d.ts +21 -0
  27. package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +90 -0
  28. package/es/components/filter/components/FilterItem/index.d.ts +3 -3
  29. package/es/components/filter/components/FilterItem/index.js +138 -7
  30. package/es/components/filter/components/FilterItem/index.less +90 -0
  31. package/es/components/filter/types.d.ts +4 -2
  32. package/es/components/pisellBatchActionBar/PisellBatchActionBar.js +38 -29
  33. package/es/components/pisellCurrency/PisellCurrency.less +163 -25
  34. package/es/components/pisellCurrency/PisellCurrency.stories.js +1 -1
  35. package/es/components/pisellCurrency/index.d.ts +2 -1
  36. package/es/components/pisellCurrency/index.js +16 -1
  37. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/index.d.ts +7 -1
  38. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/index.js +30 -3
  39. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +28 -0
  40. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/utils.js +68 -0
  41. package/es/components/pisellDataSourceContainer/components/Table/index.d.ts +1 -0
  42. package/es/components/pisellDataSourceContainer/components/Table/index.js +5 -3
  43. package/es/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +1 -0
  44. package/es/components/pisellDataSourceContainer/components/Table/useColumns.js +37 -15
  45. package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +1 -0
  46. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +21 -15
  47. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.less +2 -1
  48. package/es/components/pisellDateTimeDisplay/hooks/useCurrentTime.js +6 -4
  49. package/es/components/pisellDateTimeDisplay/utils/localeUtils.d.ts +2 -2
  50. package/es/components/pisellDateTimeDisplay/utils/localeUtils.js +15 -4
  51. package/es/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +1 -0
  52. package/es/components/pisellDateTimeDisplay/utils/relativeDay.js +4 -2
  53. package/es/components/pisellEmail/PisellEmail.less +119 -10
  54. package/es/components/pisellEmail/PisellEmail.stories.js +1 -1
  55. package/es/components/pisellEmail/index.d.ts +3 -1
  56. package/es/components/pisellEmail/index.js +17 -1
  57. package/es/components/pisellFilter/index.js +76 -10
  58. package/es/components/pisellFind/index.js +11 -2
  59. package/es/components/pisellGridPro/ToolBar/index.less +23 -0
  60. package/es/components/pisellGridPro/index.d.ts +4 -0
  61. package/es/components/pisellLongText/PisellLongText.less +72 -4
  62. package/es/components/pisellLongText/PisellLongText.stories.js +1 -1
  63. package/es/components/pisellLongText/index.d.ts +2 -1
  64. package/es/components/pisellLongText/index.js +16 -1
  65. package/es/components/pisellLookup/PisellLookup.js +18 -9
  66. package/es/components/pisellLookup/PisellLookup.less +39 -16
  67. package/es/components/pisellLookup/components/LookupTrigger.js +14 -4
  68. package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +159 -124
  69. package/es/components/pisellMultipleSelect/PisellMultipleSelect.stories.js +1 -1
  70. package/es/components/pisellMultipleSelect/components/EditView.js +8 -2
  71. package/es/components/pisellMultipleSelect/components/ReadOnlyView.d.ts +1 -1
  72. package/es/components/pisellMultipleSelect/components/ReadOnlyView.js +15 -11
  73. package/es/components/pisellMultipleSelect/index.d.ts +2 -1
  74. package/es/components/pisellMultipleSelect/index.js +16 -1
  75. package/es/components/pisellNumber/PisellNumber.less +135 -17
  76. package/es/components/pisellNumber/PisellNumber.stories.js +1 -1
  77. package/es/components/pisellNumber/index.d.ts +2 -1
  78. package/es/components/pisellNumber/index.js +16 -1
  79. package/es/components/pisellPercent/PisellPercent.less +142 -24
  80. package/es/components/pisellPercent/PisellPercent.stories.js +1 -1
  81. package/es/components/pisellPercent/index.d.ts +2 -1
  82. package/es/components/pisellPercent/index.js +16 -1
  83. package/es/components/pisellPhone/PisellPhone.less +122 -27
  84. package/es/components/pisellPhone/PisellPhone.stories.js +1 -1
  85. package/es/components/pisellPhone/components/EditView.js +1 -1
  86. package/es/components/pisellPhone/components/ReadOnlyView.js +15 -6
  87. package/es/components/pisellPhone/index.d.ts +2 -1
  88. package/es/components/pisellPhone/index.js +16 -1
  89. package/es/components/pisellRating/PisellRating.less +20 -12
  90. package/es/components/pisellRating/PisellRating.stories.js +1 -1
  91. package/es/components/pisellRating/index.d.ts +2 -1
  92. package/es/components/pisellRating/index.js +16 -1
  93. package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +8 -0
  94. package/es/components/pisellRecordBoard/PisellRecordBoard.js +243 -0
  95. package/es/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +81 -0
  96. package/es/components/pisellRecordBoard/PisellRecordBoard.stories.js +2358 -0
  97. package/es/components/pisellRecordBoard/context/RecordBoardContext.js +2 -0
  98. package/es/components/pisellRecordBoard/context/RecordBoardProvider.js +13 -0
  99. package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.js +29 -0
  100. package/es/components/pisellRecordBoard/index.d.ts +35 -0
  101. package/es/components/pisellRecordBoard/index.js +23 -0
  102. package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.js +36 -0
  103. package/es/components/pisellRecordBoard/layouts/CardLayout/index.js +20 -0
  104. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
  105. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +242 -0
  106. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.less +100 -0
  107. package/es/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
  108. package/es/components/pisellRecordBoard/layouts/GridLayout/index.js +20 -0
  109. package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
  110. package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.js +90 -0
  111. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +15 -0
  112. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +138 -0
  113. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
  114. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +66 -0
  115. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.less +2 -0
  116. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +14 -0
  117. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.js +66 -0
  118. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.less +78 -0
  119. package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
  120. package/es/components/pisellRecordBoard/shellFrame/Search/index.js +41 -0
  121. package/es/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +112 -0
  122. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +11 -0
  123. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +215 -0
  124. package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +17 -0
  125. package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +77 -0
  126. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +16 -0
  127. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +65 -0
  128. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +41 -0
  129. package/es/components/pisellRecordBoard/shellFrame/index.d.ts +26 -0
  130. package/es/components/pisellRecordBoard/shellFrame/index.js +104 -0
  131. package/es/components/pisellRecordBoard/types.js +1 -0
  132. package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +41 -0
  133. package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +508 -0
  134. package/es/components/pisellRecordBoard/utils/withRecordBoard.js +27 -0
  135. package/es/components/pisellShellFrame/PisellShellFrame.js +107 -0
  136. package/es/components/pisellShellFrame/PisellShellFrame.less +78 -0
  137. package/es/components/pisellShellFrame/PisellShellFrame.stories.js +195 -0
  138. package/es/components/pisellShellFrame/index.js +1 -0
  139. package/es/components/pisellShellFrame/types.js +1 -0
  140. package/es/components/pisellSingleLineText/PisellSingleLineText.stories.js +1 -1
  141. package/es/components/pisellSingleLineText/index.d.ts +2 -1
  142. package/es/components/pisellSingleLineText/index.js +16 -1
  143. package/es/components/pisellSingleSelect/PisellSingleSelect.less +103 -46
  144. package/es/components/pisellSingleSelect/PisellSingleSelect.stories.js +1 -1
  145. package/es/components/pisellSingleSelect/components/EditView.js +8 -2
  146. package/es/components/pisellSingleSelect/components/ReadOnlyView.d.ts +1 -1
  147. package/es/components/pisellSingleSelect/components/ReadOnlyView.js +10 -6
  148. package/es/components/pisellSingleSelect/index.d.ts +2 -1
  149. package/es/components/pisellSingleSelect/index.js +16 -1
  150. package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.js +6 -3
  151. package/es/components/pisellUrl/PisellUrl.less +120 -11
  152. package/es/components/pisellUrl/PisellUrl.stories.js +1 -1
  153. package/es/components/pisellUrl/index.d.ts +3 -1
  154. package/es/components/pisellUrl/index.js +17 -1
  155. package/es/components/pisellWalletPassCard/index.js +1 -1
  156. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  157. package/es/components/select/index.less +18 -2
  158. package/es/components/sort/index.js +25 -3
  159. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  160. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  161. package/es/components/table/Table/utils.d.ts +1 -1
  162. package/es/index.d.ts +6 -2
  163. package/es/index.js +2 -0
  164. package/es/locales/en-US.d.ts +36 -0
  165. package/es/locales/en-US.js +50 -2
  166. package/es/locales/index.js +2 -2
  167. package/es/locales/ja.d.ts +2 -0
  168. package/es/locales/ja.js +2 -0
  169. package/es/locales/pt.d.ts +2 -0
  170. package/es/locales/pt.js +2 -0
  171. package/es/locales/zh-CN.d.ts +36 -0
  172. package/es/locales/zh-CN.js +54 -6
  173. package/es/locales/zh-TW.d.ts +36 -0
  174. package/es/locales/zh-TW.js +54 -6
  175. package/es/utils/tagColor.js +39 -0
  176. package/lib/components/Pagination/index.d.ts +4 -5
  177. package/lib/components/Pagination/index.js +44 -21
  178. package/lib/components/Pagination/index.less +13 -7
  179. package/lib/components/PisellFields/index.d.ts +2 -2
  180. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  181. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  182. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  183. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  184. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  185. package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
  186. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +21 -0
  187. package/lib/components/dataSourceComponents/fields/index.d.ts +7 -7
  188. package/lib/components/filter/components/Dropdown/index.js +9 -2
  189. package/lib/components/filter/components/FilterButton/index.js +14 -3
  190. package/lib/components/filter/components/FilterButton/types.d.ts +8 -0
  191. package/lib/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.d.ts +21 -0
  192. package/lib/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +69 -0
  193. package/lib/components/filter/components/FilterItem/index.d.ts +3 -3
  194. package/lib/components/filter/components/FilterItem/index.js +133 -4
  195. package/lib/components/filter/components/FilterItem/index.less +90 -0
  196. package/lib/components/filter/types.d.ts +4 -2
  197. package/lib/components/pisellBatchActionBar/PisellBatchActionBar.js +26 -23
  198. package/lib/components/pisellCurrency/PisellCurrency.less +163 -25
  199. package/lib/components/pisellCurrency/PisellCurrency.stories.js +1 -1
  200. package/lib/components/pisellCurrency/index.d.ts +2 -1
  201. package/lib/components/pisellCurrency/index.js +7 -0
  202. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/index.d.ts +7 -1
  203. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/index.js +18 -2
  204. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +28 -0
  205. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/utils.js +81 -0
  206. package/lib/components/pisellDataSourceContainer/components/Table/index.d.ts +1 -0
  207. package/lib/components/pisellDataSourceContainer/components/Table/index.js +3 -1
  208. package/lib/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +1 -0
  209. package/lib/components/pisellDataSourceContainer/components/Table/useColumns.js +25 -14
  210. package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +1 -0
  211. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +17 -11
  212. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.less +2 -1
  213. package/lib/components/pisellDateTimeDisplay/hooks/useCurrentTime.js +7 -1
  214. package/lib/components/pisellDateTimeDisplay/utils/localeUtils.d.ts +2 -2
  215. package/lib/components/pisellDateTimeDisplay/utils/localeUtils.js +10 -2
  216. package/lib/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +1 -0
  217. package/lib/components/pisellDateTimeDisplay/utils/relativeDay.js +2 -1
  218. package/lib/components/pisellEmail/PisellEmail.less +119 -10
  219. package/lib/components/pisellEmail/PisellEmail.stories.js +1 -1
  220. package/lib/components/pisellEmail/index.d.ts +3 -1
  221. package/lib/components/pisellEmail/index.js +10 -2
  222. package/lib/components/pisellFilter/index.js +79 -8
  223. package/lib/components/pisellFind/index.js +11 -2
  224. package/lib/components/pisellGridPro/ToolBar/index.less +23 -0
  225. package/lib/components/pisellGridPro/index.d.ts +4 -0
  226. package/lib/components/pisellLongText/PisellLongText.less +72 -4
  227. package/lib/components/pisellLongText/PisellLongText.stories.js +1 -1
  228. package/lib/components/pisellLongText/index.d.ts +2 -1
  229. package/lib/components/pisellLongText/index.js +7 -0
  230. package/lib/components/pisellLookup/PisellLookup.js +12 -6
  231. package/lib/components/pisellLookup/PisellLookup.less +39 -16
  232. package/lib/components/pisellLookup/components/LookupTrigger.js +9 -3
  233. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +159 -124
  234. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.stories.js +1 -1
  235. package/lib/components/pisellMultipleSelect/components/EditView.js +4 -1
  236. package/lib/components/pisellMultipleSelect/components/ReadOnlyView.d.ts +1 -1
  237. package/lib/components/pisellMultipleSelect/components/ReadOnlyView.js +29 -1
  238. package/lib/components/pisellMultipleSelect/index.d.ts +2 -1
  239. package/lib/components/pisellMultipleSelect/index.js +7 -0
  240. package/lib/components/pisellNumber/PisellNumber.less +135 -17
  241. package/lib/components/pisellNumber/PisellNumber.stories.js +1 -1
  242. package/lib/components/pisellNumber/index.d.ts +2 -1
  243. package/lib/components/pisellNumber/index.js +7 -0
  244. package/lib/components/pisellPercent/PisellPercent.less +142 -24
  245. package/lib/components/pisellPercent/PisellPercent.stories.js +1 -1
  246. package/lib/components/pisellPercent/index.d.ts +2 -1
  247. package/lib/components/pisellPercent/index.js +7 -0
  248. package/lib/components/pisellPhone/PisellPhone.less +122 -27
  249. package/lib/components/pisellPhone/PisellPhone.stories.js +1 -1
  250. package/lib/components/pisellPhone/components/EditView.js +1 -1
  251. package/lib/components/pisellPhone/components/ReadOnlyView.js +18 -4
  252. package/lib/components/pisellPhone/index.d.ts +2 -1
  253. package/lib/components/pisellPhone/index.js +7 -0
  254. package/lib/components/pisellRating/PisellRating.less +20 -12
  255. package/lib/components/pisellRating/PisellRating.stories.js +1 -1
  256. package/lib/components/pisellRating/index.d.ts +2 -1
  257. package/lib/components/pisellRating/index.js +7 -0
  258. package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +8 -0
  259. package/lib/components/pisellRecordBoard/PisellRecordBoard.js +263 -0
  260. package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +81 -0
  261. package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.js +1673 -0
  262. package/lib/components/pisellRecordBoard/context/RecordBoardContext.js +30 -0
  263. package/lib/components/pisellRecordBoard/context/RecordBoardProvider.js +46 -0
  264. package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.js +47 -0
  265. package/lib/components/pisellRecordBoard/index.d.ts +35 -0
  266. package/lib/components/pisellRecordBoard/index.js +59 -0
  267. package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.js +46 -0
  268. package/lib/components/pisellRecordBoard/layouts/CardLayout/index.js +46 -0
  269. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
  270. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +264 -0
  271. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.less +100 -0
  272. package/lib/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
  273. package/lib/components/pisellRecordBoard/layouts/GridLayout/index.js +46 -0
  274. package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
  275. package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.js +108 -0
  276. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +15 -0
  277. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +173 -0
  278. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
  279. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +100 -0
  280. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.less +2 -0
  281. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +14 -0
  282. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.js +90 -0
  283. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.less +78 -0
  284. package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
  285. package/lib/components/pisellRecordBoard/shellFrame/Search/index.js +53 -0
  286. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +112 -0
  287. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +11 -0
  288. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +247 -0
  289. package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +17 -0
  290. package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +93 -0
  291. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +16 -0
  292. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +85 -0
  293. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +41 -0
  294. package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +26 -0
  295. package/lib/components/pisellRecordBoard/shellFrame/index.js +137 -0
  296. package/lib/components/pisellRecordBoard/types.js +17 -0
  297. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +41 -0
  298. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.js +365 -0
  299. package/lib/components/pisellRecordBoard/utils/withRecordBoard.js +49 -0
  300. package/lib/components/pisellShellFrame/PisellShellFrame.js +113 -0
  301. package/lib/components/pisellShellFrame/PisellShellFrame.less +78 -0
  302. package/lib/components/pisellShellFrame/PisellShellFrame.stories.js +129 -0
  303. package/lib/components/pisellShellFrame/index.js +40 -0
  304. package/lib/components/pisellShellFrame/types.js +17 -0
  305. package/lib/components/pisellSingleLineText/PisellSingleLineText.stories.js +1 -1
  306. package/lib/components/pisellSingleLineText/index.d.ts +2 -1
  307. package/lib/components/pisellSingleLineText/index.js +7 -0
  308. package/lib/components/pisellSingleSelect/PisellSingleSelect.less +103 -46
  309. package/lib/components/pisellSingleSelect/PisellSingleSelect.stories.js +1 -1
  310. package/lib/components/pisellSingleSelect/components/EditView.js +4 -1
  311. package/lib/components/pisellSingleSelect/components/ReadOnlyView.d.ts +1 -1
  312. package/lib/components/pisellSingleSelect/components/ReadOnlyView.js +12 -9
  313. package/lib/components/pisellSingleSelect/index.d.ts +2 -1
  314. package/lib/components/pisellSingleSelect/index.js +7 -0
  315. package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.js +6 -2
  316. package/lib/components/pisellUrl/PisellUrl.less +120 -11
  317. package/lib/components/pisellUrl/PisellUrl.stories.js +1 -1
  318. package/lib/components/pisellUrl/index.d.ts +3 -1
  319. package/lib/components/pisellUrl/index.js +10 -2
  320. package/lib/components/pisellWalletPassCard/index.js +9 -2
  321. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  322. package/lib/components/select/index.less +18 -2
  323. package/lib/components/sort/index.js +13 -3
  324. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  325. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  326. package/lib/components/table/Table/utils.d.ts +1 -1
  327. package/lib/index.d.ts +6 -2
  328. package/lib/index.js +6 -0
  329. package/lib/locales/en-US.d.ts +36 -0
  330. package/lib/locales/en-US.js +42 -2
  331. package/lib/locales/index.js +2 -2
  332. package/lib/locales/ja.d.ts +2 -0
  333. package/lib/locales/ja.js +2 -0
  334. package/lib/locales/pt.d.ts +2 -0
  335. package/lib/locales/pt.js +2 -0
  336. package/lib/locales/zh-CN.d.ts +36 -0
  337. package/lib/locales/zh-CN.js +46 -6
  338. package/lib/locales/zh-TW.d.ts +36 -0
  339. package/lib/locales/zh-TW.js +46 -6
  340. package/lib/utils/tagColor.js +60 -0
  341. package/lowcode/auto-resize-text/meta.ts +1 -1
  342. package/package.json +3 -3
  343. package/es/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.d.ts +0 -7
  344. package/es/components/pisellDateTimeDisplay/formats/index.d.ts +0 -1
  345. package/es/components/pisellDateTimeDisplay/types.d.ts +0 -347
  346. package/es/components/pisellDateTimeDisplay/utils/formatTime.d.ts +0 -19
  347. package/es/components/pisellDateTimeDisplay/utils/getRefreshInterval.d.ts +0 -18
  348. package/es/components/pisellLookup/PisellLookup.d.ts +0 -4
  349. package/es/components/pisellLookup/PisellLookup.stories.d.ts +0 -129
  350. package/es/components/pisellLookup/components/HotWords.d.ts +0 -7
  351. package/es/components/pisellLookup/components/LookupAuxiliary.d.ts +0 -7
  352. package/es/components/pisellLookup/components/LookupResultHost.d.ts +0 -7
  353. package/es/components/pisellLookup/components/SearchHistory.d.ts +0 -7
  354. package/es/components/pisellLookup/components/SuggestWords.d.ts +0 -7
  355. package/es/components/pisellLookup/components/index.d.ts +0 -9
  356. package/es/components/pisellLookup/hooks/index.d.ts +0 -6
  357. package/es/components/pisellLookup/hooks/useSearchHistory.d.ts +0 -48
  358. package/es/components/pisellLookup/index.d.ts +0 -6
  359. package/es/components/pisellLookup/types.d.ts +0 -666
  360. package/es/components/pisellLookup/utils/index.d.ts +0 -5
  361. package/es/components/pisellLookup/utils/trigger.d.ts +0 -42
  362. package/es/components/pisellSort/type.d.ts +0 -7
  363. package/es/components/pisellTimeRangeDisplay/types.d.ts +0 -137
  364. package/es/components/pisellTimeRangeDisplay/utils/parseTimeRange.d.ts +0 -23
  365. package/es/components/sort/types.d.ts +0 -20
  366. package/es/components/virtualInput/index.d.ts +0 -29
  367. package/es/hooks/useThemeTokens.d.ts +0 -7
  368. package/lib/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.d.ts +0 -7
  369. package/lib/components/pisellDateTimeDisplay/formats/index.d.ts +0 -1
  370. package/lib/components/pisellDateTimeDisplay/types.d.ts +0 -347
  371. package/lib/components/pisellDateTimeDisplay/utils/formatTime.d.ts +0 -19
  372. package/lib/components/pisellDateTimeDisplay/utils/getRefreshInterval.d.ts +0 -18
  373. package/lib/components/pisellLookup/PisellLookup.d.ts +0 -4
  374. package/lib/components/pisellLookup/PisellLookup.stories.d.ts +0 -129
  375. package/lib/components/pisellLookup/components/HotWords.d.ts +0 -7
  376. package/lib/components/pisellLookup/components/LookupAuxiliary.d.ts +0 -7
  377. package/lib/components/pisellLookup/components/LookupResultHost.d.ts +0 -7
  378. package/lib/components/pisellLookup/components/SearchHistory.d.ts +0 -7
  379. package/lib/components/pisellLookup/components/SuggestWords.d.ts +0 -7
  380. package/lib/components/pisellLookup/components/index.d.ts +0 -9
  381. package/lib/components/pisellLookup/hooks/index.d.ts +0 -6
  382. package/lib/components/pisellLookup/hooks/useSearchHistory.d.ts +0 -48
  383. package/lib/components/pisellLookup/index.d.ts +0 -6
  384. package/lib/components/pisellLookup/types.d.ts +0 -666
  385. package/lib/components/pisellLookup/utils/index.d.ts +0 -5
  386. package/lib/components/pisellLookup/utils/trigger.d.ts +0 -42
  387. package/lib/components/pisellSort/type.d.ts +0 -7
  388. package/lib/components/pisellTimeRangeDisplay/types.d.ts +0 -137
  389. package/lib/components/pisellTimeRangeDisplay/utils/parseTimeRange.d.ts +0 -23
  390. package/lib/components/sort/types.d.ts +0 -20
  391. package/lib/components/virtualInput/index.d.ts +0 -29
  392. package/lib/hooks/useThemeTokens.d.ts +0 -7
@@ -0,0 +1,365 @@
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/pisellRecordBoard/utils/recordBoardColumns.tsx
30
+ var recordBoardColumns_exports = {};
31
+ __export(recordBoardColumns_exports, {
32
+ computeUniformColumnSummary: () => computeUniformColumnSummary,
33
+ deriveFilterFromColumns: () => deriveFilterFromColumns,
34
+ deriveSortFromColumns: () => deriveSortFromColumns,
35
+ getRecordBoardColumnKey: () => getRecordBoardColumnKey,
36
+ processColumnsForGrid: () => processColumnsForGrid
37
+ });
38
+ module.exports = __toCommonJS(recordBoardColumns_exports);
39
+ var import_react = __toESM(require("react"));
40
+ var import_pisellSingleLineText = require("../../pisellSingleLineText");
41
+ var import_pisellLongText = require("../../pisellLongText");
42
+ var import_pisellEmail = require("../../pisellEmail");
43
+ var import_pisellPhone = require("../../pisellPhone");
44
+ var import_pisellUrl = require("../../pisellUrl");
45
+ var import_pisellNumber = require("../../pisellNumber");
46
+ var import_pisellCurrency = require("../../pisellCurrency");
47
+ var import_pisellPercent = require("../../pisellPercent");
48
+ var import_pisellRating = require("../../pisellRating");
49
+ var import_pisellSingleSelect = require("../../pisellSingleSelect");
50
+ var import_pisellMultipleSelect = require("../../pisellMultipleSelect");
51
+ var import_pisellDateTimeDisplay = require("../../pisellDateTimeDisplay");
52
+ var FIELD_TYPE_TO_READ_COMPONENT = {
53
+ singleLineText: import_pisellSingleLineText.PisellSingleLineText,
54
+ longText: import_pisellLongText.PisellLongText,
55
+ email: import_pisellEmail.PisellEmail,
56
+ phone: import_pisellPhone.PisellPhone,
57
+ url: import_pisellUrl.PisellUrl,
58
+ number: import_pisellNumber.PisellNumber,
59
+ currency: import_pisellCurrency.PisellCurrency,
60
+ percent: import_pisellPercent.PisellPercent,
61
+ rating: import_pisellRating.PisellRating,
62
+ singleSelect: import_pisellSingleSelect.PisellSingleSelect,
63
+ multipleSelect: import_pisellMultipleSelect.PisellMultipleSelect,
64
+ dateTime: import_pisellDateTimeDisplay.PisellDateTimeDisplay
65
+ };
66
+ var FIELD_TYPE_TO_SORT_OPTIONS_DEFAULT = {
67
+ singleLineText: { type: "string" },
68
+ longText: { type: "string" },
69
+ email: { type: "string" },
70
+ phone: { type: "string" },
71
+ url: { type: "string" },
72
+ number: { type: "number" },
73
+ currency: { type: "number" },
74
+ percent: { type: "number" },
75
+ rating: { type: "number" },
76
+ singleSelect: { type: "option" },
77
+ multipleSelect: { type: "option" },
78
+ dateTime: { type: "date" }
79
+ };
80
+ function getSortOptionForFieldType(fieldType) {
81
+ const Com = FIELD_TYPE_TO_READ_COMPONENT[fieldType];
82
+ const fromComponent = Com && Com.SortOptions;
83
+ const fallback = FIELD_TYPE_TO_SORT_OPTIONS_DEFAULT[fieldType];
84
+ const opts = fromComponent ?? fallback;
85
+ return opts ? { ...fallback, ...opts } : null;
86
+ }
87
+ var FIELD_TYPE_TO_FILTER_TYPE = {
88
+ singleLineText: "input",
89
+ longText: "input",
90
+ email: "input",
91
+ phone: "input",
92
+ url: "input",
93
+ number: "input",
94
+ currency: "input",
95
+ percent: "input",
96
+ rating: "single",
97
+ singleSelect: "single",
98
+ multipleSelect: "single",
99
+ dateTime: "rangePickerNew"
100
+ };
101
+ function getColumnKey(column) {
102
+ const key = column.key ?? (Array.isArray(column.dataIndex) ? column.dataIndex.join(".") : column.dataIndex);
103
+ return typeof key === "string" ? key : "";
104
+ }
105
+ function getRecordBoardColumnKey(column) {
106
+ return getColumnKey(column);
107
+ }
108
+ function getColumnLabel(column) {
109
+ const title = column.title;
110
+ if (typeof title === "string") return title;
111
+ return getColumnKey(column) || "";
112
+ }
113
+ function getRecordValue(record, dataIndex) {
114
+ if (record == null || dataIndex == null) return void 0;
115
+ const path = Array.isArray(dataIndex) ? dataIndex : [dataIndex];
116
+ return path.reduce((r, k) => r != null && typeof r === "object" ? r[k] : void 0, record);
117
+ }
118
+ function isEmptyValue(v) {
119
+ return v == null || v === "";
120
+ }
121
+ function isComparablePrimitive(v) {
122
+ return typeof v === "string" || typeof v === "number";
123
+ }
124
+ function computeUniformColumnSummary(data, columns) {
125
+ const uniformHiddenColumnKeys = [];
126
+ const summaryItems = [];
127
+ if (!Array.isArray(data) || data.length === 0) return { uniformHiddenColumnKeys, summaryItems };
128
+ for (const column of columns) {
129
+ const collapseWhenUniform = column.collapseWhenUniform !== false;
130
+ if (!collapseWhenUniform) continue;
131
+ const columnKey = getColumnKey(column);
132
+ if (!columnKey) continue;
133
+ const dataIndex = column.dataIndex;
134
+ const getVal = typeof column.uniformCompare === "function" ? (record) => column.uniformCompare(
135
+ getRecordValue(record, Array.isArray(dataIndex) ? dataIndex : dataIndex),
136
+ record
137
+ ) : (record) => getRecordValue(record, Array.isArray(dataIndex) ? dataIndex : dataIndex);
138
+ const values = data.map(getVal);
139
+ const first = values[0];
140
+ if (first === void 0 || first === null) continue;
141
+ const cellValue = getRecordValue(data[0], Array.isArray(dataIndex) ? dataIndex : dataIndex);
142
+ if (values.every((v) => isEmptyValue(v))) {
143
+ uniformHiddenColumnKeys.push(columnKey);
144
+ summaryItems.push({
145
+ columnKey,
146
+ title: getColumnLabel(column),
147
+ type: "empty",
148
+ value: void 0,
149
+ cellValue,
150
+ record: data[0]
151
+ });
152
+ continue;
153
+ }
154
+ const comparable = isComparablePrimitive(first);
155
+ if (!comparable) continue;
156
+ const allSame = values.every((v) => isEmptyValue(v) && isEmptyValue(first) || v === first);
157
+ if (!allSame) continue;
158
+ uniformHiddenColumnKeys.push(columnKey);
159
+ summaryItems.push({
160
+ columnKey,
161
+ title: getColumnLabel(column),
162
+ type: "uniform",
163
+ displayValue: first != null && first !== "" ? String(first) : void 0,
164
+ value: first,
165
+ cellValue,
166
+ record: data[0]
167
+ });
168
+ }
169
+ return { uniformHiddenColumnKeys, summaryItems };
170
+ }
171
+ function normalizeOptions(list) {
172
+ if (!Array.isArray(list)) return [];
173
+ return list.map(
174
+ (item) => item && typeof item === "object" && "label" in item && "value" in item ? { label: String(item.label), value: item.value } : { label: String(item), value: item }
175
+ );
176
+ }
177
+ function AsyncOptionsReadCell({
178
+ getOptions,
179
+ value,
180
+ fieldType,
181
+ fieldProps
182
+ }) {
183
+ const [options, setOptions] = (0, import_react.useState)([]);
184
+ const Com = FIELD_TYPE_TO_READ_COMPONENT[fieldType];
185
+ (0, import_react.useEffect)(() => {
186
+ const result = getOptions();
187
+ const resolved = Promise.resolve(result);
188
+ resolved.then((list) => setOptions(normalizeOptions(list)));
189
+ }, [getOptions]);
190
+ if (Com == null) return value;
191
+ const common = { value, ...fieldProps, options };
192
+ if (fieldType === "singleSelect" || fieldType === "multipleSelect") {
193
+ return /* @__PURE__ */ import_react.default.createElement(Com, { ...common, readOnly: true });
194
+ }
195
+ return /* @__PURE__ */ import_react.default.createElement(Com, { ...common, mode: "read" });
196
+ }
197
+ function createReadRender(column, fieldType) {
198
+ const Com = FIELD_TYPE_TO_READ_COMPONENT[fieldType];
199
+ const fieldProps = column.fieldProps ?? {};
200
+ const getOptions = fieldProps.getOptions;
201
+ const useAsyncOptions = (fieldType === "singleSelect" || fieldType === "multipleSelect") && typeof getOptions === "function";
202
+ return (value) => {
203
+ if (Com == null) return value;
204
+ if (useAsyncOptions) {
205
+ return /* @__PURE__ */ import_react.default.createElement(
206
+ AsyncOptionsReadCell,
207
+ {
208
+ getOptions,
209
+ value,
210
+ fieldType,
211
+ fieldProps
212
+ }
213
+ );
214
+ }
215
+ const common = { value, ...fieldProps };
216
+ if (fieldType === "singleSelect" || fieldType === "multipleSelect") {
217
+ return /* @__PURE__ */ import_react.default.createElement(Com, { ...common, readOnly: true });
218
+ }
219
+ if (fieldType === "dateTime") {
220
+ return /* @__PURE__ */ import_react.default.createElement(Com, { ...common });
221
+ }
222
+ return /* @__PURE__ */ import_react.default.createElement(Com, { ...common, mode: "read" });
223
+ };
224
+ }
225
+ function processColumnsForGrid(columns) {
226
+ if (!Array.isArray(columns) || columns.length === 0) return columns ?? [];
227
+ return columns.map((col) => {
228
+ const fieldType = col.type;
229
+ if (!fieldType || !FIELD_TYPE_TO_READ_COMPONENT[fieldType]) {
230
+ return col;
231
+ }
232
+ const existingRender = col.render;
233
+ const readRender = createReadRender(col, fieldType);
234
+ return {
235
+ ...col,
236
+ render: existingRender ?? ((value, record, index) => readRender(value, record, index))
237
+ };
238
+ });
239
+ }
240
+ function columnToFilterItem(column) {
241
+ const key = getColumnKey(column);
242
+ const label = getColumnLabel(column);
243
+ if (!key) return null;
244
+ if (column.filterable === false) return null;
245
+ const hasExplicitFilter = column.filter && (column.filter.type != null || column.filter.component);
246
+ if (column.type && !hasExplicitFilter) {
247
+ const fieldType = column.type;
248
+ const filterType2 = FIELD_TYPE_TO_FILTER_TYPE[fieldType];
249
+ const fieldProps = column.fieldProps ?? {};
250
+ const hasGetOptions2 = typeof fieldProps.getOptions === "function";
251
+ const options = fieldType === "singleSelect" || fieldType === "multipleSelect" || fieldType === "rating" ? fieldProps.options ?? (fieldType === "rating" ? [1, 2, 3, 4, 5].map((v) => ({ label: String(v), value: v })) : hasGetOptions2 ? void 0 : []) : void 0;
252
+ return {
253
+ type: filterType2,
254
+ key,
255
+ name: key,
256
+ label,
257
+ props: filterType2 === "single" ? { options: options ?? [], getOptions: fieldProps.getOptions, ...fieldProps } : { placeholder: fieldProps.placeholder ?? `请输入${label}`, ...fieldProps },
258
+ other: { fieldType, getOptions: fieldProps.getOptions, ...fieldProps }
259
+ };
260
+ }
261
+ if (!column.filter) return null;
262
+ const f = column.filter;
263
+ if (f.component) {
264
+ return {
265
+ type: "custom",
266
+ key,
267
+ name: key,
268
+ label: f.label ?? label,
269
+ props: f.props ?? {},
270
+ other: { component: f.component, ...f.props || {} }
271
+ };
272
+ }
273
+ const filterType = f.type;
274
+ if (!filterType) return null;
275
+ const hasGetOptions = typeof f.getOptions === "function";
276
+ return {
277
+ type: filterType,
278
+ key,
279
+ name: key,
280
+ label: f.label ?? label,
281
+ props: f.props ?? (filterType === "single" ? { options: f.options ?? [], getOptions: f.getOptions } : {}),
282
+ other: filterType === "single" && hasGetOptions ? { getOptions: f.getOptions } : {}
283
+ };
284
+ }
285
+ function columnToSortItem(column) {
286
+ const key = getColumnKey(column);
287
+ const label = getColumnLabel(column);
288
+ if (!key) return null;
289
+ if (column.sortable === false) return null;
290
+ const hasExplicitSort = column.sort && (column.sort.type != null || typeof column.sort.getSortItems === "function");
291
+ if (column.type && !hasExplicitSort) {
292
+ const fieldType = column.type;
293
+ if (!FIELD_TYPE_TO_READ_COMPONENT[fieldType]) return null;
294
+ const opts = getSortOptionForFieldType(fieldType);
295
+ if (!opts) return null;
296
+ const hasGetSortItems2 = "getSortItems" in opts && typeof opts.getSortItems === "function";
297
+ return {
298
+ ...hasGetSortItems2 ? {} : { type: "type" in opts ? opts.type : void 0 },
299
+ ...hasGetSortItems2 && "getSortItems" in opts ? { getSortItems: opts.getSortItems } : {},
300
+ name: key,
301
+ label: "label" in opts ? opts.label ?? label : label,
302
+ isCustom: false,
303
+ ..."localFilter" in opts && opts.localFilter !== void 0 && { localFilter: opts.localFilter },
304
+ ..."isHidden" in opts && opts.isHidden !== void 0 && { isHidden: opts.isHidden }
305
+ };
306
+ }
307
+ if (!column.type && column.sortable !== true) return null;
308
+ if (!column.sort) return null;
309
+ const s = column.sort;
310
+ const hasGetSortItems = typeof s.getSortItems === "function";
311
+ const sortItem = {
312
+ name: key,
313
+ label: s.label ?? label,
314
+ isCustom: false,
315
+ ...s.isHidden !== void 0 && { isHidden: s.isHidden }
316
+ };
317
+ if (hasGetSortItems && s.getSortItems) {
318
+ sortItem.getSortItems = s.getSortItems;
319
+ } else if (s.type != null) {
320
+ sortItem.type = s.type;
321
+ }
322
+ return sortItem;
323
+ }
324
+ function deriveSortFromColumns(columns) {
325
+ if (!Array.isArray(columns) || columns.length === 0) return [];
326
+ const list = [];
327
+ for (const col of columns) {
328
+ const hasType = Boolean(col.type && FIELD_TYPE_TO_READ_COMPONENT[col.type]);
329
+ if (hasType && col.sortable === false) continue;
330
+ const item = columnToSortItem(col);
331
+ if (item) list.push(item);
332
+ }
333
+ return list;
334
+ }
335
+ function deriveFilterFromColumns(columns) {
336
+ var _a, _b;
337
+ const quickFilter = [];
338
+ const otherFilter = [];
339
+ if (!Array.isArray(columns) || columns.length === 0) {
340
+ return { quickFilter, otherFilter };
341
+ }
342
+ for (const col of columns) {
343
+ const key = getColumnKey(col);
344
+ if (!key) continue;
345
+ const hasType = Boolean(col.type && FIELD_TYPE_TO_READ_COMPONENT[col.type]);
346
+ if (hasType && col.filterable === false) continue;
347
+ const useQuick = hasType ? ((_a = col.filter) == null ? void 0 : _a.quickFilter) === true : Boolean(col.filterable && ((_b = col.filter) == null ? void 0 : _b.quickFilter));
348
+ const item = columnToFilterItem(col);
349
+ if (!item) continue;
350
+ if (useQuick) {
351
+ quickFilter.push(item);
352
+ } else {
353
+ otherFilter.push(item);
354
+ }
355
+ }
356
+ return { quickFilter, otherFilter };
357
+ }
358
+ // Annotate the CommonJS export names for ESM import in node:
359
+ 0 && (module.exports = {
360
+ computeUniformColumnSummary,
361
+ deriveFilterFromColumns,
362
+ deriveSortFromColumns,
363
+ getRecordBoardColumnKey,
364
+ processColumnsForGrid
365
+ });
@@ -0,0 +1,49 @@
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/pisellRecordBoard/utils/withRecordBoard.tsx
30
+ var withRecordBoard_exports = {};
31
+ __export(withRecordBoard_exports, {
32
+ default: () => withRecordBoard_default
33
+ });
34
+ module.exports = __toCommonJS(withRecordBoard_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_useRecordBoardContext = require("../hooks/useRecordBoardContext");
37
+ function withRecordBoard(WrappedComponent, displayName) {
38
+ const WithRecordBoardComponent = (0, import_react.forwardRef)((props, ref) => {
39
+ const recordBoardContext = (0, import_useRecordBoardContext.useRecordBoardContext)({ displayName });
40
+ const mergedProps = {
41
+ ...recordBoardContext,
42
+ ...props
43
+ };
44
+ return /* @__PURE__ */ import_react.default.createElement(WrappedComponent, { ref, ...mergedProps });
45
+ });
46
+ WithRecordBoardComponent.displayName = `WithRecordBoard(${displayName})`;
47
+ return WithRecordBoardComponent;
48
+ }
49
+ var withRecordBoard_default = withRecordBoard;
@@ -0,0 +1,113 @@
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/pisellShellFrame/PisellShellFrame.tsx
30
+ var PisellShellFrame_exports = {};
31
+ __export(PisellShellFrame_exports, {
32
+ PisellShellFrame: () => PisellShellFrame,
33
+ default: () => PisellShellFrame_default
34
+ });
35
+ module.exports = __toCommonJS(PisellShellFrame_exports);
36
+ var import_react = __toESM(require("react"));
37
+ var import_antd = require("antd");
38
+ var import_locales = require("../../locales");
39
+ var import_PisellShellFrame = require("./PisellShellFrame.less");
40
+ var defaultConfig = {
41
+ showTitle: false,
42
+ showToolbar: false,
43
+ showStatistic: false,
44
+ statisticCollapsible: false,
45
+ scroll: false,
46
+ showBatchActionBar: false,
47
+ showStatusArea: false
48
+ };
49
+ var PisellShellFrame = (props) => {
50
+ const {
51
+ className,
52
+ style,
53
+ config: configProp,
54
+ title,
55
+ subtitle,
56
+ titleExtra,
57
+ toolbar,
58
+ statisticList,
59
+ children,
60
+ batchActionBar,
61
+ statusArea
62
+ } = props;
63
+ const config = { ...defaultConfig, ...configProp };
64
+ const [statisticCollapsed, setStatisticCollapsed] = (0, import_react.useState)(false);
65
+ const hasTitle = config.showTitle && (title != null || subtitle != null || titleExtra != null);
66
+ const hasToolbar = config.showToolbar && toolbar != null;
67
+ const hasStatistic = config.showStatistic && statisticList != null;
68
+ const hasBatchBar = config.showBatchActionBar && batchActionBar != null;
69
+ const hasStatus = config.showStatusArea && statusArea != null;
70
+ const scrollConfig = config.scroll;
71
+ const useScroll = scrollConfig === true || typeof scrollConfig === "object" && scrollConfig != null;
72
+ const scrollOpts = typeof scrollConfig === "object" && scrollConfig != null ? scrollConfig : null;
73
+ const scrollStyle = scrollOpts == null ? void 0 : scrollOpts.style;
74
+ const scrollClassName = scrollOpts == null ? void 0 : scrollOpts.className;
75
+ return /* @__PURE__ */ import_react.default.createElement(
76
+ "div",
77
+ {
78
+ className: `pisell-shell-frame ${className ?? ""}`.trim(),
79
+ style,
80
+ "data-shell-frame": true
81
+ },
82
+ /* @__PURE__ */ import_react.default.createElement("header", { className: "pisell-shell-frame-header" }, hasTitle && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-shell-frame-title" }, /* @__PURE__ */ import_react.default.createElement("span", null, title != null && /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-shell-frame-title-main" }, title), subtitle != null && /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-shell-frame-title-sub" }, subtitle)), titleExtra != null && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-shell-frame-title-extra" }, titleExtra)), hasToolbar && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-shell-frame-toolbar" }, toolbar), hasStatistic && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-shell-frame-statistic" }, config.statisticCollapsible ? /* @__PURE__ */ import_react.default.createElement(
83
+ import_antd.Collapse,
84
+ {
85
+ ghost: true,
86
+ activeKey: statisticCollapsed ? [] : ["statistic"],
87
+ onChange: (keys) => setStatisticCollapsed(keys.length === 0),
88
+ items: [
89
+ {
90
+ key: "statistic",
91
+ label: /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-shell-frame-statistic-collapse-header" }, statisticCollapsed ? (0, import_locales.getText)("shell-frame-statistic-expand") : (0, import_locales.getText)("shell-frame-statistic-collapse")),
92
+ children: statisticList
93
+ }
94
+ ]
95
+ }
96
+ ) : statisticList)),
97
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-shell-frame-body" }, useScroll ? /* @__PURE__ */ import_react.default.createElement(
98
+ "div",
99
+ {
100
+ className: `pisell-shell-frame-scroll ${scrollClassName ?? ""}`.trim(),
101
+ style: scrollStyle
102
+ },
103
+ children
104
+ ) : children),
105
+ (hasBatchBar || hasStatus) && /* @__PURE__ */ import_react.default.createElement("footer", { className: "pisell-shell-frame-footer" }, hasBatchBar && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-shell-frame-batch-bar" }, batchActionBar), hasStatus && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-shell-frame-status" }, statusArea))
106
+ );
107
+ };
108
+ PisellShellFrame.displayName = "PisellShellFrame";
109
+ var PisellShellFrame_default = PisellShellFrame;
110
+ // Annotate the CommonJS export names for ESM import in node:
111
+ 0 && (module.exports = {
112
+ PisellShellFrame
113
+ });
@@ -0,0 +1,78 @@
1
+ // PisellShellFrame 壳层布局:顶部标题/工具/统计、中间滚动+插槽、底部批量条/状态区
2
+ .pisell-shell-frame {
3
+ display: flex;
4
+ flex-direction: column;
5
+ height: 100%;
6
+ min-height: 0;
7
+
8
+ &-header {
9
+ flex-shrink: 0;
10
+ }
11
+
12
+ &-title {
13
+ display: flex;
14
+ align-items: baseline;
15
+ justify-content: space-between;
16
+ gap: 16px;
17
+ margin-bottom: 8px;
18
+ .pisell-shell-frame-title-main {
19
+ font-size: 16px;
20
+ font-weight: 600;
21
+ }
22
+ .pisell-shell-frame-title-sub {
23
+ font-size: 12px;
24
+ color: rgba(0, 0, 0, 0.45);
25
+ margin-left: 8px;
26
+ }
27
+ .pisell-shell-frame-title-extra {
28
+ flex-shrink: 0;
29
+ }
30
+ }
31
+
32
+ &-toolbar {
33
+ margin-bottom: 8px;
34
+ }
35
+
36
+ &-statistic {
37
+ margin-bottom: 8px;
38
+ &-collapse-header {
39
+ cursor: pointer;
40
+ user-select: none;
41
+ display: flex;
42
+ align-items: center;
43
+ gap: 4px;
44
+ font-size: 12px;
45
+ color: rgba(0, 0, 0, 0.45);
46
+ }
47
+ }
48
+
49
+ &-body {
50
+ flex: 1;
51
+ min-height: 0;
52
+ display: flex;
53
+ flex-direction: column;
54
+ }
55
+
56
+ &-scroll {
57
+ flex: 1;
58
+ min-height: 0;
59
+ overflow: auto;
60
+ }
61
+
62
+ &-footer {
63
+ flex-shrink: 0;
64
+ }
65
+
66
+ &-batch-bar {
67
+ margin-top: 8px;
68
+ /* 无内容时不占位,避免多余 margin */
69
+ &:empty {
70
+ margin-top: 0;
71
+ display: none;
72
+ }
73
+ }
74
+
75
+ &-status {
76
+ margin-top: 8px;
77
+ }
78
+ }