@pisell/materials 6.11.223 → 6.11.224
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +8 -0
- package/es/components/PisellCards/components/GraphicTextCard/components/GraphicArea.d.ts +24 -0
- package/es/components/PisellCards/components/GraphicTextCard/components/index.d.ts +6 -0
- package/es/components/PisellCards/components/GraphicTextCard/index.d.ts +5 -0
- package/es/components/PisellCards/components/PisellImageCard/index.d.ts +5 -0
- package/es/components/PisellCards/components/index.d.ts +10 -0
- package/es/components/PisellCards/index.d.ts +14 -0
- package/es/components/PisellFields/index.d.ts +36 -0
- package/es/components/PisellMetrics/index.d.ts +23 -0
- package/es/components/PisellTabbar2/PisellTabbar.d.ts +23 -0
- package/es/components/PisellTabbar2/components/TabbarLevel.d.ts +8 -0
- package/es/components/PisellTabbar2/components/index.d.ts +1 -0
- package/es/components/PisellTabbar2/index.d.ts +6 -0
- package/es/components/PisellTabbar3/PisellTabbar.d.ts +20 -0
- package/es/components/PisellTabbar3/index.d.ts +6 -0
- package/es/components/batch-editor/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceSubForm/index.d.ts +13 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/RecordListWrapper/WithMode.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +11 -0
- package/es/components/dataSourceComponents/fields/Tabs/WithMode.d.ts +6 -0
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +12 -0
- package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +9 -9
- package/es/components/drag-sort-tree/index.d.ts +0 -1
- package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.d.ts +21 -0
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/es/components/pisellBatchActionBar/index.d.ts +6 -0
- package/es/components/pisellCurrency/PisellCurrency.stories.d.ts +56 -0
- package/es/components/pisellCurrency/components/DisabledView.d.ts +11 -0
- package/es/components/pisellCurrency/components/ReadOnlyView.d.ts +17 -0
- package/es/components/pisellCurrency/components/index.d.ts +6 -0
- package/es/components/pisellCurrency/index.d.ts +7 -0
- package/es/components/pisellCurrency/utils/index.d.ts +5 -0
- package/es/components/pisellDataSourceContainer/PisellDataSourceContainer.d.ts +3 -0
- package/es/components/pisellDataSourceContainer/components/Filter/FilterButton.d.ts +7 -0
- package/es/components/pisellDataSourceContainer/components/Pagination/index.d.ts +6 -0
- package/es/components/pisellDataSourceContainer/components/Sort/index.d.ts +9 -0
- package/es/components/pisellDataSourceContainer/components/Table/index.d.ts +9 -0
- package/es/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +14 -0
- package/es/components/pisellDataSourceContainer/hooks/useContainerContext.d.ts +3 -0
- package/es/components/pisellDataSourceContainer/utils/withContainer.d.ts +9 -0
- package/es/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
- package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.d.ts +35 -0
- package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.stories.d.ts +195 -0
- package/es/components/pisellDateTimeDisplay/components/DateDisplay.d.ts +48 -0
- package/es/components/pisellDateTimeDisplay/components/TimeDisplay.d.ts +42 -0
- package/es/components/pisellDateTimeDisplay/components/WeekdayDisplay.d.ts +57 -0
- package/es/components/pisellDateTimeDisplay/components/index.d.ts +6 -0
- package/es/components/pisellDateTimeDisplay/hooks/index.d.ts +2 -0
- package/es/components/pisellDateTimeDisplay/hooks/useCurrentTime.d.ts +46 -0
- package/es/components/pisellDateTimeDisplay/index.d.ts +3 -0
- package/es/components/pisellDateTimeDisplay/utils/formatDate.d.ts +21 -0
- package/es/components/pisellDateTimeDisplay/utils/formatDateOrRelative.d.ts +17 -0
- package/es/components/pisellDateTimeDisplay/utils/formatWeekday.d.ts +30 -0
- package/es/components/pisellDateTimeDisplay/utils/index.d.ts +7 -0
- package/es/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +24 -0
- package/es/components/pisellEmail/PisellEmail.stories.d.ts +116 -0
- package/es/components/pisellEmail/components/DisabledView.d.ts +14 -0
- package/es/components/pisellEmail/components/ReadOnlyView.d.ts +15 -0
- package/es/components/pisellEmail/index.d.ts +7 -0
- package/es/components/pisellEmail/utils/emailHelper.d.ts +66 -0
- package/es/components/pisellEmail/utils/emailValidator.d.ts +45 -0
- package/es/components/pisellEmail/utils/index.d.ts +6 -0
- package/es/components/pisellFilter/index.d.ts +3 -0
- package/es/components/pisellFind/PisellFind.stories.d.ts +45 -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/EdgeLayer.d.ts +37 -0
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +89 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapOverview.d.ts +49 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +7 -0
- package/es/components/pisellFloorMapLayout/components/ItemLayer.d.ts +59 -0
- package/es/components/pisellFloorMapLayout/components/MapLayer.d.ts +27 -0
- package/es/components/pisellFloorMapLayout/components/NodePortMarkers.d.ts +20 -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/FloorMapLayoutContext.d.ts +16 -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/useFloorMapTransformMetrics.d.ts +91 -0
- package/es/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +19 -0
- package/es/components/pisellFloorMapLayout/index.d.ts +39 -0
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +10 -0
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanMapping.d.ts +18 -0
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +22 -0
- package/es/components/pisellFloorMapLayout/types.d.ts +769 -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/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/floorMapFallbackRender.d.ts +11 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapOverviewLayout.d.ts +44 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapRemotePersist.d.ts +17 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapSelectionZone.d.ts +24 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapToolbarPalette.d.ts +34 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +8 -0
- package/es/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +30 -0
- package/es/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +7 -0
- package/es/components/pisellInput/components/BankCard/index.d.ts +0 -1
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
- package/es/components/pisellLongText/PisellLongText.stories.d.ts +123 -0
- package/es/components/pisellLongText/components/DisabledView.d.ts +16 -0
- package/es/components/pisellLongText/components/ReadOnlyView.d.ts +18 -0
- package/es/components/pisellLongText/index.d.ts +7 -0
- package/es/components/pisellLookup/PisellLookup.stories.d.ts +129 -0
- package/es/components/pisellLookup/components/HotWords.d.ts +7 -0
- package/es/components/pisellLookup/components/LookupAuxiliary.d.ts +7 -0
- package/es/components/pisellLookup/components/LookupResultHost.d.ts +7 -0
- package/es/components/pisellLookup/components/SearchHistory.d.ts +7 -0
- package/es/components/pisellLookup/components/SuggestWords.d.ts +7 -0
- package/es/components/pisellLookup/components/index.d.ts +9 -0
- package/es/components/pisellLookup/hooks/index.d.ts +6 -0
- package/es/components/pisellLookup/hooks/useSearchHistory.d.ts +48 -0
- package/es/components/pisellLookup/index.d.ts +6 -0
- package/es/components/pisellLookup/utils/index.d.ts +5 -0
- package/es/components/pisellLookup/utils/trigger.d.ts +42 -0
- package/es/components/pisellMetricCard/PisellMetricCard.d.ts +35 -0
- package/es/components/pisellMetricCard/PisellMetricCard.stories.d.ts +17 -0
- package/es/components/pisellMetricCard/components/MetricComparison.d.ts +14 -0
- package/es/components/pisellMetricCard/components/index.d.ts +7 -0
- package/es/components/pisellMetricCard/index.d.ts +6 -0
- package/es/components/pisellMetricCard/utils/index.d.ts +5 -0
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.stories.d.ts +70 -0
- package/es/components/pisellMultipleSelect/components/DisabledView.d.ts +8 -0
- package/es/components/pisellMultipleSelect/index.d.ts +7 -0
- package/es/components/pisellNumber/PisellNumber.stories.d.ts +66 -0
- package/es/components/pisellNumber/components/DisabledView.d.ts +11 -0
- package/es/components/pisellNumber/components/index.d.ts +6 -0
- package/es/components/pisellNumber/index.d.ts +7 -0
- package/es/components/pisellPercent/PisellPercent.stories.d.ts +52 -0
- package/es/components/pisellPercent/components/DisabledView.d.ts +11 -0
- package/es/components/pisellPercent/components/ReadOnlyView.d.ts +14 -0
- package/es/components/pisellPercent/components/index.d.ts +6 -0
- package/es/components/pisellPercent/index.d.ts +7 -0
- package/es/components/pisellPercent/utils/index.d.ts +6 -0
- package/es/components/pisellPhone/PisellPhone.stories.d.ts +80 -0
- package/es/components/pisellPhone/components/DisabledView.d.ts +16 -0
- package/es/components/pisellPhone/components/ReadOnlyView.d.ts +17 -0
- package/es/components/pisellPhone/constants/countryCodes.d.ts +20 -0
- package/es/components/pisellPhone/index.d.ts +8 -0
- package/es/components/pisellPhone/utils/countryCodeHelper.d.ts +35 -0
- package/es/components/pisellPhone/utils/index.d.ts +6 -0
- package/es/components/pisellRating/PisellRating.stories.d.ts +53 -0
- package/es/components/pisellRating/index.d.ts +7 -0
- package/es/components/pisellRecordBoard/context/RecordBoardContext.d.ts +3 -0
- package/es/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +11 -0
- package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +16 -0
- package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +12 -0
- package/es/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +13 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
- package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -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/RecordBoardCalendar.d.ts +8 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +37 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +34 -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 +18 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.d.ts +17 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +30 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +10 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +330 -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 +52 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.d.ts +23 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +22 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.d.ts +57 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +26 -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/FloorMap.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/Search/index.d.ts +10 -0
- package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +24 -0
- package/es/components/pisellRecordBoard/types.d.ts +899 -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/pisellRecordBoard/utils/withRecordBoard.d.ts +9 -0
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +16 -0
- package/es/components/pisellReservationScheduleBand/index.d.ts +3 -0
- package/es/components/pisellSingleLineText/PisellSingleLineText.stories.d.ts +102 -0
- package/es/components/pisellSingleLineText/components/DisabledView.d.ts +16 -0
- package/es/components/pisellSingleLineText/components/ReadOnlyView.d.ts +20 -0
- package/es/components/pisellSingleLineText/index.d.ts +7 -0
- package/es/components/pisellSingleSelect/PisellSingleSelect.stories.d.ts +66 -0
- package/es/components/pisellSingleSelect/components/DisabledView.d.ts +8 -0
- package/es/components/pisellSingleSelect/index.d.ts +7 -0
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +79 -0
- package/es/components/pisellTimeNavigator/components/index.d.ts +5 -0
- package/es/components/pisellTimeNavigator/index.d.ts +5 -0
- package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +32 -0
- package/es/components/pisellTimeRangeDisplay/components/DateBlock.d.ts +20 -0
- package/es/components/pisellTimeRangeDisplay/components/DurationBlock.d.ts +19 -0
- package/es/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +36 -0
- package/es/components/pisellTimeRangeDisplay/components/WeekdayBlock.d.ts +18 -0
- package/es/components/pisellTimeRangeDisplay/utils/index.d.ts +4 -0
- package/es/components/pisellTooltip/index.d.ts +0 -1
- package/es/components/pisellUrl/PisellUrl.stories.d.ts +108 -0
- package/es/components/pisellUrl/components/DisabledView.d.ts +14 -0
- package/es/components/pisellUrl/components/ReadOnlyView.d.ts +15 -0
- package/es/components/pisellUrl/index.d.ts +7 -0
- package/es/components/table/Table/fields/image/index.d.ts +0 -1
- package/es/components/table/Table/fields/link/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/versionSelect/index.d.ts +1 -0
- package/es/locales/en-US.d.ts +566 -0
- package/es/locales/index.d.ts +1 -0
- package/es/locales/ja.d.ts +534 -0
- package/es/locales/pt.d.ts +534 -0
- package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +8 -0
- package/lib/components/PisellCards/components/GraphicTextCard/components/GraphicArea.d.ts +24 -0
- package/lib/components/PisellCards/components/GraphicTextCard/components/index.d.ts +6 -0
- package/lib/components/PisellCards/components/GraphicTextCard/index.d.ts +5 -0
- package/lib/components/PisellCards/components/PisellImageCard/index.d.ts +5 -0
- package/lib/components/PisellCards/components/index.d.ts +10 -0
- package/lib/components/PisellCards/index.d.ts +14 -0
- package/lib/components/PisellFields/index.d.ts +36 -0
- package/lib/components/PisellMetrics/index.d.ts +23 -0
- package/lib/components/PisellTabbar2/PisellTabbar.d.ts +23 -0
- package/lib/components/PisellTabbar2/components/TabbarLevel.d.ts +8 -0
- package/lib/components/PisellTabbar2/components/index.d.ts +1 -0
- package/lib/components/PisellTabbar2/index.d.ts +6 -0
- package/lib/components/PisellTabbar3/PisellTabbar.d.ts +20 -0
- package/lib/components/PisellTabbar3/index.d.ts +6 -0
- package/lib/components/batch-editor/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceSubForm/index.d.ts +13 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/WithMode.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +11 -0
- package/lib/components/dataSourceComponents/fields/Tabs/WithMode.d.ts +6 -0
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +12 -0
- package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +9 -9
- package/lib/components/drag-sort-tree/index.d.ts +0 -1
- package/lib/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.d.ts +21 -0
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/lib/components/pisellBatchActionBar/index.d.ts +6 -0
- package/lib/components/pisellCurrency/PisellCurrency.stories.d.ts +56 -0
- package/lib/components/pisellCurrency/components/DisabledView.d.ts +11 -0
- package/lib/components/pisellCurrency/components/ReadOnlyView.d.ts +17 -0
- package/lib/components/pisellCurrency/components/index.d.ts +6 -0
- package/lib/components/pisellCurrency/index.d.ts +7 -0
- package/lib/components/pisellCurrency/utils/index.d.ts +5 -0
- package/lib/components/pisellDataSourceContainer/PisellDataSourceContainer.d.ts +3 -0
- package/lib/components/pisellDataSourceContainer/components/Filter/FilterButton.d.ts +7 -0
- package/lib/components/pisellDataSourceContainer/components/Pagination/index.d.ts +6 -0
- package/lib/components/pisellDataSourceContainer/components/Sort/index.d.ts +9 -0
- package/lib/components/pisellDataSourceContainer/components/Table/index.d.ts +9 -0
- package/lib/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +14 -0
- package/lib/components/pisellDataSourceContainer/hooks/useContainerContext.d.ts +3 -0
- package/lib/components/pisellDataSourceContainer/utils/withContainer.d.ts +9 -0
- package/lib/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
- package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.d.ts +35 -0
- package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.stories.d.ts +195 -0
- package/lib/components/pisellDateTimeDisplay/components/DateDisplay.d.ts +48 -0
- package/lib/components/pisellDateTimeDisplay/components/TimeDisplay.d.ts +42 -0
- package/lib/components/pisellDateTimeDisplay/components/WeekdayDisplay.d.ts +57 -0
- package/lib/components/pisellDateTimeDisplay/components/index.d.ts +6 -0
- package/lib/components/pisellDateTimeDisplay/hooks/index.d.ts +2 -0
- package/lib/components/pisellDateTimeDisplay/hooks/useCurrentTime.d.ts +46 -0
- package/lib/components/pisellDateTimeDisplay/index.d.ts +3 -0
- package/lib/components/pisellDateTimeDisplay/utils/formatDate.d.ts +21 -0
- package/lib/components/pisellDateTimeDisplay/utils/formatDateOrRelative.d.ts +17 -0
- package/lib/components/pisellDateTimeDisplay/utils/formatWeekday.d.ts +30 -0
- package/lib/components/pisellDateTimeDisplay/utils/index.d.ts +7 -0
- package/lib/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +24 -0
- package/lib/components/pisellEmail/PisellEmail.stories.d.ts +116 -0
- package/lib/components/pisellEmail/components/DisabledView.d.ts +14 -0
- package/lib/components/pisellEmail/components/ReadOnlyView.d.ts +15 -0
- package/lib/components/pisellEmail/index.d.ts +7 -0
- package/lib/components/pisellEmail/utils/emailHelper.d.ts +66 -0
- package/lib/components/pisellEmail/utils/emailValidator.d.ts +45 -0
- package/lib/components/pisellEmail/utils/index.d.ts +6 -0
- package/lib/components/pisellFilter/index.d.ts +3 -0
- package/lib/components/pisellFind/PisellFind.stories.d.ts +45 -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/EdgeLayer.d.ts +37 -0
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +89 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapOverview.d.ts +49 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +7 -0
- package/lib/components/pisellFloorMapLayout/components/ItemLayer.d.ts +59 -0
- package/lib/components/pisellFloorMapLayout/components/MapLayer.d.ts +27 -0
- package/lib/components/pisellFloorMapLayout/components/NodePortMarkers.d.ts +20 -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/FloorMapLayoutContext.d.ts +16 -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/useFloorMapTransformMetrics.d.ts +91 -0
- package/lib/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +19 -0
- package/lib/components/pisellFloorMapLayout/index.d.ts +39 -0
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +10 -0
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanMapping.d.ts +18 -0
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +22 -0
- package/lib/components/pisellFloorMapLayout/types.d.ts +769 -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/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/floorMapFallbackRender.d.ts +11 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapOverviewLayout.d.ts +44 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapRemotePersist.d.ts +17 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapSelectionZone.d.ts +24 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapToolbarPalette.d.ts +34 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +8 -0
- package/lib/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +30 -0
- package/lib/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +7 -0
- package/lib/components/pisellInput/components/BankCard/index.d.ts +0 -1
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
- package/lib/components/pisellLongText/PisellLongText.stories.d.ts +123 -0
- package/lib/components/pisellLongText/components/DisabledView.d.ts +16 -0
- package/lib/components/pisellLongText/components/ReadOnlyView.d.ts +18 -0
- package/lib/components/pisellLongText/index.d.ts +7 -0
- package/lib/components/pisellLookup/PisellLookup.stories.d.ts +129 -0
- package/lib/components/pisellLookup/components/HotWords.d.ts +7 -0
- package/lib/components/pisellLookup/components/LookupAuxiliary.d.ts +7 -0
- package/lib/components/pisellLookup/components/LookupResultHost.d.ts +7 -0
- package/lib/components/pisellLookup/components/SearchHistory.d.ts +7 -0
- package/lib/components/pisellLookup/components/SuggestWords.d.ts +7 -0
- package/lib/components/pisellLookup/components/index.d.ts +9 -0
- package/lib/components/pisellLookup/hooks/index.d.ts +6 -0
- package/lib/components/pisellLookup/hooks/useSearchHistory.d.ts +48 -0
- package/lib/components/pisellLookup/index.d.ts +6 -0
- package/lib/components/pisellLookup/utils/index.d.ts +5 -0
- package/lib/components/pisellLookup/utils/trigger.d.ts +42 -0
- package/lib/components/pisellMetricCard/PisellMetricCard.d.ts +35 -0
- package/lib/components/pisellMetricCard/PisellMetricCard.stories.d.ts +17 -0
- package/lib/components/pisellMetricCard/components/MetricComparison.d.ts +14 -0
- package/lib/components/pisellMetricCard/components/index.d.ts +7 -0
- package/lib/components/pisellMetricCard/index.d.ts +6 -0
- package/lib/components/pisellMetricCard/utils/index.d.ts +5 -0
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.stories.d.ts +70 -0
- package/lib/components/pisellMultipleSelect/components/DisabledView.d.ts +8 -0
- package/lib/components/pisellMultipleSelect/index.d.ts +7 -0
- package/lib/components/pisellNumber/PisellNumber.stories.d.ts +66 -0
- package/lib/components/pisellNumber/components/DisabledView.d.ts +11 -0
- package/lib/components/pisellNumber/components/index.d.ts +6 -0
- package/lib/components/pisellNumber/index.d.ts +7 -0
- package/lib/components/pisellPercent/PisellPercent.stories.d.ts +52 -0
- package/lib/components/pisellPercent/components/DisabledView.d.ts +11 -0
- package/lib/components/pisellPercent/components/ReadOnlyView.d.ts +14 -0
- package/lib/components/pisellPercent/components/index.d.ts +6 -0
- package/lib/components/pisellPercent/index.d.ts +7 -0
- package/lib/components/pisellPercent/utils/index.d.ts +6 -0
- package/lib/components/pisellPhone/PisellPhone.stories.d.ts +80 -0
- package/lib/components/pisellPhone/components/DisabledView.d.ts +16 -0
- package/lib/components/pisellPhone/components/ReadOnlyView.d.ts +17 -0
- package/lib/components/pisellPhone/constants/countryCodes.d.ts +20 -0
- package/lib/components/pisellPhone/index.d.ts +8 -0
- package/lib/components/pisellPhone/utils/countryCodeHelper.d.ts +35 -0
- package/lib/components/pisellPhone/utils/index.d.ts +6 -0
- package/lib/components/pisellRating/PisellRating.stories.d.ts +53 -0
- package/lib/components/pisellRating/index.d.ts +7 -0
- package/lib/components/pisellRecordBoard/context/RecordBoardContext.d.ts +3 -0
- package/lib/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +11 -0
- package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +16 -0
- package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +12 -0
- package/lib/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +13 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
- package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -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/RecordBoardCalendar.d.ts +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +37 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +34 -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 +18 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.d.ts +17 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +30 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +10 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +330 -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 +52 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.d.ts +23 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +22 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.d.ts +57 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +26 -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/FloorMap.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/Search/index.d.ts +10 -0
- package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +24 -0
- package/lib/components/pisellRecordBoard/types.d.ts +899 -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/pisellRecordBoard/utils/withRecordBoard.d.ts +9 -0
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +16 -0
- package/lib/components/pisellReservationScheduleBand/index.d.ts +3 -0
- package/lib/components/pisellSingleLineText/PisellSingleLineText.stories.d.ts +102 -0
- package/lib/components/pisellSingleLineText/components/DisabledView.d.ts +16 -0
- package/lib/components/pisellSingleLineText/components/ReadOnlyView.d.ts +20 -0
- package/lib/components/pisellSingleLineText/index.d.ts +7 -0
- package/lib/components/pisellSingleSelect/PisellSingleSelect.stories.d.ts +66 -0
- package/lib/components/pisellSingleSelect/components/DisabledView.d.ts +8 -0
- package/lib/components/pisellSingleSelect/index.d.ts +7 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +79 -0
- package/lib/components/pisellTimeNavigator/components/index.d.ts +5 -0
- package/lib/components/pisellTimeNavigator/index.d.ts +5 -0
- package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +32 -0
- package/lib/components/pisellTimeRangeDisplay/components/DateBlock.d.ts +20 -0
- package/lib/components/pisellTimeRangeDisplay/components/DurationBlock.d.ts +19 -0
- package/lib/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +36 -0
- package/lib/components/pisellTimeRangeDisplay/components/WeekdayBlock.d.ts +18 -0
- package/lib/components/pisellTimeRangeDisplay/utils/index.d.ts +4 -0
- package/lib/components/pisellTooltip/index.d.ts +0 -1
- package/lib/components/pisellUrl/PisellUrl.stories.d.ts +108 -0
- package/lib/components/pisellUrl/components/DisabledView.d.ts +14 -0
- package/lib/components/pisellUrl/components/ReadOnlyView.d.ts +15 -0
- package/lib/components/pisellUrl/index.d.ts +7 -0
- package/lib/components/table/Table/fields/image/index.d.ts +0 -1
- package/lib/components/table/Table/fields/link/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/versionSelect/index.d.ts +1 -0
- package/lib/locales/en-US.d.ts +566 -0
- package/lib/locales/index.d.ts +1 -0
- package/lib/locales/ja.d.ts +534 -0
- package/lib/locales/pt.d.ts +534 -0
- package/package.json +3 -3
- package/es/components/cardPro/index.d.ts +0 -4
- package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -201
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
- package/es/components/pisell-config-provider/context.d.ts +0 -22
- package/es/components/pisell-config-provider/index.d.ts +0 -13
- package/es/components/pisellAdjustPrice/status.d.ts +0 -32
- package/es/components/pisellAdjustPrice/type.d.ts +0 -22
- package/es/components/pisellFind/index.d.ts +0 -67
- package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.stories.d.ts +0 -12
- package/es/components/pisellReservationSchedule/index.d.ts +0 -2
- package/es/components/pisellToast/squareToast/index.d.ts +0 -15
- package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
- package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -8
- package/es/components/productCard/components/Action/index.d.ts +0 -4
- package/es/components/productCard/locales.d.ts +0 -138
- package/es/components/select-time/index.d.ts +0 -13
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/lib/components/cardPro/index.d.ts +0 -4
- package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -201
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
- package/lib/components/pisell-config-provider/context.d.ts +0 -22
- package/lib/components/pisell-config-provider/index.d.ts +0 -13
- package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
- package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
- package/lib/components/pisellFind/index.d.ts +0 -67
- package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.stories.d.ts +0 -12
- package/lib/components/pisellReservationSchedule/index.d.ts +0 -2
- package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
- package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
- package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -8
- package/lib/components/productCard/components/Action/index.d.ts +0 -4
- package/lib/components/productCard/locales.d.ts +0 -138
- package/lib/components/select-time/index.d.ts +0 -13
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type CalendarBookingSegmentInput } from '../utils/bookingCalendarDateUtils';
|
|
2
|
+
export declare function useBookingCalendarDayOverlayLayout(visibleCourtRows: unknown[], dayKey: string, bookings: CalendarBookingSegmentInput[], hourSlots: number[], slotStepHours: number): {
|
|
3
|
+
dayRowHeights: number[];
|
|
4
|
+
dayRowTopMap: Record<string, number>;
|
|
5
|
+
overlayBookings: import("../utils/bookingCalendarDateUtils").BuiltDayOverlay[];
|
|
6
|
+
courtDayDisplayLaneCount: Record<string, number>;
|
|
7
|
+
hiddenDayOverlayIdSet: Set<string>;
|
|
8
|
+
dayOverlayOverflowPluses: {
|
|
9
|
+
key: string;
|
|
10
|
+
courtId: string;
|
|
11
|
+
rowTop: number;
|
|
12
|
+
rowHeight: number;
|
|
13
|
+
start: number;
|
|
14
|
+
span: number;
|
|
15
|
+
plusCount: number;
|
|
16
|
+
overflowItems: CalendarBookingSegmentInput[];
|
|
17
|
+
}[];
|
|
18
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 看板日历子模块导出:持久化守卫、日历根视图、Shell 槽位占位组件。
|
|
3
|
+
*/
|
|
4
|
+
export { CalendarPersistProvider, useCalendarPersist, } from './calendarPersistGuard';
|
|
5
|
+
export type { CalendarPersistContextValue, CalendarPersistKind, } from './calendarPersistGuard';
|
|
6
|
+
export { PisellRecordBoardCalendarView, type PisellRecordBoardCalendarViewProps, } from './PisellRecordBoardCalendarView';
|
|
7
|
+
export { default as RecordBoardCalendar } from './RecordBoardCalendar';
|
package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarBlockPanel.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { BlockTimeRange } from '../bookingCalendarInternalTypes';
|
|
3
|
+
export declare type BookingCalendarBlockPanelProps = {
|
|
4
|
+
blockPanelRef: React.RefObject<HTMLDivElement | null>;
|
|
5
|
+
isLight: boolean;
|
|
6
|
+
blockFormName: string;
|
|
7
|
+
setBlockFormName: (v: string) => void;
|
|
8
|
+
blockModalNote: string;
|
|
9
|
+
setBlockModalNote: (v: string) => void;
|
|
10
|
+
blockResourceId: string;
|
|
11
|
+
setBlockResourceId: (v: string) => void;
|
|
12
|
+
blockTimeRange: BlockTimeRange;
|
|
13
|
+
setBlockTimeRange: (v: BlockTimeRange) => void;
|
|
14
|
+
resolvedSlotMinutes: number;
|
|
15
|
+
visibleCourts: Array<{
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
}>;
|
|
19
|
+
blockSaving: boolean;
|
|
20
|
+
onClose: () => void;
|
|
21
|
+
onSave: () => void;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* 内置锁台 / 屏蔽时间表单(宿主未传 `onBlockedTimePanelRequest` 时使用)。
|
|
25
|
+
*/
|
|
26
|
+
export declare function BookingCalendarBlockPanel({ blockPanelRef, isLight, blockFormName, setBlockFormName, blockModalNote, setBlockModalNote, blockResourceId, setBlockResourceId, blockTimeRange, setBlockTimeRange, resolvedSlotMinutes, visibleCourts, blockSaving, onClose, onSave, }: BookingCalendarBlockPanelProps): JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { RecordBoardCalendarBookingLike, RecordBoardCalendarBookingRenderArgs } from '../../../types';
|
|
3
|
+
import type { OverflowListModalState } from '../bookingCalendarInternalTypes';
|
|
4
|
+
export declare type BookingCalendarOverflowListLayerProps = {
|
|
5
|
+
overflowPanelRef: React.RefObject<HTMLDivElement | null>;
|
|
6
|
+
isLight: boolean;
|
|
7
|
+
modal: OverflowListModalState;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
onPickItem: (item: RecordBoardCalendarBookingLike) => void;
|
|
10
|
+
/** 仅日视图 lane 溢出:透传宿主 `renderBooking`(RoomCard) */
|
|
11
|
+
renderBooking?: (args: RecordBoardCalendarBookingRenderArgs) => React.ReactNode;
|
|
12
|
+
onDragStart?: (item: RecordBoardCalendarBookingLike) => void;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* 全局溢出预约列表弹层(日视图 lane 与月/周/资源 `+N` 点开后)。
|
|
16
|
+
* 日视图列表行可走宿主 RoomCard;其它视图使用内置列表行。
|
|
17
|
+
*/
|
|
18
|
+
export declare function BookingCalendarOverflowListLayer({ overflowPanelRef, isLight, modal, onClose, onPickItem, renderBooking, onDragStart, }: BookingCalendarOverflowListLayerProps): JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** 拖拽改期后的确认弹窗(Court / 日期 / 起止时间) */
|
|
3
|
+
export declare function MoveConfirmModal({ moveConfirm, moveDraft, setMoveDraft, panelRef, isLight, courts, visibleCourts, hourSlots, isBusinessHour, firstTimelineHour, endTimelineExclusive, onConfirm, onClose, }: {
|
|
4
|
+
moveConfirm: any;
|
|
5
|
+
moveDraft: any;
|
|
6
|
+
setMoveDraft: any;
|
|
7
|
+
panelRef: any;
|
|
8
|
+
isLight: any;
|
|
9
|
+
courts: any;
|
|
10
|
+
visibleCourts: any;
|
|
11
|
+
hourSlots: any;
|
|
12
|
+
isBusinessHour: any;
|
|
13
|
+
firstTimelineHour: any;
|
|
14
|
+
endTimelineExclusive: any;
|
|
15
|
+
onConfirm: any;
|
|
16
|
+
onClose: any;
|
|
17
|
+
}): JSX.Element | null;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type CalendarBookingSegmentInput } from '../utils/bookingCalendarDateUtils';
|
|
3
|
+
import type { RecordBoardCalendarBookingLike, RecordBoardCalendarBookingRenderArgs } from '../../../types';
|
|
4
|
+
export declare type OverflowListModalVirtualListProps = {
|
|
5
|
+
items: CalendarBookingSegmentInput[];
|
|
6
|
+
dateKey: string;
|
|
7
|
+
onPickItem: (item: CalendarBookingSegmentInput) => void;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
/**
|
|
10
|
+
* 为 true 时按日视图逻辑展示状态徽标与状态底色(日视图 lane 溢出列表)。
|
|
11
|
+
* 月 / 周 / 资源 +N 弹层为 false,使用内置列表行(名称 + 时间)。
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
14
|
+
showStatusUi?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* 为 true 且宿主提供 `renderBooking` 时,列表行复用日视图 RoomCard;
|
|
17
|
+
* 月 / 周 / 资源 +N 弹层恒为 false,不走宿主格内卡片。
|
|
18
|
+
*/
|
|
19
|
+
isDayLaneOverflow?: boolean;
|
|
20
|
+
isLight?: boolean;
|
|
21
|
+
/** 仅日视图 lane 溢出:透传宿主 `renderBooking` */
|
|
22
|
+
renderBooking?: (args: RecordBoardCalendarBookingRenderArgs) => React.ReactNode;
|
|
23
|
+
onDragStart?: (item: RecordBoardCalendarBookingLike) => void;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* 溢出预约列表弹层:`FixedSizeList` 虚拟列表。
|
|
27
|
+
* - 日视图 lane +N:宿主 `renderBooking`(RoomCard)
|
|
28
|
+
* - 月 / 周 / 资源 +N:内置列表行(名称 + 时间),不用格内自定义卡片
|
|
29
|
+
*/
|
|
30
|
+
export declare function OverflowListModalVirtualList({ items, dateKey, onPickItem, onClose, showStatusUi, isDayLaneOverflow, isLight, renderBooking, onDragStart, }: OverflowListModalVirtualListProps): JSX.Element | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type CalendarBookingSegmentInput } from './bookingCalendarDateUtils';
|
|
2
|
+
export declare function getDrawerStatusTheme(item: CalendarBookingSegmentInput, dateKey: string): "bg-red-700/88 border-b-4 border-red-300/55" | "bg-zinc-700/88 border-b-4 border-zinc-400/45" | "bg-zinc-700/88 border-b-4 border-red-400/75" | "bg-violet-700/92 border-b-4 border-amber-400/95" | "bg-violet-700/92 border-b-4 border-zinc-300/45" | "bg-violet-700/92 border-b-4 border-violet-300/30";
|
|
3
|
+
export declare function paymentTagClass(label: string, isLight?: boolean): "theme-success-chip border" | "bg-emerald-500 text-white" | "theme-warning-chip border" | "bg-amber-500 text-white" | "theme-info-chip border" | "bg-sky-500 text-white" | "theme-danger-chip border" | "bg-red-500 text-white";
|
|
4
|
+
export declare function fulfillmentTagClass(label: string, isLight?: boolean): "bg-violet-600 text-white" | "theme-success-chip border" | "theme-warning-chip border" | "bg-amber-500 text-white" | "theme-info-chip border" | "theme-danger-chip border" | "bg-emerald-600 text-white" | "bg-cyan-500 text-white" | "bg-red-600 text-white" | "border border-[var(--border-strong)] bg-[var(--bg-input)] theme-text-soft" | "bg-zinc-600 text-white" | "border border-[var(--brand-light)] bg-[var(--brand-surface)] theme-brand-text";
|
|
5
|
+
export declare function getBookingStateClasses(item: CalendarBookingSegmentInput, dateKey: string): "bg-zinc-700/55 border border-zinc-500/70 text-zinc-100 grayscale-[0.2]" | "bg-zinc-700/55 border border-red-500/70 text-zinc-200 grayscale-[0.15]" | "bg-violet-700/90 border border-amber-400/80 text-violet-50" | "bg-red-700/70 text-red-100" | "bg-violet-700/90 text-violet-50";
|
|
6
|
+
/**
|
|
7
|
+
* 月 / 周紧凑格:不按签到/取消/迟到等状态变色,仅区分 booking(默认紫)与 block(红)。
|
|
8
|
+
* 与 {@link getBookingStateClasses} 在无状态分支时一致,但不读取 `dateKey`。
|
|
9
|
+
*/
|
|
10
|
+
export declare function getGridBookingRowStateClasses(item: CalendarBookingSegmentInput): string;
|
package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts
ADDED
|
@@ -0,0 +1,330 @@
|
|
|
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
|
+
/**
|
|
34
|
+
* `YYYY-MM-DD` → `M/D`,跨日 booking 的 pill 内时间行用这个短日期前缀,
|
|
35
|
+
* 视觉上不挤占 pill 宽度(24px 左右)。
|
|
36
|
+
*/
|
|
37
|
+
export declare function formatShortMonthDay(dateKey: string): string;
|
|
38
|
+
export declare function buildTimeOptions(start?: number, end?: number, sliceMinutes?: number): number[];
|
|
39
|
+
export declare function monthGrid(date: Date, bookings: CalendarBookingSegmentInput[], courtsList: {
|
|
40
|
+
id: string;
|
|
41
|
+
}[] | undefined, hourSlotsIn: number[] | undefined, slotStepHours?: number): {
|
|
42
|
+
date: Date;
|
|
43
|
+
key: string;
|
|
44
|
+
inMonth: boolean;
|
|
45
|
+
bookingCount: number;
|
|
46
|
+
blockCount: number;
|
|
47
|
+
fullyBooked: boolean;
|
|
48
|
+
}[];
|
|
49
|
+
export declare function getBookingSegmentForDate(item: CalendarBookingSegmentInput, dateKey: string): BookingSegmentForDate | null;
|
|
50
|
+
/**
|
|
51
|
+
* 是否跨自然日(`endDate` 存在且与 `date` 不同)。单日 booking 返回 false。
|
|
52
|
+
*/
|
|
53
|
+
export declare function isCrossDayBooking(item: CalendarBookingSegmentInput): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* 把 booking 整段转成绝对毫秒区间:
|
|
56
|
+
* - `startMs = parseDate(date).setHours(...)`,按浮点小时拆出小时 / 分钟(30 min 步进)
|
|
57
|
+
* - `endMs` 同理;`endHour = 24` 时归一为「次日 00:00」
|
|
58
|
+
*
|
|
59
|
+
* 用于跨视图统一的 lane 抢占与重叠判定,避免「按格切」假设。
|
|
60
|
+
*/
|
|
61
|
+
export declare function getBookingFullSpanMs(item: CalendarBookingSegmentInput): {
|
|
62
|
+
startMs: number;
|
|
63
|
+
endMs: number;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* 同 court 内两条 booking 的时间区间是否相交(`[startMs, endMs)` 半开区间,端点相邻不算交)。
|
|
67
|
+
* 跨 court 永远不算冲突(不同资源各画各的)。
|
|
68
|
+
*/
|
|
69
|
+
export declare function bookingsOverlap(a: CalendarBookingSegmentInput, b: CalendarBookingSegmentInput): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* 把 booking 整段转成「按日」的毫秒区间:
|
|
72
|
+
* - `startMs = parseDate(date).getTime()`
|
|
73
|
+
* - `endMs = parseDate(endDate ?? date).getTime() + 1 day`
|
|
74
|
+
*
|
|
75
|
+
* 用于资源 / 月视图这类「一格 = 一天」的视图:同一天内不同小时的两条 booking
|
|
76
|
+
* 视觉上需要垂直 stack(占两个 lane),即使时间不重叠也不能合并到同一 lane。
|
|
77
|
+
*/
|
|
78
|
+
export declare function getBookingDaySpanMs(item: CalendarBookingSegmentInput): {
|
|
79
|
+
startMs: number;
|
|
80
|
+
endMs: number;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* booking 的 day-span `[date, endDate]` 是否与 `[windowFirstKey, windowLastKey]` 相交。
|
|
84
|
+
*
|
|
85
|
+
* 用于 lane 抢占 / 行高计算阶段过滤掉与当前视口不相交的 booking:
|
|
86
|
+
* 后端为支持跨日 banner 续画把 `booking_time_start_between` 的下界外推 30 天,
|
|
87
|
+
* 这会把上月/前周的 booking 也带回 `bookings` 列表;视图层若直接用全量算 lane,
|
|
88
|
+
* 切到「当月没数据但上月有」的资源行时会保留上月 lane 数 → 行高被撑高。
|
|
89
|
+
*
|
|
90
|
+
* 只比较 `YYYY-MM-DD` 字符串(同 `monthGrid` 的 key 格式),不构造 Date 对象。
|
|
91
|
+
*/
|
|
92
|
+
export declare function bookingIntersectsDateWindow(item: {
|
|
93
|
+
date?: unknown;
|
|
94
|
+
endDate?: unknown;
|
|
95
|
+
} | null | undefined, windowFirstKey: string, windowLastKey: string): boolean;
|
|
96
|
+
/**
|
|
97
|
+
* 将 booking 的 day-span 截断到窗口 `[windowFirstKey, windowLastKey]`,超出窗口的部分裁掉,
|
|
98
|
+
* 用于月视图「按周独立 lane 抢占 + 跨周续画」:
|
|
99
|
+
* - 与窗口完全不相交 → 返回 `null`;
|
|
100
|
+
* - `date` 早于窗口 → 起点截到 `windowFirstKey`(视觉上 `clippedLeft`);
|
|
101
|
+
* - `endDate` 晚于窗口 → 终点截到 `windowLastKey`(视觉上 `clippedRight`);
|
|
102
|
+
* - 截断后只占一天的,回退为单日(`endDate` 设为 `undefined`)。
|
|
103
|
+
*
|
|
104
|
+
* 截断后的对象保留原 `id`、`courtId` 等字段,让 lane 抢占在窗口内独立判断重叠。
|
|
105
|
+
*/
|
|
106
|
+
export declare function clipBookingDaySpanToWindow(item: CalendarBookingSegmentInput, windowFirstKey: string, windowLastKey: string): CalendarBookingSegmentInput | null;
|
|
107
|
+
/**
|
|
108
|
+
* 月 / 资源视图按日 lane:跨日 booking 在命中各日占**同一** lane;单日 booking 再逐日找空位。
|
|
109
|
+
*
|
|
110
|
+
* 1. 跨日优先(跨度长的先占),在 span 覆盖的每个自然日上取同一最小可用 lane;
|
|
111
|
+
* 2. 单日 booking 仅在各自命中日抢剩余 lane,不影响跨日条的纵向对齐。
|
|
112
|
+
*/
|
|
113
|
+
export declare function assignPerDateLanesCrossDayUnified(items: CalendarBookingSegmentInput[], dateKeysInOrder: string[]): {
|
|
114
|
+
perDateLanes: Map<string, Map<string, number>>;
|
|
115
|
+
laneCount: number;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* 通用 lane 分配:返回 `Map<itemId, laneIndex>` 与 `laneCount`。
|
|
119
|
+
*
|
|
120
|
+
* @param granularity
|
|
121
|
+
* - `'hour'`(默认,周 / 日视图):用 `getBookingFullSpanMs`,同小时内不重叠的两条
|
|
122
|
+
* booking 可以共享同一 lane(`bookingTime` 紧排)。
|
|
123
|
+
* - `'day'`(资源 / 月视图):用 `getBookingDaySpanMs`,同一天的两条 booking 一定占两 lane,
|
|
124
|
+
* 即使小时不重叠也要垂直 stack(一格只有一天宽,无法在水平方向区分)。
|
|
125
|
+
*
|
|
126
|
+
* 排序优先级(与设计约定一致):
|
|
127
|
+
* 1. 跨日 booking 优先(先排,整段占顶 lane);
|
|
128
|
+
* 2. 同类内按「跨度(endMs - startMs)降序」:跨度更长的先占 lane 0/1,
|
|
129
|
+
* 保证视觉上"长 pill 顶贴",避免短 pill 把长 pill 推到下方造成"上方一周空白";
|
|
130
|
+
* 3. 同跨度按 `startMs` 升序(更早开始的先占);
|
|
131
|
+
* 4. 仍相同则按 `id` 字典序,保证渲染稳定。
|
|
132
|
+
*
|
|
133
|
+
* 然后逐条分配到第一个 `lastEndMs <= 当前 startMs` 的 lane(贪心区间着色)。
|
|
134
|
+
*/
|
|
135
|
+
export declare function assignLanesByInterval(items: CalendarBookingSegmentInput[], granularity?: 'hour' | 'day'): {
|
|
136
|
+
lanes: Map<string, number>;
|
|
137
|
+
laneCount: number;
|
|
138
|
+
};
|
|
139
|
+
export declare function dayOccupancy(courtId: string, dateKey: string, bookings: CalendarBookingSegmentInput[], hourSlots: number[] | undefined, slotStepHours: number): Record<number, CalendarBookingSegmentInput | null>;
|
|
140
|
+
export interface SelectedSlotLike {
|
|
141
|
+
courtId: string;
|
|
142
|
+
date: string;
|
|
143
|
+
hour: number;
|
|
144
|
+
}
|
|
145
|
+
export declare function groupSelectedSlots(slots: SelectedSlotLike[], slotStepHours?: number): Array<{
|
|
146
|
+
courtId: string;
|
|
147
|
+
date: string;
|
|
148
|
+
startHour: number;
|
|
149
|
+
endHour: number;
|
|
150
|
+
}>;
|
|
151
|
+
/**
|
|
152
|
+
* 日视图空闲格:仅当全部为同一 court、同一日,且时间上首尾相接成一段时返回 true(与 {@link groupSelectedSlots} 合并规则一致)。
|
|
153
|
+
*/
|
|
154
|
+
export declare function isFreeSelectionContiguousSameResource(slots: SelectedSlotLike[], slotStepHours?: number): boolean;
|
|
155
|
+
export declare function hasConflict(bookings: CalendarBookingSegmentInput[], courtId: string, date: string, startHour: number, endHour: number, ignoreId?: string | null): boolean;
|
|
156
|
+
export declare function overlappingBookings(bookings: CalendarBookingSegmentInput[], courtId: string, date: string, startHour: number, endHour: number): CalendarBookingSegmentInput[];
|
|
157
|
+
export declare function courtDaySummary(courtId: string, dateKey: string, bookings: CalendarBookingSegmentInput[], hourSlots: number[] | undefined, slotStepHours: number): {
|
|
158
|
+
occupiedHours: number[];
|
|
159
|
+
hasBlock: boolean;
|
|
160
|
+
fullyBooked: boolean;
|
|
161
|
+
items: CalendarBookingSegmentInput[];
|
|
162
|
+
};
|
|
163
|
+
export declare function sameSlot(a: SelectedSlotLike, b: SelectedSlotLike): boolean;
|
|
164
|
+
/** 营业日 `dateStr` + 浮点小时(含半格)→ dayjs */
|
|
165
|
+
export declare function dayAndHourToDayjs(dateStr: string, hourFloat: number): Dayjs;
|
|
166
|
+
export declare function getDisplayStatusTag(item: CalendarBookingSegmentInput, dateKey: string): string | null;
|
|
167
|
+
export declare function getLateMinutes(item: CalendarBookingSegmentInput, dateKey: string): number | null;
|
|
168
|
+
export declare function currentTimeLabel(): string;
|
|
169
|
+
export declare function formatDateLoose(str: string | undefined): string;
|
|
170
|
+
export declare function formatTimelineStamp(value: string | undefined | null): {
|
|
171
|
+
date: string;
|
|
172
|
+
time: string;
|
|
173
|
+
};
|
|
174
|
+
/** 日视图 overlay 条(可原地写入 lane) */
|
|
175
|
+
export declare type DayOverlayLaneMutable = {
|
|
176
|
+
courtId: string;
|
|
177
|
+
start: number;
|
|
178
|
+
span: number;
|
|
179
|
+
lane?: number;
|
|
180
|
+
laneCount?: number;
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* 同一 court 上时间重叠的 overlay 分配纵向 lane,避免多张卡片完全叠在同一矩形里。
|
|
184
|
+
* 使用按开始时间排序 + 贪心:每条预约放入「上一条已结束时间不晚于本段开始」的最小编号线。
|
|
185
|
+
*/
|
|
186
|
+
export declare function assignDayOverlapLanesInPlace(overlays: DayOverlayLaneMutable[]): void;
|
|
187
|
+
/** 扫描时间轴:同一 court 在任一时刻的最大并行条数(用于行高,与分 lane 一致) */
|
|
188
|
+
export declare function maxConcurrentBookingsOnCourt(overlays: Array<{
|
|
189
|
+
courtId: string;
|
|
190
|
+
start: number;
|
|
191
|
+
span: number;
|
|
192
|
+
}>, courtId: string): number;
|
|
193
|
+
/** 并行超过 cap 时:cap 条内容 + 1 行「+N」占位 */
|
|
194
|
+
export declare function effectiveDayOverlayDisplayLaneCount(rawConcurrent: number): number;
|
|
195
|
+
/** 同一 court 下时间轴区间相交的 overlay 归为一簇(用于 3+N 合并展示) */
|
|
196
|
+
export declare function clusterDayCourtOverlaysByOverlap<T extends {
|
|
197
|
+
courtId: string;
|
|
198
|
+
start: number;
|
|
199
|
+
span: number;
|
|
200
|
+
}>(overlays: T[], courtId: string): T[][];
|
|
201
|
+
export declare function dayOverlayHiddenKey(item: {
|
|
202
|
+
id?: string | number;
|
|
203
|
+
} | null | undefined, dayKey: string, courtId: string): string;
|
|
204
|
+
/**
|
|
205
|
+
* 将 totalInner 像素整数分给 n 条竖向 lane(含缝),保证 Σheight + Σgap === totalInner,消除底部留白缝。
|
|
206
|
+
*/
|
|
207
|
+
export declare function dayOverlayLaneMetrics(totalInner: number, laneCount: number, gap: number): {
|
|
208
|
+
topFor: (lane: number) => number;
|
|
209
|
+
heightFor: (lane: number) => number;
|
|
210
|
+
};
|
|
211
|
+
export interface BuildOverlayBookingRow {
|
|
212
|
+
kind: string;
|
|
213
|
+
id: string;
|
|
214
|
+
}
|
|
215
|
+
export interface BuiltDayOverlay {
|
|
216
|
+
item: CalendarBookingSegmentInput;
|
|
217
|
+
rowIndex: number;
|
|
218
|
+
rowTop: number;
|
|
219
|
+
rowHeight: number;
|
|
220
|
+
courtId: string;
|
|
221
|
+
start: number;
|
|
222
|
+
end: number;
|
|
223
|
+
span: number;
|
|
224
|
+
continuesNext?: boolean;
|
|
225
|
+
continuesPrev?: boolean;
|
|
226
|
+
lane?: number;
|
|
227
|
+
laneCount?: number;
|
|
228
|
+
}
|
|
229
|
+
export declare function buildOverlayBookings(visibleCourtRows: BuildOverlayBookingRow[], dayKey: string, bookings: CalendarBookingSegmentInput[], rowTopMap: Record<string, number> | undefined, hourSlots: number[] | undefined, dayRowHeights: number[], slotStepHours?: number): BuiltDayOverlay[];
|
|
230
|
+
/** 日视图:按行高累加每行 rowTop(court / group) */
|
|
231
|
+
export declare function buildDayRowTopMap(visibleCourtRows: Array<{
|
|
232
|
+
id: string;
|
|
233
|
+
}>, heights: number[]): Record<string, number>;
|
|
234
|
+
/** 日历状态徽标:返回 i18n key + className;文案在 UI 层通过 tCal 解析,便于 utils 单测 */
|
|
235
|
+
export declare function statusTagMetaParts(tag: string | null | undefined): {
|
|
236
|
+
labelI18nKey: string;
|
|
237
|
+
className: string;
|
|
238
|
+
} | null;
|
|
239
|
+
export declare type CalendarCourtNameRow = {
|
|
240
|
+
id: string;
|
|
241
|
+
name?: string | null;
|
|
242
|
+
};
|
|
243
|
+
export declare function getBookingDetailData(item: CalendarBookingSegmentInput, courtsList?: CalendarCourtNameRow[]): {
|
|
244
|
+
rawSales: null;
|
|
245
|
+
bookingId: string;
|
|
246
|
+
orderNumber: string;
|
|
247
|
+
shopOrderNumber: string;
|
|
248
|
+
orderStatus: string;
|
|
249
|
+
appointmentStatus: string;
|
|
250
|
+
paymentStatus: string;
|
|
251
|
+
customer: {
|
|
252
|
+
id: null;
|
|
253
|
+
name: string;
|
|
254
|
+
email: string;
|
|
255
|
+
phone: string;
|
|
256
|
+
};
|
|
257
|
+
guestCount: number;
|
|
258
|
+
checkedInCount: number;
|
|
259
|
+
guests: never[];
|
|
260
|
+
schedule: {
|
|
261
|
+
startDate: string;
|
|
262
|
+
startTime: string;
|
|
263
|
+
endDate: string;
|
|
264
|
+
endTime: string;
|
|
265
|
+
duration: number;
|
|
266
|
+
arrivedAt: null;
|
|
267
|
+
completedAt: null;
|
|
268
|
+
};
|
|
269
|
+
resources: never[];
|
|
270
|
+
summaryItems: never[];
|
|
271
|
+
items: never[];
|
|
272
|
+
note: string;
|
|
273
|
+
files: {
|
|
274
|
+
form: never[];
|
|
275
|
+
uploaded: never[];
|
|
276
|
+
invoice: never[];
|
|
277
|
+
};
|
|
278
|
+
payments: never[];
|
|
279
|
+
history: never[];
|
|
280
|
+
summary: {};
|
|
281
|
+
paymentSummary: {
|
|
282
|
+
totalAmount: number;
|
|
283
|
+
paidAmount: number;
|
|
284
|
+
balanceAmount: number;
|
|
285
|
+
currencySymbol: string;
|
|
286
|
+
isFullyPaid: boolean;
|
|
287
|
+
};
|
|
288
|
+
itemSummary: {
|
|
289
|
+
itemCount: number;
|
|
290
|
+
itemQtyTotal: number;
|
|
291
|
+
};
|
|
292
|
+
headerSummary: {
|
|
293
|
+
customerName: string;
|
|
294
|
+
guestCount: number;
|
|
295
|
+
checkedInCount: number;
|
|
296
|
+
timeLabel: string;
|
|
297
|
+
resourceLabel: string;
|
|
298
|
+
};
|
|
299
|
+
headerTags: {
|
|
300
|
+
paymentTag: string;
|
|
301
|
+
fulfillmentTag: string;
|
|
302
|
+
hasNote: boolean;
|
|
303
|
+
paymentStatus: string;
|
|
304
|
+
orderStatus: string;
|
|
305
|
+
};
|
|
306
|
+
fileCount: number;
|
|
307
|
+
canChangeCustomer: boolean;
|
|
308
|
+
noteCount: number;
|
|
309
|
+
noteGroups: {
|
|
310
|
+
internal: never[];
|
|
311
|
+
order: {
|
|
312
|
+
id: string;
|
|
313
|
+
label: string;
|
|
314
|
+
text: string;
|
|
315
|
+
}[];
|
|
316
|
+
item: never[];
|
|
317
|
+
};
|
|
318
|
+
metaFlags: {
|
|
319
|
+
itemsChanged: boolean;
|
|
320
|
+
paymentsChanged: boolean;
|
|
321
|
+
guestChanged: boolean;
|
|
322
|
+
filesChanged: boolean;
|
|
323
|
+
notesChanged: boolean;
|
|
324
|
+
formChanged: boolean;
|
|
325
|
+
uploadedChanged: boolean;
|
|
326
|
+
invoiceChanged: boolean;
|
|
327
|
+
historyChanged: boolean;
|
|
328
|
+
};
|
|
329
|
+
actions: never[];
|
|
330
|
+
};
|
package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarSelectionUtils.d.ts
ADDED
|
@@ -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;
|
package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.d.ts
ADDED
|
@@ -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,52 @@
|
|
|
1
|
+
/** 日视图:横向虚拟滚动时间轴 + 资源行,预约条按 lane 叠放与 +N 溢出 */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { type TickFillMode } from '../utils/bookingCalendarAxis';
|
|
4
|
+
import type { RecordBoardCalendarProps } from '../../../types';
|
|
5
|
+
/** 日视图(含底部多选操作条) */
|
|
6
|
+
export declare function BookingCalendarDayView(dayProps: {
|
|
7
|
+
calendarProps: RecordBoardCalendarProps;
|
|
8
|
+
isLight: boolean;
|
|
9
|
+
view: string;
|
|
10
|
+
anchorDate: Date;
|
|
11
|
+
dayKey: string;
|
|
12
|
+
hourSlots: number[];
|
|
13
|
+
resolvedSlotMinutes: number;
|
|
14
|
+
slotColWidth: number;
|
|
15
|
+
firstTimelineHour: number;
|
|
16
|
+
endTimelineExclusive: number;
|
|
17
|
+
isBusinessHour: (h: number) => boolean;
|
|
18
|
+
dayHourRemaining: Record<number, {
|
|
19
|
+
remaining: number;
|
|
20
|
+
total: number;
|
|
21
|
+
ratio: number;
|
|
22
|
+
}>;
|
|
23
|
+
timelinePxPerHour: number;
|
|
24
|
+
dayContentHeight: number;
|
|
25
|
+
dayRowHeights: number[];
|
|
26
|
+
visibleCourtRows: any[];
|
|
27
|
+
overlayBookings: any[];
|
|
28
|
+
dayOverlayOverflowPluses: any[];
|
|
29
|
+
setCollapsedGroups: React.Dispatch<React.SetStateAction<any>>;
|
|
30
|
+
visibleCourts: any[];
|
|
31
|
+
bookings: any[];
|
|
32
|
+
slotStepHours: number;
|
|
33
|
+
isFreeSelected: (courtId: string, hour: number) => boolean;
|
|
34
|
+
isBlockSelected: (courtId: string, hour: number) => boolean;
|
|
35
|
+
toggleSlot: (courtId: string, hour: number) => void;
|
|
36
|
+
handleDropMove: (courtId: string, date: string, hour: number) => void;
|
|
37
|
+
hiddenDayOverlayIdSet: Set<string>;
|
|
38
|
+
courtDayDisplayLaneCount: Record<string, number>;
|
|
39
|
+
openBookingDetail: (item: any) => void;
|
|
40
|
+
setDraggingItem: (item: any) => void;
|
|
41
|
+
setNavDirection: (n: number) => void;
|
|
42
|
+
commitAnchor: (d: Date) => void;
|
|
43
|
+
setFocusedCourtId: (id: string | null) => void;
|
|
44
|
+
setOverflowListModal: React.Dispatch<React.SetStateAction<any>>;
|
|
45
|
+
selectedFreeSlots: any[];
|
|
46
|
+
selectedBlockSlots: any[];
|
|
47
|
+
focusedCourtId: string | null;
|
|
48
|
+
/** >0 表示刚从周/月切入日视图,需将横向滚动对准「当前时间」(仅当 dayKey 为今天时生效) */
|
|
49
|
+
dayTimelineScrollToNowToken: number;
|
|
50
|
+
/** 预约条在主轴刻度上的填充方式(由 BookingCalendar 按视图默认解析后传入) */
|
|
51
|
+
tickFillMode: TickFillMode;
|
|
52
|
+
}): JSX.Element;
|
package/es/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/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* 月视图:5 行 × 7 列。
|
|
4
|
+
*
|
|
5
|
+
* 跨日 booking 用 absolute overlay 跨日列 banner 渲染(M1:跨自然周边界续画 + 端部 ◀/▶):
|
|
6
|
+
* - 每周内跨日 booking 占统一 lane,单日 booking 逐日填剩余空位;
|
|
7
|
+
* - 行高内自适应 effectiveMaxLane,超出 → cell 级 `+N` tile;
|
|
8
|
+
* - cell 层只负责日期 header / 点击跳日 / drop 改期,不再渲染 booking 列表(被 overlay 替代)。
|
|
9
|
+
*/
|
|
10
|
+
export declare function BookingCalendarMonthView({ isLight, anchorDate, monthDays, bookings, goToDayFromCell, handleGridDropMove, setDraggingItem, openBookingDetail, setOverflowListModal, renderMonthWeekBooking, tickFillMode, }: {
|
|
11
|
+
isLight: any;
|
|
12
|
+
anchorDate: any;
|
|
13
|
+
monthDays: any;
|
|
14
|
+
bookings: any;
|
|
15
|
+
goToDayFromCell: any;
|
|
16
|
+
handleGridDropMove: any;
|
|
17
|
+
setDraggingItem: any;
|
|
18
|
+
openBookingDetail: any;
|
|
19
|
+
setOverflowListModal: any;
|
|
20
|
+
renderMonthWeekBooking: any;
|
|
21
|
+
tickFillMode: any;
|
|
22
|
+
}): JSX.Element;
|
package/es/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 TickFillMode } from '../utils/bookingCalendarAxis';
|
|
20
|
+
import type { RecordBoardCalendarProps } from '../../../types';
|
|
21
|
+
declare type ResourceCellPick = {
|
|
22
|
+
courtId: string;
|
|
23
|
+
dateKey: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const BookingCalendarResourceView: React.MemoExoticComponent<typeof BookingCalendarResourceViewInner>;
|
|
26
|
+
declare function BookingCalendarResourceViewInner({ calendarProps, isLight, anchorDate, monthDays, slotColWidth, bookings, visibleCourts, visibleCourtRows, hourSlots, slotStepHours, handleGridDropMove, openBookingDetail, setDraggingItem, setCollapsedGroups, setOverflowListModal, resourceMonthScrollToTodayToken, resourceDayHeaderRemaining, toggleResourceCell, selectedResourceCells, tickFillMode, }: {
|
|
27
|
+
calendarProps: RecordBoardCalendarProps;
|
|
28
|
+
isLight: boolean;
|
|
29
|
+
anchorDate: Date;
|
|
30
|
+
monthDays: Date[];
|
|
31
|
+
slotColWidth: number;
|
|
32
|
+
bookings: any[];
|
|
33
|
+
visibleCourts: any[];
|
|
34
|
+
visibleCourtRows: any[];
|
|
35
|
+
hourSlots: number[];
|
|
36
|
+
slotStepHours: number;
|
|
37
|
+
handleGridDropMove: (dateKey: string, courtId?: string | null) => void;
|
|
38
|
+
openBookingDetail: (item: any) => void;
|
|
39
|
+
setDraggingItem: (item: any) => void;
|
|
40
|
+
setCollapsedGroups: React.Dispatch<React.SetStateAction<any>>;
|
|
41
|
+
setOverflowListModal: React.Dispatch<React.SetStateAction<any>>;
|
|
42
|
+
/** 切入资源视图时递增,用于将横向滚动对准「今天」列 */
|
|
43
|
+
resourceMonthScrollToTodayToken: number;
|
|
44
|
+
/** 顶部表头当日空闲率(与日视图 freeRatio 同口径) */
|
|
45
|
+
resourceDayHeaderRemaining: Record<string, {
|
|
46
|
+
remaining: number;
|
|
47
|
+
total: number;
|
|
48
|
+
ratio: number;
|
|
49
|
+
}>;
|
|
50
|
+
/** 与日视图 `toggleSlot` 同义:点击 cell 切换 (court, date) 的整天选中态 */
|
|
51
|
+
toggleResourceCell: (courtId: string, dateKey: string) => void;
|
|
52
|
+
/** 当前所有「资源月视图」选中的 cell(同 court 连续多天 → SelectionBar 显示 Block/Create) */
|
|
53
|
+
selectedResourceCells: ResourceCellPick[];
|
|
54
|
+
/** 预约条在主轴刻度上的填充方式(由 BookingCalendar 按视图默认解析后传入) */
|
|
55
|
+
tickFillMode: TickFillMode;
|
|
56
|
+
}): JSX.Element;
|
|
57
|
+
export {};
|