@pisell/materials 6.11.42 → 6.11.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +18 -18
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +18 -18
- package/es/components/Pagination/index.d.ts +0 -1
- package/es/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +0 -1
- package/es/components/PisellFields/index.d.ts +0 -1
- package/es/components/PisellMetrics/index.d.ts +0 -1
- package/es/components/cardPro/index.d.ts +1 -0
- package/es/components/colorPicker/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -3
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -2
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -2
- package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +16 -17
- package/es/components/date-picker/datePickerCpt.d.ts +0 -1
- package/es/components/date-picker/index.d.ts +0 -1
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
- package/es/components/filter/components/FilterItem/index.js +3 -1
- package/es/components/filter/components/QuickFilter/index.js +3 -2
- package/es/components/filter/components/items/index.d.ts +0 -1
- package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
- package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
- package/es/components/filter/components/items/text/index.d.ts +0 -1
- package/es/components/filter/index.d.ts +0 -1
- package/es/components/list/index.d.ts +0 -1
- package/es/components/lowCodePage/index.d.ts +0 -1
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
- package/es/components/pisellDataSourceContainer/PisellDataSourceContainer.d.ts +0 -1
- package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +2 -3
- package/es/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
- package/es/components/pisellFilter/index.d.ts +0 -1
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +175 -24
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.less +22 -0
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +2 -2
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.js +268 -103
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +40 -4
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +22 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.js +138 -12
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.less +9 -1
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.js +65 -4
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.less +97 -4
- package/es/components/pisellFloorMapLayout/components/HistoryIcons.d.ts +39 -0
- package/es/components/pisellFloorMapLayout/components/HistoryIcons.js +75 -0
- package/es/components/pisellFloorMapLayout/components/ItemLayer.js +14 -1
- package/es/components/pisellFloorMapLayout/components/ViewControls.d.ts +9 -0
- package/es/components/pisellFloorMapLayout/components/ViewControls.js +96 -12
- package/es/components/pisellFloorMapLayout/components/ViewControls.less +224 -21
- package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +6 -0
- package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +3 -0
- package/es/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +4 -0
- package/es/components/pisellFloorMapLayout/floorMapLayoutConstants.js +4 -0
- package/es/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.d.ts +25 -0
- package/es/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.js +68 -0
- package/es/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.d.ts +18 -0
- package/es/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.js +104 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +5 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +121 -34
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +23 -1
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +345 -29
- package/es/components/pisellFloorMapLayout/index.d.ts +1 -0
- package/es/components/pisellFloorMapLayout/index.js +1 -0
- package/es/components/pisellFloorMapLayout/locales-ja.d.ts +20 -0
- package/es/components/pisellFloorMapLayout/locales-ja.js +21 -1
- package/es/components/pisellFloorMapLayout/locales-pt.d.ts +20 -0
- package/es/components/pisellFloorMapLayout/locales-pt.js +21 -1
- package/es/components/pisellFloorMapLayout/locales.d.ts +100 -0
- package/es/components/pisellFloorMapLayout/locales.js +63 -3
- package/es/components/pisellFloorMapLayout/types.d.ts +37 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +50 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.js +74 -0
- package/es/components/pisellGridPro/ToolBar/index.less +5 -4
- package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/es/components/pisellLoading/index.d.ts +0 -1
- package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
- package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
- package/es/components/pisellModal/components/index.d.ts +0 -1
- package/es/components/pisellRecordBoard/PisellRecordBoard.js +9 -3
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +1 -1
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +2 -1
- package/es/components/pisellRecordBoard/shellFrame/Pagination/index.js +9 -2
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +99 -101
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.d.ts +8 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.js +12 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.d.ts +13 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.js +66 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +176 -10
- package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +20 -2
- package/es/components/pisellRecordBoard/shellFrame/index.d.ts +6 -0
- package/es/components/pisellRecordBoard/shellFrame/index.js +3 -1
- package/es/components/pisellRecordBoard/types.d.ts +20 -1
- package/es/components/pisellShellFrame/PisellShellFrame.js +4 -1
- package/es/components/pisellShellFrame/PisellShellFrame.less +13 -0
- package/es/components/pisellShellFrame/types.d.ts +6 -0
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.js +139 -29
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.less +126 -13
- package/es/components/pisellTimeNavigator/components/CursorLayer.d.ts +3 -1
- package/es/components/pisellTimeNavigator/components/CursorLayer.js +3 -0
- package/es/components/pisellTimeNavigator/components/GestureLayer.d.ts +9 -1
- package/es/components/pisellTimeNavigator/components/GestureLayer.js +11 -4
- package/es/components/pisellTimeNavigator/timeNavigatorConstants.d.ts +20 -0
- package/es/components/pisellTimeNavigator/timeNavigatorConstants.js +27 -0
- package/es/components/pisellTooltip/index.d.ts +1 -0
- package/es/components/productCard/components/Action/index.d.ts +1 -0
- package/es/components/productCard/components/AmountFooter/index.d.ts +0 -1
- package/es/components/productCard/components/MultiDay/index.d.ts +0 -1
- package/es/components/productCard/components/Note/index.d.ts +0 -1
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
- package/es/components/productCard/components/Packages/components/options/index.d.ts +0 -1
- package/es/components/productCard/components/Packages/index.d.ts +0 -1
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -1
- package/es/components/productCard/components/Time/index.d.ts +0 -1
- package/es/components/qrcode/index.d.ts +0 -1
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -1
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/Group/index.d.ts +0 -1
- package/es/components/table/Actions/index.d.ts +0 -1
- package/es/components/table/BasicTable/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/SelectField/index.d.ts +0 -1
- package/es/components/table/Table/fields/date/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/date/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/index.d.ts +0 -1
- package/es/components/table/Table/fields/link/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/select/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
- package/es/components/table/Table/tableConfig/summary/index.d.ts +0 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/View/index.d.ts +0 -1
- package/es/components/versionSelect/index.d.ts +0 -1
- package/es/index.d.ts +8 -1
- package/es/index.js +8 -1
- package/es/locales/en-US.d.ts +2 -0
- package/es/locales/en-US.js +2 -0
- package/es/locales/ja.d.ts +2 -0
- package/es/locales/ja.js +2 -0
- package/es/locales/pt.d.ts +2 -0
- package/es/locales/pt.js +2 -0
- package/es/locales/zh-CN.d.ts +2 -0
- package/es/locales/zh-CN.js +2 -0
- package/es/locales/zh-TW.d.ts +2 -0
- package/es/locales/zh-TW.js +2 -0
- package/es/utils/index.d.ts +1 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/Pagination/index.d.ts +0 -1
- package/lib/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +0 -1
- package/lib/components/PisellFields/index.d.ts +0 -1
- package/lib/components/PisellMetrics/index.d.ts +0 -1
- package/lib/components/cardPro/index.d.ts +1 -0
- package/lib/components/colorPicker/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -3
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -2
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -2
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +16 -17
- package/lib/components/date-picker/datePickerCpt.d.ts +0 -1
- package/lib/components/date-picker/index.d.ts +0 -1
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
- package/lib/components/filter/components/FilterItem/index.js +2 -1
- package/lib/components/filter/components/QuickFilter/index.js +3 -2
- package/lib/components/filter/components/items/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/index.d.ts +0 -1
- package/lib/components/filter/index.d.ts +0 -1
- package/lib/components/list/index.d.ts +0 -1
- package/lib/components/lowCodePage/index.d.ts +0 -1
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
- package/lib/components/pisellDataSourceContainer/PisellDataSourceContainer.d.ts +0 -1
- package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +2 -3
- package/lib/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
- package/lib/components/pisellFilter/index.d.ts +0 -1
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +141 -44
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.less +22 -0
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +2 -2
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.js +213 -94
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +41 -2
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +22 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.js +128 -12
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.less +9 -1
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.js +53 -5
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.less +97 -4
- package/lib/components/pisellFloorMapLayout/components/HistoryIcons.d.ts +39 -0
- package/lib/components/pisellFloorMapLayout/components/HistoryIcons.js +71 -0
- package/lib/components/pisellFloorMapLayout/components/ItemLayer.js +2 -1
- package/lib/components/pisellFloorMapLayout/components/ViewControls.d.ts +9 -0
- package/lib/components/pisellFloorMapLayout/components/ViewControls.js +158 -49
- package/lib/components/pisellFloorMapLayout/components/ViewControls.less +224 -21
- package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +6 -0
- package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +3 -0
- package/lib/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +4 -0
- package/lib/components/pisellFloorMapLayout/floorMapLayoutConstants.js +29 -0
- package/lib/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.d.ts +25 -0
- package/lib/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.js +98 -0
- package/lib/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.d.ts +18 -0
- package/lib/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.js +95 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +5 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +65 -15
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +23 -1
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +196 -24
- package/lib/components/pisellFloorMapLayout/index.d.ts +1 -0
- package/lib/components/pisellFloorMapLayout/index.js +9 -0
- package/lib/components/pisellFloorMapLayout/locales-ja.d.ts +20 -0
- package/lib/components/pisellFloorMapLayout/locales-ja.js +21 -1
- package/lib/components/pisellFloorMapLayout/locales-pt.d.ts +20 -0
- package/lib/components/pisellFloorMapLayout/locales-pt.js +21 -1
- package/lib/components/pisellFloorMapLayout/locales.d.ts +100 -0
- package/lib/components/pisellFloorMapLayout/locales.js +63 -3
- package/lib/components/pisellFloorMapLayout/types.d.ts +37 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +50 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.js +60 -0
- package/lib/components/pisellGridPro/ToolBar/index.less +5 -4
- package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/lib/components/pisellLoading/index.d.ts +0 -1
- package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
- package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
- package/lib/components/pisellModal/components/index.d.ts +0 -1
- package/lib/components/pisellRecordBoard/PisellRecordBoard.js +10 -3
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +1 -1
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +2 -1
- package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.js +3 -2
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +70 -75
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.d.ts +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.js +38 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.d.ts +13 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.js +100 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +176 -10
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +6 -0
- package/lib/components/pisellRecordBoard/shellFrame/index.js +2 -1
- package/lib/components/pisellRecordBoard/types.d.ts +20 -1
- package/lib/components/pisellShellFrame/PisellShellFrame.js +2 -1
- package/lib/components/pisellShellFrame/PisellShellFrame.less +13 -0
- package/lib/components/pisellShellFrame/types.d.ts +6 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.js +96 -27
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.less +126 -13
- package/lib/components/pisellTimeNavigator/components/CursorLayer.d.ts +3 -1
- package/lib/components/pisellTimeNavigator/components/CursorLayer.js +2 -0
- package/lib/components/pisellTimeNavigator/components/GestureLayer.d.ts +9 -1
- package/lib/components/pisellTimeNavigator/components/GestureLayer.js +5 -2
- package/lib/components/pisellTimeNavigator/timeNavigatorConstants.d.ts +20 -0
- package/lib/components/pisellTimeNavigator/timeNavigatorConstants.js +47 -0
- package/lib/components/pisellTooltip/index.d.ts +1 -0
- package/lib/components/productCard/components/Action/index.d.ts +1 -0
- package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -1
- package/lib/components/productCard/components/MultiDay/index.d.ts +0 -1
- package/lib/components/productCard/components/Note/index.d.ts +0 -1
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +0 -1
- package/lib/components/productCard/components/Packages/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/index.d.ts +0 -1
- package/lib/components/qrcode/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -1
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
- package/lib/components/table/Actions/index.d.ts +0 -1
- package/lib/components/table/BasicTable/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/SelectField/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/index.d.ts +0 -1
- package/lib/components/table/Table/fields/link/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/select/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/View/index.d.ts +0 -1
- package/lib/components/versionSelect/index.d.ts +0 -1
- package/lib/index.d.ts +8 -1
- package/lib/index.js +8 -0
- package/lib/locales/en-US.d.ts +2 -0
- package/lib/locales/en-US.js +2 -0
- package/lib/locales/ja.d.ts +2 -0
- package/lib/locales/ja.js +2 -0
- package/lib/locales/pt.d.ts +2 -0
- package/lib/locales/pt.js +2 -0
- package/lib/locales/zh-CN.d.ts +2 -0
- package/lib/locales/zh-CN.js +2 -0
- package/lib/locales/zh-TW.d.ts +2 -0
- package/lib/locales/zh-TW.js +2 -0
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/platform.d.ts +1 -1
- package/lowcode/pisell-record-board-calendar-view/meta.ts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const formFieldMap: {
|
|
3
2
|
FormItemCheckbox: import("react").FC<{}> & {
|
|
4
3
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -20,7 +19,7 @@ declare const formFieldMap: {
|
|
|
20
19
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
21
20
|
onChange: (value: string) => void;
|
|
22
21
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
23
|
-
rootDomain: "
|
|
22
|
+
rootDomain: "custom" | "saas" | "xzero";
|
|
24
23
|
customDomain?: string | undefined;
|
|
25
24
|
value?: string | undefined;
|
|
26
25
|
tenantId: string;
|
|
@@ -35,7 +34,7 @@ declare const formFieldMap: {
|
|
|
35
34
|
};
|
|
36
35
|
FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
37
36
|
options?: any;
|
|
38
|
-
optionSourceType?: "default" | "
|
|
37
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
39
38
|
labelField: string;
|
|
40
39
|
valueField: string;
|
|
41
40
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -62,7 +61,7 @@ declare const formFieldMap: {
|
|
|
62
61
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
63
62
|
FormItemRecordListWrapper: (props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
64
63
|
options?: any;
|
|
65
|
-
optionSourceType?: "default" | "
|
|
64
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
66
65
|
labelField: string;
|
|
67
66
|
valueField: string;
|
|
68
67
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -72,7 +71,7 @@ declare const formFieldMap: {
|
|
|
72
71
|
}) => JSX.Element;
|
|
73
72
|
FormItemTabs: (props: import("./Tabs/type").TabsProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
74
73
|
options?: any;
|
|
75
|
-
optionSourceType?: "default" | "
|
|
74
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
76
75
|
labelField: string;
|
|
77
76
|
valueField: string;
|
|
78
77
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -81,9 +80,11 @@ declare const formFieldMap: {
|
|
|
81
80
|
extraParams?: Record<string, any> | undefined;
|
|
82
81
|
}) => JSX.Element;
|
|
83
82
|
};
|
|
84
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<
|
|
85
|
-
|
|
86
|
-
} &
|
|
83
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
84
|
+
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
85
|
+
} & {
|
|
86
|
+
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
87
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
87
88
|
JSON: import("react").FC<any>;
|
|
88
89
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
89
90
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -96,7 +97,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
96
97
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
97
98
|
onChange: (value: string) => void;
|
|
98
99
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
99
|
-
rootDomain: "
|
|
100
|
+
rootDomain: "custom" | "saas" | "xzero";
|
|
100
101
|
customDomain?: string | undefined;
|
|
101
102
|
value?: string | undefined;
|
|
102
103
|
tenantId: string;
|
|
@@ -104,25 +105,23 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
104
105
|
fieldKey?: string | undefined;
|
|
105
106
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
106
107
|
}) | (import("react").FC<{}> & {
|
|
107
|
-
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
108
|
-
} & {
|
|
109
|
-
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
110
|
-
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
111
108
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
112
109
|
} & {
|
|
113
110
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
114
111
|
}) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
115
112
|
options?: any;
|
|
116
|
-
optionSourceType?: "default" | "
|
|
113
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
117
114
|
labelField: string;
|
|
118
115
|
valueField: string;
|
|
119
116
|
extraParams?: Record<string, any> | undefined;
|
|
120
117
|
} & {
|
|
121
118
|
dataSource?: any;
|
|
122
119
|
extraParams?: Record<string, any> | undefined;
|
|
123
|
-
}) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./
|
|
120
|
+
}) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
121
|
+
onChange: (value: string) => void;
|
|
122
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
124
123
|
options?: any;
|
|
125
|
-
optionSourceType?: "default" | "
|
|
124
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
126
125
|
labelField: string;
|
|
127
126
|
valueField: string;
|
|
128
127
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -131,7 +130,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
131
130
|
extraParams?: Record<string, any> | undefined;
|
|
132
131
|
}) => JSX.Element) | ((props: import("./Tabs/type").TabsProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
133
132
|
options?: any;
|
|
134
|
-
optionSourceType?: "default" | "
|
|
133
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
135
134
|
labelField: string;
|
|
136
135
|
valueField: string;
|
|
137
136
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -105,11 +105,12 @@ var FilterItem = (props) => {
|
|
|
105
105
|
if (!CustomComponent) return null;
|
|
106
106
|
const componentProps2 = { ...itemProps || {}, ...other || {} };
|
|
107
107
|
delete componentProps2.component;
|
|
108
|
+
const isMultiFieldComposite = Array.isArray(other == null ? void 0 : other.compositeFilterFieldNames) && other.compositeFilterFieldNames.length > 0;
|
|
108
109
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
109
110
|
import_antd.Form.Item,
|
|
110
111
|
{
|
|
111
112
|
label,
|
|
112
|
-
name,
|
|
113
|
+
name: isMultiFieldComposite ? void 0 : name,
|
|
113
114
|
hidden: isHidden,
|
|
114
115
|
...(other == null ? void 0 : other.formItemProps) || {}
|
|
115
116
|
},
|
|
@@ -41,13 +41,14 @@ var QuickFilter = (props) => {
|
|
|
41
41
|
const filterArr = (0, import_react.useMemo)(() => {
|
|
42
42
|
return [...notSortFilter || [], ...quickFilter || []];
|
|
43
43
|
}, [quickFilter, notSortFilter]);
|
|
44
|
-
return /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { wrap: true }, filterArr.map((item) => {
|
|
44
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { wrap: true }, filterArr.map((item, index) => {
|
|
45
45
|
var _a;
|
|
46
46
|
const name = [formFiltersPrefix, (_a = item.name) == null ? void 0 : _a.toString()].filter(Boolean);
|
|
47
|
+
const keyHint = name.length > 0 ? name.join("-") : "";
|
|
47
48
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
48
49
|
import_FilterItem.default,
|
|
49
50
|
{
|
|
50
|
-
key:
|
|
51
|
+
key: item.key && String(item.key) || keyHint || `quick-filter-${index}`,
|
|
51
52
|
name,
|
|
52
53
|
type: item.type,
|
|
53
54
|
other: item.other,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const useDataSourceKey: () => {
|
|
3
|
-
dataSourceKey: string | undefined;
|
|
4
|
-
dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
|
|
2
|
+
dataSourceKey: string | import("../../dataSourceComponents/provider/dataSource/DataSourceContext").DataSourceType | undefined;
|
|
3
|
+
dataSourceKeyRef: import("react").MutableRefObject<string | import("../../dataSourceComponents/provider/dataSource/DataSourceContext").DataSourceType | undefined>;
|
|
5
4
|
};
|
|
6
5
|
export default useDataSourceKey;
|
|
@@ -58,8 +58,8 @@ var import_mergeFloorMapLayoutContext = require("./context/mergeFloorMapLayoutCo
|
|
|
58
58
|
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
59
59
|
var import_utils = require("@pisell/utils");
|
|
60
60
|
var import_floorMapCanvasDisplay = require("./utils/floorMapCanvasDisplay");
|
|
61
|
+
var import_floorMapLayoutConstants = require("./floorMapLayoutConstants");
|
|
61
62
|
var import_PisellFloorMapLayout = require("./PisellFloorMapLayout.less");
|
|
62
|
-
var PREFIX = "pisell-floor-map-layout";
|
|
63
63
|
function PisellFloorMapLayoutInner(props, ref) {
|
|
64
64
|
var _a, _b;
|
|
65
65
|
const layoutCtx = (0, import_FloorMapLayoutContext.useFloorMapLayoutContext)();
|
|
@@ -86,6 +86,7 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
86
86
|
floorMapConfig: floorMapConfigProp,
|
|
87
87
|
dataSources,
|
|
88
88
|
onSave,
|
|
89
|
+
onExitEdit,
|
|
89
90
|
onDataSourceRecordSave,
|
|
90
91
|
dataSourceLabels,
|
|
91
92
|
dataSourceFormColumns,
|
|
@@ -100,7 +101,9 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
100
101
|
viewportOverlayPlacement = "top-start",
|
|
101
102
|
viewportOverlayClassName,
|
|
102
103
|
canvasTabsBarTrailing,
|
|
103
|
-
viewportDockTrailing
|
|
104
|
+
viewportDockTrailing,
|
|
105
|
+
viewportPersist = true,
|
|
106
|
+
viewportPersistNamespace
|
|
104
107
|
} = p;
|
|
105
108
|
const { token } = import_antd.theme.useToken();
|
|
106
109
|
const isFloorMapView = Boolean(floorMapConfigProp);
|
|
@@ -118,7 +121,7 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
118
121
|
dataSourceFormColumns,
|
|
119
122
|
dataSourceRecordForm,
|
|
120
123
|
dataSourceLabels,
|
|
121
|
-
layoutPrefix:
|
|
124
|
+
layoutPrefix: import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX,
|
|
122
125
|
contentOffsetRef,
|
|
123
126
|
showDataSourceRecordFormBlock
|
|
124
127
|
});
|
|
@@ -146,8 +149,17 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
146
149
|
toggleDraftCanvasShowGrid,
|
|
147
150
|
toggleSelectedLayoutLock,
|
|
148
151
|
duplicateSelectedElement,
|
|
149
|
-
deleteSelectedElement
|
|
152
|
+
deleteSelectedElement,
|
|
153
|
+
undoDraft,
|
|
154
|
+
redoDraft,
|
|
155
|
+
canUndo,
|
|
156
|
+
canRedo,
|
|
157
|
+
discardDraft
|
|
150
158
|
} = edit;
|
|
159
|
+
const handleCancelEdit = (0, import_react.useCallback)(() => {
|
|
160
|
+
discardDraft();
|
|
161
|
+
onExitEdit == null ? void 0 : onExitEdit();
|
|
162
|
+
}, [discardDraft, onExitEdit]);
|
|
151
163
|
const effectiveMapLayer = (0, import_react.useMemo)(() => {
|
|
152
164
|
if (!isFloorMapView || !config || !currentCanvasId) {
|
|
153
165
|
return mapLayer;
|
|
@@ -247,6 +259,16 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
247
259
|
[effectiveMapLayer == null ? void 0 : effectiveMapLayer.gap]
|
|
248
260
|
);
|
|
249
261
|
const effectiveItemUnit = isFloorMapView ? "pixel" : itemUnit;
|
|
262
|
+
const viewportPersistKey = (0, import_react.useMemo)(() => {
|
|
263
|
+
if (viewportPersist === false) return void 0;
|
|
264
|
+
if (!isFloorMapView || !currentCanvasId) return void 0;
|
|
265
|
+
return viewportPersistNamespace ? `${viewportPersistNamespace}:${currentCanvasId}` : currentCanvasId;
|
|
266
|
+
}, [
|
|
267
|
+
viewportPersist,
|
|
268
|
+
viewportPersistNamespace,
|
|
269
|
+
isFloorMapView,
|
|
270
|
+
currentCanvasId
|
|
271
|
+
]);
|
|
250
272
|
const metrics = (0, import_useFloorMapTransformMetrics.useFloorMapTransformMetrics)({
|
|
251
273
|
items,
|
|
252
274
|
cellSize,
|
|
@@ -258,7 +280,8 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
258
280
|
transformRef,
|
|
259
281
|
contentOffsetRef,
|
|
260
282
|
boundingPadding: effectiveMapLayer == null ? void 0 : effectiveMapLayer.boundingPadding,
|
|
261
|
-
frameResetKey: isFloorMapView ? transformWrapperKey : void 0
|
|
283
|
+
frameResetKey: isFloorMapView ? transformWrapperKey : void 0,
|
|
284
|
+
viewportPersistKey
|
|
262
285
|
});
|
|
263
286
|
const {
|
|
264
287
|
containerRef,
|
|
@@ -276,21 +299,35 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
276
299
|
isFullscreen,
|
|
277
300
|
toggleFullscreen,
|
|
278
301
|
fitBounds,
|
|
279
|
-
|
|
302
|
+
isAtFitBounds,
|
|
303
|
+
notifyTransformed,
|
|
304
|
+
persistCurrentViewport,
|
|
305
|
+
attachTransformContext,
|
|
280
306
|
isInteractingWithElement,
|
|
281
|
-
setIsInteractingWithElement
|
|
307
|
+
setIsInteractingWithElement,
|
|
308
|
+
viewportLocked,
|
|
309
|
+
toggleViewportLocked
|
|
282
310
|
} = metrics;
|
|
283
311
|
const fsMode = floorMapFullscreenMode ?? "toggle";
|
|
284
312
|
const useFullTopChrome = isFloorMapView && mode === "edit" && (fsMode === "locked" || fsMode === "toggle" && isFullscreen);
|
|
285
|
-
const dockToggleFullscreen =
|
|
313
|
+
const dockToggleFullscreen = void 0;
|
|
314
|
+
(0, import_react.useEffect)(() => {
|
|
315
|
+
if (!isFloorMapView) return;
|
|
316
|
+
if (fsMode !== "toggle") return;
|
|
317
|
+
const shouldBeFullscreen = mode === "edit";
|
|
318
|
+
if (shouldBeFullscreen !== isFullscreen) {
|
|
319
|
+
toggleFullscreen();
|
|
320
|
+
}
|
|
321
|
+
}, [mode, isFloorMapView, fsMode, isFullscreen, toggleFullscreen]);
|
|
286
322
|
const showEditCompactTopBar = isFloorMapView && mode === "edit" && Boolean(config) && !useFullTopChrome;
|
|
287
323
|
const viewControlsConfig = (0, import_react.useMemo)(() => {
|
|
288
324
|
if (!isFloorMapView) return controls;
|
|
289
325
|
return {
|
|
290
326
|
...controls,
|
|
291
|
-
showFullscreen: controls.showFullscreen ?? Boolean(dockToggleFullscreen)
|
|
327
|
+
showFullscreen: controls.showFullscreen ?? Boolean(dockToggleFullscreen),
|
|
328
|
+
showViewportLock: controls.showViewportLock ?? Boolean(viewportPersistKey)
|
|
292
329
|
};
|
|
293
|
-
}, [isFloorMapView, controls, dockToggleFullscreen]);
|
|
330
|
+
}, [isFloorMapView, controls, dockToggleFullscreen, viewportPersistKey]);
|
|
294
331
|
const topBarExtraActions = null;
|
|
295
332
|
const [mapPaletteDragActive, setMapPaletteDragActive] = (0, import_react.useState)(false);
|
|
296
333
|
(0, import_react.useEffect)(() => {
|
|
@@ -298,6 +335,49 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
298
335
|
window.addEventListener("dragend", clear);
|
|
299
336
|
return () => window.removeEventListener("dragend", clear);
|
|
300
337
|
}, []);
|
|
338
|
+
(0, import_react.useEffect)(() => {
|
|
339
|
+
if (!isFloorMapView || mode !== "edit" || !(config == null ? void 0 : config.canvasUi.canEdit)) {
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
const onKeyDown = (e) => {
|
|
343
|
+
const mod = e.ctrlKey || e.metaKey;
|
|
344
|
+
if (!mod) return;
|
|
345
|
+
const key = e.key.toLowerCase();
|
|
346
|
+
const isUndoCombo = key === "z" && !e.shiftKey && !e.altKey;
|
|
347
|
+
const isRedoCombo = key === "z" && e.shiftKey && !e.altKey || key === "y" && !e.shiftKey && !e.altKey;
|
|
348
|
+
if (!isUndoCombo && !isRedoCombo) return;
|
|
349
|
+
const target = e.target;
|
|
350
|
+
if (target) {
|
|
351
|
+
const tag = target.tagName;
|
|
352
|
+
if (tag === "INPUT" || tag === "TEXTAREA") return;
|
|
353
|
+
if (target.isContentEditable) return;
|
|
354
|
+
}
|
|
355
|
+
const root = containerRef.current;
|
|
356
|
+
if (!root) return;
|
|
357
|
+
const active = document.activeElement;
|
|
358
|
+
const focusInside = active ? root.contains(active) : false;
|
|
359
|
+
const targetInside = target ? root.contains(target) : false;
|
|
360
|
+
if (!focusInside && !targetInside) return;
|
|
361
|
+
if (isUndoCombo && canUndo) {
|
|
362
|
+
e.preventDefault();
|
|
363
|
+
undoDraft();
|
|
364
|
+
} else if (isRedoCombo && canRedo) {
|
|
365
|
+
e.preventDefault();
|
|
366
|
+
redoDraft();
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
window.addEventListener("keydown", onKeyDown);
|
|
370
|
+
return () => window.removeEventListener("keydown", onKeyDown);
|
|
371
|
+
}, [
|
|
372
|
+
isFloorMapView,
|
|
373
|
+
mode,
|
|
374
|
+
config == null ? void 0 : config.canvasUi.canEdit,
|
|
375
|
+
canUndo,
|
|
376
|
+
canRedo,
|
|
377
|
+
undoDraft,
|
|
378
|
+
redoDraft,
|
|
379
|
+
containerRef
|
|
380
|
+
]);
|
|
301
381
|
const handlePaletteDropOnCanvas = (0, import_react.useCallback)(
|
|
302
382
|
(e) => {
|
|
303
383
|
e.preventDefault();
|
|
@@ -423,12 +503,12 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
423
503
|
(e) => {
|
|
424
504
|
if (!isFloorMapView || mode !== "edit") return;
|
|
425
505
|
const t = e.target;
|
|
426
|
-
if (t.closest(`.${
|
|
427
|
-
if (t.closest(`.${
|
|
428
|
-
if (t.closest(`.${
|
|
429
|
-
if (t.closest(`.${
|
|
430
|
-
if (t.closest(`.${
|
|
431
|
-
if (t.closest(`.${
|
|
506
|
+
if (t.closest(`.${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-editable-item`)) return;
|
|
507
|
+
if (t.closest(`.${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-edit-panel-wrap`)) return;
|
|
508
|
+
if (t.closest(`.${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-view-controls`)) return;
|
|
509
|
+
if (t.closest(`.${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-viewport-overlay`)) return;
|
|
510
|
+
if (t.closest(`.${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-place-overlay`)) return;
|
|
511
|
+
if (t.closest(`.${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-map-drop-layer`)) return;
|
|
432
512
|
setSelectedId(null);
|
|
433
513
|
},
|
|
434
514
|
[isFloorMapView, mode, setSelectedId]
|
|
@@ -437,9 +517,11 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
437
517
|
"div",
|
|
438
518
|
{
|
|
439
519
|
ref: containerRef,
|
|
440
|
-
className: (0, import_classnames.default)(
|
|
441
|
-
[`${
|
|
442
|
-
[`${
|
|
520
|
+
className: (0, import_classnames.default)(import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX, className, {
|
|
521
|
+
[`${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-floor-map-view`]: isFloorMapView,
|
|
522
|
+
[`${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-mode-edit`]: isFloorMapView && mode === "edit",
|
|
523
|
+
/** 伪全屏:让根容器 fixed 撑满视口,替代浏览器原生 Fullscreen API */
|
|
524
|
+
[`${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}--pseudo-fullscreen`]: isFullscreen
|
|
443
525
|
}),
|
|
444
526
|
style: {
|
|
445
527
|
display: "flex",
|
|
@@ -467,7 +549,11 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
467
549
|
onRemoveCanvas: handleRemoveCanvas,
|
|
468
550
|
onRenameCanvas: handleRenameCanvas,
|
|
469
551
|
controls,
|
|
470
|
-
canvasTabsBarTrailing
|
|
552
|
+
canvasTabsBarTrailing,
|
|
553
|
+
onUndo: config.canvasUi.canEdit ? undoDraft : void 0,
|
|
554
|
+
onRedo: config.canvasUi.canEdit ? redoDraft : void 0,
|
|
555
|
+
canUndo,
|
|
556
|
+
canRedo
|
|
471
557
|
}
|
|
472
558
|
),
|
|
473
559
|
isFloorMapView && mode === "edit" && config && useFullTopChrome && /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -492,17 +578,23 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
492
578
|
isFullscreen,
|
|
493
579
|
controls,
|
|
494
580
|
extraActions: topBarExtraActions,
|
|
495
|
-
canvasTabsBarTrailing
|
|
581
|
+
canvasTabsBarTrailing,
|
|
582
|
+
onUndo: config.canvasUi.canEdit ? undoDraft : void 0,
|
|
583
|
+
onRedo: config.canvasUi.canEdit ? redoDraft : void 0,
|
|
584
|
+
canUndo,
|
|
585
|
+
canRedo,
|
|
586
|
+
onExitEdit,
|
|
587
|
+
onCancelEdit: onExitEdit ? handleCancelEdit : void 0
|
|
496
588
|
}
|
|
497
589
|
),
|
|
498
590
|
showReadModeCanvasTabsBar && /* @__PURE__ */ import_react.default.createElement(
|
|
499
591
|
"div",
|
|
500
592
|
{
|
|
501
|
-
className: `${
|
|
593
|
+
className: `${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-edit-top-bar ${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-read-canvas-tabs-bar`,
|
|
502
594
|
role: "toolbar",
|
|
503
595
|
"aria-label": readCanvasTabsAriaLabel
|
|
504
596
|
},
|
|
505
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: `${
|
|
597
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: `${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-edit-top-bar-tabs` }, /* @__PURE__ */ import_react.default.createElement(
|
|
506
598
|
import_CanvasTabs.CanvasTabs,
|
|
507
599
|
{
|
|
508
600
|
canvases: canvasesForTabs,
|
|
@@ -512,17 +604,17 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
512
604
|
setSelectedId(null);
|
|
513
605
|
},
|
|
514
606
|
canEdit: false,
|
|
515
|
-
className: `${
|
|
607
|
+
className: `${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-edit-top-bar-canvas-tabs`
|
|
516
608
|
}
|
|
517
609
|
)),
|
|
518
|
-
hasCanvasTabsBarTrailing ? /* @__PURE__ */ import_react.default.createElement("div", { className: `${
|
|
610
|
+
hasCanvasTabsBarTrailing ? /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-edit-top-bar-actions` }, canvasTabsBarTrailing) : null
|
|
519
611
|
),
|
|
520
|
-
loading && /* @__PURE__ */ import_react.default.createElement("div", { className: `${
|
|
521
|
-
saveError && !(isFloorMapView && mode === "edit" && config) && /* @__PURE__ */ import_react.default.createElement("div", { className: `${
|
|
612
|
+
loading && /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-loading` }, /* @__PURE__ */ import_react.default.createElement("span", null, loadingLabel)),
|
|
613
|
+
saveError && !(isFloorMapView && mode === "edit" && config) && /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-save-error` }, typeof saveError === "string" ? saveError : saveError == null ? void 0 : saveError.message),
|
|
522
614
|
/* @__PURE__ */ import_react.default.createElement(
|
|
523
615
|
"div",
|
|
524
616
|
{
|
|
525
|
-
className: showSidebar ? `${
|
|
617
|
+
className: showSidebar ? `${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-edit-layout` : void 0,
|
|
526
618
|
style: { flex: 1, display: "flex", minHeight: 0 }
|
|
527
619
|
},
|
|
528
620
|
showSidebar && /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -551,8 +643,8 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
551
643
|
{
|
|
552
644
|
ref: mapAreaRef,
|
|
553
645
|
className: (0, import_classnames.default)(
|
|
554
|
-
showSidebar && `${
|
|
555
|
-
editPanelVisible && `${
|
|
646
|
+
showSidebar && `${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-map-area`,
|
|
647
|
+
editPanelVisible && `${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-map-area--edit-panel-inset`
|
|
556
648
|
),
|
|
557
649
|
style: {
|
|
558
650
|
flex: 1,
|
|
@@ -596,21 +688,23 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
596
688
|
limitToBounds: pan.boundary !== "none",
|
|
597
689
|
...{ step: zoomConfig.step },
|
|
598
690
|
panning: {
|
|
599
|
-
disabled: pan.enabled === false || isInteractingWithElement,
|
|
691
|
+
disabled: pan.enabled === false || isInteractingWithElement || viewportLocked,
|
|
600
692
|
velocityDisabled: true
|
|
601
693
|
},
|
|
694
|
+
wheel: { disabled: viewportLocked },
|
|
695
|
+
pinch: { disabled: viewportLocked },
|
|
602
696
|
doubleClick: { disabled: true },
|
|
603
697
|
onTransformed: (_, state) => {
|
|
604
698
|
setScale(state.scale);
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
699
|
+
notifyTransformed(state.positionX, state.positionY, state.scale);
|
|
700
|
+
},
|
|
701
|
+
onPanningStop: persistCurrentViewport,
|
|
702
|
+
onZoomStop: persistCurrentViewport,
|
|
703
|
+
onPinchingStop: persistCurrentViewport,
|
|
704
|
+
onWheelStop: persistCurrentViewport
|
|
611
705
|
},
|
|
612
706
|
(ctx) => {
|
|
613
|
-
|
|
707
|
+
attachTransformContext(ctx);
|
|
614
708
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
615
709
|
import_react_zoom_pan_pinch.TransformComponent,
|
|
616
710
|
{
|
|
@@ -697,8 +791,8 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
697
791
|
"div",
|
|
698
792
|
{
|
|
699
793
|
ref: mapDropLayerRef,
|
|
700
|
-
className: (0, import_classnames.default)(`${
|
|
701
|
-
[`${
|
|
794
|
+
className: (0, import_classnames.default)(`${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-map-drop-layer`, {
|
|
795
|
+
[`${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-map-drop-layer-active`]: mapPaletteDragActive
|
|
702
796
|
}),
|
|
703
797
|
style: { width: contentWidth, height: contentHeight },
|
|
704
798
|
onDragOver: (ev) => {
|
|
@@ -714,10 +808,13 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
714
808
|
config: viewControlsConfig,
|
|
715
809
|
scale,
|
|
716
810
|
isFullscreen,
|
|
811
|
+
fitBoundsActive: isAtFitBounds,
|
|
717
812
|
fitBounds,
|
|
718
813
|
toggleFullscreen: dockToggleFullscreen,
|
|
719
814
|
mapGridVisible: Boolean(effectiveMapLayer == null ? void 0 : effectiveMapLayer.showGrid),
|
|
720
815
|
onToggleMapGrid: isFloorMapView ? toggleDraftCanvasShowGrid : void 0,
|
|
816
|
+
viewportLocked,
|
|
817
|
+
onToggleViewportLock: isFloorMapView && viewportPersistKey ? toggleViewportLocked : void 0,
|
|
721
818
|
dockChrome: isFloorMapView,
|
|
722
819
|
dockExpandedTrailing: viewportDockTrailing,
|
|
723
820
|
autoCollapseDockMs: 1e4
|
|
@@ -726,9 +823,9 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
726
823
|
"div",
|
|
727
824
|
{
|
|
728
825
|
className: (0, import_classnames.default)(
|
|
729
|
-
`${
|
|
826
|
+
`${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-viewport-overlay`,
|
|
730
827
|
{
|
|
731
|
-
[`${
|
|
828
|
+
[`${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-viewport-overlay--bottom-start`]: viewportOverlayPlacement === "bottom-start"
|
|
732
829
|
},
|
|
733
830
|
viewportOverlayClassName
|
|
734
831
|
)
|
|
@@ -743,8 +840,8 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
743
840
|
"div",
|
|
744
841
|
{
|
|
745
842
|
className: (0, import_classnames.default)(
|
|
746
|
-
`${
|
|
747
|
-
mapAreaSize.height > 0 && `${
|
|
843
|
+
`${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-edit-panel-wrap`,
|
|
844
|
+
mapAreaSize.height > 0 && `${import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX}-edit-panel-wrap-constrained`
|
|
748
845
|
),
|
|
749
846
|
style: mapAreaSize.height > 0 ? {
|
|
750
847
|
height: mapAreaSize.height - 32,
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/* 伪全屏宿主:锁定 body 滚动,避免双滚动条与触摸滑动穿透 */
|
|
2
|
+
body.pisell-floor-map-layout-fullscreen-host {
|
|
3
|
+
overflow: hidden !important;
|
|
4
|
+
}
|
|
5
|
+
|
|
1
6
|
.pisell-floor-map-layout {
|
|
2
7
|
position: relative;
|
|
3
8
|
width: 100%;
|
|
@@ -5,6 +10,23 @@
|
|
|
5
10
|
overflow: hidden;
|
|
6
11
|
background: #fafafa;
|
|
7
12
|
|
|
13
|
+
/**
|
|
14
|
+
* 伪全屏:撑满视口,替代浏览器 Fullscreen API;与资源墙大屏(pisell-resource-wall-fixed-viewport)
|
|
15
|
+
* 一致体验。z-index 故意高于常见弹层但低于 antd Modal 默认 1000,必要时可在宿主侧覆盖。
|
|
16
|
+
*/
|
|
17
|
+
&--pseudo-fullscreen {
|
|
18
|
+
position: fixed !important;
|
|
19
|
+
inset: 0 !important;
|
|
20
|
+
width: 100% !important;
|
|
21
|
+
height: 100% !important;
|
|
22
|
+
max-width: 100% !important;
|
|
23
|
+
max-height: 100% !important;
|
|
24
|
+
margin: 0 !important;
|
|
25
|
+
padding: 0 !important;
|
|
26
|
+
z-index: 2000;
|
|
27
|
+
background: #fff;
|
|
28
|
+
}
|
|
29
|
+
|
|
8
30
|
&-loading,
|
|
9
31
|
&-save-error {
|
|
10
32
|
position: absolute;
|