@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/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js
DELETED
|
@@ -1,436 +0,0 @@
|
|
|
1
|
-
import { getCurrentLocale } from "../../../../utils/locale.js";
|
|
2
|
-
import { getText } from "../../../../locales/index.js";
|
|
3
|
-
import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
|
|
4
|
-
import { useRecordBoardContext } from "../../hooks/useRecordBoardContext.js";
|
|
5
|
-
import { DEFAULT_RESOURCE_WALL_STATUS_SORT_FIELD_KEYS, getVenueWallStatusToneMap, matchesResourceWallStatusSortField, parseRecordBoardToolbarSortParam, venueWallOccupiedSortRank } from "./venueWallUtils.js";
|
|
6
|
-
import { DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST } from "../../types.js";
|
|
7
|
-
import { VenueWallCard } from "./VenueWallCard.js";
|
|
8
|
-
import { ResourceWallControlPanel } from "./ResourceWallControlPanel.js";
|
|
9
|
-
import { ResourceWallViewportToolbar } from "./ResourceWallViewportToolbar.js";
|
|
10
|
-
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
11
|
-
import { Spin } from "antd";
|
|
12
|
-
import "./ResourceWallViewport.less";
|
|
13
|
-
//#region src/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.tsx
|
|
14
|
-
/** 与 {@link RecordBoardResourceWallProps.filterFieldKey} 默认一致 */
|
|
15
|
-
const DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY = "resource_wall_resource_ids";
|
|
16
|
-
/** 伪全屏偏好:刷新后若为 `1` 自动恢复 body 固定视口(与按钮状态一致) */
|
|
17
|
-
const RESOURCE_WALL_PSEUDO_FULLSCREEN_STORAGE_KEY = "pisell.recordBoard.resourceWall.pseudoFullscreen";
|
|
18
|
-
function readStoredPseudoFullscreen() {
|
|
19
|
-
try {
|
|
20
|
-
return typeof window !== "undefined" && window.localStorage.getItem(RESOURCE_WALL_PSEUDO_FULLSCREEN_STORAGE_KEY) === "1";
|
|
21
|
-
} catch (_unused) {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function persistPseudoFullscreen(on) {
|
|
26
|
-
try {
|
|
27
|
-
if (typeof window !== "undefined") window.localStorage.setItem(RESOURCE_WALL_PSEUDO_FULLSCREEN_STORAGE_KEY, on ? "1" : "0");
|
|
28
|
-
} catch (_unused2) {}
|
|
29
|
-
}
|
|
30
|
-
const FILTER_PARAMS_FIELD = "filter";
|
|
31
|
-
const LAYOUT_PRESETS = [
|
|
32
|
-
{
|
|
33
|
-
key: "1x1",
|
|
34
|
-
label: "1 × 1",
|
|
35
|
-
cols: 1,
|
|
36
|
-
rows: 1
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
key: "1x2",
|
|
40
|
-
label: "1 × 2",
|
|
41
|
-
cols: 2,
|
|
42
|
-
rows: 1
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
key: "2x3",
|
|
46
|
-
label: "2 × 3",
|
|
47
|
-
cols: 3,
|
|
48
|
-
rows: 2
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
key: "3x2",
|
|
52
|
-
label: "3 × 2",
|
|
53
|
-
cols: 2,
|
|
54
|
-
rows: 3
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
key: "3x3",
|
|
58
|
-
label: "3 × 3",
|
|
59
|
-
cols: 3,
|
|
60
|
-
rows: 3
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
key: "custom",
|
|
64
|
-
label: "",
|
|
65
|
-
cols: 3,
|
|
66
|
-
rows: 2
|
|
67
|
-
}
|
|
68
|
-
];
|
|
69
|
-
const DEFAULT_OCCUPIED = "#6f4ae6";
|
|
70
|
-
const DEFAULT_AVAILABLE = "#94a3b8";
|
|
71
|
-
/**
|
|
72
|
-
* RecordBoard 大屏资源墙主视口:`cards` 提供全量卡数据;可见列表由
|
|
73
|
-
* `searchParams.filter.values[filterFieldKey]` 中的资源 id 与 `cards` 交集决定。
|
|
74
|
-
* 若 ToolBar `searchParams.sort` 指向状态列(默认字段名 `status`),则按占用态重排展示顺序。
|
|
75
|
-
* 支持网格分页轮播、浅深外观、伪全屏与控制台(布局 / 配色 / 选中资源)。
|
|
76
|
-
*/
|
|
77
|
-
const PisellRecordBoardResourceWallView = (props) => {
|
|
78
|
-
var _props$filterFieldKey, _ctx$searchParams3, _appearanceTheme$appe, _pagedGroups$currentP;
|
|
79
|
-
const { className, style, loading, cards: cardsProp, statusToneOverrides: statusToneOverridesProp, onStatusToneOverridesChange, appearanceTheme: appearanceThemeProp, onAppearanceThemeChange, appearanceMode: appearanceModeProp, onAppearanceModeChange, resourceWallLayout: resourceWallLayoutProp, onResourceWallLayoutChange, statusSortFieldKeys: statusSortFieldKeysProp } = props;
|
|
80
|
-
const ctx = useRecordBoardContext();
|
|
81
|
-
const filterKey = (_props$filterFieldKey = props.filterFieldKey) !== null && _props$filterFieldKey !== void 0 ? _props$filterFieldKey : DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY;
|
|
82
|
-
const statusSortFieldKeys = useMemo(() => statusSortFieldKeysProp != null && statusSortFieldKeysProp.length > 0 ? statusSortFieldKeysProp : [...DEFAULT_RESOURCE_WALL_STATUS_SORT_FIELD_KEYS], [statusSortFieldKeysProp]);
|
|
83
|
-
const [localToneOverrides, setLocalToneOverrides] = useState({});
|
|
84
|
-
/** 六态标注覆盖:有受控回调则只上报;否则写本地 state(演示 / 未持久化宿主) */
|
|
85
|
-
const emitToneOverrides = useCallback((next) => {
|
|
86
|
-
onStatusToneOverridesChange === null || onStatusToneOverridesChange === void 0 || onStatusToneOverridesChange(next);
|
|
87
|
-
if (onStatusToneOverridesChange == null) setLocalToneOverrides(next);
|
|
88
|
-
}, [onStatusToneOverridesChange]);
|
|
89
|
-
const [internalAppearanceTheme, setInternalAppearanceTheme] = useState({});
|
|
90
|
-
const appearanceTheme = appearanceThemeProp !== null && appearanceThemeProp !== void 0 ? appearanceThemeProp : internalAppearanceTheme;
|
|
91
|
-
/** 占用/空闲底色与六态覆盖按浅、深槽位写入主题对象 */
|
|
92
|
-
const persistAppearanceTheme = useCallback((next) => {
|
|
93
|
-
onAppearanceThemeChange === null || onAppearanceThemeChange === void 0 || onAppearanceThemeChange(next);
|
|
94
|
-
if (onAppearanceThemeChange == null) setInternalAppearanceTheme(next);
|
|
95
|
-
}, [onAppearanceThemeChange]);
|
|
96
|
-
/**
|
|
97
|
-
* 资源墙可见 id:未写键、非数组、空数组一律视为「无选中」→ 不展示任何卡片。
|
|
98
|
-
* 有非空 string[] 时按该顺序展示:**仅渲染能在 `cards` 里命中的**;命中不到的 id(例如磁盘残留的
|
|
99
|
-
* 旧店铺 / 已删资源)直接剔除,不再回退成「数字占位卡」。磁盘侧由宿主(如 PisellReservation)
|
|
100
|
-
* 水合后清洗并回写 localStorage,避免下次继续飘过来。
|
|
101
|
-
*/
|
|
102
|
-
const filterValues = useMemo(() => {
|
|
103
|
-
var _ctx$searchParams;
|
|
104
|
-
const f = (_ctx$searchParams = ctx.searchParams) === null || _ctx$searchParams === void 0 ? void 0 : _ctx$searchParams.filter;
|
|
105
|
-
if (!f || typeof f !== "object" || f === null) return void 0;
|
|
106
|
-
const v = f.values;
|
|
107
|
-
if (v === null || v === void 0 || typeof v !== "object" || Array.isArray(v)) return;
|
|
108
|
-
return v;
|
|
109
|
-
}, [ctx.searchParams]);
|
|
110
|
-
const hasResourceWallFilterKey = filterValues != null && Object.prototype.hasOwnProperty.call(filterValues, filterKey);
|
|
111
|
-
const selectedRaw = hasResourceWallFilterKey ? filterValues[filterKey] : void 0;
|
|
112
|
-
const wallSelectedIds = useMemo(() => {
|
|
113
|
-
if (!hasResourceWallFilterKey) return [];
|
|
114
|
-
if (!Array.isArray(selectedRaw)) return [];
|
|
115
|
-
const seen = /* @__PURE__ */ new Set();
|
|
116
|
-
const out = [];
|
|
117
|
-
for (const x of selectedRaw) {
|
|
118
|
-
const t = String(x).trim();
|
|
119
|
-
if (!t || seen.has(t)) continue;
|
|
120
|
-
seen.add(t);
|
|
121
|
-
out.push(t);
|
|
122
|
-
}
|
|
123
|
-
return out;
|
|
124
|
-
}, [hasResourceWallFilterKey, selectedRaw]);
|
|
125
|
-
const cards = cardsProp !== null && cardsProp !== void 0 ? cardsProp : [];
|
|
126
|
-
/** 按 resourceId 建表,便于按筛选 id 顺序 O(1) 取卡 */
|
|
127
|
-
const cardByResourceId = useMemo(() => {
|
|
128
|
-
const m = /* @__PURE__ */ new Map();
|
|
129
|
-
for (const c of cards) m.set(String(c.resourceId), c);
|
|
130
|
-
return m;
|
|
131
|
-
}, [cards]);
|
|
132
|
-
/**
|
|
133
|
-
* 仅渲染「筛选 id 序列 ∩ cards」;缺数据的 id 直接跳过。
|
|
134
|
-
* 若当前 `searchParams.sort` 指向状态列(见 statusSortFieldKeys),在筛选顺序上做稳定排序:
|
|
135
|
-
* desc → 占用态在前;asc → 空闲态在前。
|
|
136
|
-
*/
|
|
137
|
-
const visibleCards = useMemo(() => {
|
|
138
|
-
var _ctx$searchParams2;
|
|
139
|
-
if (!wallSelectedIds.length) return [];
|
|
140
|
-
const result = [];
|
|
141
|
-
for (const id of wallSelectedIds) {
|
|
142
|
-
const hit = cardByResourceId.get(String(id));
|
|
143
|
-
if (hit) result.push(hit);
|
|
144
|
-
}
|
|
145
|
-
const parsed = parseRecordBoardToolbarSortParam((_ctx$searchParams2 = ctx.searchParams) === null || _ctx$searchParams2 === void 0 ? void 0 : _ctx$searchParams2.sort);
|
|
146
|
-
if (parsed && matchesResourceWallStatusSortField(parsed.field, statusSortFieldKeys)) {
|
|
147
|
-
const dir = parsed.dir;
|
|
148
|
-
const indexed = result.map((card, idx) => ({
|
|
149
|
-
card,
|
|
150
|
-
idx
|
|
151
|
-
}));
|
|
152
|
-
indexed.sort((a, b) => {
|
|
153
|
-
const ra = venueWallOccupiedSortRank(a.card);
|
|
154
|
-
const rb = venueWallOccupiedSortRank(b.card);
|
|
155
|
-
if (ra !== rb) return dir === "asc" ? ra - rb : rb - ra;
|
|
156
|
-
return a.idx - b.idx;
|
|
157
|
-
});
|
|
158
|
-
return indexed.map((x) => x.card);
|
|
159
|
-
}
|
|
160
|
-
return result;
|
|
161
|
-
}, [
|
|
162
|
-
cardByResourceId,
|
|
163
|
-
wallSelectedIds,
|
|
164
|
-
(_ctx$searchParams3 = ctx.searchParams) === null || _ctx$searchParams3 === void 0 ? void 0 : _ctx$searchParams3.sort,
|
|
165
|
-
statusSortFieldKeys
|
|
166
|
-
]);
|
|
167
|
-
/** 顶栏时钟 / 日期展示 */
|
|
168
|
-
const [now, setNow] = useState(() => /* @__PURE__ */ new Date());
|
|
169
|
-
useEffect(() => {
|
|
170
|
-
const id = window.setInterval(() => setNow(/* @__PURE__ */ new Date()), 1e3);
|
|
171
|
-
return () => window.clearInterval(id);
|
|
172
|
-
}, []);
|
|
173
|
-
/** 浅深主题:双受控(props + onChange)时完全由外部驱动,否则用内部 state */
|
|
174
|
-
const [internalAppearanceMode, setInternalAppearanceMode] = useState("light");
|
|
175
|
-
const appearanceModeControlled = appearanceModeProp !== void 0 && onAppearanceModeChange != null;
|
|
176
|
-
const appearanceMode = appearanceModeControlled ? appearanceModeProp : internalAppearanceMode;
|
|
177
|
-
const setAppearanceMode = useCallback((m) => {
|
|
178
|
-
onAppearanceModeChange === null || onAppearanceModeChange === void 0 || onAppearanceModeChange(m);
|
|
179
|
-
if (!appearanceModeControlled) setInternalAppearanceMode(m);
|
|
180
|
-
}, [appearanceModeControlled, onAppearanceModeChange]);
|
|
181
|
-
const [showControlPanel, setShowControlPanel] = useState(false);
|
|
182
|
-
const closeControlPanel = useCallback(() => {
|
|
183
|
-
setShowControlPanel(false);
|
|
184
|
-
}, []);
|
|
185
|
-
const [currentPage, setCurrentPage] = useState(0);
|
|
186
|
-
const [pseudoFullscreen, setPseudoFullscreen] = useState(readStoredPseudoFullscreen);
|
|
187
|
-
const togglePseudoFullscreen = useCallback(() => {
|
|
188
|
-
setPseudoFullscreen((prev) => {
|
|
189
|
-
const next = !prev;
|
|
190
|
-
persistPseudoFullscreen(next);
|
|
191
|
-
return next;
|
|
192
|
-
});
|
|
193
|
-
}, []);
|
|
194
|
-
const shellRef = useRef(null);
|
|
195
|
-
/** 伪全屏:给 body 挂类名,配合 less 撑满视口且压住部分宿主布局 */
|
|
196
|
-
useEffect(() => {
|
|
197
|
-
const cls = "pisell-resource-wall-fixed-viewport";
|
|
198
|
-
if (typeof document === "undefined") return;
|
|
199
|
-
if (pseudoFullscreen) document.body.classList.add(cls);
|
|
200
|
-
else document.body.classList.remove(cls);
|
|
201
|
-
return () => {
|
|
202
|
-
document.body.classList.remove(cls);
|
|
203
|
-
};
|
|
204
|
-
}, [pseudoFullscreen]);
|
|
205
|
-
/** 布局持久化:有 `onResourceWallLayoutChange` 时为受控;否则本地默认 + `setLayoutState` 补丁 */
|
|
206
|
-
const layoutPersisted = onResourceWallLayoutChange != null;
|
|
207
|
-
const [internalLayout, setInternalLayout] = useState(() => _objectSpread2({}, DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST));
|
|
208
|
-
const layoutState = layoutPersisted ? _objectSpread2(_objectSpread2({}, DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST), resourceWallLayoutProp !== null && resourceWallLayoutProp !== void 0 ? resourceWallLayoutProp : {}) : internalLayout;
|
|
209
|
-
const setLayoutState = useCallback((patch) => {
|
|
210
|
-
if (layoutPersisted) onResourceWallLayoutChange(_objectSpread2(_objectSpread2(_objectSpread2({}, DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST), resourceWallLayoutProp !== null && resourceWallLayoutProp !== void 0 ? resourceWallLayoutProp : {}), patch));
|
|
211
|
-
else setInternalLayout((prev) => _objectSpread2(_objectSpread2(_objectSpread2({}, DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST), prev), patch));
|
|
212
|
-
}, [
|
|
213
|
-
layoutPersisted,
|
|
214
|
-
resourceWallLayoutProp,
|
|
215
|
-
onResourceWallLayoutChange
|
|
216
|
-
]);
|
|
217
|
-
const { layoutKey, customCols, customRows, pageDurationSec, boardingSoonBeforeMin, heroMaxWidthRatio } = layoutState;
|
|
218
|
-
const layoutPresetsWithI18n = useMemo(() => LAYOUT_PRESETS.map((p) => _objectSpread2(_objectSpread2({}, p), {}, { label: p.key === "custom" ? getText("pisell-resource-wall-layout-custom") : p.label })), [getCurrentLocale()]);
|
|
219
|
-
/** 当前外观模式下的槽位:占用/空闲底色 + 六态覆盖(含未持久化时的 props 回退) */
|
|
220
|
-
const modeSlot = (_appearanceTheme$appe = appearanceTheme[appearanceMode]) !== null && _appearanceTheme$appe !== void 0 ? _appearanceTheme$appe : {};
|
|
221
|
-
const occupiedCardColor = modeSlot.occupiedCardColor != null && modeSlot.occupiedCardColor !== "" ? modeSlot.occupiedCardColor : DEFAULT_OCCUPIED;
|
|
222
|
-
const availableCardColor = modeSlot.availableCardColor != null && modeSlot.availableCardColor !== "" ? modeSlot.availableCardColor : DEFAULT_AVAILABLE;
|
|
223
|
-
const modeToneOverrides = modeSlot.statusToneOverrides;
|
|
224
|
-
const statusToneOverrides = modeToneOverrides != null && Object.keys(modeToneOverrides).length > 0 ? modeToneOverrides : statusToneOverridesProp !== void 0 ? statusToneOverridesProp : localToneOverrides;
|
|
225
|
-
/** 解析当前选中的预设(含 custom 行列钳位) */
|
|
226
|
-
const selectedLayout = useMemo(() => {
|
|
227
|
-
var _layoutPresetsWithI;
|
|
228
|
-
if (layoutKey === "custom") return {
|
|
229
|
-
key: "custom",
|
|
230
|
-
label: getText("pisell-resource-wall-layout-custom"),
|
|
231
|
-
cols: Math.max(1, Math.min(6, customCols)),
|
|
232
|
-
rows: Math.max(1, Math.min(6, customRows))
|
|
233
|
-
};
|
|
234
|
-
return (_layoutPresetsWithI = layoutPresetsWithI18n.find((p) => p.key === layoutKey)) !== null && _layoutPresetsWithI !== void 0 ? _layoutPresetsWithI : layoutPresetsWithI18n[2];
|
|
235
|
-
}, [
|
|
236
|
-
layoutKey,
|
|
237
|
-
customCols,
|
|
238
|
-
customRows,
|
|
239
|
-
layoutPresetsWithI18n
|
|
240
|
-
]);
|
|
241
|
-
const pageCapacity = selectedLayout.cols * selectedLayout.rows;
|
|
242
|
-
/** 按单页容量切分可见卡,用于轮播与指示条 */
|
|
243
|
-
const pagedGroups = useMemo(() => {
|
|
244
|
-
const chunks = [];
|
|
245
|
-
for (let i = 0; i < visibleCards.length; i += pageCapacity) chunks.push(visibleCards.slice(i, i + pageCapacity));
|
|
246
|
-
return chunks;
|
|
247
|
-
}, [visibleCards, pageCapacity]);
|
|
248
|
-
const totalPages = Math.max(1, pagedGroups.length);
|
|
249
|
-
/** 当前页要渲染的卡;无分页时退化为首屏 capacity 张 */
|
|
250
|
-
const renderCards = (_pagedGroups$currentP = pagedGroups[currentPage]) !== null && _pagedGroups$currentP !== void 0 ? _pagedGroups$currentP : visibleCards.slice(0, pageCapacity);
|
|
251
|
-
/** 控制台展示与顶栏一致的当前页 / 总页(1-based 在文案 replace 时处理) */
|
|
252
|
-
const controlCarouselPager = useMemo(() => ({
|
|
253
|
-
currentPage,
|
|
254
|
-
totalPages
|
|
255
|
-
}), [currentPage, totalPages]);
|
|
256
|
-
/** 总页数变小时收回当前页索引,避免越界 */
|
|
257
|
-
useEffect(() => {
|
|
258
|
-
setCurrentPage((p) => totalPages > 0 ? Math.min(p, totalPages - 1) : 0);
|
|
259
|
-
}, [totalPages]);
|
|
260
|
-
/** 多页时按 `pageDurationSec` 自动轮播当前页 */
|
|
261
|
-
useEffect(() => {
|
|
262
|
-
if (totalPages <= 1) {
|
|
263
|
-
setCurrentPage(0);
|
|
264
|
-
return;
|
|
265
|
-
}
|
|
266
|
-
const ms = Math.max(3, pageDurationSec) * 1e3;
|
|
267
|
-
const timer = window.setInterval(() => {
|
|
268
|
-
setCurrentPage((p) => (p + 1) % totalPages);
|
|
269
|
-
}, ms);
|
|
270
|
-
return () => window.clearInterval(timer);
|
|
271
|
-
}, [totalPages, pageDurationSec]);
|
|
272
|
-
/** 网格容量或可见卡数量变化时回到第一页 */
|
|
273
|
-
useEffect(() => {
|
|
274
|
-
setCurrentPage(0);
|
|
275
|
-
}, [pageCapacity, visibleCards.length]);
|
|
276
|
-
/**
|
|
277
|
-
* 写入 `filter.values[filterKey]`;`ids` 可为 `[]`(大屏不展示)。
|
|
278
|
-
* 宿主合并 `onSearch` 时请保留该键;删掉键时本视图同样按「无选中」处理(不展示)。
|
|
279
|
-
*/
|
|
280
|
-
const mergeFilterResourceIds = useCallback((ids) => {
|
|
281
|
-
var _ctx$searchParams4, _filterValue$values, _ctx$onSearch;
|
|
282
|
-
const sp = (_ctx$searchParams4 = ctx.searchParams) !== null && _ctx$searchParams4 !== void 0 ? _ctx$searchParams4 : {};
|
|
283
|
-
const filterValue = sp[FILTER_PARAMS_FIELD];
|
|
284
|
-
const currentValues = (_filterValue$values = filterValue === null || filterValue === void 0 ? void 0 : filterValue.values) !== null && _filterValue$values !== void 0 ? _filterValue$values : {};
|
|
285
|
-
const nextFilter = _objectSpread2(_objectSpread2({}, filterValue), {}, { values: _objectSpread2(_objectSpread2({}, currentValues), {}, { [filterKey]: ids }) });
|
|
286
|
-
(_ctx$onSearch = ctx.onSearch) === null || _ctx$onSearch === void 0 || _ctx$onSearch.call(ctx, _objectSpread2(_objectSpread2({}, sp), {}, { [FILTER_PARAMS_FIELD]: nextFilter }));
|
|
287
|
-
}, [ctx, filterKey]);
|
|
288
|
-
/** 控制台「应用」:同步筛选 id、布局持久化、当前外观槽位下的占用/空闲色与六态覆盖 */
|
|
289
|
-
const handleControlApply = useCallback((payload) => {
|
|
290
|
-
mergeFilterResourceIds(payload.resourceIds);
|
|
291
|
-
setLayoutState({
|
|
292
|
-
layoutKey: payload.layoutKey,
|
|
293
|
-
customCols: payload.customCols,
|
|
294
|
-
customRows: payload.customRows,
|
|
295
|
-
pageDurationSec: payload.pageDurationSec,
|
|
296
|
-
boardingSoonBeforeMin: payload.boardingSoonBeforeMin,
|
|
297
|
-
heroMaxWidthRatio: payload.heroMaxWidthRatio
|
|
298
|
-
});
|
|
299
|
-
const nextSlot = _objectSpread2(_objectSpread2({}, appearanceTheme[appearanceMode]), {}, {
|
|
300
|
-
occupiedCardColor: payload.occupiedCardColor,
|
|
301
|
-
availableCardColor: payload.availableCardColor,
|
|
302
|
-
statusToneOverrides: payload.statusToneOverrides
|
|
303
|
-
});
|
|
304
|
-
persistAppearanceTheme(_objectSpread2(_objectSpread2({}, appearanceTheme), {}, { [appearanceMode]: nextSlot }));
|
|
305
|
-
emitToneOverrides(payload.statusToneOverrides);
|
|
306
|
-
}, [
|
|
307
|
-
mergeFilterResourceIds,
|
|
308
|
-
emitToneOverrides,
|
|
309
|
-
appearanceTheme,
|
|
310
|
-
appearanceMode,
|
|
311
|
-
persistAppearanceTheme,
|
|
312
|
-
setLayoutState
|
|
313
|
-
]);
|
|
314
|
-
/** 注入 i18n 后的完整六态表(含控制台覆盖),下发各 {@link VenueWallCard} */
|
|
315
|
-
const statusToneMap = useMemo(() => getVenueWallStatusToneMap(statusToneOverrides), [statusToneOverrides]);
|
|
316
|
-
/** 浅色态与历史实现一致(扁平顶栏 + 灰底内容区);深色仅微调背景与顶栏,不套「卡片套卡片」大圆角壳 */
|
|
317
|
-
const isDark = appearanceMode === "dark";
|
|
318
|
-
const pageBg = isDark ? "#0f172a" : "#f5f7fb";
|
|
319
|
-
const headerBg = isDark ? "#1e293b" : "#ffffff";
|
|
320
|
-
const headerBorder = isDark ? "1px solid #334155" : "1px solid #e2e8f0";
|
|
321
|
-
const clockColor = isDark ? "#f1f5f9" : "#0f172a";
|
|
322
|
-
const mutedText = isDark ? "#94a3b8" : "#64748b";
|
|
323
|
-
const toolbarBtnBorder = isDark ? "1px solid #475569" : "1px solid #e2e8f0";
|
|
324
|
-
const toolbarBtnBg = isDark ? "#334155" : "#ffffff";
|
|
325
|
-
const toolbarBtnBgActive = isDark ? "#475569" : "#f1f5f9";
|
|
326
|
-
const countdownSec = Math.max(3, pageDurationSec);
|
|
327
|
-
const shell = /* @__PURE__ */ React.createElement("div", {
|
|
328
|
-
ref: shellRef,
|
|
329
|
-
className: `pisell-resource-wall-shell${className ? ` ${className}` : ""}`,
|
|
330
|
-
style: _objectSpread2({
|
|
331
|
-
flex: 1,
|
|
332
|
-
minHeight: 0,
|
|
333
|
-
display: "flex",
|
|
334
|
-
flexDirection: "column",
|
|
335
|
-
overflow: "hidden",
|
|
336
|
-
background: pageBg,
|
|
337
|
-
color: clockColor
|
|
338
|
-
}, style)
|
|
339
|
-
}, /* @__PURE__ */ React.createElement(ResourceWallViewportToolbar, {
|
|
340
|
-
now,
|
|
341
|
-
appearanceMode,
|
|
342
|
-
onAppearanceModeChange: setAppearanceMode,
|
|
343
|
-
pseudoFullscreen,
|
|
344
|
-
onTogglePseudoFullscreen: togglePseudoFullscreen,
|
|
345
|
-
onOpenControlPanel: () => setShowControlPanel(true),
|
|
346
|
-
headerBorder,
|
|
347
|
-
headerBg,
|
|
348
|
-
clockColor,
|
|
349
|
-
mutedText,
|
|
350
|
-
toolbarBtnBorder,
|
|
351
|
-
toolbarBtnBg,
|
|
352
|
-
toolbarBtnBgActive
|
|
353
|
-
}), /* @__PURE__ */ React.createElement("div", { style: {
|
|
354
|
-
flex: 1,
|
|
355
|
-
minHeight: 0,
|
|
356
|
-
padding: 12,
|
|
357
|
-
display: "flex",
|
|
358
|
-
flexDirection: "column",
|
|
359
|
-
gap: 10
|
|
360
|
-
} }, totalPages > 1 ? /* @__PURE__ */ React.createElement("div", { style: {
|
|
361
|
-
flexShrink: 0,
|
|
362
|
-
display: "flex",
|
|
363
|
-
alignItems: "center",
|
|
364
|
-
gap: 12
|
|
365
|
-
} }, /* @__PURE__ */ React.createElement("div", { style: {
|
|
366
|
-
fontSize: 13,
|
|
367
|
-
fontWeight: 600,
|
|
368
|
-
color: mutedText,
|
|
369
|
-
whiteSpace: "nowrap"
|
|
370
|
-
} }, getText("pisell-resource-wall-page-indicator").replace("{cur}", String(currentPage + 1)).replace("{total}", String(totalPages))), /* @__PURE__ */ React.createElement("div", { style: {
|
|
371
|
-
flex: 1,
|
|
372
|
-
height: 4,
|
|
373
|
-
borderRadius: 2,
|
|
374
|
-
overflow: "hidden",
|
|
375
|
-
background: isDark ? "rgba(255,255,255,0.1)" : "rgba(15,23,42,0.08)"
|
|
376
|
-
} }, /* @__PURE__ */ React.createElement("div", {
|
|
377
|
-
key: `${currentPage}-${countdownSec}`,
|
|
378
|
-
className: "pisell-resource-wall-page-countdown-bar",
|
|
379
|
-
style: {
|
|
380
|
-
height: "100%",
|
|
381
|
-
width: "100%",
|
|
382
|
-
background: occupiedCardColor,
|
|
383
|
-
animationDuration: `${countdownSec}s`
|
|
384
|
-
}
|
|
385
|
-
}))) : null, /* @__PURE__ */ React.createElement("div", { style: {
|
|
386
|
-
flex: 1,
|
|
387
|
-
minHeight: 0,
|
|
388
|
-
height: "100%",
|
|
389
|
-
display: "grid",
|
|
390
|
-
gap: 16,
|
|
391
|
-
gridTemplateColumns: `repeat(${selectedLayout.cols}, minmax(0, 1fr))`,
|
|
392
|
-
gridTemplateRows: `repeat(${selectedLayout.rows}, minmax(0, 1fr))`
|
|
393
|
-
} }, renderCards.map((card) => /* @__PURE__ */ React.createElement(VenueWallCard, {
|
|
394
|
-
key: String(card.resourceId),
|
|
395
|
-
card,
|
|
396
|
-
wallNowMs: now.getTime(),
|
|
397
|
-
boardingSoonBeforeMin,
|
|
398
|
-
occupiedCardColor,
|
|
399
|
-
availableCardColor,
|
|
400
|
-
heroMaxWidthRatio,
|
|
401
|
-
statusToneMap,
|
|
402
|
-
appearance: appearanceMode
|
|
403
|
-
})))), /* @__PURE__ */ React.createElement(ResourceWallControlPanel, {
|
|
404
|
-
open: showControlPanel,
|
|
405
|
-
onClose: closeControlPanel,
|
|
406
|
-
isDark,
|
|
407
|
-
layoutPresets: layoutPresetsWithI18n,
|
|
408
|
-
layoutKey,
|
|
409
|
-
customCols,
|
|
410
|
-
customRows,
|
|
411
|
-
pageDurationSec,
|
|
412
|
-
occupiedCardColor,
|
|
413
|
-
availableCardColor,
|
|
414
|
-
boardingSoonBeforeMin,
|
|
415
|
-
statusToneOverrides,
|
|
416
|
-
selectedResourceIds: wallSelectedIds,
|
|
417
|
-
carouselPager: controlCarouselPager,
|
|
418
|
-
heroMaxWidthRatio,
|
|
419
|
-
onApply: handleControlApply
|
|
420
|
-
}));
|
|
421
|
-
/** 控制台打开时仍挂载 shell,避免整页 Spin 卸载弹层导致草稿丢失(全选后无法勾掉) */
|
|
422
|
-
if (loading && !showControlPanel) return /* @__PURE__ */ React.createElement("div", {
|
|
423
|
-
className,
|
|
424
|
-
style: _objectSpread2({
|
|
425
|
-
flex: 1,
|
|
426
|
-
minHeight: 0,
|
|
427
|
-
display: "flex",
|
|
428
|
-
alignItems: "center",
|
|
429
|
-
justifyContent: "center",
|
|
430
|
-
background: pageBg
|
|
431
|
-
}, style)
|
|
432
|
-
}, /* @__PURE__ */ React.createElement(Spin, null));
|
|
433
|
-
return shell;
|
|
434
|
-
};
|
|
435
|
-
//#endregion
|
|
436
|
-
export { DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY, PisellRecordBoardResourceWallView };
|
package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { RecordBoardResourceWallProps } from "../../types.js";
|
|
2
|
-
import React from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* RecordBoard 大屏资源墙槽位:仅在 PisellRecordBoard.ShellFrame 内使用,本身不渲染 DOM。
|
|
7
|
-
* 与 GridLayout / FloorMap / Calendar 并存时出现视图切换。
|
|
8
|
-
*/
|
|
9
|
-
declare const RecordBoardResourceWall: React.FC<RecordBoardResourceWallProps>;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { RecordBoardResourceWall };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
//#region src/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.tsx
|
|
2
|
-
/**
|
|
3
|
-
* RecordBoard 大屏资源墙槽位:仅在 PisellRecordBoard.ShellFrame 内使用,本身不渲染 DOM。
|
|
4
|
-
* 与 GridLayout / FloorMap / Calendar 并存时出现视图切换。
|
|
5
|
-
*/
|
|
6
|
-
const RecordBoardResourceWall = () => null;
|
|
7
|
-
RecordBoardResourceWall.displayName = "RecordBoard.ResourceWall";
|
|
8
|
-
//#endregion
|
|
9
|
-
export { RecordBoardResourceWall as default };
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { getText } from "../../../../locales/index.js";
|
|
2
|
-
import { diffVenueWallStatusToneOverrides, getVenueWallStatusToneMap } from "./venueWallUtils.js";
|
|
3
|
-
import { ResourceWallControlPanelColorTab } from "./ResourceWallControlPanelColorTab.js";
|
|
4
|
-
import { ResourceWallControlPanelLayoutTab } from "./ResourceWallControlPanelLayoutTab.js";
|
|
5
|
-
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
6
|
-
import { createPortal } from "react-dom";
|
|
7
|
-
//#region src/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.tsx
|
|
8
|
-
/** 将面板内草稿压成一次 `onApply` 负载(行列、秒数、色值等做安全钳位) */
|
|
9
|
-
const buildApplyPayload = (resourceIds, draft, boardingSoonBeforeMin) => ({
|
|
10
|
-
resourceIds: [...resourceIds],
|
|
11
|
-
layoutKey: draft.draftLayoutKey,
|
|
12
|
-
customCols: Math.max(1, Math.min(6, draft.draftCustomCols)),
|
|
13
|
-
customRows: Math.max(1, Math.min(6, draft.draftCustomRows)),
|
|
14
|
-
pageDurationSec: Math.max(3, Math.min(60, Math.round(draft.draftPageSec))),
|
|
15
|
-
occupiedCardColor: draft.draftOcc,
|
|
16
|
-
availableCardColor: draft.draftAvail,
|
|
17
|
-
boardingSoonBeforeMin: Math.max(1, Math.min(60, Math.round(boardingSoonBeforeMin))),
|
|
18
|
-
statusToneOverrides: diffVenueWallStatusToneOverrides(draft.draftTones),
|
|
19
|
-
heroMaxWidthRatio: Math.max(.4, Math.min(.8, draft.draftHeroRatio))
|
|
20
|
-
});
|
|
21
|
-
/**
|
|
22
|
-
* 资源墙管理台(Portal):选资源、网格预设/自定义行列、翻页秒数、占用/空闲色、六态说明与色值;
|
|
23
|
-
* `onApply` 回传负载中含 `diffVenueWallStatusToneOverrides` 压缩结果。
|
|
24
|
-
* 源自 test `showAdmin` 对接;关闭(Close / Escape / 遮罩)时提交草稿并关闭。
|
|
25
|
-
*/
|
|
26
|
-
const ResourceWallControlPanel = ({ open, onClose, isDark, layoutPresets, layoutKey, customCols, customRows, pageDurationSec, occupiedCardColor, availableCardColor, boardingSoonBeforeMin, statusToneOverrides, selectedResourceIds, onApply, carouselPager, heroMaxWidthRatio: heroMaxWidthRatioProp = .6 }) => {
|
|
27
|
-
const [adminTab, setAdminTab] = useState("resource_layout");
|
|
28
|
-
const [draftLayoutKey, setDraftLayoutKey] = useState(layoutKey);
|
|
29
|
-
const [draftCustomCols, setDraftCustomCols] = useState(customCols);
|
|
30
|
-
const [draftCustomRows, setDraftCustomRows] = useState(customRows);
|
|
31
|
-
const [draftPageSec, setDraftPageSec] = useState(pageDurationSec);
|
|
32
|
-
const [draftOcc, setDraftOcc] = useState(occupiedCardColor);
|
|
33
|
-
const [draftAvail, setDraftAvail] = useState(availableCardColor);
|
|
34
|
-
const [draftHeroRatio, setDraftHeroRatio] = useState(heroMaxWidthRatioProp);
|
|
35
|
-
const [draftTones, setDraftTones] = useState(() => getVenueWallStatusToneMap());
|
|
36
|
-
/**
|
|
37
|
-
* 弹层打开瞬间从 props 灌入草稿;effect **只依赖 open**,避免父组件每秒重绘(时钟等)时
|
|
38
|
-
* 因 layoutKey 等引用变化再次执行 effect 把版式/配色草稿刷回 props。
|
|
39
|
-
*/
|
|
40
|
-
const draftBootstrapRef = useRef({
|
|
41
|
-
layoutKey,
|
|
42
|
-
customCols,
|
|
43
|
-
customRows,
|
|
44
|
-
pageDurationSec,
|
|
45
|
-
occupiedCardColor,
|
|
46
|
-
availableCardColor,
|
|
47
|
-
statusToneOverrides,
|
|
48
|
-
heroMaxWidthRatioProp
|
|
49
|
-
});
|
|
50
|
-
draftBootstrapRef.current = {
|
|
51
|
-
layoutKey,
|
|
52
|
-
customCols,
|
|
53
|
-
customRows,
|
|
54
|
-
pageDurationSec,
|
|
55
|
-
occupiedCardColor,
|
|
56
|
-
availableCardColor,
|
|
57
|
-
statusToneOverrides,
|
|
58
|
-
heroMaxWidthRatioProp
|
|
59
|
-
};
|
|
60
|
-
const hasOpenedRef = useRef(false);
|
|
61
|
-
useEffect(() => {
|
|
62
|
-
if (!open) {
|
|
63
|
-
hasOpenedRef.current = false;
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
if (hasOpenedRef.current) return;
|
|
67
|
-
hasOpenedRef.current = true;
|
|
68
|
-
const b = draftBootstrapRef.current;
|
|
69
|
-
setDraftLayoutKey(b.layoutKey);
|
|
70
|
-
setDraftCustomCols(b.customCols);
|
|
71
|
-
setDraftCustomRows(b.customRows);
|
|
72
|
-
setDraftPageSec(b.pageDurationSec);
|
|
73
|
-
setDraftOcc(b.occupiedCardColor);
|
|
74
|
-
setDraftAvail(b.availableCardColor);
|
|
75
|
-
setDraftHeroRatio(b.heroMaxWidthRatioProp);
|
|
76
|
-
setDraftTones(getVenueWallStatusToneMap(b.statusToneOverrides));
|
|
77
|
-
setAdminTab("resource_layout");
|
|
78
|
-
}, [open]);
|
|
79
|
-
const flushApplyAndClose = useCallback(() => {
|
|
80
|
-
onApply(buildApplyPayload(selectedResourceIds, {
|
|
81
|
-
draftLayoutKey,
|
|
82
|
-
draftCustomCols,
|
|
83
|
-
draftCustomRows,
|
|
84
|
-
draftPageSec,
|
|
85
|
-
draftOcc,
|
|
86
|
-
draftAvail,
|
|
87
|
-
draftTones,
|
|
88
|
-
draftHeroRatio
|
|
89
|
-
}, boardingSoonBeforeMin));
|
|
90
|
-
onClose();
|
|
91
|
-
}, [
|
|
92
|
-
selectedResourceIds,
|
|
93
|
-
draftLayoutKey,
|
|
94
|
-
draftCustomCols,
|
|
95
|
-
draftCustomRows,
|
|
96
|
-
draftPageSec,
|
|
97
|
-
draftOcc,
|
|
98
|
-
draftAvail,
|
|
99
|
-
draftTones,
|
|
100
|
-
draftHeroRatio,
|
|
101
|
-
boardingSoonBeforeMin,
|
|
102
|
-
onApply,
|
|
103
|
-
onClose
|
|
104
|
-
]);
|
|
105
|
-
/** Escape:与关闭按钮一致,提交当前草稿并关闭(非「取消放弃」语义) */
|
|
106
|
-
useEffect(() => {
|
|
107
|
-
if (!open) return;
|
|
108
|
-
const onKey = (e) => {
|
|
109
|
-
if (e.key === "Escape") flushApplyAndClose();
|
|
110
|
-
};
|
|
111
|
-
window.addEventListener("keydown", onKey);
|
|
112
|
-
return () => window.removeEventListener("keydown", onKey);
|
|
113
|
-
}, [open, flushApplyAndClose]);
|
|
114
|
-
const shellBg = isDark ? "bg-slate-900 border-slate-800" : "bg-white border-slate-200";
|
|
115
|
-
const divider = isDark ? "border-slate-800" : "border-slate-200";
|
|
116
|
-
const headerText = isDark ? "text-slate-100" : "text-slate-900";
|
|
117
|
-
const mutedText = isDark ? "text-slate-500" : "text-slate-400";
|
|
118
|
-
const adminInputBg = isDark ? "bg-slate-900 border-slate-700 text-slate-100" : "bg-white border-slate-200 text-slate-700";
|
|
119
|
-
const adminSectionBg = isDark ? "bg-slate-950 border-slate-800" : "bg-slate-50 border-slate-200";
|
|
120
|
-
const cur = carouselPager.currentPage + 1;
|
|
121
|
-
const tot = Math.max(1, carouselPager.totalPages);
|
|
122
|
-
if (!open) return null;
|
|
123
|
-
const modal = /* @__PURE__ */ React.createElement("div", {
|
|
124
|
-
className: "fixed inset-0 z-50 bg-slate-900/40 backdrop-blur-[2px] p-4 md:p-8",
|
|
125
|
-
onClick: flushApplyAndClose,
|
|
126
|
-
role: "presentation"
|
|
127
|
-
}, /* @__PURE__ */ React.createElement("div", {
|
|
128
|
-
className: `mx-auto max-w-[900px] rounded-[30px] border shadow-[0_30px_80px_rgba(15,23,42,0.16)] overflow-hidden ${shellBg}`,
|
|
129
|
-
onClick: (e) => e.stopPropagation(),
|
|
130
|
-
role: "dialog",
|
|
131
|
-
"aria-modal": "true"
|
|
132
|
-
}, /* @__PURE__ */ React.createElement("div", { className: `border-b px-5 md:px-6 py-4 flex items-center justify-between gap-4 ${divider}` }, /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("div", { className: `text-[11px] uppercase tracking-[0.24em] ${mutedText}` }, getText("pisell-resource-wall-control-eyebrow")), /* @__PURE__ */ React.createElement("div", { className: `mt-1 text-2xl font-semibold tracking-tight ${headerText}` }, getText("pisell-resource-wall-control-subtitle")), /* @__PURE__ */ React.createElement("div", { className: "mt-3 inline-flex items-center rounded-full border p-1 border-slate-200 bg-white" }, /* @__PURE__ */ React.createElement("button", {
|
|
133
|
-
type: "button",
|
|
134
|
-
onClick: () => setAdminTab("resource_layout"),
|
|
135
|
-
className: `rounded-full px-3 py-1.5 text-sm transition ${adminTab === "resource_layout" ? "bg-slate-900 text-white" : "text-slate-600 hover:bg-slate-100"}`
|
|
136
|
-
}, getText("pisell-resource-wall-tab-layout")), /* @__PURE__ */ React.createElement("button", {
|
|
137
|
-
type: "button",
|
|
138
|
-
onClick: () => setAdminTab("color"),
|
|
139
|
-
className: `rounded-full px-3 py-1.5 text-sm transition ${adminTab === "color" ? "bg-slate-900 text-white" : "text-slate-600 hover:bg-slate-100"}`
|
|
140
|
-
}, getText("pisell-resource-wall-tab-colors")))), /* @__PURE__ */ React.createElement("button", {
|
|
141
|
-
type: "button",
|
|
142
|
-
onClick: flushApplyAndClose,
|
|
143
|
-
className: `rounded-full px-4 py-2 text-sm border ${isDark ? "border-slate-700 text-slate-300 hover:bg-slate-800" : "border-slate-200 text-slate-600 hover:bg-slate-50"}`
|
|
144
|
-
}, getText("pisell-resource-wall-control-close"))), /* @__PURE__ */ React.createElement("div", { className: "p-5 md:p-6 space-y-6 max-h-[78vh] overflow-auto" }, adminTab === "resource_layout" ? /* @__PURE__ */ React.createElement(ResourceWallControlPanelLayoutTab, {
|
|
145
|
-
adminSectionBg,
|
|
146
|
-
adminInputBg,
|
|
147
|
-
headerText,
|
|
148
|
-
mutedText,
|
|
149
|
-
layoutPresets,
|
|
150
|
-
draftLayoutKey,
|
|
151
|
-
setDraftLayoutKey,
|
|
152
|
-
draftCustomCols,
|
|
153
|
-
setDraftCustomCols,
|
|
154
|
-
draftCustomRows,
|
|
155
|
-
setDraftCustomRows,
|
|
156
|
-
draftPageSec,
|
|
157
|
-
setDraftPageSec,
|
|
158
|
-
draftHeroRatio,
|
|
159
|
-
setDraftHeroRatio,
|
|
160
|
-
carouselCur: cur,
|
|
161
|
-
carouselTot: tot,
|
|
162
|
-
isDark
|
|
163
|
-
}) : /* @__PURE__ */ React.createElement(ResourceWallControlPanelColorTab, {
|
|
164
|
-
adminSectionBg,
|
|
165
|
-
adminInputBg,
|
|
166
|
-
headerText,
|
|
167
|
-
mutedText,
|
|
168
|
-
divider,
|
|
169
|
-
draftOcc,
|
|
170
|
-
setDraftOcc,
|
|
171
|
-
draftAvail,
|
|
172
|
-
setDraftAvail,
|
|
173
|
-
draftTones,
|
|
174
|
-
setDraftTones
|
|
175
|
-
}))));
|
|
176
|
-
return typeof document !== "undefined" ? createPortal(modal, document.body) : null;
|
|
177
|
-
};
|
|
178
|
-
//#endregion
|
|
179
|
-
export { ResourceWallControlPanel };
|