@pisell/materials 1.0.795 → 1.0.796

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 (143) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +2 -2
  6. package/build/lowcode/view.js +2 -2
  7. package/es/components/dataSourceComponents/dataSourceForm/index.d.ts +3 -0
  8. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  9. package/es/components/dataSourceComponents/dataSourceForm/utils.js +2 -2
  10. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  11. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +4 -0
  12. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +1 -0
  13. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.js +1 -0
  14. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +1 -0
  15. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.js +1 -0
  16. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  17. package/es/components/dataSourceComponents/fields/index.d.ts +4 -4
  18. package/es/components/pisellWalletPassCard/index.d.ts +1 -0
  19. package/lib/components/dataSourceComponents/dataSourceForm/index.d.ts +3 -0
  20. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  21. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +2 -2
  22. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  23. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +4 -0
  24. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +1 -0
  25. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.js +1 -0
  26. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +1 -0
  27. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.js +1 -0
  28. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  29. package/lib/components/dataSourceComponents/fields/index.d.ts +4 -4
  30. package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
  31. package/lowcode/form-item-input.mobile/meta.ts +5 -0
  32. package/lowcode/form-item-input.phone/meta.ts +5 -0
  33. package/package.json +3 -3
  34. package/es/components/appVersionControl/index.d.ts +0 -4
  35. package/es/components/customSelect/index.d.ts +0 -17
  36. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.d.ts +0 -2
  37. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
  38. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -32
  39. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
  40. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
  41. package/es/components/dataSourceComponents/fields/InputNumber/ReadPretty.d.ts +0 -5
  42. package/es/components/dataSourceComponents/fields/InputNumber/utils.d.ts +0 -1
  43. package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
  44. package/es/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +0 -5
  45. package/es/components/dataSourceComponents/fields/Upload/serve.d.ts +0 -20
  46. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +0 -18
  47. package/es/components/date-picker/constants.d.ts +0 -39
  48. package/es/components/date-picker/datePickerCpt.d.ts +0 -8
  49. package/es/components/date-picker/index.d.ts +0 -2
  50. package/es/components/drag-sort-tree/index.d.ts +0 -3
  51. package/es/components/filter/components/Dropdown/index.d.ts +0 -9
  52. package/es/components/filter/components/FilterButton/index.d.ts +0 -4
  53. package/es/components/filter/components/FilterButton/types.d.ts +0 -13
  54. package/es/components/iconSelect/index.d.ts +0 -10
  55. package/es/components/login-and-register/index.d.ts +0 -82
  56. package/es/components/pisell-config-provider/index.d.ts +0 -12
  57. package/es/components/pisellDropSort/PisellDropSort.d.ts +0 -5
  58. package/es/components/pisellDropSort/index.d.ts +0 -3
  59. package/es/components/pisellEmpty/index.d.ts +0 -19
  60. package/es/components/pisellInformationEntry/index.d.ts +0 -33
  61. package/es/components/pisellList01/index.d.ts +0 -17
  62. package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
  63. package/es/components/pisellNavigationMenu/index.d.ts +0 -3
  64. package/es/components/pisellQRScanner/index.d.ts +0 -37
  65. package/es/components/pisellQrcode/index.d.ts +0 -10
  66. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  67. package/es/components/record-view/index.d.ts +0 -37
  68. package/es/components/select/index.d.ts +0 -9
  69. package/es/components/sort/index.d.ts +0 -5
  70. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  71. package/es/components/table/Actions/index.d.ts +0 -17
  72. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  73. package/es/components/table/Gallery/index.d.ts +0 -5
  74. package/es/components/table/Table/index.d.ts +0 -4
  75. package/es/components/table/Table/utils.d.ts +0 -173
  76. package/es/components/table/hooks/useTableSetting.d.ts +0 -22
  77. package/es/components/table/hooks/useTransDataSource.d.ts +0 -12
  78. package/es/components/table/hooks/useTriggerValuesChange.d.ts +0 -16
  79. package/es/components/table/index.d.ts +0 -4
  80. package/es/components/table/model.d.ts +0 -30
  81. package/es/components/table/types.d.ts +0 -253
  82. package/es/components/versionModal/index.d.ts +0 -24
  83. package/es/components/versionSelect/index.d.ts +0 -17
  84. package/es/components/walletCard/index.d.ts +0 -65
  85. package/es/locales/en-US.d.ts +0 -276
  86. package/es/locales/index.d.ts +0 -1
  87. package/es/locales/zh-CN.d.ts +0 -271
  88. package/es/locales/zh-TW.d.ts +0 -271
  89. package/lib/components/appVersionControl/index.d.ts +0 -4
  90. package/lib/components/customSelect/index.d.ts +0 -17
  91. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.d.ts +0 -2
  92. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
  93. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -32
  94. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
  95. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
  96. package/lib/components/dataSourceComponents/fields/InputNumber/ReadPretty.d.ts +0 -5
  97. package/lib/components/dataSourceComponents/fields/InputNumber/utils.d.ts +0 -1
  98. package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
  99. package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +0 -5
  100. package/lib/components/dataSourceComponents/fields/Upload/serve.d.ts +0 -20
  101. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +0 -18
  102. package/lib/components/date-picker/constants.d.ts +0 -39
  103. package/lib/components/date-picker/datePickerCpt.d.ts +0 -8
  104. package/lib/components/date-picker/index.d.ts +0 -2
  105. package/lib/components/drag-sort-tree/index.d.ts +0 -3
  106. package/lib/components/filter/components/Dropdown/index.d.ts +0 -9
  107. package/lib/components/filter/components/FilterButton/index.d.ts +0 -4
  108. package/lib/components/filter/components/FilterButton/types.d.ts +0 -13
  109. package/lib/components/iconSelect/index.d.ts +0 -10
  110. package/lib/components/login-and-register/index.d.ts +0 -82
  111. package/lib/components/pisell-config-provider/index.d.ts +0 -12
  112. package/lib/components/pisellDropSort/PisellDropSort.d.ts +0 -5
  113. package/lib/components/pisellDropSort/index.d.ts +0 -3
  114. package/lib/components/pisellEmpty/index.d.ts +0 -19
  115. package/lib/components/pisellInformationEntry/index.d.ts +0 -33
  116. package/lib/components/pisellList01/index.d.ts +0 -17
  117. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
  118. package/lib/components/pisellNavigationMenu/index.d.ts +0 -3
  119. package/lib/components/pisellQRScanner/index.d.ts +0 -37
  120. package/lib/components/pisellQrcode/index.d.ts +0 -10
  121. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  122. package/lib/components/record-view/index.d.ts +0 -37
  123. package/lib/components/select/index.d.ts +0 -9
  124. package/lib/components/sort/index.d.ts +0 -5
  125. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  126. package/lib/components/table/Actions/index.d.ts +0 -17
  127. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  128. package/lib/components/table/Gallery/index.d.ts +0 -5
  129. package/lib/components/table/Table/index.d.ts +0 -4
  130. package/lib/components/table/Table/utils.d.ts +0 -173
  131. package/lib/components/table/hooks/useTableSetting.d.ts +0 -22
  132. package/lib/components/table/hooks/useTransDataSource.d.ts +0 -12
  133. package/lib/components/table/hooks/useTriggerValuesChange.d.ts +0 -16
  134. package/lib/components/table/index.d.ts +0 -4
  135. package/lib/components/table/model.d.ts +0 -30
  136. package/lib/components/table/types.d.ts +0 -253
  137. package/lib/components/versionModal/index.d.ts +0 -24
  138. package/lib/components/versionSelect/index.d.ts +0 -17
  139. package/lib/components/walletCard/index.d.ts +0 -65
  140. package/lib/locales/en-US.d.ts +0 -276
  141. package/lib/locales/index.d.ts +0 -1
  142. package/lib/locales/zh-CN.d.ts +0 -271
  143. package/lib/locales/zh-TW.d.ts +0 -271
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const _default: any;
3
+ export default _default;
@@ -43,7 +43,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
43
43
  }) => JSX.Element;
44
44
  export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
45
45
  options?: any;
46
- optionSourceType?: "custom" | "default" | "api" | undefined;
46
+ optionSourceType?: "custom" | "api" | "default" | undefined;
47
47
  labelField: string;
48
48
  valueField: string;
49
49
  extraParams?: Record<string, any> | undefined;
@@ -177,7 +177,7 @@ export var withFormItem = function withFormItem(WrappedComponent, overlayProps)
177
177
  var value = "";
178
178
  if (isString(originValue)) {
179
179
  value = originValue;
180
- } else if ('phone' in originValue) {
180
+ } else if (originValue && 'phone' in originValue) {
181
181
  value = "".concat((originValue === null || originValue === void 0 ? void 0 : originValue.countryCallingCode) || "").concat(originValue.phone || "");
182
182
  }
183
183
 
@@ -207,7 +207,7 @@ export var withFormItem = function withFormItem(WrappedComponent, overlayProps)
207
207
  var value = "";
208
208
  if (isString(originValue)) {
209
209
  value = originValue;
210
- } else if ('phone' in originValue) {
210
+ } else if (originValue && 'phone' in originValue) {
211
211
  value = "".concat((originValue === null || originValue === void 0 ? void 0 : originValue.countryCallingCode) || "").concat(originValue.phone || "");
212
212
  }
213
213
 
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
17
17
  * @returns
18
18
  */
19
19
  declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
20
+ title: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
21
21
  pagination: {
22
22
  total: number;
23
23
  current: number;
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
26
26
  showSizeChanger: boolean;
27
27
  };
28
28
  columns: import("./useColumns").Column[];
29
- subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
29
+ subTitle: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
30
30
  buttons: any[] | null;
31
31
  filter: JSX.Element | null;
32
32
  onRow: (record: any) => any;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
3
+ declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
4
+ export default DataSourceWrapper;
@@ -10,6 +10,7 @@ export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'>
10
10
  value?: PhoneValue;
11
11
  onChange?: (value: PhoneValue) => void;
12
12
  returnFormat?: 'string' | 'object';
13
+ inputRef?: any;
13
14
  }
14
15
  declare const MobileNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
15
16
  export default MobileNumberInputWithMode;
@@ -226,6 +226,7 @@ var MobileNumberInput = function MobileNumberInput(_ref) {
226
226
  };
227
227
  })
228
228
  }), /*#__PURE__*/React.createElement(Input, _extends({}, props, {
229
+ ref: props === null || props === void 0 ? void 0 : props.inputRef,
229
230
  disabled: disabled,
230
231
  type: "tel",
231
232
  value: phoneNumber,
@@ -10,6 +10,7 @@ export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'>
10
10
  value?: PhoneValue;
11
11
  onChange?: (value: PhoneValue) => void;
12
12
  returnFormat?: 'string' | 'object';
13
+ inputRef?: any;
13
14
  }
14
15
  declare const PhoneNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
15
16
  export default PhoneNumberInputWithMode;
@@ -214,6 +214,7 @@ var PhoneNumberInput = function PhoneNumberInput(_ref) {
214
214
  };
215
215
  })
216
216
  }), /*#__PURE__*/React.createElement(Input, _extends({}, props, {
217
+ ref: props === null || props === void 0 ? void 0 : props.inputRef,
217
218
  disabled: disabled,
218
219
  type: "tel",
219
220
  value: phoneNumber,
@@ -1,6 +1,6 @@
1
1
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
2
  options?: any;
3
- optionSourceType?: "custom" | "default" | "api" | undefined;
3
+ optionSourceType?: "custom" | "api" | "default" | undefined;
4
4
  labelField: string;
5
5
  valueField: string;
6
6
  extraParams?: Record<string, any> | undefined;
@@ -35,7 +35,7 @@ declare const formFieldMap: {
35
35
  };
36
36
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
37
37
  options?: any;
38
- optionSourceType?: "custom" | "default" | "api" | undefined;
38
+ optionSourceType?: "custom" | "api" | "default" | undefined;
39
39
  labelField: string;
40
40
  valueField: string;
41
41
  extraParams?: Record<string, any> | undefined;
@@ -60,9 +60,9 @@ declare const formFieldMap: {
60
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
62
  };
63
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<any> | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
64
64
  options?: any;
65
- optionSourceType?: "custom" | "default" | "api" | undefined;
65
+ optionSourceType?: "custom" | "api" | "default" | undefined;
66
66
  labelField: string;
67
67
  valueField: string;
68
68
  extraParams?: Record<string, any> | undefined;
@@ -78,7 +78,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
78
78
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
79
79
  } & {
80
80
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
81
- }) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
81
+ }) | (import("react").FC<import("./Input/type").InputProps> & {
82
82
  JSON: import("react").FC<any>;
83
83
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
84
84
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface PisellWalletPassCardProps {
3
4
  id: number;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const _default: any;
3
+ export default _default;
@@ -43,7 +43,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
43
43
  }) => JSX.Element;
44
44
  export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
45
45
  options?: any;
46
- optionSourceType?: "custom" | "default" | "api" | undefined;
46
+ optionSourceType?: "custom" | "api" | "default" | undefined;
47
47
  labelField: string;
48
48
  valueField: string;
49
49
  extraParams?: Record<string, any> | undefined;
@@ -190,7 +190,7 @@ var withFormItem = (WrappedComponent, overlayProps) => {
190
190
  let value = "";
191
191
  if ((0, import_utils.isString)(originValue)) {
192
192
  value = originValue;
193
- } else if ("phone" in originValue) {
193
+ } else if (originValue && "phone" in originValue) {
194
194
  value = `${(originValue == null ? void 0 : originValue.countryCallingCode) || ""}${originValue.phone || ""}`;
195
195
  }
196
196
  if (!(value == null ? void 0 : value.trim())) {
@@ -223,7 +223,7 @@ var withFormItem = (WrappedComponent, overlayProps) => {
223
223
  let value = "";
224
224
  if ((0, import_utils.isString)(originValue)) {
225
225
  value = originValue;
226
- } else if ("phone" in originValue) {
226
+ } else if (originValue && "phone" in originValue) {
227
227
  value = `${(originValue == null ? void 0 : originValue.countryCallingCode) || ""}${originValue.phone || ""}`;
228
228
  }
229
229
  if (!(value == null ? void 0 : value.trim())) {
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
17
17
  * @returns
18
18
  */
19
19
  declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
20
+ title: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
21
21
  pagination: {
22
22
  total: number;
23
23
  current: number;
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
26
26
  showSizeChanger: boolean;
27
27
  };
28
28
  columns: import("./useColumns").Column[];
29
- subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
29
+ subTitle: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
30
30
  buttons: any[] | null;
31
31
  filter: JSX.Element | null;
32
32
  onRow: (record: any) => any;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
3
+ declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
4
+ export default DataSourceWrapper;
@@ -10,6 +10,7 @@ export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'>
10
10
  value?: PhoneValue;
11
11
  onChange?: (value: PhoneValue) => void;
12
12
  returnFormat?: 'string' | 'object';
13
+ inputRef?: any;
13
14
  }
14
15
  declare const MobileNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
15
16
  export default MobileNumberInputWithMode;
@@ -188,6 +188,7 @@ var MobileNumberInput = ({ value: propsValue, onChange, disabled, returnFormat =
188
188
  import_antd.Input,
189
189
  {
190
190
  ...props,
191
+ ref: props == null ? void 0 : props.inputRef,
191
192
  disabled,
192
193
  type: "tel",
193
194
  value: phoneNumber,
@@ -10,6 +10,7 @@ export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'>
10
10
  value?: PhoneValue;
11
11
  onChange?: (value: PhoneValue) => void;
12
12
  returnFormat?: 'string' | 'object';
13
+ inputRef?: any;
13
14
  }
14
15
  declare const PhoneNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
15
16
  export default PhoneNumberInputWithMode;
@@ -178,6 +178,7 @@ var PhoneNumberInput = ({ value: propsValue, onChange, disabled, returnFormat =
178
178
  import_antd.Input,
179
179
  {
180
180
  ...props,
181
+ ref: props == null ? void 0 : props.inputRef,
181
182
  disabled,
182
183
  type: "tel",
183
184
  value: phoneNumber,
@@ -1,6 +1,6 @@
1
1
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
2
  options?: any;
3
- optionSourceType?: "custom" | "default" | "api" | undefined;
3
+ optionSourceType?: "custom" | "api" | "default" | undefined;
4
4
  labelField: string;
5
5
  valueField: string;
6
6
  extraParams?: Record<string, any> | undefined;
@@ -35,7 +35,7 @@ declare const formFieldMap: {
35
35
  };
36
36
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
37
37
  options?: any;
38
- optionSourceType?: "custom" | "default" | "api" | undefined;
38
+ optionSourceType?: "custom" | "api" | "default" | undefined;
39
39
  labelField: string;
40
40
  valueField: string;
41
41
  extraParams?: Record<string, any> | undefined;
@@ -60,9 +60,9 @@ declare const formFieldMap: {
60
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
62
  };
63
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<any> | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
64
64
  options?: any;
65
- optionSourceType?: "custom" | "default" | "api" | undefined;
65
+ optionSourceType?: "custom" | "api" | "default" | undefined;
66
66
  labelField: string;
67
67
  valueField: string;
68
68
  extraParams?: Record<string, any> | undefined;
@@ -78,7 +78,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
78
78
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
79
79
  } & {
80
80
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
81
- }) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
81
+ }) | (import("react").FC<import("./Input/type").InputProps> & {
82
82
  JSON: import("react").FC<any>;
83
83
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
84
84
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface PisellWalletPassCardProps {
3
4
  id: number;
@@ -193,6 +193,11 @@ export default {
193
193
  propType: { type: 'oneOf', value: ['string', 'object'] },
194
194
  defaultValue: 'string',
195
195
  },
196
+ {
197
+ name: "inputRef",
198
+ title: { label: '输入框实例', tip: '输入框内容变化时的回调' },
199
+ propType: 'func',
200
+ },
196
201
  {
197
202
  name: 'onPressEnter',
198
203
  title: { label: '按下回车的回调', tip: '按下回车的回调' },
@@ -198,6 +198,11 @@ export default {
198
198
  propType: { type: 'oneOf', value: ['string', 'object'] },
199
199
  defaultValue: 'string',
200
200
  },
201
+ {
202
+ name: "inputRef",
203
+ title: { label: '输入框实例', tip: '输入框内容变化时的回调' },
204
+ propType: 'func',
205
+ },
201
206
  {
202
207
  name: 'onPressEnter',
203
208
  title: { label: '按下回车的回调', tip: '按下回车的回调' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.795",
3
+ "version": "1.0.796",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -72,8 +72,8 @@
72
72
  "react-barcode": "^1.5.3",
73
73
  "vod-js-sdk-v6": "^1.4.11",
74
74
  "@pisell/date-picker": "1.0.115",
75
- "@pisell/icon": "0.0.10",
76
- "@pisell/utils": "1.0.43"
75
+ "@pisell/utils": "1.0.43",
76
+ "@pisell/icon": "0.0.10"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "react": "^18.0.0",
@@ -1,4 +0,0 @@
1
- import { AppVersionControlProps } from './types';
2
- import './index.less';
3
- declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
4
- export default AppVersionControl;
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { SelectProps } from 'antd';
3
- import './index.less';
4
- export interface BaseOption {
5
- label: string;
6
- value: string | number;
7
- }
8
- export interface CustomSelectProps<T extends BaseOption> extends Omit<SelectProps<T['value']>, 'options' | 'value' | 'onChange'> {
9
- options: T[];
10
- value?: T['value'];
11
- onChange?: (value: T['value']) => void;
12
- renderItem?: (option: T) => React.ReactNode;
13
- className?: string;
14
- style?: React.CSSProperties;
15
- }
16
- declare const CustomSelect: <T extends BaseOption>(props: CustomSelectProps<T>) => JSX.Element;
17
- export default CustomSelect;
@@ -1,2 +0,0 @@
1
- declare const useDesignMode: (props: any, { registerValueVariable, openDrawer, closeDrawer, data }: any) => void;
2
- export default useDesignMode;
@@ -1,39 +0,0 @@
1
- import { Drawer } from 'antd';
2
- import React from 'react';
3
- import { OperationItem } from '../type';
4
- declare const useDrawerState: (operationContent?: {
5
- [key: string]: React.ReactNode;
6
- } | undefined) => {
7
- drawerVisible: boolean;
8
- setDrawerVisible: React.Dispatch<React.SetStateAction<boolean>>;
9
- openDrawer: (item: OperationItem) => void;
10
- closeDrawer: () => void;
11
- drawerContent: React.ReactNode;
12
- Container: {
13
- (props: import("../../../pisellModal").PisellModalProps): JSX.Element;
14
- confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
15
- destroy: () => void;
16
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
17
- };
18
- info: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
19
- destroy: () => void;
20
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
- };
22
- error: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
23
- destroy: () => void;
24
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
25
- };
26
- warn: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => any;
27
- warning: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
28
- destroy: () => void;
29
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
30
- };
31
- success: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
32
- destroy: () => void;
33
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
34
- };
35
- Information: (props: import("../../../pisellModal/components/Information").InformationProps) => JSX.Element;
36
- } | typeof Drawer;
37
- containerProps: {};
38
- };
39
- export default useDrawerState;
@@ -1,32 +0,0 @@
1
- import { DataSourceTableProps } from '../type';
2
- declare type Params = {
3
- pagination?: {
4
- page: number;
5
- size: number;
6
- };
7
- order_by?: string;
8
- tabs?: {
9
- name: string;
10
- filterBy: Record<string, any>;
11
- sortBy: string;
12
- };
13
- };
14
- declare const useTableQuery: (props: DataSourceTableProps) => {
15
- queryPageConfig: {
16
- page: number;
17
- pageSize: number;
18
- filter: Record<string, any>;
19
- sort: string;
20
- };
21
- setQueryPageConfig: import("react").Dispatch<import("react").SetStateAction<{
22
- page: number;
23
- pageSize: number;
24
- filter: Record<string, any>;
25
- sort: string;
26
- }>>;
27
- handleValuesChange: (params: Params, allParams: Params) => void;
28
- refreshData: () => void;
29
- handleFilterChange: (changedFields: any, allFields: any) => void;
30
- refreshCurrentPage: () => void;
31
- };
32
- export default useTableQuery;
@@ -1,79 +0,0 @@
1
- /// <reference types="react" />
2
- import { ColumnType } from 'antd/es/table';
3
- import { DataSourceType } from '../provider/dataSource/DataSourceContext';
4
- export declare type OperationItem = {
5
- label?: string;
6
- openMode: 'modal' | 'drawer' | 'custom';
7
- openContentSize: 'small' | 'middle' | 'large';
8
- openTitle: string;
9
- actionType: 'detail' | 'edit' | 'delete' | 'custom';
10
- key: string;
11
- buttonProps?: any;
12
- onClick?: (record: any) => void;
13
- };
14
- export interface DataSourceTableProps {
15
- title?: string | React.ReactNode | (() => React.ReactNode);
16
- subTitle?: string | React.ReactNode | (() => React.ReactNode);
17
- titleButtons?: {
18
- show: boolean;
19
- maxCount: number;
20
- items: OperationItem[];
21
- };
22
- tableButtons?: {
23
- show: boolean;
24
- maxCount: number;
25
- items: OperationItem[];
26
- };
27
- buttons?: any[];
28
- operation?: {
29
- show: boolean;
30
- title: string;
31
- width: number;
32
- align: 'left' | 'center' | 'right';
33
- fixed: 'left' | 'right' | false;
34
- type: 'link' | 'button';
35
- items: OperationItem[];
36
- };
37
- operationContent?: {
38
- [key: string]: React.ReactNode;
39
- };
40
- dataSource: DataSourceType;
41
- columns: ColumnType<any>[];
42
- filter: any;
43
- search?: {
44
- show: boolean;
45
- placeholder: string;
46
- };
47
- __designMode: string;
48
- componentId: string;
49
- clickToDetail?: {
50
- show: boolean;
51
- useCustomAction: boolean;
52
- actionType: string;
53
- openMode: 'modal' | 'drawer';
54
- openContentSize: 'small' | 'middle' | 'large';
55
- openTitle: string;
56
- key: string;
57
- };
58
- onRow?: any;
59
- filterBy?: Record<string, any>;
60
- sortBy: string;
61
- tabs?: {
62
- show: boolean;
63
- type: string;
64
- items: {
65
- name: string;
66
- filterBy: Record<string, any>;
67
- sortBy: string;
68
- }[];
69
- };
70
- onValuesChange?: (changedValues: any, values: any) => void;
71
- onDeleteFinish?: (record: Record<string, any>) => void;
72
- extraParams?: {
73
- list?: Record<string, any>;
74
- get?: Record<string, any>;
75
- update?: Record<string, any>;
76
- create?: Record<string, any>;
77
- destroy?: Record<string, any>;
78
- };
79
- }
@@ -1,25 +0,0 @@
1
- /**
2
- * 获取nocobase数据列表
3
- */
4
- export declare const getCountryDataList: () => Promise<any>;
5
- export declare const getShopCountryDataList: (locale?: any) => Promise<any>;
6
- export interface Country {
7
- id: number;
8
- name: {
9
- en: string;
10
- "zh-CN": string;
11
- "zh-HK": string;
12
- original: string;
13
- };
14
- code: string;
15
- calling_code: string;
16
- currency_code: string;
17
- sort: number;
18
- status: string;
19
- created_at: string;
20
- updated_at: string;
21
- prefix: string;
22
- }
23
- export declare const useCountries: () => {
24
- data: Country[];
25
- };
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { InputNumberProps } from './type';
3
- import './ReadPretty.less';
4
- declare const ReadPretty: React.FC<InputNumberProps>;
5
- export default ReadPretty;
@@ -1 +0,0 @@
1
- export declare const formatNumberWithUnit: (value: number, precision?: number, previewFormatter?: 'none' | 'thousand' | 'million' | 'billion') => string;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { TranslationProps } from './type';
3
- import './index.less';
4
- declare const Translation: React.FC<TranslationProps>;
5
- export default Translation;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { UploadProps } from './type';
3
- import './index.less';
4
- declare const BaseUpload: React.FC<UploadProps>;
5
- export default BaseUpload;
@@ -1,20 +0,0 @@
1
- /**
2
- * 获取nocobase媒体数据列表
3
- */
4
- export declare const getMediaTypeList: () => Promise<any>;
5
- export interface MediaType {
6
- id: number;
7
- name: string;
8
- maxsize: number;
9
- }
10
- export declare const useMediaConfig: (mediaConfig?: any) => {
11
- data: {
12
- upload_onetime_limit: any;
13
- upload_maxsize: any;
14
- };
15
- };
16
- export declare const useMediaTypes: () => {
17
- data: MediaType[];
18
- getExtensionsByIds: (ids: number[]) => string[];
19
- getMaxSizeByIds: (ids: number[]) => Record<number, number>;
20
- };
@@ -1,18 +0,0 @@
1
- import { RcFile, UploadFile } from 'antd/es/upload/interface';
2
- import type { MediaMetadata, FileCountValidation, ValidationResult, MultilingualFile, FileListOptions, UploadValue, SingleMultilingualValue } from './types';
3
- export declare const generateUid: () => string;
4
- export declare const getSuffix: (name: string) => string;
5
- export declare const getPointSuffix: (name: string) => string;
6
- export declare const getFileType: (name: string) => string;
7
- export declare const getFileName: (url: string) => string;
8
- export declare const checkFileCount: ({ multiple, minCount, maxCount, valueLength, }: FileCountValidation) => ValidationResult;
9
- export declare const getMediaMetadata: (file: RcFile) => Promise<MediaMetadata | null>;
10
- export declare const genFileListByString: (value: string) => UploadFile[];
11
- export declare const createMultilingualData: (value: string) => SingleMultilingualValue;
12
- export declare const createMultilingualFileList: (value: string) => Record<string, UploadFile<any>[]>;
13
- export declare const getDefaultFileList: (value: UploadValue | undefined, options: FileListOptions) => MultilingualFile[];
14
- export declare const getFileMetadataParams: (file: RcFile & {
15
- metadata?: MediaMetadata;
16
- }) => Record<string, any>;
17
- export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;