@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,20 +1,18 @@
|
|
|
1
1
|
require("../../../_virtual/_rolldown/runtime.js");
|
|
2
2
|
const require_objectSpread2 = require("../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
|
|
3
3
|
const require_layoutMeasurements = require("../utils/layoutMeasurements.js");
|
|
4
|
-
const require_floorMapViewportPersistence = require("./floorMapViewportPersistence.js");
|
|
5
4
|
let react = require("react");
|
|
6
5
|
//#region src/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.ts
|
|
7
6
|
/**
|
|
8
7
|
* 视口 / 地图区尺寸、内容区宽高与偏移、缩放与全屏、fitBounds、拖拽图元后恢复 transform
|
|
9
8
|
*/
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const FIT_BOUNDS_PROGRAMMATIC_TWEEN_GUARD_MS = 400;
|
|
9
|
+
/** 平面图包围盒单侧默认外扩(像素);过大会导致首屏大量空白 */
|
|
10
|
+
const DEFAULT_BOUNDING_PADDING = 56;
|
|
11
|
+
/** 视口内与首屏对齐时,图元束左上与容器边缘的留白 */
|
|
12
|
+
const VIEWPORT_TOP_LEFT_MARGIN = 16;
|
|
15
13
|
function useFloorMapTransformMetrics(params) {
|
|
16
|
-
const { items, cellSize, itemGap, effectiveItemUnit, isFloorMapView, mode, zoom, transformRef, contentOffsetRef, boundingPadding: boundingPaddingProp, frameResetKey
|
|
17
|
-
const padSingle = boundingPaddingProp !== null && boundingPaddingProp !== void 0 ? boundingPaddingProp :
|
|
14
|
+
const { items, cellSize, itemGap, effectiveItemUnit, isFloorMapView, mode, zoom, transformRef, contentOffsetRef, boundingPadding: boundingPaddingProp, frameResetKey } = params;
|
|
15
|
+
const padSingle = boundingPaddingProp !== null && boundingPaddingProp !== void 0 ? boundingPaddingProp : DEFAULT_BOUNDING_PADDING;
|
|
18
16
|
const containerRef = (0, react.useRef)(null);
|
|
19
17
|
const mapAreaRef = (0, react.useRef)(null);
|
|
20
18
|
const [viewportSize, setViewportSize] = (0, react.useState)({
|
|
@@ -75,52 +73,6 @@ function useFloorMapTransformMetrics(params) {
|
|
|
75
73
|
]);
|
|
76
74
|
const [scale, setScale] = (0, react.useState)(zoomConfig.initialScale);
|
|
77
75
|
const [isFullscreen, setIsFullscreen] = (0, react.useState)(false);
|
|
78
|
-
/**
|
|
79
|
-
* 「适配视口」激活态:当前 transform 与最近一次 fitBounds 计算出的目标 transform 在容差内一致时为 true。
|
|
80
|
-
* 由 fitBounds 写入快照、notifyTransformed 比较;用户主动拖动/缩放后立即失活。
|
|
81
|
-
*/
|
|
82
|
-
const lastFitSnapshotRef = (0, react.useRef)(null);
|
|
83
|
-
const [isAtFitBounds, setIsAtFitBounds] = (0, react.useState)(false);
|
|
84
|
-
/**
|
|
85
|
-
* 程序化 fitBounds 使用库默认缓动时,`onTransformed` 中间帧与快照不等会关掉「全览」激活态。
|
|
86
|
-
* 缓动持有期内不按中间帧降级,仅在到达快照(容差内)或兜底超时后再按真实 transform 对齐。
|
|
87
|
-
*/
|
|
88
|
-
const fitBoundsTweenHoldRef = (0, react.useRef)(false);
|
|
89
|
-
const fitBoundsTweenHoldClearTimerRef = (0, react.useRef)(null);
|
|
90
|
-
const clearFitBoundsTweenHold = (0, react.useCallback)(() => {
|
|
91
|
-
if (fitBoundsTweenHoldClearTimerRef.current != null) {
|
|
92
|
-
clearTimeout(fitBoundsTweenHoldClearTimerRef.current);
|
|
93
|
-
fitBoundsTweenHoldClearTimerRef.current = null;
|
|
94
|
-
}
|
|
95
|
-
fitBoundsTweenHoldRef.current = false;
|
|
96
|
-
}, []);
|
|
97
|
-
/**
|
|
98
|
-
* 视口锁定态:有 viewportPersistKey 时按 key 读写到 localStorage;无 key 时仅组件内存态(不写本地)。
|
|
99
|
-
* - 切 / 挂载时:有 key 则读持久化初值;无 key 则默认未锁定;
|
|
100
|
-
* - 用户切换时:有 key 则写回 localStorage;
|
|
101
|
-
* - 锁定后 fitBounds / 程序化 zoom 入口与 PisellFloorMapLayout 透传到 TransformWrapper 的
|
|
102
|
-
* panning/wheel/pinch.disabled 共同把所有视角写入路径关闭。
|
|
103
|
-
* 切 canvas(key 变化)时跟随新 key 重新初始化,互不影响。
|
|
104
|
-
*/
|
|
105
|
-
const [viewportLocked, setViewportLockedState] = (0, react.useState)(() => viewportPersistKey ? require_floorMapViewportPersistence.readPersistedViewportLock(viewportPersistKey) : false);
|
|
106
|
-
const viewportLockedRef = (0, react.useRef)(viewportLocked);
|
|
107
|
-
viewportLockedRef.current = viewportLocked;
|
|
108
|
-
(0, react.useEffect)(() => {
|
|
109
|
-
if (!viewportPersistKey) {
|
|
110
|
-
setViewportLockedState(false);
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
setViewportLockedState(require_floorMapViewportPersistence.readPersistedViewportLock(viewportPersistKey));
|
|
114
|
-
}, [viewportPersistKey]);
|
|
115
|
-
const setViewportLocked = (0, react.useCallback)((next) => {
|
|
116
|
-
setViewportLockedState(next);
|
|
117
|
-
const key = viewportPersistKey;
|
|
118
|
-
if (!key) return;
|
|
119
|
-
require_floorMapViewportPersistence.writePersistedViewportLock(key, next);
|
|
120
|
-
}, [viewportPersistKey]);
|
|
121
|
-
const toggleViewportLocked = (0, react.useCallback)(() => {
|
|
122
|
-
setViewportLocked(!viewportLockedRef.current);
|
|
123
|
-
}, [setViewportLocked]);
|
|
124
76
|
const { contentWidth, contentHeight, contentOffsetX, contentOffsetY, alignPadSingle } = (0, react.useMemo)(() => {
|
|
125
77
|
const fromItems = require_layoutMeasurements.getContentSize(items, cellSize, itemGap, effectiveItemUnit);
|
|
126
78
|
const pad = padSingle * 2;
|
|
@@ -167,8 +119,8 @@ function useFloorMapTransformMetrics(params) {
|
|
|
167
119
|
padSingle
|
|
168
120
|
]);
|
|
169
121
|
const padForAlign = alignPadSingle !== null && alignPadSingle !== void 0 ? alignPadSingle : 0;
|
|
170
|
-
const initialPositionX =
|
|
171
|
-
const initialPositionY =
|
|
122
|
+
const initialPositionX = VIEWPORT_TOP_LEFT_MARGIN - padForAlign * zoomConfig.initialScale;
|
|
123
|
+
const initialPositionY = VIEWPORT_TOP_LEFT_MARGIN - padForAlign * zoomConfig.initialScale;
|
|
172
124
|
contentOffsetRef.current = {
|
|
173
125
|
x: contentOffsetX,
|
|
174
126
|
y: contentOffsetY
|
|
@@ -220,89 +172,34 @@ function useFloorMapTransformMetrics(params) {
|
|
|
220
172
|
transformRef,
|
|
221
173
|
autoFitOnMount
|
|
222
174
|
]);
|
|
223
|
-
/**
|
|
224
|
-
* 伪全屏:用 `position: fixed; inset: 0` 撑满视口,不调用浏览器 Fullscreen API。
|
|
225
|
-
* 与「资源墙大屏」一致的体验:避免浏览器全屏带来的右键菜单受限、第三方弹层被全屏元素隔绝等。
|
|
226
|
-
*
|
|
227
|
-
* 对应 className 与 body overflow 锁定见 PisellFloorMapLayout.less 中
|
|
228
|
-
* `.pisell-floor-map-layout--pseudo-fullscreen` 与 `body.pisell-floor-map-layout-fullscreen-host`。
|
|
229
|
-
*
|
|
230
|
-
* 注意:不再监听 ESC 退出全屏。平面图编辑态全屏与编辑模式强绑定(PisellFloorMapLayout 中 effect),
|
|
231
|
-
* 若 ESC 直接 setIsFullscreen(false) 会立刻被同步 effect 拉回 true,徒增闪烁。
|
|
232
|
-
* 退出全屏 = 退出编辑,由顶栏退出按钮承担。
|
|
233
|
-
*/
|
|
234
175
|
(0, react.useEffect)(() => {
|
|
235
|
-
|
|
236
|
-
if (
|
|
237
|
-
const
|
|
238
|
-
document.
|
|
239
|
-
return () =>
|
|
240
|
-
document.body.classList.remove(bodyCls);
|
|
241
|
-
};
|
|
242
|
-
}, [isFullscreen]);
|
|
243
|
-
/** 卸载兜底:组件被卸载时不要把 body 锁住的样式残留 */
|
|
244
|
-
(0, react.useEffect)(() => {
|
|
245
|
-
return () => {
|
|
246
|
-
if (typeof document === "undefined") return;
|
|
247
|
-
document.body.classList.remove("pisell-floor-map-layout-fullscreen-host");
|
|
248
|
-
};
|
|
176
|
+
const el = containerRef.current;
|
|
177
|
+
if (!el) return;
|
|
178
|
+
const onFullscreenChange = () => setIsFullscreen(document.fullscreenElement === el);
|
|
179
|
+
document.addEventListener("fullscreenchange", onFullscreenChange);
|
|
180
|
+
return () => document.removeEventListener("fullscreenchange", onFullscreenChange);
|
|
249
181
|
}, []);
|
|
250
182
|
const toggleFullscreen = (0, react.useCallback)(() => {
|
|
251
|
-
|
|
183
|
+
const el = containerRef.current;
|
|
184
|
+
if (!el) return;
|
|
185
|
+
if (document.fullscreenElement) {
|
|
186
|
+
var _document$exitFullscr, _document;
|
|
187
|
+
(_document$exitFullscr = (_document = document).exitFullscreen) === null || _document$exitFullscr === void 0 || _document$exitFullscr.call(_document);
|
|
188
|
+
} else {
|
|
189
|
+
var _el$requestFullscreen;
|
|
190
|
+
(_el$requestFullscreen = el.requestFullscreen) === null || _el$requestFullscreen === void 0 || _el$requestFullscreen.call(el);
|
|
191
|
+
}
|
|
252
192
|
}, []);
|
|
253
|
-
/**
|
|
254
|
-
* 仅保留 fitBoundsRef 给手动 fitBounds 按钮用。
|
|
255
|
-
*
|
|
256
|
-
* 历史上这里有个 useEffect:进入伪全屏时自动 fitBounds 适配新视口。
|
|
257
|
-
* 但现在「编辑态自动全屏 + 视口持久化」的组合下,这会把用户上次保存的视角
|
|
258
|
-
* 覆盖成 fit 结果,导致每次进编辑都被强制全览,违背用户意图。
|
|
259
|
-
* 视口尺寸变化由 ResizeObserver 自然处理,transform 不变即「保留用户视角」。
|
|
260
|
-
*/
|
|
261
|
-
const fitBoundsRef = (0, react.useRef)(null);
|
|
262
193
|
/** @returns 是否已调用 setTransform(用于首屏 autoFit:避免空跑仍标记 done) */
|
|
263
194
|
const fitBounds = (0, react.useCallback)(() => {
|
|
264
195
|
var _zoom$max3;
|
|
265
|
-
/**
|
|
266
|
-
* 锁定态:拦截所有 fitBounds 触发路径(按钮 / autoFit useLayoutEffect / ref API),
|
|
267
|
-
* 让画布严格停留在用户锁定时的视角。返回 true 让 autoFit 调用方将 done 置位,
|
|
268
|
-
* 避免被无限重试占用 rAF。
|
|
269
|
-
*/
|
|
270
|
-
if (viewportLockedRef.current) return true;
|
|
271
196
|
const ctx = transformRef.current;
|
|
272
197
|
const container = containerRef.current;
|
|
273
198
|
if (!ctx || !container) return false;
|
|
274
199
|
const wrapper = container.querySelector(".react-transform-wrapper");
|
|
275
200
|
if (!wrapper) return false;
|
|
276
201
|
const wrapperRect = wrapper.getBoundingClientRect();
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* 祖先链上若有 transform: scale / zoom,getBoundingClientRect 为「视觉」尺寸,
|
|
280
|
-
* clientWidth/Height 为布局盒尺寸。react-zoom-pan-pinch 的平移/缩放工作在布局坐标系,
|
|
281
|
-
* 若全览仅用 rect 算 avail 与 position,会与库内部不一致(日志:visual/layout≈0.864)。
|
|
282
|
-
*/
|
|
283
|
-
const layoutW = wEl.clientWidth > 0 ? wEl.clientWidth : wrapperRect.width;
|
|
284
|
-
const layoutH = wEl.clientHeight > 0 ? wEl.clientHeight : wrapperRect.height;
|
|
285
|
-
if (layoutW <= 0 || layoutH <= 0) return false;
|
|
286
|
-
/** 程序化 setTransform 默认带缓动:写入快照后立即保持「全览激活」,缓动结束前不因中间帧关掉 */
|
|
287
|
-
const applyProgrammaticFit = (fx, fy, fScale) => {
|
|
288
|
-
clearFitBoundsTweenHold();
|
|
289
|
-
lastFitSnapshotRef.current = {
|
|
290
|
-
x: fx,
|
|
291
|
-
y: fy,
|
|
292
|
-
scale: fScale
|
|
293
|
-
};
|
|
294
|
-
setIsAtFitBounds(true);
|
|
295
|
-
fitBoundsTweenHoldRef.current = true;
|
|
296
|
-
fitBoundsTweenHoldClearTimerRef.current = setTimeout(() => {
|
|
297
|
-
fitBoundsTweenHoldClearTimerRef.current = null;
|
|
298
|
-
fitBoundsTweenHoldRef.current = false;
|
|
299
|
-
const cur = lastTransformRef.current;
|
|
300
|
-
const s = lastFitSnapshotRef.current;
|
|
301
|
-
if (!s) return;
|
|
302
|
-
setIsAtFitBounds(Math.abs(s.x - cur.x) < .5 && Math.abs(s.y - cur.y) < .5 && Math.abs(s.scale - cur.scale) < .005);
|
|
303
|
-
}, FIT_BOUNDS_PROGRAMMATIC_TWEEN_GUARD_MS);
|
|
304
|
-
ctx.setTransform(fx, fy, fScale);
|
|
305
|
-
};
|
|
202
|
+
if (wrapperRect.width <= 0 || wrapperRect.height <= 0) return false;
|
|
306
203
|
/**
|
|
307
204
|
* 平面图像素模式:按「图元轴对齐包围盒」缩放并居中,不按整块 content(含编辑态撑满视口的空白)适配。
|
|
308
205
|
* 画布 DOM 尺寸与网格空白不变,仅改变视口 transform;视口边可贴边(edgePx=0)。
|
|
@@ -313,28 +210,31 @@ function useFloorMapTransformMetrics(params) {
|
|
|
313
210
|
const bw = Math.max(1, pixelBox.maxRight - pixelBox.minLeft);
|
|
314
211
|
const bh = Math.max(1, pixelBox.maxBottom - pixelBox.minTop);
|
|
315
212
|
const edgePx = 0;
|
|
316
|
-
const availW = Math.max(1,
|
|
317
|
-
const availH = Math.max(1,
|
|
213
|
+
const availW = Math.max(1, wrapperRect.width - 2 * edgePx);
|
|
214
|
+
const availH = Math.max(1, wrapperRect.height - 2 * edgePx);
|
|
318
215
|
const raw = Math.min(availW / bw, availH / bh);
|
|
319
216
|
const nextScale = Math.min(raw, (_zoom$max2 = zoom.max) !== null && _zoom$max2 !== void 0 ? _zoom$max2 : 2);
|
|
320
217
|
const ap = alignPadSingle !== null && alignPadSingle !== void 0 ? alignPadSingle : padSingle;
|
|
321
218
|
const bboxCx = ap + bw / 2;
|
|
322
219
|
const bboxCy = ap + bh / 2;
|
|
323
|
-
|
|
220
|
+
const x = wrapperRect.width / 2 - bboxCx * nextScale;
|
|
221
|
+
const y = wrapperRect.height / 2 - bboxCy * nextScale;
|
|
222
|
+
ctx.setTransform(x, y, nextScale);
|
|
324
223
|
return true;
|
|
325
224
|
}
|
|
326
225
|
if (contentWidth <= 0 || contentHeight <= 0) return false;
|
|
327
226
|
/** 非平面图或无图元:仍按整块 content 适配 */
|
|
328
|
-
const raw = Math.min(
|
|
227
|
+
const raw = Math.min(wrapperRect.width / contentWidth, wrapperRect.height / contentHeight);
|
|
329
228
|
const nextScale = Math.min(raw, (_zoom$max3 = zoom.max) !== null && _zoom$max3 !== void 0 ? _zoom$max3 : 2);
|
|
330
229
|
const padA = alignPadSingle !== null && alignPadSingle !== void 0 ? alignPadSingle : 0;
|
|
331
|
-
|
|
230
|
+
const x = VIEWPORT_TOP_LEFT_MARGIN - padA * nextScale;
|
|
231
|
+
const y = VIEWPORT_TOP_LEFT_MARGIN - padA * nextScale;
|
|
232
|
+
ctx.setTransform(x, y, nextScale);
|
|
332
233
|
return true;
|
|
333
234
|
}, [
|
|
334
|
-
clearFitBoundsTweenHold,
|
|
335
235
|
contentWidth,
|
|
336
236
|
contentHeight,
|
|
337
|
-
zoom,
|
|
237
|
+
zoom.max,
|
|
338
238
|
transformRef,
|
|
339
239
|
alignPadSingle,
|
|
340
240
|
isFloorMapView,
|
|
@@ -343,8 +243,6 @@ function useFloorMapTransformMetrics(params) {
|
|
|
343
243
|
cellSize,
|
|
344
244
|
padSingle
|
|
345
245
|
]);
|
|
346
|
-
/** 让"进入伪全屏后自动 fit"的 effect 能拿到最新的 fitBounds 实现 */
|
|
347
|
-
fitBoundsRef.current = fitBounds;
|
|
348
246
|
/**
|
|
349
247
|
* autoFitOnMount:每个画布在「有图元且 content 尺寸已按包围盒算好」后执行一次 fitBounds。
|
|
350
248
|
* 避免首帧 items 仍为空时用占位尺寸 fit 完并标记 done,导致异步图元加载后不再适配。
|
|
@@ -355,13 +253,6 @@ function useFloorMapTransformMetrics(params) {
|
|
|
355
253
|
});
|
|
356
254
|
const prevItemsCountForAutoFitRef = (0, react.useRef)(null);
|
|
357
255
|
/**
|
|
358
|
-
* 记录「本 frame 的 transform 已由视口缓存接管」:
|
|
359
|
-
* 命中 localStorage 恢复或 restore effect 完成后写入当前 frame。
|
|
360
|
-
* 只要等于当前 frame,autoFit 所有分支(包括 items 从 0→N 的 reset done)一律放弃,
|
|
361
|
-
* 防止 items 异步加载后 autoFit 覆盖恢复值 → onTransformed 又把 fit 结果回写到 localStorage。
|
|
362
|
-
*/
|
|
363
|
-
const cachedRestoredFrameRef = (0, react.useRef)("");
|
|
364
|
-
/**
|
|
365
256
|
* 首屏 auto fit:时序上易出现「Transform 未挂载 / wrapper 尺寸为 0 / 内容区尚未提交」,
|
|
366
257
|
* 用 layoutEffect + 双 rAF 贴近浏览器布局完成时刻;仅 fitBounds 真正 setTransform 后才记 done;
|
|
367
258
|
* viewportSize 纳入依赖以便父级 flex 迟到的尺寸更新后重试(超次不伪造 done)。
|
|
@@ -375,24 +266,10 @@ function useFloorMapTransformMetrics(params) {
|
|
|
375
266
|
done: false
|
|
376
267
|
};
|
|
377
268
|
prevItemsCountForAutoFitRef.current = null;
|
|
378
|
-
/**
|
|
379
|
-
* 命中视口缓存:跳过本帧 autoFit,让恢复 effect 用缓存 transform 接管。
|
|
380
|
-
* 避免「先 autoFit 一次再被恢复覆盖」造成的视觉闪烁。
|
|
381
|
-
* 同步打上「缓存接管」标记,防止下面的「items 0→N reset done」再度启用 autoFit
|
|
382
|
-
* 覆盖恢复值并把 fit 结果通过 onTransformed 回写 localStorage。
|
|
383
|
-
*/
|
|
384
|
-
if (viewportPersistKey && require_floorMapViewportPersistence.readPersistedViewport(viewportPersistKey)) {
|
|
385
|
-
autoFitOnceRef.current.done = true;
|
|
386
|
-
cachedRestoredFrameRef.current = frame;
|
|
387
|
-
} else if (cachedRestoredFrameRef.current !== frame) cachedRestoredFrameRef.current = "";
|
|
388
269
|
}
|
|
389
270
|
const itemCount = items.length;
|
|
390
271
|
const prevN = prevItemsCountForAutoFitRef.current;
|
|
391
|
-
|
|
392
|
-
* 已由缓存接管本 frame 的 transform:items 异步加载完成后绝不重新启用 autoFit,
|
|
393
|
-
* 否则会把用户上次拖拽的位置覆盖成适配视口,且被 onTransformed 回写 localStorage。
|
|
394
|
-
*/
|
|
395
|
-
if (prevN !== null && prevN === 0 && itemCount > 0 && cachedRestoredFrameRef.current !== frame) autoFitOnceRef.current.done = false;
|
|
272
|
+
if (prevN !== null && prevN === 0 && itemCount > 0) autoFitOnceRef.current.done = false;
|
|
396
273
|
prevItemsCountForAutoFitRef.current = itemCount;
|
|
397
274
|
if (autoFitOnceRef.current.done) return;
|
|
398
275
|
if (effectiveItemUnit === "pixel" && itemCount === 0) return;
|
|
@@ -450,8 +327,7 @@ function useFloorMapTransformMetrics(params) {
|
|
|
450
327
|
mapAreaSize.width,
|
|
451
328
|
mapAreaSize.height,
|
|
452
329
|
fitBounds,
|
|
453
|
-
transformRef
|
|
454
|
-
viewportPersistKey
|
|
330
|
+
transformRef
|
|
455
331
|
]);
|
|
456
332
|
const lastTransformRef = (0, react.useRef)({
|
|
457
333
|
x: 0,
|
|
@@ -474,208 +350,6 @@ function useFloorMapTransformMetrics(params) {
|
|
|
474
350
|
});
|
|
475
351
|
return () => cancelAnimationFrame(raf);
|
|
476
352
|
}, [isInteractingWithElement, transformRef]);
|
|
477
|
-
/**
|
|
478
|
-
* 视口持久化:写入节流 + 切 canvas 时清掉 pending;
|
|
479
|
-
* persistKeyRef 保证 debounce 触发时仍然写到「触发时刻」对应的 key(避免 key 变化后被错位写入)。
|
|
480
|
-
*/
|
|
481
|
-
const persistKeyRef = (0, react.useRef)(viewportPersistKey);
|
|
482
|
-
persistKeyRef.current = viewportPersistKey;
|
|
483
|
-
const persistTimerRef = (0, react.useRef)(null);
|
|
484
|
-
const flushPersistRef = (0, react.useRef)(null);
|
|
485
|
-
const schedulePersistViewport = (0, react.useCallback)((snapshot) => {
|
|
486
|
-
const key = persistKeyRef.current;
|
|
487
|
-
if (!key) return;
|
|
488
|
-
if (persistTimerRef.current != null) {
|
|
489
|
-
clearTimeout(persistTimerRef.current);
|
|
490
|
-
persistTimerRef.current = null;
|
|
491
|
-
}
|
|
492
|
-
const targetKey = key;
|
|
493
|
-
const doWrite = () => {
|
|
494
|
-
persistTimerRef.current = null;
|
|
495
|
-
flushPersistRef.current = null;
|
|
496
|
-
require_floorMapViewportPersistence.writePersistedViewport(targetKey, snapshot);
|
|
497
|
-
};
|
|
498
|
-
flushPersistRef.current = doWrite;
|
|
499
|
-
persistTimerRef.current = setTimeout(doWrite, 300);
|
|
500
|
-
}, []);
|
|
501
|
-
/**
|
|
502
|
-
* 由 onTransformed 回调统一上报当前 transform:
|
|
503
|
-
* - 写 lastTransformRef(替代父组件直接赋值)
|
|
504
|
-
* - 与最近一次 fitBounds 快照比较,更新激活态
|
|
505
|
-
*
|
|
506
|
-
* ❗注意:故意不在这里写 localStorage。
|
|
507
|
-
* react-zoom-pan-pinch 在挂载、`setTransform`、`fitBounds`、`resetTransform` 等程序化路径
|
|
508
|
-
* 也会触发 onTransformed(含挂载初始值 {x:16, y:16, scale:1}),若在此持久化,
|
|
509
|
-
* wrapper 重挂载时会用这份"初始值"覆盖 localStorage 里用户上次保存的视角。
|
|
510
|
-
* 持久化改由 onPanningStop / onPinchingStop / onZoomStop / onWheelStop 触发,
|
|
511
|
-
* 那些事件只在「用户真的拖完/缩放完」时才发生。
|
|
512
|
-
*/
|
|
513
|
-
const notifyTransformed = (0, react.useCallback)((x, y, nextScale) => {
|
|
514
|
-
lastTransformRef.current = {
|
|
515
|
-
x,
|
|
516
|
-
y,
|
|
517
|
-
scale: nextScale
|
|
518
|
-
};
|
|
519
|
-
const snap = lastFitSnapshotRef.current;
|
|
520
|
-
if (snap) {
|
|
521
|
-
const same = Math.abs(snap.x - x) < .5 && Math.abs(snap.y - y) < .5 && Math.abs(snap.scale - nextScale) < .005;
|
|
522
|
-
if (fitBoundsTweenHoldRef.current) {
|
|
523
|
-
if (same) {
|
|
524
|
-
clearFitBoundsTweenHold();
|
|
525
|
-
setIsAtFitBounds(true);
|
|
526
|
-
}
|
|
527
|
-
/** 缓动中间帧:保持已设的「全览激活」,不因尚未对齐快照而关掉 */
|
|
528
|
-
return;
|
|
529
|
-
}
|
|
530
|
-
setIsAtFitBounds((prev) => prev === same ? prev : same);
|
|
531
|
-
} else setIsAtFitBounds((prev) => prev ? false : prev);
|
|
532
|
-
}, [clearFitBoundsTweenHold]);
|
|
533
|
-
/**
|
|
534
|
-
* 用户交互结束时(pan / zoom / pinch / wheel stop)调用:
|
|
535
|
-
* 以 lastTransformRef 当前值为快照写 localStorage(debounce 兜底高频 stop)。
|
|
536
|
-
* 程序化的 setTransform / fitBounds / 挂载初始化都不会调这里,避免污染缓存。
|
|
537
|
-
*/
|
|
538
|
-
const persistCurrentViewport = (0, react.useCallback)(() => {
|
|
539
|
-
const snapshot = lastTransformRef.current;
|
|
540
|
-
schedulePersistViewport({
|
|
541
|
-
x: snapshot.x,
|
|
542
|
-
y: snapshot.y,
|
|
543
|
-
scale: snapshot.scale
|
|
544
|
-
});
|
|
545
|
-
}, [schedulePersistViewport]);
|
|
546
|
-
/** 让 restore 路径读到最新 frameResetKey,避免 closure 过期 */
|
|
547
|
-
const frameResetKeyRef = (0, react.useRef)(frameResetKey);
|
|
548
|
-
frameResetKeyRef.current = frameResetKey;
|
|
549
|
-
const viewportPersistKeyRef = (0, react.useRef)(viewportPersistKey);
|
|
550
|
-
viewportPersistKeyRef.current = viewportPersistKey;
|
|
551
|
-
/**
|
|
552
|
-
* 把缓存视角立即贴到画布上的统一入口(restore effect 与 attachTransformContext 共用)。
|
|
553
|
-
*
|
|
554
|
-
* 关键点:
|
|
555
|
-
* 1. setTransform 的 animationTime 必须传 0:
|
|
556
|
-
* - react-zoom-pan-pinch 默认 200ms 缓动;
|
|
557
|
-
* - 首屏若 namespace 异步、autoFit 抢先 setTransform(fit) 并仍在缓动中,
|
|
558
|
-
* restore 这次 setTransform 会被库认为是「动画过程中无意义的同向 set」吃掉
|
|
559
|
-
* 或与原动画合成,最终视觉停在 fit 处;
|
|
560
|
-
* - 传 0 等价于"立即落点",强制覆盖任何在飞动画。
|
|
561
|
-
* 2. 命中后立刻把 cachedRestoredFrameRef / autoFit done / initialAlign done 都打上,
|
|
562
|
-
* 防止后续 effect 反向覆盖缓存值。
|
|
563
|
-
*/
|
|
564
|
-
const applyPersistedViewport = (0, react.useCallback)((cached) => {
|
|
565
|
-
clearFitBoundsTweenHold();
|
|
566
|
-
const ctx = transformRef.current;
|
|
567
|
-
if (!ctx) return false;
|
|
568
|
-
ctx.setTransform(cached.x, cached.y, cached.scale, 0);
|
|
569
|
-
lastTransformRef.current = require_objectSpread2._objectSpread2({}, cached);
|
|
570
|
-
lastFitSnapshotRef.current = null;
|
|
571
|
-
setIsAtFitBounds(false);
|
|
572
|
-
autoFitOnceRef.current.done = true;
|
|
573
|
-
initialAlignRef.current.done = true;
|
|
574
|
-
const currentFrame = frameResetKeyRef.current;
|
|
575
|
-
if (currentFrame !== void 0) cachedRestoredFrameRef.current = String(currentFrame);
|
|
576
|
-
return true;
|
|
577
|
-
}, [clearFitBoundsTweenHold, transformRef]);
|
|
578
|
-
/**
|
|
579
|
-
* 切换 viewportPersistKey 或 frameResetKey 时(含挂载、wrapper 重挂载):
|
|
580
|
-
* 尝试从 localStorage 读取上次视角并恢复。命中缓存 → 阻止本帧 autoFitOnMount /
|
|
581
|
-
* 首次左上对齐覆盖。未命中保持原行为。
|
|
582
|
-
*
|
|
583
|
-
* ❗frameResetKey 必须在依赖里:
|
|
584
|
-
* `transformWrapperKey` 在远端配置(boundingPadding / defaultScale)回包后会变,
|
|
585
|
-
* 触发 TransformWrapper 卸载重挂载并以 `initialPositionX/Y/Scale` (≈16,16,1) 渲染。
|
|
586
|
-
* 仅依赖 viewportPersistKey 时此处不会重跑,画布会停在初始 transform,
|
|
587
|
-
* 用户上次保存的视角虽然在 localStorage 里却没"贴回"画布。
|
|
588
|
-
*/
|
|
589
|
-
(0, react.useEffect)(() => {
|
|
590
|
-
if (!viewportPersistKey) return;
|
|
591
|
-
const cached = require_floorMapViewportPersistence.readPersistedViewport(viewportPersistKey);
|
|
592
|
-
if (!cached) return;
|
|
593
|
-
let cancelled = false;
|
|
594
|
-
let raf1 = 0;
|
|
595
|
-
let raf2 = 0;
|
|
596
|
-
let attempts = 0;
|
|
597
|
-
const MAX_ATTEMPTS = 60;
|
|
598
|
-
const tick = () => {
|
|
599
|
-
if (cancelled) return;
|
|
600
|
-
if (!applyPersistedViewport(cached)) {
|
|
601
|
-
if (attempts++ < MAX_ATTEMPTS) raf1 = requestAnimationFrame(tick);
|
|
602
|
-
}
|
|
603
|
-
};
|
|
604
|
-
/** 双 rAF:等 TransformWrapper 的 ctx 就绪后再写 */
|
|
605
|
-
raf1 = requestAnimationFrame(() => {
|
|
606
|
-
raf2 = requestAnimationFrame(tick);
|
|
607
|
-
});
|
|
608
|
-
return () => {
|
|
609
|
-
cancelled = true;
|
|
610
|
-
cancelAnimationFrame(raf1);
|
|
611
|
-
cancelAnimationFrame(raf2);
|
|
612
|
-
};
|
|
613
|
-
}, [
|
|
614
|
-
viewportPersistKey,
|
|
615
|
-
frameResetKey,
|
|
616
|
-
applyPersistedViewport
|
|
617
|
-
]);
|
|
618
|
-
/**
|
|
619
|
-
* PisellFloorMapLayout 在 TransformWrapper children render 中调用:
|
|
620
|
-
* {(ctx) => { attachTransformContext(ctx); return <>...</> }}
|
|
621
|
-
*
|
|
622
|
-
* 用途:wrapper 首次挂载 / 重挂载时,立刻 schedule 一次 restore,
|
|
623
|
-
* 避免依赖 useEffect、namespace 异步、autoFit 抢先 setTransform 之间的复杂时序。
|
|
624
|
-
*
|
|
625
|
-
* ⚠️ 不要用「ctx 引用是否变化」做去重:
|
|
626
|
-
* react-zoom-pan-pinch 在每次内部状态更新(缩放 / 平移过程中的 onTransformed)
|
|
627
|
-
* 都会让父组件重 render,children render 函数会再次被调用,部分版本下 ctx 是新对象引用。
|
|
628
|
-
* 一旦把它判成「新 ctx」再次 schedule restore,就会把用户刚做的缩放/平移
|
|
629
|
-
* 又覆盖回缓存,表现成「拖动可以,缩放回弹/缩放不动」。
|
|
630
|
-
*
|
|
631
|
-
* 改用 cachedRestoredFrameRef 做幂等:每个 frame(= TransformWrapper 的 key)
|
|
632
|
-
* 在生命周期内只 restore 一次。frame 真变化(wrapper 卸载重挂载)时,autoFit
|
|
633
|
-
* useLayoutEffect 的 reset 分支会清掉 / 重置该 ref,attach 自然能再次触发。
|
|
634
|
-
*/
|
|
635
|
-
const attachTransformContext = (0, react.useCallback)((ctx) => {
|
|
636
|
-
transformRef.current = ctx;
|
|
637
|
-
const key = viewportPersistKeyRef.current;
|
|
638
|
-
const currentFrame = frameResetKeyRef.current;
|
|
639
|
-
if (!key || currentFrame === void 0) return;
|
|
640
|
-
const frameStr = String(currentFrame);
|
|
641
|
-
/** 该 frame 已经 restore 过(attach 触发或 autoFit reset 分支命中均会标记) */
|
|
642
|
-
if (cachedRestoredFrameRef.current === frameStr) return;
|
|
643
|
-
const cached = require_floorMapViewportPersistence.readPersistedViewport(key);
|
|
644
|
-
if (!cached) return;
|
|
645
|
-
/**
|
|
646
|
-
* 立刻占座:避免本帧后续如果触发 attach 重入 / restore useEffect 同步跑
|
|
647
|
-
* 出现两条 setTransform 路径并发。applyPersistedViewport 内部还会再设一次
|
|
648
|
-
* (等于幂等)。
|
|
649
|
-
*/
|
|
650
|
-
cachedRestoredFrameRef.current = frameStr;
|
|
651
|
-
/**
|
|
652
|
-
* 双 rAF 等 wrapper 内部 useEffect / 初始 onTransformed 走完,
|
|
653
|
-
* 否则可能被库的 init 回调把 transform 又重置回 initial。
|
|
654
|
-
*/
|
|
655
|
-
requestAnimationFrame(() => {
|
|
656
|
-
requestAnimationFrame(() => {
|
|
657
|
-
/** 等待期间 frame 又变了(快速切画布)则交给新 frame 的 attach 处理 */
|
|
658
|
-
if (frameResetKeyRef.current !== currentFrame) return;
|
|
659
|
-
applyPersistedViewport(cached);
|
|
660
|
-
});
|
|
661
|
-
});
|
|
662
|
-
}, [transformRef, applyPersistedViewport]);
|
|
663
|
-
/** 卸载 / key 变化时把待写的视口立刻 flush,避免快速来回切丢失最后一次操作 */
|
|
664
|
-
(0, react.useEffect)(() => {
|
|
665
|
-
return () => {
|
|
666
|
-
var _flushPersistRef$curr;
|
|
667
|
-
if (persistTimerRef.current != null) {
|
|
668
|
-
clearTimeout(persistTimerRef.current);
|
|
669
|
-
persistTimerRef.current = null;
|
|
670
|
-
}
|
|
671
|
-
(_flushPersistRef$curr = flushPersistRef.current) === null || _flushPersistRef$curr === void 0 || _flushPersistRef$curr.call(flushPersistRef);
|
|
672
|
-
flushPersistRef.current = null;
|
|
673
|
-
if (fitBoundsTweenHoldClearTimerRef.current != null) {
|
|
674
|
-
clearTimeout(fitBoundsTweenHoldClearTimerRef.current);
|
|
675
|
-
fitBoundsTweenHoldClearTimerRef.current = null;
|
|
676
|
-
}
|
|
677
|
-
};
|
|
678
|
-
}, [viewportPersistKey]);
|
|
679
353
|
return {
|
|
680
354
|
containerRef,
|
|
681
355
|
mapAreaRef,
|
|
@@ -693,16 +367,9 @@ function useFloorMapTransformMetrics(params) {
|
|
|
693
367
|
isFullscreen,
|
|
694
368
|
toggleFullscreen,
|
|
695
369
|
fitBounds,
|
|
696
|
-
isAtFitBounds,
|
|
697
|
-
notifyTransformed,
|
|
698
|
-
persistCurrentViewport,
|
|
699
|
-
attachTransformContext,
|
|
700
370
|
lastTransformRef,
|
|
701
371
|
isInteractingWithElement,
|
|
702
|
-
setIsInteractingWithElement
|
|
703
|
-
viewportLocked,
|
|
704
|
-
setViewportLocked,
|
|
705
|
-
toggleViewportLocked
|
|
372
|
+
setIsInteractingWithElement
|
|
706
373
|
};
|
|
707
374
|
}
|
|
708
375
|
//#endregion
|
|
@@ -2,7 +2,6 @@ import { DataSourceFormColumn, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELE
|
|
|
2
2
|
import { PisellFloorMapLayout } from "./PisellFloorMapLayout.js";
|
|
3
3
|
import { renderFloorMapFallbackPlaceholder } from "./utils/floorMapFallbackRender.js";
|
|
4
4
|
import { isFloorMapImageElementKind } from "./utils/floorMapElementKindUtils.js";
|
|
5
|
-
import { NAME_AS_TITLE_EXT_KEY, buildNameAsTitleExtensionsPatch, isElementNameAsTitleEnabled, resolveSceneElementDisplayTitle } from "./utils/floorMapElementNameAsTitle.js";
|
|
6
5
|
import { FloorMapBindingPlaceholderReason, FloorMapDataSourceRow, findFloorMapRowByDataBinding, getFloorMapBindingPlaceholderReason } from "./utils/floorMapDataBindingUtils.js";
|
|
7
6
|
import { CreateShopFloorPlanClientOptions, EnsureShopFloorPlanByCodeOptions, PostShopFloorPlanBody, PutShopFloorPlanBody, SHOP_FLOOR_PLAN_DUPLICATE_CODE, ShopFloorPlanByCodeRequestOptions, ShopFloorPlanDetail, ShopFloorPlanHttpAdapter, ShopFloorPlanLayoutItem } from "./shopFloorPlan/shopFloorPlanTypes.js";
|
|
8
7
|
import { createShopFloorPlanClient } from "./shopFloorPlan/shopFloorPlanClient.js";
|
|
@@ -13,14 +13,6 @@ var locales_ja_default = {
|
|
|
13
13
|
"pisell-floor-map-layout.edit-top-bar.unsaved": "未保存",
|
|
14
14
|
"pisell-floor-map-layout.edit-top-bar.save": "保存",
|
|
15
15
|
"pisell-floor-map-layout.edit-top-bar.saving": "保存中…",
|
|
16
|
-
"pisell-floor-map-layout.edit-top-bar.undo": "元に戻す",
|
|
17
|
-
"pisell-floor-map-layout.edit-top-bar.redo": "やり直す",
|
|
18
|
-
"pisell-floor-map-layout.edit-top-bar.cancel-edit": "キャンセル",
|
|
19
|
-
"pisell-floor-map-layout.edit-top-bar.finish-edit": "完了",
|
|
20
|
-
"pisell-floor-map-layout.edit-top-bar.cancel-confirm-title": "未保存の変更",
|
|
21
|
-
"pisell-floor-map-layout.edit-top-bar.cancel-confirm-content": "このページを離れると、保存していない変更は失われます。",
|
|
22
|
-
"pisell-floor-map-layout.edit-top-bar.cancel-confirm-ok": "確定",
|
|
23
|
-
"pisell-floor-map-layout.edit-top-bar.cancel-confirm-cancel": "キャンセル",
|
|
24
16
|
"pisell-floor-map-layout.canvas-tabs.empty": "キャンバスがありません",
|
|
25
17
|
"pisell-floor-map-layout.canvas-tabs.add": "+ フロアを追加",
|
|
26
18
|
"pisell-floor-map-layout.canvas-tabs.add-title": "フロアを追加",
|
|
@@ -50,8 +42,6 @@ var locales_ja_default = {
|
|
|
50
42
|
"pisell-floor-map-layout.edit-panel.label-name-stage": "表示名(キャンバス上)",
|
|
51
43
|
"pisell-floor-map-layout.edit-panel.ph-name-stage": "例:ステージ、DJ ブース、ダンスフロア",
|
|
52
44
|
"pisell-floor-map-layout.edit-panel.ph-name": "要素名",
|
|
53
|
-
"pisell-floor-map-layout.edit-panel.label-name-as-title": "この名前をリソース名として使用",
|
|
54
|
-
"pisell-floor-map-layout.edit-panel.tip-name-as-title": "有効にするとキャンバス上のカードのタイトルがこの名前になり、紐付けたレコードのタイトルを上書きします。",
|
|
55
45
|
"pisell-floor-map-layout.edit-panel.label-image-url": "画像 URL",
|
|
56
46
|
"pisell-floor-map-layout.edit-panel.extra-image-url": "ネットワーク上の画像 URL を指定。重なり順を下げるとテーブルの下に配置できます。",
|
|
57
47
|
"pisell-floor-map-layout.edit-panel.ph-https": "https://...",
|
|
@@ -92,8 +82,6 @@ var locales_ja_default = {
|
|
|
92
82
|
"pisell-floor-map-layout.toolbar.layout-dirty-hint": "レイアウトが変更されました。「保存」で確定してください。",
|
|
93
83
|
"pisell-floor-map-layout.toolbar.save": "保存",
|
|
94
84
|
"pisell-floor-map-layout.toolbar.saving": "保存中…",
|
|
95
|
-
"pisell-floor-map-layout.toolbar.collapse": "パネルを折りたたむ",
|
|
96
|
-
"pisell-floor-map-layout.toolbar.expand": "パネルを展開",
|
|
97
85
|
"pisell-floor-map-layout.view-controls.zoom-out-aria": "縮小",
|
|
98
86
|
"pisell-floor-map-layout.view-controls.zoom-in-aria": "拡大",
|
|
99
87
|
"pisell-floor-map-layout.view-controls.reset-aria": "表示をリセット",
|
|
@@ -104,8 +92,6 @@ var locales_ja_default = {
|
|
|
104
92
|
"pisell-floor-map-layout.view-controls.fullscreen-exit-aria": "全画面を終了",
|
|
105
93
|
"pisell-floor-map-layout.view-controls.expand-tools-aria": "その他の表示ツールを表示",
|
|
106
94
|
"pisell-floor-map-layout.view-controls.collapse-tools-aria": "その他の表示ツールを隠す",
|
|
107
|
-
"pisell-floor-map-layout.view-controls.viewport-lock-aria": "ビューを固定(パン・ズームを無効化)",
|
|
108
|
-
"pisell-floor-map-layout.view-controls.viewport-unlock-aria": "ビュー固定を解除",
|
|
109
95
|
"pisell-floor-map-layout.image-element.default-name": "画像要素",
|
|
110
96
|
"pisell-floor-map-layout.placement.fallback-image-name": "背景",
|
|
111
97
|
"pisell-floor-map-layout.image-element.hint-no-url": "サイドバーで画像 URL を入力。重なり順を下げるとテーブル下の背景にできます。",
|
|
@@ -123,13 +109,7 @@ var locales_ja_default = {
|
|
|
123
109
|
"pisell-floor-map-layout.figma-card.kind-square-table": "テーブル",
|
|
124
110
|
"pisell-floor-map-layout.figma-card.default-table": "テーブル",
|
|
125
111
|
"pisell-floor-map-layout.figma-card.capacity-seats": "着席 {n} 名",
|
|
126
|
-
"pisell-floor-map-layout.figma-card.guests-count": "{n} 名"
|
|
127
|
-
"pisell-floor-map-layout.figma-card.status-available": "空席",
|
|
128
|
-
"pisell-floor-map-layout.figma-card.status-reserved": "予約済",
|
|
129
|
-
"pisell-floor-map-layout.figma-card.status-waiting": "待機中",
|
|
130
|
-
"pisell-floor-map-layout.figma-card.status-dining": "食事中",
|
|
131
|
-
"pisell-floor-map-layout.figma-card.status-billed": "会計済",
|
|
132
|
-
"pisell-floor-map-layout.figma-card.status-availableSoon": "間もなく"
|
|
112
|
+
"pisell-floor-map-layout.figma-card.guests-count": "{n} 名"
|
|
133
113
|
};
|
|
134
114
|
//#endregion
|
|
135
115
|
exports.default = locales_ja_default;
|
|
@@ -13,14 +13,6 @@ var locales_pt_default = {
|
|
|
13
13
|
"pisell-floor-map-layout.edit-top-bar.unsaved": "Não guardado",
|
|
14
14
|
"pisell-floor-map-layout.edit-top-bar.save": "Guardar",
|
|
15
15
|
"pisell-floor-map-layout.edit-top-bar.saving": "A guardar…",
|
|
16
|
-
"pisell-floor-map-layout.edit-top-bar.undo": "Anular",
|
|
17
|
-
"pisell-floor-map-layout.edit-top-bar.redo": "Refazer",
|
|
18
|
-
"pisell-floor-map-layout.edit-top-bar.cancel-edit": "Cancelar",
|
|
19
|
-
"pisell-floor-map-layout.edit-top-bar.finish-edit": "Concluir",
|
|
20
|
-
"pisell-floor-map-layout.edit-top-bar.cancel-confirm-title": "Alterações não guardadas",
|
|
21
|
-
"pisell-floor-map-layout.edit-top-bar.cancel-confirm-content": "Se sair desta página, quaisquer alterações não guardadas serão perdidas.",
|
|
22
|
-
"pisell-floor-map-layout.edit-top-bar.cancel-confirm-ok": "OK",
|
|
23
|
-
"pisell-floor-map-layout.edit-top-bar.cancel-confirm-cancel": "Cancelar",
|
|
24
16
|
"pisell-floor-map-layout.canvas-tabs.empty": "Sem canvas",
|
|
25
17
|
"pisell-floor-map-layout.canvas-tabs.add": "+ Adicionar piso",
|
|
26
18
|
"pisell-floor-map-layout.canvas-tabs.add-title": "Adicionar piso",
|
|
@@ -50,8 +42,6 @@ var locales_pt_default = {
|
|
|
50
42
|
"pisell-floor-map-layout.edit-panel.label-name-stage": "Nome (no canvas)",
|
|
51
43
|
"pisell-floor-map-layout.edit-panel.ph-name-stage": "Ex.: palco, cabine DJ, pista de dança",
|
|
52
44
|
"pisell-floor-map-layout.edit-panel.ph-name": "Nome do elemento",
|
|
53
|
-
"pisell-floor-map-layout.edit-panel.label-name-as-title": "Usar este nome como título do recurso",
|
|
54
|
-
"pisell-floor-map-layout.edit-panel.tip-name-as-title": "Quando ativado, este nome substitui o título do registro vinculado nos cards do mapa.",
|
|
55
45
|
"pisell-floor-map-layout.edit-panel.label-image-url": "URL da imagem",
|
|
56
46
|
"pisell-floor-map-layout.edit-panel.extra-image-url": "URL de imagem na rede. Baixe a ordem para colocar atrás das mesas.",
|
|
57
47
|
"pisell-floor-map-layout.edit-panel.ph-https": "https://...",
|
|
@@ -92,8 +82,6 @@ var locales_pt_default = {
|
|
|
92
82
|
"pisell-floor-map-layout.toolbar.layout-dirty-hint": "O layout foi alterado. Use «Guardar» para confirmar.",
|
|
93
83
|
"pisell-floor-map-layout.toolbar.save": "Guardar",
|
|
94
84
|
"pisell-floor-map-layout.toolbar.saving": "A guardar…",
|
|
95
|
-
"pisell-floor-map-layout.toolbar.collapse": "Recolher painel",
|
|
96
|
-
"pisell-floor-map-layout.toolbar.expand": "Expandir painel",
|
|
97
85
|
"pisell-floor-map-layout.view-controls.zoom-out-aria": "Reduzir zoom",
|
|
98
86
|
"pisell-floor-map-layout.view-controls.zoom-in-aria": "Aumentar zoom",
|
|
99
87
|
"pisell-floor-map-layout.view-controls.reset-aria": "Repor vista",
|
|
@@ -104,8 +92,6 @@ var locales_pt_default = {
|
|
|
104
92
|
"pisell-floor-map-layout.view-controls.fullscreen-exit-aria": "Sair do ecrã inteiro",
|
|
105
93
|
"pisell-floor-map-layout.view-controls.expand-tools-aria": "Mostrar mais ferramentas de vista",
|
|
106
94
|
"pisell-floor-map-layout.view-controls.collapse-tools-aria": "Ocultar ferramentas extra",
|
|
107
|
-
"pisell-floor-map-layout.view-controls.viewport-lock-aria": "Bloquear vista (desativar deslocação e zoom)",
|
|
108
|
-
"pisell-floor-map-layout.view-controls.viewport-unlock-aria": "Desbloquear vista",
|
|
109
95
|
"pisell-floor-map-layout.image-element.default-name": "Elemento de imagem",
|
|
110
96
|
"pisell-floor-map-layout.placement.fallback-image-name": "Fundo",
|
|
111
97
|
"pisell-floor-map-layout.image-element.hint-no-url": "Introduza o URL da imagem na barra lateral. Baixe a ordem para ficar atrás das mesas.",
|
|
@@ -123,13 +109,7 @@ var locales_pt_default = {
|
|
|
123
109
|
"pisell-floor-map-layout.figma-card.kind-square-table": "Mesa",
|
|
124
110
|
"pisell-floor-map-layout.figma-card.default-table": "Mesa",
|
|
125
111
|
"pisell-floor-map-layout.figma-card.capacity-seats": "Lotação {n}",
|
|
126
|
-
"pisell-floor-map-layout.figma-card.guests-count": "{n} pessoas"
|
|
127
|
-
"pisell-floor-map-layout.figma-card.status-available": "Livre",
|
|
128
|
-
"pisell-floor-map-layout.figma-card.status-reserved": "Reservada",
|
|
129
|
-
"pisell-floor-map-layout.figma-card.status-waiting": "Aguardando",
|
|
130
|
-
"pisell-floor-map-layout.figma-card.status-dining": "Em uso",
|
|
131
|
-
"pisell-floor-map-layout.figma-card.status-billed": "Cobrada",
|
|
132
|
-
"pisell-floor-map-layout.figma-card.status-availableSoon": "Em breve"
|
|
112
|
+
"pisell-floor-map-layout.figma-card.guests-count": "{n} pessoas"
|
|
133
113
|
};
|
|
134
114
|
//#endregion
|
|
135
115
|
exports.default = locales_pt_default;
|