@pisell/materials 6.2.36 → 6.3.2

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 (267) 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 +164 -148
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +39 -25
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +39 -25
  11. package/es/components/batch-editor/index.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  13. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  14. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +2 -2
  16. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  17. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  18. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  19. package/es/components/dataSourceComponents/fields/index.d.ts +11 -10
  20. package/es/components/date-picker/index.d.ts +1 -0
  21. package/es/components/filter/index.d.ts +1 -0
  22. package/es/components/iconfont/index.js +1 -1
  23. package/es/components/page/index.d.ts +1 -0
  24. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  25. package/es/components/pisellCardList/index.js +3 -1
  26. package/es/components/pisellCheckboxGroup/index.d.ts +1 -0
  27. package/es/components/pisellCheckboxGroup/index.js +15 -1
  28. package/es/components/pisellGoodPassCard/index.d.ts +0 -1
  29. package/es/components/pisellGoodPassCard/index.js +5 -17
  30. package/es/components/pisellInput/index.d.ts +1 -0
  31. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  32. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  33. package/es/components/pisellModal/components/index.d.ts +1 -0
  34. package/es/components/pisellToast/index.js +0 -3
  35. package/es/components/pisellWalletPassCard/index.d.ts +1 -0
  36. package/es/components/productCard/components/Action/index.js +1 -14
  37. package/es/components/productCard/components/Action/index.less +0 -3
  38. package/es/components/productCard/components/Header/index.js +8 -23
  39. package/es/components/productCard/components/Header/index.less +1 -16
  40. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  41. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  42. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  43. package/es/components/productCard/components/Sales/index.js +2 -2
  44. package/es/components/productCard/components/Time/components/SelectHolderModal/index.js +1 -3
  45. package/es/components/productCard/components/Time/components/SelectHolderModal/index.less +0 -3
  46. package/es/components/productCard/index.d.ts +1 -3
  47. package/es/components/productCard/index.js +2 -5
  48. package/es/components/productCard/index.less +0 -6
  49. package/es/components/productCard/locales.js +0 -3
  50. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  51. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  52. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  53. package/es/components/table/Actions/index.d.ts +1 -0
  54. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  55. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  56. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  57. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  58. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  59. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  60. package/es/components/table/Table/fields/index.d.ts +3 -2
  61. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  62. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  63. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  64. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  65. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  66. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  67. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  68. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  69. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  70. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  71. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  72. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  73. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  74. package/es/components/table/Table/utils.d.ts +1 -1
  75. package/es/components/table/View/index.d.ts +1 -0
  76. package/es/components/versionSelect/index.d.ts +1 -0
  77. package/es/components/virtual-keyboard/index.d.ts +0 -11
  78. package/es/components/virtual-keyboard/index.js +3 -88
  79. package/es/components/virtual-keyboard/index.less +1 -33
  80. package/es/components/walletCard/Guide/index.js +12 -1
  81. package/lib/components/batch-editor/index.d.ts +1 -0
  82. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  83. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  84. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  85. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +2 -2
  86. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  87. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  88. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  89. package/lib/components/dataSourceComponents/fields/index.d.ts +11 -10
  90. package/lib/components/date-picker/index.d.ts +1 -0
  91. package/lib/components/filter/index.d.ts +1 -0
  92. package/lib/components/iconfont/index.js +1 -1
  93. package/lib/components/page/index.d.ts +1 -0
  94. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  95. package/lib/components/pisellCardList/index.js +3 -1
  96. package/lib/components/pisellCheckboxGroup/index.d.ts +1 -0
  97. package/lib/components/pisellCheckboxGroup/index.js +16 -0
  98. package/lib/components/pisellGoodPassCard/index.d.ts +0 -1
  99. package/lib/components/pisellGoodPassCard/index.js +4 -31
  100. package/lib/components/pisellInput/index.d.ts +1 -0
  101. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  102. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  103. package/lib/components/pisellModal/components/index.d.ts +1 -0
  104. package/lib/components/pisellToast/index.js +0 -3
  105. package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
  106. package/lib/components/productCard/components/Action/index.js +0 -9
  107. package/lib/components/productCard/components/Action/index.less +0 -3
  108. package/lib/components/productCard/components/Header/index.js +11 -21
  109. package/lib/components/productCard/components/Header/index.less +1 -16
  110. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  111. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  112. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  113. package/lib/components/productCard/components/Sales/index.js +2 -2
  114. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.js +1 -1
  115. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.less +0 -3
  116. package/lib/components/productCard/index.d.ts +1 -3
  117. package/lib/components/productCard/index.js +2 -6
  118. package/lib/components/productCard/index.less +0 -6
  119. package/lib/components/productCard/locales.js +3 -12
  120. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  121. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  122. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  123. package/lib/components/table/Actions/index.d.ts +1 -0
  124. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  125. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  126. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  127. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  128. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  129. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  130. package/lib/components/table/Table/fields/index.d.ts +3 -2
  131. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  132. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  133. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  134. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  135. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  136. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  137. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  138. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  139. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  140. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  141. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  142. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  143. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  144. package/lib/components/table/Table/utils.d.ts +1 -1
  145. package/lib/components/table/View/index.d.ts +1 -0
  146. package/lib/components/versionSelect/index.d.ts +1 -0
  147. package/lib/components/virtual-keyboard/index.d.ts +0 -11
  148. package/lib/components/virtual-keyboard/index.js +2 -60
  149. package/lib/components/virtual-keyboard/index.less +1 -33
  150. package/lib/components/walletCard/Guide/index.js +11 -1
  151. package/lowcode/_setters/antd-icon-setter/index.tsx +2 -3
  152. package/lowcode/virtual-keyboard/meta.ts +0 -131
  153. package/package.json +4 -6
  154. package/dist/umd/materials.min.css +0 -1
  155. package/dist/umd/materials.min.js +0 -1
  156. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  157. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  158. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  159. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  160. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  161. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
  162. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  163. package/es/components/pisellAdjustPrice/type.d.ts +0 -20
  164. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
  165. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.js +0 -76
  166. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.less +0 -75
  167. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
  168. package/es/components/productCard/cartSkuCard/components/MultiDay/index.js +0 -82
  169. package/es/components/productCard/cartSkuCard/components/MultiDay/index.less +0 -31
  170. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  171. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.js +0 -56
  172. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
  173. package/es/components/productCard/cartSkuCard/components/Note/index.js +0 -29
  174. package/es/components/productCard/cartSkuCard/components/Note/index.less +0 -27
  175. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
  176. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +0 -93
  177. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +0 -117
  178. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  179. package/es/components/productCard/cartSkuCard/components/discountReason/index.js +0 -51
  180. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  181. package/es/components/productCard/cartSkuCard/components/holders/index.js +0 -32
  182. package/es/components/productCard/cartSkuCard/components/holders/index.less +0 -32
  183. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  184. package/es/components/productCard/cartSkuCard/components/packages/index.js +0 -52
  185. package/es/components/productCard/cartSkuCard/components/packages/index.less +0 -22
  186. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  187. package/es/components/productCard/cartSkuCard/components/packages/utils.js +0 -40
  188. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  189. package/es/components/productCard/cartSkuCard/components/resources/index.js +0 -39
  190. package/es/components/productCard/cartSkuCard/components/resources/index.less +0 -19
  191. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
  192. package/es/components/productCard/cartSkuCard/components/sales/index.js +0 -57
  193. package/es/components/productCard/cartSkuCard/components/sales/index.less +0 -22
  194. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  195. package/es/components/productCard/cartSkuCard/components/specs/index.js +0 -44
  196. package/es/components/productCard/cartSkuCard/components/specs/index.less +0 -34
  197. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
  198. package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +0 -292
  199. package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +0 -35
  200. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  201. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +0 -54
  202. package/es/components/productCard/cartSkuCard/components/timeRange/index.less +0 -38
  203. package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
  204. package/es/components/productCard/cartSkuCard/index.js +0 -203
  205. package/es/components/productCard/cartSkuCard/index.less +0 -33
  206. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
  207. package/es/components/productCard/cartSkuCard/locales.js +0 -30
  208. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  209. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
  210. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  211. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  212. package/es/components/virtual-keyboard/Number/types.d.ts +0 -25
  213. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  214. package/es/components/walletCard/Guide/index.d.ts +0 -3
  215. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  216. package/lib/components/pisellAdjustPrice/type.d.ts +0 -20
  217. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
  218. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.js +0 -80
  219. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.less +0 -75
  220. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
  221. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.js +0 -71
  222. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.less +0 -31
  223. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  224. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.js +0 -77
  225. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
  226. package/lib/components/productCard/cartSkuCard/components/Note/index.js +0 -56
  227. package/lib/components/productCard/cartSkuCard/components/Note/index.less +0 -27
  228. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
  229. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +0 -82
  230. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +0 -117
  231. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  232. package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +0 -70
  233. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  234. package/lib/components/productCard/cartSkuCard/components/holders/index.js +0 -52
  235. package/lib/components/productCard/cartSkuCard/components/holders/index.less +0 -32
  236. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  237. package/lib/components/productCard/cartSkuCard/components/packages/index.js +0 -73
  238. package/lib/components/productCard/cartSkuCard/components/packages/index.less +0 -22
  239. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  240. package/lib/components/productCard/cartSkuCard/components/packages/utils.js +0 -44
  241. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  242. package/lib/components/productCard/cartSkuCard/components/resources/index.js +0 -71
  243. package/lib/components/productCard/cartSkuCard/components/resources/index.less +0 -19
  244. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
  245. package/lib/components/productCard/cartSkuCard/components/sales/index.js +0 -77
  246. package/lib/components/productCard/cartSkuCard/components/sales/index.less +0 -22
  247. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  248. package/lib/components/productCard/cartSkuCard/components/specs/index.js +0 -66
  249. package/lib/components/productCard/cartSkuCard/components/specs/index.less +0 -34
  250. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
  251. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +0 -339
  252. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +0 -35
  253. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  254. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +0 -68
  255. package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +0 -38
  256. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
  257. package/lib/components/productCard/cartSkuCard/index.js +0 -239
  258. package/lib/components/productCard/cartSkuCard/index.less +0 -33
  259. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
  260. package/lib/components/productCard/cartSkuCard/locales.js +0 -61
  261. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  262. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
  263. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  264. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  265. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -25
  266. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  267. package/lib/components/walletCard/Guide/index.d.ts +0 -3
@@ -1,239 +0,0 @@
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/cartSkuCard/index.tsx
30
- var cartSkuCard_exports = {};
31
- __export(cartSkuCard_exports, {
32
- PREFIX: () => PREFIX,
33
- default: () => cartSkuCard_default
34
- });
35
- module.exports = __toCommonJS(cartSkuCard_exports);
36
- var import_react = __toESM(require("react"));
37
- var import_classnames = __toESM(require("classnames"));
38
- var import_utils = require("@pisell/utils");
39
- var import_locales = __toESM(require("./locales"));
40
- var import_basicInfo = __toESM(require("./components/basicInfo"));
41
- var import_discountReason = __toESM(require("./components/discountReason"));
42
- var import_timeRange = __toESM(require("./components/timeRange"));
43
- var import_resources = __toESM(require("./components/resources"));
44
- var import_packages = __toESM(require("./components/packages"));
45
- var import_sales = __toESM(require("./components/sales"));
46
- var import_swipeAction = require("./components/swipeAction");
47
- var import_Note = __toESM(require("./components/Note"));
48
- var import_AmountFooter = __toESM(require("./components/AmountFooter"));
49
- var import_MultiDay = __toESM(require("./components/MultiDay"));
50
- var import_index = require("./index.less");
51
- var import_iconfont = __toESM(require("../../iconfont"));
52
- var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
53
- var import_Action = __toESM(require("../components/Action"));
54
- var import_status = require("../status");
55
- var PREFIX = "pisell-cart-sku-card";
56
- var CartSkuCard = (props) => {
57
- var _a, _b;
58
- const {
59
- dataSource = import_status.defaultValue.dataSource,
60
- isShowImage = import_status.defaultValue.isShowImage,
61
- isShowHolder = import_status.defaultValue.isShowHolder,
62
- isShowNote = import_status.defaultValue.isShowNote,
63
- isShowDelete = import_status.defaultValue.isShowDelete,
64
- isShowPackageNote = import_status.defaultValue.isShowPackageNote,
65
- isShowEditProduct = import_status.defaultValue.isShowEditProduct,
66
- onEditProduct,
67
- onAction,
68
- onDelete,
69
- onNote,
70
- onLike,
71
- onCard,
72
- onChangeResource,
73
- onChangeHolder,
74
- type,
75
- rightActions = [],
76
- escapeDom,
77
- ...other
78
- } = props;
79
- const useOpenNoteRef = (0, import_react.useRef)();
80
- const context = (0, import_useEngineContext.default)();
81
- import_utils.locales.init(
82
- import_locales.default,
83
- ((_b = (_a = context.appHelper.utils) == null ? void 0 : _a.storage) == null ? void 0 : _b.get("umi_locale")) || "en"
84
- );
85
- console.log("prodcut props", props);
86
- const { isShowAction, actionText } = dataSource;
87
- const _rightActions = (0, import_react.useMemo)(() => {
88
- const deleteAction = {
89
- key: "delete",
90
- text: /* @__PURE__ */ import_react.default.createElement(
91
- "div",
92
- {
93
- style: {
94
- display: "flex",
95
- justifyContent: "center",
96
- alignItems: "center",
97
- color: "white",
98
- cursor: "pointer",
99
- padding: "10px 0px"
100
- }
101
- },
102
- /* @__PURE__ */ import_react.default.createElement(
103
- import_iconfont.default,
104
- {
105
- type: "pisell2-trash-01",
106
- style: { fontSize: 20, marginRight: 4 }
107
- }
108
- ),
109
- /* @__PURE__ */ import_react.default.createElement("span", { style: { fontSize: 12, fontWeight: 500 } }, import_utils.locales.getText("pisell2.cart.sku-card.actions.delete"))
110
- ),
111
- color: "danger",
112
- onClick: (e) => {
113
- e.preventDefault();
114
- e.stopPropagation();
115
- onDelete == null ? void 0 : onDelete(dataSource);
116
- }
117
- };
118
- const actions = [...rightActions];
119
- if (isShowDelete) {
120
- actions.unshift(deleteAction);
121
- }
122
- return actions;
123
- }, [dataSource, onDelete, isShowDelete, rightActions]);
124
- const hideDivider = (0, import_react.useMemo)(() => {
125
- return false;
126
- }, [dataSource]);
127
- const renderA2 = () => {
128
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
129
- import_basicInfo.default,
130
- {
131
- isShowImage,
132
- dataSource,
133
- isMainProduct: true
134
- }
135
- ), /* @__PURE__ */ import_react.default.createElement(import_discountReason.default, { dataSource }), isShowNote ? /* @__PURE__ */ import_react.default.createElement(
136
- import_Note.default,
137
- {
138
- ...other,
139
- item: dataSource,
140
- openNote: () => {
141
- useOpenNoteRef.current.open({
142
- item: dataSource
143
- });
144
- }
145
- }
146
- ) : null);
147
- };
148
- const renderA5 = () => {
149
- var _a2, _b2;
150
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, isShowDelete ? /* @__PURE__ */ import_react.default.createElement(
151
- "div",
152
- {
153
- className: `${PREFIX}__delete-btn`,
154
- onClick: (e) => {
155
- e.preventDefault();
156
- e.stopPropagation();
157
- onDelete == null ? void 0 : onDelete(dataSource);
158
- }
159
- },
160
- /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pisell2-trash-01" })
161
- ) : null, /* @__PURE__ */ import_react.default.createElement(
162
- import_basicInfo.default,
163
- {
164
- isShowImage,
165
- dataSource,
166
- isMainProduct: true,
167
- type
168
- }
169
- ), /* @__PURE__ */ import_react.default.createElement(import_timeRange.default, { dataSource }), /* @__PURE__ */ import_react.default.createElement(import_resources.default, { dataSource }), /* @__PURE__ */ import_react.default.createElement(import_packages.default, { dataSource, isShowImage }), /* @__PURE__ */ import_react.default.createElement(
170
- import_sales.default,
171
- {
172
- dataSource,
173
- hideDivider: !!((_a2 = dataSource == null ? void 0 : dataSource.bundle) == null ? void 0 : _a2.length),
174
- isShowImage
175
- }
176
- ), ((_b2 = dataSource.items) == null ? void 0 : _b2.length) ? /* @__PURE__ */ import_react.default.createElement(import_MultiDay.default, { dataSource, hideDivider }) : /* @__PURE__ */ import_react.default.createElement(
177
- import_AmountFooter.default,
178
- {
179
- item: dataSource,
180
- hideDivider,
181
- type: "total"
182
- }
183
- ), /* @__PURE__ */ import_react.default.createElement(import_discountReason.default, { dataSource }), isShowNote ? /* @__PURE__ */ import_react.default.createElement(
184
- import_Note.default,
185
- {
186
- ...other,
187
- item: dataSource,
188
- openNote: () => {
189
- useOpenNoteRef.current.open({
190
- item: dataSource
191
- });
192
- }
193
- }
194
- ) : null, isShowAction && actionText ? /* @__PURE__ */ import_react.default.createElement(import_Action.default, { item: dataSource, onAction: () => onAction == null ? void 0 : onAction(dataSource) }) : null);
195
- };
196
- const renderContent = () => {
197
- if (type === "a5") {
198
- return renderA5();
199
- }
200
- return renderA2();
201
- };
202
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, type === "a2" ? /* @__PURE__ */ import_react.default.createElement(
203
- import_swipeAction.SwipeAction,
204
- {
205
- closeOnAction: false,
206
- className: (0, import_classnames.default)(`${PREFIX}-wrapper`),
207
- rightActions: _rightActions,
208
- escapeDom
209
- },
210
- /* @__PURE__ */ import_react.default.createElement(
211
- "div",
212
- {
213
- className: (0, import_classnames.default)(PREFIX, `${PREFIX}--${type}`),
214
- onClick: (e) => {
215
- e.preventDefault();
216
- e.stopPropagation();
217
- onCard == null ? void 0 : onCard(dataSource);
218
- }
219
- },
220
- renderContent()
221
- )
222
- ) : /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)(`${PREFIX}-wrapper`) }, /* @__PURE__ */ import_react.default.createElement(
223
- "div",
224
- {
225
- className: (0, import_classnames.default)(PREFIX, `${PREFIX}-${type}`),
226
- onClick: (e) => {
227
- e.preventDefault();
228
- e.stopPropagation();
229
- onCard == null ? void 0 : onCard(dataSource);
230
- }
231
- },
232
- renderContent()
233
- )));
234
- };
235
- var cartSkuCard_default = CartSkuCard;
236
- // Annotate the CommonJS export names for ESM import in node:
237
- 0 && (module.exports = {
238
- PREFIX
239
- });
@@ -1,33 +0,0 @@
1
- .pisell-cart-sku-card-wrapper {
2
- border-radius: 8px;
3
- background: var(--Base-White, #fff);
4
- border: 1px solid var(--Gray-300, #d0d5dd);
5
- }
6
-
7
- .pisell-cart-sku-card {
8
- padding: 4px 8px 4px 4px;
9
- border-radius: inherit;
10
- user-select: none;
11
- position: relative;
12
- display: flex;
13
- flex-direction: column;
14
- gap: 4px;
15
-
16
- &-a5 {
17
- cursor: pointer;
18
- }
19
-
20
- &__delete-btn {
21
- cursor: pointer;
22
- position: absolute;
23
- padding: 10px;
24
- top: 0;
25
- right: 0;
26
- z-index: 1;
27
-
28
- > span {
29
- color: #667085;
30
- font-size: 20px;
31
- }
32
- }
33
- }
@@ -1,96 +0,0 @@
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;
@@ -1,61 +0,0 @@
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/cartSkuCard/locales.ts
30
- var locales_exports = {};
31
- __export(locales_exports, {
32
- default: () => locales_default
33
- });
34
- module.exports = __toCommonJS(locales_exports);
35
- var import_locales = __toESM(require("../locales"));
36
- var locales_default = {
37
- en: {
38
- ...import_locales.default.en,
39
- "pisell2.product.card.discount.reason": "Discount reason",
40
- "pisell2.cart.sku-card.more": "more...",
41
- "pisell2.cart.sku-card.packages.title": "Items in package",
42
- "pisell2.cart.sku-card.sales.title": "Sales",
43
- "pisell2.cart.sku-card.actions.delete": "Delete"
44
- },
45
- "zh-CN": {
46
- ...import_locales.default["zh-CN"],
47
- "pisell2.product.card.discount.reason": "折扣原因",
48
- "pisell2.cart.sku-card.more": "更多……",
49
- "pisell2.cart.sku-card.packages.title": "包含的商品",
50
- "pisell2.cart.sku-card.sales.title": "销售",
51
- "pisell2.cart.sku-card.actions.delete": "删除"
52
- },
53
- "zh-HK": {
54
- ...import_locales.default["zh-HK"],
55
- "pisell2.product.card.discount.reason": "折扣原因",
56
- "pisell2.cart.sku-card.more": "更多……",
57
- "pisell2.cart.sku-card.packages.title": "包含的商品",
58
- "pisell2.cart.sku-card.sales.title": "銷售",
59
- "pisell2.cart.sku-card.actions.delete": "刪除"
60
- }
61
- };
@@ -1,32 +0,0 @@
1
- export declare const amountThemeConfig: {
2
- dark: {
3
- backgroundColor: string;
4
- containerBackgroundColor: string;
5
- buttonBackgroundColor: string;
6
- textColor: string;
7
- resetButtonBackgroundColor: string;
8
- resetButtonTextColor: string;
9
- isDoneButtonFollowTheme: boolean;
10
- doneButtonBackgroundColor: string;
11
- doneButtonTextColor: string;
12
- keyboardBackgroundColor: string;
13
- keyboardButtonBackgroundColor: string;
14
- keyboardButtonTextColor: string;
15
- keyboardButtonHoverColor: string;
16
- };
17
- light: {
18
- backgroundColor: string;
19
- containerBackgroundColor: string;
20
- buttonBackgroundColor: string;
21
- textColor: string;
22
- resetButtonBackgroundColor: string;
23
- resetButtonTextColor: string;
24
- isDoneButtonFollowTheme: boolean;
25
- doneButtonBackgroundColor: string;
26
- doneButtonTextColor: string;
27
- keyboardBackgroundColor: string;
28
- keyboardButtonBackgroundColor: string;
29
- keyboardButtonTextColor: string;
30
- keyboardButtonHoverColor: string;
31
- };
32
- };
@@ -1,44 +0,0 @@
1
- /// <reference types="react" />
2
- import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
3
- export interface RightItemsStyleProps {
4
- buttonBackgroundColor?: string;
5
- textColor?: string;
6
- resetButtonBackgroundColor?: string;
7
- resetButtonTextColor?: string;
8
- isDoneButtonFollowTheme?: boolean;
9
- doneButtonBackgroundColor?: string;
10
- doneButtonTextColor?: string;
11
- }
12
- export interface AmountProps {
13
- max?: number;
14
- min?: number;
15
- doneText?: string;
16
- resetText?: string;
17
- defaultValue?: string | number;
18
- placeholder?: string;
19
- amountProps?: {
20
- showCurrencySymbol: boolean;
21
- useThousandsSeparator: boolean;
22
- };
23
- presets?: BaseNumberKeyboardProps['presets'];
24
- value?: string | number;
25
- onChange?: (val: string | number) => void;
26
- onEnter?: (val: string | number) => void;
27
- defaultSelect?: boolean;
28
- inputFormat?: (_v: string) => React.ReactNode | null;
29
- rightItemsStyle?: RightItemsStyleProps;
30
- selectType?: 'light' | 'dark';
31
- backgroundColor?: string;
32
- containerBackgroundColor?: string;
33
- buttonBackgroundColor?: string;
34
- textColor?: string;
35
- resetButtonBackgroundColor?: string;
36
- resetButtonTextColor?: string;
37
- isDoneButtonFollowTheme?: boolean;
38
- doneButtonBackgroundColor?: string;
39
- doneButtonTextColor?: string;
40
- keyboardBackgroundColor?: string;
41
- keyboardButtonBackgroundColor?: string;
42
- keyboardButtonTextColor?: string;
43
- keyboardButtonHoverColor?: string;
44
- }
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export declare type ItemValue = string | number;
4
- export interface Item {
5
- value: ItemValue;
6
- label: React.ReactNode;
7
- disabled: boolean;
8
- type: 'text' | 'primary';
9
- style?: React.CSSProperties;
10
- size?: number;
11
- }
12
- export interface KeyboardProps {
13
- className?: string;
14
- style?: React.CSSProperties;
15
- onChange?: (value?: ItemValue) => void;
16
- items?: Item[];
17
- rightItems?: Item[];
18
- keydown?: boolean;
19
- }
20
- declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
21
- export default _default;
@@ -1,32 +0,0 @@
1
- export declare const numberThemeConfig: {
2
- dark: {
3
- backgroundColor: string;
4
- containerBackgroundColor: string;
5
- buttonBackgroundColor: string;
6
- textColor: string;
7
- resetButtonBackgroundColor: string;
8
- resetButtonTextColor: string;
9
- isDoneButtonFollowTheme: boolean;
10
- doneButtonBackgroundColor: string;
11
- doneButtonTextColor: string;
12
- keyboardBackgroundColor: string;
13
- keyboardButtonBackgroundColor: string;
14
- keyboardButtonTextColor: string;
15
- keyboardButtonHoverColor: string;
16
- };
17
- light: {
18
- backgroundColor: string;
19
- containerBackgroundColor: string;
20
- buttonBackgroundColor: string;
21
- textColor: string;
22
- resetButtonBackgroundColor: string;
23
- resetButtonTextColor: string;
24
- isDoneButtonFollowTheme: boolean;
25
- doneButtonBackgroundColor: string;
26
- doneButtonTextColor: string;
27
- keyboardBackgroundColor: string;
28
- keyboardButtonBackgroundColor: string;
29
- keyboardButtonTextColor: string;
30
- keyboardButtonHoverColor: string;
31
- };
32
- };
@@ -1,25 +0,0 @@
1
- export interface NumberProps {
2
- max?: number;
3
- min?: number;
4
- doneText?: string;
5
- resetText: string;
6
- defaultValue?: string | number;
7
- placeholder?: string;
8
- value?: string | number;
9
- onChange?: (val: string | number) => void;
10
- onEnter?: (val: string | number) => void;
11
- selectType?: 'light' | 'dark';
12
- backgroundColor?: string;
13
- containerBackgroundColor?: string;
14
- buttonBackgroundColor?: string;
15
- textColor?: string;
16
- resetButtonBackgroundColor?: string;
17
- resetButtonTextColor?: string;
18
- isDoneButtonFollowTheme?: boolean;
19
- doneButtonBackgroundColor?: string;
20
- doneButtonTextColor?: string;
21
- keyboardBackgroundColor?: string;
22
- keyboardButtonBackgroundColor?: string;
23
- keyboardButtonTextColor?: string;
24
- keyboardButtonHoverColor?: string;
25
- }
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { InputProps } from 'antd';
3
- import './index.less';
4
- export interface VirtualKeyInputProps extends InputProps {
5
- previewValue?: string;
6
- renderInput?: (props: any) => any;
7
- showDelete?: boolean;
8
- onValueSelect?: (selected: boolean) => void;
9
- defaultSelect?: boolean;
10
- style?: React.CSSProperties;
11
- }
12
- declare const VirtualKeyInput: (props: VirtualKeyInputProps) => JSX.Element;
13
- export default VirtualKeyInput;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Guide: (props: any) => JSX.Element;
3
- export default Guide;