@pisell/materials 2.2.118 → 2.2.120

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 (203) hide show
  1. package/build/lowcode/assets-daily.json +13 -13
  2. package/build/lowcode/assets-dev.json +4 -4
  3. package/build/lowcode/assets-prod.json +13 -13
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +7 -7
  6. package/build/lowcode/preview.js +150 -164
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +27 -40
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +27 -40
  11. package/es/components/appVersionControl/index.d.ts +1 -0
  12. package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
  13. package/es/components/auto-resize-text/index.d.ts +6 -0
  14. package/es/components/batch-editor/index.d.ts +0 -1
  15. package/es/components/cardPro/index.d.ts +3 -0
  16. package/es/components/dataSourceComponents/dataSourceForm/utils.js +3 -1
  17. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  18. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  19. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  20. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  21. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
  22. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
  23. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
  24. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
  25. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
  26. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.js +2 -0
  27. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +25 -0
  28. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
  29. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
  30. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
  31. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  32. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
  33. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  34. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -1
  35. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +5 -0
  36. package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  37. package/es/components/filter/index.d.ts +1 -0
  38. package/es/components/iconfont/index.d.ts +8 -0
  39. package/es/components/iconfont/index.js +1 -1
  40. package/es/components/keyboard/index.d.ts +22 -0
  41. package/es/components/page/index.d.ts +1 -0
  42. package/es/components/page/index.js +5 -2
  43. package/es/components/pisell-config-provider/context.d.ts +22 -0
  44. package/es/components/pisell-config-provider/index.js +0 -1
  45. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  46. package/es/components/pisellAdjustPrice/type.d.ts +22 -0
  47. package/es/components/pisellCardList/index.d.ts +4 -0
  48. package/es/components/pisellCardList/index.js +5 -1
  49. package/es/components/pisellLoading/index.d.ts +1 -0
  50. package/es/components/pisellQRScanner/index.d.ts +24 -0
  51. package/es/components/pisellToast/squareToast/index.d.ts +15 -0
  52. package/es/components/pisellToast/squareToast/methods.d.ts +13 -0
  53. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
  54. package/es/components/pisellToast/squareToast/toast.d.ts +25 -0
  55. package/es/components/pisellWalletPassCard/index.d.ts +4 -0
  56. package/es/components/pisellWalletPassCard/index.js +17 -4
  57. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  58. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  59. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
  60. package/es/components/productCard/components/Action/index.d.ts +3 -0
  61. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  62. package/es/components/productCard/components/Time/index.d.ts +1 -0
  63. package/es/components/productCard/locales.d.ts +84 -0
  64. package/es/components/select/index.d.ts +9 -0
  65. package/es/components/select-time/index.d.ts +0 -1
  66. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  67. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +7 -0
  68. package/es/components/table/Table/fields/image/index.d.ts +0 -1
  69. package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  70. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  71. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  72. package/es/components/table/Table/index.js +7 -3
  73. package/es/components/table/Table/utils.d.ts +1 -1
  74. package/es/components/table/hooks/useTransColumns.d.ts +1 -1
  75. package/es/components/table/hooks/useTransColumns.js +1 -1
  76. package/es/components/table/index.js +3 -1
  77. package/es/components/table/serve.d.ts +13 -0
  78. package/es/components/tabs/index.d.ts +17 -0
  79. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  80. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
  81. package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  82. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  83. package/es/components/virtual-keyboard/Number/types.d.ts +26 -0
  84. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  85. package/es/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
  86. package/es/locales/en-US.d.ts +1 -0
  87. package/es/locales/en-US.js +1 -0
  88. package/es/locales/zh-CN.d.ts +1 -0
  89. package/es/locales/zh-CN.js +1 -0
  90. package/es/locales/zh-TW.d.ts +1 -0
  91. package/es/locales/zh-TW.js +1 -0
  92. package/lib/components/appVersionControl/index.d.ts +1 -0
  93. package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
  94. package/lib/components/auto-resize-text/index.d.ts +6 -0
  95. package/lib/components/batch-editor/index.d.ts +0 -1
  96. package/lib/components/cardPro/index.d.ts +3 -0
  97. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
  98. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  99. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  100. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  101. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  102. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
  103. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
  104. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
  105. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
  106. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
  107. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.js +2 -0
  108. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +25 -0
  109. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
  110. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
  111. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
  112. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  113. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
  114. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  115. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -1
  116. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +5 -0
  117. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  118. package/lib/components/filter/index.d.ts +1 -0
  119. package/lib/components/iconfont/index.d.ts +8 -0
  120. package/lib/components/iconfont/index.js +1 -1
  121. package/lib/components/keyboard/index.d.ts +22 -0
  122. package/lib/components/page/index.d.ts +1 -0
  123. package/lib/components/page/index.js +3 -2
  124. package/lib/components/pisell-config-provider/context.d.ts +22 -0
  125. package/lib/components/pisell-config-provider/index.js +0 -1
  126. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  127. package/lib/components/pisellAdjustPrice/type.d.ts +22 -0
  128. package/lib/components/pisellCardList/index.d.ts +4 -0
  129. package/lib/components/pisellCardList/index.js +5 -1
  130. package/lib/components/pisellLoading/index.d.ts +1 -0
  131. package/lib/components/pisellQRScanner/index.d.ts +24 -0
  132. package/lib/components/pisellToast/squareToast/index.d.ts +15 -0
  133. package/lib/components/pisellToast/squareToast/methods.d.ts +13 -0
  134. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
  135. package/lib/components/pisellToast/squareToast/toast.d.ts +25 -0
  136. package/lib/components/pisellWalletPassCard/index.d.ts +4 -0
  137. package/lib/components/pisellWalletPassCard/index.js +12 -2
  138. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  139. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  140. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
  141. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  142. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  143. package/lib/components/productCard/components/Time/index.d.ts +1 -0
  144. package/lib/components/productCard/locales.d.ts +84 -0
  145. package/lib/components/select/index.d.ts +9 -0
  146. package/lib/components/select-time/index.d.ts +0 -1
  147. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  148. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +7 -0
  149. package/lib/components/table/Table/fields/image/index.d.ts +0 -1
  150. package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  151. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  152. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  153. package/lib/components/table/Table/index.js +8 -4
  154. package/lib/components/table/Table/utils.d.ts +1 -1
  155. package/lib/components/table/hooks/useTransColumns.d.ts +1 -1
  156. package/lib/components/table/hooks/useTransColumns.js +1 -1
  157. package/lib/components/table/index.js +3 -1
  158. package/lib/components/table/serve.d.ts +13 -0
  159. package/lib/components/tabs/index.d.ts +17 -0
  160. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  161. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
  162. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  163. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  164. package/lib/components/virtual-keyboard/Number/types.d.ts +26 -0
  165. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  166. package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
  167. package/lib/locales/en-US.d.ts +1 -0
  168. package/lib/locales/en-US.js +1 -0
  169. package/lib/locales/zh-CN.d.ts +1 -0
  170. package/lib/locales/zh-CN.js +1 -0
  171. package/lib/locales/zh-TW.d.ts +1 -0
  172. package/lib/locales/zh-TW.js +1 -0
  173. package/package.json +2 -2
  174. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -15
  175. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
  176. package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -149
  177. package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -31
  178. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
  179. package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -119
  180. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -12
  181. package/es/components/drag-sort-tree/index.d.ts +0 -4
  182. package/es/components/login-and-register/index.d.ts +0 -82
  183. package/es/components/pisellEmpty/index.d.ts +0 -19
  184. package/es/components/pisellQrcode/index.d.ts +0 -10
  185. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  186. package/es/components/table/types.d.ts +0 -268
  187. package/es/components/versionModal/index.d.ts +0 -23
  188. package/es/components/virtualInput/index.d.ts +0 -24
  189. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -15
  190. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
  191. package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -149
  192. package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -31
  193. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
  194. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -119
  195. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -12
  196. package/lib/components/drag-sort-tree/index.d.ts +0 -4
  197. package/lib/components/login-and-register/index.d.ts +0 -82
  198. package/lib/components/pisellEmpty/index.d.ts +0 -19
  199. package/lib/components/pisellQrcode/index.d.ts +0 -10
  200. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  201. package/lib/components/table/types.d.ts +0 -268
  202. package/lib/components/versionModal/index.d.ts +0 -23
  203. package/lib/components/virtualInput/index.d.ts +0 -24
@@ -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,9 @@
1
+ import React from 'react';
2
+ import { Select as OriginalSelect } from 'antd';
3
+ import type { SelectProps } from 'antd';
4
+ import './index.less';
5
+ interface CompoundedComponent extends React.ForwardRefExoticComponent<SelectProps> {
6
+ Option: typeof OriginalSelect.Option;
7
+ }
8
+ declare const Select: CompoundedComponent;
9
+ export default Select;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
3
2
  import { PopoverProps, TimePickerProps } from "antd";
4
3
  import "./index.less";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type ColumnsSettingProps = {
3
2
  value?: Record<string, any>[];
4
3
  onChange?: (val: Record<string, any>[]) => void;
@@ -0,0 +1,7 @@
1
+ interface IExportParams {
2
+ type: string;
3
+ originDataSource: any[];
4
+ currentDataSource: any[];
5
+ }
6
+ export declare const batchExport: (exportParams: IExportParams, exportImport: any) => Promise<true | undefined>;
7
+ export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -71,10 +71,13 @@ var GridViewTable = ({
71
71
  payload: newData
72
72
  });
73
73
  });
74
- const handleResize = (index) => (e, { size }) => {
75
- const nextColumns = [...columns];
76
- nextColumns[index] = {
77
- ...nextColumns[index],
74
+ const handleResize = (index, record) => (e, { size }) => {
75
+ const findIndex = column_setting.findIndex(
76
+ (item) => item.dataIndex === record.dataIndex
77
+ );
78
+ const nextColumns = [...column_setting];
79
+ nextColumns[findIndex] = {
80
+ ...nextColumns[findIndex],
78
81
  width: size.width
79
82
  };
80
83
  form.setFieldValue("column_setting", nextColumns);
@@ -108,6 +111,7 @@ var GridViewTable = ({
108
111
  const components = (0, import_useGenTableComponents.default)({
109
112
  form
110
113
  });
114
+ console.log(columns, "columns12");
111
115
  const showTotal = (0, import_react.useCallback)(
112
116
  (total, range, pageSize) => {
113
117
  let start = range[0] - 1;
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
155
155
  sort?: SortType | undefined;
156
156
  mode: "" | "localStorage" | "remote";
157
157
  currentViewMode: ModeType;
158
- }) => ("filters" | "column_setting" | "gallery_setting" | "order_by" | "group_by" | "view_mode" | "filter_setting")[];
158
+ }) => ("column_setting" | "gallery_setting" | "order_by" | "group_by" | "filters" | "view_mode" | "filter_setting")[];
159
159
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
160
160
  export declare const stringify: (obj: Record<string, any>) => string;
161
161
  export {};
@@ -4,7 +4,7 @@ declare type UseTransColumnsProps = {
4
4
  form: FormInstance;
5
5
  localPagination: boolean;
6
6
  handleSave?: (row: Record<string, any>) => void;
7
- handleResize?: (index: number) => (e: any, p2: any) => void;
7
+ handleResize?: (index: number, record: Record<string, any>) => (e: any, p2: any) => void;
8
8
  dragSort: boolean;
9
9
  bordered: boolean;
10
10
  };
@@ -196,7 +196,7 @@ var useTransColumns = (params) => {
196
196
  onHeaderCell: (record) => ({
197
197
  record,
198
198
  ...item,
199
- onResize: handleResize == null ? void 0 : handleResize(index),
199
+ onResize: handleResize == null ? void 0 : handleResize(index, record),
200
200
  position
201
201
  })
202
202
  };
@@ -266,7 +266,9 @@ var GridView = (0, import_model.Provider)(
266
266
  try {
267
267
  if (!tableId) return {};
268
268
  const setting = (0, import_utils.getTableSettingByCurrentViewMode)(tableId, currentViewMode);
269
- return (setting == null ? void 0 : setting.filters) || {};
269
+ const filters = (setting == null ? void 0 : setting.filters) || {};
270
+ filters.order_by = (setting == null ? void 0 : setting.order_by) || "";
271
+ return filters;
270
272
  } catch (e) {
271
273
  return {};
272
274
  }
@@ -0,0 +1,13 @@
1
+ declare type exportParams = {
2
+ ids?: Array<string | number>;
3
+ file_name?: string;
4
+ form_id?: string | number;
5
+ code?: string;
6
+ url?: string;
7
+ };
8
+ export declare const exportData: (params: exportParams) => Promise<any>;
9
+ export declare const batchImport: (params: any) => Promise<any>;
10
+ export declare const importTemplate: (params: exportParams) => Promise<any>;
11
+ export declare const getExportFile: (params: any) => Promise<any>;
12
+ export declare const getImportLog: (params: any) => Promise<any>;
13
+ export {};
@@ -0,0 +1,17 @@
1
+ import { Component } from 'react';
2
+ import { TabsProps } from 'antd';
3
+ import './index.less';
4
+ declare class Tabs extends Component<any> {
5
+ state: {
6
+ activeKey: any;
7
+ };
8
+ componentDidMount(): void;
9
+ componentDidUpdate(prevProps: Readonly<any>): void;
10
+ private _handleChange;
11
+ setActiveKey: (key: string) => void;
12
+ getActiveKey: () => any;
13
+ renderIconLabelTabBar: TabsProps['renderTabBar'];
14
+ filterHiddenTabs: (tabs: any[]) => any[];
15
+ render(): JSX.Element;
16
+ }
17
+ export default Tabs;
@@ -0,0 +1,32 @@
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
+ };
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import './Presets.less';
3
+ export declare type PresetsItem = {
4
+ label: string;
5
+ value: number | string;
6
+ style?: React.CSSProperties;
7
+ onClick?: (item: PresetsItem, _next: () => void) => void;
8
+ render?: (item: PresetsItem) => React.ReactNode;
9
+ };
10
+ export interface PresetsProps {
11
+ presets?: PresetsItem[];
12
+ onChange: (val: string) => void;
13
+ }
14
+ declare const Presets: (props: PresetsProps) => JSX.Element | null;
15
+ export default Presets;
@@ -0,0 +1,21 @@
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;
@@ -0,0 +1,32 @@
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
+ };
@@ -0,0 +1,26 @@
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
+ defaultSelect?: boolean;
12
+ selectType?: 'light' | 'dark';
13
+ backgroundColor?: string;
14
+ containerBackgroundColor?: string;
15
+ buttonBackgroundColor?: string;
16
+ textColor?: string;
17
+ resetButtonBackgroundColor?: string;
18
+ resetButtonTextColor?: string;
19
+ isDoneButtonFollowTheme?: boolean;
20
+ doneButtonBackgroundColor?: string;
21
+ doneButtonTextColor?: string;
22
+ keyboardBackgroundColor?: string;
23
+ keyboardButtonBackgroundColor?: string;
24
+ keyboardButtonTextColor?: string;
25
+ keyboardButtonHoverColor?: string;
26
+ }
@@ -0,0 +1,13 @@
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;
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface BaseVirtualInputProps {
4
+ /** 输入值 */
5
+ value?: string | React.ReactNode;
6
+ /** 占位符 */
7
+ placeholder?: string;
8
+ /** 是否自动聚焦 */
9
+ autoFocus?: boolean;
10
+ /** 是否禁用 */
11
+ disabled?: boolean;
12
+ /** 组件高度,默认60px */
13
+ height?: number | string;
14
+ /** 字体大小,默认48px,如果不设置会根据高度自动计算 */
15
+ fontSize?: number | string;
16
+ /** 聚焦回调 */
17
+ onFocus?: () => void;
18
+ /** 失焦回调 */
19
+ onBlur?: () => void;
20
+ /** 文字位置 */
21
+ textAlign?: 'start' | 'center' | 'end';
22
+ /** 自定义样式 */
23
+ style?: React.CSSProperties;
24
+ /** 自定义类名 */
25
+ className?: string;
26
+ /** showCursor */
27
+ showCursor?: boolean;
28
+ /** 防止失焦的元素选择器或ref */
29
+ preventBlurElements?: Array<string | React.RefObject<HTMLElement>>;
30
+ /** 是否聚焦(受控模式) */
31
+ focused?: boolean;
32
+ }
33
+ export interface BaseVirtualInputRef {
34
+ /** 手动聚焦 */
35
+ focus: () => void;
36
+ /** 手动失焦 */
37
+ blur: () => void;
38
+ }
39
+ declare const BaseVirtualInput: React.ForwardRefExoticComponent<BaseVirtualInputProps & React.RefAttributes<BaseVirtualInputRef>>;
40
+ export default BaseVirtualInput;
@@ -124,6 +124,7 @@ declare const _default: {
124
124
  'pisell-wallet-pass-card-redeem': string;
125
125
  'pisell-wallet-pass-card-code': string;
126
126
  'pisell-wallet-pass-card-valid-to': string;
127
+ 'pisell-wallet-pass-card-valid': string;
127
128
  'pisell-wallet-pass-card-confirm': string;
128
129
  'pisell-wallet-pass-card-cancel': string;
129
130
  'pisell-wallet-pass-card-required': string;
@@ -156,6 +156,7 @@ var en_US_default = {
156
156
  "pisell-wallet-pass-card-redeem": "use",
157
157
  "pisell-wallet-pass-card-code": "Code",
158
158
  "pisell-wallet-pass-card-valid-to": "Valid to",
159
+ "pisell-wallet-pass-card-valid": "Valid",
159
160
  "pisell-wallet-pass-card-confirm": "Confirm",
160
161
  "pisell-wallet-pass-card-cancel": "Cancel",
161
162
  "pisell-wallet-pass-card-required": "This field is required",
@@ -124,6 +124,7 @@ declare const _default: {
124
124
  'pisell-wallet-pass-card-redeem': string;
125
125
  'pisell-wallet-pass-card-code': string;
126
126
  'pisell-wallet-pass-card-valid-to': string;
127
+ 'pisell-wallet-pass-card-valid': string;
127
128
  'pisell-wallet-pass-card-confirm': string;
128
129
  'pisell-wallet-pass-card-cancel': string;
129
130
  'pisell-wallet-pass-card-required': string;
@@ -156,6 +156,7 @@ var zh_CN_default = {
156
156
  "pisell-wallet-pass-card-redeem": "使用",
157
157
  "pisell-wallet-pass-card-code": "识别码编号",
158
158
  "pisell-wallet-pass-card-valid-to": "有效期至",
159
+ "pisell-wallet-pass-card-valid": "有效期",
159
160
  "pisell-wallet-pass-card-confirm": "确认",
160
161
  "pisell-wallet-pass-card-cancel": "取消",
161
162
  "pisell-wallet-pass-card-required": "此字段必填",
@@ -124,6 +124,7 @@ declare const _default: {
124
124
  'pisell-wallet-pass-card-redeem': string;
125
125
  'pisell-wallet-pass-card-code': string;
126
126
  'pisell-wallet-pass-card-valid-to': string;
127
+ 'pisell-wallet-pass-card-valid': string;
127
128
  'pisell-wallet-pass-card-confirm': string;
128
129
  'pisell-wallet-pass-card-cancel': string;
129
130
  'pisell-wallet-pass-card-required': string;
@@ -156,6 +156,7 @@ var zh_TW_default = {
156
156
  "pisell-wallet-pass-card-redeem": "使用",
157
157
  "pisell-wallet-pass-card-code": "識別碼編號",
158
158
  "pisell-wallet-pass-card-valid-to": "有效期至",
159
+ "pisell-wallet-pass-card-valid": "有效期",
159
160
  "pisell-wallet-pass-card-confirm": "確認",
160
161
  "pisell-wallet-pass-card-cancel": "取消",
161
162
  "pisell-wallet-pass-card-required": "此欄位為必填",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "2.2.118",
3
+ "version": "2.2.120",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,7 +59,7 @@
59
59
  "@use-gesture/react": "^10.3.1",
60
60
  "@zxing/library": "0.21.2",
61
61
  "ahooks": "^3.7.6",
62
- "antd": "^5.6.3",
62
+ "antd": "5.6.3",
63
63
  "antd-img-crop": "^4.23.0",
64
64
  "classnames": "^2.3.2",
65
65
  "crypto-js": "^4.2.0",
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import { ModeType } from '../../type';
3
- export interface FormSettingContextType {
4
- onDataSourceFinish?: (values: any, result: any, form: any) => void;
5
- renderMode?: ModeType;
6
- groupInfoPosition?: 'top' | 'side';
7
- children?: React.ReactNode;
8
- currentValue?: 'server' | 'local';
9
- size?: 'small' | 'middle' | 'large';
10
- formatSubmitValues?: (values: Record<string, any>) => Record<string, any>;
11
- formatInitialValues?: (values: Record<string, any>) => Record<string, any>;
12
- customSubmit?: (values: Record<string, any>) => Promise<any>;
13
- }
14
- export declare const FormSettingContext: import("react").Context<FormSettingContextType>;
15
- export default FormSettingContext;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { FormSettingContextType } from './FormSettingContext';
3
- /**
4
- * @title: 表单设置Provider
5
- * @description: 提供表单设置信息
6
- */
7
- declare const FormSettingProvider: React.FC<FormSettingContextType>;
8
- export default FormSettingProvider;