@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.
Files changed (474) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +3 -1
  8. package/build/lowcode/render/default/view.js +17 -17
  9. package/build/lowcode/view.css +3 -1
  10. package/build/lowcode/view.js +17 -17
  11. package/es/components/Pagination/index.d.ts +1 -0
  12. package/es/components/PisellBasicGrid/PisellBasicGrid.d.ts +1 -0
  13. package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +1 -0
  14. package/es/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardExpand.d.ts +1 -0
  15. package/es/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +1 -0
  16. package/es/components/PisellCards/components/PisellImageCard/hooks/useImageLoad.d.ts +1 -0
  17. package/es/components/PisellCards/components/TabCard/TabCard.d.ts +1 -0
  18. package/es/components/PisellCards/components/TextCard/TextCard.d.ts +1 -0
  19. package/es/components/PisellCards/index.d.ts +1 -0
  20. package/es/components/PisellFields/index.d.ts +1 -0
  21. package/es/components/PisellLayouts/index.d.ts +1 -0
  22. package/es/components/PisellMetrics/index.d.ts +1 -0
  23. package/es/components/appVersionControl/index.d.ts +1 -0
  24. package/es/components/auto-complete-number/index.d.ts +1 -0
  25. package/es/components/badge/index.d.ts +1 -0
  26. package/es/components/batch-editor/fields/index.d.ts +1 -0
  27. package/es/components/batch-editor/index.d.ts +1 -0
  28. package/es/components/calendar/index.d.ts +1 -0
  29. package/es/components/cardPro/index.d.ts +1 -0
  30. package/es/components/checkbox/index.d.ts +1 -0
  31. package/es/components/classicLayout/index.d.ts +1 -0
  32. package/es/components/colorPicker/index.d.ts +1 -0
  33. package/es/components/config-provider/index.d.ts +1 -0
  34. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  35. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  36. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  37. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  38. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  39. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  40. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  41. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  42. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  43. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
  44. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
  45. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
  46. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
  47. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
  48. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  49. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  50. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
  51. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
  52. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
  53. package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -0
  54. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  55. package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -0
  56. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
  57. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
  58. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  59. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  60. package/es/components/dataSourceComponents/fields/index.d.ts +1 -0
  61. package/es/components/date-picker/datePickerCpt.d.ts +1 -0
  62. package/es/components/date-picker/index.d.ts +1 -0
  63. package/es/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  64. package/es/components/drag-sort-tree/index.d.ts +1 -0
  65. package/es/components/dropdown/index.d.ts +1 -0
  66. package/es/components/filter/components/items/index.d.ts +1 -0
  67. package/es/components/filter/components/items/text/Editor/index.d.ts +1 -0
  68. package/es/components/filter/components/items/text/Preview/index.d.ts +1 -0
  69. package/es/components/filter/components/items/text/index.d.ts +1 -0
  70. package/es/components/filter/index.d.ts +1 -0
  71. package/es/components/list/index.d.ts +1 -0
  72. package/es/components/lowCodePage/index.d.ts +1 -0
  73. package/es/components/page/index.d.ts +1 -0
  74. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  75. package/es/components/pisellAdjustPrice/index.d.ts +1 -0
  76. package/es/components/pisellCard/index.d.ts +1 -0
  77. package/es/components/pisellDataSourceContainer/PisellDataSourceContainer.d.ts +1 -0
  78. package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +1 -0
  79. package/es/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
  80. package/es/components/pisellDatePicker/index.d.ts +1 -0
  81. package/es/components/pisellFilter/index.d.ts +1 -0
  82. package/es/components/pisellGridPro/GridView/index.d.ts +1 -0
  83. package/es/components/pisellGridPro/components/DataCard/index.d.ts +1 -0
  84. package/es/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  85. package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
  86. package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
  87. package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
  88. package/es/components/pisellInput/index.d.ts +1 -0
  89. package/es/components/pisellLoading/index.d.ts +1 -0
  90. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  91. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  92. package/es/components/pisellModal/components/index.d.ts +1 -0
  93. package/es/components/pisellRecordBoard/index.d.ts +2 -1
  94. package/es/components/pisellRecordBoard/index.js +1 -0
  95. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +1 -0
  96. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +455 -35
  97. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +52 -0
  98. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +525 -0
  99. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewport.less +37 -0
  100. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +5 -0
  101. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +57 -41
  102. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +25 -2
  103. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +88 -3
  104. package/es/components/pisellRecordBoard/types.d.ts +34 -1
  105. package/es/components/pisellRecordBoard/types.js +126 -1
  106. package/es/components/pisellSort/index.d.ts +1 -0
  107. package/es/components/pisellTooltip/index.d.ts +1 -0
  108. package/es/components/pisellUpload/index.d.ts +1 -0
  109. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +1 -0
  110. package/es/components/productCard/cartSkuCard/components/Gift/index.d.ts +1 -0
  111. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +1 -0
  112. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +1 -0
  113. package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +1 -0
  114. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
  115. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +1 -0
  116. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
  117. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  118. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +1 -0
  119. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
  120. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
  121. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +1 -0
  122. package/es/components/productCard/cartSkuCard/index.d.ts +1 -0
  123. package/es/components/productCard/components/Action/index.d.ts +1 -0
  124. package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
  125. package/es/components/productCard/components/Divider/index.d.ts +1 -0
  126. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +1 -0
  127. package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  128. package/es/components/productCard/components/Header/index.d.ts +1 -0
  129. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  130. package/es/components/productCard/components/Note/index.d.ts +1 -0
  131. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  132. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  133. package/es/components/productCard/components/Packages/index.d.ts +1 -0
  134. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  135. package/es/components/productCard/components/Sales/index.d.ts +1 -0
  136. package/es/components/productCard/components/Time/components/Like/index.d.ts +1 -0
  137. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +1 -0
  138. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
  139. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  140. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
  141. package/es/components/productCard/components/Time/index.d.ts +1 -0
  142. package/es/components/qrcode/index.d.ts +1 -0
  143. package/es/components/radio/index.d.ts +1 -0
  144. package/es/components/segmented/index.d.ts +1 -0
  145. package/es/components/select-time/RightPanel/index.d.ts +1 -0
  146. package/es/components/select-time/index.d.ts +1 -0
  147. package/es/components/skeleton/index.d.ts +1 -0
  148. package/es/components/slider/index.d.ts +1 -0
  149. package/es/components/sort/components/InlineMenu/index.d.ts +1 -0
  150. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  151. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  152. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  153. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  154. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
  155. package/es/components/table/Actions/component/ExportImport/index.d.ts +1 -0
  156. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  157. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  158. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  159. package/es/components/table/Actions/component/ViewMode/index.d.ts +1 -0
  160. package/es/components/table/Actions/index.d.ts +1 -0
  161. package/es/components/table/BasicTable/index.d.ts +1 -0
  162. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  163. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  164. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  165. package/es/components/table/Summary/index.d.ts +1 -0
  166. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  167. package/es/components/table/Table/fields/date/Config/index.d.ts +1 -0
  168. package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
  169. package/es/components/table/Table/fields/date/Sort/index.d.ts +1 -0
  170. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  171. package/es/components/table/Table/fields/image/Config/index.d.ts +1 -0
  172. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  173. package/es/components/table/Table/fields/image/Sort/index.d.ts +1 -0
  174. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  175. package/es/components/table/Table/fields/index.d.ts +1 -0
  176. package/es/components/table/Table/fields/link/Config/index.d.ts +1 -0
  177. package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
  178. package/es/components/table/Table/fields/link/Sort/index.d.ts +1 -0
  179. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  180. package/es/components/table/Table/fields/number/Config/index.d.ts +1 -0
  181. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  182. package/es/components/table/Table/fields/number/Sort/index.d.ts +1 -0
  183. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  184. package/es/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
  185. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  186. package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
  187. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  188. package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
  189. package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
  190. package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
  191. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  192. package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
  193. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  194. package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
  195. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  196. package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
  197. package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
  198. package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
  199. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  200. package/es/components/table/Table/fields/search/Config/index.d.ts +1 -0
  201. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  202. package/es/components/table/Table/fields/search/Sort/index.d.ts +1 -0
  203. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  204. package/es/components/table/Table/fields/select/Config/index.d.ts +1 -0
  205. package/es/components/table/Table/fields/select/Show/index.d.ts +1 -0
  206. package/es/components/table/Table/fields/select/Sort/index.d.ts +1 -0
  207. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  208. package/es/components/table/Table/fields/text/Config/index.d.ts +1 -0
  209. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  210. package/es/components/table/Table/fields/text/Sort/index.d.ts +1 -0
  211. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  212. package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
  213. package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
  214. package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
  215. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  216. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  217. package/es/components/table/Table/tableConfig/summary/index.d.ts +1 -0
  218. package/es/components/table/TableFilter/SortIcon.d.ts +1 -0
  219. package/es/components/table/View/index.d.ts +1 -0
  220. package/es/components/time-picker/index.d.ts +1 -0
  221. package/es/components/upload/index.d.ts +1 -0
  222. package/es/components/versionSelect/index.d.ts +1 -0
  223. package/es/components/virtual-keyboard/Amount/index.d.ts +1 -0
  224. package/es/components/virtual-keyboard/Number/index.d.ts +1 -0
  225. package/es/components/virtual-keyboard/Time/utils.d.ts +1 -0
  226. package/es/components/walletCard/Guest/index.d.ts +1 -0
  227. package/es/components/walletCard/Guide/index.d.ts +1 -0
  228. package/es/index.d.ts +4 -1
  229. package/es/index.js +2 -0
  230. package/es/locales/en-US.d.ts +83 -0
  231. package/es/locales/en-US.js +84 -0
  232. package/es/locales/ja.d.ts +83 -0
  233. package/es/locales/ja.js +83 -0
  234. package/es/locales/pt.d.ts +83 -0
  235. package/es/locales/pt.js +83 -0
  236. package/es/locales/zh-CN.d.ts +83 -0
  237. package/es/locales/zh-CN.js +84 -0
  238. package/es/locales/zh-TW.d.ts +83 -0
  239. package/es/locales/zh-TW.js +84 -0
  240. package/es/pisell-materials.tw.css +3 -1
  241. package/es/tailwind-input.css +3 -1
  242. package/lib/components/Pagination/index.d.ts +1 -0
  243. package/lib/components/PisellBasicGrid/PisellBasicGrid.d.ts +1 -0
  244. package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +1 -0
  245. package/lib/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardExpand.d.ts +1 -0
  246. package/lib/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +1 -0
  247. package/lib/components/PisellCards/components/PisellImageCard/hooks/useImageLoad.d.ts +1 -0
  248. package/lib/components/PisellCards/components/TabCard/TabCard.d.ts +1 -0
  249. package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +1 -0
  250. package/lib/components/PisellCards/index.d.ts +1 -0
  251. package/lib/components/PisellFields/index.d.ts +1 -0
  252. package/lib/components/PisellLayouts/index.d.ts +1 -0
  253. package/lib/components/PisellMetrics/index.d.ts +1 -0
  254. package/lib/components/appVersionControl/index.d.ts +1 -0
  255. package/lib/components/auto-complete-number/index.d.ts +1 -0
  256. package/lib/components/badge/index.d.ts +1 -0
  257. package/lib/components/batch-editor/fields/index.d.ts +1 -0
  258. package/lib/components/batch-editor/index.d.ts +1 -0
  259. package/lib/components/calendar/index.d.ts +1 -0
  260. package/lib/components/cardPro/index.d.ts +1 -0
  261. package/lib/components/checkbox/index.d.ts +1 -0
  262. package/lib/components/classicLayout/index.d.ts +1 -0
  263. package/lib/components/colorPicker/index.d.ts +1 -0
  264. package/lib/components/config-provider/index.d.ts +1 -0
  265. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  266. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  267. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  268. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  269. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  270. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  271. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  272. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  273. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  274. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
  275. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
  276. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
  277. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
  278. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
  279. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  280. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  281. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
  282. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
  283. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
  284. package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -0
  285. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  286. package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -0
  287. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
  288. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
  289. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  290. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  291. package/lib/components/dataSourceComponents/fields/index.d.ts +1 -0
  292. package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
  293. package/lib/components/date-picker/index.d.ts +1 -0
  294. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  295. package/lib/components/drag-sort-tree/index.d.ts +1 -0
  296. package/lib/components/dropdown/index.d.ts +1 -0
  297. package/lib/components/filter/components/items/index.d.ts +1 -0
  298. package/lib/components/filter/components/items/text/Editor/index.d.ts +1 -0
  299. package/lib/components/filter/components/items/text/Preview/index.d.ts +1 -0
  300. package/lib/components/filter/components/items/text/index.d.ts +1 -0
  301. package/lib/components/filter/index.d.ts +1 -0
  302. package/lib/components/list/index.d.ts +1 -0
  303. package/lib/components/lowCodePage/index.d.ts +1 -0
  304. package/lib/components/page/index.d.ts +1 -0
  305. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  306. package/lib/components/pisellAdjustPrice/index.d.ts +1 -0
  307. package/lib/components/pisellCard/index.d.ts +1 -0
  308. package/lib/components/pisellDataSourceContainer/PisellDataSourceContainer.d.ts +1 -0
  309. package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +1 -0
  310. package/lib/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
  311. package/lib/components/pisellDatePicker/index.d.ts +1 -0
  312. package/lib/components/pisellFilter/index.d.ts +1 -0
  313. package/lib/components/pisellGridPro/GridView/index.d.ts +1 -0
  314. package/lib/components/pisellGridPro/components/DataCard/index.d.ts +1 -0
  315. package/lib/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  316. package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
  317. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
  318. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
  319. package/lib/components/pisellInput/index.d.ts +1 -0
  320. package/lib/components/pisellLoading/index.d.ts +1 -0
  321. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  322. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  323. package/lib/components/pisellModal/components/index.d.ts +1 -0
  324. package/lib/components/pisellRecordBoard/index.d.ts +2 -1
  325. package/lib/components/pisellRecordBoard/index.js +3 -0
  326. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +1 -0
  327. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +461 -29
  328. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +52 -0
  329. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +493 -0
  330. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewport.less +37 -0
  331. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +5 -0
  332. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +60 -39
  333. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +25 -2
  334. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +66 -5
  335. package/lib/components/pisellRecordBoard/types.d.ts +34 -1
  336. package/lib/components/pisellRecordBoard/types.js +19 -0
  337. package/lib/components/pisellSort/index.d.ts +1 -0
  338. package/lib/components/pisellTooltip/index.d.ts +1 -0
  339. package/lib/components/pisellUpload/index.d.ts +1 -0
  340. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +1 -0
  341. package/lib/components/productCard/cartSkuCard/components/Gift/index.d.ts +1 -0
  342. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +1 -0
  343. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +1 -0
  344. package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +1 -0
  345. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
  346. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +1 -0
  347. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
  348. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  349. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +1 -0
  350. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
  351. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
  352. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +1 -0
  353. package/lib/components/productCard/cartSkuCard/index.d.ts +1 -0
  354. package/lib/components/productCard/components/Action/index.d.ts +1 -0
  355. package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
  356. package/lib/components/productCard/components/Divider/index.d.ts +1 -0
  357. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +1 -0
  358. package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  359. package/lib/components/productCard/components/Header/index.d.ts +1 -0
  360. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  361. package/lib/components/productCard/components/Note/index.d.ts +1 -0
  362. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  363. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  364. package/lib/components/productCard/components/Packages/index.d.ts +1 -0
  365. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  366. package/lib/components/productCard/components/Sales/index.d.ts +1 -0
  367. package/lib/components/productCard/components/Time/components/Like/index.d.ts +1 -0
  368. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +1 -0
  369. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
  370. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  371. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
  372. package/lib/components/productCard/components/Time/index.d.ts +1 -0
  373. package/lib/components/qrcode/index.d.ts +1 -0
  374. package/lib/components/radio/index.d.ts +1 -0
  375. package/lib/components/segmented/index.d.ts +1 -0
  376. package/lib/components/select-time/RightPanel/index.d.ts +1 -0
  377. package/lib/components/select-time/index.d.ts +1 -0
  378. package/lib/components/skeleton/index.d.ts +1 -0
  379. package/lib/components/slider/index.d.ts +1 -0
  380. package/lib/components/sort/components/InlineMenu/index.d.ts +1 -0
  381. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  382. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  383. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  384. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  385. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
  386. package/lib/components/table/Actions/component/ExportImport/index.d.ts +1 -0
  387. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  388. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  389. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  390. package/lib/components/table/Actions/component/ViewMode/index.d.ts +1 -0
  391. package/lib/components/table/Actions/index.d.ts +1 -0
  392. package/lib/components/table/BasicTable/index.d.ts +1 -0
  393. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  394. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  395. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  396. package/lib/components/table/Summary/index.d.ts +1 -0
  397. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  398. package/lib/components/table/Table/fields/date/Config/index.d.ts +1 -0
  399. package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
  400. package/lib/components/table/Table/fields/date/Sort/index.d.ts +1 -0
  401. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  402. package/lib/components/table/Table/fields/image/Config/index.d.ts +1 -0
  403. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  404. package/lib/components/table/Table/fields/image/Sort/index.d.ts +1 -0
  405. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  406. package/lib/components/table/Table/fields/index.d.ts +1 -0
  407. package/lib/components/table/Table/fields/link/Config/index.d.ts +1 -0
  408. package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
  409. package/lib/components/table/Table/fields/link/Sort/index.d.ts +1 -0
  410. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  411. package/lib/components/table/Table/fields/number/Config/index.d.ts +1 -0
  412. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  413. package/lib/components/table/Table/fields/number/Sort/index.d.ts +1 -0
  414. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  415. package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
  416. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  417. package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
  418. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  419. package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
  420. package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
  421. package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
  422. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  423. package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
  424. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  425. package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
  426. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  427. package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
  428. package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
  429. package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
  430. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  431. package/lib/components/table/Table/fields/search/Config/index.d.ts +1 -0
  432. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  433. package/lib/components/table/Table/fields/search/Sort/index.d.ts +1 -0
  434. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  435. package/lib/components/table/Table/fields/select/Config/index.d.ts +1 -0
  436. package/lib/components/table/Table/fields/select/Show/index.d.ts +1 -0
  437. package/lib/components/table/Table/fields/select/Sort/index.d.ts +1 -0
  438. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  439. package/lib/components/table/Table/fields/text/Config/index.d.ts +1 -0
  440. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  441. package/lib/components/table/Table/fields/text/Sort/index.d.ts +1 -0
  442. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  443. package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
  444. package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
  445. package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
  446. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  447. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  448. package/lib/components/table/Table/tableConfig/summary/index.d.ts +1 -0
  449. package/lib/components/table/TableFilter/SortIcon.d.ts +1 -0
  450. package/lib/components/table/View/index.d.ts +1 -0
  451. package/lib/components/time-picker/index.d.ts +1 -0
  452. package/lib/components/upload/index.d.ts +1 -0
  453. package/lib/components/versionSelect/index.d.ts +1 -0
  454. package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -0
  455. package/lib/components/virtual-keyboard/Number/index.d.ts +1 -0
  456. package/lib/components/virtual-keyboard/Time/utils.d.ts +1 -0
  457. package/lib/components/walletCard/Guest/index.d.ts +1 -0
  458. package/lib/components/walletCard/Guide/index.d.ts +1 -0
  459. package/lib/index.d.ts +4 -1
  460. package/lib/index.js +8 -0
  461. package/lib/locales/en-US.d.ts +83 -0
  462. package/lib/locales/en-US.js +84 -0
  463. package/lib/locales/ja.d.ts +83 -0
  464. package/lib/locales/ja.js +83 -0
  465. package/lib/locales/pt.d.ts +83 -0
  466. package/lib/locales/pt.js +83 -0
  467. package/lib/locales/zh-CN.d.ts +83 -0
  468. package/lib/locales/zh-CN.js +84 -0
  469. package/lib/locales/zh-TW.d.ts +83 -0
  470. package/lib/locales/zh-TW.js +84 -0
  471. package/lib/pisell-materials.tw.css +3 -1
  472. package/lib/tailwind-input.css +3 -1
  473. package/lowcode/pisell-record-board-calendar-view/meta.ts +81 -1
  474. package/package.json +3 -3
@@ -35,43 +35,309 @@ __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
- var _a, _b, _c;
50
- const { className, style, loading, cards: cardsProp } = props;
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 selectedRaw = (_c = (_b = (_a = ctx.searchParams) == null ? void 0 : _a.filter) == null ? void 0 : _b.values) == null ? void 0 : _c[filterKey];
54
- const selectedIds = (0, import_react.useMemo)(() => {
55
- if (!Array.isArray(selectedRaw)) return null;
56
- return selectedRaw.map((x) => String(x));
57
- }, [selectedRaw]);
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 (selectedIds == null || selectedIds.length === 0) {
61
- return cards;
130
+ if (!wallSelectedIds.length) {
131
+ return [];
62
132
  }
63
- const set = new Set(selectedIds);
64
- return cards.filter((c) => set.has(String(c.resourceId)));
65
- }, [cards, selectedIds]);
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 selectedLayout = LAYOUT_PRESETS[2];
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 [pseudoFullscreen, setPseudoFullscreen] = (0, import_react.useState)(false);
169
+ const shellRef = (0, import_react.useRef)(null);
170
+ (0, import_react.useEffect)(() => {
171
+ const cls = "pisell-resource-wall-fixed-viewport";
172
+ if (typeof document === "undefined") return;
173
+ if (pseudoFullscreen) {
174
+ document.body.classList.add(cls);
175
+ } else {
176
+ document.body.classList.remove(cls);
177
+ }
178
+ return () => {
179
+ document.body.classList.remove(cls);
180
+ };
181
+ }, [pseudoFullscreen]);
182
+ const layoutPersisted = onResourceWallLayoutChange != null;
183
+ const [internalLayout, setInternalLayout] = (0, import_react.useState)(() => ({
184
+ ...import_types.DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST
185
+ }));
186
+ const layoutState = layoutPersisted ? {
187
+ ...import_types.DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST,
188
+ ...resourceWallLayoutProp ?? {}
189
+ } : internalLayout;
190
+ const setLayoutState = (0, import_react.useCallback)(
191
+ (patch) => {
192
+ if (layoutPersisted) {
193
+ onResourceWallLayoutChange({
194
+ ...import_types.DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST,
195
+ ...resourceWallLayoutProp ?? {},
196
+ ...patch
197
+ });
198
+ } else {
199
+ setInternalLayout((prev) => ({
200
+ ...import_types.DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST,
201
+ ...prev,
202
+ ...patch
203
+ }));
204
+ }
205
+ },
206
+ [layoutPersisted, resourceWallLayoutProp, onResourceWallLayoutChange]
207
+ );
208
+ const {
209
+ layoutKey,
210
+ customCols,
211
+ customRows,
212
+ pageDurationSec,
213
+ boardingSoonBeforeMin,
214
+ heroMaxWidthRatio
215
+ } = layoutState;
216
+ const localeKey = (0, import_locale.getCurrentLocale)();
217
+ const layoutPresetsWithI18n = (0, import_react.useMemo)(
218
+ () => LAYOUT_PRESETS.map((p) => ({
219
+ ...p,
220
+ label: p.key === "custom" ? (0, import_locales.getText)("pisell-resource-wall-layout-custom") : p.label
221
+ })),
222
+ [localeKey]
223
+ );
224
+ const modeSlot = appearanceTheme[appearanceMode] ?? {};
225
+ const occupiedCardColor = modeSlot.occupiedCardColor != null && modeSlot.occupiedCardColor !== "" ? modeSlot.occupiedCardColor : DEFAULT_OCCUPIED;
226
+ const availableCardColor = modeSlot.availableCardColor != null && modeSlot.availableCardColor !== "" ? modeSlot.availableCardColor : DEFAULT_AVAILABLE;
227
+ const modeToneOverrides = modeSlot.statusToneOverrides;
228
+ const hasModeToneOverrides = modeToneOverrides != null && Object.keys(modeToneOverrides).length > 0;
229
+ const statusToneOverrides = hasModeToneOverrides ? modeToneOverrides : statusToneOverridesProp !== void 0 ? statusToneOverridesProp : localToneOverrides;
230
+ const selectedLayout = (0, import_react.useMemo)(() => {
231
+ if (layoutKey === "custom") {
232
+ return {
233
+ key: "custom",
234
+ label: (0, import_locales.getText)("pisell-resource-wall-layout-custom"),
235
+ cols: Math.max(1, Math.min(6, customCols)),
236
+ rows: Math.max(1, Math.min(6, customRows))
237
+ };
238
+ }
239
+ return layoutPresetsWithI18n.find((p) => p.key === layoutKey) ?? layoutPresetsWithI18n[2];
240
+ }, [layoutKey, customCols, customRows, layoutPresetsWithI18n]);
241
+ const pageCapacity = selectedLayout.cols * selectedLayout.rows;
242
+ const pagedGroups = (0, import_react.useMemo)(() => {
243
+ const chunks = [];
244
+ for (let i = 0; i < visibleCards.length; i += pageCapacity) {
245
+ chunks.push(visibleCards.slice(i, i + pageCapacity));
246
+ }
247
+ return chunks;
248
+ }, [visibleCards, pageCapacity]);
249
+ const totalPages = Math.max(1, pagedGroups.length);
250
+ const renderCards = pagedGroups[currentPage] ?? visibleCards.slice(0, pageCapacity);
251
+ const controlCarouselPager = (0, import_react.useMemo)(
252
+ () => ({ currentPage, totalPages }),
253
+ [currentPage, totalPages]
254
+ );
255
+ (0, import_react.useEffect)(() => {
256
+ setCurrentPage(
257
+ (p) => totalPages > 0 ? Math.min(p, totalPages - 1) : 0
258
+ );
259
+ }, [totalPages]);
260
+ (0, import_react.useEffect)(() => {
261
+ if (totalPages <= 1) {
262
+ setCurrentPage(0);
263
+ return;
264
+ }
265
+ const ms = Math.max(3, pageDurationSec) * 1e3;
266
+ const timer = window.setInterval(() => {
267
+ setCurrentPage((p) => (p + 1) % totalPages);
268
+ }, ms);
269
+ return () => window.clearInterval(timer);
270
+ }, [totalPages, pageDurationSec]);
271
+ (0, import_react.useEffect)(() => {
272
+ setCurrentPage(0);
273
+ }, [pageCapacity, visibleCards.length]);
274
+ const mergeFilterResourceIds = (0, import_react.useCallback)(
275
+ (ids) => {
276
+ var _a;
277
+ const sp = ctx.searchParams ?? {};
278
+ const filterValue = sp[FILTER_PARAMS_FIELD];
279
+ const currentValues = (filterValue == null ? void 0 : filterValue.values) ?? {};
280
+ const nextFilter = {
281
+ ...filterValue,
282
+ values: {
283
+ ...currentValues,
284
+ [filterKey]: ids
285
+ }
286
+ };
287
+ (_a = ctx.onSearch) == null ? void 0 : _a.call(ctx, { ...sp, [FILTER_PARAMS_FIELD]: nextFilter });
288
+ },
289
+ [ctx, filterKey]
290
+ );
291
+ const handleControlApply = (0, import_react.useCallback)(
292
+ (payload) => {
293
+ mergeFilterResourceIds(payload.resourceIds);
294
+ setLayoutState({
295
+ layoutKey: payload.layoutKey,
296
+ customCols: payload.customCols,
297
+ customRows: payload.customRows,
298
+ pageDurationSec: payload.pageDurationSec,
299
+ boardingSoonBeforeMin: payload.boardingSoonBeforeMin,
300
+ heroMaxWidthRatio: payload.heroMaxWidthRatio
301
+ });
302
+ const nextSlot = {
303
+ ...appearanceTheme[appearanceMode],
304
+ occupiedCardColor: payload.occupiedCardColor,
305
+ availableCardColor: payload.availableCardColor,
306
+ statusToneOverrides: payload.statusToneOverrides
307
+ };
308
+ persistAppearanceTheme({
309
+ ...appearanceTheme,
310
+ [appearanceMode]: nextSlot
311
+ });
312
+ emitToneOverrides(payload.statusToneOverrides);
313
+ },
314
+ [
315
+ mergeFilterResourceIds,
316
+ emitToneOverrides,
317
+ appearanceTheme,
318
+ appearanceMode,
319
+ persistAppearanceTheme,
320
+ setLayoutState
321
+ ]
322
+ );
323
+ const statusToneMap = (0, import_react.useMemo)(
324
+ () => (0, import_venueWallUtils.getVenueWallStatusToneMap)(statusToneOverrides),
325
+ [statusToneOverrides]
326
+ );
327
+ const isDark = appearanceMode === "dark";
328
+ const pageBg = isDark ? "#0f172a" : "#f5f7fb";
329
+ const headerBg = isDark ? "#1e293b" : "#ffffff";
330
+ const headerBorder = isDark ? "1px solid #334155" : "1px solid #e2e8f0";
331
+ const clockColor = isDark ? "#f1f5f9" : "#0f172a";
332
+ const mutedText = isDark ? "#94a3b8" : "#64748b";
333
+ const toolbarBtnBorder = isDark ? "1px solid #475569" : "1px solid #e2e8f0";
334
+ const toolbarBtnBg = isDark ? "#334155" : "#ffffff";
335
+ const toolbarBtnBgActive = isDark ? "#475569" : "#f1f5f9";
336
+ const countdownSec = Math.max(3, pageDurationSec);
72
337
  const shell = /* @__PURE__ */ import_react.default.createElement(
73
338
  "div",
74
339
  {
340
+ ref: shellRef,
75
341
  className,
76
342
  style: {
77
343
  flex: 1,
@@ -79,8 +345,8 @@ var PisellRecordBoardResourceWallView = (props) => {
79
345
  display: "flex",
80
346
  flexDirection: "column",
81
347
  overflow: "hidden",
82
- background: "#f5f7fb",
83
- color: "#0f172a",
348
+ background: pageBg,
349
+ color: clockColor,
84
350
  ...style
85
351
  }
86
352
  },
@@ -89,13 +355,13 @@ var PisellRecordBoardResourceWallView = (props) => {
89
355
  {
90
356
  style: {
91
357
  flexShrink: 0,
92
- borderBottom: "1px solid #e2e8f0",
358
+ borderBottom: headerBorder,
93
359
  padding: "16px 24px",
94
360
  display: "flex",
95
361
  alignItems: "center",
96
362
  justifyContent: "space-between",
97
363
  gap: 16,
98
- background: "#fff"
364
+ background: headerBg
99
365
  }
100
366
  },
101
367
  /* @__PURE__ */ import_react.default.createElement(
@@ -104,7 +370,8 @@ var PisellRecordBoardResourceWallView = (props) => {
104
370
  style: {
105
371
  fontSize: 22,
106
372
  fontWeight: 600,
107
- letterSpacing: "-0.02em"
373
+ letterSpacing: "-0.02em",
374
+ color: clockColor
108
375
  }
109
376
  },
110
377
  now.toLocaleTimeString([], {
@@ -120,12 +387,143 @@ var PisellRecordBoardResourceWallView = (props) => {
120
387
  month: "short",
121
388
  year: "numeric"
122
389
  })
123
- )
390
+ ),
391
+ /* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", alignItems: "center", gap: 8 } }, /* @__PURE__ */ import_react.default.createElement(
392
+ "div",
393
+ {
394
+ style: {
395
+ display: "inline-flex",
396
+ alignItems: "center",
397
+ borderRadius: 6,
398
+ border: toolbarBtnBorder,
399
+ overflow: "hidden",
400
+ background: toolbarBtnBg
401
+ }
402
+ },
403
+ /* @__PURE__ */ import_react.default.createElement(
404
+ "button",
405
+ {
406
+ type: "button",
407
+ onClick: () => setAppearanceMode("light"),
408
+ style: {
409
+ border: "none",
410
+ padding: "6px 12px",
411
+ fontSize: 13,
412
+ fontWeight: 500,
413
+ cursor: "pointer",
414
+ background: appearanceMode === "light" ? toolbarBtnBgActive : "transparent",
415
+ color: appearanceMode === "light" ? clockColor : mutedText
416
+ }
417
+ },
418
+ (0, import_locales.getText)("pisell-resource-wall-appearance-light")
419
+ ),
420
+ /* @__PURE__ */ import_react.default.createElement(
421
+ "button",
422
+ {
423
+ type: "button",
424
+ onClick: () => setAppearanceMode("dark"),
425
+ style: {
426
+ border: "none",
427
+ borderLeft: toolbarBtnBorder,
428
+ padding: "6px 12px",
429
+ fontSize: 13,
430
+ fontWeight: 500,
431
+ cursor: "pointer",
432
+ background: appearanceMode === "dark" ? toolbarBtnBgActive : "transparent",
433
+ color: appearanceMode === "dark" ? clockColor : mutedText
434
+ }
435
+ },
436
+ (0, import_locales.getText)("pisell-resource-wall-appearance-dark")
437
+ )
438
+ ), /* @__PURE__ */ import_react.default.createElement(
439
+ "button",
440
+ {
441
+ type: "button",
442
+ onClick: () => setPseudoFullscreen((v) => !v),
443
+ style: {
444
+ borderRadius: 6,
445
+ padding: "6px 14px",
446
+ fontSize: 13,
447
+ fontWeight: 500,
448
+ cursor: "pointer",
449
+ border: toolbarBtnBorder,
450
+ background: pseudoFullscreen ? toolbarBtnBgActive : toolbarBtnBg,
451
+ color: clockColor
452
+ }
453
+ },
454
+ pseudoFullscreen ? (0, import_locales.getText)("pisell-resource-wall-fullscreen-exit") : (0, import_locales.getText)("pisell-resource-wall-fullscreen-enter")
455
+ ), /* @__PURE__ */ import_react.default.createElement(
456
+ "button",
457
+ {
458
+ type: "button",
459
+ onClick: () => setShowControlPanel(true),
460
+ style: {
461
+ borderRadius: 6,
462
+ padding: "6px 14px",
463
+ fontSize: 13,
464
+ fontWeight: 500,
465
+ cursor: "pointer",
466
+ border: toolbarBtnBorder,
467
+ background: toolbarBtnBg,
468
+ color: clockColor
469
+ }
470
+ },
471
+ (0, import_locales.getText)("pisell-resource-wall-control-open")
472
+ ))
124
473
  ),
125
- /* @__PURE__ */ import_react.default.createElement("div", { style: { flex: 1, minHeight: 0, padding: 12 } }, /* @__PURE__ */ import_react.default.createElement(
474
+ /* @__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(
126
475
  "div",
127
476
  {
128
477
  style: {
478
+ flexShrink: 0,
479
+ display: "flex",
480
+ alignItems: "center",
481
+ gap: 12
482
+ }
483
+ },
484
+ /* @__PURE__ */ import_react.default.createElement(
485
+ "div",
486
+ {
487
+ style: {
488
+ fontSize: 13,
489
+ fontWeight: 600,
490
+ color: mutedText,
491
+ whiteSpace: "nowrap"
492
+ }
493
+ },
494
+ (0, import_locales.getText)("pisell-resource-wall-page-indicator").replace("{cur}", String(currentPage + 1)).replace("{total}", String(totalPages))
495
+ ),
496
+ /* @__PURE__ */ import_react.default.createElement(
497
+ "div",
498
+ {
499
+ style: {
500
+ flex: 1,
501
+ height: 4,
502
+ borderRadius: 2,
503
+ overflow: "hidden",
504
+ background: isDark ? "rgba(255,255,255,0.1)" : "rgba(15,23,42,0.08)"
505
+ }
506
+ },
507
+ /* @__PURE__ */ import_react.default.createElement(
508
+ "div",
509
+ {
510
+ key: `${currentPage}-${countdownSec}`,
511
+ className: "pisell-resource-wall-page-countdown-bar",
512
+ style: {
513
+ height: "100%",
514
+ width: "100%",
515
+ background: occupiedCardColor,
516
+ animationDuration: `${countdownSec}s`
517
+ }
518
+ }
519
+ )
520
+ )
521
+ ) : null, /* @__PURE__ */ import_react.default.createElement(
522
+ "div",
523
+ {
524
+ style: {
525
+ flex: 1,
526
+ minHeight: 0,
129
527
  height: "100%",
130
528
  display: "grid",
131
529
  gap: 16,
@@ -133,10 +531,44 @@ var PisellRecordBoardResourceWallView = (props) => {
133
531
  gridTemplateRows: `repeat(${selectedLayout.rows}, minmax(0, 1fr))`
134
532
  }
135
533
  },
136
- visibleCards.slice(0, selectedLayout.cols * selectedLayout.rows).map((card, index) => /* @__PURE__ */ import_react.default.createElement(import_VenueWallCard.VenueWallCard, { key: `${card.resourceId}-${index}`, card }))
137
- ))
534
+ renderCards.map((card, index) => /* @__PURE__ */ import_react.default.createElement(
535
+ import_VenueWallCard.VenueWallCard,
536
+ {
537
+ key: `${card.resourceId}-${index}`,
538
+ card,
539
+ boardingSoonBeforeMin,
540
+ occupiedCardColor,
541
+ availableCardColor,
542
+ heroMaxWidthRatio,
543
+ statusToneMap,
544
+ appearance: appearanceMode
545
+ }
546
+ ))
547
+ )),
548
+ /* @__PURE__ */ import_react.default.createElement(
549
+ import_ResourceWallControlPanel.ResourceWallControlPanel,
550
+ {
551
+ open: showControlPanel,
552
+ onClose: closeControlPanel,
553
+ isDark,
554
+ cards,
555
+ layoutPresets: layoutPresetsWithI18n,
556
+ layoutKey,
557
+ customCols,
558
+ customRows,
559
+ pageDurationSec,
560
+ occupiedCardColor,
561
+ availableCardColor,
562
+ boardingSoonBeforeMin,
563
+ statusToneOverrides,
564
+ selectedResourceIds: wallSelectedIds,
565
+ carouselPager: controlCarouselPager,
566
+ heroMaxWidthRatio,
567
+ onApply: handleControlApply
568
+ }
569
+ )
138
570
  );
139
- if (loading) {
571
+ if (loading && !showControlPanel) {
140
572
  return /* @__PURE__ */ import_react.default.createElement(
141
573
  "div",
142
574
  {
@@ -147,7 +579,7 @@ var PisellRecordBoardResourceWallView = (props) => {
147
579
  display: "flex",
148
580
  alignItems: "center",
149
581
  justifyContent: "center",
150
- background: "#f5f7fb",
582
+ background: pageBg,
151
583
  ...style
152
584
  }
153
585
  },
@@ -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>;