@pisell/materials 6.11.108 → 6.11.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/es/components/Pagination/index.d.ts +13 -0
- package/es/components/PisellCards/index.d.ts +15 -0
- package/es/components/PisellSteps/PisellSteps.d.ts +14 -0
- package/es/components/PisellTabbar/constants.d.ts +47 -0
- package/es/components/PisellTabbar/hooks/useActiveKey.d.ts +55 -0
- package/es/components/PisellTabbar/hooks/useExpand.d.ts +42 -0
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +5 -0
- package/es/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
- package/es/components/PisellTabbar/types.d.ts +90 -0
- package/es/components/PisellTabbar/utils/index.d.ts +69 -0
- package/es/components/SafeAreaTop/index.d.ts +5 -0
- package/es/components/SafeAreaTop/types.d.ts +9 -0
- package/es/components/appVersionControl/index.d.ts +4 -0
- package/es/components/buttonGroupPreview/index.d.ts +19 -0
- package/es/components/cardPro/index.d.ts +3 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +3 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +4 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +48 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +100 -0
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/DatePicker/WithMode.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/DatePicker/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +15 -0
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
- package/es/components/drawer/index.d.ts +3 -0
- package/es/components/filter/components/Dropdown/index.d.ts +10 -0
- package/es/components/filter/components/Dropdown/types.d.ts +15 -0
- package/es/components/filter/components/FilterButton/index.d.ts +5 -0
- package/es/components/filter/components/FilterButton/types.d.ts +29 -0
- package/es/components/filter/components/FilterItem/index.d.ts +9 -0
- package/es/components/filter/components/QuickFilter/index.d.ts +16 -0
- package/es/components/filter/types.d.ts +52 -0
- package/es/components/iconfont/index.d.ts +8 -0
- package/es/components/keyboard/index.d.ts +22 -0
- package/es/components/page/index.d.ts +0 -1
- package/es/components/pisell-config-provider/context.d.ts +22 -0
- package/es/components/pisell-config-provider/index.d.ts +13 -0
- package/es/components/pisellAdjustPrice/index.d.ts +0 -1
- package/es/components/pisellAdjustPrice/status.d.ts +32 -0
- package/es/components/pisellAdjustPrice/type.d.ts +22 -0
- package/es/components/pisellCurrency/PisellCurrency.d.ts +39 -0
- package/es/components/pisellDataSourceContainer/components/Pagination/index.d.ts +6 -0
- package/es/components/pisellEmail/PisellEmail.d.ts +37 -0
- package/es/components/pisellEmpty/index.d.ts +19 -0
- package/es/components/pisellFilter/index.d.ts +3 -0
- package/es/components/pisellFilter/type.d.ts +7 -0
- package/es/components/pisellFind/index.d.ts +62 -0
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +13 -0
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +59 -0
- package/es/components/pisellFloorMapLayout/appearance/floorMapAppearance.d.ts +29 -0
- package/es/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +22 -0
- package/es/components/pisellFloorMapLayout/components/EdgeLayer.d.ts +37 -0
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +66 -0
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +39 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +7 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEdgeEditPanel.d.ts +13 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +11 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +64 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapOverview.d.ts +44 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +84 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbarViewAllModal.d.ts +20 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapZoneElement.d.ts +6 -0
- package/es/components/pisellFloorMapLayout/components/ItemLayer.d.ts +59 -0
- package/es/components/pisellFloorMapLayout/components/NodePortMarkers.d.ts +20 -0
- package/es/components/pisellFloorMapLayout/components/ViewControls.d.ts +61 -0
- package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +28 -0
- package/es/components/pisellFloorMapLayout/components/index.d.ts +23 -0
- package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +5 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEdgeEditing.d.ts +61 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEdgeViewModel.d.ts +15 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +85 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +91 -0
- package/es/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +19 -0
- package/es/components/pisellFloorMapLayout/index.d.ts +37 -0
- package/es/components/pisellFloorMapLayout/locales-ja.d.ts +184 -0
- package/es/components/pisellFloorMapLayout/locales-pt.d.ts +184 -0
- package/es/components/pisellFloorMapLayout/locales.d.ts +969 -0
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +10 -0
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +22 -0
- package/es/components/pisellFloorMapLayout/types.d.ts +778 -0
- package/es/components/pisellFloorMapLayout/utils/batchScenePlacementLayout.d.ts +45 -0
- package/es/components/pisellFloorMapLayout/utils/edgeRouting.d.ts +267 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +20 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapCanvasStage.d.ts +83 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +8 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapDataBindingUtils.d.ts +21 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +35 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +11 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapOverviewLayout.d.ts +44 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapToolbarPalette.d.ts +34 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +8 -0
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +10 -0
- package/es/components/pisellHierarchicalSummaryList/components/Row.d.ts +35 -0
- package/es/components/pisellHierarchicalSummaryList/components/index.d.ts +1 -0
- package/es/components/pisellHierarchicalSummaryList/hooks/index.d.ts +2 -0
- package/es/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +15 -0
- package/es/components/pisellHierarchicalSummaryList/index.d.ts +5 -0
- package/es/components/pisellHierarchicalSummaryList/types.d.ts +248 -0
- package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
- package/es/components/pisellInput/index.d.ts +0 -1
- package/es/components/pisellLongText/PisellLongText.d.ts +39 -0
- package/es/components/pisellLookup/PisellLookup.d.ts +4 -0
- package/es/components/pisellLookup/components/LookupResultHost.d.ts +7 -0
- package/es/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.d.ts +9 -0
- package/es/components/pisellMultipleSelect/components/EditView.d.ts +8 -0
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
- package/es/components/pisellNumber/PisellNumber.d.ts +42 -0
- package/es/components/pisellPhone/PisellPhone.d.ts +36 -0
- package/es/components/pisellPhone/components/EditView.d.ts +19 -0
- package/es/components/pisellPhone/constants/countryCodes.d.ts +20 -0
- package/es/components/pisellPhone/types.d.ts +209 -0
- package/es/components/pisellPhone/utils/countryCodeHelper.d.ts +35 -0
- package/es/components/pisellRating/PisellRating.d.ts +31 -0
- package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +9 -0
- package/es/components/pisellRecordBoard/index.d.ts +53 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +5 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +11 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +43 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +26 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/hooks/useBookingCalendarDayOverlayLayout.d.ts +18 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/index.d.ts +7 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarBlockPanel.d.ts +26 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.d.ts +14 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.d.ts +17 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +19 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +9 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +10 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +236 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarSelectionUtils.d.ts +7 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.d.ts +21 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +49 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.d.ts +23 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +18 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.d.ts +57 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +27 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.d.ts +12 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDayHourRemaining.d.ts +10 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDaySelection.d.ts +11 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceCellToggle.d.ts +3 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceDayHeaderRemaining.d.ts +8 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/useBookingCalendarGoToDayFromCell.d.ts +3 -0
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
- package/es/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +14 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +12 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +8 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +50 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.d.ts +17 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.d.ts +28 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +22 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.d.ts +58 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +64 -0
- package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +24 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +12 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.d.ts +13 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +19 -0
- package/es/components/pisellRecordBoard/shellFrame/index.d.ts +30 -0
- package/es/components/pisellRecordBoard/types.d.ts +874 -0
- package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +23 -0
- package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +52 -0
- package/es/components/pisellRecordBoard/utils/recordBoardPhoneGrid.d.ts +27 -0
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +10 -0
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +10 -0
- package/es/components/pisellReservationScheduleBand/index.d.ts +3 -0
- package/es/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
- package/es/components/pisellShellFrame/types.d.ts +62 -0
- package/es/components/pisellSingleLineText/PisellSingleLineText.d.ts +40 -0
- package/es/components/pisellSingleSelect/PisellSingleSelect.d.ts +9 -0
- package/es/components/pisellStatisticList/index.d.ts +22 -0
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +10 -0
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +79 -0
- package/es/components/pisellTimeNavigator/components/NowButton.d.ts +14 -0
- package/es/components/pisellTimeNavigator/index.d.ts +5 -0
- package/es/components/pisellToast/squareToast/index.d.ts +15 -0
- package/es/components/pisellToast/squareToast/methods.d.ts +13 -0
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +28 -0
- package/es/components/pisellToast/squareToast/toast.d.ts +25 -0
- package/es/components/pisellUrl/PisellUrl.d.ts +37 -0
- package/es/components/pisellWalletPassCard/index.d.ts +146 -0
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/BookingItem/index.d.ts +10 -0
- package/es/components/productCard/cartSkuCard/components/Gift/index.d.ts +4 -0
- package/es/components/productCard/cartSkuCard/components/Gift/types.d.ts +29 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +6 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +36 -0
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +11 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +21 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +8 -0
- package/es/components/productCard/cartSkuCard/components/weighing/index.d.ts +22 -0
- package/es/components/productCard/cartSkuCard/index.d.ts +13 -0
- package/es/components/productCard/cartSkuCard/locales.d.ts +203 -0
- package/es/components/productCard/components/Action/index.d.ts +3 -0
- package/es/components/productCard/components/Header/EditButton/index.d.ts +3 -0
- package/es/components/productCard/components/Header/index.d.ts +0 -1
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Sales/index.d.ts +0 -1
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -0
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +19 -0
- package/es/components/productCard/components/Time/index.d.ts +4 -0
- package/es/components/productCard/lineItem/BookingLineItem.d.ts +19 -0
- package/es/components/productCard/lineItem/components/Holders/index.d.ts +9 -0
- package/es/components/productCard/lineItem/components/Resources/index.d.ts +6 -0
- package/es/components/productCard/lineItem/components/TimeRange/index.d.ts +11 -0
- package/es/components/productCard/lineItem/locales.d.ts +23 -0
- package/es/components/productCard/lineItem/types.d.ts +13 -0
- package/es/components/productCard/locales.d.ts +138 -0
- package/es/components/productCard/status.d.ts +32 -0
- package/es/components/productCard/types.d.ts +96 -0
- package/es/components/select/index.d.ts +9 -0
- package/es/components/select-time/index.d.ts +13 -0
- package/es/components/table/Actions/component/ExportImport/index.d.ts +8 -0
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +9 -0
- package/es/components/table/Actions/component/ViewMode/index.d.ts +9 -0
- package/es/components/table/BasicTable/index.d.ts +3 -0
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
- package/es/components/table/Gallery/index.d.ts +5 -0
- package/es/components/table/Table/index.d.ts +4 -0
- package/es/components/table/Table/utils.d.ts +161 -0
- package/es/components/table/hooks/useTableSetting.d.ts +21 -0
- package/es/components/table/hooks/useTransDataSource.d.ts +11 -0
- package/es/components/table/types.d.ts +268 -0
- package/es/components/translation/index.d.ts +17 -0
- package/es/components/versionModal/index.d.ts +23 -0
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
- package/es/components/virtual-keyboard/Number/types.d.ts +26 -0
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
- package/es/hooks/useResponsive.d.ts +1 -1
- package/es/index.d.ts +271 -0
- package/es/locales/en-US.d.ts +565 -0
- package/es/locales/ja.d.ts +533 -0
- package/es/locales/pt.d.ts +533 -0
- package/es/locales/zh-CN.d.ts +560 -0
- package/es/locales/zh-TW.d.ts +560 -0
- package/lib/components/Pagination/index.d.ts +13 -0
- package/lib/components/PisellCards/index.d.ts +15 -0
- package/lib/components/PisellSteps/PisellSteps.d.ts +14 -0
- package/lib/components/PisellTabbar/constants.d.ts +47 -0
- package/lib/components/PisellTabbar/hooks/useActiveKey.d.ts +55 -0
- package/lib/components/PisellTabbar/hooks/useExpand.d.ts +42 -0
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +5 -0
- package/lib/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
- package/lib/components/PisellTabbar/types.d.ts +90 -0
- package/lib/components/PisellTabbar/utils/index.d.ts +69 -0
- package/lib/components/SafeAreaTop/index.d.ts +5 -0
- package/lib/components/SafeAreaTop/types.d.ts +9 -0
- package/lib/components/appVersionControl/index.d.ts +4 -0
- package/lib/components/buttonGroupPreview/index.d.ts +19 -0
- package/lib/components/cardPro/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +4 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +48 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +100 -0
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
- package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/DatePicker/WithMode.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/DatePicker/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +15 -0
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
- package/lib/components/drawer/index.d.ts +3 -0
- package/lib/components/filter/components/Dropdown/index.d.ts +10 -0
- package/lib/components/filter/components/Dropdown/types.d.ts +15 -0
- package/lib/components/filter/components/FilterButton/index.d.ts +5 -0
- package/lib/components/filter/components/FilterButton/types.d.ts +29 -0
- package/lib/components/filter/components/FilterItem/index.d.ts +9 -0
- package/lib/components/filter/components/QuickFilter/index.d.ts +16 -0
- package/lib/components/filter/types.d.ts +52 -0
- package/lib/components/iconfont/index.d.ts +8 -0
- package/lib/components/keyboard/index.d.ts +22 -0
- package/lib/components/page/index.d.ts +0 -1
- package/lib/components/pisell-config-provider/context.d.ts +22 -0
- package/lib/components/pisell-config-provider/index.d.ts +13 -0
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -1
- package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
- package/lib/components/pisellAdjustPrice/type.d.ts +22 -0
- package/lib/components/pisellCurrency/PisellCurrency.d.ts +39 -0
- package/lib/components/pisellDataSourceContainer/components/Pagination/index.d.ts +6 -0
- package/lib/components/pisellEmail/PisellEmail.d.ts +37 -0
- package/lib/components/pisellEmpty/index.d.ts +19 -0
- package/lib/components/pisellFilter/index.d.ts +3 -0
- package/lib/components/pisellFilter/type.d.ts +7 -0
- package/lib/components/pisellFind/index.d.ts +62 -0
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +13 -0
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +59 -0
- package/lib/components/pisellFloorMapLayout/appearance/floorMapAppearance.d.ts +29 -0
- package/lib/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +22 -0
- package/lib/components/pisellFloorMapLayout/components/EdgeLayer.d.ts +37 -0
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +66 -0
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +39 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +7 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEdgeEditPanel.d.ts +13 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +11 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +64 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapOverview.d.ts +44 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +84 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbarViewAllModal.d.ts +20 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapZoneElement.d.ts +6 -0
- package/lib/components/pisellFloorMapLayout/components/ItemLayer.d.ts +59 -0
- package/lib/components/pisellFloorMapLayout/components/NodePortMarkers.d.ts +20 -0
- package/lib/components/pisellFloorMapLayout/components/ViewControls.d.ts +61 -0
- package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +28 -0
- package/lib/components/pisellFloorMapLayout/components/index.d.ts +23 -0
- package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +5 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEdgeEditing.d.ts +61 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEdgeViewModel.d.ts +15 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +85 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +91 -0
- package/lib/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +19 -0
- package/lib/components/pisellFloorMapLayout/index.d.ts +37 -0
- package/lib/components/pisellFloorMapLayout/locales-ja.d.ts +184 -0
- package/lib/components/pisellFloorMapLayout/locales-pt.d.ts +184 -0
- package/lib/components/pisellFloorMapLayout/locales.d.ts +969 -0
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +10 -0
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +22 -0
- package/lib/components/pisellFloorMapLayout/types.d.ts +778 -0
- package/lib/components/pisellFloorMapLayout/utils/batchScenePlacementLayout.d.ts +45 -0
- package/lib/components/pisellFloorMapLayout/utils/edgeRouting.d.ts +267 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +20 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasStage.d.ts +83 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +8 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapDataBindingUtils.d.ts +21 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +35 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +11 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapOverviewLayout.d.ts +44 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapToolbarPalette.d.ts +34 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +8 -0
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +10 -0
- package/lib/components/pisellHierarchicalSummaryList/components/Row.d.ts +35 -0
- package/lib/components/pisellHierarchicalSummaryList/components/index.d.ts +1 -0
- package/lib/components/pisellHierarchicalSummaryList/hooks/index.d.ts +2 -0
- package/lib/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +15 -0
- package/lib/components/pisellHierarchicalSummaryList/index.d.ts +5 -0
- package/lib/components/pisellHierarchicalSummaryList/types.d.ts +248 -0
- package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
- package/lib/components/pisellInput/index.d.ts +0 -1
- package/lib/components/pisellLongText/PisellLongText.d.ts +39 -0
- package/lib/components/pisellLookup/PisellLookup.d.ts +4 -0
- package/lib/components/pisellLookup/components/LookupResultHost.d.ts +7 -0
- package/lib/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.d.ts +9 -0
- package/lib/components/pisellMultipleSelect/components/EditView.d.ts +8 -0
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
- package/lib/components/pisellNumber/PisellNumber.d.ts +42 -0
- package/lib/components/pisellPhone/PisellPhone.d.ts +36 -0
- package/lib/components/pisellPhone/components/EditView.d.ts +19 -0
- package/lib/components/pisellPhone/constants/countryCodes.d.ts +20 -0
- package/lib/components/pisellPhone/types.d.ts +209 -0
- package/lib/components/pisellPhone/utils/countryCodeHelper.d.ts +35 -0
- package/lib/components/pisellRating/PisellRating.d.ts +31 -0
- package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +9 -0
- package/lib/components/pisellRecordBoard/index.d.ts +53 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +5 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +11 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +43 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +26 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/hooks/useBookingCalendarDayOverlayLayout.d.ts +18 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/index.d.ts +7 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarBlockPanel.d.ts +26 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.d.ts +14 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.d.ts +17 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +19 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +9 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +10 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +236 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarSelectionUtils.d.ts +7 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.d.ts +21 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +49 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.d.ts +23 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +18 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.d.ts +57 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +27 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.d.ts +12 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDayHourRemaining.d.ts +10 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDaySelection.d.ts +11 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceCellToggle.d.ts +3 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceDayHeaderRemaining.d.ts +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/useBookingCalendarGoToDayFromCell.d.ts +3 -0
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +14 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +12 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +50 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.d.ts +17 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.d.ts +28 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +22 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.d.ts +58 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +64 -0
- package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +24 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +12 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.d.ts +13 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +19 -0
- package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +30 -0
- package/lib/components/pisellRecordBoard/types.d.ts +874 -0
- package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +23 -0
- package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +52 -0
- package/lib/components/pisellRecordBoard/utils/recordBoardPhoneGrid.d.ts +27 -0
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +10 -0
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +10 -0
- package/lib/components/pisellReservationScheduleBand/index.d.ts +3 -0
- package/lib/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
- package/lib/components/pisellShellFrame/types.d.ts +62 -0
- package/lib/components/pisellSingleLineText/PisellSingleLineText.d.ts +40 -0
- package/lib/components/pisellSingleSelect/PisellSingleSelect.d.ts +9 -0
- package/lib/components/pisellStatisticList/index.d.ts +22 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +10 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +79 -0
- package/lib/components/pisellTimeNavigator/components/NowButton.d.ts +14 -0
- package/lib/components/pisellTimeNavigator/index.d.ts +5 -0
- package/lib/components/pisellToast/squareToast/index.d.ts +15 -0
- package/lib/components/pisellToast/squareToast/methods.d.ts +13 -0
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +28 -0
- package/lib/components/pisellToast/squareToast/toast.d.ts +25 -0
- package/lib/components/pisellUrl/PisellUrl.d.ts +37 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +146 -0
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/BookingItem/index.d.ts +10 -0
- package/lib/components/productCard/cartSkuCard/components/Gift/index.d.ts +4 -0
- package/lib/components/productCard/cartSkuCard/components/Gift/types.d.ts +29 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +6 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +36 -0
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +11 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +21 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +8 -0
- package/lib/components/productCard/cartSkuCard/components/weighing/index.d.ts +22 -0
- package/lib/components/productCard/cartSkuCard/index.d.ts +13 -0
- package/lib/components/productCard/cartSkuCard/locales.d.ts +203 -0
- package/lib/components/productCard/components/Action/index.d.ts +3 -0
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +3 -0
- package/lib/components/productCard/components/Header/index.d.ts +0 -1
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Sales/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -0
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +19 -0
- package/lib/components/productCard/components/Time/index.d.ts +4 -0
- package/lib/components/productCard/lineItem/BookingLineItem.d.ts +19 -0
- package/lib/components/productCard/lineItem/components/Holders/index.d.ts +9 -0
- package/lib/components/productCard/lineItem/components/Resources/index.d.ts +6 -0
- package/lib/components/productCard/lineItem/components/TimeRange/index.d.ts +11 -0
- package/lib/components/productCard/lineItem/locales.d.ts +23 -0
- package/lib/components/productCard/lineItem/types.d.ts +13 -0
- package/lib/components/productCard/locales.d.ts +138 -0
- package/lib/components/productCard/status.d.ts +32 -0
- package/lib/components/productCard/types.d.ts +96 -0
- package/lib/components/select/index.d.ts +9 -0
- package/lib/components/select-time/index.d.ts +13 -0
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +8 -0
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +9 -0
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +9 -0
- package/lib/components/table/BasicTable/index.d.ts +3 -0
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
- package/lib/components/table/Gallery/index.d.ts +5 -0
- package/lib/components/table/Table/index.d.ts +4 -0
- package/lib/components/table/Table/utils.d.ts +161 -0
- package/lib/components/table/hooks/useTableSetting.d.ts +21 -0
- package/lib/components/table/hooks/useTransDataSource.d.ts +11 -0
- package/lib/components/table/types.d.ts +268 -0
- package/lib/components/translation/index.d.ts +17 -0
- package/lib/components/versionModal/index.d.ts +23 -0
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
- package/lib/components/virtual-keyboard/Number/types.d.ts +26 -0
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
- package/lib/hooks/useResponsive.d.ts +1 -1
- package/lib/index.d.ts +271 -0
- package/lib/locales/en-US.d.ts +565 -0
- package/lib/locales/ja.d.ts +533 -0
- package/lib/locales/pt.d.ts +533 -0
- package/lib/locales/zh-CN.d.ts +560 -0
- package/lib/locales/zh-TW.d.ts +560 -0
- package/package.json +1 -1
package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import type { Dayjs } from 'dayjs';
|
|
2
|
+
import type { RecordBoardCalendarBookingLike } from '../../../types';
|
|
3
|
+
/**
|
|
4
|
+
* 日历日期与时间轴纯函数:`fmtDate`、占用矩阵、月格、overlay 分段、周范围等,供 BookingCalendar 三视图共用。
|
|
5
|
+
*/
|
|
6
|
+
/** 与 {@link RecordBoardCalendarBookingLike} 一致,并支持跨日 endDate */
|
|
7
|
+
export declare type CalendarBookingSegmentInput = RecordBoardCalendarBookingLike & {
|
|
8
|
+
endDate?: string;
|
|
9
|
+
};
|
|
10
|
+
export interface BookingSegmentForDate {
|
|
11
|
+
startHour: number;
|
|
12
|
+
endHour: number;
|
|
13
|
+
continuesPrev: boolean;
|
|
14
|
+
continuesNext: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface ViewNowReference {
|
|
17
|
+
dateKey: string;
|
|
18
|
+
hourFloat: number;
|
|
19
|
+
}
|
|
20
|
+
export declare function fmtDate(date: Date): string;
|
|
21
|
+
/** 本地当前日期键与「日历时」小数小时,用于状态徽标与当前时刻线 */
|
|
22
|
+
export declare function getViewNowReference(): ViewNowReference;
|
|
23
|
+
export declare function parseDate(str: string): Date;
|
|
24
|
+
export declare function addDays(date: Date, n: number): Date;
|
|
25
|
+
export declare function startOfWeek(date: Date): Date;
|
|
26
|
+
export declare function rangeDays(anchor: Date): Date[];
|
|
27
|
+
/**
|
|
28
|
+
* 锚定日所在自然月的每一天(1 号至月末),用于资源视图横向「日」列。
|
|
29
|
+
*/
|
|
30
|
+
export declare function monthCalendarDays(anchor: Date): Date[];
|
|
31
|
+
export declare function isHourInTimelineSlots(hour: number, hourSlots: number[] | undefined): boolean;
|
|
32
|
+
export declare function formatHourLabel(hour: number): string;
|
|
33
|
+
export declare function buildTimeOptions(start?: number, end?: number, sliceMinutes?: number): number[];
|
|
34
|
+
export declare function monthGrid(date: Date, bookings: CalendarBookingSegmentInput[], courtsList: {
|
|
35
|
+
id: string;
|
|
36
|
+
}[] | undefined, hourSlotsIn: number[] | undefined, slotStepHours?: number): {
|
|
37
|
+
date: Date;
|
|
38
|
+
key: string;
|
|
39
|
+
inMonth: boolean;
|
|
40
|
+
bookingCount: number;
|
|
41
|
+
blockCount: number;
|
|
42
|
+
fullyBooked: boolean;
|
|
43
|
+
}[];
|
|
44
|
+
export declare function getBookingSegmentForDate(item: CalendarBookingSegmentInput, dateKey: string): BookingSegmentForDate | null;
|
|
45
|
+
export declare function dayOccupancy(courtId: string, dateKey: string, bookings: CalendarBookingSegmentInput[], hourSlots: number[] | undefined, slotStepHours: number): Record<number, CalendarBookingSegmentInput | null>;
|
|
46
|
+
export interface SelectedSlotLike {
|
|
47
|
+
courtId: string;
|
|
48
|
+
date: string;
|
|
49
|
+
hour: number;
|
|
50
|
+
}
|
|
51
|
+
export declare function groupSelectedSlots(slots: SelectedSlotLike[], slotStepHours?: number): Array<{
|
|
52
|
+
courtId: string;
|
|
53
|
+
date: string;
|
|
54
|
+
startHour: number;
|
|
55
|
+
endHour: number;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* 日视图空闲格:仅当全部为同一 court、同一日,且时间上首尾相接成一段时返回 true(与 {@link groupSelectedSlots} 合并规则一致)。
|
|
59
|
+
*/
|
|
60
|
+
export declare function isFreeSelectionContiguousSameResource(slots: SelectedSlotLike[], slotStepHours?: number): boolean;
|
|
61
|
+
export declare function hasConflict(bookings: CalendarBookingSegmentInput[], courtId: string, date: string, startHour: number, endHour: number, ignoreId?: string | null): boolean;
|
|
62
|
+
export declare function overlappingBookings(bookings: CalendarBookingSegmentInput[], courtId: string, date: string, startHour: number, endHour: number): CalendarBookingSegmentInput[];
|
|
63
|
+
export declare function courtDaySummary(courtId: string, dateKey: string, bookings: CalendarBookingSegmentInput[], hourSlots: number[] | undefined, slotStepHours: number): {
|
|
64
|
+
occupiedHours: number[];
|
|
65
|
+
hasBlock: boolean;
|
|
66
|
+
fullyBooked: boolean;
|
|
67
|
+
items: CalendarBookingSegmentInput[];
|
|
68
|
+
};
|
|
69
|
+
export declare function sameSlot(a: SelectedSlotLike, b: SelectedSlotLike): boolean;
|
|
70
|
+
/** 营业日 `dateStr` + 浮点小时(含半格)→ dayjs */
|
|
71
|
+
export declare function dayAndHourToDayjs(dateStr: string, hourFloat: number): Dayjs;
|
|
72
|
+
export declare function getDisplayStatusTag(item: CalendarBookingSegmentInput, dateKey: string): string | null;
|
|
73
|
+
export declare function getLateMinutes(item: CalendarBookingSegmentInput, dateKey: string): number | null;
|
|
74
|
+
export declare function currentTimeLabel(): string;
|
|
75
|
+
export declare function formatDateLoose(str: string | undefined): string;
|
|
76
|
+
export declare function formatTimelineStamp(value: string | undefined | null): {
|
|
77
|
+
date: string;
|
|
78
|
+
time: string;
|
|
79
|
+
};
|
|
80
|
+
/** 日视图 overlay 条(可原地写入 lane) */
|
|
81
|
+
export declare type DayOverlayLaneMutable = {
|
|
82
|
+
courtId: string;
|
|
83
|
+
start: number;
|
|
84
|
+
span: number;
|
|
85
|
+
lane?: number;
|
|
86
|
+
laneCount?: number;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* 同一 court 上时间重叠的 overlay 分配纵向 lane,避免多张卡片完全叠在同一矩形里。
|
|
90
|
+
* 使用按开始时间排序 + 贪心:每条预约放入「上一条已结束时间不晚于本段开始」的最小编号线。
|
|
91
|
+
*/
|
|
92
|
+
export declare function assignDayOverlapLanesInPlace(overlays: DayOverlayLaneMutable[]): void;
|
|
93
|
+
/** 扫描时间轴:同一 court 在任一时刻的最大并行条数(用于行高,与分 lane 一致) */
|
|
94
|
+
export declare function maxConcurrentBookingsOnCourt(overlays: Array<{
|
|
95
|
+
courtId: string;
|
|
96
|
+
start: number;
|
|
97
|
+
span: number;
|
|
98
|
+
}>, courtId: string): number;
|
|
99
|
+
/** 并行超过 cap 时:cap 条内容 + 1 行「+N」占位 */
|
|
100
|
+
export declare function effectiveDayOverlayDisplayLaneCount(rawConcurrent: number): number;
|
|
101
|
+
/** 同一 court 下时间轴区间相交的 overlay 归为一簇(用于 3+N 合并展示) */
|
|
102
|
+
export declare function clusterDayCourtOverlaysByOverlap<T extends {
|
|
103
|
+
courtId: string;
|
|
104
|
+
start: number;
|
|
105
|
+
span: number;
|
|
106
|
+
}>(overlays: T[], courtId: string): T[][];
|
|
107
|
+
export declare function dayOverlayHiddenKey(item: {
|
|
108
|
+
id?: string | number;
|
|
109
|
+
} | null | undefined, dayKey: string, courtId: string): string;
|
|
110
|
+
/**
|
|
111
|
+
* 将 totalInner 像素整数分给 n 条竖向 lane(含缝),保证 Σheight + Σgap === totalInner,消除底部留白缝。
|
|
112
|
+
*/
|
|
113
|
+
export declare function dayOverlayLaneMetrics(totalInner: number, laneCount: number, gap: number): {
|
|
114
|
+
topFor: (lane: number) => number;
|
|
115
|
+
heightFor: (lane: number) => number;
|
|
116
|
+
};
|
|
117
|
+
export interface BuildOverlayBookingRow {
|
|
118
|
+
kind: string;
|
|
119
|
+
id: string;
|
|
120
|
+
}
|
|
121
|
+
export interface BuiltDayOverlay {
|
|
122
|
+
item: CalendarBookingSegmentInput;
|
|
123
|
+
rowIndex: number;
|
|
124
|
+
rowTop: number;
|
|
125
|
+
rowHeight: number;
|
|
126
|
+
courtId: string;
|
|
127
|
+
start: number;
|
|
128
|
+
end: number;
|
|
129
|
+
span: number;
|
|
130
|
+
continuesNext?: boolean;
|
|
131
|
+
continuesPrev?: boolean;
|
|
132
|
+
lane?: number;
|
|
133
|
+
laneCount?: number;
|
|
134
|
+
}
|
|
135
|
+
export declare function buildOverlayBookings(visibleCourtRows: BuildOverlayBookingRow[], dayKey: string, bookings: CalendarBookingSegmentInput[], rowTopMap: Record<string, number> | undefined, hourSlots: number[] | undefined, dayRowHeights: number[], slotStepHours?: number): BuiltDayOverlay[];
|
|
136
|
+
/** 日视图:按行高累加每行 rowTop(court / group) */
|
|
137
|
+
export declare function buildDayRowTopMap(visibleCourtRows: Array<{
|
|
138
|
+
id: string;
|
|
139
|
+
}>, heights: number[]): Record<string, number>;
|
|
140
|
+
/** 日历状态徽标:返回 i18n key + className;文案在 UI 层通过 tCal 解析,便于 utils 单测 */
|
|
141
|
+
export declare function statusTagMetaParts(tag: string | null | undefined): {
|
|
142
|
+
labelI18nKey: string;
|
|
143
|
+
className: string;
|
|
144
|
+
} | null;
|
|
145
|
+
export declare type CalendarCourtNameRow = {
|
|
146
|
+
id: string;
|
|
147
|
+
name?: string | null;
|
|
148
|
+
};
|
|
149
|
+
export declare function getBookingDetailData(item: CalendarBookingSegmentInput, courtsList?: CalendarCourtNameRow[]): {
|
|
150
|
+
rawSales: null;
|
|
151
|
+
bookingId: string;
|
|
152
|
+
orderNumber: string;
|
|
153
|
+
shopOrderNumber: string;
|
|
154
|
+
orderStatus: string;
|
|
155
|
+
appointmentStatus: string;
|
|
156
|
+
paymentStatus: string;
|
|
157
|
+
customer: {
|
|
158
|
+
id: null;
|
|
159
|
+
name: string;
|
|
160
|
+
email: string;
|
|
161
|
+
phone: string;
|
|
162
|
+
};
|
|
163
|
+
guestCount: number;
|
|
164
|
+
checkedInCount: number;
|
|
165
|
+
guests: never[];
|
|
166
|
+
schedule: {
|
|
167
|
+
startDate: string;
|
|
168
|
+
startTime: string;
|
|
169
|
+
endDate: string;
|
|
170
|
+
endTime: string;
|
|
171
|
+
duration: number;
|
|
172
|
+
arrivedAt: null;
|
|
173
|
+
completedAt: null;
|
|
174
|
+
};
|
|
175
|
+
resources: never[];
|
|
176
|
+
summaryItems: never[];
|
|
177
|
+
items: never[];
|
|
178
|
+
note: string;
|
|
179
|
+
files: {
|
|
180
|
+
form: never[];
|
|
181
|
+
uploaded: never[];
|
|
182
|
+
invoice: never[];
|
|
183
|
+
};
|
|
184
|
+
payments: never[];
|
|
185
|
+
history: never[];
|
|
186
|
+
summary: {};
|
|
187
|
+
paymentSummary: {
|
|
188
|
+
totalAmount: number;
|
|
189
|
+
paidAmount: number;
|
|
190
|
+
balanceAmount: number;
|
|
191
|
+
currencySymbol: string;
|
|
192
|
+
isFullyPaid: boolean;
|
|
193
|
+
};
|
|
194
|
+
itemSummary: {
|
|
195
|
+
itemCount: number;
|
|
196
|
+
itemQtyTotal: number;
|
|
197
|
+
};
|
|
198
|
+
headerSummary: {
|
|
199
|
+
customerName: string;
|
|
200
|
+
guestCount: number;
|
|
201
|
+
checkedInCount: number;
|
|
202
|
+
timeLabel: string;
|
|
203
|
+
resourceLabel: string;
|
|
204
|
+
};
|
|
205
|
+
headerTags: {
|
|
206
|
+
paymentTag: string;
|
|
207
|
+
fulfillmentTag: string;
|
|
208
|
+
hasNote: boolean;
|
|
209
|
+
paymentStatus: string;
|
|
210
|
+
orderStatus: string;
|
|
211
|
+
};
|
|
212
|
+
fileCount: number;
|
|
213
|
+
canChangeCustomer: boolean;
|
|
214
|
+
noteCount: number;
|
|
215
|
+
noteGroups: {
|
|
216
|
+
internal: never[];
|
|
217
|
+
order: {
|
|
218
|
+
id: string;
|
|
219
|
+
label: string;
|
|
220
|
+
text: string;
|
|
221
|
+
}[];
|
|
222
|
+
item: never[];
|
|
223
|
+
};
|
|
224
|
+
metaFlags: {
|
|
225
|
+
itemsChanged: boolean;
|
|
226
|
+
paymentsChanged: boolean;
|
|
227
|
+
guestChanged: boolean;
|
|
228
|
+
filesChanged: boolean;
|
|
229
|
+
notesChanged: boolean;
|
|
230
|
+
formChanged: boolean;
|
|
231
|
+
uploadedChanged: boolean;
|
|
232
|
+
invoiceChanged: boolean;
|
|
233
|
+
historyChanged: boolean;
|
|
234
|
+
};
|
|
235
|
+
actions: never[];
|
|
236
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ResourceCellPick } from '../bookingCalendarInternalTypes';
|
|
2
|
+
/**
|
|
3
|
+
* 资源视图选区是否「同一 court + 连续多天」:
|
|
4
|
+
* 仅当满足时才允许 Block / Create Booking(与日视图「同 court 连续多小时」语义对应)。
|
|
5
|
+
* 单天选中(n === 1)也算连续。
|
|
6
|
+
*/
|
|
7
|
+
export declare function isResourceSelectionContiguousSameCourt(selections: ResourceCellPick[]): boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type SelectedSlotLike } from '../utils/bookingCalendarDateUtils';
|
|
3
|
+
export declare type BookingCalendarDaySelectionBarProps = {
|
|
4
|
+
slotStepHours: number;
|
|
5
|
+
selectedFreeSlots: SelectedSlotLike[];
|
|
6
|
+
/**
|
|
7
|
+
* 资源视图:真实选中记在「按日格子」上,不向栏传入展开后的小时槽数组(避免与格数等价的巨数组 + 栏内重复排序)。
|
|
8
|
+
* 传此对象时,用其字段驱动显隐与锁台按钮,忽略 selected*Slots 的长度(传 [] 即可)。
|
|
9
|
+
*/
|
|
10
|
+
resourceSelectionSummary?: {
|
|
11
|
+
freePickCount: number;
|
|
12
|
+
blockPickCount: number;
|
|
13
|
+
/** 资源视图:仅单选时可点「屏蔽」 */
|
|
14
|
+
freeAllowsBlockPanel: boolean;
|
|
15
|
+
} | null;
|
|
16
|
+
deselectAll: () => void;
|
|
17
|
+
onOpenBlockPanel: () => void;
|
|
18
|
+
createBookingFromSelection: () => void;
|
|
19
|
+
};
|
|
20
|
+
/** 日视图底部:多选空闲 / 锁台后的固定操作条 */
|
|
21
|
+
export declare function BookingCalendarDaySelectionBar({ slotStepHours, selectedFreeSlots, resourceSelectionSummary, deselectAll, onOpenBlockPanel, createBookingFromSelection, }: BookingCalendarDaySelectionBarProps): JSX.Element | null;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/** 日视图:横向虚拟滚动时间轴 + 资源行,预约条按 lane 叠放与 +N 溢出 */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { RecordBoardCalendarProps } from '../../../types';
|
|
4
|
+
/** 日视图(含底部多选操作条) */
|
|
5
|
+
export declare function BookingCalendarDayView(dayProps: {
|
|
6
|
+
calendarProps: RecordBoardCalendarProps;
|
|
7
|
+
isLight: boolean;
|
|
8
|
+
view: string;
|
|
9
|
+
anchorDate: Date;
|
|
10
|
+
dayKey: string;
|
|
11
|
+
hourSlots: number[];
|
|
12
|
+
resolvedSlotMinutes: number;
|
|
13
|
+
slotColWidth: number;
|
|
14
|
+
firstTimelineHour: number;
|
|
15
|
+
endTimelineExclusive: number;
|
|
16
|
+
isBusinessHour: (h: number) => boolean;
|
|
17
|
+
dayHourRemaining: Record<number, {
|
|
18
|
+
remaining: number;
|
|
19
|
+
total: number;
|
|
20
|
+
ratio: number;
|
|
21
|
+
}>;
|
|
22
|
+
timelinePxPerHour: number;
|
|
23
|
+
dayContentHeight: number;
|
|
24
|
+
dayRowHeights: number[];
|
|
25
|
+
visibleCourtRows: any[];
|
|
26
|
+
overlayBookings: any[];
|
|
27
|
+
dayOverlayOverflowPluses: any[];
|
|
28
|
+
setCollapsedGroups: React.Dispatch<React.SetStateAction<any>>;
|
|
29
|
+
visibleCourts: any[];
|
|
30
|
+
bookings: any[];
|
|
31
|
+
slotStepHours: number;
|
|
32
|
+
isFreeSelected: (courtId: string, hour: number) => boolean;
|
|
33
|
+
isBlockSelected: (courtId: string, hour: number) => boolean;
|
|
34
|
+
toggleSlot: (courtId: string, hour: number) => void;
|
|
35
|
+
handleDropMove: (courtId: string, date: string, hour: number) => void;
|
|
36
|
+
hiddenDayOverlayIdSet: Set<string>;
|
|
37
|
+
courtDayDisplayLaneCount: Record<string, number>;
|
|
38
|
+
openBookingDetail: (item: any) => void;
|
|
39
|
+
setDraggingItem: (item: any) => void;
|
|
40
|
+
setNavDirection: (n: number) => void;
|
|
41
|
+
commitAnchor: (d: Date) => void;
|
|
42
|
+
setFocusedCourtId: (id: string | null) => void;
|
|
43
|
+
setOverflowListModal: React.Dispatch<React.SetStateAction<any>>;
|
|
44
|
+
selectedFreeSlots: any[];
|
|
45
|
+
selectedBlockSlots: any[];
|
|
46
|
+
focusedCourtId: string | null;
|
|
47
|
+
/** >0 表示刚从周/月切入日视图,需将横向滚动对准「当前时间」(仅当 dayKey 为今天时生效) */
|
|
48
|
+
dayTimelineScrollToNowToken: number;
|
|
49
|
+
}): JSX.Element;
|
package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 日视图 / 周视图共用的分组头左侧 sticky 单元(折叠箭头 + 分组名 + 数量角标)。
|
|
3
|
+
* 样式单点维护,与 {@link buildGroupedCourtRows} 的 group 行对应。
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import type { RecordBoardCalendarProps } from '../../../types';
|
|
7
|
+
export interface BookingCalendarGroupRowModel {
|
|
8
|
+
id: string;
|
|
9
|
+
label: string;
|
|
10
|
+
count: number;
|
|
11
|
+
collapsed: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface BookingCalendarGroupRowHeaderProps {
|
|
14
|
+
isLight: boolean;
|
|
15
|
+
/** 透传给 `renderResourceCell`(低代码自定义左侧格) */
|
|
16
|
+
view: 'day' | 'week' | 'resource';
|
|
17
|
+
row: BookingCalendarGroupRowModel;
|
|
18
|
+
renderResourceCell?: RecordBoardCalendarProps['renderResourceCell'];
|
|
19
|
+
setCollapsedGroups: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
20
|
+
/** 日视图虚拟格子/grid 定位时使用 */
|
|
21
|
+
style?: React.CSSProperties;
|
|
22
|
+
}
|
|
23
|
+
export declare function BookingCalendarGroupRowHeader(props: BookingCalendarGroupRowHeaderProps): JSX.Element;
|
package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** 月视图:由 BookingCalendar 传入数据与交互,本文件仅负责渲染结构 */
|
|
3
|
+
export declare function BookingCalendarMonthView({ isLight, anchorDate, monthDays, bookings, goToDayFromCell, handleGridDropMove, setDraggingItem, openBookingDetail, overflowPopover, setOverflowPopover, overflowListModal, setOverflowListModal, overflowPanelRef, renderMonthWeekBooking, }: {
|
|
4
|
+
isLight: any;
|
|
5
|
+
anchorDate: any;
|
|
6
|
+
monthDays: any;
|
|
7
|
+
bookings: any;
|
|
8
|
+
goToDayFromCell: any;
|
|
9
|
+
handleGridDropMove: any;
|
|
10
|
+
setDraggingItem: any;
|
|
11
|
+
openBookingDetail: any;
|
|
12
|
+
overflowPopover: any;
|
|
13
|
+
setOverflowPopover: any;
|
|
14
|
+
overflowListModal: any;
|
|
15
|
+
setOverflowListModal: any;
|
|
16
|
+
overflowPanelRef: any;
|
|
17
|
+
renderMonthWeekBooking: any;
|
|
18
|
+
}): JSX.Element;
|
package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.d.ts
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 资源视图(按月):与日视图同款骨架——冻结左列 + 横向滚动 + sticky 顶部表头。
|
|
3
|
+
*
|
|
4
|
+
* 与日视图的唯一差异:
|
|
5
|
+
* - 日视图:横轴 = 营业小时槽,cell = 一个小时;booking 通过 overlay 跨 cell 横铺。
|
|
6
|
+
* - 资源视图:横轴 = 当月每一天,cell = 一个 (court, date);booking 通过 overlay 在 cell 内
|
|
7
|
+
* 垂直 stack 渲染(最多 3 条 + `+N` 溢出 tile)。
|
|
8
|
+
*
|
|
9
|
+
* 性能策略(与日视图对齐):
|
|
10
|
+
* - cell 是「轻 placeholder」:只渲染背景色 + selected ring + 空 dashed slot/Selected 文本。
|
|
11
|
+
* - 所有 booking 卡片 / `+N` tile 由 `BookingOverlay` 单独 absolute 渲染,独立于 grid。
|
|
12
|
+
* - 这样 grid 内 DOM 极轻,浏览器每帧 paint/layout 与日视图同档(cell 内含复杂 booking
|
|
13
|
+
* 卡片时实测每列 ~7ms paint 成本,整月 30 列 → ~150ms;overlay 化后接近零)。
|
|
14
|
+
*
|
|
15
|
+
* 选中:与日视图 `toggleSlot(courtId, hour)` 等价的「`toggleResourceCell(courtId, dateKey)`」。
|
|
16
|
+
* 选中态合并到 cell 自身 className(与日视图一致),不插入额外 grid item,避免 CSS Grid 整表 reflow。
|
|
17
|
+
*/
|
|
18
|
+
import React from 'react';
|
|
19
|
+
import type { RecordBoardCalendarProps } from '../../../types';
|
|
20
|
+
declare type ResourceCellPick = {
|
|
21
|
+
courtId: string;
|
|
22
|
+
dateKey: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const BookingCalendarResourceView: React.MemoExoticComponent<typeof BookingCalendarResourceViewInner>;
|
|
25
|
+
declare function BookingCalendarResourceViewInner({ calendarProps, isLight, anchorDate, monthDays, slotColWidth, bookings, visibleCourts, visibleCourtRows, hourSlots, slotStepHours, handleGridDropMove, openBookingDetail, setDraggingItem, setCollapsedGroups, overflowPopover, setOverflowPopover, setOverflowListModal, overflowPanelRef, resourceMonthScrollToTodayToken, resourceDayHeaderRemaining, toggleResourceCell, selectedResourceCells, }: {
|
|
26
|
+
calendarProps: RecordBoardCalendarProps;
|
|
27
|
+
isLight: boolean;
|
|
28
|
+
anchorDate: Date;
|
|
29
|
+
monthDays: Date[];
|
|
30
|
+
slotColWidth: number;
|
|
31
|
+
bookings: any[];
|
|
32
|
+
visibleCourts: any[];
|
|
33
|
+
visibleCourtRows: any[];
|
|
34
|
+
hourSlots: number[];
|
|
35
|
+
slotStepHours: number;
|
|
36
|
+
handleGridDropMove: (dateKey: string, courtId?: string | null) => void;
|
|
37
|
+
openBookingDetail: (item: any) => void;
|
|
38
|
+
setDraggingItem: (item: any) => void;
|
|
39
|
+
setCollapsedGroups: React.Dispatch<React.SetStateAction<any>>;
|
|
40
|
+
overflowPopover: any;
|
|
41
|
+
setOverflowPopover: React.Dispatch<React.SetStateAction<any>>;
|
|
42
|
+
setOverflowListModal: React.Dispatch<React.SetStateAction<any>>;
|
|
43
|
+
overflowPanelRef: React.RefObject<HTMLDivElement | null>;
|
|
44
|
+
/** 切入资源视图时递增,用于将横向滚动对准「今天」列 */
|
|
45
|
+
resourceMonthScrollToTodayToken: number;
|
|
46
|
+
/** 顶部表头当日空闲率(与日视图 freeRatio 同口径) */
|
|
47
|
+
resourceDayHeaderRemaining: Record<string, {
|
|
48
|
+
remaining: number;
|
|
49
|
+
total: number;
|
|
50
|
+
ratio: number;
|
|
51
|
+
}>;
|
|
52
|
+
/** 与日视图 `toggleSlot` 同义:点击 cell 切换 (court, date) 的整天选中态 */
|
|
53
|
+
toggleResourceCell: (courtId: string, dateKey: string) => void;
|
|
54
|
+
/** 当前所有「资源月视图」选中的 cell(同 court 连续多天 → SelectionBar 显示 Block/Create) */
|
|
55
|
+
selectedResourceCells: ResourceCellPick[];
|
|
56
|
+
}): JSX.Element;
|
|
57
|
+
export {};
|
package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { RecordBoardCalendarProps } from '../../../types';
|
|
3
|
+
/**
|
|
4
|
+
* 周视图:7 日网格 + 左侧分组(可折叠),单元格调起日视图;格内 drop 触发改期草稿。
|
|
5
|
+
*/
|
|
6
|
+
export declare function BookingCalendarWeekView({ calendarProps, isLight, weekDays, bookings, courts, hourSlots, slotStepHours, visibleCourts, visibleCourtRows, isBusinessHour, goToDayFromCell, handleGridDropMove, openBookingDetail, setDraggingItem, setCollapsedGroups, overflowPopover, setOverflowPopover, overflowListModal, setOverflowListModal, overflowPanelRef, }: {
|
|
7
|
+
calendarProps: RecordBoardCalendarProps;
|
|
8
|
+
isLight: boolean;
|
|
9
|
+
weekDays: Date[];
|
|
10
|
+
bookings: any[];
|
|
11
|
+
courts: any[];
|
|
12
|
+
hourSlots: number[];
|
|
13
|
+
slotStepHours: number;
|
|
14
|
+
visibleCourts: any[];
|
|
15
|
+
visibleCourtRows: any[];
|
|
16
|
+
isBusinessHour: (h: number) => boolean;
|
|
17
|
+
goToDayFromCell: (d: Date, courtId: string | null, src: string) => void;
|
|
18
|
+
handleGridDropMove: (dateKey: string, courtId?: string | null) => void;
|
|
19
|
+
openBookingDetail: (item: any) => void;
|
|
20
|
+
setDraggingItem: (item: any) => void;
|
|
21
|
+
setCollapsedGroups: React.Dispatch<React.SetStateAction<any>>;
|
|
22
|
+
overflowPopover: any;
|
|
23
|
+
setOverflowPopover: React.Dispatch<React.SetStateAction<any>>;
|
|
24
|
+
overflowListModal: any;
|
|
25
|
+
setOverflowListModal: React.Dispatch<React.SetStateAction<any>>;
|
|
26
|
+
overflowPanelRef: React.RefObject<HTMLDivElement | null>;
|
|
27
|
+
}): JSX.Element;
|
package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { RecordBoardCalendarProps } from '../../../types';
|
|
3
|
+
/** 供日视图拆分出的子组件读取 `calendarProps` / 明暗,避免每层透传(可选使用) */
|
|
4
|
+
export declare type BookingCalendarDayChromeContextValue = {
|
|
5
|
+
calendarProps: RecordBoardCalendarProps;
|
|
6
|
+
isLight: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare function BookingCalendarDayChromeProvider({ children, value, }: {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
value: BookingCalendarDayChromeContextValue;
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
export declare function useBookingCalendarDayChrome(): BookingCalendarDayChromeContextValue;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CalendarBookingSegmentInput } from '../../utils/bookingCalendarDateUtils';
|
|
2
|
+
export declare function useBookingCalendarDayHourRemaining(visibleCourts: Array<{
|
|
3
|
+
id: string;
|
|
4
|
+
}>, dayKey: string, bookings: CalendarBookingSegmentInput[], hourSlots: number[], slotStepHours: number, isBusinessHour: (h: number) => boolean): {
|
|
5
|
+
[k: string]: {
|
|
6
|
+
remaining: number;
|
|
7
|
+
total: number;
|
|
8
|
+
ratio: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { type CalendarBookingSegmentInput } from '../../utils/bookingCalendarDateUtils';
|
|
3
|
+
import type { FreeSlotSelection } from '../../bookingCalendarInternalTypes';
|
|
4
|
+
export declare function useBookingCalendarDaySelection(dayKey: string, bookings: CalendarBookingSegmentInput[], hourSlots: number[], slotStepHours: number, courts: Array<{
|
|
5
|
+
id: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
}>, selectedFreeSlots: FreeSlotSelection[], selectedBlockSlots: FreeSlotSelection[], setSelectedFreeSlots: Dispatch<SetStateAction<FreeSlotSelection[]>>, setSelectedBlockSlots: Dispatch<SetStateAction<FreeSlotSelection[]>>): {
|
|
8
|
+
isFreeSelected: (courtId: string, hour: number) => boolean;
|
|
9
|
+
isBlockSelected: (courtId: string, hour: number) => boolean;
|
|
10
|
+
toggleSlot: (courtId: string, hour: number) => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import type { ResourceCellPick } from '../../bookingCalendarInternalTypes';
|
|
3
|
+
export declare function useBookingCalendarResourceCellToggle(setSelectedResourceCells: Dispatch<SetStateAction<ResourceCellPick[]>>): (courtId: string, dateKey: string) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CalendarBookingSegmentInput } from '../../utils/bookingCalendarDateUtils';
|
|
2
|
+
export declare function useBookingCalendarResourceDayHeaderRemaining(resourceMonthDays: Date[], visibleCourts: Array<{
|
|
3
|
+
id: string;
|
|
4
|
+
}>, bookings: CalendarBookingSegmentInput[], hourSlots: number[], slotStepHours: number): Record<string, {
|
|
5
|
+
remaining: number;
|
|
6
|
+
total: number;
|
|
7
|
+
ratio: number;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import type { CalendarViewMode, FreeSlotSelection, ResourceCellPick, TransitioningToDayState } from '../bookingCalendarInternalTypes';
|
|
3
|
+
export declare function useBookingCalendarGoToDayFromCell(anchorDate: Date, commitAnchor: (d: Date) => void, commitView: (v: CalendarViewMode) => void, setNavDirection: Dispatch<SetStateAction<number>>, setTransitioningToDay: Dispatch<SetStateAction<TransitioningToDayState | null>>, setSelectedFreeSlots: Dispatch<SetStateAction<FreeSlotSelection[]>>, setSelectedBlockSlots: Dispatch<SetStateAction<FreeSlotSelection[]>>, setSelectedResourceCells: Dispatch<SetStateAction<ResourceCellPick[]>>, setFocusedCourtId: Dispatch<SetStateAction<string | null>>): (day: Date, courtId: string | null, source: string) => void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
import type { RecordBoardContextValue } from '../../types';
|
|
4
|
+
export interface RecordBoardPaginationProps extends Partial<Pick<RecordBoardContextValue, 'pagination' | 'total' | 'onPageChange' | 'loading'>> {
|
|
5
|
+
className?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
render?: (ctx: RecordBoardContextValue) => React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* RecordBoard 下的分页:接入 packages/materials 的 Pagination,从 context 取 pagination / total / onPageChange;可透传 childComponentProps.pagination。
|
|
11
|
+
* 当 context 中 pagination 缺失时使用默认分页,避免在 Storybook 或未完整注入 context 时报错。
|
|
12
|
+
*/
|
|
13
|
+
declare const RecordBoardPagination: React.FC<RecordBoardPaginationProps>;
|
|
14
|
+
export default RecordBoardPagination;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { RecordBoardResourceWallProps } from '../../types';
|
|
3
|
+
import './ResourceWallViewport.less';
|
|
4
|
+
/** 与 {@link RecordBoardResourceWallProps.filterFieldKey} 默认一致 */
|
|
5
|
+
export declare const DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY = "resource_wall_resource_ids";
|
|
6
|
+
/**
|
|
7
|
+
* RecordBoard 大屏资源墙主视口:`cards` 提供全量卡数据;可见列表由
|
|
8
|
+
* `searchParams.filter.values[filterFieldKey]` 中的资源 id 与 `cards` 交集决定。
|
|
9
|
+
* 若 ToolBar `searchParams.sort` 指向状态列(默认字段名 `status`),则按占用态重排展示顺序。
|
|
10
|
+
* 支持网格分页轮播、浅深外观、伪全屏与控制台(布局 / 配色 / 选中资源)。
|
|
11
|
+
*/
|
|
12
|
+
export declare const PisellRecordBoardResourceWallView: React.FC<RecordBoardResourceWallProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { RecordBoardResourceWallProps } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* RecordBoard 大屏资源墙槽位:仅在 PisellRecordBoard.ShellFrame 内使用,本身不渲染 DOM。
|
|
5
|
+
* 与 GridLayout / FloorMap / Calendar 并存时出现视图切换。
|
|
6
|
+
*/
|
|
7
|
+
declare const RecordBoardResourceWall: React.FC<RecordBoardResourceWallProps>;
|
|
8
|
+
export default RecordBoardResourceWall;
|
package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type VenueWallStatusToneOverrides } from './venueWallUtils';
|
|
3
|
+
export declare type ResourceWallLayoutPreset = {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
cols: number;
|
|
7
|
+
rows: number;
|
|
8
|
+
};
|
|
9
|
+
export declare type ResourceWallControlPanelApplyPayload = {
|
|
10
|
+
resourceIds: string[];
|
|
11
|
+
layoutKey: string;
|
|
12
|
+
customCols: number;
|
|
13
|
+
customRows: number;
|
|
14
|
+
pageDurationSec: number;
|
|
15
|
+
occupiedCardColor: string;
|
|
16
|
+
availableCardColor: string;
|
|
17
|
+
boardingSoonBeforeMin: number;
|
|
18
|
+
statusToneOverrides: VenueWallStatusToneOverrides;
|
|
19
|
+
/** 与 test.tsx「主文案基准宽度占比」对接,写入 {@link VenueWallCard} */
|
|
20
|
+
heroMaxWidthRatio: number;
|
|
21
|
+
};
|
|
22
|
+
export interface ResourceWallControlPanelProps {
|
|
23
|
+
open: boolean;
|
|
24
|
+
onClose: () => void;
|
|
25
|
+
isDark: boolean;
|
|
26
|
+
layoutPresets: readonly ResourceWallLayoutPreset[];
|
|
27
|
+
layoutKey: string;
|
|
28
|
+
customCols: number;
|
|
29
|
+
customRows: number;
|
|
30
|
+
pageDurationSec: number;
|
|
31
|
+
occupiedCardColor: string;
|
|
32
|
+
availableCardColor: string;
|
|
33
|
+
boardingSoonBeforeMin: number;
|
|
34
|
+
statusToneOverrides: VenueWallStatusToneOverrides | undefined;
|
|
35
|
+
selectedResourceIds: string[];
|
|
36
|
+
onApply: (payload: ResourceWallControlPanelApplyPayload) => void;
|
|
37
|
+
/** 与 test.tsx「当前分页 / 倒计时」展示一致(1-based current) */
|
|
38
|
+
carouselPager: {
|
|
39
|
+
currentPage: number;
|
|
40
|
+
totalPages: number;
|
|
41
|
+
};
|
|
42
|
+
/** 主文案宽度占比初值,与 {@link VenueWallCardProps.heroMaxWidthRatio} 一致 */
|
|
43
|
+
heroMaxWidthRatio?: number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* 资源墙管理台(Portal):选资源、网格预设/自定义行列、翻页秒数、占用/空闲色、六态说明与色值;
|
|
47
|
+
* `onApply` 回传负载中含 `diffVenueWallStatusToneOverrides` 压缩结果。
|
|
48
|
+
* 源自 test `showAdmin` 对接;关闭(Close / Escape / 遮罩)时提交草稿并关闭。
|
|
49
|
+
*/
|
|
50
|
+
export declare const ResourceWallControlPanel: React.FC<ResourceWallControlPanelProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type VenueWallStatusKey, type VenueWallStatusTone } from './venueWallUtils';
|
|
3
|
+
export interface ResourceWallControlPanelColorTabProps {
|
|
4
|
+
adminSectionBg: string;
|
|
5
|
+
adminInputBg: string;
|
|
6
|
+
headerText: string;
|
|
7
|
+
mutedText: string;
|
|
8
|
+
divider: string;
|
|
9
|
+
draftOcc: string;
|
|
10
|
+
setDraftOcc: (v: string) => void;
|
|
11
|
+
draftAvail: string;
|
|
12
|
+
setDraftAvail: (v: string) => void;
|
|
13
|
+
draftTones: Record<VenueWallStatusKey, VenueWallStatusTone>;
|
|
14
|
+
setDraftTones: React.Dispatch<React.SetStateAction<Record<VenueWallStatusKey, VenueWallStatusTone>>>;
|
|
15
|
+
}
|
|
16
|
+
/** 控制台「外观 / 颜色」分页:占用/空闲底色与六态表格 */
|
|
17
|
+
export declare const ResourceWallControlPanelColorTab: React.FC<ResourceWallControlPanelColorTabProps>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ResourceWallControlPanelLayoutTabProps {
|
|
3
|
+
adminSectionBg: string;
|
|
4
|
+
adminInputBg: string;
|
|
5
|
+
headerText: string;
|
|
6
|
+
mutedText: string;
|
|
7
|
+
layoutPresets: readonly {
|
|
8
|
+
key: string;
|
|
9
|
+
label: string;
|
|
10
|
+
cols: number;
|
|
11
|
+
rows: number;
|
|
12
|
+
}[];
|
|
13
|
+
draftLayoutKey: string;
|
|
14
|
+
setDraftLayoutKey: (v: string) => void;
|
|
15
|
+
draftCustomCols: number;
|
|
16
|
+
setDraftCustomCols: (v: number) => void;
|
|
17
|
+
draftCustomRows: number;
|
|
18
|
+
setDraftCustomRows: (v: number) => void;
|
|
19
|
+
draftPageSec: number;
|
|
20
|
+
setDraftPageSec: (v: number) => void;
|
|
21
|
+
draftHeroRatio: number;
|
|
22
|
+
setDraftHeroRatio: (v: number) => void;
|
|
23
|
+
carouselCur: number;
|
|
24
|
+
carouselTot: number;
|
|
25
|
+
isDark: boolean;
|
|
26
|
+
}
|
|
27
|
+
/** 控制台「资源 / 布局」分页:预设、自定义行列、翻页停留、主文案宽度 */
|
|
28
|
+
export declare const ResourceWallControlPanelLayoutTab: React.FC<ResourceWallControlPanelLayoutTabProps>;
|