@pisell/materials 1.0.1078 → 1.0.1079

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 (437) 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 +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +9 -0
  8. package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.stories.d.ts +163 -0
  9. package/es/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +5 -0
  10. package/es/components/PisellCards/components/GraphicTextCard/components/GraphicArea.d.ts +24 -0
  11. package/es/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +27 -0
  12. package/es/components/PisellCards/components/GraphicTextCard/components/index.d.ts +6 -0
  13. package/es/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +5 -0
  14. package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +15 -0
  15. package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +18 -0
  16. package/es/components/PisellCards/components/GraphicTextCard/index.d.ts +5 -0
  17. package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +301 -0
  18. package/es/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +19 -0
  19. package/es/components/PisellCards/components/TextCard/TextCard.d.ts +8 -0
  20. package/es/components/PisellCards/components/TextCard/TextCard.stories.d.ts +183 -0
  21. package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +27 -0
  22. package/es/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +17 -0
  23. package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +21 -0
  24. package/es/components/PisellCards/components/TextCard/components/index.d.ts +6 -0
  25. package/es/components/PisellCards/components/TextCard/index.d.ts +5 -0
  26. package/es/components/PisellCards/components/TextCard/types.d.ts +277 -0
  27. package/es/components/PisellCards/components/index.d.ts +10 -0
  28. package/es/components/PisellCards/index.d.ts +17 -0
  29. package/es/components/PisellContactBrief/PisellContactBrief.stories.d.ts +31 -0
  30. package/es/components/PisellContactBrief/components/index.d.ts +5 -0
  31. package/es/components/PisellContactBrief/index.d.ts +6 -0
  32. package/es/components/PisellContactBrief/locales.d.ts +55 -0
  33. package/es/components/PisellContactBrief/types.d.ts +82 -0
  34. package/es/components/PisellFields/index.d.ts +37 -0
  35. package/es/components/PisellLayouts/index.d.ts +37 -0
  36. package/es/components/PisellSteps/PisellSteps.d.ts +14 -0
  37. package/es/components/PisellTabbar/PisellTabbar.d.ts +20 -0
  38. package/es/components/PisellTabbar/index.d.ts +9 -0
  39. package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +5 -0
  40. package/es/components/PisellTabbar/template/Template1/index.d.ts +6 -0
  41. package/es/components/PisellTabbar2/PisellTabbar.d.ts +23 -0
  42. package/es/components/PisellTabbar2/components/TabbarLevel.d.ts +8 -0
  43. package/es/components/PisellTabbar2/components/index.d.ts +1 -0
  44. package/es/components/PisellTabbar2/index.d.ts +6 -0
  45. package/es/components/PisellTabbar3/PisellTabbar.d.ts +20 -0
  46. package/es/components/PisellTabbar3/index.d.ts +6 -0
  47. package/es/components/Template/[ComponentName].d.ts +0 -0
  48. package/es/components/appVersionControl/index.d.ts +5 -0
  49. package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +201 -0
  50. package/es/components/dataSourceComponents/dataSourceForm/serve.js +4 -2
  51. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +5 -0
  52. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  53. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +85 -0
  54. package/es/components/dataSourceComponents/fields/index.d.ts +16 -15
  55. package/es/components/drag-sort-tree/index.d.ts +4 -0
  56. package/es/components/filter/components/Dropdown/types.d.ts +13 -0
  57. package/es/components/filter/components/FilterButton/types.d.ts +24 -0
  58. package/es/components/filter/types.d.ts +48 -0
  59. package/es/components/hardwareErrorTip/demo.d.ts +3 -0
  60. package/es/components/hardwareErrorTip/errorCard/index.d.ts +29 -0
  61. package/es/components/hardwareErrorTip/errorTipStatistics/index.d.ts +13 -0
  62. package/es/components/hardwareErrorTip/index.d.ts +19 -0
  63. package/es/components/hardwareErrorTip/logCard/index.d.ts +28 -0
  64. package/es/components/hardwareErrorTip/types.d.ts +28 -0
  65. package/es/components/iconfont/index.d.ts +8 -0
  66. package/es/components/login-and-register/index.d.ts +82 -0
  67. package/es/components/pisell-config-provider/index.d.ts +13 -0
  68. package/es/components/pisellActionPanel/PisellActionPanel.d.ts +13 -0
  69. package/es/components/pisellActionPanel/PisellActionPanel.stories.d.ts +19 -0
  70. package/es/components/pisellActionPanel/index.d.ts +6 -0
  71. package/es/components/pisellActionPanel/types.d.ts +83 -0
  72. package/es/components/pisellBaseCard/PisellBaseCard.d.ts +8 -0
  73. package/es/components/pisellBaseCard/PisellBaseCard.stories.d.ts +19 -0
  74. package/es/components/pisellBaseCard/index.d.ts +5 -0
  75. package/es/components/pisellBaseCard/types.d.ts +45 -0
  76. package/es/components/pisellBatchActionBar/index.d.ts +6 -0
  77. package/es/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +15 -0
  78. package/es/components/pisellCustomerBrief/PisellCustomerBrief.stories.d.ts +23 -0
  79. package/es/components/pisellCustomerBrief/index.d.ts +6 -0
  80. package/es/components/pisellCustomerBrief/types.d.ts +82 -0
  81. package/es/components/pisellDataSourceContainer/hooks/useHandleAction.d.ts +32 -0
  82. package/es/components/pisellDataSourceContainer/provider/ChildComponentProps.d.ts +13 -0
  83. package/es/components/pisellDataSourceContainer/provider/RefManager.d.ts +9 -0
  84. package/es/components/pisellDataSourceContainer/type.d.ts +84 -0
  85. package/es/components/pisellEmpty/index.d.ts +19 -0
  86. package/es/components/pisellEntityCard/PisellEntityCard.d.ts +8 -0
  87. package/es/components/pisellEntityCard/PisellEntityCard.stories.d.ts +47 -0
  88. package/es/components/pisellEntityCard/index.d.ts +5 -0
  89. package/es/components/pisellEntityCard/types.d.ts +144 -0
  90. package/es/components/pisellExport/PisellExport.d.ts +9 -0
  91. package/es/components/pisellExport/PisellExport.stories.d.ts +45 -0
  92. package/es/components/pisellExport/index.d.ts +2 -0
  93. package/es/components/pisellExport/types.d.ts +63 -0
  94. package/es/components/pisellFilter/type.d.ts +7 -0
  95. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +55 -0
  96. package/es/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +46 -0
  97. package/es/components/pisellFloorMapLayout/components/ItemLayer.d.ts +53 -0
  98. package/es/components/pisellFloorMapLayout/components/MapLayer.d.ts +27 -0
  99. package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +19 -0
  100. package/es/components/pisellFloorMapLayout/components/index.d.ts +21 -0
  101. package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +16 -0
  102. package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +5 -0
  103. package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +67 -0
  104. package/es/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +19 -0
  105. package/es/components/pisellFloorMapLayout/index.d.ts +25 -0
  106. package/es/components/pisellFloorMapLayout/locales-ja.d.ts +113 -0
  107. package/es/components/pisellFloorMapLayout/locales-pt.d.ts +113 -0
  108. package/es/components/pisellFloorMapLayout/locales.d.ts +551 -0
  109. package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +10 -0
  110. package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanMapping.d.ts +18 -0
  111. package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +22 -0
  112. package/es/components/pisellFloorMapLayout/types.d.ts +604 -0
  113. package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +8 -0
  114. package/es/components/pisellFloorMapLayout/utils/floorMapDataBindingUtils.d.ts +21 -0
  115. package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +11 -0
  116. package/es/components/pisellFloorMapLayout/utils/floorMapRemotePersist.d.ts +17 -0
  117. package/es/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +8 -0
  118. package/es/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +30 -0
  119. package/es/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +7 -0
  120. package/es/components/pisellGridPro/index.d.ts +4 -0
  121. package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
  122. package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +10 -0
  123. package/es/components/pisellHierarchicalSummaryList/components/index.d.ts +1 -0
  124. package/es/components/pisellHierarchicalSummaryList/hooks/index.d.ts +2 -0
  125. package/es/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +15 -0
  126. package/es/components/pisellHierarchicalSummaryList/index.d.ts +5 -0
  127. package/es/components/pisellHierarchicalSummaryList/types.d.ts +248 -0
  128. package/es/components/pisellImport/PisellImport.d.ts +9 -0
  129. package/es/components/pisellImport/PisellImport.stories.d.ts +49 -0
  130. package/es/components/pisellImport/index.d.ts +2 -0
  131. package/es/components/pisellImport/types.d.ts +85 -0
  132. package/es/components/pisellList01/index.d.ts +17 -0
  133. package/es/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
  134. package/es/components/pisellPhone/PisellPhone.stories.d.ts +80 -0
  135. package/es/components/pisellPhone/components/DisabledView.d.ts +16 -0
  136. package/es/components/pisellPhone/components/ReadOnlyView.d.ts +17 -0
  137. package/es/components/pisellPhone/constants/countryCodes.d.ts +21 -0
  138. package/es/components/pisellPhone/index.d.ts +8 -0
  139. package/es/components/pisellPhone/utils/countryCodeHelper.d.ts +35 -0
  140. package/es/components/pisellPhone/utils/index.d.ts +6 -0
  141. package/es/components/pisellQuickFilter/type.d.ts +12 -0
  142. package/es/components/pisellRecordBoard/context/RecordBoardContext.d.ts +3 -0
  143. package/es/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +11 -0
  144. package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +16 -0
  145. package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +12 -0
  146. package/es/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +13 -0
  147. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
  148. package/es/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
  149. package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
  150. package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.d.ts +3 -0
  151. package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +7 -0
  152. package/es/components/pisellRecordBoard/shellFrame/Calendar/RecordBoardCalendar.d.ts +8 -0
  153. package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +18 -0
  154. package/es/components/pisellRecordBoard/shellFrame/Calendar/index.d.ts +4 -0
  155. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +15 -0
  156. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
  157. package/es/components/pisellRecordBoard/shellFrame/FloorMap.d.ts +14 -0
  158. package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
  159. package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +21 -0
  160. package/es/components/pisellRecordBoard/types.d.ts +468 -0
  161. package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +20 -0
  162. package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +52 -0
  163. package/es/components/pisellRecordBoard/utils/withRecordBoard.d.ts +9 -0
  164. package/es/components/pisellReservationSchedule/locales.d.ts +25 -0
  165. package/es/components/pisellReservationSchedule/types.d.ts +47 -0
  166. package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +16 -0
  167. package/es/components/pisellReservationScheduleBand/index.d.ts +2 -0
  168. package/es/components/pisellReservationScheduleBand/types.d.ts +57 -0
  169. package/es/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
  170. package/es/components/pisellShellFrame/PisellShellFrame.stories.d.ts +15 -0
  171. package/es/components/pisellShellFrame/index.d.ts +2 -0
  172. package/es/components/pisellShellFrame/types.d.ts +56 -0
  173. package/es/components/pisellStatisticList/index.d.ts +22 -0
  174. package/es/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +79 -0
  175. package/es/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +14 -0
  176. package/es/components/pisellTimeNavigator/components/CursorLayer.d.ts +25 -0
  177. package/es/components/pisellTimeNavigator/components/GestureLayer.d.ts +33 -0
  178. package/es/components/pisellTimeNavigator/components/index.d.ts +5 -0
  179. package/es/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +14 -0
  180. package/es/components/pisellTimeNavigator/hooks/useRealtime.d.ts +5 -0
  181. package/es/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +27 -0
  182. package/es/components/pisellTimeNavigator/index.d.ts +5 -0
  183. package/es/components/pisellTimeNavigator/utils/index.d.ts +35 -0
  184. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
  185. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +9 -0
  186. package/es/components/productCard/cartSkuCard/locales.d.ts +163 -0
  187. package/es/components/productCard/components/Header/Actions/index.d.ts +4 -0
  188. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
  189. package/es/components/productCard/components/Time/index.d.ts +4 -0
  190. package/es/components/productCard/status.d.ts +32 -0
  191. package/es/components/productCard/types.d.ts +85 -0
  192. package/es/components/table/Actions/component/ViewMode/index.d.ts +9 -0
  193. package/es/components/table/Table/fields/index.d.ts +2 -2
  194. package/es/components/table/Table/utils.d.ts +1 -1
  195. package/es/components/table/types.d.ts +270 -0
  196. package/es/components/versionModal/index.d.ts +24 -0
  197. package/es/locales/en-US.d.ts +439 -0
  198. package/es/locales/index.d.ts +1 -0
  199. package/es/locales/ja.d.ts +360 -0
  200. package/es/locales/pt.d.ts +360 -0
  201. package/es/locales/zh-CN.d.ts +434 -0
  202. package/es/locales/zh-TW.d.ts +434 -0
  203. package/es/theme/pisell-components.d.ts +14 -0
  204. package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +9 -0
  205. package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.stories.d.ts +163 -0
  206. package/lib/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +5 -0
  207. package/lib/components/PisellCards/components/GraphicTextCard/components/GraphicArea.d.ts +24 -0
  208. package/lib/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +27 -0
  209. package/lib/components/PisellCards/components/GraphicTextCard/components/index.d.ts +6 -0
  210. package/lib/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +5 -0
  211. package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +15 -0
  212. package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +18 -0
  213. package/lib/components/PisellCards/components/GraphicTextCard/index.d.ts +5 -0
  214. package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +301 -0
  215. package/lib/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +19 -0
  216. package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +8 -0
  217. package/lib/components/PisellCards/components/TextCard/TextCard.stories.d.ts +183 -0
  218. package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +27 -0
  219. package/lib/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +17 -0
  220. package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +21 -0
  221. package/lib/components/PisellCards/components/TextCard/components/index.d.ts +6 -0
  222. package/lib/components/PisellCards/components/TextCard/index.d.ts +5 -0
  223. package/lib/components/PisellCards/components/TextCard/types.d.ts +277 -0
  224. package/lib/components/PisellCards/components/index.d.ts +10 -0
  225. package/lib/components/PisellCards/index.d.ts +17 -0
  226. package/lib/components/PisellContactBrief/PisellContactBrief.stories.d.ts +31 -0
  227. package/lib/components/PisellContactBrief/components/index.d.ts +5 -0
  228. package/lib/components/PisellContactBrief/index.d.ts +6 -0
  229. package/lib/components/PisellContactBrief/locales.d.ts +55 -0
  230. package/lib/components/PisellContactBrief/types.d.ts +82 -0
  231. package/lib/components/PisellFields/index.d.ts +37 -0
  232. package/lib/components/PisellLayouts/index.d.ts +37 -0
  233. package/lib/components/PisellSteps/PisellSteps.d.ts +14 -0
  234. package/lib/components/PisellTabbar/PisellTabbar.d.ts +20 -0
  235. package/lib/components/PisellTabbar/index.d.ts +9 -0
  236. package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +5 -0
  237. package/lib/components/PisellTabbar/template/Template1/index.d.ts +6 -0
  238. package/lib/components/PisellTabbar2/PisellTabbar.d.ts +23 -0
  239. package/lib/components/PisellTabbar2/components/TabbarLevel.d.ts +8 -0
  240. package/lib/components/PisellTabbar2/components/index.d.ts +1 -0
  241. package/lib/components/PisellTabbar2/index.d.ts +6 -0
  242. package/lib/components/PisellTabbar3/PisellTabbar.d.ts +20 -0
  243. package/lib/components/PisellTabbar3/index.d.ts +6 -0
  244. package/lib/components/Template/[ComponentName].d.ts +0 -0
  245. package/lib/components/appVersionControl/index.d.ts +5 -0
  246. package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +201 -0
  247. package/lib/components/dataSourceComponents/dataSourceForm/serve.js +4 -2
  248. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +5 -0
  249. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  250. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +85 -0
  251. package/lib/components/dataSourceComponents/fields/index.d.ts +16 -15
  252. package/lib/components/drag-sort-tree/index.d.ts +4 -0
  253. package/lib/components/filter/components/Dropdown/types.d.ts +13 -0
  254. package/lib/components/filter/components/FilterButton/types.d.ts +24 -0
  255. package/lib/components/filter/types.d.ts +48 -0
  256. package/lib/components/hardwareErrorTip/demo.d.ts +3 -0
  257. package/lib/components/hardwareErrorTip/errorCard/index.d.ts +29 -0
  258. package/lib/components/hardwareErrorTip/errorTipStatistics/index.d.ts +13 -0
  259. package/lib/components/hardwareErrorTip/index.d.ts +19 -0
  260. package/lib/components/hardwareErrorTip/logCard/index.d.ts +28 -0
  261. package/lib/components/hardwareErrorTip/types.d.ts +28 -0
  262. package/lib/components/iconfont/index.d.ts +8 -0
  263. package/lib/components/login-and-register/index.d.ts +82 -0
  264. package/lib/components/pisell-config-provider/index.d.ts +13 -0
  265. package/lib/components/pisellActionPanel/PisellActionPanel.d.ts +13 -0
  266. package/lib/components/pisellActionPanel/PisellActionPanel.stories.d.ts +19 -0
  267. package/lib/components/pisellActionPanel/index.d.ts +6 -0
  268. package/lib/components/pisellActionPanel/types.d.ts +83 -0
  269. package/lib/components/pisellBaseCard/PisellBaseCard.d.ts +8 -0
  270. package/lib/components/pisellBaseCard/PisellBaseCard.stories.d.ts +19 -0
  271. package/lib/components/pisellBaseCard/index.d.ts +5 -0
  272. package/lib/components/pisellBaseCard/types.d.ts +45 -0
  273. package/lib/components/pisellBatchActionBar/index.d.ts +6 -0
  274. package/lib/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +15 -0
  275. package/lib/components/pisellCustomerBrief/PisellCustomerBrief.stories.d.ts +23 -0
  276. package/lib/components/pisellCustomerBrief/index.d.ts +6 -0
  277. package/lib/components/pisellCustomerBrief/types.d.ts +82 -0
  278. package/lib/components/pisellDataSourceContainer/hooks/useHandleAction.d.ts +32 -0
  279. package/lib/components/pisellDataSourceContainer/provider/ChildComponentProps.d.ts +13 -0
  280. package/lib/components/pisellDataSourceContainer/provider/RefManager.d.ts +9 -0
  281. package/lib/components/pisellDataSourceContainer/type.d.ts +84 -0
  282. package/lib/components/pisellEmpty/index.d.ts +19 -0
  283. package/lib/components/pisellEntityCard/PisellEntityCard.d.ts +8 -0
  284. package/lib/components/pisellEntityCard/PisellEntityCard.stories.d.ts +47 -0
  285. package/lib/components/pisellEntityCard/index.d.ts +5 -0
  286. package/lib/components/pisellEntityCard/types.d.ts +144 -0
  287. package/lib/components/pisellExport/PisellExport.d.ts +9 -0
  288. package/lib/components/pisellExport/PisellExport.stories.d.ts +45 -0
  289. package/lib/components/pisellExport/index.d.ts +2 -0
  290. package/lib/components/pisellExport/types.d.ts +63 -0
  291. package/lib/components/pisellFilter/type.d.ts +7 -0
  292. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +55 -0
  293. package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +46 -0
  294. package/lib/components/pisellFloorMapLayout/components/ItemLayer.d.ts +53 -0
  295. package/lib/components/pisellFloorMapLayout/components/MapLayer.d.ts +27 -0
  296. package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +19 -0
  297. package/lib/components/pisellFloorMapLayout/components/index.d.ts +21 -0
  298. package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +16 -0
  299. package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +5 -0
  300. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +67 -0
  301. package/lib/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +19 -0
  302. package/lib/components/pisellFloorMapLayout/index.d.ts +25 -0
  303. package/lib/components/pisellFloorMapLayout/locales-ja.d.ts +113 -0
  304. package/lib/components/pisellFloorMapLayout/locales-pt.d.ts +113 -0
  305. package/lib/components/pisellFloorMapLayout/locales.d.ts +551 -0
  306. package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +10 -0
  307. package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanMapping.d.ts +18 -0
  308. package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +22 -0
  309. package/lib/components/pisellFloorMapLayout/types.d.ts +604 -0
  310. package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +8 -0
  311. package/lib/components/pisellFloorMapLayout/utils/floorMapDataBindingUtils.d.ts +21 -0
  312. package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +11 -0
  313. package/lib/components/pisellFloorMapLayout/utils/floorMapRemotePersist.d.ts +17 -0
  314. package/lib/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +8 -0
  315. package/lib/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +30 -0
  316. package/lib/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +7 -0
  317. package/lib/components/pisellGridPro/index.d.ts +4 -0
  318. package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
  319. package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +10 -0
  320. package/lib/components/pisellHierarchicalSummaryList/components/index.d.ts +1 -0
  321. package/lib/components/pisellHierarchicalSummaryList/hooks/index.d.ts +2 -0
  322. package/lib/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +15 -0
  323. package/lib/components/pisellHierarchicalSummaryList/index.d.ts +5 -0
  324. package/lib/components/pisellHierarchicalSummaryList/types.d.ts +248 -0
  325. package/lib/components/pisellImport/PisellImport.d.ts +9 -0
  326. package/lib/components/pisellImport/PisellImport.stories.d.ts +49 -0
  327. package/lib/components/pisellImport/index.d.ts +2 -0
  328. package/lib/components/pisellImport/types.d.ts +85 -0
  329. package/lib/components/pisellList01/index.d.ts +17 -0
  330. package/lib/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
  331. package/lib/components/pisellPhone/PisellPhone.stories.d.ts +80 -0
  332. package/lib/components/pisellPhone/components/DisabledView.d.ts +16 -0
  333. package/lib/components/pisellPhone/components/ReadOnlyView.d.ts +17 -0
  334. package/lib/components/pisellPhone/constants/countryCodes.d.ts +21 -0
  335. package/lib/components/pisellPhone/index.d.ts +8 -0
  336. package/lib/components/pisellPhone/utils/countryCodeHelper.d.ts +35 -0
  337. package/lib/components/pisellPhone/utils/index.d.ts +6 -0
  338. package/lib/components/pisellQuickFilter/type.d.ts +12 -0
  339. package/lib/components/pisellRecordBoard/context/RecordBoardContext.d.ts +3 -0
  340. package/lib/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +11 -0
  341. package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +16 -0
  342. package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +12 -0
  343. package/lib/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +13 -0
  344. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
  345. package/lib/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
  346. package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
  347. package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.d.ts +3 -0
  348. package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +7 -0
  349. package/lib/components/pisellRecordBoard/shellFrame/Calendar/RecordBoardCalendar.d.ts +8 -0
  350. package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +18 -0
  351. package/lib/components/pisellRecordBoard/shellFrame/Calendar/index.d.ts +4 -0
  352. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +15 -0
  353. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
  354. package/lib/components/pisellRecordBoard/shellFrame/FloorMap.d.ts +14 -0
  355. package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
  356. package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +21 -0
  357. package/lib/components/pisellRecordBoard/types.d.ts +468 -0
  358. package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +20 -0
  359. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +52 -0
  360. package/lib/components/pisellRecordBoard/utils/withRecordBoard.d.ts +9 -0
  361. package/lib/components/pisellReservationSchedule/locales.d.ts +25 -0
  362. package/lib/components/pisellReservationSchedule/types.d.ts +47 -0
  363. package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +16 -0
  364. package/lib/components/pisellReservationScheduleBand/index.d.ts +2 -0
  365. package/lib/components/pisellReservationScheduleBand/types.d.ts +57 -0
  366. package/lib/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
  367. package/lib/components/pisellShellFrame/PisellShellFrame.stories.d.ts +15 -0
  368. package/lib/components/pisellShellFrame/index.d.ts +2 -0
  369. package/lib/components/pisellShellFrame/types.d.ts +56 -0
  370. package/lib/components/pisellStatisticList/index.d.ts +22 -0
  371. package/lib/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +79 -0
  372. package/lib/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +14 -0
  373. package/lib/components/pisellTimeNavigator/components/CursorLayer.d.ts +25 -0
  374. package/lib/components/pisellTimeNavigator/components/GestureLayer.d.ts +33 -0
  375. package/lib/components/pisellTimeNavigator/components/index.d.ts +5 -0
  376. package/lib/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +14 -0
  377. package/lib/components/pisellTimeNavigator/hooks/useRealtime.d.ts +5 -0
  378. package/lib/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +27 -0
  379. package/lib/components/pisellTimeNavigator/index.d.ts +5 -0
  380. package/lib/components/pisellTimeNavigator/utils/index.d.ts +35 -0
  381. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
  382. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +9 -0
  383. package/lib/components/productCard/cartSkuCard/locales.d.ts +163 -0
  384. package/lib/components/productCard/components/Header/Actions/index.d.ts +4 -0
  385. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
  386. package/lib/components/productCard/components/Time/index.d.ts +4 -0
  387. package/lib/components/productCard/status.d.ts +32 -0
  388. package/lib/components/productCard/types.d.ts +85 -0
  389. package/lib/components/table/Actions/component/ViewMode/index.d.ts +9 -0
  390. package/lib/components/table/Table/fields/index.d.ts +2 -2
  391. package/lib/components/table/Table/utils.d.ts +1 -1
  392. package/lib/components/table/types.d.ts +270 -0
  393. package/lib/components/versionModal/index.d.ts +24 -0
  394. package/lib/locales/en-US.d.ts +439 -0
  395. package/lib/locales/index.d.ts +1 -0
  396. package/lib/locales/ja.d.ts +360 -0
  397. package/lib/locales/pt.d.ts +360 -0
  398. package/lib/locales/zh-CN.d.ts +434 -0
  399. package/lib/locales/zh-TW.d.ts +434 -0
  400. package/lib/theme/pisell-components.d.ts +14 -0
  401. package/package.json +1 -1
  402. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
  403. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
  404. package/es/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
  405. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
  406. package/es/components/pisellAdjustPrice/index.d.ts +0 -5
  407. package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
  408. package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -9
  409. package/es/components/pisellText/components/Amount/index.d.ts +0 -20
  410. package/es/components/pisellToast/index.d.ts +0 -17
  411. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  412. package/es/components/productCard/components/Sales/index.d.ts +0 -4
  413. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
  414. package/es/components/productCard/utils.d.ts +0 -33
  415. package/es/components/sort/index.d.ts +0 -5
  416. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -6
  417. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
  418. package/es/components/virtual-keyboard/Number/index.d.ts +0 -6
  419. package/es/components/virtual-keyboard/index.d.ts +0 -25
  420. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
  421. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
  422. package/lib/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
  423. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
  424. package/lib/components/pisellAdjustPrice/index.d.ts +0 -5
  425. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
  426. package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -9
  427. package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
  428. package/lib/components/pisellToast/index.d.ts +0 -17
  429. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  430. package/lib/components/productCard/components/Sales/index.d.ts +0 -4
  431. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
  432. package/lib/components/productCard/utils.d.ts +0 -33
  433. package/lib/components/sort/index.d.ts +0 -5
  434. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -6
  435. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
  436. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -6
  437. package/lib/components/virtual-keyboard/index.d.ts +0 -25
@@ -0,0 +1,30 @@
1
+ /**
2
+ * 平面图/布局内容区尺寸计算:格子与像素单位、gap 解析、包围盒
3
+ */
4
+ import type { FloorMapItemBase, FloorMapItemUnit } from '../types';
5
+ /** 默认每格像素 */
6
+ export declare const DEFAULT_CELL_SIZE = 64;
7
+ /** 默认 item 间距(像素) */
8
+ export declare const DEFAULT_ITEM_GAP = 8;
9
+ /**
10
+ * 将 mapLayer.gap 解析为像素数
11
+ */
12
+ export declare function gapToPx(gap: number | string | undefined): number;
13
+ /**
14
+ * 根据 items 计算内容区像素宽高
15
+ * - cell:按格子数 + cellSize + itemGap 计算
16
+ * - pixel:按 item 的 x/y/width/height 像素取边界(仅右/下边界,用于非 floor map 或兼容)
17
+ */
18
+ export declare function getContentSize<T extends FloorMapItemBase>(items: T[], cellSize: number, itemGap: number, itemUnit: FloorMapItemUnit): {
19
+ contentWidth: number;
20
+ contentHeight: number;
21
+ };
22
+ /**
23
+ * pixel 模式下取 items 包围盒(含左/上),用于画布四周扩 padding 时的尺寸与偏移
24
+ */
25
+ export declare function getPixelBoundingBox<T extends FloorMapItemBase>(items: T[], cellSize: number): {
26
+ minLeft: number;
27
+ minTop: number;
28
+ maxRight: number;
29
+ maxBottom: number;
30
+ } | null;
@@ -0,0 +1,7 @@
1
+ import type { FloorMapCanvas, FloorMapViewConfig } from '../types';
2
+ /**
3
+ * 为画布 Tab 合并展示用字段:
4
+ * - `tabBadge` 若在配置中已给出则原样使用(含 0);
5
+ * - 否则用当前 `sceneElements` 中属于该画布的数量,且仅在大于 0 时展示角标。
6
+ */
7
+ export declare function mergeCanvasesForTabs(config: FloorMapViewConfig): FloorMapCanvas[];
@@ -0,0 +1,4 @@
1
+ import { GridProProps } from './GridPro';
2
+ export type { GridProProps };
3
+ declare const PisellGridPro: any;
4
+ export default PisellGridPro;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import type { PisellHierarchicalSummaryListProps } from './types';
3
+ import './PisellHierarchicalSummaryList.less';
4
+ /** 根节点类名,供上层用同一 DOM 包裹列表与其它区块时使用 */
5
+ export declare const PREFIX_CLS = "pisell-hierarchical-summary-list";
6
+ export declare const PisellHierarchicalSummaryList: React.FC<PisellHierarchicalSummaryListProps>;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { PisellHierarchicalSummaryList } from './PisellHierarchicalSummaryList';
3
+ declare const meta: Meta<typeof PisellHierarchicalSummaryList>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof PisellHierarchicalSummaryList>;
6
+ export declare const Default: Story;
7
+ export declare const Accordion: Story;
8
+ export declare const MaxExpandLevel: Story;
9
+ export declare const AggregateSum: Story;
10
+ export declare const FullFeatured: Story;
@@ -0,0 +1 @@
1
+ export { Row } from './Row';
@@ -0,0 +1,2 @@
1
+ export { useExpandedKeys } from './useExpandedKeys';
2
+ export type { ExpandedKeysController, UseExpandedKeysOptions, } from './useExpandedKeys';
@@ -0,0 +1,15 @@
1
+ import type { PisellHierarchicalSummaryListKey } from '../types';
2
+ export interface UseExpandedKeysOptions {
3
+ expandedKeys?: PisellHierarchicalSummaryListKey[];
4
+ defaultExpandedKeys?: PisellHierarchicalSummaryListKey[];
5
+ onExpandedKeysChange?: (keys: PisellHierarchicalSummaryListKey[]) => void;
6
+ }
7
+ export interface ExpandedKeysController {
8
+ expandedKeys: PisellHierarchicalSummaryListKey[];
9
+ expandedKeySet: ReadonlySet<PisellHierarchicalSummaryListKey>;
10
+ setExpandedKeys: (next: PisellHierarchicalSummaryListKey[]) => void;
11
+ }
12
+ /**
13
+ * 展开态管理(兼容受控/非受控)。
14
+ */
15
+ export declare function useExpandedKeys(options: UseExpandedKeysOptions): ExpandedKeysController;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * PisellHierarchicalSummaryList 组件导出
3
+ */
4
+ export { PisellHierarchicalSummaryList, PREFIX_CLS as HIERARCHICAL_SUMMARY_LIST_PREFIX_CLS, } from './PisellHierarchicalSummaryList';
5
+ export type * from './types';
@@ -0,0 +1,248 @@
1
+ import type React from 'react';
2
+ import type { CSSProperties } from 'react';
3
+ export declare type PisellHierarchicalSummaryListKey = React.Key;
4
+ export interface PisellHierarchicalSummaryListItem {
5
+ /**
6
+ * 行标题。最小字段(必填)
7
+ */
8
+ label: React.ReactNode;
9
+ /**
10
+ * 行数值。允许 ReactNode(string/number/组合展示)。
11
+ * 若不传且开启聚合,可能由 children 聚合得到。
12
+ */
13
+ value?: React.ReactNode;
14
+ /**
15
+ * 子级数据(无限层级递归)
16
+ */
17
+ children?: PisellHierarchicalSummaryListItem[];
18
+ /**
19
+ * 可选:稳定 key(推荐传入以保证展开态稳定)。
20
+ * 不传时组件会基于层级路径生成 key。
21
+ */
22
+ key?: PisellHierarchicalSummaryListKey;
23
+ /**
24
+ * 可选:是否隐藏该项
25
+ */
26
+ hidden?: boolean;
27
+ /**
28
+ * 可选:排序权重,值越小越靠前
29
+ */
30
+ order?: number;
31
+ /**
32
+ * 可选:条目数提示(如 "N items" / "N 条"),允许 ReactNode
33
+ */
34
+ itemsCount?: React.ReactNode;
35
+ /**
36
+ * 可选:信息提示 tooltip 内容(hover 触达)
37
+ */
38
+ infoTooltip?: React.ReactNode;
39
+ /**
40
+ * 可选:右侧 value 后附加轻量操作(tag/pill/button 等)
41
+ */
42
+ extra?: React.ReactNode;
43
+ /**
44
+ * 可选:覆盖当前行样式
45
+ */
46
+ rowStyle?: CSSProperties;
47
+ /**
48
+ * 可选:覆盖当前行类名
49
+ */
50
+ rowClassName?: string;
51
+ /**
52
+ * 可选:自定义展开内容。若设置,行可展开且展开后渲染此内容(不再渲染 children 列表)。
53
+ * 用于在列表中嵌入 Collapse 等自定义区块。
54
+ */
55
+ expandedContent?: React.ReactNode;
56
+ }
57
+ export interface PisellHierarchicalSummaryListLevelTextStyle {
58
+ fontSize?: number | string;
59
+ fontWeight?: number | string;
60
+ color?: string;
61
+ /** 行高,如 24 或 '24px' */
62
+ lineHeight?: number | string;
63
+ }
64
+ export interface PisellHierarchicalSummaryListIconStyle {
65
+ /** 图标尺寸(px),用于 fontSize 或宽高一致时的边长) */
66
+ size?: number;
67
+ color?: string;
68
+ /** 图标容器宽(px),不传则用 size */
69
+ width?: number;
70
+ /** 图标容器高(px),不传则用 size */
71
+ height?: number;
72
+ }
73
+ export interface PisellHierarchicalSummaryListDividerStyle {
74
+ show?: boolean;
75
+ color?: string;
76
+ style?: 'solid' | 'dashed' | 'dotted';
77
+ }
78
+ export interface PisellHierarchicalSummaryListLevelConfig {
79
+ /**
80
+ * 层级缩进(px)。不传则继承全局 indent 规则。
81
+ */
82
+ indent?: number;
83
+ /**
84
+ * 是否显示 "·" 分隔符(标题区元信息前的点)
85
+ */
86
+ showDotSeparator?: boolean;
87
+ /**
88
+ * 层级内分割线
89
+ */
90
+ divider?: PisellHierarchicalSummaryListDividerStyle;
91
+ /**
92
+ * 行容器样式(背景/边框/padding/圆角/阴影等)
93
+ */
94
+ rowStyle?: CSSProperties;
95
+ /**
96
+ * 行容器类名
97
+ */
98
+ rowClassName?: string;
99
+ /**
100
+ * 标题文本样式
101
+ */
102
+ labelTextStyle?: PisellHierarchicalSummaryListLevelTextStyle;
103
+ /**
104
+ * 数值文本样式
105
+ */
106
+ valueTextStyle?: PisellHierarchicalSummaryListLevelTextStyle;
107
+ /**
108
+ * info icon 样式(size/color)
109
+ */
110
+ infoIconStyle?: PisellHierarchicalSummaryListIconStyle;
111
+ /**
112
+ * 展开/收起箭头 icon 样式(size/color)
113
+ */
114
+ expandIconStyle?: PisellHierarchicalSummaryListIconStyle;
115
+ /**
116
+ * 行内元信息样式(如 "·"、N items、info icon 的文案颜色/字号等)
117
+ */
118
+ metaTextStyle?: PisellHierarchicalSummaryListLevelTextStyle;
119
+ }
120
+ export declare type PisellHierarchicalSummaryListAggregateMode = 'none' | 'sum';
121
+ export interface PisellHierarchicalSummaryListAggregateConfig {
122
+ /**
123
+ * 聚合模式
124
+ * - none: 不聚合
125
+ * - sum: 对子级 number 值求和(或使用 getNumberValue 提取)
126
+ * @default 'none'
127
+ */
128
+ mode?: PisellHierarchicalSummaryListAggregateMode;
129
+ /**
130
+ * 从条目提取 number 值,用于 sum 聚合。
131
+ * 默认:若 item.value 是 number,则使用该值;否则忽略。
132
+ */
133
+ getNumberValue?: (item: PisellHierarchicalSummaryListItem) => number | null | undefined;
134
+ /**
135
+ * 聚合结果格式化(sum 输出到 value 区)
136
+ */
137
+ format?: (sum: number, ctx: {
138
+ item: PisellHierarchicalSummaryListItem;
139
+ level: number;
140
+ }) => React.ReactNode;
141
+ }
142
+ export interface PisellHierarchicalSummaryListRenderContext {
143
+ level: number;
144
+ pathKeys: PisellHierarchicalSummaryListKey[];
145
+ expanded: boolean;
146
+ hasChildren: boolean;
147
+ aggregatedValue?: React.ReactNode;
148
+ }
149
+ export interface PisellHierarchicalSummaryListProps {
150
+ /**
151
+ * 数据源
152
+ */
153
+ items: PisellHierarchicalSummaryListItem[];
154
+ /**
155
+ * 展开项 keys(受控)
156
+ */
157
+ expandedKeys?: PisellHierarchicalSummaryListKey[];
158
+ /**
159
+ * 默认展开项 keys(非受控)
160
+ */
161
+ defaultExpandedKeys?: PisellHierarchicalSummaryListKey[];
162
+ /**
163
+ * 默认展开层级(非受控初始化)。0 表示只展示 L1(不默认展开子级)。
164
+ * @default 0
165
+ */
166
+ defaultExpandedLevel?: number;
167
+ /**
168
+ * 展开项变化回调
169
+ */
170
+ onExpandedKeysChange?: (keys: PisellHierarchicalSummaryListKey[]) => void;
171
+ /**
172
+ * 手风琴模式:同一层级下仅允许一个子项展开
173
+ * @default false
174
+ */
175
+ accordion?: boolean;
176
+ /**
177
+ * 最大渲染层级(从 1 开始)。超过层级仍保留行,但不再渲染 children。
178
+ */
179
+ maxRenderLevel?: number;
180
+ /**
181
+ * 最大可展开层级(从 1 开始)。超过层级不显示展开箭头。
182
+ */
183
+ maxExpandLevel?: number;
184
+ /**
185
+ * 全局缩进(px),作用于 L2+;也可通过 levelConfig 覆盖。
186
+ * @default 16
187
+ */
188
+ indent?: number;
189
+ /**
190
+ * 行间距(px)
191
+ * @default 8
192
+ */
193
+ rowGap?: number;
194
+ /**
195
+ * 容器内边距(px 或 CSS 值),不传则使用 less 默认 20px
196
+ */
197
+ padding?: number | string;
198
+ /**
199
+ * 行内间距(px),用于 1:1 复刻设计稿
200
+ * - row: 行内左右两栏间距
201
+ * - rowLeft: 左侧 label 与 meta(· / N items)间距
202
+ * - meta: meta 内 dot / items-count / info 间距
203
+ * - rowRight: 右侧 value 与 extra / 展开图标间距
204
+ */
205
+ gaps?: {
206
+ row?: number;
207
+ rowLeft?: number;
208
+ meta?: number;
209
+ rowRight?: number;
210
+ };
211
+ /**
212
+ * 按层级配置样式与功能开关(key 为 level,从 1 开始)
213
+ */
214
+ levelConfig?: Record<number, PisellHierarchicalSummaryListLevelConfig>;
215
+ /**
216
+ * 自定义渲染 label
217
+ */
218
+ renderLabel?: (item: PisellHierarchicalSummaryListItem, ctx: PisellHierarchicalSummaryListRenderContext) => React.ReactNode;
219
+ /**
220
+ * 自定义渲染 value
221
+ */
222
+ renderValue?: (item: PisellHierarchicalSummaryListItem, ctx: PisellHierarchicalSummaryListRenderContext) => React.ReactNode;
223
+ /**
224
+ * 自定义 key 生成(当 item.key 不存在时使用)
225
+ */
226
+ getKey?: (item: PisellHierarchicalSummaryListItem, ctx: {
227
+ level: number;
228
+ index: number;
229
+ parentPathKeys: PisellHierarchicalSummaryListKey[];
230
+ }) => PisellHierarchicalSummaryListKey;
231
+ /**
232
+ * 聚合配置:支持内置或外部传入
233
+ */
234
+ aggregate?: PisellHierarchicalSummaryListAggregateConfig;
235
+ /**
236
+ * 根节点类名
237
+ */
238
+ className?: string;
239
+ /**
240
+ * 根节点样式
241
+ */
242
+ style?: CSSProperties;
243
+ /**
244
+ * 是否渲染根节点 div。为 false 时只渲染内部内容(用于外层用同一 DOM 包裹列表与其它区块)。
245
+ * @default true
246
+ */
247
+ renderRoot?: boolean;
248
+ }
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { PisellImportProps } from './types';
3
+ import './PisellImport.less';
4
+ /**
5
+ * PisellImport 导入触发器组件
6
+ *
7
+ * @description 点击后打开文件选择,支持 accept、multiple、maxSize 校验,选择完成后回调 onImport(files)
8
+ */
9
+ export declare function PisellImport(props: PisellImportProps): React.JSX.Element;
@@ -0,0 +1,49 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { PisellImport } from './PisellImport';
3
+ declare const meta: Meta<typeof PisellImport>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof PisellImport>;
6
+ /**
7
+ * 默认 Button 形态
8
+ */
9
+ export declare const Basic: Story;
10
+ /**
11
+ * 仅图标形态
12
+ */
13
+ export declare const IconOnly: Story;
14
+ /**
15
+ * 三种尺寸 - Button
16
+ */
17
+ export declare const SizesButton: Story;
18
+ /**
19
+ * 三种尺寸 - Icon
20
+ */
21
+ export declare const SizesIcon: Story;
22
+ /**
23
+ * 默认样式 vs 主色样式
24
+ */
25
+ export declare const DefaultVsPrimary: Story;
26
+ /**
27
+ * 禁用态
28
+ */
29
+ export declare const Disabled: Story;
30
+ /**
31
+ * 自定义文案
32
+ */
33
+ export declare const CustomLabel: Story;
34
+ /**
35
+ * 自定义图标(antd 图标)
36
+ */
37
+ export declare const CustomIcon: Story;
38
+ /**
39
+ * 文件选择:限制类型与大小
40
+ */
41
+ export declare const FileSelect: Story;
42
+ /**
43
+ * 多选文件
44
+ */
45
+ export declare const MultipleFiles: Story;
46
+ /**
47
+ * 与 Export 并排
48
+ */
49
+ export declare const WithExport: Story;
@@ -0,0 +1,2 @@
1
+ export { PisellImport } from './PisellImport';
2
+ export type { PisellImportProps, VariantType, SizeType, ImportButtonType } from './types';
@@ -0,0 +1,85 @@
1
+ import type { CSSProperties, ReactNode } from 'react';
2
+ /**
3
+ * 展示形态
4
+ * @description icon:仅图标;button:图标 + 文案
5
+ */
6
+ export declare type VariantType = 'icon' | 'button';
7
+ /**
8
+ * 尺寸
9
+ * @description 小、中、大三种尺寸,对应设计稿 padding 与字体
10
+ */
11
+ export declare type SizeType = 'small' | 'medium' | 'large';
12
+ /**
13
+ * 视觉类型
14
+ * @description default:默认边框/灰字;primary:主色描边或填充
15
+ */
16
+ export declare type ImportButtonType = 'default' | 'primary';
17
+ /**
18
+ * PisellImport 组件 Props
19
+ * @description 导入触发器 UI 组件,仅负责展示与点击回调,不内置导入逻辑
20
+ */
21
+ export interface PisellImportProps {
22
+ /**
23
+ * 展示形态
24
+ * @default 'button'
25
+ */
26
+ variant?: VariantType;
27
+ /**
28
+ * 尺寸
29
+ * @default 'medium'
30
+ */
31
+ size?: SizeType;
32
+ /**
33
+ * 视觉类型(默认样式 / 主色样式)
34
+ * @default 'default'
35
+ */
36
+ type?: ImportButtonType;
37
+ /**
38
+ * 是否禁用
39
+ * @default false
40
+ */
41
+ disabled?: boolean;
42
+ /**
43
+ * Button 形态下的文案,不传时使用国际化默认文案
44
+ */
45
+ label?: ReactNode;
46
+ /**
47
+ * 自定义图标,不传时使用内置上传/导入图标
48
+ */
49
+ icon?: ReactNode;
50
+ /**
51
+ * 接受的文件类型
52
+ * @description 与 input[type=file] 的 accept 一致,如 ".xlsx,.csv" 或 "application/vnd.ms-excel"
53
+ */
54
+ accept?: string;
55
+ /**
56
+ * 是否允许多选
57
+ * @default false
58
+ */
59
+ multiple?: boolean;
60
+ /**
61
+ * 单文件最大体积(MB),超出时不会调用 onImport,并调用 onError
62
+ */
63
+ maxSize?: number;
64
+ /**
65
+ * 选择文件并校验通过后回调
66
+ * @description 用户选择文件后触发,e 为 input 的 change 事件
67
+ */
68
+ onImport?: (files: File[], e: React.ChangeEvent<HTMLInputElement>) => void;
69
+ /**
70
+ * 校验失败时回调(如文件过大)
71
+ */
72
+ onError?: (error: {
73
+ type: 'MAX_SIZE';
74
+ message: string;
75
+ file: File;
76
+ }) => void;
77
+ /**
78
+ * 自定义类名
79
+ */
80
+ className?: string;
81
+ /**
82
+ * 自定义样式
83
+ */
84
+ style?: CSSProperties;
85
+ }
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellList01Props {
4
+ dataSource?: any[];
5
+ showSearch: boolean;
6
+ showCategory: boolean;
7
+ placeholder?: string;
8
+ renderItem?: (item: any, index: number) => React.ReactNode;
9
+ className?: string;
10
+ style?: React.CSSProperties;
11
+ onChange?: (anchor: string) => void;
12
+ onSearch?: (value: any) => void;
13
+ isShowEmpty?: boolean;
14
+ description?: any;
15
+ }
16
+ declare const PisellList01: React.FC<PisellList01Props>;
17
+ export default PisellList01;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { LookupTriggerProps, LookupTriggerRef } from '../types';
3
+ export declare const LookupTrigger: React.ForwardRefExoticComponent<LookupTriggerProps & React.RefAttributes<LookupTriggerRef>>;
@@ -0,0 +1,80 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { PisellPhone } from './PisellPhone';
3
+ /**
4
+ * PisellPhone 是一个电话号码输入/展示组件。
5
+ *
6
+ * ## 功能特性
7
+ * - 支持三种状态:只读、编辑、禁用
8
+ * - 国家码选择(预设24个常见国家)
9
+ * - 自动格式化
10
+ * - 格式校验
11
+ * - 移动端拨号
12
+ * - 号码脱敏
13
+ */
14
+ declare const meta: Meta<typeof PisellPhone>;
15
+ export default meta;
16
+ declare type Story = StoryObj<typeof PisellPhone>;
17
+ /**
18
+ * 基础编辑态(中国手机号)
19
+ */
20
+ export declare const Basic: Story;
21
+ /**
22
+ * 国家码选择器(显示所有国家)
23
+ */
24
+ export declare const WithCountrySelector: Story;
25
+ /**
26
+ * 国家码选择器(过滤显示)
27
+ */
28
+ export declare const FilteredCountries: Story;
29
+ /**
30
+ * 国家码选择器(常用国家置顶)
31
+ */
32
+ export declare const CommonCountriesTop: Story;
33
+ /**
34
+ * 只读态 - 格式化显示
35
+ */
36
+ export declare const ReadMode: Story;
37
+ /**
38
+ * 只读态 - 脱敏显示(中间)
39
+ */
40
+ export declare const ReadModeMaskedMiddle: Story;
41
+ /**
42
+ * 只读态 - 脱敏显示(末尾)
43
+ */
44
+ export declare const ReadModeMaskedLast: Story;
45
+ /**
46
+ * 只读态 - 可拨号(移动端)
47
+ */
48
+ export declare const ReadModeDialable: Story;
49
+ /**
50
+ * 禁用态
51
+ */
52
+ export declare const Disabled: Story;
53
+ /**
54
+ * 必填校验
55
+ */
56
+ export declare const Required: Story;
57
+ /**
58
+ * 格式校验
59
+ */
60
+ export declare const FormatValidation: Story;
61
+ /**
62
+ * 美国号码
63
+ */
64
+ export declare const USPhone: Story;
65
+ /**
66
+ * 自动格式化对比
67
+ */
68
+ export declare const AutoFormatComparison: Story;
69
+ /**
70
+ * 多国号码展示
71
+ */
72
+ export declare const MultiCountryDisplay: Story;
73
+ /**
74
+ * 脱敏模式对比
75
+ */
76
+ export declare const MaskingComparison: Story;
77
+ /**
78
+ * 完整功能示例
79
+ */
80
+ export declare const CompleteExample: Story;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import type { PisellPhoneProps } from '../types';
3
+ /**
4
+ * PisellPhone 禁用态视图组件
5
+ *
6
+ * 负责渲染禁用态视图,基于原始 mode 渲染对应的视图,并添加禁用样式
7
+ *
8
+ * 设计规则:
9
+ * - 基于编辑态或只读态的视觉
10
+ * - 透明度 40%
11
+ * - 禁止所有交互行为(包括拨号)
12
+ *
13
+ * @param props 组件 Props
14
+ */
15
+ declare const DisabledView: React.FC<PisellPhoneProps>;
16
+ export default DisabledView;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import type { PisellPhoneProps } from '../types';
3
+ /**
4
+ * PisellPhone 只读态视图组件
5
+ *
6
+ * 负责渲染只读态的电话号码展示和拨号功能
7
+ *
8
+ * 功能:
9
+ * - 格式化或脱敏显示
10
+ * - 显示国旗图标(可选)
11
+ * - 移动端可点击拨号(tel: 协议)
12
+ * - 拨号图标(可选)
13
+ *
14
+ * @param props 组件 Props
15
+ */
16
+ declare const ReadOnlyView: React.FC<PisellPhoneProps>;
17
+ export default ReadOnlyView;
@@ -0,0 +1,21 @@
1
+ import type { CountryCode } from '../types';
2
+ /**
3
+ * 预设的国家码列表(24个常见国家)
4
+ * flag 使用正常文本(ISO 3166-1 alpha-2 两字母代码,如 CN、US)
5
+ *
6
+ * 包含:
7
+ * - 亚洲:中国、香港、澳门、台湾、日本、韩国、新加坡、马来西亚、泰国、印度
8
+ * - 欧洲:英国、法国、德国、意大利、西班牙、俄罗斯
9
+ * - 美洲:美国、加拿大、墨西哥、巴西
10
+ * - 大洋洲:澳大利亚、新西兰
11
+ * - 中东:阿联酋、沙特阿拉伯
12
+ */
13
+ export declare const PRESET_COUNTRY_CODES: CountryCode[];
14
+ /**
15
+ * 默认国家码
16
+ */
17
+ export declare const DEFAULT_COUNTRY_CODE = "+86";
18
+ /**
19
+ * 常用国家码(可作为默认的 commonCountryCodes)
20
+ */
21
+ export declare const COMMON_COUNTRY_CODES: string[];
@@ -0,0 +1,8 @@
1
+ /**
2
+ * PisellPhone 组件导出
3
+ */
4
+ import PisellPhone from './PisellPhone';
5
+ export { PisellPhone };
6
+ export type { PisellPhoneProps, CountryCode } from './types';
7
+ export { PRESET_COUNTRY_CODES, DEFAULT_COUNTRY_CODE, COMMON_COUNTRY_CODES } from './constants/countryCodes';
8
+ export type { DisplayState, ValidationResult, TextInputState } from './types';