@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
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
/**
|
|
8
|
+
* 「将图元名作为资源标题」开关:通用读写 + 标题解析。
|
|
9
|
+
*
|
|
10
|
+
* - 持久化在 `sceneElement.extensions[NAME_AS_TITLE_EXT_KEY]`,避免污染顶层 schema、
|
|
11
|
+
* 不影响未启用该能力的旧 / 新 kind。
|
|
12
|
+
* - 是否在编辑面板「显示」该选项,由 `FloorMapElementKindConfig.nameAsTitleConfigurable`
|
|
13
|
+
* 控制;展示侧(业务卡片渲染)只读 extensions,不依赖 kindConfig,确保即便业务方
|
|
14
|
+
* 后续撤回 kindConfig 开关,已落库的偏好仍生效。
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/** 持久化字段名:固定字符串,跨包共用,勿改 */
|
|
18
|
+
export var NAME_AS_TITLE_EXT_KEY = 'nameAsTitle';
|
|
19
|
+
/** 安全读取「图元名作为标题」开关 */
|
|
20
|
+
export function isElementNameAsTitleEnabled(el) {
|
|
21
|
+
var _el$extensions;
|
|
22
|
+
if (!el) return false;
|
|
23
|
+
var v = (_el$extensions = el.extensions) === null || _el$extensions === void 0 ? void 0 : _el$extensions[NAME_AS_TITLE_EXT_KEY];
|
|
24
|
+
return v === true;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 计算 `extensions` patch:返回值供调用方写入 `sceneElement.extensions`。
|
|
29
|
+
*
|
|
30
|
+
* - `enabled === true` 时写入 `true`;
|
|
31
|
+
* - `enabled === false` 时**移除**该 key(而非写 `false`),避免持久化里残留无意义字段;
|
|
32
|
+
* - 返回 `undefined` 表示「extensions 整体可清空」(仅当结果是空对象时)。
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* const nextExt = buildNameAsTitleExtensionsPatch(el.extensions, true);
|
|
36
|
+
* onUpdate({ extensions: nextExt });
|
|
37
|
+
*/
|
|
38
|
+
export function buildNameAsTitleExtensionsPatch(prev, enabled) {
|
|
39
|
+
var base = _objectSpread({}, prev !== null && prev !== void 0 ? prev : {});
|
|
40
|
+
if (enabled) {
|
|
41
|
+
base[NAME_AS_TITLE_EXT_KEY] = true;
|
|
42
|
+
} else {
|
|
43
|
+
delete base[NAME_AS_TITLE_EXT_KEY];
|
|
44
|
+
}
|
|
45
|
+
return Object.keys(base).length > 0 ? base : undefined;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 通用图元标题解析:业务展示层(卡片标题、占位标题等)统一调用本函数,
|
|
50
|
+
* 让「图元名作为资源标题」这一偏好对所有接入方一致生效。
|
|
51
|
+
*
|
|
52
|
+
* 优先级:
|
|
53
|
+
* 1. 启用了 nameAsTitle 且 `el.name` 非空 → `el.name`
|
|
54
|
+
* 2. `recordTitle`(业务侧按自己规则算出来的,如预约页 `row.main_field` / `row.code`)
|
|
55
|
+
* 3. `el.name`(业务字段缺失时的兜底,与历史行为一致)
|
|
56
|
+
* 4. `fallback`(如 kindLabel)
|
|
57
|
+
* 5. 空串
|
|
58
|
+
*
|
|
59
|
+
* 不更改 `displayRoomTitleFromRow` / `record.name` 等业务函数本身,
|
|
60
|
+
* 业务方只需把"按业务字段"算出来的结果以 `recordTitle` 传入即可,
|
|
61
|
+
* `bookingDetailModal` 等下游不会被联动改坏。
|
|
62
|
+
*/
|
|
63
|
+
export function resolveSceneElementDisplayTitle(opts) {
|
|
64
|
+
var sceneElement = opts.sceneElement,
|
|
65
|
+
recordTitle = opts.recordTitle,
|
|
66
|
+
fallback = opts.fallback;
|
|
67
|
+
var elName = (sceneElement === null || sceneElement === void 0 ? void 0 : sceneElement.name) != null ? String(sceneElement.name).trim() : '';
|
|
68
|
+
var rt = recordTitle != null ? String(recordTitle).trim() : '';
|
|
69
|
+
var fb = fallback != null ? String(fallback).trim() : '';
|
|
70
|
+
if (isElementNameAsTitleEnabled(sceneElement) && elName) {
|
|
71
|
+
return elName;
|
|
72
|
+
}
|
|
73
|
+
return rt || elName || fb || '';
|
|
74
|
+
}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
&-right {
|
|
38
38
|
display: flex;
|
|
39
39
|
flex-direction: row;
|
|
40
|
-
|
|
40
|
+
justify-content: start;
|
|
41
41
|
gap: 12px;
|
|
42
42
|
flex-shrink: 0;
|
|
43
43
|
}
|
|
@@ -45,19 +45,20 @@
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* 手机版宽度:左侧区域与右侧区域换行,避免挤在一行。
|
|
49
|
+
* RecordBoard(`.pisell-record-board-toolbar--grid`)顶栏单行布局见 `recordBoardToolbar.less`,此处排除。
|
|
49
50
|
*/
|
|
50
51
|
@media (max-width: 768px) {
|
|
51
52
|
.pisell-grid-pro-toolbar .toolbar-row {
|
|
52
53
|
flex-wrap: wrap;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
|
-
.pisell-grid-pro-toolbar .toolbar-row-left {
|
|
56
|
+
.pisell-grid-pro-toolbar:not(.pisell-record-board-toolbar--grid) .toolbar-row-left {
|
|
56
57
|
flex: 1 1 100%;
|
|
57
58
|
min-width: 0;
|
|
58
59
|
}
|
|
59
60
|
|
|
60
|
-
.pisell-grid-pro-toolbar .toolbar-row-right {
|
|
61
|
+
.pisell-grid-pro-toolbar:not(.pisell-record-board-toolbar--grid) .toolbar-row-right {
|
|
61
62
|
flex: 1 1 100%;
|
|
62
63
|
min-width: 0;
|
|
63
64
|
justify-content: flex-start;
|
|
@@ -91,7 +91,8 @@ function getDefaultRecordBoardContext(layoutType, selection, rowKey) {
|
|
|
91
91
|
calendarProps: undefined,
|
|
92
92
|
resourceWallProps: undefined,
|
|
93
93
|
dataSources: undefined,
|
|
94
|
-
gridDataSourceKey: undefined
|
|
94
|
+
gridDataSourceKey: undefined,
|
|
95
|
+
paginationRender: undefined
|
|
95
96
|
};
|
|
96
97
|
}
|
|
97
98
|
|
|
@@ -327,9 +328,14 @@ var PisellRecordBoard = function PisellRecordBoard(props) {
|
|
|
327
328
|
floorMapLayoutRef: floorMapLayoutRef,
|
|
328
329
|
floorMapFooter: floorMapFooter,
|
|
329
330
|
calendarProps: calendarProp,
|
|
330
|
-
resourceWallProps: resourceWallProp
|
|
331
|
+
resourceWallProps: resourceWallProp,
|
|
332
|
+
/**
|
|
333
|
+
* 业务方传入的自定义分页渲染:注入 ctx 后,shellFrame 内置的
|
|
334
|
+
* `<RecordBoardPagination />` 会优先使用它(详见 RecordBoardPagination 实现)。
|
|
335
|
+
*/
|
|
336
|
+
paginationRender: props.paginationRender
|
|
331
337
|
});
|
|
332
|
-
}, [layoutType, rowKeyProp, dataProp, dataSourcesProp, gridDataSourceKeyProp, loadingProp, totalProp, paginationProp, onPageChangeProp, searchParamsProp, onSearchProp, onResetProp, mergedChildComponentProps, internalSelectedKeys, internalSelectedRows, onSelectionChangeInternal, internalColumnVisibility, onColumnVisibilityChangeInternal, internalColumnOrder, onColumnOrderChangeInternal, fillHeight, scrollAreaHeight, filterResetKey, floorMapProp, floorMapLayoutContextProp, defaultBodyView, bodyViewSwitchable, floorMapLayoutRef, floorMapFooter, calendarProp, resourceWallProp, bodyView, setBodyView]);
|
|
338
|
+
}, [layoutType, rowKeyProp, dataProp, dataSourcesProp, gridDataSourceKeyProp, loadingProp, totalProp, paginationProp, onPageChangeProp, searchParamsProp, onSearchProp, onResetProp, mergedChildComponentProps, internalSelectedKeys, internalSelectedRows, onSelectionChangeInternal, internalColumnVisibility, onColumnVisibilityChangeInternal, internalColumnOrder, onColumnOrderChangeInternal, fillHeight, scrollAreaHeight, filterResetKey, floorMapProp, floorMapLayoutContextProp, defaultBodyView, bodyViewSwitchable, floorMapLayoutRef, floorMapFooter, calendarProp, resourceWallProp, bodyView, setBodyView, props.paginationRender]);
|
|
333
339
|
var content = /*#__PURE__*/React.createElement(RecordBoardProvider, {
|
|
334
340
|
value: contextValue
|
|
335
341
|
}, children);
|
|
@@ -2,7 +2,7 @@ import { type CalendarBookingSegmentInput } from './bookingCalendarDateUtils';
|
|
|
2
2
|
export declare function getDrawerStatusTheme(item: CalendarBookingSegmentInput, dateKey: string): "bg-red-700/88 border-b-4 border-red-300/55" | "bg-zinc-700/88 border-b-4 border-zinc-400/45" | "bg-zinc-700/88 border-b-4 border-red-400/75" | "bg-violet-700/92 border-b-4 border-amber-400/95" | "bg-violet-700/92 border-b-4 border-zinc-300/45" | "bg-violet-700/92 border-b-4 border-violet-300/30";
|
|
3
3
|
export declare function paymentTagClass(label: string, isLight?: boolean): "theme-success-chip border" | "bg-emerald-500 text-white" | "theme-warning-chip border" | "bg-amber-500 text-white" | "theme-info-chip border" | "bg-sky-500 text-white" | "theme-danger-chip border" | "bg-red-500 text-white";
|
|
4
4
|
export declare function fulfillmentTagClass(label: string, isLight?: boolean): "theme-success-chip border" | "theme-warning-chip border" | "bg-amber-500 text-white" | "theme-info-chip border" | "theme-danger-chip border" | "bg-emerald-600 text-white" | "bg-cyan-500 text-white" | "bg-red-600 text-white" | "border border-[var(--border-strong)] bg-[var(--bg-input)] theme-text-soft" | "bg-zinc-600 text-white" | "border border-[var(--brand-light)] bg-[var(--brand-surface)] theme-brand-text" | "bg-violet-600 text-white";
|
|
5
|
-
export declare function getBookingStateClasses(item: CalendarBookingSegmentInput, dateKey: string): "bg-
|
|
5
|
+
export declare function getBookingStateClasses(item: CalendarBookingSegmentInput, dateKey: string): "bg-zinc-700/55 border border-zinc-500/70 text-zinc-100 grayscale-[0.2]" | "bg-zinc-700/55 border border-red-500/70 text-zinc-200 grayscale-[0.15]" | "bg-violet-700/90 border border-amber-400/80 text-violet-50" | "bg-red-700/70 text-red-100" | "bg-violet-700/90 text-violet-50";
|
|
6
6
|
/**
|
|
7
7
|
* 月 / 周紧凑格:不按签到/取消/迟到等状态变色,仅区分 booking(默认紫)与 block(红)。
|
|
8
8
|
* 与 {@link getBookingStateClasses} 在无状态分支时一致,但不读取 `dateKey`。
|
|
@@ -13,7 +13,8 @@ import "./index.less";
|
|
|
13
13
|
var RecordBoardColumnSetting = function RecordBoardColumnSetting() {
|
|
14
14
|
var _ctx$childComponentPr, _ctx$childComponentPr2, _ctx$columnVisibility, _ctx$columnOrder;
|
|
15
15
|
var ctx = useRecordBoardContext();
|
|
16
|
-
var
|
|
16
|
+
var density = (_ctx$childComponentPr = ctx.childComponentProps) === null || _ctx$childComponentPr === void 0 || (_ctx$childComponentPr = _ctx$childComponentPr.toolBar) === null || _ctx$childComponentPr === void 0 ? void 0 : _ctx$childComponentPr.toolbarDensity;
|
|
17
|
+
var compactToolbar = density === 'compact' || density === 'compact-narrow';
|
|
17
18
|
var gridColumns = (_ctx$childComponentPr2 = ctx.childComponentProps) === null || _ctx$childComponentPr2 === void 0 || (_ctx$childComponentPr2 = _ctx$childComponentPr2.grid) === null || _ctx$childComponentPr2 === void 0 ? void 0 : _ctx$childComponentPr2.columns;
|
|
18
19
|
var columnVisibility = (_ctx$columnVisibility = ctx.columnVisibility) !== null && _ctx$columnVisibility !== void 0 ? _ctx$columnVisibility : {};
|
|
19
20
|
var onColumnVisibilityChange = ctx.onColumnVisibilityChange;
|
|
@@ -36,8 +36,15 @@ var RecordBoardPagination = function RecordBoardPagination(props) {
|
|
|
36
36
|
onChange: ctx.onPageChange
|
|
37
37
|
}, (_ctx$childComponentPr = (_ctx$childComponentPr2 = ctx.childComponentProps) === null || _ctx$childComponentPr2 === void 0 ? void 0 : _ctx$childComponentPr2.pagination) !== null && _ctx$childComponentPr !== void 0 ? _ctx$childComponentPr : {});
|
|
38
38
|
}, [pagination.pageNumber, pagination.pageSize, ctx.total, ctx.onPageChange, (_ctx$childComponentPr3 = ctx.childComponentProps) === null || _ctx$childComponentPr3 === void 0 ? void 0 : _ctx$childComponentPr3.pagination]);
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 渲染优先级:组件 `render` prop > 容器根 props 透传过来的 `ctx.paginationRender` > 默认 materials Pagination。
|
|
42
|
+
* 这样业务方(如 reservation hud 抽屉)只需在 `<PisellRecordBoard paginationRender={...} />`
|
|
43
|
+
* 就能彻底替换默认分页(含外层 50px 高边框容器、Previous/Next 大按钮)为 antd 原生 small Pagination。
|
|
44
|
+
*/
|
|
45
|
+
var effectiveRender = render !== null && render !== void 0 ? render : ctx.paginationRender;
|
|
46
|
+
if (typeof effectiveRender === 'function') {
|
|
47
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, effectiveRender(_objectSpread(_objectSpread({}, ctx), rest)));
|
|
41
48
|
}
|
|
42
49
|
|
|
43
50
|
// 无数据时不展示分页控件,但保留占位避免高度计算异常
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
var _excluded = ["
|
|
2
|
-
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
1
|
+
var _excluded = ["trigger", "triggerType", "displayType", "triggerText", "triggerIcon", "buttonText"],
|
|
2
|
+
_excluded2 = ["resourceWallSortFieldKeys", "list"];
|
|
4
3
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
5
4
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
5
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -8,15 +7,18 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
|
|
|
8
7
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
9
8
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
10
9
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
10
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
13
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
14
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
15
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
15
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
17
18
|
import React, { useCallback, useMemo } from 'react';
|
|
18
19
|
import classNames from 'classnames';
|
|
19
|
-
import { Button, Space, Segmented } from 'antd';
|
|
20
|
+
import { Button, Space, Segmented, Popover } from 'antd';
|
|
21
|
+
import { SettingOutlined, SearchOutlined } from '@ant-design/icons';
|
|
20
22
|
import SwitchVertical01 from '@pisell/icon/es/SwitchVertical01';
|
|
21
23
|
import PisellToolBar from "../../../pisellGridPro/ToolBar";
|
|
22
24
|
import { PisellFind } from "../../../pisellFind";
|
|
@@ -27,86 +29,14 @@ import ToolBarQuickFilter from "../ToolBarQuickFilter";
|
|
|
27
29
|
import RecordBoardColumnSetting from "../ColumnSetting";
|
|
28
30
|
import { useRecordBoardShellBodyMeta } from "../ShellBodyMetaContext";
|
|
29
31
|
import { useRecordBoardContext } from "../../hooks/useRecordBoardContext";
|
|
30
|
-
import { locales as utilsLocales } from '@pisell/utils';
|
|
31
32
|
import { getText } from "../../../../locales";
|
|
32
33
|
import { deriveFilterFromColumns, deriveSortFromColumns } from "../../utils/recordBoardColumns";
|
|
33
|
-
import {
|
|
34
|
+
import { matchesResourceWallStatusSortField } from "../ResourceWall/venueWallUtils";
|
|
35
|
+
import { DEFAULT_SEARCH_FIELD, FILTER_PARAMS_FIELD, RESOURCE_WALL_QUICK_FILTER_KEY, SORT_PARAMS_FIELD } from "./recordBoardToolBarConstants";
|
|
36
|
+
import { buildResourceWallStatusSortFallbackItem, getDefaultFilterValue, getSortButtonText, getViewCalendarLabel, getViewFloorMapLabel, getViewGridLabel, getViewResourceWallLabel } from "./recordBoardToolBarI18n";
|
|
34
37
|
import "./ToolBarFilter.less";
|
|
35
38
|
import "./recordBoardToolbar.less";
|
|
36
39
|
|
|
37
|
-
/** 与 Quick Filter 同源:优先 utils,若 utils 返回 key(未命中)则用 materials 再回退 */
|
|
38
|
-
function getSortButtonText() {
|
|
39
|
-
var key = 'pisell2.recordBoard.toolbar.sort';
|
|
40
|
-
var u = utilsLocales.getText(key);
|
|
41
|
-
return u && u !== key ? u : getText(key) || getText('sort-button-text');
|
|
42
|
-
}
|
|
43
|
-
/** 资源墙无状态列派生项时注入:下拉仅「状态 → 空闲优先 / 占用优先」,仍渲染排序按钮 */
|
|
44
|
-
function buildResourceWallStatusSortFallbackItem(sortConfig) {
|
|
45
|
-
var extras = _typeof(sortConfig) === 'object' && sortConfig !== null && Array.isArray(sortConfig.resourceWallSortFieldKeys) ? sortConfig.resourceWallSortFieldKeys.map(function (x) {
|
|
46
|
-
return String(x).trim();
|
|
47
|
-
}).filter(Boolean) : [];
|
|
48
|
-
var primaryKey = extras.length > 0 ? extras[0] : DEFAULT_RESOURCE_WALL_STATUS_SORT_FIELD_KEYS[0];
|
|
49
|
-
return {
|
|
50
|
-
name: primaryKey,
|
|
51
|
-
label: getText('pisell2.recordBoard.toolbar.sortStatus'),
|
|
52
|
-
isCustom: true,
|
|
53
|
-
getSortItems: function getSortItems() {
|
|
54
|
-
return [{
|
|
55
|
-
key: "".concat(primaryKey, ":asc:option"),
|
|
56
|
-
label: getText('pisell2.recordBoard.toolbar.sortStatusFreeFirst')
|
|
57
|
-
}, {
|
|
58
|
-
key: "".concat(primaryKey, ":desc:option"),
|
|
59
|
-
label: getText('pisell2.recordBoard.toolbar.sortStatusOccupiedFirst')
|
|
60
|
-
}];
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
function getFilterButtonText() {
|
|
65
|
-
var key = 'pisell2.recordBoard.toolbar.filter';
|
|
66
|
-
var u = utilsLocales.getText(key);
|
|
67
|
-
return u && u !== key ? u : getText(key) || getText('table-action-filter-button');
|
|
68
|
-
}
|
|
69
|
-
function getViewGridLabel() {
|
|
70
|
-
var key = 'pisell2.recordBoard.toolbar.viewGrid';
|
|
71
|
-
var u = utilsLocales.getText(key);
|
|
72
|
-
return u && u !== key ? u : getText(key) || 'Table';
|
|
73
|
-
}
|
|
74
|
-
function getViewFloorMapLabel() {
|
|
75
|
-
var key = 'pisell2.recordBoard.toolbar.viewFloorMap';
|
|
76
|
-
var u = utilsLocales.getText(key);
|
|
77
|
-
return u && u !== key ? u : getText(key) || 'Floor map';
|
|
78
|
-
}
|
|
79
|
-
function getViewCalendarLabel() {
|
|
80
|
-
var key = 'pisell2.recordBoard.toolbar.viewCalendar';
|
|
81
|
-
var u = utilsLocales.getText(key);
|
|
82
|
-
return u && u !== key ? u : getText(key) || 'Calendar';
|
|
83
|
-
}
|
|
84
|
-
function getViewResourceWallLabel() {
|
|
85
|
-
var key = 'pisell2.recordBoard.toolbar.viewResourceWall';
|
|
86
|
-
var u = utilsLocales.getText(key);
|
|
87
|
-
return u && u !== key ? u : getText(key) || 'Wall';
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/** 默认搜索参数字段名,与 context.searchParams 对应 */
|
|
91
|
-
var DEFAULT_SEARCH_FIELD = 'keyword';
|
|
92
|
-
|
|
93
|
-
/** 筛选在 searchParams 中的字段名 */
|
|
94
|
-
var FILTER_PARAMS_FIELD = 'filter';
|
|
95
|
-
|
|
96
|
-
/** 排序在 searchParams 中的字段名 */
|
|
97
|
-
var SORT_PARAMS_FIELD = 'sort';
|
|
98
|
-
|
|
99
|
-
/** 与 ResourceWall 默认 `filterFieldKey` 一致;预约等场景下快筛仅此一项时仅服务资源墙视图 */
|
|
100
|
-
var RESOURCE_WALL_QUICK_FILTER_KEY = 'resource_wall_resource_ids';
|
|
101
|
-
|
|
102
|
-
/** 筛选无值时使用的默认筛选项,避免点开为空;业务可通过 childComponentProps.toolBar.filter.defaultFilterValue 覆盖。文案通过 getText 多语言。 */
|
|
103
|
-
function getDefaultFilterValue() {
|
|
104
|
-
return {
|
|
105
|
-
quickFilter: [],
|
|
106
|
-
otherFilter: []
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
40
|
/**
|
|
111
41
|
* RecordBoard 下的工具栏:使用 PisellToolBar。
|
|
112
42
|
* 左侧默认 PisellFind(inline);右侧默认 PisellFilter。通过 childComponentProps.toolBar.search / toolBar.filter 为对象时透传对应组件 props,为 false 时不渲染。
|
|
@@ -140,8 +70,12 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
140
70
|
var allowBodyViewToggle = showTableFloorToggle && ctx.bodyViewSwitchable !== false;
|
|
141
71
|
var slots = (_ctx$childComponentPr = (_ctx$childComponentPr2 = ctx.childComponentProps) === null || _ctx$childComponentPr2 === void 0 ? void 0 : _ctx$childComponentPr2.toolBar) !== null && _ctx$childComponentPr !== void 0 ? _ctx$childComponentPr : {};
|
|
142
72
|
var toolbarDensity = (_slots$toolbarDensity = slots.toolbarDensity) !== null && _slots$toolbarDensity !== void 0 ? _slots$toolbarDensity : 'default';
|
|
143
|
-
|
|
144
|
-
|
|
73
|
+
var isCompactNarrow = toolbarDensity === 'compact-narrow';
|
|
74
|
+
/**
|
|
75
|
+
* compact 用 middle:比 50px Figma 略紧凑,又比 small 更易点按;与下方 Less 中 ~38px 工具栏样式一致。
|
|
76
|
+
* compact-narrow 进一步缩到 small:极窄抽屉内顶栏右侧为 search 图标 + 齿轮(列/排序/筛选/重置在齿轮内)。
|
|
77
|
+
*/
|
|
78
|
+
var barSize = isCompactNarrow ? 'small' : toolbarDensity === 'compact' ? 'middle' : 'large';
|
|
145
79
|
var keyword = (_searchParams$DEFAULT = searchParams === null || searchParams === void 0 ? void 0 : searchParams[DEFAULT_SEARCH_FIELD]) !== null && _searchParams$DEFAULT !== void 0 ? _searchParams$DEFAULT : '';
|
|
146
80
|
var handleSearch = useCallback(function (value) {
|
|
147
81
|
onSearch(_objectSpread(_objectSpread({}, searchParams), {}, _defineProperty({}, DEFAULT_SEARCH_FIELD, value || undefined)));
|
|
@@ -156,8 +90,40 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
156
90
|
var searchConfig = slots.search;
|
|
157
91
|
var hideSearch = searchConfig === false;
|
|
158
92
|
|
|
159
|
-
/**
|
|
160
|
-
|
|
93
|
+
/**
|
|
94
|
+
* - 默认:inline 模式(triggerType="input" + displayType="inline"),常驻输入框
|
|
95
|
+
* - compact-narrow:仅图标触发器(无 Find 文案),放在顶栏右侧与齿轮并排;
|
|
96
|
+
* Reset 收入齿轮 Popover。传 `trigger={<Button .../>}` 由 PisellLookup 注入 onClick。
|
|
97
|
+
*/
|
|
98
|
+
var searchButtonText = getText('pisell2.recordBoard.toolbar.find') || 'Find';
|
|
99
|
+
/**
|
|
100
|
+
* compact-narrow:业务侧 `toolBar.search` 常带 `triggerType=input` / `displayType=inline`,
|
|
101
|
+
* 整对象 spread 在 `triggerType=icon` 之后会把它覆盖回输入框;这里剔除会劫持展示形态的字段。
|
|
102
|
+
*/
|
|
103
|
+
var compactNarrowSearchRest = _typeof(searchConfig) === 'object' && searchConfig !== null ? function () {
|
|
104
|
+
var _ref = searchConfig,
|
|
105
|
+
_tr = _ref.trigger,
|
|
106
|
+
_tt = _ref.triggerType,
|
|
107
|
+
_dt = _ref.displayType,
|
|
108
|
+
_tx = _ref.triggerText,
|
|
109
|
+
_ti = _ref.triggerIcon,
|
|
110
|
+
_btn = _ref.buttonText,
|
|
111
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
112
|
+
return rest;
|
|
113
|
+
}() : {};
|
|
114
|
+
var searchNode = hideSearch ? null : isCompactNarrow ? /*#__PURE__*/React.createElement(PisellFind, _extends({}, compactNarrowSearchRest, {
|
|
115
|
+
value: keyword,
|
|
116
|
+
onChange: function onChange(v) {
|
|
117
|
+
return handleSearch(v);
|
|
118
|
+
},
|
|
119
|
+
onSearch: handleSearch,
|
|
120
|
+
size: barSize,
|
|
121
|
+
triggerType: "icon",
|
|
122
|
+
className: "record-board-toolbar-find-icon",
|
|
123
|
+
triggerIcon: /*#__PURE__*/React.createElement(SearchOutlined, {
|
|
124
|
+
"aria-label": searchButtonText
|
|
125
|
+
})
|
|
126
|
+
})) : /*#__PURE__*/React.createElement(PisellFind, _extends({
|
|
161
127
|
triggerType: "input",
|
|
162
128
|
displayType: "inline",
|
|
163
129
|
showConfirmButton: _typeof(searchConfig) === 'object' && searchConfig !== null && 'showConfirmButton' in searchConfig ? searchConfig.showConfirmButton : true,
|
|
@@ -173,10 +139,10 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
173
139
|
// 快筛统一放在左侧 QuickFilter;右侧 Filter 弹层只保留高级筛选,不展示快筛
|
|
174
140
|
var quickFilterConfig = slots.quickFilter;
|
|
175
141
|
var quickFilterList = useMemo(function () {
|
|
176
|
-
var
|
|
142
|
+
var _ref2;
|
|
177
143
|
if (quickFilterConfig === false) return [];
|
|
178
144
|
var fromConfig = _typeof(quickFilterConfig) === 'object' && quickFilterConfig !== null && Array.isArray(quickFilterConfig.filterList) ? quickFilterConfig.filterList : null;
|
|
179
|
-
var list = (
|
|
145
|
+
var list = (_ref2 = fromConfig !== null && fromConfig !== void 0 ? fromConfig : derivedFilterFromColumns === null || derivedFilterFromColumns === void 0 ? void 0 : derivedFilterFromColumns.quickFilter) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
180
146
|
var hideNames = _typeof(quickFilterConfig) === 'object' && quickFilterConfig !== null && Array.isArray(quickFilterConfig.hideFilterNamesOnFloorMap) ? quickFilterConfig.hideFilterNamesOnFloorMap : null;
|
|
181
147
|
if ((bodyView === 'floorMap' || bodyView === 'calendar' || bodyView === 'resourceWall') && showTableFloorToggle && hideNames != null && hideNames.length > 0) {
|
|
182
148
|
var hideSet = new Set(hideNames.map(String));
|
|
@@ -195,8 +161,8 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
195
161
|
*/
|
|
196
162
|
var leftBarQuickFilterList = useMemo(function () {
|
|
197
163
|
var withoutWall = quickFilterList.filter(function (item) {
|
|
198
|
-
var
|
|
199
|
-
return ((
|
|
164
|
+
var _ref3, _item$key;
|
|
165
|
+
return ((_ref3 = (_item$key = item.key) !== null && _item$key !== void 0 ? _item$key : item.name) !== null && _ref3 !== void 0 ? _ref3 : '') !== resourceWallFilterFieldKey;
|
|
200
166
|
});
|
|
201
167
|
if (bodyView === 'resourceWall') return [];
|
|
202
168
|
return withoutWall;
|
|
@@ -254,7 +220,7 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
254
220
|
className: "record-board-toolbar-top-left"
|
|
255
221
|
}, !hideBodyViewToggleInToolbarRow ? bodyViewToggle : null, quickFilterNode ? /*#__PURE__*/React.createElement("div", {
|
|
256
222
|
className: "record-board-toolbar-quick-filter-slot"
|
|
257
|
-
}, quickFilterNode) : null, searchNode && bodyView !== 'resourceWall' ? /*#__PURE__*/React.createElement("div", {
|
|
223
|
+
}, quickFilterNode) : null, searchNode && bodyView !== 'resourceWall' && !isCompactNarrow ? /*#__PURE__*/React.createElement("div", {
|
|
258
224
|
className: "record-board-toolbar-find-wrap"
|
|
259
225
|
}, searchNode) : null, slots.topLeft ? /*#__PURE__*/React.createElement("div", {
|
|
260
226
|
className: "record-board-toolbar-extra-top-left"
|
|
@@ -281,10 +247,10 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
281
247
|
return [buildResourceWallStatusSortFallbackItem(sortConfig)];
|
|
282
248
|
}, [sortConfig, derivedSortFromColumnsList, bodyView]);
|
|
283
249
|
var sortSpreadRest = _typeof(sortConfig) === 'object' && sortConfig !== null ? function () {
|
|
284
|
-
var
|
|
285
|
-
_w =
|
|
286
|
-
_omitList =
|
|
287
|
-
rest = _objectWithoutProperties(
|
|
250
|
+
var _ref4 = sortConfig,
|
|
251
|
+
_w = _ref4.resourceWallSortFieldKeys,
|
|
252
|
+
_omitList = _ref4.list,
|
|
253
|
+
rest = _objectWithoutProperties(_ref4, _excluded2);
|
|
288
254
|
return rest;
|
|
289
255
|
}() : {};
|
|
290
256
|
var sortNode = hideSort ? null : /*#__PURE__*/React.createElement(Sort, _extends({}, sortSpreadRest, {
|
|
@@ -313,12 +279,12 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
313
279
|
// 若 otherFilter 来自 base(如 sessionStorage 恢复),JSON 会丢失函数(如 other.component),导致 custom 项空白;用 config 同 key 项补回 component/label 等
|
|
314
280
|
if (otherFilter === base.otherFilter && Array.isArray(defaultFilterFromConfig === null || defaultFilterFromConfig === void 0 ? void 0 : defaultFilterFromConfig.otherFilter) && defaultFilterFromConfig.otherFilter.length > 0) {
|
|
315
281
|
var configMap = new Map(defaultFilterFromConfig.otherFilter.map(function (c) {
|
|
316
|
-
var
|
|
317
|
-
return [(
|
|
282
|
+
var _ref5, _c$key;
|
|
283
|
+
return [(_ref5 = (_c$key = c.key) !== null && _c$key !== void 0 ? _c$key : c.name) !== null && _ref5 !== void 0 ? _ref5 : '', c];
|
|
318
284
|
}));
|
|
319
285
|
otherFilter = otherFilter.map(function (item) {
|
|
320
|
-
var
|
|
321
|
-
var key = (
|
|
286
|
+
var _ref6, _item$key2, _configItem$label, _configItem$other$pla, _configItem$other, _item$other;
|
|
287
|
+
var key = (_ref6 = (_item$key2 = item.key) !== null && _item$key2 !== void 0 ? _item$key2 : item.name) !== null && _ref6 !== void 0 ? _ref6 : '';
|
|
322
288
|
var configItem = configMap.get(key);
|
|
323
289
|
if (!configItem) return item;
|
|
324
290
|
// 优先用 config 的 label/placeholder(当前语言),避免 session 恢复的旧语言覆盖
|
|
@@ -339,8 +305,8 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
339
305
|
if (bodyView === 'resourceWall') {
|
|
340
306
|
outQuick = [];
|
|
341
307
|
outOther = quickFilterList.filter(function (item) {
|
|
342
|
-
var
|
|
343
|
-
return ((
|
|
308
|
+
var _ref7, _item$key3;
|
|
309
|
+
return ((_ref7 = (_item$key3 = item.key) !== null && _item$key3 !== void 0 ? _item$key3 : item.name) !== null && _ref7 !== void 0 ? _ref7 : '') === resourceWallFilterFieldKey;
|
|
344
310
|
}).map(function (item) {
|
|
345
311
|
return _objectSpread({}, item);
|
|
346
312
|
});
|
|
@@ -383,13 +349,45 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
383
349
|
buttonClassName: "record-board-toolbar-filter-btn"
|
|
384
350
|
}));
|
|
385
351
|
var showColumnSetting = slots.columnSetting !== false && bodyView !== 'resourceWall' && Array.isArray(gridColumns) && gridColumns.length > 0;
|
|
386
|
-
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* compact-narrow:列显示 / 排序 / 筛选 / 重置 收入齿轮 Popover;顶栏右侧仅保留搜索图标 + 齿轮。
|
|
355
|
+
*/
|
|
356
|
+
var settingsGearPopoverContent = isCompactNarrow ? /*#__PURE__*/React.createElement("div", {
|
|
357
|
+
className: "record-board-toolbar-settings-gear-popover"
|
|
358
|
+
}, showColumnSetting ? /*#__PURE__*/React.createElement("div", {
|
|
359
|
+
className: "record-board-toolbar-settings-gear-row"
|
|
360
|
+
}, /*#__PURE__*/React.createElement(RecordBoardColumnSetting, null)) : null, sortNode ? /*#__PURE__*/React.createElement("div", {
|
|
361
|
+
className: "record-board-toolbar-settings-gear-row"
|
|
362
|
+
}, sortNode) : null, filterNode ? /*#__PURE__*/React.createElement("div", {
|
|
363
|
+
className: "record-board-toolbar-settings-gear-row"
|
|
364
|
+
}, filterNode) : null, bodyView !== 'resourceWall' ? /*#__PURE__*/React.createElement("div", {
|
|
365
|
+
className: "record-board-toolbar-settings-gear-row"
|
|
366
|
+
}, /*#__PURE__*/React.createElement(ToolBarReset, {
|
|
367
|
+
size: barSize
|
|
368
|
+
})) : null) : null;
|
|
369
|
+
var topRight = compactFloorMapToolbar ? null : isCompactNarrow ? /*#__PURE__*/React.createElement(Space, {
|
|
370
|
+
className: "record-board-toolbar-right-actions",
|
|
371
|
+
size: 4
|
|
372
|
+
}, bodyView !== 'resourceWall' && searchNode ? searchNode : null, settingsGearPopoverContent ? /*#__PURE__*/React.createElement(Popover, {
|
|
373
|
+
content: settingsGearPopoverContent,
|
|
374
|
+
trigger: "click",
|
|
375
|
+
placement: "bottomRight",
|
|
376
|
+
arrow: false,
|
|
377
|
+
overlayClassName: "record-board-toolbar-settings-gear-overlay"
|
|
378
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
379
|
+
className: "record-board-toolbar-settings-gear-btn",
|
|
380
|
+
icon: /*#__PURE__*/React.createElement(SettingOutlined, null),
|
|
381
|
+
size: barSize,
|
|
382
|
+
type: "text",
|
|
383
|
+
"aria-label": getText('pisell2.recordBoard.toolbar.moreSettings') || 'More settings'
|
|
384
|
+
})) : null, slots.topRight) : /*#__PURE__*/React.createElement(Space, {
|
|
387
385
|
className: "record-board-toolbar-right-actions"
|
|
388
386
|
}, showColumnSetting ? /*#__PURE__*/React.createElement(RecordBoardColumnSetting, null) : null, sortNode, filterNode, bodyView !== 'resourceWall' ? /*#__PURE__*/React.createElement(ToolBarReset, {
|
|
389
387
|
size: barSize
|
|
390
388
|
}) : null, slots.topRight);
|
|
391
389
|
return /*#__PURE__*/React.createElement(PisellToolBar, {
|
|
392
|
-
className: classNames(bodyView === 'floorMap' && 'pisell-record-board-toolbar--floor-map', bodyView === 'calendar' && 'pisell-record-board-toolbar--calendar', bodyView === 'resourceWall' && 'pisell-record-board-toolbar--resource-wall', bodyView === 'grid' && 'pisell-record-board-toolbar--grid', toolbarDensity === 'compact' && 'pisell-record-board-toolbar--compact', slots.className),
|
|
390
|
+
className: classNames(bodyView === 'floorMap' && 'pisell-record-board-toolbar--floor-map', bodyView === 'calendar' && 'pisell-record-board-toolbar--calendar', bodyView === 'resourceWall' && 'pisell-record-board-toolbar--resource-wall', bodyView === 'grid' && 'pisell-record-board-toolbar--grid', toolbarDensity === 'compact' && 'pisell-record-board-toolbar--compact', isCompactNarrow && 'pisell-record-board-toolbar--compact pisell-record-board-toolbar--compact-narrow', slots.className),
|
|
393
391
|
style: slots.style,
|
|
394
392
|
tabs: slots.tabs,
|
|
395
393
|
topLeft: topLeft,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** 与 RecordBoard ToolBar 行为绑定的 searchParams 字段名 */
|
|
2
|
+
export declare const DEFAULT_SEARCH_FIELD = "keyword";
|
|
3
|
+
/** 筛选在 searchParams 中的字段名 */
|
|
4
|
+
export declare const FILTER_PARAMS_FIELD = "filter";
|
|
5
|
+
/** 排序在 searchParams 中的字段名 */
|
|
6
|
+
export declare const SORT_PARAMS_FIELD = "sort";
|
|
7
|
+
/** 与 ResourceWall 默认 `filterFieldKey` 一致 */
|
|
8
|
+
export declare const RESOURCE_WALL_QUICK_FILTER_KEY = "resource_wall_resource_ids";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** 与 RecordBoard ToolBar 行为绑定的 searchParams 字段名 */
|
|
2
|
+
|
|
3
|
+
export var DEFAULT_SEARCH_FIELD = 'keyword';
|
|
4
|
+
|
|
5
|
+
/** 筛选在 searchParams 中的字段名 */
|
|
6
|
+
export var FILTER_PARAMS_FIELD = 'filter';
|
|
7
|
+
|
|
8
|
+
/** 排序在 searchParams 中的字段名 */
|
|
9
|
+
export var SORT_PARAMS_FIELD = 'sort';
|
|
10
|
+
|
|
11
|
+
/** 与 ResourceWall 默认 `filterFieldKey` 一致 */
|
|
12
|
+
export var RESOURCE_WALL_QUICK_FILTER_KEY = 'resource_wall_resource_ids';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SortItemProps } from '../../../sort/types';
|
|
2
|
+
import type { FilterValueType } from '../../../filter/components/FilterButton/types';
|
|
3
|
+
/** 与 Quick Filter 同源:优先 utils,若 utils 返回 key(未命中)则用 materials 再回退 */
|
|
4
|
+
export declare function getSortButtonText(): string;
|
|
5
|
+
/** 资源墙无状态列派生项时注入:下拉仅「状态 → 空闲优先 / 占用优先」,仍渲染排序按钮 */
|
|
6
|
+
export declare function buildResourceWallStatusSortFallbackItem(sortConfig: unknown): SortItemProps;
|
|
7
|
+
export declare function getFilterButtonText(): string;
|
|
8
|
+
export declare function getViewGridLabel(): string;
|
|
9
|
+
export declare function getViewFloorMapLabel(): string;
|
|
10
|
+
export declare function getViewCalendarLabel(): string;
|
|
11
|
+
export declare function getViewResourceWallLabel(): string;
|
|
12
|
+
/** 筛选无值时使用的默认筛选项;业务可通过 childComponentProps.toolBar.filter.defaultFilterValue 覆盖 */
|
|
13
|
+
export declare function getDefaultFilterValue(): FilterValueType;
|