@pisell/materials 6.11.34 → 6.11.36
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 +3 -1
- package/build/lowcode/render/default/view.js +17 -17
- package/build/lowcode/view.css +3 -1
- package/build/lowcode/view.js +17 -17
- package/es/components/Pagination/index.d.ts +1 -0
- package/es/components/PisellBasicGrid/PisellBasicGrid.d.ts +1 -0
- package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +1 -0
- package/es/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardExpand.d.ts +1 -0
- package/es/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +1 -0
- package/es/components/PisellCards/components/PisellImageCard/hooks/useImageLoad.d.ts +1 -0
- package/es/components/PisellCards/components/TabCard/TabCard.d.ts +1 -0
- package/es/components/PisellCards/components/TextCard/TextCard.d.ts +1 -0
- package/es/components/PisellCards/index.d.ts +1 -0
- package/es/components/PisellFields/index.d.ts +1 -0
- package/es/components/PisellLayouts/index.d.ts +1 -0
- package/es/components/PisellMetrics/index.d.ts +1 -0
- package/es/components/appVersionControl/index.d.ts +1 -0
- package/es/components/auto-complete-number/index.d.ts +1 -0
- package/es/components/badge/index.d.ts +1 -0
- package/es/components/batch-editor/fields/index.d.ts +1 -0
- package/es/components/batch-editor/index.d.ts +1 -0
- package/es/components/calendar/index.d.ts +1 -0
- package/es/components/cardPro/index.d.ts +1 -0
- package/es/components/checkbox/index.d.ts +1 -0
- package/es/components/classicLayout/index.d.ts +1 -0
- package/es/components/colorPicker/index.d.ts +1 -0
- package/es/components/config-provider/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +1 -0
- package/es/components/date-picker/datePickerCpt.d.ts +1 -0
- package/es/components/date-picker/index.d.ts +1 -0
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
- package/es/components/drag-sort-tree/index.d.ts +1 -0
- package/es/components/dropdown/index.d.ts +1 -0
- package/es/components/filter/components/items/index.d.ts +1 -0
- package/es/components/filter/components/items/text/Editor/index.d.ts +1 -0
- package/es/components/filter/components/items/text/Preview/index.d.ts +1 -0
- package/es/components/filter/components/items/text/index.d.ts +1 -0
- package/es/components/filter/index.d.ts +1 -0
- package/es/components/list/index.d.ts +1 -0
- package/es/components/lowCodePage/index.d.ts +1 -0
- package/es/components/page/index.d.ts +1 -0
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/es/components/pisellAdjustPrice/index.d.ts +1 -0
- package/es/components/pisellCard/index.d.ts +1 -0
- package/es/components/pisellDataSourceContainer/PisellDataSourceContainer.d.ts +1 -0
- package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +1 -0
- package/es/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
- package/es/components/pisellDatePicker/index.d.ts +1 -0
- package/es/components/pisellFilter/index.d.ts +1 -0
- package/es/components/pisellGridPro/GridView/index.d.ts +1 -0
- package/es/components/pisellGridPro/components/DataCard/index.d.ts +1 -0
- package/es/components/pisellInformationEntry/Scan/index.d.ts +1 -0
- package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/es/components/pisellInput/index.d.ts +1 -0
- package/es/components/pisellLoading/index.d.ts +1 -0
- package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
- package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
- package/es/components/pisellModal/components/index.d.ts +1 -0
- package/es/components/pisellRecordBoard/index.d.ts +2 -1
- package/es/components/pisellRecordBoard/index.js +1 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +1 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +455 -35
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +52 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +525 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewport.less +37 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +5 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +57 -41
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +25 -2
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +88 -3
- package/es/components/pisellRecordBoard/types.d.ts +34 -1
- package/es/components/pisellRecordBoard/types.js +126 -1
- package/es/components/pisellSort/index.d.ts +1 -0
- package/es/components/pisellTooltip/index.d.ts +1 -0
- package/es/components/pisellUpload/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/Gift/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/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 +1 -0
- package/es/components/productCard/components/Divider/index.d.ts +1 -0
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +1 -0
- package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -0
- package/es/components/productCard/components/Header/index.d.ts +1 -0
- package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
- package/es/components/productCard/components/Note/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Sales/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/Like/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
- package/es/components/productCard/components/Time/index.d.ts +1 -0
- package/es/components/qrcode/index.d.ts +1 -0
- package/es/components/radio/index.d.ts +1 -0
- package/es/components/segmented/index.d.ts +1 -0
- package/es/components/select-time/RightPanel/index.d.ts +1 -0
- package/es/components/select-time/index.d.ts +1 -0
- package/es/components/skeleton/index.d.ts +1 -0
- package/es/components/slider/index.d.ts +1 -0
- package/es/components/sort/components/InlineMenu/index.d.ts +1 -0
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/index.d.ts +1 -0
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
- package/es/components/table/Actions/component/Group/index.d.ts +1 -0
- package/es/components/table/Actions/component/ViewMode/index.d.ts +1 -0
- package/es/components/table/Actions/index.d.ts +1 -0
- package/es/components/table/BasicTable/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/es/components/table/Summary/index.d.ts +1 -0
- package/es/components/table/Table/SelectField/index.d.ts +1 -0
- package/es/components/table/Table/fields/date/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/date/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/date/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/index.d.ts +1 -0
- package/es/components/table/Table/fields/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
- package/es/components/table/Table/tableConfig/summary/index.d.ts +1 -0
- package/es/components/table/TableFilter/SortIcon.d.ts +1 -0
- package/es/components/table/View/index.d.ts +1 -0
- package/es/components/time-picker/index.d.ts +1 -0
- package/es/components/upload/index.d.ts +1 -0
- package/es/components/versionSelect/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Amount/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Number/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Time/utils.d.ts +1 -0
- package/es/components/walletCard/Guest/index.d.ts +1 -0
- package/es/components/walletCard/Guide/index.d.ts +1 -0
- package/es/index.d.ts +4 -1
- package/es/index.js +2 -0
- package/es/locales/en-US.d.ts +83 -0
- package/es/locales/en-US.js +84 -0
- package/es/locales/ja.d.ts +83 -0
- package/es/locales/ja.js +83 -0
- package/es/locales/pt.d.ts +83 -0
- package/es/locales/pt.js +83 -0
- package/es/locales/zh-CN.d.ts +83 -0
- package/es/locales/zh-CN.js +84 -0
- package/es/locales/zh-TW.d.ts +83 -0
- package/es/locales/zh-TW.js +84 -0
- package/es/pisell-materials.tw.css +3 -1
- package/es/tailwind-input.css +3 -1
- package/lib/components/Pagination/index.d.ts +1 -0
- package/lib/components/PisellBasicGrid/PisellBasicGrid.d.ts +1 -0
- package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +1 -0
- package/lib/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardExpand.d.ts +1 -0
- package/lib/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +1 -0
- package/lib/components/PisellCards/components/PisellImageCard/hooks/useImageLoad.d.ts +1 -0
- package/lib/components/PisellCards/components/TabCard/TabCard.d.ts +1 -0
- package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +1 -0
- package/lib/components/PisellCards/index.d.ts +1 -0
- package/lib/components/PisellFields/index.d.ts +1 -0
- package/lib/components/PisellLayouts/index.d.ts +1 -0
- package/lib/components/PisellMetrics/index.d.ts +1 -0
- package/lib/components/appVersionControl/index.d.ts +1 -0
- package/lib/components/auto-complete-number/index.d.ts +1 -0
- package/lib/components/badge/index.d.ts +1 -0
- package/lib/components/batch-editor/fields/index.d.ts +1 -0
- package/lib/components/batch-editor/index.d.ts +1 -0
- package/lib/components/calendar/index.d.ts +1 -0
- package/lib/components/cardPro/index.d.ts +1 -0
- package/lib/components/checkbox/index.d.ts +1 -0
- package/lib/components/classicLayout/index.d.ts +1 -0
- package/lib/components/colorPicker/index.d.ts +1 -0
- package/lib/components/config-provider/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +1 -0
- package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
- package/lib/components/drag-sort-tree/index.d.ts +1 -0
- package/lib/components/dropdown/index.d.ts +1 -0
- package/lib/components/filter/components/items/index.d.ts +1 -0
- package/lib/components/filter/components/items/text/Editor/index.d.ts +1 -0
- package/lib/components/filter/components/items/text/Preview/index.d.ts +1 -0
- package/lib/components/filter/components/items/text/index.d.ts +1 -0
- package/lib/components/filter/index.d.ts +1 -0
- package/lib/components/list/index.d.ts +1 -0
- package/lib/components/lowCodePage/index.d.ts +1 -0
- package/lib/components/page/index.d.ts +1 -0
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/lib/components/pisellAdjustPrice/index.d.ts +1 -0
- package/lib/components/pisellCard/index.d.ts +1 -0
- package/lib/components/pisellDataSourceContainer/PisellDataSourceContainer.d.ts +1 -0
- package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +1 -0
- package/lib/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
- package/lib/components/pisellDatePicker/index.d.ts +1 -0
- package/lib/components/pisellFilter/index.d.ts +1 -0
- package/lib/components/pisellGridPro/GridView/index.d.ts +1 -0
- package/lib/components/pisellGridPro/components/DataCard/index.d.ts +1 -0
- package/lib/components/pisellInformationEntry/Scan/index.d.ts +1 -0
- package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/lib/components/pisellInput/index.d.ts +1 -0
- package/lib/components/pisellLoading/index.d.ts +1 -0
- package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
- package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
- package/lib/components/pisellModal/components/index.d.ts +1 -0
- package/lib/components/pisellRecordBoard/index.d.ts +2 -1
- package/lib/components/pisellRecordBoard/index.js +3 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +1 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +461 -29
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +52 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +493 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewport.less +37 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +5 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +60 -39
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +25 -2
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +66 -5
- package/lib/components/pisellRecordBoard/types.d.ts +34 -1
- package/lib/components/pisellRecordBoard/types.js +19 -0
- package/lib/components/pisellSort/index.d.ts +1 -0
- package/lib/components/pisellTooltip/index.d.ts +1 -0
- package/lib/components/pisellUpload/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/Gift/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/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 +1 -0
- package/lib/components/productCard/components/Divider/index.d.ts +1 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +1 -0
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -0
- package/lib/components/productCard/components/Header/index.d.ts +1 -0
- package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
- package/lib/components/productCard/components/Note/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Sales/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/index.d.ts +1 -0
- package/lib/components/qrcode/index.d.ts +1 -0
- package/lib/components/radio/index.d.ts +1 -0
- package/lib/components/segmented/index.d.ts +1 -0
- package/lib/components/select-time/RightPanel/index.d.ts +1 -0
- package/lib/components/select-time/index.d.ts +1 -0
- package/lib/components/skeleton/index.d.ts +1 -0
- package/lib/components/slider/index.d.ts +1 -0
- package/lib/components/sort/components/InlineMenu/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +1 -0
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
- package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +1 -0
- package/lib/components/table/Actions/index.d.ts +1 -0
- package/lib/components/table/BasicTable/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/lib/components/table/Summary/index.d.ts +1 -0
- package/lib/components/table/Table/SelectField/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/index.d.ts +1 -0
- package/lib/components/table/Table/fields/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +1 -0
- package/lib/components/table/TableFilter/SortIcon.d.ts +1 -0
- package/lib/components/table/View/index.d.ts +1 -0
- package/lib/components/time-picker/index.d.ts +1 -0
- package/lib/components/upload/index.d.ts +1 -0
- package/lib/components/versionSelect/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Number/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Time/utils.d.ts +1 -0
- package/lib/components/walletCard/Guest/index.d.ts +1 -0
- package/lib/components/walletCard/Guide/index.d.ts +1 -0
- package/lib/index.d.ts +4 -1
- package/lib/index.js +8 -0
- package/lib/locales/en-US.d.ts +83 -0
- package/lib/locales/en-US.js +84 -0
- package/lib/locales/ja.d.ts +83 -0
- package/lib/locales/ja.js +83 -0
- package/lib/locales/pt.d.ts +83 -0
- package/lib/locales/pt.js +83 -0
- package/lib/locales/zh-CN.d.ts +83 -0
- package/lib/locales/zh-CN.js +84 -0
- package/lib/locales/zh-TW.d.ts +83 -0
- package/lib/locales/zh-TW.js +84 -0
- package/lib/pisell-materials.tw.css +3 -1
- package/lib/tailwind-input.css +3 -1
- package/lowcode/pisell-record-board-calendar-view/meta.ts +81 -1
- package/package.json +3 -3
|
@@ -11,8 +11,9 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
11
11
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import React, { useEffect, useRef, useState } from 'react';
|
|
14
|
+
import { getText } from "../../../../locales";
|
|
14
15
|
import { NoteTicker } from "./NoteTicker";
|
|
15
|
-
import {
|
|
16
|
+
import { getVenueWallStatusToneMap, alphaColor, clamp, deriveVenueWallStatus, formatVenueWallCountdown } from "./venueWallUtils";
|
|
16
17
|
|
|
17
18
|
/** 资源墙卡内共用的墙钟 tick(每卡一条 interval,避免多字段各挂一条) */
|
|
18
19
|
function useVenueWallClockNow() {
|
|
@@ -85,7 +86,7 @@ var DEFAULT_AVAILABLE = '#10b981';
|
|
|
85
86
|
* 单块场地大屏卡(由 test.tsx CardItem 迁移,样式为内联 + 少量类名,不依赖 Tailwind)。
|
|
86
87
|
*/
|
|
87
88
|
export var VenueWallCard = function VenueWallCard(_ref) {
|
|
88
|
-
var
|
|
89
|
+
var _toneMap$statusKey, _card$currentTime, _card$currentBooking, _card$nextList, _card$nextList$length, _card$nextList2, _nextItem$booking;
|
|
89
90
|
var card = _ref.card,
|
|
90
91
|
_ref$boardingSoonBefo = _ref.boardingSoonBeforeMin,
|
|
91
92
|
boardingSoonBeforeMin = _ref$boardingSoonBefo === void 0 ? 10 : _ref$boardingSoonBefo,
|
|
@@ -94,7 +95,14 @@ export var VenueWallCard = function VenueWallCard(_ref) {
|
|
|
94
95
|
_ref$availableCardCol = _ref.availableCardColor,
|
|
95
96
|
availableCardColor = _ref$availableCardCol === void 0 ? DEFAULT_AVAILABLE : _ref$availableCardCol,
|
|
96
97
|
_ref$heroMaxWidthRati = _ref.heroMaxWidthRatio,
|
|
97
|
-
heroMaxWidthRatio = _ref$heroMaxWidthRati === void 0 ? 0.6 : _ref$heroMaxWidthRati
|
|
98
|
+
heroMaxWidthRatio = _ref$heroMaxWidthRati === void 0 ? 0.6 : _ref$heroMaxWidthRati,
|
|
99
|
+
statusToneMapProp = _ref.statusToneMap,
|
|
100
|
+
_ref$appearance = _ref.appearance,
|
|
101
|
+
appearance = _ref$appearance === void 0 ? 'light' : _ref$appearance;
|
|
102
|
+
var toneMap = statusToneMapProp !== null && statusToneMapProp !== void 0 ? statusToneMapProp : getVenueWallStatusToneMap();
|
|
103
|
+
var isDark = appearance === 'dark';
|
|
104
|
+
var idleMain = isDark ? '#e2e8f0' : '#0f172a';
|
|
105
|
+
var idleSub = isDark ? '#94a3b8' : '#94a3b8';
|
|
98
106
|
var cardRef = useRef(null);
|
|
99
107
|
var _useState7 = useState({
|
|
100
108
|
width: 420,
|
|
@@ -127,16 +135,16 @@ export var VenueWallCard = function VenueWallCard(_ref) {
|
|
|
127
135
|
var statusKey = deriveVenueWallStatus(_objectSpread(_objectSpread({}, card), {}, {
|
|
128
136
|
remainingMin: liveRemainingMin
|
|
129
137
|
}));
|
|
130
|
-
var tone = (
|
|
138
|
+
var tone = (_toneMap$statusKey = toneMap[statusKey]) !== null && _toneMap$statusKey !== void 0 ? _toneMap$statusKey : toneMap.inUse;
|
|
131
139
|
var isOccupied = ['inUse', 'endingSoon', 'expired'].includes(statusKey);
|
|
132
|
-
var heroText = isOccupied ? formatVenueWallCountdown(liveRemainingMin) : '
|
|
133
|
-
var heroColor = isOccupied ? statusKey === 'inUse' ? '#ffffff' : tone.color :
|
|
134
|
-
var noteText = isOccupied ? tone.note :
|
|
135
|
-
var noteTextColor = isOccupied ? '#ffffff' :
|
|
140
|
+
var heroText = isOccupied ? formatVenueWallCountdown(liveRemainingMin) : getText('pisell-resource-wall-card-hero-available');
|
|
141
|
+
var heroColor = isOccupied ? statusKey === 'inUse' ? '#ffffff' : tone.color : toneMap.available.color;
|
|
142
|
+
var noteText = isOccupied ? tone.note : toneMap.available.note;
|
|
143
|
+
var noteTextColor = isOccupied ? '#ffffff' : idleMain;
|
|
136
144
|
var noteBg = isOccupied ? tone.noteBg : alphaColor(availableCardColor, 0.2);
|
|
137
|
-
var subColor = isOccupied ? 'rgba(255,255,255,0.80)' :
|
|
138
|
-
var mainColor = isOccupied ? '#ffffff' :
|
|
139
|
-
var currentLabel = '
|
|
145
|
+
var subColor = isOccupied ? 'rgba(255,255,255,0.80)' : idleSub;
|
|
146
|
+
var mainColor = isOccupied ? '#ffffff' : idleMain;
|
|
147
|
+
var currentLabel = getText('pisell-resource-wall-card-label-current');
|
|
140
148
|
var currentTime = (_card$currentTime = card.currentTime) !== null && _card$currentTime !== void 0 ? _card$currentTime : '';
|
|
141
149
|
var currentName = isOccupied ? (_card$currentBooking = card.currentBooking) !== null && _card$currentBooking !== void 0 ? _card$currentBooking : '' : '';
|
|
142
150
|
var currentNameColor = mainColor;
|
|
@@ -151,40 +159,40 @@ export var VenueWallCard = function VenueWallCard(_ref) {
|
|
|
151
159
|
var nextCountLabel = nextItem ? "1/".concat((_card$nextList$length = (_card$nextList2 = card.nextList) === null || _card$nextList2 === void 0 ? void 0 : _card$nextList2.length) !== null && _card$nextList$length !== void 0 ? _card$nextList$length : 0) : '';
|
|
152
160
|
if (statusKey === 'boardingSoon') {
|
|
153
161
|
var _card$currentBooking2;
|
|
154
|
-
heroText =
|
|
155
|
-
heroColor =
|
|
156
|
-
noteText =
|
|
157
|
-
noteTextColor =
|
|
158
|
-
noteBg = alphaColor(
|
|
159
|
-
currentLabel = '
|
|
162
|
+
heroText = getText('pisell-resource-wall-card-starts-in').replace('{n}', String(liveStartsInMin));
|
|
163
|
+
heroColor = toneMap.boardingSoon.color;
|
|
164
|
+
noteText = toneMap.boardingSoon.note;
|
|
165
|
+
noteTextColor = toneMap.boardingSoon.color;
|
|
166
|
+
noteBg = alphaColor(toneMap.boardingSoon.color, 0.18);
|
|
167
|
+
currentLabel = getText('pisell-resource-wall-card-label-next');
|
|
160
168
|
currentName = (_card$currentBooking2 = card.currentBooking) !== null && _card$currentBooking2 !== void 0 ? _card$currentBooking2 : '';
|
|
161
|
-
currentNameColor =
|
|
162
|
-
nextNameColor =
|
|
169
|
+
currentNameColor = toneMap.boardingSoon.color;
|
|
170
|
+
nextNameColor = toneMap.boardingSoon.color;
|
|
163
171
|
progress = clamp((boardingSoonBeforeMin - liveStartsInMin) / boardingSoonBeforeMin * 100, 0, 100);
|
|
164
|
-
progressColor =
|
|
165
|
-
rightTag =
|
|
166
|
-
rightTagColor =
|
|
167
|
-
rightTagBg = alphaColor(
|
|
168
|
-
rightTagBorder = alphaColor(
|
|
172
|
+
progressColor = toneMap.boardingSoon.color;
|
|
173
|
+
rightTag = toneMap.boardingSoon.label;
|
|
174
|
+
rightTagColor = toneMap.boardingSoon.color;
|
|
175
|
+
rightTagBg = alphaColor(toneMap.boardingSoon.color, 0.12);
|
|
176
|
+
rightTagBorder = alphaColor(toneMap.boardingSoon.color, 0.35);
|
|
169
177
|
}
|
|
170
178
|
if (statusKey === 'late') {
|
|
171
179
|
var _card$currentBooking3;
|
|
172
|
-
heroText =
|
|
180
|
+
heroText = getText('pisell-resource-wall-card-late').replace('{n}', String(liveLateMin));
|
|
173
181
|
/** 仅主文案用红色;其余视觉与 Available 对齐 */
|
|
174
182
|
heroColor = 'rgb(239, 68, 68)';
|
|
175
|
-
noteText =
|
|
176
|
-
noteTextColor =
|
|
177
|
-
noteBg =
|
|
178
|
-
currentLabel = '
|
|
183
|
+
noteText = toneMap.late.note;
|
|
184
|
+
noteTextColor = toneMap.available.color;
|
|
185
|
+
noteBg = toneMap.available.noteBg;
|
|
186
|
+
currentLabel = getText('pisell-resource-wall-card-label-next');
|
|
179
187
|
currentName = (_card$currentBooking3 = card.currentBooking) !== null && _card$currentBooking3 !== void 0 ? _card$currentBooking3 : '';
|
|
180
|
-
currentNameColor =
|
|
181
|
-
nextNameColor =
|
|
188
|
+
currentNameColor = toneMap.available.color;
|
|
189
|
+
nextNameColor = toneMap.available.color;
|
|
182
190
|
progress = 100;
|
|
183
|
-
progressColor =
|
|
184
|
-
rightTag =
|
|
185
|
-
rightTagColor =
|
|
186
|
-
rightTagBg = alphaColor(
|
|
187
|
-
rightTagBorder = alphaColor(
|
|
191
|
+
progressColor = toneMap.available.color;
|
|
192
|
+
rightTag = toneMap.late.label;
|
|
193
|
+
rightTagColor = toneMap.available.color;
|
|
194
|
+
rightTagBg = alphaColor(toneMap.available.color, 0.12);
|
|
195
|
+
rightTagBorder = alphaColor(toneMap.available.color, 0.35);
|
|
188
196
|
}
|
|
189
197
|
|
|
190
198
|
/**
|
|
@@ -192,9 +200,9 @@ export var VenueWallCard = function VenueWallCard(_ref) {
|
|
|
192
200
|
* drift 允许 remaining 为负后,仅「整分刚好为 0」时仍走 countdown(0) 的「Ending now」,改为「0m overtime」与产品预期一致。
|
|
193
201
|
*/
|
|
194
202
|
if (statusKey === 'expired') {
|
|
195
|
-
heroText = liveRemainingMin < 0 ? formatVenueWallCountdown(liveRemainingMin) : liveRemainingMin === 0 ? '
|
|
203
|
+
heroText = liveRemainingMin < 0 ? formatVenueWallCountdown(liveRemainingMin) : liveRemainingMin === 0 ? getText('pisell-resource-wall-countdown-zero-overtime') : formatVenueWallCountdown(liveRemainingMin);
|
|
196
204
|
}
|
|
197
|
-
var surfaceAccentColor = statusKey === 'late' ? availableCardColor : statusKey === 'boardingSoon' ?
|
|
205
|
+
var surfaceAccentColor = statusKey === 'late' ? availableCardColor : statusKey === 'boardingSoon' ? toneMap.boardingSoon.color : availableCardColor;
|
|
198
206
|
var cardBg = isOccupied ? "linear-gradient(180deg, ".concat(alphaColor(occupiedCardColor, 0.96), " 0%, ").concat(alphaColor(occupiedCardColor, 0.88), " 100%)") : alphaColor(surfaceAccentColor, statusKey === 'boardingSoon' || statusKey === 'late' ? 0.06 : 0.03);
|
|
199
207
|
var cardBorder = isOccupied ? alphaColor(occupiedCardColor, 0.5) : alphaColor(surfaceAccentColor, 0.18);
|
|
200
208
|
var moduleBorder = isOccupied ? 'rgba(255,255,255,0.10)' : alphaColor(surfaceAccentColor, 0.2);
|
|
@@ -231,6 +239,13 @@ export var VenueWallCard = function VenueWallCard(_ref) {
|
|
|
231
239
|
var nextBlockPad = Math.max(unit * 0.16, Math.min(unit * 0.24, 16));
|
|
232
240
|
var noteSize = clamp(noteHeight * 0.28 * fitScale, 10, 18);
|
|
233
241
|
var tagFont = Math.max(8, tagSize * 0.68);
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* 外层卡片高度会被父级网格 `1fr` 行拉伸;若内层 grid 仍用固定 `px` 行高,
|
|
245
|
+
* 则“卡片容器变高但内容区不跟着长高”,表现为底部空白。
|
|
246
|
+
* 这里用 `minmax(基准px, nfr)` 把增量高度主要分配给 CURRENT / NEXT 两个主模块。
|
|
247
|
+
*/
|
|
248
|
+
var gridTemplateRows = "".concat(headerHeight, "px minmax(").concat(Math.max(120, currentHeight), "px, 4fr) minmax(").concat(Math.max(72, nextHeight), "px, 2fr) ").concat(noteHeight, "px");
|
|
234
249
|
return /*#__PURE__*/React.createElement("div", {
|
|
235
250
|
ref: cardRef,
|
|
236
251
|
className: "pisell-resource-wall-card",
|
|
@@ -245,16 +260,17 @@ export var VenueWallCard = function VenueWallCard(_ref) {
|
|
|
245
260
|
borderWidth: 1,
|
|
246
261
|
borderStyle: 'solid',
|
|
247
262
|
borderColor: cardBorder,
|
|
248
|
-
boxShadow: '0 18px 48px rgba(15,23,42,0.06)'
|
|
263
|
+
boxShadow: isDark ? '0 18px 48px rgba(0,0,0,0.35)' : '0 18px 48px rgba(15,23,42,0.06)'
|
|
249
264
|
}
|
|
250
265
|
}, /*#__PURE__*/React.createElement("div", {
|
|
251
266
|
style: {
|
|
252
267
|
flex: 1,
|
|
253
268
|
display: 'grid',
|
|
254
269
|
minHeight: 0,
|
|
270
|
+
height: '100%',
|
|
255
271
|
padding: shellPad,
|
|
256
272
|
gap: sectionGap,
|
|
257
|
-
gridTemplateRows:
|
|
273
|
+
gridTemplateRows: gridTemplateRows
|
|
258
274
|
}
|
|
259
275
|
}, /*#__PURE__*/React.createElement("div", {
|
|
260
276
|
style: {
|
|
@@ -449,7 +465,7 @@ export var VenueWallCard = function VenueWallCard(_ref) {
|
|
|
449
465
|
fontSize: nextMetaSize,
|
|
450
466
|
color: subColor
|
|
451
467
|
}
|
|
452
|
-
}, nextItem !== null && nextItem !== void 0 && nextItem.time ?
|
|
468
|
+
}, nextItem !== null && nextItem !== void 0 && nextItem.time ? getText('pisell-resource-wall-card-next-line').replace('{time}', nextItem.time) : getText('pisell-resource-wall-card-label-next')), /*#__PURE__*/React.createElement("div", {
|
|
453
469
|
style: {
|
|
454
470
|
fontWeight: 600,
|
|
455
471
|
flexShrink: 0,
|
|
@@ -1,14 +1,37 @@
|
|
|
1
1
|
import type { RecordBoardResourceWallCardModel } from '../../types';
|
|
2
2
|
export declare type VenueWallStatusKey = 'inUse' | 'endingSoon' | 'expired' | 'available' | 'boardingSoon' | 'late';
|
|
3
|
-
|
|
3
|
+
/** 单态展示配置(与 {@link VENUE_WALL_STATUS_COLOR_MAP} 值同形) */
|
|
4
|
+
export declare type VenueWallStatusTone = {
|
|
4
5
|
key: VenueWallStatusKey;
|
|
5
6
|
label: string;
|
|
6
7
|
note: string;
|
|
7
8
|
color: string;
|
|
8
9
|
noteBg: string;
|
|
9
|
-
}
|
|
10
|
+
};
|
|
11
|
+
/** 仅覆盖部分字段;用于 Control Panel / localStorage */
|
|
12
|
+
export declare type VenueWallStatusToneOverrides = Partial<Record<VenueWallStatusKey, Partial<VenueWallStatusTone>>>;
|
|
13
|
+
/** 单外观(浅 / 深)下的占用/空闲色与六态覆盖;持久化时 light、dark 各存一份 */
|
|
14
|
+
export declare type VenueWallAppearanceSlot = {
|
|
15
|
+
occupiedCardColor?: string;
|
|
16
|
+
availableCardColor?: string;
|
|
17
|
+
statusToneOverrides?: VenueWallStatusToneOverrides;
|
|
18
|
+
};
|
|
19
|
+
export declare type VenueWallAppearanceTheme = {
|
|
20
|
+
light?: VenueWallAppearanceSlot;
|
|
21
|
+
dark?: VenueWallAppearanceSlot;
|
|
22
|
+
};
|
|
23
|
+
export declare const VENUE_WALL_STATUS_KEYS: VenueWallStatusKey[];
|
|
24
|
+
export declare const VENUE_WALL_STATUS_COLOR_MAP: Record<VenueWallStatusKey, VenueWallStatusTone>;
|
|
10
25
|
export declare function alphaColor(hex: string, alpha: number): string;
|
|
11
26
|
export declare const clamp: (value: number, min: number, max: number) => number;
|
|
12
27
|
/** 由卡片字段推导状态键(与演示页 test.tsx 规则一致) */
|
|
13
28
|
export declare function deriveVenueWallStatus(card: RecordBoardResourceWallCardModel): VenueWallStatusKey;
|
|
14
29
|
export declare function formatVenueWallCountdown(min: number): string;
|
|
30
|
+
/**
|
|
31
|
+
* 合并默认六态配色与业务覆盖,供 {@link VenueWallCard} 与 Control Panel 表单初值共用。
|
|
32
|
+
*/
|
|
33
|
+
export declare function getVenueWallStatusToneMap(overrides?: VenueWallStatusToneOverrides | null): Record<VenueWallStatusKey, VenueWallStatusTone>;
|
|
34
|
+
/**
|
|
35
|
+
* 将编辑后的完整六态表压成「相对默认」的 overrides,便于持久化与 props 传递。
|
|
36
|
+
*/
|
|
37
|
+
export declare function diffVenueWallStatusToneOverrides(draft: Record<VenueWallStatusKey, VenueWallStatusTone>): VenueWallStatusToneOverrides;
|
|
@@ -1,3 +1,21 @@
|
|
|
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 _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
3
|
+
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); }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
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; }
|
|
7
|
+
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; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
9
|
+
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); }
|
|
10
|
+
import { getText } from "../../../../locales";
|
|
11
|
+
|
|
12
|
+
/** 单态展示配置(与 {@link VENUE_WALL_STATUS_COLOR_MAP} 值同形) */
|
|
13
|
+
|
|
14
|
+
/** 仅覆盖部分字段;用于 Control Panel / localStorage */
|
|
15
|
+
|
|
16
|
+
/** 单外观(浅 / 深)下的占用/空闲色与六态覆盖;持久化时 light、dark 各存一份 */
|
|
17
|
+
|
|
18
|
+
export var VENUE_WALL_STATUS_KEYS = ['inUse', 'endingSoon', 'expired', 'available', 'boardingSoon', 'late'];
|
|
1
19
|
export var VENUE_WALL_STATUS_COLOR_MAP = {
|
|
2
20
|
inUse: {
|
|
3
21
|
key: 'inUse',
|
|
@@ -75,8 +93,75 @@ export function deriveVenueWallStatus(card) {
|
|
|
75
93
|
if (rm != null && rm <= 10) return 'endingSoon';
|
|
76
94
|
return 'inUse';
|
|
77
95
|
}
|
|
96
|
+
function formatDurationHM(minAbs) {
|
|
97
|
+
var safe = Number.isFinite(minAbs) ? Math.max(0, Math.floor(minAbs)) : 0;
|
|
98
|
+
if (safe < 60) return "".concat(safe, "m");
|
|
99
|
+
var h = Math.floor(safe / 60);
|
|
100
|
+
var m = safe % 60;
|
|
101
|
+
return "".concat(h, "h").concat(String(m).padStart(2, '0'), "m");
|
|
102
|
+
}
|
|
78
103
|
export function formatVenueWallCountdown(min) {
|
|
79
|
-
if (min < 0)
|
|
80
|
-
|
|
81
|
-
|
|
104
|
+
if (min < 0) {
|
|
105
|
+
var n = formatDurationHM(Math.abs(min));
|
|
106
|
+
return getText('pisell-resource-wall-countdown-overtime').replace('{n}', n);
|
|
107
|
+
}
|
|
108
|
+
if (min === 0) return getText('pisell-resource-wall-countdown-ending-now');
|
|
109
|
+
return getText('pisell-resource-wall-countdown-left').replace('{n}', formatDurationHM(min));
|
|
110
|
+
}
|
|
111
|
+
function cloneTone(t) {
|
|
112
|
+
return _objectSpread({}, t);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* 合并默认六态配色与业务覆盖,供 {@link VenueWallCard} 与 Control Panel 表单初值共用。
|
|
117
|
+
*/
|
|
118
|
+
export function getVenueWallStatusToneMap(overrides) {
|
|
119
|
+
var out = {};
|
|
120
|
+
var _iterator = _createForOfIteratorHelper(VENUE_WALL_STATUS_KEYS),
|
|
121
|
+
_step;
|
|
122
|
+
try {
|
|
123
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
124
|
+
var key = _step.value;
|
|
125
|
+
var base = cloneTone(VENUE_WALL_STATUS_COLOR_MAP[key]);
|
|
126
|
+
base.label = getText("pisell-resource-wall-tone-".concat(key, "-label"));
|
|
127
|
+
base.note = getText("pisell-resource-wall-tone-".concat(key, "-note"));
|
|
128
|
+
var patch = overrides === null || overrides === void 0 ? void 0 : overrides[key];
|
|
129
|
+
out[key] = patch ? _objectSpread(_objectSpread(_objectSpread({}, base), patch), {}, {
|
|
130
|
+
key: key
|
|
131
|
+
}) : base;
|
|
132
|
+
}
|
|
133
|
+
} catch (err) {
|
|
134
|
+
_iterator.e(err);
|
|
135
|
+
} finally {
|
|
136
|
+
_iterator.f();
|
|
137
|
+
}
|
|
138
|
+
return out;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* 将编辑后的完整六态表压成「相对默认」的 overrides,便于持久化与 props 传递。
|
|
143
|
+
*/
|
|
144
|
+
export function diffVenueWallStatusToneOverrides(draft) {
|
|
145
|
+
var defaults = getVenueWallStatusToneMap();
|
|
146
|
+
var out = {};
|
|
147
|
+
var _iterator2 = _createForOfIteratorHelper(VENUE_WALL_STATUS_KEYS),
|
|
148
|
+
_step2;
|
|
149
|
+
try {
|
|
150
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
151
|
+
var k = _step2.value;
|
|
152
|
+
var d = draft[k];
|
|
153
|
+
var b = defaults[k];
|
|
154
|
+
var patch = {};
|
|
155
|
+
if (d.label !== b.label) patch.label = d.label;
|
|
156
|
+
if (d.note !== b.note) patch.note = d.note;
|
|
157
|
+
if (d.color !== b.color) patch.color = d.color;
|
|
158
|
+
if (d.noteBg !== b.noteBg) patch.noteBg = d.noteBg;
|
|
159
|
+
if (Object.keys(patch).length > 0) out[k] = patch;
|
|
160
|
+
}
|
|
161
|
+
} catch (err) {
|
|
162
|
+
_iterator2.e(err);
|
|
163
|
+
} finally {
|
|
164
|
+
_iterator2.f();
|
|
165
|
+
}
|
|
166
|
+
return out;
|
|
82
167
|
}
|
|
@@ -3,6 +3,7 @@ import type { PisellFloorMapLayoutProps, PisellFloorMapLayoutRef, FloorMapDataSo
|
|
|
3
3
|
import type { TableProps } from 'antd';
|
|
4
4
|
import type { CalendarPersistContextValue } from './shellFrame/Calendar/calendarPersistGuard';
|
|
5
5
|
import type { TimeRangeOption } from '../pisellTimeNavigator/types';
|
|
6
|
+
import type { VenueWallAppearanceTheme, VenueWallStatusToneOverrides } from './shellFrame/ResourceWall/venueWallUtils';
|
|
6
7
|
/**
|
|
7
8
|
* 布局类型:一种 layout 对应一种「视图的集合」
|
|
8
9
|
* - grid: 搜索 + 表格 + 分页
|
|
@@ -337,9 +338,23 @@ export interface RecordBoardResourceWallCardModel {
|
|
|
337
338
|
/** @deprecated */
|
|
338
339
|
lightOffInMin?: number;
|
|
339
340
|
}
|
|
341
|
+
/**
|
|
342
|
+
* 控制台「Resource & Layout」中与版式/轮播相关的可持久化字段(不含资源多选,其走 filter;不含配色,其走 appearanceTheme)。
|
|
343
|
+
*/
|
|
344
|
+
export interface RecordBoardResourceWallLayoutPersist {
|
|
345
|
+
layoutKey: string;
|
|
346
|
+
customCols: number;
|
|
347
|
+
customRows: number;
|
|
348
|
+
pageDurationSec: number;
|
|
349
|
+
boardingSoonBeforeMin: number;
|
|
350
|
+
heroMaxWidthRatio: number;
|
|
351
|
+
}
|
|
352
|
+
/** {@link RecordBoardResourceWallLayoutPersist} 默认值,与 {@link PisellRecordBoardResourceWallView} 历史初始 state 一致 */
|
|
353
|
+
export declare const DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST: RecordBoardResourceWallLayoutPersist;
|
|
340
354
|
/**
|
|
341
355
|
* 大屏资源墙视图 props;与 Shell 内 `PisellRecordBoard.ResourceWall` 合并(子优先)。
|
|
342
|
-
*
|
|
356
|
+
* 展示顺序由 `searchParams.filter.values[filterFieldKey]`(默认 `resource_wall_resource_ids`)非空 `string[]` 决定;
|
|
357
|
+
* **未写该键、值非数组、或 `[]`**:不展示卡片。每个 id 优先用 `cards` 中同 `resourceId` 的项,否则用占位卡(仅 id)。
|
|
343
358
|
*/
|
|
344
359
|
export interface RecordBoardResourceWallProps {
|
|
345
360
|
className?: string;
|
|
@@ -352,6 +367,24 @@ export interface RecordBoardResourceWallProps {
|
|
|
352
367
|
* @default 'resource_wall_resource_ids'
|
|
353
368
|
*/
|
|
354
369
|
filterFieldKey?: string;
|
|
370
|
+
/** 六态文案/配色覆盖(与默认 map 浅合并);通常由宿主从 localStorage 水合 */
|
|
371
|
+
statusToneOverrides?: VenueWallStatusToneOverrides;
|
|
372
|
+
/** 覆盖变更时回调,宿主可写入 localStorage */
|
|
373
|
+
onStatusToneOverridesChange?: (next: VenueWallStatusToneOverrides) => void;
|
|
374
|
+
/**
|
|
375
|
+
* 浅 / 深外观各自的卡面主色与六态覆盖;与 {@link onAppearanceThemeChange} 配合由宿主持久化。
|
|
376
|
+
* 未传入时由视图内部维护(刷新丢失)。
|
|
377
|
+
*/
|
|
378
|
+
appearanceTheme?: VenueWallAppearanceTheme;
|
|
379
|
+
onAppearanceThemeChange?: (next: VenueWallAppearanceTheme) => void;
|
|
380
|
+
/** 当前大屏外观:浅色 / 深色;与 {@link onAppearanceModeChange} 一并由宿主导入 localStorage */
|
|
381
|
+
appearanceMode?: 'light' | 'dark';
|
|
382
|
+
onAppearanceModeChange?: (mode: 'light' | 'dark') => void;
|
|
383
|
+
/**
|
|
384
|
+
* 版式与轮播等;与 {@link onResourceWallLayoutChange} 由宿主导入 localStorage(预约页)。
|
|
385
|
+
*/
|
|
386
|
+
resourceWallLayout?: Partial<RecordBoardResourceWallLayoutPersist>;
|
|
387
|
+
onResourceWallLayoutChange?: (next: RecordBoardResourceWallLayoutPersist) => void;
|
|
355
388
|
}
|
|
356
389
|
/**
|
|
357
390
|
* RecordBoard 容器 Context 值
|
|
@@ -1 +1,126 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* 布局类型:一种 layout 对应一种「视图的集合」
|
|
3
|
+
* - grid: 搜索 + 表格 + 分页
|
|
4
|
+
* - card: 搜索 + 卡片列表 + 分页
|
|
5
|
+
* 后续可扩展 list、kanban 等
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 列字段类型:对应 Pisell 表单组件,传入列 type 时用该组件自动渲染列(只读)与筛选项(编辑)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/** 无 type 时筛选项可传入自定义组件,需支持 value / onChange 以接入 Form */
|
|
13
|
+
|
|
14
|
+
/** 选项格式,用于 getOptions / options;color 用于只读态 Tag 展示 */
|
|
15
|
+
|
|
16
|
+
/** 同步或异步返回选项列表,singleSelect/multipleSelect 的 fieldProps.getOptions 或 filter.getOptions 使用 */
|
|
17
|
+
|
|
18
|
+
/** 列筛选配置:不传列 type 时使用。可配置 type + options/props,或传入 component(接收 value/onChange)。 */
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* RecordBoard 列类型扩展(与 antd Table Column 兼容,仅增加可选字段)。
|
|
22
|
+
*
|
|
23
|
+
* 有 type(如 singleLineText)时:
|
|
24
|
+
* - 表格:自动用对应 Pisell 组件只读渲染;传入 render 则优先使用(覆盖)。
|
|
25
|
+
* - 筛选:自动用对应组件编辑态;传入 filter(type 或 component)则优先使用(覆盖)。
|
|
26
|
+
* - 排序:自动从组件 SortOptions 派生;传入 sort 则优先使用(覆盖)。
|
|
27
|
+
*
|
|
28
|
+
* 无 type 时:
|
|
29
|
+
* - 表格:无 render 则纯文本;可自定义 render。
|
|
30
|
+
* - 筛选:需配置 filterable + filter(type 或 component,component 需 value/onChange)。
|
|
31
|
+
* - 排序:需配置 sortable + sort(type 或 getSortItems)。
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 分页状态(与容器内部一致)
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 列表请求结果(与 dataSource / useRequest 等对齐)
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/** ShellFrame 内容区:表格、平面图、日历或大屏资源墙(与 GridLayout 同级切换) */
|
|
43
|
+
|
|
44
|
+
/** 日历 Y 轴资源行(与 BookingCalendarDemo 中 court 对齐) */
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* 日历格内预约条数据(与 BookingCalendarDemo 内部 booking 形状一致);
|
|
48
|
+
* `raw` 为宿主预约行时,业务层可用其打开详情弹窗。
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
/** 日视图时间轴上的一条预约 overlay(与 BookingCalendarDemo 内部结构对齐) */
|
|
52
|
+
|
|
53
|
+
/** 表头时间分组合并(声明式);与 {@link RecordBoardCalendarProps.renderTimelineHeader} 二选一优先用 render */
|
|
54
|
+
|
|
55
|
+
/** 自定义时间列表头时注入的上下文 */
|
|
56
|
+
|
|
57
|
+
/** 自定义左侧资源格 */
|
|
58
|
+
|
|
59
|
+
/** 自定义日视图中间预约条外层容器内层(定位仍由日历负责) */
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* 对接 `POST /shop/schedule/blocked-time` 的请求体(与后台字段一致)。
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
/** 日历视图槽位 props:由 Shell 合并根级与子槽后传入 PisellRecordBoardCalendarView */
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* 平面图槽位 props:与 PisellFloorMapLayout 对齐;items/renderItem 可省略(由 RecordBoard 默认 [] / () => null)。
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
/** 大屏资源墙单卡数据(与画布资源 id 对齐,见 {@link resourceId}) */
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* 控制台「Resource & Layout」中与版式/轮播相关的可持久化字段(不含资源多选,其走 filter;不含配色,其走 appearanceTheme)。
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
/** {@link RecordBoardResourceWallLayoutPersist} 默认值,与 {@link PisellRecordBoardResourceWallView} 历史初始 state 一致 */
|
|
78
|
+
export var DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST = {
|
|
79
|
+
layoutKey: '2x3',
|
|
80
|
+
customCols: 3,
|
|
81
|
+
customRows: 2,
|
|
82
|
+
pageDurationSec: 10,
|
|
83
|
+
boardingSoonBeforeMin: 10,
|
|
84
|
+
heroMaxWidthRatio: 0.6
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* 大屏资源墙视图 props;与 Shell 内 `PisellRecordBoard.ResourceWall` 合并(子优先)。
|
|
89
|
+
* 展示顺序由 `searchParams.filter.values[filterFieldKey]`(默认 `resource_wall_resource_ids`)非空 `string[]` 决定;
|
|
90
|
+
* **未写该键、值非数组、或 `[]`**:不展示卡片。每个 id 优先用 `cards` 中同 `resourceId` 的项,否则用占位卡(仅 id)。
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* RecordBoard 容器 Context 值
|
|
95
|
+
* 与具体 layout 类型无关,所有 layout 共用同一套数据与操作
|
|
96
|
+
*/
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* 各 layout 下子组件的可选透传配置(类似 ChildComponentProps)
|
|
100
|
+
*/
|
|
101
|
+
/**
|
|
102
|
+
* BatchActionBar 透传配置,与 PisellBatchActionBar 的 props 对齐。
|
|
103
|
+
* 具体类型见 PisellBatchActionBarProps,此处仅做透传用。
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
/** Filter 透传配置,与 PisellFilter 的 props 对齐 */
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* ToolBar 透传配置。
|
|
110
|
+
* - 继承 PisellToolBar 的 slots:topLeft、topRight、bottomLeft、bottomRight、tabs。
|
|
111
|
+
* - search:默认在工具栏内渲染 PisellFind;为对象时透传为 PisellFind 的 props;为 false 时不渲染搜索。
|
|
112
|
+
* - filter:默认在工具栏右侧渲染 PisellFilter;为对象时透传 PisellFilter props;为 false 时不渲染。筛选值绑定 searchParams.filter,变更触发 onSearch。
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
/** Search 透传配置,与 PisellFind 的 props 对齐 */
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Grid 布局透传配置,对应 RecordBoardGridView 的 props(useRecordBoardContext('grid') 会将其合并到 context)。
|
|
119
|
+
* 基于 antd TableProps,省略由 context 注入或组件自管的项(dataSource、loading、pagination、columns、scroll、size、rowSelection)。
|
|
120
|
+
* 多选用 selectedKeys/selectedRows/onSelectionChange;其余 Table props(如 onRow、onHeaderRow、expandable、rowClassName、summary)透传。
|
|
121
|
+
*/
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* RecordBoard 容器 Props。
|
|
125
|
+
* 仅打散传参:列表/分页/搜索/多选/列显隐、以及 grid/toolBar/search/paginationConfig/batchActionBar/cardList 独立传入。
|
|
126
|
+
*/
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|