@pisell/materials 6.11.17 → 6.11.18
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +7 -7
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +32 -32
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +25 -25
- package/es/components/PisellLayouts/index.d.ts +10 -5
- package/es/components/PisellLayouts/index.js +8 -4
- package/es/components/dataSourceComponents/dataSourceSubForm/index.d.ts +13 -0
- package/es/components/dataSourceComponents/dataSourceSubForm/index.js +274 -0
- package/es/components/dataSourceComponents/dataSourceSubForm/index.less +19 -0
- package/es/components/dataSourceComponents/dataSourceSubForm/schema-full-example.json +544 -0
- package/es/components/dataSourceComponents/dataSourceSubForm/schema-simple-example.json +174 -0
- package/es/components/dataSourceComponents/dataSourceSubForm/types.d.ts +117 -0
- package/es/components/dataSourceComponents/dataSourceSubForm/types.js +1 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/ReadPretty.d.ts +9 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/ReadPretty.js +61 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/WithMode.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/WithMode.js +176 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +12 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/index.js +11 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/type.d.ts +87 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/type.js +1 -0
- package/es/components/dataSourceComponents/fields/Tabs/ReadPretty.d.ts +9 -0
- package/es/components/dataSourceComponents/fields/Tabs/ReadPretty.js +16 -0
- package/es/components/dataSourceComponents/fields/Tabs/Tabs.d.ts +23 -0
- package/es/components/dataSourceComponents/fields/Tabs/Tabs.js +93 -0
- package/es/components/dataSourceComponents/fields/Tabs/Tabs.less +64 -0
- package/es/components/dataSourceComponents/fields/Tabs/WithMode.d.ts +6 -0
- package/es/components/dataSourceComponents/fields/Tabs/WithMode.js +9 -0
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +12 -0
- package/es/components/dataSourceComponents/fields/Tabs/index.js +18 -0
- package/es/components/dataSourceComponents/fields/Tabs/type.d.ts +38 -0
- package/es/components/dataSourceComponents/fields/Tabs/type.js +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +39 -1
- package/es/components/dataSourceComponents/fields/index.js +5 -1
- package/es/components/dataSourceComponents/fields/utils.js +3 -0
- package/es/components/pisellFilter/type.d.ts +4 -2
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +12 -0
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +611 -0
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.less +92 -0
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +55 -0
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.js +1667 -0
- package/es/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +27 -0
- package/es/components/pisellFloorMapLayout/components/CanvasTabs.js +203 -0
- package/es/components/pisellFloorMapLayout/components/CanvasTabs.less +189 -0
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +37 -0
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.js +341 -0
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.less +89 -0
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +43 -0
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.js +432 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapDataForm.d.ts +21 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapDataForm.js +131 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapDataForm.less +7 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +14 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +543 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.less +162 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +36 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.js +135 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.less +149 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +9 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.js +69 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +35 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.js +366 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.less +239 -0
- package/es/components/pisellFloorMapLayout/components/ItemLayer.d.ts +48 -0
- package/es/components/pisellFloorMapLayout/components/ItemLayer.js +195 -0
- package/es/components/pisellFloorMapLayout/components/ItemLayer.less +19 -0
- package/es/components/pisellFloorMapLayout/components/MapLayer.d.ts +27 -0
- package/es/components/pisellFloorMapLayout/components/MapLayer.js +85 -0
- package/es/components/pisellFloorMapLayout/components/MapLayer.less +7 -0
- package/es/components/pisellFloorMapLayout/components/ViewControls.d.ts +33 -0
- package/es/components/pisellFloorMapLayout/components/ViewControls.js +88 -0
- package/es/components/pisellFloorMapLayout/components/ViewControls.less +101 -0
- package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +16 -0
- package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +29 -0
- package/es/components/pisellFloorMapLayout/components/index.d.ts +21 -0
- package/es/components/pisellFloorMapLayout/components/index.js +13 -0
- package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +16 -0
- package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.js +21 -0
- package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +5 -0
- package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +28 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +63 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +561 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +21 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.js +122 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +67 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +399 -0
- package/es/components/pisellFloorMapLayout/index.d.ts +15 -0
- package/es/components/pisellFloorMapLayout/index.js +12 -0
- package/es/components/pisellFloorMapLayout/locales.d.ts +192 -0
- package/es/components/pisellFloorMapLayout/locales.js +191 -0
- package/es/components/pisellFloorMapLayout/types.d.ts +586 -0
- package/es/components/pisellFloorMapLayout/types.js +152 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +20 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.js +129 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +8 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.js +87 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapDataRecordLabel.d.ts +9 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapDataRecordLabel.js +24 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +27 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapDropUtils.js +56 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +22 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.js +155 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +11 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.js +89 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapStageDefaults.d.ts +8 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapStageDefaults.js +8 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +8 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.js +108 -0
- package/es/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +30 -0
- package/es/components/pisellFloorMapLayout/utils/layoutMeasurements.js +125 -0
- package/es/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +7 -0
- package/es/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.js +29 -0
- package/es/components/pisellFloorMapLayout/utils/snap.d.ts +10 -0
- package/es/components/pisellFloorMapLayout/utils/snap.js +21 -0
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.js +175 -0
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.less +129 -0
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +10 -0
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.js +237 -0
- package/es/components/pisellHierarchicalSummaryList/components/Row.d.ts +35 -0
- package/es/components/pisellHierarchicalSummaryList/components/Row.js +313 -0
- package/es/components/pisellHierarchicalSummaryList/components/index.d.ts +1 -0
- package/es/components/pisellHierarchicalSummaryList/components/index.js +1 -0
- package/es/components/pisellHierarchicalSummaryList/hooks/index.d.ts +2 -0
- package/es/components/pisellHierarchicalSummaryList/hooks/index.js +1 -0
- package/es/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +15 -0
- package/es/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.js +34 -0
- package/es/components/pisellHierarchicalSummaryList/index.d.ts +5 -0
- package/es/components/pisellHierarchicalSummaryList/index.js +5 -0
- package/es/components/pisellHierarchicalSummaryList/types.d.ts +248 -0
- package/es/components/pisellHierarchicalSummaryList/types.js +1 -0
- package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +2 -1
- package/es/components/pisellRecordBoard/PisellRecordBoard.js +98 -18
- package/es/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +4 -0
- package/es/components/pisellRecordBoard/PisellRecordBoard.stories.js +1276 -344
- package/es/components/pisellRecordBoard/index.d.ts +8 -2
- package/es/components/pisellRecordBoard/index.js +4 -2
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +1 -3
- package/es/components/pisellRecordBoard/shellFrame/FloorMap.d.ts +14 -0
- package/es/components/pisellRecordBoard/shellFrame/FloorMap.js +15 -0
- package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +16 -0
- package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.js +11 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +61 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +1 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +69 -11
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +23 -0
- package/es/components/pisellRecordBoard/shellFrame/index.d.ts +6 -10
- package/es/components/pisellRecordBoard/shellFrame/index.js +111 -20
- package/es/components/pisellRecordBoard/shellFrame/shellFrameFloorMap.less +25 -0
- package/es/components/pisellRecordBoard/types.d.ts +68 -2
- package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +15 -0
- package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +57 -0
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +10 -0
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.js +156 -0
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.less +88 -0
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.stories.d.ts +12 -0
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.stories.js +105 -0
- package/es/components/pisellReservationSchedule/index.d.ts +2 -0
- package/es/components/pisellReservationSchedule/index.js +1 -0
- package/es/components/pisellReservationSchedule/locales.d.ts +25 -0
- package/es/components/pisellReservationSchedule/locales.js +24 -0
- package/es/components/pisellReservationSchedule/types.d.ts +42 -0
- package/es/components/pisellReservationSchedule/types.js +1 -0
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +10 -0
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.js +94 -0
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +66 -0
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +16 -0
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.js +197 -0
- package/es/components/pisellReservationScheduleBand/index.d.ts +2 -0
- package/es/components/pisellReservationScheduleBand/index.js +1 -0
- package/es/components/pisellReservationScheduleBand/types.d.ts +49 -0
- package/es/components/pisellReservationScheduleBand/types.js +1 -0
- package/es/components/pisellShellFrame/PisellShellFrame.less +11 -0
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +10 -0
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.js +787 -0
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.less +461 -0
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +79 -0
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.stories.js +290 -0
- package/es/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +14 -0
- package/es/components/pisellTimeNavigator/components/BackgroundLayer.js +30 -0
- package/es/components/pisellTimeNavigator/components/CursorLayer.d.ts +25 -0
- package/es/components/pisellTimeNavigator/components/CursorLayer.js +77 -0
- package/es/components/pisellTimeNavigator/components/GestureLayer.d.ts +33 -0
- package/es/components/pisellTimeNavigator/components/GestureLayer.js +91 -0
- package/es/components/pisellTimeNavigator/components/NowButton.d.ts +14 -0
- package/es/components/pisellTimeNavigator/components/NowButton.js +38 -0
- package/es/components/pisellTimeNavigator/components/ScaleLayer.d.ts +22 -0
- package/es/components/pisellTimeNavigator/components/ScaleLayer.js +73 -0
- package/es/components/pisellTimeNavigator/components/index.d.ts +5 -0
- package/es/components/pisellTimeNavigator/components/index.js +5 -0
- package/es/components/pisellTimeNavigator/hooks/index.d.ts +5 -0
- package/es/components/pisellTimeNavigator/hooks/index.js +3 -0
- package/es/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +14 -0
- package/es/components/pisellTimeNavigator/hooks/useDragInertia.js +109 -0
- package/es/components/pisellTimeNavigator/hooks/useRealtime.d.ts +5 -0
- package/es/components/pisellTimeNavigator/hooks/useRealtime.js +16 -0
- package/es/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +27 -0
- package/es/components/pisellTimeNavigator/hooks/useTimeAxis.js +76 -0
- package/es/components/pisellTimeNavigator/index.d.ts +5 -0
- package/es/components/pisellTimeNavigator/index.js +4 -0
- package/es/components/pisellTimeNavigator/locales.d.ts +22 -0
- package/es/components/pisellTimeNavigator/locales.js +21 -0
- package/es/components/pisellTimeNavigator/types.d.ts +160 -0
- package/es/components/pisellTimeNavigator/types.js +1 -0
- package/es/components/pisellTimeNavigator/utils/index.d.ts +30 -0
- package/es/components/pisellTimeNavigator/utils/index.js +116 -0
- package/es/components/pisellWalletPassCard/index.js +1 -1
- package/es/components/table/index.js +1 -1
- package/es/index.d.ts +49 -33
- package/es/index.js +47 -27
- package/es/locales/en-US.d.ts +2 -0
- package/es/locales/en-US.js +2 -0
- package/es/locales/zh-CN.d.ts +2 -0
- package/es/locales/zh-CN.js +2 -0
- package/es/locales/zh-TW.d.ts +2 -0
- package/es/locales/zh-TW.js +2 -0
- package/lib/components/PisellLayouts/index.d.ts +10 -5
- package/lib/components/PisellLayouts/index.js +15 -1
- package/lib/components/dataSourceComponents/dataSourceSubForm/index.d.ts +13 -0
- package/lib/components/dataSourceComponents/dataSourceSubForm/index.js +229 -0
- package/lib/components/dataSourceComponents/dataSourceSubForm/index.less +19 -0
- package/lib/components/dataSourceComponents/dataSourceSubForm/schema-full-example.json +544 -0
- package/lib/components/dataSourceComponents/dataSourceSubForm/schema-simple-example.json +174 -0
- package/lib/components/dataSourceComponents/dataSourceSubForm/types.d.ts +117 -0
- package/lib/components/dataSourceComponents/dataSourceSubForm/types.js +17 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/ReadPretty.d.ts +9 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/ReadPretty.js +64 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/WithMode.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/WithMode.js +157 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +12 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.js +40 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/type.d.ts +87 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/Tabs/ReadPretty.d.ts +9 -0
- package/lib/components/dataSourceComponents/fields/Tabs/ReadPretty.js +45 -0
- package/lib/components/dataSourceComponents/fields/Tabs/Tabs.d.ts +23 -0
- package/lib/components/dataSourceComponents/fields/Tabs/Tabs.js +95 -0
- package/lib/components/dataSourceComponents/fields/Tabs/Tabs.less +64 -0
- package/lib/components/dataSourceComponents/fields/Tabs/WithMode.d.ts +6 -0
- package/lib/components/dataSourceComponents/fields/Tabs/WithMode.js +39 -0
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +12 -0
- package/lib/components/dataSourceComponents/fields/Tabs/index.js +40 -0
- package/lib/components/dataSourceComponents/fields/Tabs/type.d.ts +38 -0
- package/lib/components/dataSourceComponents/fields/Tabs/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +39 -1
- package/lib/components/dataSourceComponents/fields/index.js +5 -1
- package/lib/components/dataSourceComponents/fields/utils.js +3 -0
- package/lib/components/pisellFilter/type.d.ts +4 -2
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +12 -0
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +709 -0
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.less +92 -0
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +55 -0
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.js +1353 -0
- package/lib/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +27 -0
- package/lib/components/pisellFloorMapLayout/components/CanvasTabs.js +237 -0
- package/lib/components/pisellFloorMapLayout/components/CanvasTabs.less +189 -0
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +37 -0
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.js +358 -0
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.less +89 -0
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +43 -0
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.js +482 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapDataForm.d.ts +21 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapDataForm.js +117 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapDataForm.less +7 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +14 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +556 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.less +162 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +36 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.js +195 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.less +149 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +9 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.js +94 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +35 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.js +337 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.less +239 -0
- package/lib/components/pisellFloorMapLayout/components/ItemLayer.d.ts +48 -0
- package/lib/components/pisellFloorMapLayout/components/ItemLayer.js +219 -0
- package/lib/components/pisellFloorMapLayout/components/ItemLayer.less +19 -0
- package/lib/components/pisellFloorMapLayout/components/MapLayer.d.ts +27 -0
- package/lib/components/pisellFloorMapLayout/components/MapLayer.js +110 -0
- package/lib/components/pisellFloorMapLayout/components/MapLayer.less +7 -0
- package/lib/components/pisellFloorMapLayout/components/ViewControls.d.ts +33 -0
- package/lib/components/pisellFloorMapLayout/components/ViewControls.js +121 -0
- package/lib/components/pisellFloorMapLayout/components/ViewControls.less +101 -0
- package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +16 -0
- package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +65 -0
- package/lib/components/pisellFloorMapLayout/components/index.d.ts +21 -0
- package/lib/components/pisellFloorMapLayout/components/index.js +56 -0
- package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +16 -0
- package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.js +54 -0
- package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +5 -0
- package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +47 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +63 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +545 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +21 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.js +146 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +67 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +382 -0
- package/lib/components/pisellFloorMapLayout/index.d.ts +15 -0
- package/lib/components/pisellFloorMapLayout/index.js +64 -0
- package/lib/components/pisellFloorMapLayout/locales.d.ts +192 -0
- package/lib/components/pisellFloorMapLayout/locales.js +212 -0
- package/lib/components/pisellFloorMapLayout/types.d.ts +586 -0
- package/lib/components/pisellFloorMapLayout/types.js +32 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +20 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.js +126 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +8 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.js +66 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapDataRecordLabel.d.ts +9 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapDataRecordLabel.js +44 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +27 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapDropUtils.js +67 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +22 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.js +139 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +11 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.js +136 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapStageDefaults.d.ts +8 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapStageDefaults.js +33 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +8 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.js +128 -0
- package/lib/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +30 -0
- package/lib/components/pisellFloorMapLayout/utils/layoutMeasurements.js +96 -0
- package/lib/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +7 -0
- package/lib/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.js +41 -0
- package/lib/components/pisellFloorMapLayout/utils/snap.d.ts +10 -0
- package/lib/components/pisellFloorMapLayout/utils/snap.js +43 -0
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.js +179 -0
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.less +129 -0
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +10 -0
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.js +185 -0
- package/lib/components/pisellHierarchicalSummaryList/components/Row.d.ts +35 -0
- package/lib/components/pisellHierarchicalSummaryList/components/Row.js +343 -0
- package/lib/components/pisellHierarchicalSummaryList/components/index.d.ts +1 -0
- package/lib/components/pisellHierarchicalSummaryList/components/index.js +29 -0
- package/lib/components/pisellHierarchicalSummaryList/hooks/index.d.ts +2 -0
- package/lib/components/pisellHierarchicalSummaryList/hooks/index.js +29 -0
- package/lib/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +15 -0
- package/lib/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.js +49 -0
- package/lib/components/pisellHierarchicalSummaryList/index.d.ts +5 -0
- package/lib/components/pisellHierarchicalSummaryList/index.js +31 -0
- package/lib/components/pisellHierarchicalSummaryList/types.d.ts +248 -0
- package/lib/components/pisellHierarchicalSummaryList/types.js +17 -0
- package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +2 -1
- package/lib/components/pisellRecordBoard/PisellRecordBoard.js +86 -8
- package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +4 -0
- package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.js +915 -25
- package/lib/components/pisellRecordBoard/index.d.ts +8 -2
- package/lib/components/pisellRecordBoard/index.js +6 -2
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +8 -2
- package/lib/components/pisellRecordBoard/shellFrame/FloorMap.d.ts +14 -0
- package/lib/components/pisellRecordBoard/shellFrame/FloorMap.js +27 -0
- package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +16 -0
- package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.js +45 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +61 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +1 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +60 -8
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +23 -0
- package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +6 -10
- package/lib/components/pisellRecordBoard/shellFrame/index.js +101 -9
- package/lib/components/pisellRecordBoard/shellFrame/shellFrameFloorMap.less +25 -0
- package/lib/components/pisellRecordBoard/types.d.ts +68 -2
- package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +15 -0
- package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +88 -0
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +10 -0
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.js +200 -0
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.less +88 -0
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.stories.d.ts +12 -0
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.stories.js +116 -0
- package/lib/components/pisellReservationSchedule/index.d.ts +2 -0
- package/lib/components/pisellReservationSchedule/index.js +29 -0
- package/lib/components/pisellReservationSchedule/locales.d.ts +25 -0
- package/lib/components/pisellReservationSchedule/locales.js +47 -0
- package/lib/components/pisellReservationSchedule/types.d.ts +42 -0
- package/lib/components/pisellReservationSchedule/types.js +17 -0
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +10 -0
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.js +128 -0
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +66 -0
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +16 -0
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.js +181 -0
- package/lib/components/pisellReservationScheduleBand/index.d.ts +2 -0
- package/lib/components/pisellReservationScheduleBand/index.js +29 -0
- package/lib/components/pisellReservationScheduleBand/types.d.ts +49 -0
- package/lib/components/pisellReservationScheduleBand/types.js +17 -0
- package/lib/components/pisellShellFrame/PisellShellFrame.less +11 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +10 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.js +901 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.less +461 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +79 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.stories.js +273 -0
- package/lib/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +14 -0
- package/lib/components/pisellTimeNavigator/components/BackgroundLayer.js +78 -0
- package/lib/components/pisellTimeNavigator/components/CursorLayer.d.ts +25 -0
- package/lib/components/pisellTimeNavigator/components/CursorLayer.js +111 -0
- package/lib/components/pisellTimeNavigator/components/GestureLayer.d.ts +33 -0
- package/lib/components/pisellTimeNavigator/components/GestureLayer.js +170 -0
- package/lib/components/pisellTimeNavigator/components/NowButton.d.ts +14 -0
- package/lib/components/pisellTimeNavigator/components/NowButton.js +81 -0
- package/lib/components/pisellTimeNavigator/components/ScaleLayer.d.ts +22 -0
- package/lib/components/pisellTimeNavigator/components/ScaleLayer.js +116 -0
- package/lib/components/pisellTimeNavigator/components/index.d.ts +5 -0
- package/lib/components/pisellTimeNavigator/components/index.js +41 -0
- package/lib/components/pisellTimeNavigator/hooks/index.d.ts +5 -0
- package/lib/components/pisellTimeNavigator/hooks/index.js +35 -0
- package/lib/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +14 -0
- package/lib/components/pisellTimeNavigator/hooks/useDragInertia.js +136 -0
- package/lib/components/pisellTimeNavigator/hooks/useRealtime.d.ts +5 -0
- package/lib/components/pisellTimeNavigator/hooks/useRealtime.js +49 -0
- package/lib/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +27 -0
- package/lib/components/pisellTimeNavigator/hooks/useTimeAxis.js +87 -0
- package/lib/components/pisellTimeNavigator/index.d.ts +5 -0
- package/lib/components/pisellTimeNavigator/index.js +47 -0
- package/lib/components/pisellTimeNavigator/locales.d.ts +22 -0
- package/lib/components/pisellTimeNavigator/locales.js +41 -0
- package/lib/components/pisellTimeNavigator/types.d.ts +160 -0
- package/lib/components/pisellTimeNavigator/types.js +17 -0
- package/lib/components/pisellTimeNavigator/utils/index.d.ts +30 -0
- package/lib/components/pisellTimeNavigator/utils/index.js +107 -0
- package/lib/components/pisellWalletPassCard/index.js +1 -1
- package/lib/components/table/index.js +2 -2
- package/lib/index.d.ts +49 -33
- package/lib/index.js +93 -27
- package/lib/locales/en-US.d.ts +2 -0
- package/lib/locales/en-US.js +2 -0
- package/lib/locales/zh-CN.d.ts +2 -0
- package/lib/locales/zh-CN.js +2 -0
- package/lib/locales/zh-TW.d.ts +2 -0
- package/lib/locales/zh-TW.js +2 -0
- package/lowcode/data-source-form/constants.ts +3 -0
- package/lowcode/data-source-form/utils.ts +31 -5
- package/lowcode/data-source-sub-form/meta.ts +259 -0
- package/lowcode/data-source-sub-form/snippets.ts +21 -0
- package/lowcode/floor-map-image-element/meta.ts +113 -0
- package/lowcode/floor-map-layout-provider/meta.ts +65 -0
- package/lowcode/form-item-record-list-wrapper/meta.ts +180 -0
- package/lowcode/form-item-record-list-wrapper/snippets.ts +18 -0
- package/lowcode/form-item-tabs/meta.ts +172 -0
- package/lowcode/pisell-floor-map-layout/meta.ts +5599 -0
- package/lowcode/pisell-hierarchical-summary-list/meta.ts +240 -0
- package/lowcode/pisell-reservation-schedule/index.ts +3 -0
- package/lowcode/pisell-reservation-schedule/meta.ts +69 -0
- package/lowcode/pisell-reservation-schedule/snippets.ts +1 -0
- package/lowcode/pisell-reservation-schedule-band/index.ts +3 -0
- package/lowcode/pisell-reservation-schedule-band/meta.ts +96 -0
- package/lowcode/pisell-reservation-schedule-band/snippets.ts +1 -0
- package/lowcode/pisell-time-navigator/index.ts +3 -0
- package/lowcode/pisell-time-navigator/meta.ts +298 -0
- package/lowcode/pisell-time-navigator/snippets.ts +1 -0
- package/lowcode/render-figma-style-round-table-card/meta.ts +589 -0
- package/lowcode/render-figma-style-table-card/meta.ts +589 -0
- package/package.json +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Row } from './Row';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/pisellHierarchicalSummaryList/components/index.tsx
|
|
20
|
+
var components_exports = {};
|
|
21
|
+
__export(components_exports, {
|
|
22
|
+
Row: () => import_Row.Row
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(components_exports);
|
|
25
|
+
var import_Row = require("./Row");
|
|
26
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
27
|
+
0 && (module.exports = {
|
|
28
|
+
Row
|
|
29
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/pisellHierarchicalSummaryList/hooks/index.ts
|
|
20
|
+
var hooks_exports = {};
|
|
21
|
+
__export(hooks_exports, {
|
|
22
|
+
useExpandedKeys: () => import_useExpandedKeys.useExpandedKeys
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(hooks_exports);
|
|
25
|
+
var import_useExpandedKeys = require("./useExpandedKeys");
|
|
26
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
27
|
+
0 && (module.exports = {
|
|
28
|
+
useExpandedKeys
|
|
29
|
+
});
|
|
@@ -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,49 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.ts
|
|
20
|
+
var useExpandedKeys_exports = {};
|
|
21
|
+
__export(useExpandedKeys_exports, {
|
|
22
|
+
useExpandedKeys: () => useExpandedKeys
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(useExpandedKeys_exports);
|
|
25
|
+
var import_react = require("react");
|
|
26
|
+
function useExpandedKeys(options) {
|
|
27
|
+
const { expandedKeys, defaultExpandedKeys, onExpandedKeysChange } = options;
|
|
28
|
+
const [inner, setInner] = (0, import_react.useState)(defaultExpandedKeys ?? []);
|
|
29
|
+
const merged = expandedKeys ?? inner;
|
|
30
|
+
const setExpandedKeys = (0, import_react.useCallback)(
|
|
31
|
+
(next) => {
|
|
32
|
+
onExpandedKeysChange == null ? void 0 : onExpandedKeysChange(next);
|
|
33
|
+
if (expandedKeys === void 0) {
|
|
34
|
+
setInner(next);
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
[expandedKeys, onExpandedKeysChange]
|
|
38
|
+
);
|
|
39
|
+
const expandedKeySet = (0, import_react.useMemo)(() => new Set(merged), [merged]);
|
|
40
|
+
return {
|
|
41
|
+
expandedKeys: merged,
|
|
42
|
+
expandedKeySet,
|
|
43
|
+
setExpandedKeys
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
useExpandedKeys
|
|
49
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/pisellHierarchicalSummaryList/index.tsx
|
|
20
|
+
var pisellHierarchicalSummaryList_exports = {};
|
|
21
|
+
__export(pisellHierarchicalSummaryList_exports, {
|
|
22
|
+
HIERARCHICAL_SUMMARY_LIST_PREFIX_CLS: () => import_PisellHierarchicalSummaryList.PREFIX_CLS,
|
|
23
|
+
PisellHierarchicalSummaryList: () => import_PisellHierarchicalSummaryList.PisellHierarchicalSummaryList
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(pisellHierarchicalSummaryList_exports);
|
|
26
|
+
var import_PisellHierarchicalSummaryList = require("./PisellHierarchicalSummaryList");
|
|
27
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
+
0 && (module.exports = {
|
|
29
|
+
HIERARCHICAL_SUMMARY_LIST_PREFIX_CLS,
|
|
30
|
+
PisellHierarchicalSummaryList
|
|
31
|
+
});
|
|
@@ -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,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/components/pisellHierarchicalSummaryList/types.ts
|
|
16
|
+
var types_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(types_exports);
|
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import type { RecordBoardProps } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* RecordBoard 容器:提供统一的 data / pagination / search 上下文。
|
|
5
|
-
*
|
|
5
|
+
* 打散 props:列表/分页/搜索/多选、grid/toolBar/…;可选根级 **floorMap**(兼容透传)。
|
|
6
|
+
* 平面图推荐在 ShellFrame 内使用 **PisellRecordBoard.FloorMap** 声明,与根级 `floorMap` 合并(子优先)。
|
|
6
7
|
*/
|
|
7
8
|
declare const PisellRecordBoard: React.FC<RecordBoardProps>;
|
|
8
9
|
export default PisellRecordBoard;
|
|
@@ -37,6 +37,15 @@ var import_utils = require("@pisell/utils");
|
|
|
37
37
|
var import_RecordBoardProvider = require("./context/RecordBoardProvider");
|
|
38
38
|
var import_recordBoardColumns = require("./utils/recordBoardColumns");
|
|
39
39
|
var defaultPagination = { pageNumber: 1, pageSize: 50 };
|
|
40
|
+
function readBodyViewFromStorage(key, fallback) {
|
|
41
|
+
if (typeof window === "undefined" || !key) return fallback;
|
|
42
|
+
try {
|
|
43
|
+
const raw = localStorage.getItem(key);
|
|
44
|
+
if (raw === "grid" || raw === "floorMap") return raw;
|
|
45
|
+
} catch {
|
|
46
|
+
}
|
|
47
|
+
return fallback;
|
|
48
|
+
}
|
|
40
49
|
function mergeChildComponentProps(props) {
|
|
41
50
|
const hasAny = props.grid != null || props.toolBar != null || props.search != null || props.paginationConfig != null || props.batchActionBar != null || props.cardList != null;
|
|
42
51
|
if (!hasAny) return void 0;
|
|
@@ -75,7 +84,17 @@ function getDefaultRecordBoardContext(layoutType, selection, rowKey) {
|
|
|
75
84
|
scrollAreaHeight: null,
|
|
76
85
|
setScrollAreaHeight: void 0,
|
|
77
86
|
filterResetKey: void 0,
|
|
78
|
-
setFilterResetKey: void 0
|
|
87
|
+
setFilterResetKey: void 0,
|
|
88
|
+
bodyView: "grid",
|
|
89
|
+
setBodyView: () => {
|
|
90
|
+
},
|
|
91
|
+
floorMapProps: void 0,
|
|
92
|
+
floorMapLayoutContext: void 0,
|
|
93
|
+
defaultBodyView: void 0,
|
|
94
|
+
floorMapLayoutRef: void 0,
|
|
95
|
+
floorMapFooter: void 0,
|
|
96
|
+
dataSources: void 0,
|
|
97
|
+
gridDataSourceKey: void 0
|
|
79
98
|
};
|
|
80
99
|
}
|
|
81
100
|
var PisellRecordBoard = (props) => {
|
|
@@ -84,6 +103,8 @@ var PisellRecordBoard = (props) => {
|
|
|
84
103
|
layoutType = "grid",
|
|
85
104
|
rowKey: rowKeyProp,
|
|
86
105
|
data: dataProp,
|
|
106
|
+
dataSources: dataSourcesProp,
|
|
107
|
+
gridDataSourceKey: gridDataSourceKeyProp,
|
|
87
108
|
loading: loadingProp,
|
|
88
109
|
total: totalProp,
|
|
89
110
|
pagination: paginationProp,
|
|
@@ -91,6 +112,14 @@ var PisellRecordBoard = (props) => {
|
|
|
91
112
|
searchParams: searchParamsProp,
|
|
92
113
|
onSearch: onSearchProp,
|
|
93
114
|
onReset: onResetProp,
|
|
115
|
+
floorMap: floorMapProp,
|
|
116
|
+
floorMapLayoutContext: floorMapLayoutContextProp,
|
|
117
|
+
defaultBodyView,
|
|
118
|
+
bodyViewStorageKey,
|
|
119
|
+
floorMapLayoutRef,
|
|
120
|
+
floorMapFooter,
|
|
121
|
+
className: classNameProp,
|
|
122
|
+
style: styleProp,
|
|
94
123
|
...rest
|
|
95
124
|
} = props;
|
|
96
125
|
const fillHeight = true;
|
|
@@ -112,6 +141,22 @@ var PisellRecordBoard = (props) => {
|
|
|
112
141
|
const [internalSelectedRows, setInternalSelectedRows] = (0, import_react.useState)([]);
|
|
113
142
|
const [scrollAreaHeight, setScrollAreaHeight] = (0, import_react.useState)(null);
|
|
114
143
|
const [filterResetKey, setFilterResetKey] = (0, import_react.useState)(0);
|
|
144
|
+
const [bodyView, setBodyViewState] = (0, import_react.useState)(() => {
|
|
145
|
+
const fallback = defaultBodyView === "floorMap" ? "floorMap" : "grid";
|
|
146
|
+
return readBodyViewFromStorage(bodyViewStorageKey, fallback);
|
|
147
|
+
});
|
|
148
|
+
const setBodyView = (0, import_react.useCallback)(
|
|
149
|
+
(v) => {
|
|
150
|
+
setBodyViewState(v);
|
|
151
|
+
if (typeof window !== "undefined" && bodyViewStorageKey) {
|
|
152
|
+
try {
|
|
153
|
+
localStorage.setItem(bodyViewStorageKey, v);
|
|
154
|
+
} catch {
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
[bodyViewStorageKey]
|
|
159
|
+
);
|
|
115
160
|
const [internalColumnVisibility, setInternalColumnVisibility] = (0, import_react.useState)(() => {
|
|
116
161
|
var _a, _b;
|
|
117
162
|
const fromConfig = ((_a = props.grid) == null ? void 0 : _a.defaultHiddenColumnKeys) ?? [];
|
|
@@ -182,10 +227,24 @@ var PisellRecordBoard = (props) => {
|
|
|
182
227
|
},
|
|
183
228
|
rowKeyProp
|
|
184
229
|
);
|
|
185
|
-
const data = dataProp !== void 0 ? dataProp : defaultCtx.data;
|
|
186
|
-
const loading = loadingProp !== void 0 ? loadingProp : defaultCtx.loading;
|
|
187
|
-
const total = totalProp !== void 0 ? totalProp : defaultCtx.total;
|
|
188
230
|
const pagination = paginationProp !== void 0 ? paginationProp : defaultCtx.pagination;
|
|
231
|
+
let data;
|
|
232
|
+
let total;
|
|
233
|
+
if (dataProp !== void 0) {
|
|
234
|
+
data = dataProp;
|
|
235
|
+
total = totalProp !== void 0 ? totalProp : defaultCtx.total;
|
|
236
|
+
} else if (dataSourcesProp != null && gridDataSourceKeyProp != null && gridDataSourceKeyProp !== "") {
|
|
237
|
+
const raw = dataSourcesProp[gridDataSourceKeyProp] ?? [];
|
|
238
|
+
total = totalProp !== void 0 ? totalProp : raw.length;
|
|
239
|
+
const { pageNumber, pageSize } = pagination;
|
|
240
|
+
const safeSize = Math.max(1, pageSize);
|
|
241
|
+
const start = Math.max(0, (pageNumber - 1) * safeSize);
|
|
242
|
+
data = raw.slice(start, start + safeSize);
|
|
243
|
+
} else {
|
|
244
|
+
data = defaultCtx.data;
|
|
245
|
+
total = totalProp !== void 0 ? totalProp : defaultCtx.total;
|
|
246
|
+
}
|
|
247
|
+
const loading = loadingProp !== void 0 ? loadingProp : defaultCtx.loading;
|
|
189
248
|
const onPageChange = onPageChangeProp ?? defaultCtx.onPageChange;
|
|
190
249
|
const searchParams = searchParamsProp !== void 0 ? searchParamsProp : defaultCtx.searchParams;
|
|
191
250
|
const onSearch = onSearchProp ?? defaultCtx.onSearch;
|
|
@@ -200,6 +259,8 @@ var PisellRecordBoard = (props) => {
|
|
|
200
259
|
...defaultCtx,
|
|
201
260
|
layoutType,
|
|
202
261
|
rowKey,
|
|
262
|
+
dataSources: dataSourcesProp,
|
|
263
|
+
gridDataSourceKey: gridDataSourceKeyProp,
|
|
203
264
|
data,
|
|
204
265
|
loading,
|
|
205
266
|
total,
|
|
@@ -220,12 +281,21 @@ var PisellRecordBoard = (props) => {
|
|
|
220
281
|
scrollAreaHeight,
|
|
221
282
|
setScrollAreaHeight,
|
|
222
283
|
filterResetKey,
|
|
223
|
-
setFilterResetKey
|
|
284
|
+
setFilterResetKey,
|
|
285
|
+
bodyView,
|
|
286
|
+
setBodyView,
|
|
287
|
+
floorMapProps: floorMapProp,
|
|
288
|
+
floorMapLayoutContext: floorMapLayoutContextProp,
|
|
289
|
+
defaultBodyView,
|
|
290
|
+
floorMapLayoutRef,
|
|
291
|
+
floorMapFooter
|
|
224
292
|
};
|
|
225
293
|
}, [
|
|
226
294
|
layoutType,
|
|
227
295
|
rowKeyProp,
|
|
228
296
|
dataProp,
|
|
297
|
+
dataSourcesProp,
|
|
298
|
+
gridDataSourceKeyProp,
|
|
229
299
|
loadingProp,
|
|
230
300
|
totalProp,
|
|
231
301
|
paginationProp,
|
|
@@ -243,18 +313,26 @@ var PisellRecordBoard = (props) => {
|
|
|
243
313
|
onColumnOrderChangeInternal,
|
|
244
314
|
fillHeight,
|
|
245
315
|
scrollAreaHeight,
|
|
246
|
-
filterResetKey
|
|
316
|
+
filterResetKey,
|
|
317
|
+
floorMapProp,
|
|
318
|
+
floorMapLayoutContextProp,
|
|
319
|
+
defaultBodyView,
|
|
320
|
+
floorMapLayoutRef,
|
|
321
|
+
floorMapFooter,
|
|
322
|
+
bodyView,
|
|
323
|
+
setBodyView
|
|
247
324
|
]);
|
|
248
325
|
const content = /* @__PURE__ */ import_react.default.createElement(import_RecordBoardProvider.RecordBoardProvider, { value: contextValue }, children);
|
|
249
326
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
250
327
|
"div",
|
|
251
328
|
{
|
|
252
|
-
className: "pisell-record-board-root",
|
|
329
|
+
className: classNameProp ? `pisell-record-board-root ${classNameProp}` : "pisell-record-board-root",
|
|
253
330
|
style: {
|
|
254
331
|
height: "100%",
|
|
255
332
|
display: "flex",
|
|
256
333
|
flexDirection: "column",
|
|
257
|
-
minHeight: 0
|
|
334
|
+
minHeight: 0,
|
|
335
|
+
...styleProp
|
|
258
336
|
}
|
|
259
337
|
},
|
|
260
338
|
content
|
|
@@ -3,6 +3,10 @@ import PisellRecordBoard from './index';
|
|
|
3
3
|
declare const meta: Meta<typeof PisellRecordBoard>;
|
|
4
4
|
export default meta;
|
|
5
5
|
declare type Story = StoryObj<typeof PisellRecordBoard>;
|
|
6
|
+
/**
|
|
7
|
+
* **默认 Story**:餐厅 **多数据源**——**餐桌** + **蘸料摆台**;根级 `dataSources` 同时包含两者;**表格只绑定餐桌一路**(`gridDataSourceKey`);平面图同时渲染两类落位,无需 Segmented 切换列表。
|
|
8
|
+
*/
|
|
9
|
+
export declare const Default: Story;
|
|
6
10
|
/**
|
|
7
11
|
* Grid 布局 - 带 Table、分页、多选;列 type 驱动列/筛选/排序;筛选在 Filter 弹层内;重置清空筛选与排序。
|
|
8
12
|
*/
|