@pisell/materials 1.8.38 → 1.8.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +3 -3
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +216 -51
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +216 -51
- package/es/components/Pagination/index.js +9 -43
- package/es/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-dev.md +5 -2
- package/es/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-test.md +169 -171
- package/es/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.md +87 -27
- package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +18 -7
- package/es/components/PisellCards/components/TextCard/TextCard.js +2 -3
- package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.js +20 -6
- package/es/components/PisellCards/components/TextCard/components/TextContent.js +3 -1
- package/es/components/PisellCards/components/TextCard/docs/TextCard.$tab-dev.md +36 -5
- package/es/components/PisellCards/components/TextCard/docs/TextCard.$tab-test.md +2434 -258
- package/es/components/PisellCards/components/TextCard/docs/TextCard.md +78 -13
- package/es/components/PisellCards/index.d.ts +3 -0
- package/es/components/PisellCards/index.js +3 -1
- package/es/components/PisellContactBrief/PisellContactBrief.d.ts +34 -0
- package/es/components/PisellContactBrief/PisellContactBrief.js +156 -0
- package/es/components/PisellContactBrief/PisellContactBrief.less +192 -0
- package/es/components/PisellContactBrief/components/ContactFormModal.js +140 -0
- package/es/components/PisellContactBrief/docs/PisellContactBrief.$tab-design.md +109 -0
- package/es/components/PisellContactBrief/docs/PisellContactBrief.$tab-dev.md +106 -0
- package/es/components/PisellContactBrief/docs/PisellContactBrief.$tab-test.md +125 -0
- package/es/components/PisellContactBrief/docs/PisellContactBrief.md +129 -0
- package/es/components/PisellContactBrief/index.d.ts +2 -0
- package/es/components/PisellContactBrief/locales.js +57 -0
- package/es/components/PisellContactBrief/types.d.ts +86 -0
- package/es/components/PisellLayouts/index.d.ts +1 -1
- package/es/components/PisellProcedure/components/ProcedureHeader.js +1 -1
- package/es/components/PisellTabbar/PisellTabbar.js +1 -1
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.js +1 -1
- package/es/components/Template/[ComponentName].less +1 -0
- package/es/components/Template/docs/[ComponentName].$tab-design.md +7 -0
- package/es/components/Template/docs/[ComponentName].$tab-dev.md +1137 -0
- package/es/components/Template/docs/[ComponentName].$tab-test.md +7 -0
- package/es/components/Template/docs/[ComponentName].md +510 -0
- package/es/components/appVersionControl/index.js +3 -2
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +4 -4
- package/es/components/dataSourceComponents/dataSourceForm/formItem.js +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/index.js +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +3 -3
- package/es/components/dataSourceComponents/dataSourceForm/utils.js +3 -3
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.js +1 -1
- package/es/components/dataSourceComponents/dataSourceSubForm/index.js +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.js +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +3 -2
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.js +1 -1
- package/es/components/dataSourceComponents/fields/DatePicker/WithMode.js +4 -0
- package/es/components/dataSourceComponents/fields/IconSelect/WithMode.js +1 -1
- package/es/components/dataSourceComponents/fields/Input/WithMode.js +1 -1
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.js +4 -1
- package/es/components/dataSourceComponents/fields/Radio/WithMode.js +1 -1
- package/es/components/dataSourceComponents/fields/TimePicker/WithMode.js +1 -1
- package/es/components/dataSourceComponents/hooks/useActions.js +1 -1
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceProvider.js +1 -1
- package/es/components/drag-sort-tree/index.d.ts +1 -0
- package/es/components/drag-sort-tree/index.js +0 -1
- package/es/components/drawer/index.js +7 -6
- package/es/components/filter/components/FilterItem/index.js +1 -3
- package/es/components/filter/components/QuickFilter/index.js +2 -3
- package/es/components/hardwareErrorTip/errorCard/index.d.ts +25 -0
- package/es/components/hardwareErrorTip/errorCard/index.js +68 -0
- package/es/components/hardwareErrorTip/errorCard/index.less +137 -0
- package/es/components/hardwareErrorTip/errorTipStatistics/index.d.ts +10 -0
- package/es/components/hardwareErrorTip/errorTipStatistics/index.js +31 -0
- package/es/components/hardwareErrorTip/errorTipStatistics/index.less +34 -0
- package/es/components/hardwareErrorTip/index.d.ts +20 -0
- package/es/components/hardwareErrorTip/index.js +151 -0
- package/es/components/hardwareErrorTip/index.less +95 -0
- package/es/components/hardwareErrorTip/logCard/index.d.ts +25 -0
- package/es/components/hardwareErrorTip/logCard/index.js +72 -0
- package/es/components/hardwareErrorTip/logCard/index.less +121 -0
- package/es/components/hardwareErrorTip/readme.md +309 -0
- package/es/components/hardwareErrorTip/types.js +54 -0
- package/es/components/iconfont/index.js +1 -1
- package/es/components/login-and-register/index.js +4 -5
- package/es/components/page/index.js +1 -1
- package/es/components/pisellActionPanel/PisellActionPanel.d.ts +24 -0
- package/es/components/pisellActionPanel/PisellActionPanel.js +68 -0
- package/es/components/pisellActionPanel/PisellActionPanel.less +69 -0
- package/es/components/pisellActionPanel/docs/pisellActionPanel.$tab-design.md +148 -0
- package/es/components/pisellActionPanel/docs/pisellActionPanel.$tab-dev.md +53 -0
- package/es/components/pisellActionPanel/docs/pisellActionPanel.$tab-test.md +64 -0
- package/es/components/pisellActionPanel/docs/pisellActionPanel.md +160 -0
- package/es/components/pisellActionPanel/index.d.ts +2 -0
- package/es/components/pisellActionPanel/types.d.ts +87 -0
- package/es/components/pisellAppCard/PisellAppCard.js +1 -1
- package/es/components/pisellBaseCard/PisellBaseCard.d.ts +20 -0
- package/es/components/pisellBaseCard/PisellBaseCard.js +73 -0
- package/es/components/pisellBaseCard/PisellBaseCard.less +25 -0
- package/es/components/pisellBaseCard/docs/pisellBaseCard.$tab-design.md +144 -0
- package/es/components/pisellBaseCard/docs/pisellBaseCard.$tab-dev.md +92 -0
- package/es/components/pisellBaseCard/docs/pisellBaseCard.$tab-test.md +86 -0
- package/es/components/pisellBaseCard/docs/pisellBaseCard.md +165 -0
- package/es/components/pisellBaseCard/index.d.ts +2 -0
- package/es/components/pisellBaseCard/types.d.ts +49 -0
- package/es/components/pisellCardList/index.js +1 -1
- package/es/components/pisellCurrency/PisellCurrency.js +13 -6
- package/es/components/pisellCurrency/PisellCurrency.less +0 -123
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +57 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.js +92 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.less +8 -0
- package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-design.md +115 -0
- package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-dev.md +73 -0
- package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-test.md +66 -0
- package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.md +132 -0
- package/es/components/pisellCustomerBrief/index.d.ts +2 -0
- package/es/components/pisellCustomerBrief/types.d.ts +86 -0
- package/es/components/pisellDataSourceContainer/components/Pagination/index.js +3 -9
- package/es/components/pisellDataSourceContainer/docs/PisellDataSourceContainer.md +189 -240
- package/es/components/pisellDataSourceContainer/type.d.ts +1 -1
- package/es/components/pisellDateTimeDisplay/docs/pisellDateTimeDisplay.md +556 -556
- package/es/components/pisellEmail/PisellEmail.js +13 -6
- package/es/components/pisellEmail/PisellEmail.less +0 -92
- package/es/components/pisellEmpty/index.d.ts +1 -1
- package/es/components/pisellEntityCard/PisellEntityCard.d.ts +47 -0
- package/es/components/pisellEntityCard/PisellEntityCard.js +315 -0
- package/es/components/pisellEntityCard/PisellEntityCard.less +362 -0
- package/es/components/pisellEntityCard/docs/pisellEntityCard.$tab-design.md +209 -0
- package/es/components/pisellEntityCard/docs/pisellEntityCard.$tab-dev.md +82 -0
- package/es/components/pisellEntityCard/docs/pisellEntityCard.$tab-test.md +122 -0
- package/es/components/pisellEntityCard/docs/pisellEntityCard.md +176 -0
- package/es/components/pisellEntityCard/index.d.ts +2 -0
- package/es/components/pisellEntityCard/types.d.ts +148 -0
- package/es/components/pisellExport/PisellExport.d.ts +11 -0
- package/es/components/pisellExport/PisellExport.js +44 -0
- package/es/components/pisellExport/PisellExport.less +141 -0
- package/es/components/pisellExport/docs/pisellExport.$tab-design.md +116 -0
- package/es/components/pisellExport/docs/pisellExport.$tab-dev.md +132 -0
- package/es/components/pisellExport/docs/pisellExport.$tab-test.md +61 -0
- package/es/components/pisellExport/docs/pisellExport.md +162 -0
- package/es/components/pisellExport/index.d.ts +2 -0
- package/es/components/pisellExport/types.d.ts +67 -0
- package/es/components/pisellFilter/docs/PisellFilter.md +2 -2
- package/es/components/pisellFind/docs/pisellFind.md +2 -2
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +1 -2
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +51 -230
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.less +0 -22
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.js +2 -3
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +2 -2
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.js +74 -209
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +5 -40
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.js +12 -131
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.less +1 -9
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.js +3 -24
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.less +4 -97
- package/es/components/pisellFloorMapLayout/components/ItemLayer.js +9 -29
- package/es/components/pisellFloorMapLayout/components/ItemLayer.less +2 -19
- package/es/components/pisellFloorMapLayout/components/ViewControls.js +65 -119
- package/es/components/pisellFloorMapLayout/components/ViewControls.less +44 -208
- package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +0 -4
- package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +1 -3
- package/es/components/pisellFloorMapLayout/docs/pisellFloorMapLayout.md +194 -559
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +16 -82
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +36 -369
- package/es/components/pisellFloorMapLayout/index.d.ts +0 -1
- package/es/components/pisellFloorMapLayout/locales-ja.js +1 -21
- package/es/components/pisellFloorMapLayout/locales-pt.js +1 -21
- package/es/components/pisellFloorMapLayout/locales.js +3 -63
- package/es/components/pisellFloorMapLayout/types.d.ts +9 -70
- package/es/components/pisellGoodPassCard/index.less +0 -1
- package/es/components/pisellGridPro/GridView/docs/GridView.md +48 -47
- package/es/components/pisellGridPro/ToolBar/docs/ToolBar.$tab-dev.md +2 -4
- package/es/components/pisellGridPro/ToolBar/docs/ToolBar.md +81 -95
- package/es/components/pisellGridPro/ToolBar/index.less +4 -5
- package/es/components/pisellGridPro/docs/PisellGridPro.md +262 -173
- package/es/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-dev.md +6 -3
- package/es/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-test.md +4 -3
- package/es/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.md +2 -1
- package/es/components/pisellImport/PisellImport.d.ts +11 -0
- package/es/components/pisellImport/PisellImport.js +81 -0
- package/es/components/pisellImport/PisellImport.less +141 -0
- package/es/components/pisellImport/docs/pisellImport.$tab-design.md +121 -0
- package/es/components/pisellImport/docs/pisellImport.$tab-dev.md +137 -0
- package/es/components/pisellImport/docs/pisellImport.$tab-test.md +69 -0
- package/es/components/pisellImport/docs/pisellImport.md +174 -0
- package/es/components/pisellImport/index.d.ts +2 -0
- package/es/components/pisellImport/types.d.ts +89 -0
- package/es/components/pisellLongText/PisellLongText.js +13 -6
- package/es/components/pisellLongText/PisellLongText.less +0 -67
- package/es/components/pisellLookup/PisellLookup.less +1 -1
- package/es/components/pisellLookup/components/LookupTrigger.js +8 -6
- package/es/components/pisellLookup/docs/pisellLookup.md +1 -1
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.js +7 -5
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +18 -139
- package/es/components/pisellMultipleSelect/components/EditView.js +1 -0
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.js +4 -0
- package/es/components/pisellNumber/PisellNumber.js +13 -6
- package/es/components/pisellNumber/PisellNumber.less +0 -103
- package/es/components/pisellPhone/PisellPhone.js +13 -6
- package/es/components/pisellPhone/PisellPhone.less +0 -119
- package/es/components/pisellPhone/components/EditView.js +37 -19
- package/es/components/pisellPhone/constants/countryCodes.js +26 -25
- package/es/components/pisellPhone/types.d.ts +2 -2
- package/es/components/pisellPhone/utils/countryCodeHelper.js +2 -2
- package/es/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.md +1 -1
- package/es/components/pisellRating/PisellRating.js +5 -3
- package/es/components/pisellRecordBoard/PisellRecordBoard.js +10 -26
- package/es/components/pisellRecordBoard/README.md +0 -12
- package/es/components/pisellRecordBoard/docs/PisellRecordBoard.md +70 -716
- package/es/components/pisellRecordBoard/docs/ShellFrame.md +44 -62
- package/es/components/pisellRecordBoard/index.d.ts +1 -7
- package/es/components/pisellRecordBoard/index.js +0 -4
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +9 -147
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.less +0 -31
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.js +3811 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +1 -5
- package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.js +8 -10
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +1 -1
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +1 -2
- package/es/components/pisellRecordBoard/shellFrame/Pagination/index.js +1 -7
- package/es/components/pisellRecordBoard/shellFrame/Search/index.js +1 -1
- package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +1 -5
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +65 -143
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +13 -181
- package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +2 -10
- package/es/components/pisellRecordBoard/shellFrame/index.d.ts +2 -9
- package/es/components/pisellRecordBoard/shellFrame/index.js +19 -73
- package/es/components/pisellRecordBoard/types.d.ts +8 -374
- package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +0 -16
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.js +15 -67
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.less +0 -23
- package/es/components/pisellReservationSchedule/locales.js +3 -21
- package/es/components/pisellReservationSchedule/types.d.ts +0 -5
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.js +2 -2
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +4 -37
- package/es/components/pisellReservationScheduleBand/types.d.ts +0 -4
- package/es/components/pisellShellFrame/PisellShellFrame.js +2 -2
- package/es/components/pisellShellFrame/PisellShellFrame.less +2 -18
- package/es/components/pisellShellFrame/types.d.ts +0 -6
- package/es/components/pisellSingleLineText/PisellSingleLineText.js +21 -14
- package/es/components/pisellSingleLineText/PisellSingleLineText.less +0 -143
- package/es/components/pisellSingleLineText/docs/pisellSingleLineText.md +256 -256
- package/es/components/pisellSingleSelect/PisellSingleSelect.js +7 -4
- package/es/components/pisellSingleSelect/PisellSingleSelect.less +5 -106
- package/es/components/pisellSingleSelect/docs/pisellSingleSelect.md +525 -428
- package/es/components/pisellSort/docs/PisellSort.md +67 -131
- package/es/components/pisellStatisticList/index.js +1 -0
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.js +37 -151
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.less +13 -126
- package/es/components/pisellTimeNavigator/components/CursorLayer.js +2 -2
- package/es/components/pisellTimeNavigator/components/GestureLayer.js +3 -12
- package/es/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-dev.md +42 -26
- package/es/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-test.md +5 -5
- package/es/components/pisellTimeNavigator/index.d.ts +1 -1
- package/es/components/pisellTimeNavigator/utils/index.d.ts +3 -9
- package/es/components/pisellTimeNavigator/utils/index.js +6 -15
- package/es/components/pisellTimeRangeDisplay/docs/pisellTimeRangeDisplay.md +227 -226
- package/es/components/pisellUrl/PisellUrl.js +13 -6
- package/es/components/pisellWalletPassCard/index.js +11 -5
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +4 -65
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -80
- package/es/components/productCard/cartSkuCard/components/holders/index.js +1 -1
- package/es/components/productCard/cartSkuCard/components/packages/index.js +9 -24
- package/es/components/productCard/cartSkuCard/components/specs/index.js +7 -22
- package/es/components/productCard/cartSkuCard/components/specs/index.less +0 -11
- package/es/components/productCard/cartSkuCard/components/timeRange/index.js +1 -2
- package/es/components/productCard/cartSkuCard/index.js +8 -68
- package/es/components/productCard/cartSkuCard/locales.js +5 -40
- package/es/components/productCard/components/Header/Actions/index.less +15 -0
- package/es/components/productCard/components/Header/DeleteButton/index.js +2 -2
- package/es/components/productCard/components/Header/DeleteButton/index.less +2 -1
- package/es/components/productCard/components/Header/EditButton/index.js +1 -2
- package/es/components/productCard/components/Header/index.less +1 -1
- package/es/components/productCard/components/Time/components/SelectHolder/index.js +3 -2
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.js +1 -1
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.js +2 -2
- package/es/components/productCard/components/Time/components/SelectResource/index.js +6 -3
- package/es/components/productCard/components/Time/index.js +3 -2
- package/es/components/productCard/status.js +0 -3
- package/es/components/productCard/types.d.ts +0 -10
- package/es/components/productCard/utils.js +1 -1
- package/es/components/select-time/index.js +0 -1
- package/es/components/table/Actions/component/ExportImport/index.js +3 -4
- package/es/components/table/Actions/component/GallerySetting/index.js +10 -9
- package/es/components/table/Actions/component/ViewMode/index.js +4 -3
- package/es/components/table/Actions/index.js +1 -1
- package/es/components/table/BasicTable/index.js +4 -3
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.less +1 -1
- package/es/components/table/Gallery/components/GalleryItem/index.js +12 -4
- package/es/components/table/Gallery/components/GalleryItem/index.less +1 -0
- package/es/components/table/Gallery/index.js +11 -3
- package/es/components/table/Table/fields/text/Show/index.js +1 -1
- package/es/components/table/Table/index.js +2 -1
- package/es/components/table/Table/tableConfig/header/index.js +1 -1
- package/es/components/table/Table/utils.js +5 -1
- package/es/components/table/hooks/useTableSetting.js +3 -0
- package/es/components/table/hooks/useTransDataSource.js +4 -3
- package/es/components/table/index.js +1 -1
- package/es/components/tabs/index.less +1 -1
- package/es/components/translation/index.d.ts +1 -0
- package/es/components/translation/index.js +36 -10
- package/es/components/translation/index.less +12 -0
- package/es/components/versionModal/index.d.ts +1 -0
- package/es/components/versionModal/index.js +2 -2
- package/es/components/versionSelect/index.js +1 -1
- package/es/components/virtual-keyboard/Amount/index.js +2 -1
- package/es/components/virtual-keyboard/Amount/types.d.ts +1 -0
- package/es/index.d.ts +105 -94
- package/es/index.js +92 -90
- package/es/locales/en-US.js +69 -191
- package/es/locales/ja.js +12 -192
- package/es/locales/pt.js +12 -192
- package/es/locales/zh-CN.js +63 -185
- package/es/locales/zh-TW.js +68 -190
- package/es/pisell-materials.tw.css +1 -2414
- package/es/tailwind-input.css +1 -3
- package/es/theme/pisell-components.js +76 -0
- package/lib/components/Pagination/index.js +8 -42
- package/lib/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-dev.md +5 -2
- package/lib/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-test.md +169 -171
- package/lib/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.md +87 -27
- package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +18 -7
- package/lib/components/PisellCards/components/TextCard/TextCard.js +2 -3
- package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.js +20 -6
- package/lib/components/PisellCards/components/TextCard/components/TextContent.js +3 -1
- package/lib/components/PisellCards/components/TextCard/docs/TextCard.$tab-dev.md +36 -5
- package/lib/components/PisellCards/components/TextCard/docs/TextCard.$tab-test.md +2434 -258
- package/lib/components/PisellCards/components/TextCard/docs/TextCard.md +78 -13
- package/lib/components/PisellCards/index.d.ts +3 -0
- package/lib/components/PisellCards/index.js +3 -1
- package/lib/components/PisellContactBrief/PisellContactBrief.d.ts +34 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.js +158 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.less +192 -0
- package/lib/components/PisellContactBrief/components/ContactFormModal.js +139 -0
- package/lib/components/PisellContactBrief/docs/PisellContactBrief.$tab-design.md +109 -0
- package/lib/components/PisellContactBrief/docs/PisellContactBrief.$tab-dev.md +106 -0
- package/lib/components/PisellContactBrief/docs/PisellContactBrief.$tab-test.md +125 -0
- package/lib/components/PisellContactBrief/docs/PisellContactBrief.md +129 -0
- package/lib/components/PisellContactBrief/index.d.ts +2 -0
- package/lib/components/PisellContactBrief/locales.js +57 -0
- package/lib/components/PisellContactBrief/types.d.ts +86 -0
- package/lib/components/PisellLayouts/index.d.ts +1 -1
- package/lib/components/PisellProcedure/components/ProcedureHeader.js +1 -1
- package/lib/components/PisellTabbar/PisellTabbar.js +6 -6
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.js +6 -6
- package/lib/components/Template/[ComponentName].less +1 -0
- package/lib/components/Template/docs/[ComponentName].$tab-design.md +7 -0
- package/lib/components/Template/docs/[ComponentName].$tab-dev.md +1137 -0
- package/lib/components/Template/docs/[ComponentName].$tab-test.md +7 -0
- package/lib/components/Template/docs/[ComponentName].md +510 -0
- package/lib/components/appVersionControl/index.js +12 -11
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +6 -6
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/index.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +3 -3
- package/lib/components/dataSourceComponents/dataSourceForm/utils.js +3 -3
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceSubForm/index.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +3 -2
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.js +1 -1
- package/lib/components/dataSourceComponents/fields/DatePicker/WithMode.js +4 -0
- package/lib/components/dataSourceComponents/fields/IconSelect/WithMode.js +1 -1
- package/lib/components/dataSourceComponents/fields/Input/WithMode.js +1 -1
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.js +4 -1
- package/lib/components/dataSourceComponents/fields/Radio/WithMode.js +1 -1
- package/lib/components/dataSourceComponents/fields/TimePicker/WithMode.js +4 -4
- package/lib/components/dataSourceComponents/hooks/useActions.js +1 -1
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceProvider.js +1 -1
- package/lib/components/drag-sort-tree/index.d.ts +1 -0
- package/lib/components/drag-sort-tree/index.js +0 -1
- package/lib/components/drawer/index.js +7 -6
- package/lib/components/filter/components/FilterItem/index.js +1 -3
- package/lib/components/filter/components/QuickFilter/index.js +2 -3
- package/lib/components/hardwareErrorTip/errorCard/index.d.ts +25 -0
- package/lib/components/hardwareErrorTip/errorCard/index.js +71 -0
- package/lib/components/hardwareErrorTip/errorCard/index.less +137 -0
- package/lib/components/hardwareErrorTip/errorTipStatistics/index.d.ts +10 -0
- package/lib/components/hardwareErrorTip/errorTipStatistics/index.js +34 -0
- package/lib/components/hardwareErrorTip/errorTipStatistics/index.less +34 -0
- package/lib/components/hardwareErrorTip/index.d.ts +20 -0
- package/lib/components/hardwareErrorTip/index.js +153 -0
- package/lib/components/hardwareErrorTip/index.less +95 -0
- package/lib/components/hardwareErrorTip/logCard/index.d.ts +25 -0
- package/lib/components/hardwareErrorTip/logCard/index.js +75 -0
- package/lib/components/hardwareErrorTip/logCard/index.less +121 -0
- package/lib/components/hardwareErrorTip/readme.md +309 -0
- package/lib/components/hardwareErrorTip/types.js +57 -0
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/login-and-register/index.js +4 -5
- package/lib/components/page/index.js +1 -1
- package/lib/components/pisellActionPanel/PisellActionPanel.d.ts +24 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.js +71 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.less +69 -0
- package/lib/components/pisellActionPanel/docs/pisellActionPanel.$tab-design.md +148 -0
- package/lib/components/pisellActionPanel/docs/pisellActionPanel.$tab-dev.md +53 -0
- package/lib/components/pisellActionPanel/docs/pisellActionPanel.$tab-test.md +64 -0
- package/lib/components/pisellActionPanel/docs/pisellActionPanel.md +160 -0
- package/lib/components/pisellActionPanel/index.d.ts +2 -0
- package/lib/components/pisellActionPanel/types.d.ts +87 -0
- package/lib/components/pisellAppCard/PisellAppCard.js +7 -7
- package/lib/components/pisellBaseCard/PisellBaseCard.d.ts +20 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.js +76 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.less +25 -0
- package/lib/components/pisellBaseCard/docs/pisellBaseCard.$tab-design.md +144 -0
- package/lib/components/pisellBaseCard/docs/pisellBaseCard.$tab-dev.md +92 -0
- package/lib/components/pisellBaseCard/docs/pisellBaseCard.$tab-test.md +86 -0
- package/lib/components/pisellBaseCard/docs/pisellBaseCard.md +165 -0
- package/lib/components/pisellBaseCard/index.d.ts +2 -0
- package/lib/components/pisellBaseCard/types.d.ts +49 -0
- package/lib/components/pisellCardList/index.js +6 -6
- package/lib/components/pisellCurrency/PisellCurrency.js +13 -6
- package/lib/components/pisellCurrency/PisellCurrency.less +0 -123
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +57 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.js +94 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.less +8 -0
- package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-design.md +115 -0
- package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-dev.md +73 -0
- package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-test.md +66 -0
- package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.md +132 -0
- package/lib/components/pisellCustomerBrief/index.d.ts +2 -0
- package/lib/components/pisellCustomerBrief/types.d.ts +86 -0
- package/lib/components/pisellDataSourceContainer/components/Pagination/index.js +3 -9
- package/lib/components/pisellDataSourceContainer/docs/PisellDataSourceContainer.md +189 -240
- package/lib/components/pisellDataSourceContainer/type.d.ts +1 -1
- package/lib/components/pisellDateTimeDisplay/docs/pisellDateTimeDisplay.md +556 -556
- package/lib/components/pisellEmail/PisellEmail.js +13 -6
- package/lib/components/pisellEmail/PisellEmail.less +0 -92
- package/lib/components/pisellEmpty/index.d.ts +1 -1
- package/lib/components/pisellEntityCard/PisellEntityCard.d.ts +47 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.js +318 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.less +362 -0
- package/lib/components/pisellEntityCard/docs/pisellEntityCard.$tab-design.md +209 -0
- package/lib/components/pisellEntityCard/docs/pisellEntityCard.$tab-dev.md +82 -0
- package/lib/components/pisellEntityCard/docs/pisellEntityCard.$tab-test.md +122 -0
- package/lib/components/pisellEntityCard/docs/pisellEntityCard.md +176 -0
- package/lib/components/pisellEntityCard/index.d.ts +2 -0
- package/lib/components/pisellEntityCard/types.d.ts +148 -0
- package/lib/components/pisellExport/PisellExport.d.ts +11 -0
- package/lib/components/pisellExport/PisellExport.js +47 -0
- package/lib/components/pisellExport/PisellExport.less +141 -0
- package/lib/components/pisellExport/docs/pisellExport.$tab-design.md +116 -0
- package/lib/components/pisellExport/docs/pisellExport.$tab-dev.md +132 -0
- package/lib/components/pisellExport/docs/pisellExport.$tab-test.md +61 -0
- package/lib/components/pisellExport/docs/pisellExport.md +162 -0
- package/lib/components/pisellExport/index.d.ts +2 -0
- package/lib/components/pisellExport/types.d.ts +67 -0
- package/lib/components/pisellFilter/docs/PisellFilter.md +2 -2
- package/lib/components/pisellFind/docs/pisellFind.md +2 -2
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +1 -2
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +51 -230
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.less +0 -22
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.js +2 -3
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +2 -2
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.js +74 -209
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +4 -39
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.js +11 -130
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.less +1 -9
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.js +2 -23
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.less +4 -97
- package/lib/components/pisellFloorMapLayout/components/ItemLayer.js +9 -29
- package/lib/components/pisellFloorMapLayout/components/ItemLayer.less +2 -19
- package/lib/components/pisellFloorMapLayout/components/ViewControls.js +64 -118
- package/lib/components/pisellFloorMapLayout/components/ViewControls.less +44 -208
- package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +0 -4
- package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +1 -3
- package/lib/components/pisellFloorMapLayout/docs/pisellFloorMapLayout.md +194 -559
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +16 -82
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +36 -369
- package/lib/components/pisellFloorMapLayout/index.d.ts +0 -1
- package/lib/components/pisellFloorMapLayout/locales-ja.js +1 -21
- package/lib/components/pisellFloorMapLayout/locales-pt.js +1 -21
- package/lib/components/pisellFloorMapLayout/locales.js +3 -63
- package/lib/components/pisellFloorMapLayout/types.d.ts +9 -70
- package/lib/components/pisellGoodPassCard/index.less +0 -1
- package/lib/components/pisellGridPro/GridView/docs/GridView.md +48 -47
- package/lib/components/pisellGridPro/ToolBar/docs/ToolBar.$tab-dev.md +2 -4
- package/lib/components/pisellGridPro/ToolBar/docs/ToolBar.md +81 -95
- package/lib/components/pisellGridPro/ToolBar/index.less +4 -5
- package/lib/components/pisellGridPro/docs/PisellGridPro.md +262 -173
- package/lib/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-dev.md +6 -3
- package/lib/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-test.md +4 -3
- package/lib/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.md +2 -1
- package/lib/components/pisellImport/PisellImport.d.ts +11 -0
- package/lib/components/pisellImport/PisellImport.js +84 -0
- package/lib/components/pisellImport/PisellImport.less +141 -0
- package/lib/components/pisellImport/docs/pisellImport.$tab-design.md +121 -0
- package/lib/components/pisellImport/docs/pisellImport.$tab-dev.md +137 -0
- package/lib/components/pisellImport/docs/pisellImport.$tab-test.md +69 -0
- package/lib/components/pisellImport/docs/pisellImport.md +174 -0
- package/lib/components/pisellImport/index.d.ts +2 -0
- package/lib/components/pisellImport/types.d.ts +89 -0
- package/lib/components/pisellLongText/PisellLongText.js +13 -6
- package/lib/components/pisellLongText/PisellLongText.less +0 -67
- package/lib/components/pisellLookup/PisellLookup.less +1 -1
- package/lib/components/pisellLookup/components/LookupTrigger.js +8 -6
- package/lib/components/pisellLookup/docs/pisellLookup.md +1 -1
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.js +6 -4
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +18 -139
- package/lib/components/pisellMultipleSelect/components/EditView.js +1 -0
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.js +4 -0
- package/lib/components/pisellNumber/PisellNumber.js +13 -6
- package/lib/components/pisellNumber/PisellNumber.less +0 -103
- package/lib/components/pisellPhone/PisellPhone.js +13 -6
- package/lib/components/pisellPhone/PisellPhone.less +0 -119
- package/lib/components/pisellPhone/components/EditView.js +37 -19
- package/lib/components/pisellPhone/constants/countryCodes.js +26 -25
- package/lib/components/pisellPhone/types.d.ts +2 -2
- package/lib/components/pisellPhone/utils/countryCodeHelper.js +2 -2
- package/lib/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.md +1 -1
- package/lib/components/pisellRating/PisellRating.js +4 -2
- package/lib/components/pisellRecordBoard/PisellRecordBoard.js +10 -26
- package/lib/components/pisellRecordBoard/README.md +0 -12
- package/lib/components/pisellRecordBoard/docs/PisellRecordBoard.md +70 -716
- package/lib/components/pisellRecordBoard/docs/ShellFrame.md +44 -62
- package/lib/components/pisellRecordBoard/index.d.ts +1 -7
- package/lib/components/pisellRecordBoard/index.js +0 -4
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +8 -146
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.less +0 -31
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.js +3813 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +1 -5
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.js +8 -11
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +1 -1
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +1 -2
- package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.js +1 -7
- package/lib/components/pisellRecordBoard/shellFrame/Search/index.js +1 -1
- package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +1 -5
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +78 -156
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +13 -181
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +2 -10
- package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +2 -9
- package/lib/components/pisellRecordBoard/shellFrame/index.js +19 -73
- package/lib/components/pisellRecordBoard/types.d.ts +8 -374
- package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +0 -16
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.js +15 -67
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.less +0 -23
- package/lib/components/pisellReservationSchedule/locales.js +3 -21
- package/lib/components/pisellReservationSchedule/types.d.ts +0 -5
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.js +2 -2
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +4 -37
- package/lib/components/pisellReservationScheduleBand/types.d.ts +0 -4
- package/lib/components/pisellShellFrame/PisellShellFrame.js +2 -2
- package/lib/components/pisellShellFrame/PisellShellFrame.less +2 -18
- package/lib/components/pisellShellFrame/types.d.ts +0 -6
- package/lib/components/pisellSingleLineText/PisellSingleLineText.js +21 -14
- package/lib/components/pisellSingleLineText/PisellSingleLineText.less +0 -143
- package/lib/components/pisellSingleLineText/docs/pisellSingleLineText.md +256 -256
- package/lib/components/pisellSingleSelect/PisellSingleSelect.js +7 -4
- package/lib/components/pisellSingleSelect/PisellSingleSelect.less +5 -106
- package/lib/components/pisellSingleSelect/docs/pisellSingleSelect.md +525 -428
- package/lib/components/pisellSort/docs/PisellSort.md +67 -131
- package/lib/components/pisellStatisticList/index.js +1 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.js +38 -152
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.less +13 -126
- package/lib/components/pisellTimeNavigator/components/CursorLayer.js +2 -2
- package/lib/components/pisellTimeNavigator/components/GestureLayer.js +3 -12
- package/lib/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-dev.md +42 -26
- package/lib/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-test.md +5 -5
- package/lib/components/pisellTimeNavigator/index.d.ts +1 -1
- package/lib/components/pisellTimeNavigator/utils/index.d.ts +3 -9
- package/lib/components/pisellTimeNavigator/utils/index.js +5 -16
- package/lib/components/pisellTimeRangeDisplay/docs/pisellTimeRangeDisplay.md +227 -226
- package/lib/components/pisellUrl/PisellUrl.js +13 -6
- package/lib/components/pisellWalletPassCard/index.js +11 -5
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +8 -69
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -80
- package/lib/components/productCard/cartSkuCard/components/holders/index.js +1 -1
- package/lib/components/productCard/cartSkuCard/components/packages/index.js +11 -26
- package/lib/components/productCard/cartSkuCard/components/specs/index.js +8 -23
- package/lib/components/productCard/cartSkuCard/components/specs/index.less +0 -11
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +1 -2
- package/lib/components/productCard/cartSkuCard/index.js +8 -68
- package/lib/components/productCard/cartSkuCard/locales.js +5 -40
- package/lib/components/productCard/components/Header/Actions/index.less +15 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.js +2 -2
- package/lib/components/productCard/components/Header/DeleteButton/index.less +2 -1
- package/lib/components/productCard/components/Header/EditButton/index.js +1 -2
- package/lib/components/productCard/components/Header/index.less +1 -1
- package/lib/components/productCard/components/Time/components/SelectHolder/index.js +3 -2
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.js +5 -5
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.js +2 -2
- package/lib/components/productCard/components/Time/components/SelectResource/index.js +6 -3
- package/lib/components/productCard/components/Time/index.js +3 -2
- package/lib/components/productCard/status.js +0 -3
- package/lib/components/productCard/types.d.ts +0 -10
- package/lib/components/productCard/utils.js +1 -1
- package/lib/components/select-time/index.js +0 -1
- package/lib/components/table/Actions/component/ExportImport/index.js +3 -4
- package/lib/components/table/Actions/component/GallerySetting/index.js +12 -11
- package/lib/components/table/Actions/component/ViewMode/index.js +6 -5
- package/lib/components/table/Actions/index.js +1 -1
- package/lib/components/table/BasicTable/index.js +4 -3
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.less +1 -1
- package/lib/components/table/Gallery/components/GalleryItem/index.js +17 -9
- package/lib/components/table/Gallery/components/GalleryItem/index.less +1 -0
- package/lib/components/table/Gallery/index.js +11 -3
- package/lib/components/table/Table/fields/text/Show/index.js +1 -1
- package/lib/components/table/Table/index.js +2 -1
- package/lib/components/table/Table/tableConfig/header/index.js +2 -2
- package/lib/components/table/Table/utils.js +5 -1
- package/lib/components/table/hooks/useTableSetting.js +3 -0
- package/lib/components/table/hooks/useTransDataSource.js +4 -3
- package/lib/components/table/index.js +1 -1
- package/lib/components/tabs/index.less +1 -1
- package/lib/components/translation/index.d.ts +1 -0
- package/lib/components/translation/index.js +35 -9
- package/lib/components/translation/index.less +12 -0
- package/lib/components/versionModal/index.d.ts +1 -0
- package/lib/components/versionModal/index.js +2 -2
- package/lib/components/versionSelect/index.js +4 -4
- package/lib/components/virtual-keyboard/Amount/index.js +5 -4
- package/lib/components/virtual-keyboard/Amount/types.d.ts +1 -0
- package/lib/index.d.ts +105 -94
- package/lib/index.js +298 -299
- package/lib/locales/en-US.js +69 -191
- package/lib/locales/ja.js +12 -192
- package/lib/locales/pt.js +12 -192
- package/lib/locales/zh-CN.js +63 -185
- package/lib/locales/zh-TW.js +68 -190
- package/lib/pisell-materials.tw.css +1 -2414
- package/lib/tailwind-input.css +1 -3
- package/lib/theme/pisell-components.js +76 -0
- package/lowcode/pisell-time-navigator/meta.ts +10 -0
- package/package.json +3 -2
- package/es/components/SafeAreaTop/index.d.ts +0 -6
- package/es/components/SafeAreaTop/index.js +0 -112
- package/es/components/SafeAreaTop/index.less +0 -11
- package/es/components/SafeAreaTop/types.d.ts +0 -13
- package/es/components/pisellFloorMapLayout/appearance/floorMapAppearance.d.ts +0 -4
- package/es/components/pisellFloorMapLayout/appearance/floorMapAppearance.js +0 -22
- package/es/components/pisellFloorMapLayout/components/HistoryIcons.js +0 -64
- package/es/components/pisellFloorMapLayout/floorMapLayoutConstants.js +0 -7
- package/es/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.js +0 -47
- package/es/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.js +0 -95
- package/es/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +0 -52
- package/es/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.js +0 -61
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +0 -758
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.less +0 -313
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.js +0 -191
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +0 -22
- package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.js +0 -39
- package/es/components/pisellRecordBoard/shellFrame/Calendar/hooks/useBookingCalendarDayOverlayLayout.js +0 -74
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarBlockPanel.js +0 -61
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.js +0 -26
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.js +0 -79
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.js +0 -48
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.js +0 -37
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.js +0 -20
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +0 -532
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarSelectionUtils.js +0 -17
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.js +0 -31
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.js +0 -583
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.js +0 -41
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +0 -111
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.js +0 -612
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +0 -162
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.js +0 -8
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDayHourRemaining.js +0 -33
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDaySelection.js +0 -37
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceCellToggle.js +0 -18
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceDayHeaderRemaining.js +0 -33
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/useBookingCalendarGoToDayFromCell.js +0 -29
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.js +0 -43
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +0 -14
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +0 -436
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +0 -11
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.js +0 -9
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +0 -179
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.js +0 -62
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +0 -57
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewport.less +0 -45
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.js +0 -91
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +0 -218
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.less +0 -339
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallMarquee.less +0 -52
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.js +0 -153
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +0 -32
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +0 -170
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.js +0 -11
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.js +0 -56
- package/es/components/pisellRecordBoard/types.js +0 -12
- package/es/components/pisellTimeNavigator/timeNavigatorConstants.js +0 -7
- package/es/components/productCard/cartSkuCard/components/Gift/index.js +0 -34
- package/es/components/productCard/cartSkuCard/components/Gift/index.less +0 -84
- package/es/components/productCard/cartSkuCard/components/Promotion/index.js +0 -23
- package/es/components/productCard/cartSkuCard/components/Promotion/index.less +0 -16
- package/es/components/productCard/cartSkuCard/components/weighing/index.js +0 -27
- package/es/components/productCard/cartSkuCard/components/weighing/index.less +0 -25
- package/lib/components/SafeAreaTop/index.d.ts +0 -6
- package/lib/components/SafeAreaTop/index.js +0 -115
- package/lib/components/SafeAreaTop/index.less +0 -11
- package/lib/components/SafeAreaTop/types.d.ts +0 -13
- package/lib/components/pisellFloorMapLayout/appearance/floorMapAppearance.d.ts +0 -4
- package/lib/components/pisellFloorMapLayout/appearance/floorMapAppearance.js +0 -22
- package/lib/components/pisellFloorMapLayout/components/HistoryIcons.js +0 -67
- package/lib/components/pisellFloorMapLayout/floorMapLayoutConstants.js +0 -7
- package/lib/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.js +0 -52
- package/lib/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.js +0 -96
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +0 -52
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.js +0 -64
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +0 -760
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.less +0 -313
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.js +0 -197
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +0 -23
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.js +0 -44
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/hooks/useBookingCalendarDayOverlayLayout.js +0 -75
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarBlockPanel.js +0 -63
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.js +0 -28
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.js +0 -81
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.js +0 -50
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.js +0 -39
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.js +0 -21
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +0 -562
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarSelectionUtils.js +0 -17
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.js +0 -33
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.js +0 -585
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.js +0 -43
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +0 -113
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.js +0 -614
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +0 -164
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.js +0 -10
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDayHourRemaining.js +0 -34
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDaySelection.js +0 -38
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceCellToggle.js +0 -19
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceDayHeaderRemaining.js +0 -34
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/useBookingCalendarGoToDayFromCell.js +0 -30
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.js +0 -45
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +0 -439
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +0 -11
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.js +0 -9
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +0 -181
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.js +0 -64
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +0 -57
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewport.less +0 -45
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.js +0 -93
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +0 -220
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.less +0 -339
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallMarquee.less +0 -52
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.js +0 -153
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +0 -32
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +0 -181
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.js +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.js +0 -63
- package/lib/components/pisellRecordBoard/types.js +0 -12
- package/lib/components/pisellTimeNavigator/timeNavigatorConstants.js +0 -7
- package/lib/components/productCard/cartSkuCard/components/Gift/index.js +0 -36
- package/lib/components/productCard/cartSkuCard/components/Gift/index.less +0 -84
- package/lib/components/productCard/cartSkuCard/components/Promotion/index.js +0 -25
- package/lib/components/productCard/cartSkuCard/components/Promotion/index.less +0 -16
- package/lib/components/productCard/cartSkuCard/components/weighing/index.js +0 -29
- package/lib/components/productCard/cartSkuCard/components/weighing/index.less +0 -25
- /package/es/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.$tab-design.md +0 -0
- /package/es/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.$tab-dev.md +0 -0
- /package/es/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.$tab-test.md +0 -0
- /package/lib/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.$tab-design.md +0 -0
- /package/lib/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.$tab-dev.md +0 -0
- /package/lib/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.$tab-test.md +0 -0
package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js
DELETED
|
@@ -1,562 +0,0 @@
|
|
|
1
|
-
const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
|
|
2
|
-
const require_index = require("../../../../pisellTimeNavigator/utils/index.js");
|
|
3
|
-
const require_bookingCalendarConstants = require("../const/bookingCalendarConstants.js");
|
|
4
|
-
const require_calendarI18n = require("../calendarI18n.js");
|
|
5
|
-
let dayjs = require("dayjs");
|
|
6
|
-
dayjs = require_runtime.__toESM(dayjs);
|
|
7
|
-
//#region src/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.ts
|
|
8
|
-
function fmtDate(date) {
|
|
9
|
-
return `${date.getFullYear()}-${`${date.getMonth() + 1}`.padStart(2, "0")}-${`${date.getDate()}`.padStart(2, "0")}`;
|
|
10
|
-
}
|
|
11
|
-
/** 本地当前日期键与「日历时」小数小时,用于状态徽标与当前时刻线 */
|
|
12
|
-
function getViewNowReference() {
|
|
13
|
-
const d = /* @__PURE__ */ new Date();
|
|
14
|
-
return {
|
|
15
|
-
dateKey: fmtDate(d),
|
|
16
|
-
hourFloat: d.getHours() + d.getMinutes() / 60 + d.getSeconds() / 3600
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
function parseDate(str) {
|
|
20
|
-
const [y, m, d] = str.split("-").map(Number);
|
|
21
|
-
return new Date(y, m - 1, d);
|
|
22
|
-
}
|
|
23
|
-
function addDays(date, n) {
|
|
24
|
-
const next = new Date(date);
|
|
25
|
-
next.setDate(next.getDate() + n);
|
|
26
|
-
return next;
|
|
27
|
-
}
|
|
28
|
-
function startOfWeek(date) {
|
|
29
|
-
const d = new Date(date);
|
|
30
|
-
const day = d.getDay();
|
|
31
|
-
const diff = day === 0 ? -6 : 1 - day;
|
|
32
|
-
d.setDate(d.getDate() + diff);
|
|
33
|
-
d.setHours(0, 0, 0, 0);
|
|
34
|
-
return d;
|
|
35
|
-
}
|
|
36
|
-
function rangeDays(anchor) {
|
|
37
|
-
const start = startOfWeek(anchor);
|
|
38
|
-
return Array.from({ length: 7 }, (_, i) => addDays(start, i));
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* 锚定日所在自然月的每一天(1 号至月末),用于资源视图横向「日」列。
|
|
42
|
-
*/
|
|
43
|
-
function monthCalendarDays(anchor) {
|
|
44
|
-
const base = anchor instanceof Date && !Number.isNaN(anchor.getTime()) ? anchor : /* @__PURE__ */ new Date();
|
|
45
|
-
const y = base.getFullYear();
|
|
46
|
-
const m = base.getMonth();
|
|
47
|
-
const last = new Date(y, m + 1, 0).getDate();
|
|
48
|
-
return Array.from({ length: last }, (_, i) => new Date(y, m, i + 1));
|
|
49
|
-
}
|
|
50
|
-
function isHourInTimelineSlots(hour, hourSlots) {
|
|
51
|
-
if (!(hourSlots === null || hourSlots === void 0 ? void 0 : hourSlots.length)) return false;
|
|
52
|
-
return hourSlots.some((x) => Math.abs(x - hour) < 1e-6);
|
|
53
|
-
}
|
|
54
|
-
function formatHourLabel(hour) {
|
|
55
|
-
const totalMin = Math.round(hour * 60);
|
|
56
|
-
const h = Math.floor(totalMin / 60);
|
|
57
|
-
const m = totalMin % 60;
|
|
58
|
-
const clockH = (h % 24 + 24) % 24;
|
|
59
|
-
return `${String(clockH).padStart(2, "0")}:${String(m).padStart(2, "0")}`;
|
|
60
|
-
}
|
|
61
|
-
function monthGrid(date, bookings, courtsList = [], hourSlotsIn, slotStepHours = 1) {
|
|
62
|
-
const hourSlots = hourSlotsIn && hourSlotsIn.length ? hourSlotsIn : require_index.buildCalendarTimelineSlotStartsFromRange(require_bookingCalendarConstants.DEFAULT_CALENDAR_TIMELINE, date, 60);
|
|
63
|
-
const year = date.getFullYear();
|
|
64
|
-
const month = date.getMonth();
|
|
65
|
-
const start = startOfWeek(new Date(year, month, 1));
|
|
66
|
-
return Array.from({ length: 35 }, (_, i) => addDays(start, i)).map((day) => {
|
|
67
|
-
const key = fmtDate(day);
|
|
68
|
-
const dayBookings = bookings.filter((b) => b.date === key && b.kind === "booking");
|
|
69
|
-
const blocks = bookings.filter((b) => b.date === key && b.kind === "block");
|
|
70
|
-
const fullyBookedCourts = courtsList.filter((court) => {
|
|
71
|
-
var _hourSlots$length;
|
|
72
|
-
const items = bookings.filter((b) => b.courtId === court.id && b.date === key);
|
|
73
|
-
const occupied = /* @__PURE__ */ new Set();
|
|
74
|
-
items.forEach((b) => {
|
|
75
|
-
(hourSlots || []).forEach((slotStart) => {
|
|
76
|
-
const seg = getBookingSegmentForDate(b, key);
|
|
77
|
-
if (seg && seg.startHour < slotStart + slotStepHours && seg.endHour > slotStart) occupied.add(slotStart);
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
const slotCount = (_hourSlots$length = hourSlots === null || hourSlots === void 0 ? void 0 : hourSlots.length) !== null && _hourSlots$length !== void 0 ? _hourSlots$length : 14;
|
|
81
|
-
return occupied.size >= slotCount;
|
|
82
|
-
}).length;
|
|
83
|
-
return {
|
|
84
|
-
date: day,
|
|
85
|
-
key,
|
|
86
|
-
inMonth: day.getMonth() === month,
|
|
87
|
-
bookingCount: dayBookings.length,
|
|
88
|
-
blockCount: blocks.length,
|
|
89
|
-
fullyBooked: fullyBookedCourts >= courtsList.length
|
|
90
|
-
};
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
function getBookingSegmentForDate(item, dateKey) {
|
|
94
|
-
if (!item.endDate || item.endDate === item.date) {
|
|
95
|
-
if (item.date !== dateKey) return null;
|
|
96
|
-
return {
|
|
97
|
-
startHour: item.startHour,
|
|
98
|
-
endHour: item.endHour,
|
|
99
|
-
continuesPrev: false,
|
|
100
|
-
continuesNext: false
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
if (dateKey < item.date || dateKey > item.endDate) return null;
|
|
104
|
-
if (dateKey === item.date) return {
|
|
105
|
-
startHour: item.startHour,
|
|
106
|
-
endHour: 24,
|
|
107
|
-
continuesPrev: false,
|
|
108
|
-
continuesNext: true
|
|
109
|
-
};
|
|
110
|
-
if (dateKey === item.endDate) return {
|
|
111
|
-
startHour: 0,
|
|
112
|
-
endHour: item.endHour,
|
|
113
|
-
continuesPrev: true,
|
|
114
|
-
continuesNext: false
|
|
115
|
-
};
|
|
116
|
-
return {
|
|
117
|
-
startHour: 0,
|
|
118
|
-
endHour: 24,
|
|
119
|
-
continuesPrev: true,
|
|
120
|
-
continuesNext: true
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
function dayOccupancy(courtId, dateKey, bookings, hourSlots, slotStepHours) {
|
|
124
|
-
const items = bookings.filter((b) => b.courtId === courtId && getBookingSegmentForDate(b, dateKey));
|
|
125
|
-
const map = {};
|
|
126
|
-
const stepH = slotStepHours > 0 ? slotStepHours : 1;
|
|
127
|
-
(hourSlots || []).forEach((hour) => {
|
|
128
|
-
map[hour] = items.find((b) => {
|
|
129
|
-
const seg = getBookingSegmentForDate(b, dateKey);
|
|
130
|
-
return seg && seg.startHour < hour + stepH && seg.endHour > hour;
|
|
131
|
-
}) || null;
|
|
132
|
-
});
|
|
133
|
-
return map;
|
|
134
|
-
}
|
|
135
|
-
function groupSelectedSlots(slots, slotStepHours = 1) {
|
|
136
|
-
const stepH = slotStepHours > 0 ? slotStepHours : 1;
|
|
137
|
-
const sorted = [...slots].sort((a, b) => {
|
|
138
|
-
if (a.date !== b.date) return a.date.localeCompare(b.date);
|
|
139
|
-
if (a.courtId !== b.courtId) return a.courtId.localeCompare(b.courtId);
|
|
140
|
-
return a.hour - b.hour;
|
|
141
|
-
});
|
|
142
|
-
const groups = [];
|
|
143
|
-
sorted.forEach((slot) => {
|
|
144
|
-
const prev = groups[groups.length - 1];
|
|
145
|
-
if (prev && prev.courtId === slot.courtId && prev.date === slot.date && Math.abs(prev.endHour - slot.hour) < 1e-6) prev.endHour = slot.hour + stepH;
|
|
146
|
-
else groups.push({
|
|
147
|
-
courtId: slot.courtId,
|
|
148
|
-
date: slot.date,
|
|
149
|
-
startHour: slot.hour,
|
|
150
|
-
endHour: slot.hour + stepH
|
|
151
|
-
});
|
|
152
|
-
});
|
|
153
|
-
return groups;
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* 日视图空闲格:仅当全部为同一 court、同一日,且时间上首尾相接成一段时返回 true(与 {@link groupSelectedSlots} 合并规则一致)。
|
|
157
|
-
*/
|
|
158
|
-
function isFreeSelectionContiguousSameResource(slots, slotStepHours = 1) {
|
|
159
|
-
if (!Array.isArray(slots) || slots.length === 0) return false;
|
|
160
|
-
return groupSelectedSlots(slots, slotStepHours).length === 1;
|
|
161
|
-
}
|
|
162
|
-
function courtDaySummary(courtId, dateKey, bookings, hourSlots, slotStepHours) {
|
|
163
|
-
var _hourSlots$length2;
|
|
164
|
-
const occ = dayOccupancy(courtId, dateKey, bookings, hourSlots, slotStepHours);
|
|
165
|
-
const items = bookings.filter((b) => b.courtId === courtId && b.date === dateKey).sort((a, b) => a.startHour - b.startHour);
|
|
166
|
-
const occupiedHours = (hourSlots || []).filter((h) => occ[h] && isHourInTimelineSlots(h, hourSlots));
|
|
167
|
-
const hasBlock = occupiedHours.some((h) => {
|
|
168
|
-
var _occ$h;
|
|
169
|
-
return ((_occ$h = occ[h]) === null || _occ$h === void 0 ? void 0 : _occ$h.kind) === "block";
|
|
170
|
-
});
|
|
171
|
-
const slotCount = (_hourSlots$length2 = hourSlots === null || hourSlots === void 0 ? void 0 : hourSlots.length) !== null && _hourSlots$length2 !== void 0 ? _hourSlots$length2 : 0;
|
|
172
|
-
return {
|
|
173
|
-
occupiedHours,
|
|
174
|
-
hasBlock,
|
|
175
|
-
fullyBooked: slotCount > 0 && occupiedHours.length >= slotCount,
|
|
176
|
-
items
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
function sameSlot(a, b) {
|
|
180
|
-
return a.courtId === b.courtId && a.date === b.date && a.hour === b.hour;
|
|
181
|
-
}
|
|
182
|
-
/** 营业日 `dateStr` + 浮点小时(含半格)→ dayjs */
|
|
183
|
-
function dayAndHourToDayjs(dateStr, hourFloat) {
|
|
184
|
-
const h = Math.floor(hourFloat);
|
|
185
|
-
const m = Math.round((hourFloat - h) * 60);
|
|
186
|
-
const mm = Math.min(59, Math.max(0, m));
|
|
187
|
-
return (0, dayjs.default)(`${dateStr} ${String(h).padStart(2, "0")}:${String(mm).padStart(2, "0")}`, "YYYY-MM-DD HH:mm");
|
|
188
|
-
}
|
|
189
|
-
function getDisplayStatusTag(item, dateKey) {
|
|
190
|
-
if (item.kind !== "booking") return item.statusTag || null;
|
|
191
|
-
if (item.statusTag === "checked_in" || item.statusTag === "cancel") return item.statusTag;
|
|
192
|
-
const { dateKey: todayKey, hourFloat: nowHour } = getViewNowReference();
|
|
193
|
-
if (dateKey !== todayKey) return item.statusTag || null;
|
|
194
|
-
const seg = getBookingSegmentForDate(item, dateKey);
|
|
195
|
-
if (!seg) return item.statusTag || null;
|
|
196
|
-
const lateThreshold = item.startHour + 5 / 60;
|
|
197
|
-
if (nowHour > seg.endHour) return "no_show";
|
|
198
|
-
if (nowHour > lateThreshold) return "late";
|
|
199
|
-
return item.statusTag || null;
|
|
200
|
-
}
|
|
201
|
-
function getLateMinutes(item, dateKey) {
|
|
202
|
-
if (getDisplayStatusTag(item, dateKey) !== "late") return null;
|
|
203
|
-
const seg = getBookingSegmentForDate(item, dateKey);
|
|
204
|
-
if (!seg) return null;
|
|
205
|
-
const lateThreshold = seg.startHour + 5 / 60;
|
|
206
|
-
const { hourFloat: nowHour } = getViewNowReference();
|
|
207
|
-
return Math.max(1, Math.floor((nowHour - lateThreshold) * 60));
|
|
208
|
-
}
|
|
209
|
-
function currentTimeLabel() {
|
|
210
|
-
const d = /* @__PURE__ */ new Date();
|
|
211
|
-
return `${String(d.getHours()).padStart(2, "0")}:${String(d.getMinutes()).padStart(2, "0")}`;
|
|
212
|
-
}
|
|
213
|
-
function formatDateLoose(str) {
|
|
214
|
-
if (!str) return "";
|
|
215
|
-
const d = parseDate(str);
|
|
216
|
-
return `${d.getFullYear()} ${String(d.getMonth() + 1).padStart(2, "0")} ${String(d.getDate()).padStart(2, "0")}`;
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* 同一 court 上时间重叠的 overlay 分配纵向 lane,避免多张卡片完全叠在同一矩形里。
|
|
220
|
-
* 使用按开始时间排序 + 贪心:每条预约放入「上一条已结束时间不晚于本段开始」的最小编号线。
|
|
221
|
-
*/
|
|
222
|
-
function assignDayOverlapLanesInPlace(overlays) {
|
|
223
|
-
const byCourt = /* @__PURE__ */ new Map();
|
|
224
|
-
for (const o of overlays) {
|
|
225
|
-
const list = byCourt.get(o.courtId);
|
|
226
|
-
if (list) list.push(o);
|
|
227
|
-
else byCourt.set(o.courtId, [o]);
|
|
228
|
-
}
|
|
229
|
-
for (const list of Array.from(byCourt.values())) {
|
|
230
|
-
list.sort((a, b) => {
|
|
231
|
-
if (a.start !== b.start) return a.start - b.start;
|
|
232
|
-
return b.span - a.span;
|
|
233
|
-
});
|
|
234
|
-
const laneEnds = [];
|
|
235
|
-
for (const o of list) {
|
|
236
|
-
const oEnd = o.start + o.span;
|
|
237
|
-
let lane = 0;
|
|
238
|
-
while (lane < laneEnds.length && laneEnds[lane] > o.start) lane++;
|
|
239
|
-
if (lane === laneEnds.length) laneEnds.push(oEnd);
|
|
240
|
-
else laneEnds[lane] = oEnd;
|
|
241
|
-
o.lane = lane;
|
|
242
|
-
}
|
|
243
|
-
let maxL = 0;
|
|
244
|
-
for (const o of list) {
|
|
245
|
-
var _o$lane;
|
|
246
|
-
maxL = Math.max(maxL, (_o$lane = o.lane) !== null && _o$lane !== void 0 ? _o$lane : 0);
|
|
247
|
-
}
|
|
248
|
-
const laneCount = Math.max(1, maxL + 1);
|
|
249
|
-
for (const o of list) o.laneCount = laneCount;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
/** 扫描时间轴:同一 court 在任一时刻的最大并行条数(用于行高,与分 lane 一致) */
|
|
253
|
-
function maxConcurrentBookingsOnCourt(overlays, courtId) {
|
|
254
|
-
const ev = [];
|
|
255
|
-
for (const o of overlays) {
|
|
256
|
-
if (o.courtId !== courtId) continue;
|
|
257
|
-
ev.push({
|
|
258
|
-
t: o.start,
|
|
259
|
-
d: 1
|
|
260
|
-
});
|
|
261
|
-
ev.push({
|
|
262
|
-
t: o.start + o.span,
|
|
263
|
-
d: -1
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
/** 同一时刻先处理结束 (-1) 再处理开始 (+1),区间按 [start, end) 半开,避免「上一段 end == 下一段 start」被算成重叠 */
|
|
267
|
-
ev.sort((a, b) => {
|
|
268
|
-
if (a.t !== b.t) return a.t - b.t;
|
|
269
|
-
return a.d - b.d;
|
|
270
|
-
});
|
|
271
|
-
let c = 0;
|
|
272
|
-
let m = 0;
|
|
273
|
-
for (const e of ev) {
|
|
274
|
-
c += e.d;
|
|
275
|
-
m = Math.max(m, c);
|
|
276
|
-
}
|
|
277
|
-
return Math.max(1, m);
|
|
278
|
-
}
|
|
279
|
-
/** 并行超过 cap 时:cap 条内容 + 1 行「+N」占位 */
|
|
280
|
-
function effectiveDayOverlayDisplayLaneCount(rawConcurrent) {
|
|
281
|
-
if (rawConcurrent <= 3) return Math.max(1, rawConcurrent);
|
|
282
|
-
return 4;
|
|
283
|
-
}
|
|
284
|
-
/** 同一 court 下时间轴区间相交的 overlay 归为一簇(用于 3+N 合并展示) */
|
|
285
|
-
function clusterDayCourtOverlaysByOverlap(overlays, courtId) {
|
|
286
|
-
const list = overlays.filter((o) => o.courtId === courtId);
|
|
287
|
-
if (!list.length) return [];
|
|
288
|
-
const sorted = [...list].sort((a, b) => {
|
|
289
|
-
if (a.start !== b.start) return a.start - b.start;
|
|
290
|
-
return a.start + a.span - (b.start + b.span);
|
|
291
|
-
});
|
|
292
|
-
const clusters = [];
|
|
293
|
-
let cur = [];
|
|
294
|
-
let curMaxEnd = -Infinity;
|
|
295
|
-
for (const o of sorted) {
|
|
296
|
-
const oe = o.start + o.span;
|
|
297
|
-
if (!cur.length) {
|
|
298
|
-
cur = [o];
|
|
299
|
-
curMaxEnd = oe;
|
|
300
|
-
continue;
|
|
301
|
-
}
|
|
302
|
-
if (o.start < curMaxEnd - 1e-9) {
|
|
303
|
-
cur.push(o);
|
|
304
|
-
curMaxEnd = Math.max(curMaxEnd, oe);
|
|
305
|
-
} else {
|
|
306
|
-
clusters.push(cur);
|
|
307
|
-
cur = [o];
|
|
308
|
-
curMaxEnd = oe;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
if (cur.length) clusters.push(cur);
|
|
312
|
-
return clusters;
|
|
313
|
-
}
|
|
314
|
-
function dayOverlayHiddenKey(item, dayKey, courtId) {
|
|
315
|
-
const id = (item === null || item === void 0 ? void 0 : item.id) != null ? String(item.id) : "";
|
|
316
|
-
return `${String(courtId)}\0${id}\0${dayKey}`;
|
|
317
|
-
}
|
|
318
|
-
/**
|
|
319
|
-
* 将 totalInner 像素整数分给 n 条竖向 lane(含缝),保证 Σheight + Σgap === totalInner,消除底部留白缝。
|
|
320
|
-
*/
|
|
321
|
-
function dayOverlayLaneMetrics(totalInner, laneCount, gap) {
|
|
322
|
-
const n = Math.max(1, laneCount);
|
|
323
|
-
if (n === 1) return {
|
|
324
|
-
topFor: () => 0,
|
|
325
|
-
heightFor: () => totalInner
|
|
326
|
-
};
|
|
327
|
-
const gapsTotal = (n - 1) * gap;
|
|
328
|
-
const body = Math.max(0, totalInner - gapsTotal);
|
|
329
|
-
const base = Math.floor(body / n);
|
|
330
|
-
const rem = body % n;
|
|
331
|
-
const heights = [];
|
|
332
|
-
for (let i = 0; i < n; i += 1) heights.push(base + (i < rem ? 1 : 0));
|
|
333
|
-
const offsets = [0];
|
|
334
|
-
for (let i = 1; i < n; i += 1) offsets.push(offsets[i - 1] + heights[i - 1] + gap);
|
|
335
|
-
return {
|
|
336
|
-
topFor: (lane) => {
|
|
337
|
-
var _offsets$Math$min;
|
|
338
|
-
return (_offsets$Math$min = offsets[Math.min(lane, n - 1)]) !== null && _offsets$Math$min !== void 0 ? _offsets$Math$min : 0;
|
|
339
|
-
},
|
|
340
|
-
heightFor: (lane) => {
|
|
341
|
-
var _heights$Math$min;
|
|
342
|
-
return (_heights$Math$min = heights[Math.min(lane, n - 1)]) !== null && _heights$Math$min !== void 0 ? _heights$Math$min : base;
|
|
343
|
-
}
|
|
344
|
-
};
|
|
345
|
-
}
|
|
346
|
-
function buildOverlayBookings(visibleCourtRows, dayKey, bookings, rowTopMap = {}, hourSlots, dayRowHeights, slotStepHours = 1) {
|
|
347
|
-
const courtRowIndexMap = /* @__PURE__ */ new Map();
|
|
348
|
-
visibleCourtRows.forEach((row, index) => {
|
|
349
|
-
if (row.kind === "court") courtRowIndexMap.set(row.id, index);
|
|
350
|
-
});
|
|
351
|
-
const stepH = slotStepHours > 0 ? slotStepHours : 1;
|
|
352
|
-
const gridMin = (hourSlots === null || hourSlots === void 0 ? void 0 : hourSlots.length) ? hourSlots[0] : 0;
|
|
353
|
-
const gridMaxExclusive = (hourSlots === null || hourSlots === void 0 ? void 0 : hourSlots.length) ? hourSlots[hourSlots.length - 1] + stepH : 24;
|
|
354
|
-
const seen = /* @__PURE__ */ new Set();
|
|
355
|
-
const out = [];
|
|
356
|
-
for (let i = 0; i < visibleCourtRows.length; i++) {
|
|
357
|
-
var _dayRowHeights$i;
|
|
358
|
-
const row = visibleCourtRows[i];
|
|
359
|
-
if (row.kind !== "court") continue;
|
|
360
|
-
const rowHeight = (_dayRowHeights$i = dayRowHeights[i]) !== null && _dayRowHeights$i !== void 0 ? _dayRowHeights$i : 44;
|
|
361
|
-
for (const item of bookings.filter((b) => b.courtId === row.id)) {
|
|
362
|
-
var _item$id;
|
|
363
|
-
const dedupeKey = `${row.id}\0${(_item$id = item.id) !== null && _item$id !== void 0 ? _item$id : ""}\0${dayKey}`;
|
|
364
|
-
if (seen.has(dedupeKey)) continue;
|
|
365
|
-
const seg = getBookingSegmentForDate(item, dayKey);
|
|
366
|
-
if (!seg) continue;
|
|
367
|
-
const start = Math.max(seg.startHour, gridMin);
|
|
368
|
-
const end = Math.min(seg.endHour, gridMaxExclusive);
|
|
369
|
-
if (end <= start) continue;
|
|
370
|
-
seen.add(dedupeKey);
|
|
371
|
-
out.push({
|
|
372
|
-
item,
|
|
373
|
-
rowIndex: courtRowIndexMap.get(row.id) || 0,
|
|
374
|
-
rowTop: rowTopMap[row.id] || 0,
|
|
375
|
-
rowHeight,
|
|
376
|
-
courtId: row.id,
|
|
377
|
-
start,
|
|
378
|
-
end,
|
|
379
|
-
span: end - start,
|
|
380
|
-
continuesNext: seg.continuesNext,
|
|
381
|
-
continuesPrev: seg.continuesPrev
|
|
382
|
-
});
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
assignDayOverlapLanesInPlace(out);
|
|
386
|
-
return out;
|
|
387
|
-
}
|
|
388
|
-
/** 日视图:按行高累加每行 rowTop(court / group) */
|
|
389
|
-
function buildDayRowTopMap(visibleCourtRows, heights) {
|
|
390
|
-
let acc = 0;
|
|
391
|
-
const map = {};
|
|
392
|
-
visibleCourtRows.forEach((row, index) => {
|
|
393
|
-
var _heights$index;
|
|
394
|
-
map[row.id] = acc;
|
|
395
|
-
acc += (_heights$index = heights[index]) !== null && _heights$index !== void 0 ? _heights$index : 44;
|
|
396
|
-
});
|
|
397
|
-
return map;
|
|
398
|
-
}
|
|
399
|
-
/** 日历状态徽标:返回 i18n key + className;文案在 UI 层通过 tCal 解析,便于 utils 单测 */
|
|
400
|
-
function statusTagMetaParts(tag) {
|
|
401
|
-
switch (tag) {
|
|
402
|
-
case "cancel": return {
|
|
403
|
-
labelI18nKey: "pisell2.recordBoard.calendar.status.cancel",
|
|
404
|
-
className: "bg-red-600/88 text-white border border-red-300/35"
|
|
405
|
-
};
|
|
406
|
-
case "change": return {
|
|
407
|
-
labelI18nKey: "pisell2.recordBoard.calendar.status.change",
|
|
408
|
-
className: "bg-amber-500/88 text-white border border-amber-200/35"
|
|
409
|
-
};
|
|
410
|
-
case "checked_in": return {
|
|
411
|
-
labelI18nKey: "pisell2.recordBoard.calendar.status.checkedIn",
|
|
412
|
-
className: "bg-zinc-500/88 text-white border border-zinc-300/30"
|
|
413
|
-
};
|
|
414
|
-
case "pending": return {
|
|
415
|
-
labelI18nKey: "pisell2.recordBoard.calendar.status.pending",
|
|
416
|
-
className: "bg-cyan-600/88 text-white border border-cyan-300/35"
|
|
417
|
-
};
|
|
418
|
-
case "new": return {
|
|
419
|
-
labelI18nKey: "pisell2.recordBoard.calendar.status.new",
|
|
420
|
-
className: "bg-emerald-600/88 text-white border border-emerald-300/35"
|
|
421
|
-
};
|
|
422
|
-
case "late": return {
|
|
423
|
-
labelI18nKey: "pisell2.recordBoard.calendar.status.late",
|
|
424
|
-
className: "bg-amber-500/88 text-white border border-amber-200/35"
|
|
425
|
-
};
|
|
426
|
-
case "no_show": return {
|
|
427
|
-
labelI18nKey: "pisell2.recordBoard.calendar.status.noShow",
|
|
428
|
-
className: "bg-red-700/92 text-white border border-red-300/35"
|
|
429
|
-
};
|
|
430
|
-
default: return null;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
function getBookingDetailData(item, courtsList = []) {
|
|
434
|
-
var _item$courtId, _item$id2, _item$id3, _item$id4;
|
|
435
|
-
const court = courtsList.find((c) => c.id === item.courtId);
|
|
436
|
-
const resourceLabel = (court === null || court === void 0 ? void 0 : court.name) != null && String(court.name).trim() !== "" ? String(court.name) : String((_item$courtId = item.courtId) !== null && _item$courtId !== void 0 ? _item$courtId : "—");
|
|
437
|
-
const startTime = formatHourLabel(item.startHour);
|
|
438
|
-
const endTime = formatHourLabel(item.endHour);
|
|
439
|
-
const endDate = item.endDate || item.date;
|
|
440
|
-
const isBlock = item.kind === "block";
|
|
441
|
-
const customerName = isBlock ? item.blockBy || require_calendarI18n.tCal("pisell2.recordBoard.calendar.detail.staff") : item.name || "—";
|
|
442
|
-
const noteText = item.note ? String(item.note) : "";
|
|
443
|
-
const orderNotes = noteText ? [{
|
|
444
|
-
id: `${item.id}-note-order`,
|
|
445
|
-
label: require_calendarI18n.tCal("pisell2.recordBoard.calendar.detail.orderNote"),
|
|
446
|
-
text: noteText
|
|
447
|
-
}] : [];
|
|
448
|
-
return {
|
|
449
|
-
rawSales: null,
|
|
450
|
-
bookingId: String((_item$id2 = item.id) !== null && _item$id2 !== void 0 ? _item$id2 : "").toUpperCase(),
|
|
451
|
-
orderNumber: String((_item$id3 = item.id) !== null && _item$id3 !== void 0 ? _item$id3 : ""),
|
|
452
|
-
shopOrderNumber: String((_item$id4 = item.id) !== null && _item$id4 !== void 0 ? _item$id4 : ""),
|
|
453
|
-
orderStatus: "normal",
|
|
454
|
-
appointmentStatus: isBlock ? "blocked" : "confirmed",
|
|
455
|
-
paymentStatus: "payment_processing",
|
|
456
|
-
customer: {
|
|
457
|
-
id: null,
|
|
458
|
-
name: customerName,
|
|
459
|
-
email: "",
|
|
460
|
-
phone: item.phone ? String(item.phone) : ""
|
|
461
|
-
},
|
|
462
|
-
guestCount: 0,
|
|
463
|
-
checkedInCount: 0,
|
|
464
|
-
guests: [],
|
|
465
|
-
schedule: {
|
|
466
|
-
startDate: item.date,
|
|
467
|
-
startTime,
|
|
468
|
-
endDate,
|
|
469
|
-
endTime,
|
|
470
|
-
duration: Math.max(0, (item.endHour - item.startHour) * 60),
|
|
471
|
-
arrivedAt: null,
|
|
472
|
-
completedAt: null
|
|
473
|
-
},
|
|
474
|
-
resources: [],
|
|
475
|
-
summaryItems: [],
|
|
476
|
-
items: [],
|
|
477
|
-
note: noteText,
|
|
478
|
-
files: {
|
|
479
|
-
form: [],
|
|
480
|
-
uploaded: [],
|
|
481
|
-
invoice: []
|
|
482
|
-
},
|
|
483
|
-
payments: [],
|
|
484
|
-
history: [],
|
|
485
|
-
summary: {},
|
|
486
|
-
paymentSummary: {
|
|
487
|
-
totalAmount: 0,
|
|
488
|
-
paidAmount: 0,
|
|
489
|
-
balanceAmount: 0,
|
|
490
|
-
currencySymbol: "$",
|
|
491
|
-
isFullyPaid: false
|
|
492
|
-
},
|
|
493
|
-
itemSummary: {
|
|
494
|
-
itemCount: 0,
|
|
495
|
-
itemQtyTotal: 0
|
|
496
|
-
},
|
|
497
|
-
headerSummary: {
|
|
498
|
-
customerName,
|
|
499
|
-
guestCount: 0,
|
|
500
|
-
checkedInCount: 0,
|
|
501
|
-
timeLabel: `${item.date} · ${startTime} - ${endTime}`,
|
|
502
|
-
resourceLabel
|
|
503
|
-
},
|
|
504
|
-
headerTags: {
|
|
505
|
-
paymentTag: "Unpaid",
|
|
506
|
-
fulfillmentTag: "Open",
|
|
507
|
-
hasNote: Boolean(noteText),
|
|
508
|
-
paymentStatus: "payment_processing",
|
|
509
|
-
orderStatus: "normal"
|
|
510
|
-
},
|
|
511
|
-
fileCount: 0,
|
|
512
|
-
canChangeCustomer: !isBlock,
|
|
513
|
-
noteCount: orderNotes.length,
|
|
514
|
-
noteGroups: {
|
|
515
|
-
internal: [],
|
|
516
|
-
order: orderNotes,
|
|
517
|
-
item: []
|
|
518
|
-
},
|
|
519
|
-
metaFlags: {
|
|
520
|
-
itemsChanged: false,
|
|
521
|
-
paymentsChanged: false,
|
|
522
|
-
guestChanged: false,
|
|
523
|
-
filesChanged: false,
|
|
524
|
-
notesChanged: false,
|
|
525
|
-
formChanged: false,
|
|
526
|
-
uploadedChanged: false,
|
|
527
|
-
invoiceChanged: false,
|
|
528
|
-
historyChanged: false
|
|
529
|
-
},
|
|
530
|
-
actions: []
|
|
531
|
-
};
|
|
532
|
-
}
|
|
533
|
-
//#endregion
|
|
534
|
-
exports.addDays = addDays;
|
|
535
|
-
exports.buildDayRowTopMap = buildDayRowTopMap;
|
|
536
|
-
exports.buildOverlayBookings = buildOverlayBookings;
|
|
537
|
-
exports.clusterDayCourtOverlaysByOverlap = clusterDayCourtOverlaysByOverlap;
|
|
538
|
-
exports.courtDaySummary = courtDaySummary;
|
|
539
|
-
exports.currentTimeLabel = currentTimeLabel;
|
|
540
|
-
exports.dayAndHourToDayjs = dayAndHourToDayjs;
|
|
541
|
-
exports.dayOccupancy = dayOccupancy;
|
|
542
|
-
exports.dayOverlayHiddenKey = dayOverlayHiddenKey;
|
|
543
|
-
exports.dayOverlayLaneMetrics = dayOverlayLaneMetrics;
|
|
544
|
-
exports.effectiveDayOverlayDisplayLaneCount = effectiveDayOverlayDisplayLaneCount;
|
|
545
|
-
exports.fmtDate = fmtDate;
|
|
546
|
-
exports.formatDateLoose = formatDateLoose;
|
|
547
|
-
exports.formatHourLabel = formatHourLabel;
|
|
548
|
-
exports.getBookingDetailData = getBookingDetailData;
|
|
549
|
-
exports.getDisplayStatusTag = getDisplayStatusTag;
|
|
550
|
-
exports.getLateMinutes = getLateMinutes;
|
|
551
|
-
exports.getViewNowReference = getViewNowReference;
|
|
552
|
-
exports.groupSelectedSlots = groupSelectedSlots;
|
|
553
|
-
exports.isFreeSelectionContiguousSameResource = isFreeSelectionContiguousSameResource;
|
|
554
|
-
exports.isHourInTimelineSlots = isHourInTimelineSlots;
|
|
555
|
-
exports.maxConcurrentBookingsOnCourt = maxConcurrentBookingsOnCourt;
|
|
556
|
-
exports.monthCalendarDays = monthCalendarDays;
|
|
557
|
-
exports.monthGrid = monthGrid;
|
|
558
|
-
exports.parseDate = parseDate;
|
|
559
|
-
exports.rangeDays = rangeDays;
|
|
560
|
-
exports.sameSlot = sameSlot;
|
|
561
|
-
exports.startOfWeek = startOfWeek;
|
|
562
|
-
exports.statusTagMetaParts = statusTagMetaParts;
|
package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarSelectionUtils.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//#region src/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarSelectionUtils.ts
|
|
2
|
-
/**
|
|
3
|
-
* 资源视图选区是否「同一 court + 连续多天」:
|
|
4
|
-
* 仅当满足时才允许 Block / Create Booking(与日视图「同 court 连续多小时」语义对应)。
|
|
5
|
-
* 单天选中(n === 1)也算连续。
|
|
6
|
-
*/
|
|
7
|
-
function isResourceSelectionContiguousSameCourt(selections) {
|
|
8
|
-
if (selections.length === 0) return false;
|
|
9
|
-
const courtId = selections[0].courtId;
|
|
10
|
-
if (selections.some((s) => s.courtId !== courtId)) return false;
|
|
11
|
-
if (selections.length === 1) return true;
|
|
12
|
-
const dates = [...selections].map((s) => s.dateKey).sort().map((s) => new Date(s).getTime());
|
|
13
|
-
for (let i = 1; i < dates.length; i += 1) if (Math.round((dates[i] - dates[i - 1]) / 864e5) !== 1) return false;
|
|
14
|
-
return true;
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
exports.isResourceSelectionContiguousSameCourt = isResourceSelectionContiguousSameCourt;
|
package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
|
|
2
|
-
const require_calendarI18n = require("../calendarI18n.js");
|
|
3
|
-
const require_bookingCalendarDateUtils = require("../utils/bookingCalendarDateUtils.js");
|
|
4
|
-
let react = require("react");
|
|
5
|
-
react = require_runtime.__toESM(react);
|
|
6
|
-
//#region src/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.tsx
|
|
7
|
-
/** 日视图底部:多选空闲 / 锁台后的固定操作条 */
|
|
8
|
-
function BookingCalendarDaySelectionBar({ slotStepHours, selectedFreeSlots, resourceSelectionSummary, deselectAll, onOpenBlockPanel, createBookingFromSelection }) {
|
|
9
|
-
if (!(resourceSelectionSummary != null ? resourceSelectionSummary.freePickCount > 0 : selectedFreeSlots.length > 0)) return null;
|
|
10
|
-
/**
|
|
11
|
-
* 是否允许「Block」与「Create booking」操作。
|
|
12
|
-
* - 资源视图:仅当同一 court 连续多天 → `freeAllowsBlockPanel = true`
|
|
13
|
-
* - 日视图:仅当同一 court 连续小时槽 → `isFreeSelectionContiguousSameResource = true`
|
|
14
|
-
*
|
|
15
|
-
* Create booking 与 Block 共用判定:散乱选择不允许任何创建动作。
|
|
16
|
-
*/
|
|
17
|
-
const allowCreateOrBlock = resourceSelectionSummary != null ? resourceSelectionSummary.freeAllowsBlockPanel : require_bookingCalendarDateUtils.isFreeSelectionContiguousSameResource(selectedFreeSlots, slotStepHours);
|
|
18
|
-
return /* @__PURE__ */ react.default.createElement("div", { className: "fixed bottom-6 left-1/2 z-50 -translate-x-1/2" }, /* @__PURE__ */ react.default.createElement("div", { className: "flex max-w-[92vw] flex-wrap items-center justify-center gap-3 rounded-2xl border border-white/10 bg-black/55 px-4 py-3 shadow-2xl shadow-black/40 backdrop-blur-xl" }, /* @__PURE__ */ react.default.createElement("button", {
|
|
19
|
-
type: "button",
|
|
20
|
-
onClick: deselectAll,
|
|
21
|
-
className: "rounded-xl bg-red-500/85 px-4 py-2 text-sm font-semibold text-white"
|
|
22
|
-
}, require_calendarI18n.tCal("pisell2.recordBoard.calendar.day.deselectAll")), allowCreateOrBlock && /* @__PURE__ */ react.default.createElement("button", {
|
|
23
|
-
type: "button",
|
|
24
|
-
onClick: onOpenBlockPanel,
|
|
25
|
-
className: "rounded-xl bg-zinc-500/90 px-5 py-3 text-sm font-semibold text-white"
|
|
26
|
-
}, require_calendarI18n.tCal("pisell2.recordBoard.calendar.day.block")), allowCreateOrBlock && /* @__PURE__ */ react.default.createElement("button", {
|
|
27
|
-
type: "button",
|
|
28
|
-
onClick: createBookingFromSelection,
|
|
29
|
-
className: "rounded-xl bg-violet-600 px-6 py-3 text-sm font-semibold text-white"
|
|
30
|
-
}, require_calendarI18n.tCal("pisell2.recordBoard.calendar.day.createBooking"))));
|
|
31
|
-
}
|
|
32
|
-
//#endregion
|
|
33
|
-
exports.BookingCalendarDaySelectionBar = BookingCalendarDaySelectionBar;
|