@pisell/materials 6.6.1 → 6.7.1

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 (357) 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 +3 -3
  6. package/build/lowcode/preview.js +145 -145
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +18 -18
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +24 -24
  11. package/es/components/appVersionControl/index.d.ts +4 -0
  12. package/es/components/batch-editor/index.d.ts +1 -0
  13. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +3 -0
  14. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +15 -0
  15. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
  16. package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +149 -0
  17. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +39 -0
  18. package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +31 -0
  19. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  20. package/es/components/dataSourceComponents/dataSourceForm/utils.js +3 -1
  21. package/es/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +8 -0
  22. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  23. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
  24. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +100 -0
  25. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
  26. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
  27. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
  28. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
  29. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
  30. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
  31. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +17 -0
  32. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.js +2 -0
  33. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +16 -0
  34. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
  35. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
  36. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
  37. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  38. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
  39. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
  40. package/es/components/dataSourceComponents/fields/Upload/index.d.ts +3 -0
  41. package/es/components/dataSourceComponents/fields/Upload/index.js +4 -3
  42. package/es/components/dataSourceComponents/fields/index.d.ts +8 -7
  43. package/es/components/dataSourceComponents/hooks/useActions.d.ts +18 -0
  44. package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +119 -0
  45. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
  46. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.js +18 -5
  47. package/es/components/date-picker/index.d.ts +1 -0
  48. package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  49. package/es/components/drag-sort-tree/index.d.ts +4 -0
  50. package/es/components/filter/index.d.ts +1 -0
  51. package/es/components/filter/types.d.ts +46 -0
  52. package/es/components/iconfont/index.d.ts +8 -0
  53. package/es/components/iconfont/index.js +1 -1
  54. package/es/components/login-and-register/index.d.ts +82 -0
  55. package/es/components/page/index.d.ts +9 -0
  56. package/es/components/page/index.js +5 -6
  57. package/es/components/pisell-config-provider/index.d.ts +13 -0
  58. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  59. package/es/components/pisellAdjustPrice/index.d.ts +4 -0
  60. package/es/components/pisellCardList/index.d.ts +103 -0
  61. package/es/components/pisellCheckboxGroup/index.d.ts +40 -0
  62. package/es/components/pisellEmpty/index.d.ts +19 -0
  63. package/es/components/pisellGoodPassCard/index.d.ts +50 -0
  64. package/es/components/pisellInput/index.d.ts +1 -0
  65. package/es/components/pisellLoading/index.d.ts +1 -0
  66. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  67. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  68. package/es/components/pisellModal/components/index.d.ts +1 -0
  69. package/es/components/pisellQrcode/index.d.ts +10 -0
  70. package/es/components/pisellText/components/Amount/index.d.ts +20 -0
  71. package/es/components/pisellText/components/Editable/index.d.ts +29 -0
  72. package/es/components/pisellText/components/Editable/index.js +130 -0
  73. package/es/components/pisellText/components/Editable/index.less +40 -0
  74. package/es/components/pisellText/index.d.ts +9 -0
  75. package/es/components/pisellText/index.js +2 -0
  76. package/es/components/pisellToast/index.d.ts +17 -0
  77. package/es/components/pisellWalletPassCard/index.d.ts +136 -0
  78. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  79. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +4 -0
  80. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  81. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +27 -0
  82. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +2 -3
  83. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  84. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  85. package/es/components/productCard/cartSkuCard/components/holders/index.js +2 -19
  86. package/es/components/productCard/cartSkuCard/components/holders/index.less +0 -15
  87. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  88. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  89. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
  90. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  91. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  92. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +7 -0
  93. package/es/components/productCard/cartSkuCard/index.d.ts +10 -0
  94. package/es/components/productCard/cartSkuCard/index.js +3 -5
  95. package/es/components/productCard/cartSkuCard/locales.d.ts +96 -0
  96. package/es/components/productCard/cartSkuCard/locales.js +3 -6
  97. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  98. package/es/components/productCard/components/Header/index.d.ts +3 -0
  99. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  100. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  101. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  102. package/es/components/productCard/components/Sales/index.d.ts +3 -0
  103. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  104. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  105. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  106. package/es/components/productCard/components/Time/index.d.ts +3 -0
  107. package/es/components/productCard/index.d.ts +7 -0
  108. package/es/components/productCard/index.js +1 -3
  109. package/es/components/productCard/status.d.ts +32 -0
  110. package/es/components/productCard/status.js +0 -1
  111. package/es/components/productCard/types.d.ts +84 -0
  112. package/es/components/productCard/utils.d.ts +31 -0
  113. package/es/components/productCard/utils.js +1 -8
  114. package/es/components/select/index.js +4 -2
  115. package/es/components/sortableList/index.d.ts +11 -0
  116. package/es/components/sortableList/index.js +2 -1
  117. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  118. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.js +9 -1
  119. package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  120. package/es/components/table/Actions/component/ExportImport/index.js +55 -27
  121. package/es/components/table/Actions/index.d.ts +17 -0
  122. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  123. package/es/components/table/Gallery/index.d.ts +5 -0
  124. package/es/components/table/Table/AddFieldModal/index.d.ts +4 -0
  125. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  126. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  127. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  128. package/es/components/table/Table/fields/index.d.ts +1 -0
  129. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  130. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  131. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  132. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  133. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  134. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  135. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  136. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  137. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  138. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  139. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  140. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  141. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  142. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  143. package/es/components/table/Table/index.d.ts +4 -0
  144. package/es/components/table/Table/index.js +7 -3
  145. package/es/components/table/Table/utils.d.ts +161 -0
  146. package/es/components/table/hooks/useTableSetting.d.ts +21 -0
  147. package/es/components/table/hooks/useTransColumns.d.ts +14 -0
  148. package/es/components/table/hooks/useTransColumns.js +1 -1
  149. package/es/components/table/hooks/useTransDataSource.d.ts +11 -0
  150. package/es/components/table/index.d.ts +4 -0
  151. package/es/components/table/index.js +4 -2
  152. package/es/components/table/serve.js +8 -0
  153. package/es/components/table/types.d.ts +268 -0
  154. package/es/components/tabs/index.js +9 -0
  155. package/es/components/translation/index.d.ts +14 -0
  156. package/es/components/versionModal/index.d.ts +23 -0
  157. package/es/components/versionSelect/index.d.ts +1 -0
  158. package/es/components/virtual-keyboard/Amount/index.d.ts +5 -0
  159. package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
  160. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +25 -0
  161. package/es/components/virtual-keyboard/Number/index.d.ts +5 -0
  162. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  163. package/es/components/virtual-keyboard/index.d.ts +25 -0
  164. package/es/components/virtualInput/index.d.ts +24 -0
  165. package/es/components/walletCard/index.d.ts +71 -0
  166. package/es/components/walletCard/index.js +51 -40
  167. package/es/index.d.ts +145 -0
  168. package/es/locales/en-US.d.ts +307 -0
  169. package/es/locales/en-US.js +2 -2
  170. package/es/locales/zh-CN.d.ts +302 -0
  171. package/es/locales/zh-CN.js +1 -1
  172. package/es/locales/zh-TW.d.ts +302 -0
  173. package/es/locales/zh-TW.js +1 -1
  174. package/es/typings.d.ts +7 -1
  175. package/es/utils/platform.d.ts +1 -1
  176. package/lib/components/appVersionControl/index.d.ts +4 -0
  177. package/lib/components/batch-editor/index.d.ts +1 -0
  178. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +3 -0
  179. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +15 -0
  180. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
  181. package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +149 -0
  182. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +39 -0
  183. package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +31 -0
  184. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  185. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
  186. package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +8 -0
  187. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  188. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
  189. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +100 -0
  190. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
  191. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
  192. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
  193. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
  194. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
  195. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
  196. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +17 -0
  197. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.js +2 -0
  198. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +16 -0
  199. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
  200. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
  201. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
  202. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  203. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
  204. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
  205. package/lib/components/dataSourceComponents/fields/Upload/index.d.ts +3 -0
  206. package/lib/components/dataSourceComponents/fields/Upload/index.js +2 -1
  207. package/lib/components/dataSourceComponents/fields/index.d.ts +8 -7
  208. package/lib/components/dataSourceComponents/hooks/useActions.d.ts +18 -0
  209. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +119 -0
  210. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
  211. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.js +20 -10
  212. package/lib/components/date-picker/index.d.ts +1 -0
  213. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  214. package/lib/components/drag-sort-tree/index.d.ts +4 -0
  215. package/lib/components/filter/index.d.ts +1 -0
  216. package/lib/components/filter/types.d.ts +46 -0
  217. package/lib/components/iconfont/index.d.ts +8 -0
  218. package/lib/components/iconfont/index.js +1 -1
  219. package/lib/components/login-and-register/index.d.ts +82 -0
  220. package/lib/components/page/index.d.ts +9 -0
  221. package/lib/components/page/index.js +4 -4
  222. package/lib/components/pisell-config-provider/index.d.ts +13 -0
  223. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  224. package/lib/components/pisellAdjustPrice/index.d.ts +4 -0
  225. package/lib/components/pisellCardList/index.d.ts +103 -0
  226. package/lib/components/pisellCheckboxGroup/index.d.ts +40 -0
  227. package/lib/components/pisellEmpty/index.d.ts +19 -0
  228. package/lib/components/pisellGoodPassCard/index.d.ts +50 -0
  229. package/lib/components/pisellInput/index.d.ts +1 -0
  230. package/lib/components/pisellLoading/index.d.ts +1 -0
  231. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  232. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  233. package/lib/components/pisellModal/components/index.d.ts +1 -0
  234. package/lib/components/pisellQrcode/index.d.ts +10 -0
  235. package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
  236. package/lib/components/pisellText/components/Editable/index.d.ts +29 -0
  237. package/lib/components/pisellText/components/Editable/index.js +139 -0
  238. package/lib/components/pisellText/components/Editable/index.less +40 -0
  239. package/lib/components/pisellText/index.d.ts +9 -0
  240. package/lib/components/pisellText/index.js +2 -0
  241. package/lib/components/pisellToast/index.d.ts +17 -0
  242. package/lib/components/pisellWalletPassCard/index.d.ts +136 -0
  243. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  244. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +4 -0
  245. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  246. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +27 -0
  247. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +2 -3
  248. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  249. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  250. package/lib/components/productCard/cartSkuCard/components/holders/index.js +2 -14
  251. package/lib/components/productCard/cartSkuCard/components/holders/index.less +0 -15
  252. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  253. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  254. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
  255. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  256. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  257. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +7 -0
  258. package/lib/components/productCard/cartSkuCard/index.d.ts +10 -0
  259. package/lib/components/productCard/cartSkuCard/index.js +2 -3
  260. package/lib/components/productCard/cartSkuCard/locales.d.ts +96 -0
  261. package/lib/components/productCard/cartSkuCard/locales.js +3 -6
  262. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  263. package/lib/components/productCard/components/Header/index.d.ts +3 -0
  264. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  265. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  266. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  267. package/lib/components/productCard/components/Sales/index.d.ts +3 -0
  268. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  269. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  270. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  271. package/lib/components/productCard/components/Time/index.d.ts +3 -0
  272. package/lib/components/productCard/index.d.ts +7 -0
  273. package/lib/components/productCard/index.js +0 -1
  274. package/lib/components/productCard/status.d.ts +32 -0
  275. package/lib/components/productCard/status.js +0 -1
  276. package/lib/components/productCard/types.d.ts +84 -0
  277. package/lib/components/productCard/utils.d.ts +31 -0
  278. package/lib/components/productCard/utils.js +1 -8
  279. package/lib/components/select/index.js +7 -2
  280. package/lib/components/sortableList/index.d.ts +11 -0
  281. package/lib/components/sortableList/index.js +2 -2
  282. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  283. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js +7 -1
  284. package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  285. package/lib/components/table/Actions/component/ExportImport/index.js +37 -25
  286. package/lib/components/table/Actions/index.d.ts +17 -0
  287. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  288. package/lib/components/table/Gallery/index.d.ts +5 -0
  289. package/lib/components/table/Table/AddFieldModal/index.d.ts +4 -0
  290. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  291. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  292. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  293. package/lib/components/table/Table/fields/index.d.ts +1 -0
  294. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  295. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  296. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  297. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  298. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  299. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  300. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  301. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  302. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  303. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  304. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  305. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  306. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  307. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  308. package/lib/components/table/Table/index.d.ts +4 -0
  309. package/lib/components/table/Table/index.js +8 -4
  310. package/lib/components/table/Table/utils.d.ts +161 -0
  311. package/lib/components/table/hooks/useTableSetting.d.ts +21 -0
  312. package/lib/components/table/hooks/useTransColumns.d.ts +14 -0
  313. package/lib/components/table/hooks/useTransColumns.js +1 -1
  314. package/lib/components/table/hooks/useTransDataSource.d.ts +11 -0
  315. package/lib/components/table/index.d.ts +4 -0
  316. package/lib/components/table/index.js +4 -2
  317. package/lib/components/table/serve.js +8 -0
  318. package/lib/components/table/types.d.ts +268 -0
  319. package/lib/components/tabs/index.js +5 -0
  320. package/lib/components/translation/index.d.ts +14 -0
  321. package/lib/components/versionModal/index.d.ts +23 -0
  322. package/lib/components/versionSelect/index.d.ts +1 -0
  323. package/lib/components/virtual-keyboard/Amount/index.d.ts +5 -0
  324. package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
  325. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +25 -0
  326. package/lib/components/virtual-keyboard/Number/index.d.ts +5 -0
  327. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  328. package/lib/components/virtual-keyboard/index.d.ts +25 -0
  329. package/lib/components/virtualInput/index.d.ts +24 -0
  330. package/lib/components/walletCard/index.d.ts +71 -0
  331. package/lib/components/walletCard/index.js +47 -29
  332. package/lib/index.d.ts +145 -0
  333. package/lib/locales/en-US.d.ts +307 -0
  334. package/lib/locales/en-US.js +2 -2
  335. package/lib/locales/zh-CN.d.ts +302 -0
  336. package/lib/locales/zh-CN.js +1 -1
  337. package/lib/locales/zh-TW.d.ts +302 -0
  338. package/lib/locales/zh-TW.js +1 -1
  339. package/lib/typings.d.ts +7 -1
  340. package/lib/utils/platform.d.ts +1 -1
  341. package/lowcode/pisell-text.editable/meta.ts +115 -0
  342. package/lowcode/pisell-text.editable/snippets.ts +15 -0
  343. package/lowcode/product-card/meta.ts +0 -7
  344. package/lowcode/product-card/snippets.ts +0 -1
  345. package/lowcode/sortable-list/meta.ts +1 -1
  346. package/lowcode/wallet-card/meta.ts +16 -14
  347. package/package.json +12 -12
  348. package/dist/umd/materials.min.css +0 -1
  349. package/dist/umd/materials.min.js +0 -1
  350. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  351. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  352. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  353. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  354. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  355. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
  356. package/es/components/pisellQRScanner/index.d.ts +0 -24
  357. package/lib/components/pisellQRScanner/index.d.ts +0 -24
@@ -36,26 +36,14 @@ var import_react = __toESM(require("react"));
36
36
  var import_iconfont = __toESM(require("../../../../iconfont"));
37
37
  var import__ = require("../../index");
38
38
  var import_index = require("./index.less");
39
- var import_utils = require("@pisell/utils");
40
- var holderIconMap = {
41
- "form": "pisell2-file-05",
42
- "minors": "pisell2-user-check-01",
43
- "waiver": "pisell2-file-lock-03"
44
- };
45
39
  var Holders = (props) => {
46
40
  const { dataSource = {} } = props;
47
41
  const { holders, holder_id } = dataSource;
48
- if (!holder_id || (holder_id == null ? void 0 : holder_id.length) === 0) {
49
- if (dataSource.isFormSubject) {
50
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "holder-item unassigned" }, dataSource.holderMaxCount > 1 ? /* @__PURE__ */ import_react.default.createElement("span", null, dataSource.holderMaxCount, "/", dataSource.holderMaxCount, " ") : null, /* @__PURE__ */ import_react.default.createElement("span", { className: "holder-label" }, import_utils.locales.getText("pisell2.cart.sku-card.unassigned")));
51
- }
52
- return null;
53
- }
54
- ;
42
+ if (!holder_id) return null;
55
43
  const renderHolder = (id) => {
56
44
  if (!id) return null;
57
45
  const holder = holders.find((item) => item.id === id);
58
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "holder-item", key: id }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { className: "holder-icon", type: holderIconMap[(dataSource == null ? void 0 : dataSource.holderType) || "minors"] }), /* @__PURE__ */ import_react.default.createElement("span", { className: "holder-label" }, (holder == null ? void 0 : holder.label) || id));
46
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "holder-item", key: id }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { className: "holder-icon", type: "pisell2-user-check-01" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "holder-label" }, (holder == null ? void 0 : holder.label) || id));
59
47
  };
60
48
  return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__holders` }, Array.isArray(holder_id) ? holder_id == null ? void 0 : holder_id.map((id) => {
61
49
  return renderHolder(id);
@@ -29,19 +29,4 @@
29
29
  white-space: nowrap;
30
30
  }
31
31
  }
32
- .unassigned {
33
- color: red;
34
- .holder-label {
35
- color: red;
36
- }
37
- }
38
32
  }
39
-
40
- .holder-item {
41
- &.unassigned {
42
- color: red;
43
- .holder-label {
44
- color: red;
45
- }
46
- }
47
- }
@@ -0,0 +1,10 @@
1
+ import './index.less';
2
+ interface IProps {
3
+ isShowImage?: boolean;
4
+ dataSource: {
5
+ bundle?: any[];
6
+ symbol?: string;
7
+ };
8
+ }
9
+ declare const Packages: ({ isShowImage, dataSource }: IProps) => JSX.Element | null;
10
+ export default Packages;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @title: 金额是否是负
3
+ * @description:
4
+ * @param {string} type
5
+ * @return {*}
6
+ * @Author: WangHan
7
+ * @Date: 2024-11-22 10:01
8
+ */
9
+ export declare const minusSign: (item: any, type?: string) => "" | "-";
10
+ /**
11
+ * @title: 金额格式化
12
+ * @description:
13
+ * @param {number} price
14
+ * @param {string} amountSymbol
15
+ * @param {number} digit
16
+ * @return {*}
17
+ * @Author: WangHan
18
+ * @Date: 2024-11-22 10:58
19
+ */
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Resources: (props: any) => JSX.Element | null;
4
+ export default Resources;
@@ -0,0 +1,12 @@
1
+ import './index.less';
2
+ interface IProps {
3
+ hideDivider?: boolean;
4
+ dataSource: {
5
+ symbol?: string;
6
+ relation_products?: any[];
7
+ bundle?: any[];
8
+ };
9
+ isShowImage?: boolean;
10
+ }
11
+ declare const Sales: ({ hideDivider, dataSource, isShowImage }: IProps) => JSX.Element | null;
12
+ export default Sales;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Specs: (props: any) => JSX.Element | null;
3
+ export default Specs;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import 'dayjs/locale/zh-cn';
3
+ import 'dayjs/locale/en';
4
+ import 'dayjs/locale/zh-tw';
5
+ import './index.less';
6
+ declare const TimeRange: (props: any) => JSX.Element | null;
7
+ export default TimeRange;
@@ -0,0 +1,10 @@
1
+ import './index.less';
2
+ import { ProductCardTypes } from '../types';
3
+ interface ISKUCardProps extends ProductCardTypes {
4
+ type: 'a2' | 'a5';
5
+ rightActions: any[];
6
+ escapeDom?: string;
7
+ }
8
+ export declare const PREFIX = "pisell-cart-sku-card";
9
+ declare const CartSkuCard: (props: ISKUCardProps) => JSX.Element;
10
+ export default CartSkuCard;
@@ -61,7 +61,6 @@ var CartSkuCard = (props) => {
61
61
  isShowHolder = import_status.defaultValue.isShowHolder,
62
62
  isShowNote = import_status.defaultValue.isShowNote,
63
63
  isShowDelete = import_status.defaultValue.isShowDelete,
64
- isShowAmountFooter = import_status.defaultValue.isShowAmountFooter,
65
64
  isShowPackageNote = import_status.defaultValue.isShowPackageNote,
66
65
  isShowEditProduct = import_status.defaultValue.isShowEditProduct,
67
66
  onEditProduct,
@@ -174,14 +173,14 @@ var CartSkuCard = (props) => {
174
173
  hideDivider: !!((_a2 = dataSource == null ? void 0 : dataSource.bundle) == null ? void 0 : _a2.length),
175
174
  isShowImage
176
175
  }
177
- ), ((_b2 = dataSource.items) == null ? void 0 : _b2.length) ? /* @__PURE__ */ import_react.default.createElement(import_MultiDay.default, { dataSource, hideDivider }) : isShowAmountFooter ? /* @__PURE__ */ import_react.default.createElement(
176
+ ), ((_b2 = dataSource.items) == null ? void 0 : _b2.length) ? /* @__PURE__ */ import_react.default.createElement(import_MultiDay.default, { dataSource, hideDivider }) : /* @__PURE__ */ import_react.default.createElement(
178
177
  import_AmountFooter.default,
179
178
  {
180
179
  item: dataSource,
181
180
  hideDivider,
182
181
  type: "total"
183
182
  }
184
- ) : null, isShowNote ? /* @__PURE__ */ import_react.default.createElement(
183
+ ), isShowNote ? /* @__PURE__ */ import_react.default.createElement(
185
184
  import_Note.default,
186
185
  {
187
186
  ...other,
@@ -0,0 +1,96 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.product.card.discount.reason': string;
4
+ 'pisell2.cart.sku-card.more': string;
5
+ 'pisell2.cart.sku-card.packages.title': string;
6
+ 'pisell2.cart.sku-card.sales.title': string;
7
+ 'pisell2.cart.sku-card.actions.delete': string;
8
+ 'pisell2.product.card.day': (val: number) => string;
9
+ 'pisell2.product.card.day.event': (val: number) => string;
10
+ 'pisell2.product.card.minute': (val: number) => string;
11
+ 'pisell2.product.card.discount.note': string;
12
+ 'pisell2.product.card.edit': string;
13
+ 'pisell2.product.card.discount.add.note': string;
14
+ 'pisell2.product.card.discount.edit.note': string;
15
+ 'pisell2.product.card.confirm': string;
16
+ 'pisell2.product.card.cancel': string;
17
+ 'pisell2.product.card.note.pla': string;
18
+ 'pisell2.product.card.items.package': string;
19
+ 'pisell2.product.card.view-all': string;
20
+ 'pisell2.product.card.view-less': string;
21
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
22
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
23
+ 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
24
+ 'pisell2.product.card.add.holder.modal.title.1': string;
25
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
26
+ 'pisell2.product.card.sales': string;
27
+ 'pisell2.product.card.add.holder.modal.cancel': string;
28
+ 'pisell2.product.card.add.holder.modal.clear': string;
29
+ 'pisell2.product.card.add.holder.modal.apply': string;
30
+ 'pisell2.product.card.add.holder.modal.add': string;
31
+ 'pisell2.product.card.closing-soon.warning': string;
32
+ };
33
+ 'zh-CN': {
34
+ 'pisell2.product.card.discount.reason': string;
35
+ 'pisell2.cart.sku-card.more': string;
36
+ 'pisell2.cart.sku-card.packages.title': string;
37
+ 'pisell2.cart.sku-card.sales.title': string;
38
+ 'pisell2.cart.sku-card.actions.delete': string;
39
+ 'pisell2.product.card.edit': string;
40
+ 'pisell2.product.card.day': (val: number) => string;
41
+ 'pisell2.product.card.day.event': (val: number) => string;
42
+ 'pisell2.product.card.minute': (val: number) => string;
43
+ 'pisell2.product.card.discount.note': string;
44
+ 'pisell2.product.card.discount.add.note': string;
45
+ 'pisell2.product.card.discount.edit.note': string;
46
+ 'pisell2.product.card.confirm': string;
47
+ 'pisell2.product.card.cancel': string;
48
+ 'pisell2.product.card.note.pla': string;
49
+ 'pisell2.product.card.items.package': string;
50
+ 'pisell2.product.card.view-all': string;
51
+ 'pisell2.product.card.view-less': string;
52
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
53
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
54
+ 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
55
+ 'pisell2.product.card.add.holder.modal.title.1': string;
56
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
57
+ 'pisell2.product.card.sales': string;
58
+ 'pisell2.product.card.add.holder.modal.cancel': string;
59
+ 'pisell2.product.card.add.holder.modal.clear': string;
60
+ 'pisell2.product.card.add.holder.modal.apply': string;
61
+ 'pisell2.product.card.add.holder.modal.add': string;
62
+ 'pisell2.product.card.closing-soon.warning': string;
63
+ };
64
+ 'zh-HK': {
65
+ 'pisell2.product.card.discount.reason': string;
66
+ 'pisell2.cart.sku-card.more': string;
67
+ 'pisell2.cart.sku-card.packages.title': string;
68
+ 'pisell2.cart.sku-card.sales.title': string;
69
+ 'pisell2.cart.sku-card.actions.delete': string;
70
+ 'pisell2.product.card.edit': string;
71
+ 'pisell2.product.card.day': (val: number) => string;
72
+ 'pisell2.product.card.day.event': (val: number) => string;
73
+ 'pisell2.product.card.minute': (val: number) => string;
74
+ 'pisell2.product.card.discount.note': string;
75
+ 'pisell2.product.card.discount.add.note': string;
76
+ 'pisell2.product.card.discount.edit.note': string;
77
+ 'pisell2.product.card.confirm': string;
78
+ 'pisell2.product.card.cancel': string;
79
+ 'pisell2.product.card.note.pla': string;
80
+ 'pisell2.product.card.items.package': string;
81
+ 'pisell2.product.card.view-all': string;
82
+ 'pisell2.product.card.view-less': string;
83
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
84
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
85
+ 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
86
+ 'pisell2.product.card.add.holder.modal.title.1': string;
87
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
88
+ 'pisell2.product.card.sales': string;
89
+ 'pisell2.product.card.add.holder.modal.cancel': string;
90
+ 'pisell2.product.card.add.holder.modal.clear': string;
91
+ 'pisell2.product.card.add.holder.modal.apply': string;
92
+ 'pisell2.product.card.add.holder.modal.add': string;
93
+ 'pisell2.product.card.closing-soon.warning': string;
94
+ };
95
+ };
96
+ export default _default;
@@ -40,8 +40,7 @@ var locales_default = {
40
40
  "pisell2.cart.sku-card.more": "more...",
41
41
  "pisell2.cart.sku-card.packages.title": "Items in package",
42
42
  "pisell2.cart.sku-card.sales.title": "Sales",
43
- "pisell2.cart.sku-card.actions.delete": "Delete",
44
- "pisell2.cart.sku-card.unassigned": "Unassigned"
43
+ "pisell2.cart.sku-card.actions.delete": "Delete"
45
44
  },
46
45
  "zh-CN": {
47
46
  ...import_locales.default["zh-CN"],
@@ -49,8 +48,7 @@ var locales_default = {
49
48
  "pisell2.cart.sku-card.more": "更多……",
50
49
  "pisell2.cart.sku-card.packages.title": "包含的商品",
51
50
  "pisell2.cart.sku-card.sales.title": "销售",
52
- "pisell2.cart.sku-card.actions.delete": "删除",
53
- "pisell2.cart.sku-card.unassigned": "未分配"
51
+ "pisell2.cart.sku-card.actions.delete": "删除"
54
52
  },
55
53
  "zh-HK": {
56
54
  ...import_locales.default["zh-HK"],
@@ -58,7 +56,6 @@ var locales_default = {
58
56
  "pisell2.cart.sku-card.more": "更多……",
59
57
  "pisell2.cart.sku-card.packages.title": "包含的商品",
60
58
  "pisell2.cart.sku-card.sales.title": "銷售",
61
- "pisell2.cart.sku-card.actions.delete": "刪除",
62
- "pisell2.cart.sku-card.unassigned": "未分配"
59
+ "pisell2.cart.sku-card.actions.delete": "刪除"
63
60
  }
64
61
  };
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const DeleteButton: ({ onDelete }: any) => JSX.Element;
3
+ export default DeleteButton;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Header: (props: any) => JSX.Element;
3
+ export default Header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
4
  export default MultiDay;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
3
4
  export default Options;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
3
+ export default Sales;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const SelectHolder: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => JSX.Element;
3
+ export default SelectHolder;
@@ -0,0 +1,13 @@
1
+ import './index.less';
2
+ interface SelectHolderModalProps {
3
+ visible: boolean;
4
+ onClose: () => void;
5
+ onConfirm: (value: any) => void;
6
+ lists: any[];
7
+ value: any[];
8
+ holderMaxCount: number;
9
+ addHolderButtonText: string;
10
+ onAdd: () => void;
11
+ }
12
+ declare const SelectHolderModal: (props: SelectHolderModalProps) => JSX.Element;
13
+ export default SelectHolderModal;
@@ -0,0 +1,18 @@
1
+ import './index.less';
2
+ interface ResourceItem {
3
+ id: string | number;
4
+ label: string;
5
+ isError?: boolean;
6
+ [key: string]: any;
7
+ }
8
+ interface SelectResourceProps {
9
+ lists: ResourceItem[];
10
+ value: any;
11
+ onChange: (val: any) => void;
12
+ resourceMode?: 'multiple' | 'tags' | undefined;
13
+ maxLength?: number;
14
+ isParallelResource?: boolean;
15
+ [key: string]: any;
16
+ }
17
+ declare const SelectResource: ({ lists, value, onChange, resourceMode, allowClear, onClearResource, maxLength, isErrorResource, resourceErrorText, ...props }: SelectResourceProps) => JSX.Element;
18
+ export default SelectResource;
@@ -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 { ProductCardTypes } from './types';
3
+ import './index.less';
4
+ declare const ProductCard: React.FC<ProductCardTypes> & {
5
+ V2: any;
6
+ };
7
+ export default ProductCard;
@@ -62,7 +62,6 @@ var ProductCard = (props) => {
62
62
  isShowHolder = import_status.defaultValue.isShowHolder,
63
63
  isShowNote = import_status.defaultValue.isShowNote,
64
64
  isShowDelete = import_status.defaultValue.isShowDelete,
65
- isShowAmountFooter = import_status.defaultValue.isShowAmountFooter,
66
65
  isShowPackageNote = import_status.defaultValue.isShowPackageNote,
67
66
  isShowEditProduct = import_status.defaultValue.isShowEditProduct,
68
67
  scenario,
@@ -0,0 +1,32 @@
1
+ import { ProductCardTypes, bundleType, optionType, productType } from './types';
2
+ /**
3
+ * @title: 套餐数据
4
+ * @description:
5
+ * @return {*}
6
+ * @Author: WangHan
7
+ * @Date: 2025-01-02 23:21
8
+ */
9
+ export declare const defaultBundle: bundleType;
10
+ /**
11
+ * @description: 单规格
12
+ * @return {*}
13
+ * @Author: WangHan
14
+ * @Date: 2025-01-02 23:00
15
+ */
16
+ export declare const defaultOption: optionType;
17
+ /**
18
+ * @title: 商品商品类型
19
+ * @description:
20
+ * @return {*}
21
+ * @Author: WangHan
22
+ * @Date: 2025-01-02 22:48
23
+ */
24
+ export declare const defaultProduct: productType;
25
+ /**
26
+ * @title: 默认数据
27
+ * @description:
28
+ * @return {*}
29
+ * @Author: WangHan
30
+ * @Date: 2024-12-12 16:49
31
+ */
32
+ export declare const defaultValue: ProductCardTypes;
@@ -58,7 +58,6 @@ var defaultValue = {
58
58
  isShowHolder: true,
59
59
  isShowNote: true,
60
60
  isShowDelete: true,
61
- isShowAmountFooter: true,
62
61
  isShowPackageNote: true,
63
62
  isShowEditProduct: false,
64
63
  locale: "en-US",
@@ -0,0 +1,84 @@
1
+ export declare type bundleType = {
2
+ id: number;
3
+ name: string;
4
+ num: number;
5
+ price: number;
6
+ total: number;
7
+ origin_total?: number;
8
+ price_type?: string;
9
+ options?: optionType[];
10
+ };
11
+ /**
12
+ * @description:
13
+ * @return {*}
14
+ * @Author: WangHan
15
+ * @Date: 2025-01-02 23:00
16
+ */
17
+ export declare type optionType = {
18
+ id: number;
19
+ name: string;
20
+ num: number;
21
+ price: number;
22
+ total: number;
23
+ origin_total?: number;
24
+ };
25
+ /**
26
+ * @title: 商品商品类型
27
+ * @description:
28
+ * @return {*}
29
+ * @Author: WangHan
30
+ * @Date: 2025-01-02 22:48
31
+ */
32
+ export declare type productType = {
33
+ _id: string | number;
34
+ id: number;
35
+ name: string;
36
+ price: number;
37
+ total: number;
38
+ num: number;
39
+ origin_total?: number;
40
+ image?: string;
41
+ isShowNote?: boolean;
42
+ note?: string;
43
+ like_status?: string;
44
+ bundle?: bundleType[];
45
+ options?: optionType[];
46
+ isShowAction?: boolean;
47
+ actionText?: string;
48
+ errorMessage?: string;
49
+ product_option_string?: string;
50
+ discount_reason?: string;
51
+ relation_products?: any[];
52
+ resource_id?: string | number;
53
+ relation_form_name?: string;
54
+ holder_title?: string;
55
+ start_date?: string;
56
+ end_date?: string;
57
+ is_show_duration?: boolean;
58
+ is_show_week?: boolean;
59
+ };
60
+ /**
61
+ * 排序总配置
62
+ */
63
+ export declare type ProductCardTypes = {
64
+ dataSource: productType;
65
+ isShowImage?: boolean;
66
+ isShowHolder?: boolean;
67
+ isShowNote?: boolean;
68
+ isShowPackageNote?: boolean;
69
+ isShowDelete?: boolean;
70
+ disabledEdit?: boolean;
71
+ locale?: string;
72
+ symbol?: string;
73
+ isShowChangeHolder?: boolean;
74
+ isShowChangeResource?: boolean;
75
+ isShowChangeDate?: boolean;
76
+ onAction?: (val: any) => void;
77
+ onDelete?: (val: any) => void;
78
+ onNote?: (val: any) => void;
79
+ onLike?: (val: any) => void;
80
+ onCard?: (val: any) => void;
81
+ onChangeResource?: (val: any) => void;
82
+ osWarnTips?: Array<string>;
83
+ [key: string]: any;
84
+ };
@@ -0,0 +1,31 @@
1
+ import 'dayjs/locale/zh-cn';
2
+ import 'dayjs/locale/en';
3
+ import 'dayjs/locale/zh-tw';
4
+ /**
5
+ * @title: 是否英文
6
+ * @description:
7
+ * @param {any} item
8
+ * @return {*}
9
+ * @Author: WangHan
10
+ * @Date: 2024-12-28 22:49
11
+ */
12
+ export declare const isEn: (item: any) => boolean;
13
+ /**
14
+ * @title: 跨日预约时间
15
+ * @description:
16
+ * @param {any} item
17
+ * @return {*}
18
+ * @Author: WangHan
19
+ * @Date: 2024-12-28 22:50
20
+ */
21
+ export declare const formatMultiDayDate: (item: any) => string;
22
+ /**
23
+ * @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
24
+ * @description:
25
+ * @param {any} item
26
+ * @param {any} currentDate
27
+ * @return {*}
28
+ * @Author: zhiwei.Wang
29
+ * @Date: 2024-04-26 14:04
30
+ */
31
+ export declare const getServiceTime: (item: any, currentDate: any) => string;
@@ -95,13 +95,6 @@ var getServiceTime = (item, currentDate) => {
95
95
  } else {
96
96
  dateTime = `${startDate.format(dateFormat)} ${startTime} ~ ${endDate.format(dateFormat)} ${endTime}`;
97
97
  }
98
- if (durationType === "days") {
99
- dateTime = formatMultiDayDate({
100
- start_date: startDate.format("YYYY-MM-DD"),
101
- end_date: endDate.format("YYYY-MM-DD"),
102
- locale
103
- });
104
- }
105
98
  }
106
99
  const startDateTime = `${startDate.format("YYYY-MM-DD")} ${startTime}`;
107
100
  const endDateTime = `${endDate.format("YYYY-MM-DD")} ${endTime}`;
@@ -112,7 +105,7 @@ var getServiceTime = (item, currentDate) => {
112
105
  const minutes = _duration % 60;
113
106
  durationText = import_utils.locales.getText("pisell2.product.card.hour.minute")(hours, minutes);
114
107
  } else if (durationType === "days") {
115
- durationText = `${_duration}${import_utils.locales.getText("pisell2.product.card.day")(_duration)}`;
108
+ durationText = import_utils.locales.getText("pisell2.product.card.day")(_duration);
116
109
  } else {
117
110
  durationText = `${_duration}`;
118
111
  }
@@ -51,6 +51,7 @@ var SelectBase = (0, import_react.forwardRef)((props, ref) => {
51
51
  options,
52
52
  dropdownRender: propsDropdownRender,
53
53
  showSearch,
54
+ onSearch,
54
55
  styleType,
55
56
  optionFilterProp = "value",
56
57
  popupClassName,
@@ -111,7 +112,10 @@ var SelectBase = (0, import_react.forwardRef)((props, ref) => {
111
112
  size: "middle",
112
113
  placeholder: (0, import_locales.getText)("select-dropdown-render-search"),
113
114
  value: searchValue,
114
- onChange: (e) => setSearchValue(e.target.value),
115
+ onChange: (e) => {
116
+ onSearch == null ? void 0 : onSearch(e.target.value);
117
+ setSearchValue(e.target.value);
118
+ },
115
119
  bordered: false,
116
120
  allowClear: true,
117
121
  prefix: /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { style: { color: "#98A2B3" }, type: "pisell2-search-lg" })
@@ -142,7 +146,8 @@ var SelectBase = (0, import_react.forwardRef)((props, ref) => {
142
146
  checkboxChecked,
143
147
  propsDropdownRender,
144
148
  searchValue,
145
- showSearch
149
+ showSearch,
150
+ onSearch
146
151
  ]
147
152
  );
148
153
  if (styleType === "system") {
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { Props } from "../DragSortList";
3
+ export interface SortableListProps<T> {
4
+ dataSource: Props<T>["list"];
5
+ onChange: Props<T>["onChange"];
6
+ rowKey: Props<T>["rowKey"];
7
+ renderItem?: (item: T, index: number) => React.ReactNode;
8
+ activationConstraint?: Props<T>["activationConstraint"];
9
+ }
10
+ declare const SortableList: React.FC<SortableListProps<any>>;
11
+ export default SortableList;
@@ -54,8 +54,8 @@ var SortableList = (props) => {
54
54
  activationConstraint
55
55
  },
56
56
  (params) => {
57
- const { item, props: p, attributes, listeners, style } = params;
58
- return /* @__PURE__ */ import_react.default.createElement("div", { ...p, ...attributes, ...listeners, style }, renderItem == null ? void 0 : renderItem(item));
57
+ const { item, index, props: p, attributes, listeners, style } = params;
58
+ return /* @__PURE__ */ import_react.default.createElement("div", { ...p, ...attributes, ...listeners, style }, renderItem == null ? void 0 : renderItem(item, index));
59
59
  }
60
60
  );
61
61
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type ColumnsSettingProps = {
2
3
  value?: Record<string, any>[];
3
4
  onChange?: (val: Record<string, any>[]) => void;
@@ -27,6 +27,11 @@ var import_locales = require("../../../../../../../locales/index");
27
27
  var import_serve = require("../../../../../serve");
28
28
  var import_status = require("../../../../../status");
29
29
  var import_file = require("../../utils/file");
30
+ var exportImportTypeMap = {
31
+ "current-page": "page",
32
+ "all-records": "all",
33
+ "selected-records": "select"
34
+ };
30
35
  var _batchExport = async (params) => {
31
36
  let { status } = await (0, import_serve.exportData)(params);
32
37
  if (status) {
@@ -42,7 +47,7 @@ var _batchExport = async (params) => {
42
47
  var batchExport = (exportParams, exportImport) => {
43
48
  const { selectLists, apiUrl, otherParams } = exportImport;
44
49
  let _name = (0, import_file.getFileDateName)();
45
- let params = { ...otherParams };
50
+ let params = (otherParams == null ? void 0 : otherParams.export) ? { ...otherParams == null ? void 0 : otherParams.export } : { ...otherParams };
46
51
  params.url = apiUrl == null ? void 0 : apiUrl.export;
47
52
  console.log("exportParams", exportParams);
48
53
  const type = (exportParams == null ? void 0 : exportParams.type) || import_status.defaultOptions.exportType;
@@ -74,6 +79,7 @@ var batchExport = (exportParams, exportImport) => {
74
79
  } else {
75
80
  params == null ? true : delete params.ids;
76
81
  }
82
+ params.export_select = exportImportTypeMap[type];
77
83
  return _batchExport(params);
78
84
  };
79
85
  // Annotate the CommonJS export names for ESM import in node: