@pisell/materials 1.8.41 → 1.8.42
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 +3 -3
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +51 -216
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +51 -216
- package/es/components/Pagination/index.js +43 -9
- package/es/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-dev.md +2 -5
- package/es/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-test.md +171 -169
- package/es/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.md +27 -87
- package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +7 -18
- package/es/components/PisellCards/components/TextCard/TextCard.js +3 -2
- package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.js +6 -20
- package/es/components/PisellCards/components/TextCard/components/TextContent.js +1 -3
- package/es/components/PisellCards/components/TextCard/docs/TextCard.$tab-dev.md +5 -36
- package/es/components/PisellCards/components/TextCard/docs/TextCard.$tab-test.md +258 -2434
- package/es/components/PisellCards/components/TextCard/docs/TextCard.md +13 -78
- package/es/components/PisellCards/index.d.ts +0 -3
- package/es/components/PisellCards/index.js +1 -3
- package/es/components/PisellLayouts/index.d.ts +1 -1
- package/es/components/PisellProcedure/components/ProcedureHeader.js +1 -1
- package/es/components/PisellTabbar/PisellTabbar.js +1 -1
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.js +1 -1
- package/es/components/SafeAreaTop/index.d.ts +6 -0
- package/es/components/SafeAreaTop/index.js +112 -0
- package/es/components/SafeAreaTop/index.less +11 -0
- package/es/components/SafeAreaTop/types.d.ts +13 -0
- package/es/components/appVersionControl/index.js +2 -3
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +4 -4
- package/es/components/dataSourceComponents/dataSourceForm/formItem.js +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/index.js +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +3 -3
- package/es/components/dataSourceComponents/dataSourceForm/utils.js +3 -3
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.js +1 -1
- package/es/components/dataSourceComponents/dataSourceSubForm/index.js +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.js +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +2 -3
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.js +1 -1
- package/es/components/dataSourceComponents/fields/DatePicker/WithMode.js +0 -4
- package/es/components/dataSourceComponents/fields/IconSelect/WithMode.js +1 -1
- package/es/components/dataSourceComponents/fields/Input/WithMode.js +1 -1
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.js +1 -4
- package/es/components/dataSourceComponents/fields/Radio/WithMode.js +1 -1
- package/es/components/dataSourceComponents/fields/TimePicker/WithMode.js +1 -1
- package/es/components/dataSourceComponents/hooks/useActions.js +1 -1
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceProvider.js +1 -1
- package/es/components/drag-sort-tree/index.d.ts +0 -1
- package/es/components/drag-sort-tree/index.js +1 -0
- package/es/components/drawer/index.js +6 -7
- package/es/components/filter/components/Dropdown/index.js +4 -2
- package/es/components/filter/components/Dropdown/index.less +186 -0
- package/es/components/filter/components/FilterButton/index.js +41 -13
- package/es/components/filter/components/FilterButton/index.less +29 -0
- package/es/components/filter/components/FilterButton/types.d.ts +5 -0
- package/es/components/filter/components/FilterItem/index.js +93 -16
- package/es/components/filter/components/QuickFilter/index.js +7 -4
- package/es/components/filter/types.d.ts +4 -0
- package/es/components/login-and-register/index.js +5 -4
- package/es/components/page/index.js +1 -1
- package/es/components/pisellAppCard/PisellAppCard.js +1 -1
- package/es/components/pisellCardList/index.js +1 -1
- package/es/components/pisellCurrency/PisellCurrency.js +6 -13
- package/es/components/pisellCurrency/PisellCurrency.less +123 -0
- package/es/components/pisellDataSourceContainer/components/Pagination/index.js +9 -3
- package/es/components/pisellDataSourceContainer/docs/PisellDataSourceContainer.md +240 -189
- package/es/components/pisellDataSourceContainer/type.d.ts +1 -1
- package/es/components/pisellDateTimeDisplay/docs/pisellDateTimeDisplay.md +556 -556
- package/es/components/pisellEmail/PisellEmail.js +6 -13
- package/es/components/pisellEmail/PisellEmail.less +92 -0
- package/es/components/pisellEmpty/index.d.ts +1 -1
- package/es/components/pisellFilter/docs/PisellFilter.md +2 -2
- package/es/components/pisellFilter/index.js +7 -3
- package/es/components/pisellFind/docs/pisellFind.md +2 -2
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +2 -1
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +480 -88
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.less +62 -0
- package/es/components/pisellFloorMapLayout/appearance/floorMapAppearance.d.ts +4 -0
- package/es/components/pisellFloorMapLayout/appearance/floorMapAppearance.js +22 -0
- package/es/components/pisellFloorMapLayout/components/CanvasTabs.js +18 -3
- package/es/components/pisellFloorMapLayout/components/CanvasTabs.less +23 -0
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.js +3 -2
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +2 -2
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.js +209 -74
- package/es/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +11 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.js +123 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +88 -12
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.less +15 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.js +169 -23
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.less +95 -1
- package/es/components/pisellFloorMapLayout/components/FloorMapOverview.js +94 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapOverview.less +65 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.js +153 -38
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.less +178 -4
- package/es/components/pisellFloorMapLayout/components/HistoryIcons.js +64 -0
- package/es/components/pisellFloorMapLayout/components/ItemLayer.js +32 -10
- package/es/components/pisellFloorMapLayout/components/ItemLayer.less +30 -2
- package/es/components/pisellFloorMapLayout/components/ViewControls.js +119 -65
- package/es/components/pisellFloorMapLayout/components/ViewControls.less +263 -50
- package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +4 -0
- package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +3 -1
- package/es/components/pisellFloorMapLayout/docs/pisellFloorMapLayout.md +559 -194
- package/es/components/pisellFloorMapLayout/floorMapLayoutConstants.js +21 -0
- package/es/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.js +47 -0
- package/es/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.js +95 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +105 -25
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +400 -66
- package/es/components/pisellFloorMapLayout/index.d.ts +5 -2
- package/es/components/pisellFloorMapLayout/locales-ja.js +39 -1
- package/es/components/pisellFloorMapLayout/locales-pt.js +39 -1
- package/es/components/pisellFloorMapLayout/locales.js +117 -3
- package/es/components/pisellFloorMapLayout/types.d.ts +86 -10
- package/es/components/pisellFloorMapLayout/types.js +7 -1
- package/es/components/pisellFloorMapLayout/utils/floorMapBuiltinShapes.d.ts +46 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapBuiltinShapes.js +533 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapCanvasStage.js +139 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.js +11 -2
- package/es/components/pisellFloorMapLayout/utils/floorMapDropUtils.js +3 -1
- package/es/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +3 -1
- package/es/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.js +31 -7
- package/es/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +52 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.js +61 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.js +12 -1
- package/es/components/pisellFloorMapLayout/utils/floorMapOverviewLayout.js +64 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.js +3 -2
- package/es/components/pisellGoodPassCard/index.less +1 -0
- package/es/components/pisellGridPro/GridView/docs/GridView.md +47 -48
- package/es/components/pisellGridPro/ToolBar/docs/ToolBar.$tab-dev.md +4 -2
- package/es/components/pisellGridPro/ToolBar/docs/ToolBar.md +95 -81
- package/es/components/pisellGridPro/ToolBar/index.less +5 -4
- package/es/components/pisellGridPro/docs/PisellGridPro.md +173 -262
- package/es/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-dev.md +3 -6
- package/es/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-test.md +3 -4
- package/es/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.md +1 -2
- package/es/components/pisellLongText/PisellLongText.js +6 -13
- package/es/components/pisellLongText/PisellLongText.less +67 -0
- package/es/components/pisellLookup/PisellLookup.js +1 -1
- package/es/components/pisellLookup/PisellLookup.less +46 -4
- package/es/components/pisellLookup/components/LookupResultHost.js +1 -1
- package/es/components/pisellLookup/components/LookupTrigger.js +6 -8
- package/es/components/pisellLookup/docs/pisellLookup.md +1 -1
- package/es/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.d.ts +9 -0
- package/es/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.js +149 -0
- package/es/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.less +73 -0
- package/es/components/pisellMobileDateRangePicker/index.d.ts +2 -0
- package/es/components/pisellMobileDateRangePicker/types.d.ts +31 -0
- package/es/components/pisellMobileDateRangePicker/types.js +4 -0
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.js +5 -7
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +139 -18
- package/es/components/pisellMultipleSelect/components/EditView.js +0 -1
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.js +0 -4
- package/es/components/pisellNumber/PisellNumber.js +6 -13
- package/es/components/pisellNumber/PisellNumber.less +103 -0
- package/es/components/pisellPhone/PisellPhone.js +6 -13
- package/es/components/pisellPhone/PisellPhone.less +119 -0
- package/es/components/pisellPhone/components/EditView.js +19 -37
- package/es/components/pisellPhone/constants/countryCodes.js +25 -26
- package/es/components/pisellPhone/types.d.ts +2 -2
- package/es/components/pisellPhone/utils/countryCodeHelper.js +2 -2
- package/es/components/pisellQuickFilter/{doc → docs}/PisellQuickFilter.md +1 -1
- package/es/components/pisellRating/PisellRating.js +3 -5
- package/es/components/pisellRecordBoard/PisellRecordBoard.js +29 -10
- package/es/components/pisellRecordBoard/README.md +12 -0
- package/es/components/pisellRecordBoard/docs/PisellRecordBoard.md +716 -70
- package/es/components/pisellRecordBoard/docs/ShellFrame.md +62 -44
- package/es/components/pisellRecordBoard/index.d.ts +8 -1
- package/es/components/pisellRecordBoard/index.js +5 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +174 -17
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.less +79 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +758 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.less +313 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +5 -1
- package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.js +10 -8
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.js +191 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +22 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +1 -1
- package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.js +39 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/hooks/useBookingCalendarDayOverlayLayout.js +74 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarBlockPanel.js +61 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.js +26 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.js +79 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.js +61 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.js +37 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.js +20 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +532 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarSelectionUtils.js +17 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.js +31 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.js +583 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.js +41 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +111 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.js +612 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +168 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.js +8 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDayHourRemaining.js +33 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDaySelection.js +37 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceCellToggle.js +18 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceDayHeaderRemaining.js +33 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/useBookingCalendarGoToDayFromCell.js +29 -0
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +2 -1
- package/es/components/pisellRecordBoard/shellFrame/Pagination/index.js +7 -1
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.js +43 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +14 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +436 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +11 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.js +9 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +179 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.js +62 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +57 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewport.less +88 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.js +83 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +218 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.less +339 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallMarquee.less +52 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.js +153 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +32 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +170 -0
- package/es/components/pisellRecordBoard/shellFrame/Search/index.js +1 -1
- package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +5 -1
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +30 -3
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +157 -68
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.js +11 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.js +56 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +406 -14
- package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +14 -4
- package/es/components/pisellRecordBoard/shellFrame/index.d.ts +9 -2
- package/es/components/pisellRecordBoard/shellFrame/index.js +73 -19
- package/es/components/pisellRecordBoard/types.d.ts +413 -8
- package/es/components/pisellRecordBoard/types.js +12 -0
- package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +16 -0
- package/es/components/pisellRecordBoard/utils/recordBoardPhoneGrid.d.ts +22 -0
- package/es/components/pisellRecordBoard/utils/recordBoardPhoneGrid.js +46 -0
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.js +67 -15
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.less +23 -0
- package/es/components/pisellReservationSchedule/locales.js +21 -3
- package/es/components/pisellReservationSchedule/types.d.ts +5 -0
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.js +11 -6
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +37 -4
- package/es/components/pisellReservationScheduleBand/index.d.ts +2 -1
- package/es/components/pisellReservationScheduleBand/types.d.ts +13 -2
- package/es/components/pisellReservationScheduleBand/utils/formatScheduleAtLabel.d.ts +13 -0
- package/es/components/pisellReservationScheduleBand/utils/formatScheduleAtLabel.js +17 -0
- package/es/components/pisellShellFrame/PisellShellFrame.js +2 -2
- package/es/components/pisellShellFrame/PisellShellFrame.less +18 -2
- package/es/components/pisellShellFrame/types.d.ts +6 -0
- package/es/components/pisellSingleLineText/PisellSingleLineText.js +14 -21
- package/es/components/pisellSingleLineText/PisellSingleLineText.less +143 -0
- package/es/components/pisellSingleLineText/docs/pisellSingleLineText.md +256 -256
- package/es/components/pisellSingleSelect/PisellSingleSelect.js +4 -7
- package/es/components/pisellSingleSelect/PisellSingleSelect.less +106 -5
- package/es/components/pisellSingleSelect/docs/pisellSingleSelect.md +428 -525
- package/es/components/pisellSort/docs/PisellSort.md +131 -67
- package/es/components/pisellStatisticList/index.js +0 -1
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.js +227 -58
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.less +128 -15
- package/es/components/pisellTimeNavigator/components/CursorLayer.js +3 -3
- package/es/components/pisellTimeNavigator/components/GestureLayer.js +12 -3
- package/es/components/pisellTimeNavigator/components/ScaleLayer.js +34 -6
- package/es/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-dev.md +26 -42
- package/es/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-test.md +5 -5
- package/es/components/pisellTimeNavigator/hooks/useTimeAxis.js +43 -23
- package/es/components/pisellTimeNavigator/index.d.ts +1 -1
- package/es/components/pisellTimeNavigator/types.d.ts +15 -0
- package/es/components/pisellTimeNavigator/utils/index.d.ts +25 -4
- package/es/components/pisellTimeNavigator/utils/index.js +85 -17
- package/es/components/pisellTimeRangeDisplay/docs/pisellTimeRangeDisplay.md +226 -227
- package/es/components/pisellUrl/PisellUrl.js +6 -13
- package/es/components/pisellWalletPassCard/index.js +5 -11
- package/es/components/productCard/cartSkuCard/components/Gift/index.js +34 -0
- package/es/components/productCard/cartSkuCard/components/Gift/index.less +84 -0
- package/es/components/productCard/cartSkuCard/components/Promotion/index.js +23 -0
- package/es/components/productCard/cartSkuCard/components/Promotion/index.less +16 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +65 -4
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +80 -1
- package/es/components/productCard/cartSkuCard/components/holders/index.js +1 -1
- package/es/components/productCard/cartSkuCard/components/packages/index.js +24 -9
- package/es/components/productCard/cartSkuCard/components/specs/index.js +22 -7
- package/es/components/productCard/cartSkuCard/components/specs/index.less +11 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.js +2 -1
- package/es/components/productCard/cartSkuCard/components/weighing/index.js +27 -0
- package/es/components/productCard/cartSkuCard/components/weighing/index.less +25 -0
- package/es/components/productCard/cartSkuCard/index.js +68 -8
- package/es/components/productCard/cartSkuCard/locales.js +40 -5
- package/es/components/productCard/components/Header/DeleteButton/index.js +2 -2
- package/es/components/productCard/components/Header/DeleteButton/index.less +1 -2
- package/es/components/productCard/components/Header/EditButton/index.js +2 -1
- package/es/components/productCard/components/Header/index.less +1 -1
- package/es/components/productCard/components/Time/components/SelectHolder/index.js +2 -3
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.js +1 -1
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.js +2 -2
- package/es/components/productCard/components/Time/components/SelectResource/index.js +3 -6
- package/es/components/productCard/components/Time/index.js +2 -3
- package/es/components/productCard/index.d.ts +1 -0
- package/es/components/productCard/index.js +2 -0
- package/es/components/productCard/lineItem/BookingLineItem.js +173 -0
- package/es/components/productCard/lineItem/index.js +195 -0
- package/es/components/productCard/lineItem/index.less +195 -0
- package/es/components/productCard/lineItem/locales.js +25 -0
- package/es/components/productCard/status.js +3 -0
- package/es/components/productCard/types.d.ts +10 -0
- package/es/components/productCard/utils.js +1 -1
- package/es/components/select/index.js +1 -1
- package/es/components/select-time/index.js +1 -0
- package/es/components/table/Actions/component/ExportImport/index.js +4 -3
- package/es/components/table/Actions/component/GallerySetting/index.js +9 -10
- package/es/components/table/Actions/component/ViewMode/index.js +3 -4
- package/es/components/table/Actions/index.js +1 -1
- package/es/components/table/BasicTable/index.js +3 -4
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.less +1 -1
- package/es/components/table/Gallery/components/GalleryItem/index.js +4 -12
- package/es/components/table/Gallery/components/GalleryItem/index.less +0 -1
- package/es/components/table/Gallery/index.js +3 -11
- package/es/components/table/Table/fields/text/Show/index.js +1 -1
- package/es/components/table/Table/index.js +1 -2
- package/es/components/table/Table/tableConfig/header/index.js +1 -1
- package/es/components/table/Table/utils.js +1 -5
- package/es/components/table/hooks/useTableSetting.js +0 -3
- package/es/components/table/hooks/useTransDataSource.js +3 -4
- package/es/components/table/index.js +1 -1
- package/es/components/tabs/index.less +1 -1
- package/es/components/translation/index.d.ts +0 -1
- package/es/components/translation/index.js +10 -36
- package/es/components/translation/index.less +0 -12
- package/es/components/versionModal/index.d.ts +0 -1
- package/es/components/versionModal/index.js +2 -2
- package/es/components/versionSelect/index.js +1 -1
- package/es/components/virtual-keyboard/Amount/index.js +1 -1
- package/es/index.d.ts +101 -106
- package/es/index.js +97 -94
- package/es/locales/en-US.js +195 -70
- package/es/locales/ja.js +196 -13
- package/es/locales/pt.js +196 -13
- package/es/locales/zh-CN.js +189 -64
- package/es/locales/zh-TW.js +194 -69
- package/es/pisell-materials.tw.css +0 -1
- package/es/tailwind-input.css +3 -1
- package/lib/components/Pagination/index.js +42 -8
- package/lib/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-dev.md +2 -5
- package/lib/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-test.md +171 -169
- package/lib/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.md +27 -87
- package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +7 -18
- package/lib/components/PisellCards/components/TextCard/TextCard.js +3 -2
- package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.js +6 -20
- package/lib/components/PisellCards/components/TextCard/components/TextContent.js +1 -3
- package/lib/components/PisellCards/components/TextCard/docs/TextCard.$tab-dev.md +5 -36
- package/lib/components/PisellCards/components/TextCard/docs/TextCard.$tab-test.md +258 -2434
- package/lib/components/PisellCards/components/TextCard/docs/TextCard.md +13 -78
- package/lib/components/PisellCards/index.d.ts +0 -3
- package/lib/components/PisellCards/index.js +1 -3
- package/lib/components/PisellLayouts/index.d.ts +1 -1
- package/lib/components/PisellProcedure/components/ProcedureHeader.js +1 -1
- package/lib/components/PisellTabbar/PisellTabbar.js +6 -6
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.js +6 -6
- package/lib/components/SafeAreaTop/index.d.ts +6 -0
- package/lib/components/SafeAreaTop/index.js +115 -0
- package/lib/components/SafeAreaTop/index.less +11 -0
- package/lib/components/SafeAreaTop/types.d.ts +13 -0
- package/lib/components/appVersionControl/index.js +11 -12
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +6 -6
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/index.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +3 -3
- package/lib/components/dataSourceComponents/dataSourceForm/utils.js +3 -3
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceSubForm/index.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +2 -3
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.js +1 -1
- package/lib/components/dataSourceComponents/fields/DatePicker/WithMode.js +0 -4
- package/lib/components/dataSourceComponents/fields/IconSelect/WithMode.js +1 -1
- package/lib/components/dataSourceComponents/fields/Input/WithMode.js +1 -1
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.js +1 -4
- package/lib/components/dataSourceComponents/fields/Radio/WithMode.js +1 -1
- package/lib/components/dataSourceComponents/fields/TimePicker/WithMode.js +4 -4
- package/lib/components/dataSourceComponents/hooks/useActions.js +1 -1
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceProvider.js +1 -1
- package/lib/components/drag-sort-tree/index.d.ts +0 -1
- package/lib/components/drag-sort-tree/index.js +1 -0
- package/lib/components/drawer/index.js +6 -7
- package/lib/components/filter/components/Dropdown/index.js +5 -2
- package/lib/components/filter/components/Dropdown/index.less +186 -0
- package/lib/components/filter/components/FilterButton/index.js +40 -12
- package/lib/components/filter/components/FilterButton/index.less +29 -0
- package/lib/components/filter/components/FilterButton/types.d.ts +5 -0
- package/lib/components/filter/components/FilterItem/index.js +94 -16
- package/lib/components/filter/components/QuickFilter/index.js +7 -4
- package/lib/components/filter/types.d.ts +4 -0
- package/lib/components/login-and-register/index.js +5 -4
- package/lib/components/page/index.js +1 -1
- package/lib/components/pisellAppCard/PisellAppCard.js +7 -7
- package/lib/components/pisellCardList/index.js +6 -6
- package/lib/components/pisellCurrency/PisellCurrency.js +6 -13
- package/lib/components/pisellCurrency/PisellCurrency.less +123 -0
- package/lib/components/pisellDataSourceContainer/components/Pagination/index.js +9 -3
- package/lib/components/pisellDataSourceContainer/docs/PisellDataSourceContainer.md +240 -189
- package/lib/components/pisellDataSourceContainer/type.d.ts +1 -1
- package/lib/components/pisellDateTimeDisplay/docs/pisellDateTimeDisplay.md +556 -556
- package/lib/components/pisellEmail/PisellEmail.js +6 -13
- package/lib/components/pisellEmail/PisellEmail.less +92 -0
- package/lib/components/pisellEmpty/index.d.ts +1 -1
- package/lib/components/pisellFilter/docs/PisellFilter.md +2 -2
- package/lib/components/pisellFilter/index.js +7 -3
- package/lib/components/pisellFind/docs/pisellFind.md +2 -2
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +2 -1
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +478 -86
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.less +62 -0
- package/lib/components/pisellFloorMapLayout/appearance/floorMapAppearance.d.ts +4 -0
- package/lib/components/pisellFloorMapLayout/appearance/floorMapAppearance.js +22 -0
- package/lib/components/pisellFloorMapLayout/components/CanvasTabs.js +18 -3
- package/lib/components/pisellFloorMapLayout/components/CanvasTabs.less +23 -0
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.js +3 -2
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +2 -2
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.js +209 -74
- package/lib/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +11 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.js +125 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +86 -10
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.less +15 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.js +168 -22
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.less +95 -1
- package/lib/components/pisellFloorMapLayout/components/FloorMapOverview.js +97 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapOverview.less +65 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.js +150 -35
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.less +178 -4
- package/lib/components/pisellFloorMapLayout/components/HistoryIcons.js +67 -0
- package/lib/components/pisellFloorMapLayout/components/ItemLayer.js +32 -10
- package/lib/components/pisellFloorMapLayout/components/ItemLayer.less +30 -2
- package/lib/components/pisellFloorMapLayout/components/ViewControls.js +118 -64
- package/lib/components/pisellFloorMapLayout/components/ViewControls.less +263 -50
- package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +4 -0
- package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +3 -1
- package/lib/components/pisellFloorMapLayout/docs/pisellFloorMapLayout.md +559 -194
- package/lib/components/pisellFloorMapLayout/floorMapLayoutConstants.js +25 -0
- package/lib/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.js +52 -0
- package/lib/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.js +96 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +104 -24
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +399 -65
- package/lib/components/pisellFloorMapLayout/index.d.ts +5 -2
- package/lib/components/pisellFloorMapLayout/locales-ja.js +39 -1
- package/lib/components/pisellFloorMapLayout/locales-pt.js +39 -1
- package/lib/components/pisellFloorMapLayout/locales.js +117 -3
- package/lib/components/pisellFloorMapLayout/types.d.ts +86 -10
- package/lib/components/pisellFloorMapLayout/types.js +7 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapBuiltinShapes.d.ts +46 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapBuiltinShapes.js +536 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasStage.js +140 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.js +11 -2
- package/lib/components/pisellFloorMapLayout/utils/floorMapDropUtils.js +3 -1
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +3 -1
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.js +30 -5
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +52 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.js +64 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.js +11 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapOverviewLayout.js +64 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.js +4 -2
- package/lib/components/pisellGoodPassCard/index.less +1 -0
- package/lib/components/pisellGridPro/GridView/docs/GridView.md +47 -48
- package/lib/components/pisellGridPro/ToolBar/docs/ToolBar.$tab-dev.md +4 -2
- package/lib/components/pisellGridPro/ToolBar/docs/ToolBar.md +95 -81
- package/lib/components/pisellGridPro/ToolBar/index.less +5 -4
- package/lib/components/pisellGridPro/docs/PisellGridPro.md +173 -262
- package/lib/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-dev.md +3 -6
- package/lib/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-test.md +3 -4
- package/lib/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.md +1 -2
- package/lib/components/pisellLongText/PisellLongText.js +6 -13
- package/lib/components/pisellLongText/PisellLongText.less +67 -0
- package/lib/components/pisellLookup/PisellLookup.js +1 -1
- package/lib/components/pisellLookup/PisellLookup.less +46 -4
- package/lib/components/pisellLookup/components/LookupResultHost.js +1 -1
- package/lib/components/pisellLookup/components/LookupTrigger.js +6 -8
- package/lib/components/pisellLookup/docs/pisellLookup.md +1 -1
- package/lib/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.d.ts +9 -0
- package/lib/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.js +160 -0
- package/lib/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.less +73 -0
- package/lib/components/pisellMobileDateRangePicker/index.d.ts +2 -0
- package/lib/components/pisellMobileDateRangePicker/types.d.ts +31 -0
- package/lib/components/pisellMobileDateRangePicker/types.js +4 -0
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.js +4 -6
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +139 -18
- package/lib/components/pisellMultipleSelect/components/EditView.js +0 -1
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.js +0 -4
- package/lib/components/pisellNumber/PisellNumber.js +6 -13
- package/lib/components/pisellNumber/PisellNumber.less +103 -0
- package/lib/components/pisellPhone/PisellPhone.js +6 -13
- package/lib/components/pisellPhone/PisellPhone.less +119 -0
- package/lib/components/pisellPhone/components/EditView.js +19 -37
- package/lib/components/pisellPhone/constants/countryCodes.js +25 -26
- package/lib/components/pisellPhone/types.d.ts +2 -2
- package/lib/components/pisellPhone/utils/countryCodeHelper.js +2 -2
- package/lib/components/pisellQuickFilter/{doc → docs}/PisellQuickFilter.md +1 -1
- package/lib/components/pisellRating/PisellRating.js +2 -4
- package/lib/components/pisellRecordBoard/PisellRecordBoard.js +29 -10
- package/lib/components/pisellRecordBoard/README.md +12 -0
- package/lib/components/pisellRecordBoard/docs/PisellRecordBoard.md +716 -70
- package/lib/components/pisellRecordBoard/docs/ShellFrame.md +62 -44
- package/lib/components/pisellRecordBoard/index.d.ts +8 -1
- package/lib/components/pisellRecordBoard/index.js +5 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +174 -16
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.less +79 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +760 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.less +313 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +5 -1
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.js +11 -8
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.js +197 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +23 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +1 -1
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.js +44 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/hooks/useBookingCalendarDayOverlayLayout.js +75 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarBlockPanel.js +63 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.js +28 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.js +81 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.js +64 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.js +39 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.js +21 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +562 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarSelectionUtils.js +17 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.js +33 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.js +585 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.js +43 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +113 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.js +614 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +170 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.js +10 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDayHourRemaining.js +34 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDaySelection.js +38 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceCellToggle.js +19 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceDayHeaderRemaining.js +34 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/useBookingCalendarGoToDayFromCell.js +30 -0
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +2 -1
- package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.js +7 -1
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.js +45 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +14 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +439 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +11 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.js +9 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +181 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.js +64 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +57 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewport.less +88 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.js +85 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +220 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.less +339 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallMarquee.less +52 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.js +153 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +32 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +181 -0
- package/lib/components/pisellRecordBoard/shellFrame/Search/index.js +1 -1
- package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +5 -1
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +30 -3
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +170 -81
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.js +14 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.js +63 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +406 -14
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +14 -4
- package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +9 -2
- package/lib/components/pisellRecordBoard/shellFrame/index.js +73 -19
- package/lib/components/pisellRecordBoard/types.d.ts +413 -8
- package/lib/components/pisellRecordBoard/types.js +12 -0
- package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +16 -0
- package/lib/components/pisellRecordBoard/utils/recordBoardPhoneGrid.d.ts +22 -0
- package/lib/components/pisellRecordBoard/utils/recordBoardPhoneGrid.js +50 -0
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.js +67 -15
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.less +23 -0
- package/lib/components/pisellReservationSchedule/locales.js +21 -3
- package/lib/components/pisellReservationSchedule/types.d.ts +5 -0
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.js +11 -6
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +37 -4
- package/lib/components/pisellReservationScheduleBand/index.d.ts +2 -1
- package/lib/components/pisellReservationScheduleBand/types.d.ts +13 -2
- package/lib/components/pisellReservationScheduleBand/utils/formatScheduleAtLabel.d.ts +13 -0
- package/lib/components/pisellReservationScheduleBand/utils/formatScheduleAtLabel.js +17 -0
- package/lib/components/pisellShellFrame/PisellShellFrame.js +2 -2
- package/lib/components/pisellShellFrame/PisellShellFrame.less +18 -2
- package/lib/components/pisellShellFrame/types.d.ts +6 -0
- package/lib/components/pisellSingleLineText/PisellSingleLineText.js +14 -21
- package/lib/components/pisellSingleLineText/PisellSingleLineText.less +143 -0
- package/lib/components/pisellSingleLineText/docs/pisellSingleLineText.md +256 -256
- package/lib/components/pisellSingleSelect/PisellSingleSelect.js +4 -7
- package/lib/components/pisellSingleSelect/PisellSingleSelect.less +106 -5
- package/lib/components/pisellSingleSelect/docs/pisellSingleSelect.md +428 -525
- package/lib/components/pisellSort/docs/PisellSort.md +131 -67
- package/lib/components/pisellStatisticList/index.js +0 -1
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.js +226 -57
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.less +128 -15
- package/lib/components/pisellTimeNavigator/components/CursorLayer.js +3 -3
- package/lib/components/pisellTimeNavigator/components/GestureLayer.js +12 -3
- package/lib/components/pisellTimeNavigator/components/ScaleLayer.js +34 -6
- package/lib/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-dev.md +26 -42
- package/lib/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-test.md +5 -5
- package/lib/components/pisellTimeNavigator/hooks/useTimeAxis.js +42 -22
- package/lib/components/pisellTimeNavigator/index.d.ts +1 -1
- package/lib/components/pisellTimeNavigator/types.d.ts +15 -0
- package/lib/components/pisellTimeNavigator/utils/index.d.ts +25 -4
- package/lib/components/pisellTimeNavigator/utils/index.js +88 -17
- package/lib/components/pisellTimeRangeDisplay/docs/pisellTimeRangeDisplay.md +226 -227
- package/lib/components/pisellUrl/PisellUrl.js +6 -13
- package/lib/components/pisellWalletPassCard/index.js +5 -11
- package/lib/components/productCard/cartSkuCard/components/Gift/index.js +36 -0
- package/lib/components/productCard/cartSkuCard/components/Gift/index.less +84 -0
- package/lib/components/productCard/cartSkuCard/components/Promotion/index.js +25 -0
- package/lib/components/productCard/cartSkuCard/components/Promotion/index.less +16 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +69 -8
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +80 -1
- package/lib/components/productCard/cartSkuCard/components/holders/index.js +1 -1
- package/lib/components/productCard/cartSkuCard/components/packages/index.js +26 -11
- package/lib/components/productCard/cartSkuCard/components/specs/index.js +23 -8
- package/lib/components/productCard/cartSkuCard/components/specs/index.less +11 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +2 -1
- package/lib/components/productCard/cartSkuCard/components/weighing/index.js +29 -0
- package/lib/components/productCard/cartSkuCard/components/weighing/index.less +25 -0
- package/lib/components/productCard/cartSkuCard/index.js +68 -8
- package/lib/components/productCard/cartSkuCard/locales.js +40 -5
- package/lib/components/productCard/components/Header/DeleteButton/index.js +2 -2
- package/lib/components/productCard/components/Header/DeleteButton/index.less +1 -2
- package/lib/components/productCard/components/Header/EditButton/index.js +2 -1
- package/lib/components/productCard/components/Header/index.less +1 -1
- package/lib/components/productCard/components/Time/components/SelectHolder/index.js +2 -3
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.js +5 -5
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.js +2 -2
- package/lib/components/productCard/components/Time/components/SelectResource/index.js +3 -6
- package/lib/components/productCard/components/Time/index.js +2 -3
- package/lib/components/productCard/index.d.ts +1 -0
- package/lib/components/productCard/index.js +2 -0
- package/lib/components/productCard/lineItem/BookingLineItem.js +177 -0
- package/lib/components/productCard/lineItem/index.js +197 -0
- package/lib/components/productCard/lineItem/index.less +195 -0
- package/lib/components/productCard/lineItem/locales.js +25 -0
- package/lib/components/productCard/status.js +3 -0
- package/lib/components/productCard/types.d.ts +10 -0
- package/lib/components/productCard/utils.js +1 -1
- package/lib/components/select/index.js +1 -1
- package/lib/components/select-time/index.js +1 -0
- package/lib/components/table/Actions/component/ExportImport/index.js +4 -3
- package/lib/components/table/Actions/component/GallerySetting/index.js +11 -12
- package/lib/components/table/Actions/component/ViewMode/index.js +5 -6
- package/lib/components/table/Actions/index.js +1 -1
- package/lib/components/table/BasicTable/index.js +3 -4
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.less +1 -1
- package/lib/components/table/Gallery/components/GalleryItem/index.js +9 -17
- package/lib/components/table/Gallery/components/GalleryItem/index.less +0 -1
- package/lib/components/table/Gallery/index.js +3 -11
- package/lib/components/table/Table/fields/text/Show/index.js +1 -1
- package/lib/components/table/Table/index.js +1 -2
- package/lib/components/table/Table/tableConfig/header/index.js +2 -2
- package/lib/components/table/Table/utils.js +1 -5
- package/lib/components/table/hooks/useTableSetting.js +0 -3
- package/lib/components/table/hooks/useTransDataSource.js +3 -4
- package/lib/components/table/index.js +1 -1
- package/lib/components/tabs/index.less +1 -1
- package/lib/components/translation/index.d.ts +0 -1
- package/lib/components/translation/index.js +9 -35
- package/lib/components/translation/index.less +0 -12
- package/lib/components/versionModal/index.d.ts +0 -1
- package/lib/components/versionModal/index.js +2 -2
- package/lib/components/versionSelect/index.js +4 -4
- package/lib/components/virtual-keyboard/Amount/index.js +4 -4
- package/lib/index.d.ts +101 -106
- package/lib/index.js +314 -298
- package/lib/locales/en-US.js +195 -70
- package/lib/locales/ja.js +196 -13
- package/lib/locales/pt.js +196 -13
- package/lib/locales/zh-CN.js +189 -64
- package/lib/locales/zh-TW.js +194 -69
- package/lib/pisell-materials.tw.css +0 -1
- package/lib/tailwind-input.css +3 -1
- package/package.json +1 -1
- package/es/components/PisellContactBrief/PisellContactBrief.d.ts +0 -34
- package/es/components/PisellContactBrief/PisellContactBrief.js +0 -156
- package/es/components/PisellContactBrief/PisellContactBrief.less +0 -192
- package/es/components/PisellContactBrief/components/ContactFormModal.js +0 -140
- package/es/components/PisellContactBrief/docs/PisellContactBrief.$tab-design.md +0 -109
- package/es/components/PisellContactBrief/docs/PisellContactBrief.$tab-dev.md +0 -106
- package/es/components/PisellContactBrief/docs/PisellContactBrief.$tab-test.md +0 -125
- package/es/components/PisellContactBrief/docs/PisellContactBrief.md +0 -129
- package/es/components/PisellContactBrief/index.d.ts +0 -2
- package/es/components/PisellContactBrief/locales.js +0 -57
- package/es/components/PisellContactBrief/types.d.ts +0 -86
- package/es/components/Template/[ComponentName].less +0 -1
- package/es/components/Template/docs/[ComponentName].$tab-design.md +0 -7
- package/es/components/Template/docs/[ComponentName].$tab-dev.md +0 -1137
- package/es/components/Template/docs/[ComponentName].$tab-test.md +0 -7
- package/es/components/Template/docs/[ComponentName].md +0 -510
- package/es/components/hardwareErrorTip/errorCard/index.d.ts +0 -25
- package/es/components/hardwareErrorTip/errorCard/index.js +0 -68
- package/es/components/hardwareErrorTip/errorCard/index.less +0 -137
- package/es/components/hardwareErrorTip/errorTipStatistics/index.d.ts +0 -10
- package/es/components/hardwareErrorTip/errorTipStatistics/index.js +0 -31
- package/es/components/hardwareErrorTip/errorTipStatistics/index.less +0 -34
- package/es/components/hardwareErrorTip/index.d.ts +0 -20
- package/es/components/hardwareErrorTip/index.js +0 -151
- package/es/components/hardwareErrorTip/index.less +0 -95
- package/es/components/hardwareErrorTip/logCard/index.d.ts +0 -25
- package/es/components/hardwareErrorTip/logCard/index.js +0 -72
- package/es/components/hardwareErrorTip/logCard/index.less +0 -121
- package/es/components/hardwareErrorTip/readme.md +0 -309
- package/es/components/hardwareErrorTip/types.js +0 -54
- package/es/components/pisellActionPanel/PisellActionPanel.d.ts +0 -24
- package/es/components/pisellActionPanel/PisellActionPanel.js +0 -68
- package/es/components/pisellActionPanel/PisellActionPanel.less +0 -69
- package/es/components/pisellActionPanel/docs/pisellActionPanel.$tab-design.md +0 -148
- package/es/components/pisellActionPanel/docs/pisellActionPanel.$tab-dev.md +0 -53
- package/es/components/pisellActionPanel/docs/pisellActionPanel.$tab-test.md +0 -64
- package/es/components/pisellActionPanel/docs/pisellActionPanel.md +0 -160
- package/es/components/pisellActionPanel/index.d.ts +0 -2
- package/es/components/pisellActionPanel/types.d.ts +0 -87
- package/es/components/pisellBaseCard/PisellBaseCard.d.ts +0 -20
- package/es/components/pisellBaseCard/PisellBaseCard.js +0 -73
- package/es/components/pisellBaseCard/PisellBaseCard.less +0 -25
- package/es/components/pisellBaseCard/docs/pisellBaseCard.$tab-design.md +0 -144
- package/es/components/pisellBaseCard/docs/pisellBaseCard.$tab-dev.md +0 -92
- package/es/components/pisellBaseCard/docs/pisellBaseCard.$tab-test.md +0 -86
- package/es/components/pisellBaseCard/docs/pisellBaseCard.md +0 -165
- package/es/components/pisellBaseCard/index.d.ts +0 -2
- package/es/components/pisellBaseCard/types.d.ts +0 -49
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +0 -57
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.js +0 -92
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.less +0 -8
- package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-design.md +0 -115
- package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-dev.md +0 -73
- package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-test.md +0 -66
- package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.md +0 -132
- package/es/components/pisellCustomerBrief/index.d.ts +0 -2
- package/es/components/pisellCustomerBrief/types.d.ts +0 -86
- package/es/components/pisellEntityCard/PisellEntityCard.d.ts +0 -47
- package/es/components/pisellEntityCard/PisellEntityCard.js +0 -315
- package/es/components/pisellEntityCard/PisellEntityCard.less +0 -362
- package/es/components/pisellEntityCard/docs/pisellEntityCard.$tab-design.md +0 -209
- package/es/components/pisellEntityCard/docs/pisellEntityCard.$tab-dev.md +0 -82
- package/es/components/pisellEntityCard/docs/pisellEntityCard.$tab-test.md +0 -122
- package/es/components/pisellEntityCard/docs/pisellEntityCard.md +0 -176
- package/es/components/pisellEntityCard/index.d.ts +0 -2
- package/es/components/pisellEntityCard/types.d.ts +0 -148
- package/es/components/pisellExport/PisellExport.d.ts +0 -11
- package/es/components/pisellExport/PisellExport.js +0 -44
- package/es/components/pisellExport/PisellExport.less +0 -141
- package/es/components/pisellExport/docs/pisellExport.$tab-design.md +0 -116
- package/es/components/pisellExport/docs/pisellExport.$tab-dev.md +0 -132
- package/es/components/pisellExport/docs/pisellExport.$tab-test.md +0 -61
- package/es/components/pisellExport/docs/pisellExport.md +0 -162
- package/es/components/pisellExport/index.d.ts +0 -2
- package/es/components/pisellExport/types.d.ts +0 -67
- package/es/components/pisellImport/PisellImport.d.ts +0 -11
- package/es/components/pisellImport/PisellImport.js +0 -81
- package/es/components/pisellImport/PisellImport.less +0 -141
- package/es/components/pisellImport/docs/pisellImport.$tab-design.md +0 -121
- package/es/components/pisellImport/docs/pisellImport.$tab-dev.md +0 -137
- package/es/components/pisellImport/docs/pisellImport.$tab-test.md +0 -69
- package/es/components/pisellImport/docs/pisellImport.md +0 -174
- package/es/components/pisellImport/index.d.ts +0 -2
- package/es/components/pisellImport/types.d.ts +0 -89
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.js +0 -3811
- package/es/components/productCard/components/Header/Actions/index.less +0 -15
- package/es/theme/pisell-components.js +0 -76
- package/lib/components/PisellContactBrief/PisellContactBrief.d.ts +0 -34
- package/lib/components/PisellContactBrief/PisellContactBrief.js +0 -158
- package/lib/components/PisellContactBrief/PisellContactBrief.less +0 -192
- package/lib/components/PisellContactBrief/components/ContactFormModal.js +0 -139
- package/lib/components/PisellContactBrief/docs/PisellContactBrief.$tab-design.md +0 -109
- package/lib/components/PisellContactBrief/docs/PisellContactBrief.$tab-dev.md +0 -106
- package/lib/components/PisellContactBrief/docs/PisellContactBrief.$tab-test.md +0 -125
- package/lib/components/PisellContactBrief/docs/PisellContactBrief.md +0 -129
- package/lib/components/PisellContactBrief/index.d.ts +0 -2
- package/lib/components/PisellContactBrief/locales.js +0 -57
- package/lib/components/PisellContactBrief/types.d.ts +0 -86
- package/lib/components/Template/[ComponentName].less +0 -1
- package/lib/components/Template/docs/[ComponentName].$tab-design.md +0 -7
- package/lib/components/Template/docs/[ComponentName].$tab-dev.md +0 -1137
- package/lib/components/Template/docs/[ComponentName].$tab-test.md +0 -7
- package/lib/components/Template/docs/[ComponentName].md +0 -510
- package/lib/components/hardwareErrorTip/errorCard/index.d.ts +0 -25
- package/lib/components/hardwareErrorTip/errorCard/index.js +0 -71
- package/lib/components/hardwareErrorTip/errorCard/index.less +0 -137
- package/lib/components/hardwareErrorTip/errorTipStatistics/index.d.ts +0 -10
- package/lib/components/hardwareErrorTip/errorTipStatistics/index.js +0 -34
- package/lib/components/hardwareErrorTip/errorTipStatistics/index.less +0 -34
- package/lib/components/hardwareErrorTip/index.d.ts +0 -20
- package/lib/components/hardwareErrorTip/index.js +0 -153
- package/lib/components/hardwareErrorTip/index.less +0 -95
- package/lib/components/hardwareErrorTip/logCard/index.d.ts +0 -25
- package/lib/components/hardwareErrorTip/logCard/index.js +0 -75
- package/lib/components/hardwareErrorTip/logCard/index.less +0 -121
- package/lib/components/hardwareErrorTip/readme.md +0 -309
- package/lib/components/hardwareErrorTip/types.js +0 -57
- package/lib/components/pisellActionPanel/PisellActionPanel.d.ts +0 -24
- package/lib/components/pisellActionPanel/PisellActionPanel.js +0 -71
- package/lib/components/pisellActionPanel/PisellActionPanel.less +0 -69
- package/lib/components/pisellActionPanel/docs/pisellActionPanel.$tab-design.md +0 -148
- package/lib/components/pisellActionPanel/docs/pisellActionPanel.$tab-dev.md +0 -53
- package/lib/components/pisellActionPanel/docs/pisellActionPanel.$tab-test.md +0 -64
- package/lib/components/pisellActionPanel/docs/pisellActionPanel.md +0 -160
- package/lib/components/pisellActionPanel/index.d.ts +0 -2
- package/lib/components/pisellActionPanel/types.d.ts +0 -87
- package/lib/components/pisellBaseCard/PisellBaseCard.d.ts +0 -20
- package/lib/components/pisellBaseCard/PisellBaseCard.js +0 -76
- package/lib/components/pisellBaseCard/PisellBaseCard.less +0 -25
- package/lib/components/pisellBaseCard/docs/pisellBaseCard.$tab-design.md +0 -144
- package/lib/components/pisellBaseCard/docs/pisellBaseCard.$tab-dev.md +0 -92
- package/lib/components/pisellBaseCard/docs/pisellBaseCard.$tab-test.md +0 -86
- package/lib/components/pisellBaseCard/docs/pisellBaseCard.md +0 -165
- package/lib/components/pisellBaseCard/index.d.ts +0 -2
- package/lib/components/pisellBaseCard/types.d.ts +0 -49
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +0 -57
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.js +0 -94
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.less +0 -8
- package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-design.md +0 -115
- package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-dev.md +0 -73
- package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-test.md +0 -66
- package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.md +0 -132
- package/lib/components/pisellCustomerBrief/index.d.ts +0 -2
- package/lib/components/pisellCustomerBrief/types.d.ts +0 -86
- package/lib/components/pisellEntityCard/PisellEntityCard.d.ts +0 -47
- package/lib/components/pisellEntityCard/PisellEntityCard.js +0 -318
- package/lib/components/pisellEntityCard/PisellEntityCard.less +0 -362
- package/lib/components/pisellEntityCard/docs/pisellEntityCard.$tab-design.md +0 -209
- package/lib/components/pisellEntityCard/docs/pisellEntityCard.$tab-dev.md +0 -82
- package/lib/components/pisellEntityCard/docs/pisellEntityCard.$tab-test.md +0 -122
- package/lib/components/pisellEntityCard/docs/pisellEntityCard.md +0 -176
- package/lib/components/pisellEntityCard/index.d.ts +0 -2
- package/lib/components/pisellEntityCard/types.d.ts +0 -148
- package/lib/components/pisellExport/PisellExport.d.ts +0 -11
- package/lib/components/pisellExport/PisellExport.js +0 -47
- package/lib/components/pisellExport/PisellExport.less +0 -141
- package/lib/components/pisellExport/docs/pisellExport.$tab-design.md +0 -116
- package/lib/components/pisellExport/docs/pisellExport.$tab-dev.md +0 -132
- package/lib/components/pisellExport/docs/pisellExport.$tab-test.md +0 -61
- package/lib/components/pisellExport/docs/pisellExport.md +0 -162
- package/lib/components/pisellExport/index.d.ts +0 -2
- package/lib/components/pisellExport/types.d.ts +0 -67
- package/lib/components/pisellImport/PisellImport.d.ts +0 -11
- package/lib/components/pisellImport/PisellImport.js +0 -84
- package/lib/components/pisellImport/PisellImport.less +0 -141
- package/lib/components/pisellImport/docs/pisellImport.$tab-design.md +0 -121
- package/lib/components/pisellImport/docs/pisellImport.$tab-dev.md +0 -137
- package/lib/components/pisellImport/docs/pisellImport.$tab-test.md +0 -69
- package/lib/components/pisellImport/docs/pisellImport.md +0 -174
- package/lib/components/pisellImport/index.d.ts +0 -2
- package/lib/components/pisellImport/types.d.ts +0 -89
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.js +0 -3813
- package/lib/components/productCard/components/Header/Actions/index.less +0 -15
- package/lib/theme/pisell-components.js +0 -76
- /package/es/components/pisellQuickFilter/{doc → docs}/PisellQuickFilter.$tab-design.md +0 -0
- /package/es/components/pisellQuickFilter/{doc → docs}/PisellQuickFilter.$tab-dev.md +0 -0
- /package/es/components/pisellQuickFilter/{doc → docs}/PisellQuickFilter.$tab-test.md +0 -0
- /package/lib/components/pisellQuickFilter/{doc → docs}/PisellQuickFilter.$tab-design.md +0 -0
- /package/lib/components/pisellQuickFilter/{doc → docs}/PisellQuickFilter.$tab-dev.md +0 -0
- /package/lib/components/pisellQuickFilter/{doc → docs}/PisellQuickFilter.$tab-test.md +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FloorMapDataSources, FloorMapLayoutContextValue, PisellFloorMapLayoutProps, PisellFloorMapLayoutRef } from "../pisellFloorMapLayout/types.js";
|
|
2
2
|
import { TimeRangeOption } from "../pisellTimeNavigator/types.js";
|
|
3
3
|
import { CalendarPersistContextValue } from "./shellFrame/Calendar/calendarPersistGuard.js";
|
|
4
|
+
import { VenueWallAppearanceTheme, VenueWallStatusToneOverrides } from "./shellFrame/ResourceWall/venueWallUtils.js";
|
|
4
5
|
import { CSSProperties, ComponentType, Key, ReactNode, Ref } from "react";
|
|
5
6
|
import { TableProps } from "antd";
|
|
6
7
|
|
|
@@ -12,6 +13,11 @@ import { TableProps } from "antd";
|
|
|
12
13
|
* 后续可扩展 list、kanban 等
|
|
13
14
|
*/
|
|
14
15
|
type RecordBoardLayoutType = 'grid' | 'card';
|
|
16
|
+
/**
|
|
17
|
+
* 列表区布局变体:`phone` 时 Grid 收紧列宽与单元格 padding,ToolBar 可配合 compact-narrow。
|
|
18
|
+
* 与业务组件 `variant="phone"` 对齐,由宿主显式传入 RecordBoard。
|
|
19
|
+
*/
|
|
20
|
+
type RecordBoardLayoutVariant = 'default' | 'phone';
|
|
15
21
|
/**
|
|
16
22
|
* 列字段类型:对应 Pisell 表单组件,传入列 type 时用该组件自动渲染列(只读)与筛选项(编辑)
|
|
17
23
|
*/
|
|
@@ -115,8 +121,8 @@ interface RecordBoardPaginationState {
|
|
|
115
121
|
pageNumber: number;
|
|
116
122
|
pageSize: number;
|
|
117
123
|
}
|
|
118
|
-
/** ShellFrame
|
|
119
|
-
type RecordBoardBodyView = 'grid' | 'floorMap' | 'calendar';
|
|
124
|
+
/** ShellFrame 内容区:表格、平面图、日历或大屏资源墙(与 GridLayout 同级切换) */
|
|
125
|
+
type RecordBoardBodyView = 'grid' | 'floorMap' | 'calendar' | 'resourceWall';
|
|
120
126
|
/** 日历 Y 轴资源行(与 BookingCalendarDemo 中 court 对齐) */
|
|
121
127
|
interface RecordBoardCalendarResource {
|
|
122
128
|
id: string;
|
|
@@ -143,9 +149,180 @@ interface RecordBoardCalendarBookingLike {
|
|
|
143
149
|
blockedAt?: string;
|
|
144
150
|
raw?: Record<string, unknown>;
|
|
145
151
|
}
|
|
152
|
+
/** 日视图时间轴上的一条预约 overlay(与 BookingCalendarDemo 内部结构对齐) */
|
|
153
|
+
interface RecordBoardCalendarDayOverlayBooking {
|
|
154
|
+
item: RecordBoardCalendarBookingLike;
|
|
155
|
+
courtId: string;
|
|
156
|
+
start: number;
|
|
157
|
+
end: number;
|
|
158
|
+
span: number;
|
|
159
|
+
rowTop: number;
|
|
160
|
+
rowHeight: number;
|
|
161
|
+
rowIndex: number;
|
|
162
|
+
lane?: number;
|
|
163
|
+
laneCount?: number;
|
|
164
|
+
continuesNext?: boolean;
|
|
165
|
+
continuesPrev?: boolean;
|
|
166
|
+
}
|
|
167
|
+
/** 表头时间分组合并(声明式);与 {@link RecordBoardCalendarProps.renderTimelineHeader} 二选一优先用 render */
|
|
168
|
+
interface RecordBoardCalendarTimelineHeaderGroup {
|
|
169
|
+
/** 含 0,对应 `hourSlots` 下标 */
|
|
170
|
+
startSlotIndex: number;
|
|
171
|
+
/** 含,须 ≥ startSlotIndex */
|
|
172
|
+
endSlotIndex: number;
|
|
173
|
+
label: ReactNode;
|
|
174
|
+
}
|
|
175
|
+
/** 自定义时间列表头时注入的上下文 */
|
|
176
|
+
interface RecordBoardCalendarTimelineHeaderRenderContext {
|
|
177
|
+
anchorDate: Date;
|
|
178
|
+
/** 各列左边界钟点(相对锚日 0 点的浮点小时,与现 hourSlots 一致) */
|
|
179
|
+
hourSlots: number[];
|
|
180
|
+
slotStepMinutes: number;
|
|
181
|
+
/** 单列像素宽:与历史日视图整点列宽一致(每槽一列,细粒度时列数变多、横向滚动) */
|
|
182
|
+
slotColWidthPx: number;
|
|
183
|
+
isLight: boolean;
|
|
184
|
+
firstTimelineHour: number;
|
|
185
|
+
endTimelineExclusive: number;
|
|
186
|
+
isBusinessHour: (hour: number) => boolean;
|
|
187
|
+
formatHourLabel: (hour: number) => string;
|
|
188
|
+
/** 与 `hourSlots[i]` 一致 */
|
|
189
|
+
getSlotStartHour: (slotIndex: number) => number;
|
|
190
|
+
slotCount: number;
|
|
191
|
+
/** 每槽「空闲场地数 / 总场地」等,键为槽起点钟点 */
|
|
192
|
+
dayHourRemaining: Record<number, {
|
|
193
|
+
remaining: number;
|
|
194
|
+
total: number;
|
|
195
|
+
ratio: number;
|
|
196
|
+
}>;
|
|
197
|
+
}
|
|
198
|
+
/** 自定义左侧资源格 */
|
|
199
|
+
interface RecordBoardCalendarResourceRenderArgs {
|
|
200
|
+
view: 'resource' | 'day' | 'week' | 'month';
|
|
201
|
+
row: {
|
|
202
|
+
kind: 'court' | 'group';
|
|
203
|
+
id: string;
|
|
204
|
+
name?: string;
|
|
205
|
+
label?: string;
|
|
206
|
+
count?: number;
|
|
207
|
+
collapsed?: boolean;
|
|
208
|
+
type?: string;
|
|
209
|
+
};
|
|
210
|
+
isLight: boolean;
|
|
211
|
+
/** 分组行折叠切换(仅 group 行有意义) */
|
|
212
|
+
onToggleGroup?: (groupLabel: string) => void;
|
|
213
|
+
}
|
|
214
|
+
/** 自定义日视图中间预约条外层容器内层(定位仍由日历负责) */
|
|
215
|
+
interface RecordBoardCalendarBookingRenderArgs {
|
|
216
|
+
booking: RecordBoardCalendarDayOverlayBooking;
|
|
217
|
+
dayKey: string;
|
|
218
|
+
calendarView: 'resource' | 'day' | 'week' | 'month';
|
|
219
|
+
isLight: boolean;
|
|
220
|
+
/** 日视图时间轴上该预约条当前绘制宽度(像素),便于窄条用 Tooltip / minWidth 等策略展示信息 */
|
|
221
|
+
overlayWidthPx: number;
|
|
222
|
+
onOpenDetail: (item: RecordBoardCalendarBookingLike) => void;
|
|
223
|
+
onDragStart: (item: RecordBoardCalendarBookingLike) => void;
|
|
224
|
+
onJumpNext: () => void;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* 月 / 周格内单条预约插槽参数。
|
|
228
|
+
* 未使用 {@link RecordBoardCalendarProps.renderMonthWeekBooking} 时,月 / 周格仅默认 booking(紫)/ block(红),不展示状态徽标与按状态的底色。
|
|
229
|
+
*/
|
|
230
|
+
interface RecordBoardCalendarGridBookingRenderArgs {
|
|
231
|
+
item: RecordBoardCalendarBookingLike;
|
|
232
|
+
dateKey: string;
|
|
233
|
+
view: 'month' | 'week' | 'resource';
|
|
234
|
+
isLight: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* 日历建议的外层样式(圆角、内边距、默认 booking/block 底色),可与自定义 `className` 拼接。
|
|
237
|
+
* 宿主若完全自定义外观,可忽略本字段。
|
|
238
|
+
*/
|
|
239
|
+
layoutClassName: string;
|
|
240
|
+
onOpenDetail: (item: RecordBoardCalendarBookingLike) => void;
|
|
241
|
+
/** 开始拖拽(月视图内置会处理 `draggable`;周格当前未挂 draggable,可自行在插槽内处理) */
|
|
242
|
+
onDragStart?: (item: RecordBoardCalendarBookingLike) => void;
|
|
243
|
+
draggable: boolean;
|
|
244
|
+
}
|
|
245
|
+
/** 拖拽改期的投放目标(与日历内部确认态 moveDraft 字段一致)。 */
|
|
246
|
+
interface RecordBoardBookingMoveDraft {
|
|
247
|
+
targetCourtId: string;
|
|
248
|
+
/** `YYYY-MM-DD` */
|
|
249
|
+
targetDate: string;
|
|
250
|
+
/** 与日历 `hourSlots` 一致的浮点起点小时(可含半格如 9.5) */
|
|
251
|
+
targetHour: number;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* 对接 `POST /shop/schedule/blocked-time` 的请求体(与后台字段一致)。
|
|
255
|
+
*/
|
|
256
|
+
interface RecordBoardCalendarBlockedTimePayload {
|
|
257
|
+
name: string;
|
|
258
|
+
note?: string;
|
|
259
|
+
resource_ids: number[];
|
|
260
|
+
blocked_sales_channels: string[];
|
|
261
|
+
/** `YYYY-MM-DD HH:mm` */
|
|
262
|
+
start_time: string;
|
|
263
|
+
/** `YYYY-MM-DD HH:mm` */
|
|
264
|
+
end_time: string;
|
|
265
|
+
}
|
|
266
|
+
/** 日视图连续空闲槽合并后的一段(与内置锁台面版预填一致) */
|
|
267
|
+
interface RecordBoardBlockedTimeMergedRange {
|
|
268
|
+
courtId: string;
|
|
269
|
+
/** `YYYY-MM-DD` */
|
|
270
|
+
date: string;
|
|
271
|
+
/** 与时间轴一致的浮点小时 */
|
|
272
|
+
startHour: number;
|
|
273
|
+
endHour: number;
|
|
274
|
+
}
|
|
275
|
+
/** 日视图多选的空闲格 */
|
|
276
|
+
interface RecordBoardCalendarSelectedFreeSlot {
|
|
277
|
+
courtId: string;
|
|
278
|
+
date: string;
|
|
279
|
+
hour: number;
|
|
280
|
+
court?: string;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* 日视图「从选区新建」:与 {@link groupSelectedSlots} 合并后的一段一致(单 court、单日、连续小时)。
|
|
284
|
+
*/
|
|
285
|
+
interface RecordBoardCreateBookingDayGroup {
|
|
286
|
+
courtId: string;
|
|
287
|
+
/** `YYYY-MM-DD` */
|
|
288
|
+
date: string;
|
|
289
|
+
startHour: number;
|
|
290
|
+
endHour: number;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* 底部栏「新建预约」传给宿主的上下文。
|
|
294
|
+
* 传入 {@link RecordBoardCalendarProps.onCreateBookingFromSelection} 后,
|
|
295
|
+
* 日历**不再**调用 {@link CalendarPersistContextValue.beforePersist} / **不再**写入本地 `bookings`
|
|
296
|
+
*(适用于 Pisell Reservation 等受控数据源场景)。
|
|
297
|
+
*/
|
|
298
|
+
type RecordBoardCreateBookingFromSelectionPayload = {
|
|
299
|
+
mode: 'day';
|
|
300
|
+
groups: RecordBoardCreateBookingDayGroup[];
|
|
301
|
+
} | {
|
|
302
|
+
mode: 'resource';
|
|
303
|
+
courtId: string; /** 升序 `YYYY-MM-DD` */
|
|
304
|
+
dates: string[];
|
|
305
|
+
startHour: number;
|
|
306
|
+
endHour: number;
|
|
307
|
+
};
|
|
308
|
+
/** 宿主弹出锁台/屏蔽表单时由日历传入的上下文(替代内置锁台面版) */
|
|
309
|
+
interface RecordBoardBlockedTimePanelPayload {
|
|
310
|
+
/** 槽位步长(小时),与日历内部 `slotStepHours` 一致 */
|
|
311
|
+
slotStepHours: number;
|
|
312
|
+
/** 与 {@link RecordBoardCalendarProps.slotStepMinutes} 一致 */
|
|
313
|
+
slotStepMinutes: number;
|
|
314
|
+
/** 日视图锚定日 `YYYY-MM-DD` */
|
|
315
|
+
dayKey: string;
|
|
316
|
+
selectedFreeSlots: RecordBoardCalendarSelectedFreeSlot[];
|
|
317
|
+
mergedRange: RecordBoardBlockedTimeMergedRange;
|
|
318
|
+
}
|
|
146
319
|
/** 日历视图槽位 props:由 Shell 合并根级与子槽后传入 PisellRecordBoardCalendarView */
|
|
147
320
|
interface RecordBoardCalendarProps {
|
|
148
321
|
persistGuard?: CalendarPersistContextValue;
|
|
322
|
+
/**
|
|
323
|
+
* 日历画布外观:亮色切换 `theme-root.theme-light`;未传或 `dark` 为深色(默认)。
|
|
324
|
+
*/
|
|
325
|
+
appearance?: 'light' | 'dark';
|
|
149
326
|
className?: string;
|
|
150
327
|
style?: CSSProperties;
|
|
151
328
|
/** 受控:画布等资源行;不传则使用内置演示数据 */
|
|
@@ -157,8 +334,18 @@ interface RecordBoardCalendarProps {
|
|
|
157
334
|
* 点击预约条。返回 true 表示已消费(不再打开内置详情抽屉)。
|
|
158
335
|
*/
|
|
159
336
|
onBookingClick?: (item: RecordBoardCalendarBookingLike) => boolean | void;
|
|
337
|
+
/**
|
|
338
|
+
* 拖拽预约条松手且投放合法后,由宿主接管确认与持久化(例如业务侧 booking 改约弹窗)。
|
|
339
|
+
* **传入后**日历不再弹出内置 MoveConfirmModal,也不会写入本地 bookings。
|
|
340
|
+
* 返回 `true` 表示宿主已视为完成(一般由弹窗 resolve);`false`/`undefined`/reject 表示未生效。
|
|
341
|
+
*/
|
|
342
|
+
onBookingMoveRequest?: (payload: {
|
|
343
|
+
item: RecordBoardCalendarBookingLike;
|
|
344
|
+
draft: RecordBoardBookingMoveDraft;
|
|
345
|
+
}) => Promise<boolean | void>;
|
|
160
346
|
/**
|
|
161
347
|
* 锚点日 / 视图变化(月、周、日),用于父级扩展 booking 请求时间窗。
|
|
348
|
+
* 宿主导出时建议对拉数做 **debounce**(如 200–300ms),与切 `bodyView`、切日等快速操作对齐,避免重复请求。
|
|
162
349
|
*/
|
|
163
350
|
onViewportChange?: (payload: {
|
|
164
351
|
view: string;
|
|
@@ -167,8 +354,8 @@ interface RecordBoardCalendarProps {
|
|
|
167
354
|
rangeEnd: Date;
|
|
168
355
|
}) => void;
|
|
169
356
|
/** 当前日历粒度(与顶栏 Segmented 一致);不传则组件内默认 `month` */
|
|
170
|
-
calendarView?: 'day' | 'week' | 'month';
|
|
171
|
-
onCalendarViewChange?: (view: 'day' | 'week' | 'month') => void;
|
|
357
|
+
calendarView?: 'resource' | 'day' | 'week' | 'month';
|
|
358
|
+
onCalendarViewChange?: (view: 'resource' | 'day' | 'week' | 'month') => void;
|
|
172
359
|
/** 锚点日(通常与营业日 `schedule.date` 对齐);不传则组件内默认日期 */
|
|
173
360
|
anchorDate?: Date;
|
|
174
361
|
/** 日历内交互(如跨日跳转)更新锚点时回调,由父级写回日程 */
|
|
@@ -178,11 +365,156 @@ interface RecordBoardCalendarProps {
|
|
|
178
365
|
* 不传时日历演示默认 02:00–次日 02:00。
|
|
179
366
|
*/
|
|
180
367
|
timelineRange?: TimeRangeOption;
|
|
368
|
+
/**
|
|
369
|
+
* 日视图时间轴列步长(分钟)。须能整除 60 或与业务约定一致;默认 **60**(与历史「整点列」一致)。
|
|
370
|
+
* Pisell Reservation 等业务可在私有包组装 props 时默认传 10。
|
|
371
|
+
*/
|
|
372
|
+
slotStepMinutes?: number;
|
|
373
|
+
/**
|
|
374
|
+
* 保存「屏蔽时间」时提交(如 `/shop/schedule/blocked-time`)。
|
|
375
|
+
* 返回 `false` 表示未成功(弹窗保持);`true` 或 `undefined` 视为成功并关闭弹窗、清空选中。
|
|
376
|
+
* 若同时传 {@link onBlockedTimePanelRequest},内置锁台面版不再展示,本回调仅在内置路径生效。
|
|
377
|
+
*/
|
|
378
|
+
onBlockedTimeSave?: (payload: RecordBoardCalendarBlockedTimePayload) => Promise<boolean | void>;
|
|
379
|
+
/**
|
|
380
|
+
* 日视图选中连续空闲槽并点「屏蔽」时,由宿主弹出锁台表单(替代内置锁台面版)。
|
|
381
|
+
* **传入后**不再渲染内置屏蔽弹层;未传时仍使用内置表单 + {@link onBlockedTimeSave}。
|
|
382
|
+
*/
|
|
383
|
+
onBlockedTimePanelRequest?: (payload: RecordBoardBlockedTimePanelPayload) => Promise<boolean | void>;
|
|
384
|
+
/**
|
|
385
|
+
* 日视图 / 资源视图:选中合法连续区间并点「新建预约」时由宿主接管(打开新建弹窗、跳转路由等)。
|
|
386
|
+
* **传入后**日历跳过内置本地写入与 {@link persistGuard} 拦截。
|
|
387
|
+
* 返回 `false` 表示未消费,选中态保留;其余视为成功并清空选区。
|
|
388
|
+
*/
|
|
389
|
+
onCreateBookingFromSelection?: (payload: RecordBoardCreateBookingFromSelectionPayload) => boolean | void | Promise<boolean | void>;
|
|
390
|
+
/** 与接口 `blocked_sales_channels` 一致;默认 `['online_store']` */
|
|
391
|
+
blockedTimeSalesChannels?: string[];
|
|
392
|
+
/**
|
|
393
|
+
* 完全自定义日视图时间列表头(不含左上角日期角格)。未传时按槽渲染默认表头;
|
|
394
|
+
* 若同时传 {@link timelineHeaderGroups},则先渲染分组行再渲染默认/本插槽由实现约定:当前实现为先分组行再默认槽行。
|
|
395
|
+
*/
|
|
396
|
+
renderTimelineHeader?: (ctx: RecordBoardCalendarTimelineHeaderRenderContext) => ReactNode;
|
|
397
|
+
/**
|
|
398
|
+
* 在时间槽行上方增加一行合并表头(列宽与槽位对齐)。
|
|
399
|
+
* 若同时传 {@link renderTimelineHeader},则仅渲染插槽,**忽略**本字段。
|
|
400
|
+
*/
|
|
401
|
+
timelineHeaderGroups?: RecordBoardCalendarTimelineHeaderGroup[];
|
|
402
|
+
/**
|
|
403
|
+
* 自定义日视图时间轴上的预约条内容(仅日视图 overlay 生效;月 / 周见 {@link renderMonthWeekBooking})。
|
|
404
|
+
*/
|
|
405
|
+
renderBooking?: (args: RecordBoardCalendarBookingRenderArgs) => ReactNode;
|
|
406
|
+
/**
|
|
407
|
+
* 自定义月 / 周格内单条预约。未传时仅默认 booking / block 样式与名称、时间,不展示迟到/取消等状态徽标与状态变色。
|
|
408
|
+
*/
|
|
409
|
+
renderMonthWeekBooking?: (args: RecordBoardCalendarGridBookingRenderArgs) => ReactNode;
|
|
410
|
+
/** 自定义周/日视图左侧资源列单元 */
|
|
411
|
+
renderResourceCell?: (args: RecordBoardCalendarResourceRenderArgs) => ReactNode;
|
|
181
412
|
}
|
|
182
413
|
/**
|
|
183
414
|
* 平面图槽位 props:与 PisellFloorMapLayout 对齐;items/renderItem 可省略(由 RecordBoard 默认 [] / () => null)。
|
|
184
415
|
*/
|
|
185
416
|
type RecordBoardFloorMapProps = Partial<PisellFloorMapLayoutProps>;
|
|
417
|
+
/** 大屏资源墙单卡数据(与画布资源 id 对齐,见 {@link resourceId}) */
|
|
418
|
+
interface RecordBoardResourceWallCardModel {
|
|
419
|
+
/** 与日历/画布 `form_record` id 一致 */
|
|
420
|
+
resourceId: string;
|
|
421
|
+
resource: string;
|
|
422
|
+
/** 资源类型等次级标签(如表单 `form_code`);大屏卡左上角展示于资源名上方 */
|
|
423
|
+
area?: string;
|
|
424
|
+
/**
|
|
425
|
+
* 资源墙展示态:由业务兼容层(如预约页)基于 booking.status + now + start/end 计算。
|
|
426
|
+
* materials 侧仅按该字段渲染,不再做 light/时间窗口推断。
|
|
427
|
+
*/
|
|
428
|
+
status?: 'available' | 'inUse' | 'boardingSoon' | 'late' | 'endingSoon' | 'expired';
|
|
429
|
+
currentTime?: string;
|
|
430
|
+
currentBooking?: string;
|
|
431
|
+
/** boardingSoon:距离开始分钟;inUse/endingSoon/expired:距离结束分钟 */
|
|
432
|
+
startsInMin?: number;
|
|
433
|
+
/** late:已超过开始时间但仍未占用(分钟,递增) */
|
|
434
|
+
lateMin?: number;
|
|
435
|
+
remainingMin?: number;
|
|
436
|
+
/**
|
|
437
|
+
* 占用态当前场次 Unix 毫秒时间戳(宿主可用 booking start/end 回填)。
|
|
438
|
+
* 大屏进度条优先用其与墙钟差值连续更新;缺省时退回「剩余分钟漂移 / 60」。
|
|
439
|
+
*/
|
|
440
|
+
sessionStartMs?: number;
|
|
441
|
+
sessionEndMs?: number;
|
|
442
|
+
nextList?: Array<{
|
|
443
|
+
time: string;
|
|
444
|
+
booking: string;
|
|
445
|
+
startInMin: number;
|
|
446
|
+
}>;
|
|
447
|
+
/**
|
|
448
|
+
* 当前区展示的是「尚未开始」的预约时:主面板小标题用「下一预约」文案,且不再单独渲染下方 Next 条带。
|
|
449
|
+
*/
|
|
450
|
+
wallUseNextLabelHideNextRow?: boolean;
|
|
451
|
+
/**
|
|
452
|
+
* @deprecated light 相关状态已弃用(2026-04):资源墙仅保留 5 态,不再渲染 light 文案。
|
|
453
|
+
* 旧字段暂保留以兼容历史数据源,但不会再被 materials 使用。
|
|
454
|
+
*/
|
|
455
|
+
lightState?: 'off' | 'off_soon_on' | 'on_soon_off';
|
|
456
|
+
/** @deprecated */
|
|
457
|
+
lightOnInMin?: number;
|
|
458
|
+
/** @deprecated */
|
|
459
|
+
lightOffInMin?: number;
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* 控制台「Resource & Layout」中与版式/轮播相关的可持久化字段(不含资源多选,其走 filter;不含配色,其走 appearanceTheme)。
|
|
463
|
+
*/
|
|
464
|
+
interface RecordBoardResourceWallLayoutPersist {
|
|
465
|
+
layoutKey: string;
|
|
466
|
+
customCols: number;
|
|
467
|
+
customRows: number;
|
|
468
|
+
pageDurationSec: number;
|
|
469
|
+
boardingSoonBeforeMin: number;
|
|
470
|
+
heroMaxWidthRatio: number;
|
|
471
|
+
}
|
|
472
|
+
/** {@link RecordBoardResourceWallLayoutPersist} 默认值,与 {@link PisellRecordBoardResourceWallView} 历史初始 state 一致 */
|
|
473
|
+
declare const DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST: RecordBoardResourceWallLayoutPersist;
|
|
474
|
+
/**
|
|
475
|
+
* 大屏资源墙视图 props;与 Shell 内 `PisellRecordBoard.ResourceWall` 合并(子优先)。
|
|
476
|
+
* 展示顺序默认由 `searchParams.filter.values[filterFieldKey]`(默认 `resource_wall_resource_ids`)非空 `string[]` 决定;
|
|
477
|
+
* **未写该键、值非数组、或 `[]`**:不展示卡片。**仅渲染 `cards` 中能按 `resourceId` 命中的项**;
|
|
478
|
+
* 命中不到的 id(例如磁盘残留的旧店铺 / 已删资源)直接剔除、不再回退成「数字占位卡」,磁盘清洗由宿主负责。
|
|
479
|
+
* 当 `searchParams.sort` 的字段名与 {@link RecordBoardResourceWallProps.statusSortFieldKeys} 匹配(默认 `status`)时,
|
|
480
|
+
* 在筛选顺序基础上按卡占用态重排:升序空闲在前,降序占用(inUse/将结/已结束)在前。
|
|
481
|
+
*/
|
|
482
|
+
interface RecordBoardResourceWallProps {
|
|
483
|
+
className?: string;
|
|
484
|
+
style?: CSSProperties;
|
|
485
|
+
/** 全量卡片;展示时按快筛字段过滤 */
|
|
486
|
+
cards?: RecordBoardResourceWallCardModel[];
|
|
487
|
+
loading?: boolean;
|
|
488
|
+
/**
|
|
489
|
+
* 与 ToolBar 快筛里多选字段的 `name`/`key` 一致,用于从 context.searchParams.filter.values 读取 string[]。
|
|
490
|
+
* @default 'resource_wall_resource_ids'
|
|
491
|
+
*/
|
|
492
|
+
filterFieldKey?: string;
|
|
493
|
+
/**
|
|
494
|
+
* 与 ToolBar `searchParams.sort` 首段字段名比对(忽略大小写);命中时资源墙按卡状态重排。
|
|
495
|
+
* 列 key 不是 `status` 时传入实际字段名,例如 `['courtStatus']`。
|
|
496
|
+
* @default ['status']
|
|
497
|
+
*/
|
|
498
|
+
statusSortFieldKeys?: string[];
|
|
499
|
+
/** 六态文案/配色覆盖(与默认 map 浅合并);通常由宿主从 localStorage 水合 */
|
|
500
|
+
statusToneOverrides?: VenueWallStatusToneOverrides;
|
|
501
|
+
/** 覆盖变更时回调,宿主可写入 localStorage */
|
|
502
|
+
onStatusToneOverridesChange?: (next: VenueWallStatusToneOverrides) => void;
|
|
503
|
+
/**
|
|
504
|
+
* 浅 / 深外观各自的卡面主色与六态覆盖;与 {@link onAppearanceThemeChange} 配合由宿主持久化。
|
|
505
|
+
* 未传入时由视图内部维护(刷新丢失)。
|
|
506
|
+
*/
|
|
507
|
+
appearanceTheme?: VenueWallAppearanceTheme;
|
|
508
|
+
onAppearanceThemeChange?: (next: VenueWallAppearanceTheme) => void;
|
|
509
|
+
/** 当前大屏外观:浅色 / 深色;与 {@link onAppearanceModeChange} 一并由宿主导入 localStorage */
|
|
510
|
+
appearanceMode?: 'light' | 'dark';
|
|
511
|
+
onAppearanceModeChange?: (mode: 'light' | 'dark') => void;
|
|
512
|
+
/**
|
|
513
|
+
* 版式与轮播等;与 {@link onResourceWallLayoutChange} 由宿主导入 localStorage(预约页)。
|
|
514
|
+
*/
|
|
515
|
+
resourceWallLayout?: Partial<RecordBoardResourceWallLayoutPersist>;
|
|
516
|
+
onResourceWallLayoutChange?: (next: RecordBoardResourceWallLayoutPersist) => void;
|
|
517
|
+
}
|
|
186
518
|
/**
|
|
187
519
|
* RecordBoard 容器 Context 值
|
|
188
520
|
* 与具体 layout 类型无关,所有 layout 共用同一套数据与操作
|
|
@@ -215,6 +547,11 @@ interface RecordBoardContextValue {
|
|
|
215
547
|
onReset?: () => void;
|
|
216
548
|
/** 当前布局类型,供子组件按需做差异化 */
|
|
217
549
|
layoutType: RecordBoardLayoutType;
|
|
550
|
+
/**
|
|
551
|
+
* 表格/工具栏手机紧凑布局;`phone` 时 Grid 应用列宽缩放与 `--phone` 样式。
|
|
552
|
+
* @default 'default'
|
|
553
|
+
*/
|
|
554
|
+
layoutVariant?: RecordBoardLayoutVariant;
|
|
218
555
|
/** 多选:当前选中的 key 列表 */
|
|
219
556
|
selectedKeys: Key[];
|
|
220
557
|
/** 多选:当前选中的行数据 */
|
|
@@ -236,6 +573,15 @@ interface RecordBoardContextValue {
|
|
|
236
573
|
onColumnOrderChange?: (columnKeys: string[]) => void;
|
|
237
574
|
/** 各子组件透传 props,由 Provider 注入 */
|
|
238
575
|
childComponentProps?: RecordBoardChildComponentProps;
|
|
576
|
+
/**
|
|
577
|
+
* 业务方完全自定义的分页渲染(从根 props 透传过来)。
|
|
578
|
+
* `<RecordBoardPagination />` 优先级:组件 `render` prop > 此 ctx 字段 > 默认 materials Pagination。
|
|
579
|
+
*/
|
|
580
|
+
paginationRender?: (ctx: RecordBoardContextValue) => React.ReactNode;
|
|
581
|
+
/**
|
|
582
|
+
* 与 `grid.infiniteScroll` 同步:为 true 时不渲染 ShellFrame 底部分页,由 Grid 表体触底触发翻页。
|
|
583
|
+
*/
|
|
584
|
+
gridInfiniteScroll?: boolean;
|
|
239
585
|
/** 是否占满父容器高度,供 ShellFrame 做弹性布局(内容区纯 CSS 滚动 + 表头 sticky;scroll.autoCalc 时用测量高度) */
|
|
240
586
|
fillHeight?: boolean;
|
|
241
587
|
/** 内容区滚动容器高度(fillHeight 且 grid.scroll.autoCalc 时由 ShellFrame 测量),供 Grid 计算 scroll.y */
|
|
@@ -268,6 +614,8 @@ interface RecordBoardContextValue {
|
|
|
268
614
|
floorMapFooter?: ReactNode;
|
|
269
615
|
/** 根级传入的日历视图 props(可选);与 ShellFrame 内 Calendar 子组件合并,子优先 */
|
|
270
616
|
calendarProps?: RecordBoardCalendarProps;
|
|
617
|
+
/** 根级传入的大屏资源墙 props(可选);与 ShellFrame 内 ResourceWall 子组件合并,子优先 */
|
|
618
|
+
resourceWallProps?: RecordBoardResourceWallProps;
|
|
271
619
|
}
|
|
272
620
|
/**
|
|
273
621
|
* 各 layout 下子组件的可选透传配置(类似 ChildComponentProps)
|
|
@@ -288,9 +636,13 @@ type RecordBoardFilterProps = Record<string, any>;
|
|
|
288
636
|
interface RecordBoardToolBarProps {
|
|
289
637
|
/**
|
|
290
638
|
* `compact`:Find / 快筛 / 排序筛选 / 重置 / 视图切换等统一小号,用于窄容器(如 HUD 内嵌表)。
|
|
639
|
+
* `compact-narrow`:极窄容器(如 HUD 抽屉)下的进一步压缩 ──
|
|
640
|
+
* - Find 退化为图标触发器(弹搜索 Modal/Drawer),不再常驻 input
|
|
641
|
+
* - 列显示 / 排序 / 筛选合并到一个齿轮按钮的 Popover 内
|
|
642
|
+
* - Reset 仍单独保留(快捷高频动作)
|
|
291
643
|
* @default 'default'
|
|
292
644
|
*/
|
|
293
|
-
toolbarDensity?: 'default' | 'compact';
|
|
645
|
+
toolbarDensity?: 'default' | 'compact' | 'compact-narrow';
|
|
294
646
|
className?: string;
|
|
295
647
|
style?: React.CSSProperties;
|
|
296
648
|
tabs?: React.ReactNode;
|
|
@@ -302,7 +654,11 @@ interface RecordBoardToolBarProps {
|
|
|
302
654
|
search?: boolean | RecordBoardSearchProps;
|
|
303
655
|
/** 在 ToolBar 右侧渲染筛选:默认 PisellFilter;对象透传 PisellFilter props;false 不渲染。值存于 searchParams.filter */
|
|
304
656
|
filter?: boolean | RecordBoardFilterProps;
|
|
305
|
-
/**
|
|
657
|
+
/**
|
|
658
|
+
* 在 ToolBar 内、筛选左侧渲染排序:默认 Sort;对象可传 list、placement 等;false 不渲染。值存于 searchParams.sort。
|
|
659
|
+
* 资源墙视图:排序**菜单内**仅保留「状态」相关项(其余排序仅在表格等视图出现);若无状态列派生项,会注入「空闲优先 / 占用优先」子项。
|
|
660
|
+
* 可传 `resourceWallSortFieldKeys: string[]` 与非 `status` 列 key 对齐。表格/平面图/日历仍使用完整排序列表。
|
|
661
|
+
*/
|
|
306
662
|
sort?: boolean | Record<string, any>;
|
|
307
663
|
/**
|
|
308
664
|
* 在 ToolBar 左侧展示内联快速筛选(替代 Filter 弹层内的 quickFilter)。
|
|
@@ -313,6 +669,17 @@ interface RecordBoardToolBarProps {
|
|
|
313
669
|
quickFilter?: boolean | Record<string, any>;
|
|
314
670
|
/** 列显示隐藏设置入口;默认 true(有 grid.columns 时显示);false 时不渲染 */
|
|
315
671
|
columnSetting?: boolean;
|
|
672
|
+
/**
|
|
673
|
+
* 为 true 时不渲染顶栏 Segmented 视图切换(业务在 topLeft / tabs 内自绘切换器时使用,如手机 Table 下拉)。
|
|
674
|
+
* @default false
|
|
675
|
+
*/
|
|
676
|
+
hideBodyViewToggle?: boolean;
|
|
677
|
+
/**
|
|
678
|
+
* 仅 `toolbarDensity: 'compact-narrow'` 且存在左侧内联快筛时生效:
|
|
679
|
+
* 将搜索图标 + 齿轮与快筛同置于一行 `flex-wrap` 容器,尾部 `margin-inline-start: auto`,
|
|
680
|
+
* 以便快筛按钮换行后图标组与**最后一行**快筛右缘对齐(HUD 抽屉等极窄场景)。
|
|
681
|
+
*/
|
|
682
|
+
mergeCompactNarrowTrailingWithQuickFilterRow?: boolean;
|
|
316
683
|
}
|
|
317
684
|
/** Search 透传配置,与 PisellFind 的 props 对齐 */
|
|
318
685
|
type RecordBoardSearchProps = Record<string, any>;
|
|
@@ -341,7 +708,25 @@ type RecordBoardGridProps = {
|
|
|
341
708
|
y?: number | string;
|
|
342
709
|
autoCalc?: boolean;
|
|
343
710
|
scrollToFirstRowOnChange?: boolean;
|
|
344
|
-
};
|
|
711
|
+
};
|
|
712
|
+
/**
|
|
713
|
+
* 为 true 时:表体滚动触底触发 `onPageChange` 加载下一页,ShellFrame **不展示**底部分页条。
|
|
714
|
+
* 宿主需保证 `data` 为已加载的**累积**行(或 dataSources 模式由容器做累积切片),且 `total` 为总量;触底停更条件为 `data.length < total`。
|
|
715
|
+
*/
|
|
716
|
+
infiniteScroll?: boolean;
|
|
717
|
+
/**
|
|
718
|
+
* 仅 `layoutVariant="phone"` 时生效:列 key → 最大宽度(px)。
|
|
719
|
+
*/
|
|
720
|
+
phoneColumnWidthCaps?: Record<string, number>;
|
|
721
|
+
/**
|
|
722
|
+
* 仅 `layoutVariant="phone"` 时生效:列 key → 相对原 width 的缩放比例;未配置列使用 phoneColumnWidthRatio。
|
|
723
|
+
*/
|
|
724
|
+
phoneColumnWidthRatioByKey?: Record<string, number>;
|
|
725
|
+
/**
|
|
726
|
+
* 仅 `layoutVariant="phone"` 时生效:默认列宽缩放比例。
|
|
727
|
+
* @default 5/6
|
|
728
|
+
*/
|
|
729
|
+
phoneColumnWidthRatio?: number; /** 表格尺寸 */
|
|
345
730
|
size?: 'small' | 'middle' | 'default'; /** 当前选中的行 key 列表(多选) */
|
|
346
731
|
selectedKeys?: Key[]; /** 当前选中的行数据(多选) */
|
|
347
732
|
selectedRows?: unknown[]; /** 多选变更回调 */
|
|
@@ -407,10 +792,25 @@ interface RecordBoardProps {
|
|
|
407
792
|
search?: RecordBoardSearchProps;
|
|
408
793
|
/** 分页组件透传配置(与 pagination 状态区分,此处为 Pagination 组件 props) */
|
|
409
794
|
paginationConfig?: Record<string, any>;
|
|
795
|
+
/**
|
|
796
|
+
* 完全自定义分页渲染:传入则 ShellFrame 内置的 `<RecordBoardPagination />` 用此函数替换默认渲染。
|
|
797
|
+
*
|
|
798
|
+
* 适用场景:业务方需要在窄容器(如 hud 抽屉)里不要 materials Pagination
|
|
799
|
+
* 那套 50px 高、Previous/Next 大按钮、灰底边框容器,直接用 antd 原生 small Pagination
|
|
800
|
+
* 或其它紧凑实现。比 `paginationConfig` 更彻底(后者只是 props 透传,外壳样式仍在)。
|
|
801
|
+
*
|
|
802
|
+
* 入参 ctx 包含 pagination/total/onPageChange 等当前分页所需上下文。
|
|
803
|
+
*/
|
|
804
|
+
paginationRender?: (ctx: RecordBoardContextValue) => React.ReactNode;
|
|
410
805
|
/** 多选操作栏配置 */
|
|
411
806
|
batchActionBar?: RecordBoardBatchActionBarProps;
|
|
412
807
|
/** 卡片列表配置 */
|
|
413
808
|
cardList?: Record<string, any>;
|
|
809
|
+
/**
|
|
810
|
+
* 列表区布局变体;传 `phone` 时由 RecordBoard Grid 统一收窄列宽与单元格 padding。
|
|
811
|
+
* @default 'default'
|
|
812
|
+
*/
|
|
813
|
+
layoutVariant?: RecordBoardLayoutVariant;
|
|
414
814
|
/** 是否启用分页(与 pagination 状态区分) */
|
|
415
815
|
enablePagination?: boolean;
|
|
416
816
|
/**
|
|
@@ -418,6 +818,11 @@ interface RecordBoardProps {
|
|
|
418
818
|
* 推荐在 ShellFrame 内使用 PisellRecordBoard.Calendar 声明;若同时传根级与本项,Shell 内子组件 props 优先合并。
|
|
419
819
|
*/
|
|
420
820
|
calendar?: RecordBoardCalendarProps;
|
|
821
|
+
/**
|
|
822
|
+
* 大屏资源墙(可选):与 Shell 内 `PisellRecordBoard.ResourceWall` 对齐。
|
|
823
|
+
* 推荐在 ShellFrame 内声明子组件;若同时传根级与本项,Shell 内子组件 props 优先合并。
|
|
824
|
+
*/
|
|
825
|
+
resourceWall?: RecordBoardResourceWallProps;
|
|
421
826
|
/**
|
|
422
827
|
* 平面图(可选,兼容低代码 / SalesGrid 等):与 PisellFloorMapLayout 对齐。
|
|
423
828
|
* 推荐在 ShellFrame 内使用 PisellRecordBoard.FloorMap 声明;若同时传根级与本项,Shell 内子组件 props 优先合并。
|
|
@@ -452,4 +857,4 @@ interface RecordBoardProps {
|
|
|
452
857
|
[key: string]: any;
|
|
453
858
|
}
|
|
454
859
|
//#endregion
|
|
455
|
-
export { RecordBoardBodyView, RecordBoardCalendarBookingLike, RecordBoardCalendarProps, RecordBoardCalendarResource, RecordBoardChildComponentProps, RecordBoardColumnFilterConfig, RecordBoardColumnType, RecordBoardContextValue, RecordBoardFieldType, RecordBoardFloorMapProps, RecordBoardGetOptions, RecordBoardGridProps, RecordBoardLayoutType, RecordBoardOptionItem, RecordBoardProps, RecordBoardToolBarProps };
|
|
860
|
+
export { DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST, RecordBoardBlockedTimeMergedRange, RecordBoardBlockedTimePanelPayload, RecordBoardBodyView, RecordBoardBookingMoveDraft, RecordBoardCalendarBlockedTimePayload, RecordBoardCalendarBookingLike, RecordBoardCalendarBookingRenderArgs, RecordBoardCalendarDayOverlayBooking, RecordBoardCalendarProps, RecordBoardCalendarResource, RecordBoardCalendarResourceRenderArgs, RecordBoardCalendarSelectedFreeSlot, RecordBoardCalendarTimelineHeaderGroup, RecordBoardCalendarTimelineHeaderRenderContext, RecordBoardChildComponentProps, RecordBoardColumnFilterConfig, RecordBoardColumnType, RecordBoardContextValue, RecordBoardCreateBookingDayGroup, RecordBoardCreateBookingFromSelectionPayload, RecordBoardFieldType, RecordBoardFloorMapProps, RecordBoardGetOptions, RecordBoardGridProps, RecordBoardLayoutType, RecordBoardLayoutVariant, RecordBoardOptionItem, RecordBoardProps, RecordBoardResourceWallCardModel, RecordBoardResourceWallLayoutPersist, RecordBoardResourceWallProps, RecordBoardToolBarProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/components/pisellRecordBoard/types.ts
|
|
2
|
+
/** {@link RecordBoardResourceWallLayoutPersist} 默认值,与 {@link PisellRecordBoardResourceWallView} 历史初始 state 一致 */
|
|
3
|
+
const DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST = {
|
|
4
|
+
layoutKey: "2x3",
|
|
5
|
+
customCols: 3,
|
|
6
|
+
customRows: 2,
|
|
7
|
+
pageDurationSec: 10,
|
|
8
|
+
boardingSoonBeforeMin: 10,
|
|
9
|
+
heroMaxWidthRatio: .6
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import RecordBoardFloorMap from "../shellFrame/FloorMap.js";
|
|
2
2
|
import RecordBoardCalendar from "../shellFrame/Calendar/RecordBoardCalendar.js";
|
|
3
|
+
import RecordBoardResourceWall from "../shellFrame/ResourceWall/RecordBoardResourceWall.js";
|
|
3
4
|
import React from "react";
|
|
4
5
|
//#region src/components/pisellRecordBoard/utils/partitionShellFrameChildren.tsx
|
|
5
6
|
/** 与 shellFrame/FloorMap 上定义的 displayName 一致,用于从 ShellFrame children 中识别平面图槽 */
|
|
6
7
|
const RECORD_BOARD_FLOOR_MAP_DISPLAY_NAME = "RecordBoard.FloorMap";
|
|
7
8
|
/** 与 shellFrame/Calendar 上定义的 displayName 一致 */
|
|
8
9
|
const RECORD_BOARD_CALENDAR_DISPLAY_NAME = "RecordBoard.Calendar";
|
|
10
|
+
/** 与 shellFrame/ResourceWall 上定义的 displayName 一致 */
|
|
11
|
+
const RECORD_BOARD_RESOURCE_WALL_DISPLAY_NAME = "RecordBoard.ResourceWall";
|
|
9
12
|
/** displayName 在部分构建下可能被摇掉;与 RecordBoardFloorMap 引用一致时仍可识别 */
|
|
10
13
|
function isRecordBoardFloorMapElementType(type) {
|
|
11
14
|
if (type === RecordBoardFloorMap) return true;
|
|
@@ -15,6 +18,10 @@ function isRecordBoardCalendarElementType(type) {
|
|
|
15
18
|
if (type === RecordBoardCalendar) return true;
|
|
16
19
|
return (type === null || type === void 0 ? void 0 : type.displayName) === RECORD_BOARD_CALENDAR_DISPLAY_NAME;
|
|
17
20
|
}
|
|
21
|
+
function isRecordBoardResourceWallElementType(type) {
|
|
22
|
+
if (type === RecordBoardResourceWall) return true;
|
|
23
|
+
return (type === null || type === void 0 ? void 0 : type.displayName) === RECORD_BOARD_RESOURCE_WALL_DISPLAY_NAME;
|
|
24
|
+
}
|
|
18
25
|
/**
|
|
19
26
|
* 将 ShellFrame 的 children 拆成:供表格区渲染的子树 + 可选的 FloorMap / Calendar 透传 props。
|
|
20
27
|
* 支持 Fragment 嵌套;多个同槽时以最后一个为准。
|
|
@@ -24,6 +31,8 @@ function partitionShellFrameChildren(children) {
|
|
|
24
31
|
let floorProps;
|
|
25
32
|
let foundCalendar = false;
|
|
26
33
|
let calendarProps;
|
|
34
|
+
let foundResourceWall = false;
|
|
35
|
+
let resourceWallProps;
|
|
27
36
|
const gridChunks = [];
|
|
28
37
|
const walk = (node) => {
|
|
29
38
|
React.Children.forEach(node, (child) => {
|
|
@@ -46,6 +55,11 @@ function partitionShellFrameChildren(children) {
|
|
|
46
55
|
calendarProps = child.props;
|
|
47
56
|
return;
|
|
48
57
|
}
|
|
58
|
+
if (isRecordBoardResourceWallElementType(child.type)) {
|
|
59
|
+
foundResourceWall = true;
|
|
60
|
+
resourceWallProps = child.props;
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
49
63
|
gridChunks.push(child);
|
|
50
64
|
});
|
|
51
65
|
};
|
|
@@ -61,6 +75,8 @@ function partitionShellFrameChildren(children) {
|
|
|
61
75
|
floorMapPropsFromChild: floorProps,
|
|
62
76
|
hasCalendarChild: foundCalendar,
|
|
63
77
|
calendarPropsFromChild: calendarProps,
|
|
78
|
+
hasResourceWallChild: foundResourceWall,
|
|
79
|
+
resourceWallPropsFromChild: resourceWallProps,
|
|
64
80
|
hasGridContent
|
|
65
81
|
};
|
|
66
82
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RecordBoardColumnType } from "../types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/pisellRecordBoard/utils/recordBoardPhoneGrid.d.ts
|
|
4
|
+
/** Grid 根节点在 `layoutVariant="phone"` 时追加的 class,用于收紧单元格 padding 等 */
|
|
5
|
+
declare const RECORD_BOARD_PHONE_GRID_CLASS = "pisell-record-board-grid--phone";
|
|
6
|
+
interface AdaptColumnsForPhoneLayoutOptions {
|
|
7
|
+
/** 列 key → 最大宽度(px),在比例缩放后再取 min */
|
|
8
|
+
widthCapsByKey?: Record<string, number>;
|
|
9
|
+
/** 列 key → 宽度缩放比例(相对原 width);未配置则用 defaultWidthRatio */
|
|
10
|
+
widthRatioByKey?: Record<string, number>;
|
|
11
|
+
/** 默认 numeric width 缩放比例 @default 5/6 */
|
|
12
|
+
defaultWidthRatio?: number;
|
|
13
|
+
/** 是否去掉 fixed 列(手机横向滚动场景) @default true */
|
|
14
|
+
unsetFixed?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* 手机 Table:收窄列宽并去掉 fixed,供 RecordBoard Grid 在 layoutVariant=phone 时统一调用。
|
|
18
|
+
* 业务可通过 grid.phoneColumnWidthCaps / phoneColumnWidthRatioByKey 覆盖特定列。
|
|
19
|
+
*/
|
|
20
|
+
declare function adaptColumnsForPhoneLayout(columns: RecordBoardColumnType[], options?: AdaptColumnsForPhoneLayoutOptions): RecordBoardColumnType[];
|
|
21
|
+
//#endregion
|
|
22
|
+
export { AdaptColumnsForPhoneLayoutOptions, RECORD_BOARD_PHONE_GRID_CLASS, adaptColumnsForPhoneLayout };
|