@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
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RecordBoard 内嵌 BookingCalendar 的壳层与暗/亮主题 token(自原内联 <style> 迁出,供单处维护)。
|
|
3
|
-
* 与根节点 `theme-root` + `theme-light` / `theme-dark` 类名配合使用。
|
|
4
|
-
*/
|
|
5
|
-
.pisell-scroll-hidden {
|
|
6
|
-
scrollbar-width: none;
|
|
7
|
-
-ms-overflow-style: none;
|
|
8
|
-
}
|
|
9
|
-
.pisell-scroll-hidden::-webkit-scrollbar {
|
|
10
|
-
width: 0;
|
|
11
|
-
height: 0;
|
|
12
|
-
display: none;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.pisell-rb-cal-spin-wrap {
|
|
16
|
-
flex: 1 1 0%;
|
|
17
|
-
min-height: 0;
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
}
|
|
21
|
-
.pisell-rb-cal-spin-wrap .pisell-lowcode-spin-container,
|
|
22
|
-
.pisell-rb-cal-spin-wrap .ant-spin-container {
|
|
23
|
-
flex: 1 1 0%;
|
|
24
|
-
min-height: 0;
|
|
25
|
-
display: flex;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.theme-root {
|
|
30
|
-
--bg-app: #060913;
|
|
31
|
-
--bg-shell: #080d1b;
|
|
32
|
-
--bg-header: #10172a;
|
|
33
|
-
--bg-toolbar: #0d1325;
|
|
34
|
-
--bg-panel: #0d1325;
|
|
35
|
-
--bg-panel-soft: #10172a;
|
|
36
|
-
--bg-panel-alt: #10172a;
|
|
37
|
-
--bg-elevated: #09101d;
|
|
38
|
-
--bg-grid-cell: #0a0f1d;
|
|
39
|
-
--bg-grid-muted: #080d1b;
|
|
40
|
-
--bg-sticky: #09101d;
|
|
41
|
-
--bg-input: #0d1325;
|
|
42
|
-
--border-soft: rgba(255, 255, 255, 0.1);
|
|
43
|
-
--border-strong: rgba(255, 255, 255, 0.16);
|
|
44
|
-
--text-main: #ffffff;
|
|
45
|
-
--text-soft: rgba(255, 255, 255, 0.72);
|
|
46
|
-
--text-muted: rgba(255, 255, 255, 0.45);
|
|
47
|
-
--text-faint: rgba(255, 255, 255, 0.15);
|
|
48
|
-
--shadow-heavy: 0 24px 80px rgba(0, 0, 0, 0.42);
|
|
49
|
-
--brand-primary: #7f56da;
|
|
50
|
-
--brand-deep: #6941c6;
|
|
51
|
-
--brand-light: #b692f6;
|
|
52
|
-
--brand-surface: rgba(127, 86, 218, 0.12);
|
|
53
|
-
--success-text: #32d583;
|
|
54
|
-
--success-surface: rgba(18, 183, 106, 0.1);
|
|
55
|
-
--success-border: rgba(50, 213, 131, 0.22);
|
|
56
|
-
--warning-text: #fdb022;
|
|
57
|
-
--warning-surface: rgba(247, 144, 9, 0.1);
|
|
58
|
-
--warning-border: rgba(253, 176, 34, 0.22);
|
|
59
|
-
--danger-text: #f97066;
|
|
60
|
-
--danger-surface: rgba(240, 68, 56, 0.1);
|
|
61
|
-
--danger-border: rgba(240, 68, 56, 0.22);
|
|
62
|
-
--info-text: #53b1fd;
|
|
63
|
-
--info-surface: rgba(46, 144, 250, 0.1);
|
|
64
|
-
--info-border: rgba(83, 177, 253, 0.24);
|
|
65
|
-
--pickup-text: #f670c7;
|
|
66
|
-
--pickup-surface: rgba(238, 70, 188, 0.1);
|
|
67
|
-
--pickup-border: rgba(246, 112, 199, 0.24);
|
|
68
|
-
--disabled-value: rgba(255, 255, 255, 0.15);
|
|
69
|
-
--side-brand-bg: #2b165c;
|
|
70
|
-
--side-brand-border: rgba(182, 146, 246, 0.26);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.theme-root.theme-light {
|
|
74
|
-
--bg-app: #e9eef5;
|
|
75
|
-
--bg-shell: #f8fafc;
|
|
76
|
-
--bg-header: #e2e8f4;
|
|
77
|
-
--bg-toolbar: #f8fafc;
|
|
78
|
-
--bg-panel: #ffffff;
|
|
79
|
-
--bg-panel-soft: #ffffff;
|
|
80
|
-
--bg-panel-alt: #f2f5f9;
|
|
81
|
-
--bg-elevated: #eef3f8;
|
|
82
|
-
--bg-grid-cell: #ffffff;
|
|
83
|
-
--bg-grid-muted: #f8fafc;
|
|
84
|
-
--bg-sticky: #eef3f8;
|
|
85
|
-
--bg-input: #f2f5f9;
|
|
86
|
-
--border-soft: #cbd5e1;
|
|
87
|
-
--border-strong: #b8c4d3;
|
|
88
|
-
--text-main: #101828;
|
|
89
|
-
--text-soft: #344054;
|
|
90
|
-
--text-muted: #667085;
|
|
91
|
-
--text-faint: #98a2b3;
|
|
92
|
-
--shadow-heavy: 0 18px 48px rgba(89, 61, 132, 0.08);
|
|
93
|
-
--brand-primary: #7f56da;
|
|
94
|
-
--brand-deep: #6941c6;
|
|
95
|
-
--brand-light: #b692f6;
|
|
96
|
-
--brand-surface: #f4ebff;
|
|
97
|
-
--success-text: #067647;
|
|
98
|
-
--success-surface: #d1fadf;
|
|
99
|
-
--success-border: #a6f4c5;
|
|
100
|
-
--warning-text: #b54708;
|
|
101
|
-
--warning-surface: #fef0c7;
|
|
102
|
-
--warning-border: #fedf89;
|
|
103
|
-
--danger-text: #b42318;
|
|
104
|
-
--danger-surface: #fee4e2;
|
|
105
|
-
--danger-border: #f04438;
|
|
106
|
-
--info-text: #175cd3;
|
|
107
|
-
--info-surface: #d1e9ff;
|
|
108
|
-
--info-border: #2e90fa;
|
|
109
|
-
--pickup-text: #c11574;
|
|
110
|
-
--pickup-surface: #fcceee;
|
|
111
|
-
--pickup-border: #ee46bc;
|
|
112
|
-
--disabled-value: #98a2b3;
|
|
113
|
-
--side-brand-bg: #6941c6;
|
|
114
|
-
--side-brand-border: rgba(127, 86, 218, 0.32);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.theme-app {
|
|
118
|
-
background: var(--bg-app);
|
|
119
|
-
color: var(--text-main);
|
|
120
|
-
}
|
|
121
|
-
.theme-shell {
|
|
122
|
-
background: var(--bg-shell);
|
|
123
|
-
color: var(--text-main);
|
|
124
|
-
border-color: var(--border-soft);
|
|
125
|
-
box-shadow: var(--shadow-heavy);
|
|
126
|
-
}
|
|
127
|
-
.theme-header {
|
|
128
|
-
background: var(--bg-header);
|
|
129
|
-
border-color: var(--border-soft);
|
|
130
|
-
}
|
|
131
|
-
.theme-toolbar {
|
|
132
|
-
background: var(--bg-toolbar);
|
|
133
|
-
border-color: var(--border-soft);
|
|
134
|
-
}
|
|
135
|
-
.theme-panel {
|
|
136
|
-
background: var(--bg-panel);
|
|
137
|
-
border-color: var(--border-soft);
|
|
138
|
-
}
|
|
139
|
-
.theme-panel-soft {
|
|
140
|
-
background: var(--bg-panel-soft);
|
|
141
|
-
border-color: var(--border-soft);
|
|
142
|
-
}
|
|
143
|
-
.theme-panel-alt {
|
|
144
|
-
background: var(--bg-panel-alt);
|
|
145
|
-
border-color: var(--border-soft);
|
|
146
|
-
}
|
|
147
|
-
.theme-elevated {
|
|
148
|
-
background: var(--bg-elevated);
|
|
149
|
-
}
|
|
150
|
-
.theme-grid-cell {
|
|
151
|
-
background: var(--bg-grid-cell);
|
|
152
|
-
}
|
|
153
|
-
.theme-grid-muted {
|
|
154
|
-
background: var(--bg-grid-muted);
|
|
155
|
-
}
|
|
156
|
-
.theme-sticky {
|
|
157
|
-
background: var(--bg-sticky);
|
|
158
|
-
}
|
|
159
|
-
.theme-input {
|
|
160
|
-
background: var(--bg-input);
|
|
161
|
-
border-color: var(--border-strong);
|
|
162
|
-
color: var(--text-main);
|
|
163
|
-
}
|
|
164
|
-
.theme-text {
|
|
165
|
-
color: var(--text-main);
|
|
166
|
-
}
|
|
167
|
-
.theme-text-soft {
|
|
168
|
-
color: var(--text-soft);
|
|
169
|
-
}
|
|
170
|
-
.theme-text-muted {
|
|
171
|
-
color: var(--text-muted);
|
|
172
|
-
}
|
|
173
|
-
.theme-text-faint {
|
|
174
|
-
color: var(--text-faint);
|
|
175
|
-
}
|
|
176
|
-
.theme-border {
|
|
177
|
-
border-color: var(--border-soft);
|
|
178
|
-
}
|
|
179
|
-
.theme-border-strong {
|
|
180
|
-
border-color: var(--border-strong);
|
|
181
|
-
}
|
|
182
|
-
.theme-brand-surface {
|
|
183
|
-
background: var(--brand-surface);
|
|
184
|
-
}
|
|
185
|
-
.theme-brand-text {
|
|
186
|
-
color: var(--brand-deep);
|
|
187
|
-
}
|
|
188
|
-
.theme-success-chip {
|
|
189
|
-
color: var(--success-text);
|
|
190
|
-
background: var(--success-surface);
|
|
191
|
-
border-color: var(--success-border);
|
|
192
|
-
}
|
|
193
|
-
.theme-warning-chip {
|
|
194
|
-
color: var(--warning-text);
|
|
195
|
-
background: var(--warning-surface);
|
|
196
|
-
border-color: var(--warning-border);
|
|
197
|
-
}
|
|
198
|
-
.theme-danger-chip {
|
|
199
|
-
color: var(--danger-text);
|
|
200
|
-
background: var(--danger-surface);
|
|
201
|
-
border-color: var(--danger-border);
|
|
202
|
-
}
|
|
203
|
-
.theme-info-chip {
|
|
204
|
-
color: var(--info-text);
|
|
205
|
-
background: var(--info-surface);
|
|
206
|
-
border-color: var(--info-border);
|
|
207
|
-
}
|
|
208
|
-
.theme-pickup-chip {
|
|
209
|
-
color: var(--pickup-text);
|
|
210
|
-
background: var(--pickup-surface);
|
|
211
|
-
border-color: var(--pickup-border);
|
|
212
|
-
}
|
|
213
|
-
.theme-disabled-value {
|
|
214
|
-
color: var(--disabled-value);
|
|
215
|
-
}
|
|
216
|
-
.theme-light .soft-shadow {
|
|
217
|
-
box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
|
|
218
|
-
}
|
|
219
|
-
.btn-brand {
|
|
220
|
-
background: var(--brand-primary);
|
|
221
|
-
color: #fff;
|
|
222
|
-
border: 1px solid var(--brand-primary);
|
|
223
|
-
}
|
|
224
|
-
.btn-neutral {
|
|
225
|
-
background: var(--bg-input);
|
|
226
|
-
color: var(--text-main);
|
|
227
|
-
border: 1px solid var(--border-strong);
|
|
228
|
-
}
|
|
229
|
-
.btn-success {
|
|
230
|
-
background: var(--success-surface);
|
|
231
|
-
color: var(--success-text);
|
|
232
|
-
border: 1px solid var(--success-border);
|
|
233
|
-
}
|
|
234
|
-
.btn-warning {
|
|
235
|
-
background: var(--warning-surface);
|
|
236
|
-
color: var(--warning-text);
|
|
237
|
-
border: 1px solid var(--warning-border);
|
|
238
|
-
}
|
|
239
|
-
.btn-danger {
|
|
240
|
-
background: var(--danger-surface);
|
|
241
|
-
color: var(--danger-text);
|
|
242
|
-
border: 1px solid var(--danger-border);
|
|
243
|
-
}
|
|
244
|
-
.btn-info {
|
|
245
|
-
background: var(--info-surface);
|
|
246
|
-
color: var(--info-text);
|
|
247
|
-
border: 1px solid var(--info-border);
|
|
248
|
-
}
|
|
249
|
-
.surface-muted {
|
|
250
|
-
background: var(--bg-panel-alt);
|
|
251
|
-
border: 1px solid var(--border-soft);
|
|
252
|
-
}
|
|
253
|
-
.surface-card {
|
|
254
|
-
background: var(--bg-panel);
|
|
255
|
-
border: 1px solid var(--border-soft);
|
|
256
|
-
}
|
|
257
|
-
.text-disabled-token {
|
|
258
|
-
color: var(--disabled-value);
|
|
259
|
-
}
|
|
260
|
-
.btn-pill-active {
|
|
261
|
-
background: var(--brand-primary);
|
|
262
|
-
color: #fff;
|
|
263
|
-
border: 1px solid var(--brand-primary);
|
|
264
|
-
}
|
|
265
|
-
.btn-pill-neutral {
|
|
266
|
-
background: var(--bg-input);
|
|
267
|
-
color: var(--text-soft);
|
|
268
|
-
border: 1px solid var(--border-strong);
|
|
269
|
-
}
|
|
270
|
-
.surface-overlay {
|
|
271
|
-
background: color-mix(in srgb, var(--bg-panel) 88%, transparent);
|
|
272
|
-
border: 1px solid var(--border-soft);
|
|
273
|
-
}
|
|
274
|
-
.panel-dark-adapt {
|
|
275
|
-
background: var(--bg-panel);
|
|
276
|
-
border: 1px solid var(--border-soft);
|
|
277
|
-
color: var(--text-main);
|
|
278
|
-
}
|
|
279
|
-
.panel-soft-adapt {
|
|
280
|
-
background: var(--bg-panel-alt);
|
|
281
|
-
border: 1px solid var(--border-soft);
|
|
282
|
-
color: var(--text-main);
|
|
283
|
-
}
|
|
284
|
-
.input-adapt {
|
|
285
|
-
background: var(--bg-input);
|
|
286
|
-
border: 1px solid var(--border-strong);
|
|
287
|
-
color: var(--text-main);
|
|
288
|
-
}
|
|
289
|
-
.caption-adapt {
|
|
290
|
-
color: var(--text-muted);
|
|
291
|
-
}
|
|
292
|
-
.surface-brand-side {
|
|
293
|
-
background: var(--side-brand-bg);
|
|
294
|
-
color: #fff;
|
|
295
|
-
border-color: var(--side-brand-border);
|
|
296
|
-
}
|
|
297
|
-
.surface-brand-side-muted {
|
|
298
|
-
background: color-mix(in srgb, var(--side-brand-bg) 88%, white 12%);
|
|
299
|
-
color: #fff;
|
|
300
|
-
border-color: var(--side-brand-border);
|
|
301
|
-
}
|
|
302
|
-
.badge-brand-dot {
|
|
303
|
-
background: var(--brand-primary);
|
|
304
|
-
color: #fff;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
/** 周/日视图左侧资源名与分组名:单行省略(BookingCalendarWeekView / BookingCalendarGroupRowHeader) */
|
|
308
|
-
.pisell-rb-cal-week-resource-name {
|
|
309
|
-
overflow: hidden;
|
|
310
|
-
text-overflow: ellipsis;
|
|
311
|
-
white-space: nowrap;
|
|
312
|
-
min-width: 0;
|
|
313
|
-
}
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
|
|
2
|
-
import { tCal } from "./calendarI18n.js";
|
|
3
|
-
import { formatDateLoose, formatHourLabel, getDisplayStatusTag, getLateMinutes, statusTagMetaParts } from "./utils/bookingCalendarDateUtils.js";
|
|
4
|
-
import { getBookingStateClasses } from "./utils/BookingCalendarStyle.js";
|
|
5
|
-
import React, { useEffect, useRef } from "react";
|
|
6
|
-
import { Tooltip } from "antd";
|
|
7
|
-
//#region src/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.tsx
|
|
8
|
-
/** UI 层:状态徽标文案走 i18n(utils 侧为 {@link statusTagMetaParts}) */
|
|
9
|
-
function statusTagMeta(tag) {
|
|
10
|
-
const p = statusTagMetaParts(tag);
|
|
11
|
-
return p ? {
|
|
12
|
-
label: tCal(p.labelI18nKey),
|
|
13
|
-
className: p.className
|
|
14
|
-
} : null;
|
|
15
|
-
}
|
|
16
|
-
/** 锁台卡片副标题:操作人、锁台时间等拼接一行 */
|
|
17
|
-
function getBlockMetaLine(item) {
|
|
18
|
-
if (item.kind !== "block") return "";
|
|
19
|
-
const bits = [];
|
|
20
|
-
if (item.blockBy) bits.push(tCal("pisell2.recordBoard.calendar.card.blockBy", { name: item.blockBy }));
|
|
21
|
-
if (item.blockedAt) bits.push(formatDateLoose(item.blockedAt));
|
|
22
|
-
return bits.join(" · ");
|
|
23
|
-
}
|
|
24
|
-
function getRemainingToneClass(ratio, isLight = false) {
|
|
25
|
-
if (ratio <= .2) return isLight ? "text-red-600" : "text-red-300";
|
|
26
|
-
if (ratio <= .4) return isLight ? "text-amber-600" : "text-amber-300";
|
|
27
|
-
return isLight ? "theme-text-muted" : "text-zinc-400";
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @param options.flattenWhenAllGroupsCollapsed
|
|
31
|
-
* 若为 `true`:全部分组折叠时仅有 group 头、无 court 行,会退化为平铺 court(易与「全部展开」混淆)。
|
|
32
|
-
* 日/周/月日历统一为默认 `false`,保留分组头行与折叠态(与底部「全部关闭」预期一致)。
|
|
33
|
-
*
|
|
34
|
-
* 若全部资源只属于**一个**分组(含仅 VIP、仅 Standard、或仅一种自定义 type),日/周视图不展示分组头行,
|
|
35
|
-
* 直接平铺资源行(单组折叠时也同样平铺资源,避免只剩一条分组栏)。
|
|
36
|
-
*/
|
|
37
|
-
function buildGroupedCourtRows(courts, collapsedGroups = {}, options = {}) {
|
|
38
|
-
const { flattenWhenAllGroupsCollapsed = false } = options;
|
|
39
|
-
const predefined = ["VIP", "Standard"];
|
|
40
|
-
const rows = [];
|
|
41
|
-
const consumedIds = /* @__PURE__ */ new Set();
|
|
42
|
-
predefined.forEach((group) => {
|
|
43
|
-
const items = courts.filter((court) => court.type === group);
|
|
44
|
-
if (items.length === 0) return;
|
|
45
|
-
items.forEach((c) => consumedIds.add(c.id));
|
|
46
|
-
rows.push({
|
|
47
|
-
kind: "group",
|
|
48
|
-
id: `group-${group}`,
|
|
49
|
-
label: group,
|
|
50
|
-
count: items.length,
|
|
51
|
-
collapsed: !!collapsedGroups[group]
|
|
52
|
-
});
|
|
53
|
-
if (!collapsedGroups[group]) items.forEach((court) => rows.push(_objectSpread2(_objectSpread2({ kind: "court" }, court), {}, { group })));
|
|
54
|
-
});
|
|
55
|
-
/** 低代码接入:桌位 type 多为 Resource / 自定义 groupType,不能只剩 VIP/Standard 两行否则日周视图为空 */
|
|
56
|
-
const remainder = courts.filter((c) => !consumedIds.has(c.id));
|
|
57
|
-
const byType = {};
|
|
58
|
-
remainder.forEach((court) => {
|
|
59
|
-
const label = court.type && String(court.type).trim() !== "" ? String(court.type) : tCal("pisell2.recordBoard.calendar.common.resourceFallback");
|
|
60
|
-
if (!byType[label]) byType[label] = [];
|
|
61
|
-
byType[label].push(court);
|
|
62
|
-
});
|
|
63
|
-
Object.keys(byType).forEach((label) => {
|
|
64
|
-
const items = byType[label];
|
|
65
|
-
if (!items.length) return;
|
|
66
|
-
const idSafe = String(label).replace(/\s+/g, "-");
|
|
67
|
-
rows.push({
|
|
68
|
-
kind: "group",
|
|
69
|
-
id: `group-${idSafe}`,
|
|
70
|
-
label,
|
|
71
|
-
count: items.length,
|
|
72
|
-
collapsed: !!collapsedGroups[label]
|
|
73
|
-
});
|
|
74
|
-
if (!collapsedGroups[label]) items.forEach((court) => rows.push(_objectSpread2(_objectSpread2({ kind: "court" }, court), {}, { group: label })));
|
|
75
|
-
});
|
|
76
|
-
/** 仅存在一个资源分组:日/周不展示分组头,直接平铺 court(与同组折叠态无关,避免只显示一行分组栏) */
|
|
77
|
-
if (rows.filter((r) => r.kind === "group").length === 1 && courts.length > 0) {
|
|
78
|
-
const fallbackLabel = tCal("pisell2.recordBoard.calendar.common.resourceFallback");
|
|
79
|
-
return courts.map((c) => _objectSpread2(_objectSpread2({ kind: "court" }, c), {}, { group: c.type && String(c.type).trim() !== "" ? String(c.type) : fallbackLabel }));
|
|
80
|
-
}
|
|
81
|
-
const courtRowsOnly = rows.filter((r) => r.kind === "court");
|
|
82
|
-
/** 可选:全部分组折叠且仍须展示 court 行时再平铺(日历默认不走此分支) */
|
|
83
|
-
if (flattenWhenAllGroupsCollapsed && courtRowsOnly.length === 0 && courts.length > 0) return courts.map((c) => ({
|
|
84
|
-
kind: "court",
|
|
85
|
-
id: c.id,
|
|
86
|
-
name: c.name,
|
|
87
|
-
type: c.type,
|
|
88
|
-
group: c.type
|
|
89
|
-
}));
|
|
90
|
-
return rows;
|
|
91
|
-
}
|
|
92
|
-
/** 日视图 overlay 内单条预约/锁台:窄宽自适应与 Tooltip */
|
|
93
|
-
function BookingCard({ booking, dayKey, onOpenDetail, onDragStart, onJumpNext, overlayWidthPx }) {
|
|
94
|
-
var _item$name;
|
|
95
|
-
/** HTML5 拖拽结束后浏览器常对源元素追加一次 click,避免误开详情 */
|
|
96
|
-
const suppressDetailClickAfterDragRef = useRef(false);
|
|
97
|
-
const suppressDetailClickTimerRef = useRef(null);
|
|
98
|
-
useEffect(() => {
|
|
99
|
-
return () => {
|
|
100
|
-
if (suppressDetailClickTimerRef.current != null) window.clearTimeout(suppressDetailClickTimerRef.current);
|
|
101
|
-
};
|
|
102
|
-
}, []);
|
|
103
|
-
const armSuppressDetailClickAfterDrag = () => {
|
|
104
|
-
suppressDetailClickAfterDragRef.current = true;
|
|
105
|
-
if (suppressDetailClickTimerRef.current != null) window.clearTimeout(suppressDetailClickTimerRef.current);
|
|
106
|
-
suppressDetailClickTimerRef.current = window.setTimeout(() => {
|
|
107
|
-
suppressDetailClickAfterDragRef.current = false;
|
|
108
|
-
suppressDetailClickTimerRef.current = null;
|
|
109
|
-
}, 500);
|
|
110
|
-
};
|
|
111
|
-
const { item, span, start, continuesNext } = booking;
|
|
112
|
-
const displayTag = getDisplayStatusTag(item, dayKey);
|
|
113
|
-
const lateMinutes = getLateMinutes(item, dayKey);
|
|
114
|
-
const stateClass = getBookingStateClasses(item, dayKey);
|
|
115
|
-
const w = overlayWidthPx != null && Number.isFinite(overlayWidthPx) ? overlayWidthPx : Number.POSITIVE_INFINITY;
|
|
116
|
-
const narrow = w < 88;
|
|
117
|
-
const micro = w < 32;
|
|
118
|
-
const microMark = Array.from(String((_item$name = item.name) !== null && _item$name !== void 0 ? _item$name : "").trim())[0] || "·";
|
|
119
|
-
const tooltipTitle = /* @__PURE__ */ React.createElement("div", { className: "max-w-[260px] space-y-1 text-left" }, /* @__PURE__ */ React.createElement("div", { className: "text-sm font-semibold" }, item.name), item.kind === "block" && item.note && /* @__PURE__ */ React.createElement("div", { className: "text-xs opacity-90" }, item.note), /* @__PURE__ */ React.createElement("div", { className: "text-xs tabular-nums opacity-90" }, formatHourLabel(start), " - ", formatHourLabel(start + span)), item.kind === "block" && getBlockMetaLine(item) && /* @__PURE__ */ React.createElement("div", { className: "text-[11px] opacity-80" }, getBlockMetaLine(item)), continuesNext && /* @__PURE__ */ React.createElement("div", { className: "text-[11px] text-violet-200" }, tCal("pisell2.recordBoard.calendar.card.continuesNext")), item.kind !== "block" && displayTag && statusTagMeta(displayTag) && /* @__PURE__ */ React.createElement("div", { className: "text-[11px] opacity-90" }, statusTagMeta(displayTag).label, lateMinutes && displayTag === "late" ? ` · ${tCal("pisell2.recordBoard.calendar.card.lateMinutesDetail", { n: lateMinutes })}` : ""));
|
|
120
|
-
const wrapNarrow = (node) => narrow ? /* @__PURE__ */ React.createElement(Tooltip, {
|
|
121
|
-
title: tooltipTitle,
|
|
122
|
-
placement: "top",
|
|
123
|
-
mouseEnterDelay: .12,
|
|
124
|
-
destroyTooltipOnHide: true
|
|
125
|
-
}, node) : node;
|
|
126
|
-
if (item.kind === "block") {
|
|
127
|
-
const blockWide = /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: "truncate text-sm font-medium" }, item.name), item.note && /* @__PURE__ */ React.createElement("div", { className: "mt-1 truncate text-xs text-zinc-200/90" }, item.note), getBlockMetaLine(item) && /* @__PURE__ */ React.createElement("div", { className: "mt-1 truncate text-[10px] text-zinc-300/80" }, getBlockMetaLine(item)));
|
|
128
|
-
const blockCompact = micro ? /* @__PURE__ */ React.createElement("span", { className: "flex h-full w-full items-center justify-center text-[11px] font-semibold leading-none" }, microMark) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: "truncate text-[11px] font-medium leading-tight" }, item.name), getBlockMetaLine(item) && /* @__PURE__ */ React.createElement("div", { className: "mt-0.5 truncate text-[10px] opacity-80" }, getBlockMetaLine(item)));
|
|
129
|
-
const blockPad = micro ? "px-0.5 py-0.5 flex items-center justify-center" : narrow ? "px-2 py-2" : "px-3 py-3 text-left";
|
|
130
|
-
return wrapNarrow(/* @__PURE__ */ React.createElement("button", {
|
|
131
|
-
type: "button",
|
|
132
|
-
"aria-label": narrow ? `${item.name}, ${formatHourLabel(start)} - ${formatHourLabel(start + span)}` : void 0,
|
|
133
|
-
onClick: (e) => {
|
|
134
|
-
e.stopPropagation();
|
|
135
|
-
onOpenDetail(item);
|
|
136
|
-
},
|
|
137
|
-
className: `absolute inset-x-0 inset-y-0 rounded-2xl overflow-hidden ${blockPad} ${narrow && !micro ? "text-left" : ""} ${stateClass}`
|
|
138
|
-
}, narrow ? blockCompact : blockWide));
|
|
139
|
-
}
|
|
140
|
-
/** 宽卡片:纵向紧密排列,去掉 flex-1 + mt-auto,避免单 lane 时在标题与徽标之间留出「假第二行」空白 */
|
|
141
|
-
const bookingWide = /* @__PURE__ */ React.createElement("div", { className: "flex min-h-0 min-w-0 w-full flex-col gap-1 overflow-hidden text-left" }, /* @__PURE__ */ React.createElement("div", { className: "truncate text-sm font-medium leading-tight" }, item.name), /* @__PURE__ */ React.createElement("div", { className: "truncate text-xs opacity-90 tabular-nums" }, formatHourLabel(start), " - ", formatHourLabel(start + span)), continuesNext && /* @__PURE__ */ React.createElement("span", {
|
|
142
|
-
role: "button",
|
|
143
|
-
tabIndex: 0,
|
|
144
|
-
onClick: (e) => {
|
|
145
|
-
e.stopPropagation();
|
|
146
|
-
onJumpNext();
|
|
147
|
-
},
|
|
148
|
-
onKeyDown: (e) => {
|
|
149
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
150
|
-
e.preventDefault();
|
|
151
|
-
e.stopPropagation();
|
|
152
|
-
onJumpNext();
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
className: "inline-flex max-w-full cursor-pointer truncate rounded-lg bg-white/10 px-2 py-1 text-left text-[10px] leading-tight text-violet-100 sm:text-[11px]"
|
|
156
|
-
}, tCal("pisell2.recordBoard.calendar.card.continuesNext")), (displayTag || lateMinutes) && /* @__PURE__ */ React.createElement("div", { className: "flex shrink-0 flex-wrap items-center justify-end gap-1" }, lateMinutes && displayTag === "late" && /* @__PURE__ */ React.createElement("span", { className: "rounded-md bg-black/25 px-1.5 py-0.5 text-[10px] font-semibold text-white/90 backdrop-blur-[2px] opacity-80 sm:px-2" }, tCal("pisell2.recordBoard.calendar.card.lateMinutesBadge", { n: lateMinutes })), displayTag && statusTagMeta(displayTag) && /* @__PURE__ */ React.createElement("span", { className: `rounded-lg px-1.5 py-0.5 text-[10px] font-semibold backdrop-blur-[2px] sm:px-2 ${statusTagMeta(displayTag).className} ${lateMinutes ? "opacity-80" : ""}` }, statusTagMeta(displayTag).label)));
|
|
157
|
-
const bookingCompact = micro ? /* @__PURE__ */ React.createElement("span", { className: "flex h-full w-full items-center justify-center text-[11px] font-semibold leading-none" }, microMark) : /* @__PURE__ */ React.createElement("div", { className: "flex min-h-0 min-w-0 flex-col justify-start overflow-hidden" }, /* @__PURE__ */ React.createElement("div", { className: "truncate text-[11px] font-medium leading-tight tabular-nums" }, item.name, " · ", formatHourLabel(start), "–", formatHourLabel(start + span)));
|
|
158
|
-
const bookingPad = micro ? "px-0.5 py-0.5" : narrow ? "px-1.5 py-1.5" : "px-2 py-2 sm:px-4 sm:py-3";
|
|
159
|
-
const bookingFlexMain = micro ? "flex items-center justify-center" : "flex min-h-0 flex-col justify-start";
|
|
160
|
-
const bookingAlign = !narrow ? "text-left" : micro ? "" : "justify-start";
|
|
161
|
-
return wrapNarrow(/* @__PURE__ */ React.createElement("button", {
|
|
162
|
-
type: "button",
|
|
163
|
-
draggable: true,
|
|
164
|
-
"aria-label": narrow ? `${item.name}, ${formatHourLabel(start)} - ${formatHourLabel(start + span)}` : void 0,
|
|
165
|
-
onDragStart: (e) => {
|
|
166
|
-
e.stopPropagation();
|
|
167
|
-
onDragStart(item);
|
|
168
|
-
},
|
|
169
|
-
onDragEnd: (e) => {
|
|
170
|
-
e.stopPropagation();
|
|
171
|
-
armSuppressDetailClickAfterDrag();
|
|
172
|
-
},
|
|
173
|
-
onClick: (e) => {
|
|
174
|
-
if (suppressDetailClickAfterDragRef.current) {
|
|
175
|
-
suppressDetailClickAfterDragRef.current = false;
|
|
176
|
-
if (suppressDetailClickTimerRef.current != null) {
|
|
177
|
-
window.clearTimeout(suppressDetailClickTimerRef.current);
|
|
178
|
-
suppressDetailClickTimerRef.current = null;
|
|
179
|
-
}
|
|
180
|
-
e.preventDefault();
|
|
181
|
-
e.stopPropagation();
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
e.stopPropagation();
|
|
185
|
-
onOpenDetail(item);
|
|
186
|
-
},
|
|
187
|
-
className: `absolute inset-x-0 inset-y-0 rounded-2xl overflow-hidden ${bookingFlexMain} ${bookingAlign} ${bookingPad} ${stateClass}`
|
|
188
|
-
}, narrow ? bookingCompact : bookingWide));
|
|
189
|
-
}
|
|
190
|
-
//#endregion
|
|
191
|
-
export { BookingCard, buildGroupedCourtRows, getBlockMetaLine, getRemainingToneClass, statusTagMeta };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { getText } from "../../../../locales/index.js";
|
|
2
|
-
//#region src/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.ts
|
|
3
|
-
/** 日历视图文案:占位符 `{name}`、`{date}` 等由调用方替换 */
|
|
4
|
-
function tCal(id, vars) {
|
|
5
|
-
const raw = getText(id);
|
|
6
|
-
if (typeof raw === "function") return id;
|
|
7
|
-
let s = String(raw !== null && raw !== void 0 ? raw : "");
|
|
8
|
-
if (vars) for (const [k, v] of Object.entries(vars)) s = s.split(`{${k}}`).join(String(v));
|
|
9
|
-
return s;
|
|
10
|
-
}
|
|
11
|
-
/** 月/周表头:周一为 0(与 rangeDays / startOfWeek 一致) */
|
|
12
|
-
const CALENDAR_WEEKDAY_IDS = [
|
|
13
|
-
"pisell2.recordBoard.calendar.weekday.mon",
|
|
14
|
-
"pisell2.recordBoard.calendar.weekday.tue",
|
|
15
|
-
"pisell2.recordBoard.calendar.weekday.wed",
|
|
16
|
-
"pisell2.recordBoard.calendar.weekday.thu",
|
|
17
|
-
"pisell2.recordBoard.calendar.weekday.fri",
|
|
18
|
-
"pisell2.recordBoard.calendar.weekday.sat",
|
|
19
|
-
"pisell2.recordBoard.calendar.weekday.sun"
|
|
20
|
-
];
|
|
21
|
-
//#endregion
|
|
22
|
-
export { CALENDAR_WEEKDAY_IDS, tCal };
|
package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
//#region src/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.ts
|
|
2
|
-
/** 未传 timelineRange 时默认营业日界钟 */
|
|
3
|
-
const DEFAULT_CALENDAR_TIMELINE = {
|
|
4
|
-
start: "02:00",
|
|
5
|
-
end: "02:00"
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* 日/周视图空档虚线框:在父级为 column flex 且占满格高时 `flex-1 min-h-0` 纵向铺满剩余区域。
|
|
9
|
-
*/
|
|
10
|
-
const CALENDAR_EMPTY_DASHED_SLOT_CLASSNAME = "flex min-h-0 flex-1 w-full flex-col items-center justify-center rounded-lg border border-dashed px-2 py-1 text-xs";
|
|
11
|
-
/**
|
|
12
|
-
* 日视图:某 court 行在「有预约 overlay」时的总高度(px),随并行展示条数 `displayLaneCount` 变高而变高(非固定常数)。
|
|
13
|
-
* `displayLaneCount` 由 `effectiveDayOverlayDisplayLaneCount(最大并行数)` 得到,与 3+N 截断规则一致。
|
|
14
|
-
*/
|
|
15
|
-
function dayCourtOverlayRowHeightPx(displayLaneCount) {
|
|
16
|
-
const n = Math.max(1, displayLaneCount);
|
|
17
|
-
return 16 + n * 64 + (n - 1) * 2;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* 资源视图:按某一格「courtDaySummary」结果估算该格所需最小高度(px)。
|
|
21
|
-
* 用于横向虚拟化仅挂载可见日期列时,仍按**全月**最大内容撑开行高,避免日程只在屏幕外列时出现行高塌陷。
|
|
22
|
-
*/
|
|
23
|
-
function estimateResourceViewCourtCellHeightPx(summary) {
|
|
24
|
-
var _summary$items$length, _summary$items;
|
|
25
|
-
const pad = 8;
|
|
26
|
-
if (summary.fullyBooked) return 28 + pad;
|
|
27
|
-
const n = (_summary$items$length = (_summary$items = summary.items) === null || _summary$items === void 0 ? void 0 : _summary$items.length) !== null && _summary$items$length !== void 0 ? _summary$items$length : 0;
|
|
28
|
-
if (n === 0) return 44;
|
|
29
|
-
const previewCount = Math.min(3, n);
|
|
30
|
-
const showMoreTile = Math.max(0, n - 3) > 0 && previewCount > 0;
|
|
31
|
-
const gap = 4;
|
|
32
|
-
let content = previewCount * 48 + (previewCount > 1 ? (previewCount - 1) * gap : 0);
|
|
33
|
-
if (showMoreTile) content += gap + 48;
|
|
34
|
-
return pad + content;
|
|
35
|
-
}
|
|
36
|
-
const MONTH_OVERFLOW_POPOVER_ITEM_H = 72;
|
|
37
|
-
const OVERFLOW_MODAL_ROW_H = 108;
|
|
38
|
-
//#endregion
|
|
39
|
-
export { CALENDAR_EMPTY_DASHED_SLOT_CLASSNAME, DEFAULT_CALENDAR_TIMELINE, MONTH_OVERFLOW_POPOVER_ITEM_H, OVERFLOW_MODAL_ROW_H, dayCourtOverlayRowHeightPx, estimateResourceViewCourtCellHeightPx };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { dayCourtOverlayRowHeightPx } from "../const/bookingCalendarConstants.js";
|
|
2
|
-
import { buildDayRowTopMap, buildOverlayBookings, clusterDayCourtOverlaysByOverlap, dayOverlayHiddenKey, effectiveDayOverlayDisplayLaneCount, maxConcurrentBookingsOnCourt } from "../utils/bookingCalendarDateUtils.js";
|
|
3
|
-
import { useMemo } from "react";
|
|
4
|
-
//#region src/components/pisellRecordBoard/shellFrame/Calendar/hooks/useBookingCalendarDayOverlayLayout.ts
|
|
5
|
-
/**
|
|
6
|
-
* 日视图:按 overlay 并行度计算行高、booking overlay 列表、+N 溢出汇总。
|
|
7
|
-
*/
|
|
8
|
-
function useBookingCalendarDayOverlayLayout(visibleCourtRows, dayKey, bookings, hourSlots, slotStepHours) {
|
|
9
|
-
return useMemo(() => {
|
|
10
|
-
const defaultHeights = visibleCourtRows.map((row) => row.kind === "group" ? 38 : 44);
|
|
11
|
-
let overlays = buildOverlayBookings(visibleCourtRows, dayKey, bookings, buildDayRowTopMap(visibleCourtRows, defaultHeights), hourSlots, defaultHeights, slotStepHours);
|
|
12
|
-
const expandedHeights = visibleCourtRows.map((row, i) => {
|
|
13
|
-
if (row.kind !== "court") return defaultHeights[i];
|
|
14
|
-
if (!overlays.some((o) => o.courtId === row.id)) return defaultHeights[i];
|
|
15
|
-
return dayCourtOverlayRowHeightPx(effectiveDayOverlayDisplayLaneCount(maxConcurrentBookingsOnCourt(overlays, row.id)));
|
|
16
|
-
});
|
|
17
|
-
const tops2 = buildDayRowTopMap(visibleCourtRows, expandedHeights);
|
|
18
|
-
overlays = buildOverlayBookings(visibleCourtRows, dayKey, bookings, tops2, hourSlots, expandedHeights, slotStepHours);
|
|
19
|
-
const courtDayDisplayLaneCount = {};
|
|
20
|
-
const hiddenDayOverlayIdSet = /* @__PURE__ */ new Set();
|
|
21
|
-
const dayOverlayOverflowPluses = [];
|
|
22
|
-
for (const row of visibleCourtRows) {
|
|
23
|
-
if (row.kind !== "court") continue;
|
|
24
|
-
const cid = row.id;
|
|
25
|
-
courtDayDisplayLaneCount[cid] = effectiveDayOverlayDisplayLaneCount(maxConcurrentBookingsOnCourt(overlays, cid));
|
|
26
|
-
const clusters = clusterDayCourtOverlaysByOverlap(overlays, cid);
|
|
27
|
-
for (const cluster of clusters) {
|
|
28
|
-
if (cluster.length <= 3) continue;
|
|
29
|
-
const sortedByLane = [...cluster].sort((a, b) => {
|
|
30
|
-
var _a$lane, _b$lane;
|
|
31
|
-
return ((_a$lane = a.lane) !== null && _a$lane !== void 0 ? _a$lane : 0) - ((_b$lane = b.lane) !== null && _b$lane !== void 0 ? _b$lane : 0) || a.start - b.start;
|
|
32
|
-
});
|
|
33
|
-
for (let i = 3; i < sortedByLane.length; i++) {
|
|
34
|
-
const o = sortedByLane[i];
|
|
35
|
-
hiddenDayOverlayIdSet.add(dayOverlayHiddenKey(o.item, dayKey, o.courtId));
|
|
36
|
-
}
|
|
37
|
-
const hidden = sortedByLane.slice(3);
|
|
38
|
-
let minS = Infinity;
|
|
39
|
-
let maxE = -Infinity;
|
|
40
|
-
for (const o of cluster) {
|
|
41
|
-
minS = Math.min(minS, o.start);
|
|
42
|
-
maxE = Math.max(maxE, o.start + o.span);
|
|
43
|
-
}
|
|
44
|
-
const anchor = hidden[0];
|
|
45
|
-
dayOverlayOverflowPluses.push({
|
|
46
|
-
key: `${cid}-${minS}-${maxE}-${dayKey}`,
|
|
47
|
-
courtId: cid,
|
|
48
|
-
rowTop: anchor.rowTop,
|
|
49
|
-
rowHeight: anchor.rowHeight,
|
|
50
|
-
start: minS,
|
|
51
|
-
span: maxE - minS,
|
|
52
|
-
plusCount: hidden.length,
|
|
53
|
-
overflowItems: hidden.map((o) => o.item)
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
dayRowHeights: expandedHeights,
|
|
59
|
-
dayRowTopMap: tops2,
|
|
60
|
-
overlayBookings: overlays,
|
|
61
|
-
courtDayDisplayLaneCount,
|
|
62
|
-
hiddenDayOverlayIdSet,
|
|
63
|
-
dayOverlayOverflowPluses
|
|
64
|
-
};
|
|
65
|
-
}, [
|
|
66
|
-
visibleCourtRows,
|
|
67
|
-
dayKey,
|
|
68
|
-
bookings,
|
|
69
|
-
hourSlots,
|
|
70
|
-
slotStepHours
|
|
71
|
-
]);
|
|
72
|
-
}
|
|
73
|
-
//#endregion
|
|
74
|
-
export { useBookingCalendarDayOverlayLayout };
|