@pisell/materials 6.11.34 → 6.11.35
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 +420 -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 +16 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +5 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +48 -40
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +25 -2
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +81 -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 +81 -0
- package/es/locales/en-US.js +82 -0
- package/es/locales/ja.d.ts +81 -0
- package/es/locales/ja.js +81 -0
- package/es/locales/pt.d.ts +81 -0
- package/es/locales/pt.js +81 -0
- package/es/locales/zh-CN.d.ts +81 -0
- package/es/locales/zh-CN.js +82 -0
- package/es/locales/zh-TW.d.ts +81 -0
- package/es/locales/zh-TW.js +82 -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 +429 -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 +16 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +5 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +54 -38
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +25 -2
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +56 -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 +81 -0
- package/lib/locales/en-US.js +82 -0
- package/lib/locales/ja.d.ts +81 -0
- package/lib/locales/ja.js +81 -0
- package/lib/locales/pt.d.ts +81 -0
- package/lib/locales/pt.js +81 -0
- package/lib/locales/zh-CN.d.ts +81 -0
- package/lib/locales/zh-CN.js +82 -0
- package/lib/locales/zh-TW.d.ts +81 -0
- package/lib/locales/zh-TW.js +82 -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 +2 -2
|
@@ -35,40 +35,291 @@ __export(PisellRecordBoardResourceWallView_exports, {
|
|
|
35
35
|
module.exports = __toCommonJS(PisellRecordBoardResourceWallView_exports);
|
|
36
36
|
var import_react = __toESM(require("react"));
|
|
37
37
|
var import_antd = require("antd");
|
|
38
|
+
var import_locales = require("../../../../locales");
|
|
39
|
+
var import_locale = require("../../../../utils/locale");
|
|
38
40
|
var import_useRecordBoardContext = require("../../hooks/useRecordBoardContext");
|
|
41
|
+
var import_types = require("../../types");
|
|
42
|
+
var import_venueWallUtils = require("./venueWallUtils");
|
|
39
43
|
var import_VenueWallCard = require("./VenueWallCard");
|
|
44
|
+
var import_ResourceWallControlPanel = require("./ResourceWallControlPanel");
|
|
45
|
+
var import_ResourceWallViewport = require("./ResourceWallViewport.less");
|
|
40
46
|
var DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY = "resource_wall_resource_ids";
|
|
47
|
+
var FILTER_PARAMS_FIELD = "filter";
|
|
41
48
|
var LAYOUT_PRESETS = [
|
|
42
|
-
{ key: "1x1", cols: 1, rows: 1 },
|
|
43
|
-
{ key: "1x2", cols: 2, rows: 1 },
|
|
44
|
-
{ key: "2x3", cols: 3, rows: 2 },
|
|
45
|
-
{ key: "3x2", cols: 2, rows: 3 },
|
|
46
|
-
{ key: "3x3", cols: 3, rows: 3 }
|
|
49
|
+
{ key: "1x1", label: "1 × 1", cols: 1, rows: 1 },
|
|
50
|
+
{ key: "1x2", label: "1 × 2", cols: 2, rows: 1 },
|
|
51
|
+
{ key: "2x3", label: "2 × 3", cols: 3, rows: 2 },
|
|
52
|
+
{ key: "3x2", label: "3 × 2", cols: 2, rows: 3 },
|
|
53
|
+
{ key: "3x3", label: "3 × 3", cols: 3, rows: 3 },
|
|
54
|
+
{ key: "custom", label: "", cols: 3, rows: 2 }
|
|
47
55
|
];
|
|
56
|
+
var DEFAULT_OCCUPIED = "#6f4ae6";
|
|
57
|
+
var DEFAULT_AVAILABLE = "#10b981";
|
|
48
58
|
var PisellRecordBoardResourceWallView = (props) => {
|
|
49
|
-
|
|
50
|
-
|
|
59
|
+
const {
|
|
60
|
+
className,
|
|
61
|
+
style,
|
|
62
|
+
loading,
|
|
63
|
+
cards: cardsProp,
|
|
64
|
+
statusToneOverrides: statusToneOverridesProp,
|
|
65
|
+
onStatusToneOverridesChange,
|
|
66
|
+
appearanceTheme: appearanceThemeProp,
|
|
67
|
+
onAppearanceThemeChange,
|
|
68
|
+
appearanceMode: appearanceModeProp,
|
|
69
|
+
onAppearanceModeChange,
|
|
70
|
+
resourceWallLayout: resourceWallLayoutProp,
|
|
71
|
+
onResourceWallLayoutChange
|
|
72
|
+
} = props;
|
|
51
73
|
const ctx = (0, import_useRecordBoardContext.useRecordBoardContext)();
|
|
52
74
|
const filterKey = props.filterFieldKey ?? DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY;
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
75
|
+
const [localToneOverrides, setLocalToneOverrides] = (0, import_react.useState)({});
|
|
76
|
+
const emitToneOverrides = (0, import_react.useCallback)(
|
|
77
|
+
(next) => {
|
|
78
|
+
onStatusToneOverridesChange == null ? void 0 : onStatusToneOverridesChange(next);
|
|
79
|
+
if (onStatusToneOverridesChange == null) {
|
|
80
|
+
setLocalToneOverrides(next);
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
[onStatusToneOverridesChange]
|
|
84
|
+
);
|
|
85
|
+
const [internalAppearanceTheme, setInternalAppearanceTheme] = (0, import_react.useState)({});
|
|
86
|
+
const appearanceTheme = appearanceThemeProp ?? internalAppearanceTheme;
|
|
87
|
+
const persistAppearanceTheme = (0, import_react.useCallback)(
|
|
88
|
+
(next) => {
|
|
89
|
+
onAppearanceThemeChange == null ? void 0 : onAppearanceThemeChange(next);
|
|
90
|
+
if (onAppearanceThemeChange == null) {
|
|
91
|
+
setInternalAppearanceTheme(next);
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
[onAppearanceThemeChange]
|
|
95
|
+
);
|
|
96
|
+
const filterValues = (() => {
|
|
97
|
+
var _a;
|
|
98
|
+
const f = (_a = ctx.searchParams) == null ? void 0 : _a.filter;
|
|
99
|
+
if (!f || typeof f !== "object" || f === null) return void 0;
|
|
100
|
+
const v = f.values;
|
|
101
|
+
if (v === null || v === void 0 || typeof v !== "object" || Array.isArray(v)) {
|
|
102
|
+
return void 0;
|
|
103
|
+
}
|
|
104
|
+
return v;
|
|
105
|
+
})();
|
|
106
|
+
const hasResourceWallFilterKey = filterValues != null && Object.prototype.hasOwnProperty.call(filterValues, filterKey);
|
|
107
|
+
const selectedRaw = hasResourceWallFilterKey ? filterValues[filterKey] : void 0;
|
|
108
|
+
const wallSelectedIds = (0, import_react.useMemo)(() => {
|
|
109
|
+
if (!hasResourceWallFilterKey) return [];
|
|
110
|
+
if (!Array.isArray(selectedRaw)) return [];
|
|
111
|
+
const seen = /* @__PURE__ */ new Set();
|
|
112
|
+
const out = [];
|
|
113
|
+
for (const x of selectedRaw) {
|
|
114
|
+
const t = String(x).trim();
|
|
115
|
+
if (!t || seen.has(t)) continue;
|
|
116
|
+
seen.add(t);
|
|
117
|
+
out.push(t);
|
|
118
|
+
}
|
|
119
|
+
return out;
|
|
120
|
+
}, [hasResourceWallFilterKey, selectedRaw]);
|
|
58
121
|
const cards = cardsProp ?? [];
|
|
122
|
+
const cardByResourceId = (0, import_react.useMemo)(() => {
|
|
123
|
+
const m = /* @__PURE__ */ new Map();
|
|
124
|
+
for (const c of cards) {
|
|
125
|
+
m.set(String(c.resourceId), c);
|
|
126
|
+
}
|
|
127
|
+
return m;
|
|
128
|
+
}, [cards]);
|
|
59
129
|
const visibleCards = (0, import_react.useMemo)(() => {
|
|
60
|
-
if (
|
|
61
|
-
return
|
|
130
|
+
if (!wallSelectedIds.length) {
|
|
131
|
+
return [];
|
|
62
132
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
133
|
+
return wallSelectedIds.map((id) => {
|
|
134
|
+
const key = String(id);
|
|
135
|
+
const hit = cardByResourceId.get(key);
|
|
136
|
+
if (hit) {
|
|
137
|
+
return hit;
|
|
138
|
+
}
|
|
139
|
+
return {
|
|
140
|
+
resourceId: key,
|
|
141
|
+
resource: key,
|
|
142
|
+
status: "available"
|
|
143
|
+
};
|
|
144
|
+
});
|
|
145
|
+
}, [cardByResourceId, wallSelectedIds]);
|
|
66
146
|
const [now, setNow] = (0, import_react.useState)(() => /* @__PURE__ */ new Date());
|
|
67
147
|
(0, import_react.useEffect)(() => {
|
|
68
148
|
const id = window.setInterval(() => setNow(/* @__PURE__ */ new Date()), 1e3);
|
|
69
149
|
return () => window.clearInterval(id);
|
|
70
150
|
}, []);
|
|
71
|
-
const
|
|
151
|
+
const [internalAppearanceMode, setInternalAppearanceMode] = (0, import_react.useState)("light");
|
|
152
|
+
const appearanceModeControlled = appearanceModeProp !== void 0 && onAppearanceModeChange != null;
|
|
153
|
+
const appearanceMode = appearanceModeControlled ? appearanceModeProp : internalAppearanceMode;
|
|
154
|
+
const setAppearanceMode = (0, import_react.useCallback)(
|
|
155
|
+
(m) => {
|
|
156
|
+
onAppearanceModeChange == null ? void 0 : onAppearanceModeChange(m);
|
|
157
|
+
if (!appearanceModeControlled) {
|
|
158
|
+
setInternalAppearanceMode(m);
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
[appearanceModeControlled, onAppearanceModeChange]
|
|
162
|
+
);
|
|
163
|
+
const [showControlPanel, setShowControlPanel] = (0, import_react.useState)(false);
|
|
164
|
+
const closeControlPanel = (0, import_react.useCallback)(() => {
|
|
165
|
+
setShowControlPanel(false);
|
|
166
|
+
}, []);
|
|
167
|
+
const [currentPage, setCurrentPage] = (0, import_react.useState)(0);
|
|
168
|
+
const layoutPersisted = onResourceWallLayoutChange != null;
|
|
169
|
+
const [internalLayout, setInternalLayout] = (0, import_react.useState)(() => ({
|
|
170
|
+
...import_types.DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST
|
|
171
|
+
}));
|
|
172
|
+
const layoutState = layoutPersisted ? {
|
|
173
|
+
...import_types.DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST,
|
|
174
|
+
...resourceWallLayoutProp ?? {}
|
|
175
|
+
} : internalLayout;
|
|
176
|
+
const setLayoutState = (0, import_react.useCallback)(
|
|
177
|
+
(patch) => {
|
|
178
|
+
if (layoutPersisted) {
|
|
179
|
+
onResourceWallLayoutChange({
|
|
180
|
+
...import_types.DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST,
|
|
181
|
+
...resourceWallLayoutProp ?? {},
|
|
182
|
+
...patch
|
|
183
|
+
});
|
|
184
|
+
} else {
|
|
185
|
+
setInternalLayout((prev) => ({
|
|
186
|
+
...import_types.DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST,
|
|
187
|
+
...prev,
|
|
188
|
+
...patch
|
|
189
|
+
}));
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
[layoutPersisted, resourceWallLayoutProp, onResourceWallLayoutChange]
|
|
193
|
+
);
|
|
194
|
+
const {
|
|
195
|
+
layoutKey,
|
|
196
|
+
customCols,
|
|
197
|
+
customRows,
|
|
198
|
+
pageDurationSec,
|
|
199
|
+
boardingSoonBeforeMin,
|
|
200
|
+
heroMaxWidthRatio
|
|
201
|
+
} = layoutState;
|
|
202
|
+
const localeKey = (0, import_locale.getCurrentLocale)();
|
|
203
|
+
const layoutPresetsWithI18n = (0, import_react.useMemo)(
|
|
204
|
+
() => LAYOUT_PRESETS.map((p) => ({
|
|
205
|
+
...p,
|
|
206
|
+
label: p.key === "custom" ? (0, import_locales.getText)("pisell-resource-wall-layout-custom") : p.label
|
|
207
|
+
})),
|
|
208
|
+
[localeKey]
|
|
209
|
+
);
|
|
210
|
+
const modeSlot = appearanceTheme[appearanceMode] ?? {};
|
|
211
|
+
const occupiedCardColor = modeSlot.occupiedCardColor != null && modeSlot.occupiedCardColor !== "" ? modeSlot.occupiedCardColor : DEFAULT_OCCUPIED;
|
|
212
|
+
const availableCardColor = modeSlot.availableCardColor != null && modeSlot.availableCardColor !== "" ? modeSlot.availableCardColor : DEFAULT_AVAILABLE;
|
|
213
|
+
const modeToneOverrides = modeSlot.statusToneOverrides;
|
|
214
|
+
const hasModeToneOverrides = modeToneOverrides != null && Object.keys(modeToneOverrides).length > 0;
|
|
215
|
+
const statusToneOverrides = hasModeToneOverrides ? modeToneOverrides : statusToneOverridesProp !== void 0 ? statusToneOverridesProp : localToneOverrides;
|
|
216
|
+
const selectedLayout = (0, import_react.useMemo)(() => {
|
|
217
|
+
if (layoutKey === "custom") {
|
|
218
|
+
return {
|
|
219
|
+
key: "custom",
|
|
220
|
+
label: (0, import_locales.getText)("pisell-resource-wall-layout-custom"),
|
|
221
|
+
cols: Math.max(1, Math.min(6, customCols)),
|
|
222
|
+
rows: Math.max(1, Math.min(6, customRows))
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
return layoutPresetsWithI18n.find((p) => p.key === layoutKey) ?? layoutPresetsWithI18n[2];
|
|
226
|
+
}, [layoutKey, customCols, customRows, layoutPresetsWithI18n]);
|
|
227
|
+
const pageCapacity = selectedLayout.cols * selectedLayout.rows;
|
|
228
|
+
const pagedGroups = (0, import_react.useMemo)(() => {
|
|
229
|
+
const chunks = [];
|
|
230
|
+
for (let i = 0; i < visibleCards.length; i += pageCapacity) {
|
|
231
|
+
chunks.push(visibleCards.slice(i, i + pageCapacity));
|
|
232
|
+
}
|
|
233
|
+
return chunks;
|
|
234
|
+
}, [visibleCards, pageCapacity]);
|
|
235
|
+
const totalPages = Math.max(1, pagedGroups.length);
|
|
236
|
+
const renderCards = pagedGroups[currentPage] ?? visibleCards.slice(0, pageCapacity);
|
|
237
|
+
const controlCarouselPager = (0, import_react.useMemo)(
|
|
238
|
+
() => ({ currentPage, totalPages }),
|
|
239
|
+
[currentPage, totalPages]
|
|
240
|
+
);
|
|
241
|
+
(0, import_react.useEffect)(() => {
|
|
242
|
+
setCurrentPage(
|
|
243
|
+
(p) => totalPages > 0 ? Math.min(p, totalPages - 1) : 0
|
|
244
|
+
);
|
|
245
|
+
}, [totalPages]);
|
|
246
|
+
(0, import_react.useEffect)(() => {
|
|
247
|
+
if (totalPages <= 1) {
|
|
248
|
+
setCurrentPage(0);
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
const ms = Math.max(3, pageDurationSec) * 1e3;
|
|
252
|
+
const timer = window.setInterval(() => {
|
|
253
|
+
setCurrentPage((p) => (p + 1) % totalPages);
|
|
254
|
+
}, ms);
|
|
255
|
+
return () => window.clearInterval(timer);
|
|
256
|
+
}, [totalPages, pageDurationSec]);
|
|
257
|
+
(0, import_react.useEffect)(() => {
|
|
258
|
+
setCurrentPage(0);
|
|
259
|
+
}, [pageCapacity, visibleCards.length]);
|
|
260
|
+
const mergeFilterResourceIds = (0, import_react.useCallback)(
|
|
261
|
+
(ids) => {
|
|
262
|
+
var _a;
|
|
263
|
+
const sp = ctx.searchParams ?? {};
|
|
264
|
+
const filterValue = sp[FILTER_PARAMS_FIELD];
|
|
265
|
+
const currentValues = (filterValue == null ? void 0 : filterValue.values) ?? {};
|
|
266
|
+
const nextFilter = {
|
|
267
|
+
...filterValue,
|
|
268
|
+
values: {
|
|
269
|
+
...currentValues,
|
|
270
|
+
[filterKey]: ids
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
(_a = ctx.onSearch) == null ? void 0 : _a.call(ctx, { ...sp, [FILTER_PARAMS_FIELD]: nextFilter });
|
|
274
|
+
},
|
|
275
|
+
[ctx, filterKey]
|
|
276
|
+
);
|
|
277
|
+
const handleControlApply = (0, import_react.useCallback)(
|
|
278
|
+
(payload) => {
|
|
279
|
+
mergeFilterResourceIds(payload.resourceIds);
|
|
280
|
+
setLayoutState({
|
|
281
|
+
layoutKey: payload.layoutKey,
|
|
282
|
+
customCols: payload.customCols,
|
|
283
|
+
customRows: payload.customRows,
|
|
284
|
+
pageDurationSec: payload.pageDurationSec,
|
|
285
|
+
boardingSoonBeforeMin: payload.boardingSoonBeforeMin,
|
|
286
|
+
heroMaxWidthRatio: payload.heroMaxWidthRatio
|
|
287
|
+
});
|
|
288
|
+
const nextSlot = {
|
|
289
|
+
...appearanceTheme[appearanceMode],
|
|
290
|
+
occupiedCardColor: payload.occupiedCardColor,
|
|
291
|
+
availableCardColor: payload.availableCardColor,
|
|
292
|
+
statusToneOverrides: payload.statusToneOverrides
|
|
293
|
+
};
|
|
294
|
+
persistAppearanceTheme({
|
|
295
|
+
...appearanceTheme,
|
|
296
|
+
[appearanceMode]: nextSlot
|
|
297
|
+
});
|
|
298
|
+
emitToneOverrides(payload.statusToneOverrides);
|
|
299
|
+
},
|
|
300
|
+
[
|
|
301
|
+
mergeFilterResourceIds,
|
|
302
|
+
emitToneOverrides,
|
|
303
|
+
appearanceTheme,
|
|
304
|
+
appearanceMode,
|
|
305
|
+
persistAppearanceTheme,
|
|
306
|
+
setLayoutState
|
|
307
|
+
]
|
|
308
|
+
);
|
|
309
|
+
const statusToneMap = (0, import_react.useMemo)(
|
|
310
|
+
() => (0, import_venueWallUtils.getVenueWallStatusToneMap)(statusToneOverrides),
|
|
311
|
+
[statusToneOverrides]
|
|
312
|
+
);
|
|
313
|
+
const isDark = appearanceMode === "dark";
|
|
314
|
+
const pageBg = isDark ? "#0f172a" : "#f5f7fb";
|
|
315
|
+
const headerBg = isDark ? "#1e293b" : "#ffffff";
|
|
316
|
+
const headerBorder = isDark ? "1px solid #334155" : "1px solid #e2e8f0";
|
|
317
|
+
const clockColor = isDark ? "#f1f5f9" : "#0f172a";
|
|
318
|
+
const mutedText = isDark ? "#94a3b8" : "#64748b";
|
|
319
|
+
const toolbarBtnBorder = isDark ? "1px solid #475569" : "1px solid #e2e8f0";
|
|
320
|
+
const toolbarBtnBg = isDark ? "#334155" : "#ffffff";
|
|
321
|
+
const toolbarBtnBgActive = isDark ? "#475569" : "#f1f5f9";
|
|
322
|
+
const countdownSec = Math.max(3, pageDurationSec);
|
|
72
323
|
const shell = /* @__PURE__ */ import_react.default.createElement(
|
|
73
324
|
"div",
|
|
74
325
|
{
|
|
@@ -79,8 +330,8 @@ var PisellRecordBoardResourceWallView = (props) => {
|
|
|
79
330
|
display: "flex",
|
|
80
331
|
flexDirection: "column",
|
|
81
332
|
overflow: "hidden",
|
|
82
|
-
background:
|
|
83
|
-
color:
|
|
333
|
+
background: pageBg,
|
|
334
|
+
color: clockColor,
|
|
84
335
|
...style
|
|
85
336
|
}
|
|
86
337
|
},
|
|
@@ -89,13 +340,13 @@ var PisellRecordBoardResourceWallView = (props) => {
|
|
|
89
340
|
{
|
|
90
341
|
style: {
|
|
91
342
|
flexShrink: 0,
|
|
92
|
-
borderBottom:
|
|
343
|
+
borderBottom: headerBorder,
|
|
93
344
|
padding: "16px 24px",
|
|
94
345
|
display: "flex",
|
|
95
346
|
alignItems: "center",
|
|
96
347
|
justifyContent: "space-between",
|
|
97
348
|
gap: 16,
|
|
98
|
-
background:
|
|
349
|
+
background: headerBg
|
|
99
350
|
}
|
|
100
351
|
},
|
|
101
352
|
/* @__PURE__ */ import_react.default.createElement(
|
|
@@ -104,7 +355,8 @@ var PisellRecordBoardResourceWallView = (props) => {
|
|
|
104
355
|
style: {
|
|
105
356
|
fontSize: 22,
|
|
106
357
|
fontWeight: 600,
|
|
107
|
-
letterSpacing: "-0.02em"
|
|
358
|
+
letterSpacing: "-0.02em",
|
|
359
|
+
color: clockColor
|
|
108
360
|
}
|
|
109
361
|
},
|
|
110
362
|
now.toLocaleTimeString([], {
|
|
@@ -120,12 +372,126 @@ var PisellRecordBoardResourceWallView = (props) => {
|
|
|
120
372
|
month: "short",
|
|
121
373
|
year: "numeric"
|
|
122
374
|
})
|
|
123
|
-
)
|
|
375
|
+
),
|
|
376
|
+
/* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", alignItems: "center", gap: 8 } }, /* @__PURE__ */ import_react.default.createElement(
|
|
377
|
+
"div",
|
|
378
|
+
{
|
|
379
|
+
style: {
|
|
380
|
+
display: "inline-flex",
|
|
381
|
+
alignItems: "center",
|
|
382
|
+
borderRadius: 6,
|
|
383
|
+
border: toolbarBtnBorder,
|
|
384
|
+
overflow: "hidden",
|
|
385
|
+
background: toolbarBtnBg
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
389
|
+
"button",
|
|
390
|
+
{
|
|
391
|
+
type: "button",
|
|
392
|
+
onClick: () => setAppearanceMode("light"),
|
|
393
|
+
style: {
|
|
394
|
+
border: "none",
|
|
395
|
+
padding: "6px 12px",
|
|
396
|
+
fontSize: 13,
|
|
397
|
+
fontWeight: 500,
|
|
398
|
+
cursor: "pointer",
|
|
399
|
+
background: appearanceMode === "light" ? toolbarBtnBgActive : "transparent",
|
|
400
|
+
color: appearanceMode === "light" ? clockColor : mutedText
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
(0, import_locales.getText)("pisell-resource-wall-appearance-light")
|
|
404
|
+
),
|
|
405
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
406
|
+
"button",
|
|
407
|
+
{
|
|
408
|
+
type: "button",
|
|
409
|
+
onClick: () => setAppearanceMode("dark"),
|
|
410
|
+
style: {
|
|
411
|
+
border: "none",
|
|
412
|
+
borderLeft: toolbarBtnBorder,
|
|
413
|
+
padding: "6px 12px",
|
|
414
|
+
fontSize: 13,
|
|
415
|
+
fontWeight: 500,
|
|
416
|
+
cursor: "pointer",
|
|
417
|
+
background: appearanceMode === "dark" ? toolbarBtnBgActive : "transparent",
|
|
418
|
+
color: appearanceMode === "dark" ? clockColor : mutedText
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
(0, import_locales.getText)("pisell-resource-wall-appearance-dark")
|
|
422
|
+
)
|
|
423
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
424
|
+
"button",
|
|
425
|
+
{
|
|
426
|
+
type: "button",
|
|
427
|
+
onClick: () => setShowControlPanel(true),
|
|
428
|
+
style: {
|
|
429
|
+
borderRadius: 6,
|
|
430
|
+
padding: "6px 14px",
|
|
431
|
+
fontSize: 13,
|
|
432
|
+
fontWeight: 500,
|
|
433
|
+
cursor: "pointer",
|
|
434
|
+
border: toolbarBtnBorder,
|
|
435
|
+
background: toolbarBtnBg,
|
|
436
|
+
color: clockColor
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
(0, import_locales.getText)("pisell-resource-wall-control-open")
|
|
440
|
+
))
|
|
124
441
|
),
|
|
125
|
-
/* @__PURE__ */ import_react.default.createElement("div", { style: { flex: 1, minHeight: 0, padding: 12 } }, /* @__PURE__ */ import_react.default.createElement(
|
|
442
|
+
/* @__PURE__ */ import_react.default.createElement("div", { style: { flex: 1, minHeight: 0, padding: 12, display: "flex", flexDirection: "column", gap: 10 } }, totalPages > 1 ? /* @__PURE__ */ import_react.default.createElement(
|
|
443
|
+
"div",
|
|
444
|
+
{
|
|
445
|
+
style: {
|
|
446
|
+
flexShrink: 0,
|
|
447
|
+
display: "flex",
|
|
448
|
+
alignItems: "center",
|
|
449
|
+
gap: 12
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
453
|
+
"div",
|
|
454
|
+
{
|
|
455
|
+
style: {
|
|
456
|
+
fontSize: 13,
|
|
457
|
+
fontWeight: 600,
|
|
458
|
+
color: mutedText,
|
|
459
|
+
whiteSpace: "nowrap"
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
(0, import_locales.getText)("pisell-resource-wall-page-indicator").replace("{cur}", String(currentPage + 1)).replace("{total}", String(totalPages))
|
|
463
|
+
),
|
|
464
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
465
|
+
"div",
|
|
466
|
+
{
|
|
467
|
+
style: {
|
|
468
|
+
flex: 1,
|
|
469
|
+
height: 4,
|
|
470
|
+
borderRadius: 2,
|
|
471
|
+
overflow: "hidden",
|
|
472
|
+
background: isDark ? "rgba(255,255,255,0.1)" : "rgba(15,23,42,0.08)"
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
476
|
+
"div",
|
|
477
|
+
{
|
|
478
|
+
key: `${currentPage}-${countdownSec}`,
|
|
479
|
+
className: "pisell-resource-wall-page-countdown-bar",
|
|
480
|
+
style: {
|
|
481
|
+
height: "100%",
|
|
482
|
+
width: "100%",
|
|
483
|
+
background: occupiedCardColor,
|
|
484
|
+
animationDuration: `${countdownSec}s`
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
)
|
|
488
|
+
)
|
|
489
|
+
) : null, /* @__PURE__ */ import_react.default.createElement(
|
|
126
490
|
"div",
|
|
127
491
|
{
|
|
128
492
|
style: {
|
|
493
|
+
flex: 1,
|
|
494
|
+
minHeight: 0,
|
|
129
495
|
height: "100%",
|
|
130
496
|
display: "grid",
|
|
131
497
|
gap: 16,
|
|
@@ -133,10 +499,44 @@ var PisellRecordBoardResourceWallView = (props) => {
|
|
|
133
499
|
gridTemplateRows: `repeat(${selectedLayout.rows}, minmax(0, 1fr))`
|
|
134
500
|
}
|
|
135
501
|
},
|
|
136
|
-
|
|
137
|
-
|
|
502
|
+
renderCards.map((card, index) => /* @__PURE__ */ import_react.default.createElement(
|
|
503
|
+
import_VenueWallCard.VenueWallCard,
|
|
504
|
+
{
|
|
505
|
+
key: `${card.resourceId}-${index}`,
|
|
506
|
+
card,
|
|
507
|
+
boardingSoonBeforeMin,
|
|
508
|
+
occupiedCardColor,
|
|
509
|
+
availableCardColor,
|
|
510
|
+
heroMaxWidthRatio,
|
|
511
|
+
statusToneMap,
|
|
512
|
+
appearance: appearanceMode
|
|
513
|
+
}
|
|
514
|
+
))
|
|
515
|
+
)),
|
|
516
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
517
|
+
import_ResourceWallControlPanel.ResourceWallControlPanel,
|
|
518
|
+
{
|
|
519
|
+
open: showControlPanel,
|
|
520
|
+
onClose: closeControlPanel,
|
|
521
|
+
isDark,
|
|
522
|
+
cards,
|
|
523
|
+
layoutPresets: layoutPresetsWithI18n,
|
|
524
|
+
layoutKey,
|
|
525
|
+
customCols,
|
|
526
|
+
customRows,
|
|
527
|
+
pageDurationSec,
|
|
528
|
+
occupiedCardColor,
|
|
529
|
+
availableCardColor,
|
|
530
|
+
boardingSoonBeforeMin,
|
|
531
|
+
statusToneOverrides,
|
|
532
|
+
selectedResourceIds: wallSelectedIds,
|
|
533
|
+
carouselPager: controlCarouselPager,
|
|
534
|
+
heroMaxWidthRatio,
|
|
535
|
+
onApply: handleControlApply
|
|
536
|
+
}
|
|
537
|
+
)
|
|
138
538
|
);
|
|
139
|
-
if (loading) {
|
|
539
|
+
if (loading && !showControlPanel) {
|
|
140
540
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
141
541
|
"div",
|
|
142
542
|
{
|
|
@@ -147,7 +547,7 @@ var PisellRecordBoardResourceWallView = (props) => {
|
|
|
147
547
|
display: "flex",
|
|
148
548
|
alignItems: "center",
|
|
149
549
|
justifyContent: "center",
|
|
150
|
-
background:
|
|
550
|
+
background: pageBg,
|
|
151
551
|
...style
|
|
152
552
|
}
|
|
153
553
|
},
|
package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { RecordBoardResourceWallCardModel } from '../../types';
|
|
3
|
+
import { type VenueWallStatusToneOverrides } from './venueWallUtils';
|
|
4
|
+
export declare type ResourceWallLayoutPreset = {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
cols: number;
|
|
8
|
+
rows: number;
|
|
9
|
+
};
|
|
10
|
+
export declare type ResourceWallControlPanelApplyPayload = {
|
|
11
|
+
resourceIds: string[];
|
|
12
|
+
layoutKey: string;
|
|
13
|
+
customCols: number;
|
|
14
|
+
customRows: number;
|
|
15
|
+
pageDurationSec: number;
|
|
16
|
+
occupiedCardColor: string;
|
|
17
|
+
availableCardColor: string;
|
|
18
|
+
boardingSoonBeforeMin: number;
|
|
19
|
+
statusToneOverrides: VenueWallStatusToneOverrides;
|
|
20
|
+
/** 与 test.tsx「主文案基准宽度占比」对接,写入 {@link VenueWallCard} */
|
|
21
|
+
heroMaxWidthRatio: number;
|
|
22
|
+
};
|
|
23
|
+
export interface ResourceWallControlPanelProps {
|
|
24
|
+
open: boolean;
|
|
25
|
+
onClose: () => void;
|
|
26
|
+
isDark: boolean;
|
|
27
|
+
cards: RecordBoardResourceWallCardModel[];
|
|
28
|
+
layoutPresets: readonly ResourceWallLayoutPreset[];
|
|
29
|
+
layoutKey: string;
|
|
30
|
+
customCols: number;
|
|
31
|
+
customRows: number;
|
|
32
|
+
pageDurationSec: number;
|
|
33
|
+
occupiedCardColor: string;
|
|
34
|
+
availableCardColor: string;
|
|
35
|
+
boardingSoonBeforeMin: number;
|
|
36
|
+
statusToneOverrides: VenueWallStatusToneOverrides | undefined;
|
|
37
|
+
selectedResourceIds: string[];
|
|
38
|
+
onApply: (payload: ResourceWallControlPanelApplyPayload) => void;
|
|
39
|
+
/** 与 test.tsx「当前分页 / 倒计时」展示一致(1-based current) */
|
|
40
|
+
carouselPager: {
|
|
41
|
+
currentPage: number;
|
|
42
|
+
totalPages: number;
|
|
43
|
+
};
|
|
44
|
+
/** 主文案宽度占比初值,与 {@link VenueWallCardProps.heroMaxWidthRatio} 一致 */
|
|
45
|
+
heroMaxWidthRatio?: number;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* 控制台弹层:JSX 自仓库根 `test.tsx` 的 `showAdmin` 整段复制后对接真实状态;
|
|
49
|
+
* 状态表仅六态。
|
|
50
|
+
* 关闭(Close / Escape / 点击遮罩)时提交当前草稿并关闭。
|
|
51
|
+
*/
|
|
52
|
+
export declare const ResourceWallControlPanel: React.FC<ResourceWallControlPanelProps>;
|