@pisell/materials 6.1.1 → 6.2.25

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 (340) 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 +7 -7
  6. package/build/lowcode/preview.js +146 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +36 -27
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +41 -32
  11. package/es/components/DragSortList/index.js +6 -6
  12. package/es/components/TimeResourceSelector/index.d.ts +21 -0
  13. package/es/components/appVersionControl/index.d.ts +4 -0
  14. package/es/components/badge/index.d.ts +7 -0
  15. package/es/components/buttonGroupEdit/index.d.ts +8 -0
  16. package/es/components/buttonGroupPreview/index.d.ts +19 -0
  17. package/es/components/cardPro/index.d.ts +3 -0
  18. package/es/components/classicLayout/index.js +4 -5
  19. package/es/components/collapse/index.d.ts +15 -0
  20. package/es/components/cropPhoto/index.d.ts +3 -0
  21. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  22. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
  23. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  24. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +32 -0
  25. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +78 -0
  26. package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
  27. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  28. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
  29. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  30. package/es/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
  31. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  32. package/es/components/dataSourceComponents/fields/index.d.ts +4 -4
  33. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  34. package/es/components/drag-sort-tree/TreeItem/index.js +2 -1
  35. package/es/components/drag-sort-tree/index.d.ts +4 -0
  36. package/es/components/icon/index.js +5 -5
  37. package/es/components/iconfont/index.js +1 -1
  38. package/es/components/list/index.js +6 -6
  39. package/es/components/login-and-register/index.d.ts +82 -0
  40. package/es/components/login-and-register/index.js +22 -18
  41. package/es/components/page/index.d.ts +5 -0
  42. package/es/components/pisell-config-provider/index.d.ts +12 -0
  43. package/es/components/pisellAdjustPrice/index.d.ts +1 -6
  44. package/es/components/pisellAdjustPrice/index.js +64 -8
  45. package/es/components/pisellAdjustPrice/index.less +35 -6
  46. package/es/components/pisellAdjustPrice/status.js +32 -0
  47. package/es/components/pisellAdjustPrice/type.js +1 -0
  48. package/es/components/pisellAnchor/index.d.ts +23 -0
  49. package/es/components/pisellAvatar/index.d.ts +19 -0
  50. package/es/components/pisellCard/index.d.ts +19 -0
  51. package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  52. package/es/components/pisellDropdown/index.d.ts +20 -0
  53. package/es/components/pisellEmpty/index.d.ts +19 -0
  54. package/es/components/pisellHeaderProgressBar/index.d.ts +29 -0
  55. package/es/components/pisellImageCarousels/index.d.ts +18 -0
  56. package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  57. package/es/components/pisellInformationEntry/index.d.ts +33 -0
  58. package/es/components/pisellList01/index.d.ts +17 -0
  59. package/es/components/pisellQrcode/index.d.ts +10 -0
  60. package/es/components/pisellSectionHeaders/index.d.ts +21 -0
  61. package/es/components/pisellStatisticList/index.d.ts +21 -0
  62. package/es/components/pisellToast/index.js +3 -0
  63. package/es/components/pisellWalletPassCard/index.d.ts +0 -1
  64. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
  65. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +61 -0
  66. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +98 -0
  67. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  68. package/es/components/productCard/cartSkuCard/components/discountReason/index.js +51 -0
  69. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  70. package/es/components/productCard/cartSkuCard/components/holders/index.js +32 -0
  71. package/es/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  72. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  73. package/es/components/productCard/cartSkuCard/components/packages/index.js +52 -0
  74. package/es/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  75. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  76. package/es/components/productCard/cartSkuCard/components/packages/utils.js +40 -0
  77. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  78. package/es/components/productCard/cartSkuCard/components/resources/index.js +44 -0
  79. package/es/components/productCard/cartSkuCard/components/resources/index.less +20 -0
  80. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +11 -0
  81. package/es/components/productCard/cartSkuCard/components/sales/index.js +55 -0
  82. package/es/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  83. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  84. package/es/components/productCard/cartSkuCard/components/specs/index.js +43 -0
  85. package/es/components/productCard/cartSkuCard/components/specs/index.less +28 -0
  86. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  87. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +53 -0
  88. package/es/components/productCard/cartSkuCard/components/timeRange/index.less +37 -0
  89. package/es/components/productCard/cartSkuCard/index.d.ts +8 -0
  90. package/es/components/productCard/cartSkuCard/index.js +195 -0
  91. package/es/components/productCard/cartSkuCard/index.less +69 -0
  92. package/es/components/productCard/cartSkuCard/locales.js +30 -0
  93. package/es/components/productCard/components/Action/index.d.ts +3 -0
  94. package/es/components/productCard/components/AmountFooter/index.js +22 -6
  95. package/es/components/productCard/components/AmountFooter/index.less +28 -1
  96. package/es/components/productCard/components/Divider/index.d.ts +3 -0
  97. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  98. package/es/components/productCard/components/Header/index.js +4 -3
  99. package/es/components/productCard/components/MultiDay/index.d.ts +3 -0
  100. package/es/components/productCard/components/MultiDay/utils.d.ts +14 -0
  101. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  102. package/es/components/productCard/components/Packages/components/collapsibleList/utils.js +2 -1
  103. package/es/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  104. package/es/components/productCard/components/Packages/components/options/index.less +3 -2
  105. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  106. package/es/components/productCard/components/Sales/index.js +2 -2
  107. package/es/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  108. package/es/components/productCard/components/Time/index.d.ts +3 -0
  109. package/es/components/productCard/components/Warning/index.d.ts +7 -0
  110. package/es/components/productCard/components/Warning/index.js +48 -0
  111. package/es/components/productCard/index.d.ts +3 -1
  112. package/es/components/productCard/index.js +10 -8
  113. package/es/components/productCard/locales.js +6 -3
  114. package/es/components/productCard/status.js +3 -1
  115. package/es/components/productCard/utils.js +8 -6
  116. package/es/components/qrcode/index.js +1 -1
  117. package/es/components/section-footers/index.d.ts +9 -0
  118. package/es/components/sort/components/InlineMenu/index.js +1 -1
  119. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  120. package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  121. package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  122. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  123. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
  124. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  125. package/es/components/table/Header/Buttons/index.js +5 -5
  126. package/es/components/table/Table/AddFieldModal/index.js +6 -6
  127. package/es/components/table/Table/SelectField/index.js +4 -4
  128. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  129. package/es/components/table/Table/fields/index.d.ts +2 -2
  130. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  131. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  132. package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
  133. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  134. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  135. package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
  136. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  137. package/es/components/table/Table/index.d.ts +4 -0
  138. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  139. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  140. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  141. package/es/components/table/Table/utils.d.ts +1 -1
  142. package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
  143. package/es/components/table/hooks/useTableSetting.d.ts +22 -0
  144. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  145. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  146. package/es/components/table/types.d.ts +251 -0
  147. package/es/components/tabs/index.d.ts +16 -0
  148. package/es/components/translation/index.d.ts +4 -3
  149. package/es/components/translation/index.js +34 -32
  150. package/es/components/translation/utils.js +5 -5
  151. package/es/components/versionModal/index.d.ts +23 -0
  152. package/es/components/virtual-keyboard/Amount/index.d.ts +3 -20
  153. package/es/components/virtual-keyboard/Amount/index.js +79 -7
  154. package/es/components/virtual-keyboard/Amount/index.less +39 -0
  155. package/es/components/virtual-keyboard/Amount/themeConfig.js +32 -0
  156. package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
  157. package/es/components/virtual-keyboard/Amount/types.js +1 -0
  158. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  159. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +38 -10
  160. package/es/components/virtual-keyboard/Keyboard/index.js +2 -2
  161. package/es/components/virtual-keyboard/Number/index.d.ts +3 -11
  162. package/es/components/virtual-keyboard/Number/index.js +77 -7
  163. package/es/components/virtual-keyboard/Number/index.less +39 -0
  164. package/es/components/virtual-keyboard/Number/themeConfig.js +32 -0
  165. package/es/components/virtual-keyboard/Number/types.js +1 -0
  166. package/es/components/virtual-keyboard/VirtualKeyInput/index.js +10 -3
  167. package/es/components/virtual-keyboard/index.d.ts +11 -0
  168. package/es/components/virtual-keyboard/index.js +88 -3
  169. package/es/components/virtual-keyboard/index.less +33 -1
  170. package/es/components/walletCard/Guest/index.d.ts +3 -0
  171. package/es/components/walletCard/Guide/index.d.ts +3 -0
  172. package/es/components/walletCard/index.d.ts +67 -0
  173. package/es/hooks/useResponsive.js +2 -2
  174. package/es/utils/hoc.js +1 -1
  175. package/es/utils/index.d.ts +1 -1
  176. package/es/utils/miniRedux.js +8 -9
  177. package/es/utils/platform.d.ts +1 -1
  178. package/lib/components/TimeResourceSelector/index.d.ts +21 -0
  179. package/lib/components/appVersionControl/index.d.ts +4 -0
  180. package/lib/components/badge/index.d.ts +7 -0
  181. package/lib/components/buttonGroupEdit/index.d.ts +8 -0
  182. package/lib/components/buttonGroupPreview/index.d.ts +19 -0
  183. package/lib/components/cardPro/index.d.ts +3 -0
  184. package/lib/components/collapse/index.d.ts +15 -0
  185. package/lib/components/cropPhoto/index.d.ts +3 -0
  186. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  187. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
  188. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  189. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +32 -0
  190. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +78 -0
  191. package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
  192. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  193. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
  194. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  195. package/lib/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
  196. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  197. package/lib/components/dataSourceComponents/fields/index.d.ts +4 -4
  198. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  199. package/lib/components/drag-sort-tree/TreeItem/index.js +2 -1
  200. package/lib/components/drag-sort-tree/index.d.ts +4 -0
  201. package/lib/components/iconfont/index.js +1 -1
  202. package/lib/components/login-and-register/index.d.ts +82 -0
  203. package/lib/components/login-and-register/index.js +2 -2
  204. package/lib/components/lowCodePage/index.js +1 -2
  205. package/lib/components/page/index.d.ts +5 -0
  206. package/lib/components/pisell-config-provider/index.d.ts +12 -0
  207. package/lib/components/pisellAdjustPrice/index.d.ts +1 -6
  208. package/lib/components/pisellAdjustPrice/index.js +119 -57
  209. package/lib/components/pisellAdjustPrice/index.less +35 -6
  210. package/lib/components/pisellAdjustPrice/status.js +60 -0
  211. package/lib/components/pisellAdjustPrice/type.js +17 -0
  212. package/lib/components/pisellAnchor/index.d.ts +23 -0
  213. package/lib/components/pisellAvatar/index.d.ts +19 -0
  214. package/lib/components/pisellCard/index.d.ts +19 -0
  215. package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  216. package/lib/components/pisellDropdown/index.d.ts +20 -0
  217. package/lib/components/pisellEmpty/index.d.ts +19 -0
  218. package/lib/components/pisellHeaderProgressBar/index.d.ts +29 -0
  219. package/lib/components/pisellImageCarousels/index.d.ts +18 -0
  220. package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  221. package/lib/components/pisellInformationEntry/index.d.ts +33 -0
  222. package/lib/components/pisellList01/index.d.ts +17 -0
  223. package/lib/components/pisellQrcode/index.d.ts +10 -0
  224. package/lib/components/pisellSectionHeaders/index.d.ts +21 -0
  225. package/lib/components/pisellStatisticList/index.d.ts +21 -0
  226. package/lib/components/pisellToast/index.js +3 -0
  227. package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
  228. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
  229. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +71 -0
  230. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +98 -0
  231. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  232. package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +70 -0
  233. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  234. package/lib/components/productCard/cartSkuCard/components/holders/index.js +52 -0
  235. package/lib/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  236. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  237. package/lib/components/productCard/cartSkuCard/components/packages/index.js +73 -0
  238. package/lib/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  239. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  240. package/lib/components/productCard/cartSkuCard/components/packages/utils.js +44 -0
  241. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  242. package/lib/components/productCard/cartSkuCard/components/resources/index.js +73 -0
  243. package/lib/components/productCard/cartSkuCard/components/resources/index.less +20 -0
  244. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +11 -0
  245. package/lib/components/productCard/cartSkuCard/components/sales/index.js +76 -0
  246. package/lib/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  247. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  248. package/lib/components/productCard/cartSkuCard/components/specs/index.js +65 -0
  249. package/lib/components/productCard/cartSkuCard/components/specs/index.less +28 -0
  250. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  251. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +67 -0
  252. package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +37 -0
  253. package/lib/components/productCard/cartSkuCard/index.d.ts +8 -0
  254. package/lib/components/productCard/cartSkuCard/index.js +216 -0
  255. package/lib/components/productCard/cartSkuCard/index.less +69 -0
  256. package/lib/components/productCard/cartSkuCard/locales.js +61 -0
  257. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  258. package/lib/components/productCard/components/AmountFooter/index.js +16 -6
  259. package/lib/components/productCard/components/AmountFooter/index.less +28 -1
  260. package/lib/components/productCard/components/Divider/index.d.ts +3 -0
  261. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  262. package/lib/components/productCard/components/Header/index.js +4 -3
  263. package/lib/components/productCard/components/MultiDay/index.d.ts +3 -0
  264. package/lib/components/productCard/components/MultiDay/utils.d.ts +14 -0
  265. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  266. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.js +2 -2
  267. package/lib/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  268. package/lib/components/productCard/components/Packages/components/options/index.less +3 -2
  269. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  270. package/lib/components/productCard/components/Sales/index.js +2 -2
  271. package/lib/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  272. package/lib/components/productCard/components/Time/index.d.ts +3 -0
  273. package/lib/components/productCard/components/Warning/index.d.ts +7 -0
  274. package/lib/components/productCard/components/Warning/index.js +68 -0
  275. package/lib/components/productCard/index.d.ts +3 -1
  276. package/lib/components/productCard/index.js +6 -11
  277. package/lib/components/productCard/locales.js +6 -3
  278. package/lib/components/productCard/status.js +3 -1
  279. package/lib/components/productCard/utils.js +7 -6
  280. package/lib/components/section-footers/index.d.ts +9 -0
  281. package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  282. package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  283. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  284. package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
  285. package/lib/components/table/Table/fields/index.d.ts +2 -2
  286. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
  287. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  288. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  289. package/lib/components/table/Table/fields/utils/index.js +1 -2
  290. package/lib/components/table/Table/index.d.ts +4 -0
  291. package/lib/components/table/Table/utils.d.ts +1 -1
  292. package/lib/components/table/hooks/useTableSetting.d.ts +22 -0
  293. package/lib/components/table/types.d.ts +251 -0
  294. package/lib/components/tabs/index.d.ts +16 -0
  295. package/lib/components/translation/index.d.ts +4 -3
  296. package/lib/components/translation/index.js +1 -0
  297. package/lib/components/versionModal/index.d.ts +23 -0
  298. package/lib/components/virtual-keyboard/Amount/index.d.ts +3 -20
  299. package/lib/components/virtual-keyboard/Amount/index.js +72 -16
  300. package/lib/components/virtual-keyboard/Amount/index.less +39 -0
  301. package/lib/components/virtual-keyboard/Amount/themeConfig.js +60 -0
  302. package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
  303. package/lib/components/virtual-keyboard/Amount/types.js +17 -0
  304. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  305. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +31 -8
  306. package/lib/components/virtual-keyboard/Keyboard/index.js +2 -1
  307. package/lib/components/virtual-keyboard/Number/index.d.ts +3 -11
  308. package/lib/components/virtual-keyboard/Number/index.js +65 -11
  309. package/lib/components/virtual-keyboard/Number/index.less +39 -0
  310. package/lib/components/virtual-keyboard/Number/themeConfig.js +60 -0
  311. package/lib/components/virtual-keyboard/Number/types.js +17 -0
  312. package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +34 -20
  313. package/lib/components/virtual-keyboard/index.d.ts +11 -0
  314. package/lib/components/virtual-keyboard/index.js +60 -2
  315. package/lib/components/virtual-keyboard/index.less +33 -1
  316. package/lib/components/walletCard/Guest/index.d.ts +3 -0
  317. package/lib/components/walletCard/Guide/index.d.ts +3 -0
  318. package/lib/components/walletCard/index.d.ts +67 -0
  319. package/lib/hooks/useResponsive.js +3 -6
  320. package/lib/utils/index.d.ts +1 -1
  321. package/lib/utils/platform.d.ts +1 -1
  322. package/lowcode/_setters/antd-icon-setter/index.tsx +3 -2
  323. package/lowcode/pisell-adjust-price/meta.ts +168 -0
  324. package/lowcode/pisell-adjust-price/snippets.ts +1 -0
  325. package/lowcode/pisell-number-keyboard/meta.ts +167 -0
  326. package/lowcode/pisell-price-keyboard/meta.ts +167 -0
  327. package/lowcode/virtual-keyboard/meta.ts +131 -0
  328. package/package.json +2 -2
  329. package/dist/umd/materials.min.css +0 -1
  330. package/dist/umd/materials.min.js +0 -1
  331. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  332. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  333. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  334. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  335. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  336. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
  337. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  338. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -11
  339. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  340. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -11
@@ -47,6 +47,19 @@ var Footer = ({ item, hideDivider, type, isOnlyTotal }) => {
47
47
  if (!origin_total) return false;
48
48
  return Number(total) != Number(origin_total);
49
49
  }, [total, origin_total]);
50
+ const renderDiscountReason = () => {
51
+ if (isDiscount && discount_reason && type === "total") {
52
+ if (Array.isArray(discount_reason)) {
53
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-item-discount-reason` }, discount_reason.map((reason, index) => {
54
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Tag, { key: index, color: "red" }, reason);
55
+ }));
56
+ }
57
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_Divider.default, null), /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-item-discount-reason` }, /* @__PURE__ */ import_react.default.createElement("span", null, `${import_utils2.locales.getText(
58
+ "pisell2.product.card.discount.reason"
59
+ )}: ${discount_reason}`)));
60
+ }
61
+ return null;
62
+ };
50
63
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, !hideDivider ? /* @__PURE__ */ import_react.default.createElement(import_Divider.default, { type: type !== "total" ? "inside" : "" }) : null, /* @__PURE__ */ import_react.default.createElement(
51
64
  "div",
52
65
  {
@@ -74,11 +87,8 @@ var Footer = ({ item, hideDivider, type, isOnlyTotal }) => {
74
87
  }
75
88
  )) : null
76
89
  ), /* @__PURE__ */ import_react.default.createElement("span", null, `×${num}`)) : null,
77
- /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefix}packages-product-footer-total` }, (0, import_utils._formatAmount)(total * num, symbol))
78
- ),
79
- isDiscount ? /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}packages-product-footer-discount` }, !isOnlyTotal ? /* @__PURE__ */ import_react.default.createElement("span", null, (0, import_utils._formatAmount)(origin_total, symbol)) : null, /* @__PURE__ */ import_react.default.createElement("span", null, (0, import_utils._formatAmount)(origin_total * num, symbol, 2))) : null
80
- ), isDiscount && discount_reason && type === "total" ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_Divider.default, null), /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-item-discount-reason` }, /* @__PURE__ */ import_react.default.createElement("span", null, `${import_utils2.locales.getText(
81
- "pisell2.product.card.discount.reason"
82
- )}: ${discount_reason}`))) : null);
90
+ /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefix}packages-product-footer-total` }, isDiscount ? /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefix}packages-product-footer-origin-total` }, (0, import_utils._formatAmount)(origin_total * num, symbol, 2)) : null, /* @__PURE__ */ import_react.default.createElement("span", null, (0, import_utils._formatAmount)(total * num, symbol)))
91
+ )
92
+ ), renderDiscountReason());
83
93
  };
84
94
  var AmountFooter_default = Footer;
@@ -35,6 +35,19 @@
35
35
  color: var(--Gray-900, #101828);
36
36
  }
37
37
 
38
+ &-packages-product-footer-origin-total {
39
+ color: var(--Gray-500, #667085);
40
+ text-align: center;
41
+ font-size: 12px;
42
+ font-style: normal;
43
+ font-weight: 400;
44
+ line-height: 18px; /* 150% */
45
+ text-decoration-line: line-through;
46
+ margin-right: 8px;
47
+ display: inline-block;
48
+ transform: translateY(-1px);
49
+ }
50
+
38
51
  &-packages-product-hide-divider-footer {
39
52
  margin-top: 8px;
40
53
  }
@@ -45,6 +58,20 @@
45
58
  font-style: normal;
46
59
  font-weight: 400;
47
60
  line-height: 20px;
48
- white-space: break-spaces;
61
+ margin-top: 4px;
62
+ display: flex;
63
+ flex-wrap: wrap;
64
+ gap: 4px;
65
+ overflow: hidden;
66
+
67
+ >span {
68
+ display: inline-block;
69
+ max-width: 100%;
70
+ text-overflow: ellipsis;
71
+ white-space: nowrap;
72
+ overflow: hidden;
73
+ border-radius: 4px;
74
+ margin: 0;
75
+ }
49
76
  }
50
77
  }
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Divider: ({ type }: any) => JSX.Element;
3
+ export default Divider;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const DeleteButton: ({ onDelete }: any) => JSX.Element;
3
+ export default DeleteButton;
@@ -59,11 +59,12 @@ var Header = (props) => {
59
59
  name,
60
60
  price,
61
61
  symbol,
62
- disabled
62
+ disabled,
63
+ relation_products
63
64
  } = item;
64
65
  const showPrice = (0, import_react.useMemo)(() => {
65
- return (bundle == null ? void 0 : bundle.length) > 0 || (options == null ? void 0 : options.length) > 0;
66
- }, [bundle, options]);
66
+ return (bundle == null ? void 0 : bundle.length) > 0 || (options == null ? void 0 : options.length) > 0 || ((relation_products == null ? void 0 : relation_products.length) || 0) > 0;
67
+ }, [bundle, options, relation_products]);
67
68
  const headerCenterStyle = (0, import_react.useMemo)(() => {
68
69
  return (options == null ? void 0 : options.length) > 0 || product_option_string;
69
70
  }, [options, product_option_string]);
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
+ export default MultiDay;
@@ -0,0 +1,14 @@
1
+ interface InputItem {
2
+ start_date: string;
3
+ end_date: string;
4
+ total: number;
5
+ num: number;
6
+ }
7
+ interface OutputItem {
8
+ start_date: string;
9
+ end_date: string;
10
+ total: number;
11
+ num: number;
12
+ }
13
+ export declare function formatDateRanges(list: InputItem[]): OutputItem[];
14
+ export {};
@@ -0,0 +1 @@
1
+ export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -45,8 +45,8 @@ var renderBundles = (item, hidePrice, isShowPackageNote) => {
45
45
  const context = (0, import_useEngineContext.default)();
46
46
  const utils = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils;
47
47
  translation = (utils == null ? void 0 : utils.translationOriginal) || (utils == null ? void 0 : utils.translation);
48
- const { title, name, id, price, symbol, option } = item;
49
- return /* @__PURE__ */ import_react.default.createElement("div", { key: id, className: `${prefix}packages-product-bundle-item` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}packages-product-bundle-info` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}packages-product-bundle-info-title` }, translation(title || name)), !hidePrice ? /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}packages-product-bundle-info-num` }, (0, import_utils._formatAmount)(price, symbol)) : null), /* @__PURE__ */ import_react.default.createElement(import_options.default, { options: option, amountSymbol: symbol }), /* @__PURE__ */ import_react.default.createElement(import_AmountFooter.default, { item }), isShowPackageNote ? /* @__PURE__ */ import_react.default.createElement(import_Note.default, { item, type: "inside" }) : null);
48
+ const { title, name, id, price, symbol, options, option } = item;
49
+ return /* @__PURE__ */ import_react.default.createElement("div", { key: id, className: `${prefix}packages-product-bundle-item` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}packages-product-bundle-info` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}packages-product-bundle-info-title` }, translation(title || name)), !hidePrice ? /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}packages-product-bundle-info-num` }, (0, import_utils._formatAmount)(price, symbol)) : null), /* @__PURE__ */ import_react.default.createElement(import_options.default, { options: options || option, amountSymbol: symbol }), /* @__PURE__ */ import_react.default.createElement(import_AmountFooter.default, { item }), isShowPackageNote ? /* @__PURE__ */ import_react.default.createElement(import_Note.default, { item, type: "inside" }) : null);
50
50
  };
51
51
  // Annotate the CommonJS export names for ESM import in node:
52
52
  0 && (module.exports = {
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
3
+ export default Options;
@@ -14,15 +14,16 @@
14
14
  &-packages-product-bundle-option-item {
15
15
  display: flex;
16
16
  justify-content: space-between;
17
+ gap: 8px;
17
18
  }
18
19
 
19
20
  &-packages-product-bundle-option-item-left {
20
21
  display: flex;
21
- gap: 4px;
22
+ gap: 8px;
22
23
  }
23
24
 
24
25
  &-packages-product-bundle-option-item-left-amount {
25
- margin-left: 8px;
26
+ margin-left: 0;
26
27
  display: flex;
27
28
  gap: 4px;
28
29
  }
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -44,10 +44,10 @@ var Sales = ({ item, isShowNote }) => {
44
44
  return {
45
45
  ...p,
46
46
  title: p == null ? void 0 : p.product_title,
47
- price: p == null ? void 0 : p.payment_price,
47
+ price: p == null ? void 0 : p.selling_price,
48
48
  symbol: item.symbol,
49
49
  num: p == null ? void 0 : p.product_quantity,
50
- total: p == null ? void 0 : p.payment_price
50
+ total: p == null ? void 0 : p.selling_price
51
51
  };
52
52
  });
53
53
  return (other_products == null ? void 0 : other_products.length) > 0 ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-sales-wrap` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-sales-title` }, import_utils2.locales.getText("pisell2.product.card.sales")), /* @__PURE__ */ import_react.default.createElement(
@@ -0,0 +1,9 @@
1
+ import './index.less';
2
+ declare const Like: ({ status, onLike, className, style, isShowChangeResource, }: {
3
+ style?: any;
4
+ status: string;
5
+ onLike?: any;
6
+ className?: string | undefined;
7
+ isShowChangeResource?: boolean | undefined;
8
+ }) => JSX.Element;
9
+ export default Like;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Time: ({ item, isShowHolder, onLike, isShowChangeResource, changeResource, changeHolder, isShowChangeHolder, holderMode, onAddHolder, isShowAddHolderButton, onClearHolder, onClearResource, }: any) => JSX.Element | null;
3
+ export default Time;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import '../../index.less';
3
+ declare const Warning: React.FC<{
4
+ errorMessage: string | Array<string>;
5
+ osWarnTips: Array<string>;
6
+ }>;
7
+ export default Warning;
@@ -0,0 +1,68 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/productCard/components/Warning/index.tsx
30
+ var Warning_exports = {};
31
+ __export(Warning_exports, {
32
+ default: () => Warning_default
33
+ });
34
+ module.exports = __toCommonJS(Warning_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_utils = require("@pisell/utils");
37
+ var import_antd = require("antd");
38
+ var import__ = require("../../index.less");
39
+ var Warning = ({ errorMessage, osWarnTips }) => {
40
+ const errorLists = (0, import_react.useMemo)(() => {
41
+ if (errorMessage) {
42
+ if (Array.isArray(errorMessage)) {
43
+ return errorMessage;
44
+ }
45
+ if (typeof errorMessage === "string") {
46
+ return [errorMessage];
47
+ }
48
+ }
49
+ if ((osWarnTips == null ? void 0 : osWarnTips.length) > 0) {
50
+ return osWarnTips.map((item) => import_utils.locales.getText(item));
51
+ }
52
+ return [];
53
+ }, [errorMessage, osWarnTips]);
54
+ if ((errorLists == null ? void 0 : errorLists.length) === 0) {
55
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null);
56
+ }
57
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, errorLists.map((item, index) => /* @__PURE__ */ import_react.default.createElement(
58
+ import_antd.Alert,
59
+ {
60
+ key: index,
61
+ message: item,
62
+ type: "warning",
63
+ showIcon: true,
64
+ className: "pisell-lowcode-product-card-error"
65
+ }
66
+ )));
67
+ };
68
+ var Warning_default = Warning;
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ProductCardTypes } from './types';
3
3
  import './index.less';
4
- declare const ProductCard: React.FC<ProductCardTypes>;
4
+ declare const ProductCard: React.FC<ProductCardTypes> & {
5
+ V2: any;
6
+ };
5
7
  export default ProductCard;
@@ -34,7 +34,6 @@ __export(productCard_exports, {
34
34
  module.exports = __toCommonJS(productCard_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_classnames = __toESM(require("classnames"));
37
- var import_antd = require("antd");
38
37
  var import_utils = require("@pisell/utils");
39
38
  var import_cardPro = __toESM(require("../cardPro"));
40
39
  var import_Header = __toESM(require("./components/Header"));
@@ -50,7 +49,9 @@ var import_useOpenNote = __toESM(require("./hooks/useOpenNote"));
50
49
  var import_locales = __toESM(require("./locales"));
51
50
  var import_status = require("./status");
52
51
  var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
52
+ var import_Warning = __toESM(require("./components/Warning"));
53
53
  var import_index = require("./index.less");
54
+ var import_cartSkuCard = __toESM(require("./cartSkuCard"));
54
55
  var ProductCard = (props) => {
55
56
  var _a, _b;
56
57
  const context = (0, import_useEngineContext.default)();
@@ -84,7 +85,8 @@ var ProductCard = (props) => {
84
85
  isShowAction,
85
86
  actionText,
86
87
  errorMessage,
87
- isNormalProduct
88
+ isNormalProduct,
89
+ osWarnTips = []
88
90
  } = dataSource;
89
91
  const showImage = (0, import_react.useMemo)(() => {
90
92
  return isShowImage && image;
@@ -180,15 +182,7 @@ var ProductCard = (props) => {
180
182
  onAction: () => onAction == null ? void 0 : onAction(dataSource)
181
183
  }
182
184
  ) : null,
183
- errorMessage ? /* @__PURE__ */ import_react.default.createElement(
184
- import_antd.Alert,
185
- {
186
- message: errorMessage,
187
- type: "warning",
188
- showIcon: true,
189
- className: "pisell-lowcode-product-card-error"
190
- }
191
- ) : null
185
+ /* @__PURE__ */ import_react.default.createElement(import_Warning.default, { errorMessage, osWarnTips })
192
186
  ), /* @__PURE__ */ import_react.default.createElement(
193
187
  import_useOpenNote.default,
194
188
  {
@@ -204,4 +198,5 @@ var ProductCard = (props) => {
204
198
  )
205
199
  );
206
200
  };
201
+ ProductCard.V2 = import_cartSkuCard.default;
207
202
  var productCard_default = ProductCard;
@@ -47,7 +47,8 @@ var locales_default = {
47
47
  "pisell2.product.card.add.holder.modal.cancel": "Cancel",
48
48
  "pisell2.product.card.add.holder.modal.clear": "Clear",
49
49
  "pisell2.product.card.add.holder.modal.apply": "Apply",
50
- "pisell2.product.card.add.holder.modal.add": "Add New"
50
+ "pisell2.product.card.add.holder.modal.add": "Add New",
51
+ "pisell2.product.card.closing-soon.warning": "The venue will close soon. Please make sure you have enough time for your visit."
51
52
  },
52
53
  "zh-CN": {
53
54
  "pisell2.product.card.edit": "编辑",
@@ -73,7 +74,8 @@ var locales_default = {
73
74
  "pisell2.product.card.add.holder.modal.cancel": "取消",
74
75
  "pisell2.product.card.add.holder.modal.clear": "清除",
75
76
  "pisell2.product.card.add.holder.modal.apply": "应用",
76
- "pisell2.product.card.add.holder.modal.add": "添加"
77
+ "pisell2.product.card.add.holder.modal.add": "添加",
78
+ "pisell2.product.card.closing-soon.warning": "当前入场时间临近营业结束,请确认是否仍要购买。"
77
79
  },
78
80
  "zh-HK": {
79
81
  "pisell2.product.card.edit": "編輯",
@@ -99,6 +101,7 @@ var locales_default = {
99
101
  "pisell2.product.card.add.holder.modal.cancel": "取消",
100
102
  "pisell2.product.card.add.holder.modal.clear": "清除",
101
103
  "pisell2.product.card.add.holder.modal.apply": "應用",
102
- "pisell2.product.card.add.holder.modal.add": "添加"
104
+ "pisell2.product.card.add.holder.modal.add": "添加",
105
+ "pisell2.product.card.closing-soon.warning": "當前入場時間臨近營業結束,請確認是否仍要購買。"
103
106
  }
104
107
  };
@@ -61,7 +61,9 @@ var defaultValue = {
61
61
  isShowPackageNote: true,
62
62
  isShowEditProduct: false,
63
63
  locale: "en-US",
64
- symbol: "$"
64
+ symbol: "$",
65
+ // os层自定义错误提示
66
+ osWarnTips: []
65
67
  };
66
68
  // Annotate the CommonJS export names for ESM import in node:
67
69
  0 && (module.exports = {
@@ -66,6 +66,7 @@ var getServiceTime = (item, currentDate) => {
66
66
  const utils = context.appHelper.utils || {};
67
67
  const locale = (item == null ? void 0 : item.locale) || ((_a = utils == null ? void 0 : utils.storage) == null ? void 0 : _a.get("umi_locale")) || "en-US";
68
68
  const isEn2 = locale === "en-US" || locale === "en";
69
+ const durationType = (item == null ? void 0 : item.duration_type) === "flexible" ? "minutes" : item == null ? void 0 : item.duration_type;
69
70
  const localeTypes = {
70
71
  "en-US": "en",
71
72
  "zh-CN": "zh-cn",
@@ -75,7 +76,7 @@ var getServiceTime = (item, currentDate) => {
75
76
  let startDate = (0, import_dayjs.default)(item == null ? void 0 : item.start_date);
76
77
  let endDate = (0, import_dayjs.default)(item == null ? void 0 : item.end_date);
77
78
  let diffInDays = (item == null ? void 0 : item.custom_day_count) || endDate.diff(startDate, "day");
78
- if (item == null ? void 0 : item.duration_type) {
79
+ if (durationType) {
79
80
  const sameDay = startDate.isSame(endDate, "day");
80
81
  const dateFormat = isEn2 ? "DD/MM/YYYY" : "YYYY-MM-DD";
81
82
  const timeFormat = "HH:mm";
@@ -97,13 +98,13 @@ var getServiceTime = (item, currentDate) => {
97
98
  }
98
99
  const startDateTime = `${startDate.format("YYYY-MM-DD")} ${startTime}`;
99
100
  const endDateTime = `${endDate.format("YYYY-MM-DD")} ${endTime}`;
100
- let _duration = (0, import_dayjs.default)(endDateTime).diff((0, import_dayjs.default)(startDateTime), item == null ? void 0 : item.duration_type);
101
+ let _duration = (0, import_dayjs.default)(endDateTime).diff((0, import_dayjs.default)(startDateTime), durationType);
101
102
  let durationText = "";
102
- if ((item == null ? void 0 : item.duration_type) === "minutes") {
103
+ if (durationType === "minutes") {
103
104
  const hours = Math.floor(_duration / 60);
104
105
  const minutes = _duration % 60;
105
106
  durationText = import_utils.locales.getText("pisell2.product.card.hour.minute")(hours, minutes);
106
- } else if ((item == null ? void 0 : item.duration_type) === "days") {
107
+ } else if (durationType === "days") {
107
108
  durationText = import_utils.locales.getText("pisell2.product.card.day")(_duration);
108
109
  } else {
109
110
  durationText = `${_duration}`;
@@ -118,7 +119,7 @@ var getServiceTime = (item, currentDate) => {
118
119
  startDate = (0, import_dayjs.default)((item == null ? void 0 : item.start_time) ? `${item == null ? void 0 : item.start_date} ${item == null ? void 0 : item.start_time}` : startDate.format("YYYY-MM-DD HH:mm"));
119
120
  endDate = (0, import_dayjs.default)((item == null ? void 0 : item.end_time) ? `${item == null ? void 0 : item.end_date} ${item == null ? void 0 : item.end_time}` : endDate.format("YYYY-MM-DD HH:mm"));
120
121
  }
121
- if ((item == null ? void 0 : item.duration_type) === "minutes") {
122
+ if (durationType === "minutes") {
122
123
  diffInDays = endDate.diff(startDate, "minute");
123
124
  }
124
125
  const date = `${startDate.format(_format)} ~ ${endDate.format(_format)}`;
@@ -130,7 +131,7 @@ var getServiceTime = (item, currentDate) => {
130
131
  "minutes": import_utils.locales.getText("pisell2.product.card.minute")(diffInDays),
131
132
  "event": import_utils.locales.getText("pisell2.product.card.day.event")(diffInDays)
132
133
  };
133
- text = (textTypes == null ? void 0 : textTypes[item == null ? void 0 : item.duration_type]) || text;
134
+ text = (textTypes == null ? void 0 : textTypes[durationType]) || text;
134
135
  let duration = `${diffInDays}${text}`;
135
136
  return `${date} (${duration})`;
136
137
  };
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ interface SectionFooterProps {
3
+ left?: React.ReactNode;
4
+ middle?: React.ReactNode;
5
+ right?: React.ReactNode;
6
+ className?: string;
7
+ }
8
+ declare const SectionFooters: (props: SectionFooterProps) => JSX.Element;
9
+ export default SectionFooters;
@@ -0,0 +1,7 @@
1
+ import { ExportImportType } from '../../../types';
2
+ import './index.less';
3
+ declare type ExportImportProps = {
4
+ exportImport: ExportImportType;
5
+ };
6
+ declare const ExportImport: ({ exportImport }: ExportImportProps) => JSX.Element;
7
+ export default ExportImport;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @title: 格式化导出导入接口地址
3
+ * @description:
4
+ * @param {string} url
5
+ * @return {*}
6
+ * @Author: WangHan
7
+ * @Date: 2024-09-05 11:39
8
+ */
9
+ export declare const formatApiUrl: (url: string) => string;
@@ -1,5 +1,5 @@
1
1
  declare const useGapSize: (gap: number | number[]) => {
2
- horizontal: number;
3
- vertical: number;
2
+ horizontal: any;
3
+ vertical: any;
4
4
  };
5
5
  export default useGapSize;
@@ -40,17 +40,14 @@ function filterUtil_default({
40
40
  key,
41
41
  item
42
42
  }) {
43
- if (!value)
44
- return true;
43
+ if (!value) return true;
45
44
  const valueDayjsObj = (0, import_dayjs.default)(value);
46
45
  if (!valueDayjsObj.isValid()) {
47
46
  return true;
48
47
  }
49
48
  const dataValue = (0, import_utils2.getValueByKeys)(item, key);
50
- if ((0, import_utils.isUndefined)(dataValue))
51
- return false;
49
+ if ((0, import_utils.isUndefined)(dataValue)) return false;
52
50
  const dataDayjsObj = (0, import_dayjs.default)(dataValue);
53
- if (!dataDayjsObj.isValid())
54
- return false;
51
+ if (!dataDayjsObj.isValid()) return false;
55
52
  return dataDayjsObj.isSame(valueDayjsObj, "day");
56
53
  }
@@ -197,12 +197,12 @@ export declare const fieldList: ({
197
197
  field_icon: string;
198
198
  field_name: string;
199
199
  field_type: string;
200
- default_value: boolean;
200
+ default_value: string;
201
201
  } | {
202
202
  field_icon: string;
203
203
  field_name: string;
204
204
  field_type: string;
205
- default_value: string;
205
+ default_value: boolean;
206
206
  } | {
207
207
  field_icon: string;
208
208
  field_name: string;
@@ -43,19 +43,15 @@ function filterUtil_default({
43
43
  key,
44
44
  item
45
45
  }) {
46
- if (!value)
47
- return true;
48
- if ((value == null ? void 0 : value.length) !== 2)
49
- return true;
46
+ if (!value) return true;
47
+ if ((value == null ? void 0 : value.length) !== 2) return true;
50
48
  const valueDayjsObj = value.map((item2) => (0, import_dayjs.default)(item2 || ""));
51
49
  if (valueDayjsObj.some((item2) => !item2.isValid())) {
52
50
  return true;
53
51
  }
54
52
  const dataValue = (0, import_utils2.getValueByKeys)(item, key);
55
- if ((0, import_utils.isUndefined)(dataValue))
56
- return false;
53
+ if ((0, import_utils.isUndefined)(dataValue)) return false;
57
54
  const dataDayjsObj = (0, import_dayjs.default)(dataValue);
58
- if (!dataDayjsObj.isValid())
59
- return false;
55
+ if (!dataDayjsObj.isValid()) return false;
60
56
  return isDateInRange(dataDayjsObj, valueDayjsObj);
61
57
  }
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): boolean;
5
+ }): any;
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[] | Record<string, any>[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): boolean;
5
+ }): any;
@@ -25,8 +25,7 @@ module.exports = __toCommonJS(utils_exports);
25
25
  var import_utils = require("@pisell/utils");
26
26
  var getValueByKeys = (obj, keys) => {
27
27
  var _a;
28
- if (!keys)
29
- return keys;
28
+ if (!keys) return keys;
30
29
  if ((0, import_utils.isString)(keys)) {
31
30
  keys = [keys];
32
31
  }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const _default: React.NamedExoticComponent<any>;
4
+ export default _default;
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
155
155
  sort?: SortType | undefined;
156
156
  mode: "" | "localStorage" | "remote";
157
157
  currentViewMode: ModeType;
158
- }) => ("column_setting" | "gallery_setting" | "order_by" | "group_by" | "view_mode" | "filter_setting")[];
158
+ }) => ("view_mode" | "filter_setting" | "group_by" | "order_by" | "column_setting" | "gallery_setting")[];
159
159
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
160
160
  export declare const stringify: (obj: Record<string, any>) => string;
161
161
  export {};
@@ -0,0 +1,22 @@
1
+ import { FilterType } from "../../filter/types";
2
+ import { ColumnSettingType, DataSourceGroupType, GallerySettingType, GridViewType, ModeType, SortType, ExportImportModeType } from "../types";
3
+ declare type UseTableSettingProps = {
4
+ tableId?: string;
5
+ filter: FilterType;
6
+ columns: Record<string, any>[];
7
+ columnSetting?: ColumnSettingType;
8
+ dataSourceGroup?: DataSourceGroupType;
9
+ sort?: SortType;
10
+ view: GridViewType;
11
+ currentViewMode: ModeType;
12
+ gallery?: GallerySettingType;
13
+ currentSettingHash: string;
14
+ exportImport?: ExportImportModeType;
15
+ };
16
+ declare const useTableSetting: (params: UseTableSettingProps) => {
17
+ setTableSetting: (values: Record<string, any>) => void;
18
+ tableSetting: {
19
+ [x: string]: any;
20
+ };
21
+ };
22
+ export default useTableSetting;