@pisell/materials 1.10.19 → 1.10.21

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 (268) 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/meta.js +3 -3
  5. package/build/lowcode/preview.css +1 -1
  6. package/build/lowcode/preview.js +1 -1
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +32 -32
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +32 -32
  11. package/es/components/PisellBasicGrid/PisellBasicGrid.d.ts +1 -2
  12. package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +1 -2
  13. package/es/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts +1 -1
  14. package/es/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +1 -2
  15. package/es/components/PisellCards/components/TabCard/TabCard.d.ts +1 -2
  16. package/es/components/PisellCards/components/TextCard/TextCard.d.ts +1 -2
  17. package/es/components/PisellCards/index.d.ts +5 -7
  18. package/es/components/PisellFields/index.d.ts +0 -1
  19. package/es/components/PisellFields/index.js +11 -0
  20. package/es/components/PisellGroupView/PisellGroupView.d.ts +1 -2
  21. package/es/components/PisellLayouts/index.d.ts +2 -3
  22. package/es/components/PisellMetrics/index.d.ts +2 -3
  23. package/es/components/PisellSelectionFlow/PisellSelectionFlow.js +7 -1
  24. package/es/components/PisellSelectionFlow/hooks/useFlowNavigation.js +104 -3
  25. package/es/components/PisellSelectionFlow/index.d.ts +1 -1
  26. package/es/components/PisellSelectionFlow/types.d.ts +20 -1
  27. package/es/components/appVersionControl/index.d.ts +1 -2
  28. package/es/components/appVersionControl/types.d.ts +0 -1
  29. package/es/components/auto-complete-number/index.d.ts +1 -2
  30. package/es/components/badge/index.d.ts +1 -2
  31. package/es/components/batch-editor/index.d.ts +1 -2
  32. package/es/components/calendar/index.d.ts +1 -4
  33. package/es/components/cardMetricItem/index.d.ts +1 -1
  34. package/es/components/cardPro/index.d.ts +1 -2
  35. package/es/components/checkbox/index.d.ts +1 -4
  36. package/es/components/classicLayout/index.d.ts +1 -2
  37. package/es/components/config-provider/index.d.ts +1 -2
  38. package/es/components/customSelect/index.d.ts +1 -1
  39. package/es/components/dataSourceComponents/dataSourceForm/group/index.d.ts +1 -1
  40. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +1 -1
  41. package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +1 -1
  42. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -4
  43. package/es/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +2 -2
  44. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -1
  45. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -2
  46. package/es/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +0 -1
  47. package/es/components/dataSourceComponents/fields/Radio/WithMode.d.ts +0 -1
  48. package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -2
  49. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
  50. package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -3
  51. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -1
  52. package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -1
  53. package/es/components/date-picker/index.d.ts +1 -4
  54. package/es/components/drag-sort-tree/index.d.ts +1 -2
  55. package/es/components/drag-sort-tree/types.d.ts +0 -1
  56. package/es/components/dropdown/index.d.ts +1 -3
  57. package/es/components/filter/components/FilterButton/types.d.ts +0 -1
  58. package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +2 -0
  59. package/es/components/filter/components/FilterItem/index.js +11 -0
  60. package/es/components/filter/index.d.ts +1 -2
  61. package/es/components/input/index.d.ts +0 -1
  62. package/es/components/keyboard/index.d.ts +1 -1
  63. package/es/components/list/index.d.ts +1 -2
  64. package/es/components/lowCodePage/index.d.ts +1 -3
  65. package/es/components/page/index.d.ts +1 -2
  66. package/es/components/page-header/index.d.ts +1 -1
  67. package/es/components/pisell-config-provider/context.d.ts +0 -1
  68. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -2
  69. package/es/components/pisellAdjustPrice/index.d.ts +1 -2
  70. package/es/components/pisellAlert/index.d.ts +1 -1
  71. package/es/components/pisellCard/index.d.ts +1 -2
  72. package/es/components/pisellCheckboxGroup/index.d.ts +1 -1
  73. package/es/components/pisellCountdown/index.d.ts +1 -1
  74. package/es/components/pisellCurrency/index.js +13 -0
  75. package/es/components/pisellDatePicker/index.d.ts +1 -4
  76. package/es/components/pisellDraggable/index.d.ts +1 -1
  77. package/es/components/pisellEmail/index.js +13 -0
  78. package/es/components/pisellEmpty/index.d.ts +1 -1
  79. package/es/components/pisellFilter/index.d.ts +1 -2
  80. package/es/components/pisellFloatingPanel/index.d.ts +1 -1
  81. package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +4 -5
  82. package/es/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +1 -2
  83. package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +1 -3
  84. package/es/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +1 -2
  85. package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +1 -1
  86. package/es/components/pisellGoodPassCard/index.d.ts +1 -1
  87. package/es/components/pisellGridPro/GridView/index.d.ts +1 -2
  88. package/es/components/pisellGridPro/ToolBar/type.d.ts +0 -1
  89. package/es/components/pisellInformationEntry/index.d.ts +1 -1
  90. package/es/components/pisellInput/components/BankCard/index.d.ts +0 -1
  91. package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
  92. package/es/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  93. package/es/components/pisellInput/index.d.ts +4 -5
  94. package/es/components/pisellLoading/index.d.ts +1 -2
  95. package/es/components/pisellLongText/index.js +13 -0
  96. package/es/components/pisellLookup/PisellLookup.less +2 -0
  97. package/es/components/pisellMenu/types.d.ts +0 -1
  98. package/es/components/pisellModal/index.d.ts +2 -2
  99. package/es/components/pisellMultipleSelect/index.js +13 -0
  100. package/es/components/pisellNumber/index.js +13 -0
  101. package/es/components/pisellPercent/index.js +13 -0
  102. package/es/components/pisellPhone/index.js +14 -0
  103. package/es/components/pisellQuickFilter/type.d.ts +0 -1
  104. package/es/components/pisellRating/index.js +13 -0
  105. package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +13 -7
  106. package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +1 -2
  107. package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +2 -1
  108. package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +6 -6
  109. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +3 -3
  110. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +3 -3
  111. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +2 -0
  112. package/es/components/pisellRecordBoard/types.d.ts +2 -0
  113. package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +11 -0
  114. package/es/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +1 -2
  115. package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +1 -2
  116. package/es/components/pisellRow/index.d.ts +1 -1
  117. package/es/components/pisellSingleLineText/index.js +13 -0
  118. package/es/components/pisellSingleSelect/index.js +13 -0
  119. package/es/components/pisellSort/index.d.ts +1 -2
  120. package/es/components/pisellStatisticList/index.d.ts +1 -1
  121. package/es/components/pisellTags/index.d.ts +1 -1
  122. package/es/components/pisellText/index.d.ts +2 -2
  123. package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +1 -2
  124. package/es/components/pisellTooltip/index.d.ts +1 -2
  125. package/es/components/pisellUpload/index.d.ts +1 -2
  126. package/es/components/pisellUrl/index.js +13 -0
  127. package/es/components/pisellWalletPassCard/index.d.ts +1 -1
  128. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.less +1 -1
  129. package/es/components/productCard/cartSkuCard/index.less +0 -1
  130. package/es/components/qrcode/index.d.ts +1 -3
  131. package/es/components/radio/index.d.ts +1 -4
  132. package/es/components/section-footers/index.d.ts +1 -4
  133. package/es/components/segmented/index.d.ts +1 -2
  134. package/es/components/select-time/index.d.ts +1 -2
  135. package/es/components/skeleton/index.d.ts +1 -4
  136. package/es/components/slider/index.d.ts +1 -3
  137. package/es/components/tabs/index.d.ts +2 -2
  138. package/es/components/time-picker/index.d.ts +1 -4
  139. package/es/components/upload/index.d.ts +1 -4
  140. package/es/components/versionSelect/index.d.ts +0 -1
  141. package/es/components/virtual-keyboard/Amount/index.d.ts +1 -2
  142. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -1
  143. package/es/components/virtual-keyboard/Number/index.d.ts +1 -2
  144. package/es/components/virtual-keyboard/Time/index.d.ts +1 -1
  145. package/es/components/virtual-keyboard/index.d.ts +1 -1
  146. package/es/index.d.ts +2 -2
  147. package/es/index.js +11 -0
  148. package/lib/components/PisellBasicGrid/PisellBasicGrid.d.ts +1 -2
  149. package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +1 -2
  150. package/lib/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts +1 -1
  151. package/lib/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +1 -2
  152. package/lib/components/PisellCards/components/TabCard/TabCard.d.ts +1 -2
  153. package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +1 -2
  154. package/lib/components/PisellCards/index.d.ts +5 -7
  155. package/lib/components/PisellFields/index.d.ts +0 -1
  156. package/lib/components/PisellGroupView/PisellGroupView.d.ts +1 -2
  157. package/lib/components/PisellLayouts/index.d.ts +2 -3
  158. package/lib/components/PisellMetrics/index.d.ts +2 -3
  159. package/lib/components/PisellSelectionFlow/PisellSelectionFlow.js +7 -1
  160. package/lib/components/PisellSelectionFlow/hooks/useFlowNavigation.js +104 -3
  161. package/lib/components/PisellSelectionFlow/index.d.ts +1 -1
  162. package/lib/components/PisellSelectionFlow/types.d.ts +20 -1
  163. package/lib/components/appVersionControl/index.d.ts +1 -2
  164. package/lib/components/appVersionControl/types.d.ts +0 -1
  165. package/lib/components/auto-complete-number/index.d.ts +1 -2
  166. package/lib/components/badge/index.d.ts +1 -2
  167. package/lib/components/batch-editor/index.d.ts +1 -2
  168. package/lib/components/calendar/index.d.ts +1 -4
  169. package/lib/components/cardMetricItem/index.d.ts +1 -1
  170. package/lib/components/cardPro/index.d.ts +1 -2
  171. package/lib/components/checkbox/index.d.ts +1 -4
  172. package/lib/components/classicLayout/index.d.ts +1 -2
  173. package/lib/components/config-provider/index.d.ts +1 -2
  174. package/lib/components/customSelect/index.d.ts +1 -1
  175. package/lib/components/dataSourceComponents/dataSourceForm/group/index.d.ts +1 -1
  176. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +1 -1
  177. package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +1 -1
  178. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -4
  179. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +2 -2
  180. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -1
  181. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -2
  182. package/lib/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +0 -1
  183. package/lib/components/dataSourceComponents/fields/Radio/WithMode.d.ts +0 -1
  184. package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -2
  185. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
  186. package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -3
  187. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -1
  188. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -1
  189. package/lib/components/date-picker/index.d.ts +1 -4
  190. package/lib/components/drag-sort-tree/index.d.ts +1 -2
  191. package/lib/components/drag-sort-tree/types.d.ts +0 -1
  192. package/lib/components/dropdown/index.d.ts +1 -3
  193. package/lib/components/filter/components/FilterButton/types.d.ts +0 -1
  194. package/lib/components/filter/index.d.ts +1 -2
  195. package/lib/components/input/index.d.ts +0 -1
  196. package/lib/components/keyboard/index.d.ts +1 -1
  197. package/lib/components/list/index.d.ts +1 -2
  198. package/lib/components/lowCodePage/index.d.ts +1 -3
  199. package/lib/components/page/index.d.ts +1 -2
  200. package/lib/components/page-header/index.d.ts +1 -1
  201. package/lib/components/pisell-config-provider/context.d.ts +0 -1
  202. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -2
  203. package/lib/components/pisellAdjustPrice/index.d.ts +1 -2
  204. package/lib/components/pisellAlert/index.d.ts +1 -1
  205. package/lib/components/pisellCard/index.d.ts +1 -2
  206. package/lib/components/pisellCheckboxGroup/index.d.ts +1 -1
  207. package/lib/components/pisellCountdown/index.d.ts +1 -1
  208. package/lib/components/pisellDatePicker/index.d.ts +1 -4
  209. package/lib/components/pisellDraggable/index.d.ts +1 -1
  210. package/lib/components/pisellEmpty/index.d.ts +1 -1
  211. package/lib/components/pisellFilter/index.d.ts +1 -2
  212. package/lib/components/pisellFloatingPanel/index.d.ts +1 -1
  213. package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +4 -5
  214. package/lib/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +1 -2
  215. package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +1 -3
  216. package/lib/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +1 -2
  217. package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +1 -1
  218. package/lib/components/pisellGoodPassCard/index.d.ts +1 -1
  219. package/lib/components/pisellGridPro/GridView/index.d.ts +1 -2
  220. package/lib/components/pisellGridPro/ToolBar/type.d.ts +0 -1
  221. package/lib/components/pisellInformationEntry/index.d.ts +1 -1
  222. package/lib/components/pisellInput/components/BankCard/index.d.ts +0 -1
  223. package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
  224. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  225. package/lib/components/pisellInput/index.d.ts +4 -5
  226. package/lib/components/pisellLoading/index.d.ts +1 -2
  227. package/lib/components/pisellLookup/PisellLookup.less +2 -0
  228. package/lib/components/pisellMenu/types.d.ts +0 -1
  229. package/lib/components/pisellModal/index.d.ts +2 -2
  230. package/lib/components/pisellQuickFilter/type.d.ts +0 -1
  231. package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +12 -6
  232. package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +1 -2
  233. package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +2 -0
  234. package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +6 -6
  235. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +2 -2
  236. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +2 -2
  237. package/lib/components/pisellRecordBoard/types.d.ts +2 -0
  238. package/lib/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +1 -2
  239. package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +1 -2
  240. package/lib/components/pisellRow/index.d.ts +1 -1
  241. package/lib/components/pisellSort/index.d.ts +1 -2
  242. package/lib/components/pisellStatisticList/index.d.ts +1 -1
  243. package/lib/components/pisellTags/index.d.ts +1 -1
  244. package/lib/components/pisellText/index.d.ts +2 -2
  245. package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +1 -2
  246. package/lib/components/pisellTooltip/index.d.ts +1 -2
  247. package/lib/components/pisellUpload/index.d.ts +1 -2
  248. package/lib/components/pisellWalletPassCard/index.d.ts +1 -1
  249. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.less +1 -1
  250. package/lib/components/productCard/cartSkuCard/index.less +0 -1
  251. package/lib/components/qrcode/index.d.ts +1 -3
  252. package/lib/components/radio/index.d.ts +1 -4
  253. package/lib/components/section-footers/index.d.ts +1 -4
  254. package/lib/components/segmented/index.d.ts +1 -2
  255. package/lib/components/select-time/index.d.ts +1 -2
  256. package/lib/components/skeleton/index.d.ts +1 -4
  257. package/lib/components/slider/index.d.ts +1 -3
  258. package/lib/components/tabs/index.d.ts +2 -2
  259. package/lib/components/time-picker/index.d.ts +1 -4
  260. package/lib/components/upload/index.d.ts +1 -4
  261. package/lib/components/versionSelect/index.d.ts +0 -1
  262. package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -2
  263. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -1
  264. package/lib/components/virtual-keyboard/Number/index.d.ts +1 -2
  265. package/lib/components/virtual-keyboard/Time/index.d.ts +1 -1
  266. package/lib/components/virtual-keyboard/index.d.ts +1 -1
  267. package/lib/index.d.ts +2 -2
  268. package/package.json +1 -1
@@ -1,10 +1,9 @@
1
1
  import { PisellBasicGridProps } from "./types.js";
2
- import React from "react";
3
2
  //#region src/components/PisellBasicGrid/PisellBasicGrid.d.ts
4
3
  /**
5
4
  * 使用 memo 优化组件性能
6
5
  * @description 当 props 没有变化时,避免不必要的重新渲染
7
6
  */
8
- declare const MemoizedPisellBasicGrid: <T>(props: PisellBasicGridProps<T>) => React.JSX.Element;
7
+ declare const MemoizedPisellBasicGrid: <T>(props: PisellBasicGridProps<T>) => JSX.Element;
9
8
  //#endregion
10
9
  export { MemoizedPisellBasicGrid };
@@ -1,10 +1,9 @@
1
1
  import { GraphicTextCardProps } from "./types.js";
2
- import React from "react";
3
2
  //#region src/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts
4
3
  /**
5
4
  * Provider 包装器
6
5
  * 兼容 PisellCards 系统的 props 传递方式
7
6
  */
8
- declare const Provider: (props: GraphicTextCardProps) => React.JSX.Element;
7
+ declare const Provider: (props: GraphicTextCardProps) => JSX.Element;
9
8
  //#endregion
10
9
  export { Provider };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
2
  //#region src/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts
3
- declare const Provider: (props: any) => React.JSX.Element;
3
+ declare const Provider: (props: any) => JSX.Element;
4
4
  //#endregion
5
5
  export { Provider };
@@ -1,10 +1,9 @@
1
1
  import { PisellImageCardProps } from "./types.js";
2
- import React from "react";
3
2
  //#region src/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts
4
3
  /**
5
4
  * Provider 包装器
6
5
  * 兼容 PisellCards 系统的 props 传递方式
7
6
  */
8
- declare const Provider: (props: PisellImageCardProps) => React.JSX.Element;
7
+ declare const Provider: (props: PisellImageCardProps) => JSX.Element;
9
8
  //#endregion
10
9
  export { Provider };
@@ -1,5 +1,4 @@
1
- import React from "react";
2
1
  //#region src/components/PisellCards/components/TabCard/TabCard.d.ts
3
- declare const Provider: (props: any) => React.JSX.Element;
2
+ declare const Provider: (props: any) => JSX.Element;
4
3
  //#endregion
5
4
  export { Provider };
@@ -1,9 +1,8 @@
1
- import React from "react";
2
1
  //#region src/components/PisellCards/components/TextCard/TextCard.d.ts
3
2
  /**
4
3
  * Provider 包装器
5
4
  * 兼容 PisellCards 系统的 props 传递方式
6
5
  */
7
- declare const Provider: (props: any) => React.JSX.Element;
6
+ declare const Provider: (props: any) => JSX.Element;
8
7
  //#endregion
9
8
  export { Provider };
@@ -1,18 +1,16 @@
1
- /// <reference types="react" />
2
1
  import { PisellBasicCardProps } from "./types.js";
3
2
  import { ImageDataSource, ImageFillMode, PisellImageCardProps } from "./components/PisellImageCard/types.js";
4
3
  import { GraphicConfig, GraphicTextCardProps, GraphicTextCardSize, GraphicTextCardVariant } from "./components/GraphicTextCard/types.js";
5
4
  import { BadgeConfig, TabCardProps } from "./components/TabCard/types.js";
6
5
  import { MultilevelCardProps } from "./components/MultilevelCard/types.js";
7
- import * as _$react from "react";
8
6
 
9
7
  //#region src/components/PisellCards/index.d.ts
10
8
  declare const PisellCards: {
11
- TabCard: (props: any) => _$react.JSX.Element;
12
- TextCard: (props: any) => _$react.JSX.Element;
13
- GraphicTextCard: (props: GraphicTextCardProps) => _$react.JSX.Element;
14
- MultilevelCard: (props: any) => _$react.JSX.Element;
15
- PisellImageCard: (props: PisellImageCardProps) => _$react.JSX.Element;
9
+ TabCard: (props: any) => JSX.Element;
10
+ TextCard: (props: any) => JSX.Element;
11
+ GraphicTextCard: (props: GraphicTextCardProps) => JSX.Element;
12
+ MultilevelCard: (props: any) => JSX.Element;
13
+ PisellImageCard: (props: PisellImageCardProps) => JSX.Element;
16
14
  };
17
15
  //#endregion
18
16
  export { PisellCards };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellSingleLineTextProps } from "../pisellSingleLineText/types.js";
3
2
  import { PisellLongTextProps } from "../pisellLongText/types.js";
4
3
  import { PisellNumberProps } from "../pisellNumber/types.js";
@@ -1,14 +1,25 @@
1
1
  import PisellSingleLineText_default from "../pisellSingleLineText/PisellSingleLineText.js";
2
+ import "../pisellSingleLineText/index.js";
2
3
  import PisellLongText_default from "../pisellLongText/PisellLongText.js";
4
+ import "../pisellLongText/index.js";
3
5
  import MemoizedPisellNumber from "../pisellNumber/PisellNumber.js";
6
+ import "../pisellNumber/index.js";
4
7
  import MemoizedPisellCurrency from "../pisellCurrency/PisellCurrency.js";
8
+ import "../pisellCurrency/index.js";
5
9
  import MemoizedPisellPercent from "../pisellPercent/PisellPercent.js";
10
+ import "../pisellPercent/index.js";
6
11
  import PisellPhone_default from "../pisellPhone/PisellPhone.js";
12
+ import "../pisellPhone/index.js";
7
13
  import PisellEmail_default from "../pisellEmail/PisellEmail.js";
14
+ import "../pisellEmail/index.js";
8
15
  import PisellUrl_default from "../pisellUrl/PisellUrl.js";
16
+ import "../pisellUrl/index.js";
9
17
  import PisellRating_default from "../pisellRating/PisellRating.js";
18
+ import "../pisellRating/index.js";
10
19
  import PisellSingleSelect from "../pisellSingleSelect/PisellSingleSelect.js";
20
+ import "../pisellSingleSelect/index.js";
11
21
  import PisellMultipleSelect from "../pisellMultipleSelect/PisellMultipleSelect.js";
22
+ import "../pisellMultipleSelect/index.js";
12
23
  //#region src/components/PisellFields/index.tsx
13
24
  /**
14
25
  * PisellFields 命名空间
@@ -1,9 +1,8 @@
1
1
  import { PisellGroupViewProps } from "./types.js";
2
- import React from "react";
3
2
  //#region src/components/PisellGroupView/PisellGroupView.d.ts
4
3
  /**
5
4
  * 使用 memo 优化性能:props 未变化时跳过重渲染
6
5
  */
7
- declare const MemoizedPisellGroupView: <T>(props: PisellGroupViewProps<T>) => React.JSX.Element;
6
+ declare const MemoizedPisellGroupView: <T>(props: PisellGroupViewProps<T>) => JSX.Element;
8
7
  //#endregion
9
8
  export { MemoizedPisellGroupView };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellBasicGridProps } from "../PisellBasicGrid/types.js";
3
2
  import { PisellScrollViewProps, PisellScrollViewRef } from "../PisellScrollView/types.js";
4
3
  import { FloorMapFullscreenMode, FloorMapItemBase, FloorMapLayoutContextValue, PisellFloorMapLayoutProps, PisellFloorMapLayoutRef } from "../pisellFloorMapLayout/types.js";
@@ -31,7 +30,7 @@ import * as _$react from "react";
31
30
  * </PisellLayouts.ScrollView>
32
31
  */
33
32
  declare const PisellLayouts: {
34
- BasicGrid: <T>(props: PisellBasicGridProps<T>) => _$react.JSX.Element;
33
+ BasicGrid: <T>(props: PisellBasicGridProps<T>) => JSX.Element;
35
34
  ScrollView: _$react.ForwardRefExoticComponent<Omit<PisellScrollViewProps, "ref"> & _$react.RefAttributes<PisellScrollViewRef>>;
36
35
  FloorMapLayout: <T_1 extends FloorMapItemBase = FloorMapItemBase>(props: PisellFloorMapLayoutProps<T_1> & {
37
36
  ref?: _$react.Ref<PisellFloorMapLayoutRef | null> | undefined;
@@ -42,7 +41,7 @@ declare const PisellLayouts: {
42
41
  Header: _$react.FC<PisellHeaderProps>;
43
42
  Sider: _$react.FC<PisellSiderProps>;
44
43
  Container: <T_2 extends RenderType>(props: PisellContainerProps<T_2>) => any;
45
- Row: (props: PisellRowProps) => _$react.JSX.Element;
44
+ Row: (props: PisellRowProps) => JSX.Element;
46
45
  ViewGrid: _$react.FC<PisellViewGridProps>;
47
46
  };
48
47
  //#endregion
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellMetricCardProps } from "../pisellMetricCard/types.js";
3
2
  import { PisellStatisticListProps } from "../pisellStatisticList/index.js";
4
3
  import { PisellStatisticProps } from "../cardMetricItem/index.js";
@@ -22,8 +21,8 @@ import * as _$react from "react";
22
21
  */
23
22
  declare const PisellMetrics: {
24
23
  MetricCard: _$react.FC<PisellMetricCardProps>;
25
- StatisticList: (props: PisellStatisticListProps) => _$react.JSX.Element;
26
- MetricItem: (props: PisellStatisticProps) => _$react.JSX.Element;
24
+ StatisticList: (props: PisellStatisticListProps) => JSX.Element;
25
+ MetricItem: (props: PisellStatisticProps) => JSX.Element;
27
26
  };
28
27
  //#endregion
29
28
  export { PisellMetrics };
@@ -19,6 +19,7 @@ const SelectionFlow = ({ registry, draftAdapter, steps, initialDraft, initialSte
19
19
  const flowGenerationRef = useRef(0);
20
20
  const draftRevisionRef = useRef(0);
21
21
  const navigationRevisionRef = useRef(0);
22
+ const preparationRevisionRef = useRef(0);
22
23
  const transitionPendingRef = useRef(false);
23
24
  const processDraftChangeRef = useRef(() => void 0);
24
25
  const onDraftChangeRef = useRef(onDraftChange);
@@ -82,6 +83,7 @@ const SelectionFlow = ({ registry, draftAdapter, steps, initialDraft, initialSte
82
83
  mountedRef.current = false;
83
84
  if (flowGenerationRef.current === generation) flowGenerationRef.current += 1;
84
85
  navigationRevisionRef.current += 1;
86
+ preparationRevisionRef.current += 1;
85
87
  moduleInitializationRef.current.clear();
86
88
  moduleDependencyLifecycleRef.current.clear();
87
89
  pendingModuleChangeRef.current.clear();
@@ -297,7 +299,7 @@ const SelectionFlow = ({ registry, draftAdapter, steps, initialDraft, initialSte
297
299
  draft,
298
300
  moduleState
299
301
  });
300
- const { validateCurrentStep, complete, next, back } = useFlowNavigation({
302
+ const { validateCurrentStep, prepareSteps, complete, next, back } = useFlowNavigation({
301
303
  registry,
302
304
  draftAdapter,
303
305
  createRuntimeIssue,
@@ -313,6 +315,7 @@ const SelectionFlow = ({ registry, draftAdapter, steps, initialDraft, initialSte
313
315
  currentStepKeyRef,
314
316
  validatedCompletionRef,
315
317
  navigationRevisionRef,
318
+ preparationRevisionRef,
316
319
  transitionPendingRef,
317
320
  completedRef,
318
321
  completionPromiseRef,
@@ -347,6 +350,7 @@ const SelectionFlow = ({ registry, draftAdapter, steps, initialDraft, initialSte
347
350
  back,
348
351
  updateDraft,
349
352
  validateCurrentStep,
353
+ prepareSteps,
350
354
  complete,
351
355
  getState
352
356
  }), [
@@ -354,6 +358,7 @@ const SelectionFlow = ({ registry, draftAdapter, steps, initialDraft, initialSte
354
358
  complete,
355
359
  getState,
356
360
  next,
361
+ prepareSteps,
357
362
  updateDraft,
358
363
  validateCurrentStep
359
364
  ]);
@@ -377,6 +382,7 @@ const SelectionFlow = ({ registry, draftAdapter, steps, initialDraft, initialSte
377
382
  context: contextValue,
378
383
  updateDraft,
379
384
  validateCurrentStep,
385
+ prepareSteps,
380
386
  complete,
381
387
  next,
382
388
  back,
@@ -5,7 +5,7 @@ import { getCompiledStepsFingerprint, getSelectionFlowErrorMessage, normalizeFlo
5
5
  import { useCallback } from "react";
6
6
  //#region src/components/PisellSelectionFlow/hooks/useFlowNavigation.ts
7
7
  /** 导航、校验与提交门禁独立于模块加载生命周期。 */
8
- const useFlowNavigation = ({ registry, draftAdapter, createRuntimeIssue, mountedRef, moduleStateRef, moduleRevisionRef, draftRevisionRef, flowGenerationRef, moduleHandlesRef, configurationErrorRef, compiledStepsRef, currentStepIndexRef, currentStepKeyRef, validatedCompletionRef, navigationRevisionRef, transitionPendingRef, completedRef, completionPromiseRef, isCompletingRef, draftRef, onCompleteRef, ensureModuleReady, commitModuleState, getFreshContext, onValidationFailed, setCurrentStepIndex, setCompletionError, setCompletionReason, setIsCompleting }) => {
8
+ const useFlowNavigation = ({ registry, draftAdapter, createRuntimeIssue, mountedRef, moduleStateRef, moduleRevisionRef, draftRevisionRef, flowGenerationRef, moduleHandlesRef, configurationErrorRef, compiledStepsRef, currentStepIndexRef, currentStepKeyRef, validatedCompletionRef, navigationRevisionRef, preparationRevisionRef, transitionPendingRef, completedRef, completionPromiseRef, isCompletingRef, draftRef, onCompleteRef, ensureModuleReady, commitModuleState, getFreshContext, onValidationFailed, setCurrentStepIndex, setCompletionError, setCompletionReason, setIsCompleting }) => {
9
9
  const validateModule = useCallback(function() {
10
10
  var _ref = _asyncToGenerator(function* (module) {
11
11
  const adapter = resolveFlowModuleAdapter(registry, module.type);
@@ -104,6 +104,106 @@ const useFlowNavigation = ({ registry, draftAdapter, createRuntimeIssue, mounted
104
104
  for (const module of step.modules) if (!(yield validateModule(module))) return false;
105
105
  return true;
106
106
  }), [validateModule]);
107
+ const prepareSteps = useCallback(_asyncToGenerator(function* (options = {}) {
108
+ var _options$fromStepInde;
109
+ if (!mountedRef.current || configurationErrorRef.current) return {
110
+ prepared: false,
111
+ cancelled: !mountedRef.current
112
+ };
113
+ const preparationRevision = preparationRevisionRef.current + 1;
114
+ preparationRevisionRef.current = preparationRevision;
115
+ const navigationRevision = navigationRevisionRef.current;
116
+ const flowGeneration = flowGenerationRef.current;
117
+ const compiledFingerprint = getCompiledStepsFingerprint(compiledStepsRef.current);
118
+ const fromStepIndex = Math.max(0, (_options$fromStepInde = options.fromStepIndex) !== null && _options$fromStepInde !== void 0 ? _options$fromStepInde : currentStepIndexRef.current + 1);
119
+ const isCurrentPreparation = () => mountedRef.current && preparationRevisionRef.current === preparationRevision && navigationRevisionRef.current === navigationRevision && flowGenerationRef.current === flowGeneration && getCompiledStepsFingerprint(compiledStepsRef.current) === compiledFingerprint;
120
+ const targetModules = compiledStepsRef.current.filter((step) => step.index >= fromStepIndex).flatMap((step) => step.modules.map((module) => ({
121
+ step,
122
+ module
123
+ })));
124
+ for (let pass = 0; pass <= targetModules.length; pass += 1) {
125
+ for (const { step, module } of targetModules) {
126
+ if (!isCurrentPreparation()) return {
127
+ prepared: false,
128
+ cancelled: true
129
+ };
130
+ const adapter = resolveFlowModuleAdapter(registry, module.type);
131
+ if (!(adapter === null || adapter === void 0 ? void 0 : adapter.validateAutoResolution)) return {
132
+ prepared: false,
133
+ firstUnresolvedStepIndex: step.index,
134
+ moduleKey: module.key
135
+ };
136
+ if (!(yield ensureModuleReady(module))) {
137
+ const state = moduleStateRef.current[module.key];
138
+ return isCurrentPreparation() ? {
139
+ prepared: false,
140
+ firstUnresolvedStepIndex: step.index,
141
+ moduleKey: module.key,
142
+ message: state === null || state === void 0 ? void 0 : state.message
143
+ } : {
144
+ prepared: false,
145
+ cancelled: true
146
+ };
147
+ }
148
+ if (!isCurrentPreparation()) return {
149
+ prepared: false,
150
+ cancelled: true
151
+ };
152
+ const validationDraftRevision = draftRevisionRef.current;
153
+ try {
154
+ const context = getFreshContext();
155
+ if (!context) return {
156
+ prepared: false,
157
+ cancelled: true
158
+ };
159
+ const result = normalizeFlowValidationResult(yield adapter.validateAutoResolution(context, module));
160
+ if (!isCurrentPreparation() || draftRevisionRef.current !== validationDraftRevision) return {
161
+ prepared: false,
162
+ cancelled: true
163
+ };
164
+ if (!result.valid) return {
165
+ prepared: false,
166
+ firstUnresolvedStepIndex: step.index,
167
+ moduleKey: module.key,
168
+ message: result.message
169
+ };
170
+ } catch (error) {
171
+ return isCurrentPreparation() ? {
172
+ prepared: false,
173
+ firstUnresolvedStepIndex: step.index,
174
+ moduleKey: module.key,
175
+ message: getSelectionFlowErrorMessage(error)
176
+ } : {
177
+ prepared: false,
178
+ cancelled: true
179
+ };
180
+ }
181
+ }
182
+ if (!targetModules.find(({ module }) => {
183
+ var _moduleStateRef$curre;
184
+ return ((_moduleStateRef$curre = moduleStateRef.current[module.key]) === null || _moduleStateRef$curre === void 0 ? void 0 : _moduleStateRef$curre.status) !== "ready";
185
+ })) return isCurrentPreparation() ? { prepared: true } : {
186
+ prepared: false,
187
+ cancelled: true
188
+ };
189
+ }
190
+ const unresolved = targetModules.find(({ module }) => {
191
+ var _moduleStateRef$curre2;
192
+ return ((_moduleStateRef$curre2 = moduleStateRef.current[module.key]) === null || _moduleStateRef$curre2 === void 0 ? void 0 : _moduleStateRef$curre2.status) !== "ready";
193
+ });
194
+ return unresolved ? {
195
+ prepared: false,
196
+ firstUnresolvedStepIndex: unresolved.step.index,
197
+ moduleKey: unresolved.module.key
198
+ } : {
199
+ prepared: false,
200
+ cancelled: true
201
+ };
202
+ }), [
203
+ ensureModuleReady,
204
+ getFreshContext,
205
+ registry
206
+ ]);
107
207
  const runBeforeLeaveForCurrentStep = useCallback(_asyncToGenerator(function* () {
108
208
  if (configurationErrorRef.current) return false;
109
209
  const stepIndex = currentStepIndexRef.current;
@@ -188,8 +288,8 @@ const useFlowNavigation = ({ registry, draftAdapter, createRuntimeIssue, mounted
188
288
  const latestRevisionFingerprint = latestSteps.flatMap((step) => step.modules).map((module) => `${module.key}:${moduleRevisionRef.current.get(module.key) || 0}`).join("|");
189
289
  if (compiledFingerprint !== latestCompiledFingerprint || revisionFingerprint !== latestRevisionFingerprint || draftRevision !== draftRevisionRef.current) {
190
290
  const targetStep = latestSteps.find((step) => step.modules.some((module) => {
191
- var _moduleStateRef$curre;
192
- return ((_moduleStateRef$curre = moduleStateRef.current[module.key]) === null || _moduleStateRef$curre === void 0 ? void 0 : _moduleStateRef$curre.status) !== "ready";
291
+ var _moduleStateRef$curre3;
292
+ return ((_moduleStateRef$curre3 = moduleStateRef.current[module.key]) === null || _moduleStateRef$curre3 === void 0 ? void 0 : _moduleStateRef$curre3.status) !== "ready";
193
293
  })) || latestSteps[0];
194
294
  const targetModule = targetStep === null || targetStep === void 0 ? void 0 : targetStep.modules[0];
195
295
  if (targetStep && targetModule) {
@@ -274,6 +374,7 @@ const useFlowNavigation = ({ registry, draftAdapter, createRuntimeIssue, mounted
274
374
  ]);
275
375
  return {
276
376
  validateCurrentStep,
377
+ prepareSteps,
277
378
  runBeforeLeaveForCurrentStep,
278
379
  complete,
279
380
  next: useCallback(_asyncToGenerator(function* () {
@@ -1,4 +1,4 @@
1
- import { CompiledSelectionFlowModuleConfig, CompiledSelectionFlowStep, FlowModuleBeforeLeaveResult, FlowModuleBeforeLeaveReturn, FlowModuleDataMap, FlowModuleHandle, FlowModuleState, FlowModuleStateMap, FlowModuleStatus, FlowModuleValidationResult, FlowModuleValidationReturn, PisellSelectionFlowController, PisellSelectionFlowProps, SelectionFlowCompileError, SelectionFlowCompileIssue, SelectionFlowCompileIssueCode, SelectionFlowContextValue, SelectionFlowDraftAdapter, SelectionFlowDraftChange, SelectionFlowDraftUpdateMeta, SelectionFlowMessageCode, SelectionFlowMetadata, SelectionFlowModuleAdapter, SelectionFlowModuleConfig, SelectionFlowModuleInput, SelectionFlowModuleRegistry, SelectionFlowRef, SelectionFlowRuntimeIssue, SelectionFlowSnapshot, SelectionFlowStepConfig, SelectionFlowValidationFeedback } from "./types.js";
1
+ import { CompiledSelectionFlowModuleConfig, CompiledSelectionFlowStep, FlowModuleBeforeLeaveResult, FlowModuleBeforeLeaveReturn, FlowModuleDataMap, FlowModuleHandle, FlowModuleState, FlowModuleStateMap, FlowModuleStatus, FlowModuleValidationResult, FlowModuleValidationReturn, PisellSelectionFlowController, PisellSelectionFlowProps, SelectionFlowCompileError, SelectionFlowCompileIssue, SelectionFlowCompileIssueCode, SelectionFlowContextValue, SelectionFlowDraftAdapter, SelectionFlowDraftChange, SelectionFlowDraftUpdateMeta, SelectionFlowMessageCode, SelectionFlowMetadata, SelectionFlowModuleAdapter, SelectionFlowModuleConfig, SelectionFlowModuleInput, SelectionFlowModuleRegistry, SelectionFlowPrepareStepsOptions, SelectionFlowPrepareStepsResult, SelectionFlowRef, SelectionFlowRuntimeIssue, SelectionFlowSnapshot, SelectionFlowStepConfig, SelectionFlowValidationFeedback } from "./types.js";
2
2
  import { _default } from "./PisellSelectionFlow.js";
3
3
  import { useSelectionFlowContext, useTypedSelectionFlowContext } from "./context.js";
4
4
  import { compileSelectionFlow, compileSelectionFlowSteps, hasSelectionDraftFieldValue, isSelectionModuleType, resolveFlowModuleAdapter } from "./compiler.js";
@@ -57,6 +57,18 @@ type FlowModuleValidationResult = boolean | {
57
57
  message?: string;
58
58
  };
59
59
  type FlowModuleValidationReturn = FlowModuleValidationResult | Promise<FlowModuleValidationResult>;
60
+ interface SelectionFlowPrepareStepsOptions {
61
+ /** 从哪个已编译步骤开始准备;默认从当前步骤的下一步开始。 */
62
+ fromStepIndex?: number;
63
+ }
64
+ interface SelectionFlowPrepareStepsResult {
65
+ prepared: boolean;
66
+ /** 新一轮准备、导航、重新编译或卸载使本轮结果失效。 */
67
+ cancelled?: boolean;
68
+ firstUnresolvedStepIndex?: number;
69
+ moduleKey?: string;
70
+ message?: string;
71
+ }
60
72
  type FlowModuleBeforeLeaveResult = boolean | {
61
73
  allowed: boolean;
62
74
  message?: string;
@@ -98,6 +110,11 @@ interface SelectionFlowModuleAdapter<TDraft, TDraftUpdate, TField extends string
98
110
  reconcile?: (context: SelectionFlowContextValue<TDraft, TDraftUpdate, TField, TModuleType, TServices, THostContext>, change: SelectionFlowDraftChange<TDraft, TField, TModuleType>, module: CompiledSelectionFlowModuleConfig<TModuleType>) => void | Promise<void>;
99
111
  clearDependencies?: (context: SelectionFlowContextValue<TDraft, TDraftUpdate, TField, TModuleType, TServices, THostContext>, change: SelectionFlowDraftChange<TDraft, TField, TModuleType>, module: CompiledSelectionFlowModuleConfig<TModuleType>) => void | Promise<void>;
100
112
  validate?: (context: SelectionFlowContextValue<TDraft, TDraftUpdate, TField, TModuleType, TServices, THostContext>, handle: FlowModuleHandle | null, module: CompiledSelectionFlowModuleConfig<TModuleType>) => FlowModuleValidationReturn;
113
+ /**
114
+ * 模块完成 refresh 后,判断当前值能否在无界面的情况下安全采用。
115
+ * 不提供即表示该模块必须由用户进入步骤确认。
116
+ */
117
+ validateAutoResolution?: (context: SelectionFlowContextValue<TDraft, TDraftUpdate, TField, TModuleType, TServices, THostContext>, module: CompiledSelectionFlowModuleConfig<TModuleType>) => FlowModuleValidationReturn;
101
118
  beforeLeave?: (context: SelectionFlowContextValue<TDraft, TDraftUpdate, TField, TModuleType, TServices, THostContext>, handle: FlowModuleHandle | null, module: CompiledSelectionFlowModuleConfig<TModuleType>) => FlowModuleBeforeLeaveReturn;
102
119
  }
103
120
  type SelectionFlowModuleRegistry<TDraft, TDraftUpdate, TField extends string, TModuleType extends string, TServices = unknown, THostContext = unknown> = Record<TModuleType, SelectionFlowModuleAdapter<TDraft, TDraftUpdate, TField, TModuleType, TServices, THostContext>>;
@@ -117,6 +134,7 @@ interface SelectionFlowRef<TDraft, TDraftUpdate, TField extends string = string,
117
134
  back: () => boolean;
118
135
  updateDraft: (update: TDraftUpdate, meta: SelectionFlowDraftUpdateMeta<TField, TModuleType>) => void;
119
136
  validateCurrentStep: () => Promise<boolean>;
137
+ prepareSteps: (options?: SelectionFlowPrepareStepsOptions) => Promise<SelectionFlowPrepareStepsResult>;
120
138
  complete: () => Promise<boolean>;
121
139
  getState: () => SelectionFlowSnapshot<TDraft, TModuleType>;
122
140
  }
@@ -139,6 +157,7 @@ interface PisellSelectionFlowController<TDraft, TDraftUpdate, TField extends str
139
157
  completionReason?: SelectionFlowRuntimeIssue;
140
158
  updateDraft: (update: TDraftUpdate, meta: SelectionFlowDraftUpdateMeta<TField, TModuleType>) => void;
141
159
  validateCurrentStep: () => Promise<boolean>;
160
+ prepareSteps: (options?: SelectionFlowPrepareStepsOptions) => Promise<SelectionFlowPrepareStepsResult>;
142
161
  complete: () => Promise<boolean>;
143
162
  next: () => Promise<boolean>;
144
163
  back: () => boolean;
@@ -176,4 +195,4 @@ declare class SelectionFlowCompileError extends Error {
176
195
  constructor(issues: readonly SelectionFlowCompileIssue[]);
177
196
  }
178
197
  //#endregion
179
- export { CompiledSelectionFlowModuleConfig, CompiledSelectionFlowStep, FlowModuleBeforeLeaveResult, FlowModuleBeforeLeaveReturn, FlowModuleDataMap, FlowModuleHandle, FlowModuleState, FlowModuleStateMap, FlowModuleStatus, FlowModuleValidationResult, FlowModuleValidationReturn, PisellSelectionFlowController, PisellSelectionFlowProps, SelectionFlowCompileError, SelectionFlowCompileIssue, SelectionFlowCompileIssueCode, SelectionFlowContextValue, SelectionFlowDraftAdapter, SelectionFlowDraftChange, SelectionFlowDraftUpdateMeta, SelectionFlowMessageCode, SelectionFlowMetadata, SelectionFlowModuleAdapter, SelectionFlowModuleConfig, SelectionFlowModuleInput, SelectionFlowModuleRegistry, SelectionFlowRef, SelectionFlowRuntimeIssue, SelectionFlowSnapshot, SelectionFlowStepConfig, SelectionFlowValidationFeedback };
198
+ export { CompiledSelectionFlowModuleConfig, CompiledSelectionFlowStep, FlowModuleBeforeLeaveResult, FlowModuleBeforeLeaveReturn, FlowModuleDataMap, FlowModuleHandle, FlowModuleState, FlowModuleStateMap, FlowModuleStatus, FlowModuleValidationResult, FlowModuleValidationReturn, PisellSelectionFlowController, PisellSelectionFlowProps, SelectionFlowCompileError, SelectionFlowCompileIssue, SelectionFlowCompileIssueCode, SelectionFlowContextValue, SelectionFlowDraftAdapter, SelectionFlowDraftChange, SelectionFlowDraftUpdateMeta, SelectionFlowMessageCode, SelectionFlowMetadata, SelectionFlowModuleAdapter, SelectionFlowModuleConfig, SelectionFlowModuleInput, SelectionFlowModuleRegistry, SelectionFlowPrepareStepsOptions, SelectionFlowPrepareStepsResult, SelectionFlowRef, SelectionFlowRuntimeIssue, SelectionFlowSnapshot, SelectionFlowStepConfig, SelectionFlowValidationFeedback };
@@ -1,6 +1,5 @@
1
1
  import { AppVersionControlProps } from "./types.js";
2
- import React from "react";
3
2
  //#region src/components/appVersionControl/index.d.ts
4
- declare const AppVersionControl: (props: AppVersionControlProps) => React.JSX.Element;
3
+ declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
5
4
  //#endregion
6
5
  export { AppVersionControl };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/appVersionControl/types.d.ts
3
2
  interface Version {
4
3
  id: string;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { AutoCompleteProps, InputNumberProps } from "antd";
3
2
 
4
3
  //#region src/components/auto-complete-number/index.d.ts
@@ -8,6 +7,6 @@ interface AutoCompleteNumberProps {
8
7
  value?: any;
9
8
  onChange?: any;
10
9
  }
11
- declare const AutoCompleteNumber: (props: AutoCompleteNumberProps) => React.JSX.Element;
10
+ declare const AutoCompleteNumber: (props: AutoCompleteNumberProps) => JSX.Element;
12
11
  //#endregion
13
12
  export { AutoCompleteNumber };
@@ -1,5 +1,4 @@
1
- import React from "react";
2
1
  //#region src/components/badge/index.d.ts
3
- declare const Badge$1: (props: any) => React.JSX.Element;
2
+ declare const Badge$1: (props: any) => JSX.Element;
4
3
  //#endregion
5
4
  export { Badge$1 as Badge };
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  //#region src/components/batch-editor/index.d.ts
3
2
  interface BatchEditorProps {
4
3
  columns: any[];
@@ -7,6 +6,6 @@ interface BatchEditorProps {
7
6
  rowKey: string;
8
7
  otherTableProps: any;
9
8
  }
10
- declare const BatchEditor: (props: BatchEditorProps) => React.JSX.Element;
9
+ declare const BatchEditor: (props: BatchEditorProps) => JSX.Element;
11
10
  //#endregion
12
11
  export { BatchEditor };
@@ -1,7 +1,4 @@
1
- /// <reference types="react" />
2
- import * as _$react from "react";
3
-
4
1
  //#region src/components/calendar/index.d.ts
5
- declare const Calendar: (props: any) => _$react.JSX.Element;
2
+ declare const Calendar: (props: any) => JSX.Element;
6
3
  //#endregion
7
4
  export { Calendar };
@@ -11,6 +11,6 @@ interface PisellStatisticProps {
11
11
  showCurrencySymbol?: boolean;
12
12
  style?: any;
13
13
  }
14
- declare const CardMetricItem: (props: PisellStatisticProps) => React.JSX.Element;
14
+ declare const CardMetricItem: (props: PisellStatisticProps) => JSX.Element;
15
15
  //#endregion
16
16
  export { CardMetricItem, PisellStatisticProps };
@@ -1,5 +1,4 @@
1
- import React from "react";
2
1
  //#region src/components/cardPro/index.d.ts
3
- declare const _default: (props: any) => React.JSX.Element;
2
+ declare const _default: (props: any) => JSX.Element;
4
3
  //#endregion
5
4
  export { _default };
@@ -1,7 +1,4 @@
1
- /// <reference types="react" />
2
- import * as _$react from "react";
3
-
4
1
  //#region src/components/checkbox/index.d.ts
5
- declare const Checkbox: (props: any) => _$react.JSX.Element;
2
+ declare const Checkbox: (props: any) => JSX.Element;
6
3
  //#endregion
7
4
  export { Checkbox };
@@ -1,5 +1,4 @@
1
- import React from "react";
2
1
  //#region src/components/classicLayout/index.d.ts
3
- declare const ClassicLayout: (props: any) => React.JSX.Element;
2
+ declare const ClassicLayout: (props: any) => JSX.Element;
4
3
  //#endregion
5
4
  export { ClassicLayout };
@@ -1,10 +1,9 @@
1
- import React from "react";
2
1
  import { ConfigProviderProps } from "antd/es/config-provider";
3
2
 
4
3
  //#region src/components/config-provider/index.d.ts
5
4
  interface ConfigProviderProps$1 extends ConfigProviderProps {
6
5
  [key: string]: any;
7
6
  }
8
- declare const ConfigProvider: (props: ConfigProviderProps$1) => React.JSX.Element;
7
+ declare const ConfigProvider: (props: ConfigProviderProps$1) => JSX.Element;
9
8
  //#endregion
10
9
  export { ConfigProvider, ConfigProviderProps$1 as ConfigProviderProps };
@@ -13,6 +13,6 @@ interface CustomSelectProps<T extends BaseOption> extends Omit<SelectProps<T['va
13
13
  className?: string;
14
14
  style?: React.CSSProperties;
15
15
  }
16
- declare const CustomSelect: <T extends BaseOption>(props: CustomSelectProps<T>) => React.JSX.Element;
16
+ declare const CustomSelect: <T extends BaseOption>(props: CustomSelectProps<T>) => JSX.Element;
17
17
  //#endregion
18
18
  export { CustomSelect };
@@ -16,6 +16,6 @@ interface FormGroupProps {
16
16
  * @Author: shengjie.zuo
17
17
  * @Date: 2024-11-25 17:14:25
18
18
  */
19
- declare const FormGroup: (props: FormGroupProps) => React.JSX.Element;
19
+ declare const FormGroup: (props: FormGroupProps) => JSX.Element;
20
20
  //#endregion
21
21
  export { FormGroup };
@@ -35,6 +35,6 @@ interface SubmitButtonProps extends ButtonProps {
35
35
  placement: 'top' | 'topLeft' | 'topRight' | 'bottom' | 'bottomLeft' | 'bottomRight';
36
36
  };
37
37
  }
38
- declare const SubmitButton: (props: SubmitButtonProps) => React.JSX.Element | null;
38
+ declare const SubmitButton: (props: SubmitButtonProps) => JSX.Element | null;
39
39
  //#endregion
40
40
  export { SubmitButton };
@@ -6,6 +6,6 @@ import React from "react";
6
6
  * @title: 数据源表单组件
7
7
  * @description: 基于数据源动态生成表单,支持编辑、查看、禁用三种模式
8
8
  */
9
- declare const DataSourceMenu: (props: PisellMenuProps, ref: React.Ref<any>) => React.JSX.Element;
9
+ declare const DataSourceMenu: (props: PisellMenuProps, ref: React.Ref<any>) => JSX.Element;
10
10
  //#endregion
11
11
  export { DataSourceMenu };
@@ -1,7 +1,4 @@
1
- /// <reference types="react" />
2
- import * as _$react from "react";
3
-
4
1
  //#region src/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts
5
- declare const DataSourceQRCode: (props: any) => _$react.JSX.Element;
2
+ declare const DataSourceQRCode: (props: any) => JSX.Element;
6
3
  //#endregion
7
4
  export { DataSourceQRCode };
@@ -7,8 +7,8 @@ interface DataSourceTypographyProps {
7
7
  children: React.ReactNode;
8
8
  }
9
9
  declare const DataSourceTypography: {
10
- (props: DataSourceTypographyProps): React.JSX.Element;
11
- Text: (props: ParsedProps) => React.JSX.Element;
10
+ (props: DataSourceTypographyProps): JSX.Element;
11
+ Text: (props: ParsedProps) => JSX.Element;
12
12
  };
13
13
  //#endregion
14
14
  export { DataSourceTypography };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LocalSettingsType } from "../../table/types.js";
3
2
  import { DataSourceType } from "../provider/dataSource/DataSourceContext.js";
4
3
  import { ColumnType } from "antd/es/table";
@@ -1,7 +1,6 @@
1
1
  import { DataSourceContextProps } from "../provider/dataSource/DataSourceContext.js";
2
- import React from "react";
3
2
 
4
3
  //#region src/components/dataSourceComponents/dataSourceWrapper/index.d.ts
5
- declare const DataSourceWrapper: (props: DataSourceContextProps) => React.JSX.Element;
4
+ declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
6
5
  //#endregion
7
6
  export { DataSourceWrapper };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CheckboxGroupProps } from "./type.js";
3
2
  import { WithModeProps } from "../../dataSourceForm/utils.js";
4
3
  import * as _$react from "react";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WithModeProps } from "../../dataSourceForm/utils.js";
3
2
  import { RadioGroupProps } from "./type.js";
4
3
  import * as _$react from "react";