@pisell/materials 6.11.28 → 6.11.30
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 +16 -16
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +16 -16
- package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +0 -1
- package/es/components/PisellCards/index.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/appVersionControl/index.d.ts +0 -1
- package/es/components/auto-complete-number/index.d.ts +0 -1
- package/es/components/badge/index.d.ts +0 -1
- package/es/components/batch-editor/fields/index.d.ts +0 -1
- package/es/components/batch-editor/index.d.ts +0 -1
- package/es/components/calendar/index.d.ts +0 -1
- package/es/components/checkbox/index.d.ts +0 -1
- package/es/components/classicLayout/index.d.ts +0 -1
- package/es/components/colorPicker/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +6 -6
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
- package/es/components/drag-sort-tree/index.d.ts +0 -1
- package/es/components/dropdown/index.d.ts +0 -1
- 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/page/index.d.ts +0 -1
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
- package/es/components/pisellCard/index.d.ts +0 -1
- package/es/components/pisellDatePicker/index.d.ts +0 -1
- package/es/components/pisellFilter/index.d.ts +0 -1
- package/es/components/pisellInformationEntry/Scan/index.d.ts +0 -1
- package/es/components/pisellInput/index.d.ts +0 -1
- package/es/components/pisellRecordBoard/PisellRecordBoard.js +8 -5
- package/es/components/pisellRecordBoard/index.d.ts +7 -2
- package/es/components/pisellRecordBoard/index.js +4 -2
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.js +324 -312
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +18 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.d.ts +13 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.js +37 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +9 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +157 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +8 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.js +9 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +14 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +513 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallMarquee.less +52 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +14 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +82 -0
- package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +5 -2
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +58 -19
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +5 -3
- package/es/components/pisellRecordBoard/shellFrame/index.d.ts +4 -3
- package/es/components/pisellRecordBoard/shellFrame/index.js +49 -11
- package/es/components/pisellRecordBoard/types.d.ts +78 -2
- package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +5 -2
- package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +18 -0
- package/es/components/pisellReservationSchedule/locales.d.ts +43 -0
- package/es/components/pisellReservationSchedule/types.d.ts +52 -0
- package/es/components/pisellReservationScheduleBand/types.d.ts +61 -0
- package/es/components/pisellTimeNavigator/utils/index.d.ts +41 -0
- package/es/components/pisellUpload/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
- package/es/components/productCard/components/Divider/index.d.ts +0 -1
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -1
- package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -1
- package/es/components/radio/index.d.ts +0 -1
- package/es/components/segmented/index.d.ts +0 -1
- package/es/components/select-time/RightPanel/index.d.ts +0 -1
- package/es/components/select-time/index.d.ts +0 -1
- package/es/components/skeleton/index.d.ts +0 -1
- package/es/components/slider/index.d.ts +0 -1
- package/es/components/sort/components/InlineMenu/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
- package/es/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
- package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -1
- package/es/components/table/Summary/index.d.ts +0 -1
- package/es/components/table/Table/fields/date/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/date/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/index.d.ts +0 -1
- package/es/components/table/Table/fields/index.d.ts +2 -2
- package/es/components/table/Table/fields/link/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/link/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/link/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/Sort/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/TableFilter/SortIcon.d.ts +0 -1
- package/es/components/time-picker/index.d.ts +0 -1
- package/es/components/upload/index.d.ts +0 -1
- package/es/components/versionSelect/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Time/utils.d.ts +0 -1
- package/es/components/walletCard/Guest/index.d.ts +0 -1
- package/es/components/walletCard/Guide/index.d.ts +0 -1
- package/es/index.d.ts +2 -1
- package/es/index.js +1 -0
- package/es/locales/en-US.d.ts +389 -0
- package/es/locales/en-US.js +1 -0
- package/es/locales/ja.d.ts +358 -0
- package/es/locales/ja.js +1 -0
- package/es/locales/pt.d.ts +358 -0
- package/es/locales/pt.js +1 -0
- package/es/locales/zh-CN.d.ts +384 -0
- package/es/locales/zh-CN.js +1 -0
- package/es/locales/zh-TW.d.ts +384 -0
- package/es/locales/zh-TW.js +1 -0
- package/es/pisell-materials.tw.css +1 -1
- package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +0 -1
- package/lib/components/PisellCards/index.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/appVersionControl/index.d.ts +0 -1
- package/lib/components/auto-complete-number/index.d.ts +0 -1
- package/lib/components/badge/index.d.ts +0 -1
- package/lib/components/batch-editor/fields/index.d.ts +0 -1
- package/lib/components/batch-editor/index.d.ts +0 -1
- package/lib/components/calendar/index.d.ts +0 -1
- package/lib/components/checkbox/index.d.ts +0 -1
- package/lib/components/classicLayout/index.d.ts +0 -1
- package/lib/components/colorPicker/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +6 -6
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
- package/lib/components/drag-sort-tree/index.d.ts +0 -1
- package/lib/components/dropdown/index.d.ts +0 -1
- 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/page/index.d.ts +0 -1
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
- package/lib/components/pisellCard/index.d.ts +0 -1
- package/lib/components/pisellDatePicker/index.d.ts +0 -1
- package/lib/components/pisellFilter/index.d.ts +0 -1
- package/lib/components/pisellInformationEntry/Scan/index.d.ts +0 -1
- package/lib/components/pisellInput/index.d.ts +0 -1
- package/lib/components/pisellRecordBoard/PisellRecordBoard.js +8 -3
- package/lib/components/pisellRecordBoard/index.d.ts +7 -2
- package/lib/components/pisellRecordBoard/index.js +4 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.js +143 -215
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +18 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.d.ts +13 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.js +60 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +9 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +163 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.js +27 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +14 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +636 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallMarquee.less +52 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +14 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +110 -0
- package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +5 -2
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +45 -14
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +5 -3
- package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +4 -3
- package/lib/components/pisellRecordBoard/shellFrame/index.js +57 -7
- package/lib/components/pisellRecordBoard/types.d.ts +78 -2
- package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +5 -2
- package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +18 -0
- package/lib/components/pisellReservationSchedule/locales.d.ts +43 -0
- package/lib/components/pisellReservationSchedule/types.d.ts +52 -0
- package/lib/components/pisellReservationScheduleBand/types.d.ts +61 -0
- package/lib/components/pisellTimeNavigator/utils/index.d.ts +41 -0
- package/lib/components/pisellUpload/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
- package/lib/components/productCard/components/Divider/index.d.ts +0 -1
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -1
- package/lib/components/radio/index.d.ts +0 -1
- package/lib/components/segmented/index.d.ts +0 -1
- package/lib/components/select-time/RightPanel/index.d.ts +0 -1
- package/lib/components/select-time/index.d.ts +0 -1
- package/lib/components/skeleton/index.d.ts +0 -1
- package/lib/components/slider/index.d.ts +0 -1
- package/lib/components/sort/components/InlineMenu/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
- package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -1
- package/lib/components/table/Summary/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/index.d.ts +0 -1
- package/lib/components/table/Table/fields/index.d.ts +2 -2
- package/lib/components/table/Table/fields/link/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/link/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/link/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/Sort/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/TableFilter/SortIcon.d.ts +0 -1
- package/lib/components/time-picker/index.d.ts +0 -1
- package/lib/components/upload/index.d.ts +0 -1
- package/lib/components/versionSelect/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Time/utils.d.ts +0 -1
- package/lib/components/walletCard/Guest/index.d.ts +0 -1
- package/lib/components/walletCard/Guide/index.d.ts +0 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +5 -0
- package/lib/locales/en-US.d.ts +389 -0
- package/lib/locales/en-US.js +1 -0
- package/lib/locales/ja.d.ts +358 -0
- package/lib/locales/ja.js +1 -0
- package/lib/locales/pt.d.ts +358 -0
- package/lib/locales/pt.js +1 -0
- package/lib/locales/zh-CN.d.ts +384 -0
- package/lib/locales/zh-CN.js +1 -0
- package/lib/locales/zh-TW.d.ts +384 -0
- package/lib/locales/zh-TW.js +1 -0
- package/lib/pisell-materials.tw.css +1 -1
- package/package.json +3 -3
|
@@ -50,6 +50,11 @@ function getViewCalendarLabel() {
|
|
|
50
50
|
var u = utilsLocales.getText(key);
|
|
51
51
|
return u && u !== key ? u : getText(key) || 'Calendar';
|
|
52
52
|
}
|
|
53
|
+
function getViewResourceWallLabel() {
|
|
54
|
+
var key = 'pisell2.recordBoard.toolbar.viewResourceWall';
|
|
55
|
+
var u = utilsLocales.getText(key);
|
|
56
|
+
return u && u !== key ? u : getText(key) || 'Wall';
|
|
57
|
+
}
|
|
53
58
|
|
|
54
59
|
/** 默认搜索参数字段名,与 context.searchParams 对应 */
|
|
55
60
|
var DEFAULT_SEARCH_FIELD = 'keyword';
|
|
@@ -60,6 +65,9 @@ var FILTER_PARAMS_FIELD = 'filter';
|
|
|
60
65
|
/** 排序在 searchParams 中的字段名 */
|
|
61
66
|
var SORT_PARAMS_FIELD = 'sort';
|
|
62
67
|
|
|
68
|
+
/** 与 ResourceWall 默认 `filterFieldKey` 一致;预约等场景下快筛仅此一项时仅服务资源墙视图 */
|
|
69
|
+
var RESOURCE_WALL_QUICK_FILTER_KEY = 'resource_wall_resource_ids';
|
|
70
|
+
|
|
63
71
|
/** 筛选无值时使用的默认筛选项,避免点开为空;业务可通过 childComponentProps.toolBar.filter.defaultFilterValue 覆盖。文案通过 getText 多语言。 */
|
|
64
72
|
function getDefaultFilterValue() {
|
|
65
73
|
return {
|
|
@@ -74,7 +82,7 @@ function getDefaultFilterValue() {
|
|
|
74
82
|
* 可透传 topLeft、topRight、bottomLeft、bottomRight、tabs。
|
|
75
83
|
*/
|
|
76
84
|
var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
77
|
-
var _shellMeta$hasGridCon, _shellMeta$hasFloorMa, _shellMeta$hasCalenda, _shellMeta$effectiveF, _ctx$childComponentPr, _ctx$childComponentPr2, _slots$toolbarDensity, _searchParams$DEFAULT, _ctx$childComponentPr3, _formFiltersPrefix, _filterResetKey;
|
|
85
|
+
var _ctx$resourceWallProp, _ctx$resourceWallProp2, _shellMeta$hasGridCon, _shellMeta$hasFloorMa, _shellMeta$hasCalenda, _shellMeta$hasResourc, _shellMeta$effectiveF, _ctx$childComponentPr, _ctx$childComponentPr2, _slots$toolbarDensity, _searchParams$DEFAULT, _ctx$childComponentPr3, _formFiltersPrefix, _filterResetKey;
|
|
78
86
|
var ctx = useRecordBoardContext({
|
|
79
87
|
displayName: 'toolBar'
|
|
80
88
|
});
|
|
@@ -83,15 +91,18 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
83
91
|
onSearch = ctx.onSearch,
|
|
84
92
|
bodyView = ctx.bodyView,
|
|
85
93
|
setBodyView = ctx.setBodyView;
|
|
94
|
+
var resourceWallFilterFieldKey = (_ctx$resourceWallProp = (_ctx$resourceWallProp2 = ctx.resourceWallProps) === null || _ctx$resourceWallProp2 === void 0 ? void 0 : _ctx$resourceWallProp2.filterFieldKey) !== null && _ctx$resourceWallProp !== void 0 ? _ctx$resourceWallProp : RESOURCE_WALL_QUICK_FILTER_KEY;
|
|
86
95
|
/** ShellFrame 内解析:多子视图(表格 / 平面图 / 日历)时渲染 Segmented */
|
|
87
96
|
var hasGridInShell = (_shellMeta$hasGridCon = shellMeta === null || shellMeta === void 0 ? void 0 : shellMeta.hasGridContent) !== null && _shellMeta$hasGridCon !== void 0 ? _shellMeta$hasGridCon : true;
|
|
88
97
|
var hasFloorInShell = (_shellMeta$hasFloorMa = shellMeta === null || shellMeta === void 0 ? void 0 : shellMeta.hasFloorMapSlot) !== null && _shellMeta$hasFloorMa !== void 0 ? _shellMeta$hasFloorMa : ctx.floorMapProps != null;
|
|
89
98
|
var hasCalendarInShell = (_shellMeta$hasCalenda = shellMeta === null || shellMeta === void 0 ? void 0 : shellMeta.hasCalendarSlot) !== null && _shellMeta$hasCalenda !== void 0 ? _shellMeta$hasCalenda : ctx.calendarProps != null;
|
|
99
|
+
var hasResourceWallInShell = (_shellMeta$hasResourc = shellMeta === null || shellMeta === void 0 ? void 0 : shellMeta.hasResourceWallSlot) !== null && _shellMeta$hasResourc !== void 0 ? _shellMeta$hasResourc : ctx.resourceWallProps != null;
|
|
90
100
|
var floorForToggle = (_shellMeta$effectiveF = shellMeta === null || shellMeta === void 0 ? void 0 : shellMeta.effectiveFloorMapProps) !== null && _shellMeta$effectiveF !== void 0 ? _shellMeta$effectiveF : ctx.floorMapProps;
|
|
91
101
|
var canFloor = hasFloorInShell && floorForToggle != null;
|
|
92
102
|
var canCalendar = hasCalendarInShell;
|
|
103
|
+
var canResourceWall = hasResourceWallInShell;
|
|
93
104
|
var canGrid = hasGridInShell;
|
|
94
|
-
var bodyViewOptionCount = (canGrid ? 1 : 0) + (canFloor ? 1 : 0) + (canCalendar ? 1 : 0);
|
|
105
|
+
var bodyViewOptionCount = (canGrid ? 1 : 0) + (canFloor ? 1 : 0) + (canCalendar ? 1 : 0) + (canResourceWall ? 1 : 0);
|
|
95
106
|
/** 至少两种主区时出现切换器(兼容原「仅表格+平面图」) */
|
|
96
107
|
var showTableFloorToggle = bodyViewOptionCount >= 2;
|
|
97
108
|
/** 业务可关闭多视图切换(如场控仅平面图),此时不渲染 Segmented */
|
|
@@ -136,7 +147,7 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
136
147
|
var fromConfig = _typeof(quickFilterConfig) === 'object' && quickFilterConfig !== null && Array.isArray(quickFilterConfig.filterList) ? quickFilterConfig.filterList : null;
|
|
137
148
|
var list = (_ref = fromConfig !== null && fromConfig !== void 0 ? fromConfig : derivedFilterFromColumns === null || derivedFilterFromColumns === void 0 ? void 0 : derivedFilterFromColumns.quickFilter) !== null && _ref !== void 0 ? _ref : [];
|
|
138
149
|
var hideNames = _typeof(quickFilterConfig) === 'object' && quickFilterConfig !== null && Array.isArray(quickFilterConfig.hideFilterNamesOnFloorMap) ? quickFilterConfig.hideFilterNamesOnFloorMap : null;
|
|
139
|
-
if ((bodyView === 'floorMap' || bodyView === 'calendar') && showTableFloorToggle && hideNames != null && hideNames.length > 0) {
|
|
150
|
+
if ((bodyView === 'floorMap' || bodyView === 'calendar' || bodyView === 'resourceWall') && showTableFloorToggle && hideNames != null && hideNames.length > 0) {
|
|
140
151
|
var hideSet = new Set(hideNames.map(String));
|
|
141
152
|
list = list.filter(function (item) {
|
|
142
153
|
var _item$name;
|
|
@@ -146,9 +157,22 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
146
157
|
}
|
|
147
158
|
return list;
|
|
148
159
|
}, [quickFilterConfig, derivedFilterFromColumns === null || derivedFilterFromColumns === void 0 ? void 0 : derivedFilterFromColumns.quickFilter, bodyView, showTableFloorToggle]);
|
|
149
|
-
|
|
160
|
+
/**
|
|
161
|
+
* 资源墙专用快筛不占用顶栏;resourceWall 时顶栏快筛整行收起(改走右侧 Filter)。
|
|
162
|
+
* 资源墙顶栏仅保留 Sort + Filter(Find / Reset 隐藏)。
|
|
163
|
+
* 其它视图从顶栏剔除该字段,避免与表格/平面图等共用 toolBar.quickFilter 时误展示。
|
|
164
|
+
*/
|
|
165
|
+
var leftBarQuickFilterList = useMemo(function () {
|
|
166
|
+
var withoutWall = quickFilterList.filter(function (item) {
|
|
167
|
+
var _ref2, _item$key;
|
|
168
|
+
return ((_ref2 = (_item$key = item.key) !== null && _item$key !== void 0 ? _item$key : item.name) !== null && _ref2 !== void 0 ? _ref2 : '') !== resourceWallFilterFieldKey;
|
|
169
|
+
});
|
|
170
|
+
if (bodyView === 'resourceWall') return [];
|
|
171
|
+
return withoutWall;
|
|
172
|
+
}, [bodyView, quickFilterList, resourceWallFilterFieldKey]);
|
|
173
|
+
var showQuickFilterLeft = leftBarQuickFilterList.length > 0;
|
|
150
174
|
var quickFilterNode = showQuickFilterLeft ? /*#__PURE__*/React.createElement(ToolBarQuickFilter, {
|
|
151
|
-
filterList:
|
|
175
|
+
filterList: leftBarQuickFilterList,
|
|
152
176
|
formFiltersPrefix: _typeof(quickFilterConfig) === 'object' && quickFilterConfig !== null ? (_formFiltersPrefix = quickFilterConfig.formFiltersPrefix) !== null && _formFiltersPrefix !== void 0 ? _formFiltersPrefix : '' : '',
|
|
153
177
|
size: _typeof(quickFilterConfig) === 'object' && quickFilterConfig !== null ? quickFilterConfig.size : undefined
|
|
154
178
|
}) : null;
|
|
@@ -162,12 +186,18 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
162
186
|
label: getViewCalendarLabel(),
|
|
163
187
|
value: 'calendar'
|
|
164
188
|
});
|
|
189
|
+
if (canResourceWall) {
|
|
190
|
+
opts.push({
|
|
191
|
+
label: getViewResourceWallLabel(),
|
|
192
|
+
value: 'resourceWall'
|
|
193
|
+
});
|
|
194
|
+
}
|
|
165
195
|
if (canGrid) opts.push({
|
|
166
196
|
label: getViewGridLabel(),
|
|
167
197
|
value: 'grid'
|
|
168
198
|
});
|
|
169
199
|
return opts;
|
|
170
|
-
}, [canFloor, canCalendar, canGrid]);
|
|
200
|
+
}, [canFloor, canCalendar, canResourceWall, canGrid]);
|
|
171
201
|
var bodyViewToggle = allowBodyViewToggle ? /*#__PURE__*/React.createElement(Segmented, {
|
|
172
202
|
className: "record-board-toolbar-body-view-segmented",
|
|
173
203
|
size: barSize,
|
|
@@ -185,7 +215,7 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
185
215
|
var compactFloorMapToolbar = (bodyView === 'floorMap' || bodyView === 'calendar') && showTableFloorToggle;
|
|
186
216
|
|
|
187
217
|
/**
|
|
188
|
-
* 仅非表格且 tabs 内含 ScheduleBand
|
|
218
|
+
* 仅非表格且 tabs 内含 ScheduleBand(平面图 / 日历)时隐藏顶行切换器;表格 / 资源墙 tabs 无 ScheduleBand,
|
|
189
219
|
* 切换器回到 Find 左侧(与 PisellReservation 表格态一致)。
|
|
190
220
|
*/
|
|
191
221
|
var hideBodyViewToggleInToolbarRow = allowBodyViewToggle && Boolean(slots.tabs) && (bodyView === 'floorMap' || bodyView === 'calendar');
|
|
@@ -193,7 +223,7 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
193
223
|
className: "record-board-toolbar-top-left"
|
|
194
224
|
}, !hideBodyViewToggleInToolbarRow ? bodyViewToggle : null, quickFilterNode ? /*#__PURE__*/React.createElement("div", {
|
|
195
225
|
className: "record-board-toolbar-quick-filter-slot"
|
|
196
|
-
}, quickFilterNode) : null, searchNode ? /*#__PURE__*/React.createElement("div", {
|
|
226
|
+
}, quickFilterNode) : null, searchNode && bodyView !== 'resourceWall' ? /*#__PURE__*/React.createElement("div", {
|
|
197
227
|
className: "record-board-toolbar-find-wrap"
|
|
198
228
|
}, searchNode) : null, slots.topLeft ? /*#__PURE__*/React.createElement("div", {
|
|
199
229
|
className: "record-board-toolbar-extra-top-left"
|
|
@@ -234,12 +264,12 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
234
264
|
// 若 otherFilter 来自 base(如 sessionStorage 恢复),JSON 会丢失函数(如 other.component),导致 custom 项空白;用 config 同 key 项补回 component/label 等
|
|
235
265
|
if (otherFilter === base.otherFilter && Array.isArray(defaultFilterFromConfig === null || defaultFilterFromConfig === void 0 ? void 0 : defaultFilterFromConfig.otherFilter) && defaultFilterFromConfig.otherFilter.length > 0) {
|
|
236
266
|
var configMap = new Map(defaultFilterFromConfig.otherFilter.map(function (c) {
|
|
237
|
-
var
|
|
238
|
-
return [(
|
|
267
|
+
var _ref3, _c$key;
|
|
268
|
+
return [(_ref3 = (_c$key = c.key) !== null && _c$key !== void 0 ? _c$key : c.name) !== null && _ref3 !== void 0 ? _ref3 : '', c];
|
|
239
269
|
}));
|
|
240
270
|
otherFilter = otherFilter.map(function (item) {
|
|
241
|
-
var
|
|
242
|
-
var key = (
|
|
271
|
+
var _ref4, _item$key2, _configItem$label, _configItem$other$pla, _configItem$other, _item$other;
|
|
272
|
+
var key = (_ref4 = (_item$key2 = item.key) !== null && _item$key2 !== void 0 ? _item$key2 : item.name) !== null && _ref4 !== void 0 ? _ref4 : '';
|
|
243
273
|
var configItem = configMap.get(key);
|
|
244
274
|
if (!configItem) return item;
|
|
245
275
|
// 优先用 config 的 label/placeholder(当前语言),避免 session 恢复的旧语言覆盖
|
|
@@ -251,12 +281,21 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
251
281
|
});
|
|
252
282
|
});
|
|
253
283
|
}
|
|
284
|
+
var outQuick = quickFilter;
|
|
285
|
+
var outOther = otherFilter;
|
|
286
|
+
/** 资源墙:弹层只保留「资源」一项,不混入业务配置的其它 otherFilter(如预约状态、人数等) */
|
|
287
|
+
if (bodyView === 'resourceWall') {
|
|
288
|
+
outQuick = [];
|
|
289
|
+
outOther = quickFilterList.length > 0 ? quickFilterList.map(function (item) {
|
|
290
|
+
return _objectSpread({}, item);
|
|
291
|
+
}) : [];
|
|
292
|
+
}
|
|
254
293
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
255
|
-
quickFilter:
|
|
256
|
-
otherFilter:
|
|
294
|
+
quickFilter: outQuick,
|
|
295
|
+
otherFilter: outOther,
|
|
257
296
|
values: (_base$values = base.values) !== null && _base$values !== void 0 ? _base$values : {}
|
|
258
297
|
});
|
|
259
|
-
}, [filterValue, hasFilterItems, defaultFilterFromConfig, derivedFilterFromColumns]);
|
|
298
|
+
}, [filterValue, hasFilterItems, defaultFilterFromConfig, derivedFilterFromColumns, bodyView, quickFilterList]);
|
|
260
299
|
|
|
261
300
|
// 右侧 Filter 只展示高级筛选,快筛全部在左侧
|
|
262
301
|
var filterValueForPisellFilter = useMemo(function () {
|
|
@@ -288,14 +327,14 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
288
327
|
size: barSize,
|
|
289
328
|
buttonClassName: "record-board-toolbar-filter-btn"
|
|
290
329
|
}));
|
|
291
|
-
var showColumnSetting = slots.columnSetting !== false && Array.isArray(gridColumns) && gridColumns.length > 0;
|
|
330
|
+
var showColumnSetting = slots.columnSetting !== false && bodyView !== 'resourceWall' && Array.isArray(gridColumns) && gridColumns.length > 0;
|
|
292
331
|
var topRight = compactFloorMapToolbar ? null : /*#__PURE__*/React.createElement(Space, {
|
|
293
332
|
className: "record-board-toolbar-right-actions"
|
|
294
|
-
}, showColumnSetting ? /*#__PURE__*/React.createElement(RecordBoardColumnSetting, null) : null, sortNode, filterNode, /*#__PURE__*/React.createElement(ToolBarReset, {
|
|
333
|
+
}, showColumnSetting ? /*#__PURE__*/React.createElement(RecordBoardColumnSetting, null) : null, sortNode, filterNode, bodyView !== 'resourceWall' ? /*#__PURE__*/React.createElement(ToolBarReset, {
|
|
295
334
|
size: barSize
|
|
296
|
-
}), slots.topRight);
|
|
335
|
+
}) : null, slots.topRight);
|
|
297
336
|
return /*#__PURE__*/React.createElement(PisellToolBar, {
|
|
298
|
-
className: classNames(bodyView === 'floorMap' && 'pisell-record-board-toolbar--floor-map', bodyView === 'calendar' && 'pisell-record-board-toolbar--calendar', bodyView === 'grid' && 'pisell-record-board-toolbar--grid', toolbarDensity === 'compact' && 'pisell-record-board-toolbar--compact', slots.className),
|
|
337
|
+
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),
|
|
299
338
|
style: slots.style,
|
|
300
339
|
tabs: slots.tabs,
|
|
301
340
|
topLeft: topLeft,
|
|
@@ -20,13 +20,15 @@
|
|
|
20
20
|
padding-bottom: 0 !important;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
/*
|
|
24
|
-
.pisell-grid-pro-toolbar.pisell-record-board-toolbar--grid
|
|
23
|
+
/* 表格 / 资源墙:与主内容区左右对齐 16px;平面图、日历不加(日程带全宽) */
|
|
24
|
+
.pisell-grid-pro-toolbar.pisell-record-board-toolbar--grid,
|
|
25
|
+
.pisell-grid-pro-toolbar.pisell-record-board-toolbar--resource-wall {
|
|
25
26
|
padding-left: 16px;
|
|
26
27
|
padding-right: 16px;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
#body .pisell-grid-pro-toolbar.pisell-record-board-toolbar--grid
|
|
30
|
+
#body .pisell-grid-pro-toolbar.pisell-record-board-toolbar--grid,
|
|
31
|
+
#body .pisell-grid-pro-toolbar.pisell-record-board-toolbar--resource-wall {
|
|
30
32
|
padding-left: 16px;
|
|
31
33
|
padding-right: 16px;
|
|
32
34
|
}
|
|
@@ -8,10 +8,11 @@ import ToolBarReset from './ToolBarReset';
|
|
|
8
8
|
import ToolBarQuickFilter from './ToolBarQuickFilter';
|
|
9
9
|
import RecordBoardFloorMap from './FloorMap';
|
|
10
10
|
import RecordBoardCalendar from './Calendar/RecordBoardCalendar';
|
|
11
|
+
import RecordBoardResourceWall from './ResourceWall/RecordBoardResourceWall';
|
|
11
12
|
/**
|
|
12
13
|
* Shell Frame:基于 PisellShellFrame 的 RecordBoard 壳层。
|
|
13
|
-
* 解析子节点:**GridLayout / CardLayout 等** 与可选
|
|
14
|
-
* 子视图组合与 Segmented 切换由子节点与根级 props 决定;根级 `floorMap` / `calendar` 与子槽合并时**子组件优先**。
|
|
14
|
+
* 解析子节点:**GridLayout / CardLayout 等** 与可选 **FloorMap / Calendar / ResourceWall** 槽;
|
|
15
|
+
* 子视图组合与 Segmented 切换由子节点与根级 props 决定;根级 `floorMap` / `calendar` / `resourceWall` 与子槽合并时**子组件优先**。
|
|
15
16
|
*/
|
|
16
17
|
declare const RecordBoardShellFrame: React.FC<{
|
|
17
18
|
children?: React.ReactNode;
|
|
@@ -19,5 +20,5 @@ declare const RecordBoardShellFrame: React.FC<{
|
|
|
19
20
|
style?: React.CSSProperties;
|
|
20
21
|
}>;
|
|
21
22
|
export default RecordBoardShellFrame;
|
|
22
|
-
export { RecordBoardToolBar, RecordBoardBatchActionBar, RecordBoardPagination, RecordBoardSearch, ToolBarReset, ToolBarQuickFilter, RecordBoardFloorMap, RecordBoardCalendar };
|
|
23
|
+
export { RecordBoardToolBar, RecordBoardBatchActionBar, RecordBoardPagination, RecordBoardSearch, ToolBarReset, ToolBarQuickFilter, RecordBoardFloorMap, RecordBoardCalendar, RecordBoardResourceWall, };
|
|
23
24
|
export { useRecordBoardShellBodyMeta } from './ShellBodyMetaContext';
|
|
@@ -21,6 +21,8 @@ import ToolBarQuickFilter from "./ToolBarQuickFilter";
|
|
|
21
21
|
import RecordBoardFloorMap from "./FloorMap";
|
|
22
22
|
import RecordBoardCalendar from "./Calendar/RecordBoardCalendar";
|
|
23
23
|
import { PisellRecordBoardCalendarView } from "./Calendar/PisellRecordBoardCalendarView";
|
|
24
|
+
import RecordBoardResourceWall from "./ResourceWall/RecordBoardResourceWall";
|
|
25
|
+
import { PisellRecordBoardResourceWallView } from "./ResourceWall/PisellRecordBoardResourceWallView";
|
|
24
26
|
import { RecordBoardShellBodyMetaContext } from "./ShellBodyMetaContext";
|
|
25
27
|
|
|
26
28
|
/** fillHeight 时内容区可滚动、分页器贴底;默认表头 sticky;grid.scroll.autoCalc 时需测量高度供 scroll.y */
|
|
@@ -67,8 +69,8 @@ var FILL_HEIGHT_WRAPPER_STYLE = {
|
|
|
67
69
|
|
|
68
70
|
/**
|
|
69
71
|
* Shell Frame:基于 PisellShellFrame 的 RecordBoard 壳层。
|
|
70
|
-
* 解析子节点:**GridLayout / CardLayout 等** 与可选
|
|
71
|
-
* 子视图组合与 Segmented 切换由子节点与根级 props 决定;根级 `floorMap` / `calendar` 与子槽合并时**子组件优先**。
|
|
72
|
+
* 解析子节点:**GridLayout / CardLayout 等** 与可选 **FloorMap / Calendar / ResourceWall** 槽;
|
|
73
|
+
* 子视图组合与 Segmented 切换由子节点与根级 props 决定;根级 `floorMap` / `calendar` / `resourceWall` 与子槽合并时**子组件优先**。
|
|
72
74
|
*/
|
|
73
75
|
var RecordBoardShellFrame = function RecordBoardShellFrame(_ref2) {
|
|
74
76
|
var _ctx$floorMapLayoutRe, _effectiveFloorMapPro, _effectiveFloorMapPro2, _effectiveFloorMapPro3, _ctx$setScrollAreaHei, _ctx$childComponentPr;
|
|
@@ -83,9 +85,11 @@ var RecordBoardShellFrame = function RecordBoardShellFrame(_ref2) {
|
|
|
83
85
|
gridChildren = _useMemo.gridChildren,
|
|
84
86
|
floorMapPropsFromChild = _useMemo.floorMapPropsFromChild,
|
|
85
87
|
calendarPropsFromChild = _useMemo.calendarPropsFromChild,
|
|
88
|
+
resourceWallPropsFromChild = _useMemo.resourceWallPropsFromChild,
|
|
86
89
|
hasGridContent = _useMemo.hasGridContent,
|
|
87
90
|
hasFloorMapChild = _useMemo.hasFloorMapChild,
|
|
88
|
-
hasCalendarChild = _useMemo.hasCalendarChild
|
|
91
|
+
hasCalendarChild = _useMemo.hasCalendarChild,
|
|
92
|
+
hasResourceWallChild = _useMemo.hasResourceWallChild;
|
|
89
93
|
|
|
90
94
|
/** 子组件 FloorMap 与根级 context.floorMapProps 合并,子 props 覆盖根级 */
|
|
91
95
|
var effectiveFloorMapProps = useMemo(function () {
|
|
@@ -104,6 +108,13 @@ var RecordBoardShellFrame = function RecordBoardShellFrame(_ref2) {
|
|
|
104
108
|
}
|
|
105
109
|
return ctx.calendarProps;
|
|
106
110
|
}, [hasCalendarChild, calendarPropsFromChild, ctx.calendarProps]);
|
|
111
|
+
var effectiveResourceWallProps = useMemo(function () {
|
|
112
|
+
if (hasResourceWallChild) {
|
|
113
|
+
var _ctx$resourceWallProp;
|
|
114
|
+
return _objectSpread(_objectSpread({}, (_ctx$resourceWallProp = ctx.resourceWallProps) !== null && _ctx$resourceWallProp !== void 0 ? _ctx$resourceWallProp : {}), resourceWallPropsFromChild !== null && resourceWallPropsFromChild !== void 0 ? resourceWallPropsFromChild : {});
|
|
115
|
+
}
|
|
116
|
+
return ctx.resourceWallProps;
|
|
117
|
+
}, [hasResourceWallChild, resourceWallPropsFromChild, ctx.resourceWallProps]);
|
|
107
118
|
|
|
108
119
|
/**
|
|
109
120
|
* 平面图使用整份多 key:根级 Context.dataSources 与 FloorMap props 合并(后者覆盖同 key)。
|
|
@@ -117,15 +128,18 @@ var RecordBoardShellFrame = function RecordBoardShellFrame(_ref2) {
|
|
|
117
128
|
}, [ctx.dataSources, effectiveFloorMapProps === null || effectiveFloorMapProps === void 0 ? void 0 : effectiveFloorMapProps.dataSources]);
|
|
118
129
|
var hasFloorMapSlot = hasFloorMapChild || ctx.floorMapProps != null;
|
|
119
130
|
var hasCalendarSlot = hasCalendarChild || ctx.calendarProps != null;
|
|
131
|
+
var hasResourceWallSlot = hasResourceWallChild || ctx.resourceWallProps != null;
|
|
120
132
|
var shellBodyMeta = useMemo(function () {
|
|
121
133
|
return {
|
|
122
134
|
effectiveFloorMapProps: effectiveFloorMapProps,
|
|
123
135
|
effectiveCalendarProps: effectiveCalendarProps,
|
|
136
|
+
effectiveResourceWallProps: effectiveResourceWallProps,
|
|
124
137
|
hasGridContent: hasGridContent,
|
|
125
138
|
hasFloorMapSlot: hasFloorMapSlot,
|
|
126
|
-
hasCalendarSlot: hasCalendarSlot
|
|
139
|
+
hasCalendarSlot: hasCalendarSlot,
|
|
140
|
+
hasResourceWallSlot: hasResourceWallSlot
|
|
127
141
|
};
|
|
128
|
-
}, [effectiveFloorMapProps, effectiveCalendarProps, hasGridContent, hasFloorMapSlot, hasCalendarSlot]);
|
|
142
|
+
}, [effectiveFloorMapProps, effectiveCalendarProps, effectiveResourceWallProps, hasGridContent, hasFloorMapSlot, hasCalendarSlot, hasResourceWallSlot]);
|
|
129
143
|
var showGrid = useMemo(function () {
|
|
130
144
|
return hasGridContent && ctx.bodyView === 'grid';
|
|
131
145
|
}, [hasGridContent, ctx.bodyView]);
|
|
@@ -135,22 +149,35 @@ var RecordBoardShellFrame = function RecordBoardShellFrame(_ref2) {
|
|
|
135
149
|
var showCalendar = useMemo(function () {
|
|
136
150
|
return hasCalendarSlot && ctx.bodyView === 'calendar';
|
|
137
151
|
}, [hasCalendarSlot, ctx.bodyView]);
|
|
152
|
+
var showResourceWall = useMemo(function () {
|
|
153
|
+
return hasResourceWallSlot && ctx.bodyView === 'resourceWall';
|
|
154
|
+
}, [hasResourceWallSlot, ctx.bodyView]);
|
|
138
155
|
|
|
139
156
|
/** 仅单一主区时同步 bodyView,避免切换组合后状态不一致 */
|
|
140
157
|
useLayoutEffect(function () {
|
|
141
158
|
if (!ctx.setBodyView) return;
|
|
142
|
-
|
|
159
|
+
var hasG = hasGridContent;
|
|
160
|
+
var hasF = hasFloorMapSlot;
|
|
161
|
+
var hasC = hasCalendarSlot;
|
|
162
|
+
var hasR = hasResourceWallSlot;
|
|
163
|
+
var n = [hasG, hasF, hasC, hasR].filter(Boolean).length;
|
|
164
|
+
if (n !== 1) return;
|
|
165
|
+
if (hasF && !hasG && !hasC && !hasR) {
|
|
143
166
|
ctx.setBodyView('floorMap');
|
|
144
167
|
return;
|
|
145
168
|
}
|
|
146
|
-
if (
|
|
169
|
+
if (hasC && !hasG && !hasF && !hasR) {
|
|
147
170
|
ctx.setBodyView('calendar');
|
|
148
171
|
return;
|
|
149
172
|
}
|
|
150
|
-
if (
|
|
173
|
+
if (hasR && !hasG && !hasF && !hasC) {
|
|
174
|
+
ctx.setBodyView('resourceWall');
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
if (hasG && !hasF && !hasC && !hasR) {
|
|
151
178
|
ctx.setBodyView('grid');
|
|
152
179
|
}
|
|
153
|
-
}, [hasFloorMapSlot, hasGridContent, hasCalendarSlot, ctx.setBodyView]);
|
|
180
|
+
}, [hasFloorMapSlot, hasGridContent, hasCalendarSlot, hasResourceWallSlot, ctx.setBodyView]);
|
|
154
181
|
var floorMapLayoutProviderValue = useMemo(function () {
|
|
155
182
|
var _ctx$floorMapLayoutCo;
|
|
156
183
|
return (_ctx$floorMapLayoutCo = ctx.floorMapLayoutContext) !== null && _ctx$floorMapLayoutCo !== void 0 ? _ctx$floorMapLayoutCo : EMPTY_FLOOR_MAP_LAYOUT_CONTEXT;
|
|
@@ -194,10 +221,21 @@ var RecordBoardShellFrame = function RecordBoardShellFrame(_ref2) {
|
|
|
194
221
|
position: 'relative'
|
|
195
222
|
}
|
|
196
223
|
}, /*#__PURE__*/React.createElement(PisellRecordBoardCalendarView, effectiveCalendarProps)) : null;
|
|
224
|
+
var resourceWallNode = showResourceWall && effectiveResourceWallProps ? /*#__PURE__*/React.createElement("div", {
|
|
225
|
+
className: "pisell-record-board-resource-wall-viewport",
|
|
226
|
+
style: {
|
|
227
|
+
flex: 1,
|
|
228
|
+
minHeight: 0,
|
|
229
|
+
display: 'flex',
|
|
230
|
+
flexDirection: 'column',
|
|
231
|
+
overflow: 'hidden',
|
|
232
|
+
position: 'relative'
|
|
233
|
+
}
|
|
234
|
+
}, /*#__PURE__*/React.createElement(PisellRecordBoardResourceWallView, effectiveResourceWallProps)) : null;
|
|
197
235
|
var bodyContent = fillHeight ? /*#__PURE__*/React.createElement(React.Fragment, null, showGrid ? /*#__PURE__*/React.createElement(ScrollAreaMeasurer, {
|
|
198
236
|
onHeight: (_ctx$setScrollAreaHei = ctx === null || ctx === void 0 ? void 0 : ctx.setScrollAreaHeight) !== null && _ctx$setScrollAreaHei !== void 0 ? _ctx$setScrollAreaHei : function () {},
|
|
199
237
|
autoCalc: ctx === null || ctx === void 0 || (_ctx$childComponentPr = ctx.childComponentProps) === null || _ctx$childComponentPr === void 0 || (_ctx$childComponentPr = _ctx$childComponentPr.grid) === null || _ctx$childComponentPr === void 0 || (_ctx$childComponentPr = _ctx$childComponentPr.scroll) === null || _ctx$childComponentPr === void 0 ? void 0 : _ctx$childComponentPr.autoCalc
|
|
200
|
-
}, gridChildren) : showCalendar ? calendarNode : floorMapNode, showGrid ? /*#__PURE__*/React.createElement(RecordBoardPagination, null) : null) : /*#__PURE__*/React.createElement(React.Fragment, null, showGrid ? gridChildren : showCalendar ? calendarNode : floorMapNode, showGrid ? /*#__PURE__*/React.createElement(RecordBoardPagination, null) : null);
|
|
238
|
+
}, gridChildren) : showResourceWall ? resourceWallNode : showCalendar ? calendarNode : floorMapNode, showGrid ? /*#__PURE__*/React.createElement(RecordBoardPagination, null) : null) : /*#__PURE__*/React.createElement(React.Fragment, null, showGrid ? gridChildren : showResourceWall ? resourceWallNode : showCalendar ? calendarNode : floorMapNode, showGrid ? /*#__PURE__*/React.createElement(RecordBoardPagination, null) : null);
|
|
201
239
|
var shellStyle = fillHeight && style ? _objectSpread(_objectSpread({}, style), FILL_HEIGHT_WRAPPER_STYLE) : fillHeight ? FILL_HEIGHT_WRAPPER_STYLE : style;
|
|
202
240
|
var wrapper = /*#__PURE__*/React.createElement(RecordBoardShellBodyMetaContext.Provider, {
|
|
203
241
|
value: shellBodyMeta
|
|
@@ -222,5 +260,5 @@ var RecordBoardShellFrame = function RecordBoardShellFrame(_ref2) {
|
|
|
222
260
|
};
|
|
223
261
|
RecordBoardShellFrame.displayName = 'RecordBoard.ShellFrame';
|
|
224
262
|
export default RecordBoardShellFrame;
|
|
225
|
-
export { RecordBoardToolBar, RecordBoardBatchActionBar, RecordBoardPagination, RecordBoardSearch, ToolBarReset, ToolBarQuickFilter, RecordBoardFloorMap, RecordBoardCalendar };
|
|
263
|
+
export { RecordBoardToolBar, RecordBoardBatchActionBar, RecordBoardPagination, RecordBoardSearch, ToolBarReset, ToolBarQuickFilter, RecordBoardFloorMap, RecordBoardCalendar, RecordBoardResourceWall };
|
|
226
264
|
export { useRecordBoardShellBodyMeta } from "./ShellBodyMetaContext";
|
|
@@ -123,8 +123,8 @@ export interface RecordBoardListResult {
|
|
|
123
123
|
count?: number;
|
|
124
124
|
total?: number;
|
|
125
125
|
}
|
|
126
|
-
/** ShellFrame
|
|
127
|
-
export declare type RecordBoardBodyView = 'grid' | 'floorMap' | 'calendar';
|
|
126
|
+
/** ShellFrame 内容区:表格、平面图、日历或大屏资源墙(与 GridLayout 同级切换) */
|
|
127
|
+
export declare type RecordBoardBodyView = 'grid' | 'floorMap' | 'calendar' | 'resourceWall';
|
|
128
128
|
/** 日历 Y 轴资源行(与 BookingCalendarDemo 中 court 对齐) */
|
|
129
129
|
export interface RecordBoardCalendarResource {
|
|
130
130
|
id: string;
|
|
@@ -225,6 +225,19 @@ export interface RecordBoardCalendarBookingRenderArgs {
|
|
|
225
225
|
onDragStart: (item: RecordBoardCalendarBookingLike) => void;
|
|
226
226
|
onJumpNext: () => void;
|
|
227
227
|
}
|
|
228
|
+
/**
|
|
229
|
+
* 对接 `POST /shop/schedule/blocked-time` 的请求体(与后台字段一致)。
|
|
230
|
+
*/
|
|
231
|
+
export interface RecordBoardCalendarBlockedTimePayload {
|
|
232
|
+
name: string;
|
|
233
|
+
note?: string;
|
|
234
|
+
resource_ids: number[];
|
|
235
|
+
blocked_sales_channels: string[];
|
|
236
|
+
/** `YYYY-MM-DD HH:mm` */
|
|
237
|
+
start_time: string;
|
|
238
|
+
/** `YYYY-MM-DD HH:mm` */
|
|
239
|
+
end_time: string;
|
|
240
|
+
}
|
|
228
241
|
/** 日历视图槽位 props:由 Shell 合并根级与子槽后传入 PisellRecordBoardCalendarView */
|
|
229
242
|
export interface RecordBoardCalendarProps {
|
|
230
243
|
persistGuard?: CalendarPersistContextValue;
|
|
@@ -265,6 +278,13 @@ export interface RecordBoardCalendarProps {
|
|
|
265
278
|
* Pisell Reservation 等业务可在私有包组装 props 时默认传 10。
|
|
266
279
|
*/
|
|
267
280
|
slotStepMinutes?: number;
|
|
281
|
+
/**
|
|
282
|
+
* 保存「屏蔽时间」时提交(如 `/shop/schedule/blocked-time`)。
|
|
283
|
+
* 返回 `false` 表示未成功(弹窗保持);`true` 或 `undefined` 视为成功并关闭弹窗、清空选中。
|
|
284
|
+
*/
|
|
285
|
+
onBlockedTimeSave?: (payload: RecordBoardCalendarBlockedTimePayload) => Promise<boolean | void>;
|
|
286
|
+
/** 与接口 `blocked_sales_channels` 一致;默认 `['online_store']` */
|
|
287
|
+
blockedTimeSalesChannels?: string[];
|
|
268
288
|
/**
|
|
269
289
|
* 完全自定义日视图时间列表头(不含左上角日期角格)。未传时按槽渲染默认表头;
|
|
270
290
|
* 若同时传 {@link timelineHeaderGroups},则先渲染分组行再渲染默认/本插槽由实现约定:当前实现为先分组行再默认槽行。
|
|
@@ -284,6 +304,55 @@ export interface RecordBoardCalendarProps {
|
|
|
284
304
|
* 平面图槽位 props:与 PisellFloorMapLayout 对齐;items/renderItem 可省略(由 RecordBoard 默认 [] / () => null)。
|
|
285
305
|
*/
|
|
286
306
|
export declare type RecordBoardFloorMapProps = Partial<PisellFloorMapLayoutProps>;
|
|
307
|
+
/** 大屏资源墙单卡数据(与画布资源 id 对齐,见 {@link resourceId}) */
|
|
308
|
+
export interface RecordBoardResourceWallCardModel {
|
|
309
|
+
/** 与日历/画布 `form_record` id 一致 */
|
|
310
|
+
resourceId: string;
|
|
311
|
+
resource: string;
|
|
312
|
+
area?: string;
|
|
313
|
+
/**
|
|
314
|
+
* 资源墙展示态:由业务兼容层(如预约页)基于 booking.status + now + start/end 计算。
|
|
315
|
+
* materials 侧仅按该字段渲染,不再做 light/时间窗口推断。
|
|
316
|
+
*/
|
|
317
|
+
status?: 'available' | 'inUse' | 'boardingSoon' | 'late' | 'endingSoon' | 'expired';
|
|
318
|
+
currentTime?: string;
|
|
319
|
+
currentBooking?: string;
|
|
320
|
+
/** boardingSoon:距离开始分钟;inUse/endingSoon/expired:距离结束分钟 */
|
|
321
|
+
startsInMin?: number;
|
|
322
|
+
/** late:已超过开始时间但仍未占用(分钟,递增) */
|
|
323
|
+
lateMin?: number;
|
|
324
|
+
remainingMin?: number;
|
|
325
|
+
nextList?: Array<{
|
|
326
|
+
time: string;
|
|
327
|
+
booking: string;
|
|
328
|
+
startInMin: number;
|
|
329
|
+
}>;
|
|
330
|
+
/**
|
|
331
|
+
* @deprecated light 相关状态已弃用(2026-04):资源墙仅保留 5 态,不再渲染 light 文案。
|
|
332
|
+
* 旧字段暂保留以兼容历史数据源,但不会再被 materials 使用。
|
|
333
|
+
*/
|
|
334
|
+
lightState?: 'off' | 'off_soon_on' | 'on_soon_off';
|
|
335
|
+
/** @deprecated */
|
|
336
|
+
lightOnInMin?: number;
|
|
337
|
+
/** @deprecated */
|
|
338
|
+
lightOffInMin?: number;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* 大屏资源墙视图 props;与 Shell 内 `PisellRecordBoard.ResourceWall` 合并(子优先)。
|
|
342
|
+
* 可见资源由 `searchParams.filter.values[filterFieldKey]`(默认 `resource_wall_resource_ids`)与 `cards` 交集过滤。
|
|
343
|
+
*/
|
|
344
|
+
export interface RecordBoardResourceWallProps {
|
|
345
|
+
className?: string;
|
|
346
|
+
style?: CSSProperties;
|
|
347
|
+
/** 全量卡片;展示时按快筛字段过滤 */
|
|
348
|
+
cards?: RecordBoardResourceWallCardModel[];
|
|
349
|
+
loading?: boolean;
|
|
350
|
+
/**
|
|
351
|
+
* 与 ToolBar 快筛里多选字段的 `name`/`key` 一致,用于从 context.searchParams.filter.values 读取 string[]。
|
|
352
|
+
* @default 'resource_wall_resource_ids'
|
|
353
|
+
*/
|
|
354
|
+
filterFieldKey?: string;
|
|
355
|
+
}
|
|
287
356
|
/**
|
|
288
357
|
* RecordBoard 容器 Context 值
|
|
289
358
|
* 与具体 layout 类型无关,所有 layout 共用同一套数据与操作
|
|
@@ -369,6 +438,8 @@ export interface RecordBoardContextValue {
|
|
|
369
438
|
floorMapFooter?: ReactNode;
|
|
370
439
|
/** 根级传入的日历视图 props(可选);与 ShellFrame 内 Calendar 子组件合并,子优先 */
|
|
371
440
|
calendarProps?: RecordBoardCalendarProps;
|
|
441
|
+
/** 根级传入的大屏资源墙 props(可选);与 ShellFrame 内 ResourceWall 子组件合并,子优先 */
|
|
442
|
+
resourceWallProps?: RecordBoardResourceWallProps;
|
|
372
443
|
}
|
|
373
444
|
/**
|
|
374
445
|
* 各 layout 下子组件的可选透传配置(类似 ChildComponentProps)
|
|
@@ -526,6 +597,11 @@ export interface RecordBoardProps {
|
|
|
526
597
|
* 推荐在 ShellFrame 内使用 PisellRecordBoard.Calendar 声明;若同时传根级与本项,Shell 内子组件 props 优先合并。
|
|
527
598
|
*/
|
|
528
599
|
calendar?: RecordBoardCalendarProps;
|
|
600
|
+
/**
|
|
601
|
+
* 大屏资源墙(可选):与 Shell 内 `PisellRecordBoard.ResourceWall` 对齐。
|
|
602
|
+
* 推荐在 ShellFrame 内声明子组件;若同时传根级与本项,Shell 内子组件 props 优先合并。
|
|
603
|
+
*/
|
|
604
|
+
resourceWall?: RecordBoardResourceWallProps;
|
|
529
605
|
/**
|
|
530
606
|
* 平面图(可选,兼容低代码 / SalesGrid 等):与 PisellFloorMapLayout 对齐。
|
|
531
607
|
* 推荐在 ShellFrame 内使用 PisellRecordBoard.FloorMap 声明;若同时传根级与本项,Shell 内子组件 props 优先合并。
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { RecordBoardFloorMapProps } from '../types';
|
|
3
|
-
import type { RecordBoardCalendarProps } from '../types';
|
|
2
|
+
import type { RecordBoardFloorMapProps, RecordBoardCalendarProps, RecordBoardResourceWallProps } from '../types';
|
|
4
3
|
/** 与 shellFrame/FloorMap 上定义的 displayName 一致,用于从 ShellFrame children 中识别平面图槽 */
|
|
5
4
|
export declare const RECORD_BOARD_FLOOR_MAP_DISPLAY_NAME = "RecordBoard.FloorMap";
|
|
6
5
|
/** 与 shellFrame/Calendar 上定义的 displayName 一致 */
|
|
7
6
|
export declare const RECORD_BOARD_CALENDAR_DISPLAY_NAME = "RecordBoard.Calendar";
|
|
7
|
+
/** 与 shellFrame/ResourceWall 上定义的 displayName 一致 */
|
|
8
|
+
export declare const RECORD_BOARD_RESOURCE_WALL_DISPLAY_NAME = "RecordBoard.ResourceWall";
|
|
8
9
|
/**
|
|
9
10
|
* 将 ShellFrame 的 children 拆成:供表格区渲染的子树 + 可选的 FloorMap / Calendar 透传 props。
|
|
10
11
|
* 支持 Fragment 嵌套;多个同槽时以最后一个为准。
|
|
@@ -16,5 +17,7 @@ export declare function partitionShellFrameChildren(children: React.ReactNode):
|
|
|
16
17
|
floorMapPropsFromChild?: RecordBoardFloorMapProps;
|
|
17
18
|
hasCalendarChild: boolean;
|
|
18
19
|
calendarPropsFromChild?: RecordBoardCalendarProps;
|
|
20
|
+
hasResourceWallChild: boolean;
|
|
21
|
+
resourceWallPropsFromChild?: RecordBoardResourceWallProps;
|
|
19
22
|
hasGridContent: boolean;
|
|
20
23
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import RecordBoardFloorMap from "../shellFrame/FloorMap";
|
|
3
3
|
import RecordBoardCalendar from "../shellFrame/Calendar/RecordBoardCalendar";
|
|
4
|
+
import RecordBoardResourceWall from "../shellFrame/ResourceWall/RecordBoardResourceWall";
|
|
4
5
|
|
|
5
6
|
/** 与 shellFrame/FloorMap 上定义的 displayName 一致,用于从 ShellFrame children 中识别平面图槽 */
|
|
6
7
|
export var RECORD_BOARD_FLOOR_MAP_DISPLAY_NAME = 'RecordBoard.FloorMap';
|
|
@@ -8,6 +9,9 @@ export var RECORD_BOARD_FLOOR_MAP_DISPLAY_NAME = 'RecordBoard.FloorMap';
|
|
|
8
9
|
/** 与 shellFrame/Calendar 上定义的 displayName 一致 */
|
|
9
10
|
export var RECORD_BOARD_CALENDAR_DISPLAY_NAME = 'RecordBoard.Calendar';
|
|
10
11
|
|
|
12
|
+
/** 与 shellFrame/ResourceWall 上定义的 displayName 一致 */
|
|
13
|
+
export var RECORD_BOARD_RESOURCE_WALL_DISPLAY_NAME = 'RecordBoard.ResourceWall';
|
|
14
|
+
|
|
11
15
|
/** displayName 在部分构建下可能被摇掉;与 RecordBoardFloorMap 引用一致时仍可识别 */
|
|
12
16
|
function isRecordBoardFloorMapElementType(type) {
|
|
13
17
|
if (type === RecordBoardFloorMap) return true;
|
|
@@ -19,6 +23,11 @@ function isRecordBoardCalendarElementType(type) {
|
|
|
19
23
|
var dn = type === null || type === void 0 ? void 0 : type.displayName;
|
|
20
24
|
return dn === RECORD_BOARD_CALENDAR_DISPLAY_NAME;
|
|
21
25
|
}
|
|
26
|
+
function isRecordBoardResourceWallElementType(type) {
|
|
27
|
+
if (type === RecordBoardResourceWall) return true;
|
|
28
|
+
var dn = type === null || type === void 0 ? void 0 : type.displayName;
|
|
29
|
+
return dn === RECORD_BOARD_RESOURCE_WALL_DISPLAY_NAME;
|
|
30
|
+
}
|
|
22
31
|
|
|
23
32
|
/**
|
|
24
33
|
* 将 ShellFrame 的 children 拆成:供表格区渲染的子树 + 可选的 FloorMap / Calendar 透传 props。
|
|
@@ -29,6 +38,8 @@ export function partitionShellFrameChildren(children) {
|
|
|
29
38
|
var floorProps;
|
|
30
39
|
var foundCalendar = false;
|
|
31
40
|
var calendarProps;
|
|
41
|
+
var foundResourceWall = false;
|
|
42
|
+
var resourceWallProps;
|
|
32
43
|
var gridChunks = [];
|
|
33
44
|
var walk = function walk(node) {
|
|
34
45
|
React.Children.forEach(node, function (child) {
|
|
@@ -51,6 +62,11 @@ export function partitionShellFrameChildren(children) {
|
|
|
51
62
|
calendarProps = child.props;
|
|
52
63
|
return;
|
|
53
64
|
}
|
|
65
|
+
if (isRecordBoardResourceWallElementType(child.type)) {
|
|
66
|
+
foundResourceWall = true;
|
|
67
|
+
resourceWallProps = child.props;
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
54
70
|
gridChunks.push(child);
|
|
55
71
|
});
|
|
56
72
|
};
|
|
@@ -70,6 +86,8 @@ export function partitionShellFrameChildren(children) {
|
|
|
70
86
|
floorMapPropsFromChild: floorProps,
|
|
71
87
|
hasCalendarChild: foundCalendar,
|
|
72
88
|
calendarPropsFromChild: calendarProps,
|
|
89
|
+
hasResourceWallChild: foundResourceWall,
|
|
90
|
+
resourceWallPropsFromChild: resourceWallProps,
|
|
73
91
|
hasGridContent: hasGridContent
|
|
74
92
|
};
|
|
75
93
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** PisellReservationSchedule 多语言;使用前 locales.init 合并 */
|
|
2
|
+
declare const _default: {
|
|
3
|
+
en: {
|
|
4
|
+
'pisell-reservation-schedule.today': string;
|
|
5
|
+
'pisell-reservation-schedule.prev': string;
|
|
6
|
+
'pisell-reservation-schedule.next': string;
|
|
7
|
+
'pisell-reservation-schedule.prev-week': string;
|
|
8
|
+
'pisell-reservation-schedule.next-week': string;
|
|
9
|
+
'pisell-reservation-schedule.prev-month': string;
|
|
10
|
+
'pisell-reservation-schedule.next-month': string;
|
|
11
|
+
'pisell-reservation-schedule.pick-date': string;
|
|
12
|
+
'pisell-reservation-schedule.pick-date-title': string;
|
|
13
|
+
'pisell-reservation-schedule.pick-week-title': string;
|
|
14
|
+
'pisell-reservation-schedule.pick-month-title': string;
|
|
15
|
+
};
|
|
16
|
+
'zh-CN': {
|
|
17
|
+
'pisell-reservation-schedule.today': string;
|
|
18
|
+
'pisell-reservation-schedule.prev': string;
|
|
19
|
+
'pisell-reservation-schedule.next': string;
|
|
20
|
+
'pisell-reservation-schedule.prev-week': string;
|
|
21
|
+
'pisell-reservation-schedule.next-week': string;
|
|
22
|
+
'pisell-reservation-schedule.prev-month': string;
|
|
23
|
+
'pisell-reservation-schedule.next-month': string;
|
|
24
|
+
'pisell-reservation-schedule.pick-date': string;
|
|
25
|
+
'pisell-reservation-schedule.pick-date-title': string;
|
|
26
|
+
'pisell-reservation-schedule.pick-week-title': string;
|
|
27
|
+
'pisell-reservation-schedule.pick-month-title': string;
|
|
28
|
+
};
|
|
29
|
+
'zh-HK': {
|
|
30
|
+
'pisell-reservation-schedule.today': string;
|
|
31
|
+
'pisell-reservation-schedule.prev': string;
|
|
32
|
+
'pisell-reservation-schedule.next': string;
|
|
33
|
+
'pisell-reservation-schedule.prev-week': string;
|
|
34
|
+
'pisell-reservation-schedule.next-week': string;
|
|
35
|
+
'pisell-reservation-schedule.prev-month': string;
|
|
36
|
+
'pisell-reservation-schedule.next-month': string;
|
|
37
|
+
'pisell-reservation-schedule.pick-date': string;
|
|
38
|
+
'pisell-reservation-schedule.pick-date-title': string;
|
|
39
|
+
'pisell-reservation-schedule.pick-week-title': string;
|
|
40
|
+
'pisell-reservation-schedule.pick-month-title': string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export default _default;
|