@pisell/materials 1.0.1034 → 1.0.1035

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 (254) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +17 -17
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +18 -23
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +27 -32
  11. package/es/components/Pagination/index.js +1 -1
  12. package/es/components/PisellCards/index.d.ts +6 -6
  13. package/es/components/calendar/index.d.ts +2 -2
  14. package/es/components/checkbox/index.d.ts +2 -2
  15. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +2 -2
  16. package/es/components/dataSourceComponents/fields/Input.Email/index.d.ts +2 -2
  17. package/es/components/dataSourceComponents/fields/Input.Password/index.d.ts +2 -2
  18. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +3 -3
  19. package/es/components/dataSourceComponents/fields/Input.TextArea/index.d.ts +2 -2
  20. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  21. package/es/components/date-picker/index.d.ts +2 -2
  22. package/es/components/filter/components/Dropdown/index.js +6 -2
  23. package/es/components/filter/components/FilterButton/index.js +3 -2
  24. package/es/components/filter/components/FilterButton/types.d.ts +5 -2
  25. package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +67 -0
  26. package/es/components/filter/components/FilterItem/index.js +105 -6
  27. package/es/components/filter/components/FilterItem/index.less +90 -0
  28. package/es/components/filter/types.d.ts +4 -2
  29. package/es/components/input/index.d.ts +2 -2
  30. package/es/components/pisell-config-provider/context.d.ts +2 -2
  31. package/es/components/pisellCurrency/PisellCurrency.less +163 -25
  32. package/es/components/pisellDatePicker/index.d.ts +2 -2
  33. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +11 -10
  34. package/es/components/pisellDateTimeDisplay/types.d.ts +5 -0
  35. package/es/components/pisellEmail/PisellEmail.d.ts +2 -33
  36. package/es/components/pisellEmail/PisellEmail.js +1 -1
  37. package/es/components/pisellEmail/PisellEmail.less +119 -10
  38. package/es/components/pisellEmail/index.d.ts +1 -1
  39. package/es/components/pisellFilter/docs/PisellFilter.md +289 -232
  40. package/es/components/pisellFilter/index.js +66 -11
  41. package/es/components/pisellLongText/PisellLongText.less +72 -4
  42. package/es/components/pisellLookup/PisellLookup.js +3 -3
  43. package/es/components/pisellLookup/PisellLookup.less +14 -9
  44. package/es/components/pisellLookup/components/LookupTrigger.js +6 -2
  45. package/es/components/pisellMetricCard/PisellMetricCard.d.ts +38 -0
  46. package/es/components/pisellMetricCard/PisellMetricCard.js +136 -0
  47. package/es/components/pisellMetricCard/components/MetricComparison.js +54 -0
  48. package/es/components/pisellMetricCard/components/MetricTitle.js +41 -0
  49. package/es/components/pisellMetricCard/components/MetricValue.js +26 -0
  50. package/es/components/pisellMetricCard/components/TrendIcon.js +26 -0
  51. package/es/components/pisellMetricCard/docs/pisellMetricCard.$tab-design.md +2 -6
  52. package/es/components/pisellMetricCard/index.d.ts +2 -0
  53. package/es/components/pisellMetricCard/types.d.ts +143 -0
  54. package/es/components/pisellMetricCard/utils/calculateTrend.js +22 -0
  55. package/es/components/pisellMetricCard/utils/formatMetricValue.js +52 -0
  56. package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +151 -124
  57. package/es/components/pisellMultipleSelect/components/EditView.js +8 -1
  58. package/es/components/pisellMultipleSelect/components/ReadOnlyView.js +18 -6
  59. package/es/components/pisellNumber/PisellNumber.less +135 -17
  60. package/es/components/pisellPercent/PisellPercent.less +142 -24
  61. package/es/components/pisellPhone/PisellPhone.less +122 -27
  62. package/es/components/pisellPhone/components/EditView.js +1 -1
  63. package/es/components/pisellPhone/components/ReadOnlyView.js +15 -5
  64. package/es/components/pisellPhone/utils/countryCodeHelper.js +1 -10
  65. package/es/components/pisellRating/PisellRating.less +20 -12
  66. package/es/components/pisellRecordBoard/PisellRecordBoard.js +148 -0
  67. package/es/components/pisellRecordBoard/README.md +183 -0
  68. package/es/components/pisellRecordBoard/context/RecordBoardContext.js +7 -0
  69. package/es/components/pisellRecordBoard/context/RecordBoardProvider.js +14 -0
  70. package/es/components/pisellRecordBoard/docs/PisellRecordBoard.$tab-design.md +128 -0
  71. package/es/components/pisellRecordBoard/docs/PisellRecordBoard.$tab-dev.md +82 -0
  72. package/es/components/pisellRecordBoard/docs/PisellRecordBoard.$tab-test.md +70 -0
  73. package/es/components/pisellRecordBoard/docs/PisellRecordBoard.md +552 -0
  74. package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +20 -0
  75. package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.js +16 -0
  76. package/es/components/pisellRecordBoard/index.d.ts +40 -0
  77. package/es/components/pisellRecordBoard/index.js +28 -0
  78. package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +15 -0
  79. package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.js +24 -0
  80. package/es/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +15 -0
  81. package/es/components/pisellRecordBoard/layouts/CardLayout/index.js +21 -0
  82. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +17 -0
  83. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +105 -0
  84. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.less +13 -0
  85. package/es/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +15 -0
  86. package/es/components/pisellRecordBoard/layouts/GridLayout/index.js +21 -0
  87. package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +12 -0
  88. package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.js +69 -0
  89. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +40 -0
  90. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +60 -0
  91. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.less +2 -0
  92. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +17 -0
  93. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.js +52 -0
  94. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.less +61 -0
  95. package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +13 -0
  96. package/es/components/pisellRecordBoard/shellFrame/Search/index.js +34 -0
  97. package/es/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +77 -0
  98. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +14 -0
  99. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +136 -0
  100. package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +2 -0
  101. package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +62 -0
  102. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +2 -0
  103. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +45 -0
  104. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +41 -0
  105. package/es/components/pisellRecordBoard/shellFrame/index.d.ts +27 -0
  106. package/es/components/pisellRecordBoard/shellFrame/index.js +38 -0
  107. package/es/components/pisellRecordBoard/types.d.ts +259 -0
  108. package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +287 -0
  109. package/es/components/pisellShellFrame/PisellShellFrame.d.ts +16 -0
  110. package/es/components/pisellShellFrame/PisellShellFrame.js +60 -0
  111. package/es/components/pisellShellFrame/PisellShellFrame.less +73 -0
  112. package/es/components/pisellShellFrame/README.md +58 -0
  113. package/es/components/pisellShellFrame/index.d.ts +2 -0
  114. package/es/components/pisellShellFrame/types.d.ts +60 -0
  115. package/es/components/pisellSingleSelect/PisellSingleSelect.less +88 -46
  116. package/es/components/pisellSingleSelect/components/EditView.js +8 -1
  117. package/es/components/pisellSingleSelect/components/ReadOnlyView.js +8 -2
  118. package/es/components/pisellUrl/PisellUrl.d.ts +2 -33
  119. package/es/components/pisellUrl/PisellUrl.js +1 -1
  120. package/es/components/pisellUrl/PisellUrl.less +120 -11
  121. package/es/components/pisellUrl/index.d.ts +1 -1
  122. package/es/components/radio/index.d.ts +2 -2
  123. package/es/components/section-footers/index.d.ts +2 -2
  124. package/es/components/skeleton/index.d.ts +2 -2
  125. package/es/components/sort/index.js +12 -1
  126. package/es/components/sort/types.d.ts +8 -2
  127. package/es/components/time-picker/index.d.ts +2 -2
  128. package/es/index.d.ts +19 -11
  129. package/es/index.js +19 -15
  130. package/es/locales/en-US.js +16 -2
  131. package/es/locales/zh-CN.js +18 -4
  132. package/es/locales/zh-TW.js +18 -4
  133. package/es/utils/tagColor.js +31 -0
  134. package/lib/components/Pagination/index.js +1 -1
  135. package/lib/components/checkbox/index.d.ts +2 -2
  136. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +2 -2
  137. package/lib/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +2 -2
  138. package/lib/components/dataSourceComponents/fields/Input.Password/index.d.ts +2 -2
  139. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  140. package/lib/components/dataSourceComponents/fields/Input.TextArea/index.d.ts +2 -2
  141. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  142. package/lib/components/filter/components/Dropdown/index.js +6 -2
  143. package/lib/components/filter/components/FilterButton/index.js +3 -2
  144. package/lib/components/filter/components/FilterButton/types.d.ts +5 -2
  145. package/lib/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +69 -0
  146. package/lib/components/filter/components/FilterItem/index.js +106 -6
  147. package/lib/components/filter/components/FilterItem/index.less +90 -0
  148. package/lib/components/filter/types.d.ts +4 -2
  149. package/lib/components/input/index.d.ts +2 -2
  150. package/lib/components/pisell-config-provider/context.d.ts +2 -2
  151. package/lib/components/pisellCurrency/PisellCurrency.less +163 -25
  152. package/lib/components/pisellDatePicker/index.d.ts +2 -2
  153. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +11 -10
  154. package/lib/components/pisellDateTimeDisplay/types.d.ts +5 -0
  155. package/lib/components/pisellEmail/PisellEmail.d.ts +2 -33
  156. package/lib/components/pisellEmail/PisellEmail.js +1 -1
  157. package/lib/components/pisellEmail/PisellEmail.less +119 -10
  158. package/lib/components/pisellEmail/index.d.ts +1 -1
  159. package/lib/components/pisellFilter/docs/PisellFilter.md +289 -232
  160. package/lib/components/pisellFilter/index.js +65 -10
  161. package/lib/components/pisellLongText/PisellLongText.less +72 -4
  162. package/lib/components/pisellLookup/PisellLookup.js +3 -3
  163. package/lib/components/pisellLookup/PisellLookup.less +14 -9
  164. package/lib/components/pisellLookup/components/LookupTrigger.js +6 -2
  165. package/lib/components/pisellMetricCard/PisellMetricCard.d.ts +38 -0
  166. package/lib/components/pisellMetricCard/PisellMetricCard.js +138 -0
  167. package/lib/components/pisellMetricCard/components/MetricComparison.js +56 -0
  168. package/lib/components/pisellMetricCard/components/MetricTitle.js +43 -0
  169. package/lib/components/pisellMetricCard/components/MetricValue.js +28 -0
  170. package/lib/components/pisellMetricCard/components/TrendIcon.js +28 -0
  171. package/lib/components/pisellMetricCard/docs/pisellMetricCard.$tab-design.md +2 -6
  172. package/lib/components/pisellMetricCard/index.d.ts +2 -0
  173. package/lib/components/pisellMetricCard/types.d.ts +143 -0
  174. package/lib/components/pisellMetricCard/utils/calculateTrend.js +23 -0
  175. package/lib/components/pisellMetricCard/utils/formatMetricValue.js +53 -0
  176. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +151 -124
  177. package/lib/components/pisellMultipleSelect/components/EditView.js +7 -0
  178. package/lib/components/pisellMultipleSelect/components/ReadOnlyView.js +17 -5
  179. package/lib/components/pisellNumber/PisellNumber.less +135 -17
  180. package/lib/components/pisellPercent/PisellPercent.less +142 -24
  181. package/lib/components/pisellPhone/PisellPhone.less +122 -27
  182. package/lib/components/pisellPhone/components/EditView.js +1 -1
  183. package/lib/components/pisellPhone/components/ReadOnlyView.js +15 -5
  184. package/lib/components/pisellPhone/utils/countryCodeHelper.js +0 -10
  185. package/lib/components/pisellRating/PisellRating.less +20 -12
  186. package/lib/components/pisellRecordBoard/PisellRecordBoard.js +150 -0
  187. package/lib/components/pisellRecordBoard/README.md +183 -0
  188. package/lib/components/pisellRecordBoard/context/RecordBoardContext.js +8 -0
  189. package/lib/components/pisellRecordBoard/context/RecordBoardProvider.js +16 -0
  190. package/lib/components/pisellRecordBoard/docs/PisellRecordBoard.$tab-design.md +128 -0
  191. package/lib/components/pisellRecordBoard/docs/PisellRecordBoard.$tab-dev.md +82 -0
  192. package/lib/components/pisellRecordBoard/docs/PisellRecordBoard.$tab-test.md +70 -0
  193. package/lib/components/pisellRecordBoard/docs/PisellRecordBoard.md +552 -0
  194. package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +20 -0
  195. package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.js +17 -0
  196. package/lib/components/pisellRecordBoard/index.d.ts +40 -0
  197. package/lib/components/pisellRecordBoard/index.js +28 -0
  198. package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +15 -0
  199. package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.js +26 -0
  200. package/lib/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +15 -0
  201. package/lib/components/pisellRecordBoard/layouts/CardLayout/index.js +23 -0
  202. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +17 -0
  203. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +107 -0
  204. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.less +13 -0
  205. package/lib/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +15 -0
  206. package/lib/components/pisellRecordBoard/layouts/GridLayout/index.js +23 -0
  207. package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +12 -0
  208. package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.js +71 -0
  209. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +43 -0
  210. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +62 -0
  211. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.less +2 -0
  212. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +17 -0
  213. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.js +54 -0
  214. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.less +61 -0
  215. package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +13 -0
  216. package/lib/components/pisellRecordBoard/shellFrame/Search/index.js +36 -0
  217. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +77 -0
  218. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +14 -0
  219. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +139 -0
  220. package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +64 -0
  221. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +2 -0
  222. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +47 -0
  223. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +41 -0
  224. package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +26 -0
  225. package/lib/components/pisellRecordBoard/shellFrame/index.js +40 -0
  226. package/lib/components/pisellRecordBoard/types.d.ts +259 -0
  227. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.js +292 -0
  228. package/lib/components/pisellShellFrame/PisellShellFrame.d.ts +16 -0
  229. package/lib/components/pisellShellFrame/PisellShellFrame.js +62 -0
  230. package/lib/components/pisellShellFrame/PisellShellFrame.less +73 -0
  231. package/lib/components/pisellShellFrame/README.md +58 -0
  232. package/lib/components/pisellShellFrame/index.d.ts +2 -0
  233. package/lib/components/pisellShellFrame/types.d.ts +60 -0
  234. package/lib/components/pisellSingleSelect/PisellSingleSelect.less +88 -46
  235. package/lib/components/pisellSingleSelect/components/EditView.js +7 -0
  236. package/lib/components/pisellSingleSelect/components/ReadOnlyView.js +8 -2
  237. package/lib/components/pisellUrl/PisellUrl.d.ts +2 -33
  238. package/lib/components/pisellUrl/PisellUrl.js +1 -1
  239. package/lib/components/pisellUrl/PisellUrl.less +120 -11
  240. package/lib/components/pisellUrl/index.d.ts +1 -1
  241. package/lib/components/radio/index.d.ts +2 -2
  242. package/lib/components/section-footers/index.d.ts +2 -2
  243. package/lib/components/skeleton/index.d.ts +2 -2
  244. package/lib/components/sort/index.js +12 -1
  245. package/lib/components/sort/types.d.ts +8 -2
  246. package/lib/components/time-picker/index.d.ts +2 -2
  247. package/lib/components/upload/index.d.ts +2 -2
  248. package/lib/index.d.ts +19 -11
  249. package/lib/index.js +33 -25
  250. package/lib/locales/en-US.js +16 -2
  251. package/lib/locales/zh-CN.js +18 -4
  252. package/lib/locales/zh-TW.js +18 -4
  253. package/lib/utils/tagColor.js +32 -0
  254. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import * as react17 from "react";
2
+ import * as react18 from "react";
3
3
 
4
4
  //#region src/components/section-footers/index.d.ts
5
5
  interface SectionFooterProps {
@@ -8,6 +8,6 @@ interface SectionFooterProps {
8
8
  right?: React.ReactNode;
9
9
  className?: string;
10
10
  }
11
- declare const SectionFooters: (props: SectionFooterProps) => react17.JSX.Element;
11
+ declare const SectionFooters: (props: SectionFooterProps) => react18.JSX.Element;
12
12
  //#endregion
13
13
  export { SectionFooters };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import * as react18 from "react";
2
+ import * as react19 from "react";
3
3
 
4
4
  //#region src/components/skeleton/index.d.ts
5
- declare const Skeleton: (props: any) => react18.JSX.Element;
5
+ declare const Skeleton: (props: any) => react19.JSX.Element;
6
6
  //#endregion
7
7
  export { Skeleton };
@@ -45,15 +45,26 @@ const sortChildrenMap = {
45
45
  }, {
46
46
  key: `${key}:desc${isLocal ? ":number" : ""}`,
47
47
  label: /* @__PURE__ */ react.default.createElement(Label, { content: require_index.getText("sort-9-0") })
48
+ }],
49
+ option: (key, isLocal) => [{
50
+ key: `${key}:asc${isLocal ? ":option" : ""}`,
51
+ label: /* @__PURE__ */ react.default.createElement(Label, { content: require_index.getText("sort-first-last") })
52
+ }, {
53
+ key: `${key}:desc${isLocal ? ":option" : ""}`,
54
+ label: /* @__PURE__ */ react.default.createElement(Label, { content: require_index.getText("sort-last-first") })
48
55
  }]
49
56
  };
50
57
  const Sort = ({ list = [], onChange, button, style, value, placement, localPagination }) => {
51
58
  const sortItems = (0, react.useMemo)(() => {
52
59
  return list.map((d) => {
60
+ const children = d.getSortItems ? d.getSortItems(d.name).map(({ key, label }) => ({
61
+ key,
62
+ label: /* @__PURE__ */ react.default.createElement(Label, { content: label })
63
+ })) : sortChildrenMap[d.type](d.name, !!(d === null || d === void 0 ? void 0 : d.localFilter));
53
64
  return {
54
65
  key: d.name,
55
66
  label: d.label,
56
- children: sortChildrenMap[d.type](d.name, !!(d === null || d === void 0 ? void 0 : d.localFilter)),
67
+ children,
57
68
  popupClassName: `${prefix}sort-sub-menu-popup-wrap ${prefix}dropdown-css-var`,
58
69
  className: `${d.isHidden ? `${prefix}sort-menu-wrap-hide` : ""}`
59
70
  };
@@ -2,14 +2,20 @@ import { MenuProps } from "antd";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/components/sort/types.d.ts
5
+ /** 单个排序子项(如 A→Z、0→9),由组件的 getSortItems 返回 */
6
+ type SortOptionItem = {
7
+ key: string;
8
+ label: string;
9
+ };
5
10
  type SortItemProps = {
6
- type: "date" | "string" | "number";
11
+ /** 排序类型,与 sortChildrenMap 对应;当 getSortItems 存在时可省略 */type?: "date" | "string" | "number" | "option";
7
12
  label?: string;
8
13
  name?: string | string[];
9
14
  isCustom: boolean;
10
15
  columnKey?: string;
11
16
  localFilter?: boolean;
12
- isHidden?: boolean;
17
+ isHidden?: boolean; /** 由组件内置导出:直接返回该列的排序子项,优先于 type */
18
+ getSortItems?: (fieldKey: string) => SortOptionItem[];
13
19
  };
14
20
  type SortListProps = {
15
21
  list: SortItemProps[];
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import * as react19 from "react";
2
+ import * as react20 from "react";
3
3
 
4
4
  //#region src/components/time-picker/index.d.ts
5
- declare const TimePicker: (props: any) => react19.JSX.Element;
5
+ declare const TimePicker: (props: any) => react20.JSX.Element;
6
6
  //#endregion
7
7
  export { TimePicker };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import * as react20 from "react";
2
+ import * as react21 from "react";
3
3
 
4
4
  //#region src/components/upload/index.d.ts
5
- declare const Upload: (props: any) => react20.JSX.Element;
5
+ declare const Upload: (props: any) => react21.JSX.Element;
6
6
  //#endregion
7
7
  export { Upload };
package/lib/index.d.ts CHANGED
@@ -134,7 +134,7 @@ import { ProductCard } from "./components/productCard/index.js";
134
134
  import { ProfileMenu } from "./components/profileMenu/index.js";
135
135
  import { QRCode } from "./components/qrcode/index.js";
136
136
  import { Radio as Radio$1 } from "./components/radio/index.js";
137
- import { _default as _default$17 } from "./components/record-view/index.js";
137
+ import { _default as _default$19 } from "./components/record-view/index.js";
138
138
  import { SectionFooters } from "./components/section-footers/index.js";
139
139
  import { Segmented } from "./components/segmented/index.js";
140
140
  import { Select } from "./components/select/index.js";
@@ -144,7 +144,7 @@ import { Skeleton } from "./components/skeleton/index.js";
144
144
  import { SliderOuter } from "./components/slider/index.js";
145
145
  import { Sort } from "./components/sort/index.js";
146
146
  import { SortableList } from "./components/sortableList/index.js";
147
- import { _default as _default$18 } from "./components/table/index.js";
147
+ import { _default as _default$20 } from "./components/table/index.js";
148
148
  import { Tabs } from "./components/tabs/index.js";
149
149
  import { TimePicker as TimePicker$1 } from "./components/time-picker/index.js";
150
150
  import { Translation as Translation$2 } from "./components/translation/index.js";
@@ -175,7 +175,7 @@ import "./components/PisellBasicGrid/index.js";
175
175
  import { PisellScrollView } from "./components/PisellScrollView/PisellScrollView.js";
176
176
  import "./components/PisellScrollView/index.js";
177
177
  import { PisellSuperTabsProps, TabDataItem } from "./components/PisellSuperTabs/types.js";
178
- import { _default as _default$15 } from "./components/PisellSuperTabs/PisellSuperTabs.js";
178
+ import { _default as _default$16 } from "./components/PisellSuperTabs/PisellSuperTabs.js";
179
179
  import "./components/PisellSuperTabs/index.js";
180
180
  import { Provider as Provider$4 } from "./components/PisellCards/components/TextCard/TextCard.js";
181
181
  import "./components/PisellCards/components/TextCard/index.js";
@@ -183,13 +183,21 @@ import { Provider as Provider$1 } from "./components/PisellCards/components/Mult
183
183
  import "./components/PisellCards/components/MultilevelCard/index.js";
184
184
  import { LevelType, PisellTabbarProps, TabbarDataSource } from "./components/PisellTabbar/types.js";
185
185
  import { PisellTabbar } from "./components/PisellTabbar/PisellTabbar.js";
186
- import { _default as _default$16 } from "./components/PisellTabbar/template/Template1/PisellTabbar.js";
186
+ import { _default as _default$17 } from "./components/PisellTabbar/template/Template1/PisellTabbar.js";
187
187
  import "./components/PisellTabbar/template/Template1/index.js";
188
188
  import "./components/PisellTabbar/index.js";
189
189
  import { PisellTabbar as PisellTabbar$1 } from "./components/PisellTabbar2/PisellTabbar.js";
190
190
  import "./components/PisellTabbar2/index.js";
191
191
  import { DataSourceContainerProps } from "./components/pisellDataSourceContainer/type.js";
192
192
  import { PisellDataSourceContainer } from "./components/pisellDataSourceContainer/index.js";
193
+ import { RecordBoardChildComponentProps, RecordBoardColumnFilterConfig, RecordBoardColumnType, RecordBoardContextValue, RecordBoardFieldType, RecordBoardGetOptions, RecordBoardGridProps, RecordBoardLayoutType, RecordBoardOptionItem, RecordBoardProps } from "./components/pisellRecordBoard/types.js";
194
+ import { useRecordBoardContext } from "./components/pisellRecordBoard/hooks/useRecordBoardContext.js";
195
+ import { PisellRecordBoard } from "./components/pisellRecordBoard/index.js";
196
+ import { PisellShellFrameConfig, PisellShellFrameProps, PisellShellFrameScrollConfig } from "./components/pisellShellFrame/types.js";
197
+ import { PisellShellFrame } from "./components/pisellShellFrame/PisellShellFrame.js";
198
+ import "./components/pisellShellFrame/index.js";
199
+ import { PisellMetricCard } from "./components/pisellMetricCard/PisellMetricCard.js";
200
+ import "./components/pisellMetricCard/index.js";
193
201
  import { GridViewProps } from "./components/pisellGridPro/GridView/type.js";
194
202
  import { GridView } from "./components/pisellGridPro/GridView/index.js";
195
203
  import { ToolBarProps } from "./components/pisellGridPro/ToolBar/type.js";
@@ -203,10 +211,10 @@ import { PisellFilter } from "./components/pisellFilter/index.js";
203
211
  import { pisellQuickFilter } from "./components/pisellQuickFilter/index.js";
204
212
  import { PisellQuickFilterProps } from "./components/pisellQuickFilter/type.js";
205
213
  import { PisellSingleLineTextProps } from "./components/pisellSingleLineText/types.js";
206
- import { _default as _default$14 } from "./components/pisellSingleLineText/PisellSingleLineText.js";
214
+ import { _default as _default$15 } from "./components/pisellSingleLineText/PisellSingleLineText.js";
207
215
  import "./components/pisellSingleLineText/index.js";
208
216
  import { PisellLongTextProps } from "./components/pisellLongText/types.js";
209
- import { _default as _default$11 } from "./components/pisellLongText/PisellLongText.js";
217
+ import { _default as _default$12 } from "./components/pisellLongText/PisellLongText.js";
210
218
  import "./components/pisellLongText/index.js";
211
219
  import { PisellNumberProps } from "./components/pisellNumber/types.js";
212
220
  import { MemoizedPisellNumber } from "./components/pisellNumber/PisellNumber.js";
@@ -218,16 +226,16 @@ import { PisellPercentProps } from "./components/pisellPercent/types.js";
218
226
  import { MemoizedPisellPercent } from "./components/pisellPercent/PisellPercent.js";
219
227
  import "./components/pisellPercent/index.js";
220
228
  import { CountryCode, PisellPhoneProps } from "./components/pisellPhone/types.js";
221
- import { _default as _default$12 } from "./components/pisellPhone/PisellPhone.js";
229
+ import { _default as _default$13 } from "./components/pisellPhone/PisellPhone.js";
222
230
  import "./components/pisellPhone/index.js";
223
231
  import { MailtoOptions, PisellEmailProps } from "./components/pisellEmail/types.js";
224
- import { PisellEmail } from "./components/pisellEmail/PisellEmail.js";
232
+ import { _default as _default$11 } from "./components/pisellEmail/PisellEmail.js";
225
233
  import "./components/pisellEmail/index.js";
226
234
  import { PisellUrlProps } from "./components/pisellUrl/types.js";
227
- import { PisellUrl } from "./components/pisellUrl/PisellUrl.js";
235
+ import { _default as _default$18 } from "./components/pisellUrl/PisellUrl.js";
228
236
  import "./components/pisellUrl/index.js";
229
237
  import { PisellRatingProps } from "./components/pisellRating/types.js";
230
- import { _default as _default$13 } from "./components/pisellRating/PisellRating.js";
238
+ import { _default as _default$14 } from "./components/pisellRating/PisellRating.js";
231
239
  import "./components/pisellRating/index.js";
232
240
  import { PisellSingleSelectProps, SingleSelectRef } from "./components/pisellSingleSelect/types.js";
233
241
  import { PisellSingleSelect } from "./components/pisellSingleSelect/PisellSingleSelect.js";
@@ -247,4 +255,4 @@ import { PisellTimeRangeDisplayProps } from "./components/pisellTimeRangeDisplay
247
255
  import { PisellTimeRangeDisplay } from "./components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.js";
248
256
  import "./components/pisellTimeRangeDisplay/index.js";
249
257
  import { Affix, Alert, Anchor, Avatar, Breadcrumb, Card, Carousel, Col, ColorPicker, Descriptions, Divider, Empty, Grid, InputNumber as InputNumber$1, Mentions, Menu, Pagination, Popconfirm, Popover, Progress, Rate, Result, Row, Space, Spin, Statistic, Steps, Switch as Switch$1, Tag, Timeline, Tooltip, Transfer, Tree, message, notification, version } from "antd";
250
- export { Affix, Alert, Anchor, AppVersionControl, AutoComplete, AutoCompleteNumber, AutoResizeText, Avatar, Badge, type BadgeConfig, Translation as BaseTranslation, type BatchActionBarPosition, type BatchActionConfirmConfig, type BatchActionItem, BatchEditor, Breadcrumb, Button, _default as ButtonGroupEdit, _default$1 as ButtonGroupPreview, Calendar, Card, CardMetricItem, _default$2 as CardPro, Carousel, Cascader, Checkbox, ClassicLayout, Col, Collapse, ColorPicker, Component, ConfigProvider, type CountryCode, CropPhoto, CustomSelect, type DataSourceContainerProps, _default$3 as DataSourceForm, DataSourceImage, DataSourceMenu, DataSourceQRCode, _default$4 as DataSourceTable, DataSourceTypography, DataSourceWrapper, DatePicker, type DefaultActionsConfig, Descriptions, _default$5 as Div, Divider, DragSortTree, Drawer, Dropdown, Empty, Filter, _default$6 as Form, FormGroup, Checkbox$1 as FormItemCheckbox, ColorPicker$1 as FormItemColorPicker, DatePicker$1 as FormItemDatePicker, IconSelect as FormItemIconSelect, Input as FormItemInput, InputNumber as FormItemInputNumber, Radio as FormItemRadio, SelectWithDataSource as FormItemSelect, Switch as FormItemSwitch, TimePicker as FormItemTimePicker, Translation$1 as FormItemTranslation, Upload as FormItemUpload, Provider as GraphicTextCard, type GraphicTextCardProps, type GraphicTextCardSize, type GraphicTextCardVariant, Grid, type GridProProps, type GridViewProps, HardwareErrorTip, _default$7 as Icon, IconSelect$1 as IconSelect, IconFont as Iconfont, Image, type ImageDataSource, type ImageFillMode, Input$1 as Input, InputNumber$1 as InputNumber, InputNumberRange, JsonWrapperProvider as JsonWrapper, _default$8 as Keyboard, type LevelType, List, LowCodePage, type MailtoOptions, Mentions, Menu, Modal, Provider$1 as MultilevelCard, type MultilevelCardProps, type MultipleSelectRef, OrganizationTenantSwitcher, Page, PageHeader, Pagination, PisellAdjustPrice, PisellAdjustPriceInputNumber, PisellAlert, PisellAnchor, PisellAppCard, type PisellAppCardProps, PisellAvatar, type PisellBasicCardProps, MemoizedPisellBasicGrid as PisellBasicGrid, type PisellBasicGridProps, PisellBatchActionBar, type PisellBatchActionBarProps, PisellCard, _default$9 as PisellCardList, PisellCards, PisellCheckboxGroup, PisellConfigProvider, PisellContainer, PisellContent, PisellContext, PisellCountdown, MemoizedPisellCurrency as PisellCurrency, type PisellCurrencyProps, PisellCustomCheckboxGroup, PisellDataSourceContainer, PisellDatePicker, _default$10 as PisellDateTimeDisplay, type PisellDateTimeDisplayProps, Demo as PisellDraggable, PisellDropSort, PisellDropdown, PisellEmail, type PisellEmailProps, PisellEmpty, PisellFilter, type PisellFilterProps, PisellFind, type PisellFindProps, type PisellFindRef, PisellFloatingPanel, PisellFooter, index as PisellGoodPassCard, PisellGridPro, GridView as PisellGridView, PisellHeader, PisellHeaderProgressBar, Provider$2 as PisellImageCard, type PisellImageCardProps, PisellImageCarousels, PisellInformationEntry, PisellInput, PisellLayout, PisellList01, PisellLoading, _default$11 as PisellLongText, type PisellLongTextProps, PisellLookup, type PisellLookupProps, type PisellLookupRef, PisellMenu, type PisellMenuProps, PisellModal, PisellMultipleSelect, type PisellMultipleSelectProps, PisellNavigationMenu, MemoizedPisellNumber as PisellNumber, Number as PisellNumberKeyboard, type PisellNumberProps, MemoizedPisellPercent as PisellPercent, type PisellPercentProps, _default$12 as PisellPhone, type PisellPhoneProps, Amount as PisellPriceKeyboard, PisellProcedure, type PisellProcedureProps, type PisellProcedureRef, PisellQRScanner, type PisellQRScannerProps, PisellQrcode, pisellQuickFilter as PisellQuickFilter, type PisellQuickFilterProps, _default$13 as PisellRating, type PisellRatingProps, PisellRow, PisellScan, PisellScrollView, type PisellScrollViewProps, PisellSectionHeaders, PisellSider, _default$14 as PisellSingleLineText, type PisellSingleLineTextProps, PisellSingleSelect, type PisellSingleSelectProps, PisellSort, type PisellSortProps, PisellStatisticList, type PisellStepItem, PisellSteps, type PisellStepsProps, _default$15 as PisellSuperTabs, type PisellSuperTabsProps, PisellTabbar, PisellTabbar$1 as PisellTabbar2, type PisellTabbarProps, _default$16 as PisellTabbarTemplate1, PisellTags, PisellText, PisellTimeRangeDisplay, type PisellTimeRangeDisplayProps, PisellToast, Toolbar as PisellToolBar, PisellTooltip, PisellUpload, PisellUrl, type PisellUrlProps, PisellViewGrid, PisellWalletPassCard, type PisellWalletPassCardProps, Popconfirm, Popover, type ProcedureBodyProps, type ProcedureFooterProps, type ProcedureHeaderProps, ProductCard, ProfileMenu, Progress, PublishVersionModal, QRCode, Radio$1 as Radio, Rate, _default$17 as RecordView, Result, Row, SectionFooters, Segmented, Select, SelectTime, type SingleSelectRef, Skeleton, SliderOuter as Slider, Sort, SortableList, Space, Spin, Statistic, Steps, SubmitButton, Switch$1 as Switch, Provider$3 as TabCard, type TabCardProps, type TabDataItem, type TabbarDataSource, _default$18 as Table, Tabs, Tag, Provider$4 as TextCard, TimePicker$1 as TimePicker, Timeline, type ToolBarProps, Tooltip, Transfer, Translation$2 as Translation, Tree, TreeSelect, Typography, Upload$1 as Upload, VirtualInput, VirtualKeyboard, VirtualKeyboardTime, WalletCard, getBankCardTypeImg, globalConfig, loginAndRegister, message, notification, usePisellConfig, useToast, version };
258
+ export { Affix, Alert, Anchor, AppVersionControl, AutoComplete, AutoCompleteNumber, AutoResizeText, Avatar, Badge, type BadgeConfig, Translation as BaseTranslation, type BatchActionBarPosition, type BatchActionConfirmConfig, type BatchActionItem, BatchEditor, Breadcrumb, Button, _default as ButtonGroupEdit, _default$1 as ButtonGroupPreview, Calendar, Card, CardMetricItem, _default$2 as CardPro, Carousel, Cascader, Checkbox, ClassicLayout, Col, Collapse, ColorPicker, Component, ConfigProvider, type CountryCode, CropPhoto, CustomSelect, type DataSourceContainerProps, _default$3 as DataSourceForm, DataSourceImage, DataSourceMenu, DataSourceQRCode, _default$4 as DataSourceTable, DataSourceTypography, DataSourceWrapper, DatePicker, type DefaultActionsConfig, Descriptions, _default$5 as Div, Divider, DragSortTree, Drawer, Dropdown, Empty, Filter, _default$6 as Form, FormGroup, Checkbox$1 as FormItemCheckbox, ColorPicker$1 as FormItemColorPicker, DatePicker$1 as FormItemDatePicker, IconSelect as FormItemIconSelect, Input as FormItemInput, InputNumber as FormItemInputNumber, Radio as FormItemRadio, SelectWithDataSource as FormItemSelect, Switch as FormItemSwitch, TimePicker as FormItemTimePicker, Translation$1 as FormItemTranslation, Upload as FormItemUpload, Provider as GraphicTextCard, type GraphicTextCardProps, type GraphicTextCardSize, type GraphicTextCardVariant, Grid, type GridProProps, type GridViewProps, HardwareErrorTip, _default$7 as Icon, IconSelect$1 as IconSelect, IconFont as Iconfont, Image, type ImageDataSource, type ImageFillMode, Input$1 as Input, InputNumber$1 as InputNumber, InputNumberRange, JsonWrapperProvider as JsonWrapper, _default$8 as Keyboard, type LevelType, List, LowCodePage, type MailtoOptions, Mentions, Menu, Modal, Provider$1 as MultilevelCard, type MultilevelCardProps, type MultipleSelectRef, OrganizationTenantSwitcher, Page, PageHeader, Pagination, PisellAdjustPrice, PisellAdjustPriceInputNumber, PisellAlert, PisellAnchor, PisellAppCard, type PisellAppCardProps, PisellAvatar, type PisellBasicCardProps, MemoizedPisellBasicGrid as PisellBasicGrid, type PisellBasicGridProps, PisellBatchActionBar, type PisellBatchActionBarProps, PisellCard, _default$9 as PisellCardList, PisellCards, PisellCheckboxGroup, PisellConfigProvider, PisellContainer, PisellContent, PisellContext, PisellCountdown, MemoizedPisellCurrency as PisellCurrency, type PisellCurrencyProps, PisellCustomCheckboxGroup, PisellDataSourceContainer, PisellDatePicker, _default$10 as PisellDateTimeDisplay, type PisellDateTimeDisplayProps, Demo as PisellDraggable, PisellDropSort, PisellDropdown, _default$11 as PisellEmail, type PisellEmailProps, PisellEmpty, PisellFilter, type PisellFilterProps, PisellFind, type PisellFindProps, type PisellFindRef, PisellFloatingPanel, PisellFooter, index as PisellGoodPassCard, PisellGridPro, GridView as PisellGridView, PisellHeader, PisellHeaderProgressBar, Provider$2 as PisellImageCard, type PisellImageCardProps, PisellImageCarousels, PisellInformationEntry, PisellInput, PisellLayout, PisellList01, PisellLoading, _default$12 as PisellLongText, type PisellLongTextProps, PisellLookup, type PisellLookupProps, type PisellLookupRef, PisellMenu, type PisellMenuProps, PisellMetricCard, PisellModal, PisellMultipleSelect, type PisellMultipleSelectProps, PisellNavigationMenu, MemoizedPisellNumber as PisellNumber, Number as PisellNumberKeyboard, type PisellNumberProps, MemoizedPisellPercent as PisellPercent, type PisellPercentProps, _default$13 as PisellPhone, type PisellPhoneProps, Amount as PisellPriceKeyboard, PisellProcedure, type PisellProcedureProps, type PisellProcedureRef, PisellQRScanner, type PisellQRScannerProps, PisellQrcode, pisellQuickFilter as PisellQuickFilter, type PisellQuickFilterProps, _default$14 as PisellRating, type PisellRatingProps, PisellRecordBoard, PisellRow, PisellScan, PisellScrollView, type PisellScrollViewProps, PisellSectionHeaders, PisellShellFrame, type PisellShellFrameConfig, type PisellShellFrameProps, type PisellShellFrameScrollConfig, PisellSider, _default$15 as PisellSingleLineText, type PisellSingleLineTextProps, PisellSingleSelect, type PisellSingleSelectProps, PisellSort, type PisellSortProps, PisellStatisticList, type PisellStepItem, PisellSteps, type PisellStepsProps, _default$16 as PisellSuperTabs, type PisellSuperTabsProps, PisellTabbar, PisellTabbar$1 as PisellTabbar2, type PisellTabbarProps, _default$17 as PisellTabbarTemplate1, PisellTags, PisellText, PisellTimeRangeDisplay, type PisellTimeRangeDisplayProps, PisellToast, Toolbar as PisellToolBar, PisellTooltip, PisellUpload, _default$18 as PisellUrl, type PisellUrlProps, PisellViewGrid, PisellWalletPassCard, type PisellWalletPassCardProps, Popconfirm, Popover, type ProcedureBodyProps, type ProcedureFooterProps, type ProcedureHeaderProps, ProductCard, ProfileMenu, Progress, PublishVersionModal, QRCode, Radio$1 as Radio, Rate, type RecordBoardChildComponentProps, type RecordBoardColumnFilterConfig, type RecordBoardColumnType, type RecordBoardContextValue, type RecordBoardFieldType, type RecordBoardGetOptions, type RecordBoardGridProps, type RecordBoardLayoutType, type RecordBoardOptionItem, type RecordBoardProps, _default$19 as RecordView, Result, Row, SectionFooters, Segmented, Select, SelectTime, type SingleSelectRef, Skeleton, SliderOuter as Slider, Sort, SortableList, Space, Spin, Statistic, Steps, SubmitButton, Switch$1 as Switch, Provider$3 as TabCard, type TabCardProps, type TabDataItem, type TabbarDataSource, _default$20 as Table, Tabs, Tag, Provider$4 as TextCard, TimePicker$1 as TimePicker, Timeline, type ToolBarProps, Tooltip, Transfer, Translation$2 as Translation, Tree, TreeSelect, Typography, Upload$1 as Upload, VirtualInput, VirtualKeyboard, VirtualKeyboardTime, WalletCard, getBankCardTypeImg, globalConfig, loginAndRegister, message, notification, usePisellConfig, useRecordBoardContext, useToast, version };
package/lib/index.js CHANGED
@@ -23,6 +23,17 @@ const require_index$18 = require('./components/tabs/index.js');
23
23
  const require_index$19 = require('./components/date-picker/index.js');
24
24
  const require_index$20 = require('./components/input/index.js');
25
25
  const require_index$21 = require('./components/input-number-range/index.js');
26
+ const require_PisellSingleLineText = require('./components/pisellSingleLineText/PisellSingleLineText.js');
27
+ const require_PisellLongText = require('./components/pisellLongText/PisellLongText.js');
28
+ const require_PisellEmail = require('./components/pisellEmail/PisellEmail.js');
29
+ const require_PisellPhone = require('./components/pisellPhone/PisellPhone.js');
30
+ const require_PisellUrl = require('./components/pisellUrl/PisellUrl.js');
31
+ const require_PisellNumber = require('./components/pisellNumber/PisellNumber.js');
32
+ const require_PisellCurrency = require('./components/pisellCurrency/PisellCurrency.js');
33
+ const require_PisellPercent = require('./components/pisellPercent/PisellPercent.js');
34
+ const require_PisellRating = require('./components/pisellRating/PisellRating.js');
35
+ const require_PisellSingleSelect = require('./components/pisellSingleSelect/PisellSingleSelect.js');
36
+ const require_PisellMultipleSelect = require('./components/pisellMultipleSelect/PisellMultipleSelect.js');
26
37
  const require_index$22 = require('./components/filter/index.js');
27
38
  const require_index$23 = require('./components/sort/index.js');
28
39
  const require_index$24 = require('./components/page-header/index.js');
@@ -160,24 +171,17 @@ const require_index$138 = require('./components/PisellTabbar/template/Template1/
160
171
  const require_index$139 = require('./components/PisellTabbar/index.js');
161
172
  const require_PisellTabbar = require('./components/PisellTabbar2/PisellTabbar.js');
162
173
  const require_index$140 = require('./components/pisellDataSourceContainer/index.js');
163
- const require_index$141 = require('./components/pisellGridPro/GridView/index.js');
164
- const require_index$142 = require('./components/pisellGridPro/ToolBar/index.js');
165
- const require_index$143 = require('./components/pisellGridPro/index.js');
166
- const require_index$144 = require('./components/pisellSort/index.js');
167
- const require_index$145 = require('./components/pisellFilter/index.js');
168
- const require_index$146 = require('./components/pisellQuickFilter/index.js');
169
- const require_PisellSingleLineText = require('./components/pisellSingleLineText/PisellSingleLineText.js');
170
- const require_PisellLongText = require('./components/pisellLongText/PisellLongText.js');
171
- const require_PisellNumber = require('./components/pisellNumber/PisellNumber.js');
172
- const require_PisellCurrency = require('./components/pisellCurrency/PisellCurrency.js');
173
- const require_PisellPercent = require('./components/pisellPercent/PisellPercent.js');
174
- const require_PisellPhone = require('./components/pisellPhone/PisellPhone.js');
175
- const require_PisellEmail = require('./components/pisellEmail/PisellEmail.js');
176
- const require_PisellUrl = require('./components/pisellUrl/PisellUrl.js');
177
- const require_PisellRating = require('./components/pisellRating/PisellRating.js');
178
- const require_PisellSingleSelect = require('./components/pisellSingleSelect/PisellSingleSelect.js');
179
- const require_PisellMultipleSelect = require('./components/pisellMultipleSelect/PisellMultipleSelect.js');
174
+ const require_useRecordBoardContext = require('./components/pisellRecordBoard/hooks/useRecordBoardContext.js');
180
175
  const require_PisellDateTimeDisplay = require('./components/pisellDateTimeDisplay/PisellDateTimeDisplay.js');
176
+ const require_PisellShellFrame = require('./components/pisellShellFrame/PisellShellFrame.js');
177
+ const require_index$141 = require('./components/pisellGridPro/ToolBar/index.js');
178
+ const require_index$142 = require('./components/pisellFilter/index.js');
179
+ const require_index$143 = require('./components/pisellRecordBoard/index.js');
180
+ const require_PisellMetricCard = require('./components/pisellMetricCard/PisellMetricCard.js');
181
+ const require_index$144 = require('./components/pisellGridPro/GridView/index.js');
182
+ const require_index$145 = require('./components/pisellGridPro/index.js');
183
+ const require_index$146 = require('./components/pisellSort/index.js');
184
+ const require_index$147 = require('./components/pisellQuickFilter/index.js');
181
185
  const require_PisellTimeRangeDisplay = require('./components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.js');
182
186
  let antd = require("antd");
183
187
 
@@ -373,15 +377,15 @@ exports.PisellDateTimeDisplay = require_PisellDateTimeDisplay;
373
377
  exports.PisellDraggable = require_index$100;
374
378
  exports.PisellDropSort = require_index$128;
375
379
  exports.PisellDropdown = require_index$101;
376
- exports.PisellEmail = require_PisellEmail.PisellEmail;
380
+ exports.PisellEmail = require_PisellEmail;
377
381
  exports.PisellEmpty = require_index$91;
378
- exports.PisellFilter = require_index$145;
382
+ exports.PisellFilter = require_index$142;
379
383
  exports.PisellFind = require_index$137.PisellFind;
380
384
  exports.PisellFloatingPanel = require_index$102;
381
385
  exports.PisellFooter = require_footer;
382
386
  exports.PisellGoodPassCard = require_index$131;
383
- exports.PisellGridPro = require_index$143;
384
- exports.PisellGridView = require_index$141;
387
+ exports.PisellGridPro = require_index$145;
388
+ exports.PisellGridView = require_index$144;
385
389
  exports.PisellHeader = require_header;
386
390
  exports.PisellHeaderProgressBar = require_index$104;
387
391
  exports.PisellImageCard = require_PisellImageCard;
@@ -394,6 +398,7 @@ exports.PisellLoading = require_index$96;
394
398
  exports.PisellLongText = require_PisellLongText;
395
399
  exports.PisellLookup = require_PisellLookup.PisellLookup;
396
400
  exports.PisellMenu = require_index$43;
401
+ exports.PisellMetricCard = require_PisellMetricCard;
397
402
  exports.PisellModal = require_index$3;
398
403
  exports.PisellMultipleSelect = require_PisellMultipleSelect;
399
404
  exports.PisellNavigationMenu = require_index$129;
@@ -405,16 +410,18 @@ exports.PisellPriceKeyboard = require_index$84;
405
410
  exports.PisellProcedure = require_PisellProcedure;
406
411
  exports.PisellQRScanner = require_index$50;
407
412
  exports.PisellQrcode = require_index$89;
408
- exports.PisellQuickFilter = require_index$146;
413
+ exports.PisellQuickFilter = require_index$147;
409
414
  exports.PisellRating = require_PisellRating;
415
+ exports.PisellRecordBoard = require_index$143;
410
416
  exports.PisellRow = require_index$9;
411
417
  exports.PisellScan = require_index$106;
412
418
  exports.PisellScrollView = require_index$113;
413
419
  exports.PisellSectionHeaders = require_index$103;
420
+ exports.PisellShellFrame = require_PisellShellFrame.PisellShellFrame;
414
421
  exports.PisellSider = require_sider;
415
422
  exports.PisellSingleLineText = require_PisellSingleLineText;
416
423
  exports.PisellSingleSelect = require_PisellSingleSelect;
417
- exports.PisellSort = require_index$144;
424
+ exports.PisellSort = require_index$146;
418
425
  exports.PisellStatisticList = require_index$112;
419
426
  exports.PisellSteps = require_index$114;
420
427
  exports.PisellSuperTabs = require_index$136;
@@ -425,10 +432,10 @@ exports.PisellTags = require_index$10;
425
432
  exports.PisellText = require_index$83;
426
433
  exports.PisellTimeRangeDisplay = require_PisellTimeRangeDisplay.PisellTimeRangeDisplay;
427
434
  exports.PisellToast = require_index$13;
428
- exports.PisellToolBar = require_index$142;
435
+ exports.PisellToolBar = require_index$141;
429
436
  exports.PisellTooltip = require_index$111;
430
437
  exports.PisellUpload = require_index$63;
431
- exports.PisellUrl = require_PisellUrl.PisellUrl;
438
+ exports.PisellUrl = require_PisellUrl;
432
439
  exports.PisellViewGrid = require_index$97;
433
440
  exports.PisellWalletPassCard = require_index$90;
434
441
  Object.defineProperty(exports, 'Popconfirm', {
@@ -571,6 +578,7 @@ Object.defineProperty(exports, 'notification', {
571
578
  }
572
579
  });
573
580
  exports.usePisellConfig = require_usePisellConfig;
581
+ exports.useRecordBoardContext = require_useRecordBoardContext.useRecordBoardContext;
574
582
  exports.useToast = require_index$12.useToast;
575
583
  Object.defineProperty(exports, 'version', {
576
584
  enumerable: true,
@@ -22,8 +22,10 @@ var en_US_default = {
22
22
  "sort-z-a": "Z to A",
23
23
  "sort-from-morning-to-night": "From morning to night",
24
24
  "sort-from-evening-to-morning": "From evening to morning",
25
- "sort-0-9": "0 ~ 9",
26
- "sort-9-0": "9 ~ 0",
25
+ "sort-0-9": "0 9",
26
+ "sort-9-0": "9 0",
27
+ "sort-first-last": "First → Last",
28
+ "sort-last-first": "Last → First",
27
29
  "table-action-filter-button": "Filter",
28
30
  "table-action-filter-quick-filter": "Quick Filter",
29
31
  "table-action-filter-quick-filter-tip": (count) => `Enable quick filtering directly on the page for convenient filtering operations, with a maximum of ${count} filters allowed.`,
@@ -39,6 +41,8 @@ var en_US_default = {
39
41
  "table-action-view-mode-grid": "Grid",
40
42
  "table-action-view-mode-gallery": "Gallery",
41
43
  "table-action-view-mode-kanban": "Kanban",
44
+ "table-action-range-picker-placeholder-start": "Start date",
45
+ "table-action-range-picker-placeholder-end": "End date",
42
46
  "table-action-range-picker-presets-today": "Today",
43
47
  "table-action-range-picker-presets-yesterday": "Yesterday",
44
48
  "table-action-range-picker-presets-last-3-day": "Last 3 Days",
@@ -62,6 +66,7 @@ var en_US_default = {
62
66
  "pisell-lookup-no-data": "No Data",
63
67
  "pisell-find-button-text": "Find",
64
68
  "pisell-find-placeholder": "Please enter search content",
69
+ "pisell-export-button-text": "Export",
65
70
  "batch-editor-actions": "Actions",
66
71
  "batch-editor-remove": "Remove",
67
72
  "batch-editor-price": "Price",
@@ -84,6 +89,15 @@ var en_US_default = {
84
89
  "batch-action-bar-delete-confirm-content": (count) => `Are you sure you want to delete ${count} selected ${count > 1 ? "items" : "item"}?`,
85
90
  "batch-action-bar-delete-confirm-ok": "OK",
86
91
  "batch-action-bar-delete-confirm-cancel": "Cancel",
92
+ "record-board-toolbar-reset": "Reset",
93
+ "record-board-toolbar-default-filter-status": "Status",
94
+ "record-board-toolbar-default-filter-all": "All",
95
+ "record-board-toolbar-default-filter-enabled": "Enabled",
96
+ "record-board-toolbar-default-filter-disabled": "Disabled",
97
+ "record-board-toolbar-default-filter-keyword": "Keyword",
98
+ "record-board-toolbar-default-placeholder": "Please enter",
99
+ "shell-frame-statistic-expand": "Expand statistics",
100
+ "shell-frame-statistic-collapse": "Collapse statistics",
87
101
  "table-action-export-import-export-success": "Export successful! ",
88
102
  "table-action-export-import-button": "Export",
89
103
  "table-action-export-import-export-range": "Export Range",
@@ -18,12 +18,14 @@ var zh_CN_default = {
18
18
  "sort-button-text": "排序",
19
19
  "sort-oldest-to-newest": "从旧到新",
20
20
  "sort-newest-to-oldest": "从新到旧",
21
- "sort-a-z": "A Z",
22
- "sort-z-a": "Z A",
21
+ "sort-a-z": "A Z",
22
+ "sort-z-a": "Z A",
23
23
  "sort-from-morning-to-night": "从早到晚",
24
24
  "sort-from-evening-to-morning": "从晚到早",
25
- "sort-0-9": "0 ~ 9",
26
- "sort-9-0": "9 ~ 0",
25
+ "sort-0-9": "0 9",
26
+ "sort-9-0": "9 0",
27
+ "sort-first-last": "First → Last",
28
+ "sort-last-first": "Last → First",
27
29
  "table-action-filter-button": "筛选",
28
30
  "table-action-filter-quick-filter": "快捷筛选",
29
31
  "table-action-filter-quick-filter-tip": (count) => `在页面上直接启用快速筛选,以便进行方便的筛选操作,最多允许使用${count}个筛选器。`,
@@ -39,6 +41,8 @@ var zh_CN_default = {
39
41
  "table-action-view-mode-grid": "表格",
40
42
  "table-action-view-mode-gallery": "图库",
41
43
  "table-action-view-mode-kanban": "看板",
44
+ "table-action-range-picker-placeholder-start": "开始日期",
45
+ "table-action-range-picker-placeholder-end": "结束日期",
42
46
  "table-action-range-picker-presets-today": "今天",
43
47
  "table-action-range-picker-presets-yesterday": "昨天",
44
48
  "table-action-range-picker-presets-last-3-day": "过去3天",
@@ -62,6 +66,7 @@ var zh_CN_default = {
62
66
  "pisell-lookup-no-data": "暂无数据",
63
67
  "pisell-find-button-text": "Find",
64
68
  "pisell-find-placeholder": "请输入搜索内容",
69
+ "pisell-export-button-text": "导出",
65
70
  "batch-editor-actions": "操作",
66
71
  "batch-editor-remove": "移除",
67
72
  "batch-editor-price": "价格",
@@ -84,6 +89,15 @@ var zh_CN_default = {
84
89
  "batch-action-bar-delete-confirm-content": (count) => `确定要删除选中的 ${count} 项吗?`,
85
90
  "batch-action-bar-delete-confirm-ok": "确定",
86
91
  "batch-action-bar-delete-confirm-cancel": "取消",
92
+ "record-board-toolbar-reset": "重置",
93
+ "record-board-toolbar-default-filter-status": "状态",
94
+ "record-board-toolbar-default-filter-all": "全部",
95
+ "record-board-toolbar-default-filter-enabled": "启用",
96
+ "record-board-toolbar-default-filter-disabled": "禁用",
97
+ "record-board-toolbar-default-filter-keyword": "关键词",
98
+ "record-board-toolbar-default-placeholder": "请输入",
99
+ "shell-frame-statistic-expand": "展开统计",
100
+ "shell-frame-statistic-collapse": "收起统计",
87
101
  "table-action-export-import-export-success": "导出成功!",
88
102
  "table-action-export-import-button": "导出",
89
103
  "table-action-export-import-export-range": "导出范围",
@@ -18,12 +18,14 @@ var zh_TW_default = {
18
18
  "sort-button-text": "排序",
19
19
  "sort-oldest-to-newest": "從舊到新",
20
20
  "sort-newest-to-oldest": "從新到舊",
21
- "sort-a-z": "A Z",
22
- "sort-z-a": "Z A",
21
+ "sort-a-z": "A Z",
22
+ "sort-z-a": "Z A",
23
23
  "sort-from-morning-to-night": "從早到晚",
24
24
  "sort-from-evening-to-morning": "從晚到早",
25
- "sort-0-9": "0 ~ 9",
26
- "sort-9-0": "9 ~ 0",
25
+ "sort-0-9": "0 9",
26
+ "sort-9-0": "9 0",
27
+ "sort-first-last": "First → Last",
28
+ "sort-last-first": "Last → First",
27
29
  "table-action-filter-button": "篩選",
28
30
  "table-action-filter-quick-filter": "快速篩選",
29
31
  "table-action-filter-quick-filter-tip": (count) => `在頁面上直接啟用快速篩選,以便進行方便的篩選操作,最多允許使用${count}個篩選器。`,
@@ -39,6 +41,8 @@ var zh_TW_default = {
39
41
  "table-action-view-mode-grid": "表格",
40
42
  "table-action-view-mode-gallery": "圖庫",
41
43
  "table-action-view-mode-kanban": "看板",
44
+ "table-action-range-picker-placeholder-start": "開始日期",
45
+ "table-action-range-picker-placeholder-end": "結束日期",
42
46
  "table-action-range-picker-presets-today": "今天",
43
47
  "table-action-range-picker-presets-yesterday": "昨天",
44
48
  "table-action-range-picker-presets-last-3-day": "過去3天",
@@ -62,6 +66,7 @@ var zh_TW_default = {
62
66
  "pisell-lookup-no-data": "暫無數據",
63
67
  "pisell-find-button-text": "Find",
64
68
  "pisell-find-placeholder": "請輸入搜索內容",
69
+ "pisell-export-button-text": "導出",
65
70
  "batch-editor-actions": "操作",
66
71
  "batch-editor-remove": "移除",
67
72
  "batch-editor-price": "價格",
@@ -84,6 +89,15 @@ var zh_TW_default = {
84
89
  "batch-action-bar-delete-confirm-content": (count) => `確定要刪除選中的 ${count} 項嗎?`,
85
90
  "batch-action-bar-delete-confirm-ok": "確定",
86
91
  "batch-action-bar-delete-confirm-cancel": "取消",
92
+ "record-board-toolbar-reset": "重置",
93
+ "record-board-toolbar-default-filter-status": "狀態",
94
+ "record-board-toolbar-default-filter-all": "全部",
95
+ "record-board-toolbar-default-filter-enabled": "啟用",
96
+ "record-board-toolbar-default-filter-disabled": "禁用",
97
+ "record-board-toolbar-default-filter-keyword": "關鍵詞",
98
+ "record-board-toolbar-default-placeholder": "請輸入",
99
+ "shell-frame-statistic-expand": "展開統計",
100
+ "shell-frame-statistic-collapse": "收起統計",
87
101
  "table-action-export-import-export-success": "導出成功!",
88
102
  "table-action-export-import-button": "匯出",
89
103
  "table-action-export-import-export-range": "導出範圍",
@@ -0,0 +1,32 @@
1
+
2
+ //#region src/utils/tagColor.ts
3
+ /**
4
+ * 只读态 Tag 未传 color 时使用的预设色板(按索引稳定分配)
5
+ */
6
+ const PRESET_TAG_COLORS = [
7
+ "blue",
8
+ "green",
9
+ "orange",
10
+ "purple",
11
+ "cyan",
12
+ "magenta",
13
+ "gold",
14
+ "lime",
15
+ "geekblue",
16
+ "volcano"
17
+ ];
18
+ /**
19
+ * 根据 value 或索引从预设色板取一个稳定颜色(未传 option.color 时使用)
20
+ */
21
+ function getDefaultTagColor(value, index) {
22
+ const key = value !== null && value !== void 0 && typeof value === "object" ? JSON.stringify(value) : String(value !== null && value !== void 0 ? value : "");
23
+ let hash = 0;
24
+ for (let i = 0; i < key.length; i++) {
25
+ hash = (hash << 5) - hash + key.charCodeAt(i);
26
+ hash |= 0;
27
+ }
28
+ return PRESET_TAG_COLORS[Math.abs(hash) % PRESET_TAG_COLORS.length];
29
+ }
30
+
31
+ //#endregion
32
+ exports.getDefaultTagColor = getDefaultTagColor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.1034",
3
+ "version": "1.0.1035",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -90,8 +90,8 @@
90
90
  "antd-mobile": "^5.38.1",
91
91
  "vod-js-sdk-v6": "^1.4.11",
92
92
  "@pisell/date-picker": "1.0.133",
93
- "@pisell/utils": "1.0.60",
94
- "@pisell/icon": "0.0.10"
93
+ "@pisell/icon": "0.0.10",
94
+ "@pisell/utils": "1.0.60"
95
95
  },
96
96
  "peerDependencies": {
97
97
  "react": "^18.0.0",