@pisell/materials 1.0.848 → 1.0.850

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 (241) 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/render/default/view.css +1 -1
  7. package/build/lowcode/render/default/view.js +22 -22
  8. package/build/lowcode/view.css +1 -1
  9. package/build/lowcode/view.js +10 -10
  10. package/es/components/batch-editor/index.d.ts +1 -0
  11. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  13. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  14. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  15. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  16. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  17. package/es/components/dataSourceComponents/fields/index.d.ts +3 -2
  18. package/es/components/date-picker/index.d.ts +1 -0
  19. package/es/components/page/index.d.ts +1 -0
  20. package/es/components/pisellInput/index.d.ts +1 -0
  21. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  22. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  23. package/es/components/pisellModal/components/index.d.ts +1 -0
  24. package/es/components/productCard/components/AmountFooter/index.js +1 -1
  25. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  26. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  27. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  28. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  29. package/es/components/table/Actions/index.d.ts +1 -0
  30. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  31. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  32. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  33. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  34. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  35. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  36. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  37. package/es/components/table/Table/fields/index.d.ts +3 -2
  38. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  39. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  40. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  41. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  42. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  43. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  44. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  45. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  46. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  47. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  48. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  49. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  50. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  51. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  52. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  53. package/es/components/versionSelect/index.d.ts +1 -0
  54. package/es/components/walletCard/index.js +30 -3
  55. package/es/components/walletCard/index.less +17 -0
  56. package/es/locales/en-US.js +164 -59
  57. package/es/locales/zh-CN.js +158 -59
  58. package/es/locales/zh-TW.js +103 -102
  59. package/es/utils/index.d.ts +1 -1
  60. package/es/utils/platform.d.ts +1 -1
  61. package/lib/components/batch-editor/index.d.ts +1 -0
  62. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  63. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  64. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  65. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  66. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  67. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  68. package/lib/components/dataSourceComponents/fields/index.d.ts +3 -2
  69. package/lib/components/date-picker/index.d.ts +1 -0
  70. package/lib/components/page/index.d.ts +1 -0
  71. package/lib/components/pisellInput/index.d.ts +1 -0
  72. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  73. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  74. package/lib/components/pisellModal/components/index.d.ts +1 -0
  75. package/lib/components/productCard/components/AmountFooter/index.js +1 -1
  76. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  77. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  78. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  79. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  80. package/lib/components/table/Actions/index.d.ts +1 -0
  81. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  82. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  83. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  84. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  85. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  86. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  87. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  88. package/lib/components/table/Table/fields/index.d.ts +3 -2
  89. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  90. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  91. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  92. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  93. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  94. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  95. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  96. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  97. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  98. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  99. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  100. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  101. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  102. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  103. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  104. package/lib/components/versionSelect/index.d.ts +1 -0
  105. package/lib/components/walletCard/index.js +26 -3
  106. package/lib/components/walletCard/index.less +17 -0
  107. package/lib/locales/en-US.js +1 -8
  108. package/lib/locales/zh-CN.js +1 -7
  109. package/lib/locales/zh-TW.js +1 -0
  110. package/lib/utils/index.d.ts +1 -1
  111. package/lib/utils/platform.d.ts +1 -1
  112. package/lowcode/wallet-card/meta.ts +81 -63
  113. package/package.json +3 -3
  114. package/es/components/appVersionControl/index.d.ts +0 -4
  115. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
  116. package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +0 -8
  117. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
  118. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
  119. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -16
  120. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
  121. package/es/components/dataSourceComponents/fields/utils.d.ts +0 -3
  122. package/es/components/date-picker/datePickerCpt.d.ts +0 -8
  123. package/es/components/div/index.d.ts +0 -19
  124. package/es/components/pisell-config-provider/index.d.ts +0 -12
  125. package/es/components/pisellAdjustPrice/index.d.ts +0 -4
  126. package/es/components/pisellAvatar/index.d.ts +0 -19
  127. package/es/components/pisellCardList/index.d.ts +0 -73
  128. package/es/components/pisellCheckboxGroup/index.d.ts +0 -36
  129. package/es/components/pisellCustomCheckboxGroup/index.d.ts +0 -16
  130. package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +0 -9
  131. package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +0 -24
  132. package/es/components/pisellDraggable/components/TreeItem/index.d.ts +0 -2
  133. package/es/components/pisellDraggable/index.d.ts +0 -35
  134. package/es/components/pisellDropSort/PisellDropSort.d.ts +0 -5
  135. package/es/components/pisellDropSort/components/SortableItem/index.d.ts +0 -26
  136. package/es/components/pisellDropSort/types.d.ts +0 -58
  137. package/es/components/pisellGoodPassCard/index.d.ts +0 -49
  138. package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +0 -4
  139. package/es/components/pisellInformationEntry/index.d.ts +0 -33
  140. package/es/components/pisellMenu/PisellMenu.d.ts +0 -11
  141. package/es/components/pisellMenu/types.d.ts +0 -27
  142. package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
  143. package/es/components/pisellNavigationMenu/types.d.ts +0 -85
  144. package/es/components/pisellText/components/Amount/index.d.ts +0 -20
  145. package/es/components/pisellWalletPassCard/index.d.ts +0 -84
  146. package/es/components/productCard/components/AmountFooter/index.d.ts +0 -3
  147. package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -3
  148. package/es/components/productCard/components/Header/index.d.ts +0 -3
  149. package/es/components/productCard/components/MultiDay/index.d.ts +0 -3
  150. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  151. package/es/components/productCard/components/Sales/index.d.ts +0 -3
  152. package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -10
  153. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
  154. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  155. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -2
  156. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  157. package/es/components/productCard/components/Time/index.d.ts +0 -3
  158. package/es/components/productCard/index.d.ts +0 -5
  159. package/es/components/productCard/locales.d.ts +0 -81
  160. package/es/components/productCard/status.d.ts +0 -32
  161. package/es/components/productCard/types.d.ts +0 -83
  162. package/es/components/productCard/utils.d.ts +0 -31
  163. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  164. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  165. package/es/components/table/Gallery/index.d.ts +0 -5
  166. package/es/components/table/Table/index.d.ts +0 -4
  167. package/es/components/table/Table/utils.d.ts +0 -173
  168. package/es/components/table/hooks/useTableSetting.d.ts +0 -22
  169. package/es/components/table/hooks/useTransDataSource.d.ts +0 -12
  170. package/es/components/translation/index.d.ts +0 -14
  171. package/es/components/versionModal/index.d.ts +0 -24
  172. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -32
  173. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -21
  174. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  175. package/es/components/walletCard/Guide/index.d.ts +0 -4
  176. package/es/components/walletCard/index.d.ts +0 -67
  177. package/es/index.d.ts +0 -142
  178. package/lib/components/appVersionControl/index.d.ts +0 -4
  179. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
  180. package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +0 -8
  181. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
  182. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
  183. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -16
  184. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
  185. package/lib/components/dataSourceComponents/fields/utils.d.ts +0 -3
  186. package/lib/components/date-picker/datePickerCpt.d.ts +0 -8
  187. package/lib/components/div/index.d.ts +0 -19
  188. package/lib/components/pisell-config-provider/index.d.ts +0 -12
  189. package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
  190. package/lib/components/pisellAvatar/index.d.ts +0 -19
  191. package/lib/components/pisellCardList/index.d.ts +0 -73
  192. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -36
  193. package/lib/components/pisellCustomCheckboxGroup/index.d.ts +0 -16
  194. package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +0 -9
  195. package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +0 -24
  196. package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +0 -2
  197. package/lib/components/pisellDraggable/index.d.ts +0 -35
  198. package/lib/components/pisellDropSort/PisellDropSort.d.ts +0 -5
  199. package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +0 -26
  200. package/lib/components/pisellDropSort/types.d.ts +0 -58
  201. package/lib/components/pisellGoodPassCard/index.d.ts +0 -49
  202. package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +0 -4
  203. package/lib/components/pisellInformationEntry/index.d.ts +0 -33
  204. package/lib/components/pisellMenu/PisellMenu.d.ts +0 -11
  205. package/lib/components/pisellMenu/types.d.ts +0 -27
  206. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
  207. package/lib/components/pisellNavigationMenu/types.d.ts +0 -85
  208. package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
  209. package/lib/components/pisellWalletPassCard/index.d.ts +0 -84
  210. package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -3
  211. package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -3
  212. package/lib/components/productCard/components/Header/index.d.ts +0 -3
  213. package/lib/components/productCard/components/MultiDay/index.d.ts +0 -3
  214. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  215. package/lib/components/productCard/components/Sales/index.d.ts +0 -3
  216. package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -10
  217. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
  218. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  219. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -2
  220. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  221. package/lib/components/productCard/components/Time/index.d.ts +0 -3
  222. package/lib/components/productCard/index.d.ts +0 -5
  223. package/lib/components/productCard/locales.d.ts +0 -81
  224. package/lib/components/productCard/status.d.ts +0 -32
  225. package/lib/components/productCard/types.d.ts +0 -83
  226. package/lib/components/productCard/utils.d.ts +0 -31
  227. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  228. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  229. package/lib/components/table/Gallery/index.d.ts +0 -5
  230. package/lib/components/table/Table/index.d.ts +0 -4
  231. package/lib/components/table/Table/utils.d.ts +0 -173
  232. package/lib/components/table/hooks/useTableSetting.d.ts +0 -22
  233. package/lib/components/table/hooks/useTransDataSource.d.ts +0 -12
  234. package/lib/components/translation/index.d.ts +0 -14
  235. package/lib/components/versionModal/index.d.ts +0 -24
  236. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -32
  237. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -21
  238. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  239. package/lib/components/walletCard/Guide/index.d.ts +0 -4
  240. package/lib/components/walletCard/index.d.ts +0 -67
  241. package/lib/index.d.ts +0 -142
@@ -1,98 +0,0 @@
1
- import React from 'react';
2
- import { DataSourceTableProps } from '../type';
3
- import { OperationItem } from '../type';
4
- interface UseTablePropsProps {
5
- data: any;
6
- originProps: DataSourceTableProps;
7
- openDrawer: (type: OperationItem) => void;
8
- closeDrawer: () => void;
9
- refreshData: () => void;
10
- handleFilterChange: (changedFields: any, allFields: any) => void;
11
- tableRef: any;
12
- }
13
- /**
14
- * 处理table的props
15
- * 转换title
16
- * @param props
17
- * @returns
18
- */
19
- declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
21
- pagination: {
22
- total: number;
23
- current: number;
24
- pageSize: number;
25
- size: string;
26
- showSizeChanger: boolean;
27
- };
28
- columns: import("./useColumns").Column[];
29
- subTitle: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
30
- buttons: any[] | null;
31
- filter: JSX.Element | null;
32
- onRow: (record: any) => any;
33
- actionButtons: any[] | null;
34
- titleButtons?: {
35
- show: boolean;
36
- maxCount: number;
37
- items: OperationItem[];
38
- } | undefined;
39
- tableButtons?: {
40
- show: boolean;
41
- maxCount: number;
42
- items: OperationItem[];
43
- } | undefined;
44
- operation?: {
45
- show: boolean;
46
- title: string; /**
47
- * 处理table的props
48
- * 转换title
49
- * @param props
50
- * @returns
51
- */
52
- width: number;
53
- align: "center" | "left" | "right";
54
- fixed: false | "left" | "right";
55
- type: "button" | "link";
56
- items: OperationItem[];
57
- } | undefined;
58
- operationContent?: {
59
- [key: string]: React.ReactNode;
60
- } | undefined;
61
- dataSource: import("../../provider/dataSource/DataSourceContext").DataSourceType;
62
- search?: {
63
- show: boolean;
64
- placeholder: string;
65
- } | undefined;
66
- __designMode: string;
67
- componentId: string;
68
- clickToDetail?: {
69
- show: boolean;
70
- useCustomAction: boolean;
71
- actionType: string;
72
- openMode: "modal" | "drawer";
73
- openContentSize: "large" | "middle" | "small";
74
- openTitle: string;
75
- key: string;
76
- } | undefined;
77
- filterBy?: Record<string, any> | undefined;
78
- sortBy: string;
79
- tabs?: {
80
- show: boolean;
81
- type: string;
82
- items: {
83
- name: string;
84
- filterBy: Record<string, any>;
85
- sortBy: string;
86
- }[];
87
- } | undefined;
88
- onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
89
- onDeleteFinish?: ((record: Record<string, any>) => void) | undefined;
90
- extraParams?: {
91
- list?: Record<string, any> | undefined;
92
- get?: Record<string, any> | undefined;
93
- update?: Record<string, any> | undefined;
94
- create?: Record<string, any> | undefined;
95
- destroy?: Record<string, any> | undefined;
96
- } | undefined;
97
- };
98
- export default useTableProps;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { InputProps } from 'antd';
3
- import { ModeType } from "../../dataSourceForm/type";
4
- declare type PhoneValue = string | {
5
- phone: string;
6
- countryCallingCode: string;
7
- };
8
- export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
9
- renderMode: ModeType;
10
- value?: PhoneValue;
11
- onChange?: (value: PhoneValue) => void;
12
- returnFormat?: 'string' | 'object';
13
- inputRef?: any;
14
- }
15
- declare const MobileNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
16
- export default MobileNumberInputWithMode;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { InputProps } from 'antd';
3
- import { ModeType } from "../../dataSourceForm/type";
4
- declare type PhoneValue = string | {
5
- phone: string;
6
- countryCallingCode: string;
7
- };
8
- export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
9
- renderMode: ModeType;
10
- value?: PhoneValue;
11
- onChange?: (value: PhoneValue) => void;
12
- returnFormat?: 'string' | 'object';
13
- inputRef?: any;
14
- }
15
- declare const PhoneNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
16
- export default PhoneNumberInputWithMode;
@@ -1,3 +0,0 @@
1
- import { FormFieldFilterFuncMapType } from './type';
2
- declare const formFieldFilterFuncMap: FormFieldFilterFuncMapType;
3
- export { formFieldFilterFuncMap };
@@ -1,8 +0,0 @@
1
- import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
2
- import { Dayjs } from 'dayjs';
3
- import './index.less';
4
- interface DatePickerCptProps extends PickerDateProps<Dayjs> {
5
- showTime: any;
6
- }
7
- declare const DatePickerCpt: (props: DatePickerCptProps) => JSX.Element;
8
- export default DatePickerCpt;
@@ -1,19 +0,0 @@
1
- import React from "react";
2
- export interface DivProps {
3
- /** 基础类名,默认为 'div' */
4
- baseClassName?: string;
5
- /** 自定义类名,会与 baseClassName 合并 */
6
- className?: string;
7
- /** 渲染函数,优先级高于 children */
8
- render?: () => React.ReactNode;
9
- /** 子元素 */
10
- children?: React.ReactNode;
11
- /** 内联样式 */
12
- style?: React.CSSProperties;
13
- /** 收集其他需要传递给 div 的 props */
14
- others?: any;
15
- /** 其他自定义属性 */
16
- [key: string]: any;
17
- }
18
- declare const _default: React.NamedExoticComponent<DivProps>;
19
- export default _default;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { PisellContextType } from './context';
3
- interface PisellConfigProviderType {
4
- platform?: PisellContextType['platform'];
5
- children: React.ReactNode;
6
- /** 货币符号 */
7
- symbol?: string;
8
- /** 当前语言环境 */
9
- locale?: string;
10
- }
11
- declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
12
- export default PisellConfigProvider;
@@ -1,4 +0,0 @@
1
- import './index.less';
2
- import { PisellAdjustPriceProps } from './type';
3
- declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
4
- export default PisellAdjustPrice;
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import type { AvatarProps } from 'antd';
3
- import './index.less';
4
- export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
5
- export interface PisellAvatarProps extends Omit<AvatarProps, 'size' | 'shape'> {
6
- shape?: 'circle' | 'square';
7
- size?: AvatarSize;
8
- src?: string;
9
- alt?: string;
10
- icon?: React.ReactNode;
11
- children?: React.ReactNode;
12
- className?: string;
13
- style?: React.CSSProperties;
14
- useTextAvatar?: boolean;
15
- borderRadius?: number;
16
- onError?: () => boolean;
17
- }
18
- declare const PisellAvatar: React.FC<PisellAvatarProps>;
19
- export default PisellAvatar;
@@ -1,73 +0,0 @@
1
- import React from 'react';
2
- import { PisellCheckboxGroupProps } from '../pisellCheckboxGroup';
3
- import { PisellContextType } from '../pisell-config-provider/context';
4
- import { PisellWalletPassCardProps } from '../pisellWalletPassCard';
5
- import './index.less';
6
- export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'options'> {
7
- platform?: PisellContextType['platform'];
8
- /** 当用户查看完所有记录时,底部会显示此消息 */
9
- endMessage?: React.ReactNode;
10
- /** 加载下次数据时的加载站位 */
11
- loader?: React.ReactNode;
12
- /** 是否有更多数据 */
13
- hasMore: boolean;
14
- /** 加载更多数据回调 */
15
- loadMoreData?: () => Promise<void>;
16
- /** 当前list数据 */
17
- data: PisellWalletPassCardProps[];
18
- /** list空数据时展示内容 */
19
- empty?: React.ReactNode;
20
- /** 是否展示空状态 */
21
- showEmpty?: boolean;
22
- /** 是否展示卡片名称 */
23
- showName?: boolean;
24
- /** 是否展示店铺名称 */
25
- showStoreName?: boolean;
26
- /** 是否展示核销金额 */
27
- showRedeem?: boolean;
28
- /** 是否展示余额 */
29
- showBalance?: boolean;
30
- /** 是否展示编码 */
31
- showCode?: boolean;
32
- /** 是否展示到期时间 */
33
- showValidDate?: boolean;
34
- /** 是否展示详情按钮 */
35
- showDetail?: boolean;
36
- /** 是否展示二维码 */
37
- showQrCode?: boolean;
38
- /** 是否展示封面图 */
39
- showCover?: boolean;
40
- /** 是否余额货币单位 */
41
- showBalanceSymbol?: boolean;
42
- /** 卡片大小 */
43
- type?: 'default' | 'mini';
44
- /** 展示操作按钮 */
45
- showActions?: boolean;
46
- /** 操作按钮配置 */
47
- actions?: {
48
- /** 按钮展示方式 */
49
- layout: 'expanded' | 'collapsed';
50
- /** detail 按钮配置 */
51
- detail?: {
52
- visible: boolean;
53
- iconColor: string;
54
- };
55
- /** edit按钮配置 */
56
- edit?: {
57
- visible: boolean;
58
- iconColor: string;
59
- dialogTitle: string;
60
- enableDialog: boolean;
61
- fields: {
62
- name: string;
63
- label: string;
64
- };
65
- };
66
- };
67
- /** 编辑编辑按钮后,弹窗展示之前 */
68
- beforeEdit?: (value: any, index: number) => Promise<any> | boolean | void;
69
- /** 编辑弹窗点击提交 */
70
- onConfirmEdit?: (value: any, index: number) => void;
71
- }
72
- declare const _default: React.NamedExoticComponent<PisellCardListProps>;
73
- export default _default;
@@ -1,36 +0,0 @@
1
- import React from 'react';
2
- import { PisellContextType } from '../pisell-config-provider/context';
3
- import './index.less';
4
- export interface PisellCheckboxGroupOption {
5
- label: string;
6
- value: string;
7
- disabled?: boolean;
8
- [key: string]: any;
9
- }
10
- declare type PisellCheckboxGroupValue = string | string[] | any;
11
- export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
12
- platform?: PisellContextType['platform'];
13
- direction?: 'horizontal' | 'vertical';
14
- fullWidth?: boolean;
15
- gap?: number;
16
- padding?: number;
17
- options: PisellCheckboxGroupOption[];
18
- onChange?: (value: PisellCheckboxGroupValue, item: PisellCheckboxGroupOption) => void;
19
- value?: PisellCheckboxGroupValue;
20
- renderOption?: (option: PisellCheckboxGroupOption, active: boolean, index: number) => React.ReactNode;
21
- rowKey?: string;
22
- mode?: 'multiple' | 'single';
23
- iconPosition?: 'left' | 'right' | 'hide';
24
- optionClassName?: string;
25
- optionActiveClassName?: string;
26
- }
27
- /**
28
- * @title: PisellCheckboxGroup
29
- * @description: 选中组件
30
- * @param {PisellCheckboxGroupProps} props
31
- * @return {*}
32
- * @Author: zhiwei.Wang
33
- * @Date: 2024-08-16 10:34
34
- */
35
- declare const PisellCheckboxGroup: (props: PisellCheckboxGroupProps) => JSX.Element;
36
- export default PisellCheckboxGroup;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface PisellCustomCheckboxGroupProps {
4
- dataSource?: any[];
5
- disabled?: boolean;
6
- allowAdd?: boolean;
7
- isMultiple?: boolean;
8
- id?: string | string[];
9
- onClick?: (value: any) => void;
10
- onAdd?: () => void;
11
- renderAddItem?: (item: any) => React.ReactNode;
12
- [key: string]: any;
13
- className?: string;
14
- }
15
- declare const PisellCustomCheckboxGroup: React.FC<PisellCustomCheckboxGroupProps>;
16
- export default PisellCustomCheckboxGroup;
@@ -1,9 +0,0 @@
1
- import type { UniqueIdentifier } from '@dnd-kit/core';
2
- import React from 'react';
3
- import { Props as TreeItemProps } from './TreeItem';
4
- interface Props extends TreeItemProps {
5
- id: UniqueIdentifier;
6
- __designMode?: string;
7
- }
8
- declare const _default: React.MemoExoticComponent<({ id, depth, ...props }: Props) => JSX.Element>;
9
- export default _default;
@@ -1,24 +0,0 @@
1
- import React, { HTMLAttributes } from 'react';
2
- import type { TreeItem as TreeItemType } from '../../types';
3
- import './TreeItem.less';
4
- export interface Props extends Omit<HTMLAttributes<HTMLLIElement>, 'id'> {
5
- childCount?: number;
6
- clone?: boolean;
7
- collapsed?: boolean;
8
- depth: number;
9
- disableInteraction?: boolean;
10
- disableSelection?: boolean;
11
- ghost?: boolean;
12
- handleProps?: any;
13
- indicator?: boolean;
14
- indentationWidth: number;
15
- onCollapse?(): void;
16
- onRemove?(): void;
17
- wrapperRef?(node: HTMLLIElement): void;
18
- item: TreeItemType;
19
- renderItem?(item: Props, ref: React.ForwardedRef<HTMLDivElement>): React.ReactNode;
20
- __designMode?: string;
21
- isBlocked?: boolean;
22
- isError?: boolean;
23
- }
24
- export declare const TreeItem: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
@@ -1,2 +0,0 @@
1
- export { TreeItem } from './TreeItem';
2
- export { default as SortableTreeItem } from './SortableTreeItem';
@@ -1,35 +0,0 @@
1
- /**
2
- * 可拖拽树形组件
3
- * 基于@dnd-kit库实现,支持拖拽排序、展开折叠、删除等功能
4
- */
5
- import { UniqueIdentifier } from '@dnd-kit/core';
6
- import React from 'react';
7
- import type { FlattenedItem, TreeItem, TreeItems } from './types';
8
- import type { Props as TreeItemProps } from './components/TreeItem/TreeItem';
9
- interface Props {
10
- /** 是否支持折叠功能 */
11
- collapsible?: boolean;
12
- /** 初始树形数据,默认使用 initialItems */
13
- value?: TreeItems;
14
- /** 缩进宽度,控制子节点的缩进距离 */
15
- indentationWidth?: number;
16
- /** 是否显示拖拽指示器 */
17
- indicator?: boolean;
18
- /** 是否支持删除节点功能 */
19
- removable?: boolean;
20
- /** 自定义渲染树节点 */
21
- renderItem?: (item: TreeItemProps, ref: React.RefObject<HTMLDivElement>) => React.ReactNode;
22
- /** 树形数据变化回调 */
23
- onChange?: (items: TreeItems) => void;
24
- /** 删除节点前 */
25
- onRemoveBefore?: (item: TreeItem) => Promise<boolean>;
26
- /** 设计模式 */
27
- __designMode?: string;
28
- /** 最大层级 */
29
- maxLevel?: number;
30
- /** 自定义拖拽判断函数,返回false时阻止拖拽 */
31
- canDrop?: (dragItem: FlattenedItem, dropTarget: FlattenedItem, parentId: UniqueIdentifier | null, parentNode: any) => boolean;
32
- }
33
- export declare function SortableTree({ collapsible, value, indicator, indentationWidth, removable, renderItem, onChange, onRemoveBefore, __designMode, maxLevel, canDrop, }: Props): JSX.Element;
34
- declare const Demo: (props: Props) => JSX.Element;
35
- export default Demo;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { PisellDropSortProps } from './types';
3
- import './PisellDropSort.less';
4
- declare const PisellDropSort: React.FC<PisellDropSortProps>;
5
- export default PisellDropSort;
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import type { Props as TreeItem } from '../../../pisellDraggable/components/TreeItem/TreeItem';
3
- import './index.less';
4
- interface SortableItemProps {
5
- itemProps: TreeItem;
6
- render?: (itemProps: TreeItem) => React.ReactNode;
7
- domRef: React.RefObject<HTMLDivElement>;
8
- allowAddChild?: boolean;
9
- allowDelete?: boolean;
10
- allowIsShow?: boolean;
11
- allowDrag?: boolean;
12
- disabled?: boolean;
13
- onAdd?: (itemProps: TreeItem) => void;
14
- onDelete?: (itemProps: TreeItem) => void;
15
- showBorder?: boolean;
16
- spacing?: number;
17
- maxLevel?: number;
18
- /** 设计模式 */
19
- __designMode?: string;
20
- /** 是否自定义操作 */
21
- isCustomAction?: boolean;
22
- /** 获取item样式 */
23
- getItemStyle?: (itemProps: TreeItem) => React.CSSProperties;
24
- }
25
- declare const SortableItem: (props: SortableItemProps) => JSX.Element;
26
- export default SortableItem;
@@ -1,58 +0,0 @@
1
- import { CSSProperties } from 'react';
2
- import type { Props as TreeItem } from '../pisellDraggable/components/TreeItem/TreeItem';
3
- import type { TreeItem as TreeItemType } from '../pisellDraggable/types';
4
- export interface DropSortItem extends TreeItemType {
5
- [key: string]: any;
6
- }
7
- export interface PisellDropSortProps {
8
- /** value */
9
- value: DropSortItem[];
10
- /** 允许拖拽 */
11
- allowDrag?: boolean;
12
- /** 允许删除 */
13
- allowDelete?: boolean;
14
- /** 允许添加子节点 */
15
- allowAddChild?: boolean;
16
- /** 允许添加根节点 */
17
- allowAddRoot?: boolean;
18
- /** 是否允许显示隐藏 */
19
- allowIsShow?: boolean;
20
- /** 是否禁用 */
21
- disabled?: boolean;
22
- /** 节点间距 */
23
- spacing?: number;
24
- /** 最大层级数 */
25
- maxLevel?: number;
26
- /** 是否显示边框 */
27
- showBorder?: boolean;
28
- /** 样式 */
29
- style?: CSSProperties;
30
- /** 类名 */
31
- className?: string;
32
- /** 数据源变化回调 */
33
- onChange?: (items: DropSortItem[]) => void;
34
- /** 删除节点回调 */
35
- onDelete?: (itemProps: TreeItem) => void;
36
- /** 添加节点回调 */
37
- onAdd?: (itemProps: TreeItem) => void;
38
- /** 自定义渲染节点 */
39
- renderItem?: (itemProps: TreeItem) => React.ReactNode;
40
- /** 添加根节点回调 */
41
- onAddRoot?: () => void;
42
- /** 左侧自定义内容 */
43
- leftContent?: React.ReactNode;
44
- /** 右侧自定义内容 */
45
- rightContent?: React.ReactNode;
46
- /** 空状态自定义内容 */
47
- emptyContent?: React.ReactNode;
48
- /** 设计模式 */
49
- __designMode?: string;
50
- /** 是否自定义操作 */
51
- isCustomAction?: boolean;
52
- /** 获取item样式 */
53
- getItemStyle?: (itemProps: TreeItem) => React.CSSProperties;
54
- /** 自定义拖拽判断函数,返回false时阻止拖拽 */
55
- canDrop?: (dragItem: DropSortItem, dropTarget: DropSortItem, parentId: string | number | null) => boolean;
56
- /** 节点缩进宽度 */
57
- indentationWidth?: number;
58
- }
@@ -1,49 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface ApplicableProductDetails {
4
- amount: string;
5
- type: string;
6
- resource_id: number;
7
- title: string;
8
- original_amount: string;
9
- }
10
- interface Discount {
11
- id: number;
12
- product_name: string;
13
- encoded: string;
14
- code: string;
15
- tag: string;
16
- expire_time?: string;
17
- product_id: number;
18
- relation_type: string;
19
- par_value: string;
20
- used_par_value: string;
21
- limit_status: string;
22
- limited_relation_product_data: any;
23
- balance: string;
24
- format_title: any;
25
- product: any;
26
- savedAmount: number;
27
- isDisabled: boolean;
28
- isSelected?: boolean;
29
- isAvailable?: boolean;
30
- isUsed?: boolean;
31
- applicableProductIds?: number[];
32
- applicableProductDetails: ApplicableProductDetails[];
33
- appliedProductDetails: any[];
34
- }
35
- export interface PisellGoodPassCardProps {
36
- /**数据源 */
37
- dataSource: Array<Discount>;
38
- /**事件 */
39
- onChange?: (current: {
40
- id: string | number;
41
- isSelected: boolean;
42
- }) => void;
43
- /**样式 */
44
- style: React.CSSProperties;
45
- /**快捷展示排序 */
46
- mixedSort?: (val: Discount[]) => Discount[];
47
- }
48
- declare const index: (props: PisellGoodPassCardProps) => JSX.Element;
49
- export default index;
@@ -1,4 +0,0 @@
1
- export declare const useNativeScanner: (onChange?: ((val: string) => void) | undefined) => {
2
- activeNativeScanner: () => void;
3
- isTerminal: any;
4
- };
@@ -1,33 +0,0 @@
1
- import React from 'react';
2
- import { PisellContextType } from '../pisell-config-provider/context';
3
- import './index.less';
4
- export declare type EntryModeType = {
5
- /**
6
- * 录入模式名称
7
- * scanCode: 扫码录入
8
- * input: 手动录入
9
- * scanner: 扫码枪录入
10
- * nfc: NFC录入
11
- */
12
- type: 'scanCode' | 'input' | 'scanner' | 'nfc';
13
- /**
14
- * 录入模式文案 没有使用默认文案
15
- */
16
- name?: string;
17
- };
18
- export interface PisellInformationEntryProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onChange'> {
19
- /** 平台 */
20
- platform?: PisellContextType['platform'];
21
- /** 录入模式 */
22
- entryModes: EntryModeType[];
23
- /** 标题文案 */
24
- title?: React.ReactNode;
25
- /** 搜索框描述文案 */
26
- searchDescribe?: React.ReactNode;
27
- /** 录入信息值改变 */
28
- onChange?: (val: string) => void;
29
- /** 录入类型切换时候触发的 */
30
- onChangeType?: (val: null | EntryModeType['type']) => void;
31
- }
32
- declare const PisellInformationEntry: (props: PisellInformationEntryProps) => JSX.Element;
33
- export default PisellInformationEntry;
@@ -1,11 +0,0 @@
1
- import { Menu as AntdMenu } from 'antd';
2
- import React from 'react';
3
- import './PisellMenu.less';
4
- import type { PisellMenuProps } from './types';
5
- declare type PisellMenuComponent = React.FC<PisellMenuProps> & {
6
- Item: typeof AntdMenu.Item;
7
- SubMenu: typeof AntdMenu.SubMenu;
8
- ItemGroup: typeof AntdMenu.ItemGroup;
9
- };
10
- declare const PisellMenu: PisellMenuComponent;
11
- export default PisellMenu;
@@ -1,27 +0,0 @@
1
- /// <reference types="react" />
2
- import type { MenuProps } from 'antd';
3
- export interface PisellMenuProps extends Omit<MenuProps, 'items'> {
4
- className?: string;
5
- style?: React.CSSProperties;
6
- mode?: 'vertical' | 'horizontal' | 'inline';
7
- theme?: 'light' | 'dark';
8
- defaultOpenKeys?: string[];
9
- defaultSelectedKeys?: string[];
10
- inlineCollapsed?: boolean;
11
- openKeys?: string[];
12
- selectedKeys?: string[];
13
- onOpenChange?: (openKeys: string[]) => void;
14
- dataSource?: any;
15
- __designMode?: string;
16
- other?: PisellMenuProps;
17
- }
18
- export interface MenuItemType {
19
- key: string;
20
- label: string;
21
- path: string;
22
- children?: MenuItemType[];
23
- icon?: string | React.ReactNode;
24
- hide?: boolean;
25
- type?: 'group' | 'divider';
26
- isGroup?: boolean;
27
- }
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import type { PisellNavigationMenuProps } from './types';
3
- import './PisellNavigationMenu.less';
4
- declare const PisellNavigationMenu: React.FC<PisellNavigationMenuProps>;
5
- export default PisellNavigationMenu;