@pisell/materials 2.2.105 → 2.2.106

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 (257) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +148 -156
  7. package/build/lowcode/render/default/view.js +23 -37
  8. package/build/lowcode/view.js +23 -37
  9. package/es/components/TimeResourceSelector/index.d.ts +21 -0
  10. package/es/components/badge/index.d.ts +7 -0
  11. package/es/components/buttonGroupEdit/index.d.ts +8 -0
  12. package/es/components/buttonGroupPreview/index.d.ts +19 -0
  13. package/es/components/cardMetricItem/index.d.ts +12 -0
  14. package/es/components/collapse/index.d.ts +15 -0
  15. package/es/components/cropPhoto/index.d.ts +3 -0
  16. package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  17. package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -0
  18. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  19. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  20. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  21. package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
  22. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  23. package/es/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
  24. package/es/components/dataSourceComponents/fields/Upload/shopUploadServe.d.ts +56 -0
  25. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +18 -0
  26. package/es/components/dataSourceComponents/fields/index.d.ts +20 -20
  27. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  28. package/es/components/date-picker/datePickerCpt.d.ts +8 -0
  29. package/es/components/date-picker/index.d.ts +0 -1
  30. package/es/components/div/index.d.ts +19 -0
  31. package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  32. package/es/components/page/index.d.ts +0 -1
  33. package/es/components/pisell-config-provider/context.d.ts +22 -0
  34. package/es/components/pisellAdjustPrice/index.d.ts +4 -0
  35. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  36. package/es/components/pisellAdjustPrice/type.d.ts +22 -0
  37. package/es/components/pisellAnchor/index.d.ts +23 -0
  38. package/es/components/pisellAvatar/index.d.ts +19 -0
  39. package/es/components/pisellCard/index.d.ts +19 -0
  40. package/es/components/pisellCheckboxGroup/index.d.ts +40 -0
  41. package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  42. package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
  43. package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +24 -0
  44. package/es/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
  45. package/es/components/pisellDraggable/index.d.ts +35 -0
  46. package/es/components/pisellDropSort/PisellDropSort.d.ts +5 -0
  47. package/es/components/pisellDropSort/components/SortableItem/index.d.ts +26 -0
  48. package/es/components/pisellDropSort/types.d.ts +58 -0
  49. package/es/components/pisellDropdown/index.d.ts +20 -0
  50. package/es/components/pisellHeaderProgressBar/index.d.ts +29 -0
  51. package/es/components/pisellImageCarousels/index.d.ts +18 -0
  52. package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  53. package/es/components/pisellInformationEntry/index.d.ts +33 -0
  54. package/es/components/pisellMenu/PisellMenu.d.ts +11 -0
  55. package/es/components/pisellMenu/types.d.ts +27 -0
  56. package/es/components/pisellNavigationMenu/types.d.ts +85 -0
  57. package/es/components/pisellQrcode/index.d.ts +10 -0
  58. package/es/components/pisellSectionHeaders/index.d.ts +21 -0
  59. package/es/components/pisellStatisticList/index.d.ts +21 -0
  60. package/es/components/pisellText/components/Amount/index.d.ts +20 -0
  61. package/es/components/pisellToast/index.d.ts +17 -0
  62. package/es/components/pisellToast/squareToast/index.d.ts +15 -0
  63. package/es/components/pisellToast/squareToast/methods.d.ts +13 -0
  64. package/es/components/pisellToast/squareToast/methods.js +12 -14
  65. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
  66. package/es/components/pisellToast/squareToast/renderImperatively.js +14 -16
  67. package/es/components/pisellToast/squareToast/toast.d.ts +25 -0
  68. package/es/components/pisellToast/squareToast/toast.js +9 -21
  69. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  70. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
  71. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  72. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  73. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +27 -0
  74. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  75. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  76. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  77. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  78. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  79. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  80. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  81. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +45 -0
  82. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  83. package/es/components/productCard/cartSkuCard/index.d.ts +10 -0
  84. package/es/components/productCard/cartSkuCard/locales.d.ts +96 -0
  85. package/es/components/productCard/components/Action/index.d.ts +3 -0
  86. package/es/components/productCard/components/AmountFooter/index.d.ts +3 -0
  87. package/es/components/productCard/components/Divider/index.d.ts +3 -0
  88. package/es/components/productCard/components/Header/EditButton/index.d.ts +3 -0
  89. package/es/components/productCard/components/MultiDay/index.d.ts +3 -0
  90. package/es/components/productCard/components/MultiDay/utils.d.ts +14 -0
  91. package/es/components/productCard/components/Note/index.d.ts +3 -0
  92. package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
  93. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  94. package/es/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  95. package/es/components/productCard/components/Packages/index.d.ts +3 -0
  96. package/es/components/productCard/components/Packages/utils.d.ts +20 -0
  97. package/es/components/productCard/components/Sales/index.d.ts +3 -0
  98. package/es/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  99. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  100. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -0
  101. package/es/components/productCard/components/Warning/index.d.ts +7 -0
  102. package/es/components/productCard/locales.d.ts +84 -0
  103. package/es/components/productCard/status.d.ts +32 -0
  104. package/es/components/productCard/types.d.ts +84 -0
  105. package/es/components/productCard/utils.d.ts +31 -0
  106. package/es/components/section-footers/index.d.ts +9 -0
  107. package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  108. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  109. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  110. package/es/components/table/Actions/index.d.ts +0 -1
  111. package/es/components/table/BasicTable/index.d.ts +0 -1
  112. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  113. package/es/components/table/Table/fields/date/index.d.ts +0 -1
  114. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  115. package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  116. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  117. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  118. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  119. package/es/components/tabs/index.d.ts +16 -0
  120. package/es/components/virtual-keyboard/Amount/index.d.ts +5 -0
  121. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  122. package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
  123. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +21 -0
  124. package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  125. package/es/components/virtual-keyboard/Number/index.d.ts +5 -0
  126. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  127. package/es/components/virtual-keyboard/Number/types.d.ts +26 -0
  128. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  129. package/es/components/virtual-keyboard/index.d.ts +25 -0
  130. package/es/components/walletCard/Guest/index.d.ts +3 -0
  131. package/es/components/walletCard/Guide/index.d.ts +3 -0
  132. package/es/utils/index.d.ts +4 -0
  133. package/lib/components/TimeResourceSelector/index.d.ts +21 -0
  134. package/lib/components/badge/index.d.ts +7 -0
  135. package/lib/components/buttonGroupEdit/index.d.ts +8 -0
  136. package/lib/components/buttonGroupPreview/index.d.ts +19 -0
  137. package/lib/components/cardMetricItem/index.d.ts +12 -0
  138. package/lib/components/collapse/index.d.ts +15 -0
  139. package/lib/components/cropPhoto/index.d.ts +3 -0
  140. package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  141. package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -0
  142. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  143. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  144. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  145. package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
  146. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  147. package/lib/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
  148. package/lib/components/dataSourceComponents/fields/Upload/shopUploadServe.d.ts +56 -0
  149. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +18 -0
  150. package/lib/components/dataSourceComponents/fields/index.d.ts +20 -20
  151. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  152. package/lib/components/date-picker/datePickerCpt.d.ts +8 -0
  153. package/lib/components/date-picker/index.d.ts +0 -1
  154. package/lib/components/div/index.d.ts +19 -0
  155. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  156. package/lib/components/page/index.d.ts +0 -1
  157. package/lib/components/pisell-config-provider/context.d.ts +22 -0
  158. package/lib/components/pisellAdjustPrice/index.d.ts +4 -0
  159. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  160. package/lib/components/pisellAdjustPrice/type.d.ts +22 -0
  161. package/lib/components/pisellAnchor/index.d.ts +23 -0
  162. package/lib/components/pisellAvatar/index.d.ts +19 -0
  163. package/lib/components/pisellCard/index.d.ts +19 -0
  164. package/lib/components/pisellCheckboxGroup/index.d.ts +40 -0
  165. package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  166. package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
  167. package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +24 -0
  168. package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
  169. package/lib/components/pisellDraggable/index.d.ts +35 -0
  170. package/lib/components/pisellDropSort/PisellDropSort.d.ts +5 -0
  171. package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +26 -0
  172. package/lib/components/pisellDropSort/types.d.ts +58 -0
  173. package/lib/components/pisellDropdown/index.d.ts +20 -0
  174. package/lib/components/pisellHeaderProgressBar/index.d.ts +29 -0
  175. package/lib/components/pisellImageCarousels/index.d.ts +18 -0
  176. package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  177. package/lib/components/pisellInformationEntry/index.d.ts +33 -0
  178. package/lib/components/pisellMenu/PisellMenu.d.ts +11 -0
  179. package/lib/components/pisellMenu/types.d.ts +27 -0
  180. package/lib/components/pisellNavigationMenu/types.d.ts +85 -0
  181. package/lib/components/pisellQrcode/index.d.ts +10 -0
  182. package/lib/components/pisellSectionHeaders/index.d.ts +21 -0
  183. package/lib/components/pisellStatisticList/index.d.ts +21 -0
  184. package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
  185. package/lib/components/pisellToast/index.d.ts +17 -0
  186. package/lib/components/pisellToast/squareToast/index.d.ts +15 -0
  187. package/lib/components/pisellToast/squareToast/methods.d.ts +13 -0
  188. package/lib/components/pisellToast/squareToast/methods.js +11 -13
  189. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
  190. package/lib/components/pisellToast/squareToast/renderImperatively.js +9 -9
  191. package/lib/components/pisellToast/squareToast/toast.d.ts +25 -0
  192. package/lib/components/pisellToast/squareToast/toast.js +5 -9
  193. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  194. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
  195. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  196. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  197. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +27 -0
  198. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  199. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  200. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  201. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  202. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  203. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  204. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  205. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +45 -0
  206. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  207. package/lib/components/productCard/cartSkuCard/index.d.ts +10 -0
  208. package/lib/components/productCard/cartSkuCard/locales.d.ts +96 -0
  209. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  210. package/lib/components/productCard/components/AmountFooter/index.d.ts +3 -0
  211. package/lib/components/productCard/components/Divider/index.d.ts +3 -0
  212. package/lib/components/productCard/components/Header/EditButton/index.d.ts +3 -0
  213. package/lib/components/productCard/components/MultiDay/index.d.ts +3 -0
  214. package/lib/components/productCard/components/MultiDay/utils.d.ts +14 -0
  215. package/lib/components/productCard/components/Note/index.d.ts +3 -0
  216. package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
  217. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  218. package/lib/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  219. package/lib/components/productCard/components/Packages/index.d.ts +3 -0
  220. package/lib/components/productCard/components/Packages/utils.d.ts +20 -0
  221. package/lib/components/productCard/components/Sales/index.d.ts +3 -0
  222. package/lib/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  223. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  224. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -0
  225. package/lib/components/productCard/components/Warning/index.d.ts +7 -0
  226. package/lib/components/productCard/locales.d.ts +84 -0
  227. package/lib/components/productCard/status.d.ts +32 -0
  228. package/lib/components/productCard/types.d.ts +84 -0
  229. package/lib/components/productCard/utils.d.ts +31 -0
  230. package/lib/components/section-footers/index.d.ts +9 -0
  231. package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  232. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  233. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  234. package/lib/components/table/Actions/index.d.ts +0 -1
  235. package/lib/components/table/BasicTable/index.d.ts +0 -1
  236. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  237. package/lib/components/table/Table/fields/date/index.d.ts +0 -1
  238. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  239. package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  240. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  241. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  242. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  243. package/lib/components/tabs/index.d.ts +16 -0
  244. package/lib/components/virtual-keyboard/Amount/index.d.ts +5 -0
  245. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  246. package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
  247. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +21 -0
  248. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  249. package/lib/components/virtual-keyboard/Number/index.d.ts +5 -0
  250. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  251. package/lib/components/virtual-keyboard/Number/types.d.ts +26 -0
  252. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  253. package/lib/components/virtual-keyboard/index.d.ts +25 -0
  254. package/lib/components/walletCard/Guest/index.d.ts +3 -0
  255. package/lib/components/walletCard/Guide/index.d.ts +3 -0
  256. package/lib/utils/index.d.ts +4 -0
  257. package/package.json +1 -1
@@ -0,0 +1,14 @@
1
+ interface InputItem {
2
+ start_date: string;
3
+ end_date: string;
4
+ total: number;
5
+ num: number;
6
+ }
7
+ interface OutputItem {
8
+ start_date: string;
9
+ end_date: string;
10
+ total: number;
11
+ num: number;
12
+ }
13
+ export declare function formatDateRanges(list: InputItem[]): OutputItem[];
14
+ export {};
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Note: (props: any) => JSX.Element | null;
3
+ export default Note;
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface IProps {
4
+ isShowImage?: boolean;
5
+ dataSource: {
6
+ image?: string;
7
+ bundle?: any[];
8
+ options?: any[];
9
+ product_option_string?: string;
10
+ name?: string;
11
+ symbol?: string;
12
+ price?: string | number;
13
+ total?: number;
14
+ origin_total?: number;
15
+ num?: number;
16
+ holder_id?: any;
17
+ };
18
+ style?: React.CSSProperties;
19
+ /** 作为主商品卡片展示
20
+ * 1. 影响商品数量 tag 的位置
21
+ * 2. isMain 且 type 为 a5,展示holder
22
+ */
23
+ isMainProduct?: boolean;
24
+ type?: 'a2' | 'a5';
25
+ }
26
+ declare const BasicInfo: (props: IProps) => JSX.Element;
27
+ export default BasicInfo;
@@ -0,0 +1,2 @@
1
+ declare const DiscountReason: (props: any) => JSX.Element;
2
+ export default DiscountReason;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Holders: (props: any) => JSX.Element | null;
3
+ export default Holders;
@@ -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) => any;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Resources: (props: any) => JSX.Element | null;
3
+ 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,45 @@
1
+ import type { ReactNode } from 'react';
2
+ import React from 'react';
3
+ declare type NativeProps<S extends string = never> = {
4
+ className?: string;
5
+ style?: React.CSSProperties & Partial<Record<S, string>>;
6
+ };
7
+ declare type PropagationEvent = 'click';
8
+ import './index.less';
9
+ declare type SideType = 'left' | 'right';
10
+ export declare type SwipeActionRef = {
11
+ close: () => void;
12
+ show: (side?: SideType) => void;
13
+ };
14
+ declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
15
+ export declare type Action = {
16
+ key: string | number;
17
+ text: ReactNode;
18
+ color?: ActionColor | string;
19
+ onClick?: (e: React.MouseEvent) => void;
20
+ };
21
+ export declare type SwipeActionProps = {
22
+ rightActions?: Action[];
23
+ leftActions?: Action[];
24
+ onAction?: (action: Action, e: React.MouseEvent) => void;
25
+ closeOnTouchOutside?: boolean;
26
+ closeOnAction?: boolean;
27
+ children: ReactNode;
28
+ stopPropagation?: PropagationEvent[];
29
+ onActionsReveal?: (side: SideType) => void;
30
+ onClose?: () => void;
31
+ escapeDom?: string;
32
+ } & NativeProps<'--background'>;
33
+ export declare const SwipeAction: React.ForwardRefExoticComponent<{
34
+ rightActions?: Action[] | undefined;
35
+ leftActions?: Action[] | undefined;
36
+ onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
37
+ closeOnTouchOutside?: boolean | undefined;
38
+ closeOnAction?: boolean | undefined;
39
+ children: ReactNode;
40
+ stopPropagation?: "click"[] | undefined;
41
+ onActionsReveal?: ((side: SideType) => void) | undefined;
42
+ onClose?: (() => void) | undefined;
43
+ escapeDom?: string | undefined;
44
+ } & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
45
+ export {};
@@ -0,0 +1,6 @@
1
+ import 'dayjs/locale/zh-cn';
2
+ import 'dayjs/locale/en';
3
+ import 'dayjs/locale/zh-tw';
4
+ import './index.less';
5
+ declare const TimeRange: (props: any) => JSX.Element | null;
6
+ 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;
@@ -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;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Action: ({ item, onAction }: any) => JSX.Element;
3
+ export default Action;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
3
+ export default Footer;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Divider: ({ type }: any) => JSX.Element;
3
+ export default Divider;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const EditButton: ({ onEdit }: any) => JSX.Element;
3
+ export default EditButton;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
+ export default MultiDay;
@@ -0,0 +1,14 @@
1
+ interface InputItem {
2
+ start_date: string;
3
+ end_date: string;
4
+ total: number;
5
+ num: number;
6
+ }
7
+ interface OutputItem {
8
+ start_date: string;
9
+ end_date: string;
10
+ total: number;
11
+ num: number;
12
+ }
13
+ export declare function formatDateRanges(list: InputItem[]): OutputItem[];
14
+ export {};
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Note: (props: any) => JSX.Element | null;
3
+ export default Note;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface CollapsibleListProps<T> {
4
+ list: T[];
5
+ renderItem: (item: T, index: number) => React.ReactNode;
6
+ className?: string;
7
+ style?: React.CSSProperties;
8
+ }
9
+ declare const CollapsibleList: React.FC<CollapsibleListProps<any>>;
10
+ export default CollapsibleList;
@@ -0,0 +1 @@
1
+ export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
3
+ export default Options;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Packages: ({ item, isShowPackageNote }: any) => JSX.Element | null;
3
+ 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) => any;
@@ -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,9 @@
1
+ import './index.less';
2
+ declare const Like: ({ status, onLike, className, style, isShowChangeResource, }: {
3
+ style?: any;
4
+ status: string;
5
+ onLike?: any;
6
+ className?: string | undefined;
7
+ isShowChangeResource?: boolean | undefined;
8
+ }) => JSX.Element;
9
+ export default Like;
@@ -0,0 +1,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,2 @@
1
+ declare const SelectHolderMultiple: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => JSX.Element;
2
+ export default SelectHolderMultiple;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import '../../index.less';
3
+ declare const Warning: React.FC<{
4
+ errorMessage: string | Array<string>;
5
+ osWarnTips: Array<string>;
6
+ }>;
7
+ export default Warning;
@@ -0,0 +1,84 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.product.card.day': (val: number) => string;
4
+ 'pisell2.product.card.day.event': (val: number) => string;
5
+ 'pisell2.product.card.minute': (val: number) => string;
6
+ 'pisell2.product.card.discount.reason': string;
7
+ 'pisell2.product.card.discount.note': string;
8
+ 'pisell2.product.card.edit': string;
9
+ 'pisell2.product.card.discount.add.note': string;
10
+ 'pisell2.product.card.discount.edit.note': string;
11
+ 'pisell2.product.card.confirm': string;
12
+ 'pisell2.product.card.cancel': string;
13
+ 'pisell2.product.card.note.pla': string;
14
+ 'pisell2.product.card.items.package': string;
15
+ 'pisell2.product.card.view-all': string;
16
+ 'pisell2.product.card.view-less': string;
17
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
18
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
19
+ 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
20
+ 'pisell2.product.card.add.holder.modal.title.1': string;
21
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
22
+ 'pisell2.product.card.sales': string;
23
+ 'pisell2.product.card.add.holder.modal.cancel': string;
24
+ 'pisell2.product.card.add.holder.modal.clear': string;
25
+ 'pisell2.product.card.add.holder.modal.apply': string;
26
+ 'pisell2.product.card.add.holder.modal.add': string;
27
+ 'pisell2.product.card.closing-soon.warning': string;
28
+ };
29
+ 'zh-CN': {
30
+ 'pisell2.product.card.edit': string;
31
+ 'pisell2.product.card.day': (val: number) => string;
32
+ 'pisell2.product.card.day.event': (val: number) => string;
33
+ 'pisell2.product.card.minute': (val: number) => string;
34
+ 'pisell2.product.card.discount.reason': string;
35
+ 'pisell2.product.card.discount.note': string;
36
+ 'pisell2.product.card.discount.add.note': string;
37
+ 'pisell2.product.card.discount.edit.note': string;
38
+ 'pisell2.product.card.confirm': string;
39
+ 'pisell2.product.card.cancel': string;
40
+ 'pisell2.product.card.note.pla': string;
41
+ 'pisell2.product.card.items.package': string;
42
+ 'pisell2.product.card.view-all': string;
43
+ 'pisell2.product.card.view-less': string;
44
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
45
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
46
+ 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
47
+ 'pisell2.product.card.add.holder.modal.title.1': string;
48
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
49
+ 'pisell2.product.card.sales': string;
50
+ 'pisell2.product.card.add.holder.modal.cancel': string;
51
+ 'pisell2.product.card.add.holder.modal.clear': string;
52
+ 'pisell2.product.card.add.holder.modal.apply': string;
53
+ 'pisell2.product.card.add.holder.modal.add': string;
54
+ 'pisell2.product.card.closing-soon.warning': string;
55
+ };
56
+ 'zh-HK': {
57
+ 'pisell2.product.card.edit': string;
58
+ 'pisell2.product.card.day': (val: number) => string;
59
+ 'pisell2.product.card.day.event': (val: number) => string;
60
+ 'pisell2.product.card.minute': (val: number) => string;
61
+ 'pisell2.product.card.discount.reason': string;
62
+ 'pisell2.product.card.discount.note': string;
63
+ 'pisell2.product.card.discount.add.note': string;
64
+ 'pisell2.product.card.discount.edit.note': string;
65
+ 'pisell2.product.card.confirm': string;
66
+ 'pisell2.product.card.cancel': string;
67
+ 'pisell2.product.card.note.pla': string;
68
+ 'pisell2.product.card.items.package': string;
69
+ 'pisell2.product.card.view-all': string;
70
+ 'pisell2.product.card.view-less': string;
71
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
72
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
73
+ 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
74
+ 'pisell2.product.card.add.holder.modal.title.1': string;
75
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
76
+ 'pisell2.product.card.sales': string;
77
+ 'pisell2.product.card.add.holder.modal.cancel': string;
78
+ 'pisell2.product.card.add.holder.modal.clear': string;
79
+ 'pisell2.product.card.add.holder.modal.apply': string;
80
+ 'pisell2.product.card.add.holder.modal.add': string;
81
+ 'pisell2.product.card.closing-soon.warning': string;
82
+ };
83
+ };
84
+ export default _default;
@@ -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;
@@ -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;