@pisell/materials 6.11.55 → 6.11.56
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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/drawer/index.js +12 -5
- package/lib/components/drawer/index.js +10 -4
- package/lowcode/pisell-record-board-calendar-view/meta.ts +1 -1
- package/package.json +3 -3
- package/es/components/Pagination/index.d.ts +0 -14
- package/es/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
- package/es/components/PisellLayouts/index.d.ts +0 -37
- package/es/components/PisellSteps/PisellSteps.d.ts +0 -14
- package/es/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
- package/es/components/PisellSuperTabs/hooks/useTabsState.d.ts +0 -7
- package/es/components/PisellSuperTabs/types.d.ts +0 -212
- package/es/components/PisellTabbar/PisellTabbar.d.ts +0 -20
- package/es/components/PisellTabbar/constants.d.ts +0 -47
- package/es/components/PisellTabbar/hooks/useActiveKey.d.ts +0 -55
- package/es/components/PisellTabbar/hooks/useExpand.d.ts +0 -42
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -5
- package/es/components/PisellTabbar/template/Template1/constants.d.ts +0 -10
- package/es/components/PisellTabbar/types.d.ts +0 -90
- package/es/components/PisellTabbar/utils/index.d.ts +0 -69
- package/es/components/cardPro/index.d.ts +0 -4
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -18
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
- package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -201
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -35
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +0 -8
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -26
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -27
- package/es/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -121
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
- package/es/components/filter/components/FilterItem/index.d.ts +0 -5
- package/es/components/filter/components/QuickFilter/index.d.ts +0 -12
- package/es/components/iconfont/index.d.ts +0 -8
- package/es/components/page/index.d.ts +0 -9
- package/es/components/pisell-config-provider/context.d.ts +0 -22
- package/es/components/pisell-config-provider/index.d.ts +0 -13
- package/es/components/pisellAdjustPrice/index.d.ts +0 -5
- package/es/components/pisellAdjustPrice/status.d.ts +0 -32
- package/es/components/pisellAdjustPrice/type.d.ts +0 -22
- package/es/components/pisellCardList/index.d.ts +0 -107
- package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/es/components/pisellDataSourceContainer/components/Pagination/index.d.ts +0 -6
- package/es/components/pisellFilter/index.d.ts +0 -4
- package/es/components/pisellFilter/type.d.ts +0 -7
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +0 -13
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +0 -55
- package/es/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +0 -46
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +0 -43
- package/es/components/pisellFloorMapLayout/components/FloorMapDataForm.d.ts +0 -21
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +0 -14
- package/es/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -24
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +0 -60
- package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -9
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +0 -35
- package/es/components/pisellFloorMapLayout/components/HistoryIcons.d.ts +0 -39
- package/es/components/pisellFloorMapLayout/components/ItemLayer.d.ts +0 -57
- package/es/components/pisellFloorMapLayout/components/MapLayer.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/components/ViewControls.d.ts +0 -55
- package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +0 -25
- package/es/components/pisellFloorMapLayout/components/index.d.ts +0 -21
- package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +0 -16
- package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +0 -5
- package/es/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +0 -4
- package/es/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.d.ts +0 -25
- package/es/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.d.ts +0 -18
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -71
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +0 -21
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +0 -89
- package/es/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +0 -19
- package/es/components/pisellFloorMapLayout/index.d.ts +0 -26
- package/es/components/pisellFloorMapLayout/locales-ja.d.ts +0 -133
- package/es/components/pisellFloorMapLayout/locales-pt.d.ts +0 -133
- package/es/components/pisellFloorMapLayout/locales.d.ts +0 -651
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +0 -10
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanMapping.d.ts +0 -18
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +0 -22
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -72
- package/es/components/pisellFloorMapLayout/types.d.ts +0 -646
- package/es/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +0 -20
- package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +0 -8
- package/es/components/pisellFloorMapLayout/utils/floorMapDataBindingUtils.d.ts +0 -21
- package/es/components/pisellFloorMapLayout/utils/floorMapDataRecordLabel.d.ts +0 -8
- package/es/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +0 -22
- package/es/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +0 -50
- package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +0 -11
- package/es/components/pisellFloorMapLayout/utils/floorMapRemotePersist.d.ts +0 -17
- package/es/components/pisellFloorMapLayout/utils/floorMapStageDefaults.d.ts +0 -8
- package/es/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +0 -8
- package/es/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +0 -30
- package/es/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +0 -7
- package/es/components/pisellFloorMapLayout/utils/snap.d.ts +0 -10
- package/es/components/pisellGoodPassCard/index.d.ts +0 -50
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +0 -6
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +0 -10
- package/es/components/pisellHierarchicalSummaryList/components/Row.d.ts +0 -35
- package/es/components/pisellHierarchicalSummaryList/components/index.d.ts +0 -1
- package/es/components/pisellHierarchicalSummaryList/hooks/index.d.ts +0 -2
- package/es/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +0 -15
- package/es/components/pisellHierarchicalSummaryList/index.d.ts +0 -5
- package/es/components/pisellHierarchicalSummaryList/types.d.ts +0 -248
- package/es/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
- package/es/components/pisellModal/index.d.ts +0 -62
- package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
- package/es/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +0 -89
- package/es/components/pisellRecordBoard/index.d.ts +0 -51
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +0 -9
- package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +0 -11
- package/es/components/pisellRecordBoard/shellFrame/Calendar/RecordBoardCalendar.d.ts +0 -8
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +0 -26
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.d.ts +0 -4
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +0 -18
- package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +0 -49
- package/es/components/pisellRecordBoard/shellFrame/Calendar/index.d.ts +0 -7
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.d.ts +0 -17
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +0 -17
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +0 -10
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +0 -232
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.d.ts +0 -13
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +0 -53
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.d.ts +0 -23
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +0 -18
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +0 -27
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.d.ts +0 -12
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +0 -8
- package/es/components/pisellRecordBoard/shellFrame/FloorMap.d.ts +0 -14
- package/es/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +0 -14
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.d.ts +0 -14
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +0 -12
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +0 -8
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +0 -50
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.d.ts +0 -17
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.d.ts +0 -28
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.d.ts +0 -18
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +0 -22
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.d.ts +0 -2
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.d.ts +0 -58
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +0 -64
- package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +0 -24
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +0 -12
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.d.ts +0 -8
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.d.ts +0 -13
- package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +0 -17
- package/es/components/pisellRecordBoard/shellFrame/index.d.ts +0 -30
- package/es/components/pisellRecordBoard/types.d.ts +0 -802
- package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +0 -23
- package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +0 -52
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +0 -10
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.stories.d.ts +0 -12
- package/es/components/pisellReservationSchedule/index.d.ts +0 -2
- package/es/components/pisellReservationSchedule/locales.d.ts +0 -43
- package/es/components/pisellReservationSchedule/types.d.ts +0 -52
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +0 -10
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +0 -16
- package/es/components/pisellReservationScheduleBand/index.d.ts +0 -2
- package/es/components/pisellReservationScheduleBand/types.d.ts +0 -61
- package/es/components/pisellShellFrame/PisellShellFrame.d.ts +0 -13
- package/es/components/pisellShellFrame/types.d.ts +0 -62
- package/es/components/pisellText/components/Amount/index.d.ts +0 -20
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +0 -10
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +0 -79
- package/es/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +0 -14
- package/es/components/pisellTimeNavigator/components/CursorLayer.d.ts +0 -27
- package/es/components/pisellTimeNavigator/components/GestureLayer.d.ts +0 -41
- package/es/components/pisellTimeNavigator/components/NowButton.d.ts +0 -14
- package/es/components/pisellTimeNavigator/components/ScaleLayer.d.ts +0 -22
- package/es/components/pisellTimeNavigator/components/index.d.ts +0 -5
- package/es/components/pisellTimeNavigator/hooks/index.d.ts +0 -5
- package/es/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +0 -14
- package/es/components/pisellTimeNavigator/hooks/useRealtime.d.ts +0 -5
- package/es/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +0 -27
- package/es/components/pisellTimeNavigator/index.d.ts +0 -5
- package/es/components/pisellTimeNavigator/locales.d.ts +0 -22
- package/es/components/pisellTimeNavigator/timeNavigatorConstants.d.ts +0 -20
- package/es/components/pisellTimeNavigator/types.d.ts +0 -160
- package/es/components/pisellTimeNavigator/utils/index.d.ts +0 -41
- package/es/components/pisellToast/index.d.ts +0 -17
- package/es/components/pisellToast/squareToast/index.d.ts +0 -15
- package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
- package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/es/components/pisellWalletPassCard/index.d.ts +0 -146
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -5
- package/es/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -7
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -12
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -13
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -22
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -9
- package/es/components/productCard/cartSkuCard/components/weighing/index.d.ts +0 -19
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -11
- package/es/components/productCard/cartSkuCard/locales.d.ts +0 -198
- package/es/components/productCard/components/Action/index.d.ts +0 -4
- package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -4
- package/es/components/productCard/components/Header/index.d.ts +0 -4
- package/es/components/productCard/components/Sales/index.d.ts +0 -4
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -3
- package/es/components/productCard/index.d.ts +0 -7
- package/es/components/productCard/locales.d.ts +0 -138
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -95
- package/es/components/productCard/utils.d.ts +0 -33
- package/es/components/select-time/index.d.ts +0 -14
- package/es/components/sort/index.d.ts +0 -5
- package/es/components/table/Table/AddFieldModal/index.d.ts +0 -4
- package/es/components/table/index.d.ts +0 -4
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -6
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -6
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/es/components/virtual-keyboard/index.d.ts +0 -25
- package/es/index.d.ts +0 -265
- package/es/locales/en-US.d.ts +0 -560
- package/es/locales/ja.d.ts +0 -528
- package/es/locales/pt.d.ts +0 -528
- package/es/locales/zh-CN.d.ts +0 -555
- package/es/locales/zh-TW.d.ts +0 -555
- package/lib/components/Pagination/index.d.ts +0 -14
- package/lib/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
- package/lib/components/PisellLayouts/index.d.ts +0 -37
- package/lib/components/PisellSteps/PisellSteps.d.ts +0 -14
- package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
- package/lib/components/PisellSuperTabs/hooks/useTabsState.d.ts +0 -7
- package/lib/components/PisellSuperTabs/types.d.ts +0 -212
- package/lib/components/PisellTabbar/PisellTabbar.d.ts +0 -20
- package/lib/components/PisellTabbar/constants.d.ts +0 -47
- package/lib/components/PisellTabbar/hooks/useActiveKey.d.ts +0 -55
- package/lib/components/PisellTabbar/hooks/useExpand.d.ts +0 -42
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -5
- package/lib/components/PisellTabbar/template/Template1/constants.d.ts +0 -10
- package/lib/components/PisellTabbar/types.d.ts +0 -90
- package/lib/components/PisellTabbar/utils/index.d.ts +0 -69
- package/lib/components/cardPro/index.d.ts +0 -4
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -18
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
- package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -201
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -35
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +0 -8
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -26
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -27
- package/lib/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -121
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
- package/lib/components/filter/components/FilterItem/index.d.ts +0 -5
- package/lib/components/filter/components/QuickFilter/index.d.ts +0 -12
- package/lib/components/iconfont/index.d.ts +0 -8
- package/lib/components/page/index.d.ts +0 -9
- package/lib/components/pisell-config-provider/context.d.ts +0 -22
- package/lib/components/pisell-config-provider/index.d.ts +0 -13
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -5
- package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
- package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
- package/lib/components/pisellCardList/index.d.ts +0 -107
- package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/lib/components/pisellDataSourceContainer/components/Pagination/index.d.ts +0 -6
- package/lib/components/pisellFilter/index.d.ts +0 -4
- package/lib/components/pisellFilter/type.d.ts +0 -7
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +0 -13
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +0 -55
- package/lib/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +0 -46
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +0 -43
- package/lib/components/pisellFloorMapLayout/components/FloorMapDataForm.d.ts +0 -21
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +0 -14
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -24
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +0 -60
- package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -9
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +0 -35
- package/lib/components/pisellFloorMapLayout/components/HistoryIcons.d.ts +0 -39
- package/lib/components/pisellFloorMapLayout/components/ItemLayer.d.ts +0 -57
- package/lib/components/pisellFloorMapLayout/components/MapLayer.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/components/ViewControls.d.ts +0 -55
- package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +0 -25
- package/lib/components/pisellFloorMapLayout/components/index.d.ts +0 -21
- package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +0 -16
- package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +0 -5
- package/lib/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +0 -4
- package/lib/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.d.ts +0 -25
- package/lib/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.d.ts +0 -18
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -71
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +0 -21
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +0 -89
- package/lib/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +0 -19
- package/lib/components/pisellFloorMapLayout/index.d.ts +0 -26
- package/lib/components/pisellFloorMapLayout/locales-ja.d.ts +0 -133
- package/lib/components/pisellFloorMapLayout/locales-pt.d.ts +0 -133
- package/lib/components/pisellFloorMapLayout/locales.d.ts +0 -651
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +0 -10
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanMapping.d.ts +0 -18
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +0 -22
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -72
- package/lib/components/pisellFloorMapLayout/types.d.ts +0 -646
- package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +0 -20
- package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +0 -8
- package/lib/components/pisellFloorMapLayout/utils/floorMapDataBindingUtils.d.ts +0 -21
- package/lib/components/pisellFloorMapLayout/utils/floorMapDataRecordLabel.d.ts +0 -8
- package/lib/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +0 -22
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +0 -50
- package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +0 -11
- package/lib/components/pisellFloorMapLayout/utils/floorMapRemotePersist.d.ts +0 -17
- package/lib/components/pisellFloorMapLayout/utils/floorMapStageDefaults.d.ts +0 -8
- package/lib/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +0 -8
- package/lib/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +0 -30
- package/lib/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +0 -7
- package/lib/components/pisellFloorMapLayout/utils/snap.d.ts +0 -10
- package/lib/components/pisellGoodPassCard/index.d.ts +0 -50
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +0 -6
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +0 -10
- package/lib/components/pisellHierarchicalSummaryList/components/Row.d.ts +0 -35
- package/lib/components/pisellHierarchicalSummaryList/components/index.d.ts +0 -1
- package/lib/components/pisellHierarchicalSummaryList/hooks/index.d.ts +0 -2
- package/lib/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +0 -15
- package/lib/components/pisellHierarchicalSummaryList/index.d.ts +0 -5
- package/lib/components/pisellHierarchicalSummaryList/types.d.ts +0 -248
- package/lib/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
- package/lib/components/pisellModal/index.d.ts +0 -62
- package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
- package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +0 -89
- package/lib/components/pisellRecordBoard/index.d.ts +0 -51
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +0 -9
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +0 -11
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/RecordBoardCalendar.d.ts +0 -8
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +0 -26
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.d.ts +0 -4
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +0 -18
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +0 -49
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/index.d.ts +0 -7
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.d.ts +0 -17
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +0 -17
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +0 -10
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +0 -232
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.d.ts +0 -13
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +0 -53
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.d.ts +0 -23
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +0 -18
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +0 -27
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.d.ts +0 -12
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +0 -8
- package/lib/components/pisellRecordBoard/shellFrame/FloorMap.d.ts +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.d.ts +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +0 -12
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +0 -8
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +0 -50
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.d.ts +0 -17
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.d.ts +0 -28
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.d.ts +0 -18
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +0 -22
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.d.ts +0 -2
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.d.ts +0 -58
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +0 -64
- package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +0 -24
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +0 -12
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.d.ts +0 -8
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.d.ts +0 -13
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +0 -17
- package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +0 -30
- package/lib/components/pisellRecordBoard/types.d.ts +0 -802
- package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +0 -23
- package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +0 -52
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +0 -10
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.stories.d.ts +0 -12
- package/lib/components/pisellReservationSchedule/index.d.ts +0 -2
- package/lib/components/pisellReservationSchedule/locales.d.ts +0 -43
- package/lib/components/pisellReservationSchedule/types.d.ts +0 -52
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +0 -10
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +0 -16
- package/lib/components/pisellReservationScheduleBand/index.d.ts +0 -2
- package/lib/components/pisellReservationScheduleBand/types.d.ts +0 -61
- package/lib/components/pisellShellFrame/PisellShellFrame.d.ts +0 -13
- package/lib/components/pisellShellFrame/types.d.ts +0 -62
- package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +0 -10
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +0 -79
- package/lib/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +0 -14
- package/lib/components/pisellTimeNavigator/components/CursorLayer.d.ts +0 -27
- package/lib/components/pisellTimeNavigator/components/GestureLayer.d.ts +0 -41
- package/lib/components/pisellTimeNavigator/components/NowButton.d.ts +0 -14
- package/lib/components/pisellTimeNavigator/components/ScaleLayer.d.ts +0 -22
- package/lib/components/pisellTimeNavigator/components/index.d.ts +0 -5
- package/lib/components/pisellTimeNavigator/hooks/index.d.ts +0 -5
- package/lib/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +0 -14
- package/lib/components/pisellTimeNavigator/hooks/useRealtime.d.ts +0 -5
- package/lib/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +0 -27
- package/lib/components/pisellTimeNavigator/index.d.ts +0 -5
- package/lib/components/pisellTimeNavigator/locales.d.ts +0 -22
- package/lib/components/pisellTimeNavigator/timeNavigatorConstants.d.ts +0 -20
- package/lib/components/pisellTimeNavigator/types.d.ts +0 -160
- package/lib/components/pisellTimeNavigator/utils/index.d.ts +0 -41
- package/lib/components/pisellToast/index.d.ts +0 -17
- package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
- package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
- package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -146
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -5
- package/lib/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -7
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -12
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -13
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -22
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -9
- package/lib/components/productCard/cartSkuCard/components/weighing/index.d.ts +0 -19
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -11
- package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -198
- package/lib/components/productCard/components/Action/index.d.ts +0 -4
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -4
- package/lib/components/productCard/components/Header/index.d.ts +0 -4
- package/lib/components/productCard/components/Sales/index.d.ts +0 -4
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -3
- package/lib/components/productCard/index.d.ts +0 -7
- package/lib/components/productCard/locales.d.ts +0 -138
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -95
- package/lib/components/productCard/utils.d.ts +0 -33
- package/lib/components/select-time/index.d.ts +0 -14
- package/lib/components/sort/index.d.ts +0 -5
- package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -4
- package/lib/components/table/index.d.ts +0 -4
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -6
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -6
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/lib/components/virtual-keyboard/index.d.ts +0 -25
- package/lib/index.d.ts +0 -265
- package/lib/locales/en-US.d.ts +0 -560
- package/lib/locales/ja.d.ts +0 -528
- package/lib/locales/pt.d.ts +0 -528
- package/lib/locales/zh-CN.d.ts +0 -555
- package/lib/locales/zh-TW.d.ts +0 -555
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { FloorMapDataSources, FloorMapMergedItem } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* 数据源行:平面图 dataSources 列表项至少含 `id`(与 {@link FloorMapSceneElementDataBinding.recordId} 对应)。
|
|
4
|
-
*/
|
|
5
|
-
export declare type FloorMapDataSourceRow = {
|
|
6
|
-
id: string;
|
|
7
|
-
[key: string]: unknown;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* 按画布图元上的 `dataBinding` 在 `dataSources[dataSourceKey]` 中查找对应行。
|
|
11
|
-
* 与 private-materials 预约 `findReservationRow` 算法一致:`recordId` 与行的 `id` 均按字符串比较。
|
|
12
|
-
*/
|
|
13
|
-
export declare function findFloorMapRowByDataBinding<T extends FloorMapDataSourceRow>(item: FloorMapMergedItem, dataSources: FloorMapDataSources): T | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* 当 {@link findFloorMapRowByDataBinding} 无结果时,占位卡可据此选择文案(业务层自行 i18n)。
|
|
16
|
-
*/
|
|
17
|
-
export declare type FloorMapBindingPlaceholderReason = 'missing_data_source_key' | 'missing_record_id' | 'new_unsaved_slot' | 'record_not_in_list';
|
|
18
|
-
/**
|
|
19
|
-
* 若已能解析到数据源行则返回 `null`;否则返回占位原因(不含文案,便于各业务映射 locales)。
|
|
20
|
-
*/
|
|
21
|
-
export declare function getFloorMapBindingPlaceholderReason(item: FloorMapMergedItem, dataSources: FloorMapDataSources): FloorMapBindingPlaceholderReason | null;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 平面图编辑态:侧栏图元拖拽到画布的 DataTransfer 与坐标
|
|
3
|
-
*/
|
|
4
|
-
/** 与 setData 一致,用于识别左侧图元栏发起的拖拽 */
|
|
5
|
-
export declare const FLOOR_MAP_PALETTE_DRAG_MIME = "application/x-pisell-floor-map-element";
|
|
6
|
-
export interface FloorMapPaletteDragPayload {
|
|
7
|
-
elementKind: string;
|
|
8
|
-
dataSourceKey?: string;
|
|
9
|
-
recordId?: string;
|
|
10
|
-
recordIds?: string[];
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* 与 {@link useFloorMapEditState} 落点一致:内容区 drop 的 offset 减去内容区 padding 偏移
|
|
14
|
-
*/
|
|
15
|
-
export declare function sceneXYFromContentDropOffset(offsetX: number, offsetY: number, contentOffset: {
|
|
16
|
-
x: number;
|
|
17
|
-
y: number;
|
|
18
|
-
}): {
|
|
19
|
-
x: number;
|
|
20
|
-
y: number;
|
|
21
|
-
};
|
|
22
|
-
/** 是否为左侧图元栏拖拽(非本地文件 / 外链图片) */
|
|
23
|
-
export declare function isFloorMapPaletteDrag(dt: DataTransfer | null): boolean;
|
|
24
|
-
/**
|
|
25
|
-
* 解析侧栏拖拽 payload;非法时返回 null
|
|
26
|
-
*/
|
|
27
|
-
export declare function parsePaletteDragPayload(dt: DataTransfer): FloorMapPaletteDragPayload | null;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 图元种类解析与绑定展示前校验(供合并项渲染、工具栏逻辑复用)
|
|
3
|
-
*/
|
|
4
|
-
import type { FloorMapElementKindConfig, FloorMapViewConfig, FloorMapSceneElement, FloorMapDataSources, FloorMapElementDataBindingPolicy } from '../types';
|
|
5
|
-
/** 与 RecordBoard Story 一致:`floorMapImage` */
|
|
6
|
-
export declare function isFloorMapImageElementKind(kind: string | undefined): boolean;
|
|
7
|
-
/** dataBindingPolicy 缺省视为 none */
|
|
8
|
-
export declare function resolveDataBindingPolicy(kind: FloorMapElementKindConfig | undefined): FloorMapElementDataBindingPolicy;
|
|
9
|
-
export declare function getElementKindConfig(config: Pick<FloorMapViewConfig, 'elementKinds'> | undefined, elementKind: string | undefined): FloorMapElementKindConfig | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* 与调色板分组一致:取与当前图元 **同一 categoryId**(含未填 categoryId 时落到首个分类)下的可切换种类,
|
|
12
|
-
* 排除舞台、底图。若仅有一种则编辑面板可不展示切换器。
|
|
13
|
-
*/
|
|
14
|
-
export declare function getSwappableElementKindsInSameCategory(config: FloorMapViewConfig, elementKind: string | undefined): FloorMapElementKindConfig[];
|
|
15
|
-
/**
|
|
16
|
-
* 在右侧编辑面板将图元改为同分类下的另一种 kind 时的草稿 patch(绑定不兼容则清空)
|
|
17
|
-
*/
|
|
18
|
-
export declare function patchSceneElementForKindSwitch(config: FloorMapViewConfig, element: FloorMapSceneElement, nextKindValue: string): Partial<FloorMapSceneElement>;
|
|
19
|
-
/**
|
|
20
|
-
* @returns 人类可读错误文案;无问题时返回 null
|
|
21
|
-
*/
|
|
22
|
-
export declare function getSceneElementRenderIssue(element: FloorMapSceneElement, kind: FloorMapElementKindConfig | undefined, dataSources: FloorMapDataSources | undefined): string | null;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 「将图元名作为资源标题」开关:通用读写 + 标题解析。
|
|
3
|
-
*
|
|
4
|
-
* - 持久化在 `sceneElement.extensions[NAME_AS_TITLE_EXT_KEY]`,避免污染顶层 schema、
|
|
5
|
-
* 不影响未启用该能力的旧 / 新 kind。
|
|
6
|
-
* - 是否在编辑面板「显示」该选项,由 `FloorMapElementKindConfig.nameAsTitleConfigurable`
|
|
7
|
-
* 控制;展示侧(业务卡片渲染)只读 extensions,不依赖 kindConfig,确保即便业务方
|
|
8
|
-
* 后续撤回 kindConfig 开关,已落库的偏好仍生效。
|
|
9
|
-
*/
|
|
10
|
-
/** 持久化字段名:固定字符串,跨包共用,勿改 */
|
|
11
|
-
export declare const NAME_AS_TITLE_EXT_KEY: "nameAsTitle";
|
|
12
|
-
interface ElementWithExtensions {
|
|
13
|
-
name?: string;
|
|
14
|
-
extensions?: Record<string, unknown>;
|
|
15
|
-
}
|
|
16
|
-
/** 安全读取「图元名作为标题」开关 */
|
|
17
|
-
export declare function isElementNameAsTitleEnabled(el: ElementWithExtensions | null | undefined): boolean;
|
|
18
|
-
/**
|
|
19
|
-
* 计算 `extensions` patch:返回值供调用方写入 `sceneElement.extensions`。
|
|
20
|
-
*
|
|
21
|
-
* - `enabled === true` 时写入 `true`;
|
|
22
|
-
* - `enabled === false` 时**移除**该 key(而非写 `false`),避免持久化里残留无意义字段;
|
|
23
|
-
* - 返回 `undefined` 表示「extensions 整体可清空」(仅当结果是空对象时)。
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* const nextExt = buildNameAsTitleExtensionsPatch(el.extensions, true);
|
|
27
|
-
* onUpdate({ extensions: nextExt });
|
|
28
|
-
*/
|
|
29
|
-
export declare function buildNameAsTitleExtensionsPatch(prev: Record<string, unknown> | undefined, enabled: boolean): Record<string, unknown> | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* 通用图元标题解析:业务展示层(卡片标题、占位标题等)统一调用本函数,
|
|
32
|
-
* 让「图元名作为资源标题」这一偏好对所有接入方一致生效。
|
|
33
|
-
*
|
|
34
|
-
* 优先级:
|
|
35
|
-
* 1. 启用了 nameAsTitle 且 `el.name` 非空 → `el.name`
|
|
36
|
-
* 2. `recordTitle`(业务侧按自己规则算出来的,如预约页 `row.main_field` / `row.code`)
|
|
37
|
-
* 3. `el.name`(业务字段缺失时的兜底,与历史行为一致)
|
|
38
|
-
* 4. `fallback`(如 kindLabel)
|
|
39
|
-
* 5. 空串
|
|
40
|
-
*
|
|
41
|
-
* 不更改 `displayRoomTitleFromRow` / `record.name` 等业务函数本身,
|
|
42
|
-
* 业务方只需把"按业务字段"算出来的结果以 `recordTitle` 传入即可,
|
|
43
|
-
* `bookingDetailModal` 等下游不会被联动改坏。
|
|
44
|
-
*/
|
|
45
|
-
export declare function resolveSceneElementDisplayTitle(opts: {
|
|
46
|
-
sceneElement?: ElementWithExtensions | null;
|
|
47
|
-
recordTitle?: string;
|
|
48
|
-
fallback?: string;
|
|
49
|
-
}): string;
|
|
50
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 无 renderItemByKind 时的占位渲染(装饰、舞台等),避免画布上不显示
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import type { FloorMapMergedItem } from '../types';
|
|
6
|
-
/**
|
|
7
|
-
* @returns 与 PisellFloorMapLayout 内联 fallback 一致的渲染函数(useCallback 由调用方包裹)
|
|
8
|
-
*/
|
|
9
|
-
/** 绑定校验失败或 renderItemByKind 抛错时的占位 */
|
|
10
|
-
export declare function renderFloorMapRenderError(message: string): React.ReactNode;
|
|
11
|
-
export declare function renderFloorMapFallbackPlaceholder(item: FloorMapMergedItem): React.ReactNode;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { FloorMapViewConfig } from '../types';
|
|
2
|
-
export declare type WrapFloorMapOnSaveWithRemotePersistParams = {
|
|
3
|
-
/** 与预约页一致:id 有效且为有限正整数 */
|
|
4
|
-
canPersist: boolean;
|
|
5
|
-
persistTargetId: number;
|
|
6
|
-
/** 写入远端(如 PUT shop floor-plan) */
|
|
7
|
-
persist: (id: number, config: FloorMapViewConfig) => Promise<unknown>;
|
|
8
|
-
/** 成功后将草稿同步到「远程补丁」状态,避免编辑态被旧 GET 覆盖 */
|
|
9
|
-
setRemoteFloorPlanView: (patch: Partial<FloorMapViewConfig>) => void;
|
|
10
|
-
onFloorPlanPersisted?: () => void;
|
|
11
|
-
prevOnSave?: (config: FloorMapViewConfig) => void;
|
|
12
|
-
onPersistError?: (err: unknown) => void;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* 将 `floorMap.onSave` 包装为:先持久化到远端,再 `setRemoteFloorPlanView(floorMapSavedConfigToRemotePatch)` 与用户 `prevOnSave`。
|
|
16
|
-
*/
|
|
17
|
-
export declare function wrapFloorMapOnSaveWithRemotePersist(params: WrapFloorMapOnSaveWithRemotePersistParams): (config: FloorMapViewConfig) => void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { FloorMapViewConfig } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* 与 {@link useFloorMapEditState} 中 `useEffect` 逻辑一致:补全 `canvasUi`、空 `elementKinds` 时的默认调色板、`sceneElements`。
|
|
4
|
-
* 用于从上游 prop 得到「可与当前 draft 公平比较」的基准配置。
|
|
5
|
-
*/
|
|
6
|
-
export declare function normalizeFloorMapViewConfigFromProp(floorMapConfigProp: FloorMapViewConfig): FloorMapViewConfig;
|
|
7
|
-
/** 判断当前编辑草稿是否与基准配置一致(数组顺序无关) */
|
|
8
|
-
export declare function floorMapViewConfigsEqual(a: FloorMapViewConfig, b: FloorMapViewConfig): boolean;
|
|
@@ -1,30 +0,0 @@
|
|
|
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;
|
|
@@ -1,7 +0,0 @@
|
|
|
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[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 吸附:将坐标或尺寸按 snapStep 取整;snapStep 为 0 不吸附
|
|
3
|
-
*/
|
|
4
|
-
export declare function snapValue(value: number, snapStep: number): number;
|
|
5
|
-
export declare function snapRect(x: number, y: number, width: number, height: number, snapStep: number): {
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
width: number;
|
|
9
|
-
height: number;
|
|
10
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface ApplicableProductDetails {
|
|
4
|
-
amount: string;
|
|
5
|
-
type: string;
|
|
6
|
-
resource_id: number;
|
|
7
|
-
title: string;
|
|
8
|
-
original_amount: string;
|
|
9
|
-
}
|
|
10
|
-
interface Discount {
|
|
11
|
-
id: number;
|
|
12
|
-
product_name: string;
|
|
13
|
-
encoded: string;
|
|
14
|
-
code: string;
|
|
15
|
-
tag: string;
|
|
16
|
-
expire_time?: string;
|
|
17
|
-
product_id: number;
|
|
18
|
-
relation_type: string;
|
|
19
|
-
par_value: string;
|
|
20
|
-
used_par_value: string;
|
|
21
|
-
limit_status: string;
|
|
22
|
-
limited_relation_product_data: any;
|
|
23
|
-
balance: string;
|
|
24
|
-
format_title: any;
|
|
25
|
-
product: any;
|
|
26
|
-
savedAmount: number;
|
|
27
|
-
isDisabled: boolean;
|
|
28
|
-
isSelected?: boolean;
|
|
29
|
-
isAvailable?: boolean;
|
|
30
|
-
isUsed?: boolean;
|
|
31
|
-
applicableProductIds?: number[];
|
|
32
|
-
applicableProductDetails: ApplicableProductDetails[];
|
|
33
|
-
appliedProductDetails: any[];
|
|
34
|
-
}
|
|
35
|
-
export interface PisellGoodPassCardProps {
|
|
36
|
-
/**数据源 */
|
|
37
|
-
dataSource: Array<Discount>;
|
|
38
|
-
/**事件 */
|
|
39
|
-
onChange?: (current: {
|
|
40
|
-
id: string | number;
|
|
41
|
-
isSelected: boolean;
|
|
42
|
-
}) => void;
|
|
43
|
-
/**样式 */
|
|
44
|
-
style: React.CSSProperties;
|
|
45
|
-
/**快捷展示排序 */
|
|
46
|
-
mixedSort?: (val: Discount[]) => Discount[];
|
|
47
|
-
isInModal: boolean;
|
|
48
|
-
}
|
|
49
|
-
declare const index: (props: PisellGoodPassCardProps) => React.JSX.Element;
|
|
50
|
-
export default index;
|
|
@@ -1,6 +0,0 @@
|
|
|
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>;
|
package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { PisellHierarchicalSummaryListAggregateConfig, PisellHierarchicalSummaryListItem, PisellHierarchicalSummaryListKey, PisellHierarchicalSummaryListLevelConfig, PisellHierarchicalSummaryListRenderContext } from '../types';
|
|
3
|
-
export interface RowProps {
|
|
4
|
-
prefixCls: string;
|
|
5
|
-
item: PisellHierarchicalSummaryListItem;
|
|
6
|
-
level: number;
|
|
7
|
-
index: number;
|
|
8
|
-
parentPathKeys: PisellHierarchicalSummaryListKey[];
|
|
9
|
-
expandedKeySet: ReadonlySet<PisellHierarchicalSummaryListKey>;
|
|
10
|
-
toggleExpanded: (key: PisellHierarchicalSummaryListKey, options?: {
|
|
11
|
-
siblingKeys?: PisellHierarchicalSummaryListKey[];
|
|
12
|
-
}) => void;
|
|
13
|
-
getKey: (item: PisellHierarchicalSummaryListItem, ctx: {
|
|
14
|
-
level: number;
|
|
15
|
-
index: number;
|
|
16
|
-
parentPathKeys: PisellHierarchicalSummaryListKey[];
|
|
17
|
-
}) => PisellHierarchicalSummaryListKey;
|
|
18
|
-
levelConfig?: Record<number, PisellHierarchicalSummaryListLevelConfig>;
|
|
19
|
-
indent: number;
|
|
20
|
-
rowGap: number;
|
|
21
|
-
gaps?: {
|
|
22
|
-
row?: number;
|
|
23
|
-
rowLeft?: number;
|
|
24
|
-
meta?: number;
|
|
25
|
-
rowRight?: number;
|
|
26
|
-
};
|
|
27
|
-
maxRenderLevel?: number;
|
|
28
|
-
maxExpandLevel?: number;
|
|
29
|
-
aggregate?: PisellHierarchicalSummaryListAggregateConfig;
|
|
30
|
-
renderLabel?: (item: PisellHierarchicalSummaryListItem, ctx: PisellHierarchicalSummaryListRenderContext) => React.ReactNode;
|
|
31
|
-
renderValue?: (item: PisellHierarchicalSummaryListItem, ctx: PisellHierarchicalSummaryListRenderContext) => React.ReactNode;
|
|
32
|
-
/** 父行是否带有 itemsCount(仅此类子项显示圆点 + #667085,其他保持黑色) */
|
|
33
|
-
parentHasItemsCount?: boolean;
|
|
34
|
-
}
|
|
35
|
-
export declare const Row: React.FC<RowProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Row } from './Row';
|
|
@@ -1,15 +0,0 @@
|
|
|
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;
|
|
@@ -1,248 +0,0 @@
|
|
|
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
|
-
}
|